@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2ea2d0=_0x5e2e;(function(_0x3cc9c0,_0x21b6f7){const _0x31ac90=_0x5e2e,_0x1664c4=_0x3cc9c0();while(!![]){try{const _0x1dc3a9=parseInt(_0x31ac90(0x1b9))/0x1+parseInt(_0x31ac90(0x222))/0x2+parseInt(_0x31ac90(0x229))/0x3+-parseInt(_0x31ac90(0x1d0))/0x4*(-parseInt(_0x31ac90(0x1ff))/0x5)+parseInt(_0x31ac90(0x1ad))/0x6*(-parseInt(_0x31ac90(0x206))/0x7)+-parseInt(_0x31ac90(0x22c))/0x8+parseInt(_0x31ac90(0x225))/0x9*(-parseInt(_0x31ac90(0x1cf))/0xa);if(_0x1dc3a9===_0x21b6f7)break;else _0x1664c4['push'](_0x1664c4['shift']());}catch(_0x274d37){_0x1664c4['push'](_0x1664c4['shift']());}}}(_0x1d56,0x8a752));function _0x5e2e(_0x46a816,_0x4be863){const _0x1d56d1=_0x1d56();return _0x5e2e=function(_0x5e2e26,_0x81ec8e){_0x5e2e26=_0x5e2e26-0x1a4;let _0x50f789=_0x1d56d1[_0x5e2e26];return _0x50f789;},_0x5e2e(_0x46a816,_0x4be863);}import{CKEditorError as _0x36262f,ObservableMixin as _0x2f3c0a,uid as _0x2aaa18}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x36b57b,AIContextTextResourceType as _0x1b09ae}from'../../aicore/model/aicontext.js';import{escape as _0x1ea844}from'es-toolkit/compat';import{errorsMap as _0x4b27f9}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x2ea2d0(0x214),_0x2ea2d0(0x1dc),_0x2ea2d0(0x20f),_0x2ea2d0(0x1d7),_0x2ea2d0(0x1c0),_0x2ea2d0(0x1a6),_0x2ea2d0(0x1c8),_0x2ea2d0(0x205),_0x2ea2d0(0x1f7)];export class AIChatContext extends _0x2f3c0a(){[_0x2ea2d0(0x1d5)];[_0x2ea2d0(0x1c1)];[_0x2ea2d0(0x20b)];constructor({connector:_0x45f423,config:_0x4abca2,ownerId:_0x81cc06}){const _0x183d6e=_0x2ea2d0;super(),this[_0x183d6e(0x1d5)]=_0x45f423,this[_0x183d6e(0x1c1)]=_0x4abca2,this[_0x183d6e(0x20b)]=_0x81cc06;}[_0x2ea2d0(0x203)](){const _0x1ca0b0=_0x2ea2d0;this[_0x1ca0b0(0x1b8)]=new Map(),this[_0x1ca0b0(0x20c)]=new Map(),this[_0x1ca0b0(0x231)]=new Map(),this[_0x1ca0b0(0x210)]=new Map(),this[_0x1ca0b0(0x1e1)]();}[_0x2ea2d0(0x1f5)](){const _0x30783b=_0x2ea2d0;return this[_0x30783b(0x1b8)];}async[_0x2ea2d0(0x1fd)](_0x4812f9){const _0x333fea=_0x2ea2d0,_0x25a380=await this[_0x333fea(0x1a8)](_0x4812f9);return this[_0x333fea(0x1bc)](_0x25a380),_0x333fea(0x1aa)===_0x25a380[_0x333fea(0x1ae)]&&this[_0x333fea(0x202)](),_0x25a380;}async[_0x2ea2d0(0x1a8)](_0x806b35){const _0x362364=_0x2ea2d0;if(_0x806b35[_0x362364(0x1da)]===_0x36b57b[_0x362364(0x1c7)]){const _0x3ce736=await this[_0x362364(0x1d5)][_0x362364(0x209)](this[_0x362364(0x20b)],_0x806b35['id'])[_0x362364(0x1af)]();return{'id':_0x362364(0x1aa),'uiId':_0x362364(0x1aa),'label':_0x362364(0x1c6),'type':_0x806b35[_0x362364(0x1da)],'content':_0x3ce736[_0x362364(0x1f8)],'hidden':this[_0x362364(0x20c)][_0x362364(0x1ed)](_0x362364(0x1aa)),'version':_0x3ce736[_0x362364(0x1f3)]?.[_0x362364(0x1f9)],'sessionId':_0x3ce736[_0x362364(0x1f3)]?.[_0x362364(0x1ea)]};}return{'id':_0x806b35['id'],'uiId':_0x806b35['id'],'label':_0x806b35[_0x362364(0x1f3)]?.[_0x362364(0x21c)]||_0x806b35[_0x362364(0x1b7)]||_0x806b35[_0x362364(0x1ee)]||_0x806b35['id'],'type':_0x806b35[_0x362364(0x1da)],..._0x806b35?.[_0x362364(0x1f3)]?.[_0x362364(0x1f0)]?{'resourceId':_0x806b35[_0x362364(0x1f3)]?.[_0x362364(0x1f0)]}:{}};}[_0x2ea2d0(0x1c2)](){const _0xe82849=_0x2ea2d0;return new Map(this[_0xe82849(0x20c)]);}[_0x2ea2d0(0x1bb)](_0x194d7a){const _0x29120c=_0x2ea2d0,_0x561920=this[_0x29120c(0x1b8)][_0x29120c(0x213)](_0x194d7a);_0x561920?.[_0x29120c(0x1b2)]||this[_0x29120c(0x1cc)](_0x194d7a);}[_0x2ea2d0(0x1d3)](){const _0x458e9=_0x2ea2d0;if(0x0===this[_0x458e9(0x1b8)][_0x458e9(0x204)])return;for(const _0x461ce2 of this[_0x458e9(0x1b8)][_0x458e9(0x1d6)]())this[_0x458e9(0x1cc)](_0x461ce2[_0x458e9(0x1ae)]);const _0x3bdb90=this[_0x458e9(0x20c)][_0x458e9(0x213)](_0x458e9(0x1aa))||this[_0x458e9(0x1b8)][_0x458e9(0x213)](_0x458e9(0x1aa));_0x3bdb90&&this[_0x458e9(0x1b1)]({..._0x3bdb90,'isReadOnly':!0x0,'hidden':!0x0});}[_0x2ea2d0(0x21d)](_0x2412f0){const _0x1fdc47=_0x2ea2d0;for(const _0x3966c5 of _0x2412f0[_0x1fdc47(0x1d6)]())this[_0x1fdc47(0x1bc)](_0x3966c5);this[_0x1fdc47(0x1d3)](),this[_0x1fdc47(0x1fc)](_0x1fdc47(0x1d7),{'contextItems':Array[_0x1fdc47(0x212)](this[_0x1fdc47(0x1c2)]()[_0x1fdc47(0x1d6)]())});}[_0x2ea2d0(0x1a4)](){const _0xbdb70b=_0x2ea2d0;return this[_0xbdb70b(0x1b8)][_0xbdb70b(0x1ed)](_0xbdb70b(0x1aa));}[_0x2ea2d0(0x1df)](){const _0x253af2=_0x2ea2d0;return this[_0x253af2(0x1b8)][_0x253af2(0x1ed)](_0x253af2(0x219));}[_0x2ea2d0(0x1b6)](){const _0x2b80a3=_0x2ea2d0;return this[_0x2b80a3(0x20c)][_0x2b80a3(0x1ed)](_0x2b80a3(0x1aa));}static[_0x2ea2d0(0x20d)](_0x304f70){const _0x27d0bc=_0x2ea2d0;return Array[_0x27d0bc(0x212)](_0x304f70[_0x27d0bc(0x1d6)]())[_0x27d0bc(0x1fe)](_0x1a52e4=>this[_0x27d0bc(0x1ba)](_0x1a52e4))[_0x27d0bc(0x1dd)](_0x597624=>null!==_0x597624);}async[_0x2ea2d0(0x207)](_0x173d80,_0x164208,_0x5df278=_0x36b57b[_0x2ea2d0(0x1cd)]){const _0xceb25f=_0x2ea2d0,_0xd015fb=_0xceb25f(0x1e9)+_0x2aaa18();this[_0xceb25f(0x208)](_0xd015fb);try{await Promise[_0xceb25f(0x22e)](_0x173d80[_0xceb25f(0x1fe)](async _0x1ce45e=>{const _0x151c0a=_0xceb25f,_0x549c4d=_0x151c0a(0x226)+_0x2aaa18(),_0x12dcff=_0x1ea844(_0x1ce45e[_0x151c0a(0x1b7)]);try{this[_0x151c0a(0x1b1)]({'type':_0x5df278,'label':_0x164208?.[_0x151c0a(0x21c)]||_0x12dcff,'uiId':_0x549c4d,'resourceId':_0x164208?.[_0x151c0a(0x1f0)]},!0x0);const _0x1fec18=this[_0x151c0a(0x1d5)][_0x151c0a(0x20a)](this[_0x151c0a(0x20b)],_0x1ce45e,_0x164208);this[_0x151c0a(0x231)][_0x151c0a(0x1ef)](_0x549c4d,_0x1fec18[_0x151c0a(0x22d)]);const {id:_0x42fa8a}=await _0x1fec18[_0x151c0a(0x21b)]();this[_0x151c0a(0x231)][_0x151c0a(0x1d8)](_0x549c4d),this[_0x151c0a(0x1a7)]({'type':_0x5df278,'id':_0x42fa8a,'label':_0x164208?.[_0x151c0a(0x21c)]||_0x12dcff,'uiId':_0x549c4d,'resourceId':_0x164208?.[_0x151c0a(0x1f0)]},!0x1);}catch(_0x4d8217){this[_0x151c0a(0x231)][_0x151c0a(0x1d8)](_0x549c4d);if(!(_0x4d8217 instanceof _0x36262f&&_0x4d8217[_0x151c0a(0x223)][_0x151c0a(0x1e6)](_0x151c0a(0x216)))){const _0x5147eb=_0x4b27f9[_0x151c0a(0x213)](_0x4d8217[_0x151c0a(0x1d2)])||_0x151c0a(0x1de),_0x2f9c14=new _0x36262f(_0x5147eb,null,{'fileName':_0x12dcff,..._0x4d8217});_0x2f9c14[_0x151c0a(0x1cb)]=_0x4d8217[_0x151c0a(0x1cb)],this[_0x151c0a(0x1fc)](_0x151c0a(0x1c0),{'error':_0x2f9c14});}this[_0x151c0a(0x1cc)](_0x549c4d);}}));}finally{this[_0xceb25f(0x1b0)](_0xd015fb);}}[_0x2ea2d0(0x1f6)](_0x136b69){const _0x4aa578=_0x2ea2d0;if(this[_0x4aa578(0x1a4)]()||!this[_0x4aa578(0x1e5)][_0x4aa578(0x227)][_0x4aa578(0x217)])return;const _0x5d6634={'type':_0x36b57b[_0x4aa578(0x1c7)],'uiId':_0x4aa578(0x1aa),'label':_0x136b69,'isReadOnly':this[_0x4aa578(0x20c)][_0x4aa578(0x1ed)](_0x4aa578(0x1aa)),'hidden':this[_0x4aa578(0x20c)][_0x4aa578(0x1ed)](_0x4aa578(0x1aa))};this[_0x4aa578(0x1b1)](_0x5d6634);}async[_0x2ea2d0(0x1db)](_0x28b73b,_0x522141,_0x5c9db4,_0x34db8c){const _0x520f12=_0x2ea2d0,_0x359307=this[_0x520f12(0x1b8)][_0x520f12(0x213)](_0x520f12(0x1aa));if(_0x359307&&_0x28b73b){_0x359307[_0x520f12(0x219)]=_0x34db8c?_0x34db8c[_0x520f12(0x1fe)](_0x63fe62=>({'start':_0x63fe62[_0x520f12(0x1d4)],'end':_0x63fe62[_0x520f12(0x1e4)]})):[];try{if(_0x359307[_0x520f12(0x1f9)]===_0x522141)return;const {id:_0x3049a1}=await this[_0x520f12(0x1d5)][_0x520f12(0x1f4)](this[_0x520f12(0x20b)],_0x28b73b,{'version':_0x522141,'sessionId':_0x5c9db4})[_0x520f12(0x21b)]();_0x359307['id']=_0x3049a1,_0x359307[_0x520f12(0x1f8)]=_0x28b73b,_0x359307[_0x520f12(0x1f9)]=_0x522141,_0x359307[_0x520f12(0x1ea)]=_0x5c9db4;}catch(_0x5399a2){const _0x5cc73e=new _0x36262f(_0x520f12(0x1e0),null);_0x5cc73e[_0x520f12(0x1cb)]=_0x5399a2[_0x520f12(0x1cb)],this[_0x520f12(0x1fc)](_0x520f12(0x1c0),{'error':_0x5cc73e});}}}[_0x2ea2d0(0x228)](_0x122fbe){const _0x50eafb=_0x2ea2d0;this[_0x50eafb(0x1b1)]({'type':_0x36b57b[_0x50eafb(0x215)],'label':_0x122fbe,'uiId':_0x50eafb(0x219),'content':_0x122fbe});}[_0x2ea2d0(0x1ce)](){const _0x2b3fdd=_0x2ea2d0;this[_0x2b3fdd(0x1cc)](_0x2b3fdd(0x219));}async[_0x2ea2d0(0x22b)](_0x4d2bbe,_0x3347f1){const _0xd35b23=_0x2ea2d0,_0x5b55f0=_0xd35b23(0x1e7)+_0x2aaa18();this[_0xd35b23(0x208)](_0x5b55f0);const _0x141378=_0xd35b23(0x1e7)+_0x2aaa18();try{this[_0xd35b23(0x1b1)]({'type':_0x36b57b[_0xd35b23(0x1bd)],'label':_0x3347f1?.[_0xd35b23(0x21c)]||_0x4d2bbe,'uiId':_0x141378,'resourceId':_0x3347f1?.[_0xd35b23(0x1f0)]},!0x0);const _0x15c2a2=this[_0xd35b23(0x1d5)][_0xd35b23(0x1ac)](this[_0xd35b23(0x20b)],_0x4d2bbe,_0x3347f1);this[_0xd35b23(0x231)][_0xd35b23(0x1ef)](_0x141378,_0x15c2a2[_0xd35b23(0x22d)]);const {id:_0x41cea4}=await _0x15c2a2[_0xd35b23(0x21b)]();this[_0xd35b23(0x231)][_0xd35b23(0x1d8)](_0x141378),this[_0xd35b23(0x1a7)]({'type':_0x36b57b[_0xd35b23(0x1bd)],'id':_0x41cea4,'label':_0x3347f1?.[_0xd35b23(0x21c)]||_0x4d2bbe,'uiId':_0x141378,'resourceId':_0x3347f1?.[_0xd35b23(0x1f0)]},!0x1);}catch(_0x34bb58){this[_0xd35b23(0x231)][_0xd35b23(0x1d8)](_0x141378),(_0x34bb58[_0xd35b23(0x223)][_0xd35b23(0x1e6)](_0xd35b23(0x216))||this[_0xd35b23(0x1fc)](_0xd35b23(0x1c0),{'error':new _0x36262f(_0xd35b23(0x1c4),this,{'url':_0x4d2bbe,'originalError':_0x34bb58}),'url':_0x4d2bbe}),this[_0xd35b23(0x1cc)](_0x141378));}finally{this[_0xd35b23(0x1b0)](_0x5b55f0);}}async[_0x2ea2d0(0x20e)](_0x3be106,_0x3955be,_0x48fec8){const _0x394c29=_0x2ea2d0,_0x5dec83=this[_0x394c29(0x1e5)][_0x394c29(0x232)][_0x394c29(0x211)](_0x3e6d21=>_0x3e6d21['id']===_0x3be106);if(!_0x5dec83)return this[_0x394c29(0x1fc)](_0x394c29(0x1c0),{'error':new _0x36262f(_0x394c29(0x21a),this,{'sourceId':_0x3be106}),'sourceId':_0x3be106}),[];try{const _0x25a091=(await _0x5dec83[_0x394c29(0x1ca)](_0x3955be))[_0x394c29(0x1fe)](_0x4e5199=>{const _0x114f55=_0x394c29,_0x52d6c2=this[_0x114f55(0x21f)](_0x4e5199['id']);return{..._0x4e5199,'isInContext':_0x52d6c2};});return _0x5dec83[_0x394c29(0x1d9)]=_0x25a091,this[_0x394c29(0x1fc)](_0x394c29(0x1c8),{'sourceId':_0x3be106,'source':_0x5dec83,'resources':_0x25a091,'uid':_0x48fec8}),_0x25a091;}catch(_0xd44e48){return this[_0x394c29(0x1fc)](_0x394c29(0x1c0),{'error':new _0x36262f(_0x394c29(0x22a),this,{'sourceId':_0x3be106,'originalError':_0xd44e48}),'sourceId':_0x3be106,'sourceLabel':_0x5dec83[_0x394c29(0x21c)]}),[];}}async[_0x2ea2d0(0x1e3)](_0x4a4c8b,_0xe92e7d){const _0x4d2247=_0x2ea2d0;if(this[_0x4d2247(0x21f)](_0xe92e7d['id']))return;let _0x3930c1=_0xe92e7d[_0x4d2247(0x1fb)];if(!_0x3930c1&&_0x4a4c8b[_0x4d2247(0x1c9)])try{_0x3930c1=await _0x4a4c8b[_0x4d2247(0x1c9)](_0xe92e7d['id']);}catch(_0x536dc1){return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1eb),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'originalError':_0x536dc1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});}if(_0x3930c1)switch(_0xe92e7d[_0x4d2247(0x1da)]){case _0x36b57b[_0x4d2247(0x1bd)]:if(_0x4d2247(0x1c5)!=typeof _0x3930c1)return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1a9),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'expectedType':_0x4d2247(0x1c5),'actualType':typeof _0x3930c1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});await this[_0x4d2247(0x22b)](_0x3930c1,{'label':_0xe92e7d[_0x4d2247(0x21c)],'resourceId':_0xe92e7d['id']});break;case _0x36b57b[_0x4d2247(0x1cd)]:if(!(_0x3930c1 instanceof File))return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1a9),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'expectedType':_0x4d2247(0x1ab),'actualType':typeof _0x3930c1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});await this[_0x4d2247(0x207)]([_0x3930c1],{'label':_0xe92e7d[_0x4d2247(0x21c)],'resourceId':_0xe92e7d['id']});break;case _0x36b57b[_0x4d2247(0x1a5)]:if(_0x4d2247(0x200)!=typeof _0x3930c1||!(_0x4d2247(0x1f8)in _0x3930c1)||!(_0x4d2247(0x1da)in _0x3930c1))return void this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1a9),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'expectedType':_0x4d2247(0x221),'actualType':typeof _0x3930c1}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});_0x3930c1=AIChatContext[_0x4d2247(0x1be)](_0x3930c1,_0xe92e7d[_0x4d2247(0x21c)]),await this[_0x4d2247(0x207)]([_0x3930c1],{'label':_0xe92e7d[_0x4d2247(0x21c)],'resourceId':_0xe92e7d['id']},_0x36b57b[_0x4d2247(0x1a5)]);break;default:this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x22f),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id'],'resourceType':_0xe92e7d[_0x4d2247(0x1da)]}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});}else this[_0x4d2247(0x1fc)](_0x4d2247(0x1c0),{'error':new _0x36262f(_0x4d2247(0x1f1),this,{'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']}),'resourceId':_0xe92e7d['id'],'sourceId':_0x4a4c8b['id']});}static[_0x2ea2d0(0x1be)](_0x2730aa,_0x16cacc){const _0x266a99=_0x2ea2d0;switch(_0x2730aa[_0x266a99(0x1da)]){case _0x1b09ae[_0x266a99(0x201)]:return new File([_0x2730aa[_0x266a99(0x1f8)]],_0x16cacc,{'type':_0x266a99(0x1ec)});case _0x1b09ae[_0x266a99(0x224)]:return new File([_0x2730aa[_0x266a99(0x1f8)]],_0x16cacc,{'type':_0x266a99(0x1b4)});default:return new File([_0x2730aa[_0x266a99(0x1f8)]],_0x16cacc,{'type':_0x266a99(0x230)});}}static[_0x2ea2d0(0x1ba)](_0x5a2c45){const _0x43491d=_0x2ea2d0;switch(_0x5a2c45[_0x43491d(0x1da)]){case _0x36b57b[_0x43491d(0x1cd)]:return{'type':_0x36b57b[_0x43491d(0x1cd)],'id':_0x5a2c45['id']};case _0x36b57b[_0x43491d(0x1bd)]:return{'type':_0x36b57b[_0x43491d(0x1bd)],'id':_0x5a2c45['id']};case _0x36b57b[_0x43491d(0x1c7)]:return{'type':_0x36b57b[_0x43491d(0x1c7)],'id':_0x5a2c45['id'],..._0x5a2c45[_0x43491d(0x219)]?.[_0x43491d(0x220)]&&{'selection':_0x5a2c45[_0x43491d(0x219)]}};case _0x36b57b[_0x43491d(0x1a5)]:return{'type':_0x36b57b[_0x43491d(0x1cd)],'id':_0x5a2c45['id']};default:return null;}}[_0x2ea2d0(0x1b1)](_0x5eeb25,_0x3613a4=!0x1){const _0x1ae416=_0x2ea2d0;if(this[_0x1ae416(0x1b8)][_0x1ae416(0x1ef)](_0x5eeb25[_0x1ae416(0x1ae)],_0x5eeb25),_0x5eeb25[_0x1ae416(0x1b3)]||this[_0x1ae416(0x1fc)](_0x1ae416(0x214),{'contextItem':_0x5eeb25,'isLoading':_0x3613a4}),_0x1ae416(0x1aa)===_0x5eeb25[_0x1ae416(0x1ae)]&&this[_0x1ae416(0x202)](),_0x5eeb25[_0x1ae416(0x1f0)]){const _0x4d0edf=this[_0x1ae416(0x1f2)](_0x5eeb25[_0x1ae416(0x1f0)]);_0x4d0edf&&_0x4d0edf[_0x1ae416(0x1e2)](_0x5e0588=>{const _0x374328=_0x1ae416;this[_0x374328(0x218)](_0x5e0588,_0x5eeb25[_0x374328(0x1f0)],!0x0);});}}[_0x2ea2d0(0x1cc)](_0x50f944){const _0x20c842=_0x2ea2d0,_0x4b7453=this[_0x20c842(0x1b8)][_0x20c842(0x213)](_0x50f944),_0x1e3589=this[_0x20c842(0x231)][_0x20c842(0x213)](_0x50f944);if(_0x1e3589&&(_0x1e3589[_0x20c842(0x1b5)](),this[_0x20c842(0x231)][_0x20c842(0x1d8)](_0x50f944)),_0x4b7453?.[_0x20c842(0x1f0)]){const _0x57e9da=this[_0x20c842(0x1f2)](_0x4b7453[_0x20c842(0x1f0)]);_0x57e9da&&_0x57e9da[_0x20c842(0x1e2)](_0x3b1012=>{const _0x22c9b4=_0x20c842;this[_0x22c9b4(0x218)](_0x3b1012,_0x4b7453[_0x22c9b4(0x1f0)],!0x1);});}this[_0x20c842(0x1b8)][_0x20c842(0x1d8)](_0x50f944),this[_0x20c842(0x1fc)](_0x20c842(0x1dc),{'uiId':_0x50f944,'type':_0x4b7453?.[_0x20c842(0x1da)]}),_0x20c842(0x1aa)===_0x50f944&&this[_0x20c842(0x202)]();}[_0x2ea2d0(0x1a7)](_0x156ac4,_0x4215e3){const _0x534e0b=_0x2ea2d0;if(this[_0x534e0b(0x1b8)][_0x534e0b(0x1ed)](_0x156ac4[_0x534e0b(0x1ae)])&&(this[_0x534e0b(0x1b8)][_0x534e0b(0x1ef)](_0x156ac4[_0x534e0b(0x1ae)],_0x156ac4),this[_0x534e0b(0x1fc)](_0x534e0b(0x20f),{'contextItem':_0x156ac4,'isLoading':_0x4215e3}),_0x156ac4[_0x534e0b(0x1f0)])){const _0x591c09=this[_0x534e0b(0x1f2)](_0x156ac4[_0x534e0b(0x1f0)]);_0x591c09&&_0x591c09[_0x534e0b(0x1e2)](_0x5126cb=>{const _0x54cd87=_0x534e0b;this[_0x54cd87(0x218)](_0x5126cb,_0x156ac4[_0x54cd87(0x1f0)],!0x0);});}}[_0x2ea2d0(0x1bc)](_0x582dac){const _0x26f408=_0x2ea2d0;this[_0x26f408(0x20c)][_0x26f408(0x1ef)](_0x582dac[_0x26f408(0x1ae)],_0x582dac);}[_0x2ea2d0(0x1e1)](){const _0x2eed21=_0x2ea2d0;this[_0x2eed21(0x1e5)]={'document':{'enabled':!0x1!==this[_0x2eed21(0x1c1)]?.[_0x2eed21(0x227)]?.[_0x2eed21(0x217)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2eed21(0x1c1)]?.[_0x2eed21(0x1fa)]?.[_0x2eed21(0x217)]},'files':{'enabled':!0x1!==this[_0x2eed21(0x1c1)]?.[_0x2eed21(0x1e8)]?.[_0x2eed21(0x217)]},'sources':this[_0x2eed21(0x21e)]()},this[_0x2eed21(0x1fc)](_0x2eed21(0x1a6),{'options':this[_0x2eed21(0x1e5)]});}[_0x2ea2d0(0x21e)](){const _0x1ef218=_0x2ea2d0;return this[_0x1ef218(0x1c1)]?.[_0x1ef218(0x232)]?.[_0x1ef218(0x1fe)](_0xf7eaec=>({..._0xf7eaec,'resources':[]}))??[];}[_0x2ea2d0(0x202)](){const _0x585ee2=_0x2ea2d0,_0x37a138=this[_0x585ee2(0x1a4)]()||this[_0x585ee2(0x1b6)]();this[_0x585ee2(0x1e5)][_0x585ee2(0x227)][_0x585ee2(0x1d1)]=_0x37a138,this[_0x585ee2(0x1fc)](_0x585ee2(0x1a6),{'options':this[_0x585ee2(0x1e5)]});}[_0x2ea2d0(0x21f)](_0x58b626){const _0x96805=_0x2ea2d0;for(const _0x43cf2c of this[_0x96805(0x1b8)][_0x96805(0x1d6)]())if(_0x43cf2c[_0x96805(0x1f0)]===_0x58b626)return!0x0;for(const _0x311964 of this[_0x96805(0x20c)][_0x96805(0x1d6)]())if(_0x311964[_0x96805(0x1f0)]===_0x58b626)return!0x0;return!0x1;}[_0x2ea2d0(0x1f2)](_0x5b13a2){const _0x25284a=_0x2ea2d0,_0x1e3763=[];for(const _0x27226a of this[_0x25284a(0x1e5)][_0x25284a(0x232)]){_0x27226a[_0x25284a(0x1d9)][_0x25284a(0x211)](_0x65cdbc=>_0x65cdbc['id']===_0x5b13a2)&&_0x1e3763[_0x25284a(0x1c3)](_0x27226a['id']);}return 0x0===_0x1e3763[_0x25284a(0x220)]?null:_0x1e3763;}[_0x2ea2d0(0x218)](_0x4d4164,_0x375132,_0x4a7465){const _0x1db19f=_0x2ea2d0,_0x59b4f9=this[_0x1db19f(0x1e5)][_0x1db19f(0x232)][_0x1db19f(0x211)](_0x376b07=>_0x376b07['id']===_0x4d4164);if(!_0x59b4f9)return;const _0x484bb2=_0x59b4f9[_0x1db19f(0x1d9)][_0x1db19f(0x211)](_0x23e98b=>_0x23e98b['id']===_0x375132);_0x484bb2&&(_0x484bb2[_0x1db19f(0x1bf)]=_0x4a7465,this[_0x1db19f(0x1fc)](_0x1db19f(0x205),{'sourceId':_0x4d4164,'resourceId':_0x375132,'isInContext':_0x4a7465}));}[_0x2ea2d0(0x208)](_0x578e4e){const _0x5ad91f=_0x2ea2d0;this[_0x5ad91f(0x210)][_0x5ad91f(0x1ef)](_0x578e4e,!0x0),this[_0x5ad91f(0x210)][_0x5ad91f(0x204)]&&this[_0x5ad91f(0x1fc)](_0x5ad91f(0x1f7),{'isUploadInProgress':!0x0});}[_0x2ea2d0(0x1b0)](_0x36b0c7){const _0x4ba6a4=_0x2ea2d0;this[_0x4ba6a4(0x210)][_0x4ba6a4(0x1d8)](_0x36b0c7),0x0===this[_0x4ba6a4(0x210)][_0x4ba6a4(0x204)]&&this[_0x4ba6a4(0x1fc)](_0x4ba6a4(0x1f7),{'isUploadInProgress':!0x1});}}function _0x1d56(){const _0x1aed7c=['31326UhttPt','uiId','getDocument','_finishUploadOperation','_addContextItem','isReadOnly','hidden','text/html','abort','isCurrentDocumentInConversation','name','_pendingContextItems','373175ihXJjr','_mapContextItemToRequestData','removeFromContext','_addToConversationContextItem','URL','_convertTextResourceToFile','isInContext','error','_config','getSentContextItems','push','ai-chat-url-upload-failed','string','Current\x20document','DOCUMENT','sourceResourcesLoaded','getData','getResources','stack','_removeContextItem','FILE','removeSelectionFromContext','735580lCAWiM','4dXXpZg','isHidden','code','clearPendingContextItems','start','_connector','values','contextSent','delete','resources','type','updateCurrentDocument','contextItemRemoved','filter','ai-chat-file-upload-failed','isSelectionInContext','ai-chat-document-upload-failed','_setAddContextOptionsDefaultState','forEach','addResourceToContext','end','_addContextOptionsState','startsWith','url-','files','files-','sessionId','ai-chat-resource-load-failed','text/markdown','has','url','set','resourceId','ai-chat-resource-no-data','_findSourceIdsByResourceId','attributes','uploadDocument','getPendingContextItems','addCurrentDocumentToContext','uploadProgressChanged','content','version','urls','data','fire','populateFromMessage','map','938715cZHFAu','object','MARKDOWN','_toggleAddCurrentDocumentOptionVisibility','init','size','resourceStateChanged','532zGlNzL','addFilesToContext','_startUploadOperation','fetchDocument','uploadFile','_ownerId','_conversationContextItems','mapContextItemsToRequestData','loadSourceResources','contextItemLoadingEnded','_ongoingUploadOperations','find','from','get','contextItemAdded','SELECTION','ai-request-aborted','enabled','_updateResourceInContextState','selection','ai-chat-source-not-found','getId','label','addToConversationContext','_getCustomSourcesInitialState','_isResourceInContext','length','object\x20with\x20content\x20and\x20type\x20properties','2027254eBinRo','message','HTML','117aLougY','file-','document','addSelectionToContext','3016089iOPGpE','ai-chat-source-resources-load-failed','addUrlToContext','5277888PwbuRc','abortController','all','ai-chat-context-unsupported-type','text/plain','_ongoingUploads','sources','isCurrentDocumentInContext','TEXT','addContextOptionsChanged','_finishContextItemLoading','_createContextItemFromContent','ai-chat-context-invalid-data','current-document','File','uploadUrl'];_0x1d56=function(){return _0x1aed7c;};return _0x1d56();}
|
|
23
|
+
const _0x5740aa=_0x3ed1;(function(_0x1d0926,_0x4ecba2){const _0x180f8d=_0x3ed1,_0x185540=_0x1d0926();while(!![]){try{const _0x58bb71=-parseInt(_0x180f8d(0x156))/0x1*(-parseInt(_0x180f8d(0x130))/0x2)+-parseInt(_0x180f8d(0x111))/0x3*(parseInt(_0x180f8d(0x118))/0x4)+-parseInt(_0x180f8d(0x110))/0x5*(-parseInt(_0x180f8d(0x164))/0x6)+-parseInt(_0x180f8d(0x165))/0x7*(-parseInt(_0x180f8d(0x147))/0x8)+parseInt(_0x180f8d(0x155))/0x9+parseInt(_0x180f8d(0x193))/0xa+-parseInt(_0x180f8d(0x175))/0xb*(parseInt(_0x180f8d(0x153))/0xc);if(_0x58bb71===_0x4ecba2)break;else _0x185540['push'](_0x185540['shift']());}catch(_0xe68ba4){_0x185540['push'](_0x185540['shift']());}}}(_0x2696,0xe5c18));function _0x3ed1(_0x225f33,_0x4acc9b){const _0x2696d1=_0x2696();return _0x3ed1=function(_0x3ed1b1,_0x1a71d7){_0x3ed1b1=_0x3ed1b1-0x107;let _0x141a7d=_0x2696d1[_0x3ed1b1];return _0x141a7d;},_0x3ed1(_0x225f33,_0x4acc9b);}import{CKEditorError as _0x2a5557,ObservableMixin as _0x10d4e3,uid as _0x57fc2b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a8329,AIContextTextResourceType as _0x2f8119}from'../../aicore/model/aicontext.js';import{escape as _0x5036fd}from'es-toolkit/compat';import{errorsMap as _0x4ffe61}from'../../errorsmap.js';function _0x2696(){const _0x53c61e=['addFilesToContext','fire','_createContextItemFromContent','_updateResourceInContextState','contextSent','getDocument','find','Current\x20document','code','ai-chat-source-not-found','type','text/plain','updateCurrentDocument','ai-chat-resource-load-failed','delete','values','getData','_finishUploadOperation','text/markdown','ai-request-aborted','8468632gnvBiN','uploadProgressChanged','resourceStateChanged','url-','removeFromContext','sources','set','ai-chat-context-unsupported-type','clearPendingContextItems','files-','selection','SELECTION','50364wdJmKO','_mapContextItemToRequestData','3630528MDREZI','14NrDCoN','filter','_convertTextResourceToFile','removeSelectionFromContext','map','uploadDocument','addSelectionToContext','mapContextItemsToRequestData','stack','URL','uiId','_addToConversationContextItem','isReadOnly','abortController','66tjVqGi','7KYHAbl','text/html','_startUploadOperation','init','isHidden','_ongoingUploadOperations','File','addCurrentDocumentToContext','from','_finishContextItemLoading','getPendingContextItems','isInContext','message','uploadFile','data','_addContextOptionsState','10351pALTan','FILE','_setAddContextOptionsDefaultState','document','contextItemAdded','addUrlToContext','_pendingContextItems','abort','urls','isCurrentDocumentInContext','forEach','_conversationContextItems','error','sourceResourcesLoaded','_config','_removeContextItem','_toggleAddCurrentDocumentOptionVisibility','url','loadSourceResources','_findSourceIdsByResourceId','sessionId','object\x20with\x20content\x20and\x20type\x20properties','get','fetchDocument','current-document','getId','ai-chat-url-upload-failed','_addContextItem','getResources','has','6136630SZlfBM','addContextOptionsChanged','_isResourceInContext','start','populateFromMessage','object','MARKDOWN','push','TEXT','ai-chat-resource-no-data','addToConversationContext','length','ai-chat-document-upload-failed','isCurrentDocumentInConversation','668165uuvJaB','175704eHEmFm','_ongoingUploads','string','files','ai-chat-file-upload-failed','name','file-','24DEfPcw','resources','contextItemLoadingEnded','HTML','size','contextItemRemoved','_ownerId','version','enabled','ai-chat-context-invalid-data','_connector','end','_getCustomSourcesInitialState','ai-chat-source-resources-load-failed','hidden','getSentContextItems','DOCUMENT','resourceId','addResourceToContext','content','startsWith','uploadUrl','attributes','all','242324IjtZhg','isSelectionInContext','label'];_0x2696=function(){return _0x53c61e;};return _0x2696();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5740aa(0x179),_0x5740aa(0x11d),_0x5740aa(0x11a),_0x5740aa(0x137),_0x5740aa(0x181),_0x5740aa(0x194),_0x5740aa(0x182),_0x5740aa(0x149),_0x5740aa(0x148)];export class AIChatContext extends _0x10d4e3(){[_0x5740aa(0x122)];[_0x5740aa(0x183)];[_0x5740aa(0x11e)];constructor({connector:_0x34a9ff,config:_0xef53cc,ownerId:_0x2006d9}){const _0x3f6bc4=_0x5740aa;super(),this[_0x3f6bc4(0x122)]=_0x34a9ff,this[_0x3f6bc4(0x183)]=_0xef53cc,this[_0x3f6bc4(0x11e)]=_0x2006d9;}[_0x5740aa(0x168)](){const _0x4cdd6f=_0x5740aa;this[_0x4cdd6f(0x17b)]=new Map(),this[_0x4cdd6f(0x180)]=new Map(),this[_0x4cdd6f(0x112)]=new Map(),this[_0x4cdd6f(0x16a)]=new Map(),this[_0x4cdd6f(0x177)]();}[_0x5740aa(0x16f)](){const _0x3d4ec0=_0x5740aa;return this[_0x3d4ec0(0x17b)];}async[_0x5740aa(0x197)](_0x539a61){const _0x2b26f8=_0x5740aa,_0x53c591=await this[_0x2b26f8(0x135)](_0x539a61);return this[_0x2b26f8(0x161)](_0x53c591),_0x2b26f8(0x18d)===_0x53c591[_0x2b26f8(0x160)]&&this[_0x2b26f8(0x185)](),_0x53c591;}async[_0x5740aa(0x135)](_0x93ac0){const _0x3084ba=_0x5740aa;if(_0x93ac0[_0x3084ba(0x13d)]===_0x4a8329[_0x3084ba(0x128)]){const _0x565d03=await this[_0x3084ba(0x122)][_0x3084ba(0x18c)](this[_0x3084ba(0x11e)],_0x93ac0['id'])[_0x3084ba(0x138)]();return{'id':_0x3084ba(0x18d),'uiId':_0x3084ba(0x18d),'label':_0x3084ba(0x13a),'type':_0x93ac0[_0x3084ba(0x13d)],'content':_0x565d03[_0x3084ba(0x12b)],'hidden':this[_0x3084ba(0x180)][_0x3084ba(0x192)](_0x3084ba(0x18d)),'version':_0x565d03[_0x3084ba(0x12e)]?.[_0x3084ba(0x11f)],'sessionId':_0x565d03[_0x3084ba(0x12e)]?.[_0x3084ba(0x189)]};}return{'id':_0x93ac0['id'],'uiId':_0x93ac0['id'],'label':_0x93ac0[_0x3084ba(0x12e)]?.[_0x3084ba(0x132)]||_0x93ac0[_0x3084ba(0x116)]||_0x93ac0[_0x3084ba(0x186)]||_0x93ac0['id'],'type':_0x93ac0[_0x3084ba(0x13d)],..._0x93ac0?.[_0x3084ba(0x12e)]?.[_0x3084ba(0x129)]?{'resourceId':_0x93ac0[_0x3084ba(0x12e)]?.[_0x3084ba(0x129)]}:{}};}[_0x5740aa(0x127)](){const _0x1802a7=_0x5740aa;return new Map(this[_0x1802a7(0x180)]);}[_0x5740aa(0x14b)](_0x271253){const _0x1b0e8d=_0x5740aa,_0x269fb2=this[_0x1b0e8d(0x17b)][_0x1b0e8d(0x18b)](_0x271253);_0x269fb2?.[_0x1b0e8d(0x162)]||this[_0x1b0e8d(0x184)](_0x271253);}[_0x5740aa(0x14f)](){const _0x2a93b3=_0x5740aa;if(0x0===this[_0x2a93b3(0x17b)][_0x2a93b3(0x11c)])return;for(const _0x424aa3 of this[_0x2a93b3(0x17b)][_0x2a93b3(0x142)]())this[_0x2a93b3(0x184)](_0x424aa3[_0x2a93b3(0x160)]);const _0x52d215=this[_0x2a93b3(0x180)][_0x2a93b3(0x18b)](_0x2a93b3(0x18d))||this[_0x2a93b3(0x17b)][_0x2a93b3(0x18b)](_0x2a93b3(0x18d));_0x52d215&&this[_0x2a93b3(0x190)]({..._0x52d215,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5740aa(0x10c)](_0x18d115){const _0x3d3696=_0x5740aa;for(const _0x175e3f of _0x18d115[_0x3d3696(0x142)]())this[_0x3d3696(0x161)](_0x175e3f);this[_0x3d3696(0x14f)](),this[_0x3d3696(0x134)](_0x3d3696(0x137),{'contextItems':Array[_0x3d3696(0x16d)](this[_0x3d3696(0x127)]()[_0x3d3696(0x142)]())});}[_0x5740aa(0x17e)](){const _0x42b2b1=_0x5740aa;return this[_0x42b2b1(0x17b)][_0x42b2b1(0x192)](_0x42b2b1(0x18d));}[_0x5740aa(0x131)](){const _0x457861=_0x5740aa;return this[_0x457861(0x17b)][_0x457861(0x192)](_0x457861(0x151));}[_0x5740aa(0x10f)](){const _0x2dc626=_0x5740aa;return this[_0x2dc626(0x180)][_0x2dc626(0x192)](_0x2dc626(0x18d));}static[_0x5740aa(0x15d)](_0x2615ce){const _0x1590e4=_0x5740aa;return Array[_0x1590e4(0x16d)](_0x2615ce[_0x1590e4(0x142)]())[_0x1590e4(0x15a)](_0x56b115=>this[_0x1590e4(0x154)](_0x56b115))[_0x1590e4(0x157)](_0x48e095=>null!==_0x48e095);}async[_0x5740aa(0x133)](_0x314bf7,_0x36bed1,_0xadb6f0=_0x4a8329[_0x5740aa(0x176)]){const _0x4149d2=_0x5740aa,_0x59af53=_0x4149d2(0x150)+_0x57fc2b();this[_0x4149d2(0x167)](_0x59af53);try{await Promise[_0x4149d2(0x12f)](_0x314bf7[_0x4149d2(0x15a)](async _0x23f43d=>{const _0x28eaf0=_0x4149d2,_0x28c748=_0x28eaf0(0x117)+_0x57fc2b(),_0x32dec6=_0x5036fd(_0x23f43d[_0x28eaf0(0x116)]);try{this[_0x28eaf0(0x190)]({'type':_0xadb6f0,'label':_0x36bed1?.[_0x28eaf0(0x132)]||_0x32dec6,'uiId':_0x28c748,'resourceId':_0x36bed1?.[_0x28eaf0(0x129)]},!0x0);const _0x454bb1=this[_0x28eaf0(0x122)][_0x28eaf0(0x172)](this[_0x28eaf0(0x11e)],_0x23f43d,_0x36bed1);this[_0x28eaf0(0x112)][_0x28eaf0(0x14d)](_0x28c748,_0x454bb1[_0x28eaf0(0x163)]);const {id:_0x573bfa}=await _0x454bb1[_0x28eaf0(0x18e)]();this[_0x28eaf0(0x112)][_0x28eaf0(0x141)](_0x28c748),this[_0x28eaf0(0x16e)]({'type':_0xadb6f0,'id':_0x573bfa,'label':_0x36bed1?.[_0x28eaf0(0x132)]||_0x32dec6,'uiId':_0x28c748,'resourceId':_0x36bed1?.[_0x28eaf0(0x129)]},!0x1);}catch(_0x326169){this[_0x28eaf0(0x112)][_0x28eaf0(0x141)](_0x28c748);if(!(_0x326169 instanceof _0x2a5557&&_0x326169[_0x28eaf0(0x171)][_0x28eaf0(0x12c)](_0x28eaf0(0x146)))){const _0xff7cd4=_0x4ffe61[_0x28eaf0(0x18b)](_0x326169[_0x28eaf0(0x13b)])||_0x28eaf0(0x115),_0x230693=new _0x2a5557(_0xff7cd4,null,{'fileName':_0x32dec6,..._0x326169});_0x230693[_0x28eaf0(0x15e)]=_0x326169[_0x28eaf0(0x15e)],this[_0x28eaf0(0x134)](_0x28eaf0(0x181),{'error':_0x230693});}this[_0x28eaf0(0x184)](_0x28c748);}}));}finally{this[_0x4149d2(0x144)](_0x59af53);}}[_0x5740aa(0x16c)](_0x31fece){const _0xaa7fc6=_0x5740aa;if(this[_0xaa7fc6(0x17e)]()||!this[_0xaa7fc6(0x174)][_0xaa7fc6(0x178)][_0xaa7fc6(0x120)])return;const _0x37a28f={'type':_0x4a8329[_0xaa7fc6(0x128)],'uiId':_0xaa7fc6(0x18d),'label':_0x31fece,'isReadOnly':this[_0xaa7fc6(0x180)][_0xaa7fc6(0x192)](_0xaa7fc6(0x18d)),'hidden':this[_0xaa7fc6(0x180)][_0xaa7fc6(0x192)](_0xaa7fc6(0x18d))};this[_0xaa7fc6(0x190)](_0x37a28f);}async[_0x5740aa(0x13f)](_0x4e95c3,_0x3ad3b8,_0x2bf4fc,_0x481219){const _0x33ded1=_0x5740aa,_0x483b79=this[_0x33ded1(0x17b)][_0x33ded1(0x18b)](_0x33ded1(0x18d));if(_0x483b79&&_0x4e95c3){_0x483b79[_0x33ded1(0x151)]=_0x481219?_0x481219[_0x33ded1(0x15a)](_0x5a84a2=>({'start':_0x5a84a2[_0x33ded1(0x196)],'end':_0x5a84a2[_0x33ded1(0x123)]})):[];try{if(_0x483b79[_0x33ded1(0x11f)]===_0x3ad3b8)return;const {id:_0x5ee9e}=await this[_0x33ded1(0x122)][_0x33ded1(0x15b)](this[_0x33ded1(0x11e)],_0x4e95c3,{'version':_0x3ad3b8,'sessionId':_0x2bf4fc})[_0x33ded1(0x18e)]();_0x483b79['id']=_0x5ee9e,_0x483b79[_0x33ded1(0x12b)]=_0x4e95c3,_0x483b79[_0x33ded1(0x11f)]=_0x3ad3b8,_0x483b79[_0x33ded1(0x189)]=_0x2bf4fc;}catch(_0x4a6b5c){const _0xadfd8f=new _0x2a5557(_0x33ded1(0x10e),null);_0xadfd8f[_0x33ded1(0x15e)]=_0x4a6b5c[_0x33ded1(0x15e)],this[_0x33ded1(0x134)](_0x33ded1(0x181),{'error':_0xadfd8f});}}}[_0x5740aa(0x15c)](_0x2c6922){const _0x44cc78=_0x5740aa;this[_0x44cc78(0x190)]({'type':_0x4a8329[_0x44cc78(0x152)],'label':_0x2c6922,'uiId':_0x44cc78(0x151),'content':_0x2c6922});}[_0x5740aa(0x159)](){const _0x493b03=_0x5740aa;this[_0x493b03(0x184)](_0x493b03(0x151));}async[_0x5740aa(0x17a)](_0x20789f,_0x1b03f5){const _0x87ae51=_0x5740aa,_0xd51db4=_0x87ae51(0x14a)+_0x57fc2b();this[_0x87ae51(0x167)](_0xd51db4);const _0xad6e31=_0x87ae51(0x14a)+_0x57fc2b();try{this[_0x87ae51(0x190)]({'type':_0x4a8329[_0x87ae51(0x15f)],'label':_0x1b03f5?.[_0x87ae51(0x132)]||_0x20789f,'uiId':_0xad6e31,'resourceId':_0x1b03f5?.[_0x87ae51(0x129)]},!0x0);const _0x277b35=this[_0x87ae51(0x122)][_0x87ae51(0x12d)](this[_0x87ae51(0x11e)],_0x20789f,_0x1b03f5);this[_0x87ae51(0x112)][_0x87ae51(0x14d)](_0xad6e31,_0x277b35[_0x87ae51(0x163)]);const {id:_0x52a679}=await _0x277b35[_0x87ae51(0x18e)]();this[_0x87ae51(0x112)][_0x87ae51(0x141)](_0xad6e31),this[_0x87ae51(0x16e)]({'type':_0x4a8329[_0x87ae51(0x15f)],'id':_0x52a679,'label':_0x1b03f5?.[_0x87ae51(0x132)]||_0x20789f,'uiId':_0xad6e31,'resourceId':_0x1b03f5?.[_0x87ae51(0x129)]},!0x1);}catch(_0x2b87a7){this[_0x87ae51(0x112)][_0x87ae51(0x141)](_0xad6e31),(_0x2b87a7[_0x87ae51(0x171)][_0x87ae51(0x12c)](_0x87ae51(0x146))||this[_0x87ae51(0x134)](_0x87ae51(0x181),{'error':new _0x2a5557(_0x87ae51(0x18f),this,{'url':_0x20789f,'originalError':_0x2b87a7}),'url':_0x20789f}),this[_0x87ae51(0x184)](_0xad6e31));}finally{this[_0x87ae51(0x144)](_0xd51db4);}}async[_0x5740aa(0x187)](_0x27e95d,_0x5d3dd0,_0x1b7826){const _0x2df96a=_0x5740aa,_0x29519f=this[_0x2df96a(0x174)][_0x2df96a(0x14c)][_0x2df96a(0x139)](_0xee6b45=>_0xee6b45['id']===_0x27e95d);if(!_0x29519f)return this[_0x2df96a(0x134)](_0x2df96a(0x181),{'error':new _0x2a5557(_0x2df96a(0x13c),this,{'sourceId':_0x27e95d}),'sourceId':_0x27e95d}),[];try{const _0xd9c874=(await _0x29519f[_0x2df96a(0x191)](_0x5d3dd0))[_0x2df96a(0x15a)](_0x532dd2=>{const _0x161669=_0x2df96a,_0x4dbfc3=this[_0x161669(0x195)](_0x532dd2['id']);return{..._0x532dd2,'isInContext':_0x4dbfc3};});return _0x29519f[_0x2df96a(0x119)]=_0xd9c874,this[_0x2df96a(0x134)](_0x2df96a(0x182),{'sourceId':_0x27e95d,'source':_0x29519f,'resources':_0xd9c874,'uid':_0x1b7826}),_0xd9c874;}catch(_0x452645){return this[_0x2df96a(0x134)](_0x2df96a(0x181),{'error':new _0x2a5557(_0x2df96a(0x125),this,{'sourceId':_0x27e95d,'originalError':_0x452645}),'sourceId':_0x27e95d,'sourceLabel':_0x29519f[_0x2df96a(0x132)]}),[];}}async[_0x5740aa(0x12a)](_0x4ed33c,_0x50187e){const _0xe93d72=_0x5740aa;if(this[_0xe93d72(0x195)](_0x50187e['id']))return;let _0x38c81d=_0x50187e[_0xe93d72(0x173)];if(!_0x38c81d&&_0x4ed33c[_0xe93d72(0x143)])try{_0x38c81d=await _0x4ed33c[_0xe93d72(0x143)](_0x50187e['id']);}catch(_0x542d2a){return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x140),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'originalError':_0x542d2a}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}if(_0x38c81d)switch(_0x50187e[_0xe93d72(0x13d)]){case _0x4a8329[_0xe93d72(0x15f)]:if(_0xe93d72(0x113)!=typeof _0x38c81d)return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x113),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});await this[_0xe93d72(0x17a)](_0x38c81d,{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']});break;case _0x4a8329[_0xe93d72(0x176)]:if(!(_0x38c81d instanceof File))return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x16b),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});await this[_0xe93d72(0x133)]([_0x38c81d],{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']});break;case _0x4a8329[_0xe93d72(0x10a)]:if(_0xe93d72(0x107)!=typeof _0x38c81d||!(_0xe93d72(0x12b)in _0x38c81d)||!(_0xe93d72(0x13d)in _0x38c81d))return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x18a),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});_0x38c81d=AIChatContext[_0xe93d72(0x158)](_0x38c81d,_0x50187e[_0xe93d72(0x132)]),await this[_0xe93d72(0x133)]([_0x38c81d],{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']},_0x4a8329[_0xe93d72(0x10a)]);break;default:this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x14e),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'resourceType':_0x50187e[_0xe93d72(0x13d)]}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}else this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x10b),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}static[_0x5740aa(0x158)](_0x17cbca,_0xe32b23){const _0x1c3ceb=_0x5740aa;switch(_0x17cbca[_0x1c3ceb(0x13d)]){case _0x2f8119[_0x1c3ceb(0x108)]:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x145)});case _0x2f8119[_0x1c3ceb(0x11b)]:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x166)});default:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x13e)});}}static[_0x5740aa(0x154)](_0x11d2ac){const _0xae013b=_0x5740aa;switch(_0x11d2ac[_0xae013b(0x13d)]){case _0x4a8329[_0xae013b(0x176)]:return{'type':_0x4a8329[_0xae013b(0x176)],'id':_0x11d2ac['id']};case _0x4a8329[_0xae013b(0x15f)]:return{'type':_0x4a8329[_0xae013b(0x15f)],'id':_0x11d2ac['id']};case _0x4a8329[_0xae013b(0x128)]:return{'type':_0x4a8329[_0xae013b(0x128)],'id':_0x11d2ac['id'],..._0x11d2ac[_0xae013b(0x151)]?.[_0xae013b(0x10d)]&&{'selection':_0x11d2ac[_0xae013b(0x151)]}};case _0x4a8329[_0xae013b(0x10a)]:return{'type':_0x4a8329[_0xae013b(0x176)],'id':_0x11d2ac['id']};default:return null;}}[_0x5740aa(0x190)](_0x432858,_0x4d52e0=!0x1){const _0x183017=_0x5740aa;if(this[_0x183017(0x17b)][_0x183017(0x14d)](_0x432858[_0x183017(0x160)],_0x432858),_0x432858[_0x183017(0x126)]||this[_0x183017(0x134)](_0x183017(0x179),{'contextItem':_0x432858,'isLoading':_0x4d52e0}),_0x183017(0x18d)===_0x432858[_0x183017(0x160)]&&this[_0x183017(0x185)](),_0x432858[_0x183017(0x129)]){const _0x3048fa=this[_0x183017(0x188)](_0x432858[_0x183017(0x129)]);_0x3048fa&&_0x3048fa[_0x183017(0x17f)](_0x3afbaf=>{const _0x50dd25=_0x183017;this[_0x50dd25(0x136)](_0x3afbaf,_0x432858[_0x50dd25(0x129)],!0x0);});}}[_0x5740aa(0x184)](_0x5c55e3){const _0x43fb0f=_0x5740aa,_0x1240f6=this[_0x43fb0f(0x17b)][_0x43fb0f(0x18b)](_0x5c55e3),_0x9672ef=this[_0x43fb0f(0x112)][_0x43fb0f(0x18b)](_0x5c55e3);if(_0x9672ef&&(_0x9672ef[_0x43fb0f(0x17c)](),this[_0x43fb0f(0x112)][_0x43fb0f(0x141)](_0x5c55e3)),_0x1240f6?.[_0x43fb0f(0x129)]){const _0x275086=this[_0x43fb0f(0x188)](_0x1240f6[_0x43fb0f(0x129)]);_0x275086&&_0x275086[_0x43fb0f(0x17f)](_0x4e0913=>{const _0x5158b0=_0x43fb0f;this[_0x5158b0(0x136)](_0x4e0913,_0x1240f6[_0x5158b0(0x129)],!0x1);});}this[_0x43fb0f(0x17b)][_0x43fb0f(0x141)](_0x5c55e3),this[_0x43fb0f(0x134)](_0x43fb0f(0x11d),{'uiId':_0x5c55e3,'type':_0x1240f6?.[_0x43fb0f(0x13d)]}),_0x43fb0f(0x18d)===_0x5c55e3&&this[_0x43fb0f(0x185)]();}[_0x5740aa(0x16e)](_0x2fa98f,_0x35bcec){const _0x38a680=_0x5740aa;if(this[_0x38a680(0x17b)][_0x38a680(0x192)](_0x2fa98f[_0x38a680(0x160)])&&(this[_0x38a680(0x17b)][_0x38a680(0x14d)](_0x2fa98f[_0x38a680(0x160)],_0x2fa98f),this[_0x38a680(0x134)](_0x38a680(0x11a),{'contextItem':_0x2fa98f,'isLoading':_0x35bcec}),_0x2fa98f[_0x38a680(0x129)])){const _0x27a763=this[_0x38a680(0x188)](_0x2fa98f[_0x38a680(0x129)]);_0x27a763&&_0x27a763[_0x38a680(0x17f)](_0xeb8ea8=>{const _0x14e276=_0x38a680;this[_0x14e276(0x136)](_0xeb8ea8,_0x2fa98f[_0x14e276(0x129)],!0x0);});}}[_0x5740aa(0x161)](_0x3abb6f){const _0x17a9c4=_0x5740aa;this[_0x17a9c4(0x180)][_0x17a9c4(0x14d)](_0x3abb6f[_0x17a9c4(0x160)],_0x3abb6f);}[_0x5740aa(0x177)](){const _0x27c7e=_0x5740aa;this[_0x27c7e(0x174)]={'document':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x178)]?.[_0x27c7e(0x120)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x17d)]?.[_0x27c7e(0x120)]},'files':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x114)]?.[_0x27c7e(0x120)]},'sources':this[_0x27c7e(0x124)]()},this[_0x27c7e(0x134)](_0x27c7e(0x194),{'options':this[_0x27c7e(0x174)]});}[_0x5740aa(0x124)](){const _0x1993c9=_0x5740aa;return this[_0x1993c9(0x183)]?.[_0x1993c9(0x14c)]?.[_0x1993c9(0x15a)](_0x2f37b4=>({..._0x2f37b4,'resources':[]}))??[];}[_0x5740aa(0x185)](){const _0x31b211=_0x5740aa,_0x3e892a=this[_0x31b211(0x17e)]()||this[_0x31b211(0x10f)]();this[_0x31b211(0x174)][_0x31b211(0x178)][_0x31b211(0x169)]=_0x3e892a,this[_0x31b211(0x134)](_0x31b211(0x194),{'options':this[_0x31b211(0x174)]});}[_0x5740aa(0x195)](_0x2f1c5a){const _0x43d838=_0x5740aa;for(const _0x24f00c of this[_0x43d838(0x17b)][_0x43d838(0x142)]())if(_0x24f00c[_0x43d838(0x129)]===_0x2f1c5a)return!0x0;for(const _0x1b8e9b of this[_0x43d838(0x180)][_0x43d838(0x142)]())if(_0x1b8e9b[_0x43d838(0x129)]===_0x2f1c5a)return!0x0;return!0x1;}[_0x5740aa(0x188)](_0x5039dc){const _0x17dc68=_0x5740aa,_0x5c2703=[];for(const _0x3d8ba9 of this[_0x17dc68(0x174)][_0x17dc68(0x14c)]){_0x3d8ba9[_0x17dc68(0x119)][_0x17dc68(0x139)](_0x596050=>_0x596050['id']===_0x5039dc)&&_0x5c2703[_0x17dc68(0x109)](_0x3d8ba9['id']);}return 0x0===_0x5c2703[_0x17dc68(0x10d)]?null:_0x5c2703;}[_0x5740aa(0x136)](_0xacc381,_0x545faf,_0x1b0ddd){const _0x39ae65=_0x5740aa,_0x512eea=this[_0x39ae65(0x174)][_0x39ae65(0x14c)][_0x39ae65(0x139)](_0x1c88a8=>_0x1c88a8['id']===_0xacc381);if(!_0x512eea)return;const _0x1b4056=_0x512eea[_0x39ae65(0x119)][_0x39ae65(0x139)](_0x125737=>_0x125737['id']===_0x545faf);_0x1b4056&&(_0x1b4056[_0x39ae65(0x170)]=_0x1b0ddd,this[_0x39ae65(0x134)](_0x39ae65(0x149),{'sourceId':_0xacc381,'resourceId':_0x545faf,'isInContext':_0x1b0ddd}));}[_0x5740aa(0x167)](_0x6ce028){const _0x32edf9=_0x5740aa;this[_0x32edf9(0x16a)][_0x32edf9(0x14d)](_0x6ce028,!0x0),this[_0x32edf9(0x16a)][_0x32edf9(0x11c)]&&this[_0x32edf9(0x134)](_0x32edf9(0x148),{'isUploadInProgress':!0x0});}[_0x5740aa(0x144)](_0x400dee){const _0x3e047b=_0x5740aa;this[_0x3e047b(0x16a)][_0x3e047b(0x141)](_0x400dee),0x0===this[_0x3e047b(0x16a)][_0x3e047b(0x11c)]&&this[_0x3e047b(0x134)](_0x3e047b(0x148),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c478c=_0x4210;(function(_0x24b11a,_0x21c345){const _0x3630f7=_0x4210,_0xcf6ef1=_0x24b11a();while(!![]){try{const _0x587d03=parseInt(_0x3630f7(0xb5))/0x1+parseInt(_0x3630f7(0x9e))/0x2+parseInt(_0x3630f7(0xb6))/0x3+-parseInt(_0x3630f7(0xd7))/0x4*(parseInt(_0x3630f7(0xe9))/0x5)+-parseInt(_0x3630f7(0xcd))/0x6+parseInt(_0x3630f7(0xf7))/0x7+-parseInt(_0x3630f7(0xcb))/0x8;if(_0x587d03===_0x21c345)break;else _0xcf6ef1['push'](_0xcf6ef1['shift']());}catch(_0x294e88){_0xcf6ef1['push'](_0xcf6ef1['shift']());}}}(_0x485d,0xe0ffe));function _0x4210(_0x1e22c6,_0x1fb5c7){const _0x485dd2=_0x485d();return _0x4210=function(_0x4210a8,_0x1d89cf){_0x4210a8=_0x4210a8-0x90;let _0x1e3c34=_0x485dd2[_0x4210a8];return _0x1e3c34;},_0x4210(_0x1e22c6,_0x1fb5c7);}import{CKEditorError as _0x4741c8,EmitterMixin as _0xea83ef,logWarning as _0x3e36d7}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x36564f}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xf98e7d,AI_CONTEXT_MODEL_EVENT_NAMES as _0x108ddc}from'./aichatcontext.js';function _0x485d(){const _0x4691f9=['ai-chat-conversation-set-model-not-available','loadSourceResources','conversationStarted','message','hasOwn','isCurrentDocumentInContext','delegate','8846752sRVsAO','currentReply','1020216gNMHKz','fetchConversationMessages','stop','text','model','_extractContextItems','isCurrentDocumentInConversation','stack','text-delta','isAvailable','1034428bmShlv','fire','role','reset','removeInteraction','code','isSelectionInContext','_processMessagesToInteractions','selectedModel','attributes','sessionId','getCurrentDocumentContext','assistant','reasoning','quickActionData','addUrlToContext','destroy','startConversation','10PHqTTs','options','getDocumentContext','removeFromContext','conversationInitialized','push','createInteraction','setModel','load','ai-chat-conversation-start-failed','updateCurrentDocumentInContext','getAll','setConversationTitle','modification-delta','1576141fcBCfO','chatModels','webSearch','set','toggleReasoning','populateFromMessage','find','title','chatCapabilities','user','lastInteraction','ai-chat-handle-user-interaction-start-failed','modelSelected','getPendingContextItems','init','connector','toLowerCase','group','splice','addToConversationContext','getMessages','addSelectionToContext','ai-chat-conversation-start-no-model-selected','fetchConversation','ai-chat-conversation-already-started','getEditor','contextItems','2053140GtcrJX','toggleWebSearch','chatContext','content','length','prompt','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-init-from-id-failed','interactions','getCapabilitiesConfig','appendContent','getAvailableModels','selectedModelId','handleUserInteraction','getInteraction','type','conversationId','start','get','ai-chat-conversation-init-failed','interactionCreated','addResourceToContext','606954cbrzns','2568015VktijE','createReply','getConversation','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocument','getModel','addFilesToContext','indexOf','currentInteraction','capabilities','isStarted','removeSelectionFromContext','error','ai-chat-conversation-set-model-null'];_0x485d=function(){return _0x4691f9;};return _0x485d();}import{AICapabilities as _0x5ae3cd,CAPABILITIES_MODEL_EVENT_NAMES as _0x5aeae3}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x31093f}from'./aichatinteraction.js';import{errorsMap as _0x434df7}from'../../errorsmap.js';export class AIChatConversation extends _0xea83ef(){['id'];[_0x1c478c(0xc0)]=!0x1;[_0x1c478c(0xa7)]=[];[_0x1c478c(0xbe)];[_0x1c478c(0xdf)];[_0x1c478c(0x92)];[_0x1c478c(0xea)];constructor(_0x56ac77){const _0x31f02f=_0x1c478c;super(),this[_0x31f02f(0xea)]=_0x56ac77,this[_0x31f02f(0x92)]=_0x56ac77[_0x31f02f(0x92)],this[_0x31f02f(0xf8)]=_0x56ac77[_0x31f02f(0xf8)],this['id']=_0x56ac77[_0x31f02f(0xaf)];}async[_0x1c478c(0x91)](_0x3df9b2){const _0x5555d1=_0x1c478c;try{this[_0x5555d1(0xa0)]=new _0xf98e7d({'connector':this[_0x5555d1(0x92)],'config':_0x3df9b2,'ownerId':this['id']}),this[_0x5555d1(0xa0)][_0x5555d1(0xca)](..._0x108ddc)['to'](this),this[_0x5555d1(0xa0)][_0x5555d1(0x91)](),this[_0x5555d1(0xff)]=new _0x5ae3cd(),this[_0x5555d1(0xff)][_0x5555d1(0xca)](..._0x5aeae3)['to'](this),this[_0x5555d1(0xff)][_0x5555d1(0x91)]();const _0x9a72b1=await this[_0x5555d1(0xf8)][_0x5555d1(0xaa)]();this[_0x5555d1(0xd8)](_0x5555d1(0xed),{'availableModels':_0x9a72b1});const _0x508708=await this[_0x5555d1(0xf8)][_0x5555d1(0xbb)](this[_0x5555d1(0xea)][_0x5555d1(0xab)]);_0x508708&&await this[_0x5555d1(0xf0)](_0x508708);}catch(_0x32d869){const _0x522731=new _0x4741c8(_0x5555d1(0xb2),null,{'message':_0x32d869[_0x5555d1(0xc7)]||_0x32d869});_0x522731[_0x5555d1(0xd4)]=_0x32d869[_0x5555d1(0xd4)],this[_0x5555d1(0xd8)](_0x5555d1(0xc2),{'error':_0x522731});}}async[_0x1c478c(0xb0)](){const _0x2974fa=_0x1c478c;if(this[_0x2974fa(0xc0)])throw new _0x4741c8(_0x2974fa(0x9b),null,{'conversation':this});if(!this[_0x2974fa(0xdf)])throw new _0x4741c8(_0x2974fa(0x99),null,{'conversation':this});try{const {id:_0x83f013}=await this[_0x2974fa(0x92)][_0x2974fa(0xe8)](this['id'],this[_0x2974fa(0xea)][_0x2974fa(0x94)])[_0x2974fa(0xb8)]();this['id']=_0x83f013,this[_0x2974fa(0xc0)]=!0x0,this[_0x2974fa(0xd8)](_0x2974fa(0xc6),{'conversationId':this['id'],'selectedModel':this[_0x2974fa(0xdf)]});}catch(_0x4f0ab0){const _0x58e011=new _0x4741c8(_0x2974fa(0xf2),null,{'message':_0x4f0ab0[_0x2974fa(0xc7)],'conversationId':this['id']});throw _0x58e011[_0x2974fa(0xd4)]=_0x4f0ab0[_0x2974fa(0xd4)],this[_0x2974fa(0xd8)](_0x2974fa(0xc2),{'error':_0x58e011}),_0x58e011;}}async[_0x1c478c(0xf1)](_0x44a0ea,_0x56538c){const _0x2d9245=_0x1c478c;try{const _0x4d48bd=await this[_0x2d9245(0x92)][_0x2d9245(0x9a)](_0x44a0ea)[_0x2d9245(0xb8)](),_0xcd5af2=await this[_0x2d9245(0x92)][_0x2d9245(0xce)](_0x44a0ea)[_0x2d9245(0x97)](),_0x526fca=_0xcd5af2[0x0][_0x2d9245(0xd1)];this[_0x2d9245(0xc0)]=!0x0,this['id']=_0x4d48bd['id'],_0x2d9245(0xfe)in _0x4d48bd?this[_0x2d9245(0xd8)](_0x2d9245(0xf5),_0x4d48bd[_0x2d9245(0xfe)],!0x0):this[_0x2d9245(0xd8)](_0x2d9245(0xf5),'',!0x0);const _0x236f6e=(await this[_0x2d9245(0xf8)][_0x2d9245(0xf4)]())[_0x2d9245(0xfd)](_0x448f58=>_0x448f58['id'][_0x2d9245(0x93)]()===_0x526fca[_0x2d9245(0x93)]());return this[_0x2d9245(0xdf)]=_0x236f6e,this[_0x2d9245(0xd8)](_0x2d9245(0x103),{'selectedModel':_0x236f6e,'isDisabled':!0x0}),await this[_0x2d9245(0xde)](_0xcd5af2,_0x56538c,_0x526fca),this[_0x2d9245(0xbe)]=void 0x0,this;}catch(_0x22cd84){const _0x2a1cb8=new _0x4741c8(_0x2d9245(0xa6),null,{'message':_0x22cd84[_0x2d9245(0xc7)],'conversationId':_0x44a0ea});throw _0x2a1cb8[_0x2d9245(0xd4)]=_0x22cd84[_0x2d9245(0xd4)],this[_0x2d9245(0xd8)](_0x2d9245(0xc2),{'error':_0x2a1cb8}),_0x2a1cb8;}}async[_0x1c478c(0xde)](_0x42233e,_0x2a685,_0x4450ee){const _0x379b89=_0x1c478c;let _0xf3ffe9;for(const _0x311b45 of _0x42233e)if(_0x379b89(0x100)===_0x311b45[_0x379b89(0xd9)]){const _0x5e669a=await this[_0x379b89(0xd2)](_0x311b45),_0x16a281={'isReasoningEnabled':Object[_0x379b89(0xc8)](_0x311b45[_0x379b89(0xbf)],_0x379b89(0xe4)),'isWebSearchEnabled':Object[_0x379b89(0xc8)](_0x311b45[_0x379b89(0xbf)],_0x379b89(0xf9))};_0xf3ffe9=this[_0x379b89(0xef)]({'userMessage':_0x311b45[_0x379b89(0xa3)],'contextItems':_0x5e669a,'capabilities':_0x16a281,'modelId':_0x4450ee,'quickActionData':_0x311b45[_0x379b89(0xe0)]?.[_0x379b89(0xe5)]}),this[_0x379b89(0xbe)]=_0xf3ffe9,this[_0x379b89(0xa0)][_0x379b89(0x96)](this[_0x379b89(0xbe)][_0x379b89(0x9d)]);}else{if(_0x379b89(0xe3)===_0x311b45[_0x379b89(0xd9)]&&_0xf3ffe9)for(const _0x3431bd of _0x311b45[_0x379b89(0xa1)]){const _0x288c38=_0x379b89(0xd0)===_0x3431bd[_0x379b89(0xae)]?_0x379b89(0xd5):_0x379b89(0xf6),_0x11279f=_0xf3ffe9[_0x379b89(0xeb)]()?.[_0x379b89(0xe1)]!==_0x2a685;_0xf3ffe9[_0x379b89(0xcc)]=_0xf3ffe9[_0x379b89(0xb7)]({'type':_0x288c38,'isDone':!0x0,'interactionId':_0xf3ffe9['id'],'areActionsDisabled':_0x11279f}),_0xf3ffe9[_0x379b89(0xcc)][_0x379b89(0xa9)](_0x3431bd[_0x379b89(0xa1)]);}}}async[_0x1c478c(0xd2)](_0x204ffc){const _0x104b06=_0x1c478c,_0x19dabf=new Map();if(!_0x204ffc[_0x104b06(0xa1)])return _0x19dabf;for(const _0x3ce4e1 of _0x204ffc[_0x104b06(0xa1)]){const _0x401f1d=await this[_0x104b06(0xa0)][_0x104b06(0xfc)](_0x3ce4e1);_0x401f1d&&_0x19dabf[_0x104b06(0xfa)](_0x401f1d['id'],_0x401f1d);}return _0x19dabf;}async[_0x1c478c(0xac)]({userMessage:_0x1cdd39,quickActionData:_0x41bb29}){const _0xa8876=_0x1c478c;if(!this[_0xa8876(0xc0)])throw new _0x4741c8(_0xa8876(0xa5),null,{'conversation':this});if(this[_0xa8876(0xbe)])throw new _0x4741c8(_0xa8876(0xb9),null,{'conversation':this});try{const _0x53f5c3=this[_0xa8876(0xa0)][_0xa8876(0x90)](),_0x5587b4=this[_0xa8876(0xff)][_0xa8876(0xa8)](),_0x50805c=this[_0xa8876(0xdf)]['id'];this[_0xa8876(0xbe)]=this[_0xa8876(0xef)]({'userMessage':_0x1cdd39,'contextItems':_0x53f5c3,'capabilities':_0x5587b4,'modelId':_0x50805c,'quickActionData':_0x41bb29}),await this[_0xa8876(0xbe)][_0xa8876(0xb0)](),this[_0xa8876(0xa0)][_0xa8876(0x96)](this[_0xa8876(0xbe)][_0xa8876(0x9d)]);}catch(_0xdea7e5){if(_0xdea7e5 instanceof _0x4741c8)this[_0xa8876(0xd8)](_0xa8876(0xc2),{'interactionId':this[_0xa8876(0xbe)]?this[_0xa8876(0xbe)]['id']:void 0x0,'error':_0xdea7e5});else{const _0xd06c67=_0x434df7[_0xa8876(0xb1)](_0xdea7e5[_0xa8876(0xdc)])||_0xa8876(0x102);this[_0xa8876(0xd8)](_0xa8876(0xc2),{'interactionId':this[_0xa8876(0xbe)]?this[_0xa8876(0xbe)]['id']:void 0x0,'error':new _0x4741c8(_0xd06c67,null,{'error':_0xdea7e5})});}}finally{this[_0xa8876(0xbe)]?.[_0xa8876(0xcf)](),this[_0xa8876(0xbe)]=void 0x0;}}[_0x1c478c(0xef)]({userMessage:_0x4eb45a,contextItems:_0x133edd,capabilities:_0x1cb789,modelId:_0x4ea87f,quickActionData:_0x2df2ce}){const _0x1e5fe6=_0x1c478c,_0x27fcb5=new _0x31093f({'userMessage':_0x4eb45a,'contextItems':_0x133edd,'capabilities':_0x1cb789,'conversationId':this['id'],'connector':this[_0x1e5fe6(0x92)],'editor':this[_0x1e5fe6(0xea)][_0x1e5fe6(0x9c)]&&this[_0x1e5fe6(0xea)][_0x1e5fe6(0x9c)](),'model':_0x4ea87f,'quickActionData':_0x2df2ce});return _0x27fcb5[_0x1e5fe6(0xca)](..._0x36564f)['to'](this),this[_0x1e5fe6(0xa7)][_0x1e5fe6(0xee)](_0x27fcb5),this[_0x1e5fe6(0xd8)](_0x1e5fe6(0xb3),_0x27fcb5),_0x27fcb5;}[_0x1c478c(0xad)](_0xf30b48){const _0x1114e6=_0x1c478c;return this[_0x1114e6(0xa7)][_0x1114e6(0xfd)](_0x3a6496=>_0x3a6496['id']===_0xf30b48);}[_0x1c478c(0xdb)](_0x1d130a){const _0x1c0752=_0x1c478c,_0x194db6=this[_0x1c0752(0xad)](_0x1d130a);_0x194db6&&(_0x194db6[_0x1c0752(0xe7)](),this[_0x1c0752(0xa7)][_0x1c0752(0x95)](this[_0x1c0752(0xa7)][_0x1c0752(0xbd)](_0x194db6),0x1));}get[_0x1c478c(0x101)](){const _0x35c5d7=_0x1c478c;return this[_0x35c5d7(0xa7)][this[_0x35c5d7(0xa7)][_0x35c5d7(0xa2)]-0x1];}[_0x1c478c(0xa4)](_0x2831f5){const _0x1e2548=_0x1c478c;this[_0x1e2548(0xa0)][_0x1e2548(0xa4)](_0x2831f5);}async[_0x1c478c(0xf3)]({content:_0x1f06c1,version:_0x7d98da,sessionId:_0x4de887,selections:_0x48790b}){const _0x241910=_0x1c478c;await this[_0x241910(0xa0)][_0x241910(0xba)](_0x1f06c1,_0x7d98da,_0x4de887,_0x48790b);}[_0x1c478c(0xe2)](){const _0x319265=_0x1c478c;return this[_0x319265(0xbe)]?.[_0x319265(0xeb)]()?.[_0x319265(0xa1)]||'';}[_0x1c478c(0x98)](_0x5ad968){const _0x333f0f=_0x1c478c;this[_0x333f0f(0xa0)][_0x333f0f(0x98)](_0x5ad968);}[_0x1c478c(0xc1)](){const _0x5e11ed=_0x1c478c;this[_0x5e11ed(0xa0)][_0x5e11ed(0xc1)]();}[_0x1c478c(0xbc)](_0x45409d){const _0x58e78f=_0x1c478c;this[_0x58e78f(0xa0)][_0x58e78f(0xbc)](_0x45409d);}[_0x1c478c(0xe6)](_0x13d5b4){const _0x579ff4=_0x1c478c;this[_0x579ff4(0xa0)][_0x579ff4(0xe6)](_0x13d5b4);}[_0x1c478c(0xb4)](_0xca0eda,_0x22d7b5){const _0x546859=_0x1c478c;this[_0x546859(0xa0)][_0x546859(0xb4)](_0xca0eda,_0x22d7b5);}[_0x1c478c(0xc5)](_0x5ca1f4,_0xd0d60e,_0x345ea8){const _0x48fc4c=_0x1c478c;return this[_0x48fc4c(0xa0)][_0x48fc4c(0xc5)](_0x5ca1f4,_0xd0d60e,_0x345ea8);}[_0x1c478c(0xec)](_0x3bd13f){const _0x1bb59c=_0x1c478c;this[_0x1bb59c(0xa0)][_0x1bb59c(0xec)](_0x3bd13f);}[_0x1c478c(0x9f)](){const _0x138495=_0x1c478c;this[_0x138495(0xff)][_0x138495(0x9f)]();}[_0x1c478c(0xfb)](){const _0x4b9209=_0x1c478c;this[_0x4b9209(0xff)][_0x4b9209(0xfb)]();}[_0x1c478c(0xc9)](){const _0x10a9a4=_0x1c478c;return this[_0x10a9a4(0xa0)][_0x10a9a4(0xc9)]();}[_0x1c478c(0xd3)](){const _0x4bb7dd=_0x1c478c;return this[_0x4bb7dd(0xa0)][_0x4bb7dd(0xd3)]();}[_0x1c478c(0xdd)](){const _0x4401b5=_0x1c478c;return this[_0x4401b5(0xa0)][_0x4401b5(0xdd)]();}async[_0x1c478c(0xf0)](_0x1a875a){const _0x47cb8c=_0x1c478c;_0x1a875a?!0x1===await this[_0x47cb8c(0xf8)][_0x47cb8c(0xd6)](_0x1a875a)&&(_0x3e36d7(_0x47cb8c(0xc4),{'conversation':this,'model':_0x1a875a}),_0x1a875a=(await this[_0x47cb8c(0xf8)][_0x47cb8c(0xaa)]())[0x0]):(_0x3e36d7(_0x47cb8c(0xc3),{'conversation':this}),_0x1a875a=(await this[_0x47cb8c(0xf8)][_0x47cb8c(0xaa)]())[0x0]),_0x1a875a['id']!==this[_0x47cb8c(0xdf)]?.['id']&&(this[_0x47cb8c(0xdf)]=_0x1a875a,this[_0x47cb8c(0xff)][_0x47cb8c(0xda)](),this[_0x47cb8c(0xd8)](_0x47cb8c(0x103),{'selectedModel':_0x1a875a}));}}
|
|
23
|
+
const _0x520ee2=_0x2daa;function _0x2daa(_0x3faf66,_0xa5061b){const _0x4c493d=_0x4c49();return _0x2daa=function(_0x2daace,_0x2d85f1){_0x2daace=_0x2daace-0x170;let _0x36ade2=_0x4c493d[_0x2daace];return _0x36ade2;},_0x2daa(_0x3faf66,_0xa5061b);}(function(_0x3cdb8c,_0x3752e2){const _0x568834=_0x2daa,_0x178ab8=_0x3cdb8c();while(!![]){try{const _0x510f2c=-parseInt(_0x568834(0x171))/0x1+parseInt(_0x568834(0x1b8))/0x2+-parseInt(_0x568834(0x17f))/0x3+-parseInt(_0x568834(0x1c6))/0x4+parseInt(_0x568834(0x182))/0x5*(parseInt(_0x568834(0x199))/0x6)+parseInt(_0x568834(0x1be))/0x7+parseInt(_0x568834(0x1cc))/0x8;if(_0x510f2c===_0x3752e2)break;else _0x178ab8['push'](_0x178ab8['shift']());}catch(_0x57ac2a){_0x178ab8['push'](_0x178ab8['shift']());}}}(_0x4c49,0x5497b));import{CKEditorError as _0x218c11,EmitterMixin as _0x101ef9,logWarning as _0x9c61de}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x20b2c3}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x457b4f,AI_CONTEXT_MODEL_EVENT_NAMES as _0xc7e11}from'./aichatcontext.js';function _0x4c49(){const _0xffc244=['setModel','contextItems','800730YUHBqL','conversationStarted','ai-chat-handle-user-conversation-not-initialized','message','_extractContextItems','modification-delta','type','fetchConversationMessages','getConversation','getMessages','fire','ai-chat-conversation-already-started','chatContext','interactions','content','push','isStarted','load','addSelectionToContext','reset','toggleWebSearch','ai-chat-conversation-set-model-not-available','updateCurrentDocument','init','destroy','reasoning','find','getCurrentDocumentContext','addResourceToContext','modelSelected','set','891440shzPKv','addCurrentDocumentToContext','addFilesToContext','stop','indexOf','capabilities','3609207IZzcZg','createReply','conversationId','lastInteraction','attributes','handleUserInteraction','quickActionData','_processMessagesToInteractions','2247048wxjeVo','splice','ai-chat-handle-user-interaction-already-in-progress','isSelectionInContext','interactionCreated','title','4095520RZUwIW','assistant','hasOwn','getInteraction','delegate','options','currentInteraction','ai-chat-conversation-start-failed','chatCapabilities','populateFromMessage','webSearch','selectedModelId','removeInteraction','removeFromContext','toLowerCase','setConversationTitle','text','getAvailableModels','conversationInitialized','sessionId','code','prompt','getAll','toggleReasoning','ai-chat-conversation-set-model-null','547209AqYqps','connector','isAvailable','chatModels','ai-chat-conversation-init-failed','updateCurrentDocumentInContext','fetchConversation','getPendingContextItems','loadSourceResources','createInteraction','getModel','length','model','getCapabilitiesConfig','1254492CplyYe','ai-chat-handle-user-interaction-start-failed','addUrlToContext','15ayOWZr','text-delta','getDocumentContext','removeSelectionFromContext','isCurrentDocumentInConversation','start','selectedModel','role','error','get','getEditor','startConversation','appendContent','addToConversationContext','ai-chat-conversation-init-from-id-failed','group','ai-chat-conversation-start-no-model-selected','currentReply','isCurrentDocumentInContext','user','stack'];_0x4c49=function(){return _0xffc244;};return _0x4c49();}import{AICapabilities as _0x1a1978,CAPABILITIES_MODEL_EVENT_NAMES as _0x1f2153}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x171660}from'./aichatinteraction.js';import{errorsMap as _0x2923af}from'../../errorsmap.js';export class AIChatConversation extends _0x101ef9(){['id'];[_0x520ee2(0x1a9)]=!0x1;[_0x520ee2(0x1a6)]=[];[_0x520ee2(0x1d2)];[_0x520ee2(0x188)];[_0x520ee2(0x172)];[_0x520ee2(0x1d1)];constructor(_0x1512b3){const _0x2a3ce0=_0x520ee2;super(),this[_0x2a3ce0(0x1d1)]=_0x1512b3,this[_0x2a3ce0(0x172)]=_0x1512b3[_0x2a3ce0(0x172)],this[_0x2a3ce0(0x174)]=_0x1512b3[_0x2a3ce0(0x174)],this['id']=_0x1512b3[_0x2a3ce0(0x1c0)];}async[_0x520ee2(0x1b0)](_0x301737){const _0x1750f2=_0x520ee2;try{this[_0x1750f2(0x1a5)]=new _0x457b4f({'connector':this[_0x1750f2(0x172)],'config':_0x301737,'ownerId':this['id']}),this[_0x1750f2(0x1a5)][_0x1750f2(0x1d0)](..._0xc7e11)['to'](this),this[_0x1750f2(0x1a5)][_0x1750f2(0x1b0)](),this[_0x1750f2(0x1d4)]=new _0x1a1978(),this[_0x1750f2(0x1d4)][_0x1750f2(0x1d0)](..._0x1f2153)['to'](this),this[_0x1750f2(0x1d4)][_0x1750f2(0x1b0)]();const _0x50289a=await this[_0x1750f2(0x174)][_0x1750f2(0x1dd)]();this[_0x1750f2(0x1a3)](_0x1750f2(0x1de),{'availableModels':_0x50289a});const _0x202f0b=await this[_0x1750f2(0x174)][_0x1750f2(0x17b)](this[_0x1750f2(0x1d1)][_0x1750f2(0x1d7)]);_0x202f0b&&await this[_0x1750f2(0x197)](_0x202f0b);}catch(_0xcb734c){const _0x4e9b2d=new _0x218c11(_0x1750f2(0x175),null,{'message':_0xcb734c[_0x1750f2(0x19c)]||_0xcb734c});_0x4e9b2d[_0x1750f2(0x196)]=_0xcb734c[_0x1750f2(0x196)],this[_0x1750f2(0x1a3)](_0x1750f2(0x18a),{'error':_0x4e9b2d});}}async[_0x520ee2(0x187)](){const _0x1e886f=_0x520ee2;if(this[_0x1e886f(0x1a9)])throw new _0x218c11(_0x1e886f(0x1a4),null,{'conversation':this});if(!this[_0x1e886f(0x188)])throw new _0x218c11(_0x1e886f(0x192),null,{'conversation':this});try{const {id:_0x443378}=await this[_0x1e886f(0x172)][_0x1e886f(0x18d)](this['id'],this[_0x1e886f(0x1d1)][_0x1e886f(0x191)])[_0x1e886f(0x1a1)]();this['id']=_0x443378,this[_0x1e886f(0x1a9)]=!0x0,this[_0x1e886f(0x1a3)](_0x1e886f(0x19a),{'conversationId':this['id'],'selectedModel':this[_0x1e886f(0x188)]});}catch(_0x3fe9fe){const _0x8422b7=new _0x218c11(_0x1e886f(0x1d3),null,{'message':_0x3fe9fe[_0x1e886f(0x19c)],'conversationId':this['id']});throw _0x8422b7[_0x1e886f(0x196)]=_0x3fe9fe[_0x1e886f(0x196)],this[_0x1e886f(0x1a3)](_0x1e886f(0x18a),{'error':_0x8422b7}),_0x8422b7;}}async[_0x520ee2(0x1aa)](_0x2ca34a,_0x4dca6f){const _0x1acbfe=_0x520ee2;try{const _0x231199=await this[_0x1acbfe(0x172)][_0x1acbfe(0x177)](_0x2ca34a)[_0x1acbfe(0x1a1)](),_0x1e61d3=await this[_0x1acbfe(0x172)][_0x1acbfe(0x1a0)](_0x2ca34a)[_0x1acbfe(0x1a2)](),_0x5cd7c3=_0x1e61d3[0x0][_0x1acbfe(0x17d)];this[_0x1acbfe(0x1a9)]=!0x0,this['id']=_0x231199['id'],_0x1acbfe(0x1cb)in _0x231199?this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1db),_0x231199[_0x1acbfe(0x1cb)],!0x0):this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1db),'',!0x0);const _0x2cf204=(await this[_0x1acbfe(0x174)][_0x1acbfe(0x1e2)]())[_0x1acbfe(0x1b3)](_0x45dc9d=>_0x45dc9d['id'][_0x1acbfe(0x1da)]()===_0x5cd7c3[_0x1acbfe(0x1da)]());return this[_0x1acbfe(0x188)]=_0x2cf204,this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1b6),{'selectedModel':_0x2cf204,'isDisabled':!0x0}),await this[_0x1acbfe(0x1c5)](_0x1e61d3,_0x4dca6f,_0x5cd7c3),this[_0x1acbfe(0x1d2)]=void 0x0,this;}catch(_0x7c6007){const _0x1ac078=new _0x218c11(_0x1acbfe(0x190),null,{'message':_0x7c6007[_0x1acbfe(0x19c)],'conversationId':_0x2ca34a});throw _0x1ac078[_0x1acbfe(0x196)]=_0x7c6007[_0x1acbfe(0x196)],this[_0x1acbfe(0x1a3)](_0x1acbfe(0x18a),{'error':_0x1ac078}),_0x1ac078;}}async[_0x520ee2(0x1c5)](_0x437d5d,_0x379d36,_0x49e10e){const _0x56b450=_0x520ee2;let _0x3aa6ff;for(const _0x39c6e4 of _0x437d5d)if(_0x56b450(0x195)===_0x39c6e4[_0x56b450(0x189)]){const _0x2e9aa8=await this[_0x56b450(0x19d)](_0x39c6e4),_0x417d51={'isReasoningEnabled':Object[_0x56b450(0x1ce)](_0x39c6e4[_0x56b450(0x1bd)],_0x56b450(0x1b2)),'isWebSearchEnabled':Object[_0x56b450(0x1ce)](_0x39c6e4[_0x56b450(0x1bd)],_0x56b450(0x1d6))};_0x3aa6ff=this[_0x56b450(0x17a)]({'userMessage':_0x39c6e4[_0x56b450(0x1e1)],'contextItems':_0x2e9aa8,'capabilities':_0x417d51,'modelId':_0x49e10e,'quickActionData':_0x39c6e4[_0x56b450(0x1c2)]?.[_0x56b450(0x1c4)]}),this[_0x56b450(0x1d2)]=_0x3aa6ff,this[_0x56b450(0x1a5)][_0x56b450(0x18f)](this[_0x56b450(0x1d2)][_0x56b450(0x198)]);}else{if(_0x56b450(0x1cd)===_0x39c6e4[_0x56b450(0x189)]&&_0x3aa6ff)for(const _0x5eb448 of _0x39c6e4[_0x56b450(0x1a7)]){const _0x2f8cce=_0x56b450(0x1dc)===_0x5eb448[_0x56b450(0x19f)]?_0x56b450(0x183):_0x56b450(0x19e),_0x2455c6=_0x3aa6ff[_0x56b450(0x184)]()?.[_0x56b450(0x1df)]!==_0x379d36;_0x3aa6ff[_0x56b450(0x193)]=_0x3aa6ff[_0x56b450(0x1bf)]({'type':_0x2f8cce,'isDone':!0x0,'interactionId':_0x3aa6ff['id'],'areActionsDisabled':_0x2455c6}),_0x3aa6ff[_0x56b450(0x193)][_0x56b450(0x18e)](_0x5eb448[_0x56b450(0x1a7)]);}}}async[_0x520ee2(0x19d)](_0x153a34){const _0x453d67=_0x520ee2,_0x147eba=new Map();if(!_0x153a34[_0x453d67(0x1a7)])return _0x147eba;for(const _0x660da3 of _0x153a34[_0x453d67(0x1a7)]){const _0x28695f=await this[_0x453d67(0x1a5)][_0x453d67(0x1d5)](_0x660da3);_0x28695f&&_0x147eba[_0x453d67(0x1b7)](_0x28695f['id'],_0x28695f);}return _0x147eba;}async[_0x520ee2(0x1c3)]({userMessage:_0x158f7f,quickActionData:_0x3bb3de}){const _0x2c5453=_0x520ee2;if(!this[_0x2c5453(0x1a9)])throw new _0x218c11(_0x2c5453(0x19b),null,{'conversation':this});if(this[_0x2c5453(0x1d2)])throw new _0x218c11(_0x2c5453(0x1c8),null,{'conversation':this});try{const _0x1ce271=this[_0x2c5453(0x1a5)][_0x2c5453(0x178)](),_0x54ff9e=this[_0x2c5453(0x1d4)][_0x2c5453(0x17e)](),_0x5a3bdb=this[_0x2c5453(0x188)]['id'];this[_0x2c5453(0x1d2)]=this[_0x2c5453(0x17a)]({'userMessage':_0x158f7f,'contextItems':_0x1ce271,'capabilities':_0x54ff9e,'modelId':_0x5a3bdb,'quickActionData':_0x3bb3de}),await this[_0x2c5453(0x1d2)][_0x2c5453(0x187)](),this[_0x2c5453(0x1a5)][_0x2c5453(0x18f)](this[_0x2c5453(0x1d2)][_0x2c5453(0x198)]);}catch(_0x1a21d6){if(_0x1a21d6 instanceof _0x218c11)this[_0x2c5453(0x1a3)](_0x2c5453(0x18a),{'interactionId':this[_0x2c5453(0x1d2)]?this[_0x2c5453(0x1d2)]['id']:void 0x0,'error':_0x1a21d6});else{const _0x1ae1d0=_0x2923af[_0x2c5453(0x18b)](_0x1a21d6[_0x2c5453(0x1e0)])||_0x2c5453(0x180);this[_0x2c5453(0x1a3)](_0x2c5453(0x18a),{'interactionId':this[_0x2c5453(0x1d2)]?this[_0x2c5453(0x1d2)]['id']:void 0x0,'error':new _0x218c11(_0x1ae1d0,null,{'error':_0x1a21d6})});}}finally{this[_0x2c5453(0x1d2)]?.[_0x2c5453(0x1bb)](),this[_0x2c5453(0x1d2)]=void 0x0;}}[_0x520ee2(0x17a)]({userMessage:_0x3d8640,contextItems:_0x1cd1ba,capabilities:_0x33115e,modelId:_0x31e3a0,quickActionData:_0x3582da}){const _0x54c674=_0x520ee2,_0x201c61=new _0x171660({'userMessage':_0x3d8640,'contextItems':_0x1cd1ba,'capabilities':_0x33115e,'conversationId':this['id'],'connector':this[_0x54c674(0x172)],'editor':this[_0x54c674(0x1d1)][_0x54c674(0x18c)]&&this[_0x54c674(0x1d1)][_0x54c674(0x18c)](),'model':_0x31e3a0,'quickActionData':_0x3582da});return _0x201c61[_0x54c674(0x1d0)](..._0x20b2c3)['to'](this),this[_0x54c674(0x1a6)][_0x54c674(0x1a8)](_0x201c61),this[_0x54c674(0x1a3)](_0x54c674(0x1ca),_0x201c61),_0x201c61;}[_0x520ee2(0x1cf)](_0x3dda55){const _0x10a754=_0x520ee2;return this[_0x10a754(0x1a6)][_0x10a754(0x1b3)](_0x3bceeb=>_0x3bceeb['id']===_0x3dda55);}[_0x520ee2(0x1d8)](_0xca8aa4){const _0x5c31bd=_0x520ee2,_0x4b4027=this[_0x5c31bd(0x1cf)](_0xca8aa4);_0x4b4027&&(_0x4b4027[_0x5c31bd(0x1b1)](),this[_0x5c31bd(0x1a6)][_0x5c31bd(0x1c7)](this[_0x5c31bd(0x1a6)][_0x5c31bd(0x1bc)](_0x4b4027),0x1));}get[_0x520ee2(0x1c1)](){const _0x89b73d=_0x520ee2;return this[_0x89b73d(0x1a6)][this[_0x89b73d(0x1a6)][_0x89b73d(0x17c)]-0x1];}[_0x520ee2(0x1b9)](_0x1a2a32){const _0x27a132=_0x520ee2;this[_0x27a132(0x1a5)][_0x27a132(0x1b9)](_0x1a2a32);}async[_0x520ee2(0x176)]({content:_0x45c300,version:_0x1ddcd4,sessionId:_0x2a4c72,selections:_0x4621c7}){const _0x34fdf0=_0x520ee2;await this[_0x34fdf0(0x1a5)][_0x34fdf0(0x1af)](_0x45c300,_0x1ddcd4,_0x2a4c72,_0x4621c7);}[_0x520ee2(0x1b4)](){const _0x31648a=_0x520ee2;return this[_0x31648a(0x1d2)]?.[_0x31648a(0x184)]()?.[_0x31648a(0x1a7)]||'';}[_0x520ee2(0x1ab)](_0x207b18){const _0x47d5f9=_0x520ee2;this[_0x47d5f9(0x1a5)][_0x47d5f9(0x1ab)](_0x207b18);}[_0x520ee2(0x185)](){const _0x3f2a08=_0x520ee2;this[_0x3f2a08(0x1a5)][_0x3f2a08(0x185)]();}[_0x520ee2(0x1ba)](_0x370d07){const _0x13758e=_0x520ee2;this[_0x13758e(0x1a5)][_0x13758e(0x1ba)](_0x370d07);}[_0x520ee2(0x181)](_0x288937){const _0x53a86b=_0x520ee2;this[_0x53a86b(0x1a5)][_0x53a86b(0x181)](_0x288937);}[_0x520ee2(0x1b5)](_0x11476f,_0x47e8d0){const _0x3da49d=_0x520ee2;this[_0x3da49d(0x1a5)][_0x3da49d(0x1b5)](_0x11476f,_0x47e8d0);}[_0x520ee2(0x179)](_0x547d08,_0x51eecf,_0x139e40){const _0x5454d6=_0x520ee2;return this[_0x5454d6(0x1a5)][_0x5454d6(0x179)](_0x547d08,_0x51eecf,_0x139e40);}[_0x520ee2(0x1d9)](_0x4da6bb){const _0x5a3f97=_0x520ee2;this[_0x5a3f97(0x1a5)][_0x5a3f97(0x1d9)](_0x4da6bb);}[_0x520ee2(0x1ad)](){const _0xba900e=_0x520ee2;this[_0xba900e(0x1d4)][_0xba900e(0x1ad)]();}[_0x520ee2(0x1e3)](){const _0x2eed=_0x520ee2;this[_0x2eed(0x1d4)][_0x2eed(0x1e3)]();}[_0x520ee2(0x194)](){const _0x5eaa7e=_0x520ee2;return this[_0x5eaa7e(0x1a5)][_0x5eaa7e(0x194)]();}[_0x520ee2(0x186)](){const _0x55ed26=_0x520ee2;return this[_0x55ed26(0x1a5)][_0x55ed26(0x186)]();}[_0x520ee2(0x1c9)](){const _0x278f60=_0x520ee2;return this[_0x278f60(0x1a5)][_0x278f60(0x1c9)]();}async[_0x520ee2(0x197)](_0x11f41a){const _0x4693a2=_0x520ee2;_0x11f41a?!0x1===await this[_0x4693a2(0x174)][_0x4693a2(0x173)](_0x11f41a)&&(_0x9c61de(_0x4693a2(0x1ae),{'conversation':this,'model':_0x11f41a}),_0x11f41a=(await this[_0x4693a2(0x174)][_0x4693a2(0x1dd)]())[0x0]):(_0x9c61de(_0x4693a2(0x170),{'conversation':this}),_0x11f41a=(await this[_0x4693a2(0x174)][_0x4693a2(0x1dd)]())[0x0]),_0x11f41a['id']!==this[_0x4693a2(0x188)]?.['id']&&(this[_0x4693a2(0x188)]=_0x11f41a,this[_0x4693a2(0x1d4)][_0x4693a2(0x1ac)](),this[_0x4693a2(0x1a3)](_0x4693a2(0x1b6),{'selectedModel':_0x11f41a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c4eeb=_0x451b;function _0x376c(){var _0x49d291=['2709311xBmggi','4261352cTNGrR','4472469njQRYF','7195xdDWpa','conversationId','96tatoXp','980wgWILw','model','5710tmozOH','get','connector','getDocumentContext','queryAssistant','mapContextItemsToRequestData','2996hbwhum','430272vQbtGO','userMessage','sendRequest','126jPJoEP','getCapabilitiesRequestData','quickActionData','20uhhNDh','current-document','capabilities','contextItems'];_0x376c=function(){return _0x49d291;};return _0x376c();}(function(_0xae4155,_0x163317){var _0x564edd=_0x451b,_0x181915=_0xae4155();while(!![]){try{var _0x5ae53c=parseInt(_0x564edd(0x13c))/0x1*(parseInt(_0x564edd(0x13f))/0x2)+-parseInt(_0x564edd(0x12d))/0x3+parseInt(_0x564edd(0x13d))/0x4*(-parseInt(_0x564edd(0x13a))/0x5)+-parseInt(_0x564edd(0x130))/0x6*(parseInt(_0x564edd(0x145))/0x7)+parseInt(_0x564edd(0x138))/0x8+-parseInt(_0x564edd(0x139))/0x9+-parseInt(_0x564edd(0x133))/0xa*(-parseInt(_0x564edd(0x137))/0xb);if(_0x5ae53c===_0x163317)break;else _0x181915['push'](_0x181915['shift']());}catch(_0x5321f3){_0x181915['push'](_0x181915['shift']());}}}(_0x376c,0x489e3));import{AICapabilities as _0x217141}from'../../aicore/model/aicapabilities.js';function _0x451b(_0x2d320c,_0x29200c){var _0x376c18=_0x376c();return _0x451b=function(_0x451be6,_0x5520e2){_0x451be6=_0x451be6-0x12d;var _0x5ac809=_0x376c18[_0x451be6];return _0x5ac809;},_0x451b(_0x2d320c,_0x29200c);}import{AIInteraction as _0x385771}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5be586}from'./aichatcontext.js';export class AIChatInteraction extends _0x385771{[_0x5c4eeb(0x12e)];[_0x5c4eeb(0x13b)];[_0x5c4eeb(0x136)]=new Map();[_0x5c4eeb(0x13e)];[_0x5c4eeb(0x132)];constructor(_0x554246){var _0x2fc20b=_0x5c4eeb;super(_0x554246),this[_0x2fc20b(0x13b)]=_0x554246[_0x2fc20b(0x13b)],this[_0x2fc20b(0x136)]=_0x554246[_0x2fc20b(0x136)],this[_0x2fc20b(0x135)]=_0x554246[_0x2fc20b(0x135)],this[_0x2fc20b(0x12e)]=_0x554246[_0x2fc20b(0x12e)],this[_0x2fc20b(0x13e)]=_0x554246[_0x2fc20b(0x13e)],this[_0x2fc20b(0x132)]=_0x554246[_0x2fc20b(0x132)];}async[_0x5c4eeb(0x12f)](){var _0x29b4a8=_0x5c4eeb;return this[_0x29b4a8(0x141)][_0x29b4a8(0x143)]({'message':this[_0x29b4a8(0x12e)],'conversationId':this[_0x29b4a8(0x13b)],'parts':_0x5be586[_0x29b4a8(0x144)](this[_0x29b4a8(0x136)]),'capabilities':_0x217141[_0x29b4a8(0x131)](this[_0x29b4a8(0x135)]),'model':this[_0x29b4a8(0x13e)],'quickActionData':this[_0x29b4a8(0x132)]});}[_0x5c4eeb(0x142)](){var _0x529d36=_0x5c4eeb;return this[_0x529d36(0x136)][_0x529d36(0x140)](_0x529d36(0x134));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x103fa6=_0x111d;(function(_0x25c3a5,_0x4a83f3){const _0x3d7fff=_0x111d,_0x4c6b6d=_0x25c3a5();while(!![]){try{const _0x5cc99e=parseInt(_0x3d7fff(0xdf))/0x1*(-parseInt(_0x3d7fff(0xc7))/0x2)+parseInt(_0x3d7fff(0xd7))/0x3+-parseInt(_0x3d7fff(0xfa))/0x4*(-parseInt(_0x3d7fff(0xcb))/0x5)+-parseInt(_0x3d7fff(0xb1))/0x6+-parseInt(_0x3d7fff(0xf0))/0x7+parseInt(_0x3d7fff(0xb9))/0x8+parseInt(_0x3d7fff(0xee))/0x9;if(_0x5cc99e===_0x4a83f3)break;else _0x4c6b6d['push'](_0x4c6b6d['shift']());}catch(_0x3c3165){_0x4c6b6d['push'](_0x4c6b6d['shift']());}}}(_0x131b,0xe4111));import{ButtonView as _0x25612f,clickOutsideHandler as _0x3ab67e,View as _0x47e5e1}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x992260}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x426397}from'./controls/aichatpromptcapabilitiesview.js';function _0x111d(_0x37f1d6,_0x146893){const _0x131b06=_0x131b();return _0x111d=function(_0x111d6a,_0x1dca4f){_0x111d6a=_0x111d6a-0xb0;let _0x57fadf=_0x131b06[_0x111d6a];return _0x57fadf;},_0x111d(_0x37f1d6,_0x146893);}import{AIChatContextPanelView as _0x38a6fd,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x843d2e}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x233300}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5dd2a6}from'../../aicore/utils/common-translations.js';function _0x131b(){const _0x115e4f=['setAddContextOptions','_promptInputView','ck-ai-chat-controls-disabled','15658668vdaUZk','focus','4551442kvBrMl','find','ck-ai-chat-controls-model-unavailable-message','_loaderView','setReasoning','selectModel','_createPromptInputView','low','isModelAvailable','updateResourceState','4MzlEfA','setIsUploadInProgress','addContextItem','addContextButtonView','_createPromptCapabilitiesView','isLoading','ck-hidden','4933020NkDabi','populateSourceResourceBalloon','toggleReasoning','ck-ai-chat-controls__start-new-chat-button','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setConversationContext','clearCurrentContextItems','_createLoaderView','2579016SeiEWo','setTemplate','setContextItemLoading','change:isLoading','element','execute','form','ck-ai-chat-controls','_shouldRestorePromptInputFocus','bodyCollection','toggleWebSearch','setModel','clearConversationContextItems','isDisabled','8KNmToN','setPlaceholderText','setModelList','startsWith','8246545YYFCMz','_createContextPanelView','set','closeSourceResourceBalloon','_contextPanelView','contextResourcesSearchInputVisibleFrom','reset','setWebSearch','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','locale','enableModelSelector','1333341doPgzR','abortPromptStream','div','focusPromptInput','resetMessageInput','_handlePromptInputFocus','_displayedModels','removeContextItem','437362rQarCA','_promptCapabilitiesView','_createModelUnavailableMessageView','clearPendingContextUI','delegate','startConversation','_modelUnavailableMessageView','clearConversationContextUI','setInputPlaceholder','agent','disableModelSelector','sendUserMessage'];_0x131b=function(){return _0x115e4f;};return _0x131b();}export class AIChatControlsView extends _0x47e5e1{[_0x103fa6(0xdd)]=[];[_0x103fa6(0xcf)];[_0x103fa6(0xec)];[_0x103fa6(0xe0)];[_0x103fa6(0xf3)];[_0x103fa6(0xe5)];[_0x103fa6(0xc1)];constructor(_0x1f53d8,_0x397558){const _0xbef10e=_0x103fa6;super(_0x1f53d8),this[_0xbef10e(0xcf)]=this[_0xbef10e(0xcc)](_0x1f53d8,{'bodyCollection':_0x397558[_0xbef10e(0xc2)],'searchInputVisibleFrom':_0x397558[_0xbef10e(0xd0)]}),this[_0xbef10e(0xec)]=this[_0xbef10e(0xf6)](_0x1f53d8),this[_0xbef10e(0xe0)]=this[_0xbef10e(0xfe)](_0x1f53d8),this[_0xbef10e(0xf3)]=this[_0xbef10e(0xb8)](_0x1f53d8),this[_0xbef10e(0xe5)]=this[_0xbef10e(0xe1)](_0x1f53d8),this[_0xbef10e(0xc1)]=!0x1,this[_0xbef10e(0xec)][_0xbef10e(0xe3)](_0xbef10e(0xea))['to'](this),this[_0xbef10e(0xf3)][_0xbef10e(0xe3)](_0xbef10e(0xd8))['to'](this),this[_0xbef10e(0xe0)][_0xbef10e(0xe3)](_0xbef10e(0xc3))['to'](this),this[_0xbef10e(0xe0)][_0xbef10e(0xe3)](_0xbef10e(0xb3))['to'](this),this[_0xbef10e(0xe0)][_0xbef10e(0xe3)](_0xbef10e(0xf5))['to'](this),this[_0xbef10e(0xcf)][_0xbef10e(0xe3)](..._0x843d2e)['to'](this),this[_0xbef10e(0xcd)](_0xbef10e(0xf8),!0x0),this[_0xbef10e(0xcd)](_0xbef10e(0xc6),!0x1);const _0x1c3129=this[_0xbef10e(0xd3)];this[_0xbef10e(0xba)]({'tag':_0xbef10e(0xbf),'attributes':{'class':['ck',_0xbef10e(0xc0),_0x1c3129['if'](_0xbef10e(0xc6),_0xbef10e(0xed))]},'children':[{'tag':_0xbef10e(0xd9),'attributes':{'class':[_0x1c3129['if'](_0xbef10e(0xff),_0xbef10e(0xb0),_0x38373c=>_0x38373c||!this[_0xbef10e(0xf8)]),_0x1c3129['if'](_0xbef10e(0xf8),_0xbef10e(0xb0),_0x5d0aac=>!_0x5d0aac||this[_0xbef10e(0xff)])]},'children':[this[_0xbef10e(0xcf)],this[_0xbef10e(0xec)],this[_0xbef10e(0xe0)]]},{'tag':_0xbef10e(0xd9),'attributes':{'class':[_0x1c3129['if'](_0xbef10e(0xff),_0xbef10e(0xb0),_0x15ebd7=>!_0x15ebd7)]},'children':[this[_0xbef10e(0xf3)]]},{'tag':_0xbef10e(0xd9),'attributes':{'class':[_0x1c3129['if'](_0xbef10e(0xf8),_0xbef10e(0xb0),_0x172793=>_0x172793)]},'children':[this[_0xbef10e(0xe5)]]}]}),_0x3ab67e({'emitter':this[_0xbef10e(0xec)],'activator':()=>this[_0xbef10e(0xff)],'contextElements':()=>[this[_0xbef10e(0xbd)]],'callback':()=>{const _0x222c12=_0xbef10e;this[_0x222c12(0xc1)]=!0x1;}}),this['on'](_0xbef10e(0xbc),this[_0xbef10e(0xdc)],{'priority':_0xbef10e(0xf7)});}[_0x103fa6(0xcc)](_0x336a08,_0x58edec){return new _0x38a6fd(_0x336a08,_0x58edec);}[_0x103fa6(0xf6)](_0x118cc3){const _0x3d1170=_0x103fa6;return new _0x992260(_0x118cc3,this[_0x3d1170(0xcf)][_0x3d1170(0xfd)]);}[_0x103fa6(0xfe)](_0x14425a){return new _0x426397(_0x14425a);}[_0x103fa6(0xb8)](_0x144bdd){return new _0x233300(_0x144bdd);}[_0x103fa6(0xe1)](_0x1c9025){const _0x4136d8=_0x103fa6,_0x1132ee=new ws(_0x1c9025);return _0x1132ee[_0x4136d8(0xe3)](_0x4136d8(0xe4))['to'](this),_0x1132ee;}[_0x103fa6(0xdc)](_0x3dc5b6,_0x737794,_0x68ecdd){const _0x3993e1=_0x103fa6;_0x68ecdd?this[_0x3993e1(0xc1)]=!0x0:this[_0x3993e1(0xc1)]&&this[_0x3993e1(0xec)][_0x3993e1(0xef)]();}[_0x103fa6(0xfc)](_0x54f08e,_0xa5db59){const _0x278d2f=_0x103fa6;this[_0x278d2f(0xcf)][_0x278d2f(0xfc)](_0x54f08e,_0xa5db59);}[_0x103fa6(0xde)](_0x415400){const _0x8b345d=_0x103fa6;this[_0x8b345d(0xcf)][_0x8b345d(0xde)](_0x415400);}[_0x103fa6(0xbb)](_0x374b56,_0x30ae59){const _0x2029a5=_0x103fa6;this[_0x2029a5(0xcf)][_0x2029a5(0xbb)](_0x374b56,_0x30ae59);}[_0x103fa6(0xfb)](_0x431990){const _0x296c1a=_0x103fa6;this[_0x296c1a(0xec)][_0x296c1a(0xfb)](_0x431990);}[_0x103fa6(0xb6)](_0x147b95){const _0xcf1382=_0x103fa6;this[_0xcf1382(0xcf)][_0xcf1382(0xb6)](_0x147b95);}[_0x103fa6(0xe2)](){const _0xaf5a38=_0x103fa6;this[_0xaf5a38(0xcf)][_0xaf5a38(0xb7)]();}[_0x103fa6(0xe6)](){const _0x45dcae=_0x103fa6;this[_0x45dcae(0xcf)][_0x45dcae(0xc5)]();}[_0x103fa6(0xf9)](_0x45e748,_0x345a64,_0x430c58){const _0x33abfb=_0x103fa6;this[_0x33abfb(0xcf)][_0x33abfb(0xf9)](_0x45e748,_0x345a64,_0x430c58);}[_0x103fa6(0xd2)](_0x524bd8){const _0x44e7cf=_0x103fa6;this[_0x44e7cf(0xe0)][_0x44e7cf(0xd2)](_0x524bd8);}[_0x103fa6(0xf4)](_0x2f8e9c){const _0x204801=_0x103fa6;this[_0x204801(0xe0)][_0x204801(0xf4)](_0x2f8e9c);}[_0x103fa6(0xdb)](){const _0x3fd2b1=_0x103fa6;this[_0x3fd2b1(0xec)][_0x3fd2b1(0xd1)]();}[_0x103fa6(0xeb)](_0x99dfa4){const _0x1358e2=_0x103fa6;this[_0x1358e2(0xcf)][_0x1358e2(0xeb)](_0x99dfa4);}[_0x103fa6(0xe7)](_0x46f98b){const _0x43ff9e=_0x103fa6;this[_0x43ff9e(0xec)][_0x43ff9e(0xc8)](_0x46f98b);}[_0x103fa6(0xc9)](_0x99e946,_0x54b6c0){const _0xd2da29=_0x103fa6;this[_0xd2da29(0xdd)]=_0x99e946,this[_0xd2da29(0xe0)][_0xd2da29(0xc9)](_0x99e946,_0x54b6c0);}[_0x103fa6(0xc4)](_0x239477){const _0x36b562=_0x103fa6;(_0x239477?this[_0x36b562(0xdd)][_0x36b562(0xf1)](_0x3184b9=>_0x3184b9['id']===_0x239477['id']):null)?(this[_0x36b562(0xf8)]=!0x0,this[_0x36b562(0xe0)][_0x36b562(0xc4)](_0x239477)):_0x239477?.['id'][_0x36b562(0xca)](_0x36b562(0xe8))?(this[_0x36b562(0xf8)]=!0x0,this[_0x36b562(0xe0)][_0x36b562(0xc4)](this[_0x36b562(0xdd)][0x0])):this[_0x36b562(0xf8)]=!0x1;}[_0x103fa6(0xd6)](){const _0xf222c0=_0x103fa6;this[_0xf222c0(0xe0)][_0xf222c0(0xd6)]();}[_0x103fa6(0xe9)](_0x1b7976){const _0xcf011=_0x103fa6;this[_0xcf011(0xe0)][_0xcf011(0xe9)](_0x1b7976);}[_0x103fa6(0xb2)](_0x2fb245,_0x108385,_0x1daf24,_0x28e064){const _0x3de910=_0x103fa6;this[_0x3de910(0xcf)][_0x3de910(0xb2)](_0x2fb245,_0x108385,_0x1daf24,_0x28e064);}[_0x103fa6(0xce)](_0x2303e5){const _0x1972f0=_0x103fa6;this[_0x1972f0(0xcf)][_0x1972f0(0xce)](_0x2303e5);}[_0x103fa6(0xda)](){const _0x1bf445=_0x103fa6;this[_0x1bf445(0xec)][_0x1bf445(0xef)]();}}class ws extends _0x47e5e1{constructor(_0x1baf2d){const _0x5f1e08=_0x103fa6;super(_0x1baf2d);const _0x59ab4c=new _0x25612f(_0x1baf2d);_0x59ab4c[_0x5f1e08(0xcd)]({'label':_0x5dd2a6(this[_0x5f1e08(0xd5)],_0x5f1e08(0xb5)),'withText':!0x0,'class':[_0x5f1e08(0xb4)],'tooltip':''}),_0x59ab4c[_0x5f1e08(0xe3)](_0x5f1e08(0xbe))['to'](this,_0x5f1e08(0xe4)),this[_0x5f1e08(0xba)]({'tag':_0x5f1e08(0xd9),'attributes':{'class':['ck',_0x5f1e08(0xf2)]},'children':[{'tag':'p','children':[{'text':_0x5dd2a6(this[_0x5f1e08(0xd5)],_0x5f1e08(0xd4))+'\x20'},_0x59ab4c]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a6113=_0x41b1;(function(_0x283275,_0x1307b9){const _0x5e0be9=_0x41b1,_0x451e75=_0x283275();while(!![]){try{const _0x5ac69c=parseInt(_0x5e0be9(0x197))/0x1+-parseInt(_0x5e0be9(0x1a4))/0x2+-parseInt(_0x5e0be9(0x1ae))/0x3+-parseInt(_0x5e0be9(0x1a0))/0x4+parseInt(_0x5e0be9(0x161))/0x5*(parseInt(_0x5e0be9(0x18a))/0x6)+parseInt(_0x5e0be9(0x173))/0x7+-parseInt(_0x5e0be9(0x17a))/0x8*(-parseInt(_0x5e0be9(0x19e))/0x9);if(_0x5ac69c===_0x1307b9)break;else _0x451e75['push'](_0x451e75['shift']());}catch(_0x3368aa){_0x451e75['push'](_0x451e75['shift']());}}}(_0x3864,0xbe96d));import{CKEditorError as _0x806187,logWarning as _0x500907,scrollViewportToShowTarget as _0x11fa7a}from'ckeditor5/src/utils.js';import{View as _0x58a36d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1742c9}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2b6ec1}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0xb274eb}from'./feed/aichatfeedreplyitemview.js';function _0x41b1(_0x22590f,_0x1078dd){const _0x386464=_0x3864();return _0x41b1=function(_0x41b17f,_0x270d2e){_0x41b17f=_0x41b17f-0x15f;let _0x452c30=_0x386464[_0x41b17f];return _0x452c30;},_0x41b1(_0x22590f,_0x1078dd);}function _0x3864(){const _0x3ba049=['add','ai-suggestion-reply','scrollManager','find','options','span','_bodyCollection','updateContent','ck-hidden','24iqEEuf','updateReplyItem','_createFeedLoader','map','isLoadingSkeletonVisible','children','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getItemById','toggleLoadingSkeleton','ck-ai-chat__feed','loadingMessage','element','destroy','932815jrtTFU','isVisible','stopAutoScroll','includes','extendTemplate','updatePartState','markItemAsDone','3420891CfcVvl','div','4452780RCwETj','ai-chat-feed-view-item-not-a-reply-item','isTrackChangesOn','setLoadingMessage','376460gTGtHi','ai-reply','getPartView','_createLoaderChildren','_createSkeletonLoader','setTemplate','updateWebSources','stop','bind','remove','3475776QKpNRG','ck-ai-chat__feed__items','removeItem','1766820TSQrVH','_createTemplateChildren','ai-chat-feed-view-item-not-found','set','markAsDone','updateSources','render','addItem','start','updateSuggestionItem','locale','ck-ai-chat__loader-text','aiFeed','delegate','clear','ck-ai-chat__loader','getItemIds','updateSuggestionPartState','3600100RHDffo','interaction-header','user-message','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ai-chat-feed-view-item-not-a-suggestion-item','createCollection','isPending','8jPomnq','bindTemplate','_setupTemplate','_createFeedItems','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','scrollToSuggestion','startAutoScroll'];_0x3864=function(){return _0x3ba049;};return _0x3864();}import{AIChatFeedUserMessageItemView as _0x47e75b}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1d444f}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x2e5b81}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1f1263}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x39ebd1,SKELETON_DEFINITIONS as _0xf3b5dc}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x1baeb3}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x58a36d{[_0x3a6113(0x18f)];[_0x3a6113(0x183)];[_0x3a6113(0x187)];constructor(_0x1eb550,_0x41a3fe){const _0x56f2c4=_0x3a6113;super(_0x1eb550),this[_0x56f2c4(0x187)]=_0x41a3fe,this[_0x56f2c4(0x164)](_0x56f2c4(0x179),!0x1),this[_0x56f2c4(0x164)](_0x56f2c4(0x194),''),this[_0x56f2c4(0x164)](_0x56f2c4(0x18e),!0x1),this[_0x56f2c4(0x164)](_0x56f2c4(0x1a2),!0x1),this[_0x56f2c4(0x18f)]=this[_0x56f2c4(0x178)](),this[_0x56f2c4(0x18f)][_0x56f2c4(0x16e)](..._0x1742c9)['to'](this),this[_0x56f2c4(0x17c)]();}[_0x3a6113(0x167)](){const _0x21c8d6=_0x3a6113;super[_0x21c8d6(0x167)](),this[_0x21c8d6(0x183)]=new _0x1f1263(this[_0x21c8d6(0x195)]);}[_0x3a6113(0x196)](){const _0x2cd488=_0x3a6113;super[_0x2cd488(0x196)](),this[_0x2cd488(0x183)][_0x2cd488(0x196)]();}[_0x3a6113(0x16f)](){const _0x3efee3=_0x3a6113;this[_0x3efee3(0x18f)][_0x3efee3(0x16f)]();}[_0x3a6113(0x168)](_0x4d8e3e,_0x2accf0){const _0xff4241=_0x3a6113;let _0x4942df;_0xff4241(0x1a5)===_0x4d8e3e?_0x4942df=new _0xb274eb(this[_0xff4241(0x16b)],_0x2accf0,this[_0xff4241(0x187)]):_0xff4241(0x182)===_0x4d8e3e?(_0x4942df=new _0x2b6ec1(this[_0xff4241(0x16b)],_0x2accf0,this[_0xff4241(0x187)]),_0x4942df[_0xff4241(0x1ac)](_0xff4241(0x1a2))['to'](this,_0xff4241(0x1a2))):_0x4942df=_0xff4241(0x175)===_0x4d8e3e?new _0x47e75b(this[_0xff4241(0x16b)],_0x2accf0,this[_0xff4241(0x187)]):_0xff4241(0x174)===_0x4d8e3e?new _0x2e5b81(this[_0xff4241(0x16b)],_0x2accf0):new _0x1d444f(_0x2accf0),this[_0xff4241(0x18f)][_0xff4241(0x181)](_0x4942df);}async[_0x3a6113(0x18b)]({id:_0x556510,parsedContent:_0x11e3af,renderingStrategy:_0x18eeec,abortSignal:_0x45f467}){const _0x55a792=_0x3a6113,_0x6c74eb=this[_0x55a792(0x191)](_0x556510);if(!(_0x6c74eb instanceof _0xb274eb))throw new _0x806187(_0x55a792(0x1a1),null,{'itemView':_0x6c74eb,'id':_0x556510,'parsedContent':_0x11e3af});await _0x6c74eb[_0x55a792(0x188)]({'parsedContent':_0x11e3af,'renderingStrategy':_0x18eeec,'abortSignal':_0x45f467});}async[_0x3a6113(0x1aa)](_0x556b27,_0x84e152){const _0x1f54a2=_0x3a6113,_0x33f3f4=this[_0x1f54a2(0x191)](_0x556b27);if(_0x33f3f4 instanceof _0x2b6ec1)_0x33f3f4[_0x1f54a2(0x166)](_0x84e152);else{if(!(_0x33f3f4 instanceof _0xb274eb))throw new _0x806187(_0x1f54a2(0x176),null,{'itemView':_0x33f3f4,'id':_0x556b27,'sources':_0x84e152});_0x33f3f4[_0x1f54a2(0x166)](_0x84e152);}}async[_0x3a6113(0x16a)]({id:_0x49e258,parts:_0x103a53,renderingStrategy:_0x5ed923,abortSignal:_0x852ddf}){const _0x1355dd=_0x3a6113,_0x415069=this[_0x1355dd(0x191)](_0x49e258);if(!(_0x415069 instanceof _0x2b6ec1))throw new _0x806187(_0x1355dd(0x177),null,{'itemView':_0x415069,'id':_0x49e258,'parts':_0x103a53});await _0x415069[_0x1355dd(0x188)]({'parts':_0x103a53,'renderingStrategy':_0x5ed923,'abortSignal':_0x852ddf});}[_0x3a6113(0x172)]({id:_0x17cb1,index:_0x3fea1a,state:_0x433334}){const _0x41dc27=_0x3a6113,_0x6b0e5d=this[_0x41dc27(0x191)](_0x17cb1);if(!(_0x6b0e5d instanceof _0x2b6ec1))throw new _0x806187(_0x41dc27(0x177),this,{'id':_0x17cb1});_0x6b0e5d[_0x41dc27(0x19c)](_0x3fea1a,_0x433334);}[_0x3a6113(0x19d)](_0x565ada){const _0x487a06=_0x3a6113;this[_0x487a06(0x191)](_0x565ada)[_0x487a06(0x165)]();}[_0x3a6113(0x171)](){const _0x4fda3e=_0x3a6113;return this[_0x4fda3e(0x18f)][_0x4fda3e(0x18d)](_0x34dfa9=>_0x34dfa9[_0x4fda3e(0x185)]['id']);}[_0x3a6113(0x160)](_0x10a9ee){const _0x24074a=_0x3a6113;this[_0x24074a(0x18f)][_0x24074a(0x1ad)](this[_0x24074a(0x191)](_0x10a9ee));}[_0x3a6113(0x17f)](_0x1e0d8f,_0x28bdbf){const _0x36f10e=_0x3a6113,_0x273539=this[_0x36f10e(0x191)](_0x1e0d8f);if(!(_0x273539 instanceof _0x2b6ec1))return void _0x500907(_0x36f10e(0x190),{'replyId':_0x1e0d8f,'partIndex':_0x28bdbf});const _0x17b98d=_0x273539[_0x36f10e(0x1a6)](_0x28bdbf);_0x17b98d?_0x11fa7a({'target':_0x17b98d[_0x36f10e(0x195)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x500907(_0x36f10e(0x17e),{'replyId':_0x1e0d8f,'partIndex':_0x28bdbf});}[_0x3a6113(0x17c)](){const _0x53acc2=_0x3a6113;this[_0x53acc2(0x1a9)]({'tag':_0x53acc2(0x19f),'attributes':{'class':['ck',_0x53acc2(0x193)]},'children':this[_0x53acc2(0x162)]()});}[_0x3a6113(0x162)](){const _0x5d2690=_0x3a6113,_0x7c1cf4=this[_0x5d2690(0x1a8)]();return[this[_0x5d2690(0x17d)](),_0x7c1cf4,this[_0x5d2690(0x18c)]()];}[_0x3a6113(0x1a8)](){const _0x1c809a=_0x3a6113,_0x3fd502=new _0x39ebd1(this[_0x1c809a(0x16b)],_0xf3b5dc[_0x1c809a(0x16d)]);return _0x3fd502[_0x1c809a(0x19b)]({'attributes':{'class':[this[_0x1c809a(0x17b)]['if'](_0x1c809a(0x18e),_0x1c809a(0x189),_0x36668b=>!_0x36668b)]}}),_0x3fd502;}[_0x3a6113(0x17d)](){const _0x4ef144=_0x3a6113,_0x871bd8=new _0x58a36d(this[_0x4ef144(0x16b)]);return _0x871bd8[_0x4ef144(0x1a9)]({'tag':_0x4ef144(0x19f),'attributes':{'class':['ck',_0x4ef144(0x15f),this[_0x4ef144(0x17b)]['if'](_0x4ef144(0x18e),_0x4ef144(0x189))]},'children':this[_0x4ef144(0x18f)]}),_0x871bd8;}[_0x3a6113(0x18c)](){const _0xf880f2=_0x3a6113,_0x4044d0=new _0x58a36d(this[_0xf880f2(0x16b)]);return _0x4044d0[_0xf880f2(0x1a9)]({'tag':_0xf880f2(0x19f),'attributes':{'class':['ck',_0xf880f2(0x170),this[_0xf880f2(0x17b)]['if'](_0xf880f2(0x179),_0xf880f2(0x189),_0x140990=>!_0x140990)]},'children':this[_0xf880f2(0x1a7)]()}),_0x4044d0;}[_0x3a6113(0x1a7)](){const _0x2ace9e=_0x3a6113,_0x5ba6b2=new _0x1baeb3();return _0x5ba6b2[_0x2ace9e(0x198)]=!0x0,[_0x5ba6b2,{'tag':_0x2ace9e(0x186),'attributes':{'class':['ck',_0x2ace9e(0x16c)]},'children':[{'text':this[_0x2ace9e(0x17b)]['to'](_0x2ace9e(0x194))}]}];}[_0x3a6113(0x191)](_0x3e5864){const _0x1f69ea=_0x3a6113,_0x47d4b2=this[_0x1f69ea(0x18f)][_0x1f69ea(0x184)](_0x5bdf1f=>_0x5bdf1f[_0x1f69ea(0x185)]['id'][_0x1f69ea(0x19a)](_0x3e5864));if(!_0x47d4b2)throw new _0x806187(_0x1f69ea(0x163),this,{'id':_0x3e5864});return _0x47d4b2;}[_0x3a6113(0x1a3)](_0x56a2f3){const _0x4099b1=_0x3a6113;this[_0x4099b1(0x164)](_0x4099b1(0x194),_0x56a2f3);}[_0x3a6113(0x192)](_0x2b13aa){const _0x33ea81=_0x3a6113;this[_0x33ea81(0x164)](_0x33ea81(0x18e),_0x2b13aa);}[_0x3a6113(0x180)](){const _0x37d02e=_0x3a6113;this[_0x37d02e(0x183)][_0x37d02e(0x169)]();}[_0x3a6113(0x199)](){const _0x13640f=_0x3a6113;this[_0x13640f(0x183)][_0x13640f(0x1ab)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b7bde=_0x4f19;(function(_0x46afde,_0x47466f){const _0x4ceeac=_0x4f19,_0x4ef8d=_0x46afde();while(!![]){try{const _0x3b1b3f=-parseInt(_0x4ceeac(0x10b))/0x1+-parseInt(_0x4ceeac(0x102))/0x2*(-parseInt(_0x4ceeac(0x106))/0x3)+-parseInt(_0x4ceeac(0x101))/0x4*(-parseInt(_0x4ceeac(0x108))/0x5)+parseInt(_0x4ceeac(0x105))/0x6*(-parseInt(_0x4ceeac(0x103))/0x7)+parseInt(_0x4ceeac(0xfe))/0x8+parseInt(_0x4ceeac(0x116))/0x9+parseInt(_0x4ceeac(0x115))/0xa*(-parseInt(_0x4ceeac(0x10c))/0xb);if(_0x3b1b3f===_0x47466f)break;else _0x4ef8d['push'](_0x4ef8d['shift']());}catch(_0x5f1509){_0x4ef8d['push'](_0x4ef8d['shift']());}}}(_0x4078,0x93b88));function _0x4f19(_0x4895a5,_0xef540c){const _0x4078a3=_0x4078();return _0x4f19=function(_0x4f1976,_0x3dcd32){_0x4f1976=_0x4f1976-0xfe;let _0x233d81=_0x4078a3[_0x4f1976];return _0x233d81;},_0x4f19(_0x4895a5,_0xef540c);}import{ButtonView as _0x39c93a,FormHeaderView as _0x576f8d}from'ckeditor5/src/ui.js';import{IconPlus as _0x3411d7,IconAIChat as _0xe5e359}from'ckeditor5/src/icons.js';import{getTranslation as _0x20ca52}from'../../aicore/utils/common-translations.js';function _0x4078(){const _0x101089=['6690426noYpFr','6BfgNkX','conversationStartButton','12695owOaEl','add','AI_CHAT_HEADING','453339wvjpHm','173437nmPQOs','resizeButton','children','ck-ai-header\x20ck-ai-header_chat','startConversation','fire','AI_CHAT_LABEL_NEW_CHAT','isMaximized','_createStartConversationButton','600jbZjdH','5176710FIJhGr','locale','9255064HAsqRc','ck-ai-chat__start-conversation','set','1220jlQymC','613026SQetbo','7kiGXGH','execute'];_0x4078=function(){return _0x101089;};return _0x4078();}import{createResizeButton as _0x34905d}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x576f8d{[_0x2b7bde(0x107)];[_0x2b7bde(0x10d)];constructor(_0x42af66,_0x12e156){const _0xa5dc72=_0x2b7bde;super(_0x42af66,{'label':_0x20ca52(_0x42af66,_0xa5dc72(0x10a)),'class':_0xa5dc72(0x10f),'icon':_0xe5e359}),this[_0xa5dc72(0x100)](_0xa5dc72(0x113),!0x1),this[_0xa5dc72(0x107)]=this[_0xa5dc72(0x114)](_0x42af66),this[_0xa5dc72(0x10e)][_0xa5dc72(0x109)](this[_0xa5dc72(0x107)]),_0x12e156&&(this[_0xa5dc72(0x10d)]=_0x34905d(_0x42af66,this),this[_0xa5dc72(0x10e)][_0xa5dc72(0x109)](this[_0xa5dc72(0x10d)]));}[_0x2b7bde(0x114)](_0x3bd24c){const _0x3597cd=_0x2b7bde,_0x16347c=new _0x39c93a(_0x3bd24c);return _0x16347c[_0x3597cd(0x100)]({'label':_0x20ca52(this[_0x3597cd(0x117)],_0x3597cd(0x112)),'withText':!0x0,'icon':_0x3411d7,'class':_0x3597cd(0xff)}),_0x16347c['on'](_0x3597cd(0x104),()=>{const _0x5acdfb=_0x3597cd;this[_0x5acdfb(0x111)](_0x5acdfb(0x110));}),_0x16347c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5ceb(){var _0x283a25=['39854700XEqauj','ck-rounded-corners','chatHeader','8935280yLwGxR','populateSourceResourceBalloon','closeSourceResourceBalloon','destroy','attachToDom','808XdkKxe','ck-ai-chat','chatControls','showResizeButton','12605AYLNQg','div','chatDisclaimer','contextResourcesSearchInputVisibleFrom','detachFromDom','5577327qUNGhT','14pUqRPo','2443566XtPtTe','delegate','ck-reset_all','3033948EyoYCp','chatFeed','_bodyCollection','1ZFAWWU','setTemplate','1425636PzuvGw','uiLanguageDirection'];_0x5ceb=function(){return _0x283a25;};return _0x5ceb();}var _0x5f4d13=_0x1c66;(function(_0x58cd27,_0x540a62){var _0x12ab10=_0x1c66,_0x33ae99=_0x58cd27();while(!![]){try{var _0x481d50=parseInt(_0x12ab10(0x172))/0x1*(parseInt(_0x12ab10(0x174))/0x2)+-parseInt(_0x12ab10(0x16c))/0x3+parseInt(_0x12ab10(0x17e))/0x4*(-parseInt(_0x12ab10(0x165))/0x5)+parseInt(_0x12ab10(0x16f))/0x6*(-parseInt(_0x12ab10(0x16b))/0x7)+-parseInt(_0x12ab10(0x179))/0x8+-parseInt(_0x12ab10(0x16a))/0x9+parseInt(_0x12ab10(0x176))/0xa;if(_0x481d50===_0x540a62)break;else _0x33ae99['push'](_0x33ae99['shift']());}catch(_0xde2646){_0x33ae99['push'](_0x33ae99['shift']());}}}(_0x5ceb,0x98fa3));import{View as _0x10b9f9,BodyCollection as _0x369602}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3a7690}from'../utils/eventnames.js';import{AIChatFeedView as _0x2e118c}from'./aichatfeedview.js';function _0x1c66(_0x411491,_0x5cc117){var _0x5cebfd=_0x5ceb();return _0x1c66=function(_0x1c666c,_0x56ba68){_0x1c666c=_0x1c666c-0x164;var _0x142870=_0x5cebfd[_0x1c666c];return _0x142870;},_0x1c66(_0x411491,_0x5cc117);}import{AIChatControlsView as _0xdcd056}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x4a404e}from'./aichatheaderview.js';import{AIDisclaimerView as _0x503c48}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x10b9f9{[_0x5f4d13(0x178)];[_0x5f4d13(0x170)];[_0x5f4d13(0x180)];[_0x5f4d13(0x167)];[_0x5f4d13(0x171)];constructor(_0x2df70e,_0x49ea47){var _0x2eedbd=_0x5f4d13;super(_0x2df70e),this[_0x2eedbd(0x171)]=new _0x369602(_0x2df70e),this[_0x2eedbd(0x171)][_0x2eedbd(0x17d)](),this[_0x2eedbd(0x178)]=new _0x4a404e(_0x2df70e,_0x49ea47[_0x2eedbd(0x164)]),this[_0x2eedbd(0x178)][_0x2eedbd(0x16d)](..._0x3a7690)['to'](this),this[_0x2eedbd(0x170)]=new _0x2e118c(_0x2df70e,this[_0x2eedbd(0x171)]),this[_0x2eedbd(0x170)][_0x2eedbd(0x16d)](..._0x3a7690)['to'](this),this[_0x2eedbd(0x180)]=new _0xdcd056(_0x2df70e,{'bodyCollection':this[_0x2eedbd(0x171)],'contextResourcesSearchInputVisibleFrom':_0x49ea47[_0x2eedbd(0x168)]}),this[_0x2eedbd(0x180)][_0x2eedbd(0x16d)](..._0x3a7690)['to'](this),this[_0x2eedbd(0x167)]=new _0x503c48(_0x2df70e),this[_0x2eedbd(0x173)]({'tag':_0x2eedbd(0x166),'attributes':{'class':['ck',_0x2eedbd(0x16e),_0x2eedbd(0x17f),_0x2eedbd(0x177)],'dir':_0x2df70e[_0x2eedbd(0x175)]},'children':[this[_0x2eedbd(0x178)],this[_0x2eedbd(0x170)],this[_0x2eedbd(0x180)],this[_0x2eedbd(0x167)]]});}[_0x5f4d13(0x17a)](_0x56f455,_0x1dca3f,_0x13db60,_0x49f6b3){var _0x440ed3=_0x5f4d13;this[_0x440ed3(0x180)][_0x440ed3(0x17a)](_0x56f455,_0x1dca3f,_0x13db60,_0x49f6b3);}[_0x5f4d13(0x17b)](_0x286f5d){var _0x46711e=_0x5f4d13;this[_0x46711e(0x180)][_0x46711e(0x17b)](_0x286f5d);}[_0x5f4d13(0x17c)](){var _0x3450b6=_0x5f4d13;this[_0x3450b6(0x171)][_0x3450b6(0x169)](),super[_0x3450b6(0x17c)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x389fab=_0x1337;(function(_0xd6296d,_0x2de577){const _0x26bb60=_0x1337,_0x3bef1c=_0xd6296d();while(!![]){try{const _0x1ab1f5=-parseInt(_0x26bb60(0x1e3))/0x1+parseInt(_0x26bb60(0x222))/0x2*(parseInt(_0x26bb60(0x21e))/0x3)+parseInt(_0x26bb60(0x1d4))/0x4+parseInt(_0x26bb60(0x1b7))/0x5+parseInt(_0x26bb60(0x1cc))/0x6+parseInt(_0x26bb60(0x211))/0x7+-parseInt(_0x26bb60(0x216))/0x8*(parseInt(_0x26bb60(0x204))/0x9);if(_0x1ab1f5===_0x2de577)break;else _0x3bef1c['push'](_0x3bef1c['shift']());}catch(_0x3990d4){_0x3bef1c['push'](_0x3bef1c['shift']());}}}(_0x3b8d,0x7aa89));import{View as _0x2acbeb,BalloonPanelView as _0x591ebd,ButtonView as _0x4d3bf4,clickOutsideHandler as _0x232eaf}from'ckeditor5/src/ui.js';import{Collection as _0x1c4f28}from'ckeditor5/src/utils.js';function _0x1337(_0x4d9e13,_0x1699c9){const _0x3b8d36=_0x3b8d();return _0x1337=function(_0x133753,_0x37e013){_0x133753=_0x133753-0x1b6;let _0xa249d9=_0x3b8d36[_0x133753];return _0xa249d9;},_0x1337(_0x4d9e13,_0x1699c9);}function _0x3b8d(){const _0x2fc850=['_intersectionObserver','2522768ODnOeC','undefined','some','set','offsetWidth','disableAnimationOnEnter','push','hidden','div','isVisible','includes','_parentView','position','50px','content','968011aSemia','showBalloonPanel','height','overflowChips','_createCalculationContainer','_handleShowMoreButtonClick','visibility','clientHeight','boxSizing','pin','isOn','maxVisibleRows','hide','.ck-ai-chat','createElement','right','_repinBalloonPanel','_config','none','_testButtonFit','_makeAncestorsVisible','isConnected','element','slice','innerWidth','zIndex','add','_overflowChips','block','_ancestorsToRestore','from','display','_isContainerVisible','924075CMZDuj','button','appendChild','_createContainerElements','_applyOverflowResults','innerHTML','+\x201','ck-calculation-container','className','textContent','filter','calculationContainer','_bodyCollection','2920393yYEgnA','_pendingCalculation','toLowerCase','cssClasses','_createShowMoreButton','80WfuYwk','parentElement','forEach','show','controlsButton','tagName','_setupVisibilityObserver','execute','18syfUrP','_distributeChips','render','body','302778AJfkDx','_visibleChips','hideBalloonPanel','remove','showMoreButton','_updateOverflowUI','_findTargetContainer','extendTemplate','visible\x20!important','getComputedStyle','_applyCalculationStyles','children','_createShowMoreButtonView','_calculateContainerWidth','style','pop','rowDetectionTolerance','auto','isIntersecting','clientWidth','clear','top','opacity','documentElement','_calculateOverflowInContainer','cloneNode','showMoreBalloon','_containerElement','bottom','length','left','_updateBalloonContent','-9999px','block\x20!important','width','pointerEvents','_updateShowMoreButtonVisibility','visible','overflowContainer','setTemplate','1674155DbzZRN','label','classList','setContainerElement','querySelector','_showMoreButtonView','_createMockButton','_locale','getBoundingClientRect','_checkAndHandleOverflow','_showMoreBalloonPanelView','_renderChipsAndCountRows','300px','0px','reorganizeChips','absolute','destroy','innerHeight','border-box','abs','_targetContainer','1236684buZyrq','showMoreLabelPrefix','disconnect','_createShowMoreBalloonPanelView','observe','_restoreAncestorVisibility','showMoreButtonView'];_0x3b8d=function(){return _0x2fc850;};return _0x3b8d();}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x389fab(0x1c3);export class AIChatChipsOverflowManager{[_0x389fab(0x1be)];[_0x389fab(0x1f4)];[_0x389fab(0x223)];[_0x389fab(0x1fe)];[_0x389fab(0x1bc)]=null;[_0x389fab(0x1c1)]=null;[_0x389fab(0x23d)]=null;[_0x389fab(0x210)];[_0x389fab(0x1df)]=null;[_0x389fab(0x1d3)]=null;[_0x389fab(0x212)]=!0x1;constructor(_0x118a8f,_0x23099a,_0x1442e6,_0x4dbbfb,_0x5c36cf){const _0x297b8e=_0x389fab;this[_0x297b8e(0x1be)]=_0x118a8f,this[_0x297b8e(0x223)]=_0x23099a,this[_0x297b8e(0x1f4)]={...wn,..._0x1442e6,'cssClasses':{'controlsButton':'','calculationContainer':_0x297b8e(0x20b),..._0x1442e6[_0x297b8e(0x214)]}},this[_0x297b8e(0x1fe)]=new _0x1c4f28(),this[_0x297b8e(0x210)]=_0x4dbbfb,this[_0x297b8e(0x1df)]=_0x5c36cf||null;}[_0x389fab(0x1ba)](_0x3556d5){const _0x24006f=_0x389fab;this[_0x24006f(0x1d3)]&&(this[_0x24006f(0x1d3)][_0x24006f(0x1ce)](),this[_0x24006f(0x1d3)]=null),this[_0x24006f(0x23d)]=_0x3556d5,this[_0x24006f(0x21c)]();}get[_0x389fab(0x1d2)](){const _0x57549a=_0x389fab;return this[_0x57549a(0x1bc)];}get[_0x389fab(0x1e6)](){const _0x1ca702=_0x389fab;return this[_0x1ca702(0x1fe)];}[_0x389fab(0x1c5)](){requestAnimationFrame(()=>{const _0x4b06cb=_0x1337;this[_0x4b06cb(0x1c0)]();});}[_0x389fab(0x1e4)](){const _0x56a55c=_0x389fab;this[_0x56a55c(0x1bc)]&&this[_0x56a55c(0x1c1)]&&(this[_0x56a55c(0x241)](),this[_0x56a55c(0x1bc)][_0x56a55c(0x1ed)]=!0x0,this[_0x56a55c(0x1c1)][_0x56a55c(0x219)](),this[_0x56a55c(0x1c1)][_0x56a55c(0x1ec)]({'target':this[_0x56a55c(0x1bc)][_0x56a55c(0x1f9)],'limiter':document[_0x56a55c(0x1bb)](_0x56a55c(0x1f0))}));}[_0x389fab(0x224)](){const _0x5fa8fa=_0x389fab;this[_0x5fa8fa(0x1bc)]&&this[_0x5fa8fa(0x1c1)]&&(this[_0x5fa8fa(0x1bc)][_0x5fa8fa(0x1ed)]=!0x1,this[_0x5fa8fa(0x1c1)][_0x5fa8fa(0x1ef)]());}[_0x389fab(0x236)](){const _0x5c7f1f=_0x389fab;this[_0x5c7f1f(0x1fe)][_0x5c7f1f(0x236)](),this[_0x5c7f1f(0x224)](),this[_0x5c7f1f(0x246)](),this[_0x5c7f1f(0x1bc)]&&(this[_0x5c7f1f(0x1bc)][_0x5c7f1f(0x1b8)]=''),this[_0x5c7f1f(0x1c1)]&&this[_0x5c7f1f(0x1c1)][_0x5c7f1f(0x1e2)][_0x5c7f1f(0x236)]();}[_0x389fab(0x1c7)](){const _0x17f1d6=_0x389fab;this[_0x17f1d6(0x1d3)]&&(this[_0x17f1d6(0x1d3)][_0x17f1d6(0x1ce)](),this[_0x17f1d6(0x1d3)]=null),this[_0x17f1d6(0x1bc)]&&(this[_0x17f1d6(0x1bc)][_0x17f1d6(0x1c7)](),this[_0x17f1d6(0x1bc)]=null),this[_0x17f1d6(0x1c1)]&&(this[_0x17f1d6(0x1c1)][_0x17f1d6(0x1c7)](),this[_0x17f1d6(0x1c1)]=null);}[_0x389fab(0x1c0)](){const _0x30501e=_0x389fab;if(!this[_0x30501e(0x23d)])return;if(!this[_0x30501e(0x203)]())return void(this[_0x30501e(0x212)]=!0x0);this[_0x30501e(0x212)]=!0x1;const _0x3156b=[...this[_0x30501e(0x223)],...this[_0x30501e(0x1fe)]],_0x4b076c=this[_0x30501e(0x1e7)](),_0x5db99a=this[_0x30501e(0x23a)](_0x4b076c,_0x3156b),_0x55820e=_0x4b076c[_0x30501e(0x200)];_0x55820e&&this[_0x30501e(0x1d1)](_0x55820e),_0x4b076c[_0x30501e(0x225)](),this[_0x30501e(0x208)](_0x3156b,_0x5db99a);}[_0x389fab(0x215)](){const _0x39b283=_0x389fab;this[_0x39b283(0x1bc)]=this[_0x39b283(0x22e)](),this[_0x39b283(0x1c1)]=this[_0x39b283(0x1cf)](),this[_0x39b283(0x1bc)][_0x39b283(0x220)](),this[_0x39b283(0x23d)][_0x39b283(0x206)](this[_0x39b283(0x1bc)][_0x39b283(0x1f9)]),this[_0x39b283(0x1bc)]['on'](_0x39b283(0x21d),()=>{const _0x3a6d96=_0x39b283;this[_0x3a6d96(0x1e8)]();}),_0x232eaf({'emitter':this[_0x39b283(0x1c1)],'contextElements':[this[_0x39b283(0x1c1)][_0x39b283(0x1f9)],this[_0x39b283(0x1bc)][_0x39b283(0x1f9)]],'callback':()=>this[_0x39b283(0x224)](),'activator':()=>this[_0x39b283(0x1bc)][_0x39b283(0x1ed)]});}[_0x389fab(0x22e)](){const _0x1515dc=_0x389fab,_0x2b2b4a=new _0x4d3bf4(this[_0x1515dc(0x1be)]);_0x2b2b4a[_0x1515dc(0x1d7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x45866d=[this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x226)]];return this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x21a)]&&_0x45866d[_0x1515dc(0x1da)](this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x21a)]),_0x2b2b4a[_0x1515dc(0x229)]({'attributes':{'class':_0x45866d}}),_0x2b2b4a;}[_0x389fab(0x1cf)](){const _0x44f605=_0x389fab,_0x579b1f=new _0x591ebd(this[_0x44f605(0x1be)]);return _0x579b1f[_0x44f605(0x229)]({'attributes':{'class':this[_0x44f605(0x1f4)][_0x44f605(0x214)][_0x44f605(0x23c)]}}),this[_0x44f605(0x210)][_0x44f605(0x1fd)](_0x579b1f),_0x579b1f;}[_0x389fab(0x241)](){const _0x2435c3=_0x389fab;if(this[_0x2435c3(0x1c1)]&&(this[_0x2435c3(0x1c1)][_0x2435c3(0x1e2)][_0x2435c3(0x236)](),this[_0x2435c3(0x1fe)][_0x2435c3(0x23f)]>0x0)){this[_0x2435c3(0x1fe)][_0x2435c3(0x218)](_0xc5e78a=>{const _0x58b486=_0x2435c3;_0xc5e78a[_0x58b486(0x1d9)]();});const _0xf09477=new _0x2acbeb(this[_0x2435c3(0x1be)]);_0xf09477[_0x2435c3(0x1b6)]({'tag':_0x2435c3(0x1dc),'attributes':{'class':this[_0x2435c3(0x1f4)][_0x2435c3(0x214)][_0x2435c3(0x248)]},'children':this[_0x2435c3(0x1fe)]}),this[_0x2435c3(0x1c1)][_0x2435c3(0x1e2)][_0x2435c3(0x1fd)](_0xf09477);}}[_0x389fab(0x1e8)](){const _0x337072=_0x389fab;this[_0x337072(0x1bc)][_0x337072(0x1ed)]?this[_0x337072(0x224)]():this[_0x337072(0x1e4)]();}[_0x389fab(0x246)](){const _0x20e237=_0x389fab,_0x49d7c1=this[_0x20e237(0x1fe)][_0x20e237(0x23f)]>0x0;this[_0x20e237(0x1bc)]?.[_0x20e237(0x1f9)]&&(this[_0x20e237(0x1bc)][_0x20e237(0x1f9)][_0x20e237(0x230)][_0x20e237(0x202)]=_0x49d7c1?'':_0x20e237(0x1f5));}[_0x389fab(0x1f3)](){const _0x2deb09=_0x389fab;this[_0x2deb09(0x1bc)]?.[_0x2deb09(0x1ed)]&&this[_0x2deb09(0x1c1)]?.[_0x2deb09(0x1dd)]&&this[_0x2deb09(0x1bc)][_0x2deb09(0x1f9)]&&this[_0x2deb09(0x1c1)][_0x2deb09(0x1ec)]({'target':this[_0x2deb09(0x1bc)][_0x2deb09(0x1f9)],'limiter':document[_0x2deb09(0x1bb)](_0x2deb09(0x1f0))});}[_0x389fab(0x228)](_0xc74061){const _0x12bf2e=_0x389fab,_0x55bf63=this[_0x12bf2e(0x23d)]?.[_0x12bf2e(0x21b)][_0x12bf2e(0x213)]()||_0x12bf2e(0x1dc),_0x3ece63=this[_0x12bf2e(0x23d)]?.[_0x12bf2e(0x1b9)];if(_0x3ece63){const _0x51a6a3=_0x3ece63[0x0]||'',_0x77dac1=_0xc74061[_0x12bf2e(0x1bb)]('.'+_0x51a6a3),_0x51c8b3=_0xc74061[_0x12bf2e(0x1bb)](_0x55bf63);return _0x77dac1||_0x51c8b3||_0xc74061;}return _0xc74061[_0x12bf2e(0x1bb)](_0x55bf63)||_0xc74061;}[_0x389fab(0x22f)](){const _0x2bb945=_0x389fab,_0x5dec18=this[_0x2bb945(0x1df)]?.[_0x2bb945(0x1f9)]||this[_0x2bb945(0x23d)];if(!_0x5dec18)return dn;const _0x5f388b=window[_0x2bb945(0x22b)](_0x5dec18)[_0x2bb945(0x244)];if(_0x2bb945(0x233)===_0x5f388b||_0x2bb945(0x1c4)===_0x5f388b||!_0x5f388b){const _0x38d509=_0x5dec18[_0x2bb945(0x217)];if(_0x38d509){const _0x4939f6=window[_0x2bb945(0x22b)](_0x38d509);return _0x2bb945(0x233)!==_0x4939f6[_0x2bb945(0x244)]?_0x4939f6[_0x2bb945(0x244)]:dn;}return dn;}return _0x5f388b;}[_0x389fab(0x22c)](_0x48354d,_0x455884){const _0xda83eb=_0x389fab;this[_0xda83eb(0x1f4)][_0xda83eb(0x214)][_0xda83eb(0x20f)]&&_0x48354d[_0xda83eb(0x1b9)][_0xda83eb(0x1fd)](this[_0xda83eb(0x1f4)][_0xda83eb(0x214)][_0xda83eb(0x20f)]),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x244)]=_0x455884,_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1e0)]=_0xda83eb(0x1c6),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x237)]=_0xda83eb(0x242),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x240)]=_0xda83eb(0x242),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x238)]='0',_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x245)]=_0xda83eb(0x1f5),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1fc)]='-1',_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1e9)]=_0xda83eb(0x22a),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x202)]=_0xda83eb(0x243),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1eb)]=_0xda83eb(0x1c9);}[_0x389fab(0x1d1)](_0x4de33c){const _0x19c095=_0x389fab;_0x4de33c[_0x19c095(0x218)](({element:_0x5c82c2,originalDisplay:_0x524f7e,originalVisibility:_0x312e8b})=>{const _0x1ba168=_0x19c095;_0x5c82c2[_0x1ba168(0x230)][_0x1ba168(0x202)]=_0x524f7e,_0x5c82c2[_0x1ba168(0x230)][_0x1ba168(0x1e9)]=_0x312e8b;});}[_0x389fab(0x1f7)](_0x5b5611){const _0x165901=_0x389fab,_0x1df46a=[];let _0x3cb3a3=_0x5b5611;for(;_0x3cb3a3&&_0x3cb3a3!==document[_0x165901(0x221)];){const _0x23a952=window[_0x165901(0x22b)](_0x3cb3a3);_0x165901(0x1f5)!==_0x23a952[_0x165901(0x202)]&&_0x165901(0x1db)!==_0x23a952[_0x165901(0x1e9)]||(_0x1df46a[_0x165901(0x1da)]({'element':_0x3cb3a3,'originalDisplay':_0x3cb3a3[_0x165901(0x230)][_0x165901(0x202)],'originalVisibility':_0x3cb3a3[_0x165901(0x230)][_0x165901(0x1e9)]}),_0x3cb3a3[_0x165901(0x230)][_0x165901(0x202)]=_0x165901(0x1ff),_0x3cb3a3[_0x165901(0x230)][_0x165901(0x1e9)]=_0x165901(0x247)),_0x3cb3a3=_0x3cb3a3[_0x165901(0x217)];}return _0x1df46a;}[_0x389fab(0x207)](){const _0x2c8fcb=_0x389fab;let _0x66df8,_0x1e1b38;return this[_0x2c8fcb(0x1df)]?.[_0x2c8fcb(0x1f9)]?(_0x66df8=this[_0x2c8fcb(0x1df)][_0x2c8fcb(0x1f9)][_0x2c8fcb(0x23b)](!0x0),_0x1e1b38=this[_0x2c8fcb(0x228)](_0x66df8)):(_0x66df8=document[_0x2c8fcb(0x1f1)](_0x2c8fcb(0x1dc)),_0x1e1b38=_0x66df8),{'calculationContainer':_0x66df8,'targetContainer':_0x1e1b38};}[_0x389fab(0x1e7)](){const _0x4acba4=_0x389fab,{calculationContainer:_0x22815f,targetContainer:_0x43659b}=this[_0x4acba4(0x207)](),_0xe78a27=this[_0x4acba4(0x22f)]();this[_0x4acba4(0x22c)](_0x22815f,_0xe78a27);const _0x2f682d=this[_0x4acba4(0x1df)]?.[_0x4acba4(0x1f9)]||this[_0x4acba4(0x23d)],_0x482b9c=_0x2f682d?.[_0x4acba4(0x217)];_0x482b9c?_0x482b9c[_0x4acba4(0x206)](_0x22815f):document[_0x4acba4(0x221)][_0x4acba4(0x206)](_0x22815f),_0x22815f[_0x4acba4(0x1cb)]=_0x43659b;const _0x589b96=this[_0x4acba4(0x1f7)](_0x482b9c||null);return _0x22815f[_0x4acba4(0x1d8)],_0x22815f[_0x4acba4(0x200)]=_0x589b96,_0x22815f;}[_0x389fab(0x23a)](_0x4a1103,_0x44de4d){const _0x2a74a6=_0x389fab,_0x390748=_0x4a1103[_0x2a74a6(0x1cb)]||_0x4a1103,_0x4f6c55=[],{rowCount:_0x38e0d1}=this[_0x2a74a6(0x1c2)](_0x390748,_0x44de4d);if(_0x38e0d1<=this[_0x2a74a6(0x1f4)][_0x2a74a6(0x1ee)])return _0x4f6c55;const _0x47718b=_0x44de4d[_0x2a74a6(0x1fa)]();for(;_0x47718b[_0x2a74a6(0x23f)]>0x0;){if(this[_0x2a74a6(0x1f6)](_0x4a1103,_0x390748,_0x47718b)){const _0x3c6708=_0x44de4d[_0x2a74a6(0x20e)](_0x1f2f29=>!_0x47718b[_0x2a74a6(0x1de)](_0x1f2f29));_0x4f6c55[_0x2a74a6(0x1da)](..._0x3c6708);break;}if(!_0x47718b[_0x2a74a6(0x231)]())break;}return _0x4f6c55;}[_0x389fab(0x1c2)](_0x4bb148,_0x27f039){const _0x47ee77=_0x389fab;_0x4bb148[_0x47ee77(0x209)]='',_0x27f039[_0x47ee77(0x218)](_0x4de4e7=>{const _0x32122f=_0x47ee77;if(_0x4de4e7[_0x32122f(0x1f9)]){const _0x2f43f3=_0x4de4e7[_0x32122f(0x1f9)][_0x32122f(0x23b)](!0x0);_0x4bb148[_0x32122f(0x206)](_0x2f43f3);}}),_0x4bb148[_0x47ee77(0x1d8)];const _0x59c645=_0x4bb148[_0x47ee77(0x22d)],_0x5eae0c=[];return Array[_0x47ee77(0x201)](_0x59c645)[_0x47ee77(0x218)](_0x4ed46a=>{const _0x28e691=_0x47ee77,_0x4dbe98=_0x4ed46a[_0x28e691(0x1bf)]()[_0x28e691(0x237)];_0x5eae0c[_0x28e691(0x1d6)](_0x34aeee=>Math[_0x28e691(0x1ca)](_0x34aeee-_0x4dbe98)<this[_0x28e691(0x1f4)][_0x28e691(0x232)])||_0x5eae0c[_0x28e691(0x1da)](_0x4dbe98);}),{'rowCount':_0x5eae0c[_0x47ee77(0x23f)]};}[_0x389fab(0x1bd)](){const _0x4d9e5f=_0x389fab,_0x370f82=document[_0x4d9e5f(0x1f1)](_0x4d9e5f(0x205));return _0x370f82[_0x4d9e5f(0x20c)]=this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x226)],this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x21a)]&&_0x370f82[_0x4d9e5f(0x1b9)][_0x4d9e5f(0x1fd)](this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x21a)]),_0x370f82[_0x4d9e5f(0x20d)]=_0x4d9e5f(0x20a),_0x370f82;}[_0x389fab(0x1f6)](_0x19f255,_0x295a35,_0x43db48){const _0x338d01=_0x389fab;this[_0x338d01(0x1c2)](_0x295a35,_0x43db48);const _0x4a6bd8=this[_0x338d01(0x1bd)]();_0x19f255[_0x338d01(0x206)](_0x4a6bd8),_0x19f255[_0x338d01(0x1d8)];const _0x8808d5=[..._0x295a35[_0x338d01(0x22d)],_0x4a6bd8],_0x2abd5e=[];_0x8808d5[_0x338d01(0x218)](_0xf3968a=>{const _0x2b1a85=_0x338d01,_0x56b696=_0xf3968a[_0x2b1a85(0x1bf)]()[_0x2b1a85(0x237)];_0x2abd5e[_0x2b1a85(0x1d6)](_0x47d0b1=>Math[_0x2b1a85(0x1ca)](_0x47d0b1-_0x56b696)<this[_0x2b1a85(0x1f4)][_0x2b1a85(0x232)])||_0x2abd5e[_0x2b1a85(0x1da)](_0x56b696);});const _0x579211=_0x2abd5e[_0x338d01(0x23f)];return _0x4a6bd8[_0x338d01(0x225)](),_0x579211<=this[_0x338d01(0x1f4)][_0x338d01(0x1ee)];}[_0x389fab(0x21f)](_0x5881ba,_0x62dafa){const _0x301f05=_0x389fab;this[_0x301f05(0x223)][_0x301f05(0x236)](),this[_0x301f05(0x1fe)][_0x301f05(0x236)](),_0x5881ba[_0x301f05(0x218)](_0x323c4f=>{const _0x2582e4=_0x301f05;_0x62dafa[_0x2582e4(0x1de)](_0x323c4f)?this[_0x2582e4(0x1fe)][_0x2582e4(0x1fd)](_0x323c4f):this[_0x2582e4(0x223)][_0x2582e4(0x1fd)](_0x323c4f);});}[_0x389fab(0x227)](_0x547dd1){const _0xd54837=_0x389fab;if(_0x547dd1>0x0&&!this[_0xd54837(0x1bc)]&&this[_0xd54837(0x215)](),_0x547dd1>0x0&&this[_0xd54837(0x1bc)]){const _0x1d4de5=''+this[_0xd54837(0x1f4)][_0xd54837(0x1cd)]+(_0x547dd1<0x63?_0x547dd1:'99');this[_0xd54837(0x1bc)][_0xd54837(0x1b8)]=_0x1d4de5;}this[_0xd54837(0x241)](),this[_0xd54837(0x246)](),this[_0xd54837(0x1f3)]();}[_0x389fab(0x208)](_0x2a54b5,_0x591c9c){const _0xf7f37b=_0x389fab;this[_0xf7f37b(0x21f)](_0x2a54b5,_0x591c9c),this[_0xf7f37b(0x227)](_0x591c9c[_0xf7f37b(0x23f)]);}[_0x389fab(0x21c)](){const _0x232572=_0x389fab;this[_0x232572(0x23d)]&&_0x232572(0x1d5)!=typeof IntersectionObserver&&(this[_0x232572(0x1d3)]=new IntersectionObserver(_0x2fa50f=>{const _0xcd617=_0x232572;_0x2fa50f[0x0][_0xcd617(0x234)]&&this[_0xcd617(0x212)]&&requestAnimationFrame(()=>{const _0x540150=_0xcd617;this[_0x540150(0x1c0)]();});},{'threshold':0.01,'rootMargin':_0x232572(0x1e1)}),this[_0x232572(0x1d3)][_0x232572(0x1d0)](this[_0x232572(0x23d)]));}[_0x389fab(0x203)](){const _0xe3d404=_0x389fab;if(!this[_0xe3d404(0x23d)])return!0x1;if(!this[_0xe3d404(0x23d)][_0xe3d404(0x1f8)])return!0x1;const _0x3838f3=this[_0xe3d404(0x23d)][_0xe3d404(0x1bf)]();if(0x0===_0x3838f3[_0xe3d404(0x244)]||0x0===_0x3838f3[_0xe3d404(0x1e5)])return!0x1;const _0xb96b07=window[_0xe3d404(0x1c8)]||document[_0xe3d404(0x239)][_0xe3d404(0x1ea)],_0x23e35e=window[_0xe3d404(0x1fb)]||document[_0xe3d404(0x239)][_0xe3d404(0x235)],_0x44a622=0xc8;return _0x3838f3[_0xe3d404(0x23e)]>=-0xc8&&_0x3838f3[_0xe3d404(0x237)]<=_0xb96b07+_0x44a622&&_0x3838f3[_0xe3d404(0x1f2)]>=-0xc8&&_0x3838f3[_0xe3d404(0x240)]<=_0x23e35e+_0x44a622;}}
|
|
23
|
+
const _0x405662=_0x1991;(function(_0x4e690f,_0x22fa2e){const _0x3f630b=_0x1991,_0x372d2f=_0x4e690f();while(!![]){try{const _0x2117ed=-parseInt(_0x3f630b(0x115))/0x1*(-parseInt(_0x3f630b(0x106))/0x2)+-parseInt(_0x3f630b(0x152))/0x3+parseInt(_0x3f630b(0x170))/0x4+parseInt(_0x3f630b(0x126))/0x5+-parseInt(_0x3f630b(0x16d))/0x6+parseInt(_0x3f630b(0x11c))/0x7*(-parseInt(_0x3f630b(0x10a))/0x8)+parseInt(_0x3f630b(0x110))/0x9;if(_0x2117ed===_0x22fa2e)break;else _0x372d2f['push'](_0x372d2f['shift']());}catch(_0x5b077f){_0x372d2f['push'](_0x372d2f['shift']());}}}(_0x3974,0x3463c));function _0x3974(){const _0x1a9ef2=['showMoreLabelPrefix','_locale','push','setContainerElement','block\x20!important','toLowerCase','observe','_overflowChips','showBalloonPanel','_checkAndHandleOverflow','_createMockButton','_containerElement','isConnected','_repinBalloonPanel','from','pop','2tzTfne','isIntersecting','_updateBalloonContent','extendTemplate','16VqItnC','filter','showMoreBalloon','_handleShowMoreButtonClick','.ck-ai-chat','_showMoreButtonView','3007611TdToWb','_parentView','_intersectionObserver','_config','clear','176647URxQLd','border-box','button','opacity','visible\x20!important','pointerEvents','-9999px','574098lFXVJo','_bodyCollection','render','set','showMoreButton','_updateShowMoreButtonVisibility','_createShowMoreBalloonPanelView','_pendingCalculation','_createShowMoreButtonView','execute','492190SJgcql','label','_calculateContainerWidth','_targetContainer','hideBalloonPanel','auto','_testButtonFit','className','50px','controlsButton','querySelector','_applyOverflowResults','getBoundingClientRect','_restoreAncestorVisibility','_createContainerElements','zIndex','calculationContainer','showMoreButtonView','isOn','overflowContainer','innerHTML','children','tagName','_ancestorsToRestore','length','hidden','overflowChips','offsetWidth','textContent','destroy','div','style','_visibleChips','boxSizing','body','ck-calculation-container','none','_applyCalculationStyles','rowDetectionTolerance','show','disableAnimationOnEnter','setTemplate','0px','innerHeight','2826GtATvS','innerWidth','createElement','remove','clientHeight','_calculateOverflowInContainer','maxVisibleRows','_showMoreBalloonPanelView','appendChild','parentElement','right','width','classList','abs','height','isVisible','clientWidth','content','_makeAncestorsVisible','_distributeChips','bottom','_isContainerVisible','_createShowMoreButton','element','undefined','forEach','_findTargetContainer','1511880XFrCSC','_createCalculationContainer','some','89096KWdPaA','_renderChipsAndCountRows','display','disconnect','visible','cloneNode','top','position','absolute','getComputedStyle','+\x201','slice','hide','includes','add','reorganizeChips','pin','documentElement','left','block','300px','cssClasses','_setupVisibilityObserver','visibility','_updateOverflowUI'];_0x3974=function(){return _0x1a9ef2;};return _0x3974();}import{View as _0x4df433,BalloonPanelView as _0x14d302,ButtonView as _0x181df7,clickOutsideHandler as _0x643fc8}from'ckeditor5/src/ui.js';import{Collection as _0x27e6d4}from'ckeditor5/src/utils.js';function _0x1991(_0x51331d,_0x3f822b){const _0x39747f=_0x3974();return _0x1991=function(_0x1991b2,_0x40d2b7){_0x1991b2=_0x1991b2-0xf0;let _0x413880=_0x39747f[_0x1991b2];return _0x413880;},_0x1991(_0x51331d,_0x3f822b);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x405662(0xf1);export class AIChatChipsOverflowManager{[_0x405662(0xf7)];[_0x405662(0x113)];[_0x405662(0x146)];[_0x405662(0xfd)];[_0x405662(0x10f)]=null;[_0x405662(0x159)]=null;[_0x405662(0x101)]=null;[_0x405662(0x11d)];[_0x405662(0x111)]=null;[_0x405662(0x112)]=null;[_0x405662(0x123)]=!0x1;constructor(_0x1e7840,_0x1c43cf,_0x41e0ea,_0x9e0a4b,_0x1972c1){const _0x542eaf=_0x405662;this[_0x542eaf(0xf7)]=_0x1e7840,this[_0x542eaf(0x146)]=_0x1c43cf,this[_0x542eaf(0x113)]={...hn,..._0x41e0ea,'cssClasses':{'controlsButton':'','calculationContainer':_0x542eaf(0x149),..._0x41e0ea[_0x542eaf(0xf2)]}},this[_0x542eaf(0xfd)]=new _0x27e6d4(),this[_0x542eaf(0x11d)]=_0x9e0a4b,this[_0x542eaf(0x111)]=_0x1972c1||null;}[_0x405662(0xf9)](_0x15b9ef){const _0x4026a9=_0x405662;this[_0x4026a9(0x112)]&&(this[_0x4026a9(0x112)][_0x4026a9(0x173)](),this[_0x4026a9(0x112)]=null),this[_0x4026a9(0x101)]=_0x15b9ef,this[_0x4026a9(0xf3)]();}get[_0x405662(0x137)](){const _0x1eacf9=_0x405662;return this[_0x1eacf9(0x10f)];}get[_0x405662(0x140)](){const _0x580f92=_0x405662;return this[_0x580f92(0xfd)];}[_0x405662(0x17f)](){requestAnimationFrame(()=>{const _0x2da94f=_0x1991;this[_0x2da94f(0xff)]();});}[_0x405662(0xfe)](){const _0x4ba81a=_0x405662;this[_0x4ba81a(0x10f)]&&this[_0x4ba81a(0x159)]&&(this[_0x4ba81a(0x108)](),this[_0x4ba81a(0x10f)][_0x4ba81a(0x138)]=!0x0,this[_0x4ba81a(0x159)][_0x4ba81a(0x14d)](),this[_0x4ba81a(0x159)][_0x4ba81a(0x180)]({'target':this[_0x4ba81a(0x10f)][_0x4ba81a(0x169)],'limiter':document[_0x4ba81a(0x130)](_0x4ba81a(0x10e))}));}[_0x405662(0x12a)](){const _0xcea030=_0x405662;this[_0xcea030(0x10f)]&&this[_0xcea030(0x159)]&&(this[_0xcea030(0x10f)][_0xcea030(0x138)]=!0x1,this[_0xcea030(0x159)][_0xcea030(0x17c)]());}[_0x405662(0x114)](){const _0x55b8f0=_0x405662;this[_0x55b8f0(0xfd)][_0x55b8f0(0x114)](),this[_0x55b8f0(0x12a)](),this[_0x55b8f0(0x121)](),this[_0x55b8f0(0x10f)]&&(this[_0x55b8f0(0x10f)][_0x55b8f0(0x127)]=''),this[_0x55b8f0(0x159)]&&this[_0x55b8f0(0x159)][_0x55b8f0(0x163)][_0x55b8f0(0x114)]();}[_0x405662(0x143)](){const _0x2aed93=_0x405662;this[_0x2aed93(0x112)]&&(this[_0x2aed93(0x112)][_0x2aed93(0x173)](),this[_0x2aed93(0x112)]=null),this[_0x2aed93(0x10f)]&&(this[_0x2aed93(0x10f)][_0x2aed93(0x143)](),this[_0x2aed93(0x10f)]=null),this[_0x2aed93(0x159)]&&(this[_0x2aed93(0x159)][_0x2aed93(0x143)](),this[_0x2aed93(0x159)]=null);}[_0x405662(0xff)](){const _0x2a6b9e=_0x405662;if(!this[_0x2a6b9e(0x101)])return;if(!this[_0x2a6b9e(0x167)]())return void(this[_0x2a6b9e(0x123)]=!0x0);this[_0x2a6b9e(0x123)]=!0x1;const _0x33b479=[...this[_0x2a6b9e(0x146)],...this[_0x2a6b9e(0xfd)]],_0x3b8318=this[_0x2a6b9e(0x16e)](),_0x215695=this[_0x2a6b9e(0x157)](_0x3b8318,_0x33b479),_0xa68e46=_0x3b8318[_0x2a6b9e(0x13d)];_0xa68e46&&this[_0x2a6b9e(0x133)](_0xa68e46),_0x3b8318[_0x2a6b9e(0x155)](),this[_0x2a6b9e(0x131)](_0x33b479,_0x215695);}[_0x405662(0x168)](){const _0x17425f=_0x405662;this[_0x17425f(0x10f)]=this[_0x17425f(0x124)](),this[_0x17425f(0x159)]=this[_0x17425f(0x122)](),this[_0x17425f(0x10f)][_0x17425f(0x11e)](),this[_0x17425f(0x101)][_0x17425f(0x15a)](this[_0x17425f(0x10f)][_0x17425f(0x169)]),this[_0x17425f(0x10f)]['on'](_0x17425f(0x125),()=>{const _0x2e909d=_0x17425f;this[_0x2e909d(0x10d)]();}),_0x643fc8({'emitter':this[_0x17425f(0x159)],'contextElements':[this[_0x17425f(0x159)][_0x17425f(0x169)],this[_0x17425f(0x10f)][_0x17425f(0x169)]],'callback':()=>this[_0x17425f(0x12a)](),'activator':()=>this[_0x17425f(0x10f)][_0x17425f(0x138)]});}[_0x405662(0x124)](){const _0x87b0a9=_0x405662,_0x57cabb=new _0x181df7(this[_0x87b0a9(0xf7)]);_0x57cabb[_0x87b0a9(0x11f)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5978f0=[this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x120)]];return this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x12f)]&&_0x5978f0[_0x87b0a9(0xf8)](this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x12f)]),_0x57cabb[_0x87b0a9(0x109)]({'attributes':{'class':_0x5978f0}}),_0x57cabb;}[_0x405662(0x122)](){const _0x31e6f5=_0x405662,_0x370fc7=new _0x14d302(this[_0x31e6f5(0xf7)]);return _0x370fc7[_0x31e6f5(0x109)]({'attributes':{'class':this[_0x31e6f5(0x113)][_0x31e6f5(0xf2)][_0x31e6f5(0x10c)]}}),this[_0x31e6f5(0x11d)][_0x31e6f5(0x17e)](_0x370fc7),_0x370fc7;}[_0x405662(0x108)](){const _0x47769c=_0x405662;if(this[_0x47769c(0x159)]&&(this[_0x47769c(0x159)][_0x47769c(0x163)][_0x47769c(0x114)](),this[_0x47769c(0xfd)][_0x47769c(0x13e)]>0x0)){this[_0x47769c(0xfd)][_0x47769c(0x16b)](_0x46950a=>{const _0x4c2aea=_0x47769c;_0x46950a[_0x4c2aea(0x14e)]();});const _0x5173d6=new _0x4df433(this[_0x47769c(0xf7)]);_0x5173d6[_0x47769c(0x14f)]({'tag':_0x47769c(0x144),'attributes':{'class':this[_0x47769c(0x113)][_0x47769c(0xf2)][_0x47769c(0x139)]},'children':this[_0x47769c(0xfd)]}),this[_0x47769c(0x159)][_0x47769c(0x163)][_0x47769c(0x17e)](_0x5173d6);}}[_0x405662(0x10d)](){const _0x2d021e=_0x405662;this[_0x2d021e(0x10f)][_0x2d021e(0x138)]?this[_0x2d021e(0x12a)]():this[_0x2d021e(0xfe)]();}[_0x405662(0x121)](){const _0x2dfacb=_0x405662,_0x59849a=this[_0x2dfacb(0xfd)][_0x2dfacb(0x13e)]>0x0;this[_0x2dfacb(0x10f)]?.[_0x2dfacb(0x169)]&&(this[_0x2dfacb(0x10f)][_0x2dfacb(0x169)][_0x2dfacb(0x145)][_0x2dfacb(0x172)]=_0x59849a?'':_0x2dfacb(0x14a));}[_0x405662(0x103)](){const _0x55071e=_0x405662;this[_0x55071e(0x10f)]?.[_0x55071e(0x138)]&&this[_0x55071e(0x159)]?.[_0x55071e(0x161)]&&this[_0x55071e(0x10f)][_0x55071e(0x169)]&&this[_0x55071e(0x159)][_0x55071e(0x180)]({'target':this[_0x55071e(0x10f)][_0x55071e(0x169)],'limiter':document[_0x55071e(0x130)](_0x55071e(0x10e))});}[_0x405662(0x16c)](_0x44be5){const _0x1f29c5=_0x405662,_0x2dd183=this[_0x1f29c5(0x101)]?.[_0x1f29c5(0x13c)][_0x1f29c5(0xfb)]()||_0x1f29c5(0x144),_0x2f066a=this[_0x1f29c5(0x101)]?.[_0x1f29c5(0x15e)];if(_0x2f066a){const _0x5801a3=_0x2f066a[0x0]||'',_0x2c5a75=_0x44be5[_0x1f29c5(0x130)]('.'+_0x5801a3),_0x356860=_0x44be5[_0x1f29c5(0x130)](_0x2dd183);return _0x2c5a75||_0x356860||_0x44be5;}return _0x44be5[_0x1f29c5(0x130)](_0x2dd183)||_0x44be5;}[_0x405662(0x128)](){const _0x479a1d=_0x405662,_0x23933c=this[_0x479a1d(0x111)]?.[_0x479a1d(0x169)]||this[_0x479a1d(0x101)];if(!_0x23933c)return an;const _0x42ab6a=window[_0x479a1d(0x179)](_0x23933c)[_0x479a1d(0x15d)];if(_0x479a1d(0x12b)===_0x42ab6a||_0x479a1d(0x150)===_0x42ab6a||!_0x42ab6a){const _0x2d69f2=_0x23933c[_0x479a1d(0x15b)];if(_0x2d69f2){const _0x3a1f4c=window[_0x479a1d(0x179)](_0x2d69f2);return _0x479a1d(0x12b)!==_0x3a1f4c[_0x479a1d(0x15d)]?_0x3a1f4c[_0x479a1d(0x15d)]:an;}return an;}return _0x42ab6a;}[_0x405662(0x14b)](_0x2fe2d0,_0x1e2381){const _0x2f7472=_0x405662;this[_0x2f7472(0x113)][_0x2f7472(0xf2)][_0x2f7472(0x136)]&&_0x2fe2d0[_0x2f7472(0x15e)][_0x2f7472(0x17e)](this[_0x2f7472(0x113)][_0x2f7472(0xf2)][_0x2f7472(0x136)]),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x15d)]=_0x1e2381,_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x177)]=_0x2f7472(0x178),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x176)]=_0x2f7472(0x11b),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x182)]=_0x2f7472(0x11b),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x118)]='0',_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x11a)]=_0x2f7472(0x14a),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x135)]='-1',_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0xf4)]=_0x2f7472(0x119),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x172)]=_0x2f7472(0xfa),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x147)]=_0x2f7472(0x116);}[_0x405662(0x133)](_0x1e141a){const _0x5c160f=_0x405662;_0x1e141a[_0x5c160f(0x16b)](({element:_0x24e8d9,originalDisplay:_0x13faf7,originalVisibility:_0x2acdb8})=>{const _0x393f97=_0x5c160f;_0x24e8d9[_0x393f97(0x145)][_0x393f97(0x172)]=_0x13faf7,_0x24e8d9[_0x393f97(0x145)][_0x393f97(0xf4)]=_0x2acdb8;});}[_0x405662(0x164)](_0x788a67){const _0x279584=_0x405662,_0x1d0137=[];let _0x73f977=_0x788a67;for(;_0x73f977&&_0x73f977!==document[_0x279584(0x148)];){const _0x2759d6=window[_0x279584(0x179)](_0x73f977);_0x279584(0x14a)!==_0x2759d6[_0x279584(0x172)]&&_0x279584(0x13f)!==_0x2759d6[_0x279584(0xf4)]||(_0x1d0137[_0x279584(0xf8)]({'element':_0x73f977,'originalDisplay':_0x73f977[_0x279584(0x145)][_0x279584(0x172)],'originalVisibility':_0x73f977[_0x279584(0x145)][_0x279584(0xf4)]}),_0x73f977[_0x279584(0x145)][_0x279584(0x172)]=_0x279584(0xf0),_0x73f977[_0x279584(0x145)][_0x279584(0xf4)]=_0x279584(0x174)),_0x73f977=_0x73f977[_0x279584(0x15b)];}return _0x1d0137;}[_0x405662(0x134)](){const _0x5979bc=_0x405662;let _0x3a5578,_0x4d22ae;return this[_0x5979bc(0x111)]?.[_0x5979bc(0x169)]?(_0x3a5578=this[_0x5979bc(0x111)][_0x5979bc(0x169)][_0x5979bc(0x175)](!0x0),_0x4d22ae=this[_0x5979bc(0x16c)](_0x3a5578)):(_0x3a5578=document[_0x5979bc(0x154)](_0x5979bc(0x144)),_0x4d22ae=_0x3a5578),{'calculationContainer':_0x3a5578,'targetContainer':_0x4d22ae};}[_0x405662(0x16e)](){const _0x4edf05=_0x405662,{calculationContainer:_0xd4c0a8,targetContainer:_0x1abe31}=this[_0x4edf05(0x134)](),_0x5d4651=this[_0x4edf05(0x128)]();this[_0x4edf05(0x14b)](_0xd4c0a8,_0x5d4651);const _0x2a2a3e=this[_0x4edf05(0x111)]?.[_0x4edf05(0x169)]||this[_0x4edf05(0x101)],_0x47d099=_0x2a2a3e?.[_0x4edf05(0x15b)];_0x47d099?_0x47d099[_0x4edf05(0x15a)](_0xd4c0a8):document[_0x4edf05(0x148)][_0x4edf05(0x15a)](_0xd4c0a8),_0xd4c0a8[_0x4edf05(0x129)]=_0x1abe31;const _0x59a112=this[_0x4edf05(0x164)](_0x47d099||null);return _0xd4c0a8[_0x4edf05(0x141)],_0xd4c0a8[_0x4edf05(0x13d)]=_0x59a112,_0xd4c0a8;}[_0x405662(0x157)](_0x4dca6f,_0x148fed){const _0xbc2eb0=_0x405662,_0x3d72ac=_0x4dca6f[_0xbc2eb0(0x129)]||_0x4dca6f,_0x3f0d6b=[],{rowCount:_0xb1794d}=this[_0xbc2eb0(0x171)](_0x3d72ac,_0x148fed);if(_0xb1794d<=this[_0xbc2eb0(0x113)][_0xbc2eb0(0x158)])return _0x3f0d6b;const _0x2377dd=_0x148fed[_0xbc2eb0(0x17b)]();for(;_0x2377dd[_0xbc2eb0(0x13e)]>0x0;){if(this[_0xbc2eb0(0x12c)](_0x4dca6f,_0x3d72ac,_0x2377dd)){const _0x4c0561=_0x148fed[_0xbc2eb0(0x10b)](_0x47e756=>!_0x2377dd[_0xbc2eb0(0x17d)](_0x47e756));_0x3f0d6b[_0xbc2eb0(0xf8)](..._0x4c0561);break;}if(!_0x2377dd[_0xbc2eb0(0x105)]())break;}return _0x3f0d6b;}[_0x405662(0x171)](_0x561fb2,_0x990b17){const _0x4a3b1e=_0x405662;_0x561fb2[_0x4a3b1e(0x13a)]='',_0x990b17[_0x4a3b1e(0x16b)](_0x386a16=>{const _0x551af6=_0x4a3b1e;if(_0x386a16[_0x551af6(0x169)]){const _0xc6e7cc=_0x386a16[_0x551af6(0x169)][_0x551af6(0x175)](!0x0);_0x561fb2[_0x551af6(0x15a)](_0xc6e7cc);}}),_0x561fb2[_0x4a3b1e(0x141)];const _0x36a7de=_0x561fb2[_0x4a3b1e(0x13b)],_0x1e99e8=[];return Array[_0x4a3b1e(0x104)](_0x36a7de)[_0x4a3b1e(0x16b)](_0x33d919=>{const _0x51b0e7=_0x4a3b1e,_0x4fdab0=_0x33d919[_0x51b0e7(0x132)]()[_0x51b0e7(0x176)];_0x1e99e8[_0x51b0e7(0x16f)](_0x1f9e05=>Math[_0x51b0e7(0x15f)](_0x1f9e05-_0x4fdab0)<this[_0x51b0e7(0x113)][_0x51b0e7(0x14c)])||_0x1e99e8[_0x51b0e7(0xf8)](_0x4fdab0);}),{'rowCount':_0x1e99e8[_0x4a3b1e(0x13e)]};}[_0x405662(0x100)](){const _0xa9cf08=_0x405662,_0x4c4c30=document[_0xa9cf08(0x154)](_0xa9cf08(0x117));return _0x4c4c30[_0xa9cf08(0x12d)]=this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x120)],this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x12f)]&&_0x4c4c30[_0xa9cf08(0x15e)][_0xa9cf08(0x17e)](this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x12f)]),_0x4c4c30[_0xa9cf08(0x142)]=_0xa9cf08(0x17a),_0x4c4c30;}[_0x405662(0x12c)](_0x4d5fec,_0xfec7ed,_0x21d145){const _0x51aeb0=_0x405662;this[_0x51aeb0(0x171)](_0xfec7ed,_0x21d145);const _0x5e9157=this[_0x51aeb0(0x100)]();_0x4d5fec[_0x51aeb0(0x15a)](_0x5e9157),_0x4d5fec[_0x51aeb0(0x141)];const _0xf5dcdf=[..._0xfec7ed[_0x51aeb0(0x13b)],_0x5e9157],_0x488b03=[];_0xf5dcdf[_0x51aeb0(0x16b)](_0x42772e=>{const _0x25c5d4=_0x51aeb0,_0xa27e96=_0x42772e[_0x25c5d4(0x132)]()[_0x25c5d4(0x176)];_0x488b03[_0x25c5d4(0x16f)](_0x5728fb=>Math[_0x25c5d4(0x15f)](_0x5728fb-_0xa27e96)<this[_0x25c5d4(0x113)][_0x25c5d4(0x14c)])||_0x488b03[_0x25c5d4(0xf8)](_0xa27e96);});const _0x4bb15b=_0x488b03[_0x51aeb0(0x13e)];return _0x5e9157[_0x51aeb0(0x155)](),_0x4bb15b<=this[_0x51aeb0(0x113)][_0x51aeb0(0x158)];}[_0x405662(0x165)](_0x122a73,_0x6dab35){const _0x2ae4a2=_0x405662;this[_0x2ae4a2(0x146)][_0x2ae4a2(0x114)](),this[_0x2ae4a2(0xfd)][_0x2ae4a2(0x114)](),_0x122a73[_0x2ae4a2(0x16b)](_0x4b0a0b=>{const _0x6a61bd=_0x2ae4a2;_0x6dab35[_0x6a61bd(0x17d)](_0x4b0a0b)?this[_0x6a61bd(0xfd)][_0x6a61bd(0x17e)](_0x4b0a0b):this[_0x6a61bd(0x146)][_0x6a61bd(0x17e)](_0x4b0a0b);});}[_0x405662(0xf5)](_0x3e627e){const _0x3243d5=_0x405662;if(_0x3e627e>0x0&&!this[_0x3243d5(0x10f)]&&this[_0x3243d5(0x168)](),_0x3e627e>0x0&&this[_0x3243d5(0x10f)]){const _0x15515e=''+this[_0x3243d5(0x113)][_0x3243d5(0xf6)]+(_0x3e627e<0x63?_0x3e627e:'99');this[_0x3243d5(0x10f)][_0x3243d5(0x127)]=_0x15515e;}this[_0x3243d5(0x108)](),this[_0x3243d5(0x121)](),this[_0x3243d5(0x103)]();}[_0x405662(0x131)](_0x29cb3e,_0x5232e0){const _0x801747=_0x405662;this[_0x801747(0x165)](_0x29cb3e,_0x5232e0),this[_0x801747(0xf5)](_0x5232e0[_0x801747(0x13e)]);}[_0x405662(0xf3)](){const _0x25ed76=_0x405662;this[_0x25ed76(0x101)]&&_0x25ed76(0x16a)!=typeof IntersectionObserver&&(this[_0x25ed76(0x112)]=new IntersectionObserver(_0x38a4bd=>{const _0x183520=_0x25ed76;_0x38a4bd[0x0][_0x183520(0x107)]&&this[_0x183520(0x123)]&&requestAnimationFrame(()=>{const _0x35a4e6=_0x183520;this[_0x35a4e6(0xff)]();});},{'threshold':0.01,'rootMargin':_0x25ed76(0x12e)}),this[_0x25ed76(0x112)][_0x25ed76(0xfc)](this[_0x25ed76(0x101)]));}[_0x405662(0x167)](){const _0x398f6d=_0x405662;if(!this[_0x398f6d(0x101)])return!0x1;if(!this[_0x398f6d(0x101)][_0x398f6d(0x102)])return!0x1;const _0xc4982d=this[_0x398f6d(0x101)][_0x398f6d(0x132)]();if(0x0===_0xc4982d[_0x398f6d(0x15d)]||0x0===_0xc4982d[_0x398f6d(0x160)])return!0x1;const _0xb44943=window[_0x398f6d(0x151)]||document[_0x398f6d(0x181)][_0x398f6d(0x156)],_0x588470=window[_0x398f6d(0x153)]||document[_0x398f6d(0x181)][_0x398f6d(0x162)],_0x4be3ab=0xc8;return _0xc4982d[_0x398f6d(0x166)]>=-0xc8&&_0xc4982d[_0x398f6d(0x176)]<=_0xb44943+_0x4be3ab&&_0xc4982d[_0x398f6d(0x15c)]>=-0xc8&&_0xc4982d[_0x398f6d(0x182)]<=_0x588470+_0x4be3ab;}}
|