@solutionforest/android-health-connect 0.0.0-stage → 0.3.13

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 (59) hide show
  1. package/AndroidHealthConnect.podspec +20 -0
  2. package/CHANGELOG.md +202 -0
  3. package/LICENSE +20 -0
  4. package/README.md +847 -2
  5. package/SECURITY.md +99 -0
  6. package/android/build.gradle +104 -0
  7. package/android/src/main/AndroidManifest.xml +4 -0
  8. package/android/src/main/java/com/androidhealthconnect/AggregateMapper.kt +521 -0
  9. package/android/src/main/java/com/androidhealthconnect/AndroidHealthConnectModule.kt +637 -0
  10. package/android/src/main/java/com/androidhealthconnect/AndroidHealthConnectPackage.kt +31 -0
  11. package/android/src/main/java/com/androidhealthconnect/AvailabilitySupport.kt +149 -0
  12. package/android/src/main/java/com/androidhealthconnect/ChangesMapper.kt +105 -0
  13. package/android/src/main/java/com/androidhealthconnect/ExtendedRecordMapper.kt +665 -0
  14. package/android/src/main/java/com/androidhealthconnect/FeatureSupport.kt +88 -0
  15. package/android/src/main/java/com/androidhealthconnect/PhrMapper.kt +187 -0
  16. package/android/src/main/java/com/androidhealthconnect/PlannedExerciseMapper.kt +242 -0
  17. package/android/src/main/java/com/androidhealthconnect/RecordMapper.kt +1222 -0
  18. package/app.plugin.js +1 -0
  19. package/docs/assets/logo.jpg +0 -0
  20. package/ios/AndroidHealthConnect.h +5 -0
  21. package/ios/AndroidHealthConnect.mm +21 -0
  22. package/lib/module/NativeAndroidHealthConnect.js +5 -0
  23. package/lib/module/NativeAndroidHealthConnect.js.map +1 -0
  24. package/lib/module/foreground.js +117 -0
  25. package/lib/module/foreground.js.map +1 -0
  26. package/lib/module/helpers.js +280 -0
  27. package/lib/module/helpers.js.map +1 -0
  28. package/lib/module/index.js +354 -0
  29. package/lib/module/index.js.map +1 -0
  30. package/lib/module/package.json +1 -0
  31. package/lib/module/types.js +392 -0
  32. package/lib/module/types.js.map +1 -0
  33. package/lib/module/upgrade.js +101 -0
  34. package/lib/module/upgrade.js.map +1 -0
  35. package/lib/typescript/package.json +1 -0
  36. package/lib/typescript/plugin/src/index.d.ts +14 -0
  37. package/lib/typescript/plugin/src/index.d.ts.map +1 -0
  38. package/lib/typescript/src/NativeAndroidHealthConnect.d.ts +95 -0
  39. package/lib/typescript/src/NativeAndroidHealthConnect.d.ts.map +1 -0
  40. package/lib/typescript/src/foreground.d.ts +43 -0
  41. package/lib/typescript/src/foreground.d.ts.map +1 -0
  42. package/lib/typescript/src/helpers.d.ts +108 -0
  43. package/lib/typescript/src/helpers.d.ts.map +1 -0
  44. package/lib/typescript/src/index.d.ts +208 -0
  45. package/lib/typescript/src/index.d.ts.map +1 -0
  46. package/lib/typescript/src/types.d.ts +1209 -0
  47. package/lib/typescript/src/types.d.ts.map +1 -0
  48. package/lib/typescript/src/upgrade.d.ts +26 -0
  49. package/lib/typescript/src/upgrade.d.ts.map +1 -0
  50. package/package.json +255 -4
  51. package/plugin/build/index.d.ts +13 -0
  52. package/plugin/build/index.js +57 -0
  53. package/plugin/src/index.ts +105 -0
  54. package/src/NativeAndroidHealthConnect.ts +133 -0
  55. package/src/foreground.ts +167 -0
  56. package/src/helpers.ts +373 -0
  57. package/src/index.tsx +623 -0
  58. package/src/types.ts +1525 -0
  59. package/src/upgrade.ts +155 -0
