@ckeditor/ckeditor5-ai 47.1.0 → 47.2.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/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +573 -203
- package/dist/index.css +627 -204
- package/dist/index.js +5 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +8 -1
- package/lang/translations/af.po +52 -4
- package/lang/translations/ar.po +52 -4
- package/lang/translations/ast.po +52 -4
- package/lang/translations/az.po +52 -4
- package/lang/translations/be.po +52 -4
- package/lang/translations/bg.po +52 -4
- package/lang/translations/bn.po +52 -4
- package/lang/translations/bs.po +52 -4
- package/lang/translations/ca.po +52 -4
- package/lang/translations/cs.po +52 -4
- package/lang/translations/da.po +52 -4
- package/lang/translations/de-ch.po +52 -4
- package/lang/translations/de.po +52 -4
- package/lang/translations/el.po +52 -4
- package/lang/translations/en-au.po +52 -4
- package/lang/translations/en-gb.po +52 -4
- package/lang/translations/en.po +52 -4
- package/lang/translations/eo.po +52 -4
- package/lang/translations/es-co.po +52 -4
- package/lang/translations/es.po +52 -4
- package/lang/translations/et.po +52 -4
- package/lang/translations/eu.po +52 -4
- package/lang/translations/fa.po +52 -4
- package/lang/translations/fi.po +52 -4
- package/lang/translations/fr.po +52 -4
- package/lang/translations/gl.po +52 -4
- package/lang/translations/gu.po +52 -4
- package/lang/translations/he.po +52 -4
- package/lang/translations/hi.po +52 -4
- package/lang/translations/hr.po +52 -4
- package/lang/translations/hu.po +52 -4
- package/lang/translations/hy.po +52 -4
- package/lang/translations/id.po +52 -4
- package/lang/translations/it.po +52 -4
- package/lang/translations/ja.po +52 -4
- package/lang/translations/jv.po +52 -4
- package/lang/translations/kk.po +52 -4
- package/lang/translations/km.po +52 -4
- package/lang/translations/kn.po +52 -4
- package/lang/translations/ko.po +52 -4
- package/lang/translations/ku.po +52 -4
- package/lang/translations/lt.po +52 -4
- package/lang/translations/lv.po +52 -4
- package/lang/translations/ms.po +52 -4
- package/lang/translations/nb.po +52 -4
- package/lang/translations/ne.po +52 -4
- package/lang/translations/nl.po +52 -4
- package/lang/translations/no.po +52 -4
- package/lang/translations/oc.po +52 -4
- package/lang/translations/pl.po +52 -4
- package/lang/translations/pt-br.po +52 -4
- package/lang/translations/pt.po +52 -4
- package/lang/translations/ro.po +52 -4
- package/lang/translations/ru.po +52 -4
- package/lang/translations/si.po +52 -4
- package/lang/translations/sk.po +52 -4
- package/lang/translations/sl.po +52 -4
- package/lang/translations/sq.po +52 -4
- package/lang/translations/sr-latn.po +52 -4
- package/lang/translations/sr.po +52 -4
- package/lang/translations/sv.po +52 -4
- package/lang/translations/th.po +52 -4
- package/lang/translations/ti.po +52 -4
- package/lang/translations/tk.po +52 -4
- package/lang/translations/tr.po +52 -4
- package/lang/translations/tt.po +52 -4
- package/lang/translations/ug.po +52 -4
- package/lang/translations/uk.po +52 -4
- package/lang/translations/ur.po +52 -4
- package/lang/translations/uz.po +52 -4
- package/lang/translations/vi.po +52 -4
- package/lang/translations/zh-cn.po +52 -4
- package/lang/translations/zh.po +52 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +1 -1
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +5 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +1 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +4 -0
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +8 -29
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +2 -2
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.d.ts +4 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +28 -7
- package/src/aicore/aiconnector.d.ts +1 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.d.ts +66 -0
- package/src/aicore/model/aimodels.js +23 -0
- package/src/aicore/model/aireply.d.ts +9 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +12 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
- package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
- package/theme/aichat/aichat-controls.css +11 -27
- package/theme/aichat/aichat.css +2 -3
- package/theme/aichat/aichatfeed.css +1 -27
- package/theme/aichat/aichathistory.css +12 -0
- package/theme/aichat/aisuggestioncontainer.css +5 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
- package/theme/aireviewmode/aireviewmode.css +17 -7
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/theme/aitabs/tabs/tabsview.css +1 -0
- package/theme/common/aibutton.css +27 -0
- package/theme/common/aiheader.css +14 -4
- package/theme/common/aitrackchanges.css +8 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
- package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
- package/src/aireviewmode/model/aireviewmodels.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xed01bc=_0x1f54;(function(_0xd96b7b,_0x2b4eed){const _0x4aa209=_0x1f54,_0x23d22a=_0xd96b7b();while(!![]){try{const _0x11b5c8=parseInt(_0x4aa209(0x13d))/0x1+-parseInt(_0x4aa209(0x10c))/0x2+parseInt(_0x4aa209(0x108))/0x3*(-parseInt(_0x4aa209(0x110))/0x4)+-parseInt(_0x4aa209(0x12e))/0x5*(parseInt(_0x4aa209(0x10a))/0x6)+-parseInt(_0x4aa209(0x12d))/0x7*(parseInt(_0x4aa209(0x125))/0x8)+-parseInt(_0x4aa209(0x105))/0x9+parseInt(_0x4aa209(0x128))/0xa;if(_0x11b5c8===_0x2b4eed)break;else _0x23d22a['push'](_0x23d22a['shift']());}catch(_0x9c2f36){_0x23d22a['push'](_0x23d22a['shift']());}}}(_0x3ae4,0x1e66e));function _0x1f54(_0x3b97d4,_0x2d47cb){const _0x3ae4a3=_0x3ae4();return _0x1f54=function(_0x1f54c2,_0x206c0d){_0x1f54c2=_0x1f54c2-0xf8;let _0x418fbf=_0x3ae4a3[_0x1f54c2];return _0x418fbf;},_0x1f54(_0x3b97d4,_0x2d47cb);}import{CKEditorError as _0x550351,EmitterMixin as _0x30f7f1,logWarning as _0x13f60e,uid as _0x317fc7}from'ckeditor5/src/utils.js';import{AIReply as _0x5e86fb,isIgnoredReplyType as _0x4c1f24,isValidReplyType as _0x11ba46,isReplyTitleType as _0x2e95c3,isSourceType as _0x1e9e92}from'./aireply.js';function _0x3ae4(){const _0x2b9541=['8ULRHJb','push','messageId','length','_isReasoning','done','createReply','reasoningFinished','abort','content','actionCallId','web-search','interactionCreated','getStream','currentReply','conversationTitle','interactionStopped','find','replyContentUpdated','delegate','modification-delta','8SqGdPy','fire','replies','6504140lHRysN','message-metadata','isStopped','getReply','destroy','1613192zKLsWE','220ieVINh','interactionStarted','splice','ai-chat-interaction-error','webSearchStarted','reasoning','source','appendContent','stopListening','isDestroyed','replyChangeGroupStateUpdated','editor','ai-interaction-invalid-event-type','_isWebSearching','currentRequest','138324DngpUG','connector','getDocumentContext','action-metadata','replyCreated','abortController','error','forEach','_finalizeInteraction','webSearchFinished','interactionDestroyed','sendRequest','reasoningStarted','textDelta','event','951309YTBhGJ','interactionFinished','sources','119742bfNqsf','stop','32136ScrYCq','setConversationTitle','25126zJbLme','data','callId','start'];_0x3ae4=function(){return _0x2b9541;};return _0x3ae4();}export const AI_MODEL_EVENT_NAMES=[_0xed01bc(0x11c),_0xed01bc(0x12f),_0xed01bc(0x120),_0xed01bc(0x106),_0xed01bc(0x100),_0xed01bc(0xfa),_0xed01bc(0x122),_0xed01bc(0x138),_0xed01bc(0x10b),_0xed01bc(0x132),_0xed01bc(0xff),_0xed01bc(0x102),_0xed01bc(0x117),_0xed01bc(0xfc)];export class AIInteraction extends _0x30f7f1(){['id'];[_0xed01bc(0x127)]=[];[_0xed01bc(0x11e)];[_0xed01bc(0x112)];[_0xed01bc(0x11a)];[_0xed01bc(0x13c)];[_0xed01bc(0x13e)];[_0xed01bc(0x12a)]=!0x1;[_0xed01bc(0x137)]=!0x1;[_0xed01bc(0x139)];[_0xed01bc(0x114)]=!0x1;[_0xed01bc(0x13b)]=!0x1;constructor({connector:_0x1d8238,editor:_0x363893}){const _0x4aa0a4=_0xed01bc;super(),this['id']=_0x317fc7(),this[_0x4aa0a4(0x13e)]=_0x1d8238,this[_0x4aa0a4(0x12a)]=!0x0,this[_0x4aa0a4(0x139)]=_0x363893;}async[_0xed01bc(0x10f)](){const _0x5af7e9=_0xed01bc;let _0xee96a8;const _0x1f1bde=[];this[_0x5af7e9(0x12a)]=!0x1;try{this[_0x5af7e9(0x13c)]=await this[_0x5af7e9(0x101)](),this[_0x5af7e9(0x126)](_0x5af7e9(0x12f),this);const _0x4defef=await this[_0x5af7e9(0x13c)][_0x5af7e9(0x11d)]();for await(const _0x1f79fc of _0x4defef){if(this[_0x5af7e9(0x12a)])return;if(_0x5af7e9(0xfc)===_0x1f79fc[_0x5af7e9(0x104)])return void this[_0x5af7e9(0x126)](_0x5af7e9(0xfc),{'error':new _0x550351(_0x5af7e9(0x131),this)});if(_0x5af7e9(0x129)!==_0x1f79fc[_0x5af7e9(0x104)]){if(_0x5af7e9(0xf9)!==_0x1f79fc[_0x5af7e9(0x104)]){if(_0x2e95c3(_0x1f79fc[_0x5af7e9(0x104)])&&this[_0x5af7e9(0x10b)](_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x11f)],!0x0),_0x1e9e92(_0x1f79fc[_0x5af7e9(0x104)]))_0x1f1bde[_0x5af7e9(0x111)](_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x134)]);else{if(_0x11ba46(_0x1f79fc[_0x5af7e9(0x104)])){if(_0x1f79fc[_0x5af7e9(0x104)]!==_0xee96a8){if(_0xee96a8=_0x1f79fc[_0x5af7e9(0x104)],_0x5af7e9(0x11b)===_0x1f79fc[_0x5af7e9(0x104)]){this[_0x5af7e9(0x13b)]||(this[_0x5af7e9(0x13b)]=!0x0,this[_0x5af7e9(0x126)](_0x5af7e9(0x132),this));continue;}if(_0x5af7e9(0x133)===_0x1f79fc[_0x5af7e9(0x104)]){this[_0x5af7e9(0x114)]||(this[_0x5af7e9(0x114)]=!0x0,this[_0x5af7e9(0x126)](_0x5af7e9(0x102),this));continue;}this[_0x5af7e9(0x114)]&&(this[_0x5af7e9(0x114)]=!0x1,this[_0x5af7e9(0x126)](_0x5af7e9(0x117),this)),this[_0x5af7e9(0x13b)]&&(this[_0x5af7e9(0x13b)]=!0x1,this[_0x5af7e9(0x126)](_0x5af7e9(0xff),this)),this[_0x5af7e9(0x11e)]&&this[_0x5af7e9(0x11e)][_0x5af7e9(0x115)](),this[_0x5af7e9(0x11e)]=this[_0x5af7e9(0x116)]({'type':_0x1f79fc[_0x5af7e9(0x104)],'interactionId':this['id'],'id':_0x1f79fc[_0x5af7e9(0x10d)]?.['id']}),_0x1f1bde[_0x5af7e9(0x113)]>0x0&&_0x5af7e9(0x124)===_0x1f79fc[_0x5af7e9(0x104)]&&(this[_0x5af7e9(0x11e)][_0x5af7e9(0x107)]=_0x1f1bde[_0x5af7e9(0x130)](0x0));}_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x103)]&&this[_0x5af7e9(0x11e)][_0x5af7e9(0x135)](_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x103)]);}else _0x4c1f24(_0x1f79fc[_0x5af7e9(0x104)])||_0x13f60e(_0x5af7e9(0x13a),{'chunk':_0x1f79fc});}}else this[_0x5af7e9(0x11a)]=_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x10e)];}else this[_0x5af7e9(0x112)]=_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x112)];}}finally{this[_0x5af7e9(0x12a)]||(_0x1f1bde[_0x5af7e9(0x113)]>0x0&&(this[_0x5af7e9(0x11e)][_0x5af7e9(0x107)]=_0x1f1bde[_0x5af7e9(0x130)](0x0)),this[_0x5af7e9(0xfe)](),this[_0x5af7e9(0x126)](_0x5af7e9(0x106),this));}}[_0xed01bc(0x109)](){const _0x62229c=_0xed01bc;this[_0x62229c(0x12a)]||(this[_0x62229c(0xfe)](),this[_0x62229c(0x126)](_0x62229c(0x120),this));}[_0xed01bc(0x12b)](_0x4464be){const _0x11e832=_0xed01bc;return this[_0x11e832(0x127)][_0x11e832(0x121)](_0x45eef5=>_0x45eef5['id']===_0x4464be);}[_0xed01bc(0x12c)](){const _0xdf7387=_0xed01bc;this[_0xdf7387(0x137)]||(this[_0xdf7387(0x109)](),this[_0xdf7387(0x127)][_0xdf7387(0xfd)](_0x4f3d64=>_0x4f3d64[_0xdf7387(0x12c)]()),this[_0xdf7387(0x127)]=[],this[_0xdf7387(0x137)]=!0x0,this[_0xdf7387(0x126)](_0xdf7387(0x100),this),this[_0xdf7387(0x136)]());}[_0xed01bc(0x116)](_0x5975dc){const _0x1effe2=_0xed01bc,_0x56628e=new _0x5e86fb({'editor':this[_0x1effe2(0x139)],'documentContextContent':this[_0x1effe2(0xf8)]()?.[_0x1effe2(0x119)],..._0x5975dc});return this[_0x1effe2(0x127)][_0x1effe2(0x111)](_0x56628e),_0x56628e[_0x1effe2(0x123)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1effe2(0x126)](_0x1effe2(0xfa),_0x56628e),_0x56628e;}[_0xed01bc(0x10b)](_0x11fbbd,_0x48ddad=!0x1){const _0x54419f=_0xed01bc;this[_0x54419f(0x126)](_0x54419f(0x10b),_0x11fbbd,_0x48ddad);}[_0xed01bc(0xfe)](){const _0x258fa2=_0xed01bc;this[_0x258fa2(0x12a)]=!0x0,this[_0x258fa2(0x13c)]&&this[_0x258fa2(0x13c)][_0x258fa2(0xfb)][_0x258fa2(0x118)](),this[_0x258fa2(0x11e)]&&this[_0x258fa2(0x11e)][_0x258fa2(0x115)](),this[_0x258fa2(0x13c)]=this[_0x258fa2(0x11e)]=void 0x0;}}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aicore/model/aimodels
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { type AIConnector, type AIModelData } from '../../aicore/aiconnector.js';
|
|
11
|
+
declare const AIModels_base: {
|
|
12
|
+
new (): import("ckeditor5/src/utils.js").Emitter;
|
|
13
|
+
prototype: import("ckeditor5/src/utils.js").Emitter;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Stores the list of available AI models acquired from the AI connector.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AIModels extends /* #__PURE__ */ AIModels_base {
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
constructor({ connector, availableModels, defaultModelId }: {
|
|
23
|
+
connector: AIConnector;
|
|
24
|
+
availableModels?: string | Array<string>;
|
|
25
|
+
defaultModelId?: string;
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Returns a list of available models.
|
|
29
|
+
*/
|
|
30
|
+
getAll(): Promise<Array<AIModelData>>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a list of available models, which corresponds to {@link #getAll all models} narrowed down
|
|
33
|
+
* by the `availableModels` passed to the {@link #constructor}.
|
|
34
|
+
*
|
|
35
|
+
* **Note:** `availableModels` may include ids, names, and/or providers.
|
|
36
|
+
*/
|
|
37
|
+
getAvailableModels(): Promise<Array<AIModelData>>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns a specific AI model from among {@link #getAll all models} by its id.
|
|
40
|
+
*
|
|
41
|
+
* **Note:** `'auto'` id always matches the `'agent*'` model.
|
|
42
|
+
*/
|
|
43
|
+
getModel(modelId?: string): Promise<AIModelData | null>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns default AI model among the {@link #getAvailableModels available models} accounting for the
|
|
46
|
+
* `defaultModelId` passed to the {@link #constructor}.
|
|
47
|
+
*
|
|
48
|
+
* **Note**: If `'auto'` id was specified as `defaultModelId` in the {@link #constructor}, it will match the `'agent*'` model.
|
|
49
|
+
*/
|
|
50
|
+
getDefault(): Promise<AIModelData | null>;
|
|
51
|
+
/**
|
|
52
|
+
* Checks whether the given model is available among the {@link #getAvailableModels available models}.
|
|
53
|
+
*/
|
|
54
|
+
isAvailable(model: AIModelData): Promise<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Translates an arbitrary list of models using the given {@link module:utils/locale~Locale} instance.
|
|
57
|
+
*
|
|
58
|
+
* **Note:**
|
|
59
|
+
* * Models with `id`s starting with "agent" will be named "Auto" (localized) in the user interface and get a localized description.
|
|
60
|
+
* * The rest of models known to the translation service keep their original name but still get a localized description.
|
|
61
|
+
* * Models unknown to the translation service keep their original name and description.
|
|
62
|
+
*/
|
|
63
|
+
static getLocalized(locale: Locale, models: Array<AIModelData>): Array<LocalizedAIModelData>;
|
|
64
|
+
}
|
|
65
|
+
export type LocalizedAIModelData = AIModelData;
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x2580(){const _0x2d2cf8=['_connector','ai-models-unable-to-retrieve','find','agent','AI_MODEL_NAME_AUTO','21226560HLwuKS','getDefault','getAll','map','auto','getAvailableModels','_modelList','1527194fWTZvv','212450KWWVTU','toLocaleLowerCase','_filterModels','_getModelById','getModel','8871079HzUQKp','ai-chat-default-model-id-unrecognized','length','166650TxKFNt','isAvailable','113814xtLEKY','string','some','push','3myhgQN','AI_MODEL_DESCRIPTION_AUTO','getModels','items','provider','464wBnRqe','getLocalized','startsWith','970680norIDl','11VDVYTM','description','ai-chat-model-id-unrecognized','toUpperCase','_availableModels','6bMHIrx','_defaultModelId','AI_MODEL_DESCRIPTION_','name','list'];_0x2580=function(){return _0x2d2cf8;};return _0x2580();}const _0xc22ea4=_0xe9a9;(function(_0x2c9132,_0x1a84dd){const _0x4bba90=_0xe9a9,_0x4def4f=_0x2c9132();while(!![]){try{const _0xf4720c=-parseInt(_0x4bba90(0xba))/0x1+-parseInt(_0x4bba90(0xb9))/0x2*(-parseInt(_0x4bba90(0x9a))/0x3)+parseInt(_0x4bba90(0xa2))/0x4+parseInt(_0x4bba90(0x94))/0x5+parseInt(_0x4bba90(0xa8))/0x6*(-parseInt(_0x4bba90(0xbf))/0x7)+-parseInt(_0x4bba90(0x9f))/0x8*(parseInt(_0x4bba90(0x96))/0x9)+-parseInt(_0x4bba90(0xb2))/0xa*(-parseInt(_0x4bba90(0xa3))/0xb);if(_0xf4720c===_0x1a84dd)break;else _0x4def4f['push'](_0x4def4f['shift']());}catch(_0x4c49bd){_0x4def4f['push'](_0x4def4f['shift']());}}}(_0x2580,0xe7b2e));import{CKEditorError as _0x3d81b0,EmitterMixin as _0x5cf326,logWarning as _0x1104a1}from'ckeditor5/src/utils.js';function _0xe9a9(_0x5968de,_0x2c4c56){const _0x258006=_0x2580();return _0xe9a9=function(_0xe9a931,_0x5f277b){_0xe9a931=_0xe9a931-0x94;let _0x58c286=_0x258006[_0xe9a931];return _0x58c286;},_0xe9a9(_0x5968de,_0x2c4c56);}import{getTranslation as _0x17a813}from'../utils/common-translations.js';export class AIModels extends _0x5cf326(){[_0xc22ea4(0xad)];[_0xc22ea4(0xa7)];[_0xc22ea4(0xa9)];[_0xc22ea4(0xb8)]=[];constructor({connector:_0x49937b,availableModels:_0x3bf030,defaultModelId:_0x3c731c}){const _0x122d8b=_0xc22ea4;super(),this[_0x122d8b(0xad)]=_0x49937b,this[_0x122d8b(0xa7)]=_0x3bf030,this[_0x122d8b(0xa9)]=_0x3c731c;}async[_0xc22ea4(0xb4)](){const _0x7f99e5=_0xc22ea4;if(!this[_0x7f99e5(0xb8)][_0x7f99e5(0xc1)])try{const _0x5e8a9b=this[_0x7f99e5(0xad)][_0x7f99e5(0x9c)](),_0x5c4fe5=await _0x5e8a9b[_0x7f99e5(0xac)]();this[_0x7f99e5(0xb8)]=_0x5c4fe5[_0x7f99e5(0x9d)];}catch(_0x1105e4){throw new _0x3d81b0(_0x7f99e5(0xae),null,{'error':_0x1105e4});}return[...this[_0x7f99e5(0xb8)]];}async[_0xc22ea4(0xb7)](){const _0x55a207=_0xc22ea4,_0x1b11e8=await this[_0x55a207(0xb4)]();return this[_0x55a207(0xbc)](_0x1b11e8,this[_0x55a207(0xa7)]);}async[_0xc22ea4(0xbe)](_0x241db0){const _0x5053f1=_0xc22ea4,_0x5d0a85=await this[_0x5053f1(0xb4)]();if(!_0x5d0a85[_0x5053f1(0xc1)])return null;if(_0x241db0){const _0x364744=this[_0x5053f1(0xbd)](_0x5d0a85,_0x241db0);if(_0x364744)return _0x364744;_0x1104a1(_0x5053f1(0xa5),{'modelId':_0x241db0,'fallBackModelId':this[_0x5053f1(0xa9)]});}return this[_0x5053f1(0xb3)]();}async[_0xc22ea4(0xb3)](){const _0x44443d=_0xc22ea4,_0x2f602f=await this[_0x44443d(0xb7)]();if(!_0x2f602f[_0x44443d(0xc1)])return null;if(this[_0x44443d(0xa9)]){const _0x3b69d6=this[_0x44443d(0xbd)](_0x2f602f,this[_0x44443d(0xa9)]);if(_0x3b69d6)return _0x3b69d6;_0x1104a1(_0x44443d(0xc0),{'defaultModelId':this[_0x44443d(0xa9)],'fallBackModelId':_0x2f602f[0x0]['id']});}return _0x2f602f[0x0];}async[_0xc22ea4(0x95)](_0x15f513){const _0x4068c9=_0xc22ea4;return(await this[_0x4068c9(0xb7)]())[_0x4068c9(0x98)](_0x10f9bb=>_0x10f9bb[_0x4068c9(0xab)]===_0x15f513[_0x4068c9(0xab)]&&_0x10f9bb[_0x4068c9(0x9e)]===_0x15f513[_0x4068c9(0x9e)]);}[_0xc22ea4(0xbc)](_0x42a9ad,_0x14e4ba){const _0x51f12f=_0xc22ea4;let _0x165bb6;if(_0x14e4ba){_0x165bb6=[];const _0x2cca35=_0x51f12f(0x97)==typeof _0x14e4ba?[_0x14e4ba[_0x51f12f(0xbb)]()]:_0x14e4ba[_0x51f12f(0xb5)](_0x21519c=>_0x21519c[_0x51f12f(0xbb)]());for(const _0x2f93c4 of _0x2cca35)for(const _0x453557 of _0x42a9ad)(_0x453557['id'][_0x51f12f(0xbb)]()===_0x2f93c4||_0x453557[_0x51f12f(0xab)][_0x51f12f(0xbb)]()===_0x2f93c4||Me(_0x453557)&&_0x51f12f(0xb6)===_0x2f93c4||_0x453557[_0x51f12f(0x9e)][_0x51f12f(0xbb)]()===_0x2f93c4||_0x453557['id'][_0x51f12f(0xbb)]()[_0x51f12f(0xa1)](_0x2f93c4))&&_0x165bb6[_0x51f12f(0x99)](_0x453557);}else _0x165bb6=_0x42a9ad;return _0x165bb6;}[_0xc22ea4(0xbd)](_0x283560,_0x20d611){const _0x315db8=_0xc22ea4;return _0x283560[_0x315db8(0xaf)](_0x42bfed=>Me(_0x42bfed)&&_0x315db8(0xb6)===_0x20d611?_0x42bfed:_0x42bfed['id']===_0x20d611)||null;}static[_0xc22ea4(0xa0)](_0xfc92c1,_0x364cf8){const _0x48ba1c=_0xc22ea4;return _0x364cf8[_0x48ba1c(0xb5)](_0x260a58=>{const _0x1b3121=_0x48ba1c;if(Me(_0x260a58))_0x260a58[_0x1b3121(0xab)]=_0x17a813(_0xfc92c1,_0x1b3121(0xb1)),_0x260a58[_0x1b3121(0xa4)]=_0x17a813(_0xfc92c1,_0x1b3121(0x9b));else _0x17a813(_0xfc92c1,_0x1b3121(0xaa)+_0x260a58['id'][_0x1b3121(0xa6)]())[_0x1b3121(0xa1)](_0x1b3121(0xaa))||(_0x260a58[_0x1b3121(0xa4)]=_0x17a813(_0xfc92c1,_0x1b3121(0xaa)+_0x260a58['id'][_0x1b3121(0xa6)]()));return _0x260a58;});}}function Me(_0x18cdd1){const _0xb52658=_0xc22ea4;return _0x18cdd1['id'][_0xb52658(0xa1)](_0xb52658(0xb0));}
|
|
@@ -79,7 +79,7 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
|
|
|
79
79
|
/**
|
|
80
80
|
* @inheritDoc
|
|
81
81
|
*/
|
|
82
|
-
constructor({ type, content, isDone, interactionId, areActionsDisabled, documentContextContent, editor }: {
|
|
82
|
+
constructor({ type, content, isDone, interactionId, areActionsDisabled, documentContextContent, editor, id }: {
|
|
83
83
|
type: AIReplyType;
|
|
84
84
|
interactionId: string;
|
|
85
85
|
areActionsDisabled?: boolean;
|
|
@@ -87,6 +87,7 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
|
|
|
87
87
|
isDone?: boolean;
|
|
88
88
|
documentContextContent?: string;
|
|
89
89
|
editor?: Editor;
|
|
90
|
+
id?: string;
|
|
90
91
|
});
|
|
91
92
|
/**
|
|
92
93
|
* Appends new content to the reply.
|
|
@@ -110,6 +111,13 @@ export declare class AIReply extends /* #__PURE__ */ AIReply_base {
|
|
|
110
111
|
* Fires event.
|
|
111
112
|
*/
|
|
112
113
|
setChangeGroupState(index: number, state: AIReplyChangeGroupState): void;
|
|
114
|
+
/**
|
|
115
|
+
* Returns the content parts of the reply that correspond to {@link #changeGroups}.
|
|
116
|
+
*/
|
|
117
|
+
getContentParts({ showDiff, groupIndex }: {
|
|
118
|
+
showDiff: boolean;
|
|
119
|
+
groupIndex?: number;
|
|
120
|
+
}): Array<AISuggestionContentPartDefinition>;
|
|
113
121
|
}
|
|
114
122
|
/**
|
|
115
123
|
* Validates if the given reply type (SSE type) is a valid reply type.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e8312=_0xb32d;(function(_0x568367,_0x523757){const _0x57cc26=_0xb32d,_0x2332a6=_0x568367();while(!![]){try{const _0x4503f2=-parseInt(_0x57cc26(0x1bc))/0x1*(parseInt(_0x57cc26(0x1db))/0x2)+parseInt(_0x57cc26(0x1de))/0x3*(parseInt(_0x57cc26(0x19d))/0x4)+-parseInt(_0x57cc26(0x1a5))/0x5+-parseInt(_0x57cc26(0x1b3))/0x6+-parseInt(_0x57cc26(0x1a2))/0x7+parseInt(_0x57cc26(0x1da))/0x8+parseInt(_0x57cc26(0x1c8))/0x9;if(_0x4503f2===_0x523757)break;else _0x2332a6['push'](_0x2332a6['shift']());}catch(_0x5a26b9){_0x2332a6['push'](_0x2332a6['shift']());}}}(_0x57a5,0xbcb02));import{ObservableMixin as _0xe18198,uid as _0x141224}from'ckeditor5/src/utils.js';function _0xb32d(_0x4f544a,_0x58e8d4){const _0x57a573=_0x57a5();return _0xb32d=function(_0xb32de1,_0x26728a){_0xb32de1=_0xb32de1-0x198;let _0x33b37f=_0x57a573[_0xb32de1];return _0x33b37f;},_0xb32d(_0x4f544a,_0x58e8d4);}import{Element as _0x3bc5af,findAll as _0x3eae01,getAttribute as _0x230838,getParents as _0x2ca6bd,Document as _0x259dfa,parse as _0x36d8c9,Text as _0x15ef74}from'../utils/htmlparser.js';import{AIResponseParser as _0x58c20c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34cfdb}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x4aba17}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x5e8312(0x198),_0x5e8312(0x1c1),_0x5e8312(0x1a4),_0x5e8312(0x1e1)];export const AI_REPLY_TYPES_IGNORED=[_0x5e8312(0x19f)];export const AI_REPLY_TITLE_TYPE=_0x5e8312(0x19f);export class AIReply extends _0xe18198(){['id'];[_0x5e8312(0x1cc)];[_0x5e8312(0x1c0)];[_0x5e8312(0x1d8)]=[];[_0x5e8312(0x1c4)]=new _0x259dfa([]);[_0x5e8312(0x1a7)]=new _0x259dfa([]);[_0x5e8312(0x19b)]=[];[_0x5e8312(0x1ab)]=!0x1;[_0x5e8312(0x1c7)];[_0x5e8312(0x1ae)];[_0x5e8312(0x1cb)];[_0x5e8312(0x1b5)];constructor({type:_0x27a0ca,content:_0x551f9e='',isDone:_0x1ee3a1=!0x1,interactionId:_0x26006e,areActionsDisabled:_0x38fd10,documentContextContent:_0x19557e,editor:_0x50d8c2}){const _0xeef2bb=_0x5e8312;super(),this['id']=_0x141224(),this[_0xeef2bb(0x1cc)]=_0x26006e,this[_0xeef2bb(0x1c0)]=_0x27a0ca,this[_0xeef2bb(0x1ab)]=!!_0x38fd10,this[_0xeef2bb(0x1b5)]=_0x50d8c2,this[_0xeef2bb(0x1ae)]=new _0x58c20c(),this[_0xeef2bb(0x1cb)]=new _0x34cfdb(),this[_0xeef2bb(0x1c7)]=_0x36d8c9(_0x19557e||''),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1b9),_0x1ee3a1),this['on'](_0xeef2bb(0x1d7),()=>{const _0x19eebc=_0xeef2bb;this[_0x19eebc(0x199)]();}),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1a6),_0x551f9e);}[_0x5e8312(0x1d6)](_0x4344fd){const _0x137371=_0x5e8312;this[_0x137371(0x1c9)](_0x137371(0x1a6),this[_0x137371(0x1a6)]+_0x4344fd);}[_0x5e8312(0x1a0)](){const _0x387352=_0x5e8312;this[_0x387352(0x1b9)]||(this[_0x387352(0x1c9)](_0x387352(0x1b9),!0x0),this[_0x387352(0x199)]());}[_0x5e8312(0x1d4)](){const _0x46df0d=_0x5e8312;this[_0x46df0d(0x1a8)]();}[_0x5e8312(0x1ad)](_0x5a8651,_0x2552e3){const _0x2df9bb=_0x5e8312;this[_0x2df9bb(0x19b)][_0x5a8651][_0x2df9bb(0x1b7)]=_0x2552e3,this[_0x2df9bb(0x1b6)](_0x2df9bb(0x1dd),{'reply':this,'index':_0x5a8651,'state':_0x2552e3});}[_0x5e8312(0x199)](){const _0x329d26=_0x5e8312;if(_0x329d26(0x198)===this[_0x329d26(0x1c0)]){this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1cf)](this[_0x329d26(0x1a6)]);const _0x322428=this[_0x329d26(0x19b)];this[_0x329d26(0x1bd)]();const _0x511d74=this[_0x329d26(0x1ac)](_0x322428,this[_0x329d26(0x19b)]);(_0x511d74[_0x329d26(0x1df)]||this[_0x329d26(0x1b9)])&&this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this,_0x511d74);}else this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1ba)](this[_0x329d26(0x1a6)]),this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this);}[_0x5e8312(0x1ac)](_0x48a48a,_0x4147d8){const _0x45df0f=_0x5e8312,_0xe2f9a1=[];for(const _0x46a7a3 of _0x4147d8){const _0x4a5c55=_0x48a48a[_0x46a7a3[_0x45df0f(0x1c6)]];_0x4a5c55?_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]!==_0x46a7a3[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]?_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3):_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1d3)]((_0x4c6f7f,_0x190263)=>{const _0x3c8bd4=_0x45df0f,_0x540db6=_0x46a7a3[_0x3c8bd4(0x1cd)][_0x190263];_0x4c6f7f['id']!==_0x540db6['id']&&_0xe2f9a1[_0x3c8bd4(0x1b8)](_0x46a7a3);}):_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3);}return _0xe2f9a1;}[_0x5e8312(0x1bd)](){const _0x5836cd=_0x5e8312,_0x6d197e=new _0x3bc5af('p',{},[new _0x3bc5af(_0x5836cd(0x1c3),{'style':_0x5836cd(0x19c)},[new _0x15ef74(_0x4aba17(this[_0x5836cd(0x1b5)][_0x5836cd(0x1ca)],_0x5836cd(0x1be)))])]),_0x5cc022=this[_0x5836cd(0x1cb)][_0x5836cd(0x1bf)](this[_0x5836cd(0x1c4)],this[_0x5836cd(0x1c7)][_0x5836cd(0x1d5)](!0x0),{'markUnstableElements':!this[_0x5836cd(0x1b9)],'replaceRemovedWith':_0x6d197e,'cutAfterLastChange':!this[_0x5836cd(0x1b9)]});if(!_0x5cc022[_0x5836cd(0x1ce)][_0x5836cd(0x1df)]&&!this[_0x5836cd(0x1b9)])return;this[_0x5836cd(0x1a7)]=_0x5cc022[_0x5836cd(0x1c4)];let _0x237157=[];if(_0x3eae01(_0x1e68c0=>{const _0x20b06f=_0x5836cd,_0x5ddbdc=_0x230838(_0x1e68c0,_0x20b06f(0x1a1));if(!_0x5ddbdc||!_0x2c5381(_0x5ddbdc))return!0x1;const _0x14d4c6=[_0x1e68c0,..._0x2ca6bd(_0x1e68c0)]['at'](-0x2);if(_0x1e68c0!=_0x14d4c6){const _0x238533=_0x230838(_0x14d4c6,_0x20b06f(0x1a1));_0x2c5381(_0x238533)||(_0x237157[_0x20b06f(0x1b8)]({'node':_0x14d4c6,'id':_0x238533,'type':_0x20b06f(0x19a)}),_0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x1b8)](_0x238533));}else _0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x19a),'id':_0x5ddbdc}):_0x5cc022[_0x20b06f(0x1a9)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1b4),'id':_0x5ddbdc,'anchorId':_0x230838(_0x1e68c0[_0x20b06f(0x1d2)],_0x20b06f(0x1a1))}):_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1c5),'id':_0x5ddbdc});return!0x0;},this[_0x5836cd(0x1a7)]),_0x237157=_0x237157[_0x5836cd(0x1d9)](({node:_0x1339a6})=>[..._0x2ca6bd(_0x1339a6),_0x1339a6][_0x5836cd(0x1b0)](_0x498f10=>!_0x230838(_0x498f10,_0x5836cd(0x1b1)))),0x0==_0x237157[_0x5836cd(0x1df)])return;const _0x46010e=[[_0x237157[0x0]]];for(let _0x3d602f=0x1;_0x3d602f<_0x237157[_0x5836cd(0x1df)];_0x3d602f++){const _0x3c6646=_0x46010e[_0x46010e[_0x5836cd(0x1df)]-0x1],_0x195caa=_0x3c6646[_0x3c6646[_0x5836cd(0x1df)]-0x1];_0x237157[_0x3d602f][_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]==_0x195caa[_0x5836cd(0x1c2)]&&_0x5836cd(0x19a)!=_0x237157[_0x3d602f][_0x5836cd(0x1c0)]&&_0x5836cd(0x19a)!=_0x195caa[_0x5836cd(0x1c0)]?_0x3c6646[_0x5836cd(0x1b8)](_0x237157[_0x3d602f]):_0x46010e[_0x5836cd(0x1b8)]([_0x237157[_0x3d602f]]);}for(const _0x945e16 of _0x46010e){const _0x201bcf=_0x945e16[0x0],_0x970878=_0x945e16[_0x945e16[_0x5836cd(0x1df)]-0x1],_0x4e14ea=_0x273d3c(_0x201bcf[_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]);_0x4e14ea&&_0x945e16[_0x5836cd(0x1af)](_0x4e14ea);const _0x4a4ae9=_0x273d3c(_0x970878[_0x5836cd(0x1c2)][_0x5836cd(0x1d1)]);_0x4a4ae9&&_0x945e16[_0x5836cd(0x1b8)](_0x4a4ae9);}function _0x2c5381(_0x22f9e2){const _0x581f19=_0x5836cd;return _0x5cc022[_0x581f19(0x1ce)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1a9)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1bb)][_0x581f19(0x19e)](_0x22f9e2);}function _0x273d3c(_0x1aaba9){const _0xe15e7a=_0x5836cd;if(_0x1aaba9&&_0x230838(_0x1aaba9,_0xe15e7a(0x1a1))&&!_0x230838(_0x1aaba9,_0xe15e7a(0x1b1))){const _0x435247=_0x230838(_0x1aaba9,_0xe15e7a(0x1a1));if(!_0x2c5381(_0x435247))return{'node':_0x1aaba9,'type':_0xe15e7a(0x1a3),'id':_0x435247};}return null;}this[_0x5836cd(0x19b)]=_0x46010e[_0x5836cd(0x1d0)]((_0x9f821d,_0x5b2ce0)=>({'changes':_0x9f821d,'state':_0x5836cd(0x1aa),'index':_0x5b2ce0}));}}export function isValidReplyType(_0xdf695e){const _0x2c8f0e=_0x5e8312;return Object[_0x2c8f0e(0x1e0)](AI_REPLY_TYPES)[_0x2c8f0e(0x19e)](_0xdf695e);}function _0x57a5(){const _0x1a93b2=['isDone','convertMarkdownToHTML','removedNodeIds','271zxNvUH','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','type','text-delta','node','span','parsedContent','removed','index','documentContextContent','22208634owNdwy','set','locale','aiResponseApplier','interactionId','changes','modifiedNodeIds','parseAndNormalizeHTML','map','nextSibling','previousSibling','forEach','destroy','cloneNode','appendContent','change:content','sources','filter','10743064iIECIz','4966PKfaIN','replyContentUpdated','replyChangeGroupStateUpdated','45VwkMKR','length','values','reasoning','modification-delta','onContentChange','modified','changeGroups','color:\x20#808080;\x20font-style:\x20italic','31468xpEcuU','includes','conversation-title','done','data-id','4541719LLRcdv','context','web-search','2271535oCHPDm','content','parsedMergedContent','stopListening','newNodeIds','pending','areActionsDisabled','_getDifferentChangeGroups','setChangeGroupState','aiResponseParser','unshift','every','data-unstable','source','8277786tretct','new','editor','fire','state','push'];_0x57a5=function(){return _0x1a93b2;};return _0x57a5();}export function isIgnoredReplyType(_0x2f11aa){const _0x2f9ebc=_0x5e8312;return AI_REPLY_TYPES_IGNORED[_0x2f9ebc(0x19e)](_0x2f11aa);}export function isReplyTitleType(_0x55fc5c){return _0x55fc5c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x51b46c){const _0x11300f=_0x5e8312;return _0x11300f(0x1b2)===_0x51b46c;}
|
|
23
|
+
const _0x526870=_0x14e2;(function(_0x43c11f,_0x40b431){const _0xff0fd1=_0x14e2,_0x4740c6=_0x43c11f();while(!![]){try{const _0x1e94a9=parseInt(_0xff0fd1(0x100))/0x1*(-parseInt(_0xff0fd1(0xd5))/0x2)+-parseInt(_0xff0fd1(0xc1))/0x3+parseInt(_0xff0fd1(0xdc))/0x4*(parseInt(_0xff0fd1(0xe2))/0x5)+parseInt(_0xff0fd1(0xf7))/0x6*(-parseInt(_0xff0fd1(0xb4))/0x7)+-parseInt(_0xff0fd1(0x102))/0x8*(parseInt(_0xff0fd1(0xd3))/0x9)+-parseInt(_0xff0fd1(0xf8))/0xa*(-parseInt(_0xff0fd1(0xaf))/0xb)+parseInt(_0xff0fd1(0xc4))/0xc;if(_0x1e94a9===_0x40b431)break;else _0x4740c6['push'](_0x4740c6['shift']());}catch(_0x21f714){_0x4740c6['push'](_0x4740c6['shift']());}}}(_0x13bb,0xd9d18));import{CKEditorError as _0x4700f7,ObservableMixin as _0x40732b,uid as _0x4354d2}from'ckeditor5/src/utils.js';import{Element as _0x233040,findAll as _0x2bfd78,getAttribute as _0x16491e,getParents as _0x191d4b,Document as _0x53ffc7,parse as _0x434920,Text as _0x39c950}from'../utils/htmlparser.js';import{AIResponseParser as _0x552f8b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2a0dd3}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x35dde6}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4c0704}from'../utils/common-translations.js';function _0x14e2(_0x55dddf,_0x2086e7){const _0x13bbf5=_0x13bb();return _0x14e2=function(_0x14e23c,_0xe1c7aa){_0x14e23c=_0x14e23c-0xad;let _0x18345c=_0x13bbf5[_0x14e23c];return _0x18345c;},_0x14e2(_0x55dddf,_0x2086e7);}import{cloneDeep as _0x1ca221}from'es-toolkit';function _0x13bb(){const _0x1126aa=['indexOf','modification-delta','forEach','2647083iEJoyJ','values','parsedContent','35348916qNqtBU','source','parseAndNormalizeHTML','previousSibling','done','destroy','_getDifferentChangeGroups','nextSibling','_getCachedContentParts','appendContent','cloneNode','data-id','pending','ai-get-editor-from-context-no-editor','convertMarkdownToHTML','27IPuugo','web-search','8986MGVLaz','updateChangeGroups','modifiedNodeIds','aiResponseParser','_setCachedContentParts','onContentChange','changes','3223084KYXeHU','length','areActionsDisabled','replyContentUpdated','withDiff','unshift','5MSCXkh','documentContextContent','find','newNodeIds','interactionId','merge','includes','conversation-title','data-unstable','map','cachedSuggestionContentParts','push','replyChangeGroupStateUpdated','removedNodeIds','node','fire','aiResponseApplier','every','parsedMergedContent','index','change:content','162ySVjLU','430ZxPwSa','isDone','context','setChangeGroupState','sources','filter','withoutDiff','set','167zezUEz','state','574488vJNIaE','type','text-delta','locale','splice','86482pCEdZR','span','new','stopListening','changeGroups','349811cpIIVx','reasoning','modified','content','removed','ai-reply-get-content-parts-group-not-found','AI_SUGGESTION_CONTENT_PART_REMOVED','getContentParts','editor','color:\x20#808080;\x20font-style:\x20italic'];_0x13bb=function(){return _0x1126aa;};return _0x13bb();}export const AI_REPLY_TYPES=[_0x526870(0xbf),_0x526870(0x104),_0x526870(0xd4),_0x526870(0xb5)];export const AI_REPLY_TYPES_IGNORED=[_0x526870(0xe9)];export const AI_REPLY_TITLE_TYPE=_0x526870(0xe9);export class AIReply extends _0x40732b(){['id'];[_0x526870(0xe6)];[_0x526870(0x103)];[_0x526870(0xfc)]=[];[_0x526870(0xc3)]=new _0x53ffc7([]);[_0x526870(0xf4)]=new _0x53ffc7([]);[_0x526870(0xb3)]=[];[_0x526870(0xde)]=!0x1;[_0x526870(0xe3)];[_0x526870(0xd8)];[_0x526870(0xf2)];[_0x526870(0xbc)];[_0x526870(0xec)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x93440e,content:_0x816a14='',isDone:_0x38d721=!0x1,interactionId:_0x18d630,areActionsDisabled:_0x1047db,documentContextContent:_0x3f4d37,editor:_0x4cafb3,id:_0x5d696b}){const _0x3d6ec4=_0x526870;super(),this['id']=_0x5d696b||_0x4354d2(),this[_0x3d6ec4(0xe6)]=_0x18d630,this[_0x3d6ec4(0x103)]=_0x93440e,this[_0x3d6ec4(0xde)]=!!_0x1047db,this[_0x3d6ec4(0xbc)]=_0x4cafb3,this[_0x3d6ec4(0xd8)]=new _0x552f8b(),this[_0x3d6ec4(0xf2)]=new _0x2a0dd3(),this[_0x3d6ec4(0xe3)]=_0x434920(_0x3f4d37||''),this[_0x3d6ec4(0xff)](_0x3d6ec4(0xf9),_0x38d721),this['on'](_0x3d6ec4(0xf6),()=>{const _0x4165a9=_0x3d6ec4;this[_0x4165a9(0xda)]();}),this[_0x3d6ec4(0xff)](_0x3d6ec4(0xb7),_0x816a14);}[_0x526870(0xcd)](_0x19c224){const _0x50d921=_0x526870;this[_0x50d921(0xff)](_0x50d921(0xb7),this[_0x50d921(0xb7)]+_0x19c224);}[_0x526870(0xc8)](){const _0x57afc1=_0x526870;this[_0x57afc1(0xf9)]||(this[_0x57afc1(0xff)](_0x57afc1(0xf9),!0x0),this[_0x57afc1(0xda)]());}[_0x526870(0xc9)](){const _0x5f458b=_0x526870;this[_0x5f458b(0xb2)]();}[_0x526870(0xfb)](_0x59748c,_0xd75535){const _0x3c363e=_0x526870;this[_0x3c363e(0xb3)][_0x59748c][_0x3c363e(0x101)]=_0xd75535,this[_0x3c363e(0xf1)](_0x3c363e(0xee),{'reply':this,'index':_0x59748c,'state':_0xd75535});}[_0x526870(0xbb)]({showDiff:_0x17bc83,groupIndex:_0x361cd1}){const _0x4e84d4=_0x526870;if(!this[_0x4e84d4(0xbc)])throw new _0x4700f7(_0x4e84d4(0xd1),null,{'aiReply':this});const _0x344166=this[_0x4e84d4(0xcc)](_0x17bc83,_0x361cd1);if(_0x344166)return _0x344166;let _0x317e72=[];if(void 0x0===_0x361cd1)_0x317e72=this[_0x4e84d4(0xb3)];else{const _0x297dd1=this[_0x4e84d4(0xb3)][_0x4e84d4(0xe4)](({index:_0x12cb02})=>_0x12cb02===_0x361cd1);if(!_0x297dd1)throw new _0x4700f7(_0x4e84d4(0xb9),null,{'aiReply':this,'groupIndex':_0x361cd1});_0x317e72=[_0x297dd1];}const _0x9c28a8=_0x35dde6({'editor':this[_0x4e84d4(0xbc)],'showDiff':_0x17bc83,'changeGroups':_0x317e72,'documentContextContent':this[_0x4e84d4(0xe3)]});return this[_0x4e84d4(0xd9)](_0x17bc83,_0x9c28a8),_0x9c28a8;}[_0x526870(0xcc)](_0x15df68,_0x901fdb){const _0x760cc8=_0x526870,_0x5a0261=_0x15df68?_0x760cc8(0xe0):_0x760cc8(0xfe);if(!this[_0x760cc8(0xec)][_0x5a0261][_0x760cc8(0xdd)])return null;const _0x1d8a4e=this[_0x760cc8(0xec)][_0x5a0261];if(void 0x0===_0x901fdb)return _0x1ca221(_0x1d8a4e);{const _0x85b8e7=_0x1d8a4e[_0x760cc8(0xe4)](({index:_0x47150e})=>_0x47150e===_0x901fdb);if(_0x85b8e7)return[_0x1ca221(_0x85b8e7)];}return null;}[_0x526870(0xd9)](_0x454cb7,_0xff7b7c){const _0x1eb145=_0x526870,_0x3f520e=_0x454cb7?_0x1eb145(0xe0):_0x1eb145(0xfe);_0xff7b7c[_0x1eb145(0xc0)](_0x59d4d0=>{const _0x171be1=_0x1eb145,_0xd4d731=this[_0x171be1(0xec)][_0x3f520e],_0x5e8d72=_0xd4d731[_0x171be1(0xe4)](({index:_0x2e7214})=>_0x2e7214===_0x59d4d0[_0x171be1(0xf5)]);if(_0x5e8d72){const _0x194ad6=_0xd4d731[_0x171be1(0xbe)](_0x5e8d72);_0xd4d731[_0x171be1(0xae)](_0x194ad6,0x1,_0x59d4d0);}else _0xd4d731[_0x171be1(0xed)](_0x59d4d0);});}[_0x526870(0xda)](){const _0x4ad6ce=_0x526870;if(_0x4ad6ce(0xbf)===this[_0x4ad6ce(0x103)]){this[_0x4ad6ce(0xc3)]=this[_0x4ad6ce(0xd8)][_0x4ad6ce(0xc6)](this[_0x4ad6ce(0xb7)]);const _0x482ba=this[_0x4ad6ce(0xb3)];this[_0x4ad6ce(0xd6)]();const _0x195af2=this[_0x4ad6ce(0xca)](_0x482ba,this[_0x4ad6ce(0xb3)]);(_0x195af2[_0x4ad6ce(0xdd)]||this[_0x4ad6ce(0xf9)])&&(this[_0x4ad6ce(0xf1)](_0x4ad6ce(0xdf),this,_0x195af2),this[_0x4ad6ce(0xec)][_0x4ad6ce(0xe0)][_0x4ad6ce(0xdd)]=this[_0x4ad6ce(0xec)][_0x4ad6ce(0xfe)][_0x4ad6ce(0xdd)]=0x0);}else this[_0x4ad6ce(0xc3)]=this[_0x4ad6ce(0xd8)][_0x4ad6ce(0xd2)](this[_0x4ad6ce(0xb7)]),this[_0x4ad6ce(0xf1)](_0x4ad6ce(0xdf),this);}[_0x526870(0xca)](_0x3e5b78,_0x43cd25){const _0x59919c=_0x526870,_0x47656f=[];for(const _0x1b0037 of _0x43cd25){const _0x474681=_0x3e5b78[_0x1b0037[_0x59919c(0xf5)]];_0x474681?_0x474681[_0x59919c(0xdb)][_0x59919c(0xdd)]!==_0x1b0037[_0x59919c(0xdb)][_0x59919c(0xdd)]?_0x47656f[_0x59919c(0xed)](_0x1b0037):_0x474681[_0x59919c(0xdb)][_0x59919c(0xc0)]((_0x442152,_0x270bd3)=>{const _0x4cc35a=_0x59919c,_0x1540c2=_0x1b0037[_0x4cc35a(0xdb)][_0x270bd3];_0x442152['id']!==_0x1540c2['id']&&_0x47656f[_0x4cc35a(0xed)](_0x1b0037);}):_0x47656f[_0x59919c(0xed)](_0x1b0037);}return _0x47656f;}[_0x526870(0xd6)](){const _0xfbb1fc=_0x526870,_0x38908e=new _0x233040('p',{},[new _0x233040(_0xfbb1fc(0xb0),{'style':_0xfbb1fc(0xbd)},[new _0x39c950(_0x4c0704(this[_0xfbb1fc(0xbc)][_0xfbb1fc(0xad)],_0xfbb1fc(0xba)))])]),_0x3b425b=this[_0xfbb1fc(0xf2)][_0xfbb1fc(0xe7)](this[_0xfbb1fc(0xc3)],this[_0xfbb1fc(0xe3)][_0xfbb1fc(0xce)](!0x0),{'markUnstableElements':!this[_0xfbb1fc(0xf9)],'replaceRemovedWith':_0x38908e,'cutAfterLastChange':!this[_0xfbb1fc(0xf9)]});if(!_0x3b425b[_0xfbb1fc(0xd7)][_0xfbb1fc(0xdd)]&&!this[_0xfbb1fc(0xf9)])return;this[_0xfbb1fc(0xf4)]=_0x3b425b[_0xfbb1fc(0xc3)];let _0x44e865=[];if(_0x2bfd78(_0x580533=>{const _0x30789e=_0xfbb1fc,_0x1de470=_0x16491e(_0x580533,_0x30789e(0xcf));if(!_0x1de470||!_0x23b671(_0x1de470))return!0x1;const _0x1b7ac8=[_0x580533,..._0x191d4b(_0x580533)]['at'](-0x2);if(_0x580533!=_0x1b7ac8){const _0x411a44=_0x16491e(_0x1b7ac8,_0x30789e(0xcf));_0x23b671(_0x411a44)||(_0x44e865[_0x30789e(0xed)]({'node':_0x1b7ac8,'id':_0x411a44,'type':_0x30789e(0xb6)}),_0x3b425b[_0x30789e(0xd7)][_0x30789e(0xed)](_0x411a44));}else _0x3b425b[_0x30789e(0xd7)][_0x30789e(0xe8)](_0x1de470)?_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb6),'id':_0x1de470}):_0x3b425b[_0x30789e(0xe5)][_0x30789e(0xe8)](_0x1de470)?_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb1),'id':_0x1de470,'anchorId':_0x16491e(_0x580533[_0x30789e(0xc7)],_0x30789e(0xcf))}):_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb8),'id':_0x1de470});return!0x0;},this[_0xfbb1fc(0xf4)]),_0x44e865=_0x44e865[_0xfbb1fc(0xfd)](({node:_0x15dd00})=>[..._0x191d4b(_0x15dd00),_0x15dd00][_0xfbb1fc(0xf3)](_0x1842d2=>!_0x16491e(_0x1842d2,_0xfbb1fc(0xea)))),0x0==_0x44e865[_0xfbb1fc(0xdd)])return;const _0x241a6b=[[_0x44e865[0x0]]];for(let _0x5ce3f3=0x1;_0x5ce3f3<_0x44e865[_0xfbb1fc(0xdd)];_0x5ce3f3++){const _0x3535f6=_0x241a6b[_0x241a6b[_0xfbb1fc(0xdd)]-0x1],_0x1b263e=_0x3535f6[_0x3535f6[_0xfbb1fc(0xdd)]-0x1];_0x44e865[_0x5ce3f3][_0xfbb1fc(0xf0)][_0xfbb1fc(0xc7)]==_0x1b263e[_0xfbb1fc(0xf0)]&&_0xfbb1fc(0xb6)!=_0x44e865[_0x5ce3f3][_0xfbb1fc(0x103)]&&_0xfbb1fc(0xb6)!=_0x1b263e[_0xfbb1fc(0x103)]?_0x3535f6[_0xfbb1fc(0xed)](_0x44e865[_0x5ce3f3]):_0x241a6b[_0xfbb1fc(0xed)]([_0x44e865[_0x5ce3f3]]);}for(const _0x6e17b6 of _0x241a6b){const _0x1cb0ad=_0x6e17b6[0x0],_0x4268f4=_0x6e17b6[_0x6e17b6[_0xfbb1fc(0xdd)]-0x1],_0x194cd1=_0x32ef12(_0x1cb0ad[_0xfbb1fc(0xf0)][_0xfbb1fc(0xc7)]);_0x194cd1&&_0x6e17b6[_0xfbb1fc(0xe1)](_0x194cd1);const _0x19933b=_0x32ef12(_0x4268f4[_0xfbb1fc(0xf0)][_0xfbb1fc(0xcb)]);_0x19933b&&_0x6e17b6[_0xfbb1fc(0xed)](_0x19933b);}function _0x23b671(_0x5b8f60){const _0x40ecac=_0xfbb1fc;return _0x3b425b[_0x40ecac(0xd7)][_0x40ecac(0xe8)](_0x5b8f60)||_0x3b425b[_0x40ecac(0xe5)][_0x40ecac(0xe8)](_0x5b8f60)||_0x3b425b[_0x40ecac(0xef)][_0x40ecac(0xe8)](_0x5b8f60);}function _0x32ef12(_0x25205a){const _0x2fa8e4=_0xfbb1fc;if(_0x25205a&&_0x16491e(_0x25205a,_0x2fa8e4(0xcf))&&!_0x16491e(_0x25205a,_0x2fa8e4(0xea))){const _0x39b742=_0x16491e(_0x25205a,_0x2fa8e4(0xcf));if(!_0x23b671(_0x39b742))return{'node':_0x25205a,'type':_0x2fa8e4(0xfa),'id':_0x39b742};}return null;}this[_0xfbb1fc(0xb3)]=_0x241a6b[_0xfbb1fc(0xeb)]((_0x5a663f,_0x2a5b97)=>({'changes':_0x5a663f,'state':_0xfbb1fc(0xd0),'index':_0x2a5b97}));}}export function isValidReplyType(_0x364ca8){const _0x11d14d=_0x526870;return Object[_0x11d14d(0xc2)](AI_REPLY_TYPES)[_0x11d14d(0xe8)](_0x364ca8);}export function isIgnoredReplyType(_0xc320e4){const _0x5580b1=_0x526870;return AI_REPLY_TYPES_IGNORED[_0x5580b1(0xe8)](_0xc320e4);}export function isReplyTitleType(_0x3c753c){return _0x3c753c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2e3433){const _0x141fa2=_0x526870;return _0x141fa2(0xc5)===_0x2e3433;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x31e9ad(){[_0x53e9b3(0x211)];[_0x53e9b3(0x215)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x53e9b3(0x1e7)]=new Set();constructor(_0x45b7ce){const _0x432129=_0x53e9b3;super(),this[_0x432129(0x211)]=_0x45b7ce||_0x1fe7d7;}[_0x53e9b3(0x202)](_0x2f9fe1,_0x2c8e0c,_0x3569f6){const _0x4e61ca=_0x53e9b3,_0x1994d3=_0x4fd544(_0x2f9fe1);if(0x0===_0x2c8e0c[_0x4e61ca(0x1e4)][_0x4e61ca(0x1f1)]){const _0x5656b6=[];return _0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x1994d3)[_0x4e61ca(0x20d)](_0x15b074=>{const _0x4ea810=_0x4e61ca,_0x426e12=this[_0x4ea810(0x211)]();_0x7f5f65(_0x15b074,_0x4ea810(0x1f5),_0x426e12),_0x5656b6[_0x4ea810(0x207)](_0x426e12);}),this[_0x4e61ca(0x203)](_0x1994d3),{'parsedContent':_0x1994d3,'newNodeIds':_0x5656b6,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1ea)](_0x1994d3),this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1df)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=null,this[_0x4e61ca(0x1e7)]=new Set(_0x21474a(_0x4e61ca(0x1f5),null,_0x2c8e0c)[_0x4e61ca(0x20c)](_0x5795bd=>_0x3fdc9a(_0x5795bd,_0x4e61ca(0x1f5)))[_0x4e61ca(0x1fe)](_0x542995=>!!_0x542995));let _0x12d81d=-0x1,_0x544f84=!0x1;const _0x5b49a9=_0x1994d3[_0x4e61ca(0x1e4)],_0x17650e=Array[_0x4e61ca(0x1de)](_0x5b49a9)[_0x4e61ca(0x1fe)](_0x4b05cd=>!(0x3===_0x4b05cd[_0x4e61ca(0x200)]&&''===_0x2ea88e(_0x4b05cd)[_0x4e61ca(0x217)]())),_0x204a99=_0x17650e[_0x4e61ca(0x1f1)];for(let _0x5410b2=0x0;_0x5410b2<_0x204a99;_0x5410b2++){const _0x28b394=_0x17650e[_0x5410b2],_0x2f7e68=_0x17650e[_0x5410b2+0x1];if(this[_0x4e61ca(0x1e2)](_0x28b394)){if(-0x1===_0x12d81d&&(_0x12d81d=_0x5410b2),this[_0x4e61ca(0x1f2)](_0x28b394),!this[_0x4e61ca(0x1e2)](_0x2f7e68)){const [_0x3580c7,_0x52df17]=this[_0x4e61ca(0x1dd)](_0x28b394,_0x544f84,_0x2c8e0c);if(_0x3580c7){const _0x4ff944=Array[_0x4e61ca(0x1de)](_0x17650e)[_0x4e61ca(0x21d)](_0x12d81d,_0x5410b2+0x1);this[_0x4e61ca(0x1fc)](_0x3580c7,_0x4ff944,_0x52df17),_0x12d81d=-0x1;}}}else{if(this[_0x4e61ca(0x1ec)](_0x28b394))_0x544f84=!0x0;else{if(this[_0x4e61ca(0x214)](_0x28b394)){const _0x34edb5=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));if(_0x34edb5&&this[_0x4e61ca(0x1e7)][_0x4e61ca(0x1e1)](_0x34edb5)){const _0x3c6056=_0x57a16a(_0x4e61ca(0x1f5),_0x34edb5,_0x2c8e0c);this[_0x4e61ca(0x1e5)](_0x3c6056,_0x28b394);}if(this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x20b)](_0x34edb5)){const _0x39dab3=this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x205)](_0x34edb5);this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x212)](_0x39dab3,0x1);}}else{if(this[_0x4e61ca(0x1f4)](_0x28b394)){const _0x27c944=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)][_0x4e61ca(0x20b)](_0x27c944)||this[_0x4e61ca(0x204)](_0x28b394);}}}}}for(const _0x1af400 of this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]){const _0x17d3d4=_0x57a16a(_0x4e61ca(0x1f5),_0x1af400,_0x2c8e0c);if(_0x17d3d4){if(_0x3569f6&&_0x3569f6[_0x4e61ca(0x1da)]){this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=_0x1af400;const _0x251251=_0x3569f6[_0x4e61ca(0x1da)][_0x4e61ca(0x206)](!0x0);_0x7f5f65(_0x251251,_0x4e61ca(0x1f5),_0x1af400),_0x7f5f65(_0x251251,_0x4e61ca(0x21c),_0x4e61ca(0x20a)),_0x4cf0df(_0x17d3d4,_0x251251);}else _0x18910e(_0x17d3d4);}}if(_0x21474a(_0x4e61ca(0x1ee),null,_0x2c8e0c)[_0x4e61ca(0x20d)](_0x17174a=>{const _0x876d18=_0x4e61ca,_0x575dee=_0x3fdc9a(_0x17174a,_0x876d18(0x1ee)),_0x3fac4c=_0x57a16a(_0x876d18(0x1f5),_0x575dee,_0x2c8e0c);_0x3fac4c&&_0x2e3c39(_0x3fac4c,_0x17174a);}),_0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x2c8e0c)[_0x4e61ca(0x20d)](_0x11d383=>{const _0x426ad3=_0x4e61ca,_0x3ee3a7=this[_0x426ad3(0x1f9)](_0x11d383);_0x7f5f65(_0x11d383,_0x426ad3(0x1f5),_0x3ee3a7),this[_0x426ad3(0x215)][_0x426ad3(0x1e8)][_0x426ad3(0x207)](_0x3ee3a7);}),this[_0x4e61ca(0x203)](_0x2c8e0c),_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1f6)](_0x2c8e0c,_0x3569f6[_0x4e61ca(0x1fd)]||0x0),_0x3569f6&&_0x3569f6[_0x4e61ca(0x1e0)]&&this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]){let _0x4f1486=_0x57a16a(_0x4e61ca(0x1f5),this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)],_0x2c8e0c);for(;_0x4f1486;)_0x39759e(_0x4f1486),_0x4f1486=_0x4f1486[_0x4e61ca(0x1fb)];}return{'parsedContent':_0x2c8e0c,'newNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)],'modifiedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)],'removedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]};}[_0x53e9b3(0x1fc)](_0x445bcf,_0x141feb,_0x3d9c6e){const _0x5e89f3=_0x53e9b3;for(const _0x341351 of _0x141feb){const _0x4402e6=this[_0x5e89f3(0x1f9)](_0x341351);_0x7f5f65(_0x341351,_0x5e89f3(0x1f5),_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1e8)][_0x5e89f3(0x207)](_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1f7)]=_0x4402e6;}const _0x3ae653=_0x5e89f3(0x1e9)===_0x3d9c6e||_0x5e89f3(0x210)===_0x3d9c6e?_0x141feb[_0x5e89f3(0x1ef)]():_0x141feb;for(const _0x393c21 of _0x3ae653)_0x15f7b0(_0x445bcf,_0x393c21,_0x3d9c6e);}[_0x53e9b3(0x1e5)](_0x2688ff,_0x4247af){const _0xed1397=_0x53e9b3;if(!_0x2688ff)return;if(_0x3b433b(_0x2688ff,_0x4247af))return;const _0x2260fe=this[_0xed1397(0x1f9)](_0x2688ff);_0x7f5f65(_0x4247af,_0xed1397(0x1f5),_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f8)][_0xed1397(0x207)](_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f7)]=_0x2260fe,_0x4cf0df(_0x2688ff,_0x4247af[_0xed1397(0x206)](!0x0));}[_0x53e9b3(0x1dd)](_0x3f9380,_0x220930,_0x1e5ae3){const _0x528fd9=_0x53e9b3,_0xd69bb6=this[_0x528fd9(0x1f0)](_0x3f9380,!0x1);if(_0xd69bb6){const _0x737b99=this[_0x528fd9(0x1dc)](_0xd69bb6),_0x132faa=_0x57a16a(_0x528fd9(0x1f5),_0x737b99,_0x1e5ae3);if(_0x132faa)return[_0x132faa,_0x528fd9(0x210)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x737b99);}const _0x5a1001=this[_0x528fd9(0x1fa)](_0x3f9380,!0x1);if(_0x5a1001){const _0x56080b=this[_0x528fd9(0x1dc)](_0x5a1001),_0x4930bd=_0x57a16a(_0x528fd9(0x1f5),_0x56080b,_0x1e5ae3);if(_0x4930bd)return[_0x4930bd,_0x528fd9(0x1e3)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x56080b);}return _0x220930?_0x3f9380[_0x528fd9(0x1f3)]?this[_0x528fd9(0x1ed)](_0x3f9380,_0x1e5ae3):[_0x1e5ae3[_0x528fd9(0x1e4)][_0x1e5ae3[_0x528fd9(0x1e4)][_0x528fd9(0x1f1)]-0x1],_0x528fd9(0x210)]:[_0x1e5ae3[_0x528fd9(0x1e4)][0x0],_0x528fd9(0x1e3)];}[_0x53e9b3(0x1ed)](_0xd7384b,_0x3b312e){const _0x1a6196=_0x53e9b3,_0x205fd3=[],_0x45d264=this[_0x1a6196(0x1f0)](_0xd7384b,!0x0);if(_0x45d264){const _0x4c9702=this[_0x1a6196(0x1dc)](_0x45d264),_0x48d941=_0x57a16a(_0x1a6196(0x1f5),_0x4c9702,_0x3b312e);_0x48d941&&_0x205fd3[_0x1a6196(0x207)]([_0x48d941,_0x1a6196(0x210)]);}const _0x2dcd74=this[_0x1a6196(0x1fa)](_0xd7384b,!0x0);if(_0x2dcd74){const _0x390113=this[_0x1a6196(0x1dc)](_0x2dcd74),_0x1f0e59=_0x57a16a(_0x1a6196(0x1f5),_0x390113,_0x3b312e);_0x1f0e59&&_0x205fd3[_0x1a6196(0x207)]([_0x1f0e59,_0x1a6196(0x1e3)]);}if(_0x205fd3[_0x1a6196(0x1f1)]>0x1)return _0x55121a(_0x205fd3[0x0][0x0])<=_0x55121a(_0x205fd3[0x1][0x0])?_0x205fd3[0x0]:_0x205fd3[0x1];return 0x1===_0x205fd3[_0x1a6196(0x1f1)]?_0x205fd3[0x0]:[_0x3b312e[_0x1a6196(0x213)],_0x1a6196(0x210)];}[_0x53e9b3(0x1fa)](_0x26429d,_0x565d3e){const _0x2aaf1b=_0x53e9b3;let _0x1247ed=_0x26429d[_0x2aaf1b(0x1f3)],_0x1aab7b=null,_0x12226b=!0x1;for(;_0x1247ed;){if(_0x167826(_0x1247ed)){if(this[_0x2aaf1b(0x1f4)](_0x1247ed)&&(_0x1aab7b=_0x1247ed),this[_0x2aaf1b(0x1ec)](_0x1247ed)&&_0x565d3e&&!_0x12226b){_0x12226b=!0x0,_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];continue;}break;}const _0xe4898a=_0x3fdc9a(_0x1247ed,_0x2aaf1b(0x1f5));if(_0xe4898a&&_0x2aaf1b(0x216)!==_0xe4898a&&this[_0x2aaf1b(0x1e7)][_0x2aaf1b(0x1e1)](_0xe4898a)){_0x1aab7b=_0x1247ed;break;}_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];}return _0x1aab7b;}[_0x53e9b3(0x1f0)](_0x12eb55,_0x167b5b){const _0x592fe9=_0x53e9b3;let _0x2ca944=_0x12eb55[_0x592fe9(0x20f)],_0x2d8ef9=null,_0x38f4c6=!0x1;for(;_0x2ca944;){if(_0x167826(_0x2ca944)){if(this[_0x592fe9(0x1f4)](_0x2ca944)&&(_0x2d8ef9=_0x2ca944),this[_0x592fe9(0x1ec)](_0x2ca944)&&_0x167b5b&&!_0x38f4c6){_0x38f4c6=!0x0,_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];continue;}break;}const _0x4ac1d4=_0x3fdc9a(_0x2ca944,_0x592fe9(0x1f5));if(_0x4ac1d4&&_0x592fe9(0x216)!==_0x4ac1d4&&this[_0x592fe9(0x1e7)][_0x592fe9(0x1e1)](_0x4ac1d4)){_0x2d8ef9=_0x2ca944;break;}_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];}return _0x2d8ef9;}[_0x53e9b3(0x1f2)](_0x4856c9){const _0x275387=_0x53e9b3;_0x424e03(_0x4856c9)&&_0x21474a(_0x275387(0x1f5),null,_0x4856c9)[_0x275387(0x20d)](_0xc421e7=>{const _0xbbb066=_0x275387;if(this[_0xbbb066(0x214)](_0xc421e7)&&!this[_0xbbb066(0x21f)](_0xc421e7)){const _0x360b7b=_0x3fdc9a(_0xc421e7,_0xbbb066(0x1f5));_0x7f5f65(_0xc421e7,_0xbbb066(0x1ee),_0x360b7b),_0x7f5f65(_0xc421e7,_0xbbb066(0x1f5),null);}});}[_0x53e9b3(0x1dc)](_0x19a61a){const _0x156afc=_0x53e9b3;if(!_0x19a61a)return null;if(_0x424e03(_0x19a61a))return _0x3fdc9a(_0x19a61a,_0x156afc(0x1f5));if(_0x167826(_0x19a61a)){const _0x1cac9b=_0x2ea88e(_0x19a61a)[_0x156afc(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cac9b&&_0x1cac9b[0x1])return _0x1cac9b[0x1];}return null;}[_0x53e9b3(0x204)](_0x2f7d42){const _0x595e48=_0x53e9b3;if(_0x167826(_0x2f7d42)){const _0x1574ec=_0x2ea88e(_0x2f7d42)[_0x595e48(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);_0x1574ec&&_0x1574ec[0x1]&&this[_0x595e48(0x215)][_0x595e48(0x21e)][_0x595e48(0x207)](_0x1574ec[0x1]);}}[_0x53e9b3(0x1f9)](_0x4dd8b3){const _0x70498b=_0x53e9b3;return this[_0x70498b(0x214)](_0x4dd8b3)?_0x3fdc9a(_0x4dd8b3,_0x70498b(0x1f5)):this[_0x70498b(0x211)]();}[_0x53e9b3(0x203)](_0x1a7e4a){const _0x1499ca=_0x53e9b3;_0x3efd16(_0x1a7e4a)[_0x1499ca(0x1fe)](_0x3310bd=>this[_0x1499ca(0x1f4)](_0x3310bd)||this[_0x1499ca(0x1ec)](_0x3310bd))[_0x1499ca(0x20d)](_0x183737=>{_0x18910e(_0x183737);});}[_0x53e9b3(0x1ea)](_0x4d98ea){const _0x3099be=_0x53e9b3,_0x1b76fd=_0x4d98ea[_0x3099be(0x1e4)],_0x429fb0=_0x1b76fd[_0x1b76fd[_0x3099be(0x1f1)]-0x1];_0x429fb0&&_0x424e03(_0x429fb0)&&_0x7f5f65(_0x429fb0,_0x3099be(0x1e6),_0x3099be(0x20a));}[_0x53e9b3(0x1f6)](_0x172d71,_0x1d7afc){const _0x8e3d33=_0x53e9b3,_0xda42dc=_0x57a16a(_0x8e3d33(0x1e6),_0x8e3d33(0x20a),_0x172d71);if(!_0xda42dc)return;const _0x42c7d9=_0x3937aa(_0xda42dc)[_0x8e3d33(0x21d)](0x0,-0x1),_0x42b397=_0x42c7d9[_0x8e3d33(0x1f1)];let _0x455023=_0xda42dc;if(_0x42b397>_0x1d7afc){let _0x26c2a5=_0x42b397,_0x6a0243=null;for(;_0x26c2a5>_0x1d7afc&&_0x26c2a5>=0x0;)_0x26c2a5--,_0x6a0243=_0x42c7d9[_0x26c2a5];_0x6a0243&&(_0x455023=_0x6a0243,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x6a0243,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}else{if(_0x42b397<_0x1d7afc){let _0x3f3941=_0x42b397,_0x157260=_0xda42dc;for(;_0x3f3941<_0x1d7afc;){const _0x1b75ca=_0x157260[_0x8e3d33(0x1e4)][_0x8e3d33(0x1fe)](_0x57f59a=>_0x424e03(_0x57f59a));if(0x0===_0x1b75ca[_0x8e3d33(0x1f1)])break;_0x3f3941++,_0x157260=_0x1b75ca[_0x1b75ca[_0x8e3d33(0x1f1)]-0x1];}_0x157260&&(_0x455023=_0x157260,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x157260,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}}let _0x101763=_0x455023;for(;_0x101763;){for(;_0x101763[_0x8e3d33(0x1f3)];)_0x101763=_0x101763[_0x8e3d33(0x1f3)],_0x424e03(_0x101763)&&_0x7f5f65(_0x101763,_0x8e3d33(0x1e6),_0x8e3d33(0x20a));_0x101763=_0x101763[_0x8e3d33(0x1fb)];}}[_0x53e9b3(0x1e2)](_0x48fadf){const _0x14fdb0=_0x53e9b3;return Boolean(_0x14fdb0(0x216)===_0x3fdc9a(_0x48fadf,_0x14fdb0(0x1f5)));}[_0x53e9b3(0x214)](_0x218c18){const _0x3c418d=_0x53e9b3;return Boolean((_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5))||'')[_0x3c418d(0x1f1)]>0x0&&_0x3c418d(0x216)!==_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5)));}[_0x53e9b3(0x1f4)](_0x1c812f){const _0x1e4d4e=_0x53e9b3;return!!_0x1c812f&&Boolean(_0x167826(_0x1c812f)&&_0x2ea88e(_0x1c812f)[_0x1e4d4e(0x1ff)](/removed[\s*-]data-id="[^"]+"/));}[_0x53e9b3(0x21f)](_0x558fcb){const _0x254299=_0x53e9b3;let _0x5d2d19=_0x558fcb[_0x254299(0x1fb)];for(;_0x5d2d19;){if(_0x3fdc9a(_0x5d2d19,_0x254299(0x1ee)))return!0x0;_0x5d2d19=_0x5d2d19[_0x254299(0x1fb)];}return!0x1;}[_0x53e9b3(0x1ec)](_0x3a3aa8){const _0x327aa4=_0x53e9b3;return Boolean(_0x167826(_0x3a3aa8)&&_0x2ea88e(_0x3a3aa8)[_0x327aa4(0x1ff)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x356d96=_0x3a4b;(function(_0xcb22b9,_0xd46268){const _0x35f9dc=_0x3a4b,_0x2c76a0=_0xcb22b9();while(!![]){try{const _0x49e60d=-parseInt(_0x35f9dc(0xb0))/0x1*(parseInt(_0x35f9dc(0xc4))/0x2)+-parseInt(_0x35f9dc(0xc7))/0x3*(parseInt(_0x35f9dc(0xe1))/0x4)+parseInt(_0x35f9dc(0xdb))/0x5*(parseInt(_0x35f9dc(0xaf))/0x6)+-parseInt(_0x35f9dc(0xc9))/0x7+parseInt(_0x35f9dc(0xd8))/0x8+-parseInt(_0x35f9dc(0xe0))/0x9+parseInt(_0x35f9dc(0xe4))/0xa;if(_0x49e60d===_0xd46268)break;else _0x2c76a0['push'](_0x2c76a0['shift']());}catch(_0x64b1f1){_0x2c76a0['push'](_0x2c76a0['shift']());}}}(_0x2bb5,0xc32de));import{ObservableMixin as _0x44d56c,uid as _0x50dfaf}from'ckeditor5/src/utils.js';function _0x2bb5(){const _0x929041=['_findFallbackReferenceNode','_findNextElementWithDataId','merge','_getNodeDataId','push','_generateUid','includes','length','147156QVEPcN','347gsUopd','nodeType','cloneNode','markUnstableElementsDepth','_hasWrappedParent','_storeDeletedElementIds','lastTouchedId','afterend','nextSibling','newIds','_getUid','_markLastTagElementUnstable','previousSibling','_markUnstableElements','has','trim','map','from','reverse','lastChild','3028fGwuSM','new-element','parentNode','2742QYXaKG','_insertNodes','3011057XndcjH','_isExistingContentComment','filter','_isDelNode','replaceRemovedWith','_touchedNodesState','splice','modifiedIds','forEach','match','_findReferenceNode','_isExistingNode','markUnstableElements','_existingDataIds','_isNewNode','8017680DaeqHU','data-unstable','data-id','65oXdkVj','childNodes','_findPrevElementWithDataId','data-removed','_replaceNode','2357964MqpzBs','2812OqcnDg','removedIds','invalidIds','13384530MrifDJ','indexOf','data-wrapped-id','cutAfterLastChange','beforebegin','slice','_removeSpecialComments','_markWrappedElements','true','afterbegin'];_0x2bb5=function(){return _0x929041;};return _0x2bb5();}function _0x3a4b(_0x17a1b0,_0x15fa54){const _0x2bb50c=_0x2bb5();return _0x3a4b=function(_0x3a4bbb,_0x49e010){_0x3a4bbb=_0x3a4bbb-0x9f;let _0x1b8724=_0x2bb50c[_0x3a4bbb];return _0x1b8724;},_0x3a4b(_0x17a1b0,_0x15fa54);}import{findAllByAttribute as _0x2139a3,findByAttribute as _0x395e19,getAttribute as _0x4d1d75,isComment as _0x316885,isTag as _0x2dc514,insertElement as _0x1ec3ab,moveElement as _0x6947f6,removeElement as _0x324d33,replaceElement as _0x7e2f09,serialize as _0x2e778c,setAttribute as _0x3bdc83,clone as _0x1fc270,findAllComments as _0xbd4943,getParents as _0x26633a,getNodeNestingLevel as _0x2ec1c6,areNodesSame as _0x1bc519,removeElementsAfter as _0x54fbc6}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x44d56c(){[_0x356d96(0xac)];[_0x356d96(0xce)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x356d96(0xd6)]=new Set();constructor(_0xc9e067){const _0x12d4bf=_0x356d96;super(),this[_0x12d4bf(0xac)]=_0xc9e067||_0x50dfaf;}[_0x356d96(0xa9)](_0x11a9f0,_0x44f7cf,_0x10b4bf){const _0x3caf4c=_0x356d96,_0x157db8=_0x1fc270(_0x11a9f0);if(0x0===_0x44f7cf[_0x3caf4c(0xdc)][_0x3caf4c(0xae)]){const _0x13dcd2=[];return _0x2139a3(_0x3caf4c(0xda),_0x3caf4c(0xc5),_0x157db8)[_0x3caf4c(0xd1)](_0x1a5b64=>{const _0x43e019=_0x3caf4c,_0x3bf4c3=this[_0x43e019(0xac)]();_0x3bdc83(_0x1a5b64,_0x43e019(0xda),_0x3bf4c3),_0x13dcd2[_0x43e019(0xab)](_0x3bf4c3);}),this[_0x3caf4c(0xa3)](_0x157db8),{'parsedContent':_0x157db8,'newNodeIds':_0x13dcd2,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x10b4bf&&_0x10b4bf[_0x3caf4c(0xd5)]&&this[_0x3caf4c(0xbb)](_0x157db8),this[_0x3caf4c(0xce)][_0x3caf4c(0xb9)]=[],this[_0x3caf4c(0xce)][_0x3caf4c(0xd0)]=[],this[_0x3caf4c(0xce)][_0x3caf4c(0xe2)]=[],this[_0x3caf4c(0xce)][_0x3caf4c(0xe3)]=[],this[_0x3caf4c(0xce)][_0x3caf4c(0xb6)]=null,this[_0x3caf4c(0xd6)]=new Set(_0x2139a3(_0x3caf4c(0xda),null,_0x44f7cf)[_0x3caf4c(0xc0)](_0x485ed6=>_0x4d1d75(_0x485ed6,_0x3caf4c(0xda)))[_0x3caf4c(0xcb)](_0x182d25=>!!_0x182d25));let _0x4c2757=-0x1,_0x486882=!0x1;const _0x141eda=_0x157db8[_0x3caf4c(0xdc)],_0x2e2b6e=Array[_0x3caf4c(0xc1)](_0x141eda)[_0x3caf4c(0xcb)](_0x4a2044=>!(0x3===_0x4a2044[_0x3caf4c(0xb1)]&&''===_0x2e778c(_0x4a2044)[_0x3caf4c(0xbf)]())),_0x448658=_0x2e2b6e[_0x3caf4c(0xae)];for(let _0x475d62=0x0;_0x475d62<_0x448658;_0x475d62++){const _0x1d8d39=_0x2e2b6e[_0x475d62],_0x5ae708=_0x2e2b6e[_0x475d62+0x1];if(this[_0x3caf4c(0xd7)](_0x1d8d39)){if(-0x1===_0x4c2757&&(_0x4c2757=_0x475d62),this[_0x3caf4c(0xa4)](_0x1d8d39),!this[_0x3caf4c(0xd7)](_0x5ae708)){const [_0x2e165e,_0x3433c6]=this[_0x3caf4c(0xd3)](_0x1d8d39,_0x486882,_0x44f7cf);if(_0x2e165e){const _0x11eb86=Array[_0x3caf4c(0xc1)](_0x2e2b6e)[_0x3caf4c(0xa2)](_0x4c2757,_0x475d62+0x1);this[_0x3caf4c(0xc8)](_0x2e165e,_0x11eb86,_0x3433c6),_0x4c2757=-0x1;}}}else{if(this[_0x3caf4c(0xca)](_0x1d8d39))_0x486882=!0x0;else{if(this[_0x3caf4c(0xd4)](_0x1d8d39)){const _0x2b5ee8=_0x4d1d75(_0x1d8d39,_0x3caf4c(0xda));if(_0x2b5ee8&&this[_0x3caf4c(0xd6)][_0x3caf4c(0xbe)](_0x2b5ee8)){const _0x23268e=_0x395e19(_0x3caf4c(0xda),_0x2b5ee8,_0x44f7cf);this[_0x3caf4c(0xdf)](_0x23268e,_0x1d8d39);}if(this[_0x3caf4c(0xce)][_0x3caf4c(0xe2)][_0x3caf4c(0xad)](_0x2b5ee8)){const _0x52364b=this[_0x3caf4c(0xce)][_0x3caf4c(0xe2)][_0x3caf4c(0xe5)](_0x2b5ee8);this[_0x3caf4c(0xce)][_0x3caf4c(0xe2)][_0x3caf4c(0xcf)](_0x52364b,0x1);}}else{if(this[_0x3caf4c(0xcc)](_0x1d8d39)){const _0x321117=_0x4d1d75(_0x1d8d39,_0x3caf4c(0xda));this[_0x3caf4c(0xce)][_0x3caf4c(0xd0)][_0x3caf4c(0xad)](_0x321117)||this[_0x3caf4c(0xb5)](_0x1d8d39);}}}}}for(const _0x463415 of this[_0x3caf4c(0xce)][_0x3caf4c(0xe2)]){const _0x4706cc=_0x395e19(_0x3caf4c(0xda),_0x463415,_0x44f7cf);if(_0x4706cc){if(_0x10b4bf&&_0x10b4bf[_0x3caf4c(0xcd)]){this[_0x3caf4c(0xce)][_0x3caf4c(0xb6)]=_0x463415;const _0x49f0de=_0x10b4bf[_0x3caf4c(0xcd)][_0x3caf4c(0xb2)](!0x0);_0x3bdc83(_0x49f0de,_0x3caf4c(0xda),_0x463415),_0x3bdc83(_0x49f0de,_0x3caf4c(0xde),_0x3caf4c(0xa5)),_0x7e2f09(_0x4706cc,_0x49f0de);}else _0x324d33(_0x4706cc);}}if(_0x2139a3(_0x3caf4c(0x9f),null,_0x44f7cf)[_0x3caf4c(0xd1)](_0x3f64de=>{const _0x233732=_0x3caf4c,_0xcef06b=_0x4d1d75(_0x3f64de,_0x233732(0x9f)),_0x1910d7=_0x395e19(_0x233732(0xda),_0xcef06b,_0x44f7cf);_0x1910d7&&_0x6947f6(_0x1910d7,_0x3f64de);}),_0x2139a3(_0x3caf4c(0xda),_0x3caf4c(0xc5),_0x44f7cf)[_0x3caf4c(0xd1)](_0x3d34d9=>{const _0x2a070a=_0x3caf4c,_0x38af4b=this[_0x2a070a(0xba)](_0x3d34d9);_0x3bdc83(_0x3d34d9,_0x2a070a(0xda),_0x38af4b),this[_0x2a070a(0xce)][_0x2a070a(0xb9)][_0x2a070a(0xab)](_0x38af4b);}),this[_0x3caf4c(0xa3)](_0x44f7cf),_0x10b4bf&&_0x10b4bf[_0x3caf4c(0xd5)]&&this[_0x3caf4c(0xbd)](_0x44f7cf,_0x10b4bf[_0x3caf4c(0xb3)]||0x0),_0x10b4bf&&_0x10b4bf[_0x3caf4c(0xa0)]&&this[_0x3caf4c(0xce)][_0x3caf4c(0xb6)]){let _0x19c6e8=_0x395e19(_0x3caf4c(0xda),this[_0x3caf4c(0xce)][_0x3caf4c(0xb6)],_0x44f7cf);for(;_0x19c6e8;)_0x54fbc6(_0x19c6e8),_0x19c6e8=_0x19c6e8[_0x3caf4c(0xc6)];}return{'parsedContent':_0x44f7cf,'newNodeIds':this[_0x3caf4c(0xce)][_0x3caf4c(0xb9)],'modifiedNodeIds':this[_0x3caf4c(0xce)][_0x3caf4c(0xd0)],'removedNodeIds':this[_0x3caf4c(0xce)][_0x3caf4c(0xe2)]};}[_0x356d96(0xc8)](_0x21d62b,_0x5ac299,_0x1348d5){const _0x1d46cb=_0x356d96;for(const _0x3d2eea of _0x5ac299){const _0x28e86f=this[_0x1d46cb(0xba)](_0x3d2eea);_0x3bdc83(_0x3d2eea,_0x1d46cb(0xda),_0x28e86f),this[_0x1d46cb(0xce)][_0x1d46cb(0xb9)][_0x1d46cb(0xab)](_0x28e86f),this[_0x1d46cb(0xce)][_0x1d46cb(0xb6)]=_0x28e86f;}const _0x7de979=_0x1d46cb(0xa6)===_0x1348d5||_0x1d46cb(0xb7)===_0x1348d5?_0x5ac299[_0x1d46cb(0xc2)]():_0x5ac299;for(const _0x572e08 of _0x7de979)_0x1ec3ab(_0x21d62b,_0x572e08,_0x1348d5);}[_0x356d96(0xdf)](_0x1e20b3,_0x118c1e){const _0x3462e3=_0x356d96;if(!_0x1e20b3)return;if(_0x1bc519(_0x1e20b3,_0x118c1e))return;const _0x530f47=this[_0x3462e3(0xba)](_0x1e20b3);_0x3bdc83(_0x118c1e,_0x3462e3(0xda),_0x530f47),this[_0x3462e3(0xce)][_0x3462e3(0xd0)][_0x3462e3(0xab)](_0x530f47),this[_0x3462e3(0xce)][_0x3462e3(0xb6)]=_0x530f47,_0x7e2f09(_0x1e20b3,_0x118c1e[_0x3462e3(0xb2)](!0x0));}[_0x356d96(0xd3)](_0x2d5e8f,_0x4733f4,_0x558f4d){const _0x1388ae=_0x356d96,_0x1f1f82=this[_0x1388ae(0xdd)](_0x2d5e8f,!0x1);if(_0x1f1f82){const _0x2177b9=this[_0x1388ae(0xaa)](_0x1f1f82),_0x36564c=_0x395e19(_0x1388ae(0xda),_0x2177b9,_0x558f4d);if(_0x36564c)return[_0x36564c,_0x1388ae(0xb7)];this[_0x1388ae(0xce)][_0x1388ae(0xe3)][_0x1388ae(0xab)](_0x2177b9);}const _0x1280b2=this[_0x1388ae(0xa8)](_0x2d5e8f,!0x1);if(_0x1280b2){const _0x5cf650=this[_0x1388ae(0xaa)](_0x1280b2),_0x284a91=_0x395e19(_0x1388ae(0xda),_0x5cf650,_0x558f4d);if(_0x284a91)return[_0x284a91,_0x1388ae(0xa1)];this[_0x1388ae(0xce)][_0x1388ae(0xe3)][_0x1388ae(0xab)](_0x5cf650);}return _0x4733f4?_0x2d5e8f[_0x1388ae(0xb8)]?this[_0x1388ae(0xa7)](_0x2d5e8f,_0x558f4d):[_0x558f4d[_0x1388ae(0xdc)][_0x558f4d[_0x1388ae(0xdc)][_0x1388ae(0xae)]-0x1],_0x1388ae(0xb7)]:[_0x558f4d[_0x1388ae(0xdc)][0x0],_0x1388ae(0xa1)];}[_0x356d96(0xa7)](_0x30fdba,_0x3122d6){const _0x5b71f1=_0x356d96,_0x4bdec3=[],_0x277c69=this[_0x5b71f1(0xdd)](_0x30fdba,!0x0);if(_0x277c69){const _0x5068bb=this[_0x5b71f1(0xaa)](_0x277c69),_0x407791=_0x395e19(_0x5b71f1(0xda),_0x5068bb,_0x3122d6);_0x407791&&_0x4bdec3[_0x5b71f1(0xab)]([_0x407791,_0x5b71f1(0xb7)]);}const _0x5bf1c4=this[_0x5b71f1(0xa8)](_0x30fdba,!0x0);if(_0x5bf1c4){const _0x2453e1=this[_0x5b71f1(0xaa)](_0x5bf1c4),_0x14d6a6=_0x395e19(_0x5b71f1(0xda),_0x2453e1,_0x3122d6);_0x14d6a6&&_0x4bdec3[_0x5b71f1(0xab)]([_0x14d6a6,_0x5b71f1(0xa1)]);}if(_0x4bdec3[_0x5b71f1(0xae)]>0x1)return _0x2ec1c6(_0x4bdec3[0x0][0x0])<=_0x2ec1c6(_0x4bdec3[0x1][0x0])?_0x4bdec3[0x0]:_0x4bdec3[0x1];return 0x1===_0x4bdec3[_0x5b71f1(0xae)]?_0x4bdec3[0x0]:[_0x3122d6[_0x5b71f1(0xc3)],_0x5b71f1(0xb7)];}[_0x356d96(0xa8)](_0x310819,_0x152854){const _0xf726b2=_0x356d96;let _0x1a7a84=_0x310819[_0xf726b2(0xb8)],_0x599f91=null,_0x3d8477=!0x1;for(;_0x1a7a84;){if(_0x316885(_0x1a7a84)){if(this[_0xf726b2(0xcc)](_0x1a7a84)&&(_0x599f91=_0x1a7a84),this[_0xf726b2(0xca)](_0x1a7a84)&&_0x152854&&!_0x3d8477){_0x3d8477=!0x0,_0x1a7a84=_0x1a7a84[_0xf726b2(0xb8)];continue;}break;}const _0xd7cc87=_0x4d1d75(_0x1a7a84,_0xf726b2(0xda));if(_0xd7cc87&&_0xf726b2(0xc5)!==_0xd7cc87&&this[_0xf726b2(0xd6)][_0xf726b2(0xbe)](_0xd7cc87)){_0x599f91=_0x1a7a84;break;}_0x1a7a84=_0x1a7a84[_0xf726b2(0xb8)];}return _0x599f91;}[_0x356d96(0xdd)](_0xcf3fdc,_0x199da9){const _0x4bdc5f=_0x356d96;let _0x385df0=_0xcf3fdc[_0x4bdc5f(0xbc)],_0x3a0f0b=null,_0x51c7a8=!0x1;for(;_0x385df0;){if(_0x316885(_0x385df0)){if(this[_0x4bdc5f(0xcc)](_0x385df0)&&(_0x3a0f0b=_0x385df0),this[_0x4bdc5f(0xca)](_0x385df0)&&_0x199da9&&!_0x51c7a8){_0x51c7a8=!0x0,_0x385df0=_0x385df0[_0x4bdc5f(0xbc)];continue;}break;}const _0x3afb36=_0x4d1d75(_0x385df0,_0x4bdc5f(0xda));if(_0x3afb36&&_0x4bdc5f(0xc5)!==_0x3afb36&&this[_0x4bdc5f(0xd6)][_0x4bdc5f(0xbe)](_0x3afb36)){_0x3a0f0b=_0x385df0;break;}_0x385df0=_0x385df0[_0x4bdc5f(0xbc)];}return _0x3a0f0b;}[_0x356d96(0xa4)](_0x459a44){const _0x2fec2b=_0x356d96;_0x2dc514(_0x459a44)&&_0x2139a3(_0x2fec2b(0xda),null,_0x459a44)[_0x2fec2b(0xd1)](_0x26d898=>{const _0x23a58d=_0x2fec2b;if(this[_0x23a58d(0xd4)](_0x26d898)&&!this[_0x23a58d(0xb4)](_0x26d898)){const _0xb5c3e0=_0x4d1d75(_0x26d898,_0x23a58d(0xda));_0x3bdc83(_0x26d898,_0x23a58d(0x9f),_0xb5c3e0),_0x3bdc83(_0x26d898,_0x23a58d(0xda),null);}});}[_0x356d96(0xaa)](_0x17f256){const _0x1c077a=_0x356d96;if(!_0x17f256)return null;if(_0x2dc514(_0x17f256))return _0x4d1d75(_0x17f256,_0x1c077a(0xda));if(_0x316885(_0x17f256)){const _0x530897=_0x2e778c(_0x17f256)[_0x1c077a(0xd2)](/removed[\s*-]data-id="([^"]+)"/);if(_0x530897&&_0x530897[0x1])return _0x530897[0x1];}return null;}[_0x356d96(0xb5)](_0x9c619b){const _0x5d0615=_0x356d96;if(_0x316885(_0x9c619b)){const _0x14fe60=_0x2e778c(_0x9c619b)[_0x5d0615(0xd2)](/removed[\s*-]data-id="([^"]+)"/);_0x14fe60&&_0x14fe60[0x1]&&this[_0x5d0615(0xce)][_0x5d0615(0xe2)][_0x5d0615(0xab)](_0x14fe60[0x1]);}}[_0x356d96(0xba)](_0x510523){const _0x5a4801=_0x356d96;return this[_0x5a4801(0xd4)](_0x510523)?_0x4d1d75(_0x510523,_0x5a4801(0xda)):this[_0x5a4801(0xac)]();}[_0x356d96(0xa3)](_0x40baf7){const _0x103070=_0x356d96;_0xbd4943(_0x40baf7)[_0x103070(0xcb)](_0x3d7928=>this[_0x103070(0xcc)](_0x3d7928)||this[_0x103070(0xca)](_0x3d7928))[_0x103070(0xd1)](_0x7d007a=>{_0x324d33(_0x7d007a);});}[_0x356d96(0xbb)](_0x496455){const _0x4bfdf1=_0x356d96,_0x4bc342=_0x496455[_0x4bfdf1(0xdc)],_0x16377c=_0x4bc342[_0x4bc342[_0x4bfdf1(0xae)]-0x1];_0x16377c&&_0x2dc514(_0x16377c)&&_0x3bdc83(_0x16377c,_0x4bfdf1(0xd9),_0x4bfdf1(0xa5));}[_0x356d96(0xbd)](_0x4a95ad,_0x3c2bf9){const _0x223418=_0x356d96,_0x3d4ad8=_0x395e19(_0x223418(0xd9),_0x223418(0xa5),_0x4a95ad);if(!_0x3d4ad8)return;const _0x20abf6=_0x26633a(_0x3d4ad8)[_0x223418(0xa2)](0x0,-0x1),_0x598d51=_0x20abf6[_0x223418(0xae)];let _0x479192=_0x3d4ad8;if(_0x598d51>_0x3c2bf9){let _0x1d7add=_0x598d51,_0x5a850c=null;for(;_0x1d7add>_0x3c2bf9&&_0x1d7add>=0x0;)_0x1d7add--,_0x5a850c=_0x20abf6[_0x1d7add];_0x5a850c&&(_0x479192=_0x5a850c,_0x3bdc83(_0x3d4ad8,_0x223418(0xd9),null),_0x3bdc83(_0x5a850c,_0x223418(0xd9),_0x223418(0xa5)));}else{if(_0x598d51<_0x3c2bf9){let _0x477682=_0x598d51,_0x2f0c5d=_0x3d4ad8;for(;_0x477682<_0x3c2bf9;){const _0x1843c8=_0x2f0c5d[_0x223418(0xdc)][_0x223418(0xcb)](_0x1e43f6=>_0x2dc514(_0x1e43f6));if(0x0===_0x1843c8[_0x223418(0xae)])break;_0x477682++,_0x2f0c5d=_0x1843c8[_0x1843c8[_0x223418(0xae)]-0x1];}_0x2f0c5d&&(_0x479192=_0x2f0c5d,_0x3bdc83(_0x3d4ad8,_0x223418(0xd9),null),_0x3bdc83(_0x2f0c5d,_0x223418(0xd9),_0x223418(0xa5)));}}let _0x3fb4d9=_0x479192;for(;_0x3fb4d9;){for(;_0x3fb4d9[_0x223418(0xb8)];)_0x3fb4d9=_0x3fb4d9[_0x223418(0xb8)],_0x2dc514(_0x3fb4d9)&&_0x3bdc83(_0x3fb4d9,_0x223418(0xd9),_0x223418(0xa5));_0x3fb4d9=_0x3fb4d9[_0x223418(0xc6)];}}[_0x356d96(0xd7)](_0x4bd529){const _0x1b16e9=_0x356d96;return Boolean(_0x1b16e9(0xc5)===_0x4d1d75(_0x4bd529,_0x1b16e9(0xda)));}[_0x356d96(0xd4)](_0x5846ee){const _0x2aadbd=_0x356d96;return Boolean((_0x4d1d75(_0x5846ee,_0x2aadbd(0xda))||'')[_0x2aadbd(0xae)]>0x0&&_0x2aadbd(0xc5)!==_0x4d1d75(_0x5846ee,_0x2aadbd(0xda)));}[_0x356d96(0xcc)](_0x351a67){const _0xfe4235=_0x356d96;return!!_0x351a67&&Boolean(_0x316885(_0x351a67)&&_0x2e778c(_0x351a67)[_0xfe4235(0xd2)](/removed[\s*-]data-id="[^"]+"/));}[_0x356d96(0xb4)](_0x4c8077){const _0xdb937c=_0x356d96;let _0x437a6d=_0x4c8077[_0xdb937c(0xc6)];for(;_0x437a6d;){if(_0x4d1d75(_0x437a6d,_0xdb937c(0x9f)))return!0x0;_0x437a6d=_0x437a6d[_0xdb937c(0xc6)];}return!0x1;}[_0x356d96(0xca)](_0x5c0914){const _0x2e6913=_0x356d96;return Boolean(_0x316885(_0x5c0914)&&_0x2e778c(_0x5c0914)[_0x2e6913(0xd2)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x5de3(){const _0x11da0a=['128014TtmbpJ','_m2html','convertMarkdownToHTML','parseAndNormalizeHTML','17082wTyVgj','_parseHTML','parse','606QOSngP','58235qYFOpz','7CMpVrm','children','replace','</dummy>','462pZPMjt','1537552DuhuZq','2426102jsPkZc','66852XXSWkD','3IyPxTl','<dummy>','91aVmMES','2290QJiilf','1168lFovXS','283356xoRcUW'];_0x5de3=function(){return _0x11da0a;};return _0x5de3();}const _0x5eb184=_0xfb57;function _0xfb57(_0x4c396d,_0x5c97a9){const _0x5de3d1=_0x5de3();return _0xfb57=function(_0xfb5788,_0x2a3e69){_0xfb5788=_0xfb5788-0xce;let _0x35b4cd=_0x5de3d1[_0xfb5788];return _0x35b4cd;},_0xfb57(_0x4c396d,_0x5c97a9);}(function(_0x33f342,_0x538e52){const _0x1b4bfc=_0xfb57,_0x5be61e=_0x33f342();while(!![]){try{const _0xd9b5ce=parseInt(_0x1b4bfc(0xd0))/0x1*(parseInt(_0x1b4bfc(0xd6))/0x2)+parseInt(_0x1b4bfc(0xda))/0x3*(-parseInt(_0x1b4bfc(0xd4))/0x4)+-parseInt(_0x1b4bfc(0xde))/0x5*(-parseInt(_0x1b4bfc(0xdd))/0x6)+parseInt(_0x1b4bfc(0xdf))/0x7*(-parseInt(_0x1b4bfc(0xe4))/0x8)+-parseInt(_0x1b4bfc(0xcf))/0x9*(-parseInt(_0x1b4bfc(0xd3))/0xa)+parseInt(_0x1b4bfc(0xe3))/0xb*(parseInt(_0x1b4bfc(0xd5))/0xc)+parseInt(_0x1b4bfc(0xd2))/0xd*(-parseInt(_0x1b4bfc(0xce))/0xe);if(_0xd9b5ce===_0x538e52)break;else _0x5be61e['push'](_0x5be61e['shift']());}catch(_0x362703){_0x5be61e['push'](_0x5be61e['shift']());}}}(_0x5de3,0xf27d1));import{ObservableMixin as _0x36f367}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2097a5}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x13e420}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x36f367(){[_0x5eb184(0xd7)];constructor(){const _0x197269=_0x5eb184;super(),this[_0x197269(0xd7)]=new _0x2097a5();}[_0x5eb184(0xd8)](_0x1c572e){const _0x10b08d=_0x5eb184,_0x3041b0=this[_0x10b08d(0xd7)][_0x10b08d(0xdc)](_0x1c572e);return this[_0x10b08d(0xd9)](_0x3041b0);}[_0x5eb184(0xd9)](_0x594cb7){const _0x59f448=_0x5eb184;return this[_0x59f448(0xdb)](_0x594cb7);}[_0x5eb184(0xdb)](_0x19037c){const _0x52d18c=_0x5eb184,_0x412414=_0x19037c[_0x52d18c(0xe1)](/^\t+/gm,'\x20')[_0x52d18c(0xe1)](/\n*/g,'')[_0x52d18c(0xe1)](/\s+/g,'\x20')[_0x52d18c(0xe1)](/<[^>]*?$/g,''),_0x4a40e3=_0x13e420(_0x52d18c(0xd1)+_0x412414+_0x52d18c(0xe2));return _0x4a40e3[_0x52d18c(0xe0)]=_0x4a40e3[_0x52d18c(0xe0)][0x0][_0x52d18c(0xe0)],_0x4a40e3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2d4b(_0x203910,_0x1d0f24){var _0x8027bc=_0x8027();return _0x2d4b=function(_0x2d4b4d,_0x20cc37){_0x2d4b4d=_0x2d4b4d-0x165;var _0x325a22=_0x8027bc[_0x2d4b4d];return _0x325a22;},_0x2d4b(_0x203910,_0x1d0f24);}(function(_0x2ba5fa,_0x2f71d6){var _0x3fbb06=_0x2d4b,_0x56d934=_0x2ba5fa();while(!![]){try{var _0xcf05b5=-parseInt(_0x3fbb06(0x168))/0x1*(-parseInt(_0x3fbb06(0x172))/0x2)+-parseInt(_0x3fbb06(0x165))/0x3+parseInt(_0x3fbb06(0x16b))/0x4+parseInt(_0x3fbb06(0x16e))/0x5*(parseInt(_0x3fbb06(0x16a))/0x6)+-parseInt(_0x3fbb06(0x16c))/0x7+parseInt(_0x3fbb06(0x171))/0x8*(parseInt(_0x3fbb06(0x16d))/0x9)+parseInt(_0x3fbb06(0x166))/0xa*(parseInt(_0x3fbb06(0x16f))/0xb);if(_0xcf05b5===_0x2f71d6)break;else _0x56d934['push'](_0x56d934['shift']());}catch(_0x311ebb){_0x56d934['push'](_0x56d934['shift']());}}}(_0x8027,0xaea67));import{View as _0x77a9ad}from'ckeditor5/src/ui.js';import{getTranslation as _0x2e5b40}from'../../aicore/utils/common-translations.js';function _0x8027(){var _0x3f49d5=['ck-ai-disclaimer','3792XTpNae','1937274DrmkMY','ck-ai-disclaimer__content','div','2095929EyQvbJ','197170UQaKwD','AI_DISCLAIMER_TEXT','1qIFRxB','setTemplate','102HicVLo','2135916AoOkOF','8140692inrZgh','10431mEOxmm','102215WdortE','99QAdwHM'];_0x8027=function(){return _0x3f49d5;};return _0x8027();}export class AIDisclaimerView extends _0x77a9ad{constructor(_0x4c5a5e){var _0x1f4180=_0x2d4b;super(_0x4c5a5e),this[_0x1f4180(0x169)]({'tag':_0x1f4180(0x174),'attributes':{'class':['ck',_0x1f4180(0x170)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1f4180(0x173)]},'children':[{'text':_0x2e5b40(_0x4c5a5e,_0x1f4180(0x167))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4327(_0x3b9614,_0x2d3b34){const _0x10e471=_0x10e4();return _0x4327=function(_0x43277f,_0x3b80cc){_0x43277f=_0x43277f-0x167;let _0x10ffb0=_0x10e471[_0x43277f];return _0x10ffb0;},_0x4327(_0x3b9614,_0x2d3b34);}const _0x1186d3=_0x4327;(function(_0x111b46,_0x296051){const _0x1ccc2f=_0x4327,_0x59a55d=_0x111b46();while(!![]){try{const _0x525ee9=parseInt(_0x1ccc2f(0x176))/0x1*(-parseInt(_0x1ccc2f(0x16a))/0x2)+-parseInt(_0x1ccc2f(0x175))/0x3*(-parseInt(_0x1ccc2f(0x189))/0x4)+-parseInt(_0x1ccc2f(0x16d))/0x5+-parseInt(_0x1ccc2f(0x16e))/0x6*(parseInt(_0x1ccc2f(0x17c))/0x7)+-parseInt(_0x1ccc2f(0x178))/0x8+parseInt(_0x1ccc2f(0x173))/0x9*(parseInt(_0x1ccc2f(0x172))/0xa)+-parseInt(_0x1ccc2f(0x185))/0xb*(-parseInt(_0x1ccc2f(0x179))/0xc);if(_0x525ee9===_0x296051)break;else _0x59a55d['push'](_0x59a55d['shift']());}catch(_0x3bec9c){_0x59a55d['push'](_0x59a55d['shift']());}}}(_0x10e4,0xd0cf3));import{View as _0x13353b}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x13353b{constructor(_0x40154b,_0x168777){const _0x377d6c=_0x4327;super(_0x40154b),this[_0x377d6c(0x174)]({'tag':_0x377d6c(0x16f),'attributes':{'class':['ck',_0x377d6c(0x186)]},'children':this[_0x377d6c(0x190)](_0x168777)});}[_0x1186d3(0x190)](_0x53b337){const _0x489605=_0x1186d3,_0x25a311=['ck',_0x489605(0x183)];return _0x53b337[_0x489605(0x16b)](_0x10402a=>{const _0x20ee2d=_0x489605;let _0x39e905='';switch(_0x10402a[_0x20ee2d(0x177)][_0x20ee2d(0x191)]){case _0x20ee2d(0x17b):_0x39e905=_0x20ee2d(0x18f);break;case _0x20ee2d(0x170):_0x39e905=_0x20ee2d(0x187);break;case _0x20ee2d(0x180):_0x39e905=_0x20ee2d(0x182);}return{'tag':_0x10402a[_0x20ee2d(0x18e)],'attributes':{'class':[..._0x25a311,_0x10402a[_0x20ee2d(0x177)][_0x20ee2d(0x18d)]?_0x10402a[_0x20ee2d(0x177)][_0x20ee2d(0x18d)]:''],'style':_0x20ee2d(0x18a)+_0x10402a[_0x20ee2d(0x177)][_0x20ee2d(0x171)]+_0x20ee2d(0x168)+_0x10402a[_0x20ee2d(0x177)][_0x20ee2d(0x17d)]+';'+_0x39e905}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x188),'height':_0x1186d3(0x16c),'align':_0x1186d3(0x17b)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x167),'height':_0x1186d3(0x18c),'align':_0x1186d3(0x17b)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x188),'height':_0x1186d3(0x181),'align':_0x1186d3(0x17b)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x17f),'height':_0x1186d3(0x18c),'align':_0x1186d3(0x17b)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x188),'height':_0x1186d3(0x169),'align':_0x1186d3(0x17b)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x167),'height':_0x1186d3(0x18c),'align':_0x1186d3(0x17b)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x188),'height':_0x1186d3(0x181),'align':_0x1186d3(0x17b)}}],'aiHistory':ta(0x5,_0x1186d3(0x188),_0x1186d3(0x184),_0x1186d3(0x17b)),'aiChatResources':ta(0x8,_0x1186d3(0x188),_0x1186d3(0x17a),_0x1186d3(0x17b)),'aiReviewChecks':[{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x17e),'height':_0x1186d3(0x17a),'align':_0x1186d3(0x180)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x188),'height':_0x1186d3(0x17a),'align':_0x1186d3(0x180)}},{'tag':_0x1186d3(0x16f),'attributes':{'width':_0x1186d3(0x17e),'height':_0x1186d3(0x17a),'align':_0x1186d3(0x180)}}]};function ta(_0x3ce69a,_0x3328cd,_0xb4acfd,_0x3b491e){const _0x91859e=_0x1186d3;return new Array(_0x3ce69a)[_0x91859e(0x18b)](null)[_0x91859e(0x16b)](()=>({'tag':_0x91859e(0x16f),'attributes':{'width':_0x3328cd,'height':_0xb4acfd,'align':_0x3b491e}}));}function _0x10e4(){const _0x5f2f45=['align','250px',';\x20height:\x20','140px','2946jYbsWs','map','72px','7043600ZanPkq','54tewXEf','div','center','width','21740pyrrFO','2556aXgdno','setTemplate','238281atLRWV','17ZnnLRT','attributes','5159968ZsicQE','20292fPrBUo','24px','right','618961rrfGbe','height','128px','150px','left','88px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','ck-ai-skeleton__item','44px','13013MwMvhh','ck-ai-skeleton','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','100%','56QaBZpB','width:\x20','fill','40px','class','tag','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','_createSkeletonItems'];_0x10e4=function(){return _0x5f2f45;};return _0x10e4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5caf(){const _0x2ed4bc=['82506yDhyTj','5430iEXnNr','653028cWNCvP','2969816eeeHFM','ck-ai-spinner','281556WKepta','940wHAJDQ','9oVLKHc','span','ck-ai-spinner_','140378isapZh','538636LuKDvK','extendTemplate'];_0x5caf=function(){return _0x2ed4bc;};return _0x5caf();}(function(_0x52c519,_0x5e6af0){const _0xe7423a=_0x2dca,_0x3b2242=_0x52c519();while(!![]){try{const _0x6253bb=parseInt(_0xe7423a(0x1e2))/0x1+parseInt(_0xe7423a(0x1ec))/0x2+parseInt(_0xe7423a(0x1e4))/0x3+-parseInt(_0xe7423a(0x1e8))/0x4*(-parseInt(_0xe7423a(0x1e3))/0x5)+-parseInt(_0xe7423a(0x1e7))/0x6+-parseInt(_0xe7423a(0x1e0))/0x7+-parseInt(_0xe7423a(0x1e5))/0x8*(parseInt(_0xe7423a(0x1e9))/0x9);if(_0x6253bb===_0x5e6af0)break;else _0x3b2242['push'](_0x3b2242['shift']());}catch(_0x2fe556){_0x3b2242['push'](_0x3b2242['shift']());}}}(_0x5caf,0x1fdb0));import{SpinnerView as _0x10c2e5}from'ckeditor5/src/ui.js';function _0x2dca(_0x1b5072,_0x20a102){const _0x5caf8f=_0x5caf();return _0x2dca=function(_0x2dca8c,_0x5af137){_0x2dca8c=_0x2dca8c-0x1e0;let _0x2991e5=_0x5caf8f[_0x2dca8c];return _0x2991e5;},_0x2dca(_0x1b5072,_0x20a102);}export class AISpinnerView extends _0x10c2e5{constructor(_0x530f19=void 0x0){const _0x2cb000=_0x2dca;super();const _0x40aef8=_0x530f19?_0x2cb000(0x1eb)+_0x530f19:'';this[_0x2cb000(0x1e1)]({'tag':_0x2cb000(0x1ea),'attributes':{'class':[_0x2cb000(0x1e6),_0x40aef8]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59dc8e=_0x36cf;(function(_0x3cc597,_0x5b21c5){const _0x42f5a0=_0x36cf,_0x5e2d8f=_0x3cc597();while(!![]){try{const _0x2627fb=-parseInt(_0x42f5a0(0x10c))/0x1+-parseInt(_0x42f5a0(0x12a))/0x2*(parseInt(_0x42f5a0(0x124))/0x3)+-parseInt(_0x42f5a0(0x127))/0x4+-parseInt(_0x42f5a0(0x107))/0x5+-parseInt(_0x42f5a0(0x129))/0x6+parseInt(_0x42f5a0(0x123))/0x7*(-parseInt(_0x42f5a0(0xfe))/0x8)+parseInt(_0x42f5a0(0x118))/0x9;if(_0x2627fb===_0x5b21c5)break;else _0x5e2d8f['push'](_0x5e2d8f['shift']());}catch(_0x5b97a2){_0x5e2d8f['push'](_0x5e2d8f['shift']());}}}(_0x5c53,0x50630));function _0x5c53(){const _0x570bd1=['754EzQATG','customView','dislikeButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','AI_MINI_TOOLBAR_LIKE','_setupShowChangesButton','17312JTyFUP','length','showChanges','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChangesButton','execute','ck-ai-mini-toolbar','class','ck-ai-mini-toolbar\x20ck-hidden','1479200cXaxJt','showDislike','_config','ck-ai-mini-toolbar-copy-button','dislike','235113ecYesY','showLike','locale','items','children','isEnabled','isOn','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar-copy-button__check-mark','full','showCopy','set','18751959PjnpcH','add','isLoading','likeButton','AI_MINI_TOOLBAR_DISLIKE','addMany','like','_setupCopyButton','bind','_setupRatingButtons','toggleShowChanges','1246IhFysl','1311pJmIDG','copyButton','fire','462648xagEFQ','extendTemplate','3346386auwWhg'];_0x5c53=function(){return _0x570bd1;};return _0x5c53();}import{ButtonView as _0x233837,IconView as _0x5cca79,ToolbarView as _0x9e3413}from'ckeditor5/src/ui.js';function _0x36cf(_0x20b8b2,_0x59dc20){const _0x5c53dc=_0x5c53();return _0x36cf=function(_0x36cf23,_0x18b9c4){_0x36cf23=_0x36cf23-0xfa;let _0x3f4a00=_0x5c53dc[_0x36cf23];return _0x3f4a00;},_0x36cf(_0x20b8b2,_0x59dc20);}import{IconCheck as _0x16629b,IconCopy as _0x9b19cc,IconShowChangesOff as _0x24b5e9,IconShowChangesOn as _0x3fd6f8,IconThumbDown as _0x3b3af0,IconThumbUp as _0x1f446b}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2fab33}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x9e3413{[_0x59dc8e(0x125)];[_0x59dc8e(0x11b)];[_0x59dc8e(0xfa)];[_0x59dc8e(0x102)];[_0x59dc8e(0x109)];constructor(_0x570354,_0x6d335d={},_0x4d76b5){const _0x56cb88=_0x59dc8e;super(_0x570354),this[_0x56cb88(0x117)](_0x56cb88(0x11a),!0x1),this[_0x56cb88(0x109)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x6d335d};const _0x46127c=!(this[_0x56cb88(0x109)][_0x56cb88(0x116)]||this[_0x56cb88(0x109)][_0x56cb88(0x100)]||this[_0x56cb88(0x109)][_0x56cb88(0x10d)]||this[_0x56cb88(0x109)][_0x56cb88(0x108)]||this[_0x56cb88(0x109)][_0x56cb88(0x12b)]?.[_0x56cb88(0xff)]);this[_0x56cb88(0x105)]=_0x46127c?_0x56cb88(0x106):_0x56cb88(0x104),this[_0x56cb88(0x109)][_0x56cb88(0x116)]&&(this[_0x56cb88(0x11f)](),this[_0x56cb88(0x10f)][_0x56cb88(0x119)](this[_0x56cb88(0x125)])),this[_0x56cb88(0x109)][_0x56cb88(0x100)]&&(this[_0x56cb88(0xfd)](_0x4d76b5),this[_0x56cb88(0x10f)][_0x56cb88(0x119)](this[_0x56cb88(0x102)])),this[_0x56cb88(0x121)](),this[_0x56cb88(0x109)][_0x56cb88(0x10d)]&&this[_0x56cb88(0x10f)][_0x56cb88(0x119)](this[_0x56cb88(0x11b)]),this[_0x56cb88(0x109)][_0x56cb88(0x108)]&&this[_0x56cb88(0x10f)][_0x56cb88(0x119)](this[_0x56cb88(0xfa)]),this[_0x56cb88(0x109)][_0x56cb88(0x12b)]&&this[_0x56cb88(0x10f)][_0x56cb88(0x11d)](this[_0x56cb88(0x109)][_0x56cb88(0x12b)]);}[_0x59dc8e(0x121)](){const _0x5a64c4=_0x59dc8e;this[_0x5a64c4(0x11b)]=new _0x233837(this[_0x5a64c4(0x10e)]),this[_0x5a64c4(0x11b)][_0x5a64c4(0x117)]({'icon':_0x1f446b,'label':_0x2fab33(this[_0x5a64c4(0x10e)],_0x5a64c4(0xfc)),'tooltip':!0x0}),this[_0x5a64c4(0x11b)][_0x5a64c4(0x120)](_0x5a64c4(0x111))['to'](this,_0x5a64c4(0x11a),_0x47ae54=>!_0x47ae54),this[_0x5a64c4(0x11b)]['on'](_0x5a64c4(0x103),()=>{const _0x2fed6e=_0x5a64c4;this[_0x2fed6e(0x126)](_0x2fed6e(0x11e));}),this[_0x5a64c4(0xfa)]=new _0x233837(this[_0x5a64c4(0x10e)]),this[_0x5a64c4(0xfa)][_0x5a64c4(0x117)]({'icon':_0x3b3af0,'label':_0x2fab33(this[_0x5a64c4(0x10e)],_0x5a64c4(0x11c)),'tooltip':!0x0}),this[_0x5a64c4(0xfa)][_0x5a64c4(0x120)](_0x5a64c4(0x111))['to'](this,_0x5a64c4(0x11a),_0x294cca=>!_0x294cca),this[_0x5a64c4(0xfa)]['on'](_0x5a64c4(0x103),()=>{const _0x5226b5=_0x5a64c4;this[_0x5226b5(0x126)](_0x5226b5(0x10b));});}[_0x59dc8e(0x11f)](){const _0x393f8d=_0x59dc8e;this[_0x393f8d(0x125)]=new _0x233837(this[_0x393f8d(0x10e)]),this[_0x393f8d(0x125)][_0x393f8d(0x117)]({'icon':_0x9b19cc,'label':_0x2fab33(this[_0x393f8d(0x10e)],_0x393f8d(0x113)),'class':_0x393f8d(0x10a),'tooltip':!0x0}),this[_0x393f8d(0x125)][_0x393f8d(0x120)](_0x393f8d(0x111))['to'](this,_0x393f8d(0x11a),_0x2ba44e=>!_0x2ba44e);const _0x424f26=new _0x5cca79();_0x424f26[_0x393f8d(0x117)]({'content':_0x16629b}),_0x424f26[_0x393f8d(0x128)]({'attributes':{'class':[_0x393f8d(0x114)]}}),this[_0x393f8d(0x125)]['on'](_0x393f8d(0x103),()=>{const _0x33b870=_0x393f8d;this[_0x33b870(0x125)][_0x33b870(0x105)]=_0x33b870(0x101),setTimeout(()=>{const _0x91e4b6=_0x33b870;this[_0x91e4b6(0x125)][_0x91e4b6(0x105)]=_0x91e4b6(0x10a);},0x7d0);}),this[_0x393f8d(0x125)][_0x393f8d(0x110)][_0x393f8d(0x119)](_0x424f26);}[_0x59dc8e(0xfd)](_0x1468bc){const _0xba5e60=_0x59dc8e;this[_0xba5e60(0x102)]=new _0x233837(this[_0xba5e60(0x10e)]),this[_0xba5e60(0x102)][_0xba5e60(0x117)]({'icon':_0x24b5e9,'label':_0x2fab33(this[_0xba5e60(0x10e)],_0xba5e60(0xfb)),'withText':_0xba5e60(0x115)==this[_0xba5e60(0x109)][_0xba5e60(0x100)],'tooltip':_0xba5e60(0x115)!=this[_0xba5e60(0x109)][_0xba5e60(0x100)],'isOn':_0x1468bc}),this[_0xba5e60(0x102)][_0xba5e60(0x120)](_0xba5e60(0x111))['to'](this,_0xba5e60(0x11a),_0x310c9a=>!_0x310c9a),this[_0xba5e60(0x102)]['on'](_0xba5e60(0x103),()=>{const _0x3b0ed5=_0xba5e60,_0x35eca8=!this[_0x3b0ed5(0x102)][_0x3b0ed5(0x112)];this[_0x3b0ed5(0x102)][_0x3b0ed5(0x117)]({'isOn':_0x35eca8,'icon':_0x35eca8?_0x3fd6f8:_0x24b5e9}),this[_0x3b0ed5(0x126)](_0x3b0ed5(0x122),_0x35eca8);});}}
|
|
@@ -9,14 +9,17 @@ import { type Locale } from 'ckeditor5/src/utils.js';
|
|
|
9
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from './aisuggestioncontentpartview.js';
|
|
11
11
|
import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js';
|
|
12
|
+
import { type AISuggestionActionName } from '../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
13
|
+
import { type AIReplyChangeGroupState } from '../../model/aireply.js';
|
|
12
14
|
/**
|
|
13
15
|
* The inner view of the suggestion container that displays the content of the suggestion (or multiple parts of it).
|
|
14
16
|
*/
|
|
15
17
|
export declare class AISuggestionBodyView extends View<HTMLDivElement> {
|
|
16
18
|
hasPendingParts: boolean;
|
|
17
|
-
constructor(locale: Locale,
|
|
19
|
+
constructor(locale: Locale, options: {
|
|
18
20
|
areActionsDisabled: boolean;
|
|
19
21
|
showUnchangedParts: boolean;
|
|
22
|
+
availableActions: Array<AISuggestionActionName>;
|
|
20
23
|
});
|
|
21
24
|
get partsCount(): number;
|
|
22
25
|
updateContentParts({ parts, renderingStrategy, abortSignal }: {
|
|
@@ -24,7 +27,7 @@ export declare class AISuggestionBodyView extends View<HTMLDivElement> {
|
|
|
24
27
|
renderingStrategy: AIContentRenderingStrategy;
|
|
25
28
|
abortSignal?: AbortSignal;
|
|
26
29
|
}): Promise<void>;
|
|
27
|
-
updatePartState(index: number, state:
|
|
30
|
+
updatePartState(index: number, state: AIReplyChangeGroupState): void;
|
|
28
31
|
getPartView(index: number): AISuggestionBodyViewContentPartView | null;
|
|
29
32
|
/**
|
|
30
33
|
* Marks the body view as done.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ea3af=_0x407f;(function(_0x120669,_0x317eea){const _0x98c0c4=_0x407f,_0x2a3306=_0x120669();while(!![]){try{const _0x1495c6=-parseInt(_0x98c0c4(0x12c))/0x1*(parseInt(_0x98c0c4(0x162))/0x2)+-parseInt(_0x98c0c4(0x14d))/0x3*(parseInt(_0x98c0c4(0x134))/0x4)+-parseInt(_0x98c0c4(0x150))/0x5*(-parseInt(_0x98c0c4(0x147))/0x6)+-parseInt(_0x98c0c4(0x14b))/0x7*(-parseInt(_0x98c0c4(0x163))/0x8)+-parseInt(_0x98c0c4(0x14e))/0x9*(-parseInt(_0x98c0c4(0x151))/0xa)+-parseInt(_0x98c0c4(0x13e))/0xb+-parseInt(_0x98c0c4(0x157))/0xc*(-parseInt(_0x98c0c4(0x160))/0xd);if(_0x1495c6===_0x317eea)break;else _0x2a3306['push'](_0x2a3306['shift']());}catch(_0x48eb7d){_0x2a3306['push'](_0x2a3306['shift']());}}}(_0x1f7c,0x3fd7d));import{View as _0x5c98ad}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x3047db}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5cd060}from'../../utils/eventnames.js';function _0x407f(_0x3c0620,_0x52e280){const _0x1f7c5f=_0x1f7c();return _0x407f=function(_0x407f53,_0x6392f1){_0x407f53=_0x407f53-0x12a;let _0x49fbcf=_0x1f7c5f[_0x407f53];return _0x49fbcf;},_0x407f(_0x3c0620,_0x52e280);}import{PromiseQueue as _0x54361f}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0xd8e5d0}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x4a330f}from'../../utils/common-translations.js';function _0x1f7c(){const _0x2fc2d0=['delegate','find','749056gOxzZF','hasChanges','setTemplate','_areActionsDisabled','addEventListener','forEach','_availableActions','setContent','getPartView','7194OGZpns','ck-ai-suggestion__body','ck-ai-suggestion__body__content-parts','hasNonEmptyParts','4851BanGWh','partDefinition','3KnVXOE','5463ZIXOfj','updatePartState','5uJRsNl','5510GmvWsk','add','updateContentParts','_children','pending','toggleHeader','36PRsWUV','abort','queueEmptyPromise','push','partsCount','some','_emptyPartsWarningView','_showUnchangedParts','index','2152189XbiKwj','locale','2jvuYaE','648qApItZ','warning','set','from','filter','findIndex','markAsDone','291073GuQAwo','createCollection','state','isVisible','first','AI_SUGGESTION_NO_PARTS_WARNING','AI_SUGGESTION_EMPTY_PART_WARNING','empty-parts-warning','1071112dOsUGM','hasPendingParts','div','_updateContentPartsPromiseQueue','_cachedContentParts','updateContent','enqueue','length'];_0x1f7c=function(){return _0x2fc2d0;};return _0x1f7c();}export class AISuggestionBodyView extends _0x5c98ad{[_0x5ea3af(0x154)];[_0x5ea3af(0x141)];[_0x5ea3af(0x15e)];[_0x5ea3af(0x137)];[_0x5ea3af(0x15d)];[_0x5ea3af(0x144)];[_0x5ea3af(0x138)]=[];constructor(_0x461334,_0x6a9ca7){const _0x224a6d=_0x5ea3af;super(_0x461334);const {areActionsDisabled:_0x14cb2c,showUnchangedParts:_0x51ab9f,availableActions:_0x24cac1}=_0x6a9ca7;this[_0x224a6d(0x141)]=_0x14cb2c,this[_0x224a6d(0x15e)]=_0x51ab9f,this[_0x224a6d(0x144)]=_0x24cac1,this[_0x224a6d(0x165)](_0x224a6d(0x135),!0x1),this[_0x224a6d(0x154)]=this[_0x224a6d(0x12d)](),this[_0x224a6d(0x137)]=new _0x54361f(),this[_0x224a6d(0x15d)]=new _0xd8e5d0({'id':_0x224a6d(0x133),'initialContent':_0x4a330f(_0x461334,_0x224a6d(0x132)),'level':_0x224a6d(0x164)}),this[_0x224a6d(0x15d)][_0x224a6d(0x12f)]=!0x1,this[_0x224a6d(0x140)]({'tag':_0x224a6d(0x136),'attributes':{'class':['ck',_0x224a6d(0x148)]},'children':[{'tag':_0x224a6d(0x136),'attributes':{'class':['ck',_0x224a6d(0x149)]},'children':this[_0x224a6d(0x154)]},this[_0x224a6d(0x15d)]]});}get[_0x5ea3af(0x15b)](){const _0x5ee190=_0x5ea3af;return this[_0x5ee190(0x154)][_0x5ee190(0x13b)];}async[_0x5ea3af(0x153)]({parts:_0x3c001b,renderingStrategy:_0x13f5a9,abortSignal:_0x5421a9}){const _0x1a87df=_0x5ea3af;this[_0x1a87df(0x154)][_0x1a87df(0x13b)]?_0x3c001b[_0x1a87df(0x143)](_0x54ee99=>{const _0x137fc5=_0x1a87df,_0x285633=this[_0x137fc5(0x138)][_0x137fc5(0x12a)](_0xdf54c2=>_0xdf54c2[_0x137fc5(0x15f)]==_0x54ee99[_0x137fc5(0x15f)]);-0x1===_0x285633?this[_0x137fc5(0x138)][_0x137fc5(0x15a)](_0x54ee99):this[_0x137fc5(0x138)][_0x285633]=_0x54ee99;}):this[_0x1a87df(0x138)]=_0x3c001b;for(const _0x3ce782 of _0x3c001b[_0x1a87df(0x167)](_0x23ee00=>_0x23ee00[_0x1a87df(0x13f)]))this[_0x1a87df(0x137)][_0x1a87df(0x13a)](async _0x42e731=>{const _0x59e3c0=_0x1a87df;let _0x31e93e=this[_0x59e3c0(0x146)](_0x3ce782[_0x59e3c0(0x15f)]);_0x31e93e||(_0x31e93e=new _0x3047db(this[_0x59e3c0(0x161)],{'part':_0x3ce782,'uiIndex':this[_0x59e3c0(0x154)][_0x59e3c0(0x13b)]+0x1,'areActionsDisabled':this[_0x59e3c0(0x141)],'availableActions':this[_0x59e3c0(0x144)]}),_0x31e93e[_0x59e3c0(0x13c)](..._0x5cd060)['to'](this),this[_0x59e3c0(0x154)][_0x59e3c0(0x152)](_0x31e93e),this[_0x59e3c0(0x135)]=!0x0),0x2===this[_0x59e3c0(0x154)][_0x59e3c0(0x13b)]&&this[_0x59e3c0(0x154)][_0x59e3c0(0x130)][_0x59e3c0(0x156)](!0x0),_0x31e93e[_0x59e3c0(0x156)](this[_0x59e3c0(0x154)][_0x59e3c0(0x13b)]>0x1),await _0x31e93e[_0x59e3c0(0x139)]({'part':_0x3ce782,'renderingStrategy':_0x13f5a9,'showUnchangedParts':this[_0x59e3c0(0x15e)],'abortSignal':_0x42e731});});return _0x5421a9?.[_0x1a87df(0x142)](_0x1a87df(0x158),()=>{const _0x3e8ec0=_0x1a87df;this[_0x3e8ec0(0x137)][_0x3e8ec0(0x158)]();}),this[_0x1a87df(0x137)][_0x1a87df(0x159)];}[_0x5ea3af(0x14f)](_0x316956,_0x3dcf9a){const _0x3826ff=_0x5ea3af,_0x345533=this[_0x3826ff(0x146)](_0x316956);_0x345533&&(_0x345533[_0x3826ff(0x12e)]=_0x3dcf9a),this[_0x3826ff(0x135)]=_0x3826ff(0x155)==_0x3dcf9a||Array[_0x3826ff(0x166)](this[_0x3826ff(0x154)])[_0x3826ff(0x15c)](_0x303de5=>_0x3826ff(0x155)==_0x303de5[_0x3826ff(0x12e)]);}[_0x5ea3af(0x146)](_0x38f248){const _0x19238e=_0x5ea3af;return this[_0x19238e(0x154)][_0x19238e(0x13d)](_0x44eedc=>_0x44eedc[_0x19238e(0x14c)][_0x19238e(0x15f)]==_0x38f248)??null;}[_0x5ea3af(0x12b)](){const _0x370a33=_0x5ea3af;if(!this[_0x370a33(0x15e)]){const _0x5263d2=!this[_0x370a33(0x138)][_0x370a33(0x13d)](({hasChanges:_0x21e03b})=>_0x21e03b),_0x1560b0=!!this[_0x370a33(0x138)][_0x370a33(0x13d)](({hasChanges:_0x4e75dd})=>!_0x4e75dd);this[_0x370a33(0x15d)][_0x370a33(0x12f)]=0x0==this[_0x370a33(0x154)][_0x370a33(0x13b)]||_0x1560b0,_0x5263d2?this[_0x370a33(0x15d)][_0x370a33(0x145)](_0x4a330f(this[_0x370a33(0x161)],_0x370a33(0x131))):this[_0x370a33(0x15d)][_0x370a33(0x145)](_0x4a330f(this[_0x370a33(0x161)],_0x370a33(0x132)));}}get[_0x5ea3af(0x14a)](){const _0x56e795=_0x5ea3af;return!!this[_0x56e795(0x154)][_0x56e795(0x13d)](_0x39d547=>_0x39d547[_0x56e795(0x14c)][_0x56e795(0x13f)]);}}
|