@ckeditor/ckeditor5-ai 41.3.1 → 41.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.
- package/README.md +1 -1
- package/build/ai.js +7 -7
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +267 -0
- package/dist/index.css +396 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/types/adapters/aiadapter.d.ts +52 -0
- package/dist/types/adapters/aitextadapter.d.ts +150 -0
- package/dist/types/adapters/awstextadapter.d.ts +183 -0
- package/dist/types/adapters/openaitextadapter.d.ts +187 -0
- package/dist/types/aiassistant.d.ts +390 -0
- package/dist/types/aiassistantediting.d.ts +50 -0
- package/dist/types/aiassistantui.d.ts +57 -0
- package/dist/types/aiconfig.d.ts +73 -0
- package/dist/types/augmentation.d.ts +31 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/ui/aiassistantcontroller.d.ts +113 -0
- package/dist/types/ui/dropdown/aicommandslistview.d.ts +37 -0
- package/dist/types/ui/dropdown/buttonlabelwithhighlightview.d.ts +33 -0
- package/dist/types/ui/dropdown/labelwithhighlightview.d.ts +29 -0
- package/dist/types/ui/form/aiformcontentarea.d.ts +52 -0
- package/dist/types/ui/form/aiformerrorview.d.ts +30 -0
- package/dist/types/ui/form/aiformpromptview.d.ts +50 -0
- package/dist/types/ui/form/aiformtoolbarview.d.ts +62 -0
- package/dist/types/ui/form/aiformview.d.ts +145 -0
- package/dist/types/ui/form/aihistorylistitemview.d.ts +22 -0
- package/dist/types/ui/form/aihistorylistview.d.ts +39 -0
- package/dist/types/ui/form/prompthistory.d.ts +24 -0
- package/dist/types/ui/showaiassistantcommand.d.ts +44 -0
- package/dist/types/utils/common-translations.d.ts +13 -0
- package/lang/contexts.json +4 -0
- package/lang/translations/af.po +16 -0
- package/lang/translations/ar.po +16 -0
- package/lang/translations/bg.po +16 -0
- package/lang/translations/bn.po +16 -0
- package/lang/translations/bs.po +16 -0
- package/lang/translations/ca.po +16 -0
- package/lang/translations/cs.po +16 -0
- package/lang/translations/da.po +16 -0
- package/lang/translations/de-ch.po +16 -0
- package/lang/translations/de.po +16 -0
- package/lang/translations/el.po +16 -0
- package/lang/translations/en-au.po +16 -0
- package/lang/translations/en.po +16 -0
- package/lang/translations/es-co.po +16 -0
- package/lang/translations/es.po +16 -0
- package/lang/translations/et.po +16 -0
- package/lang/translations/fa.po +16 -0
- package/lang/translations/fi.po +16 -0
- package/lang/translations/fr.po +16 -0
- package/lang/translations/gl.po +16 -0
- package/lang/translations/he.po +16 -0
- package/lang/translations/hi.po +16 -0
- package/lang/translations/hr.po +16 -0
- package/lang/translations/hu.po +16 -0
- package/lang/translations/id.po +16 -0
- package/lang/translations/it.po +16 -0
- package/lang/translations/ja.po +16 -0
- package/lang/translations/jv.po +16 -0
- package/lang/translations/ko.po +16 -0
- package/lang/translations/lt.po +16 -0
- package/lang/translations/lv.po +16 -0
- package/lang/translations/ms.po +16 -0
- package/lang/translations/nl.po +16 -0
- package/lang/translations/no.po +16 -0
- package/lang/translations/pl.po +16 -0
- package/lang/translations/pt-br.po +16 -0
- package/lang/translations/pt.po +16 -0
- package/lang/translations/ro.po +16 -0
- package/lang/translations/ru.po +16 -0
- package/lang/translations/sk.po +16 -0
- package/lang/translations/sr-latn.po +16 -0
- package/lang/translations/sr.po +16 -0
- package/lang/translations/sv.po +16 -0
- package/lang/translations/th.po +16 -0
- package/lang/translations/ti.po +250 -0
- package/lang/translations/tk.po +16 -0
- package/lang/translations/tr.po +16 -0
- package/lang/translations/ug.po +16 -0
- package/lang/translations/uk.po +16 -0
- package/lang/translations/ur.po +16 -0
- package/lang/translations/uz.po +16 -0
- package/lang/translations/vi.po +16 -0
- package/lang/translations/zh-cn.po +16 -0
- package/lang/translations/zh.po +16 -0
- package/package.json +5 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/lang/translations/uz.po
CHANGED
|
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
|
|
|
173
173
|
msgid "AI is writing..."
|
|
174
174
|
msgstr ""
|
|
175
175
|
|
|
176
|
+
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
|
+
msgid "AI is writing"
|
|
178
|
+
msgstr ""
|
|
179
|
+
|
|
180
|
+
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
|
+
msgid "Generated content: %0"
|
|
182
|
+
msgstr ""
|
|
183
|
+
|
|
184
|
+
msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
|
|
185
|
+
msgid "Error during AI content generation: %0"
|
|
186
|
+
msgstr ""
|
|
187
|
+
|
|
176
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
177
189
|
msgid "History"
|
|
178
190
|
msgstr ""
|
|
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
|
|
|
201
213
|
msgid "No commands available"
|
|
202
214
|
msgstr ""
|
|
203
215
|
|
|
216
|
+
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
+
msgid "%0 commands found"
|
|
218
|
+
msgstr ""
|
|
219
|
+
|
|
204
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
205
221
|
msgid "AI_REPLACE_CONTENT"
|
|
206
222
|
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
|
|
|
173
173
|
msgid "AI is writing..."
|
|
174
174
|
msgstr "AI đang viết..."
|
|
175
175
|
|
|
176
|
+
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
|
+
msgid "AI is writing"
|
|
178
|
+
msgstr "AI đang viết"
|
|
179
|
+
|
|
180
|
+
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
|
+
msgid "Generated content: %0"
|
|
182
|
+
msgstr "Nội dung đã tạo: %0"
|
|
183
|
+
|
|
184
|
+
msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
|
|
185
|
+
msgid "Error during AI content generation: %0"
|
|
186
|
+
msgstr "Xảy ra lỗi trong quá trình tạo nội dung AI: %0"
|
|
187
|
+
|
|
176
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
177
189
|
msgid "History"
|
|
178
190
|
msgstr "Lịch sử"
|
|
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
|
|
|
201
213
|
msgid "No commands available"
|
|
202
214
|
msgstr "Không có lệnh nào khả dụng"
|
|
203
215
|
|
|
216
|
+
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
+
msgid "%0 commands found"
|
|
218
|
+
msgstr "Đã tìm thấy %0 lệnh"
|
|
219
|
+
|
|
204
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
205
221
|
msgid "AI_REPLACE_CONTENT"
|
|
206
222
|
msgstr "Thay thế"
|
|
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
|
|
|
173
173
|
msgid "AI is writing..."
|
|
174
174
|
msgstr "AI 正在撰写……"
|
|
175
175
|
|
|
176
|
+
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
|
+
msgid "AI is writing"
|
|
178
|
+
msgstr "人工智能正在写作"
|
|
179
|
+
|
|
180
|
+
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
|
+
msgid "Generated content: %0"
|
|
182
|
+
msgstr "生成的内容:%0"
|
|
183
|
+
|
|
184
|
+
msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
|
|
185
|
+
msgid "Error during AI content generation: %0"
|
|
186
|
+
msgstr "人工智能生成内容时出错:%0"
|
|
187
|
+
|
|
176
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
177
189
|
msgid "History"
|
|
178
190
|
msgstr "历史记录"
|
|
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
|
|
|
201
213
|
msgid "No commands available"
|
|
202
214
|
msgstr "没有可用的命令"
|
|
203
215
|
|
|
216
|
+
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
+
msgid "%0 commands found"
|
|
218
|
+
msgstr "找到 %0 个命令"
|
|
219
|
+
|
|
204
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
205
221
|
msgid "AI_REPLACE_CONTENT"
|
|
206
222
|
msgstr "替换"
|
package/lang/translations/zh.po
CHANGED
|
@@ -173,6 +173,18 @@ msgctxt "The label that indicates the AI is generating content."
|
|
|
173
173
|
msgid "AI is writing..."
|
|
174
174
|
msgstr "AI 撰寫中..."
|
|
175
175
|
|
|
176
|
+
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
|
+
msgid "AI is writing"
|
|
178
|
+
msgstr "AI 撰寫中"
|
|
179
|
+
|
|
180
|
+
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
|
+
msgid "Generated content: %0"
|
|
182
|
+
msgstr "生成的內容:%0"
|
|
183
|
+
|
|
184
|
+
msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
|
|
185
|
+
msgid "Error during AI content generation: %0"
|
|
186
|
+
msgstr "AI 內容生成期間發生錯誤:%0"
|
|
187
|
+
|
|
176
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
177
189
|
msgid "History"
|
|
178
190
|
msgstr "紀錄"
|
|
@@ -201,6 +213,10 @@ msgctxt "The message displayed when there are no AI commands available in the co
|
|
|
201
213
|
msgid "No commands available"
|
|
202
214
|
msgstr "無可用指令"
|
|
203
215
|
|
|
216
|
+
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
|
+
msgid "%0 commands found"
|
|
218
|
+
msgstr "已找到 %0 個指令"
|
|
219
|
+
|
|
204
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
205
221
|
msgid "AI_REPLACE_CONTENT"
|
|
206
222
|
msgstr "取代"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "41.
|
|
3
|
+
"version": "41.4.0",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,15 +23,16 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "41.
|
|
27
|
-
"ckeditor5-collaboration": "41.
|
|
26
|
+
"ckeditor5": "41.4.0",
|
|
27
|
+
"ckeditor5-collaboration": "41.4.0",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "41.
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "41.4.0",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"files": [
|
|
35
|
+
"dist",
|
|
35
36
|
"lang",
|
|
36
37
|
"src/**/*.js",
|
|
37
38
|
"src/**/*.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x6e2234=_0x476c;(function(_0x23eba1,_0x2cf6a0){var _0xd63633=_0x476c,_0x492dd3=_0x23eba1();while(!![]){try{var _0x1e382e=parseInt(_0xd63633(0x97))/0x1+parseInt(_0xd63633(0x8f))/0x2+parseInt(_0xd63633(0x96))/0x3+-parseInt(_0xd63633(0x8b))/0x4*(-parseInt(_0xd63633(0x8e))/0x5)+-parseInt(_0xd63633(0x9a))/0x6*(-parseInt(_0xd63633(0x99))/0x7)+-parseInt(_0xd63633(0x92))/0x8*(parseInt(_0xd63633(0x8d))/0x9)+parseInt(_0xd63633(0x9b))/0xa*(-parseInt(_0xd63633(0x94))/0xb);if(_0x1e382e===_0x2cf6a0)break;else _0x492dd3['push'](_0x492dd3['shift']());}catch(_0x1b711d){_0x492dd3['push'](_0x492dd3['shift']());}}}(_0x32bf,0x1dd51));import{Plugin as _0x453bca}from'ckeditor5/src/core.js';function _0x476c(_0x51b1e9,_0x29ae60){var _0x32bf9c=_0x32bf();return _0x476c=function(_0x476c7b,_0x2bd585){_0x476c7b=_0x476c7b-0x8b;var _0x1b2f51=_0x32bf9c[_0x476c7b];return _0x1b2f51;},_0x476c(_0x51b1e9,_0x29ae60);}function _0x32bf(){var _0x34d9c6=['9630POoCCn','1113425iIPCuM','402554GUecPp','aiadapter-text-adapter-not-set','AIAdapter','24RHWKqf','name','71335ywzQin','pluginName','544401AImFCv','53547SkTUTg','textAdapter','56HBCFDr','32694SYRjlA','890IfInAW','afterInit','4IZgUIH','AIRequestError'];_0x32bf=function(){return _0x34d9c6;};return _0x32bf();}import{CKEditorError as _0x242ea8}from'ckeditor5/src/utils.js';export default class y extends _0x453bca{static get[_0x6e2234(0x95)](){var _0x4b2992=_0x6e2234;return _0x4b2992(0x91);}[_0x6e2234(0x9c)](){var _0x2ad01a=_0x6e2234;if(!this[_0x2ad01a(0x98)])throw new _0x242ea8(_0x2ad01a(0x90),null);}}export class AIRequestError extends Error{constructor(_0x143c6e){var _0x19e518=_0x6e2234;super(_0x143c6e),this[_0x19e518(0x93)]=_0x19e518(0x8c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d4cfa=_0x4fc9;(function(_0x23906d,_0x5be4db){const _0x330454=_0x4fc9,_0x46388a=_0x23906d();while(!![]){try{const _0x5cc9b8=-parseInt(_0x330454(0xda))/0x1*(-parseInt(_0x330454(0xf9))/0x2)+parseInt(_0x330454(0xea))/0x3*(parseInt(_0x330454(0xdf))/0x4)+-parseInt(_0x330454(0xec))/0x5*(-parseInt(_0x330454(0xed))/0x6)+-parseInt(_0x330454(0xe3))/0x7*(parseInt(_0x330454(0xeb))/0x8)+-parseInt(_0x330454(0xe8))/0x9+-parseInt(_0x330454(0xf0))/0xa*(parseInt(_0x330454(0xdd))/0xb)+parseInt(_0x330454(0xf7))/0xc*(parseInt(_0x330454(0xe5))/0xd);if(_0x5cc9b8===_0x5be4db)break;else _0x46388a['push'](_0x46388a['shift']());}catch(_0x3efd90){_0x46388a['push'](_0x46388a['shift']());}}}(_0x4b71,0xf05ae));function _0x4b71(){const _0x2c1a81=['_prepareRequestParameters','_prepareRequestHeaders','3900EnlJpL','object','292848bfNRaC','abort','resolve','get','aborted','signal','plugins','reject','makeRequest','3ngOAWm','init','abortController','11XPjgsD','aitextadapter-send-request-failed','192FJzTOM','AI_ERROR_GET_HEADERS','assign','editor','11867527QgXadf','error','77324FrvBrY','sendRequest','application/json','1634238WQqFiU','AbortError','25611wPcRHJ','8czKtHK','3940veHZNj','7428OrMhuT','catch','requires','8962550IoQsWp','locale','AI_ERROR_GET_PARAMETERS','textAdapter','name'];_0x4b71=function(){return _0x2c1a81;};return _0x4b71();}import{Plugin as _0x47a3dd}from'ckeditor5/src/core.js';import{CKEditorError as _0x4ec94e}from'ckeditor5/src/utils.js';import{default as _0x2f0656,AIRequestError as _0x1487f6}from'./aiadapter.js';import{getTranslation as _0x2c3f99}from'../utils/common-translations.js';function _0x4fc9(_0x8ec79b,_0x4e2af3){const _0x4b71c6=_0x4b71();return _0x4fc9=function(_0x4fc9fe,_0x2d9f4a){_0x4fc9fe=_0x4fc9fe-0xd5;let _0x308fdb=_0x4b71c6[_0x4fc9fe];return _0x308fdb;},_0x4fc9(_0x8ec79b,_0x4e2af3);}export default class P extends _0x47a3dd{static get[_0x4d4cfa(0xef)](){return[_0x2f0656];}constructor(_0x4d3445){const _0x493482=_0x4d4cfa;super(_0x4d3445),this[_0x493482(0xdc)]=new AbortController();}[_0x4d4cfa(0xdb)](){const _0x437536=_0x4d4cfa;this[_0x437536(0xe2)][_0x437536(0xd7)][_0x437536(0xfc)](_0x2f0656)[_0x437536(0xf3)]=this;}[_0x4d4cfa(0xfa)](){const _0x76e54d=_0x4d4cfa;this[_0x76e54d(0xdc)][_0x76e54d(0xd6)][_0x76e54d(0xd5)]||(this[_0x76e54d(0xdc)][_0x76e54d(0xfa)](),this[_0x76e54d(0xdc)]=new AbortController());}async[_0x4d4cfa(0xd9)](_0x4a1a81){const _0x10e4d0=_0x4d4cfa;return this[_0x10e4d0(0xe6)](_0x4a1a81)[_0x10e4d0(0xee)](_0xd5ba21=>{const _0x120865=_0x10e4d0;if(_0xd5ba21 instanceof _0x1487f6)return Promise[_0x120865(0xd8)](_0xd5ba21);if(_0x120865(0xe9)==_0xd5ba21[_0x120865(0xf4)])return Promise[_0x120865(0xfb)]();throw console[_0x120865(0xe4)](_0xd5ba21),new _0x4ec94e(_0x120865(0xde),null);});}async[_0x4d4cfa(0xf6)](_0x359bc0,_0x6ea32d){const _0x5df99c=_0x4d4cfa,_0x3b700b=this[_0x5df99c(0xe2)][_0x5df99c(0xf1)],_0x353853={'Content-Type':_0x5df99c(0xe7)};if(_0x5df99c(0xf8)==typeof _0x359bc0)Object[_0x5df99c(0xe1)](_0x353853,_0x359bc0);else{if(_0x359bc0)try{const _0x140615=await _0x359bc0(_0x6ea32d);Object[_0x5df99c(0xe1)](_0x353853,_0x140615);}catch(_0x4f42cd){return Promise[_0x5df99c(0xd8)](new _0x1487f6(_0x2c3f99(_0x3b700b,_0x5df99c(0xe0))));}}return _0x353853;}async[_0x4d4cfa(0xf5)](_0x59c597,_0x3ec8c8){const _0x483d13=_0x4d4cfa,_0x15317d=this[_0x483d13(0xe2)][_0x483d13(0xf1)];if(_0x483d13(0xf8)==typeof _0x59c597)return _0x59c597;try{return await _0x59c597(_0x3ec8c8);}catch(_0x2142c0){return Promise[_0x483d13(0xd8)](new _0x1487f6(_0x2c3f99(_0x15317d,_0x483d13(0xf2))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8908cd=_0x56c2;(function(_0x150a17,_0x570222){const _0x2f29d5=_0x56c2,_0xa86c43=_0x150a17();while(!![]){try{const _0x55b5ed=-parseInt(_0x2f29d5(0x1f8))/0x1+parseInt(_0x2f29d5(0x1ea))/0x2+parseInt(_0x2f29d5(0x1d2))/0x3+parseInt(_0x2f29d5(0x209))/0x4*(-parseInt(_0x2f29d5(0x211))/0x5)+-parseInt(_0x2f29d5(0x1da))/0x6*(parseInt(_0x2f29d5(0x201))/0x7)+-parseInt(_0x2f29d5(0x1d5))/0x8+parseInt(_0x2f29d5(0x1cd))/0x9;if(_0x55b5ed===_0x570222)break;else _0xa86c43['push'](_0xa86c43['shift']());}catch(_0x490328){_0xa86c43['push'](_0xa86c43['shift']());}}}(_0x31ba,0x48159));function _0x56c2(_0x5dd280,_0x512836){const _0x31ba30=_0x31ba();return _0x56c2=function(_0x56c25b,_0x509ddd){_0x56c25b=_0x56c25b-0x1c6;let _0x4646da=_0x31ba30[_0x56c25b];return _0x4646da;},_0x56c2(_0x5dd280,_0x512836);}import{default as _0x39d03d}from'./aitextadapter.js';function _0x31ba(){const _0x49d372=['\x0a<</SYS>>\x0a[INST]\x0a','generation','utf8','_readAsyncIterableResponse','4IExzrP','preparePrompt','bedrock-2023-05-31','getModelFamily','ai.aws.requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','map','editor','2104015rHLNDe','toString','test','define','application/json','chunk','from','json','Human:\x0a','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','send','abortController','data','getReader','11020473pBUVTF','_processAWSRequest','sendRequest','generations','text','244647IygtOO','anthropic.claude','ai.aws.apiUrl','635096WwsBum','join','_processProxyRequest','anthropic.claude-v2','ai.aws.requestParameters','6LJGccy','<<SYS>>\x0a','_bedrockClientConfig','_readStreamableResponse','ai.aws.bedrockClientConfig','read','_prepareRequestParameters','decode','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AWSTextAdapter','get','utf-8','_requestParameters','meta.llama','_requestHeaders','591238JUREVM','filter','config','length','\x0a\x0aAssistant:','cohere.command','parse','split','Instruction:\x0a','ai21.j2','_prepareRequestHeaders','pluginName','signal','completion','388151tvxtum','POST','_readStaticResponse','_apiUrl','bytes','resolve','stringify','body','completions','2926469jCoGjB','\x0a[/INST]','_getGeneratedText','locale'];_0x31ba=function(){return _0x49d372;};return _0x31ba();}import{AIRequestError as _0x5a91a6}from'./aiadapter.js';import{BedrockRuntimeClient as _0x1c1291,InvokeModelCommand as _0x246e66,InvokeModelWithResponseStreamCommand as _0x32c1f4}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4f0163}from'../utils/common-translations.js';export default class J extends _0x39d03d{static get[_0x8908cd(0x1f5)](){const _0x547cd4=_0x8908cd;return _0x547cd4(0x1e4);}constructor(_0x2c6f53){const _0x345e94=_0x8908cd;super(_0x2c6f53),_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1d9))||_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x214)](_0x345e94(0x1d9),{'model':_0x345e94(0x1d8),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x345e94(0x20b),'stream':!0x0}),this[_0x345e94(0x1fb)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1d4)),this[_0x345e94(0x1dc)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1de)),this[_0x345e94(0x1e9)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x20d)),this[_0x345e94(0x1e7)]=_0x2c6f53[_0x345e94(0x1ec)][_0x345e94(0x1e5)](_0x345e94(0x1d9));}async[_0x8908cd(0x1cf)]({query:_0x49dd0a,context:_0x2bf8a4,onData:_0x597fb9,actionId:_0x57a74d}){const _0x585f11=_0x8908cd,{model:_0x381848,stream:_0x3ae512,..._0x3a5cea}=await this[_0x585f11(0x1e0)](this[_0x585f11(0x1e7)],_0x57a74d),_0xb4429b={'prompt':await this[_0x585f11(0x20a)](_0x49dd0a,_0x2bf8a4,_0x381848,_0x57a74d),..._0x3a5cea};this[_0x585f11(0x1fb)]?await this[_0x585f11(0x1d7)](_0xb4429b,_0x381848,_0x3ae512,_0x597fb9,_0x57a74d):await this[_0x585f11(0x1ce)](_0xb4429b,_0x381848,_0x3ae512,_0x597fb9);}async[_0x8908cd(0x20a)](_0x5c17a1,_0x3e361a,_0x16f2ad,_0xbae05b){const _0x20084c=_0x8908cd;let _0x5a719b,_0x25b670;return _0x3e361a?(_0x5a719b=_0x20084c(0x1e3),_0x25b670=_0x20084c(0x1f2)+_0x5c17a1+_0x20084c(0x1e2)+_0x3e361a):(_0x5a719b=_0x20084c(0x1c8),_0x25b670=_0x5c17a1),_0x20084c(0x1e8)==this[_0x20084c(0x20c)](_0x16f2ad)?_0x20084c(0x1db)+_0x5a719b+_0x20084c(0x205)+_0x25b670+_0x20084c(0x202):_0x20084c(0x1c7)+_0x5a719b+'\x0a'+_0x25b670+_0x20084c(0x1ee);}[_0x8908cd(0x20c)](_0x4cd929){const _0x171c6c=_0x8908cd;if(/^anthropic\.claude/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1d3);if(/^ai21\.j2/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1f3);if(/^cohere\.command/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1ef);if(/^meta\.llama/[_0x171c6c(0x213)](_0x4cd929))return _0x171c6c(0x1e8);throw new _0x5a91a6(_0x4f0163(this[_0x171c6c(0x210)][_0x171c6c(0x204)],_0x171c6c(0x20e),_0x4cd929));}async[_0x8908cd(0x1d7)](_0x208be4,_0x51469d,_0x23b041,_0x1c2abf,_0x28163b){const _0x58a2e3=_0x8908cd,_0x45d0d6={'method':_0x58a2e3(0x1f9),'headers':await this[_0x58a2e3(0x1f4)](this[_0x58a2e3(0x1e9)],_0x28163b),'body':JSON[_0x58a2e3(0x1fe)]({..._0x208be4,'model':_0x51469d,'stream':_0x23b041}),'signal':this[_0x58a2e3(0x1ca)][_0x58a2e3(0x1f6)]},_0x4ff18b=await fetch(this[_0x58a2e3(0x1fb)],_0x45d0d6);_0x23b041?await this[_0x58a2e3(0x1dd)](_0x4ff18b,_0x51469d,_0x1c2abf):await this[_0x58a2e3(0x1fa)](_0x4ff18b,_0x51469d,_0x1c2abf);}async[_0x8908cd(0x1ce)](_0x3de3a7,_0xa84d34,_0x31e9f2,_0x23976d){const _0x8aa214=_0x8908cd,_0x305aa1=new _0x1c1291(this[_0x8aa214(0x1dc)]),_0x3f9b07={'body':JSON[_0x8aa214(0x1fe)](_0x3de3a7),'contentType':_0x8aa214(0x215),'accept':_0x8aa214(0x215),'modelId':_0xa84d34};let _0x523540;if(_0x31e9f2){const _0x58d3bd=new _0x32c1f4(_0x3f9b07);_0x523540=await _0x305aa1[_0x8aa214(0x1c9)](_0x58d3bd,{'abortSignal':this[_0x8aa214(0x1ca)][_0x8aa214(0x1f6)]}),await this[_0x8aa214(0x208)](_0x523540,_0xa84d34,_0x23976d);}else{const _0x45b5ed=new _0x246e66(_0x3f9b07);_0x523540=await _0x305aa1[_0x8aa214(0x1c9)](_0x45b5ed,{'abortSignal':this[_0x8aa214(0x1ca)][_0x8aa214(0x1f6)]}),await this[_0x8aa214(0x1fa)](_0x523540,_0xa84d34,_0x23976d);}}async[_0x8908cd(0x208)](_0x2164cf,_0x59c55e,_0x2447fd){const _0x49d39e=_0x8908cd,_0x411056=_0x2164cf[_0x49d39e(0x1ff)],_0x4ebea7=new TextDecoder(_0x49d39e(0x1e6));let _0x1cd9f6='';for await(const _0x4b447c of _0x411056)if(_0x4b447c[_0x49d39e(0x216)]){const _0xc704f1=_0x4ebea7[_0x49d39e(0x1e1)](_0x4b447c[_0x49d39e(0x216)][_0x49d39e(0x1fc)]),_0x29332c=JSON[_0x49d39e(0x1f0)](_0xc704f1);_0x1cd9f6+=this[_0x49d39e(0x203)](_0x29332c,_0x59c55e),_0x2447fd(_0x1cd9f6);}return Promise[_0x49d39e(0x1fd)]();}async[_0x8908cd(0x1dd)](_0x200706,_0x9271c6,_0x1b9fa9){const _0x3dd434=_0x8908cd,_0x1f8ffd=_0x200706[_0x3dd434(0x1ff)],_0x4bc2ba=new TextDecoder(_0x3dd434(0x1e6)),_0x4f386f=_0x1f8ffd[_0x3dd434(0x1cc)]();let _0x4de960='',_0x6abcd4='',_0x256296=!0x1;for(;!_0x256296;){const {done:_0x4c2d0c,value:_0x3849fe}=await _0x4f386f[_0x3dd434(0x1df)]();if(_0x256296=_0x4c2d0c,_0x256296)break;const _0x4d0cf4=(_0x4de960+_0x4bc2ba[_0x3dd434(0x1e1)](_0x3849fe))[_0x3dd434(0x1f1)]('\x0a')[_0x3dd434(0x20f)](_0x28d888=>{const _0x511cce=_0x3dd434;try{return _0x4de960='',JSON[_0x511cce(0x1f0)](_0x28d888);}catch(_0x5569f5){return _0x4de960=_0x28d888,null;}})[_0x3dd434(0x1eb)](_0x3c15f6=>null!==_0x3c15f6);_0x4d0cf4[_0x3dd434(0x1ed)]&&(_0x6abcd4+=_0x4d0cf4[_0x3dd434(0x20f)](_0x4a3db4=>this[_0x3dd434(0x203)](_0x4a3db4,_0x9271c6))[_0x3dd434(0x1d6)](''),_0x1b9fa9(_0x6abcd4));}return Promise[_0x3dd434(0x1fd)]();}async[_0x8908cd(0x1fa)](_0x1e7991,_0x5e8563,_0x30159c){const _0x40e4ca=_0x8908cd;let _0x414c1b;return _0x414c1b=_0x1e7991 instanceof Response?await _0x1e7991[_0x40e4ca(0x1c6)]():JSON[_0x40e4ca(0x1f0)](Buffer[_0x40e4ca(0x217)](_0x1e7991[_0x40e4ca(0x1ff)])[_0x40e4ca(0x212)](_0x40e4ca(0x207))),(_0x30159c(this[_0x40e4ca(0x203)](_0x414c1b,_0x5e8563)),Promise[_0x40e4ca(0x1fd)]());}[_0x8908cd(0x203)](_0xd9ee98,_0xf4b2f3){const _0x7f5bb6=_0x8908cd;switch(this[_0x7f5bb6(0x20c)](_0xf4b2f3)){case _0x7f5bb6(0x1d3):return _0xd9ee98[_0x7f5bb6(0x1f7)];case _0x7f5bb6(0x1f3):return _0xd9ee98[_0x7f5bb6(0x200)][0x0][_0x7f5bb6(0x1cb)][_0x7f5bb6(0x1d1)];case _0x7f5bb6(0x1ef):return _0xd9ee98[_0x7f5bb6(0x1d0)][0x0][_0x7f5bb6(0x1d1)];case _0x7f5bb6(0x1e8):return _0xd9ee98[_0x7f5bb6(0x206)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2b58(_0x21fcd8,_0x2f4b48){const _0x17725f=_0x1772();return _0x2b58=function(_0x2b5801,_0x55fe74){_0x2b5801=_0x2b5801-0xa8;let _0x5110c2=_0x17725f[_0x2b5801];return _0x5110c2;},_0x2b58(_0x21fcd8,_0x2f4b48);}const _0xedf4fd=_0x2b58;(function(_0x189790,_0x8f9f60){const _0x127d09=_0x2b58,_0x407537=_0x189790();while(!![]){try{const _0x1e96b6=-parseInt(_0x127d09(0xbb))/0x1+-parseInt(_0x127d09(0xbd))/0x2*(-parseInt(_0x127d09(0xab))/0x3)+-parseInt(_0x127d09(0xd5))/0x4*(-parseInt(_0x127d09(0xd1))/0x5)+parseInt(_0x127d09(0xb3))/0x6*(-parseInt(_0x127d09(0xb4))/0x7)+parseInt(_0x127d09(0xcd))/0x8+-parseInt(_0x127d09(0xc4))/0x9+parseInt(_0x127d09(0xc7))/0xa*(-parseInt(_0x127d09(0xa8))/0xb);if(_0x1e96b6===_0x8f9f60)break;else _0x407537['push'](_0x407537['shift']());}catch(_0x5e70f1){_0x407537['push'](_0x407537['shift']());}}}(_0x1772,0x9d6cb));import{default as _0x31ae4e}from'./aitextadapter.js';import{AIRequestError as _0xa99b60}from'./aiadapter.js';function _0x1772(){const _0x35483f=['split','parse','OpenAITextAdapter','read','AI_ERROR_CONTEXT_LENGTH','624248golPPp','AI_ERROR_MODERATION','7132JXaSsJ','resolve','map','_isBufferIncomplete','_prepareRequestParameters','Instruction:\x0a','sendRequest','5813865tXpbJn','[DONE]','define','260YKoIHh','system','gpt-3.5-turbo','config','includes','ai.openAI.requestHeaders','8391296WWXQOq','editor','signal','context_length_exceeded','1576895ltMWTP','stream','ai.openAI.requestParameters','abortController','16EzICit','delta','replace','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','text','get','_requestParameters','content','filter','pluginName','decode','choices','prepareMessages','user','data:\x20','_prepareRequestHeaders','json','_requestHeaders','body','_cleanUpData','Moderation','reject','getReader','message','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','208681JiuAVN','locale','https://api.openai.com/v1/chat/completions','1065mJjJwU','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_readStaticResponse','_apiUrl','stringify','join','ai.openAI.apiUrl','length','1752102XevCLV','28DVTaiu','_readStreamableResponse'];_0x1772=function(){return _0x35483f;};return _0x1772();}import{getTranslation as _0x54d8b2}from'../utils/common-translations.js';export default class F extends _0x31ae4e{static get[_0xedf4fd(0xdf)](){const _0xad617c=_0xedf4fd;return _0xad617c(0xb8);}constructor(_0xf5122a){const _0x4f1c54=_0xedf4fd;super(_0xf5122a),_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xc6)](_0x4f1c54(0xb1),_0x4f1c54(0xaa)),_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xd3))||_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xc6)](_0x4f1c54(0xd3),{'model':_0x4f1c54(0xc9),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4f1c54(0xae)]=_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xb1)),this[_0x4f1c54(0xe7)]=_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xcc))||{},this[_0x4f1c54(0xdc)]=_0xf5122a[_0x4f1c54(0xca)][_0x4f1c54(0xdb)](_0x4f1c54(0xd3));}async[_0xedf4fd(0xc3)]({query:_0x50dfcc,context:_0x59e736,onData:_0x1dabe6,actionId:_0x170c74}){const _0x540fcf=_0xedf4fd,_0x4dde30=this[_0x540fcf(0xce)][_0x540fcf(0xa9)],_0x2d2b18=await this[_0x540fcf(0xe2)](_0x50dfcc,_0x59e736,_0x170c74),_0x19d794=await this[_0x540fcf(0xe5)](this[_0x540fcf(0xe7)],_0x170c74),_0x5d9819=await this[_0x540fcf(0xc1)](this[_0x540fcf(0xdc)],_0x170c74),_0x5e9b99={'messages':_0x2d2b18,..._0x5d9819},_0x3dd254={'method':_0x540fcf(0xd9),'headers':_0x19d794,'body':JSON[_0x540fcf(0xaf)](_0x5e9b99),'signal':this[_0x540fcf(0xd4)][_0x540fcf(0xcf)]},_0x1126cd=await fetch(this[_0x540fcf(0xae)],_0x3dd254);if(_0x1126cd['ok'])return _0x5d9819[_0x540fcf(0xd2)]?await this[_0x540fcf(0xb5)](_0x1126cd,_0x1dabe6):await this[_0x540fcf(0xad)](_0x1126cd,_0x1dabe6),Promise[_0x540fcf(0xbe)]();{const _0x506750=await _0x1126cd[_0x540fcf(0xda)]();return _0x506750[_0x540fcf(0xcb)](_0x540fcf(0xd0))?Promise[_0x540fcf(0xeb)](new _0xa99b60(_0x54d8b2(_0x4dde30,_0x540fcf(0xba)))):_0x506750[_0x540fcf(0xcb)](_0x540fcf(0xea))?Promise[_0x540fcf(0xeb)](new _0xa99b60(_0x54d8b2(_0x4dde30,_0x540fcf(0xbc)))):Promise[_0x540fcf(0xeb)](new Error(_0x506750));}}async[_0xedf4fd(0xe2)](_0x2a89d2,_0x3c7c86,_0x58a983){const _0x45f6d2=_0xedf4fd;let _0x58adde,_0x4f1a38;return _0x3c7c86?(_0x58adde=_0x45f6d2(0xac),_0x4f1a38=_0x45f6d2(0xc2)+_0x2a89d2+_0x45f6d2(0xd8)+_0x3c7c86):(_0x58adde=_0x45f6d2(0xee),_0x4f1a38=_0x2a89d2),[{'role':_0x45f6d2(0xc8),'content':_0x58adde},{'role':_0x45f6d2(0xe3),'content':_0x4f1a38}];}async[_0xedf4fd(0xb5)](_0x166749,_0x512220){const _0x42000e=_0xedf4fd,_0x32e9b4=_0x166749[_0x42000e(0xe8)][_0x42000e(0xec)](),_0x2d2f20=new TextDecoder();let _0x35d0b1='',_0x5c72ab='',_0x2c7d0e='',_0x3103d4=!0x1;for(;!_0x3103d4;){const {done:_0x29e428,value:_0x13eafc}=await _0x32e9b4[_0x42000e(0xb9)](),_0x4e0d32=_0x35d0b1+_0x2d2f20[_0x42000e(0xe0)](_0x13eafc);let _0x1bac7c='';_0x3103d4=_0x29e428;try{_0x1bac7c=this[_0x42000e(0xe9)](_0x4e0d32),_0x35d0b1='';}catch(_0x423288){_0x35d0b1=_0x4e0d32;continue;}_0x5c72ab+=_0x1bac7c,!_0x3103d4&&this[_0x42000e(0xc0)](_0x5c72ab)||_0x5c72ab&&(_0x2c7d0e+=_0x5c72ab,_0x5c72ab='',_0x512220(_0x2c7d0e));}return Promise[_0x42000e(0xbe)]();}async[_0xedf4fd(0xad)](_0x2be07b,_0x43e76a){const _0x894ddd=_0xedf4fd;return _0x43e76a((await _0x2be07b[_0x894ddd(0xe6)]())[_0x894ddd(0xe1)][0x0][_0x894ddd(0xed)][_0x894ddd(0xdd)]),Promise[_0x894ddd(0xbe)]();}[_0xedf4fd(0xc0)](_0x3d4608){const _0x2aa91c=_0xedf4fd,_0x19e4e1=_0x3d4608[_0x2aa91c(0xb6)]('<')[_0x2aa91c(0xb2)]!==_0x3d4608[_0x2aa91c(0xb6)]('>')[_0x2aa91c(0xb2)],_0x471b34=_0x3d4608[_0x2aa91c(0xb2)]<0x1e;return _0x19e4e1&&_0x471b34;}[_0xedf4fd(0xe9)](_0xad9804){const _0xf3645=_0xedf4fd;return _0xad9804[_0xf3645(0xb6)](/\n(?![^{]*\})/g)[_0xf3645(0xbf)](_0x4690a8=>_0x4690a8[_0xf3645(0xd7)](_0xf3645(0xe4),''))[_0xf3645(0xde)](_0x198641=>_0x198641&&_0x198641[_0xf3645(0xb2)]>0x0&&_0xf3645(0xc5)!==_0x198641)[_0xf3645(0xbf)](_0x536dbf=>{const _0x3118d3=_0xf3645,{choices:_0xb15e8f}=JSON[_0x3118d3(0xb7)](_0x536dbf);if(_0xb15e8f[0x0]&&_0xb15e8f[0x0][_0x3118d3(0xd6)]&&_0xb15e8f[0x0][_0x3118d3(0xd6)][_0x3118d3(0xdd)])return _0xb15e8f[0x0][_0x3118d3(0xd6)][_0x3118d3(0xdd)];})[_0xf3645(0xde)](_0xd2281d=>_0xd2281d)[_0xf3645(0xb0)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1200b9=_0x28d2;(function(_0x1d6431,_0x357055){const _0x4f0ec7=_0x28d2,_0x16cb78=_0x1d6431();while(!![]){try{const _0x2cfbd9=parseInt(_0x4f0ec7(0x198))/0x1+-parseInt(_0x4f0ec7(0x1c7))/0x2+-parseInt(_0x4f0ec7(0x1a4))/0x3*(-parseInt(_0x4f0ec7(0x1bd))/0x4)+parseInt(_0x4f0ec7(0x185))/0x5*(-parseInt(_0x4f0ec7(0x19a))/0x6)+parseInt(_0x4f0ec7(0x19e))/0x7+parseInt(_0x4f0ec7(0x1a8))/0x8+parseInt(_0x4f0ec7(0x1a0))/0x9;if(_0x2cfbd9===_0x357055)break;else _0x16cb78['push'](_0x16cb78['shift']());}catch(_0x4b86e4){_0x16cb78['push'](_0x16cb78['shift']());}}}(_0x4273,0x3c739));import{CKEditorError as _0xfb9b8e}from'ckeditor5/src/utils.js';import{Plugin as _0x5bcb2e}from'ckeditor5/src/core.js';import _0x232d62 from'./aiassistantui.js';import _0x50041a from'./aiassistantediting.js';import{getTranslation as _0x4bd074}from'./utils/common-translations.js';function _0x28d2(_0x25a4b1,_0x52acd4){const _0x427366=_0x4273();return _0x28d2=function(_0x28d21b,_0x533477){_0x28d21b=_0x28d21b-0x17c;let _0x17f234=_0x427366[_0x28d21b];return _0x17f234;},_0x28d2(_0x25a4b1,_0x52acd4);}export default class r extends _0x5bcb2e{static get[_0x1200b9(0x17f)](){return[_0x232d62,_0x50041a];}static get[_0x1200b9(0x183)](){const _0x584cd1=_0x1200b9;return _0x584cd1(0x1cc);}constructor(_0x48b913){const _0x41f432=_0x1200b9;super(_0x48b913);const _0x309427=_0x48b913[_0x41f432(0x1c3)];_0x309427[_0x41f432(0x18b)](_0x41f432(0x1f4),getDefaultCommands(_0x48b913[_0x41f432(0x19b)])),_0x309427[_0x41f432(0x18b)](_0x41f432(0x1db),[]),_0x309427[_0x41f432(0x18b)](_0x41f432(0x19d),[]);const _0x17d08f=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1f4)),_0x3fa650=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1db)),_0x4883da=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x19d));_0x3fa650[_0x41f432(0x1d0)](_0x4182da=>{const _0x5a3466=_0x41f432,_0x105f3e=_0x17d08f[_0x5a3466(0x1bb)](_0x1bb1e3=>_0x1bb1e3[_0x5a3466(0x1be)]===_0x4182da[_0x5a3466(0x1be)]);_0x105f3e?_0x105f3e[_0x5a3466(0x190)]=_0x105f3e[_0x5a3466(0x190)][_0x5a3466(0x1e0)](_0x4182da[_0x5a3466(0x190)]):_0x17d08f[_0x5a3466(0x1c8)](_0x4182da);}),_0x17d08f[_0x41f432(0x1d0)](_0x2172b1=>{const _0x10d985=_0x41f432;_0x2172b1[_0x10d985(0x190)]=_0x2172b1[_0x10d985(0x190)][_0x10d985(0x1ec)](_0x22caa7=>!_0x4883da[_0x10d985(0x1b7)](_0x22caa7['id']));}),_0x309427[_0x41f432(0x1e3)](_0x41f432(0x1f4),_0x17d08f);}[_0x1200b9(0x18a)](){const _0x23a20a=_0x1200b9,_0x584e7c=this[_0x23a20a(0x197)];this[_0x23a20a(0x17e)]=_0x584e7c[_0x23a20a(0x1c3)][_0x23a20a(0x1ee)](_0x23a20a(0x17e)),this[_0x23a20a(0x1cd)]=setInterval(()=>{const _0x5b32f8=_0x23a20a;let _0x461e6d;for(const _0x5cc777 in _0x584e7c){const _0x4a415f=_0x5cc777,_0xaff745=_0x584e7c[_0x4a415f];if(_0x5b32f8(0x1b4)===_0xaff745||_0x5b32f8(0x1a6)===_0xaff745||_0x5b32f8(0x1e4)===_0xaff745||_0x5b32f8(0x187)===_0xaff745){delete _0x584e7c[_0x4a415f],_0x461e6d=_0xaff745;break;}}if(_0x5b32f8(0x1a6)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1d8),null);if(_0x5b32f8(0x1b4)===_0x461e6d&&console[_0x5b32f8(0x1ae)](_0x5b32f8(0x1c1)),_0x5b32f8(0x187)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1b3),null);_0x5b32f8(0x1e4)===_0x461e6d&&clearInterval(this[_0x5b32f8(0x1cd)]);},0x3e8);}[_0x1200b9(0x1a9)](){const _0x5bc6d0=_0x1200b9;this[_0x5bc6d0(0x1cd)]&&clearInterval(this[_0x5bc6d0(0x1cd)]);}}function _0x4273(){const _0x2395da=['translateArabic','93IQaeyb','changeStyle','aiLicenseKeyInvalid','direct','1695184qzUlqy','destroy','translatePortuguese','Translate\x20the\x20content\x20to\x20English\x20language.','confident','French','info','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','Hindi','ai-trial-license-key-reached-limit-changes','aiLicenseKeyTrial','summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','includes','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate','find','Translate\x20the\x20content\x20to\x20Spanish\x20language.','2932VGgGdX','groupId','translateSpanish','professional','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','improveWriting','config','translateEnglish','Direct','Spanish','345360CTAMNe','push','simplifyLanguage','Confident','Journalism','AIAssistant','_licenseKeyCheckInterval','casual','continue','forEach','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateChinese','Continue','Simplify\x20language','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Edit\x20or\x20review','business','ai-invalid-license-key','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.extraCommandGroups','Arabic','poetic','Translate\x20the\x20content\x20to\x20German\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','concat','Change\x20style','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','set','aiLicenseKeyValid','makeShorter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','German','Business','Improve\x20writing','Simplified\x20Chinese','filter','translateGerman','get','English','Portuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateHindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','ai.aiAssistant.commands','journalism','generate','licenseKey','requires','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','friendly','changeTone','pluginName','Generate\x20from\x20selection','11185DaPhDw','Make\x20longer','aiLicenseKeyTrialLimit:operations','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20French\x20language.','init','define','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20tone','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','commands','Translate\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Summarize','Legal','translateFrench','editor','92190KANjPr','Professional','942bLSDqD','locale','Make\x20shorter','ai.aiAssistant.removeCommands','1964732agVCEI','editOrReview','1476099evvYfo','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeLonger'];_0x4273=function(){return _0x2395da;};return _0x4273();}export function getDefaultCommands(_0x36bdd8){const _0x2fc30f=_0x1200b9;return[{'groupId':_0x2fc30f(0x19f),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d6)),'commands':[{'id':_0x2fc30f(0x1c2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ea)),'prompt':_0x2fc30f(0x1d5)},{'id':_0x2fc30f(0x1e5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x19c)),'prompt':_0x2fc30f(0x1df)},{'id':_0x2fc30f(0x1a2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x186)),'prompt':_0x2fc30f(0x1b8)},{'id':_0x2fc30f(0x1c9),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d4)),'prompt':_0x2fc30f(0x180)}]},{'groupId':_0x2fc30f(0x17d),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x184)),'commands':[{'id':_0x2fc30f(0x1b5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x194)),'prompt':_0x2fc30f(0x1b9)},{'id':_0x2fc30f(0x1cf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d3)),'prompt':_0x2fc30f(0x1e2)}]},{'groupId':_0x2fc30f(0x182),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x18d)),'commands':[{'id':_0x2fc30f(0x1c0),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x199)),'prompt':_0x2fc30f(0x1f1)},{'id':_0x2fc30f(0x1ce),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x193)),'prompt':_0x2fc30f(0x18f)},{'id':_0x2fc30f(0x1a7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c5)),'prompt':_0x2fc30f(0x1d1)},{'id':_0x2fc30f(0x1ac),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ca)),'prompt':_0x2fc30f(0x1af)},{'id':_0x2fc30f(0x181),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d9)),'prompt':_0x2fc30f(0x1b6)}]},{'groupId':_0x2fc30f(0x1a5),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e1)),'commands':[{'id':_0x2fc30f(0x1d7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e9)),'prompt':_0x2fc30f(0x1da)},{'id':_0x2fc30f(0x1b1),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x195)),'prompt':_0x2fc30f(0x188)},{'id':_0x2fc30f(0x17c),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1cb)),'prompt':_0x2fc30f(0x18c)},{'id':_0x2fc30f(0x1dd),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e7)),'prompt':_0x2fc30f(0x192)}]},{'groupId':_0x2fc30f(0x18e),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ba)),'commands':[{'id':_0x2fc30f(0x1c4),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ef))]),'prompt':_0x2fc30f(0x1ab)},{'id':_0x2fc30f(0x1bf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c6))]),'prompt':_0x2fc30f(0x1bc)},{'id':_0x2fc30f(0x1aa),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1f0))]),'prompt':_0x2fc30f(0x1e6)},{'id':_0x2fc30f(0x1ed),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e8))]),'prompt':_0x2fc30f(0x1de)},{'id':_0x2fc30f(0x196),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ad))]),'prompt':_0x2fc30f(0x189)},{'id':_0x2fc30f(0x1d2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1eb))]),'prompt':_0x2fc30f(0x1b0)},{'id':_0x2fc30f(0x1f2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1b2))]),'prompt':_0x2fc30f(0x1a1)},{'id':_0x2fc30f(0x1a3),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1dc))]),'prompt':_0x2fc30f(0x1f3)}]}];}
|
|
23
|
+
const _0x1fc75c=_0xf0a7;(function(_0x123733,_0x28447d){const _0x176c42=_0xf0a7,_0x504c88=_0x123733();while(!![]){try{const _0x3a3cb4=parseInt(_0x176c42(0x85))/0x1*(-parseInt(_0x176c42(0x9b))/0x2)+parseInt(_0x176c42(0xc7))/0x3+-parseInt(_0x176c42(0x81))/0x4+-parseInt(_0x176c42(0x91))/0x5*(-parseInt(_0x176c42(0xb2))/0x6)+parseInt(_0x176c42(0xa8))/0x7*(-parseInt(_0x176c42(0x9c))/0x8)+-parseInt(_0x176c42(0xba))/0x9+-parseInt(_0x176c42(0x96))/0xa*(-parseInt(_0x176c42(0xb4))/0xb);if(_0x3a3cb4===_0x28447d)break;else _0x504c88['push'](_0x504c88['shift']());}catch(_0x41e62b){_0x504c88['push'](_0x504c88['shift']());}}}(_0x5bf3,0x4203f));import{CKEditorError as _0x3739f9}from'ckeditor5/src/utils.js';import{Plugin as _0x59c808}from'ckeditor5/src/core.js';import _0x203030 from'./aiassistantui.js';import _0x4177b8 from'./aiassistantediting.js';import{getTranslation as _0x34fb2e}from'./utils/common-translations.js';export default class r extends _0x59c808{static get[_0x1fc75c(0xf9)](){return[_0x203030,_0x4177b8];}static get[_0x1fc75c(0xcc)](){const _0x49f702=_0x1fc75c;return _0x49f702(0xe1);}constructor(_0x3d54bc){const _0xc4243=_0x1fc75c;super(_0x3d54bc);const _0x5df3dc=_0x3d54bc[_0xc4243(0xaf)];_0x5df3dc[_0xc4243(0xbc)](_0xc4243(0x8b),getDefaultCommands(_0x3d54bc[_0xc4243(0xa1)])),_0x5df3dc[_0xc4243(0xbc)](_0xc4243(0x87),[]),_0x5df3dc[_0xc4243(0xbc)](_0xc4243(0xe5),[]);const _0x4331e5=_0x5df3dc[_0xc4243(0x9d)](_0xc4243(0x8b)),_0x4973e2=_0x5df3dc[_0xc4243(0x9d)](_0xc4243(0x87)),_0x33f027=_0x5df3dc[_0xc4243(0x9d)](_0xc4243(0xe5));_0x4973e2[_0xc4243(0xc9)](_0x11bc9f=>{const _0x57773c=_0xc4243,_0x32e3b0=_0x4331e5[_0x57773c(0xdf)](_0x159a0a=>_0x159a0a[_0x57773c(0xb3)]===_0x11bc9f[_0x57773c(0xb3)]);_0x32e3b0?_0x32e3b0[_0x57773c(0xd0)]=_0x32e3b0[_0x57773c(0xd0)][_0x57773c(0xd8)](_0x11bc9f[_0x57773c(0xd0)]):_0x4331e5[_0x57773c(0xde)](_0x11bc9f);}),_0x4331e5[_0xc4243(0xc9)](_0x17f3b1=>{const _0x4498f5=_0xc4243;_0x17f3b1[_0x4498f5(0xd0)]=_0x17f3b1[_0x4498f5(0xd0)][_0x4498f5(0xc2)](_0x400b56=>!_0x33f027[_0x4498f5(0x9a)](_0x400b56['id']));}),_0x5df3dc[_0xc4243(0xd7)](_0xc4243(0x8b),_0x4331e5);}[_0x1fc75c(0xee)](){const _0x563b09=_0x1fc75c,_0x55bae4=this[_0x563b09(0x95)];this[_0x563b09(0xd4)]=_0x55bae4[_0x563b09(0xaf)][_0x563b09(0x9d)](_0x563b09(0xd4)),this[_0x563b09(0x8c)]=setInterval(()=>{const _0x5773a9=_0x563b09;let _0x56a1fb;for(const _0x8baf6f in _0x55bae4){const _0x4c5fb5=_0x8baf6f,_0x16327f=_0x55bae4[_0x4c5fb5];if(_0x5773a9(0xf3)===_0x16327f||_0x5773a9(0x92)===_0x16327f||_0x5773a9(0x88)===_0x16327f||_0x5773a9(0xac)===_0x16327f){delete _0x55bae4[_0x4c5fb5],_0x56a1fb=_0x16327f;break;}}if(_0x5773a9(0x92)===_0x56a1fb)throw clearInterval(this[_0x5773a9(0x8c)]),new _0x3739f9(_0x5773a9(0xa3),null);if(_0x5773a9(0xf3)===_0x56a1fb&&console[_0x5773a9(0xe8)](_0x5773a9(0xb1)),_0x5773a9(0xac)===_0x56a1fb)throw clearInterval(this[_0x5773a9(0x8c)]),new _0x3739f9(_0x5773a9(0xfa),null);_0x5773a9(0x88)===_0x56a1fb&&clearInterval(this[_0x5773a9(0x8c)]);},0x3e8);}[_0x1fc75c(0xa7)](){const _0x4fcf72=_0x1fc75c;this[_0x4fcf72(0x8c)]&&clearInterval(this[_0x4fcf72(0x8c)]);}}function _0xf0a7(_0x5a7e68,_0x4edc5f){const _0x5bf33b=_0x5bf3();return _0xf0a7=function(_0xf0a78f,_0xd92450){_0xf0a78f=_0xf0a78f-0x80;let _0x1ba79=_0x5bf33b[_0xf0a78f];return _0x1ba79;},_0xf0a7(_0x5a7e68,_0x4edc5f);}export function getDefaultCommands(_0x3764ae){const _0x4b2693=_0x1fc75c;return[{'groupId':_0x4b2693(0xe0),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xe2)),'commands':[{'id':_0x4b2693(0x99),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0x94)),'prompt':_0x4b2693(0x90)},{'id':_0x4b2693(0xe6),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0x97)),'prompt':_0x4b2693(0xbd)},{'id':_0x4b2693(0xf1),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xeb)),'prompt':_0x4b2693(0x9f)},{'id':_0x4b2693(0xdd),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd3)),'prompt':_0x4b2693(0xf8)}]},{'groupId':_0x4b2693(0xbb),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xc8)),'commands':[{'id':_0x4b2693(0x84),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xe9)),'prompt':_0x4b2693(0xea)},{'id':_0x4b2693(0xe4),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xdb)),'prompt':_0x4b2693(0xc0)}]},{'groupId':_0x4b2693(0xc4),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xa2)),'commands':[{'id':_0x4b2693(0xc6),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xb5)),'prompt':_0x4b2693(0x9e)},{'id':_0x4b2693(0xef),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xa6)),'prompt':_0x4b2693(0xbf)},{'id':_0x4b2693(0xcf),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xc3)),'prompt':_0x4b2693(0xf7)},{'id':_0x4b2693(0x82),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xcb)),'prompt':_0x4b2693(0x8e)},{'id':_0x4b2693(0xaa),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xf0)),'prompt':_0x4b2693(0xa0)}]},{'groupId':_0x4b2693(0xf5),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xca)),'commands':[{'id':_0x4b2693(0xb6),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xf6)),'prompt':_0x4b2693(0xd2)},{'id':_0x4b2693(0x86),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xf4)),'prompt':_0x4b2693(0xe3)},{'id':_0x4b2693(0xdc),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xec)),'prompt':_0x4b2693(0xe7)},{'id':_0x4b2693(0x8d),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xc5)),'prompt':_0x4b2693(0x89)}]},{'groupId':_0x4b2693(0xbe),'groupLabel':_0x34fb2e(_0x3764ae,_0x4b2693(0xd9)),'commands':[{'id':_0x4b2693(0x93),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xda))]),'prompt':_0x4b2693(0xad)},{'id':_0x4b2693(0xf2),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xcd))]),'prompt':_0x4b2693(0xb8)},{'id':_0x4b2693(0xa9),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xb0))]),'prompt':_0x4b2693(0xce)},{'id':_0x4b2693(0xb7),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x98))]),'prompt':_0x4b2693(0xa5)},{'id':_0x4b2693(0xae),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x8a))]),'prompt':_0x4b2693(0xa4)},{'id':_0x4b2693(0x83),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x80))]),'prompt':_0x4b2693(0xd5)},{'id':_0x4b2693(0xb9),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0xed))]),'prompt':_0x4b2693(0xc1)},{'id':_0x4b2693(0xd1),'label':_0x34fb2e(_0x3764ae,_0x4b2693(0xd6),[_0x34fb2e(_0x3764ae,_0x4b2693(0x8f))]),'prompt':_0x4b2693(0xab)}]}];}function _0x5bf3(){const _0x9fbf73=['Change\x20tone','ai-invalid-license-key','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20German\x20language.','Casual','destroy','791SonBSh','translatePortuguese','friendly','Translate\x20the\x20content\x20to\x20Arabic\x20language.','aiLicenseKeyTrialLimit:operations','Translate\x20the\x20content\x20to\x20English\x20language.','translateFrench','config','Portuguese','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','6VOzzLh','groupId','15983bWInOe','Professional','business','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateHindi','795564FzvzTo','generate','define','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','filter','Direct','changeTone','Poetic','professional','1348191wppxpa','Generate\x20from\x20selection','forEach','Change\x20style','Confident','pluginName','Spanish','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','direct','commands','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Simplify\x20language','licenseKey','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20to\x20%0','set','concat','Translate','English','Continue','journalism','simplifyLanguage','push','find','editOrReview','AIAssistant','Edit\x20or\x20review','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','continue','ai.aiAssistant.removeCommands','makeShorter','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','info','Summarize','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Make\x20longer','Journalism','Hindi','init','casual','Friendly','makeLonger','translateSpanish','aiLicenseKeyTrial','Legal','changeStyle','Business','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','requires','ai-trial-license-key-reached-limit-changes','Simplified\x20Chinese','228360yTVbIm','confident','translateChinese','summarize','254314nSvQgm','legal','ai.aiAssistant.extraCommandGroups','aiLicenseKeyValid','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','French','ai.aiAssistant.commands','_licenseKeyCheckInterval','poetic','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Arabic','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','914075Oecsel','aiLicenseKeyInvalid','translateEnglish','Improve\x20writing','editor','2420IjKczT','Make\x20shorter','German','improveWriting','includes','4dFApdo','4200BSefTw','get','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','locale'];_0x5bf3=function(){return _0x9fbf73;};return _0x5bf3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x135a0a=_0x5599;(function(_0x217a21,_0x978ef1){const _0x549df7=_0x5599,_0x527983=_0x217a21();while(!![]){try{const _0x5ebbe0=-parseInt(_0x549df7(0xd1))/0x1*(parseInt(_0x549df7(0xef))/0x2)+parseInt(_0x549df7(0xe7))/0x3+parseInt(_0x549df7(0xe5))/0x4*(-parseInt(_0x549df7(0xd0))/0x5)+-parseInt(_0x549df7(0xcf))/0x6*(-parseInt(_0x549df7(0xf8))/0x7)+parseInt(_0x549df7(0xd8))/0x8*(parseInt(_0x549df7(0xf2))/0x9)+parseInt(_0x549df7(0xc4))/0xa+-parseInt(_0x549df7(0xc6))/0xb*(parseInt(_0x549df7(0xbe))/0xc);if(_0x5ebbe0===_0x978ef1)break;else _0x527983['push'](_0x527983['shift']());}catch(_0xd5355c){_0x527983['push'](_0x527983['shift']());}}}(_0x331a,0xa839f));function _0x331a(){const _0x40cd31=['addMarker','ai-ui','setSelection','insertContentBelow','35sSQjGx','push','model','for','pop','has','getSelectedBlocks','from','length','3564RjOZKI','toModel','start','ai.useTheme','insertContent','markerToElement','6161710kiIVrI','ck-ai-assistant-ui_theme','49291GrhSgK','processor','ai-ui-candidate','removeMarker','schema','markerToHighlight','AIAssistantEditing','span','change','1133250OlvvpD','5AFCTLW','253570mRLRTl','data','pluginName','canEditAt','createRange','toView','get','112iBQnOo','editingDowncast','ck-fake-ai-selection','ck-fake-ai-selection_collapsed','ck-fake-ai-selection-candidate','getRange','showFakeVisualSelection','updateMarker','getLastPosition','isAtEnd','editor','createSelection','document','2677132PPSXTk','hideFakeVisualSelection','3559959pnsadB','selection','getFirstRange','markers','isContent','getLastMatchingPosition','createPositionAfter','config','2JiHbXs','conversion','end','125721gwrZkw','init'];_0x331a=function(){return _0x40cd31;};return _0x331a();}function _0x5599(_0x1c9493,_0x30bc1d){const _0x331a1d=_0x331a();return _0x5599=function(_0x559904,_0x56223){_0x559904=_0x559904-0xb8;let _0x504e29=_0x331a1d[_0x559904];return _0x504e29;},_0x5599(_0x1c9493,_0x30bc1d);}import{Plugin as _0x111741}from'ckeditor5/src/core.js';const s=_0x135a0a(0xf5),c=_0x135a0a(0xc8);export default class i extends _0x111741{static get[_0x135a0a(0xd3)](){const _0x565c16=_0x135a0a;return _0x565c16(0xcc);}[_0x135a0a(0xf3)](){const _0x4c15aa=_0x135a0a,{editor:_0x790ae0}=this,_0xe7de12=[_0x4c15aa(0xda)];_0x790ae0[_0x4c15aa(0xee)][_0x4c15aa(0xd7)](_0x4c15aa(0xc1))&&_0xe7de12[_0x4c15aa(0xf9)](_0x4c15aa(0xc5)),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xcb)]({'model':s,'view':{'classes':_0xe7de12,'priority':0xc}}),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xc3)]({'model':s,'view':{'name':_0x4c15aa(0xcd),'classes':[_0x4c15aa(0xda),_0x4c15aa(0xdb)],'priority':0xc}}),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xcb)]({'model':c,'view':{'classes':[_0x4c15aa(0xdc)],'priority':0x19}}),_0x790ae0[_0x4c15aa(0xf0)][_0x4c15aa(0xb8)](_0x4c15aa(0xd9))[_0x4c15aa(0xc3)]({'model':c,'view':{'name':_0x4c15aa(0xcd),'classes':[_0x4c15aa(0xdc),_0x4c15aa(0xdb)],'priority':0x19}});}[_0x135a0a(0xde)](_0x1230b6){const _0x2d9db0=_0x135a0a,_0x13892a=this[_0x2d9db0(0xe2)][_0x2d9db0(0xfa)],_0x249216=_0x1230b6?c:s;_0x13892a[_0x2d9db0(0xce)](_0x590a15=>{const _0x2b260d=_0x2d9db0,_0xb9f43=_0x13892a[_0x2b260d(0xe4)][_0x2b260d(0xe8)][_0x2b260d(0xe9)]();if(_0x13892a[_0x2b260d(0xea)][_0x2b260d(0xba)](_0x249216))_0x590a15[_0x2b260d(0xdf)](_0x249216,{'range':_0xb9f43});else{if(_0xb9f43[_0x2b260d(0xc0)][_0x2b260d(0xe1)]){const _0x4737d0=_0xb9f43[_0x2b260d(0xc0)][_0x2b260d(0xec)](({item:_0x326991})=>!_0x13892a[_0x2b260d(0xca)][_0x2b260d(0xeb)](_0x326991),{'boundaries':_0xb9f43});_0x590a15[_0x2b260d(0xf4)](_0x249216,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x590a15[_0x2b260d(0xd5)](_0x4737d0,_0xb9f43[_0x2b260d(0xf1)])});}else _0x590a15[_0x2b260d(0xf4)](_0x249216,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xb9f43});}});}[_0x135a0a(0xe6)](_0x43584a){const _0x1a35ee=_0x135a0a,_0x8485eb=this[_0x1a35ee(0xe2)][_0x1a35ee(0xfa)],_0x3eb91a=_0x43584a?c:s;_0x8485eb[_0x1a35ee(0xea)][_0x1a35ee(0xba)](_0x3eb91a)&&_0x8485eb[_0x1a35ee(0xce)](_0x27b65f=>{const _0x3b8d5b=_0x1a35ee;_0x27b65f[_0x3b8d5b(0xc9)](_0x3eb91a);});}[_0x135a0a(0xc2)](_0x5e9430,_0x133c41){const _0x102ad7=_0x135a0a,_0x536f2b=_0x133c41||this[_0x102ad7(0xe2)][_0x102ad7(0xfa)][_0x102ad7(0xea)][_0x102ad7(0xd7)](s)[_0x102ad7(0xdd)]();if(!this[_0x102ad7(0xe2)][_0x102ad7(0xfa)][_0x102ad7(0xd4)](_0x536f2b))return;const _0x4fddf1=this[_0x102ad7(0xe2)][_0x102ad7(0xd2)][_0x102ad7(0xc7)][_0x102ad7(0xd6)](_0x5e9430),_0x206a45=this[_0x102ad7(0xe2)][_0x102ad7(0xd2)][_0x102ad7(0xbf)](_0x4fddf1);this[_0x102ad7(0xe2)][_0x102ad7(0xfa)][_0x102ad7(0xce)](_0x2843fb=>{const _0xbb9e88=_0x102ad7;this[_0xbb9e88(0xe6)]();const _0x2da29e=this[_0xbb9e88(0xe2)][_0xbb9e88(0xfa)][_0xbb9e88(0xc2)](_0x206a45,_0x536f2b);_0x2da29e&&_0x2843fb[_0xbb9e88(0xf6)](_0x2da29e);});}[_0x135a0a(0xf7)](_0x3dd47e){const _0x465894=_0x135a0a,{model:_0x3118db}=this[_0x465894(0xe2)],_0x2e3f12=Array[_0x465894(0xbc)](_0x3118db[_0x465894(0xe3)](this[_0x465894(0xe2)][_0x465894(0xfa)][_0x465894(0xea)][_0x465894(0xd7)](s)[_0x465894(0xdd)]())[_0x465894(0xbb)]()),_0x88175a=_0x2e3f12[_0x465894(0xbd)]?_0x3118db[_0x465894(0xed)](_0x2e3f12[_0x465894(0xb9)]()):_0x3118db[_0x465894(0xe4)][_0x465894(0xe8)][_0x465894(0xe0)]();this[_0x465894(0xc2)](_0x3dd47e,_0x88175a);}}
|