@ckeditor/ckeditor5-ai 47.6.0-alpha.9 → 47.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/aiadapter.js +1 -1
  7. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  8. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  9. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  10. package/src/aiassistant/aiassistant.js +1 -1
  11. package/src/aiassistant/aiassistantediting.js +1 -1
  12. package/src/aiassistant/aiassistantui.js +1 -1
  13. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  14. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformview.js +1 -1
  17. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  19. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  20. package/src/aiballoon/aiballoon.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatballoon.js +1 -1
  23. package/src/aichat/aichatcontroller.js +1 -1
  24. package/src/aichat/aichatui.js +1 -1
  25. package/src/aichat/model/aichatcontext.js +1 -1
  26. package/src/aichat/ui/aichatballoonview.js +1 -1
  27. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  28. package/src/aichat/ui/aichatheaderview.js +1 -1
  29. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  35. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichathistory/aichathistory.js +1 -1
  42. package/src/aichathistory/aichathistorycontroller.js +1 -1
  43. package/src/aichathistory/aichathistoryui.js +1 -1
  44. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  45. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  46. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  47. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  48. package/src/aicore/aiconnector.js +1 -1
  49. package/src/aicore/aiediting.js +1 -1
  50. package/src/aicore/model/aiinteraction.js +1 -1
  51. package/src/aicore/model/aimodels.js +1 -1
  52. package/src/aicore/model/aireply.js +1 -1
  53. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  54. package/src/aicore/ui/aidisclaimerview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  57. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  58. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  59. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  63. package/src/aicore/utils/createresizebutton.js +1 -1
  64. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  65. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  66. package/src/aieditorintegration/aieditorintegration.js +1 -1
  67. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  68. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  69. package/src/aiquickactions/aiquickactions.js +1 -1
  70. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  71. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  72. package/src/aiquickactions/aiquickactionsui.js +1 -1
  73. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  76. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  77. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  78. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  79. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  80. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  81. package/src/aireviewcore/aireviewcoreui.js +1 -1
  82. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  83. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  84. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  85. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  86. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  87. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  88. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  89. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  90. package/src/aireviewmode/aireviewmode.js +1 -1
  91. package/src/aireviewmode/aireviewmodeui.js +1 -1
  92. package/src/aitabs/aitabs.js +1 -1
  93. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  94. package/src/aitranslate/aitranslate.js +1 -1
  95. package/src/aitranslate/aitranslatecontroller.js +1 -1
  96. package/src/aitranslate/aitranslateui.js +1 -1
  97. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  98. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5410a2=_0x17a0;(function(_0x741189,_0x46f39d){const _0x1ce19c=_0x17a0,_0xac5593=_0x741189();while(!![]){try{const _0x17e6d5=parseInt(_0x1ce19c(0x152))/0x1+parseInt(_0x1ce19c(0x188))/0x2+parseInt(_0x1ce19c(0x19f))/0x3+-parseInt(_0x1ce19c(0x160))/0x4+-parseInt(_0x1ce19c(0x180))/0x5*(parseInt(_0x1ce19c(0x144))/0x6)+-parseInt(_0x1ce19c(0x183))/0x7+parseInt(_0x1ce19c(0x120))/0x8;if(_0x17e6d5===_0x46f39d)break;else _0xac5593['push'](_0xac5593['shift']());}catch(_0x522557){_0xac5593['push'](_0xac5593['shift']());}}}(_0x83d5,0x8593a));function _0x83d5(){const _0x4962f2=['string','_conversationContextItems','sourceResourcesLoaded','data','_removeContextItem','text/html','_toggleAddCurrentDocumentOptionVisibility','_updateResourceInContextState','uploadFile','abortController','isReadOnly','uploadUrl','_ownerId','sources','mcpServerName','getId','getDocument','addToolItemToContext','_isResourceInContext','5849424yqqDUt','updateCurrentDocument','enabled','forEach','_ongoingUploadOperations','uploadProgressChanged','attributes','ai-chat-url-upload-failed','object\x20with\x20content\x20and\x20type\x20properties','current-document','_setAddContextOptionsDefaultState','_addContextItem','url','ai-chat-file-upload-failed','label','fetchDocument','get','URL','files-','removeSelectionFromContext','addSelectionToContext','HTML','_startUploadOperation','has','contextItemRemoved','addCurrentDocumentToContext','error','abort','_addToConversationContextItem','resourceStateChanged','contextItemAdded','ai-chat-context-unsupported-type','addResourceToContext','addUrlToContext','text/markdown','find','24EqqLLF','uploadDocument','resources','version','addToConversationContext','start','clearPendingContextItems','FILE','file-','type','filter','sessionId','text/plain','message','357629vrKdUK','Current\x20document','_convertTextResourceToFile','_config','urls','isSelectionInContext','length','removeFromContext','size','ai-chat-source-not-found','ai-request-aborted','DOCUMENT','push','getData','1491652MchRSK','code','_findSourceIdsByResourceId','loadSourceResources','getSentContextItems','customItems','ai-chat-resource-no-data','isCurrentDocumentInContext','document','SELECTION','hidden','_finishContextItemLoading','getResources','_mapContextItemToRequestData','files','fire','object','addFilesToContext','addContextOptionsChanged','content','startsWith','MARKDOWN','contextSent','substring','selection','isCurrentDocumentInConversation','ai-chat-document-upload-failed','uiId','from','_connector','all','contextItemLoadingEnded','813605wkzGDX','_getCustomSourcesInitialState','isInContext','3984239LKfBfp','_addContextOptionsState','TOOL','File','_ongoingUploads','1215534rOXToY','set','getPendingContextItems','init','_createContextItemFromContent','ai-chat-source-resources-load-failed','TEXT','delete','toolName','values','resourceId','ai-chat-resource-load-failed','end','mapContextItemsToRequestData','url-','name','populateFromMessage','stack','isHidden','map','ai-chat-context-invalid-data','_finishUploadOperation','_pendingContextItems','1330590XEuVas'];_0x83d5=function(){return _0x4962f2;};return _0x83d5();}function _0x17a0(_0x1ef72e,_0x4c1cdd){const _0x83d52=_0x83d5();return _0x17a0=function(_0x17a0b1,_0x5d614a){_0x17a0b1=_0x17a0b1-0x120;let _0x27305a=_0x83d52[_0x17a0b1];return _0x27305a;},_0x17a0(_0x1ef72e,_0x4c1cdd);}import{CKEditorError as _0x3da68f,ObservableMixin as _0x32f0a6,uid as _0x59bbb2}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3500c4,AIContextTextResourceType as _0x5d4b28}from'../../aicore/model/aicontext.js';import{escape as _0x54e7ad}from'es-toolkit/compat';import{errorsMap as _0x126724}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5410a2(0x13e),_0x5410a2(0x138),_0x5410a2(0x17f),_0x5410a2(0x176),_0x5410a2(0x13a),_0x5410a2(0x172),_0x5410a2(0x1a2),_0x5410a2(0x13d),_0x5410a2(0x125)];export class AIChatContext extends _0x32f0a6(){[_0x5410a2(0x17d)];[_0x5410a2(0x155)];[_0x5410a2(0x1ac)];constructor({connector:_0x10008f,config:_0x3b416d,ownerId:_0x5ce0f1}){const _0x4edf91=_0x5410a2;super(),this[_0x4edf91(0x17d)]=_0x10008f,this[_0x4edf91(0x155)]=_0x3b416d,this[_0x4edf91(0x1ac)]=_0x5ce0f1;}[_0x5410a2(0x18b)](){const _0x889fd1=_0x5410a2;this[_0x889fd1(0x19e)]=new Map(),this[_0x889fd1(0x1a1)]=new Map(),this[_0x889fd1(0x187)]=new Map(),this[_0x889fd1(0x124)]=new Map(),this[_0x889fd1(0x12a)]();}[_0x5410a2(0x18a)](){const _0x2e830b=_0x5410a2;return this[_0x2e830b(0x19e)];}async[_0x5410a2(0x198)](_0x313e31){const _0x4d184c=_0x5410a2,_0x44181e=await this[_0x4d184c(0x18c)](_0x313e31);return this[_0x4d184c(0x13c)](_0x44181e),_0x4d184c(0x129)===_0x44181e[_0x4d184c(0x17b)]&&this[_0x4d184c(0x1a6)](),_0x44181e;}async[_0x5410a2(0x18c)](_0x1f3f61){const _0x108acb=_0x5410a2;if(_0x1f3f61[_0x108acb(0x14d)]===_0x3500c4[_0x108acb(0x15d)]){const _0x1fd444=await this[_0x108acb(0x17d)][_0x108acb(0x12f)](this[_0x108acb(0x1ac)],_0x1f3f61['id'])[_0x108acb(0x1b0)]();return{'id':_0x108acb(0x129),'uiId':_0x108acb(0x129),'label':_0x108acb(0x153),'type':_0x1f3f61[_0x108acb(0x14d)],'content':_0x1fd444[_0x108acb(0x173)],'hidden':this[_0x108acb(0x1a1)][_0x108acb(0x137)](_0x108acb(0x129)),'version':_0x1fd444[_0x108acb(0x126)]?.[_0x108acb(0x147)],'sessionId':_0x1fd444[_0x108acb(0x126)]?.[_0x108acb(0x14f)]};}if(_0x1f3f61[_0x108acb(0x14d)]===_0x3500c4[_0x108acb(0x185)])return{'id':_0x1f3f61['id'],'uiId':_0x1f3f61['id'],'label':_0x1f3f61[_0x108acb(0x1a3)]?.[_0x108acb(0x12e)]||_0x1f3f61['id'],'type':_0x3500c4[_0x108acb(0x185)],'mcpServerName':_0x1f3f61[_0x108acb(0x1ae)],'toolName':_0x1f3f61[_0x108acb(0x190)],'data':_0x1f3f61[_0x108acb(0x1a3)]||{}};return{'id':_0x1f3f61['id'],'uiId':_0x1f3f61['id'],'label':_0x1f3f61[_0x108acb(0x126)]?.[_0x108acb(0x12e)]||_0x1f3f61[_0x108acb(0x197)]||_0x1f3f61[_0x108acb(0x12c)]||_0x1f3f61['id'],'type':_0x1f3f61[_0x108acb(0x14d)],..._0x1f3f61?.[_0x108acb(0x126)]?.[_0x108acb(0x192)]?{'resourceId':_0x1f3f61[_0x108acb(0x126)]?.[_0x108acb(0x192)]}:{}};}[_0x5410a2(0x164)](){const _0x1b0a48=_0x5410a2;return new Map(this[_0x1b0a48(0x1a1)]);}[_0x5410a2(0x159)](_0x255cff){const _0x2eefcb=_0x5410a2,_0x535365=this[_0x2eefcb(0x19e)][_0x2eefcb(0x130)](_0x255cff);_0x535365?.[_0x2eefcb(0x1aa)]||this[_0x2eefcb(0x1a4)](_0x255cff);}[_0x5410a2(0x14a)](){const _0x21540a=_0x5410a2;if(0x0===this[_0x21540a(0x19e)][_0x21540a(0x15a)])return;for(const _0x370639 of this[_0x21540a(0x19e)][_0x21540a(0x191)]())this[_0x21540a(0x1a4)](_0x370639[_0x21540a(0x17b)]);const _0xe94d52=this[_0x21540a(0x1a1)][_0x21540a(0x130)](_0x21540a(0x129))||this[_0x21540a(0x19e)][_0x21540a(0x130)](_0x21540a(0x129));_0xe94d52&&this[_0x21540a(0x12b)]({..._0xe94d52,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5410a2(0x148)](_0x51fb9e){const _0x13e4c9=_0x5410a2;for(const _0x56e784 of _0x51fb9e[_0x13e4c9(0x191)]())this[_0x13e4c9(0x13c)](_0x56e784);this[_0x13e4c9(0x14a)](),this[_0x13e4c9(0x16f)](_0x13e4c9(0x176),{'contextItems':Array[_0x13e4c9(0x17c)](this[_0x13e4c9(0x164)]()[_0x13e4c9(0x191)]())});}[_0x5410a2(0x167)](){const _0x110a00=_0x5410a2;return this[_0x110a00(0x19e)][_0x110a00(0x137)](_0x110a00(0x129));}[_0x5410a2(0x157)](){const _0x409212=_0x5410a2;return this[_0x409212(0x19e)][_0x409212(0x137)](_0x409212(0x178));}[_0x5410a2(0x179)](){const _0x573866=_0x5410a2;return this[_0x573866(0x1a1)][_0x573866(0x137)](_0x573866(0x129));}static[_0x5410a2(0x195)](_0x1eb8ca){const _0x5c2428=_0x5410a2;return Array[_0x5c2428(0x17c)](_0x1eb8ca[_0x5c2428(0x191)]())[_0x5c2428(0x19b)](_0x251a78=>this[_0x5c2428(0x16d)](_0x251a78))[_0x5c2428(0x14e)](_0x42e3c6=>null!==_0x42e3c6);}async[_0x5410a2(0x171)](_0x2b5e82,_0x5a1d6a,_0x5e95f8=_0x3500c4[_0x5410a2(0x14b)]){const _0x54a95a=_0x5410a2,_0x578d5a=_0x54a95a(0x132)+_0x59bbb2();this[_0x54a95a(0x136)](_0x578d5a);try{await Promise[_0x54a95a(0x17e)](_0x2b5e82[_0x54a95a(0x19b)](async _0x26c98c=>{const _0x58e85c=_0x54a95a,_0x414571=_0x58e85c(0x14c)+_0x59bbb2(),_0x26b79a=_0x54e7ad(_0x26c98c[_0x58e85c(0x197)]);try{this[_0x58e85c(0x12b)]({'type':_0x5e95f8,'label':_0x5a1d6a?.[_0x58e85c(0x12e)]||_0x26b79a,'uiId':_0x414571,'resourceId':_0x5a1d6a?.[_0x58e85c(0x192)]},!0x0);const _0x555d33=this[_0x58e85c(0x17d)][_0x58e85c(0x1a8)](this[_0x58e85c(0x1ac)],_0x26c98c,_0x5a1d6a);this[_0x58e85c(0x187)][_0x58e85c(0x189)](_0x414571,_0x555d33[_0x58e85c(0x1a9)]);const {id:_0x4f1c22}=await _0x555d33[_0x58e85c(0x1af)]();this[_0x58e85c(0x187)][_0x58e85c(0x18f)](_0x414571),this[_0x58e85c(0x16b)]({'type':_0x5e95f8,'id':_0x4f1c22,'label':_0x5a1d6a?.[_0x58e85c(0x12e)]||_0x26b79a,'uiId':_0x414571,'resourceId':_0x5a1d6a?.[_0x58e85c(0x192)]},!0x1);}catch(_0x46cae7){this[_0x58e85c(0x187)][_0x58e85c(0x18f)](_0x414571);if(!(_0x46cae7 instanceof _0x3da68f&&_0x46cae7[_0x58e85c(0x151)][_0x58e85c(0x174)](_0x58e85c(0x15c)))){const _0x1e3197=_0x126724[_0x58e85c(0x130)](_0x46cae7[_0x58e85c(0x161)])||_0x58e85c(0x12d),_0x4c44e3=new _0x3da68f(_0x1e3197,null,{'fileName':_0x26b79a,..._0x46cae7});_0x4c44e3[_0x58e85c(0x199)]=_0x46cae7[_0x58e85c(0x199)],this[_0x58e85c(0x16f)](_0x58e85c(0x13a),{'error':_0x4c44e3});}this[_0x58e85c(0x1a4)](_0x414571);}}));}finally{this[_0x54a95a(0x19d)](_0x578d5a);}}[_0x5410a2(0x139)](_0x36f734){const _0x5b85e2=_0x5410a2;if(this[_0x5b85e2(0x167)]()||!this[_0x5b85e2(0x184)][_0x5b85e2(0x168)][_0x5b85e2(0x122)])return;const _0x4aa79d={'type':_0x3500c4[_0x5b85e2(0x15d)],'uiId':_0x5b85e2(0x129),'label':_0x36f734,'isReadOnly':this[_0x5b85e2(0x1a1)][_0x5b85e2(0x137)](_0x5b85e2(0x129)),'hidden':this[_0x5b85e2(0x1a1)][_0x5b85e2(0x137)](_0x5b85e2(0x129))};this[_0x5b85e2(0x12b)](_0x4aa79d);}async[_0x5410a2(0x121)](_0x155c30,_0xe38652,_0x44c13a,_0x5914af){const _0xe60cd=_0x5410a2,_0x67fbd9=this[_0xe60cd(0x19e)][_0xe60cd(0x130)](_0xe60cd(0x129));if(_0x67fbd9&&_0x155c30){_0x67fbd9[_0xe60cd(0x178)]=_0x5914af?_0x5914af[_0xe60cd(0x19b)](_0x38c4be=>({'start':_0x38c4be[_0xe60cd(0x149)],'end':_0x38c4be[_0xe60cd(0x194)]})):[];try{if(_0x67fbd9[_0xe60cd(0x147)]===_0xe38652)return;const {id:_0x2b7399}=await this[_0xe60cd(0x17d)][_0xe60cd(0x145)](this[_0xe60cd(0x1ac)],_0x155c30,{'version':_0xe38652,'sessionId':_0x44c13a})[_0xe60cd(0x1af)]();_0x67fbd9['id']=_0x2b7399,_0x67fbd9[_0xe60cd(0x173)]=_0x155c30,_0x67fbd9[_0xe60cd(0x147)]=_0xe38652,_0x67fbd9[_0xe60cd(0x14f)]=_0x44c13a;}catch(_0x39fef6){const _0x1e48e7=new _0x3da68f(_0xe60cd(0x17a),null);_0x1e48e7[_0xe60cd(0x199)]=_0x39fef6[_0xe60cd(0x199)],this[_0xe60cd(0x16f)](_0xe60cd(0x13a),{'error':_0x1e48e7});}}}[_0x5410a2(0x134)](_0x431274){const _0x1d59b6=_0x5410a2;this[_0x1d59b6(0x12b)]({'type':_0x3500c4[_0x1d59b6(0x169)],'label':_0x431274,'uiId':_0x1d59b6(0x178),'content':_0x431274});}[_0x5410a2(0x133)](){const _0x315ce6=_0x5410a2;this[_0x315ce6(0x1a4)](_0x315ce6(0x178));}async[_0x5410a2(0x141)](_0x5516c8,_0x49bdf8){const _0x442d3c=_0x5410a2,_0x3f4760=_0x442d3c(0x196)+_0x59bbb2();this[_0x442d3c(0x136)](_0x3f4760);const _0x56bbfb=_0x442d3c(0x196)+_0x59bbb2();try{this[_0x442d3c(0x12b)]({'type':_0x3500c4[_0x442d3c(0x131)],'label':_0x49bdf8?.[_0x442d3c(0x12e)]||_0x5516c8,'uiId':_0x56bbfb,'resourceId':_0x49bdf8?.[_0x442d3c(0x192)]},!0x0);const _0x1ddfaf=this[_0x442d3c(0x17d)][_0x442d3c(0x1ab)](this[_0x442d3c(0x1ac)],_0x5516c8,_0x49bdf8);this[_0x442d3c(0x187)][_0x442d3c(0x189)](_0x56bbfb,_0x1ddfaf[_0x442d3c(0x1a9)]);const {id:_0x3ec859}=await _0x1ddfaf[_0x442d3c(0x1af)]();this[_0x442d3c(0x187)][_0x442d3c(0x18f)](_0x56bbfb),this[_0x442d3c(0x16b)]({'type':_0x3500c4[_0x442d3c(0x131)],'id':_0x3ec859,'label':_0x49bdf8?.[_0x442d3c(0x12e)]||_0x5516c8,'uiId':_0x56bbfb,'resourceId':_0x49bdf8?.[_0x442d3c(0x192)]},!0x1);}catch(_0x3551da){this[_0x442d3c(0x187)][_0x442d3c(0x18f)](_0x56bbfb),(_0x3551da[_0x442d3c(0x151)][_0x442d3c(0x174)](_0x442d3c(0x15c))||this[_0x442d3c(0x16f)](_0x442d3c(0x13a),{'error':new _0x3da68f(_0x442d3c(0x127),this,{'url':_0x5516c8,'originalError':_0x3551da}),'url':_0x5516c8}),this[_0x442d3c(0x1a4)](_0x56bbfb));}finally{this[_0x442d3c(0x19d)](_0x3f4760);}}[_0x5410a2(0x1b1)](_0x250686){const _0x540110=_0x5410a2;_0x250686['id']=_0x250686['id']??_0x59bbb2()[_0x540110(0x177)](0x0,0x15),this[_0x540110(0x19e)][_0x540110(0x189)](_0x250686[_0x540110(0x17b)],_0x250686),this[_0x540110(0x16f)](_0x540110(0x13e),{'contextItem':_0x250686,'isLoading':!0x1});}async[_0x5410a2(0x163)](_0x3ac721,_0x18ec2c,_0x4bd402){const _0x2dba11=_0x5410a2,_0x4db762=this[_0x2dba11(0x184)][_0x2dba11(0x1ad)][_0x2dba11(0x143)](_0x11b78b=>_0x11b78b['id']===_0x3ac721);if(!_0x4db762)return this[_0x2dba11(0x16f)](_0x2dba11(0x13a),{'error':new _0x3da68f(_0x2dba11(0x15b),this,{'sourceId':_0x3ac721}),'sourceId':_0x3ac721}),[];try{const _0x24b81e=(await _0x4db762[_0x2dba11(0x16c)](_0x18ec2c))[_0x2dba11(0x19b)](_0x43d55f=>{const _0x42b798=_0x2dba11,_0x4e30a5=this[_0x42b798(0x1b2)](_0x43d55f['id']);return{..._0x43d55f,'isInContext':_0x4e30a5};});return _0x4db762[_0x2dba11(0x146)]=_0x24b81e,this[_0x2dba11(0x16f)](_0x2dba11(0x1a2),{'sourceId':_0x3ac721,'source':_0x4db762,'resources':_0x24b81e,'uid':_0x4bd402}),_0x24b81e;}catch(_0x45978b){return this[_0x2dba11(0x16f)](_0x2dba11(0x13a),{'error':new _0x3da68f(_0x2dba11(0x18d),this,{'sourceId':_0x3ac721,'originalError':_0x45978b}),'sourceId':_0x3ac721,'sourceLabel':_0x4db762[_0x2dba11(0x12e)]}),[];}}async[_0x5410a2(0x140)](_0x9906b3,_0x237861){const _0x9446a8=_0x5410a2;if(this[_0x9446a8(0x1b2)](_0x237861['id']))return;let _0x2f02fb=_0x237861[_0x9446a8(0x1a3)];if(!_0x2f02fb&&_0x9906b3[_0x9446a8(0x15f)])try{_0x2f02fb=await _0x9906b3[_0x9446a8(0x15f)](_0x237861['id']);}catch(_0x400fc8){return void this[_0x9446a8(0x16f)](_0x9446a8(0x13a),{'error':new _0x3da68f(_0x9446a8(0x193),this,{'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id'],'originalError':_0x400fc8}),'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id']});}if(_0x2f02fb)switch(_0x237861[_0x9446a8(0x14d)]){case _0x3500c4[_0x9446a8(0x131)]:if(_0x9446a8(0x1a0)!=typeof _0x2f02fb)return void this[_0x9446a8(0x16f)](_0x9446a8(0x13a),{'error':new _0x3da68f(_0x9446a8(0x19c),this,{'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id'],'expectedType':_0x9446a8(0x1a0),'actualType':typeof _0x2f02fb}),'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id']});await this[_0x9446a8(0x141)](_0x2f02fb,{'label':_0x237861[_0x9446a8(0x12e)],'resourceId':_0x237861['id']});break;case _0x3500c4[_0x9446a8(0x14b)]:if(!(_0x2f02fb instanceof File))return void this[_0x9446a8(0x16f)](_0x9446a8(0x13a),{'error':new _0x3da68f(_0x9446a8(0x19c),this,{'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id'],'expectedType':_0x9446a8(0x186),'actualType':typeof _0x2f02fb}),'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id']});await this[_0x9446a8(0x171)]([_0x2f02fb],{'label':_0x237861[_0x9446a8(0x12e)],'resourceId':_0x237861['id']});break;case _0x3500c4[_0x9446a8(0x18e)]:if(_0x9446a8(0x170)!=typeof _0x2f02fb||!(_0x9446a8(0x173)in _0x2f02fb)||!(_0x9446a8(0x14d)in _0x2f02fb))return void this[_0x9446a8(0x16f)](_0x9446a8(0x13a),{'error':new _0x3da68f(_0x9446a8(0x19c),this,{'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id'],'expectedType':_0x9446a8(0x128),'actualType':typeof _0x2f02fb}),'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id']});_0x2f02fb=AIChatContext[_0x9446a8(0x154)](_0x2f02fb,_0x237861[_0x9446a8(0x12e)]),await this[_0x9446a8(0x171)]([_0x2f02fb],{'label':_0x237861[_0x9446a8(0x12e)],'resourceId':_0x237861['id']},_0x3500c4[_0x9446a8(0x18e)]);break;case _0x3500c4[_0x9446a8(0x185)]:break;default:this[_0x9446a8(0x16f)](_0x9446a8(0x13a),{'error':new _0x3da68f(_0x9446a8(0x13f),this,{'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id'],'resourceType':_0x237861[_0x9446a8(0x14d)]}),'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id']});}else this[_0x9446a8(0x16f)](_0x9446a8(0x13a),{'error':new _0x3da68f(_0x9446a8(0x166),this,{'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id']}),'resourceId':_0x237861['id'],'sourceId':_0x9906b3['id']});}static[_0x5410a2(0x154)](_0x4e2013,_0x3efe28){const _0x4c6a8d=_0x5410a2;switch(_0x4e2013[_0x4c6a8d(0x14d)]){case _0x5d4b28[_0x4c6a8d(0x175)]:return new File([_0x4e2013[_0x4c6a8d(0x173)]],_0x3efe28,{'type':_0x4c6a8d(0x142)});case _0x5d4b28[_0x4c6a8d(0x135)]:return new File([_0x4e2013[_0x4c6a8d(0x173)]],_0x3efe28,{'type':_0x4c6a8d(0x1a5)});default:return new File([_0x4e2013[_0x4c6a8d(0x173)]],_0x3efe28,{'type':_0x4c6a8d(0x150)});}}static[_0x5410a2(0x16d)](_0x2a965b){const _0x4e939e=_0x5410a2;switch(_0x2a965b[_0x4e939e(0x14d)]){case _0x3500c4[_0x4e939e(0x14b)]:return{'type':_0x3500c4[_0x4e939e(0x14b)],'id':_0x2a965b['id']};case _0x3500c4[_0x4e939e(0x131)]:return{'type':_0x3500c4[_0x4e939e(0x131)],'id':_0x2a965b['id']};case _0x3500c4[_0x4e939e(0x15d)]:return{'type':_0x3500c4[_0x4e939e(0x15d)],'id':_0x2a965b['id'],..._0x2a965b[_0x4e939e(0x178)]?.[_0x4e939e(0x158)]&&{'selection':_0x2a965b[_0x4e939e(0x178)]}};case _0x3500c4[_0x4e939e(0x18e)]:return{'type':_0x3500c4[_0x4e939e(0x14b)],'id':_0x2a965b['id']};case _0x3500c4[_0x4e939e(0x185)]:{const _0x537928=_0x2a965b;return{'type':_0x3500c4[_0x4e939e(0x185)],'mcpServerName':_0x537928[_0x4e939e(0x1ae)],'toolName':_0x537928[_0x4e939e(0x190)],'data':_0x537928[_0x4e939e(0x1a3)],'id':_0x537928['id']};}default:return null;}}[_0x5410a2(0x12b)](_0x1491f8,_0x1d7b66=!0x1){const _0x535e27=_0x5410a2;if(this[_0x535e27(0x19e)][_0x535e27(0x189)](_0x1491f8[_0x535e27(0x17b)],_0x1491f8),_0x1491f8[_0x535e27(0x16a)]||this[_0x535e27(0x16f)](_0x535e27(0x13e),{'contextItem':_0x1491f8,'isLoading':_0x1d7b66}),_0x535e27(0x129)===_0x1491f8[_0x535e27(0x17b)]&&this[_0x535e27(0x1a6)](),_0x1491f8[_0x535e27(0x192)]){const _0x1ed9d=this[_0x535e27(0x162)](_0x1491f8[_0x535e27(0x192)]);_0x1ed9d&&_0x1ed9d[_0x535e27(0x123)](_0x2287a7=>{const _0x339d0a=_0x535e27;this[_0x339d0a(0x1a7)](_0x2287a7,_0x1491f8[_0x339d0a(0x192)],!0x0);});}}[_0x5410a2(0x1a4)](_0x9dbaca){const _0x1c1984=_0x5410a2,_0x4d0bf5=this[_0x1c1984(0x19e)][_0x1c1984(0x130)](_0x9dbaca),_0x2e2f35=this[_0x1c1984(0x187)][_0x1c1984(0x130)](_0x9dbaca);if(_0x2e2f35&&(_0x2e2f35[_0x1c1984(0x13b)](),this[_0x1c1984(0x187)][_0x1c1984(0x18f)](_0x9dbaca)),_0x4d0bf5?.[_0x1c1984(0x192)]){const _0x2f419c=this[_0x1c1984(0x162)](_0x4d0bf5[_0x1c1984(0x192)]);_0x2f419c&&_0x2f419c[_0x1c1984(0x123)](_0x4e73c8=>{const _0x47bc1f=_0x1c1984;this[_0x47bc1f(0x1a7)](_0x4e73c8,_0x4d0bf5[_0x47bc1f(0x192)],!0x1);});}this[_0x1c1984(0x19e)][_0x1c1984(0x18f)](_0x9dbaca),this[_0x1c1984(0x16f)](_0x1c1984(0x138),{'uiId':_0x9dbaca,'type':_0x4d0bf5?.[_0x1c1984(0x14d)]}),_0x1c1984(0x129)===_0x9dbaca&&this[_0x1c1984(0x1a6)]();}[_0x5410a2(0x16b)](_0x3f60c1,_0x1264d1){const _0x4f5aa1=_0x5410a2;if(this[_0x4f5aa1(0x19e)][_0x4f5aa1(0x137)](_0x3f60c1[_0x4f5aa1(0x17b)])&&(this[_0x4f5aa1(0x19e)][_0x4f5aa1(0x189)](_0x3f60c1[_0x4f5aa1(0x17b)],_0x3f60c1),this[_0x4f5aa1(0x16f)](_0x4f5aa1(0x17f),{'contextItem':_0x3f60c1,'isLoading':_0x1264d1}),_0x3f60c1[_0x4f5aa1(0x192)])){const _0x573cd6=this[_0x4f5aa1(0x162)](_0x3f60c1[_0x4f5aa1(0x192)]);_0x573cd6&&_0x573cd6[_0x4f5aa1(0x123)](_0x3d7938=>{const _0xbc2fce=_0x4f5aa1;this[_0xbc2fce(0x1a7)](_0x3d7938,_0x3f60c1[_0xbc2fce(0x192)],!0x0);});}}[_0x5410a2(0x13c)](_0x2e511f){const _0x4ec4f5=_0x5410a2;this[_0x4ec4f5(0x1a1)][_0x4ec4f5(0x189)](_0x2e511f[_0x4ec4f5(0x17b)],_0x2e511f);}[_0x5410a2(0x12a)](){const _0x45b85c=_0x5410a2;this[_0x45b85c(0x184)]={'document':{'enabled':!0x1!==this[_0x45b85c(0x155)]?.[_0x45b85c(0x168)]?.[_0x45b85c(0x122)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x45b85c(0x155)]?.[_0x45b85c(0x156)]?.[_0x45b85c(0x122)]},'files':{'enabled':!0x1!==this[_0x45b85c(0x155)]?.[_0x45b85c(0x16e)]?.[_0x45b85c(0x122)]},'sources':this[_0x45b85c(0x181)](),'customItems':this[_0x45b85c(0x155)]?.[_0x45b85c(0x165)]?.[_0x45b85c(0x19b)](_0x262618=>({..._0x262618,'enabled':!0x0}))??[]},this[_0x45b85c(0x16f)](_0x45b85c(0x172),{'options':this[_0x45b85c(0x184)]});}[_0x5410a2(0x181)](){const _0x2f6ddf=_0x5410a2;return this[_0x2f6ddf(0x155)]?.[_0x2f6ddf(0x1ad)]?.[_0x2f6ddf(0x19b)](_0x326330=>({..._0x326330,'resources':[]}))??[];}[_0x5410a2(0x1a6)](){const _0x122a28=_0x5410a2,_0x3ba364=this[_0x122a28(0x167)]()||this[_0x122a28(0x179)]();this[_0x122a28(0x184)][_0x122a28(0x168)][_0x122a28(0x19a)]=_0x3ba364,this[_0x122a28(0x16f)](_0x122a28(0x172),{'options':this[_0x122a28(0x184)]});}[_0x5410a2(0x1b2)](_0x32bff3){const _0x1bbab7=_0x5410a2;for(const _0x1290dc of this[_0x1bbab7(0x19e)][_0x1bbab7(0x191)]())if(_0x1290dc[_0x1bbab7(0x192)]===_0x32bff3)return!0x0;for(const _0x7a933c of this[_0x1bbab7(0x1a1)][_0x1bbab7(0x191)]())if(_0x7a933c[_0x1bbab7(0x192)]===_0x32bff3)return!0x0;return!0x1;}[_0x5410a2(0x162)](_0x1ce698){const _0x1d2527=_0x5410a2,_0x5dcf31=[];for(const _0x4ea7d0 of this[_0x1d2527(0x184)][_0x1d2527(0x1ad)]){_0x4ea7d0[_0x1d2527(0x146)][_0x1d2527(0x143)](_0xb6afb1=>_0xb6afb1['id']===_0x1ce698)&&_0x5dcf31[_0x1d2527(0x15e)](_0x4ea7d0['id']);}return 0x0===_0x5dcf31[_0x1d2527(0x158)]?null:_0x5dcf31;}[_0x5410a2(0x1a7)](_0x4e8716,_0x3e79c1,_0x92fe23){const _0x65de27=_0x5410a2,_0x2fa2ba=this[_0x65de27(0x184)][_0x65de27(0x1ad)][_0x65de27(0x143)](_0xf3cd24=>_0xf3cd24['id']===_0x4e8716);if(!_0x2fa2ba)return;const _0x5525a4=_0x2fa2ba[_0x65de27(0x146)][_0x65de27(0x143)](_0x26ee8a=>_0x26ee8a['id']===_0x3e79c1);_0x5525a4&&(_0x5525a4[_0x65de27(0x182)]=_0x92fe23,this[_0x65de27(0x16f)](_0x65de27(0x13d),{'sourceId':_0x4e8716,'resourceId':_0x3e79c1,'isInContext':_0x92fe23}));}[_0x5410a2(0x136)](_0x503a14){const _0x19d4ed=_0x5410a2;this[_0x19d4ed(0x124)][_0x19d4ed(0x189)](_0x503a14,!0x0),this[_0x19d4ed(0x124)][_0x19d4ed(0x15a)]&&this[_0x19d4ed(0x16f)](_0x19d4ed(0x125),{'isUploadInProgress':!0x0});}[_0x5410a2(0x19d)](_0x544a6d){const _0xbb2477=_0x5410a2;this[_0xbb2477(0x124)][_0xbb2477(0x18f)](_0x544a6d),0x0===this[_0xbb2477(0x124)][_0xbb2477(0x15a)]&&this[_0xbb2477(0x16f)](_0xbb2477(0x125),{'isUploadInProgress':!0x1});}}
