@activepieces/piece-google-drive 0.5.48 → 0.5.50

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/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@activepieces/piece-google-drive",
3
- "version": "0.5.48",
3
+ "version": "0.5.50",
4
4
  "dependencies": {
5
5
  "@sinclair/typebox": "0.34.11",
6
6
  "axios": "1.8.3",
7
7
  "axios-retry": "4.4.1",
8
8
  "dayjs": "1.11.9",
9
9
  "deepmerge-ts": "7.1.0",
10
- "fast-glob": "3.3.3",
11
10
  "form-data": "4.0.4",
12
11
  "googleapis": "129.0.0",
13
12
  "googleapis-common": "7.2.0",
@@ -16,8 +15,8 @@
16
15
  "semver": "7.6.0",
17
16
  "zod": "3.25.76",
18
17
  "@activepieces/pieces-common": "0.7.0",
19
- "@activepieces/pieces-framework": "0.18.4",
20
- "@activepieces/shared": "0.19.0",
18
+ "@activepieces/pieces-framework": "0.19.0",
19
+ "@activepieces/shared": "0.20.0",
21
20
  "tslib": "2.8.1"
22
21
  },
23
22
  "overrides": {
package/src/i18n/fr.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "Depth Level": "Niveau de profondeur",
49
49
  "Download Files": "Télécharger les fichiers",
50
50
  "Query Term": "Condition de requête",
51
- "Operator": "Operator",
51
+ "Operator": "Opérateur",
52
52
  "Value": "Valeur",
53
53
  "File Type": "Type de fichier",
54
54
  "Name": "Nom",
@@ -106,7 +106,7 @@
106
106
  "Equals": "Egal",
107
107
  "All": "Tous",
108
108
  "Files": "Fichiers",
109
- "Folders": "Folders",
109
+ "Folders": "Dossiers",
110
110
  "Google Sheets": "Feuilles Google",
111
111
  "Google Docs": "Google Docs",
112
112
  "Organizer": "Organisateur",
package/src/i18n/ja.json CHANGED
@@ -51,7 +51,7 @@
51
51
  "Operator": "演算子",
52
52
  "Value": "値",
53
53
  "File Type": "ファイルの種類",
54
- "Name": "名前",
54
+ "Name": "Name",
55
55
  "Duplicate as": "次として複製:",
56
56
  "Document ID": "ドキュメントID",
57
57
  "File or Folder ID": "ファイルまたはフォルダID",
package/src/i18n/zh.json CHANGED
@@ -1,129 +1,129 @@
1
1
  {
2
- "Google Drive": "Google 雲端硬碟",
3
- "Cloud storage and file backup": "雲端儲存和文件備份",
4
- "Create new folder": "創建新資料夾",
5
- "Create new file": "創建新文件",
6
- "Upload file": "上傳文件",
7
- "Read file": "讀取文件",
8
- "Get File": "獲取文件",
9
- "List files": "列出文件",
10
- "Search": "搜索",
11
- "Duplicate File": "複製文件",
12
- "Save Document as PDF": "將文檔保存為 PDF",
13
- "Update permissions": "更新權限",
14
- "Delete permissions": "刪除權限",
15
- "Set public access": "設置公共訪問",
16
- "Move File": "移動文件",
17
- "Delete file": "刪除文件",
18
- "Trash file": "垃圾文件",
2
+ "Google Drive": "Google Drive",
3
+ "Cloud storage and file backup": "Cloud storage and file backup",
4
+ "Create new folder": "Create new folder",
5
+ "Create new file": "Create new file",
6
+ "Upload file": "Upload file",
7
+ "Read file": "Read file",
8
+ "Get File": "Get File",
9
+ "List files": "List files",
10
+ "Search": "Search",
11
+ "Duplicate File": "Duplicate File",
12
+ "Save Document as PDF": "Save Document as PDF",
13
+ "Update permissions": "Update permissions",
14
+ "Delete permissions": "Delete permissions",
15
+ "Set public access": "Set public access",
16
+ "Move File": "Move File",
17
+ "Delete file": "Delete file",
18
+ "Trash file": "Trash file",
19
19
  "Custom API Call": "自定义 API 呼叫",
20
- "Create a new empty folder in your Google Drive": "在您的 Google 雲端硬碟中創建一個新的空文件夾",
21
- "Create a new text file in your Google Drive from text": "從文本在您的 Google 雲端硬碟中创建一个新的文本文件",
22
- "Upload a file in your Google Drive": "在您的 Google 雲端硬碟中上傳文件",
23
- "Read a selected file from google drive file": "從谷歌驅動文件中讀取選定的文件",
24
- "Get a file folder for files/sub-folders": "獲取文件/子文件夾的文件夾",
25
- "List files from a Google Drive folder": "列出Google雲端硬碟文件夾中的文件",
26
- "Search a Google Drive folder for files/sub-folders": "在Google雲端硬碟文件夾中搜索文件/子文件夾",
27
- "Duplicate a file from Google Drive. Returns the new file ID.": "從Google雲端硬碟中重複一個文件,返回新的文件ID。",
28
- "Save a document as PDF in a Google Drive folder": "將文件保存為PDF到Google雲端硬碟文件夾",
29
- "Update permissions for a file or folder": "更新文件或文件夾的權限",
30
- "Removes a role from an user for a file or folder": "從用戶文件或文件夾中移除角色",
31
- "Set public access for a file or folder": "設置文件或文件夾的公共訪問",
32
- "Moves a file from one folder to another.": "將文件從一個文件夾移到另一個文件夾。",
33
- "Delete permanently a file from your Google Drive": "從您的Google雲端硬碟永久刪除文件",
34
- "Move a file to the trash in your Google Drive": "將文件移到您的Google雲端硬碟的垃圾箱中",
35
- "Make a custom API call to a specific endpoint": "將一個自定義 API 調用到一個特定的終點",
36
- "Folder name": "文件夹名称",
20
+ "Create a new empty folder in your Google Drive": "Create a new empty folder in your Google Drive",
21
+ "Create a new text file in your Google Drive from text": "Create a new text file in your Google Drive from text",
22
+ "Upload a file in your Google Drive": "Upload a file in your Google Drive",
23
+ "Read a selected file from google drive file": "Read a selected file from google drive file",
24
+ "Get a file folder for files/sub-folders": "Get a file folder for files/sub-folders",
25
+ "List files from a Google Drive folder": "List files from a Google Drive folder",
26
+ "Search a Google Drive folder for files/sub-folders": "Search a Google Drive folder for files/sub-folders",
27
+ "Duplicate a file from Google Drive. Returns the new file ID.": "Duplicate a file from Google Drive. Returns the new file ID.",
28
+ "Save a document as PDF in a Google Drive folder": "Save a document as PDF in a Google Drive folder",
29
+ "Update permissions for a file or folder": "Update permissions for a file or folder",
30
+ "Removes a role from an user for a file or folder": "Removes a role from an user for a file or folder",
31
+ "Set public access for a file or folder": "Set public access for a file or folder",
32
+ "Moves a file from one folder to another.": "Moves a file from one folder to another.",
33
+ "Delete permanently a file from your Google Drive": "Delete permanently a file from your Google Drive",
34
+ "Move a file to the trash in your Google Drive": "Move a file to the trash in your Google Drive",
35
+ "Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
36
+ "Folder name": "Folder name",
37
37
  "Parent Folder": "父文件夹",
38
- "Include Team Drives": "包含团队云端硬碟",
39
- "File name": "文件名",
38
+ "Include Team Drives": "Include Team Drives",
39
+ "File name": "File name",
40
40
  "Text": "文本",
41
- "Content type": "內容類型",
41
+ "Content type": "Content type",
42
42
  "File": "文件",
43
- "File ID": "文件 ID",
44
- "Destination File name": "目標文件名",
45
- "File / Folder Id": "文件/文件夾ID",
46
- "Folder ID": "文件夾ID",
47
- "Include Trashed": "包含已刪除",
43
+ "File ID": "File ID",
44
+ "Destination File name": "Destination File name",
45
+ "File / Folder Id": "File / Folder Id",
46
+ "Folder ID": "Folder ID",
47
+ "Include Trashed": "Include Trashed",
48
48
  "Depth Level": "Depth Level",
49
- "Download Files": "下載文件",
50
- "Query Term": "查詢詞",
51
- "Operator": "運算符",
49
+ "Download Files": "Download Files",
50
+ "Query Term": "Query Term",
51
+ "Operator": "运算符",
52
52
  "Value": "值",
53
- "File Type": "文件類型",
54
- "Name": "名稱",
55
- "Duplicate as": "複製為",
56
- "Document ID": "文檔 ID",
57
- "File or Folder ID": "文件或文件夾 ID",
58
- "User email": "用戶電子郵件",
53
+ "File Type": "File Type",
54
+ "Name": "名称",
55
+ "Duplicate as": "Duplicate as",
56
+ "Document ID": "Document ID",
57
+ "File or Folder ID": "File or Folder ID",
58
+ "User email": "User email",
59
59
  "Role": "作用",
60
- "Send invitation email": "發送邀請郵件",
60
+ "Send invitation email": "Send invitation email",
61
61
  "Method": "方法",
62
62
  "Headers": "信头",
63
63
  "Query Parameters": "查询参数",
64
- "Body": "正文內容",
64
+ "Body": "正文内容",
65
65
  "Response is Binary ?": "Response is Binary ?",
66
- "No Error on Failure": "失敗時無錯誤",
67
- "Timeout (in seconds)": "超時(秒)",
68
- "The name of the new folder": "新文件夾的名稱",
69
- "Determines if folders from Team Drives should be included in the results.": "確定是否應在結果中包含團隊雲端硬碟中的資料夾。",
70
- "The name of the new text file": "新文本文件的名稱",
71
- "The text content to add to file": "要添加到文件的文本內容",
72
- "Select file type": "選擇文件類型",
73
- "The name of the file": "文件的名稱",
74
- "The file URL or base64 to upload": "要上傳的文件 URL 或 base64",
75
- "File ID coming from | New File -> id |": "文件 ID 來源於 | 新文件 -> id |",
76
- "The Id of the file/folder to search for.": "要查找的文件/文件夾的 ID。",
77
- "Folder ID coming from | New Folder -> id | (or any other source)": "文件夾 ID 來源於 | 新文件夾 -> id | (或任何其他來源)",
78
- "Include new files that have been trashed.": "包括被刪除的新的文件。",
66
+ "No Error on Failure": "失败时没有错误",
67
+ "Timeout (in seconds)": "超时(秒)",
68
+ "The name of the new folder": "The name of the new folder",
69
+ "Determines if folders from Team Drives should be included in the results.": "Determines if folders from Team Drives should be included in the results.",
70
+ "The name of the new text file": "The name of the new text file",
71
+ "The text content to add to file": "The text content to add to file",
72
+ "Select file type": "Select file type",
73
+ "The name of the file": "The name of the file",
74
+ "The file URL or base64 to upload": "The file URL or base64 to upload",
75
+ "File ID coming from | New File -> id |": "File ID coming from | New File -> id |",
76
+ "The Id of the file/folder to search for.": "The Id of the file/folder to search for.",
77
+ "Folder ID coming from | New Folder -> id | (or any other source)": "Folder ID coming from | New Folder -> id | (or any other source)",
78
+ "Include new files that have been trashed.": "Include new files that have been trashed.",
79
79
  "How many levels deep to search for files. 1 = current folder only, 2 = current + next level, etc.": "How many levels deep to search for files. 1 = current folder only, 2 = current + next level, etc.",
80
- "Download all file contents in a list": "下載列表中所有文件內容",
81
- "The Query term or field of file/folder to search upon.": "要搜索的文件/文件夾的查詢詞或字段。",
82
- "The operator to create criteria.": "創建標準的運算符。",
83
- "Value of the field of file/folder to search for.": "文件/文件夾要搜索的字段的值。",
84
- "(Optional) Choose between files and folders.": "(可選)在文件和文件夾之間選擇。",
85
- "The ID of the file to duplicate": "要複製的文件的 ID",
86
- "The name of the new file": "新文件的名稱",
87
- "The ID of the folder where the file will be duplicated": "要重複文件所在的文件夾ID",
88
- "If left unselected the file will be duplicated as it is": "如果未選擇,文件將被重複為原樣",
89
- "The ID of the document to export": "要導出的文檔ID",
90
- "The ID of the folder where the file will be exported": "要導出文件的文件夾 ID",
91
- "The name of the new file (do not include the extension)": "新文件的名稱(不包括擴展名)",
92
- "The ID of the file or folder to update permissions for": "要更新權限的文件或文件夾的ID",
93
- "The email address of the user to update permissions for": "要更新權限的用戶電子郵件地址",
94
- "The role to grant to user. See more at: https://developers.google.com/drive/api/guides/ref-roles": "授予用戶的角色。查看更多: https://developers.google.com/drive/api/guides/ref-roles",
95
- "Send an email to the user to notify them of the new permissions": "發送郵件通知用戶新權限",
96
- "The role to remove from user.": "從用戶移除的角色。",
97
- "You can use **Search Folder/File** action to retrieve ID.": "您可以使用**搜索文件夾/文件**操作來檢索ID。",
98
- "The ID of the file to delete": "要刪除的文件ID",
99
- "The ID of the file to trash": "要移到垃圾箱的文件ID",
100
- "Authorization headers are injected automatically from your connection.": "授權標頭會自動從您的連接中注入。",
80
+ "Download all file contents in a list": "Download all file contents in a list",
81
+ "The Query term or field of file/folder to search upon.": "The Query term or field of file/folder to search upon.",
82
+ "The operator to create criteria.": "The operator to create criteria.",
83
+ "Value of the field of file/folder to search for.": "Value of the field of file/folder to search for.",
84
+ "(Optional) Choose between files and folders.": "(Optional) Choose between files and folders.",
85
+ "The ID of the file to duplicate": "The ID of the file to duplicate",
86
+ "The name of the new file": "The name of the new file",
87
+ "The ID of the folder where the file will be duplicated": "The ID of the folder where the file will be duplicated",
88
+ "If left unselected the file will be duplicated as it is": "If left unselected the file will be duplicated as it is",
89
+ "The ID of the document to export": "The ID of the document to export",
90
+ "The ID of the folder where the file will be exported": "The ID of the folder where the file will be exported",
91
+ "The name of the new file (do not include the extension)": "The name of the new file (do not include the extension)",
92
+ "The ID of the file or folder to update permissions for": "The ID of the file or folder to update permissions for",
93
+ "The email address of the user to update permissions for": "The email address of the user to update permissions for",
94
+ "The role to grant to user. See more at: https://developers.google.com/drive/api/guides/ref-roles": "The role to grant to user. See more at: https://developers.google.com/drive/api/guides/ref-roles",
95
+ "Send an email to the user to notify them of the new permissions": "Send an email to the user to notify them of the new permissions",
96
+ "The role to remove from user.": "The role to remove from user.",
97
+ "You can use **Search Folder/File** action to retrieve ID.": "You can use **Search Folder/File** action to retrieve ID.",
98
+ "The ID of the file to delete": "The ID of the file to delete",
99
+ "The ID of the file to trash": "The ID of the file to trash",
100
+ "Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
101
101
  "Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
102
102
  "CSV": "CSV",
103
103
  "XML": "XML",
104
- "Full text search": "全文搜索",
105
- "Contains": "包含",
106
- "Equals": "等於",
104
+ "Full text search": "Full text search",
105
+ "Contains": "Contains",
106
+ "Equals": "Equals",
107
107
  "All": "所有的",
108
- "Files": "文件",
108
+ "Files": "Files",
109
109
  "Folders": "文件夹",
110
- "Google Sheets": "谷歌試算表",
111
- "Google Docs": "谷歌文檔",
112
- "Organizer": "組織者",
113
- "File Organizer": "文件整理員",
114
- "Writer": "作家",
115
- "Commenter": "評論家",
116
- "Reader": "讀者",
117
- "GET": "獲取",
118
- "POST": "郵件",
119
- "PATCH": "修補",
120
- "PUT": "彈出",
121
- "DELETE": "刪除",
122
- "HEAD": "首篇",
123
- "New File": "新文件",
124
- "New Folder": "新建文件夾",
125
- "Trigger when a new file is uploaded.": "上傳新文件時觸發。",
126
- "Trigger when a new folder is created or uploaded.": "創建或上傳新文件夾時觸發。",
127
- "Include File Content": "包括文件內容",
128
- "Include the file content in the output. This will increase the time taken to fetch the files and might cause issues with large files.": "在輸出中包含文件內容。這將增加提取文件所需的時間,並可能導致大文件的問題。"
110
+ "Google Sheets": "谷歌工作表",
111
+ "Google Docs": "Google Docs",
112
+ "Organizer": "Organizer",
113
+ "File Organizer": "File Organizer",
114
+ "Writer": "Writer",
115
+ "Commenter": "Commenter",
116
+ "Reader": "Reader",
117
+ "GET": "获取",
118
+ "POST": "帖子",
119
+ "PATCH": "PATCH",
120
+ "PUT": "弹出",
121
+ "DELETE": "删除",
122
+ "HEAD": "黑色",
123
+ "New File": "New File",
124
+ "New Folder": "新建文件夹",
125
+ "Trigger when a new file is uploaded.": "Trigger when a new file is uploaded.",
126
+ "Trigger when a new folder is created or uploaded.": "Trigger when a new folder is created or uploaded.",
127
+ "Include File Content": "Include File Content",
128
+ "Include the file content in the output. This will increase the time taken to fetch the files and might cause issues with large files.": "Include the file content in the output. This will increase the time taken to fetch the files and might cause issues with large files."
129
129
  }
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const mime_types_1 = require("mime-types");
6
6
  function getMimeType(auth, fileId) {
7
7
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- const mimeType = (yield fetch(`https://www.googleapis.com/drive/v3/files/${fileId}?fields=mimeType`, {
8
+ const mimeType = (yield fetch(`https://www.googleapis.com/drive/v3/files/${fileId}?fields=mimeType&supportsAllDrives=true`, {
9
9
  headers: {
10
10
  Authorization: `Bearer ${auth.access_token}`,
11
11
  },
@@ -25,7 +25,8 @@ const googledlCall = (url, auth, fileId, files, fileName) => tslib_1.__awaiter(v
25
25
  var _a;
26
26
  return Promise.reject(new Error(`Error when download file:\n\tDownload file response: ${(_a = error.message) !== null && _a !== void 0 ? _a : error}`));
27
27
  });
28
- const fileExtension = '.' + (0, mime_types_1.extension)(mimeType);
28
+ const extensionResult = (0, mime_types_1.extension)(mimeType);
29
+ const fileExtension = extensionResult ? '.' + extensionResult : '';
29
30
  const srcFileName = fileName !== null && fileName !== void 0 ? fileName : fileId + fileExtension;
30
31
  // const name =
31
32
  // (srcFileName
@@ -59,10 +60,10 @@ function downloadFileFromDrive(auth, files, fileId, fileName) {
59
60
  'application/vnd.openxmlformats-officedocument.presentationml.presentation';
60
61
  break;
61
62
  }
62
- return yield googledlCall(`https://www.googleapis.com/drive/v3/files/${fileId}/export?mimeType=${mimeType}`, auth, fileId, files, fileName);
63
+ return yield googledlCall(`https://www.googleapis.com/drive/v3/files/${fileId}/export?mimeType=${mimeType}&supportsAllDrives=true`, auth, fileId, files, fileName);
63
64
  }
64
65
  else {
65
- return yield googledlCall(`https://www.googleapis.com/drive/v3/files/${fileId}?alt=media`, auth, fileId, files, fileName);
66
+ return yield googledlCall(`https://www.googleapis.com/drive/v3/files/${fileId}?alt=media&supportsAllDrives=true`, auth, fileId, files, fileName);
66
67
  }
67
68
  });
68
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-file-content.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/common/get-file-content.ts"],"names":[],"mappings":";;AAmEA,sDA8CC;;AAzGD,2CAAuC;AAEvC,SAAe,WAAW,CACxB,IAAsC,EACtC,MAAc;;QAEd,MAAM,QAAQ,GAAG,CACf,MAAM,KAAK,CACT,6CAA6C,MAAM,kBAAkB,EACrE;YACE,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,CAAC,YAAY,EAAE;aAC7C;SACF,CACF,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAC5B,CAAC,UAAU,CAAW,CAAC;QACxB,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AAED,MAAM,YAAY,GAAG,CACnB,GAAW,EACX,IAAsC,EACtC,MAAc,EACd,KAAmB,EACnB,QAA4B,EAC5B,EAAE;IACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEjD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAChC,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,IAAI,CAAC,YAAY,EAAE;SAC7C;KACF,CAAC;SACC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjB,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA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QACJ,CAAC;aAAM,CAAC;YACN,OAAO,MAAM,YAAY,CACvB,6CAA6C,MAAM,YAAY,EAC/D,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,CACT,CAAC;QACJ,CAAC;IACH,CAAC;CAAA"}
1
+ {"version":3,"file":"get-file-content.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/google-drive/src/lib/common/get-file-content.ts"],"names":[],"mappings":";;AAoEA,sDA8CC;;AA1GD,2CAAuC;AAEvC,SAAe,WAAW,CACxB,IAAsC,EACtC,MAAc;;QAEd,MAAM,QAAQ,GAAG,CACf,MAAM,KAAK,CACT,6CAA6C,MAAM,yCAAyC,EAC5F;YACE,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,CAAC,YAAY,EAAE;aAC7C;SACF,CACF,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAC5B,CAAC,UAAU,CAAW,CAAC;QACxB,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AAED,MAAM,YAAY,GAAG,CACnB,GAAW,EACX,IAAsC,EACtC,MAAc,EACd,KAAmB,EACnB,QAA4B,EAC5B,EAAE;IACF,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEjD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAChC,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,IAAI,CAAC,YAAY,EAAE;SAC7C;KACF,CAAC;SACC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjB,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CACzD;SACA,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;QACf,OAAA,OAAO,CAAC,MAAM,CACZ,IAAI,KAAK,CACP,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