@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 _0x2c4a56=_0x2432;(function(_0x368909,_0xf1c8f1){const _0x44197c=_0x2432,_0x25bca5=_0x368909();while(!![]){try{const _0x2bec96=-parseInt(_0x44197c(0x26b))/0x1+parseInt(_0x44197c(0x2b4))/0x2*(parseInt(_0x44197c(0x2a2))/0x3)+-parseInt(_0x44197c(0x28c))/0x4*(parseInt(_0x44197c(0x25d))/0x5)+-parseInt(_0x44197c(0x228))/0x6*(parseInt(_0x44197c(0x226))/0x7)+-parseInt(_0x44197c(0x203))/0x8*(parseInt(_0x44197c(0x219))/0x9)+-parseInt(_0x44197c(0x23d))/0xa+-parseInt(_0x44197c(0x27e))/0xb*(-parseInt(_0x44197c(0x227))/0xc);if(_0x2bec96===_0xf1c8f1)break;else _0x25bca5['push'](_0x25bca5['shift']());}catch(_0x3a4ee2){_0x25bca5['push'](_0x25bca5['shift']());}}}(_0x5d6c,0x4daef));import{ContextPlugin as _0x21d8ed,Editor as _0x27a92a}from'ckeditor5/src/core.js';import{CKEditorError as _0x13f2ac,logError as _0xbcf11b,scrollViewportToShowTarget as _0x59c6ad,uid as _0x38bd85}from'ckeditor5/src/utils.js';import{AIConnector as _0x2d2c2e}from'../aicore/aiconnector.js';import{AITabs as _0x44b1ea}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2f446f}from'./model/aichatconversation.js';import{getTranslation as _0x1523b1}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3a377a}from'../aicore/aiediting.js';import{AIChatModels as _0x291dd3}from'./model/aichatmodels.js';import{getEditorFromContext as _0x40cd09}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4fad48,DATA_ID_MODEL_ATTRIBUTE as _0x144524}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x44190b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xee9603,getMinimalSelection as _0x31f8ce,getSuggestionPartsFromReply as _0x2b2350}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x5bf0a5,_DetachOperation as _0xf7d8c}from'ckeditor5/src/engine.js';import{findOne as _0x37f9bf,getAttribute as _0x366774,serialize as _0x1007e6,Document as _0x3d00cc,findByAttribute as _0xa2728e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x5e93f1}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5e61a5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x2432(_0x3bbebe,_0x46e960){const _0x5d6c83=_0x5d6c();return _0x2432=function(_0x243239,_0x3ae7fd){_0x243239=_0x243239-0x1b0;let _0x424ab3=_0x5d6c83[_0x243239];return _0x424ab3;},_0x2432(_0x3bbebe,_0x46e960);}import{AIBalloon as _0x48b72c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x21d8ed{[_0x2c4a56(0x1ce)];[_0x2c4a56(0x1f2)];[_0x2c4a56(0x2b3)];[_0x2c4a56(0x295)];[_0x2c4a56(0x205)]=new Map();[_0x2c4a56(0x207)]=null;[_0x2c4a56(0x25e)]=!0x1;static get[_0x2c4a56(0x244)](){return[_0x2d2c2e,_0x48b72c,_0x4fad48];}static get[_0x2c4a56(0x1bc)](){const _0x31ec0d=_0x2c4a56;return _0x31ec0d(0x2d2);}static get[_0x2c4a56(0x2ec)](){return!0x0;}static get[_0x2c4a56(0x2d9)](){return!0x0;}[_0x2c4a56(0x1e5)](){const _0x412031=_0x2c4a56;this[_0x412031(0x1f2)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x26c)),this[_0x412031(0x2b3)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x1c4)),this[_0x412031(0x1ce)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x300)),this[_0x412031(0x295)]=new _0x291dd3({'connector':this[_0x412031(0x1f2)],'displayedModels':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x2a0)),'defaultModelId':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x1fa))});const _0x3bb6e0=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x242));this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1e9),()=>{const _0x41acfb=_0x412031;this[_0x41acfb(0x2f2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x301),(_0x5ca84f,_0x2e9506)=>{const _0x179279=_0x412031;this[_0x179279(0x212)]({'userMessage':_0x2e9506});}),this[_0x412031(0x21e)](_0x3bb6e0,_0x412031(0x277),(_0x24df47,_0x4c9818)=>{const _0x1d5167=_0x412031;this[_0x1d5167(0x257)](_0x4c9818);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x25c),()=>{const _0x2c36f5=_0x412031;_0x3bb6e0[_0x2c36f5(0x2ac)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x239),async()=>{const _0x371696=_0x412031;await this[_0x371696(0x1c9)](),await this[_0x371696(0x1e2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2e9),()=>{const _0x2bff2f=_0x412031;this[_0x2bff2f(0x267)]?.[_0x2bff2f(0x304)](_0x1523b1(this[_0x2bff2f(0x2fa)][_0x2bff2f(0x284)],_0x2bff2f(0x2f8)));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2b1),(_0x4c5014,_0x2b52fb)=>{const _0x391932=_0x412031;this[_0x391932(0x267)]?.[_0x391932(0x2de)](Array[_0x391932(0x1ea)](_0x2b52fb));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x225),(_0x5a4696,_0x1df7ee)=>{const _0x546783=_0x412031;this[_0x546783(0x267)]?.[_0x546783(0x225)](_0x1df7ee);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x232),(_0x155d98,_0x387bf0)=>{const _0xba6fe5=_0x412031;this[_0xba6fe5(0x267)]?.[_0xba6fe5(0x232)](_0x387bf0[_0xba6fe5(0x1e0)],_0x387bf0[_0xba6fe5(0x303)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x246),(_0x42549d,_0x599a6f)=>{const _0x11f621=_0x412031;this[_0x11f621(0x24b)](_0x599a6f);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1c7),(_0x35db47,_0x2257f6)=>{const _0x131c53=_0x412031;this[_0x131c53(0x267)]?.[_0x131c53(0x1c7)](_0x2257f6[_0x131c53(0x298)],_0x2257f6[_0x131c53(0x29c)],_0x2257f6[_0x131c53(0x1c0)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1d3),()=>{const _0x430e30=_0x412031;this[_0x430e30(0x2b5)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x27b),()=>{const _0x18e06a=_0x412031;this[_0x18e06a(0x2a9)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2f1),(_0x22db90,_0x7c2f74)=>{const _0x231ab1=_0x412031;this[_0x231ab1(0x267)]?.[_0x231ab1(0x1d6)](_0x7c2f74);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x305),(_0x5aa41f,{replyId:_0x2abb08})=>{const _0x4d058a=_0x412031;console[_0x4d058a(0x23b)](_0x4d058a(0x204),_0x2abb08);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2c4),(_0x4eab41,{replyId:_0x1f3bc2})=>{const _0x4ded23=_0x412031;console[_0x4ded23(0x23b)](_0x4ded23(0x27f),_0x1f3bc2);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x241),(_0x537ba8,_0xa8af17)=>{const _0x4e3b3a=_0x412031;this[_0x4e3b3a(0x2fa)][_0x4e3b3a(0x2e3)][_0x4e3b3a(0x1b3)](_0x48b72c)[_0x4e3b3a(0x2e5)](),this[_0x4e3b3a(0x280)](_0xa8af17);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2d3),(_0x1bb8c6,{replyId:_0x3d8cf4,partIndex:_0x4007e1})=>{const _0x584b40=_0x412031;this[_0x584b40(0x25e)]=this[_0x584b40(0x2b3)][_0x584b40(0x1ec)],this[_0x584b40(0x278)](_0x3d8cf4,_0x4007e1);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2ed),(_0x54ad76,{replyId:_0xfd2e78,partIndex:_0x2a7013})=>{const _0x268dfa=_0x412031,_0x2628e5=this[_0x268dfa(0x1fb)](_0xfd2e78,_0x2a7013);_0x2628e5&&_0x268dfa(0x290)!=_0x2628e5[_0x268dfa(0x2ad)][_0x268dfa(0x2cf)][_0x268dfa(0x2d4)]&&this[_0x268dfa(0x1ce)][_0x268dfa(0x2dc)]([_0x2628e5[_0x268dfa(0x2ad)]],_0x268dfa(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x283),()=>{const _0x52e978=_0x412031;this[_0x52e978(0x1ce)][_0x52e978(0x306)](_0x52e978(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x221),(_0x14c549,_0x3f462a)=>{const _0x1f1368=_0x412031;this[_0x1f1368(0x2fa)][_0x1f1368(0x2e3)][_0x1f1368(0x1b3)](_0x48b72c)[_0x1f1368(0x2e5)](),this[_0x1f1368(0x1b9)](_0x3f462a);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x297),async(_0x4fbd38,_0x3369f1)=>{const _0x312c24=_0x412031,{reply:_0x1d49bb}=this[_0x312c24(0x206)](_0x3369f1[_0x312c24(0x2d0)]),_0x589337=_0x40cd09(this[_0x312c24(0x2fa)]),_0x43a9dd=_0x2b2350({'editor':_0x589337,'changeGroups':_0x1d49bb[_0x312c24(0x2df)],'documentContextContent':_0x1d49bb[_0x312c24(0x25a)],'showDiff':_0x3369f1[_0x312c24(0x1ec)]});await this[_0x312c24(0x2b3)][_0x312c24(0x1c1)]({'id':_0x1d49bb['id'],'parts':_0x43a9dd,'renderingStrategy':_0x312c24(0x288)});}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x224),(_0x452063,{replyId:_0x1fa3b8,partIndex:_0x2a276c})=>{const _0x328d8f=_0x412031;this[_0x328d8f(0x207)]?.[_0x328d8f(0x2d0)]==_0x1fa3b8&&this[_0x328d8f(0x207)]?.[_0x328d8f(0x208)]==_0x2a276c&&this[_0x328d8f(0x2fa)][_0x328d8f(0x2e3)][_0x328d8f(0x1b3)](_0x48b72c)[_0x328d8f(0x2e5)]();const {reply:_0x4503d3}=this[_0x328d8f(0x206)](_0x1fa3b8);_0x4503d3[_0x328d8f(0x27a)](_0x2a276c,_0x328d8f(0x287)),this[_0x328d8f(0x1ce)][_0x328d8f(0x306)](_0x328d8f(0x23a));});}async[_0x2c4a56(0x234)](){const _0x584531=_0x2c4a56;this[_0x584531(0x2fa)]instanceof _0x27a92a?this[_0x584531(0x265)](this[_0x584531(0x2fa)]):this[_0x584531(0x21e)](this[_0x584531(0x2fa)][_0x584531(0x2ee)],_0x584531(0x255),(_0x349cd1,_0x1a8e7d)=>{const _0x287529=_0x584531;_0x1a8e7d['on'](_0x287529(0x24a),()=>{const _0x13e355=_0x287529;this[_0x13e355(0x265)](_0x1a8e7d);});}),await this[_0x584531(0x2f2)]();}[_0x2c4a56(0x280)](_0x17faf9){const _0xd488ee=_0x2c4a56,_0x48952b=_0x40cd09(this[_0xd488ee(0x2fa)]);if(!_0x48952b[_0xd488ee(0x2e3)][_0xd488ee(0x26f)](_0xd488ee(0x2aa)))return;const _0x2de736=this[_0xd488ee(0x2fa)][_0xd488ee(0x2e3)][_0xd488ee(0x1b3)](_0xd488ee(0x26d)),{reply:_0x1221f1,interaction:_0x5d420d}=this[_0xd488ee(0x206)](_0x17faf9[_0xd488ee(0x2d0)]),_0x2c9bae=this[_0xd488ee(0x1fb)](_0x17faf9[_0xd488ee(0x2d0)],_0x17faf9[_0xd488ee(0x208)]),_0x325bc2=void 0x0!==_0x17faf9[_0xd488ee(0x208)]?[_0x1221f1[_0xd488ee(0x2df)][_0x17faf9[_0xd488ee(0x208)]]]:_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1f3)](_0x1b705b=>_0xd488ee(0x1bb)==_0x1b705b[_0xd488ee(0x26a)]),_0x49ffa1=_0x325bc2[_0xd488ee(0x23e)](_0x4b1cc0=>_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1e3)](_0x4b1cc0));if(!_0x2c9bae||_0xd488ee(0x290)==_0x2c9bae[_0xd488ee(0x2ad)][_0xd488ee(0x2cf)][_0xd488ee(0x2d4)])return void _0x49ffa1[_0xd488ee(0x264)](_0x25f9f7=>_0x1221f1[_0xd488ee(0x27a)](_0x25f9f7,_0xd488ee(0x229)));_0x49ffa1[_0xd488ee(0x264)](_0x99de46=>_0x1221f1[_0xd488ee(0x27a)](_0x99de46,_0xd488ee(0x275)));const _0x340900=_0x44190b({'editor':_0x48952b,'reply':_0x1221f1,'interaction':_0x5d420d,'groups':_0x325bc2,'transform':!0x0,'documentCompare':_0x2de736,'documentCompareOptions':{'anchor':_0xd488ee(0x1e7),'markDeletions':!0x0}});let _0x519e0d;_0x2c9bae&&this[_0xd488ee(0x22a)](_0x2c9bae[_0xd488ee(0x2ad)]),_0x48952b[_0xd488ee(0x1f5)][_0xd488ee(0x29e)](_0x381829=>{const _0x18c6fc=_0xd488ee;_0x519e0d=_0x381829[_0x18c6fc(0x22e)],_0x48952b[_0x18c6fc(0x2e3)][_0x18c6fc(0x1b3)](_0x18c6fc(0x2aa))[_0x18c6fc(0x254)](_0x340900),this[_0x18c6fc(0x1ce)][_0x18c6fc(0x306)](_0x18c6fc(0x23a));}),this[_0xd488ee(0x205)][_0xd488ee(0x279)](_0x519e0d,{'interactionId':_0x5d420d['id'],'replyId':_0x1221f1['id'],'indexes':_0x49ffa1[_0xd488ee(0x23c)]()}),this[_0xd488ee(0x276)](_0x1221f1);}[_0x2c4a56(0x1b9)](_0x283218){const _0x4d2ace=_0x2c4a56,_0x198fae=_0x40cd09(this[_0x4d2ace(0x2fa)]),_0x41b8a3=this[_0x4d2ace(0x2fa)][_0x4d2ace(0x2e3)][_0x4d2ace(0x1b3)](_0x4fad48),{reply:_0x29334b,interaction:_0x5c53a7}=this[_0x4d2ace(0x206)](_0x283218[_0x4d2ace(0x2d0)]),_0x306661=this[_0x4d2ace(0x1fb)](_0x283218[_0x4d2ace(0x2d0)],_0x283218[_0x4d2ace(0x208)]),_0xc51f0a=void 0x0!==_0x283218[_0x4d2ace(0x208)]?[_0x29334b[_0x4d2ace(0x2df)][_0x283218[_0x4d2ace(0x208)]]]:_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1f3)](_0x481fd0=>_0x4d2ace(0x1bb)==_0x481fd0[_0x4d2ace(0x26a)]),_0x41649c=_0xc51f0a[_0x4d2ace(0x23e)](_0x19e4e5=>_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1e3)](_0x19e4e5));if(!_0x306661||_0x4d2ace(0x290)==_0x306661[_0x4d2ace(0x2ad)][_0x4d2ace(0x2cf)][_0x4d2ace(0x2d4)])return void _0x41649c[_0x4d2ace(0x264)](_0x5dea67=>_0x29334b[_0x4d2ace(0x27a)](_0x5dea67,_0x4d2ace(0x229)));_0x41649c[_0x4d2ace(0x264)](_0x1977b5=>_0x29334b[_0x4d2ace(0x27a)](_0x1977b5,_0x4d2ace(0x275)));const _0x42b283=_0x44190b({'editor':_0x198fae,'reply':_0x29334b,'interaction':_0x5c53a7,'groups':_0xc51f0a,'transform':!0x0,'documentCompare':_0x41b8a3,'documentCompareOptions':{'anchor':_0x4d2ace(0x1e7),'markDeletions':!0x1}});let _0x13f20a;_0x306661&&this[_0x4d2ace(0x22a)](_0x306661[_0x4d2ace(0x2ad)]),_0x198fae[_0x4d2ace(0x1f5)][_0x4d2ace(0x29e)](_0x5f149c=>{const _0x1c0400=_0x4d2ace;_0x13f20a=_0x5f149c[_0x1c0400(0x22e)];for(const _0x3e34ca of _0x42b283)_0x3e34ca[_0x1c0400(0x202)]=_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x2a3)][_0x1c0400(0x2e6)],_0x5f149c[_0x1c0400(0x22e)][_0x1c0400(0x299)](_0x3e34ca),_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x286)](_0x3e34ca);}),this[_0x4d2ace(0x205)][_0x4d2ace(0x279)](_0x13f20a,{'interactionId':_0x5c53a7['id'],'replyId':_0x29334b['id'],'indexes':_0x41649c[_0x4d2ace(0x23c)]()}),this[_0x4d2ace(0x276)](_0x29334b);}[_0x2c4a56(0x278)](_0x3cb7a5,_0xbfb1be){const _0x1526a6=_0x2c4a56,_0x1c9cfd=_0x40cd09(this[_0x1526a6(0x2fa)]),_0x302654=this[_0x1526a6(0x1fb)](_0x3cb7a5,_0xbfb1be),_0x2e5239=this[_0x1526a6(0x2fa)][_0x1526a6(0x2e3)][_0x1526a6(0x1b3)](_0x48b72c);if(!_0x302654)return void _0x2e5239[_0x1526a6(0x2e5)]();const {range:_0x3507d4,currentIndex:_0x2c248a,previousIndex:_0x45747e,nextIndex:_0x497460}=_0x302654;if(_0x1526a6(0x290)==_0x3507d4[_0x1526a6(0x2cf)][_0x1526a6(0x2d4)]){const {reply:_0x36c463}=this[_0x1526a6(0x206)](_0x3cb7a5);return _0x36c463[_0x1526a6(0x27a)](_0x2c248a,_0x1526a6(0x229)),void _0x2e5239[_0x1526a6(0x2e5)]();}if(this[_0x1526a6(0x207)]?.[_0x1526a6(0x2d0)]==_0x3cb7a5&&this[_0x1526a6(0x207)]?.[_0x1526a6(0x208)]==_0x2c248a)return;this[_0x1526a6(0x207)]={'replyId':_0x3cb7a5,'partIndex':_0x2c248a};const _0xc16f5e=new _0x5e61a5(_0x1c9cfd[_0x1526a6(0x284)],{'showDiff':this[_0x1526a6(0x25e)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x1526a6(0x248)},'hideHeader':!0x0}),{reply:_0x5ba0de}=this[_0x1526a6(0x206)](_0x3cb7a5),_0x4b0efa=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x5ba0de[_0x1526a6(0x2df)][_0x2c248a]],'documentContextContent':_0x5ba0de[_0x1526a6(0x25a)],'showDiff':this[_0x1526a6(0x25e)]});_0xc16f5e[_0x1526a6(0x231)]({'parts':_0x4b0efa,'renderingStrategy':_0x1526a6(0x288)});const _0x1d5d5f=_0x2c248a!==_0x45747e;this[_0x1526a6(0x22a)](_0x3507d4,!0x0),_0x2e5239[_0x1526a6(0x2d6)]({'index':_0x2c248a,'title':_0x1523b1(this[_0x1526a6(0x2fa)][_0x1526a6(0x284)],_0x1526a6(0x292),(_0x2c248a+0x1)[_0x1526a6(0x2dd)]()),'icon':_0x5e93f1,'mainView':_0xc16f5e,'showRotator':_0x1d5d5f,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x3507d4]}),this[_0x1526a6(0x2b3)][_0x1526a6(0x1f8)](_0x3cb7a5,_0x2c248a),this[_0x1526a6(0x21e)](_0xc16f5e,_0x1526a6(0x297),(_0x17e29e,{showDiff:_0x2ed248})=>{const _0x14cdf2=_0x1526a6;this[_0x14cdf2(0x25e)]=_0x2ed248;const {reply:_0x42afa2}=this[_0x14cdf2(0x206)](_0x3cb7a5),_0x4355b0=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x42afa2[_0x14cdf2(0x2df)][_0x2c248a]],'documentContextContent':_0x42afa2[_0x14cdf2(0x25a)],'showDiff':_0x2ed248});_0xc16f5e[_0x14cdf2(0x231)]({'parts':_0x4355b0,'renderingStrategy':_0x14cdf2(0x288)});}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x221),()=>{const _0x1ea9d8=_0x1526a6;this[_0x1ea9d8(0x1b9)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1ea9d8(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1ea9d8(0x2e5)]();}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x241),()=>{const _0x1f1158=_0x1526a6;this[_0x1f1158(0x280)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1f1158(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1f1158(0x2e5)]();}),_0x1d5d5f&&(this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2bc),()=>{const _0x35f78b=_0x1526a6;this[_0x35f78b(0x278)](_0x3cb7a5,_0x497460);}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2ba),()=>{const _0x236a33=_0x1526a6;this[_0x236a33(0x278)](_0x3cb7a5,_0x45747e);})),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x247),()=>{const _0x34fe3b=_0x1526a6;this[_0x34fe3b(0x2c1)](_0x2e5239),this[_0x34fe3b(0x2c1)](_0xc16f5e),this[_0x34fe3b(0x207)]=null;});}[_0x2c4a56(0x1fb)](_0x2c9baa,_0x573c24){const _0x3b964f=_0x2c4a56,_0x34f13d=_0x40cd09(this[_0x3b964f(0x2fa)]),{reply:_0x14c031,interaction:_0x51408a}=this[_0x3b964f(0x206)](_0x2c9baa),_0x34997e=_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1f3)](_0xd21e85=>_0x3b964f(0x1bb)==_0xd21e85[_0x3b964f(0x26a)]),_0x10b880=_0x34997e[_0x3b964f(0x23e)](_0x139a30=>_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1e3)](_0x139a30));void 0x0===_0x573c24&&(_0x573c24=_0x10b880[0x0]);const _0x567ce0=_0x10b880[_0x3b964f(0x1e3)](_0x573c24);if(-0x1==_0x567ce0)return null;const _0x113c59=0x0==_0x567ce0?_0x10b880[_0x10b880[_0x3b964f(0x1f0)]-0x1]:_0x10b880[_0x567ce0-0x1],_0xf72e3c=_0x567ce0==_0x10b880[_0x3b964f(0x1f0)]-0x1?_0x10b880[0x0]:_0x10b880[_0x567ce0+0x1],_0x58e215=_0x34997e[_0x567ce0],_0x1c8f2c=new _0x3d00cc([]),_0xb98c17=new _0x3d00cc([]);for(const _0x544504 of _0x58e215[_0x3b964f(0x1b4)])if(_0x3b964f(0x2b2)!=_0x544504[_0x3b964f(0x2b9)]&&_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x544504[_0x3b964f(0x1cd)][_0x3b964f(0x20c)](!0x0)),_0x3b964f(0x27c)!=_0x544504[_0x3b964f(0x2b9)]){const _0x49bdf6=_0x37f9bf(_0x4a244d=>_0x366774(_0x4a244d,_0x3b964f(0x2f3))==_0x544504['id'],_0x14c031[_0x3b964f(0x25a)],!0x0);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x49bdf6[_0x3b964f(0x20c)](!0x0));}if(0x0==_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x1f0)]){if(_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)]){const _0x241e01=_0xa2728e(_0x3b964f(0x2f3),_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)],_0x14c031[_0x3b964f(0x25a)]);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0x241e01[_0x3b964f(0x2fb)]&&(_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)));}else{const _0x5ab2a2=_0x14c031[_0x3b964f(0x25a)][_0x3b964f(0x235)][0x0];if(!_0x5ab2a2)return null;_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0));}}const _0x50b363=_0x51408a[_0x3b964f(0x2bd)](),_0x3f5e2a=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x50b363[_0x3b964f(0x1b8)]),_0x8d4862=_0x1007e6(_0x1c8f2c),_0x5da925=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x153af4=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x52a5f2=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x1ca)](_0x5da925,0x0),_0x9b2790=_0x1007e6(_0xb98c17),_0x2a4414={'anchor':_0x52a5f2,'markDeletions':!0x1},_0x963b2f=_0x34f13d[_0x3b964f(0x2e3)][_0x3b964f(0x1b3)](_0x4fad48)[_0x3b964f(0x2e1)](_0x8d4862,_0x9b2790,_0x2a4414)[_0x3b964f(0x1fc)]();if(!_0x963b2f[_0x3b964f(0x1f0)])return null;_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x29e)](_0x515d7d=>{const _0x38e6bb=_0x3b964f;for(const _0x49ed5a of _0x963b2f)if(_0x38e6bb(0x2c7)==_0x49ed5a[_0x38e6bb(0x2b9)]){const _0x3e66d1=_0x49ed5a[_0x38e6bb(0x249)],_0x2d83a9=_0x49ed5a[_0x38e6bb(0x245)],_0x5f1495=new _0xf7d8c(_0x3e66d1,_0x2d83a9);_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x5f1495),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x5f1495);}else _0x38e6bb(0x2b0)!==_0x49ed5a[_0x38e6bb(0x2b9)]&&(_0x49ed5a[_0x38e6bb(0x202)]=null,_0x49ed5a[_0x38e6bb(0x1d4)]=!0x1,_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x49ed5a),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x49ed5a));});const _0xfd6ffa=_0x31f8ce(_0x34f13d,_0x963b2f,_0x5da925);_0xee9603(_0x34f13d[_0x3b964f(0x1f5)],_0xfd6ffa);const _0x3eee37=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x176a52=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x3ddd8d=[];let _0x4e72e9=_0x5da925,_0x18a0c7=_0x153af4;for(let _0x163192=0x0;_0x163192<_0x176a52[_0x3b964f(0x1f0)];_0x163192++){const _0x2af8b3=_0x4e72e9[_0x3b964f(0x269)]-_0x176a52[_0x163192];_0x3ddd8d[_0x163192]=_0x18a0c7[_0x3b964f(0x269)]-_0x2af8b3,_0x4e72e9=_0x4e72e9[_0x3b964f(0x2f5)](_0x176a52[_0x163192]),_0x18a0c7=_0x18a0c7[_0x3b964f(0x2f5)](_0x3ddd8d[_0x163192]);}const _0x2df56c=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3eee37),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3ddd8d)),_0x2e7c9c=_0x153af4[_0x3b964f(0x1ed)](0x0)[_0x3b964f(0x28d)](_0x144524),_0xe853e8=Array[_0x3b964f(0x1ea)](_0x3f5e2a[_0x3b964f(0x1ef)]())[_0x3b964f(0x1b5)](_0x1a9fb4=>_0x1a9fb4[_0x3b964f(0x28d)](_0x144524)==_0x2e7c9c)[_0x3b964f(0x2a8)](),_0x491fe2=_0x2df56c[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x9fd9e8=_0x2df56c[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)]();_0x491fe2[0x0]=_0xe853e8[0x0]+_0x491fe2[0x0],_0x9fd9e8[0x0]=_0xe853e8[0x0]+_0x9fd9e8[0x0];let _0x462e24=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x491fe2),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x9fd9e8));const _0x568d22=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2c9)][_0x3b964f(0x1fc)](_0x50b363[_0x3b964f(0x2e6)]);for(const _0x416790 of _0x568d22)_0x462e24=_0x5bf0a5[_0x3b964f(0x1d2)](_0x462e24[_0x3b964f(0x2b7)](_0x416790));return{'range':_0x462e24,'previousIndex':_0x113c59,'nextIndex':_0xf72e3c,'currentIndex':_0x573c24};}[_0x2c4a56(0x265)](_0x394039){const _0x42a918=_0x2c4a56;if(!_0x394039[_0x42a918(0x2e3)][_0x42a918(0x26f)](_0x42a918(0x1dc)))return;const _0x170d7d=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x2eb)),_0x1c9387=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x25b));this[_0x42a918(0x21e)](_0x170d7d,_0x42a918(0x1cc),(_0x31aa69,_0x6789d5,_0x382254)=>{const _0x366479=_0x42a918,_0x1d5b99=this[_0x366479(0x205)][_0x366479(0x1b3)](_0x6789d5);if(!_0x1d5b99)return;const _0xd3c447=this[_0x366479(0x267)][_0x366479(0x2fd)](_0x1d5b99[_0x366479(0x1f9)])[_0x366479(0x2b6)](_0x1d5b99[_0x366479(0x2d0)]);_0x1d5b99[_0x366479(0x2be)][_0x366479(0x264)](_0x477bee=>_0xd3c447[_0x366479(0x27a)](_0x477bee,_0x366479(0x1bb))),this[_0x366479(0x205)][_0x366479(0x1e4)](_0x6789d5),this[_0x366479(0x205)][_0x366479(0x279)](_0x382254,_0x1d5b99);}),this[_0x42a918(0x21e)](_0x1c9387,_0x42a918(0x1cc),(_0x22e83c,_0x42a5c1,_0x2a12aa)=>{const _0x32d4a2=_0x42a918,_0x595244=this[_0x32d4a2(0x205)][_0x32d4a2(0x1b3)](_0x42a5c1);if(!_0x595244)return;const _0x52ae83=this[_0x32d4a2(0x267)][_0x32d4a2(0x2fd)](_0x595244[_0x32d4a2(0x1f9)])[_0x32d4a2(0x2b6)](_0x595244[_0x32d4a2(0x2d0)]);_0x595244[_0x32d4a2(0x2be)][_0x32d4a2(0x264)](_0x3607b8=>_0x52ae83[_0x32d4a2(0x27a)](_0x3607b8,_0x32d4a2(0x275))),this[_0x32d4a2(0x205)][_0x32d4a2(0x1e4)](_0x42a5c1),this[_0x32d4a2(0x205)][_0x32d4a2(0x279)](_0x2a12aa,_0x595244);});}async[_0x2c4a56(0x218)](_0x53c82e){const _0x33de7d=_0x2c4a56;this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x48b72c)[_0x33de7d(0x2e5)](),this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x288)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x0),await this[_0x33de7d(0x1c9)]();try{const _0xe727b6=this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x44b1ea);this[_0x33de7d(0x27d)]('\x20'),_0xe727b6[_0x33de7d(0x2c2)][_0x33de7d(0x268)](_0x33de7d(0x214)),await this[_0x33de7d(0x2f2)](_0x53c82e);const {sessionId:_0x243da1}=this[_0x33de7d(0x1ce)][_0x33de7d(0x259)]();await this[_0x33de7d(0x267)][_0x33de7d(0x209)](_0x53c82e,_0x243da1),this[_0x33de7d(0x267)][_0x33de7d(0x23f)]()&&this[_0x33de7d(0x267)][_0x33de7d(0x304)](_0x1523b1(this[_0x33de7d(0x2fa)][_0x33de7d(0x284)],_0x33de7d(0x2f8)));}catch(_0x3836e4){console[_0x33de7d(0x2f9)](_0x33de7d(0x2ca),_0x3836e4);}finally{this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x1d9)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x1);}}[_0x2c4a56(0x2f4)](_0x27c728){const _0x27d88b=_0x2c4a56;this[_0x27d88b(0x267)]['id']===_0x27c728&&this[_0x27d88b(0x2f2)]();}async[_0x2c4a56(0x1b0)](){const _0xd68cb9=_0x2c4a56,_0x38f9af=this[_0xd68cb9(0x1ce)][_0xd68cb9(0x2b8)]();this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x22c)](_0x38f9af),this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x304)](_0x1523b1(this[_0xd68cb9(0x2fa)][_0xd68cb9(0x284)],_0xd68cb9(0x2f8)));}[_0x2c4a56(0x1df)](){const _0x46002d=_0x2c4a56;this[_0x46002d(0x267)]?.[_0x46002d(0x1ee)]();}[_0x2c4a56(0x2fc)](){const _0x5f3656=_0x2c4a56;this[_0x5f3656(0x2b3)][_0x5f3656(0x2fc)]();}async[_0x2c4a56(0x1e9)](){const _0x2ae599=_0x2c4a56;await this[_0x2ae599(0x2f2)]();}async[_0x2c4a56(0x20e)]({message:_0x39785f,quickActionData:_0x1b09c8}){const _0x273ac4=_0x2c4a56;await this[_0x273ac4(0x212)]({'userMessage':_0x39785f,'quickActionData':_0x1b09c8});}[_0x2c4a56(0x20a)](){const _0x1042ff=_0x2c4a56,_0x52f641=this[_0x1042ff(0x2fa)][_0x1042ff(0x2c3)][_0x1042ff(0x1b3)](_0x1042ff(0x296));if(!_0x52f641)throw new _0x13f2ac(_0x1042ff(0x211),this);return _0x52f641;}async[_0x2c4a56(0x2f2)](_0xc8e3ff){const _0x39cb70=_0x2c4a56;try{this[_0x39cb70(0x2b3)][_0x39cb70(0x21b)](),await this[_0x39cb70(0x236)](_0xc8e3ff);}catch(_0x28bf19){_0xbcf11b(_0x39cb70(0x24f),_0x28bf19),this[_0x39cb70(0x267)]=void 0x0,this[_0x39cb70(0x2b3)][_0x39cb70(0x2c8)]();}}async[_0x2c4a56(0x236)](_0xf483ae){const _0x10b41c=_0x2c4a56,_0x814a4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2e3)][_0x10b41c(0x1b3)](_0x48b72c);let _0x2e5d4a;_0x814a4a[_0x10b41c(0x2d5)]&&_0x814a4a[_0x10b41c(0x2e5)](),_0xf483ae||!this[_0x10b41c(0x267)]?_0x2e5d4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1fa)):this[_0x10b41c(0x2b3)][_0x10b41c(0x2cb)]&&(_0x2e5d4a=this[_0x10b41c(0x267)][_0x10b41c(0x2f7)]['id']),await this[_0x10b41c(0x1c9)]();const _0x12e6a0=this[_0x10b41c(0x20a)](),_0x6198ac=_0xf483ae||_0x38bd85();this[_0x10b41c(0x267)]=new _0x2f446f({'connector':this[_0x10b41c(0x1f2)],'chatModels':this[_0x10b41c(0x295)],'selectedModelId':_0x2e5d4a,'conversationId':_0x6198ac,'group':_0x12e6a0,'getEditor':()=>_0x40cd09(this[_0x10b41c(0x2fa)])}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1dd),(_0x384115,_0x3399da)=>{const _0x7e1548=_0x10b41c;this[_0x7e1548(0x2b3)][_0x7e1548(0x274)](_0x3399da),this[_0x7e1548(0x2b3)][_0x7e1548(0x250)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x25f)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x261)](),_0xf483ae||(this[_0x7e1548(0x2b3)][_0x7e1548(0x2f6)](),this[_0x7e1548(0x267)]?.[_0x7e1548(0x304)](_0x1523b1(this[_0x7e1548(0x2fa)][_0x7e1548(0x284)],_0x7e1548(0x2f8))));}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2ab),(_0x321a5d,_0x48f06e)=>{const _0x26107e=_0x10b41c;this[_0x26107e(0x2b3)][_0x26107e(0x24c)](_0x48f06e[_0x26107e(0x220)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2c6),(_0x59d1be,_0x2b6480)=>{const _0x220ef8=_0x10b41c;this[_0x220ef8(0x2b3)][_0x220ef8(0x1f7)](_0x2b6480);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x272),()=>{const _0x291bb7=_0x10b41c;this[_0x291bb7(0x2b3)][_0x291bb7(0x1c2)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x240),()=>{const _0x2dc194=_0x10b41c;this[_0x2dc194(0x2b3)][_0x2dc194(0x1c2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x271),(_0x37948d,_0x4a4402)=>{const _0x4fca44=_0x10b41c;this[_0x4fca44(0x2b3)][_0x4fca44(0x21f)](_0x4a4402,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1be),(_0x255ad8,_0x26630d)=>{const _0x8aa71=_0x10b41c;this[_0x8aa71(0x2b3)][_0x8aa71(0x21f)](_0x26630d,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x238),()=>{const _0x9165b3=_0x10b41c;this[_0x9165b3(0x2b3)][_0x9165b3(0x1de)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2d8),async()=>{const _0x477bb8=_0x10b41c;await this[_0x477bb8(0x2b3)][_0x477bb8(0x302)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f1),(_0x18ab4f,_0xe7dce5)=>{const _0x4bcdc1=_0x10b41c;this[_0x4bcdc1(0x2b3)][_0x4bcdc1(0x1cb)](_0xe7dce5['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x201),(_0xc45bf1,_0x2e09a4,_0x9922a2)=>{const _0x316c64=_0x10b41c;this[_0x316c64(0x27d)](_0x2e09a4,_0x9922a2);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1e6),(_0x598ee5,_0x7daf68)=>{const _0x2d83ac=_0x10b41c;_0x2d83ac(0x263)===_0x7daf68[_0x2d83ac(0x2b9)]?this[_0x2d83ac(0x2b3)][_0x2d83ac(0x20b)](_0x7daf68):this[_0x2d83ac(0x2b3)][_0x2d83ac(0x1c5)](_0x7daf68);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x20f),async(_0x1fd8c9,_0x44243a,_0x3fd7f1)=>{const _0x4faedd=_0x10b41c;await this[_0x4faedd(0x28b)]({'reply':_0x44243a,'changeGroups':_0x3fd7f1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x233),(_0x5462e7,{reply:_0x2cf2d8,index:_0x4bff0c,state:_0x446f30})=>{const _0x4ea1b9=_0x10b41c;this[_0x4ea1b9(0x2b3)][_0x4ea1b9(0x289)]({'id':_0x2cf2d8['id'],'index':_0x4bff0c,'state':_0x446f30});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2e0),(_0x512ebd,_0x51784d)=>{const _0x1984a3=_0x10b41c;if(this[_0x1984a3(0x2b3)][_0x1984a3(0x2ce)](_0x51784d[_0x1984a3(0x262)],_0x51784d[_0x1984a3(0x2f0)]),_0x1984a3(0x273)===_0x51784d[_0x1984a3(0x262)][_0x1984a3(0x2b9)]){const _0x4096ff=[..._0x40cd09(this[_0x1984a3(0x2fa)])[_0x1984a3(0x1f5)][_0x1984a3(0x2a3)][_0x1984a3(0x273)][_0x1984a3(0x1d1)]()];this[_0x1984a3(0x1ce)][_0x1984a3(0x2dc)](_0x4096ff,_0x1984a3(0x21d)+this[_0x1984a3(0x267)]?.['id']);}}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x266),(_0x35abbe,_0x2c6643)=>{const _0x35df4b=_0x10b41c;this[_0x35df4b(0x2b3)][_0x35df4b(0x246)](_0x2c6643[_0x35df4b(0x281)]),_0x35df4b(0x1c6)==_0x2c6643[_0x35df4b(0x281)]&&this[_0x35df4b(0x1df)](),_0x35df4b(0x273)===_0x2c6643[_0x35df4b(0x2b9)]&&this[_0x35df4b(0x1ce)][_0x35df4b(0x306)](_0x35df4b(0x21d)+this[_0x35df4b(0x267)]?.['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x308),(_0x134942,_0x463dee)=>{const _0x1df380=_0x10b41c;this[_0x1df380(0x2b3)][_0x1df380(0x260)](_0x463dee[_0x1df380(0x262)][_0x1df380(0x281)],_0x463dee[_0x1df380(0x2f0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x28a),(_0x595b7f,_0x4aabb9)=>{const _0x40882f=_0x10b41c;this[_0x40882f(0x2b3)][_0x40882f(0x2e2)](_0x4aabb9[_0x40882f(0x1f6)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1fd),(_0xcf881f,_0x20af4d)=>{const _0x1a9908=_0x10b41c;this[_0x1a9908(0x2b3)][_0x1a9908(0x1eb)](_0x20af4d[_0x1a9908(0x2cc)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f4),(_0x23341b,_0x4075bf)=>{const _0x1b1eee=_0x10b41c;this[_0x1b1eee(0x2b3)][_0x1b1eee(0x256)](_0x4075bf[_0x1b1eee(0x298)],_0x4075bf[_0x1b1eee(0x1e0)],_0x4075bf[_0x1b1eee(0x2c5)],_0x4075bf[_0x1b1eee(0x1c0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1c8),(_0x339239,_0x3cc2b3)=>{const _0x18aa06=_0x10b41c;this[_0x18aa06(0x2b3)][_0x18aa06(0x1bf)](_0x3cc2b3[_0x18aa06(0x298)],_0x3cc2b3[_0x18aa06(0x2a5)],_0x3cc2b3[_0x18aa06(0x2a4)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x223),(_0x30cfec,_0x5a9d51)=>{const _0x5a3812=_0x10b41c;this[_0x5a3812(0x2b3)][_0x5a3812(0x20d)](_0x5a9d51);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x285),(_0x2ccba9,_0xe449ff)=>{const _0x3a754d=_0x10b41c;this[_0x3a754d(0x2b3)][_0x3a754d(0x1d8)](_0xe449ff[_0x3a754d(0x2f7)],_0xe449ff[_0x3a754d(0x216)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2f9),(_0x1a9f30,{error:_0x5cbc06,interactionId:_0x5d40de,fileName:_0x47acdc,url:_0xd56a21,sourceId:_0x48ef32,sourceLabel:_0x391208})=>{const _0x48e496=_0x10b41c,_0x3d15a4=_0x5d40de?_0x5d40de+':'+_0x38bd85():_0x38bd85();_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x29f))?this[_0x48e496(0x2b3)][_0x48e496(0x1d0)]({'staticMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1d5)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2e7))||_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24f))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2d7)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x258))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x28e),_0x47acdc),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x1db))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2fe),_0xd56a21),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x307))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x24d)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2a1))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x253)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x26e))?(_0x48ef32&&this[_0x48e496(0x2b3)][_0x48e496(0x2bb)](_0x48ef32),this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2ef),_0x391208||_0x48e496(0x1e0)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24e))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2db)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1fe)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06));}),await this[_0x10b41c(0x267)][_0x10b41c(0x1e5)](this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1b7))),_0xf483ae||await this[_0x10b41c(0x267)][_0x10b41c(0x237)]();}async[_0x2c4a56(0x212)]({userMessage:_0x420648,quickActionData:_0x7ec0d}){const _0xe3a38c=_0x2c4a56;if(!this[_0xe3a38c(0x267)])throw new _0x13f2ac(_0xe3a38c(0x28f));this[_0xe3a38c(0x267)][_0xe3a38c(0x21c)]()&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22b)](this[_0xe3a38c(0x1ce)][_0xe3a38c(0x259)]()),this[_0xe3a38c(0x267)]['id']&&this[_0xe3a38c(0x267)][_0xe3a38c(0x293)]&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22d)]({'userMessage':_0x420648,'quickActionData':_0x7ec0d}),this[_0xe3a38c(0x2d1)]();}[_0x2c4a56(0x2d1)](){const _0xae9582=_0x2c4a56,_0x1a6f55=_0x40cd09(this[_0xae9582(0x2fa)])[_0xae9582(0x1f5)],_0x22e596=Array[_0xae9582(0x1ea)](_0x1a6f55[_0xae9582(0x2c0)][_0xae9582(0x222)](_0x3a377a));_0x1a6f55[_0xae9582(0x29e)](_0x5e2541=>{const _0x8fd253=_0xae9582;_0x22e596[_0x8fd253(0x264)](_0x23ec37=>_0x5e2541[_0x8fd253(0x29d)](_0x23ec37));});}[_0x2c4a56(0x1e8)](){const _0x535e53=_0x2c4a56;console[_0x535e53(0x23b)](_0x535e53(0x230));}[_0x2c4a56(0x257)](_0x5b8dab){const _0x3b53b9=_0x2c4a56;this[_0x3b53b9(0x2b3)][_0x3b53b9(0x1c3)](_0x5b8dab);}[_0x2c4a56(0x2e4)](_0x167251){const _0x18f637=_0x2c4a56;_0xbcf11b(_0x167251[_0x18f637(0x29a)]);}[_0x2c4a56(0x24b)](_0x1c6a61){const _0x33be45=_0x2c4a56;this[_0x33be45(0x267)]?.[_0x33be45(0x1d7)](_0x1c6a61);}[_0x2c4a56(0x2b5)](){const _0x1bde47=_0x2c4a56;this[_0x1bde47(0x267)]?.[_0x1bde47(0x1d3)]();}[_0x2c4a56(0x2a9)](){const _0x4d971d=_0x2c4a56;this[_0x4d971d(0x267)]?.[_0x4d971d(0x27b)]();}[_0x2c4a56(0x206)](_0x2aaf40){const _0x3de75b=_0x2c4a56,[_0x342ee7,_0x18f512]=_0x2aaf40[_0x3de75b(0x1b6)](':'),_0x272283=this[_0x3de75b(0x267)][_0x3de75b(0x2fd)](_0x342ee7),_0x47a4cc=_0x272283[_0x3de75b(0x2b6)](_0x18f512);return{'interaction':_0x272283,'reply':_0x47a4cc};}[_0x2c4a56(0x22a)](_0x2a8dfc,_0x28bc19=!0x1){const _0x527121=_0x2c4a56,_0x3dd663=_0x40cd09(this[_0x527121(0x2fa)]),_0x3085a8={'target':_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2c2)][_0x527121(0x21a)][_0x527121(0x2da)](_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2a6)][_0x527121(0x29b)](_0x2a8dfc)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x28bc19};_0x28bc19&&(_0x3085a8[_0x527121(0x215)]=!0x0),_0x59c6ad(_0x3085a8);}[_0x2c4a56(0x27d)](_0x30f391,_0x1ef6d9=!0x1){const _0x3f82a0=_0x2c4a56;this[_0x3f82a0(0x2b3)][_0x3f82a0(0x201)](_0x30f391||_0x1523b1(this[_0x3f82a0(0x2fa)][_0x3f82a0(0x284)],_0x3f82a0(0x1ff)),_0x1ef6d9);}async[_0x2c4a56(0x28b)]({reply:_0x218b65,changeGroups:_0x592f38,renderingStrategy:_0x420936}){const _0x24e052=_0x2c4a56,{id:_0x9a0c77,isDone:_0x1a5e52,type:_0x388c9c,parsedContent:_0x369217}=_0x218b65;if(_0x24e052(0x213)===_0x388c9c){const _0x480c57=_0x40cd09(this[_0x24e052(0x2fa)]),_0x1aa1a3=_0x2b2350({'editor':_0x480c57,'showDiff':this[_0x24e052(0x2b3)][_0x24e052(0x1ec)],'changeGroups':_0x592f38,'documentContextContent':_0x218b65[_0x24e052(0x25a)]});await this[_0x24e052(0x2b3)][_0x24e052(0x1c1)]({'id':_0x9a0c77,'parts':_0x1aa1a3,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});}else _0x24e052(0x263)===_0x388c9c&&await this[_0x24e052(0x2b3)][_0x24e052(0x1e1)]({'id':_0x9a0c77,'parsedContent':_0x369217,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});_0x1a5e52&&_0x218b65[_0x24e052(0x1ba)][_0x24e052(0x1f0)]>0x0&&this[_0x24e052(0x2b3)][_0x24e052(0x251)](_0x9a0c77,_0x218b65[_0x24e052(0x1ba)]);}async[_0x2c4a56(0x1c9)](){const _0x2c97f4=_0x2c4a56,_0x1296ce=this[_0x2c97f4(0x267)]?.[_0x2c97f4(0x270)];_0x1296ce&&(_0x1296ce[_0x2c97f4(0x2e8)](),this[_0x2c97f4(0x2b3)][_0x2c97f4(0x2af)](_0x1296ce));}async[_0x2c4a56(0x1e2)](){const _0x5444ff=_0x2c4a56,_0x4bb465=this[_0x5444ff(0x267)]?.[_0x5444ff(0x270)];if(_0x4bb465){for await(const _0x4b8f0d of _0x4bb465[_0x5444ff(0x2a7)])await this[_0x5444ff(0x28b)]({'reply':_0x4b8f0d,'changeGroups':_0x4b8f0d[_0x5444ff(0x2df)],'renderingStrategy':_0x5444ff(0x288)});}}[_0x2c4a56(0x276)](_0x398468){const _0x1aa8d0=_0x2c4a56,_0x3cde4d={'positiveCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f3)](_0xedf94a=>_0x1aa8d0(0x275)===_0xedf94a[_0x1aa8d0(0x26a)])[_0x1aa8d0(0x1f0)],'totalCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f0)]},_0x472ce9=this[_0x1aa8d0(0x267)][_0x1aa8d0(0x2fd)](_0x398468[_0x1aa8d0(0x1f9)])[_0x1aa8d0(0x1da)];this[_0x1aa8d0(0x1f2)][_0x1aa8d0(0x200)](this[_0x1aa8d0(0x267)]['id'],_0x472ce9,_0x3cde4d);}}function _0x5d6c(){const _0x288cf1=['AI_CHAT_GENERIC_ERROR','AI_CHAT_UNTITLED_CONVERSATION','upsertAIChatRating','setConversationTitle','baseVersion','88KasHXK','Liked\x20response','_batchToChanges','getInteractionAndReplyById','_previewedChangeGroup','partIndex','load','getGroupId','addFeedItemAIReply','cloneNode','updateCapabilities','sendMessage','replyContentUpdated','createPositionFromPath','ai-chat-missing-channel-id','_handleUIUserMessage','modification-delta','chat','alignToTop','isDisabled','data','loadConversation','323667VrWxWu','domConverter','enableControls','isCurrentDocumentInContext','ai-conversation-','listenTo','addFeedInteractionHeader','isUploadInProgress','applySuggestion','getMarkersGroup','capabilitiesUpdated','rejectSuggestion','addUrlToContext','7VFhjcX','492ZFeMwM','3533826iFgtdl','outdated','_scrollToSuggestionRange','updateCurrentDocumentInContext','addSelectionToContext','handleUserInteraction','batch','push','Showing\x20conversation\x20history...','updateContent','addResourceToContext','replyChangeGroupStateUpdated','afterInit','children','_handleStartConversation','start','interactionStarted','abortPromptStream','ai-chat-controller-mouse-over','log','slice','1296010FmCamu','map','isCurrentDocumentInConversation','reasoningStarted','insertSuggestion','AITabs','setFeedItemRenderingStrategy','requires','howMany','removeContextItem','dialogClosed','full','sourcePosition','ready','_removeFromContext','setIsUploadInProgress','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-resource-load-failed','ai-chat-conversation-start-failed','resetMessageInput','updateFeedItemAIReplySources','startsWith','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','_applyOperationsAsSuggestions','add','populateSourceResourceBalloon','_setIsMaximized','ai-chat-file-upload-failed','getDocumentData','documentContextContent','redo','resizeTabs','240275JlCiWR','_balloonShowDiff','clearPendingContextUI','setContextItemLoading','clearConversationContextUI','contextItem','text-delta','forEach','_integrateEditor','contextItemRemoved','activeConversation','activateTab','maxOffset','state','48580hVKHUg','AIConnector','DocumentCompare','ai-chat-source-resources-load-failed','has','lastInteraction','webSearchFinished','webSearchStarted','selection','createConversation','accepted','_updateRatings','resizedTabs','_openBalloonFor','set','setChangeGroupState','toggleReasoning','new','updateConversationTitle','264308dDsgrN','Disliked\x20response','_insertSuggestion','uiId','end','mouseLeaveSuggestion','locale','modelSelected','applyOperation','rejected','static','updateFeedItemAIReplySuggestionPartState','contextSent','_updateReplyContent','4uAFbti','getAttribute','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','ai-chat-controller-no-active-conversation','$graveyard','getFirstRange','AI_BALLOON_HEADER_TITLE','isStarted','unshift','_aiChatModels','collaboration.channelId','toggleSuggestionDisplayMode','sourceId','addOperation','message','toViewRange','query','removeMarker','change','ai-request-aborted','ai.chat.models.displayedModels','ai-chat-context-unsupported-type','3PogMVy','document','isInContext','resourceId','mapper','replies','getPath','_toggleReasoning','TrackChangesEditing','uploadProgressChanged','resize','range','toggleLoadingSkeleton','stopInteraction','marker','addFileToContext','removed','_aiChatUi','1087686kBWMBG','_toggleWebSearch','getReply','getTransformedByOperation','getSelectionText','type','showPrevious','closeSourceResourceBalloon','showNext','getDocumentContext','indexes','getRoot','markers','stopListening','view','config','dislike','resources','interactionCreated','remove','disableControls','history','Failed\x20to\x20load\x20conversation','isModelAvailable','options','parse','addContextItem','root','replyId','_removeAISelectionMarkers','AIChatController','showChangeInText','rootName','isOpen','open','AI_CHAT_UNABLE_TO_START_CONVERSATION','interactionFinished','isPremiumPlugin','viewRangeToDom','AI_CHAT_RESOURCE_LOAD_FAILED','showFakeVisualSelection','toString','addFilesToContext','changeGroups','contextItemAdded','getDiff','setConversationContext','plugins','_logError','close','version','ai-chat-conversation-init-failed','stop','addDocumentToContext','createRange','undo','isOfficialPlugin','mouseOverSuggestion','editors','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','isLoading','selectModel','_startConversationSafely','data-id','handleRemovedConversation','getChildAtOffset','resetConversationTitle','selectedModel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','error','context','nextSibling','focusPromptInput','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','anchorId','AIEditing','sendUserMessage','finishInteraction','resource','addCurrentDocumentToContext','like','hideFakeVisualSelection','ai-chat-context-invalid-data','contextItemLoadingEnded','addSelectionToChatContext','commands','editing','get','changes','find','split','ai.chat.context','content','_applySuggestion','sources','pending','pluginName','path','reasoningFinished','updateResourceState','uid','updateFeedItemAIReplySuggestionContent','setLoadingMessage','setIsMaximized','AIChatUI','addFeedItemAISuggestion','current-document','loadSourceResources','resourceStateChanged','_stopLastInteraction','createPositionAt','removeFeedInteraction','revert','node','_aiEditing','addFeedItemError','addFeedItemStaticMessage','getRanges','_createFromRanges','toggleWebSearch','isDocumentOperation','AI_CHAT_ABORTED_MESSAGE','setModel','removeFromContext','setSelectedModel','streaming','messageId','ai-chat-url-upload-failed','Undo','conversationInitialized','startInteraction','removeSelectionFromChatContext','source','updateFeedItemAIReplyContent','_flushLastInteractionUI','indexOf','delete','init','replyCreated','main','_showConversationHistory','startConversation','from','setAddContextOptions','showDiff','getChild','removeSelectionFromContext','getChildren','length','interactionDestroyed','_aiConnector','filter','sourceResourcesLoaded','model','contextItems','addFeedItemUserMessage','scrollFeedToSuggestion','interactionId','ai.chat.models.defaultModelId','_getDocumentRangeForReplyChanges','getOperations','addContextOptionsChanged'];_0x5d6c=function(){return _0x288cf1;};return _0x5d6c();}
|
|
23
|
+
const _0x1a2717=_0x1917;(function(_0x3ea692,_0x521067){const _0x62027f=_0x1917,_0x1ac591=_0x3ea692();while(!![]){try{const _0x154e67=-parseInt(_0x62027f(0x243))/0x1+-parseInt(_0x62027f(0x291))/0x2*(parseInt(_0x62027f(0x18a))/0x3)+parseInt(_0x62027f(0x263))/0x4*(-parseInt(_0x62027f(0x1df))/0x5)+parseInt(_0x62027f(0x284))/0x6+parseInt(_0x62027f(0x258))/0x7*(parseInt(_0x62027f(0x209))/0x8)+parseInt(_0x62027f(0x2bb))/0x9+parseInt(_0x62027f(0x1e8))/0xa*(parseInt(_0x62027f(0x1ab))/0xb);if(_0x154e67===_0x521067)break;else _0x1ac591['push'](_0x1ac591['shift']());}catch(_0x36dc9c){_0x1ac591['push'](_0x1ac591['shift']());}}}(_0xf9cb,0x5722c));import{ContextPlugin as _0x5f0104,Editor as _0x38df1b}from'ckeditor5/src/core.js';function _0x1917(_0x65c98a,_0x1b15d9){const _0xf9cb00=_0xf9cb();return _0x1917=function(_0x191766,_0x41d1d3){_0x191766=_0x191766-0x16d;let _0x4805e3=_0xf9cb00[_0x191766];return _0x4805e3;},_0x1917(_0x65c98a,_0x1b15d9);}import{CKEditorError as _0x8ac84b,logError as _0x38d8c6,scrollViewportToShowTarget as _0x1bc34d,uid as _0x5102d0}from'ckeditor5/src/utils.js';import{AIConnector as _0x2c18b8}from'../aicore/aiconnector.js';import{AITabs as _0x14453f}from'../aitabs/aitabs.js';import{AIChatConversation as _0x151ae4}from'./model/aichatconversation.js';import{getTranslation as _0x10e65f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x280f3a}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x4b3c6b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x2dcedc}from'./model/aichatmodels.js';import{getEditorFromContext as _0x3c8c69}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x547b50,DATA_ID_MODEL_ATTRIBUTE as _0x5738df}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3ee9ea,getOperationsFromReply as _0x4b52ab}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x38d747,getMinimalSelection as _0x2c6897}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x54ad58,_DetachOperation as _0x200188}from'ckeditor5/src/engine.js';import{findOne as _0x139136,getAttribute as _0x5a6aa8,serialize as _0x3a9a66,Document as _0x55df7e,findByAttribute as _0xf37b8c}from'../aicore/utils/htmlparser.js';import{IconAI as _0x18af1f}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x45e5e0}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4ba62e}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x5f0104{[_0x1a2717(0x17a)];[_0x1a2717(0x236)];[_0x1a2717(0x205)];[_0x1a2717(0x21e)];[_0x1a2717(0x226)]=new Map();[_0x1a2717(0x16e)]=null;[_0x1a2717(0x20c)]=!0x1;static get[_0x1a2717(0x1af)](){return[_0x2c18b8,_0x4ba62e,_0x547b50];}static get[_0x1a2717(0x250)](){const _0x40c95e=_0x1a2717;return _0x40c95e(0x1ae);}static get[_0x1a2717(0x29d)](){return!0x0;}static get[_0x1a2717(0x1d8)](){return!0x0;}[_0x1a2717(0x245)](){const _0x2b8f9e=_0x1a2717;this[_0x2b8f9e(0x236)]=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x23a)),this[_0x2b8f9e(0x205)]=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x1b3)),this[_0x2b8f9e(0x17a)]=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x1b4)),this[_0x2b8f9e(0x21e)]=new _0x2dcedc({'connector':this[_0x2b8f9e(0x236)],'availableModels':this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x282)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x230)),'defaultModelId':this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x282)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x2ad))});const _0x1cc82d=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x267));this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x201),()=>{const _0x2008e3=_0x2b8f9e;this[_0x2008e3(0x17d)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x174),(_0x28d45b,_0x4cc20c)=>{const _0x957b4f=_0x2b8f9e;this[_0x957b4f(0x223)]({'userMessage':_0x4cc20c});}),this[_0x2b8f9e(0x1a3)](_0x1cc82d,_0x2b8f9e(0x1ef),(_0x1652a9,_0x4e44eb)=>{const _0x264311=_0x2b8f9e;this[_0x264311(0x1f2)](_0x4e44eb);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x272),()=>{const _0x27ca3b=_0x2b8f9e;_0x1cc82d[_0x27ca3b(0x198)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x25c),async()=>{const _0x176bc1=_0x2b8f9e;await this[_0x176bc1(0x2c3)](),await this[_0x176bc1(0x1ce)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x19f),()=>{const _0x549ff5=_0x2b8f9e;this[_0x549ff5(0x298)]?.[_0x549ff5(0x186)](_0x10e65f(this[_0x549ff5(0x26f)][_0x549ff5(0x1da)],_0x549ff5(0x195)));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1e5),(_0x588d1a,_0x5e17ba)=>{const _0xf5d99e=_0x2b8f9e;this[_0xf5d99e(0x298)]?.[_0xf5d99e(0x1a1)](Array[_0xf5d99e(0x1ba)](_0x5e17ba));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x271),(_0x5873e8,_0x14ff90)=>{const _0x3c6fa9=_0x2b8f9e;this[_0x3c6fa9(0x298)]?.[_0x3c6fa9(0x271)](_0x14ff90);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x187),(_0x556a86,_0x1fa481)=>{const _0x3de392=_0x2b8f9e;this[_0x3de392(0x298)]?.[_0x3de392(0x187)](_0x1fa481[_0x3de392(0x20e)],_0x1fa481[_0x3de392(0x215)]);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x270),(_0x1bb4aa,_0x4102ce)=>{const _0x1b6706=_0x2b8f9e;this[_0x1b6706(0x19b)](_0x4102ce);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1c6),(_0x24c845,_0x5e187e)=>{const _0x127676=_0x2b8f9e;this[_0x127676(0x298)]?.[_0x127676(0x1c6)](_0x5e187e[_0x127676(0x202)],_0x5e187e[_0x127676(0x27d)],_0x5e187e[_0x127676(0x1b7)]);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x2a1),()=>{const _0x315058=_0x2b8f9e;this[_0x315058(0x180)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x184),()=>{const _0x230c54=_0x2b8f9e;this[_0x230c54(0x1e2)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x2cc),(_0x41f3dc,_0x41986a)=>{const _0x3ee765=_0x2b8f9e;this[_0x3ee765(0x298)]?.[_0x3ee765(0x269)](_0x41986a);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1f1),(_0x357d29,{replyId:_0x437523})=>{const _0x17880e=_0x2b8f9e;console[_0x17880e(0x1a0)](_0x17880e(0x290),_0x437523);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x27b),(_0x55af3b,{replyId:_0x45f4f1})=>{const _0x228880=_0x2b8f9e;console[_0x228880(0x1a0)](_0x228880(0x27a),_0x45f4f1);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x18f),(_0x518ac5,_0x5bc460)=>{const _0x2adbfd=_0x2b8f9e;this[_0x2adbfd(0x26f)][_0x2adbfd(0x221)][_0x2adbfd(0x1aa)](_0x4ba62e)[_0x2adbfd(0x1eb)](),this[_0x2adbfd(0x2b3)](_0x5bc460);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1fe),(_0x104b6e,{replyId:_0x56cfa1,partIndex:_0x1c7bac})=>{const _0x70fdda=_0x2b8f9e;this[_0x70fdda(0x20c)]=this[_0x70fdda(0x205)][_0x70fdda(0x1a8)],this[_0x70fdda(0x244)](_0x56cfa1,_0x1c7bac);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x268),(_0x1e4f56,{replyId:_0x27909e,partIndex:_0x274253})=>{const _0x42a748=_0x2b8f9e,_0x53f234=this[_0x42a748(0x208)](_0x27909e,_0x274253);_0x53f234&&_0x42a748(0x26e)!=_0x53f234[_0x42a748(0x1f5)][_0x42a748(0x190)][_0x42a748(0x1f7)]&&this[_0x42a748(0x17a)][_0x42a748(0x28b)]([_0x53f234[_0x42a748(0x1f5)]],_0x42a748(0x1c7));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x21f),()=>{const _0x4c706a=_0x2b8f9e;this[_0x4c706a(0x17a)][_0x4c706a(0x2a0)](_0x4c706a(0x1c7));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x237),(_0x289709,_0x10b502)=>{const _0xe5a2ff=_0x2b8f9e;this[_0xe5a2ff(0x26f)][_0xe5a2ff(0x221)][_0xe5a2ff(0x1aa)](_0x4ba62e)[_0xe5a2ff(0x1eb)](),this[_0xe5a2ff(0x229)](_0x10b502);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x25e),async(_0x34eb71,{replyId:_0x372dbf,showDiff:_0x4b2595})=>{const _0x51a994=_0x2b8f9e,{reply:_0x18bcf3}=this[_0x51a994(0x1c3)](_0x372dbf),_0x608a41=_0x18bcf3[_0x51a994(0x29e)]({'showDiff':_0x4b2595});await this[_0x51a994(0x205)][_0x51a994(0x1c1)]({'id':_0x18bcf3['id'],'parts':_0x608a41,'renderingStrategy':_0x51a994(0x235)});}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x27c),(_0x3dafe6,{replyId:_0x1e2edd,partIndex:_0x2fb74a})=>{const _0x5d39ab=_0x2b8f9e;this[_0x5d39ab(0x16e)]?.[_0x5d39ab(0x21c)]==_0x1e2edd&&this[_0x5d39ab(0x16e)]?.[_0x5d39ab(0x2a7)]==_0x2fb74a&&this[_0x5d39ab(0x26f)][_0x5d39ab(0x221)][_0x5d39ab(0x1aa)](_0x4ba62e)[_0x5d39ab(0x1eb)]();const {reply:_0x43ccad}=this[_0x5d39ab(0x1c3)](_0x1e2edd);_0x43ccad[_0x5d39ab(0x24a)](_0x2fb74a,_0x5d39ab(0x2b2)),this[_0x5d39ab(0x17a)][_0x5d39ab(0x2a0)](_0x5d39ab(0x1c7));});}async[_0x1a2717(0x175)](){const _0x301f1a=_0x1a2717;this[_0x301f1a(0x26f)]instanceof _0x38df1b?this[_0x301f1a(0x1fc)](this[_0x301f1a(0x26f)]):this[_0x301f1a(0x1a3)](this[_0x301f1a(0x26f)][_0x301f1a(0x204)],_0x301f1a(0x193),(_0x13962f,_0x3cb848)=>{const _0x4c99f7=_0x301f1a;_0x3cb848['on'](_0x4c99f7(0x19c),()=>{const _0x2271f6=_0x4c99f7;this[_0x2271f6(0x1fc)](_0x3cb848);});}),await this[_0x301f1a(0x17d)]();}[_0x1a2717(0x2b3)](_0x31b943){const _0x33ff2d=_0x1a2717,_0x503e05=_0x3c8c69(this[_0x33ff2d(0x26f)]);if(!_0x503e05[_0x33ff2d(0x221)][_0x33ff2d(0x29f)](_0x33ff2d(0x1fd)))throw new _0x8ac84b(_0x33ff2d(0x1e9),null);const _0x1b2f38=this[_0x33ff2d(0x26f)][_0x33ff2d(0x221)][_0x33ff2d(0x1aa)](_0x33ff2d(0x1fa)),{reply:_0x37b245,interaction:_0x5bf2e6}=this[_0x33ff2d(0x1c3)](_0x31b943[_0x33ff2d(0x21c)]),_0x28ca0f=this[_0x33ff2d(0x208)](_0x31b943[_0x33ff2d(0x21c)],_0x31b943[_0x33ff2d(0x2a7)]),_0xfa7a51=void 0x0!==_0x31b943[_0x33ff2d(0x2a7)]?[_0x37b245[_0x33ff2d(0x2ac)][_0x31b943[_0x33ff2d(0x2a7)]]]:_0x37b245[_0x33ff2d(0x2ac)][_0x33ff2d(0x188)](_0x3eeeef=>_0x33ff2d(0x1d9)==_0x3eeeef[_0x33ff2d(0x1a9)]),_0x11fa9a=_0xfa7a51[_0x33ff2d(0x179)](_0x138db2=>_0x37b245[_0x33ff2d(0x2ac)][_0x33ff2d(0x2a3)](_0x138db2));if(!_0x28ca0f||_0x33ff2d(0x26e)==_0x28ca0f[_0x33ff2d(0x1f5)][_0x33ff2d(0x190)][_0x33ff2d(0x1f7)])return void _0x11fa9a[_0x33ff2d(0x213)](_0x5836bf=>_0x37b245[_0x33ff2d(0x24a)](_0x5836bf,_0x33ff2d(0x279)));_0x11fa9a[_0x33ff2d(0x213)](_0x161b59=>_0x37b245[_0x33ff2d(0x24a)](_0x161b59,_0x33ff2d(0x1cf)));const _0x80516e=_0x4b52ab({'editor':_0x503e05,'reply':_0x37b245,'interaction':_0x5bf2e6,'groups':_0xfa7a51,'transform':!0x0,'documentCompare':_0x1b2f38,'documentCompareOptions':{'anchor':_0x33ff2d(0x254),'markDeletions':!0x0}});let _0x41bc01;_0x28ca0f&&this[_0x33ff2d(0x2b4)](_0x28ca0f[_0x33ff2d(0x1f5)]),_0x503e05[_0x33ff2d(0x29b)][_0x33ff2d(0x27e)](_0x34328c=>{const _0xe2904f=_0x33ff2d;_0x41bc01=_0x34328c[_0xe2904f(0x1d6)],_0x503e05[_0xe2904f(0x221)][_0xe2904f(0x1aa)](_0xe2904f(0x178))[_0xe2904f(0x1f3)](_0x80516e),this[_0xe2904f(0x17a)][_0xe2904f(0x2a0)](_0xe2904f(0x1c7));}),this[_0x33ff2d(0x226)][_0x33ff2d(0x2a5)](_0x41bc01,{'interactionId':_0x5bf2e6['id'],'replyId':_0x37b245['id'],'indexes':_0x11fa9a[_0x33ff2d(0x207)]()}),this[_0x33ff2d(0x18e)](_0x37b245);}[_0x1a2717(0x229)](_0x95570b){const _0x1be94f=_0x1a2717,_0x24d139=_0x3c8c69(this[_0x1be94f(0x26f)]),_0x5226fe=this[_0x1be94f(0x26f)][_0x1be94f(0x221)][_0x1be94f(0x1aa)](_0x547b50),{reply:_0x1120f6,interaction:_0x2700f7}=this[_0x1be94f(0x1c3)](_0x95570b[_0x1be94f(0x21c)]),_0x403d39=this[_0x1be94f(0x208)](_0x95570b[_0x1be94f(0x21c)],_0x95570b[_0x1be94f(0x2a7)]),_0x2c4df8=void 0x0!==_0x95570b[_0x1be94f(0x2a7)]?[_0x1120f6[_0x1be94f(0x2ac)][_0x95570b[_0x1be94f(0x2a7)]]]:_0x1120f6[_0x1be94f(0x2ac)][_0x1be94f(0x188)](_0x172df6=>_0x1be94f(0x1d9)==_0x172df6[_0x1be94f(0x1a9)]),_0x12d8e0=_0x2c4df8[_0x1be94f(0x179)](_0x2a4bdc=>_0x1120f6[_0x1be94f(0x2ac)][_0x1be94f(0x2a3)](_0x2a4bdc));if(!_0x403d39||_0x1be94f(0x26e)==_0x403d39[_0x1be94f(0x1f5)][_0x1be94f(0x190)][_0x1be94f(0x1f7)])return void _0x12d8e0[_0x1be94f(0x213)](_0x3470e1=>_0x1120f6[_0x1be94f(0x24a)](_0x3470e1,_0x1be94f(0x279)));_0x12d8e0[_0x1be94f(0x213)](_0x1a4a57=>_0x1120f6[_0x1be94f(0x24a)](_0x1a4a57,_0x1be94f(0x1cf)));const _0x5bd8b1=_0x4b52ab({'editor':_0x24d139,'reply':_0x1120f6,'interaction':_0x2700f7,'groups':_0x2c4df8,'transform':!0x0,'documentCompare':_0x5226fe,'documentCompareOptions':{'anchor':_0x1be94f(0x254),'markDeletions':!0x1}});let _0x38ce24;_0x403d39&&this[_0x1be94f(0x2b4)](_0x403d39[_0x1be94f(0x1f5)]),_0x24d139[_0x1be94f(0x29b)][_0x1be94f(0x27e)](_0x3e9f2c=>{const _0x3773fa=_0x1be94f;_0x38ce24=_0x3e9f2c[_0x3773fa(0x1d6)];for(const _0x2b0634 of _0x5bd8b1)_0x2b0634[_0x3773fa(0x2bd)]=_0x24d139[_0x3773fa(0x29b)][_0x3773fa(0x1de)][_0x3773fa(0x1a5)],_0x3ee9ea(_0x24d139,_0x2b0634),_0x3e9f2c[_0x3773fa(0x1d6)][_0x3773fa(0x18c)](_0x2b0634),_0x24d139[_0x3773fa(0x29b)][_0x3773fa(0x295)](_0x2b0634);}),this[_0x1be94f(0x226)][_0x1be94f(0x2a5)](_0x38ce24,{'interactionId':_0x2700f7['id'],'replyId':_0x1120f6['id'],'indexes':_0x12d8e0[_0x1be94f(0x207)]()}),this[_0x1be94f(0x18e)](_0x1120f6);}[_0x1a2717(0x244)](_0x2849d9,_0x79eb8){const _0x46103f=_0x1a2717,_0x39ec60=_0x3c8c69(this[_0x46103f(0x26f)]),_0x599071=this[_0x46103f(0x208)](_0x2849d9,_0x79eb8),_0xebe400=this[_0x46103f(0x26f)][_0x46103f(0x221)][_0x46103f(0x1aa)](_0x4ba62e);if(!_0x599071)return void _0xebe400[_0x46103f(0x1eb)]();const {range:_0x16d732,currentIndex:_0x291350}=_0x599071;if(_0x46103f(0x26e)==_0x16d732[_0x46103f(0x190)][_0x46103f(0x1f7)]){const {reply:_0x3fe19a}=this[_0x46103f(0x1c3)](_0x2849d9);return _0x3fe19a[_0x46103f(0x24a)](_0x291350,_0x46103f(0x279)),void _0xebe400[_0x46103f(0x1eb)]();}if(this[_0x46103f(0x16e)]?.[_0x46103f(0x21c)]==_0x2849d9&&this[_0x46103f(0x16e)]?.[_0x46103f(0x2a7)]==_0x291350)return;this[_0x46103f(0x25f)](_0xebe400),this[_0x46103f(0x16e)]={'replyId':_0x2849d9,'partIndex':_0x291350};let _0x3f52ba=_0x39ec60[_0x46103f(0x282)][_0x46103f(0x1aa)](_0x46103f(0x1dc))||[..._0x4b3c6b];_0x39ec60[_0x46103f(0x221)][_0x46103f(0x29f)](_0x46103f(0x1fd))||(_0x3f52ba=_0x3f52ba[_0x46103f(0x188)](_0x27bab4=>_0x46103f(0x18f)!=_0x27bab4));const _0x10e417=new _0x45e5e0(_0x39ec60[_0x46103f(0x1da)],{'showDiff':this[_0x46103f(0x20c)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x46103f(0x22c)},'hideHeader':!0x0,'availableActions':_0x3f52ba});this[_0x46103f(0x25f)](_0x10e417);const {reply:_0x23e1ec}=this[_0x46103f(0x1c3)](_0x2849d9),_0xe177a5=_0x23e1ec[_0x46103f(0x29e)]({'showDiff':this[_0x46103f(0x20c)]})[_0x46103f(0x188)](_0x5c44b0=>_0x5c44b0[_0x46103f(0x25a)]),_0x4d7d68=_0xe177a5[_0x46103f(0x26a)](_0x3dc8a7=>_0x3dc8a7[_0x46103f(0x200)]==_0x291350);if(-0x1==_0x4d7d68)return;const _0x231ad8=_0xe177a5[_0x4d7d68],_0x4aca0c=_0xe177a5['at']((_0x4d7d68-0x1)%_0xe177a5[_0x46103f(0x23b)])?.[_0x46103f(0x200)],_0x457492=_0xe177a5['at']((_0x4d7d68+0x1)%_0xe177a5[_0x46103f(0x23b)])?.[_0x46103f(0x200)];_0x10e417[_0x46103f(0x2a2)]({'parts':[_0x231ad8],'renderingStrategy':_0x46103f(0x235)});const _0x442ba0=_0x291350!==_0x4aca0c;this[_0x46103f(0x2b4)](_0x16d732,!0x0),_0xebe400[_0x46103f(0x170)]({'index':_0x291350,'title':_0x10e65f(this[_0x46103f(0x26f)][_0x46103f(0x1da)],_0x46103f(0x1e4),(_0x4d7d68+0x1)[_0x46103f(0x288)]()),'icon':_0x18af1f,'mainView':_0x10e417,'showRotator':_0x442ba0,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x16d732]}),this[_0x46103f(0x205)][_0x46103f(0x1db)](_0x2849d9,_0x291350),this[_0x46103f(0x1a3)](_0x10e417,_0x46103f(0x25e),(_0x1786ce,{showDiff:_0x135576})=>{const _0x1d7d8f=_0x46103f;this[_0x1d7d8f(0x20c)]=_0x135576;const {reply:_0x32c337}=this[_0x1d7d8f(0x1c3)](_0x2849d9),_0x1c746b=_0x32c337[_0x1d7d8f(0x29e)]({'showDiff':_0x135576,'groupIndex':_0x291350});_0x10e417[_0x1d7d8f(0x2a2)]({'parts':_0x1c746b,'renderingStrategy':_0x1d7d8f(0x235)});}),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x237),()=>{const _0x553f27=_0x46103f;this[_0x553f27(0x229)]({'replyId':_0x2849d9,'partIndex':_0x291350}),_0x442ba0?this[_0x553f27(0x244)](_0x2849d9,_0x457492):_0xebe400[_0x553f27(0x1eb)]();}),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x18f),()=>{const _0x281dfd=_0x46103f;this[_0x281dfd(0x2b3)]({'replyId':_0x2849d9,'partIndex':_0x291350}),_0x442ba0?this[_0x281dfd(0x244)](_0x2849d9,_0x457492):_0xebe400[_0x281dfd(0x1eb)]();}),_0x442ba0&&(this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x1a4),()=>{const _0x49f4c1=_0x46103f;this[_0x49f4c1(0x244)](_0x2849d9,_0x457492);}),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x1e3),()=>{const _0x45519f=_0x46103f;this[_0x45519f(0x244)](_0x2849d9,_0x4aca0c);})),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x211),()=>{const _0x5179db=_0x46103f;this[_0x5179db(0x25f)](_0xebe400),this[_0x5179db(0x25f)](_0x10e417),this[_0x5179db(0x16e)]=null;});}[_0x1a2717(0x208)](_0x243df8,_0x5243b7){const _0x196084=_0x1a2717,_0xa9bb3=_0x3c8c69(this[_0x196084(0x26f)]),{reply:_0x5efd34,interaction:_0x5d3664}=this[_0x196084(0x1c3)](_0x243df8),_0x121d57=_0x5efd34[_0x196084(0x2ac)][_0x196084(0x188)](_0x31e60e=>_0x196084(0x1d9)==_0x31e60e[_0x196084(0x1a9)]),_0x40bee9=_0x121d57[_0x196084(0x179)](_0x1401b4=>_0x5efd34[_0x196084(0x2ac)][_0x196084(0x2a3)](_0x1401b4));void 0x0===_0x5243b7&&(_0x5243b7=_0x40bee9[0x0]);const _0x1e9d15=_0x40bee9[_0x196084(0x2a3)](_0x5243b7);if(-0x1==_0x1e9d15)return null;const _0x4e5f5b=_0x121d57[_0x1e9d15],_0x5625c7=new _0x55df7e([]),_0x400f5b=new _0x55df7e([]);for(const _0x1afb7e of _0x4e5f5b[_0x196084(0x265)])if(_0x196084(0x285)!=_0x1afb7e[_0x196084(0x1f6)]&&_0x400f5b[_0x196084(0x24e)][_0x196084(0x260)](_0x1afb7e[_0x196084(0x1e6)][_0x196084(0x210)](!0x0)),_0x196084(0x238)!=_0x1afb7e[_0x196084(0x1f6)]){const _0x26b585=_0x139136(_0x367083=>_0x5a6aa8(_0x367083,_0x196084(0x280))==_0x1afb7e['id'],_0x5efd34[_0x196084(0x2b9)],!0x0);_0x5625c7[_0x196084(0x24e)][_0x196084(0x260)](_0x26b585[_0x196084(0x210)](!0x0));}if(0x0==_0x5625c7[_0x196084(0x24e)][_0x196084(0x23b)]){if(_0x4e5f5b[_0x196084(0x265)][0x0][_0x196084(0x1d4)]){const _0x5067b5=_0xf37b8c(_0x196084(0x280),_0x4e5f5b[_0x196084(0x265)][0x0][_0x196084(0x1d4)],_0x5efd34[_0x196084(0x2b9)]);_0x5625c7[_0x196084(0x24e)][_0x196084(0x21d)](_0x5067b5[_0x196084(0x210)](!0x0)),_0x400f5b[_0x196084(0x24e)][_0x196084(0x21d)](_0x5067b5[_0x196084(0x210)](!0x0)),_0x5067b5[_0x196084(0x1d0)]&&(_0x5625c7[_0x196084(0x24e)][_0x196084(0x260)](_0x5067b5[_0x196084(0x1d0)][_0x196084(0x210)](!0x0)),_0x400f5b[_0x196084(0x24e)][_0x196084(0x260)](_0x5067b5[_0x196084(0x1d0)][_0x196084(0x210)](!0x0)));}else{const _0x3ac2f9=_0x5efd34[_0x196084(0x2b9)][_0x196084(0x24e)][0x0];if(!_0x3ac2f9)return null;_0x5625c7[_0x196084(0x24e)][_0x196084(0x260)](_0x3ac2f9[_0x196084(0x210)](!0x0)),_0x400f5b[_0x196084(0x24e)][_0x196084(0x260)](_0x3ac2f9[_0x196084(0x210)](!0x0));}}const _0x93f1a2=_0x5d3664[_0x196084(0x2c4)](),_0xa0864b=_0xa9bb3[_0x196084(0x1b6)][_0x196084(0x17c)](_0x93f1a2[_0x196084(0x1ed)]),_0x5a111d=_0x3a9a66(_0x5625c7),_0x2ab0ee=_0xa9bb3[_0x196084(0x1b6)][_0x196084(0x17c)](_0x5a111d),_0x422653=_0xa9bb3[_0x196084(0x1b6)][_0x196084(0x17c)](_0x5a111d),_0x565fb2=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x232)](_0x2ab0ee,0x0),_0x3e1ed6=_0x3a9a66(_0x400f5b),_0x4e2bad={'anchor':_0x565fb2,'markDeletions':!0x1},_0x49127c=_0xa9bb3[_0x196084(0x221)][_0x196084(0x1aa)](_0x547b50)[_0x196084(0x2cb)](_0x5a111d,_0x3e1ed6,_0x4e2bad)[_0x196084(0x212)]();if(!_0x49127c[_0x196084(0x23b)])return null;_0xa9bb3[_0x196084(0x29b)][_0x196084(0x27e)](_0x2f91f9=>{const _0x32d5ce=_0x196084;for(const _0x5213bb of _0x49127c)if(_0x32d5ce(0x294)==_0x5213bb[_0x32d5ce(0x1f6)]){const _0x295577=_0x5213bb[_0x32d5ce(0x262)],_0x82f3fe=_0x5213bb[_0x32d5ce(0x177)],_0x44b915=new _0x200188(_0x295577,_0x82f3fe);_0x2f91f9[_0x32d5ce(0x1d6)][_0x32d5ce(0x18c)](_0x44b915),_0xa9bb3[_0x32d5ce(0x29b)][_0x32d5ce(0x295)](_0x44b915);}else _0x32d5ce(0x278)!==_0x5213bb[_0x32d5ce(0x1f6)]&&(_0x5213bb[_0x32d5ce(0x2bd)]=null,_0x5213bb[_0x32d5ce(0x20a)]=!0x1,_0x2f91f9[_0x32d5ce(0x1d6)][_0x32d5ce(0x18c)](_0x5213bb),_0xa9bb3[_0x32d5ce(0x29b)][_0x32d5ce(0x295)](_0x5213bb));});const _0xd3560f=_0x2c6897(_0xa9bb3,_0x49127c,_0x2ab0ee);_0x38d747(_0xa9bb3[_0x196084(0x29b)],_0xd3560f);const _0x1c994e=_0xd3560f[_0x196084(0x23c)]()[_0x196084(0x2c6)][_0x196084(0x217)][_0x196084(0x207)](),_0x1026c0=_0xd3560f[_0x196084(0x23c)]()[_0x196084(0x2b1)][_0x196084(0x217)][_0x196084(0x207)](),_0x395ee5=[];let _0x274057=_0x2ab0ee,_0x16149a=_0x422653;for(let _0x5a63f4=0x0;_0x5a63f4<_0x1026c0[_0x196084(0x23b)];_0x5a63f4++){const _0x11f2e6=_0x274057[_0x196084(0x192)]-_0x1026c0[_0x5a63f4];_0x395ee5[_0x5a63f4]=_0x16149a[_0x196084(0x192)]-_0x11f2e6,_0x274057=_0x274057[_0x196084(0x1b5)](_0x1026c0[_0x5a63f4]),_0x16149a=_0x16149a[_0x196084(0x1b5)](_0x395ee5[_0x5a63f4]);}const _0x4c776b=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x242)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0x422653,_0x1c994e),_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0x422653,_0x395ee5)),_0x3804ee=_0x422653[_0x196084(0x1b0)](0x0)[_0x196084(0x2be)](_0x5738df),_0x1e46df=Array[_0x196084(0x1ba)](_0xa0864b[_0x196084(0x259)]())[_0x196084(0x247)](_0x9103bc=>_0x9103bc[_0x196084(0x2be)](_0x5738df)==_0x3804ee)[_0x196084(0x22f)](),_0x47ab0b=_0x4c776b[_0x196084(0x2c6)][_0x196084(0x217)][_0x196084(0x207)](),_0x537add=_0x4c776b[_0x196084(0x2b1)][_0x196084(0x217)][_0x196084(0x207)]();_0x47ab0b[0x0]=_0x1e46df[0x0]+_0x47ab0b[0x0],_0x537add[0x0]=_0x1e46df[0x0]+_0x537add[0x0];let _0x4573fb=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x242)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1de)][_0x196084(0x1ac)](),_0x47ab0b),_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1de)][_0x196084(0x1ac)](),_0x537add));const _0x63f680=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1de)][_0x196084(0x266)][_0x196084(0x212)](_0x93f1a2[_0x196084(0x1a5)]);for(const _0x4a66ca of _0x63f680)_0x4573fb=_0x54ad58[_0x196084(0x17f)](_0x4573fb[_0x196084(0x222)](_0x4a66ca));return{'range':_0x4573fb,'currentIndex':_0x5243b7};}[_0x1a2717(0x1fc)](_0x2f72c0){const _0x37d891=_0x1a2717;if(!_0x2f72c0[_0x37d891(0x221)][_0x37d891(0x29f)](_0x37d891(0x22b)))return;const _0x398fe7=_0x2f72c0[_0x37d891(0x172)][_0x37d891(0x1aa)](_0x37d891(0x296)),_0x37a5a3=_0x2f72c0[_0x37d891(0x172)][_0x37d891(0x1aa)](_0x37d891(0x251));this[_0x37d891(0x1a3)](_0x398fe7,_0x37d891(0x19e),(_0x48cdc0,_0x273115,_0xa77ff7)=>{const _0x1711f3=_0x37d891,_0x235983=this[_0x1711f3(0x226)][_0x1711f3(0x1aa)](_0x273115);if(!_0x235983)return;const _0x266bf2=this[_0x1711f3(0x298)][_0x1711f3(0x183)](_0x235983[_0x1711f3(0x1d2)])[_0x1711f3(0x1b2)](_0x235983[_0x1711f3(0x21c)]);_0x235983[_0x1711f3(0x1f8)][_0x1711f3(0x213)](_0x40d004=>_0x266bf2[_0x1711f3(0x24a)](_0x40d004,_0x1711f3(0x1d9))),this[_0x1711f3(0x226)][_0x1711f3(0x171)](_0x273115),this[_0x1711f3(0x226)][_0x1711f3(0x2a5)](_0xa77ff7,_0x235983);}),this[_0x37d891(0x1a3)](_0x37a5a3,_0x37d891(0x19e),(_0xffa3ff,_0x4e1b1e,_0x21dbc5)=>{const _0x30b678=_0x37d891,_0x1109e9=this[_0x30b678(0x226)][_0x30b678(0x1aa)](_0x4e1b1e);if(!_0x1109e9)return;const _0x5a9722=this[_0x30b678(0x298)][_0x30b678(0x183)](_0x1109e9[_0x30b678(0x1d2)])[_0x30b678(0x1b2)](_0x1109e9[_0x30b678(0x21c)]);_0x1109e9[_0x30b678(0x1f8)][_0x30b678(0x213)](_0x3ecfb6=>_0x5a9722[_0x30b678(0x24a)](_0x3ecfb6,_0x30b678(0x1cf))),this[_0x30b678(0x226)][_0x30b678(0x171)](_0x4e1b1e),this[_0x30b678(0x226)][_0x30b678(0x2a5)](_0x21dbc5,_0x1109e9);});}async[_0x1a2717(0x287)](_0xcc65c8){const _0x126e21=_0x1a2717;this[_0x126e21(0x26f)][_0x126e21(0x221)][_0x126e21(0x1aa)](_0x4ba62e)[_0x126e21(0x1eb)](),this[_0x126e21(0x205)][_0x126e21(0x228)](_0x126e21(0x235)),this[_0x126e21(0x205)][_0x126e21(0x2a6)](!0x0),await this[_0x126e21(0x2c3)]();try{const _0x1c5ad5=this[_0x126e21(0x26f)][_0x126e21(0x221)][_0x126e21(0x1aa)](_0x14453f);this[_0x126e21(0x173)]('\x20'),_0x1c5ad5[_0x126e21(0x1b8)][_0x126e21(0x216)](_0x126e21(0x1cc)),await this[_0x126e21(0x17d)](_0xcc65c8);const {sessionId:_0x262cdc}=this[_0x126e21(0x17a)][_0x126e21(0x1ea)]();await this[_0x126e21(0x298)][_0x126e21(0x2c1)](_0xcc65c8,_0x262cdc),this[_0x126e21(0x298)][_0x126e21(0x16f)]()&&this[_0x126e21(0x298)][_0x126e21(0x186)](_0x10e65f(this[_0x126e21(0x26f)][_0x126e21(0x1da)],_0x126e21(0x195)));}catch(_0x142f91){console[_0x126e21(0x206)](_0x126e21(0x26b),_0x142f91);}finally{this[_0x126e21(0x205)][_0x126e21(0x21b)](),this[_0x126e21(0x205)][_0x126e21(0x228)](_0x126e21(0x276)),this[_0x126e21(0x205)][_0x126e21(0x2a6)](!0x1);}}[_0x1a2717(0x2c9)](_0x15fdf7){const _0xe13d5f=_0x1a2717;this[_0xe13d5f(0x298)]['id']===_0x15fdf7&&this[_0xe13d5f(0x17d)]();}async[_0x1a2717(0x1cb)](){const _0x599544=_0x1a2717,_0x41a861=this[_0x599544(0x17a)][_0x599544(0x2c2)]();this[_0x599544(0x298)]?.[_0x599544(0x273)](_0x41a861),this[_0x599544(0x298)]?.[_0x599544(0x186)](_0x10e65f(this[_0x599544(0x26f)][_0x599544(0x1da)],_0x599544(0x195)));}[_0x1a2717(0x24b)](){const _0x292bb8=_0x1a2717;this[_0x292bb8(0x298)]?.[_0x292bb8(0x1b9)]();}[_0x1a2717(0x1a6)](){const _0x16fc36=_0x1a2717;this[_0x16fc36(0x205)][_0x16fc36(0x1a6)]();}async[_0x1a2717(0x201)](){const _0x5d5f46=_0x1a2717;await this[_0x5d5f46(0x17d)]();}async[_0x1a2717(0x1a7)]({message:_0x2919ba,quickActionData:_0x4d66f1}){const _0x5a50ee=_0x1a2717;await this[_0x5a50ee(0x223)]({'userMessage':_0x2919ba,'quickActionData':_0x4d66f1});}[_0x1a2717(0x28e)](){const _0x20a41f=_0x1a2717,_0x2bec0a=this[_0x20a41f(0x26f)][_0x20a41f(0x282)][_0x20a41f(0x1aa)](_0x20a41f(0x2a4));if(!_0x2bec0a)throw new _0x8ac84b(_0x20a41f(0x23e),this);return _0x2bec0a;}async[_0x1a2717(0x17d)](_0xb8223f){const _0x31b99b=_0x1a2717;try{this[_0x31b99b(0x205)][_0x31b99b(0x22d)](),await this[_0x31b99b(0x191)](_0xb8223f);}catch(_0x4e89c6){_0x38d8c6(_0x31b99b(0x2a8),_0x4e89c6),this[_0x31b99b(0x298)]=void 0x0,this[_0x31b99b(0x205)][_0x31b99b(0x176)]();}}async[_0x1a2717(0x191)](_0x1e5b31){const _0x495fbd=_0x1a2717,_0x21436b=this[_0x495fbd(0x26f)][_0x495fbd(0x221)][_0x495fbd(0x1aa)](_0x4ba62e);let _0x45d2b2;_0x21436b[_0x495fbd(0x1d3)]&&_0x21436b[_0x495fbd(0x1eb)](),_0x1e5b31||!this[_0x495fbd(0x298)]?_0x45d2b2=this[_0x495fbd(0x26f)][_0x495fbd(0x282)][_0x495fbd(0x1aa)](_0x495fbd(0x2ad)):this[_0x495fbd(0x205)][_0x495fbd(0x248)]&&(_0x45d2b2=this[_0x495fbd(0x298)][_0x495fbd(0x181)]['id']),await this[_0x495fbd(0x2c3)]();const _0x44a8ec=this[_0x495fbd(0x28e)](),_0x1e7629=_0x1e5b31||_0x5102d0();this[_0x495fbd(0x298)]=new _0x151ae4({'connector':this[_0x495fbd(0x236)],'chatModels':this[_0x495fbd(0x21e)],'selectedModelId':_0x45d2b2,'conversationId':_0x1e7629,'group':_0x44a8ec,'getEditor':()=>_0x3c8c69(this[_0x495fbd(0x26f)])}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1f9),(_0x41db9e,_0x332982)=>{const _0x4b35bc=_0x495fbd;this[_0x4b35bc(0x205)][_0x4b35bc(0x1c4)](_0x332982),this[_0x4b35bc(0x205)][_0x4b35bc(0x275)](),this[_0x4b35bc(0x205)][_0x4b35bc(0x197)](),this[_0x4b35bc(0x205)][_0x4b35bc(0x253)](),_0x1e5b31||(this[_0x4b35bc(0x205)][_0x4b35bc(0x29a)](),this[_0x4b35bc(0x298)]?.[_0x4b35bc(0x186)](_0x10e65f(this[_0x4b35bc(0x26f)][_0x4b35bc(0x1da)],_0x4b35bc(0x195))));}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x239),(_0xecb250,_0x38e42a)=>{const _0x27f626=_0x495fbd;this[_0x27f626(0x205)][_0x27f626(0x24f)](_0x38e42a[_0x27f626(0x1ff)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x2a9),(_0x4181fa,_0x42a974)=>{const _0x44d024=_0x495fbd;this[_0x44d024(0x205)][_0x44d024(0x26c)](_0x42a974);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x25d),()=>{const _0x3082b6=_0x495fbd;this[_0x3082b6(0x205)][_0x3082b6(0x2b6)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x2c8),()=>{const _0x298e7f=_0x495fbd;this[_0x298e7f(0x205)][_0x298e7f(0x2b6)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x17e),(_0xce38e5,_0x4039a9)=>{const _0x1c67d3=_0x495fbd;this[_0x1c67d3(0x205)][_0x1c67d3(0x1b1)](_0x4039a9,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x224),(_0xf32130,_0x5af1ce)=>{const _0x52e9ad=_0x495fbd;this[_0x52e9ad(0x205)][_0x52e9ad(0x1b1)](_0x5af1ce,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x25b),()=>{const _0x51b84f=_0x495fbd;this[_0x51b84f(0x205)][_0x51b84f(0x28a)]();}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x261),async()=>{const _0x3f37b6=_0x495fbd;await this[_0x3f37b6(0x205)][_0x3f37b6(0x19d)]();}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1e0),(_0x867b60,_0x390535)=>{const _0x3886fd=_0x495fbd;this[_0x3886fd(0x205)][_0x3886fd(0x17b)](_0x390535['id']);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x240),(_0x27ecfe,_0x4b98ee,_0x5256d4)=>{const _0x550c82=_0x495fbd;this[_0x550c82(0x173)](_0x4b98ee,_0x5256d4);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x227),(_0x20092e,_0x3149eb)=>{const _0x4fc42d=_0x495fbd;_0x4fc42d(0x2c5)===_0x3149eb[_0x4fc42d(0x1f6)]?this[_0x4fc42d(0x205)][_0x4fc42d(0x21a)](_0x3149eb):this[_0x4fc42d(0x205)][_0x4fc42d(0x29c)](_0x3149eb);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1bf),async(_0x459968,_0x17a071)=>{const _0x26efab=_0x495fbd;await this[_0x26efab(0x292)]({'reply':_0x17a071});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1d1),(_0x1d1862,{reply:_0x85b3df,index:_0x220975,state:_0x3a2ed6})=>{const _0x3b1f44=_0x495fbd;this[_0x3b1f44(0x205)][_0x3b1f44(0x249)]({'id':_0x85b3df['id'],'index':_0x220975,'state':_0x3a2ed6});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1bd),(_0x5a7f4b,_0x4cfffa)=>{const _0x1becfc=_0x495fbd;if(this[_0x1becfc(0x205)][_0x1becfc(0x1bb)](_0x4cfffa[_0x1becfc(0x22e)],_0x4cfffa[_0x1becfc(0x277)]),_0x1becfc(0x286)===_0x4cfffa[_0x1becfc(0x22e)][_0x1becfc(0x1f6)]){const _0x279f03=[..._0x3c8c69(this[_0x1becfc(0x26f)])[_0x1becfc(0x29b)][_0x1becfc(0x1de)][_0x1becfc(0x286)][_0x1becfc(0x20b)]()];this[_0x1becfc(0x17a)][_0x1becfc(0x28b)](_0x279f03,_0x1becfc(0x220)+this[_0x1becfc(0x298)]?.['id']);}}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x196),(_0xbb8d73,_0x1b526c)=>{const _0x9e3b1e=_0x495fbd;this[_0x9e3b1e(0x205)][_0x9e3b1e(0x270)](_0x1b526c[_0x9e3b1e(0x182)]),_0x9e3b1e(0x20d)==_0x1b526c[_0x9e3b1e(0x182)]&&this[_0x9e3b1e(0x24b)](),_0x9e3b1e(0x286)===_0x1b526c[_0x9e3b1e(0x1f6)]&&this[_0x9e3b1e(0x17a)][_0x9e3b1e(0x2a0)](_0x9e3b1e(0x220)+this[_0x9e3b1e(0x298)]?.['id']);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1ee),(_0x28755e,_0x217a4e)=>{const _0x19b750=_0x495fbd;this[_0x19b750(0x205)][_0x19b750(0x241)](_0x217a4e[_0x19b750(0x22e)][_0x19b750(0x182)],_0x217a4e[_0x19b750(0x277)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x264),(_0x2b81a1,_0x43288d)=>{const _0x2225bc=_0x495fbd;this[_0x2225bc(0x205)][_0x2225bc(0x2af)](_0x43288d[_0x2225bc(0x233)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x2b8),(_0x1961a6,_0x3de913)=>{const _0x45f7f6=_0x495fbd;this[_0x45f7f6(0x205)][_0x45f7f6(0x199)](_0x3de913[_0x45f7f6(0x1c5)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x293),(_0x2327a4,_0x3022a6)=>{const _0x5b2997=_0x495fbd;this[_0x5b2997(0x205)][_0x5b2997(0x19a)](_0x3022a6[_0x5b2997(0x202)],_0x3022a6[_0x5b2997(0x20e)],_0x3022a6[_0x5b2997(0x28d)],_0x3022a6[_0x5b2997(0x1b7)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1c9),(_0x1e2830,_0x1c9d6c)=>{const _0x44c14d=_0x495fbd;this[_0x44c14d(0x205)][_0x44c14d(0x1fb)](_0x1c9d6c[_0x44c14d(0x202)],_0x1c9d6c[_0x44c14d(0x289)],_0x1c9d6c[_0x44c14d(0x18b)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1be),(_0x55c08f,_0x30508c)=>{const _0x1a2074=_0x495fbd;this[_0x1a2074(0x205)][_0x1a2074(0x297)](_0x30508c);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x22a),(_0xc306b2,_0x41073b)=>{const _0x2ef3ef=_0x495fbd;this[_0x2ef3ef(0x205)][_0x2ef3ef(0x189)](_0x41073b[_0x2ef3ef(0x181)],_0x41073b[_0x2ef3ef(0x23d)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x206),(_0x3adfda,{error:_0x5421a0,interactionId:_0x482a0f,fileName:_0x37e282,url:_0xa97b92,sourceId:_0x403efc,sourceLabel:_0x3fb38})=>{const _0x535d71=_0x495fbd,_0x19f458=_0x482a0f?_0x482a0f+':'+_0x5102d0():_0x5102d0();_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x1ad))?this[_0x535d71(0x205)][_0x535d71(0x23f)]({'staticMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x1cd)),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x299))||_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x2a8))?(this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x1f4)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0)):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x1ec))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x1c2),_0x37e282),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x1d5))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x2ba),_0xa97b92),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x24d))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x274)),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x2c0))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x246)),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x283))?(_0x403efc&&this[_0x535d71(0x205)][_0x535d71(0x1e7)](_0x403efc),this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x2ab),_0x3fb38||_0x535d71(0x20e)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0)):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x27f))?(this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x231)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0)):(this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x234)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0));}),await this[_0x495fbd(0x298)][_0x495fbd(0x245)](this[_0x495fbd(0x26f)][_0x495fbd(0x282)][_0x495fbd(0x1aa)](_0x495fbd(0x2b0))),_0x1e5b31||await this[_0x495fbd(0x298)][_0x495fbd(0x2c6)]();}async[_0x1a2717(0x223)]({userMessage:_0x4857fc,quickActionData:_0x41106d}){const _0x2895aa=_0x1a2717;if(!this[_0x2895aa(0x298)])throw new _0x8ac84b(_0x2895aa(0x18d));this[_0x2895aa(0x298)][_0x2895aa(0x2b7)]()&&await this[_0x2895aa(0x298)][_0x2895aa(0x28f)](this[_0x2895aa(0x17a)][_0x2895aa(0x1ea)]()),this[_0x2895aa(0x298)]['id']&&this[_0x2895aa(0x298)][_0x2895aa(0x2ca)]&&await this[_0x2895aa(0x298)][_0x2895aa(0x281)]({'userMessage':_0x4857fc,'quickActionData':_0x41106d}),this[_0x2895aa(0x257)]();}[_0x1a2717(0x257)](){const _0x4d3617=_0x1a2717,_0x36a38c=_0x3c8c69(this[_0x4d3617(0x26f)])[_0x4d3617(0x29b)],_0x1971e5=Array[_0x4d3617(0x1ba)](_0x36a38c[_0x4d3617(0x1c0)][_0x4d3617(0x194)](_0x280f3a));_0x36a38c[_0x4d3617(0x27e)](_0x363765=>{const _0x4d5458=_0x4d3617;_0x1971e5[_0x4d5458(0x213)](_0x10c6e9=>_0x363765[_0x4d5458(0x2b5)](_0x10c6e9));});}[_0x1a2717(0x219)](){const _0x2fcab8=_0x1a2717;console[_0x2fcab8(0x1a0)](_0x2fcab8(0x2bf));}[_0x1a2717(0x1f2)](_0x316cf6){const _0x53b266=_0x1a2717;this[_0x53b266(0x205)][_0x53b266(0x2bc)](_0x316cf6);}[_0x1a2717(0x28c)](_0x3a5113){const _0x295d1c=_0x1a2717;_0x38d8c6(_0x3a5113[_0x295d1c(0x1a2)]);}[_0x1a2717(0x19b)](_0x47fb80){const _0x563245=_0x1a2717;this[_0x563245(0x298)]?.[_0x563245(0x2c7)](_0x47fb80);}[_0x1a2717(0x180)](){const _0xdcb1fd=_0x1a2717;this[_0xdcb1fd(0x298)]?.[_0xdcb1fd(0x2a1)]();}[_0x1a2717(0x1e2)](){const _0x4d5aa9=_0x1a2717;this[_0x4d5aa9(0x298)]?.[_0x4d5aa9(0x184)]();}[_0x1a2717(0x1c3)](_0x51d7ca){const _0x10f7e3=_0x1a2717,[_0x1b92f4,_0x173b14]=_0x51d7ca[_0x10f7e3(0x1dd)](':'),_0x50f91e=this[_0x10f7e3(0x298)][_0x10f7e3(0x183)](_0x1b92f4),_0xc9b78e=_0x50f91e[_0x10f7e3(0x1b2)](_0x173b14);return{'interaction':_0x50f91e,'reply':_0xc9b78e};}[_0x1a2717(0x2b4)](_0x1c60cf,_0x2a7720=!0x1){const _0x33ca08=_0x1a2717,_0x39b65d=_0x3c8c69(this[_0x33ca08(0x26f)]),_0x59cc13={'target':_0x39b65d[_0x33ca08(0x1bc)][_0x33ca08(0x1b8)][_0x33ca08(0x203)][_0x33ca08(0x225)](_0x39b65d[_0x33ca08(0x1bc)][_0x33ca08(0x16d)][_0x33ca08(0x2aa)](_0x1c60cf)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2a7720};_0x2a7720&&(_0x59cc13[_0x33ca08(0x1d7)]=!0x0),_0x1bc34d(_0x59cc13);}[_0x1a2717(0x173)](_0x512659,_0x5d5f8b=!0x1){const _0x4137a0=_0x1a2717;this[_0x4137a0(0x205)][_0x4137a0(0x240)](_0x512659||_0x10e65f(this[_0x4137a0(0x26f)][_0x4137a0(0x1da)],_0x4137a0(0x1f0)),_0x5d5f8b);}async[_0x1a2717(0x292)]({reply:_0xe9e6a,renderingStrategy:_0x5e67cb}){const _0x325da7=_0x1a2717,{id:_0x5594bc,isDone:_0xb401e1,type:_0x2ea102,parsedContent:_0x1a666d}=_0xe9e6a;if(_0x325da7(0x1ca)===_0x2ea102){const _0x3250b5=_0xe9e6a[_0x325da7(0x29e)]({'showDiff':this[_0x325da7(0x205)][_0x325da7(0x1a8)]});await this[_0x325da7(0x205)][_0x325da7(0x1c1)]({'id':_0x5594bc,'parts':_0x3250b5,'renderingStrategy':_0x5e67cb,'isDone':_0xb401e1});}else _0x325da7(0x2c5)===_0x2ea102&&await this[_0x325da7(0x205)][_0x325da7(0x1e1)]({'id':_0x5594bc,'parsedContent':_0x1a666d,'renderingStrategy':_0x5e67cb,'isDone':_0xb401e1});_0xb401e1&&_0xe9e6a[_0x325da7(0x2ae)][_0x325da7(0x23b)]>0x0&&this[_0x325da7(0x205)][_0x325da7(0x256)](_0x5594bc,_0xe9e6a[_0x325da7(0x2ae)]);}async[_0x1a2717(0x2c3)](){const _0x26083a=_0x1a2717,_0x2ec2d4=this[_0x26083a(0x298)]?.[_0x26083a(0x24c)];_0x2ec2d4&&(_0x2ec2d4[_0x26083a(0x185)](),this[_0x26083a(0x205)][_0x26083a(0x20f)](_0x2ec2d4));}async[_0x1a2717(0x1ce)](){const _0x5ce1fc=_0x1a2717,_0x535c28=this[_0x5ce1fc(0x298)]?.[_0x5ce1fc(0x24c)];if(_0x535c28){for await(const _0x4eb0d9 of _0x535c28[_0x5ce1fc(0x218)])await this[_0x5ce1fc(0x292)]({'reply':_0x4eb0d9,'renderingStrategy':_0x5ce1fc(0x235)});}}[_0x1a2717(0x18e)](_0x2d317a){const _0x4adaaa=_0x1a2717,_0x17a0d3={'positiveCount':_0x2d317a[_0x4adaaa(0x2ac)][_0x4adaaa(0x188)](_0x442495=>_0x4adaaa(0x1cf)===_0x442495[_0x4adaaa(0x1a9)])[_0x4adaaa(0x23b)],'totalCount':_0x2d317a[_0x4adaaa(0x2ac)][_0x4adaaa(0x23b)],'modificationId':_0x2d317a['id']},_0x52a718=this[_0x4adaaa(0x298)][_0x4adaaa(0x183)](_0x2d317a[_0x4adaaa(0x1d2)])[_0x4adaaa(0x255)];this[_0x4adaaa(0x236)][_0x4adaaa(0x214)](this[_0x4adaaa(0x298)]['id'],_0x52a718,_0x17a0d3);}}function _0xf9cb(){const _0x357112=['293854OEpBZm','_openBalloonFor','init','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','find','isModelAvailable','updateFeedItemAIReplySuggestionPartState','setChangeGroupState','removeSelectionFromChatContext','lastInteraction','ai-chat-context-invalid-data','children','setIsUploadInProgress','pluginName','redo','startsWith','clearConversationContextUI','main','messageId','updateFeedItemAIReplySources','_removeAISelectionMarkers','3311CufESz','getChildren','hasChanges','interactionStarted','abortPromptStream','webSearchStarted','toggleSuggestionDisplayMode','stopListening','push','interactionFinished','sourcePosition','7204JfdWMZ','contextSent','changes','history','AITabs','mouseOverSuggestion','setModel','findIndex','Failed\x20to\x20load\x20conversation','addFeedItemUserMessage','addFeedItemError','$graveyard','context','removeContextItem','addUrlToContext','resizeTabs','addSelectionToContext','AI_CHAT_CONTEXT_INVALID_DATA','resetMessageInput','streaming','isLoading','marker','outdated','Disliked\x20response','dislike','rejectSuggestion','query','change','ai-chat-resource-load-failed','data-id','handleUserInteraction','config','ai-chat-source-resources-load-failed','3969570JkhHQj','removed','selection','loadConversation','toString','resourceId','startInteraction','showFakeVisualSelection','_logError','resources','getGroupId','updateCurrentDocumentInContext','Liked\x20response','100020xPwkVt','_updateReplyContent','sourceResourcesLoaded','remove','applyOperation','undo','updateCapabilities','activeConversation','ai-chat-conversation-init-failed','resetConversationTitle','model','addFeedItemAISuggestion','isOfficialPlugin','getContentParts','has','hideFakeVisualSelection','toggleWebSearch','updateContent','indexOf','collaboration.channelId','set','toggleLoadingSkeleton','partIndex','ai-chat-conversation-start-failed','interactionCreated','toViewRange','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','changeGroups','ai.chat.models.defaultModelId','sources','setConversationContext','ai.chat.context','end','rejected','_insertSuggestion','_scrollToSuggestionRange','removeMarker','setLoadingMessage','isCurrentDocumentInContext','addContextOptionsChanged','documentContextContent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','1911285YIVTVI','setIsMaximized','baseVersion','getAttribute','Showing\x20conversation\x20history...','ai-chat-context-unsupported-type','load','getSelectionText','_stopLastInteraction','getDocumentContext','text-delta','start','removeFromContext','reasoningStarted','handleRemovedConversation','isStarted','getDiff','selectModel','mapper','_previewedChangeGroup','isCurrentDocumentInConversation','open','delete','commands','updateConversationTitle','sendUserMessage','afterInit','disableControls','howMany','TrackChangesEditing','map','_aiEditing','removeFeedInteraction','parse','_startConversationSafely','webSearchFinished','_createFromRanges','_toggleWebSearch','selectedModel','uiId','getInteraction','toggleReasoning','stop','addCurrentDocumentToContext','addResourceToContext','filter','setSelectedModel','3CuxeAG','isInContext','addOperation','ai-chat-controller-no-active-conversation','_updateRatings','insertSuggestion','root','_handleStartConversation','maxOffset','add','getMarkersGroup','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemRemoved','clearPendingContextUI','resize','setAddContextOptions','populateSourceResourceBalloon','_removeFromContext','ready','finishInteraction','revert','addDocumentToContext','log','addFilesToContext','message','listenTo','showNext','version','focusPromptInput','sendMessage','showDiff','state','get','66smHcDg','getRoot','ai-request-aborted','AIChatController','requires','getChild','addFeedInteractionHeader','getReply','AIChatUI','AIEditing','getChildAtOffset','data','uid','view','removeSelectionFromContext','from','addContextItem','editing','contextItemAdded','capabilitiesUpdated','replyContentUpdated','markers','updateFeedItemAIReplySuggestionContent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getInteractionAndReplyById','createConversation','options','loadSourceResources','ai-chat-controller-mouse-over','createPositionFromPath','resourceStateChanged','modification-delta','addSelectionToChatContext','chat','AI_CHAT_ABORTED_MESSAGE','_flushLastInteractionUI','accepted','nextSibling','replyChangeGroupStateUpdated','interactionId','isOpen','anchorId','ai-chat-url-upload-failed','batch','alignToTop','isPremiumPlugin','pending','locale','scrollFeedToSuggestion','ai.availableReplyActions','split','document','1765jSFYOc','interactionDestroyed','updateFeedItemAIReplyContent','_toggleReasoning','showPrevious','AI_BALLOON_HEADER_TITLE','addFileToContext','node','closeSourceResourceBalloon','393330HBOTWy','ai-no-track-changes','getDocumentData','close','ai-chat-file-upload-failed','content','contextItemLoadingEnded','resizedTabs','AI_CHAT_UNTITLED_CONVERSATION','like','_setIsMaximized','_applyOperationsAsSuggestions','AI_CHAT_UNABLE_TO_START_CONVERSATION','range','type','rootName','indexes','conversationInitialized','DocumentCompare','updateResourceState','_integrateEditor','TrackChanges','showChangeInText','isUploadInProgress','index','startConversation','sourceId','domConverter','editors','_aiChatUi','error','slice','_getDocumentRangeForReplyChanges','3832UhquMN','isDocumentOperation','getRanges','_balloonShowDiff','current-document','source','stopInteraction','cloneNode','dialogClosed','getOperations','forEach','upsertAIChatRating','resource','activateTab','path','replies','_showConversationHistory','addFeedItemAIReply','startAutoScroll','replyId','unshift','_aiChatModels','mouseLeaveSuggestion','ai-conversation-','plugins','getTransformedByOperation','_handleUIUserMessage','reasoningFinished','viewRangeToDom','_batchToChanges','replyCreated','setFeedItemRenderingStrategy','_applySuggestion','modelSelected','Undo','full','enableControls','contextItem','getPath','ai.chat.models.displayedModels','AI_CHAT_RESOURCE_LOAD_FAILED','createPositionAt','contextItems','AI_CHAT_GENERIC_ERROR','static','_aiConnector','applySuggestion','new','uploadProgressChanged','AIConnector','length','getFirstRange','isDisabled','ai-chat-missing-channel-id','addFeedItemStaticMessage','setConversationTitle','setContextItemLoading','createRange'];_0xf9cb=function(){return _0x357112;};return _0xf9cb();}
|
package/src/aichat/aichatui.d.ts
CHANGED
|
@@ -222,6 +222,7 @@ export declare class AIChatUI extends ContextPlugin {
|
|
|
222
222
|
closeSourceResourceBalloon(sourceId: string): void;
|
|
223
223
|
focusPromptInput(): void;
|
|
224
224
|
scrollFeedToSuggestion(replyId: string, partIndex: number): void;
|
|
225
|
+
startAutoScroll(): void;
|
|
225
226
|
disableControls(): void;
|
|
226
227
|
enableControls(): void;
|
|
227
228
|
}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa384c0=_0x1b70;(function(_0x5e1099,_0x1a57a4){const _0xaa5233=_0x1b70,_0x3460ed=_0x5e1099();while(!![]){try{const _0x2872fc=parseInt(_0xaa5233(0x215))/0x1*(-parseInt(_0xaa5233(0x1d9))/0x2)+-parseInt(_0xaa5233(0x25f))/0x3+parseInt(_0xaa5233(0x230))/0x4*(parseInt(_0xaa5233(0x1df))/0x5)+-parseInt(_0xaa5233(0x212))/0x6+parseInt(_0xaa5233(0x1c5))/0x7+-parseInt(_0xaa5233(0x264))/0x8*(parseInt(_0xaa5233(0x205))/0x9)+-parseInt(_0xaa5233(0x242))/0xa*(-parseInt(_0xaa5233(0x1f8))/0xb);if(_0x2872fc===_0x1a57a4)break;else _0x3460ed['push'](_0x3460ed['shift']());}catch(_0x4b73c0){_0x3460ed['push'](_0x3460ed['shift']());}}}(_0x44f0,0xc146d));import{ContextPlugin as _0x3d32e1}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x461e7a}from'ckeditor5/src/utils.js';import{AIChatView as _0x20a1a8}from'./ui/aichatview.js';import{AITabs as _0x529d51}from'../aitabs/aitabs.js';import{getTranslation as _0x5aef7e}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x384bbe}from'ckeditor5/src/icons.js';function _0x44f0(){const _0x49e6c0=['startAutoScroll','setIsUploadInProgress','streaming','803224RXvybp','setSelectedModel','stopAutoScroll','isDone','stopInteraction','1489985OEcTbi','addFeedItemAISuggestion','updateFeedInteractionHeader','setIsMaximized','populateSourceResourceBalloon','ai-suggestion-reply','setModelList','plugins','pluginName','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','conversation-start','length','updateFeedItemAIReplySuggestionPartState','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','feedItemRenderingStrategy','user-message','ai-reply','AIChatUI','AI_CHAT_WELCOME_MESSAGE','315346GORzZi','setModel','clearPendingContextUI','addTab','children','abort','145cgYAmh','setConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_interactionPromiseResolver','interactionId','destroy','addItem','filter','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isMaximized','userMessage','isWebSearchEnabled','toggleSuggestionDisplayMode','addContextItem','setLoadingMessage','chatFeed','updateReplyItem','removeFeedInteraction','</p>','_animateConversationTitle','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','quickActionData','markItemAsDone','11MokrTV','markFeedItemAsDone','updateFeedItemAIReplyContent','addFeedItemUserMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_getInputPlaceholder','_isTrackChangesCommandValueBound','resetConversationTitle','areActionsDisabled','then','_view','isVisible','setConversationContext','135cMhfVX','isOfficialPlugin','closeSourceResourceBalloon','showResizeButton','enableModelSelector','_titleAnimationInterval','removeItem','queueEmptyPromise','values','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addFeedInteractionHeader','setReasoning','chat','3804132EVWPQG','config','getItemIds','1sQwXxq','addFeedItemAIReply','removeContextItem','updateSuggestionItem','startInteraction','_getLoadingMessage','scrollToSuggestion','showDiff','_promiseQueue','clearConversationContextUI','context','isModelAvailable','updateCapabilities','commands','enqueue','find','setContextItemLoading','setFeedItemRenderingStrategy','focusPromptInput','from','error-message','<p>','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','bind','enableControls','clear','isDisabled','118596EgaBVB','trackChanges','label','setInputPlaceholder','renderingStrategy','locale','AITabs','value','interaction-header','updateSuggestionPartState','set','toggleLoadingSkeleton','disableModelSelector','updateFeedItemAIReplySuggestionContent','createConversation','view','get','ai.availableReplyActions','22509230HzMwCS','setAddContextOptions','remove','updateResourceState','isLoading','updateFeedItemAIReplySources','delegate','requires','forEach','isBusy','last','options','chatControls','finishInteraction','setWebSearch','displayedPrompt','isPending','contextItems','isReasoningEnabled','chatHeader','scrollFeedToSuggestion','addFeedItemStaticMessage','AI_CHAT_HEADING','resetMessageInput','addFeedItemError','updateWebSources','capabilities','isTrackChangesOn','isPremiumPlugin','702594JByJUK','ai.chat.models.modelSelectorAlwaysVisible'];_0x44f0=function(){return _0x49e6c0;};return _0x44f0();}function _0x1b70(_0x199757,_0x8dbd43){const _0x44f0ee=_0x44f0();return _0x1b70=function(_0x1b70dc,_0x378e11){_0x1b70dc=_0x1b70dc-0x1c2;let _0x2a425b=_0x44f0ee[_0x1b70dc];return _0x2a425b;},_0x1b70(_0x199757,_0x8dbd43);}import{AIChatFeedInteractionHeaderView as _0x5d9f77}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x387e61}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f54a5}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x19ab48}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x3d32e1{static get[_0xa384c0(0x249)](){return[_0x529d51];}[_0xa384c0(0x202)];static get[_0xa384c0(0x1cd)](){const _0x36b7df=_0xa384c0;return _0x36b7df(0x1d7);}static get[_0xa384c0(0x206)](){return!0x0;}static get[_0xa384c0(0x25e)](){return!0x0;}[_0xa384c0(0x1d4)]=_0xa384c0(0x263);[_0xa384c0(0x21c)]=!0x0;[_0xa384c0(0x21d)];[_0xa384c0(0x1e2)];[_0xa384c0(0x20a)]=void 0x0;[_0xa384c0(0x1fe)]=!0x1;constructor(_0x3d71f0){const _0x516d30=_0xa384c0;super(_0x3d71f0);const _0x476ea5=this[_0x516d30(0x21f)][_0x516d30(0x1cc)][_0x516d30(0x240)](_0x516d30(0x236));this[_0x516d30(0x23a)](_0x516d30(0x24b),!0x1),this[_0x516d30(0x21d)]=new _0x387e61(),this[_0x516d30(0x202)]=new _0x20a1a8(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x476ea5[_0x516d30(0x208)]),this[_0x516d30(0x202)][_0x516d30(0x248)](..._0x3f54a5)['to'](this),this[_0x516d30(0x202)]['on'](_0x516d30(0x1ec),(_0xdffe85,{showDiff:_0x3abb0a})=>{const _0xcc08c5=_0x516d30;this[_0xcc08c5(0x21c)]=_0x3abb0a;}),_0x476ea5[_0x516d30(0x23f)][_0x516d30(0x1dc)]({'id':_0x516d30(0x211),'buttonLabel':_0x5aef7e(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x516d30(0x258)),'buttonIcon':_0x384bbe,'order':0x0,'content':this[_0x516d30(0x202)]}),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x22c)](_0x516d30(0x246))['to'](this,_0x516d30(0x24b),_0x9e7fc2=>_0x9e7fc2),this[_0x516d30(0x202)][_0x516d30(0x1ef)][_0x516d30(0x22c)](_0x516d30(0x252))['to'](this,_0x516d30(0x24b),_0x5ea0b9=>_0x5ea0b9),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x233)](this[_0x516d30(0x1fd)]()),this[_0x516d30(0x22c)](_0x516d30(0x220))['to'](this[_0x516d30(0x202)][_0x516d30(0x24e)],_0x516d30(0x220));}[_0xa384c0(0x1e4)](){const _0x53e3ca=_0xa384c0;super[_0x53e3ca(0x1e4)](),this[_0x53e3ca(0x20a)]&&clearInterval(this[_0x53e3ca(0x20a)]);}[_0xa384c0(0x23e)](_0x184093){const _0x4ea481=_0xa384c0;this[_0x4ea481(0x202)][_0x4ea481(0x1ef)][_0x4ea481(0x22e)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x209)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x1cb)](_0x184093[_0x4ea481(0x1e7)],!this[_0x4ea481(0x21f)][_0x4ea481(0x213)][_0x4ea481(0x240)](_0x4ea481(0x260))),this[_0x4ea481(0x257)]({'id':_0x4ea481(0x1d0),'staticMessage':_0x5aef7e(this[_0x4ea481(0x21f)][_0x4ea481(0x235)],_0x4ea481(0x1d8))});}[_0xa384c0(0x257)]({id:_0x33f49d,staticMessage:_0xb5e5ed}){const _0xbf7c67=_0xa384c0;this[_0xbf7c67(0x202)][_0xbf7c67(0x1ef)][_0xbf7c67(0x1e5)](_0xbf7c67(0x1d6),{'id':_0x33f49d,'initialContent':_0xbf7c67(0x22a)+_0xb5e5ed+_0xbf7c67(0x1f2)});}[_0xa384c0(0x1fb)](_0x310aec){const _0x493e93=_0xa384c0,_0x52879c=_0x310aec[_0x493e93(0x1f6)]?.[_0x493e93(0x251)]||_0x310aec[_0x493e93(0x1ea)];this[_0x493e93(0x202)][_0x493e93(0x1ef)][_0x493e93(0x1e5)](_0x493e93(0x1d5),{'contextItems':Array[_0x493e93(0x228)](_0x310aec[_0x493e93(0x253)][_0x493e93(0x20d)]()),'initialContent':_0x493e93(0x22a)+_0x52879c+_0x493e93(0x1f2),'id':_0x310aec['id']});}[_0xa384c0(0x25a)]({errorMessage:_0x3a8f6b,id:_0x26cdd5}){const _0x5e3760=_0xa384c0;this[_0x5e3760(0x202)][_0x5e3760(0x1ef)][_0x5e3760(0x1e5)](_0x5e3760(0x229),{'initialContent':_0x5e3760(0x22a)+_0x3a8f6b+_0x5e3760(0x1f2),'id':_0x26cdd5});}[_0xa384c0(0x216)](_0x1abcbf){const _0x4f7e8b=_0xa384c0;return this[_0x4f7e8b(0x21d)][_0x4f7e8b(0x223)](async()=>{const _0x268ece=_0x4f7e8b;this[_0x268ece(0x202)][_0x268ece(0x1ef)][_0x268ece(0x1e5)](_0x268ece(0x1d6),{'id':_0x1abcbf[_0x268ece(0x1e3)]+':'+_0x1abcbf['id']}),this[_0x268ece(0x1ee)](null);});}async[_0xa384c0(0x1c6)](_0x595ac5){const _0x157ef6=_0xa384c0,_0x946b8e=_0x19ab48(this[_0x157ef6(0x21f)]);if(_0x946b8e){const _0x413ab9=_0x946b8e[_0x157ef6(0x222)][_0x157ef6(0x240)](_0x157ef6(0x231));_0x413ab9&&!this[_0x157ef6(0x1fe)]&&(this[_0x157ef6(0x1fe)]=!0x0,this[_0x157ef6(0x202)][_0x157ef6(0x1ef)][_0x157ef6(0x22c)](_0x157ef6(0x25d))['to'](_0x413ab9,_0x157ef6(0x237)));}return this[_0x157ef6(0x21d)][_0x157ef6(0x223)](async()=>{const _0x15c6a3=_0x157ef6;this[_0x15c6a3(0x202)][_0x15c6a3(0x1ef)][_0x15c6a3(0x1e5)](_0x15c6a3(0x1ca),{'id':_0x595ac5[_0x15c6a3(0x1e3)]+':'+_0x595ac5['id'],'areActionsDisabled':_0x595ac5[_0x15c6a3(0x200)],'showDiff':this[_0x15c6a3(0x21c)],'dropdownConfig':this[_0x15c6a3(0x21f)][_0x15c6a3(0x213)][_0x15c6a3(0x240)](_0x15c6a3(0x241))}),this[_0x15c6a3(0x1ee)](null);});}[_0xa384c0(0x20f)](_0x3ed2a7,_0x39be7d){const _0xd05749=_0xa384c0,_0x35f6af=this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x24c)];if(_0x35f6af instanceof _0x5d9f77)return this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x244)](_0x35f6af),void this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':{'isWebSearchEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x1eb)]||_0x39be7d[_0xd05749(0x1eb)],'isReasoningEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x254)]||_0x39be7d[_0xd05749(0x254)]}});this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':_0x39be7d});}[_0xa384c0(0x1c7)](_0xf9a825){const _0x47a5bb=_0xa384c0,_0x35df38=this[_0x47a5bb(0x202)][_0x47a5bb(0x1ef)][_0x47a5bb(0x1dd)][_0x47a5bb(0x224)](_0x44c1b2=>_0x44c1b2[_0x47a5bb(0x24d)]['id']==_0xf9a825['id']&&_0x44c1b2 instanceof _0x5d9f77);_0x35df38&&_0x35df38[_0x47a5bb(0x23a)](_0x47a5bb(0x203),_0xf9a825[_0x47a5bb(0x203)]);}async[_0xa384c0(0x1fa)](_0x69e857){const _0x4bbec8=_0xa384c0,_0x536b7c=_0x69e857[_0x4bbec8(0x234)]||this[_0x4bbec8(0x1d4)];return this[_0x4bbec8(0x21d)][_0x4bbec8(0x223)](async _0x2ad151=>{const _0x464f22=_0x4bbec8;await this[_0x464f22(0x202)][_0x464f22(0x1ef)][_0x464f22(0x1f0)]({..._0x69e857,'abortSignal':_0x2ad151,'renderingStrategy':_0x536b7c}),_0x69e857[_0x464f22(0x1c3)]&&this[_0x464f22(0x1f9)](_0x69e857['id']);});}[_0xa384c0(0x247)](_0x1ee557,_0x557e35){const _0x5f2209=_0xa384c0;this[_0x5f2209(0x202)][_0x5f2209(0x1ef)][_0x5f2209(0x25b)](_0x1ee557,_0x557e35);}async[_0xa384c0(0x23d)](_0x45e9b5){const _0x405d04=_0xa384c0,_0x247857=_0x45e9b5[_0x405d04(0x234)]||this[_0x405d04(0x1d4)];return this[_0x405d04(0x21d)][_0x405d04(0x223)](async _0x1814eb=>{const _0x35f168=_0x405d04;await this[_0x35f168(0x202)][_0x35f168(0x1ef)][_0x35f168(0x218)]({..._0x45e9b5,'abortSignal':_0x1814eb,'renderingStrategy':_0x247857}),_0x45e9b5[_0x35f168(0x1c3)]&&this[_0x35f168(0x1f9)](_0x45e9b5['id']);});}[_0xa384c0(0x1d2)](_0x5bfa12){const _0x530ae1=_0xa384c0;this[_0x530ae1(0x202)][_0x530ae1(0x1ef)][_0x530ae1(0x239)](_0x5bfa12);}[_0xa384c0(0x1f9)](_0x15aae8){const _0x1e5879=_0xa384c0;this[_0x1e5879(0x202)][_0x1e5879(0x1ef)][_0x1e5879(0x1f7)](_0x15aae8);}[_0xa384c0(0x1f1)](_0x2b9361){const _0x591596=_0xa384c0;this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x214)]()[_0x591596(0x1e6)](_0x2700d1=>_0x2700d1[_0x591596(0x1ce)](_0x2b9361))[_0x591596(0x24a)](_0x5478e6=>this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x20b)](_0x5478e6));}[_0xa384c0(0x219)](){const _0x2f9f6e=_0xa384c0;this[_0x2f9f6e(0x1ee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2f9f6e(0x202)][_0x2f9f6e(0x24e)][_0x2f9f6e(0x23c)](!this[_0x2f9f6e(0x21f)][_0x2f9f6e(0x213)][_0x2f9f6e(0x240)](_0x2f9f6e(0x260))),this[_0x2f9f6e(0x24b)]=!0x0,this[_0x2f9f6e(0x202)][_0x2f9f6e(0x1ef)][_0x2f9f6e(0x261)]();}[_0xa384c0(0x1c4)](_0x5145c2){const _0x49a667=_0xa384c0;this[_0x49a667(0x21d)][_0x49a667(0x1de)](),this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x214)]()[_0x49a667(0x1e6)](_0x547947=>_0x547947[_0x49a667(0x1ce)](_0x5145c2['id']))[_0x49a667(0x24a)](_0x5d3266=>this[_0x49a667(0x1f9)](_0x5d3266)),this[_0x49a667(0x24b)]=!0x1,this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x1c2)]();}async[_0xa384c0(0x24f)](){const _0x49deba=_0xa384c0;return this[_0x49deba(0x21d)][_0x49deba(0x20c)][_0x49deba(0x201)](()=>{const _0x5763e3=_0x49deba;this[_0x5763e3(0x24b)]=!0x1,this[_0x5763e3(0x202)][_0x5763e3(0x1ef)][_0x5763e3(0x1c2)]();});}[_0xa384c0(0x1ed)](_0x5b26cd,_0x1475ed){const _0x337758=_0xa384c0;this[_0x337758(0x202)][_0x337758(0x24e)][_0x337758(0x1ed)](_0x5b26cd,_0x1475ed);}[_0xa384c0(0x217)](_0x2c1c0d){const _0xef920=_0xa384c0;this[_0xef920(0x202)][_0xef920(0x24e)][_0xef920(0x217)](_0x2c1c0d);}[_0xa384c0(0x225)](_0x5e8c7d,_0x1c90bd){const _0x527044=_0xa384c0;this[_0x527044(0x202)][_0x527044(0x24e)][_0x527044(0x225)](_0x5e8c7d,_0x1c90bd);}[_0xa384c0(0x262)](_0xafb41d){const _0x129391=_0xa384c0;this[_0x129391(0x202)][_0x129391(0x24e)][_0x129391(0x262)](_0xafb41d);}[_0xa384c0(0x204)](_0x5cb66f){const _0x50198d=_0xa384c0;this[_0x50198d(0x202)][_0x50198d(0x24e)][_0x50198d(0x204)](_0x5cb66f);}[_0xa384c0(0x1db)](){const _0x2a9c5f=_0xa384c0;this[_0x2a9c5f(0x202)][_0x2a9c5f(0x24e)][_0x2a9c5f(0x1db)]();}[_0xa384c0(0x21e)](){const _0x494b68=_0xa384c0;this[_0x494b68(0x202)][_0x494b68(0x24e)][_0x494b68(0x21e)]();}[_0xa384c0(0x245)](_0x294a49,_0xb3402d,_0x3e9572){const _0x5a5a9a=_0xa384c0;this[_0x5a5a9a(0x202)][_0x5a5a9a(0x24e)][_0x5a5a9a(0x245)](_0x294a49,_0xb3402d,_0x3e9572);}[_0xa384c0(0x259)](){const _0x11a8db=_0xa384c0;this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x259)](),this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x233)](this[_0x11a8db(0x1fd)]());}[_0xa384c0(0x243)](_0x1b5a1d){const _0x1fbecc=_0xa384c0;this[_0x1fbecc(0x202)][_0x1fbecc(0x24e)][_0x1fbecc(0x243)](_0x1b5a1d);}[_0xa384c0(0x221)](_0x3cfdae){const _0x1383d3=_0xa384c0;this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x250)](_0x3cfdae[_0x1383d3(0x1eb)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x210)](_0x3cfdae[_0x1383d3(0x254)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x233)](this[_0x1383d3(0x1fd)](_0x3cfdae));}[_0xa384c0(0x265)](_0x4d1cc5,_0x2442cb){const _0x5e2a15=_0xa384c0;this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x1da)](_0x4d1cc5),_0x2442cb&&this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x23c)](!0x1);}[_0xa384c0(0x226)](_0x11eb77){const _0x5be38d=_0xa384c0;this[_0x5be38d(0x1d4)]=_0x11eb77;}[_0xa384c0(0x23b)](_0x4d5c20){const _0xa38563=_0xa384c0;this[_0xa38563(0x202)][_0xa38563(0x1ef)][_0xa38563(0x23b)](_0x4d5c20);}[_0xa384c0(0x1ff)](){const _0x553e2e=_0xa384c0;this[_0x553e2e(0x1e0)](_0x5aef7e(this[_0x553e2e(0x21f)][_0x553e2e(0x235)],_0x553e2e(0x258)));}[_0xa384c0(0x1e0)](_0x1dcf48,_0x4acaa6=!0x1){const _0x4424f5=_0xa384c0;if(_0x4acaa6&&!_0x461e7a()&&_0x1dcf48[_0x4424f5(0x1d1)])return this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]='',void this[_0x4424f5(0x1f3)](_0x1dcf48);this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]=_0x1dcf48;}[_0xa384c0(0x1ee)](_0x1bdc0c){const _0x325507=_0xa384c0,_0x389615=this[_0x325507(0x21a)](_0x1bdc0c);this[_0x325507(0x202)][_0x325507(0x1ef)][_0x325507(0x1ee)](_0x389615);}[_0xa384c0(0x1f3)](_0x3d6976){const _0x3f3dc0=_0xa384c0;let _0x5bc9f5=0x0;clearInterval(this[_0x3f3dc0(0x20a)]),this[_0x3f3dc0(0x20a)]=setInterval(()=>{const _0x37dbcf=_0x3f3dc0;this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]=this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]+_0x3d6976[_0x5bc9f5],_0x5bc9f5++,_0x5bc9f5===_0x3d6976[_0x37dbcf(0x1d1)]&&clearInterval(this[_0x37dbcf(0x20a)]);},0x1e);}[_0xa384c0(0x1c8)](_0x3fd256){const _0x414b36=_0xa384c0;this[_0x414b36(0x202)][_0x414b36(0x255)][_0x414b36(0x1e9)]=_0x3fd256;}[_0xa384c0(0x21a)](_0x2727c5){const _0x4eb208=_0xa384c0;return _0x2727c5?_0x2727c5[_0x4eb208(0x1eb)]&&_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x20e)):_0x2727c5[_0x4eb208(0x1eb)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1cf)):_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1f5)):_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1e1)):'';}[_0xa384c0(0x1fd)](_0x2c4955){const _0x51280c=_0xa384c0;return _0x2c4955?_0x2c4955[_0x51280c(0x1eb)]&&_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1d3)):_0x2c4955[_0x51280c(0x1eb)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x22b)):_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1fc)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8));}[_0xa384c0(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c){const _0x4af56e=_0xa384c0;this[_0x4af56e(0x202)][_0x4af56e(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c);}[_0xa384c0(0x207)](_0x53350b){const _0x5cc757=_0xa384c0;this[_0x5cc757(0x202)][_0x5cc757(0x207)](_0x53350b);}[_0xa384c0(0x227)](){const _0xd1abf6=_0xa384c0;this[_0xd1abf6(0x202)][_0xd1abf6(0x24e)][_0xd1abf6(0x227)]();}[_0xa384c0(0x256)](_0x25c9e2,_0x16b46e){const _0x204a90=_0xa384c0;this[_0x204a90(0x202)][_0x204a90(0x1ef)][_0x204a90(0x21b)](_0x25c9e2,_0x16b46e);}[_0xa384c0(0x1f4)](){const _0x51bcad=_0xa384c0;this[_0x51bcad(0x202)][_0x51bcad(0x24e)][_0x51bcad(0x22f)]=!0x0;}[_0xa384c0(0x22d)](){const _0x1e12df=_0xa384c0;this[_0x1e12df(0x202)][_0x1e12df(0x24e)][_0x1e12df(0x22f)]=!0x1;}}
|
|
23
|
+
function _0x49c0(_0x30961d,_0x5237db){const _0x3d3605=_0x3d36();return _0x49c0=function(_0x49c0cd,_0x549cc4){_0x49c0cd=_0x49c0cd-0x196;let _0x22dde2=_0x3d3605[_0x49c0cd];return _0x22dde2;},_0x49c0(_0x30961d,_0x5237db);}const _0x5a3453=_0x49c0;(function(_0x279e65,_0x54b2c1){const _0x2e3af7=_0x49c0,_0x567b90=_0x279e65();while(!![]){try{const _0x2f99ec=parseInt(_0x2e3af7(0x1b4))/0x1*(parseInt(_0x2e3af7(0x200))/0x2)+parseInt(_0x2e3af7(0x214))/0x3+parseInt(_0x2e3af7(0x220))/0x4*(-parseInt(_0x2e3af7(0x1e7))/0x5)+parseInt(_0x2e3af7(0x215))/0x6*(parseInt(_0x2e3af7(0x1db))/0x7)+parseInt(_0x2e3af7(0x1d7))/0x8*(parseInt(_0x2e3af7(0x1c5))/0x9)+-parseInt(_0x2e3af7(0x229))/0xa+parseInt(_0x2e3af7(0x1a1))/0xb*(-parseInt(_0x2e3af7(0x1ba))/0xc);if(_0x2f99ec===_0x54b2c1)break;else _0x567b90['push'](_0x567b90['shift']());}catch(_0x167422){_0x567b90['push'](_0x567b90['shift']());}}}(_0x3d36,0xd3cdd));import{ContextPlugin as _0x4f74fa}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4cb9b6}from'ckeditor5/src/utils.js';import{AIChatView as _0xaf56bf}from'./ui/aichatview.js';import{AITabs as _0x291215}from'../aitabs/aitabs.js';import{getTranslation as _0x5f2058}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1b61c3}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x38bc1b}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0xc426c9}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x470759}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x44b991}from'../aicore/utils/geteditorfromcontext.js';function _0x3d36(){const _0x3aad4a=['92WrzcmT','_getInputPlaceholder','ai-suggestion-reply','availableModels','addFeedInteractionHeader','startAutoScroll','addContextItem','removeFeedInteraction','pluginName','closeSourceResourceBalloon','showDiff','view','isMaximized','then','feedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','values','isWebSearchEnabled','createConversation','_promiseQueue','4362735ZrLSdA','98334cIBdSw','enableModelSelector','updateSuggestionItem','streaming','addFeedItemError','enqueue','options','updateFeedInteractionHeader','queueEmptyPromise','setConversationContext','interaction-header','32jmjLNL','displayedPrompt','setWebSearch','stopInteraction','label','setSelectedModel','insertSuggestion','addFeedItemStaticMessage','disableModelSelector','16651230KgALAp','setContextItemLoading','contextItems','areActionsDisabled','filter','value','destroy','capabilities','setConversationTitle','_view','addFeedItemAISuggestion','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','get','setLoadingMessage','isDone','AIChatUI','ai.chat.context.searchInputVisibleFrom','scrollFeedToSuggestion','isPremiumPlugin','updateFeedItemAIReplySuggestionContent','clear','setFeedItemRenderingStrategy','isBusy','conversation-start','error-message','setAddContextOptions','AI_CHAT_HEADING','finishInteraction','ai-reply','</p>','clearConversationContextUI','_titleAnimationInterval','userMessage','4898366iZCTDY','updateReplyItem','toggleLoadingSkeleton','ai.availableReplyActions','isVisible','getItemIds','isPending','quickActionData','TrackChanges','toggleSuggestionDisplayMode','set','commands','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','length','chatControls','removeItem','user-message','resetConversationTitle','setIsUploadInProgress','30188ahtXrS','find','enableControls','markItemAsDone','AITabs','setIsMaximized','36fRAEpl','setReasoning','resetMessageInput','populateSourceResourceBalloon','updateSuggestionPartState','_animateConversationTitle','isReasoningEnabled','<p>','AI_CHAT_WELCOME_MESSAGE','isLoading','renderingStrategy','72dzVsrT','isOfficialPlugin','setInputPlaceholder','has','children','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySources','scrollToSuggestion','isTrackChangesOn','startInteraction','updateFeedItemAIReplySuggestionPartState','startsWith','bind','last','context','updateWebSources','showResizeButton','remove','256136zHTNLL','chat','addFeedItemUserMessage','plugins','651vhcruO','forEach','_isTrackChangesCommandValueBound','stopAutoScroll','clearPendingContextUI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateCapabilities','interactionId','updateFeedItemAIReplyContent','requires','isDisabled','chatFeed','471635hmcQoN','setModel','focusPromptInput','updateResourceState','trackChanges','ai.chat.models.modelSelectorAlwaysVisible','chatHeader','setModelList','_getLoadingMessage','_interactionPromiseResolver','delegate','markFeedItemAsDone','abort','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','locale','config','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','addTab','removeContextItem','addFeedItemAIReply','isModelAvailable','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','disableControls','addItem','from'];_0x3d36=function(){return _0x3aad4a;};return _0x3d36();}import{AI_REPLY_ACTIONS as _0x26edaf}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4f74fa{static get[_0x5a3453(0x1e4)](){return[_0x291215];}[_0x5a3453(0x232)];static get[_0x5a3453(0x208)](){const _0x483a51=_0x5a3453;return _0x483a51(0x238);}static get[_0x5a3453(0x1c6)](){return!0x0;}static get[_0x5a3453(0x23b)](){return!0x0;}[_0x5a3453(0x20e)]=_0x5a3453(0x218);[_0x5a3453(0x20a)]=!0x0;[_0x5a3453(0x213)];[_0x5a3453(0x1f0)];[_0x5a3453(0x19f)]=void 0x0;[_0x5a3453(0x1dd)]=!0x1;constructor(_0x378371){const _0x4e2ed0=_0x5a3453;super(_0x378371);const _0x49f77b=this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1da)][_0x4e2ed0(0x235)](_0x4e2ed0(0x1b8));this[_0x4e2ed0(0x1ab)](_0x4e2ed0(0x196),!0x1),this[_0x4e2ed0(0x213)]=new _0xc426c9(),this[_0x4e2ed0(0x232)]=new _0xaf56bf(this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1f5)],{'showResizeButton':_0x49f77b[_0x4e2ed0(0x1d5)],'contextResourcesSearchInputVisibleFrom':this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1f6)][_0x4e2ed0(0x235)](_0x4e2ed0(0x239))}),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1f1)](..._0x470759)['to'](this),this[_0x4e2ed0(0x232)]['on'](_0x4e2ed0(0x1aa),(_0x2c5a16,{showDiff:_0x102970})=>{const _0x28d5f3=_0x4e2ed0;this[_0x28d5f3(0x20a)]=_0x102970;}),_0x49f77b[_0x4e2ed0(0x20b)][_0x4e2ed0(0x1f8)]({'id':_0x4e2ed0(0x1d8),'buttonLabel':_0x5f2058(this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1f5)],_0x4e2ed0(0x19a)),'buttonIcon':_0x1b61c3,'order':0x0,'content':this[_0x4e2ed0(0x232)]}),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1af)][_0x4e2ed0(0x1d1)](_0x4e2ed0(0x1c3))['to'](this,_0x4e2ed0(0x196),_0x15cfe2=>_0x15cfe2),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1e6)][_0x4e2ed0(0x1d1)](_0x4e2ed0(0x1a7))['to'](this,_0x4e2ed0(0x196),_0x2a3d3a=>_0x2a3d3a),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1af)][_0x4e2ed0(0x1c7)](this[_0x4e2ed0(0x201)]()),this[_0x4e2ed0(0x1d1)](_0x4e2ed0(0x1fb))['to'](this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1af)],_0x4e2ed0(0x1fb));}[_0x5a3453(0x22f)](){const _0x27a42f=_0x5a3453;super[_0x27a42f(0x22f)](),this[_0x27a42f(0x19f)]&&clearInterval(this[_0x27a42f(0x19f)]);}[_0x5a3453(0x212)](_0x4e5c6c){const _0x2cda92=_0x5a3453;this[_0x2cda92(0x232)][_0x2cda92(0x1e6)][_0x2cda92(0x23d)](),this[_0x2cda92(0x232)][_0x2cda92(0x1af)][_0x2cda92(0x216)](),this[_0x2cda92(0x232)][_0x2cda92(0x1af)][_0x2cda92(0x1ee)](_0x4e5c6c[_0x2cda92(0x203)],!this[_0x2cda92(0x1d3)][_0x2cda92(0x1f6)][_0x2cda92(0x235)](_0x2cda92(0x1ec))),this[_0x2cda92(0x227)]({'id':_0x2cda92(0x197),'staticMessage':_0x5f2058(this[_0x2cda92(0x1d3)][_0x2cda92(0x1f5)],_0x2cda92(0x1c2))});}[_0x5a3453(0x227)]({id:_0x4feafb,staticMessage:_0x1ffbc7}){const _0x22159e=_0x5a3453;this[_0x22159e(0x232)][_0x22159e(0x1e6)][_0x22159e(0x1fe)](_0x22159e(0x19c),{'id':_0x4feafb,'initialContent':_0x22159e(0x1c1)+_0x1ffbc7+_0x22159e(0x19d)});}[_0x5a3453(0x1d9)](_0x3d9465){const _0x1f2353=_0x5a3453,_0x284067=_0x3d9465[_0x1f2353(0x1a8)]?.[_0x1f2353(0x221)]||_0x3d9465[_0x1f2353(0x1a0)];this[_0x1f2353(0x232)][_0x1f2353(0x1e6)][_0x1f2353(0x1fe)](_0x1f2353(0x1b1),{'contextItems':Array[_0x1f2353(0x1ff)](_0x3d9465[_0x1f2353(0x22b)][_0x1f2353(0x210)]()),'initialContent':_0x1f2353(0x1c1)+_0x284067+_0x1f2353(0x19d),'id':_0x3d9465['id']});}[_0x5a3453(0x219)]({errorMessage:_0x4d45cc,id:_0x84463b}){const _0x6323ce=_0x5a3453;this[_0x6323ce(0x232)][_0x6323ce(0x1e6)][_0x6323ce(0x1fe)](_0x6323ce(0x198),{'initialContent':_0x6323ce(0x1c1)+_0x4d45cc+_0x6323ce(0x19d),'id':_0x84463b});}[_0x5a3453(0x1fa)](_0x506f1d){const _0x223256=_0x5a3453;return this[_0x223256(0x213)][_0x223256(0x21a)](async()=>{const _0x1c9d33=_0x223256;this[_0x1c9d33(0x232)][_0x1c9d33(0x1e6)][_0x1c9d33(0x1fe)](_0x1c9d33(0x19c),{'id':_0x506f1d[_0x1c9d33(0x1e2)]+':'+_0x506f1d['id']}),this[_0x1c9d33(0x236)](null);});}async[_0x5a3453(0x233)](_0x52d3e5){const _0x331503=_0x5a3453,_0x437128=_0x44b991(this[_0x331503(0x1d3)]);let _0x283f0f=_0x437128[_0x331503(0x1f6)][_0x331503(0x235)](_0x331503(0x1a4))||[..._0x26edaf];if(_0x437128[_0x331503(0x1da)][_0x331503(0x1c8)](_0x331503(0x1a9))){if(!this[_0x331503(0x1dd)]){this[_0x331503(0x1dd)]=!0x0;const _0x497c2f=_0x437128[_0x331503(0x1ac)][_0x331503(0x235)](_0x331503(0x1eb));this[_0x331503(0x232)][_0x331503(0x1e6)][_0x331503(0x1d1)](_0x331503(0x1cd))['to'](_0x497c2f,_0x331503(0x22e));}}else _0x283f0f=_0x283f0f[_0x331503(0x22d)](_0x4ca99f=>_0x331503(0x226)!=_0x4ca99f);return this[_0x331503(0x213)][_0x331503(0x21a)](async()=>{const _0x4a12b5=_0x331503;this[_0x4a12b5(0x232)][_0x4a12b5(0x1e6)][_0x4a12b5(0x1fe)](_0x4a12b5(0x202),{'id':_0x52d3e5[_0x4a12b5(0x1e2)]+':'+_0x52d3e5['id'],'areActionsDisabled':_0x52d3e5[_0x4a12b5(0x22c)],'showDiff':this[_0x4a12b5(0x20a)],'availableActions':_0x283f0f}),this[_0x4a12b5(0x236)](null);});}[_0x5a3453(0x204)](_0xf0c9df,_0x36746b){const _0x3087b1=_0x5a3453,_0x34cb33=this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1c9)][_0x3087b1(0x1d2)];if(_0x34cb33 instanceof _0x38bc1b)return this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1c9)][_0x3087b1(0x1d6)](_0x34cb33),void this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1fe)](_0x3087b1(0x21f),{'id':_0xf0c9df['id'],'capabilities':{'isWebSearchEnabled':_0x34cb33[_0x3087b1(0x230)][_0x3087b1(0x211)]||_0x36746b[_0x3087b1(0x211)],'isReasoningEnabled':_0x34cb33[_0x3087b1(0x230)][_0x3087b1(0x1c0)]||_0x36746b[_0x3087b1(0x1c0)]}});this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1fe)](_0x3087b1(0x21f),{'id':_0xf0c9df['id'],'capabilities':_0x36746b});}[_0x5a3453(0x21c)](_0x3d97f4){const _0x3ce151=_0x5a3453,_0x30c185=this[_0x3ce151(0x232)][_0x3ce151(0x1e6)][_0x3ce151(0x1c9)][_0x3ce151(0x1b5)](_0x580a04=>_0x580a04[_0x3ce151(0x21b)]['id']==_0x3d97f4['id']&&_0x580a04 instanceof _0x38bc1b);_0x30c185&&_0x30c185[_0x3ce151(0x1ab)](_0x3ce151(0x1a5),_0x3d97f4[_0x3ce151(0x1a5)]);}async[_0x5a3453(0x1e3)](_0x448809){const _0x122e8c=_0x5a3453,_0x416b6f=_0x448809[_0x122e8c(0x1c4)]||this[_0x122e8c(0x20e)];return this[_0x122e8c(0x213)][_0x122e8c(0x21a)](async _0x32372d=>{const _0x56b580=_0x122e8c;await this[_0x56b580(0x232)][_0x56b580(0x1e6)][_0x56b580(0x1a2)]({..._0x448809,'abortSignal':_0x32372d,'renderingStrategy':_0x416b6f}),_0x448809[_0x56b580(0x237)]&&this[_0x56b580(0x1f2)](_0x448809['id']);});}[_0x5a3453(0x1cb)](_0xfee93b,_0x576dae){const _0xd0c0ab=_0x5a3453;this[_0xd0c0ab(0x232)][_0xd0c0ab(0x1e6)][_0xd0c0ab(0x1d4)](_0xfee93b,_0x576dae);}async[_0x5a3453(0x23c)](_0x25a200){const _0x4430a3=_0x5a3453,_0x4eb041=_0x25a200[_0x4430a3(0x1c4)]||this[_0x4430a3(0x20e)];return this[_0x4430a3(0x213)][_0x4430a3(0x21a)](async _0x5cd998=>{const _0x237e1b=_0x4430a3;await this[_0x237e1b(0x232)][_0x237e1b(0x1e6)][_0x237e1b(0x217)]({..._0x25a200,'abortSignal':_0x5cd998,'renderingStrategy':_0x4eb041}),_0x25a200[_0x237e1b(0x237)]&&this[_0x237e1b(0x1f2)](_0x25a200['id']);});}[_0x5a3453(0x1cf)](_0x350150){const _0x31f01b=_0x5a3453;this[_0x31f01b(0x232)][_0x31f01b(0x1e6)][_0x31f01b(0x1be)](_0x350150);}[_0x5a3453(0x1f2)](_0x395c94){const _0x930dfa=_0x5a3453;this[_0x930dfa(0x232)][_0x930dfa(0x1e6)][_0x930dfa(0x1b7)](_0x395c94);}[_0x5a3453(0x207)](_0x20145c){const _0x58e967=_0x5a3453;this[_0x58e967(0x232)][_0x58e967(0x1e6)][_0x58e967(0x1a6)]()[_0x58e967(0x22d)](_0x16d5f6=>_0x16d5f6[_0x58e967(0x1d0)](_0x20145c))[_0x58e967(0x1dc)](_0x3f10c5=>this[_0x58e967(0x232)][_0x58e967(0x1e6)][_0x58e967(0x1b0)](_0x3f10c5));}[_0x5a3453(0x1ce)](){const _0x3b13f1=_0x5a3453;this[_0x3b13f1(0x236)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x3b13f1(0x232)][_0x3b13f1(0x1af)][_0x3b13f1(0x228)](!this[_0x3b13f1(0x1d3)][_0x3b13f1(0x1f6)][_0x3b13f1(0x235)](_0x3b13f1(0x1ec))),this[_0x3b13f1(0x196)]=!0x0,this[_0x3b13f1(0x232)][_0x3b13f1(0x1e6)][_0x3b13f1(0x205)]();}[_0x5a3453(0x223)](_0x59338c){const _0x552ecc=_0x5a3453;this[_0x552ecc(0x213)][_0x552ecc(0x1f3)](),this[_0x552ecc(0x232)][_0x552ecc(0x1e6)][_0x552ecc(0x1a6)]()[_0x552ecc(0x22d)](_0x8f0e01=>_0x8f0e01[_0x552ecc(0x1d0)](_0x59338c['id']))[_0x552ecc(0x1dc)](_0x4f929a=>this[_0x552ecc(0x1f2)](_0x4f929a)),this[_0x552ecc(0x196)]=!0x1,this[_0x552ecc(0x232)][_0x552ecc(0x1e6)][_0x552ecc(0x1de)]();}async[_0x5a3453(0x19b)](){const _0x4942c2=_0x5a3453;return this[_0x4942c2(0x213)][_0x4942c2(0x21d)][_0x4942c2(0x20d)](()=>{const _0x219ecf=_0x4942c2;this[_0x219ecf(0x196)]=!0x1,this[_0x219ecf(0x232)][_0x219ecf(0x1e6)][_0x219ecf(0x1de)]();});}[_0x5a3453(0x206)](_0x416338,_0x594c21){const _0x34eadc=_0x5a3453;this[_0x34eadc(0x232)][_0x34eadc(0x1af)][_0x34eadc(0x206)](_0x416338,_0x594c21);}[_0x5a3453(0x1f9)](_0xe344f4){const _0x51fac8=_0x5a3453;this[_0x51fac8(0x232)][_0x51fac8(0x1af)][_0x51fac8(0x1f9)](_0xe344f4);}[_0x5a3453(0x22a)](_0x3f2246,_0x456aeb){const _0xd4ce91=_0x5a3453;this[_0xd4ce91(0x232)][_0xd4ce91(0x1af)][_0xd4ce91(0x22a)](_0x3f2246,_0x456aeb);}[_0x5a3453(0x1b3)](_0x4d0218){const _0x490552=_0x5a3453;this[_0x490552(0x232)][_0x490552(0x1af)][_0x490552(0x1b3)](_0x4d0218);}[_0x5a3453(0x21e)](_0x1868ea){const _0x1499fb=_0x5a3453;this[_0x1499fb(0x232)][_0x1499fb(0x1af)][_0x1499fb(0x21e)](_0x1868ea);}[_0x5a3453(0x1df)](){const _0x58e3d3=_0x5a3453;this[_0x58e3d3(0x232)][_0x58e3d3(0x1af)][_0x58e3d3(0x1df)]();}[_0x5a3453(0x19e)](){const _0x534c2b=_0x5a3453;this[_0x534c2b(0x232)][_0x534c2b(0x1af)][_0x534c2b(0x19e)]();}[_0x5a3453(0x1ea)](_0x57634a,_0x51cc62,_0x33bfb2){const _0x4a78f0=_0x5a3453;this[_0x4a78f0(0x232)][_0x4a78f0(0x1af)][_0x4a78f0(0x1ea)](_0x57634a,_0x51cc62,_0x33bfb2);}[_0x5a3453(0x1bc)](){const _0x53ef53=_0x5a3453;this[_0x53ef53(0x232)][_0x53ef53(0x1af)][_0x53ef53(0x1bc)](),this[_0x53ef53(0x232)][_0x53ef53(0x1af)][_0x53ef53(0x1c7)](this[_0x53ef53(0x201)]());}[_0x5a3453(0x199)](_0x42a9e0){const _0x232aea=_0x5a3453;this[_0x232aea(0x232)][_0x232aea(0x1af)][_0x232aea(0x199)](_0x42a9e0);}[_0x5a3453(0x1e1)](_0x246e16){const _0x44c723=_0x5a3453;this[_0x44c723(0x232)][_0x44c723(0x1af)][_0x44c723(0x222)](_0x246e16[_0x44c723(0x211)]),this[_0x44c723(0x232)][_0x44c723(0x1af)][_0x44c723(0x1bb)](_0x246e16[_0x44c723(0x1c0)]),this[_0x44c723(0x232)][_0x44c723(0x1af)][_0x44c723(0x1c7)](this[_0x44c723(0x201)](_0x246e16));}[_0x5a3453(0x225)](_0x40946c,_0x578437){const _0x482f82=_0x5a3453;this[_0x482f82(0x232)][_0x482f82(0x1af)][_0x482f82(0x1e8)](_0x40946c),_0x578437&&this[_0x482f82(0x232)][_0x482f82(0x1af)][_0x482f82(0x228)](!0x1);}[_0x5a3453(0x23e)](_0x463f85){const _0x101f44=_0x5a3453;this[_0x101f44(0x20e)]=_0x463f85;}[_0x5a3453(0x1a3)](_0x5a80fa){const _0x11b6bf=_0x5a3453;this[_0x11b6bf(0x232)][_0x11b6bf(0x1e6)][_0x11b6bf(0x1a3)](_0x5a80fa);}[_0x5a3453(0x1b2)](){const _0x5bc9de=_0x5a3453;this[_0x5bc9de(0x231)](_0x5f2058(this[_0x5bc9de(0x1d3)][_0x5bc9de(0x1f5)],_0x5bc9de(0x19a)));}[_0x5a3453(0x231)](_0x1bf985,_0x780937=!0x1){const _0x4e8442=_0x5a3453;if(_0x780937&&!_0x4cb9b6()&&_0x1bf985[_0x4e8442(0x1ae)])return this[_0x4e8442(0x232)][_0x4e8442(0x1ed)][_0x4e8442(0x224)]='',void this[_0x4e8442(0x1bf)](_0x1bf985);this[_0x4e8442(0x232)][_0x4e8442(0x1ed)][_0x4e8442(0x224)]=_0x1bf985;}[_0x5a3453(0x236)](_0x2511c2){const _0x3fbd4c=_0x5a3453,_0x20b5ae=this[_0x3fbd4c(0x1ef)](_0x2511c2);this[_0x3fbd4c(0x232)][_0x3fbd4c(0x1e6)][_0x3fbd4c(0x236)](_0x20b5ae);}[_0x5a3453(0x1bf)](_0x10ac0d){const _0x111389=_0x5a3453;let _0x161e0b=0x0;clearInterval(this[_0x111389(0x19f)]),this[_0x111389(0x19f)]=setInterval(()=>{const _0x521426=_0x111389;this[_0x521426(0x232)][_0x521426(0x1ed)][_0x521426(0x224)]=this[_0x521426(0x232)][_0x521426(0x1ed)][_0x521426(0x224)]+_0x10ac0d[_0x161e0b],_0x161e0b++,_0x161e0b===_0x10ac0d[_0x521426(0x1ae)]&&clearInterval(this[_0x521426(0x19f)]);},0x1e);}[_0x5a3453(0x1b9)](_0x17f56a){const _0x4d2e06=_0x5a3453;this[_0x4d2e06(0x232)][_0x4d2e06(0x1ed)][_0x4d2e06(0x20c)]=_0x17f56a;}[_0x5a3453(0x1ef)](_0x2b805b){const _0x475bea=_0x5a3453;return _0x2b805b?_0x2b805b[_0x475bea(0x211)]&&_0x2b805b[_0x475bea(0x1c0)]?_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1ad)):_0x2b805b[_0x475bea(0x211)]?_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1fc)):_0x2b805b[_0x475bea(0x1c0)]?_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1f7)):_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1f4)):'';}[_0x5a3453(0x201)](_0x22d6d0){const _0x396c60=_0x5a3453;return _0x22d6d0?_0x22d6d0[_0x396c60(0x211)]&&_0x22d6d0[_0x396c60(0x1c0)]?_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x1ca)):_0x22d6d0[_0x396c60(0x211)]?_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x1e0)):_0x22d6d0[_0x396c60(0x1c0)]?_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x234)):_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x20f)):_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x20f));}[_0x5a3453(0x1bd)](_0x2a1cda,_0x329f69,_0x55abba,_0x40d47b){const _0x4ec010=_0x5a3453;this[_0x4ec010(0x232)][_0x4ec010(0x1bd)](_0x2a1cda,_0x329f69,_0x55abba,_0x40d47b);}[_0x5a3453(0x209)](_0x5e2e6b){const _0x672891=_0x5a3453;this[_0x672891(0x232)][_0x672891(0x209)](_0x5e2e6b);}[_0x5a3453(0x1e9)](){const _0x40d0b6=_0x5a3453;this[_0x40d0b6(0x232)][_0x40d0b6(0x1af)][_0x40d0b6(0x1e9)]();}[_0x5a3453(0x23a)](_0x1ec7b1,_0x26b563){const _0xc5aa09=_0x5a3453;this[_0xc5aa09(0x232)][_0xc5aa09(0x1e6)][_0xc5aa09(0x1cc)](_0x1ec7b1,_0x26b563);}[_0x5a3453(0x205)](){const _0x15cd10=_0x5a3453;this[_0x15cd10(0x232)][_0x15cd10(0x1e6)][_0x15cd10(0x205)]();}[_0x5a3453(0x1fd)](){const _0x1ca38e=_0x5a3453;this[_0x1ca38e(0x232)][_0x1ca38e(0x1af)][_0x1ca38e(0x1e5)]=!0x0;}[_0x5a3453(0x1b6)](){const _0x2e5daf=_0x5a3453;this[_0x2e5daf(0x232)][_0x2e5daf(0x1af)][_0x2e5daf(0x1e5)]=!0x1;}}
|
|
@@ -253,6 +253,10 @@ export type AIChatContextConfig = {
|
|
|
253
253
|
enabled: boolean;
|
|
254
254
|
};
|
|
255
255
|
sources?: Array<AIContextProvider>;
|
|
256
|
+
/**
|
|
257
|
+
* The minimum number of resources to show the search input.
|
|
258
|
+
*/
|
|
259
|
+
searchInputVisibleFrom?: number;
|
|
256
260
|
};
|
|
257
261
|
/**
|
|
258
262
|
* The configuration of a custom option in the AI Chat menu for adding resources to the prompt context.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f905d=_0x3d21;(function(_0xf8b4fa,_0x18f096){const _0x3febc2=_0x3d21,_0x564ea7=_0xf8b4fa();while(!![]){try{const _0x1259d2=-parseInt(_0x3febc2(0x17f))/0x1+parseInt(_0x3febc2(0x189))/0x2+parseInt(_0x3febc2(0x1a4))/0x3+parseInt(_0x3febc2(0x181))/0x4+-parseInt(_0x3febc2(0x198))/0x5*(parseInt(_0x3febc2(0x186))/0x6)+parseInt(_0x3febc2(0x1b0))/0x7+-parseInt(_0x3febc2(0x185))/0x8;if(_0x1259d2===_0x18f096)break;else _0x564ea7['push'](_0x564ea7['shift']());}catch(_0x4bc397){_0x564ea7['push'](_0x564ea7['shift']());}}}(_0x7f3a,0x628dc));import{CKEditorError as _0x6ff7d9,ObservableMixin as _0xc05edb,uid as _0x48b52e}from'ckeditor5/src/utils.js';function _0x3d21(_0x7613af,_0x324e4c){const _0x7f3a7e=_0x7f3a();return _0x3d21=function(_0x3d219c,_0x5c7af1){_0x3d219c=_0x3d219c-0x15e;let _0x53ca84=_0x7f3a7e[_0x3d219c];return _0x53ca84;},_0x3d21(_0x7613af,_0x324e4c);}function _0x7f3a(){const _0x322c3b=['message','isCurrentDocumentInContext','addFilesToContext','filter','fetchDocument','length','ai-chat-resource-no-data','getId','getSentContextItems','ai-chat-resource-load-failed','push','enabled','map','files','set','uploadUrl','name','isHidden','uiId','FILE','addResourceToContext','Current\x20document','uploadFile','_config','uploadDocument','_finishUploadOperation','_pendingContextItems','sourceResourcesLoaded','ai-chat-source-not-found','url-','from','clearPendingContextItems','TEXT','delete','type','getDocument','HTML','mapContextItemsToRequestData','contextItemLoadingEnded','size','end','has','_addToConversationContextItem','populateFromMessage','_removeContextItem','_setAddContextOptionsDefaultState','text/html','text/plain','ai-chat-context-invalid-data','_addContextItem','version','updateCurrentDocument','SELECTION','stack','_updateResourceInContextState','_createContextItemFromContent','abort','startsWith','all','addContextOptionsChanged','resources','get','sources','label','ai-request-aborted','forEach','ai-chat-source-resources-load-failed','63880uxQynE','isReadOnly','1835596qOHmOJ','_ongoingUploads','urls','uploadProgressChanged','12210544aiMIpu','60aXFzkM','files-','values','714666aHeckn','File','addToConversationContext','sessionId','addSelectionToContext','object\x20with\x20content\x20and\x20type\x20properties','fire','selection','isInContext','_conversationContextItems','URL','_startUploadOperation','contextItemAdded','_finishContextItemLoading','attributes','94745uSJdcm','getResources','getPendingContextItems','isSelectionInContext','_convertTextResourceToFile','_toggleAddCurrentDocumentOptionVisibility','object','contextSent','_ownerId','content','_mapContextItemToRequestData','removeSelectionFromContext','1795788OPYpMi','start','string','url','contextItemRemoved','_addContextOptionsState','data','_getCustomSourcesInitialState','isCurrentDocumentInConversation','hidden','abortController','loadSourceResources','5379752cHIPOk','_isResourceInContext','resourceId','getData','ai-chat-file-upload-failed','current-document','file-','_findSourceIdsByResourceId','error','resourceStateChanged','_connector','addUrlToContext','text/markdown','_ongoingUploadOperations','ai-chat-context-unsupported-type','ai-chat-url-upload-failed','addCurrentDocumentToContext','document','init','removeFromContext','ai-chat-document-upload-failed','find','DOCUMENT','MARKDOWN'];_0x7f3a=function(){return _0x322c3b;};return _0x7f3a();}import{AIContextItemType as _0x2f6bc3,AIContextTextResourceType as _0x59b10e}from'../../aicore/model/aicontext.js';import{escape as _0x2860e7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3f905d(0x195),_0x3f905d(0x1a8),_0x3f905d(0x162),_0x3f905d(0x19f),_0x3f905d(0x1b8),_0x3f905d(0x177),_0x3f905d(0x1e3),_0x3f905d(0x1b9),_0x3f905d(0x184)];export class AIChatContext extends _0xc05edb(){[_0x3f905d(0x1ba)];[_0x3f905d(0x1df)];[_0x3f905d(0x1a0)];constructor({connector:_0x3b6b7b,config:_0x201f4b,ownerId:_0x44ef58}){const _0x59ebe3=_0x3f905d;super(),this[_0x59ebe3(0x1ba)]=_0x3b6b7b,this[_0x59ebe3(0x1df)]=_0x201f4b,this[_0x59ebe3(0x1a0)]=_0x44ef58;}[_0x3f905d(0x1c2)](){const _0x42b00e=_0x3f905d;this[_0x42b00e(0x1e2)]=new Map(),this[_0x42b00e(0x192)]=new Map(),this[_0x42b00e(0x182)]=new Map(),this[_0x42b00e(0x1bd)]=new Map(),this[_0x42b00e(0x169)]();}[_0x3f905d(0x19a)](){const _0x5246f6=_0x3f905d;return this[_0x5246f6(0x1e2)];}async[_0x3f905d(0x167)](_0x5a9824){const _0x3a1400=_0x3f905d,_0x44c2c5=await this[_0x3a1400(0x173)](_0x5a9824);return this[_0x3a1400(0x166)](_0x44c2c5),_0x3a1400(0x1b5)===_0x44c2c5[_0x3a1400(0x1da)]&&this[_0x3a1400(0x19d)](),_0x44c2c5;}async[_0x3f905d(0x173)](_0x5cec0e){const _0x5a415f=_0x3f905d;if(_0x5cec0e[_0x5a415f(0x15e)]===_0x2f6bc3[_0x5a415f(0x1c6)]){const _0x4ffa20=await this[_0x5a415f(0x1ba)][_0x5a415f(0x1cc)](this[_0x5a415f(0x1a0)],_0x5cec0e['id'])[_0x5a415f(0x15f)]();return{'id':_0x5a415f(0x1b5),'uiId':_0x5a415f(0x1b5),'label':_0x5a415f(0x1dd),'type':_0x5cec0e[_0x5a415f(0x15e)],'content':_0x4ffa20[_0x5a415f(0x1a1)],'hidden':this[_0x5a415f(0x192)][_0x5a415f(0x165)](_0x5a415f(0x1b5)),'version':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x16e)],'sessionId':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x18c)]};}return{'id':_0x5cec0e['id'],'uiId':_0x5cec0e['id'],'label':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x17b)]||_0x5cec0e[_0x5a415f(0x1d8)]||_0x5cec0e[_0x5a415f(0x1a7)]||_0x5cec0e['id'],'type':_0x5cec0e[_0x5a415f(0x15e)],..._0x5cec0e?.[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]?{'resourceId':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]}:{}};}[_0x3f905d(0x1d0)](){const _0x33f743=_0x3f905d;return new Map(this[_0x33f743(0x192)]);}[_0x3f905d(0x1c3)](_0xe7bfa3){const _0x5d9719=_0x3f905d,_0x57e081=this[_0x5d9719(0x1e2)][_0x5d9719(0x179)](_0xe7bfa3);_0x57e081?.[_0x5d9719(0x180)]||this[_0x5d9719(0x168)](_0xe7bfa3);}[_0x3f905d(0x1e7)](){const _0x5a4a4b=_0x3f905d;if(0x0===this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x163)])return;for(const _0x137ebc of this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x188)]())this[_0x5a4a4b(0x168)](_0x137ebc[_0x5a4a4b(0x1da)]);const _0x39cca0=this[_0x5a4a4b(0x192)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5))||this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5));_0x39cca0&&this[_0x5a4a4b(0x16d)]({..._0x39cca0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3f905d(0x18b)](_0x59ead7){const _0x2dd530=_0x3f905d;for(const _0x1abf6 of _0x59ead7[_0x2dd530(0x188)]())this[_0x2dd530(0x166)](_0x1abf6);this[_0x2dd530(0x1e7)](),this[_0x2dd530(0x18f)](_0x2dd530(0x19f),{'contextItems':Array[_0x2dd530(0x1e6)](this[_0x2dd530(0x1d0)]()[_0x2dd530(0x188)]())});}[_0x3f905d(0x1c9)](){const _0x3ec319=_0x3f905d;return this[_0x3ec319(0x1e2)][_0x3ec319(0x165)](_0x3ec319(0x1b5));}[_0x3f905d(0x19b)](){const _0x1545fa=_0x3f905d;return this[_0x1545fa(0x1e2)][_0x1545fa(0x165)](_0x1545fa(0x190));}[_0x3f905d(0x1ac)](){const _0x2bd453=_0x3f905d;return this[_0x2bd453(0x192)][_0x2bd453(0x165)](_0x2bd453(0x1b5));}static[_0x3f905d(0x161)](_0x5661dc){const _0x47be00=_0x3f905d;return Array[_0x47be00(0x1e6)](_0x5661dc[_0x47be00(0x188)]())[_0x47be00(0x1d4)](_0x4647ef=>this[_0x47be00(0x1a2)](_0x4647ef))[_0x47be00(0x1cb)](_0x2712a7=>null!==_0x2712a7);}async[_0x3f905d(0x1ca)](_0x3df38a,_0x49802d,_0x1f089e=_0x2f6bc3[_0x3f905d(0x1db)]){const _0x53e15a=_0x3f905d,_0x42dc33=_0x53e15a(0x187)+_0x48b52e();this[_0x53e15a(0x194)](_0x42dc33);try{await Promise[_0x53e15a(0x176)](_0x3df38a[_0x53e15a(0x1d4)](async _0x3a8599=>{const _0xa4d109=_0x53e15a,_0x1a207a=_0xa4d109(0x1b6)+_0x48b52e(),_0x4885c9=_0x2860e7(_0x3a8599[_0xa4d109(0x1d8)]);try{this[_0xa4d109(0x16d)]({'type':_0x1f089e,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x0);const _0x4569ca=this[_0xa4d109(0x1ba)][_0xa4d109(0x1de)](this[_0xa4d109(0x1a0)],_0x3a8599,_0x49802d);this[_0xa4d109(0x182)][_0xa4d109(0x1d6)](_0x1a207a,_0x4569ca[_0xa4d109(0x1ae)]);const {id:_0x41c8c2}=await _0x4569ca[_0xa4d109(0x1cf)]();this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a),this[_0xa4d109(0x196)]({'type':_0x1f089e,'id':_0x41c8c2,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x1);}catch(_0x2232e9){this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a);if(!_0x2232e9[_0xa4d109(0x1c8)][_0xa4d109(0x175)](_0xa4d109(0x17c))){const _0x2996ab=new _0x6ff7d9(_0xa4d109(0x1b4),null,{'fileName':_0x4885c9});_0x2996ab[_0xa4d109(0x171)]=_0x2232e9[_0xa4d109(0x171)],this[_0xa4d109(0x18f)](_0xa4d109(0x1b8),{'error':_0x2996ab,'fileName':_0x4885c9});}this[_0xa4d109(0x168)](_0x1a207a);}}));}finally{this[_0x53e15a(0x1e1)](_0x42dc33);}}[_0x3f905d(0x1c0)](_0x2d4764){const _0x4f91bb=_0x3f905d;if(this[_0x4f91bb(0x1c9)]())return;const _0x1b9520={'type':_0x2f6bc3[_0x4f91bb(0x1c6)],'uiId':_0x4f91bb(0x1b5),'label':_0x2d4764,'isReadOnly':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5)),'hidden':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5))};this[_0x4f91bb(0x16d)](_0x1b9520);}async[_0x3f905d(0x16f)](_0x87c00,_0x4bb9ae,_0x1cb4f1,_0x4c7407){const _0x7aa733=_0x3f905d,_0x53d3ab=this[_0x7aa733(0x1e2)][_0x7aa733(0x179)](_0x7aa733(0x1b5));if(_0x53d3ab&&_0x87c00){_0x53d3ab[_0x7aa733(0x190)]=_0x4c7407?_0x4c7407[_0x7aa733(0x1d4)](_0x2b83ee=>({'start':_0x2b83ee[_0x7aa733(0x1a5)],'end':_0x2b83ee[_0x7aa733(0x164)]})):[];try{if(_0x53d3ab[_0x7aa733(0x16e)]===_0x4bb9ae)return;const {id:_0x4c3035}=await this[_0x7aa733(0x1ba)][_0x7aa733(0x1e0)](this[_0x7aa733(0x1a0)],_0x87c00,{'version':_0x4bb9ae,'sessionId':_0x1cb4f1})[_0x7aa733(0x1cf)]();_0x53d3ab['id']=_0x4c3035,_0x53d3ab[_0x7aa733(0x1a1)]=_0x87c00,_0x53d3ab[_0x7aa733(0x16e)]=_0x4bb9ae,_0x53d3ab[_0x7aa733(0x18c)]=_0x1cb4f1;}catch(_0x3e0c17){const _0x40fefa=new _0x6ff7d9(_0x7aa733(0x1c4),null);_0x40fefa[_0x7aa733(0x171)]=_0x3e0c17[_0x7aa733(0x171)],this[_0x7aa733(0x18f)](_0x7aa733(0x1b8),{'error':_0x40fefa});}}}[_0x3f905d(0x18d)](_0x4d0136){const _0x54e387=_0x3f905d;this[_0x54e387(0x16d)]({'type':_0x2f6bc3[_0x54e387(0x170)],'label':_0x4d0136,'uiId':_0x54e387(0x190),'content':_0x4d0136});}[_0x3f905d(0x1a3)](){const _0x2136b0=_0x3f905d;this[_0x2136b0(0x168)](_0x2136b0(0x190));}async[_0x3f905d(0x1bb)](_0x2175f1,_0x543768){const _0x19818d=_0x3f905d,_0xc1cfb5=_0x19818d(0x1e5)+_0x48b52e();this[_0x19818d(0x194)](_0xc1cfb5);const _0x54fd18=_0x19818d(0x1e5)+_0x48b52e();try{this[_0x19818d(0x16d)]({'type':_0x2f6bc3[_0x19818d(0x193)],'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x0);const _0x27632e=this[_0x19818d(0x1ba)][_0x19818d(0x1d7)](this[_0x19818d(0x1a0)],_0x2175f1,_0x543768);this[_0x19818d(0x182)][_0x19818d(0x1d6)](_0x54fd18,_0x27632e[_0x19818d(0x1ae)]);const {id:_0x1d77ca}=await _0x27632e[_0x19818d(0x1cf)]();this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),this[_0x19818d(0x196)]({'type':_0x2f6bc3[_0x19818d(0x193)],'id':_0x1d77ca,'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x1);}catch(_0x5b40d5){this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),(_0x5b40d5[_0x19818d(0x1c8)][_0x19818d(0x175)](_0x19818d(0x17c))||this[_0x19818d(0x18f)](_0x19818d(0x1b8),{'error':new _0x6ff7d9(_0x19818d(0x1bf),this,{'url':_0x2175f1,'originalError':_0x5b40d5}),'url':_0x2175f1}),this[_0x19818d(0x168)](_0x54fd18));}finally{this[_0x19818d(0x1e1)](_0xc1cfb5);}}async[_0x3f905d(0x1af)](_0x2fc0ed,_0x30ee0b,_0x3aefee){const _0x491962=_0x3f905d,_0x5bbe94=this[_0x491962(0x1a9)][_0x491962(0x17a)][_0x491962(0x1c5)](_0x66af4f=>_0x66af4f['id']===_0x2fc0ed);if(!_0x5bbe94)return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x1e4),this,{'sourceId':_0x2fc0ed}),'sourceId':_0x2fc0ed}),[];try{const _0x53e974=(await _0x5bbe94[_0x491962(0x199)](_0x30ee0b))[_0x491962(0x1d4)](_0x2773f1=>{const _0x31689d=_0x491962,_0x2687df=this[_0x31689d(0x1b1)](_0x2773f1['id']);return{..._0x2773f1,'isInContext':_0x2687df};});return _0x5bbe94[_0x491962(0x178)]=_0x53e974,this[_0x491962(0x18f)](_0x491962(0x1e3),{'sourceId':_0x2fc0ed,'source':_0x5bbe94,'resources':_0x53e974,'uid':_0x3aefee}),_0x53e974;}catch(_0x1b6d1f){return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x17e),this,{'sourceId':_0x2fc0ed,'originalError':_0x1b6d1f}),'sourceId':_0x2fc0ed,'sourceLabel':_0x5bbe94[_0x491962(0x17b)]}),[];}}async[_0x3f905d(0x1dc)](_0x3cd34b,_0x1a9e77){const _0x1ca901=_0x3f905d;if(this[_0x1ca901(0x1b1)](_0x1a9e77['id']))return;let _0x1aebe5=_0x1a9e77[_0x1ca901(0x1aa)];if(!_0x1aebe5&&_0x3cd34b[_0x1ca901(0x1b3)])try{_0x1aebe5=await _0x3cd34b[_0x1ca901(0x1b3)](_0x1a9e77['id']);}catch(_0x375ef){return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1d1),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'originalError':_0x375ef}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}if(_0x1aebe5)switch(_0x1a9e77[_0x1ca901(0x15e)]){case _0x2f6bc3[_0x1ca901(0x193)]:if(_0x1ca901(0x1a6)!=typeof _0x1aebe5)return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x1a6),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1bb)](_0x1aebe5,{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1db)]:if(!(_0x1aebe5 instanceof File))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18a),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1e8)]:if(_0x1ca901(0x19e)!=typeof _0x1aebe5||!(_0x1ca901(0x1a1)in _0x1aebe5)||!(_0x1ca901(0x15e)in _0x1aebe5))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18e),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});_0x1aebe5=AIChatContext[_0x1ca901(0x19c)](_0x1aebe5,_0x1a9e77[_0x1ca901(0x17b)]),await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']},_0x2f6bc3[_0x1ca901(0x1e8)]);break;default:this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1be),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'resourceType':_0x1a9e77[_0x1ca901(0x15e)]}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}else this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1ce),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}static[_0x3f905d(0x19c)](_0x2c39fd,_0xbee453){const _0x426fac=_0x3f905d;switch(_0x2c39fd[_0x426fac(0x15e)]){case _0x59b10e[_0x426fac(0x1c7)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x1bc)});case _0x59b10e[_0x426fac(0x160)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16a)});default:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16b)});}}static[_0x3f905d(0x1a2)](_0x3ebb4b){const _0x109206=_0x3f905d;switch(_0x3ebb4b[_0x109206(0x15e)]){case _0x2f6bc3[_0x109206(0x1db)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x193)]:return{'type':_0x2f6bc3[_0x109206(0x193)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x1c6)]:return{'type':_0x2f6bc3[_0x109206(0x1c6)],'id':_0x3ebb4b['id'],..._0x3ebb4b[_0x109206(0x190)]?.[_0x109206(0x1cd)]&&{'selection':_0x3ebb4b[_0x109206(0x190)]}};case _0x2f6bc3[_0x109206(0x1e8)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};default:return null;}}[_0x3f905d(0x16d)](_0x3c1f15,_0x5b4a04=!0x1){const _0x4fc5f7=_0x3f905d;if(this[_0x4fc5f7(0x1e2)][_0x4fc5f7(0x1d6)](_0x3c1f15[_0x4fc5f7(0x1da)],_0x3c1f15),_0x3c1f15[_0x4fc5f7(0x1ad)]||this[_0x4fc5f7(0x18f)](_0x4fc5f7(0x195),{'contextItem':_0x3c1f15,'isLoading':_0x5b4a04}),_0x4fc5f7(0x1b5)===_0x3c1f15[_0x4fc5f7(0x1da)]&&this[_0x4fc5f7(0x19d)](),_0x3c1f15[_0x4fc5f7(0x1b2)]){const _0x4639cf=this[_0x4fc5f7(0x1b7)](_0x3c1f15[_0x4fc5f7(0x1b2)]);_0x4639cf&&_0x4639cf[_0x4fc5f7(0x17d)](_0x340657=>{const _0xaa620a=_0x4fc5f7;this[_0xaa620a(0x172)](_0x340657,_0x3c1f15[_0xaa620a(0x1b2)],!0x0);});}}[_0x3f905d(0x168)](_0x26dbd4){const _0x41aed3=_0x3f905d,_0x5a2db0=this[_0x41aed3(0x1e2)][_0x41aed3(0x179)](_0x26dbd4),_0x54736f=this[_0x41aed3(0x182)][_0x41aed3(0x179)](_0x26dbd4);if(_0x54736f&&(_0x54736f[_0x41aed3(0x174)](),this[_0x41aed3(0x182)][_0x41aed3(0x1e9)](_0x26dbd4)),_0x5a2db0?.[_0x41aed3(0x1b2)]){const _0x539a0e=this[_0x41aed3(0x1b7)](_0x5a2db0[_0x41aed3(0x1b2)]);_0x539a0e&&_0x539a0e[_0x41aed3(0x17d)](_0x5ac443=>{const _0x2d7169=_0x41aed3;this[_0x2d7169(0x172)](_0x5ac443,_0x5a2db0[_0x2d7169(0x1b2)],!0x1);});}this[_0x41aed3(0x1e2)][_0x41aed3(0x1e9)](_0x26dbd4),this[_0x41aed3(0x18f)](_0x41aed3(0x1a8),{'uiId':_0x26dbd4,'type':_0x5a2db0?.[_0x41aed3(0x15e)]}),_0x41aed3(0x1b5)===_0x26dbd4&&this[_0x41aed3(0x19d)]();}[_0x3f905d(0x196)](_0x194ffe,_0x5f4347){const _0x5772ee=_0x3f905d;if(this[_0x5772ee(0x1e2)][_0x5772ee(0x165)](_0x194ffe[_0x5772ee(0x1da)])&&(this[_0x5772ee(0x1e2)][_0x5772ee(0x1d6)](_0x194ffe[_0x5772ee(0x1da)],_0x194ffe),this[_0x5772ee(0x18f)](_0x5772ee(0x162),{'contextItem':_0x194ffe,'isLoading':_0x5f4347}),_0x194ffe[_0x5772ee(0x1b2)])){const _0x1b18a5=this[_0x5772ee(0x1b7)](_0x194ffe[_0x5772ee(0x1b2)]);_0x1b18a5&&_0x1b18a5[_0x5772ee(0x17d)](_0x5c4929=>{const _0x4b5ff2=_0x5772ee;this[_0x4b5ff2(0x172)](_0x5c4929,_0x194ffe[_0x4b5ff2(0x1b2)],!0x0);});}}[_0x3f905d(0x166)](_0x5c7e01){const _0x3a8c79=_0x3f905d;this[_0x3a8c79(0x192)][_0x3a8c79(0x1d6)](_0x5c7e01[_0x3a8c79(0x1da)],_0x5c7e01);}[_0x3f905d(0x169)](){const _0x99081f=_0x3f905d;this[_0x99081f(0x1a9)]={'document':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1c1)]?.[_0x99081f(0x1d3)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x183)]?.[_0x99081f(0x1d3)]},'files':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1d5)]?.[_0x99081f(0x1d3)]},'sources':this[_0x99081f(0x1ab)]()},this[_0x99081f(0x18f)](_0x99081f(0x177),{'options':this[_0x99081f(0x1a9)]});}[_0x3f905d(0x1ab)](){const _0x1ea756=_0x3f905d;return this[_0x1ea756(0x1df)]?.[_0x1ea756(0x17a)]?.[_0x1ea756(0x1d4)](_0xed4b86=>({..._0xed4b86,'resources':[]}))??[];}[_0x3f905d(0x19d)](){const _0x36a3fc=_0x3f905d,_0x2adfd1=this[_0x36a3fc(0x1c9)]()||this[_0x36a3fc(0x1ac)]();this[_0x36a3fc(0x1a9)][_0x36a3fc(0x1c1)][_0x36a3fc(0x1d9)]=_0x2adfd1,this[_0x36a3fc(0x18f)](_0x36a3fc(0x177),{'options':this[_0x36a3fc(0x1a9)]});}[_0x3f905d(0x1b1)](_0x5af946){const _0x36f18e=_0x3f905d;for(const _0x3381de of this[_0x36f18e(0x1e2)][_0x36f18e(0x188)]())if(_0x3381de[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;for(const _0x3efb89 of this[_0x36f18e(0x192)][_0x36f18e(0x188)]())if(_0x3efb89[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;return!0x1;}[_0x3f905d(0x1b7)](_0x3a45d8){const _0x5b890b=_0x3f905d,_0x4e61e6=[];for(const _0x1cf325 of this[_0x5b890b(0x1a9)][_0x5b890b(0x17a)]){_0x1cf325[_0x5b890b(0x178)][_0x5b890b(0x1c5)](_0x56c611=>_0x56c611['id']===_0x3a45d8)&&_0x4e61e6[_0x5b890b(0x1d2)](_0x1cf325['id']);}return 0x0===_0x4e61e6[_0x5b890b(0x1cd)]?null:_0x4e61e6;}[_0x3f905d(0x172)](_0x2c83b3,_0x177b92,_0x207fc0){const _0x71f066=_0x3f905d,_0x41d0b8=this[_0x71f066(0x1a9)][_0x71f066(0x17a)][_0x71f066(0x1c5)](_0x267504=>_0x267504['id']===_0x2c83b3);if(!_0x41d0b8)return;const _0x4f68ef=_0x41d0b8[_0x71f066(0x178)][_0x71f066(0x1c5)](_0x295144=>_0x295144['id']===_0x177b92);_0x4f68ef&&(_0x4f68ef[_0x71f066(0x191)]=_0x207fc0,this[_0x71f066(0x18f)](_0x71f066(0x1b9),{'sourceId':_0x2c83b3,'resourceId':_0x177b92,'isInContext':_0x207fc0}));}[_0x3f905d(0x194)](_0x1c0c50){const _0x34c056=_0x3f905d;this[_0x34c056(0x1bd)][_0x34c056(0x1d6)](_0x1c0c50,!0x0),this[_0x34c056(0x1bd)][_0x34c056(0x163)]&&this[_0x34c056(0x18f)](_0x34c056(0x184),{'isUploadInProgress':!0x0});}[_0x3f905d(0x1e1)](_0x516a7b){const _0x23bf43=_0x3f905d;this[_0x23bf43(0x1bd)][_0x23bf43(0x1e9)](_0x516a7b),0x0===this[_0x23bf43(0x1bd)][_0x23bf43(0x163)]&&this[_0x23bf43(0x18f)](_0x23bf43(0x184),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x49eb93=_0x4b60;(function(_0x18226f,_0x567295){const _0x116593=_0x4b60,_0x3e10c6=_0x18226f();while(!![]){try{const _0x5e675b=-parseInt(_0x116593(0x178))/0x1*(parseInt(_0x116593(0x11e))/0x2)+parseInt(_0x116593(0x182))/0x3*(parseInt(_0x116593(0x10e))/0x4)+-parseInt(_0x116593(0x103))/0x5+parseInt(_0x116593(0x123))/0x6+-parseInt(_0x116593(0x167))/0x7*(-parseInt(_0x116593(0x144))/0x8)+parseInt(_0x116593(0x105))/0x9+-parseInt(_0x116593(0x183))/0xa;if(_0x5e675b===_0x567295)break;else _0x3e10c6['push'](_0x3e10c6['shift']());}catch(_0x47c68c){_0x3e10c6['push'](_0x3e10c6['shift']());}}}(_0x4b89,0xbb8bd));import{CKEditorError as _0x7e5f12,ObservableMixin as _0x1ed34b,uid as _0x5d8ef0}from'ckeditor5/src/utils.js';function _0x4b89(){const _0x4e7ba8=['label','files-','11459rBqZXb','FILE','ai-chat-context-invalid-data','_createContextItemFromContent','getId','get','MARKDOWN','ai-chat-context-unsupported-type','_addContextItem','_finishUploadOperation','files','ai-chat-source-not-found','start','removeSelectionFromContext','addToConversationContext','fetchDocument','urls','47kNipFc','removeFromContext','TEXT','_addContextOptionsState','isCurrentDocumentInConversation','resources','isSelectionInContext','isHidden','updateCurrentDocument','addContextOptionsChanged','12126QwAOrq','4827170FbANin','startsWith','ai-request-aborted','version','HTML','_config','text/markdown','filter','contextItemAdded','abortController','contextSent','_connector','end','contextItemLoadingEnded','1173210mzAzfO','isCurrentDocumentInContext','3222108zLSdxv','object','url-','URL','content','addFilesToContext','stack','ai-chat-document-upload-failed','data','740UkDEvM','has','resourceId','enabled','populateFromMessage','_toggleAddCurrentDocumentOptionVisibility','_ownerId','_conversationContextItems','getSentContextItems','attributes','forEach','_convertTextResourceToFile','type','File','_ongoingUploadOperations','sources','47310gbPtku','ai-chat-source-resources-load-failed','string','text/plain','message','7053660sPYpxR','abort','all','length','file-','text/html','addUrlToContext','_addToConversationContextItem','sourceResourcesLoaded','contextItemRemoved','isReadOnly','size','addResourceToContext','getResources','getPendingContextItems','from','mapContextItemsToRequestData','init','document','hidden','_removeContextItem','ai-chat-resource-load-failed','getData','_ongoingUploads','getDocument','_isResourceInContext','current-document','url','resourceStateChanged','DOCUMENT','uploadFile','ai-chat-resource-no-data','_pendingContextItems','1544iqtbVS','uploadDocument','map','ai-chat-file-upload-failed','delete','push','set','Current\x20document','_findSourceIdsByResourceId','uploadUrl','error','addCurrentDocumentToContext','clearPendingContextItems','values','sessionId','addSelectionToContext','uploadProgressChanged','isInContext','ai-chat-url-upload-failed','object\x20with\x20content\x20and\x20type\x20properties','_getCustomSourcesInitialState','fire','name','_finishContextItemLoading','_setAddContextOptionsDefaultState','SELECTION','_updateResourceInContextState','_startUploadOperation','uiId','find','selection','loadSourceResources','_mapContextItemToRequestData'];_0x4b89=function(){return _0x4e7ba8;};return _0x4b89();}import{AIContextItemType as _0x51c85d,AIContextTextResourceType as _0x541474}from'../../aicore/model/aicontext.js';import{escape as _0xc0b8dd}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x49eb93(0xfd),_0x49eb93(0x12c),_0x49eb93(0x102),_0x49eb93(0xff),_0x49eb93(0x14e),_0x49eb93(0x181),_0x49eb93(0x12b),_0x49eb93(0x13f),_0x49eb93(0x154)];function _0x4b60(_0xec07ef,_0xa7f84e){const _0x4b8966=_0x4b89();return _0x4b60=function(_0x4b6065,_0x4e859d){_0x4b6065=_0x4b6065-0xfb;let _0x1d63ec=_0x4b8966[_0x4b6065];return _0x1d63ec;},_0x4b60(_0xec07ef,_0xa7f84e);}export class AIChatContext extends _0x1ed34b(){[_0x49eb93(0x100)];[_0x49eb93(0x188)];[_0x49eb93(0x114)];constructor({connector:_0x32e611,config:_0x474cbe,ownerId:_0x5186dd}){const _0x2cf429=_0x49eb93;super(),this[_0x2cf429(0x100)]=_0x32e611,this[_0x2cf429(0x188)]=_0x474cbe,this[_0x2cf429(0x114)]=_0x5186dd;}[_0x49eb93(0x134)](){const _0x380cf7=_0x49eb93;this[_0x380cf7(0x143)]=new Map(),this[_0x380cf7(0x115)]=new Map(),this[_0x380cf7(0x13a)]=new Map(),this[_0x380cf7(0x11c)]=new Map(),this[_0x380cf7(0x15c)]();}[_0x49eb93(0x131)](){const _0x41a40f=_0x49eb93;return this[_0x41a40f(0x143)];}async[_0x49eb93(0x112)](_0x4cc3d6){const _0x40eac0=_0x49eb93,_0x328814=await this[_0x40eac0(0x16a)](_0x4cc3d6);return this[_0x40eac0(0x12a)](_0x328814),_0x40eac0(0x13d)===_0x328814[_0x40eac0(0x160)]&&this[_0x40eac0(0x113)](),_0x328814;}async[_0x49eb93(0x16a)](_0x148090){const _0x4ea1e2=_0x49eb93;if(_0x148090[_0x4ea1e2(0x11a)]===_0x51c85d[_0x4ea1e2(0x140)]){const _0x3f8167=await this[_0x4ea1e2(0x100)][_0x4ea1e2(0x176)](this[_0x4ea1e2(0x114)],_0x148090['id'])[_0x4ea1e2(0x13b)]();return{'id':_0x4ea1e2(0x13d),'uiId':_0x4ea1e2(0x13d),'label':_0x4ea1e2(0x14b),'type':_0x148090[_0x4ea1e2(0x11a)],'content':_0x3f8167[_0x4ea1e2(0x109)],'hidden':this[_0x4ea1e2(0x115)][_0x4ea1e2(0x10f)](_0x4ea1e2(0x13d)),'version':_0x3f8167[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x186)],'sessionId':_0x3f8167[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x152)]};}return{'id':_0x148090['id'],'uiId':_0x148090['id'],'label':_0x148090[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x165)]||_0x148090[_0x4ea1e2(0x15a)]||_0x148090[_0x4ea1e2(0x13e)]||_0x148090['id'],'type':_0x148090[_0x4ea1e2(0x11a)],..._0x148090?.[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x110)]?{'resourceId':_0x148090[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x110)]}:{}};}[_0x49eb93(0x116)](){const _0x2f5ec6=_0x49eb93;return new Map(this[_0x2f5ec6(0x115)]);}[_0x49eb93(0x179)](_0xa8b84a){const _0x2c1bb9=_0x49eb93,_0x2d952c=this[_0x2c1bb9(0x143)][_0x2c1bb9(0x16c)](_0xa8b84a);_0x2d952c?.[_0x2c1bb9(0x12d)]||this[_0x2c1bb9(0x137)](_0xa8b84a);}[_0x49eb93(0x150)](){const _0x40b620=_0x49eb93;if(0x0===this[_0x40b620(0x143)][_0x40b620(0x12e)])return;for(const _0x23356c of this[_0x40b620(0x143)][_0x40b620(0x151)]())this[_0x40b620(0x137)](_0x23356c[_0x40b620(0x160)]);const _0xd31ef7=this[_0x40b620(0x115)][_0x40b620(0x16c)](_0x40b620(0x13d))||this[_0x40b620(0x143)][_0x40b620(0x16c)](_0x40b620(0x13d));_0xd31ef7&&this[_0x40b620(0x16f)]({..._0xd31ef7,'isReadOnly':!0x0,'hidden':!0x0});}[_0x49eb93(0x175)](_0xb175ec){const _0x209b89=_0x49eb93;for(const _0x57ecab of _0xb175ec[_0x209b89(0x151)]())this[_0x209b89(0x12a)](_0x57ecab);this[_0x209b89(0x150)](),this[_0x209b89(0x159)](_0x209b89(0xff),{'contextItems':Array[_0x209b89(0x132)](this[_0x209b89(0x116)]()[_0x209b89(0x151)]())});}[_0x49eb93(0x104)](){const _0x508243=_0x49eb93;return this[_0x508243(0x143)][_0x508243(0x10f)](_0x508243(0x13d));}[_0x49eb93(0x17e)](){const _0x396bf4=_0x49eb93;return this[_0x396bf4(0x143)][_0x396bf4(0x10f)](_0x396bf4(0x162));}[_0x49eb93(0x17c)](){const _0x4dc478=_0x49eb93;return this[_0x4dc478(0x115)][_0x4dc478(0x10f)](_0x4dc478(0x13d));}static[_0x49eb93(0x133)](_0x36e8dc){const _0x4f8022=_0x49eb93;return Array[_0x4f8022(0x132)](_0x36e8dc[_0x4f8022(0x151)]())[_0x4f8022(0x146)](_0x5f5be6=>this[_0x4f8022(0x164)](_0x5f5be6))[_0x4f8022(0xfc)](_0x49078b=>null!==_0x49078b);}async[_0x49eb93(0x10a)](_0x7f84b3,_0x5809f9,_0x45f85d=_0x51c85d[_0x49eb93(0x168)]){const _0x2f4f6f=_0x49eb93,_0x158799=_0x2f4f6f(0x166)+_0x5d8ef0();this[_0x2f4f6f(0x15f)](_0x158799);try{await Promise[_0x2f4f6f(0x125)](_0x7f84b3[_0x2f4f6f(0x146)](async _0x3ec497=>{const _0xa0b346=_0x2f4f6f,_0x5a0578=_0xa0b346(0x127)+_0x5d8ef0(),_0x38ee4a=_0xc0b8dd(_0x3ec497[_0xa0b346(0x15a)]);try{this[_0xa0b346(0x16f)]({'type':_0x45f85d,'label':_0x5809f9?.[_0xa0b346(0x165)]||_0x38ee4a,'uiId':_0x5a0578,'resourceId':_0x5809f9?.[_0xa0b346(0x110)]},!0x0);const _0x58a39e=this[_0xa0b346(0x100)][_0xa0b346(0x141)](this[_0xa0b346(0x114)],_0x3ec497,_0x5809f9);this[_0xa0b346(0x13a)][_0xa0b346(0x14a)](_0x5a0578,_0x58a39e[_0xa0b346(0xfe)]);const {id:_0x239ff7}=await _0x58a39e[_0xa0b346(0x16b)]();this[_0xa0b346(0x13a)][_0xa0b346(0x148)](_0x5a0578),this[_0xa0b346(0x15b)]({'type':_0x45f85d,'id':_0x239ff7,'label':_0x5809f9?.[_0xa0b346(0x165)]||_0x38ee4a,'uiId':_0x5a0578,'resourceId':_0x5809f9?.[_0xa0b346(0x110)]},!0x1);}catch(_0x10006f){this[_0xa0b346(0x13a)][_0xa0b346(0x148)](_0x5a0578);if(!_0x10006f[_0xa0b346(0x122)][_0xa0b346(0x184)](_0xa0b346(0x185))){const _0x42b240=new _0x7e5f12(_0xa0b346(0x147),null,{'fileName':_0x38ee4a});_0x42b240[_0xa0b346(0x10b)]=_0x10006f[_0xa0b346(0x10b)],this[_0xa0b346(0x159)](_0xa0b346(0x14e),{'error':_0x42b240,'fileName':_0x38ee4a});}this[_0xa0b346(0x137)](_0x5a0578);}}));}finally{this[_0x2f4f6f(0x170)](_0x158799);}}[_0x49eb93(0x14f)](_0x573a3f){const _0x12e660=_0x49eb93;if(this[_0x12e660(0x104)]())return;const _0x568f6c={'type':_0x51c85d[_0x12e660(0x140)],'uiId':_0x12e660(0x13d),'label':_0x573a3f,'isReadOnly':this[_0x12e660(0x115)][_0x12e660(0x10f)](_0x12e660(0x13d)),'hidden':this[_0x12e660(0x115)][_0x12e660(0x10f)](_0x12e660(0x13d))};this[_0x12e660(0x16f)](_0x568f6c);}async[_0x49eb93(0x180)](_0x1e0988,_0x48521d,_0x5ca5be,_0x45b7e5){const _0x1bc2d9=_0x49eb93,_0x21fae3=this[_0x1bc2d9(0x143)][_0x1bc2d9(0x16c)](_0x1bc2d9(0x13d));if(_0x21fae3&&_0x1e0988){_0x21fae3[_0x1bc2d9(0x162)]=_0x45b7e5?_0x45b7e5[_0x1bc2d9(0x146)](_0x2c9eb9=>({'start':_0x2c9eb9[_0x1bc2d9(0x173)],'end':_0x2c9eb9[_0x1bc2d9(0x101)]})):[];try{if(_0x21fae3[_0x1bc2d9(0x186)]===_0x48521d)return;const {id:_0x1eb75e}=await this[_0x1bc2d9(0x100)][_0x1bc2d9(0x145)](this[_0x1bc2d9(0x114)],_0x1e0988,{'version':_0x48521d,'sessionId':_0x5ca5be})[_0x1bc2d9(0x16b)]();_0x21fae3['id']=_0x1eb75e,_0x21fae3[_0x1bc2d9(0x109)]=_0x1e0988,_0x21fae3[_0x1bc2d9(0x186)]=_0x48521d,_0x21fae3[_0x1bc2d9(0x152)]=_0x5ca5be;}catch(_0x1e33aa){const _0xa061c1=new _0x7e5f12(_0x1bc2d9(0x10c),null);_0xa061c1[_0x1bc2d9(0x10b)]=_0x1e33aa[_0x1bc2d9(0x10b)],this[_0x1bc2d9(0x159)](_0x1bc2d9(0x14e),{'error':_0xa061c1});}}}[_0x49eb93(0x153)](_0x1d1f65){const _0x193175=_0x49eb93;this[_0x193175(0x16f)]({'type':_0x51c85d[_0x193175(0x15d)],'label':_0x1d1f65,'uiId':_0x193175(0x162),'content':_0x1d1f65});}[_0x49eb93(0x174)](){const _0x904bbe=_0x49eb93;this[_0x904bbe(0x137)](_0x904bbe(0x162));}async[_0x49eb93(0x129)](_0x4363c8,_0x5e038f){const _0x155789=_0x49eb93,_0x4f8f94=_0x155789(0x107)+_0x5d8ef0();this[_0x155789(0x15f)](_0x4f8f94);const _0x415b6a=_0x155789(0x107)+_0x5d8ef0();try{this[_0x155789(0x16f)]({'type':_0x51c85d[_0x155789(0x108)],'label':_0x5e038f?.[_0x155789(0x165)]||_0x4363c8,'uiId':_0x415b6a,'resourceId':_0x5e038f?.[_0x155789(0x110)]},!0x0);const _0x345c6e=this[_0x155789(0x100)][_0x155789(0x14d)](this[_0x155789(0x114)],_0x4363c8,_0x5e038f);this[_0x155789(0x13a)][_0x155789(0x14a)](_0x415b6a,_0x345c6e[_0x155789(0xfe)]);const {id:_0x346217}=await _0x345c6e[_0x155789(0x16b)]();this[_0x155789(0x13a)][_0x155789(0x148)](_0x415b6a),this[_0x155789(0x15b)]({'type':_0x51c85d[_0x155789(0x108)],'id':_0x346217,'label':_0x5e038f?.[_0x155789(0x165)]||_0x4363c8,'uiId':_0x415b6a,'resourceId':_0x5e038f?.[_0x155789(0x110)]},!0x1);}catch(_0x3a08af){this[_0x155789(0x13a)][_0x155789(0x148)](_0x415b6a),(_0x3a08af[_0x155789(0x122)][_0x155789(0x184)](_0x155789(0x185))||this[_0x155789(0x159)](_0x155789(0x14e),{'error':new _0x7e5f12(_0x155789(0x156),this,{'url':_0x4363c8,'originalError':_0x3a08af}),'url':_0x4363c8}),this[_0x155789(0x137)](_0x415b6a));}finally{this[_0x155789(0x170)](_0x4f8f94);}}async[_0x49eb93(0x163)](_0x2371dd,_0x42f946,_0x2f99cf){const _0x4d2dda=_0x49eb93,_0x31a669=this[_0x4d2dda(0x17b)][_0x4d2dda(0x11d)][_0x4d2dda(0x161)](_0x4af002=>_0x4af002['id']===_0x2371dd);if(!_0x31a669)return this[_0x4d2dda(0x159)](_0x4d2dda(0x14e),{'error':new _0x7e5f12(_0x4d2dda(0x172),this,{'sourceId':_0x2371dd}),'sourceId':_0x2371dd}),[];try{const _0x330377=(await _0x31a669[_0x4d2dda(0x130)](_0x42f946))[_0x4d2dda(0x146)](_0x2832d6=>{const _0x2649e8=_0x4d2dda,_0x4e236e=this[_0x2649e8(0x13c)](_0x2832d6['id']);return{..._0x2832d6,'isInContext':_0x4e236e};});return _0x31a669[_0x4d2dda(0x17d)]=_0x330377,this[_0x4d2dda(0x159)](_0x4d2dda(0x12b),{'sourceId':_0x2371dd,'source':_0x31a669,'resources':_0x330377,'uid':_0x2f99cf}),_0x330377;}catch(_0x1d98fa){return this[_0x4d2dda(0x159)](_0x4d2dda(0x14e),{'error':new _0x7e5f12(_0x4d2dda(0x11f),this,{'sourceId':_0x2371dd,'originalError':_0x1d98fa}),'sourceId':_0x2371dd,'sourceLabel':_0x31a669[_0x4d2dda(0x165)]}),[];}}async[_0x49eb93(0x12f)](_0x4bbc64,_0x2949c4){const _0x56f327=_0x49eb93;if(this[_0x56f327(0x13c)](_0x2949c4['id']))return;let _0x59165f=_0x2949c4[_0x56f327(0x10d)];if(!_0x59165f&&_0x4bbc64[_0x56f327(0x139)])try{_0x59165f=await _0x4bbc64[_0x56f327(0x139)](_0x2949c4['id']);}catch(_0x477e01){return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x138),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'originalError':_0x477e01}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});}if(_0x59165f)switch(_0x2949c4[_0x56f327(0x11a)]){case _0x51c85d[_0x56f327(0x108)]:if(_0x56f327(0x120)!=typeof _0x59165f)return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x169),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'expectedType':_0x56f327(0x120),'actualType':typeof _0x59165f}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});await this[_0x56f327(0x129)](_0x59165f,{'label':_0x2949c4[_0x56f327(0x165)],'resourceId':_0x2949c4['id']});break;case _0x51c85d[_0x56f327(0x168)]:if(!(_0x59165f instanceof File))return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x169),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'expectedType':_0x56f327(0x11b),'actualType':typeof _0x59165f}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});await this[_0x56f327(0x10a)]([_0x59165f],{'label':_0x2949c4[_0x56f327(0x165)],'resourceId':_0x2949c4['id']});break;case _0x51c85d[_0x56f327(0x17a)]:if(_0x56f327(0x106)!=typeof _0x59165f||!(_0x56f327(0x109)in _0x59165f)||!(_0x56f327(0x11a)in _0x59165f))return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x169),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'expectedType':_0x56f327(0x157),'actualType':typeof _0x59165f}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});_0x59165f=AIChatContext[_0x56f327(0x119)](_0x59165f,_0x2949c4[_0x56f327(0x165)]),await this[_0x56f327(0x10a)]([_0x59165f],{'label':_0x2949c4[_0x56f327(0x165)],'resourceId':_0x2949c4['id']},_0x51c85d[_0x56f327(0x17a)]);break;default:this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x16e),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'resourceType':_0x2949c4[_0x56f327(0x11a)]}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});}else this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x142),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});}static[_0x49eb93(0x119)](_0x19bd0b,_0x39a60a){const _0x1f1601=_0x49eb93;switch(_0x19bd0b[_0x1f1601(0x11a)]){case _0x541474[_0x1f1601(0x16d)]:return new File([_0x19bd0b[_0x1f1601(0x109)]],_0x39a60a,{'type':_0x1f1601(0xfb)});case _0x541474[_0x1f1601(0x187)]:return new File([_0x19bd0b[_0x1f1601(0x109)]],_0x39a60a,{'type':_0x1f1601(0x128)});default:return new File([_0x19bd0b[_0x1f1601(0x109)]],_0x39a60a,{'type':_0x1f1601(0x121)});}}static[_0x49eb93(0x164)](_0xf1ac02){const _0x165f5e=_0x49eb93;switch(_0xf1ac02[_0x165f5e(0x11a)]){case _0x51c85d[_0x165f5e(0x168)]:return{'type':_0x51c85d[_0x165f5e(0x168)],'id':_0xf1ac02['id']};case _0x51c85d[_0x165f5e(0x108)]:return{'type':_0x51c85d[_0x165f5e(0x108)],'id':_0xf1ac02['id']};case _0x51c85d[_0x165f5e(0x140)]:return{'type':_0x51c85d[_0x165f5e(0x140)],'id':_0xf1ac02['id'],..._0xf1ac02[_0x165f5e(0x162)]?.[_0x165f5e(0x126)]&&{'selection':_0xf1ac02[_0x165f5e(0x162)]}};case _0x51c85d[_0x165f5e(0x17a)]:return{'type':_0x51c85d[_0x165f5e(0x168)],'id':_0xf1ac02['id']};default:return null;}}[_0x49eb93(0x16f)](_0xe23830,_0x7ffce7=!0x1){const _0x662acf=_0x49eb93;if(this[_0x662acf(0x143)][_0x662acf(0x14a)](_0xe23830[_0x662acf(0x160)],_0xe23830),_0xe23830[_0x662acf(0x136)]||this[_0x662acf(0x159)](_0x662acf(0xfd),{'contextItem':_0xe23830,'isLoading':_0x7ffce7}),_0x662acf(0x13d)===_0xe23830[_0x662acf(0x160)]&&this[_0x662acf(0x113)](),_0xe23830[_0x662acf(0x110)]){const _0x57be4d=this[_0x662acf(0x14c)](_0xe23830[_0x662acf(0x110)]);_0x57be4d&&_0x57be4d[_0x662acf(0x118)](_0x2edf1f=>{const _0x1f60c2=_0x662acf;this[_0x1f60c2(0x15e)](_0x2edf1f,_0xe23830[_0x1f60c2(0x110)],!0x0);});}}[_0x49eb93(0x137)](_0x504ea6){const _0x210609=_0x49eb93,_0x21db22=this[_0x210609(0x143)][_0x210609(0x16c)](_0x504ea6),_0x45a6af=this[_0x210609(0x13a)][_0x210609(0x16c)](_0x504ea6);if(_0x45a6af&&(_0x45a6af[_0x210609(0x124)](),this[_0x210609(0x13a)][_0x210609(0x148)](_0x504ea6)),_0x21db22?.[_0x210609(0x110)]){const _0x15f77d=this[_0x210609(0x14c)](_0x21db22[_0x210609(0x110)]);_0x15f77d&&_0x15f77d[_0x210609(0x118)](_0x34008e=>{const _0x1fa69b=_0x210609;this[_0x1fa69b(0x15e)](_0x34008e,_0x21db22[_0x1fa69b(0x110)],!0x1);});}this[_0x210609(0x143)][_0x210609(0x148)](_0x504ea6),this[_0x210609(0x159)](_0x210609(0x12c),{'uiId':_0x504ea6,'type':_0x21db22?.[_0x210609(0x11a)]}),_0x210609(0x13d)===_0x504ea6&&this[_0x210609(0x113)]();}[_0x49eb93(0x15b)](_0x13c54e,_0x1daf9d){const _0x184ee4=_0x49eb93;if(this[_0x184ee4(0x143)][_0x184ee4(0x10f)](_0x13c54e[_0x184ee4(0x160)])&&(this[_0x184ee4(0x143)][_0x184ee4(0x14a)](_0x13c54e[_0x184ee4(0x160)],_0x13c54e),this[_0x184ee4(0x159)](_0x184ee4(0x102),{'contextItem':_0x13c54e,'isLoading':_0x1daf9d}),_0x13c54e[_0x184ee4(0x110)])){const _0x4be4ce=this[_0x184ee4(0x14c)](_0x13c54e[_0x184ee4(0x110)]);_0x4be4ce&&_0x4be4ce[_0x184ee4(0x118)](_0x1f854a=>{const _0x1b85d9=_0x184ee4;this[_0x1b85d9(0x15e)](_0x1f854a,_0x13c54e[_0x1b85d9(0x110)],!0x0);});}}[_0x49eb93(0x12a)](_0x130baf){const _0x428ab5=_0x49eb93;this[_0x428ab5(0x115)][_0x428ab5(0x14a)](_0x130baf[_0x428ab5(0x160)],_0x130baf);}[_0x49eb93(0x15c)](){const _0x499a99=_0x49eb93;this[_0x499a99(0x17b)]={'document':{'enabled':!0x1!==this[_0x499a99(0x188)]?.[_0x499a99(0x135)]?.[_0x499a99(0x111)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x499a99(0x188)]?.[_0x499a99(0x177)]?.[_0x499a99(0x111)]},'files':{'enabled':!0x1!==this[_0x499a99(0x188)]?.[_0x499a99(0x171)]?.[_0x499a99(0x111)]},'sources':this[_0x499a99(0x158)]()},this[_0x499a99(0x159)](_0x499a99(0x181),{'options':this[_0x499a99(0x17b)]});}[_0x49eb93(0x158)](){const _0x3f82d3=_0x49eb93;return this[_0x3f82d3(0x188)]?.[_0x3f82d3(0x11d)]?.[_0x3f82d3(0x146)](_0x2d833b=>({..._0x2d833b,'resources':[]}))??[];}[_0x49eb93(0x113)](){const _0x565d9=_0x49eb93,_0x250e4e=this[_0x565d9(0x104)]()||this[_0x565d9(0x17c)]();this[_0x565d9(0x17b)][_0x565d9(0x135)][_0x565d9(0x17f)]=_0x250e4e,this[_0x565d9(0x159)](_0x565d9(0x181),{'options':this[_0x565d9(0x17b)]});}[_0x49eb93(0x13c)](_0x189e19){const _0x92b3a0=_0x49eb93;for(const _0x5f5002 of this[_0x92b3a0(0x143)][_0x92b3a0(0x151)]())if(_0x5f5002[_0x92b3a0(0x110)]===_0x189e19)return!0x0;for(const _0x3f28b7 of this[_0x92b3a0(0x115)][_0x92b3a0(0x151)]())if(_0x3f28b7[_0x92b3a0(0x110)]===_0x189e19)return!0x0;return!0x1;}[_0x49eb93(0x14c)](_0x6967e2){const _0x24a98a=_0x49eb93,_0x404ea7=[];for(const _0x17a9aa of this[_0x24a98a(0x17b)][_0x24a98a(0x11d)]){_0x17a9aa[_0x24a98a(0x17d)][_0x24a98a(0x161)](_0x372049=>_0x372049['id']===_0x6967e2)&&_0x404ea7[_0x24a98a(0x149)](_0x17a9aa['id']);}return 0x0===_0x404ea7[_0x24a98a(0x126)]?null:_0x404ea7;}[_0x49eb93(0x15e)](_0x5cdb05,_0x157eea,_0x1bb8a3){const _0x2ae1ae=_0x49eb93,_0x21312d=this[_0x2ae1ae(0x17b)][_0x2ae1ae(0x11d)][_0x2ae1ae(0x161)](_0x12e51b=>_0x12e51b['id']===_0x5cdb05);if(!_0x21312d)return;const _0xc8c83c=_0x21312d[_0x2ae1ae(0x17d)][_0x2ae1ae(0x161)](_0x2e8595=>_0x2e8595['id']===_0x157eea);_0xc8c83c&&(_0xc8c83c[_0x2ae1ae(0x155)]=_0x1bb8a3,this[_0x2ae1ae(0x159)](_0x2ae1ae(0x13f),{'sourceId':_0x5cdb05,'resourceId':_0x157eea,'isInContext':_0x1bb8a3}));}[_0x49eb93(0x15f)](_0xf02177){const _0x4a4823=_0x49eb93;this[_0x4a4823(0x11c)][_0x4a4823(0x14a)](_0xf02177,!0x0),this[_0x4a4823(0x11c)][_0x4a4823(0x12e)]&&this[_0x4a4823(0x159)](_0x4a4823(0x154),{'isUploadInProgress':!0x0});}[_0x49eb93(0x170)](_0x4d72fa){const _0x2f7554=_0x49eb93;this[_0x2f7554(0x11c)][_0x2f7554(0x148)](_0x4d72fa),0x0===this[_0x2f7554(0x11c)][_0x2f7554(0x12e)]&&this[_0x2f7554(0x159)](_0x2f7554(0x154),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3d8b17=_0x7e14;(function(_0x9f2140,_0x2a6829){const _0x40baaa=_0x7e14,_0x2fd8f1=_0x9f2140();while(!![]){try{const _0x141d9e=parseInt(_0x40baaa(0x18c))/0x1+parseInt(_0x40baaa(0x1b9))/0x2+-parseInt(_0x40baaa(0x1b2))/0x3*(parseInt(_0x40baaa(0x17d))/0x4)+-parseInt(_0x40baaa(0x19a))/0x5+-parseInt(_0x40baaa(0x189))/0x6*(parseInt(_0x40baaa(0x161))/0x7)+-parseInt(_0x40baaa(0x177))/0x8+parseInt(_0x40baaa(0x1aa))/0x9*(parseInt(_0x40baaa(0x15e))/0xa);if(_0x141d9e===_0x2a6829)break;else _0x2fd8f1['push'](_0x2fd8f1['shift']());}catch(_0x3b4eb3){_0x2fd8f1['push'](_0x2fd8f1['shift']());}}}(_0x50b5,0xbf467));function _0x50b5(){const _0x4de6f8=['updateCurrentDocument','isCurrentDocumentInContext','getConversation','modification-delta','destroy','3763730zDzJkO','sessionId','ai-chat-conversation-already-started','7ApVdRh','reset','startConversation','error','getAll','getInteraction','getDocumentContext','hasOwn','contextItems','chatCapabilities','model','_extractContextItems','attributes','isAvailable','lastInteraction','selectedModel','interactions','getCapabilitiesConfig','ai-chat-conversation-init-from-id-failed','ai-chat-handle-user-conversation-not-initialized','_processMessagesToInteractions','addFilesToContext','12489240xfEKkC','fire','group','indexOf','conversationInitialized','addUrlToContext','3988888wsyySR','conversationStarted','addSelectionToContext','getAvailableModels','ai-chat-conversation-set-model-null','createReply','removeInteraction','ai-chat-conversation-set-model-not-available','addResourceToContext','options','reasoning','text','5786448ETQuLt','ai-chat-conversation-start-failed','modelSelected','472397aUwLXN','stop','content','webSearch','getEditor','ai-chat-conversation-init-failed','delegate','getPendingContextItems','conversationId','message','appendContent','addToConversationContext','find','prompt','5632320XlGEPD','toggleWebSearch','isStarted','currentInteraction','loadSourceResources','ai-chat-handle-user-interaction-already-in-progress','toLowerCase','interactionCreated','currentReply','removeSelectionFromContext','createInteraction','init','quickActionData','capabilities','user','toggleReasoning','117hqVSGO','push','role','title','connector','set','isSelectionInContext','type','3kfqjYP','length','chatContext','load','isCurrentDocumentInConversation','updateCurrentDocumentInContext','text-delta','134932mXxBug','getCurrentDocumentContext','setModel','stack','chatModels','assistant','getModel','fetchConversationMessages','removeFromContext','selectedModelId','splice','ai-chat-conversation-start-no-model-selected','handleUserInteraction','getMessages','setConversationTitle','start','populateFromMessage','fetchConversation','addCurrentDocumentToContext'];_0x50b5=function(){return _0x4de6f8;};return _0x50b5();}import{CKEditorError as _0x5cd399,EmitterMixin as _0x4ccff6,logWarning as _0x4c944b}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b5fbe}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x31de19,AI_CONTEXT_MODEL_EVENT_NAMES as _0x8b9e8b}from'./aichatcontext.js';function _0x7e14(_0x19fbe8,_0x7e7b06){const _0x50b520=_0x50b5();return _0x7e14=function(_0x7e14e7,_0x4ed6ee){_0x7e14e7=_0x7e14e7-0x147;let _0x39d9fd=_0x50b520[_0x7e14e7];return _0x39d9fd;},_0x7e14(_0x19fbe8,_0x7e7b06);}import{AICapabilities as _0x1f24d1,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b0eb5}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x111896}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ccff6(){['id'];[_0x3d8b17(0x19c)]=!0x1;[_0x3d8b17(0x171)]=[];[_0x3d8b17(0x19d)];[_0x3d8b17(0x170)];[_0x3d8b17(0x1ae)];[_0x3d8b17(0x186)];constructor(_0x530b0f){const _0x4ac02a=_0x3d8b17;super(),this[_0x4ac02a(0x186)]=_0x530b0f,this[_0x4ac02a(0x1ae)]=_0x530b0f[_0x4ac02a(0x1ae)],this[_0x4ac02a(0x14a)]=_0x530b0f[_0x4ac02a(0x14a)],this['id']=_0x530b0f[_0x4ac02a(0x194)];}async[_0x3d8b17(0x1a5)](_0x16b680){const _0x1b6bea=_0x3d8b17;try{this[_0x1b6bea(0x1b4)]=new _0x31de19({'connector':this[_0x1b6bea(0x1ae)],'config':_0x16b680,'ownerId':this['id']}),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x192)](..._0x8b9e8b)['to'](this),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x1a5)](),this[_0x1b6bea(0x16a)]=new _0x1f24d1(),this[_0x1b6bea(0x16a)][_0x1b6bea(0x192)](..._0x5b0eb5)['to'](this),this[_0x1b6bea(0x16a)][_0x1b6bea(0x1a5)]();const _0x2c2c5b=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x180)]();this[_0x1b6bea(0x178)](_0x1b6bea(0x17b),{'availableModels':_0x2c2c5b});const _0x25fc41=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x14c)](this[_0x1b6bea(0x186)][_0x1b6bea(0x14f)]);_0x25fc41&&await this[_0x1b6bea(0x148)](_0x25fc41);}catch(_0x443ec2){const _0x4e0f8c=new _0x5cd399(_0x1b6bea(0x191),null,{'message':_0x443ec2[_0x1b6bea(0x195)]});_0x4e0f8c[_0x1b6bea(0x149)]=_0x443ec2[_0x1b6bea(0x149)],this[_0x1b6bea(0x178)](_0x1b6bea(0x164),{'error':_0x4e0f8c});}}async[_0x3d8b17(0x155)](){const _0x5865d5=_0x3d8b17;if(this[_0x5865d5(0x19c)])throw new _0x5cd399(_0x5865d5(0x160),null,{'conversation':this});if(!this[_0x5865d5(0x170)])throw new _0x5cd399(_0x5865d5(0x151),null,{'conversation':this});try{const {id:_0x3fbd63}=await this[_0x5865d5(0x1ae)][_0x5865d5(0x163)](this['id'],this[_0x5865d5(0x186)][_0x5865d5(0x179)])[_0x5865d5(0x15b)]();this['id']=_0x3fbd63,this[_0x5865d5(0x19c)]=!0x0,this[_0x5865d5(0x178)](_0x5865d5(0x17e),{'conversationId':this['id'],'selectedModel':this[_0x5865d5(0x170)]});}catch(_0x22f4a1){const _0x3476d6=new _0x5cd399(_0x5865d5(0x18a),null,{'message':_0x22f4a1[_0x5865d5(0x195)]});_0x3476d6[_0x5865d5(0x149)]=_0x22f4a1[_0x5865d5(0x149)],this[_0x5865d5(0x178)](_0x5865d5(0x164),{'error':_0x3476d6});}}async[_0x3d8b17(0x1b5)](_0x24df5c,_0x2e77e9){const _0x345c31=_0x3d8b17;try{const _0x3c8dfc=await this[_0x345c31(0x1ae)][_0x345c31(0x157)](_0x24df5c)[_0x345c31(0x15b)](),_0x3bfa42=await this[_0x345c31(0x1ae)][_0x345c31(0x14d)](_0x24df5c)[_0x345c31(0x153)](),_0x45ab4a=_0x3bfa42[0x0][_0x345c31(0x16b)];this[_0x345c31(0x19c)]=!0x0,this['id']=_0x3c8dfc['id'],_0x345c31(0x1ad)in _0x3c8dfc?this[_0x345c31(0x178)](_0x345c31(0x154),_0x3c8dfc[_0x345c31(0x1ad)],!0x0):this[_0x345c31(0x178)](_0x345c31(0x154),'',!0x0);const _0x4d7892=(await this[_0x345c31(0x14a)][_0x345c31(0x165)]())[_0x345c31(0x198)](_0x39ca9a=>_0x39ca9a['id'][_0x345c31(0x1a0)]()===_0x45ab4a[_0x345c31(0x1a0)]());return this[_0x345c31(0x170)]=_0x4d7892,this[_0x345c31(0x178)](_0x345c31(0x18b),{'selectedModel':_0x4d7892,'isDisabled':!0x0}),await this[_0x345c31(0x175)](_0x3bfa42,_0x2e77e9,_0x45ab4a),this[_0x345c31(0x19d)]=void 0x0,this;}catch(_0x4a4d42){const _0x133d11=new _0x5cd399(_0x345c31(0x173),null,{'message':_0x4a4d42[_0x345c31(0x195)],'conversationId':_0x24df5c});throw _0x133d11[_0x345c31(0x149)]=_0x4a4d42[_0x345c31(0x149)],this[_0x345c31(0x178)](_0x345c31(0x164),{'error':_0x133d11}),_0x133d11;}}async[_0x3d8b17(0x175)](_0x5c76b8,_0x4929ea,_0x267c2c){const _0x5d4ffb=_0x3d8b17;let _0x202122;for(const _0x39d162 of _0x5c76b8)if(_0x5d4ffb(0x1a8)===_0x39d162[_0x5d4ffb(0x1ac)]){const _0x4f1e05=await this[_0x5d4ffb(0x16c)](_0x39d162),_0x38fbdd={'isReasoningEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x187)),'isWebSearchEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x18f))};_0x202122=this[_0x5d4ffb(0x1a4)]({'userMessage':_0x39d162[_0x5d4ffb(0x199)],'contextItems':_0x4f1e05,'capabilities':_0x38fbdd,'modelId':_0x267c2c,'quickActionData':_0x39d162[_0x5d4ffb(0x16d)]?.[_0x5d4ffb(0x1a6)]}),this[_0x5d4ffb(0x19d)]=_0x202122,this[_0x5d4ffb(0x1b4)][_0x5d4ffb(0x197)](this[_0x5d4ffb(0x19d)][_0x5d4ffb(0x169)]);}else{if(_0x5d4ffb(0x14b)===_0x39d162[_0x5d4ffb(0x1ac)]&&_0x202122)for(const _0x21e6cc of _0x39d162[_0x5d4ffb(0x18e)]){const _0x468299=_0x5d4ffb(0x188)===_0x21e6cc[_0x5d4ffb(0x1b1)]?_0x5d4ffb(0x1b8):_0x5d4ffb(0x15c),_0x274bfb=_0x202122[_0x5d4ffb(0x167)]()?.[_0x5d4ffb(0x15f)]!==_0x4929ea;_0x202122[_0x5d4ffb(0x1a2)]=_0x202122[_0x5d4ffb(0x182)]({'type':_0x468299,'isDone':!0x0,'interactionId':_0x202122['id'],'areActionsDisabled':_0x274bfb}),_0x202122[_0x5d4ffb(0x1a2)][_0x5d4ffb(0x196)](_0x21e6cc[_0x5d4ffb(0x18e)]);}}}async[_0x3d8b17(0x16c)](_0x2a36be){const _0x5949fb=_0x3d8b17,_0x2248ab=new Map();if(!_0x2a36be[_0x5949fb(0x18e)])return _0x2248ab;for(const _0x13bc13 of _0x2a36be[_0x5949fb(0x18e)]){const _0x123321=await this[_0x5949fb(0x1b4)][_0x5949fb(0x156)](_0x13bc13);_0x123321&&_0x2248ab[_0x5949fb(0x1af)](_0x123321['id'],_0x123321);}return _0x2248ab;}async[_0x3d8b17(0x152)]({userMessage:_0x18d782,quickActionData:_0x39c718}){const _0x5024b4=_0x3d8b17;if(!this[_0x5024b4(0x19c)])throw new _0x5cd399(_0x5024b4(0x174),null,{'conversation':this});if(this[_0x5024b4(0x19d)])throw new _0x5cd399(_0x5024b4(0x19f),null,{'conversation':this});try{const _0x1b0a41=this[_0x5024b4(0x1b4)][_0x5024b4(0x193)](),_0x473d15=this[_0x5024b4(0x16a)][_0x5024b4(0x172)](),_0x48d51c=this[_0x5024b4(0x170)]['id'];this[_0x5024b4(0x19d)]=this[_0x5024b4(0x1a4)]({'userMessage':_0x18d782,'contextItems':_0x1b0a41,'capabilities':_0x473d15,'modelId':_0x48d51c,'quickActionData':_0x39c718}),await this[_0x5024b4(0x19d)][_0x5024b4(0x155)](),this[_0x5024b4(0x1b4)][_0x5024b4(0x197)](this[_0x5024b4(0x19d)][_0x5024b4(0x169)]);}catch(_0xf05fc5){this[_0x5024b4(0x178)](_0x5024b4(0x164),{'interactionId':this[_0x5024b4(0x19d)]?this[_0x5024b4(0x19d)]['id']:void 0x0,'error':_0xf05fc5});}finally{this[_0x5024b4(0x19d)]?.[_0x5024b4(0x18d)](),this[_0x5024b4(0x19d)]=void 0x0;}}[_0x3d8b17(0x1a4)]({userMessage:_0x782412,contextItems:_0x586aed,capabilities:_0x531c49,modelId:_0x523ddc,quickActionData:_0x475e31}){const _0x52011b=_0x3d8b17,_0x303b67=new _0x111896({'userMessage':_0x782412,'contextItems':_0x586aed,'capabilities':_0x531c49,'conversationId':this['id'],'connector':this[_0x52011b(0x1ae)],'editor':this[_0x52011b(0x186)][_0x52011b(0x190)]&&this[_0x52011b(0x186)][_0x52011b(0x190)](),'model':_0x523ddc,'quickActionData':_0x475e31});return _0x303b67[_0x52011b(0x192)](..._0x4b5fbe)['to'](this),this[_0x52011b(0x171)][_0x52011b(0x1ab)](_0x303b67),this[_0x52011b(0x178)](_0x52011b(0x1a1),_0x303b67),_0x303b67;}[_0x3d8b17(0x166)](_0x527be4){const _0x42d38a=_0x3d8b17;return this[_0x42d38a(0x171)][_0x42d38a(0x198)](_0x56a59b=>_0x56a59b['id']===_0x527be4);}[_0x3d8b17(0x183)](_0x5a42f2){const _0x5e79f8=_0x3d8b17,_0x55fc1a=this[_0x5e79f8(0x166)](_0x5a42f2);_0x55fc1a&&(_0x55fc1a[_0x5e79f8(0x15d)](),this[_0x5e79f8(0x171)][_0x5e79f8(0x150)](this[_0x5e79f8(0x171)][_0x5e79f8(0x17a)](_0x55fc1a),0x1));}get[_0x3d8b17(0x16f)](){const _0x1fbc8e=_0x3d8b17;return this[_0x1fbc8e(0x171)][this[_0x1fbc8e(0x171)][_0x1fbc8e(0x1b3)]-0x1];}[_0x3d8b17(0x158)](_0x17f94d){const _0x2c37f8=_0x3d8b17;this[_0x2c37f8(0x1b4)][_0x2c37f8(0x158)](_0x17f94d);}async[_0x3d8b17(0x1b7)]({content:_0x36b959,version:_0x58b395,sessionId:_0x584c71,selections:_0x4681fe}){const _0x9ee41a=_0x3d8b17;await this[_0x9ee41a(0x1b4)][_0x9ee41a(0x159)](_0x36b959,_0x58b395,_0x584c71,_0x4681fe);}[_0x3d8b17(0x147)](){const _0xc1b83b=_0x3d8b17;return this[_0xc1b83b(0x19d)]?.[_0xc1b83b(0x167)]()?.[_0xc1b83b(0x18e)]||'';}[_0x3d8b17(0x17f)](_0x14b905){const _0x2ec0eb=_0x3d8b17;this[_0x2ec0eb(0x1b4)][_0x2ec0eb(0x17f)](_0x14b905);}[_0x3d8b17(0x1a3)](){const _0x43b5f9=_0x3d8b17;this[_0x43b5f9(0x1b4)][_0x43b5f9(0x1a3)]();}[_0x3d8b17(0x176)](_0x3422ef){const _0x425e63=_0x3d8b17;this[_0x425e63(0x1b4)][_0x425e63(0x176)](_0x3422ef);}[_0x3d8b17(0x17c)](_0x37ec73){const _0x17d899=_0x3d8b17;this[_0x17d899(0x1b4)][_0x17d899(0x17c)](_0x37ec73);}[_0x3d8b17(0x185)](_0x15be05,_0x383728){const _0x18e68a=_0x3d8b17;this[_0x18e68a(0x1b4)][_0x18e68a(0x185)](_0x15be05,_0x383728);}[_0x3d8b17(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95){const _0xa7980a=_0x3d8b17;return this[_0xa7980a(0x1b4)][_0xa7980a(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95);}[_0x3d8b17(0x14e)](_0x216de7){const _0x5ee816=_0x3d8b17;this[_0x5ee816(0x1b4)][_0x5ee816(0x14e)](_0x216de7);}[_0x3d8b17(0x19b)](){const _0x5be922=_0x3d8b17;this[_0x5be922(0x16a)][_0x5be922(0x19b)]();}[_0x3d8b17(0x1a9)](){const _0x562973=_0x3d8b17;this[_0x562973(0x16a)][_0x562973(0x1a9)]();}[_0x3d8b17(0x15a)](){const _0xc27dc0=_0x3d8b17;return this[_0xc27dc0(0x1b4)][_0xc27dc0(0x15a)]();}[_0x3d8b17(0x1b6)](){const _0x2c99ba=_0x3d8b17;return this[_0x2c99ba(0x1b4)][_0x2c99ba(0x1b6)]();}[_0x3d8b17(0x1b0)](){const _0x51e7d3=_0x3d8b17;return this[_0x51e7d3(0x1b4)][_0x51e7d3(0x1b0)]();}async[_0x3d8b17(0x148)](_0x10f5be){const _0xd154db=_0x3d8b17;_0x10f5be?!0x1===await this[_0xd154db(0x14a)][_0xd154db(0x16e)](_0x10f5be)&&(_0x4c944b(_0xd154db(0x184),{'conversation':this,'model':_0x10f5be}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]):(_0x4c944b(_0xd154db(0x181),{'conversation':this}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]),_0x10f5be['id']!==this[_0xd154db(0x170)]?.['id']&&(this[_0xd154db(0x170)]=_0x10f5be,this[_0xd154db(0x16a)][_0xd154db(0x162)](),this[_0xd154db(0x178)](_0xd154db(0x18b),{'selectedModel':_0x10f5be}));}}
|
|
23
|
+
const _0x2502e4=_0x541c;(function(_0x251d08,_0x5ca952){const _0x5cffd1=_0x541c,_0x1fb241=_0x251d08();while(!![]){try{const _0x9fa013=-parseInt(_0x5cffd1(0x154))/0x1*(-parseInt(_0x5cffd1(0x1b0))/0x2)+-parseInt(_0x5cffd1(0x19d))/0x3+-parseInt(_0x5cffd1(0x1b1))/0x4+-parseInt(_0x5cffd1(0x195))/0x5*(parseInt(_0x5cffd1(0x1a9))/0x6)+-parseInt(_0x5cffd1(0x17b))/0x7+-parseInt(_0x5cffd1(0x1b4))/0x8*(parseInt(_0x5cffd1(0x1aa))/0x9)+parseInt(_0x5cffd1(0x1af))/0xa;if(_0x9fa013===_0x5ca952)break;else _0x1fb241['push'](_0x1fb241['shift']());}catch(_0x482892){_0x1fb241['push'](_0x1fb241['shift']());}}}(_0x181d,0x21be2));import{CKEditorError as _0xbae659,EmitterMixin as _0x4d7429,logWarning as _0x191c41}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5d3ffa}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x542f25,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53528d}from'./aichatcontext.js';function _0x541c(_0x8fbff8,_0x35b2c1){const _0x181d3d=_0x181d();return _0x541c=function(_0x541c58,_0x467e1e){_0x541c58=_0x541c58-0x144;let _0x2750bd=_0x181d3d[_0x541c58];return _0x2750bd;},_0x541c(_0x8fbff8,_0x35b2c1);}import{AICapabilities as _0x180c28,CAPABILITIES_MODEL_EVENT_NAMES as _0x481def}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x241e46}from'./aichatinteraction.js';export class AIChatConversation extends _0x4d7429(){['id'];[_0x2502e4(0x161)]=!0x1;[_0x2502e4(0x14e)]=[];[_0x2502e4(0x147)];[_0x2502e4(0x145)];[_0x2502e4(0x170)];[_0x2502e4(0x1ad)];constructor(_0x1d0c8a){const _0x253bc3=_0x2502e4;super(),this[_0x253bc3(0x1ad)]=_0x1d0c8a,this[_0x253bc3(0x170)]=_0x1d0c8a[_0x253bc3(0x170)],this[_0x253bc3(0x1a7)]=_0x1d0c8a[_0x253bc3(0x1a7)],this['id']=_0x1d0c8a[_0x253bc3(0x175)];}async[_0x2502e4(0x183)](_0x4b041b){const _0x52e95c=_0x2502e4;try{this[_0x52e95c(0x16f)]=new _0x542f25({'connector':this[_0x52e95c(0x170)],'config':_0x4b041b,'ownerId':this['id']}),this[_0x52e95c(0x16f)][_0x52e95c(0x18a)](..._0x53528d)['to'](this),this[_0x52e95c(0x16f)][_0x52e95c(0x183)](),this[_0x52e95c(0x156)]=new _0x180c28(),this[_0x52e95c(0x156)][_0x52e95c(0x18a)](..._0x481def)['to'](this),this[_0x52e95c(0x156)][_0x52e95c(0x183)]();const _0x29b30d=await this[_0x52e95c(0x1a7)][_0x52e95c(0x1a2)]();this[_0x52e95c(0x18b)](_0x52e95c(0x1a3),{'availableModels':_0x29b30d});const _0xdcf635=await this[_0x52e95c(0x1a7)][_0x52e95c(0x168)](this[_0x52e95c(0x1ad)][_0x52e95c(0x1a1)]);_0xdcf635&&await this[_0x52e95c(0x144)](_0xdcf635);}catch(_0x5a4a51){const _0x3bb1a8=new _0xbae659(_0x52e95c(0x16d),null,{'message':_0x5a4a51[_0x52e95c(0x181)]});_0x3bb1a8[_0x52e95c(0x17c)]=_0x5a4a51[_0x52e95c(0x17c)],this[_0x52e95c(0x18b)](_0x52e95c(0x177),{'error':_0x3bb1a8});}}async[_0x2502e4(0x17a)](){const _0x193e0e=_0x2502e4;if(this[_0x193e0e(0x161)])throw new _0xbae659(_0x193e0e(0x16c),null,{'conversation':this});if(!this[_0x193e0e(0x145)])throw new _0xbae659(_0x193e0e(0x1a8),null,{'conversation':this});try{const {id:_0x44f102}=await this[_0x193e0e(0x170)][_0x193e0e(0x159)](this['id'],this[_0x193e0e(0x1ad)][_0x193e0e(0x182)])[_0x193e0e(0x169)]();this['id']=_0x44f102,this[_0x193e0e(0x161)]=!0x0,this[_0x193e0e(0x18b)](_0x193e0e(0x174),{'conversationId':this['id'],'selectedModel':this[_0x193e0e(0x145)]});}catch(_0x4aafbe){const _0x9506b7=new _0xbae659(_0x193e0e(0x198),null,{'message':_0x4aafbe[_0x193e0e(0x181)]});_0x9506b7[_0x193e0e(0x17c)]=_0x4aafbe[_0x193e0e(0x17c)],this[_0x193e0e(0x18b)](_0x193e0e(0x177),{'error':_0x9506b7});}}async[_0x2502e4(0x19c)](_0x215a81,_0x3d3101){const _0x1260ba=_0x2502e4;try{const _0x5c0658=await this[_0x1260ba(0x170)][_0x1260ba(0x176)](_0x215a81)[_0x1260ba(0x169)](),_0x5a84b0=await this[_0x1260ba(0x170)][_0x1260ba(0x187)](_0x215a81)[_0x1260ba(0x19b)](),_0x40781d=_0x5a84b0[0x0][_0x1260ba(0x16e)];this[_0x1260ba(0x161)]=!0x0,this['id']=_0x5c0658['id'],_0x1260ba(0x199)in _0x5c0658?this[_0x1260ba(0x18b)](_0x1260ba(0x173),_0x5c0658[_0x1260ba(0x199)],!0x0):this[_0x1260ba(0x18b)](_0x1260ba(0x173),'',!0x0);const _0x5ed935=(await this[_0x1260ba(0x1a7)][_0x1260ba(0x148)]())[_0x1260ba(0x1b6)](_0x6fafab=>_0x6fafab['id'][_0x1260ba(0x1a4)]()===_0x40781d[_0x1260ba(0x1a4)]());return this[_0x1260ba(0x145)]=_0x5ed935,this[_0x1260ba(0x18b)](_0x1260ba(0x17f),{'selectedModel':_0x5ed935,'isDisabled':!0x0}),await this[_0x1260ba(0x1b5)](_0x5a84b0,_0x3d3101,_0x40781d),this[_0x1260ba(0x147)]=void 0x0,this;}catch(_0x405e29){const _0x2dbf3e=new _0xbae659(_0x1260ba(0x1a5),null,{'message':_0x405e29[_0x1260ba(0x181)],'conversationId':_0x215a81});throw _0x2dbf3e[_0x1260ba(0x17c)]=_0x405e29[_0x1260ba(0x17c)],this[_0x1260ba(0x18b)](_0x1260ba(0x177),{'error':_0x2dbf3e}),_0x2dbf3e;}}async[_0x2502e4(0x1b5)](_0x99cc40,_0x4c93e5,_0x2b66a8){const _0x3217e4=_0x2502e4;let _0x3f5116;for(const _0x1de5fc of _0x99cc40)if(_0x3217e4(0x160)===_0x1de5fc[_0x3217e4(0x16a)]){const _0x27bd0c=await this[_0x3217e4(0x180)](_0x1de5fc),_0x42f7f9={'isReasoningEnabled':Object[_0x3217e4(0x192)](_0x1de5fc[_0x3217e4(0x149)],_0x3217e4(0x157)),'isWebSearchEnabled':Object[_0x3217e4(0x192)](_0x1de5fc[_0x3217e4(0x149)],_0x3217e4(0x194))};_0x3f5116=this[_0x3217e4(0x14d)]({'userMessage':_0x1de5fc[_0x3217e4(0x171)],'contextItems':_0x27bd0c,'capabilities':_0x42f7f9,'modelId':_0x2b66a8,'quickActionData':_0x1de5fc[_0x3217e4(0x197)]?.[_0x3217e4(0x190)]}),this[_0x3217e4(0x147)]=_0x3f5116,this[_0x3217e4(0x16f)][_0x3217e4(0x17d)](this[_0x3217e4(0x147)][_0x3217e4(0x193)]);}else{if(_0x3217e4(0x1b2)===_0x1de5fc[_0x3217e4(0x16a)]&&_0x3f5116)for(const _0x1be38d of _0x1de5fc[_0x3217e4(0x15c)]){const _0x305e6b=_0x3217e4(0x1a6)===_0x1be38d[_0x3217e4(0x14f)]?_0x3217e4(0x15a):_0x3217e4(0x19a),_0x3dfa76=_0x3f5116[_0x3217e4(0x1b3)]()?.[_0x3217e4(0x18d)]!==_0x4c93e5;_0x3f5116[_0x3217e4(0x17e)]=_0x3f5116[_0x3217e4(0x172)]({'type':_0x305e6b,'isDone':!0x0,'interactionId':_0x3f5116['id'],'areActionsDisabled':_0x3dfa76}),_0x3f5116[_0x3217e4(0x17e)][_0x3217e4(0x165)](_0x1be38d[_0x3217e4(0x15c)]);}}}async[_0x2502e4(0x180)](_0x160d39){const _0x59acaa=_0x2502e4,_0x1c1c0d=new Map();if(!_0x160d39[_0x59acaa(0x15c)])return _0x1c1c0d;for(const _0x543af2 of _0x160d39[_0x59acaa(0x15c)]){const _0x11e66b=await this[_0x59acaa(0x16f)][_0x59acaa(0x15b)](_0x543af2);_0x11e66b&&_0x1c1c0d[_0x59acaa(0x1ac)](_0x11e66b['id'],_0x11e66b);}return _0x1c1c0d;}async[_0x2502e4(0x1ae)]({userMessage:_0x545420,quickActionData:_0x516ac8}){const _0x26f1cc=_0x2502e4;if(!this[_0x26f1cc(0x161)])throw new _0xbae659(_0x26f1cc(0x14a),null,{'conversation':this});if(this[_0x26f1cc(0x147)])throw new _0xbae659(_0x26f1cc(0x15e),null,{'conversation':this});try{const _0x116614=this[_0x26f1cc(0x16f)][_0x26f1cc(0x158)](),_0x1c8d4b=this[_0x26f1cc(0x156)][_0x26f1cc(0x18f)](),_0x17bdf9=this[_0x26f1cc(0x145)]['id'];this[_0x26f1cc(0x147)]=this[_0x26f1cc(0x14d)]({'userMessage':_0x545420,'contextItems':_0x116614,'capabilities':_0x1c8d4b,'modelId':_0x17bdf9,'quickActionData':_0x516ac8}),await this[_0x26f1cc(0x147)][_0x26f1cc(0x17a)](),this[_0x26f1cc(0x16f)][_0x26f1cc(0x17d)](this[_0x26f1cc(0x147)][_0x26f1cc(0x193)]);}catch(_0x4bc3dc){this[_0x26f1cc(0x18b)](_0x26f1cc(0x177),{'interactionId':this[_0x26f1cc(0x147)]?this[_0x26f1cc(0x147)]['id']:void 0x0,'error':_0x4bc3dc});}finally{this[_0x26f1cc(0x147)]?.[_0x26f1cc(0x15f)](),this[_0x26f1cc(0x147)]=void 0x0;}}[_0x2502e4(0x14d)]({userMessage:_0xcb4b49,contextItems:_0x2dcf8c,capabilities:_0x42f8d2,modelId:_0x337eba,quickActionData:_0x36edaf}){const _0x992846=_0x2502e4,_0x4c5c81=new _0x241e46({'userMessage':_0xcb4b49,'contextItems':_0x2dcf8c,'capabilities':_0x42f8d2,'conversationId':this['id'],'connector':this[_0x992846(0x170)],'editor':this[_0x992846(0x1ad)][_0x992846(0x1a0)]&&this[_0x992846(0x1ad)][_0x992846(0x1a0)](),'model':_0x337eba,'quickActionData':_0x36edaf});return _0x4c5c81[_0x992846(0x18a)](..._0x5d3ffa)['to'](this),this[_0x992846(0x14e)][_0x992846(0x155)](_0x4c5c81),this[_0x992846(0x18b)](_0x992846(0x185),_0x4c5c81),_0x4c5c81;}[_0x2502e4(0x163)](_0x47fede){const _0xba58d7=_0x2502e4;return this[_0xba58d7(0x14e)][_0xba58d7(0x1b6)](_0x3b0f55=>_0x3b0f55['id']===_0x47fede);}[_0x2502e4(0x18e)](_0x58a223){const _0x3f1ae0=_0x2502e4,_0x47e166=this[_0x3f1ae0(0x163)](_0x58a223);_0x47e166&&(_0x47e166[_0x3f1ae0(0x146)](),this[_0x3f1ae0(0x14e)][_0x3f1ae0(0x15d)](this[_0x3f1ae0(0x14e)][_0x3f1ae0(0x153)](_0x47e166),0x1));}get[_0x2502e4(0x186)](){const _0x5b640e=_0x2502e4;return this[_0x5b640e(0x14e)][this[_0x5b640e(0x14e)][_0x5b640e(0x188)]-0x1];}[_0x2502e4(0x179)](_0x416f3a){const _0x549750=_0x2502e4;this[_0x549750(0x16f)][_0x549750(0x179)](_0x416f3a);}async[_0x2502e4(0x1ab)]({content:_0x1ce3b8,version:_0x216317,sessionId:_0x4cf3bb,selections:_0x46785a}){const _0x3f497d=_0x2502e4;await this[_0x3f497d(0x16f)][_0x3f497d(0x162)](_0x1ce3b8,_0x216317,_0x4cf3bb,_0x46785a);}[_0x2502e4(0x152)](){const _0xa4d499=_0x2502e4;return this[_0xa4d499(0x147)]?.[_0xa4d499(0x1b3)]()?.[_0xa4d499(0x15c)]||'';}[_0x2502e4(0x19e)](_0x4d9a2d){const _0xc70521=_0x2502e4;this[_0xc70521(0x16f)][_0xc70521(0x19e)](_0x4d9a2d);}[_0x2502e4(0x18c)](){const _0x208b54=_0x2502e4;this[_0x208b54(0x16f)][_0x208b54(0x18c)]();}[_0x2502e4(0x14b)](_0x50ca40){const _0x1605be=_0x2502e4;this[_0x1605be(0x16f)][_0x1605be(0x14b)](_0x50ca40);}[_0x2502e4(0x150)](_0x47e9ce){const _0x604695=_0x2502e4;this[_0x604695(0x16f)][_0x604695(0x150)](_0x47e9ce);}[_0x2502e4(0x191)](_0x3a31df,_0xb5a720){const _0x61f38f=_0x2502e4;this[_0x61f38f(0x16f)][_0x61f38f(0x191)](_0x3a31df,_0xb5a720);}[_0x2502e4(0x166)](_0x216113,_0x1b0d72,_0x4696a1){const _0x5ce6b3=_0x2502e4;return this[_0x5ce6b3(0x16f)][_0x5ce6b3(0x166)](_0x216113,_0x1b0d72,_0x4696a1);}[_0x2502e4(0x184)](_0x8bff9){const _0x1ebf58=_0x2502e4;this[_0x1ebf58(0x16f)][_0x1ebf58(0x184)](_0x8bff9);}[_0x2502e4(0x164)](){const _0x2d2901=_0x2502e4;this[_0x2d2901(0x156)][_0x2d2901(0x164)]();}[_0x2502e4(0x196)](){const _0x25b8d6=_0x2502e4;this[_0x25b8d6(0x156)][_0x25b8d6(0x196)]();}[_0x2502e4(0x14c)](){const _0x41c650=_0x2502e4;return this[_0x41c650(0x16f)][_0x41c650(0x14c)]();}[_0x2502e4(0x19f)](){const _0x1ae130=_0x2502e4;return this[_0x1ae130(0x16f)][_0x1ae130(0x19f)]();}[_0x2502e4(0x167)](){const _0x4f0290=_0x2502e4;return this[_0x4f0290(0x16f)][_0x4f0290(0x167)]();}async[_0x2502e4(0x144)](_0x19acb7){const _0x54086b=_0x2502e4;_0x19acb7?!0x1===await this[_0x54086b(0x1a7)][_0x54086b(0x189)](_0x19acb7)&&(_0x191c41(_0x54086b(0x151),{'conversation':this,'model':_0x19acb7}),_0x19acb7=(await this[_0x54086b(0x1a7)][_0x54086b(0x1a2)]())[0x0]):(_0x191c41(_0x54086b(0x16b),{'conversation':this}),_0x19acb7=(await this[_0x54086b(0x1a7)][_0x54086b(0x1a2)]())[0x0]),_0x19acb7['id']!==this[_0x54086b(0x145)]?.['id']&&(this[_0x54086b(0x145)]=_0x19acb7,this[_0x54086b(0x156)][_0x54086b(0x178)](),this[_0x54086b(0x18b)](_0x54086b(0x17f),{'selectedModel':_0x19acb7}));}}function _0x181d(){const _0x39ecfb=['1632659rVSbIh','stack','addToConversationContext','currentReply','modelSelected','_extractContextItems','message','group','init','removeFromContext','interactionCreated','lastInteraction','fetchConversationMessages','length','isAvailable','delegate','fire','removeSelectionFromContext','sessionId','removeInteraction','getCapabilitiesConfig','quickActionData','addResourceToContext','hasOwn','contextItems','webSearch','395bSvckf','toggleReasoning','attributes','ai-chat-conversation-start-failed','title','modification-delta','getMessages','load','455949BpXclg','addSelectionToContext','isCurrentDocumentInConversation','getEditor','selectedModelId','getAvailableModels','conversationInitialized','toLowerCase','ai-chat-conversation-init-from-id-failed','text','chatModels','ai-chat-conversation-start-no-model-selected','8010CCSEnF','9pNTxVw','updateCurrentDocumentInContext','set','options','handleUserInteraction','7005750FSywop','42134PXOjiw','492368KobBSr','assistant','getDocumentContext','94312IvURjm','_processMessagesToInteractions','find','setModel','selectedModel','destroy','currentInteraction','getAll','capabilities','ai-chat-handle-user-conversation-not-initialized','addFilesToContext','isCurrentDocumentInContext','createInteraction','interactions','type','addUrlToContext','ai-chat-conversation-set-model-not-available','getCurrentDocumentContext','indexOf','3hUUcAb','push','chatCapabilities','reasoning','getPendingContextItems','startConversation','text-delta','populateFromMessage','content','splice','ai-chat-handle-user-interaction-already-in-progress','stop','user','isStarted','updateCurrentDocument','getInteraction','toggleWebSearch','appendContent','loadSourceResources','isSelectionInContext','getModel','getConversation','role','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','ai-chat-conversation-init-failed','model','chatContext','connector','prompt','createReply','setConversationTitle','conversationStarted','conversationId','fetchConversation','error','reset','addCurrentDocumentToContext','start'];_0x181d=function(){return _0x39ecfb;};return _0x181d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2d52d2=_0x15ec;(function(_0x4a4c60,_0x4b0ca8){var _0x1be69e=_0x15ec,_0x4dc78c=_0x4a4c60();while(!![]){try{var _0x326c68=-parseInt(_0x1be69e(0x167))/0x1*(-parseInt(_0x1be69e(0x173))/0x2)+parseInt(_0x1be69e(0x174))/0x3+-parseInt(_0x1be69e(0x168))/0x4*(-parseInt(_0x1be69e(0x16c))/0x5)+parseInt(_0x1be69e(0x16a))/0x6*(parseInt(_0x1be69e(0x17a))/0x7)+parseInt(_0x1be69e(0x171))/0x8*(-parseInt(_0x1be69e(0x166))/0x9)+-parseInt(_0x1be69e(0x179))/0xa+-parseInt(_0x1be69e(0x16e))/0xb;if(_0x326c68===_0x4b0ca8)break;else _0x4dc78c['push'](_0x4dc78c['shift']());}catch(_0x19d6ab){_0x4dc78c['push'](_0x4dc78c['shift']());}}}(_0x2050,0x2504f));import{AICapabilities as _0x16536e}from'../../aicore/model/aicapabilities.js';function _0x2050(){var _0x44e06f=['contextItems','1991590JxqetF','14gCHLBv','get','model','capabilities','sendRequest','1098efChyC','39953npkjhW','463836glvwvl','current-document','787914JAxIDG','getCapabilitiesRequestData','5LxfZZC','mapContextItemsToRequestData','734855qpCsTf','quickActionData','queryAssistant','12312RcHUWV','userMessage','6Frqdxk','320691GcyCeO','conversationId','connector','getDocumentContext'];_0x2050=function(){return _0x44e06f;};return _0x2050();}function _0x15ec(_0x296a6e,_0x1c9f0f){var _0x20505b=_0x2050();return _0x15ec=function(_0x15ec7e,_0x1ff685){_0x15ec7e=_0x15ec7e-0x164;var _0x390f69=_0x20505b[_0x15ec7e];return _0x390f69;},_0x15ec(_0x296a6e,_0x1c9f0f);}import{AIInteraction as _0x588146}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x175508}from'./aichatcontext.js';export class AIChatInteraction extends _0x588146{[_0x2d52d2(0x172)];[_0x2d52d2(0x175)];[_0x2d52d2(0x178)]=new Map();[_0x2d52d2(0x17c)];[_0x2d52d2(0x16f)];constructor(_0x501632){var _0x8a28e=_0x2d52d2;super(_0x501632),this[_0x8a28e(0x175)]=_0x501632[_0x8a28e(0x175)],this[_0x8a28e(0x178)]=_0x501632[_0x8a28e(0x178)],this[_0x8a28e(0x164)]=_0x501632[_0x8a28e(0x164)],this[_0x8a28e(0x172)]=_0x501632[_0x8a28e(0x172)],this[_0x8a28e(0x17c)]=_0x501632[_0x8a28e(0x17c)],this[_0x8a28e(0x16f)]=_0x501632[_0x8a28e(0x16f)];}async[_0x2d52d2(0x165)](){var _0x441012=_0x2d52d2;return this[_0x441012(0x176)][_0x441012(0x170)]({'message':this[_0x441012(0x172)],'conversationId':this[_0x441012(0x175)],'parts':_0x175508[_0x441012(0x16d)](this[_0x441012(0x178)]),'capabilities':_0x16536e[_0x441012(0x16b)](this[_0x441012(0x164)]),'model':this[_0x441012(0x17c)],'quickActionData':this[_0x441012(0x16f)]});}[_0x2d52d2(0x177)](){var _0x4e7c08=_0x2d52d2;return this[_0x4e7c08(0x178)][_0x4e7c08(0x17b)](_0x4e7c08(0x169));}}
|