@@ -0,0 +1,354 @@
1
+ "use strict";
2
+
3
+ import NativeAndroidHealthConnect from "./NativeAndroidHealthConnect.js";
4
+ export * from "./types.js";
5
+ export { LIBRARY_VERSION, checkLibraryUpdate, compareSemver } from "./upgrade.js";
6
+ export { ensurePermissions, timeRangeLastHours, timeRangeLastDays, timeRangeToday, pollUntil, waitUntil, waitForRecords, WaitTimeoutError, WaitForRecordsTimeoutError, readAllRecords, pullChanges } from "./helpers.js";
7
+ export { pollOnForeground, useForegroundPoll } from "./foreground.js";
8
+ // ─── Availability ─────────────────────────────────────────────────────────────
9
+
10
+ /**
11
+ * Returns the Health Connect availability status for this device.
12
+ *
13
+ * - `'available'` – HC is ready (`sdkStatus` 3 = SDK_AVAILABLE).
14
+ * - `'notInstalled'` – install/update HC provider (`sdkStatus` 2).
15
+ * - `'notSupported'` – OS too old, no GMS / China / HMS, or otherwise unusable (`sdkStatus` 1).
16
+ *
17
+ * Prefer {@link getHealthConnectAvailability} when you need provider / GMS details.
18
+ */
19
+ export async function isHealthConnectAvailable() {
20
+ const status = await NativeAndroidHealthConnect.isHealthConnectAvailable();
21
+ return status;
22
+ }
23
+
24
+ /**
25
+ * Detailed availability: built-in (Android 14+) vs Play APK, GMS / Play Store
26
+ * presence, raw sdkStatus, and human-readable advice (incl. China / HMS).
27
+ */
28
+ export async function getHealthConnectAvailability() {
29
+ const json = await NativeAndroidHealthConnect.getHealthConnectAvailability();
30
+ return JSON.parse(json);
31
+ }
32
+
33
+ // ─── Permissions ─────────────────────────────────────────────────────────────
34
+
35
+ /**
36
+ * Opens the Health Connect permission dialog for the supplied permissions.
37
+ * Returns the list of permissions actually granted by the user.
38
+ */
39
+ export async function requestPermissions(permissions) {
40
+ const granted = await NativeAndroidHealthConnect.requestPermissions(permissions);
41
+ return Array.from(granted);
42
+ }
43
+
44
+ /**
45
+ * Checks which of the supplied permissions are currently granted.
46
+ * Returns only the granted subset.
47
+ */
48
+ export async function checkPermissions(permissions) {
49
+ const granted = await NativeAndroidHealthConnect.checkPermissions(permissions);
50
+ return Array.from(granted);
51
+ }
52
+
53
+ /**
54
+ * True when every permission in `permissions` is currently granted.
55
+ */
56
+ export async function hasPermissions(permissions) {
57
+ if (permissions.length === 0) {
58
+ return true;
59
+ }
60
+ const granted = await checkPermissions(permissions);
61
+ const grantedSet = new Set(granted);
62
+ return permissions.every(p => grantedSet.has(p));
63
+ }
64
+
65
+ /**
66
+ * Permissions from `permissions` that are not currently granted.
67
+ */
68
+ export async function missingPermissions(permissions) {
69
+ if (permissions.length === 0) {
70
+ return [];
71
+ }
72
+ const granted = await checkPermissions(permissions);
73
+ const grantedSet = new Set(granted);
74
+ return permissions.filter(p => !grantedSet.has(p));
75
+ }
76
+
77
+ /**
78
+ * Quick availability gate. Returns the status; when `notInstalled` and
79
+ * `openStoreIfMissing` is true (default), opens Play Store / Settings via
80
+ * {@link openHealthConnectApp}.
81
+ */
82
+ export async function ensureAvailable(options = {}) {
83
+ const {
84
+ openStoreIfMissing = true
85
+ } = options;
86
+ const status = await isHealthConnectAvailable();
87
+ if (status === 'notInstalled' && openStoreIfMissing) {
88
+ openHealthConnectApp();
89
+ }
90
+ return status;
91
+ }
92
+
93
+ /**
94
+ * Revokes all Health Connect permissions granted to this application.
95
+ */
96
+ export async function revokeAllPermissions() {
97
+ await NativeAndroidHealthConnect.revokeAllPermissions();
98
+ }
99
+
100
+ /** Opens the Health Connect main settings screen. */
101
+ export function openHealthConnectSettings() {
102
+ NativeAndroidHealthConnect.openHealthConnectSettings();
103
+ }
104
+
105
+ /**
106
+ * Opens the Health Connect data-management / permissions screen.
107
+ * Pass your app's package name to jump directly to its permission page,
108
+ * or omit / pass an empty string to open the general management screen.
109
+ */
110
+ export function openHealthConnectDataManagement(packageName) {
111
+ NativeAndroidHealthConnect.openHealthConnectDataManagement(packageName ?? '');
112
+ }
113
+
114
+ /**
115
+ * Opens the Health Connect app.
116
+ * If the HC app is not installed, opens the Play Store listing instead.
117
+ */
118
+ export function openHealthConnectApp() {
119
+ NativeAndroidHealthConnect.openHealthConnectApp();
120
+ }
121
+
122
+ // ─── Records – generic read / write / delete ─────────────────────────────────
123
+
124
+ /**
125
+ * Reads health records of a specific type.
126
+ *
127
+ * @example
128
+ * const { records } = await readRecords('Steps', {
129
+ * timeRangeFilter: { startTime: '2024-01-01T00:00:00Z', endTime: '2024-01-02T00:00:00Z' },
130
+ * });
131
+ */
132
+ export async function readRecords(recordType, options = {}) {
133
+ const json = await NativeAndroidHealthConnect.readRecords(recordType, JSON.stringify(options));
134
+ return JSON.parse(json);
135
+ }
136
+
137
+ /**
138
+ * Inserts one or more health records into Health Connect.
139
+ * Returns the IDs assigned by Health Connect.
140
+ *
141
+ * @example
142
+ * const { recordIdsList } = await writeRecords([
143
+ * { recordType: 'Steps', count: 1000, startTime: '...', endTime: '...' },
144
+ * ]);
145
+ */
146
+ export async function writeRecords(records) {
147
+ const json = await NativeAndroidHealthConnect.writeRecords(JSON.stringify(records));
148
+ return JSON.parse(json);
149
+ }
150
+
151
+ /**
152
+ * Updates existing Health Connect records. Each record must include
153
+ * `metadata.id` from a previous read (or insert response + re-read).
154
+ */
155
+ export async function updateRecords(records) {
156
+ await NativeAndroidHealthConnect.updateRecords(JSON.stringify(records));
157
+ }
158
+
159
+ /**
160
+ * Deletes all records of the given type within the supplied time range.
161
+ */
162
+ export async function deleteRecordsByTime(recordType, startTime, endTime) {
163
+ await NativeAndroidHealthConnect.deleteRecordsByTime(recordType, startTime, endTime);
164
+ }
165
+
166
+ /**
167
+ * Deletes specific records by their Health Connect IDs.
168
+ */
169
+ export async function deleteRecordsById(recordType, recordIds) {
170
+ await NativeAndroidHealthConnect.deleteRecordsById(recordType, recordIds);
171
+ }
172
+
173
+ // ─── Aggregates ───────────────────────────────────────────────────────────────
174
+
175
+ /**
176
+ * Aggregates metrics for a record type over a time range (Instant filter).
177
+ * Metric keys follow Health Connect (`COUNT_TOTAL`, `BPM_AVG`, …).
178
+ */
179
+ export async function aggregateRecord(request) {
180
+ const json = await NativeAndroidHealthConnect.aggregateRecord(JSON.stringify(request));
181
+ return JSON.parse(json);
182
+ }
183
+
184
+ /**
185
+ * Aggregates into fixed-duration buckets using Instant time ranges
186
+ * (avoids Android 14+ UTC wall-clock shift with LocalDateTime).
187
+ */
188
+ export async function aggregateGroupByDuration(request) {
189
+ const json = await NativeAndroidHealthConnect.aggregateGroupByDuration(JSON.stringify(request));
190
+ return JSON.parse(json);
191
+ }
192
+
193
+ /**
194
+ * Aggregates into calendar period buckets (days/weeks/months/years).
195
+ * Instant inputs are converted to LocalDateTime in the device zone
196
+ * (required by Health Connect for period grouping).
197
+ */
198
+ export async function aggregateGroupByPeriod(request) {
199
+ const json = await NativeAndroidHealthConnect.aggregateGroupByPeriod(JSON.stringify(request));
200
+ return JSON.parse(json);
201
+ }
202
+
203
+ // ─── Changelog / changes token ────────────────────────────────────────────────
204
+
205
+ /**
206
+ * Returns a changes token for the given record types (valid ~30 days).
207
+ * Prefer one type per token so a revoked permission cannot invalidate others.
208
+ */
209
+ export async function getChangesToken(request) {
210
+ return NativeAndroidHealthConnect.getChangesToken(JSON.stringify(request));
211
+ }
212
+
213
+ /**
214
+ * Fetches upserts/deletes since `changesToken`. Loop while `hasMore`;
215
+ * persist `nextChangesToken`. If `changesTokenExpired`, backfill then mint a
216
+ * new token via {@link getChangesToken}.
217
+ *
218
+ * Optional `pageSize` (1–5000) is a soft hint for changelog page size.
219
+ */
220
+ export async function getChanges(changesToken, options = {}) {
221
+ const json = await NativeAndroidHealthConnect.getChanges(changesToken, JSON.stringify(options));
222
+ return JSON.parse(json);
223
+ }
224
+
225
+ // ─── Typed convenience helpers ────────────────────────────────────────────────
226
+
227
+ export const readSteps = options => readRecords('Steps', options);
228
+ export const readHeartRate = options => readRecords('HeartRate', options);
229
+ export const readSleepSessions = options => readRecords('SleepSession', options);
230
+ export const readActiveCaloriesBurned = options => readRecords('ActiveCaloriesBurned', options);
231
+ export const readTotalCaloriesBurned = options => readRecords('TotalCaloriesBurned', options);
232
+ export const readDistance = options => readRecords('Distance', options);
233
+ export const readWeight = options => readRecords('Weight', options);
234
+ export const readHeight = options => readRecords('Height', options);
235
+ export const readBloodPressure = options => readRecords('BloodPressure', options);
236
+ export const readBloodGlucose = options => readRecords('BloodGlucose', options);
237
+ export const readOxygenSaturation = options => readRecords('OxygenSaturation', options);
238
+ export const readBodyTemperature = options => readRecords('BodyTemperature', options);
239
+ export const readBodyFat = options => readRecords('BodyFat', options);
240
+ export const readHydration = options => readRecords('Hydration', options);
241
+ export const readExerciseSessions = options => readRecords('ExerciseSession', options);
242
+
243
+ /** Requires `getFeatureStatus('plannedExercise') === 'available'`. */
244
+ export const readPlannedExerciseSessions = options => readRecords('PlannedExerciseSession', options);
245
+
246
+ /**
247
+ * Requests one-time consent to read a session's exercise route when
248
+ * `exerciseRoute.type === 'CONSENT_REQUIRED'`. Returns the route on grant,
249
+ * or `null` if the user denies / no route exists.
250
+ */
251
+ export async function requestExerciseRoute(recordId) {
252
+ const json = await NativeAndroidHealthConnect.requestExerciseRoute(recordId);
253
+ if (!json) {
254
+ return null;
255
+ }
256
+ return JSON.parse(json);
257
+ }
258
+ export const readRestingHeartRate = options => readRecords('RestingHeartRate', options);
259
+ export const readRespiratoryRate = options => readRecords('RespiratoryRate', options);
260
+ export const readFloorsClimbed = options => readRecords('FloorsClimbed', options);
261
+ export const readElevationGained = options => readRecords('ElevationGained', options);
262
+ export const readMindfulnessSessions = options => readRecords('MindfulnessSession', options);
263
+ export const readSkinTemperature = options => readRecords('SkinTemperature', options);
264
+ export const readActivityIntensity = options => readRecords('ActivityIntensity', options);
265
+ export const readNutrition = options => readRecords('Nutrition', options);
266
+ export const readVo2Max = options => readRecords('Vo2Max', options);
267
+ export const readSpeed = options => readRecords('Speed', options);
268
+ export const readPower = options => readRecords('Power', options);
269
+ export const readStepsCadence = options => readRecords('StepsCadence', options);
270
+ export const readCyclingPedalingCadence = options => readRecords('CyclingPedalingCadence', options);
271
+ export const readWheelchairPushes = options => readRecords('WheelchairPushes', options);
272
+ export const readMenstruationFlow = options => readRecords('MenstruationFlow', options);
273
+ export const readMenstruationPeriods = options => readRecords('MenstruationPeriod', options);
274
+ export const readOvulationTests = options => readRecords('OvulationTest', options);
275
+ export const readCervicalMucus = options => readRecords('CervicalMucus', options);
276
+ export const readIntermenstrualBleeding = options => readRecords('IntermenstrualBleeding', options);
277
+ export const readSexualActivity = options => readRecords('SexualActivity', options);
278
+ export const readBasalBodyTemperature = options => readRecords('BasalBodyTemperature', options);
279
+ export const readLeanBodyMass = options => readRecords('LeanBodyMass', options);
280
+ export const readBoneMass = options => readRecords('BoneMass', options);
281
+ export const readBodyWaterMass = options => readRecords('BodyWaterMass', options);
282
+ export const readBasalMetabolicRate = options => readRecords('BasalMetabolicRate', options);
283
+ export const readHeartRateVariabilityRmssd = options => readRecords('HeartRateVariabilityRmssd', options);
284
+
285
+ // ─── Feature availability ─────────────────────────────────────────────────────
286
+
287
+ /**
288
+ * Returns whether a Health Connect feature is available on this device.
289
+ * Prefer checking before using alpha-gated APIs (skin temperature, mindfulness,
290
+ * activity intensity, matchmaking, personal health record).
291
+ */
292
+ export async function getFeatureStatus(feature) {
293
+ const status = await NativeAndroidHealthConnect.getFeatureStatus(feature);
294
+ return status;
295
+ }
296
+
297
+ // ─── Matchmaking (experimental) ───────────────────────────────────────────────
298
+
299
+ /**
300
+ * Returns whether the Matchmaking UI can show apps/devices that write data
301
+ * this app has permission to read. Requires FEATURE_MATCHMAKING.
302
+ */
303
+ export async function checkIfMatchmakingIsPossible(options = {}) {
304
+ const json = await NativeAndroidHealthConnect.checkIfMatchmakingIsPossible(JSON.stringify(options));
305
+ return JSON.parse(json);
306
+ }
307
+
308
+ /**
309
+ * Launches the Health Connect Matchmaking flow.
310
+ * Resolves `true` when the user finishes successfully (RESULT_OK).
311
+ * Requires FEATURE_MATCHMAKING and granted read permissions for the requested types.
312
+ */
313
+ export async function launchMatchmaking(options = {}) {
314
+ return NativeAndroidHealthConnect.launchMatchmaking(JSON.stringify(options));
315
+ }
316
+
317
+ // ─── Personal Health Record / medical (experimental) ──────────────────────────
318
+
319
+ /** Creates a MedicalDataSource. Requires FEATURE_PERSONAL_HEALTH_RECORD. */
320
+ export async function createMedicalDataSource(request) {
321
+ const json = await NativeAndroidHealthConnect.createMedicalDataSource(JSON.stringify(request));
322
+ return JSON.parse(json);
323
+ }
324
+
325
+ /** Deletes a MedicalDataSource and all MedicalResources written under it. */
326
+ export async function deleteMedicalDataSourceWithData(id) {
327
+ await NativeAndroidHealthConnect.deleteMedicalDataSourceWithData(id);
328
+ }
329
+
330
+ /** Lists MedicalDataSources visible to this app. */
331
+ export async function getMedicalDataSources(request = {}) {
332
+ const json = await NativeAndroidHealthConnect.getMedicalDataSources(JSON.stringify(request));
333
+ return JSON.parse(json);
334
+ }
335
+
336
+ /** Inserts or updates FHIR MedicalResources. */
337
+ export async function upsertMedicalResources(requests) {
338
+ const json = await NativeAndroidHealthConnect.upsertMedicalResources(JSON.stringify(requests));
339
+ return JSON.parse(json);
340
+ }
341
+
342
+ /**
343
+ * Reads MedicalResources by type (first page) or by pageToken (subsequent pages).
344
+ */
345
+ export async function readMedicalResources(request) {
346
+ const json = await NativeAndroidHealthConnect.readMedicalResources(JSON.stringify(request));
347
+ return JSON.parse(json);
348
+ }
349
+
350
+ /** Deletes MedicalResources by id list or by data-source / type filter. */
351
+ export async function deleteMedicalResources(request) {
352
+ await NativeAndroidHealthConnect.deleteMedicalResources(JSON.stringify(request));
353
+ }
354
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeAndroidHealthConnect","LIBRARY_VERSION","checkLibraryUpdate","compareSemver","ensurePermissions","timeRangeLastHours","timeRangeLastDays","timeRangeToday","pollUntil","waitUntil","waitForRecords","WaitTimeoutError","WaitForRecordsTimeoutError","readAllRecords","pullChanges","pollOnForeground","useForegroundPoll","isHealthConnectAvailable","status","getHealthConnectAvailability","json","JSON","parse","requestPermissions","permissions","granted","Array","from","checkPermissions","hasPermissions","length","grantedSet","Set","every","p","has","missingPermissions","filter","ensureAvailable","options","openStoreIfMissing","openHealthConnectApp","revokeAllPermissions","openHealthConnectSettings","openHealthConnectDataManagement","packageName","readRecords","recordType","stringify","writeRecords","records","updateRecords","deleteRecordsByTime","startTime","endTime","deleteRecordsById","recordIds","aggregateRecord","request","aggregateGroupByDuration","aggregateGroupByPeriod","getChangesToken","getChanges","changesToken","readSteps","readHeartRate","readSleepSessions","readActiveCaloriesBurned","readTotalCaloriesBurned","readDistance","readWeight","readHeight","readBloodPressure","readBloodGlucose","readOxygenSaturation","readBodyTemperature","readBodyFat","readHydration","readExerciseSessions","readPlannedExerciseSessions","requestExerciseRoute","recordId","readRestingHeartRate","readRespiratoryRate","readFloorsClimbed","readElevationGained","readMindfulnessSessions","readSkinTemperature","readActivityIntensity","readNutrition","readVo2Max","readSpeed","readPower","readStepsCadence","readCyclingPedalingCadence","readWheelchairPushes","readMenstruationFlow","readMenstruationPeriods","readOvulationTests","readCervicalMucus","readIntermenstrualBleeding","readSexualActivity","readBasalBodyTemperature","readLeanBodyMass","readBoneMass","readBodyWaterMass","readBasalMetabolicRate","readHeartRateVariabilityRmssd","getFeatureStatus","feature","checkIfMatchmakingIsPossible","launchMatchmaking","createMedicalDataSource","deleteMedicalDataSourceWithData","id","getMedicalDataSources","upsertMedicalResources","requests","readMedicalResources","deleteMedicalResources"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,0BAA0B,MAAM,iCAA8B;AA4ErE,cAAc,YAAS;AACvB,SAASC,eAAe,EAAEC,kBAAkB,EAAEC,aAAa,QAAQ,cAAW;AAE9E,SACEC,iBAAiB,EACjBC,kBAAkB,EAClBC,iBAAiB,EACjBC,cAAc,EACdC,SAAS,EACTC,SAAS,EACTC,cAAc,EACdC,gBAAgB,EAChBC,0BAA0B,EAC1BC,cAAc,EACdC,WAAW,QACN,cAAW;AAQlB,SAASC,gBAAgB,EAAEC,iBAAiB,QAAQ,iBAAc;AAQlE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeC,wBAAwBA,CAAA,EAAuC;EACnF,MAAMC,MAAM,GAAG,MAAMlB,0BAA0B,CAACiB,wBAAwB,CAAC,CAAC;EAC1E,OAAOC,MAAM;AACf;;AAEA;AACA;AACA;AACA;AACA,OAAO,eAAeC,4BAA4BA,CAAA,EAA2C;EAC3F,MAAMC,IAAI,GAAG,MAAMpB,0BAA0B,CAACmB,4BAA4B,CAAC,CAAC;EAC5E,OAAOE,IAAI,CAACC,KAAK,CAACF,IAAI,CAAC;AACzB;;AAEA;;AAEA;AACA;AACA;AAC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