appium-xcuitest-driver 10.2.2 → 10.4.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 (262) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/active-app-info.d.ts +9 -0
  3. package/build/lib/commands/active-app-info.d.ts.map +1 -0
  4. package/build/lib/commands/active-app-info.js +14 -0
  5. package/build/lib/commands/active-app-info.js.map +1 -0
  6. package/build/lib/commands/alert.d.ts +42 -45
  7. package/build/lib/commands/alert.d.ts.map +1 -1
  8. package/build/lib/commands/alert.js +66 -62
  9. package/build/lib/commands/alert.js.map +1 -1
  10. package/build/lib/commands/app-management.d.ts +150 -153
  11. package/build/lib/commands/app-management.d.ts.map +1 -1
  12. package/build/lib/commands/app-management.js +300 -286
  13. package/build/lib/commands/app-management.js.map +1 -1
  14. package/build/lib/commands/app-strings.d.ts +14 -17
  15. package/build/lib/commands/app-strings.d.ts.map +1 -1
  16. package/build/lib/commands/app-strings.js +23 -24
  17. package/build/lib/commands/app-strings.js.map +1 -1
  18. package/build/lib/commands/appearance.d.ts +19 -22
  19. package/build/lib/commands/appearance.d.ts.map +1 -1
  20. package/build/lib/commands/appearance.js +56 -56
  21. package/build/lib/commands/appearance.js.map +1 -1
  22. package/build/lib/commands/audit.d.ts +22 -17
  23. package/build/lib/commands/audit.d.ts.map +1 -1
  24. package/build/lib/commands/audit.js +17 -18
  25. package/build/lib/commands/audit.js.map +1 -1
  26. package/build/lib/commands/battery.d.ts +11 -14
  27. package/build/lib/commands/battery.d.ts.map +1 -1
  28. package/build/lib/commands/battery.js +36 -37
  29. package/build/lib/commands/battery.js.map +1 -1
  30. package/build/lib/commands/biometric.d.ts +30 -33
  31. package/build/lib/commands/biometric.d.ts.map +1 -1
  32. package/build/lib/commands/biometric.js +42 -41
  33. package/build/lib/commands/biometric.js.map +1 -1
  34. package/build/lib/commands/certificate.d.ts +48 -45
  35. package/build/lib/commands/certificate.d.ts.map +1 -1
  36. package/build/lib/commands/certificate.js +218 -205
  37. package/build/lib/commands/certificate.js.map +1 -1
  38. package/build/lib/commands/clipboard.d.ts +19 -22
  39. package/build/lib/commands/clipboard.d.ts.map +1 -1
  40. package/build/lib/commands/clipboard.js +30 -30
  41. package/build/lib/commands/clipboard.js.map +1 -1
  42. package/build/lib/commands/condition.d.ts +49 -26
  43. package/build/lib/commands/condition.d.ts.map +1 -1
  44. package/build/lib/commands/condition.js +87 -86
  45. package/build/lib/commands/condition.js.map +1 -1
  46. package/build/lib/commands/content-size.d.ts +26 -29
  47. package/build/lib/commands/content-size.d.ts.map +1 -1
  48. package/build/lib/commands/content-size.js +36 -36
  49. package/build/lib/commands/content-size.js.map +1 -1
  50. package/build/lib/commands/context.d.ts +161 -108
  51. package/build/lib/commands/context.d.ts.map +1 -1
  52. package/build/lib/commands/context.js +530 -517
  53. package/build/lib/commands/context.js.map +1 -1
  54. package/build/lib/commands/deviceInfo.d.ts +9 -12
  55. package/build/lib/commands/deviceInfo.d.ts.map +1 -1
  56. package/build/lib/commands/deviceInfo.js +17 -18
  57. package/build/lib/commands/deviceInfo.js.map +1 -1
  58. package/build/lib/commands/element.d.ts +102 -105
  59. package/build/lib/commands/element.d.ts.map +1 -1
  60. package/build/lib/commands/element.js +337 -323
  61. package/build/lib/commands/element.js.map +1 -1
  62. package/build/lib/commands/execute.d.ts +24 -19
  63. package/build/lib/commands/execute.d.ts.map +1 -1
  64. package/build/lib/commands/execute.js +63 -62
  65. package/build/lib/commands/execute.js.map +1 -1
  66. package/build/lib/commands/file-movement.d.ts +77 -80
  67. package/build/lib/commands/file-movement.d.ts.map +1 -1
  68. package/build/lib/commands/file-movement.js +130 -124
  69. package/build/lib/commands/file-movement.js.map +1 -1
  70. package/build/lib/commands/find.d.ts +18 -21
  71. package/build/lib/commands/find.d.ts.map +1 -1
  72. package/build/lib/commands/find.js +158 -156
  73. package/build/lib/commands/find.js.map +1 -1
  74. package/build/lib/commands/general.d.ts +124 -116
  75. package/build/lib/commands/general.d.ts.map +1 -1
  76. package/build/lib/commands/general.js +248 -232
  77. package/build/lib/commands/general.js.map +1 -1
  78. package/build/lib/commands/geolocation.d.ts +43 -46
  79. package/build/lib/commands/geolocation.d.ts.map +1 -1
  80. package/build/lib/commands/geolocation.js +10 -11
  81. package/build/lib/commands/geolocation.js.map +1 -1
  82. package/build/lib/commands/gesture.d.ts +273 -276
  83. package/build/lib/commands/gesture.d.ts.map +1 -1
  84. package/build/lib/commands/gesture.js +506 -492
  85. package/build/lib/commands/gesture.js.map +1 -1
  86. package/build/lib/commands/increase-contrast.d.ts +20 -23
  87. package/build/lib/commands/increase-contrast.d.ts.map +1 -1
  88. package/build/lib/commands/increase-contrast.js +30 -30
  89. package/build/lib/commands/increase-contrast.js.map +1 -1
  90. package/build/lib/commands/iohid.d.ts +1370 -1373
  91. package/build/lib/commands/iohid.d.ts.map +1 -1
  92. package/build/lib/commands/iohid.js +30 -31
  93. package/build/lib/commands/iohid.js.map +1 -1
  94. package/build/lib/commands/keyboard.d.ts +29 -32
  95. package/build/lib/commands/keyboard.d.ts.map +1 -1
  96. package/build/lib/commands/keyboard.js +53 -51
  97. package/build/lib/commands/keyboard.js.map +1 -1
  98. package/build/lib/commands/keychains.d.ts +9 -12
  99. package/build/lib/commands/keychains.d.ts.map +1 -1
  100. package/build/lib/commands/keychains.js +13 -14
  101. package/build/lib/commands/keychains.js.map +1 -1
  102. package/build/lib/commands/localization.d.ts +16 -19
  103. package/build/lib/commands/localization.d.ts.map +1 -1
  104. package/build/lib/commands/localization.js +25 -26
  105. package/build/lib/commands/localization.js.map +1 -1
  106. package/build/lib/commands/location.d.ts +36 -39
  107. package/build/lib/commands/location.d.ts.map +1 -1
  108. package/build/lib/commands/location.js +99 -98
  109. package/build/lib/commands/location.js.map +1 -1
  110. package/build/lib/commands/lock.d.ts +21 -24
  111. package/build/lib/commands/lock.d.ts.map +1 -1
  112. package/build/lib/commands/lock.js +39 -38
  113. package/build/lib/commands/lock.js.map +1 -1
  114. package/build/lib/commands/log.d.ts +43 -37
  115. package/build/lib/commands/log.d.ts.map +1 -1
  116. package/build/lib/commands/log.js +174 -171
  117. package/build/lib/commands/log.js.map +1 -1
  118. package/build/lib/commands/memory.d.ts +9 -12
  119. package/build/lib/commands/memory.d.ts.map +1 -1
  120. package/build/lib/commands/memory.js +37 -39
  121. package/build/lib/commands/memory.js.map +1 -1
  122. package/build/lib/commands/navigation.d.ts +30 -33
  123. package/build/lib/commands/navigation.d.ts.map +1 -1
  124. package/build/lib/commands/navigation.js +92 -92
  125. package/build/lib/commands/navigation.js.map +1 -1
  126. package/build/lib/commands/notifications.d.ts +26 -29
  127. package/build/lib/commands/notifications.d.ts.map +1 -1
  128. package/build/lib/commands/notifications.js +53 -53
  129. package/build/lib/commands/notifications.js.map +1 -1
  130. package/build/lib/commands/pasteboard.d.ts +21 -24
  131. package/build/lib/commands/pasteboard.d.ts.map +1 -1
  132. package/build/lib/commands/pasteboard.js +37 -37
  133. package/build/lib/commands/pasteboard.js.map +1 -1
  134. package/build/lib/commands/pcap.d.ts +39 -26
  135. package/build/lib/commands/pcap.d.ts.map +1 -1
  136. package/build/lib/commands/pcap.js +81 -81
  137. package/build/lib/commands/pcap.js.map +1 -1
  138. package/build/lib/commands/performance.d.ts +63 -44
  139. package/build/lib/commands/performance.d.ts.map +1 -1
  140. package/build/lib/commands/performance.js +105 -105
  141. package/build/lib/commands/performance.js.map +1 -1
  142. package/build/lib/commands/permissions.d.ts +33 -36
  143. package/build/lib/commands/permissions.d.ts.map +1 -1
  144. package/build/lib/commands/permissions.js +66 -65
  145. package/build/lib/commands/permissions.js.map +1 -1
  146. package/build/lib/commands/proxy-helper.d.ts +12 -15
  147. package/build/lib/commands/proxy-helper.d.ts.map +1 -1
  148. package/build/lib/commands/proxy-helper.js +53 -54
  149. package/build/lib/commands/proxy-helper.js.map +1 -1
  150. package/build/lib/commands/record-audio.d.ts +49 -29
  151. package/build/lib/commands/record-audio.d.ts.map +1 -1
  152. package/build/lib/commands/record-audio.js +100 -104
  153. package/build/lib/commands/record-audio.js.map +1 -1
  154. package/build/lib/commands/recordscreen.d.ts +54 -18
  155. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  156. package/build/lib/commands/recordscreen.js +127 -129
  157. package/build/lib/commands/recordscreen.js.map +1 -1
  158. package/build/lib/commands/screenshots.d.ts +14 -17
  159. package/build/lib/commands/screenshots.d.ts.map +1 -1
  160. package/build/lib/commands/screenshots.js +108 -107
  161. package/build/lib/commands/screenshots.js.map +1 -1
  162. package/build/lib/commands/simctl.d.ts +11 -14
  163. package/build/lib/commands/simctl.d.ts.map +1 -1
  164. package/build/lib/commands/simctl.js +23 -26
  165. package/build/lib/commands/simctl.js.map +1 -1
  166. package/build/lib/commands/source.d.ts +14 -17
  167. package/build/lib/commands/source.d.ts.map +1 -1
  168. package/build/lib/commands/source.js +40 -43
  169. package/build/lib/commands/source.js.map +1 -1
  170. package/build/lib/commands/timeouts.d.ts +44 -33
  171. package/build/lib/commands/timeouts.d.ts.map +1 -1
  172. package/build/lib/commands/timeouts.js +65 -63
  173. package/build/lib/commands/timeouts.js.map +1 -1
  174. package/build/lib/commands/web.d.ts +247 -197
  175. package/build/lib/commands/web.d.ts.map +1 -1
  176. package/build/lib/commands/web.js +815 -786
  177. package/build/lib/commands/web.js.map +1 -1
  178. package/build/lib/commands/xctest-record-screen.d.ts +63 -66
  179. package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
  180. package/build/lib/commands/xctest-record-screen.js +103 -102
  181. package/build/lib/commands/xctest-record-screen.js.map +1 -1
  182. package/build/lib/commands/xctest.d.ts +55 -51
  183. package/build/lib/commands/xctest.d.ts.map +1 -1
  184. package/build/lib/commands/xctest.js +116 -117
  185. package/build/lib/commands/xctest.js.map +1 -1
  186. package/build/lib/driver.d.ts +278 -1597
  187. package/build/lib/driver.d.ts.map +1 -1
  188. package/build/lib/driver.js +320 -236
  189. package/build/lib/driver.js.map +1 -1
  190. package/build/lib/execute-method-map.d.ts.map +1 -1
  191. package/build/lib/execute-method-map.js +9 -0
  192. package/build/lib/execute-method-map.js.map +1 -1
  193. package/build/lib/real-device.d.ts +1 -1
  194. package/build/lib/real-device.d.ts.map +1 -1
  195. package/build/lib/real-device.js +2 -2
  196. package/build/lib/real-device.js.map +1 -1
  197. package/lib/commands/active-app-info.js +12 -0
  198. package/lib/commands/alert.js +68 -65
  199. package/lib/commands/app-management.js +308 -301
  200. package/lib/commands/app-strings.js +24 -26
  201. package/lib/commands/appearance.js +54 -56
  202. package/lib/commands/audit.js +18 -20
  203. package/lib/commands/battery.js +35 -37
  204. package/lib/commands/biometric.js +44 -46
  205. package/lib/commands/certificate.js +226 -215
  206. package/lib/commands/clipboard.js +30 -32
  207. package/lib/commands/condition.js +98 -100
  208. package/lib/commands/content-size.js +36 -38
  209. package/lib/commands/context.js +495 -490
  210. package/lib/commands/deviceInfo.js +19 -20
  211. package/lib/commands/element.js +367 -357
  212. package/lib/commands/execute.js +72 -72
  213. package/lib/commands/file-movement.js +132 -134
  214. package/lib/commands/find.js +160 -159
  215. package/lib/commands/general.js +238 -231
  216. package/lib/commands/geolocation.js +6 -14
  217. package/lib/commands/gesture.js +525 -515
  218. package/lib/commands/increase-contrast.js +30 -32
  219. package/lib/commands/iohid.js +32 -34
  220. package/lib/commands/keyboard.js +49 -51
  221. package/lib/commands/keychains.js +12 -14
  222. package/lib/commands/localization.js +24 -26
  223. package/lib/commands/location.js +102 -104
  224. package/lib/commands/lock.js +38 -38
  225. package/lib/commands/log.js +197 -198
  226. package/lib/commands/memory.js +40 -43
  227. package/lib/commands/navigation.js +96 -100
  228. package/lib/commands/notifications.js +57 -59
  229. package/lib/commands/pasteboard.js +37 -39
  230. package/lib/commands/pcap.js +84 -86
  231. package/lib/commands/performance.js +132 -133
  232. package/lib/commands/permissions.js +67 -69
  233. package/lib/commands/proxy-helper.js +60 -61
  234. package/lib/commands/record-audio.js +115 -120
  235. package/lib/commands/recordscreen.js +145 -149
  236. package/lib/commands/screenshots.js +116 -116
  237. package/lib/commands/simctl.js +25 -29
  238. package/lib/commands/source.js +42 -46
  239. package/lib/commands/timeouts.js +59 -63
  240. package/lib/commands/web.js +878 -858
  241. package/lib/commands/xctest-record-screen.js +103 -105
  242. package/lib/commands/xctest.js +134 -139
  243. package/lib/driver.js +288 -236
  244. package/lib/execute-method-map.ts +9 -0
  245. package/lib/real-device.js +2 -2
  246. package/npm-shrinkwrap.json +440 -76
  247. package/package.json +2 -1
  248. package/build/lib/commands/activeAppInfo.d.ts +0 -12
  249. package/build/lib/commands/activeAppInfo.d.ts.map +0 -1
  250. package/build/lib/commands/activeAppInfo.js +0 -15
  251. package/build/lib/commands/activeAppInfo.js.map +0 -1
  252. package/build/lib/commands/index.d.ts +0 -96
  253. package/build/lib/commands/index.d.ts.map +0 -1
  254. package/build/lib/commands/index.js +0 -100
  255. package/build/lib/commands/index.js.map +0 -1
  256. package/build/lib/real-device-clients/devicectl.d.ts +0 -204
  257. package/build/lib/real-device-clients/devicectl.d.ts.map +0 -1
  258. package/build/lib/real-device-clients/devicectl.js +0 -264
  259. package/build/lib/real-device-clients/devicectl.js.map +0 -1
  260. package/lib/commands/activeAppInfo.js +0 -14
  261. package/lib/commands/index.js +0 -95
  262. package/lib/real-device-clients/devicectl.js +0 -291
