@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/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/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/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/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x46a8d7=_0x510b;(function(_0x40899d,_0x5289a7){const _0x28fea0=_0x510b,_0xaeb2a=_0x40899d();while(!![]){try{const _0x55296b=parseInt(_0x28fea0(0x13d))/0x1*(parseInt(_0x28fea0(0x16c))/0x2)+parseInt(_0x28fea0(0x142))/0x3*(-parseInt(_0x28fea0(0x135))/0x4)+parseInt(_0x28fea0(0x183))/0x5*(-parseInt(_0x28fea0(0x173))/0x6)+parseInt(_0x28fea0(0x186))/0x7+parseInt(_0x28fea0(0x17f))/0x8*(-parseInt(_0x28fea0(0x15c))/0x9)+-parseInt(_0x28fea0(0x16b))/0xa*(parseInt(_0x28fea0(0x167))/0xb)+-parseInt(_0x28fea0(0x17a))/0xc*(-parseInt(_0x28fea0(0x175))/0xd);if(_0x55296b===_0x5289a7)break;else _0xaeb2a['push'](_0xaeb2a['shift']());}catch(_0x244bed){_0xaeb2a['push'](_0xaeb2a['shift']());}}}(_0x1e5e,0x9306b));import{View as _0x42c871,SearchTextView as _0x5cbc6b,FormHeaderView as _0x12f55b,ButtonView as _0x2e2985}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x16ee12,IconCancel as _0x5e8cb3,IconPlus as _0x5db4cf}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1819d8}from'./aichathistorysectionlistview.js';function _0x1e5e(){const _0x264847=['ck-ai-notification','div','title','updateHistoryItemsWithCategories','change:isLoading','push','17nFdChC','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','length','61365xEAbhD','openChat','change:errorMessage','items','updateTitle','errorMessage','ck-ai-chat-history__empty-message','isEmptyViewVisible','aiHistory','_createEmptyStateView','remove','children','_createListItemViews','ltr','set','fire','AI_CHAT_HISTORY_SEARCH_LABEL','ck-reset_all','execute','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error__dismiss-button','locale','isMainErrorViewVisible','_refreshSearch','add','18ZovAeN','value','sections','element','setTemplate','searchView','isSearchViewVisible','_createErrorView','fieldView','updateItemLoadingState','skeletonView','66473bhKTpG','updateLoadingState','ck-ai-chat__start-conversation','delegate','220EJygNb','110770EyezaV','hasItems','addMany','removeItem','_updateViewVisibility','ck-ai-chat-history__content','bindTemplate','811182GqQwNV','clear','13ALjOff','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','emptyView','search','12973416MEtEJn','removeHistoryItem','updateItemTitle','_createSkeletonView','ck-rounded-corners','2679640ASnFYY','queryView','AI_CHAT_HISTORY_HEADING','indexOf','20MOhTmZ','sectionsView','isMaximized','1896545PBpjFz','getItem','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','change:hasItems','render','resizeButton','isVisible','isLoading','ck-ai-notification_error','extendTemplate','bind','itemsViews','splice','mainErrorView','68oPqWHN','some'];_0x1e5e=function(){return _0x264847;};return _0x1e5e();}import{AIChatHistoryListView as _0x4f2d60}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x53ad51}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x9c5e60}from'../aichathistoryui.js';import{AISkeletonView as _0x138d99,SKELETON_DEFINITIONS as _0x1d65e8}from'../../aicore/ui/aiskeleton.js';function _0x510b(_0x2dcecd,_0x30c876){const _0x1e5e23=_0x1e5e();return _0x510b=function(_0x510b91,_0x113a73){_0x510b91=_0x510b91-0x12d;let _0x3ecfca=_0x1e5e23[_0x510b91];return _0x3ecfca;},_0x510b(_0x2dcecd,_0x30c876);}import{createResizeButton as _0x2d18eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x31cd13}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x42c871{[_0x46a8d7(0x161)];[_0x46a8d7(0x134)];[_0x46a8d7(0x166)];[_0x46a8d7(0x178)];[_0x46a8d7(0x184)];[_0x46a8d7(0x18c)];constructor(_0x3df03d,_0x3a346b){const _0x302f6f=_0x46a8d7;super(_0x3df03d),this[_0x302f6f(0x150)](_0x302f6f(0x16d),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x12e),!0x0),this[_0x302f6f(0x150)](_0x302f6f(0x147),''),this[_0x302f6f(0x150)](_0x302f6f(0x185),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x162),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x149),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x159),!0x1);const _0x2f686b=new _0x12f55b(_0x3df03d,{'label':_0x31cd13(_0x3df03d,_0x302f6f(0x181)),'icon':_0x16ee12,'class':_0x302f6f(0x188)});_0x3a346b&&(this[_0x302f6f(0x18c)]=_0x2d18eb(_0x3df03d,this),_0x2f686b[_0x302f6f(0x14d)][_0x302f6f(0x15b)](this[_0x302f6f(0x18c)])),this[_0x302f6f(0x184)]=new _0x1819d8(_0x3df03d,[]),this[_0x302f6f(0x184)][_0x302f6f(0x16a)](..._0x9c5e60)['to'](this),this[_0x302f6f(0x134)]=this[_0x302f6f(0x163)](),this[_0x302f6f(0x166)]=this[_0x302f6f(0x17d)](),this[_0x302f6f(0x178)]=this[_0x302f6f(0x14b)](),this[_0x302f6f(0x161)]=this[_0x302f6f(0x176)](),this[_0x302f6f(0x134)][_0x302f6f(0x130)]({'attributes':{'class':[this[_0x302f6f(0x172)]['if'](_0x302f6f(0x159),_0x302f6f(0x13f),_0x58d88e=>!_0x58d88e)]}}),this['on'](_0x302f6f(0x13b),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x18a),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x144),()=>this[_0x302f6f(0x170)]()),this[_0x302f6f(0x160)]({'tag':_0x302f6f(0x138),'attributes':{'class':['ck',_0x302f6f(0x153),_0x302f6f(0x189),_0x302f6f(0x17e)],'dir':_0x302f6f(0x14f)},'children':[_0x2f686b,{'tag':_0x302f6f(0x138),'attributes':{'class':[_0x302f6f(0x171)]},'children':[this[_0x302f6f(0x166)],this[_0x302f6f(0x134)],this[_0x302f6f(0x178)],this[_0x302f6f(0x161)]]}]});}[_0x46a8d7(0x170)](){const _0x2237da=_0x46a8d7;this[_0x2237da(0x162)]=!this[_0x2237da(0x12e)]&&this[_0x2237da(0x16d)],this[_0x2237da(0x149)]=!this[_0x2237da(0x12e)]&&!this[_0x2237da(0x16d)]&&!this[_0x2237da(0x147)],this[_0x2237da(0x159)]=!this[_0x2237da(0x162)]&&!!this[_0x2237da(0x147)];}[_0x46a8d7(0x176)](){const _0x1f8936=_0x46a8d7,_0x22d35c=new _0x5cbc6b(this[_0x1f8936(0x158)],{'filteredView':this[_0x1f8936(0x184)],'queryView':{'label':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x152))},'infoView':{'text':{'notFound':{'primary':_0x2991a6=>_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x140),_0x2991a6),'secondary':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x177))}}}}),_0x58c7e4=this[_0x1f8936(0x163)]();return _0x58c7e4[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x147),_0x1f8936(0x13f),_0x2286f6=>!_0x2286f6)]}}),_0x22d35c['on'](_0x1f8936(0x18b),()=>{const _0x56caf5=_0x1f8936;_0x22d35c[_0x56caf5(0x14d)][_0x56caf5(0x15b)](_0x58c7e4,0x1);}),_0x22d35c[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x162),_0x1f8936(0x13f),_0x5d568e=>!_0x5d568e)]}}),_0x22d35c;}[_0x46a8d7(0x17d)](){const _0x4bd705=_0x46a8d7,_0x3aee0b=new _0x138d99(this[_0x4bd705(0x158)],_0x1d65e8[_0x4bd705(0x14a)]);return _0x3aee0b[_0x4bd705(0x130)]({'attributes':{'class':[this[_0x4bd705(0x172)]['if'](_0x4bd705(0x12e),_0x4bd705(0x13f),_0xf5e308=>!_0xf5e308)]}}),_0x3aee0b;}[_0x46a8d7(0x163)](){const _0x3ad9bf=_0x46a8d7,_0x745471=new _0x42c871(this[_0x3ad9bf(0x158)]),_0x33026d=new _0x2e2985(this[_0x3ad9bf(0x158)]);_0x33026d[_0x3ad9bf(0x150)]({'withText':!0x1,'icon':_0x5e8cb3,'class':_0x3ad9bf(0x157)}),_0x33026d[_0x3ad9bf(0x131)](_0x3ad9bf(0x12d))['to'](this,_0x3ad9bf(0x16d),_0x1fe281=>!!_0x1fe281),_0x33026d['on'](_0x3ad9bf(0x154),()=>{const _0x29f716=_0x3ad9bf;this[_0x29f716(0x147)]='';});const _0x4ddc07=this[_0x3ad9bf(0x172)];return _0x745471[_0x3ad9bf(0x160)]({'tag':_0x3ad9bf(0x138),'attributes':{'class':['ck',_0x3ad9bf(0x137),_0x3ad9bf(0x12f)]},'children':[{'tag':'p','children':[{'text':_0x4ddc07['to'](_0x3ad9bf(0x147))}]},_0x33026d]}),_0x745471;}[_0x46a8d7(0x14b)](){const _0x4521b1=_0x46a8d7,_0x41542a=new _0x2e2985(this[_0x4521b1(0x158)]);_0x41542a[_0x4521b1(0x150)]({'label':_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x156)),'withText':!0x0,'icon':_0x5db4cf,'class':_0x4521b1(0x169)}),_0x41542a['on'](_0x4521b1(0x154),()=>{const _0x1a2999=_0x4521b1;this[_0x1a2999(0x151)](_0x1a2999(0x143));});const _0x18a919=new _0x42c871(this[_0x4521b1(0x158)]);return _0x18a919[_0x4521b1(0x160)]({'tag':_0x4521b1(0x138),'attributes':{'class':[_0x4521b1(0x155),this[_0x4521b1(0x172)]['if'](_0x4521b1(0x149),_0x4521b1(0x13f),_0x59f06d=>!_0x59f06d)]},'children':[{'tag':'p','attributes':{'class':[_0x4521b1(0x148)]},'children':[_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x13e))]},_0x41542a]}),_0x18a919;}[_0x46a8d7(0x14e)](_0x7a7a89,_0x4bde28){const _0x5cd38c=_0x46a8d7,_0x286e67=[];for(const _0x3b2e26 of _0x7a7a89){const _0x1d23f9=new _0x53ad51(_0x4bde28,_0x3b2e26);_0x1d23f9[_0x5cd38c(0x16a)](..._0x9c5e60)['to'](this),_0x286e67[_0x5cd38c(0x13c)](_0x1d23f9);}return _0x286e67;}[_0x46a8d7(0x13a)](_0x451677){const _0x1d13ab=_0x46a8d7,_0x57687b=this[_0x1d13ab(0x158)]||'en',_0x15543c=[];for(const _0x51a71a of _0x451677){const _0x48bde8=this[_0x1d13ab(0x14e)](_0x51a71a[_0x1d13ab(0x145)],_0x57687b);_0x15543c[_0x1d13ab(0x13c)](new _0x4f2d60(_0x57687b,{'title':_0x51a71a[_0x1d13ab(0x139)],'items':_0x48bde8}));}this[_0x1d13ab(0x184)][_0x1d13ab(0x15e)]=_0x15543c,this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x174)](),this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x16e)](_0x15543c),this[_0x1d13ab(0x16d)]=_0x451677[_0x1d13ab(0x136)](_0x42410a=>_0x42410a[_0x1d13ab(0x145)][_0x1d13ab(0x141)]>0x0),this[_0x1d13ab(0x15a)]();}[_0x46a8d7(0x17b)](_0x3cbfda){const _0x175660=_0x46a8d7;for(const _0xd0ac0d of this[_0x175660(0x184)][_0x175660(0x15e)]){const _0x173cd1=_0xd0ac0d[_0x175660(0x187)](_0x3cbfda);if(_0x173cd1){if(_0xd0ac0d[_0x175660(0x16f)](_0x173cd1),0x0===_0xd0ac0d[_0x175660(0x132)][_0x175660(0x141)]){const _0x2f31b8=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x182)](_0xd0ac0d);-0x1!==_0x2f31b8&&(this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x133)](_0x2f31b8,0x1),this[_0x175660(0x184)][_0x175660(0x145)][_0x175660(0x14c)](_0xd0ac0d));}this[_0x175660(0x16d)]=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x141)]>0x0,this[_0x175660(0x15a)]();break;}}}[_0x46a8d7(0x17c)](_0x2f925d,_0x3effc2){const _0x49e4ba=_0x46a8d7;for(const _0x4f8f25 of this[_0x49e4ba(0x184)][_0x49e4ba(0x15e)]){const _0x10182c=_0x4f8f25[_0x49e4ba(0x187)](_0x2f925d);if(_0x10182c){_0x10182c[_0x49e4ba(0x146)](_0x3effc2);break;}}}[_0x46a8d7(0x165)](_0x211bbf,_0x293519,_0x522104){const _0x3c1f35=_0x46a8d7;for(const _0x4ba1f5 of this[_0x3c1f35(0x184)][_0x3c1f35(0x15e)]){const _0x5738b2=_0x4ba1f5[_0x3c1f35(0x187)](_0x211bbf);if(_0x5738b2){_0x5738b2[_0x3c1f35(0x168)](_0x293519,_0x522104);break;}}}[_0x46a8d7(0x15a)](){const _0x45b20a=_0x46a8d7;if(this[_0x45b20a(0x16d)]){const _0x386921=this[_0x45b20a(0x161)][_0x45b20a(0x180)][_0x45b20a(0x164)]?.[_0x45b20a(0x15f)]?.[_0x45b20a(0x15d)]||'';this[_0x45b20a(0x161)][_0x45b20a(0x179)](_0x386921);}}}
|
|
23
|
+
const _0x2aa48e=_0x36b6;(function(_0x2257e1,_0x97172){const _0x41bad9=_0x36b6,_0x556153=_0x2257e1();while(!![]){try{const _0x316025=parseInt(_0x41bad9(0x168))/0x1+parseInt(_0x41bad9(0x19c))/0x2+-parseInt(_0x41bad9(0x1b8))/0x3*(-parseInt(_0x41bad9(0x1b1))/0x4)+-parseInt(_0x41bad9(0x1ab))/0x5*(-parseInt(_0x41bad9(0x19a))/0x6)+parseInt(_0x41bad9(0x1a6))/0x7*(-parseInt(_0x41bad9(0x1b9))/0x8)+-parseInt(_0x41bad9(0x16c))/0x9+-parseInt(_0x41bad9(0x1a4))/0xa;if(_0x316025===_0x97172)break;else _0x556153['push'](_0x556153['shift']());}catch(_0x4b54e4){_0x556153['push'](_0x556153['shift']());}}}(_0x4f1c,0x305f9));import{View as _0x2328e0,SearchTextView as _0x52750a,FormHeaderView as _0x4032e4,ButtonView as _0x26896c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x216847,IconCancel as _0x149d52,IconPlus as _0x58cde4}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2193ad}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xd6de98}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4981c8}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3664d4}from'../aichathistoryui.js';import{AISkeletonView as _0x1ccd9a,SKELETON_DEFINITIONS as _0x2be148}from'../../aicore/ui/aiskeleton.js';function _0x4f1c(){const _0x17d217=['clear','execute','mainErrorView','resizeButton','isMaximized','getItem','change:isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_updateViewVisibility','_createSkeletonView','ck-ai-chat-history__content','12EoDHRy','ck-ai-notification_error__dismiss-button','141698jKYRXH','ck-ai-chat-history','isSearchViewVisible','updateLoadingState','ck-ai-chat-history__empty-message','itemsViews','sectionsView','emptyView','1926440WSdQXS','removeHistoryItem','695471CdmxsT','AI_CHAT_HISTORY_SEARCH_LABEL','aiHistory','openChat','ck-ai-chat__start-conversation','133520wZAJvH','updateItemLoadingState','ck-rounded-corners','fire','AI_CHAT_LABEL_NEW_CHAT','searchView','8Ybwxdk','ltr','render','remove','updateItemTitle','isMainErrorViewVisible','bindTemplate','152295bQKWDt','8geuPcp','value','extendTemplate','div','isVisible','change:hasItems','ck-ai-notification','ck-ai-chat-history__empty','delegate','isEmptyViewVisible','add','splice','309604ZkmUJt','children','errorMessage','push','407313XTQAMg','locale','skeletonView','_createListItemViews','sections','element','some','ck-hidden','title','length','_refreshSearch','AI_CHAT_HISTORY_HEADING','search','change:errorMessage','ck-reset_all','_createSearchView','updateTitle','bind','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createErrorView','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','addMany','set','items','setTemplate','updateHistoryItemsWithCategories','isLoading','hasItems','_createEmptyStateView','queryView','ck-ai-header\x20ck-ai-header_history','removeItem','ck-ai-notification_error','fieldView'];_0x4f1c=function(){return _0x17d217;};return _0x4f1c();}import{createResizeButton as _0x14ea6c}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5b786a}from'../../aicore/utils/common-translations.js';function _0x36b6(_0x34ae98,_0x5b9039){const _0x4f1cbe=_0x4f1c();return _0x36b6=function(_0x36b600,_0x130d48){_0x36b600=_0x36b600-0x15d;let _0x7137fc=_0x4f1cbe[_0x36b600];return _0x7137fc;},_0x36b6(_0x34ae98,_0x5b9039);}export class AIChatHistoryView extends _0x2328e0{[_0x2aa48e(0x1b0)];[_0x2aa48e(0x191)];[_0x2aa48e(0x16e)];[_0x2aa48e(0x1a3)];[_0x2aa48e(0x1a2)];[_0x2aa48e(0x192)];constructor(_0x27d6d8,_0x868e13){const _0xaf9851=_0x2aa48e;super(_0x27d6d8),this[_0xaf9851(0x183)](_0xaf9851(0x188),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x187),!0x0),this[_0xaf9851(0x183)](_0xaf9851(0x16a),''),this[_0xaf9851(0x183)](_0xaf9851(0x193),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x19e),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x165),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x1b6),!0x1);const _0x1c84b2=new _0x4032e4(_0x27d6d8,{'label':_0x5b786a(_0x27d6d8,_0xaf9851(0x177)),'icon':_0x216847,'class':_0xaf9851(0x18b)});_0x868e13&&(this[_0xaf9851(0x192)]=_0x14ea6c(_0x27d6d8,this),_0x1c84b2[_0xaf9851(0x169)][_0xaf9851(0x166)](this[_0xaf9851(0x192)])),this[_0xaf9851(0x1a2)]=new _0x2193ad(_0x27d6d8,[]),this[_0xaf9851(0x1a2)][_0xaf9851(0x164)](..._0x3664d4)['to'](this),this[_0xaf9851(0x191)]=this[_0xaf9851(0x17f)](),this[_0xaf9851(0x16e)]=this[_0xaf9851(0x198)](),this[_0xaf9851(0x1a3)]=this[_0xaf9851(0x189)](),this[_0xaf9851(0x1b0)]=this[_0xaf9851(0x17b)](),this[_0xaf9851(0x191)][_0xaf9851(0x15e)]({'attributes':{'class':[this[_0xaf9851(0x1b7)]['if'](_0xaf9851(0x1b6),_0xaf9851(0x173),_0x25225d=>!_0x25225d)]}}),this['on'](_0xaf9851(0x195),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x161),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x179),()=>this[_0xaf9851(0x197)]()),this[_0xaf9851(0x185)]({'tag':_0xaf9851(0x15f),'attributes':{'class':['ck',_0xaf9851(0x17a),_0xaf9851(0x19d),_0xaf9851(0x1ad)],'dir':_0xaf9851(0x1b2)},'children':[_0x1c84b2,{'tag':_0xaf9851(0x15f),'attributes':{'class':[_0xaf9851(0x199)]},'children':[this[_0xaf9851(0x16e)],this[_0xaf9851(0x191)],this[_0xaf9851(0x1a3)],this[_0xaf9851(0x1b0)]]}]});}[_0x2aa48e(0x197)](){const _0x34468c=_0x2aa48e;this[_0x34468c(0x19e)]=!this[_0x34468c(0x187)]&&this[_0x34468c(0x188)],this[_0x34468c(0x165)]=!this[_0x34468c(0x187)]&&!this[_0x34468c(0x188)]&&!this[_0x34468c(0x16a)],this[_0x34468c(0x1b6)]=!this[_0x34468c(0x19e)]&&!!this[_0x34468c(0x16a)];}[_0x2aa48e(0x17b)](){const _0x5e29fb=_0x2aa48e,_0x1f9997=new _0x52750a(this[_0x5e29fb(0x16d)],{'filteredView':this[_0x5e29fb(0x1a2)],'queryView':{'label':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x1a7))},'infoView':{'text':{'notFound':{'primary':_0x44fc5d=>_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x196),_0x44fc5d),'secondary':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x181))}}}}),_0x30d964=this[_0x5e29fb(0x17f)]();return _0x30d964[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x16a),_0x5e29fb(0x173),_0x48be7e=>!_0x48be7e)]}}),_0x1f9997['on'](_0x5e29fb(0x1b3),()=>{const _0x46bdd5=_0x5e29fb;_0x1f9997[_0x46bdd5(0x169)][_0x46bdd5(0x166)](_0x30d964,0x1);}),_0x1f9997[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x19e),_0x5e29fb(0x173),_0x1eea6e=>!_0x1eea6e)]}}),_0x1f9997;}[_0x2aa48e(0x198)](){const _0x4b40a5=_0x2aa48e,_0x53d12e=new _0x1ccd9a(this[_0x4b40a5(0x16d)],_0x2be148[_0x4b40a5(0x1a8)]);return _0x53d12e[_0x4b40a5(0x15e)]({'attributes':{'class':[this[_0x4b40a5(0x1b7)]['if'](_0x4b40a5(0x187),_0x4b40a5(0x173),_0x45b185=>!_0x45b185)]}}),_0x53d12e;}[_0x2aa48e(0x17f)](){const _0xf951c1=_0x2aa48e,_0xded35c=new _0x2328e0(this[_0xf951c1(0x16d)]),_0x5ea2a4=new _0x26896c(this[_0xf951c1(0x16d)]);_0x5ea2a4[_0xf951c1(0x183)]({'withText':!0x1,'icon':_0x149d52,'class':_0xf951c1(0x19b)}),_0x5ea2a4[_0xf951c1(0x17d)](_0xf951c1(0x160))['to'](this,_0xf951c1(0x188),_0x4f4c6e=>!!_0x4f4c6e),_0x5ea2a4['on'](_0xf951c1(0x190),()=>{const _0x5640f7=_0xf951c1;this[_0x5640f7(0x16a)]='';});const _0x29bf21=this[_0xf951c1(0x1b7)];return _0xded35c[_0xf951c1(0x185)]({'tag':_0xf951c1(0x15f),'attributes':{'class':['ck',_0xf951c1(0x162),_0xf951c1(0x18d)]},'children':[{'tag':'p','children':[{'text':_0x29bf21['to'](_0xf951c1(0x16a))}]},_0x5ea2a4]}),_0xded35c;}[_0x2aa48e(0x189)](){const _0x1031ab=_0x2aa48e,_0x2fe34e=new _0x26896c(this[_0x1031ab(0x16d)]);_0x2fe34e[_0x1031ab(0x183)]({'label':_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x1af)),'withText':!0x0,'icon':_0x58cde4,'class':_0x1031ab(0x1aa)}),_0x2fe34e['on'](_0x1031ab(0x190),()=>{const _0x5351ae=_0x1031ab;this[_0x5351ae(0x1ae)](_0x5351ae(0x1a9));});const _0x3c6858=new _0x2328e0(this[_0x1031ab(0x16d)]);return _0x3c6858[_0x1031ab(0x185)]({'tag':_0x1031ab(0x15f),'attributes':{'class':[_0x1031ab(0x163),this[_0x1031ab(0x1b7)]['if'](_0x1031ab(0x165),_0x1031ab(0x173),_0x3d6aef=>!_0x3d6aef)]},'children':[{'tag':'p','attributes':{'class':[_0x1031ab(0x1a0)]},'children':[_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x17e))]},_0x2fe34e]}),_0x3c6858;}[_0x2aa48e(0x16f)](_0x1248d4,_0x2252ca){const _0x318597=_0x2aa48e,_0x43a66a=[];for(const _0x72543f of _0x1248d4){const _0x4f774d=new _0x4981c8(_0x2252ca,_0x72543f);_0x4f774d[_0x318597(0x164)](..._0x3664d4)['to'](this),_0x43a66a[_0x318597(0x16b)](_0x4f774d);}return _0x43a66a;}[_0x2aa48e(0x186)](_0x534d24){const _0x19f532=_0x2aa48e,_0x30a027=this[_0x19f532(0x16d)]||'en',_0x390e20=[];for(const _0xab88e7 of _0x534d24){const _0x4c938d=this[_0x19f532(0x16f)](_0xab88e7[_0x19f532(0x184)],_0x30a027);_0x390e20[_0x19f532(0x16b)](new _0xd6de98(_0x30a027,{'title':_0xab88e7[_0x19f532(0x174)],'items':_0x4c938d}));}this[_0x19f532(0x1a2)][_0x19f532(0x170)]=_0x390e20,this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x18f)](),this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x182)](_0x390e20),this[_0x19f532(0x188)]=_0x534d24[_0x19f532(0x172)](_0x29c67c=>_0x29c67c[_0x19f532(0x184)][_0x19f532(0x175)]>0x0),this[_0x19f532(0x176)]();}[_0x2aa48e(0x1a5)](_0x31023e){const _0x47c44f=_0x2aa48e;for(const _0x3ed31c of this[_0x47c44f(0x1a2)][_0x47c44f(0x170)]){const _0xf32b87=_0x3ed31c[_0x47c44f(0x194)](_0x31023e);if(_0xf32b87){if(_0x3ed31c[_0x47c44f(0x18c)](_0xf32b87),0x0===_0x3ed31c[_0x47c44f(0x1a1)][_0x47c44f(0x175)]){const _0x8b167a=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x180)](_0x3ed31c);-0x1!==_0x8b167a&&(this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x167)](_0x8b167a,0x1),this[_0x47c44f(0x1a2)][_0x47c44f(0x184)][_0x47c44f(0x1b4)](_0x3ed31c));}this[_0x47c44f(0x188)]=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x175)]>0x0,this[_0x47c44f(0x176)]();break;}}}[_0x2aa48e(0x1b5)](_0x20c679,_0x2336c7){const _0x38fdb8=_0x2aa48e;for(const _0x252f20 of this[_0x38fdb8(0x1a2)][_0x38fdb8(0x170)]){const _0x4972c6=_0x252f20[_0x38fdb8(0x194)](_0x20c679);if(_0x4972c6){_0x4972c6[_0x38fdb8(0x17c)](_0x2336c7);break;}}}[_0x2aa48e(0x1ac)](_0x2ad416,_0x39ba07,_0x143384){const _0x1633ec=_0x2aa48e;for(const _0x245011 of this[_0x1633ec(0x1a2)][_0x1633ec(0x170)]){const _0x4c6d8f=_0x245011[_0x1633ec(0x194)](_0x2ad416);if(_0x4c6d8f){_0x4c6d8f[_0x1633ec(0x19f)](_0x39ba07,_0x143384);break;}}}[_0x2aa48e(0x176)](){const _0x11e933=_0x2aa48e;if(this[_0x11e933(0x188)]){const _0x5c1e34=this[_0x11e933(0x1b0)][_0x11e933(0x18a)][_0x11e933(0x18e)]?.[_0x11e933(0x171)]?.[_0x11e933(0x15d)]||'';this[_0x11e933(0x1b0)][_0x11e933(0x178)](_0x5c1e34);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xcc6c(_0x533cdf,_0x2a7b4f){const _0xe57660=_0xe576();return _0xcc6c=function(_0xcc6c9b,_0x4f3d6b){_0xcc6c9b=_0xcc6c9b-0x18c;let _0x251e67=_0xe57660[_0xcc6c9b];return _0x251e67;},_0xcc6c(_0x533cdf,_0x2a7b4f);}const _0x3fcda4=_0xcc6c;(function(_0x343822,_0x52e222){const _0x579868=_0xcc6c,_0x40ec35=_0x343822();while(!![]){try{const _0x10e090=parseInt(_0x579868(0x1f8))/0x1*(parseInt(_0x579868(0x20c))/0x2)+parseInt(_0x579868(0x210))/0x3*(-parseInt(_0x579868(0x1e5))/0x4)+-parseInt(_0x579868(0x1dd))/0x5*(parseInt(_0x579868(0x21c))/0x6)+-parseInt(_0x579868(0x1d8))/0x7+-parseInt(_0x579868(0x21a))/0x8+-parseInt(_0x579868(0x1d1))/0x9+-parseInt(_0x579868(0x21d))/0xa*(-parseInt(_0x579868(0x1e1))/0xb);if(_0x10e090===_0x52e222)break;else _0x40ec35['push'](_0x40ec35['shift']());}catch(_0x2ef936){_0x40ec35['push'](_0x40ec35['shift']());}}}(_0xe576,0x25c01));import{createParser as _0x712941}from'eventsource-parser';import{ContextPlugin as _0x545529}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c9a53}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1cacfc){const _0x3f1fbb=_0xcc6c;_0x1cacfc[_0x3f1fbb(0x1aa)]=_0x3f1fbb(0x20d),_0x1cacfc[_0x3f1fbb(0x1ea)]=_0x3f1fbb(0x1d7),_0x1cacfc[_0x3f1fbb(0x18c)]=_0x3f1fbb(0x1c5),_0x1cacfc[_0x3f1fbb(0x19d)]=_0x3f1fbb(0x20b),_0x1cacfc[_0x3f1fbb(0x1ac)]=_0x3f1fbb(0x1f6),_0x1cacfc[_0x3f1fbb(0x1f0)]=_0x3f1fbb(0x1d2),_0x1cacfc[_0x3f1fbb(0x199)]=_0x3f1fbb(0x19f),_0x1cacfc[_0x3f1fbb(0x21e)]=_0x3f1fbb(0x1cd);}(AIActionsNames||(AIActionsNames={}));function _0xe576(){const _0x16ef0c=['request','/documents','group','upsertAIReviewRating','callSystemReview','isPremiumPlugin','language','search','upsertAIChatRating','make-longer','2bYVExH','continue','application/json','/web-resources/','33CkAZDz','deleteFile','upsertCustomAIReviewRating','uploadUrl','uploadFile','reset','_apiUrl','_getStreamReader','abortController','signal','999128EqWfbQ','/actions/custom/calls','343302Trlxon','370CIFDCF','TRANSLATE','IMPROVE_WRITING','100','push','name','feed','updateConversation','/ratings','upsertCustomAIActionRating','fetchDocument','releaseLock','/files/','callCustomReview','/conversations/','MAKE_TONE_FORMAL','_token','fetchConversations','/reviews/custom/calls','MAKE_LONGER','traceId','make-tone-formal','/models/1?','keys','GET','PATCH','config','context','totalCount','init','/messages','/conversations?','CONTINUE','_sendApiRequest','MAKE_SHORTER','status','/conversations','AbortError','/web-resources','modificationId','value','ai-missing-token','attributes','/files','pluginName','catch','get','/reviews/custom/calls/','decode','append','plugins','_handleError','ai-request-failed','/actions/system/','define','statusText','message','items','read','improve-writing','executeCustomAction','stringify','getReader','json','/reviews/system/','/calls/','file','translate','ai-request-aborted','Content-Type','token','1756224LevgEM','make-tone-casual','body','positiveCount','limit','POST','fix-grammar','595210ObCOso','ai.serviceUrl','_decoder','data','parse','25KPGdyY','https://ai.cke-cs.com/v1','toString','startConversation','296417zSxFfU','code','queryAssistant','PUT','59044QlpuHJ','/messages/','excludeEmpty','length','AIConnector','FIX_GRAMMAR','deleteConversation','upsertAIActionRating','requires','uploadDocument','deleteWebResource','MAKE_TONE_CASUAL','CloudServices','executeAction','DELETE','text','/calls','make-shorter','true','11099LMfsCk','fetchConversationMessages','Bearer\x20','/actions/custom/calls/','/documents/','fetchConversation','then','deleteDocument','getModels','isOfficialPlugin'];_0xe576=function(){return _0x16ef0c;};return _0xe576();}export class AIConnector extends _0x545529{[_0x3fcda4(0x216)];[_0x3fcda4(0x19a)];[_0x3fcda4(0x1da)];static get[_0x3fcda4(0x1ed)](){const _0x440d12=_0x3fcda4;return[_0x440d12(0x1f1)];}static get[_0x3fcda4(0x1b6)](){const _0x12f04c=_0x3fcda4;return _0x12f04c(0x1e9);}static get[_0x3fcda4(0x201)](){return!0x0;}static get[_0x3fcda4(0x207)](){return!0x0;}constructor(_0x102455){const _0x1c2c77=_0x3fcda4;super(_0x102455),this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1c0)](_0x1c2c77(0x1d9),_0x1c2c77(0x1de)),this[_0x1c2c77(0x216)]=this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1b8)](_0x1c2c77(0x1d9)),this[_0x1c2c77(0x19a)]=null,this[_0x1c2c77(0x1da)]=new TextDecoder();}[_0x3fcda4(0x1a7)](){const _0x25be29=_0x3fcda4,_0x2059f0=this[_0x25be29(0x1a5)][_0x25be29(0x1bc)][_0x25be29(0x1b8)](_0x25be29(0x1f1));if(!_0x2059f0[_0x25be29(0x1d0)])throw new _0x5c9a53(_0x25be29(0x1b3),this);this[_0x25be29(0x19a)]=_0x2059f0[_0x25be29(0x1d0)];}[_0x3fcda4(0x1e0)](_0x5c83f2,_0x3ed9f7){const _0x52138d=_0x3fcda4,_0x32e616=this[_0x52138d(0x1ab)](_0x52138d(0x1ae),_0x52138d(0x1d6),{'id':_0x5c83f2,'group':_0x3ed9f7});return{'getConversation':async()=>(await _0x32e616[_0x52138d(0x202)])[_0x52138d(0x1c9)](),'abortController':_0x32e616[_0x52138d(0x218)]};}[_0x3fcda4(0x1e3)]({message:_0x4f9daa,conversationId:_0x7396e1,parts:_0x3ec6bf,capabilities:_0x462bea,model:_0x19b006,quickActionData:_0x511e8a}){const _0x506642=_0x3fcda4,_0x2a58ff={..._0x511e8a&&{'quickActionData':_0x511e8a}},_0x325581={'prompt':_0x4f9daa,'content':_0x3ec6bf,'model':_0x19b006,..._0x462bea&&{'capabilities':_0x462bea},...Object[_0x506642(0x1a1)](_0x2a58ff)[_0x506642(0x1e8)]>0x0&&{'attributes':_0x2a58ff}},_0x596e8a=this[_0x506642(0x1ab)](_0x506642(0x198)+_0x7396e1+_0x506642(0x1a8),_0x506642(0x1d6),_0x325581);return{'getStream':async()=>{const _0x226dc0=_0x506642,_0x52fb66=(await _0x596e8a[_0x226dc0(0x202)])[_0x226dc0(0x1d3)];return this[_0x226dc0(0x217)](_0x52fb66);},'abortController':_0x596e8a[_0x506642(0x218)]};}[_0x3fcda4(0x1c6)]({content:_0x3250c0,message:_0x1247b3,model:_0x434aa0,outputFormat:_0x5cb3f5}){const _0x59795b=_0x3fcda4,_0x2b652f={'content':[{'type':_0x59795b(0x1f4),'content':_0x3250c0}],'prompt':_0x1247b3,'model':_0x434aa0,'outputFormat':_0x5cb3f5},_0x13edcb=this[_0x59795b(0x1ab)](_0x59795b(0x21b),_0x59795b(0x1d6),_0x2b652f);return{'getStream':async()=>{const _0x4e89e3=_0x59795b,_0x58d5a2=(await _0x13edcb[_0x4e89e3(0x202)])[_0x4e89e3(0x1d3)];return this[_0x4e89e3(0x217)](_0x58d5a2);},'abortController':_0x13edcb[_0x59795b(0x218)]};}[_0x3fcda4(0x1f2)]({actionName:_0x378935,content:_0x5323c0,args:_0x517f5b}){const _0x2932c4=_0x3fcda4,_0x20c4e7={'content':[{'type':_0x2932c4(0x1f4),'content':_0x5323c0}],'args':_0x517f5b},_0x541697=this[_0x2932c4(0x1ab)](_0x2932c4(0x1bf)+_0x378935+_0x2932c4(0x1f5),_0x2932c4(0x1d6),_0x20c4e7);return{'getStream':async()=>{const _0xedcd8d=_0x2932c4,_0x301ed2=(await _0x541697[_0xedcd8d(0x202)])[_0xedcd8d(0x1d3)];return this[_0xedcd8d(0x217)](_0x301ed2);},'abortController':_0x541697[_0x2932c4(0x218)]};}[_0x3fcda4(0x214)](_0x1bf4d3,_0x1ebeb3,_0x3c2418){const _0x20591d=_0x3fcda4,_0x537429=new FormData();_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1cc),_0x1ebeb3,_0x1ebeb3[_0x20591d(0x18f)]),_0x3c2418&&_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1b4),JSON[_0x20591d(0x1c7)](_0x3c2418));const _0x3950c6=this[_0x20591d(0x1ab)](_0x20591d(0x198)+_0x1bf4d3+_0x20591d(0x1b5),_0x20591d(0x1d6),_0x537429);return{'getId':async()=>(await _0x3950c6[_0x20591d(0x202)])[_0x20591d(0x1c9)](),'abortController':_0x3950c6[_0x20591d(0x218)]};}[_0x3fcda4(0x194)](_0x375cb9,_0x53b319){const _0x5aa21a=_0x3fcda4,_0x12e988=this[_0x5aa21a(0x1ab)](_0x5aa21a(0x198)+_0x375cb9+_0x5aa21a(0x1fc)+_0x53b319,_0x5aa21a(0x1a2));return{'getDocument':async()=>(await _0x12e988[_0x5aa21a(0x202)])[_0x5aa21a(0x1c9)](),'abortController':_0x12e988[_0x5aa21a(0x218)]};}[_0x3fcda4(0x1ee)](_0x3f05cf,_0x2b2f67,_0x5cd121){const _0x101130=_0x3fcda4,_0x4ddd47={'content':_0x2b2f67};_0x5cd121&&(_0x4ddd47[_0x101130(0x1b4)]=_0x5cd121);const _0x19c94d=this[_0x101130(0x1ab)](_0x101130(0x198)+_0x3f05cf+_0x101130(0x203),_0x101130(0x1d6),_0x4ddd47);return{'getId':async()=>(await _0x19c94d[_0x101130(0x202)])[_0x101130(0x1c9)](),'abortController':_0x19c94d[_0x101130(0x218)]};}[_0x3fcda4(0x19b)](_0x3746cb,_0x1685a1){const _0x15ba7b=_0x3fcda4,_0x35b473=new URLSearchParams();_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1e7),_0x15ba7b(0x1f7)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1d5),_0x15ba7b(0x18d)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x204),_0x3746cb),_0x1685a1&&_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x209),_0x1685a1);const _0x55410b=this[_0x15ba7b(0x1ab)](_0x15ba7b(0x1a9)+_0x35b473[_0x15ba7b(0x1df)](),_0x15ba7b(0x1a2));return{'getConversations':async()=>{const _0x419357=_0x15ba7b,_0x559b71=await _0x55410b[_0x419357(0x202)];return(await _0x559b71[_0x419357(0x1c9)]())[_0x419357(0x1c3)];},'abortController':_0x55410b[_0x15ba7b(0x218)]};}[_0x3fcda4(0x1eb)](_0x2748ee){const _0x35aa46=_0x3fcda4,_0x2e5eba=this[_0x35aa46(0x1ab)](_0x35aa46(0x198)+_0x2748ee,_0x35aa46(0x1f3));return{'execute':async()=>{const _0x2c4678=_0x35aa46;await _0x2e5eba[_0x2c4678(0x202)];},'abortController':_0x2e5eba[_0x35aa46(0x218)]};}[_0x3fcda4(0x191)](_0x32682b,_0x1fba8e){const _0x317004=_0x3fcda4,_0x22103a=this[_0x317004(0x1ab)](_0x317004(0x198)+_0x32682b,_0x317004(0x1a3),_0x1fba8e);return{'getResult':async()=>(await _0x22103a[_0x317004(0x202)],_0x1fba8e),'abortController':_0x22103a[_0x317004(0x218)]};}[_0x3fcda4(0x1fd)](_0x4f3747){const _0x353e6a=_0x3fcda4,_0xbb7eaf=this[_0x353e6a(0x1ab)](_0x353e6a(0x198)+_0x4f3747,_0x353e6a(0x1a2));return{'getConversation':async()=>(await _0xbb7eaf[_0x353e6a(0x202)])[_0x353e6a(0x1c9)](),'abortController':_0xbb7eaf[_0x353e6a(0x218)]};}[_0x3fcda4(0x1f9)](_0x59aacd){const _0x540711=_0x3fcda4,_0x2258ed=this[_0x540711(0x1ab)](_0x540711(0x198)+_0x59aacd+_0x540711(0x1a8),_0x540711(0x1a2));return{'getMessages':async()=>{const _0x80edd8=_0x540711,_0x376846=await _0x2258ed[_0x80edd8(0x202)];return(await _0x376846[_0x80edd8(0x1c9)]())[_0x80edd8(0x1c3)];},'abortController':_0x2258ed[_0x540711(0x218)]};}[_0x3fcda4(0x213)](_0x10237e,_0x48ea1c,_0x39c5a3){const _0xdd0d57=_0x3fcda4,_0x349290=this[_0xdd0d57(0x1ab)](_0xdd0d57(0x198)+_0x10237e+_0xdd0d57(0x1b0),_0xdd0d57(0x1d6),{'url':_0x48ea1c,'attributes':_0x39c5a3});return{'getId':async()=>(await _0x349290[_0xdd0d57(0x202)])[_0xdd0d57(0x1c9)](),'abortController':_0x349290[_0xdd0d57(0x218)]};}[_0x3fcda4(0x200)](_0x4ee769='en'){const _0x53c2db=_0x3fcda4,_0x55b701=new URLSearchParams();_0x55b701[_0x53c2db(0x1bb)](_0x53c2db(0x208),_0x4ee769);const _0x40a7f8=_0x53c2db(0x1a0)+_0x55b701[_0x53c2db(0x1df)](),_0x38869d=this[_0x53c2db(0x1ab)](_0x40a7f8,_0x53c2db(0x1a2));return{'list':async()=>await(await _0x38869d[_0x53c2db(0x202)])[_0x53c2db(0x1c9)](),'abortController':_0x38869d[_0x53c2db(0x218)]};}[_0x3fcda4(0x211)](_0x290e4c,_0x2cbe30){const _0x2e182b=_0x3fcda4,_0x361337=this[_0x2e182b(0x1ab)](_0x2e182b(0x198)+_0x290e4c+_0x2e182b(0x196)+_0x2cbe30,_0x2e182b(0x1f3));return{'execute':async()=>{const _0x41bcee=_0x2e182b;await _0x361337[_0x41bcee(0x202)];},'abortController':_0x361337[_0x2e182b(0x218)]};}[_0x3fcda4(0x1ff)](_0x39fb82,_0x3e49f1){const _0x115eb5=_0x3fcda4,_0x30ab68=this[_0x115eb5(0x1ab)](_0x115eb5(0x198)+_0x39fb82+_0x115eb5(0x1fc)+_0x3e49f1,_0x115eb5(0x1f3));return{'execute':async()=>{const _0x4c8d34=_0x115eb5;await _0x30ab68[_0x4c8d34(0x202)];},'abortController':_0x30ab68[_0x115eb5(0x218)]};}[_0x3fcda4(0x1ef)](_0x86adee,_0x355a96){const _0x3fa88f=_0x3fcda4,_0x2617c7=this[_0x3fa88f(0x1ab)](_0x3fa88f(0x198)+_0x86adee+_0x3fa88f(0x20f)+_0x355a96,_0x3fa88f(0x1f3));return{'execute':async()=>{const _0x461ba8=_0x3fa88f;await _0x2617c7[_0x461ba8(0x202)];},'abortController':_0x2617c7[_0x3fa88f(0x218)]};}[_0x3fcda4(0x206)]({reviewName:_0x56c538,content:_0x1b0955,args:_0x4e5ab2}){const _0x3d260a=_0x3fcda4,_0x504aec=this[_0x3d260a(0x1ab)](_0x3d260a(0x1ca)+_0x56c538+_0x3d260a(0x1f5),_0x3d260a(0x1d6),{'content':[{'type':_0x3d260a(0x1f4),'content':_0x1b0955}],'args':_0x4e5ab2});return{'getStream':async()=>{const _0x5582e9=_0x3d260a,_0x548651=(await _0x504aec[_0x5582e9(0x202)])[_0x5582e9(0x1d3)];return this[_0x5582e9(0x217)](_0x548651);},'abortController':_0x504aec[_0x3d260a(0x218)]};}[_0x3fcda4(0x197)]({content:_0x2a5b66,prompt:_0x5e648a,model:_0x5d0e51}){const _0x58ba0c=_0x3fcda4,_0xf347e=this[_0x58ba0c(0x1ab)](_0x58ba0c(0x19c),_0x58ba0c(0x1d6),{'content':[{'type':_0x58ba0c(0x1f4),'content':_0x2a5b66}],'prompt':_0x5e648a,'model':_0x5d0e51});return{'getStream':async()=>{const _0x4eb444=_0x58ba0c,_0xba6589=(await _0xf347e[_0x4eb444(0x202)])[_0x4eb444(0x1d3)];return this[_0x4eb444(0x217)](_0xba6589);},'abortController':_0xf347e[_0x58ba0c(0x218)]};}[_0x3fcda4(0x20a)](_0x3f04e2,_0x441e1a,_0x3deb6d){const _0x432d7e=_0x3fcda4,_0x1026c7=this[_0x432d7e(0x1ab)](_0x432d7e(0x198)+_0x3f04e2+_0x432d7e(0x1e6)+_0x441e1a+_0x432d7e(0x192),_0x432d7e(0x1e4),{'positiveCount':_0x3deb6d[_0x432d7e(0x1d4)],'totalCount':_0x3deb6d[_0x432d7e(0x1a6)],'modificationId':_0x3deb6d[_0x432d7e(0x1b1)]});return{'execute':async()=>{const _0x2be726=_0x432d7e;await _0x1026c7[_0x2be726(0x202)];},'abortController':_0x1026c7[_0x432d7e(0x218)]};}[_0x3fcda4(0x1ec)](_0xf0905,_0x29a2cf,_0x3f637f){const _0x258d3f=_0x3fcda4,_0x4d425a=this[_0x258d3f(0x1ab)](_0x258d3f(0x1bf)+_0xf0905+_0x258d3f(0x1cb)+_0x29a2cf+_0x258d3f(0x192),_0x258d3f(0x1e4),{'positiveCount':_0x3f637f[_0x258d3f(0x1d4)],'totalCount':_0x3f637f[_0x258d3f(0x1a6)]});return{'execute':async()=>{const _0x1a9b7f=_0x258d3f;await _0x4d425a[_0x1a9b7f(0x202)];},'abortController':_0x4d425a[_0x258d3f(0x218)]};}[_0x3fcda4(0x193)](_0xf3bf8,_0x367722){const _0xd4f630=_0x3fcda4,_0x92a657=this[_0xd4f630(0x1ab)](_0xd4f630(0x1fb)+_0xf3bf8+_0xd4f630(0x192),_0xd4f630(0x1e4),{'positiveCount':_0x367722[_0xd4f630(0x1d4)],'totalCount':_0x367722[_0xd4f630(0x1a6)]});return{'execute':async()=>{const _0x35d2f2=_0xd4f630;await _0x92a657[_0x35d2f2(0x202)];},'abortController':_0x92a657[_0xd4f630(0x218)]};}[_0x3fcda4(0x205)](_0x2f107c,_0x5cb066,_0x45c23b,_0x309c3c){const _0x67ecec=_0x3fcda4,_0x2fe165=this[_0x67ecec(0x1ab)](_0x67ecec(0x1ca)+_0x2f107c+_0x67ecec(0x1cb)+_0x5cb066+_0x67ecec(0x192),_0x67ecec(0x1e4),{'positiveCount':_0x45c23b[_0x67ecec(0x1d4)],'totalCount':_0x45c23b[_0x67ecec(0x1a6)],'dataId':_0x309c3c});return{'execute':async()=>{const _0x592223=_0x67ecec;await _0x2fe165[_0x592223(0x202)];},'abortController':_0x2fe165[_0x67ecec(0x218)]};}[_0x3fcda4(0x212)](_0x6f7169,_0x2080d9,_0x4b14d3){const _0x5d29e2=_0x3fcda4,_0x48b752=this[_0x5d29e2(0x1ab)](_0x5d29e2(0x1b9)+_0x6f7169+_0x5d29e2(0x192),_0x5d29e2(0x1e4),{'positiveCount':_0x2080d9[_0x5d29e2(0x1d4)],'totalCount':_0x2080d9[_0x5d29e2(0x1a6)],'dataId':_0x4b14d3});return{'execute':async()=>{const _0x1c43fc=_0x5d29e2;await _0x48b752[_0x1c43fc(0x202)];},'abortController':_0x48b752[_0x5d29e2(0x218)]};}[_0x3fcda4(0x1ab)](_0x43a609,_0x121d0f,_0x3fa836){const _0x4e7679=_0x3fcda4,_0x2d2828=new AbortController(),_0x5e6775=_0x3fa836 instanceof FormData,_0x1b6f65={'Authorization':_0x4e7679(0x1fa)+this[_0x4e7679(0x19a)]?.[_0x4e7679(0x1b2)]};_0x3fa836&&!_0x5e6775&&(_0x1b6f65[_0x4e7679(0x1cf)]=_0x4e7679(0x20e));const _0x1c0f0b={'method':_0x121d0f,'headers':_0x1b6f65,'signal':_0x2d2828[_0x4e7679(0x219)]};return _0x3fa836&&(_0x1c0f0b[_0x4e7679(0x1d3)]=_0x5e6775?_0x3fa836:JSON[_0x4e7679(0x1c7)](_0x3fa836)),{'request':fetch(''+this[_0x4e7679(0x216)]+_0x43a609,_0x1c0f0b)[_0x4e7679(0x1b7)](_0x526907=>{const _0x2089a9=_0x4e7679;this[_0x2089a9(0x1bd)](_0x526907);})[_0x4e7679(0x1fe)](_0x18dc0b=>_0x18dc0b['ok']?_0x18dc0b:_0x18dc0b[_0x4e7679(0x1c9)]()[_0x4e7679(0x1fe)](_0x359d98=>{const _0xfbc43=_0x4e7679;throw{'url':this[_0xfbc43(0x216)],'path':_0x43a609,'method':_0x121d0f,'body':_0x3fa836,'status':(_0x18dc0b||{})[_0xfbc43(0x1ad)],'statusText':(_0x18dc0b||{})[_0xfbc43(0x1c1)],'code':_0x359d98[_0xfbc43(0x1e2)],'message':_0x359d98[_0xfbc43(0x1c2)],'traceId':_0x359d98[_0xfbc43(0x19e)]};})),'abortController':_0x2d2828};}async*[_0x3fcda4(0x217)](_0x343ee2){const _0x4ec2ad=_0x3fcda4,_0x259942=[],_0x256d09=_0x343ee2[_0x4ec2ad(0x1c8)](),_0x542edf=_0x712941({'onError':_0x143b3f=>{const _0x3b221d=_0x4ec2ad;this[_0x3b221d(0x1bd)](_0x143b3f);},'onEvent':_0x91b9fe=>{const _0x342022=_0x4ec2ad;_0x91b9fe[_0x342022(0x1db)]=JSON[_0x342022(0x1dc)](_0x91b9fe[_0x342022(0x1db)]),_0x259942[_0x342022(0x18e)](_0x91b9fe);}});try{let _0xa71a30=!0x1;for(;!_0xa71a30;){const {done:_0x51b449,value:_0x124da5}=await _0x256d09[_0x4ec2ad(0x1c4)]();_0x51b449&&(_0xa71a30=!0x0),_0x542edf[_0x4ec2ad(0x190)](this[_0x4ec2ad(0x1da)][_0x4ec2ad(0x1ba)](_0x124da5,{'stream':!0x0})),yield*_0x259942,_0x259942[_0x4ec2ad(0x1e8)]=0x0;}}catch(_0x3b9b76){this[_0x4ec2ad(0x1bd)](_0x3b9b76);}finally{_0x256d09[_0x4ec2ad(0x195)](),_0x542edf[_0x4ec2ad(0x215)]();}}[_0x3fcda4(0x1bd)](_0x4a53e7){const _0x19c68b=_0x3fcda4;if(_0x4a53e7 instanceof _0x5c9a53)throw _0x4a53e7;if(_0x4a53e7 instanceof Error&&_0x19c68b(0x1af)===_0x4a53e7[_0x19c68b(0x18f)])throw new _0x5c9a53(_0x19c68b(0x1ce),this,{'originalError':_0x4a53e7});throw new _0x5c9a53(_0x19c68b(0x1be),this,{'originalError':_0x4a53e7});}}
|
|
23
|
+
const _0x47fb91=_0x2650;(function(_0x438aaa,_0x598610){const _0x16535c=_0x2650,_0x5406df=_0x438aaa();while(!![]){try{const _0x5a2795=-parseInt(_0x16535c(0x1d5))/0x1*(-parseInt(_0x16535c(0x1e3))/0x2)+parseInt(_0x16535c(0x239))/0x3+parseInt(_0x16535c(0x253))/0x4*(-parseInt(_0x16535c(0x251))/0x5)+parseInt(_0x16535c(0x200))/0x6*(-parseInt(_0x16535c(0x259))/0x7)+parseInt(_0x16535c(0x22a))/0x8+parseInt(_0x16535c(0x20b))/0x9+-parseInt(_0x16535c(0x1de))/0xa;if(_0x5a2795===_0x598610)break;else _0x5406df['push'](_0x5406df['shift']());}catch(_0x3cad55){_0x5406df['push'](_0x5406df['shift']());}}}(_0x25d4,0x8074f));import{createParser as _0x4434a8}from'eventsource-parser';import{ContextPlugin as _0x506264}from'ckeditor5/src/core.js';function _0x25d4(){const _0x2d376a=['/messages/','json','stringify','MAKE_TONE_CASUAL','/web-resources','_sendApiRequest','deleteDocument','1009495ExpncI','upsertAIActionRating','8ibUGIs','ai.serviceUrl','application/json','make-tone-formal','ai-request-aborted','/messages','4823ilBZbm','statusText','limit','AbortError','continue','then','fetchConversationMessages','POST','PUT','token','100','getReader','updateConversation','releaseLock','27226PkeZWu','/actions/system/','feed','length','/documents/','excludeEmpty','group','executeAction','positiveCount','22604280yqCldV','items','fix-grammar','/conversations?','push','74lMufIe','/conversations','attributes','context','/files/','Bearer\x20','_handleError','read','uploadFile','keys','isPremiumPlugin','/ratings','/calls/','modificationId','/models/1?','totalCount','search','catch','deleteConversation','/reviews/system/','make-tone-casual','data','CloudServices','fetchConversation','uploadUrl','/files','_getStreamReader','pluginName','deleteWebResource','1770ttmRaX','/web-resources/','callSystemReview','CONTINUE','init','/documents','/calls','/actions/custom/calls','get','config','FIX_GRAMMAR','7293042FLaaiE','name','fetchConversations','message','body','callCustomReview','isOfficialPlugin','ai-missing-token','/reviews/custom/calls/','decode','/actions/custom/calls/','text','MAKE_LONGER','MAKE_SHORTER','fetchDocument','reset','toString','traceId','getModels','file','/conversations/','IMPROVE_WRITING','signal','GET','/reviews/custom/calls','AIConnector','make-longer','uploadDocument','_apiUrl','plugins','_token','7648872cZgXNF','upsertCustomAIReviewRating','_decoder','make-shorter','append','PATCH','executeCustomAction','parse','queryAssistant','ai-request-failed','upsertAIChatRating','request','abortController','code','TRANSLATE','1859493SzjpOS','define','true','Content-Type','DELETE','MAKE_TONE_FORMAL','status','https://ai.cke-cs.com/v1','translate','deleteFile','upsertCustomAIActionRating','requires','startConversation','value','language','upsertAIReviewRating','improve-writing'];_0x25d4=function(){return _0x2d376a;};return _0x25d4();}import{CKEditorError as _0x31869f}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4dc2ab){const _0x2d7435=_0x2650;_0x4dc2ab[_0x2d7435(0x203)]=_0x2d7435(0x25d),_0x4dc2ab[_0x2d7435(0x20a)]=_0x2d7435(0x1e0),_0x4dc2ab[_0x2d7435(0x220)]=_0x2d7435(0x249),_0x4dc2ab[_0x2d7435(0x217)]=_0x2d7435(0x225),_0x4dc2ab[_0x2d7435(0x218)]=_0x2d7435(0x22d),_0x4dc2ab[_0x2d7435(0x24d)]=_0x2d7435(0x1f7),_0x4dc2ab[_0x2d7435(0x23e)]=_0x2d7435(0x256),_0x4dc2ab[_0x2d7435(0x238)]=_0x2d7435(0x241);}(AIActionsNames||(AIActionsNames={}));function _0x2650(_0x1c9edd,_0x11a73e){const _0x25d42a=_0x25d4();return _0x2650=function(_0x265007,_0x4a96c8){_0x265007=_0x265007-0x1d4;let _0x1329d7=_0x25d42a[_0x265007];return _0x1329d7;},_0x2650(_0x1c9edd,_0x11a73e);}export class AIConnector extends _0x506264{[_0x47fb91(0x227)];[_0x47fb91(0x229)];[_0x47fb91(0x22c)];static get[_0x47fb91(0x244)](){const _0x3f5631=_0x47fb91;return[_0x3f5631(0x1f9)];}static get[_0x47fb91(0x1fe)](){const _0x1b7feb=_0x47fb91;return _0x1b7feb(0x224);}static get[_0x47fb91(0x211)](){return!0x0;}static get[_0x47fb91(0x1ed)](){return!0x0;}constructor(_0x6df2e7){const _0x53410d=_0x47fb91;super(_0x6df2e7),this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x23a)](_0x53410d(0x254),_0x53410d(0x240)),this[_0x53410d(0x227)]=this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x208)](_0x53410d(0x254)),this[_0x53410d(0x229)]=null,this[_0x53410d(0x22c)]=new TextDecoder();}[_0x47fb91(0x204)](){const _0x97589a=_0x47fb91,_0x592c41=this[_0x97589a(0x1e6)][_0x97589a(0x228)][_0x97589a(0x208)](_0x97589a(0x1f9));if(!_0x592c41[_0x97589a(0x262)])throw new _0x31869f(_0x97589a(0x212),this);this[_0x97589a(0x229)]=_0x592c41[_0x97589a(0x262)];}[_0x47fb91(0x245)](_0x365241,_0x13aff1){const _0x379ba9=_0x47fb91,_0x4ee629=this[_0x379ba9(0x24f)](_0x379ba9(0x1e4),_0x379ba9(0x260),{'id':_0x365241,'group':_0x13aff1});return{'getConversation':async()=>(await _0x4ee629[_0x379ba9(0x235)])[_0x379ba9(0x24b)](),'abortController':_0x4ee629[_0x379ba9(0x236)]};}[_0x47fb91(0x232)]({message:_0x587f47,conversationId:_0x477a4c,parts:_0x4a25e5,capabilities:_0x47bf56,model:_0x4266c4,quickActionData:_0x367ec1}){const _0x455235=_0x47fb91,_0x2a3da5={..._0x367ec1&&{'quickActionData':_0x367ec1}},_0x440150={'prompt':_0x587f47,'content':_0x4a25e5,'model':_0x4266c4,..._0x47bf56&&{'capabilities':_0x47bf56},...Object[_0x455235(0x1ec)](_0x2a3da5)[_0x455235(0x1d8)]>0x0&&{'attributes':_0x2a3da5}},_0x22ffcf=this[_0x455235(0x24f)](_0x455235(0x21f)+_0x477a4c+_0x455235(0x258),_0x455235(0x260),_0x440150);return{'getStream':async()=>{const _0x553385=_0x455235,_0x425cd7=(await _0x22ffcf[_0x553385(0x235)])[_0x553385(0x20f)];return this[_0x553385(0x1fd)](_0x425cd7);},'abortController':_0x22ffcf[_0x455235(0x236)]};}[_0x47fb91(0x230)]({content:_0x3c1050,message:_0x574495,model:_0x36673e,outputFormat:_0x5aaa71}){const _0x1abdc0=_0x47fb91,_0x39cc2f={'content':[{'type':_0x1abdc0(0x216),'content':_0x3c1050}],'prompt':_0x574495,'model':_0x36673e,'outputFormat':_0x5aaa71},_0x4ebb1d=this[_0x1abdc0(0x24f)](_0x1abdc0(0x207),_0x1abdc0(0x260),_0x39cc2f);return{'getStream':async()=>{const _0x41e953=_0x1abdc0,_0x470f6a=(await _0x4ebb1d[_0x41e953(0x235)])[_0x41e953(0x20f)];return this[_0x41e953(0x1fd)](_0x470f6a);},'abortController':_0x4ebb1d[_0x1abdc0(0x236)]};}[_0x47fb91(0x1dc)]({actionName:_0x524078,content:_0x1949df,args:_0x18fe22}){const _0x583899=_0x47fb91,_0x66ce49={'content':[{'type':_0x583899(0x216),'content':_0x1949df}],'args':_0x18fe22},_0x376c57=this[_0x583899(0x24f)](_0x583899(0x1d6)+_0x524078+_0x583899(0x206),_0x583899(0x260),_0x66ce49);return{'getStream':async()=>{const _0x573dab=_0x583899,_0x4b0445=(await _0x376c57[_0x573dab(0x235)])[_0x573dab(0x20f)];return this[_0x573dab(0x1fd)](_0x4b0445);},'abortController':_0x376c57[_0x583899(0x236)]};}[_0x47fb91(0x1eb)](_0x193e04,_0x2cd3ff,_0x248789){const _0x30b950=_0x47fb91,_0x324df2=new FormData();_0x324df2[_0x30b950(0x22e)](_0x30b950(0x21e),_0x2cd3ff,_0x2cd3ff[_0x30b950(0x20c)]),_0x248789&&_0x324df2[_0x30b950(0x22e)](_0x30b950(0x1e5),JSON[_0x30b950(0x24c)](_0x248789));const _0x32ce09=this[_0x30b950(0x24f)](_0x30b950(0x21f)+_0x193e04+_0x30b950(0x1fc),_0x30b950(0x260),_0x324df2);return{'getId':async()=>(await _0x32ce09[_0x30b950(0x235)])[_0x30b950(0x24b)](),'abortController':_0x32ce09[_0x30b950(0x236)]};}[_0x47fb91(0x219)](_0x1556ca,_0x57008f){const _0x275dfc=_0x47fb91,_0x3d567e=this[_0x275dfc(0x24f)](_0x275dfc(0x21f)+_0x1556ca+_0x275dfc(0x1d9)+_0x57008f,_0x275dfc(0x222));return{'getDocument':async()=>(await _0x3d567e[_0x275dfc(0x235)])[_0x275dfc(0x24b)](),'abortController':_0x3d567e[_0x275dfc(0x236)]};}[_0x47fb91(0x226)](_0x16001b,_0x2139ae,_0xf90be9){const _0x49c5e2=_0x47fb91,_0x1ce7c6={'content':_0x2139ae};_0xf90be9&&(_0x1ce7c6[_0x49c5e2(0x1e5)]=_0xf90be9);const _0x4d705d=this[_0x49c5e2(0x24f)](_0x49c5e2(0x21f)+_0x16001b+_0x49c5e2(0x205),_0x49c5e2(0x260),_0x1ce7c6);return{'getId':async()=>(await _0x4d705d[_0x49c5e2(0x235)])[_0x49c5e2(0x24b)](),'abortController':_0x4d705d[_0x49c5e2(0x236)]};}[_0x47fb91(0x20d)](_0x31ffcf,_0x5548b9){const _0x211421=_0x47fb91,_0x1b2834=new URLSearchParams();_0x1b2834[_0x211421(0x22e)](_0x211421(0x1da),_0x211421(0x23b)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x25b),_0x211421(0x263)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x1db),_0x31ffcf),_0x5548b9&&_0x1b2834[_0x211421(0x22e)](_0x211421(0x1f3),_0x5548b9);const _0x3199c3=this[_0x211421(0x24f)](_0x211421(0x1e1)+_0x1b2834[_0x211421(0x21b)](),_0x211421(0x222));return{'getConversations':async()=>{const _0x4976c4=_0x211421,_0x55efdc=await _0x3199c3[_0x4976c4(0x235)];return(await _0x55efdc[_0x4976c4(0x24b)]())[_0x4976c4(0x1df)];},'abortController':_0x3199c3[_0x211421(0x236)]};}[_0x47fb91(0x1f5)](_0x1468c1){const _0xda8c3c=_0x47fb91,_0x4b7191=this[_0xda8c3c(0x24f)](_0xda8c3c(0x21f)+_0x1468c1,_0xda8c3c(0x23d));return{'execute':async()=>{const _0x1cd4ba=_0xda8c3c;await _0x4b7191[_0x1cd4ba(0x235)];},'abortController':_0x4b7191[_0xda8c3c(0x236)]};}[_0x47fb91(0x265)](_0x2a7f2f,_0x562809){const _0x1841db=_0x47fb91,_0x103f0f=this[_0x1841db(0x24f)](_0x1841db(0x21f)+_0x2a7f2f,_0x1841db(0x22f),_0x562809);return{'getResult':async()=>(await _0x103f0f[_0x1841db(0x235)],_0x562809),'abortController':_0x103f0f[_0x1841db(0x236)]};}[_0x47fb91(0x1fa)](_0x32b8d1){const _0x2c7976=_0x47fb91,_0x359632=this[_0x2c7976(0x24f)](_0x2c7976(0x21f)+_0x32b8d1,_0x2c7976(0x222));return{'getConversation':async()=>(await _0x359632[_0x2c7976(0x235)])[_0x2c7976(0x24b)](),'abortController':_0x359632[_0x2c7976(0x236)]};}[_0x47fb91(0x25f)](_0x237e13){const _0x13c22b=_0x47fb91,_0x2bb493=this[_0x13c22b(0x24f)](_0x13c22b(0x21f)+_0x237e13+_0x13c22b(0x258),_0x13c22b(0x222));return{'getMessages':async()=>{const _0x4206f8=_0x13c22b,_0x31f1f5=await _0x2bb493[_0x4206f8(0x235)];return(await _0x31f1f5[_0x4206f8(0x24b)]())[_0x4206f8(0x1df)];},'abortController':_0x2bb493[_0x13c22b(0x236)]};}[_0x47fb91(0x1fb)](_0x41bf1c,_0x44d16a,_0x3b0081){const _0x4bcad3=_0x47fb91,_0xd5e7d8=this[_0x4bcad3(0x24f)](_0x4bcad3(0x21f)+_0x41bf1c+_0x4bcad3(0x24e),_0x4bcad3(0x260),{'url':_0x44d16a,'attributes':_0x3b0081});return{'getId':async()=>(await _0xd5e7d8[_0x4bcad3(0x235)])[_0x4bcad3(0x24b)](),'abortController':_0xd5e7d8[_0x4bcad3(0x236)]};}[_0x47fb91(0x21d)](_0x3aa6c2='en'){const _0x244b4f=_0x47fb91,_0x572245=new URLSearchParams();_0x572245[_0x244b4f(0x22e)](_0x244b4f(0x247),_0x3aa6c2);const _0x374531=_0x244b4f(0x1f1)+_0x572245[_0x244b4f(0x21b)](),_0x78703a=this[_0x244b4f(0x24f)](_0x374531,_0x244b4f(0x222));return{'list':async()=>await(await _0x78703a[_0x244b4f(0x235)])[_0x244b4f(0x24b)](),'abortController':_0x78703a[_0x244b4f(0x236)]};}[_0x47fb91(0x242)](_0x4bebe5,_0x1225ce){const _0x1c56c8=_0x47fb91,_0x176c74=this[_0x1c56c8(0x24f)](_0x1c56c8(0x21f)+_0x4bebe5+_0x1c56c8(0x1e7)+_0x1225ce,_0x1c56c8(0x23d));return{'execute':async()=>{const _0x42062c=_0x1c56c8;await _0x176c74[_0x42062c(0x235)];},'abortController':_0x176c74[_0x1c56c8(0x236)]};}[_0x47fb91(0x250)](_0x1ec6bb,_0x1ad675){const _0x131619=_0x47fb91,_0x5cd82f=this[_0x131619(0x24f)](_0x131619(0x21f)+_0x1ec6bb+_0x131619(0x1d9)+_0x1ad675,_0x131619(0x23d));return{'execute':async()=>{const _0x48555e=_0x131619;await _0x5cd82f[_0x48555e(0x235)];},'abortController':_0x5cd82f[_0x131619(0x236)]};}[_0x47fb91(0x1ff)](_0x507c06,_0x794d3c){const _0x5273f8=_0x47fb91,_0x1b5d9e=this[_0x5273f8(0x24f)](_0x5273f8(0x21f)+_0x507c06+_0x5273f8(0x201)+_0x794d3c,_0x5273f8(0x23d));return{'execute':async()=>{const _0x2d6630=_0x5273f8;await _0x1b5d9e[_0x2d6630(0x235)];},'abortController':_0x1b5d9e[_0x5273f8(0x236)]};}[_0x47fb91(0x202)]({reviewName:_0xe047cf,content:_0x5615d2,args:_0xa4dac4}){const _0x351f98=_0x47fb91,_0x23b880=this[_0x351f98(0x24f)](_0x351f98(0x1f6)+_0xe047cf+_0x351f98(0x206),_0x351f98(0x260),{'content':[{'type':_0x351f98(0x216),'content':_0x5615d2}],'args':_0xa4dac4});return{'getStream':async()=>{const _0x1e8b16=_0x351f98,_0x376b5f=(await _0x23b880[_0x1e8b16(0x235)])[_0x1e8b16(0x20f)];return this[_0x1e8b16(0x1fd)](_0x376b5f);},'abortController':_0x23b880[_0x351f98(0x236)]};}[_0x47fb91(0x210)]({content:_0x1fc615,prompt:_0x2f806f,model:_0xfdbcab}){const _0x3bf28d=_0x47fb91,_0x1d35a2=this[_0x3bf28d(0x24f)](_0x3bf28d(0x223),_0x3bf28d(0x260),{'content':[{'type':_0x3bf28d(0x216),'content':_0x1fc615}],'prompt':_0x2f806f,'model':_0xfdbcab});return{'getStream':async()=>{const _0x3f2e22=_0x3bf28d,_0x3e3ec3=(await _0x1d35a2[_0x3f2e22(0x235)])[_0x3f2e22(0x20f)];return this[_0x3f2e22(0x1fd)](_0x3e3ec3);},'abortController':_0x1d35a2[_0x3bf28d(0x236)]};}[_0x47fb91(0x234)](_0x2ba8af,_0x1a4a61,_0x1be450){const _0x3a83ae=_0x47fb91,_0x45084c=this[_0x3a83ae(0x24f)](_0x3a83ae(0x21f)+_0x2ba8af+_0x3a83ae(0x24a)+_0x1a4a61+_0x3a83ae(0x1ee),_0x3a83ae(0x261),{'positiveCount':_0x1be450[_0x3a83ae(0x1dd)],'totalCount':_0x1be450[_0x3a83ae(0x1f2)],'modificationId':_0x1be450[_0x3a83ae(0x1f0)]});return{'execute':async()=>{const _0x1dc78c=_0x3a83ae;await _0x45084c[_0x1dc78c(0x235)];},'abortController':_0x45084c[_0x3a83ae(0x236)]};}[_0x47fb91(0x252)](_0x4c51b6,_0x3e5cda,_0x33331d){const _0x5ceeb4=_0x47fb91,_0x436665=this[_0x5ceeb4(0x24f)](_0x5ceeb4(0x1d6)+_0x4c51b6+_0x5ceeb4(0x1ef)+_0x3e5cda+_0x5ceeb4(0x1ee),_0x5ceeb4(0x261),{'positiveCount':_0x33331d[_0x5ceeb4(0x1dd)],'totalCount':_0x33331d[_0x5ceeb4(0x1f2)]});return{'execute':async()=>{const _0x3945d4=_0x5ceeb4;await _0x436665[_0x3945d4(0x235)];},'abortController':_0x436665[_0x5ceeb4(0x236)]};}[_0x47fb91(0x243)](_0x552a88,_0x5a352e){const _0x4fef1f=_0x47fb91,_0x3e7504=this[_0x4fef1f(0x24f)](_0x4fef1f(0x215)+_0x552a88+_0x4fef1f(0x1ee),_0x4fef1f(0x261),{'positiveCount':_0x5a352e[_0x4fef1f(0x1dd)],'totalCount':_0x5a352e[_0x4fef1f(0x1f2)]});return{'execute':async()=>{const _0x825aba=_0x4fef1f;await _0x3e7504[_0x825aba(0x235)];},'abortController':_0x3e7504[_0x4fef1f(0x236)]};}[_0x47fb91(0x248)](_0x332dbe,_0xb9070,_0x864b14,_0x3540d9){const _0x1a10fd=_0x47fb91,_0x166f8c=this[_0x1a10fd(0x24f)](_0x1a10fd(0x1f6)+_0x332dbe+_0x1a10fd(0x1ef)+_0xb9070+_0x1a10fd(0x1ee),_0x1a10fd(0x261),{'positiveCount':_0x864b14[_0x1a10fd(0x1dd)],'totalCount':_0x864b14[_0x1a10fd(0x1f2)],'dataId':_0x3540d9});return{'execute':async()=>{const _0x2b4c5f=_0x1a10fd;await _0x166f8c[_0x2b4c5f(0x235)];},'abortController':_0x166f8c[_0x1a10fd(0x236)]};}[_0x47fb91(0x22b)](_0x2ccf8e,_0x38e811,_0x370c0a){const _0x2996e8=_0x47fb91,_0x4b02c2=this[_0x2996e8(0x24f)](_0x2996e8(0x213)+_0x2ccf8e+_0x2996e8(0x1ee),_0x2996e8(0x261),{'positiveCount':_0x38e811[_0x2996e8(0x1dd)],'totalCount':_0x38e811[_0x2996e8(0x1f2)],'dataId':_0x370c0a});return{'execute':async()=>{const _0xa90fe8=_0x2996e8;await _0x4b02c2[_0xa90fe8(0x235)];},'abortController':_0x4b02c2[_0x2996e8(0x236)]};}[_0x47fb91(0x24f)](_0x2d00bd,_0x1eb38c,_0x1697d3){const _0x13f1a2=_0x47fb91,_0x221849=new AbortController(),_0x120aff=_0x1697d3 instanceof FormData,_0x31d02a={'Authorization':_0x13f1a2(0x1e8)+this[_0x13f1a2(0x229)]?.[_0x13f1a2(0x246)]};_0x1697d3&&!_0x120aff&&(_0x31d02a[_0x13f1a2(0x23c)]=_0x13f1a2(0x255));const _0x4a9e5d={'method':_0x1eb38c,'headers':_0x31d02a,'signal':_0x221849[_0x13f1a2(0x221)]};return _0x1697d3&&(_0x4a9e5d[_0x13f1a2(0x20f)]=_0x120aff?_0x1697d3:JSON[_0x13f1a2(0x24c)](_0x1697d3)),{'request':fetch(''+this[_0x13f1a2(0x227)]+_0x2d00bd,_0x4a9e5d)[_0x13f1a2(0x1f4)](_0x51d6c4=>{const _0x317084=_0x13f1a2;this[_0x317084(0x1e9)](_0x51d6c4);})[_0x13f1a2(0x25e)](_0x302757=>_0x302757['ok']?_0x302757:_0x302757[_0x13f1a2(0x24b)]()[_0x13f1a2(0x25e)](_0x50456e=>{const _0x499749=_0x13f1a2;throw{'url':this[_0x499749(0x227)],'path':_0x2d00bd,'method':_0x1eb38c,'body':_0x1697d3,'status':(_0x302757||{})[_0x499749(0x23f)],'statusText':(_0x302757||{})[_0x499749(0x25a)],'code':_0x50456e[_0x499749(0x237)],'message':_0x50456e[_0x499749(0x20e)],'traceId':_0x50456e[_0x499749(0x21c)]};})),'abortController':_0x221849};}async*[_0x47fb91(0x1fd)](_0x332929){const _0x163daa=_0x47fb91,_0x5d59d0=[],_0x5b34a2=_0x332929[_0x163daa(0x264)](),_0x46d2f9=_0x4434a8({'onError':_0x345b38=>{const _0x295e12=_0x163daa;this[_0x295e12(0x1e9)](_0x345b38);},'onEvent':_0x29319b=>{const _0x123505=_0x163daa;_0x29319b[_0x123505(0x1f8)]=JSON[_0x123505(0x231)](_0x29319b[_0x123505(0x1f8)]),_0x5d59d0[_0x123505(0x1e2)](_0x29319b);}});try{let _0xfafdfc=!0x1;for(;!_0xfafdfc;){const {done:_0x397dfb,value:_0xc2ba96}=await _0x5b34a2[_0x163daa(0x1ea)]();_0x397dfb&&(_0xfafdfc=!0x0),_0x46d2f9[_0x163daa(0x1d7)](this[_0x163daa(0x22c)][_0x163daa(0x214)](_0xc2ba96,{'stream':!0x0})),yield*_0x5d59d0,_0x5d59d0[_0x163daa(0x1d8)]=0x0;}}catch(_0x11f77a){this[_0x163daa(0x1e9)](_0x11f77a);}finally{_0x5b34a2[_0x163daa(0x1d4)](),_0x46d2f9[_0x163daa(0x21a)]();}}[_0x47fb91(0x1e9)](_0x3d530d){const _0x18b235=_0x47fb91;if(_0x3d530d instanceof _0x31869f)throw _0x3d530d;if(_0x3d530d instanceof Error&&_0x18b235(0x25c)===_0x3d530d[_0x18b235(0x20c)])throw new _0x31869f(_0x18b235(0x257),this,{'originalError':_0x3d530d});throw new _0x31869f(_0x18b235(0x233),this,{'originalError':_0x3d530d});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2e2a82=_0x31a7;(function(_0x154dd1,_0x2d2a6f){const _0x52447b=_0x31a7,_0x5514dc=_0x154dd1();while(!![]){try{const _0x1e6237=parseInt(_0x52447b(0x21d))/0x1*(-parseInt(_0x52447b(0x1ef))/0x2)+parseInt(_0x52447b(0x1f5))/0x3*(-parseInt(_0x52447b(0x22e))/0x4)+parseInt(_0x52447b(0x231))/0x5*(-parseInt(_0x52447b(0x1e5))/0x6)+-parseInt(_0x52447b(0x20c))/0x7*(parseInt(_0x52447b(0x1fb))/0x8)+-parseInt(_0x52447b(0x212))/0x9*(parseInt(_0x52447b(0x1df))/0xa)+parseInt(_0x52447b(0x1f9))/0xb*(-parseInt(_0x52447b(0x1ed))/0xc)+parseInt(_0x52447b(0x1e6))/0xd;if(_0x1e6237===_0x2d2a6f)break;else _0x5514dc['push'](_0x5514dc['shift']());}catch(_0x43ac74){_0x5514dc['push'](_0x5514dc['shift']());}}}(_0x2a72,0x188ad));import{ViewDowncastWriter as _0x5a8c2e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3d5c01,Editor as _0x5230d9}from'ckeditor5/src/core.js';function _0x2a72(){const _0x14688d=['emptyElement','model','get','isPremiumPlugin','start','7698isxBfk','markers','isAtEnd','data','1338689IyjxOQ','push','9768xvRmLv','setAttribute','toView','add','_integrateEditor','has',':end></','isOpening','_displayedFakeSelectionId','from','_nextDataId','indexOf','editors','ai-selection:','createUIElement',':end>','getWalker','518mQQgKy','plugins','context','listenTo','markerToHighlight','_displayedFakeSelectionLocked','31113FKBiHZ','AIEditing','showFakeVisualSelection','getMarkersGroup','isOfficialPlugin',':start></','getRoot','getLastMatchingPosition','selection','removeMarker','length','23esrUrU','getChildren','addMarker','data-id','isContent','hideFakeVisualSelection','random','getSelectedContent','end','$textProxy',':start>','view','getStart','editingDowncast','change','toData','afterInit','4SlAsnl','isAfter','fromCharCode','4645eStHEs','conversion','pluginName','ready','getDocumentData','getSelection','join','markerToElement','ck-ai-assistant-ui_theme','modelToViewWithIds','name','floor','substring','isBefore','element','sort','trim','dataDowncast','for','_getMarkersInDocumentOrder','getSelectionText','removeAllRanges','ai-selection','sessionId','editing','ck-fake-ai-selection','220BYycnk','createRange','_setDataIdsOnChildren','markerName','createRangeIn','version','348gSlivl','6944067dztziZ','processor','_sessionId','schema','containerElement','document','RealTimeCollaborationClient','12kxFatf','convertAiChatSelectionMarker','7746efHYGI'];_0x2a72=function(){return _0x14688d;};return _0x2a72();}function _0x31a7(_0x3dba41,_0x240d09){const _0x2a72d3=_0x2a72();return _0x31a7=function(_0x31a7e1,_0x1214e9){_0x31a7e1=_0x31a7e1-0x1d9;let _0x220aea=_0x2a72d3[_0x31a7e1];return _0x220aea;},_0x31a7(_0x3dba41,_0x240d09);}import{uid as _0x2521c4}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x234b99}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2e2a82(0x1db);export class AIEditing extends _0x3d5c01{[_0x2e2a82(0x203)]=null;[_0x2e2a82(0x211)]=!0x1;[_0x2e2a82(0x1e8)];static get[_0x2e2a82(0x233)](){const _0x446382=_0x2e2a82;return _0x446382(0x213);}static get[_0x2e2a82(0x216)](){return!0x0;}static get[_0x2e2a82(0x1f3)](){return!0x0;}get[_0x2e2a82(0x1dc)](){const _0x2dd237=_0x2e2a82;if(!this[_0x2dd237(0x1e8)]){const _0x435df3=_0x234b99(this[_0x2dd237(0x20e)]),_0x5af881=_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x200)](_0x2dd237(0x1ec))&&_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x1f2)](_0x2dd237(0x1ec))[_0x2dd237(0x1dc)];this[_0x2dd237(0x1e8)]=_0x5af881||_0x2521c4();}return this[_0x2dd237(0x1e8)];}[_0x2e2a82(0x235)](){const _0x342ac0=_0x2e2a82,_0xf0ba50=_0x234b99(this[_0x342ac0(0x20e)]),_0x462dd5=_0xf0ba50[_0x342ac0(0x1f1)],_0x50fb39=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1fd)](_0x462dd5[_0x342ac0(0x1eb)][_0x342ac0(0x218)](),{'convertAiChatSelectionMarker':!0x0}),_0x3d3dbc=new _0x5a8c2e(_0xf0ba50[_0x342ac0(0x1dd)][_0x342ac0(0x228)][_0x342ac0(0x1eb)]);this[_0x342ac0(0x1e1)](_0x50fb39,_0x3d3dbc);let _0x4fa8ca=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1e7)][_0x342ac0(0x22c)](_0x50fb39);const _0x549545=this[_0x342ac0(0x244)](),_0x2f0e5a=[];for(const _0x3b3964 of _0x549545){const _0x184fc1='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x217)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x227),_0x269b43=_0x4fa8ca[_0x342ac0(0x206)](_0x184fc1);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x269b43)+_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43+_0x184fc1[_0x342ac0(0x21c)]);const _0x28ceed='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x201)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x20a),_0x31be8e=_0x4fa8ca[_0x342ac0(0x206)](_0x28ceed);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x31be8e)+_0x4fa8ca[_0x342ac0(0x23d)](_0x31be8e+_0x28ceed[_0x342ac0(0x21c)]),_0x2f0e5a[_0x342ac0(0x1fa)]({'markerName':_0x3b3964[_0x342ac0(0x23b)],'start':_0x269b43,'end':_0x31be8e,'htmlFragment':_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43,_0x31be8e)});}return{'content':_0x4fa8ca,'version':_0xf0ba50[_0x342ac0(0x1f1)][_0x342ac0(0x1eb)][_0x342ac0(0x1e4)],'sessionId':this[_0x342ac0(0x1dc)],'selections':_0x2f0e5a};}async[_0x2e2a82(0x22d)](){const _0x3bc5f6=_0x2e2a82;this[_0x3bc5f6(0x20e)]instanceof _0x5230d9?this[_0x3bc5f6(0x1ff)](this[_0x3bc5f6(0x20e)]):this[_0x3bc5f6(0x20f)](this[_0x3bc5f6(0x20e)][_0x3bc5f6(0x207)],_0x3bc5f6(0x1fe),(_0x5e77ac,_0x106539)=>{const _0x53953f=_0x3bc5f6;_0x106539['on'](_0x53953f(0x234),()=>{const _0x9f74d1=_0x53953f;this[_0x9f74d1(0x1ff)](_0x106539);});});}[_0x2e2a82(0x1ff)](_0x26acb6){const _0xe15d99=_0x2e2a82;_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x22a))[_0xe15d99(0x210)]({'model':_0xe15d99(0x1db),'view':{'classes':[_0xe15d99(0x1de),_0xe15d99(0x239)],'priority':0xc}}),_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x242))[_0xe15d99(0x238)]({'model':_0xe15d99(0x1db),'view':(_0x42eaad,{writer:_0x3e48ab,options:_0x323ea0})=>_0x323ea0[_0xe15d99(0x1ee)]?_0x3e48ab[_0xe15d99(0x209)](_0x42eaad[_0xe15d99(0x1e2)]+':'+(_0x42eaad[_0xe15d99(0x202)]?_0xe15d99(0x1f4):_0xe15d99(0x225))):null});}[_0x2e2a82(0x214)](_0x2c0135,_0x39c573,_0x193f8a=!0x1,_0x3fb6be=!0x1){const _0x3f1b99=_0x2e2a82;if(this[_0x3f1b99(0x211)]&&!_0x3fb6be)return!0x1;const _0x1ac140=_0x234b99(this[_0x3f1b99(0x20e)])[_0x3f1b99(0x1f1)];return _0x1ac140[_0x3f1b99(0x22b)](_0x25b8ff=>{const _0x23c411=_0x3f1b99;this[_0x23c411(0x203)]&&this[_0x23c411(0x222)](this[_0x23c411(0x203)]),this[_0x23c411(0x203)]=_0x39c573,this[_0x23c411(0x211)]=_0x193f8a;let _0x2d3c02=0x0;for(let _0x23c76b of _0x2c0135){const _0x1bbcdf=_0x23c411(0x208)+_0x2d3c02;if(_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x1f7)]){const _0x26da0e=_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x219)](({item:_0x543dc5})=>!_0x1ac140[_0x23c411(0x1e9)][_0x23c411(0x221)](_0x543dc5),{'boundaries':_0x23c76b});_0x23c76b=_0x25b8ff[_0x23c411(0x1e0)](_0x26da0e,_0x23c76b[_0x23c411(0x225)]);}_0x25b8ff[_0x23c411(0x21f)](_0x1bbcdf,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x23c76b}),_0x2d3c02++;}}),window[_0x3f1b99(0x236)]()?.[_0x3f1b99(0x1da)](),!0x0;}[_0x2e2a82(0x222)](_0x53aaa8){const _0x2e9881=_0x2e2a82;if(this[_0x2e9881(0x203)]!=_0x53aaa8)return!0x1;this[_0x2e9881(0x203)]=null,this[_0x2e9881(0x211)]=!0x1;const _0xbc825b=_0x234b99(this[_0x2e9881(0x20e)]),_0x4331a4=_0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x1f6)][_0x2e9881(0x215)](_0x2e9881(0x1db));return _0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x22b)](_0x1deadd=>{const _0x47d0c6=_0x2e9881;for(const _0x5e3965 of _0x4331a4)_0x1deadd[_0x47d0c6(0x21b)](_0x5e3965);}),!0x0;}[_0x2e2a82(0x23a)](_0x51fa82){const _0x401031=_0x2e2a82,_0x12c0a3=_0x234b99(this[_0x401031(0x20e)]),_0x4d7d15=_0x12c0a3[_0x401031(0x1f8)][_0x401031(0x1fd)](_0x51fa82),_0x239f23=new _0x5a8c2e(_0x12c0a3[_0x401031(0x1dd)][_0x401031(0x228)][_0x401031(0x1eb)]);return this[_0x401031(0x1e1)](_0x4d7d15,_0x239f23),_0x4d7d15;}[_0x2e2a82(0x1e1)](_0x5c3452,_0x1b2e7e){const _0x24cb7a=_0x2e2a82;let _0x26386a=!0x1;const _0x3168fa=new Set();for(const _0x39bd1e of _0x5c3452[_0x24cb7a(0x21e)]()){const _0x20bd27=_0x39bd1e['is'](_0x24cb7a(0x1f0))||_0x39bd1e['is'](_0x24cb7a(0x1ea));if(!_0x39bd1e['is'](_0x24cb7a(0x23f)))continue;(this[_0x24cb7a(0x1e1)](_0x39bd1e,_0x1b2e7e)||_0x20bd27)&&(_0x1b2e7e[_0x24cb7a(0x1fc)](_0x24cb7a(0x220),this[_0x24cb7a(0x205)](_0x3168fa),_0x39bd1e),_0x26386a=!0x0);}return _0x26386a;}[_0x2e2a82(0x205)](_0x9539bb){const _0x5859ef=_0x2e2a82;let _0x97a647;do{_0x97a647='';for(let _0x5f04a8=0x0;_0x5f04a8<0x4;_0x5f04a8++)_0x97a647+=String[_0x5859ef(0x230)](0x61+Math[_0x5859ef(0x23c)](0x1a*Math[_0x5859ef(0x223)]()));}while(_0x9539bb[_0x5859ef(0x200)](_0x97a647));return _0x9539bb[_0x5859ef(0x1fe)](_0x97a647),_0x97a647;}[_0x2e2a82(0x1d9)](){const _0x16eebb=_0x2e2a82,{model:_0x41ab16}=_0x234b99(this[_0x16eebb(0x20e)]),_0x19a68f=_0x41ab16[_0x16eebb(0x1eb)][_0x16eebb(0x21a)],_0x5f0f37=_0x41ab16[_0x16eebb(0x224)](_0x19a68f),_0x435415=[],_0x2e0ee6=_0x41ab16[_0x16eebb(0x1e3)](_0x5f0f37)[_0x16eebb(0x20b)]();for(const {item:_0x215a12}of _0x2e0ee6)_0x215a12['is'](_0x16eebb(0x226))?_0x435415[_0x16eebb(0x1fa)](_0x215a12[_0x16eebb(0x1f8)]):_0x215a12['is'](_0x16eebb(0x23f))&&_0x435415[_0x16eebb(0x21c)]>0x0&&'\x20'!==_0x435415[_0x435415[_0x16eebb(0x21c)]-0x1]&&_0x435415[_0x16eebb(0x1fa)]('\x20');return'\x22'+_0x435415[_0x16eebb(0x237)]('')[_0x16eebb(0x241)]()+'\x22';}[_0x2e2a82(0x244)](){const _0x4e9c48=_0x2e2a82,_0x469601=_0x234b99(this[_0x4e9c48(0x20e)])[_0x4e9c48(0x1f1)];return Array[_0x4e9c48(0x204)](_0x469601[_0x4e9c48(0x1f6)][_0x4e9c48(0x215)](_0x4e9c48(0x1db)))[_0x4e9c48(0x240)]((_0x372bc5,_0x53a713)=>_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x23e)](_0x53a713[_0x4e9c48(0x229)]())?-0x1:_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x22f)](_0x53a713[_0x4e9c48(0x229)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb61df7=_0xd472;(function(_0x4956c6,_0x223b4b){const _0x351dd4=_0xd472,_0x376c6e=_0x4956c6();while(!![]){try{const _0x1cbc5c=parseInt(_0x351dd4(0x19e))/0x1+parseInt(_0x351dd4(0x1b0))/0x2+parseInt(_0x351dd4(0x19f))/0x3+-parseInt(_0x351dd4(0x1a8))/0x4+-parseInt(_0x351dd4(0x1a6))/0x5+-parseInt(_0x351dd4(0x1ac))/0x6*(-parseInt(_0x351dd4(0x1a9))/0x7)+-parseInt(_0x351dd4(0x19a))/0x8*(parseInt(_0x351dd4(0x198))/0x9);if(_0x1cbc5c===_0x223b4b)break;else _0x376c6e['push'](_0x376c6e['shift']());}catch(_0x46c57f){_0x376c6e['push'](_0x376c6e['shift']());}}}(_0x135f,0xca787));import{EmitterMixin as _0x256aad}from'ckeditor5/src/utils.js';function _0xd472(_0x2fe25d,_0x2aba40){const _0x135fde=_0x135f();return _0xd472=function(_0xd47263,_0x1b0ce7){_0xd47263=_0xd47263-0x198;let _0x412503=_0x135fde[_0xd47263];return _0x412503;},_0xd472(_0x2fe25d,_0x2aba40);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xb61df7(0x1a3)];function _0x135f(){const _0x4b6fe3=['getCapabilitiesConfig','_isWebSearchEnabled','setReasoning','3172438DkAkhR','72MkpPyr','getCapabilitiesRequestData','873496DLAmbY','reset','isWebSearchEnabled','isReasoningEnabled','1165237ZvNeCH','1773027tXNwmt','toggleReasoning','reasoning','init','capabilitiesUpdated','toggleWebSearch','setWebSearch','5988835cExgvL','fire','2833700IHCGoN','1865794FWBvjm','webSearch','_isReasoningEnabled','6LheEAk'];_0x135f=function(){return _0x4b6fe3;};return _0x135f();}export class AICapabilities extends _0x256aad(){[_0xb61df7(0x1ae)];[_0xb61df7(0x1ab)];constructor(){const _0x513e95=_0xb61df7;super(),this[_0x513e95(0x1ae)]=!0x1,this[_0x513e95(0x1ab)]=!0x1;}[_0xb61df7(0x1a2)](){const _0x4119e0=_0xb61df7;this[_0x4119e0(0x19b)]();}[_0xb61df7(0x19b)](){const _0x13856a=_0xb61df7;this[_0x13856a(0x1a5)](!0x1),this[_0x13856a(0x1af)](!0x1);}[_0xb61df7(0x1ad)](){const _0x3ed830=_0xb61df7;return{'isWebSearchEnabled':this[_0x3ed830(0x1ae)],'isReasoningEnabled':this[_0x3ed830(0x1ab)]};}static[_0xb61df7(0x199)](_0x4c326c){const _0x281251=_0xb61df7,_0x4eb350={};return _0x4c326c&&_0x4c326c[_0x281251(0x19c)]&&(_0x4eb350[_0x281251(0x1aa)]={}),_0x4c326c&&_0x4c326c[_0x281251(0x19d)]&&(_0x4eb350[_0x281251(0x1a1)]={}),_0x4eb350;}[_0xb61df7(0x1a4)](){const _0x33c2fa=_0xb61df7;this[_0x33c2fa(0x1a5)](!this[_0x33c2fa(0x1ae)]);}[_0xb61df7(0x1a0)](){const _0xcf75f4=_0xb61df7;this[_0xcf75f4(0x1af)](!this[_0xcf75f4(0x1ab)]);}[_0xb61df7(0x1a5)](_0x5a30e3){const _0x2f971e=_0xb61df7;_0x5a30e3!==this[_0x2f971e(0x1ae)]&&(this[_0x2f971e(0x1ae)]=_0x5a30e3,this[_0x2f971e(0x1a7)](_0x2f971e(0x1a3),this[_0x2f971e(0x1ad)]()));}[_0xb61df7(0x1af)](_0x3ed276){const _0x4d15a3=_0xb61df7;_0x3ed276!==this[_0x4d15a3(0x1ab)]&&(this[_0x4d15a3(0x1ab)]=_0x3ed276,this[_0x4d15a3(0x1a7)](_0x4d15a3(0x1a3),this[_0x4d15a3(0x1ad)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x507a3e=_0x3033;(function(_0x59bd2c,_0x4e6333){const _0x219539=_0x3033,_0x5b4877=_0x59bd2c();while(!![]){try{const _0x191a19=parseInt(_0x219539(0xb7))/0x1+-parseInt(_0x219539(0xa1))/0x2+-parseInt(_0x219539(0x94))/0x3*(parseInt(_0x219539(0xbe))/0x4)+-parseInt(_0x219539(0xae))/0x5+-parseInt(_0x219539(0xa0))/0x6*(parseInt(_0x219539(0xc4))/0x7)+-parseInt(_0x219539(0xb8))/0x8*(parseInt(_0x219539(0xc1))/0x9)+parseInt(_0x219539(0xd3))/0xa;if(_0x191a19===_0x4e6333)break;else _0x5b4877['push'](_0x5b4877['shift']());}catch(_0x1b54b4){_0x5b4877['push'](_0x5b4877['shift']());}}}(_0x257a,0xb859f));import{CKEditorError as _0x964c65,EmitterMixin as _0x45105e,uid as _0x2888a3}from'ckeditor5/src/utils.js';function _0x3033(_0x5e44a,_0x38ee43){const _0x257a08=_0x257a();return _0x3033=function(_0x3033bf,_0xbb8680){_0x3033bf=_0x3033bf-0x8f;let _0x4a8127=_0x257a08[_0x3033bf];return _0x4a8127;},_0x3033(_0x5e44a,_0x38ee43);}import{AIReply as _0x4bade3,isIgnoredReplyType as _0x12f7f1,isValidReplyType as _0x51bda4,isReplyTitleType as _0x26150e,isSourceType as _0x1919b7}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x507a3e(0xcf),_0x507a3e(0x9b),_0x507a3e(0xba),_0x507a3e(0xb4),_0x507a3e(0xac),_0x507a3e(0xb3),_0x507a3e(0xd1),_0x507a3e(0xca),_0x507a3e(0xc9),_0x507a3e(0xc3),_0x507a3e(0x9a),_0x507a3e(0xb9),_0x507a3e(0xc7),_0x507a3e(0x90)];export class AIInteraction extends _0x45105e(){['id'];[_0x507a3e(0xad)]=[];[_0x507a3e(0x9f)];[_0x507a3e(0x91)];[_0x507a3e(0xb2)];[_0x507a3e(0xab)];[_0x507a3e(0xc6)];[_0x507a3e(0xc8)]=!0x1;[_0x507a3e(0xb6)]=!0x1;[_0x507a3e(0xce)];[_0x507a3e(0xcb)]=!0x1;[_0x507a3e(0x98)]=!0x1;constructor({connector:_0x11dc5e,editor:_0x1ef0d3}){const _0x59035c=_0x507a3e;super(),this['id']=_0x2888a3(),this[_0x59035c(0xc6)]=_0x11dc5e,this[_0x59035c(0xc8)]=!0x0,this[_0x59035c(0xce)]=_0x1ef0d3;}async[_0x507a3e(0x95)](){const _0xd0ce2=_0x507a3e;let _0x5cbfc5;const _0x19418b=[];this[_0xd0ce2(0xc8)]=!0x1;try{this[_0xd0ce2(0xab)]=await this[_0xd0ce2(0x92)](),this[_0xd0ce2(0xaf)](_0xd0ce2(0x9b),this);const _0x19de3e=await this[_0xd0ce2(0xab)][_0xd0ce2(0xbf)]();for await(const _0x5b834f of _0x19de3e){if(this[_0xd0ce2(0xc8)])return;if(_0xd0ce2(0x90)===_0x5b834f[_0xd0ce2(0x8f)])return void this[_0xd0ce2(0xaf)](_0xd0ce2(0x90),{'error':new _0x964c65(_0xd0ce2(0xa4),this)});if(_0xd0ce2(0xd2)!==_0x5b834f[_0xd0ce2(0x8f)]){if(_0xd0ce2(0xa9)!==_0x5b834f[_0xd0ce2(0x8f)]){if(_0x26150e(_0x5b834f[_0xd0ce2(0x8f)])&&this[_0xd0ce2(0xc9)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xc5)],!0x0),_0x1919b7(_0x5b834f[_0xd0ce2(0x8f)]))_0x19418b[_0xd0ce2(0x99)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xa8)]);else{if(_0x51bda4(_0x5b834f[_0xd0ce2(0x8f)])){if(_0x5b834f[_0xd0ce2(0x8f)]!==_0x5cbfc5){if(_0x5cbfc5=_0x5b834f[_0xd0ce2(0x8f)],_0xd0ce2(0xa6)===_0x5b834f[_0xd0ce2(0x8f)]){this[_0xd0ce2(0x98)]||(this[_0xd0ce2(0x98)]=!0x0,this[_0xd0ce2(0xaf)](_0xd0ce2(0xc3),this));continue;}if(_0xd0ce2(0x9e)===_0x5b834f[_0xd0ce2(0x8f)]){this[_0xd0ce2(0xcb)]||(this[_0xd0ce2(0xcb)]=!0x0,this[_0xd0ce2(0xaf)](_0xd0ce2(0xb9),this));continue;}this[_0xd0ce2(0xcb)]&&(this[_0xd0ce2(0xcb)]=!0x1,this[_0xd0ce2(0xaf)](_0xd0ce2(0xc7),this)),this[_0xd0ce2(0x98)]&&(this[_0xd0ce2(0x98)]=!0x1,this[_0xd0ce2(0xaf)](_0xd0ce2(0x9a),this)),this[_0xd0ce2(0x9f)]&&this[_0xd0ce2(0x9f)][_0xd0ce2(0xbb)](),this[_0xd0ce2(0x9f)]=this[_0xd0ce2(0xc2)]({'type':_0x5b834f[_0xd0ce2(0x8f)],'interactionId':this['id'],'id':_0x5b834f[_0xd0ce2(0x97)]?.['id']}),_0x19418b[_0xd0ce2(0x93)]>0x0&&_0xd0ce2(0xaa)===_0x5b834f[_0xd0ce2(0x8f)]&&(this[_0xd0ce2(0x9f)][_0xd0ce2(0xcc)]=_0x19418b[_0xd0ce2(0xd0)](0x0));}_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb1)]&&this[_0xd0ce2(0x9f)][_0xd0ce2(0x9c)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb1)]);}else _0x12f7f1(_0x5b834f[_0xd0ce2(0x8f)]);}}else this[_0xd0ce2(0xb2)]=_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb0)];}else this[_0xd0ce2(0x91)]=_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0x91)];}}finally{this[_0xd0ce2(0xc8)]||(_0x19418b[_0xd0ce2(0x93)]>0x0&&(this[_0xd0ce2(0x9f)][_0xd0ce2(0xcc)]=_0x19418b[_0xd0ce2(0xd0)](0x0)),this[_0xd0ce2(0xc0)](),this[_0xd0ce2(0xaf)](_0xd0ce2(0xb4),this));}}[_0x507a3e(0xa7)](){const _0x4c04a6=_0x507a3e;this[_0x4c04a6(0xc8)]||(this[_0x4c04a6(0xc0)](),this[_0x4c04a6(0xaf)](_0x4c04a6(0xba),this));}[_0x507a3e(0x9d)](_0x1f152e){const _0x49e9ea=_0x507a3e;return this[_0x49e9ea(0xad)][_0x49e9ea(0xa2)](_0x167749=>_0x167749['id']===_0x1f152e);}[_0x507a3e(0xa3)](){const _0x2b54d8=_0x507a3e;this[_0x2b54d8(0xb6)]||(this[_0x2b54d8(0xa7)](),this[_0x2b54d8(0xad)][_0x2b54d8(0xa5)](_0x3a44d3=>_0x3a44d3[_0x2b54d8(0xa3)]()),this[_0x2b54d8(0xad)]=[],this[_0x2b54d8(0xb6)]=!0x0,this[_0x2b54d8(0xaf)](_0x2b54d8(0xac),this),this[_0x2b54d8(0xcd)]());}[_0x507a3e(0xc2)](_0x34f11f){const _0x2b85f4=_0x507a3e,_0x218507=new _0x4bade3({'editor':this[_0x2b85f4(0xce)],'documentContextContent':this[_0x2b85f4(0xbd)]()?.[_0x2b85f4(0xd4)],..._0x34f11f});return this[_0x2b85f4(0xad)][_0x2b85f4(0x99)](_0x218507),_0x218507[_0x2b85f4(0x96)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2b85f4(0xaf)](_0x2b85f4(0xb3),_0x218507),_0x218507;}[_0x507a3e(0xc9)](_0x4fed6c,_0x4c51db=!0x1){const _0x42d23c=_0x507a3e;this[_0x42d23c(0xaf)](_0x42d23c(0xc9),_0x4fed6c,_0x4c51db);}[_0x507a3e(0xc0)](){const _0x1ea918=_0x507a3e;this[_0x1ea918(0xc8)]=!0x0,this[_0x1ea918(0xab)]&&this[_0x1ea918(0xab)][_0x1ea918(0xb5)][_0x1ea918(0xbc)](),this[_0x1ea918(0x9f)]&&this[_0x1ea918(0x9f)][_0x1ea918(0xbb)](),this[_0x1ea918(0xab)]=this[_0x1ea918(0x9f)]=void 0x0;}}function _0x257a(){const _0x1dfd7a=['_isWebSearching','push','webSearchFinished','interactionStarted','appendContent','getReply','reasoning','currentReply','1254JmNWGT','1185316BcgdhR','find','destroy','ai-chat-interaction-error','forEach','web-search','stop','source','action-metadata','modification-delta','currentRequest','interactionDestroyed','replies','3763530oyujAT','fire','callId','textDelta','actionCallId','replyCreated','interactionFinished','abortController','isDestroyed','504991PIAOlE','5960696fvluTS','reasoningStarted','interactionStopped','done','abort','getDocumentContext','8HuTigZ','getStream','_finalizeInteraction','9oBQJIJ','createReply','webSearchStarted','21007yTqGpW','conversationTitle','connector','reasoningFinished','isStopped','setConversationTitle','replyChangeGroupStateUpdated','_isReasoning','sources','stopListening','editor','interactionCreated','splice','replyContentUpdated','message-metadata','30740000wCUPwJ','content','event','error','messageId','sendRequest','length','159342SRpnwn','start','delegate','data'];_0x257a=function(){return _0x1dfd7a;};return _0x257a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x11b256=_0x36e3;(function(_0x478f55,_0x4c702c){const _0x46cc82=_0x36e3,_0x5d987d=_0x478f55();while(!![]){try{const _0x5be130=parseInt(_0x46cc82(0x1d4))/0x1*(-parseInt(_0x46cc82(0x1ce))/0x2)+-parseInt(_0x46cc82(0x1b6))/0x3+parseInt(_0x46cc82(0x1cc))/0x4*(parseInt(_0x46cc82(0x1ae))/0x5)+-parseInt(_0x46cc82(0x1b3))/0x6*(parseInt(_0x46cc82(0x1cb))/0x7)+-parseInt(_0x46cc82(0x1ac))/0x8*(parseInt(_0x46cc82(0x1c3))/0x9)+parseInt(_0x46cc82(0x1d6))/0xa*(parseInt(_0x46cc82(0x1ad))/0xb)+parseInt(_0x46cc82(0x1d3))/0xc*(parseInt(_0x46cc82(0x1cf))/0xd);if(_0x5be130===_0x4c702c)break;else _0x5d987d['push'](_0x5d987d['shift']());}catch(_0x2169d3){_0x5d987d['push'](_0x5d987d['shift']());}}}(_0x1fda,0x6262a));import{EmitterMixin as _0x5c2a56,logWarning as _0x2350b6,logError as _0x225787}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c50cf}from'../utils/common-translations.js';export class AIModels extends _0x5c2a56(){[_0x11b256(0x1b7)];[_0x11b256(0x1bd)];[_0x11b256(0x1c0)];[_0x11b256(0x1ab)];[_0x11b256(0x1c9)]=[];constructor({connector:_0x5ba045,availableModels:_0x16dd8a,defaultModelId:_0x4284b1,locale:_0x471d24}){const _0x29c766=_0x11b256;super(),this[_0x29c766(0x1b7)]=_0x5ba045,this[_0x29c766(0x1bd)]=_0x16dd8a,this[_0x29c766(0x1c0)]=_0x4284b1,this[_0x29c766(0x1ab)]=_0x471d24;}async[_0x11b256(0x1c7)](){const _0x1c2331=_0x11b256;if(!this[_0x1c2331(0x1c9)][_0x1c2331(0x1b9)])try{const _0x857c29=this[_0x1c2331(0x1ab)][_0x1c2331(0x1d2)]||'en',_0x7f60ae=this[_0x1c2331(0x1b7)][_0x1c2331(0x1c8)](_0x857c29),_0x5a51d6=await _0x7f60ae[_0x1c2331(0x1b0)]();this[_0x1c2331(0x1c9)]=_0x5a51d6[_0x1c2331(0x1be)][_0x1c2331(0x1c6)](_0x300d5b=>Be(_0x300d5b)?{..._0x300d5b,'name':_0x1c50cf(this[_0x1c2331(0x1ab)],_0x1c2331(0x1d0))}:_0x300d5b);}catch(_0x593744){throw _0x225787(_0x1c2331(0x1bf),{'error':_0x593744}),_0x593744;}return[...this[_0x1c2331(0x1c9)]];}async[_0x11b256(0x1b1)](){const _0x54775f=_0x11b256,_0xe70782=await this[_0x54775f(0x1c7)]();return this[_0x54775f(0x1d1)](_0xe70782,this[_0x54775f(0x1bd)]);}async[_0x11b256(0x1d7)](_0x12f8d7){const _0x31a7c5=_0x11b256,_0x4e7003=await this[_0x31a7c5(0x1c7)]();if(!_0x4e7003[_0x31a7c5(0x1b9)])return null;if(_0x12f8d7){const _0x4417ea=this[_0x31a7c5(0x1c2)](_0x4e7003,_0x12f8d7);if(_0x4417ea)return _0x4417ea;_0x2350b6(_0x31a7c5(0x1b2),{'modelId':_0x12f8d7,'fallBackModelId':this[_0x31a7c5(0x1c0)]});}return this[_0x31a7c5(0x1c4)]();}async[_0x11b256(0x1c4)](){const _0xed3bfb=_0x11b256,_0x1299b9=await this[_0xed3bfb(0x1b1)]();if(!_0x1299b9[_0xed3bfb(0x1b9)])return null;if(this[_0xed3bfb(0x1c0)]){const _0x23d274=this[_0xed3bfb(0x1c2)](_0x1299b9,this[_0xed3bfb(0x1c0)]);if(_0x23d274)return _0x23d274;_0x2350b6(_0xed3bfb(0x1d5),{'defaultModelId':this[_0xed3bfb(0x1c0)],'fallBackModelId':_0x1299b9[0x0]['id']});}return _0x1299b9[0x0];}async[_0x11b256(0x1b4)](_0x2c0cf4){const _0x13728e=_0x11b256;return(await this[_0x13728e(0x1b1)]())[_0x13728e(0x1bc)](_0x576604=>_0x576604[_0x13728e(0x1ba)]===_0x2c0cf4[_0x13728e(0x1ba)]&&_0x576604[_0x13728e(0x1c5)]===_0x2c0cf4[_0x13728e(0x1c5)]);}[_0x11b256(0x1d1)](_0x3c83ad,_0x407cc8){const _0x4b0a35=_0x11b256;let _0x31a844;if(_0x407cc8){_0x31a844=[];const _0x228373=_0x4b0a35(0x1c1)==typeof _0x407cc8?[_0x407cc8[_0x4b0a35(0x1bb)]()]:_0x407cc8[_0x4b0a35(0x1c6)](_0x2f675a=>_0x2f675a[_0x4b0a35(0x1bb)]());for(const _0x3fc09c of _0x228373)for(const _0x2b64e6 of _0x3c83ad)(_0x2b64e6['id'][_0x4b0a35(0x1bb)]()===_0x3fc09c||_0x2b64e6[_0x4b0a35(0x1ba)][_0x4b0a35(0x1bb)]()===_0x3fc09c||Be(_0x2b64e6)&&_0x4b0a35(0x1af)===_0x3fc09c||_0x2b64e6[_0x4b0a35(0x1c5)][_0x4b0a35(0x1bb)]()===_0x3fc09c||_0x2b64e6['id'][_0x4b0a35(0x1bb)]()[_0x4b0a35(0x1cd)](_0x3fc09c))&&_0x31a844[_0x4b0a35(0x1ca)](_0x2b64e6);}else _0x31a844=_0x3c83ad;return _0x31a844;}[_0x11b256(0x1c2)](_0x4e19ec,_0x2a9fa8){const _0x2ddef3=_0x11b256;return _0x4e19ec[_0x2ddef3(0x1b8)](_0x4e3b8=>Be(_0x4e3b8)&&_0x2ddef3(0x1af)===_0x2a9fa8?_0x4e3b8:_0x4e3b8['id']===_0x2a9fa8)||null;}}function _0x36e3(_0x37ada5,_0x4d0a1f){const _0x1fdaae=_0x1fda();return _0x36e3=function(_0x36e3e1,_0x207f1f){_0x36e3e1=_0x36e3e1-0x1ab;let _0x53c92a=_0x1fdaae[_0x36e3e1];return _0x53c92a;},_0x36e3(_0x37ada5,_0x4d0a1f);}function Be(_0x482301){const _0x4c71cc=_0x11b256;return _0x482301['id'][_0x4c71cc(0x1cd)](_0x4c71cc(0x1b5));}function _0x1fda(){const _0x38db9c=['4077EoInpm','ai-chat-default-model-id-unrecognized','124570qmOytY','getModel','_locale','255496Swrcjj','297TwvNPh','20kazoVq','auto','list','getAvailableModels','ai-chat-model-id-unrecognized','114eGtkzx','isAvailable','agent','524988Zlwtxk','_connector','find','length','name','toLocaleLowerCase','some','_availableModels','items','ai-models-unable-to-retrieve','_defaultModelId','string','_getModelById','99SwdySc','getDefault','provider','map','getAll','getModels','_modelList','push','290801QKhZmf','268936MPuxFj','startsWith','38QfKFRU','26QnLQPx','AI_MODEL_NAME_AUTO','_filterModels','uiLanguage','7144764TudbdC'];_0x1fda=function(){return _0x38db9c;};return _0x1fda();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2b97(){const _0xd1dce4=['changes','appendContent','interactionId','cloneNode','6rmVzIJ','9131220opovUN','forEach','parsedContent','documentContextContent','replyContentUpdated','conversation-title','locale','filter','parsedMergedContent','updateChangeGroups','values','getContentParts','850OWcszS','pending','data-unstable','453QNKnBp','aiResponseParser','6752wbSUwn','find','changeGroups','source','AI_SUGGESTION_CONTENT_PART_REMOVED','change:content','withoutDiff','push','744020iATSle','201908RzRBAk','areActionsDisabled','set','aiResponseApplier','withDiff','every','stopListening','2529096pfwaOk','text-delta','web-search','setChangeGroupState','done','nextSibling','span','onContentChange','destroy','reasoning','replyChangeGroupStateUpdated','parseAndNormalizeHTML','editor','_getDifferentChangeGroups','modification-delta','color:\x20#808080;\x20font-style:\x20italic','modified','new','sources','convertMarkdownToHTML','cachedSuggestionContentParts','2629345sKnlap','unshift','length','13qdajSs','indexOf','ai-reply-get-content-parts-group-not-found','node','data-id','_setCachedContentParts','55cwvnOo','context','type','previousSibling','1175uWRBbv','isDone','map','removedNodeIds','includes','fire','ai-get-editor-from-context-no-editor','merge','modifiedNodeIds','state','_getCachedContentParts','content','index','9qaRCgF','removed','splice','newNodeIds'];_0x2b97=function(){return _0xd1dce4;};return _0x2b97();}const _0x19802d=_0x3057;(function(_0x481a51,_0x13dfbf){const _0x3227fc=_0x3057,_0x181c22=_0x481a51();while(!![]){try{const _0x4d314e=-parseInt(_0x3227fc(0x10e))/0x1*(-parseInt(_0x3227fc(0xd7))/0x2)+-parseInt(_0x3227fc(0xda))/0x3*(-parseInt(_0x3227fc(0xdc))/0x4)+parseInt(_0x3227fc(0x101))/0x5*(-parseInt(_0x3227fc(0xca))/0x6)+-parseInt(_0x3227fc(0xe5))/0x7+-parseInt(_0x3227fc(0xec))/0x8*(parseInt(_0x3227fc(0x11b))/0x9)+parseInt(_0x3227fc(0xe4))/0xa*(-parseInt(_0x3227fc(0x10a))/0xb)+parseInt(_0x3227fc(0xcb))/0xc*(parseInt(_0x3227fc(0x104))/0xd);if(_0x4d314e===_0x13dfbf)break;else _0x181c22['push'](_0x181c22['shift']());}catch(_0x138f31){_0x181c22['push'](_0x181c22['shift']());}}}(_0x2b97,0x427d2));import{CKEditorError as _0x45eaec,ObservableMixin as _0x4c7156,uid as _0x8fd10f}from'ckeditor5/src/utils.js';function _0x3057(_0x34cc90,_0x37e594){const _0x2b973a=_0x2b97();return _0x3057=function(_0x3057db,_0x58f137){_0x3057db=_0x3057db-0xc7;let _0xe9d815=_0x2b973a[_0x3057db];return _0xe9d815;},_0x3057(_0x34cc90,_0x37e594);}import{Element as _0x3c0f5e,findAll as _0x5547b7,getAttribute as _0x22cf8c,getParents as _0x557046,Document as _0x2ce9a1,parse as _0x2e0c24,Text as _0x5b3951}from'../utils/htmlparser.js';import{AIResponseParser as _0x1213e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x19820c}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x14fc5b}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x57c541}from'../utils/common-translations.js';import{cloneDeep as _0x4a51b3}from'es-toolkit';export const AI_REPLY_TYPES=[_0x19802d(0xfa),_0x19802d(0xed),_0x19802d(0xee),_0x19802d(0xf5)];export const AI_REPLY_TYPES_IGNORED=[_0x19802d(0xd0)];export const AI_REPLY_TITLE_TYPE=_0x19802d(0xd0);export class AIReply extends _0x4c7156(){['id'];[_0x19802d(0xc8)];[_0x19802d(0x10c)];[_0x19802d(0xfe)]=[];[_0x19802d(0xcd)]=new _0x2ce9a1([]);[_0x19802d(0xd3)]=new _0x2ce9a1([]);[_0x19802d(0xde)]=[];[_0x19802d(0xe6)]=!0x1;[_0x19802d(0xce)];[_0x19802d(0xdb)];[_0x19802d(0xe8)];[_0x19802d(0xf8)];[_0x19802d(0x100)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x25fa59,content:_0xc56d74='',isDone:_0x5c757b=!0x1,interactionId:_0xb76d14,areActionsDisabled:_0x40b310,documentContextContent:_0x177ca1,editor:_0x16d2c2,id:_0x31e025}){const _0xd1dcdd=_0x19802d;super(),this['id']=_0x31e025||_0x8fd10f(),this[_0xd1dcdd(0xc8)]=_0xb76d14,this[_0xd1dcdd(0x10c)]=_0x25fa59,this[_0xd1dcdd(0xe6)]=!!_0x40b310,this[_0xd1dcdd(0xf8)]=_0x16d2c2,this[_0xd1dcdd(0xdb)]=new _0x1213e5(),this[_0xd1dcdd(0xe8)]=new _0x19820c(),this[_0xd1dcdd(0xce)]=_0x2e0c24(_0x177ca1||''),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x10f),_0x5c757b),this['on'](_0xd1dcdd(0xe1),()=>{const _0x2c88fb=_0xd1dcdd;this[_0x2c88fb(0xf3)]();}),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x119),_0xc56d74);}[_0x19802d(0xc7)](_0x330b6a){const _0xa8fda2=_0x19802d;this[_0xa8fda2(0xe7)](_0xa8fda2(0x119),this[_0xa8fda2(0x119)]+_0x330b6a);}[_0x19802d(0xf0)](){const _0x35bef1=_0x19802d;this[_0x35bef1(0x10f)]||(this[_0x35bef1(0xe7)](_0x35bef1(0x10f),!0x0),this[_0x35bef1(0xf3)]());}[_0x19802d(0xf4)](){const _0x25fdf2=_0x19802d;this[_0x25fdf2(0xeb)]();}[_0x19802d(0xef)](_0x44e7da,_0x4ade33){const _0x2a7d19=_0x19802d;this[_0x2a7d19(0xde)][_0x44e7da][_0x2a7d19(0x117)]=_0x4ade33,this[_0x2a7d19(0x113)](_0x2a7d19(0xf6),{'reply':this,'index':_0x44e7da,'state':_0x4ade33});}[_0x19802d(0xd6)]({showDiff:_0x703a65,groupIndex:_0x22e428}){const _0x281b20=_0x19802d;if(!this[_0x281b20(0xf8)])throw new _0x45eaec(_0x281b20(0x114),null,{'aiReply':this});const _0x465dee=this[_0x281b20(0x118)](_0x703a65,_0x22e428);if(_0x465dee)return _0x465dee;let _0x2781bd=[];if(void 0x0===_0x22e428)_0x2781bd=this[_0x281b20(0xde)];else{const _0x573605=this[_0x281b20(0xde)][_0x281b20(0xdd)](({index:_0xb54601})=>_0xb54601===_0x22e428);if(!_0x573605)throw new _0x45eaec(_0x281b20(0x106),null,{'aiReply':this,'groupIndex':_0x22e428});_0x2781bd=[_0x573605];}const _0x54a695=_0x14fc5b({'editor':this[_0x281b20(0xf8)],'showDiff':_0x703a65,'changeGroups':_0x2781bd,'documentContextContent':this[_0x281b20(0xce)]});return this[_0x281b20(0x109)](_0x703a65,_0x54a695),_0x54a695;}[_0x19802d(0x118)](_0x46e524,_0xd04bc4){const _0x1123ae=_0x19802d,_0x459adc=_0x46e524?_0x1123ae(0xe9):_0x1123ae(0xe2);if(!this[_0x1123ae(0x100)][_0x459adc][_0x1123ae(0x103)])return null;const _0x5ee115=this[_0x1123ae(0x100)][_0x459adc];if(void 0x0===_0xd04bc4)return _0x4a51b3(_0x5ee115);{const _0x4a7798=_0x5ee115[_0x1123ae(0xdd)](({index:_0x134b5f})=>_0x134b5f===_0xd04bc4);if(_0x4a7798)return[_0x4a51b3(_0x4a7798)];}return null;}[_0x19802d(0x109)](_0x1ab82b,_0x2244ae){const _0x50675a=_0x19802d,_0xc77a90=_0x1ab82b?_0x50675a(0xe9):_0x50675a(0xe2);_0x2244ae[_0x50675a(0xcc)](_0x5dfc4f=>{const _0x114f16=_0x50675a,_0x1ac61c=this[_0x114f16(0x100)][_0xc77a90],_0x9310d9=_0x1ac61c[_0x114f16(0xdd)](({index:_0x2de9b0})=>_0x2de9b0===_0x5dfc4f[_0x114f16(0x11a)]);if(_0x9310d9){const _0x388170=_0x1ac61c[_0x114f16(0x105)](_0x9310d9);_0x1ac61c[_0x114f16(0x11d)](_0x388170,0x1,_0x5dfc4f);}else _0x1ac61c[_0x114f16(0xe3)](_0x5dfc4f);});}[_0x19802d(0xf3)](){const _0x25202d=_0x19802d;if(_0x25202d(0xfa)===this[_0x25202d(0x10c)]){this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xf7)](this[_0x25202d(0x119)]);const _0x301010=this[_0x25202d(0xde)];this[_0x25202d(0xd4)]();const _0x5dd1e3=this[_0x25202d(0xf9)](_0x301010,this[_0x25202d(0xde)]);(_0x5dd1e3[_0x25202d(0x103)]||this[_0x25202d(0x10f)])&&(this[_0x25202d(0x113)](_0x25202d(0xcf),this,_0x5dd1e3),this[_0x25202d(0x100)][_0x25202d(0xe9)][_0x25202d(0x103)]=this[_0x25202d(0x100)][_0x25202d(0xe2)][_0x25202d(0x103)]=0x0);}else this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xff)](this[_0x25202d(0x119)]),this[_0x25202d(0x113)](_0x25202d(0xcf),this);}[_0x19802d(0xf9)](_0x28c7ff,_0x2f0b25){const _0x2869b7=_0x19802d,_0x2957c0=[];for(const _0x159f0d of _0x2f0b25){const _0x341de1=_0x28c7ff[_0x159f0d[_0x2869b7(0x11a)]];_0x341de1?_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0x103)]!==_0x159f0d[_0x2869b7(0x11f)][_0x2869b7(0x103)]?_0x2957c0[_0x2869b7(0xe3)](_0x159f0d):_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0xcc)]((_0x345435,_0x4c7b26)=>{const _0x25d5f6=_0x2869b7,_0x3adc22=_0x159f0d[_0x25d5f6(0x11f)][_0x4c7b26];_0x345435['id']!==_0x3adc22['id']&&_0x2957c0[_0x25d5f6(0xe3)](_0x159f0d);}):_0x2957c0[_0x2869b7(0xe3)](_0x159f0d);}return _0x2957c0;}[_0x19802d(0xd4)](){const _0x557a4a=_0x19802d,_0x56f33a=new _0x3c0f5e('p',{},[new _0x3c0f5e(_0x557a4a(0xf2),{'style':_0x557a4a(0xfb)},[new _0x5b3951(_0x57c541(this[_0x557a4a(0xf8)][_0x557a4a(0xd1)],_0x557a4a(0xe0)))])]),_0x4afaad=this[_0x557a4a(0xe8)][_0x557a4a(0x115)](this[_0x557a4a(0xcd)],this[_0x557a4a(0xce)][_0x557a4a(0xc9)](!0x0),{'markUnstableElements':!this[_0x557a4a(0x10f)],'replaceRemovedWith':_0x56f33a,'cutAfterLastChange':!this[_0x557a4a(0x10f)]});if(!_0x4afaad[_0x557a4a(0x116)][_0x557a4a(0x103)]&&!this[_0x557a4a(0x10f)])return;this[_0x557a4a(0xd3)]=_0x4afaad[_0x557a4a(0xcd)];let _0x341cfd=[];if(_0x5547b7(_0x56ca12=>{const _0x1b7a76=_0x557a4a,_0x26b43c=_0x22cf8c(_0x56ca12,_0x1b7a76(0x108));if(!_0x26b43c||!_0x301880(_0x26b43c))return!0x1;const _0x4e13c7=[_0x56ca12,..._0x557046(_0x56ca12)]['at'](-0x2);if(_0x56ca12!=_0x4e13c7){const _0x1dcf67=_0x22cf8c(_0x4e13c7,_0x1b7a76(0x108));_0x301880(_0x1dcf67)||(_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x4e13c7,'id':_0x1dcf67,'type':_0x1b7a76(0xfc)}),_0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0xe3)](_0x1dcf67));}else _0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfc),'id':_0x26b43c}):_0x4afaad[_0x1b7a76(0x11e)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfd),'id':_0x26b43c,'anchorId':_0x22cf8c(_0x56ca12[_0x1b7a76(0x10d)],_0x1b7a76(0x108))}):_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0x11c),'id':_0x26b43c});return!0x0;},this[_0x557a4a(0xd3)]),_0x341cfd=_0x341cfd[_0x557a4a(0xd2)](({node:_0x297d00})=>[..._0x557046(_0x297d00),_0x297d00][_0x557a4a(0xea)](_0x4f9dd9=>!_0x22cf8c(_0x4f9dd9,_0x557a4a(0xd9)))),0x0==_0x341cfd[_0x557a4a(0x103)])return;const _0x386360=[[_0x341cfd[0x0]]];for(let _0x4495f4=0x1;_0x4495f4<_0x341cfd[_0x557a4a(0x103)];_0x4495f4++){const _0xb0fa5b=_0x386360[_0x386360[_0x557a4a(0x103)]-0x1],_0xad4333=_0xb0fa5b[_0xb0fa5b[_0x557a4a(0x103)]-0x1];_0x341cfd[_0x4495f4][_0x557a4a(0x107)][_0x557a4a(0x10d)]==_0xad4333[_0x557a4a(0x107)]&&_0x557a4a(0xfc)!=_0x341cfd[_0x4495f4][_0x557a4a(0x10c)]&&_0x557a4a(0xfc)!=_0xad4333[_0x557a4a(0x10c)]?_0xb0fa5b[_0x557a4a(0xe3)](_0x341cfd[_0x4495f4]):_0x386360[_0x557a4a(0xe3)]([_0x341cfd[_0x4495f4]]);}for(const _0x1b8a54 of _0x386360){const _0x34d27b=_0x1b8a54[0x0],_0x1b118d=_0x1b8a54[_0x1b8a54[_0x557a4a(0x103)]-0x1],_0x2e3f70=_0x41cd10(_0x34d27b[_0x557a4a(0x107)][_0x557a4a(0x10d)]);_0x2e3f70&&_0x1b8a54[_0x557a4a(0x102)](_0x2e3f70);const _0x4a2096=_0x41cd10(_0x1b118d[_0x557a4a(0x107)][_0x557a4a(0xf1)]);_0x4a2096&&_0x1b8a54[_0x557a4a(0xe3)](_0x4a2096);}function _0x301880(_0x38cba1){const _0x1423b4=_0x557a4a;return _0x4afaad[_0x1423b4(0x116)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x11e)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x111)][_0x1423b4(0x112)](_0x38cba1);}function _0x41cd10(_0x121447){const _0x5467f9=_0x557a4a;if(_0x121447&&_0x22cf8c(_0x121447,_0x5467f9(0x108))&&!_0x22cf8c(_0x121447,_0x5467f9(0xd9))){const _0x52a73d=_0x22cf8c(_0x121447,_0x5467f9(0x108));if(!_0x301880(_0x52a73d))return{'node':_0x121447,'type':_0x5467f9(0x10b),'id':_0x52a73d};}return null;}this[_0x557a4a(0xde)]=_0x386360[_0x557a4a(0x110)]((_0x478d68,_0x46ceeb)=>({'changes':_0x478d68,'state':_0x557a4a(0xd8),'index':_0x46ceeb}));}}export function isValidReplyType(_0x5988e6){const _0x1f7c80=_0x19802d;return Object[_0x1f7c80(0xd5)](AI_REPLY_TYPES)[_0x1f7c80(0x112)](_0x5988e6);}export function isIgnoredReplyType(_0x44a0ca){const _0x3a7ad8=_0x19802d;return AI_REPLY_TYPES_IGNORED[_0x3a7ad8(0x112)](_0x44a0ca);}export function isReplyTitleType(_0x32b0c4){return _0x32b0c4===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x57afd5){const _0x5f5db1=_0x19802d;return _0x5f5db1(0xdf)===_0x57afd5;}
|
|
23
|
+
const _0x19ee2c=_0x1962;(function(_0x2d410b,_0x23b6a3){const _0x59e3e1=_0x1962,_0x109ba2=_0x2d410b();while(!![]){try{const _0x17cf62=parseInt(_0x59e3e1(0x1f9))/0x1*(parseInt(_0x59e3e1(0x1c3))/0x2)+-parseInt(_0x59e3e1(0x1e4))/0x3+parseInt(_0x59e3e1(0x1ea))/0x4*(-parseInt(_0x59e3e1(0x1dd))/0x5)+-parseInt(_0x59e3e1(0x1c5))/0x6*(-parseInt(_0x59e3e1(0x203))/0x7)+-parseInt(_0x59e3e1(0x1cb))/0x8+parseInt(_0x59e3e1(0x201))/0x9*(-parseInt(_0x59e3e1(0x1e1))/0xa)+parseInt(_0x59e3e1(0x1e6))/0xb*(parseInt(_0x59e3e1(0x1f6))/0xc);if(_0x17cf62===_0x23b6a3)break;else _0x109ba2['push'](_0x109ba2['shift']());}catch(_0x3ca128){_0x109ba2['push'](_0x109ba2['shift']());}}}(_0x3246,0x43b92));import{CKEditorError as _0x43738d,ObservableMixin as _0x405b94,uid as _0x30d951}from'ckeditor5/src/utils.js';import{Element as _0x1fae90,findAll as _0x3aa496,getAttribute as _0x11e672,getParents as _0x276fe8,Document as _0x32bc00,parse as _0x2933d1,Text as _0x325966}from'../utils/htmlparser.js';import{AIResponseParser as _0x31a9f1}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3856c5}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x33dc27}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xf160dc}from'../utils/common-translations.js';import{cloneDeep as _0x9fc937}from'es-toolkit';export const AI_REPLY_TYPES=[_0x19ee2c(0x1d1),_0x19ee2c(0x1eb),_0x19ee2c(0x1ba),_0x19ee2c(0x1e0)];export const AI_REPLY_TYPES_IGNORED=[_0x19ee2c(0x1fa)];function _0x1962(_0x51267d,_0x5edcc3){const _0x324658=_0x3246();return _0x1962=function(_0x1962d5,_0x3ce7f1){_0x1962d5=_0x1962d5-0x1b9;let _0x28b2df=_0x324658[_0x1962d5];return _0x28b2df;},_0x1962(_0x51267d,_0x5edcc3);}export const AI_REPLY_TITLE_TYPE=_0x19ee2c(0x1fa);function _0x3246(){const _0x3657b6=['ai-get-editor-from-context-no-editor','replyChangeGroupStateUpdated','data-id','appendContent','filter','new','nextSibling','parsedMergedContent','removed','cloneNode','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','web-search','convertMarkdownToHTML','removedNodeIds','parsedContent','values','length','pending','context','unshift','34382ERmXSE','aiResponseParser','1110ePgzsL','destroy','onContentChange','modifiedNodeIds','splice','stopListening','4139312DgGENq','source','state','aiResponseApplier','locale','updateChangeGroups','modification-delta','_getDifferentChangeGroups','areActionsDisabled','replyContentUpdated','ai-reply-get-content-parts-group-not-found','getContentParts','previousSibling','fire','every','isDone','_setCachedContentParts','withDiff','693505tBTgdZ','sources','newNodeIds','reasoning','10XNHfjH','content','done','469158prUVjL','map','5087291qCkUfl','parseAndNormalizeHTML','includes','cachedSuggestionContentParts','12ahIVpm','text-delta','forEach','_getCachedContentParts','span','modified','change:content','indexOf','data-unstable','type','documentContextContent','withoutDiff','36MStnbn','setChangeGroupState','editor','12eOCPLJ','conversation-title','index','interactionId','find','changeGroups','node','color:\x20#808080;\x20font-style:\x20italic','2805507UzcqXN','changes','3227ZlrTug','push','set'];_0x3246=function(){return _0x3657b6;};return _0x3246();}export class AIReply extends _0x405b94(){['id'];[_0x19ee2c(0x1fc)];[_0x19ee2c(0x1f3)];[_0x19ee2c(0x1de)]=[];[_0x19ee2c(0x1bd)]=new _0x32bc00([]);[_0x19ee2c(0x20d)]=new _0x32bc00([]);[_0x19ee2c(0x1fe)]=[];[_0x19ee2c(0x1d3)]=!0x1;[_0x19ee2c(0x1f4)];[_0x19ee2c(0x1c4)];[_0x19ee2c(0x1ce)];[_0x19ee2c(0x1f8)];[_0x19ee2c(0x1e9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x281686,content:_0x184db4='',isDone:_0x560890=!0x1,interactionId:_0x127322,areActionsDisabled:_0x135983,documentContextContent:_0x1be38c,editor:_0x1a06c3,id:_0x510961}){const _0x2797c2=_0x19ee2c;super(),this['id']=_0x510961||_0x30d951(),this[_0x2797c2(0x1fc)]=_0x127322,this[_0x2797c2(0x1f3)]=_0x281686,this[_0x2797c2(0x1d3)]=!!_0x135983,this[_0x2797c2(0x1f8)]=_0x1a06c3,this[_0x2797c2(0x1c4)]=new _0x31a9f1(),this[_0x2797c2(0x1ce)]=new _0x3856c5(),this[_0x2797c2(0x1f4)]=_0x2933d1(_0x1be38c||''),this[_0x2797c2(0x205)](_0x2797c2(0x1da),_0x560890),this['on'](_0x2797c2(0x1f0),()=>{const _0xc4ffb=_0x2797c2;this[_0xc4ffb(0x1c7)]();}),this[_0x2797c2(0x205)](_0x2797c2(0x1e2),_0x184db4);}[_0x19ee2c(0x209)](_0x522efd){const _0x3e3283=_0x19ee2c;this[_0x3e3283(0x205)](_0x3e3283(0x1e2),this[_0x3e3283(0x1e2)]+_0x522efd);}[_0x19ee2c(0x1e3)](){const _0x529be6=_0x19ee2c;this[_0x529be6(0x1da)]||(this[_0x529be6(0x205)](_0x529be6(0x1da),!0x0),this[_0x529be6(0x1c7)]());}[_0x19ee2c(0x1c6)](){const _0x59ca16=_0x19ee2c;this[_0x59ca16(0x1ca)]();}[_0x19ee2c(0x1f7)](_0x52f7be,_0x499a96){const _0x41c73c=_0x19ee2c;this[_0x41c73c(0x1fe)][_0x52f7be][_0x41c73c(0x1cd)]=_0x499a96,this[_0x41c73c(0x1d8)](_0x41c73c(0x207),{'reply':this,'index':_0x52f7be,'state':_0x499a96});}[_0x19ee2c(0x1d6)]({showDiff:_0x4eb814,groupIndex:_0x3dae4b}){const _0x1506ec=_0x19ee2c;if(!this[_0x1506ec(0x1f8)])throw new _0x43738d(_0x1506ec(0x206),null,{'aiReply':this});const _0x59ad69=this[_0x1506ec(0x1ed)](_0x4eb814,_0x3dae4b);if(_0x59ad69)return _0x59ad69;let _0x4f6b45=[];if(void 0x0===_0x3dae4b)_0x4f6b45=this[_0x1506ec(0x1fe)];else{const _0x4da09f=this[_0x1506ec(0x1fe)][_0x1506ec(0x1fd)](({index:_0x576088})=>_0x576088===_0x3dae4b);if(!_0x4da09f)throw new _0x43738d(_0x1506ec(0x1d5),null,{'aiReply':this,'groupIndex':_0x3dae4b});_0x4f6b45=[_0x4da09f];}const _0x19c024=_0x33dc27({'editor':this[_0x1506ec(0x1f8)],'showDiff':_0x4eb814,'changeGroups':_0x4f6b45,'documentContextContent':this[_0x1506ec(0x1f4)]});return this[_0x1506ec(0x1db)](_0x4eb814,_0x19c024),_0x19c024;}[_0x19ee2c(0x1ed)](_0x54fecc,_0x2dea2e){const _0x122683=_0x19ee2c,_0x6fc963=_0x54fecc?_0x122683(0x1dc):_0x122683(0x1f5);if(!this[_0x122683(0x1e9)][_0x6fc963][_0x122683(0x1bf)])return null;const _0x4fdcf2=this[_0x122683(0x1e9)][_0x6fc963];if(void 0x0===_0x2dea2e)return _0x9fc937(_0x4fdcf2);{const _0x3426b4=_0x4fdcf2[_0x122683(0x1fd)](({index:_0x1ca6a8})=>_0x1ca6a8===_0x2dea2e);if(_0x3426b4)return[_0x9fc937(_0x3426b4)];}return null;}[_0x19ee2c(0x1db)](_0x1a0de5,_0x1e6e5c){const _0x596210=_0x19ee2c,_0x40fee5=_0x1a0de5?_0x596210(0x1dc):_0x596210(0x1f5);_0x1e6e5c[_0x596210(0x1ec)](_0x25fdc9=>{const _0x13c8a5=_0x596210,_0x366b0f=this[_0x13c8a5(0x1e9)][_0x40fee5],_0xc93d51=_0x366b0f[_0x13c8a5(0x1fd)](({index:_0x37c911})=>_0x37c911===_0x25fdc9[_0x13c8a5(0x1fb)]);if(_0xc93d51){const _0x7d7adc=_0x366b0f[_0x13c8a5(0x1f1)](_0xc93d51);_0x366b0f[_0x13c8a5(0x1c9)](_0x7d7adc,0x1,_0x25fdc9);}else _0x366b0f[_0x13c8a5(0x204)](_0x25fdc9);});}[_0x19ee2c(0x1c7)](){const _0x295985=_0x19ee2c;if(_0x295985(0x1d1)===this[_0x295985(0x1f3)]){this[_0x295985(0x1bd)]=this[_0x295985(0x1c4)][_0x295985(0x1e7)](this[_0x295985(0x1e2)]);const _0x348a12=this[_0x295985(0x1fe)];this[_0x295985(0x1d0)]();const _0x14ff27=this[_0x295985(0x1d2)](_0x348a12,this[_0x295985(0x1fe)]);(_0x14ff27[_0x295985(0x1bf)]||this[_0x295985(0x1da)])&&(this[_0x295985(0x1d8)](_0x295985(0x1d4),this,_0x14ff27),this[_0x295985(0x1e9)][_0x295985(0x1dc)][_0x295985(0x1bf)]=this[_0x295985(0x1e9)][_0x295985(0x1f5)][_0x295985(0x1bf)]=0x0);}else this[_0x295985(0x1bd)]=this[_0x295985(0x1c4)][_0x295985(0x1bb)](this[_0x295985(0x1e2)]),this[_0x295985(0x1d8)](_0x295985(0x1d4),this);}[_0x19ee2c(0x1d2)](_0x4ef1f7,_0x3b25b9){const _0x1a4c60=_0x19ee2c,_0x265e1e=[];for(const _0x206a2b of _0x3b25b9){const _0x324452=_0x4ef1f7[_0x206a2b[_0x1a4c60(0x1fb)]];_0x324452?_0x324452[_0x1a4c60(0x202)][_0x1a4c60(0x1bf)]!==_0x206a2b[_0x1a4c60(0x202)][_0x1a4c60(0x1bf)]?_0x265e1e[_0x1a4c60(0x204)](_0x206a2b):_0x324452[_0x1a4c60(0x202)][_0x1a4c60(0x1ec)]((_0x3a23ac,_0xf3c7b9)=>{const _0x2aeee0=_0x1a4c60,_0x113ed6=_0x206a2b[_0x2aeee0(0x202)][_0xf3c7b9];_0x3a23ac['id']!==_0x113ed6['id']&&_0x265e1e[_0x2aeee0(0x204)](_0x206a2b);}):_0x265e1e[_0x1a4c60(0x204)](_0x206a2b);}return _0x265e1e;}[_0x19ee2c(0x1d0)](){const _0x319f99=_0x19ee2c,_0x5f0a40=new _0x1fae90('p',{},[new _0x1fae90(_0x319f99(0x1ee),{'style':_0x319f99(0x200)},[new _0x325966(_0xf160dc(this[_0x319f99(0x1f8)][_0x319f99(0x1cf)],_0x319f99(0x210)))])]),_0x80e28a=this[_0x319f99(0x1ce)][_0x319f99(0x1b9)](this[_0x319f99(0x1bd)],this[_0x319f99(0x1f4)][_0x319f99(0x20f)](!0x0),{'markUnstableElements':!this[_0x319f99(0x1da)],'replaceRemovedWith':_0x5f0a40,'cutAfterLastChange':!this[_0x319f99(0x1da)]});if(!_0x80e28a[_0x319f99(0x1c8)][_0x319f99(0x1bf)]&&!this[_0x319f99(0x1da)])return;this[_0x319f99(0x20d)]=_0x80e28a[_0x319f99(0x1bd)];let _0x4181fc=[];if(_0x3aa496(_0x2cb60e=>{const _0x195fbc=_0x319f99,_0x52f319=_0x11e672(_0x2cb60e,_0x195fbc(0x208));if(!_0x52f319||!_0x12a269(_0x52f319))return!0x1;const _0x1c21a7=[_0x2cb60e,..._0x276fe8(_0x2cb60e)]['at'](-0x2);if(_0x2cb60e!=_0x1c21a7){const _0x7f9551=_0x11e672(_0x1c21a7,_0x195fbc(0x208));_0x12a269(_0x7f9551)||(_0x4181fc[_0x195fbc(0x204)]({'node':_0x1c21a7,'id':_0x7f9551,'type':_0x195fbc(0x1ef)}),_0x80e28a[_0x195fbc(0x1c8)][_0x195fbc(0x204)](_0x7f9551));}else _0x80e28a[_0x195fbc(0x1c8)][_0x195fbc(0x1e8)](_0x52f319)?_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x1ef),'id':_0x52f319}):_0x80e28a[_0x195fbc(0x1df)][_0x195fbc(0x1e8)](_0x52f319)?_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x20b),'id':_0x52f319,'anchorId':_0x11e672(_0x2cb60e[_0x195fbc(0x1d7)],_0x195fbc(0x208))}):_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x20e),'id':_0x52f319});return!0x0;},this[_0x319f99(0x20d)]),_0x4181fc=_0x4181fc[_0x319f99(0x20a)](({node:_0x4e793c})=>[..._0x276fe8(_0x4e793c),_0x4e793c][_0x319f99(0x1d9)](_0xd89fb7=>!_0x11e672(_0xd89fb7,_0x319f99(0x1f2)))),0x0==_0x4181fc[_0x319f99(0x1bf)])return;const _0x3ddc88=[[_0x4181fc[0x0]]];for(let _0x99d556=0x1;_0x99d556<_0x4181fc[_0x319f99(0x1bf)];_0x99d556++){const _0x36005c=_0x3ddc88[_0x3ddc88[_0x319f99(0x1bf)]-0x1],_0x268f75=_0x36005c[_0x36005c[_0x319f99(0x1bf)]-0x1];_0x4181fc[_0x99d556][_0x319f99(0x1ff)][_0x319f99(0x1d7)]==_0x268f75[_0x319f99(0x1ff)]&&_0x319f99(0x1ef)!=_0x4181fc[_0x99d556][_0x319f99(0x1f3)]&&_0x319f99(0x1ef)!=_0x268f75[_0x319f99(0x1f3)]?_0x36005c[_0x319f99(0x204)](_0x4181fc[_0x99d556]):_0x3ddc88[_0x319f99(0x204)]([_0x4181fc[_0x99d556]]);}for(const _0xe1c661 of _0x3ddc88){const _0x3e33e4=_0xe1c661[0x0],_0x310107=_0xe1c661[_0xe1c661[_0x319f99(0x1bf)]-0x1],_0x5b9054=_0x4c7b1b(_0x3e33e4[_0x319f99(0x1ff)][_0x319f99(0x1d7)]);_0x5b9054&&_0xe1c661[_0x319f99(0x1c2)](_0x5b9054);const _0x23b901=_0x4c7b1b(_0x310107[_0x319f99(0x1ff)][_0x319f99(0x20c)]);_0x23b901&&_0xe1c661[_0x319f99(0x204)](_0x23b901);}function _0x12a269(_0x263a36){const _0x5edb8b=_0x319f99;return _0x80e28a[_0x5edb8b(0x1c8)][_0x5edb8b(0x1e8)](_0x263a36)||_0x80e28a[_0x5edb8b(0x1df)][_0x5edb8b(0x1e8)](_0x263a36)||_0x80e28a[_0x5edb8b(0x1bc)][_0x5edb8b(0x1e8)](_0x263a36);}function _0x4c7b1b(_0xd67d53){const _0x5efb17=_0x319f99;if(_0xd67d53&&_0x11e672(_0xd67d53,_0x5efb17(0x208))&&!_0x11e672(_0xd67d53,_0x5efb17(0x1f2))){const _0x38f49e=_0x11e672(_0xd67d53,_0x5efb17(0x208));if(!_0x12a269(_0x38f49e))return{'node':_0xd67d53,'type':_0x5efb17(0x1c1),'id':_0x38f49e};}return null;}this[_0x319f99(0x1fe)]=_0x3ddc88[_0x319f99(0x1e5)]((_0x4d48ce,_0x4b97ee)=>({'changes':_0x4d48ce,'state':_0x319f99(0x1c0),'index':_0x4b97ee}));}}export function isValidReplyType(_0x28c49e){const _0x5c83de=_0x19ee2c;return Object[_0x5c83de(0x1be)](AI_REPLY_TYPES)[_0x5c83de(0x1e8)](_0x28c49e);}export function isIgnoredReplyType(_0x372fde){const _0x318474=_0x19ee2c;return AI_REPLY_TYPES_IGNORED[_0x318474(0x1e8)](_0x372fde);}export function isReplyTitleType(_0xd7affc){return _0xd7affc===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x253e07){const _0x4f16b2=_0x19ee2c;return _0x4f16b2(0x1cc)===_0x253e07;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x42c2a4(){[_0xe8ab9d(0x11c)];[_0xe8ab9d(0xf9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xe8ab9d(0xf0)]=new Set();constructor(_0x1da65a){const _0x3f6d39=_0xe8ab9d;super(),this[_0x3f6d39(0x11c)]=_0x1da65a||_0x50c796;}[_0xe8ab9d(0xf5)](_0x4e9e0c,_0x4c9d3b,_0xd9b94b){const _0x5ea1ee=_0xe8ab9d,_0x39c84a=_0x27178a(_0x4e9e0c);if(0x0===_0x4c9d3b[_0x5ea1ee(0xf4)][_0x5ea1ee(0x11e)]){const _0x483caf=[];return _0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x39c84a)[_0x5ea1ee(0xe8)](_0x444afc=>{const _0x57289f=_0x5ea1ee,_0x1b7287=this[_0x57289f(0x11c)]();_0x52dd(_0x444afc,_0x57289f(0x117),_0x1b7287),_0x483caf[_0x57289f(0xec)](_0x1b7287);}),this[_0x5ea1ee(0xf7)](_0x39c84a),{'parsedContent':_0x39c84a,'newNodeIds':_0x483caf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x11d)](_0x39c84a),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x118)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=null,this[_0x5ea1ee(0xf0)]=new Set(_0x59e44a(_0x5ea1ee(0x117),null,_0x4c9d3b)[_0x5ea1ee(0xf3)](_0x10e7e=>_0x2c50d8(_0x10e7e,_0x5ea1ee(0x117)))[_0x5ea1ee(0x110)](_0x42b43e=>!!_0x42b43e));let _0x4f87dd=-0x1,_0x32e839=!0x1;const _0x514185=_0x39c84a[_0x5ea1ee(0xf4)],_0x958b04=Array[_0x5ea1ee(0xf8)](_0x514185)[_0x5ea1ee(0x110)](_0x178b33=>!(0x3===_0x178b33[_0x5ea1ee(0x10a)]&&''===_0x4dc70f(_0x178b33)[_0x5ea1ee(0x125)]())),_0x2456e5=_0x958b04[_0x5ea1ee(0x11e)];for(let _0x26bf64=0x0;_0x26bf64<_0x2456e5;_0x26bf64++){const _0x283c91=_0x958b04[_0x26bf64],_0x283a51=_0x958b04[_0x26bf64+0x1];if(this[_0x5ea1ee(0xe5)](_0x283c91)){if(-0x1===_0x4f87dd&&(_0x4f87dd=_0x26bf64),this[_0x5ea1ee(0xfe)](_0x283c91),!this[_0x5ea1ee(0xe5)](_0x283a51)){const [_0x524b03,_0x4bba5]=this[_0x5ea1ee(0x104)](_0x283c91,_0x32e839,_0x4c9d3b);if(_0x524b03){const _0x3cfeae=Array[_0x5ea1ee(0xf8)](_0x958b04)[_0x5ea1ee(0x12a)](_0x4f87dd,_0x26bf64+0x1);this[_0x5ea1ee(0x121)](_0x524b03,_0x3cfeae,_0x4bba5),_0x4f87dd=-0x1;}}}else{if(this[_0x5ea1ee(0xe9)](_0x283c91))_0x32e839=!0x0;else{if(this[_0x5ea1ee(0x106)](_0x283c91)){const _0xf8c7bb=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));if(_0xf8c7bb&&this[_0x5ea1ee(0xf0)][_0x5ea1ee(0x101)](_0xf8c7bb)){const _0x1c5bab=_0x24d805(_0x5ea1ee(0x117),_0xf8c7bb,_0x4c9d3b);this[_0x5ea1ee(0xf2)](_0x1c5bab,_0x283c91);}if(this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0xfd)](_0xf8c7bb)){const _0x542e2a=this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x107)](_0xf8c7bb);this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x11a)](_0x542e2a,0x1);}}else{if(this[_0x5ea1ee(0x114)](_0x283c91)){const _0x131afa=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)][_0x5ea1ee(0xfd)](_0x131afa)||this[_0x5ea1ee(0x108)](_0x283c91);}}}}}for(const _0x2b9dc6 of this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]){const _0x47c32c=_0x24d805(_0x5ea1ee(0x117),_0x2b9dc6,_0x4c9d3b);if(_0x47c32c){if(_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x126)]){this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=_0x2b9dc6;const _0xc42291=_0xd9b94b[_0x5ea1ee(0x126)][_0x5ea1ee(0x127)](!0x0);_0x52dd(_0xc42291,_0x5ea1ee(0x117),_0x2b9dc6),_0x52dd(_0xc42291,_0x5ea1ee(0xf1),_0x5ea1ee(0xee)),_0x5505e3(_0x47c32c,_0xc42291);}else _0x2275b9(_0x47c32c);}}if(_0x59e44a(_0x5ea1ee(0x11f),null,_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x22641e=>{const _0x4b1663=_0x5ea1ee,_0xd135fb=_0x2c50d8(_0x22641e,_0x4b1663(0x11f)),_0x2aebdf=_0x24d805(_0x4b1663(0x117),_0xd135fb,_0x4c9d3b);_0x2aebdf&&_0x21d76f(_0x2aebdf,_0x22641e);}),_0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x4dffcc=>{const _0x2cd156=_0x5ea1ee,_0x3b0e64=this[_0x2cd156(0xed)](_0x4dffcc);_0x52dd(_0x4dffcc,_0x2cd156(0x117),_0x3b0e64),this[_0x2cd156(0xf9)][_0x2cd156(0x10f)][_0x2cd156(0xec)](_0x3b0e64);}),this[_0x5ea1ee(0xf7)](_0x4c9d3b),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x103)](_0x4c9d3b,_0xd9b94b[_0x5ea1ee(0xfa)]||0x0),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x10c)]&&this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]){let _0x2b5964=_0x24d805(_0x5ea1ee(0x117),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)],_0x4c9d3b);for(;_0x2b5964;)_0x109aba(_0x2b5964),_0x2b5964=_0x2b5964[_0x5ea1ee(0xf6)];}return{'parsedContent':_0x4c9d3b,'newNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)],'modifiedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)],'removedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]};}[_0xe8ab9d(0x121)](_0x3046ad,_0x56a2d0,_0x199d2d){const _0x2a907a=_0xe8ab9d;for(const _0x5cf4d1 of _0x56a2d0){const _0x4738a2=this[_0x2a907a(0xed)](_0x5cf4d1);_0x52dd(_0x5cf4d1,_0x2a907a(0x117),_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x10f)][_0x2a907a(0xec)](_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x113)]=_0x4738a2;}const _0x29698e=_0x2a907a(0xe4)===_0x199d2d||_0x2a907a(0x10b)===_0x199d2d?_0x56a2d0[_0x2a907a(0x12b)]():_0x56a2d0;for(const _0x4dbe2b of _0x29698e)_0x13357b(_0x3046ad,_0x4dbe2b,_0x199d2d);}[_0xe8ab9d(0xf2)](_0xfdfbfd,_0x583e04){const _0x53afca=_0xe8ab9d;if(!_0xfdfbfd)return;if(_0x161cd2(_0xfdfbfd,_0x583e04))return;const _0x2c62b8=this[_0x53afca(0xed)](_0xfdfbfd);_0x52dd(_0x583e04,_0x53afca(0x117),_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x100)][_0x53afca(0xec)](_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x113)]=_0x2c62b8,_0x5505e3(_0xfdfbfd,_0x583e04[_0x53afca(0x127)](!0x0));}[_0xe8ab9d(0x104)](_0x1cc39a,_0x33e2de,_0xf1f4f7){const _0x3f43f2=_0xe8ab9d,_0x4781e8=this[_0x3f43f2(0xff)](_0x1cc39a,!0x1);if(_0x4781e8){const _0x94e7c9=this[_0x3f43f2(0x123)](_0x4781e8),_0x4ebc30=_0x24d805(_0x3f43f2(0x117),_0x94e7c9,_0xf1f4f7);if(_0x4ebc30)return[_0x4ebc30,_0x3f43f2(0x10b)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x94e7c9);}const _0x4d8e7c=this[_0x3f43f2(0x10e)](_0x1cc39a,!0x1);if(_0x4d8e7c){const _0x32a20d=this[_0x3f43f2(0x123)](_0x4d8e7c),_0x50544d=_0x24d805(_0x3f43f2(0x117),_0x32a20d,_0xf1f4f7);if(_0x50544d)return[_0x50544d,_0x3f43f2(0x122)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x32a20d);}return _0x33e2de?_0x1cc39a[_0x3f43f2(0xea)]?this[_0x3f43f2(0xfc)](_0x1cc39a,_0xf1f4f7):[_0xf1f4f7[_0x3f43f2(0xf4)][_0xf1f4f7[_0x3f43f2(0xf4)][_0x3f43f2(0x11e)]-0x1],_0x3f43f2(0x10b)]:[_0xf1f4f7[_0x3f43f2(0xf4)][0x0],_0x3f43f2(0x122)];}[_0xe8ab9d(0xfc)](_0x220331,_0x2aac8e){const _0x102821=_0xe8ab9d,_0x2a0605=[],_0x1e61e3=this[_0x102821(0xff)](_0x220331,!0x0);if(_0x1e61e3){const _0x3aa496=this[_0x102821(0x123)](_0x1e61e3),_0xeb25ce=_0x24d805(_0x102821(0x117),_0x3aa496,_0x2aac8e);_0xeb25ce&&_0x2a0605[_0x102821(0xec)]([_0xeb25ce,_0x102821(0x10b)]);}const _0x56eabb=this[_0x102821(0x10e)](_0x220331,!0x0);if(_0x56eabb){const _0x25ba44=this[_0x102821(0x123)](_0x56eabb),_0x586810=_0x24d805(_0x102821(0x117),_0x25ba44,_0x2aac8e);_0x586810&&_0x2a0605[_0x102821(0xec)]([_0x586810,_0x102821(0x122)]);}if(_0x2a0605[_0x102821(0x11e)]>0x1)return _0x2775e0(_0x2a0605[0x0][0x0])<=_0x2775e0(_0x2a0605[0x1][0x0])?_0x2a0605[0x0]:_0x2a0605[0x1];return 0x1===_0x2a0605[_0x102821(0x11e)]?_0x2a0605[0x0]:[_0x2aac8e[_0x102821(0x120)],_0x102821(0x10b)];}[_0xe8ab9d(0x10e)](_0x1f09e0,_0x521fea){const _0x51ef59=_0xe8ab9d;let _0x187103=_0x1f09e0[_0x51ef59(0xea)],_0x19fe93=null,_0x590b27=!0x1;for(;_0x187103;){if(_0x176b9f(_0x187103)){if(this[_0x51ef59(0x114)](_0x187103)&&(_0x19fe93=_0x187103),this[_0x51ef59(0xe9)](_0x187103)&&_0x521fea&&!_0x590b27){_0x590b27=!0x0,_0x187103=_0x187103[_0x51ef59(0xea)];continue;}break;}const _0x18b367=_0x2c50d8(_0x187103,_0x51ef59(0x117));if(_0x18b367&&_0x51ef59(0x112)!==_0x18b367&&this[_0x51ef59(0xf0)][_0x51ef59(0x101)](_0x18b367)){_0x19fe93=_0x187103;break;}_0x187103=_0x187103[_0x51ef59(0xea)];}return _0x19fe93;}[_0xe8ab9d(0xff)](_0x421726,_0x3badbd){const _0x216741=_0xe8ab9d;let _0x4d8098=_0x421726[_0x216741(0x102)],_0x10c943=null,_0x3d7a88=!0x1;for(;_0x4d8098;){if(_0x176b9f(_0x4d8098)){if(this[_0x216741(0x114)](_0x4d8098)&&(_0x10c943=_0x4d8098),this[_0x216741(0xe9)](_0x4d8098)&&_0x3badbd&&!_0x3d7a88){_0x3d7a88=!0x0,_0x4d8098=_0x4d8098[_0x216741(0x102)];continue;}break;}const _0x5629d0=_0x2c50d8(_0x4d8098,_0x216741(0x117));if(_0x5629d0&&_0x216741(0x112)!==_0x5629d0&&this[_0x216741(0xf0)][_0x216741(0x101)](_0x5629d0)){_0x10c943=_0x4d8098;break;}_0x4d8098=_0x4d8098[_0x216741(0x102)];}return _0x10c943;}[_0xe8ab9d(0xfe)](_0x4986da){const _0x4c41d0=_0xe8ab9d;_0x43d485(_0x4986da)&&_0x59e44a(_0x4c41d0(0x117),null,_0x4986da)[_0x4c41d0(0xe8)](_0x49fc98=>{const _0x264999=_0x4c41d0;if(this[_0x264999(0x106)](_0x49fc98)&&!this[_0x264999(0x109)](_0x49fc98)){const _0x56821d=_0x2c50d8(_0x49fc98,_0x264999(0x117));_0x52dd(_0x49fc98,_0x264999(0x11f),_0x56821d),_0x52dd(_0x49fc98,_0x264999(0x117),null);}});}[_0xe8ab9d(0x123)](_0x21a37d){const _0x4b622f=_0xe8ab9d;if(!_0x21a37d)return null;if(_0x43d485(_0x21a37d))return _0x2c50d8(_0x21a37d,_0x4b622f(0x117));if(_0x176b9f(_0x21a37d)){const _0x3bc405=_0x4dc70f(_0x21a37d)[_0x4b622f(0x111)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3bc405&&_0x3bc405[0x1])return _0x3bc405[0x1];}return null;}[_0xe8ab9d(0x108)](_0x488077){const _0x386dc1=_0xe8ab9d;if(_0x176b9f(_0x488077)){const _0xe098d3=_0x4dc70f(_0x488077)[_0x386dc1(0x111)](/removed[\s*-]data-id="([^"]+)"/);_0xe098d3&&_0xe098d3[0x1]&&this[_0x386dc1(0xf9)][_0x386dc1(0x115)][_0x386dc1(0xec)](_0xe098d3[0x1]);}}[_0xe8ab9d(0xed)](_0x2c5308){const _0x1b31ed=_0xe8ab9d;return this[_0x1b31ed(0x106)](_0x2c5308)?_0x2c50d8(_0x2c5308,_0x1b31ed(0x117)):this[_0x1b31ed(0x11c)]();}[_0xe8ab9d(0xf7)](_0x1e4085){const _0x19f4d6=_0xe8ab9d;_0x582f31(_0x1e4085)[_0x19f4d6(0x110)](_0x231944=>this[_0x19f4d6(0x114)](_0x231944)||this[_0x19f4d6(0xe9)](_0x231944))[_0x19f4d6(0xe8)](_0x39d46f=>{_0x2275b9(_0x39d46f);});}[_0xe8ab9d(0x11d)](_0x4e6166){const _0x57b6b5=_0xe8ab9d,_0x79b4f3=_0x4e6166[_0x57b6b5(0xf4)],_0x520e35=_0x79b4f3[_0x79b4f3[_0x57b6b5(0x11e)]-0x1];_0x520e35&&_0x43d485(_0x520e35)&&_0x52dd(_0x520e35,_0x57b6b5(0x10d),_0x57b6b5(0xee));}[_0xe8ab9d(0x103)](_0x3908a7,_0x44a836){const _0x55c4a7=_0xe8ab9d,_0x294370=_0x24d805(_0x55c4a7(0x10d),_0x55c4a7(0xee),_0x3908a7);if(!_0x294370)return;const _0x4efd85=_0x40e20c(_0x294370)[_0x55c4a7(0x12a)](0x0,-0x1),_0x3d8aa0=_0x4efd85[_0x55c4a7(0x11e)];let _0x1cd126=_0x294370;if(_0x3d8aa0>_0x44a836){let _0x314260=_0x3d8aa0,_0x5554ac=null;for(;_0x314260>_0x44a836&&_0x314260>=0x0;)_0x314260--,_0x5554ac=_0x4efd85[_0x314260];_0x5554ac&&(_0x1cd126=_0x5554ac,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x5554ac,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}else{if(_0x3d8aa0<_0x44a836){let _0x4fe444=_0x3d8aa0,_0x2de79b=_0x294370;for(;_0x4fe444<_0x44a836;){const _0x94afc9=_0x2de79b[_0x55c4a7(0xf4)][_0x55c4a7(0x110)](_0x1da654=>_0x43d485(_0x1da654));if(0x0===_0x94afc9[_0x55c4a7(0x11e)])break;_0x4fe444++,_0x2de79b=_0x94afc9[_0x94afc9[_0x55c4a7(0x11e)]-0x1];}_0x2de79b&&(_0x1cd126=_0x2de79b,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x2de79b,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}}let _0x122dd5=_0x1cd126;for(;_0x122dd5;){for(;_0x122dd5[_0x55c4a7(0xea)];)_0x122dd5=_0x122dd5[_0x55c4a7(0xea)],_0x43d485(_0x122dd5)&&_0x52dd(_0x122dd5,_0x55c4a7(0x10d),_0x55c4a7(0xee));_0x122dd5=_0x122dd5[_0x55c4a7(0xf6)];}}[_0xe8ab9d(0xe5)](_0x5720f2){const _0x523723=_0xe8ab9d;return Boolean(_0x523723(0x112)===_0x2c50d8(_0x5720f2,_0x523723(0x117)));}[_0xe8ab9d(0x106)](_0x3688c0){const _0xe52ae=_0xe8ab9d;return Boolean((_0x2c50d8(_0x3688c0,_0xe52ae(0x117))||'')[_0xe52ae(0x11e)]>0x0&&_0xe52ae(0x112)!==_0x2c50d8(_0x3688c0,_0xe52ae(0x117)));}[_0xe8ab9d(0x114)](_0x3f8ae3){const _0x58db0d=_0xe8ab9d;return!!_0x3f8ae3&&Boolean(_0x176b9f(_0x3f8ae3)&&_0x4dc70f(_0x3f8ae3)[_0x58db0d(0x111)](/removed[\s*-]data-id="[^"]+"/));}[_0xe8ab9d(0x109)](_0x50e216){const _0xc1d1bb=_0xe8ab9d;let _0xb9e2a7=_0x50e216[_0xc1d1bb(0xf6)];for(;_0xb9e2a7;){if(_0x2c50d8(_0xb9e2a7,_0xc1d1bb(0x11f)))return!0x0;_0xb9e2a7=_0xb9e2a7[_0xc1d1bb(0xf6)];}return!0x1;}[_0xe8ab9d(0xe9)](_0x2de973){const _0x5cc87d=_0xe8ab9d;return Boolean(_0x176b9f(_0x2de973)&&_0x4dc70f(_0x2de973)[_0x5cc87d(0x111)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x4457(_0x3bc497,_0x3f305f){const _0x570ac8=_0x570a();return _0x4457=function(_0x445757,_0x11eab3){_0x445757=_0x445757-0xe3;let _0x3e2b02=_0x570ac8[_0x445757];return _0x3e2b02;},_0x4457(_0x3bc497,_0x3f305f);}function _0x570a(){const _0x3e1387=['lastChild','_insertNodes','beforebegin','_getNodeDataId','markUnstableElements','trim','replaceRemovedWith','cloneNode','13107760IbmZjN','7zjaMzu','slice','reverse','8072154WbEiho','afterbegin','_isNewNode','233919MWnnvi','1jlEeDs','forEach','_isExistingContentComment','nextSibling','1471811xvWBzk','push','_getUid','true','1149730hiILhJ','_existingDataIds','data-removed','_replaceNode','map','childNodes','merge','parentNode','_removeSpecialComments','from','_touchedNodesState','markUnstableElementsDepth','1680412XzQpCG','_findFallbackReferenceNode','includes','_markWrappedElements','_findPrevElementWithDataId','modifiedIds','has','previousSibling','_markUnstableElements','_findReferenceNode','3475191hsQbil','_isExistingNode','indexOf','_storeDeletedElementIds','_hasWrappedParent','nodeType','afterend','cutAfterLastChange','data-unstable','_findNextElementWithDataId','newIds','filter','match','new-element','lastTouchedId','_isDelNode','removedIds','4QnktCC','data-id','invalidIds','60zsvLAo','splice','20soMrro','_generateUid','_markLastTagElementUnstable','length','data-wrapped-id'];_0x570a=function(){return _0x3e1387;};return _0x570a();}
|
|
23
|
+
function _0x5633(_0x3e2b5f,_0x23c716){const _0x298cb1=_0x298c();return _0x5633=function(_0x563382,_0x32e482){_0x563382=_0x563382-0x74;let _0x5d8bb4=_0x298cb1[_0x563382];return _0x5d8bb4;},_0x5633(_0x3e2b5f,_0x23c716);}const _0x290181=_0x5633;(function(_0x39ea35,_0x4e8c65){const _0x2713f3=_0x5633,_0x1ead1a=_0x39ea35();while(!![]){try{const _0x2f29fe=-parseInt(_0x2713f3(0xb6))/0x1+-parseInt(_0x2713f3(0x83))/0x2+parseInt(_0x2713f3(0x75))/0x3+parseInt(_0x2713f3(0xa0))/0x4*(parseInt(_0x2713f3(0x97))/0x5)+-parseInt(_0x2713f3(0xa9))/0x6+parseInt(_0x2713f3(0x7e))/0x7+parseInt(_0x2713f3(0xab))/0x8;if(_0x2f29fe===_0x4e8c65)break;else _0x1ead1a['push'](_0x1ead1a['shift']());}catch(_0x5d9e7e){_0x1ead1a['push'](_0x1ead1a['shift']());}}}(_0x298c,0xe8e2a));import{ObservableMixin as _0x1f9b90,uid as _0x2b3468}from'ckeditor5/src/utils.js';function _0x298c(){const _0x231d52=['cloneNode','newIds','_findReferenceNode','_insertNodes','slice','_removeSpecialComments','from','1005672cHAidn','_isNewNode','6163936ENkNFx','_generateUid','splice','data-removed','childNodes','reverse','forEach','invalidIds','parentNode','_storeDeletedElementIds','markUnstableElementsDepth','164954FOHgTW','_isDelNode','_touchedNodesState','map','525636YEmsHQ','_hasWrappedParent','lastTouchedId','has','_findNextElementWithDataId','cutAfterLastChange','_markUnstableElements','nodeType','_isExistingContentComment','3956995BEueMl','data-wrapped-id','data-id','_getUid','replaceRemovedWith','2057658Kyfoqt','push','_markLastTagElementUnstable','afterend','lastChild','match','indexOf','markUnstableElements','filter','includes','_findPrevElementWithDataId','removedIds','new-element','merge','data-unstable','nextSibling','_markWrappedElements','modifiedIds','previousSibling','_isExistingNode','40WsWJPO','_findFallbackReferenceNode','_existingDataIds','beforebegin','afterbegin','_getNodeDataId','trim','true','_replaceNode','402152LfFrlY','length'];_0x298c=function(){return _0x231d52;};return _0x298c();}import{findAllByAttribute as _0x312c4e,findByAttribute as _0x5d534b,getAttribute as _0x1f8f48,isComment as _0x5eee27,isTag as _0x469752,insertElement as _0x304816,moveElement as _0x414c2b,removeElement as _0x205df1,replaceElement as _0x488bd7,serialize as _0x519b13,setAttribute as _0x5e98d4,clone as _0x2c561c,findAllComments as _0x2ef713,getParents as _0x48195b,getNodeNestingLevel as _0x49ee1a,areNodesSame as _0x496e31,removeElementsAfter as _0x117bad}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f9b90(){[_0x290181(0xac)];[_0x290181(0xb8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x290181(0x99)]=new Set();constructor(_0x50f922){const _0x2cbbcf=_0x290181;super(),this[_0x2cbbcf(0xac)]=_0x50f922||_0x2b3468;}[_0x290181(0x90)](_0x25e2aa,_0x9c1898,_0x4d8903){const _0x18aad1=_0x290181,_0x5e2808=_0x2c561c(_0x25e2aa);if(0x0===_0x9c1898[_0x18aad1(0xaf)][_0x18aad1(0xa1)]){const _0xf16581=[];return _0x312c4e(_0x18aad1(0x80),_0x18aad1(0x8f),_0x5e2808)[_0x18aad1(0xb1)](_0x2e0d00=>{const _0x3c68c7=_0x18aad1,_0x699be4=this[_0x3c68c7(0xac)]();_0x5e98d4(_0x2e0d00,_0x3c68c7(0x80),_0x699be4),_0xf16581[_0x3c68c7(0x84)](_0x699be4);}),this[_0x18aad1(0xa7)](_0x5e2808),{'parsedContent':_0x5e2808,'newNodeIds':_0xf16581,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4d8903&&_0x4d8903[_0x18aad1(0x8a)]&&this[_0x18aad1(0x85)](_0x5e2808),this[_0x18aad1(0xb8)][_0x18aad1(0xa3)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x94)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0xb2)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x77)]=null,this[_0x18aad1(0x99)]=new Set(_0x312c4e(_0x18aad1(0x80),null,_0x9c1898)[_0x18aad1(0x74)](_0x3cd414=>_0x1f8f48(_0x3cd414,_0x18aad1(0x80)))[_0x18aad1(0x8b)](_0x2be040=>!!_0x2be040));let _0xe71138=-0x1,_0x90166c=!0x1;const _0x1ad4d3=_0x5e2808[_0x18aad1(0xaf)],_0xfe3ba7=Array[_0x18aad1(0xa8)](_0x1ad4d3)[_0x18aad1(0x8b)](_0x58ec0c=>!(0x3===_0x58ec0c[_0x18aad1(0x7c)]&&''===_0x519b13(_0x58ec0c)[_0x18aad1(0x9d)]())),_0x41003e=_0xfe3ba7[_0x18aad1(0xa1)];for(let _0x47675d=0x0;_0x47675d<_0x41003e;_0x47675d++){const _0x142b5e=_0xfe3ba7[_0x47675d],_0x582c4f=_0xfe3ba7[_0x47675d+0x1];if(this[_0x18aad1(0xaa)](_0x142b5e)){if(-0x1===_0xe71138&&(_0xe71138=_0x47675d),this[_0x18aad1(0x93)](_0x142b5e),!this[_0x18aad1(0xaa)](_0x582c4f)){const [_0x4907c6,_0x14d496]=this[_0x18aad1(0xa4)](_0x142b5e,_0x90166c,_0x9c1898);if(_0x4907c6){const _0x36579e=Array[_0x18aad1(0xa8)](_0xfe3ba7)[_0x18aad1(0xa6)](_0xe71138,_0x47675d+0x1);this[_0x18aad1(0xa5)](_0x4907c6,_0x36579e,_0x14d496),_0xe71138=-0x1;}}}else{if(this[_0x18aad1(0x7d)](_0x142b5e))_0x90166c=!0x0;else{if(this[_0x18aad1(0x96)](_0x142b5e)){const _0x3d6948=_0x1f8f48(_0x142b5e,_0x18aad1(0x80));if(_0x3d6948&&this[_0x18aad1(0x99)][_0x18aad1(0x78)](_0x3d6948)){const _0x42465a=_0x5d534b(_0x18aad1(0x80),_0x3d6948,_0x9c1898);this[_0x18aad1(0x9f)](_0x42465a,_0x142b5e);}if(this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0x8c)](_0x3d6948)){const _0x15d0cc=this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0x89)](_0x3d6948);this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0xad)](_0x15d0cc,0x1);}}else{if(this[_0x18aad1(0xb7)](_0x142b5e)){const _0x39278e=_0x1f8f48(_0x142b5e,_0x18aad1(0x80));this[_0x18aad1(0xb8)][_0x18aad1(0x94)][_0x18aad1(0x8c)](_0x39278e)||this[_0x18aad1(0xb4)](_0x142b5e);}}}}}for(const _0x2dfa78 of this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]){const _0x47019d=_0x5d534b(_0x18aad1(0x80),_0x2dfa78,_0x9c1898);if(_0x47019d){if(_0x4d8903&&_0x4d8903[_0x18aad1(0x82)]){this[_0x18aad1(0xb8)][_0x18aad1(0x77)]=_0x2dfa78;const _0x3a0976=_0x4d8903[_0x18aad1(0x82)][_0x18aad1(0xa2)](!0x0);_0x5e98d4(_0x3a0976,_0x18aad1(0x80),_0x2dfa78),_0x5e98d4(_0x3a0976,_0x18aad1(0xae),_0x18aad1(0x9e)),_0x488bd7(_0x47019d,_0x3a0976);}else _0x205df1(_0x47019d);}}if(_0x312c4e(_0x18aad1(0x7f),null,_0x9c1898)[_0x18aad1(0xb1)](_0x382c65=>{const _0x1a5513=_0x18aad1,_0x2ae2e5=_0x1f8f48(_0x382c65,_0x1a5513(0x7f)),_0x383313=_0x5d534b(_0x1a5513(0x80),_0x2ae2e5,_0x9c1898);_0x383313&&_0x414c2b(_0x383313,_0x382c65);}),_0x312c4e(_0x18aad1(0x80),_0x18aad1(0x8f),_0x9c1898)[_0x18aad1(0xb1)](_0x36d876=>{const _0x30707c=_0x18aad1,_0x4287a5=this[_0x30707c(0x81)](_0x36d876);_0x5e98d4(_0x36d876,_0x30707c(0x80),_0x4287a5),this[_0x30707c(0xb8)][_0x30707c(0xa3)][_0x30707c(0x84)](_0x4287a5);}),this[_0x18aad1(0xa7)](_0x9c1898),_0x4d8903&&_0x4d8903[_0x18aad1(0x8a)]&&this[_0x18aad1(0x7b)](_0x9c1898,_0x4d8903[_0x18aad1(0xb5)]||0x0),_0x4d8903&&_0x4d8903[_0x18aad1(0x7a)]&&this[_0x18aad1(0xb8)][_0x18aad1(0x77)]){let _0x1fa926=_0x5d534b(_0x18aad1(0x80),this[_0x18aad1(0xb8)][_0x18aad1(0x77)],_0x9c1898);for(;_0x1fa926;)_0x117bad(_0x1fa926),_0x1fa926=_0x1fa926[_0x18aad1(0xb3)];}return{'parsedContent':_0x9c1898,'newNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0xa3)],'modifiedNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0x94)],'removedNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]};}[_0x290181(0xa5)](_0x5a76d5,_0xba8768,_0x531b0c){const _0x42af09=_0x290181;for(const _0x18ae48 of _0xba8768){const _0x5a4069=this[_0x42af09(0x81)](_0x18ae48);_0x5e98d4(_0x18ae48,_0x42af09(0x80),_0x5a4069),this[_0x42af09(0xb8)][_0x42af09(0xa3)][_0x42af09(0x84)](_0x5a4069),this[_0x42af09(0xb8)][_0x42af09(0x77)]=_0x5a4069;}const _0x516df6=_0x42af09(0x9b)===_0x531b0c||_0x42af09(0x86)===_0x531b0c?_0xba8768[_0x42af09(0xb0)]():_0xba8768;for(const _0x388c2b of _0x516df6)_0x304816(_0x5a76d5,_0x388c2b,_0x531b0c);}[_0x290181(0x9f)](_0x283d32,_0x433259){const _0x338fbc=_0x290181;if(!_0x283d32)return;if(_0x496e31(_0x283d32,_0x433259))return;const _0x5ba01d=this[_0x338fbc(0x81)](_0x283d32);_0x5e98d4(_0x433259,_0x338fbc(0x80),_0x5ba01d),this[_0x338fbc(0xb8)][_0x338fbc(0x94)][_0x338fbc(0x84)](_0x5ba01d),this[_0x338fbc(0xb8)][_0x338fbc(0x77)]=_0x5ba01d,_0x488bd7(_0x283d32,_0x433259[_0x338fbc(0xa2)](!0x0));}[_0x290181(0xa4)](_0x569f41,_0x24a14f,_0xde35cb){const _0x2c4131=_0x290181,_0x408944=this[_0x2c4131(0x8d)](_0x569f41,!0x1);if(_0x408944){const _0x392d40=this[_0x2c4131(0x9c)](_0x408944),_0x18f9c5=_0x5d534b(_0x2c4131(0x80),_0x392d40,_0xde35cb);if(_0x18f9c5)return[_0x18f9c5,_0x2c4131(0x86)];this[_0x2c4131(0xb8)][_0x2c4131(0xb2)][_0x2c4131(0x84)](_0x392d40);}const _0x2a32ae=this[_0x2c4131(0x79)](_0x569f41,!0x1);if(_0x2a32ae){const _0x1052e6=this[_0x2c4131(0x9c)](_0x2a32ae),_0x2df731=_0x5d534b(_0x2c4131(0x80),_0x1052e6,_0xde35cb);if(_0x2df731)return[_0x2df731,_0x2c4131(0x9a)];this[_0x2c4131(0xb8)][_0x2c4131(0xb2)][_0x2c4131(0x84)](_0x1052e6);}return _0x24a14f?_0x569f41[_0x2c4131(0x92)]?this[_0x2c4131(0x98)](_0x569f41,_0xde35cb):[_0xde35cb[_0x2c4131(0xaf)][_0xde35cb[_0x2c4131(0xaf)][_0x2c4131(0xa1)]-0x1],_0x2c4131(0x86)]:[_0xde35cb[_0x2c4131(0xaf)][0x0],_0x2c4131(0x9a)];}[_0x290181(0x98)](_0x2ff28b,_0x276c4d){const _0x4e2bdb=_0x290181,_0x5d879c=[],_0x34e03f=this[_0x4e2bdb(0x8d)](_0x2ff28b,!0x0);if(_0x34e03f){const _0x2ef6a7=this[_0x4e2bdb(0x9c)](_0x34e03f),_0x6fd47a=_0x5d534b(_0x4e2bdb(0x80),_0x2ef6a7,_0x276c4d);_0x6fd47a&&_0x5d879c[_0x4e2bdb(0x84)]([_0x6fd47a,_0x4e2bdb(0x86)]);}const _0x12b7e4=this[_0x4e2bdb(0x79)](_0x2ff28b,!0x0);if(_0x12b7e4){const _0x4aaa9f=this[_0x4e2bdb(0x9c)](_0x12b7e4),_0x531ac0=_0x5d534b(_0x4e2bdb(0x80),_0x4aaa9f,_0x276c4d);_0x531ac0&&_0x5d879c[_0x4e2bdb(0x84)]([_0x531ac0,_0x4e2bdb(0x9a)]);}if(_0x5d879c[_0x4e2bdb(0xa1)]>0x1)return _0x49ee1a(_0x5d879c[0x0][0x0])<=_0x49ee1a(_0x5d879c[0x1][0x0])?_0x5d879c[0x0]:_0x5d879c[0x1];return 0x1===_0x5d879c[_0x4e2bdb(0xa1)]?_0x5d879c[0x0]:[_0x276c4d[_0x4e2bdb(0x87)],_0x4e2bdb(0x86)];}[_0x290181(0x79)](_0x47fbf0,_0x1554e5){const _0x3cdef5=_0x290181;let _0x5da908=_0x47fbf0[_0x3cdef5(0x92)],_0x3ab13a=null,_0x54e264=!0x1;for(;_0x5da908;){if(_0x5eee27(_0x5da908)){if(this[_0x3cdef5(0xb7)](_0x5da908)&&(_0x3ab13a=_0x5da908),this[_0x3cdef5(0x7d)](_0x5da908)&&_0x1554e5&&!_0x54e264){_0x54e264=!0x0,_0x5da908=_0x5da908[_0x3cdef5(0x92)];continue;}break;}const _0x4d3753=_0x1f8f48(_0x5da908,_0x3cdef5(0x80));if(_0x4d3753&&_0x3cdef5(0x8f)!==_0x4d3753&&this[_0x3cdef5(0x99)][_0x3cdef5(0x78)](_0x4d3753)){_0x3ab13a=_0x5da908;break;}_0x5da908=_0x5da908[_0x3cdef5(0x92)];}return _0x3ab13a;}[_0x290181(0x8d)](_0x525f5e,_0x3196bc){const _0x5aaea6=_0x290181;let _0x4980e2=_0x525f5e[_0x5aaea6(0x95)],_0x2ed158=null,_0xb1aec3=!0x1;for(;_0x4980e2;){if(_0x5eee27(_0x4980e2)){if(this[_0x5aaea6(0xb7)](_0x4980e2)&&(_0x2ed158=_0x4980e2),this[_0x5aaea6(0x7d)](_0x4980e2)&&_0x3196bc&&!_0xb1aec3){_0xb1aec3=!0x0,_0x4980e2=_0x4980e2[_0x5aaea6(0x95)];continue;}break;}const _0x20005f=_0x1f8f48(_0x4980e2,_0x5aaea6(0x80));if(_0x20005f&&_0x5aaea6(0x8f)!==_0x20005f&&this[_0x5aaea6(0x99)][_0x5aaea6(0x78)](_0x20005f)){_0x2ed158=_0x4980e2;break;}_0x4980e2=_0x4980e2[_0x5aaea6(0x95)];}return _0x2ed158;}[_0x290181(0x93)](_0x477c90){const _0x450945=_0x290181;_0x469752(_0x477c90)&&_0x312c4e(_0x450945(0x80),null,_0x477c90)[_0x450945(0xb1)](_0x40f31f=>{const _0x270a4e=_0x450945;if(this[_0x270a4e(0x96)](_0x40f31f)&&!this[_0x270a4e(0x76)](_0x40f31f)){const _0x540777=_0x1f8f48(_0x40f31f,_0x270a4e(0x80));_0x5e98d4(_0x40f31f,_0x270a4e(0x7f),_0x540777),_0x5e98d4(_0x40f31f,_0x270a4e(0x80),null);}});}[_0x290181(0x9c)](_0x19f46f){const _0x36913d=_0x290181;if(!_0x19f46f)return null;if(_0x469752(_0x19f46f))return _0x1f8f48(_0x19f46f,_0x36913d(0x80));if(_0x5eee27(_0x19f46f)){const _0x4d47fd=_0x519b13(_0x19f46f)[_0x36913d(0x88)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4d47fd&&_0x4d47fd[0x1])return _0x4d47fd[0x1];}return null;}[_0x290181(0xb4)](_0x136d6e){const _0x44c8ad=_0x290181;if(_0x5eee27(_0x136d6e)){const _0x5637e7=_0x519b13(_0x136d6e)[_0x44c8ad(0x88)](/removed[\s*-]data-id="([^"]+)"/);_0x5637e7&&_0x5637e7[0x1]&&this[_0x44c8ad(0xb8)][_0x44c8ad(0x8e)][_0x44c8ad(0x84)](_0x5637e7[0x1]);}}[_0x290181(0x81)](_0x5c5ec3){const _0x5b4a42=_0x290181;return this[_0x5b4a42(0x96)](_0x5c5ec3)?_0x1f8f48(_0x5c5ec3,_0x5b4a42(0x80)):this[_0x5b4a42(0xac)]();}[_0x290181(0xa7)](_0x47bf62){const _0x4fc269=_0x290181;_0x2ef713(_0x47bf62)[_0x4fc269(0x8b)](_0x3d8f0b=>this[_0x4fc269(0xb7)](_0x3d8f0b)||this[_0x4fc269(0x7d)](_0x3d8f0b))[_0x4fc269(0xb1)](_0x588d05=>{_0x205df1(_0x588d05);});}[_0x290181(0x85)](_0xe5c509){const _0x4829ab=_0x290181,_0x1d7075=_0xe5c509[_0x4829ab(0xaf)],_0x1cf3bd=_0x1d7075[_0x1d7075[_0x4829ab(0xa1)]-0x1];_0x1cf3bd&&_0x469752(_0x1cf3bd)&&_0x5e98d4(_0x1cf3bd,_0x4829ab(0x91),_0x4829ab(0x9e));}[_0x290181(0x7b)](_0x37319b,_0x9e0c8c){const _0x1ad220=_0x290181,_0x14c57c=_0x5d534b(_0x1ad220(0x91),_0x1ad220(0x9e),_0x37319b);if(!_0x14c57c)return;const _0x1f0e01=_0x48195b(_0x14c57c)[_0x1ad220(0xa6)](0x0,-0x1),_0x7468cf=_0x1f0e01[_0x1ad220(0xa1)];let _0x7ee7b7=_0x14c57c;if(_0x7468cf>_0x9e0c8c){let _0x4c8ab4=_0x7468cf,_0x46dab5=null;for(;_0x4c8ab4>_0x9e0c8c&&_0x4c8ab4>=0x0;)_0x4c8ab4--,_0x46dab5=_0x1f0e01[_0x4c8ab4];_0x46dab5&&(_0x7ee7b7=_0x46dab5,_0x5e98d4(_0x14c57c,_0x1ad220(0x91),null),_0x5e98d4(_0x46dab5,_0x1ad220(0x91),_0x1ad220(0x9e)));}else{if(_0x7468cf<_0x9e0c8c){let _0x7fb62c=_0x7468cf,_0x3d051e=_0x14c57c;for(;_0x7fb62c<_0x9e0c8c;){const _0x10e9c9=_0x3d051e[_0x1ad220(0xaf)][_0x1ad220(0x8b)](_0x51e447=>_0x469752(_0x51e447));if(0x0===_0x10e9c9[_0x1ad220(0xa1)])break;_0x7fb62c++,_0x3d051e=_0x10e9c9[_0x10e9c9[_0x1ad220(0xa1)]-0x1];}_0x3d051e&&(_0x7ee7b7=_0x3d051e,_0x5e98d4(_0x14c57c,_0x1ad220(0x91),null),_0x5e98d4(_0x3d051e,_0x1ad220(0x91),_0x1ad220(0x9e)));}}let _0x5af43e=_0x7ee7b7;for(;_0x5af43e;){for(;_0x5af43e[_0x1ad220(0x92)];)_0x5af43e=_0x5af43e[_0x1ad220(0x92)],_0x469752(_0x5af43e)&&_0x5e98d4(_0x5af43e,_0x1ad220(0x91),_0x1ad220(0x9e));_0x5af43e=_0x5af43e[_0x1ad220(0xb3)];}}[_0x290181(0xaa)](_0xc8d88){const _0x1d618f=_0x290181;return Boolean(_0x1d618f(0x8f)===_0x1f8f48(_0xc8d88,_0x1d618f(0x80)));}[_0x290181(0x96)](_0x166fff){const _0x9f4a5b=_0x290181;return Boolean((_0x1f8f48(_0x166fff,_0x9f4a5b(0x80))||'')[_0x9f4a5b(0xa1)]>0x0&&_0x9f4a5b(0x8f)!==_0x1f8f48(_0x166fff,_0x9f4a5b(0x80)));}[_0x290181(0xb7)](_0x2ddc5d){const _0x5cc282=_0x290181;return!!_0x2ddc5d&&Boolean(_0x5eee27(_0x2ddc5d)&&_0x519b13(_0x2ddc5d)[_0x5cc282(0x88)](/removed[\s*-]data-id="[^"]+"/));}[_0x290181(0x76)](_0x5bba00){const _0x47ab2a=_0x290181;let _0x46587f=_0x5bba00[_0x47ab2a(0xb3)];for(;_0x46587f;){if(_0x1f8f48(_0x46587f,_0x47ab2a(0x7f)))return!0x0;_0x46587f=_0x46587f[_0x47ab2a(0xb3)];}return!0x1;}[_0x290181(0x7d)](_0x497a7d){const _0x97940b=_0x290181;return Boolean(_0x5eee27(_0x497a7d)&&_0x519b13(_0x497a7d)[_0x97940b(0x88)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x500d(){const _0x3d5b1c=['57mgnYqF','children','24552WjgYTY','_m2html','52393uxmXwA','<dummy>','12IkWzMG','156CIenYc','1428098wqMVYe','</dummy>','11365HmZyHF','convertMarkdownToHTML','parse','1338LnPRXt','261NdZGbI','_parseHTML','713394ToCIOI','replace','7478110fvoCIq','130356JLqeug','parseAndNormalizeHTML'];_0x500d=function(){return _0x3d5b1c;};return _0x500d();}const _0x33fd49=_0x512a;(function(_0x5d101b,_0x548d23){const _0x55afbe=_0x512a,_0x486106=_0x5d101b();while(!![]){try{const _0x222515=parseInt(_0x55afbe(0x129))/0x1*(parseInt(_0x55afbe(0x12b))/0x2)+-parseInt(_0x55afbe(0x125))/0x3*(parseInt(_0x55afbe(0x123))/0x4)+parseInt(_0x55afbe(0x12f))/0x5*(parseInt(_0x55afbe(0x11d))/0x6)+parseInt(_0x55afbe(0x12d))/0x7+parseInt(_0x55afbe(0x127))/0x8*(parseInt(_0x55afbe(0x11e))/0x9)+parseInt(_0x55afbe(0x122))/0xa+-parseInt(_0x55afbe(0x120))/0xb*(parseInt(_0x55afbe(0x12c))/0xc);if(_0x222515===_0x548d23)break;else _0x486106['push'](_0x486106['shift']());}catch(_0x4baf18){_0x486106['push'](_0x486106['shift']());}}}(_0x500d,0x6199a));function _0x512a(_0x565522,_0x1d35f6){const _0x500da5=_0x500d();return _0x512a=function(_0x512a6e,_0x189316){_0x512a6e=_0x512a6e-0x11c;let _0x4aca20=_0x500da5[_0x512a6e];return _0x4aca20;},_0x512a(_0x565522,_0x1d35f6);}import{ObservableMixin as _0x4feb40}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x4b2362}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5c8505}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4feb40(){[_0x33fd49(0x128)];constructor(){const _0x17b777=_0x33fd49;super(),this[_0x17b777(0x128)]=new _0x4b2362();}[_0x33fd49(0x130)](_0x155d72){const _0x325b15=_0x33fd49,_0x2fd710=this[_0x325b15(0x128)][_0x325b15(0x11c)](_0x155d72);return this[_0x325b15(0x124)](_0x2fd710);}[_0x33fd49(0x124)](_0x23bff7){const _0x15979e=_0x33fd49;return this[_0x15979e(0x11f)](_0x23bff7);}[_0x33fd49(0x11f)](_0x3f1c3b){const _0x8b1366=_0x33fd49,_0x16218a=_0x3f1c3b[_0x8b1366(0x121)](/^\t+/gm,'\x20')[_0x8b1366(0x121)](/\n*/g,'')[_0x8b1366(0x121)](/\s+/g,'\x20')[_0x8b1366(0x121)](/<[^>]*?$/g,''),_0x20c968=_0x5c8505(_0x8b1366(0x12a)+_0x16218a+_0x8b1366(0x12e));return _0x20c968[_0x8b1366(0x126)]=_0x20c968[_0x8b1366(0x126)][0x0][_0x8b1366(0x126)],_0x20c968;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xe508(_0xd1f32b,_0x58fac5){var _0x1a6ef8=_0x1a6e();return _0xe508=function(_0xe5081,_0x28f2c3){_0xe5081=_0xe5081-0xe8;var _0x6c89aa=_0x1a6ef8[_0xe5081];return _0x6c89aa;},_0xe508(_0xd1f32b,_0x58fac5);}(function(_0x760f9,_0x388e13){var _0x4d0ad1=_0xe508,_0x26427d=_0x760f9();while(!![]){try{var _0x27f4fe=parseInt(_0x4d0ad1(0xf7))/0x1+parseInt(_0x4d0ad1(0xea))/0x2+parseInt(_0x4d0ad1(0xf4))/0x3*(-parseInt(_0x4d0ad1(0xe8))/0x4)+parseInt(_0x4d0ad1(0xf1))/0x5*(-parseInt(_0x4d0ad1(0xe9))/0x6)+-parseInt(_0x4d0ad1(0xf3))/0x7*(parseInt(_0x4d0ad1(0xf0))/0x8)+parseInt(_0x4d0ad1(0xf2))/0x9+-parseInt(_0x4d0ad1(0xec))/0xa*(-parseInt(_0x4d0ad1(0xee))/0xb);if(_0x27f4fe===_0x388e13)break;else _0x26427d['push'](_0x26427d['shift']());}catch(_0x2da94c){_0x26427d['push'](_0x26427d['shift']());}}}(_0x1a6e,0x9354b));import{View as _0x32ad8b}from'ckeditor5/src/ui.js';import{getTranslation as _0xeaa3ab}from'../../aicore/utils/common-translations.js';function _0x1a6e(){var _0x2d355c=['303780EUOMDy','16vorKDo','63330qICMWj','2109404KuaYjF','div','22290ddwHri','ck-ai-disclaimer','187SsDtoo','AI_DISCLAIMER_TEXT','191176UYSBZM','85zaVvYY','10280664whJfrV','315vvXimD','510303OXymkg','setTemplate','ck-ai-disclaimer__content'];_0x1a6e=function(){return _0x2d355c;};return _0x1a6e();}export class AIDisclaimerView extends _0x32ad8b{constructor(_0x4aef47){var _0x431dab=_0xe508;super(_0x4aef47),this[_0x431dab(0xf5)]({'tag':_0x431dab(0xeb),'attributes':{'class':['ck',_0x431dab(0xed)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x431dab(0xf6)]},'children':[{'text':_0xeaa3ab(_0x4aef47,_0x431dab(0xef))}]}]});}}
|