@ckeditor/ckeditor5-ai 47.0.0-alpha.3 → 47.0.0-alpha.4
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/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/form/aiformcontentarea.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/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/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.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/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +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/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/ui/aidisclaimerview.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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.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/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/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/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.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/aireviewmodeformamanager.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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5259(){const _0x27ba6b=['updateHistoryItemsWithCategories','_createErrorView','openChat','errorMessage','removeItem','ck-ai-chat-history','updateItemLoadingState','element','160NIMTpu','2097uLrcXw','change:hasItems','isEmptyViewVisible','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','3264226ZmHqst','addMany','sectionsView','isVisible','849276QlMmsr','ck-ai-chat-history__empty-message','fire','emptyView','delegate','_updateViewVisibility','_createEmptyStateView','setTemplate','_createSkeletonView','queryView','itemsViews','isLoading','search','_createSearchView','resizeButton','locale','add','ck-hidden','isMaximized','6XrXAey','skeletonView','ck-rounded-corners','updateItemTitle','div','445499LiIYVo','removeHistoryItem','hasItems','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history__content','ck-ai-chat-history__open-chat-button','bindTemplate','_createListItemViews','AI_CHAT_HISTORY_HEADING','15470FzIXyP','title','render','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','updateLoadingState','remove','ltr','change:errorMessage','490542lUzUjG','getItem','some','8530520gVVyLl','children','execute','push','value','isSearchViewVisible','aiHistory','fieldView','items','sections','ck-ai-chat-history__empty','change:isLoading','searchView','ck-ai-chat-error','indexOf','ck-ai-chat-error__dismiss-button','splice','ck-reset_all','clear','AI_CHAT_HISTORY_SEARCH_LABEL','set','errorView','updateTitle','3544kvnHLS','bind','extendTemplate','length','_refreshSearch'];_0x5259=function(){return _0x27ba6b;};return _0x5259();}const _0x2875be=_0x4d85;(function(_0x396556,_0x1311f6){const _0x51f62b=_0x4d85,_0x59edd7=_0x396556();while(!![]){try{const _0xf99a7b=parseInt(_0x51f62b(0x1bb))/0x1+-parseInt(_0x51f62b(0x1cd))/0x2+parseInt(_0x51f62b(0x1a3))/0x3+parseInt(_0x51f62b(0x1f4))/0x4*(parseInt(_0x51f62b(0x1c4))/0x5)+parseInt(_0x51f62b(0x1b6))/0x6*(parseInt(_0x51f62b(0x19f))/0x7)+-parseInt(_0x51f62b(0x1e7))/0x8*(-parseInt(_0x51f62b(0x1f5))/0x9)+-parseInt(_0x51f62b(0x1d0))/0xa;if(_0xf99a7b===_0x1311f6)break;else _0x59edd7['push'](_0x59edd7['shift']());}catch(_0xda40ff){_0x59edd7['push'](_0x59edd7['shift']());}}}(_0x5259,0x4efed));import{View as _0x5deb9c,SearchTextView as _0x217a0a,FormHeaderView as _0x40cc63,ButtonView as _0x4ee6ee}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x4a1992,IconCancel as _0x39f84b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x6b9bf2}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x4e30cc}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5a8131}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x31b200}from'../aichathistoryui.js';function _0x4d85(_0x3c0aff,_0x28fa96){const _0x525982=_0x5259();return _0x4d85=function(_0x4d85b1,_0x67e8d8){_0x4d85b1=_0x4d85b1-0x19c;let _0x390171=_0x525982[_0x4d85b1];return _0x390171;},_0x4d85(_0x3c0aff,_0x28fa96);}import{AISkeletonView as _0x1ba91e,SKELETON_DEFINITIONS as _0x102c5c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x64f4ac}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x38aaa6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5deb9c{[_0x2875be(0x1dc)];[_0x2875be(0x1e5)];[_0x2875be(0x1b7)];[_0x2875be(0x1a6)];[_0x2875be(0x1a1)];[_0x2875be(0x1b1)];constructor(_0x1554d4,_0x551ecd){const _0x3e6870=_0x2875be;super(_0x1554d4),this[_0x3e6870(0x1e4)](_0x3e6870(0x1bd),!0x1),this[_0x3e6870(0x1e4)](_0x3e6870(0x1ae),!0x0),this[_0x3e6870(0x1e4)](_0x3e6870(0x1ef),''),this[_0x3e6870(0x1e4)](_0x3e6870(0x1b5),!0x1),this[_0x3e6870(0x1e4)](_0x3e6870(0x1d5),!0x1),this[_0x3e6870(0x1e4)](_0x3e6870(0x19c),!0x1);const _0x3b7046=new _0x40cc63(_0x1554d4,{'label':_0x38aaa6(_0x1554d4,_0x3e6870(0x1c3)),'icon':_0x4a1992,'class':_0x3e6870(0x1be)});_0x551ecd&&(this[_0x3e6870(0x1b1)]=_0x64f4ac(_0x1554d4,this),_0x3b7046[_0x3e6870(0x1d1)][_0x3e6870(0x1b3)](this[_0x3e6870(0x1b1)])),this[_0x3e6870(0x1a1)]=new _0x6b9bf2(_0x1554d4,[]),this[_0x3e6870(0x1a1)][_0x3e6870(0x1a7)](..._0x31b200)['to'](this),this[_0x3e6870(0x1e5)]=this[_0x3e6870(0x1ed)](),this[_0x3e6870(0x1b7)]=this[_0x3e6870(0x1ab)](),this[_0x3e6870(0x1a6)]=this[_0x3e6870(0x1a9)](),this[_0x3e6870(0x1dc)]=this[_0x3e6870(0x1b0)](),this['on'](_0x3e6870(0x1db),()=>this[_0x3e6870(0x1a8)]()),this['on'](_0x3e6870(0x1f6),()=>this[_0x3e6870(0x1a8)]()),this['on'](_0x3e6870(0x1cc),()=>this[_0x3e6870(0x1a8)]()),this[_0x3e6870(0x1aa)]({'tag':_0x3e6870(0x1ba),'attributes':{'class':['ck',_0x3e6870(0x1e1),_0x3e6870(0x1f1),_0x3e6870(0x1b8)],'dir':_0x3e6870(0x1cb)},'children':[_0x3b7046,{'tag':_0x3e6870(0x1ba),'attributes':{'class':[_0x3e6870(0x1bf)]},'children':[this[_0x3e6870(0x1b7)],this[_0x3e6870(0x1e5)],this[_0x3e6870(0x1a6)],this[_0x3e6870(0x1dc)]]}]});}[_0x2875be(0x1a8)](){const _0x1304e3=_0x2875be;this[_0x1304e3(0x1d5)]=!this[_0x1304e3(0x1ae)]&&this[_0x1304e3(0x1bd)]&&!this[_0x1304e3(0x1ef)],this[_0x1304e3(0x19c)]=!this[_0x1304e3(0x1ae)]&&!this[_0x1304e3(0x1bd)]&&!this[_0x1304e3(0x1ef)];}[_0x2875be(0x1b0)](){const _0x4ad052=_0x2875be,_0x29aaa2=new _0x217a0a(this[_0x4ad052(0x1b2)],{'filteredView':this[_0x4ad052(0x1a1)],'queryView':{'label':_0x38aaa6(this[_0x4ad052(0x1b2)],_0x4ad052(0x1e3))},'infoView':{'text':{'notFound':{'primary':_0x2cc6b6=>_0x38aaa6(this[_0x4ad052(0x1b2)],_0x4ad052(0x1c8),_0x2cc6b6),'secondary':_0x38aaa6(this[_0x4ad052(0x1b2)],_0x4ad052(0x19e))}}}});return _0x29aaa2['on'](_0x4ad052(0x1c6),()=>{const _0x21a17d=_0x4ad052;this[_0x21a17d(0x1dc)][_0x21a17d(0x1d1)][_0x21a17d(0x1b3)](this[_0x21a17d(0x1e5)],0x1);}),_0x29aaa2[_0x4ad052(0x1e9)]({'attributes':{'class':[this[_0x4ad052(0x1c1)]['if'](_0x4ad052(0x1d5),_0x4ad052(0x1b4),_0x7dd2a3=>!_0x7dd2a3)]}}),_0x29aaa2;}[_0x2875be(0x1ab)](){const _0x30e3dc=_0x2875be,_0x4b86e9=new _0x1ba91e(this[_0x30e3dc(0x1b2)],_0x102c5c[_0x30e3dc(0x1d6)]);return _0x4b86e9[_0x30e3dc(0x1e9)]({'attributes':{'class':[this[_0x30e3dc(0x1c1)]['if'](_0x30e3dc(0x1ae),_0x30e3dc(0x1b4),_0x45173d=>!_0x45173d)]}}),_0x4b86e9;}[_0x2875be(0x1ed)](){const _0x525f50=_0x2875be,_0x99f44d=new _0x5deb9c(this[_0x525f50(0x1b2)]),_0x273f4a=new _0x4ee6ee(this[_0x525f50(0x1b2)]);return _0x273f4a[_0x525f50(0x1e4)]({'withText':!0x1,'icon':_0x39f84b,'class':_0x525f50(0x1df)}),_0x273f4a[_0x525f50(0x1e8)](_0x525f50(0x1a2))['to'](this,_0x525f50(0x1bd),_0x162fa8=>!!_0x162fa8),_0x273f4a['on'](_0x525f50(0x1d2),()=>{const _0x99b363=_0x525f50;this[_0x99b363(0x1ef)]='';}),_0x99f44d[_0x525f50(0x1aa)]({'tag':_0x525f50(0x1ba),'attributes':{'class':['ck',_0x525f50(0x1dd),this[_0x525f50(0x1c1)]['if'](_0x525f50(0x1ef),_0x525f50(0x1b4),_0x4be381=>!_0x4be381)]},'children':[{'tag':'p','children':[{'text':this[_0x525f50(0x1c1)]['to'](_0x525f50(0x1ef))}]},_0x273f4a]}),_0x99f44d;}[_0x2875be(0x1a9)](){const _0x5c60fa=_0x2875be,_0x26a5eb=new _0x4ee6ee(this[_0x5c60fa(0x1b2)]);_0x26a5eb[_0x5c60fa(0x1e4)]({'withText':!0x0,'label':_0x38aaa6(this[_0x5c60fa(0x1b2)],_0x5c60fa(0x19d)),'class':_0x5c60fa(0x1c0)}),_0x26a5eb['on'](_0x5c60fa(0x1d2),()=>{const _0x217be1=_0x5c60fa;this[_0x217be1(0x1a5)](_0x217be1(0x1ee));});const _0x4e8710=new _0x5deb9c(this[_0x5c60fa(0x1b2)]);return _0x4e8710[_0x5c60fa(0x1aa)]({'tag':_0x5c60fa(0x1ba),'attributes':{'class':[_0x5c60fa(0x1da),this[_0x5c60fa(0x1c1)]['if'](_0x5c60fa(0x19c),_0x5c60fa(0x1b4),_0x3696e=>!_0x3696e)]},'children':[{'tag':'p','attributes':{'class':[_0x5c60fa(0x1a4)]},'children':[_0x38aaa6(this[_0x5c60fa(0x1b2)],_0x5c60fa(0x1c7))]},_0x26a5eb]}),_0x4e8710;}[_0x2875be(0x1c2)](_0x4851e6,_0x1d0fd4){const _0x77f830=_0x2875be,_0x2e67d9=[];for(const _0xf0bc63 of _0x4851e6){const _0x465d55=new _0x5a8131(_0x1d0fd4,_0xf0bc63);_0x465d55[_0x77f830(0x1a7)](..._0x31b200)['to'](this),_0x2e67d9[_0x77f830(0x1d3)](_0x465d55);}return _0x2e67d9;}[_0x2875be(0x1ec)](_0x58a3c1){const _0x45cb5c=_0x2875be,_0x78b6d6=this[_0x45cb5c(0x1b2)]||'en',_0x1b9868=[];for(const _0x5e1ce3 of _0x58a3c1){const _0x1a14a6=this[_0x45cb5c(0x1c2)](_0x5e1ce3[_0x45cb5c(0x1d8)],_0x78b6d6);_0x1b9868[_0x45cb5c(0x1d3)](new _0x4e30cc(_0x78b6d6,{'title':_0x5e1ce3[_0x45cb5c(0x1c5)],'items':_0x1a14a6}));}this[_0x45cb5c(0x1a1)][_0x45cb5c(0x1d9)]=_0x1b9868,this[_0x45cb5c(0x1a1)][_0x45cb5c(0x1d8)][_0x45cb5c(0x1e2)](),this[_0x45cb5c(0x1a1)][_0x45cb5c(0x1d8)][_0x45cb5c(0x1a0)](_0x1b9868),this[_0x45cb5c(0x1bd)]=_0x58a3c1[_0x45cb5c(0x1cf)](_0x23b792=>_0x23b792[_0x45cb5c(0x1d8)][_0x45cb5c(0x1ea)]>0x0),this[_0x45cb5c(0x1eb)]();}[_0x2875be(0x1bc)](_0x1543fa){const _0x826a3f=_0x2875be;for(const _0x400191 of this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)]){const _0x132a48=_0x400191[_0x826a3f(0x1ce)](_0x1543fa);if(_0x132a48){if(_0x400191[_0x826a3f(0x1f0)](_0x132a48),0x0===_0x400191[_0x826a3f(0x1ad)][_0x826a3f(0x1ea)]){const _0x19c9f1=this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)][_0x826a3f(0x1de)](_0x400191);-0x1!==_0x19c9f1&&(this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)][_0x826a3f(0x1e0)](_0x19c9f1,0x1),this[_0x826a3f(0x1a1)][_0x826a3f(0x1d8)][_0x826a3f(0x1ca)](_0x400191));}this[_0x826a3f(0x1bd)]=this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)][_0x826a3f(0x1ea)]>0x0,this[_0x826a3f(0x1eb)]();break;}}}[_0x2875be(0x1b9)](_0x37b5a4,_0x2b000c){const _0x558e7a=_0x2875be;for(const _0x31fbba of this[_0x558e7a(0x1a1)][_0x558e7a(0x1d9)]){const _0x34b6ac=_0x31fbba[_0x558e7a(0x1ce)](_0x37b5a4);if(_0x34b6ac){_0x34b6ac[_0x558e7a(0x1e6)](_0x2b000c);break;}}}[_0x2875be(0x1f2)](_0x24f608,_0x254888,_0x3ec5a2){const _0x5ef038=_0x2875be;for(const _0x36b46e of this[_0x5ef038(0x1a1)][_0x5ef038(0x1d9)]){const _0x3a1b45=_0x36b46e[_0x5ef038(0x1ce)](_0x24f608);if(_0x3a1b45){_0x3a1b45[_0x5ef038(0x1c9)](_0x254888,_0x3ec5a2);break;}}}[_0x2875be(0x1eb)](){const _0x4dcd43=_0x2875be;if(this[_0x4dcd43(0x1bd)]){const _0x207c63=this[_0x4dcd43(0x1dc)][_0x4dcd43(0x1ac)][_0x4dcd43(0x1d7)]?.[_0x4dcd43(0x1f3)]?.[_0x4dcd43(0x1d4)]||'';this[_0x4dcd43(0x1dc)][_0x4dcd43(0x1af)](_0x207c63);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x22ae9b=_0x52ae;function _0x52ae(_0x3053a0,_0x14319e){const _0x490a8c=_0x490a();return _0x52ae=function(_0x52aeb6,_0x1f0222){_0x52aeb6=_0x52aeb6-0x19c;let _0x17297f=_0x490a8c[_0x52aeb6];return _0x17297f;},_0x52ae(_0x3053a0,_0x14319e);}(function(_0xef0fb0,_0x56cc97){const _0x47be18=_0x52ae,_0x3e7afc=_0xef0fb0();while(!![]){try{const _0x1745fc=-parseInt(_0x47be18(0x1c5))/0x1*(-parseInt(_0x47be18(0x1ef))/0x2)+parseInt(_0x47be18(0x1a1))/0x3+parseInt(_0x47be18(0x205))/0x4*(parseInt(_0x47be18(0x207))/0x5)+parseInt(_0x47be18(0x1ac))/0x6*(parseInt(_0x47be18(0x1bb))/0x7)+-parseInt(_0x47be18(0x1b2))/0x8+-parseInt(_0x47be18(0x1cc))/0x9+-parseInt(_0x47be18(0x202))/0xa;if(_0x1745fc===_0x56cc97)break;else _0x3e7afc['push'](_0x3e7afc['shift']());}catch(_0x360d3d){_0x3e7afc['push'](_0x3e7afc['shift']());}}}(_0x490a,0xa9710));import{createParser as _0x3a74f0}from'eventsource-parser';import{ContextPlugin as _0x1c84b9}from'ckeditor5/src/core.js';import{CKEditorError as _0x521f21}from'ckeditor5/src/utils.js';import{getTranslation as _0x2f4190}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x2156f8){const _0x10bfbf=_0x52ae;_0x2156f8[_0x10bfbf(0x1f1)]=_0x10bfbf(0x20c),_0x2156f8[_0x10bfbf(0x219)]=_0x10bfbf(0x1ec),_0x2156f8[_0x10bfbf(0x1d9)]=_0x10bfbf(0x215),_0x2156f8[_0x10bfbf(0x1e7)]=_0x10bfbf(0x212),_0x2156f8[_0x10bfbf(0x1c4)]=_0x10bfbf(0x1a4),_0x2156f8[_0x10bfbf(0x1f6)]=_0x10bfbf(0x206),_0x2156f8[_0x10bfbf(0x203)]=_0x10bfbf(0x1f7),_0x2156f8[_0x10bfbf(0x1e8)]=_0x10bfbf(0x210);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x1c84b9{[_0x22ae9b(0x1bf)];[_0x22ae9b(0x1bd)];[_0x22ae9b(0x1fa)];static get[_0x22ae9b(0x1cb)](){const _0x343741=_0x22ae9b;return[_0x343741(0x1a3)];}static get[_0x22ae9b(0x216)](){const _0x36ff28=_0x22ae9b;return _0x36ff28(0x217);}static get[_0x22ae9b(0x1a2)](){return!0x0;}static get[_0x22ae9b(0x1ea)](){return!0x0;}constructor(_0x51ae25){const _0x5e6c7e=_0x22ae9b;super(_0x51ae25),this[_0x5e6c7e(0x1f2)][_0x5e6c7e(0x20b)][_0x5e6c7e(0x1e9)](_0x5e6c7e(0x1c1),_0x5e6c7e(0x1f5)),this[_0x5e6c7e(0x1bf)]=this[_0x5e6c7e(0x1f2)][_0x5e6c7e(0x20b)][_0x5e6c7e(0x1ae)](_0x5e6c7e(0x1c1)),this[_0x5e6c7e(0x1bd)]=null,this[_0x5e6c7e(0x1fa)]=new TextDecoder();}[_0x22ae9b(0x201)](){const _0x1133f4=_0x22ae9b,_0x64220=this[_0x1133f4(0x1f2)][_0x1133f4(0x1c8)][_0x1133f4(0x1ae)](_0x1133f4(0x1a3));if(!_0x64220[_0x1133f4(0x1e3)])throw new _0x521f21(_0x1133f4(0x1bc),this);this[_0x1133f4(0x1bd)]=_0x64220[_0x1133f4(0x1e3)];}[_0x22ae9b(0x1f4)](_0x36d92c,_0x59f440){const _0x44929c=_0x22ae9b,_0x180238=this[_0x44929c(0x211)](_0x44929c(0x1a0),_0x44929c(0x1a8),{'id':_0x36d92c,'group':_0x59f440});return{'getConversation':async()=>(await _0x180238[_0x44929c(0x1ce)])[_0x44929c(0x1aa)](),'abortController':_0x180238[_0x44929c(0x1dd)]};}[_0x22ae9b(0x1e5)]({message:_0x56b8ba,conversationId:_0x367a49,parts:_0x202965,capabilities:_0x3df53a,model:_0x4c2e77,quickActionData:_0x3e9ad9}){const _0x1c6b97=_0x22ae9b,_0x2a5c44={..._0x3e9ad9&&{'quickActionData':_0x3e9ad9}},_0xec432f={'prompt':_0x56b8ba,'content':_0x202965,'model':_0x4c2e77,..._0x3df53a&&{'capabilities':_0x3df53a},...Object[_0x1c6b97(0x1ed)](_0x2a5c44)[_0x1c6b97(0x1cd)]>0x0&&{'attributes':_0x2a5c44}},_0x255524=this[_0x1c6b97(0x211)](_0x1c6b97(0x1fd)+_0x367a49+_0x1c6b97(0x20e),_0x1c6b97(0x1a8),_0xec432f);return{'getStream':async()=>{const _0x56d1ae=_0x1c6b97,_0x2399fd=(await _0x255524[_0x56d1ae(0x1ce)])[_0x56d1ae(0x1ba)];return this[_0x56d1ae(0x1d7)](_0x2399fd);},'abortController':_0x255524[_0x1c6b97(0x1dd)]};}[_0x22ae9b(0x204)]({content:_0x23fb4e,message:_0x5dab09,model:_0x2f81bc,outputFormat:_0x313279}){const _0x1ba10b=_0x22ae9b,_0x3c99ac={'content':[{'type':_0x1ba10b(0x1f8),'content':_0x23fb4e}],'prompt':_0x5dab09,'model':_0x2f81bc,'outputFormat':_0x313279},_0x18731d=this[_0x1ba10b(0x211)](_0x1ba10b(0x209),_0x1ba10b(0x1a8),_0x3c99ac);return{'getStream':async()=>{const _0x30aa67=_0x1ba10b,_0x126a71=(await _0x18731d[_0x30aa67(0x1ce)])[_0x30aa67(0x1ba)];return this[_0x30aa67(0x1d7)](_0x126a71);},'abortController':_0x18731d[_0x1ba10b(0x1dd)]};}[_0x22ae9b(0x1b0)]({actionName:_0x54f891,content:_0x3209d6,args:_0xdf409f}){const _0x42dcd8=_0x22ae9b,_0x4d6bf9={'content':[{'type':_0x42dcd8(0x1f8),'content':_0x3209d6}],'args':_0xdf409f},_0x4dfa93=this[_0x42dcd8(0x211)](_0x42dcd8(0x19f)+_0x54f891+_0x42dcd8(0x20f),_0x42dcd8(0x1a8),_0x4d6bf9);return{'getStream':async()=>{const _0x2f30ed=_0x42dcd8,_0x29b52f=(await _0x4dfa93[_0x2f30ed(0x1ce)])[_0x2f30ed(0x1ba)];return this[_0x2f30ed(0x1d7)](_0x29b52f);},'abortController':_0x4dfa93[_0x42dcd8(0x1dd)]};}[_0x22ae9b(0x1a5)](_0x2af670,_0x4f9ceb,_0x40bcb2){const _0x1e6f75=_0x22ae9b,_0x85a144=new FormData();_0x85a144[_0x1e6f75(0x1a9)](_0x1e6f75(0x1fb),_0x4f9ceb,_0x4f9ceb[_0x1e6f75(0x19e)]),_0x40bcb2&&_0x85a144[_0x1e6f75(0x1a9)](_0x1e6f75(0x1eb),JSON[_0x1e6f75(0x1ad)](_0x40bcb2));const _0x2d98c5=this[_0x1e6f75(0x211)](_0x1e6f75(0x1fd)+_0x2af670+_0x1e6f75(0x1c0),_0x1e6f75(0x1a8),_0x85a144);return{'getId':async()=>(await _0x2d98c5[_0x1e6f75(0x1ce)])[_0x1e6f75(0x1aa)](),'abortController':_0x2d98c5[_0x1e6f75(0x1dd)]};}[_0x22ae9b(0x1f0)](_0x51da2c,_0xc2bf2d){const _0x16ee51=_0x22ae9b,_0x41e481=this[_0x16ee51(0x211)](_0x16ee51(0x1fd)+_0x51da2c+_0x16ee51(0x1dc)+_0xc2bf2d,_0x16ee51(0x1b1));return{'getDocument':async()=>(await _0x41e481[_0x16ee51(0x1ce)])[_0x16ee51(0x1aa)](),'abortController':_0x41e481[_0x16ee51(0x1dd)]};}[_0x22ae9b(0x1e0)](_0x55edf1,_0x2dd231,_0x121dda){const _0x424f07=_0x22ae9b,_0x6d5f46={'content':_0x2dd231};_0x121dda&&(_0x6d5f46[_0x424f07(0x1eb)]=_0x121dda);const _0x3cc257=this[_0x424f07(0x211)](_0x424f07(0x1fd)+_0x55edf1+_0x424f07(0x1b3),_0x424f07(0x1a8),_0x6d5f46);return{'getId':async()=>(await _0x3cc257[_0x424f07(0x1ce)])[_0x424f07(0x1aa)](),'abortController':_0x3cc257[_0x424f07(0x1dd)]};}[_0x22ae9b(0x1c7)](_0x18c184,_0x536a21){const _0x340d60=_0x22ae9b,_0x29f1fd=new URLSearchParams();_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x1e4),_0x340d60(0x1e6)),_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x21c),_0x340d60(0x1d1)),_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x1e1),_0x18c184),_0x536a21&&_0x29f1fd[_0x340d60(0x1a9)](_0x340d60(0x1c3),_0x536a21);const _0x8ed961=this[_0x340d60(0x211)](_0x340d60(0x20d)+_0x29f1fd[_0x340d60(0x1fc)](),_0x340d60(0x1b1));return{'getConversations':async()=>{const _0x385669=_0x340d60,_0x575fd9=await _0x8ed961[_0x385669(0x1ce)];return(await _0x575fd9[_0x385669(0x1aa)]())[_0x385669(0x1e2)];},'abortController':_0x8ed961[_0x340d60(0x1dd)]};}[_0x22ae9b(0x1c2)](_0x228768){const _0x336d45=_0x22ae9b,_0x3d6eaa=this[_0x336d45(0x211)](_0x336d45(0x1fd)+_0x228768,_0x336d45(0x1de));return{'execute':async()=>{const _0xef370b=_0x336d45;await _0x3d6eaa[_0xef370b(0x1ce)];},'abortController':_0x3d6eaa[_0x336d45(0x1dd)]};}[_0x22ae9b(0x19c)](_0x4d755e,_0x36fa03){const _0x106225=_0x22ae9b,_0x56d201=this[_0x106225(0x211)](_0x106225(0x1fd)+_0x4d755e,_0x106225(0x1d4),_0x36fa03);return{'getResult':async()=>(await _0x56d201[_0x106225(0x1ce)],_0x36fa03),'abortController':_0x56d201[_0x106225(0x1dd)]};}[_0x22ae9b(0x1b5)](_0xcb40c){const _0x23ebcc=_0x22ae9b,_0x229aad=this[_0x23ebcc(0x211)](_0x23ebcc(0x1fd)+_0xcb40c,_0x23ebcc(0x1b1));return{'getConversation':async()=>(await _0x229aad[_0x23ebcc(0x1ce)])[_0x23ebcc(0x1aa)](),'abortController':_0x229aad[_0x23ebcc(0x1dd)]};}[_0x22ae9b(0x1d3)](_0x103d93){const _0x576a58=_0x22ae9b,_0x544aff=this[_0x576a58(0x211)](_0x576a58(0x1fd)+_0x103d93+_0x576a58(0x20e),_0x576a58(0x1b1));return{'getMessages':async()=>{const _0x279046=_0x576a58,_0x297330=await _0x544aff[_0x279046(0x1ce)];return(await _0x297330[_0x279046(0x1aa)]())[_0x279046(0x1e2)];},'abortController':_0x544aff[_0x576a58(0x1dd)]};}[_0x22ae9b(0x1f9)](_0x52d958,_0x308cf5,_0x30b49f){const _0x2aaa64=_0x22ae9b,_0x1a8633=this[_0x2aaa64(0x211)](_0x2aaa64(0x1fd)+_0x52d958+_0x2aaa64(0x1d5),_0x2aaa64(0x1a8),{'url':_0x308cf5,'attributes':_0x30b49f});return{'getId':async()=>(await _0x1a8633[_0x2aaa64(0x1ce)])[_0x2aaa64(0x1aa)](),'abortController':_0x1a8633[_0x2aaa64(0x1dd)]};}[_0x22ae9b(0x1fe)](){const _0xabf68d=_0x22ae9b,_0x4c61c3=this[_0xabf68d(0x211)](_0xabf68d(0x1b4),_0xabf68d(0x1b1));return{'list':async()=>{const _0x31faa7=_0xabf68d,_0x181c0e=await(await _0x4c61c3[_0x31faa7(0x1ce)])[_0x31faa7(0x1aa)](),_0x64cbe3=_0x181c0e[_0x31faa7(0x1e2)][_0x31faa7(0x19d)](_0xce8cff=>({..._0xce8cff,'description':_0x2f4190(this[_0x31faa7(0x1f2)][_0x31faa7(0x1b8)],_0x31faa7(0x1db)+_0xce8cff['id'][_0x31faa7(0x1a7)]())}));return{..._0x181c0e,'items':_0x64cbe3};},'abortController':_0x4c61c3[_0xabf68d(0x1dd)]};}[_0x22ae9b(0x200)](_0x105a2f,_0x34dccb){const _0x14b0e7=_0x22ae9b,_0x12cf53=this[_0x14b0e7(0x211)](_0x14b0e7(0x1fd)+_0x105a2f+_0x14b0e7(0x1cf)+_0x34dccb,_0x14b0e7(0x1de));return{'execute':async()=>{const _0x29671f=_0x14b0e7;await _0x12cf53[_0x29671f(0x1ce)];},'abortController':_0x12cf53[_0x14b0e7(0x1dd)]};}[_0x22ae9b(0x1a6)](_0x57d3bf,_0x5edc1f){const _0x5893e5=_0x22ae9b,_0x1e90ee=this[_0x5893e5(0x211)](_0x5893e5(0x1fd)+_0x57d3bf+_0x5893e5(0x1dc)+_0x5edc1f,_0x5893e5(0x1de));return{'execute':async()=>{const _0x1ea134=_0x5893e5;await _0x1e90ee[_0x1ea134(0x1ce)];},'abortController':_0x1e90ee[_0x5893e5(0x1dd)]};}[_0x22ae9b(0x1c6)](_0x44c605,_0x17e10c){const _0x4412c0=_0x22ae9b,_0x4e21ce=this[_0x4412c0(0x211)](_0x4412c0(0x1fd)+_0x44c605+_0x4412c0(0x208)+_0x17e10c,_0x4412c0(0x1de));return{'execute':async()=>{const _0x55220f=_0x4412c0;await _0x4e21ce[_0x55220f(0x1ce)];},'abortController':_0x4e21ce[_0x4412c0(0x1dd)]};}[_0x22ae9b(0x214)]({reviewName:_0x45d875,content:_0x5bcb08,args:_0x156ed7}){const _0x80dddd=_0x22ae9b,_0x453584=this[_0x80dddd(0x211)](_0x80dddd(0x21d)+_0x45d875+_0x80dddd(0x20f),_0x80dddd(0x1a8),{'content':[{'type':_0x80dddd(0x1f8),'content':_0x5bcb08}],'args':_0x156ed7});return{'getStream':async()=>{const _0x28c8c3=_0x80dddd,_0x355905=(await _0x453584[_0x28c8c3(0x1ce)])[_0x28c8c3(0x1ba)];return this[_0x28c8c3(0x1d7)](_0x355905);},'abortController':_0x453584[_0x80dddd(0x1dd)]};}[_0x22ae9b(0x1da)]({content:_0x51455b,prompt:_0x180709,model:_0x19a16d}){const _0x114b29=_0x22ae9b,_0x22a1cf=this[_0x114b29(0x211)](_0x114b29(0x1df),_0x114b29(0x1a8),{'content':[{'type':_0x114b29(0x1f8),'content':_0x51455b}],'prompt':_0x180709,'model':_0x19a16d});return{'getStream':async()=>{const _0x11cc71=_0x114b29,_0x549eec=(await _0x22a1cf[_0x11cc71(0x1ce)])[_0x11cc71(0x1ba)];return this[_0x11cc71(0x1d7)](_0x549eec);},'abortController':_0x22a1cf[_0x114b29(0x1dd)]};}[_0x22ae9b(0x211)](_0x468e2a,_0x54d148,_0x141d56){const _0x463b0e=_0x22ae9b,_0x517ec2=new AbortController(),_0x352b50=_0x141d56 instanceof FormData,_0x39bea4={'Authorization':_0x463b0e(0x1c9)+this[_0x463b0e(0x1bd)]?.[_0x463b0e(0x20a)]};_0x141d56&&!_0x352b50&&(_0x39bea4[_0x463b0e(0x1b6)]=_0x463b0e(0x1ab));const _0xba0c60={'method':_0x54d148,'headers':_0x39bea4,'signal':_0x517ec2[_0x463b0e(0x21a)]};return _0x141d56&&(_0xba0c60[_0x463b0e(0x1ba)]=_0x352b50?_0x141d56:JSON[_0x463b0e(0x1ad)](_0x141d56)),{'request':fetch(''+this[_0x463b0e(0x1bf)]+_0x468e2a,_0xba0c60)[_0x463b0e(0x1d0)](_0x4b574f=>{const _0x4cd870=_0x463b0e;this[_0x4cd870(0x1f3)](_0x4b574f);})[_0x463b0e(0x1be)](_0x133f96=>{const _0x1b98b1=_0x463b0e;if(!_0x133f96['ok'])throw new _0x521f21(_0x1b98b1(0x1ca),this);return _0x133f96;}),'abortController':_0x517ec2};}async*[_0x22ae9b(0x1d7)](_0x5187cc){const _0x161d4c=_0x22ae9b,_0xf3dab8=[],_0x20b85a=_0x5187cc[_0x161d4c(0x213)](),_0x43cdbc=_0x3a74f0({'onError':_0x3dac2c=>{const _0x485c11=_0x161d4c;this[_0x485c11(0x1f3)](_0x3dac2c);},'onEvent':_0x4b2d9b=>{const _0xb199ce=_0x161d4c;_0x4b2d9b[_0xb199ce(0x1af)]=JSON[_0xb199ce(0x1b9)](_0x4b2d9b[_0xb199ce(0x1af)]),_0xf3dab8[_0xb199ce(0x21b)](_0x4b2d9b);}});try{let _0x10ba75=!0x1;for(;!_0x10ba75;){const {done:_0x8d785f,value:_0x46769a}=await _0x20b85a[_0x161d4c(0x1d6)]();_0x8d785f&&(_0x10ba75=!0x0),_0x43cdbc[_0x161d4c(0x1d8)](this[_0x161d4c(0x1fa)][_0x161d4c(0x1ee)](_0x46769a,{'stream':!0x0})),yield*_0xf3dab8,_0xf3dab8[_0x161d4c(0x1cd)]=0x0;}}catch(_0x37e59a){this[_0x161d4c(0x1f3)](_0x37e59a);}finally{_0x20b85a[_0x161d4c(0x1ff)](),_0x43cdbc[_0x161d4c(0x1d2)]();}}[_0x22ae9b(0x1f3)](_0x9ecf83){const _0x22577a=_0x22ae9b;if(_0x9ecf83 instanceof _0x521f21)throw _0x9ecf83;if(_0x9ecf83 instanceof Error&&_0x22577a(0x218)===_0x9ecf83[_0x22577a(0x19e)])throw new _0x521f21(_0x22577a(0x1b7),this,{'originalError':_0x9ecf83});throw new _0x521f21(_0x22577a(0x1ca),this,{'originalError':_0x9ecf83});}}function _0x490a(){const _0xfdb87c=['https://ai.cke-cs.com/v1','MAKE_TONE_CASUAL','make-tone-formal','text','uploadUrl','_decoder','file','toString','/conversations/','getModels','releaseLock','deleteFile','init','16491770vIuMxK','MAKE_TONE_FORMAL','executeCustomAction','1461068CZqYBM','make-tone-casual','10bniLxN','/web-resources/','/actions/custom/calls','value','config','continue','/conversations?','/messages','/calls','translate','_sendApiRequest','make-longer','getReader','callSystemReview','improve-writing','pluginName','AIConnector','AbortError','FIX_GRAMMAR','signal','push','limit','/reviews/system/','updateConversation','map','name','/actions/system/','/conversations','1766232OkFTBh','isOfficialPlugin','CloudServices','make-shorter','uploadFile','deleteDocument','toUpperCase','POST','append','json','application/json','315990Oisivp','stringify','get','data','executeAction','GET','7958560DGUzZP','/documents','/models/1','fetchConversation','Content-Type','ai-request-aborted','locale','parse','body','112zGHItT','ai-missing-token','_token','then','_apiUrl','/files','ai.serviceUrl','deleteConversation','search','MAKE_SHORTER','1tVLYZT','deleteWebResource','fetchConversations','plugins','Bearer\x20','ai-request-failed','requires','1689057CxhJVK','length','request','/files/','catch','100','reset','fetchConversationMessages','PATCH','/web-resources','read','_getStreamReader','feed','IMPROVE_WRITING','callCustomReview','AI_MODEL_DESCRIPTION_','/documents/','abortController','DELETE','/reviews/custom/calls','uploadDocument','group','items','token','excludeEmpty','queryAssistant','true','MAKE_LONGER','TRANSLATE','define','isPremiumPlugin','attributes','fix-grammar','keys','decode','2727568iBxXIs','fetchDocument','CONTINUE','context','_handleError','startConversation'];_0x490a=function(){return _0xfdb87c;};return _0x490a();}
|
|
23
|
+
const _0x459fb7=_0x4319;(function(_0x50960b,_0x595c31){const _0x17f270=_0x4319,_0xbc525d=_0x50960b();while(!![]){try{const _0x17acdd=-parseInt(_0x17f270(0xd9))/0x1+parseInt(_0x17f270(0xe1))/0x2+parseInt(_0x17f270(0xdd))/0x3+parseInt(_0x17f270(0xa1))/0x4+parseInt(_0x17f270(0xaf))/0x5*(-parseInt(_0x17f270(0xcf))/0x6)+parseInt(_0x17f270(0xd5))/0x7*(-parseInt(_0x17f270(0xc6))/0x8)+parseInt(_0x17f270(0xe4))/0x9;if(_0x17acdd===_0x595c31)break;else _0xbc525d['push'](_0xbc525d['shift']());}catch(_0x1e32bd){_0xbc525d['push'](_0xbc525d['shift']());}}}(_0xbc65,0x1e881));function _0xbc65(){const _0x16e66e=['_apiUrl','https://ai.cke-cs.com/v1','_handleError','callCustomReview','excludeEmpty','read','DELETE','/files/','deleteConversation','text','_sendApiRequest','/web-resources/','translate','314188GTqywL','isPremiumPlugin','init','/actions/system/','GET','token','signal','/files','fix-grammar','deleteFile','/documents/','reset','value','_decoder','222820VLRzJR','/calls','then','releaseLock','/reviews/custom/calls','limit','fetchConversation','append','/conversations/','MAKE_TONE_FORMAL','MAKE_LONGER','data','executeCustomAction','getModels','attributes','deleteDocument','toUpperCase','make-longer','locale','context','application/json','name','/actions/custom/calls','144FUKvZv','search','ai-request-aborted','PATCH','AIConnector','/conversations?','FIX_GRAMMAR','/documents','fetchDocument','18tJfFTM','IMPROVE_WRITING','feed','100','length','config','34895pbZBLp','json','CloudServices','group','112943YSUgFl','POST','Bearer\x20','keys','411873WaUuXW','request','AI_MODEL_DESCRIPTION_','toString','101088CFbFxe','map','startConversation','1755360jMtoSg','getReader','updateConversation','_getStreamReader','uploadDocument','fetchConversationMessages','uploadUrl','true','catch','parse','/conversations','AbortError','continue','make-shorter','fetchConversations','TRANSLATE','make-tone-casual','requires','ai.serviceUrl','items','_token','stringify','executeAction','define','pluginName','MAKE_SHORTER','/messages','get','queryAssistant','abortController','decode','CONTINUE','Content-Type','improve-writing','file','make-tone-formal','/web-resources','ai-request-failed','/models/1','body','uploadFile','callSystemReview','push','deleteWebResource','isOfficialPlugin','plugins','MAKE_TONE_CASUAL','ai-missing-token','/reviews/system/'];_0xbc65=function(){return _0x16e66e;};return _0xbc65();}import{createParser as _0xe112dd}from'eventsource-parser';import{ContextPlugin as _0x592c6b}from'ckeditor5/src/core.js';import{CKEditorError as _0x1c55d3}from'ckeditor5/src/utils.js';import{getTranslation as _0x18b5d0}from'./utils/common-translations.js';function _0x4319(_0x188784,_0x447038){const _0xbc6538=_0xbc65();return _0x4319=function(_0x431927,_0x1cd409){_0x431927=_0x431927-0x85;let _0x17d720=_0xbc6538[_0x431927];return _0x17d720;},_0x4319(_0x188784,_0x447038);}export var AIActionsNames;!function(_0x3002af){const _0x46e64a=_0x4319;_0x3002af[_0x46e64a(0x103)]=_0x46e64a(0xf0),_0x3002af[_0x46e64a(0xcc)]=_0x46e64a(0xa9),_0x3002af[_0x46e64a(0xd0)]=_0x46e64a(0x105),_0x3002af[_0x46e64a(0xb9)]=_0x46e64a(0xc0),_0x3002af[_0x46e64a(0xfd)]=_0x46e64a(0xf1),_0x3002af[_0x46e64a(0x91)]=_0x46e64a(0xf4),_0x3002af[_0x46e64a(0xb8)]=_0x46e64a(0x86),_0x3002af[_0x46e64a(0xf3)]=_0x46e64a(0xa0);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x592c6b{[_0x459fb7(0x94)];[_0x459fb7(0xf8)];[_0x459fb7(0xae)];static get[_0x459fb7(0xf5)](){const _0x12a2de=_0x459fb7;return[_0x12a2de(0xd7)];}static get[_0x459fb7(0xfc)](){const _0x435efd=_0x459fb7;return _0x435efd(0xca);}static get[_0x459fb7(0x8f)](){return!0x0;}static get[_0x459fb7(0xa2)](){return!0x0;}constructor(_0x574ab3){const _0x192a39=_0x459fb7;super(_0x574ab3),this[_0x192a39(0xc2)][_0x192a39(0xd4)][_0x192a39(0xfb)](_0x192a39(0xf6),_0x192a39(0x95)),this[_0x192a39(0x94)]=this[_0x192a39(0xc2)][_0x192a39(0xd4)][_0x192a39(0xff)](_0x192a39(0xf6)),this[_0x192a39(0xf8)]=null,this[_0x192a39(0xae)]=new TextDecoder();}[_0x459fb7(0xa3)](){const _0x3865b0=_0x459fb7,_0x44eb74=this[_0x3865b0(0xc2)][_0x3865b0(0x90)][_0x3865b0(0xff)](_0x3865b0(0xd7));if(!_0x44eb74[_0x3865b0(0xa6)])throw new _0x1c55d3(_0x3865b0(0x92),this);this[_0x3865b0(0xf8)]=_0x44eb74[_0x3865b0(0xa6)];}[_0x459fb7(0xe3)](_0x3ac4f7,_0x423326){const _0x326772=_0x459fb7,_0xa0a6a2=this[_0x326772(0x9e)](_0x326772(0xee),_0x326772(0xda),{'id':_0x3ac4f7,'group':_0x423326});return{'getConversation':async()=>(await _0xa0a6a2[_0x326772(0xde)])[_0x326772(0xd6)](),'abortController':_0xa0a6a2[_0x326772(0x101)]};}[_0x459fb7(0x100)]({message:_0x53e9a2,conversationId:_0x3f40ec,parts:_0x4c6a77,capabilities:_0x1699d3,model:_0x2ed73f,quickActionData:_0x3f6a93}){const _0x302499=_0x459fb7,_0x59fd03={..._0x3f6a93&&{'quickActionData':_0x3f6a93}},_0x5afd03={'prompt':_0x53e9a2,'content':_0x4c6a77,'model':_0x2ed73f,..._0x1699d3&&{'capabilities':_0x1699d3},...Object[_0x302499(0xdc)](_0x59fd03)[_0x302499(0xd3)]>0x0&&{'attributes':_0x59fd03}},_0x2678b9=this[_0x302499(0x9e)](_0x302499(0xb7)+_0x3f40ec+_0x302499(0xfe),_0x302499(0xda),_0x5afd03);return{'getStream':async()=>{const _0x31d622=_0x302499,_0x3b256e=(await _0x2678b9[_0x31d622(0xde)])[_0x31d622(0x8a)];return this[_0x31d622(0xe7)](_0x3b256e);},'abortController':_0x2678b9[_0x302499(0x101)]};}[_0x459fb7(0xbb)]({content:_0x57b5f0,message:_0x41db99,model:_0x59dbbb,outputFormat:_0x5db397}){const _0x35e7f8=_0x459fb7,_0x44186e={'content':[{'type':_0x35e7f8(0x9d),'content':_0x57b5f0}],'prompt':_0x41db99,'model':_0x59dbbb,'outputFormat':_0x5db397},_0xb77fa3=this[_0x35e7f8(0x9e)](_0x35e7f8(0xc5),_0x35e7f8(0xda),_0x44186e);return{'getStream':async()=>{const _0x12f4f5=_0x35e7f8,_0x223aba=(await _0xb77fa3[_0x12f4f5(0xde)])[_0x12f4f5(0x8a)];return this[_0x12f4f5(0xe7)](_0x223aba);},'abortController':_0xb77fa3[_0x35e7f8(0x101)]};}[_0x459fb7(0xfa)]({actionName:_0x46c1c9,content:_0x357fa8,args:_0x9db0fe}){const _0x2b6c48=_0x459fb7,_0x3bb0eb={'content':[{'type':_0x2b6c48(0x9d),'content':_0x357fa8}],'args':_0x9db0fe},_0x2fb6c3=this[_0x2b6c48(0x9e)](_0x2b6c48(0xa4)+_0x46c1c9+_0x2b6c48(0xb0),_0x2b6c48(0xda),_0x3bb0eb);return{'getStream':async()=>{const _0x8736d9=_0x2b6c48,_0x26395f=(await _0x2fb6c3[_0x8736d9(0xde)])[_0x8736d9(0x8a)];return this[_0x8736d9(0xe7)](_0x26395f);},'abortController':_0x2fb6c3[_0x2b6c48(0x101)]};}[_0x459fb7(0x8b)](_0x2f12ad,_0x2ae09f,_0x375e01){const _0x59a687=_0x459fb7,_0x276bb0=new FormData();_0x276bb0[_0x59a687(0xb6)](_0x59a687(0x85),_0x2ae09f,_0x2ae09f[_0x59a687(0xc4)]),_0x375e01&&_0x276bb0[_0x59a687(0xb6)](_0x59a687(0xbd),JSON[_0x59a687(0xf9)](_0x375e01));const _0x7fc959=this[_0x59a687(0x9e)](_0x59a687(0xb7)+_0x2f12ad+_0x59a687(0xa8),_0x59a687(0xda),_0x276bb0);return{'getId':async()=>(await _0x7fc959[_0x59a687(0xde)])[_0x59a687(0xd6)](),'abortController':_0x7fc959[_0x59a687(0x101)]};}[_0x459fb7(0xce)](_0x38db85,_0x8ae230){const _0x23e3f3=_0x459fb7,_0x28792d=this[_0x23e3f3(0x9e)](_0x23e3f3(0xb7)+_0x38db85+_0x23e3f3(0xab)+_0x8ae230,_0x23e3f3(0xa5));return{'getDocument':async()=>(await _0x28792d[_0x23e3f3(0xde)])[_0x23e3f3(0xd6)](),'abortController':_0x28792d[_0x23e3f3(0x101)]};}[_0x459fb7(0xe8)](_0x5cc0a0,_0x503521,_0x5b84dd){const _0x403209=_0x459fb7,_0x5e6932={'content':_0x503521};_0x5b84dd&&(_0x5e6932[_0x403209(0xbd)]=_0x5b84dd);const _0x190ad7=this[_0x403209(0x9e)](_0x403209(0xb7)+_0x5cc0a0+_0x403209(0xcd),_0x403209(0xda),_0x5e6932);return{'getId':async()=>(await _0x190ad7[_0x403209(0xde)])[_0x403209(0xd6)](),'abortController':_0x190ad7[_0x403209(0x101)]};}[_0x459fb7(0xf2)](_0x8f9c10,_0x55f268){const _0x2f1d81=_0x459fb7,_0x1b9690=new URLSearchParams();_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0x98),_0x2f1d81(0xeb)),_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0xb4),_0x2f1d81(0xd2)),_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0xd8),_0x8f9c10),_0x55f268&&_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0xc7),_0x55f268);const _0xd78160=this[_0x2f1d81(0x9e)](_0x2f1d81(0xcb)+_0x1b9690[_0x2f1d81(0xe0)](),_0x2f1d81(0xa5));return{'getConversations':async()=>{const _0x1c0c30=_0x2f1d81,_0x170205=await _0xd78160[_0x1c0c30(0xde)];return(await _0x170205[_0x1c0c30(0xd6)]())[_0x1c0c30(0xf7)];},'abortController':_0xd78160[_0x2f1d81(0x101)]};}[_0x459fb7(0x9c)](_0x31ca34){const _0x257f32=_0x459fb7,_0xbe2ce7=this[_0x257f32(0x9e)](_0x257f32(0xb7)+_0x31ca34,_0x257f32(0x9a));return{'execute':async()=>{const _0x5ab867=_0x257f32;await _0xbe2ce7[_0x5ab867(0xde)];},'abortController':_0xbe2ce7[_0x257f32(0x101)]};}[_0x459fb7(0xe6)](_0x3009b0,_0x169690){const _0x10a994=_0x459fb7,_0xd85fd9=this[_0x10a994(0x9e)](_0x10a994(0xb7)+_0x3009b0,_0x10a994(0xc9),_0x169690);return{'getResult':async()=>(await _0xd85fd9[_0x10a994(0xde)],_0x169690),'abortController':_0xd85fd9[_0x10a994(0x101)]};}[_0x459fb7(0xb5)](_0x471d1e){const _0x3b1f35=_0x459fb7,_0x489b45=this[_0x3b1f35(0x9e)](_0x3b1f35(0xb7)+_0x471d1e,_0x3b1f35(0xa5));return{'getConversation':async()=>(await _0x489b45[_0x3b1f35(0xde)])[_0x3b1f35(0xd6)](),'abortController':_0x489b45[_0x3b1f35(0x101)]};}[_0x459fb7(0xe9)](_0x359426){const _0x2be1ca=_0x459fb7,_0x4ef1c9=this[_0x2be1ca(0x9e)](_0x2be1ca(0xb7)+_0x359426+_0x2be1ca(0xfe),_0x2be1ca(0xa5));return{'getMessages':async()=>{const _0x5f0fa0=_0x2be1ca,_0x33bf90=await _0x4ef1c9[_0x5f0fa0(0xde)];return(await _0x33bf90[_0x5f0fa0(0xd6)]())[_0x5f0fa0(0xf7)];},'abortController':_0x4ef1c9[_0x2be1ca(0x101)]};}[_0x459fb7(0xea)](_0x3f4c52,_0x33e928,_0x31f8cf){const _0x3db686=_0x459fb7,_0x164e97=this[_0x3db686(0x9e)](_0x3db686(0xb7)+_0x3f4c52+_0x3db686(0x87),_0x3db686(0xda),{'url':_0x33e928,'attributes':_0x31f8cf});return{'getId':async()=>(await _0x164e97[_0x3db686(0xde)])[_0x3db686(0xd6)](),'abortController':_0x164e97[_0x3db686(0x101)]};}[_0x459fb7(0xbc)](){const _0x83e14d=_0x459fb7,_0x329da7=this[_0x83e14d(0x9e)](_0x83e14d(0x89),_0x83e14d(0xa5));return{'list':async()=>{const _0x585ccc=_0x83e14d,_0x3fbbea=await(await _0x329da7[_0x585ccc(0xde)])[_0x585ccc(0xd6)](),_0x459de3=_0x3fbbea[_0x585ccc(0xf7)][_0x585ccc(0xe2)](_0x4e656a=>({..._0x4e656a,'description':_0x18b5d0(this[_0x585ccc(0xc2)][_0x585ccc(0xc1)],_0x585ccc(0xdf)+_0x4e656a['id'][_0x585ccc(0xbf)]())}));return{..._0x3fbbea,'items':_0x459de3};},'abortController':_0x329da7[_0x83e14d(0x101)]};}[_0x459fb7(0xaa)](_0x456bba,_0x204580){const _0x361fb2=_0x459fb7,_0xeb8da7=this[_0x361fb2(0x9e)](_0x361fb2(0xb7)+_0x456bba+_0x361fb2(0x9b)+_0x204580,_0x361fb2(0x9a));return{'execute':async()=>{const _0x5c1d57=_0x361fb2;await _0xeb8da7[_0x5c1d57(0xde)];},'abortController':_0xeb8da7[_0x361fb2(0x101)]};}[_0x459fb7(0xbe)](_0x4abea5,_0x44fbf0){const _0x987f3d=_0x459fb7,_0x4958e3=this[_0x987f3d(0x9e)](_0x987f3d(0xb7)+_0x4abea5+_0x987f3d(0xab)+_0x44fbf0,_0x987f3d(0x9a));return{'execute':async()=>{const _0x3ea898=_0x987f3d;await _0x4958e3[_0x3ea898(0xde)];},'abortController':_0x4958e3[_0x987f3d(0x101)]};}[_0x459fb7(0x8e)](_0x4eefaa,_0x1e2062){const _0x38c70e=_0x459fb7,_0x4bda04=this[_0x38c70e(0x9e)](_0x38c70e(0xb7)+_0x4eefaa+_0x38c70e(0x9f)+_0x1e2062,_0x38c70e(0x9a));return{'execute':async()=>{const _0x2f688b=_0x38c70e;await _0x4bda04[_0x2f688b(0xde)];},'abortController':_0x4bda04[_0x38c70e(0x101)]};}[_0x459fb7(0x8c)]({reviewName:_0x105c98,content:_0x5741a2,args:_0x1c7416}){const _0x52a84d=_0x459fb7,_0x330b1e=this[_0x52a84d(0x9e)](_0x52a84d(0x93)+_0x105c98+_0x52a84d(0xb0),_0x52a84d(0xda),{'content':[{'type':_0x52a84d(0x9d),'content':_0x5741a2}],'args':_0x1c7416});return{'getStream':async()=>{const _0x19a726=_0x52a84d,_0x4c8103=(await _0x330b1e[_0x19a726(0xde)])[_0x19a726(0x8a)];return this[_0x19a726(0xe7)](_0x4c8103);},'abortController':_0x330b1e[_0x52a84d(0x101)]};}[_0x459fb7(0x97)]({content:_0x1563f8,prompt:_0xa98af1,model:_0x4cf61f}){const _0x308104=_0x459fb7,_0x4cb633=this[_0x308104(0x9e)](_0x308104(0xb3),_0x308104(0xda),{'content':[{'type':_0x308104(0x9d),'content':_0x1563f8}],'prompt':_0xa98af1,'model':_0x4cf61f});return{'getStream':async()=>{const _0x55cf29=_0x308104,_0x47fba7=(await _0x4cb633[_0x55cf29(0xde)])[_0x55cf29(0x8a)];return this[_0x55cf29(0xe7)](_0x47fba7);},'abortController':_0x4cb633[_0x308104(0x101)]};}[_0x459fb7(0x9e)](_0x35d595,_0x560d08,_0x590055){const _0x2da7e3=_0x459fb7,_0x43676c=new AbortController(),_0x4cb035=_0x590055 instanceof FormData,_0x303677={'Authorization':_0x2da7e3(0xdb)+this[_0x2da7e3(0xf8)]?.[_0x2da7e3(0xad)]};_0x590055&&!_0x4cb035&&(_0x303677[_0x2da7e3(0x104)]=_0x2da7e3(0xc3));const _0x1fdfa7={'method':_0x560d08,'headers':_0x303677,'signal':_0x43676c[_0x2da7e3(0xa7)]};return _0x590055&&(_0x1fdfa7[_0x2da7e3(0x8a)]=_0x4cb035?_0x590055:JSON[_0x2da7e3(0xf9)](_0x590055)),{'request':fetch(''+this[_0x2da7e3(0x94)]+_0x35d595,_0x1fdfa7)[_0x2da7e3(0xec)](_0x1cf162=>{const _0x22d2c6=_0x2da7e3;this[_0x22d2c6(0x96)](_0x1cf162);})[_0x2da7e3(0xb1)](_0x50e331=>{const _0x3331b3=_0x2da7e3;if(!_0x50e331['ok'])throw new _0x1c55d3(_0x3331b3(0x88),this);return _0x50e331;}),'abortController':_0x43676c};}async*[_0x459fb7(0xe7)](_0x530885){const _0xdc66e5=_0x459fb7,_0x40252b=[],_0xdc4132=_0x530885[_0xdc66e5(0xe5)](),_0xa27458=_0xe112dd({'onError':_0x5f56ac=>{const _0x28946b=_0xdc66e5;this[_0x28946b(0x96)](_0x5f56ac);},'onEvent':_0x15d52d=>{const _0x33962d=_0xdc66e5;_0x15d52d[_0x33962d(0xba)]=JSON[_0x33962d(0xed)](_0x15d52d[_0x33962d(0xba)]),_0x40252b[_0x33962d(0x8d)](_0x15d52d);}});try{let _0x1fe797=!0x1;for(;!_0x1fe797;){const {done:_0x44a319,value:_0x1e4669}=await _0xdc4132[_0xdc66e5(0x99)]();_0x44a319&&(_0x1fe797=!0x0),_0xa27458[_0xdc66e5(0xd1)](this[_0xdc66e5(0xae)][_0xdc66e5(0x102)](_0x1e4669,{'stream':!0x0})),yield*_0x40252b,_0x40252b[_0xdc66e5(0xd3)]=0x0;}}catch(_0x34a9e4){this[_0xdc66e5(0x96)](_0x34a9e4);}finally{_0xdc4132[_0xdc66e5(0xb2)](),_0xa27458[_0xdc66e5(0xac)]();}}[_0x459fb7(0x96)](_0x5191ed){const _0x101b6a=_0x459fb7;if(_0x5191ed instanceof _0x1c55d3)throw _0x5191ed;if(_0x5191ed instanceof Error&&_0x101b6a(0xef)===_0x5191ed[_0x101b6a(0xc4)])throw new _0x1c55d3(_0x101b6a(0xc8),this,{'originalError':_0x5191ed});throw new _0x1c55d3(_0x101b6a(0x88),this,{'originalError':_0x5191ed});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17b165=_0x1441;(function(_0x14c02e,_0x4db28e){const _0x4dde60=_0x1441,_0xc27acc=_0x14c02e();while(!![]){try{const _0x2c57a7=-parseInt(_0x4dde60(0x16a))/0x1*(-parseInt(_0x4dde60(0x173))/0x2)+-parseInt(_0x4dde60(0x127))/0x3+parseInt(_0x4dde60(0x176))/0x4*(-parseInt(_0x4dde60(0x15a))/0x5)+parseInt(_0x4dde60(0x121))/0x6+parseInt(_0x4dde60(0x139))/0x7*(parseInt(_0x4dde60(0x126))/0x8)+parseInt(_0x4dde60(0x169))/0x9*(-parseInt(_0x4dde60(0x164))/0xa)+parseInt(_0x4dde60(0x132))/0xb;if(_0x2c57a7===_0x4db28e)break;else _0xc27acc['push'](_0xc27acc['shift']());}catch(_0x498025){_0xc27acc['push'](_0xc27acc['shift']());}}}(_0x5a70,0x36f2c));import{ViewDowncastWriter as _0x948f68}from'ckeditor5/src/engine.js';function _0x1441(_0x2641db,_0x4f9cf5){const _0x5a7063=_0x5a70();return _0x1441=function(_0x1441a7,_0xa3e42a){_0x1441a7=_0x1441a7-0x121;let _0x4ca14b=_0x5a7063[_0x1441a7];return _0x4ca14b;},_0x1441(_0x2641db,_0x4f9cf5);}import{ContextPlugin as _0x31261d,Editor as _0x1b61eb}from'ckeditor5/src/core.js';import{uid as _0xdd21e3}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3954c4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x17b165(0x12c);function _0x5a70(){const _0x7112a1=['_displayedFakeSelectionId','_sessionId','ck-fake-ai-selection','modelToViewWithIds','plugins','editingDowncast','substring','conversion','pluginName','hideFakeVisualSelection','indexOf','context','getRoot','fromCharCode','getLastMatchingPosition','getWalker','getChildren','getStart','data','ready','getMarkersGroup','isOfficialPlugin','processor','start','getSelectedContent',':end>','toView','sort','document','version','121285XrVeqY','removeAllRanges',':end></','getDocumentData','convertAiChatSelectionMarker','ck-ai-assistant-ui_theme','sessionId','get','_getMarkersInDocumentOrder','isBefore','10930TDvcUV','isContent','add','isAtEnd','toData','1251jAhkCj','25sfJNzb','schema','join','containerElement','ai-selection:','getSelectionText','model','getSelection','name','27914NfoykK','trim','showFakeVisualSelection','52mQTbKV','view','emptyElement','floor','afterInit','push','_displayedFakeSelectionLocked','addMarker','_nextDataId','_setDataIdsOnChildren','_integrateEditor','from','markerName','setAttribute','random',':start></','markers','has','end','editors','editing','208434GdFjmF','AIEditing','listenTo','data-id','createUIElement','2294384rFHkth','470025dEUAMx','dataDowncast','markerToHighlight','createRange','createRangeIn','ai-selection','removeMarker','change','RealTimeCollaborationClient','markerToElement','selection','1964039yfjDjo','$textProxy',':start>','length','for','element','isAfter','7PCVhZd','isOpening','isPremiumPlugin'];_0x5a70=function(){return _0x7112a1;};return _0x5a70();}export class AIEditing extends _0x31261d{[_0x17b165(0x13c)]=null;[_0x17b165(0x17c)]=!0x1;[_0x17b165(0x13d)];static get[_0x17b165(0x144)](){const _0x28bfa2=_0x17b165;return _0x28bfa2(0x122);}static get[_0x17b165(0x151)](){return!0x0;}static get[_0x17b165(0x13b)](){return!0x0;}get[_0x17b165(0x160)](){const _0x26d458=_0x17b165;if(!this[_0x26d458(0x13d)]){const _0x4f138f=_0x3954c4(this[_0x26d458(0x147)]),_0x2f7067=_0x4f138f[_0x26d458(0x140)][_0x26d458(0x187)](_0x26d458(0x12f))&&_0x4f138f[_0x26d458(0x140)][_0x26d458(0x161)](_0x26d458(0x12f))[_0x26d458(0x160)];this[_0x26d458(0x13d)]=_0x2f7067||_0xdd21e3();}return this[_0x26d458(0x13d)];}[_0x17b165(0x15d)](){const _0x58a0a1=_0x17b165,_0x2b6c1b=_0x3954c4(this[_0x58a0a1(0x147)]),_0x44abf0=_0x2b6c1b[_0x58a0a1(0x170)],_0x56bf7f=_0x2b6c1b[_0x58a0a1(0x14e)][_0x58a0a1(0x156)](_0x44abf0[_0x58a0a1(0x158)][_0x58a0a1(0x148)](),{'convertAiChatSelectionMarker':!0x0}),_0x9ef1b9=new _0x948f68(_0x2b6c1b[_0x58a0a1(0x18a)][_0x58a0a1(0x177)][_0x58a0a1(0x158)]);this[_0x58a0a1(0x17f)](_0x56bf7f,_0x9ef1b9);let _0x3a2318=_0x2b6c1b[_0x58a0a1(0x14e)][_0x58a0a1(0x152)][_0x58a0a1(0x168)](_0x56bf7f);const _0x272b0e=this[_0x58a0a1(0x162)](),_0x36c0c6=[];for(const _0x32b79c of _0x272b0e){const _0x4207d9='<'+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x185)+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x134),_0xdb91e8=_0x3a2318[_0x58a0a1(0x146)](_0x4207d9);_0x3a2318=_0x3a2318[_0x58a0a1(0x142)](0x0,_0xdb91e8)+_0x3a2318[_0x58a0a1(0x142)](_0xdb91e8+_0x4207d9[_0x58a0a1(0x135)]);const _0x41eafa='<'+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x15c)+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x155),_0x4e8104=_0x3a2318[_0x58a0a1(0x146)](_0x41eafa);_0x3a2318=_0x3a2318[_0x58a0a1(0x142)](0x0,_0x4e8104)+_0x3a2318[_0x58a0a1(0x142)](_0x4e8104+_0x41eafa[_0x58a0a1(0x135)]),_0x36c0c6[_0x58a0a1(0x17b)]({'markerName':_0x32b79c[_0x58a0a1(0x172)],'start':_0xdb91e8,'end':_0x4e8104,'htmlFragment':_0x3a2318[_0x58a0a1(0x142)](_0xdb91e8,_0x4e8104)});}return{'content':_0x3a2318,'version':_0x2b6c1b[_0x58a0a1(0x170)][_0x58a0a1(0x158)][_0x58a0a1(0x159)],'sessionId':this[_0x58a0a1(0x160)],'selections':_0x36c0c6};}async[_0x17b165(0x17a)](){const _0x137bc7=_0x17b165;this[_0x137bc7(0x147)]instanceof _0x1b61eb?this[_0x137bc7(0x180)](this[_0x137bc7(0x147)]):this[_0x137bc7(0x123)](this[_0x137bc7(0x147)][_0x137bc7(0x189)],_0x137bc7(0x166),(_0x131794,_0x141c5c)=>{const _0x22b7ef=_0x137bc7;_0x141c5c['on'](_0x22b7ef(0x14f),()=>{const _0x7c5bfe=_0x22b7ef;this[_0x7c5bfe(0x180)](_0x141c5c);});});}[_0x17b165(0x180)](_0x309eb6){const _0x1fc2a2=_0x17b165;_0x309eb6[_0x1fc2a2(0x143)][_0x1fc2a2(0x136)](_0x1fc2a2(0x141))[_0x1fc2a2(0x129)]({'model':_0x1fc2a2(0x12c),'view':{'classes':[_0x1fc2a2(0x13e),_0x1fc2a2(0x15f)],'priority':0xc}}),_0x309eb6[_0x1fc2a2(0x143)][_0x1fc2a2(0x136)](_0x1fc2a2(0x128))[_0x1fc2a2(0x130)]({'model':_0x1fc2a2(0x12c),'view':(_0x2c5c3d,{writer:_0x9487a9,options:_0x8ee690})=>_0x8ee690[_0x1fc2a2(0x15e)]?_0x9487a9[_0x1fc2a2(0x125)](_0x2c5c3d[_0x1fc2a2(0x182)]+':'+(_0x2c5c3d[_0x1fc2a2(0x13a)]?_0x1fc2a2(0x153):_0x1fc2a2(0x188))):null});}[_0x17b165(0x175)](_0x1de0d2,_0x42e17b,_0x13ac97=!0x1,_0x1e429e=!0x1){const _0x471c07=_0x17b165;if(this[_0x471c07(0x17c)]&&!_0x1e429e)return!0x1;this[_0x471c07(0x13c)]&&this[_0x471c07(0x145)](this[_0x471c07(0x13c)]),this[_0x471c07(0x13c)]=_0x42e17b,this[_0x471c07(0x17c)]=_0x13ac97;const _0x3ef8a9=_0x3954c4(this[_0x471c07(0x147)])[_0x471c07(0x170)];return _0x3ef8a9[_0x471c07(0x12e)](_0x2a0df3=>{const _0x505031=_0x471c07;let _0x4e8465=0x0;for(let _0x195de4 of _0x1de0d2){const _0x239535=_0x505031(0x16e)+_0x4e8465;if(_0x195de4[_0x505031(0x153)][_0x505031(0x167)]){const _0x22f78b=_0x195de4[_0x505031(0x153)][_0x505031(0x14a)](({item:_0x5d30a6})=>!_0x3ef8a9[_0x505031(0x16b)][_0x505031(0x165)](_0x5d30a6),{'boundaries':_0x195de4});_0x195de4=_0x2a0df3[_0x505031(0x12a)](_0x22f78b,_0x195de4[_0x505031(0x188)]);}_0x2a0df3[_0x505031(0x17d)](_0x239535,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x195de4}),_0x4e8465++;}}),window[_0x471c07(0x171)]()?.[_0x471c07(0x15b)](),!0x0;}[_0x17b165(0x145)](_0x5415f1){const _0x1170da=_0x17b165;if(this[_0x1170da(0x13c)]!=_0x5415f1)return!0x1;this[_0x1170da(0x13c)]=null,this[_0x1170da(0x17c)]=!0x1;const _0x3e4e61=_0x3954c4(this[_0x1170da(0x147)]),_0x6913ee=_0x3e4e61[_0x1170da(0x170)][_0x1170da(0x186)][_0x1170da(0x150)](_0x1170da(0x12c));return _0x3e4e61[_0x1170da(0x170)][_0x1170da(0x12e)](_0x3e154d=>{const _0x4f44bf=_0x1170da;for(const _0x73ca43 of _0x6913ee)_0x3e154d[_0x4f44bf(0x12d)](_0x73ca43);}),!0x0;}[_0x17b165(0x13f)](_0x1c5a31){const _0x538bfd=_0x17b165,_0x531e3e=_0x3954c4(this[_0x538bfd(0x147)]),_0x50cdac=_0x531e3e[_0x538bfd(0x14e)][_0x538bfd(0x156)](_0x1c5a31),_0x3e13ff=new _0x948f68(_0x531e3e[_0x538bfd(0x18a)][_0x538bfd(0x177)][_0x538bfd(0x158)]);return this[_0x538bfd(0x17f)](_0x50cdac,_0x3e13ff),_0x50cdac;}[_0x17b165(0x17f)](_0x3fc1fd,_0x54de74){const _0x390dd9=_0x17b165;let _0x5b321e=!0x1;const _0x4ebb7b=new Set();for(const _0x446457 of _0x3fc1fd[_0x390dd9(0x14c)]()){const _0x4e02f5=_0x446457['is'](_0x390dd9(0x178))||_0x446457['is'](_0x390dd9(0x16d));if(!_0x446457['is'](_0x390dd9(0x137)))continue;(this[_0x390dd9(0x17f)](_0x446457,_0x54de74)||_0x4e02f5)&&(_0x54de74[_0x390dd9(0x183)](_0x390dd9(0x124),this[_0x390dd9(0x17e)](_0x4ebb7b),_0x446457),_0x5b321e=!0x0);}return _0x5b321e;}[_0x17b165(0x17e)](_0x99d917){const _0x2c23b6=_0x17b165;let _0x448d16;do{_0x448d16='';for(let _0x2decff=0x0;_0x2decff<0x4;_0x2decff++)_0x448d16+=String[_0x2c23b6(0x149)](0x61+Math[_0x2c23b6(0x179)](0x1a*Math[_0x2c23b6(0x184)]()));}while(_0x99d917[_0x2c23b6(0x187)](_0x448d16));return _0x99d917[_0x2c23b6(0x166)](_0x448d16),_0x448d16;}[_0x17b165(0x16f)](){const _0x23bb50=_0x17b165,{model:_0x25e4b7}=_0x3954c4(this[_0x23bb50(0x147)]),_0x3a4443=_0x25e4b7[_0x23bb50(0x158)][_0x23bb50(0x131)],_0x3432cc=_0x25e4b7[_0x23bb50(0x154)](_0x3a4443),_0x41a1c8=[],_0xeea98c=_0x25e4b7[_0x23bb50(0x12b)](_0x3432cc)[_0x23bb50(0x14b)]();for(const {item:_0x2d4e85}of _0xeea98c)_0x2d4e85['is'](_0x23bb50(0x133))?_0x41a1c8[_0x23bb50(0x17b)](_0x2d4e85[_0x23bb50(0x14e)]):_0x2d4e85['is'](_0x23bb50(0x137))&&_0x41a1c8[_0x23bb50(0x135)]>0x0&&'\x20'!==_0x41a1c8[_0x41a1c8[_0x23bb50(0x135)]-0x1]&&_0x41a1c8[_0x23bb50(0x17b)]('\x20');return'\x22'+_0x41a1c8[_0x23bb50(0x16c)]('')[_0x23bb50(0x174)]()+'\x22';}[_0x17b165(0x162)](){const _0x2d30fc=_0x17b165,_0x428347=_0x3954c4(this[_0x2d30fc(0x147)])[_0x2d30fc(0x170)];return Array[_0x2d30fc(0x181)](_0x428347[_0x2d30fc(0x186)][_0x2d30fc(0x150)](_0x2d30fc(0x12c)))[_0x2d30fc(0x157)]((_0x78b10,_0x3de72c)=>_0x78b10[_0x2d30fc(0x14d)]()[_0x2d30fc(0x163)](_0x3de72c[_0x2d30fc(0x14d)]())?-0x1:_0x78b10[_0x2d30fc(0x14d)]()[_0x2d30fc(0x138)](_0x3de72c[_0x2d30fc(0x14d)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xbfbe9d=_0x3a0a;function _0x37a7(){const _0xabd63e=['6067716IbTMMh','setReasoning','fire','11VyTNMn','setWebSearch','5300700FYOiFA','reasoning','init','148458sbSjtb','capabilitiesUpdated','_isReasoningEnabled','5qVvCZN','toggleReasoning','3280887RWjHuX','toggleWebSearch','76874wecaCp','getCapabilitiesConfig','161OvqKyJ','16vnQbFq','webSearch','_isWebSearchEnabled','1499418qOiYCe','31ONagpb','3446396GGodau','isReasoningEnabled','isWebSearchEnabled','reset','getCapabilitiesRequestData'];_0x37a7=function(){return _0xabd63e;};return _0x37a7();}function _0x3a0a(_0xbf70fb,_0x3a9fb3){const _0x37a703=_0x37a7();return _0x3a0a=function(_0x3a0afa,_0x3e6fb7){_0x3a0afa=_0x3a0afa-0x1e6;let _0x169d1d=_0x37a703[_0x3a0afa];return _0x169d1d;},_0x3a0a(_0xbf70fb,_0x3a9fb3);}(function(_0x4f7450,_0x2daf04){const _0x47e016=_0x3a0a,_0x39c006=_0x4f7450();while(!![]){try{const _0x465559=parseInt(_0x47e016(0x1f4))/0x1*(parseInt(_0x47e016(0x1ed))/0x2)+parseInt(_0x47e016(0x1f3))/0x3+parseInt(_0x47e016(0x1f5))/0x4*(-parseInt(_0x47e016(0x1e9))/0x5)+parseInt(_0x47e016(0x1e6))/0x6*(parseInt(_0x47e016(0x1ef))/0x7)+-parseInt(_0x47e016(0x1f0))/0x8*(parseInt(_0x47e016(0x1eb))/0x9)+parseInt(_0x47e016(0x1ff))/0xa+-parseInt(_0x47e016(0x1fd))/0xb*(parseInt(_0x47e016(0x1fa))/0xc);if(_0x465559===_0x2daf04)break;else _0x39c006['push'](_0x39c006['shift']());}catch(_0x457e3b){_0x39c006['push'](_0x39c006['shift']());}}}(_0x37a7,0xa97a8));import{EmitterMixin as _0x2d1e68}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xbfbe9d(0x1e7)];export class AICapabilities extends _0x2d1e68(){[_0xbfbe9d(0x1f2)];[_0xbfbe9d(0x1e8)];constructor(){const _0xa001a=_0xbfbe9d;super(),this[_0xa001a(0x1f2)]=!0x1,this[_0xa001a(0x1e8)]=!0x1;}[_0xbfbe9d(0x201)](){const _0x3696c5=_0xbfbe9d;this[_0x3696c5(0x1f8)]();}[_0xbfbe9d(0x1f8)](){const _0xad1556=_0xbfbe9d;this[_0xad1556(0x1fe)](!0x1),this[_0xad1556(0x1fb)](!0x1);}[_0xbfbe9d(0x1ee)](){const _0x436642=_0xbfbe9d;return{'isWebSearchEnabled':this[_0x436642(0x1f2)],'isReasoningEnabled':this[_0x436642(0x1e8)]};}static[_0xbfbe9d(0x1f9)](_0x299d36){const _0x4f53a7=_0xbfbe9d,_0xae5a9a={};return _0x299d36&&_0x299d36[_0x4f53a7(0x1f7)]&&(_0xae5a9a[_0x4f53a7(0x1f1)]={}),_0x299d36&&_0x299d36[_0x4f53a7(0x1f6)]&&(_0xae5a9a[_0x4f53a7(0x200)]={}),_0xae5a9a;}[_0xbfbe9d(0x1ec)](){const _0x34062c=_0xbfbe9d;this[_0x34062c(0x1fe)](!this[_0x34062c(0x1f2)]);}[_0xbfbe9d(0x1ea)](){const _0x44aa05=_0xbfbe9d;this[_0x44aa05(0x1fb)](!this[_0x44aa05(0x1e8)]);}[_0xbfbe9d(0x1fe)](_0x31c7e6){const _0xfe5160=_0xbfbe9d;_0x31c7e6!==this[_0xfe5160(0x1f2)]&&(this[_0xfe5160(0x1f2)]=_0x31c7e6,this[_0xfe5160(0x1fc)](_0xfe5160(0x1e7),this[_0xfe5160(0x1ee)]()));}[_0xbfbe9d(0x1fb)](_0x3046b6){const _0x3ee333=_0xbfbe9d;_0x3046b6!==this[_0x3ee333(0x1e8)]&&(this[_0x3ee333(0x1e8)]=_0x3046b6,this[_0x3ee333(0x1fc)](_0x3ee333(0x1e7),this[_0x3ee333(0x1ee)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38e025=_0x16a8;(function(_0x2c1749,_0x36e9ac){const _0x218093=_0x16a8,_0x5bd117=_0x2c1749();while(!![]){try{const _0x20544e=-parseInt(_0x218093(0x1ad))/0x1*(parseInt(_0x218093(0x1c2))/0x2)+-parseInt(_0x218093(0x1a7))/0x3+parseInt(_0x218093(0x1ce))/0x4+parseInt(_0x218093(0x19d))/0x5*(parseInt(_0x218093(0x1a1))/0x6)+-parseInt(_0x218093(0x1d0))/0x7*(-parseInt(_0x218093(0x1d5))/0x8)+-parseInt(_0x218093(0x1bc))/0x9*(-parseInt(_0x218093(0x1c6))/0xa)+parseInt(_0x218093(0x1d3))/0xb;if(_0x20544e===_0x36e9ac)break;else _0x5bd117['push'](_0x5bd117['shift']());}catch(_0x3ca3d3){_0x5bd117['push'](_0x5bd117['shift']());}}}(_0x49ae,0x71d51));import{CKEditorError as _0xdb604a,EmitterMixin as _0x500471,logWarning as _0x29e94a,uid as _0x3b66af}from'ckeditor5/src/utils.js';import{AIReply as _0x7cae63,isIgnoredReplyType as _0x1a0b2f,isValidReplyType as _0x46ecbf,isReplyTitleType as _0x1f6546,isSourceType as _0x195fe0}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x38e025(0x1b8),_0x38e025(0x1c0),_0x38e025(0x1c1),_0x38e025(0x19c),_0x38e025(0x1ab),_0x38e025(0x1b4),_0x38e025(0x1b3),_0x38e025(0x1b9),_0x38e025(0x1ae),_0x38e025(0x1c4)];function _0x49ae(){const _0x787478=['abort','source','fire','abortController','2097672eSZjEC','connector','56AsZnOr','getStream','start','3588189MsWKfc','conversationTitle','751200sYGcMo','interactionFinished','15OWPHsA','currentReply','textDelta','content','170370boWvqm','stop','getDocumentContext','_finalizeInteraction','splice','currentRequest','2177697kQrfYs','editor','sources','find','interactionDestroyed','destroy','31oqYQVs','setConversationTitle','done','isStopped','push','event','replyContentUpdated','replyCreated','isDestroyed','appendContent','stopListening','interactionCreated','replyChangeGroupStateUpdated','data','delegate','24723sXoRTU','ai-chat-interaction-error','createReply','getReply','interactionStarted','interactionStopped','59750eSpQpG','ai-interaction-invalid-event-type','error','sendRequest','1570RoWMFS','forEach','length','replies'];_0x49ae=function(){return _0x787478;};return _0x49ae();}function _0x16a8(_0x1667c6,_0x1c06ba){const _0x49ae96=_0x49ae();return _0x16a8=function(_0x16a82b,_0x143561){_0x16a82b=_0x16a82b-0x19c;let _0x258216=_0x49ae96[_0x16a82b];return _0x258216;},_0x16a8(_0x1667c6,_0x1c06ba);}export class AIInteraction extends _0x500471(){['id'];[_0x38e025(0x1c9)]=[];[_0x38e025(0x19e)];[_0x38e025(0x1a6)];[_0x38e025(0x1cf)];[_0x38e025(0x1b0)]=!0x1;[_0x38e025(0x1b5)]=!0x1;[_0x38e025(0x1a8)];constructor({connector:_0x162513,editor:_0x59f934}){const _0x5be1d1=_0x38e025;super(),this['id']=_0x3b66af(),this[_0x5be1d1(0x1cf)]=_0x162513,this[_0x5be1d1(0x1b0)]=!0x0,this[_0x5be1d1(0x1a8)]=_0x59f934;}async[_0x38e025(0x1d2)](){const _0x10cde6=_0x38e025;let _0x443ae1;this[_0x10cde6(0x1b0)]=!0x1;try{this[_0x10cde6(0x1a6)]=await this[_0x10cde6(0x1c5)](),this[_0x10cde6(0x1cc)](_0x10cde6(0x1c0),this);const _0x3d2995=await this[_0x10cde6(0x1a6)][_0x10cde6(0x1d1)](),_0x4ac101=[];for await(const _0x5686e8 of _0x3d2995){if(this[_0x10cde6(0x1b0)])return;if(_0x10cde6(0x1c4)===_0x5686e8[_0x10cde6(0x1b2)])return void this[_0x10cde6(0x1cc)](_0x10cde6(0x1c4),{'error':new _0xdb604a(_0x10cde6(0x1bd),this)});_0x1f6546(_0x5686e8[_0x10cde6(0x1b2)])&&this[_0x10cde6(0x1ae)](_0x5686e8[_0x10cde6(0x1ba)][_0x10cde6(0x1d4)],!0x0),_0x195fe0(_0x5686e8[_0x10cde6(0x1b2)])?_0x4ac101[_0x10cde6(0x1b1)](_0x5686e8[_0x10cde6(0x1ba)][_0x10cde6(0x1cb)]):_0x46ecbf(_0x5686e8[_0x10cde6(0x1b2)])?(_0x5686e8[_0x10cde6(0x1b2)]!==_0x443ae1&&(this[_0x10cde6(0x19e)]&&this[_0x10cde6(0x19e)][_0x10cde6(0x1af)](),this[_0x10cde6(0x19e)]=this[_0x10cde6(0x1be)]({'type':_0x5686e8[_0x10cde6(0x1b2)],'interactionId':this['id']}),_0x4ac101[_0x10cde6(0x1c8)]>0x0&&(this[_0x10cde6(0x19e)][_0x10cde6(0x1a9)]=_0x4ac101[_0x10cde6(0x1a5)](0x0)),_0x443ae1=_0x5686e8[_0x10cde6(0x1b2)]),this[_0x10cde6(0x19e)][_0x10cde6(0x1b6)](_0x5686e8[_0x10cde6(0x1ba)][_0x10cde6(0x19f)])):_0x1a0b2f(_0x5686e8[_0x10cde6(0x1b2)])||_0x29e94a(_0x10cde6(0x1c3),{'chunk':_0x5686e8});}}finally{this[_0x10cde6(0x1b0)]||(this[_0x10cde6(0x1a4)](),this[_0x10cde6(0x1cc)](_0x10cde6(0x19c),this));}}[_0x38e025(0x1a2)](){const _0x34bfa7=_0x38e025;this[_0x34bfa7(0x1b0)]||(this[_0x34bfa7(0x1a4)](),this[_0x34bfa7(0x1cc)](_0x34bfa7(0x1c1),this));}[_0x38e025(0x1bf)](_0x1cb371){const _0x53d40e=_0x38e025;return this[_0x53d40e(0x1c9)][_0x53d40e(0x1aa)](_0x25b083=>_0x25b083['id']===_0x1cb371);}[_0x38e025(0x1ac)](){const _0x4f4652=_0x38e025;this[_0x4f4652(0x1b5)]||(this[_0x4f4652(0x1a2)](),this[_0x4f4652(0x1c9)][_0x4f4652(0x1c7)](_0x355771=>_0x355771[_0x4f4652(0x1ac)]()),this[_0x4f4652(0x1c9)]=[],this[_0x4f4652(0x1b5)]=!0x0,this[_0x4f4652(0x1cc)](_0x4f4652(0x1ab),this),this[_0x4f4652(0x1b7)]());}[_0x38e025(0x1be)](_0x251bfc){const _0x10ac31=_0x38e025,_0x2b4b50=new _0x7cae63({'editor':this[_0x10ac31(0x1a8)],'documentContextContent':this[_0x10ac31(0x1a3)]()?.[_0x10ac31(0x1a0)],..._0x251bfc});return this[_0x10ac31(0x1c9)][_0x10ac31(0x1b1)](_0x2b4b50),_0x2b4b50[_0x10ac31(0x1bb)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x10ac31(0x1cc)](_0x10ac31(0x1b4),_0x2b4b50),_0x2b4b50;}[_0x38e025(0x1ae)](_0x1afbc2,_0x3d708f=!0x1){const _0x1aff9f=_0x38e025;this[_0x1aff9f(0x1cc)](_0x1aff9f(0x1ae),_0x1afbc2,_0x3d708f);}[_0x38e025(0x1a4)](){const _0x46309f=_0x38e025;this[_0x46309f(0x1b0)]=!0x0,this[_0x46309f(0x1a6)]&&this[_0x46309f(0x1a6)][_0x46309f(0x1cd)][_0x46309f(0x1ca)](),this[_0x46309f(0x19e)]&&this[_0x46309f(0x19e)][_0x46309f(0x1af)](),this[_0x46309f(0x1a6)]=this[_0x46309f(0x19e)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x44df(){const _0x48e260=['cloneNode','fire','3279240wcqcoJ','_getDifferentChangeGroups','type','2148280keqEFx','updateChangeGroups','changes','destroy','setChangeGroupState','49xIznGF','source','nextSibling','new','replyChangeGroupStateUpdated','areActionsDisabled','5672nPxCRF','isDone','removed','context','onContentChange','conversation-title','aiResponseParser','62044ILVPng','sources','stopListening','2190zAicTB','filter','map','includes','color:\x20#808080;\x20font-style:\x20italic','unshift','newNodeIds','forEach','data-id','merge','state','push','length','data-unstable','15723fHvJaJ','modification-delta','change:content','index','modified','removedNodeIds','parsedMergedContent','replyContentUpdated','pending','convertMarkdownToHTML','parsedContent','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','1gXvZrl','editor','node','aiResponseApplier','160ujPyhV','set','modifiedNodeIds','changeGroups','every','values','appendContent','content','1478103QJxFTV','documentContextContent','222690YCCCZQ','done','26169WbNSuf','text-delta','interactionId','span','reasoning','previousSibling','parseAndNormalizeHTML'];_0x44df=function(){return _0x48e260;};return _0x44df();}const _0x107fad=_0x8927;(function(_0x281cba,_0x519d9f){const _0x5b8078=_0x8927,_0x4606d8=_0x281cba();while(!![]){try{const _0x394915=parseInt(_0x5b8078(0xf3))/0x1*(-parseInt(_0x5b8078(0x10f))/0x2)+-parseInt(_0x5b8078(0xff))/0x3+-parseInt(_0x5b8078(0x121))/0x4*(-parseInt(_0x5b8078(0xf7))/0x5)+parseInt(_0x5b8078(0x101))/0x6*(parseInt(_0x5b8078(0x114))/0x7)+-parseInt(_0x5b8078(0x11a))/0x8*(-parseInt(_0x5b8078(0x132))/0x9)+-parseInt(_0x5b8078(0x124))/0xa*(-parseInt(_0x5b8078(0x103))/0xb)+-parseInt(_0x5b8078(0x10c))/0xc;if(_0x394915===_0x519d9f)break;else _0x4606d8['push'](_0x4606d8['shift']());}catch(_0x11288d){_0x4606d8['push'](_0x4606d8['shift']());}}}(_0x44df,0xa4f56));function _0x8927(_0x3bf58c,_0x19ae34){const _0x44dfa5=_0x44df();return _0x8927=function(_0x8927d9,_0xcd4a7f){_0x8927d9=_0x8927d9-0xf0;let _0xa1953e=_0x44dfa5[_0x8927d9];return _0xa1953e;},_0x8927(_0x3bf58c,_0x19ae34);}import{ObservableMixin as _0x3b7deb,uid as _0x478ae7}from'ckeditor5/src/utils.js';import{Element as _0x1b8829,findAll as _0x1502ac,getAttribute as _0xd52968,getParents as _0x3384ce,Document as _0x9b950c,parse as _0x165059,Text as _0x312403}from'../utils/htmlparser.js';import{AIResponseParser as _0x12477c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x260e6f}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x107fad(0x133),_0x107fad(0x104)];export const AI_REPLY_TYPES_IGNORED=[_0x107fad(0x107)];export const AI_REPLY_TITLE_TYPE=_0x107fad(0x11f);export class AIReply extends _0x3b7deb(){['id'];[_0x107fad(0x105)];[_0x107fad(0x10e)];[_0x107fad(0x122)]=[];[_0x107fad(0xf1)]=new _0x9b950c([]);[_0x107fad(0x138)]=new _0x9b950c([]);[_0x107fad(0xfa)]=[];[_0x107fad(0x119)]=!0x1;[_0x107fad(0x100)];[_0x107fad(0x120)];[_0x107fad(0xf6)];[_0x107fad(0xf4)];constructor({type:_0x46ac4e,content:_0x2422cf='',isDone:_0x52d6ce=!0x1,interactionId:_0x43cded,areActionsDisabled:_0x3e4e7e,documentContextContent:_0x5d45d0,editor:_0x36b19e}){const _0x25ca6f=_0x107fad;super(),this['id']=_0x478ae7(),this[_0x25ca6f(0x105)]=_0x43cded,this[_0x25ca6f(0x10e)]=_0x46ac4e,this[_0x25ca6f(0x119)]=!!_0x3e4e7e,this[_0x25ca6f(0xf4)]=_0x36b19e,this[_0x25ca6f(0x120)]=new _0x12477c(),this[_0x25ca6f(0xf6)]=new _0x260e6f(),this[_0x25ca6f(0x100)]=_0x165059(_0x5d45d0||''),this[_0x25ca6f(0xf8)](_0x25ca6f(0x11b),_0x52d6ce),this['on'](_0x25ca6f(0x134),()=>{const _0x1218cf=_0x25ca6f;this[_0x1218cf(0x11e)]();}),this[_0x25ca6f(0xf8)](_0x25ca6f(0xfe),_0x2422cf);}[_0x107fad(0xfd)](_0x3e627a){const _0x80f1d3=_0x107fad;this[_0x80f1d3(0xf8)](_0x80f1d3(0xfe),this[_0x80f1d3(0xfe)]+_0x3e627a);}[_0x107fad(0x102)](){const _0x2ab65e=_0x107fad;this[_0x2ab65e(0x11b)]||(this[_0x2ab65e(0xf8)](_0x2ab65e(0x11b),!0x0),this[_0x2ab65e(0x11e)]());}[_0x107fad(0x112)](){const _0x970e9f=_0x107fad;this[_0x970e9f(0x123)]();}[_0x107fad(0x113)](_0x4d7cfd,_0x31f45a){const _0x323c91=_0x107fad;this[_0x323c91(0xfa)][_0x4d7cfd][_0x323c91(0x12e)]=_0x31f45a,this[_0x323c91(0x10b)](_0x323c91(0x118),{'reply':this,'index':_0x4d7cfd,'state':_0x31f45a});}[_0x107fad(0x11e)](){const _0x192b2f=_0x107fad;if(_0x192b2f(0x133)===this[_0x192b2f(0x10e)]){this[_0x192b2f(0xf1)]=this[_0x192b2f(0x120)][_0x192b2f(0x109)](this[_0x192b2f(0xfe)]);const _0x5e87cb=this[_0x192b2f(0xfa)];this[_0x192b2f(0x110)]();const _0x53298b=this[_0x192b2f(0x10d)](_0x5e87cb,this[_0x192b2f(0xfa)]);(_0x53298b[_0x192b2f(0x130)]||this[_0x192b2f(0x11b)])&&this[_0x192b2f(0x10b)](_0x192b2f(0x139),this,_0x53298b);}else this[_0x192b2f(0xf1)]=this[_0x192b2f(0x120)][_0x192b2f(0xf0)](this[_0x192b2f(0xfe)]),this[_0x192b2f(0x10b)](_0x192b2f(0x139),this);}[_0x107fad(0x10d)](_0x39857c,_0x20d9f7){const _0x419d6f=_0x107fad,_0x5d7266=[];for(const _0x3e9e04 of _0x20d9f7){const _0x53226c=_0x39857c[_0x3e9e04[_0x419d6f(0x135)]];_0x53226c?_0x53226c[_0x419d6f(0x111)][_0x419d6f(0x130)]!==_0x3e9e04[_0x419d6f(0x111)][_0x419d6f(0x130)]?_0x5d7266[_0x419d6f(0x12f)](_0x3e9e04):_0x53226c[_0x419d6f(0x111)][_0x419d6f(0x12b)]((_0x5241af,_0xfdcc22)=>{const _0x494f07=_0x419d6f,_0x47feda=_0x3e9e04[_0x494f07(0x111)][_0xfdcc22];_0x5241af['id']!==_0x47feda['id']&&_0x5d7266[_0x494f07(0x12f)](_0x3e9e04);}):_0x5d7266[_0x419d6f(0x12f)](_0x3e9e04);}return _0x5d7266;}[_0x107fad(0x110)](){const _0x3aa9ab=_0x107fad,_0x4315ba=new _0x1b8829('p',{},[new _0x1b8829(_0x3aa9ab(0x106),{'style':_0x3aa9ab(0x128)},[new _0x312403(_0x3aa9ab(0xf2))])]),_0x24bbc5=this[_0x3aa9ab(0xf6)][_0x3aa9ab(0x12d)](this[_0x3aa9ab(0xf1)],this[_0x3aa9ab(0x100)][_0x3aa9ab(0x10a)](!0x0),{'markUnstableElements':!this[_0x3aa9ab(0x11b)],'replaceRemovedWith':_0x4315ba,'cutAfterLastChange':!this[_0x3aa9ab(0x11b)]});if(!_0x24bbc5[_0x3aa9ab(0xf9)][_0x3aa9ab(0x130)]&&!this[_0x3aa9ab(0x11b)])return;this[_0x3aa9ab(0x138)]=_0x24bbc5[_0x3aa9ab(0xf1)];let _0x74eeb4=[];if(_0x1502ac(_0x3453af=>{const _0x1bbb67=_0x3aa9ab,_0x2ecf2f=_0xd52968(_0x3453af,_0x1bbb67(0x12c));if(!_0x2ecf2f||!_0x2f3b8f(_0x2ecf2f))return!0x1;const _0x38ccd0=[_0x3453af,..._0x3384ce(_0x3453af)]['at'](-0x2);if(_0x3453af!=_0x38ccd0){const _0x11636b=_0xd52968(_0x38ccd0,_0x1bbb67(0x12c));_0x2f3b8f(_0x11636b)||(_0x74eeb4[_0x1bbb67(0x12f)]({'node':_0x38ccd0,'id':_0x11636b,'type':_0x1bbb67(0x136)}),_0x24bbc5[_0x1bbb67(0xf9)][_0x1bbb67(0x12f)](_0x11636b));}else _0x24bbc5[_0x1bbb67(0xf9)][_0x1bbb67(0x127)](_0x2ecf2f)?_0x74eeb4[_0x1bbb67(0x12f)]({'node':_0x3453af,'type':_0x1bbb67(0x136),'id':_0x2ecf2f}):_0x24bbc5[_0x1bbb67(0x12a)][_0x1bbb67(0x127)](_0x2ecf2f)?_0x74eeb4[_0x1bbb67(0x12f)]({'node':_0x3453af,'type':_0x1bbb67(0x117),'id':_0x2ecf2f,'anchorId':_0xd52968(_0x3453af[_0x1bbb67(0x108)],_0x1bbb67(0x12c))}):_0x74eeb4[_0x1bbb67(0x12f)]({'node':_0x3453af,'type':_0x1bbb67(0x11c),'id':_0x2ecf2f});return!0x0;},this[_0x3aa9ab(0x138)]),_0x74eeb4=_0x74eeb4[_0x3aa9ab(0x125)](({node:_0x40a194})=>[..._0x3384ce(_0x40a194),_0x40a194][_0x3aa9ab(0xfb)](_0x521cf9=>!_0xd52968(_0x521cf9,_0x3aa9ab(0x131)))),0x0==_0x74eeb4[_0x3aa9ab(0x130)])return;const _0x5d5a58=[[_0x74eeb4[0x0]]];for(let _0x282fc1=0x1;_0x282fc1<_0x74eeb4[_0x3aa9ab(0x130)];_0x282fc1++){const _0x52e053=_0x5d5a58[_0x5d5a58[_0x3aa9ab(0x130)]-0x1],_0xfd264f=_0x52e053[_0x52e053[_0x3aa9ab(0x130)]-0x1];_0x74eeb4[_0x282fc1][_0x3aa9ab(0xf5)][_0x3aa9ab(0x108)]==_0xfd264f[_0x3aa9ab(0xf5)]&&_0x3aa9ab(0x136)!=_0x74eeb4[_0x282fc1][_0x3aa9ab(0x10e)]&&_0x3aa9ab(0x136)!=_0xfd264f[_0x3aa9ab(0x10e)]?_0x52e053[_0x3aa9ab(0x12f)](_0x74eeb4[_0x282fc1]):_0x5d5a58[_0x3aa9ab(0x12f)]([_0x74eeb4[_0x282fc1]]);}for(const _0x1df9ec of _0x5d5a58){const _0x197393=_0x1df9ec[0x0],_0x469237=_0x1df9ec[_0x1df9ec[_0x3aa9ab(0x130)]-0x1],_0x50cb67=_0x556244(_0x197393[_0x3aa9ab(0xf5)][_0x3aa9ab(0x108)]);_0x50cb67&&_0x1df9ec[_0x3aa9ab(0x129)](_0x50cb67);const _0x4a6ee7=_0x556244(_0x469237[_0x3aa9ab(0xf5)][_0x3aa9ab(0x116)]);_0x4a6ee7&&_0x1df9ec[_0x3aa9ab(0x12f)](_0x4a6ee7);}function _0x2f3b8f(_0x13fbf7){const _0x5abd54=_0x3aa9ab;return _0x24bbc5[_0x5abd54(0xf9)][_0x5abd54(0x127)](_0x13fbf7)||_0x24bbc5[_0x5abd54(0x12a)][_0x5abd54(0x127)](_0x13fbf7)||_0x24bbc5[_0x5abd54(0x137)][_0x5abd54(0x127)](_0x13fbf7);}function _0x556244(_0x1a3b4a){const _0x587578=_0x3aa9ab;if(_0x1a3b4a&&_0xd52968(_0x1a3b4a,_0x587578(0x12c))&&!_0xd52968(_0x1a3b4a,_0x587578(0x131))){const _0x3c405c=_0xd52968(_0x1a3b4a,_0x587578(0x12c));if(!_0x2f3b8f(_0x3c405c))return{'node':_0x1a3b4a,'type':_0x587578(0x11d),'id':_0x3c405c};}return null;}this[_0x3aa9ab(0xfa)]=_0x5d5a58[_0x3aa9ab(0x126)]((_0x5a3188,_0x5a6218)=>({'changes':_0x5a3188,'state':_0x3aa9ab(0x13a),'index':_0x5a6218}));}}export function isValidReplyType(_0x4d6a39){const _0x2b4f22=_0x107fad;return Object[_0x2b4f22(0xfc)](AI_REPLY_TYPES)[_0x2b4f22(0x127)](_0x4d6a39);}export function isIgnoredReplyType(_0x25d44f){const _0x378ac6=_0x107fad;return AI_REPLY_TYPES_IGNORED[_0x378ac6(0x127)](_0x25d44f);}export function isReplyTitleType(_0x3a91e1){return _0x3a91e1===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x186a6c){const _0x13ea35=_0x107fad;return _0x13ea35(0x115)===_0x186a6c;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x1d76dd(){[_0x28588a(0xb1)];[_0x28588a(0xce)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x28588a(0x92)]=new Set();constructor(_0x46e724){const _0x236e00=_0x28588a;super(),this[_0x236e00(0xb1)]=_0x46e724||_0x7ee83e;}[_0x28588a(0xbd)](_0x2d2281,_0x53f9b9,_0x2121c9){const _0x3f97a7=_0x28588a,_0x4aec8a=_0x57165f(_0x2d2281);if(0x0===_0x53f9b9[_0x3f97a7(0xc1)][_0x3f97a7(0xc0)]){const _0x104bf4=[];return _0x29ac94(_0x3f97a7(0xc8),_0x3f97a7(0xbf),_0x4aec8a)[_0x3f97a7(0xa4)](_0x2e8c0b=>{const _0x5c762b=_0x3f97a7,_0x3df82d=this[_0x5c762b(0xb1)]();_0x4dac25(_0x2e8c0b,_0x5c762b(0xc8),_0x3df82d),_0x104bf4[_0x5c762b(0x98)](_0x3df82d);}),this[_0x3f97a7(0xbe)](_0x4aec8a),{'parsedContent':_0x4aec8a,'newNodeIds':_0x104bf4,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2121c9&&_0x2121c9[_0x3f97a7(0xb2)]&&this[_0x3f97a7(0xb6)](_0x4aec8a),this[_0x3f97a7(0xce)][_0x3f97a7(0xd4)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0xc2)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0x9e)]=[],this[_0x3f97a7(0xce)][_0x3f97a7(0x93)]=null,this[_0x3f97a7(0x92)]=new Set(_0x29ac94(_0x3f97a7(0xc8),null,_0x53f9b9)[_0x3f97a7(0xd2)](_0x24c884=>_0x9e3671(_0x24c884,_0x3f97a7(0xc8)))[_0x3f97a7(0xd1)](_0x5072d7=>!!_0x5072d7));let _0xd6de27=-0x1,_0x28df9e=!0x1;const _0xf91dc=_0x4aec8a[_0x3f97a7(0xc1)],_0x77be56=Array[_0x3f97a7(0xc3)](_0xf91dc)[_0x3f97a7(0xd1)](_0x22c3d3=>!(0x3===_0x22c3d3[_0x3f97a7(0xc4)]&&''===_0x1724e5(_0x22c3d3)[_0x3f97a7(0xa7)]())),_0x334e9f=_0x77be56[_0x3f97a7(0xc0)];for(let _0x272fb5=0x0;_0x272fb5<_0x334e9f;_0x272fb5++){const _0x165c4e=_0x77be56[_0x272fb5],_0x27745d=_0x77be56[_0x272fb5+0x1];if(this[_0x3f97a7(0xc7)](_0x165c4e)){if(-0x1===_0xd6de27&&(_0xd6de27=_0x272fb5),this[_0x3f97a7(0x95)](_0x165c4e),!this[_0x3f97a7(0xc7)](_0x27745d)){const [_0x3181fe,_0x37b91b]=this[_0x3f97a7(0xc9)](_0x165c4e,_0x28df9e,_0x53f9b9);if(_0x3181fe){const _0x26ef76=Array[_0x3f97a7(0xc3)](_0x77be56)[_0x3f97a7(0xd3)](_0xd6de27,_0x272fb5+0x1);this[_0x3f97a7(0x8f)](_0x3181fe,_0x26ef76,_0x37b91b),_0xd6de27=-0x1;}}}else{if(this[_0x3f97a7(0xca)](_0x165c4e))_0x28df9e=!0x0;else{if(this[_0x3f97a7(0xcf)](_0x165c4e)){const _0x3c3751=_0x9e3671(_0x165c4e,_0x3f97a7(0xc8));if(_0x3c3751&&this[_0x3f97a7(0x92)][_0x3f97a7(0xa0)](_0x3c3751)){const _0x2df81e=_0x3e7470(_0x3f97a7(0xc8),_0x3c3751,_0x53f9b9);this[_0x3f97a7(0xa3)](_0x2df81e,_0x165c4e);}if(this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)][_0x3f97a7(0xcd)](_0x3c3751)){const _0x1a9768=this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)][_0x3f97a7(0xb7)](_0x3c3751);this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)][_0x3f97a7(0x91)](_0x1a9768,0x1);}}else{if(this[_0x3f97a7(0xad)](_0x165c4e)){const _0x4aa6e0=_0x9e3671(_0x165c4e,_0x3f97a7(0xc8));this[_0x3f97a7(0xce)][_0x3f97a7(0xc2)][_0x3f97a7(0xcd)](_0x4aa6e0)||this[_0x3f97a7(0xac)](_0x165c4e);}}}}}for(const _0x4a7dce of this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)]){const _0x4c10d4=_0x3e7470(_0x3f97a7(0xc8),_0x4a7dce,_0x53f9b9);if(_0x4c10d4){if(_0x2121c9&&_0x2121c9[_0x3f97a7(0xa8)]){this[_0x3f97a7(0xce)][_0x3f97a7(0x93)]=_0x4a7dce;const _0x4b3071=_0x2121c9[_0x3f97a7(0xa8)][_0x3f97a7(0xa6)](!0x0);_0x4dac25(_0x4b3071,_0x3f97a7(0xc8),_0x4a7dce),_0x4dac25(_0x4b3071,_0x3f97a7(0xba),_0x3f97a7(0x9b)),_0x6fa3e7(_0x4c10d4,_0x4b3071);}else _0x5e6b8f(_0x4c10d4);}}if(_0x29ac94(_0x3f97a7(0xb8),null,_0x53f9b9)[_0x3f97a7(0xa4)](_0x1d39bd=>{const _0x25edf1=_0x3f97a7,_0xe7bdd5=_0x9e3671(_0x1d39bd,_0x25edf1(0xb8)),_0xa34693=_0x3e7470(_0x25edf1(0xc8),_0xe7bdd5,_0x53f9b9);_0xa34693&&_0x3ae512(_0xa34693,_0x1d39bd);}),_0x29ac94(_0x3f97a7(0xc8),_0x3f97a7(0xbf),_0x53f9b9)[_0x3f97a7(0xa4)](_0x5a29b2=>{const _0x5b9a97=_0x3f97a7,_0x1ef2e2=this[_0x5b9a97(0xa5)](_0x5a29b2);_0x4dac25(_0x5a29b2,_0x5b9a97(0xc8),_0x1ef2e2),this[_0x5b9a97(0xce)][_0x5b9a97(0xd4)][_0x5b9a97(0x98)](_0x1ef2e2);}),this[_0x3f97a7(0xbe)](_0x53f9b9),_0x2121c9&&_0x2121c9[_0x3f97a7(0xb2)]&&this[_0x3f97a7(0xc5)](_0x53f9b9,_0x2121c9[_0x3f97a7(0xd0)]||0x0),_0x2121c9&&_0x2121c9[_0x3f97a7(0xab)]&&this[_0x3f97a7(0xce)][_0x3f97a7(0x93)]){let _0x27f9d0=_0x3e7470(_0x3f97a7(0xc8),this[_0x3f97a7(0xce)][_0x3f97a7(0x93)],_0x53f9b9);for(;_0x27f9d0;)_0x4acbe6(_0x27f9d0),_0x27f9d0=_0x27f9d0[_0x3f97a7(0xc6)];}return{'parsedContent':_0x53f9b9,'newNodeIds':this[_0x3f97a7(0xce)][_0x3f97a7(0xd4)],'modifiedNodeIds':this[_0x3f97a7(0xce)][_0x3f97a7(0xc2)],'removedNodeIds':this[_0x3f97a7(0xce)][_0x3f97a7(0xb5)]};}[_0x28588a(0x8f)](_0x48acbf,_0x1c2878,_0x11cf01){const _0x159aef=_0x28588a;for(const _0xeec9b4 of _0x1c2878){const _0x48a185=this[_0x159aef(0xa5)](_0xeec9b4);_0x4dac25(_0xeec9b4,_0x159aef(0xc8),_0x48a185),this[_0x159aef(0xce)][_0x159aef(0xd4)][_0x159aef(0x98)](_0x48a185),this[_0x159aef(0xce)][_0x159aef(0x93)]=_0x48a185;}const _0x3905f5=_0x159aef(0x9f)===_0x11cf01||_0x159aef(0xa9)===_0x11cf01?_0x1c2878[_0x159aef(0xb4)]():_0x1c2878;for(const _0x528b5b of _0x3905f5)_0x143ef(_0x48acbf,_0x528b5b,_0x11cf01);}[_0x28588a(0xa3)](_0x4649d8,_0x598c8d){const _0x4a0636=_0x28588a;if(!_0x4649d8)return;if(_0x55327c(_0x4649d8,_0x598c8d))return;const _0x3a1dae=this[_0x4a0636(0xa5)](_0x4649d8);_0x4dac25(_0x598c8d,_0x4a0636(0xc8),_0x3a1dae),this[_0x4a0636(0xce)][_0x4a0636(0xc2)][_0x4a0636(0x98)](_0x3a1dae),this[_0x4a0636(0xce)][_0x4a0636(0x93)]=_0x3a1dae,_0x6fa3e7(_0x4649d8,_0x598c8d[_0x4a0636(0xa6)](!0x0));}[_0x28588a(0xc9)](_0x164dd2,_0x3a522b,_0x52f91e){const _0x5491f9=_0x28588a,_0x2e3605=this[_0x5491f9(0x9c)](_0x164dd2,!0x1);if(_0x2e3605){const _0x4adca4=this[_0x5491f9(0xcc)](_0x2e3605),_0x20df14=_0x3e7470(_0x5491f9(0xc8),_0x4adca4,_0x52f91e);if(_0x20df14)return[_0x20df14,_0x5491f9(0xa9)];this[_0x5491f9(0xce)][_0x5491f9(0x9e)][_0x5491f9(0x98)](_0x4adca4);}const _0x4465f9=this[_0x5491f9(0xaf)](_0x164dd2,!0x1);if(_0x4465f9){const _0x35332c=this[_0x5491f9(0xcc)](_0x4465f9),_0xf18741=_0x3e7470(_0x5491f9(0xc8),_0x35332c,_0x52f91e);if(_0xf18741)return[_0xf18741,_0x5491f9(0x94)];this[_0x5491f9(0xce)][_0x5491f9(0x9e)][_0x5491f9(0x98)](_0x35332c);}return _0x3a522b?_0x164dd2[_0x5491f9(0x96)]?this[_0x5491f9(0x90)](_0x164dd2,_0x52f91e):[_0x52f91e[_0x5491f9(0xc1)][_0x52f91e[_0x5491f9(0xc1)][_0x5491f9(0xc0)]-0x1],_0x5491f9(0xa9)]:[_0x52f91e[_0x5491f9(0xc1)][0x0],_0x5491f9(0x94)];}[_0x28588a(0x90)](_0x1b113c,_0x8672ce){const _0x40d479=_0x28588a,_0x21010b=[],_0x3715f0=this[_0x40d479(0x9c)](_0x1b113c,!0x0);if(_0x3715f0){const _0x4e4885=this[_0x40d479(0xcc)](_0x3715f0),_0x233319=_0x3e7470(_0x40d479(0xc8),_0x4e4885,_0x8672ce);_0x233319&&_0x21010b[_0x40d479(0x98)]([_0x233319,_0x40d479(0xa9)]);}const _0x21e47a=this[_0x40d479(0xaf)](_0x1b113c,!0x0);if(_0x21e47a){const _0x88e861=this[_0x40d479(0xcc)](_0x21e47a),_0x33f746=_0x3e7470(_0x40d479(0xc8),_0x88e861,_0x8672ce);_0x33f746&&_0x21010b[_0x40d479(0x98)]([_0x33f746,_0x40d479(0x94)]);}if(_0x21010b[_0x40d479(0xc0)]>0x1)return _0x18aade(_0x21010b[0x0][0x0])<=_0x18aade(_0x21010b[0x1][0x0])?_0x21010b[0x0]:_0x21010b[0x1];return 0x1===_0x21010b[_0x40d479(0xc0)]?_0x21010b[0x0]:[_0x8672ce[_0x40d479(0x99)],_0x40d479(0xa9)];}[_0x28588a(0xaf)](_0x3324f4,_0x26ae31){const _0x95a80=_0x28588a;let _0x17f2c1=_0x3324f4[_0x95a80(0x96)],_0x2b43da=null,_0x17c620=!0x1;for(;_0x17f2c1;){if(_0x3ccb14(_0x17f2c1)){if(this[_0x95a80(0xad)](_0x17f2c1)&&(_0x2b43da=_0x17f2c1),this[_0x95a80(0xca)](_0x17f2c1)&&_0x26ae31&&!_0x17c620){_0x17c620=!0x0,_0x17f2c1=_0x17f2c1[_0x95a80(0x96)];continue;}break;}const _0x1f6eb8=_0x9e3671(_0x17f2c1,_0x95a80(0xc8));if(_0x1f6eb8&&_0x95a80(0xbf)!==_0x1f6eb8&&this[_0x95a80(0x92)][_0x95a80(0xa0)](_0x1f6eb8)){_0x2b43da=_0x17f2c1;break;}_0x17f2c1=_0x17f2c1[_0x95a80(0x96)];}return _0x2b43da;}[_0x28588a(0x9c)](_0xad522d,_0xa29a81){const _0x5bd88a=_0x28588a;let _0x2a9710=_0xad522d[_0x5bd88a(0xb9)],_0x3b6c53=null,_0x51f0cb=!0x1;for(;_0x2a9710;){if(_0x3ccb14(_0x2a9710)){if(this[_0x5bd88a(0xad)](_0x2a9710)&&(_0x3b6c53=_0x2a9710),this[_0x5bd88a(0xca)](_0x2a9710)&&_0xa29a81&&!_0x51f0cb){_0x51f0cb=!0x0,_0x2a9710=_0x2a9710[_0x5bd88a(0xb9)];continue;}break;}const _0x13a264=_0x9e3671(_0x2a9710,_0x5bd88a(0xc8));if(_0x13a264&&_0x5bd88a(0xbf)!==_0x13a264&&this[_0x5bd88a(0x92)][_0x5bd88a(0xa0)](_0x13a264)){_0x3b6c53=_0x2a9710;break;}_0x2a9710=_0x2a9710[_0x5bd88a(0xb9)];}return _0x3b6c53;}[_0x28588a(0x95)](_0x42fc1e){const _0xe9e481=_0x28588a;_0x4f36e4(_0x42fc1e)&&_0x29ac94(_0xe9e481(0xc8),null,_0x42fc1e)[_0xe9e481(0xa4)](_0x3e3199=>{const _0x51129d=_0xe9e481;if(this[_0x51129d(0xcf)](_0x3e3199)&&!this[_0x51129d(0xb3)](_0x3e3199)){const _0x1f5c72=_0x9e3671(_0x3e3199,_0x51129d(0xc8));_0x4dac25(_0x3e3199,_0x51129d(0xb8),_0x1f5c72),_0x4dac25(_0x3e3199,_0x51129d(0xc8),null);}});}[_0x28588a(0xcc)](_0x298adc){const _0x594ab8=_0x28588a;if(!_0x298adc)return null;if(_0x4f36e4(_0x298adc))return _0x9e3671(_0x298adc,_0x594ab8(0xc8));if(_0x3ccb14(_0x298adc)){const _0x4585e0=_0x1724e5(_0x298adc)[_0x594ab8(0xbb)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4585e0&&_0x4585e0[0x1])return _0x4585e0[0x1];}return null;}[_0x28588a(0xac)](_0x249fce){const _0x5ad325=_0x28588a;if(_0x3ccb14(_0x249fce)){const _0x237937=_0x1724e5(_0x249fce)[_0x5ad325(0xbb)](/removed[\s*-]data-id="([^"]+)"/);_0x237937&&_0x237937[0x1]&&this[_0x5ad325(0xce)][_0x5ad325(0xb5)][_0x5ad325(0x98)](_0x237937[0x1]);}}[_0x28588a(0xa5)](_0x63a4a2){const _0x2f2262=_0x28588a;return this[_0x2f2262(0xcf)](_0x63a4a2)?_0x9e3671(_0x63a4a2,_0x2f2262(0xc8)):this[_0x2f2262(0xb1)]();}[_0x28588a(0xbe)](_0x4c685f){const _0x28827d=_0x28588a;_0x5253fc(_0x4c685f)[_0x28827d(0xd1)](_0x152ba6=>this[_0x28827d(0xad)](_0x152ba6)||this[_0x28827d(0xca)](_0x152ba6))[_0x28827d(0xa4)](_0x4a3aaf=>{_0x5e6b8f(_0x4a3aaf);});}[_0x28588a(0xb6)](_0x2b338b){const _0x507e4e=_0x28588a,_0x4d601b=_0x2b338b[_0x507e4e(0xc1)],_0x4d1e7c=_0x4d601b[_0x4d601b[_0x507e4e(0xc0)]-0x1];_0x4d1e7c&&_0x4f36e4(_0x4d1e7c)&&_0x4dac25(_0x4d1e7c,_0x507e4e(0x9d),_0x507e4e(0x9b));}[_0x28588a(0xc5)](_0x313731,_0x8fa24f){const _0x4b0398=_0x28588a,_0x332f9e=_0x3e7470(_0x4b0398(0x9d),_0x4b0398(0x9b),_0x313731);if(!_0x332f9e)return;const _0x5e06dd=_0x4116c6(_0x332f9e)[_0x4b0398(0xd3)](0x0,-0x1),_0x5c1213=_0x5e06dd[_0x4b0398(0xc0)];let _0x19fa44=_0x332f9e;if(_0x5c1213>_0x8fa24f){let _0x64e635=_0x5c1213,_0x4625d0=null;for(;_0x64e635>_0x8fa24f&&_0x64e635>=0x0;)_0x64e635--,_0x4625d0=_0x5e06dd[_0x64e635];_0x4625d0&&(_0x19fa44=_0x4625d0,_0x4dac25(_0x332f9e,_0x4b0398(0x9d),null),_0x4dac25(_0x4625d0,_0x4b0398(0x9d),_0x4b0398(0x9b)));}else{if(_0x5c1213<_0x8fa24f){let _0x2f52fa=_0x5c1213,_0x486398=_0x332f9e;for(;_0x2f52fa<_0x8fa24f;){const _0x3c422a=_0x486398[_0x4b0398(0xc1)][_0x4b0398(0xd1)](_0x155e4a=>_0x4f36e4(_0x155e4a));if(0x0===_0x3c422a[_0x4b0398(0xc0)])break;_0x2f52fa++,_0x486398=_0x3c422a[_0x3c422a[_0x4b0398(0xc0)]-0x1];}_0x486398&&(_0x19fa44=_0x486398,_0x4dac25(_0x332f9e,_0x4b0398(0x9d),null),_0x4dac25(_0x486398,_0x4b0398(0x9d),_0x4b0398(0x9b)));}}let _0xec5c66=_0x19fa44;for(;_0xec5c66;){for(;_0xec5c66[_0x4b0398(0x96)];)_0xec5c66=_0xec5c66[_0x4b0398(0x96)],_0x4f36e4(_0xec5c66)&&_0x4dac25(_0xec5c66,_0x4b0398(0x9d),_0x4b0398(0x9b));_0xec5c66=_0xec5c66[_0x4b0398(0xc6)];}}[_0x28588a(0xc7)](_0x18bff6){const _0x430998=_0x28588a;return Boolean(_0x430998(0xbf)===_0x9e3671(_0x18bff6,_0x430998(0xc8)));}[_0x28588a(0xcf)](_0x59e7f6){const _0x387694=_0x28588a;return Boolean((_0x9e3671(_0x59e7f6,_0x387694(0xc8))||'')[_0x387694(0xc0)]>0x0&&_0x387694(0xbf)!==_0x9e3671(_0x59e7f6,_0x387694(0xc8)));}[_0x28588a(0xad)](_0x1c22b7){const _0x51bded=_0x28588a;return!!_0x1c22b7&&Boolean(_0x3ccb14(_0x1c22b7)&&_0x1724e5(_0x1c22b7)[_0x51bded(0xbb)](/removed[\s*-]data-id="[^"]+"/));}[_0x28588a(0xb3)](_0x4ba989){const _0xb00f16=_0x28588a;let _0xef49be=_0x4ba989[_0xb00f16(0xc6)];for(;_0xef49be;){if(_0x9e3671(_0xef49be,_0xb00f16(0xb8)))return!0x0;_0xef49be=_0xef49be[_0xb00f16(0xc6)];}return!0x1;}[_0x28588a(0xca)](_0x427a8b){const _0x283be2=_0x28588a;return Boolean(_0x3ccb14(_0x427a8b)&&_0x1724e5(_0x427a8b)[_0x283be2(0xbb)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x5564fc=_0x15c6;(function(_0x266696,_0x5dcea6){const _0x61e606=_0x15c6,_0x3c9df3=_0x266696();while(!![]){try{const _0x2ef0c1=parseInt(_0x61e606(0x98))/0x1*(-parseInt(_0x61e606(0x89))/0x2)+parseInt(_0x61e606(0x91))/0x3*(parseInt(_0x61e606(0x9b))/0x4)+parseInt(_0x61e606(0xa9))/0x5+parseInt(_0x61e606(0x87))/0x6*(parseInt(_0x61e606(0x8c))/0x7)+-parseInt(_0x61e606(0x93))/0x8*(-parseInt(_0x61e606(0xa5))/0x9)+-parseInt(_0x61e606(0xb2))/0xa*(-parseInt(_0x61e606(0x9f))/0xb)+-parseInt(_0x61e606(0x9c))/0xc;if(_0x2ef0c1===_0x5dcea6)break;else _0x3c9df3['push'](_0x3c9df3['shift']());}catch(_0x227042){_0x3c9df3['push'](_0x3c9df3['shift']());}}}(_0x1ade,0x2f4f0));import{ObservableMixin as _0x39e2df,uid as _0x3634ab}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x10bd60,findByAttribute as _0x4855b2,getAttribute as _0x5c2e3b,isComment as _0x114a30,isTag as _0x521f1b,insertElement as _0x360121,moveElement as _0x4660a0,removeElement as _0x2f76dd,replaceElement as _0x3a2056,serialize as _0x5133f3,setAttribute as _0x1c3b98,clone as _0x195dd7,findAllComments as _0x16e681,getParents as _0x15c503,getNodeNestingLevel as _0x16fa6c,areNodesSame as _0x5e1b73,removeElementsAfter as _0x5c78bd}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39e2df(){[_0x5564fc(0xa0)];[_0x5564fc(0x81)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5564fc(0xb6)]=new Set();constructor(_0x2b4b98){const _0x6284cf=_0x5564fc;super(),this[_0x6284cf(0xa0)]=_0x2b4b98||_0x3634ab;}[_0x5564fc(0x74)](_0x1aab40,_0x43b224,_0x4dc1f8){const _0x5ef6fb=_0x5564fc,_0x53f72e=_0x195dd7(_0x1aab40);if(0x0===_0x43b224[_0x5ef6fb(0xb7)][_0x5ef6fb(0x9a)]){const _0x36b563=[];return _0x10bd60(_0x5ef6fb(0x9e),_0x5ef6fb(0xbc),_0x53f72e)[_0x5ef6fb(0xba)](_0x25413c=>{const _0x93286e=_0x5ef6fb,_0x313610=this[_0x93286e(0xa0)]();_0x1c3b98(_0x25413c,_0x93286e(0x9e),_0x313610),_0x36b563[_0x93286e(0xb0)](_0x313610);}),this[_0x5ef6fb(0xb5)](_0x53f72e),{'parsedContent':_0x53f72e,'newNodeIds':_0x36b563,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0x84)]&&this[_0x5ef6fb(0x8a)](_0x53f72e),this[_0x5ef6fb(0x81)][_0x5ef6fb(0x8f)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xb9)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]=null,this[_0x5ef6fb(0xb6)]=new Set(_0x10bd60(_0x5ef6fb(0x9e),null,_0x43b224)[_0x5ef6fb(0xbb)](_0x534c06=>_0x5c2e3b(_0x534c06,_0x5ef6fb(0x9e)))[_0x5ef6fb(0xb3)](_0x1988a3=>!!_0x1988a3));let _0x11799b=-0x1,_0x26c8e7=!0x1;const _0x42b1c6=_0x53f72e[_0x5ef6fb(0xb7)],_0x211da2=Array[_0x5ef6fb(0xa4)](_0x42b1c6)[_0x5ef6fb(0xb3)](_0x4eabaf=>!(0x3===_0x4eabaf[_0x5ef6fb(0x7e)]&&''===_0x5133f3(_0x4eabaf)[_0x5ef6fb(0xa2)]())),_0x15e8b0=_0x211da2[_0x5ef6fb(0x9a)];for(let _0x35e3ac=0x0;_0x35e3ac<_0x15e8b0;_0x35e3ac++){const _0x4882a4=_0x211da2[_0x35e3ac],_0x14b2e7=_0x211da2[_0x35e3ac+0x1];if(this[_0x5ef6fb(0x78)](_0x4882a4)){if(-0x1===_0x11799b&&(_0x11799b=_0x35e3ac),this[_0x5ef6fb(0x76)](_0x4882a4),!this[_0x5ef6fb(0x78)](_0x14b2e7)){const [_0x233cfa,_0x58dd33]=this[_0x5ef6fb(0x77)](_0x4882a4,_0x26c8e7,_0x43b224);if(_0x233cfa){const _0x47d82b=Array[_0x5ef6fb(0xa4)](_0x211da2)[_0x5ef6fb(0x97)](_0x11799b,_0x35e3ac+0x1);this[_0x5ef6fb(0x7a)](_0x233cfa,_0x47d82b,_0x58dd33),_0x11799b=-0x1;}}}else{if(this[_0x5ef6fb(0x95)](_0x4882a4))_0x26c8e7=!0x0;else{if(this[_0x5ef6fb(0x85)](_0x4882a4)){const _0x4e9e70=_0x5c2e3b(_0x4882a4,_0x5ef6fb(0x9e));if(_0x4e9e70&&this[_0x5ef6fb(0xb6)][_0x5ef6fb(0x90)](_0x4e9e70)){const _0x16c564=_0x4855b2(_0x5ef6fb(0x9e),_0x4e9e70,_0x43b224);this[_0x5ef6fb(0x99)](_0x16c564,_0x4882a4);}if(this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0xa8)](_0x4e9e70)){const _0xcd440c=this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0x86)](_0x4e9e70);this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0xa7)](_0xcd440c,0x1);}}else{if(this[_0x5ef6fb(0x8d)](_0x4882a4)){const _0x242954=_0x5c2e3b(_0x4882a4,_0x5ef6fb(0x9e));this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)][_0x5ef6fb(0xa8)](_0x242954)||this[_0x5ef6fb(0x8b)](_0x4882a4);}}}}}for(const _0x4688a0 of this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]){const _0x2b60d5=_0x4855b2(_0x5ef6fb(0x9e),_0x4688a0,_0x43b224);if(_0x2b60d5){if(_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0xab)]){this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]=_0x4688a0;const _0x96f044=_0x4dc1f8[_0x5ef6fb(0xab)][_0x5ef6fb(0xa3)](!0x0);_0x1c3b98(_0x96f044,_0x5ef6fb(0x9e),_0x4688a0),_0x1c3b98(_0x96f044,_0x5ef6fb(0x7b),_0x5ef6fb(0x75)),_0x3a2056(_0x2b60d5,_0x96f044);}else _0x2f76dd(_0x2b60d5);}}if(_0x10bd60(_0x5ef6fb(0x88),null,_0x43b224)[_0x5ef6fb(0xba)](_0x24c353=>{const _0x3b334d=_0x5ef6fb,_0x4c0c18=_0x5c2e3b(_0x24c353,_0x3b334d(0x88)),_0x43c52b=_0x4855b2(_0x3b334d(0x9e),_0x4c0c18,_0x43b224);_0x43c52b&&_0x4660a0(_0x43c52b,_0x24c353);}),_0x10bd60(_0x5ef6fb(0x9e),_0x5ef6fb(0xbc),_0x43b224)[_0x5ef6fb(0xba)](_0x4659e0=>{const _0x5d009c=_0x5ef6fb,_0x32e042=this[_0x5d009c(0x80)](_0x4659e0);_0x1c3b98(_0x4659e0,_0x5d009c(0x9e),_0x32e042),this[_0x5d009c(0x81)][_0x5d009c(0x8f)][_0x5d009c(0xb0)](_0x32e042);}),this[_0x5ef6fb(0xb5)](_0x43b224),_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0x84)]&&this[_0x5ef6fb(0x8e)](_0x43b224,_0x4dc1f8[_0x5ef6fb(0xaa)]||0x0),_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0xa1)]&&this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]){let _0x41eafb=_0x4855b2(_0x5ef6fb(0x9e),this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)],_0x43b224);for(;_0x41eafb;)_0x5c78bd(_0x41eafb),_0x41eafb=_0x41eafb[_0x5ef6fb(0xaf)];}return{'parsedContent':_0x43b224,'newNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0x8f)],'modifiedNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)],'removedNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]};}[_0x5564fc(0x7a)](_0x40f91a,_0x5486ea,_0x12fa04){const _0x61fedb=_0x5564fc;for(const _0x1eceb5 of _0x5486ea){const _0x5c0be4=this[_0x61fedb(0x80)](_0x1eceb5);_0x1c3b98(_0x1eceb5,_0x61fedb(0x9e),_0x5c0be4),this[_0x61fedb(0x81)][_0x61fedb(0x8f)][_0x61fedb(0xb0)](_0x5c0be4),this[_0x61fedb(0x81)][_0x61fedb(0xad)]=_0x5c0be4;}const _0x480f01=_0x61fedb(0x94)===_0x12fa04||_0x61fedb(0x82)===_0x12fa04?_0x5486ea[_0x61fedb(0x79)]():_0x5486ea;for(const _0xda03b4 of _0x480f01)_0x360121(_0x40f91a,_0xda03b4,_0x12fa04);}[_0x5564fc(0x99)](_0x5840bb,_0x333819){const _0x15c742=_0x5564fc;if(!_0x5840bb)return;if(_0x5e1b73(_0x5840bb,_0x333819))return;const _0x2e7ec8=this[_0x15c742(0x80)](_0x5840bb);_0x1c3b98(_0x333819,_0x15c742(0x9e),_0x2e7ec8),this[_0x15c742(0x81)][_0x15c742(0xac)][_0x15c742(0xb0)](_0x2e7ec8),this[_0x15c742(0x81)][_0x15c742(0xad)]=_0x2e7ec8,_0x3a2056(_0x5840bb,_0x333819[_0x15c742(0xa3)](!0x0));}[_0x5564fc(0x77)](_0x18732b,_0x240da0,_0xbf21dc){const _0x4a4570=_0x5564fc,_0x5c28de=this[_0x4a4570(0xa6)](_0x18732b,!0x1);if(_0x5c28de){const _0x34148f=this[_0x4a4570(0x7f)](_0x5c28de),_0x5c4e25=_0x4855b2(_0x4a4570(0x9e),_0x34148f,_0xbf21dc);if(_0x5c4e25)return[_0x5c4e25,_0x4a4570(0x82)];this[_0x4a4570(0x81)][_0x4a4570(0xb9)][_0x4a4570(0xb0)](_0x34148f);}const _0x56c566=this[_0x4a4570(0x7c)](_0x18732b,!0x1);if(_0x56c566){const _0x5933f5=this[_0x4a4570(0x7f)](_0x56c566),_0x758a9f=_0x4855b2(_0x4a4570(0x9e),_0x5933f5,_0xbf21dc);if(_0x758a9f)return[_0x758a9f,_0x4a4570(0xb1)];this[_0x4a4570(0x81)][_0x4a4570(0xb9)][_0x4a4570(0xb0)](_0x5933f5);}return _0x240da0?_0x18732b[_0x4a4570(0xb8)]?this[_0x4a4570(0x83)](_0x18732b,_0xbf21dc):[_0xbf21dc[_0x4a4570(0xb7)][_0xbf21dc[_0x4a4570(0xb7)][_0x4a4570(0x9a)]-0x1],_0x4a4570(0x82)]:[_0xbf21dc[_0x4a4570(0xb7)][0x0],_0x4a4570(0xb1)];}[_0x5564fc(0x83)](_0x5e0cdf,_0x494937){const _0x1d2057=_0x5564fc,_0x41db61=[],_0x5b1e6c=this[_0x1d2057(0xa6)](_0x5e0cdf,!0x0);if(_0x5b1e6c){const _0x3901c0=this[_0x1d2057(0x7f)](_0x5b1e6c),_0x49a674=_0x4855b2(_0x1d2057(0x9e),_0x3901c0,_0x494937);_0x49a674&&_0x41db61[_0x1d2057(0xb0)]([_0x49a674,_0x1d2057(0x82)]);}const _0x27b41b=this[_0x1d2057(0x7c)](_0x5e0cdf,!0x0);if(_0x27b41b){const _0x36b946=this[_0x1d2057(0x7f)](_0x27b41b),_0x15cc97=_0x4855b2(_0x1d2057(0x9e),_0x36b946,_0x494937);_0x15cc97&&_0x41db61[_0x1d2057(0xb0)]([_0x15cc97,_0x1d2057(0xb1)]);}if(_0x41db61[_0x1d2057(0x9a)]>0x1)return _0x16fa6c(_0x41db61[0x0][0x0])<=_0x16fa6c(_0x41db61[0x1][0x0])?_0x41db61[0x0]:_0x41db61[0x1];return 0x1===_0x41db61[_0x1d2057(0x9a)]?_0x41db61[0x0]:[_0x494937[_0x1d2057(0xae)],_0x1d2057(0x82)];}[_0x5564fc(0x7c)](_0x95b77e,_0x35d1a7){const _0x2961c7=_0x5564fc;let _0x31d4c7=_0x95b77e[_0x2961c7(0xb8)],_0x2db1d2=null,_0x2e8fea=!0x1;for(;_0x31d4c7;){if(_0x114a30(_0x31d4c7)){if(this[_0x2961c7(0x8d)](_0x31d4c7)&&(_0x2db1d2=_0x31d4c7),this[_0x2961c7(0x95)](_0x31d4c7)&&_0x35d1a7&&!_0x2e8fea){_0x2e8fea=!0x0,_0x31d4c7=_0x31d4c7[_0x2961c7(0xb8)];continue;}break;}const _0x2902e6=_0x5c2e3b(_0x31d4c7,_0x2961c7(0x9e));if(_0x2902e6&&_0x2961c7(0xbc)!==_0x2902e6&&this[_0x2961c7(0xb6)][_0x2961c7(0x90)](_0x2902e6)){_0x2db1d2=_0x31d4c7;break;}_0x31d4c7=_0x31d4c7[_0x2961c7(0xb8)];}return _0x2db1d2;}[_0x5564fc(0xa6)](_0x443f67,_0xab1f69){const _0x285688=_0x5564fc;let _0x30222e=_0x443f67[_0x285688(0x9d)],_0x26d220=null,_0x2286a0=!0x1;for(;_0x30222e;){if(_0x114a30(_0x30222e)){if(this[_0x285688(0x8d)](_0x30222e)&&(_0x26d220=_0x30222e),this[_0x285688(0x95)](_0x30222e)&&_0xab1f69&&!_0x2286a0){_0x2286a0=!0x0,_0x30222e=_0x30222e[_0x285688(0x9d)];continue;}break;}const _0x270f27=_0x5c2e3b(_0x30222e,_0x285688(0x9e));if(_0x270f27&&_0x285688(0xbc)!==_0x270f27&&this[_0x285688(0xb6)][_0x285688(0x90)](_0x270f27)){_0x26d220=_0x30222e;break;}_0x30222e=_0x30222e[_0x285688(0x9d)];}return _0x26d220;}[_0x5564fc(0x76)](_0x3e3640){const _0x2ff21d=_0x5564fc;_0x521f1b(_0x3e3640)&&_0x10bd60(_0x2ff21d(0x9e),null,_0x3e3640)[_0x2ff21d(0xba)](_0x285c73=>{const _0x39e255=_0x2ff21d;if(this[_0x39e255(0x85)](_0x285c73)&&!this[_0x39e255(0x96)](_0x285c73)){const _0x9ad75=_0x5c2e3b(_0x285c73,_0x39e255(0x9e));_0x1c3b98(_0x285c73,_0x39e255(0x88),_0x9ad75),_0x1c3b98(_0x285c73,_0x39e255(0x9e),null);}});}[_0x5564fc(0x7f)](_0x1d100c){const _0x694ed1=_0x5564fc;if(!_0x1d100c)return null;if(_0x521f1b(_0x1d100c))return _0x5c2e3b(_0x1d100c,_0x694ed1(0x9e));if(_0x114a30(_0x1d100c)){const _0x261e95=_0x5133f3(_0x1d100c)[_0x694ed1(0xb4)](/removed[\s*-]data-id="([^"]+)"/);if(_0x261e95&&_0x261e95[0x1])return _0x261e95[0x1];}return null;}[_0x5564fc(0x8b)](_0x5192cc){const _0x16a7c3=_0x5564fc;if(_0x114a30(_0x5192cc)){const _0x1e99c0=_0x5133f3(_0x5192cc)[_0x16a7c3(0xb4)](/removed[\s*-]data-id="([^"]+)"/);_0x1e99c0&&_0x1e99c0[0x1]&&this[_0x16a7c3(0x81)][_0x16a7c3(0x7d)][_0x16a7c3(0xb0)](_0x1e99c0[0x1]);}}[_0x5564fc(0x80)](_0x3c9253){const _0xff35c9=_0x5564fc;return this[_0xff35c9(0x85)](_0x3c9253)?_0x5c2e3b(_0x3c9253,_0xff35c9(0x9e)):this[_0xff35c9(0xa0)]();}[_0x5564fc(0xb5)](_0x464d4d){const _0x512a0e=_0x5564fc;_0x16e681(_0x464d4d)[_0x512a0e(0xb3)](_0x5653b7=>this[_0x512a0e(0x8d)](_0x5653b7)||this[_0x512a0e(0x95)](_0x5653b7))[_0x512a0e(0xba)](_0x39f402=>{_0x2f76dd(_0x39f402);});}[_0x5564fc(0x8a)](_0x531b6f){const _0x16357d=_0x5564fc,_0x72205=_0x531b6f[_0x16357d(0xb7)],_0x20eb51=_0x72205[_0x72205[_0x16357d(0x9a)]-0x1];_0x20eb51&&_0x521f1b(_0x20eb51)&&_0x1c3b98(_0x20eb51,_0x16357d(0x92),_0x16357d(0x75));}[_0x5564fc(0x8e)](_0x4ea710,_0x593267){const _0x5e1d9a=_0x5564fc,_0x467fec=_0x4855b2(_0x5e1d9a(0x92),_0x5e1d9a(0x75),_0x4ea710);if(!_0x467fec)return;const _0x99752e=_0x15c503(_0x467fec)[_0x5e1d9a(0x97)](0x0,-0x1),_0x50ca69=_0x99752e[_0x5e1d9a(0x9a)];let _0x2087a8=_0x467fec;if(_0x50ca69>_0x593267){let _0x464f39=_0x50ca69,_0x205a8d=null;for(;_0x464f39>_0x593267&&_0x464f39>=0x0;)_0x464f39--,_0x205a8d=_0x99752e[_0x464f39];_0x205a8d&&(_0x2087a8=_0x205a8d,_0x1c3b98(_0x467fec,_0x5e1d9a(0x92),null),_0x1c3b98(_0x205a8d,_0x5e1d9a(0x92),_0x5e1d9a(0x75)));}else{if(_0x50ca69<_0x593267){let _0x4dfb04=_0x50ca69,_0x90a9a3=_0x467fec;for(;_0x4dfb04<_0x593267;){const _0x1f8424=_0x90a9a3[_0x5e1d9a(0xb7)][_0x5e1d9a(0xb3)](_0x4880ac=>_0x521f1b(_0x4880ac));if(0x0===_0x1f8424[_0x5e1d9a(0x9a)])break;_0x4dfb04++,_0x90a9a3=_0x1f8424[_0x1f8424[_0x5e1d9a(0x9a)]-0x1];}_0x90a9a3&&(_0x2087a8=_0x90a9a3,_0x1c3b98(_0x467fec,_0x5e1d9a(0x92),null),_0x1c3b98(_0x90a9a3,_0x5e1d9a(0x92),_0x5e1d9a(0x75)));}}let _0x166748=_0x2087a8;for(;_0x166748;){for(;_0x166748[_0x5e1d9a(0xb8)];)_0x166748=_0x166748[_0x5e1d9a(0xb8)],_0x521f1b(_0x166748)&&_0x1c3b98(_0x166748,_0x5e1d9a(0x92),_0x5e1d9a(0x75));_0x166748=_0x166748[_0x5e1d9a(0xaf)];}}[_0x5564fc(0x78)](_0x1cac7e){const _0x39f7c1=_0x5564fc;return Boolean(_0x39f7c1(0xbc)===_0x5c2e3b(_0x1cac7e,_0x39f7c1(0x9e)));}[_0x5564fc(0x85)](_0x197469){const _0x5a2bb2=_0x5564fc;return Boolean((_0x5c2e3b(_0x197469,_0x5a2bb2(0x9e))||'')[_0x5a2bb2(0x9a)]>0x0&&_0x5a2bb2(0xbc)!==_0x5c2e3b(_0x197469,_0x5a2bb2(0x9e)));}[_0x5564fc(0x8d)](_0x51e532){const _0x43ad54=_0x5564fc;return!!_0x51e532&&Boolean(_0x114a30(_0x51e532)&&_0x5133f3(_0x51e532)[_0x43ad54(0xb4)](/removed[\s*-]data-id="[^"]+"/));}[_0x5564fc(0x96)](_0xdf5d87){const _0x2a2415=_0x5564fc;let _0x41f122=_0xdf5d87[_0x2a2415(0xaf)];for(;_0x41f122;){if(_0x5c2e3b(_0x41f122,_0x2a2415(0x88)))return!0x0;_0x41f122=_0x41f122[_0x2a2415(0xaf)];}return!0x1;}[_0x5564fc(0x95)](_0x460228){const _0x2932b1=_0x5564fc;return Boolean(_0x114a30(_0x460228)&&_0x5133f3(_0x460228)[_0x2932b1(0xb4)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x15c6(_0xeec5d4,_0x5a7942){const _0x1ade56=_0x1ade();return _0x15c6=function(_0x15c62f,_0x38077a){_0x15c62f=_0x15c62f-0x74;let _0x222de1=_0x1ade56[_0x15c62f];return _0x222de1;},_0x15c6(_0xeec5d4,_0x5a7942);}function _0x1ade(){const _0x43cf25=['trim','cloneNode','from','6813sVDlEm','_findPrevElementWithDataId','splice','includes','86790VLkwZT','markUnstableElementsDepth','replaceRemovedWith','modifiedIds','lastTouchedId','lastChild','parentNode','push','beforebegin','394280eBhAHa','filter','match','_removeSpecialComments','_existingDataIds','childNodes','nextSibling','invalidIds','forEach','map','new-element','merge','true','_markWrappedElements','_findReferenceNode','_isNewNode','reverse','_insertNodes','data-removed','_findNextElementWithDataId','removedIds','nodeType','_getNodeDataId','_getUid','_touchedNodesState','afterend','_findFallbackReferenceNode','markUnstableElements','_isExistingNode','indexOf','1896yFhBKw','data-wrapped-id','14998ZeENGW','_markLastTagElementUnstable','_storeDeletedElementIds','1673VsMuwl','_isDelNode','_markUnstableElements','newIds','has','300xLKPzY','data-unstable','656qDiiaW','afterbegin','_isExistingContentComment','_hasWrappedParent','slice','7EuvpEs','_replaceNode','length','6272zqmxsF','1258980zYnSUS','previousSibling','data-id','11TfieEo','_generateUid','cutAfterLastChange'];_0x1ade=function(){return _0x43cf25;};return _0x1ade();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x35890f,_0x2571e1){var _0x3752f5=_0x3273,_0x1fbb77=_0x35890f();while(!![]){try{var _0xf52f2a=-parseInt(_0x3752f5(0x1b7))/0x1*(-parseInt(_0x3752f5(0x1c1))/0x2)+-parseInt(_0x3752f5(0x1bd))/0x3+parseInt(_0x3752f5(0x1bb))/0x4+parseInt(_0x3752f5(0x1bf))/0x5*(parseInt(_0x3752f5(0x1b8))/0x6)+parseInt(_0x3752f5(0x1b9))/0x7+parseInt(_0x3752f5(0x1be))/0x8+-parseInt(_0x3752f5(0x1b6))/0x9;if(_0xf52f2a===_0x2571e1)break;else _0x1fbb77['push'](_0x1fbb77['shift']());}catch(_0x1ab082){_0x1fbb77['push'](_0x1fbb77['shift']());}}}(_0x1f68,0xc0348));import{View as _0x277a1e}from'ckeditor5/src/ui.js';function _0x1f68(){var _0x217151=['29010EhvZLb','5430726xHMcpA','ck-ai-disclaimer__content','4307560qAdukU','ck-ai-disclaimer','2349534crbPnK','10446320KvDstI','1185QLiRww','div','4hpPehS','setTemplate','AI_DISCLAIMER_TEXT','31054113uoMpMD','358257dmOLzg'];_0x1f68=function(){return _0x217151;};return _0x1f68();}function _0x3273(_0x63eea8,_0x42af50){var _0x1f6871=_0x1f68();return _0x3273=function(_0x327310,_0x3cdc20){_0x327310=_0x327310-0x1b5;var _0x48a856=_0x1f6871[_0x327310];return _0x48a856;},_0x3273(_0x63eea8,_0x42af50);}import{getTranslation as _0x38989a}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x277a1e{constructor(_0x536612){var _0x3f3e26=_0x3273;super(_0x536612),this[_0x3f3e26(0x1c2)]({'tag':_0x3f3e26(0x1c0),'attributes':{'class':['ck',_0x3f3e26(0x1bc)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3f3e26(0x1ba)]},'children':[{'text':_0x38989a(_0x536612,_0x3f3e26(0x1b5))}]}]});}}
|