@@ -1 +1 @@
1
- {"version":3,"file":"app-management.js","sourceRoot":"","sources":["../../../lib/commands/app-management.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AACvB,4CAAwC;AACxC,0CAAqC;AACrC,yDAA2C;AAC3C,0DAA6B;AAC7B,wDAAyB;AACzB,4CAIsB;AAEtB,kBAAe;IACb;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,gBAAgB,CAAC,GAAG,EAAE,SAAS,EAAE,YAAY;QACjD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE;YACtD,aAAa,EAAE,8BAAkB,CAAC,IAAI,CAAC,IAAI,CAAC;Y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,CAAC;IACF,IAAI,OAAO,IAAI,CAAC,gBAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,gBAAC,CAAC,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;QACjE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;IAC1F,CAAC;SAAM,CAAC;QACN,cAAc,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,mDAAmD;YACjD,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,4BAA4B,CACzD,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,KAAK,UAAU,CAAC,CAAC;AACpF,CAAC;AAED;;;GAGG"}
@@ -1,19 +1,16 @@
1
- declare namespace _default {
2
- /**
3
- * Return the language-specific strings for an app
4
- *
5
- * @param {string} language - The language abbreviation to fetch app strings mapping for.
6
- * If no language is provided then strings for the 'en language would be returned
7
- * @param {string|null} [stringFile=null] - Relative path to the corresponding .strings
8
- * file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
9
- * then Appium will make its best guess where the file is.
10
- *
11
- * @returns {Promise<import('@appium/types').StringRecord<string>>} A record of localized keys to localized text
12
- *
13
- * @this {XCUITestDriver}
14
- */
15
- function getStrings(this: import("../driver").XCUITestDriver, language: string, stringFile?: string | null): Promise<import("@appium/types").StringRecord<string>>;
16
- }
17
- export default _default;
1
+ /**
2
+ * Return the language-specific strings for an app
3
+ *
4
+ * @param {string} language - The language abbreviation to fetch app strings mapping for.
5
+ * If no language is provided then strings for the 'en language would be returned
6
+ * @param {string|null} [stringFile=null] - Relative path to the corresponding .strings
7
+ * file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
8
+ * then Appium will make its best guess where the file is.
9
+ *
10
+ * @returns {Promise<import('@appium/types').StringRecord<string>>} A record of localized keys to localized text
11
+ *
12
+ * @this {XCUITestDriver}
13
+ */
14
+ export function getStrings(this: import("../driver").XCUITestDriver, language: string, stringFile?: string | null): Promise<import("@appium/types").StringRecord<string>>;
18
15
  export type XCUITestDriver = import("../driver").XCUITestDriver;
19
16
  //# sourceMappingURL=app-strings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-strings.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":";IAGE;;;;;;;;;;;;OAYG;IACH,wEAVW,MAAM,eAEN,MAAM,GAAC,IAAI,GAIT,OAAO,CAAC,OAAO,eAAe,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAcjE;;;6BAIU,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"app-strings.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,+EAVW,MAAM,eAEN,MAAM,GAAC,IAAI,GAIT,OAAO,CAAC,OAAO,eAAe,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAcjE;6BAGY,OAAO,WAAW,EAAE,cAAc"}
@@ -1,30 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStrings = getStrings;
3
4
  const app_utils_1 = require("../app-utils");
4
- exports.default = {
5
- /**
6
- * Return the language-specific strings for an app
7
- *
8
- * @param {string} language - The language abbreviation to fetch app strings mapping for.
9
- * If no language is provided then strings for the 'en language would be returned
10
- * @param {string|null} [stringFile=null] - Relative path to the corresponding .strings
11
- * file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
12
- * then Appium will make its best guess where the file is.
13
- *
14
- * @returns {Promise<import('@appium/types').StringRecord<string>>} A record of localized keys to localized text
15
- *
16
- * @this {XCUITestDriver}
17
- */
18
- async getStrings(language, stringFile = null) {
19
- this.log.debug(`Gettings strings for language '${language}' and string file '${stringFile}'`);
20
- return await app_utils_1.parseLocalizableStrings.bind(this)({
21
- ...this.opts,
22
- language,
23
- stringFile,
24
- strictMode: true,
25
- });
26
- },
27
- };
5
+ /**
6
+ * Return the language-specific strings for an app
7
+ *
8
+ * @param {string} language - The language abbreviation to fetch app strings mapping for.
9
+ * If no language is provided then strings for the 'en language would be returned
10
+ * @param {string|null} [stringFile=null] - Relative path to the corresponding .strings
11
+ * file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
12
+ * then Appium will make its best guess where the file is.
13
+ *
14
+ * @returns {Promise<import('@appium/types').StringRecord<string>>} A record of localized keys to localized text
15
+ *
16
+ * @this {XCUITestDriver}
17
+ */
18
+ async function getStrings(language, stringFile = null) {
19
+ this.log.debug(`Gettings strings for language '${language}' and string file '${stringFile}'`);
20
+ return await app_utils_1.parseLocalizableStrings.bind(this)({
21
+ ...this.opts,
22
+ language,
23
+ stringFile,
24
+ strictMode: true,
25
+ });
26
+ }
28
27
  /**
29
28
  * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
30
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":";;AAAA,4CAAqD;AAErD,kBAAe;IACb;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI;QAC1C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kCAAkC,QAAQ,sBAAsB,UAAU,GAAG,CAAC,CAAC;QAC9F,OAAO,MAAM,mCAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC7C;YACE,GAAG,IAAI,CAAC,IAAI;YACZ,QAAQ;YACR,UAAU;YACV,UAAU,EAAE,IAAI;SACjB,CACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;GAEG"}
1
+ {"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":";;AAeA,gCAUC;AAzBD,4CAAqD;AAErD;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI;IAC1D,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kCAAkC,QAAQ,sBAAsB,UAAU,GAAG,CAAC,CAAC;IAC9F,OAAO,MAAM,mCAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC7C;QACE,GAAG,IAAI,CAAC,IAAI;QACZ,QAAQ;QACR,UAAU;QACV,UAAU,EAAE,IAAI;KACjB,CACF,CAAC;AACJ,CAAC;AAED;;GAEG"}
@@ -1,25 +1,22 @@
1
- declare namespace _default {
2
- /**
3
- * Set the device's UI appearance style
4
- *
5
- * @since iOS 12.0
6
- * @param {'dark'|'light'} style - The appearance style to set
7
- * @throws {Error} if the current platform does not support UI appearance changes
8
- * @this {XCUITestDriver}
9
- */
10
- function mobileSetAppearance(this: import("../driver").XCUITestDriver, style: "dark" | "light"): Promise<undefined>;
11
- /**
12
- * Get the device's UI appearance style.
13
- *
14
- * @since Xcode SDK 11
15
- * @returns {Promise<{style: Style}>}
16
- * @this {XCUITestDriver}
17
- */
18
- function mobileGetAppearance(this: import("../driver").XCUITestDriver): Promise<{
19
- style: Style;
20
- }>;
21
- }
22
- export default _default;
1
+ /**
2
+ * Set the device's UI appearance style
3
+ *
4
+ * @since iOS 12.0
5
+ * @param {'dark'|'light'} style - The appearance style to set
6
+ * @throws {Error} if the current platform does not support UI appearance changes
7
+ * @this {XCUITestDriver}
8
+ */
9
+ export function mobileSetAppearance(this: import("../driver").XCUITestDriver, style: "dark" | "light"): Promise<undefined>;
10
+ /**
11
+ * Get the device's UI appearance style.
12
+ *
13
+ * @since Xcode SDK 11
14
+ * @returns {Promise<{style: Style}>}
15
+ * @this {XCUITestDriver}
16
+ */
17
+ export function mobileGetAppearance(this: import("../driver").XCUITestDriver): Promise<{
18
+ style: Style;
19
+ }>;
23
20
  export type XCUITestDriver = import("../driver").XCUITestDriver;
