@apimatic/cli 1.1.0-beta.9 → 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.
Files changed (223) hide show
  1. package/README.md +117 -14
  2. package/lib/actions/portal/copilot.d.ts +1 -0
  3. package/lib/actions/portal/copilot.js +12 -12
  4. package/lib/actions/portal/copilot.js.map +1 -1
  5. package/lib/actions/portal/generate.js +7 -1
  6. package/lib/actions/portal/generate.js.map +1 -1
  7. package/lib/actions/portal/quickstart.d.ts +1 -0
  8. package/lib/actions/portal/quickstart.js +79 -10
  9. package/lib/actions/portal/quickstart.js.map +1 -1
  10. package/lib/actions/portal/serve.d.ts +1 -0
  11. package/lib/actions/portal/serve.js +77 -20
  12. package/lib/actions/portal/serve.js.map +1 -1
  13. package/lib/actions/portal/toc/new-toc.js +8 -20
  14. package/lib/actions/portal/toc/new-toc.js.map +1 -1
  15. package/lib/actions/publishing/profile/list.d.ts +11 -0
  16. package/lib/actions/publishing/profile/list.js +29 -0
  17. package/lib/actions/publishing/profile/list.js.map +1 -0
  18. package/lib/actions/sdk/generate.d.ts +9 -5
  19. package/lib/actions/sdk/generate.js +74 -46
  20. package/lib/actions/sdk/generate.js.map +1 -1
  21. package/lib/actions/sdk/merge-source-tree.d.ts +12 -0
  22. package/lib/actions/sdk/merge-source-tree.js +78 -0
  23. package/lib/actions/sdk/merge-source-tree.js.map +1 -0
  24. package/lib/actions/sdk/publish/interactive.d.ts +13 -0
  25. package/lib/actions/sdk/publish/interactive.js +105 -0
  26. package/lib/actions/sdk/publish/interactive.js.map +1 -0
  27. package/lib/actions/sdk/publish/non-interactive.d.ts +14 -0
  28. package/lib/actions/sdk/publish/non-interactive.js +101 -0
  29. package/lib/actions/sdk/publish/non-interactive.js.map +1 -0
  30. package/lib/actions/sdk/publish.d.ts +18 -0
  31. package/lib/actions/sdk/publish.js +56 -0
  32. package/lib/actions/sdk/publish.js.map +1 -0
  33. package/lib/actions/sdk/quickstart.d.ts +1 -0
  34. package/lib/actions/sdk/quickstart.js +19 -2
  35. package/lib/actions/sdk/quickstart.js.map +1 -1
  36. package/lib/actions/sdk/save-changes.d.ts +8 -0
  37. package/lib/actions/sdk/save-changes.js +93 -0
  38. package/lib/actions/sdk/save-changes.js.map +1 -0
  39. package/lib/application/portal/recipe/recipe-generator.js +14 -29
  40. package/lib/application/portal/recipe/recipe-generator.js.map +1 -1
  41. package/lib/application/portal/toc/toc-structure-generator.d.ts +3 -19
  42. package/lib/application/portal/toc/toc-structure-generator.js +43 -33
  43. package/lib/application/portal/toc/toc-structure-generator.js.map +1 -1
  44. package/lib/commands/portal/recipe/new.js +2 -2
  45. package/lib/commands/portal/recipe/new.js.map +1 -1
  46. package/lib/commands/portal/serve.js +3 -3
  47. package/lib/commands/portal/serve.js.map +1 -1
  48. package/lib/commands/portal/toc/new.js +2 -2
  49. package/lib/commands/portal/toc/new.js.map +1 -1
  50. package/lib/commands/publishing/profile/list.d.ts +9 -0
  51. package/lib/commands/publishing/profile/list.js +28 -0
  52. package/lib/commands/publishing/profile/list.js.map +1 -0
  53. package/lib/commands/quickstart.js +1 -1
  54. package/lib/commands/quickstart.js.map +1 -1
  55. package/lib/commands/sdk/generate.d.ts +6 -2
  56. package/lib/commands/sdk/generate.js +35 -9
  57. package/lib/commands/sdk/generate.js.map +1 -1
  58. package/lib/commands/sdk/publish.d.ts +18 -0
  59. package/lib/commands/sdk/publish.js +73 -0
  60. package/lib/commands/sdk/publish.js.map +1 -0
  61. package/lib/commands/sdk/save-changes.d.ts +14 -0
  62. package/lib/commands/sdk/save-changes.js +51 -0
  63. package/lib/commands/sdk/save-changes.js.map +1 -0
  64. package/lib/hooks/not-found.js +1 -1
  65. package/lib/hooks/not-found.js.map +1 -1
  66. package/lib/infrastructure/debounce-service.js +3 -0
  67. package/lib/infrastructure/debounce-service.js.map +1 -1
  68. package/lib/infrastructure/env-info.d.ts +2 -0
  69. package/lib/infrastructure/env-info.js +23 -12
  70. package/lib/infrastructure/env-info.js.map +1 -1
  71. package/lib/infrastructure/file-service.d.ts +9 -0
  72. package/lib/infrastructure/file-service.js +94 -5
  73. package/lib/infrastructure/file-service.js.map +1 -1
  74. package/lib/infrastructure/git-service.d.ts +14 -0
  75. package/lib/infrastructure/git-service.js +90 -0
  76. package/lib/infrastructure/git-service.js.map +1 -0
  77. package/lib/infrastructure/launcher-service.d.ts +5 -0
  78. package/lib/infrastructure/launcher-service.js +35 -2
  79. package/lib/infrastructure/launcher-service.js.map +1 -1
  80. package/lib/infrastructure/os-extensions.d.ts +2 -0
  81. package/lib/infrastructure/os-extensions.js +6 -0
  82. package/lib/infrastructure/os-extensions.js.map +1 -0
  83. package/lib/infrastructure/service-error.d.ts +14 -2
  84. package/lib/infrastructure/service-error.js +26 -9
  85. package/lib/infrastructure/service-error.js.map +1 -1
  86. package/lib/infrastructure/services/api-service.d.ts +1 -0
  87. package/lib/infrastructure/services/api-service.js +26 -2
  88. package/lib/infrastructure/services/api-service.js.map +1 -1
  89. package/lib/infrastructure/services/portal-service.d.ts +11 -2
  90. package/lib/infrastructure/services/portal-service.js +123 -18
  91. package/lib/infrastructure/services/portal-service.js.map +1 -1
  92. package/lib/infrastructure/services/publishing-api-service.d.ts +19 -0
  93. package/lib/infrastructure/services/publishing-api-service.js +111 -0
  94. package/lib/infrastructure/services/publishing-api-service.js.map +1 -0
  95. package/lib/infrastructure/services/validation-service.d.ts +21 -0
  96. package/lib/infrastructure/services/validation-service.js +94 -4
  97. package/lib/infrastructure/services/validation-service.js.map +1 -1
  98. package/lib/infrastructure/zip-service.d.ts +2 -2
  99. package/lib/infrastructure/zip-service.js +46 -25
  100. package/lib/infrastructure/zip-service.js.map +1 -1
  101. package/lib/prompts/format.d.ts +0 -2
  102. package/lib/prompts/format.js +0 -31
  103. package/lib/prompts/format.js.map +1 -1
  104. package/lib/prompts/portal/generate.d.ts +1 -1
  105. package/lib/prompts/portal/generate.js +9 -3
  106. package/lib/prompts/portal/generate.js.map +1 -1
  107. package/lib/prompts/portal/quickstart.d.ts +11 -2
  108. package/lib/prompts/portal/quickstart.js +80 -13
  109. package/lib/prompts/portal/quickstart.js.map +1 -1
  110. package/lib/prompts/portal/serve.d.ts +4 -0
  111. package/lib/prompts/portal/serve.js +20 -1
  112. package/lib/prompts/portal/serve.js.map +1 -1
  113. package/lib/prompts/portal/toc/new-toc.d.ts +2 -2
  114. package/lib/prompts/portal/toc/new-toc.js +3 -3
  115. package/lib/prompts/portal/toc/new-toc.js.map +1 -1
  116. package/lib/prompts/prompt.d.ts +6 -0
  117. package/lib/prompts/prompt.js +45 -0
  118. package/lib/prompts/prompt.js.map +1 -1
  119. package/lib/prompts/publishing/profile/list.d.ts +9 -0
  120. package/lib/prompts/publishing/profile/list.js +27 -0
  121. package/lib/prompts/publishing/profile/list.js.map +1 -0
  122. package/lib/prompts/sdk/generate.d.ts +7 -3
  123. package/lib/prompts/sdk/generate.js +25 -13
  124. package/lib/prompts/sdk/generate.js.map +1 -1
  125. package/lib/prompts/sdk/merge-source-tree.d.ts +22 -0
  126. package/lib/prompts/sdk/merge-source-tree.js +90 -0
  127. package/lib/prompts/sdk/merge-source-tree.js.map +1 -0
  128. package/lib/prompts/sdk/publish/interactive.d.ts +30 -0
  129. package/lib/prompts/sdk/publish/interactive.js +139 -0
  130. package/lib/prompts/sdk/publish/interactive.js.map +1 -0
  131. package/lib/prompts/sdk/publish/non-interactive.d.ts +27 -0
  132. package/lib/prompts/sdk/publish/non-interactive.js +97 -0
  133. package/lib/prompts/sdk/publish/non-interactive.js.map +1 -0
  134. package/lib/prompts/sdk/publish.d.ts +12 -0
  135. package/lib/prompts/sdk/publish.js +16 -0
  136. package/lib/prompts/sdk/publish.js.map +1 -0
  137. package/lib/prompts/sdk/quickstart.d.ts +4 -1
  138. package/lib/prompts/sdk/quickstart.js +30 -13
  139. package/lib/prompts/sdk/quickstart.js.map +1 -1
  140. package/lib/prompts/sdk/save-changes.d.ts +21 -0
  141. package/lib/prompts/sdk/save-changes.js +84 -0
  142. package/lib/prompts/sdk/save-changes.js.map +1 -0
  143. package/lib/types/api/account.d.ts +1 -0
  144. package/lib/types/build/build.d.ts +82 -2
  145. package/lib/types/build/build.js +161 -0
  146. package/lib/types/build/build.js.map +1 -1
  147. package/lib/types/build-context.d.ts +14 -1
  148. package/lib/types/build-context.js +82 -4
  149. package/lib/types/build-context.js.map +1 -1
  150. package/lib/types/events/sdk-changes-saved.d.ts +8 -0
  151. package/lib/types/events/sdk-changes-saved.js +11 -0
  152. package/lib/types/events/sdk-changes-saved.js.map +1 -0
  153. package/lib/types/events/sdk-changes-tracked.d.ts +8 -0
  154. package/lib/types/events/sdk-changes-tracked.js +11 -0
  155. package/lib/types/events/sdk-changes-tracked.js.map +1 -0
  156. package/lib/types/events/sdk-conflicts-resolved.d.ts +8 -0
  157. package/lib/types/events/sdk-conflicts-resolved.js +11 -0
  158. package/lib/types/events/sdk-conflicts-resolved.js.map +1 -0
  159. package/lib/types/events/sdk-publish-validation-failed.d.ts +5 -0
  160. package/lib/types/events/sdk-publish-validation-failed.js +8 -0
  161. package/lib/types/events/sdk-publish-validation-failed.js.map +1 -0
  162. package/lib/types/file/directory.d.ts +10 -1
  163. package/lib/types/file/directory.js +63 -5
  164. package/lib/types/file/directory.js.map +1 -1
  165. package/lib/types/file/directoryPath.js.map +1 -1
  166. package/lib/types/file/urlPath.d.ts +4 -0
  167. package/lib/types/file/urlPath.js +9 -0
  168. package/lib/types/file/urlPath.js.map +1 -1
  169. package/lib/types/merge-source-tree-context.d.ts +28 -0
  170. package/lib/types/merge-source-tree-context.js +63 -0
  171. package/lib/types/merge-source-tree-context.js.map +1 -0
  172. package/lib/types/package-settings-context.d.ts +10 -0
  173. package/lib/types/package-settings-context.js +20 -0
  174. package/lib/types/package-settings-context.js.map +1 -0
  175. package/lib/types/publish/package-settings-configuration.d.ts +74 -0
  176. package/lib/types/publish/package-settings-configuration.js +2 -0
  177. package/lib/types/publish/package-settings-configuration.js.map +1 -0
  178. package/lib/types/publish/profile-id.d.ts +10 -0
  179. package/lib/types/publish/profile-id.js +22 -0
  180. package/lib/types/publish/profile-id.js.map +1 -0
  181. package/lib/types/publish/publishing-profile.d.ts +26 -0
  182. package/lib/types/publish/publishing-profile.js +154 -0
  183. package/lib/types/publish/publishing-profile.js.map +1 -0
  184. package/lib/types/publish/publishing-profiles.d.ts +12 -0
  185. package/lib/types/publish/publishing-profiles.js +36 -0
  186. package/lib/types/publish/publishing-profiles.js.map +1 -0
  187. package/lib/types/publish/version.d.ts +7 -0
  188. package/lib/types/publish/version.js +17 -0
  189. package/lib/types/publish/version.js.map +1 -0
  190. package/lib/types/publish-api/publish-log.d.ts +20 -0
  191. package/lib/types/publish-api/publish-log.js +2 -0
  192. package/lib/types/publish-api/publish-log.js.map +1 -0
  193. package/lib/types/publish-api/publishing-info.d.ts +4 -0
  194. package/lib/types/publish-api/publishing-info.js +2 -0
  195. package/lib/types/publish-api/publishing-info.js.map +1 -0
  196. package/lib/types/publish-api/publishing-profile-item.d.ts +190 -0
  197. package/lib/types/publish-api/publishing-profile-item.js +6 -0
  198. package/lib/types/publish-api/publishing-profile-item.js.map +1 -0
  199. package/lib/types/save-changes-context.d.ts +17 -0
  200. package/lib/types/save-changes-context.js +42 -0
  201. package/lib/types/save-changes-context.js.map +1 -0
  202. package/lib/types/sdk/generate.d.ts +18 -0
  203. package/lib/types/sdk/generate.js +25 -0
  204. package/lib/types/sdk/generate.js.map +1 -1
  205. package/lib/types/sdk-context.d.ts +5 -4
  206. package/lib/types/sdk-context.js +26 -13
  207. package/lib/types/sdk-context.js.map +1 -1
  208. package/lib/types/sdl/sdl.d.ts +0 -28
  209. package/lib/types/sdl/sdl.js +1 -128
  210. package/lib/types/sdl/sdl.js.map +1 -1
  211. package/lib/types/spec-context.js.map +1 -1
  212. package/lib/types/temp-context.js.map +1 -1
  213. package/lib/types/toc/toc-components.d.ts +37 -0
  214. package/lib/types/toc/toc-components.js +97 -0
  215. package/lib/types/toc/toc-components.js.map +1 -0
  216. package/lib/types/toc/toc.d.ts +11 -0
  217. package/lib/utils/string-utils.d.ts +0 -1
  218. package/lib/utils/string-utils.js +0 -42
  219. package/lib/utils/string-utils.js.map +1 -1
  220. package/package.json +28 -20
  221. package/lib/types/versioned-build-context.d.ts +0 -15
  222. package/lib/types/versioned-build-context.js +0 -28
  223. package/lib/types/versioned-build-context.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apimatic/cli",
