@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.3
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/model/aichatmodels.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/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.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/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/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x111157=_0x2661;function _0x4489(){const _0x37357a=['set','items','108yAwVEJ','locale','ck-ai-button-secondary','465376sAgupV','10147357jBQjqj','66YCRABa','ck-ai-button-primary','ck-ai-balloon__toolbar','suggestButton','55WUXvvB','523485dtmfPa','isEnabled','_createButton','bind','add','applyButton','12OdxlZE','278720FxCHEi','extendTemplate','3903977TxaafI','isLoading','11032970XukijF','51494MOcxPi','AI_BALLOON_SUGGEST_BUTTON','AI_BALLOON_APPLY_BUTTON'];_0x4489=function(){return _0x37357a;};return _0x4489();}(function(_0x1114c2,_0x23e203){const _0x44878a=_0x2661,_0x12122f=_0x1114c2();while(!![]){try{const _0x3b739d=-parseInt(_0x44878a(0xeb))/0x1+-parseInt(_0x44878a(0xdc))/0x2*(parseInt(_0x44878a(0xe6))/0x3)+-parseInt(_0x44878a(0xe4))/0x4*(-parseInt(_0x44878a(0xea))/0x5)+parseInt(_0x44878a(0xf1))/0x6*(-parseInt(_0x44878a(0xd9))/0x7)+parseInt(_0x44878a(0xf2))/0x8*(-parseInt(_0x44878a(0xe1))/0x9)+parseInt(_0x44878a(0xdb))/0xa+parseInt(_0x44878a(0xe5))/0xb;if(_0x3b739d===_0x23e203)break;else _0x12122f['push'](_0x12122f['shift']());}catch(_0x200ade){_0x12122f['push'](_0x12122f['shift']());}}}(_0x4489,0xa68a3));function _0x2661(_0x5b43bd,_0x38d93b){const _0x448979=_0x4489();return _0x2661=function(_0x2661ca,_0x4d3c13){_0x2661ca=_0x2661ca-0xd9;let _0x51b27b=_0x448979[_0x2661ca];return _0x51b27b;},_0x2661(_0x5b43bd,_0x38d93b);}import{ToolbarView as _0xaf7f58,ButtonView as _0x437ebe}from'ckeditor5/src/ui.js';import{getTranslation as _0x1a972c}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0xaf7f58{constructor(_0x13b491,_0xf0e015=!0x0,_0x31c97a=!0x0){const _0x69735d=_0x2661;super(_0x13b491),this[_0x69735d(0xdf)](_0x69735d(0xda),!0x1),_0xf0e015&&(this[_0x69735d(0xf0)]=this[_0x69735d(0xed)](_0x1a972c(_0x13b491,_0x69735d(0xde)),_0x69735d(0xe7)),this[_0x69735d(0xf0)][_0x69735d(0xee)](_0x69735d(0xec))['to'](this,_0x69735d(0xda),_0x306430=>!_0x306430),this[_0x69735d(0xe0)][_0x69735d(0xef)](this[_0x69735d(0xf0)])),_0x31c97a&&(this[_0x69735d(0xe9)]=this[_0x69735d(0xed)](_0x1a972c(_0x13b491,_0x69735d(0xdd)),_0xf0e015?_0x69735d(0xe3):_0x69735d(0xe7)),this[_0x69735d(0xe9)][_0x69735d(0xee)](_0x69735d(0xec))['to'](this,_0x69735d(0xda),_0x32b585=>!_0x32b585),this[_0x69735d(0xe0)][_0x69735d(0xef)](this[_0x69735d(0xe9)])),this[_0x69735d(0xf3)]({'attributes':{'class':[_0x69735d(0xe8)]}});}[_0x111157(0xed)](_0x2b67fb,_0x29f587){const _0x2227bf=_0x111157,_0x293ec9=new _0x437ebe(this[_0x2227bf(0xe2)]);return _0x293ec9[_0x2227bf(0xdf)]({'label':_0x2b67fb,'class':_0x29f587||'','isVisible':!0x0,'withText':!0x0}),_0x293ec9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b20f9=_0x3721;(function(_0x436e08,_0x1edf1e){const _0x502a91=_0x3721,_0x2123a2=_0x436e08();while(!![]){try{const _0x2700c0=-parseInt(_0x502a91(0x13d))/0x1*(parseInt(_0x502a91(0x139))/0x2)+-parseInt(_0x502a91(0x15a))/0x3+parseInt(_0x502a91(0x14e))/0x4*(parseInt(_0x502a91(0x158))/0x5)+-parseInt(_0x502a91(0x13a))/0x6+parseInt(_0x502a91(0x167))/0x7*(-parseInt(_0x502a91(0x137))/0x8)+-parseInt(_0x502a91(0x166))/0x9+parseInt(_0x502a91(0x121))/0xa;if(_0x2700c0===_0x1edf1e)break;else _0x2123a2['push'](_0x2123a2['shift']());}catch(_0x2ea789){_0x2123a2['push'](_0x2123a2['shift']());}}}(_0x1cf6,0x74749));import{ButtonView as _0x3fe220,View as _0x4f455f,ViewCollection as _0x1c3f6a,FocusCycler as _0x1bb01e}from'ckeditor5/src/ui.js';import{FocusTracker as _0x58f0de,KeystrokeHandler as _0x2ed6f5}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x160eff,IconPreviousArrow as _0x154753}from'@ckeditor/ckeditor5-icons';function _0x1cf6(){const _0x2f2909=['disclaimerView','29692730cXOtDy','_addToolbar','add','hideError','showRecoverableError','applyButton','fire','showBlockingError','_addDisclaimerView','showPrevious','children','AI_BALLOON_PREVIOUS_TOOLTIP','div','_mainView','_createNextButtonView','element','ck-ai-suggestion__error-text','_availableActions','suggestButton','_errorView','bindTemplate','focusFirst','133816iGZuTl','bind','8tIUyvd','5428710oVfrfq','ai-balloon-content','clearLoading','99449tYIiKY','includes','AI_BALLOON_NEXT_TOOLTIP','listenTo','_dialogContent','focusTracker','span','isTrackChangesOn','clear','mainView','getIndex','updateContent','remove','change:isTrackChangesOn','_createErrorView','_focusables','errorMessage','96tFNfpM','showNext','set','headerView','insertSuggestion','focusCycler','_createPreviousButtonView','createCollection','shift\x20+\x20tab','showApplyButton','33910oTBubC','execute','2122776BwllSv','_addContentView','view','ck-ai-suggestion__error','render','showError','addMany','keystrokes','ai-balloon-error','focus','setTemplate','applySuggestion','3244572fPzGhB','119JbeUiO','setLoading','isErrorVisible','toolbar','isEnabled','showSuggestButton','tab','locale','isLoading','focusLast','ck-hidden','setupRotator'];_0x1cf6=function(){return _0x2f2909;};return _0x1cf6();}import{AIBalloonToolbarView as _0x511c5b}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x155f37}from'./aiballoondisclaimerview.js';import{getTranslation as _0x2cb588}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2b20f9(0x165),_0x2b20f9(0x152),_0x2b20f9(0x14f),_0x2b20f9(0x12a)];function _0x3721(_0x4da1b5,_0x19c06f){const _0x1cf63f=_0x1cf6();return _0x3721=function(_0x37215d,_0x3fcc44){_0x37215d=_0x37215d-0x117;let _0xa49690=_0x1cf63f[_0x37215d];return _0xa49690;},_0x3721(_0x4da1b5,_0x19c06f);}export class AIBalloonView extends _0x4f455f{[_0x2b20f9(0x142)];[_0x2b20f9(0x161)];[_0x2b20f9(0x153)];[_0x2b20f9(0x132)];[_0x2b20f9(0x14c)];[_0x2b20f9(0x134)];constructor(_0x427235,_0x164627,_0x16d3f5,_0x5bc69e){const _0x314fff=_0x2b20f9;super(_0x427235),this[_0x314fff(0x132)]=_0x16d3f5,this[_0x314fff(0x150)](_0x314fff(0x11c),!0x1),this[_0x314fff(0x150)](_0x314fff(0x144),_0x5bc69e),this[_0x314fff(0x150)](_0x314fff(0x169),!0x1),this[_0x314fff(0x150)](_0x314fff(0x14d),''),this[_0x314fff(0x142)]=new _0x58f0de(),this[_0x314fff(0x161)]=new _0x2ed6f5(),this[_0x314fff(0x14c)]=this[_0x314fff(0x155)](),this[_0x314fff(0x153)]=new _0x1bb01e({'focusables':this[_0x314fff(0x14c)],'focusTracker':this[_0x314fff(0x142)],'keystrokeHandler':this[_0x314fff(0x161)],'actions':{'focusPrevious':_0x314fff(0x156),'focusNext':_0x314fff(0x11a)}}),this[_0x314fff(0x141)]=new _0x1c3f6a(),this[_0x314fff(0x15b)](_0x164627[_0x314fff(0x146)]),this[_0x314fff(0x129)](),this[_0x314fff(0x122)](_0x164627[_0x314fff(0x157)],_0x164627[_0x314fff(0x119)]),this[_0x314fff(0x117)][_0x314fff(0x138)](_0x314fff(0x11c))['to'](this),this[_0x314fff(0x14c)][_0x314fff(0x145)](),this[_0x314fff(0x14c)][_0x314fff(0x160)]([this[_0x314fff(0x117)]]),this[_0x314fff(0x164)]({'tag':_0x314fff(0x12d),'attributes':{'class':_0x314fff(0x13b)},'children':this[_0x314fff(0x141)]}),this['on'](_0x314fff(0x14a),()=>{const _0x5377e0=_0x314fff;this[_0x5377e0(0x141)][_0x5377e0(0x149)](this[_0x5377e0(0x117)]),this[_0x5377e0(0x122)](_0x164627[_0x5377e0(0x157)],_0x164627[_0x5377e0(0x119)]);});}[_0x2b20f9(0x15e)](){const _0x582c64=_0x2b20f9;super[_0x582c64(0x15e)]();for(const _0x37fbae of this[_0x582c64(0x14c)])this[_0x582c64(0x142)][_0x582c64(0x123)](_0x37fbae[_0x582c64(0x130)]);this[_0x582c64(0x161)][_0x582c64(0x140)](this[_0x582c64(0x130)]);}[_0x2b20f9(0x163)](_0x1adc11){const _0x5ac1c2=_0x2b20f9;-0x1===_0x1adc11?this[_0x5ac1c2(0x153)][_0x5ac1c2(0x11d)]():this[_0x5ac1c2(0x153)][_0x5ac1c2(0x136)]();}[_0x2b20f9(0x168)](){const _0x2113ef=_0x2b20f9;this[_0x2113ef(0x11c)]=!0x0;}[_0x2b20f9(0x13c)](){const _0x1c1710=_0x2b20f9;this[_0x1c1710(0x11c)]=!0x1;}[_0x2b20f9(0x15f)](_0x331545){const _0x545398=_0x2b20f9;this[_0x545398(0x134)]||(this[_0x545398(0x134)]=this[_0x545398(0x14b)](),this[_0x545398(0x141)][_0x545398(0x160)]([this[_0x545398(0x134)]],0x0)),this[_0x545398(0x14d)]=_0x331545,this[_0x545398(0x169)]=!0x0;}[_0x2b20f9(0x124)](){const _0x2966eb=_0x2b20f9;this[_0x2966eb(0x169)]=!0x1;}[_0x2b20f9(0x125)](_0x497fb8){const _0x35ab94=_0x2b20f9;this[_0x35ab94(0x15f)](_0x497fb8);}[_0x2b20f9(0x128)](_0xe631cb){const _0x449098=_0x2b20f9;this[_0x449098(0x15f)](_0xe631cb),this[_0x449098(0x117)]&&(this[_0x449098(0x117)][_0x449098(0x126)]&&(this[_0x449098(0x117)][_0x449098(0x126)][_0x449098(0x118)]=!0x1),this[_0x449098(0x117)][_0x449098(0x133)]&&(this[_0x449098(0x117)][_0x449098(0x133)][_0x449098(0x118)]=!0x1));}[_0x2b20f9(0x11f)](_0x5bde6f){const _0x11d454=_0x2b20f9,_0x1aef15=this[_0x11d454(0x12f)](),_0x1660d5=this[_0x11d454(0x154)]();_0x5bde6f[_0x11d454(0x15c)][_0x11d454(0x151)][_0x11d454(0x12b)][_0x11d454(0x123)](_0x1aef15,0x2),_0x5bde6f[_0x11d454(0x15c)][_0x11d454(0x151)][_0x11d454(0x12b)][_0x11d454(0x123)](_0x1660d5,0x0),this[_0x11d454(0x14c)][_0x11d454(0x160)]([_0x1aef15,_0x1660d5]),this[_0x11d454(0x142)][_0x11d454(0x123)](_0x1aef15[_0x11d454(0x130)]),this[_0x11d454(0x142)][_0x11d454(0x123)](_0x1660d5[_0x11d454(0x130)]);}[_0x2b20f9(0x15b)](_0x398c95){const _0x208166=_0x2b20f9;this[_0x208166(0x12e)]=_0x398c95,this[_0x208166(0x141)][_0x208166(0x123)](this[_0x208166(0x12e)]);}[_0x2b20f9(0x148)](_0x4f8267){const _0x10dd3b=_0x2b20f9,_0x268993=this[_0x10dd3b(0x141)][_0x10dd3b(0x147)](this[_0x10dd3b(0x12e)]);this[_0x10dd3b(0x141)][_0x10dd3b(0x149)](this[_0x10dd3b(0x12e)]),this[_0x10dd3b(0x12e)]=_0x4f8267,this[_0x10dd3b(0x141)][_0x10dd3b(0x123)](this[_0x10dd3b(0x12e)],_0x268993),this[_0x10dd3b(0x124)]();}[_0x2b20f9(0x129)](){const _0x3fd362=_0x2b20f9;this[_0x3fd362(0x120)]=new _0x155f37(this[_0x3fd362(0x11b)]),this[_0x3fd362(0x141)][_0x3fd362(0x123)](this[_0x3fd362(0x120)]);}[_0x2b20f9(0x122)](_0x3eaed8=!0x0,_0x297566=!0x0){const _0xdbdcb3=_0x2b20f9;_0x3eaed8=_0x3eaed8&&!this[_0xdbdcb3(0x144)]&&this[_0xdbdcb3(0x132)][_0xdbdcb3(0x13e)](_0xdbdcb3(0x165)),_0x297566=_0x297566&&this[_0xdbdcb3(0x132)][_0xdbdcb3(0x13e)](_0xdbdcb3(0x152)),this[_0xdbdcb3(0x117)]=new _0x511c5b(this[_0xdbdcb3(0x11b)],_0x3eaed8,_0x297566),this[_0xdbdcb3(0x117)][_0xdbdcb3(0x126)]?.['on'](_0xdbdcb3(0x159),()=>{const _0x5b6437=_0xdbdcb3;this[_0x5b6437(0x127)](_0x5b6437(0x165));}),this[_0xdbdcb3(0x117)][_0xdbdcb3(0x133)]?.['on'](_0xdbdcb3(0x159),()=>{const _0xdb656a=_0xdbdcb3;this[_0xdb656a(0x127)](_0xdb656a(0x152));}),this[_0xdbdcb3(0x141)][_0xdbdcb3(0x123)](this[_0xdbdcb3(0x117)]);}[_0x2b20f9(0x12f)](){const _0x4bf5dd=_0x2b20f9,_0x5deefb=new _0x3fe220(this[_0x4bf5dd(0x11b)]);return _0x5deefb[_0x4bf5dd(0x150)]({'icon':_0x160eff,'tooltip':_0x2cb588(this[_0x4bf5dd(0x11b)],_0x4bf5dd(0x13f))}),_0x5deefb['on'](_0x4bf5dd(0x159),()=>{const _0x57e164=_0x4bf5dd;this[_0x57e164(0x127)](_0x57e164(0x14f));}),_0x5deefb;}[_0x2b20f9(0x154)](){const _0x57a38f=_0x2b20f9,_0x28d264=new _0x3fe220(this[_0x57a38f(0x11b)]);return _0x28d264[_0x57a38f(0x150)]({'icon':_0x154753,'tooltip':_0x2cb588(this[_0x57a38f(0x11b)],_0x57a38f(0x12c))}),_0x28d264['on'](_0x57a38f(0x159),()=>{const _0x11e272=_0x57a38f;this[_0x11e272(0x127)](_0x11e272(0x12a));}),_0x28d264;}[_0x2b20f9(0x14b)](){const _0x30f37a=_0x2b20f9,_0x301c2b=new _0x4f455f(this[_0x30f37a(0x11b)]),_0x4f67ff=new _0x4f455f(this[_0x30f37a(0x11b)]);return _0x4f67ff[_0x30f37a(0x164)]({'tag':_0x30f37a(0x143),'attributes':{'class':['ck',_0x30f37a(0x131)]},'children':[{'text':this[_0x30f37a(0x135)]['to'](_0x30f37a(0x14d))}]}),_0x301c2b[_0x30f37a(0x164)]({'tag':_0x30f37a(0x12d),'attributes':{'class':['ck',_0x30f37a(0x15d),_0x30f37a(0x162),this[_0x30f37a(0x135)]['if'](_0x30f37a(0x169),_0x30f37a(0x11e),_0x32dc79=>!_0x32dc79)]},'children':[_0x4f67ff]}),_0x301c2b;}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x44bd(_0x551e14,_0x4e30da){var _0x21b269=_0x21b2();return _0x44bd=function(_0x44bd21,_0xf2f967){_0x44bd21=_0x44bd21-0xde;var _0x9e281f=_0x21b269[_0x44bd21];return _0x9e281f;},_0x44bd(_0x551e14,_0x4e30da);}var _0x48c4e0=_0x44bd;(function(_0x363137,_0x16294b){var _0xf77e4b=_0x44bd,_0x1fdadc=_0x363137();while(!![]){try{var _0x3eb898=-parseInt(_0xf77e4b(0xe1))/0x1+-parseInt(_0xf77e4b(0xee))/0x2+-parseInt(_0xf77e4b(0xeb))/0x3+-parseInt(_0xf77e4b(0xe3))/0x4*(-parseInt(_0xf77e4b(0xdf))/0x5)+-parseInt(_0xf77e4b(0xe5))/0x6+-parseInt(_0xf77e4b(0xde))/0x7+-parseInt(_0xf77e4b(0xf1))/0x8*(-parseInt(_0xf77e4b(0xef))/0x9);if(_0x3eb898===_0x16294b)break;else _0x1fdadc['push'](_0x1fdadc['shift']());}catch(_0x4016e3){_0x1fdadc['push'](_0x1fdadc['shift']());}}}(_0x21b2,0x4c690));function _0x21b2(){var _0x66908c=['removeSelectionFromChatContext','ai.chat.context','isOfficialPlugin','context','AIChat','1123809eMYUyK','startConversation','pluginName','1114490VEhcdx','3419919MiMEQA','sendMessage','40EfpvwP','plugins','isPremiumPlugin','requires','focusPromptInput','ai.chat.models','addSelectionToChatContext','1020957IosCCB','197425dTlUua','config','489595NkHQAH','define','44hmUkLq','get','2724120cFbacW'];_0x21b2=function(){return _0x66908c;};return _0x21b2();}import{ContextPlugin as _0x5e08b3}from'ckeditor5/src/core.js';import{AIChatController as _0x494c95}from'./aichatcontroller.js';import{AIEditing as _0xe66c6}from'../aicore/aiediting.js';import{AIChatUI as _0x6931e6}from'./aichatui.js';import{AIChatHistory as _0x1c283b}from'../aichathistory/aichathistory.js';export class AIChat extends _0x5e08b3{static get[_0x48c4e0(0xf4)](){return[_0x494c95,_0xe66c6,_0x6931e6,_0x1c283b];}static get[_0x48c4e0(0xed)](){var _0x3b2fa4=_0x48c4e0;return _0x3b2fa4(0xea);}static get[_0x48c4e0(0xe8)](){return!0x0;}static get[_0x48c4e0(0xf3)](){return!0x0;}constructor(_0x40a993){var _0x5cc2e8=_0x48c4e0;super(_0x40a993),this[_0x5cc2e8(0xe9)][_0x5cc2e8(0xe0)][_0x5cc2e8(0xe2)](_0x5cc2e8(0xe7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x5cc2e8(0xe9)][_0x5cc2e8(0xe0)][_0x5cc2e8(0xe2)](_0x5cc2e8(0xf6),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x48c4e0(0xf7)](){var _0x4e5f01=_0x48c4e0;await this[_0x4e5f01(0xe9)][_0x4e5f01(0xf2)][_0x4e5f01(0xe4)](_0x494c95)[_0x4e5f01(0xf7)]();}async[_0x48c4e0(0xec)](){var _0x322899=_0x48c4e0;await this[_0x322899(0xe9)][_0x322899(0xf2)][_0x322899(0xe4)](_0x494c95)[_0x322899(0xec)]();}async[_0x48c4e0(0xf0)]({message:_0x289dec,quickActionData:_0x2d766f}){var _0x2b7135=_0x48c4e0;await this[_0x2b7135(0xe9)][_0x2b7135(0xf2)][_0x2b7135(0xe4)](_0x494c95)[_0x2b7135(0xf0)]({'message':_0x289dec,'quickActionData':_0x2d766f});}[_0x48c4e0(0xe6)](){var _0x484c57=_0x48c4e0;this[_0x484c57(0xe9)][_0x484c57(0xf2)][_0x484c57(0xe4)](_0x494c95)[_0x484c57(0xe6)]();}[_0x48c4e0(0xf5)](){var _0x58a84a=_0x48c4e0;this[_0x58a84a(0xe9)][_0x58a84a(0xf2)][_0x58a84a(0xe4)](_0x494c95)[_0x58a84a(0xf5)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xcb3e(){const _0x2232b4=['alignToTop','rootName','setAddContextOptions','unshift','6993186AYHIlq','toggleWebSearch','getAttribute','getFirstRange','addDocumentToContext','isOpen','addContextItem','showPrevious','rejected','AI_CHAT_RESOURCE_LOAD_FAILED','replyId','resizeTabs','plugins','model','addContextOptionsChanged','content','baseVersion','node','upsertAIChatRating','indexOf','requires','Failed\x20to\x20load\x20conversation','_getDocumentRangeForReplyChanges','setLoadingMessage','1109312syKQPx','resourceStateChanged','isDisabled','get','resize','maxOffset','capabilitiesUpdated','dislike','reasoningStarted','isUploadInProgress','startAutoScroll','isPremiumPlugin','filter','AIChatController','interactionFinished','updateConversationTitle','from','new','mouseLeaveSuggestion','rejectSuggestion','_flushLastInteractionUI','loadConversation','push','AI_CHAT_CONTEXT_INVALID_DATA','start','startInteraction','interactionDestroyed','createRange','ai-chat-context-unsupported-type','revert','data','getSelectionText','_showConversationHistory','addFeedItemStaticMessage','removeMarker','showFakeVisualSelection','setIsUploadInProgress','DocumentCompare','change','getChild','_scrollToSuggestionRange','context','load','getInteraction','stopInteraction','disableControls','toViewRange','viewRangeToDom','contextItemLoadingEnded','_aiChatUi','stopListening','getDiff','getDocumentData','collaboration.channelId','_insertSuggestion','loadSourceResources','resetConversationTitle','AIChatUI','_applyOperationsAsSuggestions','query','uiId','isInContext','current-document','cloneNode','ai.availableReplyActions','toggleSuggestionDisplayMode','replyContentUpdated','activeConversation','getTransformedByOperation','clearConversationContextUI','interactionId','applySuggestion','activateTab','chat','hasChanges','ai-chat-url-upload-failed','Liked\x20response','text-delta','Showing\x20conversation\x20history...','Undo','showChangeInText','_toggleReasoning','redo','removeFeedInteraction','addFeedInteractionHeader','markers','contextItems','full','setChangeGroupState','addFeedItemAIReply','updateCapabilities','getPath','sendUserMessage','isDocumentOperation','init','selectModel','lastInteraction','setConversationContext','config','isModelAvailable','removeContextItem','parse','startConversation','remove','changes','updateContent','streaming','enableControls','set','interactionStarted','closeSourceResourceBalloon','createPositionFromPath','getRanges','state','nextSibling','uploadProgressChanged','addResourceToContext','AI_CHAT_GENERIC_ERROR','$graveyard','addFeedItemError','pluginName','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_ABORTED_MESSAGE','ai-chat-conversation-init-failed','showDiff','_aiChatModels','documentContextContent','find','pending','updateFeedItemAIReplyContent','AIEditing','setConversationTitle','createPositionAt','children','sourcePosition','removeSelectionFromContext','ai-request-aborted','modification-delta','open','getMarkersGroup','close','ai-conversation-','toString','messageId','_openBalloonFor','getGroupId','ai.chat.models.displayedModels','setContextItemLoading','_handleStartConversation','slice','clearPendingContextUI','length','findIndex','setFeedItemRenderingStrategy','ai-chat-file-upload-failed','contextItem','static','isOfficialPlugin','updateFeedItemAIReplySuggestionContent','toggleReasoning','scrollFeedToSuggestion','resizedTabs','type','removeSelectionFromChatContext','getContentParts','applyOperation','replyCreated','toggleLoadingSkeleton','howMany','modelSelected','range','AI_CHAT_UNABLE_TO_START_CONVERSATION','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','handleUserInteraction','updateCurrentDocumentInContext','TrackChanges','sendMessage','error','replyChangeGroupStateUpdated','_updateReplyContent','_startConversationSafely','log','addCurrentDocumentToContext','4315480PTYWLF','getInteractionAndReplyById','addOperation','_logError','options','297ibvzMJ','sourceId','addSelectionToContext','isLoading','_aiConnector','partIndex','_previewedChangeGroup','getChildren','setModel','sources','uid','updateResourceState','ai-chat-controller-no-active-conversation','root','abortPromptStream','ai-chat-context-invalid-data','anchorId','insertSuggestion','getReply','marker','setSelectedModel','path','accepted','Disliked\x20response','listenTo','focusPromptInput','startsWith','outdated','_batchToChanges','has','addFilesToContext','locale','finishInteraction','_stopLastInteraction','reasoningFinished','isStarted','stop','_applySuggestion','AIConnector','TrackChangesEditing','ai-chat-conversation-start-failed','interactionCreated','hideFakeVisualSelection','document','contextItemAdded','selectedModel','selection','history','showNext','isCurrentDocumentInContext','webSearchStarted','contextSent','indexes','end','removed','like','addSelectionToChatContext','4291712kyejVm','dialogClosed','main','setIsMaximized','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','afterInit','getChildAtOffset','data-id','27610ZDzrdz','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','resource','addUrlToContext','view','delete','sourceResourcesLoaded','ai-chat-source-resources-load-failed','_setIsMaximized','removeFromContext','version','mouseOverSuggestion','_removeAISelectionMarkers','replies','domConverter','_createFromRanges','resources','addFileToContext','createConversation','getDocumentContext','map','source','AI_BALLOON_HEADER_TITLE','message','undo','_integrateEditor','changeGroups','_aiEditing','handleRemovedConversation','_toggleWebSearch','ready','add','split','AITabs','addFeedItemUserMessage','ai.chat.context','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','populateSourceResourceBalloon','_updateRatings','updateFeedItemAIReplySources','_handleUIUserMessage','3903284kQEasO','resourceId','editing','isCurrentDocumentInConversation','resetMessageInput','getRoot','addFeedItemAISuggestion','editors','commands','forEach','updateFeedItemAIReplySuggestionPartState','mapper','ai-chat-missing-channel-id','conversationInitialized','batch','contextItemRemoved','webSearchFinished','ai-chat-resource-load-failed','index','ai-chat-controller-mouse-over','ai.chat.models.defaultModelId','ai-no-track-changes','2645940bVNJnE','_removeFromContext','_balloonShowDiff','getOperations'];_0xcb3e=function(){return _0x2232b4;};return _0xcb3e();}const _0x59f38d=_0x507d;function _0x507d(_0x23342e,_0x4abfc0){const _0xcb3ed5=_0xcb3e();return _0x507d=function(_0x507d76,_0x2dd24a){_0x507d76=_0x507d76-0x13c;let _0x7491ce=_0xcb3ed5[_0x507d76];return _0x7491ce;},_0x507d(_0x23342e,_0x4abfc0);}(function(_0x51edea,_0x11a388){const _0xadb99d=_0x507d,_0x570e9b=_0x51edea();while(!![]){try{const _0x5a0e8f=parseInt(_0xadb99d(0x250))/0x1+-parseInt(_0xadb99d(0x1f1))/0x2*(-parseInt(_0xadb99d(0x1b0))/0x3)+-parseInt(_0xadb99d(0x1ab))/0x4+parseInt(_0xadb99d(0x230))/0x5+-parseInt(_0xadb99d(0x238))/0x6+-parseInt(_0xadb99d(0x21a))/0x7+parseInt(_0xadb99d(0x1e9))/0x8;if(_0x5a0e8f===_0x11a388)break;else _0x570e9b['push'](_0x570e9b['shift']());}catch(_0x329024){_0x570e9b['push'](_0x570e9b['shift']());}}}(_0xcb3e,0xb493e));import{ContextPlugin as _0x1d9aed,Editor as _0x5db8e9}from'ckeditor5/src/core.js';import{CKEditorError as _0xc1fc68,logError as _0x294b23,scrollViewportToShowTarget as _0x267891,uid as _0x1db2a9}from'ckeditor5/src/utils.js';import{AIConnector as _0x22cedc}from'../aicore/aiconnector.js';import{AITabs as _0x58e3fa}from'../aitabs/aitabs.js';import{AIChatConversation as _0x41baee}from'./model/aichatconversation.js';import{getTranslation as _0x30ea9b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x47a8a5}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0xb6b753}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x3a5c5e}from'./model/aichatmodels.js';import{getEditorFromContext as _0xc94297}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x3c6729,DATA_ID_MODEL_ATTRIBUTE as _0x130480}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3788fd,getOperationsFromReply as _0x386198}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x13e5ea,getMinimalSelection as _0x2b6c27}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x9f483a,_DetachOperation as _0x4acbb9}from'ckeditor5/src/engine.js';import{findOne as _0x749d51,getAttribute as _0x305739,serialize as _0x4a4ce6,Document as _0x3998ff,findByAttribute as _0x570005}from'../aicore/utils/htmlparser.js';import{IconAI as _0x52b70b}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x53eb00}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x42fa45}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1d9aed{[_0x59f38d(0x20c)];[_0x59f38d(0x1b4)];[_0x59f38d(0x281)];[_0x59f38d(0x171)];[_0x59f38d(0x1cc)]=new Map();[_0x59f38d(0x1b6)]=null;[_0x59f38d(0x232)]=!0x1;static get[_0x59f38d(0x24c)](){return[_0x22cedc,_0x42fa45,_0x3c6729];}static get[_0x59f38d(0x16b)](){const _0x5221ee=_0x59f38d;return _0x5221ee(0x25d);}static get[_0x59f38d(0x191)](){return!0x0;}static get[_0x59f38d(0x25b)](){return!0x0;}[_0x59f38d(0x151)](){const _0x2579a3=_0x59f38d;this[_0x2579a3(0x1b4)]=this[_0x2579a3(0x279)][_0x2579a3(0x244)][_0x2579a3(0x253)](_0x2579a3(0x1d6)),this[_0x2579a3(0x281)]=this[_0x2579a3(0x279)][_0x2579a3(0x244)][_0x2579a3(0x253)](_0x2579a3(0x289)),this[_0x2579a3(0x20c)]=this[_0x2579a3(0x279)][_0x2579a3(0x244)][_0x2579a3(0x253)](_0x2579a3(0x176)),this[_0x2579a3(0x171)]=new _0x3a5c5e({'connector':this[_0x2579a3(0x1b4)],'availableModels':this[_0x2579a3(0x279)][_0x2579a3(0x155)][_0x2579a3(0x253)](_0x2579a3(0x186)),'defaultModelId':this[_0x2579a3(0x279)][_0x2579a3(0x155)][_0x2579a3(0x253)](_0x2579a3(0x22e))});const _0x3d85e5=this[_0x2579a3(0x279)][_0x2579a3(0x244)][_0x2579a3(0x253)](_0x2579a3(0x212));this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x159),()=>{const _0xb64592=_0x2579a3;this[_0xb64592(0x1a8)]();}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x14f),(_0x41838c,_0x394b80)=>{const _0x2ce148=_0x2579a3;this[_0x2ce148(0x219)]({'userMessage':_0x394b80});}),this[_0x2579a3(0x1c8)](_0x3d85e5,_0x2579a3(0x195),(_0x1cc9b8,_0x2f1244)=>{const _0x2119b6=_0x2579a3;this[_0x2119b6(0x1f9)](_0x2f1244);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x243),()=>{const _0x1fb9bf=_0x2579a3;_0x3d85e5[_0x1fb9bf(0x254)]();}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x1be),async()=>{const _0x238523=_0x2579a3;await this[_0x238523(0x1d1)](),await this[_0x238523(0x264)]();}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x23c),()=>{const _0x214a81=_0x2579a3;this[_0x214a81(0x293)]?.[_0x214a81(0x1aa)](_0x30ea9b(this[_0x214a81(0x279)][_0x214a81(0x1cf)],_0x214a81(0x16c)));}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x202),(_0x3d070e,_0x44ec57)=>{const _0x1d6d30=_0x2579a3;this[_0x1d6d30(0x293)]?.[_0x1d6d30(0x1ce)](Array[_0x1d6d30(0x260)](_0x44ec57));}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x1f4),(_0x562172,_0x4920f3)=>{const _0x3b33af=_0x2579a3;this[_0x3b33af(0x293)]?.[_0x3b33af(0x1f4)](_0x4920f3);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x167),(_0xf3d4a6,_0x5b6702)=>{const _0x31cc28=_0x2579a3;this[_0x31cc28(0x293)]?.[_0x31cc28(0x167)](_0x5b6702[_0x31cc28(0x206)],_0x5b6702[_0x31cc28(0x1f3)]);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x157),(_0x1170f3,_0x36eba0)=>{const _0x528637=_0x2579a3;this[_0x528637(0x231)](_0x36eba0);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x287),(_0x4a2b28,_0x483873)=>{const _0x112aa1=_0x2579a3;this[_0x112aa1(0x293)]?.[_0x112aa1(0x287)](_0x483873[_0x112aa1(0x1b1)],_0x483873[_0x112aa1(0x28b)],_0x483873[_0x112aa1(0x1ba)]);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x239),()=>{const _0x30f86d=_0x2579a3;this[_0x30f86d(0x20e)]();}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x193),()=>{const _0x3fc558=_0x2579a3;this[_0x3fc558(0x144)]();}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x152),(_0xc084db,_0x684afa)=>{const _0x10c731=_0x2579a3;this[_0x10c731(0x293)]?.[_0x10c731(0x1b8)](_0x684afa);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x1e7),(_0x54cf01,{replyId:_0x31af5e})=>{const _0x5fc44b=_0x2579a3;console[_0x5fc44b(0x1a9)](_0x5fc44b(0x13f),_0x31af5e);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x257),(_0xff0494,{replyId:_0x200d99})=>{const _0xea26c3=_0x2579a3;console[_0xea26c3(0x1a9)](_0xea26c3(0x1c7),_0x200d99);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x1c1),(_0x2fffa2,_0x9c7527)=>{const _0x29bb55=_0x2579a3;this[_0x29bb55(0x279)][_0x29bb55(0x244)][_0x29bb55(0x253)](_0x42fa45)[_0x29bb55(0x180)](),this[_0x29bb55(0x286)](_0x9c7527);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x143),(_0x56ce33,{replyId:_0x17c73f,partIndex:_0x5d7051})=>{const _0x4e4a9f=_0x2579a3;this[_0x4e4a9f(0x232)]=this[_0x4e4a9f(0x281)][_0x4e4a9f(0x170)],this[_0x4e4a9f(0x184)](_0x17c73f,_0x5d7051);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x1fc),(_0x56b849,{replyId:_0x73a1e5,partIndex:_0x39dff2})=>{const _0x4fbb5b=_0x2579a3,_0xc7544=this[_0x4fbb5b(0x24e)](_0x73a1e5,_0x39dff2);_0xc7544&&_0x4fbb5b(0x169)!=_0xc7544[_0x4fbb5b(0x19e)][_0x4fbb5b(0x1bd)][_0x4fbb5b(0x235)]&&this[_0x4fbb5b(0x20c)][_0x4fbb5b(0x273)]([_0xc7544[_0x4fbb5b(0x19e)]],_0x4fbb5b(0x22d));}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x262),()=>{const _0x22cc0b=_0x2579a3;this[_0x22cc0b(0x20c)][_0x22cc0b(0x1da)](_0x22cc0b(0x22d));}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x297),(_0x10792c,_0xb435da)=>{const _0x4cecd1=_0x2579a3;this[_0x4cecd1(0x279)][_0x4cecd1(0x244)][_0x4cecd1(0x253)](_0x42fa45)[_0x4cecd1(0x180)](),this[_0x4cecd1(0x1d5)](_0xb435da);}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x291),async(_0x4f1c4b,{replyId:_0x36eb23,showDiff:_0xe42c96})=>{const _0x3c0f3a=_0x2579a3,{reply:_0xc7e34a}=this[_0x3c0f3a(0x1ac)](_0x36eb23),_0x4b17ea=_0xc7e34a[_0x3c0f3a(0x198)]({'showDiff':_0xe42c96});await this[_0x3c0f3a(0x281)][_0x3c0f3a(0x192)]({'id':_0xc7e34a['id'],'parts':_0x4b17ea,'renderingStrategy':_0x3c0f3a(0x190)});}),this[_0x2579a3(0x1c8)](this[_0x2579a3(0x281)],_0x2579a3(0x263),(_0x3357b5,{replyId:_0x4eb240,partIndex:_0x3df693})=>{const _0x390211=_0x2579a3;this[_0x390211(0x1b6)]?.[_0x390211(0x242)]==_0x4eb240&&this[_0x390211(0x1b6)]?.[_0x390211(0x1b5)]==_0x3df693&&this[_0x390211(0x279)][_0x390211(0x244)][_0x390211(0x253)](_0x42fa45)[_0x390211(0x180)]();const {reply:_0xeb69fb}=this[_0x390211(0x1ac)](_0x4eb240);_0xeb69fb[_0x390211(0x14b)](_0x3df693,_0x390211(0x240)),this[_0x390211(0x20c)][_0x390211(0x1da)](_0x390211(0x22d));});}async[_0x59f38d(0x1ee)](){const _0x2b1c35=_0x59f38d;this[_0x2b1c35(0x279)]instanceof _0x5db8e9?this[_0x2b1c35(0x20a)](this[_0x2b1c35(0x279)]):this[_0x2b1c35(0x1c8)](this[_0x2b1c35(0x279)][_0x2b1c35(0x221)],_0x2b1c35(0x210),(_0x1d929f,_0x2b9f9b)=>{const _0x37ed33=_0x2b1c35;_0x2b9f9b['on'](_0x37ed33(0x20f),()=>{const _0x1ece57=_0x37ed33;this[_0x1ece57(0x20a)](_0x2b9f9b);});}),await this[_0x2b1c35(0x1a8)]();}[_0x59f38d(0x286)](_0x1de4da){const _0x4f47ca=_0x59f38d,_0x1385f0=_0xc94297(this[_0x4f47ca(0x279)]);if(!_0x1385f0[_0x4f47ca(0x244)][_0x4f47ca(0x1cd)](_0x4f47ca(0x1a3)))throw new _0xc1fc68(_0x4f47ca(0x22f),null);const _0x1bc164=this[_0x4f47ca(0x279)][_0x4f47ca(0x244)][_0x4f47ca(0x253)](_0x4f47ca(0x275)),{reply:_0x11ba47,interaction:_0xbc06cb}=this[_0x4f47ca(0x1ac)](_0x1de4da[_0x4f47ca(0x242)]),_0x42bf1a=this[_0x4f47ca(0x24e)](_0x1de4da[_0x4f47ca(0x242)],_0x1de4da[_0x4f47ca(0x1b5)]),_0x4142e7=void 0x0!==_0x1de4da[_0x4f47ca(0x1b5)]?[_0x11ba47[_0x4f47ca(0x20b)][_0x1de4da[_0x4f47ca(0x1b5)]]]:_0x11ba47[_0x4f47ca(0x20b)][_0x4f47ca(0x25c)](_0x4cc15c=>_0x4f47ca(0x174)==_0x4cc15c[_0x4f47ca(0x164)]),_0x124255=_0x4142e7[_0x4f47ca(0x205)](_0x4df4f2=>_0x11ba47[_0x4f47ca(0x20b)][_0x4f47ca(0x24b)](_0x4df4f2));if(!_0x42bf1a||_0x4f47ca(0x169)==_0x42bf1a[_0x4f47ca(0x19e)][_0x4f47ca(0x1bd)][_0x4f47ca(0x235)])return void _0x124255[_0x4f47ca(0x223)](_0x3ba484=>_0x11ba47[_0x4f47ca(0x14b)](_0x3ba484,_0x4f47ca(0x1cb)));_0x124255[_0x4f47ca(0x223)](_0x440638=>_0x11ba47[_0x4f47ca(0x14b)](_0x440638,_0x4f47ca(0x1c6)));const _0x31a2d8=_0x386198({'editor':_0x1385f0,'reply':_0x11ba47,'interaction':_0xbc06cb,'groups':_0x4142e7,'transform':!0x0,'documentCompare':_0x1bc164,'documentCompareOptions':{'anchor':_0x4f47ca(0x1eb),'markDeletions':!0x0}});let _0x2a7509;_0x42bf1a&&this[_0x4f47ca(0x278)](_0x42bf1a[_0x4f47ca(0x19e)]),_0x1385f0[_0x4f47ca(0x245)][_0x4f47ca(0x276)](_0x37a4fb=>{const _0x36ae0a=_0x4f47ca;_0x2a7509=_0x37a4fb[_0x36ae0a(0x228)],_0x1385f0[_0x36ae0a(0x244)][_0x36ae0a(0x253)](_0x36ae0a(0x1d7))[_0x36ae0a(0x28a)](_0x31a2d8),this[_0x36ae0a(0x20c)][_0x36ae0a(0x1da)](_0x36ae0a(0x22d));}),this[_0x4f47ca(0x1cc)][_0x4f47ca(0x15f)](_0x2a7509,{'interactionId':_0xbc06cb['id'],'replyId':_0x11ba47['id'],'indexes':_0x124255[_0x4f47ca(0x189)]()}),this[_0x4f47ca(0x217)](_0x11ba47);}[_0x59f38d(0x1d5)](_0x2a7e42){const _0x386ac4=_0x59f38d,_0x2c67a6=_0xc94297(this[_0x386ac4(0x279)]),_0x46798b=this[_0x386ac4(0x279)][_0x386ac4(0x244)][_0x386ac4(0x253)](_0x3c6729),{reply:_0x112c20,interaction:_0x2d4fdf}=this[_0x386ac4(0x1ac)](_0x2a7e42[_0x386ac4(0x242)]),_0x352793=this[_0x386ac4(0x24e)](_0x2a7e42[_0x386ac4(0x242)],_0x2a7e42[_0x386ac4(0x1b5)]),_0x4144ab=void 0x0!==_0x2a7e42[_0x386ac4(0x1b5)]?[_0x112c20[_0x386ac4(0x20b)][_0x2a7e42[_0x386ac4(0x1b5)]]]:_0x112c20[_0x386ac4(0x20b)][_0x386ac4(0x25c)](_0x2b4d9f=>_0x386ac4(0x174)==_0x2b4d9f[_0x386ac4(0x164)]),_0x31a301=_0x4144ab[_0x386ac4(0x205)](_0x5057b6=>_0x112c20[_0x386ac4(0x20b)][_0x386ac4(0x24b)](_0x5057b6));if(!_0x352793||_0x386ac4(0x169)==_0x352793[_0x386ac4(0x19e)][_0x386ac4(0x1bd)][_0x386ac4(0x235)])return void _0x31a301[_0x386ac4(0x223)](_0x4c9329=>_0x112c20[_0x386ac4(0x14b)](_0x4c9329,_0x386ac4(0x1cb)));_0x31a301[_0x386ac4(0x223)](_0x1e2b00=>_0x112c20[_0x386ac4(0x14b)](_0x1e2b00,_0x386ac4(0x1c6)));const _0x1c7f7b=_0x386198({'editor':_0x2c67a6,'reply':_0x112c20,'interaction':_0x2d4fdf,'groups':_0x4144ab,'transform':!0x0,'documentCompare':_0x46798b,'documentCompareOptions':{'anchor':_0x386ac4(0x1eb),'markDeletions':!0x1}});let _0x1d6d11;_0x352793&&this[_0x386ac4(0x278)](_0x352793[_0x386ac4(0x19e)]),_0x2c67a6[_0x386ac4(0x245)][_0x386ac4(0x276)](_0x1cd875=>{const _0x62cea7=_0x386ac4;_0x1d6d11=_0x1cd875[_0x62cea7(0x228)];for(const _0xaefbb7 of _0x1c7f7b)_0xaefbb7[_0x62cea7(0x248)]=_0x2c67a6[_0x62cea7(0x245)][_0x62cea7(0x1db)][_0x62cea7(0x1fb)],_0x3788fd(_0x2c67a6,_0xaefbb7),_0x1cd875[_0x62cea7(0x228)][_0x62cea7(0x1ad)](_0xaefbb7),_0x2c67a6[_0x62cea7(0x245)][_0x62cea7(0x199)](_0xaefbb7);}),this[_0x386ac4(0x1cc)][_0x386ac4(0x15f)](_0x1d6d11,{'interactionId':_0x2d4fdf['id'],'replyId':_0x112c20['id'],'indexes':_0x31a301[_0x386ac4(0x189)]()}),this[_0x386ac4(0x217)](_0x112c20);}[_0x59f38d(0x184)](_0x177f70,_0x48f519){const _0x5f5766=_0x59f38d,_0x429411=_0xc94297(this[_0x5f5766(0x279)]),_0x5f42ef=this[_0x5f5766(0x24e)](_0x177f70,_0x48f519),_0x5d2250=this[_0x5f5766(0x279)][_0x5f5766(0x244)][_0x5f5766(0x253)](_0x42fa45);if(!_0x5f42ef)return void _0x5d2250[_0x5f5766(0x180)]();const {range:_0x27f10b,currentIndex:_0x517331}=_0x5f42ef;if(_0x5f5766(0x169)==_0x27f10b[_0x5f5766(0x1bd)][_0x5f5766(0x235)]){const {reply:_0x304daa}=this[_0x5f5766(0x1ac)](_0x177f70);return _0x304daa[_0x5f5766(0x14b)](_0x517331,_0x5f5766(0x1cb)),void _0x5d2250[_0x5f5766(0x180)]();}if(this[_0x5f5766(0x1b6)]?.[_0x5f5766(0x242)]==_0x177f70&&this[_0x5f5766(0x1b6)]?.[_0x5f5766(0x1b5)]==_0x517331)return;this[_0x5f5766(0x282)](_0x5d2250),this[_0x5f5766(0x1b6)]={'replyId':_0x177f70,'partIndex':_0x517331};let _0x1a3032=_0x429411[_0x5f5766(0x155)][_0x5f5766(0x253)](_0x5f5766(0x290))||[..._0xb6b753];_0x429411[_0x5f5766(0x244)][_0x5f5766(0x1cd)](_0x5f5766(0x1a3))||(_0x1a3032=_0x1a3032[_0x5f5766(0x25c)](_0x3f05ad=>_0x5f5766(0x1c1)!=_0x3f05ad));const _0x46e3a3=new _0x53eb00(_0x429411[_0x5f5766(0x1cf)],{'showDiff':this[_0x5f5766(0x232)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x5f5766(0x14a)},'hideHeader':!0x0,'availableActions':_0x1a3032});this[_0x5f5766(0x282)](_0x46e3a3);const {reply:_0x1b804b}=this[_0x5f5766(0x1ac)](_0x177f70),_0xcad48c=_0x1b804b[_0x5f5766(0x198)]({'showDiff':this[_0x5f5766(0x232)]})[_0x5f5766(0x25c)](_0x2911d9=>_0x2911d9[_0x5f5766(0x13d)]),_0x54e261=_0xcad48c[_0x5f5766(0x18c)](_0x2d42a5=>_0x2d42a5[_0x5f5766(0x22c)]==_0x517331);if(-0x1==_0x54e261)return;const _0x451bea=_0xcad48c[_0x54e261],_0x14a92f=_0xcad48c['at']((_0x54e261-0x1)%_0xcad48c[_0x5f5766(0x18b)])?.[_0x5f5766(0x22c)],_0x5777f3=_0xcad48c['at']((_0x54e261+0x1)%_0xcad48c[_0x5f5766(0x18b)])?.[_0x5f5766(0x22c)];_0x46e3a3[_0x5f5766(0x15c)]({'parts':[_0x451bea],'renderingStrategy':_0x5f5766(0x190)});const _0x2dce35=_0x517331!==_0x14a92f;this[_0x5f5766(0x278)](_0x27f10b,!0x0),_0x5d2250[_0x5f5766(0x17e)]({'index':_0x517331,'title':_0x30ea9b(this[_0x5f5766(0x279)][_0x5f5766(0x1cf)],_0x5f5766(0x207),(_0x54e261+0x1)[_0x5f5766(0x182)]()),'icon':_0x52b70b,'mainView':_0x46e3a3,'showRotator':_0x2dce35,'showApplyButton':!0x0,'showSuggestButton':_0x429411[_0x5f5766(0x244)][_0x5f5766(0x1cd)](_0x5f5766(0x1a3)),'ranges':[_0x27f10b]}),this[_0x5f5766(0x281)][_0x5f5766(0x194)](_0x177f70,_0x517331),this[_0x5f5766(0x1c8)](_0x46e3a3,_0x5f5766(0x291),(_0x52e49f,{showDiff:_0x591a63})=>{const _0x1df64d=_0x5f5766;this[_0x1df64d(0x232)]=_0x591a63;const {reply:_0x506fe5}=this[_0x1df64d(0x1ac)](_0x177f70),_0x4ff143=_0x506fe5[_0x1df64d(0x198)]({'showDiff':_0x591a63,'groupIndex':_0x517331});_0x46e3a3[_0x1df64d(0x15c)]({'parts':_0x4ff143,'renderingStrategy':_0x1df64d(0x190)});}),this[_0x5f5766(0x1c8)](_0x5d2250,_0x5f5766(0x297),()=>{const _0x2f8a84=_0x5f5766;this[_0x2f8a84(0x1d5)]({'replyId':_0x177f70,'partIndex':_0x517331}),_0x2dce35?this[_0x2f8a84(0x184)](_0x177f70,_0x5777f3):_0x5d2250[_0x2f8a84(0x180)]();}),this[_0x5f5766(0x1c8)](_0x5d2250,_0x5f5766(0x1c1),()=>{const _0xc1bae=_0x5f5766;this[_0xc1bae(0x286)]({'replyId':_0x177f70,'partIndex':_0x517331}),_0x2dce35?this[_0xc1bae(0x184)](_0x177f70,_0x5777f3):_0x5d2250[_0xc1bae(0x180)]();}),_0x2dce35&&(this[_0x5f5766(0x1c8)](_0x5d2250,_0x5f5766(0x1e0),()=>{const _0x4a115c=_0x5f5766;this[_0x4a115c(0x184)](_0x177f70,_0x5777f3);}),this[_0x5f5766(0x1c8)](_0x5d2250,_0x5f5766(0x23f),()=>{const _0x2ad04a=_0x5f5766;this[_0x2ad04a(0x184)](_0x177f70,_0x14a92f);})),this[_0x5f5766(0x1c8)](_0x5d2250,_0x5f5766(0x1ea),()=>{const _0x12d22f=_0x5f5766;this[_0x12d22f(0x282)](_0x5d2250),this[_0x12d22f(0x282)](_0x46e3a3),this[_0x12d22f(0x1b6)]=null;});}[_0x59f38d(0x24e)](_0x24d368,_0x1e7025){const _0xc2f7c9=_0x59f38d,_0x2b5f4a=_0xc94297(this[_0xc2f7c9(0x279)]),{reply:_0x1d4f1c,interaction:_0x10d691}=this[_0xc2f7c9(0x1ac)](_0x24d368),_0x5ad437=_0x1d4f1c[_0xc2f7c9(0x20b)][_0xc2f7c9(0x25c)](_0x29b153=>_0xc2f7c9(0x174)==_0x29b153[_0xc2f7c9(0x164)]),_0x385a0a=_0x5ad437[_0xc2f7c9(0x205)](_0x429bda=>_0x1d4f1c[_0xc2f7c9(0x20b)][_0xc2f7c9(0x24b)](_0x429bda));void 0x0===_0x1e7025&&(_0x1e7025=_0x385a0a[0x0]);const _0x5397f7=_0x385a0a[_0xc2f7c9(0x24b)](_0x1e7025);if(-0x1==_0x5397f7)return null;const _0x3bfa87=_0x5ad437[_0x5397f7],_0x49ae99=new _0x3998ff([]),_0x144b4e=new _0x3998ff([]);for(const _0x26ed6f of _0x3bfa87[_0xc2f7c9(0x15b)])if(_0xc2f7c9(0x1e6)!=_0x26ed6f[_0xc2f7c9(0x196)]&&_0x144b4e[_0xc2f7c9(0x179)][_0xc2f7c9(0x266)](_0x26ed6f[_0xc2f7c9(0x249)][_0xc2f7c9(0x28f)](!0x0)),_0xc2f7c9(0x261)!=_0x26ed6f[_0xc2f7c9(0x196)]){const _0x134c9d=_0x749d51(_0x2b3ffc=>_0x305739(_0x2b3ffc,_0xc2f7c9(0x1f0))==_0x26ed6f['id'],_0x1d4f1c[_0xc2f7c9(0x172)],!0x0);_0x49ae99[_0xc2f7c9(0x179)][_0xc2f7c9(0x266)](_0x134c9d[_0xc2f7c9(0x28f)](!0x0));}if(0x0==_0x49ae99[_0xc2f7c9(0x179)][_0xc2f7c9(0x18b)]){if(_0x3bfa87[_0xc2f7c9(0x15b)][0x0][_0xc2f7c9(0x1c0)]){const _0x231d5d=_0x570005(_0xc2f7c9(0x1f0),_0x3bfa87[_0xc2f7c9(0x15b)][0x0][_0xc2f7c9(0x1c0)],_0x1d4f1c[_0xc2f7c9(0x172)]);_0x49ae99[_0xc2f7c9(0x179)][_0xc2f7c9(0x237)](_0x231d5d[_0xc2f7c9(0x28f)](!0x0)),_0x144b4e[_0xc2f7c9(0x179)][_0xc2f7c9(0x237)](_0x231d5d[_0xc2f7c9(0x28f)](!0x0)),_0x231d5d[_0xc2f7c9(0x165)]&&(_0x49ae99[_0xc2f7c9(0x179)][_0xc2f7c9(0x266)](_0x231d5d[_0xc2f7c9(0x165)][_0xc2f7c9(0x28f)](!0x0)),_0x144b4e[_0xc2f7c9(0x179)][_0xc2f7c9(0x266)](_0x231d5d[_0xc2f7c9(0x165)][_0xc2f7c9(0x28f)](!0x0)));}else{const _0x2b5de6=_0x1d4f1c[_0xc2f7c9(0x172)][_0xc2f7c9(0x179)][0x0];if(!_0x2b5de6)return null;_0x49ae99[_0xc2f7c9(0x179)][_0xc2f7c9(0x266)](_0x2b5de6[_0xc2f7c9(0x28f)](!0x0)),_0x144b4e[_0xc2f7c9(0x179)][_0xc2f7c9(0x266)](_0x2b5de6[_0xc2f7c9(0x28f)](!0x0));}}const _0x4d4ccf=_0x10d691[_0xc2f7c9(0x204)](),_0x152281=_0x2b5f4a[_0xc2f7c9(0x26e)][_0xc2f7c9(0x158)](_0x4d4ccf[_0xc2f7c9(0x247)]),_0x1da9cd=_0x4a4ce6(_0x49ae99),_0x2b1678=_0x2b5f4a[_0xc2f7c9(0x26e)][_0xc2f7c9(0x158)](_0x1da9cd),_0x5b0644=_0x2b5f4a[_0xc2f7c9(0x26e)][_0xc2f7c9(0x158)](_0x1da9cd),_0x234337=_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x178)](_0x2b1678,0x0),_0x2f017b=_0x4a4ce6(_0x144b4e),_0x2b5ba3={'anchor':_0x234337,'markDeletions':!0x1},_0x27451e=_0x2b5f4a[_0xc2f7c9(0x244)][_0xc2f7c9(0x253)](_0x3c6729)[_0xc2f7c9(0x283)](_0x1da9cd,_0x2f017b,_0x2b5ba3)[_0xc2f7c9(0x233)]();if(!_0x27451e[_0xc2f7c9(0x18b)])return null;_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x276)](_0x1c02b3=>{const _0x556a4c=_0xc2f7c9;for(const _0x38fa34 of _0x27451e)if(_0x556a4c(0x15a)==_0x38fa34[_0x556a4c(0x196)]){const _0x5534db=_0x38fa34[_0x556a4c(0x17a)],_0x4fb461=_0x38fa34[_0x556a4c(0x19c)],_0x54635d=new _0x4acbb9(_0x5534db,_0x4fb461);_0x1c02b3[_0x556a4c(0x228)][_0x556a4c(0x1ad)](_0x54635d),_0x2b5f4a[_0x556a4c(0x245)][_0x556a4c(0x199)](_0x54635d);}else _0x556a4c(0x1c3)!==_0x38fa34[_0x556a4c(0x196)]&&(_0x38fa34[_0x556a4c(0x248)]=null,_0x38fa34[_0x556a4c(0x150)]=!0x1,_0x1c02b3[_0x556a4c(0x228)][_0x556a4c(0x1ad)](_0x38fa34),_0x2b5f4a[_0x556a4c(0x245)][_0x556a4c(0x199)](_0x38fa34));});const _0x5bdc89=_0x2b6c27(_0x2b5f4a,_0x27451e,_0x2b1678);_0x13e5ea(_0x2b5f4a[_0xc2f7c9(0x245)],_0x5bdc89);const _0x282eb1=_0x5bdc89[_0xc2f7c9(0x23b)]()[_0xc2f7c9(0x268)][_0xc2f7c9(0x1c5)][_0xc2f7c9(0x189)](),_0x328f49=_0x5bdc89[_0xc2f7c9(0x23b)]()[_0xc2f7c9(0x1e5)][_0xc2f7c9(0x1c5)][_0xc2f7c9(0x189)](),_0x13b737=[];let _0x1670f8=_0x2b1678,_0x5c75a3=_0x5b0644;for(let _0xa2b204=0x0;_0xa2b204<_0x328f49[_0xc2f7c9(0x18b)];_0xa2b204++){const _0x238e06=_0x1670f8[_0xc2f7c9(0x255)]-_0x328f49[_0xa2b204];_0x13b737[_0xa2b204]=_0x5c75a3[_0xc2f7c9(0x255)]-_0x238e06,_0x1670f8=_0x1670f8[_0xc2f7c9(0x1ef)](_0x328f49[_0xa2b204]),_0x5c75a3=_0x5c75a3[_0xc2f7c9(0x1ef)](_0x13b737[_0xa2b204]);}const _0x2d309f=_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x26b)](_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x162)](_0x5b0644,_0x282eb1),_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x162)](_0x5b0644,_0x13b737)),_0x1e797b=_0x5b0644[_0xc2f7c9(0x277)](0x0)[_0xc2f7c9(0x23a)](_0x130480),_0x263b68=Array[_0xc2f7c9(0x260)](_0x152281[_0xc2f7c9(0x1b7)]())[_0xc2f7c9(0x173)](_0x397999=>_0x397999[_0xc2f7c9(0x23a)](_0x130480)==_0x1e797b)[_0xc2f7c9(0x14e)](),_0x4bea7a=_0x2d309f[_0xc2f7c9(0x268)][_0xc2f7c9(0x1c5)][_0xc2f7c9(0x189)](),_0x192dd3=_0x2d309f[_0xc2f7c9(0x1e5)][_0xc2f7c9(0x1c5)][_0xc2f7c9(0x189)]();_0x4bea7a[0x0]=_0x263b68[0x0]+_0x4bea7a[0x0],_0x192dd3[0x0]=_0x263b68[0x0]+_0x192dd3[0x0];let _0x412005=_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x26b)](_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x162)](_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x1db)][_0xc2f7c9(0x21f)](),_0x4bea7a),_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x162)](_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x1db)][_0xc2f7c9(0x21f)](),_0x192dd3));const _0x33a3f1=_0x2b5f4a[_0xc2f7c9(0x245)][_0xc2f7c9(0x1db)][_0xc2f7c9(0x1df)][_0xc2f7c9(0x233)](_0x4d4ccf[_0xc2f7c9(0x1fb)]);for(const _0x488d5a of _0x33a3f1)_0x412005=_0x9f483a[_0xc2f7c9(0x200)](_0x412005[_0xc2f7c9(0x294)](_0x488d5a));return{'range':_0x412005,'currentIndex':_0x1e7025};}[_0x59f38d(0x20a)](_0x4d4474){const _0x305d42=_0x59f38d;if(!_0x4d4474[_0x305d42(0x244)][_0x305d42(0x1cd)](_0x305d42(0x142)))return;const _0x533b80=_0x4d4474[_0x305d42(0x222)][_0x305d42(0x253)](_0x305d42(0x209)),_0x44f1a4=_0x4d4474[_0x305d42(0x222)][_0x305d42(0x253)](_0x305d42(0x145));this[_0x305d42(0x1c8)](_0x533b80,_0x305d42(0x26d),(_0x395c0d,_0x56674b,_0x22c22c)=>{const _0x1bdce5=_0x305d42,_0x1bdc8f=this[_0x1bdce5(0x1cc)][_0x1bdce5(0x253)](_0x56674b);if(!_0x1bdc8f)return;const _0x2dd1b5=this[_0x1bdce5(0x293)][_0x1bdce5(0x27b)](_0x1bdc8f[_0x1bdce5(0x296)])[_0x1bdce5(0x1c2)](_0x1bdc8f[_0x1bdce5(0x242)]);_0x1bdc8f[_0x1bdce5(0x1e4)][_0x1bdce5(0x223)](_0x1386ea=>_0x2dd1b5[_0x1bdce5(0x14b)](_0x1386ea,_0x1bdce5(0x174))),this[_0x1bdce5(0x1cc)][_0x1bdce5(0x1f6)](_0x56674b),this[_0x1bdce5(0x1cc)][_0x1bdce5(0x15f)](_0x22c22c,_0x1bdc8f);}),this[_0x305d42(0x1c8)](_0x44f1a4,_0x305d42(0x26d),(_0x506cb3,_0xe62a0e,_0x190b8c)=>{const _0x3ee585=_0x305d42,_0x551544=this[_0x3ee585(0x1cc)][_0x3ee585(0x253)](_0xe62a0e);if(!_0x551544)return;const _0x45fef4=this[_0x3ee585(0x293)][_0x3ee585(0x27b)](_0x551544[_0x3ee585(0x296)])[_0x3ee585(0x1c2)](_0x551544[_0x3ee585(0x242)]);_0x551544[_0x3ee585(0x1e4)][_0x3ee585(0x223)](_0x519f43=>_0x45fef4[_0x3ee585(0x14b)](_0x519f43,_0x3ee585(0x1c6))),this[_0x3ee585(0x1cc)][_0x3ee585(0x1f6)](_0xe62a0e),this[_0x3ee585(0x1cc)][_0x3ee585(0x15f)](_0x190b8c,_0x551544);});}async[_0x59f38d(0x265)](_0x10b3a7){const _0x2c2332=_0x59f38d;this[_0x2c2332(0x279)][_0x2c2332(0x244)][_0x2c2332(0x253)](_0x42fa45)[_0x2c2332(0x180)](),this[_0x2c2332(0x281)][_0x2c2332(0x18d)](_0x2c2332(0x190)),this[_0x2c2332(0x281)][_0x2c2332(0x19b)](!0x0),await this[_0x2c2332(0x1d1)]();try{const _0x22be71=this[_0x2c2332(0x279)][_0x2c2332(0x244)][_0x2c2332(0x253)](_0x58e3fa);this[_0x2c2332(0x25f)]('\x20'),_0x22be71[_0x2c2332(0x1f5)][_0x2c2332(0x298)](_0x2c2332(0x13c)),await this[_0x2c2332(0x1a8)](_0x10b3a7);const {sessionId:_0x3d9320}=this[_0x2c2332(0x20c)][_0x2c2332(0x284)]();await this[_0x2c2332(0x293)][_0x2c2332(0x27a)](_0x10b3a7,_0x3d9320),this[_0x2c2332(0x293)][_0x2c2332(0x21d)]()&&this[_0x2c2332(0x293)][_0x2c2332(0x1aa)](_0x30ea9b(this[_0x2c2332(0x279)][_0x2c2332(0x1cf)],_0x2c2332(0x16c)));}catch(_0x269c8f){console[_0x2c2332(0x1a5)](_0x2c2332(0x24d),_0x269c8f);}finally{this[_0x2c2332(0x281)][_0x2c2332(0x25a)](),this[_0x2c2332(0x281)][_0x2c2332(0x18d)](_0x2c2332(0x15d)),this[_0x2c2332(0x281)][_0x2c2332(0x19b)](!0x1);}}[_0x59f38d(0x20d)](_0x165218){const _0x3b19da=_0x59f38d;this[_0x3b19da(0x293)]['id']===_0x165218&&this[_0x3b19da(0x1a8)]();}async[_0x59f38d(0x1e8)](){const _0x4fd7e5=_0x59f38d,_0x5ae12a=this[_0x4fd7e5(0x20c)][_0x4fd7e5(0x26f)]();this[_0x4fd7e5(0x293)]?.[_0x4fd7e5(0x1b2)](_0x5ae12a),this[_0x4fd7e5(0x293)]?.[_0x4fd7e5(0x1aa)](_0x30ea9b(this[_0x4fd7e5(0x279)][_0x4fd7e5(0x1cf)],_0x4fd7e5(0x16c)));}[_0x59f38d(0x197)](){const _0x28fee4=_0x59f38d;this[_0x28fee4(0x293)]?.[_0x28fee4(0x17b)]();}[_0x59f38d(0x1c9)](){const _0x4f8164=_0x59f38d;this[_0x4f8164(0x281)][_0x4f8164(0x1c9)]();}async[_0x59f38d(0x159)](){const _0x5653a7=_0x59f38d;await this[_0x5653a7(0x1a8)]();}async[_0x59f38d(0x1a4)]({message:_0x548360,quickActionData:_0x36739e}){const _0x1fa909=_0x59f38d;await this[_0x1fa909(0x219)]({'userMessage':_0x548360,'quickActionData':_0x36739e});}[_0x59f38d(0x185)](){const _0x2c3b71=_0x59f38d,_0x118f87=this[_0x2c3b71(0x279)][_0x2c3b71(0x155)][_0x2c3b71(0x253)](_0x2c3b71(0x285));if(!_0x118f87)throw new _0xc1fc68(_0x2c3b71(0x226),this);return _0x118f87;}async[_0x59f38d(0x1a8)](_0x2c7ad4){const _0x4b4556=_0x59f38d;try{this[_0x4b4556(0x281)][_0x4b4556(0x15e)](),await this[_0x4b4556(0x188)](_0x2c7ad4);}catch(_0x3b7c1a){_0x294b23(_0x4b4556(0x1d8),_0x3b7c1a),this[_0x4b4556(0x293)]=void 0x0,this[_0x4b4556(0x281)][_0x4b4556(0x27d)]();}}async[_0x59f38d(0x188)](_0x21b63b){const _0x2fe49e=_0x59f38d,_0x4e6162=this[_0x2fe49e(0x279)][_0x2fe49e(0x244)][_0x2fe49e(0x253)](_0x42fa45);let _0x44c910;_0x4e6162[_0x2fe49e(0x23d)]&&_0x4e6162[_0x2fe49e(0x180)](),_0x21b63b||!this[_0x2fe49e(0x293)]?_0x44c910=this[_0x2fe49e(0x279)][_0x2fe49e(0x155)][_0x2fe49e(0x253)](_0x2fe49e(0x22e)):this[_0x2fe49e(0x281)][_0x2fe49e(0x156)]&&(_0x44c910=this[_0x2fe49e(0x293)][_0x2fe49e(0x1dd)]['id']),await this[_0x2fe49e(0x1d1)]();const _0x206c8e=this[_0x2fe49e(0x185)](),_0x3a2010=_0x21b63b||_0x1db2a9();this[_0x2fe49e(0x293)]=new _0x41baee({'connector':this[_0x2fe49e(0x1b4)],'chatModels':this[_0x2fe49e(0x171)],'selectedModelId':_0x44c910,'conversationId':_0x3a2010,'group':_0x206c8e,'getEditor':()=>_0xc94297(this[_0x2fe49e(0x279)])}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x227),(_0x933220,_0x4496cc)=>{const _0x404e32=_0x2fe49e;this[_0x404e32(0x281)][_0x404e32(0x203)](_0x4496cc),this[_0x404e32(0x281)][_0x404e32(0x21e)](),this[_0x404e32(0x281)][_0x404e32(0x18a)](),this[_0x404e32(0x281)][_0x404e32(0x295)](),_0x21b63b||(this[_0x404e32(0x281)][_0x404e32(0x288)](),this[_0x404e32(0x293)]?.[_0x404e32(0x1aa)](_0x30ea9b(this[_0x404e32(0x279)][_0x404e32(0x1cf)],_0x404e32(0x16c))));}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x166),(_0x5604d6,_0x205403)=>{const _0x41daba=_0x2fe49e;this[_0x41daba(0x281)][_0x41daba(0x274)](_0x205403[_0x41daba(0x259)]);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1d9),(_0x561462,_0x5b41ad)=>{const _0x404c9d=_0x2fe49e;this[_0x404c9d(0x281)][_0x404c9d(0x213)](_0x5b41ad);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1e2),()=>{const _0x31e163=_0x2fe49e;this[_0x31e163(0x281)][_0x31e163(0x24f)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x258),()=>{const _0x3959d4=_0x2fe49e;this[_0x3959d4(0x281)][_0x3959d4(0x24f)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x22a),(_0x2d8569,_0x3c1591)=>{const _0xe4fe5f=_0x2fe49e;this[_0xe4fe5f(0x281)][_0xe4fe5f(0x147)](_0x3c1591,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1d2),(_0x325953,_0x4ce716)=>{const _0x2975fc=_0x2fe49e;this[_0x2975fc(0x281)][_0x2975fc(0x147)](_0x4ce716,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x160),()=>{const _0x473c50=_0x2fe49e;this[_0x473c50(0x281)][_0x473c50(0x269)]();}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x25e),async()=>{const _0x55c23e=_0x2fe49e;await this[_0x55c23e(0x281)][_0x55c23e(0x1d0)]();}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x26a),(_0xe3b573,_0x14360e)=>{const _0x6406d8=_0x2fe49e;this[_0x6406d8(0x281)][_0x6406d8(0x146)](_0x14360e['id']);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x177),(_0x8ef34,_0x199015,_0x3445bc)=>{const _0x5422c0=_0x2fe49e;this[_0x5422c0(0x25f)](_0x199015,_0x3445bc);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x19a),(_0x15ed13,_0x312e43)=>{const _0x37f4a7=_0x2fe49e;_0x37f4a7(0x140)===_0x312e43[_0x37f4a7(0x196)]?this[_0x37f4a7(0x281)][_0x37f4a7(0x14c)](_0x312e43):this[_0x37f4a7(0x281)][_0x37f4a7(0x220)](_0x312e43);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x292),async(_0x49dfec,_0x3ca6e6)=>{const _0x274584=_0x2fe49e;await this[_0x274584(0x1a7)]({'reply':_0x3ca6e6});}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1a6),(_0x283b5d,{reply:_0x1dbd83,index:_0x2adc92,state:_0x1ed6b8})=>{const _0x18ed54=_0x2fe49e;this[_0x18ed54(0x281)][_0x18ed54(0x224)]({'id':_0x1dbd83['id'],'index':_0x2adc92,'state':_0x1ed6b8});}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1dc),(_0x2c8b7b,_0x4f2a47)=>{const _0x46664a=_0x2fe49e;if(this[_0x46664a(0x281)][_0x46664a(0x23e)](_0x4f2a47[_0x46664a(0x18f)],_0x4f2a47[_0x46664a(0x1b3)]),_0x46664a(0x1de)===_0x4f2a47[_0x46664a(0x18f)][_0x46664a(0x196)]){const _0x1f92ad=[..._0xc94297(this[_0x46664a(0x279)])[_0x46664a(0x245)][_0x46664a(0x1db)][_0x46664a(0x1de)][_0x46664a(0x163)]()];this[_0x46664a(0x20c)][_0x46664a(0x273)](_0x1f92ad,_0x46664a(0x181)+this[_0x46664a(0x293)]?.['id']);}}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x229),(_0x357bf4,_0x54b5c6)=>{const _0x30985d=_0x2fe49e;this[_0x30985d(0x281)][_0x30985d(0x157)](_0x54b5c6[_0x30985d(0x28c)]),_0x30985d(0x28e)==_0x54b5c6[_0x30985d(0x28c)]&&this[_0x30985d(0x197)](),_0x30985d(0x1de)===_0x54b5c6[_0x30985d(0x196)]&&this[_0x30985d(0x20c)][_0x30985d(0x1da)](_0x30985d(0x181)+this[_0x30985d(0x293)]?.['id']);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x280),(_0x3bd7bb,_0x2ccf23)=>{const _0x17b37f=_0x2fe49e;this[_0x17b37f(0x281)][_0x17b37f(0x187)](_0x2ccf23[_0x17b37f(0x18f)][_0x17b37f(0x28c)],_0x2ccf23[_0x17b37f(0x1b3)]);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1e3),(_0x226193,_0x1409ac)=>{const _0x523fad=_0x2fe49e;this[_0x523fad(0x281)][_0x523fad(0x154)](_0x1409ac[_0x523fad(0x149)]);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x246),(_0x517bf0,_0x12b1f8)=>{const _0x2c22e4=_0x2fe49e;this[_0x2c22e4(0x281)][_0x2c22e4(0x236)](_0x12b1f8[_0x2c22e4(0x1af)]);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1f7),(_0x49492b,_0x729ebd)=>{const _0x20d7f1=_0x2fe49e;this[_0x20d7f1(0x281)][_0x20d7f1(0x216)](_0x729ebd[_0x20d7f1(0x1b1)],_0x729ebd[_0x20d7f1(0x206)],_0x729ebd[_0x20d7f1(0x201)],_0x729ebd[_0x20d7f1(0x1ba)]);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x251),(_0x21ac97,_0x12b731)=>{const _0x84aa0f=_0x2fe49e;this[_0x84aa0f(0x281)][_0x84aa0f(0x1bb)](_0x12b731[_0x84aa0f(0x1b1)],_0x12b731[_0x84aa0f(0x21b)],_0x12b731[_0x84aa0f(0x28d)]);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x256),(_0x21e5e5,_0x402011)=>{const _0x142d1f=_0x2fe49e;this[_0x142d1f(0x281)][_0x142d1f(0x14d)](_0x402011);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x19d),(_0x481ed0,_0x58fa63)=>{const _0x3729e5=_0x2fe49e;this[_0x3729e5(0x281)][_0x3729e5(0x1c4)](_0x58fa63[_0x3729e5(0x1dd)],_0x58fa63[_0x3729e5(0x252)]);}),this[_0x2fe49e(0x293)]['on'](_0x2fe49e(0x1a5),(_0x2b05c6,{error:_0x2cb47c,interactionId:_0x356d72,fileName:_0xb43dd9,url:_0xfdf342,sourceId:_0xaa0ce9,sourceLabel:_0x39bdeb})=>{const _0x4fb3cf=_0x2fe49e,_0x5d8575=_0x356d72?_0x356d72+':'+_0x1db2a9():_0x1db2a9();_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x17c))?this[_0x4fb3cf(0x281)][_0x4fb3cf(0x271)]({'staticMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x16e)),'id':_0x5d8575}):_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x16f))||_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x1d8))?(this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x19f)),'id':_0x5d8575}),this[_0x4fb3cf(0x1ae)](_0x2cb47c)):_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x18e))?this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x215),_0xb43dd9),'id':_0x5d8575}):_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x13e))?this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x1a0),_0xfdf342),'id':_0x5d8575}):_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x1bf))?this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x267)),'id':_0x5d8575}):_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x26c))?this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x1f2)),'id':_0x5d8575}):_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x1f8))?(_0xaa0ce9&&this[_0x4fb3cf(0x281)][_0x4fb3cf(0x161)](_0xaa0ce9),this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x1ed),_0x39bdeb||_0x4fb3cf(0x206)),'id':_0x5d8575}),this[_0x4fb3cf(0x1ae)](_0x2cb47c)):_0x2cb47c[_0x4fb3cf(0x208)][_0x4fb3cf(0x1ca)](_0x4fb3cf(0x22b))?(this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x241)),'id':_0x5d8575}),this[_0x4fb3cf(0x1ae)](_0x2cb47c)):(this[_0x4fb3cf(0x281)][_0x4fb3cf(0x16a)]({'errorMessage':_0x30ea9b(this[_0x4fb3cf(0x279)][_0x4fb3cf(0x1cf)],_0x4fb3cf(0x168)),'id':_0x5d8575}),this[_0x4fb3cf(0x1ae)](_0x2cb47c));}),await this[_0x2fe49e(0x293)][_0x2fe49e(0x151)](this[_0x2fe49e(0x279)][_0x2fe49e(0x155)][_0x2fe49e(0x253)](_0x2fe49e(0x214))),_0x21b63b||await this[_0x2fe49e(0x293)][_0x2fe49e(0x268)]();}async[_0x59f38d(0x219)]({userMessage:_0x549a08,quickActionData:_0x107b77}){const _0x51101e=_0x59f38d;if(!this[_0x51101e(0x293)])throw new _0xc1fc68(_0x51101e(0x1bc));this[_0x51101e(0x293)][_0x51101e(0x1e1)]()&&await this[_0x51101e(0x293)][_0x51101e(0x1a2)](this[_0x51101e(0x20c)][_0x51101e(0x284)]()),this[_0x51101e(0x293)]['id']&&this[_0x51101e(0x293)][_0x51101e(0x1d3)]&&await this[_0x51101e(0x293)][_0x51101e(0x1a1)]({'userMessage':_0x549a08,'quickActionData':_0x107b77}),this[_0x51101e(0x1fd)]();}[_0x59f38d(0x1fd)](){const _0x508b03=_0x59f38d,_0x23001c=_0xc94297(this[_0x508b03(0x279)])[_0x508b03(0x245)],_0x4cbb1c=Array[_0x508b03(0x260)](_0x23001c[_0x508b03(0x148)][_0x508b03(0x17f)](_0x47a8a5));_0x23001c[_0x508b03(0x276)](_0xf71110=>{const _0x4a05d8=_0x508b03;_0x4cbb1c[_0x4a05d8(0x223)](_0x32e3eb=>_0xf71110[_0x4a05d8(0x272)](_0x32e3eb));});}[_0x59f38d(0x270)](){const _0x460bcb=_0x59f38d;console[_0x460bcb(0x1a9)](_0x460bcb(0x141));}[_0x59f38d(0x1f9)](_0x2816db){const _0x2cd2cb=_0x59f38d;this[_0x2cd2cb(0x281)][_0x2cd2cb(0x1ec)](_0x2816db);}[_0x59f38d(0x1ae)](_0x366bf4){const _0x2a69d1=_0x59f38d;_0x294b23(_0x366bf4[_0x2a69d1(0x208)]);}[_0x59f38d(0x231)](_0x25ad05){const _0x37071c=_0x59f38d;this[_0x37071c(0x293)]?.[_0x37071c(0x1fa)](_0x25ad05);}[_0x59f38d(0x20e)](){const _0x82250a=_0x59f38d;this[_0x82250a(0x293)]?.[_0x82250a(0x239)]();}[_0x59f38d(0x144)](){const _0x6099de=_0x59f38d;this[_0x6099de(0x293)]?.[_0x6099de(0x193)]();}[_0x59f38d(0x1ac)](_0x30f863){const _0x2769a2=_0x59f38d,[_0x23e715,_0x5e1802]=_0x30f863[_0x2769a2(0x211)](':'),_0x504bce=this[_0x2769a2(0x293)][_0x2769a2(0x27b)](_0x23e715),_0x3769a8=_0x504bce[_0x2769a2(0x1c2)](_0x5e1802);return{'interaction':_0x504bce,'reply':_0x3769a8};}[_0x59f38d(0x278)](_0x337320,_0x3798c1=!0x1){const _0x3650ff=_0x59f38d,_0x23ba14=_0xc94297(this[_0x3650ff(0x279)]),_0x11577a={'target':_0x23ba14[_0x3650ff(0x21c)][_0x3650ff(0x1f5)][_0x3650ff(0x1ff)][_0x3650ff(0x27f)](_0x23ba14[_0x3650ff(0x21c)][_0x3650ff(0x225)][_0x3650ff(0x27e)](_0x337320)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3798c1};_0x3798c1&&(_0x11577a[_0x3650ff(0x234)]=!0x0),_0x267891(_0x11577a);}[_0x59f38d(0x25f)](_0x14a59a,_0x4d6ca8=!0x1){const _0x4b4811=_0x59f38d;this[_0x4b4811(0x281)][_0x4b4811(0x177)](_0x14a59a||_0x30ea9b(this[_0x4b4811(0x279)][_0x4b4811(0x1cf)],_0x4b4811(0x16d)),_0x4d6ca8);}async[_0x59f38d(0x1a7)]({reply:_0x33d58b,renderingStrategy:_0x2bf28f}){const _0x24c7ab=_0x59f38d,{id:_0x34decb,isDone:_0x201f31,type:_0x41da81,parsedContent:_0x4dc14a}=_0x33d58b;if(_0x24c7ab(0x17d)===_0x41da81){const _0x296bd6=_0x33d58b[_0x24c7ab(0x198)]({'showDiff':this[_0x24c7ab(0x281)][_0x24c7ab(0x170)]});await this[_0x24c7ab(0x281)][_0x24c7ab(0x192)]({'id':_0x34decb,'parts':_0x296bd6,'renderingStrategy':_0x2bf28f,'isDone':_0x201f31});}else _0x24c7ab(0x140)===_0x41da81&&await this[_0x24c7ab(0x281)][_0x24c7ab(0x175)]({'id':_0x34decb,'parsedContent':_0x4dc14a,'renderingStrategy':_0x2bf28f,'isDone':_0x201f31});_0x201f31&&_0x33d58b[_0x24c7ab(0x1b9)][_0x24c7ab(0x18b)]>0x0&&this[_0x24c7ab(0x281)][_0x24c7ab(0x218)](_0x34decb,_0x33d58b[_0x24c7ab(0x1b9)]);}async[_0x59f38d(0x1d1)](){const _0x165014=_0x59f38d,_0x4b07ff=this[_0x165014(0x293)]?.[_0x165014(0x153)];_0x4b07ff&&(_0x4b07ff[_0x165014(0x1d4)](),this[_0x165014(0x281)][_0x165014(0x27c)](_0x4b07ff));}async[_0x59f38d(0x264)](){const _0xdf6899=_0x59f38d,_0x1715c9=this[_0xdf6899(0x293)]?.[_0xdf6899(0x153)];if(_0x1715c9){for await(const _0x418399 of _0x1715c9[_0xdf6899(0x1fe)])await this[_0xdf6899(0x1a7)]({'reply':_0x418399,'renderingStrategy':_0xdf6899(0x190)});}}[_0x59f38d(0x217)](_0x1f55fc){const _0x59d61a=_0x59f38d,_0x154046={'positiveCount':_0x1f55fc[_0x59d61a(0x20b)][_0x59d61a(0x25c)](_0x3e8fe0=>_0x59d61a(0x1c6)===_0x3e8fe0[_0x59d61a(0x164)])[_0x59d61a(0x18b)],'totalCount':_0x1f55fc[_0x59d61a(0x20b)][_0x59d61a(0x18b)],'modificationId':_0x1f55fc['id']},_0x261c2e=this[_0x59d61a(0x293)][_0x59d61a(0x27b)](_0x1f55fc[_0x59d61a(0x296)])[_0x59d61a(0x183)];this[_0x59d61a(0x1b4)][_0x59d61a(0x24a)](this[_0x59d61a(0x293)]['id'],_0x261c2e,_0x154046);}}
|
|
23
|
+
const _0x3f0e4e=_0x5873;(function(_0x22dd5b,_0x299a7c){const _0x2c6ab7=_0x5873,_0x59aaf3=_0x22dd5b();while(!![]){try{const _0x4bce80=-parseInt(_0x2c6ab7(0x1b7))/0x1+-parseInt(_0x2c6ab7(0x254))/0x2*(-parseInt(_0x2c6ab7(0x241))/0x3)+parseInt(_0x2c6ab7(0x24f))/0x4+-parseInt(_0x2c6ab7(0x249))/0x5*(-parseInt(_0x2c6ab7(0x2b9))/0x6)+-parseInt(_0x2c6ab7(0x1d4))/0x7+-parseInt(_0x2c6ab7(0x1d3))/0x8*(-parseInt(_0x2c6ab7(0x1b6))/0x9)+parseInt(_0x2c6ab7(0x27e))/0xa;if(_0x4bce80===_0x299a7c)break;else _0x59aaf3['push'](_0x59aaf3['shift']());}catch(_0x479c56){_0x59aaf3['push'](_0x59aaf3['shift']());}}}(_0x101f,0xab9fc));function _0x5873(_0x228c82,_0x543c4e){const _0x101fb4=_0x101f();return _0x5873=function(_0x58738b,_0x2dbba2){_0x58738b=_0x58738b-0x195;let _0x130ee6=_0x101fb4[_0x58738b];return _0x130ee6;},_0x5873(_0x228c82,_0x543c4e);}import{ContextPlugin as _0x3d5196,Editor as _0xf7fefe}from'ckeditor5/src/core.js';import{CKEditorError as _0x1e9b3b,logError as _0x3c1905,scrollViewportToShowTarget as _0x1596df,uid as _0x416d88}from'ckeditor5/src/utils.js';import{AIConnector as _0x369b38}from'../aicore/aiconnector.js';import{AITabs as _0x2a1897}from'../aitabs/aitabs.js';import{AIChatConversation as _0x470ab6}from'./model/aichatconversation.js';function _0x101f(){const _0x46ab82=['slice','addFeedItemAISuggestion','AI_CHAT_CONTEXT_INVALID_DATA','error','isStarted','ai.chat.models.defaultModelId','redo','marker','AIEditing','addFeedItemUserMessage','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_handleStartConversation','AIConnector','ai-chat-missing-channel-id','root','_getDocumentRangeForReplyChanges','requires','createRange','outdated','showPrevious','createPositionAt','addSelectionToChatContext','_openBalloonFor','loadSourceResources','contextItem','lastInteraction','log','setContextItemLoading','76600lFnIAa','ai-chat-controller-mouse-over','parse','ai-request-aborted','data','editors','modelSelected','context','content','updateResourceState','addContextOptionsChanged','$graveyard','updateCurrentDocumentInContext','changeGroups','setChangeGroupState','AIChatUI','getAttribute','AI_CHAT_UNABLE_TO_START_CONVERSATION','toViewRange','toggleWebSearch','open','addFeedItemError','sourcePosition','isInContext','stop','getChild','_showConversationHistory','interactionFinished','replies','addResourceToContext','finishInteraction','replyContentUpdated','addCurrentDocumentToContext','pending','addFilesToContext','uid','rejectSuggestion','delete','_handleUIUserMessage','getInteractionAndReplyById','removeFromContext','contextSent','capabilitiesUpdated','main','document','mouseLeaveSuggestion','messageId','has','contextItemAdded','_toggleReasoning','isCurrentDocumentInContext','createConversation','showChangeInText','current-document','query','ai-chat-conversation-init-failed','scrollFeedToSuggestion','ai-chat-context-invalid-data','howMany','6HPQgTf','set','_insertSuggestion','removed','ai-chat-file-upload-failed','getRoot','get','uiId','TrackChanges','mapper','changes','addSelectionToContext','_removeAISelectionMarkers','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','addContextItem','type','_aiChatUi','maxOffset','startInteraction','activeConversation','sources','updateFeedItemAIReplyContent','init','contextItems','interactionId','ai-chat-context-unsupported-type','toggleReasoning','abortPromptStream','upsertAIChatRating','showFakeVisualSelection','DocumentCompare','state','ai-chat-conversation-start-failed','interactionCreated','find','setFeedItemRenderingStrategy','chat','updateFeedItemAIReplySuggestionContent','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','revert','_previewedChangeGroup','setConversationTitle','contextItemLoadingEnded','isCurrentDocumentInConversation','load','mouseOverSuggestion','resourceId','rootName','resizedTabs','clearPendingContextUI','view','getChildren','createPositionFromPath','text-delta','ai.availableReplyActions','conversationInitialized','length','replyId','_toggleWebSearch','_integrateEditor','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_updateRatings','hideFakeVisualSelection','undo','_aiChatModels','webSearchStarted','_batchToChanges','ready','sendUserMessage','options','AI_BALLOON_HEADER_TITLE','removeContextItem','replyChangeGroupStateUpdated','getPath','viewRangeToDom','showNext','_aiConnector','setIsMaximized','map','resetMessageInput','accepted','reasoningStarted','findIndex','full','_balloonShowDiff','isOfficialPlugin','stopListening','new','disableControls','node','end','baseVersion','1507302UbgqxT','579342DPEhUa','updateFeedItemAIReplySources','activateTab','contextItemRemoved','resetConversationTitle','addFeedItemAIReply','getInteraction','clearConversationContextUI','getDocumentData','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_setIsMaximized','forEach','children','Failed\x20to\x20load\x20conversation','partIndex','getGroupId','startsWith','_logError','documentContextContent','afterInit','sendMessage','unshift','webSearchFinished','closeSourceResourceBalloon','like','sourceResourcesLoaded','setLoadingMessage','addFeedItemStaticMessage','40STyLrH','6242831NBlkGM','selectModel','addFeedInteractionHeader','isUploadInProgress','version','getDocumentContext','toggleLoadingSkeleton','isPremiumPlugin','message','isLoading','remove','_startConversationSafely','resize','index','modification-delta','AI_CHAT_UNTITLED_CONVERSATION','source','split','ai-no-track-changes','cloneNode','ai-chat-url-upload-failed','commands','selection','listenTo','selectedModel','addUrlToContext','applyOperation','reasoningFinished','nextSibling','getMarkersGroup','_createFromRanges','getTransformedByOperation','collaboration.channelId','interactionStarted','data-id','indexes','change','AI_CHAT_GENERIC_ERROR','addDocumentToContext','Undo','ai-conversation-','resource','stopInteraction','isModelAvailable','startAutoScroll','AIChatController','resourceStateChanged','replyCreated','updateCapabilities','toggleSuggestionDisplayMode','getChildAtOffset','start','showDiff','ai.chat.context','streaming','enableControls','AI_CHAT_RESOURCE_LOAD_FAILED','ai.chat.models.displayedModels','alignToTop','getRanges','removeFeedInteraction','getFirstRange','pluginName','updateConversationTitle','batch','resources','history','isDisabled','getSelectionText','domConverter','getReply','anchorId','plugins','Liked\x20response','_flushLastInteractionUI','resizeTabs','static','Showing\x20conversation\x20history...','getContentParts','updateContent','editing','Disliked\x20response','path','applySuggestion','dialogClosed','getOperations','removeSelectionFromChatContext','startConversation','focusPromptInput','add','AI_CHAT_ABORTED_MESSAGE','ai-chat-controller-no-active-conversation','loadConversation','indexOf','_applySuggestion','_aiEditing','_scrollToSuggestionRange','markers','from','setModel','model','sourceId','isOpen','handleUserInteraction','_removeFromContext','populateSourceResourceBalloon','dislike','_stopLastInteraction','_updateReplyContent','3AIlEWr','filter','hasChanges','updateFeedItemAIReplySuggestionPartState','locale','range','setAddContextOptions','_applyOperationsAsSuggestions','1150405jmbrHr','uploadProgressChanged','interactionDestroyed','TrackChangesEditing','push','setIsUploadInProgress','3584312ayiQjy','close','addOperation','toString','ai-chat-resource-load-failed','405876MUcbAM','config','removeMarker','addFileToContext','insertSuggestion','isDocumentOperation','handleRemovedConversation','ai-chat-source-resources-load-failed','removeSelectionFromContext','getDiff','setSelectedModel','rejected','setConversationContext','AITabs'];_0x101f=function(){return _0x46ab82;};return _0x101f();}import{getTranslation as _0x3610a1}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x823a86}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x54b317}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x226989}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2b4fc0}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x3de2e6,DATA_ID_MODEL_ATTRIBUTE as _0x55edee}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5b162f,getOperationsFromReply as _0x4671bd}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xc37610,getMinimalSelection as _0x11bb9a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0xd0bcd1,_DetachOperation as _0x5382b6}from'ckeditor5/src/engine.js';import{findOne as _0x2b4cab,getAttribute as _0x310d02,serialize as _0x1354a1,Document as _0x30c88d,findByAttribute as _0x5e155c}from'../aicore/utils/htmlparser.js';import{IconAI as _0xba88b9}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x535f23}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x50f6b4}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3d5196{[_0x3f0e4e(0x233)];[_0x3f0e4e(0x1a6)];[_0x3f0e4e(0x2c9)];[_0x3f0e4e(0x19a)];[_0x3f0e4e(0x19c)]=new Map();[_0x3f0e4e(0x2e1)]=null;[_0x3f0e4e(0x1ae)]=!0x1;static get[_0x3f0e4e(0x272)](){return[_0x369b38,_0x50f6b4,_0x3de2e6];}static get[_0x3f0e4e(0x212)](){const _0x41b896=_0x3f0e4e;return _0x41b896(0x201);}static get[_0x3f0e4e(0x1af)](){return!0x0;}static get[_0x3f0e4e(0x1db)](){return!0x0;}[_0x3f0e4e(0x2cf)](){const _0x5b1a15=_0x3f0e4e;this[_0x5b1a15(0x1a6)]=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x26e)),this[_0x5b1a15(0x2c9)]=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x28d)),this[_0x5b1a15(0x233)]=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x26a)),this[_0x5b1a15(0x19a)]=new _0x226989({'connector':this[_0x5b1a15(0x1a6)],'availableModels':this[_0x5b1a15(0x285)][_0x5b1a15(0x255)][_0x5b1a15(0x2bf)](_0x5b1a15(0x20d)),'defaultModelId':this[_0x5b1a15(0x285)][_0x5b1a15(0x255)][_0x5b1a15(0x2bf)](_0x5b1a15(0x267))});const _0x40e646=this[_0x5b1a15(0x285)][_0x5b1a15(0x21c)][_0x5b1a15(0x2bf)](_0x5b1a15(0x261));this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x22b),()=>{const _0x95a55e=_0x5b1a15;this[_0x95a55e(0x1df)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x19e),(_0x54b908,_0x55be1d)=>{const _0x48c3a2=_0x5b1a15;this[_0x48c3a2(0x2a4)]({'userMessage':_0x55be1d});}),this[_0x5b1a15(0x1eb)](_0x40e646,_0x5b1a15(0x2e9),(_0x3ece01,_0x4ab6fe)=>{const _0x3ad249=_0x5b1a15;this[_0x3ad249(0x1c1)](_0x4ab6fe);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x21f),()=>{const _0x63af7=_0x5b1a15;_0x40e646[_0x63af7(0x1e0)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2d4),async()=>{const _0x37764c=_0x5b1a15;await this[_0x37764c(0x23f)](),await this[_0x37764c(0x21e)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1fa),()=>{const _0x11c484=_0x5b1a15;this[_0x11c484(0x2cc)]?.[_0x11c484(0x29e)](_0x3610a1(this[_0x11c484(0x285)][_0x11c484(0x245)],_0x11c484(0x2df)));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x257),(_0x1fc0a4,_0x473e9b)=>{const _0x40cfbc=_0x5b1a15;this[_0x40cfbc(0x2cc)]?.[_0x40cfbc(0x2a0)](Array[_0x40cfbc(0x236)](_0x473e9b));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1ed),(_0x296f47,_0x52ab85)=>{const _0x2faffa=_0x5b1a15;this[_0x2faffa(0x2cc)]?.[_0x2faffa(0x1ed)](_0x52ab85);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x29b),(_0x2c510d,_0x10a589)=>{const _0x3d5c93=_0x5b1a15;this[_0x3d5c93(0x2cc)]?.[_0x3d5c93(0x29b)](_0x10a589[_0x3d5c93(0x1e4)],_0x10a589[_0x3d5c93(0x1fd)]);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1a1),(_0x5d86a2,_0x481c31)=>{const _0x3c0f39=_0x5b1a15;this[_0x3c0f39(0x23c)](_0x481c31);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x279),(_0xd3d71e,_0x4488ac)=>{const _0x5b4da3=_0x5b1a15;this[_0x5b4da3(0x2cc)]?.[_0x5b4da3(0x279)](_0x4488ac[_0x5b4da3(0x239)],_0x4488ac[_0x5b4da3(0x2b4)],_0x4488ac[_0x5b4da3(0x2a1)]);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x291),()=>{const _0x514c09=_0x5b1a15;this[_0x514c09(0x2f3)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2d3),()=>{const _0x5cc652=_0x5b1a15;this[_0x5cc652(0x2af)]();}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1d5),(_0x59e777,_0x17c9c2)=>{const _0x4e21c2=_0x5b1a15;this[_0x4e21c2(0x2cc)]?.[_0x4e21c2(0x237)](_0x17c9c2);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x1cf),(_0x2a8f61,{replyId:_0x55487b})=>{const _0x3e4613=_0x5b1a15;console[_0x3e4613(0x27c)](_0x3e4613(0x21d),_0x55487b);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x23e),(_0x39e800,{replyId:_0x9e461c})=>{const _0x278355=_0x5b1a15;console[_0x278355(0x27c)](_0x278355(0x225),_0x9e461c);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x258),(_0x46e277,_0x336b4c)=>{const _0x39a5bf=_0x5b1a15;this[_0x39a5bf(0x285)][_0x39a5bf(0x21c)][_0x39a5bf(0x2bf)](_0x50f6b4)[_0x39a5bf(0x250)](),this[_0x39a5bf(0x2bb)](_0x336b4c);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2b2),(_0x462055,{replyId:_0x13ccf1,partIndex:_0x4aa634})=>{const _0x1378ef=_0x5b1a15;this[_0x1378ef(0x1ae)]=this[_0x1378ef(0x2c9)][_0x1378ef(0x208)],this[_0x1378ef(0x278)](_0x13ccf1,_0x4aa634);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2e6),(_0x4529cf,{replyId:_0x2d44e3,partIndex:_0x73e591})=>{const _0x2f47e5=_0x5b1a15,_0x28d448=this[_0x2f47e5(0x271)](_0x2d44e3,_0x73e591);_0x28d448&&_0x2f47e5(0x289)!=_0x28d448[_0x2f47e5(0x246)][_0x2f47e5(0x270)][_0x2f47e5(0x2e8)]&&this[_0x2f47e5(0x233)][_0x2f47e5(0x2d6)]([_0x28d448[_0x2f47e5(0x246)]],_0x2f47e5(0x27f));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2ab),()=>{const _0x248c75=_0x5b1a15;this[_0x248c75(0x233)][_0x248c75(0x198)](_0x248c75(0x27f));}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x227),(_0x4db84c,_0xb2c0ef)=>{const _0x440fc9=_0x5b1a15;this[_0x440fc9(0x285)][_0x440fc9(0x21c)][_0x440fc9(0x2bf)](_0x50f6b4)[_0x440fc9(0x250)](),this[_0x440fc9(0x232)](_0xb2c0ef);}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x205),async(_0x176add,{replyId:_0x1f0ff2,showDiff:_0x203d87})=>{const _0x433c62=_0x5b1a15,{reply:_0x325fcf}=this[_0x433c62(0x2a5)](_0x1f0ff2),_0xc7565=_0x325fcf[_0x433c62(0x222)]({'showDiff':_0x203d87});await this[_0x433c62(0x2c9)][_0x433c62(0x2de)]({'id':_0x325fcf['id'],'parts':_0xc7565,'renderingStrategy':_0x433c62(0x220)});}),this[_0x5b1a15(0x1eb)](this[_0x5b1a15(0x2c9)],_0x5b1a15(0x2a2),(_0x393edf,{replyId:_0x23b9e5,partIndex:_0x4b90a7})=>{const _0x34a16a=_0x5b1a15;this[_0x34a16a(0x2e1)]?.[_0x34a16a(0x2f2)]==_0x23b9e5&&this[_0x34a16a(0x2e1)]?.[_0x34a16a(0x1c5)]==_0x4b90a7&&this[_0x34a16a(0x285)][_0x34a16a(0x21c)][_0x34a16a(0x2bf)](_0x50f6b4)[_0x34a16a(0x250)]();const {reply:_0x1f43ba}=this[_0x34a16a(0x2a5)](_0x23b9e5);_0x1f43ba[_0x34a16a(0x28c)](_0x4b90a7,_0x34a16a(0x25f)),this[_0x34a16a(0x233)][_0x34a16a(0x198)](_0x34a16a(0x27f));});}async[_0x3f0e4e(0x1ca)](){const _0x4ac25c=_0x3f0e4e;this[_0x4ac25c(0x285)]instanceof _0xf7fefe?this[_0x4ac25c(0x195)](this[_0x4ac25c(0x285)]):this[_0x4ac25c(0x1eb)](this[_0x4ac25c(0x285)][_0x4ac25c(0x283)],_0x4ac25c(0x22d),(_0x441134,_0x2824d1)=>{const _0x200f7a=_0x4ac25c;_0x2824d1['on'](_0x200f7a(0x19d),()=>{const _0x36bb77=_0x200f7a;this[_0x36bb77(0x195)](_0x2824d1);});}),await this[_0x4ac25c(0x1df)]();}[_0x3f0e4e(0x2bb)](_0x3a4aad){const _0x2d8d04=_0x3f0e4e,_0x3d573c=_0x2b4fc0(this[_0x2d8d04(0x285)]);if(!_0x3d573c[_0x2d8d04(0x21c)][_0x2d8d04(0x2ad)](_0x2d8d04(0x2c1)))throw new _0x1e9b3b(_0x2d8d04(0x1e6),null);const _0x541b70=this[_0x2d8d04(0x285)][_0x2d8d04(0x21c)][_0x2d8d04(0x2bf)](_0x2d8d04(0x2d7)),{reply:_0x3de5db,interaction:_0x35001c}=this[_0x2d8d04(0x2a5)](_0x3a4aad[_0x2d8d04(0x2f2)]),_0x2cf1d2=this[_0x2d8d04(0x271)](_0x3a4aad[_0x2d8d04(0x2f2)],_0x3a4aad[_0x2d8d04(0x1c5)]),_0x1269a3=void 0x0!==_0x3a4aad[_0x2d8d04(0x1c5)]?[_0x3de5db[_0x2d8d04(0x28b)][_0x3a4aad[_0x2d8d04(0x1c5)]]]:_0x3de5db[_0x2d8d04(0x28b)][_0x2d8d04(0x242)](_0x51bca3=>_0x2d8d04(0x29f)==_0x51bca3[_0x2d8d04(0x2d8)]),_0x5d507a=_0x1269a3[_0x2d8d04(0x1a8)](_0x1779a1=>_0x3de5db[_0x2d8d04(0x28b)][_0x2d8d04(0x231)](_0x1779a1));if(!_0x2cf1d2||_0x2d8d04(0x289)==_0x2cf1d2[_0x2d8d04(0x246)][_0x2d8d04(0x270)][_0x2d8d04(0x2e8)])return void _0x5d507a[_0x2d8d04(0x1c2)](_0x5cba89=>_0x3de5db[_0x2d8d04(0x28c)](_0x5cba89,_0x2d8d04(0x274)));_0x5d507a[_0x2d8d04(0x1c2)](_0x5581bb=>_0x3de5db[_0x2d8d04(0x28c)](_0x5581bb,_0x2d8d04(0x1aa)));const _0x1098a4=_0x4671bd({'editor':_0x3d573c,'reply':_0x3de5db,'interaction':_0x35001c,'groups':_0x1269a3,'transform':!0x0,'documentCompare':_0x541b70,'documentCompareOptions':{'anchor':_0x2d8d04(0x2a9),'markDeletions':!0x0}});let _0x121036;_0x2cf1d2&&this[_0x2d8d04(0x234)](_0x2cf1d2[_0x2d8d04(0x246)]),_0x3d573c[_0x2d8d04(0x238)][_0x2d8d04(0x1f8)](_0x4d6821=>{const _0x2313fc=_0x2d8d04;_0x121036=_0x4d6821[_0x2313fc(0x214)],_0x3d573c[_0x2313fc(0x21c)][_0x2313fc(0x2bf)](_0x2313fc(0x24c))[_0x2313fc(0x248)](_0x1098a4),this[_0x2313fc(0x233)][_0x2313fc(0x198)](_0x2313fc(0x27f));}),this[_0x2d8d04(0x19c)][_0x2d8d04(0x2ba)](_0x121036,{'interactionId':_0x35001c['id'],'replyId':_0x3de5db['id'],'indexes':_0x5d507a[_0x2d8d04(0x262)]()}),this[_0x2d8d04(0x197)](_0x3de5db);}[_0x3f0e4e(0x232)](_0x34028f){const _0x140835=_0x3f0e4e,_0x26c6ba=_0x2b4fc0(this[_0x140835(0x285)]),_0x43d874=this[_0x140835(0x285)][_0x140835(0x21c)][_0x140835(0x2bf)](_0x3de2e6),{reply:_0x4ee179,interaction:_0x4e37f9}=this[_0x140835(0x2a5)](_0x34028f[_0x140835(0x2f2)]),_0x4621ff=this[_0x140835(0x271)](_0x34028f[_0x140835(0x2f2)],_0x34028f[_0x140835(0x1c5)]),_0x245aad=void 0x0!==_0x34028f[_0x140835(0x1c5)]?[_0x4ee179[_0x140835(0x28b)][_0x34028f[_0x140835(0x1c5)]]]:_0x4ee179[_0x140835(0x28b)][_0x140835(0x242)](_0x3a4603=>_0x140835(0x29f)==_0x3a4603[_0x140835(0x2d8)]),_0x25e927=_0x245aad[_0x140835(0x1a8)](_0x441018=>_0x4ee179[_0x140835(0x28b)][_0x140835(0x231)](_0x441018));if(!_0x4621ff||_0x140835(0x289)==_0x4621ff[_0x140835(0x246)][_0x140835(0x270)][_0x140835(0x2e8)])return void _0x25e927[_0x140835(0x1c2)](_0x52ec59=>_0x4ee179[_0x140835(0x28c)](_0x52ec59,_0x140835(0x274)));_0x25e927[_0x140835(0x1c2)](_0x33dec2=>_0x4ee179[_0x140835(0x28c)](_0x33dec2,_0x140835(0x1aa)));const _0x2d63f4=_0x4671bd({'editor':_0x26c6ba,'reply':_0x4ee179,'interaction':_0x4e37f9,'groups':_0x245aad,'transform':!0x0,'documentCompare':_0x43d874,'documentCompareOptions':{'anchor':_0x140835(0x2a9),'markDeletions':!0x1}});let _0x138ed1;_0x4621ff&&this[_0x140835(0x234)](_0x4621ff[_0x140835(0x246)]),_0x26c6ba[_0x140835(0x238)][_0x140835(0x1f8)](_0x2d5e39=>{const _0x3a7c35=_0x140835;_0x138ed1=_0x2d5e39[_0x3a7c35(0x214)];for(const _0x2a7669 of _0x2d63f4)_0x2a7669[_0x3a7c35(0x1b5)]=_0x26c6ba[_0x3a7c35(0x238)][_0x3a7c35(0x2aa)][_0x3a7c35(0x1d8)],_0x5b162f(_0x26c6ba,_0x2a7669),_0x2d5e39[_0x3a7c35(0x214)][_0x3a7c35(0x251)](_0x2a7669),_0x26c6ba[_0x3a7c35(0x238)][_0x3a7c35(0x1ee)](_0x2a7669);}),this[_0x140835(0x19c)][_0x140835(0x2ba)](_0x138ed1,{'interactionId':_0x4e37f9['id'],'replyId':_0x4ee179['id'],'indexes':_0x25e927[_0x140835(0x262)]()}),this[_0x140835(0x197)](_0x4ee179);}[_0x3f0e4e(0x278)](_0x15b25b,_0x425ec2){const _0x132c1b=_0x3f0e4e,_0x49ea59=_0x2b4fc0(this[_0x132c1b(0x285)]),_0x872fbd=this[_0x132c1b(0x271)](_0x15b25b,_0x425ec2),_0x120997=this[_0x132c1b(0x285)][_0x132c1b(0x21c)][_0x132c1b(0x2bf)](_0x50f6b4);if(!_0x872fbd)return void _0x120997[_0x132c1b(0x250)]();const {range:_0x14139d,currentIndex:_0x4a30f3}=_0x872fbd;if(_0x132c1b(0x289)==_0x14139d[_0x132c1b(0x270)][_0x132c1b(0x2e8)]){const {reply:_0x4f2186}=this[_0x132c1b(0x2a5)](_0x15b25b);return _0x4f2186[_0x132c1b(0x28c)](_0x4a30f3,_0x132c1b(0x274)),void _0x120997[_0x132c1b(0x250)]();}if(this[_0x132c1b(0x2e1)]?.[_0x132c1b(0x2f2)]==_0x15b25b&&this[_0x132c1b(0x2e1)]?.[_0x132c1b(0x1c5)]==_0x4a30f3)return;this[_0x132c1b(0x1b0)](_0x120997),this[_0x132c1b(0x2e1)]={'replyId':_0x15b25b,'partIndex':_0x4a30f3};let _0x22b66e=_0x49ea59[_0x132c1b(0x255)][_0x132c1b(0x2bf)](_0x132c1b(0x2ef))||[..._0x54b317];_0x49ea59[_0x132c1b(0x21c)][_0x132c1b(0x2ad)](_0x132c1b(0x2c1))||(_0x22b66e=_0x22b66e[_0x132c1b(0x242)](_0x5d8c92=>_0x132c1b(0x258)!=_0x5d8c92));const _0x6f2597=new _0x535f23(_0x49ea59[_0x132c1b(0x245)],{'showDiff':this[_0x132c1b(0x1ae)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x132c1b(0x1ad)},'hideHeader':!0x0,'availableActions':_0x22b66e});this[_0x132c1b(0x1b0)](_0x6f2597);const {reply:_0x4c0c09}=this[_0x132c1b(0x2a5)](_0x15b25b),_0x410f4d=_0x4c0c09[_0x132c1b(0x222)]({'showDiff':this[_0x132c1b(0x1ae)]})[_0x132c1b(0x242)](_0x21e6f3=>_0x21e6f3[_0x132c1b(0x243)]),_0x38c515=_0x410f4d[_0x132c1b(0x1ac)](_0x1597b9=>_0x1597b9[_0x132c1b(0x1e1)]==_0x4a30f3);if(-0x1==_0x38c515)return;const _0x2488fe=_0x410f4d[_0x38c515],_0x37b2b3=_0x410f4d['at']((_0x38c515-0x1)%_0x410f4d[_0x132c1b(0x2f1)])?.[_0x132c1b(0x1e1)],_0x3f240d=_0x410f4d['at']((_0x38c515+0x1)%_0x410f4d[_0x132c1b(0x2f1)])?.[_0x132c1b(0x1e1)];_0x6f2597[_0x132c1b(0x223)]({'parts':[_0x2488fe],'renderingStrategy':_0x132c1b(0x220)});const _0x1cbb3a=_0x4a30f3!==_0x37b2b3;this[_0x132c1b(0x234)](_0x14139d,!0x0),_0x120997[_0x132c1b(0x292)]({'index':_0x4a30f3,'title':_0x3610a1(this[_0x132c1b(0x285)][_0x132c1b(0x245)],_0x132c1b(0x1a0),(_0x38c515+0x1)[_0x132c1b(0x252)]()),'icon':_0xba88b9,'mainView':_0x6f2597,'showRotator':_0x1cbb3a,'showApplyButton':!0x0,'showSuggestButton':_0x49ea59[_0x132c1b(0x21c)][_0x132c1b(0x2ad)](_0x132c1b(0x2c1)),'ranges':[_0x14139d]}),this[_0x132c1b(0x2c9)][_0x132c1b(0x2b6)](_0x15b25b,_0x4a30f3),this[_0x132c1b(0x1eb)](_0x6f2597,_0x132c1b(0x205),(_0x44ca28,{showDiff:_0xca1edf})=>{const _0x2c94e1=_0x132c1b;this[_0x2c94e1(0x1ae)]=_0xca1edf;const {reply:_0x57ca4e}=this[_0x2c94e1(0x2a5)](_0x15b25b),_0x25c9aa=_0x57ca4e[_0x2c94e1(0x222)]({'showDiff':_0xca1edf,'groupIndex':_0x4a30f3});_0x6f2597[_0x2c94e1(0x223)]({'parts':_0x25c9aa,'renderingStrategy':_0x2c94e1(0x220)});}),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x227),()=>{const _0x42e8b0=_0x132c1b;this[_0x42e8b0(0x232)]({'replyId':_0x15b25b,'partIndex':_0x4a30f3}),_0x1cbb3a?this[_0x42e8b0(0x278)](_0x15b25b,_0x3f240d):_0x120997[_0x42e8b0(0x250)]();}),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x258),()=>{const _0x5245aa=_0x132c1b;this[_0x5245aa(0x2bb)]({'replyId':_0x15b25b,'partIndex':_0x4a30f3}),_0x1cbb3a?this[_0x5245aa(0x278)](_0x15b25b,_0x3f240d):_0x120997[_0x5245aa(0x250)]();}),_0x1cbb3a&&(this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x1a5),()=>{const _0x1b615b=_0x132c1b;this[_0x1b615b(0x278)](_0x15b25b,_0x3f240d);}),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x275),()=>{const _0x437e2=_0x132c1b;this[_0x437e2(0x278)](_0x15b25b,_0x37b2b3);})),this[_0x132c1b(0x1eb)](_0x120997,_0x132c1b(0x228),()=>{const _0x22265c=_0x132c1b;this[_0x22265c(0x1b0)](_0x120997),this[_0x22265c(0x1b0)](_0x6f2597),this[_0x22265c(0x2e1)]=null;});}[_0x3f0e4e(0x271)](_0x3bb684,_0x153951){const _0x976dd9=_0x3f0e4e,_0x170c88=_0x2b4fc0(this[_0x976dd9(0x285)]),{reply:_0x4509a8,interaction:_0x3aa603}=this[_0x976dd9(0x2a5)](_0x3bb684),_0x3c85c8=_0x4509a8[_0x976dd9(0x28b)][_0x976dd9(0x242)](_0x5846a2=>_0x976dd9(0x29f)==_0x5846a2[_0x976dd9(0x2d8)]),_0x1faf68=_0x3c85c8[_0x976dd9(0x1a8)](_0x13ad27=>_0x4509a8[_0x976dd9(0x28b)][_0x976dd9(0x231)](_0x13ad27));void 0x0===_0x153951&&(_0x153951=_0x1faf68[0x0]);const _0x41081d=_0x1faf68[_0x976dd9(0x231)](_0x153951);if(-0x1==_0x41081d)return null;const _0x330712=_0x3c85c8[_0x41081d],_0xd601ba=new _0x30c88d([]),_0x3a745a=new _0x30c88d([]);for(const _0x4aace9 of _0x330712[_0x976dd9(0x2c3)])if(_0x976dd9(0x2bc)!=_0x4aace9[_0x976dd9(0x2c8)]&&_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x4aace9[_0x976dd9(0x1b3)][_0x976dd9(0x1e7)](!0x0)),_0x976dd9(0x1b1)!=_0x4aace9[_0x976dd9(0x2c8)]){const _0x29e458=_0x2b4cab(_0x2ce4b5=>_0x310d02(_0x2ce4b5,_0x976dd9(0x1f6))==_0x4aace9['id'],_0x4509a8[_0x976dd9(0x1c9)],!0x0);_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x29e458[_0x976dd9(0x1e7)](!0x0));}if(0x0==_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x2f1)]){if(_0x330712[_0x976dd9(0x2c3)][0x0][_0x976dd9(0x21b)]){const _0x2cd5fb=_0x5e155c(_0x976dd9(0x1f6),_0x330712[_0x976dd9(0x2c3)][0x0][_0x976dd9(0x21b)],_0x4509a8[_0x976dd9(0x1c9)]);_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x1cc)](_0x2cd5fb[_0x976dd9(0x1e7)](!0x0)),_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x1cc)](_0x2cd5fb[_0x976dd9(0x1e7)](!0x0)),_0x2cd5fb[_0x976dd9(0x1f0)]&&(_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x2cd5fb[_0x976dd9(0x1f0)][_0x976dd9(0x1e7)](!0x0)),_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x2cd5fb[_0x976dd9(0x1f0)][_0x976dd9(0x1e7)](!0x0)));}else{const _0x547c7f=_0x4509a8[_0x976dd9(0x1c9)][_0x976dd9(0x1c3)][0x0];if(!_0x547c7f)return null;_0xd601ba[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x547c7f[_0x976dd9(0x1e7)](!0x0)),_0x3a745a[_0x976dd9(0x1c3)][_0x976dd9(0x24d)](_0x547c7f[_0x976dd9(0x1e7)](!0x0));}}const _0x4e7a23=_0x3aa603[_0x976dd9(0x1d9)](),_0x215a88=_0x170c88[_0x976dd9(0x282)][_0x976dd9(0x280)](_0x4e7a23[_0x976dd9(0x286)]),_0x13ecde=_0x1354a1(_0xd601ba),_0x449030=_0x170c88[_0x976dd9(0x282)][_0x976dd9(0x280)](_0x13ecde),_0x3f9fdb=_0x170c88[_0x976dd9(0x282)][_0x976dd9(0x280)](_0x13ecde),_0x5c92dc=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x276)](_0x449030,0x0),_0x55fe11=_0x1354a1(_0x3a745a),_0x1ef840={'anchor':_0x5c92dc,'markDeletions':!0x1},_0x3ef76b=_0x170c88[_0x976dd9(0x21c)][_0x976dd9(0x2bf)](_0x3de2e6)[_0x976dd9(0x25d)](_0x13ecde,_0x55fe11,_0x1ef840)[_0x976dd9(0x229)]();if(!_0x3ef76b[_0x976dd9(0x2f1)])return null;_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x1f8)](_0x40491f=>{const _0x4e611c=_0x976dd9;for(const _0x469d35 of _0x3ef76b)if(_0x4e611c(0x1de)==_0x469d35[_0x4e611c(0x2c8)]){const _0x3bfd4a=_0x469d35[_0x4e611c(0x294)],_0x2e25ec=_0x469d35[_0x4e611c(0x2b8)],_0x4d2fc7=new _0x5382b6(_0x3bfd4a,_0x2e25ec);_0x40491f[_0x4e611c(0x214)][_0x4e611c(0x251)](_0x4d2fc7),_0x170c88[_0x4e611c(0x238)][_0x4e611c(0x1ee)](_0x4d2fc7);}else _0x4e611c(0x269)!==_0x469d35[_0x4e611c(0x2c8)]&&(_0x469d35[_0x4e611c(0x1b5)]=null,_0x469d35[_0x4e611c(0x259)]=!0x1,_0x40491f[_0x4e611c(0x214)][_0x4e611c(0x251)](_0x469d35),_0x170c88[_0x4e611c(0x238)][_0x4e611c(0x1ee)](_0x469d35));});const _0xf5060a=_0x11bb9a(_0x170c88,_0x3ef76b,_0x449030);_0xc37610(_0x170c88[_0x976dd9(0x238)],_0xf5060a);const _0x2ef283=_0xf5060a[_0x976dd9(0x211)]()[_0x976dd9(0x207)][_0x976dd9(0x226)][_0x976dd9(0x262)](),_0x4c3460=_0xf5060a[_0x976dd9(0x211)]()[_0x976dd9(0x1b4)][_0x976dd9(0x226)][_0x976dd9(0x262)](),_0x3b5953=[];let _0x9b6944=_0x449030,_0x4f97a7=_0x3f9fdb;for(let _0x30a22d=0x0;_0x30a22d<_0x4c3460[_0x976dd9(0x2f1)];_0x30a22d++){const _0x39a073=_0x9b6944[_0x976dd9(0x2ca)]-_0x4c3460[_0x30a22d];_0x3b5953[_0x30a22d]=_0x4f97a7[_0x976dd9(0x2ca)]-_0x39a073,_0x9b6944=_0x9b6944[_0x976dd9(0x206)](_0x4c3460[_0x30a22d]),_0x4f97a7=_0x4f97a7[_0x976dd9(0x206)](_0x3b5953[_0x30a22d]);}const _0x4b3212=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x273)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x3f9fdb,_0x2ef283),_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x3f9fdb,_0x3b5953)),_0x54f8fb=_0x3f9fdb[_0x976dd9(0x297)](0x0)[_0x976dd9(0x28e)](_0x55edee),_0x5cd48a=Array[_0x976dd9(0x236)](_0x215a88[_0x976dd9(0x2ec)]())[_0x976dd9(0x2db)](_0x2bc36a=>_0x2bc36a[_0x976dd9(0x28e)](_0x55edee)==_0x54f8fb)[_0x976dd9(0x1a3)](),_0x2c3f9d=_0x4b3212[_0x976dd9(0x207)][_0x976dd9(0x226)][_0x976dd9(0x262)](),_0x26e8ea=_0x4b3212[_0x976dd9(0x1b4)][_0x976dd9(0x226)][_0x976dd9(0x262)]();_0x2c3f9d[0x0]=_0x5cd48a[0x0]+_0x2c3f9d[0x0],_0x26e8ea[0x0]=_0x5cd48a[0x0]+_0x26e8ea[0x0];let _0x2054a6=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x273)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2aa)][_0x976dd9(0x2be)](),_0x2c3f9d),_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2ed)](_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2aa)][_0x976dd9(0x2be)](),_0x26e8ea));const _0xf8243d=_0x170c88[_0x976dd9(0x238)][_0x976dd9(0x2aa)][_0x976dd9(0x216)][_0x976dd9(0x229)](_0x4e7a23[_0x976dd9(0x1d8)]);for(const _0x4e00b8 of _0xf8243d)_0x2054a6=_0xd0bcd1[_0x976dd9(0x1f2)](_0x2054a6[_0x976dd9(0x1f3)](_0x4e00b8));return{'range':_0x2054a6,'currentIndex':_0x153951};}[_0x3f0e4e(0x195)](_0xb8ccc6){const _0xc09294=_0x3f0e4e;if(!_0xb8ccc6[_0xc09294(0x21c)][_0xc09294(0x2ad)](_0xc09294(0x1fb)))return;const _0x2c8f2c=_0xb8ccc6[_0xc09294(0x1e9)][_0xc09294(0x2bf)](_0xc09294(0x199)),_0x39377f=_0xb8ccc6[_0xc09294(0x1e9)][_0xc09294(0x2bf)](_0xc09294(0x268));this[_0xc09294(0x1eb)](_0x2c8f2c,_0xc09294(0x2e0),(_0x46b262,_0x3d4288,_0x56051e)=>{const _0x22d940=_0xc09294,_0x18e4f8=this[_0x22d940(0x19c)][_0x22d940(0x2bf)](_0x3d4288);if(!_0x18e4f8)return;const _0x2eda80=this[_0x22d940(0x2cc)][_0x22d940(0x1bd)](_0x18e4f8[_0x22d940(0x2d1)])[_0x22d940(0x21a)](_0x18e4f8[_0x22d940(0x2f2)]);_0x18e4f8[_0x22d940(0x1f7)][_0x22d940(0x1c2)](_0x5beb9d=>_0x2eda80[_0x22d940(0x28c)](_0x5beb9d,_0x22d940(0x29f))),this[_0x22d940(0x19c)][_0x22d940(0x2a3)](_0x3d4288),this[_0x22d940(0x19c)][_0x22d940(0x2ba)](_0x56051e,_0x18e4f8);}),this[_0xc09294(0x1eb)](_0x39377f,_0xc09294(0x2e0),(_0x593150,_0x1e2192,_0x26c5e9)=>{const _0x22658f=_0xc09294,_0x48cc12=this[_0x22658f(0x19c)][_0x22658f(0x2bf)](_0x1e2192);if(!_0x48cc12)return;const _0x3f5174=this[_0x22658f(0x2cc)][_0x22658f(0x1bd)](_0x48cc12[_0x22658f(0x2d1)])[_0x22658f(0x21a)](_0x48cc12[_0x22658f(0x2f2)]);_0x48cc12[_0x22658f(0x1f7)][_0x22658f(0x1c2)](_0x1dd1f1=>_0x3f5174[_0x22658f(0x28c)](_0x1dd1f1,_0x22658f(0x1aa))),this[_0x22658f(0x19c)][_0x22658f(0x2a3)](_0x1e2192),this[_0x22658f(0x19c)][_0x22658f(0x2ba)](_0x26c5e9,_0x48cc12);});}async[_0x3f0e4e(0x230)](_0x3f9a39){const _0x4c2bd5=_0x3f0e4e;this[_0x4c2bd5(0x285)][_0x4c2bd5(0x21c)][_0x4c2bd5(0x2bf)](_0x50f6b4)[_0x4c2bd5(0x250)](),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x2dc)](_0x4c2bd5(0x220)),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x1da)](!0x0),await this[_0x4c2bd5(0x23f)]();try{const _0x5cae3f=this[_0x4c2bd5(0x285)][_0x4c2bd5(0x21c)][_0x4c2bd5(0x2bf)](_0x2a1897);this[_0x4c2bd5(0x213)]('\x20'),_0x5cae3f[_0x4c2bd5(0x2eb)][_0x4c2bd5(0x1b9)](_0x4c2bd5(0x2dd)),await this[_0x4c2bd5(0x1df)](_0x3f9a39);const {sessionId:_0x4b2dc5}=this[_0x4c2bd5(0x233)][_0x4c2bd5(0x1bf)]();await this[_0x4c2bd5(0x2cc)][_0x4c2bd5(0x2e5)](_0x3f9a39,_0x4b2dc5),this[_0x4c2bd5(0x2cc)][_0x4c2bd5(0x2e4)]()&&this[_0x4c2bd5(0x2cc)][_0x4c2bd5(0x29e)](_0x3610a1(this[_0x4c2bd5(0x285)][_0x4c2bd5(0x245)],_0x4c2bd5(0x2df)));}catch(_0x18f23c){console[_0x4c2bd5(0x265)](_0x4c2bd5(0x1c4),_0x18f23c);}finally{this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x200)](),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x2dc)](_0x4c2bd5(0x20a)),this[_0x4c2bd5(0x2c9)][_0x4c2bd5(0x1da)](!0x1);}}[_0x3f0e4e(0x25a)](_0x27a105){const _0xc6e0d8=_0x3f0e4e;this[_0xc6e0d8(0x2cc)]['id']===_0x27a105&&this[_0xc6e0d8(0x1df)]();}async[_0x3f0e4e(0x277)](){const _0x4fa143=_0x3f0e4e,_0x1c2334=this[_0x4fa143(0x233)][_0x4fa143(0x218)]();this[_0x4fa143(0x2cc)]?.[_0x4fa143(0x2c4)](_0x1c2334),this[_0x4fa143(0x2cc)]?.[_0x4fa143(0x29e)](_0x3610a1(this[_0x4fa143(0x285)][_0x4fa143(0x245)],_0x4fa143(0x2df)));}[_0x3f0e4e(0x22a)](){const _0x1a3f92=_0x3f0e4e;this[_0x1a3f92(0x2cc)]?.[_0x1a3f92(0x25c)]();}[_0x3f0e4e(0x22c)](){const _0x2f4bb3=_0x3f0e4e;this[_0x2f4bb3(0x2c9)][_0x2f4bb3(0x22c)]();}async[_0x3f0e4e(0x22b)](){const _0x4dd2cb=_0x3f0e4e;await this[_0x4dd2cb(0x1df)]();}async[_0x3f0e4e(0x1cb)]({message:_0x455d48,quickActionData:_0xe4d124}){const _0x2ed823=_0x3f0e4e;await this[_0x2ed823(0x2a4)]({'userMessage':_0x455d48,'quickActionData':_0xe4d124});}[_0x3f0e4e(0x1c6)](){const _0x417e05=_0x3f0e4e,_0x4bf5c9=this[_0x417e05(0x285)][_0x417e05(0x255)][_0x417e05(0x2bf)](_0x417e05(0x1f4));if(!_0x4bf5c9)throw new _0x1e9b3b(_0x417e05(0x26f),this);return _0x4bf5c9;}async[_0x3f0e4e(0x1df)](_0x52af05){const _0x3c3874=_0x3f0e4e;try{this[_0x3c3874(0x2c9)][_0x3c3874(0x20b)](),await this[_0x3c3874(0x26d)](_0x52af05);}catch(_0x6913ee){_0x3c1905(_0x3c3874(0x2d9),_0x6913ee),this[_0x3c3874(0x2cc)]=void 0x0,this[_0x3c3874(0x2c9)][_0x3c3874(0x1b2)]();}}async[_0x3f0e4e(0x26d)](_0x2a30ac){const _0x29bce0=_0x3f0e4e,_0x236aa7=this[_0x29bce0(0x285)][_0x29bce0(0x21c)][_0x29bce0(0x2bf)](_0x50f6b4);let _0x47dd6e;_0x236aa7[_0x29bce0(0x23a)]&&_0x236aa7[_0x29bce0(0x250)](),_0x2a30ac||!this[_0x29bce0(0x2cc)]?_0x47dd6e=this[_0x29bce0(0x285)][_0x29bce0(0x255)][_0x29bce0(0x2bf)](_0x29bce0(0x267)):this[_0x29bce0(0x2c9)][_0x29bce0(0x1ff)]&&(_0x47dd6e=this[_0x29bce0(0x2cc)][_0x29bce0(0x1ec)]['id']),await this[_0x29bce0(0x23f)]();const _0x4f4c14=this[_0x29bce0(0x1c6)](),_0x5ab168=_0x2a30ac||_0x416d88();this[_0x29bce0(0x2cc)]=new _0x470ab6({'connector':this[_0x29bce0(0x1a6)],'chatModels':this[_0x29bce0(0x19a)],'selectedModelId':_0x47dd6e,'conversationId':_0x5ab168,'group':_0x4f4c14,'getEditor':()=>_0x2b4fc0(this[_0x29bce0(0x285)])}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2f0),(_0x196632,_0x9bfe2)=>{const _0x5c31e9=_0x29bce0;this[_0x5c31e9(0x2c9)][_0x5c31e9(0x2b1)](_0x9bfe2),this[_0x5c31e9(0x2c9)][_0x5c31e9(0x1a9)](),this[_0x5c31e9(0x2c9)][_0x5c31e9(0x2ea)](),this[_0x5c31e9(0x2c9)][_0x5c31e9(0x1be)](),_0x2a30ac||(this[_0x5c31e9(0x2c9)][_0x5c31e9(0x1bb)](),this[_0x5c31e9(0x2cc)]?.[_0x5c31e9(0x29e)](_0x3610a1(this[_0x5c31e9(0x285)][_0x5c31e9(0x245)],_0x5c31e9(0x2df))));}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x24a),(_0x329918,_0x2db6ee)=>{const _0x50bf07=_0x29bce0;this[_0x50bf07(0x2c9)][_0x50bf07(0x24e)](_0x2db6ee[_0x50bf07(0x1d7)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2da),(_0x3f605d,_0x5d0be7)=>{const _0x3c4efa=_0x29bce0;this[_0x3c4efa(0x2c9)][_0x3c4efa(0x26b)](_0x5d0be7);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x19b),()=>{const _0x2b7c84=_0x29bce0;this[_0x2b7c84(0x2c9)][_0x2b7c84(0x1d1)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1ab),()=>{const _0x9bb521=_0x29bce0;this[_0x9bb521(0x2c9)][_0x9bb521(0x1d1)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1cd),(_0x45845b,_0x41e123)=>{const _0x4ef361=_0x29bce0;this[_0x4ef361(0x2c9)][_0x4ef361(0x1d6)](_0x41e123,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1ef),(_0x2576f7,_0x44d7c8)=>{const _0xc6b023=_0x29bce0;this[_0xc6b023(0x2c9)][_0xc6b023(0x1d6)](_0x44d7c8,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1f5),()=>{const _0xa64fcb=_0x29bce0;this[_0xa64fcb(0x2c9)][_0xa64fcb(0x2cb)]();}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x299),async()=>{const _0x232106=_0x29bce0;await this[_0x232106(0x2c9)][_0x232106(0x29c)]();}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x24b),(_0x115928,_0x3122e2)=>{const _0x18e642=_0x29bce0;this[_0x18e642(0x2c9)][_0x18e642(0x210)](_0x3122e2['id']);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2e2),(_0x5319bb,_0x21d951,_0x5890be)=>{const _0x53f73b=_0x29bce0;this[_0x53f73b(0x213)](_0x21d951,_0x5890be);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x203),(_0x489106,_0x39ea70)=>{const _0x33b430=_0x29bce0;_0x33b430(0x2ee)===_0x39ea70[_0x33b430(0x2c8)]?this[_0x33b430(0x2c9)][_0x33b430(0x1bc)](_0x39ea70):this[_0x33b430(0x2c9)][_0x33b430(0x263)](_0x39ea70);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x29d),async(_0x54e584,_0x111fe0)=>{const _0x48d4b7=_0x29bce0;await this[_0x48d4b7(0x240)]({'reply':_0x111fe0});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1a2),(_0x279d2d,{reply:_0x5ae758,index:_0x5563a6,state:_0x11854a})=>{const _0x5b7cff=_0x29bce0;this[_0x5b7cff(0x2c9)][_0x5b7cff(0x244)]({'id':_0x5ae758['id'],'index':_0x5563a6,'state':_0x11854a});}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2ae),(_0x4dbb20,_0x53ee8f)=>{const _0x244e5e=_0x29bce0;if(this[_0x244e5e(0x2c9)][_0x244e5e(0x2c7)](_0x53ee8f[_0x244e5e(0x27a)],_0x53ee8f[_0x244e5e(0x1dd)]),_0x244e5e(0x1ea)===_0x53ee8f[_0x244e5e(0x27a)][_0x244e5e(0x2c8)]){const _0x8361dd=[..._0x2b4fc0(this[_0x244e5e(0x285)])[_0x244e5e(0x238)][_0x244e5e(0x2aa)][_0x244e5e(0x1ea)][_0x244e5e(0x20f)]()];this[_0x244e5e(0x233)][_0x244e5e(0x2d6)](_0x8361dd,_0x244e5e(0x1fc)+this[_0x244e5e(0x2cc)]?.['id']);}}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1ba),(_0x2e34a6,_0x3fc187)=>{const _0x1306b8=_0x29bce0;this[_0x1306b8(0x2c9)][_0x1306b8(0x1a1)](_0x3fc187[_0x1306b8(0x2c0)]),_0x1306b8(0x2b3)==_0x3fc187[_0x1306b8(0x2c0)]&&this[_0x1306b8(0x22a)](),_0x1306b8(0x1ea)===_0x3fc187[_0x1306b8(0x2c8)]&&this[_0x1306b8(0x233)][_0x1306b8(0x198)](_0x1306b8(0x1fc)+this[_0x1306b8(0x2cc)]?.['id']);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2e3),(_0x230dbf,_0x3950b4)=>{const _0x1df037=_0x29bce0;this[_0x1df037(0x2c9)][_0x1df037(0x27d)](_0x3950b4[_0x1df037(0x27a)][_0x1df037(0x2c0)],_0x3950b4[_0x1df037(0x1dd)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2a7),(_0x522571,_0xfc81d0)=>{const _0x24681a=_0x29bce0;this[_0x24681a(0x2c9)][_0x24681a(0x260)](_0xfc81d0[_0x24681a(0x2d0)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x288),(_0x124214,_0x5ec354)=>{const _0x2f3c6d=_0x29bce0;this[_0x2f3c6d(0x2c9)][_0x2f3c6d(0x247)](_0x5ec354[_0x2f3c6d(0x19f)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x1d0),(_0x1907f1,_0x5e4c48)=>{const _0x59ed5f=_0x29bce0;this[_0x59ed5f(0x2c9)][_0x59ed5f(0x23d)](_0x5e4c48[_0x59ed5f(0x239)],_0x5e4c48[_0x59ed5f(0x1e4)],_0x5e4c48[_0x59ed5f(0x215)],_0x5e4c48[_0x59ed5f(0x2a1)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x202),(_0x3e499c,_0x26740d)=>{const _0x566397=_0x29bce0;this[_0x566397(0x2c9)][_0x566397(0x287)](_0x26740d[_0x566397(0x239)],_0x26740d[_0x566397(0x2e7)],_0x26740d[_0x566397(0x295)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x2a8),(_0x5afa3e,_0x51fe82)=>{const _0x3d2077=_0x29bce0;this[_0x3d2077(0x2c9)][_0x3d2077(0x204)](_0x51fe82);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x284),(_0x1de380,_0x3204a3)=>{const _0x13a2d9=_0x29bce0;this[_0x13a2d9(0x2c9)][_0x13a2d9(0x25e)](_0x3204a3[_0x13a2d9(0x1ec)],_0x3204a3[_0x13a2d9(0x217)]);}),this[_0x29bce0(0x2cc)]['on'](_0x29bce0(0x265),(_0x11b2fc,{error:_0x42957b,interactionId:_0x418983,fileName:_0x5e7a51,url:_0x364ec7,sourceId:_0x28617d,sourceLabel:_0x48779a})=>{const _0x53f9bf=_0x29bce0,_0x34b7f9=_0x418983?_0x418983+':'+_0x416d88():_0x416d88();_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x281))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x1d2)]({'staticMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x22e)),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2b5))||_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2d9))?(this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x28f)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b)):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2bd))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x196),_0x5e7a51),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x1e8))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x1c0),_0x364ec7),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2b7))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x264)),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x2d2))?this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x2c6)),'id':_0x34b7f9}):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x25b))?(_0x28617d&&this[_0x53f9bf(0x2c9)][_0x53f9bf(0x1ce)](_0x28617d),this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x26c),_0x48779a||_0x53f9bf(0x1e4)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b)):_0x42957b[_0x53f9bf(0x1dc)][_0x53f9bf(0x1c7)](_0x53f9bf(0x253))?(this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x20c)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b)):(this[_0x53f9bf(0x2c9)][_0x53f9bf(0x293)]({'errorMessage':_0x3610a1(this[_0x53f9bf(0x285)][_0x53f9bf(0x245)],_0x53f9bf(0x1f9)),'id':_0x34b7f9}),this[_0x53f9bf(0x1c8)](_0x42957b));}),await this[_0x29bce0(0x2cc)][_0x29bce0(0x2cf)](this[_0x29bce0(0x285)][_0x29bce0(0x255)][_0x29bce0(0x2bf)](_0x29bce0(0x209))),_0x2a30ac||await this[_0x29bce0(0x2cc)][_0x29bce0(0x207)]();}async[_0x3f0e4e(0x2a4)]({userMessage:_0x1aff3a,quickActionData:_0x228b60}){const _0x4cb89e=_0x3f0e4e;if(!this[_0x4cb89e(0x2cc)])throw new _0x1e9b3b(_0x4cb89e(0x22f));this[_0x4cb89e(0x2cc)][_0x4cb89e(0x2b0)]()&&await this[_0x4cb89e(0x2cc)][_0x4cb89e(0x28a)](this[_0x4cb89e(0x233)][_0x4cb89e(0x1bf)]()),this[_0x4cb89e(0x2cc)]['id']&&this[_0x4cb89e(0x2cc)][_0x4cb89e(0x266)]&&await this[_0x4cb89e(0x2cc)][_0x4cb89e(0x23b)]({'userMessage':_0x1aff3a,'quickActionData':_0x228b60}),this[_0x4cb89e(0x2c5)]();}[_0x3f0e4e(0x2c5)](){const _0x13a24d=_0x3f0e4e,_0xc24d12=_0x2b4fc0(this[_0x13a24d(0x285)])[_0x13a24d(0x238)],_0x11d824=Array[_0x13a24d(0x236)](_0xc24d12[_0x13a24d(0x235)][_0x13a24d(0x1f1)](_0x823a86));_0xc24d12[_0x13a24d(0x1f8)](_0x1330ac=>{const _0x3378b0=_0x13a24d;_0x11d824[_0x3378b0(0x1c2)](_0x3e1049=>_0x1330ac[_0x3378b0(0x256)](_0x3e1049));});}[_0x3f0e4e(0x298)](){const _0x240d65=_0x3f0e4e;console[_0x240d65(0x27c)](_0x240d65(0x221));}[_0x3f0e4e(0x1c1)](_0x4a1c7b){const _0x58fdae=_0x3f0e4e;this[_0x58fdae(0x2c9)][_0x58fdae(0x1a7)](_0x4a1c7b);}[_0x3f0e4e(0x1c8)](_0x3c7559){const _0x88e550=_0x3f0e4e;_0x3c1905(_0x3c7559[_0x88e550(0x1dc)]);}[_0x3f0e4e(0x23c)](_0x2fd3d7){const _0x2c533a=_0x3f0e4e;this[_0x2c533a(0x2cc)]?.[_0x2c533a(0x2a6)](_0x2fd3d7);}[_0x3f0e4e(0x2f3)](){const _0x3b29a6=_0x3f0e4e;this[_0x3b29a6(0x2cc)]?.[_0x3b29a6(0x291)]();}[_0x3f0e4e(0x2af)](){const _0x389fbd=_0x3f0e4e;this[_0x389fbd(0x2cc)]?.[_0x389fbd(0x2d3)]();}[_0x3f0e4e(0x2a5)](_0x59e075){const _0xc57b8e=_0x3f0e4e,[_0x1280cf,_0x2cf66e]=_0x59e075[_0xc57b8e(0x1e5)](':'),_0xa5ff1f=this[_0xc57b8e(0x2cc)][_0xc57b8e(0x1bd)](_0x1280cf),_0x134318=_0xa5ff1f[_0xc57b8e(0x21a)](_0x2cf66e);return{'interaction':_0xa5ff1f,'reply':_0x134318};}[_0x3f0e4e(0x234)](_0x11e5bb,_0x47b532=!0x1){const _0x3bd37a=_0x3f0e4e,_0x12ab49=_0x2b4fc0(this[_0x3bd37a(0x285)]),_0xc2d86b={'target':_0x12ab49[_0x3bd37a(0x224)][_0x3bd37a(0x2eb)][_0x3bd37a(0x219)][_0x3bd37a(0x1a4)](_0x12ab49[_0x3bd37a(0x224)][_0x3bd37a(0x2c2)][_0x3bd37a(0x290)](_0x11e5bb)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x47b532};_0x47b532&&(_0xc2d86b[_0x3bd37a(0x20e)]=!0x0),_0x1596df(_0xc2d86b);}[_0x3f0e4e(0x213)](_0x5213a5,_0x4b45a5=!0x1){const _0x3553e6=_0x3f0e4e;this[_0x3553e6(0x2c9)][_0x3553e6(0x2e2)](_0x5213a5||_0x3610a1(this[_0x3553e6(0x285)][_0x3553e6(0x245)],_0x3553e6(0x1e3)),_0x4b45a5);}async[_0x3f0e4e(0x240)]({reply:_0x1ab284,renderingStrategy:_0x4610b7}){const _0x2bee50=_0x3f0e4e,{id:_0x1f48ed,isDone:_0x21bc9b,type:_0x4ca68b,parsedContent:_0x57298f}=_0x1ab284;if(_0x2bee50(0x1e2)===_0x4ca68b){const _0x2e9d0b=_0x1ab284[_0x2bee50(0x222)]({'showDiff':this[_0x2bee50(0x2c9)][_0x2bee50(0x208)]});await this[_0x2bee50(0x2c9)][_0x2bee50(0x2de)]({'id':_0x1f48ed,'parts':_0x2e9d0b,'renderingStrategy':_0x4610b7,'isDone':_0x21bc9b});}else _0x2bee50(0x2ee)===_0x4ca68b&&await this[_0x2bee50(0x2c9)][_0x2bee50(0x2ce)]({'id':_0x1f48ed,'parsedContent':_0x57298f,'renderingStrategy':_0x4610b7,'isDone':_0x21bc9b});_0x21bc9b&&_0x1ab284[_0x2bee50(0x2cd)][_0x2bee50(0x2f1)]>0x0&&this[_0x2bee50(0x2c9)][_0x2bee50(0x1b8)](_0x1f48ed,_0x1ab284[_0x2bee50(0x2cd)]);}async[_0x3f0e4e(0x23f)](){const _0x5f4240=_0x3f0e4e,_0x9ad1d3=this[_0x5f4240(0x2cc)]?.[_0x5f4240(0x27b)];_0x9ad1d3&&(_0x9ad1d3[_0x5f4240(0x296)](),this[_0x5f4240(0x2c9)][_0x5f4240(0x1fe)](_0x9ad1d3));}async[_0x3f0e4e(0x21e)](){const _0x5a599a=_0x3f0e4e,_0x37582d=this[_0x5a599a(0x2cc)]?.[_0x5a599a(0x27b)];if(_0x37582d){for await(const _0xc4a0b6 of _0x37582d[_0x5a599a(0x29a)])await this[_0x5a599a(0x240)]({'reply':_0xc4a0b6,'renderingStrategy':_0x5a599a(0x220)});}}[_0x3f0e4e(0x197)](_0x248e03){const _0x56c426=_0x3f0e4e,_0x3cbb00={'positiveCount':_0x248e03[_0x56c426(0x28b)][_0x56c426(0x242)](_0x4ec366=>_0x56c426(0x1aa)===_0x4ec366[_0x56c426(0x2d8)])[_0x56c426(0x2f1)],'totalCount':_0x248e03[_0x56c426(0x28b)][_0x56c426(0x2f1)],'modificationId':_0x248e03['id']},_0x4b833a=this[_0x56c426(0x2cc)][_0x56c426(0x1bd)](_0x248e03[_0x56c426(0x2d1)])[_0x56c426(0x2ac)];this[_0x56c426(0x1a6)][_0x56c426(0x2d5)](this[_0x56c426(0x2cc)]['id'],_0x4b833a,_0x3cbb00);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x513c(_0x4efbf5,_0x3fe656){const _0x3ed52e=_0x3ed5();return _0x513c=function(_0x513c15,_0x200d52){_0x513c15=_0x513c15-0xc1;let _0x166eb8=_0x3ed52e[_0x513c15];return _0x166eb8;},_0x513c(_0x4efbf5,_0x3fe656);}const _0x3d9341=_0x513c;(function(_0x5092d2,_0x14e7c3){const _0x15f646=_0x513c,_0x56b439=_0x5092d2();while(!![]){try{const _0x3af32d=parseInt(_0x15f646(0x15c))/0x1*(parseInt(_0x15f646(0xf1))/0x2)+-parseInt(_0x15f646(0x160))/0x3*(parseInt(_0x15f646(0xd2))/0x4)+parseInt(_0x15f646(0x150))/0x5+-parseInt(_0x15f646(0x148))/0x6*(-parseInt(_0x15f646(0xeb))/0x7)+-parseInt(_0x15f646(0xd8))/0x8+parseInt(_0x15f646(0x13b))/0x9*(parseInt(_0x15f646(0xe5))/0xa)+parseInt(_0x15f646(0xf7))/0xb*(-parseInt(_0x15f646(0xd7))/0xc);if(_0x3af32d===_0x14e7c3)break;else _0x56b439['push'](_0x56b439['shift']());}catch(_0x3ce704){_0x56b439['push'](_0x56b439['shift']());}}}(_0x3ed5,0xb2eb5));import{ContextPlugin as _0x1386cf}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1350b8}from'ckeditor5/src/utils.js';import{AIChatView as _0x1230d1}from'./ui/aichatview.js';import{AITabs as _0x2189b3}from'../aitabs/aitabs.js';import{getTranslation as _0x5588c3}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x23971f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0xf53707}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x516cef}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xdd6ff0}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x3ed5(){const _0x49b9e4=['context','stopInteraction','2pTSDFu','isDisabled','chat','ai-suggestion-reply','updateCapabilities','locale','308NbHCYE','clearConversationContextUI','enqueue','bind','addContextItem','clear','options','getItemIds','setModelList','config','addFeedInteractionHeader','addFeedItemAISuggestion','renderingStrategy','markItemAsDone','ai-reply','children','startAutoScroll','addFeedItemAIReply','setReasoning','queueEmptyPromise','disableModelSelector','AITabs','filter','length','resetConversationTitle','_promiseQueue','markFeedItemAsDone','scrollFeedToSuggestion','closeSourceResourceBalloon','showDiff','_getLoadingMessage','insertSuggestion','ai.chat.models.modelSelectorAlwaysVisible','enableControls','AI_CHAT_HEADING','set','ai.availableReplyActions','<p>','finishInteraction','populateSourceResourceBalloon','isPremiumPlugin','removeFeedInteraction','AI_CHAT_WELCOME_MESSAGE','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setLoadingMessage','availableModels','contextItems','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','has','get','delegate','setModel','_interactionPromiseResolver','displayedPrompt','removeContextItem','isReasoningEnabled','setIsUploadInProgress','updateFeedItemAIReplySources','value','isPending','isLoading','addFeedItemStaticMessage','isTrackChangesOn','ai.chat.context.searchInputVisibleFrom','enableModelSelector','user-message','scrollToSuggestion','find','583299otksAx','addFeedItemError','chatControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','stopAutoScroll','values','label','updateFeedInteractionHeader','addTab','updateFeedItemAIReplySuggestionPartState','addItem','toggleLoadingSkeleton','setConversationContext','553458YFAnSe','view','remove','_getInputPlaceholder','addFeedItemUserMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','clearPendingContextUI','createConversation','4960120oamEfD','_animateConversationTitle','interactionId','destroy','isVisible','toggleSuggestionDisplayMode','updateReplyItem','chatFeed','quickActionData','requires','from','interaction-header','1404834xslFBo','setSelectedModel','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','focusPromptInput','3dmSTAX','isMaximized','setIsMaximized','resetMessageInput','then','updateSuggestionPartState','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','disableControls','AIChatUI','updateFeedItemAIReplyContent','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isWebSearchEnabled','streaming','isDone','forEach','userMessage','trackChanges','error-message','TrackChanges','setInputPlaceholder','updateResourceState','conversation-start','isOfficialPlugin','commands','last','isModelAvailable','isBusy','2886068pfFSDr','_isTrackChangesCommandValueBound','areActionsDisabled','removeItem','_view','931080eIOTxl','5017472OSkHNt','startInteraction','capabilities','setWebSearch','abort','</p>','updateSuggestionItem','_titleAnimationInterval','plugins','pluginName','setContextItemLoading','chatHeader','setConversationTitle','130axxQLv','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySuggestionContent','feedItemRenderingStrategy','setFeedItemRenderingStrategy','showResizeButton','77Hrbngf','updateWebSources','startsWith','setAddContextOptions'];_0x3ed5=function(){return _0x49b9e4;};return _0x3ed5();}import{getEditorFromContext as _0x2e972d}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1f1a08}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1386cf{static get[_0x3d9341(0x159)](){return[_0x2189b3];}[_0x3d9341(0xd6)];static get[_0x3d9341(0xe1)](){const _0x1f7fed=_0x3d9341;return _0x1f7fed(0x168);}static get[_0x3d9341(0xcd)](){return!0x0;}static get[_0x3d9341(0x11f)](){return!0x0;}[_0x3d9341(0xe8)]=_0x3d9341(0xc3);[_0x3d9341(0x114)]=!0x0;[_0x3d9341(0x110)];[_0x3d9341(0x12b)];[_0x3d9341(0xdf)]=void 0x0;[_0x3d9341(0xd3)]=!0x1;constructor(_0x13f199){const _0x382d30=_0x3d9341;super(_0x13f199);const _0x19cbba=this[_0x382d30(0xef)][_0x382d30(0xe0)][_0x382d30(0x128)](_0x382d30(0x10c));this[_0x382d30(0x11a)](_0x382d30(0xd1),!0x1),this[_0x382d30(0x110)]=new _0x516cef(),this[_0x382d30(0xd6)]=new _0x1230d1(this[_0x382d30(0xef)][_0x382d30(0xf6)],{'showResizeButton':_0x19cbba[_0x382d30(0xea)],'contextResourcesSearchInputVisibleFrom':this[_0x382d30(0xef)][_0x382d30(0x100)][_0x382d30(0x128)](_0x382d30(0x136))}),this[_0x382d30(0xd6)][_0x382d30(0x129)](..._0xdd6ff0)['to'](this),this[_0x382d30(0xd6)]['on'](_0x382d30(0x155),(_0x2257d4,{showDiff:_0x5a9539})=>{const _0x58c99=_0x382d30;this[_0x58c99(0x114)]=_0x5a9539;}),_0x19cbba[_0x382d30(0x149)][_0x382d30(0x143)]({'id':_0x382d30(0xf3),'buttonLabel':_0x5588c3(this[_0x382d30(0xef)][_0x382d30(0xf6)],_0x382d30(0x119)),'buttonIcon':_0x23971f,'order':0x0,'content':this[_0x382d30(0xd6)]}),this[_0x382d30(0xd6)][_0x382d30(0x13d)][_0x382d30(0xfa)](_0x382d30(0x133))['to'](this,_0x382d30(0xd1),_0x3dde4a=>_0x3dde4a),this[_0x382d30(0xd6)][_0x382d30(0x157)][_0x382d30(0xfa)](_0x382d30(0x132))['to'](this,_0x382d30(0xd1),_0x537503=>_0x537503),this[_0x382d30(0xd6)][_0x382d30(0x13d)][_0x382d30(0xca)](this[_0x382d30(0x14b)]()),this[_0x382d30(0xfa)](_0x382d30(0xd0))['to'](this[_0x382d30(0xd6)][_0x382d30(0x13d)],_0x382d30(0xd0));}[_0x3d9341(0x153)](){const _0x5284a6=_0x3d9341;super[_0x5284a6(0x153)](),this[_0x5284a6(0xdf)]&&clearInterval(this[_0x5284a6(0xdf)]);}[_0x3d9341(0x14f)](_0x8d5329){const _0x4d79a1=_0x3d9341;this[_0x4d79a1(0xd6)][_0x4d79a1(0x157)][_0x4d79a1(0xfc)](),this[_0x4d79a1(0xd6)][_0x4d79a1(0x13d)][_0x4d79a1(0x137)](),this[_0x4d79a1(0xd6)][_0x4d79a1(0x13d)][_0x4d79a1(0xff)](_0x8d5329[_0x4d79a1(0x124)],!this[_0x4d79a1(0xef)][_0x4d79a1(0x100)][_0x4d79a1(0x128)](_0x4d79a1(0x117))),this[_0x4d79a1(0x134)]({'id':_0x4d79a1(0xcc),'staticMessage':_0x5588c3(this[_0x4d79a1(0xef)][_0x4d79a1(0xf6)],_0x4d79a1(0x121))});}[_0x3d9341(0x134)]({id:_0x2878c6,staticMessage:_0x31912c}){const _0x5be397=_0x3d9341;this[_0x5be397(0xd6)][_0x5be397(0x157)][_0x5be397(0x145)](_0x5be397(0x105),{'id':_0x2878c6,'initialContent':_0x5be397(0x11c)+_0x31912c+_0x5be397(0xdd)});}[_0x3d9341(0x14c)](_0x2da72a){const _0x49dfdf=_0x3d9341,_0x33888a=_0x2da72a[_0x49dfdf(0x158)]?.[_0x49dfdf(0x12c)]||_0x2da72a[_0x49dfdf(0xc6)];this[_0x49dfdf(0xd6)][_0x49dfdf(0x157)][_0x49dfdf(0x145)](_0x49dfdf(0x138),{'contextItems':Array[_0x49dfdf(0x15a)](_0x2da72a[_0x49dfdf(0x125)][_0x49dfdf(0x140)]()),'initialContent':_0x49dfdf(0x11c)+_0x33888a+_0x49dfdf(0xdd),'id':_0x2da72a['id']});}[_0x3d9341(0x13c)]({errorMessage:_0x434520,id:_0x526f19}){const _0x26f0e9=_0x3d9341;this[_0x26f0e9(0xd6)][_0x26f0e9(0x157)][_0x26f0e9(0x145)](_0x26f0e9(0xc8),{'initialContent':_0x26f0e9(0x11c)+_0x434520+_0x26f0e9(0xdd),'id':_0x526f19});}[_0x3d9341(0x108)](_0x4a0449){const _0x5753ac=_0x3d9341;return this[_0x5753ac(0x110)][_0x5753ac(0xf9)](async()=>{const _0x9e345c=_0x5753ac;this[_0x9e345c(0xd6)][_0x9e345c(0x157)][_0x9e345c(0x145)](_0x9e345c(0x105),{'id':_0x4a0449[_0x9e345c(0x152)]+':'+_0x4a0449['id']}),this[_0x9e345c(0x123)](null);});}async[_0x3d9341(0x102)](_0x223ab3){const _0x8d5f5f=_0x3d9341,_0x56b5ad=_0x2e972d(this[_0x8d5f5f(0xef)]);let _0x28190f=_0x56b5ad[_0x8d5f5f(0x100)][_0x8d5f5f(0x128)](_0x8d5f5f(0x11b))||[..._0x1f1a08];if(_0x56b5ad[_0x8d5f5f(0xe0)][_0x8d5f5f(0x127)](_0x8d5f5f(0xc9))){if(!this[_0x8d5f5f(0xd3)]){this[_0x8d5f5f(0xd3)]=!0x0;const _0x397451=_0x56b5ad[_0x8d5f5f(0xce)][_0x8d5f5f(0x128)](_0x8d5f5f(0xc7));this[_0x8d5f5f(0xd6)][_0x8d5f5f(0x157)][_0x8d5f5f(0xfa)](_0x8d5f5f(0x135))['to'](_0x397451,_0x8d5f5f(0x131));}}else _0x28190f=_0x28190f[_0x8d5f5f(0x10d)](_0x3ce5e1=>_0x8d5f5f(0x116)!=_0x3ce5e1);return this[_0x8d5f5f(0x110)][_0x8d5f5f(0xf9)](async()=>{const _0x3419e1=_0x8d5f5f;this[_0x3419e1(0xd6)][_0x3419e1(0x157)][_0x3419e1(0x145)](_0x3419e1(0xf4),{'id':_0x223ab3[_0x3419e1(0x152)]+':'+_0x223ab3['id'],'areActionsDisabled':_0x223ab3[_0x3419e1(0xd4)],'showDiff':this[_0x3419e1(0x114)],'availableActions':_0x28190f}),this[_0x3419e1(0x123)](null);});}[_0x3d9341(0x101)](_0x26265e,_0x19361a){const _0x48fc9e=_0x3d9341,_0x4a43b3=this[_0x48fc9e(0xd6)][_0x48fc9e(0x157)][_0x48fc9e(0x106)][_0x48fc9e(0xcf)];if(_0x4a43b3 instanceof _0xf53707)return this[_0x48fc9e(0xd6)][_0x48fc9e(0x157)][_0x48fc9e(0x106)][_0x48fc9e(0x14a)](_0x4a43b3),void this[_0x48fc9e(0xd6)][_0x48fc9e(0x157)][_0x48fc9e(0x145)](_0x48fc9e(0x15b),{'id':_0x26265e['id'],'capabilities':{'isWebSearchEnabled':_0x4a43b3[_0x48fc9e(0xda)][_0x48fc9e(0xc2)]||_0x19361a[_0x48fc9e(0xc2)],'isReasoningEnabled':_0x4a43b3[_0x48fc9e(0xda)][_0x48fc9e(0x12e)]||_0x19361a[_0x48fc9e(0x12e)]}});this[_0x48fc9e(0xd6)][_0x48fc9e(0x157)][_0x48fc9e(0x145)](_0x48fc9e(0x15b),{'id':_0x26265e['id'],'capabilities':_0x19361a});}[_0x3d9341(0x142)](_0x27b773){const _0x33b43b=_0x3d9341,_0x5c41bb=this[_0x33b43b(0xd6)][_0x33b43b(0x157)][_0x33b43b(0x106)][_0x33b43b(0x13a)](_0x24c67c=>_0x24c67c[_0x33b43b(0xfd)]['id']==_0x27b773['id']&&_0x24c67c instanceof _0xf53707);_0x5c41bb&&_0x5c41bb[_0x33b43b(0x11a)](_0x33b43b(0x154),_0x27b773[_0x33b43b(0x154)]);}async[_0x3d9341(0x169)](_0x1382f9){const _0x56be8e=_0x3d9341,_0x10059b=_0x1382f9[_0x56be8e(0x103)]||this[_0x56be8e(0xe8)];return this[_0x56be8e(0x110)][_0x56be8e(0xf9)](async _0x3bf467=>{const _0x5ba14b=_0x56be8e;await this[_0x5ba14b(0xd6)][_0x5ba14b(0x157)][_0x5ba14b(0x156)]({..._0x1382f9,'abortSignal':_0x3bf467,'renderingStrategy':_0x10059b}),_0x1382f9[_0x5ba14b(0xc4)]&&this[_0x5ba14b(0x111)](_0x1382f9['id']);});}[_0x3d9341(0x130)](_0x514870,_0x56437c){const _0x3bd4d6=_0x3d9341;this[_0x3bd4d6(0xd6)][_0x3bd4d6(0x157)][_0x3bd4d6(0xec)](_0x514870,_0x56437c);}async[_0x3d9341(0xe7)](_0x5d6455){const _0x433a18=_0x3d9341,_0x12b9ec=_0x5d6455[_0x433a18(0x103)]||this[_0x433a18(0xe8)];return this[_0x433a18(0x110)][_0x433a18(0xf9)](async _0x5b2ad0=>{const _0x1fdd14=_0x433a18;await this[_0x1fdd14(0xd6)][_0x1fdd14(0x157)][_0x1fdd14(0xde)]({..._0x5d6455,'abortSignal':_0x5b2ad0,'renderingStrategy':_0x12b9ec}),_0x5d6455[_0x1fdd14(0xc4)]&&this[_0x1fdd14(0x111)](_0x5d6455['id']);});}[_0x3d9341(0x144)](_0x88c2fc){const _0x2c856a=_0x3d9341;this[_0x2c856a(0xd6)][_0x2c856a(0x157)][_0x2c856a(0x165)](_0x88c2fc);}[_0x3d9341(0x111)](_0x236f67){const _0x2b9efc=_0x3d9341;this[_0x2b9efc(0xd6)][_0x2b9efc(0x157)][_0x2b9efc(0x104)](_0x236f67);}[_0x3d9341(0x120)](_0x2e5833){const _0x4c9a75=_0x3d9341;this[_0x4c9a75(0xd6)][_0x4c9a75(0x157)][_0x4c9a75(0xfe)]()[_0x4c9a75(0x10d)](_0x563adc=>_0x563adc[_0x4c9a75(0xed)](_0x2e5833))[_0x4c9a75(0xc5)](_0x36b732=>this[_0x4c9a75(0xd6)][_0x4c9a75(0x157)][_0x4c9a75(0xd5)](_0x36b732));}[_0x3d9341(0xd9)](){const _0x172874=_0x3d9341;this[_0x172874(0x123)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x172874(0xd6)][_0x172874(0x13d)][_0x172874(0x10b)](!this[_0x172874(0xef)][_0x172874(0x100)][_0x172874(0x128)](_0x172874(0x117))),this[_0x172874(0xd1)]=!0x0,this[_0x172874(0xd6)][_0x172874(0x157)][_0x172874(0x107)]();}[_0x3d9341(0xf0)](_0x505406){const _0x50188f=_0x3d9341;this[_0x50188f(0x110)][_0x50188f(0xdc)](),this[_0x50188f(0xd6)][_0x50188f(0x157)][_0x50188f(0xfe)]()[_0x50188f(0x10d)](_0x24d3e7=>_0x24d3e7[_0x50188f(0xed)](_0x505406['id']))[_0x50188f(0xc5)](_0x25f07c=>this[_0x50188f(0x111)](_0x25f07c)),this[_0x50188f(0xd1)]=!0x1,this[_0x50188f(0xd6)][_0x50188f(0x157)][_0x50188f(0x13f)]();}async[_0x3d9341(0x11d)](){const _0x97fbf5=_0x3d9341;return this[_0x97fbf5(0x110)][_0x97fbf5(0x10a)][_0x97fbf5(0x164)](()=>{const _0x203fef=_0x97fbf5;this[_0x203fef(0xd1)]=!0x1,this[_0x203fef(0xd6)][_0x203fef(0x157)][_0x203fef(0x13f)]();});}[_0x3d9341(0xfb)](_0x152232,_0x5ecaa0){const _0x56fbc9=_0x3d9341;this[_0x56fbc9(0xd6)][_0x56fbc9(0x13d)][_0x56fbc9(0xfb)](_0x152232,_0x5ecaa0);}[_0x3d9341(0x12d)](_0x98a62b){const _0x4d76eb=_0x3d9341;this[_0x4d76eb(0xd6)][_0x4d76eb(0x13d)][_0x4d76eb(0x12d)](_0x98a62b);}[_0x3d9341(0xe2)](_0x3d503f,_0x31d3f7){const _0x16cd06=_0x3d9341;this[_0x16cd06(0xd6)][_0x16cd06(0x13d)][_0x16cd06(0xe2)](_0x3d503f,_0x31d3f7);}[_0x3d9341(0x12f)](_0x9faa1a){const _0x136ca3=_0x3d9341;this[_0x136ca3(0xd6)][_0x136ca3(0x13d)][_0x136ca3(0x12f)](_0x9faa1a);}[_0x3d9341(0x147)](_0x43abb3){const _0x5635ec=_0x3d9341;this[_0x5635ec(0xd6)][_0x5635ec(0x13d)][_0x5635ec(0x147)](_0x43abb3);}[_0x3d9341(0x14e)](){const _0x4af327=_0x3d9341;this[_0x4af327(0xd6)][_0x4af327(0x13d)][_0x4af327(0x14e)]();}[_0x3d9341(0xf8)](){const _0x15c93d=_0x3d9341;this[_0x15c93d(0xd6)][_0x15c93d(0x13d)][_0x15c93d(0xf8)]();}[_0x3d9341(0xcb)](_0x1f67f9,_0x2cfdb6,_0x349654){const _0x2f2400=_0x3d9341;this[_0x2f2400(0xd6)][_0x2f2400(0x13d)][_0x2f2400(0xcb)](_0x1f67f9,_0x2cfdb6,_0x349654);}[_0x3d9341(0x163)](){const _0x1a666f=_0x3d9341;this[_0x1a666f(0xd6)][_0x1a666f(0x13d)][_0x1a666f(0x163)](),this[_0x1a666f(0xd6)][_0x1a666f(0x13d)][_0x1a666f(0xca)](this[_0x1a666f(0x14b)]());}[_0x3d9341(0xee)](_0x5784cf){const _0x268fef=_0x3d9341;this[_0x268fef(0xd6)][_0x268fef(0x13d)][_0x268fef(0xee)](_0x5784cf);}[_0x3d9341(0xf5)](_0x448ddc){const _0x571a01=_0x3d9341;this[_0x571a01(0xd6)][_0x571a01(0x13d)][_0x571a01(0xdb)](_0x448ddc[_0x571a01(0xc2)]),this[_0x571a01(0xd6)][_0x571a01(0x13d)][_0x571a01(0x109)](_0x448ddc[_0x571a01(0x12e)]),this[_0x571a01(0xd6)][_0x571a01(0x13d)][_0x571a01(0xca)](this[_0x571a01(0x14b)](_0x448ddc));}[_0x3d9341(0x15d)](_0x45f56e,_0x1c87dd){const _0x5efc6c=_0x3d9341;this[_0x5efc6c(0xd6)][_0x5efc6c(0x13d)][_0x5efc6c(0x12a)](_0x45f56e),_0x1c87dd&&this[_0x5efc6c(0xd6)][_0x5efc6c(0x13d)][_0x5efc6c(0x10b)](!0x1);}[_0x3d9341(0xe9)](_0x24d345){const _0x38f28e=_0x3d9341;this[_0x38f28e(0xe8)]=_0x24d345;}[_0x3d9341(0x146)](_0x4a21a7){const _0x152aae=_0x3d9341;this[_0x152aae(0xd6)][_0x152aae(0x157)][_0x152aae(0x146)](_0x4a21a7);}[_0x3d9341(0x10f)](){const _0x2e800c=_0x3d9341;this[_0x2e800c(0xe4)](_0x5588c3(this[_0x2e800c(0xef)][_0x2e800c(0xf6)],_0x2e800c(0x119)));}[_0x3d9341(0xe4)](_0x4b1d32,_0x24d5d4=!0x1){const _0x47cac8=_0x3d9341;if(_0x24d5d4&&!_0x1350b8()&&_0x4b1d32[_0x47cac8(0x10e)])return this[_0x47cac8(0xd6)][_0x47cac8(0xe3)][_0x47cac8(0x141)]='',void this[_0x47cac8(0x151)](_0x4b1d32);this[_0x47cac8(0xd6)][_0x47cac8(0xe3)][_0x47cac8(0x141)]=_0x4b1d32;}[_0x3d9341(0x123)](_0x158f60){const _0x483519=_0x3d9341,_0x640fa6=this[_0x483519(0x115)](_0x158f60);this[_0x483519(0xd6)][_0x483519(0x157)][_0x483519(0x123)](_0x640fa6);}[_0x3d9341(0x151)](_0x20f748){const _0x56c6dd=_0x3d9341;let _0x491e6e=0x0;clearInterval(this[_0x56c6dd(0xdf)]),this[_0x56c6dd(0xdf)]=setInterval(()=>{const _0x53b8e2=_0x56c6dd;this[_0x53b8e2(0xd6)][_0x53b8e2(0xe3)][_0x53b8e2(0x141)]=this[_0x53b8e2(0xd6)][_0x53b8e2(0xe3)][_0x53b8e2(0x141)]+_0x20f748[_0x491e6e],_0x491e6e++,_0x491e6e===_0x20f748[_0x53b8e2(0x10e)]&&clearInterval(this[_0x53b8e2(0xdf)]);},0x1e);}[_0x3d9341(0x162)](_0x339fbb){const _0x37611e=_0x3d9341;this[_0x37611e(0xd6)][_0x37611e(0xe3)][_0x37611e(0x161)]=_0x339fbb;}[_0x3d9341(0x115)](_0xec1368){const _0x5ff949=_0x3d9341;return _0xec1368?_0xec1368[_0x5ff949(0xc2)]&&_0xec1368[_0x5ff949(0x12e)]?_0x5588c3(this[_0x5ff949(0xef)][_0x5ff949(0xf6)],_0x5ff949(0x122)):_0xec1368[_0x5ff949(0xc2)]?_0x5588c3(this[_0x5ff949(0xef)][_0x5ff949(0xf6)],_0x5ff949(0x14d)):_0xec1368[_0x5ff949(0x12e)]?_0x5588c3(this[_0x5ff949(0xef)][_0x5ff949(0xf6)],_0x5ff949(0xc1)):_0x5588c3(this[_0x5ff949(0xef)][_0x5ff949(0xf6)],_0x5ff949(0x126)):'';}[_0x3d9341(0x14b)](_0x523107){const _0x4039fd=_0x3d9341;return _0x523107?_0x523107[_0x4039fd(0xc2)]&&_0x523107[_0x4039fd(0x12e)]?_0x5588c3(this[_0x4039fd(0xef)][_0x4039fd(0xf6)],_0x4039fd(0xe6)):_0x523107[_0x4039fd(0xc2)]?_0x5588c3(this[_0x4039fd(0xef)][_0x4039fd(0xf6)],_0x4039fd(0x15e)):_0x523107[_0x4039fd(0x12e)]?_0x5588c3(this[_0x4039fd(0xef)][_0x4039fd(0xf6)],_0x4039fd(0x166)):_0x5588c3(this[_0x4039fd(0xef)][_0x4039fd(0xf6)],_0x4039fd(0x13e)):_0x5588c3(this[_0x4039fd(0xef)][_0x4039fd(0xf6)],_0x4039fd(0x13e));}[_0x3d9341(0x11e)](_0x456439,_0x363bc1,_0x4415ed,_0x49ffb7){const _0x29fc8f=_0x3d9341;this[_0x29fc8f(0xd6)][_0x29fc8f(0x11e)](_0x456439,_0x363bc1,_0x4415ed,_0x49ffb7);}[_0x3d9341(0x113)](_0x3c50a3){const _0x246eb5=_0x3d9341;this[_0x246eb5(0xd6)][_0x246eb5(0x113)](_0x3c50a3);}[_0x3d9341(0x15f)](){const _0x15a115=_0x3d9341;this[_0x15a115(0xd6)][_0x15a115(0x13d)][_0x15a115(0x15f)]();}[_0x3d9341(0x112)](_0x1960ff,_0x5eac6a){const _0xe75d18=_0x3d9341;this[_0xe75d18(0xd6)][_0xe75d18(0x157)][_0xe75d18(0x139)](_0x1960ff,_0x5eac6a);}[_0x3d9341(0x107)](){const _0x2e7fc1=_0x3d9341;this[_0x2e7fc1(0xd6)][_0x2e7fc1(0x157)][_0x2e7fc1(0x107)]();}[_0x3d9341(0x167)](){const _0x472d8d=_0x3d9341;this[_0x472d8d(0xd6)][_0x472d8d(0x13d)][_0x472d8d(0xf2)]=!0x0;}[_0x3d9341(0x118)](){const _0x1e7efa=_0x3d9341;this[_0x1e7efa(0xd6)][_0x1e7efa(0x13d)][_0x1e7efa(0xf2)]=!0x1;}}
|
|
23
|
+
function _0x5462(_0x11a472,_0x1be880){const _0x66a5bd=_0x66a5();return _0x5462=function(_0x546269,_0x3b9eef){_0x546269=_0x546269-0x1ec;let _0x28e2ae=_0x66a5bd[_0x546269];return _0x28e2ae;},_0x5462(_0x11a472,_0x1be880);}const _0x4c0c2f=_0x5462;(function(_0x292fa4,_0xe9e480){const _0x4d4c64=_0x5462,_0x424ec5=_0x292fa4();while(!![]){try{const _0x511b8a=-parseInt(_0x4d4c64(0x21e))/0x1+-parseInt(_0x4d4c64(0x20a))/0x2+parseInt(_0x4d4c64(0x1f7))/0x3*(-parseInt(_0x4d4c64(0x211))/0x4)+parseInt(_0x4d4c64(0x287))/0x5+-parseInt(_0x4d4c64(0x21d))/0x6*(-parseInt(_0x4d4c64(0x223))/0x7)+parseInt(_0x4d4c64(0x265))/0x8*(parseInt(_0x4d4c64(0x283))/0x9)+parseInt(_0x4d4c64(0x259))/0xa;if(_0x511b8a===_0xe9e480)break;else _0x424ec5['push'](_0x424ec5['shift']());}catch(_0x36dd94){_0x424ec5['push'](_0x424ec5['shift']());}}}(_0x66a5,0xdbc4f));import{ContextPlugin as _0x29c7e0}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x34055f}from'ckeditor5/src/utils.js';import{AIChatView as _0x3cba1f}from'./ui/aichatview.js';import{AITabs as _0x5839cd}from'../aitabs/aitabs.js';import{getTranslation as _0xd99c66}from'../aicore/utils/common-translations.js';function _0x66a5(){const _0x72ea18=['values','streaming','_getInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','78638cbyykw','clearConversationContextUI','setSelectedModel','availableModels','_view','addFeedItemUserMessage','TrackChanges','_interactionPromiseResolver','enqueue','disableModelSelector','bind','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','clearPendingContextUI','isBusy','isPending','setAddContextOptions','ai.availableReplyActions','abort','_getLoadingMessage','filter','resetMessageInput','last','setFeedItemRenderingStrategy','addContextItem','focusPromptInput','isReasoningEnabled','setWebSearch','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','has','removeItem','enableControls','setConversationContext','clear','AI_CHAT_WELCOME_MESSAGE','isDisabled','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplyContent','feedItemRenderingStrategy','closeSourceResourceBalloon','get','ai.chat.context.searchInputVisibleFrom','queueEmptyPromise','setModel','updateFeedInteractionHeader','user-message','error-message','updateCapabilities','label','set','stopInteraction','setReasoning','createConversation','destroy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','22906010zeuLby','plugins','isVisible','isPremiumPlugin','renderingStrategy','updateSuggestionItem','<p>','toggleSuggestionDisplayMode','setLoadingMessage','ai-suggestion-reply','conversation-start','pluginName','344CKbynn','isMaximized','displayedPrompt','length','chat','setConversationTitle','find','_isTrackChangesCommandValueBound','interaction-header','resetConversationTitle','removeContextItem','ai-reply','stopAutoScroll','_animateConversationTitle','_promiseQueue','quickActionData','markFeedItemAsDone','updateFeedItemAIReplySuggestionPartState','AIChatUI','delegate','remove','chatControls','isModelAvailable','locale','addItem','showDiff','AITabs','finishInteraction','updateResourceState','setIsUploadInProgress','297639WrMwaf','setIsMaximized','</p>','populateSourceResourceBalloon','11060XbBDKG','addFeedItemAISuggestion','chatFeed','insertSuggestion','ai.chat.models.modelSelectorAlwaysVisible','addFeedItemAIReply','updateSuggestionPartState','addFeedItemStaticMessage','AI_CHAT_HEADING','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','contextItems','isLoading','isOfficialPlugin','toggleLoadingSkeleton','requires','startAutoScroll','startsWith','addFeedInteractionHeader','_titleAnimationInterval','disableControls','context','isTrackChangesOn','view','333NxkJqH','setInputPlaceholder','config','getItemIds','from','interactionId','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','scrollFeedToSuggestion','chatHeader','updateFeedItemAIReplySources','addFeedItemError','removeFeedInteraction','scrollToSuggestion','value','isDone','markItemAsDone','setModelList','capabilities','startInteraction','2024666ShZGrg','isWebSearchEnabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','forEach','updateReplyItem','updateWebSources','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','25364cmPUMc','options','addTab','areActionsDisabled','commands','children','showResizeButton','enableModelSelector','setContextItemLoading','trackChanges','userMessage','then','366TXNYYc','1783781cjdknZ'];_0x66a5=function(){return _0x72ea18;};return _0x66a5();}import{IconAIChat as _0x32615d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f1eb9}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5b4db5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x54c5e5}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x1563ee}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0xe07d54}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x29c7e0{static get[_0x4c0c2f(0x1ee)](){return[_0x5839cd];}[_0x4c0c2f(0x227)];static get[_0x4c0c2f(0x264)](){const _0x223d9a=_0x4c0c2f;return _0x223d9a(0x277);}static get[_0x4c0c2f(0x1ec)](){return!0x0;}static get[_0x4c0c2f(0x25c)](){return!0x0;}[_0x4c0c2f(0x248)]=_0x4c0c2f(0x220);[_0x4c0c2f(0x27e)]=!0x0;[_0x4c0c2f(0x273)];[_0x4c0c2f(0x22a)];[_0x4c0c2f(0x1f2)]=void 0x0;[_0x4c0c2f(0x26c)]=!0x1;constructor(_0x3c41cb){const _0x2b5490=_0x4c0c2f;super(_0x3c41cb);const _0x175086=this[_0x2b5490(0x1f4)][_0x2b5490(0x25a)][_0x2b5490(0x24a)](_0x2b5490(0x27f));this[_0x2b5490(0x253)](_0x2b5490(0x230),!0x1),this[_0x2b5490(0x273)]=new _0x5b4db5(),this[_0x2b5490(0x227)]=new _0x3cba1f(this[_0x2b5490(0x1f4)][_0x2b5490(0x27c)],{'showResizeButton':_0x175086[_0x2b5490(0x217)],'contextResourcesSearchInputVisibleFrom':this[_0x2b5490(0x1f4)][_0x2b5490(0x1f9)][_0x2b5490(0x24a)](_0x2b5490(0x24b))}),this[_0x2b5490(0x227)][_0x2b5490(0x278)](..._0x54c5e5)['to'](this),this[_0x2b5490(0x227)]['on'](_0x2b5490(0x260),(_0x5b1c3a,{showDiff:_0x4b60c7})=>{const _0x66764c=_0x2b5490;this[_0x66764c(0x27e)]=_0x4b60c7;}),_0x175086[_0x2b5490(0x1f6)][_0x2b5490(0x213)]({'id':_0x2b5490(0x269),'buttonLabel':_0xd99c66(this[_0x2b5490(0x1f4)][_0x2b5490(0x27c)],_0x2b5490(0x28f)),'buttonIcon':_0x32615d,'order':0x0,'content':this[_0x2b5490(0x227)]}),this[_0x2b5490(0x227)][_0x2b5490(0x27a)][_0x2b5490(0x22d)](_0x2b5490(0x292))['to'](this,_0x2b5490(0x230),_0x5dbcda=>_0x5dbcda),this[_0x2b5490(0x227)][_0x2b5490(0x289)][_0x2b5490(0x22d)](_0x2b5490(0x231))['to'](this,_0x2b5490(0x230),_0x3cb5b1=>_0x3cb5b1),this[_0x2b5490(0x227)][_0x2b5490(0x27a)][_0x2b5490(0x1f8)](this[_0x2b5490(0x221)]()),this[_0x2b5490(0x22d)](_0x2b5490(0x27b))['to'](this[_0x2b5490(0x227)][_0x2b5490(0x27a)],_0x2b5490(0x27b));}[_0x4c0c2f(0x257)](){const _0x4d475e=_0x4c0c2f;super[_0x4d475e(0x257)](),this[_0x4d475e(0x1f2)]&&clearInterval(this[_0x4d475e(0x1f2)]);}[_0x4c0c2f(0x256)](_0x24d8dc){const _0x52e5a0=_0x4c0c2f;this[_0x52e5a0(0x227)][_0x52e5a0(0x289)][_0x52e5a0(0x243)](),this[_0x52e5a0(0x227)][_0x52e5a0(0x27a)][_0x52e5a0(0x218)](),this[_0x52e5a0(0x227)][_0x52e5a0(0x27a)][_0x52e5a0(0x207)](_0x24d8dc[_0x52e5a0(0x226)],!this[_0x52e5a0(0x1f4)][_0x52e5a0(0x1f9)][_0x52e5a0(0x24a)](_0x52e5a0(0x28b))),this[_0x52e5a0(0x28e)]({'id':_0x52e5a0(0x263),'staticMessage':_0xd99c66(this[_0x52e5a0(0x1f4)][_0x52e5a0(0x27c)],_0x52e5a0(0x244))});}[_0x4c0c2f(0x28e)]({id:_0x51f3da,staticMessage:_0x2af47e}){const _0x680c1f=_0x4c0c2f;this[_0x680c1f(0x227)][_0x680c1f(0x289)][_0x680c1f(0x27d)](_0x680c1f(0x270),{'id':_0x51f3da,'initialContent':_0x680c1f(0x25f)+_0x2af47e+_0x680c1f(0x285)});}[_0x4c0c2f(0x228)](_0x356b7d){const _0x3e1682=_0x4c0c2f,_0xd7480=_0x356b7d[_0x3e1682(0x274)]?.[_0x3e1682(0x267)]||_0x356b7d[_0x3e1682(0x21b)];this[_0x3e1682(0x227)][_0x3e1682(0x289)][_0x3e1682(0x27d)](_0x3e1682(0x24f),{'contextItems':Array[_0x3e1682(0x1fb)](_0x356b7d[_0x3e1682(0x291)][_0x3e1682(0x21f)]()),'initialContent':_0x3e1682(0x25f)+_0xd7480+_0x3e1682(0x285),'id':_0x356b7d['id']});}[_0x4c0c2f(0x201)]({errorMessage:_0x2c3892,id:_0xdb33dd}){const _0x4d15a2=_0x4c0c2f;this[_0x4d15a2(0x227)][_0x4d15a2(0x289)][_0x4d15a2(0x27d)](_0x4d15a2(0x250),{'initialContent':_0x4d15a2(0x25f)+_0x2c3892+_0x4d15a2(0x285),'id':_0xdb33dd});}[_0x4c0c2f(0x28c)](_0x4c4d97){const _0x1d8d82=_0x4c0c2f;return this[_0x1d8d82(0x273)][_0x1d8d82(0x22b)](async()=>{const _0x39c930=_0x1d8d82;this[_0x39c930(0x227)][_0x39c930(0x289)][_0x39c930(0x27d)](_0x39c930(0x270),{'id':_0x4c4d97[_0x39c930(0x1fc)]+':'+_0x4c4d97['id']}),this[_0x39c930(0x261)](null);});}async[_0x4c0c2f(0x288)](_0x2a9230){const _0x1e10db=_0x4c0c2f,_0x268c43=_0x1563ee(this[_0x1e10db(0x1f4)]);let _0xfc3891=_0x268c43[_0x1e10db(0x1f9)][_0x1e10db(0x24a)](_0x1e10db(0x233))||[..._0xe07d54];if(_0x268c43[_0x1e10db(0x25a)][_0x1e10db(0x23f)](_0x1e10db(0x229))){if(!this[_0x1e10db(0x26c)]){this[_0x1e10db(0x26c)]=!0x0;const _0xd38915=_0x268c43[_0x1e10db(0x215)][_0x1e10db(0x24a)](_0x1e10db(0x21a));this[_0x1e10db(0x227)][_0x1e10db(0x289)][_0x1e10db(0x22d)](_0x1e10db(0x1f5))['to'](_0xd38915,_0x1e10db(0x204));}}else _0xfc3891=_0xfc3891[_0x1e10db(0x236)](_0x1c51f1=>_0x1e10db(0x28a)!=_0x1c51f1);return this[_0x1e10db(0x273)][_0x1e10db(0x22b)](async()=>{const _0x1e9d5d=_0x1e10db;this[_0x1e9d5d(0x227)][_0x1e9d5d(0x289)][_0x1e9d5d(0x27d)](_0x1e9d5d(0x262),{'id':_0x2a9230[_0x1e9d5d(0x1fc)]+':'+_0x2a9230['id'],'areActionsDisabled':_0x2a9230[_0x1e9d5d(0x214)],'showDiff':this[_0x1e9d5d(0x27e)],'availableActions':_0xfc3891}),this[_0x1e9d5d(0x261)](null);});}[_0x4c0c2f(0x1f1)](_0x1c0c05,_0x13e3fd){const _0x533447=_0x4c0c2f,_0x18ef3e=this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x216)][_0x533447(0x238)];if(_0x18ef3e instanceof _0x4f1eb9)return this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x216)][_0x533447(0x279)](_0x18ef3e),void this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x27d)](_0x533447(0x26d),{'id':_0x1c0c05['id'],'capabilities':{'isWebSearchEnabled':_0x18ef3e[_0x533447(0x208)][_0x533447(0x20b)]||_0x13e3fd[_0x533447(0x20b)],'isReasoningEnabled':_0x18ef3e[_0x533447(0x208)][_0x533447(0x23c)]||_0x13e3fd[_0x533447(0x23c)]}});this[_0x533447(0x227)][_0x533447(0x289)][_0x533447(0x27d)](_0x533447(0x26d),{'id':_0x1c0c05['id'],'capabilities':_0x13e3fd});}[_0x4c0c2f(0x24e)](_0x19fe63){const _0x1493d8=_0x4c0c2f,_0x8e5fd6=this[_0x1493d8(0x227)][_0x1493d8(0x289)][_0x1493d8(0x216)][_0x1493d8(0x26b)](_0x2ed906=>_0x2ed906[_0x1493d8(0x212)]['id']==_0x19fe63['id']&&_0x2ed906 instanceof _0x4f1eb9);_0x8e5fd6&&_0x8e5fd6[_0x1493d8(0x253)](_0x1493d8(0x25b),_0x19fe63[_0x1493d8(0x25b)]);}async[_0x4c0c2f(0x247)](_0x46f3f5){const _0x53fd05=_0x4c0c2f,_0x422cc2=_0x46f3f5[_0x53fd05(0x25d)]||this[_0x53fd05(0x248)];return this[_0x53fd05(0x273)][_0x53fd05(0x22b)](async _0x5a4bea=>{const _0xc6106f=_0x53fd05;await this[_0xc6106f(0x227)][_0xc6106f(0x289)][_0xc6106f(0x20e)]({..._0x46f3f5,'abortSignal':_0x5a4bea,'renderingStrategy':_0x422cc2}),_0x46f3f5[_0xc6106f(0x205)]&&this[_0xc6106f(0x275)](_0x46f3f5['id']);});}[_0x4c0c2f(0x200)](_0x2c980a,_0xdcaaef){const _0x38742b=_0x4c0c2f;this[_0x38742b(0x227)][_0x38742b(0x289)][_0x38742b(0x20f)](_0x2c980a,_0xdcaaef);}async[_0x4c0c2f(0x246)](_0x10e7a6){const _0x20e3dd=_0x4c0c2f,_0x3234b6=_0x10e7a6[_0x20e3dd(0x25d)]||this[_0x20e3dd(0x248)];return this[_0x20e3dd(0x273)][_0x20e3dd(0x22b)](async _0xa69024=>{const _0x128472=_0x20e3dd;await this[_0x128472(0x227)][_0x128472(0x289)][_0x128472(0x25e)]({..._0x10e7a6,'abortSignal':_0xa69024,'renderingStrategy':_0x3234b6}),_0x10e7a6[_0x128472(0x205)]&&this[_0x128472(0x275)](_0x10e7a6['id']);});}[_0x4c0c2f(0x276)](_0x4e6ed2){const _0x263f59=_0x4c0c2f;this[_0x263f59(0x227)][_0x263f59(0x289)][_0x263f59(0x28d)](_0x4e6ed2);}[_0x4c0c2f(0x275)](_0x1bca8f){const _0x4408ec=_0x4c0c2f;this[_0x4408ec(0x227)][_0x4408ec(0x289)][_0x4408ec(0x206)](_0x1bca8f);}[_0x4c0c2f(0x202)](_0x1270e1){const _0x2574e4=_0x4c0c2f;this[_0x2574e4(0x227)][_0x2574e4(0x289)][_0x2574e4(0x1fa)]()[_0x2574e4(0x236)](_0xb40419=>_0xb40419[_0x2574e4(0x1f0)](_0x1270e1))[_0x2574e4(0x20d)](_0x6ccfd7=>this[_0x2574e4(0x227)][_0x2574e4(0x289)][_0x2574e4(0x240)](_0x6ccfd7));}[_0x4c0c2f(0x209)](){const _0x2868ba=_0x4c0c2f;this[_0x2868ba(0x261)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2868ba(0x227)][_0x2868ba(0x27a)][_0x2868ba(0x22c)](!this[_0x2868ba(0x1f4)][_0x2868ba(0x1f9)][_0x2868ba(0x24a)](_0x2868ba(0x28b))),this[_0x2868ba(0x230)]=!0x0,this[_0x2868ba(0x227)][_0x2868ba(0x289)][_0x2868ba(0x1ef)]();}[_0x4c0c2f(0x254)](_0x12f113){const _0x511a0f=_0x4c0c2f;this[_0x511a0f(0x273)][_0x511a0f(0x234)](),this[_0x511a0f(0x227)][_0x511a0f(0x289)][_0x511a0f(0x1fa)]()[_0x511a0f(0x236)](_0x42d44e=>_0x42d44e[_0x511a0f(0x1f0)](_0x12f113['id']))[_0x511a0f(0x20d)](_0x457ee6=>this[_0x511a0f(0x275)](_0x457ee6)),this[_0x511a0f(0x230)]=!0x1,this[_0x511a0f(0x227)][_0x511a0f(0x289)][_0x511a0f(0x271)]();}async[_0x4c0c2f(0x280)](){const _0x52f496=_0x4c0c2f;return this[_0x52f496(0x273)][_0x52f496(0x24c)][_0x52f496(0x21c)](()=>{const _0x26a962=_0x52f496;this[_0x26a962(0x230)]=!0x1,this[_0x26a962(0x227)][_0x26a962(0x289)][_0x26a962(0x271)]();});}[_0x4c0c2f(0x23a)](_0x1f075e,_0x2b15bd){const _0x413552=_0x4c0c2f;this[_0x413552(0x227)][_0x413552(0x27a)][_0x413552(0x23a)](_0x1f075e,_0x2b15bd);}[_0x4c0c2f(0x26f)](_0x15018d){const _0x536ce4=_0x4c0c2f;this[_0x536ce4(0x227)][_0x536ce4(0x27a)][_0x536ce4(0x26f)](_0x15018d);}[_0x4c0c2f(0x219)](_0x3b67a2,_0x14d4b6){const _0xbe759f=_0x4c0c2f;this[_0xbe759f(0x227)][_0xbe759f(0x27a)][_0xbe759f(0x219)](_0x3b67a2,_0x14d4b6);}[_0x4c0c2f(0x282)](_0x4bd22f){const _0x3a49de=_0x4c0c2f;this[_0x3a49de(0x227)][_0x3a49de(0x27a)][_0x3a49de(0x282)](_0x4bd22f);}[_0x4c0c2f(0x242)](_0x3aa154){const _0x1fab4a=_0x4c0c2f;this[_0x1fab4a(0x227)][_0x1fab4a(0x27a)][_0x1fab4a(0x242)](_0x3aa154);}[_0x4c0c2f(0x22f)](){const _0x578874=_0x4c0c2f;this[_0x578874(0x227)][_0x578874(0x27a)][_0x578874(0x22f)]();}[_0x4c0c2f(0x224)](){const _0x4dffc9=_0x4c0c2f;this[_0x4dffc9(0x227)][_0x4dffc9(0x27a)][_0x4dffc9(0x224)]();}[_0x4c0c2f(0x281)](_0x23c8d3,_0x5c6556,_0x4bfcf5){const _0x2153d1=_0x4c0c2f;this[_0x2153d1(0x227)][_0x2153d1(0x27a)][_0x2153d1(0x281)](_0x23c8d3,_0x5c6556,_0x4bfcf5);}[_0x4c0c2f(0x237)](){const _0x5055ff=_0x4c0c2f;this[_0x5055ff(0x227)][_0x5055ff(0x27a)][_0x5055ff(0x237)](),this[_0x5055ff(0x227)][_0x5055ff(0x27a)][_0x5055ff(0x1f8)](this[_0x5055ff(0x221)]());}[_0x4c0c2f(0x232)](_0x21d0a4){const _0xf31120=_0x4c0c2f;this[_0xf31120(0x227)][_0xf31120(0x27a)][_0xf31120(0x232)](_0x21d0a4);}[_0x4c0c2f(0x251)](_0x14cc4a){const _0x4f0245=_0x4c0c2f;this[_0x4f0245(0x227)][_0x4f0245(0x27a)][_0x4f0245(0x23d)](_0x14cc4a[_0x4f0245(0x20b)]),this[_0x4f0245(0x227)][_0x4f0245(0x27a)][_0x4f0245(0x255)](_0x14cc4a[_0x4f0245(0x23c)]),this[_0x4f0245(0x227)][_0x4f0245(0x27a)][_0x4f0245(0x1f8)](this[_0x4f0245(0x221)](_0x14cc4a));}[_0x4c0c2f(0x225)](_0x186792,_0x4bf40d){const _0x1c112c=_0x4c0c2f;this[_0x1c112c(0x227)][_0x1c112c(0x27a)][_0x1c112c(0x24d)](_0x186792),_0x4bf40d&&this[_0x1c112c(0x227)][_0x1c112c(0x27a)][_0x1c112c(0x22c)](!0x1);}[_0x4c0c2f(0x239)](_0x17b348){const _0x1cdd36=_0x4c0c2f;this[_0x1cdd36(0x248)]=_0x17b348;}[_0x4c0c2f(0x1ed)](_0x283343){const _0x54d6fa=_0x4c0c2f;this[_0x54d6fa(0x227)][_0x54d6fa(0x289)][_0x54d6fa(0x1ed)](_0x283343);}[_0x4c0c2f(0x26e)](){const _0x4d7d3c=_0x4c0c2f;this[_0x4d7d3c(0x26a)](_0xd99c66(this[_0x4d7d3c(0x1f4)][_0x4d7d3c(0x27c)],_0x4d7d3c(0x28f)));}[_0x4c0c2f(0x26a)](_0x6e1abe,_0x5b1425=!0x1){const _0x29982=_0x4c0c2f;if(_0x5b1425&&!_0x34055f()&&_0x6e1abe[_0x29982(0x268)])return this[_0x29982(0x227)][_0x29982(0x1ff)][_0x29982(0x252)]='',void this[_0x29982(0x272)](_0x6e1abe);this[_0x29982(0x227)][_0x29982(0x1ff)][_0x29982(0x252)]=_0x6e1abe;}[_0x4c0c2f(0x261)](_0x2c530e){const _0x37f3e0=_0x4c0c2f,_0x10ff3d=this[_0x37f3e0(0x235)](_0x2c530e);this[_0x37f3e0(0x227)][_0x37f3e0(0x289)][_0x37f3e0(0x261)](_0x10ff3d);}[_0x4c0c2f(0x272)](_0xf2f1eb){const _0x30ba41=_0x4c0c2f;let _0xaeac66=0x0;clearInterval(this[_0x30ba41(0x1f2)]),this[_0x30ba41(0x1f2)]=setInterval(()=>{const _0x135cd7=_0x30ba41;this[_0x135cd7(0x227)][_0x135cd7(0x1ff)][_0x135cd7(0x252)]=this[_0x135cd7(0x227)][_0x135cd7(0x1ff)][_0x135cd7(0x252)]+_0xf2f1eb[_0xaeac66],_0xaeac66++,_0xaeac66===_0xf2f1eb[_0x135cd7(0x268)]&&clearInterval(this[_0x135cd7(0x1f2)]);},0x1e);}[_0x4c0c2f(0x284)](_0x2f9594){const _0x1403a7=_0x4c0c2f;this[_0x1403a7(0x227)][_0x1403a7(0x1ff)][_0x1403a7(0x266)]=_0x2f9594;}[_0x4c0c2f(0x235)](_0x1d7c1a){const _0x169270=_0x4c0c2f;return _0x1d7c1a?_0x1d7c1a[_0x169270(0x20b)]&&_0x1d7c1a[_0x169270(0x23c)]?_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x222)):_0x1d7c1a[_0x169270(0x20b)]?_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x23e)):_0x1d7c1a[_0x169270(0x23c)]?_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x290)):_0xd99c66(this[_0x169270(0x1f4)][_0x169270(0x27c)],_0x169270(0x22e)):'';}[_0x4c0c2f(0x221)](_0xda1f3a){const _0x253c5c=_0x4c0c2f;return _0xda1f3a?_0xda1f3a[_0x253c5c(0x20b)]&&_0xda1f3a[_0x253c5c(0x23c)]?_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x210)):_0xda1f3a[_0x253c5c(0x20b)]?_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x1fd)):_0xda1f3a[_0x253c5c(0x23c)]?_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x20c)):_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x258)):_0xd99c66(this[_0x253c5c(0x1f4)][_0x253c5c(0x27c)],_0x253c5c(0x258));}[_0x4c0c2f(0x286)](_0x22823a,_0x1d8693,_0x16ae9b,_0xfa114f){const _0x390dc2=_0x4c0c2f;this[_0x390dc2(0x227)][_0x390dc2(0x286)](_0x22823a,_0x1d8693,_0x16ae9b,_0xfa114f);}[_0x4c0c2f(0x249)](_0x583a18){const _0x2876df=_0x4c0c2f;this[_0x2876df(0x227)][_0x2876df(0x249)](_0x583a18);}[_0x4c0c2f(0x23b)](){const _0x81d9de=_0x4c0c2f;this[_0x81d9de(0x227)][_0x81d9de(0x27a)][_0x81d9de(0x23b)]();}[_0x4c0c2f(0x1fe)](_0x47cd03,_0x293e73){const _0x8975e8=_0x4c0c2f;this[_0x8975e8(0x227)][_0x8975e8(0x289)][_0x8975e8(0x203)](_0x47cd03,_0x293e73);}[_0x4c0c2f(0x1ef)](){const _0xdf82e4=_0x4c0c2f;this[_0xdf82e4(0x227)][_0xdf82e4(0x289)][_0xdf82e4(0x1ef)]();}[_0x4c0c2f(0x1f3)](){const _0x33fde3=_0x4c0c2f;this[_0x33fde3(0x227)][_0x33fde3(0x27a)][_0x33fde3(0x245)]=!0x0;}[_0x4c0c2f(0x241)](){const _0x8ca0ed=_0x4c0c2f;this[_0x8ca0ed(0x227)][_0x8ca0ed(0x27a)][_0x8ca0ed(0x245)]=!0x1;}}
|