24
21
  export type Style = import("./types").Style;
25
22
  //# sourceMappingURL=appearance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":";IAIE;;;;;;;OAOG;IACH,8EAJW,MAAM,GAAC,OAAO,sBA0BxB;IAED;;;;;;OAMG;IACH,wEAHa,OAAO,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAC,CAAC,CA0BnC;;;6BAIU,OAAO,WAAW,EAAE,cAAc;oBAClC,OAAO,SAAS,EAAE,KAAK"}
1
+ {"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,qFAJW,MAAM,GAAC,OAAO,sBA0BxB;AAED;;;;;;GAMG;AACH,+EAHa,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAC,CAAC,CA0BnC;6BAGY,OAAO,WAAW,EAAE,cAAc;oBAClC,OAAO,SAAS,EAAE,KAAK"}
@@ -3,70 +3,70 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.mobileSetAppearance = mobileSetAppearance;
7
+ exports.mobileGetAppearance = mobileGetAppearance;
6
8
  const lodash_1 = __importDefault(require("lodash"));
7
9
  const support_1 = require("appium/support");
8
- exports.default = {
9
- /**
10
- * Set the device's UI appearance style
11
- *
12
- * @since iOS 12.0
13
- * @param {'dark'|'light'} style - The appearance style to set
14
- * @throws {Error} if the current platform does not support UI appearance changes
15
- * @this {XCUITestDriver}
16
- */
17
- async mobileSetAppearance(style) {
18
- if (!['light', 'dark'].includes(lodash_1.default.toLower(style))) {
19
- throw new Error(`The 'style' value is expected to equal either 'light' or 'dark'`);
20
- }
21
- if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
22
- throw new Error('Changing appearance is only supported since iOS 12');
23
- }
24
- if (this.isSimulator()) {
25
- try {
26
- return void (await /** @type {import('../driver').Simulator} */ (this.device).setAppearance(style));
27
- }
28
- catch (e) {
29
- this.log.debug(e.stack);
30
- }
31
- }
10
+ /**
11
+ * Set the device's UI appearance style
12
+ *
13
+ * @since iOS 12.0
14
+ * @param {'dark'|'light'} style - The appearance style to set
15
+ * @throws {Error} if the current platform does not support UI appearance changes
16
+ * @this {XCUITestDriver}
17
+ */
18
+ async function mobileSetAppearance(style) {
19
+ if (!['light', 'dark'].includes(lodash_1.default.toLower(style))) {
20
+ throw new Error(`The 'style' value is expected to equal either 'light' or 'dark'`);
21
+ }
22
+ if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
23
+ throw new Error('Changing appearance is only supported since iOS 12');
24
+ }
25
+ if (this.isSimulator()) {
32
26
  try {
33
- return void (await this.proxyCommand('/wda/device/appearance', 'POST', { name: style }, false));
27
+ return void (await /** @type {import('../driver').Simulator} */ (this.device).setAppearance(style));
34
28
  }
35
29
  catch (e) {
36
30
  this.log.debug(e.stack);
37
31
  }
38
- // Fall back to the ugly Siri workaround if the current SDK is too old
39
- await this.mobileSiriCommand(`Turn ${lodash_1.default.toLower(style) === 'dark' ? 'on' : 'off'} dark mode`);
40
- },
41
- /**
42
- * Get the device's UI appearance style.
43
- *
44
- * @since Xcode SDK 11
45
- * @returns {Promise<{style: Style}>}
46
- * @this {XCUITestDriver}
47
- */
48
- async mobileGetAppearance() {
49
- if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
50
- return { style: 'unsupported' };
51
- }
52
- /** @type {Style|undefined} */
53
- let style;
54
- if (this.isSimulator()) {
55
- try {
56
- style = /** @type {Style} */ (await /** @type {import('../driver').Simulator} */ (this.device).getAppearance());
57
- }
58
- catch { }
59
- }
60
- if (!style) {
61
- style = /** @type {Style} */ (
62
- /** @type {any} */ (await this.proxyCommand('/wda/device/info', 'GET'))
63
- ?.userInterfaceStyle ?? 'unknown');
32
+ }
33
+ try {
34
+ return void (await this.proxyCommand('/wda/device/appearance', 'POST', { name: style }, false));
35
+ }
36
+ catch (e) {
37
+ this.log.debug(e.stack);
38
+ }
39
+ // Fall back to the ugly Siri workaround if the current SDK is too old
40
+ await this.mobileSiriCommand(`Turn ${lodash_1.default.toLower(style) === 'dark' ? 'on' : 'off'} dark mode`);
41
+ }
42
+ /**
43
+ * Get the device's UI appearance style.
44
+ *
45
+ * @since Xcode SDK 11
46
+ * @returns {Promise<{style: Style}>}
47
+ * @this {XCUITestDriver}
48
+ */
49
+ async function mobileGetAppearance() {
50
+ if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
51
+ return { style: 'unsupported' };
52
+ }
53
+ /** @type {Style|undefined} */
54
+ let style;
55
+ if (this.isSimulator()) {
56
+ try {
57
+ style = /** @type {Style} */ (await /** @type {import('../driver').Simulator} */ (this.device).getAppearance());
64
58
  }
65
- return {
66
- style,
67
- };
68
- },
69
- };
59
+ catch { }
60
+ }
61
+ if (!style) {
62
+ style = /** @type {Style} */ (
63
+ /** @type {any} */ (await this.proxyCommand('/wda/device/info', 'GET'))
64
+ ?.userInterfaceStyle ?? 'unknown');
65
+ }
66
+ return {
67
+ style,
68
+ };
69
+ }
70
70
  /**
71
71
  * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
72
72
  * @typedef {import('./types').Style} Style
@@ -1 +1 @@
1
- {"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AACvB,4CAAoC;AAEpC,kBAAe;IACb;;;;;;;OA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AC;QACvB,IAAI,CAAC;YACH,KAAK,GAAG,oBAAoB,CAAC,CAC3B,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CACjF,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACZ,CAAC;IACD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,KAAK,GAAG,oBAAoB,CAAC;QAC3B,kBAAkB,CAAC,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;YACrE,EAAE,kBAAkB,IAAI,SAAS,CACpC,CAAC;IACJ,CAAC;IACD,OAAO;QACL,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;;GAGG"}
@@ -1,20 +1,25 @@
1
- declare namespace _default {
2
- /**
3
- * Performs accessibility audit of the current application according to the given type or multiple types.
4
- *
5
- * @since Xcode 15/iOS 17
6
- * @param {string[]?} auditTypes - One or more type names to perform the audit for.
7
- * The full list of available names could be found at
8
- * https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
9
- * If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
10
- *
11
- * @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
12
- *
13
- * @this {XCUITestDriver}
14
- */
15
- function mobilePerformAccessibilityAudit(this: import("../driver").XCUITestDriver, auditTypes: string[] | null): Promise<AccessibilityAuditItem[]>;
16
- }
17
- export default _default;
1
+ /**
2
+ * @typedef {Object} AccessibilityAuditItem
3
+ * @property {string} detailedDescription The detailed description of the found accessibility issue.
4
+ * @property {string} compactDescription The compact description of the found accessibility issue.
5
+ * @property {string|number} auditType The name of the audit type this issue belongs to. Could be
6
+ * a number if the type name is unknown.
7
+ * @property {string} element The description of the element this issue was found for.
8
+ */
9
+ /**
10
+ * Performs accessibility audit of the current application according to the given type or multiple types.
11
+ *
12
+ * @since Xcode 15/iOS 17
13
+ * @param {string[]?} auditTypes - One or more type names to perform the audit for.
14
+ * The full list of available names could be found at
15
+ * https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
16
+ * If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
17
+ *
18
+ * @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
19
+ *
20
+ * @this {XCUITestDriver}
21
+ */
22
+ export function mobilePerformAccessibilityAudit(this: import("../driver").XCUITestDriver, auditTypes: string[] | null): Promise<AccessibilityAuditItem[]>;
18
23
  export type AccessibilityAuditItem = {
19
24
  /**
20
25
  * The detailed description of the found accessibility issue.
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":";IAUE;;;;;;;;;;;;OAYG;IACH,+FATW,MAAM,EAAE,OAAC,GAKP,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAQ7C;;;;;;;yBAzBW,MAAM;;;;wBACN,MAAM;;;;;eACN,MAAM,GAAC,MAAM;;;;aAEb,MAAM;;6BAyBP,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AACH,sGATW,MAAM,EAAE,OAAC,GAKP,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAQ7C;;;;;yBAxBa,MAAM;;;;wBACN,MAAM;;;;;eACN,MAAM,GAAC,MAAM;;;;aAEb,MAAM;;6BAuBP,OAAO,WAAW,EAAE,cAAc"}
@@ -8,24 +8,23 @@
8
8
  * @property {string} element The description of the element this issue was found for.
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.default = {
12
- /**
13
- * Performs accessibility audit of the current application according to the given type or multiple types.
14
- *
15
- * @since Xcode 15/iOS 17
16
- * @param {string[]?} auditTypes - One or more type names to perform the audit for.
17
- * The full list of available names could be found at
18
- * https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
19
- * If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
20
- *
21
- * @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
22
- *
23
- * @this {XCUITestDriver}
24
- */
25
- async mobilePerformAccessibilityAudit(auditTypes) {
26
- return /** @type {AccessibilityAuditItem[]} */ (await this.proxyCommand('/wda/performAccessibilityAudit', 'POST', { auditTypes }));
27
- },
28
- };
11
+ exports.mobilePerformAccessibilityAudit = mobilePerformAccessibilityAudit;
12
+ /**
13
+ * Performs accessibility audit of the current application according to the given type or multiple types.
14
+ *
15
+ * @since Xcode 15/iOS 17
16
+ * @param {string[]?} auditTypes - One or more type names to perform the audit for.
17
+ * The full list of available names could be found at
18
+ * https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
19
+ * If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
20
+ *
21
+ * @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
22
+ *
23
+ * @this {XCUITestDriver}
24
+ */
25
+ async function mobilePerformAccessibilityAudit(auditTypes) {
26
+ return /** @type {AccessibilityAuditItem[]} */ (await this.proxyCommand('/wda/performAccessibilityAudit', 'POST', { auditTypes }));
27
+ }
29
28
  /**
30
29
  * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
31
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAEH,kBAAe;IACb;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,+BAA+B,CAAC,UAAU;QAC9C,OAAO,uCAAuC,CAAC,CAC7C,MAAM,IAAI,CAAC,YAAY,CAAC,gCAAgC,EAAE,MAAM,EAAE,EAAC,UAAU,EAAC,CAAC,CAChF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;GAEG"}
1
+ {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAeH,0EAIC;AAjBD;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,+BAA+B,CAAC,UAAU;IAC9D,OAAO,uCAAuC,CAAC,CAC7C,MAAM,IAAI,CAAC,YAAY,CAAC,gCAAgC,EAAE,MAAM,EAAE,EAAC,UAAU,EAAC,CAAC,CAChF,CAAC;AACJ,CAAC;AAED;;GAEG"}
@@ -1,16 +1,13 @@
1
- declare namespace _default {
2
- /**
3
- * Reads the battery information from the device under test.
4
- *
5
- * This endpoint only returns reliable result on real devices.
6
- *
7
- * @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
8
- * @this {import('../driver').XCUITestDriver}
9
- */
10
- function mobileGetBatteryInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").BatteryInfo & {
11
- advanced: Record<string, any>;
12
- }>;
13
- }
14
- export default _default;
1
+ /**
2
+ * Reads the battery information from the device under test.
3
+ *
4
+ * This endpoint only returns reliable result on real devices.
5
+ *
6
+ * @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
7
+ * @this {import('../driver').XCUITestDriver}
8
+ */
9
+ export function mobileGetBatteryInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").BatteryInfo & {
10
+ advanced: Record<string, any>;
11
+ }>;
15
12
  export type BatteryInfo = import("./types").BatteryInfo;