3
3
  "description": "The official CLI for APIMatic.",
4
- "version": "1.1.0-beta.9",
4
+ "version": "1.2.0",
5
5
  "author": "APIMatic",
6
6
  "bin": {
7
7
  "apimatic": "./bin/run.js"
@@ -16,10 +16,10 @@
16
16
  "engines": {
17
17
  "node": ">=20.0.0"
18
18
  },
19
+ "packageManager": "pnpm@11.0.8",
19
20
  "files": [
20
21
  "./bin",
21
22
  "./lib",
22
- "/npm-shrinkwrap.json",
23
23
  "/oclif.manifest.json"
24
24
  ],
25
25
  "repository": "git://github.com/apimatic/apimatic-cli.git",
@@ -38,51 +38,58 @@
38
38
  "types": "lib/index.d.ts",
39
39
  "scripts": {
40
40
  "build": "tsc -b",
41
+ "build:watch": "tsc -b --watch",
42
+ "apimatic": "node ./bin/run.js",
41
43
  "postpack": "rimraf oclif.manifest.json",
42
44
  "posttest": "eslint . --ext .ts",
43
45
  "prettier": "prettier \"src/**/*.{js,ts}\"",
44
46
  "format": "prettier --write \"src/**/*.{js,ts}\"",
45
47
  "lint": "eslint \"src/**/*.{js,ts}\"",
46
48
  "lint:fix": "eslint --fix \"src/**/*.{js,ts}\" --quiet",
49
+ "readme": "oclif readme",
47
50
  "test": "tsx node_modules/mocha/bin/_mocha --forbid-only \"test/**/*.test.ts\" --timeout 99999"
48
51
  },
49
52
  "dependencies": {
50
- "@apimatic/sdk": "^0.2.0-alpha.7",
53
+ "@apimatic/sdk": "0.2.0-alpha.10",
54
+ "@clack/core": "1.0.0-alpha.1",
51
55
  "@clack/prompts": "1.0.0-alpha.1",
52
56
  "@oclif/core": "^4.2.8",
53
57
  "@oclif/plugin-autocomplete": "^3.2.24",
54
58
  "@oclif/plugin-help": "^6.2.26",
55
- "archiver": "^7.0.1",
59
+ "adm-zip": "^0.5.17",
60
+ "ansis": "^3.17.0",
56
61
  "async-mutex": "^0.5.0",
57
62
  "axios": "^1.8.1",
58
63
  "chokidar": "^3.6.0",
59
64
  "connect-livereload": "^0.6.1",
60
65
  "execa": "^9.6.0",
61
66
  "express": "^4.17.1",
62
- "extract-zip": "^2.0.1",
63
67
  "fast-levenshtein": "^3.0.0",
64
68
  "form-data": "^4.0.2",
65
69
  "fs-extra": "^11.3.0",
66
70
  "get-port": "^7.1.0",
67
71
  "is-in-ci": "^2.0.0",
72
+ "isomorphic-git": "^1.37.2",
68
73
  "livereload": "^0.9.3",
69
74
  "neverthrow": "^8.2.0",
70
75
  "open": "^8.4.0",
76
+ "picocolors": "^1.1.1",
71
77
  "prettier": "^2.8.8",
72
78
  "striptags": "^3.2.0",
73
79
  "tmp-promise": "^3.0.3",
74
80
  "tslib": "^2.8.1",
75
81
  "uuid": "^11.1.0",
76
- "yaml": "^2.8.0"
82
+ "yaml": "^2.8.0",
83
+ "yazl": "^3.3.1"
77
84
  },
78
85
  "devDependencies": {
79
- "@commitlint/cli": "^15.0.0",
86
+ "@commitlint/cli": "^20.5.0",
80
87
  "@commitlint/config-conventional": "^15.0.0",
81
88
  "@eslint/js": "^9.34.0",
82
89
  "@oclif/test": "^4.1.13",
83
90
  "@semantic-release/changelog": "^6.0.3",
84
91
  "@semantic-release/git": "^10.0.1",
85
- "@types/archiver": "^5.3.4",
92
+ "@types/adm-zip": "^0.5.8",
86
93
  "@types/base-64": "^1.0.0",
87
94
  "@types/chai": "^4.3.20",
88
95
  "@types/connect-livereload": "^0.5.32",
@@ -97,6 +104,7 @@
97
104
  "@types/sinon": "^17.0.4",
98
105
  "@types/treeify": "^1.0.3",
99
106
  "@types/unzipper": "^0.10.4",
107
+ "@types/yazl": "^3.3.0",
100
108
  "@typescript-eslint/eslint-plugin": "^8.0.0",
101
109
  "@typescript-eslint/parser": "^8.0.0",
102
110
  "chai": "^4.5.0",
@@ -111,7 +119,10 @@
111
119
  "nyc": "^17.1.0",
112
120
  "oclif": "^4.17.34",
113
121
  "rimraf": "^6.0.1",
122
+ "semantic-release": "^25.0.3",
123
+ "simple-git": "^3.36.0",
114
124
  "sinon": "^21.0.0",
125
+ "string-argv": "^0.3.1",
115
126
  "ts-node": "^10.9.2",
116
127
  "tsx": "^4.20.3",
117
128
  "typescript": "^5.2.2"
@@ -120,7 +131,7 @@
120
131
  "commands": "./lib/commands",
121
132
  "dirname": "apimatic",
122
133
  "bin": "apimatic",
123
- "description": "The official CLI for APIMatic. \nTo get started with APIMatic's CLI using a step by step wizard, run 'apimatic portal:quickstart'.",
134
+ "description": "The official CLI for APIMatic. \nTo get started with APIMatic's CLI using a step by step wizard, run 'apimatic quickstart'.",
124
135
  "hooks": {
125
136
  "command_not_found": "./lib/hooks/not-found"
126
137
  },
@@ -139,25 +150,22 @@
139
150
  "description": "Generate, download and serve an API Documentation portal for your APIs."
140
151
  },
141
152
  "sdk": {
142
- "description": "Generate SDKs for your APIs in multiple languages."
153
+ "description": "Generate and publish SDKs for your APIs in multiple languages."
154
+ },
155
+ "publishing": {
156
+ "description": "Manage SDK publishing configurations."
157
+ },
158
+ "publishing:profile": {
159
+ "description": "Manage publishing profiles."
143
160
  },
144
161
  "portal:toc": {
145
162
  "description": "Generate a Table of Contents (TOC) file for your API documentation portal."
146
163
  }
147
164
  },
