@ckeditor/ckeditor5-ai 47.1.0 → 47.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.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/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.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/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +573 -203
- package/dist/index.css +627 -204
- package/dist/index.js +5 -4
- 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/contexts.json +8 -1
- package/lang/translations/af.po +52 -4
- package/lang/translations/ar.po +52 -4
- package/lang/translations/ast.po +52 -4
- package/lang/translations/az.po +52 -4
- package/lang/translations/be.po +52 -4
- package/lang/translations/bg.po +52 -4
- package/lang/translations/bn.po +52 -4
- package/lang/translations/bs.po +52 -4
- package/lang/translations/ca.po +52 -4
- package/lang/translations/cs.po +52 -4
- package/lang/translations/da.po +52 -4
- package/lang/translations/de-ch.po +52 -4
- package/lang/translations/de.po +52 -4
- package/lang/translations/el.po +52 -4
- package/lang/translations/en-au.po +52 -4
- package/lang/translations/en-gb.po +52 -4
- package/lang/translations/en.po +52 -4
- package/lang/translations/eo.po +52 -4
- package/lang/translations/es-co.po +52 -4
- package/lang/translations/es.po +52 -4
- package/lang/translations/et.po +52 -4
- package/lang/translations/eu.po +52 -4
- package/lang/translations/fa.po +52 -4
- package/lang/translations/fi.po +52 -4
- package/lang/translations/fr.po +52 -4
- package/lang/translations/gl.po +52 -4
- package/lang/translations/gu.po +52 -4
- package/lang/translations/he.po +52 -4
- package/lang/translations/hi.po +52 -4
- package/lang/translations/hr.po +52 -4
- package/lang/translations/hu.po +52 -4
- package/lang/translations/hy.po +52 -4
- package/lang/translations/id.po +52 -4
- package/lang/translations/it.po +52 -4
- package/lang/translations/ja.po +52 -4
- package/lang/translations/jv.po +52 -4
- package/lang/translations/kk.po +52 -4
- package/lang/translations/km.po +52 -4
- package/lang/translations/kn.po +52 -4
- package/lang/translations/ko.po +52 -4
- package/lang/translations/ku.po +52 -4
- package/lang/translations/lt.po +52 -4
- package/lang/translations/lv.po +52 -4
- package/lang/translations/ms.po +52 -4
- package/lang/translations/nb.po +52 -4
- package/lang/translations/ne.po +52 -4
- package/lang/translations/nl.po +52 -4
- package/lang/translations/no.po +52 -4
- package/lang/translations/oc.po +52 -4
- package/lang/translations/pl.po +52 -4
- package/lang/translations/pt-br.po +52 -4
- package/lang/translations/pt.po +52 -4
- package/lang/translations/ro.po +52 -4
- package/lang/translations/ru.po +52 -4
- package/lang/translations/si.po +52 -4
- package/lang/translations/sk.po +52 -4
- package/lang/translations/sl.po +52 -4
- package/lang/translations/sq.po +52 -4
- package/lang/translations/sr-latn.po +52 -4
- package/lang/translations/sr.po +52 -4
- package/lang/translations/sv.po +52 -4
- package/lang/translations/th.po +52 -4
- package/lang/translations/ti.po +52 -4
- package/lang/translations/tk.po +52 -4
- package/lang/translations/tr.po +52 -4
- package/lang/translations/tt.po +52 -4
- package/lang/translations/ug.po +52 -4
- package/lang/translations/uk.po +52 -4
- package/lang/translations/ur.po +52 -4
- package/lang/translations/uz.po +52 -4
- package/lang/translations/vi.po +52 -4
- package/lang/translations/zh-cn.po +52 -4
- package/lang/translations/zh.po +52 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +1 -1
- 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.d.ts +5 -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.d.ts +40 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +1 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +4 -0
- 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.d.ts +8 -29
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +2 -2
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.d.ts +4 -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.d.ts +4 -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/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
- 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.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
- 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.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
- 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/aiconfig.d.ts +28 -7
- package/src/aicore/aiconnector.d.ts +1 -0
- 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.d.ts +66 -0
- package/src/aicore/model/aimodels.js +23 -0
- package/src/aicore/model/aireply.d.ts +9 -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.d.ts +5 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
- 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.d.ts +2 -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.d.ts +2 -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.d.ts +18 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
- 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.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
- 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.d.ts +6 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
- 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.d.ts +1 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +12 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
- package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
- package/theme/aichat/aichat-controls.css +11 -27
- package/theme/aichat/aichat.css +2 -3
- package/theme/aichat/aichatfeed.css +1 -27
- package/theme/aichat/aichathistory.css +12 -0
- package/theme/aichat/aisuggestioncontainer.css +5 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
- package/theme/aireviewmode/aireviewmode.css +17 -7
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/theme/aitabs/tabs/tabsview.css +1 -0
- package/theme/common/aibutton.css +27 -0
- package/theme/common/aiheader.css +14 -4
- package/theme/common/aitrackchanges.css +8 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
- package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
- package/src/aireviewmode/model/aireviewmodels.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2479e0=_0x9c3d;function _0x9c3d(_0x3586fc,_0x58b81e){const _0x385163=_0x3851();return _0x9c3d=function(_0x9c3d5b,_0x86f40a){_0x9c3d5b=_0x9c3d5b-0x15a;let _0x49c35e=_0x385163[_0x9c3d5b];return _0x49c35e;},_0x9c3d(_0x3586fc,_0x58b81e);}(function(_0x33060b,_0x4991f0){const _0x5573ed=_0x9c3d,_0x3d9888=_0x33060b();while(!![]){try{const _0x19877c=parseInt(_0x5573ed(0x1e0))/0x1*(parseInt(_0x5573ed(0x18b))/0x2)+parseInt(_0x5573ed(0x213))/0x3+-parseInt(_0x5573ed(0x1cd))/0x4+parseInt(_0x5573ed(0x22f))/0x5+parseInt(_0x5573ed(0x1bd))/0x6*(parseInt(_0x5573ed(0x1d4))/0x7)+parseInt(_0x5573ed(0x196))/0x8+-parseInt(_0x5573ed(0x1a2))/0x9;if(_0x19877c===_0x4991f0)break;else _0x3d9888['push'](_0x3d9888['shift']());}catch(_0x1b0e6c){_0x3d9888['push'](_0x3d9888['shift']());}}}(_0x3851,0xe95ec));import{Plugin as _0x237fee}from'ckeditor5/src/core.js';import{AIConnector as _0x4af7c2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x9c00ca}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x21b127,ButtonView as _0x4add50,ViewCollection as _0x46fe62,View as _0x1ec23b}from'ckeditor5/src/ui.js';import{AIEditing as _0x96b669}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x188218}from'./model/aiactionsinteraction.js';import{first as _0x5c3470}from'ckeditor5/src/utils.js';function _0x3851(){const _0x4d34b6=['startsWith','message','setLoading','getSelectionAsFragment','getChildAtOffset','replyCreated','hasPendingParts','error','editor','sourcePosition','isCollapsed','1/1','stopInteraction','path','removeNavigationItem','ck-ai-interaction-counter','start','_createInteraction','TableSelection','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','set','add','isDocumentOperation','isLoading','actionCallId','documentContextContent','open','_clearInteractionHistory','miniToolbarView','isPremiumPlugin','setErrorState','toggleSuggestionDisplayMode','queueEmptyPromise','AIBalloon','focus','_isNavigationPreviousButtonInView','setSelection','AI_ACTIONS_TRY_AGAIN','createPositionAt','icon','actionName','document','stopListening','isOfficialPlugin','bodyView','getRoot','reinsert','batch','history','nodeAfter','_applyOperationsAsSuggestions','22reyQkx','clearErrorState','toolbar','showLoader','filter','_refreshInteraction','_aiConnector','Error\x20updating\x20content\x20in\x20replyContentUpdated:','getDocumentContext','state','_filterOperationsOutsideRange','7665264HSrkcB','mainView','documentFragment','AI_ACTIONS_PREVIOUS_INTERACTION','howMany','getLimitElement','stop','split','insert','upsertCustomAIActionRating','dialogClosed','requires','27747099iMasdi','setChangeGroupState','end','stickiness','rootName','applySuggestion','ck-ai-custom-action-button','change','Error\x20updating\x20content\x20during\x20navigation:','changeGroups','addNavigationItem','catch','length','_clearSuggestionContent','upsertAIActionRating','_setLoadingState','slice','close','updateContent','replyChangeGroupStateUpdated','_getExecuteDataRegular','_clearLoadingState','plugins','getOperations','nextSibling','balloonView','Error\x20refreshing\x20interaction:','6VPUEIq','getSelectedTableCells','first','_customViews','getRanges','pluginName','AI_ACTIONS_GENERIC_ERROR','operationsA','createPositionAfter','model','_setErrorState','_navigationNextButton','execute','_applyChanges','clone','createPositionBefore','3063056HXaprc','push','modelToViewWithIds','executeAction','_clearErrorState','replies','clearLoading','10797367uReNAL','processor','_children','insertSuggestion','toData','version','parent','textContent','ck-ai-navigation-button\x20ck-ai-next-button','replyContentUpdated','remove','enqueue','25019ohLMFf','_clone','pending','setTemplate','getChild','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','$graveyard','_executeAction','_displayInteractionAtIndex','position','has','isBusy','_currentInteractionIndex','_interactions','move','getFirstRange','type','static','baseVersion','random','AIConnector','_navigateToPrevious','bind','get','element','createRange','_navigateToNext','signal','applyOperation','accepted','schema','_navigationPreviousButton','aiBalloon','_execute','selection','rejected','_setupCustomViews','_interaction','showError','includes','AI_ACTIONS_NEXT_INTERACTION','Attribute','interactionFinished','_updateNavigationUI','showChangesButton','AIActions','getAncestors','streaming','_appendChild','_interactionParams','ck-ai-navigation-button\x20ck-ai-previous-button','5524593Plwuhc','_getExecuteDataInTable','_isNavigationCounterInView','merge','data','getSelectedBlocks','addOperation','span','range','rename','Error\x20updating\x20content\x20in\x20replyCreated:','_isAbortError','listenTo','abort','locale','_isNavigationNextButtonInView','getSelectedContent','getCommonAncestor','_balloonShowDiff','_navigationCounter','TrackChangesEditing','hasError','hideLoader','map','indexOf','hideError','isEnabled','areChangesVisible','936400rnFApn','_anchorOperation','_promiseQueue','ai-request-aborted','_wrapWithCommonAncestors','root','_stopInteraction'];_0x3851=function(){return _0x4d34b6;};return _0x3851();}import{IconAIQuickActions as _0x362165,IconRefresh as _0x1a5cb6,IconNextArrow as _0x1a6bc0,IconPreviousArrow as _0xc58103,IconShowChangesOff as _0x2c4432}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1671e1}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x769762}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x335cac}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2b0cca}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3ee950}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x50152c}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1e8921,ModelRange as _0x5275ab,ModelPosition as _0x25505,_DetachOperation as _0x1204ad,transformOperationSets as _0x296773}from'ckeditor5/src/engine.js';export class AIActions extends _0x237fee{static get[_0x2479e0(0x1a1)](){return[_0x4af7c2,_0x21b127,_0x96b669,_0x1671e1,_0x3ee950];}static get[_0x2479e0(0x1c2)](){const _0x29edd0=_0x2479e0;return _0x29edd0(0x20d);}static get[_0x2479e0(0x183)](){return!0x0;}static get[_0x2479e0(0x175)](){return!0x0;}[_0x2479e0(0x191)];[_0x2479e0(0x1ed)]=[];[_0x2479e0(0x1ec)]=0x0;[_0x2479e0(0x211)];[_0x2479e0(0x225)]=!0x1;[_0x2479e0(0x1c0)]=new _0x46fe62();[_0x2479e0(0x1ff)];[_0x2479e0(0x226)];[_0x2479e0(0x215)]=!0x1;[_0x2479e0(0x1c8)];[_0x2479e0(0x17b)]=!0x1;[_0x2479e0(0x222)]=!0x1;[_0x2479e0(0x231)];get[_0x2479e0(0x205)](){const _0x26eb15=_0x2479e0;return this[_0x26eb15(0x1ed)][this[_0x26eb15(0x1ed)][_0x26eb15(0x1ae)]-0x1];}constructor(_0x40e251){const _0x14f42f=_0x2479e0;super(_0x40e251),this[_0x14f42f(0x191)]=this[_0x14f42f(0x160)][_0x14f42f(0x1b8)][_0x14f42f(0x1f7)](_0x14f42f(0x1f4)),this[_0x14f42f(0x16c)](_0x14f42f(0x1eb),!0x1),this[_0x14f42f(0x231)]=new _0x769762(),this[_0x14f42f(0x204)]();}[_0x2479e0(0x164)](){const _0x2b87d9=_0x2479e0;this[_0x2b87d9(0x235)]();}async[_0x2479e0(0x1d0)](_0x340927,_0x27bab2,_0x352685){const _0x13541f=_0x2479e0;if(this[_0x13541f(0x160)][_0x13541f(0x1b8)][_0x13541f(0x1ea)](_0x13541f(0x16a))){if(this[_0x13541f(0x160)][_0x13541f(0x1b8)][_0x13541f(0x1f7)](_0x13541f(0x16a))[_0x13541f(0x1be)]()){const {modelFragment:_0x472def,anchorData:_0x5c3662}=this[_0x13541f(0x214)]();return this[_0x13541f(0x1e7)](_0x340927,_0x472def,_0x5c3662,_0x27bab2,_0x352685);}}const {modelFragment:_0x4a2087,anchorData:_0x14a65d}=this[_0x13541f(0x1b6)]();return this[_0x13541f(0x1e7)](_0x340927,_0x4a2087,_0x14a65d,_0x27bab2,_0x352685);}[_0x2479e0(0x1b6)](){const _0x57d34c=_0x2479e0,_0x4bb531=this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x181)][_0x57d34c(0x202)];if(_0x4bb531[_0x57d34c(0x162)]){const _0x419a30=_0x5c3470(_0x4bb531[_0x57d34c(0x218)]())||this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x1fe)][_0x57d34c(0x19b)](_0x4bb531);this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x1a9)](_0x179c34=>{const _0x140626=_0x57d34c;_0x179c34[_0x140626(0x17c)](_0x419a30,'in');});}const _0x34e996=_0x4bb531[_0x57d34c(0x1ef)](),_0x75ffd5=this[_0x57d34c(0x233)](this[_0x57d34c(0x160)][_0x57d34c(0x1c6)][_0x57d34c(0x223)](_0x4bb531),_0x34e996[_0x57d34c(0x168)],_0x34e996[_0x57d34c(0x1a4)]),_0x22f5b4=_0x4bb531[_0x57d34c(0x1ef)]()[_0x57d34c(0x168)],_0x2aac6e=new Map();let _0x8e8866=_0x75ffd5;for(let _0x306617=0x0;_0x306617<_0x22f5b4[_0x57d34c(0x165)][_0x57d34c(0x1ae)];_0x306617++)_0x2aac6e[_0x57d34c(0x16c)](_0x8e8866,_0x22f5b4[_0x57d34c(0x165)][_0x306617]),_0x8e8866=_0x8e8866[_0x57d34c(0x1e4)](0x0);return{'modelFragment':_0x75ffd5,'anchorData':_0x2aac6e};}[_0x2479e0(0x214)](){const _0x1497be=_0x2479e0,_0x242623=this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x181)][_0x1497be(0x202)],_0x294240=this[_0x1497be(0x160)][_0x1497be(0x1b8)][_0x1497be(0x1f7)](_0x1497be(0x16a))[_0x1497be(0x15b)](),_0x5dc38b=_0x242623[_0x1497be(0x1ef)]()[_0x1497be(0x168)][_0x1497be(0x1da)][_0x1497be(0x1da)],_0x165851=this[_0x1497be(0x233)](_0x294240,this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x1cc)](_0x5dc38b),this[_0x1497be(0x160)][_0x1497be(0x1c6)][_0x1497be(0x1c5)](_0x5dc38b)),_0x3b84a6=_0x242623[_0x1497be(0x1ef)]()[_0x1497be(0x168)],_0x383ebc=new Map();let _0x5b3e3d=_0x165851;for(let _0x4e268d=0x0;_0x4e268d<_0x3b84a6[_0x1497be(0x165)][_0x1497be(0x1ae)];_0x4e268d++)if(_0x383ebc[_0x1497be(0x16c)](_0x5b3e3d,_0x3b84a6[_0x1497be(0x165)][_0x4e268d]),_0x4e268d<_0x3b84a6[_0x1497be(0x165)][_0x1497be(0x1ae)]-0x1)_0x5b3e3d=_0x5b3e3d[_0x1497be(0x1e4)](0x0);else{let _0x703c87=_0x5b3e3d[_0x1497be(0x1ba)];for(;_0x703c87;)_0x383ebc[_0x1497be(0x16c)](_0x703c87,_0x3b84a6[_0x1497be(0x165)][_0x4e268d]),_0x703c87=_0x703c87[_0x1497be(0x1ba)];}return{'modelFragment':_0x165851,'anchorData':_0x383ebc};}[_0x2479e0(0x1e7)](_0x172fc9,_0x2b9544,_0x10275a,_0x2ae408,_0x1fd311){const _0x2c858c=_0x2479e0,_0xf26977=this[_0x2c858c(0x160)][_0x2c858c(0x1b8)][_0x2c858c(0x1f7)](_0x96b669),_0x15e205=this[_0x2c858c(0x160)][_0x2c858c(0x1b8)][_0x2c858c(0x1f7)](_0x1671e1),_0x2e22c1=this[_0x2c858c(0x160)][_0x2c858c(0x1c6)][_0x2c858c(0x181)][_0x2c858c(0x202)],_0x49aeb0=_0xf26977[_0x2c858c(0x1cf)](_0x2b9544),_0x4010c3=this[_0x2c858c(0x160)][_0x2c858c(0x217)][_0x2c858c(0x1d5)][_0x2c858c(0x1d8)](_0x49aeb0),_0x1caa00=this[_0x2c858c(0x160)][_0x2c858c(0x1c6)][_0x2c858c(0x181)][_0x2c858c(0x1d9)],_0x31827b=[..._0x2e22c1[_0x2c858c(0x1c1)]()],_0x3c38c6=new _0x9c00ca(this[_0x2c858c(0x160)][_0x2c858c(0x221)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2c858c(0x17f),'customView':this[_0x2c858c(0x1c0)]},'showUnchangedParts':!0x0});return _0x15e205[_0x2c858c(0x172)]({'index':0x3e8*Math[_0x2c858c(0x1f3)]()%0x3e8,'title':_0x2ae408,'icon':_0x1fd311||_0x362165,'mainView':_0x3c38c6,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x31827b}),this[_0x2c858c(0x1b1)](_0x3c38c6,_0x15e205),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1a7),()=>{const _0x345aff=_0x2c858c;this[_0x345aff(0x1ca)](_0x2b9544,_0x10275a,!0x1);}),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1d7),()=>{const _0x22fbaa=_0x2c858c;this[_0x22fbaa(0x1ca)](_0x2b9544,_0x10275a,!0x0);}),this[_0x2c858c(0x21f)](_0x15e205,_0x2c858c(0x1a0),()=>{const _0x50a0c0=_0x2c858c;if(this[_0x50a0c0(0x205)]&&this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][_0x50a0c0(0x1ae)]>0x0){const _0x4e7a7e=this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][this[_0x50a0c0(0x205)][_0x50a0c0(0x1d2)][_0x50a0c0(0x1ae)]-0x1],_0x57fba3=_0x4e7a7e[_0x50a0c0(0x1ab)][0x0];_0x57fba3&&_0x50a0c0(0x1e2)===_0x57fba3[_0x50a0c0(0x194)]&&_0x4e7a7e[_0x50a0c0(0x1a3)](0x0,_0x50a0c0(0x203));}this[_0x50a0c0(0x235)](),this[_0x50a0c0(0x173)](),this[_0x50a0c0(0x182)](_0x15e205);}),this[_0x2c858c(0x169)](_0x4010c3,_0x1caa00,_0x3c38c6,_0x15e205,_0x172fc9);}[_0x2479e0(0x233)](_0x3edc9e,_0x3164d2,_0x2701cf){const _0x57777e=_0x2479e0,_0x35c55e=this[_0x57777e(0x160)][_0x57777e(0x1c6)][_0x57777e(0x1f9)](_0x3164d2,_0x2701cf)[_0x57777e(0x224)](),_0x131847=_0x35c55e['is'](_0x57777e(0x198))?[]:_0x35c55e[_0x57777e(0x20e)]({'includeSelf':!0x0})[_0x57777e(0x1b2)](0x1);if(_0x131847[_0x57777e(0x1ae)]){const _0x305933=_0x131847[_0x57777e(0x22a)](_0x26e3d0=>_0x26e3d0[_0x57777e(0x1e1)](!0x1));for(let _0x209112=0x1;_0x209112<_0x305933[_0x57777e(0x1ae)];_0x209112++)_0x305933[_0x209112-0x1][_0x57777e(0x210)](_0x305933[_0x209112]);return _0x305933[_0x305933[_0x57777e(0x1ae)]-0x1][_0x57777e(0x210)](_0x3edc9e),new _0x1e8921(_0x305933[0x0]);}return _0x3edc9e;}async[_0x2479e0(0x169)](_0x373310,_0x32328d,_0x40f871,_0x510115,_0x26db83){const _0x58bf20=_0x2479e0,_0x41855e=this[_0x58bf20(0x160)];this[_0x58bf20(0x211)]={'action':_0x26db83,'content':_0x373310,'version':_0x32328d,'mainView':_0x40f871,'aiBalloon':_0x510115};const _0x34f731=new _0x188218({'connector':this[_0x58bf20(0x191)],'editor':_0x41855e,'content':_0x373310,'version':_0x32328d,..._0x26db83});this[_0x58bf20(0x1ed)][_0x58bf20(0x1ce)](_0x34f731),_0x40f871[_0x58bf20(0x22c)]();const _0x4de5ea=(_0x56bd3d,_0x40fdf4,_0x4f8863=!0x1,_0x22071b=_0x58bf20(0x20f))=>this[_0x58bf20(0x231)][_0x58bf20(0x1df)](async _0x59d8f3=>{const _0x5238ec=_0x58bf20;try{const _0x57ce30=_0x2b0cca({'editor':_0x41855e,'changeGroups':_0x56bd3d[_0x5238ec(0x1ab)],'documentContextContent':_0x56bd3d[_0x5238ec(0x171)],'showDiff':_0x4f8863,'trimUnchanged':!0x1});await _0x40fdf4[_0x5238ec(0x1b4)]({'parts':_0x57ce30,'renderingStrategy':_0x22071b,'abortSignal':_0x59d8f3});}catch(_0x48e776){if(this[_0x5238ec(0x21e)](_0x48e776))return;throw _0x48e776;}});this[_0x58bf20(0x205)]['on'](_0x58bf20(0x15d),(_0x50c757,_0x359f8c)=>{const _0xab1895=_0x58bf20;_0x40f871[_0xab1895(0x229)](),_0x4de5ea(_0x359f8c,_0x40f871)[_0xab1895(0x1ad)](_0x494574=>{const _0x44ce2e=_0xab1895;this[_0x44ce2e(0x21e)](_0x494574)||(console[_0x44ce2e(0x15f)](_0x44ce2e(0x21d),_0x494574),this[_0x44ce2e(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x1dd),(_0x3fd68d,_0x300660)=>{const _0xf5b49f=_0x58bf20;_0x4de5ea(_0x300660,_0x40f871)[_0xf5b49f(0x1ad)](_0x1c8210=>{const _0x5b7813=_0xf5b49f;this[_0x5b7813(0x21e)](_0x1c8210)||(console[_0x5b7813(0x15f)](_0x5b7813(0x192),_0x1c8210),this[_0x5b7813(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x20a),async()=>{const _0xdbd97c=_0x58bf20;try{await this[_0xdbd97c(0x1b7)](_0x40f871,_0x510115),this[_0xdbd97c(0x20b)]();}catch(_0x25a8c6){this[_0xdbd97c(0x21e)](_0x25a8c6)||(console[_0xdbd97c(0x15f)](_0xdbd97c(0x1e5),_0x25a8c6),this[_0xdbd97c(0x1c7)](_0x34f731,_0x40f871));}}),this[_0x58bf20(0x21f)](_0x40f871,_0x58bf20(0x177),(_0x5c4efd,{showDiff:_0x2772a4})=>{const _0x2899ed=_0x58bf20;this[_0x2899ed(0x225)]=_0x2772a4;const _0x38da21=this[_0x2899ed(0x205)][_0x2899ed(0x1d2)][this[_0x2899ed(0x205)][_0x2899ed(0x1d2)][_0x2899ed(0x1ae)]-0x1];_0x38da21&&_0x4de5ea(_0x38da21,_0x40f871,_0x2772a4,_0x2899ed(0x1f1))[_0x2899ed(0x1ad)](_0x91968d=>{const _0x6360eb=_0x2899ed;this[_0x6360eb(0x21e)](_0x91968d)||(console[_0x6360eb(0x15f)](_0x6360eb(0x16b),_0x91968d),this[_0x6360eb(0x1c7)](_0x34f731,_0x40f871));});}),this[_0x58bf20(0x205)]['on'](_0x58bf20(0x1b5),(_0xb6fc04,{reply:_0x345860})=>{const _0x365ed7=_0x58bf20,_0x11469a={'positiveCount':_0x345860[_0x365ed7(0x1ab)][_0x365ed7(0x18f)](_0x493eb4=>_0x365ed7(0x1fd)===_0x493eb4[_0x365ed7(0x194)])[_0x365ed7(0x1ae)],'totalCount':_0x345860[_0x365ed7(0x1ab)][_0x365ed7(0x1ae)]},_0x130d79=this[_0x365ed7(0x205)][_0x365ed7(0x170)],_0x490204=this[_0x365ed7(0x205)][_0x365ed7(0x180)];_0x490204?this[_0x365ed7(0x191)][_0x365ed7(0x1b0)](_0x490204,_0x130d79,_0x11469a):this[_0x365ed7(0x191)][_0x365ed7(0x19f)](_0x130d79,_0x11469a);}),this[_0x58bf20(0x1b1)](_0x40f871,_0x510115);try{const _0x2403c1=await this[_0x58bf20(0x205)][_0x58bf20(0x168)]();return this[_0x58bf20(0x20b)](),_0x2403c1;}catch(_0x285f46){if(this[_0x58bf20(0x21e)](_0x285f46))return;_0x40f871[_0x58bf20(0x229)](),this[_0x58bf20(0x1c7)](_0x34f731,_0x40f871);}}[_0x2479e0(0x1ca)](_0x4b3b8d,_0x58b92e,_0x55a6a4){const _0xf0d9f0=_0x2479e0,_0x7830e=this[_0xf0d9f0(0x160)],_0x21493b=this[_0xf0d9f0(0x160)][_0xf0d9f0(0x1b8)][_0xf0d9f0(0x1f7)](_0x3ee950),_0x1c855d=this[_0xf0d9f0(0x205)],_0x3c6d1c=this[_0xf0d9f0(0x205)][_0xf0d9f0(0x1d2)][this[_0xf0d9f0(0x205)][_0xf0d9f0(0x1d2)][_0xf0d9f0(0x1ae)]-0x1],_0x2564f9=_0x3c6d1c[_0xf0d9f0(0x1ab)];_0x3c6d1c[_0xf0d9f0(0x1a3)](0x0,_0xf0d9f0(0x1fd));let _0x6ab507=_0x50152c({'editor':_0x7830e,'reply':_0x3c6d1c,'interaction':_0x1c855d,'groups':_0x2564f9,'transform':!0x1,'documentCompare':_0x21493b,'documentCompareOptions':{'anchor':_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x17e)](_0x4b3b8d,0x0),'markDeletions':_0x55a6a4}});_0x6ab507=this[_0xf0d9f0(0x195)](_0x6ab507,_0x58b92e);for(const _0xe58c7e of _0x6ab507)this[_0xf0d9f0(0x230)](_0x58b92e,_0xe58c7e,_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)][_0xf0d9f0(0x185)]());const _0xec9634=_0x1c855d[_0xf0d9f0(0x193)]()[_0xf0d9f0(0x1d9)],_0x59d91b=_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)][_0xf0d9f0(0x188)][_0xf0d9f0(0x1b9)](_0xec9634),_0x26ff10={'document':_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x181)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x227c10=_0x296773(_0x6ab507,_0x59d91b,_0x26ff10)[_0xf0d9f0(0x1c4)];_0x7830e[_0xf0d9f0(0x1c6)][_0xf0d9f0(0x1a9)](_0x3cf540=>{const _0x1d5a1c=_0xf0d9f0;if(_0x3cf540[_0x1d5a1c(0x17c)](_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x181)][_0x1d5a1c(0x202)][_0x1d5a1c(0x17a)]),_0x55a6a4)_0x7830e[_0x1d5a1c(0x1b8)][_0x1d5a1c(0x1f7)](_0x1d5a1c(0x227))[_0x1d5a1c(0x18a)](_0x227c10);else{for(const _0x4f345f of _0x227c10)_0x4f345f[_0x1d5a1c(0x1f2)]=_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x181)][_0x1d5a1c(0x1d9)],_0x3cf540[_0x1d5a1c(0x187)][_0x1d5a1c(0x219)](_0x4f345f),_0x7830e[_0x1d5a1c(0x1c6)][_0x1d5a1c(0x1fc)](_0x4f345f);}}),this[_0xf0d9f0(0x160)][_0xf0d9f0(0x1b8)][_0xf0d9f0(0x1f7)](_0xf0d9f0(0x179))[_0xf0d9f0(0x1b3)]();}[_0x2479e0(0x195)](_0x15e224,_0x20e8b9){const _0x252b5c=_0x2479e0;return _0x15e224[_0x252b5c(0x18f)](_0x2f5c1f=>{const _0x7ef5cc=_0x252b5c;if(_0x7ef5cc(0x21c)==_0x2f5c1f[_0x7ef5cc(0x1f0)]){const _0x4e52eb=_0x2f5c1f[_0x7ef5cc(0x1e9)][_0x7ef5cc(0x189)];return!_0x20e8b9[_0x7ef5cc(0x1ea)](_0x4e52eb);}if(_0x2f5c1f[_0x7ef5cc(0x1f0)][_0x7ef5cc(0x22b)](_0x7ef5cc(0x209))>-0x1){const _0xb05ecf=_0x2f5c1f[_0x7ef5cc(0x21b)][_0x7ef5cc(0x168)][_0x7ef5cc(0x189)];return!_0x20e8b9[_0x7ef5cc(0x1ea)](_0xb05ecf);}return!0x0;});}[_0x2479e0(0x230)](_0x48981f,_0x262b1c,_0x24c238){const _0x76d996=_0x2479e0,_0x34a225=_0x262b1c[_0x76d996(0x1cb)]();for(const _0x4c02ac in _0x262b1c){const _0xd8c5bd=_0x262b1c[_0x4c02ac];_0xd8c5bd instanceof _0x5275ab?_0x262b1c[_0x4c02ac]=new _0x5275ab(_0x2af09b(_0xd8c5bd[_0x76d996(0x168)]),_0x2af09b(_0xd8c5bd[_0x76d996(0x1a4)])):_0xd8c5bd instanceof _0x25505&&(_0x262b1c[_0x4c02ac]=_0x2af09b(_0xd8c5bd));}if([_0x76d996(0x19e),_0x76d996(0x1ee),_0x76d996(0x1de),_0x76d996(0x186),_0x76d996(0x19d),_0x76d996(0x216)][_0x76d996(0x207)](_0x34a225[_0x76d996(0x1f0)])){if(_0x34a225[_0x76d996(0x16e)]=!0x1,_0x34a225[_0x76d996(0x1f2)]=null,_0x76d996(0x1de)==_0x34a225[_0x76d996(0x1f0)]){const _0x2d9024=_0x34a225[_0x76d996(0x161)],_0x5b14d9=_0x34a225[_0x76d996(0x19a)];new _0x1204ad(_0x2d9024,_0x5b14d9)[_0x76d996(0x201)]();}else _0x34a225[_0x76d996(0x201)]();}function _0x2af09b(_0xacdf6a){const _0x5559b3=_0x76d996;if(_0x5559b3(0x1e6)==_0xacdf6a[_0x5559b3(0x234)][_0x5559b3(0x1a6)])return _0xacdf6a;const _0x558075=[];let _0x568f7b=_0xacdf6a[_0x5559b3(0x234)];for(let _0x51446f=0x0;_0x51446f<_0xacdf6a[_0x5559b3(0x165)][_0x5559b3(0x1ae)];_0x51446f++){const _0x5f59d5=_0x48981f[_0x5559b3(0x1f7)](_0x568f7b)||0x0;_0x558075[_0x51446f]=_0xacdf6a[_0x5559b3(0x165)][_0x51446f]+_0x5f59d5,_0x568f7b=_0x568f7b[_0x5559b3(0x15c)](_0xacdf6a[_0x5559b3(0x165)][_0x51446f]);}return new _0x25505(_0x24c238,_0x558075,_0xacdf6a[_0x5559b3(0x1a5)]);}}[_0x2479e0(0x190)](){const _0x4f37b5=_0x2479e0;if(!this[_0x4f37b5(0x211)])return;this[_0x4f37b5(0x1ed)][_0x4f37b5(0x1ae)]>0x0&&this[_0x4f37b5(0x235)](),this[_0x4f37b5(0x1ec)]=0x0,this[_0x4f37b5(0x225)]=!0x1;const {action:_0x5b5f9a,content:_0x51482c,version:_0x48e892,mainView:_0x5c003d,aiBalloon:_0x40a631}=this[_0x4f37b5(0x211)];_0x5c003d[_0x4f37b5(0x22e)]=!0x1,_0x5c003d[_0x4f37b5(0x22c)](),this[_0x4f37b5(0x1d1)](_0x5c003d,_0x40a631);const _0x132fcc=_0x5c003d;_0x132fcc[_0x4f37b5(0x174)]&&_0x132fcc[_0x4f37b5(0x174)][_0x4f37b5(0x20c)]&&_0x132fcc[_0x4f37b5(0x174)][_0x4f37b5(0x20c)][_0x4f37b5(0x16c)]({'isOn':!0x1,'icon':_0x2c4432}),this[_0x4f37b5(0x1af)](_0x5c003d),_0x5c003d[_0x4f37b5(0x18e)](),this[_0x4f37b5(0x20b)](),this[_0x4f37b5(0x169)](_0x51482c,_0x48e892,_0x5c003d,_0x40a631,_0x5b5f9a)[_0x4f37b5(0x1ad)](_0x42638c=>{const _0x2641b8=_0x4f37b5;this[_0x2641b8(0x21e)](_0x42638c)||console[_0x2641b8(0x15f)](_0x2641b8(0x1bc),_0x42638c);});}[_0x2479e0(0x1af)](_0xc14997){const _0x1ac4d1=_0x2479e0,_0x1a828a=_0xc14997[_0x1ac4d1(0x184)][_0x1ac4d1(0x1d6)];for(;_0x1a828a[_0x1ac4d1(0x1ae)]>0x0;)_0x1a828a[_0x1ac4d1(0x1de)](_0x1a828a[_0x1ac4d1(0x1bf)]);_0xc14997[_0x1ac4d1(0x184)][_0x1ac4d1(0x15e)]=!0x1;}[_0x2479e0(0x21e)](_0x4cbdec){const _0x558d08=_0x2479e0;return!!_0x4cbdec[_0x558d08(0x237)]&&_0x4cbdec[_0x558d08(0x237)][_0x558d08(0x236)](_0x558d08(0x232));}[_0x2479e0(0x173)](){const _0x1cbc18=_0x2479e0;this[_0x1cbc18(0x1ed)]=[],this[_0x1cbc18(0x211)]=void 0x0,this[_0x1cbc18(0x1ec)]=0x0,this[_0x1cbc18(0x20b)]();}[_0x2479e0(0x235)](){const _0x46c345=_0x2479e0;this[_0x46c345(0x205)]&&this[_0x46c345(0x205)][_0x46c345(0x19c)](),this[_0x46c345(0x231)][_0x46c345(0x220)](),this[_0x46c345(0x1eb)]=!0x1;}[_0x2479e0(0x204)](){const _0xf871ab=_0x2479e0,_0xc9b852=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x4741fd=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x3a8473=new _0x1ec23b(this[_0xf871ab(0x160)][_0xf871ab(0x221)]),_0x44b0a4=new _0x4add50(this[_0xf871ab(0x160)][_0xf871ab(0x221)]);_0xc9b852[_0xf871ab(0x16c)]({'icon':_0x1a5cb6,'label':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x17d)),'tooltip':!0x0,'class':_0xf871ab(0x1a8)}),_0x4741fd[_0xf871ab(0x16c)]({'icon':_0xc58103,'tooltip':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x199)),'class':_0xf871ab(0x212)}),_0x3a8473[_0xf871ab(0x1e3)]({'tag':_0xf871ab(0x21a),'attributes':{'class':[_0xf871ab(0x167)]},'children':[_0xf871ab(0x163)]}),_0x44b0a4[_0xf871ab(0x16c)]({'icon':_0x1a6bc0,'tooltip':_0x335cac(this[_0xf871ab(0x160)][_0xf871ab(0x221)],_0xf871ab(0x208)),'class':_0xf871ab(0x1dc)}),_0xc9b852[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x4e6aac=>!_0x4e6aac),_0xc9b852['on'](_0xf871ab(0x1c9),()=>{const _0x66f958=_0xf871ab;this[_0x66f958(0x190)]();}),_0x4741fd[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x8448da=>!_0x8448da),_0x4741fd['on'](_0xf871ab(0x1c9),()=>{const _0x44558d=_0xf871ab;this[_0x44558d(0x1f5)]();}),_0x44b0a4[_0xf871ab(0x1f6)](_0xf871ab(0x22d))['to'](this,_0xf871ab(0x1eb),_0x217ab7=>!_0x217ab7),_0x44b0a4['on'](_0xf871ab(0x1c9),()=>{const _0x482b8a=_0xf871ab;this[_0x482b8a(0x1fa)]();}),this[_0xf871ab(0x1ff)]=_0x4741fd,this[_0xf871ab(0x226)]=_0x3a8473,this[_0xf871ab(0x1c8)]=_0x44b0a4,this[_0xf871ab(0x1c0)][_0xf871ab(0x16d)](_0xc9b852);}[_0x2479e0(0x1f5)](){const _0x263ea8=_0x2479e0,_0x31a722=this[_0x263ea8(0x1ed)][_0x263ea8(0x1ae)];this[_0x263ea8(0x1ec)]<_0x31a722-0x1&&this[_0x263ea8(0x1e8)](this[_0x263ea8(0x1ec)]+0x1);}[_0x2479e0(0x1fa)](){const _0x225ecc=_0x2479e0;this[_0x225ecc(0x1ec)]>0x0&&this[_0x225ecc(0x1e8)](this[_0x225ecc(0x1ec)]-0x1);}async[_0x2479e0(0x1e8)](_0x4d317e){const _0x52eb4c=_0x2479e0;if(!this[_0x52eb4c(0x211)])return;this[_0x52eb4c(0x1ec)]=_0x4d317e;const {mainView:_0x5d3a24}=this[_0x52eb4c(0x211)],_0x100717=this[_0x52eb4c(0x1ed)][this[_0x52eb4c(0x1ed)][_0x52eb4c(0x1ae)]-0x1-this[_0x52eb4c(0x1ec)]];if(!_0x100717)return;if(_0x100717[_0x52eb4c(0x228)])return this[_0x52eb4c(0x1c7)](_0x100717,_0x5d3a24),void this[_0x52eb4c(0x20b)]();if(!_0x100717[_0x52eb4c(0x1d2)][_0x52eb4c(0x1ae)])return;_0x5d3a24[_0x52eb4c(0x22c)](),this[_0x52eb4c(0x211)]&&this[_0x52eb4c(0x1d1)](_0x5d3a24,this[_0x52eb4c(0x211)][_0x52eb4c(0x200)]);const _0x5d1d8a=_0x100717[_0x52eb4c(0x1d2)][_0x100717[_0x52eb4c(0x1d2)][_0x52eb4c(0x1ae)]-0x1];if(_0x5d1d8a){const _0x468f09=this[_0x52eb4c(0x160)];this[_0x52eb4c(0x1af)](_0x5d3a24);try{const _0x201af3=_0x2b0cca({'editor':_0x468f09,'changeGroups':_0x5d1d8a[_0x52eb4c(0x1ab)],'documentContextContent':_0x5d1d8a[_0x52eb4c(0x171)],'showDiff':this[_0x52eb4c(0x225)],'trimUnchanged':!0x1});this[_0x52eb4c(0x1af)](_0x5d3a24),await new Promise(_0x5d4e8e=>setTimeout(_0x5d4e8e,0x32)),await _0x5d3a24[_0x52eb4c(0x1b4)]({'parts':_0x201af3,'renderingStrategy':_0x52eb4c(0x1f1),'abortSignal':new AbortController()[_0x52eb4c(0x1fb)]});}catch(_0x146b5f){this[_0x52eb4c(0x21e)](_0x146b5f)||console[_0x52eb4c(0x15f)](_0x52eb4c(0x1aa),_0x146b5f);}}this[_0x52eb4c(0x20b)]();}[_0x2479e0(0x20b)](){const _0x16ea9c=_0x2479e0;if(!this[_0x16ea9c(0x1ff)]||!this[_0x16ea9c(0x226)]||!this[_0x16ea9c(0x1c8)])return;const _0x25c409=this[_0x16ea9c(0x1ed)][_0x16ea9c(0x1ae)],_0x3e1f0b=_0x25c409>0x1,_0x5d51b5=this[_0x16ea9c(0x211)]?.[_0x16ea9c(0x197)];if(_0x3e1f0b){this[_0x16ea9c(0x17b)]||this[_0x16ea9c(0x215)]||this[_0x16ea9c(0x222)]||(this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x1ff)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x1ff)]),this[_0x16ea9c(0x17b)]=!0x0,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x226)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x226)]),this[_0x16ea9c(0x215)]=!0x0,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x16d)](this[_0x16ea9c(0x1c8)]),_0x5d51b5?.[_0x16ea9c(0x1ac)](this[_0x16ea9c(0x1c8)]),this[_0x16ea9c(0x222)]=!0x0);const _0x346194=_0x25c409-this[_0x16ea9c(0x1ec)];this[_0x16ea9c(0x226)][_0x16ea9c(0x1f8)]&&(this[_0x16ea9c(0x226)][_0x16ea9c(0x1f8)][_0x16ea9c(0x1db)]=_0x346194+'/'+_0x25c409),this[_0x16ea9c(0x1ff)][_0x16ea9c(0x22d)]=this[_0x16ea9c(0x1ec)]<_0x25c409-0x1,this[_0x16ea9c(0x1c8)][_0x16ea9c(0x22d)]=this[_0x16ea9c(0x1ec)]>0x0;}else(this[_0x16ea9c(0x17b)]||this[_0x16ea9c(0x215)]||this[_0x16ea9c(0x222)])&&(this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x1ff)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x1ff)]),this[_0x16ea9c(0x17b)]=!0x1,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x226)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x226)]),this[_0x16ea9c(0x215)]=!0x1,this[_0x16ea9c(0x1c0)][_0x16ea9c(0x1de)](this[_0x16ea9c(0x1c8)]),_0x5d51b5?.[_0x16ea9c(0x166)](this[_0x16ea9c(0x1c8)]),this[_0x16ea9c(0x222)]=!0x1);}[_0x2479e0(0x1b1)](_0x1f6438,_0x44e83d){const _0x24b2e6=_0x2479e0;_0x1f6438[_0x24b2e6(0x15a)](),_0x44e83d[_0x24b2e6(0x1bb)][_0x24b2e6(0x15a)](),this[_0x24b2e6(0x1eb)]=!0x0;}async[_0x2479e0(0x1c7)](_0xf0b78e,_0x31bbbc){const _0x31bdb4=_0x2479e0,_0x55e810=_0x335cac(this[_0x31bdb4(0x160)][_0x31bdb4(0x221)],_0x31bdb4(0x1c3));_0x31bbbc[_0x31bdb4(0x206)](_0x55e810),_0xf0b78e[_0x31bdb4(0x228)]=!0x0,await this[_0x31bdb4(0x231)][_0x31bdb4(0x178)],_0x31bbbc[_0x31bdb4(0x176)](),this[_0x31bdb4(0x211)]?.[_0x31bdb4(0x200)][_0x31bdb4(0x1bb)][_0x31bdb4(0x18d)]&&(this[_0x31bdb4(0x211)][_0x31bdb4(0x200)][_0x31bdb4(0x1bb)][_0x31bdb4(0x18d)][_0x31bdb4(0x16f)]=!0x0);}[_0x2479e0(0x1d1)](_0x80028a,_0xc1bad3){const _0x27e281=_0x2479e0;_0x80028a[_0x27e281(0x18c)](),_0xc1bad3[_0x27e281(0x1bb)][_0x27e281(0x18d)]&&(_0xc1bad3[_0x27e281(0x1bb)][_0x27e281(0x18d)][_0x27e281(0x16f)]=!0x1);}async[_0x2479e0(0x1b7)](_0x261a3a,_0x57098b){const _0x25c80d=_0x2479e0;await this[_0x25c80d(0x231)][_0x25c80d(0x178)],this[_0x25c80d(0x1eb)]=!0x1,_0x261a3a[_0x25c80d(0x1d3)](),_0x57098b[_0x25c80d(0x1bb)][_0x25c80d(0x1d3)]();}}
|
|
23
|
+
const _0x5cf972=_0x3604;(function(_0x549a75,_0x22870c){const _0x4a1949=_0x3604,_0x307b9a=_0x549a75();while(!![]){try{const _0x522653=parseInt(_0x4a1949(0x278))/0x1*(parseInt(_0x4a1949(0x1c2))/0x2)+parseInt(_0x4a1949(0x19e))/0x3+-parseInt(_0x4a1949(0x20c))/0x4+-parseInt(_0x4a1949(0x207))/0x5+parseInt(_0x4a1949(0x1ae))/0x6+parseInt(_0x4a1949(0x237))/0x7+-parseInt(_0x4a1949(0x1cf))/0x8*(parseInt(_0x4a1949(0x260))/0x9);if(_0x522653===_0x22870c)break;else _0x307b9a['push'](_0x307b9a['shift']());}catch(_0x47e903){_0x307b9a['push'](_0x307b9a['shift']());}}}(_0x22cb,0x70c81));import{Plugin as _0x412a8b}from'ckeditor5/src/core.js';import{AIConnector as _0x43766b}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x1f1267}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x3604(_0x53db53,_0x49b3a7){const _0x22cb5b=_0x22cb();return _0x3604=function(_0x36045e,_0x5e9900){_0x36045e=_0x36045e-0x196;let _0x191e39=_0x22cb5b[_0x36045e];return _0x191e39;},_0x3604(_0x53db53,_0x49b3a7);}import{Dialog as _0x38c893,ButtonView as _0x5213df,ViewCollection as _0x4d7a5c,View as _0x4a3ab3}from'ckeditor5/src/ui.js';function _0x22cb(){const _0x102317=['_promiseQueue','TrackChanges','end','applySuggestion','getAncestors','replies','upsertAIActionRating','error','createRange','TrackChangesEditing','_updateNavigationUI','indexOf','bind','hasError','reinsert','144hcNiVV','_clone','processor','message','_navigationNextButton','plugins','setLoading','filter','_isNavigationPreviousButtonInView','nextSibling','_getExecuteDataRegular','_interactions','static','selection','textContent','model','_clearLoadingState','isPremiumPlugin','nodeAfter','getOperations','abort','insert','stopInteraction','_filterOperationsOutsideRange','12230eprGWs','signal','_clearErrorState','_clearInteractionHistory','_stopInteraction','listenTo','open','isEnabled','getRanges','miniToolbarView','interactionFinished','1872009WKFdZW','requires','pending','streaming','replyCreated','ck-ai-custom-action-button','rename','getCommonAncestor','_executeAction','_execute','bodyView','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','sourcePosition','hideError','ai-no-track-changes','documentFragment','1990608VyLfna','_navigationPreviousButton','clone','_setLoadingState','aiBalloon','AI_ACTIONS_NEXT_INTERACTION','getSelectedBlocks','icon','document','path','toData','getSelectedContent','state','_interaction','setSelection','applyOperation','stopListening','replyChangeGroupStateUpdated','getChildAtOffset','Error\x20updating\x20content\x20in\x20replyContentUpdated:','20nJlcXa','documentContextContent','history','toolbar','_setupCustomViews','merge','config','baseVersion','ck-ai-interaction-counter','stickiness','replyContentUpdated','mainView','root','373328uzdTfj','get','_refreshInteraction','close','split','hasPendingParts','setTemplate','_isNavigationCounterInView','selectionRemoved','_applyChanges','AIActions','isBusy','AIConnector','enqueue','position','add','span','_isAbortError','setErrorState','catch','hideLoader','ck-ai-navigation-button\x20ck-ai-next-button','areChangesVisible','data','_currentInteractionIndex','rejected','showLoader','toggleSuggestionDisplayMode','_aiConnector','editor','Error\x20updating\x20content\x20in\x20replyCreated:','first','type','changeGroups','length','has','removeNavigationItem','_applyOperationsAsSuggestions','Attribute','dialogClosed','modelToViewWithIds','element','version','executeAction','clearLoading','getChild','parent','AI_ACTIONS_TRY_AGAIN','rootName','_navigateToPrevious','_getExecuteDataInTable','_setErrorState','change','execute','TableSelection','_navigationCounter','1324360dNufrA','AI_ACTIONS_PREVIOUS_INTERACTION','_displayInteractionAtIndex','slice','push','199932PqWWMK','clearErrorState','1/1','getFirstRange','createPositionAt','howMany','operationsA','upsertCustomAIActionRating','isLoading','includes','startsWith','set','createPositionAfter','AIBalloon','_wrapWithCommonAncestors','getDocumentContext','batch','queueEmptyPromise','actionCallId','_navigateToNext','focus','showError','insertSuggestion','getLimitElement','forEach','ai-request-aborted','random','pluginName','_customViews','isOfficialPlugin','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_clearSuggestionContent','move','remove','map','accepted','balloonView','addNavigationItem','AI_ACTIONS_GENERIC_ERROR','_disableCustomViews','getSelectedTableCells','showChangesButton','range','3117751CmkwjD','isDocumentOperation','setChangeGroupState','getSelectionAsFragment','start','Error\x20refreshing\x20interaction:','_appendChild','_anchorOperation','$graveyard','_children','addOperation','_isNavigationNextButtonInView','actionName','ai.availableReplyActions','getRoot','isCollapsed','Error\x20updating\x20content\x20during\x20navigation:','ck-ai-navigation-button\x20ck-ai-previous-button','_createInteraction','stop','_interactionParams','_balloonShowDiff','createPositionBefore','updateContent','locale','schema'];_0x22cb=function(){return _0x102317;};return _0x22cb();}import{AIEditing as _0x4246c8}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4391f7}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x38820e,first as _0x139a68}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4b8669,IconRefresh as _0x437d53,IconNextArrow as _0x634240,IconPreviousArrow as _0xac2fb4,IconShowChangesOff as _0x4bb54a}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0xf3b670}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x4a2457}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x52bc2a}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4b1e17}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1d1aa6}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x101709,getOperationsFromReply as _0x22e435}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5df78a,ModelRange as _0x5bd1db,ModelPosition as _0x53b3a5,_DetachOperation as _0x233278,transformOperationSets as _0x3d28bc}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4603e4}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x412a8b{static get[_0x5cf972(0x19f)](){return[_0x43766b,_0x38c893,_0x4246c8,_0xf3b670,_0x1d1aa6];}static get[_0x5cf972(0x227)](){const _0x5cf18e=_0x5cf972;return _0x5cf18e(0x1d9);}static get[_0x5cf972(0x229)](){return!0x0;}static get[_0x5cf972(0x271)](){return!0x0;}[_0x5cf972(0x1eb)];[_0x5cf972(0x26b)]=[];[_0x5cf972(0x1e7)]=0x0;[_0x5cf972(0x24b)];[_0x5cf972(0x24c)]=!0x1;[_0x5cf972(0x228)]=new _0x4d7a5c();[_0x5cf972(0x1af)];[_0x5cf972(0x206)];[_0x5cf972(0x1d6)]=!0x1;[_0x5cf972(0x264)];[_0x5cf972(0x268)]=!0x1;[_0x5cf972(0x242)]=!0x1;[_0x5cf972(0x251)];get[_0x5cf972(0x1bb)](){const _0x5a8a63=_0x5cf972;return this[_0x5a8a63(0x26b)][this[_0x5a8a63(0x26b)][_0x5a8a63(0x1f1)]-0x1];}constructor(_0x5d1bf4){const _0x843066=_0x5cf972;super(_0x5d1bf4),this[_0x843066(0x1eb)]=this[_0x843066(0x1ec)][_0x843066(0x265)][_0x843066(0x1d0)](_0x843066(0x1db)),this[_0x843066(0x217)](_0x843066(0x1da),!0x1),this[_0x843066(0x251)]=new _0x4a2457(),this[_0x843066(0x1c6)]();}[_0x5cf972(0x276)](){const _0x489bdd=_0x5cf972;this[_0x489bdd(0x197)]();}async[_0x5cf972(0x1fa)](_0x4a4fc1,_0x9d4530,_0x417f3c){const _0x1e5c05=_0x5cf972;if(this[_0x1e5c05(0x1ec)][_0x1e5c05(0x265)][_0x1e5c05(0x1f2)](_0x1e5c05(0x205))){if(this[_0x1e5c05(0x1ec)][_0x1e5c05(0x265)][_0x1e5c05(0x1d0)](_0x1e5c05(0x205))[_0x1e5c05(0x234)]()){const {modelFragment:_0x4c6f39,anchorData:_0x4d87d1}=this[_0x1e5c05(0x201)]();return this[_0x1e5c05(0x1a6)](_0x4a4fc1,_0x4c6f39,_0x4d87d1,_0x9d4530,_0x417f3c);}}const {modelFragment:_0x23f4c4,anchorData:_0x3c7c76}=this[_0x1e5c05(0x26a)]();return this[_0x1e5c05(0x1a6)](_0x4a4fc1,_0x23f4c4,_0x3c7c76,_0x9d4530,_0x417f3c);}[_0x5cf972(0x26a)](){const _0x1387a9=_0x5cf972,_0x45c421=this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x1b6)][_0x1387a9(0x26d)];if(_0x45c421[_0x1387a9(0x246)]){const _0x428ff7=_0x139a68(_0x45c421[_0x1387a9(0x1b4)]())||this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x250)][_0x1387a9(0x223)](_0x45c421);this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x203)](_0x3dd531=>{const _0x3b58fa=_0x1387a9;_0x3dd531[_0x3b58fa(0x1bc)](_0x428ff7,'in');});}const _0x41da6b=_0x45c421[_0x1387a9(0x20f)](),_0x488c94=this[_0x1387a9(0x21a)](this[_0x1387a9(0x1ec)][_0x1387a9(0x26f)][_0x1387a9(0x1b9)](_0x45c421),_0x41da6b[_0x1387a9(0x23b)],_0x41da6b[_0x1387a9(0x253)]),_0x2c9716=_0x45c421[_0x1387a9(0x20f)]()[_0x1387a9(0x23b)],_0x5ce7d5=new Map();let _0x390e08=_0x488c94;for(let _0x22e7ad=0x0;_0x22e7ad<_0x2c9716[_0x1387a9(0x1b7)][_0x1387a9(0x1f1)];_0x22e7ad++)_0x5ce7d5[_0x1387a9(0x217)](_0x390e08,_0x2c9716[_0x1387a9(0x1b7)][_0x22e7ad]),_0x390e08=_0x390e08[_0x1387a9(0x1fc)](0x0);return{'modelFragment':_0x488c94,'anchorData':_0x5ce7d5};}[_0x5cf972(0x201)](){const _0x5a529f=_0x5cf972,_0x5c9024=this[_0x5a529f(0x1ec)][_0x5a529f(0x26f)][_0x5a529f(0x1b6)][_0x5a529f(0x26d)],_0x3c44c5=this[_0x5a529f(0x1ec)][_0x5a529f(0x265)][_0x5a529f(0x1d0)](_0x5a529f(0x205))[_0x5a529f(0x23a)](),_0x184304=_0x5c9024[_0x5a529f(0x20f)]()[_0x5a529f(0x23b)][_0x5a529f(0x1fd)][_0x5a529f(0x1fd)],_0x4783fd=this[_0x5a529f(0x21a)](_0x3c44c5,this[_0x5a529f(0x1ec)][_0x5a529f(0x26f)][_0x5a529f(0x24d)](_0x184304),this[_0x5a529f(0x1ec)][_0x5a529f(0x26f)][_0x5a529f(0x218)](_0x184304)),_0x1cddba=_0x5c9024[_0x5a529f(0x20f)]()[_0x5a529f(0x23b)],_0x4e6df5=new Map();let _0x3ae351=_0x4783fd;for(let _0x23680e=0x0;_0x23680e<_0x1cddba[_0x5a529f(0x1b7)][_0x5a529f(0x1f1)];_0x23680e++)if(_0x4e6df5[_0x5a529f(0x217)](_0x3ae351,_0x1cddba[_0x5a529f(0x1b7)][_0x23680e]),_0x23680e<_0x1cddba[_0x5a529f(0x1b7)][_0x5a529f(0x1f1)]-0x1)_0x3ae351=_0x3ae351[_0x5a529f(0x1fc)](0x0);else{let _0x1be5f9=_0x3ae351[_0x5a529f(0x269)];for(;_0x1be5f9;)_0x4e6df5[_0x5a529f(0x217)](_0x1be5f9,_0x1cddba[_0x5a529f(0x1b7)][_0x23680e]),_0x1be5f9=_0x1be5f9[_0x5a529f(0x269)];}return{'modelFragment':_0x4783fd,'anchorData':_0x4e6df5};}[_0x5cf972(0x1a6)](_0x1c58c0,_0x4939a7,_0x3a295c,_0x51ec4b,_0x53498b){const _0x430ec4=_0x5cf972,_0x4276d6=this[_0x430ec4(0x1ec)][_0x430ec4(0x265)][_0x430ec4(0x1d0)](_0x4246c8),_0x56211e=this[_0x430ec4(0x1ec)][_0x430ec4(0x265)][_0x430ec4(0x1d0)](_0xf3b670),_0x1cf991=this[_0x430ec4(0x1ec)][_0x430ec4(0x26f)][_0x430ec4(0x1b6)][_0x430ec4(0x26d)],_0x24d4ef=_0x4276d6[_0x430ec4(0x1f7)](_0x4939a7),_0x3b8246=this[_0x430ec4(0x1ec)][_0x430ec4(0x1e6)][_0x430ec4(0x262)][_0x430ec4(0x1b8)](_0x24d4ef),_0x4900c1=this[_0x430ec4(0x1ec)][_0x430ec4(0x26f)][_0x430ec4(0x1b6)][_0x430ec4(0x1f9)],_0x3807e1=[..._0x1cf991[_0x430ec4(0x19b)]()];let _0x3b1fcb=this[_0x430ec4(0x1ec)][_0x430ec4(0x1c8)][_0x430ec4(0x1d0)](_0x430ec4(0x244))||[..._0x4603e4];this[_0x430ec4(0x1ec)][_0x430ec4(0x265)][_0x430ec4(0x1f2)](_0x430ec4(0x252))||(_0x3b1fcb=_0x3b1fcb[_0x430ec4(0x267)](_0x543661=>_0x430ec4(0x222)!=_0x543661));const _0x2f5531=new _0x1f1267(this[_0x430ec4(0x1ec)][_0x430ec4(0x24f)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x430ec4(0x1b5),'customView':this[_0x430ec4(0x228)]},'showUnchangedParts':!0x0,'availableActions':_0x3b1fcb});return _0x56211e[_0x430ec4(0x199)]({'index':0x3e8*Math[_0x430ec4(0x226)]()%0x3e8,'title':_0x51ec4b,'icon':_0x53498b||_0x4b8669,'mainView':_0x2f5531,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x3807e1}),this[_0x430ec4(0x1b1)](_0x2f5531,_0x56211e),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x254),()=>{const _0x304445=_0x430ec4;this[_0x304445(0x1d8)](_0x4939a7,_0x3a295c,!0x1);}),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x222),()=>{const _0x49f672=_0x430ec4;this[_0x49f672(0x1d8)](_0x4939a7,_0x3a295c,!0x0);}),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x1d7),()=>{const _0x17be11=_0x430ec4;this[_0x17be11(0x197)](),this[_0x17be11(0x233)]();}),this[_0x430ec4(0x198)](_0x56211e,_0x430ec4(0x1f6),()=>{const _0x1722a9=_0x430ec4;if(this[_0x1722a9(0x1bb)]&&this[_0x1722a9(0x1bb)][_0x1722a9(0x256)][_0x1722a9(0x1f1)]>0x0){const _0x1d1d64=this[_0x1722a9(0x1bb)][_0x1722a9(0x256)][this[_0x1722a9(0x1bb)][_0x1722a9(0x256)][_0x1722a9(0x1f1)]-0x1],_0x587941=_0x1d1d64[_0x1722a9(0x1f0)][0x0];_0x587941&&_0x1722a9(0x1a0)===_0x587941[_0x1722a9(0x1ba)]&&_0x1d1d64[_0x1722a9(0x239)](0x0,_0x1722a9(0x1e8));}this[_0x1722a9(0x197)](),this[_0x1722a9(0x196)](),this[_0x1722a9(0x1be)](_0x56211e);}),this[_0x430ec4(0x249)](_0x3b8246,_0x4900c1,_0x2f5531,_0x56211e,_0x1c58c0);}[_0x5cf972(0x21a)](_0x612e78,_0x2017b7,_0x5a2206){const _0x1a7a2f=_0x5cf972,_0x18080d=this[_0x1a7a2f(0x1ec)][_0x1a7a2f(0x26f)][_0x1a7a2f(0x259)](_0x2017b7,_0x5a2206)[_0x1a7a2f(0x1a5)](),_0x1e32e7=_0x18080d['is'](_0x1a7a2f(0x1ad))?[]:_0x18080d[_0x1a7a2f(0x255)]({'includeSelf':!0x0})[_0x1a7a2f(0x20a)](0x1);if(_0x1e32e7[_0x1a7a2f(0x1f1)]){const _0x43a399=_0x1e32e7[_0x1a7a2f(0x22e)](_0x271cb6=>_0x271cb6[_0x1a7a2f(0x261)](!0x1));for(let _0x4a41ce=0x1;_0x4a41ce<_0x43a399[_0x1a7a2f(0x1f1)];_0x4a41ce++)_0x43a399[_0x4a41ce-0x1][_0x1a7a2f(0x23d)](_0x43a399[_0x4a41ce]);return _0x43a399[_0x43a399[_0x1a7a2f(0x1f1)]-0x1][_0x1a7a2f(0x23d)](_0x612e78),new _0x5df78a(_0x43a399[0x0]);}return _0x612e78;}async[_0x5cf972(0x249)](_0x287239,_0x9fa473,_0x2374df,_0x29b860,_0x4ab750){const _0x1ab5ab=_0x5cf972,_0x431baa=this[_0x1ab5ab(0x1ec)];this[_0x1ab5ab(0x24b)]={'action':_0x4ab750,'content':_0x287239,'version':_0x9fa473,'mainView':_0x2374df,'aiBalloon':_0x29b860};const _0x26db0f=new _0x4391f7({'connector':this[_0x1ab5ab(0x1eb)],'editor':_0x431baa,'content':_0x287239,'version':_0x9fa473,..._0x4ab750});this[_0x1ab5ab(0x26b)][_0x1ab5ab(0x20b)](_0x26db0f),_0x2374df[_0x1ab5ab(0x1ab)]();const _0x1ae67f=(_0x12b6ad,_0x503708,_0x15fe1f=!0x1,_0x3c0e92=_0x1ab5ab(0x1a1))=>this[_0x1ab5ab(0x251)][_0x1ab5ab(0x1dc)](async _0xc7c483=>{const _0x3a85d9=_0x1ab5ab;try{const _0x54fda7=_0x4b1e17({'editor':_0x431baa,'changeGroups':_0x12b6ad[_0x3a85d9(0x1f0)],'documentContextContent':_0x12b6ad[_0x3a85d9(0x1c3)],'showDiff':_0x15fe1f,'trimUnchanged':!0x1});await _0x503708[_0x3a85d9(0x24e)]({'parts':_0x54fda7,'renderingStrategy':_0x3c0e92,'abortSignal':_0xc7c483});}catch(_0x33c0a7){if(this[_0x3a85d9(0x1e0)](_0x33c0a7))return;throw _0x33c0a7;}});this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x1a2),(_0x3979c7,_0x48ea59)=>{const _0x455244=_0x1ab5ab;_0x2374df[_0x455244(0x1e3)](),_0x1ae67f(_0x48ea59,_0x2374df)[_0x455244(0x1e2)](_0x3f9724=>{const _0x154e4d=_0x455244;this[_0x154e4d(0x1e0)](_0x3f9724)||(console[_0x154e4d(0x258)](_0x154e4d(0x1ed),_0x3f9724),this[_0x154e4d(0x202)](_0x26db0f,_0x2374df));});}),this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x1cc),(_0x2e4ac6,_0x32399f)=>{const _0x2bd889=_0x1ab5ab;_0x1ae67f(_0x32399f,_0x2374df)[_0x2bd889(0x1e2)](_0x1c4ec3=>{const _0x515ab5=_0x2bd889;this[_0x515ab5(0x1e0)](_0x1c4ec3)||(console[_0x515ab5(0x258)](_0x515ab5(0x1c1),_0x1c4ec3),this[_0x515ab5(0x202)](_0x26db0f,_0x2374df));});}),this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x19d),async()=>{const _0x2c1e49=_0x1ab5ab;try{await this[_0x2c1e49(0x270)](_0x2374df,_0x29b860),this[_0x2c1e49(0x25b)]();}catch(_0x2f442f){this[_0x2c1e49(0x1e0)](_0x2f442f)||(console[_0x2c1e49(0x258)](_0x2c1e49(0x22a),_0x2f442f),this[_0x2c1e49(0x202)](_0x26db0f,_0x2374df));}}),this[_0x1ab5ab(0x198)](_0x2374df,_0x1ab5ab(0x1ea),(_0x5a3320,{showDiff:_0x4df7fb})=>{const _0x1d9228=_0x1ab5ab;this[_0x1d9228(0x24c)]=_0x4df7fb;const _0x591abd=this[_0x1d9228(0x1bb)][_0x1d9228(0x256)][this[_0x1d9228(0x1bb)][_0x1d9228(0x256)][_0x1d9228(0x1f1)]-0x1];_0x591abd&&_0x1ae67f(_0x591abd,_0x2374df,_0x4df7fb,_0x1d9228(0x26c))[_0x1d9228(0x1e2)](_0x887233=>{const _0x425fe9=_0x1d9228;this[_0x425fe9(0x1e0)](_0x887233)||(console[_0x425fe9(0x258)](_0x425fe9(0x1a9),_0x887233),this[_0x425fe9(0x202)](_0x26db0f,_0x2374df));});}),this[_0x1ab5ab(0x1bb)]['on'](_0x1ab5ab(0x1bf),(_0x109bda,{reply:_0x2e0b17})=>{const _0xe4bc56=_0x1ab5ab,_0x2449c8={'positiveCount':_0x2e0b17[_0xe4bc56(0x1f0)][_0xe4bc56(0x267)](_0x1fe360=>_0xe4bc56(0x22f)===_0x1fe360[_0xe4bc56(0x1ba)])[_0xe4bc56(0x1f1)],'totalCount':_0x2e0b17[_0xe4bc56(0x1f0)][_0xe4bc56(0x1f1)]},_0x2b9d65=this[_0xe4bc56(0x1bb)][_0xe4bc56(0x21e)],_0x508f12=this[_0xe4bc56(0x1bb)][_0xe4bc56(0x243)];_0x508f12?this[_0xe4bc56(0x1eb)][_0xe4bc56(0x257)](_0x508f12,_0x2b9d65,_0x2449c8):this[_0xe4bc56(0x1eb)][_0xe4bc56(0x213)](_0x2b9d65,_0x2449c8);}),this[_0x1ab5ab(0x1b1)](_0x2374df,_0x29b860);try{const _0x5af8bc=await this[_0x1ab5ab(0x1bb)][_0x1ab5ab(0x23b)]();return this[_0x1ab5ab(0x25b)](),_0x5af8bc;}catch(_0x31c570){if(this[_0x1ab5ab(0x1e0)](_0x31c570))return;_0x2374df[_0x1ab5ab(0x1e3)](),this[_0x1ab5ab(0x202)](_0x26db0f,_0x2374df);}}[_0x5cf972(0x1d8)](_0x5cb574,_0x2588f5,_0xf9b9ba){const _0x4b5025=_0x5cf972,_0x17260a=this[_0x4b5025(0x1ec)];if(_0xf9b9ba&&!_0x17260a[_0x4b5025(0x265)][_0x4b5025(0x1f2)](_0x4b5025(0x252)))throw new _0x38820e(_0x4b5025(0x1ac),null);const _0x5a34fd=this[_0x4b5025(0x1ec)][_0x4b5025(0x265)][_0x4b5025(0x1d0)](_0x1d1aa6),_0x350da8=this[_0x4b5025(0x1bb)],_0x351e4b=this[_0x4b5025(0x1bb)][_0x4b5025(0x256)][this[_0x4b5025(0x1bb)][_0x4b5025(0x256)][_0x4b5025(0x1f1)]-0x1],_0x323755=_0x351e4b[_0x4b5025(0x1f0)];_0x351e4b[_0x4b5025(0x239)](0x0,_0x4b5025(0x22f));let _0x28d0be=_0x22e435({'editor':_0x17260a,'reply':_0x351e4b,'interaction':_0x350da8,'groups':_0x323755,'transform':!0x1,'documentCompare':_0x5a34fd,'documentCompareOptions':{'anchor':_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x210)](_0x5cb574,0x0),'markDeletions':_0xf9b9ba}});_0x28d0be=this[_0x4b5025(0x277)](_0x28d0be,_0x2588f5);for(const _0x32237b of _0x28d0be)this[_0x4b5025(0x23e)](_0x2588f5,_0x32237b,_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x1b6)][_0x4b5025(0x245)]());const _0x527f78=_0x350da8[_0x4b5025(0x21b)]()[_0x4b5025(0x1f9)],_0x17ee0d=_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x1b6)][_0x4b5025(0x1c4)][_0x4b5025(0x273)](_0x527f78),_0x27d883={'document':_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x1b6)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x512af2=_0x3d28bc(_0x28d0be,_0x17ee0d,_0x27d883)[_0x4b5025(0x212)];_0x17260a[_0x4b5025(0x26f)][_0x4b5025(0x203)](_0x34d204=>{const _0x17df58=_0x4b5025;if(_0x34d204[_0x17df58(0x1bc)](_0x17260a[_0x17df58(0x26f)][_0x17df58(0x1b6)][_0x17df58(0x26d)][_0x17df58(0x220)]),_0xf9b9ba)_0x17260a[_0x17df58(0x265)][_0x17df58(0x1d0)](_0x17df58(0x25a))[_0x17df58(0x1f4)](_0x512af2);else{for(const _0x5578a8 of _0x512af2)_0x5578a8[_0x17df58(0x1c9)]=_0x17260a[_0x17df58(0x26f)][_0x17df58(0x1b6)][_0x17df58(0x1f9)],_0x101709(_0x17260a,_0x5578a8),_0x34d204[_0x17df58(0x21c)][_0x17df58(0x241)](_0x5578a8),_0x17260a[_0x17df58(0x26f)][_0x17df58(0x1bd)](_0x5578a8);}}),this[_0x4b5025(0x1ec)][_0x4b5025(0x265)][_0x4b5025(0x1d0)](_0x4b5025(0x219))[_0x4b5025(0x1d2)]();}[_0x5cf972(0x277)](_0x46153b,_0x17638f){const _0x1d1be1=_0x5cf972;return _0x46153b[_0x1d1be1(0x267)](_0x19ee01=>{const _0x5ec423=_0x1d1be1;if(_0x5ec423(0x1a4)==_0x19ee01[_0x5ec423(0x1ef)]){const _0x5e2a79=_0x19ee01[_0x5ec423(0x1dd)][_0x5ec423(0x272)];return!_0x17638f[_0x5ec423(0x1f2)](_0x5e2a79);}if(_0x19ee01[_0x5ec423(0x1ef)][_0x5ec423(0x25c)](_0x5ec423(0x1f5))>-0x1){const _0x5239df=_0x19ee01[_0x5ec423(0x236)][_0x5ec423(0x23b)][_0x5ec423(0x272)];return!_0x17638f[_0x5ec423(0x1f2)](_0x5239df);}return!0x0;});}[_0x5cf972(0x23e)](_0xc1cca9,_0x55b1b4,_0x1a7ab4){const _0x1f75dc=_0x5cf972,_0x24ee8d=_0x55b1b4[_0x1f75dc(0x1b0)]();for(const _0x154157 in _0x55b1b4){const _0x9ef205=_0x55b1b4[_0x154157];_0x9ef205 instanceof _0x5bd1db?_0x55b1b4[_0x154157]=new _0x5bd1db(_0x422c19(_0x9ef205[_0x1f75dc(0x23b)]),_0x422c19(_0x9ef205[_0x1f75dc(0x253)])):_0x9ef205 instanceof _0x53b3a5&&(_0x55b1b4[_0x154157]=_0x422c19(_0x9ef205));}if([_0x1f75dc(0x275),_0x1f75dc(0x22c),_0x1f75dc(0x22d),_0x1f75dc(0x25f),_0x1f75dc(0x1d3),_0x1f75dc(0x1c7)][_0x1f75dc(0x215)](_0x24ee8d[_0x1f75dc(0x1ef)])){if(_0x24ee8d[_0x1f75dc(0x238)]=!0x1,_0x24ee8d[_0x1f75dc(0x1c9)]=null,_0x1f75dc(0x22d)==_0x24ee8d[_0x1f75dc(0x1ef)]){const _0xcafcea=_0x24ee8d[_0x1f75dc(0x1aa)],_0x31544e=_0x24ee8d[_0x1f75dc(0x211)];new _0x233278(_0xcafcea,_0x31544e)[_0x1f75dc(0x1a7)]();}else _0x24ee8d[_0x1f75dc(0x1a7)]();}function _0x422c19(_0x1aa39a){const _0x1f5ca4=_0x1f75dc;if(_0x1f5ca4(0x23f)==_0x1aa39a[_0x1f5ca4(0x1ce)][_0x1f5ca4(0x1ff)])return _0x1aa39a;const _0x2051e5=[];let _0x3c5535=_0x1aa39a[_0x1f5ca4(0x1ce)];for(let _0xdf61e7=0x0;_0xdf61e7<_0x1aa39a[_0x1f5ca4(0x1b7)][_0x1f5ca4(0x1f1)];_0xdf61e7++){const _0x5d8f6d=_0xc1cca9[_0x1f5ca4(0x1d0)](_0x3c5535)||0x0;_0x2051e5[_0xdf61e7]=_0x1aa39a[_0x1f5ca4(0x1b7)][_0xdf61e7]+_0x5d8f6d,_0x3c5535=_0x3c5535[_0x1f5ca4(0x1c0)](_0x1aa39a[_0x1f5ca4(0x1b7)][_0xdf61e7]);}return new _0x53b3a5(_0x1a7ab4,_0x2051e5,_0x1aa39a[_0x1f5ca4(0x1cb)]);}}[_0x5cf972(0x1d1)](){const _0x7d11b0=_0x5cf972;if(!this[_0x7d11b0(0x24b)])return;this[_0x7d11b0(0x26b)][_0x7d11b0(0x1f1)]>0x0&&this[_0x7d11b0(0x197)](),this[_0x7d11b0(0x1e7)]=0x0,this[_0x7d11b0(0x24c)]=!0x1;const {action:_0x4dfdcc,content:_0x4475f7,version:_0x174af0,mainView:_0x2f62d0,aiBalloon:_0x37315a}=this[_0x7d11b0(0x24b)];_0x2f62d0[_0x7d11b0(0x1e5)]=!0x1,_0x2f62d0[_0x7d11b0(0x1ab)](),this[_0x7d11b0(0x27a)](_0x2f62d0,_0x37315a);const _0x4c2243=_0x2f62d0;_0x4c2243[_0x7d11b0(0x19c)]&&_0x4c2243[_0x7d11b0(0x19c)][_0x7d11b0(0x235)]&&_0x4c2243[_0x7d11b0(0x19c)][_0x7d11b0(0x235)][_0x7d11b0(0x217)]({'isOn':!0x1,'icon':_0x4bb54a}),this[_0x7d11b0(0x22b)](_0x2f62d0),_0x2f62d0[_0x7d11b0(0x1e9)](),this[_0x7d11b0(0x25b)](),this[_0x7d11b0(0x249)](_0x4475f7,_0x174af0,_0x2f62d0,_0x37315a,_0x4dfdcc)[_0x7d11b0(0x1e2)](_0x49fc92=>{const _0x595925=_0x7d11b0;this[_0x595925(0x1e0)](_0x49fc92)||console[_0x595925(0x258)](_0x595925(0x23c),_0x49fc92);});}[_0x5cf972(0x22b)](_0x47ef15){const _0x244d53=_0x5cf972,_0x2b7dbc=_0x47ef15[_0x244d53(0x1a8)][_0x244d53(0x240)];for(;_0x2b7dbc[_0x244d53(0x1f1)]>0x0;)_0x2b7dbc[_0x244d53(0x22d)](_0x2b7dbc[_0x244d53(0x1ee)]);_0x47ef15[_0x244d53(0x1a8)][_0x244d53(0x1d4)]=!0x1;}[_0x5cf972(0x1e0)](_0x511962){const _0x2c76a7=_0x5cf972;return!!_0x511962[_0x2c76a7(0x263)]&&_0x511962[_0x2c76a7(0x263)][_0x2c76a7(0x216)](_0x2c76a7(0x225));}[_0x5cf972(0x196)](){const _0x1e6287=_0x5cf972;this[_0x1e6287(0x26b)]=[],this[_0x1e6287(0x24b)]=void 0x0,this[_0x1e6287(0x1e7)]=0x0,this[_0x1e6287(0x25b)]();}[_0x5cf972(0x197)](){const _0x51d9ed=_0x5cf972;this[_0x51d9ed(0x1bb)]&&this[_0x51d9ed(0x1bb)][_0x51d9ed(0x24a)](),this[_0x51d9ed(0x251)][_0x51d9ed(0x274)](),this[_0x51d9ed(0x1da)]=!0x1;}[_0x5cf972(0x1c6)](){const _0xe3f9d9=_0x5cf972,_0x3e5367=new _0x5213df(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]),_0x4727e1=new _0x5213df(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]),_0x5cc6b2=new _0x4a3ab3(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]),_0x4ba123=new _0x5213df(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)]);_0x3e5367[_0xe3f9d9(0x217)]({'icon':_0x437d53,'label':_0x52bc2a(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)],_0xe3f9d9(0x1fe)),'tooltip':!0x0,'class':_0xe3f9d9(0x1a3)}),_0x4727e1[_0xe3f9d9(0x217)]({'icon':_0xac2fb4,'tooltip':_0x52bc2a(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)],_0xe3f9d9(0x208)),'class':_0xe3f9d9(0x248)}),_0x5cc6b2[_0xe3f9d9(0x1d5)]({'tag':_0xe3f9d9(0x1df),'attributes':{'class':[_0xe3f9d9(0x1ca)]},'children':[_0xe3f9d9(0x20e)]}),_0x4ba123[_0xe3f9d9(0x217)]({'icon':_0x634240,'tooltip':_0x52bc2a(this[_0xe3f9d9(0x1ec)][_0xe3f9d9(0x24f)],_0xe3f9d9(0x1b3)),'class':_0xe3f9d9(0x1e4)}),_0x3e5367[_0xe3f9d9(0x25d)](_0xe3f9d9(0x19a))['to'](this,_0xe3f9d9(0x1da),_0x2fa078=>!_0x2fa078),_0x3e5367['on'](_0xe3f9d9(0x204),()=>{const _0x617c5e=_0xe3f9d9;this[_0x617c5e(0x1d1)]();}),_0x4727e1[_0xe3f9d9(0x25d)](_0xe3f9d9(0x19a))['to'](this,_0xe3f9d9(0x1da),_0x4d1f69=>!_0x4d1f69),_0x4727e1['on'](_0xe3f9d9(0x204),()=>{const _0x29af86=_0xe3f9d9;this[_0x29af86(0x200)]();}),_0x4ba123[_0xe3f9d9(0x25d)](_0xe3f9d9(0x19a))['to'](this,_0xe3f9d9(0x1da),_0x57cce5=>!_0x57cce5),_0x4ba123['on'](_0xe3f9d9(0x204),()=>{const _0x395904=_0xe3f9d9;this[_0x395904(0x21f)]();}),this[_0xe3f9d9(0x1af)]=_0x4727e1,this[_0xe3f9d9(0x206)]=_0x5cc6b2,this[_0xe3f9d9(0x264)]=_0x4ba123,this[_0xe3f9d9(0x228)][_0xe3f9d9(0x1de)](_0x3e5367);}[_0x5cf972(0x200)](){const _0x10903c=_0x5cf972,_0x16d17c=this[_0x10903c(0x26b)][_0x10903c(0x1f1)];this[_0x10903c(0x1e7)]<_0x16d17c-0x1&&this[_0x10903c(0x209)](this[_0x10903c(0x1e7)]+0x1);}[_0x5cf972(0x21f)](){const _0x35b7ca=_0x5cf972;this[_0x35b7ca(0x1e7)]>0x0&&this[_0x35b7ca(0x209)](this[_0x35b7ca(0x1e7)]-0x1);}async[_0x5cf972(0x209)](_0x5bb3b3){const _0x50d10c=_0x5cf972;if(!this[_0x50d10c(0x24b)])return;this[_0x50d10c(0x1e7)]=_0x5bb3b3;const {mainView:_0x536930}=this[_0x50d10c(0x24b)],_0x19939a=this[_0x50d10c(0x26b)][this[_0x50d10c(0x26b)][_0x50d10c(0x1f1)]-0x1-this[_0x50d10c(0x1e7)]];if(!_0x19939a)return;if(_0x19939a[_0x50d10c(0x25e)])return this[_0x50d10c(0x202)](_0x19939a,_0x536930),void this[_0x50d10c(0x25b)]();if(!_0x19939a[_0x50d10c(0x256)][_0x50d10c(0x1f1)])return;_0x536930[_0x50d10c(0x1ab)](),this[_0x50d10c(0x24b)]&&this[_0x50d10c(0x27a)](_0x536930,this[_0x50d10c(0x24b)][_0x50d10c(0x1b2)]);const _0x2f2eca=_0x19939a[_0x50d10c(0x256)][_0x19939a[_0x50d10c(0x256)][_0x50d10c(0x1f1)]-0x1];if(_0x2f2eca){const _0x548327=this[_0x50d10c(0x1ec)];this[_0x50d10c(0x22b)](_0x536930);try{const _0x474230=_0x4b1e17({'editor':_0x548327,'changeGroups':_0x2f2eca[_0x50d10c(0x1f0)],'documentContextContent':_0x2f2eca[_0x50d10c(0x1c3)],'showDiff':this[_0x50d10c(0x24c)],'trimUnchanged':!0x1});this[_0x50d10c(0x22b)](_0x536930),await new Promise(_0x289784=>setTimeout(_0x289784,0x32)),await _0x536930[_0x50d10c(0x24e)]({'parts':_0x474230,'renderingStrategy':_0x50d10c(0x26c),'abortSignal':new AbortController()[_0x50d10c(0x279)]});}catch(_0x10106b){this[_0x50d10c(0x1e0)](_0x10106b)||console[_0x50d10c(0x258)](_0x50d10c(0x247),_0x10106b);}}this[_0x50d10c(0x25b)]();}[_0x5cf972(0x25b)](){const _0x2cc00e=_0x5cf972;if(!this[_0x2cc00e(0x1af)]||!this[_0x2cc00e(0x206)]||!this[_0x2cc00e(0x264)])return;const _0x36d6d2=this[_0x2cc00e(0x26b)][_0x2cc00e(0x1f1)],_0x5012ec=_0x36d6d2>0x1,_0x5cf2f3=this[_0x2cc00e(0x24b)]?.[_0x2cc00e(0x1cd)];if(_0x5012ec){this[_0x2cc00e(0x268)]||this[_0x2cc00e(0x1d6)]||this[_0x2cc00e(0x242)]||(this[_0x2cc00e(0x228)][_0x2cc00e(0x1de)](this[_0x2cc00e(0x1af)]),_0x5cf2f3?.[_0x2cc00e(0x231)](this[_0x2cc00e(0x1af)]),this[_0x2cc00e(0x268)]=!0x0,this[_0x2cc00e(0x228)][_0x2cc00e(0x1de)](this[_0x2cc00e(0x206)]),_0x5cf2f3?.[_0x2cc00e(0x231)](this[_0x2cc00e(0x206)]),this[_0x2cc00e(0x1d6)]=!0x0,this[_0x2cc00e(0x228)][_0x2cc00e(0x1de)](this[_0x2cc00e(0x264)]),_0x5cf2f3?.[_0x2cc00e(0x231)](this[_0x2cc00e(0x264)]),this[_0x2cc00e(0x242)]=!0x0);const _0x40c7c3=_0x36d6d2-this[_0x2cc00e(0x1e7)];this[_0x2cc00e(0x206)][_0x2cc00e(0x1f8)]&&(this[_0x2cc00e(0x206)][_0x2cc00e(0x1f8)][_0x2cc00e(0x26e)]=_0x40c7c3+'/'+_0x36d6d2),this[_0x2cc00e(0x1af)][_0x2cc00e(0x19a)]=this[_0x2cc00e(0x1e7)]<_0x36d6d2-0x1,this[_0x2cc00e(0x264)][_0x2cc00e(0x19a)]=this[_0x2cc00e(0x1e7)]>0x0;}else(this[_0x2cc00e(0x268)]||this[_0x2cc00e(0x1d6)]||this[_0x2cc00e(0x242)])&&(this[_0x2cc00e(0x228)][_0x2cc00e(0x22d)](this[_0x2cc00e(0x1af)]),_0x5cf2f3?.[_0x2cc00e(0x1f3)](this[_0x2cc00e(0x1af)]),this[_0x2cc00e(0x268)]=!0x1,this[_0x2cc00e(0x228)][_0x2cc00e(0x22d)](this[_0x2cc00e(0x206)]),_0x5cf2f3?.[_0x2cc00e(0x1f3)](this[_0x2cc00e(0x206)]),this[_0x2cc00e(0x1d6)]=!0x1,this[_0x2cc00e(0x228)][_0x2cc00e(0x22d)](this[_0x2cc00e(0x264)]),_0x5cf2f3?.[_0x2cc00e(0x1f3)](this[_0x2cc00e(0x264)]),this[_0x2cc00e(0x242)]=!0x1);}[_0x5cf972(0x1b1)](_0x150ea0,_0x2f598f){const _0x3ebb01=_0x5cf972;_0x150ea0[_0x3ebb01(0x266)](),_0x2f598f[_0x3ebb01(0x230)][_0x3ebb01(0x266)](),this[_0x3ebb01(0x1da)]=!0x0;}async[_0x5cf972(0x202)](_0x464e4a,_0x9e3217){const _0x4cb9a0=_0x5cf972,_0x58d71c=_0x52bc2a(this[_0x4cb9a0(0x1ec)][_0x4cb9a0(0x24f)],_0x4cb9a0(0x232));_0x9e3217[_0x4cb9a0(0x221)](_0x58d71c),_0x464e4a[_0x4cb9a0(0x25e)]=!0x0,await this[_0x4cb9a0(0x251)][_0x4cb9a0(0x21d)],_0x9e3217[_0x4cb9a0(0x1e1)](),this[_0x4cb9a0(0x24b)]?.[_0x4cb9a0(0x1b2)][_0x4cb9a0(0x230)][_0x4cb9a0(0x1c5)]&&(this[_0x4cb9a0(0x24b)][_0x4cb9a0(0x1b2)][_0x4cb9a0(0x230)][_0x4cb9a0(0x1c5)][_0x4cb9a0(0x214)]=!0x0);}[_0x5cf972(0x27a)](_0x3f18df,_0x294a96){const _0xeceb66=_0x5cf972;_0x3f18df[_0xeceb66(0x20d)](),_0x294a96[_0xeceb66(0x230)][_0xeceb66(0x1c5)]&&(_0x294a96[_0xeceb66(0x230)][_0xeceb66(0x1c5)][_0xeceb66(0x214)]=!0x1);}async[_0x5cf972(0x270)](_0x21b296,_0x5558a2){const _0x4e5556=_0x5cf972;await this[_0x4e5556(0x251)][_0x4e5556(0x21d)],this[_0x4e5556(0x1da)]=!0x1,_0x21b296[_0x4e5556(0x1fb)](),_0x5558a2[_0x4e5556(0x230)][_0x4e5556(0x1fb)]();}[_0x5cf972(0x233)](){const _0x5ac8df=_0x5cf972;this[_0x5ac8df(0x228)][_0x5ac8df(0x224)](_0xc08406=>{const _0x435c47=_0x5ac8df;_0x435c47(0x19a)in _0xc08406&&(_0xc08406[_0x435c47(0x19a)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3470(_0xbe0681,_0x55f52f){const _0xbad92=_0xbad9();return _0x3470=function(_0x347004,_0x11e991){_0x347004=_0x347004-0x11d;let _0x2a3ae1=_0xbad92[_0x347004];return _0x2a3ae1;},_0x3470(_0xbe0681,_0x55f52f);}function _0xbad9(){const _0x543160=['Current\x20document','version','204bVKqil','push','65ouzQPs','replyCreated','1957634CtGHyX','80802dHDFJi','editor','userMessage','fire','TEXT','html','model','361820Iucldw','executeCustomAction','hasError','current-document','155787TsakMv','delegate','141738dnWEqi','createReply','content','connector','12966fhWUln','executeAction','getDocumentContext','264VuvdMM','128928KdaYyr','actionName','replies','sendRequest','args'];_0xbad9=function(){return _0x543160;};return _0xbad9();}const _0x230046=_0x3470;(function(_0x13c048,_0x5a194a){const _0x148dce=_0x3470,_0x56598a=_0x13c048();while(!![]){try{const _0x1140d6=-parseInt(_0x148dce(0x11d))/0x1+-parseInt(_0x148dce(0x127))/0x2+parseInt(_0x148dce(0x123))/0x3*(parseInt(_0x148dce(0x12e))/0x4)+parseInt(_0x148dce(0x130))/0x5*(parseInt(_0x148dce(0x11f))/0x6)+parseInt(_0x148dce(0x132))/0x7+parseInt(_0x148dce(0x126))/0x8*(-parseInt(_0x148dce(0x133))/0x9)+-parseInt(_0x148dce(0x13a))/0xa;if(_0x1140d6===_0x5a194a)break;else _0x56598a['push'](_0x56598a['shift']());}catch(_0x90e441){_0x56598a['push'](_0x56598a['shift']());}}}(_0xbad9,0x3e20c));import{AIInteraction as _0x4b5754,AI_MODEL_EVENT_NAMES as _0x55fd35}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x5d94ce}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x342a6a}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x4b5754{[_0x230046(0x121)];[_0x230046(0x12d)];[_0x230046(0x128)];[_0x230046(0x12b)];[_0x230046(0x135)];[_0x230046(0x139)];[_0x230046(0x13c)]=!0x1;constructor(_0x4c259a){const _0x3e9b39=_0x230046;super(_0x4c259a),this[_0x3e9b39(0x121)]=_0x4c259a[_0x3e9b39(0x121)],this[_0x3e9b39(0x12d)]=_0x4c259a[_0x3e9b39(0x12d)],this[_0x3e9b39(0x128)]=_0x4c259a[_0x3e9b39(0x128)],this[_0x3e9b39(0x12b)]=_0x4c259a[_0x3e9b39(0x12b)],this[_0x3e9b39(0x135)]=_0x4c259a[_0x3e9b39(0x135)],this[_0x3e9b39(0x139)]=_0x4c259a[_0x3e9b39(0x139)];}async[_0x230046(0x12a)](){const _0x3cb1a8=_0x230046;return this[_0x3cb1a8(0x128)]?this[_0x3cb1a8(0x122)][_0x3cb1a8(0x124)]({'content':this[_0x3cb1a8(0x121)],'actionName':this[_0x3cb1a8(0x128)],'args':this[_0x3cb1a8(0x12b)]}):this[_0x3cb1a8(0x122)][_0x3cb1a8(0x13b)]({'content':this[_0x3cb1a8(0x121)],'message':this[_0x3cb1a8(0x135)],'model':this[_0x3cb1a8(0x139)],'outputFormat':_0x3cb1a8(0x138)});}[_0x230046(0x125)](){const _0x1b2271=_0x230046;return{'type':_0x5d94ce[_0x1b2271(0x137)],'content':this[_0x1b2271(0x121)],'version':this[_0x1b2271(0x12d)],'label':_0x1b2271(0x12c),'uiId':_0x1b2271(0x13d)};}[_0x230046(0x120)](_0x4e5424){const _0x49c635=_0x230046,_0x775ef2=new _0x342a6a({'editor':this[_0x49c635(0x134)],'documentContextContent':this[_0x49c635(0x121)],..._0x4e5424});return this[_0x49c635(0x129)][_0x49c635(0x12f)](_0x775ef2),_0x775ef2[_0x49c635(0x11e)](..._0x55fd35)['to'](this),this[_0x49c635(0x136)](_0x49c635(0x131),_0x775ef2),_0x775ef2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4300(_0xd636ae,_0x5c05ef){const _0x3f3f8e=_0x3f3f();return _0x4300=function(_0x430028,_0x3917fc){_0x430028=_0x430028-0x129;let _0x493e82=_0x3f3f8e[_0x430028];return _0x493e82;},_0x4300(_0xd636ae,_0x5c05ef);}const _0x38aa4b=_0x4300;(function(_0x1ed2be,_0x419a6f){const _0xecbf0d=_0x4300,_0x18675b=_0x1ed2be();while(!![]){try{const _0x48062e=parseInt(_0xecbf0d(0x13e))/0x1+-parseInt(_0xecbf0d(0x139))/0x2+-parseInt(_0xecbf0d(0x142))/0x3*(parseInt(_0xecbf0d(0x131))/0x4)+parseInt(_0xecbf0d(0x13d))/0x5*(parseInt(_0xecbf0d(0x132))/0x6)+-parseInt(_0xecbf0d(0x13c))/0x7+-parseInt(_0xecbf0d(0x13a))/0x8+-parseInt(_0xecbf0d(0x12b))/0x9*(-parseInt(_0xecbf0d(0x144))/0xa);if(_0x48062e===_0x419a6f)break;else _0x18675b['push'](_0x18675b['shift']());}catch(_0x383a66){_0x18675b['push'](_0x18675b['shift']());}}}(_0x3f3f,0x2d0ab));import{AIReply as _0x5963c7}from'../../aicore/model/aireply.js';function _0x3f3f(){const _0x4f23bd=['updateChangeGroups','_getDifferentChangeGroups','modified','1556415mcsuab','childNodes','new','isDone','length','map','168NfBpcx','147516GwTIDq','cloneNode','documentContextContent','removed','node','data-id','pending','516742NcMiyn','439168teegiG','children','1069348ojDKip','10iYCCHn','299349ILbWoH','pop','value','parsedMergedContent','15486dMVKML','parsedContent','30yjkcoj','added','changeGroups'];_0x3f3f=function(){return _0x4f23bd;};return _0x3f3f();}import{getAttribute as _0x3e805e}from'../../aicore/utils/htmlparser.js';import{uid as _0x2b5d82}from'ckeditor5/src/utils.js';import{diffArrays as _0x10781f}from'diff';export class AIActionsReply extends _0x5963c7{[_0x38aa4b(0x147)](){const _0x22fe63=_0x38aa4b;if(this[_0x22fe63(0x141)]=this[_0x22fe63(0x143)][_0x22fe63(0x133)](!0x0),0x0==this[_0x22fe63(0x141)][_0x22fe63(0x12c)][_0x22fe63(0x12f)])return void(this[_0x22fe63(0x146)]=[]);const _0x25fb38=this[_0x22fe63(0x134)][_0x22fe63(0x13b)][_0x22fe63(0x130)](_0x35b542=>({'node':_0x35b542,'id':_0x3e805e(_0x35b542,_0x22fe63(0x137))})),_0x5e8859=this[_0x22fe63(0x141)][_0x22fe63(0x13b)][_0x22fe63(0x130)](_0x5d7a39=>({'node':_0x5d7a39,'id':_0x3e805e(_0x5d7a39,_0x22fe63(0x137))||_0x2b5d82()})),_0x58db29=_0x10781f(_0x25fb38,_0x5e8859,{'comparator':(_0x248afd,_0xbb4793)=>_0x248afd['id']==_0xbb4793['id'],'oneChangePerToken':!0x0});if(!this[_0x22fe63(0x12e)]){for(;_0x58db29[_0x22fe63(0x12f)]&&_0x58db29[_0x58db29[_0x22fe63(0x12f)]-0x1][_0x22fe63(0x135)];)_0x58db29[_0x22fe63(0x13f)]();}const _0x3c416e=_0x58db29[_0x22fe63(0x130)](_0x4e6b18=>{const _0x19490d=_0x22fe63,_0x4f4173=_0x4e6b18[_0x19490d(0x145)]?_0x19490d(0x12d):_0x4e6b18[_0x19490d(0x135)]?_0x19490d(0x135):_0x19490d(0x12a);return{'node':_0x4e6b18[_0x19490d(0x140)][0x0][_0x19490d(0x136)],'type':_0x4f4173,'id':_0x4e6b18[_0x19490d(0x140)][0x0]['id']};});this[_0x22fe63(0x146)]=[{'changes':_0x3c416e,'state':_0x22fe63(0x138),'index':0x0}];}[_0x38aa4b(0x129)](_0x473b28,_0x8cddc9){return _0x8cddc9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22bf84=_0x154a;function _0xf4d0(){var _0x21bd6e=['1CPsVCH','622728kHoqOl','AIRequestError','afterInit','isOfficialPlugin','AIAdapter','50305qLFLnQ','aiadapter-text-adapter-not-set','name','20272JIybTW','646706HrSSwM','2773935uKYhtC','10937620FbGNIf','1024pJYwsV','pluginName','textAdapter','isPremiumPlugin','36ZONfoM','1457576YOCRvO'];_0xf4d0=function(){return _0x21bd6e;};return _0xf4d0();}(function(_0x267c47,_0x5d294d){var _0x2e8224=_0x154a,_0x505e5f=_0x267c47();while(!![]){try{var _0x5e40a6=-parseInt(_0x2e8224(0xd6))/0x1*(parseInt(_0x2e8224(0xcd))/0x2)+-parseInt(_0x2e8224(0xd7))/0x3+parseInt(_0x2e8224(0xd5))/0x4+parseInt(_0x2e8224(0xc9))/0x5*(-parseInt(_0x2e8224(0xd4))/0x6)+-parseInt(_0x2e8224(0xcc))/0x7*(parseInt(_0x2e8224(0xd0))/0x8)+-parseInt(_0x2e8224(0xce))/0x9+parseInt(_0x2e8224(0xcf))/0xa;if(_0x5e40a6===_0x5d294d)break;else _0x505e5f['push'](_0x505e5f['shift']());}catch(_0x2dccaa){_0x505e5f['push'](_0x505e5f['shift']());}}}(_0xf4d0,0x2de36));import{Plugin as _0x1e5ba3}from'ckeditor5/src/core.js';function _0x154a(_0x57c361,_0x366231){var _0xf4d07f=_0xf4d0();return _0x154a=function(_0x154a44,_0x5b3ac2){_0x154a44=_0x154a44-0xc9;var _0x27b082=_0xf4d07f[_0x154a44];return _0x27b082;},_0x154a(_0x57c361,_0x366231);}import{CKEditorError as _0x46a2c0}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x1e5ba3{static get[_0x22bf84(0xd1)](){var _0x440b43=_0x22bf84;return _0x440b43(0xdb);}static get[_0x22bf84(0xda)](){return!0x0;}static get[_0x22bf84(0xd3)](){return!0x0;}[_0x22bf84(0xd9)](){var _0x3969d6=_0x22bf84;if(!this[_0x3969d6(0xd2)])throw new _0x46a2c0(_0x3969d6(0xca),null);}}export class AIRequestError extends Error{constructor(_0x4aecf9){var _0x43245c=_0x22bf84;super(_0x4aecf9),this[_0x43245c(0xcb)]=_0x43245c(0xd8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xdce89b=_0x42e0;(function(_0x3bcb39,_0x5a148b){const _0x324200=_0x42e0,_0x430982=_0x3bcb39();while(!![]){try{const _0x435bd5=parseInt(_0x324200(0xac))/0x1+parseInt(_0x324200(0xa3))/0x2+parseInt(_0x324200(0xab))/0x3+parseInt(_0x324200(0xb4))/0x4+-parseInt(_0x324200(0xb8))/0x5*(parseInt(_0x324200(0xb7))/0x6)+-parseInt(_0x324200(0xbe))/0x7*(parseInt(_0x324200(0xad))/0x8)+-parseInt(_0x324200(0xb6))/0x9*(-parseInt(_0x324200(0xb0))/0xa);if(_0x435bd5===_0x5a148b)break;else _0x430982['push'](_0x430982['shift']());}catch(_0x5a5054){_0x430982['push'](_0x430982['shift']());}}}(_0x5a2c,0xe3ea2));function _0x5a2c(){const _0x2df20d=['18114mIEBds','10RKRINn','catch','aitextadapter-send-request-failed','makeRequest','name','error','123676bRjyVn','assign','AI_ERROR_GET_HEADERS','requires','object','_prepareRequestParameters','editor','sendRequest','abort','resolve','1051266jHjNjp','_prepareRequestHeaders','abortController','application/json','locale','aborted','textAdapter','plugins','857907CWyMDS','1051082xBbuCs','760gVwGBq','reject','AbortError','70vVsymA','signal','get','AI_ERROR_GET_PARAMETERS','2930744EfsTmk','init','29142FkEAWC'];_0x5a2c=function(){return _0x2df20d;};return _0x5a2c();}function _0x42e0(_0x593f97,_0xf89c17){const _0x5a2cb9=_0x5a2c();return _0x42e0=function(_0x42e0c6,_0x468828){_0x42e0c6=_0x42e0c6-0xa1;let _0x27734b=_0x5a2cb9[_0x42e0c6];return _0x27734b;},_0x42e0(_0x593f97,_0xf89c17);}import{Plugin as _0x57c6bc}from'ckeditor5/src/core.js';import{CKEditorError as _0x4c9378}from'ckeditor5/src/utils.js';import{AIAdapter as _0x59397a,AIRequestError as _0x322aac}from'./aiadapter.js';import{getTranslation as _0x2b3a3b}from'../utils/common-translations.js';export class AITextAdapter extends _0x57c6bc{[_0xdce89b(0xa5)];static get[_0xdce89b(0xc1)](){return[_0x59397a];}constructor(_0x2fadf0){const _0x21e83a=_0xdce89b;super(_0x2fadf0),this[_0x21e83a(0xa5)]=new AbortController();}[_0xdce89b(0xb5)](){const _0x1b2f08=_0xdce89b;this[_0x1b2f08(0xc4)][_0x1b2f08(0xaa)][_0x1b2f08(0xb2)](_0x59397a)[_0x1b2f08(0xa9)]=this;}[_0xdce89b(0xa1)](){const _0x487df8=_0xdce89b;this[_0x487df8(0xa5)][_0x487df8(0xb1)][_0x487df8(0xa8)]||(this[_0x487df8(0xa5)][_0x487df8(0xa1)](),this[_0x487df8(0xa5)]=new AbortController());}async[_0xdce89b(0xbb)](_0x5b8338){const _0x22dbc8=_0xdce89b;return this[_0x22dbc8(0xc5)](_0x5b8338)[_0x22dbc8(0xb9)](_0x3a49ea=>{const _0x673543=_0x22dbc8;if(_0x3a49ea instanceof _0x322aac)return Promise[_0x673543(0xae)](_0x3a49ea);if(_0x673543(0xaf)==_0x3a49ea[_0x673543(0xbc)])return Promise[_0x673543(0xa2)]();throw console[_0x673543(0xbd)](_0x3a49ea),new _0x4c9378(_0x673543(0xba),null);});}async[_0xdce89b(0xa4)](_0xb6221,_0x532654){const _0x3067b8=_0xdce89b,_0x2093a0=this[_0x3067b8(0xc4)][_0x3067b8(0xa7)],_0x15d93d={'Content-Type':_0x3067b8(0xa6)};if(_0x3067b8(0xc2)==typeof _0xb6221)Object[_0x3067b8(0xbf)](_0x15d93d,_0xb6221);else{if(_0xb6221)try{const _0x280671=await _0xb6221(_0x532654);Object[_0x3067b8(0xbf)](_0x15d93d,_0x280671);}catch{return Promise[_0x3067b8(0xae)](new _0x322aac(_0x2b3a3b(_0x2093a0,_0x3067b8(0xc0))));}}return _0x15d93d;}async[_0xdce89b(0xc3)](_0x5a6c13,_0x5099fb){const _0x13a6ec=_0xdce89b,_0x5bc6da=this[_0x13a6ec(0xc4)][_0x13a6ec(0xa7)];if(_0x13a6ec(0xc2)==typeof _0x5a6c13)return _0x5a6c13;try{return await _0x5a6c13(_0x5099fb);}catch{return Promise[_0x13a6ec(0xae)](new _0x322aac(_0x2b3a3b(_0x5bc6da,_0x13a6ec(0xb3))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5a48(_0x14a817,_0x3122c2){const _0x571689=_0x5716();return _0x5a48=function(_0x5a4804,_0x2c58b7){_0x5a4804=_0x5a4804-0x14a;let _0x48e386=_0x571689[_0x5a4804];return _0x48e386;},_0x5a48(_0x14a817,_0x3122c2);}const _0x19808b=_0x5a48;(function(_0x5e1304,_0x4ddcbe){const _0x4c613c=_0x5a48,_0x2d8a16=_0x5e1304();while(!![]){try{const _0x3936b5=-parseInt(_0x4c613c(0x150))/0x1*(parseInt(_0x4c613c(0x199))/0x2)+-parseInt(_0x4c613c(0x157))/0x3*(-parseInt(_0x4c613c(0x166))/0x4)+parseInt(_0x4c613c(0x18d))/0x5*(-parseInt(_0x4c613c(0x16d))/0x6)+-parseInt(_0x4c613c(0x153))/0x7*(parseInt(_0x4c613c(0x174))/0x8)+parseInt(_0x4c613c(0x15b))/0x9+-parseInt(_0x4c613c(0x17b))/0xa*(parseInt(_0x4c613c(0x178))/0xb)+parseInt(_0x4c613c(0x194))/0xc*(parseInt(_0x4c613c(0x158))/0xd);if(_0x3936b5===_0x4ddcbe)break;else _0x2d8a16['push'](_0x2d8a16['shift']());}catch(_0x288163){_0x2d8a16['push'](_0x2d8a16['shift']());}}}(_0x5716,0x98dd9));import{AITextAdapter as _0x2b04ce}from'./aitextadapter.js';import{AIRequestError as _0x423748}from'./aiadapter.js';import{BedrockRuntimeClient as _0x7b4f3c,InvokeModelCommand as _0x46079a,InvokeModelWithResponseStreamCommand as _0x21a28a}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x513620}from'../utils/common-translations.js';function _0x5716(){const _0x4ed0ba=['completions','generation','bytes','\x0a[/INST]','ai.assistant.adapter.aws.requestParameters','join','911118XZVwiB','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.','data','filter','getReader','text','2709344BPBVce','signal','<<SYS>>\x0a','_apiUrl','1168486NvGrPy','anthropic.claude','chunk','10umPaVf','get','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.','_requestHeaders','bedrock-2023-05-31','ai.assistant.adapter.aws.bedrockClientConfig','anthropic.claude-v2','test','_getGeneratedText','_processProxyRequest','\x0a<</SYS>>\x0a[INST]\x0a','ai.assistant.adapter.aws.requestHeaders','ai21.j2','pluginName','utf-8','completion','length','abortController','10mRvyYj','editor','_readStaticResponse','resolve','preparePrompt','generations','meta.llama','204XUIFTP','\x0a\x0aAssistant:','_prepareRequestParameters','Human:\x0a','stringify','4OcLGTM','locale','AWSTextAdapter','_readStreamableResponse','getModelFamily','define','ai.assistant.adapter.aws.apiUrl','AI_ERROR_UNSUPPORTED_MODEL','read','map','383406iLOhqm','application/json','cohere.command','7FFMlbb','sendRequest','_processAWSRequest','_prepareRequestHeaders','1018341uLRnGv','1256372sKAyJg','POST','_readAsyncIterableResponse','1432386eQElLW','json','_requestParameters','split','parse','Instruction:\x0a','send','config','body','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_bedrockClientConfig','4JRdJTY'];_0x5716=function(){return _0x4ed0ba;};return _0x5716();}export class AWSTextAdapter extends _0x2b04ce{[_0x19808b(0x177)];[_0x19808b(0x17e)];[_0x19808b(0x165)];[_0x19808b(0x15d)];static get[_0x19808b(0x188)](){const _0x11ec68=_0x19808b;return _0x11ec68(0x19b);}constructor(_0x25d0db){const _0x129e35=_0x19808b;super(_0x25d0db),_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x16b))||_0x25d0db[_0x129e35(0x162)][_0x129e35(0x14b)](_0x129e35(0x16b),{'model':_0x129e35(0x181),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x129e35(0x17f),'stream':!0x0}),this[_0x129e35(0x177)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x14c)),this[_0x129e35(0x165)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x180)),this[_0x129e35(0x17e)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x186)),this[_0x129e35(0x15d)]=_0x25d0db[_0x129e35(0x162)][_0x129e35(0x17c)](_0x129e35(0x16b));}async[_0x19808b(0x154)]({query:_0x2036f1,context:_0x3eb9a6,onData:_0x1816fa,actionId:_0x4418b7}){const _0x420755=_0x19808b,{model:_0x3642db,stream:_0x2b0a52,..._0x57f7aa}=await this[_0x420755(0x196)](this[_0x420755(0x15d)],_0x4418b7),_0xe71335={'prompt':await this[_0x420755(0x191)](_0x2036f1,_0x3eb9a6,_0x3642db,_0x4418b7),..._0x57f7aa};this[_0x420755(0x177)]?await this[_0x420755(0x184)](_0xe71335,_0x3642db,_0x2b0a52,_0x1816fa,_0x4418b7):await this[_0x420755(0x155)](_0xe71335,_0x3642db,_0x2b0a52,_0x1816fa);}async[_0x19808b(0x191)](_0xeef00a,_0x4488f2,_0x4ba6e9,_0x42f477){const _0x159ca3=_0x19808b;let _0x6ef2ed,_0x94e5d3;return _0x4488f2?(_0x6ef2ed=_0x159ca3(0x17d),_0x94e5d3=_0x159ca3(0x160)+_0xeef00a+_0x159ca3(0x164)+_0x4488f2):(_0x6ef2ed=_0x159ca3(0x16f),_0x94e5d3=_0xeef00a),_0x159ca3(0x193)==this[_0x159ca3(0x14a)](_0x4ba6e9)?_0x159ca3(0x176)+_0x6ef2ed+_0x159ca3(0x185)+_0x94e5d3+_0x159ca3(0x16a):_0x159ca3(0x197)+_0x6ef2ed+'\x0a'+_0x94e5d3+_0x159ca3(0x195);}[_0x19808b(0x14a)](_0x5462e1){const _0x35cc90=_0x19808b;if(/^anthropic\.claude/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x179);if(/^ai21\.j2/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x187);if(/^cohere\.command/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x152);if(/^meta\.llama/[_0x35cc90(0x182)](_0x5462e1))return _0x35cc90(0x193);throw new _0x423748(_0x513620(this[_0x35cc90(0x18e)][_0x35cc90(0x19a)],_0x35cc90(0x14d),_0x5462e1));}async[_0x19808b(0x184)](_0x3cf482,_0x68a245,_0x117182,_0x4be4ed,_0x1f9bc8){const _0x552b7b=_0x19808b,_0x3aee53={'method':_0x552b7b(0x159),'headers':await this[_0x552b7b(0x156)](this[_0x552b7b(0x17e)],_0x1f9bc8),'body':JSON[_0x552b7b(0x198)]({..._0x3cf482,'model':_0x68a245,'stream':_0x117182}),'signal':this[_0x552b7b(0x18c)][_0x552b7b(0x175)]},_0x497d70=await fetch(this[_0x552b7b(0x177)],_0x3aee53);_0x117182?await this[_0x552b7b(0x19c)](_0x497d70,_0x68a245,_0x4be4ed):await this[_0x552b7b(0x18f)](_0x497d70,_0x68a245,_0x4be4ed);}async[_0x19808b(0x155)](_0x350ce0,_0x16a6fd,_0x36139b,_0x552fbe){const _0xc51fd7=_0x19808b,_0x37e262=new _0x7b4f3c(this[_0xc51fd7(0x165)]),_0x155711={'body':JSON[_0xc51fd7(0x198)](_0x350ce0),'contentType':_0xc51fd7(0x151),'accept':_0xc51fd7(0x151),'modelId':_0x16a6fd};let _0x2ac2c5;if(_0x36139b){const _0x2d3764=new _0x21a28a(_0x155711);_0x2ac2c5=await _0x37e262[_0xc51fd7(0x161)](_0x2d3764,{'abortSignal':this[_0xc51fd7(0x18c)][_0xc51fd7(0x175)]}),await this[_0xc51fd7(0x15a)](_0x2ac2c5,_0x16a6fd,_0x552fbe);}else{const _0x324a80=new _0x46079a(_0x155711);_0x2ac2c5=await _0x37e262[_0xc51fd7(0x161)](_0x324a80,{'abortSignal':this[_0xc51fd7(0x18c)][_0xc51fd7(0x175)]}),await this[_0xc51fd7(0x18f)](_0x2ac2c5,_0x16a6fd,_0x552fbe);}}async[_0x19808b(0x15a)](_0x2cf546,_0x8b7e51,_0x2bb76a){const _0x2ee7a1=_0x19808b,_0x33582f=_0x2cf546[_0x2ee7a1(0x163)],_0x485449=new TextDecoder(_0x2ee7a1(0x189));let _0x1d2c53='';for await(const _0x4b3385 of _0x33582f)if(_0x4b3385[_0x2ee7a1(0x17a)]){const _0x5e8770=_0x485449[_0x2ee7a1(0x16e)](_0x4b3385[_0x2ee7a1(0x17a)][_0x2ee7a1(0x169)]),_0x3d3b7a=JSON[_0x2ee7a1(0x15f)](_0x5e8770);_0x1d2c53+=this[_0x2ee7a1(0x183)](_0x3d3b7a,_0x8b7e51),_0x2bb76a(_0x1d2c53);}return Promise[_0x2ee7a1(0x190)]();}async[_0x19808b(0x19c)](_0x4e3216,_0x4194f6,_0x365f7c){const _0x5237b0=_0x19808b,_0xa5916b=_0x4e3216[_0x5237b0(0x163)],_0xa104f4=new TextDecoder(_0x5237b0(0x189)),_0x307f96=_0xa5916b[_0x5237b0(0x172)]();let _0x2517aa='',_0x2a9017='',_0x420da0=!0x1;for(;!_0x420da0;){const {done:_0x2c77e1,value:_0x19017b}=await _0x307f96[_0x5237b0(0x14e)]();if(_0x420da0=_0x2c77e1,_0x420da0)break;const _0x3cd206=(_0x2517aa+_0xa104f4[_0x5237b0(0x16e)](_0x19017b))[_0x5237b0(0x15e)]('\x0a')[_0x5237b0(0x14f)](_0x419c41=>{const _0x5bbf3d=_0x5237b0;try{return _0x2517aa='',JSON[_0x5bbf3d(0x15f)](_0x419c41);}catch{return _0x2517aa=_0x419c41,null;}})[_0x5237b0(0x171)](_0x3ec811=>null!==_0x3ec811);_0x3cd206[_0x5237b0(0x18b)]&&(_0x2a9017+=_0x3cd206[_0x5237b0(0x14f)](_0x356bea=>this[_0x5237b0(0x183)](_0x356bea,_0x4194f6))[_0x5237b0(0x16c)](''),_0x365f7c(_0x2a9017));}return Promise[_0x5237b0(0x190)]();}async[_0x19808b(0x18f)](_0x35fed6,_0x11b798,_0x55a697){const _0x4c2a51=_0x19808b;let _0x4a80ed;return _0x4a80ed=_0x35fed6 instanceof Response?await _0x35fed6[_0x4c2a51(0x15c)]():JSON[_0x4c2a51(0x15f)](new TextDecoder(_0x4c2a51(0x189))[_0x4c2a51(0x16e)](_0x35fed6[_0x4c2a51(0x163)])),(_0x55a697(this[_0x4c2a51(0x183)](_0x4a80ed,_0x11b798)),Promise[_0x4c2a51(0x190)]());}[_0x19808b(0x183)](_0x47d048,_0x189cac){const _0x2de83c=_0x19808b;switch(this[_0x2de83c(0x14a)](_0x189cac)){case _0x2de83c(0x179):return _0x47d048[_0x2de83c(0x18a)];case _0x2de83c(0x187):return _0x47d048[_0x2de83c(0x167)][0x0][_0x2de83c(0x170)][_0x2de83c(0x173)];case _0x2de83c(0x152):return _0x47d048[_0x2de83c(0x192)][0x0][_0x2de83c(0x173)];case _0x2de83c(0x193):return _0x47d048[_0x2de83c(0x168)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5ac1(){const _0x3fb723=['47221cuFYKd','20PHpkcN','ai.assistant.adapter.openAI.requestHeaders','get','Moderation','map','AI_ERROR_CONTEXT_LENGTH','8553094VbTxLs','length','decode','context_length_exceeded','stream','signal','gpt-4o','AI_ERROR_MODERATION','_prepareRequestHeaders','36kobSpV','define','pluginName','_readStaticResponse','system','content','join','stringify','40IfGZqA','editor','read','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.','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.','text','OpenAITextAdapter','367871OefoWL','12vbcvtH','replace','locale','_isBufferIncomplete','50682rExNvi','[DONE]','resolve','split','ai.assistant.adapter.openAI.apiUrl','sendRequest','message','filter','600290vpVtli','POST','_prepareRequestParameters','body','296748zqmTNW','user','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','1549450DImFZb','json','getReader','_requestHeaders','delta','data:\x20','abortController','Instruction:\x0a','_apiUrl','config','includes','reject','_readStreamableResponse','choices','_cleanUpData','parse','prepareMessages','_requestParameters','https://api.openai.com/v1/chat/completions'];_0x5ac1=function(){return _0x3fb723;};return _0x5ac1();}const _0x5694c3=_0x1b9c;(function(_0x533985,_0x4e3e6b){const _0x4de1cd=_0x1b9c,_0x5e6bb7=_0x533985();while(!![]){try{const _0x4c3a1b=-parseInt(_0x4de1cd(0x204))/0x1*(parseInt(_0x4de1cd(0x225))/0x2)+-parseInt(_0x4de1cd(0x1e2))/0x3*(parseInt(_0x4de1cd(0x205))/0x4)+parseInt(_0x4de1cd(0x1f1))/0x5+-parseInt(_0x4de1cd(0x1ee))/0x6+-parseInt(_0x4de1cd(0x224))/0x7*(parseInt(_0x4de1cd(0x21c))/0x8)+parseInt(_0x4de1cd(0x214))/0x9*(-parseInt(_0x4de1cd(0x1ea))/0xa)+parseInt(_0x4de1cd(0x20b))/0xb;if(_0x4c3a1b===_0x4e3e6b)break;else _0x5e6bb7['push'](_0x5e6bb7['shift']());}catch(_0x441092){_0x5e6bb7['push'](_0x5e6bb7['shift']());}}}(_0x5ac1,0x28d8d));import{AITextAdapter as _0x1fab09}from'./aitextadapter.js';import{AIRequestError as _0x3de559}from'./aiadapter.js';import{getTranslation as _0x4ab413}from'../utils/common-translations.js';function _0x1b9c(_0x47277c,_0x1649cf){const _0x5ac1fa=_0x5ac1();return _0x1b9c=function(_0x1b9c88,_0x318db3){_0x1b9c88=_0x1b9c88-0x1e2;let _0x5c7250=_0x5ac1fa[_0x1b9c88];return _0x5c7250;},_0x1b9c(_0x47277c,_0x1649cf);}export class OpenAITextAdapter extends _0x1fab09{[_0x5694c3(0x1f9)];[_0x5694c3(0x1f4)];[_0x5694c3(0x202)];static get[_0x5694c3(0x216)](){const _0x5303b4=_0x5694c3;return _0x5303b4(0x223);}constructor(_0x5da6a){const _0x34cde9=_0x5694c3;super(_0x5da6a),_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x215)](_0x34cde9(0x1e6),_0x34cde9(0x203)),_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x21f))||_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x215)](_0x34cde9(0x21f),{'model':_0x34cde9(0x211),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x34cde9(0x1f9)]=_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x1e6)),this[_0x34cde9(0x1f4)]=_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x206))||{},this[_0x34cde9(0x202)]=_0x5da6a[_0x34cde9(0x1fa)][_0x34cde9(0x207)](_0x34cde9(0x21f));}async[_0x5694c3(0x1e7)]({query:_0x540cd7,context:_0x1b716c,onData:_0x2974a6,actionId:_0x32871d}){const _0x5acd6e=_0x5694c3,_0x550e53=this[_0x5acd6e(0x21d)][_0x5acd6e(0x227)],_0x2d6a82=await this[_0x5acd6e(0x201)](_0x540cd7,_0x1b716c,_0x32871d),_0x4d0755=await this[_0x5acd6e(0x213)](this[_0x5acd6e(0x1f4)],_0x32871d),_0x169cb4=await this[_0x5acd6e(0x1ec)](this[_0x5acd6e(0x202)],_0x32871d),_0x5501da={'messages':_0x2d6a82,..._0x169cb4},_0x2d01a7={'method':_0x5acd6e(0x1eb),'headers':_0x4d0755,'body':JSON[_0x5acd6e(0x21b)](_0x5501da),'signal':this[_0x5acd6e(0x1f7)][_0x5acd6e(0x210)]},_0x26e937=await fetch(this[_0x5acd6e(0x1f9)],_0x2d01a7);if(_0x26e937['ok'])return _0x169cb4[_0x5acd6e(0x20f)]?await this[_0x5acd6e(0x1fd)](_0x26e937,_0x2974a6):await this[_0x5acd6e(0x217)](_0x26e937,_0x2974a6),Promise[_0x5acd6e(0x1e4)]();{const _0x5c04d5=await _0x26e937[_0x5acd6e(0x222)]();return _0x5c04d5[_0x5acd6e(0x1fb)](_0x5acd6e(0x20e))?Promise[_0x5acd6e(0x1fc)](new _0x3de559(_0x4ab413(_0x550e53,_0x5acd6e(0x20a)))):_0x5c04d5[_0x5acd6e(0x1fb)](_0x5acd6e(0x208))?Promise[_0x5acd6e(0x1fc)](new _0x3de559(_0x4ab413(_0x550e53,_0x5acd6e(0x212)))):Promise[_0x5acd6e(0x1fc)](new Error(_0x5c04d5));}}async[_0x5694c3(0x201)](_0x5ea9a9,_0x428ea4,_0x4c24ea){const _0x3d6e9d=_0x5694c3;let _0x383261,_0x448a48;return _0x428ea4?(_0x383261=_0x3d6e9d(0x220),_0x448a48=_0x3d6e9d(0x1f8)+_0x5ea9a9+_0x3d6e9d(0x1f0)+_0x428ea4):(_0x383261=_0x3d6e9d(0x221),_0x448a48=_0x5ea9a9),[{'role':_0x3d6e9d(0x218),'content':_0x383261},{'role':_0x3d6e9d(0x1ef),'content':_0x448a48}];}async[_0x5694c3(0x1fd)](_0x36db1f,_0xb9d4f7){const _0x568ee2=_0x5694c3,_0x1ce7d5=_0x36db1f[_0x568ee2(0x1ed)][_0x568ee2(0x1f3)](),_0x36a5b0=new TextDecoder();let _0x37ff21='',_0x547a20='',_0x14f884='',_0x2c33fe=!0x1;for(;!_0x2c33fe;){const {done:_0x447d4a,value:_0x22902a}=await _0x1ce7d5[_0x568ee2(0x21e)](),_0x4ed866=_0x37ff21+_0x36a5b0[_0x568ee2(0x20d)](_0x22902a);let _0x49104d='';_0x2c33fe=_0x447d4a;try{_0x49104d=this[_0x568ee2(0x1ff)](_0x4ed866),_0x37ff21='';}catch{_0x37ff21=_0x4ed866;continue;}_0x547a20+=_0x49104d,!_0x2c33fe&&this[_0x568ee2(0x228)](_0x547a20)||_0x547a20&&(_0x14f884+=_0x547a20,_0x547a20='',_0xb9d4f7(_0x14f884));}return Promise[_0x568ee2(0x1e4)]();}async[_0x5694c3(0x217)](_0x1642c7,_0x36509b){const _0x26b2b1=_0x5694c3;return _0x36509b((await _0x1642c7[_0x26b2b1(0x1f2)]())[_0x26b2b1(0x1fe)][0x0][_0x26b2b1(0x1e8)][_0x26b2b1(0x219)]),Promise[_0x26b2b1(0x1e4)]();}[_0x5694c3(0x228)](_0x163884){const _0x560a33=_0x5694c3,_0x143ac4=_0x163884[_0x560a33(0x1e5)]('<')[_0x560a33(0x20c)]!==_0x163884[_0x560a33(0x1e5)]('>')[_0x560a33(0x20c)],_0x4cd6cb=_0x163884[_0x560a33(0x20c)]<0x1e;return _0x143ac4&&_0x4cd6cb;}[_0x5694c3(0x1ff)](_0x101a99){const _0x2fb86c=_0x5694c3;return _0x101a99[_0x2fb86c(0x1e5)](/\n(?![^{]*\})/g)[_0x2fb86c(0x209)](_0x1b05fc=>_0x1b05fc[_0x2fb86c(0x226)](_0x2fb86c(0x1f6),''))[_0x2fb86c(0x1e9)](_0x3af25a=>_0x3af25a&&_0x3af25a[_0x2fb86c(0x20c)]>0x0&&_0x2fb86c(0x1e3)!==_0x3af25a)[_0x2fb86c(0x209)](_0x22eb7c=>{const _0x5ee901=_0x2fb86c,{choices:_0x347c5b}=JSON[_0x5ee901(0x200)](_0x22eb7c);if(_0x347c5b[0x0]?.[_0x5ee901(0x1f5)]?.[_0x5ee901(0x219)])return _0x347c5b[0x0][_0x5ee901(0x1f5)][_0x5ee901(0x219)];})[_0x2fb86c(0x1e9)](_0x1dbc36=>_0x1dbc36)[_0x2fb86c(0x21a)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1595f9=_0x122b;(function(_0x9b7279,_0x43e1b6){const _0x3786ae=_0x122b,_0x3e1d37=_0x9b7279();while(!![]){try{const _0x3caf56=-parseInt(_0x3786ae(0x105))/0x1+-parseInt(_0x3786ae(0x102))/0x2+-parseInt(_0x3786ae(0xed))/0x3+-parseInt(_0x3786ae(0xe9))/0x4*(parseInt(_0x3786ae(0x117))/0x5)+-parseInt(_0x3786ae(0x11d))/0x6+parseInt(_0x3786ae(0x12b))/0x7+parseInt(_0x3786ae(0x11f))/0x8;if(_0x3caf56===_0x43e1b6)break;else _0x3e1d37['push'](_0x3e1d37['shift']());}catch(_0x4eade0){_0x3e1d37['push'](_0x3e1d37['shift']());}}}(_0x4260,0xe9fb7));import{Plugin as _0xacedaa}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x308d9d}from'./aiassistantui.js';import{AIAssistantEditing as _0x5729b4}from'./aiassistantediting.js';import{getTranslation as _0x48c0e4}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x2c1da7}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0xacedaa{static get[_0x1595f9(0x12f)](){return[_0x308d9d,_0x5729b4];}static get[_0x1595f9(0x126)](){const _0x3ff763=_0x1595f9;return _0x3ff763(0x134);}static get[_0x1595f9(0x10d)](){return!0x0;}static get[_0x1595f9(0x10e)](){return!0x0;}constructor(_0x469ecf){const _0x48bc3c=_0x1595f9;super(_0x469ecf);const _0x2093f6=_0x469ecf[_0x48bc3c(0x127)],_0x390a28=_0x469ecf[_0x48bc3c(0xfc)];_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0xd4),!0x0),_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0x133),getDefaultAICommands(_0x390a28)),_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0x11a),[]),_0x2093f6[_0x48bc3c(0xfb)](_0x48bc3c(0x13f),[]);let _0x1d82eb=_0x2c1da7(_0x2093f6[_0x48bc3c(0x10f)](_0x48bc3c(0x133)),_0x390a28);const _0x39c635=_0x2093f6[_0x48bc3c(0x10f)](_0x48bc3c(0x11a)),_0x355f5e=_0x2093f6[_0x48bc3c(0x10f)](_0x48bc3c(0x13f));_0x39c635[_0x48bc3c(0xf6)](_0x400e10=>{const _0x47e606=_0x48bc3c,_0x5748e=_0x1d82eb[_0x47e606(0x13c)](_0x45f949=>_0x45f949[_0x47e606(0x104)]===_0x400e10[_0x47e606(0x104)]);_0x5748e?_0x5748e[_0x47e606(0x13a)]=_0x5748e[_0x47e606(0x13a)][_0x47e606(0xd6)](_0x400e10[_0x47e606(0x13a)]):_0x1d82eb[_0x47e606(0x139)](_0x400e10);}),_0x1d82eb=_0x1d82eb[_0x48bc3c(0xe1)](_0x35ad5e=>!_0x355f5e[_0x48bc3c(0xe5)](_0x35ad5e[_0x48bc3c(0x104)])),_0x1d82eb[_0x48bc3c(0xf6)](_0x38cb67=>{const _0x2fce95=_0x48bc3c;_0x38cb67[_0x2fce95(0x13a)]=_0x38cb67[_0x2fce95(0x13a)][_0x2fce95(0xe1)](_0x962030=>!_0x355f5e[_0x2fce95(0xe5)](_0x962030['id']));}),_0x2093f6[_0x48bc3c(0xfd)](_0x48bc3c(0x133),_0x1d82eb);}}function _0x122b(_0x4527fa,_0x1d3c3a){const _0x426013=_0x4260();return _0x122b=function(_0x122bf8,_0x21e4ff){_0x122bf8=_0x122bf8-0xd3;let _0x28d19=_0x426013[_0x122bf8];return _0x28d19;},_0x122b(_0x4527fa,_0x1d3c3a);}export function getDefaultAICommands(_0x1469c1){const _0x350278=_0x1595f9;return[{'groupId':_0x350278(0x118),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xd9)),'commands':[{'id':_0x350278(0x100),'label':_0x48c0e4(_0x1469c1,_0x350278(0xe7)),'prompt':_0x350278(0xeb)},{'id':_0x350278(0x123),'label':_0x48c0e4(_0x1469c1,_0x350278(0xe8)),'prompt':_0x350278(0x137)},{'id':_0x350278(0x128),'label':_0x48c0e4(_0x1469c1,_0x350278(0x120)),'prompt':_0x350278(0xff)},{'id':_0x350278(0xec),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf5)),'prompt':_0x350278(0x10a)}]},{'groupId':_0x350278(0x122),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xfa)),'commands':[{'id':_0x350278(0x135),'label':_0x48c0e4(_0x1469c1,_0x350278(0x138)),'prompt':_0x350278(0x130)},{'id':_0x350278(0x12a),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf7)),'prompt':_0x350278(0x110)}]},{'groupId':_0x350278(0x111),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xef)),'commands':[{'id':_0x350278(0x132),'label':_0x48c0e4(_0x1469c1,_0x350278(0x119)),'prompt':_0x350278(0x116)},{'id':_0x350278(0x10c),'label':_0x48c0e4(_0x1469c1,_0x350278(0xd7)),'prompt':_0x350278(0xe2)},{'id':_0x350278(0x108),'label':_0x48c0e4(_0x1469c1,_0x350278(0xee)),'prompt':_0x350278(0x136)},{'id':_0x350278(0xf0),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf4)),'prompt':_0x350278(0xe3)},{'id':_0x350278(0x13e),'label':_0x48c0e4(_0x1469c1,_0x350278(0xde)),'prompt':_0x350278(0x115)}]},{'groupId':_0x350278(0xea),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xf9)),'commands':[{'id':_0x350278(0x11e),'label':_0x48c0e4(_0x1469c1,_0x350278(0x112)),'prompt':_0x350278(0xda)},{'id':_0x350278(0xe4),'label':_0x48c0e4(_0x1469c1,_0x350278(0x101)),'prompt':_0x350278(0x12c)},{'id':_0x350278(0x124),'label':_0x48c0e4(_0x1469c1,_0x350278(0xdd)),'prompt':_0x350278(0xe0)},{'id':_0x350278(0xdf),'label':_0x48c0e4(_0x1469c1,_0x350278(0x109)),'prompt':_0x350278(0xfe)}]},{'groupId':_0x350278(0xf2),'groupLabel':_0x48c0e4(_0x1469c1,_0x350278(0xd3)),'commands':[{'id':_0x350278(0xf8),'label':_0x48c0e4(_0x1469c1,_0x350278(0xe6)),'prompt':_0x350278(0x13d)},{'id':_0x350278(0x10b),'label':_0x48c0e4(_0x1469c1,_0x350278(0x131)),'prompt':_0x350278(0x103)},{'id':_0x350278(0x106),'label':_0x48c0e4(_0x1469c1,_0x350278(0x12e)),'prompt':_0x350278(0xd5)},{'id':_0x350278(0x107),'label':_0x48c0e4(_0x1469c1,_0x350278(0x121)),'prompt':_0x350278(0xf3)},{'id':_0x350278(0x129),'label':_0x48c0e4(_0x1469c1,_0x350278(0xf1)),'prompt':_0x350278(0x114)},{'id':_0x350278(0x113),'label':_0x48c0e4(_0x1469c1,_0x350278(0xdc)),'prompt':_0x350278(0xd8)},{'id':_0x350278(0x13b),'label':_0x48c0e4(_0x1469c1,_0x350278(0x11c)),'prompt':_0x350278(0xdb)},{'id':_0x350278(0x11b),'label':_0x48c0e4(_0x1469c1,_0x350278(0x125)),'prompt':_0x350278(0x12d)}]}];}function _0x4260(){const _0x440043=['Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Simplified\x20Chinese','Journalism','Friendly','poetic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','filter','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','legal','includes','English','Improve\x20writing','Make\x20shorter','234044CoMuiX','changeStyle','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','simplifyLanguage','1818924tMnKgb','Direct','Change\x20tone','confident','French','translate','Translate\x20the\x20content\x20to\x20German\x20language.','Confident','Simplify\x20language','forEach','Continue','translateEnglish','Change\x20style','Generate\x20from\x20selection','define','locale','set','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','improveWriting','Legal','3435810IoUJZD','Translate\x20the\x20content\x20to\x20Spanish\x20language.','groupId','147660eKMwNh','translatePortuguese','translateGerman','direct','Poetic','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','translateSpanish','casual','isOfficialPlugin','isPremiumPlugin','get','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','changeTone','Business','translateChinese','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','160zTyUIc','editOrReview','Professional','ai.assistant.extraCommandGroups','translateArabic','Hindi','7507986ujhRAZ','business','40576592alLGfC','Make\x20longer','German','generate','makeShorter','journalism','Arabic','pluginName','config','makeLonger','translateFrench','continue','10373111jzCelD','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Portuguese','requires','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Spanish','professional','ai.assistant.commands','AIAssistant','summarize','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Summarize','push','commands','translateHindi','find','Translate\x20the\x20content\x20to\x20English\x20language.','friendly','ai.assistant.removeCommands','Translate','ai.assistant.preserveComments','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','concat','Casual','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Edit\x20or\x20review'];_0x4260=function(){return _0x440043;};return _0x4260();}
|