23
+ const _0x6fe328=_0x440b;(function(_0x11d7af,_0x5b1e0c){const _0x50f9df=_0x440b,_0x3c44b4=_0x11d7af();while(!![]){try{const _0x4b008e=-parseInt(_0x50f9df(0x1bf))/0x1*(-parseInt(_0x50f9df(0x13b))/0x2)+parseInt(_0x50f9df(0x174))/0x3+parseInt(_0x50f9df(0x1b2))/0x4+parseInt(_0x50f9df(0x1a7))/0x5*(-parseInt(_0x50f9df(0x14f))/0x6)+parseInt(_0x50f9df(0x178))/0x7*(parseInt(_0x50f9df(0x15e))/0x8)+-parseInt(_0x50f9df(0x1a0))/0x9+-parseInt(_0x50f9df(0x1b6))/0xa;if(_0x4b008e===_0x5b1e0c)break;else _0x3c44b4['push'](_0x3c44b4['shift']());}catch(_0x369693){_0x3c44b4['push'](_0x3c44b4['shift']());}}}(_0x26ab,0x2b0c4));import{CKEditorError as _0x3a3170,ObservableMixin as _0xa0ab8c,uid as _0xd798f1}from'ckeditor5/src/utils.js';function _0x440b(_0x28c19c,_0x27c984){const _0x26ab66=_0x26ab();return _0x440b=function(_0x440b0b,_0x3d7502){_0x440b0b=_0x440b0b-0x136;let _0x56fe64=_0x26ab66[_0x440b0b];return _0x56fe64;},_0x440b(_0x28c19c,_0x27c984);}import{AIContextItemType as _0x5192a4,AIContextTextResourceType as _0x216793}from'../../aicore/model/aicontext.js';import{escape as _0x30294f}from'es-toolkit/compat';import{errorsMap as _0xf53635}from'../../errorsmap.js';function _0x26ab(){const _0x2503aa=['start','text/html','getResources','sources','mcpServerName','delete','substring','656UqkLsC','url-','addResourceToContext','mapContextItemsToRequestData','ai-request-aborted','text/plain','isSelectionInContext','_config','ai-chat-source-not-found','files','isReadOnly','ai-chat-resource-no-data','text/markdown','uiId','sessionId','abort','toolName','all','isHidden','_addToConversationContextItem','addCurrentDocumentToContext','addToolItemToContext','41565clCuFB','addFilesToContext','getPendingContextItems','getSentContextItems','14679xojofj','data','ai-chat-url-upload-failed','size','_mapContextItemToRequestData','uploadDocument','from','MARKDOWN','label','attributes','getId','uploadUrl','filter','file-','fetchDocument','files-','abortController','removeFromContext','ai-chat-document-upload-failed','resourceId','object\x20with\x20content\x20and\x20type\x20properties','name','_conversationContextItems','URL','addSelectionToContext','stack','ai-chat-context-invalid-data','DOCUMENT','HTML','values','removeSelectionFromContext','get','populateFromMessage','uploadProgressChanged','_startUploadOperation','forEach','_ownerId','_finishContextItemLoading','find','clearPendingContextItems','1134486CixSEA','_setAddContextOptionsDefaultState','length','has','_ongoingUploads','_finishUploadOperation','_pendingContextItems','4540yjMDiL','map','_removeContextItem','_convertTextResourceToFile','startsWith','addContextOptionsChanged','sourceResourcesLoaded','_isResourceInContext','object','_findSourceIdsByResourceId','TEXT','817912UsTwhq','current-document','ai-chat-source-resources-load-failed','resources','788600iprQqK','contextItemAdded','enabled','File','isCurrentDocumentInConversation','contextSent','_createContextItemFromContent','getData','addUrlToContext','1lALXOv','addToConversationContext','isCurrentDocumentInContext','updateCurrentDocument','_connector','document','FILE','set','hidden','TOOL','fire','content','end','selection','getDocument','string','uploadFile','348734yNUOtD','_toggleAddCurrentDocumentOptionVisibility','urls','push','isInContext','message','ai-chat-resource-load-failed','ai-chat-context-unsupported-type','contextItemLoadingEnded','Current\x20document','customItems','loadSourceResources','_getCustomSourcesInitialState','_addContextOptionsState','contextItemRemoved','url','type','ai-chat-file-upload-failed','init','resourceStateChanged','1212QuTRSd','_ongoingUploadOperations','error','SELECTION','code','version','_updateResourceInContextState','_addContextItem'];_0x26ab=function(){return _0x2503aa;};return _0x26ab();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x6fe328(0x1b7),_0x6fe328(0x149),_0x6fe328(0x143),_0x6fe328(0x1bb),_0x6fe328(0x151),_0x6fe328(0x1ac),_0x6fe328(0x1ad),_0x6fe328(0x14e),_0x6fe328(0x199)];export class AIChatContext extends _0xa0ab8c(){[_0x6fe328(0x1c3)];[_0x6fe328(0x165)];[_0x6fe328(0x19c)];constructor({connector:_0x19e6c9,config:_0xc57ce,ownerId:_0x108f29}){const _0x1fba0a=_0x6fe328;super(),this[_0x1fba0a(0x1c3)]=_0x19e6c9,this[_0x1fba0a(0x165)]=_0xc57ce,this[_0x1fba0a(0x19c)]=_0x108f29;}[_0x6fe328(0x14d)](){const _0x4110c2=_0x6fe328;this[_0x4110c2(0x1a6)]=new Map(),this[_0x4110c2(0x18e)]=new Map(),this[_0x4110c2(0x1a4)]=new Map(),this[_0x4110c2(0x150)]=new Map(),this[_0x4110c2(0x1a1)]();}[_0x6fe328(0x176)](){const _0x26d6b9=_0x6fe328;return this[_0x26d6b9(0x1a6)];}async[_0x6fe328(0x198)](_0x515444){const _0x2717bf=_0x6fe328,_0x178047=await this[_0x2717bf(0x1bc)](_0x515444);return this[_0x2717bf(0x171)](_0x178047),_0x2717bf(0x1b3)===_0x178047[_0x2717bf(0x16b)]&&this[_0x2717bf(0x13c)](),_0x178047;}async[_0x6fe328(0x1bc)](_0x37d330){const _0x155c12=_0x6fe328;if(_0x37d330[_0x155c12(0x14b)]===_0x5192a4[_0x155c12(0x193)]){const _0x556a41=await this[_0x155c12(0x1c3)][_0x155c12(0x186)](this[_0x155c12(0x19c)],_0x37d330['id'])[_0x155c12(0x138)]();return{'id':_0x155c12(0x1b3),'uiId':_0x155c12(0x1b3),'label':_0x155c12(0x144),'type':_0x37d330[_0x155c12(0x14b)],'content':_0x556a41[_0x155c12(0x1ca)],'hidden':this[_0x155c12(0x18e)][_0x155c12(0x1a3)](_0x155c12(0x1b3)),'version':_0x556a41[_0x155c12(0x181)]?.[_0x155c12(0x154)],'sessionId':_0x556a41[_0x155c12(0x181)]?.[_0x155c12(0x16c)]};}if(_0x37d330[_0x155c12(0x14b)]===_0x5192a4[_0x155c12(0x1c8)])return{'id':_0x37d330['id'],'uiId':_0x37d330['id'],'label':_0x37d330[_0x155c12(0x179)]?.[_0x155c12(0x180)]||_0x37d330['id'],'type':_0x5192a4[_0x155c12(0x1c8)],'mcpServerName':_0x37d330[_0x155c12(0x15b)],'toolName':_0x37d330[_0x155c12(0x16e)],'data':_0x37d330[_0x155c12(0x179)]||{}};return{'id':_0x37d330['id'],'uiId':_0x37d330['id'],'label':_0x37d330[_0x155c12(0x181)]?.[_0x155c12(0x180)]||_0x37d330[_0x155c12(0x18d)]||_0x37d330[_0x155c12(0x14a)]||_0x37d330['id'],'type':_0x37d330[_0x155c12(0x14b)],..._0x37d330?.[_0x155c12(0x181)]?.[_0x155c12(0x18b)]?{'resourceId':_0x37d330[_0x155c12(0x181)]?.[_0x155c12(0x18b)]}:{}};}[_0x6fe328(0x177)](){const _0x2203a5=_0x6fe328;return new Map(this[_0x2203a5(0x18e)]);}[_0x6fe328(0x189)](_0x488103){const _0x4fc2a0=_0x6fe328,_0x4a3cb0=this[_0x4fc2a0(0x1a6)][_0x4fc2a0(0x197)](_0x488103);_0x4a3cb0?.[_0x4fc2a0(0x168)]||this[_0x4fc2a0(0x1a9)](_0x488103);}[_0x6fe328(0x19f)](){const _0x28a3c8=_0x6fe328;if(0x0===this[_0x28a3c8(0x1a6)][_0x28a3c8(0x17b)])return;for(const _0x3e1d38 of this[_0x28a3c8(0x1a6)][_0x28a3c8(0x195)]())this[_0x28a3c8(0x1a9)](_0x3e1d38[_0x28a3c8(0x16b)]);const _0x1548ae=this[_0x28a3c8(0x18e)][_0x28a3c8(0x197)](_0x28a3c8(0x1b3))||this[_0x28a3c8(0x1a6)][_0x28a3c8(0x197)](_0x28a3c8(0x1b3));_0x1548ae&&this[_0x28a3c8(0x156)]({..._0x1548ae,'isReadOnly':!0x0,'hidden':!0x0});}[_0x6fe328(0x1c0)](_0x3154fb){const _0x5809b0=_0x6fe328;for(const _0x23ae9f of _0x3154fb[_0x5809b0(0x195)]())this[_0x5809b0(0x171)](_0x23ae9f);this[_0x5809b0(0x19f)](),this[_0x5809b0(0x1c9)](_0x5809b0(0x1bb),{'contextItems':Array[_0x5809b0(0x17e)](this[_0x5809b0(0x177)]()[_0x5809b0(0x195)]())});}[_0x6fe328(0x1c1)](){const _0x1c3224=_0x6fe328;return this[_0x1c3224(0x1a6)][_0x1c3224(0x1a3)](_0x1c3224(0x1b3));}[_0x6fe328(0x164)](){const _0x3dbdd0=_0x6fe328;return this[_0x3dbdd0(0x1a6)][_0x3dbdd0(0x1a3)](_0x3dbdd0(0x137));}[_0x6fe328(0x1ba)](){const _0x26a798=_0x6fe328;return this[_0x26a798(0x18e)][_0x26a798(0x1a3)](_0x26a798(0x1b3));}static[_0x6fe328(0x161)](_0xa42802){const _0x55ced9=_0x6fe328;return Array[_0x55ced9(0x17e)](_0xa42802[_0x55ced9(0x195)]())[_0x55ced9(0x1a8)](_0x3f32d0=>this[_0x55ced9(0x17c)](_0x3f32d0))[_0x55ced9(0x184)](_0x328a32=>null!==_0x328a32);}async[_0x6fe328(0x175)](_0x4784c6,_0x5dc492,_0x5255f5=_0x5192a4[_0x6fe328(0x1c5)]){const _0x3450f6=_0x6fe328,_0x43908f=_0x3450f6(0x187)+_0xd798f1();this[_0x3450f6(0x19a)](_0x43908f);try{await Promise[_0x3450f6(0x16f)](_0x4784c6[_0x3450f6(0x1a8)](async _0x5069b0=>{const _0x2b576c=_0x3450f6,_0x6bf7ad=_0x2b576c(0x185)+_0xd798f1(),_0x9fce01=_0x30294f(_0x5069b0[_0x2b576c(0x18d)]);try{this[_0x2b576c(0x156)]({'type':_0x5255f5,'label':_0x5dc492?.[_0x2b576c(0x180)]||_0x9fce01,'uiId':_0x6bf7ad,'resourceId':_0x5dc492?.[_0x2b576c(0x18b)]},!0x0);const _0x4588fa=this[_0x2b576c(0x1c3)][_0x2b576c(0x13a)](this[_0x2b576c(0x19c)],_0x5069b0,_0x5dc492);this[_0x2b576c(0x1a4)][_0x2b576c(0x1c6)](_0x6bf7ad,_0x4588fa[_0x2b576c(0x188)]);const {id:_0x5ed1c9}=await _0x4588fa[_0x2b576c(0x182)]();this[_0x2b576c(0x1a4)][_0x2b576c(0x15c)](_0x6bf7ad),this[_0x2b576c(0x19d)]({'type':_0x5255f5,'id':_0x5ed1c9,'label':_0x5dc492?.[_0x2b576c(0x180)]||_0x9fce01,'uiId':_0x6bf7ad,'resourceId':_0x5dc492?.[_0x2b576c(0x18b)]},!0x1);}catch(_0x5ce031){this[_0x2b576c(0x1a4)][_0x2b576c(0x15c)](_0x6bf7ad);if(!(_0x5ce031 instanceof _0x3a3170&&_0x5ce031[_0x2b576c(0x140)][_0x2b576c(0x1ab)](_0x2b576c(0x162)))){const _0x3b5fed=_0xf53635[_0x2b576c(0x197)](_0x5ce031[_0x2b576c(0x153)])||_0x2b576c(0x14c),_0x201628=new _0x3a3170(_0x3b5fed,null,{'fileName':_0x9fce01,..._0x5ce031});_0x201628[_0x2b576c(0x191)]=_0x5ce031[_0x2b576c(0x191)],this[_0x2b576c(0x1c9)](_0x2b576c(0x151),{'error':_0x201628});}this[_0x2b576c(0x1a9)](_0x6bf7ad);}}));}finally{this[_0x3450f6(0x1a5)](_0x43908f);}}[_0x6fe328(0x172)](_0x2e8dd0){const _0x429fcf=_0x6fe328;if(this[_0x429fcf(0x1c1)]()||!this[_0x429fcf(0x148)][_0x429fcf(0x1c4)][_0x429fcf(0x1b8)])return;const _0x4401bf={'type':_0x5192a4[_0x429fcf(0x193)],'uiId':_0x429fcf(0x1b3),'label':_0x2e8dd0,'isReadOnly':this[_0x429fcf(0x18e)][_0x429fcf(0x1a3)](_0x429fcf(0x1b3)),'hidden':this[_0x429fcf(0x18e)][_0x429fcf(0x1a3)](_0x429fcf(0x1b3))};this[_0x429fcf(0x156)](_0x4401bf);}async[_0x6fe328(0x1c2)](_0x412c4b,_0x571358,_0x25e026,_0x2c9dd3){const _0x287e6f=_0x6fe328,_0x8de895=this[_0x287e6f(0x1a6)][_0x287e6f(0x197)](_0x287e6f(0x1b3));if(_0x8de895&&_0x412c4b){_0x8de895[_0x287e6f(0x137)]=_0x2c9dd3?_0x2c9dd3[_0x287e6f(0x1a8)](_0x537778=>({'start':_0x537778[_0x287e6f(0x157)],'end':_0x537778[_0x287e6f(0x136)]})):[];try{if(_0x8de895[_0x287e6f(0x154)]===_0x571358)return;const {id:_0x25610d}=await this[_0x287e6f(0x1c3)][_0x287e6f(0x17d)](this[_0x287e6f(0x19c)],_0x412c4b,{'version':_0x571358,'sessionId':_0x25e026})[_0x287e6f(0x182)]();_0x8de895['id']=_0x25610d,_0x8de895[_0x287e6f(0x1ca)]=_0x412c4b,_0x8de895[_0x287e6f(0x154)]=_0x571358,_0x8de895[_0x287e6f(0x16c)]=_0x25e026;}catch(_0x1a8f82){const _0x5b8735=new _0x3a3170(_0x287e6f(0x18a),null);_0x5b8735[_0x287e6f(0x191)]=_0x1a8f82[_0x287e6f(0x191)],this[_0x287e6f(0x1c9)](_0x287e6f(0x151),{'error':_0x5b8735});}}}[_0x6fe328(0x190)](_0x5a3b9d){const _0x233b0a=_0x6fe328;this[_0x233b0a(0x156)]({'type':_0x5192a4[_0x233b0a(0x152)],'label':_0x5a3b9d,'uiId':_0x233b0a(0x137),'content':_0x5a3b9d});}[_0x6fe328(0x196)](){const _0x736904=_0x6fe328;this[_0x736904(0x1a9)](_0x736904(0x137));}async[_0x6fe328(0x1be)](_0x565d19,_0x22bcf6){const _0x40d5b2=_0x6fe328,_0x59b494=_0x40d5b2(0x15f)+_0xd798f1();this[_0x40d5b2(0x19a)](_0x59b494);const _0x417b5b=_0x40d5b2(0x15f)+_0xd798f1();try{this[_0x40d5b2(0x156)]({'type':_0x5192a4[_0x40d5b2(0x18f)],'label':_0x22bcf6?.[_0x40d5b2(0x180)]||_0x565d19,'uiId':_0x417b5b,'resourceId':_0x22bcf6?.[_0x40d5b2(0x18b)]},!0x0);const _0x1268e8=this[_0x40d5b2(0x1c3)][_0x40d5b2(0x183)](this[_0x40d5b2(0x19c)],_0x565d19,_0x22bcf6);this[_0x40d5b2(0x1a4)][_0x40d5b2(0x1c6)](_0x417b5b,_0x1268e8[_0x40d5b2(0x188)]);const {id:_0x57c4cf}=await _0x1268e8[_0x40d5b2(0x182)]();this[_0x40d5b2(0x1a4)][_0x40d5b2(0x15c)](_0x417b5b),this[_0x40d5b2(0x19d)]({'type':_0x5192a4[_0x40d5b2(0x18f)],'id':_0x57c4cf,'label':_0x22bcf6?.[_0x40d5b2(0x180)]||_0x565d19,'uiId':_0x417b5b,'resourceId':_0x22bcf6?.[_0x40d5b2(0x18b)]},!0x1);}catch(_0x4aa745){this[_0x40d5b2(0x1a4)][_0x40d5b2(0x15c)](_0x417b5b),(_0x4aa745[_0x40d5b2(0x140)][_0x40d5b2(0x1ab)](_0x40d5b2(0x162))||this[_0x40d5b2(0x1c9)](_0x40d5b2(0x151),{'error':new _0x3a3170(_0x40d5b2(0x17a),this,{'url':_0x565d19,'originalError':_0x4aa745}),'url':_0x565d19}),this[_0x40d5b2(0x1a9)](_0x417b5b));}finally{this[_0x40d5b2(0x1a5)](_0x59b494);}}[_0x6fe328(0x173)](_0x240285){const _0x264427=_0x6fe328;_0x240285['id']=_0x240285['id']??_0xd798f1()[_0x264427(0x15d)](0x0,0x15),this[_0x264427(0x1a6)][_0x264427(0x1c6)](_0x240285[_0x264427(0x16b)],_0x240285),this[_0x264427(0x1c9)](_0x264427(0x1b7),{'contextItem':_0x240285,'isLoading':!0x1});}async[_0x6fe328(0x146)](_0x3fa7bb,_0x5a3123,_0xcaca5d){const _0xddfa6c=_0x6fe328,_0x416632=this[_0xddfa6c(0x148)][_0xddfa6c(0x15a)][_0xddfa6c(0x19e)](_0x43f485=>_0x43f485['id']===_0x3fa7bb);if(!_0x416632)return this[_0xddfa6c(0x1c9)](_0xddfa6c(0x151),{'error':new _0x3a3170(_0xddfa6c(0x166),this,{'sourceId':_0x3fa7bb}),'sourceId':_0x3fa7bb}),[];try{const _0x223d2c=(await _0x416632[_0xddfa6c(0x159)](_0x5a3123))[_0xddfa6c(0x1a8)](_0x7a640a=>{const _0x4dbef5=_0xddfa6c,_0x581156=this[_0x4dbef5(0x1ae)](_0x7a640a['id']);return{..._0x7a640a,'isInContext':_0x581156};});return _0x416632[_0xddfa6c(0x1b5)]=_0x223d2c,this[_0xddfa6c(0x1c9)](_0xddfa6c(0x1ad),{'sourceId':_0x3fa7bb,'source':_0x416632,'resources':_0x223d2c,'uid':_0xcaca5d}),_0x223d2c;}catch(_0x280160){return this[_0xddfa6c(0x1c9)](_0xddfa6c(0x151),{'error':new _0x3a3170(_0xddfa6c(0x1b4),this,{'sourceId':_0x3fa7bb,'originalError':_0x280160}),'sourceId':_0x3fa7bb,'sourceLabel':_0x416632[_0xddfa6c(0x180)]}),[];}}async[_0x6fe328(0x160)](_0xd0544f,_0x38e862){const _0x3d351e=_0x6fe328;if(this[_0x3d351e(0x1ae)](_0x38e862['id']))return;let _0x59486d=_0x38e862[_0x3d351e(0x179)];if(!_0x59486d&&_0xd0544f[_0x3d351e(0x1bd)])try{_0x59486d=await _0xd0544f[_0x3d351e(0x1bd)](_0x38e862['id']);}catch(_0x250d1a){return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x141),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'originalError':_0x250d1a}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}if(_0x59486d)switch(_0x38e862[_0x3d351e(0x14b)]){case _0x5192a4[_0x3d351e(0x18f)]:if(_0x3d351e(0x139)!=typeof _0x59486d)return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x139),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});await this[_0x3d351e(0x1be)](_0x59486d,{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']});break;case _0x5192a4[_0x3d351e(0x1c5)]:if(!(_0x59486d instanceof File))return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x1b9),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});await this[_0x3d351e(0x175)]([_0x59486d],{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']});break;case _0x5192a4[_0x3d351e(0x1b1)]:if(_0x3d351e(0x1af)!=typeof _0x59486d||!(_0x3d351e(0x1ca)in _0x59486d)||!(_0x3d351e(0x14b)in _0x59486d))return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x18c),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});_0x59486d=AIChatContext[_0x3d351e(0x1aa)](_0x59486d,_0x38e862[_0x3d351e(0x180)]),await this[_0x3d351e(0x175)]([_0x59486d],{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']},_0x5192a4[_0x3d351e(0x1b1)]);break;case _0x5192a4[_0x3d351e(0x1c8)]:break;default:this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x142),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'resourceType':_0x38e862[_0x3d351e(0x14b)]}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}else this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x169),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}static[_0x6fe328(0x1aa)](_0x232abf,_0x3dbac9){const _0x41043e=_0x6fe328;switch(_0x232abf[_0x41043e(0x14b)]){case _0x216793[_0x41043e(0x17f)]:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x16a)});case _0x216793[_0x41043e(0x194)]:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x158)});default:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x163)});}}static[_0x6fe328(0x17c)](_0xe31ca0){const _0x30ebb4=_0x6fe328;switch(_0xe31ca0[_0x30ebb4(0x14b)]){case _0x5192a4[_0x30ebb4(0x1c5)]:return{'type':_0x5192a4[_0x30ebb4(0x1c5)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x18f)]:return{'type':_0x5192a4[_0x30ebb4(0x18f)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x193)]:return{'type':_0x5192a4[_0x30ebb4(0x193)],'id':_0xe31ca0['id'],..._0xe31ca0[_0x30ebb4(0x137)]?.[_0x30ebb4(0x1a2)]&&{'selection':_0xe31ca0[_0x30ebb4(0x137)]}};case _0x5192a4[_0x30ebb4(0x1b1)]:return{'type':_0x5192a4[_0x30ebb4(0x1c5)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x1c8)]:{const _0x1f15aa=_0xe31ca0;return{'type':_0x5192a4[_0x30ebb4(0x1c8)],'mcpServerName':_0x1f15aa[_0x30ebb4(0x15b)],'toolName':_0x1f15aa[_0x30ebb4(0x16e)],'data':_0x1f15aa[_0x30ebb4(0x179)],'id':_0x1f15aa['id']};}default:return null;}}[_0x6fe328(0x156)](_0x1a5b53,_0x19f28d=!0x1){const _0x575019=_0x6fe328;if(this[_0x575019(0x1a6)][_0x575019(0x1c6)](_0x1a5b53[_0x575019(0x16b)],_0x1a5b53),_0x1a5b53[_0x575019(0x1c7)]||this[_0x575019(0x1c9)](_0x575019(0x1b7),{'contextItem':_0x1a5b53,'isLoading':_0x19f28d}),_0x575019(0x1b3)===_0x1a5b53[_0x575019(0x16b)]&&this[_0x575019(0x13c)](),_0x1a5b53[_0x575019(0x18b)]){const _0x21e45e=this[_0x575019(0x1b0)](_0x1a5b53[_0x575019(0x18b)]);_0x21e45e&&_0x21e45e[_0x575019(0x19b)](_0xa0b4a6=>{const _0x17c541=_0x575019;this[_0x17c541(0x155)](_0xa0b4a6,_0x1a5b53[_0x17c541(0x18b)],!0x0);});}}[_0x6fe328(0x1a9)](_0x3869aa){const _0x412e8e=_0x6fe328,_0x1e710e=this[_0x412e8e(0x1a6)][_0x412e8e(0x197)](_0x3869aa),_0x34b552=this[_0x412e8e(0x1a4)][_0x412e8e(0x197)](_0x3869aa);if(_0x34b552&&(_0x34b552[_0x412e8e(0x16d)](),this[_0x412e8e(0x1a4)][_0x412e8e(0x15c)](_0x3869aa)),_0x1e710e?.[_0x412e8e(0x18b)]){const _0x5af81e=this[_0x412e8e(0x1b0)](_0x1e710e[_0x412e8e(0x18b)]);_0x5af81e&&_0x5af81e[_0x412e8e(0x19b)](_0x36695c=>{const _0x12f286=_0x412e8e;this[_0x12f286(0x155)](_0x36695c,_0x1e710e[_0x12f286(0x18b)],!0x1);});}this[_0x412e8e(0x1a6)][_0x412e8e(0x15c)](_0x3869aa),this[_0x412e8e(0x1c9)](_0x412e8e(0x149),{'uiId':_0x3869aa,'type':_0x1e710e?.[_0x412e8e(0x14b)]}),_0x412e8e(0x1b3)===_0x3869aa&&this[_0x412e8e(0x13c)]();}[_0x6fe328(0x19d)](_0x505d8f,_0x5ab64c){const _0x55a404=_0x6fe328;if(this[_0x55a404(0x1a6)][_0x55a404(0x1a3)](_0x505d8f[_0x55a404(0x16b)])&&(this[_0x55a404(0x1a6)][_0x55a404(0x1c6)](_0x505d8f[_0x55a404(0x16b)],_0x505d8f),this[_0x55a404(0x1c9)](_0x55a404(0x143),{'contextItem':_0x505d8f,'isLoading':_0x5ab64c}),_0x505d8f[_0x55a404(0x18b)])){const _0x5940d8=this[_0x55a404(0x1b0)](_0x505d8f[_0x55a404(0x18b)]);_0x5940d8&&_0x5940d8[_0x55a404(0x19b)](_0x27e4d3=>{const _0xbcc89f=_0x55a404;this[_0xbcc89f(0x155)](_0x27e4d3,_0x505d8f[_0xbcc89f(0x18b)],!0x0);});}}[_0x6fe328(0x171)](_0x56e836){const _0x112e5b=_0x6fe328;this[_0x112e5b(0x18e)][_0x112e5b(0x1c6)](_0x56e836[_0x112e5b(0x16b)],_0x56e836);}[_0x6fe328(0x1a1)](){const _0x3d3a9b=_0x6fe328;this[_0x3d3a9b(0x148)]={'document':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x1c4)]?.[_0x3d3a9b(0x1b8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x13d)]?.[_0x3d3a9b(0x1b8)]},'files':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x167)]?.[_0x3d3a9b(0x1b8)]},'sources':this[_0x3d3a9b(0x147)](),'customItems':this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x145)]?.[_0x3d3a9b(0x1a8)](_0x5840d3=>({..._0x5840d3,'enabled':!0x0}))??[]},this[_0x3d3a9b(0x1c9)](_0x3d3a9b(0x1ac),{'options':this[_0x3d3a9b(0x148)]});}[_0x6fe328(0x147)](){const _0x2ac63e=_0x6fe328;return this[_0x2ac63e(0x165)]?.[_0x2ac63e(0x15a)]?.[_0x2ac63e(0x1a8)](_0x59696e=>({..._0x59696e,'resources':[]}))??[];}[_0x6fe328(0x13c)](){const _0x1bafc9=_0x6fe328,_0x5d7fd0=this[_0x1bafc9(0x1c1)]()||this[_0x1bafc9(0x1ba)]();this[_0x1bafc9(0x148)][_0x1bafc9(0x1c4)][_0x1bafc9(0x170)]=_0x5d7fd0,this[_0x1bafc9(0x1c9)](_0x1bafc9(0x1ac),{'options':this[_0x1bafc9(0x148)]});}[_0x6fe328(0x1ae)](_0x34967e){const _0x2c0e03=_0x6fe328;for(const _0x39eef7 of this[_0x2c0e03(0x1a6)][_0x2c0e03(0x195)]())if(_0x39eef7[_0x2c0e03(0x18b)]===_0x34967e)return!0x0;for(const _0x4c794b of this[_0x2c0e03(0x18e)][_0x2c0e03(0x195)]())if(_0x4c794b[_0x2c0e03(0x18b)]===_0x34967e)return!0x0;return!0x1;}[_0x6fe328(0x1b0)](_0x4f730a){const _0x45cb93=_0x6fe328,_0x59baa1=[];for(const _0x430690 of this[_0x45cb93(0x148)][_0x45cb93(0x15a)]){_0x430690[_0x45cb93(0x1b5)][_0x45cb93(0x19e)](_0x2f6d95=>_0x2f6d95['id']===_0x4f730a)&&_0x59baa1[_0x45cb93(0x13e)](_0x430690['id']);}return 0x0===_0x59baa1[_0x45cb93(0x1a2)]?null:_0x59baa1;}[_0x6fe328(0x155)](_0x134a11,_0x28f4eb,_0x26bf59){const _0x9aa427=_0x6fe328,_0x40954f=this[_0x9aa427(0x148)][_0x9aa427(0x15a)][_0x9aa427(0x19e)](_0xbb5eca=>_0xbb5eca['id']===_0x134a11);if(!_0x40954f)return;const _0x52f3f6=_0x40954f[_0x9aa427(0x1b5)][_0x9aa427(0x19e)](_0x248f48=>_0x248f48['id']===_0x28f4eb);_0x52f3f6&&(_0x52f3f6[_0x9aa427(0x13f)]=_0x26bf59,this[_0x9aa427(0x1c9)](_0x9aa427(0x14e),{'sourceId':_0x134a11,'resourceId':_0x28f4eb,'isInContext':_0x26bf59}));}[_0x6fe328(0x19a)](_0x24a15a){const _0x56678e=_0x6fe328;this[_0x56678e(0x150)][_0x56678e(0x1c6)](_0x24a15a,!0x0),this[_0x56678e(0x150)][_0x56678e(0x17b)]&&this[_0x56678e(0x1c9)](_0x56678e(0x199),{'isUploadInProgress':!0x0});}[_0x6fe328(0x1a5)](_0x248826){const _0x5bf2d0=_0x6fe328;this[_0x5bf2d0(0x150)][_0x5bf2d0(0x15c)](_0x248826),0x0===this[_0x5bf2d0(0x150)][_0x5bf2d0(0x17b)]&&this[_0x5bf2d0(0x1c9)](_0x5bf2d0(0x199),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5409(){const _0x7a9452=['isShowChangesOn','_createPreviousButtonView','126OSWHSQ','change:_state','948gIexSP','toggleShowChanges','AI_BALLOON_NEXT_LABEL','_errorView','render','previousButtonView','_state','697304aEQdJI','set','showDiff','showError','_keystrokes','applySuggestion','bindTemplate','rejectSuggestion','110006YgxWij','22KCmtzY','bind','update','showNext','_miniToolbarView','showPrevious','481437zFzSSK','_focusTracker','availableActions','shift\x20+\x20tab','execute','pending','6104290AlhvXw','_createNextButtonView','delegate','3530795nyUsop','_config','_partToolbarView','includes','keepErrors','618718KReQPr','isVisible','focusCycler','3DhwdjV','_togglePartToolbarButtonsVisibility','_isErrorVisible','locale','focus','listenTo','hideError','tab','has','insertSuggestion','showBlockingError','createCollection','setState','full','ck-ai-chat-balloon__toolbar-container','focusFirst','_streamableContentView','isTrackChangesOn','nextButtonView','12ZlBOMV','ck-ai-chat-balloon-main_state_','div','children','change:isTrackChangesOn','toggleRotatorButtonsVisibility','add','isEnabled','destroy','7mhXFof','addMany','5015022BdkRUl','_stateView','focusLast','_toolbarContainerView','AI_BALLOON_PREVIOUS_LABEL','ck-ai-chat-balloon-main','element','setButtonsVisibility','setTemplate','toggleSuggestionDisplayMode','fire','_focusables','updateContent','togglePartToolbarEnabled'];_0x5409=function(){return _0x7a9452;};return _0x5409();}function _0x2239(_0x169f1c,_0x3e1a60){const _0x54095a=_0x5409();return _0x2239=function(_0x2239c9,_0x3f50f7){_0x2239c9=_0x2239c9-0x188;let _0x8158f0=_0x54095a[_0x2239c9];return _0x8158f0;},_0x2239(_0x169f1c,_0x3e1a60);}const _0x1334be=_0x2239;(function(_0x493249,_0x42c5f6){const _0x472d6d=_0x2239,_0x2de845=_0x493249();while(!![]){try{const _0x48f323=-parseInt(_0x472d6d(0x1bc))/0x1*(parseInt(_0x472d6d(0x1b9))/0x2)+parseInt(_0x472d6d(0x1ab))/0x3*(-parseInt(_0x472d6d(0x1cf))/0x4)+parseInt(_0x472d6d(0x1b4))/0x5+parseInt(_0x472d6d(0x1da))/0x6*(parseInt(_0x472d6d(0x1d8))/0x7)+-parseInt(_0x472d6d(0x19c))/0x8*(-parseInt(_0x472d6d(0x193))/0x9)+parseInt(_0x472d6d(0x1b1))/0xa*(-parseInt(_0x472d6d(0x1a5))/0xb)+-parseInt(_0x472d6d(0x195))/0xc*(-parseInt(_0x472d6d(0x1a4))/0xd);if(_0x48f323===_0x42c5f6)break;else _0x2de845['push'](_0x2de845['shift']());}catch(_0x412d94){_0x2de845['push'](_0x2de845['shift']());}}}(_0x5409,0xc3694));import{FocusTracker as _0x340a14,KeystrokeHandler as _0x41b12f}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x587dd4}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0xa9733f}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x11e9d9}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x828581}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x321f65,FocusCycler as _0x15f3d7,View as _0x1ae91e}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x58d407}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x5176c6,IconChevronUp as _0x12ea91}from'ckeditor5/src/icons.js';import{getTranslation as _0x507dc6}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x828581{[_0x1334be(0x1d2)];[_0x1334be(0x1ce)];[_0x1334be(0x19a)];[_0x1334be(0x1bb)];[_0x1334be(0x18e)];[_0x1334be(0x1ac)];[_0x1334be(0x1a0)];[_0x1334be(0x1b5)];[_0x1334be(0x1cc)];[_0x1334be(0x1dd)];[_0x1334be(0x1b6)];[_0x1334be(0x1db)];[_0x1334be(0x1a9)];constructor(_0xb35e03,_0x27fd5a){const _0x2e0274=_0x1334be;super(_0xb35e03);const _0x380862=this[_0x2e0274(0x1a2)];this[_0x2e0274(0x19d)](_0x2e0274(0x19e),!0x1),this[_0x2e0274(0x19d)](_0x2e0274(0x19b),_0x2e0274(0x1b0)),this[_0x2e0274(0x1ac)]=new _0x340a14(),this[_0x2e0274(0x1a0)]=new _0x41b12f(),this[_0x2e0274(0x18e)]=this[_0x2e0274(0x1c7)](),this[_0x2e0274(0x1bb)]=new _0x15f3d7({'focusables':this[_0x2e0274(0x18e)],'focusTracker':this[_0x2e0274(0x1ac)],'keystrokeHandler':this[_0x2e0274(0x1a0)],'actions':{'focusPrevious':_0x2e0274(0x1ae),'focusNext':_0x2e0274(0x1c3)}}),this[_0x2e0274(0x1b5)]=_0x27fd5a,this[_0x2e0274(0x1ce)]=this[_0x2e0274(0x1b2)](),this[_0x2e0274(0x19a)]=this[_0x2e0274(0x192)](),this[_0x2e0274(0x1cc)]=new _0x587dd4(_0xb35e03),this[_0x2e0274(0x1b6)]=new _0xa9733f(_0xb35e03,_0x27fd5a[_0x2e0274(0x1ad)]),this[_0x2e0274(0x1b6)][_0x2e0274(0x1b3)](_0x2e0274(0x1a1),_0x2e0274(0x1c5),_0x2e0274(0x1a3))['to'](this),this[_0x2e0274(0x1bd)](_0x27fd5a),this[_0x2e0274(0x1db)]=new _0x58d407(_0xb35e03),this[_0x2e0274(0x1db)][_0x2e0274(0x1ba)]=!0x1,this[_0x2e0274(0x1a9)]=new _0x11e9d9(_0xb35e03,{'showChanges':_0x2e0274(0x1c9)}),this[_0x2e0274(0x1a9)][_0x2e0274(0x1a6)](_0x2e0274(0x191))['to'](this,_0x2e0274(0x19e)),this[_0x2e0274(0x1a9)]['on'](_0x2e0274(0x196),()=>{const _0x482eb1=_0x2e0274;this[_0x482eb1(0x18d)](_0x482eb1(0x18c));}),this[_0x2e0274(0x1dd)]=new fs(_0xb35e03,[this[_0x2e0274(0x1b6)],this[_0x2e0274(0x1db)],this[_0x2e0274(0x1a9)]]),this[_0x2e0274(0x1d2)]=this[_0x2e0274(0x1c7)]([this[_0x2e0274(0x1cc)],this[_0x2e0274(0x1dd)]]),this['on'](_0x2e0274(0x194),(_0x1e156f,_0x2a29a3,_0x421c8b,_0x1615ed)=>{const _0x758294=_0x2e0274;let _0x2fa1a1,_0x541312;_0x758294(0x1b0)===_0x1615ed?(_0x2fa1a1=this[_0x758294(0x1b6)],_0x541312=this[_0x758294(0x1db)]):(_0x2fa1a1=this[_0x758294(0x1db)],_0x541312=this[_0x758294(0x1b6)]),this[_0x758294(0x1db)][_0x758294(0x1c8)](_0x421c8b),_0x2fa1a1[_0x758294(0x1ba)]=!0x1,_0x541312[_0x758294(0x1ba)]=!0x0;}),this[_0x2e0274(0x18b)]({'tag':_0x2e0274(0x1d1),'attributes':{'class':['ck',_0x2e0274(0x188),_0x380862['to'](_0x2e0274(0x19b),_0x368669=>_0x2e0274(0x1d0)+_0x368669)]},'children':this[_0x2e0274(0x1d2)]}),this['on'](_0x2e0274(0x1d3),()=>{const _0x159398=_0x2e0274;this[_0x159398(0x1bd)](_0x27fd5a);});}[_0x1334be(0x199)](){const _0x31c1cc=_0x1334be;super[_0x31c1cc(0x199)](),this[_0x31c1cc(0x1ce)][_0x31c1cc(0x199)](),this[_0x31c1cc(0x19a)][_0x31c1cc(0x199)](),this[_0x31c1cc(0x1ac)][_0x31c1cc(0x1d5)](this[_0x31c1cc(0x189)]),this[_0x31c1cc(0x1ac)][_0x31c1cc(0x1d5)](this[_0x31c1cc(0x1ce)]),this[_0x31c1cc(0x1ac)][_0x31c1cc(0x1d5)](this[_0x31c1cc(0x19a)]),this[_0x31c1cc(0x1ac)][_0x31c1cc(0x1d5)](this[_0x31c1cc(0x1a9)]),this[_0x31c1cc(0x1ac)][_0x31c1cc(0x1d5)](this[_0x31c1cc(0x1b6)]),this[_0x31c1cc(0x1a0)][_0x31c1cc(0x1c1)](this[_0x31c1cc(0x189)]),this[_0x31c1cc(0x1a0)][_0x31c1cc(0x1c1)](this[_0x31c1cc(0x1ce)][_0x31c1cc(0x189)]),this[_0x31c1cc(0x1a0)][_0x31c1cc(0x1c1)](this[_0x31c1cc(0x19a)][_0x31c1cc(0x189)]),this[_0x31c1cc(0x18e)][_0x31c1cc(0x1d9)]([this[_0x31c1cc(0x1ce)],this[_0x31c1cc(0x19a)],this[_0x31c1cc(0x1b6)],this[_0x31c1cc(0x1a9)]]);}[_0x1334be(0x1d7)](){const _0x33daf1=_0x1334be;super[_0x33daf1(0x1d7)](),this[_0x33daf1(0x19a)][_0x33daf1(0x1d7)](),this[_0x33daf1(0x1ce)][_0x33daf1(0x1d7)]();}[_0x1334be(0x1c0)](){const _0x4b1d42=_0x1334be;this[_0x4b1d42(0x1bb)][_0x4b1d42(0x1cb)]();}[_0x1334be(0x1dc)](){const _0x50e85b=_0x1334be;this[_0x50e85b(0x1bb)][_0x50e85b(0x1dc)]();}async[_0x1334be(0x18f)](_0x5c56fc){const _0x3a7122=_0x1334be;_0x5c56fc?.[_0x3a7122(0x1b8)]||this[_0x3a7122(0x1c2)](),await this[_0x3a7122(0x1cc)][_0x3a7122(0x1a7)](_0x5c56fc);}[_0x1334be(0x1c8)](_0x1f0005){const _0x3eb006=_0x1334be;this[_0x3eb006(0x19b)]=_0x1f0005;}[_0x1334be(0x19f)](_0x58e06a){const _0x35c75c=_0x1334be;super[_0x35c75c(0x19f)](_0x58e06a),this[_0x35c75c(0x1d2)][_0x35c75c(0x1c4)](this[_0x35c75c(0x198)])||this[_0x35c75c(0x1d2)][_0x35c75c(0x1d5)](this[_0x35c75c(0x198)],0x0);}[_0x1334be(0x1c2)](){const _0x5906ef=_0x1334be;this[_0x5906ef(0x1be)]&&(super[_0x5906ef(0x1c2)](),this[_0x5906ef(0x190)](!0x0));}[_0x1334be(0x1c6)](_0x219089){const _0x1726f2=_0x1334be;super[_0x1726f2(0x1c6)](_0x219089),this[_0x1726f2(0x190)](!0x1);}[_0x1334be(0x1d4)](_0x36185e){const _0x1931cf=_0x1334be;this[_0x1931cf(0x1ce)][_0x1931cf(0x1ba)]=this[_0x1931cf(0x19a)][_0x1931cf(0x1ba)]=_0x36185e;}[_0x1334be(0x190)](_0x15612d){const _0x2a3d92=_0x1334be;this[_0x2a3d92(0x1b6)][_0x2a3d92(0x1d6)]=_0x15612d;}[_0x1334be(0x1bd)]({showApplyButton:_0x4da94f,showSuggestButton:_0x5de99a}){const _0x3a56ab=_0x1334be;_0x4da94f=_0x4da94f&&!this[_0x3a56ab(0x1cd)]&&this[_0x3a56ab(0x1b5)][_0x3a56ab(0x1ad)][_0x3a56ab(0x1b7)](_0x3a56ab(0x1a1)),_0x5de99a=_0x5de99a&&this[_0x3a56ab(0x1b5)][_0x3a56ab(0x1ad)][_0x3a56ab(0x1b7)](_0x3a56ab(0x1c5)),this[_0x3a56ab(0x1b6)][_0x3a56ab(0x18a)]({'showApplyButton':_0x4da94f,'showSuggestButton':_0x5de99a});}[_0x1334be(0x1b2)](){const _0x760e7e=_0x1334be,_0x220694=new _0x321f65(this[_0x760e7e(0x1bf)]);return _0x220694[_0x760e7e(0x19d)]({'icon':_0x5176c6,'label':_0x507dc6(this[_0x760e7e(0x1bf)],_0x760e7e(0x197)),'isVisible':!0x0}),_0x220694['on'](_0x760e7e(0x1af),()=>{const _0x154d98=_0x760e7e;this[_0x154d98(0x18d)](_0x154d98(0x1a8));}),_0x220694;}[_0x1334be(0x192)](){const _0xebc5a=_0x1334be,_0x241caf=new _0x321f65(this[_0xebc5a(0x1bf)]);return _0x241caf[_0xebc5a(0x19d)]({'icon':_0x12ea91,'label':_0x507dc6(this[_0xebc5a(0x1bf)],_0xebc5a(0x1de)),'isVisible':!0x0}),_0x241caf['on'](_0xebc5a(0x1af),()=>{const _0x7c854e=_0xebc5a;this[_0x7c854e(0x18d)](_0x7c854e(0x1aa));}),_0x241caf;}}class fs extends _0x1ae91e{constructor(_0x56230e,_0xd263d9){const _0x15a2fa=_0x1334be;super(_0x56230e),this[_0x15a2fa(0x18b)]({'tag':_0x15a2fa(0x1d1),'attributes':{'class':[_0x15a2fa(0x1ca)]},'children':_0xd263d9});}}
23
+ const _0x59f102=_0x28b1;(function(_0x1976fb,_0x2fbbd2){const _0xa21ee5=_0x28b1,_0x2656f4=_0x1976fb();while(!![]){try{const _0x206a9d=parseInt(_0xa21ee5(0xce))/0x1*(-parseInt(_0xa21ee5(0xcb))/0x2)+-parseInt(_0xa21ee5(0xb2))/0x3+parseInt(_0xa21ee5(0x88))/0x4+-parseInt(_0xa21ee5(0xc0))/0x5+parseInt(_0xa21ee5(0x9c))/0x6*(-parseInt(_0xa21ee5(0x91))/0x7)+-parseInt(_0xa21ee5(0xaf))/0x8*(-parseInt(_0xa21ee5(0x82))/0x9)+-parseInt(_0xa21ee5(0xd0))/0xa*(-parseInt(_0xa21ee5(0x8c))/0xb);if(_0x206a9d===_0x2fbbd2)break;else _0x2656f4['push'](_0x2656f4['shift']());}catch(_0x2450b4){_0x2656f4['push'](_0x2656f4['shift']());}}}(_0x9809,0xbf8f8));import{FocusTracker as _0x503e14,KeystrokeHandler as _0xd9a69}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x25484b}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x572c39}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x1715ab}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x347344}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x30157b,FocusCycler as _0x1a677a,View as _0x8f0391}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x5830ed}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x4b7053,IconChevronUp as _0x299c31}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a1307}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x347344{[_0x59f102(0xa6)];[_0x59f102(0x8b)];[_0x59f102(0xca)];[_0x59f102(0xa1)];[_0x59f102(0x83)];[_0x59f102(0x85)];[_0x59f102(0xbf)];[_0x59f102(0xad)];[_0x59f102(0xc9)];[_0x59f102(0xa7)];[_0x59f102(0xbe)];[_0x59f102(0x8e)];[_0x59f102(0x8a)];constructor(_0x118059,_0x52ddd8){const _0x19fefb=_0x59f102;super(_0x118059);const _0x329c65=this[_0x19fefb(0x8d)];this[_0x19fefb(0x7d)](_0x19fefb(0xb4),!0x1),this[_0x19fefb(0x7d)](_0x19fefb(0xac),_0x19fefb(0xc5)),this[_0x19fefb(0x85)]=new _0x503e14(),this[_0x19fefb(0xbf)]=new _0xd9a69(),this[_0x19fefb(0x83)]=this[_0x19fefb(0xb5)](),this[_0x19fefb(0xa1)]=new _0x1a677a({'focusables':this[_0x19fefb(0x83)],'focusTracker':this[_0x19fefb(0x85)],'keystrokeHandler':this[_0x19fefb(0xbf)],'actions':{'focusPrevious':_0x19fefb(0x96),'focusNext':_0x19fefb(0x99)}}),this[_0x19fefb(0xad)]=_0x52ddd8,this[_0x19fefb(0x8b)]=this[_0x19fefb(0xc6)](),this[_0x19fefb(0xca)]=this[_0x19fefb(0x7f)](),this[_0x19fefb(0xc9)]=new _0x25484b(_0x118059),this[_0x19fefb(0xbe)]=new _0x572c39(_0x118059,_0x52ddd8[_0x19fefb(0x9a)]),this[_0x19fefb(0xbe)][_0x19fefb(0xcc)](_0x19fefb(0x80),_0x19fefb(0x84),_0x19fefb(0xae))['to'](this),this[_0x19fefb(0x98)](_0x52ddd8),this[_0x19fefb(0x8e)]=new _0x5830ed(_0x118059),this[_0x19fefb(0x8e)][_0x19fefb(0xa4)]=!0x1,this[_0x19fefb(0x8a)]=new _0x1715ab(_0x118059,{'showChanges':_0x19fefb(0xb9)}),this[_0x19fefb(0x8a)][_0x19fefb(0xbb)](_0x19fefb(0xa2))['to'](this,_0x19fefb(0xb4)),this[_0x19fefb(0x8a)]['on'](_0x19fefb(0x94),()=>{const _0x5b22a9=_0x19fefb;this[_0x5b22a9(0xb7)](_0x5b22a9(0xa5));}),this[_0x19fefb(0xa7)]=new fs(_0x118059,[this[_0x19fefb(0xbe)],this[_0x19fefb(0x8e)],this[_0x19fefb(0x8a)]]),this[_0x19fefb(0xa6)]=this[_0x19fefb(0xb5)]([this[_0x19fefb(0xc9)],this[_0x19fefb(0xa7)]]),this['on'](_0x19fefb(0xb6),(_0x3e8761,_0x3a5ede,_0x2c90f5,_0x24d7f8)=>{const _0x549d1e=_0x19fefb;let _0x259e2c,_0x40cdd4;_0x549d1e(0xc5)===_0x24d7f8?(_0x259e2c=this[_0x549d1e(0xbe)],_0x40cdd4=this[_0x549d1e(0x8e)]):(_0x259e2c=this[_0x549d1e(0x8e)],_0x40cdd4=this[_0x549d1e(0xbe)]),this[_0x549d1e(0x8e)][_0x549d1e(0x9f)](_0x2c90f5),_0x259e2c[_0x549d1e(0xa4)]=!0x1,_0x40cdd4[_0x549d1e(0xa4)]=!0x0;}),this[_0x19fefb(0x9d)]({'tag':_0x19fefb(0x87),'attributes':{'class':['ck',_0x19fefb(0x86),_0x329c65['to'](_0x19fefb(0xac),_0x144f50=>_0x19fefb(0xc3)+_0x144f50)]},'children':this[_0x19fefb(0xa6)]}),this['on'](_0x19fefb(0xbd),()=>{const _0x51f6cb=_0x19fefb;this[_0x51f6cb(0x98)](_0x52ddd8);});}[_0x59f102(0x90)](){const _0x5aa96b=_0x59f102;super[_0x5aa96b(0x90)](),this[_0x5aa96b(0x8b)][_0x5aa96b(0x90)](),this[_0x5aa96b(0xca)][_0x5aa96b(0x90)](),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0xc4)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0x8b)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0xca)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0x8a)]),this[_0x5aa96b(0x85)][_0x5aa96b(0xcf)](this[_0x5aa96b(0xbe)]),this[_0x5aa96b(0xbf)][_0x5aa96b(0xb0)](this[_0x5aa96b(0xc4)]),this[_0x5aa96b(0xbf)][_0x5aa96b(0xb0)](this[_0x5aa96b(0x8b)][_0x5aa96b(0xc4)]),this[_0x5aa96b(0xbf)][_0x5aa96b(0xb0)](this[_0x5aa96b(0xca)][_0x5aa96b(0xc4)]),this[_0x5aa96b(0x83)][_0x5aa96b(0xbc)]([this[_0x5aa96b(0x8b)],this[_0x5aa96b(0xca)],this[_0x5aa96b(0xbe)],this[_0x5aa96b(0x8a)]]);}[_0x59f102(0x9e)](){const _0x375b92=_0x59f102;super[_0x375b92(0x9e)](),this[_0x375b92(0xca)][_0x375b92(0x9e)](),this[_0x375b92(0x8b)][_0x375b92(0x9e)]();}[_0x59f102(0x9b)](){const _0x44e3d7=_0x59f102;this[_0x44e3d7(0xa1)][_0x44e3d7(0xaa)]();}[_0x59f102(0x93)](){const _0x2326b8=_0x59f102;this[_0x2326b8(0xa1)][_0x2326b8(0x93)]();}async[_0x59f102(0xcd)](_0x57229a){const _0x57dd6c=_0x59f102;_0x57229a?.[_0x57dd6c(0x97)]||this[_0x57dd6c(0x7e)](),await this[_0x57dd6c(0xc9)][_0x57dd6c(0x8f)](_0x57229a);}[_0x59f102(0x9f)](_0xdefdfa){const _0x3eaa4b=_0x59f102;this[_0x3eaa4b(0xac)]=_0xdefdfa;}[_0x59f102(0xa9)](_0x47cd81){const _0x20cf5d=_0x59f102;super[_0x20cf5d(0xa9)](_0x47cd81),this[_0x20cf5d(0xa6)][_0x20cf5d(0xc7)](this[_0x20cf5d(0x92)])||this[_0x20cf5d(0xa6)][_0x20cf5d(0xcf)](this[_0x20cf5d(0x92)],0x0);}[_0x59f102(0x7e)](){const _0x3d145a=_0x59f102;this[_0x3d145a(0x89)]&&(super[_0x3d145a(0x7e)](),this[_0x3d145a(0xd1)](!0x0));}[_0x59f102(0x81)](_0x442700){const _0xaa0112=_0x59f102;super[_0xaa0112(0x81)](_0x442700),this[_0xaa0112(0xd1)](!0x1);}[_0x59f102(0xb8)](_0x118967){const _0xce33cd=_0x59f102;this[_0xce33cd(0x8b)][_0xce33cd(0xa4)]=this[_0xce33cd(0xca)][_0xce33cd(0xa4)]=_0x118967;}[_0x59f102(0xd1)](_0x12bb1f){const _0x418be2=_0x59f102;this[_0x418be2(0xbe)][_0x418be2(0xa8)]=_0x12bb1f;}[_0x59f102(0x98)]({showApplyButton:_0x5b5982,showSuggestButton:_0x2d2f94}){const _0x2d4ba2=_0x59f102;_0x5b5982=_0x5b5982&&!this[_0x2d4ba2(0xb3)]&&this[_0x2d4ba2(0xad)][_0x2d4ba2(0x9a)][_0x2d4ba2(0xc8)](_0x2d4ba2(0x80)),_0x2d2f94=_0x2d2f94&&this[_0x2d4ba2(0xad)][_0x2d4ba2(0x9a)][_0x2d4ba2(0xc8)](_0x2d4ba2(0x84)),this[_0x2d4ba2(0xbe)][_0x2d4ba2(0xa0)]({'showApplyButton':_0x5b5982,'showSuggestButton':_0x2d2f94});}[_0x59f102(0xc6)](){const _0x19ac1d=_0x59f102,_0x464aee=new _0x30157b(this[_0x19ac1d(0xa3)]);return _0x464aee[_0x19ac1d(0x7d)]({'icon':_0x4b7053,'label':_0x1a1307(this[_0x19ac1d(0xa3)],_0x19ac1d(0xb1)),'isVisible':!0x0}),_0x464aee['on'](_0x19ac1d(0xc2),()=>{const _0x435f74=_0x19ac1d;this[_0x435f74(0xb7)](_0x435f74(0xc1));}),_0x464aee;}[_0x59f102(0x7f)](){const _0x225dea=_0x59f102,_0x285989=new _0x30157b(this[_0x225dea(0xa3)]);return _0x285989[_0x225dea(0x7d)]({'icon':_0x299c31,'label':_0x1a1307(this[_0x225dea(0xa3)],_0x225dea(0xba)),'isVisible':!0x0}),_0x285989['on'](_0x225dea(0xc2),()=>{const _0x3e302a=_0x225dea;this[_0x3e302a(0xb7)](_0x3e302a(0x95));}),_0x285989;}}function _0x28b1(_0x4c77f9,_0x51e643){const _0x980924=_0x9809();return _0x28b1=function(_0x28b19f,_0x17fd47){_0x28b19f=_0x28b19f-0x7d;let _0x2db4f6=_0x980924[_0x28b19f];return _0x2db4f6;},_0x28b1(_0x4c77f9,_0x51e643);}class fs extends _0x8f0391{constructor(_0x59f5a9,_0x461639){const _0x3e0751=_0x59f102;super(_0x59f5a9),this[_0x3e0751(0x9d)]({'tag':_0x3e0751(0x87),'attributes':{'class':[_0x3e0751(0xab)]},'children':_0x461639});}}function _0x9809(){const _0x582e4f=['addMany','change:isTrackChangesOn','_partToolbarView','_keystrokes','4918685rcbadm','showNext','execute','ck-ai-chat-balloon-main_state_','element','pending','_createNextButtonView','has','includes','_streamableContentView','previousButtonView','2YQpaEH','delegate','updateContent','517481QQfaUy','add','6723400dHqBNm','togglePartToolbarEnabled','set','hideError','_createPreviousButtonView','applySuggestion','showBlockingError','5570604IXlycc','_focusables','insertSuggestion','_focusTracker','ck-ai-chat-balloon-main','div','2092220VBEdBm','_isErrorVisible','_miniToolbarView','nextButtonView','44MwiiPb','bindTemplate','_stateView','update','render','1435hKjbiX','_errorView','focusLast','toggleShowChanges','showPrevious','shift\x20+\x20tab','keepErrors','_togglePartToolbarButtonsVisibility','tab','availableActions','focus','4992imtZaF','setTemplate','destroy','setState','setButtonsVisibility','focusCycler','isShowChangesOn','locale','isVisible','toggleSuggestionDisplayMode','children','_toolbarContainerView','isEnabled','showError','focusFirst','ck-ai-chat-balloon__toolbar-container','_state','_config','rejectSuggestion','8YVbzMA','listenTo','AI_BALLOON_NEXT_LABEL','4124883vRkfFX','isTrackChangesOn','showDiff','createCollection','change:_state','fire','toggleRotatorButtonsVisibility','full','AI_BALLOON_PREVIOUS_LABEL','bind'];_0x9809=function(){return _0x582e4f;};return _0x9809();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27d396=_0x393b;(function(_0x41d35e,_0xfbf17){const _0x55990c=_0x393b,_0x26898d=_0x41d35e();while(!![]){try{const _0x26dbf7=-parseInt(_0x55990c(0x1fd))/0x1+-parseInt(_0x55990c(0x1e9))/0x2*(parseInt(_0x55990c(0x211))/0x3)+parseInt(_0x55990c(0x1eb))/0x4*(parseInt(_0x55990c(0x1f0))/0x5)+parseInt(_0x55990c(0x202))/0x6*(parseInt(_0x55990c(0x1f7))/0x7)+-parseInt(_0x55990c(0x229))/0x8*(-parseInt(_0x55990c(0x22a))/0x9)+-parseInt(_0x55990c(0x20b))/0xa+-parseInt(_0x55990c(0x213))/0xb*(-parseInt(_0x55990c(0x1f5))/0xc);if(_0x26dbf7===_0xfbf17)break;else _0x26898d['push'](_0x26898d['shift']());}catch(_0x1c458f){_0x26898d['push'](_0x26898d['shift']());}}}(_0x3af3,0x4492c));import{ButtonView as _0xba3cd,clickOutsideHandler as _0x386047,View as _0x19b2d0}from'ckeditor5/src/ui.js';function _0x3af3(){const _0x19a762=['startConversation','updateResourceState','bindTemplate','_contextPanelView','setIsUploadInProgress','clearCurrentContextItems','closeSourceResourceBalloon','enableModelSelector','setAddContextOptions','ck-ai-chat-controls-disabled','129338VSmdih','queryView','4NfERJI','setPlaceholderText','ck-ai-chat-controls','execute','ck-ai-chat-controls__start-new-chat-button','1618745VCPVTm','_loaderView','bodyCollection','setPromptInputValue','_createPromptCapabilitiesView','12mCWQFz','setContextItemLoading','78134SivUct','populateSourceResourceBalloon','addContextItem','isModelAvailable','_modelUnavailableMessageView','setInputPlaceholder','356814WAaWlj','disableModelSelector','low','delegate','setConversationContext','114CFlyhU','div','setWebSearch','setTemplate','ck-ai-chat-controls-model-unavailable-message','addContextButtonView','clearConversationContextItems','isDisabled','toggleWebSearch','1553150cUeGBh','focus','_promptCapabilitiesView','_createModelUnavailableMessageView','setModel','clearConversationContextUI','15ZoWRyJ','abortPromptStream','6128254fgVgKA','_createPromptInputView','_shouldRestorePromptInputFocus','fieldView','setReasoning','sendUserMessage','removeContextItem','change:isLoading','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','form','element','value','reset','selectModel','ck-hidden','resetMessageInput','_createContextPanelView','setModelList','clearPendingContextUI','focusPromptInput','isLoading','_promptInputView','408qzMYnb','4131hXdHfE','set','locale','toggleReasoning','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createLoaderView','_handlePromptInputFocus','contextResourcesSearchInputVisibleFrom'];_0x3af3=function(){return _0x19a762;};return _0x3af3();}function _0x393b(_0x5616cf,_0x42dab5){const _0x3af339=_0x3af3();return _0x393b=function(_0x393b7e,_0x2d6167){_0x393b7e=_0x393b7e-0x1df;let _0xfca07b=_0x3af339[_0x393b7e];return _0xfca07b;},_0x393b(_0x5616cf,_0x42dab5);}import{AIChatPromptInputView as _0x4d94fd}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x1ddcf7}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4c9a0a,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x356ee7}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2b5284}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x294593}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';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x19b2d0{[_0x27d396(0x1e2)];[_0x27d396(0x228)];[_0x27d396(0x20d)];[_0x27d396(0x1f1)];[_0x27d396(0x1fb)];[_0x27d396(0x215)];constructor(_0x3d7b49,_0x553ac4){const _0x4a60ba=_0x27d396;super(_0x3d7b49),this[_0x4a60ba(0x1e2)]=this[_0x4a60ba(0x223)](_0x3d7b49,{'bodyCollection':_0x553ac4[_0x4a60ba(0x1f2)],'searchInputVisibleFrom':_0x553ac4[_0x4a60ba(0x231)]}),this[_0x4a60ba(0x228)]=this[_0x4a60ba(0x214)](_0x3d7b49),this[_0x4a60ba(0x20d)]=this[_0x4a60ba(0x1f4)](_0x3d7b49),this[_0x4a60ba(0x1f1)]=this[_0x4a60ba(0x22f)](_0x3d7b49),this[_0x4a60ba(0x1fb)]=this[_0x4a60ba(0x20e)](_0x3d7b49),this[_0x4a60ba(0x215)]=!0x1,this[_0x4a60ba(0x228)][_0x4a60ba(0x200)](_0x4a60ba(0x218))['to'](this),this[_0x4a60ba(0x1f1)][_0x4a60ba(0x200)](_0x4a60ba(0x212))['to'](this),this[_0x4a60ba(0x20d)][_0x4a60ba(0x200)](_0x4a60ba(0x20a))['to'](this),this[_0x4a60ba(0x20d)][_0x4a60ba(0x200)](_0x4a60ba(0x22d))['to'](this),this[_0x4a60ba(0x20d)][_0x4a60ba(0x200)](_0x4a60ba(0x220))['to'](this),this[_0x4a60ba(0x1e2)][_0x4a60ba(0x200)](..._0x356ee7)['to'](this),this[_0x4a60ba(0x22b)](_0x4a60ba(0x1fa),!0x0),this[_0x4a60ba(0x22b)](_0x4a60ba(0x209),!0x1);const _0x49e7d4=this[_0x4a60ba(0x1e1)];this[_0x4a60ba(0x205)]({'tag':_0x4a60ba(0x21c),'attributes':{'class':['ck',_0x4a60ba(0x1ed),_0x49e7d4['if'](_0x4a60ba(0x209),_0x4a60ba(0x1e8))]},'children':[{'tag':_0x4a60ba(0x203),'attributes':{'class':[_0x49e7d4['if'](_0x4a60ba(0x227),_0x4a60ba(0x221),_0x1ead23=>_0x1ead23||!this[_0x4a60ba(0x1fa)]),_0x49e7d4['if'](_0x4a60ba(0x1fa),_0x4a60ba(0x221),_0x348bf4=>!_0x348bf4||this[_0x4a60ba(0x227)])]},'children':[this[_0x4a60ba(0x1e2)],this[_0x4a60ba(0x228)],this[_0x4a60ba(0x20d)]]},{'tag':_0x4a60ba(0x203),'attributes':{'class':[_0x49e7d4['if'](_0x4a60ba(0x227),_0x4a60ba(0x221),_0x5d8560=>!_0x5d8560)]},'children':[this[_0x4a60ba(0x1f1)]]},{'tag':_0x4a60ba(0x203),'attributes':{'class':[_0x49e7d4['if'](_0x4a60ba(0x1fa),_0x4a60ba(0x221),_0x14f902=>_0x14f902)]},'children':[this[_0x4a60ba(0x1fb)]]}]}),_0x386047({'emitter':this[_0x4a60ba(0x228)],'activator':()=>this[_0x4a60ba(0x227)],'contextElements':()=>[this[_0x4a60ba(0x21d)]],'callback':()=>{const _0x1b0ff3=_0x4a60ba;this[_0x1b0ff3(0x215)]=!0x1;}}),this['on'](_0x4a60ba(0x21a),this[_0x4a60ba(0x230)],{'priority':_0x4a60ba(0x1ff)});}[_0x27d396(0x223)](_0x4ebaee,_0x4915ec){return new _0x4c9a0a(_0x4ebaee,_0x4915ec);}[_0x27d396(0x214)](_0x51e1ba){const _0x34981a=_0x27d396;return new _0x4d94fd(_0x51e1ba,this[_0x34981a(0x1e2)][_0x34981a(0x207)]);}[_0x27d396(0x1f4)](_0x35ab89){return new _0x1ddcf7(_0x35ab89);}[_0x27d396(0x22f)](_0x30820b){return new _0x2b5284(_0x30820b);}[_0x27d396(0x20e)](_0x2475a5){const _0x189c6e=_0x27d396,_0x2653ba=new As(_0x2475a5);return _0x2653ba[_0x189c6e(0x200)](_0x189c6e(0x1df))['to'](this),_0x2653ba;}[_0x27d396(0x230)](_0x5adff5,_0xff65c,_0x3b261f){const _0x50fac0=_0x27d396;_0x3b261f?this[_0x50fac0(0x215)]=!0x0:this[_0x50fac0(0x215)]&&this[_0x50fac0(0x228)][_0x50fac0(0x20c)]();}[_0x27d396(0x1f9)](_0x1d9022,_0x2683ca){const _0xffb7d5=_0x27d396;this[_0xffb7d5(0x1e2)][_0xffb7d5(0x1f9)](_0x1d9022,_0x2683ca);}[_0x27d396(0x219)](_0x264925){const _0x38e3d2=_0x27d396;this[_0x38e3d2(0x1e2)][_0x38e3d2(0x219)](_0x264925);}[_0x27d396(0x1f6)](_0x56bcde,_0x286578){const _0x5e2a93=_0x27d396;this[_0x5e2a93(0x1e2)][_0x5e2a93(0x1f6)](_0x56bcde,_0x286578);}[_0x27d396(0x1e3)](_0x1062bc){const _0x2ab783=_0x27d396;this[_0x2ab783(0x228)][_0x2ab783(0x1e3)](_0x1062bc);}[_0x27d396(0x201)](_0x2e2082){const _0x5ce588=_0x27d396;this[_0x5ce588(0x1e2)][_0x5ce588(0x201)](_0x2e2082);}[_0x27d396(0x225)](){const _0x2c625c=_0x27d396;this[_0x2c625c(0x1e2)][_0x2c625c(0x1e4)]();}[_0x27d396(0x210)](){const _0x146173=_0x27d396;this[_0x146173(0x1e2)][_0x146173(0x208)]();}[_0x27d396(0x1e0)](_0x3bf089,_0x2be1a9,_0xd9b636){const _0x56ab75=_0x27d396;this[_0x56ab75(0x1e2)][_0x56ab75(0x1e0)](_0x3bf089,_0x2be1a9,_0xd9b636);}[_0x27d396(0x204)](_0x4060e6){const _0x2d382d=_0x27d396;this[_0x2d382d(0x20d)][_0x2d382d(0x204)](_0x4060e6);}[_0x27d396(0x217)](_0x5cef5b){const _0x272f98=_0x27d396;this[_0x272f98(0x20d)][_0x272f98(0x217)](_0x5cef5b);}[_0x27d396(0x222)](){const _0x37bb20=_0x27d396;this[_0x37bb20(0x228)][_0x37bb20(0x21f)]();}[_0x27d396(0x1e7)](_0xfcaa8b){const _0x2172c0=_0x27d396;this[_0x2172c0(0x1e2)][_0x2172c0(0x1e7)](_0xfcaa8b);}[_0x27d396(0x1fc)](_0x3d5601){const _0x47009b=_0x27d396;this[_0x47009b(0x228)][_0x47009b(0x1ec)](_0x3d5601);}[_0x27d396(0x224)](_0x3923d1,_0xff7799){const _0x1db4fd=_0x27d396;this[_0x1db4fd(0x20d)][_0x1db4fd(0x224)](_0x3923d1,_0xff7799);}[_0x27d396(0x20f)](_0x8accd2){const _0x38c5f8=_0x27d396;_0x8accd2?(this[_0x38c5f8(0x1fa)]=!0x0,this[_0x38c5f8(0x20d)][_0x38c5f8(0x20f)](_0x8accd2)):this[_0x38c5f8(0x1fa)]=!0x1;}[_0x27d396(0x1e6)](){const _0x351f27=_0x27d396;this[_0x351f27(0x20d)][_0x351f27(0x1e6)]();}[_0x27d396(0x1fe)](_0x29888b){const _0x87e2f1=_0x27d396;this[_0x87e2f1(0x20d)][_0x87e2f1(0x1fe)](_0x29888b);}[_0x27d396(0x1f8)](_0x4633bb,_0xff5a2,_0x5ca800,_0xc37f69){const _0x11e417=_0x27d396;this[_0x11e417(0x1e2)][_0x11e417(0x1f8)](_0x4633bb,_0xff5a2,_0x5ca800,_0xc37f69);}[_0x27d396(0x1e5)](_0x49e4b2){const _0x2e7682=_0x27d396;this[_0x2e7682(0x1e2)][_0x2e7682(0x1e5)](_0x49e4b2);}[_0x27d396(0x226)](_0x2998fd=!0x1){const _0xe1935d=_0x27d396;this[_0xe1935d(0x228)][_0xe1935d(0x20c)](_0x2998fd);}[_0x27d396(0x1f3)](_0x360737){const _0x24d151=_0x27d396;this[_0x24d151(0x228)][_0x24d151(0x1ea)][_0x24d151(0x216)][_0x24d151(0x21f)](),this[_0x24d151(0x228)][_0x24d151(0x1ea)][_0x24d151(0x216)][_0x24d151(0x21e)]=_0x360737;}}class As extends _0x19b2d0{constructor(_0x986bbb){const _0x48f67e=_0x27d396;super(_0x986bbb);const _0x38f1f7=new _0xba3cd(_0x986bbb);_0x38f1f7[_0x48f67e(0x22b)]({'label':_0x294593(this[_0x48f67e(0x22c)],_0x48f67e(0x22e)),'withText':!0x0,'class':[_0x48f67e(0x1ef)],'tooltip':''}),_0x38f1f7[_0x48f67e(0x200)](_0x48f67e(0x1ee))['to'](this,_0x48f67e(0x1df)),this[_0x48f67e(0x205)]({'tag':_0x48f67e(0x203),'attributes':{'class':['ck',_0x48f67e(0x206)]},'children':[{'tag':'p','children':[{'text':_0x294593(this[_0x48f67e(0x22c)],_0x48f67e(0x21b))+'\x20'},_0x38f1f7]}]});}}
23
+ const _0x45f70b=_0x3adb;function _0xb3a4(){const _0x3fadb6=['reset','clearConversationContextItems','abortPromptStream','disableModelSelector','focus','ck-ai-chat-controls-model-unavailable-message','updateResourceState','setAddContextOptions','div','change:isLoading','2045048ttuTxj','553cMdwuk','isModelAvailable','_createLoaderView','closeSourceResourceBalloon','_createContextPanelView','55xuWeRa','187588rocydy','setPlaceholderText','setTemplate','setContextItemLoading','element','locale','_createModelUnavailableMessageView','selectModel','_handlePromptInputFocus','ck-ai-chat-controls','1548EHyJzL','setModel','_modelUnavailableMessageView','contextResourcesSearchInputVisibleFrom','_promptCapabilitiesView','setIsUploadInProgress','queryView','clearPendingContextUI','startConversation','1032752VgIZbB','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','47706gDpKok','_createPromptCapabilitiesView','sendUserMessage','toggleWebSearch','ck-ai-chat-controls-disabled','_contextPanelView','low','setConversationContext','isLoading','bindTemplate','setReasoning','addContextButtonView','_loaderView','fieldView','setModelList','enableModelSelector','clearConversationContextUI','form','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','isDisabled','31743270XTnGfj','1798866UdsoOc','setWebSearch','removeContextItem','_createPromptInputView','1548yPpGkc','resetMessageInput','_shouldRestorePromptInputFocus','value','set','addContextItem','populateSourceResourceBalloon','clearCurrentContextItems','delegate','bodyCollection','focusPromptInput','setInputPlaceholder','execute','_promptInputView','ck-ai-chat-controls__start-new-chat-button','setPromptInputValue','toggleReasoning'];_0xb3a4=function(){return _0x3fadb6;};return _0xb3a4();}(function(_0x337e2c,_0x331881){const _0x4241d2=_0x3adb,_0x45ee78=_0x337e2c();while(!![]){try{const _0x28c8fe=-parseInt(_0x4241d2(0x1f6))/0x1+-parseInt(_0x4241d2(0x212))/0x2*(parseInt(_0x4241d2(0x1ed))/0x3)+-parseInt(_0x4241d2(0x1e3))/0x4*(parseInt(_0x4241d2(0x1e2))/0x5)+parseInt(_0x4241d2(0x1f9))/0x6*(-parseInt(_0x4241d2(0x1dd))/0x7)+-parseInt(_0x4241d2(0x1dc))/0x8+parseInt(_0x4241d2(0x20e))/0x9+parseInt(_0x4241d2(0x20d))/0xa;if(_0x28c8fe===_0x331881)break;else _0x45ee78['push'](_0x45ee78['shift']());}catch(_0x5cef9d){_0x45ee78['push'](_0x45ee78['shift']());}}}(_0xb3a4,0x846e6));import{ButtonView as _0x40c9a5,clickOutsideHandler as _0x2a9f90,View as _0x586c38}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x3328c6}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x32627b}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x84d22b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x478452}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x3516fe}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x57b166}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';function _0x3adb(_0x58a385,_0x1a220e){const _0xb3a43b=_0xb3a4();return _0x3adb=function(_0x3adb1f,_0x132a10){_0x3adb1f=_0x3adb1f-0x1c9;let _0x1a2236=_0xb3a43b[_0x3adb1f];return _0x1a2236;},_0x3adb(_0x58a385,_0x1a220e);}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';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x586c38{[_0x45f70b(0x1fe)];[_0x45f70b(0x1ce)];[_0x45f70b(0x1f1)];[_0x45f70b(0x205)];[_0x45f70b(0x1ef)];[_0x45f70b(0x214)];constructor(_0x3db435,_0x10ad30){const _0x201b7c=_0x45f70b;super(_0x3db435),this[_0x201b7c(0x1fe)]=this[_0x201b7c(0x1e1)](_0x3db435,{'bodyCollection':_0x10ad30[_0x201b7c(0x1ca)],'searchInputVisibleFrom':_0x10ad30[_0x201b7c(0x1f0)]}),this[_0x201b7c(0x1ce)]=this[_0x201b7c(0x211)](_0x3db435),this[_0x201b7c(0x1f1)]=this[_0x201b7c(0x1fa)](_0x3db435),this[_0x201b7c(0x205)]=this[_0x201b7c(0x1df)](_0x3db435),this[_0x201b7c(0x1ef)]=this[_0x201b7c(0x1e9)](_0x3db435),this[_0x201b7c(0x214)]=!0x1,this[_0x201b7c(0x1ce)][_0x201b7c(0x1c9)](_0x201b7c(0x1fb))['to'](this),this[_0x201b7c(0x205)][_0x201b7c(0x1c9)](_0x201b7c(0x1d4))['to'](this),this[_0x201b7c(0x1f1)][_0x201b7c(0x1c9)](_0x201b7c(0x1fc))['to'](this),this[_0x201b7c(0x1f1)][_0x201b7c(0x1c9)](_0x201b7c(0x1d1))['to'](this),this[_0x201b7c(0x1f1)][_0x201b7c(0x1c9)](_0x201b7c(0x1ea))['to'](this),this[_0x201b7c(0x1fe)][_0x201b7c(0x1c9)](..._0x478452)['to'](this),this[_0x201b7c(0x216)](_0x201b7c(0x1de),!0x0),this[_0x201b7c(0x216)](_0x201b7c(0x20c),!0x1);const _0x418ef4=this[_0x201b7c(0x202)];this[_0x201b7c(0x1e5)]({'tag':_0x201b7c(0x20a),'attributes':{'class':['ck',_0x201b7c(0x1ec),_0x418ef4['if'](_0x201b7c(0x20c),_0x201b7c(0x1fd))]},'children':[{'tag':_0x201b7c(0x1da),'attributes':{'class':[_0x418ef4['if'](_0x201b7c(0x201),_0x201b7c(0x1f7),_0x3c3c65=>_0x3c3c65||!this[_0x201b7c(0x1de)]),_0x418ef4['if'](_0x201b7c(0x1de),_0x201b7c(0x1f7),_0x440933=>!_0x440933||this[_0x201b7c(0x201)])]},'children':[this[_0x201b7c(0x1fe)],this[_0x201b7c(0x1ce)],this[_0x201b7c(0x1f1)]]},{'tag':_0x201b7c(0x1da),'attributes':{'class':[_0x418ef4['if'](_0x201b7c(0x201),_0x201b7c(0x1f7),_0x42e2ac=>!_0x42e2ac)]},'children':[this[_0x201b7c(0x205)]]},{'tag':_0x201b7c(0x1da),'attributes':{'class':[_0x418ef4['if'](_0x201b7c(0x1de),_0x201b7c(0x1f7),_0x5de5f6=>_0x5de5f6)]},'children':[this[_0x201b7c(0x1ef)]]}]}),_0x2a9f90({'emitter':this[_0x201b7c(0x1ce)],'activator':()=>this[_0x201b7c(0x201)],'contextElements':()=>[this[_0x201b7c(0x1e7)]],'callback':()=>{const _0xdf10a9=_0x201b7c;this[_0xdf10a9(0x214)]=!0x1;}}),this['on'](_0x201b7c(0x1db),this[_0x201b7c(0x1eb)],{'priority':_0x201b7c(0x1ff)});}[_0x45f70b(0x1e1)](_0x14f242,_0x3cdb53){return new _0x84d22b(_0x14f242,_0x3cdb53);}[_0x45f70b(0x211)](_0x53d589){const _0x26604b=_0x45f70b;return new _0x3328c6(_0x53d589,this[_0x26604b(0x1fe)][_0x26604b(0x204)]);}[_0x45f70b(0x1fa)](_0x7f8b7c){return new _0x32627b(_0x7f8b7c);}[_0x45f70b(0x1df)](_0x63550b){return new _0x3516fe(_0x63550b);}[_0x45f70b(0x1e9)](_0x3a555f){const _0x3e57ca=_0x45f70b,_0x2f454e=new As(_0x3a555f);return _0x2f454e[_0x3e57ca(0x1c9)](_0x3e57ca(0x1f5))['to'](this),_0x2f454e;}[_0x45f70b(0x1eb)](_0x5dd076,_0x27b48d,_0x2c95e2){const _0x3d1a3c=_0x45f70b;_0x2c95e2?this[_0x3d1a3c(0x214)]=!0x0:this[_0x3d1a3c(0x214)]&&this[_0x3d1a3c(0x1ce)][_0x3d1a3c(0x1d6)]();}[_0x45f70b(0x217)](_0x384d82,_0x4b4428){const _0x55221a=_0x45f70b;this[_0x55221a(0x1fe)][_0x55221a(0x217)](_0x384d82,_0x4b4428);}[_0x45f70b(0x210)](_0x37cbb3){const _0x62d2f3=_0x45f70b;this[_0x62d2f3(0x1fe)][_0x62d2f3(0x210)](_0x37cbb3);}[_0x45f70b(0x1e6)](_0x20114e,_0x39c28f){const _0x59ca79=_0x45f70b;this[_0x59ca79(0x1fe)][_0x59ca79(0x1e6)](_0x20114e,_0x39c28f);}[_0x45f70b(0x1f2)](_0x428458){const _0x14101a=_0x45f70b;this[_0x14101a(0x1ce)][_0x14101a(0x1f2)](_0x428458);}[_0x45f70b(0x200)](_0x5d068f){const _0x33e588=_0x45f70b;this[_0x33e588(0x1fe)][_0x33e588(0x200)](_0x5d068f);}[_0x45f70b(0x1f4)](){const _0x471b75=_0x45f70b;this[_0x471b75(0x1fe)][_0x471b75(0x219)]();}[_0x45f70b(0x209)](){const _0xdc144c=_0x45f70b;this[_0xdc144c(0x1fe)][_0xdc144c(0x1d3)]();}[_0x45f70b(0x1d8)](_0x29d4c8,_0xe697c6,_0x3215d9){const _0x195a35=_0x45f70b;this[_0x195a35(0x1fe)][_0x195a35(0x1d8)](_0x29d4c8,_0xe697c6,_0x3215d9);}[_0x45f70b(0x20f)](_0x54c246){const _0xc02aa0=_0x45f70b;this[_0xc02aa0(0x1f1)][_0xc02aa0(0x20f)](_0x54c246);}[_0x45f70b(0x203)](_0x12bca3){const _0x2b5d5a=_0x45f70b;this[_0x2b5d5a(0x1f1)][_0x2b5d5a(0x203)](_0x12bca3);}[_0x45f70b(0x213)](){const _0x1cf7c3=_0x45f70b;this[_0x1cf7c3(0x1ce)][_0x1cf7c3(0x1d2)]();}[_0x45f70b(0x1d9)](_0x38a0db){const _0xad1c4c=_0x45f70b;this[_0xad1c4c(0x1fe)][_0xad1c4c(0x1d9)](_0x38a0db);}[_0x45f70b(0x1cc)](_0x185ae9){const _0x20019f=_0x45f70b;this[_0x20019f(0x1ce)][_0x20019f(0x1e4)](_0x185ae9);}[_0x45f70b(0x207)](_0x108086,_0x3b9d7c){const _0xea59f5=_0x45f70b;this[_0xea59f5(0x1f1)][_0xea59f5(0x207)](_0x108086,_0x3b9d7c);}[_0x45f70b(0x1ee)](_0x9ca36d){const _0x20cc8c=_0x45f70b;_0x9ca36d?(this[_0x20cc8c(0x1de)]=!0x0,this[_0x20cc8c(0x1f1)][_0x20cc8c(0x1ee)](_0x9ca36d)):this[_0x20cc8c(0x1de)]=!0x1;}[_0x45f70b(0x208)](){const _0x6d0c0c=_0x45f70b;this[_0x6d0c0c(0x1f1)][_0x6d0c0c(0x208)]();}[_0x45f70b(0x1d5)](_0x2dd6ce){const _0x6de621=_0x45f70b;this[_0x6de621(0x1f1)][_0x6de621(0x1d5)](_0x2dd6ce);}[_0x45f70b(0x218)](_0x465e22,_0x1fc95f,_0x31ed88,_0x2dd77a){const _0x30eb9b=_0x45f70b;this[_0x30eb9b(0x1fe)][_0x30eb9b(0x218)](_0x465e22,_0x1fc95f,_0x31ed88,_0x2dd77a);}[_0x45f70b(0x1e0)](_0x560117){const _0x1e2549=_0x45f70b;this[_0x1e2549(0x1fe)][_0x1e2549(0x1e0)](_0x560117);}[_0x45f70b(0x1cb)](_0x8c0be=!0x1){const _0x5dc6b9=_0x45f70b;this[_0x5dc6b9(0x1ce)][_0x5dc6b9(0x1d6)](_0x8c0be);}[_0x45f70b(0x1d0)](_0x593b4f){const _0x29b8ad=_0x45f70b;this[_0x29b8ad(0x1ce)][_0x29b8ad(0x1f3)][_0x29b8ad(0x206)][_0x29b8ad(0x1d2)](),this[_0x29b8ad(0x1ce)][_0x29b8ad(0x1f3)][_0x29b8ad(0x206)][_0x29b8ad(0x215)]=_0x593b4f;}}class As extends _0x586c38{constructor(_0x2180f6){const _0xb2e831=_0x45f70b;super(_0x2180f6);const _0x4cd385=new _0x40c9a5(_0x2180f6);_0x4cd385[_0xb2e831(0x216)]({'label':_0x57b166(this[_0xb2e831(0x1e8)],_0xb2e831(0x1f8)),'withText':!0x0,'class':[_0xb2e831(0x1cf)],'tooltip':''}),_0x4cd385[_0xb2e831(0x1c9)](_0xb2e831(0x1cd))['to'](this,_0xb2e831(0x1f5)),this[_0xb2e831(0x1e5)]({'tag':_0xb2e831(0x1da),'attributes':{'class':['ck',_0xb2e831(0x1d7)]},'children':[{'tag':'p','children':[{'text':_0x57b166(this[_0xb2e831(0x1e8)],_0xb2e831(0x20b))+'\x20'},_0x4cd385]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x520c8b=_0x4cd2;(function(_0x524bda,_0x56d205){const _0x79f5c0=_0x4cd2,_0x15243d=_0x524bda();while(!![]){try{const _0x5bc73b=-parseInt(_0x79f5c0(0x16d))/0x1+-parseInt(_0x79f5c0(0x17a))/0x2+-parseInt(_0x79f5c0(0x16b))/0x3*(-parseInt(_0x79f5c0(0x177))/0x4)+-parseInt(_0x79f5c0(0x171))/0x5*(-parseInt(_0x79f5c0(0x173))/0x6)+parseInt(_0x79f5c0(0x17d))/0x7*(parseInt(_0x79f5c0(0x174))/0x8)+-parseInt(_0x79f5c0(0x167))/0x9*(parseInt(_0x79f5c0(0x168))/0xa)+-parseInt(_0x79f5c0(0x180))/0xb;if(_0x5bc73b===_0x56d205)break;else _0x15243d['push'](_0x15243d['shift']());}catch(_0x321166){_0x15243d['push'](_0x15243d['shift']());}}}(_0x401b,0x46745));import{ButtonView as _0x5375b0,FormHeaderView as _0x3ac8c2}from'ckeditor5/src/ui.js';import{IconPlus as _0x3252d6,IconAIChat as _0x98cf69}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a7e83}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4bd759}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x3ac8c2{[_0x520c8b(0x179)];[_0x520c8b(0x16f)];constructor(_0x122f6d,_0x2d976c){const _0x1a0c2e=_0x520c8b;super(_0x122f6d,{'label':_0x1a7e83(_0x122f6d,_0x1a0c2e(0x16a)),'class':_0x1a0c2e(0x172),'icon':_0x98cf69}),this[_0x1a0c2e(0x16c)](_0x1a0c2e(0x17e),!0x1),this[_0x1a0c2e(0x179)]=this[_0x1a0c2e(0x176)](_0x122f6d),this[_0x1a0c2e(0x170)][_0x1a0c2e(0x16e)](this[_0x1a0c2e(0x179)]),_0x2d976c&&(this[_0x1a0c2e(0x16f)]=_0x4bd759(_0x122f6d,this),this[_0x1a0c2e(0x170)][_0x1a0c2e(0x16e)](this[_0x1a0c2e(0x16f)]));}[_0x520c8b(0x176)](_0x456146){const _0x381c94=_0x520c8b,_0x349a75=new _0x5375b0(_0x456146);return _0x349a75[_0x381c94(0x16c)]({'label':_0x1a7e83(this[_0x381c94(0x17c)],_0x381c94(0x169)),'withText':!0x0,'icon':_0x3252d6,'class':_0x381c94(0x175)}),_0x349a75['on'](_0x381c94(0x17f),()=>{const _0x53e2c0=_0x381c94;this[_0x53e2c0(0x17b)](_0x53e2c0(0x178));}),_0x349a75;}}function _0x4cd2(_0x13f7e3,_0x412594){const _0x401b38=_0x401b();return _0x4cd2=function(_0x4cd27c,_0x19b352){_0x4cd27c=_0x4cd27c-0x167;let _0x2327be=_0x401b38[_0x4cd27c];return _0x2327be;},_0x4cd2(_0x13f7e3,_0x412594);}function _0x401b(){const _0x316443=['180PoIFyi','149300ZagFqM','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HEADING','9468agwhfF','set','72526GdxnDX','add','resizeButton','children','555765NRhkzn','ck-ai-header\x20ck-ai-header_chat','24eqPeyG','2183696QdYHRF','ck-ai-chat__start-conversation','_createStartConversationButton','356kEyeHN','startConversation','conversationStartButton','970534mysWOO','fire','locale','14pzieAe','isMaximized','execute','1390906DuXdia'];_0x401b=function(){return _0x316443;};return _0x401b();}
23
+ const _0x54b936=_0x1dbb;(function(_0x477fa5,_0x32546f){const _0x1d8d12=_0x1dbb,_0x1906e0=_0x477fa5();while(!![]){try{const _0x3fb870=parseInt(_0x1d8d12(0x12a))/0x1+-parseInt(_0x1d8d12(0x138))/0x2*(parseInt(_0x1d8d12(0x12b))/0x3)+-parseInt(_0x1d8d12(0x137))/0x4+parseInt(_0x1d8d12(0x136))/0x5*(parseInt(_0x1d8d12(0x12c))/0x6)+-parseInt(_0x1d8d12(0x12e))/0x7+-parseInt(_0x1d8d12(0x129))/0x8+-parseInt(_0x1d8d12(0x134))/0x9*(-parseInt(_0x1d8d12(0x135))/0xa);if(_0x3fb870===_0x32546f)break;else _0x1906e0['push'](_0x1906e0['shift']());}catch(_0x4ffd8c){_0x1906e0['push'](_0x1906e0['shift']());}}}(_0x5149,0x35201));function _0x5149(){const _0x27e510=['AI_CHAT_LABEL_NEW_CHAT','startConversation','resizeButton','isMaximized','AI_CHAT_HEADING','_createStartConversationButton','ck-ai-header\x20ck-ai-header_chat','locale','set','2461896MKvjXG','201609NBiPwi','1353ecItjm','18Mwavbz','execute','2291576VJmwZf','ck-ai-chat__start-conversation','add','fire','children','conversationStartButton','324ftclUj','240920wZtQCZ','42895dBQpHw','338212GmoQnS','698OUdPHW'];_0x5149=function(){return _0x27e510;};return _0x5149();}function _0x1dbb(_0x519628,_0x3d9897){const _0x5149ff=_0x5149();return _0x1dbb=function(_0x1dbb26,_0x4d305b){_0x1dbb26=_0x1dbb26-0x127;let _0x18fd69=_0x5149ff[_0x1dbb26];return _0x18fd69;},_0x1dbb(_0x519628,_0x3d9897);}import{ButtonView as _0x48c415,FormHeaderView as _0x43bbb8}from'ckeditor5/src/ui.js';import{IconPlus as _0x1e17ff,IconAIChat as _0x115a63}from'ckeditor5/src/icons.js';import{getTranslation as _0x500989}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x50f118}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x43bbb8{[_0x54b936(0x133)];[_0x54b936(0x13b)];constructor(_0x4f8723,_0x16bbe7){const _0x4f216d=_0x54b936;super(_0x4f8723,{'label':_0x500989(_0x4f8723,_0x4f216d(0x13d)),'class':_0x4f216d(0x13f),'icon':_0x115a63}),this[_0x4f216d(0x128)](_0x4f216d(0x13c),!0x1),this[_0x4f216d(0x133)]=this[_0x4f216d(0x13e)](_0x4f8723),this[_0x4f216d(0x132)][_0x4f216d(0x130)](this[_0x4f216d(0x133)]),_0x16bbe7&&(this[_0x4f216d(0x13b)]=_0x50f118(_0x4f8723,this),this[_0x4f216d(0x132)][_0x4f216d(0x130)](this[_0x4f216d(0x13b)]));}[_0x54b936(0x13e)](_0x26e24c){const _0x2f3482=_0x54b936,_0x106e43=new _0x48c415(_0x26e24c);return _0x106e43[_0x2f3482(0x128)]({'label':_0x500989(this[_0x2f3482(0x127)],_0x2f3482(0x139)),'withText':!0x0,'icon':_0x1e17ff,'class':_0x2f3482(0x12f)}),_0x106e43['on'](_0x2f3482(0x12d),()=>{const _0x563050=_0x2f3482;this[_0x563050(0x131)](_0x563050(0x13a));}),_0x106e43;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xcb54(){const _0x341045=['querySelector','_parentView','slice','appendChild','auto','children','showMoreButton','overflowContainer','style','getComputedStyle','6rwnssZ','width','hide','5897336IcyWxB','_testButtonFit','clientHeight','_makeAncestorsVisible','-9999px','showMoreButtonView','classList','element','opacity','forEach','toLowerCase','visible','block\x20!important','_calculateContainerWidth','position','show','parentElement','getBoundingClientRect','innerHeight','showBalloonPanel','rowDetectionTolerance','_showMoreBalloonPanelView','_createContainerElements','_createMockButton','clear','label','_createShowMoreBalloonPanelView','cssClasses','isOn','_updateBalloonContent','filter','2504568LrdCbJ','clientWidth','boxSizing','zIndex','_createShowMoreButton','_setupVisibilityObserver','hideBalloonPanel','add','.ck-ai-chat','showMoreBalloon','left','_overflowChips','offsetWidth','setContainerElement','destroy','extendTemplate','absolute','length','maxVisibleRows','setTemplate','bottom','_applyOverflowResults','_updateShowMoreButtonVisibility','calculationContainer','_isContainerVisible','none','ck-calculation-container','_createShowMoreButtonView','_restoreAncestorVisibility','body','13885420xvJHuX','visibility','_config','_repinBalloonPanel','top','set','render','_targetContainer','_applyCalculationStyles','_visibleChips','isConnected','_findTargetContainer','undefined','_pendingCalculation','pop','content','disconnect','+\x201','disableAnimationOnEnter','_locale','_handleShowMoreButtonClick','_bodyCollection','7qGmrFx','innerHTML','0px','tagName','remove','_createCalculationContainer','div','_containerElement','border-box','_updateOverflowUI','overflowChips','_showMoreButtonView','createElement','_intersectionObserver','block','visible\x20!important','20HduwON','height','244886cHhSZR','className','button','some','innerWidth','controlsButton','50px','showMoreLabelPrefix','execute','cloneNode','pointerEvents','isIntersecting','textContent','right','includes','3517245BayCFY','_calculateOverflowInContainer','hidden','abs','pin','_distributeChips','isVisible','887496nJHXfn','display','_ancestorsToRestore','observe','918556eYlQzQ','_checkAndHandleOverflow','documentElement','300px','push','_renderChipsAndCountRows','from','reorganizeChips'];_0xcb54=function(){return _0x341045;};return _0xcb54();}const _0x1f2774=_0x3c60;(function(_0x4f9fdf,_0x3911a0){const _0x230341=_0x3c60,_0x268033=_0x4f9fdf();while(!![]){try{const _0x358a2b=-parseInt(_0x230341(0x236))/0x1+parseInt(_0x230341(0x21c))/0x2*(-parseInt(_0x230341(0x248))/0x3)+parseInt(_0x230341(0x1d6))/0x4+-parseInt(_0x230341(0x21a))/0x5*(parseInt(_0x230341(0x232))/0x6)+-parseInt(_0x230341(0x20a))/0x7*(-parseInt(_0x230341(0x24b))/0x8)+-parseInt(_0x230341(0x22b))/0x9+parseInt(_0x230341(0x1f4))/0xa;if(_0x358a2b===_0x3911a0)break;else _0x268033['push'](_0x268033['shift']());}catch(_0x18b69a){_0x268033['push'](_0x268033['shift']());}}}(_0xcb54,0x93ef4));import{View as _0x4b2917,BalloonPanelView as _0x5a078a,ButtonView as _0x38f099,clickOutsideHandler as _0x36aa3b}from'ckeditor5/src/ui.js';import{Collection as _0x22a738}from'ckeditor5/src/utils.js';function _0x3c60(_0x592ffb,_0x229b94){const _0xcb5412=_0xcb54();return _0x3c60=function(_0x3c607a,_0x2e9456){_0x3c607a=_0x3c607a-0x1c7;let _0xff6f94=_0xcb5412[_0x3c607a];return _0xff6f94;},_0x3c60(_0x592ffb,_0x229b94);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x1f2774(0x239);export class AIChatChipsOverflowManager{[_0x1f2774(0x207)];[_0x1f2774(0x1f6)];[_0x1f2774(0x1fd)];[_0x1f2774(0x1e1)];[_0x1f2774(0x215)]=null;[_0x1f2774(0x1cc)]=null;[_0x1f2774(0x211)]=null;[_0x1f2774(0x209)];[_0x1f2774(0x23f)]=null;[_0x1f2774(0x217)]=null;[_0x1f2774(0x201)]=!0x1;constructor(_0x549295,_0x3e76b9,_0x16f15f,_0x30427a,_0x55de17){const _0x37527e=_0x1f2774;this[_0x37527e(0x207)]=_0x549295,this[_0x37527e(0x1fd)]=_0x3e76b9,this[_0x37527e(0x1f6)]={...hn,..._0x16f15f,'cssClasses':{'controlsButton':'','calculationContainer':_0x37527e(0x1f0),..._0x16f15f[_0x37527e(0x1d2)]}},this[_0x37527e(0x1e1)]=new _0x22a738(),this[_0x37527e(0x209)]=_0x30427a,this[_0x37527e(0x23f)]=_0x55de17||null;}[_0x1f2774(0x1e3)](_0x38e966){const _0x5ce55c=_0x1f2774;this[_0x5ce55c(0x217)]&&(this[_0x5ce55c(0x217)][_0x5ce55c(0x204)](),this[_0x5ce55c(0x217)]=null),this[_0x5ce55c(0x211)]=_0x38e966,this[_0x5ce55c(0x1db)]();}get[_0x1f2774(0x250)](){const _0x41da29=_0x1f2774;return this[_0x41da29(0x215)];}get[_0x1f2774(0x214)](){const _0x19f032=_0x1f2774;return this[_0x19f032(0x1e1)];}[_0x1f2774(0x23d)](){requestAnimationFrame(()=>{const _0x3a1eb2=_0x3c60;this[_0x3a1eb2(0x237)]();});}[_0x1f2774(0x1ca)](){const _0x15c2d0=_0x1f2774;this[_0x15c2d0(0x215)]&&this[_0x15c2d0(0x1cc)]&&(this[_0x15c2d0(0x1d4)](),this[_0x15c2d0(0x215)][_0x15c2d0(0x1d3)]=!0x0,this[_0x15c2d0(0x1cc)][_0x15c2d0(0x25a)](),this[_0x15c2d0(0x1cc)][_0x15c2d0(0x22f)]({'target':this[_0x15c2d0(0x215)][_0x15c2d0(0x252)],'limiter':document[_0x15c2d0(0x23e)](_0x15c2d0(0x1de))}));}[_0x1f2774(0x1dc)](){const _0x47b0f3=_0x1f2774;this[_0x47b0f3(0x215)]&&this[_0x47b0f3(0x1cc)]&&(this[_0x47b0f3(0x215)][_0x47b0f3(0x1d3)]=!0x1,this[_0x47b0f3(0x1cc)][_0x47b0f3(0x24a)]());}[_0x1f2774(0x1cf)](){const _0x4f194a=_0x1f2774;this[_0x4f194a(0x1e1)][_0x4f194a(0x1cf)](),this[_0x4f194a(0x1dc)](),this[_0x4f194a(0x1ec)](),this[_0x4f194a(0x215)]&&(this[_0x4f194a(0x215)][_0x4f194a(0x1d0)]=''),this[_0x4f194a(0x1cc)]&&this[_0x4f194a(0x1cc)][_0x4f194a(0x203)][_0x4f194a(0x1cf)]();}[_0x1f2774(0x1e4)](){const _0x45e6cf=_0x1f2774;this[_0x45e6cf(0x217)]&&(this[_0x45e6cf(0x217)][_0x45e6cf(0x204)](),this[_0x45e6cf(0x217)]=null),this[_0x45e6cf(0x215)]&&(this[_0x45e6cf(0x215)][_0x45e6cf(0x1e4)](),this[_0x45e6cf(0x215)]=null),this[_0x45e6cf(0x1cc)]&&(this[_0x45e6cf(0x1cc)][_0x45e6cf(0x1e4)](),this[_0x45e6cf(0x1cc)]=null);}[_0x1f2774(0x237)](){const _0x2f2706=_0x1f2774;if(!this[_0x2f2706(0x211)])return;if(!this[_0x2f2706(0x1ee)]())return void(this[_0x2f2706(0x201)]=!0x0);this[_0x2f2706(0x201)]=!0x1;const _0x437c28=[...this[_0x2f2706(0x1fd)],...this[_0x2f2706(0x1e1)]],_0x988866=this[_0x2f2706(0x20f)](),_0x5c1a44=this[_0x2f2706(0x22c)](_0x988866,_0x437c28),_0x2fdd93=_0x988866[_0x2f2706(0x234)];_0x2fdd93&&this[_0x2f2706(0x1f2)](_0x2fdd93),_0x988866[_0x2f2706(0x20e)](),this[_0x2f2706(0x1eb)](_0x437c28,_0x5c1a44);}[_0x1f2774(0x1da)](){const _0x294e7c=_0x1f2774;this[_0x294e7c(0x215)]=this[_0x294e7c(0x1f1)](),this[_0x294e7c(0x1cc)]=this[_0x294e7c(0x1d1)](),this[_0x294e7c(0x215)][_0x294e7c(0x1fa)](),this[_0x294e7c(0x211)][_0x294e7c(0x241)](this[_0x294e7c(0x215)][_0x294e7c(0x252)]),this[_0x294e7c(0x215)]['on'](_0x294e7c(0x224),()=>{const _0xf113e=_0x294e7c;this[_0xf113e(0x208)]();}),_0x36aa3b({'emitter':this[_0x294e7c(0x1cc)],'contextElements':[this[_0x294e7c(0x1cc)][_0x294e7c(0x252)],this[_0x294e7c(0x215)][_0x294e7c(0x252)]],'callback':()=>this[_0x294e7c(0x1dc)](),'activator':()=>this[_0x294e7c(0x215)][_0x294e7c(0x1d3)]});}[_0x1f2774(0x1f1)](){const _0x39ad39=_0x1f2774,_0x44959e=new _0x38f099(this[_0x39ad39(0x207)]);_0x44959e[_0x39ad39(0x1f9)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4ebb60=[this[_0x39ad39(0x1f6)][_0x39ad39(0x1d2)][_0x39ad39(0x244)]];return this[_0x39ad39(0x1f6)][_0x39ad39(0x1d2)][_0x39ad39(0x221)]&&_0x4ebb60[_0x39ad39(0x23a)](this[_0x39ad39(0x1f6)][_0x39ad39(0x1d2)][_0x39ad39(0x221)]),_0x44959e[_0x39ad39(0x1e5)]({'attributes':{'class':_0x4ebb60}}),_0x44959e;}[_0x1f2774(0x1d1)](){const _0x515ded=_0x1f2774,_0x3445e1=new _0x5a078a(this[_0x515ded(0x207)]);return _0x3445e1[_0x515ded(0x1e5)]({'attributes':{'class':this[_0x515ded(0x1f6)][_0x515ded(0x1d2)][_0x515ded(0x1df)]}}),this[_0x515ded(0x209)][_0x515ded(0x1dd)](_0x3445e1),_0x3445e1;}[_0x1f2774(0x1d4)](){const _0x2a3393=_0x1f2774;if(this[_0x2a3393(0x1cc)]&&(this[_0x2a3393(0x1cc)][_0x2a3393(0x203)][_0x2a3393(0x1cf)](),this[_0x2a3393(0x1e1)][_0x2a3393(0x1e7)]>0x0)){this[_0x2a3393(0x1e1)][_0x2a3393(0x254)](_0x9dfd77=>{const _0x3e78c1=_0x2a3393;_0x9dfd77[_0x3e78c1(0x206)]();});const _0x4ab6e7=new _0x4b2917(this[_0x2a3393(0x207)]);_0x4ab6e7[_0x2a3393(0x1e9)]({'tag':_0x2a3393(0x210),'attributes':{'class':this[_0x2a3393(0x1f6)][_0x2a3393(0x1d2)][_0x2a3393(0x245)]},'children':this[_0x2a3393(0x1e1)]}),this[_0x2a3393(0x1cc)][_0x2a3393(0x203)][_0x2a3393(0x1dd)](_0x4ab6e7);}}[_0x1f2774(0x208)](){const _0x49d9eb=_0x1f2774;this[_0x49d9eb(0x215)][_0x49d9eb(0x1d3)]?this[_0x49d9eb(0x1dc)]():this[_0x49d9eb(0x1ca)]();}[_0x1f2774(0x1ec)](){const _0x49643c=_0x1f2774,_0x3a77d2=this[_0x49643c(0x1e1)][_0x49643c(0x1e7)]>0x0;this[_0x49643c(0x215)]?.[_0x49643c(0x252)]&&(this[_0x49643c(0x215)][_0x49643c(0x252)][_0x49643c(0x246)][_0x49643c(0x233)]=_0x3a77d2?'':_0x49643c(0x1ef));}[_0x1f2774(0x1f7)](){const _0x3b2189=_0x1f2774;this[_0x3b2189(0x215)]?.[_0x3b2189(0x1d3)]&&this[_0x3b2189(0x1cc)]?.[_0x3b2189(0x231)]&&this[_0x3b2189(0x215)][_0x3b2189(0x252)]&&this[_0x3b2189(0x1cc)][_0x3b2189(0x22f)]({'target':this[_0x3b2189(0x215)][_0x3b2189(0x252)],'limiter':document[_0x3b2189(0x23e)](_0x3b2189(0x1de))});}[_0x1f2774(0x1ff)](_0x32b3d5){const _0x792380=_0x1f2774,_0xb83f63=this[_0x792380(0x211)]?.[_0x792380(0x20d)][_0x792380(0x255)]()||_0x792380(0x210),_0xe83577=this[_0x792380(0x211)]?.[_0x792380(0x251)];if(_0xe83577){const _0x11b9b9=_0xe83577[0x0]||'',_0xf3778a=_0x32b3d5[_0x792380(0x23e)]('.'+_0x11b9b9),_0x358a60=_0x32b3d5[_0x792380(0x23e)](_0xb83f63);return _0xf3778a||_0x358a60||_0x32b3d5;}return _0x32b3d5[_0x792380(0x23e)](_0xb83f63)||_0x32b3d5;}[_0x1f2774(0x258)](){const _0x5a55b3=_0x1f2774,_0x41626b=this[_0x5a55b3(0x23f)]?.[_0x5a55b3(0x252)]||this[_0x5a55b3(0x211)];if(!_0x41626b)return an;const _0x54f623=window[_0x5a55b3(0x247)](_0x41626b)[_0x5a55b3(0x249)];if(_0x5a55b3(0x242)===_0x54f623||_0x5a55b3(0x20c)===_0x54f623||!_0x54f623){const _0x30d3c3=_0x41626b[_0x5a55b3(0x1c7)];if(_0x30d3c3){const _0x5c7c95=window[_0x5a55b3(0x247)](_0x30d3c3);return _0x5a55b3(0x242)!==_0x5c7c95[_0x5a55b3(0x249)]?_0x5c7c95[_0x5a55b3(0x249)]:an;}return an;}return _0x54f623;}[_0x1f2774(0x1fc)](_0x4994aa,_0x363179){const _0x383609=_0x1f2774;this[_0x383609(0x1f6)][_0x383609(0x1d2)][_0x383609(0x1ed)]&&_0x4994aa[_0x383609(0x251)][_0x383609(0x1dd)](this[_0x383609(0x1f6)][_0x383609(0x1d2)][_0x383609(0x1ed)]),_0x4994aa[_0x383609(0x246)][_0x383609(0x249)]=_0x363179,_0x4994aa[_0x383609(0x246)][_0x383609(0x259)]=_0x383609(0x1e6),_0x4994aa[_0x383609(0x246)][_0x383609(0x1f8)]=_0x383609(0x24f),_0x4994aa[_0x383609(0x246)][_0x383609(0x1e0)]=_0x383609(0x24f),_0x4994aa[_0x383609(0x246)][_0x383609(0x253)]='0',_0x4994aa[_0x383609(0x246)][_0x383609(0x226)]=_0x383609(0x1ef),_0x4994aa[_0x383609(0x246)][_0x383609(0x1d9)]='-1',_0x4994aa[_0x383609(0x246)][_0x383609(0x1f5)]=_0x383609(0x219),_0x4994aa[_0x383609(0x246)][_0x383609(0x233)]=_0x383609(0x257),_0x4994aa[_0x383609(0x246)][_0x383609(0x1d8)]=_0x383609(0x212);}[_0x1f2774(0x1f2)](_0x1e777a){const _0x525303=_0x1f2774;_0x1e777a[_0x525303(0x254)](({element:_0x22c1fa,originalDisplay:_0x15d736,originalVisibility:_0x1f49c5})=>{const _0x19defe=_0x525303;_0x22c1fa[_0x19defe(0x246)][_0x19defe(0x233)]=_0x15d736,_0x22c1fa[_0x19defe(0x246)][_0x19defe(0x1f5)]=_0x1f49c5;});}[_0x1f2774(0x24e)](_0x262669){const _0x4fda03=_0x1f2774,_0x2e1e46=[];let _0x274798=_0x262669;for(;_0x274798&&_0x274798!==document[_0x4fda03(0x1f3)];){const _0x551057=window[_0x4fda03(0x247)](_0x274798);_0x4fda03(0x1ef)!==_0x551057[_0x4fda03(0x233)]&&_0x4fda03(0x22d)!==_0x551057[_0x4fda03(0x1f5)]||(_0x2e1e46[_0x4fda03(0x23a)]({'element':_0x274798,'originalDisplay':_0x274798[_0x4fda03(0x246)][_0x4fda03(0x233)],'originalVisibility':_0x274798[_0x4fda03(0x246)][_0x4fda03(0x1f5)]}),_0x274798[_0x4fda03(0x246)][_0x4fda03(0x233)]=_0x4fda03(0x218),_0x274798[_0x4fda03(0x246)][_0x4fda03(0x1f5)]=_0x4fda03(0x256)),_0x274798=_0x274798[_0x4fda03(0x1c7)];}return _0x2e1e46;}[_0x1f2774(0x1cd)](){const _0x22232e=_0x1f2774;let _0x15b3d3,_0xafc5d9;return this[_0x22232e(0x23f)]?.[_0x22232e(0x252)]?(_0x15b3d3=this[_0x22232e(0x23f)][_0x22232e(0x252)][_0x22232e(0x225)](!0x0),_0xafc5d9=this[_0x22232e(0x1ff)](_0x15b3d3)):(_0x15b3d3=document[_0x22232e(0x216)](_0x22232e(0x210)),_0xafc5d9=_0x15b3d3),{'calculationContainer':_0x15b3d3,'targetContainer':_0xafc5d9};}[_0x1f2774(0x20f)](){const _0x11c3d9=_0x1f2774,{calculationContainer:_0x30a20d,targetContainer:_0x4ee5a9}=this[_0x11c3d9(0x1cd)](),_0x442541=this[_0x11c3d9(0x258)]();this[_0x11c3d9(0x1fc)](_0x30a20d,_0x442541);const _0x300c4b=this[_0x11c3d9(0x23f)]?.[_0x11c3d9(0x252)]||this[_0x11c3d9(0x211)],_0x541577=_0x300c4b?.[_0x11c3d9(0x1c7)];_0x541577?_0x541577[_0x11c3d9(0x241)](_0x30a20d):document[_0x11c3d9(0x1f3)][_0x11c3d9(0x241)](_0x30a20d),_0x30a20d[_0x11c3d9(0x1fb)]=_0x4ee5a9;const _0x26c492=this[_0x11c3d9(0x24e)](_0x541577||null);return _0x30a20d[_0x11c3d9(0x1e2)],_0x30a20d[_0x11c3d9(0x234)]=_0x26c492,_0x30a20d;}[_0x1f2774(0x22c)](_0x57b458,_0x84a5d9){const _0x417459=_0x1f2774,_0xf012a5=_0x57b458[_0x417459(0x1fb)]||_0x57b458,_0x395751=[],{rowCount:_0x2d5c11}=this[_0x417459(0x23b)](_0xf012a5,_0x84a5d9);if(_0x2d5c11<=this[_0x417459(0x1f6)][_0x417459(0x1e8)])return _0x395751;const _0x42c4cb=_0x84a5d9[_0x417459(0x240)]();for(;_0x42c4cb[_0x417459(0x1e7)]>0x0;){if(this[_0x417459(0x24c)](_0x57b458,_0xf012a5,_0x42c4cb)){const _0x4b85f0=_0x84a5d9[_0x417459(0x1d5)](_0x547af5=>!_0x42c4cb[_0x417459(0x22a)](_0x547af5));_0x395751[_0x417459(0x23a)](..._0x4b85f0);break;}if(!_0x42c4cb[_0x417459(0x202)]())break;}return _0x395751;}[_0x1f2774(0x23b)](_0x454259,_0x1c231c){const _0x2e2bcd=_0x1f2774;_0x454259[_0x2e2bcd(0x20b)]='',_0x1c231c[_0x2e2bcd(0x254)](_0x38e686=>{const _0x33e835=_0x2e2bcd;if(_0x38e686[_0x33e835(0x252)]){const _0x1b1cd2=_0x38e686[_0x33e835(0x252)][_0x33e835(0x225)](!0x0);_0x454259[_0x33e835(0x241)](_0x1b1cd2);}}),_0x454259[_0x2e2bcd(0x1e2)];const _0x307be1=_0x454259[_0x2e2bcd(0x243)],_0x357dcf=[];return Array[_0x2e2bcd(0x23c)](_0x307be1)[_0x2e2bcd(0x254)](_0x36af7b=>{const _0x10e6b8=_0x2e2bcd,_0x3c63b0=_0x36af7b[_0x10e6b8(0x1c8)]()[_0x10e6b8(0x1f8)];_0x357dcf[_0x10e6b8(0x21f)](_0x1a6544=>Math[_0x10e6b8(0x22e)](_0x1a6544-_0x3c63b0)<this[_0x10e6b8(0x1f6)][_0x10e6b8(0x1cb)])||_0x357dcf[_0x10e6b8(0x23a)](_0x3c63b0);}),{'rowCount':_0x357dcf[_0x2e2bcd(0x1e7)]};}[_0x1f2774(0x1ce)](){const _0x24c2e9=_0x1f2774,_0x549b75=document[_0x24c2e9(0x216)](_0x24c2e9(0x21e));return _0x549b75[_0x24c2e9(0x21d)]=this[_0x24c2e9(0x1f6)][_0x24c2e9(0x1d2)][_0x24c2e9(0x244)],this[_0x24c2e9(0x1f6)][_0x24c2e9(0x1d2)][_0x24c2e9(0x221)]&&_0x549b75[_0x24c2e9(0x251)][_0x24c2e9(0x1dd)](this[_0x24c2e9(0x1f6)][_0x24c2e9(0x1d2)][_0x24c2e9(0x221)]),_0x549b75[_0x24c2e9(0x228)]=_0x24c2e9(0x205),_0x549b75;}[_0x1f2774(0x24c)](_0x25c792,_0xba1faa,_0x5f327a){const _0x2d29f8=_0x1f2774;this[_0x2d29f8(0x23b)](_0xba1faa,_0x5f327a);const _0x465e1e=this[_0x2d29f8(0x1ce)]();_0x25c792[_0x2d29f8(0x241)](_0x465e1e),_0x25c792[_0x2d29f8(0x1e2)];const _0x387c16=[..._0xba1faa[_0x2d29f8(0x243)],_0x465e1e],_0x3f3be=[];_0x387c16[_0x2d29f8(0x254)](_0x37aff3=>{const _0x3bc89e=_0x2d29f8,_0x5e90fc=_0x37aff3[_0x3bc89e(0x1c8)]()[_0x3bc89e(0x1f8)];_0x3f3be[_0x3bc89e(0x21f)](_0x373d5a=>Math[_0x3bc89e(0x22e)](_0x373d5a-_0x5e90fc)<this[_0x3bc89e(0x1f6)][_0x3bc89e(0x1cb)])||_0x3f3be[_0x3bc89e(0x23a)](_0x5e90fc);});const _0x213645=_0x3f3be[_0x2d29f8(0x1e7)];return _0x465e1e[_0x2d29f8(0x20e)](),_0x213645<=this[_0x2d29f8(0x1f6)][_0x2d29f8(0x1e8)];}[_0x1f2774(0x230)](_0x79a5eb,_0x438560){const _0x1fea44=_0x1f2774;this[_0x1fea44(0x1fd)][_0x1fea44(0x1cf)](),this[_0x1fea44(0x1e1)][_0x1fea44(0x1cf)](),_0x79a5eb[_0x1fea44(0x254)](_0x22f3e6=>{const _0x4392c1=_0x1fea44;_0x438560[_0x4392c1(0x22a)](_0x22f3e6)?this[_0x4392c1(0x1e1)][_0x4392c1(0x1dd)](_0x22f3e6):this[_0x4392c1(0x1fd)][_0x4392c1(0x1dd)](_0x22f3e6);});}[_0x1f2774(0x213)](_0x2b25ff){const _0x454952=_0x1f2774;if(_0x2b25ff>0x0&&!this[_0x454952(0x215)]&&this[_0x454952(0x1da)](),_0x2b25ff>0x0&&this[_0x454952(0x215)]){const _0x22fdfd=''+this[_0x454952(0x1f6)][_0x454952(0x223)]+(_0x2b25ff<0x63?_0x2b25ff:'99');this[_0x454952(0x215)][_0x454952(0x1d0)]=_0x22fdfd;}this[_0x454952(0x1d4)](),this[_0x454952(0x1ec)](),this[_0x454952(0x1f7)]();}[_0x1f2774(0x1eb)](_0x2d28dc,_0x3f782a){const _0x22c856=_0x1f2774;this[_0x22c856(0x230)](_0x2d28dc,_0x3f782a),this[_0x22c856(0x213)](_0x3f782a[_0x22c856(0x1e7)]);}[_0x1f2774(0x1db)](){const _0x1d1962=_0x1f2774;this[_0x1d1962(0x211)]&&_0x1d1962(0x200)!=typeof IntersectionObserver&&(this[_0x1d1962(0x217)]=new IntersectionObserver(_0xf033af=>{const _0x16f8bf=_0x1d1962;_0xf033af[0x0][_0x16f8bf(0x227)]&&this[_0x16f8bf(0x201)]&&requestAnimationFrame(()=>{const _0x4e0acc=_0x16f8bf;this[_0x4e0acc(0x237)]();});},{'threshold':0.01,'rootMargin':_0x1d1962(0x222)}),this[_0x1d1962(0x217)][_0x1d1962(0x235)](this[_0x1d1962(0x211)]));}[_0x1f2774(0x1ee)](){const _0x4e7e6d=_0x1f2774;if(!this[_0x4e7e6d(0x211)])return!0x1;if(!this[_0x4e7e6d(0x211)][_0x4e7e6d(0x1fe)])return!0x1;const _0x3b724a=this[_0x4e7e6d(0x211)][_0x4e7e6d(0x1c8)]();if(0x0===_0x3b724a[_0x4e7e6d(0x249)]||0x0===_0x3b724a[_0x4e7e6d(0x21b)])return!0x1;const _0x241b15=window[_0x4e7e6d(0x1c9)]||document[_0x4e7e6d(0x238)][_0x4e7e6d(0x24d)],_0x31b404=window[_0x4e7e6d(0x220)]||document[_0x4e7e6d(0x238)][_0x4e7e6d(0x1d7)],_0x3047e8=0xc8;return _0x3b724a[_0x4e7e6d(0x1ea)]>=-0xc8&&_0x3b724a[_0x4e7e6d(0x1f8)]<=_0x241b15+_0x3047e8&&_0x3b724a[_0x4e7e6d(0x229)]>=-0xc8&&_0x3b724a[_0x4e7e6d(0x1e0)]<=_0x31b404+_0x3047e8;}}
23
+ function _0x52d7(_0x1bcf7d,_0xb2d681){const _0x1062a0=_0x1062();return _0x52d7=function(_0x52d7de,_0x489ac3){_0x52d7de=_0x52d7de-0x1be;let _0x5b7046=_0x1062a0[_0x52d7de];return _0x5b7046;},_0x52d7(_0x1bcf7d,_0xb2d681);}function _0x1062(){const _0x566a95=['visible\x20!important','innerHeight','_isContainerVisible','className','_showMoreBalloonPanelView','_targetContainer','_createCalculationContainer','position','21118545wEqwQV','isOn','_repinBalloonPanel','set','innerWidth','body','execute','-9999px','5McfGKf','overflowChips','_makeAncestorsVisible','reorganizeChips','visible','_calculateContainerWidth','includes','bottom','some','element','isConnected','cssClasses','render','hidden','innerHTML','appendChild','left','slice','right','isIntersecting','_checkAndHandleOverflow','_ancestorsToRestore','_overflowChips','undefined','calculationContainer','_setupVisibilityObserver','_testButtonFit','offsetWidth','length','createElement','none','classList','4106501mtnTTQ','boxSizing','textContent','_calculateOverflowInContainer','_createContainerElements','753187EniGoM','controlsButton','getComputedStyle','maxVisibleRows','_config','_createShowMoreButton','+\x201','_handleShowMoreButtonClick','_intersectionObserver','hideBalloonPanel','_restoreAncestorVisibility','block\x20!important','display','hide','showMoreButton','auto','querySelector','setContainerElement','width','from','1039080gxdmZw','_updateBalloonContent','opacity','filter','_visibleChips','showMoreBalloon','_updateOverflowUI','.ck-ai-chat','destroy','pop','ck-calculation-container','documentElement','disableAnimationOnEnter','setTemplate','remove','_showMoreButtonView','children','_findTargetContainer','height','content','_containerElement','overflowContainer','parentElement','getBoundingClientRect','add','pointerEvents','_bodyCollection','pin','show','abs','_createShowMoreButtonView','clientHeight','forEach','isVisible','disconnect','showMoreButtonView','1427752jJsBkz','8280872zvcMRG','0px','label','zIndex','tagName','_updateShowMoreButtonVisibility','button','observe','showBalloonPanel','border-box','_locale','_createShowMoreBalloonPanelView','_renderChipsAndCountRows','showMoreLabelPrefix','300px','cloneNode','_pendingCalculation','_distributeChips','clear','push','extendTemplate','rowDetectionTolerance','style','clientWidth','_createMockButton','div','191746kdOoQx','top','_applyCalculationStyles','_applyOverflowResults','24RVuTfx','_parentView','50px','toLowerCase','visibility','absolute','block'];_0x1062=function(){return _0x566a95;};return _0x1062();}const _0x85efd4=_0x52d7;(function(_0x9543c5,_0x2f4f7d){const _0x1779d1=_0x52d7,_0x24233b=_0x9543c5();while(!![]){try{const _0x465012=parseInt(_0x1779d1(0x1d8))/0x1+parseInt(_0x1779d1(0x22b))/0x2*(parseInt(_0x1779d1(0x22f))/0x3)+parseInt(_0x1779d1(0x210))/0x4*(parseInt(_0x1779d1(0x246))/0x5)+-parseInt(_0x1779d1(0x1ec))/0x6+parseInt(_0x1779d1(0x1d3))/0x7+parseInt(_0x1779d1(0x211))/0x8+-parseInt(_0x1779d1(0x23e))/0x9;if(_0x465012===_0x2f4f7d)break;else _0x24233b['push'](_0x24233b['shift']());}catch(_0x3f8434){_0x24233b['push'](_0x24233b['shift']());}}}(_0x1062,0xef0e8));import{View as _0x5e947e,BalloonPanelView as _0x5a8d6d,ButtonView as _0x4d7f3a,clickOutsideHandler as _0x59730a}from'ckeditor5/src/ui.js';import{Collection as _0x1c5822}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x85efd4(0x21f);export class AIChatChipsOverflowManager{[_0x85efd4(0x21b)];[_0x85efd4(0x1dc)];[_0x85efd4(0x1f0)];[_0x85efd4(0x1c9)];[_0x85efd4(0x1fb)]=null;[_0x85efd4(0x23a)]=null;[_0x85efd4(0x200)]=null;[_0x85efd4(0x206)];[_0x85efd4(0x230)]=null;[_0x85efd4(0x1e0)]=null;[_0x85efd4(0x221)]=!0x1;constructor(_0x1c10ba,_0x3d9120,_0x4def68,_0x19ca67,_0xc0f2ac){const _0x27cb4f=_0x85efd4;this[_0x27cb4f(0x21b)]=_0x1c10ba,this[_0x27cb4f(0x1f0)]=_0x3d9120,this[_0x27cb4f(0x1dc)]={...hn,..._0x4def68,'cssClasses':{'controlsButton':'','calculationContainer':_0x27cb4f(0x1f6),..._0x4def68[_0x27cb4f(0x1be)]}},this[_0x27cb4f(0x1c9)]=new _0x1c5822(),this[_0x27cb4f(0x206)]=_0x19ca67,this[_0x27cb4f(0x230)]=_0xc0f2ac||null;}[_0x85efd4(0x1e9)](_0x1e933f){const _0x424d23=_0x85efd4;this[_0x424d23(0x1e0)]&&(this[_0x424d23(0x1e0)][_0x424d23(0x20e)](),this[_0x424d23(0x1e0)]=null),this[_0x424d23(0x200)]=_0x1e933f,this[_0x424d23(0x1cc)]();}get[_0x85efd4(0x20f)](){const _0x299533=_0x85efd4;return this[_0x299533(0x1fb)];}get[_0x85efd4(0x247)](){const _0x2917e2=_0x85efd4;return this[_0x2917e2(0x1c9)];}[_0x85efd4(0x249)](){requestAnimationFrame(()=>{const _0x23be72=_0x52d7;this[_0x23be72(0x1c7)]();});}[_0x85efd4(0x219)](){const _0x163076=_0x85efd4;this[_0x163076(0x1fb)]&&this[_0x163076(0x23a)]&&(this[_0x163076(0x1ed)](),this[_0x163076(0x1fb)][_0x163076(0x23f)]=!0x0,this[_0x163076(0x23a)][_0x163076(0x208)](),this[_0x163076(0x23a)][_0x163076(0x207)]({'target':this[_0x163076(0x1fb)][_0x163076(0x24f)],'limiter':document[_0x163076(0x1e8)](_0x163076(0x1f3))}));}[_0x85efd4(0x1e1)](){const _0x15d0c1=_0x85efd4;this[_0x15d0c1(0x1fb)]&&this[_0x15d0c1(0x23a)]&&(this[_0x15d0c1(0x1fb)][_0x15d0c1(0x23f)]=!0x1,this[_0x15d0c1(0x23a)][_0x15d0c1(0x1e5)]());}[_0x85efd4(0x223)](){const _0x282284=_0x85efd4;this[_0x282284(0x1c9)][_0x282284(0x223)](),this[_0x282284(0x1e1)](),this[_0x282284(0x216)](),this[_0x282284(0x1fb)]&&(this[_0x282284(0x1fb)][_0x282284(0x213)]=''),this[_0x282284(0x23a)]&&this[_0x282284(0x23a)][_0x282284(0x1ff)][_0x282284(0x223)]();}[_0x85efd4(0x1f4)](){const _0x2f1cc6=_0x85efd4;this[_0x2f1cc6(0x1e0)]&&(this[_0x2f1cc6(0x1e0)][_0x2f1cc6(0x20e)](),this[_0x2f1cc6(0x1e0)]=null),this[_0x2f1cc6(0x1fb)]&&(this[_0x2f1cc6(0x1fb)][_0x2f1cc6(0x1f4)](),this[_0x2f1cc6(0x1fb)]=null),this[_0x2f1cc6(0x23a)]&&(this[_0x2f1cc6(0x23a)][_0x2f1cc6(0x1f4)](),this[_0x2f1cc6(0x23a)]=null);}[_0x85efd4(0x1c7)](){const _0x48434a=_0x85efd4;if(!this[_0x48434a(0x200)])return;if(!this[_0x48434a(0x238)]())return void(this[_0x48434a(0x221)]=!0x0);this[_0x48434a(0x221)]=!0x1;const _0x1f6b38=[...this[_0x48434a(0x1f0)],...this[_0x48434a(0x1c9)]],_0x2823bf=this[_0x48434a(0x23c)](),_0xdc5298=this[_0x48434a(0x1d6)](_0x2823bf,_0x1f6b38),_0x4497f5=_0x2823bf[_0x48434a(0x1c8)];_0x4497f5&&this[_0x48434a(0x1e2)](_0x4497f5),_0x2823bf[_0x48434a(0x1fa)](),this[_0x48434a(0x22e)](_0x1f6b38,_0xdc5298);}[_0x85efd4(0x1dd)](){const _0x45a9bb=_0x85efd4;this[_0x45a9bb(0x1fb)]=this[_0x45a9bb(0x20a)](),this[_0x45a9bb(0x23a)]=this[_0x45a9bb(0x21c)](),this[_0x45a9bb(0x1fb)][_0x45a9bb(0x1bf)](),this[_0x45a9bb(0x200)][_0x45a9bb(0x1c2)](this[_0x45a9bb(0x1fb)][_0x45a9bb(0x24f)]),this[_0x45a9bb(0x1fb)]['on'](_0x45a9bb(0x244),()=>{const _0x4f13e3=_0x45a9bb;this[_0x4f13e3(0x1df)]();}),_0x59730a({'emitter':this[_0x45a9bb(0x23a)],'contextElements':[this[_0x45a9bb(0x23a)][_0x45a9bb(0x24f)],this[_0x45a9bb(0x1fb)][_0x45a9bb(0x24f)]],'callback':()=>this[_0x45a9bb(0x1e1)](),'activator':()=>this[_0x45a9bb(0x1fb)][_0x45a9bb(0x23f)]});}[_0x85efd4(0x20a)](){const _0x36c264=_0x85efd4,_0x29e811=new _0x4d7f3a(this[_0x36c264(0x21b)]);_0x29e811[_0x36c264(0x241)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4080ba=[this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1e6)]];return this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1d9)]&&_0x4080ba[_0x36c264(0x224)](this[_0x36c264(0x1dc)][_0x36c264(0x1be)][_0x36c264(0x1d9)]),_0x29e811[_0x36c264(0x225)]({'attributes':{'class':_0x4080ba}}),_0x29e811;}[_0x85efd4(0x21c)](){const _0x125366=_0x85efd4,_0x27b8ff=new _0x5a8d6d(this[_0x125366(0x21b)]);return _0x27b8ff[_0x125366(0x225)]({'attributes':{'class':this[_0x125366(0x1dc)][_0x125366(0x1be)][_0x125366(0x1f1)]}}),this[_0x125366(0x206)][_0x125366(0x204)](_0x27b8ff),_0x27b8ff;}[_0x85efd4(0x1ed)](){const _0x3590a5=_0x85efd4;if(this[_0x3590a5(0x23a)]&&(this[_0x3590a5(0x23a)][_0x3590a5(0x1ff)][_0x3590a5(0x223)](),this[_0x3590a5(0x1c9)][_0x3590a5(0x1cf)]>0x0)){this[_0x3590a5(0x1c9)][_0x3590a5(0x20c)](_0xbe6c2a=>{const _0x32b2c5=_0x3590a5;_0xbe6c2a[_0x32b2c5(0x1f8)]();});const _0x1465bb=new _0x5e947e(this[_0x3590a5(0x21b)]);_0x1465bb[_0x3590a5(0x1f9)]({'tag':_0x3590a5(0x22a),'attributes':{'class':this[_0x3590a5(0x1dc)][_0x3590a5(0x1be)][_0x3590a5(0x201)]},'children':this[_0x3590a5(0x1c9)]}),this[_0x3590a5(0x23a)][_0x3590a5(0x1ff)][_0x3590a5(0x204)](_0x1465bb);}}[_0x85efd4(0x1df)](){const _0x49e024=_0x85efd4;this[_0x49e024(0x1fb)][_0x49e024(0x23f)]?this[_0x49e024(0x1e1)]():this[_0x49e024(0x219)]();}[_0x85efd4(0x216)](){const _0x4531a5=_0x85efd4,_0x2a80b6=this[_0x4531a5(0x1c9)][_0x4531a5(0x1cf)]>0x0;this[_0x4531a5(0x1fb)]?.[_0x4531a5(0x24f)]&&(this[_0x4531a5(0x1fb)][_0x4531a5(0x24f)][_0x4531a5(0x227)][_0x4531a5(0x1e4)]=_0x2a80b6?'':_0x4531a5(0x1d1));}[_0x85efd4(0x240)](){const _0x3bc5a6=_0x85efd4;this[_0x3bc5a6(0x1fb)]?.[_0x3bc5a6(0x23f)]&&this[_0x3bc5a6(0x23a)]?.[_0x3bc5a6(0x20d)]&&this[_0x3bc5a6(0x1fb)][_0x3bc5a6(0x24f)]&&this[_0x3bc5a6(0x23a)][_0x3bc5a6(0x207)]({'target':this[_0x3bc5a6(0x1fb)][_0x3bc5a6(0x24f)],'limiter':document[_0x3bc5a6(0x1e8)](_0x3bc5a6(0x1f3))});}[_0x85efd4(0x1fd)](_0x477f22){const _0x57064c=_0x85efd4,_0x146bbe=this[_0x57064c(0x200)]?.[_0x57064c(0x215)][_0x57064c(0x232)]()||_0x57064c(0x22a),_0x10f482=this[_0x57064c(0x200)]?.[_0x57064c(0x1d2)];if(_0x10f482){const _0x5bb869=_0x10f482[0x0]||'',_0x463e6f=_0x477f22[_0x57064c(0x1e8)]('.'+_0x5bb869),_0x26b52f=_0x477f22[_0x57064c(0x1e8)](_0x146bbe);return _0x463e6f||_0x26b52f||_0x477f22;}return _0x477f22[_0x57064c(0x1e8)](_0x146bbe)||_0x477f22;}[_0x85efd4(0x24b)](){const _0x3de608=_0x85efd4,_0x3a4895=this[_0x3de608(0x230)]?.[_0x3de608(0x24f)]||this[_0x3de608(0x200)];if(!_0x3a4895)return an;const _0x408261=window[_0x3de608(0x1da)](_0x3a4895)[_0x3de608(0x1ea)];if(_0x3de608(0x1e7)===_0x408261||_0x3de608(0x212)===_0x408261||!_0x408261){const _0x36a193=_0x3a4895[_0x3de608(0x202)];if(_0x36a193){const _0x5984eb=window[_0x3de608(0x1da)](_0x36a193);return _0x3de608(0x1e7)!==_0x5984eb[_0x3de608(0x1ea)]?_0x5984eb[_0x3de608(0x1ea)]:an;}return an;}return _0x408261;}[_0x85efd4(0x22d)](_0x1fd7f5,_0xeaa277){const _0x14f3bb=_0x85efd4;this[_0x14f3bb(0x1dc)][_0x14f3bb(0x1be)][_0x14f3bb(0x1cb)]&&_0x1fd7f5[_0x14f3bb(0x1d2)][_0x14f3bb(0x204)](this[_0x14f3bb(0x1dc)][_0x14f3bb(0x1be)][_0x14f3bb(0x1cb)]),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1ea)]=_0xeaa277,_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x23d)]=_0x14f3bb(0x234),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x22c)]=_0x14f3bb(0x245),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1c3)]=_0x14f3bb(0x245),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1ee)]='0',_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x205)]=_0x14f3bb(0x1d1),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x214)]='-1',_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x233)]=_0x14f3bb(0x236),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1e4)]=_0x14f3bb(0x1e3),_0x1fd7f5[_0x14f3bb(0x227)][_0x14f3bb(0x1d4)]=_0x14f3bb(0x21a);}[_0x85efd4(0x1e2)](_0x795ecf){const _0x3e70bf=_0x85efd4;_0x795ecf[_0x3e70bf(0x20c)](({element:_0x4e54b9,originalDisplay:_0x372871,originalVisibility:_0x1d5d64})=>{const _0x3c6874=_0x3e70bf;_0x4e54b9[_0x3c6874(0x227)][_0x3c6874(0x1e4)]=_0x372871,_0x4e54b9[_0x3c6874(0x227)][_0x3c6874(0x233)]=_0x1d5d64;});}[_0x85efd4(0x248)](_0x1e1cc0){const _0x4aa3a8=_0x85efd4,_0x6bfc8c=[];let _0x423db5=_0x1e1cc0;for(;_0x423db5&&_0x423db5!==document[_0x4aa3a8(0x243)];){const _0x2476a8=window[_0x4aa3a8(0x1da)](_0x423db5);_0x4aa3a8(0x1d1)!==_0x2476a8[_0x4aa3a8(0x1e4)]&&_0x4aa3a8(0x1c0)!==_0x2476a8[_0x4aa3a8(0x233)]||(_0x6bfc8c[_0x4aa3a8(0x224)]({'element':_0x423db5,'originalDisplay':_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x1e4)],'originalVisibility':_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x233)]}),_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x1e4)]=_0x4aa3a8(0x235),_0x423db5[_0x4aa3a8(0x227)][_0x4aa3a8(0x233)]=_0x4aa3a8(0x24a)),_0x423db5=_0x423db5[_0x4aa3a8(0x202)];}return _0x6bfc8c;}[_0x85efd4(0x1d7)](){const _0x192714=_0x85efd4;let _0x26d1bf,_0x362b70;return this[_0x192714(0x230)]?.[_0x192714(0x24f)]?(_0x26d1bf=this[_0x192714(0x230)][_0x192714(0x24f)][_0x192714(0x220)](!0x0),_0x362b70=this[_0x192714(0x1fd)](_0x26d1bf)):(_0x26d1bf=document[_0x192714(0x1d0)](_0x192714(0x22a)),_0x362b70=_0x26d1bf),{'calculationContainer':_0x26d1bf,'targetContainer':_0x362b70};}[_0x85efd4(0x23c)](){const _0x5659bd=_0x85efd4,{calculationContainer:_0x1bd723,targetContainer:_0x372e2e}=this[_0x5659bd(0x1d7)](),_0x2c0cd6=this[_0x5659bd(0x24b)]();this[_0x5659bd(0x22d)](_0x1bd723,_0x2c0cd6);const _0x4985ae=this[_0x5659bd(0x230)]?.[_0x5659bd(0x24f)]||this[_0x5659bd(0x200)],_0x55d8a5=_0x4985ae?.[_0x5659bd(0x202)];_0x55d8a5?_0x55d8a5[_0x5659bd(0x1c2)](_0x1bd723):document[_0x5659bd(0x243)][_0x5659bd(0x1c2)](_0x1bd723),_0x1bd723[_0x5659bd(0x23b)]=_0x372e2e;const _0x3e74fd=this[_0x5659bd(0x248)](_0x55d8a5||null);return _0x1bd723[_0x5659bd(0x1ce)],_0x1bd723[_0x5659bd(0x1c8)]=_0x3e74fd,_0x1bd723;}[_0x85efd4(0x1d6)](_0x4daa21,_0x192dc1){const _0x5a1642=_0x85efd4,_0x113d2e=_0x4daa21[_0x5a1642(0x23b)]||_0x4daa21,_0x1df555=[],{rowCount:_0x243fcc}=this[_0x5a1642(0x21d)](_0x113d2e,_0x192dc1);if(_0x243fcc<=this[_0x5a1642(0x1dc)][_0x5a1642(0x1db)])return _0x1df555;const _0x130e0a=_0x192dc1[_0x5a1642(0x1c4)]();for(;_0x130e0a[_0x5a1642(0x1cf)]>0x0;){if(this[_0x5a1642(0x1cd)](_0x4daa21,_0x113d2e,_0x130e0a)){const _0x4b2442=_0x192dc1[_0x5a1642(0x1ef)](_0x4859fd=>!_0x130e0a[_0x5a1642(0x24c)](_0x4859fd));_0x1df555[_0x5a1642(0x224)](..._0x4b2442);break;}if(!_0x130e0a[_0x5a1642(0x1f5)]())break;}return _0x1df555;}[_0x85efd4(0x21d)](_0xef0fa4,_0x2e058a){const _0xbf2f86=_0x85efd4;_0xef0fa4[_0xbf2f86(0x1c1)]='',_0x2e058a[_0xbf2f86(0x20c)](_0x4366cb=>{const _0x194c73=_0xbf2f86;if(_0x4366cb[_0x194c73(0x24f)]){const _0x46cee6=_0x4366cb[_0x194c73(0x24f)][_0x194c73(0x220)](!0x0);_0xef0fa4[_0x194c73(0x1c2)](_0x46cee6);}}),_0xef0fa4[_0xbf2f86(0x1ce)];const _0x5c26c8=_0xef0fa4[_0xbf2f86(0x1fc)],_0x5aaa36=[];return Array[_0xbf2f86(0x1eb)](_0x5c26c8)[_0xbf2f86(0x20c)](_0x98598d=>{const _0x256c5c=_0xbf2f86,_0x1601fe=_0x98598d[_0x256c5c(0x203)]()[_0x256c5c(0x22c)];_0x5aaa36[_0x256c5c(0x24e)](_0x5b01cf=>Math[_0x256c5c(0x209)](_0x5b01cf-_0x1601fe)<this[_0x256c5c(0x1dc)][_0x256c5c(0x226)])||_0x5aaa36[_0x256c5c(0x224)](_0x1601fe);}),{'rowCount':_0x5aaa36[_0xbf2f86(0x1cf)]};}[_0x85efd4(0x229)](){const _0x1efabb=_0x85efd4,_0x314159=document[_0x1efabb(0x1d0)](_0x1efabb(0x217));return _0x314159[_0x1efabb(0x239)]=this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1e6)],this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1d9)]&&_0x314159[_0x1efabb(0x1d2)][_0x1efabb(0x204)](this[_0x1efabb(0x1dc)][_0x1efabb(0x1be)][_0x1efabb(0x1d9)]),_0x314159[_0x1efabb(0x1d5)]=_0x1efabb(0x1de),_0x314159;}[_0x85efd4(0x1cd)](_0x127b01,_0x58c6b9,_0x1aab91){const _0x3bc795=_0x85efd4;this[_0x3bc795(0x21d)](_0x58c6b9,_0x1aab91);const _0x3be308=this[_0x3bc795(0x229)]();_0x127b01[_0x3bc795(0x1c2)](_0x3be308),_0x127b01[_0x3bc795(0x1ce)];const _0x262b9f=[..._0x58c6b9[_0x3bc795(0x1fc)],_0x3be308],_0x92d32b=[];_0x262b9f[_0x3bc795(0x20c)](_0x48f101=>{const _0xb16bf9=_0x3bc795,_0x23cb5c=_0x48f101[_0xb16bf9(0x203)]()[_0xb16bf9(0x22c)];_0x92d32b[_0xb16bf9(0x24e)](_0x2d8c37=>Math[_0xb16bf9(0x209)](_0x2d8c37-_0x23cb5c)<this[_0xb16bf9(0x1dc)][_0xb16bf9(0x226)])||_0x92d32b[_0xb16bf9(0x224)](_0x23cb5c);});const _0x565351=_0x92d32b[_0x3bc795(0x1cf)];return _0x3be308[_0x3bc795(0x1fa)](),_0x565351<=this[_0x3bc795(0x1dc)][_0x3bc795(0x1db)];}[_0x85efd4(0x222)](_0xca3e4f,_0x489918){const _0x26b4a3=_0x85efd4;this[_0x26b4a3(0x1f0)][_0x26b4a3(0x223)](),this[_0x26b4a3(0x1c9)][_0x26b4a3(0x223)](),_0xca3e4f[_0x26b4a3(0x20c)](_0x49d131=>{const _0x4515b4=_0x26b4a3;_0x489918[_0x4515b4(0x24c)](_0x49d131)?this[_0x4515b4(0x1c9)][_0x4515b4(0x204)](_0x49d131):this[_0x4515b4(0x1f0)][_0x4515b4(0x204)](_0x49d131);});}[_0x85efd4(0x1f2)](_0x2bad59){const _0x4469a7=_0x85efd4;if(_0x2bad59>0x0&&!this[_0x4469a7(0x1fb)]&&this[_0x4469a7(0x1dd)](),_0x2bad59>0x0&&this[_0x4469a7(0x1fb)]){const _0x16e46d=''+this[_0x4469a7(0x1dc)][_0x4469a7(0x21e)]+(_0x2bad59<0x63?_0x2bad59:'99');this[_0x4469a7(0x1fb)][_0x4469a7(0x213)]=_0x16e46d;}this[_0x4469a7(0x1ed)](),this[_0x4469a7(0x216)](),this[_0x4469a7(0x240)]();}[_0x85efd4(0x22e)](_0x12ddc7,_0x17fb69){const _0x10b625=_0x85efd4;this[_0x10b625(0x222)](_0x12ddc7,_0x17fb69),this[_0x10b625(0x1f2)](_0x17fb69[_0x10b625(0x1cf)]);}[_0x85efd4(0x1cc)](){const _0x3b222e=_0x85efd4;this[_0x3b222e(0x200)]&&_0x3b222e(0x1ca)!=typeof IntersectionObserver&&(this[_0x3b222e(0x1e0)]=new IntersectionObserver(_0x1ef1d5=>{const _0x340591=_0x3b222e;_0x1ef1d5[0x0][_0x340591(0x1c6)]&&this[_0x340591(0x221)]&&requestAnimationFrame(()=>{const _0x1c42c0=_0x340591;this[_0x1c42c0(0x1c7)]();});},{'threshold':0.01,'rootMargin':_0x3b222e(0x231)}),this[_0x3b222e(0x1e0)][_0x3b222e(0x218)](this[_0x3b222e(0x200)]));}[_0x85efd4(0x238)](){const _0x23be12=_0x85efd4;if(!this[_0x23be12(0x200)])return!0x1;if(!this[_0x23be12(0x200)][_0x23be12(0x250)])return!0x1;const _0x104248=this[_0x23be12(0x200)][_0x23be12(0x203)]();if(0x0===_0x104248[_0x23be12(0x1ea)]||0x0===_0x104248[_0x23be12(0x1fe)])return!0x1;const _0x3fe796=window[_0x23be12(0x237)]||document[_0x23be12(0x1f7)][_0x23be12(0x20b)],_0x2944e8=window[_0x23be12(0x242)]||document[_0x23be12(0x1f7)][_0x23be12(0x228)],_0x4e2277=0xc8;return _0x104248[_0x23be12(0x24d)]>=-0xc8&&_0x104248[_0x23be12(0x22c)]<=_0x3fe796+_0x4e2277&&_0x104248[_0x23be12(0x1c5)]>=-0xc8&&_0x104248[_0x23be12(0x1c3)]<=_0x2944e8+_0x4e2277;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e4f(){const _0x4bdf8b=['ck-ai-chat-context-chip__type-icon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','1776258gJzaFR','7737422TaWymO','ck-ai-chat-context-chip','element','88oVUyuI','1hRfFLj','webkitAnimationEnd','409338LBeYDj','locale','5740575aopfCf','_isAnimationOnEnterEnabled','div','ck-ai-chat-context-chip__label','readonly','_createTemplateChildren','length','33XHxGrs','disableAnimationOnEnter','_handleAnimationEndOnce','classList','ck-ai-chat-context-chip_new-chip','_createIconView','_initializeProperties','_createLoaderIcon','addEventListener','document','_createTemplateAttributes','uiId','itemType','ck-ai-chat-context-chip_wide','3960630IPBPBs','set','execute','_setupRemoveButtonEvent','add','354423LmSPtI','extendTemplate','ck-ai-chat-context-chip_document','ck-ai-chat-context-controls__chip-tooltip','render','small','_setupTemplate','fire','label','isLoading','_createLabelElement','bindTemplate','span','animationend','content','4UyZXYs','lastIndexOf','type','bind','2317948SuUefr','isVisible','_createRemoveButton','setTemplate','removeEventListener','remove','slice','removeContextItemChip','selection','ck-hidden','tooltip'];_0x3e4f=function(){return _0x4bdf8b;};return _0x3e4f();}const _0x142ca8=_0xc97e;(function(_0x4c1178,_0x479ef1){const _0x1ed594=_0xc97e,_0x5ecae1=_0x4c1178();while(!![]){try{const _0x3c46ff=-parseInt(_0x1ed594(0x1c7))/0x1*(-parseInt(_0x1ed594(0x1b5))/0x2)+-parseInt(_0x1ed594(0x1a2))/0x3+parseInt(_0x1ed594(0x1b1))/0x4*(-parseInt(_0x1ed594(0x188))/0x5)+parseInt(_0x1ed594(0x1c2))/0x6+parseInt(_0x1ed594(0x1c3))/0x7+-parseInt(_0x1ed594(0x1c6))/0x8*(-parseInt(_0x1ed594(0x1c9))/0x9)+parseInt(_0x1ed594(0x19d))/0xa*(-parseInt(_0x1ed594(0x18f))/0xb);if(_0x3c46ff===_0x479ef1)break;else _0x5ecae1['push'](_0x5ecae1['shift']());}catch(_0x48643e){_0x5ecae1['push'](_0x5ecae1['shift']());}}}(_0x3e4f,0x9400c));import{ButtonView as _0x3b97e7,IconView as _0x4de164}from'ckeditor5/src/ui.js';import{IconClose as _0x1cbc12,IconDocument as _0x4ddb49,IconFileUpload as _0x89f286,IconLink as _0x34de3b,IconSelection as _0x3f83ce}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4f7747}from'../../../aicore/utils/common-translations.js';function _0xc97e(_0x13603b,_0x1b428f){const _0x3e4f79=_0x3e4f();return _0xc97e=function(_0xc97ee4,_0x3ccd8d){_0xc97ee4=_0xc97ee4-0x187;let _0x4a732a=_0x3e4f79[_0xc97ee4];return _0x4a732a;},_0xc97e(_0x13603b,_0x1b428f);}import{AISpinnerView as _0x568cb4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x89f286,'document':_0x4ddb49,'web-resource':_0x34de3b,'text':_0x89f286,'selection':_0x3f83ce,'mcp-tool-context':_0x4ddb49},bn=_0x142ca8(0x1c4),wn=_0x142ca8(0x19c),Tn=_0x142ca8(0x1a4),En=_0x142ca8(0x18b),fn=_0x142ca8(0x1c0),An=_0x142ca8(0x1a5),Cn='n';export class AIChatContextItemButtonView extends _0x3b97e7{constructor(_0x4fc534,_0x1465ee,_0xef9889,_0x5d5e7f,_0x1a02eb=!0x1){const _0x41069e=_0x142ca8;super(_0x4fc534),this[_0x41069e(0x189)]=_0x5d5e7f,this[_0x41069e(0x195)](_0x1465ee,_0xef9889,_0x1a02eb),this[_0x41069e(0x1a8)]();}[_0x142ca8(0x1a6)](){const _0x5f044b=_0x142ca8;super[_0x5f044b(0x1a6)](),this[_0x5f044b(0x189)]&&this[_0x5f044b(0x1c5)]&&(this[_0x5f044b(0x1c5)][_0x5f044b(0x192)][_0x5f044b(0x1a1)](_0x5f044b(0x193)),this[_0x5f044b(0x191)](this[_0x5f044b(0x1c5)],()=>{const _0x25a82e=_0x5f044b;this[_0x25a82e(0x1c5)]&&this[_0x25a82e(0x1c5)][_0x25a82e(0x192)][_0x25a82e(0x1ba)](_0x25a82e(0x193));}));}[_0x142ca8(0x190)](){const _0x5cf05d=_0x142ca8;this[_0x5cf05d(0x189)]=!0x1,this[_0x5cf05d(0x1c5)]&&this[_0x5cf05d(0x1c5)][_0x5cf05d(0x192)][_0x5cf05d(0x1ba)](_0x5cf05d(0x193));}[_0x142ca8(0x195)](_0x34360f,_0x3646c4,_0x37ad2b){const _0x189f47=_0x142ca8;this[_0x189f47(0x19e)](_0x189f47(0x1aa),_0x34360f[_0x189f47(0x1aa)]),this[_0x189f47(0x19e)](_0x189f47(0x1bf),!0x0),this[_0x189f47(0x19e)](_0x189f47(0x19b),_0x34360f[_0x189f47(0x1b3)]),this[_0x189f47(0x19e)]('id',_0x34360f[_0x189f47(0x19a)]),this[_0x189f47(0x19e)](_0x189f47(0x18c),_0x3646c4),this[_0x189f47(0x19e)](_0x189f47(0x1ab),_0x37ad2b);}[_0x142ca8(0x1a8)](){const _0x267744=_0x142ca8,_0x54215c=this[_0x267744(0x194)](),_0x1f617f=this[_0x267744(0x1b7)](),_0x46755c=this[_0x267744(0x1ad)];this[_0x267744(0x1b8)]({'tag':_0x267744(0x18a),'attributes':this[_0x267744(0x199)](_0x46755c),'children':this[_0x267744(0x18d)](_0x54215c,_0x1f617f,_0x46755c)});}[_0x142ca8(0x199)](_0x53e738){const _0x5d5649=_0x142ca8;return{'class':[bn,_0x53e738['if'](_0x5d5649(0x19b),Tn,_0xabbb19=>_0x5d5649(0x198)==_0xabbb19),_0x53e738['if'](_0x5d5649(0x19b),wn,_0x26d146=>_0x5d5649(0x1bd)==_0x26d146)],'data-cke-tooltip-text':_0x53e738['to'](_0x5d5649(0x1aa),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x142ca8(0x18d)](_0x3a549c,_0x506f6d,_0x1c67a4){const _0x4864a3=_0x142ca8,_0x349e20=this[_0x4864a3(0x1ac)](_0x1c67a4),_0xd38c89=this[_0x4864a3(0x196)]();return this[_0x4864a3(0x18c)]?[_0x3a549c,_0x349e20]:[_0x3a549c,_0xd38c89,_0x349e20,_0x506f6d];}[_0x142ca8(0x1ac)](_0x5767d1){const _0x4aed14=_0x142ca8;return{'tag':_0x4aed14(0x1ae),'attributes':{'class':En},'children':[{'text':_0x5767d1['to'](_0x4aed14(0x1aa))}]};}[_0x142ca8(0x1b7)](){const _0xbbb3b6=_0x142ca8,_0x3735bb=new _0x3b97e7(this[_0xbbb3b6(0x187)]);return _0x3735bb[_0xbbb3b6(0x19e)]({'label':_0x4f7747(this[_0xbbb3b6(0x187)],_0xbbb3b6(0x1c1)),'icon':_0x1cbc12}),this[_0xbbb3b6(0x1a0)](_0x3735bb),_0x3735bb;}[_0x142ca8(0x1a0)](_0x57aacd){const _0x4d91e8=_0x142ca8;_0x57aacd['on'](_0x4d91e8(0x19f),()=>{const _0x26555b=_0x4d91e8;this[_0x26555b(0x1a9)](_0x26555b(0x1bc),this['id']);});}[_0x142ca8(0x194)](){const _0x65c843=_0x142ca8,_0x446b20=this[_0x65c843(0x1ad)],_0x4a3db3=new _0x4de164();return _0x4a3db3[_0x65c843(0x1b0)]=xn[this[_0x65c843(0x19b)]],_0x4a3db3[_0x65c843(0x1a3)]({'attributes':{'class':[fn,_0x446b20['if'](_0x65c843(0x1ab),_0x65c843(0x1be),_0x29a92c=>_0x29a92c)]}}),_0x4a3db3;}[_0x142ca8(0x191)](_0xf2486f,_0x3db3f0){const _0x52bdb2=_0x142ca8;if(!_0xf2486f)return;const _0x241150=()=>{const _0x36c0c5=_0xc97e;_0x3db3f0(),_0xf2486f[_0x36c0c5(0x1b9)](_0x36c0c5(0x1af),_0x241150),_0xf2486f[_0x36c0c5(0x1b9)](_0x36c0c5(0x1c8),_0x241150);};_0xf2486f[_0x52bdb2(0x197)](_0x52bdb2(0x1af),_0x241150),_0xf2486f[_0x52bdb2(0x197)](_0x52bdb2(0x1c8),_0x241150);}[_0x142ca8(0x196)](){const _0x4cb075=_0x142ca8,_0x2a46c8=new _0x568cb4(_0x4cb075(0x1a7));return _0x2a46c8[_0x4cb075(0x1b4)](_0x4cb075(0x1b6))['to'](this,_0x4cb075(0x1ab),_0xd9d6ad=>_0xd9d6ad),_0x2a46c8;}}function In(_0x3eba7a){const _0x13411a=_0x142ca8;if(!_0x3eba7a)return _0x3eba7a;if(_0x3eba7a[_0x13411a(0x18e)]<=0x78)return _0x3eba7a;const _0x211407=_0x3eba7a[_0x13411a(0x1bb)](0x0,0x78),_0x115a8f=_0x211407[_0x13411a(0x1b2)]('\x20');return(_0x115a8f>0x0?_0x211407[_0x13411a(0x1bb)](0x0,_0x115a8f):_0x211407)+'…';}
23
+ const _0x595de5=_0x3f04;(function(_0x5d93a1,_0x2739ef){const _0x5ed931=_0x3f04,_0x28d142=_0x5d93a1();while(!![]){try{const _0x5cd98b=-parseInt(_0x5ed931(0x10d))/0x1*(parseInt(_0x5ed931(0x105))/0x2)+-parseInt(_0x5ed931(0x102))/0x3+-parseInt(_0x5ed931(0xf7))/0x4*(-parseInt(_0x5ed931(0x122))/0x5)+-parseInt(_0x5ed931(0x112))/0x6+-parseInt(_0x5ed931(0x12f))/0x7*(-parseInt(_0x5ed931(0x132))/0x8)+-parseInt(_0x5ed931(0x12a))/0x9+parseInt(_0x5ed931(0x104))/0xa*(parseInt(_0x5ed931(0x100))/0xb);if(_0x5cd98b===_0x2739ef)break;else _0x28d142['push'](_0x28d142['shift']());}catch(_0x3d94ee){_0x28d142['push'](_0x28d142['shift']());}}}(_0x28f9,0xacaa4));function _0x28f9(){const _0x5e654f=['5BljfFu','element','document','extendTemplate','length','ck-ai-chat-context-controls__chip-tooltip','webkitAnimationEnd','_handleAnimationEndOnce','12108474iaciVW','ck-ai-chat-context-chip_wide','_createLoaderIcon','bind','selection','28vjVxpg','ck-ai-chat-context-chip','_setupRemoveButtonEvent','2665576zEwnJT','render','div','bindTemplate','removeContextItemChip','setTemplate','readonly','_createTemplateChildren','550988HDdGVV','ck-ai-chat-context-chip__label','tooltip','ck-ai-chat-context-chip_new-chip','_setupTemplate','_createIconView','addEventListener','remove','removeEventListener','11ahvHCH','set','2913477QPrdzL','itemType','19731110biFCCs','8SLWwLd','classList','_createRemoveButton','isVisible','_initializeProperties','isLoading','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_isAnimationOnEnterEnabled','38051CnAMJX','_createLabelElement','ck-ai-chat-context-chip_document','add','label','1605966llFpeV','slice','lastIndexOf','type','fire','locale','disableAnimationOnEnter','span','animationend','ck-hidden','small','ck-ai-chat-context-chip__type-icon','execute','content','uiId','_createTemplateAttributes'];_0x28f9=function(){return _0x5e654f;};return _0x28f9();}import{ButtonView as _0xdcbaed,IconView as _0x37d210}from'ckeditor5/src/ui.js';function _0x3f04(_0x2ab2be,_0x4b11a9){const _0x28f9bf=_0x28f9();return _0x3f04=function(_0x3f041b,_0x554232){_0x3f041b=_0x3f041b-0xf4;let _0x2376c9=_0x28f9bf[_0x3f041b];return _0x2376c9;},_0x3f04(_0x2ab2be,_0x4b11a9);}import{IconClose as _0x3e0c50,IconDocument as _0x342427,IconFileUpload as _0x4a8bd1,IconLink as _0x474e1f,IconSelection as _0x43daef}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1ad054}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x26e2e4}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4a8bd1,'document':_0x342427,'web-resource':_0x474e1f,'text':_0x4a8bd1,'selection':_0x43daef,'mcp-tool-context':_0x342427},bn=_0x595de5(0x130),wn=_0x595de5(0x12b),Tn=_0x595de5(0x10f),En=_0x595de5(0xf8),fn=_0x595de5(0x11d),An=_0x595de5(0x127),Cn='n';export class AIChatContextItemButtonView extends _0xdcbaed{constructor(_0x3cebfb,_0x2001a2,_0x1624e1,_0x2466a0,_0x170b3c=!0x1){const _0xb0be61=_0x595de5;super(_0x3cebfb),this[_0xb0be61(0x10c)]=_0x2466a0,this[_0xb0be61(0x109)](_0x2001a2,_0x1624e1,_0x170b3c),this[_0xb0be61(0xfb)]();}[_0x595de5(0x133)](){const _0x147d88=_0x595de5;super[_0x147d88(0x133)](),this[_0x147d88(0x10c)]&&this[_0x147d88(0x123)]&&(this[_0x147d88(0x123)][_0x147d88(0x106)][_0x147d88(0x110)](_0x147d88(0xfa)),this[_0x147d88(0x129)](this[_0x147d88(0x123)],()=>{const _0x332a63=_0x147d88;this[_0x332a63(0x123)]&&this[_0x332a63(0x123)][_0x332a63(0x106)][_0x332a63(0xfe)](_0x332a63(0xfa));}));}[_0x595de5(0x118)](){const _0x4629c4=_0x595de5;this[_0x4629c4(0x10c)]=!0x1,this[_0x4629c4(0x123)]&&this[_0x4629c4(0x123)][_0x4629c4(0x106)][_0x4629c4(0xfe)](_0x4629c4(0xfa));}[_0x595de5(0x109)](_0x5add1a,_0x34b9a9,_0x51ab4a){const _0x4b8e5c=_0x595de5;this[_0x4b8e5c(0x101)](_0x4b8e5c(0x111),_0x5add1a[_0x4b8e5c(0x111)]),this[_0x4b8e5c(0x101)](_0x4b8e5c(0xf9),!0x0),this[_0x4b8e5c(0x101)](_0x4b8e5c(0x103),_0x5add1a[_0x4b8e5c(0x115)]),this[_0x4b8e5c(0x101)]('id',_0x5add1a[_0x4b8e5c(0x120)]),this[_0x4b8e5c(0x101)](_0x4b8e5c(0xf5),_0x34b9a9),this[_0x4b8e5c(0x101)](_0x4b8e5c(0x10a),_0x51ab4a);}[_0x595de5(0xfb)](){const _0x3e33d7=_0x595de5,_0xf9dfe1=this[_0x3e33d7(0xfc)](),_0x472a04=this[_0x3e33d7(0x107)](),_0x5829ca=this[_0x3e33d7(0x135)];this[_0x3e33d7(0xf4)]({'tag':_0x3e33d7(0x134),'attributes':this[_0x3e33d7(0x121)](_0x5829ca),'children':this[_0x3e33d7(0xf6)](_0xf9dfe1,_0x472a04,_0x5829ca)});}[_0x595de5(0x121)](_0x3ea2f4){const _0xd19464=_0x595de5;return{'class':[bn,_0x3ea2f4['if'](_0xd19464(0x103),Tn,_0x3b5c8c=>_0xd19464(0x124)==_0x3b5c8c),_0x3ea2f4['if'](_0xd19464(0x103),wn,_0x37b9b2=>_0xd19464(0x12e)==_0x37b9b2)],'data-cke-tooltip-text':_0x3ea2f4['to'](_0xd19464(0x111),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x595de5(0xf6)](_0x32bef8,_0x25438d,_0x2e88e7){const _0x38ac0b=_0x595de5,_0x2448d1=this[_0x38ac0b(0x10e)](_0x2e88e7),_0x23e25b=this[_0x38ac0b(0x12c)]();return this[_0x38ac0b(0xf5)]?[_0x32bef8,_0x2448d1]:[_0x32bef8,_0x23e25b,_0x2448d1,_0x25438d];}[_0x595de5(0x10e)](_0x21bb9a){const _0x14d37a=_0x595de5;return{'tag':_0x14d37a(0x119),'attributes':{'class':En},'children':[{'text':_0x21bb9a['to'](_0x14d37a(0x111))}]};}[_0x595de5(0x107)](){const _0xb79832=_0x595de5,_0x521400=new _0xdcbaed(this[_0xb79832(0x117)]);return _0x521400[_0xb79832(0x101)]({'label':_0x1ad054(this[_0xb79832(0x117)],_0xb79832(0x10b)),'icon':_0x3e0c50}),this[_0xb79832(0x131)](_0x521400),_0x521400;}[_0x595de5(0x131)](_0x2ac002){const _0x52c090=_0x595de5;_0x2ac002['on'](_0x52c090(0x11e),()=>{const _0x2ca325=_0x52c090;this[_0x2ca325(0x116)](_0x2ca325(0x136),this['id']);});}[_0x595de5(0xfc)](){const _0x37e730=_0x595de5,_0x45526b=this[_0x37e730(0x135)],_0x4f9f57=new _0x37d210();return _0x4f9f57[_0x37e730(0x11f)]=xn[this[_0x37e730(0x103)]],_0x4f9f57[_0x37e730(0x125)]({'attributes':{'class':[fn,_0x45526b['if'](_0x37e730(0x10a),_0x37e730(0x11b),_0x5f5b4b=>_0x5f5b4b)]}}),_0x4f9f57;}[_0x595de5(0x129)](_0x1ce7b9,_0x5f14ba){const _0x5e87ec=_0x595de5;if(!_0x1ce7b9)return;const _0x8d9d70=()=>{const _0x1ed013=_0x3f04;_0x5f14ba(),_0x1ce7b9[_0x1ed013(0xff)](_0x1ed013(0x11a),_0x8d9d70),_0x1ce7b9[_0x1ed013(0xff)](_0x1ed013(0x128),_0x8d9d70);};_0x1ce7b9[_0x5e87ec(0xfd)](_0x5e87ec(0x11a),_0x8d9d70),_0x1ce7b9[_0x5e87ec(0xfd)](_0x5e87ec(0x128),_0x8d9d70);}[_0x595de5(0x12c)](){const _0x1959c7=_0x595de5,_0x2b7cda=new _0x26e2e4(_0x1959c7(0x11c));return _0x2b7cda[_0x1959c7(0x12d)](_0x1959c7(0x108))['to'](this,_0x1959c7(0x10a),_0xa598e1=>_0xa598e1),_0x2b7cda;}}function In(_0x3bc4f6){const _0x4ee7ec=_0x595de5;if(!_0x3bc4f6)return _0x3bc4f6;if(_0x3bc4f6[_0x4ee7ec(0x126)]<=0x78)return _0x3bc4f6;const _0x2e1c7c=_0x3bc4f6[_0x4ee7ec(0x113)](0x0,0x78),_0xd37032=_0x2e1c7c[_0x4ee7ec(0x114)]('\x20');return(_0xd37032>0x0?_0x2e1c7c[_0x4ee7ec(0x113)](0x0,_0xd37032):_0x2e1c7c)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52899b=_0x212a;(function(_0x2dcd28,_0x4c4310){const _0x5e1df2=_0x212a,_0x25a21d=_0x2dcd28();while(!![]){try{const _0x3a4614=-parseInt(_0x5e1df2(0xcf))/0x1+-parseInt(_0x5e1df2(0xc8))/0x2+-parseInt(_0x5e1df2(0xc5))/0x3+parseInt(_0x5e1df2(0xf1))/0x4+parseInt(_0x5e1df2(0xe2))/0x5*(parseInt(_0x5e1df2(0xab))/0x6)+parseInt(_0x5e1df2(0xdd))/0x7*(parseInt(_0x5e1df2(0xb8))/0x8)+-parseInt(_0x5e1df2(0xc0))/0x9*(-parseInt(_0x5e1df2(0xa8))/0xa);if(_0x3a4614===_0x4c4310)break;else _0x25a21d['push'](_0x25a21d['shift']());}catch(_0x32e214){_0x25a21d['push'](_0x25a21d['shift']());}}}(_0x2ed4,0xc66c0));import{FocusTracker as _0x44dc8a,KeystrokeHandler as _0x1fe984}from'ckeditor5/src/utils.js';import{ButtonView as _0x2595a1,FocusCycler as _0x4bd90e,LabeledFieldView as _0x753c92,View as _0x2008f3,FormHeaderView as _0x14b720,createLabeledInputText as _0x14f968,submitHandler as _0x4643c6}from'ckeditor5/src/ui.js';function _0x2ed4(){const _0x1b8d26=['listenTo','change:withBackButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','trim','506888ROwFTC','_isValidUrl','ck-labeled-field-view_empty','40veZFjv','cancel','keystrokes','1421556UWHPRV','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','submitUrl','ck-ai-chat-context-controls__url-input-section','setTemplate','confirmButton','element','refreshBalloon','tab','submit','destroy','_createBackButton','focusTracker','568312xFxfuF','clearError','setError','_focusables','focusCycler','AI_CHAT_CONTEXT_URL_PLACEHOLDER','length','withBackButton','3102741NyewYZ','_setupTemplate','ck-ai-chat-context-controls__url-form','add','input','1926669UaidhB','backButton','createCollection','2298334pAwfwz','shift+tab','ck-button-icon','execute','_handleSubmit','set','errorText','346181KKOfqM','urlInputField','AI_CHAT_CONTEXT_URL_ADD_URL','_createUrlInputField','_createConfirmButton','fieldView','focus','ck-button-icon\x20ck-button-back','_updateConfirmButtonState','isEnabled','_setupEventHandlers','locale','esc','AI_CHAT_CONTEXT_URL_LABEL','119CKjiEh','getValue','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','forEach','children','5TBzbnb','value','\x20ck-hidden','fire','_setupKeystrokes','clear','AI_CHAT_CONTEXT_URL_INVALID_ERROR','render','form','stop','div'];_0x2ed4=function(){return _0x1b8d26;};return _0x2ed4();}import{IconCheck as _0x2cbac6,IconPreviousArrow as _0x4db16c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x57ea00}from'../../../aicore/utils/common-translations.js';const rh=_0x52899b(0xc2),nh=_0x52899b(0xae);function _0x212a(_0x56443e,_0x222cb9){const _0x2ed4d8=_0x2ed4();return _0x212a=function(_0x212a36,_0x418f92){_0x212a36=_0x212a36-0xa8;let _0x28106a=_0x2ed4d8[_0x212a36];return _0x28106a;},_0x212a(_0x56443e,_0x222cb9);}export class AIChatContextPanelUrlInputView extends _0x2008f3{[_0x52899b(0xb7)];[_0x52899b(0xaa)];[_0x52899b(0xbb)];[_0x52899b(0xbc)];[_0x52899b(0xd0)];[_0x52899b(0xc6)];[_0x52899b(0xb0)];constructor(_0x2b3fdf){const _0x588ccd=_0x52899b;super(_0x2b3fdf),this[_0x588ccd(0xb7)]=new _0x44dc8a(),this[_0x588ccd(0xaa)]=new _0x1fe984(),this[_0x588ccd(0xc6)]=this[_0x588ccd(0xb6)](),this[_0x588ccd(0xd0)]=this[_0x588ccd(0xd2)](),this[_0x588ccd(0xb0)]=this[_0x588ccd(0xd3)](),this[_0x588ccd(0xbb)]=this[_0x588ccd(0xc7)]([this[_0x588ccd(0xc6)],this[_0x588ccd(0xd0)],this[_0x588ccd(0xb0)]]),this[_0x588ccd(0xbc)]=new _0x4bd90e({'focusables':this[_0x588ccd(0xbb)],'focusTracker':this[_0x588ccd(0xb7)],'keystrokeHandler':this[_0x588ccd(0xaa)],'actions':{'focusPrevious':_0x588ccd(0xc9),'focusNext':_0x588ccd(0xb3)}}),this[_0x588ccd(0xcd)](_0x588ccd(0xbf),!0x0),this[_0x588ccd(0xc1)](),this[_0x588ccd(0xd9)](),this[_0x588ccd(0xe6)]();}[_0x52899b(0xe9)](){const _0x33e739=_0x52899b;super[_0x33e739(0xe9)](),this[_0x33e739(0xbb)][_0x33e739(0xe0)](_0x36f83d=>{const _0x501353=_0x33e739;this[_0x501353(0xb7)][_0x501353(0xc3)](_0x36f83d[_0x501353(0xb1)]),this[_0x501353(0xaa)][_0x501353(0xed)](_0x36f83d[_0x501353(0xb1)]);}),_0x4643c6({'view':this}),this[_0x33e739(0xd5)]();}[_0x52899b(0xb5)](){const _0x248dde=_0x52899b;super[_0x248dde(0xb5)](),this[_0x248dde(0xb7)][_0x248dde(0xb5)](),this[_0x248dde(0xaa)][_0x248dde(0xb5)]();}[_0x52899b(0xd5)](){const _0x362a6b=_0x52899b;this[_0x362a6b(0xd0)][_0x362a6b(0xd5)]();}[_0x52899b(0xde)](){const _0x74169d=_0x52899b;return this[_0x74169d(0xd0)][_0x74169d(0xd4)][_0x74169d(0xb1)]?.[_0x74169d(0xe3)]?.[_0x74169d(0xf0)]()||'';}[_0x52899b(0xe7)](){const _0x586927=_0x52899b;this[_0x586927(0xd0)][_0x586927(0xd4)][_0x586927(0xb1)][_0x586927(0xe3)]='',this[_0x586927(0xd0)][_0x586927(0xce)]=null,this[_0x586927(0xb0)][_0x586927(0xd8)]=!0x1;}[_0x52899b(0xba)](_0x460253){const _0x4b81ba=_0x52899b;this[_0x4b81ba(0xd0)][_0x4b81ba(0xce)]=_0x460253,this[_0x4b81ba(0xd7)](),this[_0x4b81ba(0xe5)](_0x4b81ba(0xb2));}[_0x52899b(0xb9)](){const _0x43cd58=_0x52899b;this[_0x43cd58(0xd0)][_0x43cd58(0xce)]=null,this[_0x43cd58(0xd7)]();}[_0x52899b(0xb6)](){const _0x98a3d3=_0x52899b,_0x2017f8=new _0x2595a1(this[_0x98a3d3(0xda)]);return _0x2017f8[_0x98a3d3(0xcd)]({'icon':_0x4db16c,'tooltip':_0x57ea00(this[_0x98a3d3(0xda)],_0x98a3d3(0xef)),'tooltipPosition':'n','class':[_0x98a3d3(0xd6)]}),this['on'](_0x98a3d3(0xee),(_0x29e1ae,_0x32b2f3,_0x28d1db)=>{const _0x50d413=_0x98a3d3;_0x2017f8[_0x50d413(0xcd)]({'class':[_0x50d413(0xd6)+(_0x28d1db?'':_0x50d413(0xe4))]});}),_0x2017f8;}[_0x52899b(0xd2)](){const _0x231b66=_0x52899b,_0xcc157c=new _0x753c92(this[_0x231b66(0xda)],_0x14f968);return _0xcc157c[_0x231b66(0xcd)]({'label':_0x57ea00(this[_0x231b66(0xda)],_0x231b66(0xdc)),'class':_0x231b66(0xf3)}),_0xcc157c[_0x231b66(0xd4)][_0x231b66(0xcd)]({'placeholder':_0x57ea00(this[_0x231b66(0xda)],_0x231b66(0xbd))}),_0xcc157c;}[_0x52899b(0xd3)](){const _0x54ce3a=_0x52899b,_0x151841=new _0x2595a1(this[_0x54ce3a(0xda)]);return _0x151841[_0x54ce3a(0xcd)]({'icon':_0x2cbac6,'tooltip':_0x57ea00(this[_0x54ce3a(0xda)],_0x54ce3a(0xd1)),'tooltipPosition':'n','class':_0x54ce3a(0xca),'type':_0x54ce3a(0xb4),'isEnabled':!0x1}),_0x151841;}[_0x52899b(0xc1)](){const _0x16ea42=_0x52899b,_0x1a3a87=new _0x14b720(this[_0x16ea42(0xda)],{'label':_0x57ea00(this[_0x16ea42(0xda)],_0x16ea42(0xd1)),'class':_0x16ea42(0xac)});_0x1a3a87[_0x16ea42(0xe1)][_0x16ea42(0xc3)](this[_0x16ea42(0xc6)],0x0),this[_0x16ea42(0xaf)]({'tag':_0x16ea42(0xea),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x1a3a87,{'tag':_0x16ea42(0xec),'attributes':{'class':nh},'children':[this[_0x16ea42(0xd0)],this[_0x16ea42(0xb0)]]}]});}[_0x52899b(0xd9)](){const _0x14752c=_0x52899b;this[_0x14752c(0xc6)]['on'](_0x14752c(0xcb),()=>{const _0x4406af=_0x14752c;this[_0x4406af(0xe7)](),this[_0x4406af(0xe5)](_0x4406af(0xa9));}),this[_0x14752c(0xd0)][_0x14752c(0xd4)]['on'](_0x14752c(0xc4),()=>{const _0x1cc731=_0x14752c;this[_0x1cc731(0xb9)](),this[_0x1cc731(0xd7)](),this[_0x1cc731(0xe5)](_0x1cc731(0xb2));}),this['on'](_0x14752c(0xb4),_0x5daa40=>{const _0x5b4be4=_0x14752c;_0x5daa40[_0x5b4be4(0xeb)](),this[_0x5b4be4(0xcc)]();});}[_0x52899b(0xe6)](){const _0x4919ba=_0x52899b;this[_0x4919ba(0xaa)][_0x4919ba(0xcd)](_0x4919ba(0xdb),(_0x14984e,_0x5f48d6)=>{const _0x481092=_0x4919ba;this[_0x481092(0xe7)](),this[_0x481092(0xe5)](_0x481092(0xa9)),_0x5f48d6();});}[_0x52899b(0xcc)](){const _0x529b00=_0x52899b,_0x3a65fa=this[_0x529b00(0xde)]()[_0x529b00(0xf0)]();_0x3a65fa?this[_0x529b00(0xf2)](_0x3a65fa)?(this[_0x529b00(0xb9)](),this[_0x529b00(0xe5)](_0x529b00(0xad),_0x3a65fa)):this[_0x529b00(0xba)](_0x57ea00(this[_0x529b00(0xda)],_0x529b00(0xe8))):this[_0x529b00(0xba)](_0x57ea00(this[_0x529b00(0xda)],_0x529b00(0xdf)));}[_0x52899b(0xd7)](){const _0x2842fb=_0x52899b,_0x3f7d50=this[_0x2842fb(0xde)]()[_0x2842fb(0xf0)](),_0x313838=!!this[_0x2842fb(0xd0)][_0x2842fb(0xce)];this[_0x2842fb(0xb0)][_0x2842fb(0xd8)]=_0x3f7d50[_0x2842fb(0xbe)]>0x0&&!_0x313838;}[_0x52899b(0xf2)](_0x33294d){try{return!!new URL(_0x33294d);}catch{return!0x1;}}}
23
+ const _0x4d91cf=_0x24e8;(function(_0x343d31,_0x221d74){const _0x39ff94=_0x24e8,_0x1bee38=_0x343d31();while(!![]){try{const _0x3f8be6=-parseInt(_0x39ff94(0x126))/0x1+parseInt(_0x39ff94(0x133))/0x2*(parseInt(_0x39ff94(0x156))/0x3)+-parseInt(_0x39ff94(0x125))/0x4*(parseInt(_0x39ff94(0x168))/0x5)+-parseInt(_0x39ff94(0x165))/0x6*(parseInt(_0x39ff94(0x13a))/0x7)+parseInt(_0x39ff94(0x127))/0x8*(parseInt(_0x39ff94(0x150))/0x9)+-parseInt(_0x39ff94(0x14e))/0xa+-parseInt(_0x39ff94(0x155))/0xb*(-parseInt(_0x39ff94(0x146))/0xc);if(_0x3f8be6===_0x221d74)break;else _0x1bee38['push'](_0x1bee38['shift']());}catch(_0x4fd149){_0x1bee38['push'](_0x1bee38['shift']());}}}(_0x11c7,0xdb598));import{FocusTracker as _0x5added,KeystrokeHandler as _0x32ebce}from'ckeditor5/src/utils.js';function _0x11c7(){const _0x540d08=['forEach','shift+tab','11155809LZCEin','_createConfirmButton','_setupTemplate','set','_handleSubmit','input','fire','submitUrl','tab','execute','render','destroy','156tYzvwC','_createBackButton','setError','listenTo','_updateConfirmButtonState','stop','_focusables','locale','11841120vXVnRr','urlInputField','10306728vWlNbQ','AI_CHAT_CONTEXT_URL_INVALID_ERROR','getValue','cancel','focusTracker','2993639gskQfB','3IfYihG','change:withBackButton','_isValidUrl','isEnabled','add','form','ck-ai-chat-context-controls__url-input-section','ck-ai-chat-context-controls__url-form','_setupKeystrokes','fieldView','errorText','ck-button-icon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','6iRdbKS','clear','\x20ck-hidden','15055vDSPzD','refreshBalloon','element','trim','AI_CHAT_CONTEXT_URL_LABEL','keystrokes','withBackButton','createCollection','focus','esc','ck-button-icon\x20ck-button-back','1100aElNwT','1646213amtxnk','8uvRNna','focusCycler','value','submit','children','div','clearError','setTemplate','_createUrlInputField','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_ADD_URL','length','2934728OzNOBb','confirmButton','_setupEventHandlers','backButton','ck-labeled-field-view_empty'];_0x11c7=function(){return _0x540d08;};return _0x11c7();}import{ButtonView as _0x4f1053,FocusCycler as _0x3bac58,LabeledFieldView as _0x58a339,View as _0x27eea4,FormHeaderView as _0x59e0b8,createLabeledInputText as _0x160e2c,submitHandler as _0xda032c}from'ckeditor5/src/ui.js';import{IconCheck as _0x2536cd,IconPreviousArrow as _0x17d6d2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x37bcad}from'../../../aicore/utils/common-translations.js';const rh=_0x4d91cf(0x15d),nh=_0x4d91cf(0x15c);function _0x24e8(_0xee3618,_0x32e4e0){const _0x11c794=_0x11c7();return _0x24e8=function(_0x24e86f,_0x2cb85f){_0x24e86f=_0x24e86f-0x125;let _0x282da0=_0x11c794[_0x24e86f];return _0x282da0;},_0x24e8(_0xee3618,_0x32e4e0);}export class AIChatContextPanelUrlInputView extends _0x27eea4{[_0x4d91cf(0x154)];[_0x4d91cf(0x16d)];[_0x4d91cf(0x14c)];[_0x4d91cf(0x128)];[_0x4d91cf(0x14f)];[_0x4d91cf(0x136)];[_0x4d91cf(0x134)];constructor(_0x9c0512){const _0x3fd3fd=_0x4d91cf;super(_0x9c0512),this[_0x3fd3fd(0x154)]=new _0x5added(),this[_0x3fd3fd(0x16d)]=new _0x32ebce(),this[_0x3fd3fd(0x136)]=this[_0x3fd3fd(0x147)](),this[_0x3fd3fd(0x14f)]=this[_0x3fd3fd(0x12f)](),this[_0x3fd3fd(0x134)]=this[_0x3fd3fd(0x13b)](),this[_0x3fd3fd(0x14c)]=this[_0x3fd3fd(0x16f)]([this[_0x3fd3fd(0x136)],this[_0x3fd3fd(0x14f)],this[_0x3fd3fd(0x134)]]),this[_0x3fd3fd(0x128)]=new _0x3bac58({'focusables':this[_0x3fd3fd(0x14c)],'focusTracker':this[_0x3fd3fd(0x154)],'keystrokeHandler':this[_0x3fd3fd(0x16d)],'actions':{'focusPrevious':_0x3fd3fd(0x139),'focusNext':_0x3fd3fd(0x142)}}),this[_0x3fd3fd(0x13d)](_0x3fd3fd(0x16e),!0x0),this[_0x3fd3fd(0x13c)](),this[_0x3fd3fd(0x135)](),this[_0x3fd3fd(0x15e)]();}[_0x4d91cf(0x144)](){const _0x301cc1=_0x4d91cf;super[_0x301cc1(0x144)](),this[_0x301cc1(0x14c)][_0x301cc1(0x138)](_0x19f6c4=>{const _0x4b1a43=_0x301cc1;this[_0x4b1a43(0x154)][_0x4b1a43(0x15a)](_0x19f6c4[_0x4b1a43(0x16a)]),this[_0x4b1a43(0x16d)][_0x4b1a43(0x149)](_0x19f6c4[_0x4b1a43(0x16a)]);}),_0xda032c({'view':this}),this[_0x301cc1(0x170)]();}[_0x4d91cf(0x145)](){const _0x36ff76=_0x4d91cf;super[_0x36ff76(0x145)](),this[_0x36ff76(0x154)][_0x36ff76(0x145)](),this[_0x36ff76(0x16d)][_0x36ff76(0x145)]();}[_0x4d91cf(0x170)](){const _0x1e61d6=_0x4d91cf;this[_0x1e61d6(0x14f)][_0x1e61d6(0x170)]();}[_0x4d91cf(0x152)](){const _0x5ce8a4=_0x4d91cf;return this[_0x5ce8a4(0x14f)][_0x5ce8a4(0x15f)][_0x5ce8a4(0x16a)]?.[_0x5ce8a4(0x129)]?.[_0x5ce8a4(0x16b)]()||'';}[_0x4d91cf(0x166)](){const _0x4a4b29=_0x4d91cf;this[_0x4a4b29(0x14f)][_0x4a4b29(0x15f)][_0x4a4b29(0x16a)][_0x4a4b29(0x129)]='',this[_0x4a4b29(0x14f)][_0x4a4b29(0x160)]=null,this[_0x4a4b29(0x134)][_0x4a4b29(0x159)]=!0x1;}[_0x4d91cf(0x148)](_0x3c5b9b){const _0x33769e=_0x4d91cf;this[_0x33769e(0x14f)][_0x33769e(0x160)]=_0x3c5b9b,this[_0x33769e(0x14a)](),this[_0x33769e(0x140)](_0x33769e(0x169));}[_0x4d91cf(0x12d)](){const _0x2fd4e3=_0x4d91cf;this[_0x2fd4e3(0x14f)][_0x2fd4e3(0x160)]=null,this[_0x2fd4e3(0x14a)]();}[_0x4d91cf(0x147)](){const _0x16fa30=_0x4d91cf,_0xbedfc9=new _0x4f1053(this[_0x16fa30(0x14d)]);return _0xbedfc9[_0x16fa30(0x13d)]({'icon':_0x17d6d2,'tooltip':_0x37bcad(this[_0x16fa30(0x14d)],_0x16fa30(0x162)),'tooltipPosition':'n','class':[_0x16fa30(0x172)]}),this['on'](_0x16fa30(0x157),(_0x490a3a,_0x33f1d3,_0x32e5e5)=>{const _0x5e1c92=_0x16fa30;_0xbedfc9[_0x5e1c92(0x13d)]({'class':[_0x5e1c92(0x172)+(_0x32e5e5?'':_0x5e1c92(0x167))]});}),_0xbedfc9;}[_0x4d91cf(0x12f)](){const _0x4292de=_0x4d91cf,_0x3486e2=new _0x58a339(this[_0x4292de(0x14d)],_0x160e2c);return _0x3486e2[_0x4292de(0x13d)]({'label':_0x37bcad(this[_0x4292de(0x14d)],_0x4292de(0x16c)),'class':_0x4292de(0x137)}),_0x3486e2[_0x4292de(0x15f)][_0x4292de(0x13d)]({'placeholder':_0x37bcad(this[_0x4292de(0x14d)],_0x4292de(0x163))}),_0x3486e2;}[_0x4d91cf(0x13b)](){const _0x3ffe21=_0x4d91cf,_0x1aef49=new _0x4f1053(this[_0x3ffe21(0x14d)]);return _0x1aef49[_0x3ffe21(0x13d)]({'icon':_0x2536cd,'tooltip':_0x37bcad(this[_0x3ffe21(0x14d)],_0x3ffe21(0x131)),'tooltipPosition':'n','class':_0x3ffe21(0x161),'type':_0x3ffe21(0x12a),'isEnabled':!0x1}),_0x1aef49;}[_0x4d91cf(0x13c)](){const _0x16bec1=_0x4d91cf,_0xf3feb8=new _0x59e0b8(this[_0x16bec1(0x14d)],{'label':_0x37bcad(this[_0x16bec1(0x14d)],_0x16bec1(0x131)),'class':_0x16bec1(0x130)});_0xf3feb8[_0x16bec1(0x12b)][_0x16bec1(0x15a)](this[_0x16bec1(0x136)],0x0),this[_0x16bec1(0x12e)]({'tag':_0x16bec1(0x15b),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0xf3feb8,{'tag':_0x16bec1(0x12c),'attributes':{'class':nh},'children':[this[_0x16bec1(0x14f)],this[_0x16bec1(0x134)]]}]});}[_0x4d91cf(0x135)](){const _0x1e8194=_0x4d91cf;this[_0x1e8194(0x136)]['on'](_0x1e8194(0x143),()=>{const _0x36574a=_0x1e8194;this[_0x36574a(0x166)](),this[_0x36574a(0x140)](_0x36574a(0x153));}),this[_0x1e8194(0x14f)][_0x1e8194(0x15f)]['on'](_0x1e8194(0x13f),()=>{const _0x4857ee=_0x1e8194;this[_0x4857ee(0x12d)](),this[_0x4857ee(0x14a)](),this[_0x4857ee(0x140)](_0x4857ee(0x169));}),this['on'](_0x1e8194(0x12a),_0x3235c2=>{const _0x1d66a6=_0x1e8194;_0x3235c2[_0x1d66a6(0x14b)](),this[_0x1d66a6(0x13e)]();});}[_0x4d91cf(0x15e)](){const _0x17e985=_0x4d91cf;this[_0x17e985(0x16d)][_0x17e985(0x13d)](_0x17e985(0x171),(_0x3de100,_0x575b93)=>{const _0x13ee96=_0x17e985;this[_0x13ee96(0x166)](),this[_0x13ee96(0x140)](_0x13ee96(0x153)),_0x575b93();});}[_0x4d91cf(0x13e)](){const _0x588086=_0x4d91cf,_0x4cfb2a=this[_0x588086(0x152)]()[_0x588086(0x16b)]();_0x4cfb2a?this[_0x588086(0x158)](_0x4cfb2a)?(this[_0x588086(0x12d)](),this[_0x588086(0x140)](_0x588086(0x141),_0x4cfb2a)):this[_0x588086(0x148)](_0x37bcad(this[_0x588086(0x14d)],_0x588086(0x151))):this[_0x588086(0x148)](_0x37bcad(this[_0x588086(0x14d)],_0x588086(0x164)));}[_0x4d91cf(0x14a)](){const _0x4d85dc=_0x4d91cf,_0x1182e3=this[_0x4d85dc(0x152)]()[_0x4d85dc(0x16b)](),_0x1b0308=!!this[_0x4d85dc(0x14f)][_0x4d85dc(0x160)];this[_0x4d85dc(0x134)][_0x4d85dc(0x159)]=_0x1182e3[_0x4d85dc(0x132)]>0x0&&!_0x1b0308;}[_0x4d91cf(0x158)](_0x355fd9){try{return!!new URL(_0x355fd9);}catch{return!0x1;}}}