@ckeditor/ckeditor5-ai 47.6.0-alpha.9 → 47.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.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/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.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/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59e722=_0x57c8;(function(_0x25d169,_0x229465){const _0xea80ca=_0x57c8,_0x316f37=_0x25d169();while(!![]){try{const _0x29d0a5=-parseInt(_0xea80ca(0x18b))/0x1*(parseInt(_0xea80ca(0x184))/0x2)+-parseInt(_0xea80ca(0x170))/0x3*(parseInt(_0xea80ca(0x178))/0x4)+parseInt(_0xea80ca(0x188))/0x5+-parseInt(_0xea80ca(0x172))/0x6+parseInt(_0xea80ca(0x168))/0x7*(parseInt(_0xea80ca(0x167))/0x8)+-parseInt(_0xea80ca(0x191))/0x9+-parseInt(_0xea80ca(0x17e))/0xa*(-parseInt(_0xea80ca(0x186))/0xb);if(_0x29d0a5===_0x229465)break;else _0x316f37['push'](_0x316f37['shift']());}catch(_0x56a815){_0x316f37['push'](_0x316f37['shift']());}}}(_0x1497,0x94ce8));import{ContextPlugin as _0x48804a}from'ckeditor5/src/core.js';import{AITabs as _0xc5f7da}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1e32ea}from'ckeditor5/src/icons.js';function _0x57c8(_0x1d8673,_0x38d44c){const _0x14973b=_0x1497();return _0x57c8=function(_0x57c8f7,_0xd65476){_0x57c8f7=_0x57c8f7-0x167;let _0x25d515=_0x14973b[_0x57c8f7];return _0x25d515;},_0x57c8(_0x1d8673,_0x38d44c);}import{AIChatHistoryView as _0x147eee}from'./ui/aichathistoryview.js';import{getTranslation as _0x35a226}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x59e722(0x194),_0x59e722(0x192),_0x59e722(0x185),_0x59e722(0x17b),_0x59e722(0x190),_0x59e722(0x18f),_0x59e722(0x173)];export class AIChatHistoryUI extends _0x48804a{static get[_0x59e722(0x189)](){return[_0xc5f7da];}[_0x59e722(0x16f)];static get[_0x59e722(0x16b)](){const _0x564268=_0x59e722;return _0x564268(0x177);}static get[_0x59e722(0x17f)](){return!0x0;}static get[_0x59e722(0x187)](){return!0x0;}constructor(_0x472853){const _0x5a8a5b=_0x59e722;super(_0x472853);const _0x44e812=this[_0x5a8a5b(0x171)][_0x5a8a5b(0x174)][_0x5a8a5b(0x17a)](_0x5a8a5b(0x16d));this[_0x5a8a5b(0x16f)]=new _0x147eee(this[_0x5a8a5b(0x171)][_0x5a8a5b(0x179)],_0x44e812[_0x5a8a5b(0x16e)]),this[_0x5a8a5b(0x16f)][_0x5a8a5b(0x176)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x44e812[_0x5a8a5b(0x180)][_0x5a8a5b(0x169)]({'id':_0x5a8a5b(0x16a),'buttonLabel':_0x35a226(this[_0x5a8a5b(0x171)][_0x5a8a5b(0x179)],_0x5a8a5b(0x183)),'buttonIcon':_0x1e32ea,'order':0x0,'content':this[_0x5a8a5b(0x16f)]});}[_0x59e722(0x17d)](_0x9f8711){const _0x31f9a9=_0x59e722;this[_0x31f9a9(0x16f)][_0x31f9a9(0x17d)](_0x9f8711);}[_0x59e722(0x18c)](_0x32b88a){const _0x3276d8=_0x59e722;this[_0x3276d8(0x16f)][_0x3276d8(0x193)](_0x32b88a);}[_0x59e722(0x16c)](_0x54cd90,_0x3107ef){const _0x974a66=_0x59e722;this[_0x974a66(0x16f)][_0x974a66(0x16c)](_0x54cd90,_0x3107ef);}[_0x59e722(0x18a)](_0x2c5563,_0x237ef9,_0x1673e6){const _0x26b070=_0x59e722;this[_0x26b070(0x16f)][_0x26b070(0x18a)](_0x2c5563,_0x237ef9,_0x1673e6);}[_0x59e722(0x18e)](_0x1ae974){const _0x218882=_0x59e722;this[_0x218882(0x16f)][_0x218882(0x195)]=_0x1ae974;}[_0x59e722(0x175)](_0x23f716){const _0x3b1103=_0x59e722;this[_0x3b1103(0x16f)][_0x3b1103(0x182)]=_0x23f716;}[_0x59e722(0x181)](){const _0x128bec=_0x59e722;this[_0x128bec(0x16f)][_0x128bec(0x182)]='';}[_0x59e722(0x17c)](_0x26c969){const _0x55d969=_0x59e722;this[_0x55d969(0x16f)][_0x55d969(0x18d)]=_0x26c969;}}function _0x1497(){const _0x3d8e14=['isLoading','56696cEMQdl','959KBAUdA','addTab','history','pluginName','updateItemTitle','AITabs','showResizeButton','_historyView','228018ROMBGO','context','4161624DQtQiW','resizeTabs','plugins','showError','delegate','AIChatHistoryUI','64EfZkZC','locale','get','setConversationPinned','setIsMaximized','removeHistoryItem','4136430PEcawR','isOfficialPlugin','view','hideError','errorMessage','AI_CHAT_HISTORY_HEADING','154AqFJQY','editConversationTitle','77NsqDuY','isPremiumPlugin','2428265JyCIfW','requires','updateItemLoadingState','10781MbpMBp','updateItems','isMaximized','setLoadingSkeleton','openChat','selectConversation','9024516xfThOy','removeConversation','updateHistoryItemsWithCategories','showConversationHistory'];_0x1497=function(){return _0x3d8e14;};return _0x1497();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x389e51=_0x5c1f;(function(_0x557db5,_0x1dbf8e){const _0x96ce63=_0x5c1f,_0x46d380=_0x557db5();while(!![]){try{const _0x748e0e=-parseInt(_0x96ce63(0xec))/0x1+parseInt(_0x96ce63(0x104))/0x2+-parseInt(_0x96ce63(0xfc))/0x3*(-parseInt(_0x96ce63(0xe9))/0x4)+parseInt(_0x96ce63(0xed))/0x5*(parseInt(_0x96ce63(0xd8))/0x6)+parseInt(_0x96ce63(0x110))/0x7+-parseInt(_0x96ce63(0xfa))/0x8+-parseInt(_0x96ce63(0xff))/0x9;if(_0x748e0e===_0x1dbf8e)break;else _0x46d380['push'](_0x46d380['shift']());}catch(_0x382ca3){_0x46d380['push'](_0x46d380['shift']());}}}(_0x2e01,0x9e069));import{ListItemView as _0x15dbc0,HighlightedTextView as _0x58c216,ButtonView as _0x4865cd,ListView as _0x46e45c,IconView as _0x81a6c9,createDropdown as _0x5be4c9,InputTextView as _0x4157ce}from'ckeditor5/src/ui.js';function _0x5c1f(_0x4aa3fb,_0x2c1fa8){const _0x2e0190=_0x2e01();return _0x5c1f=function(_0x5c1fe1,_0x343144){_0x5c1fe1=_0x5c1fe1-0xc9;let _0x376303=_0x2e0190[_0x5c1fe1];return _0x376303;},_0x5c1f(_0x4aa3fb,_0x2c1fa8);}import{IconThreeHorizontalDots as _0x29accc,IconPin as _0x1a440a,IconCheck as _0xa844a0,IconCancel as _0x25191e}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x4d5424,ConfirmMixin as _0x1e057f}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x5d43ac}from'es-toolkit/compat';import{AISpinnerView as _0x55fc29}from'../../aicore/ui/aispinner.js';function _0x2e01(){const _0x384c8f=['_createCheckView','then','_createEditInputView','_createCancelEditButtonView','ck-confirm-view-submit','removeConversation','fire','match','ck-ai-chat-history__item-content','tiny','extendTemplate','pinned','focus','isMatching','ck-ai-chat-history__item-row','editConversationTitle','isOn','AI_CHAT_HISTORY_LOADING_PINNING','edit:cancel','Enter','ck-ai-loader__text','AI_CHAT_HISTORY_ACCEPT','isEdit','LOADING_LABELS','setConversationPinned','highlightText','panelPosition','_createPinButtonView','ck-ai-chat-history__item-check','selectConversation','bind','actions','6AGqefl','bindTemplate','click','buttonView','withText','_titleView','clear','value','ck-hidden','_createSpinnerView','AI_CHAT_HISTORY_REMOVE_CONFIRM','set','ck-ai-chat-history__item-main-content','execute','add','div','children','32ldkjyi','ck-ai-chat-history__item','listitem','41272ysxavG','4910160kmuetj','ck-ai-chat-history__item-actions','change:isEdit','ck-ai-chat-history__item-date','_createMenuDropdownView','AI_CHAT_HISTORY_REMOVE','ck-confirm-view-cancel','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item--edit','isVisible','setTemplate','updateLoadingState','key','1591336UpAQxb','string','270855xYwJQW','ck-ai-chat-history__item-check-container','panelView','9737676EsmUrE','AI_CHAT_HISTORY_EDIT_NAME','createCollection','mainContent','ck-ai-chat-history__item--active','313452RpTfWT','items','label','element','addMany','AI_CHAT_HISTORY_LOADING_REMOVING','_createAcceptEditButtonView','AI_CHAT_HISTORY_CANCEL','locale','AI_CHAT_HISTORY_LOADING_UNPINNING','updateTitle','AI_CHAT_HISTORY_LOADING_RENAMING','758716iWLEEc','ck-ai-loader','_commitEditInputValue','loadingState','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-title','showConfirm','span','text'];_0x2e01=function(){return _0x384c8f;};return _0x2e01();}import{getTranslation as _0x3937c1}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1e057f(_0x15dbc0){['id'];static [_0x389e51(0xcf)]={'remove':_0x389e51(0x109),'rename':_0x389e51(0x10f),'pin':_0x389e51(0xc9),'unpin':_0x389e51(0x10d)};[_0x389e51(0xd7)];[_0x389e51(0x102)];[_0x389e51(0xdd)];constructor(_0xbe45c1,_0x44dfc0){const _0x5db529=_0x389e51;super(_0xbe45c1);const _0x3ed1f5=this[_0x5db529(0xd9)];this[_0x5db529(0xe3)](_0x5db529(0xce),!0x1),this[_0x5db529(0xe3)](_0x5db529(0xf6),!0x0),this[_0x5db529(0xe3)](_0x5db529(0x124),!!_0x44dfc0[_0x5db529(0x124)]),this[_0x5db529(0xe3)](_0x5db529(0x113),null),this['id']=_0x44dfc0['id'];const {title:_0x47be15,createdAt:_0x1f5fa2,active:_0x2b2c15=!0x1}=_0x44dfc0;this[_0x5db529(0xdd)]=new _0x58c216(),this[_0x5db529(0xdd)][_0x5db529(0x118)]=_0x47be15,this[_0x5db529(0xdd)][_0x5db529(0x123)]({'attributes':{'class':[_0x5db529(0x115)]}});const _0x27cf77=this[_0x5db529(0x119)](),_0x2f0c23=this[_0x5db529(0xd3)](_0xbe45c1),_0x479021=this[_0x5db529(0xf1)](),_0x708d94=this[_0x5db529(0x11b)](_0xbe45c1,_0x47be15),_0x3b60a6=this[_0x5db529(0x10a)](_0xbe45c1,_0x708d94),_0x1459de=this[_0x5db529(0x11c)](_0xbe45c1,_0x708d94);this[_0x5db529(0xd7)]=this[_0x5db529(0x101)](),this[_0x5db529(0x102)]=this[_0x5db529(0x101)](),this[_0x5db529(0x102)][_0x5db529(0xe6)](this[_0x5db529(0xdd)]),this[_0x5db529(0xd7)][_0x5db529(0xe6)](_0x2f0c23),this[_0x5db529(0xd7)][_0x5db529(0xe6)](_0x479021),this['on'](_0x5db529(0xef),(_0x4ccbfb,_0x8b13e1,_0x347f74)=>{const _0x4f6ed6=_0x5db529;this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xde)](),this[_0x4f6ed6(0x102)][_0x4f6ed6(0xde)](),_0x347f74?(this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x3b60a6),this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x1459de),this[_0x4f6ed6(0x102)][_0x4f6ed6(0xe6)](_0x708d94),_0x708d94[_0x4f6ed6(0x107)][_0x4f6ed6(0x125)]()):(this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x2f0c23),this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x479021),this[_0x4f6ed6(0x102)][_0x4f6ed6(0xe6)](this[_0x4f6ed6(0xdd)]));}),this[_0x5db529(0xf7)]({'tag':'li','attributes':{'class':[_0x5db529(0xea),_0x2b2c15?_0x5db529(0x103):'',_0x3ed1f5['if'](_0x5db529(0xf6),_0x5db529(0xe0),_0x34673f=>!_0x34673f),_0x3ed1f5['if'](_0x5db529(0xce),_0x5db529(0xf5))],'role':_0x5db529(0xeb)},'children':[{'tag':_0x5db529(0x117),'attributes':{'class':[_0x5db529(0xfd)]},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xd4),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x4dce29=>!!_0x4dce29)]},'children':_0x2b2c15?[_0x27cf77]:[]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x111),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x1902cd=>!_0x1902cd)]},'children':[this[_0x5db529(0xe1)]()]}]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x127)]},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x121)]},'on':{'click':this[_0x5db529(0xd9)]['to'](_0x5db529(0xda))},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xe4)]},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x115),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x479807=>!!_0x479807)]},'children':this[_0x5db529(0x102)]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xcc),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x435da2=>!_0x435da2)]},'children':[{'text':_0x3ed1f5['to'](_0x5db529(0x113),_0x340021=>_0x340021?_0x3937c1(this[_0x5db529(0x10c)],AIChatHistoryListItemView[_0x5db529(0xcf)][_0x340021]):'')}]}]},{'tag':_0x5db529(0x117),'attributes':{'class':[_0x5db529(0xf0)]},'children':[_0x1f5fa2]}]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xee)]},'children':this[_0x5db529(0xd7)]}]}]}),this['on'](_0x5db529(0xda),()=>{const _0x43874f=_0x5db529;this[_0x43874f(0xce)]||this[_0x43874f(0x11f)](_0x43874f(0xd5),{'id':this['id']});});}[_0x389e51(0x10e)](_0x2095ad){const _0x2967da=_0x389e51;this[_0x2967da(0xdd)][_0x2967da(0x118)]=_0x5d43ac(_0x2095ad);}[_0x389e51(0xf8)](_0x30b0c1,_0x47ab93){const _0x589cc1=_0x389e51;this[_0x589cc1(0xe3)](_0x589cc1(0x113),_0x47ab93?_0x30b0c1:null);}[_0x389e51(0x119)](){const _0x147a5a=_0x389e51,_0x2d8712=new _0x81a6c9();return _0x2d8712[_0x147a5a(0xe3)]({'content':_0xa844a0}),_0x2d8712;}[_0x389e51(0xd3)](_0x3c6cd1){const _0x3a83e6=_0x389e51,_0x105158=new _0x4865cd(_0x3c6cd1);return _0x105158[_0x3a83e6(0xe3)]({'label':_0x3937c1(_0x3c6cd1,_0x3a83e6(0xf4)),'icon':_0x1a440a,'withText':!0x1,'tooltip':!0x0}),_0x105158[_0x3a83e6(0xd6)](_0x3a83e6(0x129))['to'](this,_0x3a83e6(0x124)),_0x105158['on'](_0x3a83e6(0xe5),()=>{const _0x588cc2=_0x3a83e6,_0xdad199=!this[_0x588cc2(0x124)];this[_0x588cc2(0x11f)](_0x588cc2(0xd0),{'id':this['id'],'pinned':_0xdad199});}),_0x105158;}[_0x389e51(0xf1)](){const _0xa39e2=_0x389e51,_0x135a74=_0x5be4c9(this[_0xa39e2(0x10c)],_0x4d5424),_0x3e5856=_0x135a74[_0xa39e2(0xfe)][_0xa39e2(0xe8)];_0x135a74[_0xa39e2(0xdb)][_0xa39e2(0xe3)]({'label':_0x3937c1(this[_0xa39e2(0x10c)],_0xa39e2(0x114)),'icon':_0x29accc}),_0x135a74[_0xa39e2(0xd2)]='sw';const _0xdbae99=new _0x4865cd(this[_0xa39e2(0x10c)]);_0xdbae99[_0xa39e2(0x106)]=_0x3937c1(this[_0xa39e2(0x10c)],_0xa39e2(0x100)),_0xdbae99[_0xa39e2(0xdc)]=!0x0,_0xdbae99['on'](_0xa39e2(0xe5),()=>{const _0x5c585f=_0xa39e2;this[_0x5c585f(0xce)]=!0x0;});const _0x46b8c6=new _0x4865cd(this[_0xa39e2(0x10c)]);_0x46b8c6[_0xa39e2(0x106)]=_0x3937c1(this[_0xa39e2(0x10c)],_0xa39e2(0xf2)),_0x46b8c6[_0xa39e2(0xdc)]=!0x0,_0x46b8c6['on'](_0xa39e2(0xe5),()=>{const _0x47c0cd=_0xa39e2;this[_0x47c0cd(0x116)](_0x3937c1(this[_0x47c0cd(0x10c)],_0x47c0cd(0xe2)),this[_0x47c0cd(0x107)])[_0x47c0cd(0x11a)](()=>{const _0x440572=_0x47c0cd;this[_0x440572(0x11f)](_0x440572(0x11e),{'id':this['id']});});});const _0x2a7613=new _0x46e45c(this[_0xa39e2(0x10c)]),_0x2afc79=new _0x15dbc0(this[_0xa39e2(0x10c)]);_0x2afc79[_0xa39e2(0xe8)][_0xa39e2(0xe6)](_0xdbae99);const _0x2b6ab2=new _0x15dbc0(this[_0xa39e2(0x10c)]);return _0x2b6ab2[_0xa39e2(0xe8)][_0xa39e2(0xe6)](_0x46b8c6),_0x2a7613[_0xa39e2(0x105)][_0xa39e2(0x108)]([_0x2afc79,_0x2b6ab2]),_0x3e5856[_0xa39e2(0xe6)](_0x2a7613),_0x135a74;}[_0x389e51(0x11b)](_0x108f0e,_0x425da6){const _0x54cc97=_0x389e51,_0x3d6970=new _0x4157ce(_0x108f0e),_0x16c337=_0x3d6970[_0x54cc97(0xd9)];return _0x3d6970[_0x54cc97(0xdf)]=_0x425da6,_0x3d6970[_0x54cc97(0x123)]({'on':{'keydown':_0x16c337['to'](_0x554574=>{const _0x3624d5=_0x54cc97;_0x3624d5(0xcb)==_0x554574[_0x3624d5(0xf9)]&&this[_0x3624d5(0x112)](_0x3d6970);})}}),_0x3d6970;}[_0x389e51(0x10a)](_0x54d82e,_0x40dd25){const _0x2ed3de=_0x389e51,_0x343c63=new _0x4865cd(_0x54d82e);return _0x343c63[_0x2ed3de(0xe3)]({'icon':_0xa844a0,'withText':!0x1,'tooltip':_0x3937c1(_0x54d82e,_0x2ed3de(0xcd))}),_0x343c63[_0x2ed3de(0x123)]({'attributes':{'class':[_0x2ed3de(0x11d)]}}),_0x343c63['on'](_0x2ed3de(0xe5),()=>{const _0x3349f8=_0x2ed3de;this[_0x3349f8(0x112)](_0x40dd25);}),_0x343c63;}[_0x389e51(0x112)](_0x1fff97){const _0x2c5c34=_0x389e51,_0x242237=_0x1fff97[_0x2c5c34(0x107)][_0x2c5c34(0xdf)]||'';this[_0x2c5c34(0xdd)][_0x2c5c34(0x118)]=_0x242237,this[_0x2c5c34(0xce)]=!0x1,this[_0x2c5c34(0x11f)](_0x2c5c34(0x128),{'id':this['id'],'title':_0x242237});}[_0x389e51(0x11c)](_0x435813,_0x5a4957){const _0x132238=_0x389e51,_0x598c36=new _0x4865cd(_0x435813);return _0x598c36[_0x132238(0xe3)]({'icon':_0x25191e,'withText':!0x1,'tooltip':_0x3937c1(_0x435813,_0x132238(0x10b))}),_0x598c36[_0x132238(0x123)]({'attributes':{'class':[_0x132238(0xf3)]}}),_0x598c36['on'](_0x132238(0xe5),()=>{const _0x111900=_0x132238;this[_0x111900(0xce)]=!0x1,_0x5a4957[_0x111900(0xdf)]=this[_0x111900(0xdd)][_0x111900(0x118)]||'',this[_0x111900(0x11f)](_0x111900(0xca));}),_0x598c36;}[_0x389e51(0xe1)](){const _0x324173=_0x389e51,_0x45d263=new _0x55fc29(_0x324173(0x122));return _0x45d263[_0x324173(0xf6)]=!0x0,_0x45d263;}[_0x389e51(0x126)](_0x1bbf41){const _0x3401d9=_0x389e51;return this[_0x3401d9(0xdd)]&&_0x3401d9(0xfb)==typeof this[_0x3401d9(0xdd)][_0x3401d9(0x118)]&&this[_0x3401d9(0xdd)][_0x3401d9(0x118)][_0x3401d9(0x120)](_0x1bbf41)?{'title':!0x0}:null;}[_0x389e51(0xd1)](_0x5cecff){const _0x206501=_0x389e51;this[_0x206501(0xdd)][_0x206501(0xd1)](_0x5cecff);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x517068=_0x42ab;(function(_0x2d7ff1,_0x350234){const _0x33ab87=_0x42ab,_0x46fd83=_0x2d7ff1();while(!![]){try{const _0x10355f=-parseInt(_0x33ab87(0xa3))/0x1*(parseInt(_0x33ab87(0xe6))/0x2)+parseInt(_0x33ab87(0xd7))/0x3*(-parseInt(_0x33ab87(0xa0))/0x4)+parseInt(_0x33ab87(0xa7))/0x5*(parseInt(_0x33ab87(0xb0))/0x6)+-parseInt(_0x33ab87(0xeb))/0x7*(-parseInt(_0x33ab87(0xa6))/0x8)+-parseInt(_0x33ab87(0xc4))/0x9+-parseInt(_0x33ab87(0xb1))/0xa+parseInt(_0x33ab87(0xba))/0xb;if(_0x10355f===_0x350234)break;else _0x46fd83['push'](_0x46fd83['shift']());}catch(_0x3c8a89){_0x46fd83['push'](_0x46fd83['shift']());}}}(_0x18da,0x9bc18));import{View as _0x48db2e,SearchTextView as _0x3b039d,FormHeaderView as _0x484aaa,ButtonView as _0x1df903}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x4a0e92,IconCancel as _0x202ff4,IconPlus as _0x38d8fd}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x476f0c}from'./aichathistorysectionlistview.js';function _0x18da(){const _0x39734a=['15684152OiogTU','sections','push','fire','emptyView','removeItem','change:hasItems','isLoading','length','children','8066601mSubiU','items','ck-rounded-corners','clear','set','ck-ai-chat__start-conversation','ltr','AI_CHAT_HISTORY_SEARCH_LABEL','fieldView','hasItems','ck-ai-notification','updateItemTitle','ck-ai-chat-history__empty','ck-reset_all','splice','locale','ck-ai-chat-history__empty-message','getItem','_updateViewVisibility','15WLIpwS','_createListItemViews','openChat','div','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_EMPTY_MESSAGE','mainErrorView','delegate','extendTemplate','setTemplate','AI_CHAT_HISTORY_HEADING','updateLoadingState','updateHistoryItemsWithCategories','_createErrorView','1390NetqqW','removeHistoryItem','isSearchViewVisible','aiHistory','search','6741IUmMoo','title','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','element','sectionsView','updateTitle','change:errorMessage','some','indexOf','remove','_createEmptyStateView','isEmptyViewVisible','ck-ai-header\x20ck-ai-header_history','bind','itemsViews','updateItemLoadingState','ck-ai-notification_error','isMaximized','searchView','182472eiSmtR','ck-hidden','errorMessage','337JfLBiN','isMainErrorViewVisible','skeletonView','5416zCytNE','30395vtPfAO','add','value','_createSearchView','bindTemplate','resizeButton','_refreshSearch','isVisible','change:isLoading','678kqBEmG','7681400jinReX','render','execute','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','queryView','ck-ai-chat-history__content','_createSkeletonView','ck-ai-chat-history','addMany'];_0x18da=function(){return _0x39734a;};return _0x18da();}import{AIChatHistoryListView as _0x4f031d}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2f4a7f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x372a37}from'../aichathistoryui.js';function _0x42ab(_0xf13fd3,_0x37a9ea){const _0x18da02=_0x18da();return _0x42ab=function(_0x42abd2,_0x3c8a23){_0x42abd2=_0x42abd2-0x94;let _0x59762f=_0x18da02[_0x42abd2];return _0x59762f;},_0x42ab(_0xf13fd3,_0x37a9ea);}import{AISkeletonView as _0x574fdc,SKELETON_DEFINITIONS as _0x29ed55}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x27ec85}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x45103e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x48db2e{[_0x517068(0x9f)];[_0x517068(0xde)];[_0x517068(0xa5)];[_0x517068(0xbe)];[_0x517068(0xef)];[_0x517068(0xac)];constructor(_0x1619be,_0x48b683){const _0x518b8b=_0x517068;super(_0x1619be),this[_0x518b8b(0xc8)](_0x518b8b(0xcd),!0x1),this[_0x518b8b(0xc8)](_0x518b8b(0xc1),!0x0),this[_0x518b8b(0xc8)](_0x518b8b(0xa2),''),this[_0x518b8b(0xc8)](_0x518b8b(0x9e),!0x1),this[_0x518b8b(0xc8)](_0x518b8b(0xe8),!0x1),this[_0x518b8b(0xc8)](_0x518b8b(0x98),!0x1),this[_0x518b8b(0xc8)](_0x518b8b(0xa4),!0x1);const _0x123073=new _0x484aaa(_0x1619be,{'label':_0x45103e(_0x1619be,_0x518b8b(0xe2)),'icon':_0x4a0e92,'class':_0x518b8b(0x99)});_0x48b683&&(this[_0x518b8b(0xac)]=_0x27ec85(_0x1619be,this),_0x123073[_0x518b8b(0xc3)][_0x518b8b(0xa8)](this[_0x518b8b(0xac)])),this[_0x518b8b(0xef)]=new _0x476f0c(_0x1619be,[]),this[_0x518b8b(0xef)][_0x518b8b(0xdf)](..._0x372a37)['to'](this),this[_0x518b8b(0xde)]=this[_0x518b8b(0xe5)](),this[_0x518b8b(0xa5)]=this[_0x518b8b(0xb7)](),this[_0x518b8b(0xbe)]=this[_0x518b8b(0x97)](),this[_0x518b8b(0x9f)]=this[_0x518b8b(0xaa)](),this[_0x518b8b(0xde)][_0x518b8b(0xe0)]({'attributes':{'class':[this[_0x518b8b(0xab)]['if'](_0x518b8b(0xa4),_0x518b8b(0xa1),_0x47fe5f=>!_0x47fe5f)]}}),this['on'](_0x518b8b(0xaf),()=>this[_0x518b8b(0xd6)]()),this['on'](_0x518b8b(0xc0),()=>this[_0x518b8b(0xd6)]()),this['on'](_0x518b8b(0xf1),()=>this[_0x518b8b(0xd6)]()),this[_0x518b8b(0xe1)]({'tag':_0x518b8b(0xda),'attributes':{'class':['ck',_0x518b8b(0xd1),_0x518b8b(0xb8),_0x518b8b(0xc6)],'dir':_0x518b8b(0xca)},'children':[_0x123073,{'tag':_0x518b8b(0xda),'attributes':{'class':[_0x518b8b(0xb6)]},'children':[this[_0x518b8b(0xa5)],this[_0x518b8b(0xde)],this[_0x518b8b(0xbe)],this[_0x518b8b(0x9f)]]}]});}[_0x517068(0xd6)](){const _0x95e3f3=_0x517068;this[_0x95e3f3(0xe8)]=!this[_0x95e3f3(0xc1)]&&this[_0x95e3f3(0xcd)],this[_0x95e3f3(0x98)]=!this[_0x95e3f3(0xc1)]&&!this[_0x95e3f3(0xcd)]&&!this[_0x95e3f3(0xa2)],this[_0x95e3f3(0xa4)]=!this[_0x95e3f3(0xe8)]&&!!this[_0x95e3f3(0xa2)];}[_0x517068(0xaa)](){const _0xa7bc27=_0x517068,_0x4247d7=new _0x3b039d(this[_0xa7bc27(0xd3)],{'filteredView':this[_0xa7bc27(0xef)],'queryView':{'label':_0x45103e(this[_0xa7bc27(0xd3)],_0xa7bc27(0xcb))},'infoView':{'text':{'notFound':{'primary':_0x4d7806=>_0x45103e(this[_0xa7bc27(0xd3)],_0xa7bc27(0xed),_0x4d7806),'secondary':_0x45103e(this[_0xa7bc27(0xd3)],_0xa7bc27(0xb4))}}}}),_0x5dcab4=this[_0xa7bc27(0xe5)]();return _0x5dcab4[_0xa7bc27(0xe0)]({'attributes':{'class':[this[_0xa7bc27(0xab)]['if'](_0xa7bc27(0xa2),_0xa7bc27(0xa1),_0x3a335a=>!_0x3a335a)]}}),_0x4247d7['on'](_0xa7bc27(0xb2),()=>{const _0x2425bd=_0xa7bc27;_0x4247d7[_0x2425bd(0xc3)][_0x2425bd(0xa8)](_0x5dcab4,0x1);}),_0x4247d7[_0xa7bc27(0xe0)]({'attributes':{'class':[this[_0xa7bc27(0xab)]['if'](_0xa7bc27(0xe8),_0xa7bc27(0xa1),_0x5ce908=>!_0x5ce908)]}}),_0x4247d7;}[_0x517068(0xb7)](){const _0x1936c6=_0x517068,_0x4106d3=new _0x574fdc(this[_0x1936c6(0xd3)],_0x29ed55[_0x1936c6(0xe9)]);return _0x4106d3[_0x1936c6(0xe0)]({'attributes':{'class':[this[_0x1936c6(0xab)]['if'](_0x1936c6(0xc1),_0x1936c6(0xa1),_0x2ac94c=>!_0x2ac94c)]}}),_0x4106d3;}[_0x517068(0xe5)](){const _0x372480=_0x517068,_0x2677e3=new _0x48db2e(this[_0x372480(0xd3)]),_0x10e626=new _0x1df903(this[_0x372480(0xd3)]);_0x10e626[_0x372480(0xc8)]({'withText':!0x1,'icon':_0x202ff4,'class':_0x372480(0xdc)}),_0x10e626[_0x372480(0x9a)](_0x372480(0xae))['to'](this,_0x372480(0xcd),_0x11d5e2=>!!_0x11d5e2),_0x10e626['on'](_0x372480(0xb3),()=>{const _0x5c993c=_0x372480;this[_0x5c993c(0xa2)]='';});const _0x17ffb8=this[_0x372480(0xab)];return _0x2677e3[_0x372480(0xe1)]({'tag':_0x372480(0xda),'attributes':{'class':['ck',_0x372480(0xce),_0x372480(0x9d)]},'children':[{'tag':'p','children':[{'text':_0x17ffb8['to'](_0x372480(0xa2))}]},_0x10e626]}),_0x2677e3;}[_0x517068(0x97)](){const _0x23b392=_0x517068,_0x59feae=new _0x1df903(this[_0x23b392(0xd3)]);_0x59feae[_0x23b392(0xc8)]({'label':_0x45103e(this[_0x23b392(0xd3)],_0x23b392(0xdb)),'withText':!0x0,'icon':_0x38d8fd,'class':_0x23b392(0xc9)}),_0x59feae['on'](_0x23b392(0xb3),()=>{const _0x5a1305=_0x23b392;this[_0x5a1305(0xbd)](_0x5a1305(0xd9));});const _0xa0f8ff=new _0x48db2e(this[_0x23b392(0xd3)]);return _0xa0f8ff[_0x23b392(0xe1)]({'tag':_0x23b392(0xda),'attributes':{'class':[_0x23b392(0xd0),this[_0x23b392(0xab)]['if'](_0x23b392(0x98),_0x23b392(0xa1),_0x8e257f=>!_0x8e257f)]},'children':[{'tag':'p','attributes':{'class':[_0x23b392(0xd4)]},'children':[_0x45103e(this[_0x23b392(0xd3)],_0x23b392(0xdd))]},_0x59feae]}),_0xa0f8ff;}[_0x517068(0xd8)](_0x5c6b31,_0x56265a){const _0x1712ab=_0x517068,_0x58113d=[];for(const _0x28bba2 of _0x5c6b31){const _0x2e450d=new _0x2f4a7f(_0x56265a,_0x28bba2);_0x2e450d[_0x1712ab(0xdf)](..._0x372a37)['to'](this),_0x58113d[_0x1712ab(0xbc)](_0x2e450d);}return _0x58113d;}[_0x517068(0xe4)](_0x5896a7){const _0x58a170=_0x517068,_0xa240be=this[_0x58a170(0xd3)]||'en',_0x43a797=[];for(const _0x2d30f of _0x5896a7){const _0x3a4e8e=this[_0x58a170(0xd8)](_0x2d30f[_0x58a170(0xc5)],_0xa240be);_0x43a797[_0x58a170(0xbc)](new _0x4f031d(_0xa240be,{'title':_0x2d30f[_0x58a170(0xec)],'items':_0x3a4e8e}));}this[_0x58a170(0xef)][_0x58a170(0xbb)]=_0x43a797,this[_0x58a170(0xef)][_0x58a170(0xc5)][_0x58a170(0xc7)](),this[_0x58a170(0xef)][_0x58a170(0xc5)][_0x58a170(0xb9)](_0x43a797),this[_0x58a170(0xcd)]=_0x5896a7[_0x58a170(0x94)](_0x487072=>_0x487072[_0x58a170(0xc5)][_0x58a170(0xc2)]>0x0),this[_0x58a170(0xad)]();}[_0x517068(0xe7)](_0x52b116){const _0x26bb1d=_0x517068;for(const _0x1e0f33 of this[_0x26bb1d(0xef)][_0x26bb1d(0xbb)]){const _0x148e56=_0x1e0f33[_0x26bb1d(0xd5)](_0x52b116);if(_0x148e56){if(_0x1e0f33[_0x26bb1d(0xbf)](_0x148e56),0x0===_0x1e0f33[_0x26bb1d(0x9b)][_0x26bb1d(0xc2)]){const _0x289e47=this[_0x26bb1d(0xef)][_0x26bb1d(0xbb)][_0x26bb1d(0x95)](_0x1e0f33);-0x1!==_0x289e47&&(this[_0x26bb1d(0xef)][_0x26bb1d(0xbb)][_0x26bb1d(0xd2)](_0x289e47,0x1),this[_0x26bb1d(0xef)][_0x26bb1d(0xc5)][_0x26bb1d(0x96)](_0x1e0f33));}this[_0x26bb1d(0xcd)]=this[_0x26bb1d(0xef)][_0x26bb1d(0xbb)][_0x26bb1d(0xc2)]>0x0,this[_0x26bb1d(0xad)]();break;}}}[_0x517068(0xcf)](_0x9d4fd8,_0xbb7fa9){const _0x1472a8=_0x517068;for(const _0xc35456 of this[_0x1472a8(0xef)][_0x1472a8(0xbb)]){const _0x51bf67=_0xc35456[_0x1472a8(0xd5)](_0x9d4fd8);if(_0x51bf67){_0x51bf67[_0x1472a8(0xf0)](_0xbb7fa9);break;}}}[_0x517068(0x9c)](_0x25b426,_0x15b519,_0x4f6a7a){const _0x3c9ae4=_0x517068;for(const _0x3c73f2 of this[_0x3c9ae4(0xef)][_0x3c9ae4(0xbb)]){const _0x4abc70=_0x3c73f2[_0x3c9ae4(0xd5)](_0x25b426);if(_0x4abc70){_0x4abc70[_0x3c9ae4(0xe3)](_0x15b519,_0x4f6a7a);break;}}}[_0x517068(0xad)](){const _0xc22365=_0x517068;if(this[_0xc22365(0xcd)]){const _0x4339c1=this[_0xc22365(0x9f)][_0xc22365(0xb5)][_0xc22365(0xcc)]?.[_0xc22365(0xee)]?.[_0xc22365(0xa9)]||'';this[_0xc22365(0x9f)][_0xc22365(0xea)](_0x4339c1);}}}
|
|
23
|
+
const _0x501f7a=_0x243a;(function(_0x1f56a0,_0x472a69){const _0x4c0a3b=_0x243a,_0x5247ca=_0x1f56a0();while(!![]){try{const _0x4b5526=-parseInt(_0x4c0a3b(0x172))/0x1*(-parseInt(_0x4c0a3b(0x13d))/0x2)+parseInt(_0x4c0a3b(0x130))/0x3*(parseInt(_0x4c0a3b(0x142))/0x4)+parseInt(_0x4c0a3b(0x16d))/0x5+-parseInt(_0x4c0a3b(0x188))/0x6+parseInt(_0x4c0a3b(0x134))/0x7+parseInt(_0x4c0a3b(0x15b))/0x8+-parseInt(_0x4c0a3b(0x13e))/0x9;if(_0x4b5526===_0x472a69)break;else _0x5247ca['push'](_0x5247ca['shift']());}catch(_0x5e5351){_0x5247ca['push'](_0x5247ca['shift']());}}}(_0x38fe,0x3f58a));import{View as _0x3f842d,SearchTextView as _0x45d243,FormHeaderView as _0x1c7a1a,ButtonView as _0x2cbf46}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x343f96,IconCancel as _0x189ba2,IconPlus as _0x5bdffb}from'ckeditor5/src/icons.js';function _0x243a(_0x3a28c4,_0xeacae4){const _0x38fe94=_0x38fe();return _0x243a=function(_0x243ad9,_0x42298a){_0x243ad9=_0x243ad9-0x12f;let _0x3ce2cd=_0x38fe94[_0x243ad9];return _0x3ce2cd;},_0x243a(_0x3a28c4,_0xeacae4);}function _0x38fe(){const _0x1da4ce=['5883dGESjC','queryView','itemsViews','isLoading','137998nNFsGA','updateItemTitle','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','bindTemplate','some','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','push','2valZTM','6589593FUcLNt','ck-rounded-corners','AI_CHAT_HISTORY_SEARCH_LABEL','clear','360CWBNQC','ck-ai-header\x20ck-ai-header_history','change:errorMessage','sections','_refreshSearch','children','_createSkeletonView','updateHistoryItemsWithCategories','updateTitle','isVisible','fire','bind','change:hasItems','emptyView','removeHistoryItem','isMainErrorViewVisible','addMany','ck-ai-notification','_createErrorView','ck-ai-chat-history__content','skeletonView','remove','setTemplate','delegate','_createListItemViews','2721896bLDjAm','aiHistory','value','ck-ai-notification_error','fieldView','isMaximized','execute','ck-ai-chat-history__empty-message','isSearchViewVisible','splice','mainErrorView','openChat','items','div','title','updateLoadingState','hasItems','locale','1727335cSCmWl','ck-reset_all','searchView','errorMessage','_createEmptyStateView','304739hSAOcj','ck-ai-chat__start-conversation','extendTemplate','_updateViewVisibility','change:isLoading','updateItemLoadingState','getItem','ck-hidden','ck-ai-notification_error__dismiss-button','render','isEmptyViewVisible','removeItem','ck-ai-chat-history__empty','AI_CHAT_HISTORY_HEADING','element','sectionsView','set','resizeButton','AI_CHAT_LABEL_NEW_CHAT','length','ltr','indexOf','1170024qPJEvS','ck-ai-chat-history','search','AI_CHAT_HISTORY_EMPTY_MESSAGE'];_0x38fe=function(){return _0x1da4ce;};return _0x38fe();}import{AIChatHistorySectionListView as _0x107056}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x301ae1}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xe9df12}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x42c5e5}from'../aichathistoryui.js';import{AISkeletonView as _0x48e39a,SKELETON_DEFINITIONS as _0x560d3f}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0xa4a1aa}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x52dcd6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3f842d{[_0x501f7a(0x16f)];[_0x501f7a(0x165)];[_0x501f7a(0x156)];[_0x501f7a(0x14f)];[_0x501f7a(0x181)];[_0x501f7a(0x183)];constructor(_0x3b0c48,_0x120293){const _0x277efd=_0x501f7a;super(_0x3b0c48),this[_0x277efd(0x182)](_0x277efd(0x16b),!0x1),this[_0x277efd(0x182)](_0x277efd(0x133),!0x0),this[_0x277efd(0x182)](_0x277efd(0x170),''),this[_0x277efd(0x182)](_0x277efd(0x160),!0x1),this[_0x277efd(0x182)](_0x277efd(0x163),!0x1),this[_0x277efd(0x182)](_0x277efd(0x17c),!0x1),this[_0x277efd(0x182)](_0x277efd(0x151),!0x1);const _0x518668=new _0x1c7a1a(_0x3b0c48,{'label':_0x52dcd6(_0x3b0c48,_0x277efd(0x17f)),'icon':_0x343f96,'class':_0x277efd(0x143)});_0x120293&&(this[_0x277efd(0x183)]=_0xa4a1aa(_0x3b0c48,this),_0x518668[_0x277efd(0x147)][_0x277efd(0x136)](this[_0x277efd(0x183)])),this[_0x277efd(0x181)]=new _0x107056(_0x3b0c48,[]),this[_0x277efd(0x181)][_0x277efd(0x159)](..._0x42c5e5)['to'](this),this[_0x277efd(0x165)]=this[_0x277efd(0x154)](),this[_0x277efd(0x156)]=this[_0x277efd(0x148)](),this[_0x277efd(0x14f)]=this[_0x277efd(0x171)](),this[_0x277efd(0x16f)]=this[_0x277efd(0x13a)](),this[_0x277efd(0x165)][_0x277efd(0x174)]({'attributes':{'class':[this[_0x277efd(0x138)]['if'](_0x277efd(0x151),_0x277efd(0x179),_0x730b64=>!_0x730b64)]}}),this['on'](_0x277efd(0x176),()=>this[_0x277efd(0x175)]()),this['on'](_0x277efd(0x14e),()=>this[_0x277efd(0x175)]()),this['on'](_0x277efd(0x144),()=>this[_0x277efd(0x175)]()),this[_0x277efd(0x158)]({'tag':_0x277efd(0x168),'attributes':{'class':['ck',_0x277efd(0x16e),_0x277efd(0x189),_0x277efd(0x13f)],'dir':_0x277efd(0x186)},'children':[_0x518668,{'tag':_0x277efd(0x168),'attributes':{'class':[_0x277efd(0x155)]},'children':[this[_0x277efd(0x156)],this[_0x277efd(0x165)],this[_0x277efd(0x14f)],this[_0x277efd(0x16f)]]}]});}[_0x501f7a(0x175)](){const _0x58e069=_0x501f7a;this[_0x58e069(0x163)]=!this[_0x58e069(0x133)]&&this[_0x58e069(0x16b)],this[_0x58e069(0x17c)]=!this[_0x58e069(0x133)]&&!this[_0x58e069(0x16b)]&&!this[_0x58e069(0x170)],this[_0x58e069(0x151)]=!this[_0x58e069(0x163)]&&!!this[_0x58e069(0x170)];}[_0x501f7a(0x13a)](){const _0x326cf1=_0x501f7a,_0x481c1b=new _0x45d243(this[_0x326cf1(0x16c)],{'filteredView':this[_0x326cf1(0x181)],'queryView':{'label':_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x140))},'infoView':{'text':{'notFound':{'primary':_0x5acb33=>_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x137),_0x5acb33),'secondary':_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x13b))}}}}),_0x29bf84=this[_0x326cf1(0x154)]();return _0x29bf84[_0x326cf1(0x174)]({'attributes':{'class':[this[_0x326cf1(0x138)]['if'](_0x326cf1(0x170),_0x326cf1(0x179),_0x4406fe=>!_0x4406fe)]}}),_0x481c1b['on'](_0x326cf1(0x17b),()=>{const _0x232a16=_0x326cf1;_0x481c1b[_0x232a16(0x147)][_0x232a16(0x136)](_0x29bf84,0x1);}),_0x481c1b[_0x326cf1(0x174)]({'attributes':{'class':[this[_0x326cf1(0x138)]['if'](_0x326cf1(0x163),_0x326cf1(0x179),_0x50104f=>!_0x50104f)]}}),_0x481c1b;}[_0x501f7a(0x148)](){const _0x46ac47=_0x501f7a,_0x272eae=new _0x48e39a(this[_0x46ac47(0x16c)],_0x560d3f[_0x46ac47(0x15c)]);return _0x272eae[_0x46ac47(0x174)]({'attributes':{'class':[this[_0x46ac47(0x138)]['if'](_0x46ac47(0x133),_0x46ac47(0x179),_0x247479=>!_0x247479)]}}),_0x272eae;}[_0x501f7a(0x154)](){const _0x421669=_0x501f7a,_0x5d40c8=new _0x3f842d(this[_0x421669(0x16c)]),_0x5209fb=new _0x2cbf46(this[_0x421669(0x16c)]);_0x5209fb[_0x421669(0x182)]({'withText':!0x1,'icon':_0x189ba2,'class':_0x421669(0x17a)}),_0x5209fb[_0x421669(0x14d)](_0x421669(0x14b))['to'](this,_0x421669(0x16b),_0x1ea45e=>!!_0x1ea45e),_0x5209fb['on'](_0x421669(0x161),()=>{const _0x165b33=_0x421669;this[_0x165b33(0x170)]='';});const _0x15c2f3=this[_0x421669(0x138)];return _0x5d40c8[_0x421669(0x158)]({'tag':_0x421669(0x168),'attributes':{'class':['ck',_0x421669(0x153),_0x421669(0x15e)]},'children':[{'tag':'p','children':[{'text':_0x15c2f3['to'](_0x421669(0x170))}]},_0x5209fb]}),_0x5d40c8;}[_0x501f7a(0x171)](){const _0x4688b0=_0x501f7a,_0x130253=new _0x2cbf46(this[_0x4688b0(0x16c)]);_0x130253[_0x4688b0(0x182)]({'label':_0x52dcd6(this[_0x4688b0(0x16c)],_0x4688b0(0x184)),'withText':!0x0,'icon':_0x5bdffb,'class':_0x4688b0(0x173)}),_0x130253['on'](_0x4688b0(0x161),()=>{const _0x4adf19=_0x4688b0;this[_0x4adf19(0x14c)](_0x4adf19(0x166));});const _0x5ad113=new _0x3f842d(this[_0x4688b0(0x16c)]);return _0x5ad113[_0x4688b0(0x158)]({'tag':_0x4688b0(0x168),'attributes':{'class':[_0x4688b0(0x17e),this[_0x4688b0(0x138)]['if'](_0x4688b0(0x17c),_0x4688b0(0x179),_0xc41d7d=>!_0xc41d7d)]},'children':[{'tag':'p','attributes':{'class':[_0x4688b0(0x162)]},'children':[_0x52dcd6(this[_0x4688b0(0x16c)],_0x4688b0(0x12f))]},_0x130253]}),_0x5ad113;}[_0x501f7a(0x15a)](_0x88199,_0x47f4aa){const _0x185336=_0x501f7a,_0x4e798=[];for(const _0x2f4d68 of _0x88199){const _0x31f0c2=new _0xe9df12(_0x47f4aa,_0x2f4d68);_0x31f0c2[_0x185336(0x159)](..._0x42c5e5)['to'](this),_0x4e798[_0x185336(0x13c)](_0x31f0c2);}return _0x4e798;}[_0x501f7a(0x149)](_0x3dc591){const _0x1f1972=_0x501f7a,_0x589eec=this[_0x1f1972(0x16c)]||'en',_0x342b82=[];for(const _0x85db6f of _0x3dc591){const _0x5ab1a6=this[_0x1f1972(0x15a)](_0x85db6f[_0x1f1972(0x167)],_0x589eec);_0x342b82[_0x1f1972(0x13c)](new _0x301ae1(_0x589eec,{'title':_0x85db6f[_0x1f1972(0x169)],'items':_0x5ab1a6}));}this[_0x1f1972(0x181)][_0x1f1972(0x145)]=_0x342b82,this[_0x1f1972(0x181)][_0x1f1972(0x167)][_0x1f1972(0x141)](),this[_0x1f1972(0x181)][_0x1f1972(0x167)][_0x1f1972(0x152)](_0x342b82),this[_0x1f1972(0x16b)]=_0x3dc591[_0x1f1972(0x139)](_0x4573fe=>_0x4573fe[_0x1f1972(0x167)][_0x1f1972(0x185)]>0x0),this[_0x1f1972(0x146)]();}[_0x501f7a(0x150)](_0xfa37e8){const _0x40aa7b=_0x501f7a;for(const _0x55c6c8 of this[_0x40aa7b(0x181)][_0x40aa7b(0x145)]){const _0x5d60a5=_0x55c6c8[_0x40aa7b(0x178)](_0xfa37e8);if(_0x5d60a5){if(_0x55c6c8[_0x40aa7b(0x17d)](_0x5d60a5),0x0===_0x55c6c8[_0x40aa7b(0x132)][_0x40aa7b(0x185)]){const _0x33be11=this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x187)](_0x55c6c8);-0x1!==_0x33be11&&(this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x164)](_0x33be11,0x1),this[_0x40aa7b(0x181)][_0x40aa7b(0x167)][_0x40aa7b(0x157)](_0x55c6c8));}this[_0x40aa7b(0x16b)]=this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x185)]>0x0,this[_0x40aa7b(0x146)]();break;}}}[_0x501f7a(0x135)](_0x3bf5ef,_0x2cf4aa){const _0x1f2a59=_0x501f7a;for(const _0x3d4a05 of this[_0x1f2a59(0x181)][_0x1f2a59(0x145)]){const _0x44fe60=_0x3d4a05[_0x1f2a59(0x178)](_0x3bf5ef);if(_0x44fe60){_0x44fe60[_0x1f2a59(0x14a)](_0x2cf4aa);break;}}}[_0x501f7a(0x177)](_0xf05529,_0x1488b0,_0x5cee45){const _0x138d15=_0x501f7a;for(const _0x2e867f of this[_0x138d15(0x181)][_0x138d15(0x145)]){const _0x3e950f=_0x2e867f[_0x138d15(0x178)](_0xf05529);if(_0x3e950f){_0x3e950f[_0x138d15(0x16a)](_0x1488b0,_0x5cee45);break;}}}[_0x501f7a(0x146)](){const _0x167dd1=_0x501f7a;if(this[_0x167dd1(0x16b)]){const _0x362e31=this[_0x167dd1(0x16f)][_0x167dd1(0x131)][_0x167dd1(0x15f)]?.[_0x167dd1(0x180)]?.[_0x167dd1(0x15d)]||'';this[_0x167dd1(0x16f)][_0x167dd1(0x18a)](_0x362e31);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33cdfb=_0x1a8b;(function(_0x251de5,_0x57b54a){const _0xce37ee=_0x1a8b,_0x360627=_0x251de5();while(!![]){try{const _0x42bc0b=parseInt(_0xce37ee(0x1de))/0x1+-parseInt(_0xce37ee(0x219))/0x2*(-parseInt(_0xce37ee(0x21d))/0x3)+-parseInt(_0xce37ee(0x1f4))/0x4+-parseInt(_0xce37ee(0x20c))/0x5*(parseInt(_0xce37ee(0x1e7))/0x6)+parseInt(_0xce37ee(0x1d9))/0x7*(-parseInt(_0xce37ee(0x1d0))/0x8)+-parseInt(_0xce37ee(0x21f))/0x9*(-parseInt(_0xce37ee(0x1ec))/0xa)+parseInt(_0xce37ee(0x1e8))/0xb;if(_0x42bc0b===_0x57b54a)break;else _0x360627['push'](_0x360627['shift']());}catch(_0x3139b){_0x360627['push'](_0x360627['shift']());}}}(_0x93a4,0xc013e));import{AIChatUI as _0x21f501}from'../aichat/aichatui.js';import{ContextPlugin as _0x14cc89}from'ckeditor5/src/core.js';function _0x1a8b(_0x38a28f,_0x457450){const _0x93a437=_0x93a4();return _0x1a8b=function(_0x1a8b6e,_0x3c4cf7){_0x1a8b6e=_0x1a8b6e-0x1c4;let _0x8760=_0x93a437[_0x1a8b6e];return _0x8760;},_0x1a8b(_0x38a28f,_0x457450);}import{AIChatShortcutsView as _0x37cf86}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x3361e5}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';function _0x93a4(){const _0x382e29=['chat','getDefault','conversationCreated','language','_runChatShortcut','ai-chat-shortcuts-invalid-config','listenTo','2389288bDxcDC','context','execute','chatModels','locale','translate','setReasoning','get','addFeedItemCustomElement','28UUoIoU','getModel','AIChat','focusPromptInput','check','789002YLbBvU','TRANSLATE','_runReviewShortcut','hasFeedItem','string','interactionStarted','custom','AIChatShortcuts','_validateShortcuts','327528WOJaZw','16277371oEePRl','args','_shortcuts','destroy','60BrsWuv','view','length','AIReviewModeUI','values','_shortcutsView','AITabs','ai-chat-shortcuts-review-mode-not-found','2342740wPrhOn','isPremiumPlugin','setWebSearch','init','ai.chat.shortcuts','addCurrentDocumentToChatContext','_switchTab','forEach','element','find','ai-chat-shortcuts-translate-not-found','_removeShortcuts','config','CHAT','type','includes','AIChatController','runReviewCheck','has','source','activeConversation','_executeShortcut','label','review','55rFiTdd','pluginName','setModel','isFromHistory','reviewMode','requires','sendMessage','chat-shortcuts','isOfficialPlugin','activateTab','params','setPromptInputValue','_runTranslateShortcut','861844xUQvvH','render','_aiChatUI','_injectShortcuts','3PNrzGb','prompt','701793luxiql','removeFeedItem','AITranslateUI','ai-chat-shortcuts-ai-tabs-not-found','plugins','fire','REVIEW'];_0x93a4=function(){return _0x382e29;};return _0x93a4();}const Ut=_0x33cdfb(0x213);export var AIChatShortcutType;!function(_0x3e56b6){const _0x153148=_0x33cdfb;_0x3e56b6[_0x153148(0x201)]=_0x153148(0x1c9),_0x3e56b6[_0x153148(0x1c8)]=_0x153148(0x20b),_0x3e56b6[_0x153148(0x1df)]=_0x153148(0x1d5);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x14cc89{[_0x33cdfb(0x1ea)];[_0x33cdfb(0x1f1)];[_0x33cdfb(0x21b)];static get[_0x33cdfb(0x211)](){return[_0x21f501];}static get[_0x33cdfb(0x20d)](){const _0x5b25dc=_0x33cdfb;return _0x5b25dc(0x1e5);}static get[_0x33cdfb(0x214)](){return!0x0;}static get[_0x33cdfb(0x1f5)](){return!0x0;}[_0x33cdfb(0x1f7)](){const _0x4ef404=_0x33cdfb;this[_0x4ef404(0x21b)]=this[_0x4ef404(0x1d1)][_0x4ef404(0x1c6)][_0x4ef404(0x1d7)](_0x21f501),this[_0x4ef404(0x1ea)]=this[_0x4ef404(0x1d1)][_0x4ef404(0x200)][_0x4ef404(0x1d7)](_0x4ef404(0x1f8))??[];const _0x549fff=this[_0x4ef404(0x1d1)][_0x4ef404(0x1c6)][_0x4ef404(0x1d7)](_0x4ef404(0x204));this[_0x4ef404(0x1ea)][_0x4ef404(0x1ee)]&&(this[_0x4ef404(0x1e6)](),this[_0x4ef404(0x21b)]['on'](_0x4ef404(0x1cb),()=>{const _0x42ca31=_0x4ef404;_0x549fff[_0x42ca31(0x208)][_0x42ca31(0x20f)]||this[_0x42ca31(0x21c)]();}),this[_0x4ef404(0x1cf)](_0x549fff,_0x4ef404(0x1e3),()=>{const _0x4fdbf6=_0x4ef404;this[_0x4fdbf6(0x1ff)]();}));}[_0x33cdfb(0x1e6)](){const _0x53eee0=_0x33cdfb,_0x249017=Object[_0x53eee0(0x1f0)](AIChatShortcutType);this[_0x53eee0(0x1ea)][_0x53eee0(0x1fb)](_0x316144=>{const _0x578de8=_0x53eee0;let _0x83114=!0x0;if(_0x316144['id']&&_0x316144[_0x578de8(0x20a)]&&_0x249017[_0x578de8(0x203)](_0x316144[_0x578de8(0x202)])?_0x578de8(0x1c9)===_0x316144[_0x578de8(0x202)]&&(_0x83114=_0x578de8(0x1e2)==typeof _0x316144[_0x578de8(0x21e)]):_0x83114=!0x1,!_0x83114)throw new _0x3361e5(_0x578de8(0x1ce),this[_0x578de8(0x1d1)],{'shortcut':_0x316144});});}[_0x33cdfb(0x21c)](){const _0x3ec477=_0x33cdfb,_0x43a6f2=this[_0x3ec477(0x1d1)][_0x3ec477(0x1c6)][_0x3ec477(0x1d7)](_0x21f501);this[_0x3ec477(0x1f1)]=new _0x37cf86(this[_0x3ec477(0x1d1)][_0x3ec477(0x1d4)],this[_0x3ec477(0x1ea)]),this[_0x3ec477(0x1f1)][_0x3ec477(0x21a)](),_0x43a6f2[_0x3ec477(0x1d8)](this[_0x3ec477(0x1f1)][_0x3ec477(0x1fc)],Ut),this[_0x3ec477(0x1f1)]['on'](_0x3ec477(0x1d2),_0x36f18e=>{const _0x1e9d94=_0x3ec477,_0x1e203a=_0x36f18e[_0x1e9d94(0x207)]['id'];this[_0x1e9d94(0x209)](_0x1e203a);});}[_0x33cdfb(0x1ff)](){const _0xb60bcf=_0x33cdfb,_0x4319ef=this[_0xb60bcf(0x1d1)][_0xb60bcf(0x1c6)][_0xb60bcf(0x1d7)](_0x21f501);_0x4319ef[_0xb60bcf(0x1e1)](Ut)&&_0x4319ef[_0xb60bcf(0x220)](Ut),this[_0xb60bcf(0x1f1)]?.[_0xb60bcf(0x1eb)]();}[_0x33cdfb(0x209)](_0x11a569){const _0x5bc8d4=_0x33cdfb,_0x4259a8=this[_0x5bc8d4(0x1ea)][_0x5bc8d4(0x1fd)](_0x31b712=>_0x31b712['id']===_0x11a569),_0x61db2c=_0x4259a8[_0x5bc8d4(0x202)];_0x5bc8d4(0x1c9)===_0x61db2c?this[_0x5bc8d4(0x1cd)](_0x4259a8):_0x5bc8d4(0x20b)===_0x61db2c?_0x4259a8[_0x5bc8d4(0x1dd)]?this[_0x5bc8d4(0x1e0)](_0x4259a8):this[_0x5bc8d4(0x1fa)](_0x5bc8d4(0x210)):_0x5bc8d4(0x1d5)===_0x61db2c&&(_0x4259a8[_0x5bc8d4(0x1cc)]?this[_0x5bc8d4(0x218)](_0x4259a8):this[_0x5bc8d4(0x1fa)](_0x5bc8d4(0x1d5)));}[_0x33cdfb(0x1fa)](_0x5e3535){const _0x54663f=_0x33cdfb;if(!this[_0x54663f(0x1d1)][_0x54663f(0x1c6)][_0x54663f(0x206)](_0x54663f(0x1f2)))throw new _0x3361e5(_0x54663f(0x1c5),this[_0x54663f(0x1d1)],{'tabName':_0x5e3535});this[_0x54663f(0x1d1)][_0x54663f(0x1c6)][_0x54663f(0x1d7)](_0x54663f(0x1f2))[_0x54663f(0x1ed)][_0x54663f(0x215)](_0x5e3535);}async[_0x33cdfb(0x1cd)]({prompt:_0x40f96e,draftMode:_0xced6c1,useWebSearch:_0x580509=!0x1,useReasoning:_0x263fa7=!0x1,model:_0x2728a1}){const _0x9ca4b1=_0x33cdfb,_0x531e6d=this[_0x9ca4b1(0x1d1)][_0x9ca4b1(0x1c6)][_0x9ca4b1(0x1d7)](_0x9ca4b1(0x1db)),_0x480199=this[_0x9ca4b1(0x1d1)][_0x9ca4b1(0x1c6)][_0x9ca4b1(0x1d7)](_0x9ca4b1(0x204)),_0x53e92a=_0x480199[_0x9ca4b1(0x208)];let _0x33bc64;_0x33bc64=_0x2728a1?await _0x53e92a[_0x9ca4b1(0x1d3)][_0x9ca4b1(0x1da)](_0x2728a1):await _0x53e92a[_0x9ca4b1(0x1d3)][_0x9ca4b1(0x1ca)](),_0x33bc64&&await _0x53e92a[_0x9ca4b1(0x20e)](_0x33bc64),_0x53e92a[_0x9ca4b1(0x1f6)](_0x580509),_0x53e92a[_0x9ca4b1(0x1d6)](_0x263fa7),_0x480199[_0x9ca4b1(0x1f9)](),_0xced6c1?(this[_0x9ca4b1(0x21b)][_0x9ca4b1(0x217)](_0x40f96e),this[_0x9ca4b1(0x21b)][_0x9ca4b1(0x1dc)](!0x0)):_0x531e6d[_0x9ca4b1(0x212)]({'message':_0x40f96e});}[_0x33cdfb(0x1e0)]({check:_0x496e20,model:_0x3a6f73,prompt:_0x9df0fe,params:_0x38e94e}){const _0x3f55b6=_0x33cdfb;if(!this[_0x3f55b6(0x1d1)][_0x3f55b6(0x1c6)][_0x3f55b6(0x206)](_0x3f55b6(0x1ef)))throw new _0x3361e5(_0x3f55b6(0x1f3),this[_0x3f55b6(0x1d1)]);this[_0x3f55b6(0x1fa)](_0x3f55b6(0x210));const _0x13db56={'id':_0x496e20,'isCustom':_0x3f55b6(0x1e4)===_0x496e20};_0x3a6f73&&_0x9df0fe&&(_0x13db56[_0x3f55b6(0x1e9)]={'model':_0x3a6f73,'prompt':_0x9df0fe}),_0x38e94e&&(_0x13db56[_0x3f55b6(0x216)]=_0x38e94e),this[_0x3f55b6(0x1d1)][_0x3f55b6(0x1c6)][_0x3f55b6(0x1d7)](_0x3f55b6(0x1ef))[_0x3f55b6(0x1c7)](_0x3f55b6(0x205),_0x13db56);}[_0x33cdfb(0x218)]({language:_0x5d0823}){const _0x39acb5=_0x33cdfb;if(!this[_0x39acb5(0x1d1)][_0x39acb5(0x1c6)][_0x39acb5(0x206)](_0x39acb5(0x1c4)))throw new _0x3361e5(_0x39acb5(0x1fe),this[_0x39acb5(0x1d1)]);this[_0x39acb5(0x1fa)](_0x39acb5(0x1d5)),this[_0x39acb5(0x1d1)][_0x39acb5(0x1c6)][_0x39acb5(0x1d7)](_0x39acb5(0x1c4))[_0x39acb5(0x1c7)](_0x39acb5(0x205),{'id':_0x5d0823,'args':{'language':_0x5d0823}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4b94(){const _0x11578c=['translate','label','8tdePiz','209356zhFvCB','ck-ai-chat-shortcut','284200iFYjyL','chat','90980mWdVJV','42QSMJuB','extendTemplate','set','194708aprqDF','icon','375151VSJYBJ','review','1429812Aaodic','3015880GfCSug','12SoBirq'];_0x4b94=function(){return _0x11578c;};return _0x4b94();}(function(_0x1d29be,_0xa9e678){const _0x3f1c05=_0x5298,_0x289185=_0x1d29be();while(!![]){try{const _0x3dcbb2=-parseInt(_0x3f1c05(0x81))/0x1+parseInt(_0x3f1c05(0x83))/0x2+-parseInt(_0x3f1c05(0x8f))/0x3*(parseInt(_0x3f1c05(0x89))/0x4)+parseInt(_0x3f1c05(0x85))/0x5*(-parseInt(_0x3f1c05(0x86))/0x6)+-parseInt(_0x3f1c05(0x8b))/0x7*(-parseInt(_0x3f1c05(0x80))/0x8)+parseInt(_0x3f1c05(0x8d))/0x9+parseInt(_0x3f1c05(0x8e))/0xa;if(_0x3dcbb2===_0xa9e678)break;else _0x289185['push'](_0x289185['shift']());}catch(_0x369c8e){_0x289185['push'](_0x289185['shift']());}}}(_0x4b94,0x1e729));import{ButtonView as _0x18a328}from'ckeditor5/src/ui.js';function _0x5298(_0x584919,_0x1caff4){const _0x4b9497=_0x4b94();return _0x5298=function(_0x529810,_0x3a8103){_0x529810=_0x529810-0x7f;let _0x2adadc=_0x4b9497[_0x529810];return _0x2adadc;},_0x5298(_0x584919,_0x1caff4);}import{IconAIChat as _0xa82431,IconAIReview as _0x3d7728,IconAITranslate as _0x46f5f4}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x18a328{['id'];constructor(_0x38d544,_0x17cae8){const _0x3bc39b=_0x5298;super(_0x38d544);const {id:_0x2b31b3,type:_0x58096f,icon:_0x599cdb}=_0x17cae8;this['id']=_0x2b31b3,this[_0x3bc39b(0x88)]({'label':_0x17cae8[_0x3bc39b(0x7f)],'withText':!0x0,'class':_0x3bc39b(0x82)}),this[_0x3bc39b(0x87)]({'attributes':{'data-cke-ai-shortcut-id':_0x17cae8['id']}}),_0x599cdb?this[_0x3bc39b(0x8a)]=_0x599cdb:_0x3bc39b(0x84)===_0x58096f?this[_0x3bc39b(0x8a)]=_0xa82431:_0x3bc39b(0x8c)===_0x58096f?this[_0x3bc39b(0x8a)]=_0x3d7728:_0x3bc39b(0x90)===_0x58096f&&(this[_0x3bc39b(0x8a)]=_0x46f5f4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x314ed0=_0x5c50;(function(_0x19901a,_0x300d62){const _0x26354f=_0x5c50,_0x445848=_0x19901a();while(!![]){try{const _0x2bd53c=-parseInt(_0x26354f(0x12d))/0x1+-parseInt(_0x26354f(0x146))/0x2*(-parseInt(_0x26354f(0x125))/0x3)+-parseInt(_0x26354f(0x14c))/0x4*(parseInt(_0x26354f(0x149))/0x5)+parseInt(_0x26354f(0x172))/0x6+parseInt(_0x26354f(0x133))/0x7*(-parseInt(_0x26354f(0x130))/0x8)+parseInt(_0x26354f(0x16b))/0x9+-parseInt(_0x26354f(0x159))/0xa;if(_0x2bd53c===_0x300d62)break;else _0x445848['push'](_0x445848['shift']());}catch(_0x33a7be){_0x445848['push'](_0x445848['shift']());}}}(_0x3882,0x2441b));function _0x5c50(_0x1c9f43,_0x5ace24){const _0x38829e=_0x3882();return _0x5c50=function(_0x5c500a,_0x52cefa){_0x5c500a=_0x5c500a-0x106;let _0xd3c264=_0x38829e[_0x5c500a];return _0xd3c264;},_0x5c50(_0x1c9f43,_0x5ace24);}import{createParser as _0x4058bb}from'eventsource-parser';function _0x3882(){const _0x1885a=['modificationId','order','totalCount','Bearer\x20','upsertAIChatRating','upsertAIReviewRating','language','GET','fetchConversationMessages','TRANSLATE','traceId','273viSrPa','deleteFile','getReader','PUT','startConversation','get','ai-missing-token','value','30222mTtglo','/calls/','feed','19608VXlWqV','isPremiumPlugin','ai-request-aborted','112TakaEX','desc','DELETE','CloudServices','/messages/','_handleError','_sendApiRequest','/web-resources/','100','executeAction','config','sortBy','request','_getStreamReader','pluginName','push','make-tone-casual','fetchConversation','getModels','926wuGXOz','positiveCount','/reviews/custom/calls','505pCuzIk','true','text','636KzWWNK','/conversations/','length','AIConnector','group','ai.serviceUrl','attributes','/calls','limit','excludeEmpty','improve-writing','append','requires','1543940VSRSGV','plugins','executeCustomAction','uploadFile','upsertCustomAIReviewRating','MAKE_SHORTER','deleteWebResource','MAKE_TONE_CASUAL','/messages','updateConversation','parse','status','/models/1?','deleteDocument','CONTINUE','isOfficialPlugin','make-tone-formal','token','2314215zMrSNV','translate','ai-request-failed','/actions/custom/calls','IMPROVE_WRITING','/files/','Content-Type','534780VVzLNf','/actions/custom/calls/','upsertAIActionRating','continue','false','callSystemReview','releaseLock','createdAt','MAKE_TONE_FORMAL','items','uploadDocument','_decoder','name','toString','context','fetchDocument','statusText','callCustomReview','define','fetchConversations','read','/reviews/custom/calls/','init','then','json','/reviews/system/','POST','file','AbortError','make-shorter','uploadUrl','/documents/','https://ai.cke-cs.com/v1','FIX_GRAMMAR','upsertCustomAIActionRating','application/json','/conversations?','/actions/system/','code','body','queryAssistant','/conversations','/files','catch','signal','abortController','data','/web-resources','/documents','deleteConversation','fix-grammar','PATCH','message','stringify','/ratings','make-longer','_token','_apiUrl','reset','decode','MAKE_LONGER'];_0x3882=function(){return _0x1885a;};return _0x3882();}import{ContextPlugin as _0xeaf81a}from'ckeditor5/src/core.js';import{CKEditorError as _0x3adc4a}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x29a5a3){const _0xfa96c0=_0x5c50;_0x29a5a3[_0xfa96c0(0x167)]=_0xfa96c0(0x175),_0x29a5a3[_0xfa96c0(0x193)]=_0xfa96c0(0x10f),_0x29a5a3[_0xfa96c0(0x16f)]=_0xfa96c0(0x156),_0x29a5a3[_0xfa96c0(0x119)]=_0xfa96c0(0x114),_0x29a5a3[_0xfa96c0(0x15e)]=_0xfa96c0(0x18f),_0x29a5a3[_0xfa96c0(0x160)]=_0xfa96c0(0x143),_0x29a5a3[_0xfa96c0(0x17a)]=_0xfa96c0(0x169),_0x29a5a3[_0xfa96c0(0x123)]=_0xfa96c0(0x16c);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xeaf81a{[_0x314ed0(0x116)];[_0x314ed0(0x115)];[_0x314ed0(0x17d)];static get[_0x314ed0(0x158)](){const _0x2f3020=_0x314ed0;return[_0x2f3020(0x136)];}static get[_0x314ed0(0x141)](){const _0x4ea405=_0x314ed0;return _0x4ea405(0x14f);}static get[_0x314ed0(0x168)](){return!0x0;}static get[_0x314ed0(0x131)](){return!0x0;}constructor(_0x2a2298){const _0x11030d=_0x314ed0;super(_0x2a2298),this[_0x11030d(0x180)][_0x11030d(0x13d)][_0x11030d(0x184)](_0x11030d(0x151),_0x11030d(0x192)),this[_0x11030d(0x116)]=this[_0x11030d(0x180)][_0x11030d(0x13d)][_0x11030d(0x12a)](_0x11030d(0x151)),this[_0x11030d(0x115)]=null,this[_0x11030d(0x17d)]=new TextDecoder();}[_0x314ed0(0x188)](){const _0xbdcd6c=_0x314ed0,_0x43a8e5=this[_0xbdcd6c(0x180)][_0xbdcd6c(0x15a)][_0xbdcd6c(0x12a)](_0xbdcd6c(0x136));if(!_0x43a8e5[_0xbdcd6c(0x16a)])throw new _0x3adc4a(_0xbdcd6c(0x12b),this);this[_0xbdcd6c(0x115)]=_0x43a8e5[_0xbdcd6c(0x16a)];}[_0x314ed0(0x129)](_0x2e05a5,_0x52b317){const _0x3828af=_0x314ed0,_0x2454e3=this[_0x3828af(0x139)](_0x3828af(0x106),_0x3828af(0x18c),{'id':_0x2e05a5,'group':_0x52b317});return{'getConversation':async()=>(await _0x2454e3[_0x3828af(0x13f)])[_0x3828af(0x18a)](),'abortController':_0x2454e3[_0x3828af(0x10a)]};}[_0x314ed0(0x19a)]({message:_0x21f62f,conversationId:_0x1182c1,parts:_0x12fdd6,capabilities:_0x11bbd2,model:_0xbf66f,attributes:_0x5c588b}){const _0x2dc232=_0x314ed0,_0x210991={'prompt':_0x21f62f,'content':_0x12fdd6,'model':_0xbf66f,..._0x11bbd2&&{'capabilities':_0x11bbd2},..._0x5c588b&&{'attributes':_0x5c588b}},_0x23fb78=this[_0x2dc232(0x139)](_0x2dc232(0x14d)+_0x1182c1+_0x2dc232(0x161),_0x2dc232(0x18c),_0x210991);return{'getStream':async()=>{const _0x303e25=_0x2dc232,_0x51c648=(await _0x23fb78[_0x303e25(0x13f)])[_0x303e25(0x199)];return this[_0x303e25(0x140)](_0x51c648);},'abortController':_0x23fb78[_0x2dc232(0x10a)]};}[_0x314ed0(0x15b)]({content:_0x17db8f,message:_0x270733,model:_0xe8233,outputFormat:_0x573425}){const _0x25b9f6=_0x314ed0,_0x1d2627={'content':[{'type':_0x25b9f6(0x14b),'content':_0x17db8f}],'prompt':_0x270733,'model':_0xe8233,'outputFormat':_0x573425},_0x228b41=this[_0x25b9f6(0x139)](_0x25b9f6(0x16e),_0x25b9f6(0x18c),_0x1d2627);return{'getStream':async()=>{const _0x464be6=_0x25b9f6,_0x27a087=(await _0x228b41[_0x464be6(0x13f)])[_0x464be6(0x199)];return this[_0x464be6(0x140)](_0x27a087);},'abortController':_0x228b41[_0x25b9f6(0x10a)]};}[_0x314ed0(0x13c)]({actionName:_0xa4adfb,content:_0x538bf9,args:_0x693708}){const _0x2af5b9=_0x314ed0,_0x1a498e={'content':[{'type':_0x2af5b9(0x14b),'content':_0x538bf9}],'args':_0x693708},_0x3759f1=this[_0x2af5b9(0x139)](_0x2af5b9(0x197)+_0xa4adfb+_0x2af5b9(0x153),_0x2af5b9(0x18c),_0x1a498e);return{'getStream':async()=>{const _0xc4d552=_0x2af5b9,_0x2d423f=(await _0x3759f1[_0xc4d552(0x13f)])[_0xc4d552(0x199)];return this[_0xc4d552(0x140)](_0x2d423f);},'abortController':_0x3759f1[_0x2af5b9(0x10a)]};}[_0x314ed0(0x15c)](_0xc0919e,_0xfd6644,_0x3c8065){const _0x857169=_0x314ed0,_0x46a9b9=new FormData();_0x46a9b9[_0x857169(0x157)](_0x857169(0x18d),_0xfd6644,_0xfd6644[_0x857169(0x17e)]),_0x3c8065&&_0x46a9b9[_0x857169(0x157)](_0x857169(0x152),JSON[_0x857169(0x112)](_0x3c8065));const _0x17f008=this[_0x857169(0x139)](_0x857169(0x14d)+_0xc0919e+_0x857169(0x107),_0x857169(0x18c),_0x46a9b9);return{'getId':async()=>(await _0x17f008[_0x857169(0x13f)])[_0x857169(0x18a)](),'abortController':_0x17f008[_0x857169(0x10a)]};}[_0x314ed0(0x181)](_0x563e36,_0xd3cd73){const _0x5b1110=_0x314ed0,_0x3825da=this[_0x5b1110(0x139)](_0x5b1110(0x14d)+_0x563e36+_0x5b1110(0x191)+_0xd3cd73,_0x5b1110(0x121));return{'getDocument':async()=>(await _0x3825da[_0x5b1110(0x13f)])[_0x5b1110(0x18a)](),'abortController':_0x3825da[_0x5b1110(0x10a)]};}[_0x314ed0(0x17c)](_0x403d27,_0x5a1260,_0xb15db2){const _0x547c55=_0x314ed0,_0x4f8da1={'content':_0x5a1260};_0xb15db2&&(_0x4f8da1[_0x547c55(0x152)]=_0xb15db2);const _0x366186=this[_0x547c55(0x139)](_0x547c55(0x14d)+_0x403d27+_0x547c55(0x10d),_0x547c55(0x18c),_0x4f8da1);return{'getId':async()=>(await _0x366186[_0x547c55(0x13f)])[_0x547c55(0x18a)](),'abortController':_0x366186[_0x547c55(0x10a)]};}[_0x314ed0(0x185)](_0x17b3db,_0x243e78={}){const _0x4fc101=_0x314ed0,_0x29774a=new URLSearchParams();_0x29774a[_0x4fc101(0x157)](_0x4fc101(0x150),_0x17b3db),_0x29774a[_0x4fc101(0x157)](_0x4fc101(0x155),!0x1!==_0x243e78[_0x4fc101(0x155)]?_0x4fc101(0x14a):_0x4fc101(0x176)),_0x29774a[_0x4fc101(0x157)](_0x4fc101(0x154),_0x243e78[_0x4fc101(0x154)]?_0x243e78[_0x4fc101(0x154)][_0x4fc101(0x17f)]():_0x4fc101(0x13b)),_0x29774a[_0x4fc101(0x157)](_0x4fc101(0x13e),_0x243e78[_0x4fc101(0x13e)]?_0x243e78[_0x4fc101(0x13e)]:_0x4fc101(0x179)),_0x29774a[_0x4fc101(0x157)](_0x4fc101(0x11b),_0x243e78[_0x4fc101(0x11b)]?_0x243e78[_0x4fc101(0x11b)]:_0x4fc101(0x134));const _0xdaff96=this[_0x4fc101(0x139)](_0x4fc101(0x196)+_0x29774a[_0x4fc101(0x17f)](),_0x4fc101(0x121));return{'getConversations':async()=>{const _0x376a3e=_0x4fc101,_0x496276=await _0xdaff96[_0x376a3e(0x13f)];return(await _0x496276[_0x376a3e(0x18a)]())[_0x376a3e(0x17b)];},'abortController':_0xdaff96[_0x4fc101(0x10a)]};}[_0x314ed0(0x10e)](_0x2207ee){const _0x5ae699=_0x314ed0,_0x567ea5=this[_0x5ae699(0x139)](_0x5ae699(0x14d)+_0x2207ee,_0x5ae699(0x135));return{'execute':async()=>{const _0x2bd65c=_0x5ae699;await _0x567ea5[_0x2bd65c(0x13f)];},'abortController':_0x567ea5[_0x5ae699(0x10a)]};}[_0x314ed0(0x162)](_0x2656f0,_0x32a487){const _0x2d4d01=_0x314ed0,_0x3415be=this[_0x2d4d01(0x139)](_0x2d4d01(0x14d)+_0x2656f0,_0x2d4d01(0x110),_0x32a487);return{'getResult':async()=>(await _0x3415be[_0x2d4d01(0x13f)],_0x32a487),'abortController':_0x3415be[_0x2d4d01(0x10a)]};}[_0x314ed0(0x144)](_0x2d2e80){const _0x2a940b=_0x314ed0,_0x12a064=this[_0x2a940b(0x139)](_0x2a940b(0x14d)+_0x2d2e80,_0x2a940b(0x121));return{'getConversation':async()=>(await _0x12a064[_0x2a940b(0x13f)])[_0x2a940b(0x18a)](),'abortController':_0x12a064[_0x2a940b(0x10a)]};}[_0x314ed0(0x122)](_0x541dba){const _0x2ba7eb=_0x314ed0,_0x1a8e25=this[_0x2ba7eb(0x139)](_0x2ba7eb(0x14d)+_0x541dba+_0x2ba7eb(0x161),_0x2ba7eb(0x121));return{'getMessages':async()=>{const _0x1a0e91=_0x2ba7eb,_0x4f5fcb=await _0x1a8e25[_0x1a0e91(0x13f)];return(await _0x4f5fcb[_0x1a0e91(0x18a)]())[_0x1a0e91(0x17b)];},'abortController':_0x1a8e25[_0x2ba7eb(0x10a)]};}[_0x314ed0(0x190)](_0x588b94,_0x2bd575,_0x18506f){const _0x57f229=_0x314ed0,_0x4988fd=this[_0x57f229(0x139)](_0x57f229(0x14d)+_0x588b94+_0x57f229(0x10c),_0x57f229(0x18c),{'url':_0x2bd575,'attributes':_0x18506f});return{'getId':async()=>(await _0x4988fd[_0x57f229(0x13f)])[_0x57f229(0x18a)](),'abortController':_0x4988fd[_0x57f229(0x10a)]};}[_0x314ed0(0x145)](_0x3715='en'){const _0x9caf53=_0x314ed0,_0x36036d=new URLSearchParams();_0x36036d[_0x9caf53(0x157)](_0x9caf53(0x120),_0x3715);const _0x1503a4=_0x9caf53(0x165)+_0x36036d[_0x9caf53(0x17f)](),_0x2af9d5=this[_0x9caf53(0x139)](_0x1503a4,_0x9caf53(0x121));return{'list':async()=>await(await _0x2af9d5[_0x9caf53(0x13f)])[_0x9caf53(0x18a)](),'abortController':_0x2af9d5[_0x9caf53(0x10a)]};}[_0x314ed0(0x126)](_0x2507f6,_0x1331b3){const _0x86acac=_0x314ed0,_0x3a318a=this[_0x86acac(0x139)](_0x86acac(0x14d)+_0x2507f6+_0x86acac(0x170)+_0x1331b3,_0x86acac(0x135));return{'execute':async()=>{const _0xf0e7a9=_0x86acac;await _0x3a318a[_0xf0e7a9(0x13f)];},'abortController':_0x3a318a[_0x86acac(0x10a)]};}[_0x314ed0(0x166)](_0x4297cc,_0x540d8b){const _0x5257d9=_0x314ed0,_0x41dbde=this[_0x5257d9(0x139)](_0x5257d9(0x14d)+_0x4297cc+_0x5257d9(0x191)+_0x540d8b,_0x5257d9(0x135));return{'execute':async()=>{const _0x12caef=_0x5257d9;await _0x41dbde[_0x12caef(0x13f)];},'abortController':_0x41dbde[_0x5257d9(0x10a)]};}[_0x314ed0(0x15f)](_0x165d56,_0x32c769){const _0xb779a5=_0x314ed0,_0x3ed79a=this[_0xb779a5(0x139)](_0xb779a5(0x14d)+_0x165d56+_0xb779a5(0x13a)+_0x32c769,_0xb779a5(0x135));return{'execute':async()=>{const _0x20051a=_0xb779a5;await _0x3ed79a[_0x20051a(0x13f)];},'abortController':_0x3ed79a[_0xb779a5(0x10a)]};}[_0x314ed0(0x177)]({reviewName:_0x5e62d2,content:_0x226f45,args:_0x448aab}){const _0x2517e0=_0x314ed0,_0x485f23=this[_0x2517e0(0x139)](_0x2517e0(0x18b)+_0x5e62d2+_0x2517e0(0x153),_0x2517e0(0x18c),{'content':[{'type':_0x2517e0(0x14b),'content':_0x226f45}],'args':_0x448aab});return{'getStream':async()=>{const _0x1e371c=_0x2517e0,_0x18a472=(await _0x485f23[_0x1e371c(0x13f)])[_0x1e371c(0x199)];return this[_0x1e371c(0x140)](_0x18a472);},'abortController':_0x485f23[_0x2517e0(0x10a)]};}[_0x314ed0(0x183)]({content:_0x22b23f,prompt:_0x4ff76e,model:_0x1bfd03}){const _0x1186a2=_0x314ed0,_0x40f742=this[_0x1186a2(0x139)](_0x1186a2(0x148),_0x1186a2(0x18c),{'content':[{'type':_0x1186a2(0x14b),'content':_0x22b23f}],'prompt':_0x4ff76e,'model':_0x1bfd03});return{'getStream':async()=>{const _0x23817d=_0x1186a2,_0xa5c30e=(await _0x40f742[_0x23817d(0x13f)])[_0x23817d(0x199)];return this[_0x23817d(0x140)](_0xa5c30e);},'abortController':_0x40f742[_0x1186a2(0x10a)]};}[_0x314ed0(0x11e)](_0x1e9142,_0x44064d,_0x338710){const _0x573a86=_0x314ed0,_0x4b2bc8=this[_0x573a86(0x139)](_0x573a86(0x14d)+_0x1e9142+_0x573a86(0x137)+_0x44064d+_0x573a86(0x113),_0x573a86(0x128),{'positiveCount':_0x338710[_0x573a86(0x147)],'totalCount':_0x338710[_0x573a86(0x11c)],'modificationId':_0x338710[_0x573a86(0x11a)]});return{'execute':async()=>{const _0x53e210=_0x573a86;await _0x4b2bc8[_0x53e210(0x13f)];},'abortController':_0x4b2bc8[_0x573a86(0x10a)]};}[_0x314ed0(0x174)](_0x238b25,_0x1f6d73,_0x53d47b){const _0x1ea08e=_0x314ed0,_0x19d741=this[_0x1ea08e(0x139)](_0x1ea08e(0x197)+_0x238b25+_0x1ea08e(0x12e)+_0x1f6d73+_0x1ea08e(0x113),_0x1ea08e(0x128),{'positiveCount':_0x53d47b[_0x1ea08e(0x147)],'totalCount':_0x53d47b[_0x1ea08e(0x11c)]});return{'execute':async()=>{const _0x4427ae=_0x1ea08e;await _0x19d741[_0x4427ae(0x13f)];},'abortController':_0x19d741[_0x1ea08e(0x10a)]};}[_0x314ed0(0x194)](_0x6cd075,_0x1fdf8d){const _0x338c80=_0x314ed0,_0x100c1f=this[_0x338c80(0x139)](_0x338c80(0x173)+_0x6cd075+_0x338c80(0x113),_0x338c80(0x128),{'positiveCount':_0x1fdf8d[_0x338c80(0x147)],'totalCount':_0x1fdf8d[_0x338c80(0x11c)]});return{'execute':async()=>{const _0x10b0e7=_0x338c80;await _0x100c1f[_0x10b0e7(0x13f)];},'abortController':_0x100c1f[_0x338c80(0x10a)]};}[_0x314ed0(0x11f)](_0x39de99,_0x3a5dcf,_0x360594,_0x13a5ac){const _0x239ba2=_0x314ed0,_0x19a427=this[_0x239ba2(0x139)](_0x239ba2(0x18b)+_0x39de99+_0x239ba2(0x12e)+_0x3a5dcf+_0x239ba2(0x113),_0x239ba2(0x128),{'positiveCount':_0x360594[_0x239ba2(0x147)],'totalCount':_0x360594[_0x239ba2(0x11c)],'dataId':_0x13a5ac});return{'execute':async()=>{const _0x23c4b7=_0x239ba2;await _0x19a427[_0x23c4b7(0x13f)];},'abortController':_0x19a427[_0x239ba2(0x10a)]};}[_0x314ed0(0x15d)](_0x5c743f,_0x1bbeca,_0x1735db){const _0xafed5=_0x314ed0,_0xe59250=this[_0xafed5(0x139)](_0xafed5(0x187)+_0x5c743f+_0xafed5(0x113),_0xafed5(0x128),{'positiveCount':_0x1bbeca[_0xafed5(0x147)],'totalCount':_0x1bbeca[_0xafed5(0x11c)],'dataId':_0x1735db});return{'execute':async()=>{const _0x253911=_0xafed5;await _0xe59250[_0x253911(0x13f)];},'abortController':_0xe59250[_0xafed5(0x10a)]};}[_0x314ed0(0x139)](_0x1201e6,_0x5030a3,_0x59ff76){const _0x3912bd=_0x314ed0,_0x173d52=new AbortController(),_0x49a0d9=_0x59ff76 instanceof FormData,_0xbd5ad2={'Authorization':_0x3912bd(0x11d)+this[_0x3912bd(0x115)]?.[_0x3912bd(0x12c)]};_0x59ff76&&!_0x49a0d9&&(_0xbd5ad2[_0x3912bd(0x171)]=_0x3912bd(0x195));const _0x391752={'method':_0x5030a3,'headers':_0xbd5ad2,'signal':_0x173d52[_0x3912bd(0x109)]};return _0x59ff76&&(_0x391752[_0x3912bd(0x199)]=_0x49a0d9?_0x59ff76:JSON[_0x3912bd(0x112)](_0x59ff76)),{'request':fetch(''+this[_0x3912bd(0x116)]+_0x1201e6,_0x391752)[_0x3912bd(0x108)](_0x25e530=>{const _0x49b6f9=_0x3912bd;this[_0x49b6f9(0x138)](_0x25e530);})[_0x3912bd(0x189)](_0x19cee2=>_0x19cee2['ok']?_0x19cee2:_0x19cee2[_0x3912bd(0x18a)]()[_0x3912bd(0x189)](_0x134f6e=>{const _0x4945ea=_0x3912bd;throw{'url':this[_0x4945ea(0x116)],'path':_0x1201e6,'method':_0x5030a3,'body':_0x59ff76,'status':(_0x19cee2||{})[_0x4945ea(0x164)],'statusText':(_0x19cee2||{})[_0x4945ea(0x182)],'code':_0x134f6e[_0x4945ea(0x198)],'message':_0x134f6e[_0x4945ea(0x111)],'traceId':_0x134f6e[_0x4945ea(0x124)]};})),'abortController':_0x173d52};}async*[_0x314ed0(0x140)](_0x1a2356){const _0x592884=_0x314ed0,_0x3b4365=[],_0x39793a=_0x1a2356[_0x592884(0x127)](),_0x50974c=_0x4058bb({'onError':_0x4b23b5=>{const _0x41f418=_0x592884;this[_0x41f418(0x138)](_0x4b23b5);},'onEvent':_0xbfe20e=>{const _0x49c139=_0x592884;_0xbfe20e[_0x49c139(0x10b)]=JSON[_0x49c139(0x163)](_0xbfe20e[_0x49c139(0x10b)]),_0x3b4365[_0x49c139(0x142)](_0xbfe20e);}});try{let _0x2c55f7=!0x1;for(;!_0x2c55f7;){const {done:_0x1af1fe,value:_0x5b5c80}=await _0x39793a[_0x592884(0x186)]();_0x1af1fe&&(_0x2c55f7=!0x0),_0x50974c[_0x592884(0x12f)](this[_0x592884(0x17d)][_0x592884(0x118)](_0x5b5c80,{'stream':!0x0})),yield*_0x3b4365,_0x3b4365[_0x592884(0x14e)]=0x0;}}catch(_0x19e439){this[_0x592884(0x138)](_0x19e439);}finally{_0x39793a[_0x592884(0x178)](),_0x50974c[_0x592884(0x117)]();}}[_0x314ed0(0x138)](_0x477173){const _0x2ba3cc=_0x314ed0;if(_0x477173 instanceof _0x3adc4a)throw _0x477173;if(_0x477173 instanceof Error&&_0x2ba3cc(0x18e)===_0x477173[_0x2ba3cc(0x17e)])throw new _0x3adc4a(_0x2ba3cc(0x132),this,{'originalError':_0x477173});throw new _0x3adc4a(_0x2ba3cc(0x16d),this,{'originalError':_0x477173});}}
|
|
23
|
+
const _0x7d1d3e=_0xd212;(function(_0xbc3521,_0x434261){const _0x45dba3=_0xd212,_0x422262=_0xbc3521();while(!![]){try{const _0x3bc0d5=-parseInt(_0x45dba3(0x223))/0x1*(parseInt(_0x45dba3(0x1f7))/0x2)+parseInt(_0x45dba3(0x20b))/0x3*(parseInt(_0x45dba3(0x218))/0x4)+-parseInt(_0x45dba3(0x1e6))/0x5*(-parseInt(_0x45dba3(0x1b1))/0x6)+parseInt(_0x45dba3(0x1cc))/0x7*(parseInt(_0x45dba3(0x217))/0x8)+parseInt(_0x45dba3(0x1f6))/0x9*(parseInt(_0x45dba3(0x229))/0xa)+parseInt(_0x45dba3(0x19d))/0xb+-parseInt(_0x45dba3(0x226))/0xc;if(_0x3bc0d5===_0x434261)break;else _0x422262['push'](_0x422262['shift']());}catch(_0x2f5357){_0x422262['push'](_0x422262['shift']());}}}(_0x56e0,0x55c6c));function _0xd212(_0x218451,_0x39df49){const _0x56e0aa=_0x56e0();return _0xd212=function(_0xd21203,_0x1f5cd3){_0xd21203=_0xd21203-0x195;let _0x4a37b9=_0x56e0aa[_0xd21203];return _0x4a37b9;},_0xd212(_0x218451,_0x39df49);}function _0x56e0(){const _0x268157=['config','CONTINUE','_sendApiRequest','_getStreamReader','deleteWebResource','excludeEmpty','10onFOBo','/actions/custom/calls/','getModels','AbortError','/messages/','make-tone-formal','PATCH','text','upsertCustomAIActionRating','TRANSLATE','/calls','MAKE_SHORTER','fix-grammar','items','deleteFile','init','4530627rpdBmc','558BfDKsI','/web-resources/','queryAssistant','/web-resources','IMPROVE_WRITING','/actions/system/','POST','/conversations/','order','application/json','createdAt','Bearer\x20','ai.serviceUrl','requires','make-longer','positiveCount','/reviews/system/','/calls/','name','Content-Type','1759782sAvstK','context','uploadDocument','decode','message','DELETE','ai-request-failed','GET','/models/1?','group','continue','uploadFile','35848ydsMOp','4rIQxDw','/ratings','MAKE_LONGER','_apiUrl','length','callSystemReview','releaseLock','attributes','translate','callCustomReview','totalCount','721VGpRla','append','upsertAIChatRating','18666852uDRTBv','executeCustomAction','toString','10bgZPMm','traceId','value','then','MAKE_TONE_FORMAL','deleteDocument','plugins','reset','false','/files/','abortController','1828442xQbTit','data','isOfficialPlugin','limit','/actions/custom/calls','upsertCustomAIReviewRating','desc','fetchConversation','ai-missing-token','fetchConversations','_decoder','improve-writing','/conversations','upsertAIActionRating','make-shorter','request','PUT','catch','/documents','_handleError','552546XsUDgy','MAKE_TONE_CASUAL','statusText','AIConnector','/messages','status','define','parse','push','get','make-tone-casual','_token','sortBy','getReader','CloudServices','https://ai.cke-cs.com/v1','uploadUrl','executeAction','true','body','/reviews/custom/calls/','json','updateConversation','fetchDocument','file','upsertAIReviewRating','modificationId','1043szemUz','FIX_GRAMMAR','stringify','signal','/conversations?','ai-request-aborted','startConversation','token','read','/files','language','pluginName','isPremiumPlugin','/reviews/custom/calls','/documents/','100','fetchConversationMessages','code','feed','deleteConversation'];_0x56e0=function(){return _0x268157;};return _0x56e0();}import{createParser as _0x398c5a}from'eventsource-parser';import{ContextPlugin as _0x38bf00}from'ckeditor5/src/core.js';import{CKEditorError as _0x375d84}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2fce6b){const _0x2a1502=_0xd212;_0x2fce6b[_0x2a1502(0x1e1)]=_0x2a1502(0x215),_0x2fce6b[_0x2a1502(0x1cd)]=_0x2a1502(0x1f2),_0x2fce6b[_0x2a1502(0x1fb)]=_0x2a1502(0x1a8),_0x2fce6b[_0x2a1502(0x21a)]=_0x2a1502(0x205),_0x2fce6b[_0x2a1502(0x1f1)]=_0x2a1502(0x1ab),_0x2fce6b[_0x2a1502(0x1b2)]=_0x2a1502(0x1bb),_0x2fce6b[_0x2a1502(0x196)]=_0x2a1502(0x1eb),_0x2fce6b[_0x2a1502(0x1ef)]=_0x2a1502(0x220);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38bf00{[_0x7d1d3e(0x21b)];[_0x7d1d3e(0x1bc)];[_0x7d1d3e(0x1a7)];static get[_0x7d1d3e(0x204)](){const _0x3dcad3=_0x7d1d3e;return[_0x3dcad3(0x1bf)];}static get[_0x7d1d3e(0x1d7)](){const _0x4f7d02=_0x7d1d3e;return _0x4f7d02(0x1b4);}static get[_0x7d1d3e(0x19f)](){return!0x0;}static get[_0x7d1d3e(0x1d8)](){return!0x0;}constructor(_0x3054d9){const _0x376db6=_0x7d1d3e;super(_0x3054d9),this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1b7)](_0x376db6(0x203),_0x376db6(0x1c0)),this[_0x376db6(0x21b)]=this[_0x376db6(0x20c)][_0x376db6(0x1e0)][_0x376db6(0x1ba)](_0x376db6(0x203)),this[_0x376db6(0x1bc)]=null,this[_0x376db6(0x1a7)]=new TextDecoder();}[_0x7d1d3e(0x1f5)](){const _0x1eb800=_0x7d1d3e,_0x19588d=this[_0x1eb800(0x20c)][_0x1eb800(0x198)][_0x1eb800(0x1ba)](_0x1eb800(0x1bf));if(!_0x19588d[_0x1eb800(0x1d3)])throw new _0x375d84(_0x1eb800(0x1a5),this);this[_0x1eb800(0x1bc)]=_0x19588d[_0x1eb800(0x1d3)];}[_0x7d1d3e(0x1d2)](_0x44a855,_0x2f5cc7){const _0x55aa3a=_0x7d1d3e,_0x4db08e=this[_0x55aa3a(0x1e2)](_0x55aa3a(0x1a9),_0x55aa3a(0x1fd),{'id':_0x44a855,'group':_0x2f5cc7});return{'getConversation':async()=>(await _0x4db08e[_0x55aa3a(0x1ac)])[_0x55aa3a(0x1c6)](),'abortController':_0x4db08e[_0x55aa3a(0x19c)]};}[_0x7d1d3e(0x1f9)]({message:_0x42a8c9,conversationId:_0x515a9f,parts:_0x1279ce,capabilities:_0x131248,model:_0x29c2e0,attributes:_0xcc9f8b}){const _0x200149=_0x7d1d3e,_0x3000e1={'prompt':_0x42a8c9,'content':_0x1279ce,'model':_0x29c2e0,..._0x131248&&{'capabilities':_0x131248},..._0xcc9f8b&&{'attributes':_0xcc9f8b}},_0x4703ad=this[_0x200149(0x1e2)](_0x200149(0x1fe)+_0x515a9f+_0x200149(0x1b5),_0x200149(0x1fd),_0x3000e1);return{'getStream':async()=>{const _0x15c4a7=_0x200149,_0x2ae2c9=(await _0x4703ad[_0x15c4a7(0x1ac)])[_0x15c4a7(0x1c4)];return this[_0x15c4a7(0x1e3)](_0x2ae2c9);},'abortController':_0x4703ad[_0x200149(0x19c)]};}[_0x7d1d3e(0x227)]({content:_0x4943a7,message:_0x5d60f4,model:_0x12190b,outputFormat:_0x236435}){const _0x1b5d75=_0x7d1d3e,_0x416a24={'content':[{'type':_0x1b5d75(0x1ed),'content':_0x4943a7}],'prompt':_0x5d60f4,'model':_0x12190b,'outputFormat':_0x236435},_0x590d48=this[_0x1b5d75(0x1e2)](_0x1b5d75(0x1a1),_0x1b5d75(0x1fd),_0x416a24);return{'getStream':async()=>{const _0x2add87=_0x1b5d75,_0x51976b=(await _0x590d48[_0x2add87(0x1ac)])[_0x2add87(0x1c4)];return this[_0x2add87(0x1e3)](_0x51976b);},'abortController':_0x590d48[_0x1b5d75(0x19c)]};}[_0x7d1d3e(0x1c2)]({actionName:_0x2b0e8a,content:_0x4161ca,args:_0x34b106}){const _0x528a42=_0x7d1d3e,_0x43f611={'content':[{'type':_0x528a42(0x1ed),'content':_0x4161ca}],'args':_0x34b106},_0x4ac6ad=this[_0x528a42(0x1e2)](_0x528a42(0x1fc)+_0x2b0e8a+_0x528a42(0x1f0),_0x528a42(0x1fd),_0x43f611);return{'getStream':async()=>{const _0xb53de9=_0x528a42,_0x3e9400=(await _0x4ac6ad[_0xb53de9(0x1ac)])[_0xb53de9(0x1c4)];return this[_0xb53de9(0x1e3)](_0x3e9400);},'abortController':_0x4ac6ad[_0x528a42(0x19c)]};}[_0x7d1d3e(0x216)](_0x816618,_0x32e7de,_0x1e6d86){const _0x2bc8c9=_0x7d1d3e,_0x33b073=new FormData();_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x1c9),_0x32e7de,_0x32e7de[_0x2bc8c9(0x209)]),_0x1e6d86&&_0x33b073[_0x2bc8c9(0x224)](_0x2bc8c9(0x21f),JSON[_0x2bc8c9(0x1ce)](_0x1e6d86));const _0x4e057b=this[_0x2bc8c9(0x1e2)](_0x2bc8c9(0x1fe)+_0x816618+_0x2bc8c9(0x1d5),_0x2bc8c9(0x1fd),_0x33b073);return{'getId':async()=>(await _0x4e057b[_0x2bc8c9(0x1ac)])[_0x2bc8c9(0x1c6)](),'abortController':_0x4e057b[_0x2bc8c9(0x19c)]};}[_0x7d1d3e(0x1c8)](_0x4081fc,_0x34d5fd){const _0xb544ad=_0x7d1d3e,_0x393ada=this[_0xb544ad(0x1e2)](_0xb544ad(0x1fe)+_0x4081fc+_0xb544ad(0x1da)+_0x34d5fd,_0xb544ad(0x212));return{'getDocument':async()=>(await _0x393ada[_0xb544ad(0x1ac)])[_0xb544ad(0x1c6)](),'abortController':_0x393ada[_0xb544ad(0x19c)]};}[_0x7d1d3e(0x20d)](_0x643740,_0x2ae27f,_0x53afb8){const _0x542723=_0x7d1d3e,_0x2cbea6={'content':_0x2ae27f};_0x53afb8&&(_0x2cbea6[_0x542723(0x21f)]=_0x53afb8);const _0x2659ac=this[_0x542723(0x1e2)](_0x542723(0x1fe)+_0x643740+_0x542723(0x1af),_0x542723(0x1fd),_0x2cbea6);return{'getId':async()=>(await _0x2659ac[_0x542723(0x1ac)])[_0x542723(0x1c6)](),'abortController':_0x2659ac[_0x542723(0x19c)]};}[_0x7d1d3e(0x1a6)](_0x5efaea,_0x74138a={}){const _0x3dc1b9=_0x7d1d3e,_0x5bcd83=new URLSearchParams();_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x214),_0x5efaea),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1e5),!0x1!==_0x74138a[_0x3dc1b9(0x1e5)]?_0x3dc1b9(0x1c3):_0x3dc1b9(0x19a)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1a0),_0x74138a[_0x3dc1b9(0x1a0)]?_0x74138a[_0x3dc1b9(0x1a0)][_0x3dc1b9(0x228)]():_0x3dc1b9(0x1db)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1bd),_0x74138a[_0x3dc1b9(0x1bd)]?_0x74138a[_0x3dc1b9(0x1bd)]:_0x3dc1b9(0x201)),_0x5bcd83[_0x3dc1b9(0x224)](_0x3dc1b9(0x1ff),_0x74138a[_0x3dc1b9(0x1ff)]?_0x74138a[_0x3dc1b9(0x1ff)]:_0x3dc1b9(0x1a3));const _0x2ba5a3=this[_0x3dc1b9(0x1e2)](_0x3dc1b9(0x1d0)+_0x5bcd83[_0x3dc1b9(0x228)](),_0x3dc1b9(0x212));return{'getConversations':async()=>{const _0xcebb31=_0x3dc1b9,_0x5d1031=await _0x2ba5a3[_0xcebb31(0x1ac)];return(await _0x5d1031[_0xcebb31(0x1c6)]())[_0xcebb31(0x1f3)];},'abortController':_0x2ba5a3[_0x3dc1b9(0x19c)]};}[_0x7d1d3e(0x1df)](_0x117a1f){const _0x54d054=_0x7d1d3e,_0x4713c2=this[_0x54d054(0x1e2)](_0x54d054(0x1fe)+_0x117a1f,_0x54d054(0x210));return{'execute':async()=>{const _0x54c62f=_0x54d054;await _0x4713c2[_0x54c62f(0x1ac)];},'abortController':_0x4713c2[_0x54d054(0x19c)]};}[_0x7d1d3e(0x1c7)](_0x1fd2ad,_0x3644b4){const _0x46d9e7=_0x7d1d3e,_0x5099b3=this[_0x46d9e7(0x1e2)](_0x46d9e7(0x1fe)+_0x1fd2ad,_0x46d9e7(0x1ec),_0x3644b4);return{'getResult':async()=>(await _0x5099b3[_0x46d9e7(0x1ac)],_0x3644b4),'abortController':_0x5099b3[_0x46d9e7(0x19c)]};}[_0x7d1d3e(0x1a4)](_0x2ca03a){const _0x3d8c99=_0x7d1d3e,_0x57d97d=this[_0x3d8c99(0x1e2)](_0x3d8c99(0x1fe)+_0x2ca03a,_0x3d8c99(0x212));return{'getConversation':async()=>(await _0x57d97d[_0x3d8c99(0x1ac)])[_0x3d8c99(0x1c6)](),'abortController':_0x57d97d[_0x3d8c99(0x19c)]};}[_0x7d1d3e(0x1dc)](_0x45f4b1){const _0xa7d2b5=_0x7d1d3e,_0x21ed13=this[_0xa7d2b5(0x1e2)](_0xa7d2b5(0x1fe)+_0x45f4b1+_0xa7d2b5(0x1b5),_0xa7d2b5(0x212));return{'getMessages':async()=>{const _0x10e561=_0xa7d2b5,_0x28cfae=await _0x21ed13[_0x10e561(0x1ac)];return(await _0x28cfae[_0x10e561(0x1c6)]())[_0x10e561(0x1f3)];},'abortController':_0x21ed13[_0xa7d2b5(0x19c)]};}[_0x7d1d3e(0x1c1)](_0x19e799,_0x5a9e74,_0x2898fb){const _0x32471a=_0x7d1d3e,_0x45c96f=this[_0x32471a(0x1e2)](_0x32471a(0x1fe)+_0x19e799+_0x32471a(0x1fa),_0x32471a(0x1fd),{'url':_0x5a9e74,'attributes':_0x2898fb});return{'getId':async()=>(await _0x45c96f[_0x32471a(0x1ac)])[_0x32471a(0x1c6)](),'abortController':_0x45c96f[_0x32471a(0x19c)]};}[_0x7d1d3e(0x1e8)](_0x14655d='en'){const _0x320bb9=_0x7d1d3e,_0x4d43fa=new URLSearchParams();_0x4d43fa[_0x320bb9(0x224)](_0x320bb9(0x1d6),_0x14655d);const _0x4ae57e=_0x320bb9(0x213)+_0x4d43fa[_0x320bb9(0x228)](),_0x25af41=this[_0x320bb9(0x1e2)](_0x4ae57e,_0x320bb9(0x212));return{'list':async()=>await(await _0x25af41[_0x320bb9(0x1ac)])[_0x320bb9(0x1c6)](),'abortController':_0x25af41[_0x320bb9(0x19c)]};}[_0x7d1d3e(0x1f4)](_0x12ed7a,_0x1cef13){const _0xe8566d=_0x7d1d3e,_0x2e1635=this[_0xe8566d(0x1e2)](_0xe8566d(0x1fe)+_0x12ed7a+_0xe8566d(0x19b)+_0x1cef13,_0xe8566d(0x210));return{'execute':async()=>{const _0x5cece0=_0xe8566d;await _0x2e1635[_0x5cece0(0x1ac)];},'abortController':_0x2e1635[_0xe8566d(0x19c)]};}[_0x7d1d3e(0x197)](_0x397f04,_0x7fb464){const _0x4bad78=_0x7d1d3e,_0xdd07d5=this[_0x4bad78(0x1e2)](_0x4bad78(0x1fe)+_0x397f04+_0x4bad78(0x1da)+_0x7fb464,_0x4bad78(0x210));return{'execute':async()=>{const _0x2bec86=_0x4bad78;await _0xdd07d5[_0x2bec86(0x1ac)];},'abortController':_0xdd07d5[_0x4bad78(0x19c)]};}[_0x7d1d3e(0x1e4)](_0x3add54,_0x2377f0){const _0x364706=_0x7d1d3e,_0x49b59a=this[_0x364706(0x1e2)](_0x364706(0x1fe)+_0x3add54+_0x364706(0x1f8)+_0x2377f0,_0x364706(0x210));return{'execute':async()=>{const _0x1dc730=_0x364706;await _0x49b59a[_0x1dc730(0x1ac)];},'abortController':_0x49b59a[_0x364706(0x19c)]};}[_0x7d1d3e(0x21d)]({reviewName:_0x39ab7d,content:_0x2a50fc,args:_0x40558a}){const _0x49159a=_0x7d1d3e,_0x18954e=this[_0x49159a(0x1e2)](_0x49159a(0x207)+_0x39ab7d+_0x49159a(0x1f0),_0x49159a(0x1fd),{'content':[{'type':_0x49159a(0x1ed),'content':_0x2a50fc}],'args':_0x40558a});return{'getStream':async()=>{const _0x3ad69c=_0x49159a,_0x4e2654=(await _0x18954e[_0x3ad69c(0x1ac)])[_0x3ad69c(0x1c4)];return this[_0x3ad69c(0x1e3)](_0x4e2654);},'abortController':_0x18954e[_0x49159a(0x19c)]};}[_0x7d1d3e(0x221)]({content:_0x54ecda,prompt:_0x50624c,model:_0x564bca}){const _0x25c2be=_0x7d1d3e,_0x3b3286=this[_0x25c2be(0x1e2)](_0x25c2be(0x1d9),_0x25c2be(0x1fd),{'content':[{'type':_0x25c2be(0x1ed),'content':_0x54ecda}],'prompt':_0x50624c,'model':_0x564bca});return{'getStream':async()=>{const _0x33a75d=_0x25c2be,_0x1da2ea=(await _0x3b3286[_0x33a75d(0x1ac)])[_0x33a75d(0x1c4)];return this[_0x33a75d(0x1e3)](_0x1da2ea);},'abortController':_0x3b3286[_0x25c2be(0x19c)]};}[_0x7d1d3e(0x225)](_0x43efd4,_0x50be49,_0x4183c0){const _0x29c820=_0x7d1d3e,_0x484724=this[_0x29c820(0x1e2)](_0x29c820(0x1fe)+_0x43efd4+_0x29c820(0x1ea)+_0x50be49+_0x29c820(0x219),_0x29c820(0x1ad),{'positiveCount':_0x4183c0[_0x29c820(0x206)],'totalCount':_0x4183c0[_0x29c820(0x222)],'modificationId':_0x4183c0[_0x29c820(0x1cb)]});return{'execute':async()=>{const _0xcc4b5e=_0x29c820;await _0x484724[_0xcc4b5e(0x1ac)];},'abortController':_0x484724[_0x29c820(0x19c)]};}[_0x7d1d3e(0x1aa)](_0x4243e0,_0x3aff7d,_0xeef2de){const _0x3f3c81=_0x7d1d3e,_0x54d059=this[_0x3f3c81(0x1e2)](_0x3f3c81(0x1fc)+_0x4243e0+_0x3f3c81(0x208)+_0x3aff7d+_0x3f3c81(0x219),_0x3f3c81(0x1ad),{'positiveCount':_0xeef2de[_0x3f3c81(0x206)],'totalCount':_0xeef2de[_0x3f3c81(0x222)]});return{'execute':async()=>{const _0x41b894=_0x3f3c81;await _0x54d059[_0x41b894(0x1ac)];},'abortController':_0x54d059[_0x3f3c81(0x19c)]};}[_0x7d1d3e(0x1ee)](_0xa7b13e,_0x1a072d){const _0x25a91e=_0x7d1d3e,_0x4d407e=this[_0x25a91e(0x1e2)](_0x25a91e(0x1e7)+_0xa7b13e+_0x25a91e(0x219),_0x25a91e(0x1ad),{'positiveCount':_0x1a072d[_0x25a91e(0x206)],'totalCount':_0x1a072d[_0x25a91e(0x222)]});return{'execute':async()=>{const _0x101dc4=_0x25a91e;await _0x4d407e[_0x101dc4(0x1ac)];},'abortController':_0x4d407e[_0x25a91e(0x19c)]};}[_0x7d1d3e(0x1ca)](_0x1fecdb,_0x235320,_0x509886,_0x643195){const _0x213f22=_0x7d1d3e,_0x28e54f=this[_0x213f22(0x1e2)](_0x213f22(0x207)+_0x1fecdb+_0x213f22(0x208)+_0x235320+_0x213f22(0x219),_0x213f22(0x1ad),{'positiveCount':_0x509886[_0x213f22(0x206)],'totalCount':_0x509886[_0x213f22(0x222)],'dataId':_0x643195});return{'execute':async()=>{const _0x53b149=_0x213f22;await _0x28e54f[_0x53b149(0x1ac)];},'abortController':_0x28e54f[_0x213f22(0x19c)]};}[_0x7d1d3e(0x1a2)](_0x1113e5,_0x3a5cfd,_0x32e6c2){const _0x359ac0=_0x7d1d3e,_0x45c822=this[_0x359ac0(0x1e2)](_0x359ac0(0x1c5)+_0x1113e5+_0x359ac0(0x219),_0x359ac0(0x1ad),{'positiveCount':_0x3a5cfd[_0x359ac0(0x206)],'totalCount':_0x3a5cfd[_0x359ac0(0x222)],'dataId':_0x32e6c2});return{'execute':async()=>{const _0x495a32=_0x359ac0;await _0x45c822[_0x495a32(0x1ac)];},'abortController':_0x45c822[_0x359ac0(0x19c)]};}[_0x7d1d3e(0x1e2)](_0x2c06f9,_0x51f7a6,_0x2869bb){const _0x1bd383=_0x7d1d3e,_0x39ccbb=new AbortController(),_0x1c948a=_0x2869bb instanceof FormData,_0x5b948d={'Authorization':_0x1bd383(0x202)+this[_0x1bd383(0x1bc)]?.[_0x1bd383(0x22b)]};_0x2869bb&&!_0x1c948a&&(_0x5b948d[_0x1bd383(0x20a)]=_0x1bd383(0x200));const _0x266904={'method':_0x51f7a6,'headers':_0x5b948d,'signal':_0x39ccbb[_0x1bd383(0x1cf)]};return _0x2869bb&&(_0x266904[_0x1bd383(0x1c4)]=_0x1c948a?_0x2869bb:JSON[_0x1bd383(0x1ce)](_0x2869bb)),{'request':fetch(''+this[_0x1bd383(0x21b)]+_0x2c06f9,_0x266904)[_0x1bd383(0x1ae)](_0x10b3ce=>{const _0x5107fc=_0x1bd383;this[_0x5107fc(0x1b0)](_0x10b3ce);})[_0x1bd383(0x195)](_0x292b7e=>_0x292b7e['ok']?_0x292b7e:_0x292b7e[_0x1bd383(0x1c6)]()[_0x1bd383(0x195)](_0x556bba=>{const _0x203f5e=_0x1bd383;throw{'url':this[_0x203f5e(0x21b)],'path':_0x2c06f9,'method':_0x51f7a6,'body':_0x2869bb,'status':(_0x292b7e||{})[_0x203f5e(0x1b6)],'statusText':(_0x292b7e||{})[_0x203f5e(0x1b3)],'code':_0x556bba[_0x203f5e(0x1dd)],'message':_0x556bba[_0x203f5e(0x20f)],'traceId':_0x556bba[_0x203f5e(0x22a)]};})),'abortController':_0x39ccbb};}async*[_0x7d1d3e(0x1e3)](_0x4fd533){const _0x1e8ad6=_0x7d1d3e,_0xd76461=[],_0x3fe273=_0x4fd533[_0x1e8ad6(0x1be)](),_0x3d2f3c=_0x398c5a({'onError':_0x21aa05=>{const _0x3b1d3e=_0x1e8ad6;this[_0x3b1d3e(0x1b0)](_0x21aa05);},'onEvent':_0x18c620=>{const _0x4b7a6e=_0x1e8ad6;_0x18c620[_0x4b7a6e(0x19e)]=JSON[_0x4b7a6e(0x1b8)](_0x18c620[_0x4b7a6e(0x19e)]),_0xd76461[_0x4b7a6e(0x1b9)](_0x18c620);}});try{let _0x2d21b7=!0x1;for(;!_0x2d21b7;){const {done:_0x33e4f7,value:_0xd82b2}=await _0x3fe273[_0x1e8ad6(0x1d4)]();_0x33e4f7&&(_0x2d21b7=!0x0),_0x3d2f3c[_0x1e8ad6(0x1de)](this[_0x1e8ad6(0x1a7)][_0x1e8ad6(0x20e)](_0xd82b2,{'stream':!0x0})),yield*_0xd76461,_0xd76461[_0x1e8ad6(0x21c)]=0x0;}}catch(_0x3b0330){this[_0x1e8ad6(0x1b0)](_0x3b0330);}finally{_0x3fe273[_0x1e8ad6(0x21e)](),_0x3d2f3c[_0x1e8ad6(0x199)]();}}[_0x7d1d3e(0x1b0)](_0x37bb76){const _0x4ab3ea=_0x7d1d3e;if(_0x37bb76 instanceof _0x375d84)throw _0x37bb76;if(_0x37bb76 instanceof Error&&_0x4ab3ea(0x1e9)===_0x37bb76[_0x4ab3ea(0x209)])throw new _0x375d84(_0x4ab3ea(0x1d1),this,{'originalError':_0x37bb76});throw new _0x375d84(_0x4ab3ea(0x211),this,{'originalError':_0x37bb76});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3a7afd=_0x4360;(function(_0xad8647,_0x219dd9){const _0x4de5de=_0x4360,_0x18463b=_0xad8647();while(!![]){try{const _0x5d1478=-parseInt(_0x4de5de(0x84))/0x1*(parseInt(_0x4de5de(0xca))/0x2)+-parseInt(_0x4de5de(0xad))/0x3*(-parseInt(_0x4de5de(0x73))/0x4)+parseInt(_0x4de5de(0xc4))/0x5+parseInt(_0x4de5de(0xb2))/0x6+parseInt(_0x4de5de(0xa5))/0x7*(-parseInt(_0x4de5de(0x87))/0x8)+parseInt(_0x4de5de(0xba))/0x9*(parseInt(_0x4de5de(0x89))/0xa)+-parseInt(_0x4de5de(0x79))/0xb*(parseInt(_0x4de5de(0xab))/0xc);if(_0x5d1478===_0x219dd9)break;else _0x18463b['push'](_0x18463b['shift']());}catch(_0x3f6f74){_0x18463b['push'](_0x18463b['shift']());}}}(_0x5bc9,0x6972a));import{ViewDowncastWriter as _0x5ca93e}from'ckeditor5/src/engine.js';function _0x5bc9(){const _0x3ecad2=['isBefore','selection','toView','element','markerToElement','dataDowncast','_nextDataId','_integrateEditor','push','createUIElement','37254htnwBJ','ready','markers','floor','random','getItems','228zunViu','AIEditing','21cvXgKt','getHtml','getRanges','isContent','join','2275524LPqctG','data-id',':end>','end','getSelection','editing','showFakeVisualSelection','version','83502GkbaPS','config','_setOutputDataProcessor','editingDowncast','length','getMarkersGroup','model',':end></','createRange','getSelectionText','1145265dTFPeJ','sort','markerName','conversion','locale','add','1206992coNtZX','_setDataIdsOnChildren','$textProxy','removeMarker','RealTimeCollaborationClient','_sessionId','fromCharCode','define','has','convertAiChatSelectionMarker','_getMarkersInDocumentOrder','removeAllRanges','sessionId','isOpening','trim','getChildren','htmlWriter','ai-selection:','document','_displayedFakeSelectionLocked',':start>','modelToDataWithIds','pluginName','isPremiumPlugin','markerToHighlight','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','getStart','substring','plugins','change','afterInit','173160BXfisl','containerElement','processor','getDocumentData','ai.models.showModelSelector','data','48631jAljTh','addMarker','getLastMatchingPosition','get',':start></','start','schema','emptyElement','_getDocumentDataStringFromView','editors','from','1SeeONK','ck-ai-assistant-ui_theme','listenTo','8HNoIgZ','viewToDom','230xrTQPp','isOfficialPlugin','indexOf','isAfter','ai-selection','toData','_displayedFakeSelectionId','isAtEnd','getRoot','domConverter','ck-fake-ai-selection','view','_outputDataProcessor','for','setAttribute','hideFakeVisualSelection','name','context'];_0x5bc9=function(){return _0x3ecad2;};return _0x5bc9();}import{ContextPlugin as _0x376e06,Editor as _0x30c611}from'ckeditor5/src/core.js';import{uid as _0x2f919c}from'ckeditor5/src/utils.js';import{getTranslation as _0x221ff5}from'./utils/common-translations.js';import{getEditorFromContext as _0x51a4ec}from'./utils/geteditorfromcontext.js';function _0x4360(_0x48985e,_0x30f2ae){const _0x5bc987=_0x5bc9();return _0x4360=function(_0x4360b8,_0x264795){_0x4360b8=_0x4360b8-0x6c;let _0x5a10dc=_0x5bc987[_0x4360b8];return _0x5a10dc;},_0x4360(_0x48985e,_0x30f2ae);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3a7afd(0x8d);export class AIEditing extends _0x376e06{constructor(_0x15550b){const _0x4339f2=_0x3a7afd;super(_0x15550b),this[_0x4339f2(0x9a)][_0x4339f2(0xbb)][_0x4339f2(0xd1)](_0x4339f2(0x77),!0x0);}[_0x3a7afd(0x95)];[_0x3a7afd(0x8f)]=null;[_0x3a7afd(0xdd)]=!0x1;[_0x3a7afd(0xcf)];static get[_0x3a7afd(0xe0)](){const _0x2ed1f4=_0x3a7afd;return _0x2ed1f4(0xac);}static get[_0x3a7afd(0x8a)](){return!0x0;}static get[_0x3a7afd(0xe1)](){return!0x0;}get[_0x3a7afd(0xd6)](){const _0x13fee4=_0x3a7afd;if(!this[_0x13fee4(0xcf)]){const _0x4eea77=_0x51a4ec(this[_0x13fee4(0x9a)]),_0x78c29e=_0x4eea77[_0x13fee4(0x70)][_0x13fee4(0xd2)](_0x13fee4(0xce))&&_0x4eea77[_0x13fee4(0x70)][_0x13fee4(0x7c)](_0x13fee4(0xce))[_0x13fee4(0xd6)];this[_0x13fee4(0xcf)]=_0x78c29e||_0x2f919c();}return this[_0x13fee4(0xcf)];}async[_0x3a7afd(0x76)](){const _0x3c8521=_0x3a7afd,_0x31eefe=_0x51a4ec(this[_0x3c8521(0x9a)]),_0x3ab85f=_0x31eefe[_0x3c8521(0xc0)],_0x5857c1=_0x31eefe[_0x3c8521(0x78)][_0x3c8521(0x9d)](_0x3ab85f[_0x3c8521(0xdc)][_0x3c8521(0x91)](),{'convertAiChatSelectionMarker':!0x0}),_0x3685e7=new _0x5ca93e(_0x31eefe[_0x3c8521(0xb7)][_0x3c8521(0x94)][_0x3c8521(0xdc)]);this[_0x3c8521(0xcb)](_0x5857c1,_0x3685e7);let _0x25a6cb=await this[_0x3c8521(0x81)](_0x5857c1);const _0x591986=this[_0x3c8521(0xd4)](),_0x37c5f9=[];for(const _0x954ab4 of _0x591986){const _0x64b586='<'+_0x954ab4[_0x3c8521(0x99)]+_0x3c8521(0x7d)+_0x954ab4[_0x3c8521(0x99)]+_0x3c8521(0xde),_0x2310b5=_0x25a6cb[_0x3c8521(0x8b)](_0x64b586);_0x25a6cb=_0x25a6cb[_0x3c8521(0x6f)](0x0,_0x2310b5)+_0x25a6cb[_0x3c8521(0x6f)](_0x2310b5+_0x64b586[_0x3c8521(0xbe)]);const _0x1f93e7='<'+_0x954ab4[_0x3c8521(0x99)]+_0x3c8521(0xc1)+_0x954ab4[_0x3c8521(0x99)]+_0x3c8521(0xb4),_0x25b7c9=_0x25a6cb[_0x3c8521(0x8b)](_0x1f93e7);_0x25a6cb=_0x25a6cb[_0x3c8521(0x6f)](0x0,_0x25b7c9)+_0x25a6cb[_0x3c8521(0x6f)](_0x25b7c9+_0x1f93e7[_0x3c8521(0xbe)]),_0x37c5f9[_0x3c8521(0xa3)]({'markerName':_0x954ab4[_0x3c8521(0x99)],'start':_0x2310b5,'end':_0x25b7c9,'htmlFragment':_0x25a6cb[_0x3c8521(0x6f)](_0x2310b5,_0x25b7c9)});}return{'content':_0x25a6cb,'version':_0x31eefe[_0x3c8521(0xc0)][_0x3c8521(0xdc)][_0x3c8521(0xb9)],'sessionId':this[_0x3c8521(0xd6)],'selections':_0x37c5f9};}async[_0x3a7afd(0x72)](){const _0x339738=_0x3a7afd;this[_0x339738(0x9a)]instanceof _0x30c611?this[_0x339738(0xa2)](this[_0x339738(0x9a)]):this[_0x339738(0x86)](this[_0x339738(0x9a)][_0x339738(0x82)],_0x339738(0xc9),(_0x5c1b0e,_0xabf99b)=>{const _0x3866b7=_0x339738;_0xabf99b['on'](_0x3866b7(0xa6),()=>{const _0x58600a=_0x3866b7;this[_0x58600a(0xa2)](_0xabf99b);});});}[_0x3a7afd(0xbc)](_0x3057e5){const _0x30d371=_0x3a7afd;this[_0x30d371(0x95)]=_0x3057e5;}async[_0x3a7afd(0x81)](_0x55a25c){const _0x4ebb9d=_0x3a7afd;let _0x55daeb;const _0x247be4=_0x51a4ec(this[_0x4ebb9d(0x9a)]);if(this[_0x4ebb9d(0x95)]){const _0x247be3=_0x247be4[_0x4ebb9d(0x78)][_0x4ebb9d(0x75)][_0x4ebb9d(0x92)][_0x4ebb9d(0x88)](_0x55a25c),_0x2e34d2=await this[_0x4ebb9d(0x95)](_0x247be3);_0x55daeb=_0x247be4[_0x4ebb9d(0x78)][_0x4ebb9d(0x75)][_0x4ebb9d(0xda)][_0x4ebb9d(0xae)](_0x2e34d2);}else _0x55daeb=_0x247be4[_0x4ebb9d(0x78)][_0x4ebb9d(0x75)][_0x4ebb9d(0x8e)](_0x55a25c);return _0x55daeb;}[_0x3a7afd(0xa2)](_0x245c07){const _0x435747=_0x3a7afd;_0x245c07[_0x435747(0xc7)][_0x435747(0x96)](_0x435747(0xbd))[_0x435747(0x6c)]({'model':_0x435747(0x8d),'view':{'classes':[_0x435747(0x93),_0x435747(0x85)],'priority':0xc}}),_0x245c07[_0x435747(0xc7)][_0x435747(0x96)](_0x435747(0xa0))[_0x435747(0x9f)]({'model':_0x435747(0x8d),'view':(_0x1df752,{writer:_0x5c2105,options:_0x364277})=>_0x364277[_0x435747(0xd3)]?_0x5c2105[_0x435747(0xa4)](_0x1df752[_0x435747(0xc6)]+':'+(_0x1df752[_0x435747(0xd7)]?_0x435747(0x7e):_0x435747(0xb5))):null});}[_0x3a7afd(0xb8)](_0x5ce26a,_0x20d16e,_0x33b9ea=!0x1,_0x4a21f3=!0x1){const _0x39161f=_0x3a7afd;if(this[_0x39161f(0xdd)]&&!_0x4a21f3)return!0x1;const _0x4e19fd=_0x51a4ec(this[_0x39161f(0x9a)])[_0x39161f(0xc0)];return _0x4e19fd[_0x39161f(0x71)](_0x2c1d1b=>{const _0x4520e8=_0x39161f;this[_0x4520e8(0x8f)]&&this[_0x4520e8(0x98)](this[_0x4520e8(0x8f)]),this[_0x4520e8(0x8f)]=_0x20d16e,this[_0x4520e8(0xdd)]=_0x33b9ea;let _0x3015de=0x0;for(let _0x4f7322 of _0x5ce26a){const _0x2ef3d2=_0x4520e8(0xdb)+_0x3015de;if(_0x4f7322[_0x4520e8(0x7e)][_0x4520e8(0x90)]){const _0x59cd1a=_0x4f7322[_0x4520e8(0x7e)][_0x4520e8(0x7b)](({item:_0x5cfbff})=>!_0x4e19fd[_0x4520e8(0x7f)][_0x4520e8(0xb0)](_0x5cfbff),{'boundaries':_0x4f7322});_0x4f7322=_0x2c1d1b[_0x4520e8(0xc2)](_0x59cd1a,_0x4f7322[_0x4520e8(0xb5)]);}_0x2c1d1b[_0x4520e8(0x7a)](_0x2ef3d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4f7322}),_0x3015de++;}}),window[_0x39161f(0xb6)]()?.[_0x39161f(0xd5)](),!0x0;}[_0x3a7afd(0x98)](_0x35639c){const _0x1c068b=_0x3a7afd;if(this[_0x1c068b(0x8f)]!=_0x35639c)return!0x1;this[_0x1c068b(0x8f)]=null,this[_0x1c068b(0xdd)]=!0x1;const _0x889eb7=_0x51a4ec(this[_0x1c068b(0x9a)]),_0x29beec=_0x889eb7[_0x1c068b(0xc0)][_0x1c068b(0xa7)][_0x1c068b(0xbf)](_0x1c068b(0x8d));return _0x889eb7[_0x1c068b(0xc0)][_0x1c068b(0x71)](_0x1ffbd5=>{const _0x3fb1da=_0x1c068b;for(const _0x16e2fa of _0x29beec)_0x1ffbd5[_0x3fb1da(0xcd)](_0x16e2fa);}),!0x0;}async[_0x3a7afd(0xdf)](_0x5116fb){const _0x10c16f=_0x3a7afd,_0x106b25=_0x51a4ec(this[_0x10c16f(0x9a)]),_0x2ec839=_0x106b25[_0x10c16f(0x78)][_0x10c16f(0x9d)](_0x5116fb),_0x5761ad=new _0x5ca93e(_0x106b25[_0x10c16f(0xb7)][_0x10c16f(0x94)][_0x10c16f(0xdc)]);return this[_0x10c16f(0xcb)](_0x2ec839,_0x5761ad),this[_0x10c16f(0x81)](_0x2ec839);}[_0x3a7afd(0xcb)](_0x248643,_0x125240){const _0x3e4705=_0x3a7afd;let _0x22fc92=!0x1;const _0x11763a=new Set();for(const _0x5bd62e of _0x248643[_0x3e4705(0xd9)]()){const _0x48fc95=_0x5bd62e['is'](_0x3e4705(0x80))||_0x5bd62e['is'](_0x3e4705(0x74));if(!_0x5bd62e['is'](_0x3e4705(0x9e)))continue;(this[_0x3e4705(0xcb)](_0x5bd62e,_0x125240)||_0x48fc95)&&(_0x125240[_0x3e4705(0x97)](_0x3e4705(0xb3),this[_0x3e4705(0xa1)](_0x11763a),_0x5bd62e),_0x22fc92=!0x0);}return _0x22fc92;}[_0x3a7afd(0xa1)](_0x10e493){const _0xfa284f=_0x3a7afd;let _0x46bb18;do{_0x46bb18='';for(let _0x4318d4=0x0;_0x4318d4<0x4;_0x4318d4++)_0x46bb18+=String[_0xfa284f(0xd0)](0x61+Math[_0xfa284f(0xa8)](0x1a*Math[_0xfa284f(0xa9)]()));}while(_0x10e493[_0xfa284f(0xd2)](_0x46bb18));return _0x10e493[_0xfa284f(0xc9)](_0x46bb18),_0x46bb18;}[_0x3a7afd(0xc3)](){const _0x480b70=_0x3a7afd,{model:_0x2693c2}=_0x51a4ec(this[_0x480b70(0x9a)]),_0x19f988=_0x2693c2[_0x480b70(0xdc)][_0x480b70(0x9c)],_0x17f005=[];for(const _0x3b3374 of _0x19f988[_0x480b70(0xaf)]())for(const _0x3aabd2 of _0x3b3374[_0x480b70(0xaa)]())_0x3aabd2['is'](_0x480b70(0xcc))?_0x17f005[_0x480b70(0xa3)](_0x3aabd2[_0x480b70(0x78)]):_0x3aabd2['is'](_0x480b70(0x9e))&&_0x17f005[_0x480b70(0xbe)]>0x0&&'\x20'!==_0x17f005[_0x17f005[_0x480b70(0xbe)]-0x1]&&_0x17f005[_0x480b70(0xa3)]('\x20');return _0x17f005[_0x480b70(0xbe)]?'\x22'+_0x17f005[_0x480b70(0xb1)]('')[_0x480b70(0xd8)]()+'\x22':_0x221ff5(this[_0x480b70(0x9a)][_0x480b70(0xc8)],_0x480b70(0x6d));}[_0x3a7afd(0xd4)](){const _0x51d59f=_0x3a7afd,_0x19bb04=_0x51a4ec(this[_0x51d59f(0x9a)])[_0x51d59f(0xc0)];return Array[_0x51d59f(0x83)](_0x19bb04[_0x51d59f(0xa7)][_0x51d59f(0xbf)](_0x51d59f(0x8d)))[_0x51d59f(0xc5)]((_0x5a303c,_0x2641f7)=>_0x5a303c[_0x51d59f(0x6e)]()[_0x51d59f(0x9b)](_0x2641f7[_0x51d59f(0x6e)]())?-0x1:_0x5a303c[_0x51d59f(0x6e)]()[_0x51d59f(0x8c)](_0x2641f7[_0x51d59f(0x6e)]())?0x1:0x0);}}
|
|
23
|
+
const _0x2fb984=_0x3fc8;(function(_0x3823aa,_0x4e22f5){const _0x15adc0=_0x3fc8,_0x37b412=_0x3823aa();while(!![]){try{const _0x388e31=parseInt(_0x15adc0(0x1ad))/0x1*(-parseInt(_0x15adc0(0x13c))/0x2)+-parseInt(_0x15adc0(0x195))/0x3+-parseInt(_0x15adc0(0x191))/0x4*(parseInt(_0x15adc0(0x198))/0x5)+parseInt(_0x15adc0(0x199))/0x6*(-parseInt(_0x15adc0(0x152))/0x7)+-parseInt(_0x15adc0(0x151))/0x8*(-parseInt(_0x15adc0(0x169))/0x9)+parseInt(_0x15adc0(0x186))/0xa*(parseInt(_0x15adc0(0x17e))/0xb)+parseInt(_0x15adc0(0x19d))/0xc;if(_0x388e31===_0x4e22f5)break;else _0x37b412['push'](_0x37b412['shift']());}catch(_0x18ed7f){_0x37b412['push'](_0x37b412['shift']());}}}(_0x24eb,0xa5a6a));import{ViewDowncastWriter as _0x101b34}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x244736,Editor as _0x547ac8}from'ckeditor5/src/core.js';function _0x24eb(){const _0x6564=['markerToElement','listenTo','ck-fake-ai-selection','ai-selection:','_outputDataProcessor','view','98296xYhfPT','259HZEHwo','viewToDom','define','editors','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','has','isAtEnd','end','add','random','context','_displayedFakeSelectionLocked','document','from',':start>','AIEditing','join','isAfter','getSelection','length','_integrateEditor','selection','pluginName','333CcsxhA','ck-ai-assistant-ui_theme','addMarker','getStart','hideFakeVisualSelection','change',':end></','containerElement','ready','indexOf','schema','isPremiumPlugin','getItems','model','convertAiChatSelectionMarker','getHtml','markerToHighlight','_setOutputDataProcessor','htmlWriter','_getMarkersInDocumentOrder','getRanges','99bfSOqe','for','config','createUIElement','version','data-id','dataDowncast','_displayedFakeSelectionId','577890tqKExa','markers','ai-selection','markerName','isOpening',':end>','editingDowncast','sessionId','editing','emptyElement','getRoot','176GZswLZ','ai.models.showModelSelector','data','getLastMatchingPosition','3931710cCTPxX','_sessionId','getSelectionText','46245CVazHB','167592nATecH','showFakeVisualSelection','_nextDataId','getMarkersGroup','37302348PiLxps','trim','substring','element','isBefore','$textProxy','_getDocumentDataStringFromView','getChildren','domConverter','conversion','isContent','toData','createRange','locale','sort',':start></','11469qKteCX','removeMarker','start','floor','get','114SWrufb','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','push','isOfficialPlugin','fromCharCode','plugins','toView','_setDataIdsOnChildren','getDocumentData','setAttribute','name','modelToDataWithIds'];_0x24eb=function(){return _0x6564;};return _0x24eb();}import{uid as _0x5213cd}from'ckeditor5/src/utils.js';function _0x3fc8(_0x50197b,_0x12ea02){const _0x24eb5e=_0x24eb();return _0x3fc8=function(_0x3fc87a,_0x569e79){_0x3fc87a=_0x3fc87a-0x139;let _0x55a56a=_0x24eb5e[_0x3fc87a];return _0x55a56a;},_0x3fc8(_0x50197b,_0x12ea02);}import{getTranslation as _0x2308f3}from'./utils/common-translations.js';import{getEditorFromContext as _0x15dd3a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2fb984(0x188);export class AIEditing extends _0x244736{constructor(_0x4a2532){const _0x2afc38=_0x2fb984;super(_0x4a2532),this[_0x2afc38(0x15c)][_0x2afc38(0x180)][_0x2afc38(0x154)](_0x2afc38(0x192),!0x0);}[_0x2fb984(0x14f)];[_0x2fb984(0x185)]=null;[_0x2fb984(0x15d)]=!0x1;[_0x2fb984(0x196)];static get[_0x2fb984(0x168)](){const _0x3bbd4d=_0x2fb984;return _0x3bbd4d(0x161);}static get[_0x2fb984(0x142)](){return!0x0;}static get[_0x2fb984(0x174)](){return!0x0;}get[_0x2fb984(0x18d)](){const _0x54de22=_0x2fb984;if(!this[_0x54de22(0x196)]){const _0x36a087=_0x15dd3a(this[_0x54de22(0x15c)]),_0x384bba=_0x36a087[_0x54de22(0x144)][_0x54de22(0x157)](_0x54de22(0x13f))&&_0x36a087[_0x54de22(0x144)][_0x54de22(0x13b)](_0x54de22(0x13f))[_0x54de22(0x18d)];this[_0x54de22(0x196)]=_0x384bba||_0x5213cd();}return this[_0x54de22(0x196)];}async[_0x2fb984(0x147)](){const _0x5c2c12=_0x2fb984,_0xbf65ad=_0x15dd3a(this[_0x5c2c12(0x15c)]),_0x4bd40a=_0xbf65ad[_0x5c2c12(0x176)],_0x3d6959=_0xbf65ad[_0x5c2c12(0x193)][_0x5c2c12(0x145)](_0x4bd40a[_0x5c2c12(0x15e)][_0x5c2c12(0x190)](),{'convertAiChatSelectionMarker':!0x0}),_0x5e3a0c=new _0x101b34(_0xbf65ad[_0x5c2c12(0x18e)][_0x5c2c12(0x150)][_0x5c2c12(0x15e)]);this[_0x5c2c12(0x146)](_0x3d6959,_0x5e3a0c);let _0x3a15fa=await this[_0x5c2c12(0x1a3)](_0x3d6959);const _0x16499a=this[_0x5c2c12(0x17c)](),_0x3d9ca2=[];for(const _0x3e0324 of _0x16499a){const _0x57e7ac='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x1ac)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x160),_0x57d239=_0x3a15fa[_0x5c2c12(0x172)](_0x57e7ac);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0x57d239)+_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239+_0x57e7ac[_0x5c2c12(0x165)]);const _0x48e0cd='<'+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x16f)+_0x3e0324[_0x5c2c12(0x149)]+_0x5c2c12(0x18b),_0xc33083=_0x3a15fa[_0x5c2c12(0x172)](_0x48e0cd);_0x3a15fa=_0x3a15fa[_0x5c2c12(0x19f)](0x0,_0xc33083)+_0x3a15fa[_0x5c2c12(0x19f)](_0xc33083+_0x48e0cd[_0x5c2c12(0x165)]),_0x3d9ca2[_0x5c2c12(0x141)]({'markerName':_0x3e0324[_0x5c2c12(0x149)],'start':_0x57d239,'end':_0xc33083,'htmlFragment':_0x3a15fa[_0x5c2c12(0x19f)](_0x57d239,_0xc33083)});}return{'content':_0x3a15fa,'version':_0xbf65ad[_0x5c2c12(0x176)][_0x5c2c12(0x15e)][_0x5c2c12(0x182)],'sessionId':this[_0x5c2c12(0x18d)],'selections':_0x3d9ca2};}async[_0x2fb984(0x13d)](){const _0x30da80=_0x2fb984;this[_0x30da80(0x15c)]instanceof _0x547ac8?this[_0x30da80(0x166)](this[_0x30da80(0x15c)]):this[_0x30da80(0x14c)](this[_0x30da80(0x15c)][_0x30da80(0x155)],_0x30da80(0x15a),(_0x39ad89,_0x34d820)=>{const _0x3ac0ac=_0x30da80;_0x34d820['on'](_0x3ac0ac(0x171),()=>{const _0xd08f6d=_0x3ac0ac;this[_0xd08f6d(0x166)](_0x34d820);});});}[_0x2fb984(0x17a)](_0x1b2337){const _0x2dd3ba=_0x2fb984;this[_0x2dd3ba(0x14f)]=_0x1b2337;}async[_0x2fb984(0x1a3)](_0x5b4154){const _0x4f3d81=_0x2fb984;let _0x3b6c83;const _0x2a49b8=_0x15dd3a(this[_0x4f3d81(0x15c)]);if(this[_0x4f3d81(0x14f)]){const _0x5f2749=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a5)][_0x4f3d81(0x153)](_0x5b4154),_0x4d67cf=await this[_0x4f3d81(0x14f)](_0x5f2749);_0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x17b)][_0x4f3d81(0x178)](_0x4d67cf);}else _0x3b6c83=_0x2a49b8[_0x4f3d81(0x193)][_0x4f3d81(0x13e)][_0x4f3d81(0x1a8)](_0x5b4154);return _0x3b6c83;}[_0x2fb984(0x166)](_0x23d6f9){const _0x3c8381=_0x2fb984;_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x18c))[_0x3c8381(0x179)]({'model':_0x3c8381(0x188),'view':{'classes':[_0x3c8381(0x14d),_0x3c8381(0x16a)],'priority':0xc}}),_0x23d6f9[_0x3c8381(0x1a6)][_0x3c8381(0x17f)](_0x3c8381(0x184))[_0x3c8381(0x14b)]({'model':_0x3c8381(0x188),'view':(_0x1706d6,{writer:_0x50136f,options:_0x2376b7})=>_0x2376b7[_0x3c8381(0x177)]?_0x50136f[_0x3c8381(0x181)](_0x1706d6[_0x3c8381(0x189)]+':'+(_0x1706d6[_0x3c8381(0x18a)]?_0x3c8381(0x139):_0x3c8381(0x159))):null});}[_0x2fb984(0x19a)](_0x2270ec,_0x38253a,_0x273af2=!0x1,_0x27dbe8=!0x1){const _0x3efb43=_0x2fb984;if(this[_0x3efb43(0x15d)]&&!_0x27dbe8)return!0x1;const _0x2644ed=_0x15dd3a(this[_0x3efb43(0x15c)])[_0x3efb43(0x176)];return _0x2644ed[_0x3efb43(0x16e)](_0x228618=>{const _0x32555e=_0x3efb43;this[_0x32555e(0x185)]&&this[_0x32555e(0x16d)](this[_0x32555e(0x185)]),this[_0x32555e(0x185)]=_0x38253a,this[_0x32555e(0x15d)]=_0x273af2;let _0x13ebd4=0x0;for(let _0xee4e4a of _0x2270ec){const _0x1dfe19=_0x32555e(0x14e)+_0x13ebd4;if(_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x158)]){const _0x5855cb=_0xee4e4a[_0x32555e(0x139)][_0x32555e(0x194)](({item:_0x14a65a})=>!_0x2644ed[_0x32555e(0x173)][_0x32555e(0x1a7)](_0x14a65a),{'boundaries':_0xee4e4a});_0xee4e4a=_0x228618[_0x32555e(0x1a9)](_0x5855cb,_0xee4e4a[_0x32555e(0x159)]);}_0x228618[_0x32555e(0x16b)](_0x1dfe19,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xee4e4a}),_0x13ebd4++;}}),window[_0x3efb43(0x164)]()?.[_0x3efb43(0x140)](),!0x0;}[_0x2fb984(0x16d)](_0x305806){const _0x38eca1=_0x2fb984;if(this[_0x38eca1(0x185)]!=_0x305806)return!0x1;this[_0x38eca1(0x185)]=null,this[_0x38eca1(0x15d)]=!0x1;const _0x4a9bf2=_0x15dd3a(this[_0x38eca1(0x15c)]),_0x27aadf=_0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x187)][_0x38eca1(0x19c)](_0x38eca1(0x188));return _0x4a9bf2[_0x38eca1(0x176)][_0x38eca1(0x16e)](_0xee9c98=>{const _0x2998a4=_0x38eca1;for(const _0x262919 of _0x27aadf)_0xee9c98[_0x2998a4(0x1ae)](_0x262919);}),!0x0;}async[_0x2fb984(0x14a)](_0x3e8dc7){const _0xb04cbe=_0x2fb984,_0x422c8e=_0x15dd3a(this[_0xb04cbe(0x15c)]),_0x664a14=_0x422c8e[_0xb04cbe(0x193)][_0xb04cbe(0x145)](_0x3e8dc7),_0x4cdde6=new _0x101b34(_0x422c8e[_0xb04cbe(0x18e)][_0xb04cbe(0x150)][_0xb04cbe(0x15e)]);return this[_0xb04cbe(0x146)](_0x664a14,_0x4cdde6),this[_0xb04cbe(0x1a3)](_0x664a14);}[_0x2fb984(0x146)](_0x3fe8d4,_0x271e4c){const _0x56f857=_0x2fb984;let _0x5152de=!0x1;const _0x2ccde9=new Set();for(const _0x3bdbd4 of _0x3fe8d4[_0x56f857(0x1a4)]()){const _0x6b1274=_0x3bdbd4['is'](_0x56f857(0x18f))||_0x3bdbd4['is'](_0x56f857(0x170));if(!_0x3bdbd4['is'](_0x56f857(0x1a0)))continue;(this[_0x56f857(0x146)](_0x3bdbd4,_0x271e4c)||_0x6b1274)&&(_0x271e4c[_0x56f857(0x148)](_0x56f857(0x183),this[_0x56f857(0x19b)](_0x2ccde9),_0x3bdbd4),_0x5152de=!0x0);}return _0x5152de;}[_0x2fb984(0x19b)](_0x55e597){const _0x3e1e1b=_0x2fb984;let _0x20e333;do{_0x20e333='';for(let _0x3ae4e6=0x0;_0x3ae4e6<0x4;_0x3ae4e6++)_0x20e333+=String[_0x3e1e1b(0x143)](0x61+Math[_0x3e1e1b(0x13a)](0x1a*Math[_0x3e1e1b(0x15b)]()));}while(_0x55e597[_0x3e1e1b(0x157)](_0x20e333));return _0x55e597[_0x3e1e1b(0x15a)](_0x20e333),_0x20e333;}[_0x2fb984(0x197)](){const _0x20821d=_0x2fb984,{model:_0x317dd4}=_0x15dd3a(this[_0x20821d(0x15c)]),_0x18e8a4=_0x317dd4[_0x20821d(0x15e)][_0x20821d(0x167)],_0x22fdbb=[];for(const _0x187ac2 of _0x18e8a4[_0x20821d(0x17d)]())for(const _0x28ad8d of _0x187ac2[_0x20821d(0x175)]())_0x28ad8d['is'](_0x20821d(0x1a2))?_0x22fdbb[_0x20821d(0x141)](_0x28ad8d[_0x20821d(0x193)]):_0x28ad8d['is'](_0x20821d(0x1a0))&&_0x22fdbb[_0x20821d(0x165)]>0x0&&'\x20'!==_0x22fdbb[_0x22fdbb[_0x20821d(0x165)]-0x1]&&_0x22fdbb[_0x20821d(0x141)]('\x20');return _0x22fdbb[_0x20821d(0x165)]?'\x22'+_0x22fdbb[_0x20821d(0x162)]('')[_0x20821d(0x19e)]()+'\x22':_0x2308f3(this[_0x20821d(0x15c)][_0x20821d(0x1aa)],_0x20821d(0x156));}[_0x2fb984(0x17c)](){const _0x7f5fe7=_0x2fb984,_0x7ef9cb=_0x15dd3a(this[_0x7f5fe7(0x15c)])[_0x7f5fe7(0x176)];return Array[_0x7f5fe7(0x15f)](_0x7ef9cb[_0x7f5fe7(0x187)][_0x7f5fe7(0x19c)](_0x7f5fe7(0x188)))[_0x7f5fe7(0x1ab)]((_0x253ecb,_0x3be55b)=>_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x1a1)](_0x3be55b[_0x7f5fe7(0x16c)]())?-0x1:_0x253ecb[_0x7f5fe7(0x16c)]()[_0x7f5fe7(0x163)](_0x3be55b[_0x7f5fe7(0x16c)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3b72c7=_0x2e91;(function(_0x31c433,_0x2456b5){const _0x3fa0ec=_0x2e91,_0x123dd2=_0x31c433();while(!![]){try{const _0x12157a=-parseInt(_0x3fa0ec(0x15a))/0x1*(-parseInt(_0x3fa0ec(0x18e))/0x2)+parseInt(_0x3fa0ec(0x154))/0x3+parseInt(_0x3fa0ec(0x155))/0x4*(parseInt(_0x3fa0ec(0x157))/0x5)+-parseInt(_0x3fa0ec(0x1a0))/0x6*(parseInt(_0x3fa0ec(0x162))/0x7)+parseInt(_0x3fa0ec(0x159))/0x8*(parseInt(_0x3fa0ec(0x198))/0x9)+parseInt(_0x3fa0ec(0x15b))/0xa+-parseInt(_0x3fa0ec(0x156))/0xb*(parseInt(_0x3fa0ec(0x199))/0xc);if(_0x12157a===_0x2456b5)break;else _0x123dd2['push'](_0x123dd2['shift']());}catch(_0x26ea13){_0x123dd2['push'](_0x123dd2['shift']());}}}(_0x16ae,0x2914b));function _0x2e91(_0x43bc02,_0x5674b3){const _0x16ae11=_0x16ae();return _0x2e91=function(_0x2e918e,_0x19fce2){_0x2e918e=_0x2e918e-0x149;let _0x307d25=_0x16ae11[_0x2e918e];return _0x307d25;},_0x2e91(_0x43bc02,_0x5674b3);}function _0x16ae(){const _0x211879=['textDelta','interactionDestroyed','reasoningStarted','sources','modification-delta','setConversationTitle','stopListening','messageId','callId','text-delta','find','currentReply','appendContent','mcp-tool-notification','replyChangeGroupStateUpdated','interactionCreated','resetReasoningState','toolDataReceived','getDocumentContext','mcp-tool-result','message-metadata','interactionStarted','fire','forEach','destroy','reasoningFinished','_handleToolNotificationData','abortController','sendRequest','reasoning','_finalizeInteraction','push','editor','ai-chat-interaction-error','_handleToolResultData','_isWebSearching','634QTROCd','attributes','replyCreated','isStopped','delegate','web-search','currentRequest','text','type','webSearchFinished','633618QIPFFh','2868HWjJUP','conversationTitle','getReply','event','webSearchStarted','stop','length','713028lNqtYk','abort','parse','replyContentUpdated','conversation-title','connector','interactionFinished','splice','interactionStopped','data','resetWebSearchState','isDestroyed','createReply','542136CEmucl','219988tVQJvH','6193ULJWDg','5RKTPtK','toolName','8MpbHxc','651ywSmGZ','280220bUlaAw','done','notification','replies','_isReasoning','content','getStream','14lfTPBS','action-metadata','result','modification','source','start','error','actionCallId'];_0x16ae=function(){return _0x211879;};return _0x16ae();}import{CKEditorError as _0xaa3b6c,EmitterMixin as _0x5d3842,uid as _0x2583b5}from'ckeditor5/src/utils.js';import{AIReply as _0xaeefaa}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3b72c7(0x179),_0x3b72c7(0x17f),_0x3b72c7(0x14f),_0x3b72c7(0x14d),_0x3b72c7(0x16b),_0x3b72c7(0x190),_0x3b72c7(0x14a),_0x3b72c7(0x178),_0x3b72c7(0x16f),_0x3b72c7(0x19d),_0x3b72c7(0x197),_0x3b72c7(0x16c),_0x3b72c7(0x183),_0x3b72c7(0x17b),_0x3b72c7(0x168)];export class AIInteraction extends _0x5d3842(){['id'];[_0x3b72c7(0x15e)]=[];[_0x3b72c7(0x175)];[_0x3b72c7(0x171)];[_0x3b72c7(0x169)];[_0x3b72c7(0x194)];[_0x3b72c7(0x14c)];[_0x3b72c7(0x191)]=!0x1;[_0x3b72c7(0x152)]=!0x1;[_0x3b72c7(0x18a)];[_0x3b72c7(0x15f)]=!0x1;[_0x3b72c7(0x18d)]=!0x1;constructor({connector:_0x2c0338,editor:_0x1f103d}){const _0x4b414f=_0x3b72c7;super(),this['id']=_0x2583b5(),this[_0x4b414f(0x14c)]=_0x2c0338,this[_0x4b414f(0x191)]=!0x0,this[_0x4b414f(0x18a)]=_0x1f103d;}async[_0x3b72c7(0x167)](){const _0x233039=_0x3b72c7,_0x2e78a8=[];let _0x2e859c,_0x1c76a7,_0x14062b;this[_0x233039(0x191)]=!0x1;try{this[_0x233039(0x194)]=await this[_0x233039(0x186)](),this[_0x233039(0x180)](_0x233039(0x17f),this);const _0x3f6677=await this[_0x233039(0x194)][_0x233039(0x161)]();for await(const _0x13e479 of _0x3f6677){if(this[_0x233039(0x191)])return;if(_0x233039(0x168)==_0x13e479[_0x233039(0x19c)])return void this[_0x233039(0x180)](_0x233039(0x168),{'error':new _0xaa3b6c(_0x233039(0x18b),this)});switch(_0x13e479[_0x233039(0x19c)]){case _0x233039(0x17e):this[_0x233039(0x171)]=_0x13e479[_0x233039(0x150)][_0x233039(0x171)];break;case _0x233039(0x163):this[_0x233039(0x169)]=_0x13e479[_0x233039(0x150)][_0x233039(0x172)];break;case _0x233039(0x14b):this[_0x233039(0x16f)](_0x13e479[_0x233039(0x150)][_0x233039(0x19a)],!0x0);break;case _0x233039(0x166):_0x2e78a8[_0x233039(0x189)](_0x13e479[_0x233039(0x150)][_0x233039(0x166)]);break;case _0x233039(0x193):this[_0x233039(0x18d)]||(this[_0x233039(0x18d)]=!0x0,this[_0x233039(0x180)](_0x233039(0x19d),this));break;case _0x233039(0x187):this[_0x233039(0x15f)]||(this[_0x233039(0x15f)]=!0x0,this[_0x233039(0x180)](_0x233039(0x16c),this));break;case _0x233039(0x16e):case _0x233039(0x173):this[_0x233039(0x17a)](),this[_0x233039(0x151)](),_0x2e859c=_0x233039(0x16e)==_0x13e479[_0x233039(0x19c)]?_0x233039(0x165):_0x233039(0x195),_0x1c76a7=_0x233039(0x16e)==_0x13e479[_0x233039(0x19c)]?_0x13e479[_0x233039(0x150)]['id']:void 0x0,this[_0x233039(0x175)]&&this[_0x233039(0x175)][_0x233039(0x196)]!=_0x2e859c&&(this[_0x233039(0x175)][_0x233039(0x15c)](),this[_0x233039(0x175)]=void 0x0),this[_0x233039(0x175)]||(this[_0x233039(0x175)]=this[_0x233039(0x153)]({'type':_0x2e859c,'interactionId':this['id'],'id':_0x1c76a7}),_0x233039(0x165)==_0x2e859c&&(this[_0x233039(0x175)][_0x233039(0x16d)]=_0x2e78a8[_0x233039(0x14e)](0x0))),this[_0x233039(0x175)][_0x233039(0x176)](_0x13e479[_0x233039(0x150)][_0x233039(0x16a)]);break;case _0x233039(0x17d):_0x14062b=JSON[_0x233039(0x149)](_0x13e479[_0x233039(0x150)][_0x233039(0x164)]),this[_0x233039(0x18c)]({'toolName':_0x13e479[_0x233039(0x150)][_0x233039(0x158)],'data':_0x14062b[_0x233039(0x150)],'attributes':_0x14062b[_0x233039(0x18f)]});break;case _0x233039(0x177):this[_0x233039(0x184)]({'toolName':_0x13e479[_0x233039(0x150)][_0x233039(0x158)],'data':_0x13e479[_0x233039(0x150)][_0x233039(0x150)]});}}}finally{this[_0x233039(0x191)]||(this[_0x233039(0x175)]&&_0x2e78a8[_0x233039(0x19f)]>0x0&&(this[_0x233039(0x175)][_0x233039(0x16d)]=_0x2e78a8[_0x233039(0x14e)](0x0)),this[_0x233039(0x188)](),this[_0x233039(0x180)](_0x233039(0x14d),this));}}[_0x3b72c7(0x19e)](){const _0x505771=_0x3b72c7;this[_0x505771(0x191)]||(this[_0x505771(0x188)](),this[_0x505771(0x180)](_0x505771(0x14f),this));}[_0x3b72c7(0x19b)](_0x181060){const _0x38a434=_0x3b72c7;return this[_0x38a434(0x15e)][_0x38a434(0x174)](_0x2e6cfe=>_0x2e6cfe['id']===_0x181060);}[_0x3b72c7(0x182)](){const _0x101aae=_0x3b72c7;this[_0x101aae(0x152)]||(this[_0x101aae(0x19e)](),this[_0x101aae(0x15e)][_0x101aae(0x181)](_0x53abc5=>_0x53abc5[_0x101aae(0x182)]()),this[_0x101aae(0x15e)]=[],this[_0x101aae(0x152)]=!0x0,this[_0x101aae(0x180)](_0x101aae(0x16b),this),this[_0x101aae(0x170)]());}[_0x3b72c7(0x153)](_0x428367){const _0x149eb6=_0x3b72c7,_0x1178c6=new _0xaeefaa({'editor':this[_0x149eb6(0x18a)],'documentContextContent':this[_0x149eb6(0x17c)]()?.[_0x149eb6(0x160)],..._0x428367});return this[_0x149eb6(0x15e)][_0x149eb6(0x189)](_0x1178c6),_0x1178c6[_0x149eb6(0x192)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x149eb6(0x180)](_0x149eb6(0x190),_0x1178c6),_0x1178c6;}[_0x3b72c7(0x16f)](_0x13ac0f,_0xeca9d1=!0x1){const _0x1b273d=_0x3b72c7;this[_0x1b273d(0x180)](_0x1b273d(0x16f),_0x13ac0f,_0xeca9d1);}[_0x3b72c7(0x151)](){const _0x4aa3f2=_0x3b72c7;this[_0x4aa3f2(0x18d)]&&(this[_0x4aa3f2(0x18d)]=!0x1,this[_0x4aa3f2(0x180)](_0x4aa3f2(0x197),this));}[_0x3b72c7(0x17a)](){const _0x5bc232=_0x3b72c7;this[_0x5bc232(0x15f)]&&(this[_0x5bc232(0x15f)]=!0x1,this[_0x5bc232(0x180)](_0x5bc232(0x183),this));}[_0x3b72c7(0x18c)](_0x2ba494){const _0x215ff4=_0x3b72c7;this[_0x215ff4(0x180)](_0x215ff4(0x17b),{'type':_0x215ff4(0x164),'toolName':_0x2ba494[_0x215ff4(0x158)],'data':structuredClone(_0x2ba494[_0x215ff4(0x150)]||{}),'attributes':structuredClone(_0x2ba494[_0x215ff4(0x18f)]||{})},this);}[_0x3b72c7(0x184)](_0x518320){const _0x280315=_0x3b72c7;this[_0x280315(0x180)](_0x280315(0x17b),{'type':_0x280315(0x15d),'toolName':_0x518320[_0x280315(0x158)],'data':structuredClone(_0x518320[_0x280315(0x150)])},this);}[_0x3b72c7(0x188)](){const _0x5b85ca=_0x3b72c7;this[_0x5b85ca(0x191)]=!0x0,this[_0x5b85ca(0x194)]&&this[_0x5b85ca(0x194)][_0x5b85ca(0x185)][_0x5b85ca(0x1a1)](),this[_0x5b85ca(0x175)]&&this[_0x5b85ca(0x175)][_0x5b85ca(0x15c)](),this[_0x5b85ca(0x194)]=this[_0x5b85ca(0x175)]=void 0x0;}}
|