148
- "topicSeparator": " ",
149
- "state": "beta"
165
+ "topicSeparator": " "
150
166
  },
151
167
  "lint-staged": {
152
168
  "*.js": "eslint --cache --fix",
153
169
  "*.{js,ts}": "prettier --write"
154
- },
155
- "overrides": {
156
- "inflight": "npm:lru-cache@^7.14.1",
157
- "lodash.get": "npm:lodash@^4.17.21",
158
- "@humanwhocodes/config-array": "npm:@eslint/config-array@latest",
159
- "rimraf": "^6.0.1",
160
- "glob": "^10.4.5",
161
- "q": "npm:promise@^8.3.0"
162
170
  }
163
171
  }
@@ -1,15 +0,0 @@
1
- import { DirectoryPath } from "./file/directoryPath.js";
2
- type VersionedBuildValidateResult = {
3
- isValid: false;
4
- } | {
5
- isValid: true;
6
- versionsDirectory: DirectoryPath;
7
- versions: string[];
8
- };
9
- export declare class VersionedBuildContext {
10
- private readonly fileService;
11
- private readonly buildDirectory;
12
- constructor(buildDirectory: DirectoryPath);
13
- validate(): Promise<VersionedBuildValidateResult>;
14
- }
15
- export {};
@@ -1,28 +0,0 @@
1
- import { FileService } from "../infrastructure/file-service.js";
2
- import { BuildContext } from "./build-context.js";
3
- export class VersionedBuildContext {
4
- constructor(buildDirectory) {
5
- this.fileService = new FileService();
6
- this.buildDirectory = buildDirectory;
7
- }
8
- async validate() {
9
- var _a;
10
- const buildContext = new BuildContext(this.buildDirectory);
11
- if (!(await buildContext.validate())) {
12
- return { isValid: false };
13
- }
14
- const config = await buildContext.getBuildFileContents();
15
- if (!("generateVersionedPortal" in config)) {
16
- return { isValid: false };
17
- }
18
- const versionsPath = (_a = config.versionsPath) !== null && _a !== void 0 ? _a : "versioned_docs";
19
- const versionsDirectory = this.buildDirectory.join(versionsPath);
20
- if (!(await this.fileService.directoryExists(versionsDirectory))) {
21
- return { isValid: false };
22
- }
23
- const versionsDirs = await this.fileService.getSubDirectoriesPaths(versionsDirectory);
24
- const versions = versionsDirs.map((dir) => dir.leafName());
25
- return { isValid: true, versionsDirectory, versions };
26
- }
27
- }
28
- //# sourceMappingURL=versioned-build-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"versioned-build-context.js","sourceRoot":"","sources":["../../src/types/versioned-build-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQlD,MAAM,OAAO,qBAAqB;IAIhC,YAAY,cAA6B;QAHxB,gBAAW,GAAG,IAAI,WAAW,EAAE,CAAC;QAI/C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAEM,KAAK,CAAC,QAAQ;;QACnB,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC3D,IAAI,CAAC,CAAC,MAAM,YAAY,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;YACrC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,oBAAoB,EAAE,CAAC;QACzD,IAAI,CAAC,CAAC,yBAAyB,IAAI,MAAM,CAAC,EAAE,CAAC;YAC3C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,MAAM,YAAY,GAAG,MAAC,MAAM,CAAC,YAAuB,mCAAI,gBAAgB,CAAC;QACzE,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACjE,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC;YACjE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;QACtF,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC;IACxD,CAAC;CACF"}