@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +18 -5
- package/README.md +10 -9
- 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/ckeditor5-metadata.json +24 -3
- package/dist/index-content.css +0 -1
- package/dist/index-editor.css +2648 -0
- package/dist/index.css +3047 -0
- package/dist/index.js +4 -2
- 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 +162 -1
- package/lang/translations/af.po +612 -0
- package/lang/translations/ar.po +628 -0
- package/lang/translations/ast.po +612 -0
- package/lang/translations/az.po +612 -0
- package/lang/translations/be.po +616 -0
- package/lang/translations/bg.po +612 -0
- package/lang/translations/bn.po +612 -0
- package/lang/translations/bs.po +616 -0
- package/lang/translations/ca.po +612 -0
- package/lang/translations/cs.po +616 -0
- package/lang/translations/da.po +612 -0
- package/lang/translations/de-ch.po +612 -0
- package/lang/translations/de.po +612 -0
- package/lang/translations/el.po +612 -0
- package/lang/translations/en-au.po +612 -0
- package/lang/translations/en-gb.po +612 -0
- package/lang/translations/en.po +612 -0
- package/lang/translations/eo.po +612 -0
- package/lang/translations/es-co.po +612 -0
- package/lang/translations/es.po +612 -0
- package/lang/translations/et.po +612 -0
- package/lang/translations/eu.po +612 -0
- package/lang/translations/fa.po +608 -0
- package/lang/translations/fi.po +612 -0
- package/lang/translations/fr.po +612 -0
- package/lang/translations/gl.po +612 -0
- package/lang/translations/gu.po +612 -0
- package/lang/translations/he.po +612 -0
- package/lang/translations/hi.po +612 -0
- package/lang/translations/hr.po +616 -0
- package/lang/translations/hu.po +612 -0
- package/lang/translations/hy.po +612 -0
- package/lang/translations/id.po +608 -0
- package/lang/translations/it.po +612 -0
- package/lang/translations/ja.po +608 -0
- package/lang/translations/jv.po +612 -0
- package/lang/translations/kk.po +612 -0
- package/lang/translations/km.po +608 -0
- package/lang/translations/kn.po +612 -0
- package/lang/translations/ko.po +608 -0
- package/lang/translations/ku.po +612 -0
- package/lang/translations/lt.po +616 -0
- package/lang/translations/lv.po +616 -0
- package/lang/translations/ms.po +608 -0
- package/lang/translations/nb.po +612 -0
- package/lang/translations/ne.po +612 -0
- package/lang/translations/nl.po +612 -0
- package/lang/translations/no.po +612 -0
- package/lang/translations/oc.po +612 -0
- package/lang/translations/pl.po +616 -0
- package/lang/translations/pt-br.po +612 -0
- package/lang/translations/pt.po +612 -0
- package/lang/translations/ro.po +616 -0
- package/lang/translations/ru.po +616 -0
- package/lang/translations/si.po +612 -0
- package/lang/translations/sk.po +616 -0
- package/lang/translations/sl.po +620 -0
- package/lang/translations/sq.po +612 -0
- package/lang/translations/sr-latn.po +616 -0
- package/lang/translations/sr.po +616 -0
- package/lang/translations/sv.po +612 -0
- package/lang/translations/th.po +608 -0
- package/lang/translations/ti.po +612 -0
- package/lang/translations/tk.po +612 -0
- package/lang/translations/tr.po +612 -0
- package/lang/translations/tt.po +608 -0
- package/lang/translations/ug.po +608 -0
- package/lang/translations/uk.po +616 -0
- package/lang/translations/ur.po +612 -0
- package/lang/translations/uz.po +612 -0
- package/lang/translations/vi.po +608 -0
- package/lang/translations/zh-cn.po +608 -0
- package/lang/translations/zh.po +608 -0
- package/package.json +23 -11
- package/src/aiactions/aiactions.d.ts +48 -0
- package/src/aiactions/aiactions.js +23 -0
- package/src/aiactions/model/aiactionsinteraction.d.ts +48 -0
- package/src/aiactions/model/aiactionsinteraction.js +23 -0
- package/src/aiactions/model/aiactionsreply.d.ts +15 -0
- package/src/aiactions/model/aiactionsreply.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/aitextadapter.d.ts +9 -9
- package/src/aiassistant/adapters/aitextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/awstextadapter.d.ts +36 -23
- package/src/aiassistant/adapters/awstextadapter.js +23 -0
- package/src/{adapters → aiassistant/adapters}/openaitextadapter.d.ts +38 -25
- package/src/aiassistant/adapters/openaitextadapter.js +23 -0
- package/src/{aiassistant.d.ts → aiassistant/aiassistant.d.ts} +54 -13
- package/src/aiassistant/aiassistant.js +23 -0
- package/src/aiassistant/aiassistantediting.js +23 -0
- package/src/{aiassistantui.d.ts → aiassistant/aiassistantui.d.ts} +4 -4
- package/src/aiassistant/aiassistantui.js +23 -0
- package/src/aiassistant/legacyerrors.js +23 -0
- package/src/{ui → aiassistant/ui}/aiassistantcontroller.d.ts +5 -4
- package/src/aiassistant/ui/aiassistantcontroller.js +24 -0
- package/src/{ui → aiassistant/ui}/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +23 -0
- package/src/aiassistant/ui/form/aiformerrorview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +23 -0
- package/src/{ui → aiassistant/ui}/form/prompthistory.d.ts +3 -0
- package/src/aiassistant/ui/form/prompthistory.js +23 -0
- package/src/{ui → aiassistant/ui}/showaiassistantcommand.d.ts +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.js +23 -0
- package/src/{utils → aiassistant/utils}/common-translations.d.ts +1 -1
- package/src/{utils → aiassistant/utils}/common-translations.js +1 -1
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.d.ts +2 -2
- package/src/{utils → aiassistant/utils}/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +72 -0
- package/src/aiballoon/aiballoon.js +23 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +17 -0
- package/src/aiballoon/ui/aiballoondisclaimerview.js +23 -0
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +31 -0
- package/src/aiballoon/ui/aiballoontoolbarview.js +23 -0
- package/src/aiballoon/ui/aiballoonview.d.ts +109 -0
- package/src/aiballoon/ui/aiballoonview.js +23 -0
- package/src/aichat/aichat.d.ts +79 -0
- package/src/aichat/aichat.js +23 -0
- package/src/aichat/aichatcontroller.d.ts +68 -0
- package/src/aichat/aichatcontroller.js +23 -0
- package/src/aichat/aichatui.d.ts +297 -0
- package/src/aichat/aichatui.js +23 -0
- package/src/aichat/model/aichatcontext.d.ts +360 -0
- package/src/aichat/model/aichatcontext.js +23 -0
- package/src/aichat/model/aichatconversation.d.ts +270 -0
- package/src/aichat/model/aichatconversation.js +23 -0
- package/src/aichat/model/aichatinteraction.d.ts +46 -0
- package/src/aichat/model/aichatinteraction.js +23 -0
- package/src/aichat/model/aichatmodels.d.ts +77 -0
- package/src/aichat/model/aichatmodels.js +23 -0
- package/src/aichat/ui/aichatcontrolsview.d.ts +98 -0
- package/src/aichat/ui/aichatcontrolsview.js +23 -0
- package/src/aichat/ui/aichatfeedview.d.ts +114 -0
- package/src/aichat/ui/aichatfeedview.js +23 -0
- package/src/aichat/ui/aichatheaderview.d.ts +29 -0
- package/src/aichat/ui/aichatheaderview.js +23 -0
- package/src/aichat/ui/aichatview.d.ts +37 -0
- package/src/aichat/ui/aichatview.js +23 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +71 -0
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +23 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +46 -0
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +23 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +105 -0
- package/src/aichat/ui/controls/aichatcontextpanelview.js +23 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +12 -0
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +89 -0
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +44 -0
- package/src/aichat/ui/controls/aichatpromptinputview.js +23 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +17 -0
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +100 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.d.ts +49 -0
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +61 -0
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.d.ts +54 -0
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +27 -0
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +39 -0
- package/src/aichat/ui/feed/aichatfeederroritemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +29 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +23 -0
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeeditemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +46 -0
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +74 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +23 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +40 -0
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +23 -0
- package/src/aichat/utils/eventnames.d.ts +5 -0
- package/src/aichat/utils/eventnames.js +23 -0
- package/src/aichat/utils/promisequeue.d.ts +32 -0
- package/src/aichat/utils/promisequeue.js +23 -0
- package/src/aichat/utils/scrollmanager.d.ts +23 -0
- package/src/aichat/utils/scrollmanager.js +23 -0
- package/src/aichathistory/aichathistory.d.ts +30 -0
- package/src/aichathistory/aichathistory.js +23 -0
- package/src/aichathistory/aichathistorycontroller.d.ts +40 -0
- package/src/aichathistory/aichathistorycontroller.js +23 -0
- package/src/aichathistory/aichathistoryui.d.ts +112 -0
- package/src/aichathistory/aichathistoryui.js +23 -0
- package/src/aichathistory/model/aichathistoryconversations.d.ts +114 -0
- package/src/aichathistory/model/aichathistoryconversations.js +23 -0
- package/src/aichathistory/model/aichathistoryitem.d.ts +59 -0
- package/src/aichathistory/model/aichathistoryitem.js +23 -0
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +42 -0
- package/src/aichathistory/ui/aichathistorylistitemview.js +23 -0
- package/src/aichathistory/ui/aichathistorylistview.d.ts +31 -0
- package/src/aichathistory/ui/aichathistorylistview.js +23 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +17 -0
- package/src/aichathistory/ui/aichathistorysectionlistview.js +23 -0
- package/src/aichathistory/ui/aichathistoryview.d.ts +41 -0
- package/src/aichathistory/ui/aichathistoryview.js +23 -0
- package/src/aiconfig.d.ts +82 -31
- package/src/aicore/aiconnector.d.ts +302 -0
- package/src/aicore/aiconnector.js +23 -0
- package/src/aicore/aiediting.d.ts +61 -0
- package/src/aicore/aiediting.js +23 -0
- package/src/aicore/model/aicapabilities.d.ts +55 -0
- package/src/aicore/model/aicapabilities.js +23 -0
- package/src/aicore/model/aicontext.d.ts +53 -0
- package/src/aicore/model/aicontext.js +23 -0
- package/src/aicore/model/aiinteraction.d.ts +135 -0
- package/src/aicore/model/aiinteraction.js +23 -0
- package/src/aicore/model/aireply.d.ts +178 -0
- package/src/aicore/model/aireply.js +23 -0
- package/src/aicore/pipeline/airesponseapplier.d.ts +291 -0
- package/src/aicore/pipeline/airesponseapplier.js +24 -0
- package/src/aicore/pipeline/airesponseparser.d.ts +27 -0
- package/src/aicore/pipeline/airesponseparser.js +24 -0
- package/src/aicore/ui/aidisclaimerview.d.ts +17 -0
- package/src/aicore/ui/aidisclaimerview.js +23 -0
- package/src/aicore/ui/aiskeleton.d.ts +37 -0
- package/src/aicore/ui/aiskeleton.js +23 -0
- package/src/aicore/ui/aispinner.d.ts +14 -0
- package/src/aicore/ui/aispinner.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +62 -0
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +38 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +80 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +23 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +39 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +23 -0
- package/src/aicore/utils/common-translations.d.ts +9 -0
- package/src/aicore/utils/common-translations.js +23 -0
- package/src/aicore/utils/createresizebutton.d.ts +12 -0
- package/src/aicore/utils/createresizebutton.js +23 -0
- package/src/aicore/utils/documentposition.d.ts +41 -0
- package/src/aicore/utils/documentposition.js +23 -0
- package/src/aicore/utils/documentrange.d.ts +46 -0
- package/src/aicore/utils/documentrange.js +23 -0
- package/src/aicore/utils/eventnames.d.ts +9 -0
- package/src/aicore/utils/eventnames.js +23 -0
- package/src/aicore/utils/geteditorfromcontext.d.ts +6 -0
- package/src/aicore/utils/geteditorfromcontext.js +23 -0
- package/src/aicore/utils/getoperationsfromreply.d.ts +21 -0
- package/src/aicore/utils/getoperationsfromreply.js +23 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +19 -0
- package/src/aicore/utils/getsuggestionpartsfromreply.js +23 -0
- package/src/aicore/utils/htmlparser.d.ts +35 -0
- package/src/aicore/utils/htmlparser.js +23 -0
- package/src/aicore/utils/htmlstreamer.d.ts +123 -0
- package/src/aicore/utils/htmlstreamer.js +23 -0
- package/src/aiquickactions/aiquickactions.d.ts +41 -0
- package/src/aiquickactions/aiquickactions.js +23 -0
- package/src/aiquickactions/aiquickactionscommand.d.ts +12 -0
- package/src/aiquickactions/aiquickactionscommand.js +23 -0
- package/src/aiquickactions/aiquickactionsediting.d.ts +23 -0
- package/src/aiquickactions/aiquickactionsediting.js +23 -0
- package/src/aiquickactions/aiquickactionsui.d.ts +150 -0
- package/src/aiquickactions/aiquickactionsui.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +30 -0
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +23 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +45 -0
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +23 -0
- package/src/aiquickactions/utils/common-translations.d.ts +9 -0
- package/src/aiquickactions/utils/common-translations.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +30 -0
- package/src/aireviewmode/aireviewmode.js +23 -0
- package/src/aireviewmode/aireviewmodecontroller.d.ts +32 -0
- package/src/aireviewmode/aireviewmodecontroller.js +23 -0
- package/src/aireviewmode/aireviewmodeediting.d.ts +129 -0
- package/src/aireviewmode/aireviewmodeediting.js +23 -0
- package/src/aireviewmode/aireviewmodeui.d.ts +73 -0
- package/src/aireviewmode/aireviewmodeui.js +23 -0
- package/src/aireviewmode/model/aireviewcheck.d.ts +60 -0
- package/src/aireviewmode/model/aireviewcheck.js +23 -0
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +17 -0
- package/src/aireviewmode/model/aireviewcheckcustom.js +23 -0
- package/src/aireviewmode/model/aireviewchecklist.d.ts +31 -0
- package/src/aireviewmode/model/aireviewchecklist.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +39 -0
- package/src/aireviewmode/model/aireviewcheckresult.js +23 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +42 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +23 -0
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +101 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +18 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodels.d.ts +26 -0
- package/src/aireviewmode/model/aireviewmodels.js +23 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +14 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +23 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +29 -0
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +46 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +19 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +80 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +45 -0
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +18 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +42 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +20 -0
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +23 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +16 -0
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +23 -0
- package/src/aireviewmode/utils/common-translations.d.ts +9 -0
- package/src/aireviewmode/utils/common-translations.js +23 -0
- package/src/aitabs/aitabs.d.ts +92 -0
- package/src/aitabs/aitabs.js +23 -0
- package/src/aitabs/aitabsmainview.d.ts +45 -0
- package/src/aitabs/aitabsmainview.js +23 -0
- package/src/aitabs/tabs/aitabsview.d.ts +147 -0
- package/src/aitabs/tabs/aitabsview.js +23 -0
- package/src/aitabs/tabs/tabbuttonview.d.ts +47 -0
- package/src/aitabs/tabs/tabbuttonview.js +23 -0
- package/src/aitabs/tabs/tabpanelview.d.ts +44 -0
- package/src/aitabs/tabs/tabpanelview.js +23 -0
- package/src/augmentation.d.ts +22 -6
- package/src/index.d.ts +40 -9
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +207 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +139 -0
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +194 -0
- package/theme/aichat/aichat-controls/aichat-context-controls.css +46 -0
- package/theme/aichat/aichat-controls/aichat-controls-button.css +74 -0
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +93 -0
- package/theme/aichat/aichat-controls/prompt-capabilities.css +46 -0
- package/theme/aichat/aichat-controls/prompt-input.css +55 -0
- package/theme/aichat/aichat-controls.css +154 -0
- package/theme/aichat/aichat.css +68 -0
- package/theme/aichat/aichatfeed.css +376 -0
- package/theme/aichat/aichathistory.css +235 -0
- package/theme/aichat/aiminitoolbar.css +94 -0
- package/theme/aichat/aisuggestioncontainer.css +203 -0
- package/theme/aiquickactions/aiquickactions.css +43 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +154 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +202 -0
- package/theme/aireviewmode/aireviewmode-review-completed.css +52 -0
- package/theme/aireviewmode/aireviewmode.css +73 -0
- package/theme/aitabs/aitabsview.css +64 -0
- package/theme/aitabs/tabs/tabbuttonview.css +74 -0
- package/theme/aitabs/tabs/tabsview.css +78 -0
- package/theme/common/aibutton.css +145 -0
- package/theme/common/aichaterror.css +61 -0
- package/theme/common/aidisclaimer.css +29 -0
- package/theme/common/aiheader.css +88 -0
- package/theme/common/aiskeleton.css +54 -0
- package/theme/common/aispinner.css +58 -0
- package/src/adapters/aiadapter.js +0 -23
- package/src/adapters/aitextadapter.js +0 -23
- package/src/adapters/awstextadapter.js +0 -23
- package/src/adapters/openaitextadapter.js +0 -23
- package/src/aiassistant.js +0 -23
- package/src/aiassistantediting.js +0 -23
- package/src/aiassistantui.js +0 -23
- package/src/legacyerrors.js +0 -23
- package/src/ui/aiassistantcontroller.js +0 -24
- package/src/ui/form/aiformcontentarea.js +0 -23
- package/src/ui/form/aiformerrorview.js +0 -23
- package/src/ui/form/aiformpromptview.js +0 -23
- package/src/ui/form/aiformtoolbarview.js +0 -23
- package/src/ui/form/aiformview.js +0 -23
- package/src/ui/form/aihistorylistitemview.js +0 -23
- package/src/ui/form/aihistorylistview.js +0 -23
- package/src/ui/form/prompthistory.js +0 -23
- package/src/ui/showaiassistantcommand.js +0 -23
- /package/src/{aiassistantediting.d.ts → aiassistant/aiassistantediting.d.ts} +0 -0
- /package/src/{legacyerrors.d.ts → aiassistant/legacyerrors.d.ts} +0 -0
- /package/src/{ui → aiassistant/ui}/form/aiformerrorview.d.ts +0 -0
- /package/theme/{ai-dropdown.css → aiassistant/ai-dropdown.css} +0 -0
- /package/theme/{ai-form.css → aiassistant/ai-form.css} +0 -0
- /package/theme/{ai.css → aiassistant/ai.css} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x39ce(_0x2ddc9a,_0x418d95){const _0x58ea08=_0x58ea();return _0x39ce=function(_0x39ce6a,_0x503218){_0x39ce6a=_0x39ce6a-0x1be;let _0x42d22a=_0x58ea08[_0x39ce6a];return _0x42d22a;},_0x39ce(_0x2ddc9a,_0x418d95);}const _0x39b5f6=_0x39ce;function _0x58ea(){const _0x2f613a=['close','round','getBoundingClientRect','show','hideFakeVisualSelection','innerHeight','ai-balloon-','583382XyuBVi','2838695HVpHlO','showRotator','AIEditing','3402126eCbFzH','showFakeVisualSelection','_showDialog','locale','isOpen','markers','21UXzQCD','AIBalloon','index','bind','isOfficialPlugin','open','hide','height','isPremiumPlugin','editing','_calculateDialogPosition','width','\x20ai-balloon-rotator','ai-balloon','14210196evlXVS','_setupVisualSelection','icon','get','title','ai-balloon-selection','fire','delegate','requires','ranges','4OpQzKu','balloonView','562278QviBmC','length','model','getMarkersGroup','_calculateOptimalTopPosition','dialogClosed','context','Dialog','5570110qsejIg','2nnOjuw','_config','758864eYqOZC','plugins','pluginName','setupRotator','top','aiBalloon','9EZjlkz','ai-selection','left'];_0x58ea=function(){return _0x2f613a;};return _0x58ea();}(function(_0x568732,_0x39dff8){const _0x2335b5=_0x39ce,_0x3b5f3f=_0x568732();while(!![]){try{const _0x16d84d=parseInt(_0x2335b5(0x1e1))/0x1+-parseInt(_0x2335b5(0x1cf))/0x2*(-parseInt(_0x2335b5(0x1c6))/0x3)+parseInt(_0x2335b5(0x1c4))/0x4*(-parseInt(_0x2335b5(0x1e2))/0x5)+parseInt(_0x2335b5(0x1e5))/0x6+parseInt(_0x2335b5(0x1eb))/0x7*(parseInt(_0x2335b5(0x1d1))/0x8)+parseInt(_0x2335b5(0x1d7))/0x9*(parseInt(_0x2335b5(0x1ce))/0xa)+-parseInt(_0x2335b5(0x1f9))/0xb;if(_0x16d84d===_0x39dff8)break;else _0x3b5f3f['push'](_0x3b5f3f['shift']());}catch(_0xc929b5){_0x3b5f3f['push'](_0x3b5f3f['shift']());}}}(_0x58ea,0x4e15f));import{ContextPlugin as _0x55126c}from'ckeditor5/src/core.js';import{AIConnector as _0x31ada0}from'../aicore/aiconnector.js';import{AIEditing as _0x31ce1f}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x290791,AIBalloonView as _0x1be793}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x6e9523}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x3d574c}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x290791,_0x39b5f6(0x1cb)];export class AIBalloon extends _0x55126c{static get[_0x39b5f6(0x1c2)](){return[_0x31ada0,_0x31ce1f];}static get[_0x39b5f6(0x1d3)](){const _0x36185a=_0x39b5f6;return _0x36185a(0x1ec);}static get[_0x39b5f6(0x1ef)](){return!0x0;}static get[_0x39b5f6(0x1f3)](){return!0x0;}[_0x39b5f6(0x1e9)]=!0x1;[_0x39b5f6(0x1d0)];[_0x39b5f6(0x1f0)](_0x34f270){const _0x3f2aea=_0x39b5f6,_0x175250=_0x3d574c(this[_0x3f2aea(0x1cc)]);this[_0x3f2aea(0x1d0)]=_0x34f270,this[_0x3f2aea(0x1c5)]=new _0x1be793(_0x175250[_0x3f2aea(0x1e8)],_0x34f270),this[_0x3f2aea(0x1c5)][_0x3f2aea(0x1c1)](..._0x290791)['to'](this),this[_0x3f2aea(0x1e7)](_0x34f270);}[_0x39b5f6(0x1da)](){const _0x4ccb9e=_0x39b5f6;_0x3d574c(this[_0x4ccb9e(0x1cc)])[_0x4ccb9e(0x1d2)][_0x4ccb9e(0x1fc)](_0x4ccb9e(0x1cd))[_0x4ccb9e(0x1f1)]();}[_0x39b5f6(0x1fa)](_0x49ae15,_0x5c2d10){const _0x4058e7=_0x39b5f6;this[_0x4058e7(0x1cc)][_0x4058e7(0x1d2)][_0x4058e7(0x1fc)](_0x31ce1f)[_0x4058e7(0x1e6)](_0x49ae15,_0x4058e7(0x1e0)+_0x5c2d10,!0x0,!0x0);}[_0x39b5f6(0x1e7)](_0x3228ae){const _0x2bd4ff=_0x39b5f6,_0x3c26e4=_0x3d574c(this[_0x2bd4ff(0x1cc)]);this[_0x2bd4ff(0x1fa)](_0x3228ae[_0x2bd4ff(0x1c3)],_0x3228ae[_0x2bd4ff(0x1ed)]),_0x3c26e4[_0x2bd4ff(0x1d2)][_0x2bd4ff(0x1fc)](_0x2bd4ff(0x1cd))[_0x2bd4ff(0x1dd)]({'title':_0x3228ae[_0x2bd4ff(0x1be)],'icon':_0x3228ae[_0x2bd4ff(0x1fb)],'hasCloseButton':!0x0,'id':_0x2bd4ff(0x1d6),'position':this[_0x2bd4ff(0x1f5)][_0x2bd4ff(0x1ee)](this),'className':_0x2bd4ff(0x1f8)+(_0x3228ae[_0x2bd4ff(0x1e3)]?_0x2bd4ff(0x1f7):''),'content':this[_0x2bd4ff(0x1c5)],'onShow':_0xf44aa=>{const _0x2e152b=_0x2bd4ff;_0x3228ae[_0x2e152b(0x1e3)]&&this[_0x2e152b(0x1c5)][_0x2e152b(0x1d4)](_0xf44aa),this[_0x2e152b(0x1e9)]=!0x0;},'onHide':()=>{const _0x469923=_0x2bd4ff;this[_0x469923(0x1cc)][_0x469923(0x1d2)][_0x469923(0x1fc)](_0x469923(0x1e4))[_0x469923(0x1de)](_0x469923(0x1e0)+_0x3228ae[_0x469923(0x1ed)]),this[_0x469923(0x1c0)](_0x469923(0x1cb)),this[_0x469923(0x1e9)]=!0x1;}});}[_0x39b5f6(0x1f5)](_0x1ca44f,_0x19b468){const _0x3195e5=_0x39b5f6,_0x5cdb94=_0x3d574c(this[_0x3195e5(0x1cc)]);if(!_0x19b468)return{'left':0x0,'top':0x0};const _0x361ce2=_0x6e9523(_0x5cdb94[_0x3195e5(0x1f4)],[..._0x5cdb94[_0x3195e5(0x1c8)][_0x3195e5(0x1ea)][_0x3195e5(0x1c9)](_0x3195e5(0x1d8)),..._0x5cdb94[_0x3195e5(0x1c8)][_0x3195e5(0x1ea)][_0x3195e5(0x1c9)](_0x3195e5(0x1bf))]);if(!_0x361ce2||0x0===_0x361ce2[_0x3195e5(0x1c7)])return{'left':Math[_0x3195e5(0x1db)](_0x19b468[_0x3195e5(0x1d9)]+_0x19b468[_0x3195e5(0x1f6)]/0x2-_0x1ca44f[_0x3195e5(0x1f6)]/0x2),'top':Math[_0x3195e5(0x1db)](_0x19b468[_0x3195e5(0x1d5)]+_0x19b468[_0x3195e5(0x1f2)]/0x2-_0x1ca44f[_0x3195e5(0x1f2)]/0x2)};const _0x431f8e=Math[_0x3195e5(0x1db)](_0x19b468[_0x3195e5(0x1d9)]+_0x19b468[_0x3195e5(0x1f6)]/0x2-_0x1ca44f[_0x3195e5(0x1f6)]/0x2),_0x100da9=_0x361ce2[0x0][_0x3195e5(0x1dc)](),_0x3ebabd=_0x361ce2[_0x361ce2[_0x3195e5(0x1c7)]-0x1][_0x3195e5(0x1dc)](),_0x2a3977=_0x1ca44f[_0x3195e5(0x1f2)],_0x28fc68=this[_0x3195e5(0x1d0)][_0x3195e5(0x1e3)]?0x8:0x0;return{'left':_0x431f8e,'top':this[_0x3195e5(0x1ca)](_0x100da9,_0x3ebabd,_0x2a3977,_0x28fc68)};}[_0x39b5f6(0x1ca)](_0x58e4db,_0x1ac670,_0x271756,_0x3898cc=0x0){const _0x5d5cd0=_0x39b5f6,_0x3bcf0c=_0x1ac670[_0x5d5cd0(0x1d5)]+_0x1ac670[_0x5d5cd0(0x1f2)],_0x26236e=_0x58e4db[_0x5d5cd0(0x1d5)]-_0x271756-_0x3898cc,_0x40092b=window[_0x5d5cd0(0x1df)]-_0x3bcf0c-0xa,_0x4629f1=_0x58e4db[_0x5d5cd0(0x1d5)]-_0x3898cc-0xa;let _0x520aa0;if(_0x40092b>=_0x271756)_0x520aa0=_0x3bcf0c+0xa;else{if(_0x4629f1>=_0x271756)_0x520aa0=_0x26236e-0xa;else _0x520aa0=_0x58e4db[_0x5d5cd0(0x1d5)]+(_0x1ac670[_0x5d5cd0(0x1d5)]+_0x1ac670[_0x5d5cd0(0x1f2)])/0x2-(_0x271756+_0x3898cc)/0x2;}return _0x520aa0;}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aiballoon/ui/aiballoondisclaimerview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
/**
|
|
11
|
+
* The disclaimer view of the AI balloon plugin.
|
|
12
|
+
*
|
|
13
|
+
* It displays information about the AI balloon, such as a reminder to double-check responses.
|
|
14
|
+
*/
|
|
15
|
+
export declare class AIBalloonDisclaimerView extends View {
|
|
16
|
+
constructor(locale: Locale);
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0xdc80da,_0x33e437){var _0x1dd5df=_0x493a,_0x476ef0=_0xdc80da();while(!![]){try{var _0x526dbf=-parseInt(_0x1dd5df(0x81))/0x1*(parseInt(_0x1dd5df(0x79))/0x2)+-parseInt(_0x1dd5df(0x80))/0x3+-parseInt(_0x1dd5df(0x75))/0x4*(parseInt(_0x1dd5df(0x74))/0x5)+-parseInt(_0x1dd5df(0x7b))/0x6*(-parseInt(_0x1dd5df(0x7a))/0x7)+-parseInt(_0x1dd5df(0x7c))/0x8+parseInt(_0x1dd5df(0x7e))/0x9+parseInt(_0x1dd5df(0x7f))/0xa*(parseInt(_0x1dd5df(0x76))/0xb);if(_0x526dbf===_0x33e437)break;else _0x476ef0['push'](_0x476ef0['shift']());}catch(_0x17e687){_0x476ef0['push'](_0x476ef0['shift']());}}}(_0x49ec,0xafa2a));import{View as _0x4de667}from'ckeditor5/src/ui.js';function _0x49ec(){var _0x378e12=['setTemplate','7568775JFxhTU','15199430YBIDiV','3807273mwWmTm','519436OsVHWV','ck-ai-balloon__disclaimer','div','1245himNWL','13868ozzjnv','22GdKDBK','AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer-content','2ixOukj','233401hUDzZV','150TYvKdf','10745792ZAShUF'];_0x49ec=function(){return _0x378e12;};return _0x49ec();}import{getTranslation as _0x4b4dfa}from'../../aicore/utils/common-translations.js';function _0x493a(_0x210875,_0x1e0779){var _0x49ec64=_0x49ec();return _0x493a=function(_0x493ad3,_0x6c7485){_0x493ad3=_0x493ad3-0x72;var _0x26e579=_0x49ec64[_0x493ad3];return _0x26e579;},_0x493a(_0x210875,_0x1e0779);}export class AIBalloonDisclaimerView extends _0x4de667{constructor(_0x2519f5){var _0x1edc4f=_0x493a;super(_0x2519f5),this[_0x1edc4f(0x7d)]({'tag':_0x1edc4f(0x73),'attributes':{'class':['ck',_0x1edc4f(0x72)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1edc4f(0x78)]},'children':[{'text':_0x4b4dfa(_0x2519f5,_0x1edc4f(0x77))}]}]});}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aiballoon/ui/aiballoontoolbarview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { ToolbarView, ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
/**
|
|
11
|
+
* A class representing the toolbar view of the AI balloon.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AIBalloonToolbarView extends ToolbarView {
|
|
14
|
+
/**
|
|
15
|
+
* Button that is used to apply the suggestion.
|
|
16
|
+
*/
|
|
17
|
+
applyButton?: ButtonView;
|
|
18
|
+
/**
|
|
19
|
+
* Button that is used to insert the suggestion.
|
|
20
|
+
*/
|
|
21
|
+
suggestButton?: ButtonView;
|
|
22
|
+
/**
|
|
23
|
+
* Observable property that indicates whether the toolbar is in loading state.
|
|
24
|
+
* When true, all buttons should be disabled.
|
|
25
|
+
*/
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
constructor(locale: Locale, showApplyButton?: boolean, showSuggestButton?: boolean);
|
|
31
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x31b2(){const _0x42c3f4=['_createButton','ck-ai-balloon__toolbar','29419NRONoW','extendTemplate','1396029yYTwSf','12MSvvlG','ck-ai-button-secondary','65656OkpJXS','84rUhCVX','349041hEcyQX','AI_BALLOON_APPLY_BUTTON','isEnabled','locale','applyButton','suggestButton','50nljmli','9hLZaNu','bind','134079OekZDQ','26drShry','1054032GJONoB','isLoading','ck-ai-button-primary','add','items','set','4856570sipKDk','AI_BALLOON_SUGGEST_BUTTON'];_0x31b2=function(){return _0x42c3f4;};return _0x31b2();}const _0x42d704=_0x3f97;(function(_0x252627,_0x44adc2){const _0x3900f1=_0x3f97,_0x59fca5=_0x252627();while(!![]){try{const _0x4256fd=parseInt(_0x3900f1(0x1f5))/0x1*(parseInt(_0x3900f1(0x1ea))/0x2)+-parseInt(_0x3900f1(0x1f7))/0x3+-parseInt(_0x3900f1(0x1fa))/0x4*(-parseInt(_0x3900f1(0x202))/0x5)+-parseInt(_0x3900f1(0x1fb))/0x6*(-parseInt(_0x3900f1(0x1fc))/0x7)+parseInt(_0x3900f1(0x1eb))/0x8+-parseInt(_0x3900f1(0x203))/0x9*(parseInt(_0x3900f1(0x1f1))/0xa)+-parseInt(_0x3900f1(0x1e9))/0xb*(-parseInt(_0x3900f1(0x1f8))/0xc);if(_0x4256fd===_0x44adc2)break;else _0x59fca5['push'](_0x59fca5['shift']());}catch(_0x12017d){_0x59fca5['push'](_0x59fca5['shift']());}}}(_0x31b2,0x6ad6c));function _0x3f97(_0x39b178,_0x24ecca){const _0x31b27d=_0x31b2();return _0x3f97=function(_0x3f9765,_0x3cae25){_0x3f9765=_0x3f9765-0x1e8;let _0x375a7d=_0x31b27d[_0x3f9765];return _0x375a7d;},_0x3f97(_0x39b178,_0x24ecca);}import{ToolbarView as _0x2e7206,ButtonView as _0x368340}from'ckeditor5/src/ui.js';import{getTranslation as _0x25c279}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x2e7206{constructor(_0x5cc3f9,_0x21690f=!0x0,_0x4ac7f6=!0x0){const _0x1d10bc=_0x3f97;super(_0x5cc3f9),this[_0x1d10bc(0x1f0)](_0x1d10bc(0x1ec),!0x1),_0x21690f&&(this[_0x1d10bc(0x200)]=this[_0x1d10bc(0x1f3)](_0x25c279(_0x5cc3f9,_0x1d10bc(0x1fd)),_0x1d10bc(0x1ed)),this[_0x1d10bc(0x200)][_0x1d10bc(0x1e8)](_0x1d10bc(0x1fe))['to'](this,_0x1d10bc(0x1ec),_0x574134=>!_0x574134),this[_0x1d10bc(0x1ef)][_0x1d10bc(0x1ee)](this[_0x1d10bc(0x200)])),_0x4ac7f6&&(this[_0x1d10bc(0x201)]=this[_0x1d10bc(0x1f3)](_0x25c279(_0x5cc3f9,_0x1d10bc(0x1f2)),_0x1d10bc(0x1f9)),this[_0x1d10bc(0x201)][_0x1d10bc(0x1e8)](_0x1d10bc(0x1fe))['to'](this,_0x1d10bc(0x1ec),_0x3e5c0c=>!_0x3e5c0c),this[_0x1d10bc(0x1ef)][_0x1d10bc(0x1ee)](this[_0x1d10bc(0x201)])),this[_0x1d10bc(0x1f6)]({'attributes':{'class':[_0x1d10bc(0x1f4)]}});}[_0x42d704(0x1f3)](_0x3b944b,_0x482706){const _0x179ff9=_0x42d704,_0x3300b5=new _0x368340(this[_0x179ff9(0x1ff)]);return _0x3300b5[_0x179ff9(0x1f0)]({'label':_0x3b944b,'class':_0x482706||'','isVisible':!0x0,'withText':!0x0}),_0x3300b5;}}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type Dialog, View, FocusCycler, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
7
|
+
import { AIBalloonToolbarView } from './aiballoontoolbarview.js';
|
|
8
|
+
import { AIBalloonDisclaimerView } from './aiballoondisclaimerview.js';
|
|
9
|
+
/**
|
|
10
|
+
* Event names that can be fired by the AI Balloon view.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AI_BALLOON_VIEW_EVENT_NAMES: readonly ["applySuggestion", "insertSuggestion", "showNext", "showPrevious"];
|
|
13
|
+
/**
|
|
14
|
+
* Configuration object for creating AI Balloon content.
|
|
15
|
+
*/
|
|
16
|
+
export interface AIBalloonContentConfig {
|
|
17
|
+
mainView: View;
|
|
18
|
+
showRotator: boolean;
|
|
19
|
+
showApplyButton: boolean;
|
|
20
|
+
showSuggestButton: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The AI Balloon view class responsible for creating and managing the balloon dialog UI.
|
|
24
|
+
*
|
|
25
|
+
* This view handles:
|
|
26
|
+
* - Content display and navigation between multiple AI suggestions
|
|
27
|
+
* - Focus management and keyboard navigation
|
|
28
|
+
* - Event firing for suggestion interactions
|
|
29
|
+
* - Toolbar and disclaimer management
|
|
30
|
+
*/
|
|
31
|
+
export declare class AIBalloonView extends View implements ViewWithFocusCycler {
|
|
32
|
+
/**
|
|
33
|
+
* Toolbar view containing button views that manage the AI suggestions.
|
|
34
|
+
*/
|
|
35
|
+
toolbar: AIBalloonToolbarView;
|
|
36
|
+
/**
|
|
37
|
+
* Disclaimer view containing warning text about AI responses.
|
|
38
|
+
*/
|
|
39
|
+
disclaimerView: AIBalloonDisclaimerView;
|
|
40
|
+
/**
|
|
41
|
+
* @readonly
|
|
42
|
+
*/
|
|
43
|
+
focusTracker: FocusTracker;
|
|
44
|
+
/**
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
keystrokes: KeystrokeHandler;
|
|
48
|
+
/**
|
|
49
|
+
* @readonly
|
|
50
|
+
*/
|
|
51
|
+
focusCycler: FocusCycler;
|
|
52
|
+
/**
|
|
53
|
+
* Observable property that indicates whether the view is in loading state.
|
|
54
|
+
* When true, all interactive elements should be disabled.
|
|
55
|
+
*/
|
|
56
|
+
isLoading: boolean;
|
|
57
|
+
constructor(locale: Locale, config: AIBalloonContentConfig);
|
|
58
|
+
/**
|
|
59
|
+
* @inheritDoc
|
|
60
|
+
*/
|
|
61
|
+
render(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Focuses the balloon view.
|
|
64
|
+
*/
|
|
65
|
+
focus(direction?: 1 | -1): void;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the view to loading state, disabling all interactive elements.
|
|
68
|
+
*/
|
|
69
|
+
setLoading(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Clears the loading state, enabling all interactive elements.
|
|
72
|
+
*/
|
|
73
|
+
clearLoading(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Sets up the rotator functionality for navigating between multiple suggestions.
|
|
76
|
+
* Adds next and previous buttons to the dialog header.
|
|
77
|
+
*
|
|
78
|
+
* @param dialog The dialog instance to add navigation buttons to
|
|
79
|
+
*/
|
|
80
|
+
setupRotator(dialog: Dialog): void;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Event fired when user clicks the apply button to apply a suggestion.
|
|
84
|
+
*/
|
|
85
|
+
export type AIBalloonApplySuggestionEvent = {
|
|
86
|
+
name: 'applySuggestion';
|
|
87
|
+
args: [];
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Event fired when user clicks the insert/suggest button to insert a suggestion.
|
|
91
|
+
*/
|
|
92
|
+
export type AIBalloonInsertSuggestionEvent = {
|
|
93
|
+
name: 'insertSuggestion';
|
|
94
|
+
args: [];
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Event fired when user clicks the next suggestion button.
|
|
98
|
+
*/
|
|
99
|
+
export type AIBalloonShowNextSuggestionEvent = {
|
|
100
|
+
name: 'showNext';
|
|
101
|
+
args: [];
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Event fired when user clicks the previous suggestion button.
|
|
105
|
+
*/
|
|
106
|
+
export type AIBalloonShowPreviousSuggestionEvent = {
|
|
107
|
+
name: 'showPrevious';
|
|
108
|
+
args: [];
|
|
109
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x58e0(){const _0x5bbf8b=['setLoading','_mainView','10ZOwHET','1083372LAMZgZ','shift\x20+\x20tab','focusCycler','_addToolbar','setTemplate','_addDisclaimerView','showApplyButton','locale','2709735CEZuwX','element','children','listenTo','focusTracker','AI_BALLOON_NEXT_TOOLTIP','showSuggestButton','7390026UKiJhN','tab','set','6910RqDRQI','add','applyButton','view','fire','showPrevious','612941iHcIyz','mainView','applySuggestion','headerView','execute','disclaimerView','clearLoading','_addContentView','keystrokes','insertSuggestion','_createNextButtonView','_focusables','div','2TNunHp','isLoading','suggestButton','focusFirst','focus','showNext','_dialogContent','AI_BALLOON_PREVIOUS_TOOLTIP','setupRotator','8dbonPb','createCollection','clear','bind','516jXYZEk','focusLast','render','toolbar','ai-balloon-content','addMany','_createPreviousButtonView','2093724xUtlwg','2553067dhZEca'];_0x58e0=function(){return _0x5bbf8b;};return _0x58e0();}const _0x3be04d=_0x5581;(function(_0x58218f,_0x4679af){const _0x4e8f07=_0x5581,_0x15006b=_0x58218f();while(!![]){try{const _0x492664=-parseInt(_0x4e8f07(0x108))/0x1*(-parseInt(_0x4e8f07(0x115))/0x2)+parseInt(_0x4e8f07(0xf0))/0x3+parseInt(_0x4e8f07(0xeb))/0x4+-parseInt(_0x4e8f07(0x102))/0x5*(-parseInt(_0x4e8f07(0x122))/0x6)+-parseInt(_0x4e8f07(0xf8))/0x7+parseInt(_0x4e8f07(0x11e))/0x8*(-parseInt(_0x4e8f07(0xff))/0x9)+parseInt(_0x4e8f07(0xef))/0xa*(parseInt(_0x4e8f07(0xec))/0xb);if(_0x492664===_0x4679af)break;else _0x15006b['push'](_0x15006b['shift']());}catch(_0x37083d){_0x15006b['push'](_0x15006b['shift']());}}}(_0x58e0,0x9c4e2));import{ButtonView as _0x1832f4,View as _0x68a17c,ViewCollection as _0x76a2f9,FocusCycler as _0x36e0db}from'ckeditor5/src/ui.js';function _0x5581(_0x164db1,_0x21ee72){const _0x58e094=_0x58e0();return _0x5581=function(_0x55816a,_0x3879ca){_0x55816a=_0x55816a-0xe7;let _0x536084=_0x58e094[_0x55816a];return _0x536084;},_0x5581(_0x164db1,_0x21ee72);}import{FocusTracker as _0x1194ac,KeystrokeHandler as _0x309745}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x2edacd,IconPreviousArrow as _0x5514f1}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x4b98fe}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x2dea32}from'./aiballoondisclaimerview.js';import{getTranslation as _0x502366}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3be04d(0x10a),_0x3be04d(0x111),_0x3be04d(0x11a),_0x3be04d(0x107)];export class AIBalloonView extends _0x68a17c{[_0x3be04d(0xfc)];[_0x3be04d(0x110)];[_0x3be04d(0xf2)];[_0x3be04d(0x113)];constructor(_0xf89304,_0x7c104b){const _0x5aaf4d=_0x3be04d;super(_0xf89304),this[_0x5aaf4d(0x101)](_0x5aaf4d(0x116),!0x1),this[_0x5aaf4d(0xfc)]=new _0x1194ac(),this[_0x5aaf4d(0x110)]=new _0x309745(),this[_0x5aaf4d(0x113)]=this[_0x5aaf4d(0x11f)](),this[_0x5aaf4d(0xf2)]=new _0x36e0db({'focusables':this[_0x5aaf4d(0x113)],'focusTracker':this[_0x5aaf4d(0xfc)],'keystrokeHandler':this[_0x5aaf4d(0x110)],'actions':{'focusPrevious':_0x5aaf4d(0xf1),'focusNext':_0x5aaf4d(0x100)}}),this[_0x5aaf4d(0x11b)]=new _0x76a2f9(),this[_0x5aaf4d(0x10f)](_0x7c104b[_0x5aaf4d(0x109)]),this[_0x5aaf4d(0xf5)](),this[_0x5aaf4d(0xf3)](_0x7c104b[_0x5aaf4d(0xf6)],_0x7c104b[_0x5aaf4d(0xfe)]),this[_0x5aaf4d(0xe7)][_0x5aaf4d(0x121)](_0x5aaf4d(0x116))['to'](this),this[_0x5aaf4d(0x113)][_0x5aaf4d(0x120)](),this[_0x5aaf4d(0x113)][_0x5aaf4d(0xe9)]([this[_0x5aaf4d(0xe7)]]),this[_0x5aaf4d(0xf4)]({'tag':_0x5aaf4d(0x114),'attributes':{'class':_0x5aaf4d(0xe8)},'children':this[_0x5aaf4d(0x11b)]});}[_0x3be04d(0x124)](){const _0x3c5816=_0x3be04d;super[_0x3c5816(0x124)]();for(const _0x1d66b2 of this[_0x3c5816(0x113)])this[_0x3c5816(0xfc)][_0x3c5816(0x103)](_0x1d66b2[_0x3c5816(0xf9)]);this[_0x3c5816(0x110)][_0x3c5816(0xfb)](this[_0x3c5816(0xf9)]);}[_0x3be04d(0x119)](_0x40e156){const _0x3c30cf=_0x3be04d;-0x1===_0x40e156?this[_0x3c30cf(0xf2)][_0x3c30cf(0x123)]():this[_0x3c30cf(0xf2)][_0x3c30cf(0x118)]();}[_0x3be04d(0xed)](){const _0x1b759c=_0x3be04d;this[_0x1b759c(0x116)]=!0x0;}[_0x3be04d(0x10e)](){const _0x47be78=_0x3be04d;this[_0x47be78(0x116)]=!0x1;}[_0x3be04d(0x11d)](_0x188da4){const _0x2ca2ef=_0x3be04d,_0x4ceaa3=this[_0x2ca2ef(0x112)](),_0x54b38e=this[_0x2ca2ef(0xea)]();_0x188da4[_0x2ca2ef(0x105)][_0x2ca2ef(0x10b)][_0x2ca2ef(0xfa)][_0x2ca2ef(0x103)](_0x4ceaa3,0x2),_0x188da4[_0x2ca2ef(0x105)][_0x2ca2ef(0x10b)][_0x2ca2ef(0xfa)][_0x2ca2ef(0x103)](_0x54b38e,0x0),this[_0x2ca2ef(0x113)][_0x2ca2ef(0xe9)]([_0x4ceaa3,_0x54b38e]),this[_0x2ca2ef(0xfc)][_0x2ca2ef(0x103)](_0x4ceaa3[_0x2ca2ef(0xf9)]),this[_0x2ca2ef(0xfc)][_0x2ca2ef(0x103)](_0x54b38e[_0x2ca2ef(0xf9)]);}[_0x3be04d(0x10f)](_0x130521){const _0x332ad2=_0x3be04d;this[_0x332ad2(0xee)]=_0x130521,this[_0x332ad2(0x11b)][_0x332ad2(0x103)](this[_0x332ad2(0xee)]);}[_0x3be04d(0xf5)](){const _0x33982e=_0x3be04d;this[_0x33982e(0x10d)]=new _0x2dea32(this[_0x33982e(0xf7)]),this[_0x33982e(0x11b)][_0x33982e(0x103)](this[_0x33982e(0x10d)]);}[_0x3be04d(0xf3)](_0x581534=!0x0,_0x2326cc=!0x0){const _0x15f162=_0x3be04d;this[_0x15f162(0xe7)]=new _0x4b98fe(this[_0x15f162(0xf7)],_0x581534,_0x2326cc),this[_0x15f162(0xe7)][_0x15f162(0x104)]?.['on'](_0x15f162(0x10c),()=>{const _0x293f50=_0x15f162;this[_0x293f50(0x106)](_0x293f50(0x10a));}),this[_0x15f162(0xe7)][_0x15f162(0x117)]?.['on'](_0x15f162(0x10c),()=>{const _0x5d5564=_0x15f162;this[_0x5d5564(0x106)](_0x5d5564(0x111));}),this[_0x15f162(0x11b)][_0x15f162(0x103)](this[_0x15f162(0xe7)]);}[_0x3be04d(0x112)](){const _0x3d988d=_0x3be04d,_0x21712b=new _0x1832f4(this[_0x3d988d(0xf7)]);return _0x21712b[_0x3d988d(0x101)]({'icon':_0x2edacd,'tooltip':_0x502366(this[_0x3d988d(0xf7)],_0x3d988d(0xfd))}),_0x21712b['on'](_0x3d988d(0x10c),()=>{const _0x136ee3=_0x3d988d;this[_0x136ee3(0x106)](_0x136ee3(0x11a));}),_0x21712b;}[_0x3be04d(0xea)](){const _0x33197e=_0x3be04d,_0x5cc598=new _0x1832f4(this[_0x33197e(0xf7)]);return _0x5cc598[_0x33197e(0x101)]({'icon':_0x5514f1,'tooltip':_0x502366(this[_0x33197e(0xf7)],_0x33197e(0x11c))}),_0x5cc598['on'](_0x33197e(0x10c),()=>{const _0x21ccbb=_0x33197e;this[_0x21ccbb(0x106)](_0x21ccbb(0x107));}),_0x5cc598;}}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/aichat
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type Context, ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AIChatController } from './aichatcontroller.js';
|
|
11
|
+
import { AIEditing } from '../aicore/aiediting.js';
|
|
12
|
+
import { AIChatUI } from './aichatui.js';
|
|
13
|
+
import { type AIChatContextConfig } from './model/aichatcontext.js';
|
|
14
|
+
import { type AIChatModelsConfig } from './model/aichatmodels.js';
|
|
15
|
+
import { AIChatHistory } from '../aichathistory/aichathistory.js';
|
|
16
|
+
import { type AIQuickActionRequestData } from '../aiquickactions/aiquickactions.js';
|
|
17
|
+
export declare class AIChat extends ContextPlugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof AIChatController, typeof AIEditing, typeof AIChatUI, typeof AIChatHistory];
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "AIChat";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isPremiumPlugin(): true;
|
|
34
|
+
constructor(context: Context);
|
|
35
|
+
addSelectionToChatContext(): Promise<void>;
|
|
36
|
+
startConversation(): Promise<void>;
|
|
37
|
+
sendMessage({ message, quickActionData }: {
|
|
38
|
+
message: string;
|
|
39
|
+
quickActionData?: AIQuickActionRequestData;
|
|
40
|
+
}): Promise<void>;
|
|
41
|
+
removeSelectionFromChatContext(): void;
|
|
42
|
+
focusPromptInput(): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The configuration of the AI Chat feature.
|
|
46
|
+
*
|
|
47
|
+
* The properties defined in this config are set in the `config.ai.chat` namespace.
|
|
48
|
+
*
|
|
49
|
+
* ```ts
|
|
50
|
+
* ClassicEditor
|
|
51
|
+
* .create( editorElement, {
|
|
52
|
+
* ai: {
|
|
53
|
+
* chat: {
|
|
54
|
+
* // AI Chat configuration.
|
|
55
|
+
* }
|
|
56
|
+
* }
|
|
57
|
+
* } )
|
|
58
|
+
* .then( ... )
|
|
59
|
+
* .catch( ... );
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* See {@link module:ai/aiconfig~AIConfig the full AI configuration}.
|
|
63
|
+
*
|
|
64
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
65
|
+
*/
|
|
66
|
+
export interface AIChatConfig {
|
|
67
|
+
/**
|
|
68
|
+
* The configuration of the AI Chat context.
|
|
69
|
+
*
|
|
70
|
+
* Read more in {@link module:ai/aichat/model/aichatcontext~AIChatContextConfig}.
|
|
71
|
+
*/
|
|
72
|
+
context: AIChatContextConfig;
|
|
73
|
+
/**
|
|
74
|
+
* The configuration of the AI Chat models selection feature.
|
|
75
|
+
*
|
|
76
|
+
* Read more in {@link module:ai/aichat/model/aichatmodels~AIChatModelsConfig}.
|
|
77
|
+
*/
|
|
78
|
+
models: AIChatModelsConfig;
|
|
79
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0xe2c764=_0x5f43;(function(_0x299651,_0x55e724){const _0x41e7e9=_0x5f43,_0x2cb146=_0x299651();while(!![]){try{const _0x487791=-parseInt(_0x41e7e9(0x8f))/0x1+-parseInt(_0x41e7e9(0x96))/0x2*(parseInt(_0x41e7e9(0x9b))/0x3)+-parseInt(_0x41e7e9(0x8c))/0x4+-parseInt(_0x41e7e9(0x94))/0x5*(parseInt(_0x41e7e9(0xa3))/0x6)+parseInt(_0x41e7e9(0x93))/0x7*(parseInt(_0x41e7e9(0xa1))/0x8)+parseInt(_0x41e7e9(0x90))/0x9+-parseInt(_0x41e7e9(0x8e))/0xa*(-parseInt(_0x41e7e9(0x97))/0xb);if(_0x487791===_0x55e724)break;else _0x2cb146['push'](_0x2cb146['shift']());}catch(_0xea5f67){_0x2cb146['push'](_0x2cb146['shift']());}}}(_0x534d,0xa3282));import{ContextPlugin as _0x525f64}from'ckeditor5/src/core.js';import{AIChatController as _0x43410f}from'./aichatcontroller.js';import{AIEditing as _0x45e5e0}from'../aicore/aiediting.js';import{AIChatUI as _0x2295de}from'./aichatui.js';import{AIChatHistory as _0x1e513f}from'../aichathistory/aichathistory.js';function _0x5f43(_0x2b7542,_0x52522c){const _0x534d9c=_0x534d();return _0x5f43=function(_0x5f4360,_0x324b26){_0x5f4360=_0x5f4360-0x89;let _0x2d1c66=_0x534d9c[_0x5f4360];return _0x2d1c66;},_0x5f43(_0x2b7542,_0x52522c);}function _0x534d(){const _0x23eac9=['3512syIipv','isPremiumPlugin','2634XbcCgC','ai.chat.context','requires','sendMessage','isOfficialPlugin','3909212emJKms','startConversation','6092890jZnaLw','414578oZbAzK','1831563PCuyyO','AIChat','get','20594uYFQJv','4045ebwDZo','ai.chat.models','1815180zvADtD','33RKGWvM','addSelectionToChatContext','pluginName','removeSelectionFromChatContext','3SzDoql','plugins','define','context','focusPromptInput','config'];_0x534d=function(){return _0x23eac9;};return _0x534d();}export class AIChat extends _0x525f64{static get[_0xe2c764(0x89)](){return[_0x43410f,_0x45e5e0,_0x2295de,_0x1e513f];}static get[_0xe2c764(0x99)](){const _0x138c01=_0xe2c764;return _0x138c01(0x91);}static get[_0xe2c764(0x8b)](){return!0x0;}static get[_0xe2c764(0xa2)](){return!0x0;}constructor(_0x4e0d32){const _0x48f9c1=_0xe2c764;super(_0x4e0d32);const _0x4d13b7=_0x4e0d32[_0x48f9c1(0xa0)];_0x4d13b7[_0x48f9c1(0x9d)](_0x48f9c1(0xa4),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x4d13b7[_0x48f9c1(0x9d)](_0x48f9c1(0x95),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0xe2c764(0x98)](){const _0x4919a0=_0xe2c764;await this[_0x4919a0(0x9e)][_0x4919a0(0x9c)][_0x4919a0(0x92)](_0x43410f)[_0x4919a0(0x98)]();}async[_0xe2c764(0x8d)](){const _0x3a2afd=_0xe2c764;await this[_0x3a2afd(0x9e)][_0x3a2afd(0x9c)][_0x3a2afd(0x92)](_0x43410f)[_0x3a2afd(0x8d)]();}async[_0xe2c764(0x8a)]({message:_0x2d06ee,quickActionData:_0x4ed2e1}){const _0x32f050=_0xe2c764;await this[_0x32f050(0x9e)][_0x32f050(0x9c)][_0x32f050(0x92)](_0x43410f)[_0x32f050(0x8a)]({'message':_0x2d06ee,'quickActionData':_0x4ed2e1});}[_0xe2c764(0x9a)](){const _0x405b54=_0xe2c764;this[_0x405b54(0x9e)][_0x405b54(0x9c)][_0x405b54(0x92)](_0x43410f)[_0x405b54(0x9a)]();}[_0xe2c764(0x9f)](){const _0x45e974=_0xe2c764;this[_0x45e974(0x9e)][_0x45e974(0x9c)][_0x45e974(0x92)](_0x43410f)[_0x45e974(0x9f)]();}}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/aichatcontroller
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AIConnector } from '../aicore/aiconnector.js';
|
|
11
|
+
import { AIChatConversation } from './model/aichatconversation.js';
|
|
12
|
+
import { DocumentCompare } from '@ckeditor/ckeditor5-collaboration-core';
|
|
13
|
+
import { AIBalloon } from '../aiballoon/aiballoon.js';
|
|
14
|
+
import { type AIQuickActionRequestData } from '../aiquickactions/aiquickactions.js';
|
|
15
|
+
export declare class AIChatController extends ContextPlugin {
|
|
16
|
+
/**
|
|
17
|
+
* Active conversation (currently open and visible in UI).
|
|
18
|
+
*
|
|
19
|
+
* @observable
|
|
20
|
+
*/
|
|
21
|
+
activeConversation?: AIChatConversation;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof AIConnector, typeof AIBalloon, typeof DocumentCompare];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "AIChatController";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isOfficialPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static get isPremiumPlugin(): true;
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
init(): void;
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
afterInit(): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Loads a conversation by its ID and sets it as the active conversation.
|
|
48
|
+
*/
|
|
49
|
+
loadConversation(conversationId: string): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Handles the removal of a conversation from the history.
|
|
52
|
+
* If the removed conversation is currently active, it starts a new conversation.
|
|
53
|
+
*/
|
|
54
|
+
handleRemovedConversation(conversationId: string): void;
|
|
55
|
+
addSelectionToChatContext(): Promise<void>;
|
|
56
|
+
removeSelectionFromChatContext(): void;
|
|
57
|
+
focusPromptInput(): void;
|
|
58
|
+
startConversation(): Promise<void>;
|
|
59
|
+
sendMessage({ message, quickActionData }: {
|
|
60
|
+
message: string;
|
|
61
|
+
quickActionData?: AIQuickActionRequestData;
|
|
62
|
+
}): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Gets the group ID for the current editor.
|
|
65
|
+
*/
|
|
66
|
+
getGroupId(): string;
|
|
67
|
+
updateConversationTitle(title: string | undefined, shouldAnimate?: boolean): void;
|
|
68
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x1512c2=_0x3134;(function(_0x5eb13a,_0x7d743a){const _0x3d8e36=_0x3134,_0x451fad=_0x5eb13a();while(!![]){try{const _0x1872b3=parseInt(_0x3d8e36(0x190))/0x1*(-parseInt(_0x3d8e36(0x231))/0x2)+parseInt(_0x3d8e36(0x1d1))/0x3*(parseInt(_0x3d8e36(0x236))/0x4)+parseInt(_0x3d8e36(0x2a5))/0x5*(parseInt(_0x3d8e36(0x2b8))/0x6)+parseInt(_0x3d8e36(0x2b9))/0x7+-parseInt(_0x3d8e36(0x1c7))/0x8+parseInt(_0x3d8e36(0x2ac))/0x9+-parseInt(_0x3d8e36(0x1c3))/0xa;if(_0x1872b3===_0x7d743a)break;else _0x451fad['push'](_0x451fad['shift']());}catch(_0x1901cd){_0x451fad['push'](_0x451fad['shift']());}}}(_0x217d,0x1c36a));import{ContextPlugin as _0x2a1e68,Editor as _0x3bd855}from'ckeditor5/src/core.js';import{CKEditorError as _0x4b7d1b,logError as _0x52cd79,scrollViewportToShowTarget as _0x537b97,uid as _0x41d3ff}from'ckeditor5/src/utils.js';import{AIConnector as _0x2fb9fc}from'../aicore/aiconnector.js';import{AITabs as _0x5a4451}from'../aitabs/aitabs.js';import{AIChatConversation as _0x233f88}from'./model/aichatconversation.js';import{getTranslation as _0x1a8d84}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5a3655}from'../aicore/aiediting.js';import{AIChatModels as _0x22795b}from'./model/aichatmodels.js';import{getEditorFromContext as _0x5d8718}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1b0144,DATA_ID_MODEL_ATTRIBUTE as _0x4d5288}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x541a6d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x315b7f,getMinimalSelection as _0x2eda7b,getSuggestionPartsFromReply as _0x2b345}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2e3163,_DetachOperation as _0x179461}from'ckeditor5/src/engine.js';import{findOne as _0x44589e,getAttribute as _0x3a8ad2,serialize as _0x37ab75,Document as _0xcbe292,findByAttribute as _0x106f57}from'../aicore/utils/htmlparser.js';function _0x3134(_0x4a9c7d,_0x30bddb){const _0x217d15=_0x217d();return _0x3134=function(_0x31349c,_0x28ceb1){_0x31349c=_0x31349c-0x186;let _0x3fa19c=_0x217d15[_0x31349c];return _0x3fa19c;},_0x3134(_0x4a9c7d,_0x30bddb);}function _0x217d(){const _0x4d42e3=['addSelectionToChatContext','resource','content','set','updateConversationTitle','requires','_showConversationHistory','isDisabled','getRoot','query','addFeedItemStaticMessage','addOperation','populateSourceResourceBalloon','_removeAISelectionMarkers','dialogClosed','ai-chat-url-upload-failed','rootName','delete','removeSelectionFromChatContext','1709970TxmxpL','replyContentUpdated','loadSourceResources','state','1155328jgpmqC','Liked\x20response','mouseLeaveSuggestion','selectedModel','Suggestion\x20','AIChatController','remove','anchorId','startConversation','availableModels','39xGZXsl','locale','path','showFakeVisualSelection','isStarted','modification-delta','_getDocumentRangeForReplyChanges','document','viewRangeToDom','_applyOperationsAsSuggestions','source','options','start','children','capabilitiesUpdated','setAddContextOptions','getSelectionText','getAttribute','sourceId','conversationInitialized','stop','isOpen','DocumentCompare','hideFakeVisualSelection','isOfficialPlugin','addDocumentToContext','version','addSelectionToContext','getFirstRange','updateFeedItemAIReplySuggestionContent','_previewedChangeGroup','addFeedItemAIReply','range','stopInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','createConversation','resize','_scrollToSuggestionRange','startsWith','type','indexOf','find','push','addFilesToContext','stopListening','streaming','createPositionFromPath','isCurrentDocumentInContext','chat','ai-chat-controller-mouse-over','like','handleUserInteraction','showPrevious','loadConversation','_toggleReasoning','root','showChangeInText','editors','resizeTabs','model','updateCurrentDocumentInContext','_batchToChanges','focusPromptInput','abortPromptStream','maxOffset','editing','clearConversationContextUI','_stopLastInteraction','length','removeFeedInteraction','setConversationContext','_applySuggestion','change','finishInteraction','setIsMaximized','split','string','has','addFileToContext','replyChangeGroupStateUpdated','contextItemRemoved','setConversationTitle','data','toLocaleLowerCase','TrackChangesEditing','setContextItemLoading','resourceStateChanged','documentContextContent','updateFeedItemAIReplySuggestionPartState','resetMessageInput','AI_CHAT_CONTEXT_INVALID_DATA','collaboration.channelId','resources','ai-chat-resource-load-failed','closeSourceResourceBalloon','message','24418hBumTO','ai.chat.models.displayedModels','startInteraction','view','AI_CHAT_RESOURCE_LOAD_FAILED','53276pqqwOl','history','addContextOptionsChanged','_aiEditing','getChild','sourcePosition','undo','main','error','applyOperation','interactionStarted','contextItems','text-delta','ai-conversation-','_insertSuggestion','AI_CHAT_UNTITLED_CONVERSATION','lastInteraction','sendMessage','contextItemAdded','context','addFeedItemError','rejected','redo','_setIsMaximized','Showing\x20conversation\x20history...','AIChatUI','interactionDestroyed','ai-chat-controller-no-active-conversation','_balloonShowDiff','getChildren','rejectSuggestion','slice','AI_CHAT_GENERIC_ERROR','toggleLoadingSkeleton','close','isDocumentOperation','addResourceToContext','load','add','updateFeedInteractionHeader','$graveyard','filter','removeContextItem','cloneNode','selectModel','config','ai-chat-context-unsupported-type','changes','uid','removeSelectionFromContext','parse','current-document','AIConnector','updateFeedItemAIReplyContent','mapper','getInteraction','AITabs','_toggleWebSearch','_updateReplyContent','scrollFeedToSuggestion','replies','end','indexes','interactionFinished','unshift','addContextItem','applySuggestion','getDocumentData','removeMarker','new','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_filterModels','pending','_createFromRanges','handleRemovedConversation','isInContext','ai-request-aborted','isCurrentDocumentInConversation','alignToTop','addFeedItemAISuggestion','getPath','showNext','ai-chat-file-upload-failed','activeConversation','commands','getRanges','isLoading','_openBalloonFor','map','AIEditing','createPositionAt','getMarkersGroup','afterInit','markers','Failed\x20to\x20load\x20conversation','ai.chat.models.defaultModelId','domConverter','uploadProgressChanged','sourceResourcesLoaded','pluginName','updateContent','AI_CHAT_ABORTED_MESSAGE','partIndex','toggleSuggestionDisplayMode','from','setChangeGroupState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','selection','interactionCreated','updateFeedItemAIReplySources','addCurrentDocumentToContext','160315NKaPAo','replyCreated','forEach','dislike','interactionId','ready','removeFromContext','253143ZPpatw','getDocumentContext','clearPendingContextUI','addFeedItemUserMessage','_logError','_aiChatModels','setModel','static','toggleReasoning','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','name','get','42SEJWSp','1489691OFYjiY','removed','ai-chat-source-resources-load-failed','toViewRange','nextSibling','getReply','changeGroups','provider','ai.chat.context','insertSuggestion','_flushLastInteractionUI','AI_CHAT_UNABLE_TO_START_CONVERSATION','data-id','open','createRange','addUrlToContext','howMany','updateResourceState','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','updateCapabilities','_removeFromContext','getGroupId','activateTab','getInteractionAndReplyById','resetConversationTitle','contextSent','setIsUploadInProgress','plugins','baseVersion','accepted','ai-chat-missing-channel-id','mouseOverSuggestion','revert','contextItem','resourceId','isUploadInProgress','getDiff','_aiConnector','17TaqPPG','getOperations','toggleWebSearch','getChildAtOffset','contextItemLoadingEnded','addFeedInteractionHeader','batch','Disliked\x20response','node','uiId','_integrateEditor','_handleStartConversation','log','ai-chat-conversation-start-failed','sendUserMessage','modelSelected','resizedTabs','full','setFeedItemRenderingStrategy','listenTo','replyId','ai-chat-context-invalid-data','setSelectedModel','getTransformedByOperation','Undo','ai-chat-conversation-init-failed','sources','isPremiumPlugin','init','_handleUIUserMessage','_aiChatUi','showDiff'];_0x217d=function(){return _0x4d42e3;};return _0x217d();}import{IconAI as _0x98f017}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4cff32}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x36fb35}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x2a1e68{[_0x1512c2(0x239)];[_0x1512c2(0x18f)];[_0x1512c2(0x1ae)];[_0x1512c2(0x2b1)];[_0x1512c2(0x20e)]=new Map();[_0x1512c2(0x1ef)]=null;[_0x1512c2(0x252)]=!0x1;static get[_0x1512c2(0x1b5)](){return[_0x2fb9fc,_0x36fb35,_0x1b0144];}static get[_0x1512c2(0x299)](){const _0x3cbded=_0x1512c2;return _0x3cbded(0x1cc);}static get[_0x1512c2(0x1e9)](){return!0x0;}static get[_0x1512c2(0x1ab)](){return!0x0;}[_0x1512c2(0x1ac)](){const _0x2e789e=_0x1512c2;this[_0x2e789e(0x18f)]=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x26a)),this[_0x2e789e(0x1ae)]=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x24f)),this[_0x2e789e(0x239)]=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x28f)),this[_0x2e789e(0x2b1)]=new _0x22795b({'connector':this[_0x2e789e(0x18f)]});const _0x441c17=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x26e));this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1cf),()=>{const _0x445964=_0x2e789e;this[_0x445964(0x19b)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x19e),(_0x3f1c71,_0x29d531)=>{const _0x20b404=_0x2e789e;this[_0x20b404(0x1ad)]({'userMessage':_0x29d531});}),this[_0x2e789e(0x1a3)](_0x441c17,_0x2e789e(0x1a0),(_0x124c12,_0x19d6ed)=>{const _0x21b423=_0x2e789e;this[_0x21b423(0x24d)](_0x19d6ed);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x20b),()=>{const _0x536744=_0x2e789e;_0x441c17[_0x536744(0x1f5)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x210),async()=>{const _0x169daf=_0x2e789e;await this[_0x169daf(0x214)](),await this[_0x169daf(0x2c3)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1ea),()=>{const _0x3fa5e5=_0x2e789e;this[_0x3fa5e5(0x289)]?.[_0x3fa5e5(0x2a4)](_0x1a8d84(this[_0x3fa5e5(0x249)][_0x3fa5e5(0x1d2)],_0x3fa5e5(0x2cb)));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x21f),(_0x59505d,_0x5abce1)=>{const _0x3c1619=_0x2e789e;this[_0x3c1619(0x289)]?.[_0x3c1619(0x1fc)](Array[_0x3c1619(0x29e)](_0x5abce1));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2c8),(_0x57f07e,_0x57517d)=>{const _0x162567=_0x2e789e;this[_0x162567(0x289)]?.[_0x162567(0x2c8)](_0x57517d);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x25a),(_0x1f92dd,_0x776c88)=>{const _0x1ab0ad=_0x2e789e;this[_0x1ab0ad(0x289)]?.[_0x1ab0ad(0x25a)](_0x776c88[_0x1ab0ad(0x1db)],_0x776c88[_0x1ab0ad(0x1b1)]);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x260),(_0x369ff4,_0x22b4a2)=>{const _0x1c2f3e=_0x2e789e;this[_0x1c2f3e(0x2cd)](_0x22b4a2);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1c5),(_0x4f7144,_0x304058)=>{const _0x3ef9bf=_0x2e789e;this[_0x3ef9bf(0x289)]?.[_0x3ef9bf(0x1c5)](_0x304058[_0x3ef9bf(0x1e3)],_0x304058[_0x3ef9bf(0x1b9)],_0x304058[_0x3ef9bf(0x266)]);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x192),()=>{const _0x5548f5=_0x2e789e;this[_0x5548f5(0x26f)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2b4),()=>{const _0x4ed6c4=_0x2e789e;this[_0x4ed6c4(0x207)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x262),(_0x263df8,_0x1dbb54)=>{const _0x8f4526=_0x2e789e;this[_0x8f4526(0x289)]?.[_0x8f4526(0x2b2)](_0x1dbb54);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x203),(_0xdd61c8,{replyId:_0x15952d})=>{const _0x520eed=_0x2e789e;console[_0x520eed(0x19c)](_0x520eed(0x1c8),_0x15952d);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2a8),(_0x1df40e,{replyId:_0x1448b7})=>{const _0x460bdf=_0x2e789e;console[_0x460bdf(0x19c)](_0x460bdf(0x197),_0x1448b7);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2c2),(_0x1fec8b,_0x3f3f56)=>{const _0x1f3882=_0x2e789e;this[_0x1f3882(0x249)][_0x1f3882(0x2d4)][_0x1f3882(0x2b7)](_0x36fb35)[_0x1f3882(0x258)](),this[_0x1f3882(0x244)](_0x3f3f56);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x209),(_0x3d66f0,{replyId:_0x158f3d,partIndex:_0xd96fa0})=>{const _0x299f85=_0x2e789e;this[_0x299f85(0x252)]=this[_0x299f85(0x1ae)][_0x299f85(0x1af)],this[_0x299f85(0x28d)](_0x158f3d,_0xd96fa0);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x189),(_0x2a0a50,{replyId:_0x2ff6e5,partIndex:_0x49f5c4})=>{const _0x12d9aa=_0x2e789e,_0x1536f9=this[_0x12d9aa(0x1d7)](_0x2ff6e5,_0x49f5c4);_0x1536f9&&_0x12d9aa(0x25e)!=_0x1536f9[_0x12d9aa(0x1f1)][_0x12d9aa(0x208)][_0x12d9aa(0x1c0)]&&this[_0x12d9aa(0x239)][_0x12d9aa(0x1d4)]([_0x1536f9[_0x12d9aa(0x1f1)]],_0x12d9aa(0x202));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1c9),()=>{const _0x1fa1a4=_0x2e789e;this[_0x1fa1a4(0x239)][_0x1fa1a4(0x1e8)](_0x1fa1a4(0x202));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x278),(_0x5828a9,_0x481e8a)=>{const _0x556873=_0x2e789e;this[_0x556873(0x249)][_0x556873(0x2d4)][_0x556873(0x2b7)](_0x36fb35)[_0x556873(0x258)](),this[_0x556873(0x218)](_0x481e8a);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x29d),async(_0x3610a2,_0x4e173b)=>{const _0x3a0c98=_0x2e789e,{reply:_0x16239c}=this[_0x3a0c98(0x2d0)](_0x4e173b[_0x3a0c98(0x1a4)]),_0x18c79f=_0x5d8718(this[_0x3a0c98(0x249)]),_0x15f01e=_0x2b345({'editor':_0x18c79f,'changeGroups':_0x16239c[_0x3a0c98(0x2bf)],'documentContextContent':_0x16239c[_0x3a0c98(0x228)],'showDiff':_0x4e173b[_0x3a0c98(0x1af)]});await this[_0x3a0c98(0x1ae)][_0x3a0c98(0x1ee)]({'id':_0x16239c['id'],'parts':_0x15f01e,'renderingStrategy':_0x3a0c98(0x2b3)});}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x254),(_0x39c72e,{replyId:_0x7512ba,partIndex:_0x5d00b2})=>{const _0x7c2c1a=_0x2e789e;this[_0x7c2c1a(0x1ef)]?.[_0x7c2c1a(0x1a4)]==_0x7512ba&&this[_0x7c2c1a(0x1ef)]?.[_0x7c2c1a(0x29c)]==_0x5d00b2&&this[_0x7c2c1a(0x249)][_0x7c2c1a(0x2d4)][_0x7c2c1a(0x2b7)](_0x36fb35)[_0x7c2c1a(0x258)]();const {reply:_0x5c6dc8}=this[_0x7c2c1a(0x2d0)](_0x7512ba);_0x5c6dc8[_0x7c2c1a(0x29f)](_0x5d00b2,_0x7c2c1a(0x24b)),this[_0x7c2c1a(0x239)][_0x7c2c1a(0x1e8)](_0x7c2c1a(0x202));});}async[_0x1512c2(0x292)](){const _0xb4a00d=_0x1512c2;this[_0xb4a00d(0x249)]instanceof _0x3bd855?this[_0xb4a00d(0x19a)](this[_0xb4a00d(0x249)]):this[_0xb4a00d(0x1a3)](this[_0xb4a00d(0x249)][_0xb4a00d(0x20a)],_0xb4a00d(0x25c),(_0x435b97,_0x4648d7)=>{const _0x39a104=_0xb4a00d;_0x4648d7['on'](_0x39a104(0x2aa),()=>{const _0x14ea28=_0x39a104;this[_0x14ea28(0x19a)](_0x4648d7);});}),await this[_0xb4a00d(0x19b)]();}[_0x1512c2(0x244)](_0x41a05d){const _0x20f8c2=_0x1512c2,_0x3ca4f7=_0x5d8718(this[_0x20f8c2(0x249)]);if(!_0x3ca4f7[_0x20f8c2(0x2d4)][_0x20f8c2(0x21e)](_0x20f8c2(0x225)))return;const _0xcb26c6=this[_0x20f8c2(0x249)][_0x20f8c2(0x2d4)][_0x20f8c2(0x2b7)](_0x20f8c2(0x1e7)),{reply:_0x399ad9,interaction:_0x153b7c}=this[_0x20f8c2(0x2d0)](_0x41a05d[_0x20f8c2(0x1a4)]),_0x3db220=this[_0x20f8c2(0x1d7)](_0x41a05d[_0x20f8c2(0x1a4)],_0x41a05d[_0x20f8c2(0x29c)]),_0x5bba6f=void 0x0!==_0x41a05d[_0x20f8c2(0x29c)]?[_0x399ad9[_0x20f8c2(0x2bf)][_0x41a05d[_0x20f8c2(0x29c)]]]:_0x399ad9[_0x20f8c2(0x2bf)][_0x20f8c2(0x25f)](_0x239149=>_0x20f8c2(0x27e)==_0x239149[_0x20f8c2(0x1c6)]),_0x3a2ff3=_0x5bba6f[_0x20f8c2(0x28e)](_0x3b1edc=>_0x399ad9[_0x20f8c2(0x2bf)][_0x20f8c2(0x1f9)](_0x3b1edc));_0x3a2ff3[_0x20f8c2(0x2a7)](_0x2831f7=>_0x399ad9[_0x20f8c2(0x29f)](_0x2831f7,_0x20f8c2(0x187)));const _0x478ca6=_0x541a6d({'editor':_0x3ca4f7,'reply':_0x399ad9,'interaction':_0x153b7c,'groups':_0x5bba6f,'transform':!0x0,'documentCompare':_0xcb26c6,'documentCompareOptions':{'anchor':_0x20f8c2(0x23d),'markDeletions':!0x0}});let _0x20bd93;_0x3db220&&this[_0x20f8c2(0x1f6)](_0x3db220[_0x20f8c2(0x1f1)]),_0x3ca4f7[_0x20f8c2(0x20c)][_0x20f8c2(0x219)](_0x18e219=>{const _0xf168fa=_0x20f8c2;_0x20bd93=_0x18e219[_0xf168fa(0x196)],_0x3ca4f7[_0xf168fa(0x2d4)][_0xf168fa(0x2b7)](_0xf168fa(0x225))[_0xf168fa(0x1da)](_0x478ca6),this[_0xf168fa(0x239)][_0xf168fa(0x1e8)](_0xf168fa(0x202));}),this[_0x20f8c2(0x20e)][_0x20f8c2(0x1b3)](_0x20bd93,{'interactionId':_0x153b7c['id'],'replyId':_0x399ad9['id'],'indexes':_0x3a2ff3[_0x20f8c2(0x255)]()});}[_0x1512c2(0x218)](_0x5281bb){const _0x176377=_0x1512c2,_0x79071a=_0x5d8718(this[_0x176377(0x249)]),_0x1243ba=this[_0x176377(0x249)][_0x176377(0x2d4)][_0x176377(0x2b7)](_0x1b0144),{reply:_0x59a968,interaction:_0x512219}=this[_0x176377(0x2d0)](_0x5281bb[_0x176377(0x1a4)]),_0x5b1783=this[_0x176377(0x1d7)](_0x5281bb[_0x176377(0x1a4)],_0x5281bb[_0x176377(0x29c)]),_0x31af98=void 0x0!==_0x5281bb[_0x176377(0x29c)]?[_0x59a968[_0x176377(0x2bf)][_0x5281bb[_0x176377(0x29c)]]]:_0x59a968[_0x176377(0x2bf)][_0x176377(0x25f)](_0x15efa9=>_0x176377(0x27e)==_0x15efa9[_0x176377(0x1c6)]),_0x5de8e3=_0x31af98[_0x176377(0x28e)](_0x14c00b=>_0x59a968[_0x176377(0x2bf)][_0x176377(0x1f9)](_0x14c00b));_0x5de8e3[_0x176377(0x2a7)](_0xcd399b=>_0x59a968[_0x176377(0x29f)](_0xcd399b,_0x176377(0x187)));const _0x2beb90=_0x541a6d({'editor':_0x79071a,'reply':_0x59a968,'interaction':_0x512219,'groups':_0x31af98,'transform':!0x0,'documentCompare':_0x1243ba,'documentCompareOptions':{'anchor':_0x176377(0x23d),'markDeletions':!0x1}});let _0x48afac;_0x5b1783&&this[_0x176377(0x1f6)](_0x5b1783[_0x176377(0x1f1)]),_0x79071a[_0x176377(0x20c)][_0x176377(0x219)](_0x30fce1=>{const _0x5a070f=_0x176377;_0x48afac=_0x30fce1[_0x5a070f(0x196)];for(const _0x4072a3 of _0x2beb90)_0x4072a3[_0x5a070f(0x186)]=_0x79071a[_0x5a070f(0x20c)][_0x5a070f(0x1d8)][_0x5a070f(0x1eb)],_0x30fce1[_0x5a070f(0x196)][_0x5a070f(0x1bb)](_0x4072a3),_0x79071a[_0x5a070f(0x20c)][_0x5a070f(0x23f)](_0x4072a3);}),this[_0x176377(0x20e)][_0x176377(0x1b3)](_0x48afac,{'interactionId':_0x512219['id'],'replyId':_0x59a968['id'],'indexes':_0x5de8e3[_0x176377(0x255)]()});}[_0x1512c2(0x28d)](_0x4747d0,_0x456f0e){const _0x3f8920=_0x1512c2,_0xbd6d10=_0x5d8718(this[_0x3f8920(0x249)]),_0x491323=this[_0x3f8920(0x1d7)](_0x4747d0,_0x456f0e),_0x804cee=this[_0x3f8920(0x249)][_0x3f8920(0x2d4)][_0x3f8920(0x2b7)](_0x36fb35);if(!_0x491323)return void _0x804cee[_0x3f8920(0x258)]();const {range:_0x304f21,currentIndex:_0x2e244a,previousIndex:_0x276a17,nextIndex:_0x2140fa}=_0x491323;if(this[_0x3f8920(0x1ef)]?.[_0x3f8920(0x1a4)]==_0x4747d0&&this[_0x3f8920(0x1ef)]?.[_0x3f8920(0x29c)]==_0x2e244a)return;this[_0x3f8920(0x1ef)]={'replyId':_0x4747d0,'partIndex':_0x2e244a};const _0x1323fa=new _0x4cff32(_0xbd6d10[_0x3f8920(0x1d2)],{'showDiff':this[_0x3f8920(0x252)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x3f8920(0x1a1)},'hideHeader':!0x0}),{reply:_0x58be6d}=this[_0x3f8920(0x2d0)](_0x4747d0),_0x90212e=_0x2b345({'editor':_0xbd6d10,'changeGroups':[_0x58be6d[_0x3f8920(0x2bf)][_0x2e244a]],'documentContextContent':_0x58be6d[_0x3f8920(0x228)],'showDiff':this[_0x3f8920(0x252)]});_0x1323fa[_0x3f8920(0x29a)]({'parts':_0x90212e,'renderingStrategy':_0x3f8920(0x2b3)});const _0x45fa17=_0x2e244a!==_0x276a17;this[_0x3f8920(0x1f6)](_0x304f21,!0x0),_0x804cee[_0x3f8920(0x2c6)]({'index':_0x2e244a,'title':_0x3f8920(0x1cb)+(_0x2e244a+0x1),'icon':_0x98f017,'mainView':_0x1323fa,'showRotator':_0x45fa17,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x304f21]}),this[_0x3f8920(0x1ae)][_0x3f8920(0x271)](_0x4747d0,_0x2e244a),this[_0x3f8920(0x1a3)](_0x1323fa,_0x3f8920(0x29d),(_0x171346,{showDiff:_0x25de73})=>{const _0x379bf0=_0x3f8920;this[_0x379bf0(0x252)]=_0x25de73;const {reply:_0x5a2c3b}=this[_0x379bf0(0x2d0)](_0x4747d0),_0x286f5b=_0x2b345({'editor':_0xbd6d10,'changeGroups':[_0x5a2c3b[_0x379bf0(0x2bf)][_0x2e244a]],'documentContextContent':_0x5a2c3b[_0x379bf0(0x228)],'showDiff':_0x25de73});_0x1323fa[_0x379bf0(0x29a)]({'parts':_0x286f5b,'renderingStrategy':_0x379bf0(0x2b3)});}),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x278),()=>{const _0x3d8469=_0x3f8920;this[_0x3d8469(0x218)]({'replyId':_0x4747d0,'partIndex':_0x2e244a}),_0x45fa17?this[_0x3d8469(0x28d)](_0x4747d0,_0x2140fa):_0x804cee[_0x3d8469(0x258)]();}),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x2c2),()=>{const _0x3484a9=_0x3f8920;this[_0x3484a9(0x244)]({'replyId':_0x4747d0,'partIndex':_0x2e244a}),_0x45fa17?this[_0x3484a9(0x28d)](_0x4747d0,_0x2140fa):_0x804cee[_0x3484a9(0x258)]();}),_0x45fa17&&(this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x287),()=>{const _0x39e492=_0x3f8920;this[_0x39e492(0x28d)](_0x4747d0,_0x2140fa);}),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x205),()=>{const _0x2ab34e=_0x3f8920;this[_0x2ab34e(0x28d)](_0x4747d0,_0x276a17);})),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x1be),()=>{const _0x205997=_0x3f8920;this[_0x205997(0x1fd)](_0x804cee),this[_0x205997(0x1fd)](_0x1323fa),this[_0x205997(0x1ef)]=null;});}[_0x1512c2(0x1d7)](_0x5d6013,_0x347e86){const _0x4abff4=_0x1512c2,_0xb68bac=_0x5d8718(this[_0x4abff4(0x249)]),{reply:_0x29475a,interaction:_0x415263}=this[_0x4abff4(0x2d0)](_0x5d6013),_0x15a598=_0x29475a[_0x4abff4(0x2bf)][_0x4abff4(0x25f)](_0x3621f4=>_0x4abff4(0x27e)==_0x3621f4[_0x4abff4(0x1c6)]),_0x463b60=_0x15a598[_0x4abff4(0x28e)](_0x4590e0=>_0x29475a[_0x4abff4(0x2bf)][_0x4abff4(0x1f9)](_0x4590e0));void 0x0===_0x347e86&&(_0x347e86=_0x463b60[0x0]);const _0x14f0a6=_0x463b60[_0x4abff4(0x1f9)](_0x347e86);if(-0x1==_0x14f0a6)return null;const _0x3d4540=0x0==_0x14f0a6?_0x463b60[_0x463b60[_0x4abff4(0x215)]-0x1]:_0x463b60[_0x14f0a6-0x1],_0x22c8e0=_0x14f0a6==_0x463b60[_0x4abff4(0x215)]-0x1?_0x463b60[0x0]:_0x463b60[_0x14f0a6+0x1],_0x822f4f=_0x15a598[_0x14f0a6],_0xeb0317=new _0xcbe292([]),_0x463415=new _0xcbe292([]);for(const _0x15aea9 of _0x822f4f[_0x4abff4(0x265)])if(_0x4abff4(0x2ba)!=_0x15aea9[_0x4abff4(0x1f8)]&&_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x15aea9[_0x4abff4(0x198)][_0x4abff4(0x261)](!0x0)),_0x4abff4(0x27b)!=_0x15aea9[_0x4abff4(0x1f8)]){const _0xfd2840=_0x44589e(_0x7e2427=>_0x3a8ad2(_0x7e2427,_0x4abff4(0x2c5))==_0x15aea9['id'],_0x29475a[_0x4abff4(0x228)],!0x0);_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0xfd2840[_0x4abff4(0x261)](!0x0));}if(0x0==_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x215)]){if(_0x822f4f[_0x4abff4(0x265)][0x0][_0x4abff4(0x1ce)]){const _0x5e8fdf=_0x106f57(_0x4abff4(0x2c5),_0x822f4f[_0x4abff4(0x265)][0x0][_0x4abff4(0x1ce)],_0x29475a[_0x4abff4(0x228)]);_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x276)](_0x5e8fdf[_0x4abff4(0x261)](!0x0)),_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x276)](_0x5e8fdf[_0x4abff4(0x261)](!0x0)),_0x5e8fdf[_0x4abff4(0x2bd)]&&(_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x5e8fdf[_0x4abff4(0x2bd)][_0x4abff4(0x261)](!0x0)),_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x5e8fdf[_0x4abff4(0x2bd)][_0x4abff4(0x261)](!0x0)));}else{const _0x34c558=_0x29475a[_0x4abff4(0x228)][_0x4abff4(0x1de)][0x0];if(!_0x34c558)return null;_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x34c558[_0x4abff4(0x261)](!0x0)),_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x34c558[_0x4abff4(0x261)](!0x0));}}const _0xb9428d=_0x415263[_0x4abff4(0x2ad)](),_0x8b5915=_0xb68bac[_0x4abff4(0x223)][_0x4abff4(0x268)](_0xb9428d[_0x4abff4(0x1b2)]),_0x599080=_0x37ab75(_0xeb0317),_0x311112=_0xb68bac[_0x4abff4(0x223)][_0x4abff4(0x268)](_0x599080),_0x142d51=_0xb68bac[_0x4abff4(0x223)][_0x4abff4(0x268)](_0x599080),_0x1ef9e6=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x290)](_0x311112,0x0),_0x116778=_0x37ab75(_0x463415),_0x3b0f6f={'anchor':_0x1ef9e6,'markDeletions':!0x1},_0x5edcc2=_0xb68bac[_0x4abff4(0x2d4)][_0x4abff4(0x2b7)](_0x1b0144)[_0x4abff4(0x18e)](_0x599080,_0x116778,_0x3b0f6f)[_0x4abff4(0x191)]();if(!_0x5edcc2[_0x4abff4(0x215)])return null;_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x219)](_0x4ab7c9=>{const _0x5842c0=_0x4abff4;for(const _0xd4759 of _0x5edcc2)if(_0x5842c0(0x1cd)==_0xd4759[_0x5842c0(0x1f8)]){const _0x4e7b67=_0xd4759[_0x5842c0(0x23b)],_0x481397=_0xd4759[_0x5842c0(0x2c9)],_0x1d3a09=new _0x179461(_0x4e7b67,_0x481397);_0x4ab7c9[_0x5842c0(0x196)][_0x5842c0(0x1bb)](_0x1d3a09),_0xb68bac[_0x5842c0(0x20c)][_0x5842c0(0x23f)](_0x1d3a09);}else _0xd4759[_0x5842c0(0x186)]=null,_0xd4759[_0x5842c0(0x259)]=!0x1,_0x4ab7c9[_0x5842c0(0x196)][_0x5842c0(0x1bb)](_0xd4759),_0xb68bac[_0x5842c0(0x20c)][_0x5842c0(0x23f)](_0xd4759);});const _0x1a233c=_0x2eda7b(_0xb68bac,_0x5edcc2,_0x311112);_0x315b7f(_0xb68bac[_0x4abff4(0x20c)],_0x1a233c);const _0x32321e=_0x1a233c[_0x4abff4(0x1ed)]()[_0x4abff4(0x1dd)][_0x4abff4(0x1d3)][_0x4abff4(0x255)](),_0x3ae8ec=_0x1a233c[_0x4abff4(0x1ed)]()[_0x4abff4(0x273)][_0x4abff4(0x1d3)][_0x4abff4(0x255)](),_0x477aee=[];let _0x1c8ea9=_0x311112,_0x4f2c8e=_0x142d51;for(let _0x1f121b=0x0;_0x1f121b<_0x3ae8ec[_0x4abff4(0x215)];_0x1f121b++){const _0x5960f4=_0x1c8ea9[_0x4abff4(0x211)]-_0x3ae8ec[_0x1f121b];_0x477aee[_0x1f121b]=_0x4f2c8e[_0x4abff4(0x211)]-_0x5960f4,_0x1c8ea9=_0x1c8ea9[_0x4abff4(0x193)](_0x3ae8ec[_0x1f121b]),_0x4f2c8e=_0x4f2c8e[_0x4abff4(0x193)](_0x477aee[_0x1f121b]);}const _0x388d8e=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x2c7)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0x142d51,_0x32321e),_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0x142d51,_0x477aee)),_0x29e0be=_0x142d51[_0x4abff4(0x23a)](0x0)[_0x4abff4(0x1e2)](_0x4d5288),_0xf86c4d=Array[_0x4abff4(0x29e)](_0x8b5915[_0x4abff4(0x253)]())[_0x4abff4(0x1fa)](_0x23dd6=>_0x23dd6[_0x4abff4(0x1e2)](_0x4d5288)==_0x29e0be)[_0x4abff4(0x286)](),_0x296e61=_0x388d8e[_0x4abff4(0x1dd)][_0x4abff4(0x1d3)][_0x4abff4(0x255)](),_0x1ed6cc=_0x388d8e[_0x4abff4(0x273)][_0x4abff4(0x1d3)][_0x4abff4(0x255)]();_0x296e61[0x0]=_0xf86c4d[0x0]+_0x296e61[0x0],_0x1ed6cc[0x0]=_0xf86c4d[0x0]+_0x1ed6cc[0x0];let _0x4d258c=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x2c7)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1d8)][_0x4abff4(0x1b8)](),_0x296e61),_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1d8)][_0x4abff4(0x1b8)](),_0x1ed6cc));const _0x367c80=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1d8)][_0x4abff4(0x237)][_0x4abff4(0x191)](_0xb9428d[_0x4abff4(0x1eb)]);for(const _0x508e33 of _0x367c80)_0x4d258c=_0x2e3163[_0x4abff4(0x27f)](_0x4d258c[_0x4abff4(0x1a7)](_0x508e33));return{'range':_0x4d258c,'previousIndex':_0x3d4540,'nextIndex':_0x22c8e0,'currentIndex':_0x347e86};}[_0x1512c2(0x19a)](_0x3d42b4){const _0x182cd3=_0x1512c2;if(!_0x3d42b4[_0x182cd3(0x2d4)][_0x182cd3(0x21e)](_0x182cd3(0x1a8)))return;const _0x2e3739=_0x3d42b4[_0x182cd3(0x28a)][_0x182cd3(0x2b7)](_0x182cd3(0x23c)),_0x496899=_0x3d42b4[_0x182cd3(0x28a)][_0x182cd3(0x2b7)](_0x182cd3(0x24c));this[_0x182cd3(0x1a3)](_0x2e3739,_0x182cd3(0x18a),(_0x460c70,_0x77b0ef,_0x4042d9)=>{const _0x2923f2=_0x182cd3,_0x48c734=this[_0x2923f2(0x20e)][_0x2923f2(0x2b7)](_0x77b0ef);if(!_0x48c734)return;const _0x2d8da7=this[_0x2923f2(0x289)][_0x2923f2(0x26d)](_0x48c734[_0x2923f2(0x2a9)])[_0x2923f2(0x2be)](_0x48c734[_0x2923f2(0x1a4)]);_0x48c734[_0x2923f2(0x274)][_0x2923f2(0x2a7)](_0x3fc547=>_0x2d8da7[_0x2923f2(0x29f)](_0x3fc547,_0x2923f2(0x27e))),this[_0x2923f2(0x20e)][_0x2923f2(0x1c1)](_0x77b0ef),this[_0x2923f2(0x20e)][_0x2923f2(0x1b3)](_0x4042d9,_0x48c734);}),this[_0x182cd3(0x1a3)](_0x496899,_0x182cd3(0x18a),(_0x1499c3,_0x361189,_0x2e8313)=>{const _0x5ea7be=_0x182cd3,_0x1817d6=this[_0x5ea7be(0x20e)][_0x5ea7be(0x2b7)](_0x361189);if(!_0x1817d6)return;const _0x3378a4=this[_0x5ea7be(0x289)][_0x5ea7be(0x26d)](_0x1817d6[_0x5ea7be(0x2a9)])[_0x5ea7be(0x2be)](_0x1817d6[_0x5ea7be(0x1a4)]);_0x1817d6[_0x5ea7be(0x274)][_0x5ea7be(0x2a7)](_0x50818=>_0x3378a4[_0x5ea7be(0x29f)](_0x50818,_0x5ea7be(0x187))),this[_0x5ea7be(0x20e)][_0x5ea7be(0x1c1)](_0x361189),this[_0x5ea7be(0x20e)][_0x5ea7be(0x1b3)](_0x2e8313,_0x1817d6);});}async[_0x1512c2(0x206)](_0x8131c3){const _0x26fcc6=_0x1512c2;this[_0x26fcc6(0x249)][_0x26fcc6(0x2d4)][_0x26fcc6(0x2b7)](_0x36fb35)[_0x26fcc6(0x258)](),this[_0x26fcc6(0x1ae)][_0x26fcc6(0x1a2)](_0x26fcc6(0x2b3)),this[_0x26fcc6(0x1ae)][_0x26fcc6(0x257)](!0x0),await this[_0x26fcc6(0x214)]();try{const _0x2cca38=this[_0x26fcc6(0x249)][_0x26fcc6(0x2d4)][_0x26fcc6(0x2b7)](_0x5a4451);this[_0x26fcc6(0x1b4)]('\x20'),_0x2cca38[_0x26fcc6(0x234)][_0x26fcc6(0x2cf)](_0x26fcc6(0x201)),await this[_0x26fcc6(0x19b)](_0x8131c3);const {sessionId:_0x59d7c2}=this[_0x26fcc6(0x239)][_0x26fcc6(0x279)]();await this[_0x26fcc6(0x289)][_0x26fcc6(0x25b)](_0x8131c3,_0x59d7c2),this[_0x26fcc6(0x289)][_0x26fcc6(0x283)]()&&this[_0x26fcc6(0x289)][_0x26fcc6(0x2a4)](_0x1a8d84(this[_0x26fcc6(0x249)][_0x26fcc6(0x1d2)],_0x26fcc6(0x2cb)));}catch(_0x4f32d6){console[_0x26fcc6(0x23e)](_0x26fcc6(0x294),_0x4f32d6);}finally{this[_0x26fcc6(0x1ae)][_0x26fcc6(0x1a2)](_0x26fcc6(0x1fe)),this[_0x26fcc6(0x1ae)][_0x26fcc6(0x257)](!0x1);}}[_0x1512c2(0x280)](_0x42a5bd){const _0x54d1af=_0x1512c2;this[_0x54d1af(0x289)]['id']===_0x42a5bd&&this[_0x54d1af(0x19b)]();}async[_0x1512c2(0x1b0)](){const _0x1149f1=_0x1512c2,_0x23ab40=this[_0x1149f1(0x239)][_0x1149f1(0x1e1)]();this[_0x1149f1(0x289)]?.[_0x1149f1(0x1ec)](_0x23ab40),this[_0x1149f1(0x289)]?.[_0x1149f1(0x2a4)](_0x1a8d84(this[_0x1149f1(0x249)][_0x1149f1(0x1d2)],_0x1149f1(0x2cb)));}[_0x1512c2(0x1c2)](){const _0x467e20=_0x1512c2;this[_0x467e20(0x289)]?.[_0x467e20(0x267)]();}[_0x1512c2(0x20f)](){const _0xce0ec7=_0x1512c2;this[_0xce0ec7(0x1ae)][_0xce0ec7(0x20f)]();}async[_0x1512c2(0x1cf)](){const _0x571b83=_0x1512c2;await this[_0x571b83(0x19b)]();}async[_0x1512c2(0x247)]({message:_0x1ad932,quickActionData:_0xe45439}){const _0x382b87=_0x1512c2;await this[_0x382b87(0x1ad)]({'userMessage':_0x1ad932,'quickActionData':_0xe45439});}[_0x1512c2(0x2ce)](){const _0x3f37db=_0x1512c2,_0x3d81ed=this[_0x3f37db(0x249)][_0x3f37db(0x263)][_0x3f37db(0x2b7)](_0x3f37db(0x22c));if(!_0x3d81ed)throw new _0x4b7d1b(_0x3f37db(0x188),this);return _0x3d81ed;}async[_0x1512c2(0x19b)](_0x5bfb59){const _0x9f96a9=_0x1512c2,_0x2e1381=this[_0x9f96a9(0x249)][_0x9f96a9(0x2d4)][_0x9f96a9(0x2b7)](_0x36fb35);_0x2e1381[_0x9f96a9(0x1e6)]&&_0x2e1381[_0x9f96a9(0x258)](),await this[_0x9f96a9(0x214)]();const _0x22eaa=this[_0x9f96a9(0x2ce)](),_0x5cb8c3=_0x5bfb59||_0x41d3ff();this[_0x9f96a9(0x289)]=new _0x233f88({'connector':this[_0x9f96a9(0x18f)],'chatModels':this[_0x9f96a9(0x2b1)],'defaultModelId':this[_0x9f96a9(0x249)][_0x9f96a9(0x263)][_0x9f96a9(0x2b7)](_0x9f96a9(0x295)),'conversationId':_0x5cb8c3,'group':_0x22eaa,'getEditor':()=>_0x5d8718(this[_0x9f96a9(0x249)])}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x1e4),(_0x18d4f5,_0x33b2d5)=>{const _0x168750=_0x9f96a9;_0x33b2d5[_0x168750(0x1d0)]=this[_0x168750(0x27d)](_0x33b2d5[_0x168750(0x1d0)],this[_0x168750(0x249)][_0x168750(0x263)][_0x168750(0x2b7)](_0x168750(0x232))),this[_0x168750(0x1ae)][_0x168750(0x1f4)](_0x33b2d5),this[_0x168750(0x1ae)][_0x168750(0x22a)](),this[_0x168750(0x1ae)][_0x168750(0x2ae)](),this[_0x168750(0x1ae)][_0x168750(0x213)](),_0x5bfb59||(this[_0x168750(0x1ae)][_0x168750(0x2d1)](),this[_0x168750(0x289)]?.[_0x168750(0x2a4)](_0x1a8d84(this[_0x168750(0x249)][_0x168750(0x1d2)],_0x168750(0x2cb))));}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x297),(_0x53c941,_0x35e435)=>{const _0x7ec52=_0x9f96a9;this[_0x7ec52(0x1ae)][_0x7ec52(0x2d3)](_0x35e435[_0x7ec52(0x18d)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x2a2),(_0x17b105,_0x2358c1)=>{const _0x2b256d=_0x9f96a9;this[_0x2b256d(0x1ae)][_0x2b256d(0x2af)](_0x2358c1),this[_0x2b256d(0x1ae)][_0x2b256d(0x195)](_0x2358c1);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x240),(_0x360a20,_0x3c7ec5)=>{const _0x22050c=_0x9f96a9;this[_0x22050c(0x1ae)][_0x22050c(0x233)](_0x3c7ec5);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x275),async()=>{const _0x377e3a=_0x9f96a9;await this[_0x377e3a(0x1ae)][_0x377e3a(0x21a)]();}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x250),(_0x3792c4,_0x20ba36)=>{const _0x57e46b=_0x9f96a9;this[_0x57e46b(0x1ae)][_0x57e46b(0x216)](_0x20ba36['id']);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x222),(_0x3e462a,_0x36041c,_0x344d5b)=>{const _0x1937b1=_0x9f96a9;this[_0x1937b1(0x1b4)](_0x36041c,_0x344d5b);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x2a6),(_0x423419,_0xc3710d)=>{const _0x428a26=_0x9f96a9;this[_0x428a26(0x1ae)][_0x428a26(0x25d)]({'isVisible':!0x0,'id':_0xc3710d[_0x428a26(0x2a9)]}),_0x428a26(0x242)===_0xc3710d[_0x428a26(0x1f8)]?this[_0x428a26(0x1ae)][_0x428a26(0x1f0)](_0xc3710d):this[_0x428a26(0x1ae)][_0x428a26(0x285)](_0xc3710d);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x1c4),async(_0x2f0f56,_0x1af650,_0x11b90d)=>{const _0x25d2ad=_0x9f96a9;await this[_0x25d2ad(0x270)]({'reply':_0x1af650,'changeGroups':_0x11b90d});}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x220),(_0x204582,{reply:_0x3fa3fc,index:_0x45ba0c,state:_0x352bc6})=>{const _0x5ab162=_0x9f96a9;this[_0x5ab162(0x1ae)][_0x5ab162(0x229)]({'id':_0x3fa3fc['id'],'index':_0x45ba0c,'state':_0x352bc6});}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x248),(_0x1d9925,_0x4e4526)=>{const _0x5df77a=_0x9f96a9;if(this[_0x5df77a(0x1ae)][_0x5df77a(0x277)](_0x4e4526[_0x5df77a(0x18b)],_0x4e4526[_0x5df77a(0x28c)]),_0x5df77a(0x2a1)===_0x4e4526[_0x5df77a(0x18b)][_0x5df77a(0x1f8)]){const _0x1e3a30=[..._0x5d8718(this[_0x5df77a(0x249)])[_0x5df77a(0x20c)][_0x5df77a(0x1d8)][_0x5df77a(0x2a1)][_0x5df77a(0x28b)]()];this[_0x5df77a(0x239)][_0x5df77a(0x1d4)](_0x1e3a30,_0x5df77a(0x243)+this[_0x5df77a(0x289)]?.['id']);}}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x221),(_0x4a1c29,_0x4aba0b)=>{const _0x550c48=_0x9f96a9;this[_0x550c48(0x1ae)][_0x550c48(0x260)](_0x4aba0b[_0x550c48(0x199)]),_0x550c48(0x269)==_0x4aba0b[_0x550c48(0x199)]&&this[_0x550c48(0x1c2)](),_0x550c48(0x2a1)===_0x4aba0b[_0x550c48(0x1f8)]&&this[_0x550c48(0x239)][_0x550c48(0x1e8)](_0x550c48(0x243)+this[_0x550c48(0x289)]?.['id']);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x194),(_0x1cb0a1,_0x23eae3)=>{const _0x22cba2=_0x9f96a9;this[_0x22cba2(0x1ae)][_0x22cba2(0x226)](_0x23eae3[_0x22cba2(0x18b)][_0x22cba2(0x199)],_0x23eae3[_0x22cba2(0x28c)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x2d2),(_0x41bc32,_0x2eea36)=>{const _0x545fb9=_0x9f96a9;this[_0x545fb9(0x1ae)][_0x545fb9(0x217)](_0x2eea36[_0x545fb9(0x241)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x238),(_0x4b77a4,_0x2785f5)=>{const _0x55a1c5=_0x9f96a9;this[_0x55a1c5(0x1ae)][_0x55a1c5(0x1e0)](_0x2785f5[_0x55a1c5(0x1dc)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x298),(_0x1058d5,_0xcd85e1)=>{const _0x233820=_0x9f96a9;this[_0x233820(0x1ae)][_0x233820(0x1bc)](_0xcd85e1[_0x233820(0x1e3)],_0xcd85e1[_0x233820(0x1db)],_0xcd85e1[_0x233820(0x22d)],_0xcd85e1[_0x233820(0x266)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x227),(_0x5d9d78,_0x144be0)=>{const _0x45e230=_0x9f96a9;this[_0x45e230(0x1ae)][_0x45e230(0x2ca)](_0x144be0[_0x45e230(0x1e3)],_0x144be0[_0x45e230(0x18c)],_0x144be0[_0x45e230(0x281)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x1df),(_0x18e741,_0x3b5854)=>{const _0x343e9d=_0x9f96a9;this[_0x343e9d(0x1ae)][_0x343e9d(0x2cc)](_0x3b5854);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x19f),(_0x285105,_0x5d1acd)=>{const _0x80d81f=_0x9f96a9;this[_0x80d81f(0x1ae)][_0x80d81f(0x1a6)](_0x5d1acd[_0x80d81f(0x1ca)],_0x5d1acd[_0x80d81f(0x1b7)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x23e),(_0x8f5bca,{error:_0x5732a4,interactionId:_0x50dde4,fileName:_0x211819,url:_0x5902f3,sourceId:_0xb97c46,sourceLabel:_0x5f6c94})=>{const _0x519c13=_0x9f96a9,_0x5e547c=_0x50dde4?_0x50dde4+':'+_0x41d3ff():_0x41d3ff();_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x282))?this[_0x519c13(0x1ae)][_0x519c13(0x1ba)]({'staticMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x29b)),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x1a9))||_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x19d))?(this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x2c4)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4)):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x288))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x2a0),_0x211819),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x1bf))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x1f3),_0x5902f3),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x1a5))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x22b)),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x264))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x2b5)),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x2bb))?(_0xb97c46&&this[_0x519c13(0x1ae)][_0x519c13(0x22f)](_0xb97c46),this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x27c),_0x5f6c94||_0x519c13(0x1db)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4)):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x22e))?(this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x235)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4)):(this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x256)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4));}),await this[_0x9f96a9(0x289)][_0x9f96a9(0x1ac)](this[_0x9f96a9(0x249)][_0x9f96a9(0x263)][_0x9f96a9(0x2b7)](_0x9f96a9(0x2c1))),_0x5bfb59||await this[_0x9f96a9(0x289)][_0x9f96a9(0x1dd)]();}async[_0x1512c2(0x1ad)]({userMessage:_0x4f19c2,quickActionData:_0x47b037}){const _0x26cc7e=_0x1512c2;if(!this[_0x26cc7e(0x289)])throw new _0x4b7d1b(_0x26cc7e(0x251));this[_0x26cc7e(0x289)][_0x26cc7e(0x200)]()&&await this[_0x26cc7e(0x289)][_0x26cc7e(0x20d)](this[_0x26cc7e(0x239)][_0x26cc7e(0x279)]()),this[_0x26cc7e(0x289)]['id']&&this[_0x26cc7e(0x289)][_0x26cc7e(0x1d5)]&&await this[_0x26cc7e(0x289)][_0x26cc7e(0x204)]({'userMessage':_0x4f19c2,'quickActionData':_0x47b037}),this[_0x26cc7e(0x1bd)]();}[_0x1512c2(0x1bd)](){const _0x115ad2=_0x1512c2,_0x1f2d9c=_0x5d8718(this[_0x115ad2(0x249)])[_0x115ad2(0x20c)],_0x44086c=Array[_0x115ad2(0x29e)](_0x1f2d9c[_0x115ad2(0x293)][_0x115ad2(0x291)](_0x5a3655));_0x1f2d9c[_0x115ad2(0x219)](_0x395ca1=>{const _0x462d9f=_0x115ad2;_0x44086c[_0x462d9f(0x2a7)](_0x2cdea6=>_0x395ca1[_0x462d9f(0x27a)](_0x2cdea6));});}[_0x1512c2(0x1b6)](){const _0xff3bd5=_0x1512c2;console[_0xff3bd5(0x19c)](_0xff3bd5(0x24e));}[_0x1512c2(0x24d)](_0x7b3871){const _0x28b43a=_0x1512c2;this[_0x28b43a(0x1ae)][_0x28b43a(0x21b)](_0x7b3871);}[_0x1512c2(0x2b0)](_0x3f44ab){const _0x56c1dc=_0x1512c2;_0x52cd79(_0x3f44ab[_0x56c1dc(0x230)]);}[_0x1512c2(0x2cd)](_0x3f62aa){const _0x3899e1=_0x1512c2;this[_0x3899e1(0x289)]?.[_0x3899e1(0x2ab)](_0x3f62aa);}[_0x1512c2(0x26f)](){const _0x529583=_0x1512c2;this[_0x529583(0x289)]?.[_0x529583(0x192)]();}[_0x1512c2(0x207)](){const _0x375940=_0x1512c2;this[_0x375940(0x289)]?.[_0x375940(0x2b4)]();}[_0x1512c2(0x2d0)](_0x1e3907){const _0x4afef7=_0x1512c2,[_0x79e20a,_0x953f4d]=_0x1e3907[_0x4afef7(0x21c)](':'),_0x35bf56=this[_0x4afef7(0x289)][_0x4afef7(0x26d)](_0x79e20a),_0x34b386=_0x35bf56[_0x4afef7(0x2be)](_0x953f4d);return{'interaction':_0x35bf56,'reply':_0x34b386};}[_0x1512c2(0x1f6)](_0x52e585,_0xe2bd9d=!0x1){const _0x1050a0=_0x1512c2,_0x438941=_0x5d8718(this[_0x1050a0(0x249)]),_0x5b265a={'target':_0x438941[_0x1050a0(0x212)][_0x1050a0(0x234)][_0x1050a0(0x296)][_0x1050a0(0x1d9)](_0x438941[_0x1050a0(0x212)][_0x1050a0(0x26c)][_0x1050a0(0x2bc)](_0x52e585)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xe2bd9d};_0xe2bd9d&&(_0x5b265a[_0x1050a0(0x284)]=!0x0),_0x537b97(_0x5b265a);}[_0x1512c2(0x1b4)](_0xa3556b,_0x1ba9f6=!0x1){const _0x1e4d70=_0x1512c2;this[_0x1e4d70(0x1ae)][_0x1e4d70(0x222)](_0xa3556b||_0x1a8d84(this[_0x1e4d70(0x249)][_0x1e4d70(0x1d2)],_0x1e4d70(0x245)),_0x1ba9f6);}[_0x1512c2(0x27d)](_0x1e2611,_0x2e26f8){const _0x4a03f2=_0x1512c2;let _0x9deaac;if(_0x2e26f8){_0x9deaac=[];const _0x25a998=_0x4a03f2(0x21d)==typeof _0x2e26f8?[_0x2e26f8[_0x4a03f2(0x224)]()]:_0x2e26f8[_0x4a03f2(0x28e)](_0x2ba944=>_0x2ba944[_0x4a03f2(0x224)]());for(const _0x270ecf of _0x25a998)for(const _0x45e817 of _0x1e2611)(_0x45e817['id'][_0x4a03f2(0x224)]()===_0x270ecf||_0x45e817[_0x4a03f2(0x2b6)][_0x4a03f2(0x224)]()===_0x270ecf||_0x45e817[_0x4a03f2(0x2c0)][_0x4a03f2(0x224)]()===_0x270ecf||_0x45e817['id'][_0x4a03f2(0x224)]()[_0x4a03f2(0x1f7)](_0x270ecf))&&_0x9deaac[_0x4a03f2(0x1fb)](_0x45e817);}else _0x9deaac=_0x1e2611;return _0x9deaac;}async[_0x1512c2(0x270)]({reply:_0x1e0ed6,changeGroups:_0x496ac0,renderingStrategy:_0x119984}){const _0x562c97=_0x1512c2,{id:_0x38b50d,isDone:_0x3c6a44,type:_0x253e95,parsedContent:_0x15ee9f}=_0x1e0ed6;if(_0x562c97(0x1d6)===_0x253e95){const _0xacece6=_0x5d8718(this[_0x562c97(0x249)]),_0x197023=_0x2b345({'editor':_0xacece6,'showDiff':this[_0x562c97(0x1ae)][_0x562c97(0x1af)],'changeGroups':_0x496ac0,'documentContextContent':_0x1e0ed6[_0x562c97(0x228)]});await this[_0x562c97(0x1ae)][_0x562c97(0x1ee)]({'id':_0x38b50d,'parts':_0x197023,'renderingStrategy':_0x119984,'isDone':_0x3c6a44});}else _0x562c97(0x242)===_0x253e95&&await this[_0x562c97(0x1ae)][_0x562c97(0x26b)]({'id':_0x38b50d,'parsedContent':_0x15ee9f,'renderingStrategy':_0x119984,'isDone':_0x3c6a44});_0x3c6a44&&_0x1e0ed6[_0x562c97(0x1aa)][_0x562c97(0x215)]>0x0&&this[_0x562c97(0x1ae)][_0x562c97(0x2a3)](_0x38b50d,_0x1e0ed6[_0x562c97(0x1aa)]);}async[_0x1512c2(0x214)](){const _0x33e07b=_0x1512c2,_0x2af290=this[_0x33e07b(0x289)]?.[_0x33e07b(0x246)];_0x2af290&&(_0x2af290[_0x33e07b(0x1e5)](),this[_0x33e07b(0x1ae)][_0x33e07b(0x1f2)](_0x2af290));}async[_0x1512c2(0x2c3)](){const _0x3fe80a=_0x1512c2,_0xe1dc5e=this[_0x3fe80a(0x289)]?.[_0x3fe80a(0x246)];if(_0xe1dc5e){for await(const _0x25e06f of _0xe1dc5e[_0x3fe80a(0x272)])await this[_0x3fe80a(0x270)]({'reply':_0x25e06f,'changeGroups':_0x25e06f[_0x3fe80a(0x2bf)],'renderingStrategy':_0x3fe80a(0x2b3)});}}}
|