@ckeditor/ckeditor5-ai 47.0.0-alpha.1 → 47.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +59 -38
- package/dist/index.css +77 -39
- 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/contexts.json +40 -1
- package/lang/translations/ar.po +171 -171
- package/lang/translations/bg.po +155 -155
- package/lang/translations/bn.po +155 -155
- package/lang/translations/ca.po +155 -155
- package/lang/translations/cs.po +159 -159
- package/lang/translations/da.po +155 -155
- package/lang/translations/de.po +155 -155
- package/lang/translations/el.po +155 -155
- package/lang/translations/es.po +155 -155
- package/lang/translations/et.po +155 -155
- package/lang/translations/fi.po +155 -155
- package/lang/translations/fr.po +155 -155
- package/lang/translations/he.po +155 -155
- package/lang/translations/hi.po +155 -155
- package/lang/translations/hu.po +155 -155
- package/lang/translations/id.po +151 -151
- package/lang/translations/it.po +155 -155
- package/lang/translations/ja.po +151 -151
- package/lang/translations/ko.po +151 -151
- package/lang/translations/lt.po +159 -159
- package/lang/translations/lv.po +159 -159
- package/lang/translations/ms.po +151 -151
- package/lang/translations/nl.po +155 -155
- package/lang/translations/no.po +155 -155
- package/lang/translations/pl.po +159 -159
- package/lang/translations/pt-br.po +155 -155
- package/lang/translations/pt.po +155 -155
- package/lang/translations/ro.po +159 -159
- package/lang/translations/ru.po +159 -159
- package/lang/translations/sk.po +159 -159
- package/lang/translations/sr.po +159 -159
- package/lang/translations/sv.po +155 -155
- package/lang/translations/th.po +151 -151
- package/lang/translations/tr.po +155 -155
- package/lang/translations/uk.po +159 -159
- package/lang/translations/vi.po +151 -151
- package/lang/translations/zh-cn.po +151 -151
- package/lang/translations/zh.po +151 -151
- package/package.json +16 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.d.ts +2 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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.d.ts +2 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +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 +5 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +2 -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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +31 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +37 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +2 -19
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +24 -2
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +30 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
- 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.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.d.ts +3 -2
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
- package/theme/aichat/aichat-controls.css +4 -0
- package/theme/aichat/aichatfeed.css +10 -2
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/src/aireviewmode/utils/common-translations.d.ts +0 -9
- package/src/aireviewmode/utils/common-translations.js +0 -23
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.3",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,24 +29,25 @@
|
|
|
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.3",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.3",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.3",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.0.0-alpha.3",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.0.0-alpha.3",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.0.0-alpha.3",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.3",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.0.0-alpha.3",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.3",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.0.0-alpha.3",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.0.0-alpha.3",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.3",
|
|
44
|
+
"ckeditor5": "47.0.0-alpha.3",
|
|
45
|
+
"ckeditor5-collaboration": "47.0.0-alpha.3",
|
|
46
46
|
"es-toolkit": "1.39.5",
|
|
47
47
|
"eventsource-parser": "3.0.2",
|
|
48
48
|
"htmlparser2": "10.0.0",
|
|
49
49
|
"morphdom": "2.7.7",
|
|
50
|
+
"diff": "8.0.2",
|
|
50
51
|
"dom-serializer": "2.0.0",
|
|
51
52
|
"domutils": "3.2.2",
|
|
52
53
|
"domhandler": "5.0.3"
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f9369=_0x4cdc;function _0x2e1e(){const _0x3c2295=['44NUlAqS','requires','_wrapWithCommonAncestors','93422zxVdXy','documentContextContent','_setupCustomViews','304KeLDNI','hasPendingParts','stop','_customViews','_balloonShowDiff','getFirstPosition','clearLoading','_applyOperationsAsSuggestions','updateContent','13632410RITpQE','toggleSuggestionDisplayMode','_clearLoadingState','_isAbortError','icon','close','processor','interactionFinished','_insertSuggestion','schema','replyContentUpdated','3517602vDswcS','replies','AIBalloon','root','isOfficialPlugin','isCollapsed','batch','data','message','catch','plugins','insertSuggestion','showLoader','694kjxJpE','getOperations','remove','first','addOperation','document','locale','isEnabled','previousInteractions','getSelectedContent','isBusy','model','getCommonAncestor','287465XoHsGr','1912MJJlvn','balloonView','startsWith','push','random','change','getDocumentContext','map','6973875XCRGge','set','add','Error\x20refreshing\x20interaction:','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','Error\x20updating\x20content\x20in\x20replyCreated:','_children','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','warn','AIConnector','replyCreated','bodyView','pluginName','_clearInteractionHistory','setSelection','_applySuggestion','_interaction','stickiness','history','_clone','stopInteraction','getSelectionAsFragment','toData','documentFragment','listenTo','_currentInteractionParams','AI_ACTIONS_TRY_AGAIN','getAncestors','modelToViewWithIds','executeAction','get','getFirstRange','TrackChangesEditing','static','queueEmptyPromise','_aiConnector','slice','_clearSuggestionContent','end','focus','_anchorOperation','isPremiumPlugin','_appendChild','ai-request-aborted','getLimitElement','selection','_promiseQueue','error','_stopInteraction','_setLoadingState','TableSelection','Error\x20updating\x20content\x20in\x20replyContentUpdated:','731238kNlaYb','abort','baseVersion','_createInteraction','dialogClosed','getSelectedTableCells','changeGroups','path','No\x20current\x20interaction\x20to\x20refresh','_previousInteractions','ck-ai-custom-action-button','_executeActionOnTable','streaming','has','hideLoader','getSelectedBlocks','version','_executeActionRegular','main','applySuggestion','enqueue','getRanges','open','_refreshInteraction','execute','start','operationsA','applyOperation','setLoading','stopListening','length','editor','bind','AIActions'];_0x2e1e=function(){return _0x3c2295;};return _0x2e1e();}(function(_0x34bed7,_0x23af8a){const _0x118a2f=_0x4cdc,_0x1508cd=_0x34bed7();while(!![]){try{const _0x44b820=-parseInt(_0x118a2f(0x148))/0x1*(parseInt(_0x118a2f(0x156))/0x2)+-parseInt(_0x118a2f(0x192))/0x3+-parseInt(_0x118a2f(0x1b4))/0x4*(-parseInt(_0x118a2f(0x155))/0x5)+parseInt(_0x118a2f(0x13b))/0x6+parseInt(_0x118a2f(0x1b7))/0x7*(-parseInt(_0x118a2f(0x1ba))/0x8)+-parseInt(_0x118a2f(0x15e))/0x9+parseInt(_0x118a2f(0x1c3))/0xa;if(_0x44b820===_0x23af8a)break;else _0x1508cd['push'](_0x1508cd['shift']());}catch(_0x1da5ed){_0x1508cd['push'](_0x1508cd['shift']());}}}(_0x2e1e,0x5fdfa));import{Plugin as _0x5bab14}from'ckeditor5/src/core.js';import{AIConnector as _0xc47357}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x5f0984}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5cf98a,ButtonView as _0x46b6d7,ViewCollection as _0x1ddbdf}from'ckeditor5/src/ui.js';function _0x4cdc(_0x5c0242,_0x284cf4){const _0x2e1e41=_0x2e1e();return _0x4cdc=function(_0x4cdc5a,_0x1f42a5){_0x4cdc5a=_0x4cdc5a-0x137;let _0x1e4d5e=_0x2e1e41[_0x4cdc5a];return _0x1e4d5e;},_0x4cdc(_0x5c0242,_0x284cf4);}import{AIEditing as _0x37e486}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5a44ec}from'./model/aiactionsinteraction.js';import{first as _0x3eeb44}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1bd575,IconRefresh as _0x18195f}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x47a004}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0xbd35e9}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4c2821}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x5346e3}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x18b629}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x9fddd}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x569879,ModelRange as _0x442a49,ModelPosition as _0x5920ae,transformOperationSets as _0x73d500}from'ckeditor5/src/engine.js';export class AIActions extends _0x5bab14{static get[_0x4f9369(0x1b5)](){return[_0xc47357,_0x5cf98a,_0x37e486,_0x47a004,_0x18b629];}static get[_0x4f9369(0x16a)](){const _0x556230=_0x4f9369;return _0x556230(0x1b3);}static get[_0x4f9369(0x13f)](){return!0x0;}static get[_0x4f9369(0x187)](){return!0x0;}[_0x4f9369(0x181)];[_0x4f9369(0x19b)]=[];[_0x4f9369(0x177)];[_0x4f9369(0x1be)]=!0x1;[_0x4f9369(0x1bd)]=new _0x1ddbdf();[_0x4f9369(0x18c)];constructor(_0x49b3c0){const _0x2089cf=_0x4f9369;super(_0x49b3c0),this[_0x2089cf(0x181)]=this[_0x2089cf(0x1b1)][_0x2089cf(0x145)][_0x2089cf(0x17c)](_0x2089cf(0x167)),this[_0x2089cf(0x15f)](_0x2089cf(0x152),!0x1),this[_0x2089cf(0x18c)]=new _0xbd35e9(),this[_0x2089cf(0x1b9)]();}[_0x4f9369(0x172)](){const _0x390765=_0x4f9369;this[_0x390765(0x18e)]();}get[_0x4f9369(0x150)](){const _0x11cb55=_0x4f9369;return this[_0x11cb55(0x19b)];}async[_0x4f9369(0x17b)](_0x12faab,_0x17026f,_0x5c0a26){const _0x1988b1=_0x4f9369;if(this[_0x1988b1(0x1b1)][_0x1988b1(0x145)][_0x1988b1(0x19f)](_0x1988b1(0x190))){if(this[_0x1988b1(0x1b1)][_0x1988b1(0x145)][_0x1988b1(0x17c)](_0x1988b1(0x190))[_0x1988b1(0x197)]())return this[_0x1988b1(0x19d)](_0x12faab,_0x17026f,_0x5c0a26);}return this[_0x1988b1(0x1a3)](_0x12faab,_0x17026f,_0x5c0a26);}[_0x4f9369(0x1a3)](_0x4d45e7,_0x25d8db,_0x11c798){const _0x5e6df1=_0x4f9369,_0x1ce33f=this[_0x5e6df1(0x1b1)][_0x5e6df1(0x145)][_0x5e6df1(0x17c)](_0x37e486),_0x3cb06a=this[_0x5e6df1(0x1b1)][_0x5e6df1(0x145)][_0x5e6df1(0x17c)](_0x47a004),_0x222a50=this[_0x5e6df1(0x1b1)][_0x5e6df1(0x153)][_0x5e6df1(0x14d)][_0x5e6df1(0x18b)];if(_0x222a50[_0x5e6df1(0x140)]){const _0xaaaf78=_0x3eeb44(_0x222a50[_0x5e6df1(0x1a1)]())||this[_0x5e6df1(0x1b1)][_0x5e6df1(0x153)][_0x5e6df1(0x139)][_0x5e6df1(0x18a)](_0x222a50);this[_0x5e6df1(0x1b1)][_0x5e6df1(0x153)][_0x5e6df1(0x15b)](_0x3b1c92=>{const _0x3339f2=_0x5e6df1;_0x3b1c92[_0x3339f2(0x16c)](_0xaaaf78,'in');});}const _0x4dadc8=this[_0x5e6df1(0x1b6)](this[_0x5e6df1(0x1b1)][_0x5e6df1(0x153)][_0x5e6df1(0x151)](_0x222a50),_0x222a50),_0x1f9a1b=_0x1ce33f[_0x5e6df1(0x17a)](_0x4dadc8),_0x16c9d5=this[_0x5e6df1(0x1b1)][_0x5e6df1(0x142)][_0x5e6df1(0x1c9)][_0x5e6df1(0x174)](_0x1f9a1b),_0x92dab=this[_0x5e6df1(0x1b1)][_0x5e6df1(0x153)][_0x5e6df1(0x14d)][_0x5e6df1(0x1a2)],_0x34739e=[..._0x222a50[_0x5e6df1(0x1a7)]()],_0x2c4b33=new _0x5f0984(this[_0x5e6df1(0x1b1)][_0x5e6df1(0x14e)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x5e6df1(0x1c7),'customView':this[_0x5e6df1(0x1bd)]}});_0x3cb06a[_0x5e6df1(0x1a8)]({'index':0x3e8*Math[_0x5e6df1(0x15a)]()%0x3e8,'title':_0x25d8db,'icon':_0x11c798||_0x1bd575,'mainView':_0x2c4b33,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x34739e}),this[_0x5e6df1(0x18f)](_0x2c4b33,_0x3cb06a);const _0x4a7f77=_0x222a50[_0x5e6df1(0x1bf)]();return this[_0x5e6df1(0x176)](_0x3cb06a,_0x5e6df1(0x1a5),()=>{const _0x465e71=_0x5e6df1;this[_0x465e71(0x16d)](_0x4a7f77);}),this[_0x5e6df1(0x176)](_0x3cb06a,_0x5e6df1(0x146),()=>{const _0x5d880c=_0x5e6df1;this[_0x5d880c(0x138)](_0x4a7f77);}),this[_0x5e6df1(0x176)](_0x3cb06a,_0x5e6df1(0x196),()=>{const _0x11a360=_0x5e6df1;this[_0x11a360(0x18e)](),this[_0x11a360(0x16b)](),this[_0x11a360(0x1af)](_0x3cb06a);}),this[_0x5e6df1(0x195)](_0x16c9d5,_0x92dab,_0x2c4b33,_0x3cb06a,_0x4d45e7);}[_0x4f9369(0x19d)](_0x4b3193,_0x137cf0,_0x3f9a49){const _0xec8048=_0x4f9369,_0x39dbc0=this[_0xec8048(0x1b1)][_0xec8048(0x145)][_0xec8048(0x17c)](_0x37e486),_0x260e8b=this[_0xec8048(0x1b1)][_0xec8048(0x145)][_0xec8048(0x17c)](_0x47a004),_0xd1e42=this[_0xec8048(0x1b1)][_0xec8048(0x153)][_0xec8048(0x14d)][_0xec8048(0x18b)],_0x3f4d5b=this[_0xec8048(0x1b1)][_0xec8048(0x145)][_0xec8048(0x17c)](_0xec8048(0x190))[_0xec8048(0x173)](),_0x5e830d=_0x39dbc0[_0xec8048(0x17a)](_0x3f4d5b),_0x5737bb=this[_0xec8048(0x1b1)][_0xec8048(0x142)][_0xec8048(0x1c9)][_0xec8048(0x174)](_0x5e830d),_0x184e99=this[_0xec8048(0x1b1)][_0xec8048(0x153)][_0xec8048(0x14d)][_0xec8048(0x1a2)],_0x2a8b0d=[..._0xd1e42[_0xec8048(0x1a7)]()],_0x1ee904=new _0x5f0984(this[_0xec8048(0x1b1)][_0xec8048(0x14e)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0xec8048(0x1c7),'customView':this[_0xec8048(0x1bd)]}});_0x260e8b[_0xec8048(0x1a8)]({'index':0x0,'title':_0x137cf0,'icon':_0x3f9a49||_0x1bd575,'mainView':_0x1ee904,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x2a8b0d}),this[_0xec8048(0x18f)](_0x1ee904,_0x260e8b);const _0x5d13f1=_0xd1e42[_0xec8048(0x1bf)]();return this[_0xec8048(0x176)](_0x260e8b,_0xec8048(0x1a5),()=>{const _0x35a627=_0xec8048;this[_0x35a627(0x16d)](_0x5d13f1);}),this[_0xec8048(0x176)](_0x260e8b,_0xec8048(0x146),()=>{const _0x24b8b9=_0xec8048;this[_0x24b8b9(0x138)](_0x5d13f1);}),this[_0xec8048(0x176)](_0x260e8b,_0xec8048(0x196),()=>{const _0x10a0c5=_0xec8048;this[_0x10a0c5(0x18c)][_0x10a0c5(0x193)](),this[_0x10a0c5(0x152)]=!0x1,this[_0x10a0c5(0x1af)](_0x260e8b);}),this[_0xec8048(0x195)](_0x5737bb,_0x184e99,_0x1ee904,_0x260e8b,_0x4b3193);}[_0x4f9369(0x1b6)](_0x501cc0,_0xb03c8f){const _0x462f6a=_0x4f9369,_0x52edca=_0xb03c8f[_0x462f6a(0x17d)]()[_0x462f6a(0x154)](),_0x37b633=_0x52edca['is'](_0x462f6a(0x175))?[]:_0x52edca[_0x462f6a(0x179)]({'includeSelf':!0x0})[_0x462f6a(0x182)](0x1);if(_0x37b633[_0x462f6a(0x1b0)]){const _0x3b1c47=_0x37b633[_0x462f6a(0x15d)](_0xe4a9d5=>_0xe4a9d5[_0x462f6a(0x171)](!0x1));for(let _0x1d586e=0x1;_0x1d586e<_0x3b1c47[_0x462f6a(0x1b0)];_0x1d586e++)_0x3b1c47[_0x1d586e-0x1][_0x462f6a(0x188)](_0x3b1c47[_0x1d586e]);return _0x3b1c47[_0x3b1c47[_0x462f6a(0x1b0)]-0x1][_0x462f6a(0x188)](_0x501cc0),new _0x569879(_0x3b1c47[0x0]);}return _0x501cc0;}async[_0x4f9369(0x195)](_0x79e3c,_0x19c12b,_0x4e5352,_0x151e4e,_0x5e9b4d){const _0x38e405=_0x4f9369,_0x270a93=this[_0x38e405(0x1b1)];this[_0x38e405(0x177)]={'action':_0x5e9b4d,'content':_0x79e3c,'version':_0x19c12b,'mainView':_0x4e5352,'aiBalloon':_0x151e4e},this[_0x38e405(0x16e)]=new _0x5a44ec({'connector':this[_0x38e405(0x181)],'editor':_0x270a93,'content':_0x79e3c,'version':_0x19c12b,..._0x5e9b4d});const _0x53efa4=(_0x4ab83f,_0x3df3b0,_0x44be24=!0x1,_0x4f1802=_0x38e405(0x19e))=>this[_0x38e405(0x18c)][_0x38e405(0x1a6)](async _0x4320c6=>{const _0x4f82e7=_0x38e405;try{const _0x235eb0=_0x5346e3({'editor':_0x270a93,'changeGroups':_0x4ab83f[_0x4f82e7(0x198)],'documentContextContent':_0x4ab83f[_0x4f82e7(0x1b8)],'showDiff':_0x44be24,'trimUnchanged':!0x1});await _0x3df3b0[_0x4f82e7(0x1c2)]({'parts':_0x235eb0,'renderingStrategy':_0x4f1802,'abortSignal':_0x4320c6});}catch(_0x167101){if(this[_0x4f82e7(0x1c6)](_0x167101))return;throw _0x167101;}});this[_0x38e405(0x16e)]['on'](_0x38e405(0x168),(_0x28bc2f,_0x1c418a)=>{const _0x1f101d=_0x38e405;_0x4e5352[_0x1f101d(0x1a0)](),_0x53efa4(_0x1c418a,_0x4e5352)[_0x1f101d(0x144)](_0x3bd847=>{const _0x342b6d=_0x1f101d;this[_0x342b6d(0x1c6)](_0x3bd847)||console[_0x342b6d(0x18d)](_0x342b6d(0x163),_0x3bd847);});}),this[_0x38e405(0x16e)]['on'](_0x38e405(0x13a),(_0x437d77,_0x41db48)=>{const _0x4fa0d1=_0x38e405;_0x53efa4(_0x41db48,_0x4e5352)[_0x4fa0d1(0x144)](_0x4bb8d4=>{const _0x593cf1=_0x4fa0d1;this[_0x593cf1(0x1c6)](_0x4bb8d4)||console[_0x593cf1(0x18d)](_0x593cf1(0x191),_0x4bb8d4);});}),this[_0x38e405(0x16e)]['on'](_0x38e405(0x137),async()=>{const _0x1a11e0=_0x38e405;try{await this[_0x1a11e0(0x1c5)](_0x4e5352,_0x151e4e);}catch(_0x156227){this[_0x1a11e0(0x1c6)](_0x156227)||console[_0x1a11e0(0x18d)](_0x1a11e0(0x165),_0x156227);}}),this[_0x38e405(0x176)](_0x4e5352,_0x38e405(0x1c4),(_0x398379,{showDiff:_0x341010})=>{const _0x5b5254=_0x38e405;this[_0x5b5254(0x1be)]=_0x341010;const _0x4ab293=this[_0x5b5254(0x16e)][_0x5b5254(0x13c)][this[_0x5b5254(0x16e)][_0x5b5254(0x13c)][_0x5b5254(0x1b0)]-0x1];_0x4ab293&&_0x53efa4(_0x4ab293,_0x4e5352,_0x341010,_0x5b5254(0x17f))[_0x5b5254(0x144)](_0x19d19a=>{const _0x42c89b=_0x5b5254;this[_0x42c89b(0x1c6)](_0x19d19a)||console[_0x42c89b(0x18d)](_0x42c89b(0x162),_0x19d19a);});}),this[_0x38e405(0x18f)](_0x4e5352,_0x151e4e);try{return await this[_0x38e405(0x16e)][_0x38e405(0x1ab)]();}catch(_0x43c8ce){if(this[_0x38e405(0x1c6)](_0x43c8ce))return;throw _0x43c8ce;}}[_0x4f9369(0x138)](_0x77d1ee){const _0x3e8a76=_0x4f9369,_0x4ebd8d=this[_0x3e8a76(0x1b1)],_0x270e9e=this[_0x3e8a76(0x1b1)][_0x3e8a76(0x145)][_0x3e8a76(0x17c)](_0x18b629),_0x20a3a0=this[_0x3e8a76(0x16e)],_0x3b9e8c=this[_0x3e8a76(0x16e)][_0x3e8a76(0x13c)][this[_0x3e8a76(0x16e)][_0x3e8a76(0x13c)][_0x3e8a76(0x1b0)]-0x1],_0x2e5ed7=_0x3b9e8c[_0x3e8a76(0x198)],_0x19e469=_0x9fddd({'editor':_0x4ebd8d,'reply':_0x3b9e8c,'interaction':_0x20a3a0,'groups':_0x2e5ed7,'transform':!0x1,'documentCompare':_0x270e9e,'documentCompareOptions':{'anchor':_0x3e8a76(0x1a4),'markDeletions':!0x0}});for(const _0x32354b of _0x19e469)this[_0x3e8a76(0x186)](_0x77d1ee,_0x32354b);const _0x3b6e70=_0x20a3a0[_0x3e8a76(0x15c)]()[_0x3e8a76(0x1a2)],_0x5a398d=_0x4ebd8d[_0x3e8a76(0x153)][_0x3e8a76(0x14d)][_0x3e8a76(0x170)][_0x3e8a76(0x149)](_0x3b6e70),_0x20dbc6={'document':_0x4ebd8d[_0x3e8a76(0x153)][_0x3e8a76(0x14d)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x47a224=_0x73d500(_0x19e469,_0x5a398d,_0x20dbc6)[_0x3e8a76(0x1ac)];_0x4ebd8d[_0x3e8a76(0x153)][_0x3e8a76(0x15b)](_0x543177=>{const _0x3a30c4=_0x3e8a76;_0x543177[_0x3a30c4(0x16c)](_0x4ebd8d[_0x3a30c4(0x153)][_0x3a30c4(0x14d)][_0x3a30c4(0x18b)][_0x3a30c4(0x185)]),_0x4ebd8d[_0x3a30c4(0x145)][_0x3a30c4(0x17c)](_0x3a30c4(0x17e))[_0x3a30c4(0x1c1)](_0x47a224);}),this[_0x3e8a76(0x1b1)][_0x3e8a76(0x145)][_0x3e8a76(0x17c)](_0x3e8a76(0x13d))[_0x3e8a76(0x1c8)]();}[_0x4f9369(0x16d)](_0x2dfe5e){const _0x5db3fd=_0x4f9369,_0x3488f5=this[_0x5db3fd(0x1b1)],_0x3bd51a=this[_0x5db3fd(0x1b1)][_0x5db3fd(0x145)][_0x5db3fd(0x17c)](_0x18b629),_0x544828=this[_0x5db3fd(0x16e)],_0x5e0246=this[_0x5db3fd(0x16e)][_0x5db3fd(0x13c)][this[_0x5db3fd(0x16e)][_0x5db3fd(0x13c)][_0x5db3fd(0x1b0)]-0x1],_0x14235d=_0x5e0246[_0x5db3fd(0x198)],_0x4d4909=_0x9fddd({'editor':_0x3488f5,'reply':_0x5e0246,'interaction':_0x544828,'groups':_0x14235d,'transform':!0x1,'documentCompare':_0x3bd51a,'documentCompareOptions':{'anchor':_0x5db3fd(0x1a4),'markDeletions':!0x1}});for(const _0x1c1c74 of _0x4d4909)this[_0x5db3fd(0x186)](_0x2dfe5e,_0x1c1c74);const _0x15ac6a=_0x544828[_0x5db3fd(0x15c)]()[_0x5db3fd(0x1a2)],_0x2bd5a1=_0x3488f5[_0x5db3fd(0x153)][_0x5db3fd(0x14d)][_0x5db3fd(0x170)][_0x5db3fd(0x149)](_0x15ac6a),_0x31aa72={'document':_0x3488f5[_0x5db3fd(0x153)][_0x5db3fd(0x14d)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x513a9d=_0x73d500(_0x4d4909,_0x2bd5a1,_0x31aa72)[_0x5db3fd(0x1ac)];_0x3488f5[_0x5db3fd(0x153)][_0x5db3fd(0x15b)](_0x6bd8a3=>{const _0x49bd1d=_0x5db3fd;_0x6bd8a3[_0x49bd1d(0x16c)](_0x3488f5[_0x49bd1d(0x153)][_0x49bd1d(0x14d)][_0x49bd1d(0x18b)][_0x49bd1d(0x185)]);for(const _0xc838df of _0x513a9d)_0xc838df[_0x49bd1d(0x194)]=_0x3488f5[_0x49bd1d(0x153)][_0x49bd1d(0x14d)][_0x49bd1d(0x1a2)],_0x6bd8a3[_0x49bd1d(0x141)][_0x49bd1d(0x14c)](_0xc838df),_0x3488f5[_0x49bd1d(0x153)][_0x49bd1d(0x1ad)](_0xc838df);}),this[_0x5db3fd(0x1b1)][_0x5db3fd(0x145)][_0x5db3fd(0x17c)](_0x5db3fd(0x13d))[_0x5db3fd(0x1c8)]();}[_0x4f9369(0x186)](_0x37de19,_0x2dc36c){const _0x200ccc=_0x4f9369;for(const _0x55b82d in _0x2dc36c){const _0x4a64af=_0x2dc36c[_0x55b82d];_0x4a64af instanceof _0x442a49?_0x2dc36c[_0x55b82d]=new _0x442a49(_0x17f385(_0x4a64af[_0x200ccc(0x1ab)]),_0x17f385(_0x4a64af[_0x200ccc(0x184)])):_0x4a64af instanceof _0x5920ae&&(_0x2dc36c[_0x55b82d]=_0x17f385(_0x4a64af));}function _0x17f385(_0x5567e3){const _0x523bb4=_0x200ccc;if(_0x5567e3[_0x523bb4(0x13e)]!=_0x37de19[_0x523bb4(0x13e)])return _0x5567e3;const _0x121e3b=_0x5567e3[_0x523bb4(0x199)][_0x523bb4(0x182)]();for(let _0x405ff0=0x0;_0x405ff0<_0x37de19[_0x523bb4(0x199)][_0x523bb4(0x1b0)]&&_0x405ff0<_0x121e3b[_0x523bb4(0x1b0)];_0x405ff0++){const _0x2fce0f=0x0!=_0x121e3b[_0x405ff0];if(_0x121e3b[_0x405ff0]+=_0x37de19[_0x523bb4(0x199)][_0x405ff0],_0x2fce0f)break;}return new _0x5920ae(_0x5567e3[_0x523bb4(0x13e)],_0x121e3b,_0x5567e3[_0x523bb4(0x16f)]);}}[_0x4f9369(0x1a9)](){const _0x5dc595=_0x4f9369;if(!this[_0x5dc595(0x177)])return void console[_0x5dc595(0x166)](_0x5dc595(0x19a));this[_0x5dc595(0x16e)]&&(this[_0x5dc595(0x19b)][_0x5dc595(0x159)](this[_0x5dc595(0x16e)]),this[_0x5dc595(0x18e)]());const {action:_0x7857a5,content:_0x126693,version:_0x1e4931,mainView:_0x461639,aiBalloon:_0x3e175b}=this[_0x5dc595(0x177)];this[_0x5dc595(0x183)](_0x461639),_0x461639[_0x5dc595(0x147)](),this[_0x5dc595(0x195)](_0x126693,_0x1e4931,_0x461639,_0x3e175b,_0x7857a5)[_0x5dc595(0x144)](_0x50f0c4=>{const _0x218a41=_0x5dc595;this[_0x218a41(0x1c6)](_0x50f0c4)||console[_0x218a41(0x18d)](_0x218a41(0x161),_0x50f0c4);});}[_0x4f9369(0x183)](_0x44d2e5){const _0x4df233=_0x4f9369,_0x5b9452=_0x44d2e5[_0x4df233(0x169)][_0x4df233(0x164)];for(;_0x5b9452[_0x4df233(0x1b0)]>0x0;)_0x5b9452[_0x4df233(0x14a)](_0x5b9452[_0x4df233(0x14b)]);_0x44d2e5[_0x4df233(0x169)][_0x4df233(0x1bb)]=!0x1;}[_0x4f9369(0x1c6)](_0x84772b){const _0x557e1e=_0x4f9369;return!!_0x84772b[_0x557e1e(0x143)]&&_0x84772b[_0x557e1e(0x143)][_0x557e1e(0x158)](_0x557e1e(0x189));}[_0x4f9369(0x16b)](){const _0x5918d8=_0x4f9369;this[_0x5918d8(0x19b)]=[],this[_0x5918d8(0x177)]=void 0x0;}[_0x4f9369(0x18e)](){const _0x9acd59=_0x4f9369;this[_0x9acd59(0x16e)]&&this[_0x9acd59(0x16e)][_0x9acd59(0x1bc)](),this[_0x9acd59(0x18c)][_0x9acd59(0x193)](),this[_0x9acd59(0x152)]=!0x1;}[_0x4f9369(0x1b9)](){const _0x524a25=_0x4f9369,_0x20527d=new _0x46b6d7(this[_0x524a25(0x1b1)][_0x524a25(0x14e)]);_0x20527d[_0x524a25(0x15f)]({'icon':_0x18195f,'label':_0x4c2821(this[_0x524a25(0x1b1)][_0x524a25(0x14e)],_0x524a25(0x178)),'tooltip':!0x0,'class':_0x524a25(0x19c)}),_0x20527d[_0x524a25(0x1b2)](_0x524a25(0x14f))['to'](this,_0x524a25(0x152),_0x3d4efa=>!_0x3d4efa),_0x20527d['on'](_0x524a25(0x1aa),()=>{const _0x20fa1e=_0x524a25;this[_0x20fa1e(0x1a9)]();}),this[_0x524a25(0x1bd)][_0x524a25(0x160)](_0x20527d);}[_0x4f9369(0x18f)](_0x5beedc,_0x4e547c){const _0x4bb256=_0x4f9369;_0x5beedc[_0x4bb256(0x1ae)](),_0x4e547c[_0x4bb256(0x157)][_0x4bb256(0x1ae)](),this[_0x4bb256(0x152)]=!0x0;}async[_0x4f9369(0x1c5)](_0x2bc05b,_0x75605c){const _0x3c19f8=_0x4f9369;await this[_0x3c19f8(0x18c)][_0x3c19f8(0x180)],this[_0x3c19f8(0x152)]=!0x1,_0x2bc05b[_0x3c19f8(0x1c0)](),_0x75605c[_0x3c19f8(0x157)][_0x3c19f8(0x1c0)]();}}
|
|
23
|
+
const _0x512b5a=_0xa1da;function _0x2981(){const _0x4dd88e=['toggleSuggestionDisplayMode','dialogClosed','_interaction','path','model','nextSibling','createPositionAt','open','_previousInteractions','close','execute','slice','batch','clearLoading','_promiseQueue','filter','getSelectedContent','getAncestors','version','processor','getSelectedTableCells','ai-request-aborted','Error\x20updating\x20content\x20in\x20replyCreated:','set','6272950WXCiJD','toData','isEnabled','requires','getCommonAncestor','getRoot','8560370vUaIXm','interactionFinished','AIActions','catch','_createInteraction','streaming','addOperation','parent','createRange','indexOf','TableSelection','focus','998584NbOWTJ','_wrapWithCommonAncestors','clone','showLoader','replyCreated','_executeAction','stickiness','1127728nTgWsM','length','start','stopInteraction','isBusy','random','_appendChild','_balloonShowDiff','enqueue','_setupCustomViews','ck-ai-custom-action-button','_filterOperationsOutsideRange','warn','_currentInteractionParams','executeAction','previousInteractions','data','_getExecuteDataInTable','Error\x20updating\x20content\x20in\x20replyContentUpdated:','getOperations','AIBalloon','move','insert','position','7MifbQm','_execute','2570052CmFjmS','_clone','abort','includes','isPremiumPlugin','bodyView','split','bind','howMany','rootName','getDocumentContext','createPositionAfter','getChildAtOffset','selection','_children','AI_ACTIONS_TRY_AGAIN','Attribute','stopListening','_clearSuggestionContent','remove','isDocumentOperation','root','getSelectionAsFragment','getSelectedBlocks','_customViews','documentContextContent','history','isOfficialPlugin','_anchorOperation','hideLoader','_isAbortError','_aiConnector','_clearLoadingState','schema','Error\x20refreshing\x20interaction:','hasPendingParts','startsWith','end','reinsert','AIConnector','_applyOperationsAsSuggestions','createPositionBefore','_refreshInteraction','locale','static','message','isCollapsed','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','stop','_applyChanges','queueEmptyPromise','insertSuggestion','error','baseVersion','change','balloonView','icon','No\x20current\x20interaction\x20to\x20refresh','replyContentUpdated','documentFragment','_clearInteractionHistory','changeGroups','applyOperation','merge','replies','_setLoadingState','$graveyard','TrackChangesEditing','add','range','editor','127052zzGgtN','_stopInteraction','first','applySuggestion','has','setSelection','get','setLoading','type','listenTo','_getExecuteDataRegular','getRanges','pluginName','document','push','plugins','modelToViewWithIds','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','rename','map','operationsA','getChild','nodeAfter','getLimitElement','getFirstRange','3573063CwKuET','updateContent','sourcePosition'];_0x2981=function(){return _0x4dd88e;};return _0x2981();}(function(_0x5144b1,_0x67b104){const _0x26101b=_0xa1da,_0x49e389=_0x5144b1();while(!![]){try{const _0x17b44a=-parseInt(_0x26101b(0xcb))/0x1*(-parseInt(_0x26101b(0x114))/0x2)+parseInt(_0x26101b(0x12d))/0x3+-parseInt(_0x26101b(0xac))/0x4+parseInt(_0x26101b(0x148))/0x5+-parseInt(_0x26101b(0xcd))/0x6+-parseInt(_0x26101b(0xa0))/0x7+-parseInt(_0x26101b(0xb3))/0x8;if(_0x17b44a===_0x67b104)break;else _0x49e389['push'](_0x49e389['shift']());}catch(_0x2b1f86){_0x49e389['push'](_0x49e389['shift']());}}}(_0x2981,0xcf22d));import{Plugin as _0xa88e45}from'ckeditor5/src/core.js';import{AIConnector as _0x2b895b}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3ce4e0}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x31abec,ButtonView as _0x1c056c,ViewCollection as _0x4b976f}from'ckeditor5/src/ui.js';import{AIEditing as _0xc14584}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x8c1c98}from'./model/aiactionsinteraction.js';import{first as _0x3b84a5}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x59745e,IconRefresh as _0x1986e1}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x4a4d0d}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3ca70c}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x172a5e}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2a8ec6}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3dcd50}from'@ckeditor/ckeditor5-collaboration-core';function _0xa1da(_0x344bbb,_0x47bca4){const _0x298139=_0x2981();return _0xa1da=function(_0xa1daf1,_0xd7cdce){_0xa1daf1=_0xa1daf1-0x9c;let _0x2e3a85=_0x298139[_0xa1daf1];return _0x2e3a85;},_0xa1da(_0x344bbb,_0x47bca4);}import{getOperationsFromReply as _0x46c439}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x75c9dd,ModelRange as _0x584350,ModelPosition as _0x56199b,_DetachOperation as _0x38e15b,transformOperationSets as _0x4912d4}from'ckeditor5/src/engine.js';export class AIActions extends _0xa88e45{static get[_0x512b5a(0x9d)](){return[_0x2b895b,_0x31abec,_0xc14584,_0x4a4d0d,_0x3dcd50];}static get[_0x512b5a(0x120)](){const _0x52f0d7=_0x512b5a;return _0x52f0d7(0xa2);}static get[_0x512b5a(0xe8)](){return!0x0;}static get[_0x512b5a(0xd1)](){return!0x0;}[_0x512b5a(0xec)];[_0x512b5a(0x138)]=[];[_0x512b5a(0xc0)];[_0x512b5a(0xba)]=!0x1;[_0x512b5a(0xe5)]=new _0x4b976f();[_0x512b5a(0x13e)];constructor(_0x1cfb29){const _0x4ad852=_0x512b5a;super(_0x1cfb29),this[_0x4ad852(0xec)]=this[_0x4ad852(0x113)][_0x4ad852(0x123)][_0x4ad852(0x11a)](_0x4ad852(0xf4)),this[_0x4ad852(0x147)](_0x4ad852(0xb7),!0x1),this[_0x4ad852(0x13e)]=new _0x3ca70c(),this[_0x4ad852(0xbc)]();}[_0x512b5a(0xb6)](){const _0x504ff0=_0x512b5a;this[_0x504ff0(0x115)]();}get[_0x512b5a(0xc2)](){const _0x3b3abd=_0x512b5a;return this[_0x3b3abd(0x138)];}async[_0x512b5a(0xc1)](_0x1be814,_0x2f395a,_0x45983c){const _0x2d5a66=_0x512b5a;if(this[_0x2d5a66(0x113)][_0x2d5a66(0x123)][_0x2d5a66(0x118)](_0x2d5a66(0xaa))){if(this[_0x2d5a66(0x113)][_0x2d5a66(0x123)][_0x2d5a66(0x11a)](_0x2d5a66(0xaa))[_0x2d5a66(0x144)]()){const {modelFragment:_0xe5e78b,anchorData:_0xe851c2}=this[_0x2d5a66(0xc4)]();return this[_0x2d5a66(0xb1)](_0x1be814,_0xe5e78b,_0xe851c2,_0x2f395a,_0x45983c);}}const {modelFragment:_0x52b45e,anchorData:_0x42d66d}=this[_0x2d5a66(0x11e)]();return this[_0x2d5a66(0xb1)](_0x1be814,_0x52b45e,_0x42d66d,_0x2f395a,_0x45983c);}[_0x512b5a(0x11e)](){const _0x562ffa=_0x512b5a,_0x5a8772=this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0x121)][_0x562ffa(0xda)];if(_0x5a8772[_0x562ffa(0xfb)]){const _0x1cb883=_0x3b84a5(_0x5a8772[_0x562ffa(0xe4)]())||this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0xee)][_0x562ffa(0x12b)](_0x5a8772);this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0x103)](_0x38d0f7=>{const _0xd4fc50=_0x562ffa;_0x38d0f7[_0xd4fc50(0x119)](_0x1cb883,'in');});}const _0x100adf=_0x5a8772[_0x562ffa(0x12c)](),_0x4bfb06=this[_0x562ffa(0xad)](this[_0x562ffa(0x113)][_0x562ffa(0x134)][_0x562ffa(0x140)](_0x5a8772),_0x100adf[_0x562ffa(0xb5)],_0x100adf[_0x562ffa(0xf2)]),_0x55bcba=_0x5a8772[_0x562ffa(0x12c)]()[_0x562ffa(0xb5)],_0x417b7d=new Map();let _0x8ffe51=_0x4bfb06;for(let _0x3ea5da=0x0;_0x3ea5da<_0x55bcba[_0x562ffa(0x133)][_0x562ffa(0xb4)];_0x3ea5da++)_0x417b7d[_0x562ffa(0x147)](_0x8ffe51,_0x55bcba[_0x562ffa(0x133)][_0x3ea5da]),_0x8ffe51=_0x8ffe51[_0x562ffa(0x129)](0x0);return{'modelFragment':_0x4bfb06,'anchorData':_0x417b7d};}[_0x512b5a(0xc4)](){const _0x8db828=_0x512b5a,_0x4214f2=this[_0x8db828(0x113)][_0x8db828(0x134)][_0x8db828(0x121)][_0x8db828(0xda)],_0x559858=this[_0x8db828(0x113)][_0x8db828(0x123)][_0x8db828(0x11a)](_0x8db828(0xaa))[_0x8db828(0xe3)](),_0x4bf0f2=_0x4214f2[_0x8db828(0x12c)]()[_0x8db828(0xb5)][_0x8db828(0xa7)][_0x8db828(0xa7)],_0x1b3df4=this[_0x8db828(0xad)](_0x559858,this[_0x8db828(0x113)][_0x8db828(0x134)][_0x8db828(0xf6)](_0x4bf0f2),this[_0x8db828(0x113)][_0x8db828(0x134)][_0x8db828(0xd8)](_0x4bf0f2)),_0x566e8a=_0x4214f2[_0x8db828(0x12c)]()[_0x8db828(0xb5)],_0x3f4565=new Map();let _0x4b1d2b=_0x1b3df4;for(let _0x298bec=0x0;_0x298bec<_0x566e8a[_0x8db828(0x133)][_0x8db828(0xb4)];_0x298bec++)if(_0x3f4565[_0x8db828(0x147)](_0x4b1d2b,_0x566e8a[_0x8db828(0x133)][_0x298bec]),_0x298bec<_0x566e8a[_0x8db828(0x133)][_0x8db828(0xb4)]-0x1)_0x4b1d2b=_0x4b1d2b[_0x8db828(0x129)](0x0);else{let _0x670e30=_0x4b1d2b[_0x8db828(0x135)];for(;_0x670e30;)_0x3f4565[_0x8db828(0x147)](_0x670e30,_0x566e8a[_0x8db828(0x133)][_0x298bec]),_0x670e30=_0x670e30[_0x8db828(0x135)];}return{'modelFragment':_0x1b3df4,'anchorData':_0x3f4565};}[_0x512b5a(0xb1)](_0x455b7d,_0x309c26,_0xe7a10e,_0x5bebbc,_0x1a21f1){const _0x111750=_0x512b5a,_0x11093a=this[_0x111750(0x113)][_0x111750(0x123)][_0x111750(0x11a)](_0xc14584),_0x2ba6eb=this[_0x111750(0x113)][_0x111750(0x123)][_0x111750(0x11a)](_0x4a4d0d),_0x2f3747=this[_0x111750(0x113)][_0x111750(0x134)][_0x111750(0x121)][_0x111750(0xda)],_0x506cfa=_0x11093a[_0x111750(0x124)](_0x309c26),_0x3d5386=this[_0x111750(0x113)][_0x111750(0xc3)][_0x111750(0x143)][_0x111750(0x149)](_0x506cfa),_0x525bf8=this[_0x111750(0x113)][_0x111750(0x134)][_0x111750(0x121)][_0x111750(0x142)],_0x512446=[..._0x2f3747[_0x111750(0x11f)]()],_0x1022ec=new _0x3ce4e0(this[_0x111750(0x113)][_0x111750(0xf8)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x111750(0x105),'customView':this[_0x111750(0xe5)]},'showUnchangedParts':!0x0});return _0x2ba6eb[_0x111750(0x137)]({'index':0x3e8*Math[_0x111750(0xb8)]()%0x3e8,'title':_0x5bebbc,'icon':_0x1a21f1||_0x59745e,'mainView':_0x1022ec,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x512446}),this[_0x111750(0x10e)](_0x1022ec,_0x2ba6eb),this[_0x111750(0x11d)](_0x2ba6eb,_0x111750(0x117),()=>{const _0x1a2712=_0x111750;this[_0x1a2712(0xfe)](_0x309c26,_0xe7a10e,!0x1);}),this[_0x111750(0x11d)](_0x2ba6eb,_0x111750(0x100),()=>{const _0xa4323e=_0x111750;this[_0xa4323e(0xfe)](_0x309c26,_0xe7a10e,!0x0);}),this[_0x111750(0x11d)](_0x2ba6eb,_0x111750(0x131),()=>{const _0x4d96cd=_0x111750;this[_0x4d96cd(0x115)](),this[_0x4d96cd(0x109)](),this[_0x4d96cd(0xde)](_0x2ba6eb);}),this[_0x111750(0xa4)](_0x3d5386,_0x525bf8,_0x1022ec,_0x2ba6eb,_0x455b7d);}[_0x512b5a(0xad)](_0x2f0953,_0x46f5e4,_0x109fd1){const _0x37e633=_0x512b5a,_0x333a9c=this[_0x37e633(0x113)][_0x37e633(0x134)][_0x37e633(0xa8)](_0x46f5e4,_0x109fd1)[_0x37e633(0x9e)](),_0x19e934=_0x333a9c['is'](_0x37e633(0x108))?[]:_0x333a9c[_0x37e633(0x141)]({'includeSelf':!0x0})[_0x37e633(0x13b)](0x1);if(_0x19e934[_0x37e633(0xb4)]){const _0x2fd03=_0x19e934[_0x37e633(0x127)](_0x1446e1=>_0x1446e1[_0x37e633(0xce)](!0x1));for(let _0x2e7665=0x1;_0x2e7665<_0x2fd03[_0x37e633(0xb4)];_0x2e7665++)_0x2fd03[_0x2e7665-0x1][_0x37e633(0xb9)](_0x2fd03[_0x2e7665]);return _0x2fd03[_0x2fd03[_0x37e633(0xb4)]-0x1][_0x37e633(0xb9)](_0x2f0953),new _0x75c9dd(_0x2fd03[0x0]);}return _0x2f0953;}async[_0x512b5a(0xa4)](_0x2c9c1c,_0x4e7d84,_0x4f8489,_0x1c4f4e,_0x4ca0b9){const _0x158316=_0x512b5a,_0x5bcf73=this[_0x158316(0x113)];this[_0x158316(0xc0)]={'action':_0x4ca0b9,'content':_0x2c9c1c,'version':_0x4e7d84,'mainView':_0x4f8489,'aiBalloon':_0x1c4f4e},this[_0x158316(0x132)]=new _0x8c1c98({'connector':this[_0x158316(0xec)],'editor':_0x5bcf73,'content':_0x2c9c1c,'version':_0x4e7d84,..._0x4ca0b9});const _0x40a242=(_0x4161bd,_0x39fb86,_0x4e0d7c=!0x1,_0x24c85b=_0x158316(0xa5))=>this[_0x158316(0x13e)][_0x158316(0xbb)](async _0x1ece17=>{const _0x311190=_0x158316;try{const _0x5714a4=_0x2a8ec6({'editor':_0x5bcf73,'changeGroups':_0x4161bd[_0x311190(0x10a)],'documentContextContent':_0x4161bd[_0x311190(0xe6)],'showDiff':_0x4e0d7c,'trimUnchanged':!0x1});await _0x39fb86[_0x311190(0x12e)]({'parts':_0x5714a4,'renderingStrategy':_0x24c85b,'abortSignal':_0x1ece17});}catch(_0x3c9f40){if(this[_0x311190(0xeb)](_0x3c9f40))return;throw _0x3c9f40;}});this[_0x158316(0x132)]['on'](_0x158316(0xb0),(_0x5c4531,_0x443169)=>{const _0x4f5b0a=_0x158316;_0x4f8489[_0x4f5b0a(0xea)](),_0x40a242(_0x443169,_0x4f8489)[_0x4f5b0a(0xa3)](_0x1a8e96=>{const _0x311a45=_0x4f5b0a;this[_0x311a45(0xeb)](_0x1a8e96)||console[_0x311a45(0x101)](_0x311a45(0x146),_0x1a8e96);});}),this[_0x158316(0x132)]['on'](_0x158316(0x107),(_0xd6aa59,_0x3016ad)=>{const _0x220177=_0x158316;_0x40a242(_0x3016ad,_0x4f8489)[_0x220177(0xa3)](_0x39dc13=>{const _0x1a7f5a=_0x220177;this[_0x1a7f5a(0xeb)](_0x39dc13)||console[_0x1a7f5a(0x101)](_0x1a7f5a(0xc5),_0x39dc13);});}),this[_0x158316(0x132)]['on'](_0x158316(0xa1),async()=>{const _0x5f069b=_0x158316;try{await this[_0x5f069b(0xed)](_0x4f8489,_0x1c4f4e);}catch(_0x285738){this[_0x5f069b(0xeb)](_0x285738)||console[_0x5f069b(0x101)](_0x5f069b(0x125),_0x285738);}}),this[_0x158316(0x11d)](_0x4f8489,_0x158316(0x130),(_0x19bb04,{showDiff:_0x2ea942})=>{const _0x8ec892=_0x158316;this[_0x8ec892(0xba)]=_0x2ea942;const _0x136f08=this[_0x8ec892(0x132)][_0x8ec892(0x10d)][this[_0x8ec892(0x132)][_0x8ec892(0x10d)][_0x8ec892(0xb4)]-0x1];_0x136f08&&_0x40a242(_0x136f08,_0x4f8489,_0x2ea942,_0x8ec892(0xf9))[_0x8ec892(0xa3)](_0x5d90dc=>{const _0x2bd029=_0x8ec892;this[_0x2bd029(0xeb)](_0x5d90dc)||console[_0x2bd029(0x101)](_0x2bd029(0xfc),_0x5d90dc);});}),this[_0x158316(0x10e)](_0x4f8489,_0x1c4f4e);try{return await this[_0x158316(0x132)][_0x158316(0xb5)]();}catch(_0x267ff6){if(this[_0x158316(0xeb)](_0x267ff6))return;throw _0x267ff6;}}[_0x512b5a(0xfe)](_0xe8f51b,_0x535b56,_0x4a02c8){const _0x4f3294=_0x512b5a,_0x3152c7=this[_0x4f3294(0x113)],_0x33aa44=this[_0x4f3294(0x113)][_0x4f3294(0x123)][_0x4f3294(0x11a)](_0x3dcd50),_0x500b5c=this[_0x4f3294(0x132)],_0x32037d=this[_0x4f3294(0x132)][_0x4f3294(0x10d)][this[_0x4f3294(0x132)][_0x4f3294(0x10d)][_0x4f3294(0xb4)]-0x1],_0x2dca50=_0x32037d[_0x4f3294(0x10a)];let _0x2fb69e=_0x46c439({'editor':_0x3152c7,'reply':_0x32037d,'interaction':_0x500b5c,'groups':_0x2dca50,'transform':!0x1,'documentCompare':_0x33aa44,'documentCompareOptions':{'anchor':_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x136)](_0xe8f51b,0x0),'markDeletions':_0x4a02c8}});_0x2fb69e=this[_0x4f3294(0xbe)](_0x2fb69e,_0x535b56);for(const _0x5223fe of _0x2fb69e)this[_0x4f3294(0xe9)](_0x535b56,_0x5223fe,_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x121)][_0x4f3294(0x9f)]());const _0x1b5cc2=_0x500b5c[_0x4f3294(0xd7)]()[_0x4f3294(0x142)],_0x4d71a0=_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x121)][_0x4f3294(0xe7)][_0x4f3294(0xc6)](_0x1b5cc2),_0xc6c82b={'document':_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x121)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x282a1f=_0x4912d4(_0x2fb69e,_0x4d71a0,_0xc6c82b)[_0x4f3294(0x128)];_0x3152c7[_0x4f3294(0x134)][_0x4f3294(0x103)](_0x505406=>{const _0x427438=_0x4f3294;if(_0x505406[_0x427438(0x119)](_0x3152c7[_0x427438(0x134)][_0x427438(0x121)][_0x427438(0xda)][_0x427438(0xab)]),_0x4a02c8)_0x3152c7[_0x427438(0x123)][_0x427438(0x11a)](_0x427438(0x110))[_0x427438(0xf5)](_0x282a1f);else{for(const _0x28d48a of _0x282a1f)_0x28d48a[_0x427438(0x102)]=_0x3152c7[_0x427438(0x134)][_0x427438(0x121)][_0x427438(0x142)],_0x505406[_0x427438(0x13c)][_0x427438(0xa6)](_0x28d48a),_0x3152c7[_0x427438(0x134)][_0x427438(0x10b)](_0x28d48a);}}),this[_0x4f3294(0x113)][_0x4f3294(0x123)][_0x4f3294(0x11a)](_0x4f3294(0xc7))[_0x4f3294(0x139)]();}[_0x512b5a(0xbe)](_0x2463cb,_0x4ffdaf){const _0x387690=_0x512b5a;return _0x2463cb[_0x387690(0x13f)](_0x155638=>{const _0xec3927=_0x387690;if(_0xec3927(0x126)==_0x155638[_0xec3927(0x11c)]){const _0x16f29a=_0x155638[_0xec3927(0xca)][_0xec3927(0x12a)];return!_0x4ffdaf[_0xec3927(0x118)](_0x16f29a);}if(_0x155638[_0xec3927(0x11c)][_0xec3927(0xa9)](_0xec3927(0xdd))>-0x1){const _0x3e130e=_0x155638[_0xec3927(0x112)][_0xec3927(0xb5)][_0xec3927(0x12a)];return!_0x4ffdaf[_0xec3927(0x118)](_0x3e130e);}return!0x0;});}[_0x512b5a(0xe9)](_0x277e7c,_0x2d7d1f,_0x32a320){const _0x59bb95=_0x512b5a,_0x96a0be=_0x2d7d1f[_0x59bb95(0xae)]();for(const _0x236606 in _0x2d7d1f){const _0xa41023=_0x2d7d1f[_0x236606];_0xa41023 instanceof _0x584350?_0x2d7d1f[_0x236606]=new _0x584350(_0x56c6f4(_0xa41023[_0x59bb95(0xb5)]),_0x56c6f4(_0xa41023[_0x59bb95(0xf2)])):_0xa41023 instanceof _0x56199b&&(_0x2d7d1f[_0x236606]=_0x56c6f4(_0xa41023));}if([_0x59bb95(0xc9),_0x59bb95(0xc8),_0x59bb95(0xe0),_0x59bb95(0xf3),_0x59bb95(0xd3),_0x59bb95(0x10c)][_0x59bb95(0xd0)](_0x96a0be[_0x59bb95(0x11c)])){if(_0x96a0be[_0x59bb95(0xe1)]=!0x1,_0x96a0be[_0x59bb95(0x102)]=null,_0x59bb95(0xe0)==_0x96a0be[_0x59bb95(0x11c)]){const _0x4b03a5=_0x96a0be[_0x59bb95(0x12f)],_0x4be701=_0x96a0be[_0x59bb95(0xd5)];new _0x38e15b(_0x4b03a5,_0x4be701)[_0x59bb95(0xcc)]();}else _0x96a0be[_0x59bb95(0xcc)]();}function _0x56c6f4(_0x244aab){const _0x44cd23=_0x59bb95;if(_0x44cd23(0x10f)==_0x244aab[_0x44cd23(0xe2)][_0x44cd23(0xd6)])return _0x244aab;const _0x5cc68f=[];let _0x321517=_0x244aab[_0x44cd23(0xe2)];for(let _0x271f9f=0x0;_0x271f9f<_0x244aab[_0x44cd23(0x133)][_0x44cd23(0xb4)];_0x271f9f++){const _0x3f35b6=_0x277e7c[_0x44cd23(0x11a)](_0x321517)||0x0;_0x5cc68f[_0x271f9f]=_0x244aab[_0x44cd23(0x133)][_0x271f9f]+_0x3f35b6,_0x321517=_0x321517[_0x44cd23(0xd9)](_0x244aab[_0x44cd23(0x133)][_0x271f9f]);}return new _0x56199b(_0x32a320,_0x5cc68f,_0x244aab[_0x44cd23(0xb2)]);}}[_0x512b5a(0xf7)](){const _0xdaa87f=_0x512b5a;if(!this[_0xdaa87f(0xc0)])return void console[_0xdaa87f(0xbf)](_0xdaa87f(0x106));this[_0xdaa87f(0x132)]&&(this[_0xdaa87f(0x138)][_0xdaa87f(0x122)](this[_0xdaa87f(0x132)]),this[_0xdaa87f(0x115)]());const {action:_0x533b95,content:_0x8753e7,version:_0xe4cc20,mainView:_0xce9fe0,aiBalloon:_0x2bc6d4}=this[_0xdaa87f(0xc0)];this[_0xdaa87f(0xdf)](_0xce9fe0),_0xce9fe0[_0xdaa87f(0xaf)](),this[_0xdaa87f(0xa4)](_0x8753e7,_0xe4cc20,_0xce9fe0,_0x2bc6d4,_0x533b95)[_0xdaa87f(0xa3)](_0x51e364=>{const _0x5f3f34=_0xdaa87f;this[_0x5f3f34(0xeb)](_0x51e364)||console[_0x5f3f34(0x101)](_0x5f3f34(0xef),_0x51e364);});}[_0x512b5a(0xdf)](_0x1d5893){const _0x5f49fc=_0x512b5a,_0x43a2fc=_0x1d5893[_0x5f49fc(0xd2)][_0x5f49fc(0xdb)];for(;_0x43a2fc[_0x5f49fc(0xb4)]>0x0;)_0x43a2fc[_0x5f49fc(0xe0)](_0x43a2fc[_0x5f49fc(0x116)]);_0x1d5893[_0x5f49fc(0xd2)][_0x5f49fc(0xf0)]=!0x1;}[_0x512b5a(0xeb)](_0x5d17be){const _0x42c66f=_0x512b5a;return!!_0x5d17be[_0x42c66f(0xfa)]&&_0x5d17be[_0x42c66f(0xfa)][_0x42c66f(0xf1)](_0x42c66f(0x145));}[_0x512b5a(0x109)](){const _0x4ce231=_0x512b5a;this[_0x4ce231(0x138)]=[],this[_0x4ce231(0xc0)]=void 0x0;}[_0x512b5a(0x115)](){const _0x42b33f=_0x512b5a;this[_0x42b33f(0x132)]&&this[_0x42b33f(0x132)][_0x42b33f(0xfd)](),this[_0x42b33f(0x13e)][_0x42b33f(0xcf)](),this[_0x42b33f(0xb7)]=!0x1;}[_0x512b5a(0xbc)](){const _0x4adf76=_0x512b5a,_0x44a4a5=new _0x1c056c(this[_0x4adf76(0x113)][_0x4adf76(0xf8)]);_0x44a4a5[_0x4adf76(0x147)]({'icon':_0x1986e1,'label':_0x172a5e(this[_0x4adf76(0x113)][_0x4adf76(0xf8)],_0x4adf76(0xdc)),'tooltip':!0x0,'class':_0x4adf76(0xbd)}),_0x44a4a5[_0x4adf76(0xd4)](_0x4adf76(0x9c))['to'](this,_0x4adf76(0xb7),_0x1a2bdf=>!_0x1a2bdf),_0x44a4a5['on'](_0x4adf76(0x13a),()=>{const _0x3f7711=_0x4adf76;this[_0x3f7711(0xf7)]();}),this[_0x4adf76(0xe5)][_0x4adf76(0x111)](_0x44a4a5);}[_0x512b5a(0x10e)](_0x55053f,_0x482a2b){const _0x29a8a9=_0x512b5a;_0x55053f[_0x29a8a9(0x11b)](),_0x482a2b[_0x29a8a9(0x104)][_0x29a8a9(0x11b)](),this[_0x29a8a9(0xb7)]=!0x0;}async[_0x512b5a(0xed)](_0x4ac0c1,_0x1567ef){const _0x151d42=_0x512b5a;await this[_0x151d42(0x13e)][_0x151d42(0xff)],this[_0x151d42(0xb7)]=!0x1,_0x4ac0c1[_0x151d42(0x13d)](),_0x1567ef[_0x151d42(0x104)][_0x151d42(0x13d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2c69(_0x368f34,_0x52d055){const _0x2e9eb6=_0x2e9e();return _0x2c69=function(_0x2c6933,_0x530475){_0x2c6933=_0x2c6933-0x7b;let _0x4552d8=_0x2e9eb6[_0x2c6933];return _0x4552d8;},_0x2c69(_0x368f34,_0x52d055);}const _0x246626=_0x2c69;(function(_0x1f5644,_0x49ae60){const _0x11c3ec=_0x2c69,_0x1c1fe2=_0x1f5644();while(!![]){try{const _0x2551a7=parseInt(_0x11c3ec(0x86))/0x1*(-parseInt(_0x11c3ec(0x87))/0x2)+-parseInt(_0x11c3ec(0x7f))/0x3*(parseInt(_0x11c3ec(0x95))/0x4)+parseInt(_0x11c3ec(0x9a))/0x5+-parseInt(_0x11c3ec(0x8d))/0x6*(parseInt(_0x11c3ec(0x98))/0x7)+-parseInt(_0x11c3ec(0x90))/0x8+parseInt(_0x11c3ec(0x8b))/0x9*(-parseInt(_0x11c3ec(0x8a))/0xa)+-parseInt(_0x11c3ec(0x93))/0xb*(-parseInt(_0x11c3ec(0x88))/0xc);if(_0x2551a7===_0x49ae60)break;else _0x1c1fe2['push'](_0x1c1fe2['shift']());}catch(_0x3f3896){_0x1c1fe2['push'](_0x1c1fe2['shift']());}}}(_0x2e9e,0xdc4ec));import{AIInteraction as _0x377300,AI_MODEL_EVENT_NAMES as _0x4e4a7f}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4ccb11}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x2fa369}from'./aiactionsreply.js';function _0x2e9e(){const _0x32c400=['executeCustomAction','editor','replies','1ypqcXS','867276GboocJ','336KAXUpd','content','90TwKuGG','359586ESuDTi','html','4448838jWZVHc','getDocumentContext','actionName','285744qawmjU','executeAction','fire','1297065MCKAiD','Current\x20document','1212lPcTol','TEXT','connector','14OgTnhx','args','2971990LaCetR','sendRequest','delegate','userMessage','replyCreated','version','model','6750TyNvqe','createReply','current-document','push'];_0x2e9e=function(){return _0x32c400;};return _0x2e9e();}export class AIActionsInteraction extends _0x377300{[_0x246626(0x89)];[_0x246626(0x7d)];[_0x246626(0x8f)];[_0x246626(0x99)];[_0x246626(0x7b)];[_0x246626(0x7e)];constructor(_0x40a87b){const _0x24c063=_0x246626;super(_0x40a87b),this[_0x24c063(0x89)]=_0x40a87b[_0x24c063(0x89)],this[_0x24c063(0x7d)]=_0x40a87b[_0x24c063(0x7d)],this[_0x24c063(0x8f)]=_0x40a87b[_0x24c063(0x8f)],this[_0x24c063(0x99)]=_0x40a87b[_0x24c063(0x99)],this[_0x24c063(0x7b)]=_0x40a87b[_0x24c063(0x7b)],this[_0x24c063(0x7e)]=_0x40a87b[_0x24c063(0x7e)];}async[_0x246626(0x9b)](){const _0x2aaba4=_0x246626;return this[_0x2aaba4(0x8f)]?this[_0x2aaba4(0x97)][_0x2aaba4(0x91)]({'content':this[_0x2aaba4(0x89)],'actionName':this[_0x2aaba4(0x8f)],'args':this[_0x2aaba4(0x99)]}):this[_0x2aaba4(0x97)][_0x2aaba4(0x83)]({'content':this[_0x2aaba4(0x89)],'message':this[_0x2aaba4(0x7b)],'model':this[_0x2aaba4(0x7e)],'outputFormat':_0x2aaba4(0x8c)});}[_0x246626(0x8e)](){const _0x438ce8=_0x246626;return{'type':_0x4ccb11[_0x438ce8(0x96)],'content':this[_0x438ce8(0x89)],'version':this[_0x438ce8(0x7d)],'label':_0x438ce8(0x94),'uiId':_0x438ce8(0x81)};}[_0x246626(0x80)](_0x557193){const _0xe91d7e=_0x246626,_0x164ec6=new _0x2fa369({'editor':this[_0xe91d7e(0x84)],'documentContextContent':this[_0xe91d7e(0x89)],..._0x557193});return this[_0xe91d7e(0x85)][_0xe91d7e(0x82)](_0x164ec6),_0x164ec6[_0xe91d7e(0x9c)](..._0x4e4a7f)['to'](this),this[_0xe91d7e(0x92)](_0xe91d7e(0x7c),_0x164ec6),_0x164ec6;}}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiactions/model/aiactionsreply
|
|
7
7
|
*/
|
|
8
|
-
import { AIReply } from '../../aicore/model/aireply.js';
|
|
8
|
+
import { AIReply, type AIReplyChangeGroup } from '../../aicore/model/aireply.js';
|
|
9
9
|
/**
|
|
10
10
|
* Represents a reply from the AI endpoint specifically for AI Actions.
|
|
11
11
|
* This class handles the unique behavior needed for AI Actions mode,
|
|
12
12
|
* where suggestions are presented as single change groups without context merging.
|
|
13
13
|
*/
|
|
14
14
|
export declare class AIActionsReply extends AIReply {
|
|
15
|
+
protected _getDifferentChangeGroups(oldGroups: Array<AIReplyChangeGroup>, newGroups: Array<AIReplyChangeGroup>): Array<AIReplyChangeGroup>;
|
|
15
16
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4643e9=_0x55c0;(function(_0x40d6e4,_0x170c6a){const _0x2d8c7c=_0x55c0,_0x47c2de=_0x40d6e4();while(!![]){try{const _0x370036=parseInt(_0x2d8c7c(0xe3))/0x1*(parseInt(_0x2d8c7c(0xe8))/0x2)+parseInt(_0x2d8c7c(0xcf))/0x3+-parseInt(_0x2d8c7c(0xd1))/0x4*(parseInt(_0x2d8c7c(0xdb))/0x5)+-parseInt(_0x2d8c7c(0xca))/0x6+parseInt(_0x2d8c7c(0xe5))/0x7*(-parseInt(_0x2d8c7c(0xe0))/0x8)+parseInt(_0x2d8c7c(0xde))/0x9+parseInt(_0x2d8c7c(0xdf))/0xa;if(_0x370036===_0x170c6a)break;else _0x47c2de['push'](_0x47c2de['shift']());}catch(_0x4435a4){_0x47c2de['push'](_0x47c2de['shift']());}}}(_0x58e0,0x32da7));function _0x58e0(){const _0x4bb854=['8DDtOxM','added','_getDifferentChangeGroups','19399ermtvF','parsedContent','1907129BMulbi','pending','documentContextContent','22wkuaxu','1698072URDtvJ','pop','childNodes','children','parsedMergedContent','68238LVzmht','cloneNode','4CpKZJR','map','removed','updateChangeGroups','length','value','new','changeGroups','isDone','data-id','1382155MxLWCA','modified','node','3157587Vprcgq','4532070ybJnTZ'];_0x58e0=function(){return _0x4bb854;};return _0x58e0();}function _0x55c0(_0xe2080d,_0x122184){const _0x58e049=_0x58e0();return _0x55c0=function(_0x55c0ce,_0x564ae6){_0x55c0ce=_0x55c0ce-0xca;let _0x1e5925=_0x58e049[_0x55c0ce];return _0x1e5925;},_0x55c0(_0xe2080d,_0x122184);}import{AIReply as _0x5e6998}from'../../aicore/model/aireply.js';import{getAttribute as _0x52b071}from'../../aicore/utils/htmlparser.js';import{uid as _0x1c80bd}from'ckeditor5/src/utils.js';import{diffArrays as _0x886198}from'diff';export class AIActionsReply extends _0x5e6998{[_0x4643e9(0xd4)](){const _0xd5bb96=_0x4643e9;if(this[_0xd5bb96(0xce)]=this[_0xd5bb96(0xe4)][_0xd5bb96(0xd0)](!0x0),0x0==this[_0xd5bb96(0xce)][_0xd5bb96(0xcc)][_0xd5bb96(0xd5)])return void(this[_0xd5bb96(0xd8)]=[]);const _0x345315=this[_0xd5bb96(0xe7)][_0xd5bb96(0xcd)][_0xd5bb96(0xd2)](_0x1df445=>({'node':_0x1df445,'id':_0x52b071(_0x1df445,_0xd5bb96(0xda))})),_0x191a95=this[_0xd5bb96(0xce)][_0xd5bb96(0xcd)][_0xd5bb96(0xd2)](_0x326a27=>({'node':_0x326a27,'id':_0x52b071(_0x326a27,_0xd5bb96(0xda))||_0x1c80bd()})),_0x4720cb=_0x886198(_0x345315,_0x191a95,{'comparator':(_0x1c76d2,_0x19ddf8)=>_0x1c76d2['id']==_0x19ddf8['id'],'oneChangePerToken':!0x0});if(!this[_0xd5bb96(0xd9)]){for(;_0x4720cb[_0xd5bb96(0xd5)]&&_0x4720cb[_0x4720cb[_0xd5bb96(0xd5)]-0x1][_0xd5bb96(0xd3)];)_0x4720cb[_0xd5bb96(0xcb)]();}const _0x32498e=_0x4720cb[_0xd5bb96(0xd2)](_0x539acd=>{const _0x1bf5bf=_0xd5bb96,_0x455613=_0x539acd[_0x1bf5bf(0xe1)]?_0x1bf5bf(0xd7):_0x539acd[_0x1bf5bf(0xd3)]?_0x1bf5bf(0xd3):_0x1bf5bf(0xdc);return{'node':_0x539acd[_0x1bf5bf(0xd6)][0x0][_0x1bf5bf(0xdd)],'type':_0x455613,'id':_0x539acd[_0x1bf5bf(0xd6)][0x0]['id']};});this[_0xd5bb96(0xd8)]=[{'changes':_0x32498e,'state':_0xd5bb96(0xe6),'index':0x0}];}[_0x4643e9(0xe2)](_0x10f22c,_0x3f7d02){return _0x3f7d02;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5d82(){var _0x1a4111=['2075759Gezdvh','32pnCclR','5kpPfFq','afterInit','18465403dvJhbM','textAdapter','641612MvPlaL','510AYCAha','name','4362054wBSYhw','AIAdapter','isOfficialPlugin','aiadapter-text-adapter-not-set','AIRequestError','isPremiumPlugin','pluginName','111564twFwYf','5071512GmmRdR','3mOumWR','151368xRmYBq'];_0x5d82=function(){return _0x1a4111;};return _0x5d82();}var _0x307b5d=_0x56e9;(function(_0x507ac5,_0x312487){var _0x303b2f=_0x56e9,_0x50f3f1=_0x507ac5();while(!![]){try{var _0x335442=parseInt(_0x303b2f(0x15f))/0x1*(-parseInt(_0x303b2f(0x167))/0x2)+parseInt(_0x303b2f(0x160))/0x3*(-parseInt(_0x303b2f(0x162))/0x4)+-parseInt(_0x303b2f(0x163))/0x5*(parseInt(_0x303b2f(0x16a))/0x6)+-parseInt(_0x303b2f(0x161))/0x7+parseInt(_0x303b2f(0x15e))/0x8+-parseInt(_0x303b2f(0x15d))/0x9*(-parseInt(_0x303b2f(0x168))/0xa)+parseInt(_0x303b2f(0x165))/0xb;if(_0x335442===_0x312487)break;else _0x50f3f1['push'](_0x50f3f1['shift']());}catch(_0x2bca75){_0x50f3f1['push'](_0x50f3f1['shift']());}}}(_0x5d82,0x878bc));function _0x56e9(_0x3e8991,_0x520899){var _0x5d82f9=_0x5d82();return _0x56e9=function(_0x56e94e,_0x587d25){_0x56e94e=_0x56e94e-0x159;var _0x18d706=_0x5d82f9[_0x56e94e];return _0x18d706;},_0x56e9(_0x3e8991,_0x520899);}import{Plugin as _0x13dcad}from'ckeditor5/src/core.js';import{CKEditorError as _0x27584c}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x13dcad{static get[_0x307b5d(0x15c)](){var _0x44d9dd=_0x307b5d;return _0x44d9dd(0x16b);}static get[_0x307b5d(0x16c)](){return!0x0;}static get[_0x307b5d(0x15b)](){return!0x0;}[_0x307b5d(0x164)](){var _0x57e3c7=_0x307b5d;if(!this[_0x57e3c7(0x166)])throw new _0x27584c(_0x57e3c7(0x159),null);}}export class AIRequestError extends Error{constructor(_0x4af4d8){var _0x1258eb=_0x307b5d;super(_0x4af4d8),this[_0x1258eb(0x169)]=_0x1258eb(0x15a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x22e4f9=_0xd849;(function(_0x154d55,_0xd19d67){const _0x5eb9b7=_0xd849,_0xff0604=_0x154d55();while(!![]){try{const _0x2e919a=parseInt(_0x5eb9b7(0x145))/0x1*(-parseInt(_0x5eb9b7(0x131))/0x2)+parseInt(_0x5eb9b7(0x147))/0x3+parseInt(_0x5eb9b7(0x154))/0x4*(-parseInt(_0x5eb9b7(0x14a))/0x5)+-parseInt(_0x5eb9b7(0x143))/0x6+-parseInt(_0x5eb9b7(0x132))/0x7+parseInt(_0x5eb9b7(0x13a))/0x8*(parseInt(_0x5eb9b7(0x144))/0x9)+-parseInt(_0x5eb9b7(0x153))/0xa*(-parseInt(_0x5eb9b7(0x133))/0xb);if(_0x2e919a===_0xd19d67)break;else _0xff0604['push'](_0xff0604['shift']());}catch(_0x46824c){_0xff0604['push'](_0xff0604['shift']());}}}(_0x1721,0x26a9b));function _0xd849(_0x3e7774,_0x4ef087){const _0x1721c5=_0x1721();return _0xd849=function(_0xd849db,_0x2c7407){_0xd849db=_0xd849db-0x130;let _0x2b204a=_0x1721c5[_0xd849db];return _0x2b204a;},_0xd849(_0x3e7774,_0x4ef087);}import{Plugin as _0x319544}from'ckeditor5/src/core.js';function _0x1721(){const _0x1c384a=['requires','editor','resolve','reject','72TRlVXd','abortController','_prepareRequestHeaders','aitextadapter-send-request-failed','textAdapter','object','AI_ERROR_GET_HEADERS','signal','locale','1189248BXxAZR','133173VrECfK','89kXQCTv','AI_ERROR_GET_PARAMETERS','868653oxncJf','sendRequest','init','5GtxVxJ','get','name','makeRequest','_prepareRequestParameters','plugins','abort','catch','AbortError','60TdIDoB','112124bwWcHd','application/json','assign','3214NGraOO','789831wHevvx','399179LnwKNY','aborted','error'];_0x1721=function(){return _0x1c384a;};return _0x1721();}import{CKEditorError as _0x1cc9da}from'ckeditor5/src/utils.js';import{AIAdapter as _0x33f4c0,AIRequestError as _0x366cfb}from'./aiadapter.js';import{getTranslation as _0x2bee8e}from'../utils/common-translations.js';export class AITextAdapter extends _0x319544{[_0x22e4f9(0x13b)];static get[_0x22e4f9(0x136)](){return[_0x33f4c0];}constructor(_0x3caae5){const _0x2bf466=_0x22e4f9;super(_0x3caae5),this[_0x2bf466(0x13b)]=new AbortController();}[_0x22e4f9(0x149)](){const _0x2d5e58=_0x22e4f9;this[_0x2d5e58(0x137)][_0x2d5e58(0x14f)][_0x2d5e58(0x14b)](_0x33f4c0)[_0x2d5e58(0x13e)]=this;}[_0x22e4f9(0x150)](){const _0x5db64c=_0x22e4f9;this[_0x5db64c(0x13b)][_0x5db64c(0x141)][_0x5db64c(0x134)]||(this[_0x5db64c(0x13b)][_0x5db64c(0x150)](),this[_0x5db64c(0x13b)]=new AbortController());}async[_0x22e4f9(0x14d)](_0x46c57b){const _0x1f2f58=_0x22e4f9;return this[_0x1f2f58(0x148)](_0x46c57b)[_0x1f2f58(0x151)](_0x4e8dbe=>{const _0x5784b7=_0x1f2f58;if(_0x4e8dbe instanceof _0x366cfb)return Promise[_0x5784b7(0x139)](_0x4e8dbe);if(_0x5784b7(0x152)==_0x4e8dbe[_0x5784b7(0x14c)])return Promise[_0x5784b7(0x138)]();throw console[_0x5784b7(0x135)](_0x4e8dbe),new _0x1cc9da(_0x5784b7(0x13d),null);});}async[_0x22e4f9(0x13c)](_0x2854e9,_0x3450e8){const _0x3f004a=_0x22e4f9,_0x5962b4=this[_0x3f004a(0x137)][_0x3f004a(0x142)],_0x5b4926={'Content-Type':_0x3f004a(0x155)};if(_0x3f004a(0x13f)==typeof _0x2854e9)Object[_0x3f004a(0x130)](_0x5b4926,_0x2854e9);else{if(_0x2854e9)try{const _0x597db0=await _0x2854e9(_0x3450e8);Object[_0x3f004a(0x130)](_0x5b4926,_0x597db0);}catch{return Promise[_0x3f004a(0x139)](new _0x366cfb(_0x2bee8e(_0x5962b4,_0x3f004a(0x140))));}}return _0x5b4926;}async[_0x22e4f9(0x14e)](_0xcc7380,_0x3cbe7b){const _0x385176=_0x22e4f9,_0x1a05ca=this[_0x385176(0x137)][_0x385176(0x142)];if(_0x385176(0x13f)==typeof _0xcc7380)return _0xcc7380;try{return await _0xcc7380(_0x3cbe7b);}catch{return Promise[_0x385176(0x139)](new _0x366cfb(_0x2bee8e(_0x1a05ca,_0x385176(0x146))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47e5ff=_0x3195;(function(_0x1cb19f,_0x3f2ead){const _0x3578ab=_0x3195,_0xafa668=_0x1cb19f();while(!![]){try{const _0x4e80f9=parseInt(_0x3578ab(0x1c9))/0x1*(parseInt(_0x3578ab(0x1f3))/0x2)+-parseInt(_0x3578ab(0x1d3))/0x3+parseInt(_0x3578ab(0x1db))/0x4*(parseInt(_0x3578ab(0x1e0))/0x5)+parseInt(_0x3578ab(0x1dc))/0x6*(parseInt(_0x3578ab(0x1c0))/0x7)+parseInt(_0x3578ab(0x1f9))/0x8+parseInt(_0x3578ab(0x1d4))/0x9+-parseInt(_0x3578ab(0x1c3))/0xa*(parseInt(_0x3578ab(0x1f4))/0xb);if(_0x4e80f9===_0x3f2ead)break;else _0xafa668['push'](_0xafa668['shift']());}catch(_0x4f9e86){_0xafa668['push'](_0xafa668['shift']());}}}(_0xbea8,0x36c9f));import{AITextAdapter as _0x38fb26}from'./aitextadapter.js';import{AIRequestError as _0x539940}from'./aiadapter.js';function _0x3195(_0x4b71fa,_0x184c29){const _0xbea8cf=_0xbea8();return _0x3195=function(_0x319538,_0x377f63){_0x319538=_0x319538-0x1bd;let _0x1cd193=_0xbea8cf[_0x319538];return _0x1cd193;},_0x3195(_0x4b71fa,_0x184c29);}import{BedrockRuntimeClient as _0x3bc855,InvokeModelCommand as _0x44f64d,InvokeModelWithResponseStreamCommand as _0x3592ab}from'@aws-sdk/client-bedrock-runtime';function _0xbea8(){const _0x512c0e=['\x0a[/INST]','cohere.command','406RARNIs','_processAWSRequest','join','9710UHWraQ','anthropic.claude-v2','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','signal','bytes','body','347431QJFjAG','_prepareRequestParameters','pluginName','sendRequest','_processProxyRequest','generations','editor','ai.assistant.adapter.aws.requestParameters','_readStreamableResponse','POST','1228764bdtBFR','2512611SRqVkc','text','config','send','\x0a<</SYS>>\x0a[INST]\x0a','stringify','AI_ERROR_UNSUPPORTED_MODEL','4XMLMQm','13698jnspdD','resolve','completion','Human:\x0a','248440VVokLj','_bedrockClientConfig','completions','data','chunk','getReader','split','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.','json','ai21.j2','AWSTextAdapter','define','Instruction:\x0a','test','<<SYS>>\x0a','application/json','_requestHeaders','ai.assistant.adapter.aws.bedrockClientConfig','read','2xvnFkH','4609EJYpVI','meta.llama','abortController','get','getModelFamily','1857120YXciWC','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.','preparePrompt','\x0a\x0aAssistant:','parse','_getGeneratedText','bedrock-2023-05-31','anthropic.claude','utf-8','decode','ai.assistant.adapter.aws.requestHeaders','ai.assistant.adapter.aws.apiUrl','map','_requestParameters','length','filter','_apiUrl','_readAsyncIterableResponse','_readStaticResponse','_prepareRequestHeaders','locale','generation'];_0xbea8=function(){return _0x512c0e;};return _0xbea8();}import{getTranslation as _0x52cb77}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x38fb26{[_0x47e5ff(0x209)];[_0x47e5ff(0x1f0)];[_0x47e5ff(0x1e1)];[_0x47e5ff(0x206)];static get[_0x47e5ff(0x1cb)](){const _0x4ffc61=_0x47e5ff;return _0x4ffc61(0x1ea);}constructor(_0xafa1aa){const _0x3d1c7e=_0x47e5ff;super(_0xafa1aa),_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x1d0))||_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1eb)](_0x3d1c7e(0x1d0),{'model':_0x3d1c7e(0x1c4),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3d1c7e(0x1ff),'stream':!0x0}),this[_0x3d1c7e(0x209)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x204)),this[_0x3d1c7e(0x1e1)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x1f1)),this[_0x3d1c7e(0x1f0)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x203)),this[_0x3d1c7e(0x206)]=_0xafa1aa[_0x3d1c7e(0x1d6)][_0x3d1c7e(0x1f7)](_0x3d1c7e(0x1d0));}async[_0x47e5ff(0x1cc)]({query:_0x4eb3a1,context:_0x35c09b,onData:_0x260135,actionId:_0x5a7f0d}){const _0x20ff5e=_0x47e5ff,{model:_0x2c5a9e,stream:_0x1dc1f7,..._0xdf8dd9}=await this[_0x20ff5e(0x1ca)](this[_0x20ff5e(0x206)],_0x5a7f0d),_0x18deff={'prompt':await this[_0x20ff5e(0x1fb)](_0x4eb3a1,_0x35c09b,_0x2c5a9e,_0x5a7f0d),..._0xdf8dd9};this[_0x20ff5e(0x209)]?await this[_0x20ff5e(0x1cd)](_0x18deff,_0x2c5a9e,_0x1dc1f7,_0x260135,_0x5a7f0d):await this[_0x20ff5e(0x1c1)](_0x18deff,_0x2c5a9e,_0x1dc1f7,_0x260135);}async[_0x47e5ff(0x1fb)](_0x1fb55f,_0x2796d1,_0x33a4b4,_0x7046a2){const _0x46054f=_0x47e5ff;let _0x470c36,_0xa6935d;return _0x2796d1?(_0x470c36=_0x46054f(0x1fa),_0xa6935d=_0x46054f(0x1ec)+_0x1fb55f+_0x46054f(0x1c5)+_0x2796d1):(_0x470c36=_0x46054f(0x1e7),_0xa6935d=_0x1fb55f),_0x46054f(0x1f5)==this[_0x46054f(0x1f8)](_0x33a4b4)?_0x46054f(0x1ee)+_0x470c36+_0x46054f(0x1d8)+_0xa6935d+_0x46054f(0x1be):_0x46054f(0x1df)+_0x470c36+'\x0a'+_0xa6935d+_0x46054f(0x1fc);}[_0x47e5ff(0x1f8)](_0x23ccac){const _0x30c77f=_0x47e5ff;if(/^anthropic\.claude/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x200);if(/^ai21\.j2/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x1e9);if(/^cohere\.command/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x1bf);if(/^meta\.llama/[_0x30c77f(0x1ed)](_0x23ccac))return _0x30c77f(0x1f5);throw new _0x539940(_0x52cb77(this[_0x30c77f(0x1cf)][_0x30c77f(0x20d)],_0x30c77f(0x1da),_0x23ccac));}async[_0x47e5ff(0x1cd)](_0x1ccea2,_0x5356fc,_0x5be456,_0xa0415,_0x3f3634){const _0x243865=_0x47e5ff,_0xf1a85c={'method':_0x243865(0x1d2),'headers':await this[_0x243865(0x20c)](this[_0x243865(0x1f0)],_0x3f3634),'body':JSON[_0x243865(0x1d9)]({..._0x1ccea2,'model':_0x5356fc,'stream':_0x5be456}),'signal':this[_0x243865(0x1f6)][_0x243865(0x1c6)]},_0x410596=await fetch(this[_0x243865(0x209)],_0xf1a85c);_0x5be456?await this[_0x243865(0x1d1)](_0x410596,_0x5356fc,_0xa0415):await this[_0x243865(0x20b)](_0x410596,_0x5356fc,_0xa0415);}async[_0x47e5ff(0x1c1)](_0x14f9ff,_0x3a5f2c,_0x144e6b,_0x384f32){const _0x1b37e5=_0x47e5ff,_0x8ee3b0=new _0x3bc855(this[_0x1b37e5(0x1e1)]),_0xf5eeee={'body':JSON[_0x1b37e5(0x1d9)](_0x14f9ff),'contentType':_0x1b37e5(0x1ef),'accept':_0x1b37e5(0x1ef),'modelId':_0x3a5f2c};let _0x2c4966;if(_0x144e6b){const _0x2fb734=new _0x3592ab(_0xf5eeee);_0x2c4966=await _0x8ee3b0[_0x1b37e5(0x1d7)](_0x2fb734,{'abortSignal':this[_0x1b37e5(0x1f6)][_0x1b37e5(0x1c6)]}),await this[_0x1b37e5(0x20a)](_0x2c4966,_0x3a5f2c,_0x384f32);}else{const _0x5cf57a=new _0x44f64d(_0xf5eeee);_0x2c4966=await _0x8ee3b0[_0x1b37e5(0x1d7)](_0x5cf57a,{'abortSignal':this[_0x1b37e5(0x1f6)][_0x1b37e5(0x1c6)]}),await this[_0x1b37e5(0x20b)](_0x2c4966,_0x3a5f2c,_0x384f32);}}async[_0x47e5ff(0x20a)](_0xb8d813,_0x180d82,_0x5cbc42){const _0x1f84da=_0x47e5ff,_0x2b7e44=_0xb8d813[_0x1f84da(0x1c8)],_0x45d9d9=new TextDecoder(_0x1f84da(0x201));let _0x1b8875='';for await(const _0x2f1125 of _0x2b7e44)if(_0x2f1125[_0x1f84da(0x1e4)]){const _0x308846=_0x45d9d9[_0x1f84da(0x202)](_0x2f1125[_0x1f84da(0x1e4)][_0x1f84da(0x1c7)]),_0x1ef588=JSON[_0x1f84da(0x1fd)](_0x308846);_0x1b8875+=this[_0x1f84da(0x1fe)](_0x1ef588,_0x180d82),_0x5cbc42(_0x1b8875);}return Promise[_0x1f84da(0x1dd)]();}async[_0x47e5ff(0x1d1)](_0x3c1134,_0x371235,_0x3531ee){const _0x70cca2=_0x47e5ff,_0x420acd=_0x3c1134[_0x70cca2(0x1c8)],_0x5dfffa=new TextDecoder(_0x70cca2(0x201)),_0x3c2a24=_0x420acd[_0x70cca2(0x1e5)]();let _0x160a14='',_0x2548ee='',_0x375845=!0x1;for(;!_0x375845;){const {done:_0x498ad3,value:_0x16650b}=await _0x3c2a24[_0x70cca2(0x1f2)]();if(_0x375845=_0x498ad3,_0x375845)break;const _0xec07cd=(_0x160a14+_0x5dfffa[_0x70cca2(0x202)](_0x16650b))[_0x70cca2(0x1e6)]('\x0a')[_0x70cca2(0x205)](_0x45c64d=>{const _0x53d7b2=_0x70cca2;try{return _0x160a14='',JSON[_0x53d7b2(0x1fd)](_0x45c64d);}catch{return _0x160a14=_0x45c64d,null;}})[_0x70cca2(0x208)](_0x229798=>null!==_0x229798);_0xec07cd[_0x70cca2(0x207)]&&(_0x2548ee+=_0xec07cd[_0x70cca2(0x205)](_0x18911c=>this[_0x70cca2(0x1fe)](_0x18911c,_0x371235))[_0x70cca2(0x1c2)](''),_0x3531ee(_0x2548ee));}return Promise[_0x70cca2(0x1dd)]();}async[_0x47e5ff(0x20b)](_0x1f033d,_0x5494ea,_0x6ab329){const _0x560674=_0x47e5ff;let _0x4a3d16;return _0x4a3d16=_0x1f033d instanceof Response?await _0x1f033d[_0x560674(0x1e8)]():JSON[_0x560674(0x1fd)](new TextDecoder(_0x560674(0x201))[_0x560674(0x202)](_0x1f033d[_0x560674(0x1c8)])),(_0x6ab329(this[_0x560674(0x1fe)](_0x4a3d16,_0x5494ea)),Promise[_0x560674(0x1dd)]());}[_0x47e5ff(0x1fe)](_0x5594d9,_0x49f214){const _0x9c63e9=_0x47e5ff;switch(this[_0x9c63e9(0x1f8)](_0x49f214)){case _0x9c63e9(0x200):return _0x5594d9[_0x9c63e9(0x1de)];case _0x9c63e9(0x1e9):return _0x5594d9[_0x9c63e9(0x1e2)][0x0][_0x9c63e9(0x1e3)][_0x9c63e9(0x1d5)];case _0x9c63e9(0x1bf):return _0x5594d9[_0x9c63e9(0x1ce)][0x0][_0x9c63e9(0x1d5)];case _0x9c63e9(0x1f5):return _0x5594d9[_0x9c63e9(0x1bd)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3a9c77=_0xa07f;function _0xa07f(_0x214924,_0x2a628a){const _0x481781=_0x4817();return _0xa07f=function(_0xa07f4,_0x5cee80){_0xa07f4=_0xa07f4-0x15b;let _0x3ee43c=_0x481781[_0xa07f4];return _0x3ee43c;},_0xa07f(_0x214924,_0x2a628a);}(function(_0x7da327,_0x59c245){const _0x5a2171=_0xa07f,_0x34b0c3=_0x7da327();while(!![]){try{const _0x5bbb79=-parseInt(_0x5a2171(0x19f))/0x1+-parseInt(_0x5a2171(0x164))/0x2*(parseInt(_0x5a2171(0x161))/0x3)+parseInt(_0x5a2171(0x19e))/0x4+-parseInt(_0x5a2171(0x184))/0x5*(-parseInt(_0x5a2171(0x15e))/0x6)+parseInt(_0x5a2171(0x162))/0x7+parseInt(_0x5a2171(0x185))/0x8+-parseInt(_0x5a2171(0x178))/0x9*(parseInt(_0x5a2171(0x166))/0xa);if(_0x5bbb79===_0x59c245)break;else _0x34b0c3['push'](_0x34b0c3['shift']());}catch(_0x28a2b5){_0x34b0c3['push'](_0x34b0c3['shift']());}}}(_0x4817,0x2255b));import{AITextAdapter as _0x36282e}from'./aitextadapter.js';import{AIRequestError as _0x1f9255}from'./aiadapter.js';import{getTranslation as _0x585f05}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x36282e{[_0x3a9c77(0x188)];[_0x3a9c77(0x194)];[_0x3a9c77(0x199)];static get[_0x3a9c77(0x16e)](){const _0x584313=_0x3a9c77;return _0x584313(0x19b);}constructor(_0xb29c12){const _0x5c90bc=_0x3a9c77;super(_0xb29c12),_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x1a0)](_0x5c90bc(0x160),_0x5c90bc(0x18c)),_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x196))||_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x1a0)](_0x5c90bc(0x196),{'model':_0x5c90bc(0x165),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5c90bc(0x188)]=_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x160)),this[_0x5c90bc(0x194)]=_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x179))||{},this[_0x5c90bc(0x199)]=_0xb29c12[_0x5c90bc(0x19a)][_0x5c90bc(0x190)](_0x5c90bc(0x196));}async[_0x3a9c77(0x17a)]({query:_0x1cc12f,context:_0x27c5c9,onData:_0x1400f4,actionId:_0xcf9ca9}){const _0x20c475=_0x3a9c77,_0x399147=this[_0x20c475(0x17c)][_0x20c475(0x163)],_0x4f7af3=await this[_0x20c475(0x17e)](_0x1cc12f,_0x27c5c9,_0xcf9ca9),_0x166410=await this[_0x20c475(0x175)](this[_0x20c475(0x194)],_0xcf9ca9),_0x36ef91=await this[_0x20c475(0x167)](this[_0x20c475(0x199)],_0xcf9ca9),_0x53a229={'messages':_0x4f7af3,..._0x36ef91},_0x558541={'method':_0x20c475(0x17b),'headers':_0x166410,'body':JSON[_0x20c475(0x180)](_0x53a229),'signal':this[_0x20c475(0x181)][_0x20c475(0x15c)]},_0x57fb3e=await fetch(this[_0x20c475(0x188)],_0x558541);if(_0x57fb3e['ok'])return _0x36ef91[_0x20c475(0x169)]?await this[_0x20c475(0x18b)](_0x57fb3e,_0x1400f4):await this[_0x20c475(0x18d)](_0x57fb3e,_0x1400f4),Promise[_0x20c475(0x192)]();{const _0x5f37cc=await _0x57fb3e[_0x20c475(0x16d)]();return _0x5f37cc[_0x20c475(0x16c)](_0x20c475(0x17f))?Promise[_0x20c475(0x16f)](new _0x1f9255(_0x585f05(_0x399147,_0x20c475(0x171)))):_0x5f37cc[_0x20c475(0x16c)](_0x20c475(0x177))?Promise[_0x20c475(0x16f)](new _0x1f9255(_0x585f05(_0x399147,_0x20c475(0x186)))):Promise[_0x20c475(0x16f)](new Error(_0x5f37cc));}}async[_0x3a9c77(0x17e)](_0x31e3d9,_0x55cfc7,_0x146cbc){const _0x9c9f95=_0x3a9c77;let _0x3891d4,_0x342200;return _0x55cfc7?(_0x3891d4=_0x9c9f95(0x176),_0x342200=_0x9c9f95(0x168)+_0x31e3d9+_0x9c9f95(0x182)+_0x55cfc7):(_0x3891d4=_0x9c9f95(0x170),_0x342200=_0x31e3d9),[{'role':_0x9c9f95(0x16b),'content':_0x3891d4},{'role':_0x9c9f95(0x18f),'content':_0x342200}];}async[_0x3a9c77(0x18b)](_0x2e0c32,_0x503adc){const _0x56189a=_0x3a9c77,_0x39c87f=_0x2e0c32[_0x56189a(0x191)][_0x56189a(0x16a)](),_0x21c46e=new TextDecoder();let _0x59a2d4='',_0x2dd874='',_0xefc0be='',_0x215ee7=!0x1;for(;!_0x215ee7;){const {done:_0x3b9514,value:_0x592cd6}=await _0x39c87f[_0x56189a(0x15d)](),_0x35b3bf=_0x59a2d4+_0x21c46e[_0x56189a(0x187)](_0x592cd6);let _0x573c3b='';_0x215ee7=_0x3b9514;try{_0x573c3b=this[_0x56189a(0x195)](_0x35b3bf),_0x59a2d4='';}catch{_0x59a2d4=_0x35b3bf;continue;}_0x2dd874+=_0x573c3b,!_0x215ee7&&this[_0x56189a(0x17d)](_0x2dd874)||_0x2dd874&&(_0xefc0be+=_0x2dd874,_0x2dd874='',_0x503adc(_0xefc0be));}return Promise[_0x56189a(0x192)]();}async[_0x3a9c77(0x18d)](_0x8d0f4a,_0x9e4ecb){const _0x352792=_0x3a9c77;return _0x9e4ecb((await _0x8d0f4a[_0x352792(0x193)]())[_0x352792(0x15b)][0x0][_0x352792(0x174)][_0x352792(0x189)]),Promise[_0x352792(0x192)]();}[_0x3a9c77(0x17d)](_0x58a5c4){const _0x1a6b08=_0x3a9c77,_0x10b768=_0x58a5c4[_0x1a6b08(0x173)]('<')[_0x1a6b08(0x197)]!==_0x58a5c4[_0x1a6b08(0x173)]('>')[_0x1a6b08(0x197)],_0x2d405a=_0x58a5c4[_0x1a6b08(0x197)]<0x1e;return _0x10b768&&_0x2d405a;}[_0x3a9c77(0x195)](_0xd69aec){const _0x56bea7=_0x3a9c77;return _0xd69aec[_0x56bea7(0x173)](/\n(?![^{]*\})/g)[_0x56bea7(0x18e)](_0x59ba6e=>_0x59ba6e[_0x56bea7(0x18a)](_0x56bea7(0x19d),''))[_0x56bea7(0x183)](_0xaa5074=>_0xaa5074&&_0xaa5074[_0x56bea7(0x197)]>0x0&&_0x56bea7(0x15f)!==_0xaa5074)[_0x56bea7(0x18e)](_0x4f0905=>{const _0x4a9321=_0x56bea7,{choices:_0x570649}=JSON[_0x4a9321(0x198)](_0x4f0905);if(_0x570649[0x0]?.[_0x4a9321(0x19c)]?.[_0x4a9321(0x189)])return _0x570649[0x0][_0x4a9321(0x19c)][_0x4a9321(0x189)];})[_0x56bea7(0x183)](_0x5a723c=>_0x5a723c)[_0x56bea7(0x172)]('');}}function _0x4817(){const _0x560edf=['1666024VblgSb','AI_ERROR_MODERATION','decode','_apiUrl','content','replace','_readStreamableResponse','https://api.openai.com/v1/chat/completions','_readStaticResponse','map','user','get','body','resolve','json','_requestHeaders','_cleanUpData','ai.assistant.adapter.openAI.requestParameters','length','parse','_requestParameters','config','OpenAITextAdapter','delta','data:\x20','649964FCVcRb','84184XilEUd','define','choices','signal','read','6afUHlh','[DONE]','ai.assistant.adapter.openAI.apiUrl','3CQMJwA','1119727uPNmdf','locale','107412ZQJqZx','gpt-4o','27880PXtzSa','_prepareRequestParameters','Instruction:\x0a','stream','getReader','system','includes','text','pluginName','reject','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.','AI_ERROR_CONTEXT_LENGTH','join','split','message','_prepareRequestHeaders','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.','Moderation','1044iFvICV','ai.assistant.adapter.openAI.requestHeaders','sendRequest','POST','editor','_isBufferIncomplete','prepareMessages','context_length_exceeded','stringify','abortController','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','filter','356140gNzENx'];_0x4817=function(){return _0x560edf;};return _0x4817();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59321c=_0x1a71;(function(_0x496452,_0x507ba4){const _0x4d90d7=_0x1a71,_0x2a0f1d=_0x496452();while(!![]){try{const _0xbbf2f=-parseInt(_0x4d90d7(0x89))/0x1+-parseInt(_0x4d90d7(0xd6))/0x2+-parseInt(_0x4d90d7(0x8f))/0x3+-parseInt(_0x4d90d7(0xcb))/0x4+parseInt(_0x4d90d7(0xd7))/0x5+parseInt(_0x4d90d7(0xcd))/0x6*(-parseInt(_0x4d90d7(0x8e))/0x7)+parseInt(_0x4d90d7(0xa5))/0x8;if(_0xbbf2f===_0x507ba4)break;else _0x2a0f1d['push'](_0x2a0f1d['shift']());}catch(_0x1a237d){_0x2a0f1d['push'](_0x2a0f1d['shift']());}}}(_0x2bcd,0x77dc3));import{Plugin as _0x313d6a}from'ckeditor5/src/core.js';function _0x1a71(_0x359c1e,_0x1e9149){const _0x2bcd64=_0x2bcd();return _0x1a71=function(_0x1a71fc,_0x50684c){_0x1a71fc=_0x1a71fc-0x6f;let _0xab7428=_0x2bcd64[_0x1a71fc];return _0xab7428;},_0x1a71(_0x359c1e,_0x1e9149);}import{AIAssistantUI as _0x38be66}from'./aiassistantui.js';import{AIAssistantEditing as _0x22e8d1}from'./aiassistantediting.js';function _0x2bcd(){const _0x3b6656=['Translate\x20the\x20content\x20to\x20German\x20language.','16560832cwnEcy','ai.assistant.removeCommands','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.extraCommandGroups','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Professional','isOfficialPlugin','translateSpanish','Summarize','concat','ai.assistant.preserveComments','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Change\x20style','ai.assistant.commands','Translate\x20the\x20content\x20to\x20French\x20language.','summarize','Translate\x20the\x20content\x20to\x20English\x20language.','German','improveWriting','Business','English','direct','changeStyle','translateHindi','Simplify\x20language','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','find','continue','French','translateGerman','Casual','AIAssistant','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','confident','define','Continue','Translate\x20the\x20content\x20to\x20Hindi\x20language.','2821984bVlOPs','Change\x20tone','24gpmeBk','professional','Journalism','Make\x20shorter','Simplified\x20Chinese','friendly','get','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','translatePortuguese','10898FmuwnR','3646020FIOWiC','Spanish','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','changeTone','Friendly','Poetic','pluginName','makeLonger','isPremiumPlugin','Confident','Legal','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','generate','Portuguese','Direct','translateEnglish','Arabic','push','filter','forEach','requires','journalism','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','simplifyLanguage','translateFrench','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','legal','business','poetic','casual','Hindi','978365MVSwoS','config','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','groupId','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','619773abvoMz','794685ULgcMt','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','set','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','locale','Improve\x20writing','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','commands','Translate\x20the\x20content\x20to\x20Arabic\x20language.','translateChinese','Edit\x20or\x20review','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','makeShorter','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate','editOrReview','translateArabic','includes','Generate\x20from\x20selection','Make\x20longer'];_0x2bcd=function(){return _0x3b6656;};return _0x2bcd();}import{getTranslation as _0x279b0b}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x304ac0}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x313d6a{static get[_0x59321c(0x7e)](){return[_0x38be66,_0x22e8d1];}static get[_0x59321c(0x70)](){const _0x5f238a=_0x59321c;return _0x5f238a(0xc5);}static get[_0x59321c(0xab)](){return!0x0;}static get[_0x59321c(0x72)](){return!0x0;}constructor(_0x348cd9){const _0x6a1e59=_0x59321c;super(_0x348cd9);const _0x562d9e=_0x348cd9[_0x6a1e59(0x8a)],_0x222112=_0x348cd9[_0x6a1e59(0x94)];_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xaf),!0x0),_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xb2),getDefaultAICommands(_0x222112)),_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xa8),[]),_0x562d9e[_0x6a1e59(0xc8)](_0x6a1e59(0xa6),[]);let _0x520299=_0x304ac0(_0x562d9e[_0x6a1e59(0xd3)](_0x6a1e59(0xb2)),_0x222112);const _0x29d16e=_0x562d9e[_0x6a1e59(0xd3)](_0x6a1e59(0xa8)),_0x5135d9=_0x562d9e[_0x6a1e59(0xd3)](_0x6a1e59(0xa6));_0x29d16e[_0x6a1e59(0x7d)](_0x4c28c8=>{const _0xce085a=_0x6a1e59,_0x36795c=_0x520299[_0xce085a(0xc0)](_0x337b2b=>_0x337b2b[_0xce085a(0x8c)]===_0x4c28c8[_0xce085a(0x8c)]);_0x36795c?_0x36795c[_0xce085a(0x97)]=_0x36795c[_0xce085a(0x97)][_0xce085a(0xae)](_0x4c28c8[_0xce085a(0x97)]):_0x520299[_0xce085a(0x7b)](_0x4c28c8);}),_0x520299=_0x520299[_0x6a1e59(0x7c)](_0x522253=>!_0x5135d9[_0x6a1e59(0xa1)](_0x522253[_0x6a1e59(0x8c)])),_0x520299[_0x6a1e59(0x7d)](_0x21fa80=>{const _0x2fbecc=_0x6a1e59;_0x21fa80[_0x2fbecc(0x97)]=_0x21fa80[_0x2fbecc(0x97)][_0x2fbecc(0x7c)](_0x551e89=>!_0x5135d9[_0x2fbecc(0xa1)](_0x551e89['id']));}),_0x562d9e[_0x6a1e59(0x91)](_0x6a1e59(0xb2),_0x520299);}}export function getDefaultAICommands(_0x36b11d){const _0x5c3875=_0x59321c;return[{'groupId':_0x5c3875(0x9f),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0x9a)),'commands':[{'id':_0x5c3875(0xb7),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x95)),'prompt':_0x5c3875(0x93)},{'id':_0x5c3875(0x9c),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xd0)),'prompt':_0x5c3875(0x92)},{'id':_0x5c3875(0x71),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xa3)),'prompt':_0x5c3875(0x96)},{'id':_0x5c3875(0x81),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xbd)),'prompt':_0x5c3875(0xd9)}]},{'groupId':_0x5c3875(0x76),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0xa2)),'commands':[{'id':_0x5c3875(0xb4),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xad)),'prompt':_0x5c3875(0x8b)},{'id':_0x5c3875(0xc1),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xc9)),'prompt':_0x5c3875(0x83)}]},{'groupId':_0x5c3875(0xda),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0xcc)),'commands':[{'id':_0x5c3875(0xce),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xaa)),'prompt':_0x5c3875(0xb0)},{'id':_0x5c3875(0x87),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xc4)),'prompt':_0x5c3875(0xbf)},{'id':_0x5c3875(0xba),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x78)),'prompt':_0x5c3875(0xa9)},{'id':_0x5c3875(0xc7),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x73)),'prompt':_0x5c3875(0x80)},{'id':_0x5c3875(0xd2),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xdb)),'prompt':_0x5c3875(0x9b)}]},{'groupId':_0x5c3875(0xbb),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0xb1)),'commands':[{'id':_0x5c3875(0x85),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xb8)),'prompt':_0x5c3875(0x75)},{'id':_0x5c3875(0x84),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x74)),'prompt':_0x5c3875(0x90)},{'id':_0x5c3875(0x7f),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xcf)),'prompt':_0x5c3875(0xc6)},{'id':_0x5c3875(0x86),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x6f)),'prompt':_0x5c3875(0x8d)}]},{'groupId':_0x5c3875(0xbe),'groupLabel':_0x279b0b(_0x36b11d,_0x5c3875(0x9e)),'commands':[{'id':_0x5c3875(0x79),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xb9)),'prompt':_0x5c3875(0xb5)},{'id':_0x5c3875(0xac),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xd8)),'prompt':_0x5c3875(0x9d)},{'id':_0x5c3875(0xd5),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x77)),'prompt':_0x5c3875(0xd4)},{'id':_0x5c3875(0xc3),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xb6)),'prompt':_0x5c3875(0xa4)},{'id':_0x5c3875(0x82),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xc2)),'prompt':_0x5c3875(0xb3)},{'id':_0x5c3875(0x99),'label':_0x279b0b(_0x36b11d,_0x5c3875(0xd1)),'prompt':_0x5c3875(0xa7)},{'id':_0x5c3875(0xbc),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x88)),'prompt':_0x5c3875(0xca)},{'id':_0x5c3875(0xa0),'label':_0x279b0b(_0x36b11d,_0x5c3875(0x7a)),'prompt':_0x5c3875(0x98)}]}];}
|