@ckeditor/ckeditor5-ai 47.2.0 → 47.3.0-alpha.1
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/LICENSE.md +16 -20
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +285 -65
- package/dist/index.css +286 -68
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +10 -1
- package/lang/translations/af.po +36 -0
- package/lang/translations/ar.po +36 -0
- package/lang/translations/ast.po +36 -0
- package/lang/translations/az.po +36 -0
- package/lang/translations/be.po +36 -0
- package/lang/translations/bg.po +36 -0
- package/lang/translations/bn.po +36 -0
- package/lang/translations/bs.po +36 -0
- package/lang/translations/ca.po +36 -0
- package/lang/translations/cs.po +36 -0
- package/lang/translations/da.po +36 -0
- package/lang/translations/de-ch.po +36 -0
- package/lang/translations/de.po +36 -0
- package/lang/translations/el.po +36 -0
- package/lang/translations/en-au.po +36 -0
- package/lang/translations/en-gb.po +36 -0
- package/lang/translations/en.po +36 -0
- package/lang/translations/eo.po +36 -0
- package/lang/translations/es-co.po +36 -0
- package/lang/translations/es.po +36 -0
- package/lang/translations/et.po +36 -0
- package/lang/translations/eu.po +36 -0
- package/lang/translations/fa.po +36 -0
- package/lang/translations/fi.po +36 -0
- package/lang/translations/fr.po +36 -0
- package/lang/translations/gl.po +36 -0
- package/lang/translations/gu.po +36 -0
- package/lang/translations/he.po +36 -0
- package/lang/translations/hi.po +36 -0
- package/lang/translations/hr.po +36 -0
- package/lang/translations/hu.po +36 -0
- package/lang/translations/hy.po +36 -0
- package/lang/translations/id.po +36 -0
- package/lang/translations/it.po +36 -0
- package/lang/translations/ja.po +36 -0
- package/lang/translations/jv.po +36 -0
- package/lang/translations/kk.po +36 -0
- package/lang/translations/km.po +36 -0
- package/lang/translations/kn.po +36 -0
- package/lang/translations/ko.po +36 -0
- package/lang/translations/ku.po +36 -0
- package/lang/translations/lt.po +36 -0
- package/lang/translations/lv.po +36 -0
- package/lang/translations/ms.po +36 -0
- package/lang/translations/nb.po +36 -0
- package/lang/translations/ne.po +36 -0
- package/lang/translations/nl.po +36 -0
- package/lang/translations/no.po +36 -0
- package/lang/translations/oc.po +36 -0
- package/lang/translations/pl.po +36 -0
- package/lang/translations/pt-br.po +36 -0
- package/lang/translations/pt.po +36 -0
- package/lang/translations/ro.po +36 -0
- package/lang/translations/ru.po +36 -0
- package/lang/translations/si.po +36 -0
- package/lang/translations/sk.po +36 -0
- package/lang/translations/sl.po +36 -0
- package/lang/translations/sq.po +36 -0
- package/lang/translations/sr-latn.po +36 -0
- package/lang/translations/sr.po +36 -0
- package/lang/translations/sv.po +36 -0
- package/lang/translations/th.po +36 -0
- package/lang/translations/ti.po +36 -0
- package/lang/translations/tk.po +36 -0
- package/lang/translations/tr.po +36 -0
- package/lang/translations/tt.po +36 -0
- package/lang/translations/ug.po +36 -0
- package/lang/translations/uk.po +36 -0
- package/lang/translations/ur.po +36 -0
- package/lang/translations/uz.po +36 -0
- package/lang/translations/vi.po +36 -0
- package/lang/translations/zh-cn.po +36 -0
- package/lang/translations/zh.po +36 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +8 -0
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +12 -0
- 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.d.ts +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +23 -0
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +24 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +5 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.d.ts +8 -0
- package/src/errorsmap.js +23 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +26 -0
- package/theme/aichat/aichat.css +1 -3
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +139 -25
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
- package/theme/aireviewmode/aireviewmode.css +33 -10
- package/theme/common/{aichaterror.css → ainotification.css} +17 -14
- package/theme/common/aitrackchanges.css +9 -0
- package/src/aichat/utils/scrollmanager.js +0 -23
- /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x21c350=_0xcf13;(function(_0x87611e,_0x2cffcb){const _0x517504=_0xcf13,_0x48836e=_0x87611e();while(!![]){try{const _0xf3992=parseInt(_0x517504(0x1fc))/0x1*(parseInt(_0x517504(0x1ec))/0x2)+parseInt(_0x517504(0x1fe))/0x3*(parseInt(_0x517504(0x1f7))/0x4)+-parseInt(_0x517504(0x222))/0x5*(-parseInt(_0x517504(0x207))/0x6)+-parseInt(_0x517504(0x1ea))/0x7*(-parseInt(_0x517504(0x212))/0x8)+-parseInt(_0x517504(0x224))/0x9+-parseInt(_0x517504(0x1d5))/0xa+-parseInt(_0x517504(0x1d8))/0xb*(-parseInt(_0x517504(0x1dd))/0xc);if(_0xf3992===_0x2cffcb)break;else _0x48836e['push'](_0x48836e['shift']());}catch(_0xe3daa){_0x48836e['push'](_0x48836e['shift']());}}}(_0x57b4,0x58498));import{View as _0x4f7aeb,SearchTextView as _0x488a81,FormHeaderView as _0x59173f,ButtonView as _0xee6442}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2082c3,IconCancel as _0x22d498,IconPlus as _0x3ed463}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x355bae}from'./aichathistorysectionlistview.js';function _0x57b4(){const _0x2675f4=['change:hasItems','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','skeletonView','7162750LsoVcQ','removeHistoryItem','isEmptyViewVisible','11nqJKxV','ck-ai-chat-history__empty-message','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','fire','4440312SGHPtw','updateTitle','some','sectionsView','bind','_createSkeletonView','ck-ai-chat-error__dismiss-button','value','updateItemLoadingState','_createEmptyStateView','locale','emptyView','isLoading','8519VxjbCm','ck-ai-chat__start-conversation','2NqmFyi','ck-ai-chat-history','AI_CHAT_LABEL_NEW_CHAT','isVisible','_updateViewVisibility','updateLoadingState','children','element','ltr','queryView','change:errorMessage','145088wErkyd','resizeButton','indexOf','itemsViews','ck-ai-chat-history__content','5642doGUnq','remove','42ujyBbo','execute','errorMessage','updateItemTitle','_createErrorView','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createSearchView','div','18UkNmfp','getItem','delegate','items','_refreshSearch','ck-ai-chat-history__empty','title','searchView','ck-rounded-corners','length','sections','2136bacBEk','ck-reset_all','hasItems','clear','splice','errorView','search','openChat','AI_CHAT_HISTORY_HEADING','aiHistory','extendTemplate','isMaximized','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-error','bindTemplate','fieldView','642545ogkTCX','_createListItemViews','4644387INvEoR','updateHistoryItemsWithCategories','set','addMany','add','isSearchViewVisible','push','ck-ai-header\x20ck-ai-header_history','removeItem','render','setTemplate'];_0x57b4=function(){return _0x2675f4;};return _0x57b4();}import{AIChatHistoryListView as _0x1c2a76}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1c53cf}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x330fcb}from'../aichathistoryui.js';function _0xcf13(_0x1e7aa3,_0x52135d){const _0x57b443=_0x57b4();return _0xcf13=function(_0xcf13ae,_0x1cfdc3){_0xcf13ae=_0xcf13ae-0x1d3;let _0xf1b337=_0x57b443[_0xcf13ae];return _0xf1b337;},_0xcf13(_0x1e7aa3,_0x52135d);}import{AISkeletonView as _0x321175,SKELETON_DEFINITIONS as _0x15005a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x17b32e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x36fca2}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4f7aeb{[_0x21c350(0x20e)];[_0x21c350(0x217)];[_0x21c350(0x1d4)];[_0x21c350(0x1e8)];[_0x21c350(0x1e0)];[_0x21c350(0x1f8)];constructor(_0x1aaa0c,_0x3bc01f){const _0x2c5cd9=_0x21c350;super(_0x1aaa0c),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x214),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x1e9),!0x0),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x200),''),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x21d),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x229),!0x1),this[_0x2c5cd9(0x226)](_0x2c5cd9(0x1d7),!0x1);const _0xffbe30=new _0x59173f(_0x1aaa0c,{'label':_0x36fca2(_0x1aaa0c,_0x2c5cd9(0x21a)),'icon':_0x2082c3,'class':_0x2c5cd9(0x22b)});_0x3bc01f&&(this[_0x2c5cd9(0x1f8)]=_0x17b32e(_0x1aaa0c,this),_0xffbe30[_0x2c5cd9(0x1f2)][_0x2c5cd9(0x228)](this[_0x2c5cd9(0x1f8)])),this[_0x2c5cd9(0x1e0)]=new _0x355bae(_0x1aaa0c,[]),this[_0x2c5cd9(0x1e0)][_0x2c5cd9(0x209)](..._0x330fcb)['to'](this),this[_0x2c5cd9(0x217)]=this[_0x2c5cd9(0x202)](),this[_0x2c5cd9(0x1d4)]=this[_0x2c5cd9(0x1e2)](),this[_0x2c5cd9(0x1e8)]=this[_0x2c5cd9(0x1e6)](),this[_0x2c5cd9(0x20e)]=this[_0x2c5cd9(0x205)](),this['on'](_0x2c5cd9(0x1da),()=>this[_0x2c5cd9(0x1f0)]()),this['on'](_0x2c5cd9(0x22f),()=>this[_0x2c5cd9(0x1f0)]()),this['on'](_0x2c5cd9(0x1f6),()=>this[_0x2c5cd9(0x1f0)]()),this[_0x2c5cd9(0x22e)]({'tag':_0x2c5cd9(0x206),'attributes':{'class':['ck',_0x2c5cd9(0x213),_0x2c5cd9(0x1ed),_0x2c5cd9(0x20f)],'dir':_0x2c5cd9(0x1f4)},'children':[_0xffbe30,{'tag':_0x2c5cd9(0x206),'attributes':{'class':[_0x2c5cd9(0x1fb)]},'children':[this[_0x2c5cd9(0x1d4)],this[_0x2c5cd9(0x217)],this[_0x2c5cd9(0x1e8)],this[_0x2c5cd9(0x20e)]]}]});}[_0x21c350(0x1f0)](){const _0x44bfe5=_0x21c350;this[_0x44bfe5(0x229)]=!this[_0x44bfe5(0x1e9)]&&this[_0x44bfe5(0x214)]&&!this[_0x44bfe5(0x200)],this[_0x44bfe5(0x1d7)]=!this[_0x44bfe5(0x1e9)]&&!this[_0x44bfe5(0x214)]&&!this[_0x44bfe5(0x200)];}[_0x21c350(0x205)](){const _0x42eac1=_0x21c350,_0x4caa98=new _0x488a81(this[_0x42eac1(0x1e7)],{'filteredView':this[_0x42eac1(0x1e0)],'queryView':{'label':_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x21e))},'infoView':{'text':{'notFound':{'primary':_0x1dce36=>_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x1d3),_0x1dce36),'secondary':_0x36fca2(this[_0x42eac1(0x1e7)],_0x42eac1(0x204))}}}});return _0x4caa98['on'](_0x42eac1(0x22d),()=>{const _0x46a32c=_0x42eac1;this[_0x46a32c(0x20e)][_0x46a32c(0x1f2)][_0x46a32c(0x228)](this[_0x46a32c(0x217)],0x1);}),_0x4caa98[_0x42eac1(0x21c)]({'attributes':{'class':[this[_0x42eac1(0x220)]['if'](_0x42eac1(0x229),_0x42eac1(0x203),_0x1c9e3c=>!_0x1c9e3c)]}}),_0x4caa98;}[_0x21c350(0x1e2)](){const _0x359f5c=_0x21c350,_0x4740fb=new _0x321175(this[_0x359f5c(0x1e7)],_0x15005a[_0x359f5c(0x21b)]);return _0x4740fb[_0x359f5c(0x21c)]({'attributes':{'class':[this[_0x359f5c(0x220)]['if'](_0x359f5c(0x1e9),_0x359f5c(0x203),_0x24a436=>!_0x24a436)]}}),_0x4740fb;}[_0x21c350(0x202)](){const _0xc2c023=_0x21c350,_0x37a8c1=new _0x4f7aeb(this[_0xc2c023(0x1e7)]),_0xe79a3c=new _0xee6442(this[_0xc2c023(0x1e7)]);return _0xe79a3c[_0xc2c023(0x226)]({'withText':!0x1,'icon':_0x22d498,'class':_0xc2c023(0x1e3)}),_0xe79a3c[_0xc2c023(0x1e1)](_0xc2c023(0x1ef))['to'](this,_0xc2c023(0x214),_0x464d20=>!!_0x464d20),_0xe79a3c['on'](_0xc2c023(0x1ff),()=>{const _0x1b7270=_0xc2c023;this[_0x1b7270(0x200)]='';}),_0x37a8c1[_0xc2c023(0x22e)]({'tag':_0xc2c023(0x206),'attributes':{'class':['ck',_0xc2c023(0x21f),this[_0xc2c023(0x220)]['if'](_0xc2c023(0x200),_0xc2c023(0x203),_0x5abb69=>!_0x5abb69)]},'children':[{'tag':'p','children':[{'text':this[_0xc2c023(0x220)]['to'](_0xc2c023(0x200))}]},_0xe79a3c]}),_0x37a8c1;}[_0x21c350(0x1e6)](){const _0x1f1aec=_0x21c350,_0x20284b=new _0xee6442(this[_0x1f1aec(0x1e7)]);_0x20284b[_0x1f1aec(0x226)]({'label':_0x36fca2(this[_0x1f1aec(0x1e7)],_0x1f1aec(0x1ee)),'withText':!0x0,'icon':_0x3ed463,'class':_0x1f1aec(0x1eb)}),_0x20284b['on'](_0x1f1aec(0x1ff),()=>{const _0x1ef083=_0x1f1aec;this[_0x1ef083(0x1dc)](_0x1ef083(0x219));});const _0x37b471=new _0x4f7aeb(this[_0x1f1aec(0x1e7)]);return _0x37b471[_0x1f1aec(0x22e)]({'tag':_0x1f1aec(0x206),'attributes':{'class':[_0x1f1aec(0x20c),this[_0x1f1aec(0x220)]['if'](_0x1f1aec(0x1d7),_0x1f1aec(0x203),_0x1bede2=>!_0x1bede2)]},'children':[{'tag':'p','attributes':{'class':[_0x1f1aec(0x1d9)]},'children':[_0x36fca2(this[_0x1f1aec(0x1e7)],_0x1f1aec(0x1db))]},_0x20284b]}),_0x37b471;}[_0x21c350(0x223)](_0x26951d,_0x7dfc1a){const _0x3f5e66=_0x21c350,_0x5dd5d4=[];for(const _0x13cd35 of _0x26951d){const _0x558370=new _0x1c53cf(_0x7dfc1a,_0x13cd35);_0x558370[_0x3f5e66(0x209)](..._0x330fcb)['to'](this),_0x5dd5d4[_0x3f5e66(0x22a)](_0x558370);}return _0x5dd5d4;}[_0x21c350(0x225)](_0x460d31){const _0x18b715=_0x21c350,_0x1eea81=this[_0x18b715(0x1e7)]||'en',_0x9d0760=[];for(const _0x2b281a of _0x460d31){const _0xb72c3b=this[_0x18b715(0x223)](_0x2b281a[_0x18b715(0x20a)],_0x1eea81);_0x9d0760[_0x18b715(0x22a)](new _0x1c2a76(_0x1eea81,{'title':_0x2b281a[_0x18b715(0x20d)],'items':_0xb72c3b}));}this[_0x18b715(0x1e0)][_0x18b715(0x211)]=_0x9d0760,this[_0x18b715(0x1e0)][_0x18b715(0x20a)][_0x18b715(0x215)](),this[_0x18b715(0x1e0)][_0x18b715(0x20a)][_0x18b715(0x227)](_0x9d0760),this[_0x18b715(0x214)]=_0x460d31[_0x18b715(0x1df)](_0x5f06f5=>_0x5f06f5[_0x18b715(0x20a)][_0x18b715(0x210)]>0x0),this[_0x18b715(0x20b)]();}[_0x21c350(0x1d6)](_0x2b5abc){const _0x3cc500=_0x21c350;for(const _0x85ac4b of this[_0x3cc500(0x1e0)][_0x3cc500(0x211)]){const _0xe36c17=_0x85ac4b[_0x3cc500(0x208)](_0x2b5abc);if(_0xe36c17){if(_0x85ac4b[_0x3cc500(0x22c)](_0xe36c17),0x0===_0x85ac4b[_0x3cc500(0x1fa)][_0x3cc500(0x210)]){const _0x51ff3f=this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x1f9)](_0x85ac4b);-0x1!==_0x51ff3f&&(this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x216)](_0x51ff3f,0x1),this[_0x3cc500(0x1e0)][_0x3cc500(0x20a)][_0x3cc500(0x1fd)](_0x85ac4b));}this[_0x3cc500(0x214)]=this[_0x3cc500(0x1e0)][_0x3cc500(0x211)][_0x3cc500(0x210)]>0x0,this[_0x3cc500(0x20b)]();break;}}}[_0x21c350(0x201)](_0x540b3a,_0x47e90b){const _0x5723e9=_0x21c350;for(const _0x3b4285 of this[_0x5723e9(0x1e0)][_0x5723e9(0x211)]){const _0x4cc680=_0x3b4285[_0x5723e9(0x208)](_0x540b3a);if(_0x4cc680){_0x4cc680[_0x5723e9(0x1de)](_0x47e90b);break;}}}[_0x21c350(0x1e5)](_0x40c61f,_0x592e69,_0x566be4){const _0x379915=_0x21c350;for(const _0x27ea11 of this[_0x379915(0x1e0)][_0x379915(0x211)]){const _0x3da72b=_0x27ea11[_0x379915(0x208)](_0x40c61f);if(_0x3da72b){_0x3da72b[_0x379915(0x1f1)](_0x592e69,_0x566be4);break;}}}[_0x21c350(0x20b)](){const _0x1248ed=_0x21c350;if(this[_0x1248ed(0x214)]){const _0x160abb=this[_0x1248ed(0x20e)][_0x1248ed(0x1f5)][_0x1248ed(0x221)]?.[_0x1248ed(0x1f3)]?.[_0x1248ed(0x1e4)]||'';this[_0x1248ed(0x20e)][_0x1248ed(0x218)](_0x160abb);}}}
|
|
23
|
+
const _0x4a861d=_0x32b1;(function(_0x1dcca3,_0x44c8a0){const _0x4ff1d7=_0x32b1,_0x47be07=_0x1dcca3();while(!![]){try{const _0x33c3da=-parseInt(_0x4ff1d7(0x13a))/0x1*(parseInt(_0x4ff1d7(0xfd))/0x2)+-parseInt(_0x4ff1d7(0x142))/0x3*(parseInt(_0x4ff1d7(0x114))/0x4)+-parseInt(_0x4ff1d7(0x116))/0x5*(-parseInt(_0x4ff1d7(0x13c))/0x6)+-parseInt(_0x4ff1d7(0x109))/0x7*(-parseInt(_0x4ff1d7(0x140))/0x8)+-parseInt(_0x4ff1d7(0x103))/0x9*(-parseInt(_0x4ff1d7(0x128))/0xa)+parseInt(_0x4ff1d7(0x102))/0xb+-parseInt(_0x4ff1d7(0x141))/0xc;if(_0x33c3da===_0x44c8a0)break;else _0x47be07['push'](_0x47be07['shift']());}catch(_0x1ab533){_0x47be07['push'](_0x47be07['shift']());}}}(_0x5777,0x87ab7));import{View as _0x571140,SearchTextView as _0x2eb6f5,FormHeaderView as _0x522204,ButtonView as _0x5cda32}from'ckeditor5/src/ui.js';function _0x32b1(_0x434d1e,_0x36bada){const _0x577712=_0x5777();return _0x32b1=function(_0x32b16a,_0x3d11ef){_0x32b16a=_0x32b16a-0xf1;let _0x44562f=_0x577712[_0x32b16a];return _0x44562f;},_0x32b1(_0x434d1e,_0x36bada);}import{IconAIHistory as _0x5d7289,IconCancel as _0x182220,IconPlus as _0x12cea6}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1062e9}from'./aichathistorysectionlistview.js';function _0x5777(){const _0x47d6db=['_updateViewVisibility','12732rWoxdV','value','_createErrorView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','890680jVdvUI','1498380ICJwOn','922647OEVOgM','updateItemTitle','AI_CHAT_HISTORY_HEADING','remove','ck-reset_all','ck-ai-header\x20ck-ai-header_history','change:errorMessage','render','title','length','updateItemLoadingState','ck-ai-notification_error__dismiss-button','isLoading','bind','some','splice','change:isLoading','_createSearchView','execute','ck-hidden','locale','sectionsView','isMaximized','errorMessage','div','6010nigZMD','AI_CHAT_HISTORY_EMPTY_MESSAGE','children','delegate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','276782cXrFuC','349137xeoCDb','skeletonView','ck-ai-notification','fieldView','hasItems','_refreshSearch','35nUQeDk','change:hasItems','isEmptyViewVisible','errorView','AI_CHAT_HISTORY_SEARCH_LABEL','removeItem','sections','resizeButton','ck-ai-chat__start-conversation','push','aiHistory','4cONKof','extendTemplate','1115CeuIUQ','addMany','_createSkeletonView','ck-ai-notification_error','queryView','updateHistoryItemsWithCategories','element','ck-ai-chat-history__empty-message','emptyView','ck-ai-chat-history','isVisible','getItem','clear','setTemplate','items','AI_CHAT_LABEL_NEW_CHAT','add','updateTitle','30ImacwI','updateLoadingState','_createListItemViews','indexOf','ck-rounded-corners','ck-ai-chat-history__empty','set','ck-ai-chat-history__content','ltr','searchView','isSearchViewVisible','removeHistoryItem','fire','bindTemplate','itemsViews','openChat','_createEmptyStateView','search','61bdBWOE'];_0x5777=function(){return _0x47d6db;};return _0x5777();}import{AIChatHistoryListView as _0x331b8f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4b1f19}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5fd7a4}from'../aichathistoryui.js';import{AISkeletonView as _0x34ef75,SKELETON_DEFINITIONS as _0x3cb2df}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x434793}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2ba6ee}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x571140{[_0x4a861d(0x131)];[_0x4a861d(0x10c)];[_0x4a861d(0x104)];[_0x4a861d(0x11e)];[_0x4a861d(0xf9)];[_0x4a861d(0x110)];constructor(_0x1a3a1d,_0x49ec65){const _0x308bf1=_0x4a861d;super(_0x1a3a1d),this[_0x308bf1(0x12e)](_0x308bf1(0x107),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x14e),!0x0),this[_0x308bf1(0x12e)](_0x308bf1(0xfb),''),this[_0x308bf1(0x12e)](_0x308bf1(0xfa),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x132),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x10b),!0x1);const _0x1c06bd=new _0x522204(_0x1a3a1d,{'label':_0x2ba6ee(_0x1a3a1d,_0x308bf1(0x144)),'icon':_0x5d7289,'class':_0x308bf1(0x147)});_0x49ec65&&(this[_0x308bf1(0x110)]=_0x434793(_0x1a3a1d,this),_0x1c06bd[_0x308bf1(0xff)][_0x308bf1(0x126)](this[_0x308bf1(0x110)])),this[_0x308bf1(0xf9)]=new _0x1062e9(_0x1a3a1d,[]),this[_0x308bf1(0xf9)][_0x308bf1(0x100)](..._0x5fd7a4)['to'](this),this[_0x308bf1(0x10c)]=this[_0x308bf1(0x13e)](),this[_0x308bf1(0x104)]=this[_0x308bf1(0x118)](),this[_0x308bf1(0x11e)]=this[_0x308bf1(0x138)](),this[_0x308bf1(0x131)]=this[_0x308bf1(0xf5)](),this['on'](_0x308bf1(0xf4),()=>this[_0x308bf1(0x13b)]()),this['on'](_0x308bf1(0x10a),()=>this[_0x308bf1(0x13b)]()),this['on'](_0x308bf1(0x148),()=>this[_0x308bf1(0x13b)]()),this[_0x308bf1(0x123)]({'tag':_0x308bf1(0xfc),'attributes':{'class':['ck',_0x308bf1(0x146),_0x308bf1(0x11f),_0x308bf1(0x12c)],'dir':_0x308bf1(0x130)},'children':[_0x1c06bd,{'tag':_0x308bf1(0xfc),'attributes':{'class':[_0x308bf1(0x12f)]},'children':[this[_0x308bf1(0x104)],this[_0x308bf1(0x10c)],this[_0x308bf1(0x11e)],this[_0x308bf1(0x131)]]}]});}[_0x4a861d(0x13b)](){const _0x2ab226=_0x4a861d;this[_0x2ab226(0x132)]=!this[_0x2ab226(0x14e)]&&this[_0x2ab226(0x107)]&&!this[_0x2ab226(0xfb)],this[_0x2ab226(0x10b)]=!this[_0x2ab226(0x14e)]&&!this[_0x2ab226(0x107)]&&!this[_0x2ab226(0xfb)];}[_0x4a861d(0xf5)](){const _0x37fc32=_0x4a861d,_0x4cfa44=new _0x2eb6f5(this[_0x37fc32(0xf8)],{'filteredView':this[_0x37fc32(0xf9)],'queryView':{'label':_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x12b8b4=>_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x101),_0x12b8b4),'secondary':_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x13f))}}}});return _0x4cfa44['on'](_0x37fc32(0x149),()=>{const _0xabcc4e=_0x37fc32;this[_0xabcc4e(0x131)][_0xabcc4e(0xff)][_0xabcc4e(0x126)](this[_0xabcc4e(0x10c)],0x1);}),_0x4cfa44[_0x37fc32(0x115)]({'attributes':{'class':[this[_0x37fc32(0x135)]['if'](_0x37fc32(0x132),_0x37fc32(0xf7),_0xa05e40=>!_0xa05e40)]}}),_0x4cfa44;}[_0x4a861d(0x118)](){const _0x43ed33=_0x4a861d,_0x29b87c=new _0x34ef75(this[_0x43ed33(0xf8)],_0x3cb2df[_0x43ed33(0x113)]);return _0x29b87c[_0x43ed33(0x115)]({'attributes':{'class':[this[_0x43ed33(0x135)]['if'](_0x43ed33(0x14e),_0x43ed33(0xf7),_0x384e0d=>!_0x384e0d)]}}),_0x29b87c;}[_0x4a861d(0x13e)](){const _0xbdcb4b=_0x4a861d,_0x3bd446=new _0x571140(this[_0xbdcb4b(0xf8)]),_0x548730=new _0x5cda32(this[_0xbdcb4b(0xf8)]);return _0x548730[_0xbdcb4b(0x12e)]({'withText':!0x1,'icon':_0x182220,'class':_0xbdcb4b(0x14d)}),_0x548730[_0xbdcb4b(0xf1)](_0xbdcb4b(0x120))['to'](this,_0xbdcb4b(0x107),_0x4be4ca=>!!_0x4be4ca),_0x548730['on'](_0xbdcb4b(0xf6),()=>{const _0x303280=_0xbdcb4b;this[_0x303280(0xfb)]='';}),_0x3bd446[_0xbdcb4b(0x123)]({'tag':_0xbdcb4b(0xfc),'attributes':{'class':['ck',_0xbdcb4b(0x105),_0xbdcb4b(0x119),this[_0xbdcb4b(0x135)]['if'](_0xbdcb4b(0xfb),_0xbdcb4b(0xf7),_0x4bc55d=>!_0x4bc55d)]},'children':[{'tag':'p','children':[{'text':this[_0xbdcb4b(0x135)]['to'](_0xbdcb4b(0xfb))}]},_0x548730]}),_0x3bd446;}[_0x4a861d(0x138)](){const _0x4831dd=_0x4a861d,_0x580cfb=new _0x5cda32(this[_0x4831dd(0xf8)]);_0x580cfb[_0x4831dd(0x12e)]({'label':_0x2ba6ee(this[_0x4831dd(0xf8)],_0x4831dd(0x125)),'withText':!0x0,'icon':_0x12cea6,'class':_0x4831dd(0x111)}),_0x580cfb['on'](_0x4831dd(0xf6),()=>{const _0x2e97e5=_0x4831dd;this[_0x2e97e5(0x134)](_0x2e97e5(0x137));});const _0x32ff5d=new _0x571140(this[_0x4831dd(0xf8)]);return _0x32ff5d[_0x4831dd(0x123)]({'tag':_0x4831dd(0xfc),'attributes':{'class':[_0x4831dd(0x12d),this[_0x4831dd(0x135)]['if'](_0x4831dd(0x10b),_0x4831dd(0xf7),_0x35bed9=>!_0x35bed9)]},'children':[{'tag':'p','attributes':{'class':[_0x4831dd(0x11d)]},'children':[_0x2ba6ee(this[_0x4831dd(0xf8)],_0x4831dd(0xfe))]},_0x580cfb]}),_0x32ff5d;}[_0x4a861d(0x12a)](_0x45fcba,_0x5e35ef){const _0x49b706=_0x4a861d,_0x2822f9=[];for(const _0xfae2d0 of _0x45fcba){const _0x4305df=new _0x4b1f19(_0x5e35ef,_0xfae2d0);_0x4305df[_0x49b706(0x100)](..._0x5fd7a4)['to'](this),_0x2822f9[_0x49b706(0x112)](_0x4305df);}return _0x2822f9;}[_0x4a861d(0x11b)](_0x809eff){const _0x5f5bc3=_0x4a861d,_0x18e1c4=this[_0x5f5bc3(0xf8)]||'en',_0x147901=[];for(const _0x3580e1 of _0x809eff){const _0x55314b=this[_0x5f5bc3(0x12a)](_0x3580e1[_0x5f5bc3(0x124)],_0x18e1c4);_0x147901[_0x5f5bc3(0x112)](new _0x331b8f(_0x18e1c4,{'title':_0x3580e1[_0x5f5bc3(0x14a)],'items':_0x55314b}));}this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x10f)]=_0x147901,this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x124)][_0x5f5bc3(0x122)](),this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x124)][_0x5f5bc3(0x117)](_0x147901),this[_0x5f5bc3(0x107)]=_0x809eff[_0x5f5bc3(0xf2)](_0x3fbb25=>_0x3fbb25[_0x5f5bc3(0x124)][_0x5f5bc3(0x14b)]>0x0),this[_0x5f5bc3(0x108)]();}[_0x4a861d(0x133)](_0x5823d5){const _0x2ed4c3=_0x4a861d;for(const _0x244a4a of this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)]){const _0xe24c39=_0x244a4a[_0x2ed4c3(0x121)](_0x5823d5);if(_0xe24c39){if(_0x244a4a[_0x2ed4c3(0x10e)](_0xe24c39),0x0===_0x244a4a[_0x2ed4c3(0x136)][_0x2ed4c3(0x14b)]){const _0x1ab155=this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0x12b)](_0x244a4a);-0x1!==_0x1ab155&&(this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0xf3)](_0x1ab155,0x1),this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x124)][_0x2ed4c3(0x145)](_0x244a4a));}this[_0x2ed4c3(0x107)]=this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0x14b)]>0x0,this[_0x2ed4c3(0x108)]();break;}}}[_0x4a861d(0x143)](_0x50ab4b,_0x5da47f){const _0x3d559c=_0x4a861d;for(const _0x25fe27 of this[_0x3d559c(0xf9)][_0x3d559c(0x10f)]){const _0x36f2a8=_0x25fe27[_0x3d559c(0x121)](_0x50ab4b);if(_0x36f2a8){_0x36f2a8[_0x3d559c(0x127)](_0x5da47f);break;}}}[_0x4a861d(0x14c)](_0x3435ec,_0x119f13,_0x264ddb){const _0x5a4e92=_0x4a861d;for(const _0x5416e6 of this[_0x5a4e92(0xf9)][_0x5a4e92(0x10f)]){const _0x2b17ec=_0x5416e6[_0x5a4e92(0x121)](_0x3435ec);if(_0x2b17ec){_0x2b17ec[_0x5a4e92(0x129)](_0x119f13,_0x264ddb);break;}}}[_0x4a861d(0x108)](){const _0x5580af=_0x4a861d;if(this[_0x5580af(0x107)]){const _0x1a5160=this[_0x5580af(0x131)][_0x5580af(0x11a)][_0x5580af(0x106)]?.[_0x5580af(0x11c)]?.[_0x5580af(0x13d)]||'';this[_0x5580af(0x131)][_0x5580af(0x139)](_0x1a5160);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3baf81=_0x3335;(function(_0x3ce11a,_0x2829a){const _0x2a0320=_0x3335,_0x1b3454=_0x3ce11a();while(!![]){try{const _0x191b51=parseInt(_0x2a0320(0x185))/0x1*(parseInt(_0x2a0320(0x190))/0x2)+parseInt(_0x2a0320(0x188))/0x3*(parseInt(_0x2a0320(0x193))/0x4)+-parseInt(_0x2a0320(0x167))/0x5+parseInt(_0x2a0320(0x175))/0x6*(-parseInt(_0x2a0320(0x151))/0x7)+-parseInt(_0x2a0320(0x197))/0x8*(-parseInt(_0x2a0320(0x16a))/0x9)+-parseInt(_0x2a0320(0x1c8))/0xa*(parseInt(_0x2a0320(0x142))/0xb)+-parseInt(_0x2a0320(0x1cb))/0xc*(parseInt(_0x2a0320(0x1bd))/0xd);if(_0x191b51===_0x2829a)break;else _0x1b3454['push'](_0x1b3454['shift']());}catch(_0x868c1c){_0x1b3454['push'](_0x1b3454['shift']());}}}(_0x1df3,0x2b663));import{createParser as _0x9804e1}from'eventsource-parser';import{ContextPlugin as _0x3d9c7a}from'ckeditor5/src/core.js';import{CKEditorError as _0x2990ef}from'ckeditor5/src/utils.js';function _0x1df3(){const _0x518d84=['deleteFile','status','PATCH','/files/','get','1537260msGzuD','uploadUrl','queryAssistant','9aKHuZn','deleteDocument','AIConnector','true','improve-writing','getReader','/messages','application/json','isPremiumPlugin','ai.serviceUrl','/conversations?','6iKLrng','signal','_token','/reviews/system/','translate','executeCustomAction','data','abortController','/reviews/custom/calls/','ai-request-aborted','releaseLock','/messages/','continue','plugins','Bearer\x20','positiveCount','1DoPbeq','DELETE','_getStreamReader','51693UHQbNa','100','read','ai-request-failed','/calls/','/documents','requires','executeAction','468778bshEML','/calls','_handleError','60rfzZhL','https://ai.cke-cs.com/v1','statusText','/conversations/','1250408zjsFMQ','TRANSLATE','body','fetchDocument','uploadDocument','token','/web-resources','/actions/custom/calls/','make-shorter','/actions/system/','name','append','decode','upsertAIActionRating','then','/reviews/custom/calls','getModels','uploadFile','fetchConversation','fetchConversationMessages','totalCount','deleteWebResource','upsertAIReviewRating','fix-grammar','search','POST','upsertCustomAIReviewRating','Content-Type','CloudServices','callCustomReview','upsertAIChatRating','text','MAKE_TONE_CASUAL','context','push','group','deleteConversation','feed','4407gbhmar','stringify','/models/1','/files','make-longer','make-tone-casual','CONTINUE','isOfficialPlugin','pluginName','excludeEmpty','make-tone-formal','80dwwoZR','FIX_GRAMMAR','catch','516JORqvk','attributes','ai-missing-token','/ratings','_sendApiRequest','json','_decoder','length','139788cCknXR','upsertCustomAIActionRating','toString','/conversations','/web-resources/','value','PUT','/actions/custom/calls','define','IMPROVE_WRITING','MAKE_SHORTER','init','file','AbortError','GET','333893GnvrDR','fetchConversations','items','modificationId','reset','MAKE_LONGER','keys','request','callSystemReview','startConversation','parse','MAKE_TONE_FORMAL','_apiUrl','config','updateConversation','/documents/','limit'];_0x1df3=function(){return _0x518d84;};return _0x1df3();}function _0x3335(_0x24f61f,_0xf9a138){const _0x1df377=_0x1df3();return _0x3335=function(_0x333500,_0x58eb98){_0x333500=_0x333500-0x13c;let _0x126077=_0x1df377[_0x333500];return _0x126077;},_0x3335(_0x24f61f,_0xf9a138);}export var AIActionsNames;!function(_0x39804c){const _0x3b058c=_0x3335;_0x39804c[_0x3b058c(0x1c3)]=_0x3b058c(0x181),_0x39804c[_0x3b058c(0x1c9)]=_0x3b058c(0x1ae),_0x39804c[_0x3b058c(0x14b)]=_0x3b058c(0x16e),_0x39804c[_0x3b058c(0x156)]=_0x3b058c(0x1c1),_0x39804c[_0x3b058c(0x14c)]=_0x3b058c(0x19f),_0x39804c[_0x3b058c(0x1b7)]=_0x3b058c(0x1c2),_0x39804c[_0x3b058c(0x15c)]=_0x3b058c(0x1c7),_0x39804c[_0x3b058c(0x198)]=_0x3b058c(0x179);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x3d9c7a{[_0x3baf81(0x15d)];[_0x3baf81(0x177)];[_0x3baf81(0x140)];static get[_0x3baf81(0x18e)](){const _0x4b2121=_0x3baf81;return[_0x4b2121(0x1b3)];}static get[_0x3baf81(0x1c5)](){const _0x4b4ac8=_0x3baf81;return _0x4b4ac8(0x16c);}static get[_0x3baf81(0x1c4)](){return!0x0;}static get[_0x3baf81(0x172)](){return!0x0;}constructor(_0x4346b1){const _0x268350=_0x3baf81;super(_0x4346b1),this[_0x268350(0x1b8)][_0x268350(0x15e)][_0x268350(0x14a)](_0x268350(0x173),_0x268350(0x194)),this[_0x268350(0x15d)]=this[_0x268350(0x1b8)][_0x268350(0x15e)][_0x268350(0x166)](_0x268350(0x173)),this[_0x268350(0x177)]=null,this[_0x268350(0x140)]=new TextDecoder();}[_0x3baf81(0x14d)](){const _0x305234=_0x3baf81,_0x140a83=this[_0x305234(0x1b8)][_0x305234(0x182)][_0x305234(0x166)](_0x305234(0x1b3));if(!_0x140a83[_0x305234(0x19c)])throw new _0x2990ef(_0x305234(0x13c),this);this[_0x305234(0x177)]=_0x140a83[_0x305234(0x19c)];}[_0x3baf81(0x15a)](_0x2dfc62,_0x54c77d){const _0x56a5bf=_0x3baf81,_0x5d8375=this[_0x56a5bf(0x13e)](_0x56a5bf(0x145),_0x56a5bf(0x1b0),{'id':_0x2dfc62,'group':_0x54c77d});return{'getConversation':async()=>(await _0x5d8375[_0x56a5bf(0x158)])[_0x56a5bf(0x13f)](),'abortController':_0x5d8375[_0x56a5bf(0x17c)]};}[_0x3baf81(0x169)]({message:_0x222201,conversationId:_0x2bea2b,parts:_0x56f196,capabilities:_0x3bc5f1,model:_0x4771c1,quickActionData:_0x5ae313}){const _0x30843e=_0x3baf81,_0x4440b8={..._0x5ae313&&{'quickActionData':_0x5ae313}},_0x338be8={'prompt':_0x222201,'content':_0x56f196,'model':_0x4771c1,..._0x3bc5f1&&{'capabilities':_0x3bc5f1},...Object[_0x30843e(0x157)](_0x4440b8)[_0x30843e(0x141)]>0x0&&{'attributes':_0x4440b8}},_0x251c9b=this[_0x30843e(0x13e)](_0x30843e(0x196)+_0x2bea2b+_0x30843e(0x170),_0x30843e(0x1b0),_0x338be8);return{'getStream':async()=>{const _0x490d18=_0x30843e,_0x176b45=(await _0x251c9b[_0x490d18(0x158)])[_0x490d18(0x199)];return this[_0x490d18(0x187)](_0x176b45);},'abortController':_0x251c9b[_0x30843e(0x17c)]};}[_0x3baf81(0x17a)]({content:_0x4e824f,message:_0x5f3d17,model:_0x598d33,outputFormat:_0x186b41}){const _0x319a24=_0x3baf81,_0x489d02={'content':[{'type':_0x319a24(0x1b6),'content':_0x4e824f}],'prompt':_0x5f3d17,'model':_0x598d33,'outputFormat':_0x186b41},_0x583d85=this[_0x319a24(0x13e)](_0x319a24(0x149),_0x319a24(0x1b0),_0x489d02);return{'getStream':async()=>{const _0x2c855f=_0x319a24,_0x55c900=(await _0x583d85[_0x2c855f(0x158)])[_0x2c855f(0x199)];return this[_0x2c855f(0x187)](_0x55c900);},'abortController':_0x583d85[_0x319a24(0x17c)]};}[_0x3baf81(0x18f)]({actionName:_0x9a5a44,content:_0x39d9cf,args:_0x17fb2d}){const _0x459530=_0x3baf81,_0x4341ad={'content':[{'type':_0x459530(0x1b6),'content':_0x39d9cf}],'args':_0x17fb2d},_0x1848a6=this[_0x459530(0x13e)](_0x459530(0x1a0)+_0x9a5a44+_0x459530(0x191),_0x459530(0x1b0),_0x4341ad);return{'getStream':async()=>{const _0x3e0813=_0x459530,_0x4fa841=(await _0x1848a6[_0x3e0813(0x158)])[_0x3e0813(0x199)];return this[_0x3e0813(0x187)](_0x4fa841);},'abortController':_0x1848a6[_0x459530(0x17c)]};}[_0x3baf81(0x1a8)](_0x345bf0,_0x151771,_0x54e464){const _0x228d24=_0x3baf81,_0x4c4db9=new FormData();_0x4c4db9[_0x228d24(0x1a2)](_0x228d24(0x14e),_0x151771,_0x151771[_0x228d24(0x1a1)]),_0x54e464&&_0x4c4db9[_0x228d24(0x1a2)](_0x228d24(0x1cc),JSON[_0x228d24(0x1be)](_0x54e464));const _0xbb843=this[_0x228d24(0x13e)](_0x228d24(0x196)+_0x345bf0+_0x228d24(0x1c0),_0x228d24(0x1b0),_0x4c4db9);return{'getId':async()=>(await _0xbb843[_0x228d24(0x158)])[_0x228d24(0x13f)](),'abortController':_0xbb843[_0x228d24(0x17c)]};}[_0x3baf81(0x19a)](_0x5c5c71,_0x4b7dcb){const _0x27086e=_0x3baf81,_0x947d9b=this[_0x27086e(0x13e)](_0x27086e(0x196)+_0x5c5c71+_0x27086e(0x160)+_0x4b7dcb,_0x27086e(0x150));return{'getDocument':async()=>(await _0x947d9b[_0x27086e(0x158)])[_0x27086e(0x13f)](),'abortController':_0x947d9b[_0x27086e(0x17c)]};}[_0x3baf81(0x19b)](_0xe27501,_0x1d05b1,_0x33919d){const _0x563921=_0x3baf81,_0x164c0e={'content':_0x1d05b1};_0x33919d&&(_0x164c0e[_0x563921(0x1cc)]=_0x33919d);const _0x15a69c=this[_0x563921(0x13e)](_0x563921(0x196)+_0xe27501+_0x563921(0x18d),_0x563921(0x1b0),_0x164c0e);return{'getId':async()=>(await _0x15a69c[_0x563921(0x158)])[_0x563921(0x13f)](),'abortController':_0x15a69c[_0x563921(0x17c)]};}[_0x3baf81(0x152)](_0x41e716,_0x4f712f){const _0x25728b=_0x3baf81,_0x3059d5=new URLSearchParams();_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1c6),_0x25728b(0x16d)),_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x161),_0x25728b(0x189)),_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1ba),_0x41e716),_0x4f712f&&_0x3059d5[_0x25728b(0x1a2)](_0x25728b(0x1af),_0x4f712f);const _0x55c2bb=this[_0x25728b(0x13e)](_0x25728b(0x174)+_0x3059d5[_0x25728b(0x144)](),_0x25728b(0x150));return{'getConversations':async()=>{const _0x4346a5=_0x25728b,_0x283ffb=await _0x55c2bb[_0x4346a5(0x158)];return(await _0x283ffb[_0x4346a5(0x13f)]())[_0x4346a5(0x153)];},'abortController':_0x55c2bb[_0x25728b(0x17c)]};}[_0x3baf81(0x1bb)](_0x235bd8){const _0x44c75d=_0x3baf81,_0x3f7c7a=this[_0x44c75d(0x13e)](_0x44c75d(0x196)+_0x235bd8,_0x44c75d(0x186));return{'execute':async()=>{const _0xd9ef64=_0x44c75d;await _0x3f7c7a[_0xd9ef64(0x158)];},'abortController':_0x3f7c7a[_0x44c75d(0x17c)]};}[_0x3baf81(0x15f)](_0x53463b,_0x53a733){const _0x4265d6=_0x3baf81,_0x23ec34=this[_0x4265d6(0x13e)](_0x4265d6(0x196)+_0x53463b,_0x4265d6(0x164),_0x53a733);return{'getResult':async()=>(await _0x23ec34[_0x4265d6(0x158)],_0x53a733),'abortController':_0x23ec34[_0x4265d6(0x17c)]};}[_0x3baf81(0x1a9)](_0x50238e){const _0x354429=_0x3baf81,_0x516385=this[_0x354429(0x13e)](_0x354429(0x196)+_0x50238e,_0x354429(0x150));return{'getConversation':async()=>(await _0x516385[_0x354429(0x158)])[_0x354429(0x13f)](),'abortController':_0x516385[_0x354429(0x17c)]};}[_0x3baf81(0x1aa)](_0x519df0){const _0x232986=_0x3baf81,_0x1ae764=this[_0x232986(0x13e)](_0x232986(0x196)+_0x519df0+_0x232986(0x170),_0x232986(0x150));return{'getMessages':async()=>{const _0x33f784=_0x232986,_0x7d4c8f=await _0x1ae764[_0x33f784(0x158)];return(await _0x7d4c8f[_0x33f784(0x13f)]())[_0x33f784(0x153)];},'abortController':_0x1ae764[_0x232986(0x17c)]};}[_0x3baf81(0x168)](_0x14afab,_0x4892d5,_0x538b05){const _0x437e64=_0x3baf81,_0x1ef6e0=this[_0x437e64(0x13e)](_0x437e64(0x196)+_0x14afab+_0x437e64(0x19d),_0x437e64(0x1b0),{'url':_0x4892d5,'attributes':_0x538b05});return{'getId':async()=>(await _0x1ef6e0[_0x437e64(0x158)])[_0x437e64(0x13f)](),'abortController':_0x1ef6e0[_0x437e64(0x17c)]};}[_0x3baf81(0x1a7)](){const _0x10f280=_0x3baf81,_0x522890=this[_0x10f280(0x13e)](_0x10f280(0x1bf),_0x10f280(0x150));return{'list':async()=>await(await _0x522890[_0x10f280(0x158)])[_0x10f280(0x13f)](),'abortController':_0x522890[_0x10f280(0x17c)]};}[_0x3baf81(0x162)](_0x5d0ec2,_0x182e30){const _0x349e35=_0x3baf81,_0x3c8379=this[_0x349e35(0x13e)](_0x349e35(0x196)+_0x5d0ec2+_0x349e35(0x165)+_0x182e30,_0x349e35(0x186));return{'execute':async()=>{const _0x1169b6=_0x349e35;await _0x3c8379[_0x1169b6(0x158)];},'abortController':_0x3c8379[_0x349e35(0x17c)]};}[_0x3baf81(0x16b)](_0x574288,_0x196142){const _0x574281=_0x3baf81,_0xc82e36=this[_0x574281(0x13e)](_0x574281(0x196)+_0x574288+_0x574281(0x160)+_0x196142,_0x574281(0x186));return{'execute':async()=>{const _0x413968=_0x574281;await _0xc82e36[_0x413968(0x158)];},'abortController':_0xc82e36[_0x574281(0x17c)]};}[_0x3baf81(0x1ac)](_0x3cc8e7,_0x203d16){const _0xb21656=_0x3baf81,_0x70b7ee=this[_0xb21656(0x13e)](_0xb21656(0x196)+_0x3cc8e7+_0xb21656(0x146)+_0x203d16,_0xb21656(0x186));return{'execute':async()=>{const _0x332817=_0xb21656;await _0x70b7ee[_0x332817(0x158)];},'abortController':_0x70b7ee[_0xb21656(0x17c)]};}[_0x3baf81(0x159)]({reviewName:_0x4ec757,content:_0xd2437f,args:_0x5df69d}){const _0x41909a=_0x3baf81,_0x29504c=this[_0x41909a(0x13e)](_0x41909a(0x178)+_0x4ec757+_0x41909a(0x191),_0x41909a(0x1b0),{'content':[{'type':_0x41909a(0x1b6),'content':_0xd2437f}],'args':_0x5df69d});return{'getStream':async()=>{const _0x201553=_0x41909a,_0xe34cb5=(await _0x29504c[_0x201553(0x158)])[_0x201553(0x199)];return this[_0x201553(0x187)](_0xe34cb5);},'abortController':_0x29504c[_0x41909a(0x17c)]};}[_0x3baf81(0x1b4)]({content:_0x3a3982,prompt:_0x2968eb,model:_0x52e9d7}){const _0x534685=_0x3baf81,_0x10548b=this[_0x534685(0x13e)](_0x534685(0x1a6),_0x534685(0x1b0),{'content':[{'type':_0x534685(0x1b6),'content':_0x3a3982}],'prompt':_0x2968eb,'model':_0x52e9d7});return{'getStream':async()=>{const _0x1612d9=_0x534685,_0x39ee5f=(await _0x10548b[_0x1612d9(0x158)])[_0x1612d9(0x199)];return this[_0x1612d9(0x187)](_0x39ee5f);},'abortController':_0x10548b[_0x534685(0x17c)]};}[_0x3baf81(0x1b5)](_0x2de143,_0x14f74b,_0x309f9b){const _0x1dc7cf=_0x3baf81,_0x5c8f20=this[_0x1dc7cf(0x13e)](_0x1dc7cf(0x196)+_0x2de143+_0x1dc7cf(0x180)+_0x14f74b+_0x1dc7cf(0x13d),_0x1dc7cf(0x148),{'positiveCount':_0x309f9b[_0x1dc7cf(0x184)],'totalCount':_0x309f9b[_0x1dc7cf(0x1ab)],'modificationId':_0x309f9b[_0x1dc7cf(0x154)]});return{'execute':async()=>{const _0x13d2ed=_0x1dc7cf;await _0x5c8f20[_0x13d2ed(0x158)];},'abortController':_0x5c8f20[_0x1dc7cf(0x17c)]};}[_0x3baf81(0x1a4)](_0x24c025,_0x439a59,_0x5d0433){const _0xd3eaa8=_0x3baf81,_0x5c643f=this[_0xd3eaa8(0x13e)](_0xd3eaa8(0x1a0)+_0x24c025+_0xd3eaa8(0x18c)+_0x439a59+_0xd3eaa8(0x13d),_0xd3eaa8(0x148),{'positiveCount':_0x5d0433[_0xd3eaa8(0x184)],'totalCount':_0x5d0433[_0xd3eaa8(0x1ab)]});return{'execute':async()=>{const _0x3ce531=_0xd3eaa8;await _0x5c643f[_0x3ce531(0x158)];},'abortController':_0x5c643f[_0xd3eaa8(0x17c)]};}[_0x3baf81(0x143)](_0x1e6628,_0x11edfd){const _0x467126=_0x3baf81,_0x49febe=this[_0x467126(0x13e)](_0x467126(0x19e)+_0x1e6628+_0x467126(0x13d),_0x467126(0x148),{'positiveCount':_0x11edfd[_0x467126(0x184)],'totalCount':_0x11edfd[_0x467126(0x1ab)]});return{'execute':async()=>{const _0x5ca9fa=_0x467126;await _0x49febe[_0x5ca9fa(0x158)];},'abortController':_0x49febe[_0x467126(0x17c)]};}[_0x3baf81(0x1ad)](_0x4299ee,_0x34183b,_0x5dfbfc,_0x408b0d){const _0x15148c=_0x3baf81,_0x130acf=this[_0x15148c(0x13e)](_0x15148c(0x178)+_0x4299ee+_0x15148c(0x18c)+_0x34183b+_0x15148c(0x13d),_0x15148c(0x148),{'positiveCount':_0x5dfbfc[_0x15148c(0x184)],'totalCount':_0x5dfbfc[_0x15148c(0x1ab)],'dataId':_0x408b0d});return{'execute':async()=>{const _0x4c6f91=_0x15148c;await _0x130acf[_0x4c6f91(0x158)];},'abortController':_0x130acf[_0x15148c(0x17c)]};}[_0x3baf81(0x1b1)](_0x2b1e76,_0x34b7f1,_0x98b568){const _0x319d32=_0x3baf81,_0x575312=this[_0x319d32(0x13e)](_0x319d32(0x17d)+_0x2b1e76+_0x319d32(0x13d),_0x319d32(0x148),{'positiveCount':_0x34b7f1[_0x319d32(0x184)],'totalCount':_0x34b7f1[_0x319d32(0x1ab)],'dataId':_0x98b568});return{'execute':async()=>{const _0x37f42d=_0x319d32;await _0x575312[_0x37f42d(0x158)];},'abortController':_0x575312[_0x319d32(0x17c)]};}[_0x3baf81(0x13e)](_0x5b9a91,_0x3bba1e,_0x339164){const _0x3e963a=_0x3baf81,_0x218fac=new AbortController(),_0x4304cd=_0x339164 instanceof FormData,_0x2e8903={'Authorization':_0x3e963a(0x183)+this[_0x3e963a(0x177)]?.[_0x3e963a(0x147)]};_0x339164&&!_0x4304cd&&(_0x2e8903[_0x3e963a(0x1b2)]=_0x3e963a(0x171));const _0xc6cf0d={'method':_0x3bba1e,'headers':_0x2e8903,'signal':_0x218fac[_0x3e963a(0x176)]};return _0x339164&&(_0xc6cf0d[_0x3e963a(0x199)]=_0x4304cd?_0x339164:JSON[_0x3e963a(0x1be)](_0x339164)),{'request':fetch(''+this[_0x3e963a(0x15d)]+_0x5b9a91,_0xc6cf0d)[_0x3e963a(0x1ca)](_0x514590=>{const _0x3bb346=_0x3e963a;this[_0x3bb346(0x192)](_0x514590);})[_0x3e963a(0x1a5)](_0x32e98=>{const _0x325644=_0x3e963a;if(!_0x32e98['ok'])throw new _0x2990ef(_0x325644(0x18b),this,{'url':this[_0x325644(0x15d)],'path':_0x5b9a91,'method':_0x3bba1e,'body':_0x339164,'status':(_0x32e98||{})[_0x325644(0x163)],'statusText':(_0x32e98||{})[_0x325644(0x195)]});return _0x32e98;}),'abortController':_0x218fac};}async*[_0x3baf81(0x187)](_0x415d00){const _0x376ca8=_0x3baf81,_0x54f5f4=[],_0x31a73a=_0x415d00[_0x376ca8(0x16f)](),_0x5c85e0=_0x9804e1({'onError':_0x1b70c0=>{const _0x23e25f=_0x376ca8;this[_0x23e25f(0x192)](_0x1b70c0);},'onEvent':_0x291e52=>{const _0x9b66b7=_0x376ca8;_0x291e52[_0x9b66b7(0x17b)]=JSON[_0x9b66b7(0x15b)](_0x291e52[_0x9b66b7(0x17b)]),_0x54f5f4[_0x9b66b7(0x1b9)](_0x291e52);}});try{let _0x44ece7=!0x1;for(;!_0x44ece7;){const {done:_0x2f64ae,value:_0x548581}=await _0x31a73a[_0x376ca8(0x18a)]();_0x2f64ae&&(_0x44ece7=!0x0),_0x5c85e0[_0x376ca8(0x1bc)](this[_0x376ca8(0x140)][_0x376ca8(0x1a3)](_0x548581,{'stream':!0x0})),yield*_0x54f5f4,_0x54f5f4[_0x376ca8(0x141)]=0x0;}}catch(_0x352bda){this[_0x376ca8(0x192)](_0x352bda);}finally{_0x31a73a[_0x376ca8(0x17f)](),_0x5c85e0[_0x376ca8(0x155)]();}}[_0x3baf81(0x192)](_0x2b8ce5){const _0x20832e=_0x3baf81;if(_0x2b8ce5 instanceof _0x2990ef)throw _0x2b8ce5;if(_0x2b8ce5 instanceof Error&&_0x20832e(0x14f)===_0x2b8ce5[_0x20832e(0x1a1)])throw new _0x2990ef(_0x20832e(0x17e),this,{'originalError':_0x2b8ce5});throw new _0x2990ef(_0x20832e(0x18b),this,{'originalError':_0x2b8ce5});}}
|
|
23
|
+
const _0x480fbb=_0x545b;function _0x2a04(){const _0x38062d=['uploadUrl','7nhpFHn','search','Content-Type','code','excludeEmpty','uploadFile','MAKE_LONGER','/documents','append','deleteConversation','deleteFile','/actions/custom/calls/','stringify','/files/','upsertAIReviewRating','traceId','MAKE_SHORTER','data','_apiUrl','status','100','upsertCustomAIActionRating','toString','message','keys','TRANSLATE','token','executeAction','modificationId','isOfficialPlugin','8937390MQMucP','value','_handleError','improve-writing','executeCustomAction','/conversations/','context','text','_getStreamReader','fetchConversations','CONTINUE','queryAssistant','callSystemReview','getReader','/calls','positiveCount','/reviews/custom/calls/','releaseLock','GET','startConversation','/actions/custom/calls','fetchConversationMessages','decode','/messages/','deleteDocument','init','length','upsertAIActionRating','plugins','/conversations','getModels','upsertAIChatRating','/ratings','signal','1321260aXjrGm','make-tone-casual','ai-missing-token','ai-request-failed','translate','_token','/documents/','7905075FmXjXM','3DTOYgJ','then','group','uploadDocument','request','make-shorter','file','abortController','fetchDocument','331512SBoeng','/reviews/custom/calls','json','requires','body','true','reset','get','attributes','IMPROVE_WRITING','read','deleteWebResource','name','statusText','config','FIX_GRAMMAR','updateConversation','/models/1','ai-request-aborted','PATCH','411318UfpnCX','MAKE_TONE_CASUAL','AIConnector','feed','/calls/','/reviews/system/','make-tone-formal','CloudServices','/files','isPremiumPlugin','https://ai.cke-cs.com/v1','/web-resources/','DELETE','/web-resources','parse','PUT','AbortError','fix-grammar','_decoder','limit','31993614hMdkyl','application/json','10991432rusMpr','totalCount','fetchConversation','/conversations?','pluginName','catch','items','ai.serviceUrl','define','upsertCustomAIReviewRating','POST','/actions/system/','callCustomReview','continue','make-longer','/messages','_sendApiRequest','push','MAKE_TONE_FORMAL','Bearer\x20'];_0x2a04=function(){return _0x38062d;};return _0x2a04();}(function(_0x1796f9,_0xd35268){const _0x55434c=_0x545b,_0x2b6e18=_0x1796f9();while(!![]){try{const _0xbb8d47=-parseInt(_0x55434c(0xb0))/0x1+parseInt(_0x55434c(0xd5))/0x2+parseInt(_0x55434c(0xb8))/0x3*(parseInt(_0x55434c(0xc1))/0x4)+-parseInt(_0x55434c(0xb7))/0x5+-parseInt(_0x55434c(0x8e))/0x6+-parseInt(_0x55434c(0x100))/0x7*(-parseInt(_0x55434c(0xeb))/0x8)+parseInt(_0x55434c(0xe9))/0x9;if(_0xbb8d47===_0xd35268)break;else _0x2b6e18['push'](_0x2b6e18['shift']());}catch(_0x403479){_0x2b6e18['push'](_0x2b6e18['shift']());}}}(_0x2a04,0xc9880));import{createParser as _0x4d681a}from'eventsource-parser';function _0x545b(_0x476f10,_0x2fd865){const _0x2a04a6=_0x2a04();return _0x545b=function(_0x545bb1,_0x109feb){_0x545bb1=_0x545bb1-0x78;let _0x3b2383=_0x2a04a6[_0x545bb1];return _0x3b2383;},_0x545b(_0x476f10,_0x2fd865);}import{ContextPlugin as _0x5d4aff}from'ckeditor5/src/core.js';import{CKEditorError as _0x36a24f}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5e21f4){const _0x59425c=_0x545b;_0x5e21f4[_0x59425c(0x98)]=_0x59425c(0xf8),_0x5e21f4[_0x59425c(0xd0)]=_0x59425c(0xe6),_0x5e21f4[_0x59425c(0xca)]=_0x59425c(0x91),_0x5e21f4[_0x59425c(0x106)]=_0x59425c(0xf9),_0x5e21f4[_0x59425c(0x80)]=_0x59425c(0xbd),_0x5e21f4[_0x59425c(0xd6)]=_0x59425c(0xb1),_0x5e21f4[_0x59425c(0xfd)]=_0x59425c(0xdb),_0x5e21f4[_0x59425c(0x89)]=_0x59425c(0xb4);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5d4aff{[_0x480fbb(0x82)];[_0x480fbb(0xb5)];[_0x480fbb(0xe7)];static get[_0x480fbb(0xc4)](){const _0x2655c7=_0x480fbb;return[_0x2655c7(0xdc)];}static get[_0x480fbb(0xef)](){const _0x27d12c=_0x480fbb;return _0x27d12c(0xd7);}static get[_0x480fbb(0x8d)](){return!0x0;}static get[_0x480fbb(0xde)](){return!0x0;}constructor(_0x3c18f3){const _0xe09b55=_0x480fbb;super(_0x3c18f3),this[_0xe09b55(0x94)][_0xe09b55(0xcf)][_0xe09b55(0xf3)](_0xe09b55(0xf2),_0xe09b55(0xdf)),this[_0xe09b55(0x82)]=this[_0xe09b55(0x94)][_0xe09b55(0xcf)][_0xe09b55(0xc8)](_0xe09b55(0xf2)),this[_0xe09b55(0xb5)]=null,this[_0xe09b55(0xe7)]=new TextDecoder();}[_0x480fbb(0xa7)](){const _0x37cf1c=_0x480fbb,_0x24e32d=this[_0x37cf1c(0x94)][_0x37cf1c(0xaa)][_0x37cf1c(0xc8)](_0x37cf1c(0xdc));if(!_0x24e32d[_0x37cf1c(0x8a)])throw new _0x36a24f(_0x37cf1c(0xb2),this);this[_0x37cf1c(0xb5)]=_0x24e32d[_0x37cf1c(0x8a)];}[_0x480fbb(0xa1)](_0x169e08,_0x175eca){const _0x64d6f0=_0x480fbb,_0x1f8234=this[_0x64d6f0(0xfb)](_0x64d6f0(0xab),_0x64d6f0(0xf5),{'id':_0x169e08,'group':_0x175eca});return{'getConversation':async()=>(await _0x1f8234[_0x64d6f0(0xbc)])[_0x64d6f0(0xc3)](),'abortController':_0x1f8234[_0x64d6f0(0xbf)]};}[_0x480fbb(0x99)]({message:_0x516ac9,conversationId:_0x1966f0,parts:_0x540dfe,capabilities:_0x986d55,model:_0x381fe1,quickActionData:_0x2951fd}){const _0x1e2036=_0x480fbb,_0x23107d={..._0x2951fd&&{'quickActionData':_0x2951fd}},_0x33b1e4={'prompt':_0x516ac9,'content':_0x540dfe,'model':_0x381fe1,..._0x986d55&&{'capabilities':_0x986d55},...Object[_0x1e2036(0x88)](_0x23107d)[_0x1e2036(0xa8)]>0x0&&{'attributes':_0x23107d}},_0xefab30=this[_0x1e2036(0xfb)](_0x1e2036(0x93)+_0x1966f0+_0x1e2036(0xfa),_0x1e2036(0xf5),_0x33b1e4);return{'getStream':async()=>{const _0x4e1b68=_0x1e2036,_0x54ea59=(await _0xefab30[_0x4e1b68(0xbc)])[_0x4e1b68(0xc5)];return this[_0x4e1b68(0x96)](_0x54ea59);},'abortController':_0xefab30[_0x1e2036(0xbf)]};}[_0x480fbb(0x92)]({content:_0x38c3fc,message:_0x94452a,model:_0x3b5991,outputFormat:_0x4e6973}){const _0x20d468=_0x480fbb,_0x31f0ec={'content':[{'type':_0x20d468(0x95),'content':_0x38c3fc}],'prompt':_0x94452a,'model':_0x3b5991,'outputFormat':_0x4e6973},_0x39d828=this[_0x20d468(0xfb)](_0x20d468(0xa2),_0x20d468(0xf5),_0x31f0ec);return{'getStream':async()=>{const _0x34f035=_0x20d468,_0x3ed809=(await _0x39d828[_0x34f035(0xbc)])[_0x34f035(0xc5)];return this[_0x34f035(0x96)](_0x3ed809);},'abortController':_0x39d828[_0x20d468(0xbf)]};}[_0x480fbb(0x8b)]({actionName:_0x8770e5,content:_0x3f8334,args:_0x46f4ba}){const _0x4a672c=_0x480fbb,_0x503533={'content':[{'type':_0x4a672c(0x95),'content':_0x3f8334}],'args':_0x46f4ba},_0x128f56=this[_0x4a672c(0xfb)](_0x4a672c(0xf6)+_0x8770e5+_0x4a672c(0x9c),_0x4a672c(0xf5),_0x503533);return{'getStream':async()=>{const _0x4409b0=_0x4a672c,_0xd21308=(await _0x128f56[_0x4409b0(0xbc)])[_0x4409b0(0xc5)];return this[_0x4409b0(0x96)](_0xd21308);},'abortController':_0x128f56[_0x4a672c(0xbf)]};}[_0x480fbb(0x105)](_0x3b7ed1,_0x46bcb9,_0x4da7f8){const _0x3b1e16=_0x480fbb,_0x46f61c=new FormData();_0x46f61c[_0x3b1e16(0x78)](_0x3b1e16(0xbe),_0x46bcb9,_0x46bcb9[_0x3b1e16(0xcd)]),_0x4da7f8&&_0x46f61c[_0x3b1e16(0x78)](_0x3b1e16(0xc9),JSON[_0x3b1e16(0x7c)](_0x4da7f8));const _0x1861a9=this[_0x3b1e16(0xfb)](_0x3b1e16(0x93)+_0x3b7ed1+_0x3b1e16(0xdd),_0x3b1e16(0xf5),_0x46f61c);return{'getId':async()=>(await _0x1861a9[_0x3b1e16(0xbc)])[_0x3b1e16(0xc3)](),'abortController':_0x1861a9[_0x3b1e16(0xbf)]};}[_0x480fbb(0xc0)](_0x226320,_0x41de00){const _0x49b0c0=_0x480fbb,_0x1441d7=this[_0x49b0c0(0xfb)](_0x49b0c0(0x93)+_0x226320+_0x49b0c0(0xb6)+_0x41de00,_0x49b0c0(0xa0));return{'getDocument':async()=>(await _0x1441d7[_0x49b0c0(0xbc)])[_0x49b0c0(0xc3)](),'abortController':_0x1441d7[_0x49b0c0(0xbf)]};}[_0x480fbb(0xbb)](_0x1766b1,_0x5a0087,_0x554c3e){const _0x642fbc=_0x480fbb,_0x2e7c41={'content':_0x5a0087};_0x554c3e&&(_0x2e7c41[_0x642fbc(0xc9)]=_0x554c3e);const _0x453d54=this[_0x642fbc(0xfb)](_0x642fbc(0x93)+_0x1766b1+_0x642fbc(0x107),_0x642fbc(0xf5),_0x2e7c41);return{'getId':async()=>(await _0x453d54[_0x642fbc(0xbc)])[_0x642fbc(0xc3)](),'abortController':_0x453d54[_0x642fbc(0xbf)]};}[_0x480fbb(0x97)](_0xf8b22d,_0x30b965){const _0x3c219a=_0x480fbb,_0x4a405b=new URLSearchParams();_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0x104),_0x3c219a(0xc6)),_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0xe8),_0x3c219a(0x84)),_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0xba),_0xf8b22d),_0x30b965&&_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0x101),_0x30b965);const _0x509f3f=this[_0x3c219a(0xfb)](_0x3c219a(0xee)+_0x4a405b[_0x3c219a(0x86)](),_0x3c219a(0xa0));return{'getConversations':async()=>{const _0x1b8aea=_0x3c219a,_0x30b15d=await _0x509f3f[_0x1b8aea(0xbc)];return(await _0x30b15d[_0x1b8aea(0xc3)]())[_0x1b8aea(0xf1)];},'abortController':_0x509f3f[_0x3c219a(0xbf)]};}[_0x480fbb(0x79)](_0x8607f8){const _0x500068=_0x480fbb,_0x5a99a0=this[_0x500068(0xfb)](_0x500068(0x93)+_0x8607f8,_0x500068(0xe1));return{'execute':async()=>{const _0x2165e6=_0x500068;await _0x5a99a0[_0x2165e6(0xbc)];},'abortController':_0x5a99a0[_0x500068(0xbf)]};}[_0x480fbb(0xd1)](_0x128dd3,_0x4d149f){const _0x29320f=_0x480fbb,_0x4dbb7e=this[_0x29320f(0xfb)](_0x29320f(0x93)+_0x128dd3,_0x29320f(0xd4),_0x4d149f);return{'getResult':async()=>(await _0x4dbb7e[_0x29320f(0xbc)],_0x4d149f),'abortController':_0x4dbb7e[_0x29320f(0xbf)]};}[_0x480fbb(0xed)](_0x71db38){const _0x320885=_0x480fbb,_0x4bb4af=this[_0x320885(0xfb)](_0x320885(0x93)+_0x71db38,_0x320885(0xa0));return{'getConversation':async()=>(await _0x4bb4af[_0x320885(0xbc)])[_0x320885(0xc3)](),'abortController':_0x4bb4af[_0x320885(0xbf)]};}[_0x480fbb(0xa3)](_0x35d40b){const _0x4bbec2=_0x480fbb,_0x537857=this[_0x4bbec2(0xfb)](_0x4bbec2(0x93)+_0x35d40b+_0x4bbec2(0xfa),_0x4bbec2(0xa0));return{'getMessages':async()=>{const _0x7f2c9b=_0x4bbec2,_0x26d2c8=await _0x537857[_0x7f2c9b(0xbc)];return(await _0x26d2c8[_0x7f2c9b(0xc3)]())[_0x7f2c9b(0xf1)];},'abortController':_0x537857[_0x4bbec2(0xbf)]};}[_0x480fbb(0xff)](_0x2b118b,_0x2f0375,_0x5c2f0a){const _0x4f1035=_0x480fbb,_0x56b122=this[_0x4f1035(0xfb)](_0x4f1035(0x93)+_0x2b118b+_0x4f1035(0xe2),_0x4f1035(0xf5),{'url':_0x2f0375,'attributes':_0x5c2f0a});return{'getId':async()=>(await _0x56b122[_0x4f1035(0xbc)])[_0x4f1035(0xc3)](),'abortController':_0x56b122[_0x4f1035(0xbf)]};}[_0x480fbb(0xac)](){const _0x5ddd6a=_0x480fbb,_0x498cd8=this[_0x5ddd6a(0xfb)](_0x5ddd6a(0xd2),_0x5ddd6a(0xa0));return{'list':async()=>await(await _0x498cd8[_0x5ddd6a(0xbc)])[_0x5ddd6a(0xc3)](),'abortController':_0x498cd8[_0x5ddd6a(0xbf)]};}[_0x480fbb(0x7a)](_0x56d10d,_0x4fdd53){const _0x30c007=_0x480fbb,_0x1fabf3=this[_0x30c007(0xfb)](_0x30c007(0x93)+_0x56d10d+_0x30c007(0x7d)+_0x4fdd53,_0x30c007(0xe1));return{'execute':async()=>{const _0x4ed6fd=_0x30c007;await _0x1fabf3[_0x4ed6fd(0xbc)];},'abortController':_0x1fabf3[_0x30c007(0xbf)]};}[_0x480fbb(0xa6)](_0x40eecf,_0x11b2ee){const _0x3db7cc=_0x480fbb,_0x5b6fe1=this[_0x3db7cc(0xfb)](_0x3db7cc(0x93)+_0x40eecf+_0x3db7cc(0xb6)+_0x11b2ee,_0x3db7cc(0xe1));return{'execute':async()=>{const _0x210c77=_0x3db7cc;await _0x5b6fe1[_0x210c77(0xbc)];},'abortController':_0x5b6fe1[_0x3db7cc(0xbf)]};}[_0x480fbb(0xcc)](_0x56db7f,_0x166973){const _0x49462b=_0x480fbb,_0x306604=this[_0x49462b(0xfb)](_0x49462b(0x93)+_0x56db7f+_0x49462b(0xe0)+_0x166973,_0x49462b(0xe1));return{'execute':async()=>{const _0x58e10d=_0x49462b;await _0x306604[_0x58e10d(0xbc)];},'abortController':_0x306604[_0x49462b(0xbf)]};}[_0x480fbb(0x9a)]({reviewName:_0x57ffa1,content:_0x43bad3,args:_0x3ec8e9}){const _0xd77d04=_0x480fbb,_0x169c95=this[_0xd77d04(0xfb)](_0xd77d04(0xda)+_0x57ffa1+_0xd77d04(0x9c),_0xd77d04(0xf5),{'content':[{'type':_0xd77d04(0x95),'content':_0x43bad3}],'args':_0x3ec8e9});return{'getStream':async()=>{const _0x2a1295=_0xd77d04,_0x2092d7=(await _0x169c95[_0x2a1295(0xbc)])[_0x2a1295(0xc5)];return this[_0x2a1295(0x96)](_0x2092d7);},'abortController':_0x169c95[_0xd77d04(0xbf)]};}[_0x480fbb(0xf7)]({content:_0x4ab3ab,prompt:_0x515d39,model:_0x3c7544}){const _0x3f0d95=_0x480fbb,_0x55f2b6=this[_0x3f0d95(0xfb)](_0x3f0d95(0xc2),_0x3f0d95(0xf5),{'content':[{'type':_0x3f0d95(0x95),'content':_0x4ab3ab}],'prompt':_0x515d39,'model':_0x3c7544});return{'getStream':async()=>{const _0x4b0d0c=_0x3f0d95,_0x11c932=(await _0x55f2b6[_0x4b0d0c(0xbc)])[_0x4b0d0c(0xc5)];return this[_0x4b0d0c(0x96)](_0x11c932);},'abortController':_0x55f2b6[_0x3f0d95(0xbf)]};}[_0x480fbb(0xad)](_0x3ce1a3,_0x3d8033,_0x558a57){const _0x29065d=_0x480fbb,_0x244987=this[_0x29065d(0xfb)](_0x29065d(0x93)+_0x3ce1a3+_0x29065d(0xa5)+_0x3d8033+_0x29065d(0xae),_0x29065d(0xe4),{'positiveCount':_0x558a57[_0x29065d(0x9d)],'totalCount':_0x558a57[_0x29065d(0xec)],'modificationId':_0x558a57[_0x29065d(0x8c)]});return{'execute':async()=>{const _0x13213c=_0x29065d;await _0x244987[_0x13213c(0xbc)];},'abortController':_0x244987[_0x29065d(0xbf)]};}[_0x480fbb(0xa9)](_0x5ad651,_0x101e4,_0x2482fa){const _0xc53f4c=_0x480fbb,_0x34916f=this[_0xc53f4c(0xfb)](_0xc53f4c(0xf6)+_0x5ad651+_0xc53f4c(0xd9)+_0x101e4+_0xc53f4c(0xae),_0xc53f4c(0xe4),{'positiveCount':_0x2482fa[_0xc53f4c(0x9d)],'totalCount':_0x2482fa[_0xc53f4c(0xec)]});return{'execute':async()=>{const _0x36c23f=_0xc53f4c;await _0x34916f[_0x36c23f(0xbc)];},'abortController':_0x34916f[_0xc53f4c(0xbf)]};}[_0x480fbb(0x85)](_0xfcc7c5,_0x42bfce){const _0x2e833d=_0x480fbb,_0x494ab0=this[_0x2e833d(0xfb)](_0x2e833d(0x7b)+_0xfcc7c5+_0x2e833d(0xae),_0x2e833d(0xe4),{'positiveCount':_0x42bfce[_0x2e833d(0x9d)],'totalCount':_0x42bfce[_0x2e833d(0xec)]});return{'execute':async()=>{const _0x463be1=_0x2e833d;await _0x494ab0[_0x463be1(0xbc)];},'abortController':_0x494ab0[_0x2e833d(0xbf)]};}[_0x480fbb(0x7e)](_0x59a88a,_0x1a4829,_0x47b63f,_0x49341b){const _0x58a0af=_0x480fbb,_0x3280e7=this[_0x58a0af(0xfb)](_0x58a0af(0xda)+_0x59a88a+_0x58a0af(0xd9)+_0x1a4829+_0x58a0af(0xae),_0x58a0af(0xe4),{'positiveCount':_0x47b63f[_0x58a0af(0x9d)],'totalCount':_0x47b63f[_0x58a0af(0xec)],'dataId':_0x49341b});return{'execute':async()=>{const _0x52ae86=_0x58a0af;await _0x3280e7[_0x52ae86(0xbc)];},'abortController':_0x3280e7[_0x58a0af(0xbf)]};}[_0x480fbb(0xf4)](_0x1f7278,_0x3813c6,_0x57dcb2){const _0x20117a=_0x480fbb,_0x4249ef=this[_0x20117a(0xfb)](_0x20117a(0x9e)+_0x1f7278+_0x20117a(0xae),_0x20117a(0xe4),{'positiveCount':_0x3813c6[_0x20117a(0x9d)],'totalCount':_0x3813c6[_0x20117a(0xec)],'dataId':_0x57dcb2});return{'execute':async()=>{const _0x1336fe=_0x20117a;await _0x4249ef[_0x1336fe(0xbc)];},'abortController':_0x4249ef[_0x20117a(0xbf)]};}[_0x480fbb(0xfb)](_0x44529a,_0x437daf,_0x34dd11){const _0xcaad52=_0x480fbb,_0x2ad9d6=new AbortController(),_0x2080f5=_0x34dd11 instanceof FormData,_0x47f7a7={'Authorization':_0xcaad52(0xfe)+this[_0xcaad52(0xb5)]?.[_0xcaad52(0x8f)]};_0x34dd11&&!_0x2080f5&&(_0x47f7a7[_0xcaad52(0x102)]=_0xcaad52(0xea));const _0x24a637={'method':_0x437daf,'headers':_0x47f7a7,'signal':_0x2ad9d6[_0xcaad52(0xaf)]};return _0x34dd11&&(_0x24a637[_0xcaad52(0xc5)]=_0x2080f5?_0x34dd11:JSON[_0xcaad52(0x7c)](_0x34dd11)),{'request':fetch(''+this[_0xcaad52(0x82)]+_0x44529a,_0x24a637)[_0xcaad52(0xf0)](_0x35bea5=>{const _0x4c6a21=_0xcaad52;this[_0x4c6a21(0x90)](_0x35bea5);})[_0xcaad52(0xb9)](_0x50e112=>_0x50e112['ok']?_0x50e112:_0x50e112[_0xcaad52(0xc3)]()[_0xcaad52(0xb9)](_0x4751b0=>{const _0x1cf6c1=_0xcaad52;throw{'url':this[_0x1cf6c1(0x82)],'path':_0x44529a,'method':_0x437daf,'body':_0x34dd11,'status':(_0x50e112||{})[_0x1cf6c1(0x83)],'statusText':(_0x50e112||{})[_0x1cf6c1(0xce)],'code':_0x4751b0[_0x1cf6c1(0x103)],'message':_0x4751b0[_0x1cf6c1(0x87)],'traceId':_0x4751b0[_0x1cf6c1(0x7f)]};})),'abortController':_0x2ad9d6};}async*[_0x480fbb(0x96)](_0x48d386){const _0x478f53=_0x480fbb,_0x5c8cb4=[],_0x5c02f3=_0x48d386[_0x478f53(0x9b)](),_0x36f0ec=_0x4d681a({'onError':_0x3fc987=>{const _0x52a607=_0x478f53;this[_0x52a607(0x90)](_0x3fc987);},'onEvent':_0x2b8131=>{const _0x1857d0=_0x478f53;_0x2b8131[_0x1857d0(0x81)]=JSON[_0x1857d0(0xe3)](_0x2b8131[_0x1857d0(0x81)]),_0x5c8cb4[_0x1857d0(0xfc)](_0x2b8131);}});try{let _0x2c8f63=!0x1;for(;!_0x2c8f63;){const {done:_0x1f1e8d,value:_0xaeb6b}=await _0x5c02f3[_0x478f53(0xcb)]();_0x1f1e8d&&(_0x2c8f63=!0x0),_0x36f0ec[_0x478f53(0xd8)](this[_0x478f53(0xe7)][_0x478f53(0xa4)](_0xaeb6b,{'stream':!0x0})),yield*_0x5c8cb4,_0x5c8cb4[_0x478f53(0xa8)]=0x0;}}catch(_0x236a08){this[_0x478f53(0x90)](_0x236a08);}finally{_0x5c02f3[_0x478f53(0x9f)](),_0x36f0ec[_0x478f53(0xc7)]();}}[_0x480fbb(0x90)](_0x5c65c0){const _0x22f1aa=_0x480fbb;if(_0x5c65c0 instanceof _0x36a24f)throw _0x5c65c0;if(_0x5c65c0 instanceof Error&&_0x22f1aa(0xe5)===_0x5c65c0[_0x22f1aa(0xcd)])throw new _0x36a24f(_0x22f1aa(0xd3),this,{'originalError':_0x5c65c0});throw new _0x36a24f(_0x22f1aa(0xb3),this,{'originalError':_0x5c65c0});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44d2a1=_0x1c97;(function(_0x457d9f,_0x58a634){const _0x1d4bf9=_0x1c97,_0x4baaf8=_0x457d9f();while(!![]){try{const _0x576112=parseInt(_0x1d4bf9(0xbd))/0x1*(-parseInt(_0x1d4bf9(0xd6))/0x2)+parseInt(_0x1d4bf9(0xcd))/0x3*(-parseInt(_0x1d4bf9(0xd5))/0x4)+-parseInt(_0x1d4bf9(0xce))/0x5+-parseInt(_0x1d4bf9(0xd1))/0x6*(-parseInt(_0x1d4bf9(0xae))/0x7)+-parseInt(_0x1d4bf9(0xcb))/0x8*(parseInt(_0x1d4bf9(0x9b))/0x9)+-parseInt(_0x1d4bf9(0x80))/0xa+-parseInt(_0x1d4bf9(0x89))/0xb*(-parseInt(_0x1d4bf9(0xdf))/0xc);if(_0x576112===_0x58a634)break;else _0x4baaf8['push'](_0x4baaf8['shift']());}catch(_0x1e407f){_0x4baaf8['push'](_0x4baaf8['shift']());}}}(_0x150e,0x5e4c8));import{ViewDowncastWriter as _0xcf7abc}from'ckeditor5/src/engine.js';function _0x150e(){const _0x816c80=['element','getSelection','sessionId','change','editingDowncast','removeAllRanges','removeMarker','getWalker','dataDowncast','add','version','start','_sessionId','sort','editors','createRangeIn','6900723eslmXm','_nextDataId','createUIElement','hideFakeVisualSelection','end','processor','plugins','setAttribute','_displayedFakeSelectionId','editing','get','isAtEnd','getChildren','ready','addMarker',':start>','getSelectionText','trim','afterInit','7BtUMDn','for','document','push','emptyElement','length','markerToElement','ck-ai-assistant-ui_theme','getLastMatchingPosition','$textProxy','isAfter','has','RealTimeCollaborationClient','getDocumentData','context','1LPuNlf','fromCharCode','ai-selection:','modelToViewWithIds',':end>','markerToHighlight',':end></','markers','isOpening','toData','name','_setDataIdsOnChildren','convertAiChatSelectionMarker','isPremiumPlugin','8gspTxO','model','15hnbdfI','803885bIaGvs','_integrateEditor','isOfficialPlugin','4572444OkLNAw','ck-fake-ai-selection','view','isBefore','228692wBNHly','286226TXTxDA','pluginName','from','data-id','data','listenTo','containerElement','getStart','floor','20252964epBIzP','random','isContent','AIEditing','getMarkersGroup','indexOf','_displayedFakeSelectionLocked','selection','ai-selection','toView','getSelectedContent','showFakeVisualSelection','7070710uYJvwk','join','schema','substring','createRange','markerName','_getMarkersInDocumentOrder','conversion','getRoot','11DBugwG',':start></'];_0x150e=function(){return _0x816c80;};return _0x150e();}import{ContextPlugin as _0x1c81a9,Editor as _0x5448cb}from'ckeditor5/src/core.js';import{uid as _0xdfd8d4}from'ckeditor5/src/utils.js';function _0x1c97(_0x54127a,_0x4f87bd){const _0x150e88=_0x150e();return _0x1c97=function(_0x1c9722,_0x3d6a5c){_0x1c9722=_0x1c9722-0x80;let _0x3b91b2=_0x150e88[_0x1c9722];return _0x3b91b2;},_0x1c97(_0x54127a,_0x4f87bd);}import{getEditorFromContext as _0x1a8bda}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x44d2a1(0xe7);export class AIEditing extends _0x1c81a9{[_0x44d2a1(0xa3)]=null;[_0x44d2a1(0xe5)]=!0x1;[_0x44d2a1(0x97)];static get[_0x44d2a1(0xd7)](){const _0x474c91=_0x44d2a1;return _0x474c91(0xe2);}static get[_0x44d2a1(0xd0)](){return!0x0;}static get[_0x44d2a1(0xca)](){return!0x0;}get[_0x44d2a1(0x8d)](){const _0x3a467b=_0x44d2a1;if(!this[_0x3a467b(0x97)]){const _0x96d60b=_0x1a8bda(this[_0x3a467b(0xbc)]),_0x1a648c=_0x96d60b[_0x3a467b(0xa1)][_0x3a467b(0xb9)](_0x3a467b(0xba))&&_0x96d60b[_0x3a467b(0xa1)][_0x3a467b(0xa5)](_0x3a467b(0xba))[_0x3a467b(0x8d)];this[_0x3a467b(0x97)]=_0x1a648c||_0xdfd8d4();}return this[_0x3a467b(0x97)];}[_0x44d2a1(0xbb)](){const _0x255a56=_0x44d2a1,_0x484ef2=_0x1a8bda(this[_0x255a56(0xbc)]),_0x19da28=_0x484ef2[_0x255a56(0xcc)],_0x48881b=_0x484ef2[_0x255a56(0xda)][_0x255a56(0xe8)](_0x19da28[_0x255a56(0xb0)][_0x255a56(0x88)](),{'convertAiChatSelectionMarker':!0x0}),_0x4a5b73=new _0xcf7abc(_0x484ef2[_0x255a56(0xa4)][_0x255a56(0xd3)][_0x255a56(0xb0)]);this[_0x255a56(0xc8)](_0x48881b,_0x4a5b73);let _0x519175=_0x484ef2[_0x255a56(0xda)][_0x255a56(0xa0)][_0x255a56(0xc6)](_0x48881b);const _0x29614a=this[_0x255a56(0x86)](),_0x3ba8e7=[];for(const _0x4f444a of _0x29614a){const _0x4263c8='<'+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0x8a)+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0xaa),_0x75dd9a=_0x519175[_0x255a56(0xe4)](_0x4263c8);_0x519175=_0x519175[_0x255a56(0x83)](0x0,_0x75dd9a)+_0x519175[_0x255a56(0x83)](_0x75dd9a+_0x4263c8[_0x255a56(0xb3)]);const _0x6f37e0='<'+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0xc3)+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0xc1),_0x443662=_0x519175[_0x255a56(0xe4)](_0x6f37e0);_0x519175=_0x519175[_0x255a56(0x83)](0x0,_0x443662)+_0x519175[_0x255a56(0x83)](_0x443662+_0x6f37e0[_0x255a56(0xb3)]),_0x3ba8e7[_0x255a56(0xb1)]({'markerName':_0x4f444a[_0x255a56(0xc7)],'start':_0x75dd9a,'end':_0x443662,'htmlFragment':_0x519175[_0x255a56(0x83)](_0x75dd9a,_0x443662)});}return{'content':_0x519175,'version':_0x484ef2[_0x255a56(0xcc)][_0x255a56(0xb0)][_0x255a56(0x95)],'sessionId':this[_0x255a56(0x8d)],'selections':_0x3ba8e7};}async[_0x44d2a1(0xad)](){const _0x214b44=_0x44d2a1;this[_0x214b44(0xbc)]instanceof _0x5448cb?this[_0x214b44(0xcf)](this[_0x214b44(0xbc)]):this[_0x214b44(0xdb)](this[_0x214b44(0xbc)][_0x214b44(0x99)],_0x214b44(0x94),(_0x1e84cd,_0x5d4254)=>{const _0x4a56ad=_0x214b44;_0x5d4254['on'](_0x4a56ad(0xa8),()=>{const _0x2603a2=_0x4a56ad;this[_0x2603a2(0xcf)](_0x5d4254);});});}[_0x44d2a1(0xcf)](_0x4380aa){const _0x2f2979=_0x44d2a1;_0x4380aa[_0x2f2979(0x87)][_0x2f2979(0xaf)](_0x2f2979(0x8f))[_0x2f2979(0xc2)]({'model':_0x2f2979(0xe7),'view':{'classes':[_0x2f2979(0xd2),_0x2f2979(0xb5)],'priority':0xc}}),_0x4380aa[_0x2f2979(0x87)][_0x2f2979(0xaf)](_0x2f2979(0x93))[_0x2f2979(0xb4)]({'model':_0x2f2979(0xe7),'view':(_0x280540,{writer:_0x537d5c,options:_0x2d3cc2})=>_0x2d3cc2[_0x2f2979(0xc9)]?_0x537d5c[_0x2f2979(0x9d)](_0x280540[_0x2f2979(0x85)]+':'+(_0x280540[_0x2f2979(0xc5)]?_0x2f2979(0x96):_0x2f2979(0x9f))):null});}[_0x44d2a1(0xea)](_0x34e851,_0x2c4129,_0x26dad8=!0x1,_0x551c70=!0x1){const _0x3300e1=_0x44d2a1;if(this[_0x3300e1(0xe5)]&&!_0x551c70)return!0x1;const _0xf1a735=_0x1a8bda(this[_0x3300e1(0xbc)])[_0x3300e1(0xcc)];return _0xf1a735[_0x3300e1(0x8e)](_0x33d5d0=>{const _0x5af6b1=_0x3300e1;this[_0x5af6b1(0xa3)]&&this[_0x5af6b1(0x9e)](this[_0x5af6b1(0xa3)]),this[_0x5af6b1(0xa3)]=_0x2c4129,this[_0x5af6b1(0xe5)]=_0x26dad8;let _0x23057d=0x0;for(let _0x36014a of _0x34e851){const _0x1b5f77=_0x5af6b1(0xbf)+_0x23057d;if(_0x36014a[_0x5af6b1(0x96)][_0x5af6b1(0xa6)]){const _0x153c85=_0x36014a[_0x5af6b1(0x96)][_0x5af6b1(0xb6)](({item:_0x5ba0df})=>!_0xf1a735[_0x5af6b1(0x82)][_0x5af6b1(0xe1)](_0x5ba0df),{'boundaries':_0x36014a});_0x36014a=_0x33d5d0[_0x5af6b1(0x84)](_0x153c85,_0x36014a[_0x5af6b1(0x9f)]);}_0x33d5d0[_0x5af6b1(0xa9)](_0x1b5f77,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x36014a}),_0x23057d++;}}),window[_0x3300e1(0x8c)]()?.[_0x3300e1(0x90)](),!0x0;}[_0x44d2a1(0x9e)](_0x23da6f){const _0x60dd3b=_0x44d2a1;if(this[_0x60dd3b(0xa3)]!=_0x23da6f)return!0x1;this[_0x60dd3b(0xa3)]=null,this[_0x60dd3b(0xe5)]=!0x1;const _0x255d79=_0x1a8bda(this[_0x60dd3b(0xbc)]),_0x3b5764=_0x255d79[_0x60dd3b(0xcc)][_0x60dd3b(0xc4)][_0x60dd3b(0xe3)](_0x60dd3b(0xe7));return _0x255d79[_0x60dd3b(0xcc)][_0x60dd3b(0x8e)](_0x8502e1=>{const _0xfd9639=_0x60dd3b;for(const _0x5d67f1 of _0x3b5764)_0x8502e1[_0xfd9639(0x91)](_0x5d67f1);}),!0x0;}[_0x44d2a1(0xc0)](_0x504a69){const _0x35778a=_0x44d2a1,_0x380727=_0x1a8bda(this[_0x35778a(0xbc)]),_0x36c509=_0x380727[_0x35778a(0xda)][_0x35778a(0xe8)](_0x504a69),_0x336fc9=new _0xcf7abc(_0x380727[_0x35778a(0xa4)][_0x35778a(0xd3)][_0x35778a(0xb0)]);return this[_0x35778a(0xc8)](_0x36c509,_0x336fc9),_0x36c509;}[_0x44d2a1(0xc8)](_0x2ab852,_0x490aa1){const _0x324411=_0x44d2a1;let _0x4472ab=!0x1;const _0x47868f=new Set();for(const _0x521767 of _0x2ab852[_0x324411(0xa7)]()){const _0x353b41=_0x521767['is'](_0x324411(0xb2))||_0x521767['is'](_0x324411(0xdc));if(!_0x521767['is'](_0x324411(0x8b)))continue;(this[_0x324411(0xc8)](_0x521767,_0x490aa1)||_0x353b41)&&(_0x490aa1[_0x324411(0xa2)](_0x324411(0xd9),this[_0x324411(0x9c)](_0x47868f),_0x521767),_0x4472ab=!0x0);}return _0x4472ab;}[_0x44d2a1(0x9c)](_0x14b69a){const _0x18a399=_0x44d2a1;let _0x279521;do{_0x279521='';for(let _0x573473=0x0;_0x573473<0x4;_0x573473++)_0x279521+=String[_0x18a399(0xbe)](0x61+Math[_0x18a399(0xde)](0x1a*Math[_0x18a399(0xe0)]()));}while(_0x14b69a[_0x18a399(0xb9)](_0x279521));return _0x14b69a[_0x18a399(0x94)](_0x279521),_0x279521;}[_0x44d2a1(0xab)](){const _0x53ba12=_0x44d2a1,{model:_0x159efc}=_0x1a8bda(this[_0x53ba12(0xbc)]),_0xb89c55=_0x159efc[_0x53ba12(0xb0)][_0x53ba12(0xe6)],_0x124370=_0x159efc[_0x53ba12(0xe9)](_0xb89c55),_0x532c37=[],_0x5b65b7=_0x159efc[_0x53ba12(0x9a)](_0x124370)[_0x53ba12(0x92)]();for(const {item:_0x2802bf}of _0x5b65b7)_0x2802bf['is'](_0x53ba12(0xb7))?_0x532c37[_0x53ba12(0xb1)](_0x2802bf[_0x53ba12(0xda)]):_0x2802bf['is'](_0x53ba12(0x8b))&&_0x532c37[_0x53ba12(0xb3)]>0x0&&'\x20'!==_0x532c37[_0x532c37[_0x53ba12(0xb3)]-0x1]&&_0x532c37[_0x53ba12(0xb1)]('\x20');return'\x22'+_0x532c37[_0x53ba12(0x81)]('')[_0x53ba12(0xac)]()+'\x22';}[_0x44d2a1(0x86)](){const _0x40bd57=_0x44d2a1,_0x37e207=_0x1a8bda(this[_0x40bd57(0xbc)])[_0x40bd57(0xcc)];return Array[_0x40bd57(0xd8)](_0x37e207[_0x40bd57(0xc4)][_0x40bd57(0xe3)](_0x40bd57(0xe7)))[_0x40bd57(0x98)]((_0x1fca65,_0x540a94)=>_0x1fca65[_0x40bd57(0xdd)]()[_0x40bd57(0xd4)](_0x540a94[_0x40bd57(0xdd)]())?-0x1:_0x1fca65[_0x40bd57(0xdd)]()[_0x40bd57(0xb8)](_0x540a94[_0x40bd57(0xdd)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5bd7a4=_0x28bc;function _0x25bf(){const _0x5817ae=['setWebSearch','reset','fire','210690szFFah','4105176CtTVQJ','setReasoning','isWebSearchEnabled','42VHTxSR','getCapabilitiesConfig','56027KWnBLn','init','toggleReasoning','capabilitiesUpdated','toggleWebSearch','10HCZGJp','1188SYHsRT','6260SkpGrz','36744jVoeYC','864kXLccG','4355634lMXego','getCapabilitiesRequestData','isReasoningEnabled','4848529FJbmSG','webSearch','_isWebSearchEnabled','210dpdocN','reasoning','_isReasoningEnabled'];_0x25bf=function(){return _0x5817ae;};return _0x25bf();}(function(_0x5f2e3a,_0x597d8f){const _0x4b13e4=_0x28bc,_0x4c7989=_0x5f2e3a();while(!![]){try{const _0x523fa2=-parseInt(_0x4b13e4(0xee))/0x1*(-parseInt(_0x4b13e4(0xec))/0x2)+-parseInt(_0x4b13e4(0xdb))/0x3*(-parseInt(_0x4b13e4(0xd9))/0x4)+parseInt(_0x4b13e4(0xf3))/0x5*(-parseInt(_0x4b13e4(0xdc))/0x6)+-parseInt(_0x4b13e4(0xdf))/0x7+parseInt(_0x4b13e4(0xe9))/0x8+-parseInt(_0x4b13e4(0xe8))/0x9*(-parseInt(_0x4b13e4(0xe2))/0xa)+parseInt(_0x4b13e4(0xd8))/0xb*(parseInt(_0x4b13e4(0xda))/0xc);if(_0x523fa2===_0x597d8f)break;else _0x4c7989['push'](_0x4c7989['shift']());}catch(_0x494724){_0x4c7989['push'](_0x4c7989['shift']());}}}(_0x25bf,0xc7c27));function _0x28bc(_0x13e31f,_0x409bd5){const _0x25bf58=_0x25bf();return _0x28bc=function(_0x28bc9e,_0x160101){_0x28bc9e=_0x28bc9e-0xd8;let _0x859f79=_0x25bf58[_0x28bc9e];return _0x859f79;},_0x28bc(_0x13e31f,_0x409bd5);}import{EmitterMixin as _0x1c972f}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x5bd7a4(0xf1)];export class AICapabilities extends _0x1c972f(){[_0x5bd7a4(0xe1)];[_0x5bd7a4(0xe4)];constructor(){const _0xa3080c=_0x5bd7a4;super(),this[_0xa3080c(0xe1)]=!0x1,this[_0xa3080c(0xe4)]=!0x1;}[_0x5bd7a4(0xef)](){const _0x2c4970=_0x5bd7a4;this[_0x2c4970(0xe6)]();}[_0x5bd7a4(0xe6)](){const _0x3b6822=_0x5bd7a4;this[_0x3b6822(0xe5)](!0x1),this[_0x3b6822(0xea)](!0x1);}[_0x5bd7a4(0xed)](){const _0x405f3f=_0x5bd7a4;return{'isWebSearchEnabled':this[_0x405f3f(0xe1)],'isReasoningEnabled':this[_0x405f3f(0xe4)]};}static[_0x5bd7a4(0xdd)](_0x3f0a4e){const _0x4b5940=_0x5bd7a4,_0x1c0da2={};return _0x3f0a4e&&_0x3f0a4e[_0x4b5940(0xeb)]&&(_0x1c0da2[_0x4b5940(0xe0)]={}),_0x3f0a4e&&_0x3f0a4e[_0x4b5940(0xde)]&&(_0x1c0da2[_0x4b5940(0xe3)]={}),_0x1c0da2;}[_0x5bd7a4(0xf2)](){const _0xf50432=_0x5bd7a4;this[_0xf50432(0xe5)](!this[_0xf50432(0xe1)]);}[_0x5bd7a4(0xf0)](){const _0x3540c5=_0x5bd7a4;this[_0x3540c5(0xea)](!this[_0x3540c5(0xe4)]);}[_0x5bd7a4(0xe5)](_0x33e7b1){const _0x593cda=_0x5bd7a4;_0x33e7b1!==this[_0x593cda(0xe1)]&&(this[_0x593cda(0xe1)]=_0x33e7b1,this[_0x593cda(0xe7)](_0x593cda(0xf1),this[_0x593cda(0xed)]()));}[_0x5bd7a4(0xea)](_0x5bffbb){const _0x231763=_0x5bd7a4;_0x5bffbb!==this[_0x231763(0xe4)]&&(this[_0x231763(0xe4)]=_0x5bffbb,this[_0x231763(0xe7)](_0x231763(0xf1),this[_0x231763(0xed)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xd48137,_0x25352e){var _0xdb5603=_0x4ee6,_0x2e95c6=_0xd48137();while(!![]){try{var _0x1feccd=-parseInt(_0xdb5603(0x11e))/0x1+parseInt(_0xdb5603(0x11f))/0x2*(parseInt(_0xdb5603(0x125))/0x3)+-parseInt(_0xdb5603(0x120))/0x4+-parseInt(_0xdb5603(0x131))/0x5*(parseInt(_0xdb5603(0x123))/0x6)+parseInt(_0xdb5603(0x129))/0x7*(-parseInt(_0xdb5603(0x12e))/0x8)+parseInt(_0xdb5603(0x12a))/0x9+parseInt(_0xdb5603(0x128))/0xa*(parseInt(_0xdb5603(0x126))/0xb);if(_0x1feccd===_0x25352e)break;else _0x2e95c6['push'](_0x2e95c6['shift']());}catch(_0x553824){_0x2e95c6['push'](_0x2e95c6['shift']());}}}(_0x468c,0x52370));export var AIContextItemType;function _0x468c(){var _0x3ed339=['10avkXUa','7BbnjPg','2859561DEVZca','FILE','file','SELECTION','4401808PjBgLh','DOCUMENT','TEXT','715ijeYEm','MARKDOWN','URL','document','HTML','html','592953OxJqjy','156756rqqGdf','1924440exaokv','markdown','selection','14298fynsjw','web-resource','18qXeKcK','16651943jdgKhH','text'];_0x468c=function(){return _0x3ed339;};return _0x468c();}!function(_0x89d52d){var _0x47dbe6=_0x4ee6;_0x89d52d[_0x47dbe6(0x12b)]=_0x47dbe6(0x12c),_0x89d52d[_0x47dbe6(0x12f)]=_0x47dbe6(0x11b),_0x89d52d[_0x47dbe6(0x11a)]=_0x47dbe6(0x124),_0x89d52d[_0x47dbe6(0x130)]=_0x47dbe6(0x127),_0x89d52d[_0x47dbe6(0x12d)]=_0x47dbe6(0x122);}(AIContextItemType||(AIContextItemType={}));function _0x4ee6(_0x944180,_0x1f94d2){var _0x468ca0=_0x468c();return _0x4ee6=function(_0x4ee630,_0x3db426){_0x4ee630=_0x4ee630-0x119;var _0x41628f=_0x468ca0[_0x4ee630];return _0x41628f;},_0x4ee6(_0x944180,_0x1f94d2);}export var AIContextTextResourceType;!function(_0xd06b15){var _0x3d1369=_0x4ee6;_0xd06b15[_0x3d1369(0x130)]=_0x3d1369(0x127),_0xd06b15[_0x3d1369(0x119)]=_0x3d1369(0x121),_0xd06b15[_0x3d1369(0x11c)]=_0x3d1369(0x11d);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x42020f=_0x2a04;(function(_0x2bd876,_0x36b507){const _0x13eda9=_0x2a04,_0x1c1b9e=_0x2bd876();while(!![]){try{const _0x18ca5=-parseInt(_0x13eda9(0x17a))/0x1+-parseInt(_0x13eda9(0x1a8))/0x2*(-parseInt(_0x13eda9(0x18c))/0x3)+-parseInt(_0x13eda9(0x192))/0x4+parseInt(_0x13eda9(0x198))/0x5+-parseInt(_0x13eda9(0x1a6))/0x6+parseInt(_0x13eda9(0x170))/0x7+parseInt(_0x13eda9(0x19d))/0x8*(-parseInt(_0x13eda9(0x195))/0x9);if(_0x18ca5===_0x36b507)break;else _0x1c1b9e['push'](_0x1c1b9e['shift']());}catch(_0x5b0a76){_0x1c1b9e['push'](_0x1c1b9e['shift']());}}}(_0x1f85,0xe89d7));function _0x2a04(_0x351110,_0x36a4d3){const _0x1f853e=_0x1f85();return _0x2a04=function(_0x2a04a7,_0x597373){_0x2a04a7=_0x2a04a7-0x168;let _0x3d0bac=_0x1f853e[_0x2a04a7];return _0x3d0bac;},_0x2a04(_0x351110,_0x36a4d3);}import{CKEditorError as _0x19d2e8,EmitterMixin as _0x47512b,uid as _0x5eb06d}from'ckeditor5/src/utils.js';import{AIReply as _0x3b68b4,isIgnoredReplyType as _0x49f683,isValidReplyType as _0x27ac4b,isReplyTitleType as _0x14cd5e,isSourceType as _0x1daafe}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x42020f(0x183),_0x42020f(0x176),_0x42020f(0x1a0),_0x42020f(0x1a9),_0x42020f(0x1a5),_0x42020f(0x186),_0x42020f(0x182),_0x42020f(0x179),_0x42020f(0x196),_0x42020f(0x168),_0x42020f(0x19b),_0x42020f(0x191),_0x42020f(0x16b),_0x42020f(0x18e)];function _0x1f85(){const _0x77d41f=['textDelta','interactionDestroyed','7444656OMDGEP','replies','4NRXxGq','interactionFinished','find','forEach','data','webSearchStarted','createReply','fire','reasoningFinished','start','event','sources','sendRequest','12376392kGtgmS','_isReasoning','callId','content','source','isStopped','interactionStarted','currentRequest','abortController','replyChangeGroupStateUpdated','1638514cLGFae','action-metadata','reasoning','conversationTitle','isDestroyed','_isWebSearching','getStream','splice','replyContentUpdated','interactionCreated','web-search','stopListening','replyCreated','actionCallId','stop','editor','length','push','2549073REECgc','currentReply','error','getReply','abort','reasoningStarted','1962084tgLXPB','ai-chat-interaction-error','getDocumentContext','18YMIyjh','setConversationTitle','modification-delta','5325670ugaYro','done','messageId','webSearchFinished','_finalizeInteraction','839880Bftsbd','message-metadata','delegate','interactionStopped','connector','destroy','appendContent'];_0x1f85=function(){return _0x77d41f;};return _0x1f85();}export class AIInteraction extends _0x47512b(){['id'];[_0x42020f(0x1a7)]=[];[_0x42020f(0x18d)];[_0x42020f(0x19a)];[_0x42020f(0x187)];[_0x42020f(0x177)];[_0x42020f(0x1a1)];[_0x42020f(0x175)]=!0x1;[_0x42020f(0x17e)]=!0x1;[_0x42020f(0x189)];[_0x42020f(0x171)]=!0x1;[_0x42020f(0x17f)]=!0x1;constructor({connector:_0x5198ee,editor:_0xf3229f}){const _0x9ac126=_0x42020f;super(),this['id']=_0x5eb06d(),this[_0x9ac126(0x1a1)]=_0x5198ee,this[_0x9ac126(0x175)]=!0x0,this[_0x9ac126(0x189)]=_0xf3229f;}async[_0x42020f(0x16c)](){const _0x45a8fd=_0x42020f;let _0x3e4e94;const _0x375b52=[];this[_0x45a8fd(0x175)]=!0x1;try{this[_0x45a8fd(0x177)]=await this[_0x45a8fd(0x16f)](),this[_0x45a8fd(0x16a)](_0x45a8fd(0x176),this);const _0x2c3a21=await this[_0x45a8fd(0x177)][_0x45a8fd(0x180)]();for await(const _0x37b63d of _0x2c3a21){if(this[_0x45a8fd(0x175)])return;if(_0x45a8fd(0x18e)===_0x37b63d[_0x45a8fd(0x16d)])return void this[_0x45a8fd(0x16a)](_0x45a8fd(0x18e),{'error':new _0x19d2e8(_0x45a8fd(0x193),this)});if(_0x45a8fd(0x19e)!==_0x37b63d[_0x45a8fd(0x16d)]){if(_0x45a8fd(0x17b)!==_0x37b63d[_0x45a8fd(0x16d)]){if(_0x14cd5e(_0x37b63d[_0x45a8fd(0x16d)])&&this[_0x45a8fd(0x196)](_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x17d)],!0x0),_0x1daafe(_0x37b63d[_0x45a8fd(0x16d)]))_0x375b52[_0x45a8fd(0x18b)](_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x174)]);else{if(_0x27ac4b(_0x37b63d[_0x45a8fd(0x16d)])){if(_0x37b63d[_0x45a8fd(0x16d)]!==_0x3e4e94){if(_0x3e4e94=_0x37b63d[_0x45a8fd(0x16d)],_0x45a8fd(0x184)===_0x37b63d[_0x45a8fd(0x16d)]){this[_0x45a8fd(0x17f)]||(this[_0x45a8fd(0x17f)]=!0x0,this[_0x45a8fd(0x16a)](_0x45a8fd(0x168),this));continue;}if(_0x45a8fd(0x17c)===_0x37b63d[_0x45a8fd(0x16d)]){this[_0x45a8fd(0x171)]||(this[_0x45a8fd(0x171)]=!0x0,this[_0x45a8fd(0x16a)](_0x45a8fd(0x191),this));continue;}this[_0x45a8fd(0x171)]&&(this[_0x45a8fd(0x171)]=!0x1,this[_0x45a8fd(0x16a)](_0x45a8fd(0x16b),this)),this[_0x45a8fd(0x17f)]&&(this[_0x45a8fd(0x17f)]=!0x1,this[_0x45a8fd(0x16a)](_0x45a8fd(0x19b),this)),this[_0x45a8fd(0x18d)]&&this[_0x45a8fd(0x18d)][_0x45a8fd(0x199)](),this[_0x45a8fd(0x18d)]=this[_0x45a8fd(0x169)]({'type':_0x37b63d[_0x45a8fd(0x16d)],'interactionId':this['id'],'id':_0x37b63d[_0x45a8fd(0x1ac)]?.['id']}),_0x375b52[_0x45a8fd(0x18a)]>0x0&&_0x45a8fd(0x197)===_0x37b63d[_0x45a8fd(0x16d)]&&(this[_0x45a8fd(0x18d)][_0x45a8fd(0x16e)]=_0x375b52[_0x45a8fd(0x181)](0x0));}_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x1a4)]&&this[_0x45a8fd(0x18d)][_0x45a8fd(0x1a3)](_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x1a4)]);}else _0x49f683(_0x37b63d[_0x45a8fd(0x16d)]);}}else this[_0x45a8fd(0x187)]=_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x172)];}else this[_0x45a8fd(0x19a)]=_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x19a)];}}finally{this[_0x45a8fd(0x175)]||(_0x375b52[_0x45a8fd(0x18a)]>0x0&&(this[_0x45a8fd(0x18d)][_0x45a8fd(0x16e)]=_0x375b52[_0x45a8fd(0x181)](0x0)),this[_0x45a8fd(0x19c)](),this[_0x45a8fd(0x16a)](_0x45a8fd(0x1a9),this));}}[_0x42020f(0x188)](){const _0x43af88=_0x42020f;this[_0x43af88(0x175)]||(this[_0x43af88(0x19c)](),this[_0x43af88(0x16a)](_0x43af88(0x1a0),this));}[_0x42020f(0x18f)](_0x2e8801){const _0x159870=_0x42020f;return this[_0x159870(0x1a7)][_0x159870(0x1aa)](_0x1474ed=>_0x1474ed['id']===_0x2e8801);}[_0x42020f(0x1a2)](){const _0x593571=_0x42020f;this[_0x593571(0x17e)]||(this[_0x593571(0x188)](),this[_0x593571(0x1a7)][_0x593571(0x1ab)](_0x2d5de8=>_0x2d5de8[_0x593571(0x1a2)]()),this[_0x593571(0x1a7)]=[],this[_0x593571(0x17e)]=!0x0,this[_0x593571(0x16a)](_0x593571(0x1a5),this),this[_0x593571(0x185)]());}[_0x42020f(0x169)](_0x2de031){const _0x168347=_0x42020f,_0xc37644=new _0x3b68b4({'editor':this[_0x168347(0x189)],'documentContextContent':this[_0x168347(0x194)]()?.[_0x168347(0x173)],..._0x2de031});return this[_0x168347(0x1a7)][_0x168347(0x18b)](_0xc37644),_0xc37644[_0x168347(0x19f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x168347(0x16a)](_0x168347(0x186),_0xc37644),_0xc37644;}[_0x42020f(0x196)](_0x4dddcb,_0x203da1=!0x1){const _0x273936=_0x42020f;this[_0x273936(0x16a)](_0x273936(0x196),_0x4dddcb,_0x203da1);}[_0x42020f(0x19c)](){const _0x48606e=_0x42020f;this[_0x48606e(0x175)]=!0x0,this[_0x48606e(0x177)]&&this[_0x48606e(0x177)][_0x48606e(0x178)][_0x48606e(0x190)](),this[_0x48606e(0x18d)]&&this[_0x48606e(0x18d)][_0x48606e(0x199)](),this[_0x48606e(0x177)]=this[_0x48606e(0x18d)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xf36c(_0x43549c,_0x383d9e){const _0x3552b9=_0x3552();return _0xf36c=function(_0xf36c3e,_0x522244){_0xf36c3e=_0xf36c3e-0x187;let _0x8fbc72=_0x3552b9[_0xf36c3e];return _0x8fbc72;},_0xf36c(_0x43549c,_0x383d9e);}const _0x336655=_0xf36c;(function(_0x2dc246,_0xf62ad1){const _0x4acb36=_0xf36c,_0x559359=_0x2dc246();while(!![]){try{const _0x4b3089=parseInt(_0x4acb36(0x1a9))/0x1*(parseInt(_0x4acb36(0x1af))/0x2)+-parseInt(_0x4acb36(0x1a3))/0x3+parseInt(_0x4acb36(0x195))/0x4*(parseInt(_0x4acb36(0x1b3))/0x5)+parseInt(_0x4acb36(0x197))/0x6+parseInt(_0x4acb36(0x1a2))/0x7+-parseInt(_0x4acb36(0x19b))/0x8*(-parseInt(_0x4acb36(0x19e))/0x9)+-parseInt(_0x4acb36(0x1b1))/0xa;if(_0x4b3089===_0xf62ad1)break;else _0x559359['push'](_0x559359['shift']());}catch(_0x5b9ab9){_0x559359['push'](_0x559359['shift']());}}}(_0x3552,0x57480));import{EmitterMixin as _0x2378d,logWarning as _0x5a11e2,logError as _0x470068}from'ckeditor5/src/utils.js';function _0x3552(){const _0x255298=['isAvailable','109996EPKKDj','getDefault','1991046cfDTur','_availableModels','provider','items','911912yzKluB','AI_MODEL_DESCRIPTION_AUTO','ai-models-unable-to-retrieve','45hDJItj','AI_MODEL_DESCRIPTION_','description','AI_MODEL_NAME_AUTO','3376730MazAkP','2069364aggEym','string','some','agent','getAvailableModels','_modelList','80481nCIZJo','getAll','startsWith','_defaultModelId','push','_connector','14MHILRP','toLocaleLowerCase','14227320YrUsUM','_getModelById','95NMHiOc','getLocalized','getModels','find','name','_filterModels','list','map','ai-chat-default-model-id-unrecognized','length','auto','ai-chat-model-id-unrecognized','getModel','toUpperCase'];_0x3552=function(){return _0x255298;};return _0x3552();}import{getTranslation as _0x37da60}from'../utils/common-translations.js';export class AIModels extends _0x2378d(){[_0x336655(0x1ae)];[_0x336655(0x198)];[_0x336655(0x1ac)];[_0x336655(0x1a8)]=[];constructor({connector:_0x30f648,availableModels:_0x130564,defaultModelId:_0x3beb7c}){const _0x14fe9d=_0x336655;super(),this[_0x14fe9d(0x1ae)]=_0x30f648,this[_0x14fe9d(0x198)]=_0x130564,this[_0x14fe9d(0x1ac)]=_0x3beb7c;}async[_0x336655(0x1aa)](){const _0x30106e=_0x336655;if(!this[_0x30106e(0x1a8)][_0x30106e(0x18f)])try{const _0x3f21c0=this[_0x30106e(0x1ae)][_0x30106e(0x188)](),_0x1b9d89=await _0x3f21c0[_0x30106e(0x18c)]();this[_0x30106e(0x1a8)]=_0x1b9d89[_0x30106e(0x19a)];}catch(_0x4cfd9e){throw _0x470068(_0x30106e(0x19d),{'error':_0x4cfd9e}),_0x4cfd9e;}return[...this[_0x30106e(0x1a8)]];}async[_0x336655(0x1a7)](){const _0x501825=_0x336655,_0x4c5de7=await this[_0x501825(0x1aa)]();return this[_0x501825(0x18b)](_0x4c5de7,this[_0x501825(0x198)]);}async[_0x336655(0x192)](_0x3472ba){const _0x42db1a=_0x336655,_0x1c500e=await this[_0x42db1a(0x1aa)]();if(!_0x1c500e[_0x42db1a(0x18f)])return null;if(_0x3472ba){const _0x32fa21=this[_0x42db1a(0x1b2)](_0x1c500e,_0x3472ba);if(_0x32fa21)return _0x32fa21;_0x5a11e2(_0x42db1a(0x191),{'modelId':_0x3472ba,'fallBackModelId':this[_0x42db1a(0x1ac)]});}return this[_0x42db1a(0x196)]();}async[_0x336655(0x196)](){const _0xf0d4e8=_0x336655,_0x46d93e=await this[_0xf0d4e8(0x1a7)]();if(!_0x46d93e[_0xf0d4e8(0x18f)])return null;if(this[_0xf0d4e8(0x1ac)]){const _0x132a05=this[_0xf0d4e8(0x1b2)](_0x46d93e,this[_0xf0d4e8(0x1ac)]);if(_0x132a05)return _0x132a05;_0x5a11e2(_0xf0d4e8(0x18e),{'defaultModelId':this[_0xf0d4e8(0x1ac)],'fallBackModelId':_0x46d93e[0x0]['id']});}return _0x46d93e[0x0];}async[_0x336655(0x194)](_0x296265){const _0xa61861=_0x336655;return(await this[_0xa61861(0x1a7)]())[_0xa61861(0x1a5)](_0x30ec24=>_0x30ec24[_0xa61861(0x18a)]===_0x296265[_0xa61861(0x18a)]&&_0x30ec24[_0xa61861(0x199)]===_0x296265[_0xa61861(0x199)]);}[_0x336655(0x18b)](_0x29165c,_0x519c10){const _0x3b79a3=_0x336655;let _0x3b7131;if(_0x519c10){_0x3b7131=[];const _0xbaa86c=_0x3b79a3(0x1a4)==typeof _0x519c10?[_0x519c10[_0x3b79a3(0x1b0)]()]:_0x519c10[_0x3b79a3(0x18d)](_0x7e1a2e=>_0x7e1a2e[_0x3b79a3(0x1b0)]());for(const _0xdb4540 of _0xbaa86c)for(const _0x49afe8 of _0x29165c)(_0x49afe8['id'][_0x3b79a3(0x1b0)]()===_0xdb4540||_0x49afe8[_0x3b79a3(0x18a)][_0x3b79a3(0x1b0)]()===_0xdb4540||Ne(_0x49afe8)&&_0x3b79a3(0x190)===_0xdb4540||_0x49afe8[_0x3b79a3(0x199)][_0x3b79a3(0x1b0)]()===_0xdb4540||_0x49afe8['id'][_0x3b79a3(0x1b0)]()[_0x3b79a3(0x1ab)](_0xdb4540))&&_0x3b7131[_0x3b79a3(0x1ad)](_0x49afe8);}else _0x3b7131=_0x29165c;return _0x3b7131;}[_0x336655(0x1b2)](_0x56382c,_0x3e146c){const _0x54e56d=_0x336655;return _0x56382c[_0x54e56d(0x189)](_0x65f2a9=>Ne(_0x65f2a9)&&_0x54e56d(0x190)===_0x3e146c?_0x65f2a9:_0x65f2a9['id']===_0x3e146c)||null;}static[_0x336655(0x187)](_0x2e2a0e,_0x2913a9){const _0x4ae60a=_0x336655;return _0x2913a9[_0x4ae60a(0x18d)](_0x160ead=>{const _0x2e7676=_0x4ae60a;if(Ne(_0x160ead))_0x160ead[_0x2e7676(0x18a)]=_0x37da60(_0x2e2a0e,_0x2e7676(0x1a1)),_0x160ead[_0x2e7676(0x1a0)]=_0x37da60(_0x2e2a0e,_0x2e7676(0x19c));else _0x37da60(_0x2e2a0e,_0x2e7676(0x19f)+_0x160ead['id'][_0x2e7676(0x193)]())[_0x2e7676(0x1ab)](_0x2e7676(0x19f))||(_0x160ead[_0x2e7676(0x1a0)]=_0x37da60(_0x2e2a0e,_0x2e7676(0x19f)+_0x160ead['id'][_0x2e7676(0x193)]()));return _0x160ead;});}}function Ne(_0x1e42c6){const _0x4c7d30=_0x336655;return _0x1e42c6['id'][_0x4c7d30(0x1ab)](_0x4c7d30(0x1a6));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x340882=_0x67f7;(function(_0x33e275,_0x239a2c){const _0x294f85=_0x67f7,_0x2447b1=_0x33e275();while(!![]){try{const _0x219d5c=parseInt(_0x294f85(0xb3))/0x1*(-parseInt(_0x294f85(0xe5))/0x2)+-parseInt(_0x294f85(0xe3))/0x3*(parseInt(_0x294f85(0x9d))/0x4)+parseInt(_0x294f85(0xb7))/0x5+parseInt(_0x294f85(0xd2))/0x6+parseInt(_0x294f85(0xa2))/0x7*(-parseInt(_0x294f85(0xe9))/0x8)+-parseInt(_0x294f85(0xa5))/0x9*(-parseInt(_0x294f85(0xd8))/0xa)+parseInt(_0x294f85(0xc5))/0xb*(-parseInt(_0x294f85(0x9f))/0xc);if(_0x219d5c===_0x239a2c)break;else _0x2447b1['push'](_0x2447b1['shift']());}catch(_0xf7b9fa){_0x2447b1['push'](_0x2447b1['shift']());}}}(_0x4f96,0x4863f));import{CKEditorError as _0x345e80,ObservableMixin as _0x43945c,uid as _0x121a05}from'ckeditor5/src/utils.js';import{Element as _0x460d36,findAll as _0x1ed37e,getAttribute as _0x4c524b,getParents as _0x53ac11,Document as _0x4e15a2,parse as _0x3bb960,Text as _0x5b3408}from'../utils/htmlparser.js';import{AIResponseParser as _0x39867f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x393ebb}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x539625}from'../utils/getsuggestionpartsfromreply.js';function _0x67f7(_0x4794e1,_0x4c4a98){const _0x4f965f=_0x4f96();return _0x67f7=function(_0x67f7b3,_0x36872b){_0x67f7b3=_0x67f7b3-0x98;let _0x5820e8=_0x4f965f[_0x67f7b3];return _0x5820e8;},_0x67f7(_0x4794e1,_0x4c4a98);}import{getTranslation as _0x3d7436}from'../utils/common-translations.js';import{cloneDeep as _0x2f83f5}from'es-toolkit';export const AI_REPLY_TYPES=[_0x340882(0xa1),_0x340882(0xc0),_0x340882(0xa7),_0x340882(0xac)];export const AI_REPLY_TYPES_IGNORED=[_0x340882(0xcb)];function _0x4f96(){const _0x33dfbd=['updateChangeGroups','newNodeIds','set','sources','reasoning','withoutDiff','ai-reply-get-content-parts-group-not-found','_getCachedContentParts','convertMarkdownToHTML','includes','aiResponseParser','1mcZuUy','onContentChange','appendContent','parseAndNormalizeHTML','2734830AdSgmt','new','modified','values','merge','every','pending','replyChangeGroupStateUpdated','node','text-delta','setChangeGroupState','changes','content','change:content','451PLXApV','isDone','context','unshift','parsedContent','_setCachedContentParts','conversation-title','nextSibling','removed','data-id','ai-get-editor-from-context-no-editor','cloneNode','filter','124002XErTgr','_getDifferentChangeGroups','documentContextContent','type','fire','locale','3763830TEHYrA','AI_SUGGESTION_CONTENT_PART_REMOVED','modifiedNodeIds','withDiff','source','find','stopListening','aiResponseApplier','length','done','getContentParts','1132737aQaLCG','cachedSuggestionContentParts','370892EMSeyH','editor','color:\x20#808080;\x20font-style:\x20italic','interactionId','16136Dgjwrc','map','changeGroups','replyContentUpdated','index','previousSibling','forEach','areActionsDisabled','splice','push','indexOf','span','4sREadc','destroy','11148TDXIot','state','modification-delta','161jvALtC','data-unstable','parsedMergedContent','9YBodRM','removedNodeIds','web-search'];_0x4f96=function(){return _0x33dfbd;};return _0x4f96();}export const AI_REPLY_TITLE_TYPE=_0x340882(0xcb);export class AIReply extends _0x43945c(){['id'];[_0x340882(0xe8)];[_0x340882(0xd5)];[_0x340882(0xab)]=[];[_0x340882(0xc9)]=new _0x4e15a2([]);[_0x340882(0xa4)]=new _0x4e15a2([]);[_0x340882(0xeb)]=[];[_0x340882(0x98)]=!0x1;[_0x340882(0xd4)];[_0x340882(0xb2)];[_0x340882(0xdf)];[_0x340882(0xe6)];[_0x340882(0xe4)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3ecd0f,content:_0x3ed6c2='',isDone:_0x151659=!0x1,interactionId:_0x381fe0,areActionsDisabled:_0xe489c2,documentContextContent:_0x308724,editor:_0x2aee32,id:_0x4bbf92}){const _0x228390=_0x340882;super(),this['id']=_0x4bbf92||_0x121a05(),this[_0x228390(0xe8)]=_0x381fe0,this[_0x228390(0xd5)]=_0x3ecd0f,this[_0x228390(0x98)]=!!_0xe489c2,this[_0x228390(0xe6)]=_0x2aee32,this[_0x228390(0xb2)]=new _0x39867f(),this[_0x228390(0xdf)]=new _0x393ebb(),this[_0x228390(0xd4)]=_0x3bb960(_0x308724||''),this[_0x228390(0xaa)](_0x228390(0xc6),_0x151659),this['on'](_0x228390(0xc4),()=>{const _0x3f595d=_0x228390;this[_0x3f595d(0xb4)]();}),this[_0x228390(0xaa)](_0x228390(0xc3),_0x3ed6c2);}[_0x340882(0xb5)](_0x54afe6){const _0x3caff3=_0x340882;this[_0x3caff3(0xaa)](_0x3caff3(0xc3),this[_0x3caff3(0xc3)]+_0x54afe6);}[_0x340882(0xe1)](){const _0x5c01f0=_0x340882;this[_0x5c01f0(0xc6)]||(this[_0x5c01f0(0xaa)](_0x5c01f0(0xc6),!0x0),this[_0x5c01f0(0xb4)]());}[_0x340882(0x9e)](){const _0x500f46=_0x340882;this[_0x500f46(0xde)]();}[_0x340882(0xc1)](_0x443e7c,_0x4ed65c){const _0x3c49b3=_0x340882;this[_0x3c49b3(0xeb)][_0x443e7c][_0x3c49b3(0xa0)]=_0x4ed65c,this[_0x3c49b3(0xd6)](_0x3c49b3(0xbe),{'reply':this,'index':_0x443e7c,'state':_0x4ed65c});}[_0x340882(0xe2)]({showDiff:_0x18a758,groupIndex:_0x238294}){const _0x218ffb=_0x340882;if(!this[_0x218ffb(0xe6)])throw new _0x345e80(_0x218ffb(0xcf),null,{'aiReply':this});const _0xa71398=this[_0x218ffb(0xaf)](_0x18a758,_0x238294);if(_0xa71398)return _0xa71398;let _0x389fca=[];if(void 0x0===_0x238294)_0x389fca=this[_0x218ffb(0xeb)];else{const _0x4cc5c3=this[_0x218ffb(0xeb)][_0x218ffb(0xdd)](({index:_0x21c797})=>_0x21c797===_0x238294);if(!_0x4cc5c3)throw new _0x345e80(_0x218ffb(0xae),null,{'aiReply':this,'groupIndex':_0x238294});_0x389fca=[_0x4cc5c3];}const _0xc74364=_0x539625({'editor':this[_0x218ffb(0xe6)],'showDiff':_0x18a758,'changeGroups':_0x389fca,'documentContextContent':this[_0x218ffb(0xd4)]});return this[_0x218ffb(0xca)](_0x18a758,_0xc74364),_0xc74364;}[_0x340882(0xaf)](_0x59d3e5,_0x2fca20){const _0x3f7f6f=_0x340882,_0x87a0=_0x59d3e5?_0x3f7f6f(0xdb):_0x3f7f6f(0xad);if(!this[_0x3f7f6f(0xe4)][_0x87a0][_0x3f7f6f(0xe0)])return null;const _0x1c648e=this[_0x3f7f6f(0xe4)][_0x87a0];if(void 0x0===_0x2fca20)return _0x2f83f5(_0x1c648e);{const _0x2309cb=_0x1c648e[_0x3f7f6f(0xdd)](({index:_0x4b1fe1})=>_0x4b1fe1===_0x2fca20);if(_0x2309cb)return[_0x2f83f5(_0x2309cb)];}return null;}[_0x340882(0xca)](_0x419d03,_0x2786d8){const _0x404a69=_0x340882,_0x190de0=_0x419d03?_0x404a69(0xdb):_0x404a69(0xad);_0x2786d8[_0x404a69(0xef)](_0x47293c=>{const _0x29b553=_0x404a69,_0x15d5b2=this[_0x29b553(0xe4)][_0x190de0],_0x2f6d82=_0x15d5b2[_0x29b553(0xdd)](({index:_0x420a49})=>_0x420a49===_0x47293c[_0x29b553(0xed)]);if(_0x2f6d82){const _0x36a1ab=_0x15d5b2[_0x29b553(0x9b)](_0x2f6d82);_0x15d5b2[_0x29b553(0x99)](_0x36a1ab,0x1,_0x47293c);}else _0x15d5b2[_0x29b553(0x9a)](_0x47293c);});}[_0x340882(0xb4)](){const _0x35dfc6=_0x340882;if(_0x35dfc6(0xa1)===this[_0x35dfc6(0xd5)]){this[_0x35dfc6(0xc9)]=this[_0x35dfc6(0xb2)][_0x35dfc6(0xb6)](this[_0x35dfc6(0xc3)]);const _0x316fec=this[_0x35dfc6(0xeb)];this[_0x35dfc6(0xa8)]();const _0x237e18=this[_0x35dfc6(0xd3)](_0x316fec,this[_0x35dfc6(0xeb)]);(_0x237e18[_0x35dfc6(0xe0)]||this[_0x35dfc6(0xc6)])&&(this[_0x35dfc6(0xd6)](_0x35dfc6(0xec),this,_0x237e18),this[_0x35dfc6(0xe4)][_0x35dfc6(0xdb)][_0x35dfc6(0xe0)]=this[_0x35dfc6(0xe4)][_0x35dfc6(0xad)][_0x35dfc6(0xe0)]=0x0);}else this[_0x35dfc6(0xc9)]=this[_0x35dfc6(0xb2)][_0x35dfc6(0xb0)](this[_0x35dfc6(0xc3)]),this[_0x35dfc6(0xd6)](_0x35dfc6(0xec),this);}[_0x340882(0xd3)](_0x9deffc,_0x1c6afa){const _0x14a7b8=_0x340882,_0x30f309=[];for(const _0xc1a8cf of _0x1c6afa){const _0x5b814e=_0x9deffc[_0xc1a8cf[_0x14a7b8(0xed)]];_0x5b814e?_0x5b814e[_0x14a7b8(0xc2)][_0x14a7b8(0xe0)]!==_0xc1a8cf[_0x14a7b8(0xc2)][_0x14a7b8(0xe0)]?_0x30f309[_0x14a7b8(0x9a)](_0xc1a8cf):_0x5b814e[_0x14a7b8(0xc2)][_0x14a7b8(0xef)]((_0x34432c,_0x472116)=>{const _0x13817d=_0x14a7b8,_0x449224=_0xc1a8cf[_0x13817d(0xc2)][_0x472116];_0x34432c['id']!==_0x449224['id']&&_0x30f309[_0x13817d(0x9a)](_0xc1a8cf);}):_0x30f309[_0x14a7b8(0x9a)](_0xc1a8cf);}return _0x30f309;}[_0x340882(0xa8)](){const _0x1ec2c8=_0x340882,_0x31c4f9=new _0x460d36('p',{},[new _0x460d36(_0x1ec2c8(0x9c),{'style':_0x1ec2c8(0xe7)},[new _0x5b3408(_0x3d7436(this[_0x1ec2c8(0xe6)][_0x1ec2c8(0xd7)],_0x1ec2c8(0xd9)))])]),_0xd73edb=this[_0x1ec2c8(0xdf)][_0x1ec2c8(0xbb)](this[_0x1ec2c8(0xc9)],this[_0x1ec2c8(0xd4)][_0x1ec2c8(0xd0)](!0x0),{'markUnstableElements':!this[_0x1ec2c8(0xc6)],'replaceRemovedWith':_0x31c4f9,'cutAfterLastChange':!this[_0x1ec2c8(0xc6)]});if(!_0xd73edb[_0x1ec2c8(0xda)][_0x1ec2c8(0xe0)]&&!this[_0x1ec2c8(0xc6)])return;this[_0x1ec2c8(0xa4)]=_0xd73edb[_0x1ec2c8(0xc9)];let _0x5fec86=[];if(_0x1ed37e(_0x4ebca5=>{const _0x52ccc0=_0x1ec2c8,_0xf3431a=_0x4c524b(_0x4ebca5,_0x52ccc0(0xce));if(!_0xf3431a||!_0x50cfcc(_0xf3431a))return!0x1;const _0x6581ea=[_0x4ebca5,..._0x53ac11(_0x4ebca5)]['at'](-0x2);if(_0x4ebca5!=_0x6581ea){const _0x9f2823=_0x4c524b(_0x6581ea,_0x52ccc0(0xce));_0x50cfcc(_0x9f2823)||(_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x6581ea,'id':_0x9f2823,'type':_0x52ccc0(0xb9)}),_0xd73edb[_0x52ccc0(0xda)][_0x52ccc0(0x9a)](_0x9f2823));}else _0xd73edb[_0x52ccc0(0xda)][_0x52ccc0(0xb1)](_0xf3431a)?_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xb9),'id':_0xf3431a}):_0xd73edb[_0x52ccc0(0xa9)][_0x52ccc0(0xb1)](_0xf3431a)?_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xb8),'id':_0xf3431a,'anchorId':_0x4c524b(_0x4ebca5[_0x52ccc0(0xee)],_0x52ccc0(0xce))}):_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xcd),'id':_0xf3431a});return!0x0;},this[_0x1ec2c8(0xa4)]),_0x5fec86=_0x5fec86[_0x1ec2c8(0xd1)](({node:_0x483912})=>[..._0x53ac11(_0x483912),_0x483912][_0x1ec2c8(0xbc)](_0x188b3e=>!_0x4c524b(_0x188b3e,_0x1ec2c8(0xa3)))),0x0==_0x5fec86[_0x1ec2c8(0xe0)])return;const _0x304d65=[[_0x5fec86[0x0]]];for(let _0x526779=0x1;_0x526779<_0x5fec86[_0x1ec2c8(0xe0)];_0x526779++){const _0x1154d6=_0x304d65[_0x304d65[_0x1ec2c8(0xe0)]-0x1],_0x128bd2=_0x1154d6[_0x1154d6[_0x1ec2c8(0xe0)]-0x1];_0x5fec86[_0x526779][_0x1ec2c8(0xbf)][_0x1ec2c8(0xee)]==_0x128bd2[_0x1ec2c8(0xbf)]&&_0x1ec2c8(0xb9)!=_0x5fec86[_0x526779][_0x1ec2c8(0xd5)]&&_0x1ec2c8(0xb9)!=_0x128bd2[_0x1ec2c8(0xd5)]?_0x1154d6[_0x1ec2c8(0x9a)](_0x5fec86[_0x526779]):_0x304d65[_0x1ec2c8(0x9a)]([_0x5fec86[_0x526779]]);}for(const _0x45396d of _0x304d65){const _0x31469a=_0x45396d[0x0],_0x36b985=_0x45396d[_0x45396d[_0x1ec2c8(0xe0)]-0x1],_0x2bb988=_0x54b199(_0x31469a[_0x1ec2c8(0xbf)][_0x1ec2c8(0xee)]);_0x2bb988&&_0x45396d[_0x1ec2c8(0xc8)](_0x2bb988);const _0x5598ee=_0x54b199(_0x36b985[_0x1ec2c8(0xbf)][_0x1ec2c8(0xcc)]);_0x5598ee&&_0x45396d[_0x1ec2c8(0x9a)](_0x5598ee);}function _0x50cfcc(_0x4a55f0){const _0x4e825a=_0x1ec2c8;return _0xd73edb[_0x4e825a(0xda)][_0x4e825a(0xb1)](_0x4a55f0)||_0xd73edb[_0x4e825a(0xa9)][_0x4e825a(0xb1)](_0x4a55f0)||_0xd73edb[_0x4e825a(0xa6)][_0x4e825a(0xb1)](_0x4a55f0);}function _0x54b199(_0x266975){const _0x220d55=_0x1ec2c8;if(_0x266975&&_0x4c524b(_0x266975,_0x220d55(0xce))&&!_0x4c524b(_0x266975,_0x220d55(0xa3))){const _0x4dc4cd=_0x4c524b(_0x266975,_0x220d55(0xce));if(!_0x50cfcc(_0x4dc4cd))return{'node':_0x266975,'type':_0x220d55(0xc7),'id':_0x4dc4cd};}return null;}this[_0x1ec2c8(0xeb)]=_0x304d65[_0x1ec2c8(0xea)]((_0xb46fd3,_0x28c6a7)=>({'changes':_0xb46fd3,'state':_0x1ec2c8(0xbd),'index':_0x28c6a7}));}}export function isValidReplyType(_0x2ec86f){const _0xf79e04=_0x340882;return Object[_0xf79e04(0xba)](AI_REPLY_TYPES)[_0xf79e04(0xb1)](_0x2ec86f);}export function isIgnoredReplyType(_0x4c226c){const _0xdbddd3=_0x340882;return AI_REPLY_TYPES_IGNORED[_0xdbddd3(0xb1)](_0x4c226c);}export function isReplyTitleType(_0x342864){return _0x342864===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x205e33){const _0x360eb2=_0x340882;return _0x360eb2(0xdc)===_0x205e33;}
|
|
23
|
+
const _0x1b4be6=_0x5eab;(function(_0x11dccc,_0xeb467f){const _0x3906e6=_0x5eab,_0x232914=_0x11dccc();while(!![]){try{const _0x17c27e=-parseInt(_0x3906e6(0x154))/0x1+-parseInt(_0x3906e6(0x14c))/0x2*(parseInt(_0x3906e6(0x11f))/0x3)+parseInt(_0x3906e6(0x15c))/0x4*(parseInt(_0x3906e6(0x10d))/0x5)+-parseInt(_0x3906e6(0x157))/0x6+-parseInt(_0x3906e6(0x152))/0x7*(parseInt(_0x3906e6(0x111))/0x8)+-parseInt(_0x3906e6(0x11d))/0x9*(parseInt(_0x3906e6(0x110))/0xa)+-parseInt(_0x3906e6(0x149))/0xb*(-parseInt(_0x3906e6(0x139))/0xc);if(_0x17c27e===_0xeb467f)break;else _0x232914['push'](_0x232914['shift']());}catch(_0x559eb9){_0x232914['push'](_0x232914['shift']());}}}(_0x145d,0x565d3));import{CKEditorError as _0x731444,ObservableMixin as _0x48edb1,uid as _0x43f259}from'ckeditor5/src/utils.js';import{Element as _0x21e6c3,findAll as _0x383d9c,getAttribute as _0x517994,getParents as _0x407a48,Document as _0x2c4a6a,parse as _0x15492e,Text as _0x4c08c6}from'../utils/htmlparser.js';import{AIResponseParser as _0x32d443}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x21321d}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x27403f}from'../utils/getsuggestionpartsfromreply.js';function _0x5eab(_0x4df40f,_0x5b98e5){const _0x145da9=_0x145d();return _0x5eab=function(_0x5eab46,_0x4858fc){_0x5eab46=_0x5eab46-0x109;let _0x4ab85b=_0x145da9[_0x5eab46];return _0x4ab85b;},_0x5eab(_0x4df40f,_0x5b98e5);}import{getTranslation as _0x4dea68}from'../utils/common-translations.js';import{cloneDeep as _0x9a3acc}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1b4be6(0x147),_0x1b4be6(0x14d),_0x1b4be6(0x151),_0x1b4be6(0x148)];export const AI_REPLY_TYPES_IGNORED=[_0x1b4be6(0x113)];export const AI_REPLY_TITLE_TYPE=_0x1b4be6(0x113);export class AIReply extends _0x48edb1(){['id'];[_0x1b4be6(0x119)];[_0x1b4be6(0x12c)];[_0x1b4be6(0x15b)]=[];[_0x1b4be6(0x142)]=new _0x2c4a6a([]);[_0x1b4be6(0x131)]=new _0x2c4a6a([]);[_0x1b4be6(0x10b)]=[];[_0x1b4be6(0x156)]=!0x1;[_0x1b4be6(0x118)];[_0x1b4be6(0x136)];[_0x1b4be6(0x15d)];[_0x1b4be6(0x121)];[_0x1b4be6(0x128)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x805d6f,content:_0x8c6d27='',isDone:_0x57bfc9=!0x1,interactionId:_0x493d00,areActionsDisabled:_0x560b04,documentContextContent:_0x3d5321,editor:_0x202a6a,id:_0x45126d}){const _0x66966=_0x1b4be6;super(),this['id']=_0x45126d||_0x43f259(),this[_0x66966(0x119)]=_0x493d00,this[_0x66966(0x12c)]=_0x805d6f,this[_0x66966(0x156)]=!!_0x560b04,this[_0x66966(0x121)]=_0x202a6a,this[_0x66966(0x136)]=new _0x32d443(),this[_0x66966(0x15d)]=new _0x21321d(),this[_0x66966(0x118)]=_0x15492e(_0x3d5321||''),this[_0x66966(0x158)](_0x66966(0x13b),_0x57bfc9),this['on'](_0x66966(0x13f),()=>{const _0xf33f0c=_0x66966;this[_0xf33f0c(0x12a)]();}),this[_0x66966(0x158)](_0x66966(0x140),_0x8c6d27);}[_0x1b4be6(0x13a)](_0x5900c4){const _0x4d56d1=_0x1b4be6;this[_0x4d56d1(0x158)](_0x4d56d1(0x140),this[_0x4d56d1(0x140)]+_0x5900c4);}[_0x1b4be6(0x144)](){const _0x52138a=_0x1b4be6;this[_0x52138a(0x13b)]||(this[_0x52138a(0x158)](_0x52138a(0x13b),!0x0),this[_0x52138a(0x12a)]());}[_0x1b4be6(0x150)](){const _0x2b28c4=_0x1b4be6;this[_0x2b28c4(0x143)]();}[_0x1b4be6(0x120)](_0x43c7c9,_0x2cf81b){const _0x29282b=_0x1b4be6;this[_0x29282b(0x10b)][_0x43c7c9][_0x29282b(0x13e)]=_0x2cf81b,this[_0x29282b(0x114)](_0x29282b(0x15f),{'reply':this,'index':_0x43c7c9,'state':_0x2cf81b});}[_0x1b4be6(0x14b)]({showDiff:_0x4086f8,groupIndex:_0x52187b}){const _0x3d048a=_0x1b4be6;if(!this[_0x3d048a(0x121)])throw new _0x731444(_0x3d048a(0x129),null,{'aiReply':this});const _0x46d505=this[_0x3d048a(0x132)](_0x4086f8,_0x52187b);if(_0x46d505)return _0x46d505;let _0x33c6e0=[];if(void 0x0===_0x52187b)_0x33c6e0=this[_0x3d048a(0x10b)];else{const _0x24f3eb=this[_0x3d048a(0x10b)][_0x3d048a(0x141)](({index:_0x5b5522})=>_0x5b5522===_0x52187b);if(!_0x24f3eb)throw new _0x731444(_0x3d048a(0x11e),null,{'aiReply':this,'groupIndex':_0x52187b});_0x33c6e0=[_0x24f3eb];}const _0x286d26=_0x27403f({'editor':this[_0x3d048a(0x121)],'showDiff':_0x4086f8,'changeGroups':_0x33c6e0,'documentContextContent':this[_0x3d048a(0x118)]});return this[_0x3d048a(0x115)](_0x4086f8,_0x286d26),_0x286d26;}[_0x1b4be6(0x132)](_0x558cfd,_0x13fa72){const _0x38911f=_0x1b4be6,_0x4e66e0=_0x558cfd?_0x38911f(0x123):_0x38911f(0x116);if(!this[_0x38911f(0x128)][_0x4e66e0][_0x38911f(0x135)])return null;const _0x4bf3cc=this[_0x38911f(0x128)][_0x4e66e0];if(void 0x0===_0x13fa72)return _0x9a3acc(_0x4bf3cc);{const _0x449a74=_0x4bf3cc[_0x38911f(0x141)](({index:_0x226974})=>_0x226974===_0x13fa72);if(_0x449a74)return[_0x9a3acc(_0x449a74)];}return null;}[_0x1b4be6(0x115)](_0x4813d3,_0x547a31){const _0x3be957=_0x1b4be6,_0x56cfa8=_0x4813d3?_0x3be957(0x123):_0x3be957(0x116);_0x547a31[_0x3be957(0x12f)](_0x5ed741=>{const _0x5b186b=_0x3be957,_0x8ee102=this[_0x5b186b(0x128)][_0x56cfa8],_0x5e138c=_0x8ee102[_0x5b186b(0x141)](({index:_0x5218a5})=>_0x5218a5===_0x5ed741[_0x5b186b(0x130)]);if(_0x5e138c){const _0x59b2bd=_0x8ee102[_0x5b186b(0x14e)](_0x5e138c);_0x8ee102[_0x5b186b(0x146)](_0x59b2bd,0x1,_0x5ed741);}else _0x8ee102[_0x5b186b(0x153)](_0x5ed741);});}[_0x1b4be6(0x12a)](){const _0x2888d3=_0x1b4be6;if(_0x2888d3(0x147)===this[_0x2888d3(0x12c)]){this[_0x2888d3(0x142)]=this[_0x2888d3(0x136)][_0x2888d3(0x124)](this[_0x2888d3(0x140)]);const _0x350e94=this[_0x2888d3(0x10b)];this[_0x2888d3(0x112)]();const _0x2d0b6b=this[_0x2888d3(0x14f)](_0x350e94,this[_0x2888d3(0x10b)]);(_0x2d0b6b[_0x2888d3(0x135)]||this[_0x2888d3(0x13b)])&&(this[_0x2888d3(0x114)](_0x2888d3(0x159),this,_0x2d0b6b),this[_0x2888d3(0x128)][_0x2888d3(0x123)][_0x2888d3(0x135)]=this[_0x2888d3(0x128)][_0x2888d3(0x116)][_0x2888d3(0x135)]=0x0);}else this[_0x2888d3(0x142)]=this[_0x2888d3(0x136)][_0x2888d3(0x137)](this[_0x2888d3(0x140)]),this[_0x2888d3(0x114)](_0x2888d3(0x159),this);}[_0x1b4be6(0x14f)](_0x2a5608,_0x23517d){const _0x261850=_0x1b4be6,_0x58936e=[];for(const _0xc6c3de of _0x23517d){const _0x47ba56=_0x2a5608[_0xc6c3de[_0x261850(0x130)]];_0x47ba56?_0x47ba56[_0x261850(0x11b)][_0x261850(0x135)]!==_0xc6c3de[_0x261850(0x11b)][_0x261850(0x135)]?_0x58936e[_0x261850(0x153)](_0xc6c3de):_0x47ba56[_0x261850(0x11b)][_0x261850(0x12f)]((_0x1b3f34,_0x47d075)=>{const _0x574551=_0x261850,_0x3715f4=_0xc6c3de[_0x574551(0x11b)][_0x47d075];_0x1b3f34['id']!==_0x3715f4['id']&&_0x58936e[_0x574551(0x153)](_0xc6c3de);}):_0x58936e[_0x261850(0x153)](_0xc6c3de);}return _0x58936e;}[_0x1b4be6(0x112)](){const _0x2a68e8=_0x1b4be6,_0x5e5936=new _0x21e6c3('p',{},[new _0x21e6c3(_0x2a68e8(0x133),{'style':_0x2a68e8(0x126)},[new _0x4c08c6(_0x4dea68(this[_0x2a68e8(0x121)][_0x2a68e8(0x145)],_0x2a68e8(0x12d)))])]),_0x5ec559=this[_0x2a68e8(0x15d)][_0x2a68e8(0x125)](this[_0x2a68e8(0x142)],this[_0x2a68e8(0x118)][_0x2a68e8(0x160)](!0x0),{'markUnstableElements':!this[_0x2a68e8(0x13b)],'replaceRemovedWith':_0x5e5936,'cutAfterLastChange':!this[_0x2a68e8(0x13b)]});if(!_0x5ec559[_0x2a68e8(0x138)][_0x2a68e8(0x135)]&&!this[_0x2a68e8(0x13b)])return;this[_0x2a68e8(0x131)]=_0x5ec559[_0x2a68e8(0x142)];let _0x2251a9=[];if(_0x383d9c(_0x54b239=>{const _0x3276b9=_0x2a68e8,_0x395899=_0x517994(_0x54b239,_0x3276b9(0x13c));if(!_0x395899||!_0x3f9a13(_0x395899))return!0x1;const _0x148b18=[_0x54b239,..._0x407a48(_0x54b239)]['at'](-0x2);if(_0x54b239!=_0x148b18){const _0x2b2606=_0x517994(_0x148b18,_0x3276b9(0x13c));_0x3f9a13(_0x2b2606)||(_0x2251a9[_0x3276b9(0x153)]({'node':_0x148b18,'id':_0x2b2606,'type':_0x3276b9(0x127)}),_0x5ec559[_0x3276b9(0x138)][_0x3276b9(0x153)](_0x2b2606));}else _0x5ec559[_0x3276b9(0x138)][_0x3276b9(0x12e)](_0x395899)?_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x127),'id':_0x395899}):_0x5ec559[_0x3276b9(0x15e)][_0x3276b9(0x12e)](_0x395899)?_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x12b),'id':_0x395899,'anchorId':_0x517994(_0x54b239[_0x3276b9(0x14a)],_0x3276b9(0x13c))}):_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x15a),'id':_0x395899});return!0x0;},this[_0x2a68e8(0x131)]),_0x2251a9=_0x2251a9[_0x2a68e8(0x11a)](({node:_0x5ae530})=>[..._0x407a48(_0x5ae530),_0x5ae530][_0x2a68e8(0x117)](_0x393793=>!_0x517994(_0x393793,_0x2a68e8(0x10f)))),0x0==_0x2251a9[_0x2a68e8(0x135)])return;const _0x5e9d5d=[[_0x2251a9[0x0]]];for(let _0xebd775=0x1;_0xebd775<_0x2251a9[_0x2a68e8(0x135)];_0xebd775++){const _0x2cbbc3=_0x5e9d5d[_0x5e9d5d[_0x2a68e8(0x135)]-0x1],_0xa99323=_0x2cbbc3[_0x2cbbc3[_0x2a68e8(0x135)]-0x1];_0x2251a9[_0xebd775][_0x2a68e8(0x10c)][_0x2a68e8(0x14a)]==_0xa99323[_0x2a68e8(0x10c)]&&_0x2a68e8(0x127)!=_0x2251a9[_0xebd775][_0x2a68e8(0x12c)]&&_0x2a68e8(0x127)!=_0xa99323[_0x2a68e8(0x12c)]?_0x2cbbc3[_0x2a68e8(0x153)](_0x2251a9[_0xebd775]):_0x5e9d5d[_0x2a68e8(0x153)]([_0x2251a9[_0xebd775]]);}for(const _0x2fe172 of _0x5e9d5d){const _0xc18c51=_0x2fe172[0x0],_0x27ab2c=_0x2fe172[_0x2fe172[_0x2a68e8(0x135)]-0x1],_0x2963f3=_0x569bde(_0xc18c51[_0x2a68e8(0x10c)][_0x2a68e8(0x14a)]);_0x2963f3&&_0x2fe172[_0x2a68e8(0x155)](_0x2963f3);const _0x4f59ea=_0x569bde(_0x27ab2c[_0x2a68e8(0x10c)][_0x2a68e8(0x122)]);_0x4f59ea&&_0x2fe172[_0x2a68e8(0x153)](_0x4f59ea);}function _0x3f9a13(_0x43aa8a){const _0xaccd69=_0x2a68e8;return _0x5ec559[_0xaccd69(0x138)][_0xaccd69(0x12e)](_0x43aa8a)||_0x5ec559[_0xaccd69(0x15e)][_0xaccd69(0x12e)](_0x43aa8a)||_0x5ec559[_0xaccd69(0x134)][_0xaccd69(0x12e)](_0x43aa8a);}function _0x569bde(_0x10b92a){const _0x2f1c37=_0x2a68e8;if(_0x10b92a&&_0x517994(_0x10b92a,_0x2f1c37(0x13c))&&!_0x517994(_0x10b92a,_0x2f1c37(0x10f))){const _0x417343=_0x517994(_0x10b92a,_0x2f1c37(0x13c));if(!_0x3f9a13(_0x417343))return{'node':_0x10b92a,'type':_0x2f1c37(0x13d),'id':_0x417343};}return null;}this[_0x2a68e8(0x10b)]=_0x5e9d5d[_0x2a68e8(0x11c)]((_0x5e18d5,_0x39936c)=>({'changes':_0x5e18d5,'state':_0x2a68e8(0x10a),'index':_0x39936c}));}}export function isValidReplyType(_0x5c39ef){const _0x22580e=_0x1b4be6;return Object[_0x22580e(0x10e)](AI_REPLY_TYPES)[_0x22580e(0x12e)](_0x5c39ef);}function _0x145d(){const _0x5d23f5=['forEach','index','parsedMergedContent','_getCachedContentParts','span','removedNodeIds','length','aiResponseParser','convertMarkdownToHTML','modifiedNodeIds','12uVNQwy','appendContent','isDone','data-id','context','state','change:content','content','find','parsedContent','stopListening','done','locale','splice','modification-delta','reasoning','17210787OjIUJj','previousSibling','getContentParts','4KCWoQs','text-delta','indexOf','_getDifferentChangeGroups','destroy','web-search','1414mFKLgA','push','233459jGzGcb','unshift','areActionsDisabled','1403772KhGFXM','set','replyContentUpdated','removed','sources','2659168zzdQjX','aiResponseApplier','newNodeIds','replyChangeGroupStateUpdated','cloneNode','source','pending','changeGroups','node','5IMJlhq','values','data-unstable','3972370YlkOpp','16760raYoYP','updateChangeGroups','conversation-title','fire','_setCachedContentParts','withoutDiff','every','documentContextContent','interactionId','filter','changes','map','9rVqCft','ai-reply-get-content-parts-group-not-found','881721iidRmM','setChangeGroupState','editor','nextSibling','withDiff','parseAndNormalizeHTML','merge','color:\x20#808080;\x20font-style:\x20italic','modified','cachedSuggestionContentParts','ai-get-editor-from-context-no-editor','onContentChange','new','type','AI_SUGGESTION_CONTENT_PART_REMOVED','includes'];_0x145d=function(){return _0x5d23f5;};return _0x145d();}export function isIgnoredReplyType(_0x25d17b){const _0xbc3bd=_0x1b4be6;return AI_REPLY_TYPES_IGNORED[_0xbc3bd(0x12e)](_0x25d17b);}export function isReplyTitleType(_0x5f4d5a){return _0x5f4d5a===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x36400f){const _0x2245ab=_0x1b4be6;return _0x2245ab(0x109)===_0x36400f;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x3fc3a8(){[_0x22d73f(0xfb)];[_0x22d73f(0x101)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x22d73f(0x11b)]=new Set();constructor(_0x357c20){const _0x72a493=_0x22d73f;super(),this[_0x72a493(0xfb)]=_0x357c20||_0x23b801;}[_0x22d73f(0x117)](_0x5ea87a,_0x49a25a,_0x13639a){const _0x14acdb=_0x22d73f,_0x22c30d=_0x42356f(_0x5ea87a);if(0x0===_0x49a25a[_0x14acdb(0xe3)][_0x14acdb(0x102)]){const _0x201aa8=[];return _0x510f01(_0x14acdb(0xfe),_0x14acdb(0xfc),_0x22c30d)[_0x14acdb(0x10c)](_0x90eb90=>{const _0x1bb312=_0x14acdb,_0x56a7c7=this[_0x1bb312(0xfb)]();_0x23533b(_0x90eb90,_0x1bb312(0xfe),_0x56a7c7),_0x201aa8[_0x1bb312(0x10a)](_0x56a7c7);}),this[_0x14acdb(0x11f)](_0x22c30d),{'parsedContent':_0x22c30d,'newNodeIds':_0x201aa8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x13639a&&_0x13639a[_0x14acdb(0x104)]&&this[_0x14acdb(0x10b)](_0x22c30d),this[_0x14acdb(0x101)][_0x14acdb(0xfd)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xec)]=[],this[_0x14acdb(0x101)][_0x14acdb(0x118)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xf7)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xeb)]=null,this[_0x14acdb(0x11b)]=new Set(_0x510f01(_0x14acdb(0xfe),null,_0x49a25a)[_0x14acdb(0x11d)](_0x23d946=>_0x2cd3c8(_0x23d946,_0x14acdb(0xfe)))[_0x14acdb(0x108)](_0x15c5db=>!!_0x15c5db));let _0x22f83d=-0x1,_0x1c51cf=!0x1;const _0x24dacb=_0x22c30d[_0x14acdb(0xe3)],_0x2a4a2e=Array[_0x14acdb(0x10e)](_0x24dacb)[_0x14acdb(0x108)](_0x1234a0=>!(0x3===_0x1234a0[_0x14acdb(0x111)]&&''===_0x362d18(_0x1234a0)[_0x14acdb(0x109)]())),_0x8f9211=_0x2a4a2e[_0x14acdb(0x102)];for(let _0x421848=0x0;_0x421848<_0x8f9211;_0x421848++){const _0x3c5b53=_0x2a4a2e[_0x421848],_0x108c53=_0x2a4a2e[_0x421848+0x1];if(this[_0x14acdb(0xf2)](_0x3c5b53)){if(-0x1===_0x22f83d&&(_0x22f83d=_0x421848),this[_0x14acdb(0x115)](_0x3c5b53),!this[_0x14acdb(0xf2)](_0x108c53)){const [_0x1a7bcc,_0x32a08b]=this[_0x14acdb(0xe7)](_0x3c5b53,_0x1c51cf,_0x49a25a);if(_0x1a7bcc){const _0x2af1de=Array[_0x14acdb(0x10e)](_0x2a4a2e)[_0x14acdb(0xf6)](_0x22f83d,_0x421848+0x1);this[_0x14acdb(0x123)](_0x1a7bcc,_0x2af1de,_0x32a08b),_0x22f83d=-0x1;}}}else{if(this[_0x14acdb(0xe8)](_0x3c5b53))_0x1c51cf=!0x0;else{if(this[_0x14acdb(0x124)](_0x3c5b53)){const _0x53b8dd=_0x2cd3c8(_0x3c5b53,_0x14acdb(0xfe));if(_0x53b8dd&&this[_0x14acdb(0x11b)][_0x14acdb(0xff)](_0x53b8dd)){const _0x4f4bfc=_0x1f6615(_0x14acdb(0xfe),_0x53b8dd,_0x49a25a);this[_0x14acdb(0x114)](_0x4f4bfc,_0x3c5b53);}if(this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0xf1)](_0x53b8dd)){const _0x5a83be=this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0x11c)](_0x53b8dd);this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0xe5)](_0x5a83be,0x1);}}else{if(this[_0x14acdb(0xee)](_0x3c5b53)){const _0x2c253d=_0x2cd3c8(_0x3c5b53,_0x14acdb(0xfe));this[_0x14acdb(0x101)][_0x14acdb(0xec)][_0x14acdb(0xf1)](_0x2c253d)||this[_0x14acdb(0xe1)](_0x3c5b53);}}}}}for(const _0xe5879c of this[_0x14acdb(0x101)][_0x14acdb(0x118)]){const _0x22dc31=_0x1f6615(_0x14acdb(0xfe),_0xe5879c,_0x49a25a);if(_0x22dc31){if(_0x13639a&&_0x13639a[_0x14acdb(0xe9)]){this[_0x14acdb(0x101)][_0x14acdb(0xeb)]=_0xe5879c;const _0x159b5d=_0x13639a[_0x14acdb(0xe9)][_0x14acdb(0x121)](!0x0);_0x23533b(_0x159b5d,_0x14acdb(0xfe),_0xe5879c),_0x23533b(_0x159b5d,_0x14acdb(0x11a),_0x14acdb(0x119)),_0xd741a4(_0x22dc31,_0x159b5d);}else _0xc6f657(_0x22dc31);}}if(_0x510f01(_0x14acdb(0x105),null,_0x49a25a)[_0x14acdb(0x10c)](_0x90dca1=>{const _0x456475=_0x14acdb,_0x2a5449=_0x2cd3c8(_0x90dca1,_0x456475(0x105)),_0x217b67=_0x1f6615(_0x456475(0xfe),_0x2a5449,_0x49a25a);_0x217b67&&_0x107f3c(_0x217b67,_0x90dca1);}),_0x510f01(_0x14acdb(0xfe),_0x14acdb(0xfc),_0x49a25a)[_0x14acdb(0x10c)](_0x2784f5=>{const _0x40408f=_0x14acdb,_0x257f11=this[_0x40408f(0x10d)](_0x2784f5);_0x23533b(_0x2784f5,_0x40408f(0xfe),_0x257f11),this[_0x40408f(0x101)][_0x40408f(0xfd)][_0x40408f(0x10a)](_0x257f11);}),this[_0x14acdb(0x11f)](_0x49a25a),_0x13639a&&_0x13639a[_0x14acdb(0x104)]&&this[_0x14acdb(0xea)](_0x49a25a,_0x13639a[_0x14acdb(0x122)]||0x0),_0x13639a&&_0x13639a[_0x14acdb(0xef)]&&this[_0x14acdb(0x101)][_0x14acdb(0xeb)]){let _0x26f407=_0x1f6615(_0x14acdb(0xfe),this[_0x14acdb(0x101)][_0x14acdb(0xeb)],_0x49a25a);for(;_0x26f407;)_0x1c521e(_0x26f407),_0x26f407=_0x26f407[_0x14acdb(0x107)];}return{'parsedContent':_0x49a25a,'newNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0xfd)],'modifiedNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0xec)],'removedNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0x118)]};}[_0x22d73f(0x123)](_0x5acf8c,_0xee530b,_0x5c200e){const _0x3a1798=_0x22d73f;for(const _0x52c800 of _0xee530b){const _0x465ab5=this[_0x3a1798(0x10d)](_0x52c800);_0x23533b(_0x52c800,_0x3a1798(0xfe),_0x465ab5),this[_0x3a1798(0x101)][_0x3a1798(0xfd)][_0x3a1798(0x10a)](_0x465ab5),this[_0x3a1798(0x101)][_0x3a1798(0xeb)]=_0x465ab5;}const _0x53f18a=_0x3a1798(0xfa)===_0x5c200e||_0x3a1798(0x100)===_0x5c200e?_0xee530b[_0x3a1798(0x110)]():_0xee530b;for(const _0xa97bb1 of _0x53f18a)_0x38ebb4(_0x5acf8c,_0xa97bb1,_0x5c200e);}[_0x22d73f(0x114)](_0x5a3020,_0x19fa33){const _0x2413b9=_0x22d73f;if(!_0x5a3020)return;if(_0x47d6f5(_0x5a3020,_0x19fa33))return;const _0x322020=this[_0x2413b9(0x10d)](_0x5a3020);_0x23533b(_0x19fa33,_0x2413b9(0xfe),_0x322020),this[_0x2413b9(0x101)][_0x2413b9(0xec)][_0x2413b9(0x10a)](_0x322020),this[_0x2413b9(0x101)][_0x2413b9(0xeb)]=_0x322020,_0xd741a4(_0x5a3020,_0x19fa33[_0x2413b9(0x121)](!0x0));}[_0x22d73f(0xe7)](_0x164583,_0x4602d1,_0x38602b){const _0x2de34f=_0x22d73f,_0x121fd9=this[_0x2de34f(0xe4)](_0x164583,!0x1);if(_0x121fd9){const _0x3c63f8=this[_0x2de34f(0xf5)](_0x121fd9),_0x644a3d=_0x1f6615(_0x2de34f(0xfe),_0x3c63f8,_0x38602b);if(_0x644a3d)return[_0x644a3d,_0x2de34f(0x100)];this[_0x2de34f(0x101)][_0x2de34f(0xf7)][_0x2de34f(0x10a)](_0x3c63f8);}const _0x284cd4=this[_0x2de34f(0x125)](_0x164583,!0x1);if(_0x284cd4){const _0x1a7311=this[_0x2de34f(0xf5)](_0x284cd4),_0x1a30c2=_0x1f6615(_0x2de34f(0xfe),_0x1a7311,_0x38602b);if(_0x1a30c2)return[_0x1a30c2,_0x2de34f(0x10f)];this[_0x2de34f(0x101)][_0x2de34f(0xf7)][_0x2de34f(0x10a)](_0x1a7311);}return _0x4602d1?_0x164583[_0x2de34f(0x120)]?this[_0x2de34f(0xf8)](_0x164583,_0x38602b):[_0x38602b[_0x2de34f(0xe3)][_0x38602b[_0x2de34f(0xe3)][_0x2de34f(0x102)]-0x1],_0x2de34f(0x100)]:[_0x38602b[_0x2de34f(0xe3)][0x0],_0x2de34f(0x10f)];}[_0x22d73f(0xf8)](_0x1ef20d,_0x4478cd){const _0x143cb1=_0x22d73f,_0x376f29=[],_0x488230=this[_0x143cb1(0xe4)](_0x1ef20d,!0x0);if(_0x488230){const _0x2da409=this[_0x143cb1(0xf5)](_0x488230),_0x492ffc=_0x1f6615(_0x143cb1(0xfe),_0x2da409,_0x4478cd);_0x492ffc&&_0x376f29[_0x143cb1(0x10a)]([_0x492ffc,_0x143cb1(0x100)]);}const _0x343699=this[_0x143cb1(0x125)](_0x1ef20d,!0x0);if(_0x343699){const _0x225b14=this[_0x143cb1(0xf5)](_0x343699),_0x5b9638=_0x1f6615(_0x143cb1(0xfe),_0x225b14,_0x4478cd);_0x5b9638&&_0x376f29[_0x143cb1(0x10a)]([_0x5b9638,_0x143cb1(0x10f)]);}if(_0x376f29[_0x143cb1(0x102)]>0x1)return _0xe647c8(_0x376f29[0x0][0x0])<=_0xe647c8(_0x376f29[0x1][0x0])?_0x376f29[0x0]:_0x376f29[0x1];return 0x1===_0x376f29[_0x143cb1(0x102)]?_0x376f29[0x0]:[_0x4478cd[_0x143cb1(0x112)],_0x143cb1(0x100)];}[_0x22d73f(0x125)](_0x26947b,_0x4687cf){const _0x24b158=_0x22d73f;let _0x5d5da1=_0x26947b[_0x24b158(0x120)],_0x2b1513=null,_0x4c7453=!0x1;for(;_0x5d5da1;){if(_0x79abfe(_0x5d5da1)){if(this[_0x24b158(0xee)](_0x5d5da1)&&(_0x2b1513=_0x5d5da1),this[_0x24b158(0xe8)](_0x5d5da1)&&_0x4687cf&&!_0x4c7453){_0x4c7453=!0x0,_0x5d5da1=_0x5d5da1[_0x24b158(0x120)];continue;}break;}const _0x3c581d=_0x2cd3c8(_0x5d5da1,_0x24b158(0xfe));if(_0x3c581d&&_0x24b158(0xfc)!==_0x3c581d&&this[_0x24b158(0x11b)][_0x24b158(0xff)](_0x3c581d)){_0x2b1513=_0x5d5da1;break;}_0x5d5da1=_0x5d5da1[_0x24b158(0x120)];}return _0x2b1513;}[_0x22d73f(0xe4)](_0x4ae223,_0x5f5783){const _0x23f2fe=_0x22d73f;let _0x5599a4=_0x4ae223[_0x23f2fe(0xed)],_0x4b9cc1=null,_0xd930ae=!0x1;for(;_0x5599a4;){if(_0x79abfe(_0x5599a4)){if(this[_0x23f2fe(0xee)](_0x5599a4)&&(_0x4b9cc1=_0x5599a4),this[_0x23f2fe(0xe8)](_0x5599a4)&&_0x5f5783&&!_0xd930ae){_0xd930ae=!0x0,_0x5599a4=_0x5599a4[_0x23f2fe(0xed)];continue;}break;}const _0xff51ab=_0x2cd3c8(_0x5599a4,_0x23f2fe(0xfe));if(_0xff51ab&&_0x23f2fe(0xfc)!==_0xff51ab&&this[_0x23f2fe(0x11b)][_0x23f2fe(0xff)](_0xff51ab)){_0x4b9cc1=_0x5599a4;break;}_0x5599a4=_0x5599a4[_0x23f2fe(0xed)];}return _0x4b9cc1;}[_0x22d73f(0x115)](_0x4714a0){const _0x1463c3=_0x22d73f;_0x3ad00b(_0x4714a0)&&_0x510f01(_0x1463c3(0xfe),null,_0x4714a0)[_0x1463c3(0x10c)](_0x289fd7=>{const _0x55a539=_0x1463c3;if(this[_0x55a539(0x124)](_0x289fd7)&&!this[_0x55a539(0xf0)](_0x289fd7)){const _0x473a50=_0x2cd3c8(_0x289fd7,_0x55a539(0xfe));_0x23533b(_0x289fd7,_0x55a539(0x105),_0x473a50),_0x23533b(_0x289fd7,_0x55a539(0xfe),null);}});}[_0x22d73f(0xf5)](_0x420293){const _0x17de13=_0x22d73f;if(!_0x420293)return null;if(_0x3ad00b(_0x420293))return _0x2cd3c8(_0x420293,_0x17de13(0xfe));if(_0x79abfe(_0x420293)){const _0x2fb1bb=_0x362d18(_0x420293)[_0x17de13(0xf4)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2fb1bb&&_0x2fb1bb[0x1])return _0x2fb1bb[0x1];}return null;}[_0x22d73f(0xe1)](_0x2d88ba){const _0x21cc41=_0x22d73f;if(_0x79abfe(_0x2d88ba)){const _0x5f3b77=_0x362d18(_0x2d88ba)[_0x21cc41(0xf4)](/removed[\s*-]data-id="([^"]+)"/);_0x5f3b77&&_0x5f3b77[0x1]&&this[_0x21cc41(0x101)][_0x21cc41(0x118)][_0x21cc41(0x10a)](_0x5f3b77[0x1]);}}[_0x22d73f(0x10d)](_0xe66b99){const _0x27d02f=_0x22d73f;return this[_0x27d02f(0x124)](_0xe66b99)?_0x2cd3c8(_0xe66b99,_0x27d02f(0xfe)):this[_0x27d02f(0xfb)]();}[_0x22d73f(0x11f)](_0xe3982a){const _0x529e48=_0x22d73f;_0x555da4(_0xe3982a)[_0x529e48(0x108)](_0x1a0706=>this[_0x529e48(0xee)](_0x1a0706)||this[_0x529e48(0xe8)](_0x1a0706))[_0x529e48(0x10c)](_0x2f23eb=>{_0xc6f657(_0x2f23eb);});}[_0x22d73f(0x10b)](_0x43bbd5){const _0x2bdc47=_0x22d73f,_0x12432b=_0x43bbd5[_0x2bdc47(0xe3)],_0x1b9382=_0x12432b[_0x12432b[_0x2bdc47(0x102)]-0x1];_0x1b9382&&_0x3ad00b(_0x1b9382)&&_0x23533b(_0x1b9382,_0x2bdc47(0x113),_0x2bdc47(0x119));}[_0x22d73f(0xea)](_0x420b93,_0x49d036){const _0x4a3fba=_0x22d73f,_0x5a20a2=_0x1f6615(_0x4a3fba(0x113),_0x4a3fba(0x119),_0x420b93);if(!_0x5a20a2)return;const _0x5e1502=_0x1f8493(_0x5a20a2)[_0x4a3fba(0xf6)](0x0,-0x1),_0x45d72d=_0x5e1502[_0x4a3fba(0x102)];let _0x295055=_0x5a20a2;if(_0x45d72d>_0x49d036){let _0x1ca684=_0x45d72d,_0x78afbb=null;for(;_0x1ca684>_0x49d036&&_0x1ca684>=0x0;)_0x1ca684--,_0x78afbb=_0x5e1502[_0x1ca684];_0x78afbb&&(_0x295055=_0x78afbb,_0x23533b(_0x5a20a2,_0x4a3fba(0x113),null),_0x23533b(_0x78afbb,_0x4a3fba(0x113),_0x4a3fba(0x119)));}else{if(_0x45d72d<_0x49d036){let _0x4c54b9=_0x45d72d,_0x40a603=_0x5a20a2;for(;_0x4c54b9<_0x49d036;){const _0xc3ee1d=_0x40a603[_0x4a3fba(0xe3)][_0x4a3fba(0x108)](_0x2e2e29=>_0x3ad00b(_0x2e2e29));if(0x0===_0xc3ee1d[_0x4a3fba(0x102)])break;_0x4c54b9++,_0x40a603=_0xc3ee1d[_0xc3ee1d[_0x4a3fba(0x102)]-0x1];}_0x40a603&&(_0x295055=_0x40a603,_0x23533b(_0x5a20a2,_0x4a3fba(0x113),null),_0x23533b(_0x40a603,_0x4a3fba(0x113),_0x4a3fba(0x119)));}}let _0x466fb2=_0x295055;for(;_0x466fb2;){for(;_0x466fb2[_0x4a3fba(0x120)];)_0x466fb2=_0x466fb2[_0x4a3fba(0x120)],_0x3ad00b(_0x466fb2)&&_0x23533b(_0x466fb2,_0x4a3fba(0x113),_0x4a3fba(0x119));_0x466fb2=_0x466fb2[_0x4a3fba(0x107)];}}[_0x22d73f(0xf2)](_0x4b5917){const _0x4be301=_0x22d73f;return Boolean(_0x4be301(0xfc)===_0x2cd3c8(_0x4b5917,_0x4be301(0xfe)));}[_0x22d73f(0x124)](_0x563586){const _0x1d34fd=_0x22d73f;return Boolean((_0x2cd3c8(_0x563586,_0x1d34fd(0xfe))||'')[_0x1d34fd(0x102)]>0x0&&_0x1d34fd(0xfc)!==_0x2cd3c8(_0x563586,_0x1d34fd(0xfe)));}[_0x22d73f(0xee)](_0x602f4f){const _0x16ed61=_0x22d73f;return!!_0x602f4f&&Boolean(_0x79abfe(_0x602f4f)&&_0x362d18(_0x602f4f)[_0x16ed61(0xf4)](/removed[\s*-]data-id="[^"]+"/));}[_0x22d73f(0xf0)](_0x177ac0){const _0x4bea32=_0x22d73f;let _0x1195ec=_0x177ac0[_0x4bea32(0x107)];for(;_0x1195ec;){if(_0x2cd3c8(_0x1195ec,_0x4bea32(0x105)))return!0x0;_0x1195ec=_0x1195ec[_0x4bea32(0x107)];}return!0x1;}[_0x22d73f(0xe8)](_0x1a70e3){const _0x39ce2d=_0x22d73f;return Boolean(_0x79abfe(_0x1a70e3)&&_0x362d18(_0x1a70e3)[_0x39ce2d(0xf4)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5d21(_0x2a1d25,_0xfd222d){const _0xef4b9d=_0xef4b();return _0x5d21=function(_0x5d21b0,_0x40c61e){_0x5d21b0=_0x5d21b0-0xe1;let _0x2399cf=_0xef4b9d[_0x5d21b0];return _0x2399cf;},_0x5d21(_0x2a1d25,_0xfd222d);}function _0xef4b(){const _0xa83e32=['map','1766916VOYrPg','_removeSpecialComments','nextSibling','cloneNode','markUnstableElementsDepth','_insertNodes','_isExistingNode','_findNextElementWithDataId','_storeDeletedElementIds','2651428rywDIz','childNodes','_findPrevElementWithDataId','splice','5552190LmxJFo','_findReferenceNode','_isExistingContentComment','replaceRemovedWith','_markUnstableElements','lastTouchedId','modifiedIds','previousSibling','_isDelNode','cutAfterLastChange','_hasWrappedParent','includes','_isNewNode','2801040WTDAon','match','_getNodeDataId','slice','invalidIds','_findFallbackReferenceNode','122152eWUuFG','afterbegin','_generateUid','new-element','newIds','data-id','has','afterend','_touchedNodesState','length','2574180NTkBGC','markUnstableElements','data-wrapped-id','2uMzNzU','parentNode','filter','trim','push','_markLastTagElementUnstable','forEach','_getUid','from','beforebegin','reverse','nodeType','lastChild','data-unstable','_replaceNode','_markWrappedElements','942431AaYrHA','merge','removedIds','true','data-removed','_existingDataIds','indexOf'];_0xef4b=function(){return _0xa83e32;};return _0xef4b();}
|
|
23
|
+
function _0x1cd5(){const _0x319143=['325346zmmLjG','includes','cloneNode','removedIds','_findReferenceNode','reverse','markUnstableElementsDepth','markUnstableElements','_isExistingContentComment','_findFallbackReferenceNode','match','_getNodeDataId','_generateUid','_existingDataIds','_isDelNode','afterend','_replaceNode','_findPrevElementWithDataId','_isNewNode','splice','trim','39lVGPhj','_markLastTagElementUnstable','13880cPmqCo','length','_markUnstableElements','_isExistingNode','push','modifiedIds','nextSibling','9CzmUBi','parentNode','from','childNodes','1839050bHxsVI','_markWrappedElements','907086HZTxkD','previousSibling','afterbegin','newIds','20548UBzrQm','data-removed','_findNextElementWithDataId','replaceRemovedWith','_insertNodes','slice','has','invalidIds','_removeSpecialComments','merge','_hasWrappedParent','data-unstable','342728AIXPDZ','beforebegin','473kUapSG','_touchedNodesState','filter','_storeDeletedElementIds','cutAfterLastChange','data-id','lastTouchedId','map','nodeType','true','_getUid','forEach','data-wrapped-id','lastChild','266IHsIML','1490bycqir','indexOf','new-element'];_0x1cd5=function(){return _0x319143;};return _0x1cd5();}const _0x23b2a7=_0xd60a;(function(_0xbf430,_0x36dae6){const _0x1a2106=_0xd60a,_0x4b9c36=_0xbf430();while(!![]){try{const _0x3e9b82=parseInt(_0x1a2106(0xa1))/0x1*(-parseInt(_0x1a2106(0xaf))/0x2)+parseInt(_0x1a2106(0xc8))/0x3*(-parseInt(_0x1a2106(0xca))/0x4)+parseInt(_0x1a2106(0xd5))/0x5+parseInt(_0x1a2106(0xd7))/0x6+parseInt(_0x1a2106(0xb3))/0x7+-parseInt(_0x1a2106(0x9f))/0x8*(-parseInt(_0x1a2106(0xd1))/0x9)+parseInt(_0x1a2106(0xb0))/0xa*(-parseInt(_0x1a2106(0xdb))/0xb);if(_0x3e9b82===_0x36dae6)break;else _0x4b9c36['push'](_0x4b9c36['shift']());}catch(_0x331877){_0x4b9c36['push'](_0x4b9c36['shift']());}}}(_0x1cd5,0x36307));function _0xd60a(_0x32917f,_0x117d56){const _0x1cd554=_0x1cd5();return _0xd60a=function(_0xd60a83,_0x212319){_0xd60a83=_0xd60a83-0x9b;let _0x539943=_0x1cd554[_0xd60a83];return _0x539943;},_0xd60a(_0x32917f,_0x117d56);}import{ObservableMixin as _0x5904cc,uid as _0x43b7a7}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x167d91,findByAttribute as _0x2228d3,getAttribute as _0x763f7c,isComment as _0x5213e8,isTag as _0x4c8672,insertElement as _0x104e5b,moveElement as _0x3c07c0,removeElement as _0x5e35c3,replaceElement as _0x4d8fac,serialize as _0x2eb762,setAttribute as _0x5973bf,clone as _0xeca4e5,findAllComments as _0x332c21,getParents as _0x53ca22,getNodeNestingLevel as _0x5c81e5,areNodesSame as _0x23cfe4,removeElementsAfter as _0x3a21fe}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5904cc(){[_0x23b2a7(0xbf)];[_0x23b2a7(0xa2)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x23b2a7(0xc0)]=new Set();constructor(_0x3c9cb1){const _0x2ad837=_0x23b2a7;super(),this[_0x2ad837(0xbf)]=_0x3c9cb1||_0x43b7a7;}[_0x23b2a7(0x9c)](_0x5a6ceb,_0x3b6091,_0x29add6){const _0x231824=_0x23b2a7,_0xac5076=_0xeca4e5(_0x5a6ceb);if(0x0===_0x3b6091[_0x231824(0xd4)][_0x231824(0xcb)]){const _0x73e739=[];return _0x167d91(_0x231824(0xa6),_0x231824(0xb2),_0xac5076)[_0x231824(0xac)](_0x40fbd9=>{const _0x3c3d93=_0x231824,_0x33d8bc=this[_0x3c3d93(0xbf)]();_0x5973bf(_0x40fbd9,_0x3c3d93(0xa6),_0x33d8bc),_0x73e739[_0x3c3d93(0xce)](_0x33d8bc);}),this[_0x231824(0x9b)](_0xac5076),{'parsedContent':_0xac5076,'newNodeIds':_0x73e739,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x29add6&&_0x29add6[_0x231824(0xba)]&&this[_0x231824(0xc9)](_0xac5076),this[_0x231824(0xa2)][_0x231824(0xda)]=[],this[_0x231824(0xa2)][_0x231824(0xcf)]=[],this[_0x231824(0xa2)][_0x231824(0xb6)]=[],this[_0x231824(0xa2)][_0x231824(0xe2)]=[],this[_0x231824(0xa2)][_0x231824(0xa7)]=null,this[_0x231824(0xc0)]=new Set(_0x167d91(_0x231824(0xa6),null,_0x3b6091)[_0x231824(0xa8)](_0x2d1c95=>_0x763f7c(_0x2d1c95,_0x231824(0xa6)))[_0x231824(0xa3)](_0x5118e8=>!!_0x5118e8));let _0x45c394=-0x1,_0x31a661=!0x1;const _0x13b0f8=_0xac5076[_0x231824(0xd4)],_0x5d1ce9=Array[_0x231824(0xd3)](_0x13b0f8)[_0x231824(0xa3)](_0x21987c=>!(0x3===_0x21987c[_0x231824(0xa9)]&&''===_0x2eb762(_0x21987c)[_0x231824(0xc7)]())),_0x1640b3=_0x5d1ce9[_0x231824(0xcb)];for(let _0x1d3eb5=0x0;_0x1d3eb5<_0x1640b3;_0x1d3eb5++){const _0x16dcc4=_0x5d1ce9[_0x1d3eb5],_0x3a84aa=_0x5d1ce9[_0x1d3eb5+0x1];if(this[_0x231824(0xc5)](_0x16dcc4)){if(-0x1===_0x45c394&&(_0x45c394=_0x1d3eb5),this[_0x231824(0xd6)](_0x16dcc4),!this[_0x231824(0xc5)](_0x3a84aa)){const [_0x447b96,_0x4b78fb]=this[_0x231824(0xb7)](_0x16dcc4,_0x31a661,_0x3b6091);if(_0x447b96){const _0x222a65=Array[_0x231824(0xd3)](_0x5d1ce9)[_0x231824(0xe0)](_0x45c394,_0x1d3eb5+0x1);this[_0x231824(0xdf)](_0x447b96,_0x222a65,_0x4b78fb),_0x45c394=-0x1;}}}else{if(this[_0x231824(0xbb)](_0x16dcc4))_0x31a661=!0x0;else{if(this[_0x231824(0xcd)](_0x16dcc4)){const _0x226afe=_0x763f7c(_0x16dcc4,_0x231824(0xa6));if(_0x226afe&&this[_0x231824(0xc0)][_0x231824(0xe1)](_0x226afe)){const _0x362e60=_0x2228d3(_0x231824(0xa6),_0x226afe,_0x3b6091);this[_0x231824(0xc3)](_0x362e60,_0x16dcc4);}if(this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xb4)](_0x226afe)){const _0x603bd3=this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xb1)](_0x226afe);this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xc6)](_0x603bd3,0x1);}}else{if(this[_0x231824(0xc1)](_0x16dcc4)){const _0x15ade2=_0x763f7c(_0x16dcc4,_0x231824(0xa6));this[_0x231824(0xa2)][_0x231824(0xcf)][_0x231824(0xb4)](_0x15ade2)||this[_0x231824(0xa4)](_0x16dcc4);}}}}}for(const _0x178c13 of this[_0x231824(0xa2)][_0x231824(0xb6)]){const _0x13a341=_0x2228d3(_0x231824(0xa6),_0x178c13,_0x3b6091);if(_0x13a341){if(_0x29add6&&_0x29add6[_0x231824(0xde)]){this[_0x231824(0xa2)][_0x231824(0xa7)]=_0x178c13;const _0x2fbcea=_0x29add6[_0x231824(0xde)][_0x231824(0xb5)](!0x0);_0x5973bf(_0x2fbcea,_0x231824(0xa6),_0x178c13),_0x5973bf(_0x2fbcea,_0x231824(0xdc),_0x231824(0xaa)),_0x4d8fac(_0x13a341,_0x2fbcea);}else _0x5e35c3(_0x13a341);}}if(_0x167d91(_0x231824(0xad),null,_0x3b6091)[_0x231824(0xac)](_0x11b96=>{const _0x56b2cd=_0x231824,_0x5f018f=_0x763f7c(_0x11b96,_0x56b2cd(0xad)),_0x25e9b0=_0x2228d3(_0x56b2cd(0xa6),_0x5f018f,_0x3b6091);_0x25e9b0&&_0x3c07c0(_0x25e9b0,_0x11b96);}),_0x167d91(_0x231824(0xa6),_0x231824(0xb2),_0x3b6091)[_0x231824(0xac)](_0x201830=>{const _0x2b6f43=_0x231824,_0x4a0de5=this[_0x2b6f43(0xab)](_0x201830);_0x5973bf(_0x201830,_0x2b6f43(0xa6),_0x4a0de5),this[_0x2b6f43(0xa2)][_0x2b6f43(0xda)][_0x2b6f43(0xce)](_0x4a0de5);}),this[_0x231824(0x9b)](_0x3b6091),_0x29add6&&_0x29add6[_0x231824(0xba)]&&this[_0x231824(0xcc)](_0x3b6091,_0x29add6[_0x231824(0xb9)]||0x0),_0x29add6&&_0x29add6[_0x231824(0xa5)]&&this[_0x231824(0xa2)][_0x231824(0xa7)]){let _0x5b352f=_0x2228d3(_0x231824(0xa6),this[_0x231824(0xa2)][_0x231824(0xa7)],_0x3b6091);for(;_0x5b352f;)_0x3a21fe(_0x5b352f),_0x5b352f=_0x5b352f[_0x231824(0xd2)];}return{'parsedContent':_0x3b6091,'newNodeIds':this[_0x231824(0xa2)][_0x231824(0xda)],'modifiedNodeIds':this[_0x231824(0xa2)][_0x231824(0xcf)],'removedNodeIds':this[_0x231824(0xa2)][_0x231824(0xb6)]};}[_0x23b2a7(0xdf)](_0x45a6dd,_0x4cec01,_0x19deb6){const _0x1e5059=_0x23b2a7;for(const _0x1d9031 of _0x4cec01){const _0x17d061=this[_0x1e5059(0xab)](_0x1d9031);_0x5973bf(_0x1d9031,_0x1e5059(0xa6),_0x17d061),this[_0x1e5059(0xa2)][_0x1e5059(0xda)][_0x1e5059(0xce)](_0x17d061),this[_0x1e5059(0xa2)][_0x1e5059(0xa7)]=_0x17d061;}const _0x3f02f1=_0x1e5059(0xd9)===_0x19deb6||_0x1e5059(0xc2)===_0x19deb6?_0x4cec01[_0x1e5059(0xb8)]():_0x4cec01;for(const _0x3c0580 of _0x3f02f1)_0x104e5b(_0x45a6dd,_0x3c0580,_0x19deb6);}[_0x23b2a7(0xc3)](_0x240003,_0x7340c){const _0x3dd180=_0x23b2a7;if(!_0x240003)return;if(_0x23cfe4(_0x240003,_0x7340c))return;const _0x1ecc98=this[_0x3dd180(0xab)](_0x240003);_0x5973bf(_0x7340c,_0x3dd180(0xa6),_0x1ecc98),this[_0x3dd180(0xa2)][_0x3dd180(0xcf)][_0x3dd180(0xce)](_0x1ecc98),this[_0x3dd180(0xa2)][_0x3dd180(0xa7)]=_0x1ecc98,_0x4d8fac(_0x240003,_0x7340c[_0x3dd180(0xb5)](!0x0));}[_0x23b2a7(0xb7)](_0x49b6ad,_0x306974,_0x1f61ba){const _0x39c6c6=_0x23b2a7,_0x37fe97=this[_0x39c6c6(0xc4)](_0x49b6ad,!0x1);if(_0x37fe97){const _0x58cb58=this[_0x39c6c6(0xbe)](_0x37fe97),_0x4a6348=_0x2228d3(_0x39c6c6(0xa6),_0x58cb58,_0x1f61ba);if(_0x4a6348)return[_0x4a6348,_0x39c6c6(0xc2)];this[_0x39c6c6(0xa2)][_0x39c6c6(0xe2)][_0x39c6c6(0xce)](_0x58cb58);}const _0x463f6f=this[_0x39c6c6(0xdd)](_0x49b6ad,!0x1);if(_0x463f6f){const _0x230cd3=this[_0x39c6c6(0xbe)](_0x463f6f),_0x5381d5=_0x2228d3(_0x39c6c6(0xa6),_0x230cd3,_0x1f61ba);if(_0x5381d5)return[_0x5381d5,_0x39c6c6(0xa0)];this[_0x39c6c6(0xa2)][_0x39c6c6(0xe2)][_0x39c6c6(0xce)](_0x230cd3);}return _0x306974?_0x49b6ad[_0x39c6c6(0xd0)]?this[_0x39c6c6(0xbc)](_0x49b6ad,_0x1f61ba):[_0x1f61ba[_0x39c6c6(0xd4)][_0x1f61ba[_0x39c6c6(0xd4)][_0x39c6c6(0xcb)]-0x1],_0x39c6c6(0xc2)]:[_0x1f61ba[_0x39c6c6(0xd4)][0x0],_0x39c6c6(0xa0)];}[_0x23b2a7(0xbc)](_0x321fcf,_0x376d31){const _0x3ca22f=_0x23b2a7,_0x17e18e=[],_0x1b0f5f=this[_0x3ca22f(0xc4)](_0x321fcf,!0x0);if(_0x1b0f5f){const _0x321e9b=this[_0x3ca22f(0xbe)](_0x1b0f5f),_0x4b26b4=_0x2228d3(_0x3ca22f(0xa6),_0x321e9b,_0x376d31);_0x4b26b4&&_0x17e18e[_0x3ca22f(0xce)]([_0x4b26b4,_0x3ca22f(0xc2)]);}const _0x29c84f=this[_0x3ca22f(0xdd)](_0x321fcf,!0x0);if(_0x29c84f){const _0x5f4699=this[_0x3ca22f(0xbe)](_0x29c84f),_0x2a3511=_0x2228d3(_0x3ca22f(0xa6),_0x5f4699,_0x376d31);_0x2a3511&&_0x17e18e[_0x3ca22f(0xce)]([_0x2a3511,_0x3ca22f(0xa0)]);}if(_0x17e18e[_0x3ca22f(0xcb)]>0x1)return _0x5c81e5(_0x17e18e[0x0][0x0])<=_0x5c81e5(_0x17e18e[0x1][0x0])?_0x17e18e[0x0]:_0x17e18e[0x1];return 0x1===_0x17e18e[_0x3ca22f(0xcb)]?_0x17e18e[0x0]:[_0x376d31[_0x3ca22f(0xae)],_0x3ca22f(0xc2)];}[_0x23b2a7(0xdd)](_0x2857c7,_0x415662){const _0x19feb5=_0x23b2a7;let _0xc01d6a=_0x2857c7[_0x19feb5(0xd0)],_0x432a61=null,_0x386ac8=!0x1;for(;_0xc01d6a;){if(_0x5213e8(_0xc01d6a)){if(this[_0x19feb5(0xc1)](_0xc01d6a)&&(_0x432a61=_0xc01d6a),this[_0x19feb5(0xbb)](_0xc01d6a)&&_0x415662&&!_0x386ac8){_0x386ac8=!0x0,_0xc01d6a=_0xc01d6a[_0x19feb5(0xd0)];continue;}break;}const _0x447750=_0x763f7c(_0xc01d6a,_0x19feb5(0xa6));if(_0x447750&&_0x19feb5(0xb2)!==_0x447750&&this[_0x19feb5(0xc0)][_0x19feb5(0xe1)](_0x447750)){_0x432a61=_0xc01d6a;break;}_0xc01d6a=_0xc01d6a[_0x19feb5(0xd0)];}return _0x432a61;}[_0x23b2a7(0xc4)](_0x2a4892,_0x248fcc){const _0x68826c=_0x23b2a7;let _0x3c68c2=_0x2a4892[_0x68826c(0xd8)],_0x282b60=null,_0x4c58ba=!0x1;for(;_0x3c68c2;){if(_0x5213e8(_0x3c68c2)){if(this[_0x68826c(0xc1)](_0x3c68c2)&&(_0x282b60=_0x3c68c2),this[_0x68826c(0xbb)](_0x3c68c2)&&_0x248fcc&&!_0x4c58ba){_0x4c58ba=!0x0,_0x3c68c2=_0x3c68c2[_0x68826c(0xd8)];continue;}break;}const _0x252ca9=_0x763f7c(_0x3c68c2,_0x68826c(0xa6));if(_0x252ca9&&_0x68826c(0xb2)!==_0x252ca9&&this[_0x68826c(0xc0)][_0x68826c(0xe1)](_0x252ca9)){_0x282b60=_0x3c68c2;break;}_0x3c68c2=_0x3c68c2[_0x68826c(0xd8)];}return _0x282b60;}[_0x23b2a7(0xd6)](_0x5c2f60){const _0x47dcd9=_0x23b2a7;_0x4c8672(_0x5c2f60)&&_0x167d91(_0x47dcd9(0xa6),null,_0x5c2f60)[_0x47dcd9(0xac)](_0x524188=>{const _0x453744=_0x47dcd9;if(this[_0x453744(0xcd)](_0x524188)&&!this[_0x453744(0x9d)](_0x524188)){const _0x34c32a=_0x763f7c(_0x524188,_0x453744(0xa6));_0x5973bf(_0x524188,_0x453744(0xad),_0x34c32a),_0x5973bf(_0x524188,_0x453744(0xa6),null);}});}[_0x23b2a7(0xbe)](_0x52464b){const _0x483c73=_0x23b2a7;if(!_0x52464b)return null;if(_0x4c8672(_0x52464b))return _0x763f7c(_0x52464b,_0x483c73(0xa6));if(_0x5213e8(_0x52464b)){const _0x4df64a=_0x2eb762(_0x52464b)[_0x483c73(0xbd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4df64a&&_0x4df64a[0x1])return _0x4df64a[0x1];}return null;}[_0x23b2a7(0xa4)](_0x7f728){const _0x3b2c17=_0x23b2a7;if(_0x5213e8(_0x7f728)){const _0xd0b858=_0x2eb762(_0x7f728)[_0x3b2c17(0xbd)](/removed[\s*-]data-id="([^"]+)"/);_0xd0b858&&_0xd0b858[0x1]&&this[_0x3b2c17(0xa2)][_0x3b2c17(0xb6)][_0x3b2c17(0xce)](_0xd0b858[0x1]);}}[_0x23b2a7(0xab)](_0x140b41){const _0x463372=_0x23b2a7;return this[_0x463372(0xcd)](_0x140b41)?_0x763f7c(_0x140b41,_0x463372(0xa6)):this[_0x463372(0xbf)]();}[_0x23b2a7(0x9b)](_0x4ec918){const _0x236747=_0x23b2a7;_0x332c21(_0x4ec918)[_0x236747(0xa3)](_0x438505=>this[_0x236747(0xc1)](_0x438505)||this[_0x236747(0xbb)](_0x438505))[_0x236747(0xac)](_0x1bfed3=>{_0x5e35c3(_0x1bfed3);});}[_0x23b2a7(0xc9)](_0x9f29ce){const _0x14b02b=_0x23b2a7,_0xc6556=_0x9f29ce[_0x14b02b(0xd4)],_0x12643d=_0xc6556[_0xc6556[_0x14b02b(0xcb)]-0x1];_0x12643d&&_0x4c8672(_0x12643d)&&_0x5973bf(_0x12643d,_0x14b02b(0x9e),_0x14b02b(0xaa));}[_0x23b2a7(0xcc)](_0x9a20b8,_0x4c47cf){const _0x58288e=_0x23b2a7,_0x1bfbcd=_0x2228d3(_0x58288e(0x9e),_0x58288e(0xaa),_0x9a20b8);if(!_0x1bfbcd)return;const _0x2d0f10=_0x53ca22(_0x1bfbcd)[_0x58288e(0xe0)](0x0,-0x1),_0x3dcf5c=_0x2d0f10[_0x58288e(0xcb)];let _0x2de42f=_0x1bfbcd;if(_0x3dcf5c>_0x4c47cf){let _0x408c13=_0x3dcf5c,_0x2c4111=null;for(;_0x408c13>_0x4c47cf&&_0x408c13>=0x0;)_0x408c13--,_0x2c4111=_0x2d0f10[_0x408c13];_0x2c4111&&(_0x2de42f=_0x2c4111,_0x5973bf(_0x1bfbcd,_0x58288e(0x9e),null),_0x5973bf(_0x2c4111,_0x58288e(0x9e),_0x58288e(0xaa)));}else{if(_0x3dcf5c<_0x4c47cf){let _0x157ad4=_0x3dcf5c,_0x168918=_0x1bfbcd;for(;_0x157ad4<_0x4c47cf;){const _0x500866=_0x168918[_0x58288e(0xd4)][_0x58288e(0xa3)](_0x56af42=>_0x4c8672(_0x56af42));if(0x0===_0x500866[_0x58288e(0xcb)])break;_0x157ad4++,_0x168918=_0x500866[_0x500866[_0x58288e(0xcb)]-0x1];}_0x168918&&(_0x2de42f=_0x168918,_0x5973bf(_0x1bfbcd,_0x58288e(0x9e),null),_0x5973bf(_0x168918,_0x58288e(0x9e),_0x58288e(0xaa)));}}let _0x1d714e=_0x2de42f;for(;_0x1d714e;){for(;_0x1d714e[_0x58288e(0xd0)];)_0x1d714e=_0x1d714e[_0x58288e(0xd0)],_0x4c8672(_0x1d714e)&&_0x5973bf(_0x1d714e,_0x58288e(0x9e),_0x58288e(0xaa));_0x1d714e=_0x1d714e[_0x58288e(0xd2)];}}[_0x23b2a7(0xc5)](_0xc15ddf){const _0x4ab81a=_0x23b2a7;return Boolean(_0x4ab81a(0xb2)===_0x763f7c(_0xc15ddf,_0x4ab81a(0xa6)));}[_0x23b2a7(0xcd)](_0x2cf684){const _0x38df7d=_0x23b2a7;return Boolean((_0x763f7c(_0x2cf684,_0x38df7d(0xa6))||'')[_0x38df7d(0xcb)]>0x0&&_0x38df7d(0xb2)!==_0x763f7c(_0x2cf684,_0x38df7d(0xa6)));}[_0x23b2a7(0xc1)](_0x265be4){const _0x3a816c=_0x23b2a7;return!!_0x265be4&&Boolean(_0x5213e8(_0x265be4)&&_0x2eb762(_0x265be4)[_0x3a816c(0xbd)](/removed[\s*-]data-id="[^"]+"/));}[_0x23b2a7(0x9d)](_0xc451e2){const _0x47b016=_0x23b2a7;let _0xc4b5ce=_0xc451e2[_0x47b016(0xd2)];for(;_0xc4b5ce;){if(_0x763f7c(_0xc4b5ce,_0x47b016(0xad)))return!0x0;_0xc4b5ce=_0xc4b5ce[_0x47b016(0xd2)];}return!0x1;}[_0x23b2a7(0xbb)](_0x283bdf){const _0x144749=_0x23b2a7;return Boolean(_0x5213e8(_0x283bdf)&&_0x2eb762(_0x283bdf)[_0x144749(0xbd)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x2f7cb2=_0x2dc7;function _0x464d(){const _0x218f38=['4lxJHXW','233307tLKBBo','318246SxDHHl','</dummy>','_m2html','600621XMGLjQ','<dummy>','convertMarkdownToHTML','replace','599884yQOFPE','2rDDDmi','4761050sdEtPW','_parseHTML','13227700bnQqai','8FJJtXL','parseAndNormalizeHTML','621975XnnfgB','children','parse'];_0x464d=function(){return _0x218f38;};return _0x464d();}(function(_0x3516f9,_0x4ded97){const _0x5a57f7=_0x2dc7,_0x5aebf6=_0x3516f9();while(!![]){try{const _0x30fe40=-parseInt(_0x5a57f7(0x93))/0x1*(-parseInt(_0x5a57f7(0x92))/0x2)+parseInt(_0x5a57f7(0x8e))/0x3+-parseInt(_0x5a57f7(0x89))/0x4*(-parseInt(_0x5a57f7(0x86))/0x5)+parseInt(_0x5a57f7(0x8b))/0x6+-parseInt(_0x5a57f7(0x94))/0x7*(-parseInt(_0x5a57f7(0x84))/0x8)+parseInt(_0x5a57f7(0x8a))/0x9+-parseInt(_0x5a57f7(0x83))/0xa;if(_0x30fe40===_0x4ded97)break;else _0x5aebf6['push'](_0x5aebf6['shift']());}catch(_0x3d64dd){_0x5aebf6['push'](_0x5aebf6['shift']());}}}(_0x464d,0x5817e));import{ObservableMixin as _0x5dcd94}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2bbfb5}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2dc7(_0x49e2f8,_0x5cae3d){const _0x464d9a=_0x464d();return _0x2dc7=function(_0x2dc7b5,_0x2c9c72){_0x2dc7b5=_0x2dc7b5-0x83;let _0x42dab0=_0x464d9a[_0x2dc7b5];return _0x42dab0;},_0x2dc7(_0x49e2f8,_0x5cae3d);}import{parse as _0x352ab8}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5dcd94(){[_0x2f7cb2(0x8d)];constructor(){const _0x2de919=_0x2f7cb2;super(),this[_0x2de919(0x8d)]=new _0x2bbfb5();}[_0x2f7cb2(0x90)](_0x25de3a){const _0xfbb50d=_0x2f7cb2,_0x44e0c9=this[_0xfbb50d(0x8d)][_0xfbb50d(0x88)](_0x25de3a);return this[_0xfbb50d(0x85)](_0x44e0c9);}[_0x2f7cb2(0x85)](_0x197b9b){const _0x2d75c1=_0x2f7cb2;return this[_0x2d75c1(0x95)](_0x197b9b);}[_0x2f7cb2(0x95)](_0x484978){const _0x496bc1=_0x2f7cb2,_0x59ddaa=_0x484978[_0x496bc1(0x91)](/^\t+/gm,'\x20')[_0x496bc1(0x91)](/\n*/g,'')[_0x496bc1(0x91)](/\s+/g,'\x20')[_0x496bc1(0x91)](/<[^>]*?$/g,''),_0x44762b=_0x352ab8(_0x496bc1(0x8f)+_0x59ddaa+_0x496bc1(0x8c));return _0x44762b[_0x496bc1(0x87)]=_0x44762b[_0x496bc1(0x87)][0x0][_0x496bc1(0x87)],_0x44762b;}}
|