@ckeditor/ckeditor5-ai 46.1.1 → 47.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +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 +2742 -0
- package/dist/index.css +3141 -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 +163 -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/{legacyerrors.js → aiassistant/legacyerrors.js} +1 -1
- 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 +92 -30
- 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 +102 -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 +23 -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 +255 -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/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 _0x1fdd(_0x199451,_0x59001f){const _0xc0dfa9=_0xc0df();return _0x1fdd=function(_0x1fddbc,_0x76d342){_0x1fddbc=_0x1fddbc-0x11d;let _0x36fcaa=_0xc0dfa9[_0x1fddbc];return _0x36fcaa;},_0x1fdd(_0x199451,_0x59001f);}const _0x53f035=_0x1fdd;(function(_0x2ebdaf,_0x5b00e0){const _0x20d088=_0x1fdd,_0x38427c=_0x2ebdaf();while(!![]){try{const _0xfa06e6=parseInt(_0x20d088(0x151))/0x1+-parseInt(_0x20d088(0x12f))/0x2*(-parseInt(_0x20d088(0x14c))/0x3)+-parseInt(_0x20d088(0x156))/0x4+-parseInt(_0x20d088(0x145))/0x5+parseInt(_0x20d088(0x129))/0x6*(-parseInt(_0x20d088(0x138))/0x7)+-parseInt(_0x20d088(0x14f))/0x8*(-parseInt(_0x20d088(0x132))/0x9)+parseInt(_0x20d088(0x124))/0xa;if(_0xfa06e6===_0x5b00e0)break;else _0x38427c['push'](_0x38427c['shift']());}catch(_0x233551){_0x38427c['push'](_0x38427c['shift']());}}}(_0xc0df,0xc12c0));import{ContextPlugin as _0x52eea}from'ckeditor5/src/core.js';import{AIConnector as _0x371b35}from'../aicore/aiconnector.js';import{AIEditing as _0x645edc}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2d4569,AIBalloonView as _0x1a27ae}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0xc0df(){const _0x2dd901=['6566645juuvrS','ranges','top','delegate','isOpen','plugins','icon','411633JURaWD','ai-balloon-','\x20ai-balloon-rotator','351504yeTBsx','AIEditing','1574080pPpwHX','_calculateOptimalTopPosition','hideFakeVisualSelection','ai-balloon','requires','3844164lkfYSz','_config','show','length','close','_calculateDialogPosition','editing','locale','model','title','left','index','1885140Zmdizu','open','setupRotator','get','height','6654aWPUNh','width','round','showFakeVisualSelection','aiBalloon','isPremiumPlugin','22aSpmHM','balloonView','pluginName','261tnqxEI','AIBalloon','dialogClosed','context','_setupVisualSelection','bind','9345xFkaGz','showRotator','ai-selection','innerHeight','fire','_showDialog','getBoundingClientRect','ai-balloon-selection','Dialog','isOfficialPlugin','getMarkersGroup','hide','markers'];_0xc0df=function(){return _0x2dd901;};return _0xc0df();}import{getAllMarkersDomElementsSorted as _0x5474c7}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x464ab3}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x2d4569,_0x53f035(0x134)];export class AIBalloon extends _0x52eea{static get[_0x53f035(0x155)](){return[_0x371b35,_0x645edc];}static get[_0x53f035(0x131)](){const _0x1951f1=_0x53f035;return _0x1951f1(0x133);}static get[_0x53f035(0x141)](){return!0x0;}static get[_0x53f035(0x12e)](){return!0x0;}[_0x53f035(0x149)]=!0x1;[_0x53f035(0x157)];[_0x53f035(0x125)](_0x1213c8){const _0x108268=_0x53f035,_0x3f8927=_0x464ab3(this[_0x108268(0x135)]);this[_0x108268(0x157)]=_0x1213c8,this[_0x108268(0x130)]=new _0x1a27ae(_0x3f8927[_0x108268(0x11f)],_0x1213c8),this[_0x108268(0x130)][_0x108268(0x148)](..._0x2d4569)['to'](this),this[_0x108268(0x13d)](_0x1213c8);}[_0x53f035(0x15a)](){const _0x1862f7=_0x53f035;_0x464ab3(this[_0x1862f7(0x135)])[_0x1862f7(0x14a)][_0x1862f7(0x127)](_0x1862f7(0x140))[_0x1862f7(0x143)]();}[_0x53f035(0x136)](_0x3d53b6,_0x1b1bd4){const _0x2e06e0=_0x53f035;this[_0x2e06e0(0x135)][_0x2e06e0(0x14a)][_0x2e06e0(0x127)](_0x645edc)[_0x2e06e0(0x12c)](_0x3d53b6,_0x2e06e0(0x14d)+_0x1b1bd4,!0x0,!0x0);}[_0x53f035(0x13d)](_0x173f94){const _0xa12577=_0x53f035,_0x19792a=_0x464ab3(this[_0xa12577(0x135)]);this[_0xa12577(0x136)](_0x173f94[_0xa12577(0x146)],_0x173f94[_0xa12577(0x123)]),_0x19792a[_0xa12577(0x14a)][_0xa12577(0x127)](_0xa12577(0x140))[_0xa12577(0x158)]({'title':_0x173f94[_0xa12577(0x121)],'icon':_0x173f94[_0xa12577(0x14b)],'hasCloseButton':!0x0,'id':_0xa12577(0x12d),'position':this[_0xa12577(0x11d)][_0xa12577(0x137)](this),'className':_0xa12577(0x154)+(_0x173f94[_0xa12577(0x139)]?_0xa12577(0x14e):''),'content':this[_0xa12577(0x130)],'onShow':_0x55dd80=>{const _0x11e3a4=_0xa12577;_0x173f94[_0x11e3a4(0x139)]&&this[_0x11e3a4(0x130)][_0x11e3a4(0x126)](_0x55dd80),this[_0x11e3a4(0x149)]=!0x0;},'onHide':()=>{const _0x2d814a=_0xa12577;this[_0x2d814a(0x135)][_0x2d814a(0x14a)][_0x2d814a(0x127)](_0x2d814a(0x150))[_0x2d814a(0x153)](_0x2d814a(0x14d)+_0x173f94[_0x2d814a(0x123)]),this[_0x2d814a(0x13c)](_0x2d814a(0x134)),this[_0x2d814a(0x149)]=!0x1;}});}[_0x53f035(0x11d)](_0x481ae9,_0x1c4bc8){const _0x4ee9ac=_0x53f035,_0x14283d=_0x464ab3(this[_0x4ee9ac(0x135)]);if(!_0x1c4bc8)return{'left':0x0,'top':0x0};const _0x189d2c=_0x5474c7(_0x14283d[_0x4ee9ac(0x11e)],[..._0x14283d[_0x4ee9ac(0x120)][_0x4ee9ac(0x144)][_0x4ee9ac(0x142)](_0x4ee9ac(0x13a)),..._0x14283d[_0x4ee9ac(0x120)][_0x4ee9ac(0x144)][_0x4ee9ac(0x142)](_0x4ee9ac(0x13f))]);if(!_0x189d2c||0x0===_0x189d2c[_0x4ee9ac(0x159)])return{'left':Math[_0x4ee9ac(0x12b)](_0x1c4bc8[_0x4ee9ac(0x122)]+_0x1c4bc8[_0x4ee9ac(0x12a)]/0x2-_0x481ae9[_0x4ee9ac(0x12a)]/0x2),'top':Math[_0x4ee9ac(0x12b)](_0x1c4bc8[_0x4ee9ac(0x147)]+_0x1c4bc8[_0x4ee9ac(0x128)]/0x2-_0x481ae9[_0x4ee9ac(0x128)]/0x2)};const _0x5d1ed5=Math[_0x4ee9ac(0x12b)](_0x1c4bc8[_0x4ee9ac(0x122)]+_0x1c4bc8[_0x4ee9ac(0x12a)]/0x2-_0x481ae9[_0x4ee9ac(0x12a)]/0x2),_0x49df84=_0x189d2c[0x0][_0x4ee9ac(0x13e)](),_0x47e1ce=_0x189d2c[_0x189d2c[_0x4ee9ac(0x159)]-0x1][_0x4ee9ac(0x13e)](),_0x4aadcc=_0x481ae9[_0x4ee9ac(0x128)],_0x1d1d3c=this[_0x4ee9ac(0x157)][_0x4ee9ac(0x139)]?0x8:0x0;return{'left':_0x5d1ed5,'top':this[_0x4ee9ac(0x152)](_0x49df84,_0x47e1ce,_0x4aadcc,_0x1d1d3c)};}[_0x53f035(0x152)](_0x55ac28,_0x27ed40,_0x53e53a,_0x4962cc=0x0){const _0x18eb81=_0x53f035,_0x32dbac=_0x27ed40[_0x18eb81(0x147)]+_0x27ed40[_0x18eb81(0x128)],_0x1c64a2=_0x55ac28[_0x18eb81(0x147)]-_0x53e53a-_0x4962cc,_0xe829bc=window[_0x18eb81(0x13b)]-_0x32dbac-0xa,_0x4e3aee=_0x55ac28[_0x18eb81(0x147)]-_0x4962cc-0xa;let _0x15c127;if(_0xe829bc>=_0x53e53a)_0x15c127=_0x32dbac+0xa;else{if(_0x4e3aee>=_0x53e53a)_0x15c127=_0x1c64a2-0xa;else _0x15c127=_0x55ac28[_0x18eb81(0x147)]+(_0x27ed40[_0x18eb81(0x147)]+_0x27ed40[_0x18eb81(0x128)])/0x2-(_0x53e53a+_0x4962cc)/0x2;}return _0x15c127;}}
|
|
@@ -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(_0x3d62a9,_0x17dbce){var _0x20c67b=_0xdbef,_0x461673=_0x3d62a9();while(!![]){try{var _0x4dde73=-parseInt(_0x20c67b(0x123))/0x1+-parseInt(_0x20c67b(0x12b))/0x2*(-parseInt(_0x20c67b(0x12a))/0x3)+-parseInt(_0x20c67b(0x124))/0x4*(parseInt(_0x20c67b(0x127))/0x5)+-parseInt(_0x20c67b(0x12f))/0x6+parseInt(_0x20c67b(0x130))/0x7+-parseInt(_0x20c67b(0x126))/0x8*(parseInt(_0x20c67b(0x12c))/0x9)+parseInt(_0x20c67b(0x125))/0xa;if(_0x4dde73===_0x17dbce)break;else _0x461673['push'](_0x461673['shift']());}catch(_0x510b31){_0x461673['push'](_0x461673['shift']());}}}(_0x3e13,0xea634));import{View as _0x38a859}from'ckeditor5/src/ui.js';function _0x3e13(){var _0x1efa10=['ck-ai-balloon__disclaimer','ck-ai-balloon__disclaimer-content','17943IUvIoT','94RuKilu','3069AsROUm','div','AI_DISCLAIMER_TEXT','2976810zjikBw','13320734DacJQc','setTemplate','1492413tsLMfr','2456hOREKS','29819300hcQoRp','26568acYlsF','8835kmQsIT'];_0x3e13=function(){return _0x1efa10;};return _0x3e13();}import{getTranslation as _0x1738c5}from'../../aicore/utils/common-translations.js';function _0xdbef(_0x9cb6e,_0x426685){var _0x3e1342=_0x3e13();return _0xdbef=function(_0xdbefef,_0xa37842){_0xdbefef=_0xdbefef-0x122;var _0x4fa37a=_0x3e1342[_0xdbefef];return _0x4fa37a;},_0xdbef(_0x9cb6e,_0x426685);}export class AIBalloonDisclaimerView extends _0x38a859{constructor(_0xabedc4){var _0xa126ab=_0xdbef;super(_0xabedc4),this[_0xa126ab(0x122)]({'tag':_0xa126ab(0x12d),'attributes':{'class':['ck',_0xa126ab(0x128)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xa126ab(0x129)]},'children':[{'text':_0x1738c5(_0xabedc4,_0xa126ab(0x12e))}]}]});}}
|
|
@@ -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 _0x4643(){const _0x212a8d=['1519917ymSpNW','bind','4qXhjQU','ck-ai-balloon__toolbar','8113239JxeLBl','8854085LqvtIi','ck-ai-button-secondary','suggestButton','63915434IyPsrF','isLoading','applyButton','ck-ai-button-primary','AI_BALLOON_APPLY_BUTTON','set','add','20EhVZxx','locale','13145072GKnWoI','_createButton','24iZRSdg','isEnabled','1554418WLRMnv','2oxvCBe','1659297BiDVzL','items','AI_BALLOON_SUGGEST_BUTTON','extendTemplate'];_0x4643=function(){return _0x212a8d;};return _0x4643();}const _0x1254c3=_0xb863;function _0xb863(_0x496cc2,_0x40abd3){const _0x46438e=_0x4643();return _0xb863=function(_0xb8636a,_0x2bfbbc){_0xb8636a=_0xb8636a-0x100;let _0x5c8eb9=_0x46438e[_0xb8636a];return _0x5c8eb9;},_0xb863(_0x496cc2,_0x40abd3);}(function(_0x58fb03,_0x362551){const _0x507c0b=_0xb863,_0x2b6a24=_0x58fb03();while(!![]){try{const _0x1ebfe0=-parseInt(_0x507c0b(0x114))/0x1+-parseInt(_0x507c0b(0x115))/0x2*(parseInt(_0x507c0b(0x116))/0x3)+-parseInt(_0x507c0b(0x101))/0x4*(parseInt(_0x507c0b(0x104))/0x5)+parseInt(_0x507c0b(0x112))/0x6*(-parseInt(_0x507c0b(0x11a))/0x7)+parseInt(_0x507c0b(0x110))/0x8+parseInt(_0x507c0b(0x103))/0x9*(-parseInt(_0x507c0b(0x10e))/0xa)+parseInt(_0x507c0b(0x107))/0xb;if(_0x1ebfe0===_0x362551)break;else _0x2b6a24['push'](_0x2b6a24['shift']());}catch(_0x4f1ba0){_0x2b6a24['push'](_0x2b6a24['shift']());}}}(_0x4643,0xdca94));import{ToolbarView as _0x3285f,ButtonView as _0x5b8faf}from'ckeditor5/src/ui.js';import{getTranslation as _0x2f3bb0}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x3285f{constructor(_0x3d2352,_0x4ad519=!0x0,_0x5c3fce=!0x0){const _0x5c19cc=_0xb863;super(_0x3d2352),this[_0x5c19cc(0x10c)](_0x5c19cc(0x108),!0x1),_0x4ad519&&(this[_0x5c19cc(0x109)]=this[_0x5c19cc(0x111)](_0x2f3bb0(_0x3d2352,_0x5c19cc(0x10b)),_0x5c19cc(0x10a)),this[_0x5c19cc(0x109)][_0x5c19cc(0x100)](_0x5c19cc(0x113))['to'](this,_0x5c19cc(0x108),_0x50ca62=>!_0x50ca62),this[_0x5c19cc(0x117)][_0x5c19cc(0x10d)](this[_0x5c19cc(0x109)])),_0x5c3fce&&(this[_0x5c19cc(0x106)]=this[_0x5c19cc(0x111)](_0x2f3bb0(_0x3d2352,_0x5c19cc(0x118)),_0x5c19cc(0x105)),this[_0x5c19cc(0x106)][_0x5c19cc(0x100)](_0x5c19cc(0x113))['to'](this,_0x5c19cc(0x108),_0x1c5ca3=>!_0x1c5ca3),this[_0x5c19cc(0x117)][_0x5c19cc(0x10d)](this[_0x5c19cc(0x106)])),this[_0x5c19cc(0x119)]({'attributes':{'class':[_0x5c19cc(0x102)]}});}[_0x1254c3(0x111)](_0xee5a19,_0x2e7037){const _0x5ee932=_0x1254c3,_0x4bb2fa=new _0x5b8faf(this[_0x5ee932(0x10f)]);return _0x4bb2fa[_0x5ee932(0x10c)]({'label':_0xee5a19,'class':_0x2e7037||'','isVisible':!0x0,'withText':!0x0}),_0x4bb2fa;}}
|
|
@@ -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
|
+
const _0x445ae5=_0x598d;(function(_0x554346,_0x24d585){const _0x268867=_0x598d,_0x5b9a9f=_0x554346();while(!![]){try{const _0x2ffe04=parseInt(_0x268867(0x13c))/0x1*(parseInt(_0x268867(0x142))/0x2)+-parseInt(_0x268867(0x13b))/0x3+parseInt(_0x268867(0x130))/0x4+-parseInt(_0x268867(0x143))/0x5+-parseInt(_0x268867(0x152))/0x6+parseInt(_0x268867(0x12c))/0x7+-parseInt(_0x268867(0x128))/0x8*(-parseInt(_0x268867(0x133))/0x9);if(_0x2ffe04===_0x24d585)break;else _0x5b9a9f['push'](_0x5b9a9f['shift']());}catch(_0x2f2880){_0x5b9a9f['push'](_0x5b9a9f['shift']());}}}(_0x447d,0xa7b6a));import{ButtonView as _0x41877c,View as _0x41672c,ViewCollection as _0x1d5357,FocusCycler as _0x47d5d3}from'ckeditor5/src/ui.js';import{FocusTracker as _0xd4127a,KeystrokeHandler as _0x4eed69}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x4d36c5,IconPreviousArrow as _0xb33b8f}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x235e24}from'./aiballoontoolbarview.js';function _0x598d(_0x523320,_0x4aa8b6){const _0x447dda=_0x447d();return _0x598d=function(_0x598deb,_0x418935){_0x598deb=_0x598deb-0x124;let _0x1f18b7=_0x447dda[_0x598deb];return _0x1f18b7;},_0x598d(_0x523320,_0x4aa8b6);}function _0x447d(){const _0x35e581=['_addContentView','isLoading','element','suggestButton','headerView','showPrevious','toolbar','_addToolbar','view','456GVyTgD','showNext','focusTracker','listenTo','3007998hBegJI','focusLast','focus','fire','2736820JVOISK','add','setTemplate','130095hQZQdk','focusCycler','_mainView','tab','set','createCollection','_focusables','AI_BALLOON_NEXT_TOOLTIP','1629420ZFBLfz','5yApZot','insertSuggestion','keystrokes','applySuggestion','showApplyButton','focusFirst','285210ddiFEW','1414195JiOjhK','setupRotator','addMany','setLoading','shift\x20+\x20tab','_createPreviousButtonView','locale','bind','disclaimerView','execute','children','_dialogContent','applyButton','_createNextButtonView','clear','6827676rEPqvk','ai-balloon-content','clearLoading','mainView','div','showSuggestButton','_addDisclaimerView','AI_BALLOON_PREVIOUS_TOOLTIP','render'];_0x447d=function(){return _0x35e581;};return _0x447d();}import{AIBalloonDisclaimerView as _0x381afc}from'./aiballoondisclaimerview.js';import{getTranslation as _0x1ee582}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x445ae5(0x13f),_0x445ae5(0x13d),_0x445ae5(0x129),_0x445ae5(0x124)];export class AIBalloonView extends _0x41672c{[_0x445ae5(0x12a)];[_0x445ae5(0x13e)];[_0x445ae5(0x134)];[_0x445ae5(0x139)];constructor(_0x250de6,_0x96a14c){const _0x15d9e7=_0x445ae5;super(_0x250de6),this[_0x15d9e7(0x137)](_0x15d9e7(0x15c),!0x1),this[_0x15d9e7(0x12a)]=new _0xd4127a(),this[_0x15d9e7(0x13e)]=new _0x4eed69(),this[_0x15d9e7(0x139)]=this[_0x15d9e7(0x138)](),this[_0x15d9e7(0x134)]=new _0x47d5d3({'focusables':this[_0x15d9e7(0x139)],'focusTracker':this[_0x15d9e7(0x12a)],'keystrokeHandler':this[_0x15d9e7(0x13e)],'actions':{'focusPrevious':_0x15d9e7(0x147),'focusNext':_0x15d9e7(0x136)}}),this[_0x15d9e7(0x14e)]=new _0x1d5357(),this[_0x15d9e7(0x15b)](_0x96a14c[_0x15d9e7(0x155)]),this[_0x15d9e7(0x158)](),this[_0x15d9e7(0x126)](_0x96a14c[_0x15d9e7(0x140)],_0x96a14c[_0x15d9e7(0x157)]),this[_0x15d9e7(0x125)][_0x15d9e7(0x14a)](_0x15d9e7(0x15c))['to'](this),this[_0x15d9e7(0x139)][_0x15d9e7(0x151)](),this[_0x15d9e7(0x139)][_0x15d9e7(0x145)]([this[_0x15d9e7(0x125)]]),this[_0x15d9e7(0x132)]({'tag':_0x15d9e7(0x156),'attributes':{'class':_0x15d9e7(0x153)},'children':this[_0x15d9e7(0x14e)]});}[_0x445ae5(0x15a)](){const _0x16d69d=_0x445ae5;super[_0x16d69d(0x15a)]();for(const _0x162055 of this[_0x16d69d(0x139)])this[_0x16d69d(0x12a)][_0x16d69d(0x131)](_0x162055[_0x16d69d(0x15d)]);this[_0x16d69d(0x13e)][_0x16d69d(0x12b)](this[_0x16d69d(0x15d)]);}[_0x445ae5(0x12e)](_0x18077d){const _0x127db3=_0x445ae5;-0x1===_0x18077d?this[_0x127db3(0x134)][_0x127db3(0x12d)]():this[_0x127db3(0x134)][_0x127db3(0x141)]();}[_0x445ae5(0x146)](){const _0x2ae3a2=_0x445ae5;this[_0x2ae3a2(0x15c)]=!0x0;}[_0x445ae5(0x154)](){const _0x2370cf=_0x445ae5;this[_0x2370cf(0x15c)]=!0x1;}[_0x445ae5(0x144)](_0x1d5bc4){const _0x244df8=_0x445ae5,_0x1a5195=this[_0x244df8(0x150)](),_0x21334e=this[_0x244df8(0x148)]();_0x1d5bc4[_0x244df8(0x127)][_0x244df8(0x15f)][_0x244df8(0x14d)][_0x244df8(0x131)](_0x1a5195,0x2),_0x1d5bc4[_0x244df8(0x127)][_0x244df8(0x15f)][_0x244df8(0x14d)][_0x244df8(0x131)](_0x21334e,0x0),this[_0x244df8(0x139)][_0x244df8(0x145)]([_0x1a5195,_0x21334e]),this[_0x244df8(0x12a)][_0x244df8(0x131)](_0x1a5195[_0x244df8(0x15d)]),this[_0x244df8(0x12a)][_0x244df8(0x131)](_0x21334e[_0x244df8(0x15d)]);}[_0x445ae5(0x15b)](_0x55a841){const _0x26d047=_0x445ae5;this[_0x26d047(0x135)]=_0x55a841,this[_0x26d047(0x14e)][_0x26d047(0x131)](this[_0x26d047(0x135)]);}[_0x445ae5(0x158)](){const _0x13e3b8=_0x445ae5;this[_0x13e3b8(0x14b)]=new _0x381afc(this[_0x13e3b8(0x149)]),this[_0x13e3b8(0x14e)][_0x13e3b8(0x131)](this[_0x13e3b8(0x14b)]);}[_0x445ae5(0x126)](_0x409d97=!0x0,_0x99e9de=!0x0){const _0x43961b=_0x445ae5;this[_0x43961b(0x125)]=new _0x235e24(this[_0x43961b(0x149)],_0x409d97,_0x99e9de),this[_0x43961b(0x125)][_0x43961b(0x14f)]?.['on'](_0x43961b(0x14c),()=>{const _0x5c528a=_0x43961b;this[_0x5c528a(0x12f)](_0x5c528a(0x13f));}),this[_0x43961b(0x125)][_0x43961b(0x15e)]?.['on'](_0x43961b(0x14c),()=>{const _0x8e2d65=_0x43961b;this[_0x8e2d65(0x12f)](_0x8e2d65(0x13d));}),this[_0x43961b(0x14e)][_0x43961b(0x131)](this[_0x43961b(0x125)]);}[_0x445ae5(0x150)](){const _0x5d52b3=_0x445ae5,_0x39ac70=new _0x41877c(this[_0x5d52b3(0x149)]);return _0x39ac70[_0x5d52b3(0x137)]({'icon':_0x4d36c5,'tooltip':_0x1ee582(this[_0x5d52b3(0x149)],_0x5d52b3(0x13a))}),_0x39ac70['on'](_0x5d52b3(0x14c),()=>{const _0x29e1ef=_0x5d52b3;this[_0x29e1ef(0x12f)](_0x29e1ef(0x129));}),_0x39ac70;}[_0x445ae5(0x148)](){const _0x5ab307=_0x445ae5,_0x578f7e=new _0x41877c(this[_0x5ab307(0x149)]);return _0x578f7e[_0x5ab307(0x137)]({'icon':_0xb33b8f,'tooltip':_0x1ee582(this[_0x5ab307(0x149)],_0x5ab307(0x159))}),_0x578f7e['on'](_0x5ab307(0x14c),()=>{const _0x125e96=_0x5ab307;this[_0x125e96(0x12f)](_0x125e96(0x124));}),_0x578f7e;}}
|
|
@@ -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 _0x50ec6a=_0x34df;(function(_0x3a4a57,_0x1b3b56){const _0x39613=_0x34df,_0x5cc356=_0x3a4a57();while(!![]){try{const _0x326c95=parseInt(_0x39613(0xb1))/0x1*(-parseInt(_0x39613(0xa6))/0x2)+-parseInt(_0x39613(0xb2))/0x3*(parseInt(_0x39613(0x9e))/0x4)+-parseInt(_0x39613(0xaa))/0x5+-parseInt(_0x39613(0xa3))/0x6+-parseInt(_0x39613(0xa2))/0x7*(parseInt(_0x39613(0x9f))/0x8)+-parseInt(_0x39613(0xb6))/0x9+parseInt(_0x39613(0xa5))/0xa;if(_0x326c95===_0x1b3b56)break;else _0x5cc356['push'](_0x5cc356['shift']());}catch(_0x22f8fa){_0x5cc356['push'](_0x5cc356['shift']());}}}(_0x3542,0xafa3d));function _0x3542(){const _0x355cc6=['isOfficialPlugin','requires','6604506tlNkBM','pluginName','AIChat','964GTDHAl','5028760xTlmje','plugins','startConversation','7vgMWnS','3233274GyHFtL','addSelectionToChatContext','44664860xexTbN','48358noxspF','focusPromptInput','context','config','2521145GuwjIL','sendMessage','ai.chat.models','get','ai.chat.context','removeSelectionFromChatContext','define','29WAUNFL','7971oEVwpT','isPremiumPlugin'];_0x3542=function(){return _0x355cc6;};return _0x3542();}import{ContextPlugin as _0x158466}from'ckeditor5/src/core.js';import{AIChatController as _0x19065c}from'./aichatcontroller.js';import{AIEditing as _0x10f40c}from'../aicore/aiediting.js';function _0x34df(_0x2ef744,_0x439ec1){const _0x35421f=_0x3542();return _0x34df=function(_0x34dfb9,_0x5d09fd){_0x34dfb9=_0x34dfb9-0x9e;let _0x153af0=_0x35421f[_0x34dfb9];return _0x153af0;},_0x34df(_0x2ef744,_0x439ec1);}import{AIChatUI as _0x5e0f1b}from'./aichatui.js';import{AIChatHistory as _0x2445de}from'../aichathistory/aichathistory.js';export class AIChat extends _0x158466{static get[_0x50ec6a(0xb5)](){return[_0x19065c,_0x10f40c,_0x5e0f1b,_0x2445de];}static get[_0x50ec6a(0xb7)](){const _0x4cddc1=_0x50ec6a;return _0x4cddc1(0xb8);}static get[_0x50ec6a(0xb4)](){return!0x0;}static get[_0x50ec6a(0xb3)](){return!0x0;}constructor(_0x4d786b){const _0x5a3cdd=_0x50ec6a;super(_0x4d786b);const _0x575872=_0x4d786b[_0x5a3cdd(0xa9)];_0x575872[_0x5a3cdd(0xb0)](_0x5a3cdd(0xae),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x575872[_0x5a3cdd(0xb0)](_0x5a3cdd(0xac),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x50ec6a(0xa4)](){const _0x2b6ab3=_0x50ec6a;await this[_0x2b6ab3(0xa8)][_0x2b6ab3(0xa0)][_0x2b6ab3(0xad)](_0x19065c)[_0x2b6ab3(0xa4)]();}async[_0x50ec6a(0xa1)](){const _0x2ef827=_0x50ec6a;await this[_0x2ef827(0xa8)][_0x2ef827(0xa0)][_0x2ef827(0xad)](_0x19065c)[_0x2ef827(0xa1)]();}async[_0x50ec6a(0xab)]({message:_0x28c958,quickActionData:_0x308038}){const _0x2d06ce=_0x50ec6a;await this[_0x2d06ce(0xa8)][_0x2d06ce(0xa0)][_0x2d06ce(0xad)](_0x19065c)[_0x2d06ce(0xab)]({'message':_0x28c958,'quickActionData':_0x308038});}[_0x50ec6a(0xaf)](){const _0x18a977=_0x50ec6a;this[_0x18a977(0xa8)][_0x18a977(0xa0)][_0x18a977(0xad)](_0x19065c)[_0x18a977(0xaf)]();}[_0x50ec6a(0xa7)](){const _0x14cdca=_0x50ec6a;this[_0x14cdca(0xa8)][_0x14cdca(0xa0)][_0x14cdca(0xad)](_0x19065c)[_0x14cdca(0xa7)]();}}
|
|
@@ -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 _0x146c6f=_0x2434;(function(_0x1f8f34,_0x194dca){const _0x56f109=_0x2434,_0x1af1f7=_0x1f8f34();while(!![]){try{const _0x232fea=-parseInt(_0x56f109(0x268))/0x1*(parseInt(_0x56f109(0x1e3))/0x2)+parseInt(_0x56f109(0x18a))/0x3*(-parseInt(_0x56f109(0x181))/0x4)+parseInt(_0x56f109(0x1d6))/0x5*(parseInt(_0x56f109(0x1c2))/0x6)+-parseInt(_0x56f109(0x1c1))/0x7+-parseInt(_0x56f109(0x192))/0x8*(parseInt(_0x56f109(0x1d4))/0x9)+-parseInt(_0x56f109(0x1b8))/0xa*(parseInt(_0x56f109(0x1d9))/0xb)+parseInt(_0x56f109(0x24f))/0xc;if(_0x232fea===_0x194dca)break;else _0x1af1f7['push'](_0x1af1f7['shift']());}catch(_0x10498b){_0x1af1f7['push'](_0x1af1f7['shift']());}}}(_0x2c0e,0xaf1d3));import{ContextPlugin as _0x723f7e,Editor as _0x32153a}from'ckeditor5/src/core.js';import{CKEditorError as _0x3c810f,logError as _0x2e819b,scrollViewportToShowTarget as _0x39bad2,uid as _0x1bad92}from'ckeditor5/src/utils.js';import{AIConnector as _0x377cac}from'../aicore/aiconnector.js';import{AITabs as _0x56d072}from'../aitabs/aitabs.js';import{AIChatConversation as _0x23da83}from'./model/aichatconversation.js';import{getTranslation as _0x24c83d}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3f0bb6}from'../aicore/aiediting.js';import{AIChatModels as _0x5da4a7}from'./model/aichatmodels.js';function _0x2c0e(){const _0x505bb4=['addSelectionToContext','chat','getSelectionText','replyChangeGroupStateUpdated','getGroupId','partIndex','selectedModel','contextSent','closeSourceResourceBalloon','createRange','addResourceToContext','_handleStartConversation','addFeedItemError','delete','setConversationContext','text-delta','_previewedChangeGroup','toggleReasoning','push','removeContextItem','ai-chat-url-upload-failed','toLocaleLowerCase','uid','ai.chat.models.displayedModels','get','resources','resourceStateChanged','rejectSuggestion','interactionId','_applyOperationsAsSuggestions','history','accepted','path','close','interactionStarted','isUploadInProgress','remove','cloneNode','insertSuggestion','selectModel','rootName','editors','addCurrentDocumentToContext','addContextItem','startConversation','createPositionAt','updateConversationTitle','isDocumentOperation','root','isInContext','updateFeedItemAIReplySuggestionPartState','_stopLastInteraction','init','log','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','load','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-conversation-','AIConnector','getRanges','contextItemRemoved','Undo','filter','abortPromptStream','ai-chat-source-resources-load-failed','8tjdDwF','start','applySuggestion','AIChatController','source','AIEditing','ai-chat-missing-channel-id','AI_CHAT_RESOURCE_LOAD_FAILED','content','1822146yvufCW','documentContextContent','isOpen','getOperations','addOperation','_balloonShowDiff','main','setContextItemLoading','344BYExuk','full','sourceResourcesLoaded','getDocumentData','getChild','getRoot','finishInteraction','ai-chat-resource-load-failed','Showing\x20conversation\x20history...','ai-chat-controller-no-active-conversation','_integrateEditor','ai-request-aborted','_aiConnector','createConversation','resetConversationTitle','data','_flushLastInteractionUI','anchorId','requires','ai.chat.models.defaultModelId','plugins','version','contextItemAdded','indexes','provider','dialogClosed','interactionCreated','changes','addFileToContext','has','focusPromptInput','view','AI_CHAT_GENERIC_ERROR','AIChatUI','viewRangeToDom','addFeedInteractionHeader','AITabs','isLoading','160430gqxXyP','editing','removeMarker','Disliked\x20response','resizeTabs','type','stopListening','unshift','mouseOverSuggestion','278859UFwDzM','2766MqaIfD','isPremiumPlugin','removeFeedInteraction','isDisabled','slice','length','setChangeGroupState','createPositionFromPath','updateFeedItemAIReplySources','ai-chat-file-upload-failed','rejected','resizedTabs','resetMessageInput','static','getInteractionAndReplyById','_createFromRanges','pluginName','forEach','247968DerriV','startsWith','12690QZrVAK','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','dislike','341IMEeyd','AI_CHAT_ABORTED_MESSAGE','data-id','addFeedItemUserMessage','nextSibling','addUrlToContext','toViewRange','config','handleRemovedConversation','_setIsMaximized','24074gKJIzD','updateCurrentDocumentInContext','getMarkersGroup','pending','_toggleWebSearch','getChildren','lastInteraction','sendUserMessage','_batchToChanges','_showConversationHistory','collaboration.channelId','replyContentUpdated','baseVersion','capabilitiesUpdated','getAttribute','error','removed','updateFeedItemAIReplySuggestionContent','startInteraction','mapper','interactionDestroyed','sendMessage','document','sourcePosition','stopInteraction','new','updateContent','ready','howMany','revert','model','ai-chat-context-invalid-data','_scrollToSuggestionRange','streaming','getDiff','getFirstRange','toggleSuggestionDisplayMode','replyCreated','change','string','interactionFinished','isCurrentDocumentInConversation','updateResourceState','contextItems','hideFakeVisualSelection','sources','_handleUIUserMessage','_aiChatUi','_aiEditing','end','getTransformedByOperation','addFeedItemAIReply','stop','_toggleReasoning','modification-delta','maxOffset','mouseLeaveSuggestion','toggleLoadingSkeleton','isStarted','options','clearPendingContextUI','getChildAtOffset','loadConversation','TrackChangesEditing','domConverter','setModel','sourceId','afterInit','$graveyard','listenTo','isOfficialPlugin','setAddContextOptions','node','Failed\x20to\x20load\x20conversation','_removeAISelectionMarkers','ai-chat-conversation-init-failed','state','scrollFeedToSuggestion','uiId','applyOperation','showChangeInText','locale','addContextOptionsChanged','isCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','addFeedItemAISuggestion','Suggestion\x20','setSelectedModel','updateFeedItemAIReplyContent','Liked\x20response','parse','getInteraction','replies','updateCapabilities','contextItemLoadingEnded','activeConversation','name','batch','loadSourceResources','removeFromContext','selection','addDocumentToContext','context','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_aiChatModels','indexOf','removeSelectionFromChatContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','45840312PTBByQ','showFakeVisualSelection','undo','setIsUploadInProgress','commands','resize','setConversationTitle','setIsMaximized','DocumentCompare','showNext','addFilesToContext','AI_CHAT_UNTITLED_CONVERSATION','resourceId','split','activateTab','updateFeedInteractionHeader','resource','setFeedItemRenderingStrategy','ai-chat-controller-mouse-over','markers','_insertSuggestion','_updateReplyContent','getReply','getDocumentContext','_logError','111nbDjhr','query','showPrevious','like','_applySuggestion','availableModels','current-document','add','modelSelected','_openBalloonFor','open','addFeedItemStaticMessage','populateSourceResourceBalloon','changeGroups','removeSelectionFromContext','addSelectionToChatContext','uploadProgressChanged','_getDocumentRangeForReplyChanges','getPath','ai-chat-context-unsupported-type','_removeFromContext','replyId','clearConversationContextUI','ai-chat-conversation-start-failed','showDiff','redo','set','handleUserInteraction','message','conversationInitialized','map','range','ai.chat.context','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','toggleWebSearch','_filterModels','alignToTop','from','children','contextItem'];_0x2c0e=function(){return _0x505bb4;};return _0x2c0e();}import{getEditorFromContext as _0x4fb5fe}from'../aicore/utils/geteditorfromcontext.js';function _0x2434(_0x464613,_0x46d152){const _0x2c0ef7=_0x2c0e();return _0x2434=function(_0x243445,_0x41e6bb){_0x243445=_0x243445-0x145;let _0x431349=_0x2c0ef7[_0x243445];return _0x431349;},_0x2434(_0x464613,_0x46d152);}import{DocumentCompare as _0x3b0268,DATA_ID_MODEL_ATTRIBUTE as _0x49a695}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1d9b2b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51a626,getMinimalSelection as _0x4b622b,getSuggestionPartsFromReply as _0x2d7cdf}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x148a01,_DetachOperation as _0x51a3f}from'ckeditor5/src/engine.js';import{findOne as _0x586b98,getAttribute as _0x20f1b1,serialize as _0x2270eb,Document as _0x21c873,findByAttribute as _0x9810c1}from'../aicore/utils/htmlparser.js';import{IconAI as _0x32d524}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x49331d}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x48863f}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x723f7e{[_0x146c6f(0x213)];[_0x146c6f(0x19e)];[_0x146c6f(0x212)];[_0x146c6f(0x24b)];[_0x146c6f(0x1eb)]=new Map();[_0x146c6f(0x14f)]=null;[_0x146c6f(0x18f)]=!0x1;static get[_0x146c6f(0x1a4)](){return[_0x377cac,_0x48863f,_0x3b0268];}static get[_0x146c6f(0x1d2)](){const _0x1efddb=_0x146c6f;return _0x1efddb(0x184);}static get[_0x146c6f(0x229)](){return!0x0;}static get[_0x146c6f(0x1c3)](){return!0x0;}[_0x146c6f(0x173)](){const _0x254105=_0x146c6f;this[_0x254105(0x19e)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x17a)),this[_0x254105(0x212)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b3)),this[_0x254105(0x213)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x186)),this[_0x254105(0x24b)]=new _0x5da4a7({'connector':this[_0x254105(0x19e)]});const _0x10d18c=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b6));this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x16b),()=>{const _0x47fe9c=_0x254105;this[_0x47fe9c(0x14a)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ea),(_0x12c5aa,_0x5d967d)=>{const _0x7c8052=_0x254105;this[_0x7c8052(0x211)]({'userMessage':_0x5d967d});}),this[_0x254105(0x228)](_0x10d18c,_0x254105(0x1cd),(_0x42c735,_0x433a5d)=>{const _0x20d7bb=_0x254105;this[_0x20d7bb(0x1e2)](_0x433a5d);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1bc),()=>{const _0x537f87=_0x254105;_0x10d18c[_0x537f87(0x254)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x17f),async()=>{const _0x2df73b=_0x254105;await this[_0x2df73b(0x172)](),await this[_0x2df73b(0x1a2)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x248),()=>{const _0x94a6fe=_0x254105;this[_0x94a6fe(0x242)]?.[_0x94a6fe(0x169)](_0x24c83d(this[_0x94a6fe(0x249)][_0x94a6fe(0x234)],_0x94a6fe(0x175)));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ae),(_0x4f2658,_0x251c1d)=>{const _0xa891b5=_0x254105;this[_0xa891b5(0x242)]?.[_0xa891b5(0x259)](Array[_0xa891b5(0x28d)](_0x251c1d));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1de),(_0x500757,_0x1583e6)=>{const _0xe6e509=_0x254105;this[_0xe6e509(0x242)]?.[_0xe6e509(0x1de)](_0x1583e6);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x149),(_0x4e3891,_0x889f67)=>{const _0x881e4c=_0x254105;this[_0x881e4c(0x242)]?.[_0x881e4c(0x149)](_0x889f67[_0x881e4c(0x185)],_0x889f67[_0x881e4c(0x25f)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x152),(_0x511c2a,_0x369109)=>{const _0x442557=_0x254105;this[_0x442557(0x27c)](_0x369109);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x245),(_0x43086d,_0x3ec74a)=>{const _0x474997=_0x254105;this[_0x474997(0x242)]?.[_0x474997(0x245)](_0x3ec74a[_0x474997(0x225)],_0x3ec74a[_0x474997(0x269)],_0x3ec74a[_0x474997(0x155)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x28a),()=>{const _0x35a063=_0x254105;this[_0x35a063(0x1e7)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x150),()=>{const _0x365b2f=_0x254105;this[_0x365b2f(0x218)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x166),(_0x4a142a,_0x5f18ed)=>{const _0x5525f2=_0x254105;this[_0x5525f2(0x242)]?.[_0x5525f2(0x224)](_0x5f18ed);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x26b),(_0x420977,{replyId:_0x32a618})=>{const _0xe37b6e=_0x254105;console[_0xe37b6e(0x174)](_0xe37b6e(0x23c),_0x32a618);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1d8),(_0x1399a3,{replyId:_0x5c75a7})=>{const _0x37b9b9=_0x254105;console[_0x37b9b9(0x174)](_0x37b9b9(0x1bb),_0x5c75a7);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x165),(_0x1cd862,_0x13c297)=>{const _0x4104be=_0x254105;this[_0x4104be(0x249)][_0x4104be(0x1a6)][_0x4104be(0x157)](_0x48863f)[_0x4104be(0x160)](),this[_0x4104be(0x263)](_0x13c297);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x233),(_0x404cdd,{replyId:_0x2146f0,partIndex:_0x4d93a8})=>{const _0x56223d=_0x254105;this[_0x56223d(0x18f)]=this[_0x56223d(0x212)][_0x56223d(0x280)],this[_0x56223d(0x271)](_0x2146f0,_0x4d93a8);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1c0),(_0x2a3cdf,{replyId:_0x4156f8,partIndex:_0xf95e04})=>{const _0x3486bd=_0x254105,_0x48eab4=this[_0x3486bd(0x279)](_0x4156f8,_0xf95e04);_0x48eab4&&_0x3486bd(0x227)!=_0x48eab4[_0x3486bd(0x287)][_0x3486bd(0x16f)][_0x3486bd(0x167)]&&this[_0x3486bd(0x213)][_0x3486bd(0x250)]([_0x48eab4[_0x3486bd(0x287)]],_0x3486bd(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x21b),()=>{const _0x3c7e9b=_0x254105;this[_0x3c7e9b(0x213)][_0x3c7e9b(0x20f)](_0x3c7e9b(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x183),(_0x121436,_0x158acb)=>{const _0x137dda=_0x254105;this[_0x137dda(0x249)][_0x137dda(0x1a6)][_0x137dda(0x157)](_0x48863f)[_0x137dda(0x160)](),this[_0x137dda(0x26c)](_0x158acb);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x207),async(_0x120c8c,_0x219228)=>{const _0x583f5d=_0x254105,{reply:_0x15ea31}=this[_0x583f5d(0x1d0)](_0x219228[_0x583f5d(0x27d)]),_0x1236e5=_0x4fb5fe(this[_0x583f5d(0x249)]),_0xf949ad=_0x2d7cdf({'editor':_0x1236e5,'changeGroups':_0x15ea31[_0x583f5d(0x275)],'documentContextContent':_0x15ea31[_0x583f5d(0x18b)],'showDiff':_0x219228[_0x583f5d(0x280)]});await this[_0x583f5d(0x212)][_0x583f5d(0x1f4)]({'id':_0x15ea31['id'],'parts':_0xf949ad,'renderingStrategy':_0x583f5d(0x1cf)});}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x15a),(_0x5d9a73,{replyId:_0x399548,partIndex:_0x1948ae})=>{const _0x280870=_0x254105;this[_0x280870(0x14f)]?.[_0x280870(0x27d)]==_0x399548&&this[_0x280870(0x14f)]?.[_0x280870(0x295)]==_0x1948ae&&this[_0x280870(0x249)][_0x280870(0x1a6)][_0x280870(0x157)](_0x48863f)[_0x280870(0x160)]();const {reply:_0x28fdb8}=this[_0x280870(0x1d0)](_0x399548);_0x28fdb8[_0x280870(0x1c8)](_0x1948ae,_0x280870(0x1cc)),this[_0x280870(0x213)][_0x280870(0x20f)](_0x280870(0x261));});}async[_0x146c6f(0x226)](){const _0x2bd59d=_0x146c6f;this[_0x2bd59d(0x249)]instanceof _0x32153a?this[_0x2bd59d(0x19c)](this[_0x2bd59d(0x249)]):this[_0x2bd59d(0x228)](this[_0x2bd59d(0x249)][_0x2bd59d(0x168)],_0x2bd59d(0x26f),(_0x3d46e8,_0x570b43)=>{const _0x309056=_0x2bd59d;_0x570b43['on'](_0x309056(0x1fe),()=>{const _0x32937a=_0x309056;this[_0x32937a(0x19c)](_0x570b43);});}),await this[_0x2bd59d(0x14a)]();}[_0x146c6f(0x263)](_0x3a3929){const _0x5a5996=_0x146c6f,_0x1fdc89=_0x4fb5fe(this[_0x5a5996(0x249)]);if(!_0x1fdc89[_0x5a5996(0x1a6)][_0x5a5996(0x1af)](_0x5a5996(0x222)))return;const _0x2d8e64=this[_0x5a5996(0x249)][_0x5a5996(0x1a6)][_0x5a5996(0x157)](_0x5a5996(0x257)),{reply:_0x3deaa9,interaction:_0x434901}=this[_0x5a5996(0x1d0)](_0x3a3929[_0x5a5996(0x27d)]),_0x37ae64=this[_0x5a5996(0x279)](_0x3a3929[_0x5a5996(0x27d)],_0x3a3929[_0x5a5996(0x295)]),_0x3d6042=void 0x0!==_0x3a3929[_0x5a5996(0x295)]?[_0x3deaa9[_0x5a5996(0x275)][_0x3a3929[_0x5a5996(0x295)]]]:_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x17e)](_0x2b6745=>_0x5a5996(0x1e6)==_0x2b6745[_0x5a5996(0x22f)]),_0x1c507b=_0x3d6042[_0x5a5996(0x286)](_0x5270ba=>_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x24c)](_0x5270ba));_0x1c507b[_0x5a5996(0x1d3)](_0xa74bf9=>_0x3deaa9[_0x5a5996(0x1c8)](_0xa74bf9,_0x5a5996(0x15e)));const _0x7f060=_0x1d9b2b({'editor':_0x1fdc89,'reply':_0x3deaa9,'interaction':_0x434901,'groups':_0x3d6042,'transform':!0x0,'documentCompare':_0x2d8e64,'documentCompareOptions':{'anchor':_0x5a5996(0x190),'markDeletions':!0x0}});let _0x364cdf;_0x37ae64&&this[_0x5a5996(0x203)](_0x37ae64[_0x5a5996(0x287)]),_0x1fdc89[_0x5a5996(0x201)][_0x5a5996(0x209)](_0x56f748=>{const _0x28d96b=_0x5a5996;_0x364cdf=_0x56f748[_0x28d96b(0x244)],_0x1fdc89[_0x28d96b(0x1a6)][_0x28d96b(0x157)](_0x28d96b(0x222))[_0x28d96b(0x15c)](_0x7f060),this[_0x28d96b(0x213)][_0x28d96b(0x20f)](_0x28d96b(0x261));}),this[_0x5a5996(0x1eb)][_0x5a5996(0x282)](_0x364cdf,{'interactionId':_0x434901['id'],'replyId':_0x3deaa9['id'],'indexes':_0x1c507b[_0x5a5996(0x1c6)]()});}[_0x146c6f(0x26c)](_0x136f83){const _0x5d3cf7=_0x146c6f,_0x419a24=_0x4fb5fe(this[_0x5d3cf7(0x249)]),_0x6f5135=this[_0x5d3cf7(0x249)][_0x5d3cf7(0x1a6)][_0x5d3cf7(0x157)](_0x3b0268),{reply:_0xf29623,interaction:_0x3e0179}=this[_0x5d3cf7(0x1d0)](_0x136f83[_0x5d3cf7(0x27d)]),_0x2e51ef=this[_0x5d3cf7(0x279)](_0x136f83[_0x5d3cf7(0x27d)],_0x136f83[_0x5d3cf7(0x295)]),_0x447b9f=void 0x0!==_0x136f83[_0x5d3cf7(0x295)]?[_0xf29623[_0x5d3cf7(0x275)][_0x136f83[_0x5d3cf7(0x295)]]]:_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x17e)](_0x52cf0a=>_0x5d3cf7(0x1e6)==_0x52cf0a[_0x5d3cf7(0x22f)]),_0x3cd258=_0x447b9f[_0x5d3cf7(0x286)](_0x1438c5=>_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x24c)](_0x1438c5));_0x3cd258[_0x5d3cf7(0x1d3)](_0x1cc4d7=>_0xf29623[_0x5d3cf7(0x1c8)](_0x1cc4d7,_0x5d3cf7(0x15e)));const _0x251888=_0x1d9b2b({'editor':_0x419a24,'reply':_0xf29623,'interaction':_0x3e0179,'groups':_0x447b9f,'transform':!0x0,'documentCompare':_0x6f5135,'documentCompareOptions':{'anchor':_0x5d3cf7(0x190),'markDeletions':!0x1}});let _0x1fc0ee;_0x2e51ef&&this[_0x5d3cf7(0x203)](_0x2e51ef[_0x5d3cf7(0x287)]),_0x419a24[_0x5d3cf7(0x201)][_0x5d3cf7(0x209)](_0x510420=>{const _0x4f2ce0=_0x5d3cf7;_0x1fc0ee=_0x510420[_0x4f2ce0(0x244)];for(const _0x58b2b6 of _0x251888)_0x58b2b6[_0x4f2ce0(0x1ef)]=_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x1f9)][_0x4f2ce0(0x1a7)],_0x510420[_0x4f2ce0(0x244)][_0x4f2ce0(0x18e)](_0x58b2b6),_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x232)](_0x58b2b6);}),this[_0x5d3cf7(0x1eb)][_0x5d3cf7(0x282)](_0x1fc0ee,{'interactionId':_0x3e0179['id'],'replyId':_0xf29623['id'],'indexes':_0x3cd258[_0x5d3cf7(0x1c6)]()});}[_0x146c6f(0x271)](_0x7d44ca,_0xc77ef1){const _0xe6f8ea=_0x146c6f,_0x305165=_0x4fb5fe(this[_0xe6f8ea(0x249)]),_0x33adc7=this[_0xe6f8ea(0x279)](_0x7d44ca,_0xc77ef1),_0x307f2f=this[_0xe6f8ea(0x249)][_0xe6f8ea(0x1a6)][_0xe6f8ea(0x157)](_0x48863f);if(!_0x33adc7)return void _0x307f2f[_0xe6f8ea(0x160)]();const {range:_0x4c3400,currentIndex:_0x57dedd,previousIndex:_0x4b1b1a,nextIndex:_0x46b481}=_0x33adc7;if(this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x27d)]==_0x7d44ca&&this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x295)]==_0x57dedd)return;this[_0xe6f8ea(0x14f)]={'replyId':_0x7d44ca,'partIndex':_0x57dedd};const _0xec23a2=new _0x49331d(_0x305165[_0xe6f8ea(0x234)],{'showDiff':this[_0xe6f8ea(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0xe6f8ea(0x193)},'hideHeader':!0x0}),{reply:_0x5259e6}=this[_0xe6f8ea(0x1d0)](_0x7d44ca),_0x4c249d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x5259e6[_0xe6f8ea(0x275)][_0x57dedd]],'documentContextContent':_0x5259e6[_0xe6f8ea(0x18b)],'showDiff':this[_0xe6f8ea(0x18f)]});_0xec23a2[_0xe6f8ea(0x1fd)]({'parts':_0x4c249d,'renderingStrategy':_0xe6f8ea(0x1cf)});const _0x969617=_0x57dedd!==_0x4b1b1a;this[_0xe6f8ea(0x203)](_0x4c3400,!0x0),_0x307f2f[_0xe6f8ea(0x272)]({'index':_0x57dedd,'title':_0xe6f8ea(0x239)+(_0x57dedd+0x1),'icon':_0x32d524,'mainView':_0xec23a2,'showRotator':_0x969617,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4c3400]}),this[_0xe6f8ea(0x212)][_0xe6f8ea(0x230)](_0x7d44ca,_0x57dedd),this[_0xe6f8ea(0x228)](_0xec23a2,_0xe6f8ea(0x207),(_0x41a08b,{showDiff:_0x28ea3f})=>{const _0x458fb6=_0xe6f8ea;this[_0x458fb6(0x18f)]=_0x28ea3f;const {reply:_0x30d9d4}=this[_0x458fb6(0x1d0)](_0x7d44ca),_0x3fa95d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x30d9d4[_0x458fb6(0x275)][_0x57dedd]],'documentContextContent':_0x30d9d4[_0x458fb6(0x18b)],'showDiff':_0x28ea3f});_0xec23a2[_0x458fb6(0x1fd)]({'parts':_0x3fa95d,'renderingStrategy':_0x458fb6(0x1cf)});}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x183),()=>{const _0x49b45a=_0xe6f8ea;this[_0x49b45a(0x26c)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0x49b45a(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0x49b45a(0x160)]();}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x165),()=>{const _0xe3265c=_0xe6f8ea;this[_0xe3265c(0x263)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0xe3265c(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0xe3265c(0x160)]();}),_0x969617&&(this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x258),()=>{const _0x3e6ca8=_0xe6f8ea;this[_0x3e6ca8(0x271)](_0x7d44ca,_0x46b481);}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x26a),()=>{const _0x1ec62b=_0xe6f8ea;this[_0x1ec62b(0x271)](_0x7d44ca,_0x4b1b1a);})),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x1ab),()=>{const _0x1b2646=_0xe6f8ea;this[_0x1b2646(0x1be)](_0x307f2f),this[_0x1b2646(0x1be)](_0xec23a2),this[_0x1b2646(0x14f)]=null;});}[_0x146c6f(0x279)](_0x356f44,_0x39c11f){const _0x2ac9d1=_0x146c6f,_0x57a4b0=_0x4fb5fe(this[_0x2ac9d1(0x249)]),{reply:_0x1d614b,interaction:_0x362b0a}=this[_0x2ac9d1(0x1d0)](_0x356f44),_0x2a2c95=_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x17e)](_0x2b1c7d=>_0x2ac9d1(0x1e6)==_0x2b1c7d[_0x2ac9d1(0x22f)]),_0x388fdf=_0x2a2c95[_0x2ac9d1(0x286)](_0x1c7e0a=>_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x24c)](_0x1c7e0a));void 0x0===_0x39c11f&&(_0x39c11f=_0x388fdf[0x0]);const _0x568081=_0x388fdf[_0x2ac9d1(0x24c)](_0x39c11f);if(-0x1==_0x568081)return null;const _0x2a806f=0x0==_0x568081?_0x388fdf[_0x388fdf[_0x2ac9d1(0x1c7)]-0x1]:_0x388fdf[_0x568081-0x1],_0x289d89=_0x568081==_0x388fdf[_0x2ac9d1(0x1c7)]-0x1?_0x388fdf[0x0]:_0x388fdf[_0x568081+0x1],_0xc8a77d=_0x2a2c95[_0x568081],_0x3c0d9a=new _0x21c873([]),_0x188f55=new _0x21c873([]);for(const _0x3ab85c of _0xc8a77d[_0x2ac9d1(0x1ad)])if(_0x2ac9d1(0x1f3)!=_0x3ab85c[_0x2ac9d1(0x1bd)]&&_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3ab85c[_0x2ac9d1(0x22b)][_0x2ac9d1(0x164)](!0x0)),_0x2ac9d1(0x1fc)!=_0x3ab85c[_0x2ac9d1(0x1bd)]){const _0x36c37c=_0x586b98(_0x5c5d6d=>_0x20f1b1(_0x5c5d6d,_0x2ac9d1(0x1db))==_0x3ab85c['id'],_0x1d614b[_0x2ac9d1(0x18b)],!0x0);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x36c37c[_0x2ac9d1(0x164)](!0x0));}if(0x0==_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1c7)]){if(_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)]){const _0x4c68a5=_0x9810c1(_0x2ac9d1(0x1db),_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)],_0x1d614b[_0x2ac9d1(0x18b)]);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x4c68a5[_0x2ac9d1(0x1dd)]&&(_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)));}else{const _0x3eb5a3=_0x1d614b[_0x2ac9d1(0x18b)][_0x2ac9d1(0x28e)][0x0];if(!_0x3eb5a3)return null;_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0));}}const _0x1a3c0b=_0x362b0a[_0x2ac9d1(0x266)](),_0x3eb98b=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x1a3c0b[_0x2ac9d1(0x189)]),_0x315d9b=_0x2270eb(_0x3c0d9a),_0x4127d3=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x4a67e8=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x5c3991=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x16c)](_0x4127d3,0x0),_0xb4b405=_0x2270eb(_0x188f55),_0x36c1b2={'anchor':_0x5c3991,'markDeletions':!0x1},_0x1aa5d8=_0x57a4b0[_0x2ac9d1(0x1a6)][_0x2ac9d1(0x157)](_0x3b0268)[_0x2ac9d1(0x205)](_0x315d9b,_0xb4b405,_0x36c1b2)[_0x2ac9d1(0x18d)]();if(!_0x1aa5d8[_0x2ac9d1(0x1c7)])return null;_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x209)](_0x585d25=>{const _0x5c1e4b=_0x2ac9d1;for(const _0x3f340a of _0x1aa5d8)if(_0x5c1e4b(0x163)==_0x3f340a[_0x5c1e4b(0x1bd)]){const _0x53a84c=_0x3f340a[_0x5c1e4b(0x1fa)],_0x3c0014=_0x3f340a[_0x5c1e4b(0x1ff)],_0x44140c=new _0x51a3f(_0x53a84c,_0x3c0014);_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x44140c),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x44140c);}else _0x3f340a[_0x5c1e4b(0x1ef)]=null,_0x3f340a[_0x5c1e4b(0x16e)]=!0x1,_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x3f340a),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x3f340a);});const _0x55fca0=_0x4b622b(_0x57a4b0,_0x1aa5d8,_0x4127d3);_0x51a626(_0x57a4b0[_0x2ac9d1(0x201)],_0x55fca0);const _0x57aa61=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3e4c7a=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x101be1=[];let _0x2a84f0=_0x4127d3,_0x1a5cfb=_0x4a67e8;for(let _0x2456b3=0x0;_0x2456b3<_0x3e4c7a[_0x2ac9d1(0x1c7)];_0x2456b3++){const _0x50c47d=_0x2a84f0[_0x2ac9d1(0x21a)]-_0x3e4c7a[_0x2456b3];_0x101be1[_0x2456b3]=_0x1a5cfb[_0x2ac9d1(0x21a)]-_0x50c47d,_0x2a84f0=_0x2a84f0[_0x2ac9d1(0x220)](_0x3e4c7a[_0x2456b3]),_0x1a5cfb=_0x1a5cfb[_0x2ac9d1(0x220)](_0x101be1[_0x2456b3]);}const _0x5bad7d=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x57aa61),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x101be1)),_0x193fb6=_0x4a67e8[_0x2ac9d1(0x196)](0x0)[_0x2ac9d1(0x1f1)](_0x49a695),_0x2660ea=Array[_0x2ac9d1(0x28d)](_0x3eb98b[_0x2ac9d1(0x1e8)]())[_0x2ac9d1(0x176)](_0x398d02=>_0x398d02[_0x2ac9d1(0x1f1)](_0x49a695)==_0x193fb6)[_0x2ac9d1(0x27a)](),_0x294cae=_0x5bad7d[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3802b0=_0x5bad7d[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)]();_0x294cae[0x0]=_0x2660ea[0x0]+_0x294cae[0x0],_0x3802b0[0x0]=_0x2660ea[0x0]+_0x3802b0[0x0];let _0x2af162=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x294cae),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x3802b0));const _0x2713ba=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x15d)][_0x2ac9d1(0x18d)](_0x1a3c0b[_0x2ac9d1(0x1a7)]);for(const _0x3f60d5 of _0x2713ba)_0x2af162=_0x148a01[_0x2ac9d1(0x1d1)](_0x2af162[_0x2ac9d1(0x215)](_0x3f60d5));return{'range':_0x2af162,'previousIndex':_0x2a806f,'nextIndex':_0x289d89,'currentIndex':_0x39c11f};}[_0x146c6f(0x19c)](_0x5e2143){const _0x40efba=_0x146c6f;if(!_0x5e2143[_0x40efba(0x1a6)][_0x40efba(0x1af)](_0x40efba(0x17d)))return;const _0x23fc70=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x251)),_0x3f90f0=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x281));this[_0x40efba(0x228)](_0x23fc70,_0x40efba(0x200),(_0x3a6506,_0x310ea3,_0x574b0e)=>{const _0x2c727a=_0x40efba,_0x4f92ae=this[_0x2c727a(0x1eb)][_0x2c727a(0x157)](_0x310ea3);if(!_0x4f92ae)return;const _0x10d03b=this[_0x2c727a(0x242)][_0x2c727a(0x23e)](_0x4f92ae[_0x2c727a(0x15b)])[_0x2c727a(0x265)](_0x4f92ae[_0x2c727a(0x27d)]);_0x4f92ae[_0x2c727a(0x1a9)][_0x2c727a(0x1d3)](_0x22c8bd=>_0x10d03b[_0x2c727a(0x1c8)](_0x22c8bd,_0x2c727a(0x1e6))),this[_0x2c727a(0x1eb)][_0x2c727a(0x14c)](_0x310ea3),this[_0x2c727a(0x1eb)][_0x2c727a(0x282)](_0x574b0e,_0x4f92ae);}),this[_0x40efba(0x228)](_0x3f90f0,_0x40efba(0x200),(_0x239537,_0x1cc49c,_0x2a30ba)=>{const _0x5981cc=_0x40efba,_0x3e1d0f=this[_0x5981cc(0x1eb)][_0x5981cc(0x157)](_0x1cc49c);if(!_0x3e1d0f)return;const _0xed55a9=this[_0x5981cc(0x242)][_0x5981cc(0x23e)](_0x3e1d0f[_0x5981cc(0x15b)])[_0x5981cc(0x265)](_0x3e1d0f[_0x5981cc(0x27d)]);_0x3e1d0f[_0x5981cc(0x1a9)][_0x5981cc(0x1d3)](_0x1434c7=>_0xed55a9[_0x5981cc(0x1c8)](_0x1434c7,_0x5981cc(0x15e))),this[_0x5981cc(0x1eb)][_0x5981cc(0x14c)](_0x1cc49c),this[_0x5981cc(0x1eb)][_0x5981cc(0x282)](_0x2a30ba,_0x3e1d0f);});}async[_0x146c6f(0x221)](_0x104ed5){const _0xb8c27f=_0x146c6f;this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x48863f)[_0xb8c27f(0x160)](),this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x1cf)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x0),await this[_0xb8c27f(0x172)]();try{const _0x466c5e=this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x56d072);this[_0xb8c27f(0x16d)]('\x20'),_0x466c5e[_0xb8c27f(0x1b1)][_0xb8c27f(0x25d)](_0xb8c27f(0x291)),await this[_0xb8c27f(0x14a)](_0x104ed5);const {sessionId:_0x5535e4}=this[_0xb8c27f(0x213)][_0xb8c27f(0x195)]();await this[_0xb8c27f(0x242)][_0xb8c27f(0x177)](_0x104ed5,_0x5535e4),this[_0xb8c27f(0x242)][_0xb8c27f(0x20c)]()&&this[_0xb8c27f(0x242)][_0xb8c27f(0x169)](_0x24c83d(this[_0xb8c27f(0x249)][_0xb8c27f(0x234)],_0xb8c27f(0x175)));}catch(_0xb118b){console[_0xb8c27f(0x1f2)](_0xb8c27f(0x22c),_0xb118b);}finally{this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x204)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x1);}}[_0x146c6f(0x1e1)](_0x1e891e){const _0x348aee=_0x146c6f;this[_0x348aee(0x242)]['id']===_0x1e891e&&this[_0x348aee(0x14a)]();}async[_0x146c6f(0x277)](){const _0x131946=_0x146c6f,_0x2908c3=this[_0x131946(0x213)][_0x131946(0x292)]();this[_0x131946(0x242)]?.[_0x131946(0x290)](_0x2908c3),this[_0x131946(0x242)]?.[_0x131946(0x169)](_0x24c83d(this[_0x131946(0x249)][_0x131946(0x234)],_0x131946(0x175)));}[_0x146c6f(0x24d)](){const _0x16d086=_0x146c6f;this[_0x16d086(0x242)]?.[_0x16d086(0x276)]();}[_0x146c6f(0x1b0)](){const _0x867953=_0x146c6f;this[_0x867953(0x212)][_0x867953(0x1b0)]();}async[_0x146c6f(0x16b)](){const _0x21fc3d=_0x146c6f;await this[_0x21fc3d(0x14a)]();}async[_0x146c6f(0x1f8)]({message:_0x5ec96a,quickActionData:_0x6f9d79}){const _0x17e077=_0x146c6f;await this[_0x17e077(0x211)]({'userMessage':_0x5ec96a,'quickActionData':_0x6f9d79});}[_0x146c6f(0x294)](){const _0x4e419c=_0x146c6f,_0xc2d882=this[_0x4e419c(0x249)][_0x4e419c(0x1e0)][_0x4e419c(0x157)](_0x4e419c(0x1ed));if(!_0xc2d882)throw new _0x3c810f(_0x4e419c(0x187),this);return _0xc2d882;}async[_0x146c6f(0x14a)](_0x3fa82f){const _0x923a87=_0x146c6f,_0x4d9874=this[_0x923a87(0x249)][_0x923a87(0x1a6)][_0x923a87(0x157)](_0x48863f);let _0x38e0d5;_0x4d9874[_0x923a87(0x18c)]&&_0x4d9874[_0x923a87(0x160)](),_0x38e0d5=_0x3fa82f||!this[_0x923a87(0x242)]?this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x1a5)):this[_0x923a87(0x242)][_0x923a87(0x145)]['id'],await this[_0x923a87(0x172)]();const _0x36cb66=this[_0x923a87(0x294)](),_0x51fd33=_0x3fa82f||_0x1bad92();this[_0x923a87(0x242)]=new _0x23da83({'connector':this[_0x923a87(0x19e)],'chatModels':this[_0x923a87(0x24b)],'defaultModelId':_0x38e0d5,'conversationId':_0x51fd33,'group':_0x36cb66,'getEditor':()=>_0x4fb5fe(this[_0x923a87(0x249)])}),this[_0x923a87(0x242)]['on'](_0x923a87(0x285),(_0xc8321b,_0x634ced)=>{const _0x1be2be=_0x923a87;_0x634ced[_0x1be2be(0x26d)]=this[_0x1be2be(0x28b)](_0x634ced[_0x1be2be(0x26d)],this[_0x1be2be(0x249)][_0x1be2be(0x1e0)][_0x1be2be(0x157)](_0x1be2be(0x156))),this[_0x1be2be(0x212)][_0x1be2be(0x19f)](_0x634ced),this[_0x1be2be(0x212)][_0x1be2be(0x1ce)](),this[_0x1be2be(0x212)][_0x1be2be(0x21f)](),this[_0x1be2be(0x212)][_0x1be2be(0x27e)](),_0x3fa82f||(this[_0x1be2be(0x212)][_0x1be2be(0x1a0)](),this[_0x1be2be(0x242)]?.[_0x1be2be(0x169)](_0x24c83d(this[_0x1be2be(0x249)][_0x1be2be(0x234)],_0x1be2be(0x175))));}),this[_0x923a87(0x242)]['on'](_0x923a87(0x278),(_0x3118da,_0xd04ef9)=>{const _0x2fd259=_0x923a87;this[_0x2fd259(0x212)][_0x2fd259(0x252)](_0xd04ef9[_0x2fd259(0x162)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ac),(_0x4faf6b,_0x2dfe63)=>{const _0x1d778f=_0x923a87;this[_0x1d778f(0x212)][_0x1d778f(0x1dc)](_0x2dfe63),this[_0x1d778f(0x212)][_0x1d778f(0x1b5)](_0x2dfe63);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x161),(_0x1612e2,_0x332c97)=>{const _0x40b6a4=_0x923a87;this[_0x40b6a4(0x212)][_0x40b6a4(0x1f5)](_0x332c97);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x20b),async()=>{const _0x5f285e=_0x923a87;await this[_0x5f285e(0x212)][_0x5f285e(0x198)]();}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f7),(_0x512891,_0x2f6f40)=>{const _0x527da7=_0x923a87;this[_0x527da7(0x212)][_0x527da7(0x1c4)](_0x2f6f40['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x255),(_0x5344ef,_0x30719a,_0xe20752)=>{const _0x25c9c6=_0x923a87;this[_0x25c9c6(0x16d)](_0x30719a,_0xe20752);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x208),(_0x1929e0,_0x31c79c)=>{const _0x188038=_0x923a87;this[_0x188038(0x212)][_0x188038(0x25e)]({'isVisible':!0x0,'id':_0x31c79c[_0x188038(0x15b)]}),_0x188038(0x14e)===_0x31c79c[_0x188038(0x1bd)]?this[_0x188038(0x212)][_0x188038(0x216)](_0x31c79c):this[_0x188038(0x212)][_0x188038(0x238)](_0x31c79c);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ee),async(_0x5c9dfe,_0x27c7d9,_0x32805)=>{const _0x5bcb37=_0x923a87;await this[_0x5bcb37(0x264)]({'reply':_0x27c7d9,'changeGroups':_0x32805});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x293),(_0x173bcf,{reply:_0x5f4006,index:_0x349a74,state:_0x26d07c})=>{const _0x657cfa=_0x923a87;this[_0x657cfa(0x212)][_0x657cfa(0x171)]({'id':_0x5f4006['id'],'index':_0x349a74,'state':_0x26d07c});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1a8),(_0x55f59c,_0x2ecce4)=>{const _0x2a59c1=_0x923a87;if(this[_0x2a59c1(0x212)][_0x2a59c1(0x16a)](_0x2ecce4[_0x2a59c1(0x28f)],_0x2ecce4[_0x2a59c1(0x1b7)]),_0x2a59c1(0x247)===_0x2ecce4[_0x2a59c1(0x28f)][_0x2a59c1(0x1bd)]){const _0x446327=[..._0x4fb5fe(this[_0x2a59c1(0x249)])[_0x2a59c1(0x201)][_0x2a59c1(0x1f9)][_0x2a59c1(0x247)][_0x2a59c1(0x17b)]()];this[_0x2a59c1(0x213)][_0x2a59c1(0x250)](_0x446327,_0x2a59c1(0x179)+this[_0x2a59c1(0x242)]?.['id']);}}),this[_0x923a87(0x242)]['on'](_0x923a87(0x17c),(_0x136528,_0x5ee0be)=>{const _0x125d5a=_0x923a87;this[_0x125d5a(0x212)][_0x125d5a(0x152)](_0x5ee0be[_0x125d5a(0x231)]),_0x125d5a(0x26e)==_0x5ee0be[_0x125d5a(0x231)]&&this[_0x125d5a(0x24d)](),_0x125d5a(0x247)===_0x5ee0be[_0x125d5a(0x1bd)]&&this[_0x125d5a(0x213)][_0x125d5a(0x20f)](_0x125d5a(0x179)+this[_0x125d5a(0x242)]?.['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x241),(_0x354fb0,_0x298821)=>{const _0xe91c87=_0x923a87;this[_0xe91c87(0x212)][_0xe91c87(0x191)](_0x298821[_0xe91c87(0x28f)][_0xe91c87(0x231)],_0x298821[_0xe91c87(0x1b7)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x146),(_0xda7dd,_0x2e9be6)=>{const _0x39db42=_0x923a87;this[_0x39db42(0x212)][_0x39db42(0x14d)](_0x2e9be6[_0x39db42(0x20e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x235),(_0x3c47cb,_0xca6007)=>{const _0x7d4569=_0x923a87;this[_0x7d4569(0x212)][_0x7d4569(0x22a)](_0xca6007[_0x7d4569(0x21e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x194),(_0x57df87,_0x354570)=>{const _0x58d379=_0x923a87;this[_0x58d379(0x212)][_0x58d379(0x274)](_0x354570[_0x58d379(0x225)],_0x354570[_0x58d379(0x185)],_0x354570[_0x58d379(0x158)],_0x354570[_0x58d379(0x155)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x159),(_0x5b4cff,_0x543766)=>{const _0x3dac28=_0x923a87;this[_0x3dac28(0x212)][_0x3dac28(0x20d)](_0x543766[_0x3dac28(0x225)],_0x543766[_0x3dac28(0x25b)],_0x543766[_0x3dac28(0x170)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f0),(_0xfd185f,_0x4d221b)=>{const _0x23a80a=_0x923a87;this[_0x23a80a(0x212)][_0x23a80a(0x240)](_0x4d221b);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x270),(_0x25970b,_0x2ad7a1)=>{const _0x5aacef=_0x923a87;this[_0x5aacef(0x212)][_0x5aacef(0x23a)](_0x2ad7a1[_0x5aacef(0x145)],_0x2ad7a1[_0x5aacef(0x1c5)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f2),(_0xc29d81,{error:_0x459e62,interactionId:_0x154949,fileName:_0x78bb60,url:_0x3497ac,sourceId:_0x2f1c00,sourceLabel:_0x436fa6})=>{const _0x3292e9=_0x923a87,_0x4b28ef=_0x154949?_0x154949+':'+_0x1bad92():_0x1bad92();_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x19d))?this[_0x3292e9(0x212)][_0x3292e9(0x273)]({'staticMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1da)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x22e))||_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27f))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x178)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x1cb))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1d7),_0x78bb60),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x153))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24e),_0x3497ac),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x202))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x237)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27b))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x289)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x180))?(_0x2f1c00&&this[_0x3292e9(0x212)][_0x3292e9(0x147)](_0x2f1c00),this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24a),_0x436fa6||_0x3292e9(0x185)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x199))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x188)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1b2)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62));}),await this[_0x923a87(0x242)][_0x923a87(0x173)](this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x288))),_0x3fa82f||await this[_0x923a87(0x242)][_0x923a87(0x182)]();}async[_0x146c6f(0x211)]({userMessage:_0x4e29e8,quickActionData:_0x20eeeb}){const _0x5465c3=_0x146c6f;if(!this[_0x5465c3(0x242)])throw new _0x3c810f(_0x5465c3(0x19b));this[_0x5465c3(0x242)][_0x5465c3(0x236)]()&&await this[_0x5465c3(0x242)][_0x5465c3(0x1e4)](this[_0x5465c3(0x213)][_0x5465c3(0x195)]()),this[_0x5465c3(0x242)]['id']&&this[_0x5465c3(0x242)][_0x5465c3(0x21d)]&&await this[_0x5465c3(0x242)][_0x5465c3(0x283)]({'userMessage':_0x4e29e8,'quickActionData':_0x20eeeb}),this[_0x5465c3(0x22d)]();}[_0x146c6f(0x22d)](){const _0x2c25af=_0x146c6f,_0x53e65b=_0x4fb5fe(this[_0x2c25af(0x249)])[_0x2c25af(0x201)],_0x576080=Array[_0x2c25af(0x28d)](_0x53e65b[_0x2c25af(0x262)][_0x2c25af(0x1e5)](_0x3f0bb6));_0x53e65b[_0x2c25af(0x209)](_0x3bfb35=>{const _0x210e32=_0x2c25af;_0x576080[_0x210e32(0x1d3)](_0x1274eb=>_0x3bfb35[_0x210e32(0x1ba)](_0x1274eb));});}[_0x146c6f(0x1ec)](){const _0x4c927e=_0x146c6f;console[_0x4c927e(0x174)](_0x4c927e(0x19a));}[_0x146c6f(0x1e2)](_0x3bae7a){const _0x286951=_0x146c6f;this[_0x286951(0x212)][_0x286951(0x256)](_0x3bae7a);}[_0x146c6f(0x267)](_0x19f254){const _0x171167=_0x146c6f;_0x2e819b(_0x19f254[_0x171167(0x284)]);}[_0x146c6f(0x27c)](_0xb20d4c){const _0x36d165=_0x146c6f;this[_0x36d165(0x242)]?.[_0x36d165(0x246)](_0xb20d4c);}[_0x146c6f(0x1e7)](){const _0x10e490=_0x146c6f;this[_0x10e490(0x242)]?.[_0x10e490(0x28a)]();}[_0x146c6f(0x218)](){const _0x2b1fa8=_0x146c6f;this[_0x2b1fa8(0x242)]?.[_0x2b1fa8(0x150)]();}[_0x146c6f(0x1d0)](_0xfadf9c){const _0x57b812=_0x146c6f,[_0x48355d,_0x5c7f19]=_0xfadf9c[_0x57b812(0x25c)](':'),_0x8bbdb7=this[_0x57b812(0x242)][_0x57b812(0x23e)](_0x48355d),_0x15a9af=_0x8bbdb7[_0x57b812(0x265)](_0x5c7f19);return{'interaction':_0x8bbdb7,'reply':_0x15a9af};}[_0x146c6f(0x203)](_0x22431f,_0x598575=!0x1){const _0x116560=_0x146c6f,_0x1c4388=_0x4fb5fe(this[_0x116560(0x249)]),_0xc59a27={'target':_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1b1)][_0x116560(0x223)][_0x116560(0x1b4)](_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1f6)][_0x116560(0x1df)](_0x22431f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x598575};_0x598575&&(_0xc59a27[_0x116560(0x28c)]=!0x0),_0x39bad2(_0xc59a27);}[_0x146c6f(0x16d)](_0xc7dcf2,_0x141959=!0x1){const _0x2b99d9=_0x146c6f;this[_0x2b99d9(0x212)][_0x2b99d9(0x255)](_0xc7dcf2||_0x24c83d(this[_0x2b99d9(0x249)][_0x2b99d9(0x234)],_0x2b99d9(0x25a)),_0x141959);}[_0x146c6f(0x28b)](_0x3b8b02,_0x319db9){const _0x507a28=_0x146c6f;let _0x487c98;if(_0x319db9){_0x487c98=[];const _0x237b45=_0x507a28(0x20a)==typeof _0x319db9?[_0x319db9[_0x507a28(0x154)]()]:_0x319db9[_0x507a28(0x286)](_0x85b148=>_0x85b148[_0x507a28(0x154)]());for(const _0xb11d75 of _0x237b45)for(const _0x31c3aa of _0x3b8b02)(_0x31c3aa['id'][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x243)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x1aa)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa['id'][_0x507a28(0x154)]()[_0x507a28(0x1d5)](_0xb11d75))&&_0x487c98[_0x507a28(0x151)](_0x31c3aa);}else _0x487c98=_0x3b8b02;return _0x487c98;}async[_0x146c6f(0x264)]({reply:_0x188ff4,changeGroups:_0x1e2dde,renderingStrategy:_0x1659a4}){const _0x3433c7=_0x146c6f,{id:_0x14d339,isDone:_0x132a8b,type:_0x16df68,parsedContent:_0x15c067}=_0x188ff4;if(_0x3433c7(0x219)===_0x16df68){const _0x3f2f41=_0x4fb5fe(this[_0x3433c7(0x249)]),_0x28ab0c=_0x2d7cdf({'editor':_0x3f2f41,'showDiff':this[_0x3433c7(0x212)][_0x3433c7(0x280)],'changeGroups':_0x1e2dde,'documentContextContent':_0x188ff4[_0x3433c7(0x18b)]});await this[_0x3433c7(0x212)][_0x3433c7(0x1f4)]({'id':_0x14d339,'parts':_0x28ab0c,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});}else _0x3433c7(0x14e)===_0x16df68&&await this[_0x3433c7(0x212)][_0x3433c7(0x23b)]({'id':_0x14d339,'parsedContent':_0x15c067,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});_0x132a8b&&_0x188ff4[_0x3433c7(0x210)][_0x3433c7(0x1c7)]>0x0&&this[_0x3433c7(0x212)][_0x3433c7(0x1ca)](_0x14d339,_0x188ff4[_0x3433c7(0x210)]);}async[_0x146c6f(0x172)](){const _0x277de6=_0x146c6f,_0x1f65b9=this[_0x277de6(0x242)]?.[_0x277de6(0x1e9)];_0x1f65b9&&(_0x1f65b9[_0x277de6(0x217)](),this[_0x277de6(0x212)][_0x277de6(0x1fb)](_0x1f65b9));}async[_0x146c6f(0x1a2)](){const _0x2accd8=_0x146c6f,_0x4af824=this[_0x2accd8(0x242)]?.[_0x2accd8(0x1e9)];if(_0x4af824){for await(const _0x17112a of _0x4af824[_0x2accd8(0x23f)])await this[_0x2accd8(0x264)]({'reply':_0x17112a,'changeGroups':_0x17112a[_0x2accd8(0x275)],'renderingStrategy':_0x2accd8(0x1cf)});}}}
|