@ckeditor/ckeditor5-ai 47.3.0-alpha.3 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.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/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0xaeca37=_0x4c9d;function _0x4c9d(_0x444775,_0x5d180f){const _0x4000b6=_0x4000();return _0x4c9d=function(_0x4c9dc3,_0x28ee1e){_0x4c9dc3=_0x4c9dc3-0x7e;let _0x2ff1e7=_0x4000b6[_0x4c9dc3];return _0x2ff1e7;},_0x4c9d(_0x444775,_0x5d180f);}(function(_0x48e511,_0x50b7d5){const _0x348d2c=_0x4c9d,_0x3fdd61=_0x48e511();while(!![]){try{const _0x5ea4c8=-parseInt(_0x348d2c(0x89))/0x1+parseInt(_0x348d2c(0x7e))/0x2+parseInt(_0x348d2c(0x98))/0x3*(-parseInt(_0x348d2c(0xc2))/0x4)+-parseInt(_0x348d2c(0xb8))/0x5+parseInt(_0x348d2c(0x90))/0x6+-parseInt(_0x348d2c(0xc6))/0x7*(parseInt(_0x348d2c(0xd1))/0x8)+parseInt(_0x348d2c(0xb6))/0x9;if(_0x5ea4c8===_0x50b7d5)break;else _0x3fdd61['push'](_0x3fdd61['shift']());}catch(_0x135785){_0x3fdd61['push'](_0x3fdd61['shift']());}}}(_0x4000,0x9b033));import{ListItemView as _0x2af3af,HighlightedTextView as _0x4146a2,ButtonView as _0x4f1d49,ListView as _0x22d302,IconView as _0xf5bab7,createDropdown as _0x458fea,InputTextView as _0x324671}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x182e5f,IconPin as _0x473ff4,IconCheck as _0x1a36c5,IconCancel as _0x44de2f}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x4b55fd,ConfirmMixin as _0x9e9f92}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4000(){const _0x175c7a=['Enter','AI_CHAT_HISTORY_ACCEPT','editConversationTitle','children','2420202YWRIvi','setTemplate','pinned','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_LOADING_UNPINNING','showConfirm','updateTitle','ck-ai-chat-history__item','clear','_createEditInputView','tiny','1058738paBxAp','AI_CHAT_HISTORY_CANCEL','click','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-row','key','4092432GAhQNC','panelPosition','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','LOADING_LABELS','createCollection','string','ck-ai-chat-history__item-main-content','add','1859223eqwUpn','AI_CHAT_HISTORY_REMOVE','match','AI_CHAT_HISTORY_REMOVE_CONFIRM','value','isEdit','isOn','_titleView','_createCancelEditButtonView','extendTemplate','ck-ai-chat-history__item-check','_createPinButtonView','ck-ai-chat-history__item-title','bindTemplate','label','updateLoadingState','ck-ai-chat-history__item-date','_createCheckView','_createAcceptEditButtonView','change:isEdit','ck-ai-chat-history__item-content','mainContent','_createMenuDropdownView','AI_CHAT_HISTORY_LOADING_REMOVING','panelView','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-loader','buttonView','setConversationPinned','highlightText','15242112QayQye','locale','2205930znyeyd','execute','_createSpinnerView','ck-ai-loader__text','ck-ai-chat-history__item--active','text','isMatching','focus','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item--edit','4GLVpkg','addMany','loadingState','ck-hidden','1163603KkTkpY','isVisible','fire','items','ck-confirm-view-submit','div','span','edit:cancel','selectConversation','bind','_commitEditInputValue','40JigrVu','element','listitem','withText','removeConversation','ck-confirm-view-cancel','then','ck-ai-chat-history__item-check-container','set','actions'];_0x4000=function(){return _0x175c7a;};return _0x4000();}import{escape as _0x3a3df9}from'es-toolkit/compat';import{AISpinnerView as _0x44e26e}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x224c49}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x9e9f92(_0x2af3af){['id'];static [_0xaeca37(0x93)]={'remove':_0xaeca37(0xaf),'rename':_0xaeca37(0x8d),'pin':_0xaeca37(0x81),'unpin':_0xaeca37(0x82)};[_0xaeca37(0xda)];[_0xaeca37(0xad)];[_0xaeca37(0x9f)];constructor(_0x12c027,_0x433b9e){const _0x5a84c6=_0xaeca37;super(_0x12c027);const _0x2fc88f=this[_0x5a84c6(0xa5)];this[_0x5a84c6(0xd9)](_0x5a84c6(0x9d),!0x1),this[_0x5a84c6(0xd9)](_0x5a84c6(0xc7),!0x0),this[_0x5a84c6(0xd9)](_0x5a84c6(0x80),!!_0x433b9e[_0x5a84c6(0x80)]),this[_0x5a84c6(0xd9)](_0x5a84c6(0xc4),null),this['id']=_0x433b9e['id'];const {title:_0x2562c1,createdAt:_0x581820,active:_0x503e9a=!0x1}=_0x433b9e;this[_0x5a84c6(0x9f)]=new _0x4146a2(),this[_0x5a84c6(0x9f)][_0x5a84c6(0xbd)]=_0x2562c1,this[_0x5a84c6(0x9f)][_0x5a84c6(0xa1)]({'attributes':{'class':[_0x5a84c6(0xa4)]}});const _0x271dc8=this[_0x5a84c6(0xa9)](),_0x35f624=this[_0x5a84c6(0xa3)](_0x12c027),_0xd64351=this[_0x5a84c6(0xae)](),_0x10c9d7=this[_0x5a84c6(0x87)](_0x12c027,_0x2562c1),_0x1feb67=this[_0x5a84c6(0xaa)](_0x12c027,_0x10c9d7),_0x116bc8=this[_0x5a84c6(0xa0)](_0x12c027,_0x10c9d7);this[_0x5a84c6(0xda)]=this[_0x5a84c6(0x94)](),this[_0x5a84c6(0xad)]=this[_0x5a84c6(0x94)](),this[_0x5a84c6(0xad)][_0x5a84c6(0x97)](this[_0x5a84c6(0x9f)]),this[_0x5a84c6(0xda)][_0x5a84c6(0x97)](_0x35f624),this[_0x5a84c6(0xda)][_0x5a84c6(0x97)](_0xd64351),this['on'](_0x5a84c6(0xab),(_0x3bfc8f,_0x2dd3e8,_0x44ff95)=>{const _0x58baa4=_0x5a84c6;this[_0x58baa4(0xda)][_0x58baa4(0x86)](),this[_0x58baa4(0xad)][_0x58baa4(0x86)](),_0x44ff95?(this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0x1feb67),this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0x116bc8),this[_0x58baa4(0xad)][_0x58baa4(0x97)](_0x10c9d7),_0x10c9d7[_0x58baa4(0xd2)][_0x58baa4(0xbf)]()):(this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0x35f624),this[_0x58baa4(0xda)][_0x58baa4(0x97)](_0xd64351),this[_0x58baa4(0xad)][_0x58baa4(0x97)](this[_0x58baa4(0x9f)]));}),this[_0x5a84c6(0x7f)]({'tag':'li','attributes':{'class':[_0x5a84c6(0x85),_0x503e9a?_0x5a84c6(0xbc):'',_0x2fc88f['if'](_0x5a84c6(0xc7),_0x5a84c6(0xc5),_0x2c5a58=>!_0x2c5a58),_0x2fc88f['if'](_0x5a84c6(0x9d),_0x5a84c6(0xc1))],'role':_0x5a84c6(0xd3)},'children':[{'tag':_0x5a84c6(0xcc),'attributes':{'class':[_0x5a84c6(0xd8)]},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xa2),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0xbdfa00=>!!_0xbdfa00)]},'children':_0x503e9a?[_0x271dc8]:[]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xb2),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0x28aa49=>!_0x28aa49)]},'children':[this[_0x5a84c6(0xba)]()]}]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0x8e)]},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xac)]},'on':{'click':this[_0x5a84c6(0xa5)]['to'](_0x5a84c6(0x8b))},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0x96)]},'children':[{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xa4),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0x20e69c=>!!_0x20e69c)]},'children':this[_0x5a84c6(0xad)]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0xbb),_0x2fc88f['if'](_0x5a84c6(0xc4),_0x5a84c6(0xc5),_0x54085e=>!_0x54085e)]},'children':[{'text':_0x2fc88f['to'](_0x5a84c6(0xc4),_0x21e02a=>_0x21e02a?_0x224c49(this[_0x5a84c6(0xb7)],AIChatHistoryListItemView[_0x5a84c6(0x93)][_0x21e02a]):'')}]}]},{'tag':_0x5a84c6(0xcc),'attributes':{'class':[_0x5a84c6(0xa8)]},'children':[_0x581820]}]},{'tag':_0x5a84c6(0xcb),'attributes':{'class':[_0x5a84c6(0x8c)]},'children':this[_0x5a84c6(0xda)]}]}]}),this['on'](_0x5a84c6(0x8b),()=>{const _0xdfcef4=_0x5a84c6;this[_0xdfcef4(0x9d)]||this[_0xdfcef4(0xc8)](_0xdfcef4(0xce),{'id':this['id']});});}[_0xaeca37(0x84)](_0x2c5be3){const _0x4b52f5=_0xaeca37;this[_0x4b52f5(0x9f)][_0x4b52f5(0xbd)]=_0x3a3df9(_0x2c5be3);}[_0xaeca37(0xa7)](_0x5eb7d1,_0x4aaa6a){const _0x7e5c1c=_0xaeca37;this[_0x7e5c1c(0xd9)](_0x7e5c1c(0xc4),_0x4aaa6a?_0x5eb7d1:null);}[_0xaeca37(0xa9)](){const _0x139f19=_0xaeca37,_0x5c0f00=new _0xf5bab7();return _0x5c0f00[_0x139f19(0xd9)]({'content':_0x1a36c5}),_0x5c0f00;}[_0xaeca37(0xa3)](_0x50541c){const _0xe9d832=_0xaeca37,_0x23e8e1=new _0x4f1d49(_0x50541c);return _0x23e8e1[_0xe9d832(0xd9)]({'label':_0x224c49(_0x50541c,_0xe9d832(0xb1)),'icon':_0x473ff4,'withText':!0x1,'tooltip':!0x0}),_0x23e8e1[_0xe9d832(0xcf)](_0xe9d832(0x9e))['to'](this,_0xe9d832(0x80)),_0x23e8e1['on'](_0xe9d832(0xb9),()=>{const _0x303559=_0xe9d832,_0x202a7a=!this[_0x303559(0x80)];this[_0x303559(0xc8)](_0x303559(0xb4),{'id':this['id'],'pinned':_0x202a7a});}),_0x23e8e1;}[_0xaeca37(0xae)](){const _0x2d19f5=_0xaeca37,_0x2fc5be=_0x458fea(this[_0x2d19f5(0xb7)],_0x4b55fd),_0x1adf50=_0x2fc5be[_0x2d19f5(0xb0)][_0x2d19f5(0xde)];_0x2fc5be[_0x2d19f5(0xb3)][_0x2d19f5(0xd9)]({'label':_0x224c49(this[_0x2d19f5(0xb7)],_0x2d19f5(0x92)),'icon':_0x182e5f}),_0x2fc5be[_0x2d19f5(0x91)]='sw';const _0x576ab7=new _0x4f1d49(this[_0x2d19f5(0xb7)]);_0x576ab7[_0x2d19f5(0xa6)]=_0x224c49(this[_0x2d19f5(0xb7)],_0x2d19f5(0xc0)),_0x576ab7[_0x2d19f5(0xd4)]=!0x0,_0x576ab7['on'](_0x2d19f5(0xb9),()=>{const _0x475eaf=_0x2d19f5;this[_0x475eaf(0x9d)]=!0x0;});const _0x51ff9d=new _0x4f1d49(this[_0x2d19f5(0xb7)]);_0x51ff9d[_0x2d19f5(0xa6)]=_0x224c49(this[_0x2d19f5(0xb7)],_0x2d19f5(0x99)),_0x51ff9d[_0x2d19f5(0xd4)]=!0x0,_0x51ff9d['on'](_0x2d19f5(0xb9),()=>{const _0x3aa3d1=_0x2d19f5;this[_0x3aa3d1(0x83)](_0x224c49(this[_0x3aa3d1(0xb7)],_0x3aa3d1(0x9b)),this[_0x3aa3d1(0xd2)])[_0x3aa3d1(0xd7)](()=>{const _0x566470=_0x3aa3d1;this[_0x566470(0xc8)](_0x566470(0xd5),{'id':this['id']});});});const _0x2f2f34=new _0x22d302(this[_0x2d19f5(0xb7)]),_0x257aca=new _0x2af3af(this[_0x2d19f5(0xb7)]);_0x257aca[_0x2d19f5(0xde)][_0x2d19f5(0x97)](_0x576ab7);const _0x31eee2=new _0x2af3af(this[_0x2d19f5(0xb7)]);return _0x31eee2[_0x2d19f5(0xde)][_0x2d19f5(0x97)](_0x51ff9d),_0x2f2f34[_0x2d19f5(0xc9)][_0x2d19f5(0xc3)]([_0x257aca,_0x31eee2]),_0x1adf50[_0x2d19f5(0x97)](_0x2f2f34),_0x2fc5be;}[_0xaeca37(0x87)](_0x335e0a,_0x12982e){const _0x4e63a9=_0xaeca37,_0x1d8841=new _0x324671(_0x335e0a),_0x5a20de=_0x1d8841[_0x4e63a9(0xa5)];return _0x1d8841[_0x4e63a9(0x9c)]=_0x12982e,_0x1d8841[_0x4e63a9(0xa1)]({'on':{'keydown':_0x5a20de['to'](_0x45524f=>{const _0x43ef79=_0x4e63a9;_0x43ef79(0xdb)==_0x45524f[_0x43ef79(0x8f)]&&this[_0x43ef79(0xd0)](_0x1d8841);})}}),_0x1d8841;}[_0xaeca37(0xaa)](_0x3d50f9,_0x2bf232){const _0x1bf88e=_0xaeca37,_0x5b987d=new _0x4f1d49(_0x3d50f9);return _0x5b987d[_0x1bf88e(0xd9)]({'icon':_0x1a36c5,'withText':!0x1,'tooltip':_0x224c49(_0x3d50f9,_0x1bf88e(0xdc))}),_0x5b987d[_0x1bf88e(0xa1)]({'attributes':{'class':[_0x1bf88e(0xca)]}}),_0x5b987d['on'](_0x1bf88e(0xb9),()=>{const _0x39b939=_0x1bf88e;this[_0x39b939(0xd0)](_0x2bf232);}),_0x5b987d;}[_0xaeca37(0xd0)](_0x262542){const _0x559f8f=_0xaeca37,_0x1fe4ab=_0x262542[_0x559f8f(0xd2)][_0x559f8f(0x9c)]||'';this[_0x559f8f(0x9f)][_0x559f8f(0xbd)]=_0x1fe4ab,this[_0x559f8f(0x9d)]=!0x1,this[_0x559f8f(0xc8)](_0x559f8f(0xdd),{'id':this['id'],'title':_0x1fe4ab});}[_0xaeca37(0xa0)](_0x3249d7,_0x25f80e){const _0x122d07=_0xaeca37,_0x30e464=new _0x4f1d49(_0x3249d7);return _0x30e464[_0x122d07(0xd9)]({'icon':_0x44de2f,'withText':!0x1,'tooltip':_0x224c49(_0x3249d7,_0x122d07(0x8a))}),_0x30e464[_0x122d07(0xa1)]({'attributes':{'class':[_0x122d07(0xd6)]}}),_0x30e464['on'](_0x122d07(0xb9),()=>{const _0x4bd898=_0x122d07;this[_0x4bd898(0x9d)]=!0x1,_0x25f80e[_0x4bd898(0x9c)]=this[_0x4bd898(0x9f)][_0x4bd898(0xbd)]||'',this[_0x4bd898(0xc8)](_0x4bd898(0xcd));}),_0x30e464;}[_0xaeca37(0xba)](){const _0x2f0593=_0xaeca37,_0x173b5a=new _0x44e26e(_0x2f0593(0x88));return _0x173b5a[_0x2f0593(0xc7)]=!0x0,_0x173b5a;}[_0xaeca37(0xbe)](_0x5787b0){const _0x3418d0=_0xaeca37;return this[_0x3418d0(0x9f)]&&_0x3418d0(0x95)==typeof this[_0x3418d0(0x9f)][_0x3418d0(0xbd)]&&this[_0x3418d0(0x9f)][_0x3418d0(0xbd)][_0x3418d0(0x9a)](_0x5787b0)?{'title':!0x0}:null;}[_0xaeca37(0xb5)](_0x2af052){const _0x4722e=_0xaeca37;this[_0x4722e(0x9f)][_0x4722e(0xb5)](_0x2af052);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x500e(_0x4d1693,_0x538e6d){const _0x198b05=_0x198b();return _0x500e=function(_0x500ef1,_0x40650d){_0x500ef1=_0x500ef1-0x147;let _0x5b5234=_0x198b05[_0x500ef1];return _0x5b5234;},_0x500e(_0x4d1693,_0x538e6d);}const _0x51524b=_0x500e;(function(_0x26096e,_0xcc0b65){const _0x2850fd=_0x500e,_0x470c96=_0x26096e();while(!![]){try{const _0x4fc39f=-parseInt(_0x2850fd(0x150))/0x1*(parseInt(_0x2850fd(0x154))/0x2)+-parseInt(_0x2850fd(0x15a))/0x3*(parseInt(_0x2850fd(0x14c))/0x4)+-parseInt(_0x2850fd(0x15c))/0x5*(parseInt(_0x2850fd(0x147))/0x6)+parseInt(_0x2850fd(0x149))/0x7*(parseInt(_0x2850fd(0x14d))/0x8)+-parseInt(_0x2850fd(0x15b))/0x9+parseInt(_0x2850fd(0x160))/0xa+parseInt(_0x2850fd(0x163))/0xb;if(_0x4fc39f===_0xcc0b65)break;else _0x470c96['push'](_0x470c96['shift']());}catch(_0x5885a9){_0x470c96['push'](_0x470c96['shift']());}}}(_0x198b,0x1ff70));import{ListItemView as _0x161101,View as _0x19020e,ListView as _0x1fa0e8}from'ckeditor5/src/ui.js';function _0x198b(){const _0x1df045=['1434537cubVWL','5iUJbzF','indexOf','ck-ai-chat-history__section-title','set','826320qKzzJJ','removeItem','bindTemplate','5792336GqJtNO','highlightText','find','isVisible','filter','addMany','1461342xRFYxs','remove','431165TcFrVu','length','isMatching','4HRFquP','8qRmEbk','ck-hidden','itemsViews','4552FDNULi','setTemplate','getItem','splice','32jQmMSH','title','_itemsListView','ck-ai-chat-history__section','items','div','192279Rvntbb'];_0x198b=function(){return _0x1df045;};return _0x198b();}export class AIChatHistoryListView extends _0x161101{[_0x51524b(0x155)];[_0x51524b(0x14f)];[_0x51524b(0x156)];constructor(_0x41ac64,{title:_0xf08aac,items:_0xc96c69}){const _0x4a5fba=_0x51524b;super(_0x41ac64);const _0x5a81b0=this[_0x4a5fba(0x162)];this[_0x4a5fba(0x15f)](_0x4a5fba(0x166),!0x0),this[_0x4a5fba(0x155)]=_0xf08aac,this[_0x4a5fba(0x14f)]=_0xc96c69;const _0x2eee48=new _0x19020e(_0x41ac64);_0x2eee48[_0x4a5fba(0x151)]({'tag':_0x4a5fba(0x159),'attributes':{'class':[_0x4a5fba(0x15e)]},'children':[this[_0x4a5fba(0x155)]]}),this[_0x4a5fba(0x156)]=new _0x1fa0e8(_0x41ac64),this[_0x4a5fba(0x156)][_0x4a5fba(0x158)][_0x4a5fba(0x168)](this[_0x4a5fba(0x14f)]),this[_0x4a5fba(0x151)]({'tag':'li','attributes':{'class':[_0x4a5fba(0x157),_0x5a81b0['if'](_0x4a5fba(0x166),_0x4a5fba(0x14e),_0x1d0ad0=>!_0x1d0ad0)]},'children':[_0x2eee48,this[_0x4a5fba(0x156)]]});}[_0x51524b(0x167)](_0x470aef){const _0x43ae72=_0x51524b,_0x476d29=this[_0x43ae72(0x14f)][_0x43ae72(0x14a)];let _0x41fa30=0x0;for(const _0x1ed1f0 of this[_0x43ae72(0x14f)]){if(_0x470aef){const _0x2dcd7a=_0x1ed1f0[_0x43ae72(0x14b)](_0x470aef);_0x1ed1f0[_0x43ae72(0x166)]=!!_0x2dcd7a,_0x1ed1f0[_0x43ae72(0x164)](_0x470aef);}else _0x1ed1f0[_0x43ae72(0x166)]=!0x0,_0x1ed1f0[_0x43ae72(0x164)](null);_0x1ed1f0[_0x43ae72(0x166)]&&_0x41fa30++;}return this[_0x43ae72(0x166)]=_0x41fa30>0x0,{'resultsCount':_0x41fa30,'totalItemsCount':_0x476d29};}[_0x51524b(0x152)](_0xaed28){const _0x3c60d5=_0x51524b;return this[_0x3c60d5(0x14f)][_0x3c60d5(0x165)](_0x19b923=>_0x19b923['id']===_0xaed28);}[_0x51524b(0x161)](_0x1a8ec5){const _0xe0294d=_0x51524b,_0x2a855c=this[_0xe0294d(0x14f)][_0xe0294d(0x15d)](_0x1a8ec5);-0x1!==_0x2a855c&&(this[_0xe0294d(0x14f)][_0xe0294d(0x153)](_0x2a855c,0x1),this[_0xe0294d(0x156)][_0xe0294d(0x158)][_0xe0294d(0x148)](_0x1a8ec5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x50a9b6=_0x18ba;(function(_0x49fc3d,_0x38fe8c){const _0x434b56=_0x18ba,_0x54c74e=_0x49fc3d();while(!![]){try{const _0x2cfd8a=-parseInt(_0x434b56(0x1ad))/0x1*(parseInt(_0x434b56(0x197))/0x2)+parseInt(_0x434b56(0x19e))/0x3+parseInt(_0x434b56(0x16d))/0x4+-parseInt(_0x434b56(0x190))/0x5+parseInt(_0x434b56(0x196))/0x6+-parseInt(_0x434b56(0x164))/0x7+parseInt(_0x434b56(0x18a))/0x8;if(_0x2cfd8a===_0x38fe8c)break;else _0x54c74e['push'](_0x54c74e['shift']());}catch(_0x15f593){_0x54c74e['push'](_0x54c74e['shift']());}}}(_0x470e,0x447c7));import{View as _0x2e48c5,SearchTextView as _0x431960,FormHeaderView as _0x15d32c,ButtonView as _0x49b2b0}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3ecfe6,IconCancel as _0x2bc25e,IconPlus as _0x4fe8e6}from'ckeditor5/src/icons.js';function _0x470e(){const _0xd7720e=['searchView','_createErrorView','_createSearchView','144464DKCcZa','change:hasItems','getItem','isMaximized','children','addMany','2360540iDhDcE','updateItemLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','openChat','sectionsView','updateLoadingState','1849020cyJBNW','4uHisrF','value','render','change:errorMessage','ck-rounded-corners','itemsViews','isSearchViewVisible','597423fESHXd','add','isEmptyViewVisible','_refreshSearch','indexOf','isMainErrorViewVisible','resizeButton','execute','setTemplate','ck-ai-chat-history','set','_createSkeletonView','ck-ai-chat__start-conversation','ck-ai-notification_error','bindTemplate','5296kYFjwE','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__content','fire','aiHistory','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_LABEL','removeItem','skeletonView','remove','change:isLoading','ck-ai-notification_error__dismiss-button','splice','bind','updateHistoryItemsWithCategories','errorMessage','length','2148825hoAVhz','ck-hidden','some','title','ltr','updateTitle','_updateViewVisibility','isVisible','extendTemplate','2179300idiaKh','removeHistoryItem','ck-ai-notification','sections','_createEmptyStateView','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history__empty','locale','AI_CHAT_LABEL_NEW_CHAT','queryView','mainErrorView','delegate','clear','items','ck-reset_all','updateItemTitle','ck-ai-chat-history__empty-message','div','emptyView','push','element','isLoading','search','fieldView','_createListItemViews','hasItems'];_0x470e=function(){return _0xd7720e;};return _0x470e();}import{AIChatHistorySectionListView as _0x3bc6a6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x229c06}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x517fc1}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5baa29}from'../aichathistoryui.js';import{AISkeletonView as _0x273ba4,SKELETON_DEFINITIONS as _0x3cb277}from'../../aicore/ui/aiskeleton.js';function _0x18ba(_0x2ca29f,_0x35451a){const _0x470e6c=_0x470e();return _0x18ba=function(_0x18ba26,_0x146ed4){_0x18ba26=_0x18ba26-0x157;let _0x9f250c=_0x470e6c[_0x18ba26];return _0x9f250c;},_0x18ba(_0x2ca29f,_0x35451a);}import{createResizeButton as _0x279e1a}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x12d9fa}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2e48c5{[_0x50a9b6(0x187)];[_0x50a9b6(0x177)];[_0x50a9b6(0x15b)];[_0x50a9b6(0x17f)];[_0x50a9b6(0x194)];[_0x50a9b6(0x1a4)];constructor(_0x3f9370,_0x59fc57){const _0x477f18=_0x50a9b6;super(_0x3f9370),this[_0x477f18(0x1a8)](_0x477f18(0x186),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x182),!0x0),this[_0x477f18(0x1a8)](_0x477f18(0x162),''),this[_0x477f18(0x1a8)](_0x477f18(0x18d),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x19d),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x1a0),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x1a3),!0x1);const _0x33cb5b=new _0x15d32c(_0x3f9370,{'label':_0x12d9fa(_0x3f9370,_0x477f18(0x1ae)),'icon':_0x3ecfe6,'class':_0x477f18(0x172)});_0x59fc57&&(this[_0x477f18(0x1a4)]=_0x279e1a(_0x3f9370,this),_0x33cb5b[_0x477f18(0x18e)][_0x477f18(0x19f)](this[_0x477f18(0x1a4)])),this[_0x477f18(0x194)]=new _0x3bc6a6(_0x3f9370,[]),this[_0x477f18(0x194)][_0x477f18(0x178)](..._0x5baa29)['to'](this),this[_0x477f18(0x177)]=this[_0x477f18(0x188)](),this[_0x477f18(0x15b)]=this[_0x477f18(0x1a9)](),this[_0x477f18(0x17f)]=this[_0x477f18(0x171)](),this[_0x477f18(0x187)]=this[_0x477f18(0x189)](),this[_0x477f18(0x177)][_0x477f18(0x16c)]({'attributes':{'class':[this[_0x477f18(0x1ac)]['if'](_0x477f18(0x1a3),_0x477f18(0x165),_0x59fe80=>!_0x59fe80)]}}),this['on'](_0x477f18(0x15d),()=>this[_0x477f18(0x16a)]()),this['on'](_0x477f18(0x18b),()=>this[_0x477f18(0x16a)]()),this['on'](_0x477f18(0x19a),()=>this[_0x477f18(0x16a)]()),this[_0x477f18(0x1a6)]({'tag':_0x477f18(0x17e),'attributes':{'class':['ck',_0x477f18(0x17b),_0x477f18(0x1a7),_0x477f18(0x19b)],'dir':_0x477f18(0x168)},'children':[_0x33cb5b,{'tag':_0x477f18(0x17e),'attributes':{'class':[_0x477f18(0x1b0)]},'children':[this[_0x477f18(0x15b)],this[_0x477f18(0x177)],this[_0x477f18(0x17f)],this[_0x477f18(0x187)]]}]});}[_0x50a9b6(0x16a)](){const _0x22f86b=_0x50a9b6;this[_0x22f86b(0x19d)]=!this[_0x22f86b(0x182)]&&this[_0x22f86b(0x186)],this[_0x22f86b(0x1a0)]=!this[_0x22f86b(0x182)]&&!this[_0x22f86b(0x186)]&&!this[_0x22f86b(0x162)],this[_0x22f86b(0x1a3)]=!this[_0x22f86b(0x19d)]&&!!this[_0x22f86b(0x162)];}[_0x50a9b6(0x189)](){const _0x45a099=_0x50a9b6,_0x4a310e=new _0x431960(this[_0x45a099(0x174)],{'filteredView':this[_0x45a099(0x194)],'queryView':{'label':_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x159))},'infoView':{'text':{'notFound':{'primary':_0x3b7f37=>_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x192),_0x3b7f37),'secondary':_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x158))}}}}),_0x3b2fb3=this[_0x45a099(0x188)]();return _0x3b2fb3[_0x45a099(0x16c)]({'attributes':{'class':[this[_0x45a099(0x1ac)]['if'](_0x45a099(0x162),_0x45a099(0x165),_0x263205=>!_0x263205)]}}),_0x4a310e['on'](_0x45a099(0x199),()=>{const _0x2beaee=_0x45a099;_0x4a310e[_0x2beaee(0x18e)][_0x2beaee(0x19f)](_0x3b2fb3,0x1);}),_0x4a310e[_0x45a099(0x16c)]({'attributes':{'class':[this[_0x45a099(0x1ac)]['if'](_0x45a099(0x19d),_0x45a099(0x165),_0x51301b=>!_0x51301b)]}}),_0x4a310e;}[_0x50a9b6(0x1a9)](){const _0x40e67c=_0x50a9b6,_0x360c85=new _0x273ba4(this[_0x40e67c(0x174)],_0x3cb277[_0x40e67c(0x157)]);return _0x360c85[_0x40e67c(0x16c)]({'attributes':{'class':[this[_0x40e67c(0x1ac)]['if'](_0x40e67c(0x182),_0x40e67c(0x165),_0x414cd7=>!_0x414cd7)]}}),_0x360c85;}[_0x50a9b6(0x188)](){const _0x1c5394=_0x50a9b6,_0x1c5324=new _0x2e48c5(this[_0x1c5394(0x174)]),_0x502ace=new _0x49b2b0(this[_0x1c5394(0x174)]);_0x502ace[_0x1c5394(0x1a8)]({'withText':!0x1,'icon':_0x2bc25e,'class':_0x1c5394(0x15e)}),_0x502ace[_0x1c5394(0x160)](_0x1c5394(0x16b))['to'](this,_0x1c5394(0x186),_0x2f4b06=>!!_0x2f4b06),_0x502ace['on'](_0x1c5394(0x1a5),()=>{const _0x31ea5c=_0x1c5394;this[_0x31ea5c(0x162)]='';});const _0x1fd288=this[_0x1c5394(0x1ac)];return _0x1c5324[_0x1c5394(0x1a6)]({'tag':_0x1c5394(0x17e),'attributes':{'class':['ck',_0x1c5394(0x16f),_0x1c5394(0x1ab)]},'children':[{'tag':'p','children':[{'text':_0x1fd288['to'](_0x1c5394(0x162))}]},_0x502ace]}),_0x1c5324;}[_0x50a9b6(0x171)](){const _0x9310a2=_0x50a9b6,_0x5cd263=new _0x49b2b0(this[_0x9310a2(0x174)]);_0x5cd263[_0x9310a2(0x1a8)]({'label':_0x12d9fa(this[_0x9310a2(0x174)],_0x9310a2(0x175)),'withText':!0x0,'icon':_0x4fe8e6,'class':_0x9310a2(0x1aa)}),_0x5cd263['on'](_0x9310a2(0x1a5),()=>{const _0x26c294=_0x9310a2;this[_0x26c294(0x1b1)](_0x26c294(0x193));});const _0x1fb7d1=new _0x2e48c5(this[_0x9310a2(0x174)]);return _0x1fb7d1[_0x9310a2(0x1a6)]({'tag':_0x9310a2(0x17e),'attributes':{'class':[_0x9310a2(0x173),this[_0x9310a2(0x1ac)]['if'](_0x9310a2(0x1a0),_0x9310a2(0x165),_0x475ce1=>!_0x475ce1)]},'children':[{'tag':'p','attributes':{'class':[_0x9310a2(0x17d)]},'children':[_0x12d9fa(this[_0x9310a2(0x174)],_0x9310a2(0x1af))]},_0x5cd263]}),_0x1fb7d1;}[_0x50a9b6(0x185)](_0x18c565,_0xa3c028){const _0x36ab58=_0x50a9b6,_0x15f79a=[];for(const _0x37996a of _0x18c565){const _0x25780f=new _0x517fc1(_0xa3c028,_0x37996a);_0x25780f[_0x36ab58(0x178)](..._0x5baa29)['to'](this),_0x15f79a[_0x36ab58(0x180)](_0x25780f);}return _0x15f79a;}[_0x50a9b6(0x161)](_0x1fad38){const _0x1b0f4f=_0x50a9b6,_0x2963f1=this[_0x1b0f4f(0x174)]||'en',_0x30b4ec=[];for(const _0x3a96ea of _0x1fad38){const _0xd85450=this[_0x1b0f4f(0x185)](_0x3a96ea[_0x1b0f4f(0x17a)],_0x2963f1);_0x30b4ec[_0x1b0f4f(0x180)](new _0x229c06(_0x2963f1,{'title':_0x3a96ea[_0x1b0f4f(0x167)],'items':_0xd85450}));}this[_0x1b0f4f(0x194)][_0x1b0f4f(0x170)]=_0x30b4ec,this[_0x1b0f4f(0x194)][_0x1b0f4f(0x17a)][_0x1b0f4f(0x179)](),this[_0x1b0f4f(0x194)][_0x1b0f4f(0x17a)][_0x1b0f4f(0x18f)](_0x30b4ec),this[_0x1b0f4f(0x186)]=_0x1fad38[_0x1b0f4f(0x166)](_0xcfe906=>_0xcfe906[_0x1b0f4f(0x17a)][_0x1b0f4f(0x163)]>0x0),this[_0x1b0f4f(0x1a1)]();}[_0x50a9b6(0x16e)](_0x1f8c33){const _0x2fa2b5=_0x50a9b6;for(const _0x233bbb of this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)]){const _0x2056dd=_0x233bbb[_0x2fa2b5(0x18c)](_0x1f8c33);if(_0x2056dd){if(_0x233bbb[_0x2fa2b5(0x15a)](_0x2056dd),0x0===_0x233bbb[_0x2fa2b5(0x19c)][_0x2fa2b5(0x163)]){const _0x2a42e6=this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x1a2)](_0x233bbb);-0x1!==_0x2a42e6&&(this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x15f)](_0x2a42e6,0x1),this[_0x2fa2b5(0x194)][_0x2fa2b5(0x17a)][_0x2fa2b5(0x15c)](_0x233bbb));}this[_0x2fa2b5(0x186)]=this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x163)]>0x0,this[_0x2fa2b5(0x1a1)]();break;}}}[_0x50a9b6(0x17c)](_0x4e8a63,_0x35a022){const _0x7782a2=_0x50a9b6;for(const _0x2356ff of this[_0x7782a2(0x194)][_0x7782a2(0x170)]){const _0x1049a6=_0x2356ff[_0x7782a2(0x18c)](_0x4e8a63);if(_0x1049a6){_0x1049a6[_0x7782a2(0x169)](_0x35a022);break;}}}[_0x50a9b6(0x191)](_0x41c9e2,_0x1c3cba,_0x2dc957){const _0x505bc8=_0x50a9b6;for(const _0x4296e6 of this[_0x505bc8(0x194)][_0x505bc8(0x170)]){const _0x5b6a60=_0x4296e6[_0x505bc8(0x18c)](_0x41c9e2);if(_0x5b6a60){_0x5b6a60[_0x505bc8(0x195)](_0x1c3cba,_0x2dc957);break;}}}[_0x50a9b6(0x1a1)](){const _0x445655=_0x50a9b6;if(this[_0x445655(0x186)]){const _0x1b0ffd=this[_0x445655(0x187)][_0x445655(0x176)][_0x445655(0x184)]?.[_0x445655(0x181)]?.[_0x445655(0x198)]||'';this[_0x445655(0x187)][_0x445655(0x183)](_0x1b0ffd);}}}
|
|
23
|
+
const _0x35682a=_0x1e3e;function _0x1e3e(_0x58c697,_0x2f2b35){const _0x35bb69=_0x35bb();return _0x1e3e=function(_0x1e3eda,_0x1f6657){_0x1e3eda=_0x1e3eda-0x18f;let _0x393ef1=_0x35bb69[_0x1e3eda];return _0x393ef1;},_0x1e3e(_0x58c697,_0x2f2b35);}(function(_0x2d7e6b,_0x487256){const _0x450b9a=_0x1e3e,_0x29b960=_0x2d7e6b();while(!![]){try{const _0x195aa1=parseInt(_0x450b9a(0x1b1))/0x1+parseInt(_0x450b9a(0x1d6))/0x2*(parseInt(_0x450b9a(0x196))/0x3)+-parseInt(_0x450b9a(0x1ad))/0x4+-parseInt(_0x450b9a(0x1cb))/0x5*(parseInt(_0x450b9a(0x19c))/0x6)+parseInt(_0x450b9a(0x1a4))/0x7*(parseInt(_0x450b9a(0x1ac))/0x8)+parseInt(_0x450b9a(0x1d2))/0x9*(-parseInt(_0x450b9a(0x1ca))/0xa)+parseInt(_0x450b9a(0x1ba))/0xb;if(_0x195aa1===_0x487256)break;else _0x29b960['push'](_0x29b960['shift']());}catch(_0x456043){_0x29b960['push'](_0x29b960['shift']());}}}(_0x35bb,0xaefd8));import{View as _0x5d19a2,SearchTextView as _0x1a3940,FormHeaderView as _0x5a0b01,ButtonView as _0x195a13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x398e9d,IconCancel as _0x32e766,IconPlus as _0x29ab2b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1f86b4}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1b133f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x214e86}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2bcf33}from'../aichathistoryui.js';import{AISkeletonView as _0x28d6d2,SKELETON_DEFINITIONS as _0x3cb250}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2f4487}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x39be0d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5d19a2{[_0x35682a(0x1d0)];[_0x35682a(0x1e5)];[_0x35682a(0x199)];[_0x35682a(0x1a2)];[_0x35682a(0x1b5)];[_0x35682a(0x1a6)];constructor(_0x3ddd05,_0x5d2910){const _0x4c73a8=_0x35682a;super(_0x3ddd05),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1a5),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1aa),!0x0),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1b9),''),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x194),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1d4),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1e2),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1bc),!0x1);const _0x1a8a4d=new _0x5a0b01(_0x3ddd05,{'label':_0x39be0d(_0x3ddd05,_0x4c73a8(0x1d5)),'icon':_0x398e9d,'class':_0x4c73a8(0x192)});_0x5d2910&&(this[_0x4c73a8(0x1a6)]=_0x2f4487(_0x3ddd05,this),_0x1a8a4d[_0x4c73a8(0x1c8)][_0x4c73a8(0x1e3)](this[_0x4c73a8(0x1a6)])),this[_0x4c73a8(0x1b5)]=new _0x1f86b4(_0x3ddd05,[]),this[_0x4c73a8(0x1b5)][_0x4c73a8(0x1ec)](..._0x2bcf33)['to'](this),this[_0x4c73a8(0x1e5)]=this[_0x4c73a8(0x1c3)](),this[_0x4c73a8(0x199)]=this[_0x4c73a8(0x1b4)](),this[_0x4c73a8(0x1a2)]=this[_0x4c73a8(0x1e8)](),this[_0x4c73a8(0x1d0)]=this[_0x4c73a8(0x1c9)](),this[_0x4c73a8(0x1e5)][_0x4c73a8(0x1a7)]({'attributes':{'class':[this[_0x4c73a8(0x1bf)]['if'](_0x4c73a8(0x1bc),_0x4c73a8(0x190),_0x564fc9=>!_0x564fc9)]}}),this['on'](_0x4c73a8(0x1cc),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1a1),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1d9),()=>this[_0x4c73a8(0x1b3)]()),this[_0x4c73a8(0x1cf)]({'tag':_0x4c73a8(0x193),'attributes':{'class':['ck',_0x4c73a8(0x1c7),_0x4c73a8(0x1df),_0x4c73a8(0x1db)],'dir':_0x4c73a8(0x19e)},'children':[_0x1a8a4d,{'tag':_0x4c73a8(0x193),'attributes':{'class':[_0x4c73a8(0x191)]},'children':[this[_0x4c73a8(0x199)],this[_0x4c73a8(0x1e5)],this[_0x4c73a8(0x1a2)],this[_0x4c73a8(0x1d0)]]}]});}[_0x35682a(0x1b3)](){const _0xe147e0=_0x35682a;this[_0xe147e0(0x1d4)]=!this[_0xe147e0(0x1aa)]&&this[_0xe147e0(0x1a5)],this[_0xe147e0(0x1e2)]=!this[_0xe147e0(0x1aa)]&&!this[_0xe147e0(0x1a5)]&&!this[_0xe147e0(0x1b9)],this[_0xe147e0(0x1bc)]=!this[_0xe147e0(0x1d4)]&&!!this[_0xe147e0(0x1b9)];}[_0x35682a(0x1c9)](){const _0xd3fdac=_0x35682a,_0x3cc1be=new _0x1a3940(this[_0xd3fdac(0x1a8)],{'filteredView':this[_0xd3fdac(0x1b5)],'queryView':{'label':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x183057=>_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x19a),_0x183057),'secondary':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1af))}}}}),_0x2b0a8a=this[_0xd3fdac(0x1c3)]();return _0x2b0a8a[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1b9),_0xd3fdac(0x190),_0x1cff60=>!_0x1cff60)]}}),_0x3cc1be['on'](_0xd3fdac(0x198),()=>{const _0x54a5e9=_0xd3fdac;_0x3cc1be[_0x54a5e9(0x1c8)][_0x54a5e9(0x1e3)](_0x2b0a8a,0x1);}),_0x3cc1be[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1d4),_0xd3fdac(0x190),_0x4da3fe=>!_0x4da3fe)]}}),_0x3cc1be;}[_0x35682a(0x1b4)](){const _0x2ccd96=_0x35682a,_0x1a0573=new _0x28d6d2(this[_0x2ccd96(0x1a8)],_0x3cb250[_0x2ccd96(0x197)]);return _0x1a0573[_0x2ccd96(0x1a7)]({'attributes':{'class':[this[_0x2ccd96(0x1bf)]['if'](_0x2ccd96(0x1aa),_0x2ccd96(0x190),_0x5206b4=>!_0x5206b4)]}}),_0x1a0573;}[_0x35682a(0x1c3)](){const _0x4a0d30=_0x35682a,_0x144218=new _0x5d19a2(this[_0x4a0d30(0x1a8)]),_0x48b1eb=new _0x195a13(this[_0x4a0d30(0x1a8)]);_0x48b1eb[_0x4a0d30(0x1d8)]({'withText':!0x1,'icon':_0x32e766,'class':_0x4a0d30(0x1e1)}),_0x48b1eb[_0x4a0d30(0x1c4)](_0x4a0d30(0x1e9))['to'](this,_0x4a0d30(0x1a5),_0x56697b=>!!_0x56697b),_0x48b1eb['on'](_0x4a0d30(0x19b),()=>{const _0x64358e=_0x4a0d30;this[_0x64358e(0x1b9)]='';});const _0x103eaf=this[_0x4a0d30(0x1bf)];return _0x144218[_0x4a0d30(0x1cf)]({'tag':_0x4a0d30(0x193),'attributes':{'class':['ck',_0x4a0d30(0x1c0),_0x4a0d30(0x1b8)]},'children':[{'tag':'p','children':[{'text':_0x103eaf['to'](_0x4a0d30(0x1b9))}]},_0x48b1eb]}),_0x144218;}[_0x35682a(0x1e8)](){const _0x2a8555=_0x35682a,_0x27833b=new _0x195a13(this[_0x2a8555(0x1a8)]);_0x27833b[_0x2a8555(0x1d8)]({'label':_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1dc)),'withText':!0x0,'icon':_0x29ab2b,'class':_0x2a8555(0x195)}),_0x27833b['on'](_0x2a8555(0x19b),()=>{const _0x39dd69=_0x2a8555;this[_0x39dd69(0x1dd)](_0x39dd69(0x1b7));});const _0x3ae471=new _0x5d19a2(this[_0x2a8555(0x1a8)]);return _0x3ae471[_0x2a8555(0x1cf)]({'tag':_0x2a8555(0x193),'attributes':{'class':[_0x2a8555(0x1e7),this[_0x2a8555(0x1bf)]['if'](_0x2a8555(0x1e2),_0x2a8555(0x190),_0x4d7d90=>!_0x4d7d90)]},'children':[{'tag':'p','attributes':{'class':[_0x2a8555(0x1b2)]},'children':[_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1b0))]},_0x27833b]}),_0x3ae471;}[_0x35682a(0x1eb)](_0x4bf7f7,_0x4630da){const _0x4fa871=_0x35682a,_0x508b75=[];for(const _0x459425 of _0x4bf7f7){const _0x5054cb=new _0x214e86(_0x4630da,_0x459425);_0x5054cb[_0x4fa871(0x1ec)](..._0x2bcf33)['to'](this),_0x508b75[_0x4fa871(0x1a0)](_0x5054cb);}return _0x508b75;}[_0x35682a(0x1ea)](_0x344d7e){const _0x4d916d=_0x35682a,_0x5e065a=this[_0x4d916d(0x1a8)]||'en',_0x24066b=[];for(const _0x15c2cf of _0x344d7e){const _0x2f0135=this[_0x4d916d(0x1eb)](_0x15c2cf[_0x4d916d(0x1e6)],_0x5e065a);_0x24066b[_0x4d916d(0x1a0)](new _0x1b133f(_0x5e065a,{'title':_0x15c2cf[_0x4d916d(0x1da)],'items':_0x2f0135}));}this[_0x4d916d(0x1b5)][_0x4d916d(0x1a9)]=_0x24066b,this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x1bd)](),this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x19f)](_0x24066b),this[_0x4d916d(0x1a5)]=_0x344d7e[_0x4d916d(0x1c2)](_0x420759=>_0x420759[_0x4d916d(0x1e6)][_0x4d916d(0x19d)]>0x0),this[_0x4d916d(0x1d7)]();}[_0x35682a(0x1ce)](_0x576057){const _0x22f185=_0x35682a;for(const _0x532446 of this[_0x22f185(0x1b5)][_0x22f185(0x1a9)]){const _0x2fdc83=_0x532446[_0x22f185(0x1cd)](_0x576057);if(_0x2fdc83){if(_0x532446[_0x22f185(0x1ae)](_0x2fdc83),0x0===_0x532446[_0x22f185(0x1a3)][_0x22f185(0x19d)]){const _0x1262c8=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x18f)](_0x532446);-0x1!==_0x1262c8&&(this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x1bb)](_0x1262c8,0x1),this[_0x22f185(0x1b5)][_0x22f185(0x1e6)][_0x22f185(0x1c1)](_0x532446));}this[_0x22f185(0x1a5)]=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x19d)]>0x0,this[_0x22f185(0x1d7)]();break;}}}[_0x35682a(0x1d1)](_0xddce7b,_0x3082db){const _0x597696=_0x35682a;for(const _0x4781c7 of this[_0x597696(0x1b5)][_0x597696(0x1a9)]){const _0x2438f5=_0x4781c7[_0x597696(0x1cd)](_0xddce7b);if(_0x2438f5){_0x2438f5[_0x597696(0x1ab)](_0x3082db);break;}}}[_0x35682a(0x1d3)](_0x149fa7,_0x4d1a7a,_0x48cd39){const _0x5d4605=_0x35682a;for(const _0x46f8ed of this[_0x5d4605(0x1b5)][_0x5d4605(0x1a9)]){const _0x915d86=_0x46f8ed[_0x5d4605(0x1cd)](_0x149fa7);if(_0x915d86){_0x915d86[_0x5d4605(0x1e4)](_0x4d1a7a,_0x48cd39);break;}}}[_0x35682a(0x1d7)](){const _0x519ee2=_0x35682a;if(this[_0x519ee2(0x1a5)]){const _0x4367ee=this[_0x519ee2(0x1d0)][_0x519ee2(0x1c6)][_0x519ee2(0x1b6)]?.[_0x519ee2(0x1de)]?.[_0x519ee2(0x1e0)]||'';this[_0x519ee2(0x1d0)][_0x519ee2(0x1be)](_0x4367ee);}}}function _0x35bb(){const _0x1e082c=['AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_EMPTY_MESSAGE','328009nqnxTo','ck-ai-chat-history__empty-message','_updateViewVisibility','_createSkeletonView','sectionsView','fieldView','openChat','ck-ai-notification_error','errorMessage','1653322UqwBsQ','splice','isMainErrorViewVisible','clear','search','bindTemplate','ck-ai-notification','remove','some','_createErrorView','bind','AI_CHAT_HISTORY_SEARCH_LABEL','queryView','ck-reset_all','children','_createSearchView','10NPSznt','5wMPIQo','change:isLoading','getItem','removeHistoryItem','setTemplate','searchView','updateItemTitle','2131965yYNJlx','updateItemLoadingState','isSearchViewVisible','AI_CHAT_HISTORY_HEADING','16970kOjkGm','_refreshSearch','set','change:errorMessage','title','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','fire','element','ck-ai-chat-history','value','ck-ai-notification_error__dismiss-button','isEmptyViewVisible','add','updateLoadingState','mainErrorView','items','ck-ai-chat-history__empty','_createEmptyStateView','isVisible','updateHistoryItemsWithCategories','_createListItemViews','delegate','indexOf','ck-hidden','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','div','isMaximized','ck-ai-chat__start-conversation','402biRUyx','aiHistory','render','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','execute','4645002SQeXgJ','length','ltr','addMany','push','change:hasItems','emptyView','itemsViews','24227JWXUkn','hasItems','resizeButton','extendTemplate','locale','sections','isLoading','updateTitle','2696uBAoBL','4215384MHVYoT','removeItem'];_0x35bb=function(){return _0x1e082c;};return _0x35bb();}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xaa39(){const _0x10e980=['3330ofpGKB','_integrateEditor','1605747RvLnNY','getWalker','createRangeIn','processor','$textProxy','showFakeVisualSelection','isAtEnd','_nextDataId','_displayedFakeSelectionLocked','_getMarkersInDocumentOrder','2600028SrUaYy','containerElement','ready','markerToElement','6884tVhSuG','dataDowncast','removeMarker','convertAiChatSelectionMarker','join','name','399133wXZqGH','add','plugins','substring',':end>','hideFakeVisualSelection','1078316KMiQsR','toData','start','isAfter','floor','sort','isContent','setAttribute',':end></','createUIElement','ck-fake-ai-selection','isPremiumPlugin','data-id','pluginName','_setDataIdsOnChildren','ai-selection:','createRange','listenTo','39uwNrbJ',':start></','push','isOpening','element','model','context','conversion','schema','ck-ai-assistant-ui_theme','getDocumentData','afterInit','RealTimeCollaborationClient','getSelection','version','_displayedFakeSelectionId','_sessionId','markers','getSelectedContent','getMarkersGroup','2000NnEqwo','markerToHighlight','random','getRoot',':start>','document','getChildren','isBefore','change','markerName','emptyElement','data','getSelectionText','isOfficialPlugin','fromCharCode','get','selection','length','view','toView','addMarker','for','ai-selection','getStart','indexOf','removeAllRanges','end','has','5ROAazS','getLastMatchingPosition','editingDowncast','4343031Ytcyjj','72vEagAH','trim','editors','modelToViewWithIds','from','sessionId','editing','AIEditing'];_0xaa39=function(){return _0x10e980;};return _0xaa39();}const _0x37249a=_0x3163;(function(_0x70f1ce,_0x4e4ed9){const _0x3ff9c2=_0x3163,_0x1cf815=_0x70f1ce();while(!![]){try{const _0x5a067d=-parseInt(_0x3ff9c2(0x143))/0x1*(parseInt(_0x3ff9c2(0x125))/0x2)+parseInt(_0x3ff9c2(0x117))/0x3+parseInt(_0x3ff9c2(0x131))/0x4*(-parseInt(_0x3ff9c2(0x109))/0x5)+parseInt(_0x3ff9c2(0x121))/0x6+-parseInt(_0x3ff9c2(0x12b))/0x7*(parseInt(_0x3ff9c2(0x10d))/0x8)+-parseInt(_0x3ff9c2(0x115))/0x9*(parseInt(_0x3ff9c2(0x157))/0xa)+parseInt(_0x3ff9c2(0x10c))/0xb;if(_0x5a067d===_0x4e4ed9)break;else _0x1cf815['push'](_0x1cf815['shift']());}catch(_0x56ef05){_0x1cf815['push'](_0x1cf815['shift']());}}}(_0xaa39,0x5aec4));import{ViewDowncastWriter as _0x1e80be}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x15d8b2,Editor as _0x24ef80}from'ckeditor5/src/core.js';import{uid as _0x4f17b1}from'ckeditor5/src/utils.js';function _0x3163(_0x1ad38e,_0x4e8ac2){const _0xaa395=_0xaa39();return _0x3163=function(_0x3163c3,_0x1cf69d){_0x3163c3=_0x3163c3-0xf1;let _0x29067b=_0xaa395[_0x3163c3];return _0x29067b;},_0x3163(_0x1ad38e,_0x4e8ac2);}import{getEditorFromContext as _0x1307c3}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x37249a(0x103);export class AIEditing extends _0x15d8b2{[_0x37249a(0x152)]=null;[_0x37249a(0x11f)]=!0x1;[_0x37249a(0x153)];static get[_0x37249a(0x13e)](){const _0x3a3696=_0x37249a;return _0x3a3696(0x114);}static get[_0x37249a(0xfa)](){return!0x0;}static get[_0x37249a(0x13c)](){return!0x0;}get[_0x37249a(0x112)](){const _0x44c35f=_0x37249a;if(!this[_0x44c35f(0x153)]){const _0x253489=_0x1307c3(this[_0x44c35f(0x149)]),_0x1f44bf=_0x253489[_0x44c35f(0x12d)][_0x44c35f(0x108)](_0x44c35f(0x14f))&&_0x253489[_0x44c35f(0x12d)][_0x44c35f(0xfc)](_0x44c35f(0x14f))[_0x44c35f(0x112)];this[_0x44c35f(0x153)]=_0x1f44bf||_0x4f17b1();}return this[_0x44c35f(0x153)];}[_0x37249a(0x14d)](){const _0x5de37b=_0x37249a,_0x2cfbde=_0x1307c3(this[_0x5de37b(0x149)]),_0x4b1196=_0x2cfbde[_0x5de37b(0x148)],_0x59beeb=_0x2cfbde[_0x5de37b(0xf8)][_0x5de37b(0x100)](_0x4b1196[_0x5de37b(0xf2)][_0x5de37b(0x15a)](),{'convertAiChatSelectionMarker':!0x0}),_0x264b5f=new _0x1e80be(_0x2cfbde[_0x5de37b(0x113)][_0x5de37b(0xff)][_0x5de37b(0xf2)]);this[_0x5de37b(0x13f)](_0x59beeb,_0x264b5f);let _0x88b391=_0x2cfbde[_0x5de37b(0xf8)][_0x5de37b(0x11a)][_0x5de37b(0x132)](_0x59beeb);const _0x1fd649=this[_0x5de37b(0x120)](),_0x3c8ff0=[];for(const _0x54686a of _0x1fd649){const _0x1503e7='<'+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0x144)+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0xf1),_0x510d56=_0x88b391[_0x5de37b(0x105)](_0x1503e7);_0x88b391=_0x88b391[_0x5de37b(0x12e)](0x0,_0x510d56)+_0x88b391[_0x5de37b(0x12e)](_0x510d56+_0x1503e7[_0x5de37b(0xfe)]);const _0xf8bf2a='<'+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0x139)+_0x54686a[_0x5de37b(0x12a)]+_0x5de37b(0x12f),_0xe45247=_0x88b391[_0x5de37b(0x105)](_0xf8bf2a);_0x88b391=_0x88b391[_0x5de37b(0x12e)](0x0,_0xe45247)+_0x88b391[_0x5de37b(0x12e)](_0xe45247+_0xf8bf2a[_0x5de37b(0xfe)]),_0x3c8ff0[_0x5de37b(0x145)]({'markerName':_0x54686a[_0x5de37b(0x12a)],'start':_0x510d56,'end':_0xe45247,'htmlFragment':_0x88b391[_0x5de37b(0x12e)](_0x510d56,_0xe45247)});}return{'content':_0x88b391,'version':_0x2cfbde[_0x5de37b(0x148)][_0x5de37b(0xf2)][_0x5de37b(0x151)],'sessionId':this[_0x5de37b(0x112)],'selections':_0x3c8ff0};}async[_0x37249a(0x14e)](){const _0x28dd34=_0x37249a;this[_0x28dd34(0x149)]instanceof _0x24ef80?this[_0x28dd34(0x116)](this[_0x28dd34(0x149)]):this[_0x28dd34(0x142)](this[_0x28dd34(0x149)][_0x28dd34(0x10f)],_0x28dd34(0x12c),(_0x5d2b6e,_0x43e797)=>{const _0x2e1340=_0x28dd34;_0x43e797['on'](_0x2e1340(0x123),()=>{const _0x2bff42=_0x2e1340;this[_0x2bff42(0x116)](_0x43e797);});});}[_0x37249a(0x116)](_0x4def86){const _0x123046=_0x37249a;_0x4def86[_0x123046(0x14a)][_0x123046(0x102)](_0x123046(0x10b))[_0x123046(0x158)]({'model':_0x123046(0x103),'view':{'classes':[_0x123046(0x13b),_0x123046(0x14c)],'priority':0xc}}),_0x4def86[_0x123046(0x14a)][_0x123046(0x102)](_0x123046(0x126))[_0x123046(0x124)]({'model':_0x123046(0x103),'view':(_0x302e4b,{writer:_0x24399a,options:_0x1cdaaa})=>_0x1cdaaa[_0x123046(0x128)]?_0x24399a[_0x123046(0x13a)](_0x302e4b[_0x123046(0xf6)]+':'+(_0x302e4b[_0x123046(0x146)]?_0x123046(0x133):_0x123046(0x107))):null});}[_0x37249a(0x11c)](_0xd48858,_0x262946,_0x4c0676=!0x1,_0x34ae81=!0x1){const _0x35ca1f=_0x37249a;if(this[_0x35ca1f(0x11f)]&&!_0x34ae81)return!0x1;const _0x1bb121=_0x1307c3(this[_0x35ca1f(0x149)])[_0x35ca1f(0x148)];return _0x1bb121[_0x35ca1f(0xf5)](_0x3c300b=>{const _0x52814e=_0x35ca1f;this[_0x52814e(0x152)]&&this[_0x52814e(0x130)](this[_0x52814e(0x152)]),this[_0x52814e(0x152)]=_0x262946,this[_0x52814e(0x11f)]=_0x4c0676;let _0x1e62fd=0x0;for(let _0x47741d of _0xd48858){const _0x2e42f9=_0x52814e(0x140)+_0x1e62fd;if(_0x47741d[_0x52814e(0x133)][_0x52814e(0x11d)]){const _0x166b07=_0x47741d[_0x52814e(0x133)][_0x52814e(0x10a)](({item:_0x25f995})=>!_0x1bb121[_0x52814e(0x14b)][_0x52814e(0x137)](_0x25f995),{'boundaries':_0x47741d});_0x47741d=_0x3c300b[_0x52814e(0x141)](_0x166b07,_0x47741d[_0x52814e(0x107)]);}_0x3c300b[_0x52814e(0x101)](_0x2e42f9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x47741d}),_0x1e62fd++;}}),window[_0x35ca1f(0x150)]()?.[_0x35ca1f(0x106)](),!0x0;}[_0x37249a(0x130)](_0x1a1c4a){const _0x508007=_0x37249a;if(this[_0x508007(0x152)]!=_0x1a1c4a)return!0x1;this[_0x508007(0x152)]=null,this[_0x508007(0x11f)]=!0x1;const _0x87536e=_0x1307c3(this[_0x508007(0x149)]),_0x4eb45c=_0x87536e[_0x508007(0x148)][_0x508007(0x154)][_0x508007(0x156)](_0x508007(0x103));return _0x87536e[_0x508007(0x148)][_0x508007(0xf5)](_0x743a3=>{const _0x863419=_0x508007;for(const _0x3d4457 of _0x4eb45c)_0x743a3[_0x863419(0x127)](_0x3d4457);}),!0x0;}[_0x37249a(0x110)](_0x2402a9){const _0x19569f=_0x37249a,_0x55be53=_0x1307c3(this[_0x19569f(0x149)]),_0x23bcf5=_0x55be53[_0x19569f(0xf8)][_0x19569f(0x100)](_0x2402a9),_0x3d6765=new _0x1e80be(_0x55be53[_0x19569f(0x113)][_0x19569f(0xff)][_0x19569f(0xf2)]);return this[_0x19569f(0x13f)](_0x23bcf5,_0x3d6765),_0x23bcf5;}[_0x37249a(0x13f)](_0x56f4e3,_0x5696c3){const _0x3ebd75=_0x37249a;let _0x3b33ea=!0x1;const _0xeff764=new Set();for(const _0x53d62f of _0x56f4e3[_0x3ebd75(0xf3)]()){const _0x9e0604=_0x53d62f['is'](_0x3ebd75(0xf7))||_0x53d62f['is'](_0x3ebd75(0x122));if(!_0x53d62f['is'](_0x3ebd75(0x147)))continue;(this[_0x3ebd75(0x13f)](_0x53d62f,_0x5696c3)||_0x9e0604)&&(_0x5696c3[_0x3ebd75(0x138)](_0x3ebd75(0x13d),this[_0x3ebd75(0x11e)](_0xeff764),_0x53d62f),_0x3b33ea=!0x0);}return _0x3b33ea;}[_0x37249a(0x11e)](_0x57368d){const _0x7548c7=_0x37249a;let _0x1b89ec;do{_0x1b89ec='';for(let _0x554333=0x0;_0x554333<0x4;_0x554333++)_0x1b89ec+=String[_0x7548c7(0xfb)](0x61+Math[_0x7548c7(0x135)](0x1a*Math[_0x7548c7(0x159)]()));}while(_0x57368d[_0x7548c7(0x108)](_0x1b89ec));return _0x57368d[_0x7548c7(0x12c)](_0x1b89ec),_0x1b89ec;}[_0x37249a(0xf9)](){const _0x358468=_0x37249a,{model:_0x2a6472}=_0x1307c3(this[_0x358468(0x149)]),_0x48a687=_0x2a6472[_0x358468(0xf2)][_0x358468(0xfd)],_0x4b46eb=_0x2a6472[_0x358468(0x155)](_0x48a687),_0x36d099=[],_0x407c61=_0x2a6472[_0x358468(0x119)](_0x4b46eb)[_0x358468(0x118)]();for(const {item:_0x1e1281}of _0x407c61)_0x1e1281['is'](_0x358468(0x11b))?_0x36d099[_0x358468(0x145)](_0x1e1281[_0x358468(0xf8)]):_0x1e1281['is'](_0x358468(0x147))&&_0x36d099[_0x358468(0xfe)]>0x0&&'\x20'!==_0x36d099[_0x36d099[_0x358468(0xfe)]-0x1]&&_0x36d099[_0x358468(0x145)]('\x20');return'\x22'+_0x36d099[_0x358468(0x129)]('')[_0x358468(0x10e)]()+'\x22';}[_0x37249a(0x120)](){const _0x1ad2a7=_0x37249a,_0x19766d=_0x1307c3(this[_0x1ad2a7(0x149)])[_0x1ad2a7(0x148)];return Array[_0x1ad2a7(0x111)](_0x19766d[_0x1ad2a7(0x154)][_0x1ad2a7(0x156)](_0x1ad2a7(0x103)))[_0x1ad2a7(0x136)]((_0x284c62,_0x24a0ae)=>_0x284c62[_0x1ad2a7(0x104)]()[_0x1ad2a7(0xf4)](_0x24a0ae[_0x1ad2a7(0x104)]())?-0x1:_0x284c62[_0x1ad2a7(0x104)]()[_0x1ad2a7(0x134)](_0x24a0ae[_0x1ad2a7(0x104)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x85d4(_0xd02536,_0x4360b5){const _0x36ff55=_0x36ff();return _0x85d4=function(_0x85d415,_0x1c151f){_0x85d415=_0x85d415-0x19b;let _0x5d66cf=_0x36ff55[_0x85d415];return _0x5d66cf;},_0x85d4(_0xd02536,_0x4360b5);}const _0x11a5db=_0x85d4;function _0x36ff(){const _0x588f2f=['source','200345XMwzwB','stop','7YqFMPD','getDocumentContext','reasoningStarted','6kkSFXN','message-metadata','data','modification-delta','start','delegate','isStopped','828261ntemRo','find','replyContentUpdated','createReply','webSearchFinished','interactionCreated','appendContent','web-search','sources','content','messageId','setConversationTitle','forEach','splice','getReply','383944rxXdhy','actionCallId','180mCMPHL','_finalizeInteraction','getStream','sendRequest','replies','interactionDestroyed','abort','currentReply','length','33046zPTIge','_isReasoning','160JDGAwC','abortController','currentRequest','action-metadata','4yPhaDO','conversationTitle','740982XzActZ','fire','reasoningFinished','interactionStopped','error','reasoning','replyChangeGroupStateUpdated','_isWebSearching','2437896owNEdg','isDestroyed','done','connector','push','webSearchStarted','interactionFinished','editor','interactionStarted','callId','event','destroy','stopListening','replyCreated','6849fEFlmJ','textDelta','ai-chat-interaction-error'];_0x36ff=function(){return _0x588f2f;};return _0x36ff();}(function(_0x3cdfe6,_0x2973a6){const _0x5990c5=_0x85d4,_0x23dbd3=_0x3cdfe6();while(!![]){try{const _0x415155=parseInt(_0x5990c5(0x19f))/0x1+-parseInt(_0x5990c5(0x1a7))/0x2+-parseInt(_0x5990c5(0x1cd))/0x3*(-parseInt(_0x5990c5(0x1a5))/0x4)+-parseInt(_0x5990c5(0x1c1))/0x5*(-parseInt(_0x5990c5(0x1c6))/0x6)+-parseInt(_0x5990c5(0x1c3))/0x7*(parseInt(_0x5990c5(0x1af))/0x8)+parseInt(_0x5990c5(0x1bd))/0x9*(-parseInt(_0x5990c5(0x1a1))/0xa)+-parseInt(_0x5990c5(0x1dc))/0xb*(-parseInt(_0x5990c5(0x1de))/0xc);if(_0x415155===_0x2973a6)break;else _0x23dbd3['push'](_0x23dbd3['shift']());}catch(_0x514fa5){_0x23dbd3['push'](_0x23dbd3['shift']());}}}(_0x36ff,0x2d40e));import{CKEditorError as _0x38f97e,EmitterMixin as _0x2c395f,uid as _0x57fd98}from'ckeditor5/src/utils.js';import{AIReply as _0xee6382,isIgnoredReplyType as _0x831e6e,isValidReplyType as _0x263e11,isReplyTitleType as _0x4963b8,isSourceType as _0x1aa9aa}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x11a5db(0x1d2),_0x11a5db(0x1b7),_0x11a5db(0x1aa),_0x11a5db(0x1b5),_0x11a5db(0x19b),_0x11a5db(0x1bc),_0x11a5db(0x1cf),_0x11a5db(0x1ad),_0x11a5db(0x1d8),_0x11a5db(0x1b4),_0x11a5db(0x1d1),_0x11a5db(0x1c5),_0x11a5db(0x1a9),_0x11a5db(0x1ab)];export class AIInteraction extends _0x2c395f(){['id'];[_0x11a5db(0x1e2)]=[];[_0x11a5db(0x19d)];[_0x11a5db(0x1d7)];[_0x11a5db(0x1dd)];[_0x11a5db(0x1a3)];[_0x11a5db(0x1b2)];[_0x11a5db(0x1cc)]=!0x1;[_0x11a5db(0x1b0)]=!0x1;[_0x11a5db(0x1b6)];[_0x11a5db(0x1a0)]=!0x1;[_0x11a5db(0x1ae)]=!0x1;constructor({connector:_0x33c565,editor:_0x4ee72d}){const _0xcc463d=_0x11a5db;super(),this['id']=_0x57fd98(),this[_0xcc463d(0x1b2)]=_0x33c565,this[_0xcc463d(0x1cc)]=!0x0,this[_0xcc463d(0x1b6)]=_0x4ee72d;}async[_0x11a5db(0x1ca)](){const _0x235f82=_0x11a5db;let _0x5e2e47;const _0x14847a=[];this[_0x235f82(0x1cc)]=!0x1;try{this[_0x235f82(0x1a3)]=await this[_0x235f82(0x1e1)](),this[_0x235f82(0x1a8)](_0x235f82(0x1b7),this);const _0x421a98=await this[_0x235f82(0x1a3)][_0x235f82(0x1e0)]();for await(const _0x5b1364 of _0x421a98){if(this[_0x235f82(0x1cc)])return;if(_0x235f82(0x1ab)===_0x5b1364[_0x235f82(0x1b9)])return void this[_0x235f82(0x1a8)](_0x235f82(0x1ab),{'error':new _0x38f97e(_0x235f82(0x1bf),this)});if(_0x235f82(0x1c7)!==_0x5b1364[_0x235f82(0x1b9)]){if(_0x235f82(0x1a4)!==_0x5b1364[_0x235f82(0x1b9)]){if(_0x4963b8(_0x5b1364[_0x235f82(0x1b9)])&&this[_0x235f82(0x1d8)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1a6)],!0x0),_0x1aa9aa(_0x5b1364[_0x235f82(0x1b9)]))_0x14847a[_0x235f82(0x1b3)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1c0)]);else{if(_0x263e11(_0x5b1364[_0x235f82(0x1b9)])){if(_0x5b1364[_0x235f82(0x1b9)]!==_0x5e2e47){if(_0x5e2e47=_0x5b1364[_0x235f82(0x1b9)],_0x235f82(0x1d4)===_0x5b1364[_0x235f82(0x1b9)]){this[_0x235f82(0x1ae)]||(this[_0x235f82(0x1ae)]=!0x0,this[_0x235f82(0x1a8)](_0x235f82(0x1b4),this));continue;}if(_0x235f82(0x1ac)===_0x5b1364[_0x235f82(0x1b9)]){this[_0x235f82(0x1a0)]||(this[_0x235f82(0x1a0)]=!0x0,this[_0x235f82(0x1a8)](_0x235f82(0x1c5),this));continue;}this[_0x235f82(0x1a0)]&&(this[_0x235f82(0x1a0)]=!0x1,this[_0x235f82(0x1a8)](_0x235f82(0x1a9),this)),this[_0x235f82(0x1ae)]&&(this[_0x235f82(0x1ae)]=!0x1,this[_0x235f82(0x1a8)](_0x235f82(0x1d1),this)),this[_0x235f82(0x19d)]&&this[_0x235f82(0x19d)][_0x235f82(0x1b1)](),this[_0x235f82(0x19d)]=this[_0x235f82(0x1d0)]({'type':_0x5b1364[_0x235f82(0x1b9)],'interactionId':this['id'],'id':_0x5b1364[_0x235f82(0x1c8)]?.['id']}),_0x14847a[_0x235f82(0x19e)]>0x0&&_0x235f82(0x1c9)===_0x5b1364[_0x235f82(0x1b9)]&&(this[_0x235f82(0x19d)][_0x235f82(0x1d5)]=_0x14847a[_0x235f82(0x1da)](0x0));}_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1be)]&&this[_0x235f82(0x19d)][_0x235f82(0x1d3)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1be)]);}else _0x831e6e(_0x5b1364[_0x235f82(0x1b9)]);}}else this[_0x235f82(0x1dd)]=_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1b8)];}else this[_0x235f82(0x1d7)]=_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1d7)];}}finally{this[_0x235f82(0x1cc)]||(_0x14847a[_0x235f82(0x19e)]>0x0&&(this[_0x235f82(0x19d)][_0x235f82(0x1d5)]=_0x14847a[_0x235f82(0x1da)](0x0)),this[_0x235f82(0x1df)](),this[_0x235f82(0x1a8)](_0x235f82(0x1b5),this));}}[_0x11a5db(0x1c2)](){const _0x487c3b=_0x11a5db;this[_0x487c3b(0x1cc)]||(this[_0x487c3b(0x1df)](),this[_0x487c3b(0x1a8)](_0x487c3b(0x1aa),this));}[_0x11a5db(0x1db)](_0xe9b4dd){const _0x5877fa=_0x11a5db;return this[_0x5877fa(0x1e2)][_0x5877fa(0x1ce)](_0x465447=>_0x465447['id']===_0xe9b4dd);}[_0x11a5db(0x1ba)](){const _0x5c5009=_0x11a5db;this[_0x5c5009(0x1b0)]||(this[_0x5c5009(0x1c2)](),this[_0x5c5009(0x1e2)][_0x5c5009(0x1d9)](_0x1e8161=>_0x1e8161[_0x5c5009(0x1ba)]()),this[_0x5c5009(0x1e2)]=[],this[_0x5c5009(0x1b0)]=!0x0,this[_0x5c5009(0x1a8)](_0x5c5009(0x19b),this),this[_0x5c5009(0x1bb)]());}[_0x11a5db(0x1d0)](_0x2de4aa){const _0x4b676e=_0x11a5db,_0x349aad=new _0xee6382({'editor':this[_0x4b676e(0x1b6)],'documentContextContent':this[_0x4b676e(0x1c4)]()?.[_0x4b676e(0x1d6)],..._0x2de4aa});return this[_0x4b676e(0x1e2)][_0x4b676e(0x1b3)](_0x349aad),_0x349aad[_0x4b676e(0x1cb)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4b676e(0x1a8)](_0x4b676e(0x1bc),_0x349aad),_0x349aad;}[_0x11a5db(0x1d8)](_0x147633,_0xd2edd3=!0x1){const _0x5ebcb6=_0x11a5db;this[_0x5ebcb6(0x1a8)](_0x5ebcb6(0x1d8),_0x147633,_0xd2edd3);}[_0x11a5db(0x1df)](){const _0x213ce8=_0x11a5db;this[_0x213ce8(0x1cc)]=!0x0,this[_0x213ce8(0x1a3)]&&this[_0x213ce8(0x1a3)][_0x213ce8(0x1a2)][_0x213ce8(0x19c)](),this[_0x213ce8(0x19d)]&&this[_0x213ce8(0x19d)][_0x213ce8(0x1b1)](),this[_0x213ce8(0x1a3)]=this[_0x213ce8(0x19d)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36e817=_0x57a6;function _0x57a6(_0x5633b0,_0x35d9a2){const _0x17263a=_0x1726();return _0x57a6=function(_0x57a601,_0x38c437){_0x57a601=_0x57a601-0xfa;let _0x1fe06d=_0x17263a[_0x57a601];return _0x1fe06d;},_0x57a6(_0x5633b0,_0x35d9a2);}(function(_0x1ced96,_0xbfee92){const _0x7515c6=_0x57a6,_0x143937=_0x1ced96();while(!![]){try{const _0x2154d2=parseInt(_0x7515c6(0x109))/0x1*(-parseInt(_0x7515c6(0x103))/0x2)+parseInt(_0x7515c6(0x124))/0x3*(-parseInt(_0x7515c6(0x122))/0x4)+-parseInt(_0x7515c6(0x126))/0x5*(-parseInt(_0x7515c6(0x113))/0x6)+-parseInt(_0x7515c6(0x108))/0x7+-parseInt(_0x7515c6(0x10e))/0x8+parseInt(_0x7515c6(0x100))/0x9+parseInt(_0x7515c6(0x11b))/0xa*(parseInt(_0x7515c6(0x120))/0xb);if(_0x2154d2===_0xbfee92)break;else _0x143937['push'](_0x143937['shift']());}catch(_0x1d2297){_0x143937['push'](_0x143937['shift']());}}}(_0x1726,0x9678b));import{EmitterMixin as _0x4e83a1,logWarning as _0x396787,logError as _0x3c8601}from'ckeditor5/src/utils.js';import{getTranslation as _0x12632e}from'../utils/common-translations.js';export class AIModels extends _0x4e83a1(){[_0x36e817(0x10c)];[_0x36e817(0x10a)];[_0x36e817(0x10d)];[_0x36e817(0x10b)]=[];constructor({connector:_0x5173b8,availableModels:_0x5a8e85,defaultModelId:_0x40a08e}){const _0x3d3217=_0x36e817;super(),this[_0x3d3217(0x10c)]=_0x5173b8,this[_0x3d3217(0x10a)]=_0x5a8e85,this[_0x3d3217(0x10d)]=_0x40a08e;}async[_0x36e817(0x11d)](){const _0x467dec=_0x36e817;if(!this[_0x467dec(0x10b)][_0x467dec(0xfe)])try{const _0xc69e68=this[_0x467dec(0x10c)][_0x467dec(0xfb)](),_0x41c7c1=await _0xc69e68[_0x467dec(0x115)]();this[_0x467dec(0x10b)]=_0x41c7c1[_0x467dec(0x125)];}catch(_0x3c9027){throw _0x3c8601(_0x467dec(0x101),{'error':_0x3c9027}),_0x3c9027;}return[...this[_0x467dec(0x10b)]];}async[_0x36e817(0x11c)](){const _0xe76760=_0x36e817,_0x274e3c=await this[_0xe76760(0x11d)]();return this[_0xe76760(0x11f)](_0x274e3c,this[_0xe76760(0x10a)]);}async[_0x36e817(0x121)](_0x288fb6){const _0x4f59d8=_0x36e817,_0x5db51f=await this[_0x4f59d8(0x11d)]();if(!_0x5db51f[_0x4f59d8(0xfe)])return null;if(_0x288fb6){const _0x413e24=this[_0x4f59d8(0x112)](_0x5db51f,_0x288fb6);if(_0x413e24)return _0x413e24;_0x396787(_0x4f59d8(0x107),{'modelId':_0x288fb6,'fallBackModelId':this[_0x4f59d8(0x10d)]});}return this[_0x4f59d8(0x102)]();}async[_0x36e817(0x102)](){const _0x230154=_0x36e817,_0x1e4870=await this[_0x230154(0x11c)]();if(!_0x1e4870[_0x230154(0xfe)])return null;if(this[_0x230154(0x10d)]){const _0x4d2c4c=this[_0x230154(0x112)](_0x1e4870,this[_0x230154(0x10d)]);if(_0x4d2c4c)return _0x4d2c4c;_0x396787(_0x230154(0x116),{'defaultModelId':this[_0x230154(0x10d)],'fallBackModelId':_0x1e4870[0x0]['id']});}return _0x1e4870[0x0];}async[_0x36e817(0x105)](_0x52ab8f){const _0x5237eb=_0x36e817;return(await this[_0x5237eb(0x11c)]())[_0x5237eb(0x123)](_0x29abc9=>_0x29abc9[_0x5237eb(0x114)]===_0x52ab8f[_0x5237eb(0x114)]&&_0x29abc9[_0x5237eb(0xff)]===_0x52ab8f[_0x5237eb(0xff)]);}[_0x36e817(0x11f)](_0x304cdf,_0x62cdea){const _0x2f8270=_0x36e817;let _0x41aea5;if(_0x62cdea){_0x41aea5=[];const _0x197038=_0x2f8270(0x106)==typeof _0x62cdea?[_0x62cdea[_0x2f8270(0x118)]()]:_0x62cdea[_0x2f8270(0xfd)](_0x4391cd=>_0x4391cd[_0x2f8270(0x118)]());for(const _0x4bc66d of _0x197038)for(const _0x46e984 of _0x304cdf)(_0x46e984['id'][_0x2f8270(0x118)]()===_0x4bc66d||_0x46e984[_0x2f8270(0x114)][_0x2f8270(0x118)]()===_0x4bc66d||Ne(_0x46e984)&&_0x2f8270(0x110)===_0x4bc66d||_0x46e984[_0x2f8270(0xff)][_0x2f8270(0x118)]()===_0x4bc66d||_0x46e984['id'][_0x2f8270(0x118)]()[_0x2f8270(0x11e)](_0x4bc66d))&&_0x41aea5[_0x2f8270(0x104)](_0x46e984);}else _0x41aea5=_0x304cdf;return _0x41aea5;}[_0x36e817(0x112)](_0x59af3f,_0x88c857){const _0x29cf22=_0x36e817;return _0x59af3f[_0x29cf22(0x10f)](_0x13ec4b=>Ne(_0x13ec4b)&&_0x29cf22(0x110)===_0x88c857?_0x13ec4b:_0x13ec4b['id']===_0x88c857)||null;}static[_0x36e817(0xfa)](_0x345321,_0x15ec61){const _0x40ab11=_0x36e817;return _0x15ec61[_0x40ab11(0xfd)](_0x59e07e=>{const _0x38bc25=_0x40ab11;if(Ne(_0x59e07e))_0x59e07e[_0x38bc25(0x114)]=_0x12632e(_0x345321,_0x38bc25(0x111)),_0x59e07e[_0x38bc25(0x117)]=_0x12632e(_0x345321,_0x38bc25(0x11a));else _0x12632e(_0x345321,_0x38bc25(0xfc)+_0x59e07e['id'][_0x38bc25(0x119)]())[_0x38bc25(0x11e)](_0x38bc25(0xfc))||(_0x59e07e[_0x38bc25(0x117)]=_0x12632e(_0x345321,_0x38bc25(0xfc)+_0x59e07e['id'][_0x38bc25(0x119)]()));return _0x59e07e;});}}function Ne(_0x1dde4d){const _0x2f800c=_0x36e817;return _0x1dde4d['id'][_0x2f800c(0x11e)](_0x2f800c(0x127));}function _0x1726(){const _0x28d842=['ai-chat-model-id-unrecognized','4234839VsXjwR','659969wfYzEg','_availableModels','_modelList','_connector','_defaultModelId','1174816ytkYoS','find','auto','AI_MODEL_NAME_AUTO','_getModelById','3028926rgrJDC','name','list','ai-chat-default-model-id-unrecognized','description','toLocaleLowerCase','toUpperCase','AI_MODEL_DESCRIPTION_AUTO','1897150gpPziV','getAvailableModels','getAll','startsWith','_filterModels','121eAJLWX','getModel','4927924qRwyNw','some','3IDeIhO','items','10DvtcJz','agent','getLocalized','getModels','AI_MODEL_DESCRIPTION_','map','length','provider','1472427glMCeB','ai-models-unable-to-retrieve','getDefault','2kDprko','push','isAvailable','string'];_0x1726=function(){return _0x28d842;};return _0x1726();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x93ae(_0x13436e,_0xc1f768){const _0xaff2ca=_0xaff2();return _0x93ae=function(_0x93ae74,_0x4b9b37){_0x93ae74=_0x93ae74-0xc0;let _0x2b643b=_0xaff2ca[_0x93ae74];return _0x2b643b;},_0x93ae(_0x13436e,_0xc1f768);}const _0x5e7551=_0x93ae;(function(_0x44e1a0,_0xc868bc){const _0x2ef8e6=_0x93ae,_0x1d8bbc=_0x44e1a0();while(!![]){try{const _0x2b0414=parseInt(_0x2ef8e6(0xef))/0x1+parseInt(_0x2ef8e6(0x108))/0x2*(parseInt(_0x2ef8e6(0xc2))/0x3)+-parseInt(_0x2ef8e6(0xdb))/0x4*(parseInt(_0x2ef8e6(0xc7))/0x5)+-parseInt(_0x2ef8e6(0xf7))/0x6*(-parseInt(_0x2ef8e6(0xeb))/0x7)+-parseInt(_0x2ef8e6(0x10b))/0x8*(-parseInt(_0x2ef8e6(0xff))/0x9)+parseInt(_0x2ef8e6(0xd4))/0xa+-parseInt(_0x2ef8e6(0x115))/0xb*(parseInt(_0x2ef8e6(0xda))/0xc);if(_0x2b0414===_0xc868bc)break;else _0x1d8bbc['push'](_0x1d8bbc['shift']());}catch(_0x5de64c){_0x1d8bbc['push'](_0x1d8bbc['shift']());}}}(_0xaff2,0xe1036));import{CKEditorError as _0x289899,ObservableMixin as _0x279071,uid as _0x356e3f}from'ckeditor5/src/utils.js';import{Element as _0x3ebb89,findAll as _0x4844cf,getAttribute as _0x36a9d9,getParents as _0xcbfd56,Document as _0x28f557,parse as _0x4327d0,Text as _0x2b5435}from'../utils/htmlparser.js';import{AIResponseParser as _0x2867d7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x56c59b}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1fbec7}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x450fcc}from'../utils/common-translations.js';import{cloneDeep as _0x42f3dd}from'es-toolkit';function _0xaff2(){const _0x20b469=['parsedContent','pending','content','cachedSuggestionContentParts','removed','cloneNode','find','push','_getDifferentChangeGroups','ai-get-editor-from-context-no-editor','length','modifiedNodeIds','new','823921NnQSul','done','fire','updateChangeGroups','1701482ohvuMl','text-delta','state','data-id','locale','appendContent','removedNodeIds','filter','66EQsdHD','type','data-unstable','modification-delta','convertMarkdownToHTML','getContentParts','merge','reasoning','1188225kMUqTt','parseAndNormalizeHTML','set','every','changes','documentContextContent','unshift','_getCachedContentParts','destroy','233222ShbGvt','setChangeGroupState','withoutDiff','8PfRkVx','replyContentUpdated','aiResponseParser','isDone','areActionsDisabled','aiResponseApplier','index','parsedMergedContent','ai-reply-get-content-parts-group-not-found','map','66nUEkJG','conversation-title','newNodeIds','span','AI_SUGGESTION_CONTENT_PART_REMOVED','42HFNtey','changeGroups','withDiff','replyChangeGroupStateUpdated','sources','836345VRsNPA','node','nextSibling','forEach','previousSibling','indexOf','includes','interactionId','onContentChange','splice','stopListening','values','editor','2709460YOBBQx','_setCachedContentParts','change:content','modified','source','context','5543868JqGFXx','32upczfV','color:\x20#808080;\x20font-style:\x20italic','web-search'];_0xaff2=function(){return _0x20b469;};return _0xaff2();}export const AI_REPLY_TYPES=[_0x5e7551(0xfa),_0x5e7551(0xf0),_0x5e7551(0xdd),_0x5e7551(0xfe)];export const AI_REPLY_TYPES_IGNORED=[_0x5e7551(0x116)];export const AI_REPLY_TITLE_TYPE=_0x5e7551(0x116);export class AIReply extends _0x279071(){['id'];[_0x5e7551(0xce)];[_0x5e7551(0xf8)];[_0x5e7551(0xc6)]=[];[_0x5e7551(0xde)]=new _0x28f557([]);[_0x5e7551(0x112)]=new _0x28f557([]);[_0x5e7551(0xc3)]=[];[_0x5e7551(0x10f)]=!0x1;[_0x5e7551(0x104)];[_0x5e7551(0x10d)];[_0x5e7551(0x110)];[_0x5e7551(0xd3)];[_0x5e7551(0xe1)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x342e1d,content:_0x57534d='',isDone:_0x5717fb=!0x1,interactionId:_0x35e3d4,areActionsDisabled:_0x56aa09,documentContextContent:_0xdab3ca,editor:_0x210c50,id:_0x101229}){const _0x15ca21=_0x5e7551;super(),this['id']=_0x101229||_0x356e3f(),this[_0x15ca21(0xce)]=_0x35e3d4,this[_0x15ca21(0xf8)]=_0x342e1d,this[_0x15ca21(0x10f)]=!!_0x56aa09,this[_0x15ca21(0xd3)]=_0x210c50,this[_0x15ca21(0x10d)]=new _0x2867d7(),this[_0x15ca21(0x110)]=new _0x56c59b(),this[_0x15ca21(0x104)]=_0x4327d0(_0xdab3ca||''),this[_0x15ca21(0x101)](_0x15ca21(0x10e),_0x5717fb),this['on'](_0x15ca21(0xd6),()=>{const _0x47fae3=_0x15ca21;this[_0x47fae3(0xcf)]();}),this[_0x15ca21(0x101)](_0x15ca21(0xe0),_0x57534d);}[_0x5e7551(0xf4)](_0x1416a3){const _0x523a17=_0x5e7551;this[_0x523a17(0x101)](_0x523a17(0xe0),this[_0x523a17(0xe0)]+_0x1416a3);}[_0x5e7551(0xec)](){const _0x5af217=_0x5e7551;this[_0x5af217(0x10e)]||(this[_0x5af217(0x101)](_0x5af217(0x10e),!0x0),this[_0x5af217(0xcf)]());}[_0x5e7551(0x107)](){const _0xfb4a53=_0x5e7551;this[_0xfb4a53(0xd1)]();}[_0x5e7551(0x109)](_0x34359b,_0x499e30){const _0x5a798b=_0x5e7551;this[_0x5a798b(0xc3)][_0x34359b][_0x5a798b(0xf1)]=_0x499e30,this[_0x5a798b(0xed)](_0x5a798b(0xc5),{'reply':this,'index':_0x34359b,'state':_0x499e30});}[_0x5e7551(0xfc)]({showDiff:_0x235107,groupIndex:_0x1a381f}){const _0x1494ea=_0x5e7551;if(!this[_0x1494ea(0xd3)])throw new _0x289899(_0x1494ea(0xe7),null,{'aiReply':this});const _0x174231=this[_0x1494ea(0x106)](_0x235107,_0x1a381f);if(_0x174231)return _0x174231;let _0x5acebb=[];if(void 0x0===_0x1a381f)_0x5acebb=this[_0x1494ea(0xc3)];else{const _0x4e1743=this[_0x1494ea(0xc3)][_0x1494ea(0xe4)](({index:_0x63d43a})=>_0x63d43a===_0x1a381f);if(!_0x4e1743)throw new _0x289899(_0x1494ea(0x113),null,{'aiReply':this,'groupIndex':_0x1a381f});_0x5acebb=[_0x4e1743];}const _0x4d57d5=_0x1fbec7({'editor':this[_0x1494ea(0xd3)],'showDiff':_0x235107,'changeGroups':_0x5acebb,'documentContextContent':this[_0x1494ea(0x104)]});return this[_0x1494ea(0xd5)](_0x235107,_0x4d57d5),_0x4d57d5;}[_0x5e7551(0x106)](_0x5e2c4e,_0x3f18fb){const _0x4979e9=_0x5e7551,_0x4e2dad=_0x5e2c4e?_0x4979e9(0xc4):_0x4979e9(0x10a);if(!this[_0x4979e9(0xe1)][_0x4e2dad][_0x4979e9(0xe8)])return null;const _0x23392f=this[_0x4979e9(0xe1)][_0x4e2dad];if(void 0x0===_0x3f18fb)return _0x42f3dd(_0x23392f);{const _0x13d085=_0x23392f[_0x4979e9(0xe4)](({index:_0x3224b3})=>_0x3224b3===_0x3f18fb);if(_0x13d085)return[_0x42f3dd(_0x13d085)];}return null;}[_0x5e7551(0xd5)](_0x30342b,_0xbaf8fd){const _0x1b6d49=_0x5e7551,_0x3700dc=_0x30342b?_0x1b6d49(0xc4):_0x1b6d49(0x10a);_0xbaf8fd[_0x1b6d49(0xca)](_0x14c11d=>{const _0x18ffcb=_0x1b6d49,_0x172753=this[_0x18ffcb(0xe1)][_0x3700dc],_0x472d66=_0x172753[_0x18ffcb(0xe4)](({index:_0x36ffd5})=>_0x36ffd5===_0x14c11d[_0x18ffcb(0x111)]);if(_0x472d66){const _0x202cb7=_0x172753[_0x18ffcb(0xcc)](_0x472d66);_0x172753[_0x18ffcb(0xd0)](_0x202cb7,0x1,_0x14c11d);}else _0x172753[_0x18ffcb(0xe5)](_0x14c11d);});}[_0x5e7551(0xcf)](){const _0x160d8b=_0x5e7551;if(_0x160d8b(0xfa)===this[_0x160d8b(0xf8)]){this[_0x160d8b(0xde)]=this[_0x160d8b(0x10d)][_0x160d8b(0x100)](this[_0x160d8b(0xe0)]);const _0x52860b=this[_0x160d8b(0xc3)];this[_0x160d8b(0xee)]();const _0xbfe301=this[_0x160d8b(0xe6)](_0x52860b,this[_0x160d8b(0xc3)]);(_0xbfe301[_0x160d8b(0xe8)]||this[_0x160d8b(0x10e)])&&(this[_0x160d8b(0xed)](_0x160d8b(0x10c),this,_0xbfe301),this[_0x160d8b(0xe1)][_0x160d8b(0xc4)][_0x160d8b(0xe8)]=this[_0x160d8b(0xe1)][_0x160d8b(0x10a)][_0x160d8b(0xe8)]=0x0);}else this[_0x160d8b(0xde)]=this[_0x160d8b(0x10d)][_0x160d8b(0xfb)](this[_0x160d8b(0xe0)]),this[_0x160d8b(0xed)](_0x160d8b(0x10c),this);}[_0x5e7551(0xe6)](_0x7bd7fc,_0x346ce5){const _0xda15e3=_0x5e7551,_0xe7d597=[];for(const _0x528a39 of _0x346ce5){const _0x4206ee=_0x7bd7fc[_0x528a39[_0xda15e3(0x111)]];_0x4206ee?_0x4206ee[_0xda15e3(0x103)][_0xda15e3(0xe8)]!==_0x528a39[_0xda15e3(0x103)][_0xda15e3(0xe8)]?_0xe7d597[_0xda15e3(0xe5)](_0x528a39):_0x4206ee[_0xda15e3(0x103)][_0xda15e3(0xca)]((_0x4a12e3,_0xc5d55b)=>{const _0x4bd378=_0xda15e3,_0x2159f5=_0x528a39[_0x4bd378(0x103)][_0xc5d55b];_0x4a12e3['id']!==_0x2159f5['id']&&_0xe7d597[_0x4bd378(0xe5)](_0x528a39);}):_0xe7d597[_0xda15e3(0xe5)](_0x528a39);}return _0xe7d597;}[_0x5e7551(0xee)](){const _0x5be3e6=_0x5e7551,_0x17390d=new _0x3ebb89('p',{},[new _0x3ebb89(_0x5be3e6(0xc0),{'style':_0x5be3e6(0xdc)},[new _0x2b5435(_0x450fcc(this[_0x5be3e6(0xd3)][_0x5be3e6(0xf3)],_0x5be3e6(0xc1)))])]),_0x1aadf1=this[_0x5be3e6(0x110)][_0x5be3e6(0xfd)](this[_0x5be3e6(0xde)],this[_0x5be3e6(0x104)][_0x5be3e6(0xe3)](!0x0),{'markUnstableElements':!this[_0x5be3e6(0x10e)],'replaceRemovedWith':_0x17390d,'cutAfterLastChange':!this[_0x5be3e6(0x10e)]});if(!_0x1aadf1[_0x5be3e6(0xe9)][_0x5be3e6(0xe8)]&&!this[_0x5be3e6(0x10e)])return;this[_0x5be3e6(0x112)]=_0x1aadf1[_0x5be3e6(0xde)];let _0x3dee4b=[];if(_0x4844cf(_0x5d7f4b=>{const _0x423dea=_0x5be3e6,_0x427045=_0x36a9d9(_0x5d7f4b,_0x423dea(0xf2));if(!_0x427045||!_0x36821d(_0x427045))return!0x1;const _0x2a7ee2=[_0x5d7f4b,..._0xcbfd56(_0x5d7f4b)]['at'](-0x2);if(_0x5d7f4b!=_0x2a7ee2){const _0x5bc9e7=_0x36a9d9(_0x2a7ee2,_0x423dea(0xf2));_0x36821d(_0x5bc9e7)||(_0x3dee4b[_0x423dea(0xe5)]({'node':_0x2a7ee2,'id':_0x5bc9e7,'type':_0x423dea(0xd7)}),_0x1aadf1[_0x423dea(0xe9)][_0x423dea(0xe5)](_0x5bc9e7));}else _0x1aadf1[_0x423dea(0xe9)][_0x423dea(0xcd)](_0x427045)?_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xd7),'id':_0x427045}):_0x1aadf1[_0x423dea(0x117)][_0x423dea(0xcd)](_0x427045)?_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xea),'id':_0x427045,'anchorId':_0x36a9d9(_0x5d7f4b[_0x423dea(0xcb)],_0x423dea(0xf2))}):_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xe2),'id':_0x427045});return!0x0;},this[_0x5be3e6(0x112)]),_0x3dee4b=_0x3dee4b[_0x5be3e6(0xf6)](({node:_0xadaf25})=>[..._0xcbfd56(_0xadaf25),_0xadaf25][_0x5be3e6(0x102)](_0x2e0045=>!_0x36a9d9(_0x2e0045,_0x5be3e6(0xf9)))),0x0==_0x3dee4b[_0x5be3e6(0xe8)])return;const _0x9de8ee=[[_0x3dee4b[0x0]]];for(let _0xf4ed83=0x1;_0xf4ed83<_0x3dee4b[_0x5be3e6(0xe8)];_0xf4ed83++){const _0x47fd35=_0x9de8ee[_0x9de8ee[_0x5be3e6(0xe8)]-0x1],_0x374f1c=_0x47fd35[_0x47fd35[_0x5be3e6(0xe8)]-0x1];_0x3dee4b[_0xf4ed83][_0x5be3e6(0xc8)][_0x5be3e6(0xcb)]==_0x374f1c[_0x5be3e6(0xc8)]&&_0x5be3e6(0xd7)!=_0x3dee4b[_0xf4ed83][_0x5be3e6(0xf8)]&&_0x5be3e6(0xd7)!=_0x374f1c[_0x5be3e6(0xf8)]?_0x47fd35[_0x5be3e6(0xe5)](_0x3dee4b[_0xf4ed83]):_0x9de8ee[_0x5be3e6(0xe5)]([_0x3dee4b[_0xf4ed83]]);}for(const _0xcb5ea5 of _0x9de8ee){const _0x233ca4=_0xcb5ea5[0x0],_0x10eed5=_0xcb5ea5[_0xcb5ea5[_0x5be3e6(0xe8)]-0x1],_0x33c8d1=_0x149927(_0x233ca4[_0x5be3e6(0xc8)][_0x5be3e6(0xcb)]);_0x33c8d1&&_0xcb5ea5[_0x5be3e6(0x105)](_0x33c8d1);const _0x13b32c=_0x149927(_0x10eed5[_0x5be3e6(0xc8)][_0x5be3e6(0xc9)]);_0x13b32c&&_0xcb5ea5[_0x5be3e6(0xe5)](_0x13b32c);}function _0x36821d(_0x59f6e3){const _0x223088=_0x5be3e6;return _0x1aadf1[_0x223088(0xe9)][_0x223088(0xcd)](_0x59f6e3)||_0x1aadf1[_0x223088(0x117)][_0x223088(0xcd)](_0x59f6e3)||_0x1aadf1[_0x223088(0xf5)][_0x223088(0xcd)](_0x59f6e3);}function _0x149927(_0x31d548){const _0x2847d1=_0x5be3e6;if(_0x31d548&&_0x36a9d9(_0x31d548,_0x2847d1(0xf2))&&!_0x36a9d9(_0x31d548,_0x2847d1(0xf9))){const _0x5569bf=_0x36a9d9(_0x31d548,_0x2847d1(0xf2));if(!_0x36821d(_0x5569bf))return{'node':_0x31d548,'type':_0x2847d1(0xd9),'id':_0x5569bf};}return null;}this[_0x5be3e6(0xc3)]=_0x9de8ee[_0x5be3e6(0x114)]((_0x3a7ed3,_0x50af4a)=>({'changes':_0x3a7ed3,'state':_0x5be3e6(0xdf),'index':_0x50af4a}));}}export function isValidReplyType(_0x41995){const _0x70ec6d=_0x5e7551;return Object[_0x70ec6d(0xd2)](AI_REPLY_TYPES)[_0x70ec6d(0xcd)](_0x41995);}export function isIgnoredReplyType(_0x36802f){const _0x4d542c=_0x5e7551;return AI_REPLY_TYPES_IGNORED[_0x4d542c(0xcd)](_0x36802f);}export function isReplyTitleType(_0x55bcfc){return _0x55bcfc===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2148c9){const _0x4bc581=_0x5e7551;return _0x4bc581(0xd8)===_0x2148c9;}
|
|
23
|
+
const _0x164748=_0x59e6;function _0x3f19(){const _0x57d78b=['map','forEach','push','text-delta','type','aiResponseParser','span','235886zKuxyK','includes','AI_SUGGESTION_CONTENT_PART_REMOVED','filter','withoutDiff','modified','values','4024NKtLhR','1471074gTPZuC','115365bPtssV','aiResponseApplier','find','convertMarkdownToHTML','updateChangeGroups','done','stopListening','modification-delta','_getCachedContentParts','removed','change:content','getContentParts','set','12dFmNgc','content','pending','new','ai-reply-get-content-parts-group-not-found','parsedContent','reasoning','documentContextContent','withDiff','replyChangeGroupStateUpdated','parseAndNormalizeHTML','areActionsDisabled','color:\x20#808080;\x20font-style:\x20italic','sources','51491UtqFzT','parsedMergedContent','1000dThrWi','newNodeIds','indexOf','data-unstable','state','source','conversation-title','onContentChange','locale','data-id','length','60XZuugF','nextSibling','unshift','_setCachedContentParts','context','interactionId','2283Sbdtlv','replyContentUpdated','splice','12397221HCgAkI','cachedSuggestionContentParts','modifiedNodeIds','index','cloneNode','changes','ai-get-editor-from-context-no-editor','fire','node','appendContent','removedNodeIds','destroy','web-search','setChangeGroupState','previousSibling','isDone','merge','changeGroups','11604080FtQacd','_getDifferentChangeGroups','editor','every'];_0x3f19=function(){return _0x57d78b;};return _0x3f19();}(function(_0x475500,_0x2b9e4d){const _0x292af0=_0x59e6,_0x45b3db=_0x475500();while(!![]){try{const _0x5ce9b5=parseInt(_0x292af0(0x10e))/0x1+-parseInt(_0x292af0(0x10d))/0x2*(parseInt(_0x292af0(0x13d))/0x3)+-parseInt(_0x292af0(0x11c))/0x4*(-parseInt(_0x292af0(0x10f))/0x5)+parseInt(_0x292af0(0x137))/0x6*(parseInt(_0x292af0(0x106))/0x7)+parseInt(_0x292af0(0xfb))/0x8+-parseInt(_0x292af0(0x140))/0x9+-parseInt(_0x292af0(0x12c))/0xa*(-parseInt(_0x292af0(0x12a))/0xb);if(_0x5ce9b5===_0x2b9e4d)break;else _0x45b3db['push'](_0x45b3db['shift']());}catch(_0x319b7f){_0x45b3db['push'](_0x45b3db['shift']());}}}(_0x3f19,0xd89f2));import{CKEditorError as _0x56611b,ObservableMixin as _0x58df9e,uid as _0x46edc5}from'ckeditor5/src/utils.js';import{Element as _0x2be3ca,findAll as _0x5d682e,getAttribute as _0x4bb938,getParents as _0x233ccd,Document as _0x38344b,parse as _0x4e23fe,Text as _0x19e2f7}from'../utils/htmlparser.js';import{AIResponseParser as _0x2d0e03}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1ba911}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2ed705}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2484a4}from'../utils/common-translations.js';import{cloneDeep as _0x5ea9e6}from'es-toolkit';export const AI_REPLY_TYPES=[_0x164748(0x116),_0x164748(0x102),_0x164748(0xf5),_0x164748(0x122)];export const AI_REPLY_TYPES_IGNORED=[_0x164748(0x132)];export const AI_REPLY_TITLE_TYPE=_0x164748(0x132);export class AIReply extends _0x58df9e(){['id'];[_0x164748(0x13c)];[_0x164748(0x103)];[_0x164748(0x129)]=[];[_0x164748(0x121)]=new _0x38344b([]);[_0x164748(0x12b)]=new _0x38344b([]);[_0x164748(0xfa)]=[];[_0x164748(0x127)]=!0x1;[_0x164748(0x123)];[_0x164748(0x104)];[_0x164748(0x110)];[_0x164748(0xfd)];[_0x164748(0x141)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x472a51,content:_0x15cba4='',isDone:_0x19f5f1=!0x1,interactionId:_0x13fe77,areActionsDisabled:_0x4c0009,documentContextContent:_0xd059f9,editor:_0x469135,id:_0x5cfdb1}){const _0xb1766f=_0x164748;super(),this['id']=_0x5cfdb1||_0x46edc5(),this[_0xb1766f(0x13c)]=_0x13fe77,this[_0xb1766f(0x103)]=_0x472a51,this[_0xb1766f(0x127)]=!!_0x4c0009,this[_0xb1766f(0xfd)]=_0x469135,this[_0xb1766f(0x104)]=new _0x2d0e03(),this[_0xb1766f(0x110)]=new _0x1ba911(),this[_0xb1766f(0x123)]=_0x4e23fe(_0xd059f9||''),this[_0xb1766f(0x11b)](_0xb1766f(0xf8),_0x19f5f1),this['on'](_0xb1766f(0x119),()=>{const _0x1824bf=_0xb1766f;this[_0x1824bf(0x133)]();}),this[_0xb1766f(0x11b)](_0xb1766f(0x11d),_0x15cba4);}[_0x164748(0xf2)](_0x183af9){const _0x1f1df9=_0x164748;this[_0x1f1df9(0x11b)](_0x1f1df9(0x11d),this[_0x1f1df9(0x11d)]+_0x183af9);}[_0x164748(0x114)](){const _0x30c4c6=_0x164748;this[_0x30c4c6(0xf8)]||(this[_0x30c4c6(0x11b)](_0x30c4c6(0xf8),!0x0),this[_0x30c4c6(0x133)]());}[_0x164748(0xf4)](){const _0x3cee27=_0x164748;this[_0x3cee27(0x115)]();}[_0x164748(0xf6)](_0x22ac45,_0x45bedb){const _0x5547b3=_0x164748;this[_0x5547b3(0xfa)][_0x22ac45][_0x5547b3(0x130)]=_0x45bedb,this[_0x5547b3(0xf0)](_0x5547b3(0x125),{'reply':this,'index':_0x22ac45,'state':_0x45bedb});}[_0x164748(0x11a)]({showDiff:_0x4cbdb2,groupIndex:_0x24f42e}){const _0x2ef93c=_0x164748;if(!this[_0x2ef93c(0xfd)])throw new _0x56611b(_0x2ef93c(0xef),null,{'aiReply':this});const _0x58b6f3=this[_0x2ef93c(0x117)](_0x4cbdb2,_0x24f42e);if(_0x58b6f3)return _0x58b6f3;let _0x1e7550=[];if(void 0x0===_0x24f42e)_0x1e7550=this[_0x2ef93c(0xfa)];else{const _0x241791=this[_0x2ef93c(0xfa)][_0x2ef93c(0x111)](({index:_0x14fb3a})=>_0x14fb3a===_0x24f42e);if(!_0x241791)throw new _0x56611b(_0x2ef93c(0x120),null,{'aiReply':this,'groupIndex':_0x24f42e});_0x1e7550=[_0x241791];}const _0x257eef=_0x2ed705({'editor':this[_0x2ef93c(0xfd)],'showDiff':_0x4cbdb2,'changeGroups':_0x1e7550,'documentContextContent':this[_0x2ef93c(0x123)]});return this[_0x2ef93c(0x13a)](_0x4cbdb2,_0x257eef),_0x257eef;}[_0x164748(0x117)](_0x3c2d7f,_0x1d898a){const _0x2a482f=_0x164748,_0x458444=_0x3c2d7f?_0x2a482f(0x124):_0x2a482f(0x10a);if(!this[_0x2a482f(0x141)][_0x458444][_0x2a482f(0x136)])return null;const _0x1e0858=this[_0x2a482f(0x141)][_0x458444];if(void 0x0===_0x1d898a)return _0x5ea9e6(_0x1e0858);{const _0x15e2f6=_0x1e0858[_0x2a482f(0x111)](({index:_0x130bdb})=>_0x130bdb===_0x1d898a);if(_0x15e2f6)return[_0x5ea9e6(_0x15e2f6)];}return null;}[_0x164748(0x13a)](_0x1f5dc0,_0xedceb2){const _0x5e87a9=_0x164748,_0x1f2725=_0x1f5dc0?_0x5e87a9(0x124):_0x5e87a9(0x10a);_0xedceb2[_0x5e87a9(0x100)](_0x3daf9f=>{const _0x4624a3=_0x5e87a9,_0x3514b3=this[_0x4624a3(0x141)][_0x1f2725],_0xd8e6a9=_0x3514b3[_0x4624a3(0x111)](({index:_0x24a52f})=>_0x24a52f===_0x3daf9f[_0x4624a3(0xec)]);if(_0xd8e6a9){const _0x11a646=_0x3514b3[_0x4624a3(0x12e)](_0xd8e6a9);_0x3514b3[_0x4624a3(0x13f)](_0x11a646,0x1,_0x3daf9f);}else _0x3514b3[_0x4624a3(0x101)](_0x3daf9f);});}[_0x164748(0x133)](){const _0x720f31=_0x164748;if(_0x720f31(0x116)===this[_0x720f31(0x103)]){this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x126)](this[_0x720f31(0x11d)]);const _0x2d9a66=this[_0x720f31(0xfa)];this[_0x720f31(0x113)]();const _0x482b6c=this[_0x720f31(0xfc)](_0x2d9a66,this[_0x720f31(0xfa)]);(_0x482b6c[_0x720f31(0x136)]||this[_0x720f31(0xf8)])&&(this[_0x720f31(0xf0)](_0x720f31(0x13e),this,_0x482b6c),this[_0x720f31(0x141)][_0x720f31(0x124)][_0x720f31(0x136)]=this[_0x720f31(0x141)][_0x720f31(0x10a)][_0x720f31(0x136)]=0x0);}else this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x112)](this[_0x720f31(0x11d)]),this[_0x720f31(0xf0)](_0x720f31(0x13e),this);}[_0x164748(0xfc)](_0x374049,_0x27906b){const _0x225648=_0x164748,_0x574b0b=[];for(const _0xd8fce5 of _0x27906b){const _0x10e4ae=_0x374049[_0xd8fce5[_0x225648(0xec)]];_0x10e4ae?_0x10e4ae[_0x225648(0xee)][_0x225648(0x136)]!==_0xd8fce5[_0x225648(0xee)][_0x225648(0x136)]?_0x574b0b[_0x225648(0x101)](_0xd8fce5):_0x10e4ae[_0x225648(0xee)][_0x225648(0x100)]((_0x4f17c2,_0x32c057)=>{const _0x1a81a5=_0x225648,_0x15bc31=_0xd8fce5[_0x1a81a5(0xee)][_0x32c057];_0x4f17c2['id']!==_0x15bc31['id']&&_0x574b0b[_0x1a81a5(0x101)](_0xd8fce5);}):_0x574b0b[_0x225648(0x101)](_0xd8fce5);}return _0x574b0b;}[_0x164748(0x113)](){const _0x497534=_0x164748,_0x12accd=new _0x2be3ca('p',{},[new _0x2be3ca(_0x497534(0x105),{'style':_0x497534(0x128)},[new _0x19e2f7(_0x2484a4(this[_0x497534(0xfd)][_0x497534(0x134)],_0x497534(0x108)))])]),_0x9c2ea6=this[_0x497534(0x110)][_0x497534(0xf9)](this[_0x497534(0x121)],this[_0x497534(0x123)][_0x497534(0xed)](!0x0),{'markUnstableElements':!this[_0x497534(0xf8)],'replaceRemovedWith':_0x12accd,'cutAfterLastChange':!this[_0x497534(0xf8)]});if(!_0x9c2ea6[_0x497534(0x142)][_0x497534(0x136)]&&!this[_0x497534(0xf8)])return;this[_0x497534(0x12b)]=_0x9c2ea6[_0x497534(0x121)];let _0x3de901=[];if(_0x5d682e(_0x2b3828=>{const _0x396e2b=_0x497534,_0x5c1526=_0x4bb938(_0x2b3828,_0x396e2b(0x135));if(!_0x5c1526||!_0x240670(_0x5c1526))return!0x1;const _0xe67cd6=[_0x2b3828,..._0x233ccd(_0x2b3828)]['at'](-0x2);if(_0x2b3828!=_0xe67cd6){const _0xbc5cc8=_0x4bb938(_0xe67cd6,_0x396e2b(0x135));_0x240670(_0xbc5cc8)||(_0x3de901[_0x396e2b(0x101)]({'node':_0xe67cd6,'id':_0xbc5cc8,'type':_0x396e2b(0x10b)}),_0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x101)](_0xbc5cc8));}else _0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x10b),'id':_0x5c1526}):_0x9c2ea6[_0x396e2b(0x12d)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x11f),'id':_0x5c1526,'anchorId':_0x4bb938(_0x2b3828[_0x396e2b(0xf7)],_0x396e2b(0x135))}):_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x118),'id':_0x5c1526});return!0x0;},this[_0x497534(0x12b)]),_0x3de901=_0x3de901[_0x497534(0x109)](({node:_0x57d6de})=>[..._0x233ccd(_0x57d6de),_0x57d6de][_0x497534(0xfe)](_0x2a14e9=>!_0x4bb938(_0x2a14e9,_0x497534(0x12f)))),0x0==_0x3de901[_0x497534(0x136)])return;const _0x55fde7=[[_0x3de901[0x0]]];for(let _0x351f34=0x1;_0x351f34<_0x3de901[_0x497534(0x136)];_0x351f34++){const _0x31fe26=_0x55fde7[_0x55fde7[_0x497534(0x136)]-0x1],_0x4dc07e=_0x31fe26[_0x31fe26[_0x497534(0x136)]-0x1];_0x3de901[_0x351f34][_0x497534(0xf1)][_0x497534(0xf7)]==_0x4dc07e[_0x497534(0xf1)]&&_0x497534(0x10b)!=_0x3de901[_0x351f34][_0x497534(0x103)]&&_0x497534(0x10b)!=_0x4dc07e[_0x497534(0x103)]?_0x31fe26[_0x497534(0x101)](_0x3de901[_0x351f34]):_0x55fde7[_0x497534(0x101)]([_0x3de901[_0x351f34]]);}for(const _0x2b20bd of _0x55fde7){const _0x3b5605=_0x2b20bd[0x0],_0x476c21=_0x2b20bd[_0x2b20bd[_0x497534(0x136)]-0x1],_0x3c54ad=_0x271126(_0x3b5605[_0x497534(0xf1)][_0x497534(0xf7)]);_0x3c54ad&&_0x2b20bd[_0x497534(0x139)](_0x3c54ad);const _0x42a925=_0x271126(_0x476c21[_0x497534(0xf1)][_0x497534(0x138)]);_0x42a925&&_0x2b20bd[_0x497534(0x101)](_0x42a925);}function _0x240670(_0x2e3963){const _0x23225b=_0x497534;return _0x9c2ea6[_0x23225b(0x142)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0x12d)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0xf3)][_0x23225b(0x107)](_0x2e3963);}function _0x271126(_0x1a6430){const _0x34b3c8=_0x497534;if(_0x1a6430&&_0x4bb938(_0x1a6430,_0x34b3c8(0x135))&&!_0x4bb938(_0x1a6430,_0x34b3c8(0x12f))){const _0x220443=_0x4bb938(_0x1a6430,_0x34b3c8(0x135));if(!_0x240670(_0x220443))return{'node':_0x1a6430,'type':_0x34b3c8(0x13b),'id':_0x220443};}return null;}this[_0x497534(0xfa)]=_0x55fde7[_0x497534(0xff)]((_0x1972c,_0x1dd330)=>({'changes':_0x1972c,'state':_0x497534(0x11e),'index':_0x1dd330}));}}export function isValidReplyType(_0x37d662){const _0x18c83d=_0x164748;return Object[_0x18c83d(0x10c)](AI_REPLY_TYPES)[_0x18c83d(0x107)](_0x37d662);}export function isIgnoredReplyType(_0x1e163d){const _0x1ea97c=_0x164748;return AI_REPLY_TYPES_IGNORED[_0x1ea97c(0x107)](_0x1e163d);}function _0x59e6(_0x5d5821,_0x51cdb2){const _0x3f1990=_0x3f19();return _0x59e6=function(_0x59e612,_0x42a3e6){_0x59e612=_0x59e612-0xec;let _0x542a32=_0x3f1990[_0x59e612];return _0x542a32;},_0x59e6(_0x5d5821,_0x51cdb2);}export function isReplyTitleType(_0x225bba){return _0x225bba===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa2cde2){const _0x51ef07=_0x164748;return _0x51ef07(0x131)===_0xa2cde2;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x2848d3(){[_0x25d577(0x184)];[_0x25d577(0x1ac)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x25d577(0x1a7)]=new Set();constructor(_0x5f1d22){const _0x1a0686=_0x25d577;super(),this[_0x1a0686(0x184)]=_0x5f1d22||_0x58c476;}[_0x25d577(0x16e)](_0x40e140,_0x515053,_0x197efa){const _0x2a5eea=_0x25d577,_0xe4796a=_0x3c9757(_0x40e140);if(0x0===_0x515053[_0x2a5eea(0x199)][_0x2a5eea(0x18a)]){const _0x41dd58=[];return _0x28ba00(_0x2a5eea(0x194),_0x2a5eea(0x173),_0xe4796a)[_0x2a5eea(0x19e)](_0x10ae9c=>{const _0x2cca50=_0x2a5eea,_0x57f62a=this[_0x2cca50(0x184)]();_0xd7441b(_0x10ae9c,_0x2cca50(0x194),_0x57f62a),_0x41dd58[_0x2cca50(0x18d)](_0x57f62a);}),this[_0x2a5eea(0x186)](_0xe4796a),{'parsedContent':_0xe4796a,'newNodeIds':_0x41dd58,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x197efa&&_0x197efa[_0x2a5eea(0x1a0)]&&this[_0x2a5eea(0x1a3)](_0xe4796a),this[_0x2a5eea(0x1ac)][_0x2a5eea(0x167)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x181)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]=null,this[_0x2a5eea(0x1a7)]=new Set(_0x28ba00(_0x2a5eea(0x194),null,_0x515053)[_0x2a5eea(0x174)](_0x47865c=>_0x3ab8e2(_0x47865c,_0x2a5eea(0x194)))[_0x2a5eea(0x180)](_0x4dc8d9=>!!_0x4dc8d9));let _0x4261bb=-0x1,_0x1287cf=!0x1;const _0x3894ca=_0xe4796a[_0x2a5eea(0x199)],_0x3f9d2b=Array[_0x2a5eea(0x179)](_0x3894ca)[_0x2a5eea(0x180)](_0x1607e3=>!(0x3===_0x1607e3[_0x2a5eea(0x16a)]&&''===_0x2aa58a(_0x1607e3)[_0x2a5eea(0x188)]())),_0x45487c=_0x3f9d2b[_0x2a5eea(0x18a)];for(let _0x5f19b1=0x0;_0x5f19b1<_0x45487c;_0x5f19b1++){const _0x3c3e52=_0x3f9d2b[_0x5f19b1],_0x17bf18=_0x3f9d2b[_0x5f19b1+0x1];if(this[_0x2a5eea(0x177)](_0x3c3e52)){if(-0x1===_0x4261bb&&(_0x4261bb=_0x5f19b1),this[_0x2a5eea(0x18b)](_0x3c3e52),!this[_0x2a5eea(0x177)](_0x17bf18)){const [_0x5fbbc0,_0x4fb4a3]=this[_0x2a5eea(0x192)](_0x3c3e52,_0x1287cf,_0x515053);if(_0x5fbbc0){const _0x24d6d9=Array[_0x2a5eea(0x179)](_0x3f9d2b)[_0x2a5eea(0x19b)](_0x4261bb,_0x5f19b1+0x1);this[_0x2a5eea(0x17d)](_0x5fbbc0,_0x24d6d9,_0x4fb4a3),_0x4261bb=-0x1;}}}else{if(this[_0x2a5eea(0x1a9)](_0x3c3e52))_0x1287cf=!0x0;else{if(this[_0x2a5eea(0x175)](_0x3c3e52)){const _0x231fa5=_0x3ab8e2(_0x3c3e52,_0x2a5eea(0x194));if(_0x231fa5&&this[_0x2a5eea(0x1a7)][_0x2a5eea(0x183)](_0x231fa5)){const _0x1b0198=_0x131e57(_0x2a5eea(0x194),_0x231fa5,_0x515053);this[_0x2a5eea(0x1a4)](_0x1b0198,_0x3c3e52);}if(this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x18e)](_0x231fa5)){const _0x2c5aa0=this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x1a5)](_0x231fa5);this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x17f)](_0x2c5aa0,0x1);}}else{if(this[_0x2a5eea(0x187)](_0x3c3e52)){const _0x3d502e=_0x3ab8e2(_0x3c3e52,_0x2a5eea(0x194));this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)][_0x2a5eea(0x18e)](_0x3d502e)||this[_0x2a5eea(0x171)](_0x3c3e52);}}}}}for(const _0x2d2ad2 of this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]){const _0x4f50e8=_0x131e57(_0x2a5eea(0x194),_0x2d2ad2,_0x515053);if(_0x4f50e8){if(_0x197efa&&_0x197efa[_0x2a5eea(0x1a6)]){this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]=_0x2d2ad2;const _0x182847=_0x197efa[_0x2a5eea(0x1a6)][_0x2a5eea(0x169)](!0x0);_0xd7441b(_0x182847,_0x2a5eea(0x194),_0x2d2ad2),_0xd7441b(_0x182847,_0x2a5eea(0x189),_0x2a5eea(0x19d)),_0x188caf(_0x4f50e8,_0x182847);}else _0x300672(_0x4f50e8);}}if(_0x28ba00(_0x2a5eea(0x1a1),null,_0x515053)[_0x2a5eea(0x19e)](_0x30a92e=>{const _0x2b4c0c=_0x2a5eea,_0x4f56ab=_0x3ab8e2(_0x30a92e,_0x2b4c0c(0x1a1)),_0x57610e=_0x131e57(_0x2b4c0c(0x194),_0x4f56ab,_0x515053);_0x57610e&&_0x2e2f26(_0x57610e,_0x30a92e);}),_0x28ba00(_0x2a5eea(0x194),_0x2a5eea(0x173),_0x515053)[_0x2a5eea(0x19e)](_0x215ca6=>{const _0xb2f08e=_0x2a5eea,_0x4781bb=this[_0xb2f08e(0x190)](_0x215ca6);_0xd7441b(_0x215ca6,_0xb2f08e(0x194),_0x4781bb),this[_0xb2f08e(0x1ac)][_0xb2f08e(0x167)][_0xb2f08e(0x18d)](_0x4781bb);}),this[_0x2a5eea(0x186)](_0x515053),_0x197efa&&_0x197efa[_0x2a5eea(0x1a0)]&&this[_0x2a5eea(0x196)](_0x515053,_0x197efa[_0x2a5eea(0x1aa)]||0x0),_0x197efa&&_0x197efa[_0x2a5eea(0x17b)]&&this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]){let _0x28e744=_0x131e57(_0x2a5eea(0x194),this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)],_0x515053);for(;_0x28e744;)_0x5ecd77(_0x28e744),_0x28e744=_0x28e744[_0x2a5eea(0x18c)];}return{'parsedContent':_0x515053,'newNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x167)],'modifiedNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)],'removedNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]};}[_0x25d577(0x17d)](_0xc9da7f,_0x4b2771,_0x4021a1){const _0x5c1d46=_0x25d577;for(const _0x1a0743 of _0x4b2771){const _0xbed29b=this[_0x5c1d46(0x190)](_0x1a0743);_0xd7441b(_0x1a0743,_0x5c1d46(0x194),_0xbed29b),this[_0x5c1d46(0x1ac)][_0x5c1d46(0x167)][_0x5c1d46(0x18d)](_0xbed29b),this[_0x5c1d46(0x1ac)][_0x5c1d46(0x17c)]=_0xbed29b;}const _0x3b68da=_0x5c1d46(0x193)===_0x4021a1||_0x5c1d46(0x191)===_0x4021a1?_0x4b2771[_0x5c1d46(0x18f)]():_0x4b2771;for(const _0x1514cc of _0x3b68da)_0x26809c(_0xc9da7f,_0x1514cc,_0x4021a1);}[_0x25d577(0x1a4)](_0x4d5c46,_0x30c573){const _0x11774e=_0x25d577;if(!_0x4d5c46)return;if(_0x12af87(_0x4d5c46,_0x30c573))return;const _0x239d68=this[_0x11774e(0x190)](_0x4d5c46);_0xd7441b(_0x30c573,_0x11774e(0x194),_0x239d68),this[_0x11774e(0x1ac)][_0x11774e(0x1a8)][_0x11774e(0x18d)](_0x239d68),this[_0x11774e(0x1ac)][_0x11774e(0x17c)]=_0x239d68,_0x188caf(_0x4d5c46,_0x30c573[_0x11774e(0x169)](!0x0));}[_0x25d577(0x192)](_0x3adac4,_0x404f3b,_0x462124){const _0x27fca7=_0x25d577,_0x4da100=this[_0x27fca7(0x1a2)](_0x3adac4,!0x1);if(_0x4da100){const _0x434af3=this[_0x27fca7(0x17a)](_0x4da100),_0x1fa0b3=_0x131e57(_0x27fca7(0x194),_0x434af3,_0x462124);if(_0x1fa0b3)return[_0x1fa0b3,_0x27fca7(0x191)];this[_0x27fca7(0x1ac)][_0x27fca7(0x181)][_0x27fca7(0x18d)](_0x434af3);}const _0x5ed11b=this[_0x27fca7(0x16f)](_0x3adac4,!0x1);if(_0x5ed11b){const _0xfbae7d=this[_0x27fca7(0x17a)](_0x5ed11b),_0x12a708=_0x131e57(_0x27fca7(0x194),_0xfbae7d,_0x462124);if(_0x12a708)return[_0x12a708,_0x27fca7(0x1ad)];this[_0x27fca7(0x1ac)][_0x27fca7(0x181)][_0x27fca7(0x18d)](_0xfbae7d);}return _0x404f3b?_0x3adac4[_0x27fca7(0x17e)]?this[_0x27fca7(0x197)](_0x3adac4,_0x462124):[_0x462124[_0x27fca7(0x199)][_0x462124[_0x27fca7(0x199)][_0x27fca7(0x18a)]-0x1],_0x27fca7(0x191)]:[_0x462124[_0x27fca7(0x199)][0x0],_0x27fca7(0x1ad)];}[_0x25d577(0x197)](_0x227d96,_0x4e710f){const _0x599c9d=_0x25d577,_0x4ea07a=[],_0x1cbabf=this[_0x599c9d(0x1a2)](_0x227d96,!0x0);if(_0x1cbabf){const _0x306c10=this[_0x599c9d(0x17a)](_0x1cbabf),_0x4ea925=_0x131e57(_0x599c9d(0x194),_0x306c10,_0x4e710f);_0x4ea925&&_0x4ea07a[_0x599c9d(0x18d)]([_0x4ea925,_0x599c9d(0x191)]);}const _0x326255=this[_0x599c9d(0x16f)](_0x227d96,!0x0);if(_0x326255){const _0x136850=this[_0x599c9d(0x17a)](_0x326255),_0x3b02b1=_0x131e57(_0x599c9d(0x194),_0x136850,_0x4e710f);_0x3b02b1&&_0x4ea07a[_0x599c9d(0x18d)]([_0x3b02b1,_0x599c9d(0x1ad)]);}if(_0x4ea07a[_0x599c9d(0x18a)]>0x1)return _0x350728(_0x4ea07a[0x0][0x0])<=_0x350728(_0x4ea07a[0x1][0x0])?_0x4ea07a[0x0]:_0x4ea07a[0x1];return 0x1===_0x4ea07a[_0x599c9d(0x18a)]?_0x4ea07a[0x0]:[_0x4e710f[_0x599c9d(0x19a)],_0x599c9d(0x191)];}[_0x25d577(0x16f)](_0x31299c,_0x157f19){const _0x360397=_0x25d577;let _0x408340=_0x31299c[_0x360397(0x17e)],_0x5d91d1=null,_0x59035a=!0x1;for(;_0x408340;){if(_0x5d5995(_0x408340)){if(this[_0x360397(0x187)](_0x408340)&&(_0x5d91d1=_0x408340),this[_0x360397(0x1a9)](_0x408340)&&_0x157f19&&!_0x59035a){_0x59035a=!0x0,_0x408340=_0x408340[_0x360397(0x17e)];continue;}break;}const _0x1a8b5a=_0x3ab8e2(_0x408340,_0x360397(0x194));if(_0x1a8b5a&&_0x360397(0x173)!==_0x1a8b5a&&this[_0x360397(0x1a7)][_0x360397(0x183)](_0x1a8b5a)){_0x5d91d1=_0x408340;break;}_0x408340=_0x408340[_0x360397(0x17e)];}return _0x5d91d1;}[_0x25d577(0x1a2)](_0x223afc,_0x706229){const _0xadb78c=_0x25d577;let _0x4dba38=_0x223afc[_0xadb78c(0x198)],_0x369f1b=null,_0x5d4edd=!0x1;for(;_0x4dba38;){if(_0x5d5995(_0x4dba38)){if(this[_0xadb78c(0x187)](_0x4dba38)&&(_0x369f1b=_0x4dba38),this[_0xadb78c(0x1a9)](_0x4dba38)&&_0x706229&&!_0x5d4edd){_0x5d4edd=!0x0,_0x4dba38=_0x4dba38[_0xadb78c(0x198)];continue;}break;}const _0x3ed9d9=_0x3ab8e2(_0x4dba38,_0xadb78c(0x194));if(_0x3ed9d9&&_0xadb78c(0x173)!==_0x3ed9d9&&this[_0xadb78c(0x1a7)][_0xadb78c(0x183)](_0x3ed9d9)){_0x369f1b=_0x4dba38;break;}_0x4dba38=_0x4dba38[_0xadb78c(0x198)];}return _0x369f1b;}[_0x25d577(0x18b)](_0x10dd7e){const _0xa402ae=_0x25d577;_0x3a37b2(_0x10dd7e)&&_0x28ba00(_0xa402ae(0x194),null,_0x10dd7e)[_0xa402ae(0x19e)](_0x4856ae=>{const _0x6678e6=_0xa402ae;if(this[_0x6678e6(0x175)](_0x4856ae)&&!this[_0x6678e6(0x170)](_0x4856ae)){const _0x2ef549=_0x3ab8e2(_0x4856ae,_0x6678e6(0x194));_0xd7441b(_0x4856ae,_0x6678e6(0x1a1),_0x2ef549),_0xd7441b(_0x4856ae,_0x6678e6(0x194),null);}});}[_0x25d577(0x17a)](_0x3388cc){const _0x3d4e90=_0x25d577;if(!_0x3388cc)return null;if(_0x3a37b2(_0x3388cc))return _0x3ab8e2(_0x3388cc,_0x3d4e90(0x194));if(_0x5d5995(_0x3388cc)){const _0x3fff7e=_0x2aa58a(_0x3388cc)[_0x3d4e90(0x182)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3fff7e&&_0x3fff7e[0x1])return _0x3fff7e[0x1];}return null;}[_0x25d577(0x171)](_0x3acbd0){const _0x40d45b=_0x25d577;if(_0x5d5995(_0x3acbd0)){const _0x292215=_0x2aa58a(_0x3acbd0)[_0x40d45b(0x182)](/removed[\s*-]data-id="([^"]+)"/);_0x292215&&_0x292215[0x1]&&this[_0x40d45b(0x1ac)][_0x40d45b(0x172)][_0x40d45b(0x18d)](_0x292215[0x1]);}}[_0x25d577(0x190)](_0x503d69){const _0x3af5db=_0x25d577;return this[_0x3af5db(0x175)](_0x503d69)?_0x3ab8e2(_0x503d69,_0x3af5db(0x194)):this[_0x3af5db(0x184)]();}[_0x25d577(0x186)](_0x2e3448){const _0x3fd6f8=_0x25d577;_0x33b714(_0x2e3448)[_0x3fd6f8(0x180)](_0x475a24=>this[_0x3fd6f8(0x187)](_0x475a24)||this[_0x3fd6f8(0x1a9)](_0x475a24))[_0x3fd6f8(0x19e)](_0x1e70a4=>{_0x300672(_0x1e70a4);});}[_0x25d577(0x1a3)](_0x15a09c){const _0xcc20ab=_0x25d577,_0x2a6bd8=_0x15a09c[_0xcc20ab(0x199)],_0x4923c1=_0x2a6bd8[_0x2a6bd8[_0xcc20ab(0x18a)]-0x1];_0x4923c1&&_0x3a37b2(_0x4923c1)&&_0xd7441b(_0x4923c1,_0xcc20ab(0x168),_0xcc20ab(0x19d));}[_0x25d577(0x196)](_0x197164,_0x13a0ca){const _0x436aa8=_0x25d577,_0x3776bf=_0x131e57(_0x436aa8(0x168),_0x436aa8(0x19d),_0x197164);if(!_0x3776bf)return;const _0x5445cf=_0x5b927a(_0x3776bf)[_0x436aa8(0x19b)](0x0,-0x1),_0xd3fffb=_0x5445cf[_0x436aa8(0x18a)];let _0x182f23=_0x3776bf;if(_0xd3fffb>_0x13a0ca){let _0x56e485=_0xd3fffb,_0x386ad8=null;for(;_0x56e485>_0x13a0ca&&_0x56e485>=0x0;)_0x56e485--,_0x386ad8=_0x5445cf[_0x56e485];_0x386ad8&&(_0x182f23=_0x386ad8,_0xd7441b(_0x3776bf,_0x436aa8(0x168),null),_0xd7441b(_0x386ad8,_0x436aa8(0x168),_0x436aa8(0x19d)));}else{if(_0xd3fffb<_0x13a0ca){let _0x4b60b4=_0xd3fffb,_0xfe47cb=_0x3776bf;for(;_0x4b60b4<_0x13a0ca;){const _0x4253ea=_0xfe47cb[_0x436aa8(0x199)][_0x436aa8(0x180)](_0x453e6b=>_0x3a37b2(_0x453e6b));if(0x0===_0x4253ea[_0x436aa8(0x18a)])break;_0x4b60b4++,_0xfe47cb=_0x4253ea[_0x4253ea[_0x436aa8(0x18a)]-0x1];}_0xfe47cb&&(_0x182f23=_0xfe47cb,_0xd7441b(_0x3776bf,_0x436aa8(0x168),null),_0xd7441b(_0xfe47cb,_0x436aa8(0x168),_0x436aa8(0x19d)));}}let _0x1c6a2c=_0x182f23;for(;_0x1c6a2c;){for(;_0x1c6a2c[_0x436aa8(0x17e)];)_0x1c6a2c=_0x1c6a2c[_0x436aa8(0x17e)],_0x3a37b2(_0x1c6a2c)&&_0xd7441b(_0x1c6a2c,_0x436aa8(0x168),_0x436aa8(0x19d));_0x1c6a2c=_0x1c6a2c[_0x436aa8(0x18c)];}}[_0x25d577(0x177)](_0x1692f8){const _0x4d443e=_0x25d577;return Boolean(_0x4d443e(0x173)===_0x3ab8e2(_0x1692f8,_0x4d443e(0x194)));}[_0x25d577(0x175)](_0x54100f){const _0x18d0a8=_0x25d577;return Boolean((_0x3ab8e2(_0x54100f,_0x18d0a8(0x194))||'')[_0x18d0a8(0x18a)]>0x0&&_0x18d0a8(0x173)!==_0x3ab8e2(_0x54100f,_0x18d0a8(0x194)));}[_0x25d577(0x187)](_0x24daf8){const _0x5eefe8=_0x25d577;return!!_0x24daf8&&Boolean(_0x5d5995(_0x24daf8)&&_0x2aa58a(_0x24daf8)[_0x5eefe8(0x182)](/removed[\s*-]data-id="[^"]+"/));}[_0x25d577(0x170)](_0x3007b8){const _0x2298cb=_0x25d577;let _0x30575f=_0x3007b8[_0x2298cb(0x18c)];for(;_0x30575f;){if(_0x3ab8e2(_0x30575f,_0x2298cb(0x1a1)))return!0x0;_0x30575f=_0x30575f[_0x2298cb(0x18c)];}return!0x1;}[_0x25d577(0x1a9)](_0x4feb7d){const _0x29c4ef=_0x25d577;return Boolean(_0x5d5995(_0x4feb7d)&&_0x2aa58a(_0x4feb7d)[_0x29c4ef(0x182)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5836(){const _0x5801bc=['_isExistingContentComment','markUnstableElementsDepth','9020270UTLLyT','_touchedNodesState','beforebegin','newIds','data-unstable','cloneNode','nodeType','4VKAiYP','514634uDMaYe','877170CIIhGs','merge','_findNextElementWithDataId','_hasWrappedParent','_storeDeletedElementIds','removedIds','new-element','map','_isExistingNode','450oyrFxe','_isNewNode','5528ADmWLj','from','_getNodeDataId','cutAfterLastChange','lastTouchedId','_insertNodes','nextSibling','splice','filter','invalidIds','match','has','_generateUid','539680JhqRiS','_removeSpecialComments','_isDelNode','trim','data-removed','length','_markWrappedElements','parentNode','push','includes','reverse','_getUid','afterend','_findReferenceNode','afterbegin','data-id','15738rvcfzl','_markUnstableElements','_findFallbackReferenceNode','previousSibling','childNodes','lastChild','slice','4554SATSaw','true','forEach','1226139ombPNn','markUnstableElements','data-wrapped-id','_findPrevElementWithDataId','_markLastTagElementUnstable','_replaceNode','indexOf','replaceRemovedWith','_existingDataIds','modifiedIds'];_0x5836=function(){return _0x5801bc;};return _0x5836();}
|
|
23
|
+
const _0x11de9e=_0x2bb1;(function(_0x508a13,_0x4ab57b){const _0x24d5b1=_0x2bb1,_0xfbf4b1=_0x508a13();while(!![]){try{const _0x20a375=-parseInt(_0x24d5b1(0xd2))/0x1*(parseInt(_0x24d5b1(0xd9))/0x2)+-parseInt(_0x24d5b1(0xf6))/0x3+-parseInt(_0x24d5b1(0xfb))/0x4*(-parseInt(_0x24d5b1(0x10d))/0x5)+-parseInt(_0x24d5b1(0xf2))/0x6*(parseInt(_0x24d5b1(0xfa))/0x7)+parseInt(_0x24d5b1(0xc4))/0x8*(parseInt(_0x24d5b1(0x10b))/0x9)+-parseInt(_0x24d5b1(0x100))/0xa*(-parseInt(_0x24d5b1(0xcd))/0xb)+parseInt(_0x24d5b1(0xfe))/0xc*(-parseInt(_0x24d5b1(0xf9))/0xd);if(_0x20a375===_0x4ab57b)break;else _0xfbf4b1['push'](_0xfbf4b1['shift']());}catch(_0x1a41d5){_0xfbf4b1['push'](_0xfbf4b1['shift']());}}}(_0x34d4,0xb3fd5));function _0x34d4(){const _0x1251a2=['7woaFBY','137072pwAewv','_markUnstableElements','_findFallbackReferenceNode','12NRTmJk','afterbegin','927370tlSqck','push','slice','merge','data-wrapped-id','childNodes','reverse','_markLastTagElementUnstable','length','_isExistingNode','cloneNode','3027771HqwPKx','data-id','160YBJiMO','32coZnCA','data-unstable','_isExistingContentComment','splice','from','nextSibling','parentNode','markUnstableElements','indexOf','11LccgGv','_removeSpecialComments','_findReferenceNode','removedIds','true','1HsqePq','_touchedNodesState','beforebegin','_markWrappedElements','data-removed','afterend','_isNewNode','2225836WmSNoW','lastChild','markUnstableElementsDepth','previousSibling','includes','map','_insertNodes','filter','_replaceNode','replaceRemovedWith','_getNodeDataId','_existingDataIds','_findPrevElementWithDataId','_findNextElementWithDataId','invalidIds','cutAfterLastChange','has','match','forEach','nodeType','modifiedIds','_hasWrappedParent','new-element','lastTouchedId','_storeDeletedElementIds','1164882PxxRjn','_isDelNode','_generateUid','_getUid','1025616WJruFl','newIds','trim','1934595lWpeXe'];_0x34d4=function(){return _0x1251a2;};return _0x34d4();}import{ObservableMixin as _0x24d659,uid as _0x286459}from'ckeditor5/src/utils.js';function _0x2bb1(_0x4a2c41,_0x33c0f7){const _0x34d448=_0x34d4();return _0x2bb1=function(_0x2bb1e5,_0x2c26e0){_0x2bb1e5=_0x2bb1e5-0xc4;let _0x3d50c8=_0x34d448[_0x2bb1e5];return _0x3d50c8;},_0x2bb1(_0x4a2c41,_0x33c0f7);}import{findAllByAttribute as _0x469be7,findByAttribute as _0x203772,getAttribute as _0xbf53f2,isComment as _0xb10e39,isTag as _0x31a714,insertElement as _0x54a7b6,moveElement as _0x429156,removeElement as _0x438fd0,replaceElement as _0x3ab67b,serialize as _0x243c05,setAttribute as _0x4c04ff,clone as _0xcbd285,findAllComments as _0x39d7b2,getParents as _0x5b1fd7,getNodeNestingLevel as _0xe646f0,areNodesSame as _0x5766b9,removeElementsAfter as _0x12cb4a}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x24d659(){[_0x11de9e(0xf4)];[_0x11de9e(0xd3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x11de9e(0xe4)]=new Set();constructor(_0x557b2c){const _0x4494d9=_0x11de9e;super(),this[_0x4494d9(0xf4)]=_0x557b2c||_0x286459;}[_0x11de9e(0x103)](_0x187502,_0x4a4073,_0x36cd15){const _0x475836=_0x11de9e,_0x191ba5=_0xcbd285(_0x187502);if(0x0===_0x4a4073[_0x475836(0x105)][_0x475836(0x108)]){const _0x2b2ad9=[];return _0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x191ba5)[_0x475836(0xeb)](_0x302988=>{const _0x357a9f=_0x475836,_0x5454f6=this[_0x357a9f(0xf4)]();_0x4c04ff(_0x302988,_0x357a9f(0x10c),_0x5454f6),_0x2b2ad9[_0x357a9f(0x101)](_0x5454f6);}),this[_0x475836(0xce)](_0x191ba5),{'parsedContent':_0x191ba5,'newNodeIds':_0x2b2ad9,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0x107)](_0x191ba5),this[_0x475836(0xd3)][_0x475836(0xf7)]=[],this[_0x475836(0xd3)][_0x475836(0xed)]=[],this[_0x475836(0xd3)][_0x475836(0xd0)]=[],this[_0x475836(0xd3)][_0x475836(0xe7)]=[],this[_0x475836(0xd3)][_0x475836(0xf0)]=null,this[_0x475836(0xe4)]=new Set(_0x469be7(_0x475836(0x10c),null,_0x4a4073)[_0x475836(0xde)](_0x4f9703=>_0xbf53f2(_0x4f9703,_0x475836(0x10c)))[_0x475836(0xe0)](_0x222f9d=>!!_0x222f9d));let _0x21ee67=-0x1,_0x3d7967=!0x1;const _0x1509fb=_0x191ba5[_0x475836(0x105)],_0x59c7bf=Array[_0x475836(0xc8)](_0x1509fb)[_0x475836(0xe0)](_0x47c0d1=>!(0x3===_0x47c0d1[_0x475836(0xec)]&&''===_0x243c05(_0x47c0d1)[_0x475836(0xf8)]())),_0x3b2879=_0x59c7bf[_0x475836(0x108)];for(let _0x3a9926=0x0;_0x3a9926<_0x3b2879;_0x3a9926++){const _0x1f758a=_0x59c7bf[_0x3a9926],_0x5a5106=_0x59c7bf[_0x3a9926+0x1];if(this[_0x475836(0xd8)](_0x1f758a)){if(-0x1===_0x21ee67&&(_0x21ee67=_0x3a9926),this[_0x475836(0xd5)](_0x1f758a),!this[_0x475836(0xd8)](_0x5a5106)){const [_0x1bdbfb,_0x27fbf9]=this[_0x475836(0xcf)](_0x1f758a,_0x3d7967,_0x4a4073);if(_0x1bdbfb){const _0x6a9e17=Array[_0x475836(0xc8)](_0x59c7bf)[_0x475836(0x102)](_0x21ee67,_0x3a9926+0x1);this[_0x475836(0xdf)](_0x1bdbfb,_0x6a9e17,_0x27fbf9),_0x21ee67=-0x1;}}}else{if(this[_0x475836(0xc6)](_0x1f758a))_0x3d7967=!0x0;else{if(this[_0x475836(0x109)](_0x1f758a)){const _0x5ba1d5=_0xbf53f2(_0x1f758a,_0x475836(0x10c));if(_0x5ba1d5&&this[_0x475836(0xe4)][_0x475836(0xe9)](_0x5ba1d5)){const _0x59de86=_0x203772(_0x475836(0x10c),_0x5ba1d5,_0x4a4073);this[_0x475836(0xe1)](_0x59de86,_0x1f758a);}if(this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xdd)](_0x5ba1d5)){const _0x55cd3b=this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xcc)](_0x5ba1d5);this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xc7)](_0x55cd3b,0x1);}}else{if(this[_0x475836(0xf3)](_0x1f758a)){const _0x28393e=_0xbf53f2(_0x1f758a,_0x475836(0x10c));this[_0x475836(0xd3)][_0x475836(0xed)][_0x475836(0xdd)](_0x28393e)||this[_0x475836(0xf1)](_0x1f758a);}}}}}for(const _0x3f63be of this[_0x475836(0xd3)][_0x475836(0xd0)]){const _0x958dde=_0x203772(_0x475836(0x10c),_0x3f63be,_0x4a4073);if(_0x958dde){if(_0x36cd15&&_0x36cd15[_0x475836(0xe2)]){this[_0x475836(0xd3)][_0x475836(0xf0)]=_0x3f63be;const _0x5f52d6=_0x36cd15[_0x475836(0xe2)][_0x475836(0x10a)](!0x0);_0x4c04ff(_0x5f52d6,_0x475836(0x10c),_0x3f63be),_0x4c04ff(_0x5f52d6,_0x475836(0xd6),_0x475836(0xd1)),_0x3ab67b(_0x958dde,_0x5f52d6);}else _0x438fd0(_0x958dde);}}if(_0x469be7(_0x475836(0x104),null,_0x4a4073)[_0x475836(0xeb)](_0xc3df39=>{const _0x268727=_0x475836,_0x1a1cba=_0xbf53f2(_0xc3df39,_0x268727(0x104)),_0x3268d5=_0x203772(_0x268727(0x10c),_0x1a1cba,_0x4a4073);_0x3268d5&&_0x429156(_0x3268d5,_0xc3df39);}),_0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x4a4073)[_0x475836(0xeb)](_0x4bc8d0=>{const _0x1787f8=_0x475836,_0x2b40b7=this[_0x1787f8(0xf5)](_0x4bc8d0);_0x4c04ff(_0x4bc8d0,_0x1787f8(0x10c),_0x2b40b7),this[_0x1787f8(0xd3)][_0x1787f8(0xf7)][_0x1787f8(0x101)](_0x2b40b7);}),this[_0x475836(0xce)](_0x4a4073),_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0xfc)](_0x4a4073,_0x36cd15[_0x475836(0xdb)]||0x0),_0x36cd15&&_0x36cd15[_0x475836(0xe8)]&&this[_0x475836(0xd3)][_0x475836(0xf0)]){let _0x35155f=_0x203772(_0x475836(0x10c),this[_0x475836(0xd3)][_0x475836(0xf0)],_0x4a4073);for(;_0x35155f;)_0x12cb4a(_0x35155f),_0x35155f=_0x35155f[_0x475836(0xca)];}return{'parsedContent':_0x4a4073,'newNodeIds':this[_0x475836(0xd3)][_0x475836(0xf7)],'modifiedNodeIds':this[_0x475836(0xd3)][_0x475836(0xed)],'removedNodeIds':this[_0x475836(0xd3)][_0x475836(0xd0)]};}[_0x11de9e(0xdf)](_0x158c3c,_0x370e80,_0x22d351){const _0x178d97=_0x11de9e;for(const _0x2a8962 of _0x370e80){const _0x398a42=this[_0x178d97(0xf5)](_0x2a8962);_0x4c04ff(_0x2a8962,_0x178d97(0x10c),_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf7)][_0x178d97(0x101)](_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf0)]=_0x398a42;}const _0x3a8069=_0x178d97(0xff)===_0x22d351||_0x178d97(0xd7)===_0x22d351?_0x370e80[_0x178d97(0x106)]():_0x370e80;for(const _0xf69eb4 of _0x3a8069)_0x54a7b6(_0x158c3c,_0xf69eb4,_0x22d351);}[_0x11de9e(0xe1)](_0x23e585,_0x2c3151){const _0x3356b6=_0x11de9e;if(!_0x23e585)return;if(_0x5766b9(_0x23e585,_0x2c3151))return;const _0x33c8cb=this[_0x3356b6(0xf5)](_0x23e585);_0x4c04ff(_0x2c3151,_0x3356b6(0x10c),_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xed)][_0x3356b6(0x101)](_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xf0)]=_0x33c8cb,_0x3ab67b(_0x23e585,_0x2c3151[_0x3356b6(0x10a)](!0x0));}[_0x11de9e(0xcf)](_0x16de4f,_0x253e2b,_0x265b01){const _0x49e472=_0x11de9e,_0x43a0ec=this[_0x49e472(0xe5)](_0x16de4f,!0x1);if(_0x43a0ec){const _0x1b9b63=this[_0x49e472(0xe3)](_0x43a0ec),_0x3a6032=_0x203772(_0x49e472(0x10c),_0x1b9b63,_0x265b01);if(_0x3a6032)return[_0x3a6032,_0x49e472(0xd7)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1b9b63);}const _0x355641=this[_0x49e472(0xe6)](_0x16de4f,!0x1);if(_0x355641){const _0x1e09cd=this[_0x49e472(0xe3)](_0x355641),_0x2dfa34=_0x203772(_0x49e472(0x10c),_0x1e09cd,_0x265b01);if(_0x2dfa34)return[_0x2dfa34,_0x49e472(0xd4)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1e09cd);}return _0x253e2b?_0x16de4f[_0x49e472(0xc9)]?this[_0x49e472(0xfd)](_0x16de4f,_0x265b01):[_0x265b01[_0x49e472(0x105)][_0x265b01[_0x49e472(0x105)][_0x49e472(0x108)]-0x1],_0x49e472(0xd7)]:[_0x265b01[_0x49e472(0x105)][0x0],_0x49e472(0xd4)];}[_0x11de9e(0xfd)](_0x178362,_0x17f072){const _0x36559b=_0x11de9e,_0x3bb4b8=[],_0x1362d2=this[_0x36559b(0xe5)](_0x178362,!0x0);if(_0x1362d2){const _0x2f48b8=this[_0x36559b(0xe3)](_0x1362d2),_0x4749e0=_0x203772(_0x36559b(0x10c),_0x2f48b8,_0x17f072);_0x4749e0&&_0x3bb4b8[_0x36559b(0x101)]([_0x4749e0,_0x36559b(0xd7)]);}const _0x13c5d7=this[_0x36559b(0xe6)](_0x178362,!0x0);if(_0x13c5d7){const _0x3f59d1=this[_0x36559b(0xe3)](_0x13c5d7),_0x1044ce=_0x203772(_0x36559b(0x10c),_0x3f59d1,_0x17f072);_0x1044ce&&_0x3bb4b8[_0x36559b(0x101)]([_0x1044ce,_0x36559b(0xd4)]);}if(_0x3bb4b8[_0x36559b(0x108)]>0x1)return _0xe646f0(_0x3bb4b8[0x0][0x0])<=_0xe646f0(_0x3bb4b8[0x1][0x0])?_0x3bb4b8[0x0]:_0x3bb4b8[0x1];return 0x1===_0x3bb4b8[_0x36559b(0x108)]?_0x3bb4b8[0x0]:[_0x17f072[_0x36559b(0xda)],_0x36559b(0xd7)];}[_0x11de9e(0xe6)](_0x279439,_0x1451cf){const _0x507a88=_0x11de9e;let _0x3e1a7=_0x279439[_0x507a88(0xc9)],_0x452e24=null,_0x358e29=!0x1;for(;_0x3e1a7;){if(_0xb10e39(_0x3e1a7)){if(this[_0x507a88(0xf3)](_0x3e1a7)&&(_0x452e24=_0x3e1a7),this[_0x507a88(0xc6)](_0x3e1a7)&&_0x1451cf&&!_0x358e29){_0x358e29=!0x0,_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];continue;}break;}const _0x3828a6=_0xbf53f2(_0x3e1a7,_0x507a88(0x10c));if(_0x3828a6&&_0x507a88(0xef)!==_0x3828a6&&this[_0x507a88(0xe4)][_0x507a88(0xe9)](_0x3828a6)){_0x452e24=_0x3e1a7;break;}_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];}return _0x452e24;}[_0x11de9e(0xe5)](_0x10cb98,_0x5b2bcc){const _0x5ed628=_0x11de9e;let _0x38d2a7=_0x10cb98[_0x5ed628(0xdc)],_0x4dfc8f=null,_0x39b47c=!0x1;for(;_0x38d2a7;){if(_0xb10e39(_0x38d2a7)){if(this[_0x5ed628(0xf3)](_0x38d2a7)&&(_0x4dfc8f=_0x38d2a7),this[_0x5ed628(0xc6)](_0x38d2a7)&&_0x5b2bcc&&!_0x39b47c){_0x39b47c=!0x0,_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];continue;}break;}const _0x1e0dba=_0xbf53f2(_0x38d2a7,_0x5ed628(0x10c));if(_0x1e0dba&&_0x5ed628(0xef)!==_0x1e0dba&&this[_0x5ed628(0xe4)][_0x5ed628(0xe9)](_0x1e0dba)){_0x4dfc8f=_0x38d2a7;break;}_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];}return _0x4dfc8f;}[_0x11de9e(0xd5)](_0x1a0901){const _0x21bbe9=_0x11de9e;_0x31a714(_0x1a0901)&&_0x469be7(_0x21bbe9(0x10c),null,_0x1a0901)[_0x21bbe9(0xeb)](_0x431780=>{const _0x37b3b8=_0x21bbe9;if(this[_0x37b3b8(0x109)](_0x431780)&&!this[_0x37b3b8(0xee)](_0x431780)){const _0x5566ad=_0xbf53f2(_0x431780,_0x37b3b8(0x10c));_0x4c04ff(_0x431780,_0x37b3b8(0x104),_0x5566ad),_0x4c04ff(_0x431780,_0x37b3b8(0x10c),null);}});}[_0x11de9e(0xe3)](_0xac06e1){const _0x28b6ab=_0x11de9e;if(!_0xac06e1)return null;if(_0x31a714(_0xac06e1))return _0xbf53f2(_0xac06e1,_0x28b6ab(0x10c));if(_0xb10e39(_0xac06e1)){const _0x3934bb=_0x243c05(_0xac06e1)[_0x28b6ab(0xea)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3934bb&&_0x3934bb[0x1])return _0x3934bb[0x1];}return null;}[_0x11de9e(0xf1)](_0x4a4ebc){const _0x626c54=_0x11de9e;if(_0xb10e39(_0x4a4ebc)){const _0x136f38=_0x243c05(_0x4a4ebc)[_0x626c54(0xea)](/removed[\s*-]data-id="([^"]+)"/);_0x136f38&&_0x136f38[0x1]&&this[_0x626c54(0xd3)][_0x626c54(0xd0)][_0x626c54(0x101)](_0x136f38[0x1]);}}[_0x11de9e(0xf5)](_0x381734){const _0x2a652e=_0x11de9e;return this[_0x2a652e(0x109)](_0x381734)?_0xbf53f2(_0x381734,_0x2a652e(0x10c)):this[_0x2a652e(0xf4)]();}[_0x11de9e(0xce)](_0x5e6de3){const _0x623879=_0x11de9e;_0x39d7b2(_0x5e6de3)[_0x623879(0xe0)](_0x5e6a97=>this[_0x623879(0xf3)](_0x5e6a97)||this[_0x623879(0xc6)](_0x5e6a97))[_0x623879(0xeb)](_0x5a5746=>{_0x438fd0(_0x5a5746);});}[_0x11de9e(0x107)](_0x21e9eb){const _0x211efd=_0x11de9e,_0x3af43f=_0x21e9eb[_0x211efd(0x105)],_0x50aebc=_0x3af43f[_0x3af43f[_0x211efd(0x108)]-0x1];_0x50aebc&&_0x31a714(_0x50aebc)&&_0x4c04ff(_0x50aebc,_0x211efd(0xc5),_0x211efd(0xd1));}[_0x11de9e(0xfc)](_0x26ec21,_0x455abf){const _0x41cc60=_0x11de9e,_0xf8faa9=_0x203772(_0x41cc60(0xc5),_0x41cc60(0xd1),_0x26ec21);if(!_0xf8faa9)return;const _0xa6a619=_0x5b1fd7(_0xf8faa9)[_0x41cc60(0x102)](0x0,-0x1),_0x41e3ae=_0xa6a619[_0x41cc60(0x108)];let _0x1222ef=_0xf8faa9;if(_0x41e3ae>_0x455abf){let _0x328ee8=_0x41e3ae,_0x3e0d7a=null;for(;_0x328ee8>_0x455abf&&_0x328ee8>=0x0;)_0x328ee8--,_0x3e0d7a=_0xa6a619[_0x328ee8];_0x3e0d7a&&(_0x1222ef=_0x3e0d7a,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x3e0d7a,_0x41cc60(0xc5),_0x41cc60(0xd1)));}else{if(_0x41e3ae<_0x455abf){let _0x52cc39=_0x41e3ae,_0x395eb4=_0xf8faa9;for(;_0x52cc39<_0x455abf;){const _0x4b8cf4=_0x395eb4[_0x41cc60(0x105)][_0x41cc60(0xe0)](_0x4996f0=>_0x31a714(_0x4996f0));if(0x0===_0x4b8cf4[_0x41cc60(0x108)])break;_0x52cc39++,_0x395eb4=_0x4b8cf4[_0x4b8cf4[_0x41cc60(0x108)]-0x1];}_0x395eb4&&(_0x1222ef=_0x395eb4,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x395eb4,_0x41cc60(0xc5),_0x41cc60(0xd1)));}}let _0x3491f1=_0x1222ef;for(;_0x3491f1;){for(;_0x3491f1[_0x41cc60(0xc9)];)_0x3491f1=_0x3491f1[_0x41cc60(0xc9)],_0x31a714(_0x3491f1)&&_0x4c04ff(_0x3491f1,_0x41cc60(0xc5),_0x41cc60(0xd1));_0x3491f1=_0x3491f1[_0x41cc60(0xca)];}}[_0x11de9e(0xd8)](_0x7eb748){const _0x59eecb=_0x11de9e;return Boolean(_0x59eecb(0xef)===_0xbf53f2(_0x7eb748,_0x59eecb(0x10c)));}[_0x11de9e(0x109)](_0x3f8296){const _0x4ae19f=_0x11de9e;return Boolean((_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c))||'')[_0x4ae19f(0x108)]>0x0&&_0x4ae19f(0xef)!==_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c)));}[_0x11de9e(0xf3)](_0x31461a){const _0x362751=_0x11de9e;return!!_0x31461a&&Boolean(_0xb10e39(_0x31461a)&&_0x243c05(_0x31461a)[_0x362751(0xea)](/removed[\s*-]data-id="[^"]+"/));}[_0x11de9e(0xee)](_0x55d666){const _0x44fb34=_0x11de9e;let _0x32d31f=_0x55d666[_0x44fb34(0xca)];for(;_0x32d31f;){if(_0xbf53f2(_0x32d31f,_0x44fb34(0x104)))return!0x0;_0x32d31f=_0x32d31f[_0x44fb34(0xca)];}return!0x1;}[_0x11de9e(0xc6)](_0x1c20e7){const _0x3109e5=_0x11de9e;return Boolean(_0xb10e39(_0x1c20e7)&&_0x243c05(_0x1c20e7)[_0x3109e5(0xea)](/\s*existing[\s*-](content|document)\s*/g));}}
|