16
13
  //# sourceMappingURL=battery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":";IAIE;;;;;;;OAOG;IACH,yEAHa,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,GAAG;QAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAC,CAAC,CAgCpF;;;0BAIU,OAAO,SAAS,EAAE,WAAW"}
1
+ {"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,gFAHa,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,CAAC,CAgCpF;0BAGY,OAAO,SAAS,EAAE,WAAW"}
@@ -3,47 +3,46 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.mobileGetBatteryInfo = mobileGetBatteryInfo;
6
7
  const logger_js_1 = __importDefault(require("../logger.js"));
7
8
  const utils_js_1 = require("../utils.js");
8
- exports.default = {
9
- /**
10
- * Reads the battery information from the device under test.
11
- *
12
- * This endpoint only returns reliable result on real devices.
13
- *
14
- * @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
15
- * @this {import('../driver').XCUITestDriver}
16
- */
17
- async mobileGetBatteryInfo() {
18
- let batteryInfoFromShimService;
19
- if ((0, utils_js_1.isIos18OrNewer)(this.opts) && this.isRealDevice()) {
20
- let remoteXPCConnection;
21
- try {
22
- const { Services } = await import('appium-ios-remotexpc');
23
- let { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
24
- remoteXPCConnection = remoteXPC;
25
- batteryInfoFromShimService = await diagnosticsService.ioregistry({
26
- ioClass: 'IOPMPowerSource',
27
- returnRawJson: true,
28
- });
29
- }
30
- catch (err) {
31
- logger_js_1.default.error(`Failed to get battery info from DiagnosticsService: ${err.message}`);
32
- }
33
- finally {
34
- if (remoteXPCConnection) {
35
- logger_js_1.default.info(`Closing remoteXPC connection for device ${this.device.udid}`);
36
- await remoteXPCConnection.close();
37
- }
9
+ /**
10
+ * Reads the battery information from the device under test.
11
+ *
12
+ * This endpoint only returns reliable result on real devices.
13
+ *
14
+ * @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
15
+ * @this {import('../driver').XCUITestDriver}
16
+ */
17
+ async function mobileGetBatteryInfo() {
18
+ let batteryInfoFromShimService;
19
+ if ((0, utils_js_1.isIos18OrNewer)(this.opts) && this.isRealDevice()) {
20
+ let remoteXPCConnection;
21
+ try {
22
+ const { Services } = await import('appium-ios-remotexpc');
23
+ let { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
24
+ remoteXPCConnection = remoteXPC;
25
+ batteryInfoFromShimService = await diagnosticsService.ioregistry({
26
+ ioClass: 'IOPMPowerSource',
27
+ returnRawJson: true,
28
+ });
29
+ }
30
+ catch (err) {
31
+ logger_js_1.default.error(`Failed to get battery info from DiagnosticsService: ${err.message}`);
32
+ }
33
+ finally {
34
+ if (remoteXPCConnection) {
35
+ logger_js_1.default.info(`Closing remoteXPC connection for device ${this.device.udid}`);
36
+ await remoteXPCConnection.close();
38
37
  }
39
38
  }
40
- const batteryInfoFromWda = /** @type {import('./types').BatteryInfo}} */ (await this.proxyCommand('/wda/batteryInfo', 'GET'));
41
- return {
42
- ...batteryInfoFromWda,
43
- advanced: batteryInfoFromShimService || {},
44
- };
45
- },
46
- };
39
+ }
40
+ const batteryInfoFromWda = /** @type {import('./types').BatteryInfo}} */ (await this.proxyCommand('/wda/batteryInfo', 'GET'));
41
+ return {
42
+ ...batteryInfoFromWda,
43
+ advanced: batteryInfoFromShimService || {},
44
+ };
45
+ }
47
46
  /**
48
47
  * @typedef {import('./types').BatteryInfo} BatteryInfo
49
48
  */
@@ -1 +1 @@
1
- {"version":3,"file":"battery.js","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":";;;;;AAAA,6DAA+B;AAC/B,0CAA6C;AAE7C,kBAAe;IACb;;;;;;;OAOG;IACH,KAAK,CAAC,oBAAoB;QACxB,IAAI,0BAA0B,CAAC;QAC/B,IAAI,IAAA,yBAAc,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;YACrD,IAAI,mBAAmB,CAAC;YACx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