@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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 +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/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/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/aireviewmodels.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/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
|
-
const
|
|
23
|
+
const _0x1954c9=_0x1f0d;function _0x402f(){const _0x188709=['set','290457FITAeL','31144HycioT','ck-ai-chat-history__section','splice','324HzaPQR','isMatching','36VNXrVJ','bindTemplate','_itemsListView','find','itemsViews','title','1005852mZTglK','indexOf','length','689122NDNhsv','20658560APdASg','div','ck-ai-chat-history__section-title','removeItem','highlightText','4XuHCoy','items','addMany','filter','getItem','1671401pcaUol','isVisible','ck-hidden','4098425tiGCXZ','remove','setTemplate'];_0x402f=function(){return _0x188709;};return _0x402f();}(function(_0x5d3e29,_0x3b80f3){const _0x401663=_0x1f0d,_0x53d967=_0x5d3e29();while(!![]){try{const _0x427740=-parseInt(_0x401663(0x1da))/0x1+parseInt(_0x401663(0x1cc))/0x2+-parseInt(_0x401663(0x1c0))/0x3+parseInt(_0x401663(0x1d5))/0x4*(parseInt(_0x401663(0x1dd))/0x5)+-parseInt(_0x401663(0x1c6))/0x6*(parseInt(_0x401663(0x1cf))/0x7)+parseInt(_0x401663(0x1c1))/0x8*(-parseInt(_0x401663(0x1c4))/0x9)+parseInt(_0x401663(0x1d0))/0xa;if(_0x427740===_0x3b80f3)break;else _0x53d967['push'](_0x53d967['shift']());}catch(_0x36ffd5){_0x53d967['push'](_0x53d967['shift']());}}}(_0x402f,0xd924f));function _0x1f0d(_0x32f9b1,_0x10591a){const _0x402f2e=_0x402f();return _0x1f0d=function(_0x1f0d6d,_0x12ae8d){_0x1f0d6d=_0x1f0d6d-0x1bf;let _0x5a6707=_0x402f2e[_0x1f0d6d];return _0x5a6707;},_0x1f0d(_0x32f9b1,_0x10591a);}import{ListItemView as _0x10570c,View as _0x19dcad,ListView as _0x1ac39b}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x10570c{[_0x1954c9(0x1cb)];[_0x1954c9(0x1ca)];[_0x1954c9(0x1c8)];constructor(_0x260adc,{title:_0x3b1ce1,items:_0x589ede}){const _0x34bda0=_0x1954c9;super(_0x260adc);const _0x4b9303=this[_0x34bda0(0x1c7)];this[_0x34bda0(0x1bf)](_0x34bda0(0x1db),!0x0),this[_0x34bda0(0x1cb)]=_0x3b1ce1,this[_0x34bda0(0x1ca)]=_0x589ede;const _0x10af70=new _0x19dcad(_0x260adc);_0x10af70[_0x34bda0(0x1df)]({'tag':_0x34bda0(0x1d1),'attributes':{'class':[_0x34bda0(0x1d2)]},'children':[this[_0x34bda0(0x1cb)]]}),this[_0x34bda0(0x1c8)]=new _0x1ac39b(_0x260adc),this[_0x34bda0(0x1c8)][_0x34bda0(0x1d6)][_0x34bda0(0x1d7)](this[_0x34bda0(0x1ca)]),this[_0x34bda0(0x1df)]({'tag':'li','attributes':{'class':[_0x34bda0(0x1c2),_0x4b9303['if'](_0x34bda0(0x1db),_0x34bda0(0x1dc),_0x4fe191=>!_0x4fe191)]},'children':[_0x10af70,this[_0x34bda0(0x1c8)]]});}[_0x1954c9(0x1d8)](_0x3681dd){const _0x28e5ea=_0x1954c9,_0x19ce17=this[_0x28e5ea(0x1ca)][_0x28e5ea(0x1ce)];let _0x19df3a=0x0;for(const _0x1c4b25 of this[_0x28e5ea(0x1ca)]){if(_0x3681dd){const _0x4fe8f8=_0x1c4b25[_0x28e5ea(0x1c5)](_0x3681dd);_0x1c4b25[_0x28e5ea(0x1db)]=!!_0x4fe8f8,_0x1c4b25[_0x28e5ea(0x1d4)](_0x3681dd);}else _0x1c4b25[_0x28e5ea(0x1db)]=!0x0,_0x1c4b25[_0x28e5ea(0x1d4)](null);_0x1c4b25[_0x28e5ea(0x1db)]&&_0x19df3a++;}return this[_0x28e5ea(0x1db)]=_0x19df3a>0x0,{'resultsCount':_0x19df3a,'totalItemsCount':_0x19ce17};}[_0x1954c9(0x1d9)](_0x1274dc){const _0x3bd7df=_0x1954c9;return this[_0x3bd7df(0x1ca)][_0x3bd7df(0x1c9)](_0x5a9d79=>_0x5a9d79['id']===_0x1274dc);}[_0x1954c9(0x1d3)](_0x5f334e){const _0x399512=_0x1954c9,_0x3fa928=this[_0x399512(0x1ca)][_0x399512(0x1cd)](_0x5f334e);-0x1!==_0x3fa928&&(this[_0x399512(0x1ca)][_0x399512(0x1c3)](_0x3fa928,0x1),this[_0x399512(0x1c8)][_0x399512(0x1d6)][_0x399512(0x1de)](_0x5f334e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x32bf(_0x2e9be2,_0xaff9e1){const _0x57f1d9=_0x57f1();return _0x32bf=function(_0x32bf59,_0x2d9eae){_0x32bf59=_0x32bf59-0x1a2;let _0x597884=_0x57f1d9[_0x32bf59];return _0x597884;},_0x32bf(_0x2e9be2,_0xaff9e1);}const _0x3f6336=_0x32bf;(function(_0x2672b3,_0x2f8809){const _0x456ac1=_0x32bf,_0x41b50f=_0x2672b3();while(!![]){try{const _0x55a7f3=parseInt(_0x456ac1(0x1a2))/0x1*(parseInt(_0x456ac1(0x1a4))/0x2)+-parseInt(_0x456ac1(0x1ae))/0x3*(-parseInt(_0x456ac1(0x1a3))/0x4)+-parseInt(_0x456ac1(0x1a7))/0x5*(parseInt(_0x456ac1(0x1a6))/0x6)+-parseInt(_0x456ac1(0x1ad))/0x7+parseInt(_0x456ac1(0x1b0))/0x8+parseInt(_0x456ac1(0x1b2))/0x9*(parseInt(_0x456ac1(0x1b1))/0xa)+-parseInt(_0x456ac1(0x1a8))/0xb*(parseInt(_0x456ac1(0x1af))/0xc);if(_0x55a7f3===_0x2f8809)break;else _0x41b50f['push'](_0x41b50f['shift']());}catch(_0x1a6d52){_0x41b50f['push'](_0x41b50f['shift']());}}}(_0x57f1,0xbb2b2));import{ListView as _0x344ddd}from'ckeditor5/src/ui.js';function _0x57f1(){const _0x79a653=['1369008PSwKiL','filter','1TQJEdx','30696EXQezo','812036yZiYFV','sections','912rMtJej','7415olajXU','6941mufTXS','extendTemplate','ck-ai-chat-history__sections','addMany','items','6374984pGzXXE','135YWKzDd','360iPzNhX','8145920mJqeFj','10nIgyRH'];_0x57f1=function(){return _0x79a653;};return _0x57f1();}export class AIChatHistorySectionListView extends _0x344ddd{[_0x3f6336(0x1a5)];constructor(_0x2d7af3,_0x31b3ef){const _0x1ac9df=_0x3f6336;super(_0x2d7af3),this[_0x1ac9df(0x1a5)]=_0x31b3ef,this[_0x1ac9df(0x1ac)][_0x1ac9df(0x1ab)](this[_0x1ac9df(0x1a5)]),this[_0x1ac9df(0x1a9)]({'attributes':{'class':[_0x1ac9df(0x1aa)]}});}[_0x3f6336(0x1b3)](_0x34d5a8){const _0x337d76=_0x3f6336;let _0x1e76ef=0x0,_0x339e28=0x0;for(const _0x428d01 of this[_0x337d76(0x1a5)]){const {resultsCount:_0x2838d7,totalItemsCount:_0x45a0e7}=_0x428d01[_0x337d76(0x1b3)](_0x34d5a8);_0x1e76ef+=_0x2838d7,_0x339e28+=_0x45a0e7;}return{'resultsCount':_0x1e76ef,'totalItemsCount':_0x339e28};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x9070(_0x3ee975,_0x330f96){const _0x29c7f9=_0x29c7();return _0x9070=function(_0x907045,_0x287954){_0x907045=_0x907045-0x10d;let _0x238fa8=_0x29c7f9[_0x907045];return _0x238fa8;},_0x9070(_0x3ee975,_0x330f96);}const _0x32357c=_0x9070;(function(_0x392a4b,_0x25eb92){const _0x2573b5=_0x9070,_0x444ea5=_0x392a4b();while(!![]){try{const _0x25ea2a=-parseInt(_0x2573b5(0x146))/0x1+-parseInt(_0x2573b5(0x154))/0x2+parseInt(_0x2573b5(0x10f))/0x3+parseInt(_0x2573b5(0x124))/0x4*(parseInt(_0x2573b5(0x11f))/0x5)+parseInt(_0x2573b5(0x13c))/0x6+parseInt(_0x2573b5(0x141))/0x7+-parseInt(_0x2573b5(0x12a))/0x8;if(_0x25ea2a===_0x25eb92)break;else _0x444ea5['push'](_0x444ea5['shift']());}catch(_0x34c47d){_0x444ea5['push'](_0x444ea5['shift']());}}}(_0x29c7,0x81375));import{View as _0x54a589,SearchTextView as _0x3222d4,FormHeaderView as _0x86cf60,ButtonView as _0x3ea19e}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1491d7,IconCancel as _0x521d25,IconPlus as _0xa30ac2}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x13523e}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x571185}from'./aichathistorylistview.js';function _0x29c7(){const _0xbae310=['_createSkeletonView','ck-rounded-corners','execute','ck-ai-chat-error','openChat','addMany','indexOf','ltr','isMaximized','445238JVqLGH','ck-ai-chat-history','_createListItemViews','search','resizeButton','ck-hidden','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','_updateViewVisibility','render','children','isSearchViewVisible','extendTemplate','splice','isVisible','ck-ai-chat-history__empty-message','errorMessage','ck-ai-chat__start-conversation','AI_CHAT_HISTORY_SEARCH_LABEL','updateHistoryItemsWithCategories','1757721WLaSkg','add','change:hasItems','fieldView','isLoading','_refreshSearch','ck-reset_all','updateTitle','_createEmptyStateView','element','change:errorMessage','ck-ai-chat-history__content','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','ck-ai-header\x20ck-ai-header_history','length','15fdlblF','updateItemLoadingState','_createSearchView','remove','div','34564NXFGoj','setTemplate','items','fire','removeItem','queryView','168208DOHSAt','errorView','skeletonView','delegate','sections','updateItemTitle','aiHistory','getItem','sectionsView','locale','searchView','some','set','itemsViews','emptyView','value','removeHistoryItem','clear','2776188pQnBDJ','bind','ck-ai-chat-history__empty','isEmptyViewVisible','title','5071416FFaatH','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','1026102KWjkaR','hasItems','bindTemplate','ck-ai-chat-error__dismiss-button','push'];_0x29c7=function(){return _0xbae310;};return _0x29c7();}import{AIChatHistoryListItemView as _0x304c03}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2f820d}from'../aichathistoryui.js';import{AISkeletonView as _0x5818f2,SKELETON_DEFINITIONS as _0x1c3910}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e51d4}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2c2f18}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x54a589{[_0x32357c(0x134)];[_0x32357c(0x12b)];[_0x32357c(0x12c)];[_0x32357c(0x138)];[_0x32357c(0x132)];[_0x32357c(0x158)];constructor(_0x437233,_0x467ecc){const _0x4ef331=_0x32357c;super(_0x437233),this[_0x4ef331(0x136)](_0x4ef331(0x147),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x113),!0x0),this[_0x4ef331(0x136)](_0x4ef331(0x164),''),this[_0x4ef331(0x136)](_0x4ef331(0x153),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x15f),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x13f),!0x1);const _0x520209=new _0x86cf60(_0x437233,{'label':_0x2c2f18(_0x437233,_0x4ef331(0x145)),'icon':_0x1491d7,'class':_0x4ef331(0x11d)});_0x467ecc&&(this[_0x4ef331(0x158)]=_0x4e51d4(_0x437233,this),_0x520209[_0x4ef331(0x15e)][_0x4ef331(0x110)](this[_0x4ef331(0x158)])),this[_0x4ef331(0x132)]=new _0x13523e(_0x437233,[]),this[_0x4ef331(0x132)][_0x4ef331(0x12d)](..._0x2f820d)['to'](this),this[_0x4ef331(0x12b)]=this[_0x4ef331(0x15a)](),this[_0x4ef331(0x12c)]=this[_0x4ef331(0x14b)](),this[_0x4ef331(0x138)]=this[_0x4ef331(0x117)](),this[_0x4ef331(0x134)]=this[_0x4ef331(0x121)](),this['on'](_0x4ef331(0x11c),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x111),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x119),()=>this[_0x4ef331(0x15c)]()),this[_0x4ef331(0x125)]({'tag':_0x4ef331(0x123),'attributes':{'class':['ck',_0x4ef331(0x115),_0x4ef331(0x155),_0x4ef331(0x14c)],'dir':_0x4ef331(0x152)},'children':[_0x520209,{'tag':_0x4ef331(0x123),'attributes':{'class':[_0x4ef331(0x11a)]},'children':[this[_0x4ef331(0x12c)],this[_0x4ef331(0x12b)],this[_0x4ef331(0x138)],this[_0x4ef331(0x134)]]}]});}[_0x32357c(0x15c)](){const _0x471638=_0x32357c;this[_0x471638(0x15f)]=!this[_0x471638(0x113)]&&this[_0x471638(0x147)]&&!this[_0x471638(0x164)],this[_0x471638(0x13f)]=!this[_0x471638(0x113)]&&!this[_0x471638(0x147)]&&!this[_0x471638(0x164)];}[_0x32357c(0x121)](){const _0x5792db=_0x32357c,_0x4effbd=new _0x3222d4(this[_0x5792db(0x133)],{'filteredView':this[_0x5792db(0x132)],'queryView':{'label':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x5b467c=>_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x11b),_0x5b467c),'secondary':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x144))}}}});return _0x4effbd['on'](_0x5792db(0x15d),()=>{const _0x29e76f=_0x5792db;this[_0x29e76f(0x134)][_0x29e76f(0x15e)][_0x29e76f(0x110)](this[_0x29e76f(0x12b)],0x1);}),_0x4effbd[_0x5792db(0x160)]({'attributes':{'class':[this[_0x5792db(0x148)]['if'](_0x5792db(0x15f),_0x5792db(0x159),_0x476a45=>!_0x476a45)]}}),_0x4effbd;}[_0x32357c(0x14b)](){const _0x124f24=_0x32357c,_0x27db4b=new _0x5818f2(this[_0x124f24(0x133)],_0x1c3910[_0x124f24(0x130)]);return _0x27db4b[_0x124f24(0x160)]({'attributes':{'class':[this[_0x124f24(0x148)]['if'](_0x124f24(0x113),_0x124f24(0x159),_0x25af8c=>!_0x25af8c)]}}),_0x27db4b;}[_0x32357c(0x15a)](){const _0x25bb01=_0x32357c,_0x4d0f00=new _0x54a589(this[_0x25bb01(0x133)]),_0x2a3762=new _0x3ea19e(this[_0x25bb01(0x133)]);return _0x2a3762[_0x25bb01(0x136)]({'withText':!0x1,'icon':_0x521d25,'class':_0x25bb01(0x149)}),_0x2a3762[_0x25bb01(0x13d)](_0x25bb01(0x162))['to'](this,_0x25bb01(0x147),_0x570d4f=>!!_0x570d4f),_0x2a3762['on'](_0x25bb01(0x14d),()=>{const _0x474213=_0x25bb01;this[_0x474213(0x164)]='';}),_0x4d0f00[_0x25bb01(0x125)]({'tag':_0x25bb01(0x123),'attributes':{'class':['ck',_0x25bb01(0x14e),this[_0x25bb01(0x148)]['if'](_0x25bb01(0x164),_0x25bb01(0x159),_0x55cf5d=>!_0x55cf5d)]},'children':[{'tag':'p','children':[{'text':this[_0x25bb01(0x148)]['to'](_0x25bb01(0x164))}]},_0x2a3762]}),_0x4d0f00;}[_0x32357c(0x117)](){const _0x4e0962=_0x32357c,_0x2d4b5a=new _0x3ea19e(this[_0x4e0962(0x133)]);_0x2d4b5a[_0x4e0962(0x136)]({'label':_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x15b)),'withText':!0x0,'icon':_0xa30ac2,'class':_0x4e0962(0x165)}),_0x2d4b5a['on'](_0x4e0962(0x14d),()=>{const _0x5de924=_0x4e0962;this[_0x5de924(0x127)](_0x5de924(0x14f));});const _0x2d9cc7=new _0x54a589(this[_0x4e0962(0x133)]);return _0x2d9cc7[_0x4e0962(0x125)]({'tag':_0x4e0962(0x123),'attributes':{'class':[_0x4e0962(0x13e),this[_0x4e0962(0x148)]['if'](_0x4e0962(0x13f),_0x4e0962(0x159),_0x1aa492=>!_0x1aa492)]},'children':[{'tag':'p','attributes':{'class':[_0x4e0962(0x163)]},'children':[_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x142))]},_0x2d4b5a]}),_0x2d9cc7;}[_0x32357c(0x156)](_0xea088b,_0x4049ce){const _0x7f5785=_0x32357c,_0x79c2f6=[];for(const _0x2279af of _0xea088b){const _0x3a918f=new _0x304c03(_0x4049ce,_0x2279af);_0x3a918f[_0x7f5785(0x12d)](..._0x2f820d)['to'](this),_0x79c2f6[_0x7f5785(0x14a)](_0x3a918f);}return _0x79c2f6;}[_0x32357c(0x10e)](_0x19dad9){const _0x16f455=_0x32357c,_0x14dd92=this[_0x16f455(0x133)]||'en',_0xce3e24=[];for(const _0x3404cc of _0x19dad9){const _0x4c71dc=this[_0x16f455(0x156)](_0x3404cc[_0x16f455(0x126)],_0x14dd92);_0xce3e24[_0x16f455(0x14a)](new _0x571185(_0x14dd92,{'title':_0x3404cc[_0x16f455(0x140)],'items':_0x4c71dc}));}this[_0x16f455(0x132)][_0x16f455(0x12e)]=_0xce3e24,this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x13b)](),this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x150)](_0xce3e24),this[_0x16f455(0x147)]=_0x19dad9[_0x16f455(0x135)](_0xcfe253=>_0xcfe253[_0x16f455(0x126)][_0x16f455(0x11e)]>0x0),this[_0x16f455(0x114)]();}[_0x32357c(0x13a)](_0xe8f0c1){const _0x3f6b70=_0x32357c;for(const _0x1ffee8 of this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)]){const _0x18a29c=_0x1ffee8[_0x3f6b70(0x131)](_0xe8f0c1);if(_0x18a29c){if(_0x1ffee8[_0x3f6b70(0x128)](_0x18a29c),0x0===_0x1ffee8[_0x3f6b70(0x137)][_0x3f6b70(0x11e)]){const _0x127efa=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x151)](_0x1ffee8);-0x1!==_0x127efa&&(this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x161)](_0x127efa,0x1),this[_0x3f6b70(0x132)][_0x3f6b70(0x126)][_0x3f6b70(0x122)](_0x1ffee8));}this[_0x3f6b70(0x147)]=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x11e)]>0x0,this[_0x3f6b70(0x114)]();break;}}}[_0x32357c(0x12f)](_0x2e50f1,_0xc5220e){const _0x4dec15=_0x32357c;for(const _0x58bad2 of this[_0x4dec15(0x132)][_0x4dec15(0x12e)]){const _0x2712d4=_0x58bad2[_0x4dec15(0x131)](_0x2e50f1);if(_0x2712d4){_0x2712d4[_0x4dec15(0x116)](_0xc5220e);break;}}}[_0x32357c(0x120)](_0x4d8c75,_0x451c39,_0xf3ab49){const _0x3da2dd=_0x32357c;for(const _0x56c297 of this[_0x3da2dd(0x132)][_0x3da2dd(0x12e)]){const _0x8ffde3=_0x56c297[_0x3da2dd(0x131)](_0x4d8c75);if(_0x8ffde3){_0x8ffde3[_0x3da2dd(0x143)](_0x451c39,_0xf3ab49);break;}}}[_0x32357c(0x114)](){const _0x20843e=_0x32357c;if(this[_0x20843e(0x147)]){const _0x44cb52=this[_0x20843e(0x134)][_0x20843e(0x129)][_0x20843e(0x112)]?.[_0x20843e(0x118)]?.[_0x20843e(0x139)]||'';this[_0x20843e(0x134)][_0x20843e(0x157)](_0x44cb52);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2698b4=_0x48c7;(function(_0x51c35c,_0x4e42fd){const _0x4bb3d5=_0x48c7,_0x1dcfbd=_0x51c35c();while(!![]){try{const _0x1dd364=-parseInt(_0x4bb3d5(0x18b))/0x1*(parseInt(_0x4bb3d5(0x1d5))/0x2)+parseInt(_0x4bb3d5(0x1bc))/0x3*(-parseInt(_0x4bb3d5(0x182))/0x4)+parseInt(_0x4bb3d5(0x1eb))/0x5+-parseInt(_0x4bb3d5(0x1cd))/0x6*(-parseInt(_0x4bb3d5(0x1f2))/0x7)+parseInt(_0x4bb3d5(0x1fd))/0x8*(-parseInt(_0x4bb3d5(0x18e))/0x9)+parseInt(_0x4bb3d5(0x19c))/0xa+-parseInt(_0x4bb3d5(0x1d8))/0xb*(-parseInt(_0x4bb3d5(0x19a))/0xc);if(_0x1dd364===_0x4e42fd)break;else _0x1dcfbd['push'](_0x1dcfbd['shift']());}catch(_0x2657b8){_0x1dcfbd['push'](_0x1dcfbd['shift']());}}}(_0x4e11,0x7ae62));import{createParser as _0x267904}from'eventsource-parser';import{ContextPlugin as _0x2d2561}from'ckeditor5/src/core.js';import{CKEditorError as _0x5665af}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e794e}from'./utils/common-translations.js';export var AIActionsNames;function _0x48c7(_0x48d4f8,_0x5b545e){const _0x4e11a6=_0x4e11();return _0x48c7=function(_0x48c74e,_0x410e34){_0x48c74e=_0x48c74e-0x177;let _0x48cd84=_0x4e11a6[_0x48c74e];return _0x48cd84;},_0x48c7(_0x48d4f8,_0x5b545e);}!function(_0x22f145){const _0x31395f=_0x48c7;_0x22f145[_0x31395f(0x1a3)]=_0x31395f(0x189),_0x22f145[_0x31395f(0x1a0)]=_0x31395f(0x1fc),_0x22f145[_0x31395f(0x1bd)]=_0x31395f(0x195),_0x22f145[_0x31395f(0x194)]=_0x31395f(0x1be),_0x22f145[_0x31395f(0x1c8)]=_0x31395f(0x1da),_0x22f145[_0x31395f(0x17e)]=_0x31395f(0x204),_0x22f145[_0x31395f(0x19b)]=_0x31395f(0x1cf),_0x22f145[_0x31395f(0x18f)]=_0x31395f(0x1d0);}(AIActionsNames||(AIActionsNames={}));function _0x4e11(){const _0x2a4f27=['5699118IneUVk','upsertAIActionRating','make-tone-formal','translate','init','deleteConversation','reset','statusText','2UdtdGv','map','request','2371083cQJPEG','/messages','make-shorter','uploadUrl','_handleError','/calls','/ratings','updateConversation','/messages/','push','AbortError','token','plugins','positiveCount','search','/actions/system/','AI_MODEL_DESCRIPTION_','/reviews/system/','Content-Type','2044675yoJZRR','parse','https://ai.cke-cs.com/v1','fetchConversation','100','_decoder','fetchConversations','7VVGjfX','startConversation','/web-resources','config','attributes','/reviews/custom/calls/','getReader','/files/','ai-missing-token','limit','fix-grammar','90680XTEXLi','decode','PUT','GET','uploadFile','data','upsertCustomAIReviewRating','make-tone-casual','executeAction','/actions/custom/calls/','text','/calls/','AIConnector','callSystemReview','keys','excludeEmpty','_apiUrl','queryAssistant','/models/1','deleteWebResource','MAKE_TONE_CASUAL','toString','items','deleteDocument','2830924hzWGgn','/documents/','define','then','/conversations?','get','fetchConversationMessages','continue','_sendApiRequest','26637XWiVmw','executeCustomAction','/documents','432FiocWw','TRANSLATE','append','length','CloudServices','feed','MAKE_LONGER','improve-writing','PATCH','totalCount','upsertAIChatRating','requires','12qmFgcM','MAKE_TONE_FORMAL','2075010NISfOJ','pluginName','application/json','isPremiumPlugin','FIX_GRAMMAR','json','/files','CONTINUE','_token','getModels','isOfficialPlugin','upsertCustomAIActionRating','toUpperCase','/web-resources/','group','uploadDocument','status','_getStreamReader','catch','signal','true','/reviews/custom/calls','/conversations/','upsertAIReviewRating','locale','POST','name','body','/conversations','abortController','file','ai-request-failed','3OnoDEL','IMPROVE_WRITING','make-longer','Bearer\x20','read','ai-request-aborted','DELETE','value','/actions/custom/calls','context','fetchDocument','releaseLock','MAKE_SHORTER','ai.serviceUrl','deleteFile','stringify','callCustomReview'];_0x4e11=function(){return _0x2a4f27;};return _0x4e11();}export class AIConnector extends _0x2d2561{[_0x2698b4(0x17a)];[_0x2698b4(0x1a4)];[_0x2698b4(0x1f0)];static get[_0x2698b4(0x199)](){const _0x3a9d79=_0x2698b4;return[_0x3a9d79(0x192)];}static get[_0x2698b4(0x19d)](){const _0x53ff64=_0x2698b4;return _0x53ff64(0x209);}static get[_0x2698b4(0x1a6)](){return!0x0;}static get[_0x2698b4(0x19f)](){return!0x0;}constructor(_0x59939c){const _0x359944=_0x2698b4;super(_0x59939c),this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x184)](_0x359944(0x1c9),_0x359944(0x1ed)),this[_0x359944(0x17a)]=this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x187)](_0x359944(0x1c9)),this[_0x359944(0x1a4)]=null,this[_0x359944(0x1f0)]=new TextDecoder();}[_0x2698b4(0x1d1)](){const _0x1f9714=_0x2698b4,_0x51feca=this[_0x1f9714(0x1c5)][_0x1f9714(0x1e4)][_0x1f9714(0x187)](_0x1f9714(0x192));if(!_0x51feca[_0x1f9714(0x1e3)])throw new _0x5665af(_0x1f9714(0x1fa),this);this[_0x1f9714(0x1a4)]=_0x51feca[_0x1f9714(0x1e3)];}[_0x2698b4(0x1f3)](_0xf7b470,_0x15f357){const _0x913819=_0x2698b4,_0x4d52b3=this[_0x913819(0x18a)](_0x913819(0x1b8),_0x913819(0x1b5),{'id':_0xf7b470,'group':_0x15f357});return{'getConversation':async()=>(await _0x4d52b3[_0x913819(0x1d7)])[_0x913819(0x1a1)](),'abortController':_0x4d52b3[_0x913819(0x1b9)]};}[_0x2698b4(0x17b)]({message:_0x1e49e0,conversationId:_0x1be237,parts:_0x2664f8,capabilities:_0x35bd38,model:_0x39678d,quickActionData:_0x3c4351}){const _0x1e85c7=_0x2698b4,_0x5d722a={..._0x3c4351&&{'quickActionData':_0x3c4351}},_0x4bf759={'prompt':_0x1e49e0,'content':_0x2664f8,'model':_0x39678d,..._0x35bd38&&{'capabilities':_0x35bd38},...Object[_0x1e85c7(0x178)](_0x5d722a)[_0x1e85c7(0x191)]>0x0&&{'attributes':_0x5d722a}},_0x55bf22=this[_0x1e85c7(0x18a)](_0x1e85c7(0x1b2)+_0x1be237+_0x1e85c7(0x1d9),_0x1e85c7(0x1b5),_0x4bf759);return{'getStream':async()=>{const _0x5a08f1=_0x1e85c7,_0x370bf2=(await _0x55bf22[_0x5a08f1(0x1d7)])[_0x5a08f1(0x1b7)];return this[_0x5a08f1(0x1ad)](_0x370bf2);},'abortController':_0x55bf22[_0x1e85c7(0x1b9)]};}[_0x2698b4(0x18c)]({content:_0x3041c0,message:_0x2aaf52,model:_0x32e760,outputFormat:_0x526e66}){const _0x3f3ecd=_0x2698b4,_0xb5ec49={'content':[{'type':_0x3f3ecd(0x207),'content':_0x3041c0}],'prompt':_0x2aaf52,'model':_0x32e760,'outputFormat':_0x526e66},_0x2f36e7=this[_0x3f3ecd(0x18a)](_0x3f3ecd(0x1c4),_0x3f3ecd(0x1b5),_0xb5ec49);return{'getStream':async()=>{const _0x5d9c57=_0x3f3ecd,_0x24e572=(await _0x2f36e7[_0x5d9c57(0x1d7)])[_0x5d9c57(0x1b7)];return this[_0x5d9c57(0x1ad)](_0x24e572);},'abortController':_0x2f36e7[_0x3f3ecd(0x1b9)]};}[_0x2698b4(0x205)]({actionName:_0x3fe1ba,content:_0x278f00,args:_0x301b2a}){const _0x668ba1=_0x2698b4,_0x149eb5={'content':[{'type':_0x668ba1(0x207),'content':_0x278f00}],'args':_0x301b2a},_0x276ab6=this[_0x668ba1(0x18a)](_0x668ba1(0x1e7)+_0x3fe1ba+_0x668ba1(0x1dd),_0x668ba1(0x1b5),_0x149eb5);return{'getStream':async()=>{const _0x454882=_0x668ba1,_0x36c03f=(await _0x276ab6[_0x454882(0x1d7)])[_0x454882(0x1b7)];return this[_0x454882(0x1ad)](_0x36c03f);},'abortController':_0x276ab6[_0x668ba1(0x1b9)]};}[_0x2698b4(0x201)](_0x2edee9,_0x2ee1e7,_0x6eaf15){const _0x2791ff=_0x2698b4,_0x54e00e=new FormData();_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1ba),_0x2ee1e7,_0x2ee1e7[_0x2791ff(0x1b6)]),_0x6eaf15&&_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1f6),JSON[_0x2791ff(0x1cb)](_0x6eaf15));const _0x3f193a=this[_0x2791ff(0x18a)](_0x2791ff(0x1b2)+_0x2edee9+_0x2791ff(0x1a2),_0x2791ff(0x1b5),_0x54e00e);return{'getId':async()=>(await _0x3f193a[_0x2791ff(0x1d7)])[_0x2791ff(0x1a1)](),'abortController':_0x3f193a[_0x2791ff(0x1b9)]};}[_0x2698b4(0x1c6)](_0x401c70,_0x1c1a25){const _0x46aca3=_0x2698b4,_0x3dcfb1=this[_0x46aca3(0x18a)](_0x46aca3(0x1b2)+_0x401c70+_0x46aca3(0x183)+_0x1c1a25,_0x46aca3(0x200));return{'getDocument':async()=>(await _0x3dcfb1[_0x46aca3(0x1d7)])[_0x46aca3(0x1a1)](),'abortController':_0x3dcfb1[_0x46aca3(0x1b9)]};}[_0x2698b4(0x1ab)](_0xb84032,_0x15c66e,_0x139c01){const _0xa635a=_0x2698b4,_0x58cb1d={'content':_0x15c66e};_0x139c01&&(_0x58cb1d[_0xa635a(0x1f6)]=_0x139c01);const _0x5b4eef=this[_0xa635a(0x18a)](_0xa635a(0x1b2)+_0xb84032+_0xa635a(0x18d),_0xa635a(0x1b5),_0x58cb1d);return{'getId':async()=>(await _0x5b4eef[_0xa635a(0x1d7)])[_0xa635a(0x1a1)](),'abortController':_0x5b4eef[_0xa635a(0x1b9)]};}[_0x2698b4(0x1f1)](_0x52fe7e,_0x35ea91){const _0x30c56d=_0x2698b4,_0x39666c=new URLSearchParams();_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x179),_0x30c56d(0x1b0)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1fb),_0x30c56d(0x1ef)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1aa),_0x52fe7e),_0x35ea91&&_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1e6),_0x35ea91);const _0x1f6e15=this[_0x30c56d(0x18a)](_0x30c56d(0x186)+_0x39666c[_0x30c56d(0x17f)](),_0x30c56d(0x200));return{'getConversations':async()=>{const _0x24b1d8=_0x30c56d,_0x4769a0=await _0x1f6e15[_0x24b1d8(0x1d7)];return(await _0x4769a0[_0x24b1d8(0x1a1)]())[_0x24b1d8(0x180)];},'abortController':_0x1f6e15[_0x30c56d(0x1b9)]};}[_0x2698b4(0x1d2)](_0x1154f2){const _0x2a47f0=_0x2698b4,_0x175a0f=this[_0x2a47f0(0x18a)](_0x2a47f0(0x1b2)+_0x1154f2,_0x2a47f0(0x1c2));return{'execute':async()=>{const _0x5239cb=_0x2a47f0;await _0x175a0f[_0x5239cb(0x1d7)];},'abortController':_0x175a0f[_0x2a47f0(0x1b9)]};}[_0x2698b4(0x1df)](_0x46f44f,_0x215afe){const _0x40f5d9=_0x2698b4,_0x18ac3a=this[_0x40f5d9(0x18a)](_0x40f5d9(0x1b2)+_0x46f44f,_0x40f5d9(0x196),_0x215afe);return{'getResult':async()=>(await _0x18ac3a[_0x40f5d9(0x1d7)],_0x215afe),'abortController':_0x18ac3a[_0x40f5d9(0x1b9)]};}[_0x2698b4(0x1ee)](_0x4d7c59){const _0x4c2e3d=_0x2698b4,_0x1c5453=this[_0x4c2e3d(0x18a)](_0x4c2e3d(0x1b2)+_0x4d7c59,_0x4c2e3d(0x200));return{'getConversation':async()=>(await _0x1c5453[_0x4c2e3d(0x1d7)])[_0x4c2e3d(0x1a1)](),'abortController':_0x1c5453[_0x4c2e3d(0x1b9)]};}[_0x2698b4(0x188)](_0x5deaab){const _0x4ca5d2=_0x2698b4,_0x3c2406=this[_0x4ca5d2(0x18a)](_0x4ca5d2(0x1b2)+_0x5deaab+_0x4ca5d2(0x1d9),_0x4ca5d2(0x200));return{'getMessages':async()=>{const _0x23a6f1=_0x4ca5d2,_0x5820ec=await _0x3c2406[_0x23a6f1(0x1d7)];return(await _0x5820ec[_0x23a6f1(0x1a1)]())[_0x23a6f1(0x180)];},'abortController':_0x3c2406[_0x4ca5d2(0x1b9)]};}[_0x2698b4(0x1db)](_0x573ebf,_0x142791,_0x40f2e3){const _0x5c4756=_0x2698b4,_0x4b8206=this[_0x5c4756(0x18a)](_0x5c4756(0x1b2)+_0x573ebf+_0x5c4756(0x1f4),_0x5c4756(0x1b5),{'url':_0x142791,'attributes':_0x40f2e3});return{'getId':async()=>(await _0x4b8206[_0x5c4756(0x1d7)])[_0x5c4756(0x1a1)](),'abortController':_0x4b8206[_0x5c4756(0x1b9)]};}[_0x2698b4(0x1a5)](){const _0x17cb46=_0x2698b4,_0x1e5e69=this[_0x17cb46(0x18a)](_0x17cb46(0x17c),_0x17cb46(0x200));return{'list':async()=>{const _0x545483=_0x17cb46,_0x34d99e=await(await _0x1e5e69[_0x545483(0x1d7)])[_0x545483(0x1a1)](),_0x686371=_0x34d99e[_0x545483(0x180)][_0x545483(0x1d6)](_0x10a4ae=>({..._0x10a4ae,'description':_0x3e794e(this[_0x545483(0x1c5)][_0x545483(0x1b4)],_0x545483(0x1e8)+_0x10a4ae['id'][_0x545483(0x1a8)]())}));return{..._0x34d99e,'items':_0x686371};},'abortController':_0x1e5e69[_0x17cb46(0x1b9)]};}[_0x2698b4(0x1ca)](_0x3afb5a,_0x5eba34){const _0x401785=_0x2698b4,_0x584116=this[_0x401785(0x18a)](_0x401785(0x1b2)+_0x3afb5a+_0x401785(0x1f9)+_0x5eba34,_0x401785(0x1c2));return{'execute':async()=>{const _0x1ac85e=_0x401785;await _0x584116[_0x1ac85e(0x1d7)];},'abortController':_0x584116[_0x401785(0x1b9)]};}[_0x2698b4(0x181)](_0x3ee050,_0x2ea177){const _0x32ae69=_0x2698b4,_0x19e5b6=this[_0x32ae69(0x18a)](_0x32ae69(0x1b2)+_0x3ee050+_0x32ae69(0x183)+_0x2ea177,_0x32ae69(0x1c2));return{'execute':async()=>{const _0x4b521c=_0x32ae69;await _0x19e5b6[_0x4b521c(0x1d7)];},'abortController':_0x19e5b6[_0x32ae69(0x1b9)]};}[_0x2698b4(0x17d)](_0x1ee5e5,_0xd3a5bc){const _0x1e1ce9=_0x2698b4,_0x3090b9=this[_0x1e1ce9(0x18a)](_0x1e1ce9(0x1b2)+_0x1ee5e5+_0x1e1ce9(0x1a9)+_0xd3a5bc,_0x1e1ce9(0x1c2));return{'execute':async()=>{const _0x402ab3=_0x1e1ce9;await _0x3090b9[_0x402ab3(0x1d7)];},'abortController':_0x3090b9[_0x1e1ce9(0x1b9)]};}[_0x2698b4(0x177)]({reviewName:_0xb3f0e9,content:_0x16b840,args:_0x18375a}){const _0x53067b=_0x2698b4,_0x379ba7=this[_0x53067b(0x18a)](_0x53067b(0x1e9)+_0xb3f0e9+_0x53067b(0x1dd),_0x53067b(0x1b5),{'content':[{'type':_0x53067b(0x207),'content':_0x16b840}],'args':_0x18375a});return{'getStream':async()=>{const _0x269c04=_0x53067b,_0x4348df=(await _0x379ba7[_0x269c04(0x1d7)])[_0x269c04(0x1b7)];return this[_0x269c04(0x1ad)](_0x4348df);},'abortController':_0x379ba7[_0x53067b(0x1b9)]};}[_0x2698b4(0x1cc)]({content:_0x4661fa,prompt:_0x363a01,model:_0xc1de7f}){const _0x1c7e44=_0x2698b4,_0x2fa9ad=this[_0x1c7e44(0x18a)](_0x1c7e44(0x1b1),_0x1c7e44(0x1b5),{'content':[{'type':_0x1c7e44(0x207),'content':_0x4661fa}],'prompt':_0x363a01,'model':_0xc1de7f});return{'getStream':async()=>{const _0x4b1172=_0x1c7e44,_0x5357e8=(await _0x2fa9ad[_0x4b1172(0x1d7)])[_0x4b1172(0x1b7)];return this[_0x4b1172(0x1ad)](_0x5357e8);},'abortController':_0x2fa9ad[_0x1c7e44(0x1b9)]};}[_0x2698b4(0x198)](_0x10352b,_0x342189,_0x4b6720){const _0x26fcf5=_0x2698b4,_0x336012=this[_0x26fcf5(0x18a)](_0x26fcf5(0x1b2)+_0x10352b+_0x26fcf5(0x1e0)+_0x342189+_0x26fcf5(0x1de),_0x26fcf5(0x1ff),{'positiveCount':_0x4b6720[_0x26fcf5(0x1e5)],'totalCount':_0x4b6720[_0x26fcf5(0x197)]});return{'execute':async()=>{const _0x8f6659=_0x26fcf5;await _0x336012[_0x8f6659(0x1d7)];},'abortController':_0x336012[_0x26fcf5(0x1b9)]};}[_0x2698b4(0x1ce)](_0x5419e4,_0x992f37,_0x494e1d){const _0x5b9f0c=_0x2698b4,_0x3dffda=this[_0x5b9f0c(0x18a)](_0x5b9f0c(0x1e7)+_0x5419e4+_0x5b9f0c(0x208)+_0x992f37+_0x5b9f0c(0x1de),_0x5b9f0c(0x1ff),{'positiveCount':_0x494e1d[_0x5b9f0c(0x1e5)],'totalCount':_0x494e1d[_0x5b9f0c(0x197)]});return{'execute':async()=>{const _0x101f13=_0x5b9f0c;await _0x3dffda[_0x101f13(0x1d7)];},'abortController':_0x3dffda[_0x5b9f0c(0x1b9)]};}[_0x2698b4(0x1a7)](_0x11aa89,_0x35f401){const _0x52d5eb=_0x2698b4,_0x487f00=this[_0x52d5eb(0x18a)](_0x52d5eb(0x206)+_0x11aa89+_0x52d5eb(0x1de),_0x52d5eb(0x1ff),{'positiveCount':_0x35f401[_0x52d5eb(0x1e5)],'totalCount':_0x35f401[_0x52d5eb(0x197)]});return{'execute':async()=>{const _0x5f0455=_0x52d5eb;await _0x487f00[_0x5f0455(0x1d7)];},'abortController':_0x487f00[_0x52d5eb(0x1b9)]};}[_0x2698b4(0x1b3)](_0x1679f5,_0xe3323d,_0x50ef78,_0x1a000c){const _0x3ed70c=_0x2698b4,_0x58c67f=this[_0x3ed70c(0x18a)](_0x3ed70c(0x1e9)+_0x1679f5+_0x3ed70c(0x208)+_0xe3323d+_0x3ed70c(0x1de),_0x3ed70c(0x1ff),{'positiveCount':_0x50ef78[_0x3ed70c(0x1e5)],'totalCount':_0x50ef78[_0x3ed70c(0x197)],'dataId':_0x1a000c});return{'execute':async()=>{const _0x40ba01=_0x3ed70c;await _0x58c67f[_0x40ba01(0x1d7)];},'abortController':_0x58c67f[_0x3ed70c(0x1b9)]};}[_0x2698b4(0x203)](_0x16a0cd,_0x41c89c,_0x128af3){const _0x7b42cf=_0x2698b4,_0x3db690=this[_0x7b42cf(0x18a)](_0x7b42cf(0x1f7)+_0x16a0cd+_0x7b42cf(0x1de),_0x7b42cf(0x1ff),{'positiveCount':_0x41c89c[_0x7b42cf(0x1e5)],'totalCount':_0x41c89c[_0x7b42cf(0x197)],'dataId':_0x128af3});return{'execute':async()=>{const _0x4f7c2c=_0x7b42cf;await _0x3db690[_0x4f7c2c(0x1d7)];},'abortController':_0x3db690[_0x7b42cf(0x1b9)]};}[_0x2698b4(0x18a)](_0x39acbf,_0x43eaab,_0x16cbe7){const _0x21cb96=_0x2698b4,_0x3a1ef2=new AbortController(),_0x4cf80f=_0x16cbe7 instanceof FormData,_0x3a99ad={'Authorization':_0x21cb96(0x1bf)+this[_0x21cb96(0x1a4)]?.[_0x21cb96(0x1c3)]};_0x16cbe7&&!_0x4cf80f&&(_0x3a99ad[_0x21cb96(0x1ea)]=_0x21cb96(0x19e));const _0x5a8303={'method':_0x43eaab,'headers':_0x3a99ad,'signal':_0x3a1ef2[_0x21cb96(0x1af)]};return _0x16cbe7&&(_0x5a8303[_0x21cb96(0x1b7)]=_0x4cf80f?_0x16cbe7:JSON[_0x21cb96(0x1cb)](_0x16cbe7)),{'request':fetch(''+this[_0x21cb96(0x17a)]+_0x39acbf,_0x5a8303)[_0x21cb96(0x1ae)](_0x1cdc61=>{const _0x1a9570=_0x21cb96;this[_0x1a9570(0x1dc)](_0x1cdc61);})[_0x21cb96(0x185)](_0x4da6f1=>{const _0x5892e7=_0x21cb96;if(!_0x4da6f1['ok'])throw new _0x5665af(_0x5892e7(0x1bb),this,{'url':this[_0x5892e7(0x17a)],'path':_0x39acbf,'method':_0x43eaab,'body':_0x16cbe7,'status':(_0x4da6f1||{})[_0x5892e7(0x1ac)],'statusText':(_0x4da6f1||{})[_0x5892e7(0x1d4)]});return _0x4da6f1;}),'abortController':_0x3a1ef2};}async*[_0x2698b4(0x1ad)](_0x387b92){const _0x4c9168=_0x2698b4,_0x25ab35=[],_0x16dc6b=_0x387b92[_0x4c9168(0x1f8)](),_0x2ccdd6=_0x267904({'onError':_0x27b191=>{const _0x37a7a3=_0x4c9168;this[_0x37a7a3(0x1dc)](_0x27b191);},'onEvent':_0x26d457=>{const _0x42983c=_0x4c9168;_0x26d457[_0x42983c(0x202)]=JSON[_0x42983c(0x1ec)](_0x26d457[_0x42983c(0x202)]),_0x25ab35[_0x42983c(0x1e1)](_0x26d457);}});try{let _0x3a45fe=!0x1;for(;!_0x3a45fe;){const {done:_0x5495e7,value:_0x3d9681}=await _0x16dc6b[_0x4c9168(0x1c0)]();_0x5495e7&&(_0x3a45fe=!0x0),_0x2ccdd6[_0x4c9168(0x193)](this[_0x4c9168(0x1f0)][_0x4c9168(0x1fe)](_0x3d9681,{'stream':!0x0})),yield*_0x25ab35,_0x25ab35[_0x4c9168(0x191)]=0x0;}}catch(_0x403e61){this[_0x4c9168(0x1dc)](_0x403e61);}finally{_0x16dc6b[_0x4c9168(0x1c7)](),_0x2ccdd6[_0x4c9168(0x1d3)]();}}[_0x2698b4(0x1dc)](_0x50d8a5){const _0xc04a27=_0x2698b4;if(_0x50d8a5 instanceof _0x5665af)throw _0x50d8a5;if(_0x50d8a5 instanceof Error&&_0xc04a27(0x1e2)===_0x50d8a5[_0xc04a27(0x1b6)])throw new _0x5665af(_0xc04a27(0x1c1),this,{'originalError':_0x50d8a5});throw new _0x5665af(_0xc04a27(0x1bb),this,{'originalError':_0x50d8a5});}}
|
|
23
|
+
const _0x193c25=_0x14cd;function _0x14cd(_0x12185f,_0x2ef1b0){const _0x51145d=_0x5114();return _0x14cd=function(_0x14cd2b,_0x109fb0){_0x14cd2b=_0x14cd2b-0x7f;let _0x4a3190=_0x51145d[_0x14cd2b];return _0x4a3190;},_0x14cd(_0x12185f,_0x2ef1b0);}(function(_0x7dcf12,_0x21d112){const _0x5b03fa=_0x14cd,_0x103ed7=_0x7dcf12();while(!![]){try{const _0x7269d=parseInt(_0x5b03fa(0xbb))/0x1*(parseInt(_0x5b03fa(0x106))/0x2)+-parseInt(_0x5b03fa(0x10e))/0x3+-parseInt(_0x5b03fa(0x84))/0x4+-parseInt(_0x5b03fa(0xca))/0x5*(parseInt(_0x5b03fa(0xc5))/0x6)+parseInt(_0x5b03fa(0x80))/0x7*(parseInt(_0x5b03fa(0xb3))/0x8)+parseInt(_0x5b03fa(0xa9))/0x9+parseInt(_0x5b03fa(0xf7))/0xa;if(_0x7269d===_0x21d112)break;else _0x103ed7['push'](_0x103ed7['shift']());}catch(_0x258c6d){_0x103ed7['push'](_0x103ed7['shift']());}}}(_0x5114,0xb7faf));import{createParser as _0x2079d3}from'eventsource-parser';import{ContextPlugin as _0x47e89f}from'ckeditor5/src/core.js';import{CKEditorError as _0x292ec4}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a66a9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x4777e4){const _0x1e8fe8=_0x14cd;_0x4777e4[_0x1e8fe8(0xc4)]=_0x1e8fe8(0xd1),_0x4777e4[_0x1e8fe8(0xb5)]=_0x1e8fe8(0xed),_0x4777e4[_0x1e8fe8(0xeb)]=_0x1e8fe8(0xd3),_0x4777e4[_0x1e8fe8(0xb4)]=_0x1e8fe8(0x88),_0x4777e4[_0x1e8fe8(0xe3)]=_0x1e8fe8(0x96),_0x4777e4[_0x1e8fe8(0xbe)]=_0x1e8fe8(0x9c),_0x4777e4[_0x1e8fe8(0x105)]=_0x1e8fe8(0xcb),_0x4777e4[_0x1e8fe8(0x7f)]=_0x1e8fe8(0xe2);}(AIActionsNames||(AIActionsNames={}));function _0x5114(){const _0x55efa7=['/conversations?','parse','upsertCustomAIReviewRating','translate','MAKE_SHORTER','callSystemReview','signal','getReader','/documents/','/reviews/system/','fetchConversationMessages','/web-resources/','IMPROVE_WRITING','keys','fix-grammar','ai.serviceUrl','positiveCount','queryAssistant','Content-Type','context','fetchConversation','upsertCustomAIActionRating','/reviews/custom/calls/','/actions/system/','10377210IHVXHg','_handleError','pluginName','_getStreamReader','catch','AI_MODEL_DESCRIPTION_','text','reset','/calls','file','updateConversation','/models/1','_sendApiRequest','then','MAKE_TONE_FORMAL','2MancGe','startConversation','json','PATCH','deleteWebResource','upsertAIActionRating','search','GET','3607854AmNCKI','items','TRANSLATE','7805IOyQZF','length','ai-request-aborted','isPremiumPlugin','2308444zmgpaX','upsertAIReviewRating','CloudServices','application/json','make-longer','/calls/','/messages/','deleteFile','fetchConversations','request','status','POST','feed','locale','/conversations','statusText','fetchDocument','init','make-shorter','read','/reviews/custom/calls','decode','/messages','uploadDocument','make-tone-casual','plugins','excludeEmpty','stringify','callCustomReview','map','token','100','executeAction','toUpperCase','append','isOfficialPlugin','/actions/custom/calls/','13147524KDSopQ','limit','define','/documents','config','/files','/web-resources','true','push','data','784xOOFuu','MAKE_LONGER','FIX_GRAMMAR','group','uploadUrl','getModels','/conversations/','ai-request-failed','328513UoBmUh','value','ai-missing-token','MAKE_TONE_CASUAL','/files/','_apiUrl','/ratings','get','upsertAIChatRating','CONTINUE','12WCYlxY','requires','https://ai.cke-cs.com/v1','AbortError','AIConnector','1007570TjIwMU','make-tone-formal','uploadFile','name','abortController','_decoder','_token','continue','body','improve-writing','attributes','toString','PUT','executeCustomAction','DELETE','deleteDocument','/actions/custom/calls','deleteConversation','releaseLock','Bearer\x20','totalCount'];_0x5114=function(){return _0x55efa7;};return _0x5114();}export class AIConnector extends _0x47e89f{[_0x193c25(0xc0)];[_0x193c25(0xd0)];[_0x193c25(0xcf)];static get[_0x193c25(0xc6)](){const _0x2ba6f2=_0x193c25;return[_0x2ba6f2(0x86)];}static get[_0x193c25(0xf9)](){const _0x47568a=_0x193c25;return _0x47568a(0xc9);}static get[_0x193c25(0xa7)](){return!0x0;}static get[_0x193c25(0x83)](){return!0x0;}constructor(_0x49a388){const _0x577fc2=_0x193c25;super(_0x49a388),this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xab)](_0x577fc2(0xee),_0x577fc2(0xc7)),this[_0x577fc2(0xc0)]=this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xc2)](_0x577fc2(0xee)),this[_0x577fc2(0xd0)]=null,this[_0x577fc2(0xcf)]=new TextDecoder();}[_0x193c25(0x95)](){const _0x41e5db=_0x193c25,_0x2e41af=this[_0x41e5db(0xf2)][_0x41e5db(0x9d)][_0x41e5db(0xc2)](_0x41e5db(0x86));if(!_0x2e41af[_0x41e5db(0xa2)])throw new _0x292ec4(_0x41e5db(0xbd),this);this[_0x41e5db(0xd0)]=_0x2e41af[_0x41e5db(0xa2)];}[_0x193c25(0x107)](_0x3339b9,_0x1993f9){const _0x3b6a86=_0x193c25,_0x2bbd1b=this[_0x3b6a86(0x103)](_0x3b6a86(0x92),_0x3b6a86(0x8f),{'id':_0x3339b9,'group':_0x1993f9});return{'getConversation':async()=>(await _0x2bbd1b[_0x3b6a86(0x8d)])[_0x3b6a86(0x108)](),'abortController':_0x2bbd1b[_0x3b6a86(0xce)]};}[_0x193c25(0xf0)]({message:_0x185843,conversationId:_0x329a18,parts:_0x501492,capabilities:_0x5cd838,model:_0x27c964,quickActionData:_0x15f25c}){const _0x106ccc=_0x193c25,_0x37ab3d={..._0x15f25c&&{'quickActionData':_0x15f25c}},_0x1de2e8={'prompt':_0x185843,'content':_0x501492,'model':_0x27c964,..._0x5cd838&&{'capabilities':_0x5cd838},...Object[_0x106ccc(0xec)](_0x37ab3d)[_0x106ccc(0x81)]>0x0&&{'attributes':_0x37ab3d}},_0x3b845b=this[_0x106ccc(0x103)](_0x106ccc(0xb9)+_0x329a18+_0x106ccc(0x9a),_0x106ccc(0x8f),_0x1de2e8);return{'getStream':async()=>{const _0x1fa4af=_0x106ccc,_0xdd1f56=(await _0x3b845b[_0x1fa4af(0x8d)])[_0x1fa4af(0xd2)];return this[_0x1fa4af(0xfa)](_0xdd1f56);},'abortController':_0x3b845b[_0x106ccc(0xce)]};}[_0x193c25(0xd7)]({content:_0x41810e,message:_0x2ee402,model:_0x51c71d,outputFormat:_0x47f842}){const _0x1638dd=_0x193c25,_0x554312={'content':[{'type':_0x1638dd(0xfd),'content':_0x41810e}],'prompt':_0x2ee402,'model':_0x51c71d,'outputFormat':_0x47f842},_0x6da509=this[_0x1638dd(0x103)](_0x1638dd(0xda),_0x1638dd(0x8f),_0x554312);return{'getStream':async()=>{const _0x4a1765=_0x1638dd,_0x4b6709=(await _0x6da509[_0x4a1765(0x8d)])[_0x4a1765(0xd2)];return this[_0x4a1765(0xfa)](_0x4b6709);},'abortController':_0x6da509[_0x1638dd(0xce)]};}[_0x193c25(0xa4)]({actionName:_0x4b76f5,content:_0x3ea0bf,args:_0x488135}){const _0x1a885d=_0x193c25,_0x5990c1={'content':[{'type':_0x1a885d(0xfd),'content':_0x3ea0bf}],'args':_0x488135},_0x16fe0d=this[_0x1a885d(0x103)](_0x1a885d(0xf6)+_0x4b76f5+_0x1a885d(0xff),_0x1a885d(0x8f),_0x5990c1);return{'getStream':async()=>{const _0x54b076=_0x1a885d,_0x3c70cd=(await _0x16fe0d[_0x54b076(0x8d)])[_0x54b076(0xd2)];return this[_0x54b076(0xfa)](_0x3c70cd);},'abortController':_0x16fe0d[_0x1a885d(0xce)]};}[_0x193c25(0xcc)](_0x1590bb,_0x53d980,_0xf3bac0){const _0x46d0de=_0x193c25,_0x3c1f5a=new FormData();_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0x100),_0x53d980,_0x53d980[_0x46d0de(0xcd)]),_0xf3bac0&&_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0xd4),JSON[_0x46d0de(0x9f)](_0xf3bac0));const _0x1758ff=this[_0x46d0de(0x103)](_0x46d0de(0xb9)+_0x1590bb+_0x46d0de(0xae),_0x46d0de(0x8f),_0x3c1f5a);return{'getId':async()=>(await _0x1758ff[_0x46d0de(0x8d)])[_0x46d0de(0x108)](),'abortController':_0x1758ff[_0x46d0de(0xce)]};}[_0x193c25(0x94)](_0x28a399,_0x22cbb2){const _0x7a4069=_0x193c25,_0x5e53e7=this[_0x7a4069(0x103)](_0x7a4069(0xb9)+_0x28a399+_0x7a4069(0xe7)+_0x22cbb2,_0x7a4069(0x10d));return{'getDocument':async()=>(await _0x5e53e7[_0x7a4069(0x8d)])[_0x7a4069(0x108)](),'abortController':_0x5e53e7[_0x7a4069(0xce)]};}[_0x193c25(0x9b)](_0x43c2ff,_0x325f44,_0x5ee7c3){const _0x3e8f46=_0x193c25,_0x366fcf={'content':_0x325f44};_0x5ee7c3&&(_0x366fcf[_0x3e8f46(0xd4)]=_0x5ee7c3);const _0x20dc04=this[_0x3e8f46(0x103)](_0x3e8f46(0xb9)+_0x43c2ff+_0x3e8f46(0xac),_0x3e8f46(0x8f),_0x366fcf);return{'getId':async()=>(await _0x20dc04[_0x3e8f46(0x8d)])[_0x3e8f46(0x108)](),'abortController':_0x20dc04[_0x3e8f46(0xce)]};}[_0x193c25(0x8c)](_0xc2fa20,_0x313ee2){const _0x419cd9=_0x193c25,_0x37a080=new URLSearchParams();_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x9e),_0x419cd9(0xb0)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xaa),_0x419cd9(0xa3)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xb6),_0xc2fa20),_0x313ee2&&_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x10c),_0x313ee2);const _0x2f81ab=this[_0x419cd9(0x103)](_0x419cd9(0xdf)+_0x37a080[_0x419cd9(0xd5)](),_0x419cd9(0x10d));return{'getConversations':async()=>{const _0x1e474d=_0x419cd9,_0x4274e3=await _0x2f81ab[_0x1e474d(0x8d)];return(await _0x4274e3[_0x1e474d(0x108)]())[_0x1e474d(0x10f)];},'abortController':_0x2f81ab[_0x419cd9(0xce)]};}[_0x193c25(0xdb)](_0x56a789){const _0x58280a=_0x193c25,_0x51ca4d=this[_0x58280a(0x103)](_0x58280a(0xb9)+_0x56a789,_0x58280a(0xd8));return{'execute':async()=>{const _0x1f42a6=_0x58280a;await _0x51ca4d[_0x1f42a6(0x8d)];},'abortController':_0x51ca4d[_0x58280a(0xce)]};}[_0x193c25(0x101)](_0x30c1e3,_0x12625e){const _0x244049=_0x193c25,_0x27ea74=this[_0x244049(0x103)](_0x244049(0xb9)+_0x30c1e3,_0x244049(0x109),_0x12625e);return{'getResult':async()=>(await _0x27ea74[_0x244049(0x8d)],_0x12625e),'abortController':_0x27ea74[_0x244049(0xce)]};}[_0x193c25(0xf3)](_0x2b3d00){const _0x36348b=_0x193c25,_0x11c8d8=this[_0x36348b(0x103)](_0x36348b(0xb9)+_0x2b3d00,_0x36348b(0x10d));return{'getConversation':async()=>(await _0x11c8d8[_0x36348b(0x8d)])[_0x36348b(0x108)](),'abortController':_0x11c8d8[_0x36348b(0xce)]};}[_0x193c25(0xe9)](_0x5dd926){const _0x1d7f38=_0x193c25,_0x12791f=this[_0x1d7f38(0x103)](_0x1d7f38(0xb9)+_0x5dd926+_0x1d7f38(0x9a),_0x1d7f38(0x10d));return{'getMessages':async()=>{const _0x14475f=_0x1d7f38,_0x57f463=await _0x12791f[_0x14475f(0x8d)];return(await _0x57f463[_0x14475f(0x108)]())[_0x14475f(0x10f)];},'abortController':_0x12791f[_0x1d7f38(0xce)]};}[_0x193c25(0xb7)](_0x4a7721,_0xa6cb10,_0x43d9b6){const _0x418680=_0x193c25,_0x44c33b=this[_0x418680(0x103)](_0x418680(0xb9)+_0x4a7721+_0x418680(0xaf),_0x418680(0x8f),{'url':_0xa6cb10,'attributes':_0x43d9b6});return{'getId':async()=>(await _0x44c33b[_0x418680(0x8d)])[_0x418680(0x108)](),'abortController':_0x44c33b[_0x418680(0xce)]};}[_0x193c25(0xb8)](){const _0x12ce4d=_0x193c25,_0x180f5d=this[_0x12ce4d(0x103)](_0x12ce4d(0x102),_0x12ce4d(0x10d));return{'list':async()=>{const _0xddcbe2=_0x12ce4d,_0x3ce218=await(await _0x180f5d[_0xddcbe2(0x8d)])[_0xddcbe2(0x108)](),_0x330d65=_0x3ce218[_0xddcbe2(0x10f)][_0xddcbe2(0xa1)](_0x50e706=>({..._0x50e706,'description':_0x1a66a9(this[_0xddcbe2(0xf2)][_0xddcbe2(0x91)],_0xddcbe2(0xfc)+_0x50e706['id'][_0xddcbe2(0xa5)]())}));return{..._0x3ce218,'items':_0x330d65};},'abortController':_0x180f5d[_0x12ce4d(0xce)]};}[_0x193c25(0x8b)](_0x4d783e,_0x348a08){const _0x1df7b7=_0x193c25,_0x266eac=this[_0x1df7b7(0x103)](_0x1df7b7(0xb9)+_0x4d783e+_0x1df7b7(0xbf)+_0x348a08,_0x1df7b7(0xd8));return{'execute':async()=>{const _0x31caa6=_0x1df7b7;await _0x266eac[_0x31caa6(0x8d)];},'abortController':_0x266eac[_0x1df7b7(0xce)]};}[_0x193c25(0xd9)](_0x58f85c,_0x93e021){const _0x239115=_0x193c25,_0x58f2ee=this[_0x239115(0x103)](_0x239115(0xb9)+_0x58f85c+_0x239115(0xe7)+_0x93e021,_0x239115(0xd8));return{'execute':async()=>{const _0x4c938f=_0x239115;await _0x58f2ee[_0x4c938f(0x8d)];},'abortController':_0x58f2ee[_0x239115(0xce)]};}[_0x193c25(0x10a)](_0x1eea38,_0x3e0e06){const _0x2f2351=_0x193c25,_0x1f8038=this[_0x2f2351(0x103)](_0x2f2351(0xb9)+_0x1eea38+_0x2f2351(0xea)+_0x3e0e06,_0x2f2351(0xd8));return{'execute':async()=>{const _0x2ecd3b=_0x2f2351;await _0x1f8038[_0x2ecd3b(0x8d)];},'abortController':_0x1f8038[_0x2f2351(0xce)]};}[_0x193c25(0xe4)]({reviewName:_0x22fc59,content:_0x2e2e22,args:_0x20a996}){const _0x5cb27f=_0x193c25,_0x3ea5c2=this[_0x5cb27f(0x103)](_0x5cb27f(0xe8)+_0x22fc59+_0x5cb27f(0xff),_0x5cb27f(0x8f),{'content':[{'type':_0x5cb27f(0xfd),'content':_0x2e2e22}],'args':_0x20a996});return{'getStream':async()=>{const _0x60c8b3=_0x5cb27f,_0x56c35b=(await _0x3ea5c2[_0x60c8b3(0x8d)])[_0x60c8b3(0xd2)];return this[_0x60c8b3(0xfa)](_0x56c35b);},'abortController':_0x3ea5c2[_0x5cb27f(0xce)]};}[_0x193c25(0xa0)]({content:_0x45bae7,prompt:_0x14a8a3,model:_0x53c5ec}){const _0x5ecc94=_0x193c25,_0x3c53bb=this[_0x5ecc94(0x103)](_0x5ecc94(0x98),_0x5ecc94(0x8f),{'content':[{'type':_0x5ecc94(0xfd),'content':_0x45bae7}],'prompt':_0x14a8a3,'model':_0x53c5ec});return{'getStream':async()=>{const _0x17fcf0=_0x5ecc94,_0xe130ae=(await _0x3c53bb[_0x17fcf0(0x8d)])[_0x17fcf0(0xd2)];return this[_0x17fcf0(0xfa)](_0xe130ae);},'abortController':_0x3c53bb[_0x5ecc94(0xce)]};}[_0x193c25(0xc3)](_0x5f0e9a,_0x5822fc,_0x28af47){const _0x369d79=_0x193c25,_0x3798fc=this[_0x369d79(0x103)](_0x369d79(0xb9)+_0x5f0e9a+_0x369d79(0x8a)+_0x5822fc+_0x369d79(0xc1),_0x369d79(0xd6),{'positiveCount':_0x28af47[_0x369d79(0xef)],'totalCount':_0x28af47[_0x369d79(0xde)]});return{'execute':async()=>{const _0xef49fb=_0x369d79;await _0x3798fc[_0xef49fb(0x8d)];},'abortController':_0x3798fc[_0x369d79(0xce)]};}[_0x193c25(0x10b)](_0x2b3cea,_0x549fde,_0xd218a4){const _0xd9ba07=_0x193c25,_0x3c2ea1=this[_0xd9ba07(0x103)](_0xd9ba07(0xf6)+_0x2b3cea+_0xd9ba07(0x89)+_0x549fde+_0xd9ba07(0xc1),_0xd9ba07(0xd6),{'positiveCount':_0xd218a4[_0xd9ba07(0xef)],'totalCount':_0xd218a4[_0xd9ba07(0xde)]});return{'execute':async()=>{const _0x2d3644=_0xd9ba07;await _0x3c2ea1[_0x2d3644(0x8d)];},'abortController':_0x3c2ea1[_0xd9ba07(0xce)]};}[_0x193c25(0xf4)](_0x37b5af,_0x412bb8){const _0x3dd48b=_0x193c25,_0x35121c=this[_0x3dd48b(0x103)](_0x3dd48b(0xa8)+_0x37b5af+_0x3dd48b(0xc1),_0x3dd48b(0xd6),{'positiveCount':_0x412bb8[_0x3dd48b(0xef)],'totalCount':_0x412bb8[_0x3dd48b(0xde)]});return{'execute':async()=>{const _0x10e6fc=_0x3dd48b;await _0x35121c[_0x10e6fc(0x8d)];},'abortController':_0x35121c[_0x3dd48b(0xce)]};}[_0x193c25(0x85)](_0x5088a5,_0x2437dc,_0x650f4e,_0x45da92){const _0x24930f=_0x193c25,_0x27f00d=this[_0x24930f(0x103)](_0x24930f(0xe8)+_0x5088a5+_0x24930f(0x89)+_0x2437dc+_0x24930f(0xc1),_0x24930f(0xd6),{'positiveCount':_0x650f4e[_0x24930f(0xef)],'totalCount':_0x650f4e[_0x24930f(0xde)],'dataId':_0x45da92});return{'execute':async()=>{const _0x475408=_0x24930f;await _0x27f00d[_0x475408(0x8d)];},'abortController':_0x27f00d[_0x24930f(0xce)]};}[_0x193c25(0xe1)](_0x1d8571,_0xa42d47,_0x54994b){const _0x29d5de=_0x193c25,_0x92d000=this[_0x29d5de(0x103)](_0x29d5de(0xf5)+_0x1d8571+_0x29d5de(0xc1),_0x29d5de(0xd6),{'positiveCount':_0xa42d47[_0x29d5de(0xef)],'totalCount':_0xa42d47[_0x29d5de(0xde)],'dataId':_0x54994b});return{'execute':async()=>{const _0x134650=_0x29d5de;await _0x92d000[_0x134650(0x8d)];},'abortController':_0x92d000[_0x29d5de(0xce)]};}[_0x193c25(0x103)](_0x216527,_0x2bea80,_0x4dfc39){const _0x49e7bb=_0x193c25,_0x5ca384=new AbortController(),_0x552e51=_0x4dfc39 instanceof FormData,_0x408692={'Authorization':_0x49e7bb(0xdd)+this[_0x49e7bb(0xd0)]?.[_0x49e7bb(0xbc)]};_0x4dfc39&&!_0x552e51&&(_0x408692[_0x49e7bb(0xf1)]=_0x49e7bb(0x87));const _0x23007a={'method':_0x2bea80,'headers':_0x408692,'signal':_0x5ca384[_0x49e7bb(0xe5)]};return _0x4dfc39&&(_0x23007a[_0x49e7bb(0xd2)]=_0x552e51?_0x4dfc39:JSON[_0x49e7bb(0x9f)](_0x4dfc39)),{'request':fetch(''+this[_0x49e7bb(0xc0)]+_0x216527,_0x23007a)[_0x49e7bb(0xfb)](_0x1693d3=>{const _0x3b38f2=_0x49e7bb;this[_0x3b38f2(0xf8)](_0x1693d3);})[_0x49e7bb(0x104)](_0x9c99f1=>{const _0x22ea6d=_0x49e7bb;if(!_0x9c99f1['ok'])throw new _0x292ec4(_0x22ea6d(0xba),this,{'url':this[_0x22ea6d(0xc0)],'path':_0x216527,'method':_0x2bea80,'body':_0x4dfc39,'status':(_0x9c99f1||{})[_0x22ea6d(0x8e)],'statusText':(_0x9c99f1||{})[_0x22ea6d(0x93)]});return _0x9c99f1;}),'abortController':_0x5ca384};}async*[_0x193c25(0xfa)](_0x3fea12){const _0x1968b7=_0x193c25,_0x4bd7f9=[],_0x307bd=_0x3fea12[_0x1968b7(0xe6)](),_0xbabd1a=_0x2079d3({'onError':_0x1b772e=>{const _0x3e917d=_0x1968b7;this[_0x3e917d(0xf8)](_0x1b772e);},'onEvent':_0x1a0d19=>{const _0x3ab9e1=_0x1968b7;_0x1a0d19[_0x3ab9e1(0xb2)]=JSON[_0x3ab9e1(0xe0)](_0x1a0d19[_0x3ab9e1(0xb2)]),_0x4bd7f9[_0x3ab9e1(0xb1)](_0x1a0d19);}});try{let _0x5f2640=!0x1;for(;!_0x5f2640;){const {done:_0x294766,value:_0x19390b}=await _0x307bd[_0x1968b7(0x97)]();_0x294766&&(_0x5f2640=!0x0),_0xbabd1a[_0x1968b7(0x90)](this[_0x1968b7(0xcf)][_0x1968b7(0x99)](_0x19390b,{'stream':!0x0})),yield*_0x4bd7f9,_0x4bd7f9[_0x1968b7(0x81)]=0x0;}}catch(_0x18e762){this[_0x1968b7(0xf8)](_0x18e762);}finally{_0x307bd[_0x1968b7(0xdc)](),_0xbabd1a[_0x1968b7(0xfe)]();}}[_0x193c25(0xf8)](_0x484a9f){const _0x1acc24=_0x193c25;if(_0x484a9f instanceof _0x292ec4)throw _0x484a9f;if(_0x484a9f instanceof Error&&_0x1acc24(0xc8)===_0x484a9f[_0x1acc24(0xcd)])throw new _0x292ec4(_0x1acc24(0x82),this,{'originalError':_0x484a9f});throw new _0x292ec4(_0x1acc24(0xba),this,{'originalError':_0x484a9f});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a8fdf=_0x3633;function _0x3633(_0xe33b82,_0x174d71){const _0x11c02c=_0x11c0();return _0x3633=function(_0x3633c3,_0x2ceead){_0x3633c3=_0x3633c3-0x7b;let _0x1f6a2c=_0x11c02c[_0x3633c3];return _0x1f6a2c;},_0x3633(_0xe33b82,_0x174d71);}(function(_0x1b57f2,_0x20e367){const _0x4e09fa=_0x3633,_0x49261a=_0x1b57f2();while(!![]){try{const _0xdd967c=-parseInt(_0x4e09fa(0xc5))/0x1*(-parseInt(_0x4e09fa(0x8d))/0x2)+parseInt(_0x4e09fa(0x97))/0x3*(parseInt(_0x4e09fa(0xc6))/0x4)+-parseInt(_0x4e09fa(0x81))/0x5+-parseInt(_0x4e09fa(0xb2))/0x6*(-parseInt(_0x4e09fa(0xbd))/0x7)+parseInt(_0x4e09fa(0xb5))/0x8+-parseInt(_0x4e09fa(0xb4))/0x9+-parseInt(_0x4e09fa(0xc7))/0xa*(parseInt(_0x4e09fa(0xd6))/0xb);if(_0xdd967c===_0x20e367)break;else _0x49261a['push'](_0x49261a['shift']());}catch(_0x364bec){_0x49261a['push'](_0x49261a['shift']());}}}(_0x11c0,0x1994c));import{ViewDowncastWriter as _0x441827}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x40b0f0,Editor as _0x2d8962}from'ckeditor5/src/core.js';import{uid as _0x2fb2bb}from'ckeditor5/src/utils.js';function _0x11c0(){const _0x1a1645=['_sessionId','has','trim','sessionId','12cwQKlR','getWalker','774UqTRNS','411296PHPNIA','_integrateEditor','add','getMarkersGroup','ready','push','editing','change','496965ShegIq','_nextDataId','isOfficialPlugin','isBefore','$textProxy','getSelection','editingDowncast','context','608ORgpar','79708TKUQit','10uIzqvj','dataDowncast','containerElement','join','toView',':end></','showFakeVisualSelection','isContent','start','markerToElement','RealTimeCollaborationClient','length','sort','get','toData','2066449vhobbE','getSelectionText',':start></','selection','substring','emptyElement','_getMarkersInDocumentOrder','model','editors','getChildren',':start>','modelToViewWithIds','pluginName','fromCharCode','markerToHighlight','afterInit','name','isAtEnd','plugins','version','data','301150pKYmXO','conversion','floor','createRange','listenTo','isOpening','processor','_setDataIdsOnChildren','isPremiumPlugin','convertAiChatSelectionMarker','ai-selection','ck-fake-ai-selection','66IPTAQZ',':end>','createUIElement','random','from','_displayedFakeSelectionId','element','addMarker','view','createRangeIn','21JSOpBZ','document','getStart','getLastMatchingPosition','setAttribute','end','getSelectedContent','removeAllRanges','hideFakeVisualSelection','for','getRoot','markers','isAfter','indexOf','_displayedFakeSelectionLocked','ai-selection:','ck-ai-assistant-ui_theme','schema','removeMarker','AIEditing','data-id','getDocumentData','markerName'];_0x11c0=function(){return _0x1a1645;};return _0x11c0();}import{getEditorFromContext as _0x568ca2}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1a8fdf(0x8b);export class AIEditing extends _0x40b0f0{[_0x1a8fdf(0x92)]=null;[_0x1a8fdf(0xa5)]=!0x1;[_0x1a8fdf(0xae)];static get[_0x1a8fdf(0xe2)](){const _0x4ed4ef=_0x1a8fdf;return _0x4ed4ef(0xaa);}static get[_0x1a8fdf(0xbf)](){return!0x0;}static get[_0x1a8fdf(0x89)](){return!0x0;}get[_0x1a8fdf(0xb1)](){const _0x535534=_0x1a8fdf;if(!this[_0x535534(0xae)]){const _0x466511=_0x568ca2(this[_0x535534(0xc4)]),_0x13876f=_0x466511[_0x535534(0x7e)][_0x535534(0xaf)](_0x535534(0xd1))&&_0x466511[_0x535534(0x7e)][_0x535534(0xd4)](_0x535534(0xd1))[_0x535534(0xb1)];this[_0x535534(0xae)]=_0x13876f||_0x2fb2bb();}return this[_0x535534(0xae)];}[_0x1a8fdf(0xac)](){const _0x5a039d=_0x1a8fdf,_0x387709=_0x568ca2(this[_0x5a039d(0xc4)]),_0xb781cb=_0x387709[_0x5a039d(0xdd)],_0x256834=_0x387709[_0x5a039d(0x80)][_0x5a039d(0xcb)](_0xb781cb[_0x5a039d(0x98)][_0x5a039d(0xa1)](),{'convertAiChatSelectionMarker':!0x0}),_0xc66112=new _0x441827(_0x387709[_0x5a039d(0xbb)][_0x5a039d(0x95)][_0x5a039d(0x98)]);this[_0x5a039d(0x88)](_0x256834,_0xc66112);let _0x1a3f6e=_0x387709[_0x5a039d(0x80)][_0x5a039d(0x87)][_0x5a039d(0xd5)](_0x256834);const _0x3c23c4=this[_0x5a039d(0xdc)](),_0x3e8539=[];for(const _0x1dab5f of _0x3c23c4){const _0x5b2cf0='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xd8)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xe0),_0x3347ea=_0x1a3f6e[_0x5a039d(0xa4)](_0x5b2cf0);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x3347ea)+_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea+_0x5b2cf0[_0x5a039d(0xd2)]);const _0x14f3ab='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xcc)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0x8e),_0x1c3be4=_0x1a3f6e[_0x5a039d(0xa4)](_0x14f3ab);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x1c3be4)+_0x1a3f6e[_0x5a039d(0xda)](_0x1c3be4+_0x14f3ab[_0x5a039d(0xd2)]),_0x3e8539[_0x5a039d(0xba)]({'markerName':_0x1dab5f[_0x5a039d(0x7c)],'start':_0x3347ea,'end':_0x1c3be4,'htmlFragment':_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea,_0x1c3be4)});}return{'content':_0x1a3f6e,'version':_0x387709[_0x5a039d(0xdd)][_0x5a039d(0x98)][_0x5a039d(0x7f)],'sessionId':this[_0x5a039d(0xb1)],'selections':_0x3e8539};}async[_0x1a8fdf(0x7b)](){const _0xae4481=_0x1a8fdf;this[_0xae4481(0xc4)]instanceof _0x2d8962?this[_0xae4481(0xb6)](this[_0xae4481(0xc4)]):this[_0xae4481(0x85)](this[_0xae4481(0xc4)][_0xae4481(0xde)],_0xae4481(0xb7),(_0x9aacbe,_0x1c9379)=>{const _0x1bc735=_0xae4481;_0x1c9379['on'](_0x1bc735(0xb9),()=>{const _0x19afa9=_0x1bc735;this[_0x19afa9(0xb6)](_0x1c9379);});});}[_0x1a8fdf(0xb6)](_0x66635f){const _0x7f9ed1=_0x1a8fdf;_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc3))[_0x7f9ed1(0xe4)]({'model':_0x7f9ed1(0x8b),'view':{'classes':[_0x7f9ed1(0x8c),_0x7f9ed1(0xa7)],'priority':0xc}}),_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc8))[_0x7f9ed1(0xd0)]({'model':_0x7f9ed1(0x8b),'view':(_0x3797a3,{writer:_0x5b23de,options:_0x565af3})=>_0x565af3[_0x7f9ed1(0x8a)]?_0x5b23de[_0x7f9ed1(0x8f)](_0x3797a3[_0x7f9ed1(0xad)]+':'+(_0x3797a3[_0x7f9ed1(0x86)]?_0x7f9ed1(0xcf):_0x7f9ed1(0x9c))):null});}[_0x1a8fdf(0xcd)](_0x2a7c85,_0x34e6f2,_0x592794=!0x1,_0x559220=!0x1){const _0x39a525=_0x1a8fdf;if(this[_0x39a525(0xa5)]&&!_0x559220)return!0x1;this[_0x39a525(0x92)]&&this[_0x39a525(0x9f)](this[_0x39a525(0x92)]),this[_0x39a525(0x92)]=_0x34e6f2,this[_0x39a525(0xa5)]=_0x592794;const _0x53d9a6=_0x568ca2(this[_0x39a525(0xc4)])[_0x39a525(0xdd)];return _0x53d9a6[_0x39a525(0xbc)](_0x57223b=>{const _0x3a2bc7=_0x39a525;let _0x4f7ca7=0x0;for(let _0x4ae293 of _0x2a7c85){const _0x538eb1=_0x3a2bc7(0xa6)+_0x4f7ca7;if(_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x7d)]){const _0x339dc5=_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x9a)](({item:_0x43dce3})=>!_0x53d9a6[_0x3a2bc7(0xa8)][_0x3a2bc7(0xce)](_0x43dce3),{'boundaries':_0x4ae293});_0x4ae293=_0x57223b[_0x3a2bc7(0x84)](_0x339dc5,_0x4ae293[_0x3a2bc7(0x9c)]);}_0x57223b[_0x3a2bc7(0x94)](_0x538eb1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4ae293}),_0x4f7ca7++;}}),window[_0x39a525(0xc2)]()?.[_0x39a525(0x9e)](),!0x0;}[_0x1a8fdf(0x9f)](_0x45910e){const _0x2b9fde=_0x1a8fdf;if(this[_0x2b9fde(0x92)]!=_0x45910e)return!0x1;this[_0x2b9fde(0x92)]=null,this[_0x2b9fde(0xa5)]=!0x1;const _0x20297f=_0x568ca2(this[_0x2b9fde(0xc4)]),_0x3e3dc6=_0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xa2)][_0x2b9fde(0xb8)](_0x2b9fde(0x8b));return _0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xbc)](_0x1468fe=>{const _0x19c503=_0x2b9fde;for(const _0x49394d of _0x3e3dc6)_0x1468fe[_0x19c503(0xa9)](_0x49394d);}),!0x0;}[_0x1a8fdf(0xe1)](_0x3c0ad0){const _0x557bcc=_0x1a8fdf,_0x43b0bd=_0x568ca2(this[_0x557bcc(0xc4)]),_0x9f2097=_0x43b0bd[_0x557bcc(0x80)][_0x557bcc(0xcb)](_0x3c0ad0),_0x2de95b=new _0x441827(_0x43b0bd[_0x557bcc(0xbb)][_0x557bcc(0x95)][_0x557bcc(0x98)]);return this[_0x557bcc(0x88)](_0x9f2097,_0x2de95b),_0x9f2097;}[_0x1a8fdf(0x88)](_0x1f4455,_0x1853a6){const _0x5b75ca=_0x1a8fdf;let _0x5a5c18=!0x1;const _0x446bb6=new Set();for(const _0x22d13c of _0x1f4455[_0x5b75ca(0xdf)]()){const _0x86b99d=_0x22d13c['is'](_0x5b75ca(0xdb))||_0x22d13c['is'](_0x5b75ca(0xc9));if(!_0x22d13c['is'](_0x5b75ca(0x93)))continue;(this[_0x5b75ca(0x88)](_0x22d13c,_0x1853a6)||_0x86b99d)&&(_0x1853a6[_0x5b75ca(0x9b)](_0x5b75ca(0xab),this[_0x5b75ca(0xbe)](_0x446bb6),_0x22d13c),_0x5a5c18=!0x0);}return _0x5a5c18;}[_0x1a8fdf(0xbe)](_0x5452a0){const _0x3ec19e=_0x1a8fdf;let _0x3fa8fa;do{_0x3fa8fa='';for(let _0x1e6073=0x0;_0x1e6073<0x4;_0x1e6073++)_0x3fa8fa+=String[_0x3ec19e(0xe3)](0x61+Math[_0x3ec19e(0x83)](0x1a*Math[_0x3ec19e(0x90)]()));}while(_0x5452a0[_0x3ec19e(0xaf)](_0x3fa8fa));return _0x5452a0[_0x3ec19e(0xb7)](_0x3fa8fa),_0x3fa8fa;}[_0x1a8fdf(0xd7)](){const _0x372bfb=_0x1a8fdf,{model:_0xf42a2f}=_0x568ca2(this[_0x372bfb(0xc4)]),_0x2a68d4=_0xf42a2f[_0x372bfb(0x98)][_0x372bfb(0xd9)],_0x4c3426=_0xf42a2f[_0x372bfb(0x9d)](_0x2a68d4),_0x4c14c4=[],_0x1ed58c=_0xf42a2f[_0x372bfb(0x96)](_0x4c3426)[_0x372bfb(0xb3)]();for(const {item:_0x2d29f8}of _0x1ed58c)_0x2d29f8['is'](_0x372bfb(0xc1))?_0x4c14c4[_0x372bfb(0xba)](_0x2d29f8[_0x372bfb(0x80)]):_0x2d29f8['is'](_0x372bfb(0x93))&&_0x4c14c4[_0x372bfb(0xd2)]>0x0&&'\x20'!==_0x4c14c4[_0x4c14c4[_0x372bfb(0xd2)]-0x1]&&_0x4c14c4[_0x372bfb(0xba)]('\x20');return'\x22'+_0x4c14c4[_0x372bfb(0xca)]('')[_0x372bfb(0xb0)]()+'\x22';}[_0x1a8fdf(0xdc)](){const _0x556358=_0x1a8fdf,_0x3c647e=_0x568ca2(this[_0x556358(0xc4)])[_0x556358(0xdd)];return Array[_0x556358(0x91)](_0x3c647e[_0x556358(0xa2)][_0x556358(0xb8)](_0x556358(0x8b)))[_0x556358(0xd3)]((_0x57ced5,_0x447a16)=>_0x57ced5[_0x556358(0x99)]()[_0x556358(0xc0)](_0x447a16[_0x556358(0x99)]())?-0x1:_0x57ced5[_0x556358(0x99)]()[_0x556358(0xa3)](_0x447a16[_0x556358(0x99)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a07bf=_0x2af5;(function(_0x82a694,_0x52b913){const _0x3a1953=_0x2af5,_0x5e9f75=_0x82a694();while(!![]){try{const _0x7a9c0=parseInt(_0x3a1953(0x1c9))/0x1*(-parseInt(_0x3a1953(0x1c0))/0x2)+parseInt(_0x3a1953(0x1c2))/0x3*(parseInt(_0x3a1953(0x1d1))/0x4)+parseInt(_0x3a1953(0x1cb))/0x5+parseInt(_0x3a1953(0x1d2))/0x6+-parseInt(_0x3a1953(0x1d3))/0x7+parseInt(_0x3a1953(0x1c8))/0x8*(parseInt(_0x3a1953(0x1d0))/0x9)+parseInt(_0x3a1953(0x1bd))/0xa*(-parseInt(_0x3a1953(0x1c5))/0xb);if(_0x7a9c0===_0x52b913)break;else _0x5e9f75['push'](_0x5e9f75['shift']());}catch(_0x35a8fb){_0x5e9f75['push'](_0x5e9f75['shift']());}}}(_0x26fa,0x41bdc));import{EmitterMixin as _0x8bb345}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2a07bf(0x1c4)];function _0x26fa(){const _0x529fd0=['webSearch','2300965dyqnXL','_isReasoningEnabled','setReasoning','init','setWebSearch','1975527ciCJxI','239672AzeYVs','1728330FMErsq','3235190YiwBsp','isReasoningEnabled','_isWebSearchEnabled','toggleWebSearch','getCapabilitiesRequestData','60bnojHL','reasoning','getCapabilitiesConfig','9842UBaSlh','fire','6MrDFUU','toggleReasoning','capabilitiesUpdated','694474rFLlpu','reset','isWebSearchEnabled','16UVYwep','40TBQrrp'];_0x26fa=function(){return _0x529fd0;};return _0x26fa();}function _0x2af5(_0x3c2a19,_0x416d05){const _0x26faa4=_0x26fa();return _0x2af5=function(_0x2af55d,_0x1f753c){_0x2af55d=_0x2af55d-0x1b9;let _0x3e5cd5=_0x26faa4[_0x2af55d];return _0x3e5cd5;},_0x2af5(_0x3c2a19,_0x416d05);}export class AICapabilities extends _0x8bb345(){[_0x2a07bf(0x1ba)];[_0x2a07bf(0x1cc)];constructor(){const _0x1397f5=_0x2a07bf;super(),this[_0x1397f5(0x1ba)]=!0x1,this[_0x1397f5(0x1cc)]=!0x1;}[_0x2a07bf(0x1ce)](){const _0x2fcb66=_0x2a07bf;this[_0x2fcb66(0x1c6)]();}[_0x2a07bf(0x1c6)](){const _0x37faf8=_0x2a07bf;this[_0x37faf8(0x1cf)](!0x1),this[_0x37faf8(0x1cd)](!0x1);}[_0x2a07bf(0x1bf)](){const _0x5c108f=_0x2a07bf;return{'isWebSearchEnabled':this[_0x5c108f(0x1ba)],'isReasoningEnabled':this[_0x5c108f(0x1cc)]};}static[_0x2a07bf(0x1bc)](_0x5705c1){const _0x4a605c=_0x2a07bf,_0x2a336b={};return _0x5705c1&&_0x5705c1[_0x4a605c(0x1c7)]&&(_0x2a336b[_0x4a605c(0x1ca)]={}),_0x5705c1&&_0x5705c1[_0x4a605c(0x1b9)]&&(_0x2a336b[_0x4a605c(0x1be)]={}),_0x2a336b;}[_0x2a07bf(0x1bb)](){const _0x38e746=_0x2a07bf;this[_0x38e746(0x1cf)](!this[_0x38e746(0x1ba)]);}[_0x2a07bf(0x1c3)](){const _0x310a02=_0x2a07bf;this[_0x310a02(0x1cd)](!this[_0x310a02(0x1cc)]);}[_0x2a07bf(0x1cf)](_0x986eb5){const _0x46b50a=_0x2a07bf;_0x986eb5!==this[_0x46b50a(0x1ba)]&&(this[_0x46b50a(0x1ba)]=_0x986eb5,this[_0x46b50a(0x1c1)](_0x46b50a(0x1c4),this[_0x46b50a(0x1bf)]()));}[_0x2a07bf(0x1cd)](_0x5e3c28){const _0x53ec59=_0x2a07bf;_0x5e3c28!==this[_0x53ec59(0x1cc)]&&(this[_0x53ec59(0x1cc)]=_0x5e3c28,this[_0x53ec59(0x1c1)](_0x53ec59(0x1c4),this[_0x53ec59(0x1bf)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xa9b9fd,_0x1cebbc){var _0xd71deb=_0x2b51,_0x407999=_0xa9b9fd();while(!![]){try{var _0x4f07ad=parseInt(_0xd71deb(0x1ad))/0x1*(-parseInt(_0xd71deb(0x1b5))/0x2)+parseInt(_0xd71deb(0x1ae))/0x3*(parseInt(_0xd71deb(0x1aa))/0x4)+parseInt(_0xd71deb(0x1bc))/0x5+parseInt(_0xd71deb(0x1b8))/0x6*(parseInt(_0xd71deb(0x1a9))/0x7)+parseInt(_0xd71deb(0x1b1))/0x8+-parseInt(_0xd71deb(0x1c0))/0x9*(parseInt(_0xd71deb(0x1be))/0xa)+parseInt(_0xd71deb(0x1bf))/0xb*(parseInt(_0xd71deb(0x1ba))/0xc);if(_0x4f07ad===_0x1cebbc)break;else _0x407999['push'](_0x407999['shift']());}catch(_0x1736f2){_0x407999['push'](_0x407999['shift']());}}}(_0x5208,0x84836));export var AIContextItemType;!function(_0x32c052){var _0x3e542e=_0x2b51;_0x32c052[_0x3e542e(0x1c2)]=_0x3e542e(0x1b7),_0x32c052[_0x3e542e(0x1b0)]=_0x3e542e(0x1ab),_0x32c052[_0x3e542e(0x1af)]=_0x3e542e(0x1b9),_0x32c052[_0x3e542e(0x1b3)]=_0x3e542e(0x1ac),_0x32c052[_0x3e542e(0x1b4)]=_0x3e542e(0x1b2);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2b51(_0x20b411,_0x38a852){var _0x52087c=_0x5208();return _0x2b51=function(_0x2b51f2,_0x578f21){_0x2b51f2=_0x2b51f2-0x1a9;var _0x35d77c=_0x52087c[_0x2b51f2];return _0x35d77c;},_0x2b51(_0x20b411,_0x38a852);}!function(_0x364001){var _0x4882cf=_0x2b51;_0x364001[_0x4882cf(0x1b3)]=_0x4882cf(0x1ac),_0x364001[_0x4882cf(0x1b6)]=_0x4882cf(0x1bb),_0x364001[_0x4882cf(0x1bd)]=_0x4882cf(0x1c1);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5208(){var _0x5669f1=['1243140JKPCZI','HTML','10sFFUdx','338151Lmdzsl','6007032IkStrD','html','FILE','324681bNDwFe','24gfsnuc','document','text','17TikAVK','538899dbeRRG','URL','DOCUMENT','2809664XJVoJE','selection','TEXT','SELECTION','96804XaUAVs','MARKDOWN','file','42ZSVKDW','web-resource','12tOZgyF','markdown'];_0x5208=function(){return _0x5669f1;};return _0x5208();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb798fa=_0x4bbb;function _0xe262(){const _0x1e4713=['ai-chat-interaction-error','replyCreated','_isWebSearching','callId','splice','stopListening','setConversationTitle','replies','createReply','find','webSearchFinished','interactionCreated','getStream','getDocumentContext','replyChangeGroupStateUpdated','7025298bdAcSZ','appendContent','reasoning','stop','reasoningFinished','conversationTitle','connector','getReply','isDestroyed','3873975HEvPeb','1243681TxUQpG','length','332108zcfKAx','interactionStarted','push','event','delegate','editor','sources','message-metadata','webSearchStarted','textDelta','replyContentUpdated','2987844XVBJTZ','currentRequest','start','content','isStopped','interactionStopped','ai-interaction-invalid-event-type','24152744PtnqrP','abort','_isReasoning','6exarXq','actionCallId','destroy','error','1512910CxTBNg','sendRequest','_finalizeInteraction','currentReply','interactionDestroyed','modification-delta','forEach','source','abortController','fire','interactionFinished','action-metadata','web-search','done','data','messageId','reasoningStarted'];_0xe262=function(){return _0x1e4713;};return _0xe262();}(function(_0x4d17ec,_0x562db7){const _0x14f027=_0x4bbb,_0x3d01b0=_0x4d17ec();while(!![]){try{const _0x17e523=parseInt(_0x14f027(0xc7))/0x1+-parseInt(_0x14f027(0xc9))/0x2+-parseInt(_0x14f027(0xc6))/0x3+-parseInt(_0x14f027(0xd4))/0x4+parseInt(_0x14f027(0xe2))/0x5*(-parseInt(_0x14f027(0xde))/0x6)+-parseInt(_0x14f027(0xbd))/0x7+parseInt(_0x14f027(0xdb))/0x8;if(_0x17e523===_0x562db7)break;else _0x3d01b0['push'](_0x3d01b0['shift']());}catch(_0x167dba){_0x3d01b0['push'](_0x3d01b0['shift']());}}}(_0xe262,0xb7a6e));import{CKEditorError as _0x138bd2,EmitterMixin as _0x567a7b,logWarning as _0x10789e,uid as _0x2451c8}from'ckeditor5/src/utils.js';import{AIReply as _0x386ec0,isIgnoredReplyType as _0x5b92f8,isValidReplyType as _0x538c6e,isReplyTitleType as _0x3ee21b,isSourceType as _0x405c0f}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0xb798fa(0xb9),_0xb798fa(0xca),_0xb798fa(0xd9),_0xb798fa(0xec),_0xb798fa(0xe6),_0xb798fa(0xf4),_0xb798fa(0xd3),_0xb798fa(0xbc),_0xb798fa(0xb4),_0xb798fa(0xd1),_0xb798fa(0xb8),_0xb798fa(0xf2),_0xb798fa(0xc1),_0xb798fa(0xe1)];function _0x4bbb(_0x1188c5,_0x5de7c4){const _0xe26244=_0xe262();return _0x4bbb=function(_0x4bbb16,_0xd3faf0){_0x4bbb16=_0x4bbb16-0xb4;let _0x3dc6fd=_0xe26244[_0x4bbb16];return _0x3dc6fd;},_0x4bbb(_0x1188c5,_0x5de7c4);}export class AIInteraction extends _0x567a7b(){['id'];[_0xb798fa(0xb5)]=[];[_0xb798fa(0xe5)];[_0xb798fa(0xf1)];[_0xb798fa(0xdf)];[_0xb798fa(0xd5)];[_0xb798fa(0xc3)];[_0xb798fa(0xd8)]=!0x1;[_0xb798fa(0xc5)]=!0x1;[_0xb798fa(0xce)];[_0xb798fa(0xdd)]=!0x1;[_0xb798fa(0xf5)]=!0x1;constructor({connector:_0x1303c4,editor:_0x3d26d0}){const _0x187c47=_0xb798fa;super(),this['id']=_0x2451c8(),this[_0x187c47(0xc3)]=_0x1303c4,this[_0x187c47(0xd8)]=!0x0,this[_0x187c47(0xce)]=_0x3d26d0;}async[_0xb798fa(0xd6)](){const _0x4fbce0=_0xb798fa;let _0x3a6f46;const _0x9d5f8e=[];this[_0x4fbce0(0xd8)]=!0x1;try{this[_0x4fbce0(0xd5)]=await this[_0x4fbce0(0xe3)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xca),this);const _0x290ab3=await this[_0x4fbce0(0xd5)][_0x4fbce0(0xba)]();for await(const _0x152917 of _0x290ab3){if(this[_0x4fbce0(0xd8)])return;if(_0x4fbce0(0xe1)===_0x152917[_0x4fbce0(0xcc)])return void this[_0x4fbce0(0xeb)](_0x4fbce0(0xe1),{'error':new _0x138bd2(_0x4fbce0(0xf3),this)});if(_0x4fbce0(0xd0)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x4fbce0(0xed)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x3ee21b(_0x152917[_0x4fbce0(0xcc)])&&this[_0x4fbce0(0xb4)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xc2)],!0x0),_0x405c0f(_0x152917[_0x4fbce0(0xcc)]))_0x9d5f8e[_0x4fbce0(0xcb)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xe9)]);else{if(_0x538c6e(_0x152917[_0x4fbce0(0xcc)])){if(_0x152917[_0x4fbce0(0xcc)]!==_0x3a6f46){if(_0x3a6f46=_0x152917[_0x4fbce0(0xcc)],_0x4fbce0(0xee)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xf5)]||(this[_0x4fbce0(0xf5)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xd1),this));continue;}if(_0x4fbce0(0xbf)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xdd)]||(this[_0x4fbce0(0xdd)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xf2),this));continue;}this[_0x4fbce0(0xdd)]&&(this[_0x4fbce0(0xdd)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xc1),this)),this[_0x4fbce0(0xf5)]&&(this[_0x4fbce0(0xf5)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xb8),this)),this[_0x4fbce0(0xe5)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xef)](),this[_0x4fbce0(0xe5)]=this[_0x4fbce0(0xb6)]({'type':_0x152917[_0x4fbce0(0xcc)],'interactionId':this['id']}),_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&_0x4fbce0(0xe7)===_0x152917[_0x4fbce0(0xcc)]&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0));}_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xbe)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]);}else _0x5b92f8(_0x152917[_0x4fbce0(0xcc)])||_0x10789e(_0x4fbce0(0xda),{'chunk':_0x152917});}}else this[_0x4fbce0(0xdf)]=_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xf6)];}else this[_0x4fbce0(0xf1)]=_0x152917[_0x4fbce0(0xf0)]['id'];}}finally{this[_0x4fbce0(0xd8)]||(_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0)),this[_0x4fbce0(0xe4)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xec),this));}}[_0xb798fa(0xc0)](){const _0x2223d7=_0xb798fa;this[_0x2223d7(0xd8)]||(this[_0x2223d7(0xe4)](),this[_0x2223d7(0xeb)](_0x2223d7(0xd9),this));}[_0xb798fa(0xc4)](_0x3c41ea){const _0x200702=_0xb798fa;return this[_0x200702(0xb5)][_0x200702(0xb7)](_0x51f5ff=>_0x51f5ff['id']===_0x3c41ea);}[_0xb798fa(0xe0)](){const _0x1acc88=_0xb798fa;this[_0x1acc88(0xc5)]||(this[_0x1acc88(0xc0)](),this[_0x1acc88(0xb5)][_0x1acc88(0xe8)](_0xc40faa=>_0xc40faa[_0x1acc88(0xe0)]()),this[_0x1acc88(0xb5)]=[],this[_0x1acc88(0xc5)]=!0x0,this[_0x1acc88(0xeb)](_0x1acc88(0xe6),this),this[_0x1acc88(0xf8)]());}[_0xb798fa(0xb6)](_0x540f65){const _0x2c634d=_0xb798fa,_0x1f9589=new _0x386ec0({'editor':this[_0x2c634d(0xce)],'documentContextContent':this[_0x2c634d(0xbb)]()?.[_0x2c634d(0xd7)],..._0x540f65});return this[_0x2c634d(0xb5)][_0x2c634d(0xcb)](_0x1f9589),_0x1f9589[_0x2c634d(0xcd)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2c634d(0xeb)](_0x2c634d(0xf4),_0x1f9589),_0x1f9589;}[_0xb798fa(0xb4)](_0x2f6373,_0x48a194=!0x1){const _0x10b538=_0xb798fa;this[_0x10b538(0xeb)](_0x10b538(0xb4),_0x2f6373,_0x48a194);}[_0xb798fa(0xe4)](){const _0x45a374=_0xb798fa;this[_0x45a374(0xd8)]=!0x0,this[_0x45a374(0xd5)]&&this[_0x45a374(0xd5)][_0x45a374(0xea)][_0x45a374(0xdc)](),this[_0x45a374(0xe5)]&&this[_0x45a374(0xe5)][_0x45a374(0xef)](),this[_0x45a374(0xd5)]=this[_0x45a374(0xe5)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5e8312=_0xb32d;(function(_0x568367,_0x523757){const _0x57cc26=_0xb32d,_0x2332a6=_0x568367();while(!![]){try{const _0x4503f2=-parseInt(_0x57cc26(0x1bc))/0x1*(parseInt(_0x57cc26(0x1db))/0x2)+parseInt(_0x57cc26(0x1de))/0x3*(parseInt(_0x57cc26(0x19d))/0x4)+-parseInt(_0x57cc26(0x1a5))/0x5+-parseInt(_0x57cc26(0x1b3))/0x6+-parseInt(_0x57cc26(0x1a2))/0x7+parseInt(_0x57cc26(0x1da))/0x8+parseInt(_0x57cc26(0x1c8))/0x9;if(_0x4503f2===_0x523757)break;else _0x2332a6['push'](_0x2332a6['shift']());}catch(_0x5a26b9){_0x2332a6['push'](_0x2332a6['shift']());}}}(_0x57a5,0xbcb02));import{ObservableMixin as _0xe18198,uid as _0x141224}from'ckeditor5/src/utils.js';function _0xb32d(_0x4f544a,_0x58e8d4){const _0x57a573=_0x57a5();return _0xb32d=function(_0xb32de1,_0x26728a){_0xb32de1=_0xb32de1-0x198;let _0x33b37f=_0x57a573[_0xb32de1];return _0x33b37f;},_0xb32d(_0x4f544a,_0x58e8d4);}import{Element as _0x3bc5af,findAll as _0x3eae01,getAttribute as _0x230838,getParents as _0x2ca6bd,Document as _0x259dfa,parse as _0x36d8c9,Text as _0x15ef74}from'../utils/htmlparser.js';import{AIResponseParser as _0x58c20c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34cfdb}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x4aba17}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x5e8312(0x198),_0x5e8312(0x1c1),_0x5e8312(0x1a4),_0x5e8312(0x1e1)];export const AI_REPLY_TYPES_IGNORED=[_0x5e8312(0x19f)];export const AI_REPLY_TITLE_TYPE=_0x5e8312(0x19f);export class AIReply extends _0xe18198(){['id'];[_0x5e8312(0x1cc)];[_0x5e8312(0x1c0)];[_0x5e8312(0x1d8)]=[];[_0x5e8312(0x1c4)]=new _0x259dfa([]);[_0x5e8312(0x1a7)]=new _0x259dfa([]);[_0x5e8312(0x19b)]=[];[_0x5e8312(0x1ab)]=!0x1;[_0x5e8312(0x1c7)];[_0x5e8312(0x1ae)];[_0x5e8312(0x1cb)];[_0x5e8312(0x1b5)];constructor({type:_0x27a0ca,content:_0x551f9e='',isDone:_0x1ee3a1=!0x1,interactionId:_0x26006e,areActionsDisabled:_0x38fd10,documentContextContent:_0x19557e,editor:_0x50d8c2}){const _0xeef2bb=_0x5e8312;super(),this['id']=_0x141224(),this[_0xeef2bb(0x1cc)]=_0x26006e,this[_0xeef2bb(0x1c0)]=_0x27a0ca,this[_0xeef2bb(0x1ab)]=!!_0x38fd10,this[_0xeef2bb(0x1b5)]=_0x50d8c2,this[_0xeef2bb(0x1ae)]=new _0x58c20c(),this[_0xeef2bb(0x1cb)]=new _0x34cfdb(),this[_0xeef2bb(0x1c7)]=_0x36d8c9(_0x19557e||''),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1b9),_0x1ee3a1),this['on'](_0xeef2bb(0x1d7),()=>{const _0x19eebc=_0xeef2bb;this[_0x19eebc(0x199)]();}),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1a6),_0x551f9e);}[_0x5e8312(0x1d6)](_0x4344fd){const _0x137371=_0x5e8312;this[_0x137371(0x1c9)](_0x137371(0x1a6),this[_0x137371(0x1a6)]+_0x4344fd);}[_0x5e8312(0x1a0)](){const _0x387352=_0x5e8312;this[_0x387352(0x1b9)]||(this[_0x387352(0x1c9)](_0x387352(0x1b9),!0x0),this[_0x387352(0x199)]());}[_0x5e8312(0x1d4)](){const _0x46df0d=_0x5e8312;this[_0x46df0d(0x1a8)]();}[_0x5e8312(0x1ad)](_0x5a8651,_0x2552e3){const _0x2df9bb=_0x5e8312;this[_0x2df9bb(0x19b)][_0x5a8651][_0x2df9bb(0x1b7)]=_0x2552e3,this[_0x2df9bb(0x1b6)](_0x2df9bb(0x1dd),{'reply':this,'index':_0x5a8651,'state':_0x2552e3});}[_0x5e8312(0x199)](){const _0x329d26=_0x5e8312;if(_0x329d26(0x198)===this[_0x329d26(0x1c0)]){this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1cf)](this[_0x329d26(0x1a6)]);const _0x322428=this[_0x329d26(0x19b)];this[_0x329d26(0x1bd)]();const _0x511d74=this[_0x329d26(0x1ac)](_0x322428,this[_0x329d26(0x19b)]);(_0x511d74[_0x329d26(0x1df)]||this[_0x329d26(0x1b9)])&&this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this,_0x511d74);}else this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1ba)](this[_0x329d26(0x1a6)]),this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this);}[_0x5e8312(0x1ac)](_0x48a48a,_0x4147d8){const _0x45df0f=_0x5e8312,_0xe2f9a1=[];for(const _0x46a7a3 of _0x4147d8){const _0x4a5c55=_0x48a48a[_0x46a7a3[_0x45df0f(0x1c6)]];_0x4a5c55?_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]!==_0x46a7a3[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]?_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3):_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1d3)]((_0x4c6f7f,_0x190263)=>{const _0x3c8bd4=_0x45df0f,_0x540db6=_0x46a7a3[_0x3c8bd4(0x1cd)][_0x190263];_0x4c6f7f['id']!==_0x540db6['id']&&_0xe2f9a1[_0x3c8bd4(0x1b8)](_0x46a7a3);}):_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3);}return _0xe2f9a1;}[_0x5e8312(0x1bd)](){const _0x5836cd=_0x5e8312,_0x6d197e=new _0x3bc5af('p',{},[new _0x3bc5af(_0x5836cd(0x1c3),{'style':_0x5836cd(0x19c)},[new _0x15ef74(_0x4aba17(this[_0x5836cd(0x1b5)][_0x5836cd(0x1ca)],_0x5836cd(0x1be)))])]),_0x5cc022=this[_0x5836cd(0x1cb)][_0x5836cd(0x1bf)](this[_0x5836cd(0x1c4)],this[_0x5836cd(0x1c7)][_0x5836cd(0x1d5)](!0x0),{'markUnstableElements':!this[_0x5836cd(0x1b9)],'replaceRemovedWith':_0x6d197e,'cutAfterLastChange':!this[_0x5836cd(0x1b9)]});if(!_0x5cc022[_0x5836cd(0x1ce)][_0x5836cd(0x1df)]&&!this[_0x5836cd(0x1b9)])return;this[_0x5836cd(0x1a7)]=_0x5cc022[_0x5836cd(0x1c4)];let _0x237157=[];if(_0x3eae01(_0x1e68c0=>{const _0x20b06f=_0x5836cd,_0x5ddbdc=_0x230838(_0x1e68c0,_0x20b06f(0x1a1));if(!_0x5ddbdc||!_0x2c5381(_0x5ddbdc))return!0x1;const _0x14d4c6=[_0x1e68c0,..._0x2ca6bd(_0x1e68c0)]['at'](-0x2);if(_0x1e68c0!=_0x14d4c6){const _0x238533=_0x230838(_0x14d4c6,_0x20b06f(0x1a1));_0x2c5381(_0x238533)||(_0x237157[_0x20b06f(0x1b8)]({'node':_0x14d4c6,'id':_0x238533,'type':_0x20b06f(0x19a)}),_0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x1b8)](_0x238533));}else _0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x19a),'id':_0x5ddbdc}):_0x5cc022[_0x20b06f(0x1a9)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1b4),'id':_0x5ddbdc,'anchorId':_0x230838(_0x1e68c0[_0x20b06f(0x1d2)],_0x20b06f(0x1a1))}):_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1c5),'id':_0x5ddbdc});return!0x0;},this[_0x5836cd(0x1a7)]),_0x237157=_0x237157[_0x5836cd(0x1d9)](({node:_0x1339a6})=>[..._0x2ca6bd(_0x1339a6),_0x1339a6][_0x5836cd(0x1b0)](_0x498f10=>!_0x230838(_0x498f10,_0x5836cd(0x1b1)))),0x0==_0x237157[_0x5836cd(0x1df)])return;const _0x46010e=[[_0x237157[0x0]]];for(let _0x3d602f=0x1;_0x3d602f<_0x237157[_0x5836cd(0x1df)];_0x3d602f++){const _0x3c6646=_0x46010e[_0x46010e[_0x5836cd(0x1df)]-0x1],_0x195caa=_0x3c6646[_0x3c6646[_0x5836cd(0x1df)]-0x1];_0x237157[_0x3d602f][_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]==_0x195caa[_0x5836cd(0x1c2)]&&_0x5836cd(0x19a)!=_0x237157[_0x3d602f][_0x5836cd(0x1c0)]&&_0x5836cd(0x19a)!=_0x195caa[_0x5836cd(0x1c0)]?_0x3c6646[_0x5836cd(0x1b8)](_0x237157[_0x3d602f]):_0x46010e[_0x5836cd(0x1b8)]([_0x237157[_0x3d602f]]);}for(const _0x945e16 of _0x46010e){const _0x201bcf=_0x945e16[0x0],_0x970878=_0x945e16[_0x945e16[_0x5836cd(0x1df)]-0x1],_0x4e14ea=_0x273d3c(_0x201bcf[_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]);_0x4e14ea&&_0x945e16[_0x5836cd(0x1af)](_0x4e14ea);const _0x4a4ae9=_0x273d3c(_0x970878[_0x5836cd(0x1c2)][_0x5836cd(0x1d1)]);_0x4a4ae9&&_0x945e16[_0x5836cd(0x1b8)](_0x4a4ae9);}function _0x2c5381(_0x22f9e2){const _0x581f19=_0x5836cd;return _0x5cc022[_0x581f19(0x1ce)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1a9)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1bb)][_0x581f19(0x19e)](_0x22f9e2);}function _0x273d3c(_0x1aaba9){const _0xe15e7a=_0x5836cd;if(_0x1aaba9&&_0x230838(_0x1aaba9,_0xe15e7a(0x1a1))&&!_0x230838(_0x1aaba9,_0xe15e7a(0x1b1))){const _0x435247=_0x230838(_0x1aaba9,_0xe15e7a(0x1a1));if(!_0x2c5381(_0x435247))return{'node':_0x1aaba9,'type':_0xe15e7a(0x1a3),'id':_0x435247};}return null;}this[_0x5836cd(0x19b)]=_0x46010e[_0x5836cd(0x1d0)]((_0x9f821d,_0x5b2ce0)=>({'changes':_0x9f821d,'state':_0x5836cd(0x1aa),'index':_0x5b2ce0}));}}export function isValidReplyType(_0xdf695e){const _0x2c8f0e=_0x5e8312;return Object[_0x2c8f0e(0x1e0)](AI_REPLY_TYPES)[_0x2c8f0e(0x19e)](_0xdf695e);}function _0x57a5(){const _0x1a93b2=['isDone','convertMarkdownToHTML','removedNodeIds','271zxNvUH','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','type','text-delta','node','span','parsedContent','removed','index','documentContextContent','22208634owNdwy','set','locale','aiResponseApplier','interactionId','changes','modifiedNodeIds','parseAndNormalizeHTML','map','nextSibling','previousSibling','forEach','destroy','cloneNode','appendContent','change:content','sources','filter','10743064iIECIz','4966PKfaIN','replyContentUpdated','replyChangeGroupStateUpdated','45VwkMKR','length','values','reasoning','modification-delta','onContentChange','modified','changeGroups','color:\x20#808080;\x20font-style:\x20italic','31468xpEcuU','includes','conversation-title','done','data-id','4541719LLRcdv','context','web-search','2271535oCHPDm','content','parsedMergedContent','stopListening','newNodeIds','pending','areActionsDisabled','_getDifferentChangeGroups','setChangeGroupState','aiResponseParser','unshift','every','data-unstable','source','8277786tretct','new','editor','fire','state','push'];_0x57a5=function(){return _0x1a93b2;};return _0x57a5();}export function isIgnoredReplyType(_0x2f11aa){const _0x2f9ebc=_0x5e8312;return AI_REPLY_TYPES_IGNORED[_0x2f9ebc(0x19e)](_0x2f11aa);}export function isReplyTitleType(_0x55fc5c){return _0x55fc5c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x51b46c){const _0x11300f=_0x5e8312;return _0x11300f(0x1b2)===_0x51b46c;}
|