@ckeditor/ckeditor5-ai 47.7.0-alpha.4 → 47.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/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/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x502628=_0x45a8;(function(_0x5b9afc,_0x23077f){const _0x7fceac=_0x45a8,_0x472322=_0x5b9afc();while(!![]){try{const _0x15bd99=-parseInt(_0x7fceac(0xde))/0x1*(-parseInt(_0x7fceac(0x17d))/0x2)+parseInt(_0x7fceac(0xef))/0x3+parseInt(_0x7fceac(0x167))/0x4*(-parseInt(_0x7fceac(0x16b))/0x5)+-parseInt(_0x7fceac(0x17c))/0x6+-parseInt(_0x7fceac(0x104))/0x7+parseInt(_0x7fceac(0x138))/0x8+parseInt(_0x7fceac(0xe8))/0x9;if(_0x15bd99===_0x23077f)break;else _0x472322['push'](_0x472322['shift']());}catch(_0x4fadf9){_0x472322['push'](_0x472322['shift']());}}}(_0x3d78,0xabf58));import{ContextPlugin as _0x1adefb}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4f158c}from'ckeditor5/src/utils.js';import{AIChatView as _0x1192af}from'./ui/aichatview.js';import{AITabs as _0x58542b}from'../aitabs/aitabs.js';import{getTranslation as _0x1f569d}from'../aicore/utils/common-translations.js';import{IconAIChat as _0xa9f42e}from'ckeditor5/src/icons.js';function _0x3d78(){const _0x2d5c8d=['ai-suggestion-reply','hasFeedItem','delegate','setFeedItemRenderingStrategy','has','chatHeader','enableModelSelector','updateFeedItemAIReplySources','setIsUploadInProgress','remove','removeItem','chatFeed','7935440lXDISA','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','bind','toggleLoadingSkeleton','TrackChanges','removeFeedItem','addItem','view','last','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','finishInteraction','then','values','addFeedItemError','updateFeedItemAIReplySuggestionPartState','ai.chat.welcomeMessage','insertSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setReasoning','chat','setSelectedModel','addFeedItemAIReply','error-message','scrollToSuggestion','markItemAsDone','_promiseQueue','isDisabled','setPromptInputValue','find','setWebSearch','chatControls','_interactionPromiseResolver','isWebSearchEnabled','isVisible','ai.models.showModelSelector','renderingStrategy','updateFeedInteractionHeader','filter','isDone','getItemIds','custom-element','isBusy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','isPremiumPlugin','ai-reply','destroy','enableControls','1410812mSvuRy','setModel','addFeedInteractionHeader','removeFeedInteraction','10LifGez','addFeedItemStaticMessage','options','queueEmptyPromise','availableModels','interaction-header','forEach','updateReplyItem','conversation-start','children','stopInteraction','_animateConversationTitle','AI_CHAT_WELCOME_MESSAGE','closeSourceResourceBalloon','markFeedItemAsDone','showResizeButton','updateFeedItemAIReplySuggestionContent','6440784ABwFDC','254wgkLem','setInputPlaceholder','userMessage','updateFeedItemAIReplyContent','AI_CHAT_HEADING','_getInputPlaceholder','prepareLoadingMessage','locale','focusPromptInput','isOfficialPlugin','enqueue','fire','populateSourceResourceBalloon','updateCapabilities','context','from','abort','AIChatUI','clearConversationContextUI','5342OJakYU','setFeedItemAIReplySuggestionPartActive','updateWebSources','length','pluginName','trackChanges','addFeedItemUserMessage','addContextItem','setAddContextOptions','</p>','14309028STTkWI','setIsMaximized','disableControls','hasItem','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','set','1157547UoXDUJ','updateSuggestionItem','_titleAnimationInterval','isTrackChangesOn','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setConversationContext','commands','attributes','updateResourceState','feedItemRenderingStrategy','addFeedItemAISuggestion','_isTrackChangesCommandValueBound','isReasoningEnabled','config','isPending','clear','updateSuggestionPartState','areActionsDisabled','setLoadingMessage','showDiff','clearPendingContextUI','8140237etCDzn','addTab','<p>','stopAutoScroll','resetMessageInput','isLoading','conversationCreated','setModelList','AITabs','ai.chat.context.searchInputVisibleFrom','plugins','displayedPrompt','setConversationTitle','startInteraction','addFeedItemCustomElement','startAutoScroll','label','interactionId','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','streaming','value','ai.availableReplyActions','setSuggestionPartActive','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','requires','resetConversationTitle','isMaximized','scrollFeedToSuggestion','setContextItemLoading','user-message','get','disableModelSelector','isModelAvailable','startsWith','toggleSuggestionDisplayMode','createConversation','_view','removeContextItem','contextItems','clearLoadingMessage'];_0x3d78=function(){return _0x2d5c8d;};return _0x3d78();}import{AIChatFeedInteractionHeaderView as _0x3b37e6}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0xd8c21f}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x32f853}from'./utils/eventnames.js';function _0x45a8(_0x21eef0,_0xf385f2){const _0x3d7893=_0x3d78();return _0x45a8=function(_0x45a805,_0x4d4260){_0x45a805=_0x45a805-0xdc;let _0x237eab=_0x3d7893[_0x45a805];return _0x237eab;},_0x45a8(_0x21eef0,_0xf385f2);}import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x596ad1}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x286aad}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1adefb{static get[_0x502628(0x11c)](){return[_0x58542b];}[_0x502628(0x128)];static get[_0x502628(0xe2)](){const _0x15c659=_0x502628;return _0x15c659(0xdc);}static get[_0x502628(0x186)](){return!0x0;}static get[_0x502628(0x163)](){return!0x0;}[_0x502628(0xf8)]=_0x502628(0x117);[_0x502628(0x102)]=!0x0;[_0x502628(0x151)];[_0x502628(0x157)];[_0x502628(0xf1)]=void 0x0;[_0x502628(0xfa)]=!0x1;constructor(_0x48eb76){const _0x34ffa9=_0x502628;super(_0x48eb76);const _0x4a5c10=this[_0x34ffa9(0x18b)][_0x34ffa9(0x10e)][_0x34ffa9(0x122)](_0x34ffa9(0x10c));this[_0x34ffa9(0xee)](_0x34ffa9(0x161),!0x1),this[_0x34ffa9(0x151)]=new _0xd8c21f(),this[_0x34ffa9(0x128)]=new _0x1192af(this[_0x34ffa9(0x18b)][_0x34ffa9(0x184)],{'showResizeButton':_0x4a5c10[_0x34ffa9(0x17a)],'contextResourcesSearchInputVisibleFrom':this[_0x34ffa9(0x18b)][_0x34ffa9(0xfc)][_0x34ffa9(0x122)](_0x34ffa9(0x10d))}),this[_0x34ffa9(0x128)][_0x34ffa9(0x12e)](..._0x32f853)['to'](this),this[_0x34ffa9(0x128)]['on'](_0x34ffa9(0x126),(_0x2bea37,{showDiff:_0x2baa8f})=>{const _0x10fcdd=_0x34ffa9;this[_0x10fcdd(0x102)]=_0x2baa8f;}),_0x4a5c10[_0x34ffa9(0x13f)][_0x34ffa9(0x105)]({'id':_0x34ffa9(0x14b),'buttonLabel':_0x1f569d(this[_0x34ffa9(0x18b)][_0x34ffa9(0x184)],_0x34ffa9(0x181)),'buttonIcon':_0xa9f42e,'order':0x0,'content':this[_0x34ffa9(0x128)]}),this[_0x34ffa9(0x128)][_0x34ffa9(0x156)][_0x34ffa9(0x13a)](_0x34ffa9(0x109))['to'](this,_0x34ffa9(0x161),_0x2262fd=>_0x2262fd),this[_0x34ffa9(0x128)][_0x34ffa9(0x137)][_0x34ffa9(0x13a)](_0x34ffa9(0xfd))['to'](this,_0x34ffa9(0x161),_0x46e8b9=>_0x46e8b9),this[_0x34ffa9(0x128)][_0x34ffa9(0x156)][_0x34ffa9(0x17e)](this[_0x34ffa9(0x182)]()),this[_0x34ffa9(0x13a)](_0x34ffa9(0x124))['to'](this[_0x34ffa9(0x128)][_0x34ffa9(0x156)],_0x34ffa9(0x124));}[_0x502628(0x165)](){const _0x41bfbf=_0x502628;super[_0x41bfbf(0x165)](),this[_0x41bfbf(0xf1)]&&clearInterval(this[_0x41bfbf(0xf1)]);}[_0x502628(0x127)](_0x3f987b){const _0x25663e=_0x502628,_0x4e5a7e=this[_0x25663e(0x18b)][_0x25663e(0xfc)][_0x25663e(0x122)](_0x25663e(0x147))??_0x1f569d(this[_0x25663e(0x18b)][_0x25663e(0x184)],_0x25663e(0x177));this[_0x25663e(0x128)][_0x25663e(0x137)][_0x25663e(0xfe)](),this[_0x25663e(0x128)][_0x25663e(0x156)][_0x25663e(0x132)](),this[_0x25663e(0x128)][_0x25663e(0x156)][_0x25663e(0x10b)](_0x3f987b[_0x25663e(0x16f)],!this[_0x25663e(0x18b)][_0x25663e(0xfc)][_0x25663e(0x122)](_0x25663e(0x15a))),this[_0x25663e(0x16c)]({'id':_0x25663e(0x173),'staticMessage':_0x4e5a7e}),this[_0x25663e(0x188)](_0x25663e(0x10a));}[_0x502628(0x16c)]({id:_0x45b196,staticMessage:_0x34863b}){const _0x2df6ca=_0x502628;this[_0x2df6ca(0x128)][_0x2df6ca(0x137)][_0x2df6ca(0x13e)](_0x2df6ca(0x164),{'id':_0x45b196,'initialContent':_0x2df6ca(0x106)+_0x34863b+_0x2df6ca(0xe7)});}[_0x502628(0xe4)](_0x19c8a7){const _0x1362c1=_0x502628,_0x822eb0=_0x19c8a7[_0x1362c1(0xf6)]?.[_0x1362c1(0x10f)]||_0x19c8a7[_0x1362c1(0x17f)];this[_0x1362c1(0x128)][_0x1362c1(0x137)][_0x1362c1(0x13e)](_0x1362c1(0x121),{'contextItems':Array[_0x1362c1(0x18c)](_0x19c8a7[_0x1362c1(0x12a)][_0x1362c1(0x144)]()),'initialContent':_0x1362c1(0x106)+_0x822eb0+_0x1362c1(0xe7),'id':_0x19c8a7['id']});}[_0x502628(0x145)]({errorMessage:_0x42e88c,id:_0x38aa40}){const _0x538fb5=_0x502628;this[_0x538fb5(0x128)][_0x538fb5(0x137)][_0x538fb5(0x13e)](_0x538fb5(0x14e),{'initialContent':_0x538fb5(0x106)+_0x42e88c+_0x538fb5(0xe7),'id':_0x38aa40});}[_0x502628(0x14d)](_0x2afde0){const _0x46cb41=_0x502628;return this[_0x46cb41(0x151)][_0x46cb41(0x187)](async()=>{const _0x1ad670=_0x46cb41;this[_0x1ad670(0x128)][_0x1ad670(0x137)][_0x1ad670(0x13e)](_0x1ad670(0x164),{'id':_0x2afde0[_0x1ad670(0x115)]+':'+_0x2afde0['id']}),this[_0x1ad670(0x12b)]();});}async[_0x502628(0xf9)](_0x16067a){const _0x4e3f2c=_0x502628,_0x14705e=_0x596ad1(this[_0x4e3f2c(0x18b)]);let _0x46e189=_0x14705e[_0x4e3f2c(0xfc)][_0x4e3f2c(0x122)](_0x4e3f2c(0x119))||[..._0x286aad];if(_0x14705e[_0x4e3f2c(0x10e)][_0x4e3f2c(0x130)](_0x4e3f2c(0x13c))){if(!this[_0x4e3f2c(0xfa)]){this[_0x4e3f2c(0xfa)]=!0x0;const _0x35eb32=_0x14705e[_0x4e3f2c(0xf5)][_0x4e3f2c(0x122)](_0x4e3f2c(0xe3));this[_0x4e3f2c(0x128)][_0x4e3f2c(0x137)][_0x4e3f2c(0x13a)](_0x4e3f2c(0xf2))['to'](_0x35eb32,_0x4e3f2c(0x118));}}else _0x46e189=_0x46e189[_0x4e3f2c(0x15d)](_0x4c7d67=>_0x4e3f2c(0x148)!=_0x4c7d67);return this[_0x4e3f2c(0x151)][_0x4e3f2c(0x187)](async()=>{const _0x521888=_0x4e3f2c;this[_0x521888(0x128)][_0x521888(0x137)][_0x521888(0x13e)](_0x521888(0x12c),{'id':_0x16067a[_0x521888(0x115)]+':'+_0x16067a['id'],'areActionsDisabled':_0x16067a[_0x521888(0x100)],'showDiff':this[_0x521888(0x102)],'availableActions':_0x46e189}),this[_0x521888(0x12b)]();});}[_0x502628(0x169)](_0x17bfa7,_0x20b8d3){const _0x17529d=_0x502628,_0x58910b=this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x174)][_0x17529d(0x140)];if(_0x58910b instanceof _0x3b37e6)return this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x174)][_0x17529d(0x135)](_0x58910b),void this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x13e)](_0x17529d(0x170),{'id':_0x17bfa7['id'],'capabilities':{'isWebSearchEnabled':_0x58910b[_0x17529d(0xec)][_0x17529d(0x158)]||_0x20b8d3[_0x17529d(0x158)],'isReasoningEnabled':_0x58910b[_0x17529d(0xec)][_0x17529d(0xfb)]||_0x20b8d3[_0x17529d(0xfb)]}});this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x13e)](_0x17529d(0x170),{'id':_0x17bfa7['id'],'capabilities':_0x20b8d3});}async[_0x502628(0x112)](_0x285e21,_0x249956){const _0x244b8f=_0x502628;let _0x86b3f3;return await this[_0x244b8f(0x151)][_0x244b8f(0x187)](async()=>{const _0x12a9d3=_0x244b8f;_0x86b3f3=this[_0x12a9d3(0x128)][_0x12a9d3(0x137)][_0x12a9d3(0x13e)](_0x12a9d3(0x160),{'content':_0x285e21,'id':_0x249956});}),_0x86b3f3;}[_0x502628(0x13d)](_0x37dbc5){const _0x2f1008=_0x502628;this[_0x2f1008(0x128)][_0x2f1008(0x137)][_0x2f1008(0x136)](_0x37dbc5);}[_0x502628(0x12d)](_0x2cce23){const _0xb88580=_0x502628;return this[_0xb88580(0x128)][_0xb88580(0x137)][_0xb88580(0xeb)](_0x2cce23);}[_0x502628(0x15c)](_0x178fcd){const _0x46e91c=_0x502628,_0x284ed1=this[_0x46e91c(0x128)][_0x46e91c(0x137)][_0x46e91c(0x174)][_0x46e91c(0x154)](_0x2b9cb8=>_0x2b9cb8[_0x46e91c(0x16d)]['id']==_0x178fcd['id']&&_0x2b9cb8 instanceof _0x3b37e6);_0x284ed1&&_0x284ed1[_0x46e91c(0xee)](_0x46e91c(0x159),_0x178fcd[_0x46e91c(0x159)]);}async[_0x502628(0x180)](_0x2e48dc){const _0x5f2cbf=_0x502628,_0x222aa0=_0x2e48dc[_0x5f2cbf(0x15b)]||this[_0x5f2cbf(0xf8)];return this[_0x5f2cbf(0x151)][_0x5f2cbf(0x187)](async _0x36c6d8=>{const _0x534624=_0x5f2cbf;await this[_0x534624(0x128)][_0x534624(0x137)][_0x534624(0x172)]({..._0x2e48dc,'abortSignal':_0x36c6d8,'renderingStrategy':_0x222aa0}),_0x2e48dc[_0x534624(0x15e)]&&this[_0x534624(0x179)](_0x2e48dc['id']);});}[_0x502628(0x133)](_0x41f54c,_0x1c5e51){const _0x1a4664=_0x502628;this[_0x1a4664(0x128)][_0x1a4664(0x137)][_0x1a4664(0xe0)](_0x41f54c,_0x1c5e51);}async[_0x502628(0x17b)](_0x2dc870){const _0x4ad2c1=_0x502628,_0x1d0916=_0x2dc870[_0x4ad2c1(0x15b)]||this[_0x4ad2c1(0xf8)];return this[_0x4ad2c1(0x151)][_0x4ad2c1(0x187)](async _0x4d39c6=>{const _0x3f8dd4=_0x4ad2c1;await this[_0x3f8dd4(0x128)][_0x3f8dd4(0x137)][_0x3f8dd4(0xf0)]({..._0x2dc870,'abortSignal':_0x4d39c6,'renderingStrategy':_0x1d0916}),_0x2dc870[_0x3f8dd4(0x15e)]&&this[_0x3f8dd4(0x179)](_0x2dc870['id']);});}[_0x502628(0x146)](_0x3163f7){const _0xf5cdf2=_0x502628;this[_0xf5cdf2(0x128)][_0xf5cdf2(0x137)][_0xf5cdf2(0xff)](_0x3163f7);}[_0x502628(0xdf)](_0x4e1a6d){const _0x20359b=_0x502628;this[_0x20359b(0x128)][_0x20359b(0x137)][_0x20359b(0x11a)](_0x4e1a6d);}[_0x502628(0x179)](_0x55436b){const _0x1a875e=_0x502628;this[_0x1a875e(0x128)][_0x1a875e(0x137)][_0x1a875e(0x150)](_0x55436b);}[_0x502628(0x16a)](_0x5a0096){const _0x48ca38=_0x502628;this[_0x48ca38(0x128)][_0x48ca38(0x137)][_0x48ca38(0x15f)]()[_0x48ca38(0x15d)](_0x3c39dc=>_0x3c39dc[_0x48ca38(0x125)](_0x5a0096))[_0x48ca38(0x171)](_0x42def3=>this[_0x48ca38(0x128)][_0x48ca38(0x137)][_0x48ca38(0x136)](_0x42def3));}[_0x502628(0x111)](){const _0x1e9855=_0x502628,_0x2a72d8=this[_0x1e9855(0x183)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x1e9855(0x101)](_0x2a72d8),this[_0x1e9855(0x128)][_0x1e9855(0x156)][_0x1e9855(0x123)](!this[_0x1e9855(0x18b)][_0x1e9855(0xfc)][_0x1e9855(0x122)](_0x1e9855(0x15a))),this[_0x1e9855(0x161)]=!0x0,this[_0x1e9855(0x128)][_0x1e9855(0x137)][_0x1e9855(0x113)]();}[_0x502628(0x175)](_0x5d650a){const _0x541d81=_0x502628;this[_0x541d81(0x151)][_0x541d81(0x18d)](),this[_0x541d81(0x128)][_0x541d81(0x137)][_0x541d81(0x15f)]()[_0x541d81(0x15d)](_0xe4522b=>_0xe4522b[_0x541d81(0x125)](_0x5d650a['id']))[_0x541d81(0x171)](_0xc74e02=>this[_0x541d81(0x179)](_0xc74e02)),this[_0x541d81(0x161)]=!0x1,this[_0x541d81(0x128)][_0x541d81(0x137)][_0x541d81(0x107)]();}async[_0x502628(0x142)](){const _0x5eef26=_0x502628;return this[_0x5eef26(0x151)][_0x5eef26(0x16e)][_0x5eef26(0x143)](()=>{const _0x41bcf0=_0x5eef26;this[_0x41bcf0(0x161)]=!0x1,this[_0x41bcf0(0x128)][_0x41bcf0(0x137)][_0x41bcf0(0x107)]();});}[_0x502628(0xe5)](_0x356e62,_0x442da7){const _0x190d2c=_0x502628;this[_0x190d2c(0x128)][_0x190d2c(0x156)][_0x190d2c(0xe5)](_0x356e62,_0x442da7);}[_0x502628(0x129)](_0x40c386){const _0x168415=_0x502628;this[_0x168415(0x128)][_0x168415(0x156)][_0x168415(0x129)](_0x40c386);}[_0x502628(0x120)](_0xed865c,_0x128b48){const _0x19df8a=_0x502628;this[_0x19df8a(0x128)][_0x19df8a(0x156)][_0x19df8a(0x120)](_0xed865c,_0x128b48);}[_0x502628(0x134)](_0x37c831){const _0x3ad7c8=_0x502628;this[_0x3ad7c8(0x128)][_0x3ad7c8(0x156)][_0x3ad7c8(0x134)](_0x37c831);}[_0x502628(0xf4)](_0x3a3f10){const _0x10cf9b=_0x502628;this[_0x10cf9b(0x128)][_0x10cf9b(0x156)][_0x10cf9b(0xf4)](_0x3a3f10);}[_0x502628(0x103)](){const _0x527271=_0x502628;this[_0x527271(0x128)][_0x527271(0x156)][_0x527271(0x103)]();}[_0x502628(0xdd)](){const _0x285e66=_0x502628;this[_0x285e66(0x128)][_0x285e66(0x156)][_0x285e66(0xdd)]();}[_0x502628(0xf7)](_0x5602f6,_0x3fb280,_0x734736){const _0x44c02e=_0x502628;this[_0x44c02e(0x128)][_0x44c02e(0x156)][_0x44c02e(0xf7)](_0x5602f6,_0x3fb280,_0x734736);}[_0x502628(0x108)](){const _0x79e0b3=_0x502628;this[_0x79e0b3(0x128)][_0x79e0b3(0x156)][_0x79e0b3(0x108)](),this[_0x79e0b3(0x128)][_0x79e0b3(0x156)][_0x79e0b3(0x17e)](this[_0x79e0b3(0x182)]());}[_0x502628(0xe6)](_0x315838){const _0x10371e=_0x502628;this[_0x10371e(0x128)][_0x10371e(0x156)][_0x10371e(0xe6)](_0x315838);}[_0x502628(0x18a)](_0x5a52c4){const _0x3afbbb=_0x502628;this[_0x3afbbb(0x128)][_0x3afbbb(0x156)][_0x3afbbb(0x155)](_0x5a52c4[_0x3afbbb(0x158)]),this[_0x3afbbb(0x128)][_0x3afbbb(0x156)][_0x3afbbb(0x14a)](_0x5a52c4[_0x3afbbb(0xfb)]),this[_0x3afbbb(0x128)][_0x3afbbb(0x156)][_0x3afbbb(0x17e)](this[_0x3afbbb(0x182)](_0x5a52c4));}[_0x502628(0x14c)](_0x2beda6,_0x4cad01){const _0x18ba33=_0x502628;this[_0x18ba33(0x128)][_0x18ba33(0x156)][_0x18ba33(0x168)](_0x2beda6),_0x4cad01&&this[_0x18ba33(0x128)][_0x18ba33(0x156)][_0x18ba33(0x123)](!0x1);}[_0x502628(0x12f)](_0x2d1e25){const _0x356564=_0x502628;this[_0x356564(0xf8)]=_0x2d1e25;}[_0x502628(0x13b)](_0x12936b){const _0x4546f0=_0x502628;this[_0x4546f0(0x128)][_0x4546f0(0x137)][_0x4546f0(0x13b)](_0x12936b);}[_0x502628(0x11d)](){const _0x395b99=_0x502628;this[_0x395b99(0x110)](_0x1f569d(this[_0x395b99(0x18b)][_0x395b99(0x184)],_0x395b99(0x181)));}[_0x502628(0x110)](_0x3a7767,_0x2f8c71=!0x1){const _0x5134b5=_0x502628;if(_0x2f8c71&&!_0x4f158c()&&_0x3a7767[_0x5134b5(0xe1)])return this[_0x5134b5(0x128)][_0x5134b5(0x131)][_0x5134b5(0x114)]='',void this[_0x5134b5(0x176)](_0x3a7767);this[_0x5134b5(0x128)][_0x5134b5(0x131)][_0x5134b5(0x114)]=_0x3a7767;}[_0x502628(0x101)](_0x2cbc37){const _0xce0dc7=_0x502628;this[_0xce0dc7(0x128)][_0xce0dc7(0x137)][_0xce0dc7(0x101)](_0x2cbc37);}[_0x502628(0x12b)](){const _0x530bc6=_0x502628;this[_0x530bc6(0x128)][_0x530bc6(0x137)][_0x530bc6(0x101)]('');}[_0x502628(0x176)](_0x1df911){const _0x2ada7f=_0x502628;let _0x289674=0x0;clearInterval(this[_0x2ada7f(0xf1)]),this[_0x2ada7f(0xf1)]=setInterval(()=>{const _0xc74cc9=_0x2ada7f;this[_0xc74cc9(0x128)][_0xc74cc9(0x131)][_0xc74cc9(0x114)]=this[_0xc74cc9(0x128)][_0xc74cc9(0x131)][_0xc74cc9(0x114)]+_0x1df911[_0x289674],_0x289674++,_0x289674===_0x1df911[_0xc74cc9(0xe1)]&&clearInterval(this[_0xc74cc9(0xf1)]);},0x1e);}[_0x502628(0xe9)](_0xbe0a12){const _0x5bce17=_0x502628;this[_0x5bce17(0x128)][_0x5bce17(0x131)][_0x5bce17(0x11e)]=_0xbe0a12;}[_0x502628(0x183)](_0xb4f170){const _0xdd7e0b=_0x502628;return _0xb4f170[_0xdd7e0b(0x158)]&&_0xb4f170[_0xdd7e0b(0xfb)]?_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0x116)):_0xb4f170[_0xdd7e0b(0x158)]?_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0x149)):_0xb4f170[_0xdd7e0b(0xfb)]?_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0xf3)):_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0xed));}[_0x502628(0x182)](_0x145bc5){const _0x18898d=_0x502628;return _0x145bc5?_0x145bc5[_0x18898d(0x158)]&&_0x145bc5[_0x18898d(0xfb)]?_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x162)):_0x145bc5[_0x18898d(0x158)]?_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x139)):_0x145bc5[_0x18898d(0xfb)]?_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x141)):_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x11b)):_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x11b));}[_0x502628(0x189)](_0x5561aa,_0x4c7ce7,_0x5aeaf7,_0x52e2f9){const _0x2facd8=_0x502628;this[_0x2facd8(0x128)][_0x2facd8(0x189)](_0x5561aa,_0x4c7ce7,_0x5aeaf7,_0x52e2f9);}[_0x502628(0x178)](_0x2a4c95){const _0x35ad8c=_0x502628;this[_0x35ad8c(0x128)][_0x35ad8c(0x178)](_0x2a4c95);}[_0x502628(0x153)](_0x4c59cc){const _0x4a01e0=_0x502628;this[_0x4a01e0(0x128)][_0x4a01e0(0x156)][_0x4a01e0(0x153)](_0x4c59cc);}[_0x502628(0x185)](_0x1a8404=!0x1){const _0x49e555=_0x502628;this[_0x49e555(0x128)][_0x49e555(0x156)][_0x49e555(0x185)](_0x1a8404);}[_0x502628(0x11f)](_0x3eaaf6,_0x15d3f2){const _0x12e7e0=_0x502628;this[_0x12e7e0(0x128)][_0x12e7e0(0x137)][_0x12e7e0(0x14f)](_0x3eaaf6,_0x15d3f2);}[_0x502628(0x113)](){const _0x3db9cc=_0x502628;this[_0x3db9cc(0x128)][_0x3db9cc(0x137)][_0x3db9cc(0x113)]();}[_0x502628(0xea)](){const _0x2c1853=_0x502628;this[_0x2c1853(0x128)][_0x2c1853(0x156)][_0x2c1853(0x152)]=!0x0;}[_0x502628(0x166)](){const _0x5d6615=_0x502628;this[_0x5d6615(0x128)][_0x5d6615(0x156)][_0x5d6615(0x152)]=!0x1;}}
|
|
23
|
+
const _0xd6c7b6=_0x2052;(function(_0x1d1af7,_0x56b38a){const _0x5182c4=_0x2052,_0x3f5120=_0x1d1af7();while(!![]){try{const _0x14e082=-parseInt(_0x5182c4(0x18f))/0x1*(parseInt(_0x5182c4(0x15f))/0x2)+parseInt(_0x5182c4(0x1d1))/0x3*(parseInt(_0x5182c4(0x138))/0x4)+-parseInt(_0x5182c4(0x195))/0x5*(-parseInt(_0x5182c4(0x17f))/0x6)+-parseInt(_0x5182c4(0x164))/0x7+-parseInt(_0x5182c4(0x18e))/0x8*(-parseInt(_0x5182c4(0x18d))/0x9)+parseInt(_0x5182c4(0x191))/0xa*(parseInt(_0x5182c4(0x1b5))/0xb)+-parseInt(_0x5182c4(0x187))/0xc*(-parseInt(_0x5182c4(0x12a))/0xd);if(_0x14e082===_0x56b38a)break;else _0x3f5120['push'](_0x3f5120['shift']());}catch(_0x406ced){_0x3f5120['push'](_0x3f5120['shift']());}}}(_0x4842,0xcd6ee));import{ContextPlugin as _0x17ddeb}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x255f6e}from'ckeditor5/src/utils.js';import{AIChatView as _0x3244ba}from'./ui/aichatview.js';import{AITabs as _0x2387c6}from'../aitabs/aitabs.js';import{getTranslation as _0x3af605}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x32bb36}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f860d}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x4842(){const _0x2e1796=['addContextItem','from','view','setAddContextOptions','remove','setInputPlaceholder','_animateConversationTitle','filter','_promiseQueue','setPromptInputValue','contextItems','focusPromptInput','setConversationContext','8809788luyOPa','forEach','hasFeedItem','ai.availableReplyActions','startInteraction','_isTrackChangesCommandValueBound','user-message','value','stopAutoScroll','prepareLoadingMessage','</p>','markFeedItemAsDone','enableControls','displayedPrompt','623924uqUawQ','_view','showDiff','isLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','clear','AI_CHAT_HEADING','queueEmptyPromise','label','setModel','get','addFeedItemAIReply','interactionId','enqueue','locale','_getInputPlaceholder','toggleSuggestionDisplayMode','insertSuggestion','showResizeButton','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','custom-element','isWebSearchEnabled','setSuggestionPartActive','toggleLoadingSkeleton','isMaximized','fire','startAutoScroll','resetConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','length','scrollToSuggestion','chatHeader','then','delegate','setFeedItemAIReplySuggestionPartActive','availableModels','updateCapabilities','_interactionPromiseResolver','2enKaRN','children','closeSourceResourceBalloon','isModelAvailable','clearLoadingMessage','10121594TLDopK','plugins','feedItemRenderingStrategy','removeContextItem','removeFeedInteraction','isTrackChangesOn','setReasoning','conversation-start','options','config','ai.chat.welcomeMessage','setSelectedModel','isPending','updateSuggestionPartState','setWebSearch','isDone','trackChanges','updateFeedInteractionHeader','disableModelSelector','markItemAsDone','removeItem','clearPendingContextUI','setIsUploadInProgress','hasItem','capabilities','updateFeedItemAIReplySuggestionContent','addFeedItemCustomElement','28176dYEwhP','isReasoningEnabled','find','addFeedItemError','isPremiumPlugin','addFeedItemAISuggestion','AIChatUI','chatControls','12GLDBeB','updateResourceState','addFeedItemUserMessage','conversationCreated','ai-reply','chat','9iELDWT','7410392yWnbTI','1279094sfpjpy','set','10tIluxk','AITabs','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','destroy','1365ymiGSH','TrackChanges','addItem','areActionsDisabled','populateSourceResourceBalloon','createConversation','userMessage','renderingStrategy','streaming','context','updateWebSources','clearConversationContextUI','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','stopInteraction','finishInteraction','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','isBusy','scrollFeedToSuggestion','ai.models.showModelSelector','isVisible','values','ai.chat.context.searchInputVisibleFrom','last','updateReplyItem','addTab','attributes','pluginName','setContextItemLoading','removeFeedItem','AI_CHAT_WELCOME_MESSAGE','getItemIds','resetMessageInput','5769786KkwQwS','abort','isOfficialPlugin','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','setFeedItemRenderingStrategy','<p>','error-message','setIsMaximized','setModelList','ai-suggestion-reply','isDisabled','requires','setConversationTitle','enableModelSelector','commands','interaction-header','updateFeedItemAIReplySources','startsWith','updateFeedItemAIReplySuggestionPartState','disableControls','_titleAnimationInterval','chatFeed','bind','updateSuggestionItem','has','setLoadingMessage','addFeedInteractionHeader','addFeedItemStaticMessage','3GQAsaY','updateFeedItemAIReplyContent'];_0x4842=function(){return _0x2e1796;};return _0x4842();}import{PromiseQueue as _0x1212ba}from'./utils/promisequeue.js';function _0x2052(_0x16cb0b,_0x2ddf00){const _0x484224=_0x4842();return _0x2052=function(_0x205202,_0x2d1f95){_0x205202=_0x205202-0x128;let _0x4733fa=_0x484224[_0x205202];return _0x4733fa;},_0x2052(_0x16cb0b,_0x2ddf00);}import{AI_CHAT_UI_EVENT_NAMES as _0x275f1e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3e4770}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x36a367}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x17ddeb{static get[_0xd6c7b6(0x1c0)](){return[_0x2387c6];}[_0xd6c7b6(0x139)];static get[_0xd6c7b6(0x1af)](){const _0x3bfd7f=_0xd6c7b6;return _0x3bfd7f(0x185);}static get[_0xd6c7b6(0x1b7)](){return!0x0;}static get[_0xd6c7b6(0x183)](){return!0x0;}[_0xd6c7b6(0x166)]=_0xd6c7b6(0x19d);[_0xd6c7b6(0x13a)]=!0x0;[_0xd6c7b6(0x1db)];[_0xd6c7b6(0x15e)];[_0xd6c7b6(0x1c9)]=void 0x0;[_0xd6c7b6(0x12f)]=!0x1;constructor(_0x286d49){const _0xfa6da8=_0xd6c7b6;super(_0x286d49);const _0x12087b=this[_0xfa6da8(0x19e)][_0xfa6da8(0x165)][_0xfa6da8(0x143)](_0xfa6da8(0x192));this[_0xfa6da8(0x190)](_0xfa6da8(0x1a5),!0x1),this[_0xfa6da8(0x1db)]=new _0x1212ba(),this[_0xfa6da8(0x139)]=new _0x3244ba(this[_0xfa6da8(0x19e)][_0xfa6da8(0x147)],{'showResizeButton':_0x12087b[_0xfa6da8(0x14b)],'contextResourcesSearchInputVisibleFrom':this[_0xfa6da8(0x19e)][_0xfa6da8(0x16d)][_0xfa6da8(0x143)](_0xfa6da8(0x1aa))}),this[_0xfa6da8(0x139)][_0xfa6da8(0x15a)](..._0x275f1e)['to'](this),this[_0xfa6da8(0x139)]['on'](_0xfa6da8(0x149),(_0x1056ea,{showDiff:_0x3be6bd})=>{const _0x146608=_0xfa6da8;this[_0x146608(0x13a)]=_0x3be6bd;}),_0x12087b[_0xfa6da8(0x1d5)][_0xfa6da8(0x1ad)]({'id':_0xfa6da8(0x18c),'buttonLabel':_0x3af605(this[_0xfa6da8(0x19e)][_0xfa6da8(0x147)],_0xfa6da8(0x13f)),'buttonIcon':_0x32bb36,'order':0x0,'content':this[_0xfa6da8(0x139)]}),this[_0xfa6da8(0x139)][_0xfa6da8(0x186)][_0xfa6da8(0x1cb)](_0xfa6da8(0x13b))['to'](this,_0xfa6da8(0x1a5),_0x199dd5=>_0x199dd5),this[_0xfa6da8(0x139)][_0xfa6da8(0x1ca)][_0xfa6da8(0x1cb)](_0xfa6da8(0x170))['to'](this,_0xfa6da8(0x1a5),_0x5c7045=>_0x5c7045),this[_0xfa6da8(0x139)][_0xfa6da8(0x186)][_0xfa6da8(0x1d8)](this[_0xfa6da8(0x148)]()),this[_0xfa6da8(0x1cb)](_0xfa6da8(0x162))['to'](this[_0xfa6da8(0x139)][_0xfa6da8(0x186)],_0xfa6da8(0x162));}[_0xd6c7b6(0x194)](){const _0x5b7963=_0xd6c7b6;super[_0x5b7963(0x194)](),this[_0x5b7963(0x1c9)]&&clearInterval(this[_0x5b7963(0x1c9)]);}[_0xd6c7b6(0x19a)](_0x731b49){const _0x4e14a3=_0xd6c7b6,_0x5c5c81=this[_0x4e14a3(0x19e)][_0x4e14a3(0x16d)][_0x4e14a3(0x143)](_0x4e14a3(0x16e))??_0x3af605(this[_0x4e14a3(0x19e)][_0x4e14a3(0x147)],_0x4e14a3(0x1b2));this[_0x4e14a3(0x139)][_0x4e14a3(0x1ca)][_0x4e14a3(0x13e)](),this[_0x4e14a3(0x139)][_0x4e14a3(0x186)][_0x4e14a3(0x1c2)](),this[_0x4e14a3(0x139)][_0x4e14a3(0x186)][_0x4e14a3(0x1bd)](_0x731b49[_0x4e14a3(0x15c)],!this[_0x4e14a3(0x19e)][_0x4e14a3(0x16d)][_0x4e14a3(0x143)](_0x4e14a3(0x1a7))),this[_0x4e14a3(0x1d0)]({'id':_0x4e14a3(0x16b),'staticMessage':_0x5c5c81}),this[_0x4e14a3(0x152)](_0x4e14a3(0x18a));}[_0xd6c7b6(0x1d0)]({id:_0x156a86,staticMessage:_0x39b1a7}){const _0x2728a9=_0xd6c7b6;this[_0x2728a9(0x139)][_0x2728a9(0x1ca)][_0x2728a9(0x197)](_0x2728a9(0x18b),{'id':_0x156a86,'initialContent':_0x2728a9(0x1ba)+_0x39b1a7+_0x2728a9(0x134)});}[_0xd6c7b6(0x189)](_0x27172b){const _0x253e01=_0xd6c7b6,_0x27ab44=_0x27172b[_0x253e01(0x1ae)]?.[_0x253e01(0x137)]||_0x27172b[_0x253e01(0x19b)];this[_0x253e01(0x139)][_0x253e01(0x1ca)][_0x253e01(0x197)](_0x253e01(0x130),{'contextItems':Array[_0x253e01(0x1d4)](_0x27172b[_0x253e01(0x1dd)][_0x253e01(0x1a9)]()),'initialContent':_0x253e01(0x1ba)+_0x27ab44+_0x253e01(0x134),'id':_0x27172b['id']});}[_0xd6c7b6(0x182)]({errorMessage:_0x592c8f,id:_0x118e5f}){const _0x33f83a=_0xd6c7b6;this[_0x33f83a(0x139)][_0x33f83a(0x1ca)][_0x33f83a(0x197)](_0x33f83a(0x1bb),{'initialContent':_0x33f83a(0x1ba)+_0x592c8f+_0x33f83a(0x134),'id':_0x118e5f});}[_0xd6c7b6(0x144)](_0x558eae){const _0x7ed6d5=_0xd6c7b6;return this[_0x7ed6d5(0x1db)][_0x7ed6d5(0x146)](async()=>{const _0x51fd5f=_0x7ed6d5;this[_0x51fd5f(0x139)][_0x51fd5f(0x1ca)][_0x51fd5f(0x197)](_0x51fd5f(0x18b),{'id':_0x558eae[_0x51fd5f(0x145)]+':'+_0x558eae['id']}),this[_0x51fd5f(0x163)]();});}async[_0xd6c7b6(0x184)](_0x371c08){const _0xd04399=_0xd6c7b6,_0xa6d6e1=_0x3e4770(this[_0xd04399(0x19e)]);let _0x7cd589=_0xa6d6e1[_0xd04399(0x16d)][_0xd04399(0x143)](_0xd04399(0x12d))||[..._0x36a367];if(_0xa6d6e1[_0xd04399(0x165)][_0xd04399(0x1cd)](_0xd04399(0x196))){if(!this[_0xd04399(0x12f)]){this[_0xd04399(0x12f)]=!0x0;const _0xde84ca=_0xa6d6e1[_0xd04399(0x1c3)][_0xd04399(0x143)](_0xd04399(0x174));this[_0xd04399(0x139)][_0xd04399(0x1ca)][_0xd04399(0x1cb)](_0xd04399(0x169))['to'](_0xde84ca,_0xd04399(0x131));}}else _0x7cd589=_0x7cd589[_0xd04399(0x1da)](_0x36a44c=>_0xd04399(0x14a)!=_0x36a44c);return this[_0xd04399(0x1db)][_0xd04399(0x146)](async()=>{const _0x491bb7=_0xd04399;this[_0x491bb7(0x139)][_0x491bb7(0x1ca)][_0x491bb7(0x197)](_0x491bb7(0x1be),{'id':_0x371c08[_0x491bb7(0x145)]+':'+_0x371c08['id'],'areActionsDisabled':_0x371c08[_0x491bb7(0x198)],'showDiff':this[_0x491bb7(0x13a)],'availableActions':_0x7cd589}),this[_0x491bb7(0x163)]();});}[_0xd6c7b6(0x1cf)](_0x5b2f13,_0x10e948){const _0x288d95=_0xd6c7b6,_0x531731=this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x160)][_0x288d95(0x1ab)];if(_0x531731 instanceof _0x4f860d)return this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x160)][_0x288d95(0x1d7)](_0x531731),void this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x197)](_0x288d95(0x1c4),{'id':_0x5b2f13['id'],'capabilities':{'isWebSearchEnabled':_0x531731[_0x288d95(0x17c)][_0x288d95(0x14e)]||_0x10e948[_0x288d95(0x14e)],'isReasoningEnabled':_0x531731[_0x288d95(0x17c)][_0x288d95(0x180)]||_0x10e948[_0x288d95(0x180)]}});this[_0x288d95(0x139)][_0x288d95(0x1ca)][_0x288d95(0x197)](_0x288d95(0x1c4),{'id':_0x5b2f13['id'],'capabilities':_0x10e948});}async[_0xd6c7b6(0x17e)](_0x15f671,_0x2bddbc){const _0x33ae88=_0xd6c7b6;let _0xf4415a;return await this[_0x33ae88(0x1db)][_0x33ae88(0x146)](async()=>{const _0x31b77f=_0x33ae88;_0xf4415a=this[_0x31b77f(0x139)][_0x31b77f(0x1ca)][_0x31b77f(0x197)](_0x31b77f(0x14d),{'content':_0x15f671,'id':_0x2bddbc});}),_0xf4415a;}[_0xd6c7b6(0x1b1)](_0x2f95be){const _0x492dce=_0xd6c7b6;this[_0x492dce(0x139)][_0x492dce(0x1ca)][_0x492dce(0x178)](_0x2f95be);}[_0xd6c7b6(0x12c)](_0x336be9){const _0x40d795=_0xd6c7b6;return this[_0x40d795(0x139)][_0x40d795(0x1ca)][_0x40d795(0x17b)](_0x336be9);}[_0xd6c7b6(0x175)](_0x49a7e7){const _0x2581b7=_0xd6c7b6,_0x1dc313=this[_0x2581b7(0x139)][_0x2581b7(0x1ca)][_0x2581b7(0x160)][_0x2581b7(0x181)](_0x567451=>_0x567451[_0x2581b7(0x16c)]['id']==_0x49a7e7['id']&&_0x567451 instanceof _0x4f860d);_0x1dc313&&_0x1dc313[_0x2581b7(0x190)](_0x2581b7(0x1a8),_0x49a7e7[_0x2581b7(0x1a8)]);}async[_0xd6c7b6(0x1d2)](_0x564a42){const _0x408e98=_0xd6c7b6,_0x1a1e3d=_0x564a42[_0x408e98(0x19c)]||this[_0x408e98(0x166)];return this[_0x408e98(0x1db)][_0x408e98(0x146)](async _0x60c357=>{const _0x2afefd=_0x408e98;await this[_0x2afefd(0x139)][_0x2afefd(0x1ca)][_0x2afefd(0x1ac)]({..._0x564a42,'abortSignal':_0x60c357,'renderingStrategy':_0x1a1e3d}),_0x564a42[_0x2afefd(0x173)]&&this[_0x2afefd(0x135)](_0x564a42['id']);});}[_0xd6c7b6(0x1c5)](_0x4d714d,_0x370e9e){const _0x1056d3=_0xd6c7b6;this[_0x1056d3(0x139)][_0x1056d3(0x1ca)][_0x1056d3(0x19f)](_0x4d714d,_0x370e9e);}async[_0xd6c7b6(0x17d)](_0x3f0ebc){const _0x58adf1=_0xd6c7b6,_0x1f4f44=_0x3f0ebc[_0x58adf1(0x19c)]||this[_0x58adf1(0x166)];return this[_0x58adf1(0x1db)][_0x58adf1(0x146)](async _0x1a4ebe=>{const _0x1dad95=_0x58adf1;await this[_0x1dad95(0x139)][_0x1dad95(0x1ca)][_0x1dad95(0x1cc)]({..._0x3f0ebc,'abortSignal':_0x1a4ebe,'renderingStrategy':_0x1f4f44}),_0x3f0ebc[_0x1dad95(0x173)]&&this[_0x1dad95(0x135)](_0x3f0ebc['id']);});}[_0xd6c7b6(0x1c7)](_0x4b2ff2){const _0x47b24c=_0xd6c7b6;this[_0x47b24c(0x139)][_0x47b24c(0x1ca)][_0x47b24c(0x171)](_0x4b2ff2);}[_0xd6c7b6(0x15b)](_0x37d256){const _0x152033=_0xd6c7b6;this[_0x152033(0x139)][_0x152033(0x1ca)][_0x152033(0x14f)](_0x37d256);}[_0xd6c7b6(0x135)](_0x14b0a8){const _0x42543b=_0xd6c7b6;this[_0x42543b(0x139)][_0x42543b(0x1ca)][_0x42543b(0x177)](_0x14b0a8);}[_0xd6c7b6(0x168)](_0x54c297){const _0x15dc4c=_0xd6c7b6;this[_0x15dc4c(0x139)][_0x15dc4c(0x1ca)][_0x15dc4c(0x1b3)]()[_0x15dc4c(0x1da)](_0x539db7=>_0x539db7[_0x15dc4c(0x1c6)](_0x54c297))[_0x15dc4c(0x12b)](_0x51667a=>this[_0x15dc4c(0x139)][_0x15dc4c(0x1ca)][_0x15dc4c(0x178)](_0x51667a));}[_0xd6c7b6(0x12e)](){const _0x3e8663=_0xd6c7b6,_0x23a2d8=this[_0x3e8663(0x133)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x3e8663(0x1ce)](_0x23a2d8),this[_0x3e8663(0x139)][_0x3e8663(0x186)][_0x3e8663(0x176)](!this[_0x3e8663(0x19e)][_0x3e8663(0x16d)][_0x3e8663(0x143)](_0x3e8663(0x1a7))),this[_0x3e8663(0x1a5)]=!0x0,this[_0x3e8663(0x139)][_0x3e8663(0x1ca)][_0x3e8663(0x153)]();}[_0xd6c7b6(0x1a2)](_0x16bea5){const _0xa06445=_0xd6c7b6;this[_0xa06445(0x1db)][_0xa06445(0x1b6)](),this[_0xa06445(0x139)][_0xa06445(0x1ca)][_0xa06445(0x1b3)]()[_0xa06445(0x1da)](_0x4602ec=>_0x4602ec[_0xa06445(0x1c6)](_0x16bea5['id']))[_0xa06445(0x12b)](_0x480785=>this[_0xa06445(0x135)](_0x480785)),this[_0xa06445(0x1a5)]=!0x1,this[_0xa06445(0x139)][_0xa06445(0x1ca)][_0xa06445(0x132)]();}async[_0xd6c7b6(0x1a3)](){const _0x300a3c=_0xd6c7b6;return this[_0x300a3c(0x1db)][_0x300a3c(0x140)][_0x300a3c(0x159)](()=>{const _0x5c4802=_0x300a3c;this[_0x5c4802(0x1a5)]=!0x1,this[_0x5c4802(0x139)][_0x5c4802(0x1ca)][_0x5c4802(0x132)]();});}[_0xd6c7b6(0x1d3)](_0x5011a1,_0x2640dd){const _0x20cb7b=_0xd6c7b6;this[_0x20cb7b(0x139)][_0x20cb7b(0x186)][_0x20cb7b(0x1d3)](_0x5011a1,_0x2640dd);}[_0xd6c7b6(0x167)](_0x40ad3e){const _0x292150=_0xd6c7b6;this[_0x292150(0x139)][_0x292150(0x186)][_0x292150(0x167)](_0x40ad3e);}[_0xd6c7b6(0x1b0)](_0x107b05,_0xbc2c6e){const _0x28a2e8=_0xd6c7b6;this[_0x28a2e8(0x139)][_0x28a2e8(0x186)][_0x28a2e8(0x1b0)](_0x107b05,_0xbc2c6e);}[_0xd6c7b6(0x17a)](_0x5351eb){const _0xfd737f=_0xd6c7b6;this[_0xfd737f(0x139)][_0xfd737f(0x186)][_0xfd737f(0x17a)](_0x5351eb);}[_0xd6c7b6(0x129)](_0x3d1c11){const _0x4aa989=_0xd6c7b6;this[_0x4aa989(0x139)][_0x4aa989(0x186)][_0x4aa989(0x129)](_0x3d1c11);}[_0xd6c7b6(0x179)](){const _0x4660e0=_0xd6c7b6;this[_0x4660e0(0x139)][_0x4660e0(0x186)][_0x4660e0(0x179)]();}[_0xd6c7b6(0x1a0)](){const _0x1b5bd3=_0xd6c7b6;this[_0x1b5bd3(0x139)][_0x1b5bd3(0x186)][_0x1b5bd3(0x1a0)]();}[_0xd6c7b6(0x188)](_0x1c313a,_0x34690c,_0x1d6c5a){const _0x28479c=_0xd6c7b6;this[_0x28479c(0x139)][_0x28479c(0x186)][_0x28479c(0x188)](_0x1c313a,_0x34690c,_0x1d6c5a);}[_0xd6c7b6(0x1b4)](){const _0x16435b=_0xd6c7b6;this[_0x16435b(0x139)][_0x16435b(0x186)][_0x16435b(0x1b4)](),this[_0x16435b(0x139)][_0x16435b(0x186)][_0x16435b(0x1d8)](this[_0x16435b(0x148)]());}[_0xd6c7b6(0x1d6)](_0x1e72b9){const _0x4b53f9=_0xd6c7b6;this[_0x4b53f9(0x139)][_0x4b53f9(0x186)][_0x4b53f9(0x1d6)](_0x1e72b9);}[_0xd6c7b6(0x15d)](_0x44796e){const _0x516094=_0xd6c7b6;this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x172)](_0x44796e[_0x516094(0x14e)]),this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x16a)](_0x44796e[_0x516094(0x180)]),this[_0x516094(0x139)][_0x516094(0x186)][_0x516094(0x1d8)](this[_0x516094(0x148)](_0x44796e));}[_0xd6c7b6(0x16f)](_0x36cfe9,_0x4d38ad){const _0x3ad1f4=_0xd6c7b6;this[_0x3ad1f4(0x139)][_0x3ad1f4(0x186)][_0x3ad1f4(0x142)](_0x36cfe9),_0x4d38ad&&this[_0x3ad1f4(0x139)][_0x3ad1f4(0x186)][_0x3ad1f4(0x176)](!0x1);}[_0xd6c7b6(0x1b9)](_0x218879){const _0x44fd62=_0xd6c7b6;this[_0x44fd62(0x166)]=_0x218879;}[_0xd6c7b6(0x150)](_0x2365e9){const _0x336311=_0xd6c7b6;this[_0x336311(0x139)][_0x336311(0x1ca)][_0x336311(0x150)](_0x2365e9);}[_0xd6c7b6(0x154)](){const _0x44643f=_0xd6c7b6;this[_0x44643f(0x1c1)](_0x3af605(this[_0x44643f(0x19e)][_0x44643f(0x147)],_0x44643f(0x13f)));}[_0xd6c7b6(0x1c1)](_0x59c12e,_0x5bed94=!0x1){const _0x10817b=_0xd6c7b6;if(_0x5bed94&&!_0x255f6e()&&_0x59c12e[_0x10817b(0x156)])return this[_0x10817b(0x139)][_0x10817b(0x158)][_0x10817b(0x141)]='',void this[_0x10817b(0x1d9)](_0x59c12e);this[_0x10817b(0x139)][_0x10817b(0x158)][_0x10817b(0x141)]=_0x59c12e;}[_0xd6c7b6(0x1ce)](_0x543d6a){const _0x538872=_0xd6c7b6;this[_0x538872(0x139)][_0x538872(0x1ca)][_0x538872(0x1ce)](_0x543d6a);}[_0xd6c7b6(0x163)](){const _0x15dd58=_0xd6c7b6;this[_0x15dd58(0x139)][_0x15dd58(0x1ca)][_0x15dd58(0x1ce)]('');}[_0xd6c7b6(0x1d9)](_0x3903da){const _0x1a93dc=_0xd6c7b6;let _0x4387bf=0x0;clearInterval(this[_0x1a93dc(0x1c9)]),this[_0x1a93dc(0x1c9)]=setInterval(()=>{const _0x1717d1=_0x1a93dc;this[_0x1717d1(0x139)][_0x1717d1(0x158)][_0x1717d1(0x141)]=this[_0x1717d1(0x139)][_0x1717d1(0x158)][_0x1717d1(0x141)]+_0x3903da[_0x4387bf],_0x4387bf++,_0x4387bf===_0x3903da[_0x1717d1(0x156)]&&clearInterval(this[_0x1717d1(0x1c9)]);},0x1e);}[_0xd6c7b6(0x1bc)](_0x443c7c){const _0x55e591=_0xd6c7b6;this[_0x55e591(0x139)][_0x55e591(0x158)][_0x55e591(0x151)]=_0x443c7c;}[_0xd6c7b6(0x133)](_0x1b2562){const _0x34abed=_0xd6c7b6;return _0x1b2562[_0x34abed(0x14e)]&&_0x1b2562[_0x34abed(0x180)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x1a1)):_0x1b2562[_0x34abed(0x14e)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x1a4)):_0x1b2562[_0x34abed(0x180)]?_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x193)):_0x3af605(this[_0x34abed(0x19e)][_0x34abed(0x147)],_0x34abed(0x14c));}[_0xd6c7b6(0x148)](_0x1c8d56){const _0x13629f=_0xd6c7b6;return _0x1c8d56?_0x1c8d56[_0x13629f(0x14e)]&&_0x1c8d56[_0x13629f(0x180)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x1b8)):_0x1c8d56[_0x13629f(0x14e)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13d)):_0x1c8d56[_0x13629f(0x180)]?_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x155)):_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13c)):_0x3af605(this[_0x13629f(0x19e)][_0x13629f(0x147)],_0x13629f(0x13c));}[_0xd6c7b6(0x199)](_0x288e67,_0x1f407,_0x443578,_0x530ae9){const _0x846078=_0xd6c7b6;this[_0x846078(0x139)][_0x846078(0x199)](_0x288e67,_0x1f407,_0x443578,_0x530ae9);}[_0xd6c7b6(0x161)](_0x29da1a){const _0x382a15=_0xd6c7b6;this[_0x382a15(0x139)][_0x382a15(0x161)](_0x29da1a);}[_0xd6c7b6(0x1dc)](_0x56ddb6){const _0x208edb=_0xd6c7b6;this[_0x208edb(0x139)][_0x208edb(0x186)][_0x208edb(0x1dc)](_0x56ddb6);}[_0xd6c7b6(0x128)](_0x5124c1=!0x1){const _0x4ad00e=_0xd6c7b6;this[_0x4ad00e(0x139)][_0x4ad00e(0x186)][_0x4ad00e(0x128)](_0x5124c1);}[_0xd6c7b6(0x1a6)](_0x296d48,_0x210193){const _0x4c627f=_0xd6c7b6;this[_0x4c627f(0x139)][_0x4c627f(0x1ca)][_0x4c627f(0x157)](_0x296d48,_0x210193);}[_0xd6c7b6(0x153)](){const _0x1088dc=_0xd6c7b6;this[_0x1088dc(0x139)][_0x1088dc(0x1ca)][_0x1088dc(0x153)]();}[_0xd6c7b6(0x1c8)](){const _0x3089ed=_0xd6c7b6;this[_0x3089ed(0x139)][_0x3089ed(0x186)][_0x3089ed(0x1bf)]=!0x0;}[_0xd6c7b6(0x136)](){const _0x42e23d=_0xd6c7b6;this[_0x42e23d(0x139)][_0x42e23d(0x186)][_0x42e23d(0x1bf)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x40aec8=_0x11b0;(function(_0xa85e89,_0x5690e4){const _0x48602d=_0x11b0,_0x44f09d=_0xa85e89();while(!![]){try{const _0x33fb12=-parseInt(_0x48602d(0x178))/0x1*(parseInt(_0x48602d(0x1e5))/0x2)+-parseInt(_0x48602d(0x1ae))/0x3*(parseInt(_0x48602d(0x1a5))/0x4)+parseInt(_0x48602d(0x160))/0x5*(parseInt(_0x48602d(0x1c8))/0x6)+-parseInt(_0x48602d(0x15d))/0x7+parseInt(_0x48602d(0x183))/0x8*(-parseInt(_0x48602d(0x194))/0x9)+parseInt(_0x48602d(0x187))/0xa+parseInt(_0x48602d(0x1ac))/0xb;if(_0x33fb12===_0x5690e4)break;else _0x44f09d['push'](_0x44f09d['shift']());}catch(_0x36c923){_0x44f09d['push'](_0x44f09d['shift']());}}}(_0x1229,0x31a48));import{CKEditorError as _0x10849a,ObservableMixin as _0x1e0c70,uid as _0x5587aa}from'ckeditor5/src/utils.js';function _0x1229(){const _0x182f86=['data','addToolItemToContext','ai-request-aborted','find','41266QCYEzH','_connector','text/html','code','uploadProgressChanged','addUrlToContext','ai-chat-url-upload-failed','files','isInContext','_getCustomSourcesInitialState','urls','push','_mapContextItemToRequestData','sourceResourcesLoaded','2301320lXIzFL','ai-chat-resource-no-data','_addToConversationContextItem','25545riTBbu','loadSourceResources','mapContextItemsToRequestData','getResources','ai-chat-document-upload-failed','length','label','filter','current-document','contextItemAdded','ai-chat-resource-load-failed','customItems','mcpServerName','ai-chat-source-not-found','substring','string','updateCurrentDocument','FILE','sources','enabled','Current\x20document','abortController','file-','files-','19fxFmDz','_setAddContextOptionsDefaultState','contextItemRemoved','forEach','isCurrentDocumentInConversation','ai-chat-context-invalid-data','SELECTION','hidden','delete','getDocument','isCurrentDocumentInContext','8cPfsxm','url','MARKDOWN','stack','756840SNDrEu','message','isHidden','type','object\x20with\x20content\x20and\x20type\x20properties','_finishUploadOperation','addSelectionToContext','attributes','from','URL','resourceStateChanged','getId','addCurrentDocumentToContext','1176183mScUcK','removeSelectionFromContext','url-','_updateResourceInContextState','abort','contextSent','_isResourceInContext','text/markdown','addResourceToContext','object','_findSourceIdsByResourceId','TOOL','getData','_conversationContextItems','fetchDocument','init','set','29152SVGmsx','_addContextOptionsState','_removeContextItem','_pendingContextItems','populateFromMessage','_createContextItemFromContent','get','7725751FZZYCw','map','48ntYxBe','_finishContextItemLoading','document','toolName','_ongoingUploads','ai-chat-source-resources-load-failed','_config','isSelectionInContext','File','TEXT','DOCUMENT','all','addToConversationContext','has','_ownerId','start','removeFromContext','size','addFilesToContext','uiId','resourceId','resources','contextItemLoadingEnded','_toggleAddCurrentDocumentOptionVisibility','_ongoingUploadOperations','content','462uqGuat','addContextOptionsChanged','name','ai-chat-context-unsupported-type','end','_startUploadOperation','startsWith','uploadDocument','ai-chat-file-upload-failed','_convertTextResourceToFile','fire','error','version','text/plain','HTML','getPendingContextItems','isReadOnly','sessionId','uploadFile','_addContextItem','selection','getSentContextItems','uploadUrl','values','clearPendingContextItems'];_0x1229=function(){return _0x182f86;};return _0x1229();}import{AIContextItemType as _0x224537,AIContextTextResourceType as _0x463453}from'../../aicore/model/aicontext.js';import{escape as _0x59d4bc}from'es-toolkit/compat';import{errorsMap as _0x9d15e}from'../../errorsmap.js';function _0x11b0(_0x1b65f8,_0x4d0704){const _0x1229fe=_0x1229();return _0x11b0=function(_0x11b09e,_0x2dc57d){_0x11b09e=_0x11b09e-0x156;let _0x22ae80=_0x1229fe[_0x11b09e];return _0x22ae80;},_0x11b0(_0x1b65f8,_0x4d0704);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x40aec8(0x169),_0x40aec8(0x17a),_0x40aec8(0x1c4),_0x40aec8(0x199),_0x40aec8(0x1d3),_0x40aec8(0x1c9),_0x40aec8(0x15c),_0x40aec8(0x191),_0x40aec8(0x1e9)];export class AIChatContext extends _0x1e0c70(){[_0x40aec8(0x1e6)];[_0x40aec8(0x1b4)];[_0x40aec8(0x1bc)];constructor({connector:_0x43cdef,config:_0xfb479a,ownerId:_0x30205c}){const _0xda2303=_0x40aec8;super(),this[_0xda2303(0x1e6)]=_0x43cdef,this[_0xda2303(0x1b4)]=_0xfb479a,this[_0xda2303(0x1bc)]=_0x30205c;}[_0x40aec8(0x1a3)](){const _0xf73e35=_0x40aec8;this[_0xf73e35(0x1a8)]=new Map(),this[_0xf73e35(0x1a1)]=new Map(),this[_0xf73e35(0x1b2)]=new Map(),this[_0xf73e35(0x1c6)]=new Map(),this[_0xf73e35(0x179)]();}[_0x40aec8(0x1d7)](){const _0x2c9f88=_0x40aec8;return this[_0x2c9f88(0x1a8)];}async[_0x40aec8(0x1a9)](_0x587a38){const _0xf96e54=_0x40aec8,_0xbd71f9=await this[_0xf96e54(0x1aa)](_0x587a38);return this[_0xf96e54(0x15f)](_0xbd71f9),_0xf96e54(0x168)===_0xbd71f9[_0xf96e54(0x1c1)]&&this[_0xf96e54(0x1c5)](),_0xbd71f9;}async[_0x40aec8(0x1aa)](_0x4ac3e7){const _0xd26843=_0x40aec8;if(_0x4ac3e7[_0xd26843(0x18a)]===_0x224537[_0xd26843(0x1b8)]){const _0x45f433=await this[_0xd26843(0x1e6)][_0xd26843(0x1a2)](this[_0xd26843(0x1bc)],_0x4ac3e7['id'])[_0xd26843(0x181)]();return{'id':_0xd26843(0x168),'uiId':_0xd26843(0x168),'label':_0xd26843(0x174),'type':_0x4ac3e7[_0xd26843(0x18a)],'content':_0x45f433[_0xd26843(0x1c7)],'hidden':this[_0xd26843(0x1a1)][_0xd26843(0x1bb)](_0xd26843(0x168)),'version':_0x45f433[_0xd26843(0x18e)]?.[_0xd26843(0x1d4)],'sessionId':_0x45f433[_0xd26843(0x18e)]?.[_0xd26843(0x1d9)]};}if(_0x4ac3e7[_0xd26843(0x18a)]===_0x224537[_0xd26843(0x19f)])return{'id':_0x4ac3e7['id'],'uiId':_0x4ac3e7['id'],'label':_0x4ac3e7[_0xd26843(0x1e1)]?.[_0xd26843(0x166)]||_0x4ac3e7['id'],'type':_0x224537[_0xd26843(0x19f)],'mcpServerName':_0x4ac3e7[_0xd26843(0x16c)],'toolName':_0x4ac3e7[_0xd26843(0x1b1)],'data':_0x4ac3e7[_0xd26843(0x1e1)]||{}};return{'id':_0x4ac3e7['id'],'uiId':_0x4ac3e7['id'],'label':_0x4ac3e7[_0xd26843(0x18e)]?.[_0xd26843(0x166)]||_0x4ac3e7[_0xd26843(0x1ca)]||_0x4ac3e7[_0xd26843(0x184)]||_0x4ac3e7['id'],'type':_0x4ac3e7[_0xd26843(0x18a)],..._0x4ac3e7?.[_0xd26843(0x18e)]?.[_0xd26843(0x1c2)]?{'resourceId':_0x4ac3e7[_0xd26843(0x18e)]?.[_0xd26843(0x1c2)]}:{}};}[_0x40aec8(0x1dd)](){const _0x2f6e04=_0x40aec8;return new Map(this[_0x2f6e04(0x1a1)]);}[_0x40aec8(0x1be)](_0x2e7e9e){const _0x49ffbc=_0x40aec8,_0x1a4fbf=this[_0x49ffbc(0x1a8)][_0x49ffbc(0x1ab)](_0x2e7e9e);_0x1a4fbf?.[_0x49ffbc(0x1d8)]||this[_0x49ffbc(0x1a7)](_0x2e7e9e);}[_0x40aec8(0x1e0)](){const _0x5d701d=_0x40aec8;if(0x0===this[_0x5d701d(0x1a8)][_0x5d701d(0x1bf)])return;for(const _0x21f1c3 of this[_0x5d701d(0x1a8)][_0x5d701d(0x1df)]())this[_0x5d701d(0x1a7)](_0x21f1c3[_0x5d701d(0x1c1)]);const _0x1015d0=this[_0x5d701d(0x1a1)][_0x5d701d(0x1ab)](_0x5d701d(0x168))||this[_0x5d701d(0x1a8)][_0x5d701d(0x1ab)](_0x5d701d(0x168));_0x1015d0&&this[_0x5d701d(0x1db)]({..._0x1015d0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x40aec8(0x1ba)](_0x34e582){const _0x4e681e=_0x40aec8;for(const _0x5a78c8 of _0x34e582[_0x4e681e(0x1df)]())this[_0x4e681e(0x15f)](_0x5a78c8);this[_0x4e681e(0x1e0)](),this[_0x4e681e(0x1d2)](_0x4e681e(0x199),{'contextItems':Array[_0x4e681e(0x18f)](this[_0x4e681e(0x1dd)]()[_0x4e681e(0x1df)]())});}[_0x40aec8(0x182)](){const _0x27cd77=_0x40aec8;return this[_0x27cd77(0x1a8)][_0x27cd77(0x1bb)](_0x27cd77(0x168));}[_0x40aec8(0x1b5)](){const _0x2bdadc=_0x40aec8;return this[_0x2bdadc(0x1a8)][_0x2bdadc(0x1bb)](_0x2bdadc(0x1dc));}[_0x40aec8(0x17c)](){const _0x5362d5=_0x40aec8;return this[_0x5362d5(0x1a1)][_0x5362d5(0x1bb)](_0x5362d5(0x168));}static[_0x40aec8(0x162)](_0x5db8e3){const _0x4b3135=_0x40aec8;return Array[_0x4b3135(0x18f)](_0x5db8e3[_0x4b3135(0x1df)]())[_0x4b3135(0x1ad)](_0xbf2d3e=>this[_0x4b3135(0x15b)](_0xbf2d3e))[_0x4b3135(0x167)](_0x3d7129=>null!==_0x3d7129);}async[_0x40aec8(0x1c0)](_0x2553b1,_0x299e4b,_0x2905ce=_0x224537[_0x40aec8(0x171)]){const _0xb92b89=_0x40aec8,_0x347493=_0xb92b89(0x177)+_0x5587aa();this[_0xb92b89(0x1cd)](_0x347493);try{await Promise[_0xb92b89(0x1b9)](_0x2553b1[_0xb92b89(0x1ad)](async _0x54fada=>{const _0x58bbfb=_0xb92b89,_0x55c5b4=_0x58bbfb(0x176)+_0x5587aa(),_0x2531d8=_0x59d4bc(_0x54fada[_0x58bbfb(0x1ca)]);try{this[_0x58bbfb(0x1db)]({'type':_0x2905ce,'label':_0x299e4b?.[_0x58bbfb(0x166)]||_0x2531d8,'uiId':_0x55c5b4,'resourceId':_0x299e4b?.[_0x58bbfb(0x1c2)]},!0x0);const _0x2303ad=this[_0x58bbfb(0x1e6)][_0x58bbfb(0x1da)](this[_0x58bbfb(0x1bc)],_0x54fada,_0x299e4b);this[_0x58bbfb(0x1b2)][_0x58bbfb(0x1a4)](_0x55c5b4,_0x2303ad[_0x58bbfb(0x175)]);const {id:_0x5937c5}=await _0x2303ad[_0x58bbfb(0x192)]();this[_0x58bbfb(0x1b2)][_0x58bbfb(0x180)](_0x55c5b4),this[_0x58bbfb(0x1af)]({'type':_0x2905ce,'id':_0x5937c5,'label':_0x299e4b?.[_0x58bbfb(0x166)]||_0x2531d8,'uiId':_0x55c5b4,'resourceId':_0x299e4b?.[_0x58bbfb(0x1c2)]},!0x1);}catch(_0x5e5f34){this[_0x58bbfb(0x1b2)][_0x58bbfb(0x180)](_0x55c5b4);if(!(_0x5e5f34 instanceof _0x10849a&&_0x5e5f34[_0x58bbfb(0x188)][_0x58bbfb(0x1ce)](_0x58bbfb(0x1e3)))){const _0x5d070a=_0x9d15e[_0x58bbfb(0x1ab)](_0x5e5f34[_0x58bbfb(0x1e8)])||_0x58bbfb(0x1d0),_0x2b6612=new _0x10849a(_0x5d070a,null,{'fileName':_0x2531d8,..._0x5e5f34});_0x2b6612[_0x58bbfb(0x186)]=_0x5e5f34[_0x58bbfb(0x186)],this[_0x58bbfb(0x1d2)](_0x58bbfb(0x1d3),{'error':_0x2b6612});}this[_0x58bbfb(0x1a7)](_0x55c5b4);}}));}finally{this[_0xb92b89(0x18c)](_0x347493);}}[_0x40aec8(0x193)](_0x5d5811){const _0x124cb6=_0x40aec8;if(this[_0x124cb6(0x182)]()||!this[_0x124cb6(0x1a6)][_0x124cb6(0x1b0)][_0x124cb6(0x173)])return;const _0x4c60bb={'type':_0x224537[_0x124cb6(0x1b8)],'uiId':_0x124cb6(0x168),'label':_0x5d5811,'isReadOnly':this[_0x124cb6(0x1a1)][_0x124cb6(0x1bb)](_0x124cb6(0x168)),'hidden':this[_0x124cb6(0x1a1)][_0x124cb6(0x1bb)](_0x124cb6(0x168))};this[_0x124cb6(0x1db)](_0x4c60bb);}async[_0x40aec8(0x170)](_0x561230,_0x2fc8bb,_0x4049d1,_0xe75f78){const _0x11463e=_0x40aec8,_0x309ac6=this[_0x11463e(0x1a8)][_0x11463e(0x1ab)](_0x11463e(0x168));if(_0x309ac6&&_0x561230){_0x309ac6[_0x11463e(0x1dc)]=_0xe75f78?_0xe75f78[_0x11463e(0x1ad)](_0x27eb0=>({'start':_0x27eb0[_0x11463e(0x1bd)],'end':_0x27eb0[_0x11463e(0x1cc)]})):[];try{if(_0x309ac6[_0x11463e(0x1d4)]===_0x2fc8bb)return;const {id:_0x5e3f26}=await this[_0x11463e(0x1e6)][_0x11463e(0x1cf)](this[_0x11463e(0x1bc)],_0x561230,{'version':_0x2fc8bb,'sessionId':_0x4049d1})[_0x11463e(0x192)]();_0x309ac6['id']=_0x5e3f26,_0x309ac6[_0x11463e(0x1c7)]=_0x561230,_0x309ac6[_0x11463e(0x1d4)]=_0x2fc8bb,_0x309ac6[_0x11463e(0x1d9)]=_0x4049d1;}catch(_0x166e5d){const _0x13b2ed=new _0x10849a(_0x11463e(0x164),null);_0x13b2ed[_0x11463e(0x186)]=_0x166e5d[_0x11463e(0x186)],this[_0x11463e(0x1d2)](_0x11463e(0x1d3),{'error':_0x13b2ed});}}}[_0x40aec8(0x18d)](_0x4571ed){const _0x23880e=_0x40aec8;this[_0x23880e(0x1db)]({'type':_0x224537[_0x23880e(0x17e)],'label':_0x4571ed,'uiId':_0x23880e(0x1dc),'content':_0x4571ed});}[_0x40aec8(0x195)](){const _0x2d0283=_0x40aec8;this[_0x2d0283(0x1a7)](_0x2d0283(0x1dc));}async[_0x40aec8(0x1ea)](_0x45aac1,_0x1b41cb){const _0x5362ee=_0x40aec8,_0x10ac90=_0x5362ee(0x196)+_0x5587aa();this[_0x5362ee(0x1cd)](_0x10ac90);const _0x36caf8=_0x5362ee(0x196)+_0x5587aa();try{this[_0x5362ee(0x1db)]({'type':_0x224537[_0x5362ee(0x190)],'label':_0x1b41cb?.[_0x5362ee(0x166)]||_0x45aac1,'uiId':_0x36caf8,'resourceId':_0x1b41cb?.[_0x5362ee(0x1c2)]},!0x0);const _0xcadb48=this[_0x5362ee(0x1e6)][_0x5362ee(0x1de)](this[_0x5362ee(0x1bc)],_0x45aac1,_0x1b41cb);this[_0x5362ee(0x1b2)][_0x5362ee(0x1a4)](_0x36caf8,_0xcadb48[_0x5362ee(0x175)]);const {id:_0x1a3fc6}=await _0xcadb48[_0x5362ee(0x192)]();this[_0x5362ee(0x1b2)][_0x5362ee(0x180)](_0x36caf8),this[_0x5362ee(0x1af)]({'type':_0x224537[_0x5362ee(0x190)],'id':_0x1a3fc6,'label':_0x1b41cb?.[_0x5362ee(0x166)]||_0x45aac1,'uiId':_0x36caf8,'resourceId':_0x1b41cb?.[_0x5362ee(0x1c2)]},!0x1);}catch(_0x1d8c63){this[_0x5362ee(0x1b2)][_0x5362ee(0x180)](_0x36caf8),(_0x1d8c63[_0x5362ee(0x188)][_0x5362ee(0x1ce)](_0x5362ee(0x1e3))||this[_0x5362ee(0x1d2)](_0x5362ee(0x1d3),{'error':new _0x10849a(_0x5362ee(0x1eb),this,{'url':_0x45aac1,'originalError':_0x1d8c63}),'url':_0x45aac1}),this[_0x5362ee(0x1a7)](_0x36caf8));}finally{this[_0x5362ee(0x18c)](_0x10ac90);}}[_0x40aec8(0x1e2)](_0x46eeb4){const _0x375e08=_0x40aec8;_0x46eeb4['id']=_0x46eeb4['id']??_0x5587aa()[_0x375e08(0x16e)](0x0,0x15),this[_0x375e08(0x1a8)][_0x375e08(0x1a4)](_0x46eeb4[_0x375e08(0x1c1)],_0x46eeb4),this[_0x375e08(0x1d2)](_0x375e08(0x169),{'contextItem':_0x46eeb4,'isLoading':!0x1});}async[_0x40aec8(0x161)](_0x177a7b,_0x3f801d,_0x1aacf9){const _0x214b00=_0x40aec8,_0x167868=this[_0x214b00(0x1a6)][_0x214b00(0x172)][_0x214b00(0x1e4)](_0x3c1895=>_0x3c1895['id']===_0x177a7b);if(!_0x167868)return this[_0x214b00(0x1d2)](_0x214b00(0x1d3),{'error':new _0x10849a(_0x214b00(0x16d),this,{'sourceId':_0x177a7b}),'sourceId':_0x177a7b}),[];try{const _0x369874=(await _0x167868[_0x214b00(0x163)](_0x3f801d))[_0x214b00(0x1ad)](_0x450ce0=>{const _0x4fbb5f=_0x214b00,_0x39ec8a=this[_0x4fbb5f(0x19a)](_0x450ce0['id']);return{..._0x450ce0,'isInContext':_0x39ec8a};});return _0x167868[_0x214b00(0x1c3)]=_0x369874,this[_0x214b00(0x1d2)](_0x214b00(0x15c),{'sourceId':_0x177a7b,'source':_0x167868,'resources':_0x369874,'uid':_0x1aacf9}),_0x369874;}catch(_0x2651cb){return this[_0x214b00(0x1d2)](_0x214b00(0x1d3),{'error':new _0x10849a(_0x214b00(0x1b3),this,{'sourceId':_0x177a7b,'originalError':_0x2651cb}),'sourceId':_0x177a7b,'sourceLabel':_0x167868[_0x214b00(0x166)]}),[];}}async[_0x40aec8(0x19c)](_0x3b9a8f,_0x184091){const _0x275a78=_0x40aec8;if(this[_0x275a78(0x19a)](_0x184091['id']))return;let _0x3a5e45=_0x184091[_0x275a78(0x1e1)];if(!_0x3a5e45&&_0x3b9a8f[_0x275a78(0x1a0)])try{_0x3a5e45=await _0x3b9a8f[_0x275a78(0x1a0)](_0x184091['id']);}catch(_0x360dab){return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x16a),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'originalError':_0x360dab}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});}if(_0x3a5e45)switch(_0x184091[_0x275a78(0x18a)]){case _0x224537[_0x275a78(0x190)]:if(_0x275a78(0x16f)!=typeof _0x3a5e45)return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x17d),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'expectedType':_0x275a78(0x16f),'actualType':typeof _0x3a5e45}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});await this[_0x275a78(0x1ea)](_0x3a5e45,{'label':_0x184091[_0x275a78(0x166)],'resourceId':_0x184091['id']});break;case _0x224537[_0x275a78(0x171)]:if(!(_0x3a5e45 instanceof File))return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x17d),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'expectedType':_0x275a78(0x1b6),'actualType':typeof _0x3a5e45}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});await this[_0x275a78(0x1c0)]([_0x3a5e45],{'label':_0x184091[_0x275a78(0x166)],'resourceId':_0x184091['id']});break;case _0x224537[_0x275a78(0x1b7)]:if(_0x275a78(0x19d)!=typeof _0x3a5e45||!(_0x275a78(0x1c7)in _0x3a5e45)||!(_0x275a78(0x18a)in _0x3a5e45))return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x17d),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'expectedType':_0x275a78(0x18b),'actualType':typeof _0x3a5e45}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});_0x3a5e45=AIChatContext[_0x275a78(0x1d1)](_0x3a5e45,_0x184091[_0x275a78(0x166)]),await this[_0x275a78(0x1c0)]([_0x3a5e45],{'label':_0x184091[_0x275a78(0x166)],'resourceId':_0x184091['id']},_0x224537[_0x275a78(0x1b7)]);break;case _0x224537[_0x275a78(0x19f)]:break;default:this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x1cb),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'resourceType':_0x184091[_0x275a78(0x18a)]}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});}else this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x15e),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});}static[_0x40aec8(0x1d1)](_0x20042f,_0x58295b){const _0x594ce2=_0x40aec8;switch(_0x20042f[_0x594ce2(0x18a)]){case _0x463453[_0x594ce2(0x185)]:return new File([_0x20042f[_0x594ce2(0x1c7)]],_0x58295b,{'type':_0x594ce2(0x19b)});case _0x463453[_0x594ce2(0x1d6)]:return new File([_0x20042f[_0x594ce2(0x1c7)]],_0x58295b,{'type':_0x594ce2(0x1e7)});default:return new File([_0x20042f[_0x594ce2(0x1c7)]],_0x58295b,{'type':_0x594ce2(0x1d5)});}}static[_0x40aec8(0x15b)](_0x407f6f){const _0x244a50=_0x40aec8;switch(_0x407f6f[_0x244a50(0x18a)]){case _0x224537[_0x244a50(0x171)]:return{'type':_0x224537[_0x244a50(0x171)],'id':_0x407f6f['id']};case _0x224537[_0x244a50(0x190)]:return{'type':_0x224537[_0x244a50(0x190)],'id':_0x407f6f['id']};case _0x224537[_0x244a50(0x1b8)]:return{'type':_0x224537[_0x244a50(0x1b8)],'id':_0x407f6f['id'],..._0x407f6f[_0x244a50(0x1dc)]?.[_0x244a50(0x165)]&&{'selection':_0x407f6f[_0x244a50(0x1dc)]}};case _0x224537[_0x244a50(0x1b7)]:return{'type':_0x224537[_0x244a50(0x171)],'id':_0x407f6f['id']};case _0x224537[_0x244a50(0x19f)]:{const _0x14a579=_0x407f6f;return{'type':_0x224537[_0x244a50(0x19f)],'mcpServerName':_0x14a579[_0x244a50(0x16c)],'toolName':_0x14a579[_0x244a50(0x1b1)],'data':_0x14a579[_0x244a50(0x1e1)],'id':_0x14a579['id']};}default:return null;}}[_0x40aec8(0x1db)](_0x85b675,_0x30de17=!0x1){const _0x4c44c6=_0x40aec8;if(this[_0x4c44c6(0x1a8)][_0x4c44c6(0x1a4)](_0x85b675[_0x4c44c6(0x1c1)],_0x85b675),_0x85b675[_0x4c44c6(0x17f)]||this[_0x4c44c6(0x1d2)](_0x4c44c6(0x169),{'contextItem':_0x85b675,'isLoading':_0x30de17}),_0x4c44c6(0x168)===_0x85b675[_0x4c44c6(0x1c1)]&&this[_0x4c44c6(0x1c5)](),_0x85b675[_0x4c44c6(0x1c2)]){const _0x465a20=this[_0x4c44c6(0x19e)](_0x85b675[_0x4c44c6(0x1c2)]);_0x465a20&&_0x465a20[_0x4c44c6(0x17b)](_0x294825=>{const _0x5d8a96=_0x4c44c6;this[_0x5d8a96(0x197)](_0x294825,_0x85b675[_0x5d8a96(0x1c2)],!0x0);});}}[_0x40aec8(0x1a7)](_0x20e734){const _0xd59b7d=_0x40aec8,_0x275b92=this[_0xd59b7d(0x1a8)][_0xd59b7d(0x1ab)](_0x20e734),_0x33b175=this[_0xd59b7d(0x1b2)][_0xd59b7d(0x1ab)](_0x20e734);if(_0x33b175&&(_0x33b175[_0xd59b7d(0x198)](),this[_0xd59b7d(0x1b2)][_0xd59b7d(0x180)](_0x20e734)),_0x275b92?.[_0xd59b7d(0x1c2)]){const _0xfc71e5=this[_0xd59b7d(0x19e)](_0x275b92[_0xd59b7d(0x1c2)]);_0xfc71e5&&_0xfc71e5[_0xd59b7d(0x17b)](_0x29aa58=>{const _0x46b5c3=_0xd59b7d;this[_0x46b5c3(0x197)](_0x29aa58,_0x275b92[_0x46b5c3(0x1c2)],!0x1);});}this[_0xd59b7d(0x1a8)][_0xd59b7d(0x180)](_0x20e734),this[_0xd59b7d(0x1d2)](_0xd59b7d(0x17a),{'uiId':_0x20e734,'type':_0x275b92?.[_0xd59b7d(0x18a)]}),_0xd59b7d(0x168)===_0x20e734&&this[_0xd59b7d(0x1c5)]();}[_0x40aec8(0x1af)](_0x51bbb2,_0x44ccda){const _0x372397=_0x40aec8;if(this[_0x372397(0x1a8)][_0x372397(0x1bb)](_0x51bbb2[_0x372397(0x1c1)])&&(this[_0x372397(0x1a8)][_0x372397(0x1a4)](_0x51bbb2[_0x372397(0x1c1)],_0x51bbb2),this[_0x372397(0x1d2)](_0x372397(0x1c4),{'contextItem':_0x51bbb2,'isLoading':_0x44ccda}),_0x51bbb2[_0x372397(0x1c2)])){const _0xf0e911=this[_0x372397(0x19e)](_0x51bbb2[_0x372397(0x1c2)]);_0xf0e911&&_0xf0e911[_0x372397(0x17b)](_0x2cf6ee=>{const _0x123790=_0x372397;this[_0x123790(0x197)](_0x2cf6ee,_0x51bbb2[_0x123790(0x1c2)],!0x0);});}}[_0x40aec8(0x15f)](_0x1ae5a0){const _0x2f3cb0=_0x40aec8;this[_0x2f3cb0(0x1a1)][_0x2f3cb0(0x1a4)](_0x1ae5a0[_0x2f3cb0(0x1c1)],_0x1ae5a0);}[_0x40aec8(0x179)](){const _0x161c7c=_0x40aec8;this[_0x161c7c(0x1a6)]={'document':{'enabled':!0x1!==this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x1b0)]?.[_0x161c7c(0x173)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x159)]?.[_0x161c7c(0x173)]},'files':{'enabled':!0x1!==this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x156)]?.[_0x161c7c(0x173)]},'sources':this[_0x161c7c(0x158)](),'customItems':this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x16b)]?.[_0x161c7c(0x1ad)](_0x3833f5=>({..._0x3833f5,'enabled':!0x0}))??[]},this[_0x161c7c(0x1d2)](_0x161c7c(0x1c9),{'options':this[_0x161c7c(0x1a6)]});}[_0x40aec8(0x158)](){const _0x2ce3ae=_0x40aec8;return this[_0x2ce3ae(0x1b4)]?.[_0x2ce3ae(0x172)]?.[_0x2ce3ae(0x1ad)](_0xa95440=>({..._0xa95440,'resources':[]}))??[];}[_0x40aec8(0x1c5)](){const _0x10b27b=_0x40aec8,_0x383895=this[_0x10b27b(0x182)]()||this[_0x10b27b(0x17c)]();this[_0x10b27b(0x1a6)][_0x10b27b(0x1b0)][_0x10b27b(0x189)]=_0x383895,this[_0x10b27b(0x1d2)](_0x10b27b(0x1c9),{'options':this[_0x10b27b(0x1a6)]});}[_0x40aec8(0x19a)](_0x343e50){const _0x21aa04=_0x40aec8;for(const _0x2eb98e of this[_0x21aa04(0x1a8)][_0x21aa04(0x1df)]())if(_0x2eb98e[_0x21aa04(0x1c2)]===_0x343e50)return!0x0;for(const _0x32b62d of this[_0x21aa04(0x1a1)][_0x21aa04(0x1df)]())if(_0x32b62d[_0x21aa04(0x1c2)]===_0x343e50)return!0x0;return!0x1;}[_0x40aec8(0x19e)](_0x57b931){const _0x8e8a77=_0x40aec8,_0x383439=[];for(const _0x52d27b of this[_0x8e8a77(0x1a6)][_0x8e8a77(0x172)]){_0x52d27b[_0x8e8a77(0x1c3)][_0x8e8a77(0x1e4)](_0x544971=>_0x544971['id']===_0x57b931)&&_0x383439[_0x8e8a77(0x15a)](_0x52d27b['id']);}return 0x0===_0x383439[_0x8e8a77(0x165)]?null:_0x383439;}[_0x40aec8(0x197)](_0xcdd705,_0x2c77f4,_0x375b7b){const _0x1c6d02=_0x40aec8,_0x159ea8=this[_0x1c6d02(0x1a6)][_0x1c6d02(0x172)][_0x1c6d02(0x1e4)](_0x30e283=>_0x30e283['id']===_0xcdd705);if(!_0x159ea8)return;const _0x830f10=_0x159ea8[_0x1c6d02(0x1c3)][_0x1c6d02(0x1e4)](_0x396410=>_0x396410['id']===_0x2c77f4);_0x830f10&&(_0x830f10[_0x1c6d02(0x157)]=_0x375b7b,this[_0x1c6d02(0x1d2)](_0x1c6d02(0x191),{'sourceId':_0xcdd705,'resourceId':_0x2c77f4,'isInContext':_0x375b7b}));}[_0x40aec8(0x1cd)](_0x598da2){const _0x2c0163=_0x40aec8;this[_0x2c0163(0x1c6)][_0x2c0163(0x1a4)](_0x598da2,!0x0),this[_0x2c0163(0x1c6)][_0x2c0163(0x1bf)]&&this[_0x2c0163(0x1d2)](_0x2c0163(0x1e9),{'isUploadInProgress':!0x0});}[_0x40aec8(0x18c)](_0x2208af){const _0x2deaa2=_0x40aec8;this[_0x2deaa2(0x1c6)][_0x2deaa2(0x180)](_0x2208af),0x0===this[_0x2deaa2(0x1c6)][_0x2deaa2(0x1bf)]&&this[_0x2deaa2(0x1d2)](_0x2deaa2(0x1e9),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x202b84=_0x5a09;function _0x1346(){const _0x586ad9=['3165MVZXbN','files-','addUrlToContext','url','getData','SELECTION','_createContextItemFromContent','start','getResources','files','file-','DOCUMENT','_findSourceIdsByResourceId','_addContextItem','uploadFile','_isResourceInContext','ai-chat-source-resources-load-failed','attributes','isInContext','text/markdown','customItems','name','resourceId','ai-chat-source-not-found','_pendingContextItems','11843163HYnkMP','isCurrentDocumentInConversation','_connector','contextItemRemoved','addSelectionToContext','size','_updateResourceInContextState','7624qBtNhn','7041006LrNpBb','_toggleAddCurrentDocumentOptionVisibility','File','selection','addResourceToContext','ai-chat-file-upload-failed','stack','version','uploadDocument','message','MARKDOWN','_conversationContextItems','loadSourceResources','data','code','_finishContextItemLoading','TEXT','getDocument','contextItemAdded','updateCurrentDocument','_finishUploadOperation','addToConversationContext','label','addToolItemToContext','removeSelectionFromContext','toolName','addCurrentDocumentToContext','get','_setAddContextOptionsDefaultState','17850960mjwggT','FILE','error','HTML','uploadProgressChanged','_mapContextItemToRequestData','removeFromContext','_ongoingUploads','ai-chat-url-upload-failed','filter','ai-chat-context-invalid-data','text/html','getSentContextItems','ai-chat-resource-no-data','object\x20with\x20content\x20and\x20type\x20properties','uiId','init','enabled','all','url-','mcpServerName','4143543rzBaei','set','delete','populateFromMessage','abortController','type','URL','hidden','ai-chat-document-upload-failed','resources','_removeContextItem','contextItemLoadingEnded','current-document','text/plain','length','sessionId','contextSent','urls','isHidden','clearPendingContextItems','_config','content','267434tIUwCE','_addContextOptionsState','addContextOptionsChanged','resourceStateChanged','getPendingContextItems','substring','sourceResourcesLoaded','fetchDocument','mapContextItemsToRequestData','uploadUrl','push','end','has','TOOL','_startUploadOperation','find','ai-chat-resource-load-failed','Current\x20document','string','forEach','_ongoingUploadOperations','addFilesToContext','isSelectionInContext','getId','fire','_addToConversationContextItem','_convertTextResourceToFile','574518GOJEAF','isReadOnly','object','8sBaFbN','_getCustomSourcesInitialState','ai-chat-context-unsupported-type','abort','values','ai-request-aborted','map','sources','isCurrentDocumentInContext','56UWTOMl','from','document','startsWith','_ownerId'];_0x1346=function(){return _0x586ad9;};return _0x1346();}(function(_0x4eaca0,_0x5aa5e9){const _0x41b6de=_0x5a09,_0x1fbcd2=_0x4eaca0();while(!![]){try{const _0x56e3b4=parseInt(_0x41b6de(0xf0))/0x1*(parseInt(_0x41b6de(0xd2))/0x2)+-parseInt(_0x41b6de(0xbc))/0x3+-parseInt(_0x41b6de(0x11e))/0x4*(parseInt(_0x41b6de(0xfe))/0x5)+parseInt(_0x41b6de(0x11f))/0x6+-parseInt(_0x41b6de(0xed))/0x7*(-parseInt(_0x41b6de(0xf9))/0x8)+-parseInt(_0x41b6de(0x117))/0x9+parseInt(_0x41b6de(0x13c))/0xa;if(_0x56e3b4===_0x5aa5e9)break;else _0x1fbcd2['push'](_0x1fbcd2['shift']());}catch(_0x5abf4e){_0x1fbcd2['push'](_0x1fbcd2['shift']());}}}(_0x1346,0xaab81));import{CKEditorError as _0x462c3a,ObservableMixin as _0x4c39c7,uid as _0x323f94}from'ckeditor5/src/utils.js';function _0x5a09(_0xfc24c3,_0x457744){const _0x1346ba=_0x1346();return _0x5a09=function(_0x5a09ab,_0x2080d6){_0x5a09ab=_0x5a09ab-0xac;let _0x27f71c=_0x1346ba[_0x5a09ab];return _0x27f71c;},_0x5a09(_0xfc24c3,_0x457744);}import{AIContextItemType as _0x4dd290,AIContextTextResourceType as _0x56b05a}from'../../aicore/model/aicontext.js';import{escape as _0x4133d8}from'es-toolkit/compat';import{errorsMap as _0x5ca883}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x202b84(0x131),_0x202b84(0x11a),_0x202b84(0xc7),_0x202b84(0xcc),_0x202b84(0x13e),_0x202b84(0xd4),_0x202b84(0xd8),_0x202b84(0xd5),_0x202b84(0x140)];export class AIChatContext extends _0x4c39c7(){[_0x202b84(0x119)];[_0x202b84(0xd0)];[_0x202b84(0xfd)];constructor({connector:_0x2cc21c,config:_0x471c99,ownerId:_0x2c4ad3}){const _0x388881=_0x202b84;super(),this[_0x388881(0x119)]=_0x2cc21c,this[_0x388881(0xd0)]=_0x471c99,this[_0x388881(0xfd)]=_0x2c4ad3;}[_0x202b84(0xb7)](){const _0x292e91=_0x202b84;this[_0x292e91(0x116)]=new Map(),this[_0x292e91(0x12a)]=new Map(),this[_0x292e91(0xae)]=new Map(),this[_0x292e91(0xe6)]=new Map(),this[_0x292e91(0x13b)]();}[_0x202b84(0xd6)](){const _0x8753c=_0x202b84;return this[_0x8753c(0x116)];}async[_0x202b84(0xbf)](_0x1ffd01){const _0x308519=_0x202b84,_0x12ac25=await this[_0x308519(0x104)](_0x1ffd01);return this[_0x308519(0xeb)](_0x12ac25),_0x308519(0xc8)===_0x12ac25[_0x308519(0xb6)]&&this[_0x308519(0x120)](),_0x12ac25;}async[_0x202b84(0x104)](_0x484b7e){const _0x4895f2=_0x202b84;if(_0x484b7e[_0x4895f2(0xc1)]===_0x4dd290[_0x4895f2(0x109)]){const _0xf7aa9=await this[_0x4895f2(0x119)][_0x4895f2(0xd9)](this[_0x4895f2(0xfd)],_0x484b7e['id'])[_0x4895f2(0x130)]();return{'id':_0x4895f2(0xc8),'uiId':_0x4895f2(0xc8),'label':_0x4895f2(0xe3),'type':_0x484b7e[_0x4895f2(0xc1)],'content':_0xf7aa9[_0x4895f2(0xd1)],'hidden':this[_0x4895f2(0x12a)][_0x4895f2(0xde)](_0x4895f2(0xc8)),'version':_0xf7aa9[_0x4895f2(0x10f)]?.[_0x4895f2(0x126)],'sessionId':_0xf7aa9[_0x4895f2(0x10f)]?.[_0x4895f2(0xcb)]};}if(_0x484b7e[_0x4895f2(0xc1)]===_0x4dd290[_0x4895f2(0xdf)])return{'id':_0x484b7e['id'],'uiId':_0x484b7e['id'],'label':_0x484b7e[_0x4895f2(0x12c)]?.[_0x4895f2(0x135)]||_0x484b7e['id'],'type':_0x4dd290[_0x4895f2(0xdf)],'mcpServerName':_0x484b7e[_0x4895f2(0xbb)],'toolName':_0x484b7e[_0x4895f2(0x138)],'data':_0x484b7e[_0x4895f2(0x12c)]||{}};return{'id':_0x484b7e['id'],'uiId':_0x484b7e['id'],'label':_0x484b7e[_0x4895f2(0x10f)]?.[_0x4895f2(0x135)]||_0x484b7e[_0x4895f2(0x113)]||_0x484b7e[_0x4895f2(0x101)]||_0x484b7e['id'],'type':_0x484b7e[_0x4895f2(0xc1)],..._0x484b7e?.[_0x4895f2(0x10f)]?.[_0x4895f2(0x114)]?{'resourceId':_0x484b7e[_0x4895f2(0x10f)]?.[_0x4895f2(0x114)]}:{}};}[_0x202b84(0xb3)](){const _0x35be93=_0x202b84;return new Map(this[_0x35be93(0x12a)]);}[_0x202b84(0xad)](_0x34be4a){const _0x5889a3=_0x202b84,_0x3c271c=this[_0x5889a3(0x116)][_0x5889a3(0x13a)](_0x34be4a);_0x3c271c?.[_0x5889a3(0xee)]||this[_0x5889a3(0xc6)](_0x34be4a);}[_0x202b84(0xcf)](){const _0x2fbc8a=_0x202b84;if(0x0===this[_0x2fbc8a(0x116)][_0x2fbc8a(0x11c)])return;for(const _0x3424a9 of this[_0x2fbc8a(0x116)][_0x2fbc8a(0xf4)]())this[_0x2fbc8a(0xc6)](_0x3424a9[_0x2fbc8a(0xb6)]);const _0x391c13=this[_0x2fbc8a(0x12a)][_0x2fbc8a(0x13a)](_0x2fbc8a(0xc8))||this[_0x2fbc8a(0x116)][_0x2fbc8a(0x13a)](_0x2fbc8a(0xc8));_0x391c13&&this[_0x2fbc8a(0x10b)]({..._0x391c13,'isReadOnly':!0x0,'hidden':!0x0});}[_0x202b84(0x134)](_0x4af73d){const _0x1a1e92=_0x202b84;for(const _0x3942c1 of _0x4af73d[_0x1a1e92(0xf4)]())this[_0x1a1e92(0xeb)](_0x3942c1);this[_0x1a1e92(0xcf)](),this[_0x1a1e92(0xea)](_0x1a1e92(0xcc),{'contextItems':Array[_0x1a1e92(0xfa)](this[_0x1a1e92(0xb3)]()[_0x1a1e92(0xf4)]())});}[_0x202b84(0xf8)](){const _0x55fcd5=_0x202b84;return this[_0x55fcd5(0x116)][_0x55fcd5(0xde)](_0x55fcd5(0xc8));}[_0x202b84(0xe8)](){const _0x210109=_0x202b84;return this[_0x210109(0x116)][_0x210109(0xde)](_0x210109(0x122));}[_0x202b84(0x118)](){const _0x108b46=_0x202b84;return this[_0x108b46(0x12a)][_0x108b46(0xde)](_0x108b46(0xc8));}static[_0x202b84(0xda)](_0x5a716e){const _0x861645=_0x202b84;return Array[_0x861645(0xfa)](_0x5a716e[_0x861645(0xf4)]())[_0x861645(0xf6)](_0x43d354=>this[_0x861645(0xac)](_0x43d354))[_0x861645(0xb0)](_0x181b1d=>null!==_0x181b1d);}async[_0x202b84(0xe7)](_0x5c9faa,_0x3f0936,_0x19160e=_0x4dd290[_0x202b84(0x13d)]){const _0x46b572=_0x202b84,_0x55239a=_0x46b572(0xff)+_0x323f94();this[_0x46b572(0xe0)](_0x55239a);try{await Promise[_0x46b572(0xb9)](_0x5c9faa[_0x46b572(0xf6)](async _0x276b64=>{const _0x525904=_0x46b572,_0x3dcbaf=_0x525904(0x108)+_0x323f94(),_0x27e740=_0x4133d8(_0x276b64[_0x525904(0x113)]);try{this[_0x525904(0x10b)]({'type':_0x19160e,'label':_0x3f0936?.[_0x525904(0x135)]||_0x27e740,'uiId':_0x3dcbaf,'resourceId':_0x3f0936?.[_0x525904(0x114)]},!0x0);const _0x3aca9c=this[_0x525904(0x119)][_0x525904(0x10c)](this[_0x525904(0xfd)],_0x276b64,_0x3f0936);this[_0x525904(0xae)][_0x525904(0xbd)](_0x3dcbaf,_0x3aca9c[_0x525904(0xc0)]);const {id:_0x19b609}=await _0x3aca9c[_0x525904(0xe9)]();this[_0x525904(0xae)][_0x525904(0xbe)](_0x3dcbaf),this[_0x525904(0x12e)]({'type':_0x19160e,'id':_0x19b609,'label':_0x3f0936?.[_0x525904(0x135)]||_0x27e740,'uiId':_0x3dcbaf,'resourceId':_0x3f0936?.[_0x525904(0x114)]},!0x1);}catch(_0x435275){this[_0x525904(0xae)][_0x525904(0xbe)](_0x3dcbaf);if(!(_0x435275 instanceof _0x462c3a&&_0x435275[_0x525904(0x128)][_0x525904(0xfc)](_0x525904(0xf5)))){const _0x3ab400=_0x5ca883[_0x525904(0x13a)](_0x435275[_0x525904(0x12d)])||_0x525904(0x124),_0x5c95cc=new _0x462c3a(_0x3ab400,null,{'fileName':_0x27e740,..._0x435275});_0x5c95cc[_0x525904(0x125)]=_0x435275[_0x525904(0x125)],this[_0x525904(0xea)](_0x525904(0x13e),{'error':_0x5c95cc});}this[_0x525904(0xc6)](_0x3dcbaf);}}));}finally{this[_0x46b572(0x133)](_0x55239a);}}[_0x202b84(0x139)](_0x1f4e21){const _0x1be0f0=_0x202b84;if(this[_0x1be0f0(0xf8)]()||!this[_0x1be0f0(0xd3)][_0x1be0f0(0xfb)][_0x1be0f0(0xb8)])return;const _0x5584f0={'type':_0x4dd290[_0x1be0f0(0x109)],'uiId':_0x1be0f0(0xc8),'label':_0x1f4e21,'isReadOnly':this[_0x1be0f0(0x12a)][_0x1be0f0(0xde)](_0x1be0f0(0xc8)),'hidden':this[_0x1be0f0(0x12a)][_0x1be0f0(0xde)](_0x1be0f0(0xc8))};this[_0x1be0f0(0x10b)](_0x5584f0);}async[_0x202b84(0x132)](_0x1f696d,_0x10179a,_0x39222e,_0xfc4b99){const _0x33fbd5=_0x202b84,_0xa4af92=this[_0x33fbd5(0x116)][_0x33fbd5(0x13a)](_0x33fbd5(0xc8));if(_0xa4af92&&_0x1f696d){_0xa4af92[_0x33fbd5(0x122)]=_0xfc4b99?_0xfc4b99[_0x33fbd5(0xf6)](_0x24ec5e=>({'start':_0x24ec5e[_0x33fbd5(0x105)],'end':_0x24ec5e[_0x33fbd5(0xdd)]})):[];try{if(_0xa4af92[_0x33fbd5(0x126)]===_0x10179a)return;const {id:_0x12e50a}=await this[_0x33fbd5(0x119)][_0x33fbd5(0x127)](this[_0x33fbd5(0xfd)],_0x1f696d,{'version':_0x10179a,'sessionId':_0x39222e})[_0x33fbd5(0xe9)]();_0xa4af92['id']=_0x12e50a,_0xa4af92[_0x33fbd5(0xd1)]=_0x1f696d,_0xa4af92[_0x33fbd5(0x126)]=_0x10179a,_0xa4af92[_0x33fbd5(0xcb)]=_0x39222e;}catch(_0x3ca713){const _0x42d4f3=new _0x462c3a(_0x33fbd5(0xc4),null);_0x42d4f3[_0x33fbd5(0x125)]=_0x3ca713[_0x33fbd5(0x125)],this[_0x33fbd5(0xea)](_0x33fbd5(0x13e),{'error':_0x42d4f3});}}}[_0x202b84(0x11b)](_0x558dc3){const _0x42238d=_0x202b84;this[_0x42238d(0x10b)]({'type':_0x4dd290[_0x42238d(0x103)],'label':_0x558dc3,'uiId':_0x42238d(0x122),'content':_0x558dc3});}[_0x202b84(0x137)](){const _0x11f082=_0x202b84;this[_0x11f082(0xc6)](_0x11f082(0x122));}async[_0x202b84(0x100)](_0x4cf523,_0x254f35){const _0x18f44a=_0x202b84,_0x2221da=_0x18f44a(0xba)+_0x323f94();this[_0x18f44a(0xe0)](_0x2221da);const _0x183af4=_0x18f44a(0xba)+_0x323f94();try{this[_0x18f44a(0x10b)]({'type':_0x4dd290[_0x18f44a(0xc2)],'label':_0x254f35?.[_0x18f44a(0x135)]||_0x4cf523,'uiId':_0x183af4,'resourceId':_0x254f35?.[_0x18f44a(0x114)]},!0x0);const _0x589b13=this[_0x18f44a(0x119)][_0x18f44a(0xdb)](this[_0x18f44a(0xfd)],_0x4cf523,_0x254f35);this[_0x18f44a(0xae)][_0x18f44a(0xbd)](_0x183af4,_0x589b13[_0x18f44a(0xc0)]);const {id:_0x13f6fa}=await _0x589b13[_0x18f44a(0xe9)]();this[_0x18f44a(0xae)][_0x18f44a(0xbe)](_0x183af4),this[_0x18f44a(0x12e)]({'type':_0x4dd290[_0x18f44a(0xc2)],'id':_0x13f6fa,'label':_0x254f35?.[_0x18f44a(0x135)]||_0x4cf523,'uiId':_0x183af4,'resourceId':_0x254f35?.[_0x18f44a(0x114)]},!0x1);}catch(_0x7ef742){this[_0x18f44a(0xae)][_0x18f44a(0xbe)](_0x183af4),(_0x7ef742[_0x18f44a(0x128)][_0x18f44a(0xfc)](_0x18f44a(0xf5))||this[_0x18f44a(0xea)](_0x18f44a(0x13e),{'error':new _0x462c3a(_0x18f44a(0xaf),this,{'url':_0x4cf523,'originalError':_0x7ef742}),'url':_0x4cf523}),this[_0x18f44a(0xc6)](_0x183af4));}finally{this[_0x18f44a(0x133)](_0x2221da);}}[_0x202b84(0x136)](_0x441437){const _0x16ad2b=_0x202b84;_0x441437['id']=_0x441437['id']??_0x323f94()[_0x16ad2b(0xd7)](0x0,0x15),this[_0x16ad2b(0x116)][_0x16ad2b(0xbd)](_0x441437[_0x16ad2b(0xb6)],_0x441437),this[_0x16ad2b(0xea)](_0x16ad2b(0x131),{'contextItem':_0x441437,'isLoading':!0x1});}async[_0x202b84(0x12b)](_0x5082f5,_0xcf778d,_0x223310){const _0x3117f7=_0x202b84,_0x1f0c09=this[_0x3117f7(0xd3)][_0x3117f7(0xf7)][_0x3117f7(0xe1)](_0x38a509=>_0x38a509['id']===_0x5082f5);if(!_0x1f0c09)return this[_0x3117f7(0xea)](_0x3117f7(0x13e),{'error':new _0x462c3a(_0x3117f7(0x115),this,{'sourceId':_0x5082f5}),'sourceId':_0x5082f5}),[];try{const _0x23afda=(await _0x1f0c09[_0x3117f7(0x106)](_0xcf778d))[_0x3117f7(0xf6)](_0x28ec94=>{const _0x1b1139=_0x3117f7,_0x417c82=this[_0x1b1139(0x10d)](_0x28ec94['id']);return{..._0x28ec94,'isInContext':_0x417c82};});return _0x1f0c09[_0x3117f7(0xc5)]=_0x23afda,this[_0x3117f7(0xea)](_0x3117f7(0xd8),{'sourceId':_0x5082f5,'source':_0x1f0c09,'resources':_0x23afda,'uid':_0x223310}),_0x23afda;}catch(_0x380095){return this[_0x3117f7(0xea)](_0x3117f7(0x13e),{'error':new _0x462c3a(_0x3117f7(0x10e),this,{'sourceId':_0x5082f5,'originalError':_0x380095}),'sourceId':_0x5082f5,'sourceLabel':_0x1f0c09[_0x3117f7(0x135)]}),[];}}async[_0x202b84(0x123)](_0x49a16c,_0x2766a0){const _0x398bcf=_0x202b84;if(this[_0x398bcf(0x10d)](_0x2766a0['id']))return;let _0x38b5fd=_0x2766a0[_0x398bcf(0x12c)];if(!_0x38b5fd&&_0x49a16c[_0x398bcf(0x102)])try{_0x38b5fd=await _0x49a16c[_0x398bcf(0x102)](_0x2766a0['id']);}catch(_0x2dadfb){return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xe2),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'originalError':_0x2dadfb}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}if(_0x38b5fd)switch(_0x2766a0[_0x398bcf(0xc1)]){case _0x4dd290[_0x398bcf(0xc2)]:if(_0x398bcf(0xe4)!=typeof _0x38b5fd)return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0xe4),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});await this[_0x398bcf(0x100)](_0x38b5fd,{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']});break;case _0x4dd290[_0x398bcf(0x13d)]:if(!(_0x38b5fd instanceof File))return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0x121),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});await this[_0x398bcf(0xe7)]([_0x38b5fd],{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']});break;case _0x4dd290[_0x398bcf(0x12f)]:if(_0x398bcf(0xef)!=typeof _0x38b5fd||!(_0x398bcf(0xd1)in _0x38b5fd)||!(_0x398bcf(0xc1)in _0x38b5fd))return void this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb1),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'expectedType':_0x398bcf(0xb5),'actualType':typeof _0x38b5fd}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});_0x38b5fd=AIChatContext[_0x398bcf(0xec)](_0x38b5fd,_0x2766a0[_0x398bcf(0x135)]),await this[_0x398bcf(0xe7)]([_0x38b5fd],{'label':_0x2766a0[_0x398bcf(0x135)],'resourceId':_0x2766a0['id']},_0x4dd290[_0x398bcf(0x12f)]);break;case _0x4dd290[_0x398bcf(0xdf)]:break;default:this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xf2),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id'],'resourceType':_0x2766a0[_0x398bcf(0xc1)]}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}else this[_0x398bcf(0xea)](_0x398bcf(0x13e),{'error':new _0x462c3a(_0x398bcf(0xb4),this,{'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']}),'resourceId':_0x2766a0['id'],'sourceId':_0x49a16c['id']});}static[_0x202b84(0xec)](_0xa220fb,_0x53a9b3){const _0x38887b=_0x202b84;switch(_0xa220fb[_0x38887b(0xc1)]){case _0x56b05a[_0x38887b(0x129)]:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0x111)});case _0x56b05a[_0x38887b(0x13f)]:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0xb2)});default:return new File([_0xa220fb[_0x38887b(0xd1)]],_0x53a9b3,{'type':_0x38887b(0xc9)});}}static[_0x202b84(0xac)](_0x1a4929){const _0x2c1032=_0x202b84;switch(_0x1a4929[_0x2c1032(0xc1)]){case _0x4dd290[_0x2c1032(0x13d)]:return{'type':_0x4dd290[_0x2c1032(0x13d)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0xc2)]:return{'type':_0x4dd290[_0x2c1032(0xc2)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0x109)]:return{'type':_0x4dd290[_0x2c1032(0x109)],'id':_0x1a4929['id'],..._0x1a4929[_0x2c1032(0x122)]?.[_0x2c1032(0xca)]&&{'selection':_0x1a4929[_0x2c1032(0x122)]}};case _0x4dd290[_0x2c1032(0x12f)]:return{'type':_0x4dd290[_0x2c1032(0x13d)],'id':_0x1a4929['id']};case _0x4dd290[_0x2c1032(0xdf)]:{const _0x2c1674=_0x1a4929;return{'type':_0x4dd290[_0x2c1032(0xdf)],'mcpServerName':_0x2c1674[_0x2c1032(0xbb)],'toolName':_0x2c1674[_0x2c1032(0x138)],'data':_0x2c1674[_0x2c1032(0x12c)],'id':_0x2c1674['id']};}default:return null;}}[_0x202b84(0x10b)](_0x22b7f4,_0x237035=!0x1){const _0x1b9a75=_0x202b84;if(this[_0x1b9a75(0x116)][_0x1b9a75(0xbd)](_0x22b7f4[_0x1b9a75(0xb6)],_0x22b7f4),_0x22b7f4[_0x1b9a75(0xc3)]||this[_0x1b9a75(0xea)](_0x1b9a75(0x131),{'contextItem':_0x22b7f4,'isLoading':_0x237035}),_0x1b9a75(0xc8)===_0x22b7f4[_0x1b9a75(0xb6)]&&this[_0x1b9a75(0x120)](),_0x22b7f4[_0x1b9a75(0x114)]){const _0x2a6440=this[_0x1b9a75(0x10a)](_0x22b7f4[_0x1b9a75(0x114)]);_0x2a6440&&_0x2a6440[_0x1b9a75(0xe5)](_0x4e81ac=>{const _0x14f11f=_0x1b9a75;this[_0x14f11f(0x11d)](_0x4e81ac,_0x22b7f4[_0x14f11f(0x114)],!0x0);});}}[_0x202b84(0xc6)](_0x443bb4){const _0x451a8f=_0x202b84,_0x14c8b3=this[_0x451a8f(0x116)][_0x451a8f(0x13a)](_0x443bb4),_0x2edf34=this[_0x451a8f(0xae)][_0x451a8f(0x13a)](_0x443bb4);if(_0x2edf34&&(_0x2edf34[_0x451a8f(0xf3)](),this[_0x451a8f(0xae)][_0x451a8f(0xbe)](_0x443bb4)),_0x14c8b3?.[_0x451a8f(0x114)]){const _0x5e87fa=this[_0x451a8f(0x10a)](_0x14c8b3[_0x451a8f(0x114)]);_0x5e87fa&&_0x5e87fa[_0x451a8f(0xe5)](_0x562e0b=>{const _0x399a55=_0x451a8f;this[_0x399a55(0x11d)](_0x562e0b,_0x14c8b3[_0x399a55(0x114)],!0x1);});}this[_0x451a8f(0x116)][_0x451a8f(0xbe)](_0x443bb4),this[_0x451a8f(0xea)](_0x451a8f(0x11a),{'uiId':_0x443bb4,'type':_0x14c8b3?.[_0x451a8f(0xc1)]}),_0x451a8f(0xc8)===_0x443bb4&&this[_0x451a8f(0x120)]();}[_0x202b84(0x12e)](_0x3115b3,_0x3c552b){const _0x52c4c4=_0x202b84;if(this[_0x52c4c4(0x116)][_0x52c4c4(0xde)](_0x3115b3[_0x52c4c4(0xb6)])&&(this[_0x52c4c4(0x116)][_0x52c4c4(0xbd)](_0x3115b3[_0x52c4c4(0xb6)],_0x3115b3),this[_0x52c4c4(0xea)](_0x52c4c4(0xc7),{'contextItem':_0x3115b3,'isLoading':_0x3c552b}),_0x3115b3[_0x52c4c4(0x114)])){const _0x1d6409=this[_0x52c4c4(0x10a)](_0x3115b3[_0x52c4c4(0x114)]);_0x1d6409&&_0x1d6409[_0x52c4c4(0xe5)](_0xd525d2=>{const _0xed1a8e=_0x52c4c4;this[_0xed1a8e(0x11d)](_0xd525d2,_0x3115b3[_0xed1a8e(0x114)],!0x0);});}}[_0x202b84(0xeb)](_0x494d44){const _0x4cec1f=_0x202b84;this[_0x4cec1f(0x12a)][_0x4cec1f(0xbd)](_0x494d44[_0x4cec1f(0xb6)],_0x494d44);}[_0x202b84(0x13b)](){const _0x4eb5cc=_0x202b84;this[_0x4eb5cc(0xd3)]={'document':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0xfb)]?.[_0x4eb5cc(0xb8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0xcd)]?.[_0x4eb5cc(0xb8)]},'files':{'enabled':!0x1!==this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0x107)]?.[_0x4eb5cc(0xb8)]},'sources':this[_0x4eb5cc(0xf1)](),'customItems':this[_0x4eb5cc(0xd0)]?.[_0x4eb5cc(0x112)]?.[_0x4eb5cc(0xf6)](_0x1d8a85=>({..._0x1d8a85,'enabled':!0x0}))??[]},this[_0x4eb5cc(0xea)](_0x4eb5cc(0xd4),{'options':this[_0x4eb5cc(0xd3)]});}[_0x202b84(0xf1)](){const _0x38fd45=_0x202b84;return this[_0x38fd45(0xd0)]?.[_0x38fd45(0xf7)]?.[_0x38fd45(0xf6)](_0x4c2237=>({..._0x4c2237,'resources':[]}))??[];}[_0x202b84(0x120)](){const _0x22bae9=_0x202b84,_0x59d35=this[_0x22bae9(0xf8)]()||this[_0x22bae9(0x118)]();this[_0x22bae9(0xd3)][_0x22bae9(0xfb)][_0x22bae9(0xce)]=_0x59d35,this[_0x22bae9(0xea)](_0x22bae9(0xd4),{'options':this[_0x22bae9(0xd3)]});}[_0x202b84(0x10d)](_0x5994ae){const _0x1b8fe5=_0x202b84;for(const _0x211a39 of this[_0x1b8fe5(0x116)][_0x1b8fe5(0xf4)]())if(_0x211a39[_0x1b8fe5(0x114)]===_0x5994ae)return!0x0;for(const _0x43d123 of this[_0x1b8fe5(0x12a)][_0x1b8fe5(0xf4)]())if(_0x43d123[_0x1b8fe5(0x114)]===_0x5994ae)return!0x0;return!0x1;}[_0x202b84(0x10a)](_0x23e0a1){const _0x1a3535=_0x202b84,_0x4622c2=[];for(const _0x15f286 of this[_0x1a3535(0xd3)][_0x1a3535(0xf7)]){_0x15f286[_0x1a3535(0xc5)][_0x1a3535(0xe1)](_0x3c6614=>_0x3c6614['id']===_0x23e0a1)&&_0x4622c2[_0x1a3535(0xdc)](_0x15f286['id']);}return 0x0===_0x4622c2[_0x1a3535(0xca)]?null:_0x4622c2;}[_0x202b84(0x11d)](_0x1f2572,_0x4b1331,_0x588443){const _0x30dae8=_0x202b84,_0x4b6c67=this[_0x30dae8(0xd3)][_0x30dae8(0xf7)][_0x30dae8(0xe1)](_0x271152=>_0x271152['id']===_0x1f2572);if(!_0x4b6c67)return;const _0x4b21c6=_0x4b6c67[_0x30dae8(0xc5)][_0x30dae8(0xe1)](_0xbe6f6b=>_0xbe6f6b['id']===_0x4b1331);_0x4b21c6&&(_0x4b21c6[_0x30dae8(0x110)]=_0x588443,this[_0x30dae8(0xea)](_0x30dae8(0xd5),{'sourceId':_0x1f2572,'resourceId':_0x4b1331,'isInContext':_0x588443}));}[_0x202b84(0xe0)](_0x1a7994){const _0x4893f5=_0x202b84;this[_0x4893f5(0xe6)][_0x4893f5(0xbd)](_0x1a7994,!0x0),this[_0x4893f5(0xe6)][_0x4893f5(0x11c)]&&this[_0x4893f5(0xea)](_0x4893f5(0x140),{'isUploadInProgress':!0x0});}[_0x202b84(0x133)](_0x17f9ca){const _0x535894=_0x202b84;this[_0x535894(0xe6)][_0x535894(0xbe)](_0x17f9ca),0x0===this[_0x535894(0xe6)][_0x535894(0x11c)]&&this[_0x535894(0xea)](_0x535894(0x140),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fb2a2=_0x4085;(function(_0x218c5e,_0x3ab741){const _0x2e1440=_0x4085,_0x10724c=_0x218c5e();while(!![]){try{const _0x43b69c=-parseInt(_0x2e1440(0x1df))/0x1*(parseInt(_0x2e1440(0x203))/0x2)+parseInt(_0x2e1440(0x1f2))/0x3+parseInt(_0x2e1440(0x1dc))/0x4+-parseInt(_0x2e1440(0x1d6))/0x5+-parseInt(_0x2e1440(0x1fd))/0x6+parseInt(_0x2e1440(0x1cb))/0x7*(-parseInt(_0x2e1440(0x1d4))/0x8)+parseInt(_0x2e1440(0x1c6))/0x9*(-parseInt(_0x2e1440(0x20d))/0xa);if(_0x43b69c===_0x3ab741)break;else _0x10724c['push'](_0x10724c['shift']());}catch(_0x52795e){_0x10724c['push'](_0x10724c['shift']());}}}(_0x2460,0x4fbc2));import{FocusTracker as _0xb0cfbc,KeystrokeHandler as _0x4be2eb}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x3b6557}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x4085(_0x7a643d,_0x880095){const _0x246043=_0x2460();return _0x4085=function(_0x408563,_0x2a143e){_0x408563=_0x408563-0x1c0;let _0x23466a=_0x246043[_0x408563];return _0x23466a;},_0x4085(_0x7a643d,_0x880095);}import{AISuggestionContentPartToolbarView as _0x41636e}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0xe0bc3c}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x1e041e}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x9aed70,FocusCycler as _0x4db247,View as _0xb81d71}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x1d89ef}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';function _0x2460(){const _0x3cfca4=['listenTo','400878YUJXCb','hideError','showPrevious','nextButtonView','setButtonsVisibility','21wWHazd','_toolbarContainerView','_isErrorVisible','div','_keystrokes','_partToolbarView','showNext','_togglePartToolbarButtonsVisibility','_focusTracker','927792hNIgTB','change:_state','358125ZOfWVW','bindTemplate','includes','bind','focus','toggleRotatorButtonsVisibility','1871832wSAPXT','focusCycler','_errorView','1PJJoqp','previousButtonView','delegate','add','full','setTemplate','set','keepErrors','availableActions','pending','locale','showBlockingError','_createPreviousButtonView','execute','_streamableContentView','_stateView','children','update','togglePartToolbarEnabled','1336758JdsciP','tab','ck-ai-chat-balloon-main','toggleSuggestionDisplayMode','ck-ai-chat-balloon-main_state_','_focusables','element','addMany','focusLast','createCollection','AI_BALLOON_NEXT_LABEL','462840ZVfErf','isVisible','_miniToolbarView','setState','change:isTrackChangesOn','shift\x20+\x20tab','2358yNLQDm','updateContent','toggleShowChanges','ck-ai-chat-balloon__toolbar-container','focusFirst','render','applySuggestion','_state','insertSuggestion','_config','20BnOmZQ','isShowChangesOn','AI_BALLOON_PREVIOUS_LABEL','destroy','fire','showDiff','_createNextButtonView','has','rejectSuggestion','isEnabled','showError','isTrackChangesOn'];_0x2460=function(){return _0x3cfca4;};return _0x2460();}import{IconChevronDown as _0x1f07b8,IconChevronUp as _0x246d46}from'ckeditor5/src/icons.js';import{getTranslation as _0x4714d3}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1e041e{[_0x2fb2a2(0x1ef)];[_0x2fb2a2(0x1c9)];[_0x2fb2a2(0x1e0)];[_0x2fb2a2(0x1dd)];[_0x2fb2a2(0x1f7)];[_0x2fb2a2(0x1d3)];[_0x2fb2a2(0x1cf)];[_0x2fb2a2(0x20c)];[_0x2fb2a2(0x1ed)];[_0x2fb2a2(0x1cc)];[_0x2fb2a2(0x1d0)];[_0x2fb2a2(0x1ee)];[_0x2fb2a2(0x1ff)];constructor(_0x10cb7e,_0x3fa24b){const _0x2def92=_0x2fb2a2;super(_0x10cb7e);const _0x51e99f=this[_0x2def92(0x1d7)];this[_0x2def92(0x1e5)](_0x2def92(0x212),!0x1),this[_0x2def92(0x1e5)](_0x2def92(0x20a),_0x2def92(0x1e8)),this[_0x2def92(0x1d3)]=new _0xb0cfbc(),this[_0x2def92(0x1cf)]=new _0x4be2eb(),this[_0x2def92(0x1f7)]=this[_0x2def92(0x1fb)](),this[_0x2def92(0x1dd)]=new _0x4db247({'focusables':this[_0x2def92(0x1f7)],'focusTracker':this[_0x2def92(0x1d3)],'keystrokeHandler':this[_0x2def92(0x1cf)],'actions':{'focusPrevious':_0x2def92(0x202),'focusNext':_0x2def92(0x1f3)}}),this[_0x2def92(0x20c)]=_0x3fa24b,this[_0x2def92(0x1c9)]=this[_0x2def92(0x213)](),this[_0x2def92(0x1e0)]=this[_0x2def92(0x1eb)](),this[_0x2def92(0x1ed)]=new _0x3b6557(_0x10cb7e),this[_0x2def92(0x1d0)]=new _0x41636e(_0x10cb7e,_0x3fa24b[_0x2def92(0x1e7)]),this[_0x2def92(0x1d0)][_0x2def92(0x1e1)](_0x2def92(0x209),_0x2def92(0x20b),_0x2def92(0x1c1))['to'](this),this[_0x2def92(0x1d2)](_0x3fa24b),this[_0x2def92(0x1ee)]=new _0x1d89ef(_0x10cb7e),this[_0x2def92(0x1ee)][_0x2def92(0x1fe)]=!0x1,this[_0x2def92(0x1ff)]=new _0xe0bc3c(_0x10cb7e,{'showChanges':_0x2def92(0x1e3)}),this[_0x2def92(0x1ff)][_0x2def92(0x1d9)](_0x2def92(0x20e))['to'](this,_0x2def92(0x212)),this[_0x2def92(0x1ff)]['on'](_0x2def92(0x205),()=>{const _0x484912=_0x2def92;this[_0x484912(0x211)](_0x484912(0x1f5));}),this[_0x2def92(0x1cc)]=new ms(_0x10cb7e,[this[_0x2def92(0x1d0)],this[_0x2def92(0x1ee)],this[_0x2def92(0x1ff)]]),this[_0x2def92(0x1ef)]=this[_0x2def92(0x1fb)]([this[_0x2def92(0x1ed)],this[_0x2def92(0x1cc)]]),this['on'](_0x2def92(0x1d5),(_0x1a2bd6,_0x27c818,_0x19a928,_0x2a7997)=>{const _0x581e65=_0x2def92;let _0x3a6b54,_0xa7da72;_0x581e65(0x1e8)===_0x2a7997?(_0x3a6b54=this[_0x581e65(0x1d0)],_0xa7da72=this[_0x581e65(0x1ee)]):(_0x3a6b54=this[_0x581e65(0x1ee)],_0xa7da72=this[_0x581e65(0x1d0)]),this[_0x581e65(0x1ee)][_0x581e65(0x200)](_0x19a928),_0x3a6b54[_0x581e65(0x1fe)]=!0x1,_0xa7da72[_0x581e65(0x1fe)]=!0x0;}),this[_0x2def92(0x1e4)]({'tag':_0x2def92(0x1ce),'attributes':{'class':['ck',_0x2def92(0x1f4),_0x51e99f['to'](_0x2def92(0x20a),_0x5d7593=>_0x2def92(0x1f6)+_0x5d7593)]},'children':this[_0x2def92(0x1ef)]}),this['on'](_0x2def92(0x201),()=>{const _0x3eed5d=_0x2def92;this[_0x3eed5d(0x1d2)](_0x3fa24b);});}[_0x2fb2a2(0x208)](){const _0xba56ba=_0x2fb2a2;super[_0xba56ba(0x208)](),this[_0xba56ba(0x1c9)][_0xba56ba(0x208)](),this[_0xba56ba(0x1e0)][_0xba56ba(0x208)](),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1f8)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1c9)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1e0)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1ff)]),this[_0xba56ba(0x1d3)][_0xba56ba(0x1e2)](this[_0xba56ba(0x1d0)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1f8)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1c9)][_0xba56ba(0x1f8)]),this[_0xba56ba(0x1cf)][_0xba56ba(0x1c5)](this[_0xba56ba(0x1e0)][_0xba56ba(0x1f8)]),this[_0xba56ba(0x1f7)][_0xba56ba(0x1f9)]([this[_0xba56ba(0x1c9)],this[_0xba56ba(0x1e0)],this[_0xba56ba(0x1d0)],this[_0xba56ba(0x1ff)]]);}[_0x2fb2a2(0x210)](){const _0x20dcc0=_0x2fb2a2;super[_0x20dcc0(0x210)](),this[_0x20dcc0(0x1e0)][_0x20dcc0(0x210)](),this[_0x20dcc0(0x1c9)][_0x20dcc0(0x210)]();}[_0x2fb2a2(0x1da)](){const _0x4d597a=_0x2fb2a2;this[_0x4d597a(0x1dd)][_0x4d597a(0x207)]();}[_0x2fb2a2(0x1fa)](){const _0x18f754=_0x2fb2a2;this[_0x18f754(0x1dd)][_0x18f754(0x1fa)]();}async[_0x2fb2a2(0x204)](_0x30de4f){const _0x67324d=_0x2fb2a2;_0x30de4f?.[_0x67324d(0x1e6)]||this[_0x67324d(0x1c7)](),await this[_0x67324d(0x1ed)][_0x67324d(0x1f0)](_0x30de4f);}[_0x2fb2a2(0x200)](_0x12fb4b){const _0x3be5c3=_0x2fb2a2;this[_0x3be5c3(0x20a)]=_0x12fb4b;}[_0x2fb2a2(0x1c3)](_0xec35a4){const _0x305cb6=_0x2fb2a2;super[_0x305cb6(0x1c3)](_0xec35a4),this[_0x305cb6(0x1ef)][_0x305cb6(0x1c0)](this[_0x305cb6(0x1de)])||this[_0x305cb6(0x1ef)][_0x305cb6(0x1e2)](this[_0x305cb6(0x1de)],0x0);}[_0x2fb2a2(0x1c7)](){const _0x53b939=_0x2fb2a2;this[_0x53b939(0x1cd)]&&(super[_0x53b939(0x1c7)](),this[_0x53b939(0x1f1)](!0x0));}[_0x2fb2a2(0x1ea)](_0x5de5b3){const _0x42ef79=_0x2fb2a2;super[_0x42ef79(0x1ea)](_0x5de5b3),this[_0x42ef79(0x1f1)](!0x1);}[_0x2fb2a2(0x1db)](_0x4e7f08){const _0x57fbbf=_0x2fb2a2;this[_0x57fbbf(0x1c9)][_0x57fbbf(0x1fe)]=this[_0x57fbbf(0x1e0)][_0x57fbbf(0x1fe)]=_0x4e7f08;}[_0x2fb2a2(0x1f1)](_0xcb3073){const _0x101f54=_0x2fb2a2;this[_0x101f54(0x1d0)][_0x101f54(0x1c2)]=_0xcb3073;}[_0x2fb2a2(0x1d2)]({showApplyButton:_0x2e47c0,showSuggestButton:_0x663bf1}){const _0x5d40b9=_0x2fb2a2;_0x2e47c0=_0x2e47c0&&!this[_0x5d40b9(0x1c4)]&&this[_0x5d40b9(0x20c)][_0x5d40b9(0x1e7)][_0x5d40b9(0x1d8)](_0x5d40b9(0x209)),_0x663bf1=_0x663bf1&&this[_0x5d40b9(0x20c)][_0x5d40b9(0x1e7)][_0x5d40b9(0x1d8)](_0x5d40b9(0x20b)),this[_0x5d40b9(0x1d0)][_0x5d40b9(0x1ca)]({'showApplyButton':_0x2e47c0,'showSuggestButton':_0x663bf1});}[_0x2fb2a2(0x213)](){const _0x36229f=_0x2fb2a2,_0x23f8a3=new _0x9aed70(this[_0x36229f(0x1e9)]);return _0x23f8a3[_0x36229f(0x1e5)]({'icon':_0x1f07b8,'label':_0x4714d3(this[_0x36229f(0x1e9)],_0x36229f(0x1fc)),'isVisible':!0x0}),_0x23f8a3['on'](_0x36229f(0x1ec),()=>{const _0x584286=_0x36229f;this[_0x584286(0x211)](_0x584286(0x1d1));}),_0x23f8a3;}[_0x2fb2a2(0x1eb)](){const _0x5a6606=_0x2fb2a2,_0x12911b=new _0x9aed70(this[_0x5a6606(0x1e9)]);return _0x12911b[_0x5a6606(0x1e5)]({'icon':_0x246d46,'label':_0x4714d3(this[_0x5a6606(0x1e9)],_0x5a6606(0x20f)),'isVisible':!0x0}),_0x12911b['on'](_0x5a6606(0x1ec),()=>{const _0x3c874d=_0x5a6606;this[_0x3c874d(0x211)](_0x3c874d(0x1c8));}),_0x12911b;}}class ms extends _0xb81d71{constructor(_0x51b9ff,_0x5a5f8e){const _0x258821=_0x2fb2a2;super(_0x51b9ff),this[_0x258821(0x1e4)]({'tag':_0x258821(0x1ce),'attributes':{'class':[_0x258821(0x206)]},'children':_0x5a5f8e});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x269d71=_0x4daa;(function(_0x656fad,_0x13cb51){const _0x347695=_0x4daa,_0x341ab3=_0x656fad();while(!![]){try{const _0x3b2f2c=-parseInt(_0x347695(0xf0))/0x1*(parseInt(_0x347695(0x11e))/0x2)+-parseInt(_0x347695(0x117))/0x3+-parseInt(_0x347695(0x11d))/0x4+parseInt(_0x347695(0x132))/0x5+parseInt(_0x347695(0x116))/0x6*(-parseInt(_0x347695(0xf2))/0x7)+parseInt(_0x347695(0x103))/0x8*(-parseInt(_0x347695(0x125))/0x9)+parseInt(_0x347695(0x110))/0xa;if(_0x3b2f2c===_0x13cb51)break;else _0x341ab3['push'](_0x341ab3['shift']());}catch(_0x3d729d){_0x341ab3['push'](_0x341ab3['shift']());}}}(_0x2c42,0x6ac03));import{ButtonView as _0x4def17,clickOutsideHandler as _0x213ca3,View as _0x5ed4fd}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2244d3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x493e0e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4d5a00,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x21935a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2cc609}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1a4993}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';function _0x2c42(){const _0x5e36e9=['ck-ai-chat-controls-disabled','fieldView','setModel','change:isLoading','disableModelSelector','ck-ai-chat-controls-model-unavailable-message','clearCurrentContextItems','isDisabled','8570RnxgVl','sendUserMessage','3371172FwepJM','setModelList','form','contextResourcesSearchInputVisibleFrom','_promptInputView','removeContextItem','populateSourceResourceBalloon','setConversationContext','setContextItemLoading','set','_createPromptCapabilitiesView','isModelAvailable','setReasoning','execute','ck-ai-chat-controls','abortPromptStream','delegate','688eBtwPp','addContextItem','_contextPanelView','_createContextPanelView','value','_modelUnavailableMessageView','focus','bodyCollection','clearConversationContextUI','_loaderView','reset','setPromptInputValue','enableModelSelector','10517060txjKND','startConversation','toggleWebSearch','toggleReasoning','focusPromptInput','closeSourceResourceBalloon','6wZZAqI','710136oDIVKx','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setIsUploadInProgress','clearConversationContextItems','setPlaceholderText','1094724MFaqiw','56KicwiO','selectModel','element','bindTemplate','queryView','_promptCapabilitiesView','updateResourceState','7677oBwqIi','setAddContextOptions','ck-ai-chat-controls__start-new-chat-button','setTemplate','isLoading','clearPendingContextUI','low','_createLoaderView','locale','ck-hidden','setInputPlaceholder','resetMessageInput','addContextButtonView','3454260xenSIr','setWebSearch','_createPromptInputView','_handlePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_createModelUnavailableMessageView','div'];_0x2c42=function(){return _0x5e36e9;};return _0x2c42();}import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';function _0x4daa(_0xf17c14,_0x27df06){const _0x2c423f=_0x2c42();return _0x4daa=function(_0x4daadc,_0x8724f7){_0x4daadc=_0x4daadc-0xe4;let _0x4e481d=_0x2c423f[_0x4daadc];return _0x4e481d;},_0x4daa(_0xf17c14,_0x27df06);}export class AIChatControlsView extends _0x5ed4fd{[_0x269d71(0x105)];[_0x269d71(0xf6)];[_0x269d71(0x123)];[_0x269d71(0x10c)];[_0x269d71(0x108)];[_0x269d71(0x118)];constructor(_0x3ed0fa,_0x330f8f){const _0x324701=_0x269d71;super(_0x3ed0fa),this[_0x324701(0x105)]=this[_0x324701(0x106)](_0x3ed0fa,{'bodyCollection':_0x330f8f[_0x324701(0x10a)],'searchInputVisibleFrom':_0x330f8f[_0x324701(0xf5)]}),this[_0x324701(0xf6)]=this[_0x324701(0x134)](_0x3ed0fa),this[_0x324701(0x123)]=this[_0x324701(0xfc)](_0x3ed0fa),this[_0x324701(0x10c)]=this[_0x324701(0x12c)](_0x3ed0fa),this[_0x324701(0x108)]=this[_0x324701(0xe6)](_0x3ed0fa),this[_0x324701(0x118)]=!0x1,this[_0x324701(0xf6)][_0x324701(0x102)](_0x324701(0xf1))['to'](this),this[_0x324701(0x10c)][_0x324701(0x102)](_0x324701(0x101))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x112))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x113))['to'](this),this[_0x324701(0x123)][_0x324701(0x102)](_0x324701(0x11f))['to'](this),this[_0x324701(0x105)][_0x324701(0x102)](..._0x21935a)['to'](this),this[_0x324701(0xfb)](_0x324701(0xfd),!0x0),this[_0x324701(0xfb)](_0x324701(0xef),!0x1);const _0x182b30=this[_0x324701(0x121)];this[_0x324701(0x128)]({'tag':_0x324701(0xf4),'attributes':{'class':['ck',_0x324701(0x100),_0x182b30['if'](_0x324701(0xef),_0x324701(0xe8))]},'children':[{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0x129),_0x324701(0x12e),_0x1ad88f=>_0x1ad88f||!this[_0x324701(0xfd)]),_0x182b30['if'](_0x324701(0xfd),_0x324701(0x12e),_0x465ab2=>!_0x465ab2||this[_0x324701(0x129)])]},'children':[this[_0x324701(0x105)],this[_0x324701(0xf6)],this[_0x324701(0x123)]]},{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0x129),_0x324701(0x12e),_0x520bb1=>!_0x520bb1)]},'children':[this[_0x324701(0x10c)]]},{'tag':_0x324701(0xe7),'attributes':{'class':[_0x182b30['if'](_0x324701(0xfd),_0x324701(0x12e),_0x167cab=>_0x167cab)]},'children':[this[_0x324701(0x108)]]}]}),_0x213ca3({'emitter':this[_0x324701(0xf6)],'activator':()=>this[_0x324701(0x129)],'contextElements':()=>[this[_0x324701(0x120)]],'callback':()=>{const _0x182889=_0x324701;this[_0x182889(0x118)]=!0x1;}}),this['on'](_0x324701(0xeb),this[_0x324701(0xe4)],{'priority':_0x324701(0x12b)});}[_0x269d71(0x106)](_0x491da9,_0x441690){return new _0x4d5a00(_0x491da9,_0x441690);}[_0x269d71(0x134)](_0x3dc59f){const _0x49a9e7=_0x269d71;return new _0x2244d3(_0x3dc59f,this[_0x49a9e7(0x105)][_0x49a9e7(0x131)]);}[_0x269d71(0xfc)](_0x6e5d7b){return new _0x493e0e(_0x6e5d7b);}[_0x269d71(0x12c)](_0x3d34f2){return new _0x2cc609(_0x3d34f2);}[_0x269d71(0xe6)](_0x5dc03b){const _0x4c5ead=_0x269d71,_0x32df56=new As(_0x5dc03b);return _0x32df56[_0x4c5ead(0x102)](_0x4c5ead(0x111))['to'](this),_0x32df56;}[_0x269d71(0xe4)](_0x2e1e84,_0x269aa3,_0x5b8636){const _0x45d40f=_0x269d71;_0x5b8636?this[_0x45d40f(0x118)]=!0x0:this[_0x45d40f(0x118)]&&this[_0x45d40f(0xf6)][_0x45d40f(0x109)]();}[_0x269d71(0x104)](_0x37331f,_0x42a804){const _0x3a42e8=_0x269d71;this[_0x3a42e8(0x105)][_0x3a42e8(0x104)](_0x37331f,_0x42a804);}[_0x269d71(0xf7)](_0x527bd7){const _0x755a26=_0x269d71;this[_0x755a26(0x105)][_0x755a26(0xf7)](_0x527bd7);}[_0x269d71(0xfa)](_0xd1b018,_0x453e3e){const _0x5e791e=_0x269d71;this[_0x5e791e(0x105)][_0x5e791e(0xfa)](_0xd1b018,_0x453e3e);}[_0x269d71(0x11a)](_0x60d72e){const _0x353962=_0x269d71;this[_0x353962(0xf6)][_0x353962(0x11a)](_0x60d72e);}[_0x269d71(0xf9)](_0x22911b){const _0x1ebd3e=_0x269d71;this[_0x1ebd3e(0x105)][_0x1ebd3e(0xf9)](_0x22911b);}[_0x269d71(0x12a)](){const _0x2e0680=_0x269d71;this[_0x2e0680(0x105)][_0x2e0680(0xee)]();}[_0x269d71(0x10b)](){const _0x29b02d=_0x269d71;this[_0x29b02d(0x105)][_0x29b02d(0x11b)]();}[_0x269d71(0x124)](_0x2819ff,_0x57990c,_0x5c5495){const _0x4a72fd=_0x269d71;this[_0x4a72fd(0x105)][_0x4a72fd(0x124)](_0x2819ff,_0x57990c,_0x5c5495);}[_0x269d71(0x133)](_0x5e37b8){const _0x148cde=_0x269d71;this[_0x148cde(0x123)][_0x148cde(0x133)](_0x5e37b8);}[_0x269d71(0xfe)](_0x21f8a6){const _0x365d52=_0x269d71;this[_0x365d52(0x123)][_0x365d52(0xfe)](_0x21f8a6);}[_0x269d71(0x130)](){const _0x1e0d71=_0x269d71;this[_0x1e0d71(0xf6)][_0x1e0d71(0x10d)]();}[_0x269d71(0x126)](_0x46c249){const _0x534773=_0x269d71;this[_0x534773(0x105)][_0x534773(0x126)](_0x46c249);}[_0x269d71(0x12f)](_0x3f8672){const _0x27e3e1=_0x269d71;this[_0x27e3e1(0xf6)][_0x27e3e1(0x11c)](_0x3f8672);}[_0x269d71(0xf3)](_0x188058,_0x1f6d4e){const _0x1386b3=_0x269d71;this[_0x1386b3(0x123)][_0x1386b3(0xf3)](_0x188058,_0x1f6d4e);}[_0x269d71(0xea)](_0x1c2860){const _0x3ec2d5=_0x269d71;_0x1c2860?(this[_0x3ec2d5(0xfd)]=!0x0,this[_0x3ec2d5(0x123)][_0x3ec2d5(0xea)](_0x1c2860)):this[_0x3ec2d5(0xfd)]=!0x1;}[_0x269d71(0x10f)](){const _0x257f6b=_0x269d71;this[_0x257f6b(0x123)][_0x257f6b(0x10f)]();}[_0x269d71(0xec)](_0x5140e5){const _0x3c76f5=_0x269d71;this[_0x3c76f5(0x123)][_0x3c76f5(0xec)](_0x5140e5);}[_0x269d71(0xf8)](_0x29331b,_0x4d3d53,_0x11ed68,_0x5b6437){const _0x115695=_0x269d71;this[_0x115695(0x105)][_0x115695(0xf8)](_0x29331b,_0x4d3d53,_0x11ed68,_0x5b6437);}[_0x269d71(0x115)](_0x571bab){const _0x4a13f0=_0x269d71;this[_0x4a13f0(0x105)][_0x4a13f0(0x115)](_0x571bab);}[_0x269d71(0x114)](_0xb34535=!0x1){const _0xca58c7=_0x269d71;this[_0xca58c7(0xf6)][_0xca58c7(0x109)](_0xb34535);}[_0x269d71(0x10e)](_0x1e0545){const _0x5a5ccd=_0x269d71;this[_0x5a5ccd(0xf6)][_0x5a5ccd(0x122)][_0x5a5ccd(0xe9)][_0x5a5ccd(0x10d)](),this[_0x5a5ccd(0xf6)][_0x5a5ccd(0x122)][_0x5a5ccd(0xe9)][_0x5a5ccd(0x107)]=_0x1e0545;}}class As extends _0x5ed4fd{constructor(_0x3ad845){const _0x4f30c0=_0x269d71;super(_0x3ad845);const _0x6a1fb1=new _0x4def17(_0x3ad845);_0x6a1fb1[_0x4f30c0(0xfb)]({'label':_0x1a4993(this[_0x4f30c0(0x12d)],_0x4f30c0(0x119)),'withText':!0x0,'class':[_0x4f30c0(0x127)],'tooltip':''}),_0x6a1fb1[_0x4f30c0(0x102)](_0x4f30c0(0xff))['to'](this,_0x4f30c0(0x111)),this[_0x4f30c0(0x128)]({'tag':_0x4f30c0(0xe7),'attributes':{'class':['ck',_0x4f30c0(0xed)]},'children':[{'tag':'p','children':[{'text':_0x1a4993(this[_0x4f30c0(0x12d)],_0x4f30c0(0xe5))+'\x20'},_0x6a1fb1]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cdd36=_0x3a59;function _0x436b(){const _0x5b49a5=['67352cqRskI','add','conversationStartButton','5475xAjrTs','_createStartConversationButton','1140628XspvSZ','768CMCBbn','locale','60oefoJA','819cpFWYV','fire','3628OzlznQ','resizeButton','12174asMyeV','set','children','3703HXcwmN','ck-ai-chat__start-conversation','3457570kmoLLi','execute','125499UAOYVa','AI_CHAT_HEADING','startConversation','4182OIfRpu','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_LABEL_NEW_CHAT','isMaximized'];_0x436b=function(){return _0x5b49a5;};return _0x436b();}(function(_0x295627,_0x5c7cc2){const _0x295066=_0x3a59,_0x3f084c=_0x295627();while(!![]){try{const _0x353816=-parseInt(_0x295066(0x1b8))/0x1+-parseInt(_0x295066(0x1ca))/0x2*(parseInt(_0x295066(0x1bb))/0x3)+parseInt(_0x295066(0x1be))/0x4*(parseInt(_0x295066(0x1b6))/0x5)+-parseInt(_0x295066(0x1c0))/0x6*(-parseInt(_0x295066(0x1c3))/0x7)+-parseInt(_0x295066(0x1ce))/0x8*(-parseInt(_0x295066(0x1bc))/0x9)+-parseInt(_0x295066(0x1c5))/0xa+parseInt(_0x295066(0x1c7))/0xb*(-parseInt(_0x295066(0x1b9))/0xc);if(_0x353816===_0x5c7cc2)break;else _0x3f084c['push'](_0x3f084c['shift']());}catch(_0x56b0df){_0x3f084c['push'](_0x3f084c['shift']());}}}(_0x436b,0x8c32e));import{ButtonView as _0xd24e1d,FormHeaderView as _0x163e2b}from'ckeditor5/src/ui.js';import{IconPlus as _0x3ad553,IconAIChat as _0x5bce77}from'ckeditor5/src/icons.js';function _0x3a59(_0x4a5d82,_0x1916c8){const _0x436ba3=_0x436b();return _0x3a59=function(_0x3a599b,_0x26e75a){_0x3a599b=_0x3a599b-0x1b4;let _0x461e71=_0x436ba3[_0x3a599b];return _0x461e71;},_0x3a59(_0x4a5d82,_0x1916c8);}import{getTranslation as _0x3a901c}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4648d6}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x163e2b{[_0x1cdd36(0x1b5)];[_0x1cdd36(0x1bf)];constructor(_0x38e6b9,_0xc4350c){const _0x1b2b3f=_0x1cdd36;super(_0x38e6b9,{'label':_0x3a901c(_0x38e6b9,_0x1b2b3f(0x1c8)),'class':_0x1b2b3f(0x1cb),'icon':_0x5bce77}),this[_0x1b2b3f(0x1c1)](_0x1b2b3f(0x1cd),!0x1),this[_0x1b2b3f(0x1b5)]=this[_0x1b2b3f(0x1b7)](_0x38e6b9),this[_0x1b2b3f(0x1c2)][_0x1b2b3f(0x1b4)](this[_0x1b2b3f(0x1b5)]),_0xc4350c&&(this[_0x1b2b3f(0x1bf)]=_0x4648d6(_0x38e6b9,this),this[_0x1b2b3f(0x1c2)][_0x1b2b3f(0x1b4)](this[_0x1b2b3f(0x1bf)]));}[_0x1cdd36(0x1b7)](_0x4892c3){const _0x569254=_0x1cdd36,_0x11b07d=new _0xd24e1d(_0x4892c3);return _0x11b07d[_0x569254(0x1c1)]({'label':_0x3a901c(this[_0x569254(0x1ba)],_0x569254(0x1cc)),'withText':!0x0,'icon':_0x3ad553,'class':_0x569254(0x1c4)}),_0x11b07d['on'](_0x569254(0x1c6),()=>{const _0x4a4cce=_0x569254;this[_0x4a4cce(0x1bd)](_0x4a4cce(0x1c9));}),_0x11b07d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x2add58=_0x2a4c;(function(_0x2018d2,_0x10f2bc){var _0x20d08e=_0x2a4c,_0x418d97=_0x2018d2();while(!![]){try{var _0x5c0cb6=parseInt(_0x20d08e(0x14f))/0x1*(-parseInt(_0x20d08e(0x152))/0x2)+-parseInt(_0x20d08e(0x13c))/0x3*(-parseInt(_0x20d08e(0x14a))/0x4)+-parseInt(_0x20d08e(0x13b))/0x5*(parseInt(_0x20d08e(0x146))/0x6)+-parseInt(_0x20d08e(0x147))/0x7+parseInt(_0x20d08e(0x154))/0x8*(parseInt(_0x20d08e(0x144))/0x9)+-parseInt(_0x20d08e(0x14d))/0xa*(-parseInt(_0x20d08e(0x145))/0xb)+parseInt(_0x20d08e(0x14b))/0xc;if(_0x5c0cb6===_0x10f2bc)break;else _0x418d97['push'](_0x418d97['shift']());}catch(_0x416b71){_0x418d97['push'](_0x418d97['shift']());}}}(_0x2820,0xcfc17));import{View as _0x439c87,BodyCollection as _0x436e65}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5a037d}from'../utils/eventnames.js';import{AIChatFeedView as _0x2b5376}from'./aichatfeedview.js';import{AIChatControlsView as _0x469289}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x233b7a}from'./aichatheaderview.js';import{AIDisclaimerView as _0x38686f}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x2a4c(_0xf62f30,_0x276c81){var _0x28200e=_0x2820();return _0x2a4c=function(_0x2a4c86,_0x5b8b0e){_0x2a4c86=_0x2a4c86-0x139;var _0x2241c6=_0x28200e[_0x2a4c86];return _0x2241c6;},_0x2a4c(_0xf62f30,_0x276c81);}function _0x2820(){var _0x520ca3=['populateSourceResourceBalloon','setTemplate','showResizeButton','closeSourceResourceBalloon','detachFromDom','4857183btFkqS','11CiRYGF','7716pWkyUK','2507855JsHCYP','contextResourcesSearchInputVisibleFrom','div','1336NyzUor','2061408Uvtjhs','chatFeed','15492650gZbNDC','_bodyCollection','10070KPvbku','delegate','ck-ai-chat','304lPlMqX','ck-rounded-corners','8klZEIa','chatControls','destroy','uiLanguageDirection','chatHeader','chatDisclaimer','4360FGMcmx','14376bZTVEv','ck-reset_all','attachToDom'];_0x2820=function(){return _0x520ca3;};return _0x2820();}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x439c87{[_0x2add58(0x139)];[_0x2add58(0x14c)];[_0x2add58(0x155)];[_0x2add58(0x13a)];[_0x2add58(0x14e)];constructor(_0xd51b8c,_0x14501){var _0x5866e3=_0x2add58;super(_0xd51b8c),this[_0x5866e3(0x14e)]=new _0x436e65(_0xd51b8c),this[_0x5866e3(0x14e)][_0x5866e3(0x13e)](),this[_0x5866e3(0x139)]=new _0x233b7a(_0xd51b8c,_0x14501[_0x5866e3(0x141)]),this[_0x5866e3(0x139)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x14c)]=new _0x2b5376(_0xd51b8c,this[_0x5866e3(0x14e)]),this[_0x5866e3(0x14c)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x155)]=new _0x469289(_0xd51b8c,{'bodyCollection':this[_0x5866e3(0x14e)],'contextResourcesSearchInputVisibleFrom':_0x14501[_0x5866e3(0x148)]}),this[_0x5866e3(0x155)][_0x5866e3(0x150)](..._0x5a037d)['to'](this),this[_0x5866e3(0x13a)]=new _0x38686f(_0xd51b8c),this[_0x5866e3(0x140)]({'tag':_0x5866e3(0x149),'attributes':{'class':['ck',_0x5866e3(0x13d),_0x5866e3(0x151),_0x5866e3(0x153)],'dir':_0xd51b8c[_0x5866e3(0x157)]},'children':[this[_0x5866e3(0x139)],this[_0x5866e3(0x14c)],this[_0x5866e3(0x155)],this[_0x5866e3(0x13a)]]});}[_0x2add58(0x13f)](_0x2c8f28,_0x198d28,_0x2e7e5d,_0x9ed246){var _0x490171=_0x2add58;this[_0x490171(0x155)][_0x490171(0x13f)](_0x2c8f28,_0x198d28,_0x2e7e5d,_0x9ed246);}[_0x2add58(0x142)](_0x488654){var _0x57a575=_0x2add58;this[_0x57a575(0x155)][_0x57a575(0x142)](_0x488654);}[_0x2add58(0x156)](){var _0x54009e=_0x2add58;this[_0x54009e(0x14e)][_0x54009e(0x143)](),super[_0x54009e(0x156)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x554c8e=_0x44b8;function _0x44b8(_0x1c7865,_0x5d12d7){const _0x36cd5c=_0x36cd();return _0x44b8=function(_0x44b887,_0x1e1c1d){_0x44b887=_0x44b887-0x191;let _0xa466e4=_0x36cd5c[_0x44b887];return _0xa466e4;},_0x44b8(_0x1c7865,_0x5d12d7);}(function(_0x3055eb,_0x19ed3a){const _0x813b05=_0x44b8,_0x34ee8a=_0x3055eb();while(!![]){try{const _0x354ea6=-parseInt(_0x813b05(0x203))/0x1+-parseInt(_0x813b05(0x192))/0x2*(-parseInt(_0x813b05(0x1aa))/0x3)+parseInt(_0x813b05(0x1b5))/0x4*(-parseInt(_0x813b05(0x1e9))/0x5)+parseInt(_0x813b05(0x209))/0x6+-parseInt(_0x813b05(0x21a))/0x7*(-parseInt(_0x813b05(0x206))/0x8)+parseInt(_0x813b05(0x1e5))/0x9*(parseInt(_0x813b05(0x1a1))/0xa)+-parseInt(_0x813b05(0x1fe))/0xb;if(_0x354ea6===_0x19ed3a)break;else _0x34ee8a['push'](_0x34ee8a['shift']());}catch(_0x268c7b){_0x34ee8a['push'](_0x34ee8a['shift']());}}}(_0x36cd,0xcfb5d));import{View as _0x179327,BalloonPanelView as _0x1a19d0,ButtonView as _0x3f5246,clickOutsideHandler as _0x3ceb27}from'ckeditor5/src/ui.js';function _0x36cd(){const _0x568421=['push','_intersectionObserver','39856uluIwv','style','button','_setupVisibilityObserver','showMoreLabelPrefix','undefined','_parentView','_repinBalloonPanel','tagName','right','pointerEvents','pin','appendChild','from','disconnect','40IBpXsr','_testButtonFit','createElement','children','maxVisibleRows','_config','filter','innerHeight','visible\x20!important','255iwuKQk','_isContainerVisible','add','parentElement','visibility','hide','hidden','cssClasses','cloneNode','some','observe','33556OUEfos','_restoreAncestorVisibility','_showMoreBalloonPanelView','_applyCalculationStyles','controlsButton','boxSizing','+\x201','_findTargetContainer','auto','height','_calculateOverflowInContainer','_updateOverflowUI','toLowerCase','classList','hideBalloonPanel','element','showMoreButton','isOn','remove','showMoreButtonView','offsetWidth','length','_ancestorsToRestore','destroy','_calculateContainerWidth','rowDetectionTolerance','_bodyCollection','textContent','opacity','show','none','querySelector','setContainerElement','bottom','isVisible','0px','-9999px','isConnected','label','overflowChips','getComputedStyle','left','zIndex','execute','absolute','_createContainerElements','showMoreBalloon','innerHTML','3681162vWPigS','visible','calculationContainer','pop','120MHyJzZ','getBoundingClientRect','_createShowMoreButtonView','50px','block','content','abs','border-box','_visibleChips','_renderChipsAndCountRows','_createCalculationContainer','_createShowMoreBalloonPanelView','_containerElement','_pendingCalculation','_distributeChips','top','_overflowChips','render','_createShowMoreButton','_handleShowMoreButtonClick','div','38423825PCXQGt','innerWidth','300px','body','block\x20!important','1133209WgWIJX','forEach','includes','8lVJNYw','_updateBalloonContent','disableAnimationOnEnter','4016724nssvut','clientWidth','_checkAndHandleOverflow','className','_locale','display','position','clear','reorganizeChips','_makeAncestorsVisible','_showMoreButtonView','overflowContainer','showBalloonPanel','ck-calculation-container','_applyOverflowResults','documentElement','width','11752965bBDigM','extendTemplate','.ck-ai-chat','_updateShowMoreButtonVisibility','_targetContainer','setTemplate','clientHeight','isIntersecting','slice','_createMockButton','set'];_0x36cd=function(){return _0x568421;};return _0x36cd();}import{Collection as _0x3a4af1}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x554c8e(0x200);export class AIChatChipsOverflowManager{[_0x554c8e(0x20d)];[_0x554c8e(0x1a6)];[_0x554c8e(0x1f1)];[_0x554c8e(0x1f9)];[_0x554c8e(0x213)]=null;[_0x554c8e(0x1b7)]=null;[_0x554c8e(0x1f5)]=null;[_0x554c8e(0x1cf)];[_0x554c8e(0x198)]=null;[_0x554c8e(0x191)]=null;[_0x554c8e(0x1f6)]=!0x1;constructor(_0xcee5aa,_0x18386a,_0x162b55,_0x5eadf0,_0x24c6c4){const _0x53e3cc=_0x554c8e;this[_0x53e3cc(0x20d)]=_0xcee5aa,this[_0x53e3cc(0x1f1)]=_0x18386a,this[_0x53e3cc(0x1a6)]={...hn,..._0x162b55,'cssClasses':{'controlsButton':'','calculationContainer':_0x53e3cc(0x216),..._0x162b55[_0x53e3cc(0x1b1)]}},this[_0x53e3cc(0x1f9)]=new _0x3a4af1(),this[_0x53e3cc(0x1cf)]=_0x5eadf0,this[_0x53e3cc(0x198)]=_0x24c6c4||null;}[_0x554c8e(0x1d5)](_0x4d5221){const _0x11442c=_0x554c8e;this[_0x11442c(0x191)]&&(this[_0x11442c(0x191)][_0x11442c(0x1a0)](),this[_0x11442c(0x191)]=null),this[_0x11442c(0x1f5)]=_0x4d5221,this[_0x11442c(0x195)]();}get[_0x554c8e(0x1c8)](){const _0x20785c=_0x554c8e;return this[_0x20785c(0x213)];}get[_0x554c8e(0x1dc)](){const _0x545092=_0x554c8e;return this[_0x545092(0x1f9)];}[_0x554c8e(0x211)](){requestAnimationFrame(()=>{const _0x3cbd73=_0x44b8;this[_0x3cbd73(0x20b)]();});}[_0x554c8e(0x215)](){const _0x54acdd=_0x554c8e;this[_0x54acdd(0x213)]&&this[_0x54acdd(0x1b7)]&&(this[_0x54acdd(0x207)](),this[_0x54acdd(0x213)][_0x54acdd(0x1c6)]=!0x0,this[_0x54acdd(0x1b7)][_0x54acdd(0x1d2)](),this[_0x54acdd(0x1b7)][_0x54acdd(0x19d)]({'target':this[_0x54acdd(0x213)][_0x54acdd(0x1c4)],'limiter':document[_0x54acdd(0x1d4)](_0x54acdd(0x21c))}));}[_0x554c8e(0x1c3)](){const _0x420b83=_0x554c8e;this[_0x420b83(0x213)]&&this[_0x420b83(0x1b7)]&&(this[_0x420b83(0x213)][_0x420b83(0x1c6)]=!0x1,this[_0x420b83(0x1b7)][_0x420b83(0x1af)]());}[_0x554c8e(0x210)](){const _0x4070a4=_0x554c8e;this[_0x4070a4(0x1f9)][_0x4070a4(0x210)](),this[_0x4070a4(0x1c3)](),this[_0x4070a4(0x21d)](),this[_0x4070a4(0x213)]&&(this[_0x4070a4(0x213)][_0x4070a4(0x1db)]=''),this[_0x4070a4(0x1b7)]&&this[_0x4070a4(0x1b7)][_0x4070a4(0x1ee)][_0x4070a4(0x210)]();}[_0x554c8e(0x1cc)](){const _0x250b1d=_0x554c8e;this[_0x250b1d(0x191)]&&(this[_0x250b1d(0x191)][_0x250b1d(0x1a0)](),this[_0x250b1d(0x191)]=null),this[_0x250b1d(0x213)]&&(this[_0x250b1d(0x213)][_0x250b1d(0x1cc)](),this[_0x250b1d(0x213)]=null),this[_0x250b1d(0x1b7)]&&(this[_0x250b1d(0x1b7)][_0x250b1d(0x1cc)](),this[_0x250b1d(0x1b7)]=null);}[_0x554c8e(0x20b)](){const _0xe48a7e=_0x554c8e;if(!this[_0xe48a7e(0x1f5)])return;if(!this[_0xe48a7e(0x1ab)]())return void(this[_0xe48a7e(0x1f6)]=!0x0);this[_0xe48a7e(0x1f6)]=!0x1;const _0x7c408f=[...this[_0xe48a7e(0x1f1)],...this[_0xe48a7e(0x1f9)]],_0x5d93ca=this[_0xe48a7e(0x1f3)](),_0x16d853=this[_0xe48a7e(0x1bf)](_0x5d93ca,_0x7c408f),_0x35f78a=_0x5d93ca[_0xe48a7e(0x1cb)];_0x35f78a&&this[_0xe48a7e(0x1b6)](_0x35f78a),_0x5d93ca[_0xe48a7e(0x1c7)](),this[_0xe48a7e(0x217)](_0x7c408f,_0x16d853);}[_0x554c8e(0x1fb)](){const _0x19e2c1=_0x554c8e;this[_0x19e2c1(0x213)]=this[_0x19e2c1(0x1eb)](),this[_0x19e2c1(0x1b7)]=this[_0x19e2c1(0x1f4)](),this[_0x19e2c1(0x213)][_0x19e2c1(0x1fa)](),this[_0x19e2c1(0x1f5)][_0x19e2c1(0x19e)](this[_0x19e2c1(0x213)][_0x19e2c1(0x1c4)]),this[_0x19e2c1(0x213)]['on'](_0x19e2c1(0x1e0),()=>{const _0x442667=_0x19e2c1;this[_0x442667(0x1fc)]();}),_0x3ceb27({'emitter':this[_0x19e2c1(0x1b7)],'contextElements':[this[_0x19e2c1(0x1b7)][_0x19e2c1(0x1c4)],this[_0x19e2c1(0x213)][_0x19e2c1(0x1c4)]],'callback':()=>this[_0x19e2c1(0x1c3)](),'activator':()=>this[_0x19e2c1(0x213)][_0x19e2c1(0x1c6)]});}[_0x554c8e(0x1eb)](){const _0x115788=_0x554c8e,_0x172297=new _0x3f5246(this[_0x115788(0x20d)]);_0x172297[_0x115788(0x224)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x48cdf2=[this[_0x115788(0x1a6)][_0x115788(0x1b1)][_0x115788(0x1c5)]];return this[_0x115788(0x1a6)][_0x115788(0x1b1)][_0x115788(0x1b9)]&&_0x48cdf2[_0x115788(0x225)](this[_0x115788(0x1a6)][_0x115788(0x1b1)][_0x115788(0x1b9)]),_0x172297[_0x115788(0x21b)]({'attributes':{'class':_0x48cdf2}}),_0x172297;}[_0x554c8e(0x1f4)](){const _0x2344ed=_0x554c8e,_0x14647f=new _0x1a19d0(this[_0x2344ed(0x20d)]);return _0x14647f[_0x2344ed(0x21b)]({'attributes':{'class':this[_0x2344ed(0x1a6)][_0x2344ed(0x1b1)][_0x2344ed(0x1e3)]}}),this[_0x2344ed(0x1cf)][_0x2344ed(0x1ac)](_0x14647f),_0x14647f;}[_0x554c8e(0x207)](){const _0xc9a7fb=_0x554c8e;if(this[_0xc9a7fb(0x1b7)]&&(this[_0xc9a7fb(0x1b7)][_0xc9a7fb(0x1ee)][_0xc9a7fb(0x210)](),this[_0xc9a7fb(0x1f9)][_0xc9a7fb(0x1ca)]>0x0)){this[_0xc9a7fb(0x1f9)][_0xc9a7fb(0x204)](_0x140b7b=>{const _0x38b9bd=_0xc9a7fb;_0x140b7b[_0x38b9bd(0x208)]();});const _0x5ba324=new _0x179327(this[_0xc9a7fb(0x20d)]);_0x5ba324[_0xc9a7fb(0x21f)]({'tag':_0xc9a7fb(0x1fd),'attributes':{'class':this[_0xc9a7fb(0x1a6)][_0xc9a7fb(0x1b1)][_0xc9a7fb(0x214)]},'children':this[_0xc9a7fb(0x1f9)]}),this[_0xc9a7fb(0x1b7)][_0xc9a7fb(0x1ee)][_0xc9a7fb(0x1ac)](_0x5ba324);}}[_0x554c8e(0x1fc)](){const _0x21e45e=_0x554c8e;this[_0x21e45e(0x213)][_0x21e45e(0x1c6)]?this[_0x21e45e(0x1c3)]():this[_0x21e45e(0x215)]();}[_0x554c8e(0x21d)](){const _0x1b5f01=_0x554c8e,_0xe8d0d5=this[_0x1b5f01(0x1f9)][_0x1b5f01(0x1ca)]>0x0;this[_0x1b5f01(0x213)]?.[_0x1b5f01(0x1c4)]&&(this[_0x1b5f01(0x213)][_0x1b5f01(0x1c4)][_0x1b5f01(0x193)][_0x1b5f01(0x20e)]=_0xe8d0d5?'':_0x1b5f01(0x1d3));}[_0x554c8e(0x199)](){const _0x2c5129=_0x554c8e;this[_0x2c5129(0x213)]?.[_0x2c5129(0x1c6)]&&this[_0x2c5129(0x1b7)]?.[_0x2c5129(0x1d7)]&&this[_0x2c5129(0x213)][_0x2c5129(0x1c4)]&&this[_0x2c5129(0x1b7)][_0x2c5129(0x19d)]({'target':this[_0x2c5129(0x213)][_0x2c5129(0x1c4)],'limiter':document[_0x2c5129(0x1d4)](_0x2c5129(0x21c))});}[_0x554c8e(0x1bc)](_0x4f1b0c){const _0x20d7b6=_0x554c8e,_0x526e87=this[_0x20d7b6(0x1f5)]?.[_0x20d7b6(0x19a)][_0x20d7b6(0x1c1)]()||_0x20d7b6(0x1fd),_0x583aa9=this[_0x20d7b6(0x1f5)]?.[_0x20d7b6(0x1c2)];if(_0x583aa9){const _0x5f6265=_0x583aa9[0x0]||'',_0x4acb2e=_0x4f1b0c[_0x20d7b6(0x1d4)]('.'+_0x5f6265),_0x343dcf=_0x4f1b0c[_0x20d7b6(0x1d4)](_0x526e87);return _0x4acb2e||_0x343dcf||_0x4f1b0c;}return _0x4f1b0c[_0x20d7b6(0x1d4)](_0x526e87)||_0x4f1b0c;}[_0x554c8e(0x1cd)](){const _0x56bf67=_0x554c8e,_0x1197e6=this[_0x56bf67(0x198)]?.[_0x56bf67(0x1c4)]||this[_0x56bf67(0x1f5)];if(!_0x1197e6)return an;const _0xcc24fe=window[_0x56bf67(0x1dd)](_0x1197e6)[_0x56bf67(0x219)];if(_0x56bf67(0x1bd)===_0xcc24fe||_0x56bf67(0x1d8)===_0xcc24fe||!_0xcc24fe){const _0x3b70cf=_0x1197e6[_0x56bf67(0x1ad)];if(_0x3b70cf){const _0x2781b3=window[_0x56bf67(0x1dd)](_0x3b70cf);return _0x56bf67(0x1bd)!==_0x2781b3[_0x56bf67(0x219)]?_0x2781b3[_0x56bf67(0x219)]:an;}return an;}return _0xcc24fe;}[_0x554c8e(0x1b8)](_0x1bb008,_0x486fdb){const _0x37fe97=_0x554c8e;this[_0x37fe97(0x1a6)][_0x37fe97(0x1b1)][_0x37fe97(0x1e7)]&&_0x1bb008[_0x37fe97(0x1c2)][_0x37fe97(0x1ac)](this[_0x37fe97(0x1a6)][_0x37fe97(0x1b1)][_0x37fe97(0x1e7)]),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x219)]=_0x486fdb,_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x20f)]=_0x37fe97(0x1e1),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1f8)]=_0x37fe97(0x1d9),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1de)]=_0x37fe97(0x1d9),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1d1)]='0',_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x19c)]=_0x37fe97(0x1d3),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1df)]='-1',_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1ae)]=_0x37fe97(0x1a9),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x20e)]=_0x37fe97(0x202),_0x1bb008[_0x37fe97(0x193)][_0x37fe97(0x1ba)]=_0x37fe97(0x1f0);}[_0x554c8e(0x1b6)](_0x118830){const _0x9d3db2=_0x554c8e;_0x118830[_0x9d3db2(0x204)](({element:_0x5dd8e5,originalDisplay:_0x306022,originalVisibility:_0x3c08cf})=>{const _0x23b81c=_0x9d3db2;_0x5dd8e5[_0x23b81c(0x193)][_0x23b81c(0x20e)]=_0x306022,_0x5dd8e5[_0x23b81c(0x193)][_0x23b81c(0x1ae)]=_0x3c08cf;});}[_0x554c8e(0x212)](_0x358762){const _0x5883c6=_0x554c8e,_0x163aa4=[];let _0x317f38=_0x358762;for(;_0x317f38&&_0x317f38!==document[_0x5883c6(0x201)];){const _0x5e76ad=window[_0x5883c6(0x1dd)](_0x317f38);_0x5883c6(0x1d3)!==_0x5e76ad[_0x5883c6(0x20e)]&&_0x5883c6(0x1b0)!==_0x5e76ad[_0x5883c6(0x1ae)]||(_0x163aa4[_0x5883c6(0x225)]({'element':_0x317f38,'originalDisplay':_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x20e)],'originalVisibility':_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x1ae)]}),_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x20e)]=_0x5883c6(0x1ed),_0x317f38[_0x5883c6(0x193)][_0x5883c6(0x1ae)]=_0x5883c6(0x1e6)),_0x317f38=_0x317f38[_0x5883c6(0x1ad)];}return _0x163aa4;}[_0x554c8e(0x1e2)](){const _0x727e9=_0x554c8e;let _0x37211b,_0x287d6f;return this[_0x727e9(0x198)]?.[_0x727e9(0x1c4)]?(_0x37211b=this[_0x727e9(0x198)][_0x727e9(0x1c4)][_0x727e9(0x1b2)](!0x0),_0x287d6f=this[_0x727e9(0x1bc)](_0x37211b)):(_0x37211b=document[_0x727e9(0x1a3)](_0x727e9(0x1fd)),_0x287d6f=_0x37211b),{'calculationContainer':_0x37211b,'targetContainer':_0x287d6f};}[_0x554c8e(0x1f3)](){const _0x1dcba9=_0x554c8e,{calculationContainer:_0x3966be,targetContainer:_0xd16f57}=this[_0x1dcba9(0x1e2)](),_0x421c1f=this[_0x1dcba9(0x1cd)]();this[_0x1dcba9(0x1b8)](_0x3966be,_0x421c1f);const _0x193254=this[_0x1dcba9(0x198)]?.[_0x1dcba9(0x1c4)]||this[_0x1dcba9(0x1f5)],_0xb61e33=_0x193254?.[_0x1dcba9(0x1ad)];_0xb61e33?_0xb61e33[_0x1dcba9(0x19e)](_0x3966be):document[_0x1dcba9(0x201)][_0x1dcba9(0x19e)](_0x3966be),_0x3966be[_0x1dcba9(0x21e)]=_0xd16f57;const _0x2ee8eb=this[_0x1dcba9(0x212)](_0xb61e33||null);return _0x3966be[_0x1dcba9(0x1c9)],_0x3966be[_0x1dcba9(0x1cb)]=_0x2ee8eb,_0x3966be;}[_0x554c8e(0x1bf)](_0x47a913,_0x57501b){const _0x304ace=_0x554c8e,_0x5c215b=_0x47a913[_0x304ace(0x21e)]||_0x47a913,_0x50ef1e=[],{rowCount:_0xb59c}=this[_0x304ace(0x1f2)](_0x5c215b,_0x57501b);if(_0xb59c<=this[_0x304ace(0x1a6)][_0x304ace(0x1a5)])return _0x50ef1e;const _0xb2e769=_0x57501b[_0x304ace(0x222)]();for(;_0xb2e769[_0x304ace(0x1ca)]>0x0;){if(this[_0x304ace(0x1a2)](_0x47a913,_0x5c215b,_0xb2e769)){const _0x1d7c1c=_0x57501b[_0x304ace(0x1a7)](_0x3259f3=>!_0xb2e769[_0x304ace(0x205)](_0x3259f3));_0x50ef1e[_0x304ace(0x225)](..._0x1d7c1c);break;}if(!_0xb2e769[_0x304ace(0x1e8)]())break;}return _0x50ef1e;}[_0x554c8e(0x1f2)](_0x16e0e5,_0x5c3851){const _0x34f098=_0x554c8e;_0x16e0e5[_0x34f098(0x1e4)]='',_0x5c3851[_0x34f098(0x204)](_0xe7d917=>{const _0x11d676=_0x34f098;if(_0xe7d917[_0x11d676(0x1c4)]){const _0x1ed8b1=_0xe7d917[_0x11d676(0x1c4)][_0x11d676(0x1b2)](!0x0);_0x16e0e5[_0x11d676(0x19e)](_0x1ed8b1);}}),_0x16e0e5[_0x34f098(0x1c9)];const _0x84f9eb=_0x16e0e5[_0x34f098(0x1a4)],_0x25af07=[];return Array[_0x34f098(0x19f)](_0x84f9eb)[_0x34f098(0x204)](_0x35286a=>{const _0x384f15=_0x34f098,_0x4fe652=_0x35286a[_0x384f15(0x1ea)]()[_0x384f15(0x1f8)];_0x25af07[_0x384f15(0x1b3)](_0x4e9ffe=>Math[_0x384f15(0x1ef)](_0x4e9ffe-_0x4fe652)<this[_0x384f15(0x1a6)][_0x384f15(0x1ce)])||_0x25af07[_0x384f15(0x225)](_0x4fe652);}),{'rowCount':_0x25af07[_0x34f098(0x1ca)]};}[_0x554c8e(0x223)](){const _0x1b7f86=_0x554c8e,_0x570cd0=document[_0x1b7f86(0x1a3)](_0x1b7f86(0x194));return _0x570cd0[_0x1b7f86(0x20c)]=this[_0x1b7f86(0x1a6)][_0x1b7f86(0x1b1)][_0x1b7f86(0x1c5)],this[_0x1b7f86(0x1a6)][_0x1b7f86(0x1b1)][_0x1b7f86(0x1b9)]&&_0x570cd0[_0x1b7f86(0x1c2)][_0x1b7f86(0x1ac)](this[_0x1b7f86(0x1a6)][_0x1b7f86(0x1b1)][_0x1b7f86(0x1b9)]),_0x570cd0[_0x1b7f86(0x1d0)]=_0x1b7f86(0x1bb),_0x570cd0;}[_0x554c8e(0x1a2)](_0x1a5757,_0x183e70,_0x2f60aa){const _0x2ca4fe=_0x554c8e;this[_0x2ca4fe(0x1f2)](_0x183e70,_0x2f60aa);const _0x3b55d2=this[_0x2ca4fe(0x223)]();_0x1a5757[_0x2ca4fe(0x19e)](_0x3b55d2),_0x1a5757[_0x2ca4fe(0x1c9)];const _0x2f963a=[..._0x183e70[_0x2ca4fe(0x1a4)],_0x3b55d2],_0x22f1e3=[];_0x2f963a[_0x2ca4fe(0x204)](_0x5088ed=>{const _0xf35b58=_0x2ca4fe,_0x9c907f=_0x5088ed[_0xf35b58(0x1ea)]()[_0xf35b58(0x1f8)];_0x22f1e3[_0xf35b58(0x1b3)](_0x4097cd=>Math[_0xf35b58(0x1ef)](_0x4097cd-_0x9c907f)<this[_0xf35b58(0x1a6)][_0xf35b58(0x1ce)])||_0x22f1e3[_0xf35b58(0x225)](_0x9c907f);});const _0xa30644=_0x22f1e3[_0x2ca4fe(0x1ca)];return _0x3b55d2[_0x2ca4fe(0x1c7)](),_0xa30644<=this[_0x2ca4fe(0x1a6)][_0x2ca4fe(0x1a5)];}[_0x554c8e(0x1f7)](_0x25d8de,_0x3990c8){const _0x47645f=_0x554c8e;this[_0x47645f(0x1f1)][_0x47645f(0x210)](),this[_0x47645f(0x1f9)][_0x47645f(0x210)](),_0x25d8de[_0x47645f(0x204)](_0x1adf53=>{const _0x1ebdab=_0x47645f;_0x3990c8[_0x1ebdab(0x205)](_0x1adf53)?this[_0x1ebdab(0x1f9)][_0x1ebdab(0x1ac)](_0x1adf53):this[_0x1ebdab(0x1f1)][_0x1ebdab(0x1ac)](_0x1adf53);});}[_0x554c8e(0x1c0)](_0x25df07){const _0x53810b=_0x554c8e;if(_0x25df07>0x0&&!this[_0x53810b(0x213)]&&this[_0x53810b(0x1fb)](),_0x25df07>0x0&&this[_0x53810b(0x213)]){const _0x24115e=''+this[_0x53810b(0x1a6)][_0x53810b(0x196)]+(_0x25df07<0x63?_0x25df07:'99');this[_0x53810b(0x213)][_0x53810b(0x1db)]=_0x24115e;}this[_0x53810b(0x207)](),this[_0x53810b(0x21d)](),this[_0x53810b(0x199)]();}[_0x554c8e(0x217)](_0x43e317,_0x5a1b6f){const _0x91da29=_0x554c8e;this[_0x91da29(0x1f7)](_0x43e317,_0x5a1b6f),this[_0x91da29(0x1c0)](_0x5a1b6f[_0x91da29(0x1ca)]);}[_0x554c8e(0x195)](){const _0x44044b=_0x554c8e;this[_0x44044b(0x1f5)]&&_0x44044b(0x197)!=typeof IntersectionObserver&&(this[_0x44044b(0x191)]=new IntersectionObserver(_0xcd68f4=>{const _0x35dda0=_0x44044b;_0xcd68f4[0x0][_0x35dda0(0x221)]&&this[_0x35dda0(0x1f6)]&&requestAnimationFrame(()=>{const _0xa58e8f=_0x35dda0;this[_0xa58e8f(0x20b)]();});},{'threshold':0.01,'rootMargin':_0x44044b(0x1ec)}),this[_0x44044b(0x191)][_0x44044b(0x1b4)](this[_0x44044b(0x1f5)]));}[_0x554c8e(0x1ab)](){const _0x4ef7b0=_0x554c8e;if(!this[_0x4ef7b0(0x1f5)])return!0x1;if(!this[_0x4ef7b0(0x1f5)][_0x4ef7b0(0x1da)])return!0x1;const _0x4c1929=this[_0x4ef7b0(0x1f5)][_0x4ef7b0(0x1ea)]();if(0x0===_0x4c1929[_0x4ef7b0(0x219)]||0x0===_0x4c1929[_0x4ef7b0(0x1be)])return!0x1;const _0x8e9230=window[_0x4ef7b0(0x1a8)]||document[_0x4ef7b0(0x218)][_0x4ef7b0(0x220)],_0x582c6b=window[_0x4ef7b0(0x1ff)]||document[_0x4ef7b0(0x218)][_0x4ef7b0(0x20a)],_0xc924e5=0xc8;return _0x4c1929[_0x4ef7b0(0x1d6)]>=-0xc8&&_0x4c1929[_0x4ef7b0(0x1f8)]<=_0x8e9230+_0xc924e5&&_0x4c1929[_0x4ef7b0(0x19b)]>=-0xc8&&_0x4c1929[_0x4ef7b0(0x1de)]<=_0x582c6b+_0xc924e5;}}
|
|
23
|
+
function _0x4aed(_0x3e7c10,_0x13e3ed){const _0x1d1e3a=_0x1d1e();return _0x4aed=function(_0x4aedc4,_0x460b34){_0x4aedc4=_0x4aedc4-0x78;let _0x477fd5=_0x1d1e3a[_0x4aedc4];return _0x477fd5;},_0x4aed(_0x3e7c10,_0x13e3ed);}const _0x12ada0=_0x4aed;function _0x1d1e(){const _0x1f578c=['overflowChips','_config','show','getBoundingClientRect','_visibleChips','_ancestorsToRestore','isOn','_handleShowMoreButtonClick','innerHTML','overflowContainer','disableAnimationOnEnter','render','300px','slice','querySelector','createElement','toLowerCase','19708784JMMhFa','_showMoreBalloonPanelView','_distributeChips','offsetWidth','_checkAndHandleOverflow','_findTargetContainer','extendTemplate','button','length','5395665fQyuCr','_parentView','remove','textContent','destroy','showBalloonPanel','some','isConnected','right','setTemplate','auto','observe','position','style','element','_containerElement','none','boxSizing','bottom','_applyOverflowResults','+\x201','cloneNode','absolute','clear','controlsButton','body','_showMoreButtonView','1513240JYGpFB','_makeAncestorsVisible','isIntersecting','0px','-9999px','pointerEvents','classList','_createCalculationContainer','innerHeight','push','3115442CxbXTE','showMoreButton','execute','hidden','visibility','rowDetectionTolerance','display','_repinBalloonPanel','_calculateContainerWidth','disconnect','from','className','_testButtonFit','.ck-ai-chat','pin','filter','_locale','4391106jHyoVT','_createShowMoreBalloonPanelView','calculationContainer','cssClasses','_createContainerElements','pop','_renderChipsAndCountRows','50px','abs','set','width','visible\x20!important','forEach','content','undefined','hideBalloonPanel','_updateBalloonContent','_restoreAncestorVisibility','_createShowMoreButtonView','_intersectionObserver','_setupVisibilityObserver','children','includes','ck-calculation-container','_updateOverflowUI','visible','reorganizeChips','setContainerElement','add','_targetContainer','height','_overflowChips','7wtEoUX','block','getComputedStyle','_pendingCalculation','left','_createMockButton','_updateShowMoreButtonVisibility','showMoreButtonView','clientHeight','appendChild','_bodyCollection','top','tagName','594814LlZOJW','zIndex','parentElement','clientWidth','_isContainerVisible','showMoreLabelPrefix','_createShowMoreButton','showMoreBalloon','maxVisibleRows','isVisible','block\x20!important','3757083xQPQYF','documentElement','label','opacity','_calculateOverflowInContainer','innerWidth','div','hide','_applyCalculationStyles','border-box'];_0x1d1e=function(){return _0x1f578c;};return _0x1d1e();}(function(_0x5ac2ca,_0x52f3ce){const _0x49b857=_0x4aed,_0x3cdadf=_0x5ac2ca();while(!![]){try{const _0x56a5fb=-parseInt(_0x49b857(0x102))/0x1+-parseInt(_0x49b857(0xc4))/0x2+parseInt(_0x49b857(0x7b))/0x3+-parseInt(_0x49b857(0xba))/0x4+-parseInt(_0x49b857(0x9f))/0x5+-parseInt(_0x49b857(0xd5))/0x6*(-parseInt(_0x49b857(0xf5))/0x7)+parseInt(_0x49b857(0x96))/0x8;if(_0x56a5fb===_0x52f3ce)break;else _0x3cdadf['push'](_0x3cdadf['shift']());}catch(_0x3f4028){_0x3cdadf['push'](_0x3cdadf['shift']());}}}(_0x1d1e,0xcc8c8));import{View as _0x86860d,BalloonPanelView as _0x18847f,ButtonView as _0x5c3010,clickOutsideHandler as _0x354a6e}from'ckeditor5/src/ui.js';import{Collection as _0xe3f288}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x12ada0(0x91);export class AIChatChipsOverflowManager{[_0x12ada0(0xd4)];[_0x12ada0(0x86)];[_0x12ada0(0x89)];[_0x12ada0(0xf4)];[_0x12ada0(0xb9)]=null;[_0x12ada0(0x97)]=null;[_0x12ada0(0xae)]=null;[_0x12ada0(0xff)];[_0x12ada0(0xa0)]=null;[_0x12ada0(0xe8)]=null;[_0x12ada0(0xf8)]=!0x1;constructor(_0x52ea97,_0x5f1cde,_0x14bcc7,_0x302dc9,_0x2cebeb){const _0x478be3=_0x12ada0;this[_0x478be3(0xd4)]=_0x52ea97,this[_0x478be3(0x89)]=_0x5f1cde,this[_0x478be3(0x86)]={...hn,..._0x14bcc7,'cssClasses':{'controlsButton':'','calculationContainer':_0x478be3(0xec),..._0x14bcc7[_0x478be3(0xd8)]}},this[_0x478be3(0xf4)]=new _0xe3f288(),this[_0x478be3(0xff)]=_0x302dc9,this[_0x478be3(0xa0)]=_0x2cebeb||null;}[_0x12ada0(0xf0)](_0x28c8c2){const _0x14e6ba=_0x12ada0;this[_0x14e6ba(0xe8)]&&(this[_0x14e6ba(0xe8)][_0x14e6ba(0xcd)](),this[_0x14e6ba(0xe8)]=null),this[_0x14e6ba(0xae)]=_0x28c8c2,this[_0x14e6ba(0xe9)]();}get[_0x12ada0(0xfc)](){const _0x319a99=_0x12ada0;return this[_0x319a99(0xb9)];}get[_0x12ada0(0x85)](){const _0x2af4fc=_0x12ada0;return this[_0x2af4fc(0xf4)];}[_0x12ada0(0xef)](){requestAnimationFrame(()=>{const _0x21f74f=_0x4aed;this[_0x21f74f(0x9a)]();});}[_0x12ada0(0xa4)](){const _0x414231=_0x12ada0;this[_0x414231(0xb9)]&&this[_0x414231(0x97)]&&(this[_0x414231(0xe5)](),this[_0x414231(0xb9)][_0x414231(0x8b)]=!0x0,this[_0x414231(0x97)][_0x414231(0x87)](),this[_0x414231(0x97)][_0x414231(0xd2)]({'target':this[_0x414231(0xb9)][_0x414231(0xad)],'limiter':document[_0x414231(0x93)](_0x414231(0xd1))}));}[_0x12ada0(0xe4)](){const _0xdd419d=_0x12ada0;this[_0xdd419d(0xb9)]&&this[_0xdd419d(0x97)]&&(this[_0xdd419d(0xb9)][_0xdd419d(0x8b)]=!0x1,this[_0xdd419d(0x97)][_0xdd419d(0x82)]());}[_0x12ada0(0xb6)](){const _0x54846c=_0x12ada0;this[_0x54846c(0xf4)][_0x54846c(0xb6)](),this[_0x54846c(0xe4)](),this[_0x54846c(0xfb)](),this[_0x54846c(0xb9)]&&(this[_0x54846c(0xb9)][_0x54846c(0x7d)]=''),this[_0x54846c(0x97)]&&this[_0x54846c(0x97)][_0x54846c(0xe2)][_0x54846c(0xb6)]();}[_0x12ada0(0xa3)](){const _0xf06acf=_0x12ada0;this[_0xf06acf(0xe8)]&&(this[_0xf06acf(0xe8)][_0xf06acf(0xcd)](),this[_0xf06acf(0xe8)]=null),this[_0xf06acf(0xb9)]&&(this[_0xf06acf(0xb9)][_0xf06acf(0xa3)](),this[_0xf06acf(0xb9)]=null),this[_0xf06acf(0x97)]&&(this[_0xf06acf(0x97)][_0xf06acf(0xa3)](),this[_0xf06acf(0x97)]=null);}[_0x12ada0(0x9a)](){const _0x26ad95=_0x12ada0;if(!this[_0x26ad95(0xae)])return;if(!this[_0x26ad95(0x106)]())return void(this[_0x26ad95(0xf8)]=!0x0);this[_0x26ad95(0xf8)]=!0x1;const _0x4f9f10=[...this[_0x26ad95(0x89)],...this[_0x26ad95(0xf4)]],_0x37ddc1=this[_0x26ad95(0xc1)](),_0x5c9c0b=this[_0x26ad95(0x7f)](_0x37ddc1,_0x4f9f10),_0x5d08fc=_0x37ddc1[_0x26ad95(0x8a)];_0x5d08fc&&this[_0x26ad95(0xe6)](_0x5d08fc),_0x37ddc1[_0x26ad95(0xa1)](),this[_0x26ad95(0xb2)](_0x4f9f10,_0x5c9c0b);}[_0x12ada0(0x108)](){const _0xaff6bc=_0x12ada0;this[_0xaff6bc(0xb9)]=this[_0xaff6bc(0xe7)](),this[_0xaff6bc(0x97)]=this[_0xaff6bc(0xd6)](),this[_0xaff6bc(0xb9)][_0xaff6bc(0x90)](),this[_0xaff6bc(0xae)][_0xaff6bc(0xfe)](this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]),this[_0xaff6bc(0xb9)]['on'](_0xaff6bc(0xc6),()=>{const _0x1c9da5=_0xaff6bc;this[_0x1c9da5(0x8c)]();}),_0x354a6e({'emitter':this[_0xaff6bc(0x97)],'contextElements':[this[_0xaff6bc(0x97)][_0xaff6bc(0xad)],this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]],'callback':()=>this[_0xaff6bc(0xe4)](),'activator':()=>this[_0xaff6bc(0xb9)][_0xaff6bc(0x8b)]});}[_0x12ada0(0xe7)](){const _0x15c55a=_0x12ada0,_0x492741=new _0x5c3010(this[_0x15c55a(0xd4)]);_0x492741[_0x15c55a(0xde)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1206fe=[this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xc5)]];return this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]&&_0x1206fe[_0x15c55a(0xc3)](this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]),_0x492741[_0x15c55a(0x9c)]({'attributes':{'class':_0x1206fe}}),_0x492741;}[_0x12ada0(0xd6)](){const _0x342b36=_0x12ada0,_0x30408d=new _0x18847f(this[_0x342b36(0xd4)]);return _0x30408d[_0x342b36(0x9c)]({'attributes':{'class':this[_0x342b36(0x86)][_0x342b36(0xd8)][_0x342b36(0x109)]}}),this[_0x342b36(0xff)][_0x342b36(0xf1)](_0x30408d),_0x30408d;}[_0x12ada0(0xe5)](){const _0x494686=_0x12ada0;if(this[_0x494686(0x97)]&&(this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xb6)](),this[_0x494686(0xf4)][_0x494686(0x9e)]>0x0)){this[_0x494686(0xf4)][_0x494686(0xe1)](_0x228f86=>{const _0x344823=_0x494686;_0x228f86[_0x344823(0x8f)]();});const _0xf65a3f=new _0x86860d(this[_0x494686(0xd4)]);_0xf65a3f[_0x494686(0xa8)]({'tag':_0x494686(0x81),'attributes':{'class':this[_0x494686(0x86)][_0x494686(0xd8)][_0x494686(0x8e)]},'children':this[_0x494686(0xf4)]}),this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xf1)](_0xf65a3f);}}[_0x12ada0(0x8c)](){const _0x4b95e4=_0x12ada0;this[_0x4b95e4(0xb9)][_0x4b95e4(0x8b)]?this[_0x4b95e4(0xe4)]():this[_0x4b95e4(0xa4)]();}[_0x12ada0(0xfb)](){const _0x129237=_0x12ada0,_0x5af010=this[_0x129237(0xf4)][_0x129237(0x9e)]>0x0;this[_0x129237(0xb9)]?.[_0x129237(0xad)]&&(this[_0x129237(0xb9)][_0x129237(0xad)][_0x129237(0xac)][_0x129237(0xca)]=_0x5af010?'':_0x129237(0xaf));}[_0x12ada0(0xcb)](){const _0x4ce6cf=_0x12ada0;this[_0x4ce6cf(0xb9)]?.[_0x4ce6cf(0x8b)]&&this[_0x4ce6cf(0x97)]?.[_0x4ce6cf(0x79)]&&this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)]&&this[_0x4ce6cf(0x97)][_0x4ce6cf(0xd2)]({'target':this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)],'limiter':document[_0x4ce6cf(0x93)](_0x4ce6cf(0xd1))});}[_0x12ada0(0x9b)](_0x187e84){const _0x153492=_0x12ada0,_0x50e9fe=this[_0x153492(0xae)]?.[_0x153492(0x101)][_0x153492(0x95)]()||_0x153492(0x81),_0x4307e5=this[_0x153492(0xae)]?.[_0x153492(0xc0)];if(_0x4307e5){const _0x5d0fee=_0x4307e5[0x0]||'',_0xc39b5b=_0x187e84[_0x153492(0x93)]('.'+_0x5d0fee),_0x4b662a=_0x187e84[_0x153492(0x93)](_0x50e9fe);return _0xc39b5b||_0x4b662a||_0x187e84;}return _0x187e84[_0x153492(0x93)](_0x50e9fe)||_0x187e84;}[_0x12ada0(0xcc)](){const _0x361b21=_0x12ada0,_0x3375e6=this[_0x361b21(0xa0)]?.[_0x361b21(0xad)]||this[_0x361b21(0xae)];if(!_0x3375e6)return an;const _0x17d0c9=window[_0x361b21(0xf7)](_0x3375e6)[_0x361b21(0xdf)];if(_0x361b21(0xa9)===_0x17d0c9||_0x361b21(0xbd)===_0x17d0c9||!_0x17d0c9){const _0x778382=_0x3375e6[_0x361b21(0x104)];if(_0x778382){const _0x3df5df=window[_0x361b21(0xf7)](_0x778382);return _0x361b21(0xa9)!==_0x3df5df[_0x361b21(0xdf)]?_0x3df5df[_0x361b21(0xdf)]:an;}return an;}return _0x17d0c9;}[_0x12ada0(0x83)](_0x4a5bc7,_0x442c48){const _0x544890=_0x12ada0;this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]&&_0x4a5bc7[_0x544890(0xc0)][_0x544890(0xf1)](this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xdf)]=_0x442c48,_0x4a5bc7[_0x544890(0xac)][_0x544890(0xab)]=_0x544890(0xb5),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x100)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xf9)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x7e)]='0',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xbf)]=_0x544890(0xaf),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x103)]='-1',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xc8)]=_0x544890(0xe0),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xca)]=_0x544890(0x7a),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xb0)]=_0x544890(0x84);}[_0x12ada0(0xe6)](_0x881179){const _0x4b6670=_0x12ada0;_0x881179[_0x4b6670(0xe1)](({element:_0x264ec6,originalDisplay:_0x2d0f9d,originalVisibility:_0x42186a})=>{const _0x3a1faa=_0x4b6670;_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xca)]=_0x2d0f9d,_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xc8)]=_0x42186a;});}[_0x12ada0(0xbb)](_0x36daf3){const _0xc7a6ad=_0x12ada0,_0x4021a1=[];let _0x17f624=_0x36daf3;for(;_0x17f624&&_0x17f624!==document[_0xc7a6ad(0xb8)];){const _0xfcf29d=window[_0xc7a6ad(0xf7)](_0x17f624);_0xc7a6ad(0xaf)!==_0xfcf29d[_0xc7a6ad(0xca)]&&_0xc7a6ad(0xc7)!==_0xfcf29d[_0xc7a6ad(0xc8)]||(_0x4021a1[_0xc7a6ad(0xc3)]({'element':_0x17f624,'originalDisplay':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)],'originalVisibility':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]}),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)]=_0xc7a6ad(0xf6),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]=_0xc7a6ad(0xee)),_0x17f624=_0x17f624[_0xc7a6ad(0x104)];}return _0x4021a1;}[_0x12ada0(0xd9)](){const _0x718e5c=_0x12ada0;let _0x1d7393,_0x53ceb6;return this[_0x718e5c(0xa0)]?.[_0x718e5c(0xad)]?(_0x1d7393=this[_0x718e5c(0xa0)][_0x718e5c(0xad)][_0x718e5c(0xb4)](!0x0),_0x53ceb6=this[_0x718e5c(0x9b)](_0x1d7393)):(_0x1d7393=document[_0x718e5c(0x94)](_0x718e5c(0x81)),_0x53ceb6=_0x1d7393),{'calculationContainer':_0x1d7393,'targetContainer':_0x53ceb6};}[_0x12ada0(0xc1)](){const _0x3b315c=_0x12ada0,{calculationContainer:_0x3f54bc,targetContainer:_0x19e00f}=this[_0x3b315c(0xd9)](),_0x4284af=this[_0x3b315c(0xcc)]();this[_0x3b315c(0x83)](_0x3f54bc,_0x4284af);const _0x46d5f4=this[_0x3b315c(0xa0)]?.[_0x3b315c(0xad)]||this[_0x3b315c(0xae)],_0x49bbd2=_0x46d5f4?.[_0x3b315c(0x104)];_0x49bbd2?_0x49bbd2[_0x3b315c(0xfe)](_0x3f54bc):document[_0x3b315c(0xb8)][_0x3b315c(0xfe)](_0x3f54bc),_0x3f54bc[_0x3b315c(0xf2)]=_0x19e00f;const _0x462c04=this[_0x3b315c(0xbb)](_0x49bbd2||null);return _0x3f54bc[_0x3b315c(0x99)],_0x3f54bc[_0x3b315c(0x8a)]=_0x462c04,_0x3f54bc;}[_0x12ada0(0x7f)](_0x4021fa,_0x22836c){const _0x35df06=_0x12ada0,_0xd5fc4f=_0x4021fa[_0x35df06(0xf2)]||_0x4021fa,_0x161a62=[],{rowCount:_0xff3591}=this[_0x35df06(0xdb)](_0xd5fc4f,_0x22836c);if(_0xff3591<=this[_0x35df06(0x86)][_0x35df06(0x78)])return _0x161a62;const _0x5ad543=_0x22836c[_0x35df06(0x92)]();for(;_0x5ad543[_0x35df06(0x9e)]>0x0;){if(this[_0x35df06(0xd0)](_0x4021fa,_0xd5fc4f,_0x5ad543)){const _0x495d43=_0x22836c[_0x35df06(0xd3)](_0x49a89a=>!_0x5ad543[_0x35df06(0xeb)](_0x49a89a));_0x161a62[_0x35df06(0xc3)](..._0x495d43);break;}if(!_0x5ad543[_0x35df06(0xda)]())break;}return _0x161a62;}[_0x12ada0(0xdb)](_0x12fa24,_0x5819fe){const _0x354093=_0x12ada0;_0x12fa24[_0x354093(0x8d)]='',_0x5819fe[_0x354093(0xe1)](_0x29b712=>{const _0x432302=_0x354093;if(_0x29b712[_0x432302(0xad)]){const _0x40b7ac=_0x29b712[_0x432302(0xad)][_0x432302(0xb4)](!0x0);_0x12fa24[_0x432302(0xfe)](_0x40b7ac);}}),_0x12fa24[_0x354093(0x99)];const _0xb99e34=_0x12fa24[_0x354093(0xea)],_0x2aa3f2=[];return Array[_0x354093(0xce)](_0xb99e34)[_0x354093(0xe1)](_0xaa8421=>{const _0x41c2b3=_0x354093,_0x11e1b2=_0xaa8421[_0x41c2b3(0x88)]()[_0x41c2b3(0x100)];_0x2aa3f2[_0x41c2b3(0xa5)](_0x395440=>Math[_0x41c2b3(0xdd)](_0x395440-_0x11e1b2)<this[_0x41c2b3(0x86)][_0x41c2b3(0xc9)])||_0x2aa3f2[_0x41c2b3(0xc3)](_0x11e1b2);}),{'rowCount':_0x2aa3f2[_0x354093(0x9e)]};}[_0x12ada0(0xfa)](){const _0x3bb01c=_0x12ada0,_0x59fdb1=document[_0x3bb01c(0x94)](_0x3bb01c(0x9d));return _0x59fdb1[_0x3bb01c(0xcf)]=this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xc5)],this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]&&_0x59fdb1[_0x3bb01c(0xc0)][_0x3bb01c(0xf1)](this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]),_0x59fdb1[_0x3bb01c(0xa2)]=_0x3bb01c(0xb3),_0x59fdb1;}[_0x12ada0(0xd0)](_0x31cca5,_0x22daa4,_0x350794){const _0x225235=_0x12ada0;this[_0x225235(0xdb)](_0x22daa4,_0x350794);const _0x9701c7=this[_0x225235(0xfa)]();_0x31cca5[_0x225235(0xfe)](_0x9701c7),_0x31cca5[_0x225235(0x99)];const _0x102d6e=[..._0x22daa4[_0x225235(0xea)],_0x9701c7],_0x48150d=[];_0x102d6e[_0x225235(0xe1)](_0x592d16=>{const _0x37004c=_0x225235,_0x37f180=_0x592d16[_0x37004c(0x88)]()[_0x37004c(0x100)];_0x48150d[_0x37004c(0xa5)](_0x3d317b=>Math[_0x37004c(0xdd)](_0x3d317b-_0x37f180)<this[_0x37004c(0x86)][_0x37004c(0xc9)])||_0x48150d[_0x37004c(0xc3)](_0x37f180);});const _0x2f7ea2=_0x48150d[_0x225235(0x9e)];return _0x9701c7[_0x225235(0xa1)](),_0x2f7ea2<=this[_0x225235(0x86)][_0x225235(0x78)];}[_0x12ada0(0x98)](_0x4be4d5,_0x425631){const _0x4730cd=_0x12ada0;this[_0x4730cd(0x89)][_0x4730cd(0xb6)](),this[_0x4730cd(0xf4)][_0x4730cd(0xb6)](),_0x4be4d5[_0x4730cd(0xe1)](_0x4a5903=>{const _0x352361=_0x4730cd;_0x425631[_0x352361(0xeb)](_0x4a5903)?this[_0x352361(0xf4)][_0x352361(0xf1)](_0x4a5903):this[_0x352361(0x89)][_0x352361(0xf1)](_0x4a5903);});}[_0x12ada0(0xed)](_0x247f4d){const _0x4f00f5=_0x12ada0;if(_0x247f4d>0x0&&!this[_0x4f00f5(0xb9)]&&this[_0x4f00f5(0x108)](),_0x247f4d>0x0&&this[_0x4f00f5(0xb9)]){const _0xace2c4=''+this[_0x4f00f5(0x86)][_0x4f00f5(0x107)]+(_0x247f4d<0x63?_0x247f4d:'99');this[_0x4f00f5(0xb9)][_0x4f00f5(0x7d)]=_0xace2c4;}this[_0x4f00f5(0xe5)](),this[_0x4f00f5(0xfb)](),this[_0x4f00f5(0xcb)]();}[_0x12ada0(0xb2)](_0x17a940,_0x12ae17){const _0xc4ff31=_0x12ada0;this[_0xc4ff31(0x98)](_0x17a940,_0x12ae17),this[_0xc4ff31(0xed)](_0x12ae17[_0xc4ff31(0x9e)]);}[_0x12ada0(0xe9)](){const _0x496ce4=_0x12ada0;this[_0x496ce4(0xae)]&&_0x496ce4(0xe3)!=typeof IntersectionObserver&&(this[_0x496ce4(0xe8)]=new IntersectionObserver(_0x245c17=>{const _0x1044c1=_0x496ce4;_0x245c17[0x0][_0x1044c1(0xbc)]&&this[_0x1044c1(0xf8)]&&requestAnimationFrame(()=>{const _0x1a165f=_0x1044c1;this[_0x1a165f(0x9a)]();});},{'threshold':0.01,'rootMargin':_0x496ce4(0xdc)}),this[_0x496ce4(0xe8)][_0x496ce4(0xaa)](this[_0x496ce4(0xae)]));}[_0x12ada0(0x106)](){const _0x180e8e=_0x12ada0;if(!this[_0x180e8e(0xae)])return!0x1;if(!this[_0x180e8e(0xae)][_0x180e8e(0xa6)])return!0x1;const _0x3712a1=this[_0x180e8e(0xae)][_0x180e8e(0x88)]();if(0x0===_0x3712a1[_0x180e8e(0xdf)]||0x0===_0x3712a1[_0x180e8e(0xf3)])return!0x1;const _0x22cbac=window[_0x180e8e(0xc2)]||document[_0x180e8e(0x7c)][_0x180e8e(0xfd)],_0x16700f=window[_0x180e8e(0x80)]||document[_0x180e8e(0x7c)][_0x180e8e(0x105)],_0x11a125=0xc8;return _0x3712a1[_0x180e8e(0xb1)]>=-0xc8&&_0x3712a1[_0x180e8e(0x100)]<=_0x22cbac+_0x11a125&&_0x3712a1[_0x180e8e(0xa7)]>=-0xc8&&_0x3712a1[_0x180e8e(0xf9)]<=_0x16700f+_0x11a125;}}
|