@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.2
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/build/ai.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/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.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/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.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.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.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/ar.po +34 -34
- package/lang/translations/bg.po +26 -26
- package/lang/translations/bn.po +26 -26
- package/lang/translations/ca.po +26 -26
- package/lang/translations/cs.po +28 -28
- package/lang/translations/da.po +26 -26
- package/lang/translations/de.po +26 -26
- package/lang/translations/el.po +26 -26
- package/lang/translations/es.po +26 -26
- package/lang/translations/et.po +26 -26
- package/lang/translations/fi.po +26 -26
- package/lang/translations/fr.po +26 -26
- package/lang/translations/he.po +26 -26
- package/lang/translations/hi.po +26 -26
- package/lang/translations/hu.po +26 -26
- package/lang/translations/id.po +24 -24
- package/lang/translations/it.po +26 -26
- package/lang/translations/ja.po +24 -24
- package/lang/translations/ko.po +24 -24
- package/lang/translations/lt.po +28 -28
- package/lang/translations/lv.po +28 -28
- package/lang/translations/ms.po +24 -24
- package/lang/translations/nl.po +26 -26
- package/lang/translations/no.po +26 -26
- package/lang/translations/pl.po +28 -28
- package/lang/translations/pt-br.po +26 -26
- package/lang/translations/pt.po +26 -26
- package/lang/translations/ro.po +28 -28
- package/lang/translations/ru.po +28 -28
- package/lang/translations/sk.po +28 -28
- package/lang/translations/sr.po +28 -28
- package/lang/translations/sv.po +26 -26
- package/lang/translations/th.po +24 -24
- package/lang/translations/tr.po +26 -26
- package/lang/translations/uk.po +28 -28
- package/lang/translations/vi.po +24 -24
- package/lang/translations/zh-cn.po +24 -24
- package/lang/translations/zh.po +24 -24
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
package/lang/translations/zh.po
CHANGED
|
@@ -1010,97 +1010,97 @@ msgstr "義大利文"
|
|
|
1010
1010
|
msgctxt "Tooltip of the button that shows the changes in the suggestion in the AI chat feed."
|
|
1011
1011
|
msgid "AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP"
|
|
1012
1012
|
msgid_plural "Show changes in the document"
|
|
1013
|
-
msgstr[0] ""
|
|
1013
|
+
msgstr[0] "顯示文件中的變更"
|
|
1014
1014
|
|
|
1015
1015
|
msgctxt "Tooltip of the button that inserts the suggestions in the AI chat feed."
|
|
1016
1016
|
msgid "AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP"
|
|
1017
1017
|
msgid_plural "Insert changes as suggestions"
|
|
1018
|
-
msgstr[0] ""
|
|
1018
|
+
msgstr[0] "將變更作為建議插入"
|
|
1019
1019
|
|
|
1020
1020
|
msgctxt "The label of the header displayed in the AI chat sources panel."
|
|
1021
1021
|
msgid "AI_CHAT_SOURCES_HEADER"
|
|
1022
|
-
msgstr ""
|
|
1022
|
+
msgstr "來源"
|
|
1023
1023
|
|
|
1024
1024
|
msgctxt "The label of the toolbar button that toggles the AI chat panel."
|
|
1025
1025
|
msgid "AI_TOGGLE_BUTTON_LABEL"
|
|
1026
|
-
msgstr ""
|
|
1026
|
+
msgstr "AI"
|
|
1027
1027
|
|
|
1028
1028
|
msgctxt "Label for the AI quick action to translate content to Spanish."
|
|
1029
1029
|
msgid "AI_QUICK_ACTIONS_TRANSLATE_SPANISH"
|
|
1030
|
-
msgstr ""
|
|
1030
|
+
msgstr "西班牙文"
|
|
1031
1031
|
|
|
1032
1032
|
msgctxt "Label for the AI quick action to translate content to German."
|
|
1033
1033
|
msgid "AI_QUICK_ACTIONS_TRANSLATE_GERMAN"
|
|
1034
|
-
msgstr ""
|
|
1034
|
+
msgstr "德文"
|
|
1035
1035
|
|
|
1036
1036
|
msgctxt "The message displayed when the AI actions encounters a generic error."
|
|
1037
1037
|
msgid "AI_ACTIONS_GENERIC_ERROR"
|
|
1038
|
-
msgstr ""
|
|
1038
|
+
msgstr "抱歉,無法產生回覆。請稍後再試一次。"
|
|
1039
1039
|
|
|
1040
1040
|
msgctxt "The title of the header displayed in the AI balloon."
|
|
1041
1041
|
msgid "AI_BALLOON_HEADER_TITLE"
|
|
1042
|
-
msgstr ""
|
|
1042
|
+
msgstr "變更 %0"
|
|
1043
1043
|
|
|
1044
1044
|
msgctxt "The tooltip for the button that navigates to the previous AI interaction in the AI actions balloon."
|
|
1045
1045
|
msgid "AI_ACTIONS_PREVIOUS_INTERACTION"
|
|
1046
|
-
msgstr ""
|
|
1046
|
+
msgstr "上一個"
|
|
1047
1047
|
|
|
1048
1048
|
msgctxt "The tooltip for the button that navigates to the next AI interaction in the AI actions balloon."
|
|
1049
1049
|
msgid "AI_ACTIONS_NEXT_INTERACTION"
|
|
1050
|
-
msgstr ""
|
|
1050
|
+
msgstr "下一個"
|
|
1051
1051
|
|
|
1052
1052
|
msgctxt "Text displayed when there were no changes suggested at all to review in the AI review mode."
|
|
1053
1053
|
msgid "AI_REVIEW_MODE_EMPTY_RESULTS_TEXT"
|
|
1054
|
-
msgstr ""
|
|
1054
|
+
msgstr "沒有可建議的變更。"
|
|
1055
1055
|
|
|
1056
1056
|
msgctxt "The tooltip text for the icon indicator used for outdated suggestions"
|
|
1057
1057
|
msgid "AI_SUGGESTION_CONTENT_PART_OUTDATED"
|
|
1058
|
-
msgstr ""
|
|
1058
|
+
msgstr "變更已過時"
|
|
1059
1059
|
|
|
1060
1060
|
msgctxt "Message displayed when a suggestion content part is removed, suggesting to use the \"Show details\" button to learn more."
|
|
1061
1061
|
msgid "AI_SUGGESTION_CONTENT_PART_REMOVED"
|
|
1062
|
-
msgstr ""
|
|
1062
|
+
msgstr "內容已移除。請使用「顯示詳細資訊」來深入瞭解。"
|
|
1063
1063
|
|
|
1064
1064
|
msgctxt "The text displayed when the selected model is no longer available, before the button to start a new conversation."
|
|
1065
1065
|
msgid "AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT"
|
|
1066
|
-
msgstr ""
|
|
1066
|
+
msgstr "所選模型已不再提供使用,因此無法繼續此對話。請"
|
|
1067
1067
|
|
|
1068
1068
|
msgctxt "Label of the inline button to start a new conversation."
|
|
1069
1069
|
msgid "AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON"
|
|
1070
|
-
msgstr ""
|
|
1070
|
+
msgstr "開始新的對話。"
|
|
1071
1071
|
|
|
1072
1072
|
msgctxt "The error message displayed when the original content selection no longer exists and AI changes cannot be applied."
|
|
1073
1073
|
msgid "AI_ACTIONS_SELECTION_REMOVED_ERROR"
|
|
1074
|
-
msgstr ""
|
|
1074
|
+
msgstr "無法套用變更。原始內容已不存在。"
|
|
1075
1075
|
|
|
1076
1076
|
msgctxt "The error message displayed when the prompt is empty in the AI review mode."
|
|
1077
1077
|
msgid "AI_REVIEW_MODE_PROMPT_EMPTY_ERROR"
|
|
1078
|
-
msgstr ""
|
|
1078
|
+
msgstr "提示詞不得為空白"
|
|
1079
1079
|
|
|
1080
1080
|
msgctxt "Label for the button indicating that the AI review suggestion was accepted."
|
|
1081
1081
|
msgid "AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED"
|
|
1082
|
-
msgstr ""
|
|
1082
|
+
msgstr "已接受"
|
|
1083
1083
|
|
|
1084
1084
|
msgctxt "Label for the button indicating that the AI review suggestion was rejected."
|
|
1085
1085
|
msgid "AI_REVIEW_MODE_CHECK_STATUS_REJECTED"
|
|
1086
|
-
msgstr ""
|
|
1086
|
+
msgstr "已駁回"
|
|
1087
1087
|
|
|
1088
1088
|
msgctxt "Label for the button indicating that the AI review suggestion was marked as outdated."
|
|
1089
1089
|
msgid "AI_REVIEW_MODE_CHECK_STATUS_OUTDATED"
|
|
1090
|
-
msgstr ""
|
|
1090
|
+
msgstr "已過時"
|
|
1091
1091
|
|
|
1092
1092
|
msgctxt "The name of the automatically selected model."
|
|
1093
1093
|
msgid "AI_MODEL_NAME_AUTO"
|
|
1094
|
-
msgstr ""
|
|
1094
|
+
msgstr "自動"
|
|
1095
1095
|
|
|
1096
1096
|
msgctxt "The description of the automatically selected model."
|
|
1097
1097
|
msgid "AI_MODEL_DESCRIPTION_AUTO"
|
|
1098
|
-
msgstr ""
|
|
1098
|
+
msgstr "自動選取兼顧速度、品質及成本的最佳模型。"
|
|
1099
1099
|
|
|
1100
1100
|
msgctxt "The description of the Claude-4-5-Haiku model."
|
|
1101
1101
|
msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-HAIKU"
|
|
1102
|
-
msgstr ""
|
|
1102
|
+
msgstr "具成本效益且推理能力有所提升的模型,適合快速互動"
|
|
1103
1103
|
|
|
1104
1104
|
msgctxt "The description of the Claude-4-5-Sonnet model."
|
|
1105
1105
|
msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
|
|
1106
|
-
msgstr ""
|
|
1106
|
+
msgstr "創意、可靠度及推理能力皆有所提升的進階模型"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.2.0-alpha.
|
|
3
|
+
"version": "47.2.0-alpha.2",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-bedrock-runtime": "3.823.0",
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.2.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.2.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.2.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.2.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.2.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.2.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.
|
|
44
|
-
"ckeditor5": "47.2.0-alpha.
|
|
45
|
-
"ckeditor5-collaboration": "47.2.0-alpha.
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.2",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.2",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.2",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.2.0-alpha.2",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.2.0-alpha.2",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.2.0-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.2",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.2.0-alpha.2",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.2",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.2.0-alpha.2",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.2.0-alpha.2",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.2",
|
|
44
|
+
"ckeditor5": "47.2.0-alpha.2",
|
|
45
|
+
"ckeditor5-collaboration": "47.2.0-alpha.2",
|
|
46
46
|
"es-toolkit": "1.39.5",
|
|
47
47
|
"eventsource-parser": "3.0.2",
|
|
48
48
|
"htmlparser2": "10.0.0",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3772(_0x1766a5,_0x2a3063){const _0x180f6c=_0x180f();return _0x3772=function(_0x377235,_0x478b41){_0x377235=_0x377235-0xdd;let _0x40afed=_0x180f6c[_0x377235];return _0x40afed;},_0x3772(_0x1766a5,_0x2a3063);}const _0x14e726=_0x3772;(function(_0x44a0c2,_0x56fa59){const _0x4d2d35=_0x3772,_0x2bf6c1=_0x44a0c2();while(!![]){try{const _0x19f751=parseInt(_0x4d2d35(0x173))/0x1*(-parseInt(_0x4d2d35(0x124))/0x2)+parseInt(_0x4d2d35(0x140))/0x3+-parseInt(_0x4d2d35(0x16a))/0x4+-parseInt(_0x4d2d35(0x19a))/0x5*(parseInt(_0x4d2d35(0x1a0))/0x6)+parseInt(_0x4d2d35(0x13d))/0x7*(-parseInt(_0x4d2d35(0xe3))/0x8)+parseInt(_0x4d2d35(0x105))/0x9+-parseInt(_0x4d2d35(0x1a9))/0xa*(-parseInt(_0x4d2d35(0x11d))/0xb);if(_0x19f751===_0x56fa59)break;else _0x2bf6c1['push'](_0x2bf6c1['shift']());}catch(_0x4f4019){_0x2bf6c1['push'](_0x2bf6c1['shift']());}}}(_0x180f,0x98b71));import{Plugin as _0x17ef6c}from'ckeditor5/src/core.js';import{AIConnector as _0x4829df}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0xcd0656}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1f548f,ButtonView as _0x5e2901,ViewCollection as _0x4b75e7,View as _0x2f90e6}from'ckeditor5/src/ui.js';import{AIEditing as _0x2d428c}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x29426a}from'./model/aiactionsinteraction.js';import{CKEditorError as _0xc43016,first as _0x3e80dd}from'ckeditor5/src/utils.js';function _0x180f(){const _0x2371e4=['TrackChangesEditing','isCollapsed','config','_disableCustomViews','getSelectedContent','hideError','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_setErrorState','_clearSuggestionContent','ai-no-track-changes','actionName','change','upsertCustomAIActionRating','selection','model','hasPendingParts','rootName','2816232cCLJrF','getSelectedBlocks','_refreshInteraction','$graveyard','queueEmptyPromise','howMany','reinsert','message','AI_ACTIONS_NEXT_INTERACTION','170867tuPOIP','_promiseQueue','ck-ai-custom-action-button','_stopInteraction','_interactions','_isAbortError','enqueue','focus','indexOf','startsWith','isDocumentOperation','clearLoading','insertSuggestion','type','getAncestors','toolbar','replyContentUpdated','_filterOperationsOutsideRange','documentFragment','locale','dialogClosed','abort','move','parent','batch','_updateNavigationUI','push','add','_navigateToNext','miniToolbarView','setErrorState','element','replies','getChild','addNavigationItem','nodeAfter','listenTo','path','stopInteraction','30hJnVYr','_aiConnector','Error\x20refreshing\x20interaction:','showLoader','executeAction','balloonView','15270QNEtLT','hasError','modelToViewWithIds','_anchorOperation','getSelectedTableCells','updateContent','Error\x20updating\x20content\x20during\x20navigation:','AIConnector','stop','30vrmjgZ','processor','setSelection','data','has','getDocumentContext','AI_ACTIONS_PREVIOUS_INTERACTION','AIBalloon','first','span','root','interactionFinished','random','_currentInteractionIndex','editor','_clearInteractionHistory','_clone','includes','catch','accepted','_clearLoadingState','_execute','replyChangeGroupStateUpdated','ai-request-aborted','open','getCommonAncestor','ck-ai-navigation-button\x20ck-ai-previous-button','set','selectionRemoved','_interaction','_displayInteractionAtIndex','_isNavigationPreviousButtonInView','changeGroups','6980632TzazxJ','merge','version','pluginName','_navigationPreviousButton','AIActions','schema','showError','_setLoadingState','error','toData','Error\x20updating\x20content\x20in\x20replyCreated:','isPremiumPlugin','_createInteraction','getFirstRange','1/1','areChangesVisible','mainView','bodyView','getSelectionAsFragment','_isNavigationCounterInView','forEach','_navigationNextButton','setLoading','_balloonShowDiff','length','baseVersion','textContent','bind','history','getRanges','createRange','_setupCustomViews','_navigationCounter','2149542EUMEiQ','streaming','range','createPositionAfter','clearErrorState','documentContextContent','setTemplate','ck-ai-navigation-button\x20ck-ai-next-button','createPositionBefore','isEnabled','isLoading','_children','close','_interactionParams','rename','actionCallId','rejected','split','showChangesButton','toggleSuggestionDisplayMode','stopListening','start','removeNavigationItem','_clearErrorState','7928943iBtsXZ','getLimitElement','replyCreated','insert','end','TableSelection','_wrapWithCommonAncestors','6WjWYYy','requires','Error\x20updating\x20content\x20in\x20replyContentUpdated:','hideLoader','sourcePosition','get','pending','createPositionAt','_customViews','clone','getOperations','_isNavigationNextButtonInView','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','upsertAIActionRating','_executeAction','_getExecuteDataRegular','icon','signal','_appendChild','_applyOperationsAsSuggestions','execute','setChangeGroupState','nextSibling','static','isBusy','7yEBRau','remove','slice','986256awwsnP','plugins','getChildAtOffset','AI_ACTIONS_TRY_AGAIN','operationsA','isOfficialPlugin','ai.availableReplyActions','applySuggestion','Attribute','applyOperation','_getExecuteDataInTable','document','addOperation','position','stickiness','_applyChanges','map','_navigateToPrevious','AI_ACTIONS_GENERIC_ERROR','ck-ai-interaction-counter','TrackChanges','state','filter','aiBalloon','getRoot'];_0x180f=function(){return _0x2371e4;};return _0x180f();}import{IconAIQuickActions as _0x5e7d8c,IconRefresh as _0x3d3c11,IconNextArrow as _0x57f53a,IconPreviousArrow as _0x478ee6,IconShowChangesOff as _0x24c223}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x19d5a9}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x2502b8}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x375185}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x575629}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0xc30ece}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x295bc9,getOperationsFromReply as _0x386c98}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5583db,ModelRange as _0x2fcff2,ModelPosition as _0x41e1c1,_DetachOperation as _0x299b9d,transformOperationSets as _0x5ab5eb}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x24196}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x17ef6c{static get[_0x14e726(0x125)](){return[_0x4829df,_0x1f548f,_0x2d428c,_0x19d5a9,_0xc30ece];}static get[_0x14e726(0xe6)](){const _0x1d963a=_0x14e726;return _0x1d963a(0xe8);}static get[_0x14e726(0x145)](){return!0x0;}static get[_0x14e726(0xef)](){return!0x0;}[_0x14e726(0x19b)];[_0x14e726(0x177)]=[];[_0x14e726(0x1b6)]=0x0;[_0x14e726(0x112)];[_0x14e726(0xfb)]=!0x1;[_0x14e726(0x12c)]=new _0x4b75e7();[_0x14e726(0xe7)];[_0x14e726(0x104)];[_0x14e726(0xf7)]=!0x1;[_0x14e726(0xf9)];[_0x14e726(0xe1)]=!0x1;[_0x14e726(0x12f)]=!0x1;[_0x14e726(0x174)];get[_0x14e726(0xdf)](){const _0x5ea3c8=_0x14e726;return this[_0x5ea3c8(0x177)][this[_0x5ea3c8(0x177)][_0x5ea3c8(0xfc)]-0x1];}constructor(_0x3b8f79){const _0x6cdebd=_0x14e726;super(_0x3b8f79),this[_0x6cdebd(0x19b)]=this[_0x6cdebd(0x1b7)][_0x6cdebd(0x141)][_0x6cdebd(0x129)](_0x6cdebd(0x1a7)),this[_0x6cdebd(0xdd)](_0x6cdebd(0x13c),!0x1),this[_0x6cdebd(0x174)]=new _0x2502b8(),this[_0x6cdebd(0x103)]();}[_0x14e726(0x199)](){const _0x59fa25=_0x14e726;this[_0x59fa25(0x176)]();}async[_0x14e726(0x19e)](_0x30f7ba,_0xab6cee,_0x3577c2){const _0x12d730=_0x14e726;if(this[_0x12d730(0x1b7)][_0x12d730(0x141)][_0x12d730(0x1ad)](_0x12d730(0x122))){if(this[_0x12d730(0x1b7)][_0x12d730(0x141)][_0x12d730(0x129)](_0x12d730(0x122))[_0x12d730(0x1a4)]()){const {modelFragment:_0x20b7cf,anchorData:_0xb8b22}=this[_0x12d730(0x14a)]();return this[_0x12d730(0x132)](_0x30f7ba,_0x20b7cf,_0xb8b22,_0xab6cee,_0x3577c2);}}const {modelFragment:_0x25ced1,anchorData:_0x41229b}=this[_0x12d730(0x133)]();return this[_0x12d730(0x132)](_0x30f7ba,_0x25ced1,_0x41229b,_0xab6cee,_0x3577c2);}[_0x14e726(0x133)](){const _0x495e7f=_0x14e726,_0x2d9132=this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0x14b)][_0x495e7f(0x166)];if(_0x2d9132[_0x495e7f(0x15a)]){const _0x131bcc=_0x3e80dd(_0x2d9132[_0x495e7f(0x16b)]())||this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0xe9)][_0x495e7f(0x11e)](_0x2d9132);this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0x164)](_0x1c98de=>{const _0x129d26=_0x495e7f;_0x1c98de[_0x129d26(0x1ab)](_0x131bcc,'in');});}const _0x1df20b=_0x2d9132[_0x495e7f(0xf1)](),_0x2bb820=this[_0x495e7f(0x123)](this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0x15d)](_0x2d9132),_0x1df20b[_0x495e7f(0x11a)],_0x1df20b[_0x495e7f(0x121)]),_0x3ee74c=_0x2d9132[_0x495e7f(0xf1)]()[_0x495e7f(0x11a)],_0x4551cc=new Map();let _0x55cd7d=_0x2bb820;for(let _0x29d230=0x0;_0x29d230<_0x3ee74c[_0x495e7f(0x198)][_0x495e7f(0xfc)];_0x29d230++)_0x4551cc[_0x495e7f(0xdd)](_0x55cd7d,_0x3ee74c[_0x495e7f(0x198)][_0x29d230]),_0x55cd7d=_0x55cd7d[_0x495e7f(0x194)](0x0);return{'modelFragment':_0x2bb820,'anchorData':_0x4551cc};}[_0x14e726(0x14a)](){const _0x5181ce=_0x14e726,_0x2da185=this[_0x5181ce(0x1b7)][_0x5181ce(0x167)][_0x5181ce(0x14b)][_0x5181ce(0x166)],_0x5b48c9=this[_0x5181ce(0x1b7)][_0x5181ce(0x141)][_0x5181ce(0x129)](_0x5181ce(0x122))[_0x5181ce(0xf6)](),_0x253c2b=_0x2da185[_0x5181ce(0xf1)]()[_0x5181ce(0x11a)][_0x5181ce(0x18a)][_0x5181ce(0x18a)],_0x4d80c7=this[_0x5181ce(0x123)](_0x5b48c9,this[_0x5181ce(0x1b7)][_0x5181ce(0x167)][_0x5181ce(0x10d)](_0x253c2b),this[_0x5181ce(0x1b7)][_0x5181ce(0x167)][_0x5181ce(0x108)](_0x253c2b)),_0x9362e9=_0x2da185[_0x5181ce(0xf1)]()[_0x5181ce(0x11a)],_0x383f87=new Map();let _0x1fef33=_0x4d80c7;for(let _0x1269fc=0x0;_0x1269fc<_0x9362e9[_0x5181ce(0x198)][_0x5181ce(0xfc)];_0x1269fc++)if(_0x383f87[_0x5181ce(0xdd)](_0x1fef33,_0x9362e9[_0x5181ce(0x198)][_0x1269fc]),_0x1269fc<_0x9362e9[_0x5181ce(0x198)][_0x5181ce(0xfc)]-0x1)_0x1fef33=_0x1fef33[_0x5181ce(0x194)](0x0);else{let _0x1d1fe8=_0x1fef33[_0x5181ce(0x13a)];for(;_0x1d1fe8;)_0x383f87[_0x5181ce(0xdd)](_0x1d1fe8,_0x9362e9[_0x5181ce(0x198)][_0x1269fc]),_0x1d1fe8=_0x1d1fe8[_0x5181ce(0x13a)];}return{'modelFragment':_0x4d80c7,'anchorData':_0x383f87};}[_0x14e726(0x132)](_0x3c67fa,_0x362d8a,_0x37f752,_0x3a5b50,_0x484d3b){const _0x1821c9=_0x14e726,_0x4eda94=this[_0x1821c9(0x1b7)][_0x1821c9(0x141)][_0x1821c9(0x129)](_0x2d428c),_0x24a11d=this[_0x1821c9(0x1b7)][_0x1821c9(0x141)][_0x1821c9(0x129)](_0x19d5a9),_0x438359=this[_0x1821c9(0x1b7)][_0x1821c9(0x167)][_0x1821c9(0x14b)][_0x1821c9(0x166)],_0x111b7e=_0x4eda94[_0x1821c9(0x1a2)](_0x362d8a),_0xe003a9=this[_0x1821c9(0x1b7)][_0x1821c9(0x1ac)][_0x1821c9(0x1aa)][_0x1821c9(0xed)](_0x111b7e),_0x4aa7ad=this[_0x1821c9(0x1b7)][_0x1821c9(0x167)][_0x1821c9(0x14b)][_0x1821c9(0xe5)],_0x4609b7=[..._0x438359[_0x1821c9(0x101)]()];let _0x58ce26=this[_0x1821c9(0x1b7)][_0x1821c9(0x15b)][_0x1821c9(0x129)](_0x1821c9(0x146))||[..._0x24196];this[_0x1821c9(0x1b7)][_0x1821c9(0x141)][_0x1821c9(0x1ad)](_0x1821c9(0x154))||(_0x58ce26=_0x58ce26[_0x1821c9(0x156)](_0x3af2c9=>_0x1821c9(0x17f)!=_0x3af2c9));const _0x38c093=new _0xcd0656(this[_0x1821c9(0x1b7)][_0x1821c9(0x186)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1821c9(0x134),'customView':this[_0x1821c9(0x12c)]},'showUnchangedParts':!0x0,'availableActions':_0x58ce26});return _0x24a11d[_0x1821c9(0x1c1)]({'index':0x3e8*Math[_0x1821c9(0x1b5)]()%0x3e8,'title':_0x3a5b50,'icon':_0x484d3b||_0x5e7d8c,'mainView':_0x38c093,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x4609b7}),this[_0x1821c9(0xeb)](_0x38c093,_0x24a11d),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0x147),()=>{const _0xb653c0=_0x1821c9;this[_0xb653c0(0x14f)](_0x362d8a,_0x37f752,!0x1);}),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0x17f),()=>{const _0x4e45d4=_0x1821c9;this[_0x4e45d4(0x14f)](_0x362d8a,_0x37f752,!0x0);}),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0xde),()=>{const _0x985d00=_0x1821c9;this[_0x985d00(0x176)](),this[_0x985d00(0x15c)]();}),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0x187),()=>{const _0xcc5fc6=_0x1821c9;if(this[_0xcc5fc6(0xdf)]&&this[_0xcc5fc6(0xdf)][_0xcc5fc6(0x193)][_0xcc5fc6(0xfc)]>0x0){const _0x2ff082=this[_0xcc5fc6(0xdf)][_0xcc5fc6(0x193)][this[_0xcc5fc6(0xdf)][_0xcc5fc6(0x193)][_0xcc5fc6(0xfc)]-0x1],_0x22ff88=_0x2ff082[_0xcc5fc6(0xe2)][0x0];_0x22ff88&&_0xcc5fc6(0x12a)===_0x22ff88[_0xcc5fc6(0x155)]&&_0x2ff082[_0xcc5fc6(0x139)](0x0,_0xcc5fc6(0x115));}this[_0xcc5fc6(0x176)](),this[_0xcc5fc6(0x1b8)](),this[_0xcc5fc6(0x119)](_0x24a11d);}),this[_0x1821c9(0xf0)](_0xe003a9,_0x4aa7ad,_0x38c093,_0x24a11d,_0x3c67fa);}[_0x14e726(0x123)](_0x48ac69,_0x2923f5,_0x2ac356){const _0x5114bc=_0x14e726,_0x5466bd=this[_0x5114bc(0x1b7)][_0x5114bc(0x167)][_0x5114bc(0x102)](_0x2923f5,_0x2ac356)[_0x5114bc(0x1c2)](),_0xf5e4b4=_0x5466bd['is'](_0x5114bc(0x185))?[]:_0x5466bd[_0x5114bc(0x181)]({'includeSelf':!0x0})[_0x5114bc(0x13f)](0x1);if(_0xf5e4b4[_0x5114bc(0xfc)]){const _0x291c18=_0xf5e4b4[_0x5114bc(0x150)](_0xa450e7=>_0xa450e7[_0x5114bc(0x1b9)](!0x1));for(let _0x551dd5=0x1;_0x551dd5<_0x291c18[_0x5114bc(0xfc)];_0x551dd5++)_0x291c18[_0x551dd5-0x1][_0x5114bc(0x136)](_0x291c18[_0x551dd5]);return _0x291c18[_0x291c18[_0x5114bc(0xfc)]-0x1][_0x5114bc(0x136)](_0x48ac69),new _0x5583db(_0x291c18[0x0]);}return _0x48ac69;}async[_0x14e726(0xf0)](_0x134de9,_0x3d871f,_0x2c6d34,_0x56b81e,_0x414670){const _0x24b6b0=_0x14e726,_0x2368dc=this[_0x24b6b0(0x1b7)];this[_0x24b6b0(0x112)]={'action':_0x414670,'content':_0x134de9,'version':_0x3d871f,'mainView':_0x2c6d34,'aiBalloon':_0x56b81e};const _0x2b276a=new _0x29426a({'connector':this[_0x24b6b0(0x19b)],'editor':_0x2368dc,'content':_0x134de9,'version':_0x3d871f,..._0x414670});this[_0x24b6b0(0x177)][_0x24b6b0(0x18d)](_0x2b276a),_0x2c6d34[_0x24b6b0(0x15e)]();const _0x135752=(_0x35eeaf,_0x83aef6,_0xc59685=!0x1,_0x458642=_0x24b6b0(0x106))=>this[_0x24b6b0(0x174)][_0x24b6b0(0x179)](async _0x4254ef=>{const _0x2a2691=_0x24b6b0;try{const _0x34f92a=_0x575629({'editor':_0x2368dc,'changeGroups':_0x35eeaf[_0x2a2691(0xe2)],'documentContextContent':_0x35eeaf[_0x2a2691(0x10a)],'showDiff':_0xc59685,'trimUnchanged':!0x1});await _0x83aef6[_0x2a2691(0x1a5)]({'parts':_0x34f92a,'renderingStrategy':_0x458642,'abortSignal':_0x4254ef});}catch(_0x2d2640){if(this[_0x2a2691(0x178)](_0x2d2640))return;throw _0x2d2640;}});this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x11f),(_0x71c931,_0x14ff39)=>{const _0x9c208=_0x24b6b0;_0x2c6d34[_0x9c208(0x127)](),_0x135752(_0x14ff39,_0x2c6d34)[_0x9c208(0x1bb)](_0x9f972f=>{const _0x5c3a5c=_0x9c208;this[_0x5c3a5c(0x178)](_0x9f972f)||(console[_0x5c3a5c(0xec)](_0x5c3a5c(0xee),_0x9f972f),this[_0x5c3a5c(0x160)](_0x2b276a,_0x2c6d34));});}),this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x183),(_0xa61040,_0x4ff614)=>{const _0x291f55=_0x24b6b0;_0x135752(_0x4ff614,_0x2c6d34)[_0x291f55(0x1bb)](_0xb74941=>{const _0x21541f=_0x291f55;this[_0x21541f(0x178)](_0xb74941)||(console[_0x21541f(0xec)](_0x21541f(0x126),_0xb74941),this[_0x21541f(0x160)](_0x2b276a,_0x2c6d34));});}),this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x1b4),async()=>{const _0x36c08c=_0x24b6b0;try{await this[_0x36c08c(0x1bd)](_0x2c6d34,_0x56b81e),this[_0x36c08c(0x18c)]();}catch(_0x9d11f6){this[_0x36c08c(0x178)](_0x9d11f6)||(console[_0x36c08c(0xec)](_0x36c08c(0x130),_0x9d11f6),this[_0x36c08c(0x160)](_0x2b276a,_0x2c6d34));}}),this[_0x24b6b0(0x197)](_0x2c6d34,_0x24b6b0(0x118),(_0x15cb0b,{showDiff:_0x133421})=>{const _0x17d983=_0x24b6b0;this[_0x17d983(0xfb)]=_0x133421;const _0x2737ef=this[_0x17d983(0xdf)][_0x17d983(0x193)][this[_0x17d983(0xdf)][_0x17d983(0x193)][_0x17d983(0xfc)]-0x1];_0x2737ef&&_0x135752(_0x2737ef,_0x2c6d34,_0x133421,_0x17d983(0x13b))[_0x17d983(0x1bb)](_0x441cab=>{const _0x4cf742=_0x17d983;this[_0x4cf742(0x178)](_0x441cab)||(console[_0x4cf742(0xec)](_0x4cf742(0x15f),_0x441cab),this[_0x4cf742(0x160)](_0x2b276a,_0x2c6d34));});}),this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x1bf),(_0x5c4d46,{reply:_0x4dc545})=>{const _0xb4af57=_0x24b6b0,_0x399cc7={'positiveCount':_0x4dc545[_0xb4af57(0xe2)][_0xb4af57(0x156)](_0x1a013e=>_0xb4af57(0x1bc)===_0x1a013e[_0xb4af57(0x155)])[_0xb4af57(0xfc)],'totalCount':_0x4dc545[_0xb4af57(0xe2)][_0xb4af57(0xfc)]},_0x3c7d64=this[_0xb4af57(0xdf)][_0xb4af57(0x114)],_0x49643e=this[_0xb4af57(0xdf)][_0xb4af57(0x163)];_0x49643e?this[_0xb4af57(0x19b)][_0xb4af57(0x131)](_0x49643e,_0x3c7d64,_0x399cc7):this[_0xb4af57(0x19b)][_0xb4af57(0x165)](_0x3c7d64,_0x399cc7);}),this[_0x24b6b0(0xeb)](_0x2c6d34,_0x56b81e);try{const _0x1001e7=await this[_0x24b6b0(0xdf)][_0x24b6b0(0x11a)]();return this[_0x24b6b0(0x18c)](),_0x1001e7;}catch(_0x3b385f){if(this[_0x24b6b0(0x178)](_0x3b385f))return;_0x2c6d34[_0x24b6b0(0x127)](),this[_0x24b6b0(0x160)](_0x2b276a,_0x2c6d34);}}[_0x14e726(0x14f)](_0x4b1c6a,_0x5c4a1b,_0x532e22){const _0x1f768b=_0x14e726,_0x2566ce=this[_0x1f768b(0x1b7)];if(_0x532e22&&!_0x2566ce[_0x1f768b(0x141)][_0x1f768b(0x1ad)](_0x1f768b(0x154)))throw new _0xc43016(_0x1f768b(0x162),null);const _0x14de36=this[_0x1f768b(0x1b7)][_0x1f768b(0x141)][_0x1f768b(0x129)](_0xc30ece),_0x117177=this[_0x1f768b(0xdf)],_0x2bd9e9=this[_0x1f768b(0xdf)][_0x1f768b(0x193)][this[_0x1f768b(0xdf)][_0x1f768b(0x193)][_0x1f768b(0xfc)]-0x1],_0xb40593=_0x2bd9e9[_0x1f768b(0xe2)];_0x2bd9e9[_0x1f768b(0x139)](0x0,_0x1f768b(0x1bc));let _0x42a94f=_0x386c98({'editor':_0x2566ce,'reply':_0x2bd9e9,'interaction':_0x117177,'groups':_0xb40593,'transform':!0x1,'documentCompare':_0x14de36,'documentCompareOptions':{'anchor':_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x12b)](_0x4b1c6a,0x0),'markDeletions':_0x532e22}});_0x42a94f=this[_0x1f768b(0x184)](_0x42a94f,_0x5c4a1b);for(const _0x19c509 of _0x42a94f)this[_0x1f768b(0x1a3)](_0x5c4a1b,_0x19c509,_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x14b)][_0x1f768b(0x158)]());const _0xac4833=_0x117177[_0x1f768b(0x1ae)]()[_0x1f768b(0xe5)],_0x22b75a=_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x14b)][_0x1f768b(0x100)][_0x1f768b(0x12e)](_0xac4833),_0x175b5a={'document':_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x14b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4fbee3=_0x5ab5eb(_0x42a94f,_0x22b75a,_0x175b5a)[_0x1f768b(0x144)];_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x164)](_0x221a92=>{const _0x56af35=_0x1f768b;if(_0x221a92[_0x56af35(0x1ab)](_0x2566ce[_0x56af35(0x167)][_0x56af35(0x14b)][_0x56af35(0x166)][_0x56af35(0x17a)]),_0x532e22)_0x2566ce[_0x56af35(0x141)][_0x56af35(0x129)](_0x56af35(0x159))[_0x56af35(0x137)](_0x4fbee3);else{for(const _0x5d4e29 of _0x4fbee3)_0x5d4e29[_0x56af35(0xfd)]=_0x2566ce[_0x56af35(0x167)][_0x56af35(0x14b)][_0x56af35(0xe5)],_0x295bc9(_0x2566ce,_0x5d4e29),_0x221a92[_0x56af35(0x18b)][_0x56af35(0x14c)](_0x5d4e29),_0x2566ce[_0x56af35(0x167)][_0x56af35(0x149)](_0x5d4e29);}}),this[_0x1f768b(0x1b7)][_0x1f768b(0x141)][_0x1f768b(0x129)](_0x1f768b(0x1b0))[_0x1f768b(0x111)]();}[_0x14e726(0x184)](_0x1f4089,_0x248387){const _0x56565f=_0x14e726;return _0x1f4089[_0x56565f(0x156)](_0x10d677=>{const _0x2d13ca=_0x56565f;if(_0x2d13ca(0x113)==_0x10d677[_0x2d13ca(0x180)]){const _0x5cca5f=_0x10d677[_0x2d13ca(0x14d)][_0x2d13ca(0x196)];return!_0x248387[_0x2d13ca(0x1ad)](_0x5cca5f);}if(_0x10d677[_0x2d13ca(0x180)][_0x2d13ca(0x17b)](_0x2d13ca(0x148))>-0x1){const _0x54584e=_0x10d677[_0x2d13ca(0x107)][_0x2d13ca(0x11a)][_0x2d13ca(0x196)];return!_0x248387[_0x2d13ca(0x1ad)](_0x54584e);}return!0x0;});}[_0x14e726(0x1a3)](_0x241200,_0x2d10e8,_0x5b4744){const _0x1859e8=_0x14e726,_0x3451c5=_0x2d10e8[_0x1859e8(0x12d)]();for(const _0x4fc178 in _0x2d10e8){const _0x1fd754=_0x2d10e8[_0x4fc178];_0x1fd754 instanceof _0x2fcff2?_0x2d10e8[_0x4fc178]=new _0x2fcff2(_0x164f1d(_0x1fd754[_0x1859e8(0x11a)]),_0x164f1d(_0x1fd754[_0x1859e8(0x121)])):_0x1fd754 instanceof _0x41e1c1&&(_0x2d10e8[_0x4fc178]=_0x164f1d(_0x1fd754));}if([_0x1859e8(0x120),_0x1859e8(0x189),_0x1859e8(0x13e),_0x1859e8(0x170),_0x1859e8(0x116),_0x1859e8(0xe4)][_0x1859e8(0x1ba)](_0x3451c5[_0x1859e8(0x180)])){if(_0x3451c5[_0x1859e8(0x17d)]=!0x1,_0x3451c5[_0x1859e8(0xfd)]=null,_0x1859e8(0x13e)==_0x3451c5[_0x1859e8(0x180)]){const _0x429bfa=_0x3451c5[_0x1859e8(0x128)],_0x37845c=_0x3451c5[_0x1859e8(0x16f)];new _0x299b9d(_0x429bfa,_0x37845c)[_0x1859e8(0x1be)]();}else _0x3451c5[_0x1859e8(0x1be)]();}function _0x164f1d(_0x94d11e){const _0x59d609=_0x1859e8;if(_0x59d609(0x16d)==_0x94d11e[_0x59d609(0x1b3)][_0x59d609(0x169)])return _0x94d11e;const _0x5e4875=[];let _0x298bc6=_0x94d11e[_0x59d609(0x1b3)];for(let _0x3c7dbb=0x0;_0x3c7dbb<_0x94d11e[_0x59d609(0x198)][_0x59d609(0xfc)];_0x3c7dbb++){const _0x1ada0c=_0x241200[_0x59d609(0x129)](_0x298bc6)||0x0;_0x5e4875[_0x3c7dbb]=_0x94d11e[_0x59d609(0x198)][_0x3c7dbb]+_0x1ada0c,_0x298bc6=_0x298bc6[_0x59d609(0x142)](_0x94d11e[_0x59d609(0x198)][_0x3c7dbb]);}return new _0x41e1c1(_0x5b4744,_0x5e4875,_0x94d11e[_0x59d609(0x14e)]);}}[_0x14e726(0x16c)](){const _0x2a5ccf=_0x14e726;if(!this[_0x2a5ccf(0x112)])return;this[_0x2a5ccf(0x177)][_0x2a5ccf(0xfc)]>0x0&&this[_0x2a5ccf(0x176)](),this[_0x2a5ccf(0x1b6)]=0x0,this[_0x2a5ccf(0xfb)]=!0x1;const {action:_0x53db63,content:_0x26793e,version:_0x3472e0,mainView:_0x51595b,aiBalloon:_0x4a6aee}=this[_0x2a5ccf(0x112)];_0x51595b[_0x2a5ccf(0xf3)]=!0x1,_0x51595b[_0x2a5ccf(0x15e)](),this[_0x2a5ccf(0x11c)](_0x51595b,_0x4a6aee);const _0x177204=_0x51595b;_0x177204[_0x2a5ccf(0x190)]&&_0x177204[_0x2a5ccf(0x190)][_0x2a5ccf(0x117)]&&_0x177204[_0x2a5ccf(0x190)][_0x2a5ccf(0x117)][_0x2a5ccf(0xdd)]({'isOn':!0x1,'icon':_0x24c223}),this[_0x2a5ccf(0x161)](_0x51595b),_0x51595b[_0x2a5ccf(0x19d)](),this[_0x2a5ccf(0x18c)](),this[_0x2a5ccf(0xf0)](_0x26793e,_0x3472e0,_0x51595b,_0x4a6aee,_0x53db63)[_0x2a5ccf(0x1bb)](_0x3b54f6=>{const _0xf82d5a=_0x2a5ccf;this[_0xf82d5a(0x178)](_0x3b54f6)||console[_0xf82d5a(0xec)](_0xf82d5a(0x19c),_0x3b54f6);});}[_0x14e726(0x161)](_0x25c4c8){const _0x316455=_0x14e726,_0x4d0927=_0x25c4c8[_0x316455(0xf5)][_0x316455(0x110)];for(;_0x4d0927[_0x316455(0xfc)]>0x0;)_0x4d0927[_0x316455(0x13e)](_0x4d0927[_0x316455(0x1b1)]);_0x25c4c8[_0x316455(0xf5)][_0x316455(0x168)]=!0x1;}[_0x14e726(0x178)](_0x5a7d96){const _0xf47c05=_0x14e726;return!!_0x5a7d96[_0xf47c05(0x171)]&&_0x5a7d96[_0xf47c05(0x171)][_0xf47c05(0x17c)](_0xf47c05(0x1c0));}[_0x14e726(0x1b8)](){const _0x1a6c01=_0x14e726;this[_0x1a6c01(0x177)]=[],this[_0x1a6c01(0x112)]=void 0x0,this[_0x1a6c01(0x1b6)]=0x0,this[_0x1a6c01(0x18c)]();}[_0x14e726(0x176)](){const _0x1ef1e3=_0x14e726;this[_0x1ef1e3(0xdf)]&&this[_0x1ef1e3(0xdf)][_0x1ef1e3(0x1a8)](),this[_0x1ef1e3(0x174)][_0x1ef1e3(0x188)](),this[_0x1ef1e3(0x13c)]=!0x1;}[_0x14e726(0x103)](){const _0x36d158=_0x14e726,_0x414c8d=new _0x5e2901(this[_0x36d158(0x1b7)][_0x36d158(0x186)]),_0x4097d9=new _0x5e2901(this[_0x36d158(0x1b7)][_0x36d158(0x186)]),_0xa8dbe9=new _0x2f90e6(this[_0x36d158(0x1b7)][_0x36d158(0x186)]),_0x4e6599=new _0x5e2901(this[_0x36d158(0x1b7)][_0x36d158(0x186)]);_0x414c8d[_0x36d158(0xdd)]({'icon':_0x3d3c11,'label':_0x375185(this[_0x36d158(0x1b7)][_0x36d158(0x186)],_0x36d158(0x143)),'tooltip':!0x0,'class':_0x36d158(0x175)}),_0x4097d9[_0x36d158(0xdd)]({'icon':_0x478ee6,'tooltip':_0x375185(this[_0x36d158(0x1b7)][_0x36d158(0x186)],_0x36d158(0x1af)),'class':_0x36d158(0x1c3)}),_0xa8dbe9[_0x36d158(0x10b)]({'tag':_0x36d158(0x1b2),'attributes':{'class':[_0x36d158(0x153)]},'children':[_0x36d158(0xf2)]}),_0x4e6599[_0x36d158(0xdd)]({'icon':_0x57f53a,'tooltip':_0x375185(this[_0x36d158(0x1b7)][_0x36d158(0x186)],_0x36d158(0x172)),'class':_0x36d158(0x10c)}),_0x414c8d[_0x36d158(0xff)](_0x36d158(0x10e))['to'](this,_0x36d158(0x13c),_0x4d094d=>!_0x4d094d),_0x414c8d['on'](_0x36d158(0x138),()=>{const _0x15555d=_0x36d158;this[_0x15555d(0x16c)]();}),_0x4097d9[_0x36d158(0xff)](_0x36d158(0x10e))['to'](this,_0x36d158(0x13c),_0xa3f8a6=>!_0xa3f8a6),_0x4097d9['on'](_0x36d158(0x138),()=>{const _0x2139f3=_0x36d158;this[_0x2139f3(0x151)]();}),_0x4e6599[_0x36d158(0xff)](_0x36d158(0x10e))['to'](this,_0x36d158(0x13c),_0x409c0d=>!_0x409c0d),_0x4e6599['on'](_0x36d158(0x138),()=>{const _0x9c054f=_0x36d158;this[_0x9c054f(0x18f)]();}),this[_0x36d158(0xe7)]=_0x4097d9,this[_0x36d158(0x104)]=_0xa8dbe9,this[_0x36d158(0xf9)]=_0x4e6599,this[_0x36d158(0x12c)][_0x36d158(0x18e)](_0x414c8d);}[_0x14e726(0x151)](){const _0x4d72cb=_0x14e726,_0x5912ab=this[_0x4d72cb(0x177)][_0x4d72cb(0xfc)];this[_0x4d72cb(0x1b6)]<_0x5912ab-0x1&&this[_0x4d72cb(0xe0)](this[_0x4d72cb(0x1b6)]+0x1);}[_0x14e726(0x18f)](){const _0xffe5c9=_0x14e726;this[_0xffe5c9(0x1b6)]>0x0&&this[_0xffe5c9(0xe0)](this[_0xffe5c9(0x1b6)]-0x1);}async[_0x14e726(0xe0)](_0x5e12f9){const _0x25ee69=_0x14e726;if(!this[_0x25ee69(0x112)])return;this[_0x25ee69(0x1b6)]=_0x5e12f9;const {mainView:_0x2d31eb}=this[_0x25ee69(0x112)],_0x523ff8=this[_0x25ee69(0x177)][this[_0x25ee69(0x177)][_0x25ee69(0xfc)]-0x1-this[_0x25ee69(0x1b6)]];if(!_0x523ff8)return;if(_0x523ff8[_0x25ee69(0x1a1)])return this[_0x25ee69(0x160)](_0x523ff8,_0x2d31eb),void this[_0x25ee69(0x18c)]();if(!_0x523ff8[_0x25ee69(0x193)][_0x25ee69(0xfc)])return;_0x2d31eb[_0x25ee69(0x15e)](),this[_0x25ee69(0x112)]&&this[_0x25ee69(0x11c)](_0x2d31eb,this[_0x25ee69(0x112)][_0x25ee69(0x157)]);const _0x582a56=_0x523ff8[_0x25ee69(0x193)][_0x523ff8[_0x25ee69(0x193)][_0x25ee69(0xfc)]-0x1];if(_0x582a56){const _0x4c6cec=this[_0x25ee69(0x1b7)];this[_0x25ee69(0x161)](_0x2d31eb);try{const _0x461a3a=_0x575629({'editor':_0x4c6cec,'changeGroups':_0x582a56[_0x25ee69(0xe2)],'documentContextContent':_0x582a56[_0x25ee69(0x10a)],'showDiff':this[_0x25ee69(0xfb)],'trimUnchanged':!0x1});this[_0x25ee69(0x161)](_0x2d31eb),await new Promise(_0x581fda=>setTimeout(_0x581fda,0x32)),await _0x2d31eb[_0x25ee69(0x1a5)]({'parts':_0x461a3a,'renderingStrategy':_0x25ee69(0x13b),'abortSignal':new AbortController()[_0x25ee69(0x135)]});}catch(_0x3397b5){this[_0x25ee69(0x178)](_0x3397b5)||console[_0x25ee69(0xec)](_0x25ee69(0x1a6),_0x3397b5);}}this[_0x25ee69(0x18c)]();}[_0x14e726(0x18c)](){const _0x34cda0=_0x14e726;if(!this[_0x34cda0(0xe7)]||!this[_0x34cda0(0x104)]||!this[_0x34cda0(0xf9)])return;const _0x4d8b20=this[_0x34cda0(0x177)][_0x34cda0(0xfc)],_0x3d19f=_0x4d8b20>0x1,_0x128cdc=this[_0x34cda0(0x112)]?.[_0x34cda0(0xf4)];if(_0x3d19f){this[_0x34cda0(0xe1)]||this[_0x34cda0(0xf7)]||this[_0x34cda0(0x12f)]||(this[_0x34cda0(0x12c)][_0x34cda0(0x18e)](this[_0x34cda0(0xe7)]),_0x128cdc?.[_0x34cda0(0x195)](this[_0x34cda0(0xe7)]),this[_0x34cda0(0xe1)]=!0x0,this[_0x34cda0(0x12c)][_0x34cda0(0x18e)](this[_0x34cda0(0x104)]),_0x128cdc?.[_0x34cda0(0x195)](this[_0x34cda0(0x104)]),this[_0x34cda0(0xf7)]=!0x0,this[_0x34cda0(0x12c)][_0x34cda0(0x18e)](this[_0x34cda0(0xf9)]),_0x128cdc?.[_0x34cda0(0x195)](this[_0x34cda0(0xf9)]),this[_0x34cda0(0x12f)]=!0x0);const _0xd1cab1=_0x4d8b20-this[_0x34cda0(0x1b6)];this[_0x34cda0(0x104)][_0x34cda0(0x192)]&&(this[_0x34cda0(0x104)][_0x34cda0(0x192)][_0x34cda0(0xfe)]=_0xd1cab1+'/'+_0x4d8b20),this[_0x34cda0(0xe7)][_0x34cda0(0x10e)]=this[_0x34cda0(0x1b6)]<_0x4d8b20-0x1,this[_0x34cda0(0xf9)][_0x34cda0(0x10e)]=this[_0x34cda0(0x1b6)]>0x0;}else(this[_0x34cda0(0xe1)]||this[_0x34cda0(0xf7)]||this[_0x34cda0(0x12f)])&&(this[_0x34cda0(0x12c)][_0x34cda0(0x13e)](this[_0x34cda0(0xe7)]),_0x128cdc?.[_0x34cda0(0x11b)](this[_0x34cda0(0xe7)]),this[_0x34cda0(0xe1)]=!0x1,this[_0x34cda0(0x12c)][_0x34cda0(0x13e)](this[_0x34cda0(0x104)]),_0x128cdc?.[_0x34cda0(0x11b)](this[_0x34cda0(0x104)]),this[_0x34cda0(0xf7)]=!0x1,this[_0x34cda0(0x12c)][_0x34cda0(0x13e)](this[_0x34cda0(0xf9)]),_0x128cdc?.[_0x34cda0(0x11b)](this[_0x34cda0(0xf9)]),this[_0x34cda0(0x12f)]=!0x1);}[_0x14e726(0xeb)](_0x476f47,_0x5f3bec){const _0x1dd9c2=_0x14e726;_0x476f47[_0x1dd9c2(0xfa)](),_0x5f3bec[_0x1dd9c2(0x19f)][_0x1dd9c2(0xfa)](),this[_0x1dd9c2(0x13c)]=!0x0;}async[_0x14e726(0x160)](_0x366a03,_0x4cdf4e){const _0xd1d56f=_0x14e726,_0x218472=_0x375185(this[_0xd1d56f(0x1b7)][_0xd1d56f(0x186)],_0xd1d56f(0x152));_0x4cdf4e[_0xd1d56f(0xea)](_0x218472),_0x366a03[_0xd1d56f(0x1a1)]=!0x0,await this[_0xd1d56f(0x174)][_0xd1d56f(0x16e)],_0x4cdf4e[_0xd1d56f(0x191)](),this[_0xd1d56f(0x112)]?.[_0xd1d56f(0x157)][_0xd1d56f(0x19f)][_0xd1d56f(0x182)]&&(this[_0xd1d56f(0x112)][_0xd1d56f(0x157)][_0xd1d56f(0x19f)][_0xd1d56f(0x182)][_0xd1d56f(0x10f)]=!0x0);}[_0x14e726(0x11c)](_0x55d1be,_0x2cd4c2){const _0x48ebf0=_0x14e726;_0x55d1be[_0x48ebf0(0x109)](),_0x2cd4c2[_0x48ebf0(0x19f)][_0x48ebf0(0x182)]&&(_0x2cd4c2[_0x48ebf0(0x19f)][_0x48ebf0(0x182)][_0x48ebf0(0x10f)]=!0x1);}async[_0x14e726(0x1bd)](_0x8211fe,_0x15c4fe){const _0xe19975=_0x14e726;await this[_0xe19975(0x174)][_0xe19975(0x16e)],this[_0xe19975(0x13c)]=!0x1,_0x8211fe[_0xe19975(0x17e)](),_0x15c4fe[_0xe19975(0x19f)][_0xe19975(0x17e)]();}[_0x14e726(0x15c)](){const _0x50305f=_0x14e726;this[_0x50305f(0x12c)][_0x50305f(0xf8)](_0x5ef41b=>{const _0x37d51f=_0x50305f;_0x37d51f(0x10e)in _0x5ef41b&&(_0x5ef41b[_0x37d51f(0x10e)]=!0x1);});}}
|
|
23
|
+
const _0x1f7593=_0xbdc8;(function(_0x598fcf,_0x414e27){const _0x1aeaf3=_0xbdc8,_0x3759e5=_0x598fcf();while(!![]){try{const _0x53deeb=-parseInt(_0x1aeaf3(0x205))/0x1*(parseInt(_0x1aeaf3(0x1b9))/0x2)+-parseInt(_0x1aeaf3(0x266))/0x3+parseInt(_0x1aeaf3(0x1b7))/0x4+-parseInt(_0x1aeaf3(0x22b))/0x5+parseInt(_0x1aeaf3(0x1f6))/0x6+-parseInt(_0x1aeaf3(0x262))/0x7*(parseInt(_0x1aeaf3(0x246))/0x8)+parseInt(_0x1aeaf3(0x1cd))/0x9;if(_0x53deeb===_0x414e27)break;else _0x3759e5['push'](_0x3759e5['shift']());}catch(_0x232808){_0x3759e5['push'](_0x3759e5['shift']());}}}(_0x5d8c,0xefecb));import{Plugin as _0x376de0}from'ckeditor5/src/core.js';import{AIConnector as _0x18f768}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x1b84c1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0xbdc8(_0x715d08,_0x41dfd8){const _0x5d8ccf=_0x5d8c();return _0xbdc8=function(_0xbdc8e9,_0x2c6880){_0xbdc8e9=_0xbdc8e9-0x187;let _0x1536e5=_0x5d8ccf[_0xbdc8e9];return _0x1536e5;},_0xbdc8(_0x715d08,_0x41dfd8);}import{Dialog as _0x2857ae,ButtonView as _0xe70cdf,ViewCollection as _0xd0a890,View as _0x4502d8}from'ckeditor5/src/ui.js';import{AIEditing as _0x84f398}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x37a3f2}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x2497b0,first as _0x3a9a7f}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5a20a6,IconRefresh as _0x498d30,IconNextArrow as _0x906f8c,IconPreviousArrow as _0xafbd8d,IconShowChangesOff as _0x585565}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1f33ae}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x191ff7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x17db21}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x332499}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x8939b3}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2ca2ee,getOperationsFromReply as _0x2f7c9c}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x191375,ModelRange as _0x3e9fff,ModelPosition as _0x219509,_DetachOperation as _0x2e5d03,transformOperationSets as _0x327e49}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x10f058}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x376de0{static get[_0x1f7593(0x1bd)](){return[_0x18f768,_0x2857ae,_0x84f398,_0x1f33ae,_0x8939b3];}static get[_0x1f7593(0x1cc)](){const _0x218317=_0x1f7593;return _0x218317(0x21d);}static get[_0x1f7593(0x19c)](){return!0x0;}static get[_0x1f7593(0x18d)](){return!0x0;}[_0x1f7593(0x1cb)];[_0x1f7593(0x1c5)]=[];[_0x1f7593(0x1fa)]=0x0;[_0x1f7593(0x1b4)];[_0x1f7593(0x26a)]=!0x1;[_0x1f7593(0x1a1)]=new _0xd0a890();[_0x1f7593(0x22a)];[_0x1f7593(0x19f)];[_0x1f7593(0x24b)]=!0x1;[_0x1f7593(0x23e)];[_0x1f7593(0x1e1)]=!0x1;[_0x1f7593(0x1ab)]=!0x1;[_0x1f7593(0x20d)];get[_0x1f7593(0x21e)](){const _0x14662d=_0x1f7593;return this[_0x14662d(0x1c5)][this[_0x14662d(0x1c5)][_0x14662d(0x1fc)]-0x1];}constructor(_0x26d006){const _0x5eea7b=_0x1f7593;super(_0x26d006),this[_0x5eea7b(0x1cb)]=this[_0x5eea7b(0x268)][_0x5eea7b(0x236)][_0x5eea7b(0x25d)](_0x5eea7b(0x22e)),this[_0x5eea7b(0x1a6)](_0x5eea7b(0x189),!0x1),this[_0x5eea7b(0x20d)]=new _0x191ff7(),this[_0x5eea7b(0x245)]();}[_0x1f7593(0x1ca)](){const _0x416e97=_0x1f7593;this[_0x416e97(0x215)]();}async[_0x1f7593(0x1b1)](_0x10288d,_0x12354f,_0x8f3803){const _0x60afa3=_0x1f7593;if(this[_0x60afa3(0x268)][_0x60afa3(0x236)][_0x60afa3(0x213)](_0x60afa3(0x1ec))){if(this[_0x60afa3(0x268)][_0x60afa3(0x236)][_0x60afa3(0x25d)](_0x60afa3(0x1ec))[_0x60afa3(0x18b)]()){const {modelFragment:_0x4dc576,anchorData:_0x310936}=this[_0x60afa3(0x188)]();return this[_0x60afa3(0x22c)](_0x10288d,_0x4dc576,_0x310936,_0x12354f,_0x8f3803);}}const {modelFragment:_0x338377,anchorData:_0x31398f}=this[_0x60afa3(0x1f5)]();return this[_0x60afa3(0x22c)](_0x10288d,_0x338377,_0x31398f,_0x12354f,_0x8f3803);}[_0x1f7593(0x1f5)](){const _0x3c80a9=_0x1f7593,_0x123578=this[_0x3c80a9(0x268)][_0x3c80a9(0x191)][_0x3c80a9(0x1a4)][_0x3c80a9(0x20a)];if(_0x123578[_0x3c80a9(0x20e)]){const _0xc4b578=_0x3a9a7f(_0x123578[_0x3c80a9(0x24a)]())||this[_0x3c80a9(0x268)][_0x3c80a9(0x191)][_0x3c80a9(0x208)][_0x3c80a9(0x1d6)](_0x123578);this[_0x3c80a9(0x268)][_0x3c80a9(0x191)][_0x3c80a9(0x1b0)](_0x22f723=>{const _0x191768=_0x3c80a9;_0x22f723[_0x191768(0x1d5)](_0xc4b578,'in');});}const _0x452ba9=_0x123578[_0x3c80a9(0x24e)](),_0x4ae281=this[_0x3c80a9(0x1a0)](this[_0x3c80a9(0x268)][_0x3c80a9(0x191)][_0x3c80a9(0x1ee)](_0x123578),_0x452ba9[_0x3c80a9(0x1fe)],_0x452ba9[_0x3c80a9(0x1dd)]),_0x5ea457=_0x123578[_0x3c80a9(0x24e)]()[_0x3c80a9(0x1fe)],_0x237964=new Map();let _0x1cd8ad=_0x4ae281;for(let _0x58f86f=0x0;_0x58f86f<_0x5ea457[_0x3c80a9(0x1e2)][_0x3c80a9(0x1fc)];_0x58f86f++)_0x237964[_0x3c80a9(0x1a6)](_0x1cd8ad,_0x5ea457[_0x3c80a9(0x1e2)][_0x58f86f]),_0x1cd8ad=_0x1cd8ad[_0x3c80a9(0x1c4)](0x0);return{'modelFragment':_0x4ae281,'anchorData':_0x237964};}[_0x1f7593(0x188)](){const _0x156750=_0x1f7593,_0x5394d7=this[_0x156750(0x268)][_0x156750(0x191)][_0x156750(0x1a4)][_0x156750(0x20a)],_0x44294a=this[_0x156750(0x268)][_0x156750(0x236)][_0x156750(0x25d)](_0x156750(0x1ec))[_0x156750(0x219)](),_0x4ba960=_0x5394d7[_0x156750(0x24e)]()[_0x156750(0x1fe)][_0x156750(0x1a8)][_0x156750(0x1a8)],_0x17c3bd=this[_0x156750(0x1a0)](_0x44294a,this[_0x156750(0x268)][_0x156750(0x191)][_0x156750(0x1d7)](_0x4ba960),this[_0x156750(0x268)][_0x156750(0x191)][_0x156750(0x259)](_0x4ba960)),_0x289e70=_0x5394d7[_0x156750(0x24e)]()[_0x156750(0x1fe)],_0x4a3780=new Map();let _0x3ee3f0=_0x17c3bd;for(let _0xb86c64=0x0;_0xb86c64<_0x289e70[_0x156750(0x1e2)][_0x156750(0x1fc)];_0xb86c64++)if(_0x4a3780[_0x156750(0x1a6)](_0x3ee3f0,_0x289e70[_0x156750(0x1e2)][_0xb86c64]),_0xb86c64<_0x289e70[_0x156750(0x1e2)][_0x156750(0x1fc)]-0x1)_0x3ee3f0=_0x3ee3f0[_0x156750(0x1c4)](0x0);else{let _0x5dffcb=_0x3ee3f0[_0x156750(0x204)];for(;_0x5dffcb;)_0x4a3780[_0x156750(0x1a6)](_0x5dffcb,_0x289e70[_0x156750(0x1e2)][_0xb86c64]),_0x5dffcb=_0x5dffcb[_0x156750(0x204)];}return{'modelFragment':_0x17c3bd,'anchorData':_0x4a3780};}[_0x1f7593(0x22c)](_0x22b76f,_0xed17ed,_0x364bdd,_0x3c530a,_0x1b5808){const _0x26afaa=_0x1f7593,_0x1b93c9=this[_0x26afaa(0x268)][_0x26afaa(0x236)][_0x26afaa(0x25d)](_0x84f398),_0x29b963=this[_0x26afaa(0x268)][_0x26afaa(0x236)][_0x26afaa(0x25d)](_0x1f33ae),_0x374998=this[_0x26afaa(0x268)][_0x26afaa(0x191)][_0x26afaa(0x1a4)][_0x26afaa(0x20a)],_0x57549f=_0x1b93c9[_0x26afaa(0x251)](_0xed17ed),_0x2faec5=this[_0x26afaa(0x268)][_0x26afaa(0x198)][_0x26afaa(0x23a)][_0x26afaa(0x1dc)](_0x57549f),_0x36edc9=this[_0x26afaa(0x268)][_0x26afaa(0x191)][_0x26afaa(0x1a4)][_0x26afaa(0x257)],_0x2f769a=[..._0x374998[_0x26afaa(0x23b)]()];let _0x52fa76=this[_0x26afaa(0x268)][_0x26afaa(0x1f9)][_0x26afaa(0x25d)](_0x26afaa(0x22f))||[..._0x10f058];this[_0x26afaa(0x268)][_0x26afaa(0x236)][_0x26afaa(0x213)](_0x26afaa(0x206))||(_0x52fa76=_0x52fa76[_0x26afaa(0x1fd)](_0x5a62a8=>_0x26afaa(0x1d2)!=_0x5a62a8));const _0x4a344c=new _0x1b84c1(this[_0x26afaa(0x268)][_0x26afaa(0x1a7)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x26afaa(0x23d),'customView':this[_0x26afaa(0x1a1)]},'showUnchangedParts':!0x0,'availableActions':_0x52fa76});return _0x29b963[_0x26afaa(0x214)]({'index':0x3e8*Math[_0x26afaa(0x221)]()%0x3e8,'title':_0x3c530a,'icon':_0x1b5808||_0x5a20a6,'mainView':_0x4a344c,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x26afaa(0x268)][_0x26afaa(0x236)][_0x26afaa(0x213)](_0x26afaa(0x206)),'ranges':_0x2f769a}),this[_0x26afaa(0x1e4)](_0x4a344c,_0x29b963),this[_0x26afaa(0x1bf)](_0x29b963,_0x26afaa(0x25a),()=>{const _0x204b2b=_0x26afaa;this[_0x204b2b(0x1ea)](_0xed17ed,_0x364bdd,!0x1);}),this[_0x26afaa(0x1bf)](_0x29b963,_0x26afaa(0x1d2),()=>{const _0x27223b=_0x26afaa;this[_0x27223b(0x1ea)](_0xed17ed,_0x364bdd,!0x0);}),this[_0x26afaa(0x1bf)](_0x29b963,_0x26afaa(0x18f),()=>{const _0x360017=_0x26afaa;this[_0x360017(0x215)](),this[_0x360017(0x1a3)]();}),this[_0x26afaa(0x1bf)](_0x29b963,_0x26afaa(0x239),()=>{const _0x4f7a47=_0x26afaa;if(this[_0x4f7a47(0x21e)]&&this[_0x4f7a47(0x21e)][_0x4f7a47(0x1f3)][_0x4f7a47(0x1fc)]>0x0){const _0x571f9a=this[_0x4f7a47(0x21e)][_0x4f7a47(0x1f3)][this[_0x4f7a47(0x21e)][_0x4f7a47(0x1f3)][_0x4f7a47(0x1fc)]-0x1],_0x543d7c=_0x571f9a[_0x4f7a47(0x235)][0x0];_0x543d7c&&_0x4f7a47(0x1e9)===_0x543d7c[_0x4f7a47(0x1bc)]&&_0x571f9a[_0x4f7a47(0x1d9)](0x0,_0x4f7a47(0x227));}this[_0x4f7a47(0x215)](),this[_0x4f7a47(0x234)](),this[_0x4f7a47(0x1ef)](_0x29b963);}),this[_0x26afaa(0x1a5)](_0x2faec5,_0x36edc9,_0x4a344c,_0x29b963,_0x22b76f);}[_0x1f7593(0x1a0)](_0x582d1a,_0x39bf45,_0x4e1cf1){const _0x55ea2a=_0x1f7593,_0x160732=this[_0x55ea2a(0x268)][_0x55ea2a(0x191)][_0x55ea2a(0x244)](_0x39bf45,_0x4e1cf1)[_0x55ea2a(0x211)](),_0xe24c45=_0x160732['is'](_0x55ea2a(0x1c2))?[]:_0x160732[_0x55ea2a(0x199)]({'includeSelf':!0x0})[_0x55ea2a(0x223)](0x1);if(_0xe24c45[_0x55ea2a(0x1fc)]){const _0xe04248=_0xe24c45[_0x55ea2a(0x1a2)](_0x1246da=>_0x1246da[_0x55ea2a(0x1f0)](!0x1));for(let _0x413a3e=0x1;_0x413a3e<_0xe04248[_0x55ea2a(0x1fc)];_0x413a3e++)_0xe04248[_0x413a3e-0x1][_0x55ea2a(0x1f8)](_0xe04248[_0x413a3e]);return _0xe04248[_0xe04248[_0x55ea2a(0x1fc)]-0x1][_0x55ea2a(0x1f8)](_0x582d1a),new _0x191375(_0xe04248[0x0]);}return _0x582d1a;}async[_0x1f7593(0x1a5)](_0x3d8da4,_0x312d98,_0x44f86d,_0x55c29a,_0x4f9b70){const _0x20ed2e=_0x1f7593,_0xb863fc=this[_0x20ed2e(0x268)];this[_0x20ed2e(0x1b4)]={'action':_0x4f9b70,'content':_0x3d8da4,'version':_0x312d98,'mainView':_0x44f86d,'aiBalloon':_0x55c29a};const _0x4cc6db=new _0x37a3f2({'connector':this[_0x20ed2e(0x1cb)],'editor':_0xb863fc,'content':_0x3d8da4,'version':_0x312d98,..._0x4f9b70});this[_0x20ed2e(0x1c5)][_0x20ed2e(0x18c)](_0x4cc6db),_0x44f86d[_0x20ed2e(0x1e5)]();const _0x117d4c=(_0xc558,_0x481d14,_0x57ab2f=!0x1,_0x40be18=_0x20ed2e(0x1d4))=>this[_0x20ed2e(0x20d)][_0x20ed2e(0x20b)](async _0x16fa53=>{const _0x46d47f=_0x20ed2e;try{const _0x8ee7a7=_0x332499({'editor':_0xb863fc,'changeGroups':_0xc558[_0x46d47f(0x235)],'documentContextContent':_0xc558[_0x46d47f(0x258)],'showDiff':_0x57ab2f,'trimUnchanged':!0x1});await _0x481d14[_0x46d47f(0x1e3)]({'parts':_0x8ee7a7,'renderingStrategy':_0x40be18,'abortSignal':_0x16fa53});}catch(_0x54a310){if(this[_0x46d47f(0x1f1)](_0x54a310))return;throw _0x54a310;}});this[_0x20ed2e(0x21e)]['on'](_0x20ed2e(0x253),(_0x2fe8bb,_0x5ab6f0)=>{const _0x46db05=_0x20ed2e;_0x44f86d[_0x46db05(0x193)](),_0x117d4c(_0x5ab6f0,_0x44f86d)[_0x46db05(0x233)](_0xdd78d3=>{const _0x1d4716=_0x46db05;this[_0x1d4716(0x1f1)](_0xdd78d3)||(console[_0x1d4716(0x1b8)](_0x1d4716(0x1b2),_0xdd78d3),this[_0x1d4716(0x250)](_0x4cc6db,_0x44f86d));});}),this[_0x20ed2e(0x21e)]['on'](_0x20ed2e(0x1f7),(_0x42460d,_0x131342)=>{const _0x3b083c=_0x20ed2e;_0x117d4c(_0x131342,_0x44f86d)[_0x3b083c(0x233)](_0x3ed533=>{const _0x4a814c=_0x3b083c;this[_0x4a814c(0x1f1)](_0x3ed533)||(console[_0x4a814c(0x1b8)](_0x4a814c(0x1bb),_0x3ed533),this[_0x4a814c(0x250)](_0x4cc6db,_0x44f86d));});}),this[_0x20ed2e(0x21e)]['on'](_0x20ed2e(0x21f),async()=>{const _0x300cbd=_0x20ed2e;try{await this[_0x300cbd(0x1ac)](_0x44f86d,_0x55c29a),this[_0x300cbd(0x19e)]();}catch(_0x13e4f8){this[_0x300cbd(0x1f1)](_0x13e4f8)||(console[_0x300cbd(0x1b8)](_0x300cbd(0x1c3),_0x13e4f8),this[_0x300cbd(0x250)](_0x4cc6db,_0x44f86d));}}),this[_0x20ed2e(0x1bf)](_0x44f86d,_0x20ed2e(0x23f),(_0x3333e8,{showDiff:_0x5c551c})=>{const _0x59c649=_0x20ed2e;this[_0x59c649(0x26a)]=_0x5c551c;const _0x49538e=this[_0x59c649(0x21e)][_0x59c649(0x1f3)][this[_0x59c649(0x21e)][_0x59c649(0x1f3)][_0x59c649(0x1fc)]-0x1];_0x49538e&&_0x117d4c(_0x49538e,_0x44f86d,_0x5c551c,_0x59c649(0x1d0))[_0x59c649(0x233)](_0x31c524=>{const _0x15216d=_0x59c649;this[_0x15216d(0x1f1)](_0x31c524)||(console[_0x15216d(0x1b8)](_0x15216d(0x1e8),_0x31c524),this[_0x15216d(0x250)](_0x4cc6db,_0x44f86d));});}),this[_0x20ed2e(0x21e)]['on'](_0x20ed2e(0x194),(_0x51ace1,{reply:_0x1c1d5d})=>{const _0x1d050e=_0x20ed2e,_0xaeffa7={'positiveCount':_0x1c1d5d[_0x1d050e(0x235)][_0x1d050e(0x1fd)](_0x39ffb7=>_0x1d050e(0x232)===_0x39ffb7[_0x1d050e(0x1bc)])[_0x1d050e(0x1fc)],'totalCount':_0x1c1d5d[_0x1d050e(0x235)][_0x1d050e(0x1fc)]},_0x44358a=this[_0x1d050e(0x21e)][_0x1d050e(0x209)],_0x4826ec=this[_0x1d050e(0x21e)][_0x1d050e(0x1f4)];_0x4826ec?this[_0x1d050e(0x1cb)][_0x1d050e(0x1b5)](_0x4826ec,_0x44358a,_0xaeffa7):this[_0x1d050e(0x1cb)][_0x1d050e(0x1ba)](_0x44358a,_0xaeffa7);}),this[_0x20ed2e(0x1e4)](_0x44f86d,_0x55c29a);try{const _0x559e74=await this[_0x20ed2e(0x21e)][_0x20ed2e(0x1fe)]();return this[_0x20ed2e(0x19e)](),_0x559e74;}catch(_0x18a505){if(this[_0x20ed2e(0x1f1)](_0x18a505))return;_0x44f86d[_0x20ed2e(0x193)](),this[_0x20ed2e(0x250)](_0x4cc6db,_0x44f86d);}}[_0x1f7593(0x1ea)](_0x46cadd,_0x4e0ff1,_0x2bae8c){const _0x5537d7=_0x1f7593,_0xa88a2b=this[_0x5537d7(0x268)];if(_0x2bae8c&&!_0xa88a2b[_0x5537d7(0x236)][_0x5537d7(0x213)](_0x5537d7(0x206)))throw new _0x2497b0(_0x5537d7(0x1df),null);const _0x5914a0=this[_0x5537d7(0x268)][_0x5537d7(0x236)][_0x5537d7(0x25d)](_0x8939b3),_0x2749a9=this[_0x5537d7(0x21e)],_0xb70a57=this[_0x5537d7(0x21e)][_0x5537d7(0x1f3)][this[_0x5537d7(0x21e)][_0x5537d7(0x1f3)][_0x5537d7(0x1fc)]-0x1],_0x3695db=_0xb70a57[_0x5537d7(0x235)];_0xb70a57[_0x5537d7(0x1d9)](0x0,_0x5537d7(0x232));let _0x105119=_0x2f7c9c({'editor':_0xa88a2b,'reply':_0xb70a57,'interaction':_0x2749a9,'groups':_0x3695db,'transform':!0x1,'documentCompare':_0x5914a0,'documentCompareOptions':{'anchor':_0xa88a2b[_0x5537d7(0x191)][_0x5537d7(0x1c6)](_0x46cadd,0x0),'markDeletions':_0x2bae8c}});_0x105119=this[_0x5537d7(0x248)](_0x105119,_0x4e0ff1);for(const _0x887871 of _0x105119)this[_0x5537d7(0x1e7)](_0x4e0ff1,_0x887871,_0xa88a2b[_0x5537d7(0x191)][_0x5537d7(0x1a4)][_0x5537d7(0x201)]());const _0x400a9e=_0x2749a9[_0x5537d7(0x200)]()[_0x5537d7(0x257)],_0xd9b276=_0xa88a2b[_0x5537d7(0x191)][_0x5537d7(0x1a4)][_0x5537d7(0x228)][_0x5537d7(0x1ff)](_0x400a9e),_0x67885f={'document':_0xa88a2b[_0x5537d7(0x191)][_0x5537d7(0x1a4)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4290d5=_0x327e49(_0x105119,_0xd9b276,_0x67885f)[_0x5537d7(0x1b3)];_0xa88a2b[_0x5537d7(0x191)][_0x5537d7(0x1b0)](_0x689bb0=>{const _0x2b9d8f=_0x5537d7;if(_0x689bb0[_0x2b9d8f(0x1d5)](_0xa88a2b[_0x2b9d8f(0x191)][_0x2b9d8f(0x1a4)][_0x2b9d8f(0x20a)][_0x2b9d8f(0x231)]),_0x2bae8c)_0xa88a2b[_0x2b9d8f(0x236)][_0x2b9d8f(0x25d)](_0x2b9d8f(0x190))[_0x2b9d8f(0x1d1)](_0x4290d5);else{for(const _0x43dab0 of _0x4290d5)_0x43dab0[_0x2b9d8f(0x25b)]=_0xa88a2b[_0x2b9d8f(0x191)][_0x2b9d8f(0x1a4)][_0x2b9d8f(0x257)],_0x2ca2ee(_0xa88a2b,_0x43dab0),_0x689bb0[_0x2b9d8f(0x1de)][_0x2b9d8f(0x220)](_0x43dab0),_0xa88a2b[_0x2b9d8f(0x191)][_0x2b9d8f(0x237)](_0x43dab0);}}),this[_0x5537d7(0x268)][_0x5537d7(0x236)][_0x5537d7(0x25d)](_0x5537d7(0x196))[_0x5537d7(0x1d3)]();}[_0x1f7593(0x248)](_0x15a75a,_0x239941){const _0x21aa74=_0x1f7593;return _0x15a75a[_0x21aa74(0x1fd)](_0x172c41=>{const _0x4c13d4=_0x21aa74;if(_0x4c13d4(0x1cf)==_0x172c41[_0x4c13d4(0x230)]){const _0x55f6c2=_0x172c41[_0x4c13d4(0x254)][_0x4c13d4(0x210)];return!_0x239941[_0x4c13d4(0x213)](_0x55f6c2);}if(_0x172c41[_0x4c13d4(0x230)][_0x4c13d4(0x222)](_0x4c13d4(0x19b))>-0x1){const _0x22d7b0=_0x172c41[_0x4c13d4(0x1c8)][_0x4c13d4(0x1fe)][_0x4c13d4(0x210)];return!_0x239941[_0x4c13d4(0x213)](_0x22d7b0);}return!0x0;});}[_0x1f7593(0x1e7)](_0x255997,_0x1754f1,_0xa57448){const _0x4358a5=_0x1f7593,_0x46c583=_0x1754f1[_0x4358a5(0x20c)]();for(const _0x24b3cf in _0x1754f1){const _0x47fc21=_0x1754f1[_0x24b3cf];_0x47fc21 instanceof _0x3e9fff?_0x1754f1[_0x24b3cf]=new _0x3e9fff(_0x4a4222(_0x47fc21[_0x4358a5(0x1fe)]),_0x4a4222(_0x47fc21[_0x4358a5(0x1dd)])):_0x47fc21 instanceof _0x219509&&(_0x1754f1[_0x24b3cf]=_0x4a4222(_0x47fc21));}if([_0x4358a5(0x21c),_0x4358a5(0x25c),_0x4358a5(0x217),_0x4358a5(0x238),_0x4358a5(0x24d),_0x4358a5(0x192)][_0x4358a5(0x1be)](_0x46c583[_0x4358a5(0x230)])){if(_0x46c583[_0x4358a5(0x255)]=!0x1,_0x46c583[_0x4358a5(0x25b)]=null,_0x4358a5(0x217)==_0x46c583[_0x4358a5(0x230)]){const _0x136e58=_0x46c583[_0x4358a5(0x20f)],_0x284081=_0x46c583[_0x4358a5(0x225)];new _0x2e5d03(_0x136e58,_0x284081)[_0x4358a5(0x1ce)]();}else _0x46c583[_0x4358a5(0x1ce)]();}function _0x4a4222(_0xd64866){const _0x31c079=_0x4358a5;if(_0x31c079(0x240)==_0xd64866[_0x31c079(0x1e6)][_0x31c079(0x195)])return _0xd64866;const _0x57e08e=[];let _0x2bdcb9=_0xd64866[_0x31c079(0x1e6)];for(let _0x22fdc2=0x0;_0x22fdc2<_0xd64866[_0x31c079(0x1e2)][_0x31c079(0x1fc)];_0x22fdc2++){const _0x3c997b=_0x255997[_0x31c079(0x25d)](_0x2bdcb9)||0x0;_0x57e08e[_0x22fdc2]=_0xd64866[_0x31c079(0x1e2)][_0x22fdc2]+_0x3c997b,_0x2bdcb9=_0x2bdcb9[_0x31c079(0x24c)](_0xd64866[_0x31c079(0x1e2)][_0x22fdc2]);}return new _0x219509(_0xa57448,_0x57e08e,_0xd64866[_0x31c079(0x21b)]);}}[_0x1f7593(0x1f2)](){const _0x1c8f30=_0x1f7593;if(!this[_0x1c8f30(0x1b4)])return;this[_0x1c8f30(0x1c5)][_0x1c8f30(0x1fc)]>0x0&&this[_0x1c8f30(0x215)](),this[_0x1c8f30(0x1fa)]=0x0,this[_0x1c8f30(0x26a)]=!0x1;const {action:_0x53268b,content:_0xbb2928,version:_0x83f5db,mainView:_0x64ac58,aiBalloon:_0x2954f0}=this[_0x1c8f30(0x1b4)];_0x64ac58[_0x1c8f30(0x23c)]=!0x1,_0x64ac58[_0x1c8f30(0x1e5)](),this[_0x1c8f30(0x1db)](_0x64ac58,_0x2954f0);const _0x24d4cf=_0x64ac58;_0x24d4cf[_0x1c8f30(0x212)]&&_0x24d4cf[_0x1c8f30(0x212)][_0x1c8f30(0x1eb)]&&_0x24d4cf[_0x1c8f30(0x212)][_0x1c8f30(0x1eb)][_0x1c8f30(0x1a6)]({'isOn':!0x1,'icon':_0x585565}),this[_0x1c8f30(0x24f)](_0x64ac58),_0x64ac58[_0x1c8f30(0x1fb)](),this[_0x1c8f30(0x19e)](),this[_0x1c8f30(0x1a5)](_0xbb2928,_0x83f5db,_0x64ac58,_0x2954f0,_0x53268b)[_0x1c8f30(0x233)](_0x1e8a35=>{const _0xe6a806=_0x1c8f30;this[_0xe6a806(0x1f1)](_0x1e8a35)||console[_0xe6a806(0x1b8)](_0xe6a806(0x25e),_0x1e8a35);});}[_0x1f7593(0x24f)](_0x1476bd){const _0x1459c5=_0x1f7593,_0x10b5a2=_0x1476bd[_0x1459c5(0x25f)][_0x1459c5(0x1c7)];for(;_0x10b5a2[_0x1459c5(0x1fc)]>0x0;)_0x10b5a2[_0x1459c5(0x217)](_0x10b5a2[_0x1459c5(0x1a9)]);_0x1476bd[_0x1459c5(0x25f)][_0x1459c5(0x1e0)]=!0x1;}[_0x1f7593(0x1f1)](_0x1d5a4a){const _0x968402=_0x1f7593;return!!_0x1d5a4a[_0x968402(0x1da)]&&_0x1d5a4a[_0x968402(0x1da)][_0x968402(0x1ad)](_0x968402(0x264));}[_0x1f7593(0x234)](){const _0x1234c1=_0x1f7593;this[_0x1234c1(0x1c5)]=[],this[_0x1234c1(0x1b4)]=void 0x0,this[_0x1234c1(0x1fa)]=0x0,this[_0x1234c1(0x19e)]();}[_0x1f7593(0x215)](){const _0x5a243b=_0x1f7593;this[_0x5a243b(0x21e)]&&this[_0x5a243b(0x21e)][_0x5a243b(0x261)](),this[_0x5a243b(0x20d)][_0x5a243b(0x18a)](),this[_0x5a243b(0x189)]=!0x1;}[_0x1f7593(0x245)](){const _0x4de028=_0x1f7593,_0x102984=new _0xe70cdf(this[_0x4de028(0x268)][_0x4de028(0x1a7)]),_0x57a92c=new _0xe70cdf(this[_0x4de028(0x268)][_0x4de028(0x1a7)]),_0x266d9f=new _0x4502d8(this[_0x4de028(0x268)][_0x4de028(0x1a7)]),_0xa89636=new _0xe70cdf(this[_0x4de028(0x268)][_0x4de028(0x1a7)]);_0x102984[_0x4de028(0x1a6)]({'icon':_0x498d30,'label':_0x17db21(this[_0x4de028(0x268)][_0x4de028(0x1a7)],_0x4de028(0x19d)),'tooltip':!0x0,'class':_0x4de028(0x1ed)}),_0x57a92c[_0x4de028(0x1a6)]({'icon':_0xafbd8d,'tooltip':_0x17db21(this[_0x4de028(0x268)][_0x4de028(0x1a7)],_0x4de028(0x252)),'class':_0x4de028(0x226)}),_0x266d9f[_0x4de028(0x1af)]({'tag':_0x4de028(0x241),'attributes':{'class':[_0x4de028(0x202)]},'children':[_0x4de028(0x249)]}),_0xa89636[_0x4de028(0x1a6)]({'icon':_0x906f8c,'tooltip':_0x17db21(this[_0x4de028(0x268)][_0x4de028(0x1a7)],_0x4de028(0x247)),'class':_0x4de028(0x1c1)}),_0x102984[_0x4de028(0x18e)](_0x4de028(0x19a))['to'](this,_0x4de028(0x189),_0x510fe7=>!_0x510fe7),_0x102984['on'](_0x4de028(0x218),()=>{const _0x55bec3=_0x4de028;this[_0x55bec3(0x1f2)]();}),_0x57a92c[_0x4de028(0x18e)](_0x4de028(0x19a))['to'](this,_0x4de028(0x189),_0x9cdf11=>!_0x9cdf11),_0x57a92c['on'](_0x4de028(0x218),()=>{const _0x3cf225=_0x4de028;this[_0x3cf225(0x1aa)]();}),_0xa89636[_0x4de028(0x18e)](_0x4de028(0x19a))['to'](this,_0x4de028(0x189),_0x23abff=>!_0x23abff),_0xa89636['on'](_0x4de028(0x218),()=>{const _0x108ae5=_0x4de028;this[_0x108ae5(0x267)]();}),this[_0x4de028(0x22a)]=_0x57a92c,this[_0x4de028(0x19f)]=_0x266d9f,this[_0x4de028(0x23e)]=_0xa89636,this[_0x4de028(0x1a1)][_0x4de028(0x269)](_0x102984);}[_0x1f7593(0x1aa)](){const _0x4e9e45=_0x1f7593,_0x140760=this[_0x4e9e45(0x1c5)][_0x4e9e45(0x1fc)];this[_0x4e9e45(0x1fa)]<_0x140760-0x1&&this[_0x4e9e45(0x265)](this[_0x4e9e45(0x1fa)]+0x1);}[_0x1f7593(0x267)](){const _0x49758e=_0x1f7593;this[_0x49758e(0x1fa)]>0x0&&this[_0x49758e(0x265)](this[_0x49758e(0x1fa)]-0x1);}async[_0x1f7593(0x265)](_0x3c6e82){const _0x136125=_0x1f7593;if(!this[_0x136125(0x1b4)])return;this[_0x136125(0x1fa)]=_0x3c6e82;const {mainView:_0x45a60c}=this[_0x136125(0x1b4)],_0x4cdb20=this[_0x136125(0x1c5)][this[_0x136125(0x1c5)][_0x136125(0x1fc)]-0x1-this[_0x136125(0x1fa)]];if(!_0x4cdb20)return;if(_0x4cdb20[_0x136125(0x1d8)])return this[_0x136125(0x250)](_0x4cdb20,_0x45a60c),void this[_0x136125(0x19e)]();if(!_0x4cdb20[_0x136125(0x1f3)][_0x136125(0x1fc)])return;_0x45a60c[_0x136125(0x1e5)](),this[_0x136125(0x1b4)]&&this[_0x136125(0x1db)](_0x45a60c,this[_0x136125(0x1b4)][_0x136125(0x260)]);const _0x3c7c57=_0x4cdb20[_0x136125(0x1f3)][_0x4cdb20[_0x136125(0x1f3)][_0x136125(0x1fc)]-0x1];if(_0x3c7c57){const _0x2c16e8=this[_0x136125(0x268)];this[_0x136125(0x24f)](_0x45a60c);try{const _0x304451=_0x332499({'editor':_0x2c16e8,'changeGroups':_0x3c7c57[_0x136125(0x235)],'documentContextContent':_0x3c7c57[_0x136125(0x258)],'showDiff':this[_0x136125(0x26a)],'trimUnchanged':!0x1});this[_0x136125(0x24f)](_0x45a60c),await new Promise(_0x2ea7d6=>setTimeout(_0x2ea7d6,0x32)),await _0x45a60c[_0x136125(0x1e3)]({'parts':_0x304451,'renderingStrategy':_0x136125(0x1d0),'abortSignal':new AbortController()[_0x136125(0x243)]});}catch(_0x130636){this[_0x136125(0x1f1)](_0x130636)||console[_0x136125(0x1b8)](_0x136125(0x242),_0x130636);}}this[_0x136125(0x19e)]();}[_0x1f7593(0x19e)](){const _0xd75871=_0x1f7593;if(!this[_0xd75871(0x22a)]||!this[_0xd75871(0x19f)]||!this[_0xd75871(0x23e)])return;const _0x5dc39a=this[_0xd75871(0x1c5)][_0xd75871(0x1fc)],_0x489f01=_0x5dc39a>0x1,_0x58b69e=this[_0xd75871(0x1b4)]?.[_0xd75871(0x1c9)];if(_0x489f01){this[_0xd75871(0x1e1)]||this[_0xd75871(0x24b)]||this[_0xd75871(0x1ab)]||(this[_0xd75871(0x1a1)][_0xd75871(0x269)](this[_0xd75871(0x22a)]),_0x58b69e?.[_0xd75871(0x229)](this[_0xd75871(0x22a)]),this[_0xd75871(0x1e1)]=!0x0,this[_0xd75871(0x1a1)][_0xd75871(0x269)](this[_0xd75871(0x19f)]),_0x58b69e?.[_0xd75871(0x229)](this[_0xd75871(0x19f)]),this[_0xd75871(0x24b)]=!0x0,this[_0xd75871(0x1a1)][_0xd75871(0x269)](this[_0xd75871(0x23e)]),_0x58b69e?.[_0xd75871(0x229)](this[_0xd75871(0x23e)]),this[_0xd75871(0x1ab)]=!0x0);const _0x42d022=_0x5dc39a-this[_0xd75871(0x1fa)];this[_0xd75871(0x19f)][_0xd75871(0x1c0)]&&(this[_0xd75871(0x19f)][_0xd75871(0x1c0)][_0xd75871(0x1b6)]=_0x42d022+'/'+_0x5dc39a),this[_0xd75871(0x22a)][_0xd75871(0x19a)]=this[_0xd75871(0x1fa)]<_0x5dc39a-0x1,this[_0xd75871(0x23e)][_0xd75871(0x19a)]=this[_0xd75871(0x1fa)]>0x0;}else(this[_0xd75871(0x1e1)]||this[_0xd75871(0x24b)]||this[_0xd75871(0x1ab)])&&(this[_0xd75871(0x1a1)][_0xd75871(0x217)](this[_0xd75871(0x22a)]),_0x58b69e?.[_0xd75871(0x197)](this[_0xd75871(0x22a)]),this[_0xd75871(0x1e1)]=!0x1,this[_0xd75871(0x1a1)][_0xd75871(0x217)](this[_0xd75871(0x19f)]),_0x58b69e?.[_0xd75871(0x197)](this[_0xd75871(0x19f)]),this[_0xd75871(0x24b)]=!0x1,this[_0xd75871(0x1a1)][_0xd75871(0x217)](this[_0xd75871(0x23e)]),_0x58b69e?.[_0xd75871(0x197)](this[_0xd75871(0x23e)]),this[_0xd75871(0x1ab)]=!0x1);}[_0x1f7593(0x1e4)](_0x117e22,_0x1c6b3d){const _0x1b9306=_0x1f7593;_0x117e22[_0x1b9306(0x207)](),_0x1c6b3d[_0x1b9306(0x26b)][_0x1b9306(0x207)](),this[_0x1b9306(0x189)]=!0x0;}async[_0x1f7593(0x250)](_0x4845a6,_0xd0e6f6){const _0x32b7a1=_0x1f7593,_0x1c2e32=_0x17db21(this[_0x32b7a1(0x268)][_0x32b7a1(0x1a7)],_0x32b7a1(0x263));_0xd0e6f6[_0x32b7a1(0x1ae)](_0x1c2e32),_0x4845a6[_0x32b7a1(0x1d8)]=!0x0,await this[_0x32b7a1(0x20d)][_0x32b7a1(0x256)],_0xd0e6f6[_0x32b7a1(0x203)](),this[_0x32b7a1(0x1b4)]?.[_0x32b7a1(0x260)][_0x32b7a1(0x26b)][_0x32b7a1(0x224)]&&(this[_0x32b7a1(0x1b4)][_0x32b7a1(0x260)][_0x32b7a1(0x26b)][_0x32b7a1(0x224)][_0x32b7a1(0x187)]=!0x0);}[_0x1f7593(0x1db)](_0x18b4cd,_0x4f032d){const _0x452a57=_0x1f7593;_0x18b4cd[_0x452a57(0x216)](),_0x4f032d[_0x452a57(0x26b)][_0x452a57(0x224)]&&(_0x4f032d[_0x452a57(0x26b)][_0x452a57(0x224)][_0x452a57(0x187)]=!0x1);}async[_0x1f7593(0x1ac)](_0x5acfa5,_0x264256){const _0x3d29aa=_0x1f7593;await this[_0x3d29aa(0x20d)][_0x3d29aa(0x256)],this[_0x3d29aa(0x189)]=!0x1,_0x5acfa5[_0x3d29aa(0x22d)](),_0x264256[_0x3d29aa(0x26b)][_0x3d29aa(0x22d)]();}[_0x1f7593(0x1a3)](){const _0x4b5626=_0x1f7593;this[_0x4b5626(0x1a1)][_0x4b5626(0x21a)](_0x11ea9e=>{const _0x28bc64=_0x4b5626;_0x28bc64(0x19a)in _0x11ea9e&&(_0x11ea9e[_0x28bc64(0x19a)]=!0x1);});}}function _0x5d8c(){const _0x17452d=['_isNavigationCounterInView','getChildAtOffset','split','getFirstRange','_clearSuggestionContent','_setErrorState','modelToViewWithIds','AI_ACTIONS_PREVIOUS_INTERACTION','replyCreated','position','isDocumentOperation','queueEmptyPromise','version','documentContextContent','createPositionAfter','applySuggestion','baseVersion','move','get','Error\x20refreshing\x20interaction:','bodyView','aiBalloon','stop','14aWZTij','AI_ACTIONS_GENERIC_ERROR','ai-request-aborted','_displayInteractionAtIndex','1966860uZMEiA','_navigateToNext','editor','add','_balloonShowDiff','balloonView','isLoading','_getExecuteDataInTable','isBusy','abort','getSelectedTableCells','push','isPremiumPlugin','bind','selectionRemoved','TrackChangesEditing','model','merge','hideLoader','replyChangeGroupStateUpdated','rootName','AIBalloon','removeNavigationItem','data','getAncestors','isEnabled','Attribute','isOfficialPlugin','AI_ACTIONS_TRY_AGAIN','_updateNavigationUI','_navigationCounter','_wrapWithCommonAncestors','_customViews','map','_disableCustomViews','document','_createInteraction','set','locale','parent','first','_navigateToPrevious','_isNavigationNextButtonInView','_clearLoadingState','startsWith','showError','setTemplate','change','executeAction','Error\x20updating\x20content\x20in\x20replyCreated:','operationsA','_interactionParams','upsertAIActionRating','textContent','4352676cYLwyy','error','3527774peEBMS','upsertCustomAIActionRating','Error\x20updating\x20content\x20in\x20replyContentUpdated:','state','requires','includes','listenTo','element','ck-ai-navigation-button\x20ck-ai-next-button','documentFragment','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getChild','_interactions','createPositionAt','_children','range','mainView','stopInteraction','_aiConnector','pluginName','4985946AEwiDu','_execute','rename','static','_applyOperationsAsSuggestions','insertSuggestion','close','streaming','setSelection','getLimitElement','createPositionBefore','hasError','setChangeGroupState','message','_clearErrorState','toData','end','batch','ai-no-track-changes','hasPendingParts','_isNavigationPreviousButtonInView','path','updateContent','_setLoadingState','hideError','root','_anchorOperation','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','pending','_applyChanges','showChangesButton','TableSelection','ck-ai-custom-action-button','getSelectedContent','stopListening','_clone','_isAbortError','_refreshInteraction','replies','actionName','_getExecuteDataRegular','11438088srSEog','replyContentUpdated','_appendChild','config','_currentInteractionIndex','showLoader','length','filter','start','getOperations','getDocumentContext','getRoot','ck-ai-interaction-counter','setErrorState','nextSibling','1nakZco','TrackChanges','setLoading','schema','actionCallId','selection','enqueue','clone','_promiseQueue','isCollapsed','sourcePosition','nodeAfter','getCommonAncestor','miniToolbarView','has','open','_stopInteraction','clearErrorState','remove','execute','getSelectionAsFragment','forEach','stickiness','insert','AIActions','_interaction','interactionFinished','addOperation','random','indexOf','slice','toolbar','howMany','ck-ai-navigation-button\x20ck-ai-previous-button','rejected','history','addNavigationItem','_navigationPreviousButton','91885PRfnik','_executeAction','clearLoading','AIConnector','ai.availableReplyActions','type','focus','accepted','catch','_clearInteractionHistory','changeGroups','plugins','applyOperation','reinsert','dialogClosed','processor','getRanges','areChangesVisible','icon','_navigationNextButton','toggleSuggestionDisplayMode','$graveyard','span','Error\x20updating\x20content\x20during\x20navigation:','signal','createRange','_setupCustomViews','511584ENlpLB','AI_ACTIONS_NEXT_INTERACTION','_filterOperationsOutsideRange','1/1','getSelectedBlocks'];_0x5d8c=function(){return _0x17452d;};return _0x5d8c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e3e91=_0x4dd0;(function(_0x5584f8,_0x2efc7a){const _0x686e3b=_0x4dd0,_0x40b961=_0x5584f8();while(!![]){try{const _0x44cdad=-parseInt(_0x686e3b(0xa0))/0x1+-parseInt(_0x686e3b(0x8e))/0x2*(-parseInt(_0x686e3b(0xa8))/0x3)+parseInt(_0x686e3b(0x90))/0x4+parseInt(_0x686e3b(0x91))/0x5+-parseInt(_0x686e3b(0x9f))/0x6*(parseInt(_0x686e3b(0xa9))/0x7)+-parseInt(_0x686e3b(0x92))/0x8+-parseInt(_0x686e3b(0x97))/0x9;if(_0x44cdad===_0x2efc7a)break;else _0x40b961['push'](_0x40b961['shift']());}catch(_0x5025ca){_0x40b961['push'](_0x40b961['shift']());}}}(_0x447d,0x5a2e4));function _0x447d(){const _0x39d491=['delegate','actionName','2deDTdO','editor','2007776XsCGWm','1190385nGYVne','1645784XkpEuq','createReply','connector','Current\x20document','userMessage','4059549EbOcnL','current-document','push','html','args','executeCustomAction','model','getDocumentContext','6jlIunT','20239gKzECJ','hasError','fire','replyCreated','replies','TEXT','content','executeAction','1960194bVegxS','2429112ZEYhDC','version','sendRequest'];_0x447d=function(){return _0x39d491;};return _0x447d();}import{AIInteraction as _0x2bd08c,AI_MODEL_EVENT_NAMES as _0x4dec40}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x2093aa}from'../../aicore/model/aicontext.js';function _0x4dd0(_0x59e6cb,_0x3cc79c){const _0x447dba=_0x447d();return _0x4dd0=function(_0x4dd05e,_0x30e3da){_0x4dd05e=_0x4dd05e-0x8b;let _0x5da4cb=_0x447dba[_0x4dd05e];return _0x5da4cb;},_0x4dd0(_0x59e6cb,_0x3cc79c);}import{AIActionsReply as _0x101b25}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x2bd08c{[_0x4e3e91(0xa6)];[_0x4e3e91(0xaa)];[_0x4e3e91(0x8d)];[_0x4e3e91(0x9b)];[_0x4e3e91(0x96)];[_0x4e3e91(0x9d)];[_0x4e3e91(0xa1)]=!0x1;constructor(_0x1cb03b){const _0x264bcf=_0x4e3e91;super(_0x1cb03b),this[_0x264bcf(0xa6)]=_0x1cb03b[_0x264bcf(0xa6)],this[_0x264bcf(0xaa)]=_0x1cb03b[_0x264bcf(0xaa)],this[_0x264bcf(0x8d)]=_0x1cb03b[_0x264bcf(0x8d)],this[_0x264bcf(0x9b)]=_0x1cb03b[_0x264bcf(0x9b)],this[_0x264bcf(0x96)]=_0x1cb03b[_0x264bcf(0x96)],this[_0x264bcf(0x9d)]=_0x1cb03b[_0x264bcf(0x9d)];}async[_0x4e3e91(0x8b)](){const _0x1f4ab8=_0x4e3e91;return this[_0x1f4ab8(0x8d)]?this[_0x1f4ab8(0x94)][_0x1f4ab8(0xa7)]({'content':this[_0x1f4ab8(0xa6)],'actionName':this[_0x1f4ab8(0x8d)],'args':this[_0x1f4ab8(0x9b)]}):this[_0x1f4ab8(0x94)][_0x1f4ab8(0x9c)]({'content':this[_0x1f4ab8(0xa6)],'message':this[_0x1f4ab8(0x96)],'model':this[_0x1f4ab8(0x9d)],'outputFormat':_0x1f4ab8(0x9a)});}[_0x4e3e91(0x9e)](){const _0x5c6f36=_0x4e3e91;return{'type':_0x2093aa[_0x5c6f36(0xa5)],'content':this[_0x5c6f36(0xa6)],'version':this[_0x5c6f36(0xaa)],'label':_0x5c6f36(0x95),'uiId':_0x5c6f36(0x98)};}[_0x4e3e91(0x93)](_0x51076f){const _0x24ed6d=_0x4e3e91,_0x179e90=new _0x101b25({'editor':this[_0x24ed6d(0x8f)],'documentContextContent':this[_0x24ed6d(0xa6)],..._0x51076f});return this[_0x24ed6d(0xa4)][_0x24ed6d(0x99)](_0x179e90),_0x179e90[_0x24ed6d(0x8c)](..._0x4dec40)['to'](this),this[_0x24ed6d(0xa2)](_0x24ed6d(0xa3),_0x179e90),_0x179e90;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1b95(){const _0x118e9f=['2926504HOlDid','426540hLvtNf','changeGroups','pending','_getDifferentChangeGroups','parsedContent','cloneNode','248HgaOMf','added','length','pop','modified','190377NQonaL','4896941VuiuTj','isDone','value','data-id','2634480wIButc','node','map','4767486LVyBMC','documentContextContent','2206803kvuzKD','new','children','updateChangeGroups','parsedMergedContent','2qLhnIV','removed','childNodes'];_0x1b95=function(){return _0x118e9f;};return _0x1b95();}const _0x27556a=_0x2727;function _0x2727(_0x277431,_0x5d5fe6){const _0x1b951d=_0x1b95();return _0x2727=function(_0x27279d,_0x45003b){_0x27279d=_0x27279d-0xe8;let _0x48328f=_0x1b951d[_0x27279d];return _0x48328f;},_0x2727(_0x277431,_0x5d5fe6);}(function(_0x182607,_0x3a8c50){const _0x137faa=_0x2727,_0x3f362b=_0x182607();while(!![]){try{const _0x27868f=parseInt(_0x137faa(0xf7))/0x1+parseInt(_0x137faa(0xf3))/0x2*(parseInt(_0x137faa(0xee))/0x3)+parseInt(_0x137faa(0xf6))/0x4+-parseInt(_0x137faa(0xe9))/0x5+-parseInt(_0x137faa(0xec))/0x6+parseInt(_0x137faa(0x103))/0x7+parseInt(_0x137faa(0xfd))/0x8*(-parseInt(_0x137faa(0x102))/0x9);if(_0x27868f===_0x3a8c50)break;else _0x3f362b['push'](_0x3f362b['shift']());}catch(_0xfae4ac){_0x3f362b['push'](_0x3f362b['shift']());}}}(_0x1b95,0x966ae));import{AIReply as _0x4ee8ff}from'../../aicore/model/aireply.js';import{getAttribute as _0x542526}from'../../aicore/utils/htmlparser.js';import{uid as _0x2cdc96}from'ckeditor5/src/utils.js';import{diffArrays as _0x149565}from'diff';export class AIActionsReply extends _0x4ee8ff{[_0x27556a(0xf1)](){const _0x38d2bd=_0x27556a;if(this[_0x38d2bd(0xf2)]=this[_0x38d2bd(0xfb)][_0x38d2bd(0xfc)](!0x0),0x0==this[_0x38d2bd(0xf2)][_0x38d2bd(0xf5)][_0x38d2bd(0xff)])return void(this[_0x38d2bd(0xf8)]=[]);const _0xb56fab=this[_0x38d2bd(0xed)][_0x38d2bd(0xf0)][_0x38d2bd(0xeb)](_0x2249f2=>({'node':_0x2249f2,'id':_0x542526(_0x2249f2,_0x38d2bd(0xe8))})),_0x46e581=this[_0x38d2bd(0xf2)][_0x38d2bd(0xf0)][_0x38d2bd(0xeb)](_0x1dd0a3=>({'node':_0x1dd0a3,'id':_0x542526(_0x1dd0a3,_0x38d2bd(0xe8))||_0x2cdc96()})),_0x185e77=_0x149565(_0xb56fab,_0x46e581,{'comparator':(_0x25c6aa,_0x182a00)=>_0x25c6aa['id']==_0x182a00['id'],'oneChangePerToken':!0x0});if(!this[_0x38d2bd(0x104)]){for(;_0x185e77[_0x38d2bd(0xff)]&&_0x185e77[_0x185e77[_0x38d2bd(0xff)]-0x1][_0x38d2bd(0xf4)];)_0x185e77[_0x38d2bd(0x100)]();}const _0x3b858c=_0x185e77[_0x38d2bd(0xeb)](_0x5d8bee=>{const _0x4a1a89=_0x38d2bd,_0x3df2f5=_0x5d8bee[_0x4a1a89(0xfe)]?_0x4a1a89(0xef):_0x5d8bee[_0x4a1a89(0xf4)]?_0x4a1a89(0xf4):_0x4a1a89(0x101);return{'node':_0x5d8bee[_0x4a1a89(0x105)][0x0][_0x4a1a89(0xea)],'type':_0x3df2f5,'id':_0x5d8bee[_0x4a1a89(0x105)][0x0]['id']};});this[_0x38d2bd(0xf8)]=[{'changes':_0x3b858c,'state':_0x38d2bd(0xf9),'index':0x0}];}[_0x27556a(0xfa)](_0x5ab84c,_0x452e85){return _0x452e85;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x159e41=_0x3855;function _0x3855(_0x1fdc42,_0x380e0d){var _0x5ae2fb=_0x5ae2();return _0x3855=function(_0x38550c,_0xb2874f){_0x38550c=_0x38550c-0x1ad;var _0x53e5df=_0x5ae2fb[_0x38550c];return _0x53e5df;},_0x3855(_0x1fdc42,_0x380e0d);}function _0x5ae2(){var _0x24aa2f=['textAdapter','7qPiWIG','isOfficialPlugin','2698212hnjnao','20IWcQaD','1817586BmYXnc','name','11TifQQm','171426PDyDrT','AIAdapter','246462rCMQve','4iAQGmM','isPremiumPlugin','20EBIvLb','aiadapter-text-adapter-not-set','afterInit','11838XkohBo','1208086qjaCfv','pluginName','AIRequestError','524592VhxWSv'];_0x5ae2=function(){return _0x24aa2f;};return _0x5ae2();}(function(_0x1d970a,_0x2414fd){var _0x586498=_0x3855,_0x4fe02f=_0x1d970a();while(!![]){try{var _0x23526e=parseInt(_0x586498(0x1b7))/0x1*(parseInt(_0x586498(0x1c0))/0x2)+-parseInt(_0x586498(0x1ba))/0x3*(-parseInt(_0x586498(0x1bb))/0x4)+parseInt(_0x586498(0x1bd))/0x5*(parseInt(_0x586498(0x1b8))/0x6)+parseInt(_0x586498(0x1b1))/0x7*(parseInt(_0x586498(0x1af))/0x8)+-parseInt(_0x586498(0x1b5))/0x9+parseInt(_0x586498(0x1b4))/0xa*(parseInt(_0x586498(0x1c1))/0xb)+-parseInt(_0x586498(0x1b3))/0xc;if(_0x23526e===_0x2414fd)break;else _0x4fe02f['push'](_0x4fe02f['shift']());}catch(_0x4be0ee){_0x4fe02f['push'](_0x4fe02f['shift']());}}}(_0x5ae2,0x1d4a0));import{Plugin as _0x3075e6}from'ckeditor5/src/core.js';import{CKEditorError as _0x58882c}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x3075e6{static get[_0x159e41(0x1ad)](){var _0x2c55fd=_0x159e41;return _0x2c55fd(0x1b9);}static get[_0x159e41(0x1b2)](){return!0x0;}static get[_0x159e41(0x1bc)](){return!0x0;}[_0x159e41(0x1bf)](){var _0x3f273a=_0x159e41;if(!this[_0x3f273a(0x1b0)])throw new _0x58882c(_0x3f273a(0x1be),null);}}export class AIRequestError extends Error{constructor(_0x1ce05c){var _0x6f649c=_0x159e41;super(_0x1ce05c),this[_0x6f649c(0x1b6)]=_0x6f649c(0x1ae);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7dcf79=_0x5f1d;(function(_0x578bc4,_0x3f21db){const _0x51fbd4=_0x5f1d,_0x5b9060=_0x578bc4();while(!![]){try{const _0x4ec83e=-parseInt(_0x51fbd4(0x197))/0x1*(parseInt(_0x51fbd4(0x19b))/0x2)+parseInt(_0x51fbd4(0x1a0))/0x3*(parseInt(_0x51fbd4(0x18e))/0x4)+-parseInt(_0x51fbd4(0x196))/0x5+parseInt(_0x51fbd4(0x199))/0x6*(parseInt(_0x51fbd4(0x18d))/0x7)+parseInt(_0x51fbd4(0x1a3))/0x8+-parseInt(_0x51fbd4(0x1a4))/0x9+parseInt(_0x51fbd4(0x1a1))/0xa*(parseInt(_0x51fbd4(0x1ae))/0xb);if(_0x4ec83e===_0x3f21db)break;else _0x5b9060['push'](_0x5b9060['shift']());}catch(_0x535e4d){_0x5b9060['push'](_0x5b9060['shift']());}}}(_0xf75e,0x25541));import{Plugin as _0x47962c}from'ckeditor5/src/core.js';import{CKEditorError as _0x25e4b7}from'ckeditor5/src/utils.js';function _0x5f1d(_0x48d316,_0x309052){const _0xf75ed9=_0xf75e();return _0x5f1d=function(_0x5f1dd3,_0x2c33ae){_0x5f1dd3=_0x5f1dd3-0x18a;let _0x38ce02=_0xf75ed9[_0x5f1dd3];return _0x38ce02;},_0x5f1d(_0x48d316,_0x309052);}import{AIAdapter as _0x2fc330,AIRequestError as _0x4820e8}from'./aiadapter.js';function _0xf75e(){const _0x56d421=['textAdapter','770440UmKTNm','27108kJdxPR','object','name','aborted','AI_ERROR_GET_PARAMETERS','application/json','abortController','error','makeRequest','resolve','22zCnbQj','aitextadapter-send-request-failed','locale','_prepareRequestHeaders','get','637NNYKSI','12FgSCOw','assign','catch','signal','AI_ERROR_GET_HEADERS','plugins','_prepareRequestParameters','sendRequest','1476850KQzatc','123698TasbxO','init','6102kljVuj','AbortError','2KAHgKU','reject','abort','editor','requires','279561UrQZQo','532820UHPayk'];_0xf75e=function(){return _0x56d421;};return _0xf75e();}import{getTranslation as _0x4ab888}from'../utils/common-translations.js';export class AITextAdapter extends _0x47962c{[_0x7dcf79(0x1aa)];static get[_0x7dcf79(0x19f)](){return[_0x2fc330];}constructor(_0x22983a){const _0x118e64=_0x7dcf79;super(_0x22983a),this[_0x118e64(0x1aa)]=new AbortController();}[_0x7dcf79(0x198)](){const _0x55d968=_0x7dcf79;this[_0x55d968(0x19e)][_0x55d968(0x193)][_0x55d968(0x18c)](_0x2fc330)[_0x55d968(0x1a2)]=this;}[_0x7dcf79(0x19d)](){const _0x127e33=_0x7dcf79;this[_0x127e33(0x1aa)][_0x127e33(0x191)][_0x127e33(0x1a7)]||(this[_0x127e33(0x1aa)][_0x127e33(0x19d)](),this[_0x127e33(0x1aa)]=new AbortController());}async[_0x7dcf79(0x1ac)](_0x273abe){const _0x2f62cb=_0x7dcf79;return this[_0x2f62cb(0x195)](_0x273abe)[_0x2f62cb(0x190)](_0x453cac=>{const _0x4e16d5=_0x2f62cb;if(_0x453cac instanceof _0x4820e8)return Promise[_0x4e16d5(0x19c)](_0x453cac);if(_0x4e16d5(0x19a)==_0x453cac[_0x4e16d5(0x1a6)])return Promise[_0x4e16d5(0x1ad)]();throw console[_0x4e16d5(0x1ab)](_0x453cac),new _0x25e4b7(_0x4e16d5(0x1af),null);});}async[_0x7dcf79(0x18b)](_0x200e51,_0x4dc7dd){const _0x327297=_0x7dcf79,_0x382355=this[_0x327297(0x19e)][_0x327297(0x18a)],_0xface72={'Content-Type':_0x327297(0x1a9)};if(_0x327297(0x1a5)==typeof _0x200e51)Object[_0x327297(0x18f)](_0xface72,_0x200e51);else{if(_0x200e51)try{const _0x328999=await _0x200e51(_0x4dc7dd);Object[_0x327297(0x18f)](_0xface72,_0x328999);}catch{return Promise[_0x327297(0x19c)](new _0x4820e8(_0x4ab888(_0x382355,_0x327297(0x192))));}}return _0xface72;}async[_0x7dcf79(0x194)](_0x2b397e,_0x4b604d){const _0x561683=_0x7dcf79,_0x55c34b=this[_0x561683(0x19e)][_0x561683(0x18a)];if(_0x561683(0x1a5)==typeof _0x2b397e)return _0x2b397e;try{return await _0x2b397e(_0x4b604d);}catch{return Promise[_0x561683(0x19c)](new _0x4820e8(_0x4ab888(_0x55c34b,_0x561683(0x1a8))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3cb5(_0x3cbe32,_0x5003d3){const _0x3bcc02=_0x3bcc();return _0x3cb5=function(_0x3cb51e,_0x3e9abd){_0x3cb51e=_0x3cb51e-0x9d;let _0x41a507=_0x3bcc02[_0x3cb51e];return _0x41a507;},_0x3cb5(_0x3cbe32,_0x5003d3);}const _0x4d597a=_0x3cb5;function _0x3bcc(){const _0x39a437=['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.','editor','join','data','sendRequest','getReader','preparePrompt','<<SYS>>\x0a','_processProxyRequest','utf-8','_readStaticResponse','anthropic.claude-v2','application/json','19044uOudZi','AWSTextAdapter','AI_ERROR_UNSUPPORTED_MODEL','resolve','bytes','read','split','stringify','test','abortController','227541nmRfHL','_getGeneratedText','text','_bedrockClientConfig','body','signal','_prepareRequestHeaders','completion','ai21.j2','get','generations','config','define','locale','send','chunk','595dIrNar','meta.llama','Human:\x0a','map','\x0a\x0aAssistant:','bedrock-2023-05-31','ai.assistant.adapter.aws.requestParameters','693108VOVTPo','decode','_readStreamableResponse','parse','_requestParameters','_readAsyncIterableResponse','611634PidBxL','filter','ai.assistant.adapter.aws.bedrockClientConfig','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','\x0a[/INST]','length','getModelFamily','anthropic.claude','json','pluginName','completions','generation','ai.assistant.adapter.aws.requestHeaders','8sXwlbW','_requestHeaders','9040707HcJvCH','_processAWSRequest','ai.assistant.adapter.aws.apiUrl','1411498XBpWCa','Instruction:\x0a','_apiUrl','POST','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.','cohere.command','\x0a<</SYS>>\x0a[INST]\x0a','_prepareRequestParameters','195356qRDZnL'];_0x3bcc=function(){return _0x39a437;};return _0x3bcc();}(function(_0x5c071d,_0x853387){const _0x947472=_0x3cb5,_0x2acdff=_0x5c071d();while(!![]){try{const _0x2bdc11=parseInt(_0x947472(0xd0))/0x1+-parseInt(_0x947472(0xe8))/0x2+-parseInt(_0x947472(0xb9))/0x3+-parseInt(_0x947472(0xaf))/0x4*(parseInt(_0x947472(0xc9))/0x5)+parseInt(_0x947472(0xd6))/0x6+-parseInt(_0x947472(0xa1))/0x7+-parseInt(_0x947472(0xe3))/0x8*(-parseInt(_0x947472(0xe5))/0x9);if(_0x2bdc11===_0x853387)break;else _0x2acdff['push'](_0x2acdff['shift']());}catch(_0x1a6e2a){_0x2acdff['push'](_0x2acdff['shift']());}}}(_0x3bcc,0x67653));import{AITextAdapter as _0x4428eb}from'./aitextadapter.js';import{AIRequestError as _0x12bc54}from'./aiadapter.js';import{BedrockRuntimeClient as _0x36d24c,InvokeModelCommand as _0x1bdf5d,InvokeModelWithResponseStreamCommand as _0x268754}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x49b0a2}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x4428eb{[_0x4d597a(0xea)];[_0x4d597a(0xe4)];[_0x4d597a(0xbc)];[_0x4d597a(0xd4)];static get[_0x4d597a(0xdf)](){const _0x196aad=_0x4d597a;return _0x196aad(0xb0);}constructor(_0x1713f9){const _0x5c970d=_0x4d597a;super(_0x1713f9),_0x1713f9[_0x5c970d(0xc4)][_0x5c970d(0xc2)](_0x5c970d(0xcf))||_0x1713f9[_0x5c970d(0xc4)][_0x5c970d(0xc5)](_0x5c970d(0xcf),{'model':_0x5c970d(0xad),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5c970d(0xce),'stream':!0x0}),this[_0x5c970d(0xea)]=_0x1713f9[_0x5c970d(0xc4)][_0x5c970d(0xc2)](_0x5c970d(0xe7)),this[_0x5c970d(0xbc)]=_0x1713f9[_0x5c970d(0xc4)][_0x5c970d(0xc2)](_0x5c970d(0xd8)),this[_0x5c970d(0xe4)]=_0x1713f9[_0x5c970d(0xc4)][_0x5c970d(0xc2)](_0x5c970d(0xe2)),this[_0x5c970d(0xd4)]=_0x1713f9[_0x5c970d(0xc4)][_0x5c970d(0xc2)](_0x5c970d(0xcf));}async[_0x4d597a(0xa6)]({query:_0x4fb1ce,context:_0x5ee38f,onData:_0x42a566,actionId:_0x2141a3}){const _0x38fba8=_0x4d597a,{model:_0xae4bea,stream:_0x132b4d,..._0x1aeb9a}=await this[_0x38fba8(0xa0)](this[_0x38fba8(0xd4)],_0x2141a3),_0x315085={'prompt':await this[_0x38fba8(0xa8)](_0x4fb1ce,_0x5ee38f,_0xae4bea,_0x2141a3),..._0x1aeb9a};this[_0x38fba8(0xea)]?await this[_0x38fba8(0xaa)](_0x315085,_0xae4bea,_0x132b4d,_0x42a566,_0x2141a3):await this[_0x38fba8(0xe6)](_0x315085,_0xae4bea,_0x132b4d,_0x42a566);}async[_0x4d597a(0xa8)](_0x3d61e7,_0x29aeb8,_0x37e7fc,_0x52f93f){const _0x2c93be=_0x4d597a;let _0x49d8e6,_0x30822b;return _0x29aeb8?(_0x49d8e6=_0x2c93be(0x9d),_0x30822b=_0x2c93be(0xe9)+_0x3d61e7+_0x2c93be(0xd9)+_0x29aeb8):(_0x49d8e6=_0x2c93be(0xa2),_0x30822b=_0x3d61e7),_0x2c93be(0xca)==this[_0x2c93be(0xdc)](_0x37e7fc)?_0x2c93be(0xa9)+_0x49d8e6+_0x2c93be(0x9f)+_0x30822b+_0x2c93be(0xda):_0x2c93be(0xcb)+_0x49d8e6+'\x0a'+_0x30822b+_0x2c93be(0xcd);}[_0x4d597a(0xdc)](_0x389493){const _0x24f361=_0x4d597a;if(/^anthropic\.claude/[_0x24f361(0xb7)](_0x389493))return _0x24f361(0xdd);if(/^ai21\.j2/[_0x24f361(0xb7)](_0x389493))return _0x24f361(0xc1);if(/^cohere\.command/[_0x24f361(0xb7)](_0x389493))return _0x24f361(0x9e);if(/^meta\.llama/[_0x24f361(0xb7)](_0x389493))return _0x24f361(0xca);throw new _0x12bc54(_0x49b0a2(this[_0x24f361(0xa3)][_0x24f361(0xc6)],_0x24f361(0xb1),_0x389493));}async[_0x4d597a(0xaa)](_0x5b9440,_0x3af0a6,_0x35b83e,_0x586d8f,_0x78e150){const _0x13d068=_0x4d597a,_0x4f0d33={'method':_0x13d068(0xeb),'headers':await this[_0x13d068(0xbf)](this[_0x13d068(0xe4)],_0x78e150),'body':JSON[_0x13d068(0xb6)]({..._0x5b9440,'model':_0x3af0a6,'stream':_0x35b83e}),'signal':this[_0x13d068(0xb8)][_0x13d068(0xbe)]},_0x3636af=await fetch(this[_0x13d068(0xea)],_0x4f0d33);_0x35b83e?await this[_0x13d068(0xd2)](_0x3636af,_0x3af0a6,_0x586d8f):await this[_0x13d068(0xac)](_0x3636af,_0x3af0a6,_0x586d8f);}async[_0x4d597a(0xe6)](_0x581308,_0x3087cb,_0x5da741,_0x4d2cd6){const _0x5414c1=_0x4d597a,_0x37ab92=new _0x36d24c(this[_0x5414c1(0xbc)]),_0x79440b={'body':JSON[_0x5414c1(0xb6)](_0x581308),'contentType':_0x5414c1(0xae),'accept':_0x5414c1(0xae),'modelId':_0x3087cb};let _0x2f8349;if(_0x5da741){const _0x430622=new _0x268754(_0x79440b);_0x2f8349=await _0x37ab92[_0x5414c1(0xc7)](_0x430622,{'abortSignal':this[_0x5414c1(0xb8)][_0x5414c1(0xbe)]}),await this[_0x5414c1(0xd5)](_0x2f8349,_0x3087cb,_0x4d2cd6);}else{const _0x5a8016=new _0x1bdf5d(_0x79440b);_0x2f8349=await _0x37ab92[_0x5414c1(0xc7)](_0x5a8016,{'abortSignal':this[_0x5414c1(0xb8)][_0x5414c1(0xbe)]}),await this[_0x5414c1(0xac)](_0x2f8349,_0x3087cb,_0x4d2cd6);}}async[_0x4d597a(0xd5)](_0x3d8992,_0x5f6df0,_0x11d678){const _0x50e632=_0x4d597a,_0x3a2f18=_0x3d8992[_0x50e632(0xbd)],_0x577971=new TextDecoder(_0x50e632(0xab));let _0x1d2353='';for await(const _0x46d9c3 of _0x3a2f18)if(_0x46d9c3[_0x50e632(0xc8)]){const _0x109e91=_0x577971[_0x50e632(0xd1)](_0x46d9c3[_0x50e632(0xc8)][_0x50e632(0xb3)]),_0x4de61c=JSON[_0x50e632(0xd3)](_0x109e91);_0x1d2353+=this[_0x50e632(0xba)](_0x4de61c,_0x5f6df0),_0x11d678(_0x1d2353);}return Promise[_0x50e632(0xb2)]();}async[_0x4d597a(0xd2)](_0x3cd4af,_0x6fa3d8,_0x3323f0){const _0xa963bf=_0x4d597a,_0x1aed2d=_0x3cd4af[_0xa963bf(0xbd)],_0x587d61=new TextDecoder(_0xa963bf(0xab)),_0x3469b9=_0x1aed2d[_0xa963bf(0xa7)]();let _0x3e80b3='',_0x4eee76='',_0x37a088=!0x1;for(;!_0x37a088;){const {done:_0x4147ca,value:_0x19d51e}=await _0x3469b9[_0xa963bf(0xb4)]();if(_0x37a088=_0x4147ca,_0x37a088)break;const _0x102b68=(_0x3e80b3+_0x587d61[_0xa963bf(0xd1)](_0x19d51e))[_0xa963bf(0xb5)]('\x0a')[_0xa963bf(0xcc)](_0x5e2f3f=>{const _0x2caa98=_0xa963bf;try{return _0x3e80b3='',JSON[_0x2caa98(0xd3)](_0x5e2f3f);}catch{return _0x3e80b3=_0x5e2f3f,null;}})[_0xa963bf(0xd7)](_0xecd125=>null!==_0xecd125);_0x102b68[_0xa963bf(0xdb)]&&(_0x4eee76+=_0x102b68[_0xa963bf(0xcc)](_0xa204e0=>this[_0xa963bf(0xba)](_0xa204e0,_0x6fa3d8))[_0xa963bf(0xa4)](''),_0x3323f0(_0x4eee76));}return Promise[_0xa963bf(0xb2)]();}async[_0x4d597a(0xac)](_0x189848,_0x2c27e9,_0x4f83f5){const _0x54d379=_0x4d597a;let _0x2639ef;return _0x2639ef=_0x189848 instanceof Response?await _0x189848[_0x54d379(0xde)]():JSON[_0x54d379(0xd3)](new TextDecoder(_0x54d379(0xab))[_0x54d379(0xd1)](_0x189848[_0x54d379(0xbd)])),(_0x4f83f5(this[_0x54d379(0xba)](_0x2639ef,_0x2c27e9)),Promise[_0x54d379(0xb2)]());}[_0x4d597a(0xba)](_0x596b84,_0x419edf){const _0x3f1d52=_0x4d597a;switch(this[_0x3f1d52(0xdc)](_0x419edf)){case _0x3f1d52(0xdd):return _0x596b84[_0x3f1d52(0xc0)];case _0x3f1d52(0xc1):return _0x596b84[_0x3f1d52(0xe0)][0x0][_0x3f1d52(0xa5)][_0x3f1d52(0xbb)];case _0x3f1d52(0x9e):return _0x596b84[_0x3f1d52(0xc3)][0x0][_0x3f1d52(0xbb)];case _0x3f1d52(0xca):return _0x596b84[_0x3f1d52(0xe1)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3f06fa=_0x3575;(function(_0x3e7e23,_0x512708){const _0x35db6f=_0x3575,_0xdffd30=_0x3e7e23();while(!![]){try{const _0x281195=parseInt(_0x35db6f(0x9a))/0x1*(parseInt(_0x35db6f(0xb1))/0x2)+-parseInt(_0x35db6f(0xa5))/0x3*(parseInt(_0x35db6f(0xa7))/0x4)+parseInt(_0x35db6f(0xa2))/0x5*(parseInt(_0x35db6f(0x8e))/0x6)+parseInt(_0x35db6f(0xb7))/0x7*(parseInt(_0x35db6f(0x7e))/0x8)+parseInt(_0x35db6f(0xa1))/0x9+parseInt(_0x35db6f(0xb2))/0xa*(-parseInt(_0x35db6f(0xa8))/0xb)+parseInt(_0x35db6f(0x81))/0xc*(-parseInt(_0x35db6f(0xb4))/0xd);if(_0x281195===_0x512708)break;else _0xdffd30['push'](_0xdffd30['shift']());}catch(_0x5cd3fa){_0xdffd30['push'](_0xdffd30['shift']());}}}(_0x5206,0xd6410));import{AITextAdapter as _0x15588c}from'./aitextadapter.js';import{AIRequestError as _0x504a90}from'./aiadapter.js';function _0x3575(_0x2981b3,_0x44c6de){const _0x520674=_0x5206();return _0x3575=function(_0x3575a8,_0x2cb8cf){_0x3575a8=_0x3575a8-0x7c;let _0x52f578=_0x520674[_0x3575a8];return _0x52f578;},_0x3575(_0x2981b3,_0x44c6de);}import{getTranslation as _0x3e34f6}from'../utils/common-translations.js';function _0x5206(){const _0x17051b=['includes','AI_ERROR_CONTEXT_LENGTH','Instruction:\x0a','system','reject','_readStaticResponse','_requestParameters','replace','6xduTef','content','json','[DONE]','ai.assistant.adapter.openAI.requestHeaders','define','editor','_readStreamableResponse','delta','_prepareRequestParameters','gpt-4o','ai.assistant.adapter.openAI.apiUrl','440303eJLiLo','resolve','decode','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.','locale','ai.assistant.adapter.openAI.requestParameters','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.','5314707vzyTxd','6563445OBtlZq','_prepareRequestHeaders','user','47673JOhXnX','https://api.openai.com/v1/chat/completions','16ZPjpKB','2090yFuMru','map','abortController','OpenAITextAdapter','context_length_exceeded','message','signal','Moderation','POST','2QhkZCr','56330oDUPmx','text','13qMCGZB','getReader','parse','14YmGZbm','body','pluginName','stream','AI_ERROR_MODERATION','_cleanUpData','filter','data:\x20','read','split','length','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestHeaders','prepareMessages','stringify','join','3852728CrqElS','config','choices','15543348ACMHsY','get','_apiUrl','_isBufferIncomplete','sendRequest'];_0x5206=function(){return _0x17051b;};return _0x5206();}export class OpenAITextAdapter extends _0x15588c{[_0x3f06fa(0x83)];[_0x3f06fa(0xc3)];[_0x3f06fa(0x8c)];static get[_0x3f06fa(0xb9)](){const _0x52fe7a=_0x3f06fa;return _0x52fe7a(0xab);}constructor(_0x366d93){const _0x4e66d3=_0x3f06fa;super(_0x366d93),_0x366d93[_0x4e66d3(0x7f)][_0x4e66d3(0x93)](_0x4e66d3(0x99),_0x4e66d3(0xa6)),_0x366d93[_0x4e66d3(0x7f)][_0x4e66d3(0x82)](_0x4e66d3(0x9f))||_0x366d93[_0x4e66d3(0x7f)][_0x4e66d3(0x93)](_0x4e66d3(0x9f),{'model':_0x4e66d3(0x98),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4e66d3(0x83)]=_0x366d93[_0x4e66d3(0x7f)][_0x4e66d3(0x82)](_0x4e66d3(0x99)),this[_0x4e66d3(0xc3)]=_0x366d93[_0x4e66d3(0x7f)][_0x4e66d3(0x82)](_0x4e66d3(0x92))||{},this[_0x4e66d3(0x8c)]=_0x366d93[_0x4e66d3(0x7f)][_0x4e66d3(0x82)](_0x4e66d3(0x9f));}async[_0x3f06fa(0x85)]({query:_0x2934fa,context:_0x40cf83,onData:_0x234805,actionId:_0x1377b9}){const _0x585f31=_0x3f06fa,_0x3dc958=this[_0x585f31(0x94)][_0x585f31(0x9e)],_0xa8d667=await this[_0x585f31(0xc4)](_0x2934fa,_0x40cf83,_0x1377b9),_0x3f1b26=await this[_0x585f31(0xa3)](this[_0x585f31(0xc3)],_0x1377b9),_0x3d34b7=await this[_0x585f31(0x97)](this[_0x585f31(0x8c)],_0x1377b9),_0x44b984={'messages':_0xa8d667,..._0x3d34b7},_0x4458d7={'method':_0x585f31(0xb0),'headers':_0x3f1b26,'body':JSON[_0x585f31(0x7c)](_0x44b984),'signal':this[_0x585f31(0xaa)][_0x585f31(0xae)]},_0x4970ec=await fetch(this[_0x585f31(0x83)],_0x4458d7);if(_0x4970ec['ok'])return _0x3d34b7[_0x585f31(0xba)]?await this[_0x585f31(0x95)](_0x4970ec,_0x234805):await this[_0x585f31(0x8b)](_0x4970ec,_0x234805),Promise[_0x585f31(0x9b)]();{const _0x257e0e=await _0x4970ec[_0x585f31(0xb3)]();return _0x257e0e[_0x585f31(0x86)](_0x585f31(0xac))?Promise[_0x585f31(0x8a)](new _0x504a90(_0x3e34f6(_0x3dc958,_0x585f31(0x87)))):_0x257e0e[_0x585f31(0x86)](_0x585f31(0xaf))?Promise[_0x585f31(0x8a)](new _0x504a90(_0x3e34f6(_0x3dc958,_0x585f31(0xbb)))):Promise[_0x585f31(0x8a)](new Error(_0x257e0e));}}async[_0x3f06fa(0xc4)](_0x1820f3,_0x455303,_0x147bb0){const _0x913b9a=_0x3f06fa;let _0x541066,_0x6be95e;return _0x455303?(_0x541066=_0x913b9a(0xa0),_0x6be95e=_0x913b9a(0x88)+_0x1820f3+_0x913b9a(0xc2)+_0x455303):(_0x541066=_0x913b9a(0x9d),_0x6be95e=_0x1820f3),[{'role':_0x913b9a(0x89),'content':_0x541066},{'role':_0x913b9a(0xa4),'content':_0x6be95e}];}async[_0x3f06fa(0x95)](_0xa9d900,_0x4663fd){const _0x4af06b=_0x3f06fa,_0x1c79e6=_0xa9d900[_0x4af06b(0xb8)][_0x4af06b(0xb5)](),_0x3d3109=new TextDecoder();let _0x2048c2='',_0x2a60cc='',_0x3e73b7='',_0x5e8146=!0x1;for(;!_0x5e8146;){const {done:_0x2ae1c7,value:_0x1c4c20}=await _0x1c79e6[_0x4af06b(0xbf)](),_0x450bb2=_0x2048c2+_0x3d3109[_0x4af06b(0x9c)](_0x1c4c20);let _0x38be0a='';_0x5e8146=_0x2ae1c7;try{_0x38be0a=this[_0x4af06b(0xbc)](_0x450bb2),_0x2048c2='';}catch{_0x2048c2=_0x450bb2;continue;}_0x2a60cc+=_0x38be0a,!_0x5e8146&&this[_0x4af06b(0x84)](_0x2a60cc)||_0x2a60cc&&(_0x3e73b7+=_0x2a60cc,_0x2a60cc='',_0x4663fd(_0x3e73b7));}return Promise[_0x4af06b(0x9b)]();}async[_0x3f06fa(0x8b)](_0x3197a4,_0x312e23){const _0x3020bf=_0x3f06fa;return _0x312e23((await _0x3197a4[_0x3020bf(0x90)]())[_0x3020bf(0x80)][0x0][_0x3020bf(0xad)][_0x3020bf(0x8f)]),Promise[_0x3020bf(0x9b)]();}[_0x3f06fa(0x84)](_0x47f602){const _0x58212d=_0x3f06fa,_0x4ca00c=_0x47f602[_0x58212d(0xc0)]('<')[_0x58212d(0xc1)]!==_0x47f602[_0x58212d(0xc0)]('>')[_0x58212d(0xc1)],_0xfc63a0=_0x47f602[_0x58212d(0xc1)]<0x1e;return _0x4ca00c&&_0xfc63a0;}[_0x3f06fa(0xbc)](_0x275b56){const _0x69a830=_0x3f06fa;return _0x275b56[_0x69a830(0xc0)](/\n(?![^{]*\})/g)[_0x69a830(0xa9)](_0x16aed7=>_0x16aed7[_0x69a830(0x8d)](_0x69a830(0xbe),''))[_0x69a830(0xbd)](_0x520dc7=>_0x520dc7&&_0x520dc7[_0x69a830(0xc1)]>0x0&&_0x69a830(0x91)!==_0x520dc7)[_0x69a830(0xa9)](_0x53ebcf=>{const _0x152bd6=_0x69a830,{choices:_0x3585e6}=JSON[_0x152bd6(0xb6)](_0x53ebcf);if(_0x3585e6[0x0]?.[_0x152bd6(0x96)]?.[_0x152bd6(0x8f)])return _0x3585e6[0x0][_0x152bd6(0x96)][_0x152bd6(0x8f)];})[_0x69a830(0xbd)](_0x5ded08=>_0x5ded08)[_0x69a830(0x7d)]('');}}
|