@ckeditor/ckeditor5-ai 47.0.0-alpha.7 → 47.0.0-alpha.8
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 +93 -5
- package/dist/index.css +118 -5
- package/dist/index.js +4 -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/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +0 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -227
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -30
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -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 +47 -9
- package/src/aicore/aiconnector.d.ts +2 -3
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -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/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -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.d.ts +0 -49
- 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.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.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.d.ts +6 -16
- 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/index.js +1 -1
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aitrackchanges.css +13 -0
package/lang/translations/zh.po
CHANGED
|
@@ -834,3 +834,225 @@ msgstr "抱歉,無法正確產生完整的校閱內容。請稍後再試一次
|
|
|
834
834
|
msgctxt "The message displayed when an error occurs while processing a chunk of content in the AI review mode."
|
|
835
835
|
msgid "AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE"
|
|
836
836
|
msgstr "並非所有內容均已處理完畢,已完成的項目如下所列。"
|
|
837
|
+
|
|
838
|
+
msgctxt "The title of the AI review mode functionality."
|
|
839
|
+
msgid "AI_REVIEW_MODE"
|
|
840
|
+
msgstr "校閱模式"
|
|
841
|
+
|
|
842
|
+
msgctxt "The description of the AGENT-1 model."
|
|
843
|
+
msgid "AI_MODEL_DESCRIPTION_AGENT-1"
|
|
844
|
+
msgstr "自動選取兼顧速度、品質及成本效益的最佳模型"
|
|
845
|
+
|
|
846
|
+
msgctxt "The description of the GPT-5 model."
|
|
847
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-5"
|
|
848
|
+
msgstr "OpenAI 的旗艦模型,適用於進階推理、創意發想及複雜任務"
|
|
849
|
+
|
|
850
|
+
msgctxt "The description of the GPT-5-Mini model."
|
|
851
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-5-MINI"
|
|
852
|
+
msgstr "GPT-5 的輕量版,可提供更快速且更具成本效益的回應"
|
|
853
|
+
|
|
854
|
+
msgctxt "The description of the GPT-4.1 model."
|
|
855
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-4.1"
|
|
856
|
+
msgstr "OpenAI 的模型,具備可靠推理、速度及多樣用途"
|
|
857
|
+
|
|
858
|
+
msgctxt "The description of the GPT-4.1-Mini model."
|
|
859
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-4.1-MINI"
|
|
860
|
+
msgstr "GPT-4.1 的輕量版,可同時維持牢靠的準確度並兼顧速度與成本"
|
|
861
|
+
|
|
862
|
+
msgctxt "The description of the Claude-3-5-Haiku model."
|
|
863
|
+
msgid "AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU"
|
|
864
|
+
msgstr "Anthropic 快速且具成本效益的模型,適用於較簡單的任務"
|
|
865
|
+
|
|
866
|
+
msgctxt "The description of the Claude-4-Sonnet model."
|
|
867
|
+
msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET"
|
|
868
|
+
msgstr "具備強大推理能力與可靠度的進階模型,適用於複雜任務"
|
|
869
|
+
|
|
870
|
+
msgctxt "The description of the Gemini-2-5-Pro model."
|
|
871
|
+
msgid "AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO"
|
|
872
|
+
msgstr "Google 的進階模型,能靈活解決問題並執行研究"
|
|
873
|
+
|
|
874
|
+
msgctxt "The description of the Gemini-2-5-Flash model."
|
|
875
|
+
msgid "AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH"
|
|
876
|
+
msgstr "輕量版 Gemini 模型,可提供快速且具成本效益的互動體驗"
|
|
877
|
+
|
|
878
|
+
msgctxt "The title for a custom AI review check."
|
|
879
|
+
msgid "AI_REVIEW_CHECK_CUSTOM_TITLE"
|
|
880
|
+
msgstr "自訂命令"
|
|
881
|
+
|
|
882
|
+
msgctxt "The description of what a custom AI review check does."
|
|
883
|
+
msgid "AI_REVIEW_CHECK_CUSTOM_DESCRIPTION"
|
|
884
|
+
msgstr "輸入自訂命令,確切依照您的需求校閱內容。"
|
|
885
|
+
|
|
886
|
+
msgctxt "The title for the correctness AI review check."
|
|
887
|
+
msgid "AI_REVIEW_CHECK_CORRECTNESS_TITLE"
|
|
888
|
+
msgstr "正確度"
|
|
889
|
+
|
|
890
|
+
msgctxt "The description of what the correctness AI review check does."
|
|
891
|
+
msgid "AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION"
|
|
892
|
+
msgstr "確保文字內容屬實且沒有錯誤。"
|
|
893
|
+
|
|
894
|
+
msgctxt "The title for the clarity AI review check."
|
|
895
|
+
msgid "AI_REVIEW_CHECK_CLARITY_TITLE"
|
|
896
|
+
msgstr "清晰度"
|
|
897
|
+
|
|
898
|
+
msgctxt "The description of what the clarity AI review check does."
|
|
899
|
+
msgid "AI_REVIEW_CHECK_CLARITY_DESCRIPTION"
|
|
900
|
+
msgstr "提高文字內容的清晰度與可讀性。"
|
|
901
|
+
|
|
902
|
+
msgctxt "The title for the readability AI review check."
|
|
903
|
+
msgid "AI_REVIEW_CHECK_READABILITY_TITLE"
|
|
904
|
+
msgstr "可讀性"
|
|
905
|
+
|
|
906
|
+
msgctxt "The description of what the readability AI review check does."
|
|
907
|
+
msgid "AI_REVIEW_CHECK_READABILITY_DESCRIPTION"
|
|
908
|
+
msgstr "增進文字內容的整體可讀性。"
|
|
909
|
+
|
|
910
|
+
msgctxt "The title for the make length adjustment AI review check."
|
|
911
|
+
msgid "AI_REVIEW_CHECK_MAKE_TITLE"
|
|
912
|
+
msgstr "調整長度"
|
|
913
|
+
|
|
914
|
+
msgctxt "The description of what the make length adjustment AI review check does."
|
|
915
|
+
msgid "AI_REVIEW_CHECK_MAKE_DESCRIPTION"
|
|
916
|
+
msgstr "將文字長度調整成符合需求的篇幅。"
|
|
917
|
+
|
|
918
|
+
msgctxt "The label for the make length adjustment options dropdown button."
|
|
919
|
+
msgid "AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL"
|
|
920
|
+
msgstr "調整長度"
|
|
921
|
+
|
|
922
|
+
msgctxt "The label for the make length adjustment option to make the content longer."
|
|
923
|
+
msgid "AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER"
|
|
924
|
+
msgstr "長一些"
|
|
925
|
+
|
|
926
|
+
msgctxt "The label for the make length adjustment option to make the content shorter."
|
|
927
|
+
msgid "AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER"
|
|
928
|
+
msgstr "短一些"
|
|
929
|
+
|
|
930
|
+
msgctxt "The title for the make tone adjustment AI review check."
|
|
931
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_TITLE"
|
|
932
|
+
msgstr "調整語氣與風格"
|
|
933
|
+
|
|
934
|
+
msgctxt "The description of what the make tone adjustment AI review check does."
|
|
935
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION"
|
|
936
|
+
msgstr "依需求選擇語氣與風格來改寫內容。"
|
|
937
|
+
|
|
938
|
+
msgctxt "The label for the make tone adjustment options dropdown button."
|
|
939
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL"
|
|
940
|
+
msgstr "調整語氣與風格"
|
|
941
|
+
|
|
942
|
+
msgctxt "The label for the make tone adjustment option to make the content more casual."
|
|
943
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL"
|
|
944
|
+
msgstr "非正式"
|
|
945
|
+
|
|
946
|
+
msgctxt "The label for the make tone adjustment option to make the content more direct."
|
|
947
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT"
|
|
948
|
+
msgstr "直接"
|
|
949
|
+
|
|
950
|
+
msgctxt "The label for the make tone adjustment option to make the content more friendly."
|
|
951
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY"
|
|
952
|
+
msgstr "友善"
|
|
953
|
+
|
|
954
|
+
msgctxt "The label for the make tone adjustment option to make the content more confident."
|
|
955
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT"
|
|
956
|
+
msgstr "自信"
|
|
957
|
+
|
|
958
|
+
msgctxt "The label for the make tone adjustment option to make the content more professional."
|
|
959
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL"
|
|
960
|
+
msgstr "專業"
|
|
961
|
+
|
|
962
|
+
msgctxt "The title for the translate AI review check."
|
|
963
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_TITLE"
|
|
964
|
+
msgstr "翻譯"
|
|
965
|
+
|
|
966
|
+
msgctxt "The description of what the translate AI review check does."
|
|
967
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION"
|
|
968
|
+
msgstr "將文字翻譯為其他語言。"
|
|
969
|
+
|
|
970
|
+
msgctxt "The label for the translate options dropdown button."
|
|
971
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL"
|
|
972
|
+
msgstr "選取語言"
|
|
973
|
+
|
|
974
|
+
msgctxt "The label for the translate option to English."
|
|
975
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH"
|
|
976
|
+
msgstr "英文"
|
|
977
|
+
|
|
978
|
+
msgctxt "The label for the translate option to Spanish."
|
|
979
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH"
|
|
980
|
+
msgstr "西班牙文"
|
|
981
|
+
|
|
982
|
+
msgctxt "The label for the translate option to French."
|
|
983
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH"
|
|
984
|
+
msgstr "法文"
|
|
985
|
+
|
|
986
|
+
msgctxt "The label for the translate option to German."
|
|
987
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN"
|
|
988
|
+
msgstr "德文"
|
|
989
|
+
|
|
990
|
+
msgctxt "The label for the translate option to Chinese."
|
|
991
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE"
|
|
992
|
+
msgstr "中文(簡體)"
|
|
993
|
+
|
|
994
|
+
msgctxt "The label for the translate option to Japanese."
|
|
995
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE"
|
|
996
|
+
msgstr "日文"
|
|
997
|
+
|
|
998
|
+
msgctxt "The label for the translate option to Russian."
|
|
999
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN"
|
|
1000
|
+
msgstr "俄文"
|
|
1001
|
+
|
|
1002
|
+
msgctxt "The label for the translate option to Portuguese."
|
|
1003
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE"
|
|
1004
|
+
msgstr "葡萄牙文"
|
|
1005
|
+
|
|
1006
|
+
msgctxt "The label for the translate option to Korean."
|
|
1007
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN"
|
|
1008
|
+
msgstr "韓文"
|
|
1009
|
+
|
|
1010
|
+
msgctxt "The label for the translate option to Italian."
|
|
1011
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN"
|
|
1012
|
+
msgstr "義大利文"
|
|
1013
|
+
|
|
1014
|
+
msgctxt "Tooltip of the button that shows the changes in the suggestion in the AI chat feed."
|
|
1015
|
+
msgid "AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP"
|
|
1016
|
+
msgid_plural "Show changes in the document"
|
|
1017
|
+
msgstr[0] ""
|
|
1018
|
+
|
|
1019
|
+
msgctxt "Tooltip of the button that inserts the suggestions in the AI chat feed."
|
|
1020
|
+
msgid "AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP"
|
|
1021
|
+
msgid_plural "Insert changes as suggestions"
|
|
1022
|
+
msgstr[0] ""
|
|
1023
|
+
|
|
1024
|
+
msgctxt "The label of the header displayed in the AI chat sources panel."
|
|
1025
|
+
msgid "AI_CHAT_SOURCES_HEADER"
|
|
1026
|
+
msgstr ""
|
|
1027
|
+
|
|
1028
|
+
msgctxt "The label of the toolbar button that toggles the AI chat panel."
|
|
1029
|
+
msgid "AI_TOGGLE_BUTTON_LABEL"
|
|
1030
|
+
msgstr ""
|
|
1031
|
+
|
|
1032
|
+
msgctxt "Label for the AI quick action to translate content to Spanish."
|
|
1033
|
+
msgid "AI_QUICK_ACTIONS_TRANSLATE_SPANISH"
|
|
1034
|
+
msgstr ""
|
|
1035
|
+
|
|
1036
|
+
msgctxt "Label for the AI quick action to translate content to German."
|
|
1037
|
+
msgid "AI_QUICK_ACTIONS_TRANSLATE_GERMAN"
|
|
1038
|
+
msgstr ""
|
|
1039
|
+
|
|
1040
|
+
msgctxt "The message displayed when the AI actions encounters a generic error."
|
|
1041
|
+
msgid "AI_ACTIONS_GENERIC_ERROR"
|
|
1042
|
+
msgstr ""
|
|
1043
|
+
|
|
1044
|
+
msgctxt "The title of the header displayed in the AI balloon."
|
|
1045
|
+
msgid "AI_BALLOON_HEADER_TITLE"
|
|
1046
|
+
msgstr ""
|
|
1047
|
+
|
|
1048
|
+
msgctxt "The tooltip for the button that navigates to the previous AI interaction in the AI actions balloon."
|
|
1049
|
+
msgid "AI_ACTIONS_PREVIOUS_INTERACTION"
|
|
1050
|
+
msgstr ""
|
|
1051
|
+
|
|
1052
|
+
msgctxt "The tooltip for the button that navigates to the next AI interaction in the AI actions balloon."
|
|
1053
|
+
msgid "AI_ACTIONS_NEXT_INTERACTION"
|
|
1054
|
+
msgstr ""
|
|
1055
|
+
|
|
1056
|
+
msgctxt "Text displayed when there were no changes suggested at all to review in the AI review mode."
|
|
1057
|
+
msgid "AI_REVIEW_MODE_EMPTY_RESULTS_TEXT"
|
|
1058
|
+
msgstr ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.0.0-alpha.
|
|
3
|
+
"version": "47.0.0-alpha.8",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-bedrock-runtime": "3.823.0",
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "47.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.0.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.
|
|
44
|
-
"ckeditor5": "47.0.0-alpha.
|
|
45
|
-
"ckeditor5-collaboration": "47.0.0-alpha.
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.0.0-alpha.8",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.8",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.8",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.0.0-alpha.8",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.0.0-alpha.8",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.0.0-alpha.8",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.8",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.0.0-alpha.8",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.8",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.0.0-alpha.8",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.0.0-alpha.8",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.8",
|
|
44
|
+
"ckeditor5": "47.0.0-alpha.8",
|
|
45
|
+
"ckeditor5-collaboration": "47.0.0-alpha.8",
|
|
46
46
|
"es-toolkit": "1.39.5",
|
|
47
47
|
"eventsource-parser": "3.0.2",
|
|
48
48
|
"htmlparser2": "10.0.0",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1af132=_0x4f02;(function(_0x348ca6,_0x240794){const _0x1f9d8d=_0x4f02,_0x2015b5=_0x348ca6();while(!![]){try{const _0x3085ed=parseInt(_0x1f9d8d(0x20d))/0x1+parseInt(_0x1f9d8d(0x216))/0x2*(parseInt(_0x1f9d8d(0x1f6))/0x3)+-parseInt(_0x1f9d8d(0x1ff))/0x4+parseInt(_0x1f9d8d(0x1dc))/0x5+-parseInt(_0x1f9d8d(0x1e7))/0x6*(-parseInt(_0x1f9d8d(0x20c))/0x7)+-parseInt(_0x1f9d8d(0x1c4))/0x8+-parseInt(_0x1f9d8d(0x298))/0x9*(-parseInt(_0x1f9d8d(0x29a))/0xa);if(_0x3085ed===_0x240794)break;else _0x2015b5['push'](_0x2015b5['shift']());}catch(_0x177989){_0x2015b5['push'](_0x2015b5['shift']());}}}(_0x3aa1,0x1e86a));import{Plugin as _0x5cc163}from'ckeditor5/src/core.js';import{AIConnector as _0x4aae16}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x287f92}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5267bb,ButtonView as _0x5662e1,ViewCollection as _0x374145,View as _0x3bc492}from'ckeditor5/src/ui.js';import{AIEditing as _0x568e5e}from'../aicore/aiediting.js';function _0x4f02(_0x2fea8c,_0x56c3f0){const _0x3aa14a=_0x3aa1();return _0x4f02=function(_0x4f02b5,_0x25313f){_0x4f02b5=_0x4f02b5-0x1c4;let _0x4515d6=_0x3aa14a[_0x4f02b5];return _0x4515d6;},_0x4f02(_0x2fea8c,_0x56c3f0);}import{AIActionsInteraction as _0x9a9da9}from'./model/aiactionsinteraction.js';import{first as _0x190261}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3e88a1,IconRefresh as _0x53a4ee,IconNextArrow as _0x4e495d,IconPreviousArrow as _0x206cb7,IconShowChangesOff as _0x773fc8}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x38f40a}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x278283}from'../aichat/utils/promisequeue.js';function _0x3aa1(){const _0x2678ca=['setChangeGroupState','_isNavigationPreviousButtonInView','_setErrorState','message','signal','replyContentUpdated','start','getAncestors','add','_interactionParams','createPositionAfter','63920rLaJUh','isBusy','locale','changeGroups','upsertAIActionRating','push','root','rootName','_wrapWithCommonAncestors','enqueue','replies','43470vgDpoD','bind','requires','applyOperation','hideError','getChildAtOffset','_setLoadingState','AIActions','replyChangeGroupStateUpdated','getSelectedTableCells','ck-ai-custom-action-button','textContent','stopListening','_currentInteractionIndex','split','120639LxviXg','operationsA','history','_navigationPreviousButton','_isNavigationNextButtonInView','plugins','areChangesVisible','state','element','990952tFqqmR','version','AI_ACTIONS_GENERIC_ERROR','createPositionBefore','_interaction','getOperations','_clearLoadingState','indexOf','_customViews','ck-ai-navigation-button\x20ck-ai-next-button','rejected','_getExecuteDataInTable','_aiConnector','28zvsmki','181840TjZqyl','modelToViewWithIds','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','catch','_displayInteractionAtIndex','_appendChild','isOfficialPlugin','aiBalloon','replyCreated','4PobKXn','TrackChangesEditing','Error\x20updating\x20content\x20in\x20replyContentUpdated:','baseVersion','filter','_stopInteraction','ai-request-aborted','_balloonShowDiff','_refreshInteraction','mainView','hideLoader','executeAction','removeNavigationItem','TableSelection','documentContextContent','insert','addNavigationItem','getRoot','setTemplate','listenTo','toData','document','_clearInteractionHistory','hasPendingParts','getDocumentContext','stickiness','showError','1/1','_navigateToNext','ck-ai-interaction-counter','type','end','showLoader','includes','bodyView','isPremiumPlugin','_clone','getSelectedContent','_navigationNextButton','first','_applyOperationsAsSuggestions','createPositionAt','$graveyard','AI_ACTIONS_TRY_AGAIN','data','createRange','static','schema','_navigationCounter','queueEmptyPromise','ck-ai-navigation-button\x20ck-ai-previous-button','dialogClosed','span','interactionFinished','path','nextSibling','random','startsWith','abort','documentFragment','_createInteraction','clearErrorState','stopInteraction','_updateNavigationUI','getSelectedBlocks','model','getLimitElement','change','howMany','execute','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','has','toggleSuggestionDisplayMode','balloonView','editor','_isNavigationCounterInView','streaming','rename','_anchorOperation','merge','position','addOperation','focus','AIConnector','getSelectionAsFragment','get','setErrorState','processor','_isAbortError','_execute','actionCallId','_executeAction','error','isEnabled','length','_clearErrorState','accepted','isCollapsed','_children','upsertCustomAIActionRating','_applyChanges','_filterOperationsOutsideRange','icon','move','selection','toolbar','getFirstRange','_setupCustomViews','Error\x20refreshing\x20interaction:','actionName','isLoading','hasError','pending','AI_ACTIONS_NEXT_INTERACTION','showChangesButton','_interactions','open','slice','stop','range','AI_ACTIONS_PREVIOUS_INTERACTION','parent','setSelection','updateContent','close','_clearSuggestionContent','map','clone','_getExecuteDataRegular','setLoading','45yykZFP','_navigateToPrevious','569030HskWPR','isDocumentOperation','applySuggestion','pluginName','nodeAfter','set','AIBalloon','miniToolbarView','Error\x20updating\x20content\x20in\x20replyCreated:','1726184iqUtUh','getChild','Error\x20updating\x20content\x20during\x20navigation:','clearLoading','_promiseQueue','getRanges','reinsert','insertSuggestion','remove','sourcePosition','Attribute','getCommonAncestor','batch'];_0x3aa1=function(){return _0x2678ca;};return _0x3aa1();}import{getTranslation as _0xf1606d}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x147bf7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x28fcc4}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2ab13d}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1ba277,ModelRange as _0x2a52d5,ModelPosition as _0x2037d6,_DetachOperation as _0x3b804e,transformOperationSets as _0x1fc536}from'ckeditor5/src/engine.js';export class AIActions extends _0x5cc163{static get[_0x1af132(0x1e9)](){return[_0x4aae16,_0x5267bb,_0x568e5e,_0x38f40a,_0x28fcc4];}static get[_0x1af132(0x29d)](){const _0x4df7ed=_0x1af132;return _0x4df7ed(0x1ee);}static get[_0x1af132(0x213)](){return!0x0;}static get[_0x1af132(0x239)](){return!0x0;}[_0x1af132(0x20b)];[_0x1af132(0x289)]=[];[_0x1af132(0x1f4)]=0x0;[_0x1af132(0x1da)];[_0x1af132(0x21d)]=!0x1;[_0x1af132(0x207)]=new _0x374145();[_0x1af132(0x1f9)];[_0x1af132(0x246)];[_0x1af132(0x261)]=!0x1;[_0x1af132(0x23c)];[_0x1af132(0x1d2)]=!0x1;[_0x1af132(0x1fa)]=!0x1;[_0x1af132(0x1c8)];get[_0x1af132(0x203)](){const _0x90baf8=_0x1af132;return this[_0x90baf8(0x289)][this[_0x90baf8(0x289)][_0x90baf8(0x274)]-0x1];}constructor(_0x2052db){const _0x931280=_0x1af132;super(_0x2052db),this[_0x931280(0x20b)]=this[_0x931280(0x260)][_0x931280(0x1fb)][_0x931280(0x26b)](_0x931280(0x269)),this[_0x931280(0x29f)](_0x931280(0x1dd),!0x1),this[_0x931280(0x1c8)]=new _0x278283(),this[_0x931280(0x281)]();}[_0x1af132(0x254)](){const _0x407e07=_0x1af132;this[_0x407e07(0x21b)]();}async[_0x1af132(0x221)](_0x1c44f0,_0x1e1d78,_0x3f0301){const _0x1a3b83=_0x1af132;if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x25d)](_0x1a3b83(0x223))){if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x26b)](_0x1a3b83(0x223))[_0x1a3b83(0x1f0)]()){const {modelFragment:_0x4df8dc,anchorData:_0x5802fb}=this[_0x1a3b83(0x20a)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x4df8dc,_0x5802fb,_0x1e1d78,_0x3f0301);}}const {modelFragment:_0x36cd37,anchorData:_0x1e2340}=this[_0x1a3b83(0x296)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x36cd37,_0x1e2340,_0x1e1d78,_0x3f0301);}[_0x1af132(0x296)](){const _0xc50550=_0x1af132,_0x3e6298=this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x22b)][_0xc50550(0x27e)];if(_0x3e6298[_0xc50550(0x277)]){const _0x15e473=_0x190261(_0x3e6298[_0xc50550(0x256)]())||this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x245)][_0xc50550(0x258)](_0x3e6298);this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x259)](_0xa986f3=>{const _0x36b703=_0xc50550;_0xa986f3[_0x36b703(0x290)](_0x15e473,'in');});}const _0x436096=_0x3e6298[_0xc50550(0x280)](),_0x4d76d6=this[_0xc50550(0x1e4)](this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x23b)](_0x3e6298),_0x436096[_0xc50550(0x1d7)],_0x436096[_0xc50550(0x235)]),_0x11d0c7=_0x3e6298[_0xc50550(0x280)]()[_0xc50550(0x1d7)],_0x32685c=new Map();let _0x493e11=_0x4d76d6;for(let _0x1247c0=0x0;_0x1247c0<_0x11d0c7[_0xc50550(0x24c)][_0xc50550(0x274)];_0x1247c0++)_0x32685c[_0xc50550(0x29f)](_0x493e11,_0x11d0c7[_0xc50550(0x24c)][_0x1247c0]),_0x493e11=_0x493e11[_0xc50550(0x1c5)](0x0);return{'modelFragment':_0x4d76d6,'anchorData':_0x32685c};}[_0x1af132(0x20a)](){const _0x138de7=_0x1af132,_0x1f2f8d=this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x22b)][_0x138de7(0x27e)],_0x2b3aaa=this[_0x138de7(0x260)][_0x138de7(0x1fb)][_0x138de7(0x26b)](_0x138de7(0x223))[_0x138de7(0x26a)](),_0x11e223=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)][_0x138de7(0x28f)][_0x138de7(0x28f)],_0x355dff=this[_0x138de7(0x1e4)](_0x2b3aaa,this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x202)](_0x11e223),this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x1db)](_0x11e223)),_0x3a82e4=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)],_0x306236=new Map();let _0x4a93f1=_0x355dff;for(let _0x55ef62=0x0;_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)];_0x55ef62++)if(_0x306236[_0x138de7(0x29f)](_0x4a93f1,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)]-0x1)_0x4a93f1=_0x4a93f1[_0x138de7(0x1c5)](0x0);else{let _0x235888=_0x4a93f1[_0x138de7(0x24d)];for(;_0x235888;)_0x306236[_0x138de7(0x29f)](_0x235888,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x235888=_0x235888[_0x138de7(0x24d)];}return{'modelFragment':_0x355dff,'anchorData':_0x306236};}[_0x1af132(0x271)](_0x44196a,_0x3c7345,_0x4d99c5,_0x2e9684,_0x5725e6){const _0x4e0b25=_0x1af132,_0x3494e8=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x568e5e),_0x294f6d=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x38f40a),_0x4b9ccb=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x27e)],_0x566d03=_0x3494e8[_0x4e0b25(0x20e)](_0x3c7345),_0x235e56=this[_0x4e0b25(0x260)][_0x4e0b25(0x242)][_0x4e0b25(0x26d)][_0x4e0b25(0x22a)](_0x566d03),_0x13a0d1=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x200)],_0x5a99ee=[..._0x4b9ccb[_0x4e0b25(0x1c9)]()],_0x39bbfb=new _0x287f92(this[_0x4e0b25(0x260)][_0x4e0b25(0x1de)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4e0b25(0x27c),'customView':this[_0x4e0b25(0x207)]},'showUnchangedParts':!0x0});return _0x294f6d[_0x4e0b25(0x28a)]({'index':0x3e8*Math[_0x4e0b25(0x24e)]()%0x3e8,'title':_0x2e9684,'icon':_0x5725e6||_0x3e88a1,'mainView':_0x39bbfb,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x5a99ee}),this[_0x4e0b25(0x1ed)](_0x39bbfb,_0x294f6d),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x29c),()=>{const _0x3ee564=_0x4e0b25;this[_0x3ee564(0x27a)](_0x3c7345,_0x4d99c5,!0x1);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x1cb),()=>{const _0xb0e58f=_0x4e0b25;this[_0xb0e58f(0x27a)](_0x3c7345,_0x4d99c5,!0x0);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x249),()=>{const _0x2a7622=_0x4e0b25;if(this[_0x2a7622(0x203)]&&this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]>0x0){const _0x768791=this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]-0x1],_0x1d04b5=_0x768791[_0x2a7622(0x1df)][0x0];_0x1d04b5&&_0x2a7622(0x286)===_0x1d04b5[_0x2a7622(0x1fd)]&&_0x768791[_0x2a7622(0x1d1)](0x0,_0x2a7622(0x209));}this[_0x2a7622(0x21b)](),this[_0x2a7622(0x22c)](),this[_0x2a7622(0x1f3)](_0x294f6d);}),this[_0x4e0b25(0x252)](_0x235e56,_0x13a0d1,_0x39bbfb,_0x294f6d,_0x44196a);}[_0x1af132(0x1e4)](_0x3c8d02,_0x5d487a,_0x2d01b4){const _0x112912=_0x1af132,_0x395dd4=this[_0x112912(0x260)][_0x112912(0x257)][_0x112912(0x243)](_0x5d487a,_0x2d01b4)[_0x112912(0x1cf)](),_0x2b86f7=_0x395dd4['is'](_0x112912(0x251))?[]:_0x395dd4[_0x112912(0x1d8)]({'includeSelf':!0x0})[_0x112912(0x28b)](0x1);if(_0x2b86f7[_0x112912(0x274)]){const _0x3497ed=_0x2b86f7[_0x112912(0x294)](_0x55bff1=>_0x55bff1[_0x112912(0x23a)](!0x1));for(let _0x89e550=0x1;_0x89e550<_0x3497ed[_0x112912(0x274)];_0x89e550++)_0x3497ed[_0x89e550-0x1][_0x112912(0x212)](_0x3497ed[_0x89e550]);return _0x3497ed[_0x3497ed[_0x112912(0x274)]-0x1][_0x112912(0x212)](_0x3c8d02),new _0x1ba277(_0x3497ed[0x0]);}return _0x3c8d02;}async[_0x1af132(0x252)](_0x27caa5,_0x1c8a66,_0x37de99,_0x409931,_0x3cfdb7){const _0x4ffa70=_0x1af132,_0x39543b=this[_0x4ffa70(0x260)];this[_0x4ffa70(0x1da)]={'action':_0x3cfdb7,'content':_0x27caa5,'version':_0x1c8a66,'mainView':_0x37de99,'aiBalloon':_0x409931};const _0xd84d2e=new _0x9a9da9({'connector':this[_0x4ffa70(0x20b)],'editor':_0x39543b,'content':_0x27caa5,'version':_0x1c8a66,..._0x3cfdb7});this[_0x4ffa70(0x289)][_0x4ffa70(0x1e1)](_0xd84d2e),_0x37de99[_0x4ffa70(0x1eb)]();const _0x14896a=(_0x4e5be3,_0x1fa288,_0x2b5fdf=!0x1,_0x521fbf=_0x4ffa70(0x262))=>this[_0x4ffa70(0x1c8)][_0x4ffa70(0x1e5)](async _0x55d2ba=>{const _0x1537a9=_0x4ffa70;try{const _0xaeb580=_0x147bf7({'editor':_0x39543b,'changeGroups':_0x4e5be3[_0x1537a9(0x1df)],'documentContextContent':_0x4e5be3[_0x1537a9(0x224)],'showDiff':_0x2b5fdf,'trimUnchanged':!0x1});await _0x1fa288[_0x1537a9(0x291)]({'parts':_0xaeb580,'renderingStrategy':_0x521fbf,'abortSignal':_0x55d2ba});}catch(_0x57e583){if(this[_0x1537a9(0x26e)](_0x57e583))return;throw _0x57e583;}});this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x215),(_0x2b74bd,_0x2aa712)=>{const _0x47ed64=_0x4ffa70;_0x37de99[_0x47ed64(0x220)](),_0x14896a(_0x2aa712,_0x37de99)[_0x47ed64(0x210)](_0x4bf7c0=>{const _0x19efa5=_0x47ed64;this[_0x19efa5(0x26e)](_0x4bf7c0)||(console[_0x19efa5(0x272)](_0x19efa5(0x2a2),_0x4bf7c0),this[_0x19efa5(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1d6),(_0x1287b3,_0x216e56)=>{const _0x1ad1f8=_0x4ffa70;_0x14896a(_0x216e56,_0x37de99)[_0x1ad1f8(0x210)](_0xe6770e=>{const _0xcacaff=_0x1ad1f8;this[_0xcacaff(0x26e)](_0xe6770e)||(console[_0xcacaff(0x272)](_0xcacaff(0x218),_0xe6770e),this[_0xcacaff(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x24b),async()=>{const _0x258235=_0x4ffa70;try{await this[_0x258235(0x205)](_0x37de99,_0x409931),this[_0x258235(0x255)]();}catch(_0x2c5ac3){this[_0x258235(0x26e)](_0x2c5ac3)||(console[_0x258235(0x272)](_0x258235(0x20f),_0x2c5ac3),this[_0x258235(0x1d3)](_0xd84d2e,_0x37de99));}}),this[_0x4ffa70(0x229)](_0x37de99,_0x4ffa70(0x25e),(_0x20e69f,{showDiff:_0xfa4a18})=>{const _0xb692b1=_0x4ffa70;this[_0xb692b1(0x21d)]=_0xfa4a18;const _0x1b7e50=this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][_0xb692b1(0x274)]-0x1];_0x1b7e50&&_0x14896a(_0x1b7e50,_0x37de99,_0xfa4a18,_0xb692b1(0x244))[_0xb692b1(0x210)](_0x844768=>{const _0x20afce=_0xb692b1;this[_0x20afce(0x26e)](_0x844768)||(console[_0x20afce(0x272)](_0x20afce(0x25c),_0x844768),this[_0x20afce(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1ef),(_0x517a43,{reply:_0x3463c4})=>{const _0x877976=_0x4ffa70,_0x2f21f3={'positiveCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x21a)](_0x5b028d=>_0x877976(0x276)===_0x5b028d[_0x877976(0x1fd)])[_0x877976(0x274)],'totalCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x274)]},_0x5a824a=this[_0x877976(0x203)][_0x877976(0x270)],_0x113576=this[_0x877976(0x203)][_0x877976(0x283)];_0x113576?this[_0x877976(0x20b)][_0x877976(0x1e0)](_0x113576,_0x5a824a,_0x2f21f3):this[_0x877976(0x20b)][_0x877976(0x279)](_0x5a824a,_0x2f21f3);}),this[_0x4ffa70(0x1ed)](_0x37de99,_0x409931);try{const _0x5cc343=await this[_0x4ffa70(0x203)][_0x4ffa70(0x1d7)]();return this[_0x4ffa70(0x255)](),_0x5cc343;}catch(_0x522591){if(this[_0x4ffa70(0x26e)](_0x522591))return;_0x37de99[_0x4ffa70(0x220)](),this[_0x4ffa70(0x1d3)](_0xd84d2e,_0x37de99);}}[_0x1af132(0x27a)](_0x29f91c,_0x1f6857,_0x514823){const _0x30e46b=_0x1af132,_0x2ce11a=this[_0x30e46b(0x260)],_0x4ff95e=this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x28fcc4),_0x14e3b9=this[_0x30e46b(0x203)],_0x205cc4=this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][_0x30e46b(0x274)]-0x1],_0x273aef=_0x205cc4[_0x30e46b(0x1df)];_0x205cc4[_0x30e46b(0x1d1)](0x0,_0x30e46b(0x276));let _0x1dcefc=_0x2ab13d({'editor':_0x2ce11a,'reply':_0x205cc4,'interaction':_0x14e3b9,'groups':_0x273aef,'transform':!0x1,'documentCompare':_0x4ff95e,'documentCompareOptions':{'anchor':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x23f)](_0x29f91c,0x0),'markDeletions':_0x514823}});_0x1dcefc=this[_0x30e46b(0x27b)](_0x1dcefc,_0x1f6857);for(const _0x45c661 of _0x1dcefc)this[_0x30e46b(0x264)](_0x1f6857,_0x45c661,_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x227)]());const _0x38e8d1=_0x14e3b9[_0x30e46b(0x22e)]()[_0x30e46b(0x200)],_0x377e2b=_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x1f8)][_0x30e46b(0x204)](_0x38e8d1),_0x5340b5={'document':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4b5352=_0x1fc536(_0x1dcefc,_0x377e2b,_0x5340b5)[_0x30e46b(0x1f7)];_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x259)](_0x289262=>{const _0x318bef=_0x30e46b;if(_0x289262[_0x318bef(0x290)](_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x27e)][_0x318bef(0x268)]),_0x514823)_0x2ce11a[_0x318bef(0x1fb)][_0x318bef(0x26b)](_0x318bef(0x217))[_0x318bef(0x23e)](_0x4b5352);else{for(const _0x19332f of _0x4b5352)_0x19332f[_0x318bef(0x219)]=_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x200)],_0x289262[_0x318bef(0x1d0)][_0x318bef(0x267)](_0x19332f),_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x1ea)](_0x19332f);}}),this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x30e46b(0x2a0))[_0x30e46b(0x292)]();}[_0x1af132(0x27b)](_0x41b543,_0xa9f5ac){const _0xc7e59c=_0x1af132;return _0x41b543[_0xc7e59c(0x21a)](_0x1e52e9=>{const _0x1e8111=_0xc7e59c;if(_0x1e8111(0x263)==_0x1e52e9[_0x1e8111(0x234)]){const _0x32ba4d=_0x1e52e9[_0x1e8111(0x266)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x32ba4d);}if(_0x1e52e9[_0x1e8111(0x234)][_0x1e8111(0x206)](_0x1e8111(0x1ce))>-0x1){const _0x46f844=_0x1e52e9[_0x1e8111(0x28d)][_0x1e8111(0x1d7)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x46f844);}return!0x0;});}[_0x1af132(0x264)](_0x352526,_0x882274,_0x3ca555){const _0x2e55dc=_0x1af132,_0x420e22=_0x882274[_0x2e55dc(0x295)]();for(const _0x2e5f78 in _0x882274){const _0x1907e7=_0x882274[_0x2e5f78];_0x1907e7 instanceof _0x2a52d5?_0x882274[_0x2e5f78]=new _0x2a52d5(_0x38fe16(_0x1907e7[_0x2e55dc(0x1d7)]),_0x38fe16(_0x1907e7[_0x2e55dc(0x235)])):_0x1907e7 instanceof _0x2037d6&&(_0x882274[_0x2e5f78]=_0x38fe16(_0x1907e7));}if([_0x2e55dc(0x225),_0x2e55dc(0x27d),_0x2e55dc(0x1cc),_0x2e55dc(0x1ca),_0x2e55dc(0x1f5),_0x2e55dc(0x265)][_0x2e55dc(0x237)](_0x420e22[_0x2e55dc(0x234)])){if(_0x420e22[_0x2e55dc(0x29b)]=!0x1,_0x420e22[_0x2e55dc(0x219)]=null,_0x2e55dc(0x1cc)==_0x420e22[_0x2e55dc(0x234)]){const _0x45a6b0=_0x420e22[_0x2e55dc(0x1cd)],_0x2b3529=_0x420e22[_0x2e55dc(0x25a)];new _0x3b804e(_0x45a6b0,_0x2b3529)[_0x2e55dc(0x26f)]();}else _0x420e22[_0x2e55dc(0x26f)]();}function _0x38fe16(_0x1af884){const _0x100062=_0x2e55dc;if(_0x100062(0x240)==_0x1af884[_0x100062(0x1e2)][_0x100062(0x1e3)])return _0x1af884;const _0x553d96=[];let _0x433d92=_0x1af884[_0x100062(0x1e2)];for(let _0x34638a=0x0;_0x34638a<_0x1af884[_0x100062(0x24c)][_0x100062(0x274)];_0x34638a++){const _0x17cc49=_0x352526[_0x100062(0x26b)](_0x433d92)||0x0;_0x553d96[_0x34638a]=_0x1af884[_0x100062(0x24c)][_0x34638a]+_0x17cc49,_0x433d92=_0x433d92[_0x100062(0x1ec)](_0x1af884[_0x100062(0x24c)][_0x34638a]);}return new _0x2037d6(_0x3ca555,_0x553d96,_0x1af884[_0x100062(0x22f)]);}}[_0x1af132(0x21e)](){const _0x341d84=_0x1af132;if(!this[_0x341d84(0x1da)])return;this[_0x341d84(0x289)][_0x341d84(0x274)]>0x0&&this[_0x341d84(0x21b)](),this[_0x341d84(0x1f4)]=0x0,this[_0x341d84(0x21d)]=!0x1;const {action:_0x2b7b61,content:_0x2e1953,version:_0x312922,mainView:_0x2f76eb,aiBalloon:_0x12b547}=this[_0x341d84(0x1da)];_0x2f76eb[_0x341d84(0x1fc)]=!0x1,_0x2f76eb[_0x341d84(0x1eb)](),this[_0x341d84(0x275)](_0x2f76eb,_0x12b547);const _0x5c4cbe=_0x2f76eb;_0x5c4cbe[_0x341d84(0x2a1)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)][_0x341d84(0x29f)]({'isOn':!0x1,'icon':_0x773fc8}),this[_0x341d84(0x293)](_0x2f76eb),_0x2f76eb[_0x341d84(0x236)](),this[_0x341d84(0x255)](),this[_0x341d84(0x252)](_0x2e1953,_0x312922,_0x2f76eb,_0x12b547,_0x2b7b61)[_0x341d84(0x210)](_0x5796a7=>{const _0x4ca928=_0x341d84;this[_0x4ca928(0x26e)](_0x5796a7)||console[_0x4ca928(0x272)](_0x4ca928(0x282),_0x5796a7);});}[_0x1af132(0x293)](_0x13342b){const _0x15b6bf=_0x1af132,_0x12f1b3=_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x278)];for(;_0x12f1b3[_0x15b6bf(0x274)]>0x0;)_0x12f1b3[_0x15b6bf(0x1cc)](_0x12f1b3[_0x15b6bf(0x23d)]);_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x22d)]=!0x1;}[_0x1af132(0x26e)](_0x1960be){const _0x480b5a=_0x1af132;return!!_0x1960be[_0x480b5a(0x1d4)]&&_0x1960be[_0x480b5a(0x1d4)][_0x480b5a(0x24f)](_0x480b5a(0x21c));}[_0x1af132(0x22c)](){const _0x50ace2=_0x1af132;this[_0x50ace2(0x289)]=[],this[_0x50ace2(0x1da)]=void 0x0,this[_0x50ace2(0x1f4)]=0x0,this[_0x50ace2(0x255)]();}[_0x1af132(0x21b)](){const _0x278963=_0x1af132;this[_0x278963(0x203)]&&this[_0x278963(0x203)][_0x278963(0x28c)](),this[_0x278963(0x1c8)][_0x278963(0x250)](),this[_0x278963(0x1dd)]=!0x1;}[_0x1af132(0x281)](){const _0x45a790=_0x1af132,_0x40505d=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x48335f=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x4d72d6=new _0x3bc492(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x18ca0b=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]);_0x40505d[_0x45a790(0x29f)]({'icon':_0x53a4ee,'label':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x241)),'tooltip':!0x0,'class':_0x45a790(0x1f1)}),_0x48335f[_0x45a790(0x29f)]({'icon':_0x206cb7,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x28e)),'class':_0x45a790(0x248)}),_0x4d72d6[_0x45a790(0x228)]({'tag':_0x45a790(0x24a),'attributes':{'class':[_0x45a790(0x233)]},'children':[_0x45a790(0x231)]}),_0x18ca0b[_0x45a790(0x29f)]({'icon':_0x4e495d,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x287)),'class':_0x45a790(0x208)}),_0x40505d[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x460d4b=>!_0x460d4b),_0x40505d['on'](_0x45a790(0x25b),()=>{const _0x3818f3=_0x45a790;this[_0x3818f3(0x21e)]();}),_0x48335f[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x4187b8=>!_0x4187b8),_0x48335f['on'](_0x45a790(0x25b),()=>{const _0xda1ba1=_0x45a790;this[_0xda1ba1(0x299)]();}),_0x18ca0b[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x27ea6c=>!_0x27ea6c),_0x18ca0b['on'](_0x45a790(0x25b),()=>{const _0x473de7=_0x45a790;this[_0x473de7(0x232)]();}),this[_0x45a790(0x1f9)]=_0x48335f,this[_0x45a790(0x246)]=_0x4d72d6,this[_0x45a790(0x23c)]=_0x18ca0b,this[_0x45a790(0x207)][_0x45a790(0x1d9)](_0x40505d);}[_0x1af132(0x299)](){const _0x49576b=_0x1af132,_0x500bf0=this[_0x49576b(0x289)][_0x49576b(0x274)];this[_0x49576b(0x1f4)]<_0x500bf0-0x1&&this[_0x49576b(0x211)](this[_0x49576b(0x1f4)]+0x1);}[_0x1af132(0x232)](){const _0x3d9520=_0x1af132;this[_0x3d9520(0x1f4)]>0x0&&this[_0x3d9520(0x211)](this[_0x3d9520(0x1f4)]-0x1);}async[_0x1af132(0x211)](_0x227d75){const _0x3c1705=_0x1af132;if(!this[_0x3c1705(0x1da)])return;this[_0x3c1705(0x1f4)]=_0x227d75;const {mainView:_0xdc020d}=this[_0x3c1705(0x1da)],_0x57dc2c=this[_0x3c1705(0x289)][this[_0x3c1705(0x289)][_0x3c1705(0x274)]-0x1-this[_0x3c1705(0x1f4)]];if(!_0x57dc2c)return;if(_0x57dc2c[_0x3c1705(0x285)])return this[_0x3c1705(0x1d3)](_0x57dc2c,_0xdc020d),void this[_0x3c1705(0x255)]();if(!_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)])return;_0xdc020d[_0x3c1705(0x1eb)](),this[_0x3c1705(0x1da)]&&this[_0x3c1705(0x275)](_0xdc020d,this[_0x3c1705(0x1da)][_0x3c1705(0x214)]);const _0x32c5bc=_0x57dc2c[_0x3c1705(0x1e6)][_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)]-0x1];if(_0x32c5bc){const _0x1ab2ca=this[_0x3c1705(0x260)];this[_0x3c1705(0x293)](_0xdc020d);try{const _0x64d872=_0x147bf7({'editor':_0x1ab2ca,'changeGroups':_0x32c5bc[_0x3c1705(0x1df)],'documentContextContent':_0x32c5bc[_0x3c1705(0x224)],'showDiff':this[_0x3c1705(0x21d)],'trimUnchanged':!0x1});this[_0x3c1705(0x293)](_0xdc020d),await new Promise(_0x519668=>setTimeout(_0x519668,0x32)),await _0xdc020d[_0x3c1705(0x291)]({'parts':_0x64d872,'renderingStrategy':_0x3c1705(0x244),'abortSignal':new AbortController()[_0x3c1705(0x1d5)]});}catch(_0x5b3e95){this[_0x3c1705(0x26e)](_0x5b3e95)||console[_0x3c1705(0x272)](_0x3c1705(0x1c6),_0x5b3e95);}}this[_0x3c1705(0x255)]();}[_0x1af132(0x255)](){const _0x47cd8b=_0x1af132;if(!this[_0x47cd8b(0x1f9)]||!this[_0x47cd8b(0x246)]||!this[_0x47cd8b(0x23c)])return;const _0x4f87c7=this[_0x47cd8b(0x289)][_0x47cd8b(0x274)],_0x20e3b2=_0x4f87c7>0x1,_0x4b5674=this[_0x47cd8b(0x1da)]?.[_0x47cd8b(0x21f)];if(_0x20e3b2){this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)]||(this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x0);const _0xea3e7c=_0x4f87c7-this[_0x47cd8b(0x1f4)];this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)]&&(this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)][_0x47cd8b(0x1f2)]=_0xea3e7c+'/'+_0x4f87c7),this[_0x47cd8b(0x1f9)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]<_0x4f87c7-0x1,this[_0x47cd8b(0x23c)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]>0x0;}else(this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)])&&(this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x1);}[_0x1af132(0x1ed)](_0x4bd7e6,_0x4a401b){const _0x41d059=_0x1af132;_0x4bd7e6[_0x41d059(0x297)](),_0x4a401b[_0x41d059(0x25f)][_0x41d059(0x297)](),this[_0x41d059(0x1dd)]=!0x0;}async[_0x1af132(0x1d3)](_0x2908dc,_0x38560c){const _0x501628=_0x1af132,_0x1d9a7f=_0xf1606d(this[_0x501628(0x260)][_0x501628(0x1de)],_0x501628(0x201));_0x38560c[_0x501628(0x230)](_0x1d9a7f),_0x2908dc[_0x501628(0x285)]=!0x0,await this[_0x501628(0x1c8)][_0x501628(0x247)],_0x38560c[_0x501628(0x26c)](),this[_0x501628(0x1da)]?.[_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)]&&(this[_0x501628(0x1da)][_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)][_0x501628(0x284)]=!0x0);}[_0x1af132(0x275)](_0x2c7eb2,_0x993063){const _0x2fc467=_0x1af132;_0x2c7eb2[_0x2fc467(0x253)](),_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)]&&(_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)][_0x2fc467(0x284)]=!0x1);}async[_0x1af132(0x205)](_0x274325,_0x4d08a7){const _0x3d85d2=_0x1af132;await this[_0x3d85d2(0x1c8)][_0x3d85d2(0x247)],this[_0x3d85d2(0x1dd)]=!0x1,_0x274325[_0x3d85d2(0x1c7)](),_0x4d08a7[_0x3d85d2(0x25f)][_0x3d85d2(0x1c7)]();}}
|
|
23
|
+
function _0x4238(){const _0x10cfc7=['_isAbortError','_navigateToPrevious','TableSelection','showChangesButton','bodyView','modelToViewWithIds','version','slice','random','push','rejected','addNavigationItem','isLoading','AI_ACTIONS_TRY_AGAIN','AIActions','pluginName','textContent','$graveyard','_isNavigationCounterInView','getChild','isOfficialPlugin','ck-ai-navigation-button\x20ck-ai-next-button','stopListening','setChangeGroupState','Error\x20updating\x20content\x20in\x20replyContentUpdated:','1/1','history','_children','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','sourcePosition','1924641VPrill','_refreshInteraction','filter','baseVersion','listenTo','ck-ai-custom-action-button','_createInteraction','stopInteraction','queueEmptyPromise','getSelectedBlocks','TrackChangesEditing','requires','documentContextContent','startsWith','_clearErrorState','Error\x20updating\x20content\x20in\x20replyCreated:','Error\x20updating\x20content\x20during\x20navigation:','rootName','replies','span','state','96DjuOoj','close','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','reinsert','_executeAction','indexOf','range','operationsA','_balloonShowDiff','getRoot','createRange','nextSibling','accepted','bind','_isNavigationPreviousButtonInView','_customViews','mainView','selection','getCommonAncestor','createPositionBefore','change','actionCallId','execute','remove','map','hasError','setErrorState','ck-ai-interaction-counter','isEnabled','enqueue','abort','1265588UYvVJE','insertSuggestion','plugins','locale','type','open','has','processor','Error\x20refreshing\x20interaction:','replyContentUpdated','focus','pending','_interaction','toData','includes','isBusy','_navigationPreviousButton','_applyChanges','nodeAfter','_promiseQueue','_setupCustomViews','AIBalloon','_clearSuggestionContent','_navigationNextButton','_setErrorState','removeNavigationItem','toggleSuggestionDisplayMode','toolbar','path','_applyOperationsAsSuggestions','actionName','showError','getFirstRange','_anchorOperation','_currentInteractionIndex','clearLoading','add','_execute','_stopInteraction','getSelectionAsFragment','AIConnector','editor','_aiConnector','miniToolbarView','_setLoadingState','hasPendingParts','length','element','start','root','batch','first','error','_displayInteractionAtIndex','getLimitElement','setLoading','802722FYLYYF','_appendChild','_filterOperationsOutsideRange','static','clearErrorState','move','getRanges','position','Attribute','_interactions','catch','clone','howMany','icon','hideLoader','AI_ACTIONS_PREVIOUS_INTERACTION','replyChangeGroupStateUpdated','split','ai-request-aborted','interactionFinished','message','applySuggestion','8155084LtbvMu','_isNavigationNextButtonInView','2156558NhVqUK','6AKxLIs','isPremiumPlugin','getSelectedTableCells','getOperations','upsertAIActionRating','applyOperation','document','AI_ACTIONS_NEXT_INTERACTION','_navigateToNext','changeGroups','stickiness','rename','areChangesVisible','balloonView','getSelectedContent','_interactionParams','isCollapsed','AI_ACTIONS_GENERIC_ERROR','dialogClosed','_wrapWithCommonAncestors','ck-ai-navigation-button\x20ck-ai-previous-button','createPositionAt','getChildAtOffset','addOperation','setSelection','_navigationCounter','_getExecuteDataRegular','streaming','schema','parent','replyCreated','getDocumentContext','documentFragment','_clearInteractionHistory','hideError','_getExecuteDataInTable','isDocumentOperation','_updateNavigationUI','get','createPositionAfter','aiBalloon','model','end','stop','data','signal','5181755ZtTyOd','executeAction','insert','_clone','showLoader','upsertCustomAIActionRating','_clearLoadingState','set','setTemplate','updateContent','896739VaHGtj','merge','getAncestors'];_0x4238=function(){return _0x10cfc7;};return _0x4238();}const _0x625421=_0x4b3d;(function(_0x4d269f,_0x4218ef){const _0x14f308=_0x4b3d,_0x5eb04a=_0x4d269f();while(!![]){try{const _0x504386=-parseInt(_0x14f308(0x1c8))/0x1+-parseInt(_0x14f308(0x1e0))/0x2+parseInt(_0x14f308(0x219))/0x3+-parseInt(_0x14f308(0x190))/0x4+-parseInt(_0x14f308(0x20f))/0x5+-parseInt(_0x14f308(0x1e1))/0x6*(-parseInt(_0x14f308(0x1de))/0x7)+parseInt(_0x14f308(0x171))/0x8*(parseInt(_0x14f308(0x23a))/0x9);if(_0x504386===_0x4218ef)break;else _0x5eb04a['push'](_0x5eb04a['shift']());}catch(_0x72101){_0x5eb04a['push'](_0x5eb04a['shift']());}}}(_0x4238,0xc26cc));import{Plugin as _0xc2388f}from'ckeditor5/src/core.js';import{AIConnector as _0x10372a}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x339382}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x201968,ButtonView as _0x1121e5,ViewCollection as _0x3138e9,View as _0x55ee2c}from'ckeditor5/src/ui.js';import{AIEditing as _0x5c551}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x40ccc4}from'./model/aiactionsinteraction.js';import{first as _0x55028}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x7f0aef,IconRefresh as _0x591a24,IconNextArrow as _0x44a549,IconPreviousArrow as _0x13e120,IconShowChangesOff as _0x2341b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x133e6e}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x2b1a66}from'../aichat/utils/promisequeue.js';function _0x4b3d(_0x13d505,_0x29868f){const _0x4238db=_0x4238();return _0x4b3d=function(_0x4b3d33,_0x5319ea){_0x4b3d33=_0x4b3d33-0x167;let _0x52c0cd=_0x4238db[_0x4b3d33];return _0x52c0cd;},_0x4b3d(_0x13d505,_0x29868f);}import{getTranslation as _0x1db4d8}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x37a51c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x540dca}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x29c754}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x203401,ModelRange as _0x4d713f,ModelPosition as _0x413028,_DetachOperation as _0x29c6bb,transformOperationSets as _0x3ff366}from'ckeditor5/src/engine.js';export class AIActions extends _0xc2388f{static get[_0x625421(0x167)](){return[_0x10372a,_0x201968,_0x5c551,_0x133e6e,_0x540dca];}static get[_0x625421(0x22b)](){const _0xb834ae=_0x625421;return _0xb834ae(0x22a);}static get[_0x625421(0x230)](){return!0x0;}static get[_0x625421(0x1e2)](){return!0x0;}[_0x625421(0x1ba)];[_0x625421(0x1d1)]=[];[_0x625421(0x1b2)]=0x0;[_0x625421(0x1f0)];[_0x625421(0x179)]=!0x1;[_0x625421(0x180)]=new _0x3138e9();[_0x625421(0x1a0)];[_0x625421(0x1fa)];[_0x625421(0x22e)]=!0x1;[_0x625421(0x1a7)];[_0x625421(0x17f)]=!0x1;[_0x625421(0x1df)]=!0x1;[_0x625421(0x1a3)];get[_0x625421(0x19c)](){const _0x3dcc21=_0x625421;return this[_0x3dcc21(0x1d1)][this[_0x3dcc21(0x1d1)][_0x3dcc21(0x1be)]-0x1];}constructor(_0x3eb16f){const _0x1b4510=_0x625421;super(_0x3eb16f),this[_0x1b4510(0x1ba)]=this[_0x1b4510(0x1b9)][_0x1b4510(0x192)][_0x1b4510(0x207)](_0x1b4510(0x1b8)),this[_0x1b4510(0x216)](_0x1b4510(0x19f),!0x1),this[_0x1b4510(0x1a3)]=new _0x2b1a66(),this[_0x1b4510(0x1a4)]();}[_0x625421(0x241)](){const _0x16234c=_0x625421;this[_0x16234c(0x1b6)]();}async[_0x625421(0x210)](_0x9fa800,_0x2ec7fc,_0x231096){const _0x47ae26=_0x625421;if(this[_0x47ae26(0x1b9)][_0x47ae26(0x192)][_0x47ae26(0x196)](_0x47ae26(0x21e))){if(this[_0x47ae26(0x1b9)][_0x47ae26(0x192)][_0x47ae26(0x207)](_0x47ae26(0x21e))[_0x47ae26(0x1e3)]()){const {modelFragment:_0x3ac018,anchorData:_0x1f6144}=this[_0x47ae26(0x204)]();return this[_0x47ae26(0x175)](_0x9fa800,_0x3ac018,_0x1f6144,_0x2ec7fc,_0x231096);}}const {modelFragment:_0xdc1c3a,anchorData:_0x33a271}=this[_0x47ae26(0x1fb)]();return this[_0x47ae26(0x175)](_0x9fa800,_0xdc1c3a,_0x33a271,_0x2ec7fc,_0x231096);}[_0x625421(0x1fb)](){const _0x376d20=_0x625421,_0xb59dac=this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x1e7)][_0x376d20(0x182)];if(_0xb59dac[_0x376d20(0x1f1)]){const _0x1506c1=_0x55028(_0xb59dac[_0x376d20(0x243)]())||this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x1fd)][_0x376d20(0x1c6)](_0xb59dac);this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x185)](_0x2bd04f=>{const _0x46f6b4=_0x376d20;_0x2bd04f[_0x46f6b4(0x1f9)](_0x1506c1,'in');});}const _0x36e5df=_0xb59dac[_0x376d20(0x1b0)](),_0x533328=this[_0x376d20(0x1f4)](this[_0x376d20(0x1b9)][_0x376d20(0x20a)][_0x376d20(0x1ef)](_0xb59dac),_0x36e5df[_0x376d20(0x1c0)],_0x36e5df[_0x376d20(0x20b)]),_0xf66157=_0xb59dac[_0x376d20(0x1b0)]()[_0x376d20(0x1c0)],_0x428cdc=new Map();let _0xfd6884=_0x533328;for(let _0xa7d524=0x0;_0xa7d524<_0xf66157[_0x376d20(0x1ac)][_0x376d20(0x1be)];_0xa7d524++)_0x428cdc[_0x376d20(0x216)](_0xfd6884,_0xf66157[_0x376d20(0x1ac)][_0xa7d524]),_0xfd6884=_0xfd6884[_0x376d20(0x22f)](0x0);return{'modelFragment':_0x533328,'anchorData':_0x428cdc};}[_0x625421(0x204)](){const _0x28d7d3=_0x625421,_0x179292=this[_0x28d7d3(0x1b9)][_0x28d7d3(0x20a)][_0x28d7d3(0x1e7)][_0x28d7d3(0x182)],_0x387887=this[_0x28d7d3(0x1b9)][_0x28d7d3(0x192)][_0x28d7d3(0x207)](_0x28d7d3(0x21e))[_0x28d7d3(0x1b7)](),_0x3ae3ca=_0x179292[_0x28d7d3(0x1b0)]()[_0x28d7d3(0x1c0)][_0x28d7d3(0x1fe)][_0x28d7d3(0x1fe)],_0x4436d2=this[_0x28d7d3(0x1f4)](_0x387887,this[_0x28d7d3(0x1b9)][_0x28d7d3(0x20a)][_0x28d7d3(0x184)](_0x3ae3ca),this[_0x28d7d3(0x1b9)][_0x28d7d3(0x20a)][_0x28d7d3(0x208)](_0x3ae3ca)),_0xa74cdb=_0x179292[_0x28d7d3(0x1b0)]()[_0x28d7d3(0x1c0)],_0x553237=new Map();let _0x2c26b0=_0x4436d2;for(let _0x526db6=0x0;_0x526db6<_0xa74cdb[_0x28d7d3(0x1ac)][_0x28d7d3(0x1be)];_0x526db6++)if(_0x553237[_0x28d7d3(0x216)](_0x2c26b0,_0xa74cdb[_0x28d7d3(0x1ac)][_0x526db6]),_0x526db6<_0xa74cdb[_0x28d7d3(0x1ac)][_0x28d7d3(0x1be)]-0x1)_0x2c26b0=_0x2c26b0[_0x28d7d3(0x22f)](0x0);else{let _0x31e557=_0x2c26b0[_0x28d7d3(0x17c)];for(;_0x31e557;)_0x553237[_0x28d7d3(0x216)](_0x31e557,_0xa74cdb[_0x28d7d3(0x1ac)][_0x526db6]),_0x31e557=_0x31e557[_0x28d7d3(0x17c)];}return{'modelFragment':_0x4436d2,'anchorData':_0x553237};}[_0x625421(0x175)](_0x1ab6c8,_0xccdc3b,_0x30914c,_0x3999e2,_0x33a56c){const _0x298ccb=_0x625421,_0x405b49=this[_0x298ccb(0x1b9)][_0x298ccb(0x192)][_0x298ccb(0x207)](_0x5c551),_0x3c0b42=this[_0x298ccb(0x1b9)][_0x298ccb(0x192)][_0x298ccb(0x207)](_0x133e6e),_0x5ed08a=this[_0x298ccb(0x1b9)][_0x298ccb(0x20a)][_0x298ccb(0x1e7)][_0x298ccb(0x182)],_0x58625f=_0x405b49[_0x298ccb(0x221)](_0xccdc3b),_0x1393dd=this[_0x298ccb(0x1b9)][_0x298ccb(0x20d)][_0x298ccb(0x197)][_0x298ccb(0x19d)](_0x58625f),_0xa5a346=this[_0x298ccb(0x1b9)][_0x298ccb(0x20a)][_0x298ccb(0x1e7)][_0x298ccb(0x222)],_0x283ae0=[..._0x5ed08a[_0x298ccb(0x1ce)]()],_0x4a3318=new _0x339382(this[_0x298ccb(0x1b9)][_0x298ccb(0x193)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x298ccb(0x1d5),'customView':this[_0x298ccb(0x180)]},'showUnchangedParts':!0x0});return _0x3c0b42[_0x298ccb(0x195)]({'index':0x3e8*Math[_0x298ccb(0x224)]()%0x3e8,'title':_0x3999e2,'icon':_0x33a56c||_0x7f0aef,'mainView':_0x4a3318,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x283ae0}),this[_0x298ccb(0x1bc)](_0x4a3318,_0x3c0b42),this[_0x298ccb(0x23e)](_0x3c0b42,_0x298ccb(0x1dd),()=>{const _0x5ee827=_0x298ccb;this[_0x5ee827(0x1a1)](_0xccdc3b,_0x30914c,!0x1);}),this[_0x298ccb(0x23e)](_0x3c0b42,_0x298ccb(0x191),()=>{const _0x523e29=_0x298ccb;this[_0x523e29(0x1a1)](_0xccdc3b,_0x30914c,!0x0);}),this[_0x298ccb(0x23e)](_0x3c0b42,_0x298ccb(0x1f3),()=>{const _0x51aaa5=_0x298ccb;if(this[_0x51aaa5(0x19c)]&&this[_0x51aaa5(0x19c)][_0x51aaa5(0x16e)][_0x51aaa5(0x1be)]>0x0){const _0x23e135=this[_0x51aaa5(0x19c)][_0x51aaa5(0x16e)][this[_0x51aaa5(0x19c)][_0x51aaa5(0x16e)][_0x51aaa5(0x1be)]-0x1],_0x3d5e11=_0x23e135[_0x51aaa5(0x1ea)][0x0];_0x3d5e11&&_0x51aaa5(0x19b)===_0x3d5e11[_0x51aaa5(0x170)]&&_0x23e135[_0x51aaa5(0x233)](0x0,_0x51aaa5(0x226));}this[_0x51aaa5(0x1b6)](),this[_0x51aaa5(0x202)](),this[_0x51aaa5(0x232)](_0x3c0b42);}),this[_0x298ccb(0x240)](_0x1393dd,_0xa5a346,_0x4a3318,_0x3c0b42,_0x1ab6c8);}[_0x625421(0x1f4)](_0x4756f8,_0x20bd42,_0x994fc6){const _0x36222e=_0x625421,_0x59e416=this[_0x36222e(0x1b9)][_0x36222e(0x20a)][_0x36222e(0x17b)](_0x20bd42,_0x994fc6)[_0x36222e(0x183)](),_0x20a5df=_0x59e416['is'](_0x36222e(0x201))?[]:_0x59e416[_0x36222e(0x21b)]({'includeSelf':!0x0})[_0x36222e(0x223)](0x1);if(_0x20a5df[_0x36222e(0x1be)]){const _0x20bc55=_0x20a5df[_0x36222e(0x189)](_0x4c4dab=>_0x4c4dab[_0x36222e(0x212)](!0x1));for(let _0x804635=0x1;_0x804635<_0x20bc55[_0x36222e(0x1be)];_0x804635++)_0x20bc55[_0x804635-0x1][_0x36222e(0x1c9)](_0x20bc55[_0x804635]);return _0x20bc55[_0x20bc55[_0x36222e(0x1be)]-0x1][_0x36222e(0x1c9)](_0x4756f8),new _0x203401(_0x20bc55[0x0]);}return _0x4756f8;}async[_0x625421(0x240)](_0x3c9a80,_0x167d13,_0x186afc,_0x40dd97,_0x58de5e){const _0x1efdff=_0x625421,_0x4d2397=this[_0x1efdff(0x1b9)];this[_0x1efdff(0x1f0)]={'action':_0x58de5e,'content':_0x3c9a80,'version':_0x167d13,'mainView':_0x186afc,'aiBalloon':_0x40dd97};const _0xc7de9c=new _0x40ccc4({'connector':this[_0x1efdff(0x1ba)],'editor':_0x4d2397,'content':_0x3c9a80,'version':_0x167d13,..._0x58de5e});this[_0x1efdff(0x1d1)][_0x1efdff(0x225)](_0xc7de9c),_0x186afc[_0x1efdff(0x203)]();const _0x1faeb5=(_0x30cade,_0xb35068,_0x2149b6=!0x1,_0x3ebd9e=_0x1efdff(0x1fc))=>this[_0x1efdff(0x1a3)][_0x1efdff(0x18e)](async _0x556059=>{const _0x51233b=_0x1efdff;try{const _0x2f337d=_0x37a51c({'editor':_0x4d2397,'changeGroups':_0x30cade[_0x51233b(0x1ea)],'documentContextContent':_0x30cade[_0x51233b(0x168)],'showDiff':_0x2149b6,'trimUnchanged':!0x1});await _0xb35068[_0x51233b(0x218)]({'parts':_0x2f337d,'renderingStrategy':_0x3ebd9e,'abortSignal':_0x556059});}catch(_0x24ed71){if(this[_0x51233b(0x21c)](_0x24ed71))return;throw _0x24ed71;}});this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x1ff),(_0xf75f33,_0x188e7d)=>{const _0x1b37f2=_0x1efdff;_0x186afc[_0x1b37f2(0x1d6)](),_0x1faeb5(_0x188e7d,_0x186afc)[_0x1b37f2(0x1d2)](_0x35c5a3=>{const _0x27dfaf=_0x1b37f2;this[_0x27dfaf(0x21c)](_0x35c5a3)||(console[_0x27dfaf(0x1c4)](_0x27dfaf(0x16b),_0x35c5a3),this[_0x27dfaf(0x1a8)](_0xc7de9c,_0x186afc));});}),this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x199),(_0xbad685,_0x477e7d)=>{const _0x1999aa=_0x1efdff;_0x1faeb5(_0x477e7d,_0x186afc)[_0x1999aa(0x1d2)](_0x570c0e=>{const _0x33f4f7=_0x1999aa;this[_0x33f4f7(0x21c)](_0x570c0e)||(console[_0x33f4f7(0x1c4)](_0x33f4f7(0x234),_0x570c0e),this[_0x33f4f7(0x1a8)](_0xc7de9c,_0x186afc));});}),this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x1db),async()=>{const _0x32efcf=_0x1efdff;try{await this[_0x32efcf(0x215)](_0x186afc,_0x40dd97),this[_0x32efcf(0x206)]();}catch(_0x596b24){this[_0x32efcf(0x21c)](_0x596b24)||(console[_0x32efcf(0x1c4)](_0x32efcf(0x173),_0x596b24),this[_0x32efcf(0x1a8)](_0xc7de9c,_0x186afc));}}),this[_0x1efdff(0x23e)](_0x186afc,_0x1efdff(0x1aa),(_0x2ab463,{showDiff:_0x4ab481})=>{const _0x449185=_0x1efdff;this[_0x449185(0x179)]=_0x4ab481;const _0x29fe04=this[_0x449185(0x19c)][_0x449185(0x16e)][this[_0x449185(0x19c)][_0x449185(0x16e)][_0x449185(0x1be)]-0x1];_0x29fe04&&_0x1faeb5(_0x29fe04,_0x186afc,_0x4ab481,_0x449185(0x1cb))[_0x449185(0x1d2)](_0x131522=>{const _0x1f07b9=_0x449185;this[_0x1f07b9(0x21c)](_0x131522)||(console[_0x1f07b9(0x1c4)](_0x1f07b9(0x238),_0x131522),this[_0x1f07b9(0x1a8)](_0xc7de9c,_0x186afc));});}),this[_0x1efdff(0x19c)]['on'](_0x1efdff(0x1d8),(_0x495d66,{reply:_0x446f1e})=>{const _0x4f9c10=_0x1efdff,_0x403c4d={'positiveCount':_0x446f1e[_0x4f9c10(0x1ea)][_0x4f9c10(0x23c)](_0x1d2b20=>_0x4f9c10(0x17d)===_0x1d2b20[_0x4f9c10(0x170)])[_0x4f9c10(0x1be)],'totalCount':_0x446f1e[_0x4f9c10(0x1ea)][_0x4f9c10(0x1be)]},_0x3bf047=this[_0x4f9c10(0x19c)][_0x4f9c10(0x186)],_0x2a442d=this[_0x4f9c10(0x19c)][_0x4f9c10(0x1ae)];_0x2a442d?this[_0x4f9c10(0x1ba)][_0x4f9c10(0x1e5)](_0x2a442d,_0x3bf047,_0x403c4d):this[_0x4f9c10(0x1ba)][_0x4f9c10(0x214)](_0x3bf047,_0x403c4d);}),this[_0x1efdff(0x1bc)](_0x186afc,_0x40dd97);try{const _0x14fa0c=await this[_0x1efdff(0x19c)][_0x1efdff(0x1c0)]();return this[_0x1efdff(0x206)](),_0x14fa0c;}catch(_0x438234){if(this[_0x1efdff(0x21c)](_0x438234))return;_0x186afc[_0x1efdff(0x1d6)](),this[_0x1efdff(0x1a8)](_0xc7de9c,_0x186afc);}}[_0x625421(0x1a1)](_0x22ba3e,_0x4b3b04,_0x3c22c5){const _0x511aa6=_0x625421,_0x5d85f2=this[_0x511aa6(0x1b9)],_0x5893d2=this[_0x511aa6(0x1b9)][_0x511aa6(0x192)][_0x511aa6(0x207)](_0x540dca),_0x30ca5d=this[_0x511aa6(0x19c)],_0x3371f3=this[_0x511aa6(0x19c)][_0x511aa6(0x16e)][this[_0x511aa6(0x19c)][_0x511aa6(0x16e)][_0x511aa6(0x1be)]-0x1],_0x749fe2=_0x3371f3[_0x511aa6(0x1ea)];_0x3371f3[_0x511aa6(0x233)](0x0,_0x511aa6(0x17d));let _0x558da7=_0x29c754({'editor':_0x5d85f2,'reply':_0x3371f3,'interaction':_0x30ca5d,'groups':_0x749fe2,'transform':!0x1,'documentCompare':_0x5893d2,'documentCompareOptions':{'anchor':_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1f6)](_0x22ba3e,0x0),'markDeletions':_0x3c22c5}});_0x558da7=this[_0x511aa6(0x1ca)](_0x558da7,_0x4b3b04);for(const _0x257ac9 of _0x558da7)this[_0x511aa6(0x1b1)](_0x4b3b04,_0x257ac9,_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1e7)][_0x511aa6(0x17a)]());const _0xe2a698=_0x30ca5d[_0x511aa6(0x200)]()[_0x511aa6(0x222)],_0x4070c3=_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1e7)][_0x511aa6(0x236)][_0x511aa6(0x1e4)](_0xe2a698),_0x44fe5={'document':_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x1e7)],'useRelations':!0x1,'padWithNoOps':!0x1},_0xa7db68=_0x3ff366(_0x558da7,_0x4070c3,_0x44fe5)[_0x511aa6(0x178)];_0x5d85f2[_0x511aa6(0x20a)][_0x511aa6(0x185)](_0x48fc85=>{const _0x1f8ea3=_0x511aa6;if(_0x48fc85[_0x1f8ea3(0x1f9)](_0x5d85f2[_0x1f8ea3(0x20a)][_0x1f8ea3(0x1e7)][_0x1f8ea3(0x182)][_0x1f8ea3(0x19a)]),_0x3c22c5)_0x5d85f2[_0x1f8ea3(0x192)][_0x1f8ea3(0x207)](_0x1f8ea3(0x244))[_0x1f8ea3(0x1ad)](_0xa7db68);else{for(const _0x33d334 of _0xa7db68)_0x33d334[_0x1f8ea3(0x23d)]=_0x5d85f2[_0x1f8ea3(0x20a)][_0x1f8ea3(0x1e7)][_0x1f8ea3(0x222)],_0x48fc85[_0x1f8ea3(0x1c2)][_0x1f8ea3(0x1f8)](_0x33d334),_0x5d85f2[_0x1f8ea3(0x20a)][_0x1f8ea3(0x1e6)](_0x33d334);}}),this[_0x511aa6(0x1b9)][_0x511aa6(0x192)][_0x511aa6(0x207)](_0x511aa6(0x1a5))[_0x511aa6(0x172)]();}[_0x625421(0x1ca)](_0x1c9585,_0x4e3fc7){const _0x3dd78b=_0x625421;return _0x1c9585[_0x3dd78b(0x23c)](_0x4a6eda=>{const _0x54d060=_0x3dd78b;if(_0x54d060(0x1ec)==_0x4a6eda[_0x54d060(0x194)]){const _0x587021=_0x4a6eda[_0x54d060(0x1cf)][_0x54d060(0x1a2)];return!_0x4e3fc7[_0x54d060(0x196)](_0x587021);}if(_0x4a6eda[_0x54d060(0x194)][_0x54d060(0x176)](_0x54d060(0x1d0))>-0x1){const _0x191284=_0x4a6eda[_0x54d060(0x177)][_0x54d060(0x1c0)][_0x54d060(0x1a2)];return!_0x4e3fc7[_0x54d060(0x196)](_0x191284);}return!0x0;});}[_0x625421(0x1b1)](_0x352555,_0x5182aa,_0x1c296f){const _0x4b07b9=_0x625421,_0x577137=_0x5182aa[_0x4b07b9(0x1d3)]();for(const _0x155f3e in _0x5182aa){const _0x20fa1c=_0x5182aa[_0x155f3e];_0x20fa1c instanceof _0x4d713f?_0x5182aa[_0x155f3e]=new _0x4d713f(_0x23722b(_0x20fa1c[_0x4b07b9(0x1c0)]),_0x23722b(_0x20fa1c[_0x4b07b9(0x20b)])):_0x20fa1c instanceof _0x413028&&(_0x5182aa[_0x155f3e]=_0x23722b(_0x20fa1c));}if([_0x4b07b9(0x211),_0x4b07b9(0x1cd),_0x4b07b9(0x188),_0x4b07b9(0x174),_0x4b07b9(0x1d9),_0x4b07b9(0x21a)][_0x4b07b9(0x19e)](_0x577137[_0x4b07b9(0x194)])){if(_0x577137[_0x4b07b9(0x205)]=!0x1,_0x577137[_0x4b07b9(0x23d)]=null,_0x4b07b9(0x188)==_0x577137[_0x4b07b9(0x194)]){const _0x449d8e=_0x577137[_0x4b07b9(0x239)],_0x3cf65d=_0x577137[_0x4b07b9(0x1d4)];new _0x29c6bb(_0x449d8e,_0x3cf65d)[_0x4b07b9(0x1b5)]();}else _0x577137[_0x4b07b9(0x1b5)]();}function _0x23722b(_0x3d4c61){const _0x8aa76a=_0x4b07b9;if(_0x8aa76a(0x22d)==_0x3d4c61[_0x8aa76a(0x1c1)][_0x8aa76a(0x16d)])return _0x3d4c61;const _0x2a471f=[];let _0x40c30b=_0x3d4c61[_0x8aa76a(0x1c1)];for(let _0x4b5d98=0x0;_0x4b5d98<_0x3d4c61[_0x8aa76a(0x1ac)][_0x8aa76a(0x1be)];_0x4b5d98++){const _0x5d051b=_0x352555[_0x8aa76a(0x207)](_0x40c30b)||0x0;_0x2a471f[_0x4b5d98]=_0x3d4c61[_0x8aa76a(0x1ac)][_0x4b5d98]+_0x5d051b,_0x40c30b=_0x40c30b[_0x8aa76a(0x1f7)](_0x3d4c61[_0x8aa76a(0x1ac)][_0x4b5d98]);}return new _0x413028(_0x1c296f,_0x2a471f,_0x3d4c61[_0x8aa76a(0x1eb)]);}}[_0x625421(0x23b)](){const _0x1ceeca=_0x625421;if(!this[_0x1ceeca(0x1f0)])return;this[_0x1ceeca(0x1d1)][_0x1ceeca(0x1be)]>0x0&&this[_0x1ceeca(0x1b6)](),this[_0x1ceeca(0x1b2)]=0x0,this[_0x1ceeca(0x179)]=!0x1;const {action:_0x2e1b45,content:_0x43f7ec,version:_0x4a95bb,mainView:_0x2077a8,aiBalloon:_0x4b4bc1}=this[_0x1ceeca(0x1f0)];_0x2077a8[_0x1ceeca(0x1ed)]=!0x1,_0x2077a8[_0x1ceeca(0x203)](),this[_0x1ceeca(0x16a)](_0x2077a8,_0x4b4bc1);const _0x95961a=_0x2077a8;_0x95961a[_0x1ceeca(0x1bb)]&&_0x95961a[_0x1ceeca(0x1bb)][_0x1ceeca(0x21f)]&&_0x95961a[_0x1ceeca(0x1bb)][_0x1ceeca(0x21f)][_0x1ceeca(0x216)]({'isOn':!0x1,'icon':_0x2341b0}),this[_0x1ceeca(0x1a6)](_0x2077a8),_0x2077a8[_0x1ceeca(0x213)](),this[_0x1ceeca(0x206)](),this[_0x1ceeca(0x240)](_0x43f7ec,_0x4a95bb,_0x2077a8,_0x4b4bc1,_0x2e1b45)[_0x1ceeca(0x1d2)](_0x402e19=>{const _0xb669cf=_0x1ceeca;this[_0xb669cf(0x21c)](_0x402e19)||console[_0xb669cf(0x1c4)](_0xb669cf(0x198),_0x402e19);});}[_0x625421(0x1a6)](_0x402bcf){const _0xd9a5bf=_0x625421,_0x55b937=_0x402bcf[_0xd9a5bf(0x220)][_0xd9a5bf(0x237)];for(;_0x55b937[_0xd9a5bf(0x1be)]>0x0;)_0x55b937[_0xd9a5bf(0x188)](_0x55b937[_0xd9a5bf(0x1c3)]);_0x402bcf[_0xd9a5bf(0x220)][_0xd9a5bf(0x1bd)]=!0x1;}[_0x625421(0x21c)](_0x152d8d){const _0x2ac739=_0x625421;return!!_0x152d8d[_0x2ac739(0x1dc)]&&_0x152d8d[_0x2ac739(0x1dc)][_0x2ac739(0x169)](_0x2ac739(0x1da));}[_0x625421(0x202)](){const _0x49ea4e=_0x625421;this[_0x49ea4e(0x1d1)]=[],this[_0x49ea4e(0x1f0)]=void 0x0,this[_0x49ea4e(0x1b2)]=0x0,this[_0x49ea4e(0x206)]();}[_0x625421(0x1b6)](){const _0x3f12d9=_0x625421;this[_0x3f12d9(0x19c)]&&this[_0x3f12d9(0x19c)][_0x3f12d9(0x20c)](),this[_0x3f12d9(0x1a3)][_0x3f12d9(0x18f)](),this[_0x3f12d9(0x19f)]=!0x1;}[_0x625421(0x1a4)](){const _0x1d76ea=_0x625421,_0x5569f0=new _0x1121e5(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]),_0x3db12=new _0x1121e5(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]),_0x2bb18d=new _0x55ee2c(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]),_0x865a02=new _0x1121e5(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)]);_0x5569f0[_0x1d76ea(0x216)]({'icon':_0x591a24,'label':_0x1db4d8(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)],_0x1d76ea(0x229)),'tooltip':!0x0,'class':_0x1d76ea(0x23f)}),_0x3db12[_0x1d76ea(0x216)]({'icon':_0x13e120,'tooltip':_0x1db4d8(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)],_0x1d76ea(0x1d7)),'class':_0x1d76ea(0x1f5)}),_0x2bb18d[_0x1d76ea(0x217)]({'tag':_0x1d76ea(0x16f),'attributes':{'class':[_0x1d76ea(0x18c)]},'children':[_0x1d76ea(0x235)]}),_0x865a02[_0x1d76ea(0x216)]({'icon':_0x44a549,'tooltip':_0x1db4d8(this[_0x1d76ea(0x1b9)][_0x1d76ea(0x193)],_0x1d76ea(0x1e8)),'class':_0x1d76ea(0x231)}),_0x5569f0[_0x1d76ea(0x17e)](_0x1d76ea(0x18d))['to'](this,_0x1d76ea(0x19f),_0x3c3e33=>!_0x3c3e33),_0x5569f0['on'](_0x1d76ea(0x187),()=>{const _0x273f4c=_0x1d76ea;this[_0x273f4c(0x23b)]();}),_0x3db12[_0x1d76ea(0x17e)](_0x1d76ea(0x18d))['to'](this,_0x1d76ea(0x19f),_0x50a977=>!_0x50a977),_0x3db12['on'](_0x1d76ea(0x187),()=>{const _0x5a3d0c=_0x1d76ea;this[_0x5a3d0c(0x21d)]();}),_0x865a02[_0x1d76ea(0x17e)](_0x1d76ea(0x18d))['to'](this,_0x1d76ea(0x19f),_0x44bd2d=>!_0x44bd2d),_0x865a02['on'](_0x1d76ea(0x187),()=>{const _0x34a415=_0x1d76ea;this[_0x34a415(0x1e9)]();}),this[_0x1d76ea(0x1a0)]=_0x3db12,this[_0x1d76ea(0x1fa)]=_0x2bb18d,this[_0x1d76ea(0x1a7)]=_0x865a02,this[_0x1d76ea(0x180)][_0x1d76ea(0x1b4)](_0x5569f0);}[_0x625421(0x21d)](){const _0x5cc5ca=_0x625421,_0x4af19c=this[_0x5cc5ca(0x1d1)][_0x5cc5ca(0x1be)];this[_0x5cc5ca(0x1b2)]<_0x4af19c-0x1&&this[_0x5cc5ca(0x1c5)](this[_0x5cc5ca(0x1b2)]+0x1);}[_0x625421(0x1e9)](){const _0x125b2f=_0x625421;this[_0x125b2f(0x1b2)]>0x0&&this[_0x125b2f(0x1c5)](this[_0x125b2f(0x1b2)]-0x1);}async[_0x625421(0x1c5)](_0x54ae5f){const _0x56308e=_0x625421;if(!this[_0x56308e(0x1f0)])return;this[_0x56308e(0x1b2)]=_0x54ae5f;const {mainView:_0x30cf92}=this[_0x56308e(0x1f0)],_0x431f84=this[_0x56308e(0x1d1)][this[_0x56308e(0x1d1)][_0x56308e(0x1be)]-0x1-this[_0x56308e(0x1b2)]];if(!_0x431f84)return;if(_0x431f84[_0x56308e(0x18a)])return this[_0x56308e(0x1a8)](_0x431f84,_0x30cf92),void this[_0x56308e(0x206)]();if(!_0x431f84[_0x56308e(0x16e)][_0x56308e(0x1be)])return;_0x30cf92[_0x56308e(0x203)](),this[_0x56308e(0x1f0)]&&this[_0x56308e(0x16a)](_0x30cf92,this[_0x56308e(0x1f0)][_0x56308e(0x209)]);const _0xe1cc7e=_0x431f84[_0x56308e(0x16e)][_0x431f84[_0x56308e(0x16e)][_0x56308e(0x1be)]-0x1];if(_0xe1cc7e){const _0x46f94c=this[_0x56308e(0x1b9)];this[_0x56308e(0x1a6)](_0x30cf92);try{const _0x4d8c77=_0x37a51c({'editor':_0x46f94c,'changeGroups':_0xe1cc7e[_0x56308e(0x1ea)],'documentContextContent':_0xe1cc7e[_0x56308e(0x168)],'showDiff':this[_0x56308e(0x179)],'trimUnchanged':!0x1});this[_0x56308e(0x1a6)](_0x30cf92),await new Promise(_0x315b90=>setTimeout(_0x315b90,0x32)),await _0x30cf92[_0x56308e(0x218)]({'parts':_0x4d8c77,'renderingStrategy':_0x56308e(0x1cb),'abortSignal':new AbortController()[_0x56308e(0x20e)]});}catch(_0x1f3595){this[_0x56308e(0x21c)](_0x1f3595)||console[_0x56308e(0x1c4)](_0x56308e(0x16c),_0x1f3595);}}this[_0x56308e(0x206)]();}[_0x625421(0x206)](){const _0x33fbd9=_0x625421;if(!this[_0x33fbd9(0x1a0)]||!this[_0x33fbd9(0x1fa)]||!this[_0x33fbd9(0x1a7)])return;const _0x35c8bc=this[_0x33fbd9(0x1d1)][_0x33fbd9(0x1be)],_0x8bd66f=_0x35c8bc>0x1,_0x444399=this[_0x33fbd9(0x1f0)]?.[_0x33fbd9(0x181)];if(_0x8bd66f){this[_0x33fbd9(0x17f)]||this[_0x33fbd9(0x22e)]||this[_0x33fbd9(0x1df)]||(this[_0x33fbd9(0x180)][_0x33fbd9(0x1b4)](this[_0x33fbd9(0x1a0)]),_0x444399?.[_0x33fbd9(0x227)](this[_0x33fbd9(0x1a0)]),this[_0x33fbd9(0x17f)]=!0x0,this[_0x33fbd9(0x180)][_0x33fbd9(0x1b4)](this[_0x33fbd9(0x1fa)]),_0x444399?.[_0x33fbd9(0x227)](this[_0x33fbd9(0x1fa)]),this[_0x33fbd9(0x22e)]=!0x0,this[_0x33fbd9(0x180)][_0x33fbd9(0x1b4)](this[_0x33fbd9(0x1a7)]),_0x444399?.[_0x33fbd9(0x227)](this[_0x33fbd9(0x1a7)]),this[_0x33fbd9(0x1df)]=!0x0);const _0x404098=_0x35c8bc-this[_0x33fbd9(0x1b2)];this[_0x33fbd9(0x1fa)][_0x33fbd9(0x1bf)]&&(this[_0x33fbd9(0x1fa)][_0x33fbd9(0x1bf)][_0x33fbd9(0x22c)]=_0x404098+'/'+_0x35c8bc),this[_0x33fbd9(0x1a0)][_0x33fbd9(0x18d)]=this[_0x33fbd9(0x1b2)]<_0x35c8bc-0x1,this[_0x33fbd9(0x1a7)][_0x33fbd9(0x18d)]=this[_0x33fbd9(0x1b2)]>0x0;}else(this[_0x33fbd9(0x17f)]||this[_0x33fbd9(0x22e)]||this[_0x33fbd9(0x1df)])&&(this[_0x33fbd9(0x180)][_0x33fbd9(0x188)](this[_0x33fbd9(0x1a0)]),_0x444399?.[_0x33fbd9(0x1a9)](this[_0x33fbd9(0x1a0)]),this[_0x33fbd9(0x17f)]=!0x1,this[_0x33fbd9(0x180)][_0x33fbd9(0x188)](this[_0x33fbd9(0x1fa)]),_0x444399?.[_0x33fbd9(0x1a9)](this[_0x33fbd9(0x1fa)]),this[_0x33fbd9(0x22e)]=!0x1,this[_0x33fbd9(0x180)][_0x33fbd9(0x188)](this[_0x33fbd9(0x1a7)]),_0x444399?.[_0x33fbd9(0x1a9)](this[_0x33fbd9(0x1a7)]),this[_0x33fbd9(0x1df)]=!0x1);}[_0x625421(0x1bc)](_0x280fc7,_0x29f411){const _0x29cd22=_0x625421;_0x280fc7[_0x29cd22(0x1c7)](),_0x29f411[_0x29cd22(0x1ee)][_0x29cd22(0x1c7)](),this[_0x29cd22(0x19f)]=!0x0;}async[_0x625421(0x1a8)](_0x40b0c2,_0x446fe3){const _0x398250=_0x625421,_0xe0f9c6=_0x1db4d8(this[_0x398250(0x1b9)][_0x398250(0x193)],_0x398250(0x1f2));_0x446fe3[_0x398250(0x1af)](_0xe0f9c6),_0x40b0c2[_0x398250(0x18a)]=!0x0,await this[_0x398250(0x1a3)][_0x398250(0x242)],_0x446fe3[_0x398250(0x18b)](),this[_0x398250(0x1f0)]?.[_0x398250(0x209)][_0x398250(0x1ee)][_0x398250(0x1ab)]&&(this[_0x398250(0x1f0)][_0x398250(0x209)][_0x398250(0x1ee)][_0x398250(0x1ab)][_0x398250(0x228)]=!0x0);}[_0x625421(0x16a)](_0x235a5a,_0x3affa9){const _0x1eb528=_0x625421;_0x235a5a[_0x1eb528(0x1cc)](),_0x3affa9[_0x1eb528(0x1ee)][_0x1eb528(0x1ab)]&&(_0x3affa9[_0x1eb528(0x1ee)][_0x1eb528(0x1ab)][_0x1eb528(0x228)]=!0x1);}async[_0x625421(0x215)](_0x51ea10,_0x121af4){const _0x1d9724=_0x625421;await this[_0x1d9724(0x1a3)][_0x1d9724(0x242)],this[_0x1d9724(0x19f)]=!0x1,_0x51ea10[_0x1d9724(0x1b3)](),_0x121af4[_0x1d9724(0x1ee)][_0x1d9724(0x1b3)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdc4216=_0x188b;function _0xe231(){const _0x58fcd5=['fire','6fOqolg','html','executeAction','current-document','hasError','868912vuGpum','connector','replyCreated','model','delegate','executeCustomAction','TEXT','args','27HCGyND','editor','version','1164765WFUYRZ','content','replies','sendRequest','5263600EZykIJ','168196FheaCv','getDocumentContext','push','1147104xNqscE','429205LHjVCt','800230upJTZJ','6mhfvhQ','Current\x20document','createReply','actionName','userMessage'];_0xe231=function(){return _0x58fcd5;};return _0xe231();}(function(_0x44f125,_0x2b45ed){const _0xb4c6a6=_0x188b,_0x38425d=_0x44f125();while(!![]){try{const _0x2faee7=-parseInt(_0xb4c6a6(0x19f))/0x1+-parseInt(_0xb4c6a6(0x19b))/0x2*(-parseInt(_0xb4c6a6(0x1a1))/0x3)+-parseInt(_0xb4c6a6(0x18b))/0x4+-parseInt(_0xb4c6a6(0x196))/0x5*(-parseInt(_0xb4c6a6(0x186))/0x6)+parseInt(_0xb4c6a6(0x19e))/0x7+parseInt(_0xb4c6a6(0x19a))/0x8+parseInt(_0xb4c6a6(0x193))/0x9*(-parseInt(_0xb4c6a6(0x1a0))/0xa);if(_0x2faee7===_0x2b45ed)break;else _0x38425d['push'](_0x38425d['shift']());}catch(_0x132747){_0x38425d['push'](_0x38425d['shift']());}}}(_0xe231,0x52255));import{AIInteraction as _0x21688f,AI_MODEL_EVENT_NAMES as _0x13ae82}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x55638a}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x267953}from'./aiactionsreply.js';function _0x188b(_0x1064c2,_0x2e9596){const _0xe2311c=_0xe231();return _0x188b=function(_0x188bdf,_0x32cf43){_0x188bdf=_0x188bdf-0x182;let _0x21ccc7=_0xe2311c[_0x188bdf];return _0x21ccc7;},_0x188b(_0x1064c2,_0x2e9596);}export class AIActionsInteraction extends _0x21688f{[_0xdc4216(0x197)];[_0xdc4216(0x195)];[_0xdc4216(0x183)];[_0xdc4216(0x192)];[_0xdc4216(0x184)];[_0xdc4216(0x18e)];[_0xdc4216(0x18a)]=!0x1;constructor(_0x152c50){const _0x8b03ea=_0xdc4216;super(_0x152c50),this[_0x8b03ea(0x197)]=_0x152c50[_0x8b03ea(0x197)],this[_0x8b03ea(0x195)]=_0x152c50[_0x8b03ea(0x195)],this[_0x8b03ea(0x183)]=_0x152c50[_0x8b03ea(0x183)],this[_0x8b03ea(0x192)]=_0x152c50[_0x8b03ea(0x192)],this[_0x8b03ea(0x184)]=_0x152c50[_0x8b03ea(0x184)],this[_0x8b03ea(0x18e)]=_0x152c50[_0x8b03ea(0x18e)];}async[_0xdc4216(0x199)](){const _0x18c0a3=_0xdc4216;return this[_0x18c0a3(0x183)]?this[_0x18c0a3(0x18c)][_0x18c0a3(0x188)]({'content':this[_0x18c0a3(0x197)],'actionName':this[_0x18c0a3(0x183)],'args':this[_0x18c0a3(0x192)]}):this[_0x18c0a3(0x18c)][_0x18c0a3(0x190)]({'content':this[_0x18c0a3(0x197)],'message':this[_0x18c0a3(0x184)],'model':this[_0x18c0a3(0x18e)],'outputFormat':_0x18c0a3(0x187)});}[_0xdc4216(0x19c)](){const _0x27a71e=_0xdc4216;return{'type':_0x55638a[_0x27a71e(0x191)],'content':this[_0x27a71e(0x197)],'version':this[_0x27a71e(0x195)],'label':_0x27a71e(0x1a2),'uiId':_0x27a71e(0x189)};}[_0xdc4216(0x182)](_0x30a9a4){const _0x5f3c63=_0xdc4216,_0x5d4742=new _0x267953({'editor':this[_0x5f3c63(0x194)],'documentContextContent':this[_0x5f3c63(0x197)],..._0x30a9a4});return this[_0x5f3c63(0x198)][_0x5f3c63(0x19d)](_0x5d4742),_0x5d4742[_0x5f3c63(0x18f)](..._0x13ae82)['to'](this),this[_0x5f3c63(0x185)](_0x5f3c63(0x18d),_0x5d4742),_0x5d4742;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x369813=_0x54a2;(function(_0x2d0679,_0x1a7fc3){const _0x20506e=_0x54a2,_0x34db77=_0x2d0679();while(!![]){try{const _0x1d3cc2=parseInt(_0x20506e(0x1e9))/0x1+parseInt(_0x20506e(0x1de))/0x2*(-parseInt(_0x20506e(0x1f1))/0x3)+parseInt(_0x20506e(0x1e7))/0x4+parseInt(_0x20506e(0x1ed))/0x5+parseInt(_0x20506e(0x1db))/0x6+-parseInt(_0x20506e(0x1e2))/0x7+-parseInt(_0x20506e(0x1dc))/0x8*(-parseInt(_0x20506e(0x1ef))/0x9);if(_0x1d3cc2===_0x1a7fc3)break;else _0x34db77['push'](_0x34db77['shift']());}catch(_0x193f30){_0x34db77['push'](_0x34db77['shift']());}}}(_0x3ef4,0x99957));import{AIReply as _0xb315c9}from'../../aicore/model/aireply.js';import{getAttribute as _0x21b5b0}from'../../aicore/utils/htmlparser.js';function _0x54a2(_0x22e5e4,_0x5bfca3){const _0x3ef413=_0x3ef4();return _0x54a2=function(_0x54a237,_0x3b3dfe){_0x54a237=_0x54a237-0x1d8;let _0x2b5162=_0x3ef413[_0x54a237];return _0x2b5162;},_0x54a2(_0x22e5e4,_0x5bfca3);}import{uid as _0x21a8c7}from'ckeditor5/src/utils.js';import{diffArrays as _0x26ffe4}from'diff';function _0x3ef4(){const _0x41340b=['childNodes','isDone','children','1815975SxKMJJ','map','387RfNIVd','documentContextContent','21jhtnNw','value','modified','data-id','new','_getDifferentChangeGroups','node','parsedContent','2759142dNSOET','104248kLPECl','pop','144546rKqyig','cloneNode','changeGroups','added','5463948RpTOSy','removed','parsedMergedContent','updateChangeGroups','pending','365036ZAHwse','length','440910bAlwSB'];_0x3ef4=function(){return _0x41340b;};return _0x3ef4();}export class AIActionsReply extends _0xb315c9{[_0x369813(0x1e5)](){const _0x11d9cb=_0x369813;if(this[_0x11d9cb(0x1e4)]=this[_0x11d9cb(0x1da)][_0x11d9cb(0x1df)](!0x0),0x0==this[_0x11d9cb(0x1e4)][_0x11d9cb(0x1ea)][_0x11d9cb(0x1e8)])return void(this[_0x11d9cb(0x1e0)]=[]);const _0x463d56=this[_0x11d9cb(0x1f0)][_0x11d9cb(0x1ec)][_0x11d9cb(0x1ee)](_0x5bdc57=>({'node':_0x5bdc57,'id':_0x21b5b0(_0x5bdc57,_0x11d9cb(0x1f4))})),_0x249136=this[_0x11d9cb(0x1e4)][_0x11d9cb(0x1ec)][_0x11d9cb(0x1ee)](_0xbcec5b=>({'node':_0xbcec5b,'id':_0x21b5b0(_0xbcec5b,_0x11d9cb(0x1f4))||_0x21a8c7()})),_0x2d5a92=_0x26ffe4(_0x463d56,_0x249136,{'comparator':(_0x261d5e,_0x1cca1d)=>_0x261d5e['id']==_0x1cca1d['id'],'oneChangePerToken':!0x0});if(!this[_0x11d9cb(0x1eb)]){for(;_0x2d5a92[_0x11d9cb(0x1e8)]&&_0x2d5a92[_0x2d5a92[_0x11d9cb(0x1e8)]-0x1][_0x11d9cb(0x1e3)];)_0x2d5a92[_0x11d9cb(0x1dd)]();}const _0x17345b=_0x2d5a92[_0x11d9cb(0x1ee)](_0x4be590=>{const _0x5371b3=_0x11d9cb,_0x45541a=_0x4be590[_0x5371b3(0x1e1)]?_0x5371b3(0x1f5):_0x4be590[_0x5371b3(0x1e3)]?_0x5371b3(0x1e3):_0x5371b3(0x1f3);return{'node':_0x4be590[_0x5371b3(0x1f2)][0x0][_0x5371b3(0x1d9)],'type':_0x45541a,'id':_0x4be590[_0x5371b3(0x1f2)][0x0]['id']};});this[_0x11d9cb(0x1e0)]=[{'changes':_0x17345b,'state':_0x11d9cb(0x1e6),'index':0x0}];}[_0x369813(0x1d8)](_0x321e57,_0x5bde4d){return _0x5bde4d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x106f56=_0x14e4;(function(_0x14a157,_0x356edc){var _0x5c4086=_0x14e4,_0x2cd90f=_0x14a157();while(!![]){try{var _0x15f2bb=parseInt(_0x5c4086(0x10d))/0x1*(parseInt(_0x5c4086(0x10e))/0x2)+parseInt(_0x5c4086(0x112))/0x3*(-parseInt(_0x5c4086(0x118))/0x4)+parseInt(_0x5c4086(0x107))/0x5*(-parseInt(_0x5c4086(0x109))/0x6)+parseInt(_0x5c4086(0x10f))/0x7+parseInt(_0x5c4086(0x113))/0x8*(-parseInt(_0x5c4086(0x117))/0x9)+-parseInt(_0x5c4086(0x104))/0xa*(-parseInt(_0x5c4086(0x10b))/0xb)+parseInt(_0x5c4086(0x106))/0xc*(parseInt(_0x5c4086(0x116))/0xd);if(_0x15f2bb===_0x356edc)break;else _0x2cd90f['push'](_0x2cd90f['shift']());}catch(_0x64ca29){_0x2cd90f['push'](_0x2cd90f['shift']());}}}(_0x5c83,0x1d0c5));import{Plugin as _0x170f84}from'ckeditor5/src/core.js';function _0x14e4(_0x3710f5,_0x522f23){var _0x5c835f=_0x5c83();return _0x14e4=function(_0x14e416,_0x44e794){_0x14e416=_0x14e416-0x104;var _0x5c9b52=_0x5c835f[_0x14e416];return _0x5c9b52;},_0x14e4(_0x3710f5,_0x522f23);}import{CKEditorError as _0x191e24}from'ckeditor5/src/utils.js';function _0x5c83(){var _0x3311b1=['36ufeShO','619156EBbtWl','afterInit','10sBKSYI','AIRequestError','581568fMpKcT','5yAswtf','AIAdapter','1077264vCVrgg','isOfficialPlugin','2206083iyfmYA','textAdapter','71gjqpdH','5804MoSxHj','1212309vZfvjf','pluginName','isPremiumPlugin','3xBCbOl','349864dXariy','name','aiadapter-text-adapter-not-set','13xYHdcW'];_0x5c83=function(){return _0x3311b1;};return _0x5c83();}export class AIAdapter extends _0x170f84{static get[_0x106f56(0x110)](){var _0x41c168=_0x106f56;return _0x41c168(0x108);}static get[_0x106f56(0x10a)](){return!0x0;}static get[_0x106f56(0x111)](){return!0x0;}[_0x106f56(0x119)](){var _0xcc2588=_0x106f56;if(!this[_0xcc2588(0x10c)])throw new _0x191e24(_0xcc2588(0x115),null);}}export class AIRequestError extends Error{constructor(_0x531b38){var _0x28bc92=_0x106f56;super(_0x531b38),this[_0x28bc92(0x114)]=_0x28bc92(0x105);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a8303=_0x3abb;function _0x4c40(){const _0x53dad3=['AI_ERROR_GET_PARAMETERS','get','name','AI_ERROR_GET_HEADERS','makeRequest','resolve','requires','9711541ulqZdV','reject','_prepareRequestParameters','aitextadapter-send-request-failed','426BsLxmV','AbortError','2215276hjUewO','1400czezKn','27nkXqUY','signal','abortController','40554bfvPmB','object','aborted','textAdapter','init','_prepareRequestHeaders','20107307vkAbPd','plugins','721432NLXbtY','sendRequest','application/json','8inLXSp','710ftnztO','editor','59958Kdhkhu','error','locale','abort','assign','catch'];_0x4c40=function(){return _0x53dad3;};return _0x4c40();}(function(_0x4b7739,_0x39ecc1){const _0x16107b=_0x3abb,_0x55b330=_0x4b7739();while(!![]){try{const _0x3467fd=-parseInt(_0x16107b(0x92))/0x1+-parseInt(_0x16107b(0x8a))/0x2*(parseInt(_0x16107b(0x87))/0x3)+-parseInt(_0x16107b(0x85))/0x4+parseInt(_0x16107b(0x96))/0x5*(parseInt(_0x16107b(0x83))/0x6)+parseInt(_0x16107b(0x7f))/0x7*(parseInt(_0x16107b(0x95))/0x8)+parseInt(_0x16107b(0x98))/0x9*(-parseInt(_0x16107b(0x86))/0xa)+parseInt(_0x16107b(0x90))/0xb;if(_0x3467fd===_0x39ecc1)break;else _0x55b330['push'](_0x55b330['shift']());}catch(_0x300247){_0x55b330['push'](_0x55b330['shift']());}}}(_0x4c40,0xcbd8e));import{Plugin as _0x1e5603}from'ckeditor5/src/core.js';import{CKEditorError as _0x4a0157}from'ckeditor5/src/utils.js';import{AIAdapter as _0x227235,AIRequestError as _0x54d842}from'./aiadapter.js';import{getTranslation as _0x281542}from'../utils/common-translations.js';function _0x3abb(_0xe0837c,_0x22841d){const _0x4c40c6=_0x4c40();return _0x3abb=function(_0x3abbd2,_0x2164ba){_0x3abbd2=_0x3abbd2-0x75;let _0x18cc72=_0x4c40c6[_0x3abbd2];return _0x18cc72;},_0x3abb(_0xe0837c,_0x22841d);}export class AITextAdapter extends _0x1e5603{[_0x1a8303(0x89)];static get[_0x1a8303(0x7e)](){return[_0x227235];}constructor(_0x583296){const _0x406f8d=_0x1a8303;super(_0x583296),this[_0x406f8d(0x89)]=new AbortController();}[_0x1a8303(0x8e)](){const _0x57d0e2=_0x1a8303;this[_0x57d0e2(0x97)][_0x57d0e2(0x91)][_0x57d0e2(0x79)](_0x227235)[_0x57d0e2(0x8d)]=this;}[_0x1a8303(0x75)](){const _0x35aff1=_0x1a8303;this[_0x35aff1(0x89)][_0x35aff1(0x88)][_0x35aff1(0x8c)]||(this[_0x35aff1(0x89)][_0x35aff1(0x75)](),this[_0x35aff1(0x89)]=new AbortController());}async[_0x1a8303(0x7c)](_0x84fbaa){const _0x46f0b9=_0x1a8303;return this[_0x46f0b9(0x93)](_0x84fbaa)[_0x46f0b9(0x77)](_0x366ab1=>{const _0x20195d=_0x46f0b9;if(_0x366ab1 instanceof _0x54d842)return Promise[_0x20195d(0x80)](_0x366ab1);if(_0x20195d(0x84)==_0x366ab1[_0x20195d(0x7a)])return Promise[_0x20195d(0x7d)]();throw console[_0x20195d(0x99)](_0x366ab1),new _0x4a0157(_0x20195d(0x82),null);});}async[_0x1a8303(0x8f)](_0x5e950c,_0x3a5863){const _0xac984b=_0x1a8303,_0x1f9312=this[_0xac984b(0x97)][_0xac984b(0x9a)],_0x31f03f={'Content-Type':_0xac984b(0x94)};if(_0xac984b(0x8b)==typeof _0x5e950c)Object[_0xac984b(0x76)](_0x31f03f,_0x5e950c);else{if(_0x5e950c)try{const _0x53b278=await _0x5e950c(_0x3a5863);Object[_0xac984b(0x76)](_0x31f03f,_0x53b278);}catch{return Promise[_0xac984b(0x80)](new _0x54d842(_0x281542(_0x1f9312,_0xac984b(0x7b))));}}return _0x31f03f;}async[_0x1a8303(0x81)](_0x19e05f,_0xf56837){const _0x4f48b1=_0x1a8303,_0x41d276=this[_0x4f48b1(0x97)][_0x4f48b1(0x9a)];if(_0x4f48b1(0x8b)==typeof _0x19e05f)return _0x19e05f;try{return await _0x19e05f(_0xf56837);}catch{return Promise[_0x4f48b1(0x80)](new _0x54d842(_0x281542(_0x41d276,_0x4f48b1(0x78))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x408ae4=_0x3895;(function(_0x1d0c00,_0x4ca171){const _0x3b7782=_0x3895,_0x2a3ec5=_0x1d0c00();while(!![]){try{const _0x4c601d=parseInt(_0x3b7782(0x168))/0x1*(parseInt(_0x3b7782(0x182))/0x2)+parseInt(_0x3b7782(0x189))/0x3*(parseInt(_0x3b7782(0x164))/0x4)+parseInt(_0x3b7782(0x179))/0x5+-parseInt(_0x3b7782(0x153))/0x6+-parseInt(_0x3b7782(0x14f))/0x7+parseInt(_0x3b7782(0x151))/0x8*(parseInt(_0x3b7782(0x163))/0x9)+parseInt(_0x3b7782(0x15c))/0xa;if(_0x4c601d===_0x4ca171)break;else _0x2a3ec5['push'](_0x2a3ec5['shift']());}catch(_0x36d8ba){_0x2a3ec5['push'](_0x2a3ec5['shift']());}}}(_0x162b,0x87d53));import{AITextAdapter as _0x2842b8}from'./aitextadapter.js';function _0x3895(_0x179362,_0x16cdd8){const _0x162b64=_0x162b();return _0x3895=function(_0x3895ab,_0x35f728){_0x3895ab=_0x3895ab-0x140;let _0x1b7e62=_0x162b64[_0x3895ab];return _0x1b7e62;},_0x3895(_0x179362,_0x16cdd8);}import{AIRequestError as _0x1d5c07}from'./aiadapter.js';function _0x162b(){const _0x1ef700=['bytes','_readAsyncIterableResponse','_prepareRequestParameters','map','_readStreamableResponse','json','39KPFMbo','text','generations','AI_ERROR_UNSUPPORTED_MODEL','_prepareRequestHeaders','completion','utf-8','AWSTextAdapter','signal','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.','bedrock-2023-05-31','_processAWSRequest','ai.assistant.adapter.aws.requestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','anthropic.claude-v2','getReader','_getGeneratedText','split','parse','ai.assistant.adapter.aws.requestParameters','ai21.j2','_processProxyRequest','1629390ecUtSZ','send','2491240WfvIdG','define','3613200fUbqOi','filter','get','_requestHeaders','application/json','pluginName','chunk','POST','getModelFamily','2053710WvXPpY','preparePrompt','generation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.assistant.adapter.aws.bedrockClientConfig','_requestParameters','read','9qzhenS','43532cUzduu','editor','join','sendRequest','239LeUTAT','<<SYS>>\x0a','length','decode','anthropic.claude','_apiUrl','ai.assistant.adapter.aws.apiUrl','cohere.command','resolve','\x0a\x0aAssistant:','\x0a[/INST]','completions','Human:\x0a','config','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.','body','data','392325odXmtc','test','stringify','abortController','meta.llama','Instruction:\x0a','_bedrockClientConfig','locale','_readStaticResponse','5478gmRnLj'];_0x162b=function(){return _0x1ef700;};return _0x162b();}import{BedrockRuntimeClient as _0x1d4921,InvokeModelCommand as _0x62852a,InvokeModelWithResponseStreamCommand as _0x335377}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x37aff3}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2842b8{[_0x408ae4(0x16d)];[_0x408ae4(0x156)];[_0x408ae4(0x17f)];[_0x408ae4(0x161)];static get[_0x408ae4(0x158)](){const _0x31dbdb=_0x408ae4;return _0x31dbdb(0x140);}constructor(_0x45a3eb){const _0x379143=_0x408ae4;super(_0x45a3eb),_0x45a3eb[_0x379143(0x175)][_0x379143(0x155)](_0x379143(0x14c))||_0x45a3eb[_0x379143(0x175)][_0x379143(0x152)](_0x379143(0x14c),{'model':_0x379143(0x147),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x379143(0x143),'stream':!0x0}),this[_0x379143(0x16d)]=_0x45a3eb[_0x379143(0x175)][_0x379143(0x155)](_0x379143(0x16e)),this[_0x379143(0x17f)]=_0x45a3eb[_0x379143(0x175)][_0x379143(0x155)](_0x379143(0x160)),this[_0x379143(0x156)]=_0x45a3eb[_0x379143(0x175)][_0x379143(0x155)](_0x379143(0x145)),this[_0x379143(0x161)]=_0x45a3eb[_0x379143(0x175)][_0x379143(0x155)](_0x379143(0x14c));}async[_0x408ae4(0x167)]({query:_0x99dac4,context:_0x13bc26,onData:_0x179d90,actionId:_0x16e539}){const _0x37aa50=_0x408ae4,{model:_0x2bdc22,stream:_0x53311b,..._0x5328c4}=await this[_0x37aa50(0x185)](this[_0x37aa50(0x161)],_0x16e539),_0x20f310={'prompt':await this[_0x37aa50(0x15d)](_0x99dac4,_0x13bc26,_0x2bdc22,_0x16e539),..._0x5328c4};this[_0x37aa50(0x16d)]?await this[_0x37aa50(0x14e)](_0x20f310,_0x2bdc22,_0x53311b,_0x179d90,_0x16e539):await this[_0x37aa50(0x144)](_0x20f310,_0x2bdc22,_0x53311b,_0x179d90);}async[_0x408ae4(0x15d)](_0x4745f6,_0x2905f5,_0x15b751,_0x52c4d9){const _0x3b6eb0=_0x408ae4;let _0x3cfb66,_0x238ea5;return _0x2905f5?(_0x3cfb66=_0x3b6eb0(0x176),_0x238ea5=_0x3b6eb0(0x17e)+_0x4745f6+_0x3b6eb0(0x15f)+_0x2905f5):(_0x3cfb66=_0x3b6eb0(0x142),_0x238ea5=_0x4745f6),_0x3b6eb0(0x17d)==this[_0x3b6eb0(0x15b)](_0x15b751)?_0x3b6eb0(0x169)+_0x3cfb66+_0x3b6eb0(0x146)+_0x238ea5+_0x3b6eb0(0x172):_0x3b6eb0(0x174)+_0x3cfb66+'\x0a'+_0x238ea5+_0x3b6eb0(0x171);}[_0x408ae4(0x15b)](_0x3904d1){const _0x5842bd=_0x408ae4;if(/^anthropic\.claude/[_0x5842bd(0x17a)](_0x3904d1))return _0x5842bd(0x16c);if(/^ai21\.j2/[_0x5842bd(0x17a)](_0x3904d1))return _0x5842bd(0x14d);if(/^cohere\.command/[_0x5842bd(0x17a)](_0x3904d1))return _0x5842bd(0x16f);if(/^meta\.llama/[_0x5842bd(0x17a)](_0x3904d1))return _0x5842bd(0x17d);throw new _0x1d5c07(_0x37aff3(this[_0x5842bd(0x165)][_0x5842bd(0x180)],_0x5842bd(0x18c),_0x3904d1));}async[_0x408ae4(0x14e)](_0xcecda6,_0x447eea,_0x5ac539,_0x294a52,_0x3f0f92){const _0x4cdc96=_0x408ae4,_0x29dd80={'method':_0x4cdc96(0x15a),'headers':await this[_0x4cdc96(0x18d)](this[_0x4cdc96(0x156)],_0x3f0f92),'body':JSON[_0x4cdc96(0x17b)]({..._0xcecda6,'model':_0x447eea,'stream':_0x5ac539}),'signal':this[_0x4cdc96(0x17c)][_0x4cdc96(0x141)]},_0x3fd6b5=await fetch(this[_0x4cdc96(0x16d)],_0x29dd80);_0x5ac539?await this[_0x4cdc96(0x187)](_0x3fd6b5,_0x447eea,_0x294a52):await this[_0x4cdc96(0x181)](_0x3fd6b5,_0x447eea,_0x294a52);}async[_0x408ae4(0x144)](_0x5e7382,_0x5128a2,_0x3af638,_0x327f18){const _0x14d725=_0x408ae4,_0x474b81=new _0x1d4921(this[_0x14d725(0x17f)]),_0x2e2262={'body':JSON[_0x14d725(0x17b)](_0x5e7382),'contentType':_0x14d725(0x157),'accept':_0x14d725(0x157),'modelId':_0x5128a2};let _0x372f62;if(_0x3af638){const _0x3f7a94=new _0x335377(_0x2e2262);_0x372f62=await _0x474b81[_0x14d725(0x150)](_0x3f7a94,{'abortSignal':this[_0x14d725(0x17c)][_0x14d725(0x141)]}),await this[_0x14d725(0x184)](_0x372f62,_0x5128a2,_0x327f18);}else{const _0x4e18c1=new _0x62852a(_0x2e2262);_0x372f62=await _0x474b81[_0x14d725(0x150)](_0x4e18c1,{'abortSignal':this[_0x14d725(0x17c)][_0x14d725(0x141)]}),await this[_0x14d725(0x181)](_0x372f62,_0x5128a2,_0x327f18);}}async[_0x408ae4(0x184)](_0x26a9b3,_0x388ed5,_0x200b30){const _0x1d88d3=_0x408ae4,_0x553882=_0x26a9b3[_0x1d88d3(0x177)],_0x4a6aa1=new TextDecoder(_0x1d88d3(0x18f));let _0x2a5e82='';for await(const _0x1088d2 of _0x553882)if(_0x1088d2[_0x1d88d3(0x159)]){const _0x4e4124=_0x4a6aa1[_0x1d88d3(0x16b)](_0x1088d2[_0x1d88d3(0x159)][_0x1d88d3(0x183)]),_0x5af81e=JSON[_0x1d88d3(0x14b)](_0x4e4124);_0x2a5e82+=this[_0x1d88d3(0x149)](_0x5af81e,_0x388ed5),_0x200b30(_0x2a5e82);}return Promise[_0x1d88d3(0x170)]();}async[_0x408ae4(0x187)](_0x14391b,_0x36e167,_0x5a7d8f){const _0x5adb15=_0x408ae4,_0x449e4b=_0x14391b[_0x5adb15(0x177)],_0x109be8=new TextDecoder(_0x5adb15(0x18f)),_0x3db189=_0x449e4b[_0x5adb15(0x148)]();let _0x38b8cb='',_0x432b25='',_0x443aaa=!0x1;for(;!_0x443aaa;){const {done:_0x5e15f0,value:_0x9f629b}=await _0x3db189[_0x5adb15(0x162)]();if(_0x443aaa=_0x5e15f0,_0x443aaa)break;const _0x3468a5=(_0x38b8cb+_0x109be8[_0x5adb15(0x16b)](_0x9f629b))[_0x5adb15(0x14a)]('\x0a')[_0x5adb15(0x186)](_0x43d7f4=>{const _0x1d500d=_0x5adb15;try{return _0x38b8cb='',JSON[_0x1d500d(0x14b)](_0x43d7f4);}catch{return _0x38b8cb=_0x43d7f4,null;}})[_0x5adb15(0x154)](_0x3df6d4=>null!==_0x3df6d4);_0x3468a5[_0x5adb15(0x16a)]&&(_0x432b25+=_0x3468a5[_0x5adb15(0x186)](_0x501d69=>this[_0x5adb15(0x149)](_0x501d69,_0x36e167))[_0x5adb15(0x166)](''),_0x5a7d8f(_0x432b25));}return Promise[_0x5adb15(0x170)]();}async[_0x408ae4(0x181)](_0x1a971b,_0x2aa0e9,_0x464524){const _0xd95394=_0x408ae4;let _0x14fcb4;return _0x14fcb4=_0x1a971b instanceof Response?await _0x1a971b[_0xd95394(0x188)]():JSON[_0xd95394(0x14b)](new TextDecoder(_0xd95394(0x18f))[_0xd95394(0x16b)](_0x1a971b[_0xd95394(0x177)])),(_0x464524(this[_0xd95394(0x149)](_0x14fcb4,_0x2aa0e9)),Promise[_0xd95394(0x170)]());}[_0x408ae4(0x149)](_0x31afb2,_0x27b79f){const _0x497a3c=_0x408ae4;switch(this[_0x497a3c(0x15b)](_0x27b79f)){case _0x497a3c(0x16c):return _0x31afb2[_0x497a3c(0x18e)];case _0x497a3c(0x14d):return _0x31afb2[_0x497a3c(0x173)][0x0][_0x497a3c(0x178)][_0x497a3c(0x18a)];case _0x497a3c(0x16f):return _0x31afb2[_0x497a3c(0x18b)][0x0][_0x497a3c(0x18a)];case _0x497a3c(0x17d):return _0x31afb2[_0x497a3c(0x15e)];}}}
|