@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.3.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 (123) 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/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  15. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  22. package/src/aiballoon/aiballoon.js +1 -1
  23. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  24. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  25. package/src/aiballoon/ui/aiballoonview.js +1 -1
  26. package/src/aichat/aichat.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/model/aichatmodels.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  57. package/src/aichat/utils/eventnames.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichathistory/aichathistory.js +1 -1
  60. package/src/aichathistory/aichathistorycontroller.js +1 -1
  61. package/src/aichathistory/aichathistoryui.js +1 -1
  62. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  63. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  64. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  65. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  68. package/src/aicore/aiconnector.js +1 -1
  69. package/src/aicore/aiediting.js +1 -1
  70. package/src/aicore/model/aicapabilities.js +1 -1
  71. package/src/aicore/model/aiinteraction.js +1 -1
  72. package/src/aicore/model/aimodels.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  83. package/src/aicore/utils/createresizebutton.js +1 -1
  84. package/src/aicore/utils/documentrange.js +1 -1
  85. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  86. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  87. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  88. package/src/aicore/utils/htmlparser.js +1 -1
  89. package/src/aicore/utils/htmlstreamer.js +1 -1
  90. package/src/aieditorintegration/aieditorintegration.js +1 -1
  91. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  92. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  93. package/src/aiquickactions/aiquickactions.js +1 -1
  94. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  95. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  96. package/src/aiquickactions/aiquickactionsui.js +1 -1
  97. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  98. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  101. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  102. package/src/aireviewmode/aireviewmode.js +1 -1
  103. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  104. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  105. package/src/aireviewmode/aireviewmodeui.js +1 -1
  106. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  107. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  110. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  118. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  119. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  120. package/src/aitabs/aitabs.js +1 -1
  121. package/src/aitabs/tabs/aitabsview.js +1 -1
  122. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  123. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbb7b3c=_0x1fbd;(function(_0x140180,_0x81a41f){const _0x1de040=_0x1fbd,_0x59ecbd=_0x140180();while(!![]){try{const _0x1fcf35=parseInt(_0x1de040(0x1a7))/0x1*(parseInt(_0x1de040(0x134))/0x2)+-parseInt(_0x1de040(0x13d))/0x3*(-parseInt(_0x1de040(0x16f))/0x4)+parseInt(_0x1de040(0x1b0))/0x5+-parseInt(_0x1de040(0x1b1))/0x6+parseInt(_0x1de040(0x19c))/0x7+parseInt(_0x1de040(0x12a))/0x8+-parseInt(_0x1de040(0x181))/0x9;if(_0x1fcf35===_0x81a41f)break;else _0x59ecbd['push'](_0x59ecbd['shift']());}catch(_0x1eabcd){_0x59ecbd['push'](_0x59ecbd['shift']());}}}(_0x1e02,0x83d37));function _0x1fbd(_0x4a886a,_0x469974){const _0x1e025e=_0x1e02();return _0x1fbd=function(_0x1fbd52,_0x13c29e){_0x1fbd52=_0x1fbd52-0x126;let _0x862754=_0x1e025e[_0x1fbd52];return _0x862754;},_0x1fbd(_0x4a886a,_0x469974);}function _0x1e02(){const _0xcdd6dd=['sessionId','abort','ai-request-aborted','url','uploadUrl','file-','urls','_getCustomSourcesInitialState','_updateResourceInContextState','_pendingContextItems','fire','contextItemRemoved','_setAddContextOptionsDefaultState','selection','ai-chat-file-upload-failed','ai-chat-context-unsupported-type','string','get','files-','from','removeFromContext','2695084qVzhTc','_toggleAddCurrentDocumentOptionVisibility','loadSourceResources','object\x20with\x20content\x20and\x20type\x20properties','delete','ai-chat-resource-load-failed','MARKDOWN','all','_createContextItemFromContent','document','_addContextOptionsState','6adlgNb','HTML','_conversationContextItems','uploadProgressChanged','text/plain','getResources','ai-chat-source-resources-load-failed','map','find','576295ioUQEe','3467664fCxqvG','isCurrentDocumentInConversation','data','ai-chat-document-upload-failed','_finishUploadOperation','length','addUrlToContext','7623808YHJzFC','ai-chat-source-not-found','_startUploadOperation','sources','name','contextItemAdded','clearPendingContextItems','addCurrentDocumentToContext','abortController','isReadOnly','256694TCYPlX','_finishContextItemLoading','ai-chat-context-invalid-data','isHidden','type','end','TEXT','start','resources','10791QrHVlk','getId','values','addResourceToContext','updateCurrentDocument','uploadDocument','addSelectionToContext','code','resourceId','url-','getDocument','_connector','ai-chat-resource-no-data','_findSourceIdsByResourceId','message','getData','forEach','size','contextSent','_addToConversationContextItem','filter','stack','error','ai-chat-url-upload-failed','object','_ongoingUploadOperations','_ongoingUploads','mapContextItemsToRequestData','attributes','Current\x20document','label','getPendingContextItems','addContextOptionsChanged','addToConversationContext','has','File','set','_ownerId','isCurrentDocumentInContext','_config','uiId','push','hidden','FILE','sourceResourcesLoaded','getSentContextItems','_removeContextItem','resourceStateChanged','fetchDocument','isInContext','940VcGPkJ','isSelectionInContext','current-document','text/html','text/markdown','SELECTION','init','uploadFile','startsWith','_addContextItem','_convertTextResourceToFile','populateFromMessage','enabled','URL','removeSelectionFromContext','_mapContextItemToRequestData','contextItemLoadingEnded','files','17556489FQgtRi','DOCUMENT','content','version','_isResourceInContext','addFilesToContext'];_0x1e02=function(){return _0xcdd6dd;};return _0x1e02();}import{CKEditorError as _0x3ef10f,ObservableMixin as _0x55e1ec,uid as _0x427bda}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a9210,AIContextTextResourceType as _0x2f602c}from'../../aicore/model/aicontext.js';import{escape as _0x2c3987}from'es-toolkit/compat';import{errorsMap as _0x1616ab}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xbb7b3c(0x12f),_0xbb7b3c(0x192),_0xbb7b3c(0x17f),_0xbb7b3c(0x14f),_0xbb7b3c(0x153),_0xbb7b3c(0x15d),_0xbb7b3c(0x169),_0xbb7b3c(0x16c),_0xbb7b3c(0x1aa)];export class AIChatContext extends _0x55e1ec(){[_0xbb7b3c(0x148)];[_0xbb7b3c(0x164)];[_0xbb7b3c(0x162)];constructor({connector:_0x45de1b,config:_0x4fb355,ownerId:_0x53fd12}){const _0x30d61d=_0xbb7b3c;super(),this[_0x30d61d(0x148)]=_0x45de1b,this[_0x30d61d(0x164)]=_0x4fb355,this[_0x30d61d(0x162)]=_0x53fd12;}[_0xbb7b3c(0x175)](){const _0x4e26a4=_0xbb7b3c;this[_0x4e26a4(0x190)]=new Map(),this[_0x4e26a4(0x1a9)]=new Map(),this[_0x4e26a4(0x157)]=new Map(),this[_0x4e26a4(0x156)]=new Map(),this[_0x4e26a4(0x193)]();}[_0xbb7b3c(0x15c)](){const _0x29e9c5=_0xbb7b3c;return this[_0x29e9c5(0x190)];}async[_0xbb7b3c(0x17a)](_0x35edf6){const _0x53ff24=_0xbb7b3c,_0x3375d3=await this[_0x53ff24(0x1a4)](_0x35edf6);return this[_0x53ff24(0x150)](_0x3375d3),_0x53ff24(0x171)===_0x3375d3[_0x53ff24(0x165)]&&this[_0x53ff24(0x19d)](),_0x3375d3;}async[_0xbb7b3c(0x1a4)](_0x1e8b74){const _0x2a2d5d=_0xbb7b3c;if(_0x1e8b74[_0x2a2d5d(0x138)]===_0x4a9210[_0x2a2d5d(0x182)]){const _0x47af18=await this[_0x2a2d5d(0x148)][_0x2a2d5d(0x16d)](this[_0x2a2d5d(0x162)],_0x1e8b74['id'])[_0x2a2d5d(0x147)]();return{'id':_0x2a2d5d(0x171),'uiId':_0x2a2d5d(0x171),'label':_0x2a2d5d(0x15a),'type':_0x1e8b74[_0x2a2d5d(0x138)],'content':_0x47af18[_0x2a2d5d(0x183)],'hidden':this[_0x2a2d5d(0x1a9)][_0x2a2d5d(0x15f)](_0x2a2d5d(0x171)),'version':_0x47af18[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x184)],'sessionId':_0x47af18[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x187)]};}return{'id':_0x1e8b74['id'],'uiId':_0x1e8b74['id'],'label':_0x1e8b74[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x15b)]||_0x1e8b74[_0x2a2d5d(0x12e)]||_0x1e8b74[_0x2a2d5d(0x18a)]||_0x1e8b74['id'],'type':_0x1e8b74[_0x2a2d5d(0x138)],..._0x1e8b74?.[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x145)]?{'resourceId':_0x1e8b74[_0x2a2d5d(0x159)]?.[_0x2a2d5d(0x145)]}:{}};}[_0xbb7b3c(0x16a)](){const _0x828ddc=_0xbb7b3c;return new Map(this[_0x828ddc(0x1a9)]);}[_0xbb7b3c(0x19b)](_0x5c6081){const _0xa13f08=_0xbb7b3c,_0x86e0bf=this[_0xa13f08(0x190)][_0xa13f08(0x198)](_0x5c6081);_0x86e0bf?.[_0xa13f08(0x133)]||this[_0xa13f08(0x16b)](_0x5c6081);}[_0xbb7b3c(0x130)](){const _0x395b74=_0xbb7b3c;if(0x0===this[_0x395b74(0x190)][_0x395b74(0x14e)])return;for(const _0x2f52de of this[_0x395b74(0x190)][_0x395b74(0x13f)]())this[_0x395b74(0x16b)](_0x2f52de[_0x395b74(0x165)]);const _0xa35fb7=this[_0x395b74(0x1a9)][_0x395b74(0x198)](_0x395b74(0x171))||this[_0x395b74(0x190)][_0x395b74(0x198)](_0x395b74(0x171));_0xa35fb7&&this[_0x395b74(0x178)]({..._0xa35fb7,'isReadOnly':!0x0,'hidden':!0x0});}[_0xbb7b3c(0x15e)](_0x36251c){const _0x4cfcfc=_0xbb7b3c;for(const _0x11c8f5 of _0x36251c[_0x4cfcfc(0x13f)]())this[_0x4cfcfc(0x150)](_0x11c8f5);this[_0x4cfcfc(0x130)](),this[_0x4cfcfc(0x191)](_0x4cfcfc(0x14f),{'contextItems':Array[_0x4cfcfc(0x19a)](this[_0x4cfcfc(0x16a)]()[_0x4cfcfc(0x13f)]())});}[_0xbb7b3c(0x163)](){const _0x5a6fc2=_0xbb7b3c;return this[_0x5a6fc2(0x190)][_0x5a6fc2(0x15f)](_0x5a6fc2(0x171));}[_0xbb7b3c(0x170)](){const _0xbdb4f5=_0xbb7b3c;return this[_0xbdb4f5(0x190)][_0xbdb4f5(0x15f)](_0xbdb4f5(0x194));}[_0xbb7b3c(0x1b2)](){const _0x28dba3=_0xbb7b3c;return this[_0x28dba3(0x1a9)][_0x28dba3(0x15f)](_0x28dba3(0x171));}static[_0xbb7b3c(0x158)](_0x283c7a){const _0x5d350e=_0xbb7b3c;return Array[_0x5d350e(0x19a)](_0x283c7a[_0x5d350e(0x13f)]())[_0x5d350e(0x1ae)](_0x4ad786=>this[_0x5d350e(0x17e)](_0x4ad786))[_0x5d350e(0x151)](_0x3776c6=>null!==_0x3776c6);}async[_0xbb7b3c(0x186)](_0x334e8f,_0x150df7,_0x2b373f=_0x4a9210[_0xbb7b3c(0x168)]){const _0x3cdbc4=_0xbb7b3c,_0x5b2eaa=_0x3cdbc4(0x199)+_0x427bda();this[_0x3cdbc4(0x12c)](_0x5b2eaa);try{await Promise[_0x3cdbc4(0x1a3)](_0x334e8f[_0x3cdbc4(0x1ae)](async _0x18505f=>{const _0x58e02e=_0x3cdbc4,_0x2fe767=_0x58e02e(0x18c)+_0x427bda(),_0x7fdde3=_0x2c3987(_0x18505f[_0x58e02e(0x12e)]);try{this[_0x58e02e(0x178)]({'type':_0x2b373f,'label':_0x150df7?.[_0x58e02e(0x15b)]||_0x7fdde3,'uiId':_0x2fe767,'resourceId':_0x150df7?.[_0x58e02e(0x145)]},!0x0);const _0x234382=this[_0x58e02e(0x148)][_0x58e02e(0x176)](this[_0x58e02e(0x162)],_0x18505f,_0x150df7);this[_0x58e02e(0x157)][_0x58e02e(0x161)](_0x2fe767,_0x234382[_0x58e02e(0x132)]);const {id:_0x17dbc0}=await _0x234382[_0x58e02e(0x13e)]();this[_0x58e02e(0x157)][_0x58e02e(0x1a0)](_0x2fe767),this[_0x58e02e(0x135)]({'type':_0x2b373f,'id':_0x17dbc0,'label':_0x150df7?.[_0x58e02e(0x15b)]||_0x7fdde3,'uiId':_0x2fe767,'resourceId':_0x150df7?.[_0x58e02e(0x145)]},!0x1);}catch(_0xf85efd){this[_0x58e02e(0x157)][_0x58e02e(0x1a0)](_0x2fe767);if(!(_0xf85efd instanceof _0x3ef10f&&_0xf85efd[_0x58e02e(0x14b)][_0x58e02e(0x177)](_0x58e02e(0x189)))){const _0x3744ff=_0x1616ab[_0x58e02e(0x198)](_0xf85efd[_0x58e02e(0x144)])||_0x58e02e(0x195),_0x417374=new _0x3ef10f(_0x3744ff,null,{'fileName':_0x7fdde3,..._0xf85efd});_0x417374[_0x58e02e(0x152)]=_0xf85efd[_0x58e02e(0x152)],this[_0x58e02e(0x191)](_0x58e02e(0x153),{'error':_0x417374});}this[_0x58e02e(0x16b)](_0x2fe767);}}));}finally{this[_0x3cdbc4(0x127)](_0x5b2eaa);}}[_0xbb7b3c(0x131)](_0x1ca40b){const _0x4e0e77=_0xbb7b3c;if(this[_0x4e0e77(0x163)]())return;const _0x155b4f={'type':_0x4a9210[_0x4e0e77(0x182)],'uiId':_0x4e0e77(0x171),'label':_0x1ca40b,'isReadOnly':this[_0x4e0e77(0x1a9)][_0x4e0e77(0x15f)](_0x4e0e77(0x171)),'hidden':this[_0x4e0e77(0x1a9)][_0x4e0e77(0x15f)](_0x4e0e77(0x171))};this[_0x4e0e77(0x178)](_0x155b4f);}async[_0xbb7b3c(0x141)](_0xde3b5c,_0x57b6cb,_0x35ee60,_0x153f46){const _0x54f432=_0xbb7b3c,_0x204523=this[_0x54f432(0x190)][_0x54f432(0x198)](_0x54f432(0x171));if(_0x204523&&_0xde3b5c){_0x204523[_0x54f432(0x194)]=_0x153f46?_0x153f46[_0x54f432(0x1ae)](_0x2518ea=>({'start':_0x2518ea[_0x54f432(0x13b)],'end':_0x2518ea[_0x54f432(0x139)]})):[];try{if(_0x204523[_0x54f432(0x184)]===_0x57b6cb)return;const {id:_0x22ce16}=await this[_0x54f432(0x148)][_0x54f432(0x142)](this[_0x54f432(0x162)],_0xde3b5c,{'version':_0x57b6cb,'sessionId':_0x35ee60})[_0x54f432(0x13e)]();_0x204523['id']=_0x22ce16,_0x204523[_0x54f432(0x183)]=_0xde3b5c,_0x204523[_0x54f432(0x184)]=_0x57b6cb,_0x204523[_0x54f432(0x187)]=_0x35ee60;}catch(_0x2bf903){const _0x55a9e6=new _0x3ef10f(_0x54f432(0x126),null);_0x55a9e6[_0x54f432(0x152)]=_0x2bf903[_0x54f432(0x152)],this[_0x54f432(0x191)](_0x54f432(0x153),{'error':_0x55a9e6});}}}[_0xbb7b3c(0x143)](_0x43883e){const _0x3e764d=_0xbb7b3c;this[_0x3e764d(0x178)]({'type':_0x4a9210[_0x3e764d(0x174)],'label':_0x43883e,'uiId':_0x3e764d(0x194),'content':_0x43883e});}[_0xbb7b3c(0x17d)](){const _0x596234=_0xbb7b3c;this[_0x596234(0x16b)](_0x596234(0x194));}async[_0xbb7b3c(0x129)](_0x158e4a,_0x1ae8c6){const _0x4d801e=_0xbb7b3c,_0x294833=_0x4d801e(0x146)+_0x427bda();this[_0x4d801e(0x12c)](_0x294833);const _0x56435f=_0x4d801e(0x146)+_0x427bda();try{this[_0x4d801e(0x178)]({'type':_0x4a9210[_0x4d801e(0x17c)],'label':_0x1ae8c6?.[_0x4d801e(0x15b)]||_0x158e4a,'uiId':_0x56435f,'resourceId':_0x1ae8c6?.[_0x4d801e(0x145)]},!0x0);const _0x23c1b7=this[_0x4d801e(0x148)][_0x4d801e(0x18b)](this[_0x4d801e(0x162)],_0x158e4a,_0x1ae8c6);this[_0x4d801e(0x157)][_0x4d801e(0x161)](_0x56435f,_0x23c1b7[_0x4d801e(0x132)]);const {id:_0x290414}=await _0x23c1b7[_0x4d801e(0x13e)]();this[_0x4d801e(0x157)][_0x4d801e(0x1a0)](_0x56435f),this[_0x4d801e(0x135)]({'type':_0x4a9210[_0x4d801e(0x17c)],'id':_0x290414,'label':_0x1ae8c6?.[_0x4d801e(0x15b)]||_0x158e4a,'uiId':_0x56435f,'resourceId':_0x1ae8c6?.[_0x4d801e(0x145)]},!0x1);}catch(_0x4b38fa){this[_0x4d801e(0x157)][_0x4d801e(0x1a0)](_0x56435f),(_0x4b38fa[_0x4d801e(0x14b)][_0x4d801e(0x177)](_0x4d801e(0x189))||this[_0x4d801e(0x191)](_0x4d801e(0x153),{'error':new _0x3ef10f(_0x4d801e(0x154),this,{'url':_0x158e4a,'originalError':_0x4b38fa}),'url':_0x158e4a}),this[_0x4d801e(0x16b)](_0x56435f));}finally{this[_0x4d801e(0x127)](_0x294833);}}async[_0xbb7b3c(0x19e)](_0x246b47,_0x51ec6d,_0x552109){const _0x1fdfd4=_0xbb7b3c,_0x71726c=this[_0x1fdfd4(0x1a6)][_0x1fdfd4(0x12d)][_0x1fdfd4(0x1af)](_0x2f71b3=>_0x2f71b3['id']===_0x246b47);if(!_0x71726c)return this[_0x1fdfd4(0x191)](_0x1fdfd4(0x153),{'error':new _0x3ef10f(_0x1fdfd4(0x12b),this,{'sourceId':_0x246b47}),'sourceId':_0x246b47}),[];try{const _0x15a373=(await _0x71726c[_0x1fdfd4(0x1ac)](_0x51ec6d))[_0x1fdfd4(0x1ae)](_0x20798d=>{const _0x71d84d=_0x1fdfd4,_0x338a60=this[_0x71d84d(0x185)](_0x20798d['id']);return{..._0x20798d,'isInContext':_0x338a60};});return _0x71726c[_0x1fdfd4(0x13c)]=_0x15a373,this[_0x1fdfd4(0x191)](_0x1fdfd4(0x169),{'sourceId':_0x246b47,'source':_0x71726c,'resources':_0x15a373,'uid':_0x552109}),_0x15a373;}catch(_0x368c71){return this[_0x1fdfd4(0x191)](_0x1fdfd4(0x153),{'error':new _0x3ef10f(_0x1fdfd4(0x1ad),this,{'sourceId':_0x246b47,'originalError':_0x368c71}),'sourceId':_0x246b47,'sourceLabel':_0x71726c[_0x1fdfd4(0x15b)]}),[];}}async[_0xbb7b3c(0x140)](_0x45b820,_0x3e1a12){const _0x8f934b=_0xbb7b3c;if(this[_0x8f934b(0x185)](_0x3e1a12['id']))return;let _0x66144c=_0x3e1a12[_0x8f934b(0x1b3)];if(!_0x66144c&&_0x45b820[_0x8f934b(0x14c)])try{_0x66144c=await _0x45b820[_0x8f934b(0x14c)](_0x3e1a12['id']);}catch(_0x4243b9){return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x1a1),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'originalError':_0x4243b9}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});}if(_0x66144c)switch(_0x3e1a12[_0x8f934b(0x138)]){case _0x4a9210[_0x8f934b(0x17c)]:if(_0x8f934b(0x197)!=typeof _0x66144c)return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x136),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'expectedType':_0x8f934b(0x197),'actualType':typeof _0x66144c}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});await this[_0x8f934b(0x129)](_0x66144c,{'label':_0x3e1a12[_0x8f934b(0x15b)],'resourceId':_0x3e1a12['id']});break;case _0x4a9210[_0x8f934b(0x168)]:if(!(_0x66144c instanceof File))return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x136),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'expectedType':_0x8f934b(0x160),'actualType':typeof _0x66144c}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});await this[_0x8f934b(0x186)]([_0x66144c],{'label':_0x3e1a12[_0x8f934b(0x15b)],'resourceId':_0x3e1a12['id']});break;case _0x4a9210[_0x8f934b(0x13a)]:if(_0x8f934b(0x155)!=typeof _0x66144c||!(_0x8f934b(0x183)in _0x66144c)||!(_0x8f934b(0x138)in _0x66144c))return void this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x136),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'expectedType':_0x8f934b(0x19f),'actualType':typeof _0x66144c}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});_0x66144c=AIChatContext[_0x8f934b(0x179)](_0x66144c,_0x3e1a12[_0x8f934b(0x15b)]),await this[_0x8f934b(0x186)]([_0x66144c],{'label':_0x3e1a12[_0x8f934b(0x15b)],'resourceId':_0x3e1a12['id']},_0x4a9210[_0x8f934b(0x13a)]);break;default:this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x196),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id'],'resourceType':_0x3e1a12[_0x8f934b(0x138)]}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});}else this[_0x8f934b(0x191)](_0x8f934b(0x153),{'error':new _0x3ef10f(_0x8f934b(0x149),this,{'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']}),'resourceId':_0x3e1a12['id'],'sourceId':_0x45b820['id']});}static[_0xbb7b3c(0x179)](_0x2876f1,_0x513cba){const _0x30d71c=_0xbb7b3c;switch(_0x2876f1[_0x30d71c(0x138)]){case _0x2f602c[_0x30d71c(0x1a2)]:return new File([_0x2876f1[_0x30d71c(0x183)]],_0x513cba,{'type':_0x30d71c(0x173)});case _0x2f602c[_0x30d71c(0x1a8)]:return new File([_0x2876f1[_0x30d71c(0x183)]],_0x513cba,{'type':_0x30d71c(0x172)});default:return new File([_0x2876f1[_0x30d71c(0x183)]],_0x513cba,{'type':_0x30d71c(0x1ab)});}}static[_0xbb7b3c(0x17e)](_0x4029ed){const _0x2f5303=_0xbb7b3c;switch(_0x4029ed[_0x2f5303(0x138)]){case _0x4a9210[_0x2f5303(0x168)]:return{'type':_0x4a9210[_0x2f5303(0x168)],'id':_0x4029ed['id']};case _0x4a9210[_0x2f5303(0x17c)]:return{'type':_0x4a9210[_0x2f5303(0x17c)],'id':_0x4029ed['id']};case _0x4a9210[_0x2f5303(0x182)]:return{'type':_0x4a9210[_0x2f5303(0x182)],'id':_0x4029ed['id'],..._0x4029ed[_0x2f5303(0x194)]?.[_0x2f5303(0x128)]&&{'selection':_0x4029ed[_0x2f5303(0x194)]}};case _0x4a9210[_0x2f5303(0x13a)]:return{'type':_0x4a9210[_0x2f5303(0x168)],'id':_0x4029ed['id']};default:return null;}}[_0xbb7b3c(0x178)](_0x658b3d,_0x548990=!0x1){const _0x28cc92=_0xbb7b3c;if(this[_0x28cc92(0x190)][_0x28cc92(0x161)](_0x658b3d[_0x28cc92(0x165)],_0x658b3d),_0x658b3d[_0x28cc92(0x167)]||this[_0x28cc92(0x191)](_0x28cc92(0x12f),{'contextItem':_0x658b3d,'isLoading':_0x548990}),_0x28cc92(0x171)===_0x658b3d[_0x28cc92(0x165)]&&this[_0x28cc92(0x19d)](),_0x658b3d[_0x28cc92(0x145)]){const _0x3c13f9=this[_0x28cc92(0x14a)](_0x658b3d[_0x28cc92(0x145)]);_0x3c13f9&&_0x3c13f9[_0x28cc92(0x14d)](_0x17868e=>{const _0x23048d=_0x28cc92;this[_0x23048d(0x18f)](_0x17868e,_0x658b3d[_0x23048d(0x145)],!0x0);});}}[_0xbb7b3c(0x16b)](_0x41329f){const _0x4b12da=_0xbb7b3c,_0x22efd8=this[_0x4b12da(0x190)][_0x4b12da(0x198)](_0x41329f),_0x282502=this[_0x4b12da(0x157)][_0x4b12da(0x198)](_0x41329f);if(_0x282502&&(_0x282502[_0x4b12da(0x188)](),this[_0x4b12da(0x157)][_0x4b12da(0x1a0)](_0x41329f)),_0x22efd8?.[_0x4b12da(0x145)]){const _0x3e40b2=this[_0x4b12da(0x14a)](_0x22efd8[_0x4b12da(0x145)]);_0x3e40b2&&_0x3e40b2[_0x4b12da(0x14d)](_0x214675=>{const _0x1190de=_0x4b12da;this[_0x1190de(0x18f)](_0x214675,_0x22efd8[_0x1190de(0x145)],!0x1);});}this[_0x4b12da(0x190)][_0x4b12da(0x1a0)](_0x41329f),this[_0x4b12da(0x191)](_0x4b12da(0x192),{'uiId':_0x41329f,'type':_0x22efd8?.[_0x4b12da(0x138)]}),_0x4b12da(0x171)===_0x41329f&&this[_0x4b12da(0x19d)]();}[_0xbb7b3c(0x135)](_0x21ef3f,_0x197c98){const _0x5bccf4=_0xbb7b3c;if(this[_0x5bccf4(0x190)][_0x5bccf4(0x15f)](_0x21ef3f[_0x5bccf4(0x165)])&&(this[_0x5bccf4(0x190)][_0x5bccf4(0x161)](_0x21ef3f[_0x5bccf4(0x165)],_0x21ef3f),this[_0x5bccf4(0x191)](_0x5bccf4(0x17f),{'contextItem':_0x21ef3f,'isLoading':_0x197c98}),_0x21ef3f[_0x5bccf4(0x145)])){const _0x570a0b=this[_0x5bccf4(0x14a)](_0x21ef3f[_0x5bccf4(0x145)]);_0x570a0b&&_0x570a0b[_0x5bccf4(0x14d)](_0x5dcf23=>{const _0x9f8154=_0x5bccf4;this[_0x9f8154(0x18f)](_0x5dcf23,_0x21ef3f[_0x9f8154(0x145)],!0x0);});}}[_0xbb7b3c(0x150)](_0x170b5f){const _0x21bacd=_0xbb7b3c;this[_0x21bacd(0x1a9)][_0x21bacd(0x161)](_0x170b5f[_0x21bacd(0x165)],_0x170b5f);}[_0xbb7b3c(0x193)](){const _0x334c44=_0xbb7b3c;this[_0x334c44(0x1a6)]={'document':{'enabled':!0x1!==this[_0x334c44(0x164)]?.[_0x334c44(0x1a5)]?.[_0x334c44(0x17b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x334c44(0x164)]?.[_0x334c44(0x18d)]?.[_0x334c44(0x17b)]},'files':{'enabled':!0x1!==this[_0x334c44(0x164)]?.[_0x334c44(0x180)]?.[_0x334c44(0x17b)]},'sources':this[_0x334c44(0x18e)]()},this[_0x334c44(0x191)](_0x334c44(0x15d),{'options':this[_0x334c44(0x1a6)]});}[_0xbb7b3c(0x18e)](){const _0x5c6fa6=_0xbb7b3c;return this[_0x5c6fa6(0x164)]?.[_0x5c6fa6(0x12d)]?.[_0x5c6fa6(0x1ae)](_0x2633b4=>({..._0x2633b4,'resources':[]}))??[];}[_0xbb7b3c(0x19d)](){const _0x19ec12=_0xbb7b3c,_0x2c6c1d=this[_0x19ec12(0x163)]()||this[_0x19ec12(0x1b2)]();this[_0x19ec12(0x1a6)][_0x19ec12(0x1a5)][_0x19ec12(0x137)]=_0x2c6c1d,this[_0x19ec12(0x191)](_0x19ec12(0x15d),{'options':this[_0x19ec12(0x1a6)]});}[_0xbb7b3c(0x185)](_0x13b32f){const _0x3823b4=_0xbb7b3c;for(const _0x3514a7 of this[_0x3823b4(0x190)][_0x3823b4(0x13f)]())if(_0x3514a7[_0x3823b4(0x145)]===_0x13b32f)return!0x0;for(const _0x134ce7 of this[_0x3823b4(0x1a9)][_0x3823b4(0x13f)]())if(_0x134ce7[_0x3823b4(0x145)]===_0x13b32f)return!0x0;return!0x1;}[_0xbb7b3c(0x14a)](_0x3b42aa){const _0x56f859=_0xbb7b3c,_0x10d512=[];for(const _0x1724ad of this[_0x56f859(0x1a6)][_0x56f859(0x12d)]){_0x1724ad[_0x56f859(0x13c)][_0x56f859(0x1af)](_0x9542f9=>_0x9542f9['id']===_0x3b42aa)&&_0x10d512[_0x56f859(0x166)](_0x1724ad['id']);}return 0x0===_0x10d512[_0x56f859(0x128)]?null:_0x10d512;}[_0xbb7b3c(0x18f)](_0x3cee4d,_0x111dcc,_0x7246c5){const _0x283ae0=_0xbb7b3c,_0x16901f=this[_0x283ae0(0x1a6)][_0x283ae0(0x12d)][_0x283ae0(0x1af)](_0xb8cc24=>_0xb8cc24['id']===_0x3cee4d);if(!_0x16901f)return;const _0x571eb5=_0x16901f[_0x283ae0(0x13c)][_0x283ae0(0x1af)](_0x510211=>_0x510211['id']===_0x111dcc);_0x571eb5&&(_0x571eb5[_0x283ae0(0x16e)]=_0x7246c5,this[_0x283ae0(0x191)](_0x283ae0(0x16c),{'sourceId':_0x3cee4d,'resourceId':_0x111dcc,'isInContext':_0x7246c5}));}[_0xbb7b3c(0x12c)](_0x4299de){const _0x1489d3=_0xbb7b3c;this[_0x1489d3(0x156)][_0x1489d3(0x161)](_0x4299de,!0x0),this[_0x1489d3(0x156)][_0x1489d3(0x14e)]&&this[_0x1489d3(0x191)](_0x1489d3(0x1aa),{'isUploadInProgress':!0x0});}[_0xbb7b3c(0x127)](_0x301da1){const _0x2333dc=_0xbb7b3c;this[_0x2333dc(0x156)][_0x2333dc(0x1a0)](_0x301da1),0x0===this[_0x2333dc(0x156)][_0x2333dc(0x14e)]&&this[_0x2333dc(0x191)](_0x2333dc(0x1aa),{'isUploadInProgress':!0x1});}}
23
+ const _0x59bc08=_0x177f;(function(_0x12550a,_0x5a3f07){const _0x5bdbc4=_0x177f,_0x21c794=_0x12550a();while(!![]){try{const _0x5f5187=parseInt(_0x5bdbc4(0x1f2))/0x1*(-parseInt(_0x5bdbc4(0x22c))/0x2)+-parseInt(_0x5bdbc4(0x201))/0x3+parseInt(_0x5bdbc4(0x230))/0x4*(-parseInt(_0x5bdbc4(0x1ca))/0x5)+parseInt(_0x5bdbc4(0x219))/0x6+-parseInt(_0x5bdbc4(0x1fe))/0x7*(parseInt(_0x5bdbc4(0x1b4))/0x8)+parseInt(_0x5bdbc4(0x232))/0x9+parseInt(_0x5bdbc4(0x220))/0xa*(parseInt(_0x5bdbc4(0x231))/0xb);if(_0x5f5187===_0x5a3f07)break;else _0x21c794['push'](_0x21c794['shift']());}catch(_0x20fda5){_0x21c794['push'](_0x21c794['shift']());}}}(_0x1c15,0x57bef));import{CKEditorError as _0x5ebcea,ObservableMixin as _0x29ad64,uid as _0xe945a3}from'ckeditor5/src/utils.js';import{AIContextItemType as _0xd267e,AIContextTextResourceType as _0x3f6228}from'../../aicore/model/aicontext.js';function _0x1c15(){const _0x5581b7=['1341170JneyRM','MARKDOWN','object','File','DOCUMENT','_toggleAddCurrentDocumentOptionVisibility','text/html','getPendingContextItems','_ongoingUploads','URL','ai-chat-resource-no-data','ai-chat-resource-load-failed','158vwBeEw','_ongoingUploadOperations','uploadUrl','loadSourceResources','4XKCrXW','121bzPwny','891405FUyVWm','ai-chat-file-upload-failed','enabled','sessionId','set','abortController','isInContext','delete','current-document','isHidden','start','addContextOptionsChanged','resourceId','type','addToConversationContext','uploadFile','TEXT','_conversationContextItems','168tDiKgv','getData','updateCurrentDocument','_removeContextItem','_finishUploadOperation','hidden','addUrlToContext','getSentContextItems','sources','map','ai-request-aborted','addResourceToContext','data','_pendingContextItems','message','isSelectionInContext','removeFromContext','all','FILE','getId','stack','sourceResourcesLoaded','3337645UEWRWi','end','_updateResourceInContextState','ai-chat-source-not-found','length','error','_getCustomSourcesInitialState','has','addFilesToContext','_convertTextResourceToFile','contextItemLoadingEnded','file-','ai-chat-url-upload-failed','urls','_finishContextItemLoading','text/markdown','clearPendingContextItems','contextItemAdded','ai-chat-context-unsupported-type','fetchDocument','isCurrentDocumentInContext','getDocument','_ownerId','uploadDocument','string','values','size','_connector','resources','object\x20with\x20content\x20and\x20type\x20properties','_addToConversationContextItem','contextSent','_mapContextItemToRequestData','text/plain','ai-chat-source-resources-load-failed','uiId','resourceStateChanged','content','files-','ai-chat-context-invalid-data','3959vqwEZL','_findSourceIdsByResourceId','init','isCurrentDocumentInConversation','ai-chat-document-upload-failed','isReadOnly','url','push','version','_addContextOptionsState','uploadProgressChanged','addCurrentDocumentToContext','181895CzefYm','name','attributes','869400utkwwy','getResources','document','Current\x20document','label','code','_isResourceInContext','mapContextItemsToRequestData','contextItemRemoved','files','get','HTML','startsWith','_addContextItem','_config','addSelectionToContext','from','selection','abort','SELECTION','_setAddContextOptionsDefaultState','_startUploadOperation','populateFromMessage','removeSelectionFromContext','3605100PHhhDh','filter','url-','_createContextItemFromContent','fire','find','forEach'];_0x1c15=function(){return _0x5581b7;};return _0x1c15();}import{escape as _0x1d2d32}from'es-toolkit/compat';import{errorsMap as _0x54bba8}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x59bc08(0x1db),_0x59bc08(0x209),_0x59bc08(0x1d4),_0x59bc08(0x1e9),_0x59bc08(0x1cf),_0x59bc08(0x23d),_0x59bc08(0x1c9),_0x59bc08(0x1ee),_0x59bc08(0x1fc)];function _0x177f(_0x2f6272,_0x216c4d){const _0x1c157b=_0x1c15();return _0x177f=function(_0x177f0f,_0x915992){_0x177f0f=_0x177f0f-0x1af;let _0x51e6b3=_0x1c157b[_0x177f0f];return _0x51e6b3;},_0x177f(_0x2f6272,_0x216c4d);}export class AIChatContext extends _0x29ad64(){[_0x59bc08(0x1e5)];[_0x59bc08(0x20f)];[_0x59bc08(0x1e0)];constructor({connector:_0x2fec8a,config:_0x53a5b5,ownerId:_0x48331f}){const _0x344e2a=_0x59bc08;super(),this[_0x344e2a(0x1e5)]=_0x2fec8a,this[_0x344e2a(0x20f)]=_0x53a5b5,this[_0x344e2a(0x1e0)]=_0x48331f;}[_0x59bc08(0x1f4)](){const _0x497786=_0x59bc08;this[_0x497786(0x1c1)]=new Map(),this[_0x497786(0x1b3)]=new Map(),this[_0x497786(0x228)]=new Map(),this[_0x497786(0x22d)]=new Map(),this[_0x497786(0x215)]();}[_0x59bc08(0x227)](){const _0x8b2d81=_0x59bc08;return this[_0x8b2d81(0x1c1)];}async[_0x59bc08(0x217)](_0x456819){const _0x40b04b=_0x59bc08,_0x19f2ba=await this[_0x40b04b(0x21c)](_0x456819);return this[_0x40b04b(0x1e8)](_0x19f2ba),_0x40b04b(0x23a)===_0x19f2ba[_0x40b04b(0x1ed)]&&this[_0x40b04b(0x225)](),_0x19f2ba;}async[_0x59bc08(0x21c)](_0x8a19c4){const _0x3a3d31=_0x59bc08;if(_0x8a19c4[_0x3a3d31(0x1af)]===_0xd267e[_0x3a3d31(0x224)]){const _0x394d7a=await this[_0x3a3d31(0x1e5)][_0x3a3d31(0x1dd)](this[_0x3a3d31(0x1e0)],_0x8a19c4['id'])[_0x3a3d31(0x1df)]();return{'id':_0x3a3d31(0x23a),'uiId':_0x3a3d31(0x23a),'label':_0x3a3d31(0x204),'type':_0x8a19c4[_0x3a3d31(0x1af)],'content':_0x394d7a[_0x3a3d31(0x1ef)],'hidden':this[_0x3a3d31(0x1b3)][_0x3a3d31(0x1d1)](_0x3a3d31(0x23a)),'version':_0x394d7a[_0x3a3d31(0x200)]?.[_0x3a3d31(0x1fa)],'sessionId':_0x394d7a[_0x3a3d31(0x200)]?.[_0x3a3d31(0x235)]};}return{'id':_0x8a19c4['id'],'uiId':_0x8a19c4['id'],'label':_0x8a19c4[_0x3a3d31(0x200)]?.[_0x3a3d31(0x205)]||_0x8a19c4[_0x3a3d31(0x1ff)]||_0x8a19c4[_0x3a3d31(0x1f8)]||_0x8a19c4['id'],'type':_0x8a19c4[_0x3a3d31(0x1af)],..._0x8a19c4?.[_0x3a3d31(0x200)]?.[_0x3a3d31(0x23e)]?{'resourceId':_0x8a19c4[_0x3a3d31(0x200)]?.[_0x3a3d31(0x23e)]}:{}};}[_0x59bc08(0x1bb)](){const _0x3a4d9d=_0x59bc08;return new Map(this[_0x3a4d9d(0x1b3)]);}[_0x59bc08(0x1c4)](_0x542e75){const _0x134f43=_0x59bc08,_0x5efb79=this[_0x134f43(0x1c1)][_0x134f43(0x20b)](_0x542e75);_0x5efb79?.[_0x134f43(0x1f7)]||this[_0x134f43(0x1b7)](_0x542e75);}[_0x59bc08(0x1da)](){const _0x4706f1=_0x59bc08;if(0x0===this[_0x4706f1(0x1c1)][_0x4706f1(0x1e4)])return;for(const _0x1b7bd4 of this[_0x4706f1(0x1c1)][_0x4706f1(0x1e3)]())this[_0x4706f1(0x1b7)](_0x1b7bd4[_0x4706f1(0x1ed)]);const _0xe79224=this[_0x4706f1(0x1b3)][_0x4706f1(0x20b)](_0x4706f1(0x23a))||this[_0x4706f1(0x1c1)][_0x4706f1(0x20b)](_0x4706f1(0x23a));_0xe79224&&this[_0x4706f1(0x20e)]({..._0xe79224,'isReadOnly':!0x0,'hidden':!0x0});}[_0x59bc08(0x1b0)](_0x1134de){const _0x350866=_0x59bc08;for(const _0x553ea2 of _0x1134de[_0x350866(0x1e3)]())this[_0x350866(0x1e8)](_0x553ea2);this[_0x350866(0x1da)](),this[_0x350866(0x21d)](_0x350866(0x1e9),{'contextItems':Array[_0x350866(0x211)](this[_0x350866(0x1bb)]()[_0x350866(0x1e3)]())});}[_0x59bc08(0x1de)](){const _0x272ec9=_0x59bc08;return this[_0x272ec9(0x1c1)][_0x272ec9(0x1d1)](_0x272ec9(0x23a));}[_0x59bc08(0x1c3)](){const _0x24399e=_0x59bc08;return this[_0x24399e(0x1c1)][_0x24399e(0x1d1)](_0x24399e(0x212));}[_0x59bc08(0x1f5)](){const _0x332537=_0x59bc08;return this[_0x332537(0x1b3)][_0x332537(0x1d1)](_0x332537(0x23a));}static[_0x59bc08(0x208)](_0x2202e3){const _0x5acf9d=_0x59bc08;return Array[_0x5acf9d(0x211)](_0x2202e3[_0x5acf9d(0x1e3)]())[_0x5acf9d(0x1bd)](_0x43cbbd=>this[_0x5acf9d(0x1ea)](_0x43cbbd))[_0x5acf9d(0x21a)](_0xd37df8=>null!==_0xd37df8);}async[_0x59bc08(0x1d2)](_0x2c9a2b,_0x50c9d0,_0x360237=_0xd267e[_0x59bc08(0x1c6)]){const _0x21aec5=_0x59bc08,_0x56ef0e=_0x21aec5(0x1f0)+_0xe945a3();this[_0x21aec5(0x216)](_0x56ef0e);try{await Promise[_0x21aec5(0x1c5)](_0x2c9a2b[_0x21aec5(0x1bd)](async _0x5deafc=>{const _0x3f0ea2=_0x21aec5,_0x191a4d=_0x3f0ea2(0x1d5)+_0xe945a3(),_0x3afb7e=_0x1d2d32(_0x5deafc[_0x3f0ea2(0x1ff)]);try{this[_0x3f0ea2(0x20e)]({'type':_0x360237,'label':_0x50c9d0?.[_0x3f0ea2(0x205)]||_0x3afb7e,'uiId':_0x191a4d,'resourceId':_0x50c9d0?.[_0x3f0ea2(0x23e)]},!0x0);const _0x3f43fb=this[_0x3f0ea2(0x1e5)][_0x3f0ea2(0x1b1)](this[_0x3f0ea2(0x1e0)],_0x5deafc,_0x50c9d0);this[_0x3f0ea2(0x228)][_0x3f0ea2(0x236)](_0x191a4d,_0x3f43fb[_0x3f0ea2(0x237)]);const {id:_0x3cd172}=await _0x3f43fb[_0x3f0ea2(0x1c7)]();this[_0x3f0ea2(0x228)][_0x3f0ea2(0x239)](_0x191a4d),this[_0x3f0ea2(0x1d8)]({'type':_0x360237,'id':_0x3cd172,'label':_0x50c9d0?.[_0x3f0ea2(0x205)]||_0x3afb7e,'uiId':_0x191a4d,'resourceId':_0x50c9d0?.[_0x3f0ea2(0x23e)]},!0x1);}catch(_0x5c377e){this[_0x3f0ea2(0x228)][_0x3f0ea2(0x239)](_0x191a4d);if(!(_0x5c377e instanceof _0x5ebcea&&_0x5c377e[_0x3f0ea2(0x1c2)][_0x3f0ea2(0x20d)](_0x3f0ea2(0x1be)))){const _0x16064c=_0x54bba8[_0x3f0ea2(0x20b)](_0x5c377e[_0x3f0ea2(0x206)])||_0x3f0ea2(0x233),_0x564014=new _0x5ebcea(_0x16064c,null,{'fileName':_0x3afb7e,..._0x5c377e});_0x564014[_0x3f0ea2(0x1c8)]=_0x5c377e[_0x3f0ea2(0x1c8)],this[_0x3f0ea2(0x21d)](_0x3f0ea2(0x1cf),{'error':_0x564014});}this[_0x3f0ea2(0x1b7)](_0x191a4d);}}));}finally{this[_0x21aec5(0x1b8)](_0x56ef0e);}}[_0x59bc08(0x1fd)](_0x9b5066){const _0x58d2f4=_0x59bc08;if(this[_0x58d2f4(0x1de)]())return;const _0x478705={'type':_0xd267e[_0x58d2f4(0x224)],'uiId':_0x58d2f4(0x23a),'label':_0x9b5066,'isReadOnly':this[_0x58d2f4(0x1b3)][_0x58d2f4(0x1d1)](_0x58d2f4(0x23a)),'hidden':this[_0x58d2f4(0x1b3)][_0x58d2f4(0x1d1)](_0x58d2f4(0x23a))};this[_0x58d2f4(0x20e)](_0x478705);}async[_0x59bc08(0x1b6)](_0x311ca2,_0x1ef673,_0x5d1f89,_0x325b42){const _0x179704=_0x59bc08,_0x4e6ba3=this[_0x179704(0x1c1)][_0x179704(0x20b)](_0x179704(0x23a));if(_0x4e6ba3&&_0x311ca2){_0x4e6ba3[_0x179704(0x212)]=_0x325b42?_0x325b42[_0x179704(0x1bd)](_0x1a8864=>({'start':_0x1a8864[_0x179704(0x23c)],'end':_0x1a8864[_0x179704(0x1cb)]})):[];try{if(_0x4e6ba3[_0x179704(0x1fa)]===_0x1ef673)return;const {id:_0x46e8a8}=await this[_0x179704(0x1e5)][_0x179704(0x1e1)](this[_0x179704(0x1e0)],_0x311ca2,{'version':_0x1ef673,'sessionId':_0x5d1f89})[_0x179704(0x1c7)]();_0x4e6ba3['id']=_0x46e8a8,_0x4e6ba3[_0x179704(0x1ef)]=_0x311ca2,_0x4e6ba3[_0x179704(0x1fa)]=_0x1ef673,_0x4e6ba3[_0x179704(0x235)]=_0x5d1f89;}catch(_0x49a070){const _0x47fb07=new _0x5ebcea(_0x179704(0x1f6),null);_0x47fb07[_0x179704(0x1c8)]=_0x49a070[_0x179704(0x1c8)],this[_0x179704(0x21d)](_0x179704(0x1cf),{'error':_0x47fb07});}}}[_0x59bc08(0x210)](_0x560bbb){const _0x1f8a79=_0x59bc08;this[_0x1f8a79(0x20e)]({'type':_0xd267e[_0x1f8a79(0x214)],'label':_0x560bbb,'uiId':_0x1f8a79(0x212),'content':_0x560bbb});}[_0x59bc08(0x218)](){const _0x495741=_0x59bc08;this[_0x495741(0x1b7)](_0x495741(0x212));}async[_0x59bc08(0x1ba)](_0x21c441,_0x173363){const _0x417a42=_0x59bc08,_0x461c8b=_0x417a42(0x21b)+_0xe945a3();this[_0x417a42(0x216)](_0x461c8b);const _0x348412=_0x417a42(0x21b)+_0xe945a3();try{this[_0x417a42(0x20e)]({'type':_0xd267e[_0x417a42(0x229)],'label':_0x173363?.[_0x417a42(0x205)]||_0x21c441,'uiId':_0x348412,'resourceId':_0x173363?.[_0x417a42(0x23e)]},!0x0);const _0x308638=this[_0x417a42(0x1e5)][_0x417a42(0x22e)](this[_0x417a42(0x1e0)],_0x21c441,_0x173363);this[_0x417a42(0x228)][_0x417a42(0x236)](_0x348412,_0x308638[_0x417a42(0x237)]);const {id:_0x5b70e1}=await _0x308638[_0x417a42(0x1c7)]();this[_0x417a42(0x228)][_0x417a42(0x239)](_0x348412),this[_0x417a42(0x1d8)]({'type':_0xd267e[_0x417a42(0x229)],'id':_0x5b70e1,'label':_0x173363?.[_0x417a42(0x205)]||_0x21c441,'uiId':_0x348412,'resourceId':_0x173363?.[_0x417a42(0x23e)]},!0x1);}catch(_0x36eb65){this[_0x417a42(0x228)][_0x417a42(0x239)](_0x348412),(_0x36eb65[_0x417a42(0x1c2)][_0x417a42(0x20d)](_0x417a42(0x1be))||this[_0x417a42(0x21d)](_0x417a42(0x1cf),{'error':new _0x5ebcea(_0x417a42(0x1d6),this,{'url':_0x21c441,'originalError':_0x36eb65}),'url':_0x21c441}),this[_0x417a42(0x1b7)](_0x348412));}finally{this[_0x417a42(0x1b8)](_0x461c8b);}}async[_0x59bc08(0x22f)](_0x56c667,_0x126901,_0x237883){const _0x575c4d=_0x59bc08,_0x3e392a=this[_0x575c4d(0x1fb)][_0x575c4d(0x1bc)][_0x575c4d(0x21e)](_0x1f15f4=>_0x1f15f4['id']===_0x56c667);if(!_0x3e392a)return this[_0x575c4d(0x21d)](_0x575c4d(0x1cf),{'error':new _0x5ebcea(_0x575c4d(0x1cd),this,{'sourceId':_0x56c667}),'sourceId':_0x56c667}),[];try{const _0x467db3=(await _0x3e392a[_0x575c4d(0x202)](_0x126901))[_0x575c4d(0x1bd)](_0x2e4496=>{const _0x170a65=_0x575c4d,_0x58d975=this[_0x170a65(0x207)](_0x2e4496['id']);return{..._0x2e4496,'isInContext':_0x58d975};});return _0x3e392a[_0x575c4d(0x1e6)]=_0x467db3,this[_0x575c4d(0x21d)](_0x575c4d(0x1c9),{'sourceId':_0x56c667,'source':_0x3e392a,'resources':_0x467db3,'uid':_0x237883}),_0x467db3;}catch(_0x2f9c6e){return this[_0x575c4d(0x21d)](_0x575c4d(0x1cf),{'error':new _0x5ebcea(_0x575c4d(0x1ec),this,{'sourceId':_0x56c667,'originalError':_0x2f9c6e}),'sourceId':_0x56c667,'sourceLabel':_0x3e392a[_0x575c4d(0x205)]}),[];}}async[_0x59bc08(0x1bf)](_0x23dc19,_0x492448){const _0x312ac1=_0x59bc08;if(this[_0x312ac1(0x207)](_0x492448['id']))return;let _0x41303e=_0x492448[_0x312ac1(0x1c0)];if(!_0x41303e&&_0x23dc19[_0x312ac1(0x1b5)])try{_0x41303e=await _0x23dc19[_0x312ac1(0x1b5)](_0x492448['id']);}catch(_0x5152dc){return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x22b),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'originalError':_0x5152dc}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});}if(_0x41303e)switch(_0x492448[_0x312ac1(0x1af)]){case _0xd267e[_0x312ac1(0x229)]:if(_0x312ac1(0x1e2)!=typeof _0x41303e)return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1f1),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'expectedType':_0x312ac1(0x1e2),'actualType':typeof _0x41303e}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});await this[_0x312ac1(0x1ba)](_0x41303e,{'label':_0x492448[_0x312ac1(0x205)],'resourceId':_0x492448['id']});break;case _0xd267e[_0x312ac1(0x1c6)]:if(!(_0x41303e instanceof File))return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1f1),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'expectedType':_0x312ac1(0x223),'actualType':typeof _0x41303e}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});await this[_0x312ac1(0x1d2)]([_0x41303e],{'label':_0x492448[_0x312ac1(0x205)],'resourceId':_0x492448['id']});break;case _0xd267e[_0x312ac1(0x1b2)]:if(_0x312ac1(0x222)!=typeof _0x41303e||!(_0x312ac1(0x1ef)in _0x41303e)||!(_0x312ac1(0x1af)in _0x41303e))return void this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1f1),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'expectedType':_0x312ac1(0x1e7),'actualType':typeof _0x41303e}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});_0x41303e=AIChatContext[_0x312ac1(0x1d3)](_0x41303e,_0x492448[_0x312ac1(0x205)]),await this[_0x312ac1(0x1d2)]([_0x41303e],{'label':_0x492448[_0x312ac1(0x205)],'resourceId':_0x492448['id']},_0xd267e[_0x312ac1(0x1b2)]);break;default:this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x1dc),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id'],'resourceType':_0x492448[_0x312ac1(0x1af)]}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});}else this[_0x312ac1(0x21d)](_0x312ac1(0x1cf),{'error':new _0x5ebcea(_0x312ac1(0x22a),this,{'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']}),'resourceId':_0x492448['id'],'sourceId':_0x23dc19['id']});}static[_0x59bc08(0x1d3)](_0x23783e,_0xa7ab4c){const _0x32ca00=_0x59bc08;switch(_0x23783e[_0x32ca00(0x1af)]){case _0x3f6228[_0x32ca00(0x221)]:return new File([_0x23783e[_0x32ca00(0x1ef)]],_0xa7ab4c,{'type':_0x32ca00(0x1d9)});case _0x3f6228[_0x32ca00(0x20c)]:return new File([_0x23783e[_0x32ca00(0x1ef)]],_0xa7ab4c,{'type':_0x32ca00(0x226)});default:return new File([_0x23783e[_0x32ca00(0x1ef)]],_0xa7ab4c,{'type':_0x32ca00(0x1eb)});}}static[_0x59bc08(0x1ea)](_0x372787){const _0x79c5b4=_0x59bc08;switch(_0x372787[_0x79c5b4(0x1af)]){case _0xd267e[_0x79c5b4(0x1c6)]:return{'type':_0xd267e[_0x79c5b4(0x1c6)],'id':_0x372787['id']};case _0xd267e[_0x79c5b4(0x229)]:return{'type':_0xd267e[_0x79c5b4(0x229)],'id':_0x372787['id']};case _0xd267e[_0x79c5b4(0x224)]:return{'type':_0xd267e[_0x79c5b4(0x224)],'id':_0x372787['id'],..._0x372787[_0x79c5b4(0x212)]?.[_0x79c5b4(0x1ce)]&&{'selection':_0x372787[_0x79c5b4(0x212)]}};case _0xd267e[_0x79c5b4(0x1b2)]:return{'type':_0xd267e[_0x79c5b4(0x1c6)],'id':_0x372787['id']};default:return null;}}[_0x59bc08(0x20e)](_0x242257,_0x23442c=!0x1){const _0x167246=_0x59bc08;if(this[_0x167246(0x1c1)][_0x167246(0x236)](_0x242257[_0x167246(0x1ed)],_0x242257),_0x242257[_0x167246(0x1b9)]||this[_0x167246(0x21d)](_0x167246(0x1db),{'contextItem':_0x242257,'isLoading':_0x23442c}),_0x167246(0x23a)===_0x242257[_0x167246(0x1ed)]&&this[_0x167246(0x225)](),_0x242257[_0x167246(0x23e)]){const _0x32880a=this[_0x167246(0x1f3)](_0x242257[_0x167246(0x23e)]);_0x32880a&&_0x32880a[_0x167246(0x21f)](_0x5564cd=>{const _0x3834d4=_0x167246;this[_0x3834d4(0x1cc)](_0x5564cd,_0x242257[_0x3834d4(0x23e)],!0x0);});}}[_0x59bc08(0x1b7)](_0x5822ba){const _0x1a3894=_0x59bc08,_0x47c22f=this[_0x1a3894(0x1c1)][_0x1a3894(0x20b)](_0x5822ba),_0x278a80=this[_0x1a3894(0x228)][_0x1a3894(0x20b)](_0x5822ba);if(_0x278a80&&(_0x278a80[_0x1a3894(0x213)](),this[_0x1a3894(0x228)][_0x1a3894(0x239)](_0x5822ba)),_0x47c22f?.[_0x1a3894(0x23e)]){const _0x4fae83=this[_0x1a3894(0x1f3)](_0x47c22f[_0x1a3894(0x23e)]);_0x4fae83&&_0x4fae83[_0x1a3894(0x21f)](_0x464771=>{const _0x120bb1=_0x1a3894;this[_0x120bb1(0x1cc)](_0x464771,_0x47c22f[_0x120bb1(0x23e)],!0x1);});}this[_0x1a3894(0x1c1)][_0x1a3894(0x239)](_0x5822ba),this[_0x1a3894(0x21d)](_0x1a3894(0x209),{'uiId':_0x5822ba,'type':_0x47c22f?.[_0x1a3894(0x1af)]}),_0x1a3894(0x23a)===_0x5822ba&&this[_0x1a3894(0x225)]();}[_0x59bc08(0x1d8)](_0x167b36,_0x42da42){const _0x370343=_0x59bc08;if(this[_0x370343(0x1c1)][_0x370343(0x1d1)](_0x167b36[_0x370343(0x1ed)])&&(this[_0x370343(0x1c1)][_0x370343(0x236)](_0x167b36[_0x370343(0x1ed)],_0x167b36),this[_0x370343(0x21d)](_0x370343(0x1d4),{'contextItem':_0x167b36,'isLoading':_0x42da42}),_0x167b36[_0x370343(0x23e)])){const _0x40b621=this[_0x370343(0x1f3)](_0x167b36[_0x370343(0x23e)]);_0x40b621&&_0x40b621[_0x370343(0x21f)](_0x433b77=>{const _0x5a50f6=_0x370343;this[_0x5a50f6(0x1cc)](_0x433b77,_0x167b36[_0x5a50f6(0x23e)],!0x0);});}}[_0x59bc08(0x1e8)](_0x22dc2b){const _0x5b2ee0=_0x59bc08;this[_0x5b2ee0(0x1b3)][_0x5b2ee0(0x236)](_0x22dc2b[_0x5b2ee0(0x1ed)],_0x22dc2b);}[_0x59bc08(0x215)](){const _0x247940=_0x59bc08;this[_0x247940(0x1fb)]={'document':{'enabled':!0x1!==this[_0x247940(0x20f)]?.[_0x247940(0x203)]?.[_0x247940(0x234)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x247940(0x20f)]?.[_0x247940(0x1d7)]?.[_0x247940(0x234)]},'files':{'enabled':!0x1!==this[_0x247940(0x20f)]?.[_0x247940(0x20a)]?.[_0x247940(0x234)]},'sources':this[_0x247940(0x1d0)]()},this[_0x247940(0x21d)](_0x247940(0x23d),{'options':this[_0x247940(0x1fb)]});}[_0x59bc08(0x1d0)](){const _0x145fd9=_0x59bc08;return this[_0x145fd9(0x20f)]?.[_0x145fd9(0x1bc)]?.[_0x145fd9(0x1bd)](_0x19ec0c=>({..._0x19ec0c,'resources':[]}))??[];}[_0x59bc08(0x225)](){const _0x22a2c0=_0x59bc08,_0x32eb93=this[_0x22a2c0(0x1de)]()||this[_0x22a2c0(0x1f5)]();this[_0x22a2c0(0x1fb)][_0x22a2c0(0x203)][_0x22a2c0(0x23b)]=_0x32eb93,this[_0x22a2c0(0x21d)](_0x22a2c0(0x23d),{'options':this[_0x22a2c0(0x1fb)]});}[_0x59bc08(0x207)](_0x4e6e4e){const _0x35aada=_0x59bc08;for(const _0x49043e of this[_0x35aada(0x1c1)][_0x35aada(0x1e3)]())if(_0x49043e[_0x35aada(0x23e)]===_0x4e6e4e)return!0x0;for(const _0x1768eb of this[_0x35aada(0x1b3)][_0x35aada(0x1e3)]())if(_0x1768eb[_0x35aada(0x23e)]===_0x4e6e4e)return!0x0;return!0x1;}[_0x59bc08(0x1f3)](_0x553463){const _0x25629f=_0x59bc08,_0x11d945=[];for(const _0x346b22 of this[_0x25629f(0x1fb)][_0x25629f(0x1bc)]){_0x346b22[_0x25629f(0x1e6)][_0x25629f(0x21e)](_0x1ea344=>_0x1ea344['id']===_0x553463)&&_0x11d945[_0x25629f(0x1f9)](_0x346b22['id']);}return 0x0===_0x11d945[_0x25629f(0x1ce)]?null:_0x11d945;}[_0x59bc08(0x1cc)](_0x64a84b,_0x22d5bc,_0x44c21d){const _0x5cb424=_0x59bc08,_0xa5b35b=this[_0x5cb424(0x1fb)][_0x5cb424(0x1bc)][_0x5cb424(0x21e)](_0x12d956=>_0x12d956['id']===_0x64a84b);if(!_0xa5b35b)return;const _0x4f897f=_0xa5b35b[_0x5cb424(0x1e6)][_0x5cb424(0x21e)](_0x2788c8=>_0x2788c8['id']===_0x22d5bc);_0x4f897f&&(_0x4f897f[_0x5cb424(0x238)]=_0x44c21d,this[_0x5cb424(0x21d)](_0x5cb424(0x1ee),{'sourceId':_0x64a84b,'resourceId':_0x22d5bc,'isInContext':_0x44c21d}));}[_0x59bc08(0x216)](_0x29c215){const _0x4014d9=_0x59bc08;this[_0x4014d9(0x22d)][_0x4014d9(0x236)](_0x29c215,!0x0),this[_0x4014d9(0x22d)][_0x4014d9(0x1e4)]&&this[_0x4014d9(0x21d)](_0x4014d9(0x1fc),{'isUploadInProgress':!0x0});}[_0x59bc08(0x1b8)](_0x45a00e){const _0x3ef0d3=_0x59bc08;this[_0x3ef0d3(0x22d)][_0x3ef0d3(0x239)](_0x45a00e),0x0===this[_0x3ef0d3(0x22d)][_0x3ef0d3(0x1e4)]&&this[_0x3ef0d3(0x21d)](_0x3ef0d3(0x1fc),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x462782=_0x2aee;(function(_0x16efdb,_0x2c3461){const _0xb9fc8d=_0x2aee,_0x37616a=_0x16efdb();while(!![]){try{const _0x44f70e=-parseInt(_0xb9fc8d(0x1ca))/0x1*(parseInt(_0xb9fc8d(0x1cf))/0x2)+-parseInt(_0xb9fc8d(0x1c2))/0x3*(parseInt(_0xb9fc8d(0x1a7))/0x4)+parseInt(_0xb9fc8d(0x209))/0x5+-parseInt(_0xb9fc8d(0x207))/0x6+parseInt(_0xb9fc8d(0x1f1))/0x7*(parseInt(_0xb9fc8d(0x1a6))/0x8)+-parseInt(_0xb9fc8d(0x1aa))/0x9*(-parseInt(_0xb9fc8d(0x1e0))/0xa)+parseInt(_0xb9fc8d(0x1ed))/0xb;if(_0x44f70e===_0x2c3461)break;else _0x37616a['push'](_0x37616a['shift']());}catch(_0x4e1295){_0x37616a['push'](_0x37616a['shift']());}}}(_0x2935,0x61702));import{CKEditorError as _0x4f6274,EmitterMixin as _0x1b7764,logWarning as _0x49e2ae}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x786540}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x36d193,AI_CONTEXT_MODEL_EVENT_NAMES as _0x447374}from'./aichatcontext.js';import{AICapabilities as _0x49baab,CAPABILITIES_MODEL_EVENT_NAMES as _0x20ddf4}from'../../aicore/model/aicapabilities.js';function _0x2935(){const _0x1b8818=['lastInteraction','assistant','8900045eobuhT','createInteraction','selectedModelId','setModel','21YlNjXw','ai-chat-handle-user-interaction-start-failed','selectedModel','length','contextItems','init','push','conversationStarted','interactions','addToConversationContext','fetchConversation','toggleReasoning','attributes','ai-chat-conversation-init-failed','getCapabilitiesConfig','chatModels','splice','options','ai-chat-conversation-set-model-null','isCurrentDocumentInContext','title','getAll','1816794bwkGAn','webSearch','2360050rOGaRF','getModel','modelSelected','getMessages','stop','toggleWebSearch','chatCapabilities','find','removeSelectionFromContext','getInteraction','chatContext','interactionCreated','modification-delta','getEditor','currentReply','getPendingContextItems','toLowerCase','addFilesToContext','reasoning','addResourceToContext','355176BQBztt','58772hYzrdl','quickActionData','populateFromMessage','918ryKIoC','currentInteraction','fire','content','isAvailable','message','ai-chat-conversation-start-no-model-selected','ai-chat-handle-user-conversation-not-initialized','set','_extractContextItems','loadSourceResources','updateCurrentDocument','role','appendContent','ai-chat-conversation-start-failed','handleUserInteraction','load','getCurrentDocumentContext','sessionId','capabilities','model','indexOf','delegate','ai-chat-handle-user-interaction-already-in-progress','117YoPIux','createReply','getDocumentContext','type','addUrlToContext','_processMessagesToInteractions','conversationInitialized','prompt','326110yPeETP','isSelectionInContext','user','conversationId','text','4UuIfsq','ai-chat-conversation-already-started','ai-chat-conversation-init-from-id-failed','updateCurrentDocumentInContext','addCurrentDocumentToContext','connector','ai-chat-conversation-set-model-not-available','fetchConversationMessages','start','getAvailableModels','addSelectionToContext','text-delta','reset','removeInteraction','code','stack','destroy','50280ULAkfK','startConversation','isStarted','hasOwn','group','get','isCurrentDocumentInConversation','getConversation','error','setConversationTitle','removeFromContext'];_0x2935=function(){return _0x1b8818;};return _0x2935();}import{AIChatInteraction as _0xb5d3a0}from'./aichatinteraction.js';function _0x2aee(_0x338dd5,_0xc1321b){const _0x293564=_0x2935();return _0x2aee=function(_0x2aee46,_0x5987ca){_0x2aee46=_0x2aee46-0x19c;let _0x23c685=_0x293564[_0x2aee46];return _0x23c685;},_0x2aee(_0x338dd5,_0xc1321b);}import{errorsMap as _0x3b3143}from'../../errorsmap.js';export class AIChatConversation extends _0x1b7764(){['id'];[_0x462782(0x1e2)]=!0x1;[_0x462782(0x1f9)]=[];[_0x462782(0x1ab)];[_0x462782(0x1f3)];[_0x462782(0x1d4)];[_0x462782(0x202)];constructor(_0x575a24){const _0x5a023c=_0x462782;super(),this[_0x5a023c(0x202)]=_0x575a24,this[_0x5a023c(0x1d4)]=_0x575a24[_0x5a023c(0x1d4)],this[_0x5a023c(0x200)]=_0x575a24[_0x5a023c(0x200)],this['id']=_0x575a24[_0x5a023c(0x1cd)];}async[_0x462782(0x1f6)](_0x51d141){const _0x4f9cca=_0x462782;try{this[_0x4f9cca(0x19c)]=new _0x36d193({'connector':this[_0x4f9cca(0x1d4)],'config':_0x51d141,'ownerId':this['id']}),this[_0x4f9cca(0x19c)][_0x4f9cca(0x1c0)](..._0x447374)['to'](this),this[_0x4f9cca(0x19c)][_0x4f9cca(0x1f6)](),this[_0x4f9cca(0x20f)]=new _0x49baab(),this[_0x4f9cca(0x20f)][_0x4f9cca(0x1c0)](..._0x20ddf4)['to'](this),this[_0x4f9cca(0x20f)][_0x4f9cca(0x1f6)]();const _0x52d52e=await this[_0x4f9cca(0x200)][_0x4f9cca(0x1d8)]();this[_0x4f9cca(0x1ac)](_0x4f9cca(0x1c8),{'availableModels':_0x52d52e});const _0x440fca=await this[_0x4f9cca(0x200)][_0x4f9cca(0x20a)](this[_0x4f9cca(0x202)][_0x4f9cca(0x1ef)]);_0x440fca&&await this[_0x4f9cca(0x1f0)](_0x440fca);}catch(_0x3b91b7){const _0x51e0d5=new _0x4f6274(_0x4f9cca(0x1fe),null,{'message':_0x3b91b7[_0x4f9cca(0x1af)]||_0x3b91b7});_0x51e0d5[_0x4f9cca(0x1de)]=_0x3b91b7[_0x4f9cca(0x1de)],this[_0x4f9cca(0x1ac)](_0x4f9cca(0x1e8),{'error':_0x51e0d5});}}async[_0x462782(0x1d7)](){const _0x1862cc=_0x462782;if(this[_0x1862cc(0x1e2)])throw new _0x4f6274(_0x1862cc(0x1d0),null,{'conversation':this});if(!this[_0x1862cc(0x1f3)])throw new _0x4f6274(_0x1862cc(0x1b0),null,{'conversation':this});try{const {id:_0xa73be1}=await this[_0x1862cc(0x1d4)][_0x1862cc(0x1e1)](this['id'],this[_0x1862cc(0x202)][_0x1862cc(0x1e4)])[_0x1862cc(0x1e7)]();this['id']=_0xa73be1,this[_0x1862cc(0x1e2)]=!0x0,this[_0x1862cc(0x1ac)](_0x1862cc(0x1f8),{'conversationId':this['id'],'selectedModel':this[_0x1862cc(0x1f3)]});}catch(_0x1cd5f4){const _0x53c1ec=new _0x4f6274(_0x1862cc(0x1b8),null,{'message':_0x1cd5f4[_0x1862cc(0x1af)],'conversationId':this['id']});throw _0x53c1ec[_0x1862cc(0x1de)]=_0x1cd5f4[_0x1862cc(0x1de)],this[_0x1862cc(0x1ac)](_0x1862cc(0x1e8),{'error':_0x53c1ec}),_0x53c1ec;}}async[_0x462782(0x1ba)](_0x591a20,_0x1499e0){const _0x190475=_0x462782;try{const _0x521ff8=await this[_0x190475(0x1d4)][_0x190475(0x1fb)](_0x591a20)[_0x190475(0x1e7)](),_0x486162=await this[_0x190475(0x1d4)][_0x190475(0x1d6)](_0x591a20)[_0x190475(0x20c)](),_0x38e2a9=_0x486162[0x0][_0x190475(0x1be)];this[_0x190475(0x1e2)]=!0x0,this['id']=_0x521ff8['id'],_0x190475(0x205)in _0x521ff8?this[_0x190475(0x1ac)](_0x190475(0x1e9),_0x521ff8[_0x190475(0x205)],!0x0):this[_0x190475(0x1ac)](_0x190475(0x1e9),'',!0x0);const _0x20e019=(await this[_0x190475(0x200)][_0x190475(0x206)]())[_0x190475(0x210)](_0x212a1f=>_0x212a1f['id'][_0x190475(0x1a2)]()===_0x38e2a9[_0x190475(0x1a2)]());return this[_0x190475(0x1f3)]=_0x20e019,this[_0x190475(0x1ac)](_0x190475(0x20b),{'selectedModel':_0x20e019,'isDisabled':!0x0}),await this[_0x190475(0x1c7)](_0x486162,_0x1499e0,_0x38e2a9),this[_0x190475(0x1ab)]=void 0x0,this;}catch(_0x10ff39){const _0x319e2a=new _0x4f6274(_0x190475(0x1d1),null,{'message':_0x10ff39[_0x190475(0x1af)],'conversationId':_0x591a20});throw _0x319e2a[_0x190475(0x1de)]=_0x10ff39[_0x190475(0x1de)],this[_0x190475(0x1ac)](_0x190475(0x1e8),{'error':_0x319e2a}),_0x319e2a;}}async[_0x462782(0x1c7)](_0x5cde5b,_0x2d0fed,_0x48b396){const _0x1c62f7=_0x462782;let _0x3c08f5;for(const _0x45e8a3 of _0x5cde5b)if(_0x1c62f7(0x1cc)===_0x45e8a3[_0x1c62f7(0x1b6)]){const _0x411247=await this[_0x1c62f7(0x1b3)](_0x45e8a3),_0x2dc265={'isReasoningEnabled':Object[_0x1c62f7(0x1e3)](_0x45e8a3[_0x1c62f7(0x1bd)],_0x1c62f7(0x1a4)),'isWebSearchEnabled':Object[_0x1c62f7(0x1e3)](_0x45e8a3[_0x1c62f7(0x1bd)],_0x1c62f7(0x208))};_0x3c08f5=this[_0x1c62f7(0x1ee)]({'userMessage':_0x45e8a3[_0x1c62f7(0x1c9)],'contextItems':_0x411247,'capabilities':_0x2dc265,'modelId':_0x48b396,'quickActionData':_0x45e8a3[_0x1c62f7(0x1fd)]?.[_0x1c62f7(0x1a8)]}),this[_0x1c62f7(0x1ab)]=_0x3c08f5,this[_0x1c62f7(0x19c)][_0x1c62f7(0x1fa)](this[_0x1c62f7(0x1ab)][_0x1c62f7(0x1f5)]);}else{if(_0x1c62f7(0x1ec)===_0x45e8a3[_0x1c62f7(0x1b6)]&&_0x3c08f5)for(const _0x1406ff of _0x45e8a3[_0x1c62f7(0x1ad)]){const _0x169c0b=_0x1c62f7(0x1ce)===_0x1406ff[_0x1c62f7(0x1c5)]?_0x1c62f7(0x1da):_0x1c62f7(0x19e),_0x34d19f=_0x3c08f5[_0x1c62f7(0x1c4)]()?.[_0x1c62f7(0x1bc)]!==_0x2d0fed;_0x3c08f5[_0x1c62f7(0x1a0)]=_0x3c08f5[_0x1c62f7(0x1c3)]({'type':_0x169c0b,'isDone':!0x0,'interactionId':_0x3c08f5['id'],'areActionsDisabled':_0x34d19f}),_0x3c08f5[_0x1c62f7(0x1a0)][_0x1c62f7(0x1b7)](_0x1406ff[_0x1c62f7(0x1ad)]);}}}async[_0x462782(0x1b3)](_0xe87cb9){const _0x3fddac=_0x462782,_0x27b3ab=new Map();if(!_0xe87cb9[_0x3fddac(0x1ad)])return _0x27b3ab;for(const _0x56caaf of _0xe87cb9[_0x3fddac(0x1ad)]){const _0x1b7d99=await this[_0x3fddac(0x19c)][_0x3fddac(0x1a9)](_0x56caaf);_0x1b7d99&&_0x27b3ab[_0x3fddac(0x1b2)](_0x1b7d99['id'],_0x1b7d99);}return _0x27b3ab;}async[_0x462782(0x1b9)]({userMessage:_0x3ec330,quickActionData:_0x3f6153}){const _0xe97bff=_0x462782;if(!this[_0xe97bff(0x1e2)])throw new _0x4f6274(_0xe97bff(0x1b1),null,{'conversation':this});if(this[_0xe97bff(0x1ab)])throw new _0x4f6274(_0xe97bff(0x1c1),null,{'conversation':this});try{const _0xdfa37f=this[_0xe97bff(0x19c)][_0xe97bff(0x1a1)](),_0xfafe76=this[_0xe97bff(0x20f)][_0xe97bff(0x1ff)](),_0x61963c=this[_0xe97bff(0x1f3)]['id'];this[_0xe97bff(0x1ab)]=this[_0xe97bff(0x1ee)]({'userMessage':_0x3ec330,'contextItems':_0xdfa37f,'capabilities':_0xfafe76,'modelId':_0x61963c,'quickActionData':_0x3f6153}),await this[_0xe97bff(0x1ab)][_0xe97bff(0x1d7)](),this[_0xe97bff(0x19c)][_0xe97bff(0x1fa)](this[_0xe97bff(0x1ab)][_0xe97bff(0x1f5)]);}catch(_0x26629f){if(_0x26629f instanceof _0x4f6274)this[_0xe97bff(0x1ac)](_0xe97bff(0x1e8),{'interactionId':this[_0xe97bff(0x1ab)]?this[_0xe97bff(0x1ab)]['id']:void 0x0,'error':_0x26629f});else{const _0x1dd677=_0x3b3143[_0xe97bff(0x1e5)](_0x26629f[_0xe97bff(0x1dd)])||_0xe97bff(0x1f2);this[_0xe97bff(0x1ac)](_0xe97bff(0x1e8),{'interactionId':this[_0xe97bff(0x1ab)]?this[_0xe97bff(0x1ab)]['id']:void 0x0,'error':new _0x4f6274(_0x1dd677,null,{'error':_0x26629f})});}}finally{this[_0xe97bff(0x1ab)]?.[_0xe97bff(0x20d)](),this[_0xe97bff(0x1ab)]=void 0x0;}}[_0x462782(0x1ee)]({userMessage:_0x420a88,contextItems:_0x1e8691,capabilities:_0x37e7af,modelId:_0x1e3761,quickActionData:_0x46c759}){const _0x26f933=_0x462782,_0x44bab2=new _0xb5d3a0({'userMessage':_0x420a88,'contextItems':_0x1e8691,'capabilities':_0x37e7af,'conversationId':this['id'],'connector':this[_0x26f933(0x1d4)],'editor':this[_0x26f933(0x202)][_0x26f933(0x19f)]&&this[_0x26f933(0x202)][_0x26f933(0x19f)](),'model':_0x1e3761,'quickActionData':_0x46c759});return _0x44bab2[_0x26f933(0x1c0)](..._0x786540)['to'](this),this[_0x26f933(0x1f9)][_0x26f933(0x1f7)](_0x44bab2),this[_0x26f933(0x1ac)](_0x26f933(0x19d),_0x44bab2),_0x44bab2;}[_0x462782(0x212)](_0x236b1c){const _0xaaa64c=_0x462782;return this[_0xaaa64c(0x1f9)][_0xaaa64c(0x210)](_0x158d4c=>_0x158d4c['id']===_0x236b1c);}[_0x462782(0x1dc)](_0x2692a6){const _0x315fb3=_0x462782,_0x5a6fb5=this[_0x315fb3(0x212)](_0x2692a6);_0x5a6fb5&&(_0x5a6fb5[_0x315fb3(0x1df)](),this[_0x315fb3(0x1f9)][_0x315fb3(0x201)](this[_0x315fb3(0x1f9)][_0x315fb3(0x1bf)](_0x5a6fb5),0x1));}get[_0x462782(0x1eb)](){const _0x567776=_0x462782;return this[_0x567776(0x1f9)][this[_0x567776(0x1f9)][_0x567776(0x1f4)]-0x1];}[_0x462782(0x1d3)](_0x46789c){const _0x54fa57=_0x462782;this[_0x54fa57(0x19c)][_0x54fa57(0x1d3)](_0x46789c);}async[_0x462782(0x1d2)]({content:_0x703bab,version:_0x3df005,sessionId:_0x409a15,selections:_0xaf0ce0}){const _0x153cef=_0x462782;await this[_0x153cef(0x19c)][_0x153cef(0x1b5)](_0x703bab,_0x3df005,_0x409a15,_0xaf0ce0);}[_0x462782(0x1bb)](){const _0xf484e9=_0x462782;return this[_0xf484e9(0x1ab)]?.[_0xf484e9(0x1c4)]()?.[_0xf484e9(0x1ad)]||'';}[_0x462782(0x1d9)](_0x2c6e50){const _0xeebd6d=_0x462782;this[_0xeebd6d(0x19c)][_0xeebd6d(0x1d9)](_0x2c6e50);}[_0x462782(0x211)](){const _0x560dbd=_0x462782;this[_0x560dbd(0x19c)][_0x560dbd(0x211)]();}[_0x462782(0x1a3)](_0x7061b1){const _0x19b799=_0x462782;this[_0x19b799(0x19c)][_0x19b799(0x1a3)](_0x7061b1);}[_0x462782(0x1c6)](_0x2941c0){const _0x1c4769=_0x462782;this[_0x1c4769(0x19c)][_0x1c4769(0x1c6)](_0x2941c0);}[_0x462782(0x1a5)](_0xab79f8,_0x26714e){const _0x382282=_0x462782;this[_0x382282(0x19c)][_0x382282(0x1a5)](_0xab79f8,_0x26714e);}[_0x462782(0x1b4)](_0x561af5,_0x1a8408,_0x49b070){const _0x3d0267=_0x462782;return this[_0x3d0267(0x19c)][_0x3d0267(0x1b4)](_0x561af5,_0x1a8408,_0x49b070);}[_0x462782(0x1ea)](_0x48d2dc){const _0x2674c9=_0x462782;this[_0x2674c9(0x19c)][_0x2674c9(0x1ea)](_0x48d2dc);}[_0x462782(0x20e)](){const _0x8d6fc4=_0x462782;this[_0x8d6fc4(0x20f)][_0x8d6fc4(0x20e)]();}[_0x462782(0x1fc)](){const _0x53cfb7=_0x462782;this[_0x53cfb7(0x20f)][_0x53cfb7(0x1fc)]();}[_0x462782(0x204)](){const _0x2c856f=_0x462782;return this[_0x2c856f(0x19c)][_0x2c856f(0x204)]();}[_0x462782(0x1e6)](){const _0x531097=_0x462782;return this[_0x531097(0x19c)][_0x531097(0x1e6)]();}[_0x462782(0x1cb)](){const _0x591f38=_0x462782;return this[_0x591f38(0x19c)][_0x591f38(0x1cb)]();}async[_0x462782(0x1f0)](_0x567229){const _0x55b9b7=_0x462782;_0x567229?!0x1===await this[_0x55b9b7(0x200)][_0x55b9b7(0x1ae)](_0x567229)&&(_0x49e2ae(_0x55b9b7(0x1d5),{'conversation':this,'model':_0x567229}),_0x567229=(await this[_0x55b9b7(0x200)][_0x55b9b7(0x1d8)]())[0x0]):(_0x49e2ae(_0x55b9b7(0x203),{'conversation':this}),_0x567229=(await this[_0x55b9b7(0x200)][_0x55b9b7(0x1d8)]())[0x0]),_0x567229['id']!==this[_0x55b9b7(0x1f3)]?.['id']&&(this[_0x55b9b7(0x1f3)]=_0x567229,this[_0x55b9b7(0x20f)][_0x55b9b7(0x1db)](),this[_0x55b9b7(0x1ac)](_0x55b9b7(0x20b),{'selectedModel':_0x567229}));}}
23
+ const _0x38b1fd=_0x17a4;(function(_0x3d88ad,_0x5ba9ae){const _0x527888=_0x17a4,_0x1224c0=_0x3d88ad();while(!![]){try{const _0x3e921b=parseInt(_0x527888(0x129))/0x1+parseInt(_0x527888(0x13a))/0x2*(parseInt(_0x527888(0x184))/0x3)+parseInt(_0x527888(0x172))/0x4*(-parseInt(_0x527888(0x13c))/0x5)+-parseInt(_0x527888(0x181))/0x6*(parseInt(_0x527888(0x180))/0x7)+-parseInt(_0x527888(0x13b))/0x8+parseInt(_0x527888(0x155))/0x9+-parseInt(_0x527888(0x148))/0xa*(parseInt(_0x527888(0x130))/0xb);if(_0x3e921b===_0x5ba9ae)break;else _0x1224c0['push'](_0x1224c0['shift']());}catch(_0x1f612d){_0x1224c0['push'](_0x1224c0['shift']());}}}(_0x537c,0x9dc9a));import{CKEditorError as _0x2d0456,EmitterMixin as _0x58ca8d,logWarning as _0x477542}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x25055f}from'../../aicore/model/aiinteraction.js';function _0x537c(){const _0x4297a1=['ai-chat-handle-user-interaction-already-in-progress','getCurrentDocumentContext','toggleWebSearch','isAvailable','capabilities','isCurrentDocumentInConversation','splice','addResourceToContext','_processMessagesToInteractions','fire','modelSelected','getEditor','getDocumentContext','chatContext','group','addSelectionToContext','ai-chat-handle-user-conversation-not-initialized','delegate','removeSelectionFromContext','currentReply','stop','getMessages','getPendingContextItems','isCurrentDocumentInContext','_extractContextItems','461042ItWPkP','start','setConversationTitle','lastInteraction','removeInteraction','addUrlToContext','hasOwn','587455DDGvCx','conversationInitialized','getAvailableModels','quickActionData','chatCapabilities','role','code','sessionId','user','error','989498UBvMWS','3348576LjBcKe','4130WrtCDh','updateCurrentDocument','set','selectedModel','stack','ai-chat-conversation-init-failed','toggleReasoning','addFilesToContext','toLowerCase','attributes','length','isStarted','50NNTKpl','message','model','init','prompt','webSearch','appendContent','chatModels','interactionCreated','title','destroy','isSelectionInContext','ai-chat-handle-user-interaction-start-failed','11025702mFVGst','contextItems','getConversation','connector','type','indexOf','fetchConversation','push','conversationId','modification-delta','text','currentInteraction','text-delta','conversationStarted','reset','createInteraction','createReply','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','assistant','selectedModelId','ai-chat-conversation-start-failed','addToConversationContext','addCurrentDocumentToContext','fetchConversationMessages','interactions','ai-chat-conversation-set-model-not-available','load','loadSourceResources','1524HwgPNP','content','reasoning','startConversation','ai-chat-conversation-start-no-model-selected','options','removeFromContext','getCapabilitiesConfig','setModel','ai-chat-conversation-init-from-id-failed','getInteraction','updateCurrentDocumentInContext','get','populateFromMessage','7203119CbpXsq','6DSRFgQ','getModel','handleUserInteraction','6TsyfmF','getAll','find'];_0x537c=function(){return _0x4297a1;};return _0x537c();}function _0x17a4(_0x2e9f87,_0x10c86c){const _0x537cb3=_0x537c();return _0x17a4=function(_0x17a4e8,_0x5187b5){_0x17a4e8=_0x17a4e8-0x121;let _0x2cc205=_0x537cb3[_0x17a4e8];return _0x2cc205;},_0x17a4(_0x2e9f87,_0x10c86c);}import{AIChatContext as _0x53f609,AI_CONTEXT_MODEL_EVENT_NAMES as _0x265374}from'./aichatcontext.js';import{AICapabilities as _0x4361b3,CAPABILITIES_MODEL_EVENT_NAMES as _0x323ce9}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0xc77839}from'./aichatinteraction.js';import{errorsMap as _0x2f3650}from'../../errorsmap.js';export class AIChatConversation extends _0x58ca8d(){['id'];[_0x38b1fd(0x147)]=!0x1;[_0x38b1fd(0x16e)]=[];[_0x38b1fd(0x160)];[_0x38b1fd(0x13f)];[_0x38b1fd(0x158)];[_0x38b1fd(0x177)];constructor(_0x5db504){const _0x55493a=_0x38b1fd;super(),this[_0x55493a(0x177)]=_0x5db504,this[_0x55493a(0x158)]=_0x5db504[_0x55493a(0x158)],this[_0x55493a(0x14f)]=_0x5db504[_0x55493a(0x14f)],this['id']=_0x5db504[_0x55493a(0x15d)];}async[_0x38b1fd(0x14b)](_0x52f6f5){const _0x254496=_0x38b1fd;try{this[_0x254496(0x194)]=new _0x53f609({'connector':this[_0x254496(0x158)],'config':_0x52f6f5,'ownerId':this['id']}),this[_0x254496(0x194)][_0x254496(0x121)](..._0x265374)['to'](this),this[_0x254496(0x194)][_0x254496(0x14b)](),this[_0x254496(0x134)]=new _0x4361b3(),this[_0x254496(0x134)][_0x254496(0x121)](..._0x323ce9)['to'](this),this[_0x254496(0x134)][_0x254496(0x14b)]();const _0x22c992=await this[_0x254496(0x14f)][_0x254496(0x132)]();this[_0x254496(0x190)](_0x254496(0x131),{'availableModels':_0x22c992});const _0x2dfebb=await this[_0x254496(0x14f)][_0x254496(0x182)](this[_0x254496(0x177)][_0x254496(0x169)]);_0x2dfebb&&await this[_0x254496(0x17a)](_0x2dfebb);}catch(_0x1af493){const _0x758a8d=new _0x2d0456(_0x254496(0x141),null,{'message':_0x1af493[_0x254496(0x149)]||_0x1af493});_0x758a8d[_0x254496(0x140)]=_0x1af493[_0x254496(0x140)],this[_0x254496(0x190)](_0x254496(0x139),{'error':_0x758a8d});}}async[_0x38b1fd(0x12a)](){const _0x3d6b5b=_0x38b1fd;if(this[_0x3d6b5b(0x147)])throw new _0x2d0456(_0x3d6b5b(0x167),null,{'conversation':this});if(!this[_0x3d6b5b(0x13f)])throw new _0x2d0456(_0x3d6b5b(0x176),null,{'conversation':this});try{const {id:_0x132f93}=await this[_0x3d6b5b(0x158)][_0x3d6b5b(0x175)](this['id'],this[_0x3d6b5b(0x177)][_0x3d6b5b(0x195)])[_0x3d6b5b(0x157)]();this['id']=_0x132f93,this[_0x3d6b5b(0x147)]=!0x0,this[_0x3d6b5b(0x190)](_0x3d6b5b(0x162),{'conversationId':this['id'],'selectedModel':this[_0x3d6b5b(0x13f)]});}catch(_0x3046ba){const _0x42ae78=new _0x2d0456(_0x3d6b5b(0x16a),null,{'message':_0x3046ba[_0x3d6b5b(0x149)],'conversationId':this['id']});throw _0x42ae78[_0x3d6b5b(0x140)]=_0x3046ba[_0x3d6b5b(0x140)],this[_0x3d6b5b(0x190)](_0x3d6b5b(0x139),{'error':_0x42ae78}),_0x42ae78;}}async[_0x38b1fd(0x170)](_0x45fa64,_0x535437){const _0x3c7229=_0x38b1fd;try{const _0x17453c=await this[_0x3c7229(0x158)][_0x3c7229(0x15b)](_0x45fa64)[_0x3c7229(0x157)](),_0xf2102d=await this[_0x3c7229(0x158)][_0x3c7229(0x16d)](_0x45fa64)[_0x3c7229(0x125)](),_0x116c55=_0xf2102d[0x0][_0x3c7229(0x14a)];this[_0x3c7229(0x147)]=!0x0,this['id']=_0x17453c['id'],_0x3c7229(0x151)in _0x17453c?this[_0x3c7229(0x190)](_0x3c7229(0x12b),_0x17453c[_0x3c7229(0x151)],!0x0):this[_0x3c7229(0x190)](_0x3c7229(0x12b),'',!0x0);const _0x2c5b88=(await this[_0x3c7229(0x14f)][_0x3c7229(0x185)]())[_0x3c7229(0x186)](_0x3c219d=>_0x3c219d['id'][_0x3c7229(0x144)]()===_0x116c55[_0x3c7229(0x144)]());return this[_0x3c7229(0x13f)]=_0x2c5b88,this[_0x3c7229(0x190)](_0x3c7229(0x191),{'selectedModel':_0x2c5b88,'isDisabled':!0x0}),await this[_0x3c7229(0x18f)](_0xf2102d,_0x535437,_0x116c55),this[_0x3c7229(0x160)]=void 0x0,this;}catch(_0x128a86){const _0x4ef02a=new _0x2d0456(_0x3c7229(0x17b),null,{'message':_0x128a86[_0x3c7229(0x149)],'conversationId':_0x45fa64});throw _0x4ef02a[_0x3c7229(0x140)]=_0x128a86[_0x3c7229(0x140)],this[_0x3c7229(0x190)](_0x3c7229(0x139),{'error':_0x4ef02a}),_0x4ef02a;}}async[_0x38b1fd(0x18f)](_0x347c07,_0x4cba4b,_0xcb348b){const _0x56ae86=_0x38b1fd;let _0x55098f;for(const _0x5701ed of _0x347c07)if(_0x56ae86(0x138)===_0x5701ed[_0x56ae86(0x135)]){const _0xf867d5=await this[_0x56ae86(0x128)](_0x5701ed),_0x342a59={'isReasoningEnabled':Object[_0x56ae86(0x12f)](_0x5701ed[_0x56ae86(0x18b)],_0x56ae86(0x174)),'isWebSearchEnabled':Object[_0x56ae86(0x12f)](_0x5701ed[_0x56ae86(0x18b)],_0x56ae86(0x14d))};_0x55098f=this[_0x56ae86(0x164)]({'userMessage':_0x5701ed[_0x56ae86(0x14c)],'contextItems':_0xf867d5,'capabilities':_0x342a59,'modelId':_0xcb348b,'quickActionData':_0x5701ed[_0x56ae86(0x145)]?.[_0x56ae86(0x133)]}),this[_0x56ae86(0x160)]=_0x55098f,this[_0x56ae86(0x194)][_0x56ae86(0x16b)](this[_0x56ae86(0x160)][_0x56ae86(0x156)]);}else{if(_0x56ae86(0x168)===_0x5701ed[_0x56ae86(0x135)]&&_0x55098f)for(const _0x1144b0 of _0x5701ed[_0x56ae86(0x173)]){const _0x1da5b9=_0x56ae86(0x15f)===_0x1144b0[_0x56ae86(0x159)]?_0x56ae86(0x161):_0x56ae86(0x15e),_0x3fc9ba=_0x55098f[_0x56ae86(0x193)]()?.[_0x56ae86(0x137)]!==_0x4cba4b;_0x55098f[_0x56ae86(0x123)]=_0x55098f[_0x56ae86(0x165)]({'type':_0x1da5b9,'isDone':!0x0,'interactionId':_0x55098f['id'],'areActionsDisabled':_0x3fc9ba}),_0x55098f[_0x56ae86(0x123)][_0x56ae86(0x14e)](_0x1144b0[_0x56ae86(0x173)]);}}}async[_0x38b1fd(0x128)](_0x51777b){const _0x53dc40=_0x38b1fd,_0x4f00bf=new Map();if(!_0x51777b[_0x53dc40(0x173)])return _0x4f00bf;for(const _0x400027 of _0x51777b[_0x53dc40(0x173)]){const _0x2540a4=await this[_0x53dc40(0x194)][_0x53dc40(0x17f)](_0x400027);_0x2540a4&&_0x4f00bf[_0x53dc40(0x13e)](_0x2540a4['id'],_0x2540a4);}return _0x4f00bf;}async[_0x38b1fd(0x183)]({userMessage:_0x591939,quickActionData:_0x3a13a8}){const _0x54275a=_0x38b1fd;if(!this[_0x54275a(0x147)])throw new _0x2d0456(_0x54275a(0x197),null,{'conversation':this});if(this[_0x54275a(0x160)])throw new _0x2d0456(_0x54275a(0x187),null,{'conversation':this});try{const _0x584b3f=this[_0x54275a(0x194)][_0x54275a(0x126)](),_0x365c16=this[_0x54275a(0x134)][_0x54275a(0x179)](),_0x452d75=this[_0x54275a(0x13f)]['id'];this[_0x54275a(0x160)]=this[_0x54275a(0x164)]({'userMessage':_0x591939,'contextItems':_0x584b3f,'capabilities':_0x365c16,'modelId':_0x452d75,'quickActionData':_0x3a13a8}),await this[_0x54275a(0x160)][_0x54275a(0x12a)](),this[_0x54275a(0x194)][_0x54275a(0x16b)](this[_0x54275a(0x160)][_0x54275a(0x156)]);}catch(_0x4b16ba){if(_0x4b16ba instanceof _0x2d0456)this[_0x54275a(0x190)](_0x54275a(0x139),{'interactionId':this[_0x54275a(0x160)]?this[_0x54275a(0x160)]['id']:void 0x0,'error':_0x4b16ba});else{const _0x234fd3=_0x2f3650[_0x54275a(0x17e)](_0x4b16ba[_0x54275a(0x136)])||_0x54275a(0x154);this[_0x54275a(0x190)](_0x54275a(0x139),{'interactionId':this[_0x54275a(0x160)]?this[_0x54275a(0x160)]['id']:void 0x0,'error':new _0x2d0456(_0x234fd3,null,{'error':_0x4b16ba})});}}finally{this[_0x54275a(0x160)]?.[_0x54275a(0x124)](),this[_0x54275a(0x160)]=void 0x0;}}[_0x38b1fd(0x164)]({userMessage:_0x5be2ba,contextItems:_0x4750ca,capabilities:_0x3aca1b,modelId:_0x5c7974,quickActionData:_0x22fc87}){const _0x327b81=_0x38b1fd,_0xac3a56=new _0xc77839({'userMessage':_0x5be2ba,'contextItems':_0x4750ca,'capabilities':_0x3aca1b,'conversationId':this['id'],'connector':this[_0x327b81(0x158)],'editor':this[_0x327b81(0x177)][_0x327b81(0x192)]&&this[_0x327b81(0x177)][_0x327b81(0x192)](),'model':_0x5c7974,'quickActionData':_0x22fc87});return _0xac3a56[_0x327b81(0x121)](..._0x25055f)['to'](this),this[_0x327b81(0x16e)][_0x327b81(0x15c)](_0xac3a56),this[_0x327b81(0x190)](_0x327b81(0x150),_0xac3a56),_0xac3a56;}[_0x38b1fd(0x17c)](_0x62ef55){const _0x14162d=_0x38b1fd;return this[_0x14162d(0x16e)][_0x14162d(0x186)](_0x5843f0=>_0x5843f0['id']===_0x62ef55);}[_0x38b1fd(0x12d)](_0x278831){const _0x74d961=_0x38b1fd,_0x357110=this[_0x74d961(0x17c)](_0x278831);_0x357110&&(_0x357110[_0x74d961(0x152)](),this[_0x74d961(0x16e)][_0x74d961(0x18d)](this[_0x74d961(0x16e)][_0x74d961(0x15a)](_0x357110),0x1));}get[_0x38b1fd(0x12c)](){const _0x2c06d1=_0x38b1fd;return this[_0x2c06d1(0x16e)][this[_0x2c06d1(0x16e)][_0x2c06d1(0x146)]-0x1];}[_0x38b1fd(0x16c)](_0x289c9e){const _0x2f0fc4=_0x38b1fd;this[_0x2f0fc4(0x194)][_0x2f0fc4(0x16c)](_0x289c9e);}async[_0x38b1fd(0x17d)]({content:_0x7c8fda,version:_0x58961c,sessionId:_0x4a725e,selections:_0x4cf9de}){const _0x481148=_0x38b1fd;await this[_0x481148(0x194)][_0x481148(0x13d)](_0x7c8fda,_0x58961c,_0x4a725e,_0x4cf9de);}[_0x38b1fd(0x188)](){const _0x1c67bb=_0x38b1fd;return this[_0x1c67bb(0x160)]?.[_0x1c67bb(0x193)]()?.[_0x1c67bb(0x173)]||'';}[_0x38b1fd(0x196)](_0x2b6478){const _0x3936fc=_0x38b1fd;this[_0x3936fc(0x194)][_0x3936fc(0x196)](_0x2b6478);}[_0x38b1fd(0x122)](){const _0x29dfd7=_0x38b1fd;this[_0x29dfd7(0x194)][_0x29dfd7(0x122)]();}[_0x38b1fd(0x143)](_0x37b7d1){const _0xe777d=_0x38b1fd;this[_0xe777d(0x194)][_0xe777d(0x143)](_0x37b7d1);}[_0x38b1fd(0x12e)](_0x3fdcf1){const _0x14002e=_0x38b1fd;this[_0x14002e(0x194)][_0x14002e(0x12e)](_0x3fdcf1);}[_0x38b1fd(0x18e)](_0x3f050b,_0x50dc6c){const _0x5d275d=_0x38b1fd;this[_0x5d275d(0x194)][_0x5d275d(0x18e)](_0x3f050b,_0x50dc6c);}[_0x38b1fd(0x171)](_0x5e614b,_0x5bb7e3,_0x453d8d){const _0x273bd4=_0x38b1fd;return this[_0x273bd4(0x194)][_0x273bd4(0x171)](_0x5e614b,_0x5bb7e3,_0x453d8d);}[_0x38b1fd(0x178)](_0x567d77){const _0x4fb199=_0x38b1fd;this[_0x4fb199(0x194)][_0x4fb199(0x178)](_0x567d77);}[_0x38b1fd(0x189)](){const _0x2bd45c=_0x38b1fd;this[_0x2bd45c(0x134)][_0x2bd45c(0x189)]();}[_0x38b1fd(0x142)](){const _0x5e4680=_0x38b1fd;this[_0x5e4680(0x134)][_0x5e4680(0x142)]();}[_0x38b1fd(0x127)](){const _0x3dceae=_0x38b1fd;return this[_0x3dceae(0x194)][_0x3dceae(0x127)]();}[_0x38b1fd(0x18c)](){const _0x2255c9=_0x38b1fd;return this[_0x2255c9(0x194)][_0x2255c9(0x18c)]();}[_0x38b1fd(0x153)](){const _0x249a29=_0x38b1fd;return this[_0x249a29(0x194)][_0x249a29(0x153)]();}async[_0x38b1fd(0x17a)](_0x3f5be5){const _0x2aa840=_0x38b1fd;_0x3f5be5?!0x1===await this[_0x2aa840(0x14f)][_0x2aa840(0x18a)](_0x3f5be5)&&(_0x477542(_0x2aa840(0x16f),{'conversation':this,'model':_0x3f5be5}),_0x3f5be5=(await this[_0x2aa840(0x14f)][_0x2aa840(0x132)]())[0x0]):(_0x477542(_0x2aa840(0x166),{'conversation':this}),_0x3f5be5=(await this[_0x2aa840(0x14f)][_0x2aa840(0x132)]())[0x0]),_0x3f5be5['id']!==this[_0x2aa840(0x13f)]?.['id']&&(this[_0x2aa840(0x13f)]=_0x3f5be5,this[_0x2aa840(0x134)][_0x2aa840(0x163)](),this[_0x2aa840(0x190)](_0x2aa840(0x191),{'selectedModel':_0x3f5be5}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xa0d1be=_0x1101;(function(_0x4fc4c7,_0x56852c){var _0x506d71=_0x1101,_0x7da897=_0x4fc4c7();while(!![]){try{var _0x29712d=parseInt(_0x506d71(0x1bc))/0x1*(-parseInt(_0x506d71(0x1b8))/0x2)+parseInt(_0x506d71(0x1a7))/0x3+parseInt(_0x506d71(0x1ad))/0x4+-parseInt(_0x506d71(0x1b9))/0x5*(-parseInt(_0x506d71(0x1ac))/0x6)+parseInt(_0x506d71(0x1a9))/0x7+-parseInt(_0x506d71(0x1a8))/0x8+-parseInt(_0x506d71(0x1b5))/0x9;if(_0x29712d===_0x56852c)break;else _0x7da897['push'](_0x7da897['shift']());}catch(_0x4cb68a){_0x7da897['push'](_0x7da897['shift']());}}}(_0x52f0,0xa7769));import{AICapabilities as _0x1a756a}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x1c5631}from'../../aicore/model/aiinteraction.js';function _0x1101(_0x35b672,_0x10fae7){var _0x52f02c=_0x52f0();return _0x1101=function(_0x1101b0,_0x340f3b){_0x1101b0=_0x1101b0-0x1a6;var _0x5d5774=_0x52f02c[_0x1101b0];return _0x5d5774;},_0x1101(_0x35b672,_0x10fae7);}import{AIChatContext as _0x4a24d1}from'./aichatcontext.js';function _0x52f0(){var _0x1b8723=['current-document','capabilities','userMessage','getDocumentContext','model','queryAssistant','14132169hDgfxA','quickActionData','sendRequest','2YtDvUR','10YEIXGS','mapContextItemsToRequestData','getCapabilitiesRequestData','154006GESNni','get','3449196VkmgdU','3580328eBLbmg','6556858wvlevm','conversationId','contextItems','1529646LUTaPe','1045636HqOzLh','connector'];_0x52f0=function(){return _0x1b8723;};return _0x52f0();}export class AIChatInteraction extends _0x1c5631{[_0xa0d1be(0x1b1)];[_0xa0d1be(0x1aa)];[_0xa0d1be(0x1ab)]=new Map();[_0xa0d1be(0x1b3)];[_0xa0d1be(0x1b6)];constructor(_0x3c8cce){var _0x1bd4d8=_0xa0d1be;super(_0x3c8cce),this[_0x1bd4d8(0x1aa)]=_0x3c8cce[_0x1bd4d8(0x1aa)],this[_0x1bd4d8(0x1ab)]=_0x3c8cce[_0x1bd4d8(0x1ab)],this[_0x1bd4d8(0x1b0)]=_0x3c8cce[_0x1bd4d8(0x1b0)],this[_0x1bd4d8(0x1b1)]=_0x3c8cce[_0x1bd4d8(0x1b1)],this[_0x1bd4d8(0x1b3)]=_0x3c8cce[_0x1bd4d8(0x1b3)],this[_0x1bd4d8(0x1b6)]=_0x3c8cce[_0x1bd4d8(0x1b6)];}async[_0xa0d1be(0x1b7)](){var _0x4541ea=_0xa0d1be;return this[_0x4541ea(0x1ae)][_0x4541ea(0x1b4)]({'message':this[_0x4541ea(0x1b1)],'conversationId':this[_0x4541ea(0x1aa)],'parts':_0x4a24d1[_0x4541ea(0x1ba)](this[_0x4541ea(0x1ab)]),'capabilities':_0x1a756a[_0x4541ea(0x1bb)](this[_0x4541ea(0x1b0)]),'model':this[_0x4541ea(0x1b3)],'quickActionData':this[_0x4541ea(0x1b6)]});}[_0xa0d1be(0x1b2)](){var _0x101162=_0xa0d1be;return this[_0x101162(0x1ab)][_0x101162(0x1a6)](_0x101162(0x1af));}}
23
+ var _0x48a82f=_0x3132;(function(_0x5d8630,_0x55440c){var _0x362806=_0x3132,_0x175ced=_0x5d8630();while(!![]){try{var _0x57afc0=parseInt(_0x362806(0x1f4))/0x1+-parseInt(_0x362806(0x204))/0x2+parseInt(_0x362806(0x1f5))/0x3+parseInt(_0x362806(0x1fc))/0x4*(parseInt(_0x362806(0x203))/0x5)+parseInt(_0x362806(0x1ff))/0x6*(parseInt(_0x362806(0x200))/0x7)+parseInt(_0x362806(0x1f7))/0x8*(parseInt(_0x362806(0x207))/0x9)+-parseInt(_0x362806(0x1fe))/0xa;if(_0x57afc0===_0x55440c)break;else _0x175ced['push'](_0x175ced['shift']());}catch(_0x231371){_0x175ced['push'](_0x175ced['shift']());}}}(_0x58e1,0xb3e04));function _0x58e1(){var _0x4454ca=['785kRgisv','2801818FjQDKU','current-document','getDocumentContext','12328092LqKRaw','userMessage','quickActionData','contextItems','connector','1278997PlHDkc','3816063TxBPnG','capabilities','8DnlTXc','sendRequest','getCapabilitiesRequestData','get','queryAssistant','18832VCcwtw','model','33856470vGLRBe','62412OmFAEg','581MWFWov','conversationId','mapContextItemsToRequestData'];_0x58e1=function(){return _0x4454ca;};return _0x58e1();}function _0x3132(_0x458dc7,_0x4c3f0a){var _0x58e174=_0x58e1();return _0x3132=function(_0x313227,_0xeab68c){_0x313227=_0x313227-0x1f4;var _0x4b2614=_0x58e174[_0x313227];return _0x4b2614;},_0x3132(_0x458dc7,_0x4c3f0a);}import{AICapabilities as _0x4c81ea}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x560663}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3a8db0}from'./aichatcontext.js';export class AIChatInteraction extends _0x560663{[_0x48a82f(0x208)];[_0x48a82f(0x201)];[_0x48a82f(0x20a)]=new Map();[_0x48a82f(0x1fd)];[_0x48a82f(0x209)];constructor(_0x327a72){var _0x472a6e=_0x48a82f;super(_0x327a72),this[_0x472a6e(0x201)]=_0x327a72[_0x472a6e(0x201)],this[_0x472a6e(0x20a)]=_0x327a72[_0x472a6e(0x20a)],this[_0x472a6e(0x1f6)]=_0x327a72[_0x472a6e(0x1f6)],this[_0x472a6e(0x208)]=_0x327a72[_0x472a6e(0x208)],this[_0x472a6e(0x1fd)]=_0x327a72[_0x472a6e(0x1fd)],this[_0x472a6e(0x209)]=_0x327a72[_0x472a6e(0x209)];}async[_0x48a82f(0x1f8)](){var _0x229e1a=_0x48a82f;return this[_0x229e1a(0x20b)][_0x229e1a(0x1fb)]({'message':this[_0x229e1a(0x208)],'conversationId':this[_0x229e1a(0x201)],'parts':_0x3a8db0[_0x229e1a(0x202)](this[_0x229e1a(0x20a)]),'capabilities':_0x4c81ea[_0x229e1a(0x1f9)](this[_0x229e1a(0x1f6)]),'model':this[_0x229e1a(0x1fd)],'quickActionData':this[_0x229e1a(0x209)]});}[_0x48a82f(0x206)](){var _0x339d5d=_0x48a82f;return this[_0x339d5d(0x20a)][_0x339d5d(0x1fa)](_0x339d5d(0x205));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5997(_0x313fdf,_0x1a6ba8){const _0x1ed5af=_0x1ed5();return _0x5997=function(_0x5997df,_0x6579e3){_0x5997df=_0x5997df-0x128;let _0x1f4728=_0x1ed5af[_0x5997df];return _0x1f4728;},_0x5997(_0x313fdf,_0x1a6ba8);}function _0x1ed5(){const _0x76b2da=['capabilities','96827uhVEMv','264770WLkYiP','29424VFoCdJ','sort','enabled','110huJWNE','3411KhZeFv','filter','5304kTOxfc','6rKpgue','332035YCjPZb','1077566qyWjnn','113074HjYQGe','getAll','28zwTkvk','values','length'];_0x1ed5=function(){return _0x76b2da;};return _0x1ed5();}const _0x1fdd04=_0x5997;(function(_0x20682d,_0x584e98){const _0x486822=_0x5997,_0x5bd062=_0x20682d();while(!![]){try{const _0x209ddd=-parseInt(_0x486822(0x130))/0x1+parseInt(_0x486822(0x12a))/0x2+parseInt(_0x486822(0x132))/0x3*(parseInt(_0x486822(0x12c))/0x4)+-parseInt(_0x486822(0x128))/0x5+-parseInt(_0x486822(0x139))/0x6*(-parseInt(_0x486822(0x129))/0x7)+-parseInt(_0x486822(0x138))/0x8*(parseInt(_0x486822(0x136))/0x9)+-parseInt(_0x486822(0x131))/0xa*(-parseInt(_0x486822(0x135))/0xb);if(_0x209ddd===_0x584e98)break;else _0x5bd062['push'](_0x5bd062['shift']());}catch(_0x57c7f6){_0x5bd062['push'](_0x5bd062['shift']());}}}(_0x1ed5,0x1f96e));import{AIModels as _0x58b48a}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x58b48a{async[_0x1fdd04(0x12b)](){const _0x36d3f8=_0x1fdd04;return(await super[_0x36d3f8(0x12b)]())[_0x36d3f8(0x133)]((_0x4bb19c,_0xa9f2f0)=>{const _0x1713a1=_0x36d3f8,_0x27a5d8=Object[_0x1713a1(0x12d)](_0x4bb19c[_0x1713a1(0x12f)])[_0x1713a1(0x137)](_0x1e05b0=>_0x1e05b0[_0x1713a1(0x134)])[_0x1713a1(0x12e)];return Object[_0x1713a1(0x12d)](_0xa9f2f0[_0x1713a1(0x12f)])[_0x1713a1(0x137)](_0x356fe1=>_0x356fe1[_0x1713a1(0x134)])[_0x1713a1(0x12e)]-_0x27a5d8;});}}
23
+ const _0x421d5c=_0x2a63;function _0x1e2a(){const _0x4f021f=['591195LARMla','2359aswFeJ','6980CaTJHc','enabled','11946dAakjz','filter','6273NoVVkB','373584wURnPF','4MhJGxP','1930930Bfptrr','sort','capabilities','2300125MdFtOd','length','values','3620656LKEXXu','getAll'];_0x1e2a=function(){return _0x4f021f;};return _0x1e2a();}(function(_0x3848a7,_0x51209c){const _0x4fb2ec=_0x2a63,_0x2a597a=_0x3848a7();while(!![]){try{const _0x33a918=-parseInt(_0x4fb2ec(0x172))/0x1+parseInt(_0x4fb2ec(0x174))/0x2+parseInt(_0x4fb2ec(0x16b))/0x3*(-parseInt(_0x4fb2ec(0x173))/0x4)+-parseInt(_0x4fb2ec(0x166))/0x5+-parseInt(_0x4fb2ec(0x16f))/0x6*(-parseInt(_0x4fb2ec(0x16c))/0x7)+-parseInt(_0x4fb2ec(0x169))/0x8+-parseInt(_0x4fb2ec(0x171))/0x9*(-parseInt(_0x4fb2ec(0x16d))/0xa);if(_0x33a918===_0x51209c)break;else _0x2a597a['push'](_0x2a597a['shift']());}catch(_0x24acfc){_0x2a597a['push'](_0x2a597a['shift']());}}}(_0x1e2a,0x9c2c2));function _0x2a63(_0x4e0605,_0x5d8b54){const _0x1e2a96=_0x1e2a();return _0x2a63=function(_0x2a6356,_0x579e32){_0x2a6356=_0x2a6356-0x166;let _0x593a31=_0x1e2a96[_0x2a6356];return _0x593a31;},_0x2a63(_0x4e0605,_0x5d8b54);}import{AIModels as _0x31d9c2}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x31d9c2{async[_0x421d5c(0x16a)](){const _0x2a4b20=_0x421d5c;return(await super[_0x2a4b20(0x16a)]())[_0x2a4b20(0x175)]((_0x53e545,_0x119afe)=>{const _0x58e714=_0x2a4b20,_0xc97cb7=Object[_0x58e714(0x168)](_0x53e545[_0x58e714(0x176)])[_0x58e714(0x170)](_0x48dc92=>_0x48dc92[_0x58e714(0x16e)])[_0x58e714(0x167)];return Object[_0x58e714(0x168)](_0x119afe[_0x58e714(0x176)])[_0x58e714(0x170)](_0x4c330a=>_0x4c330a[_0x58e714(0x16e)])[_0x58e714(0x167)]-_0xc97cb7;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30fe85=_0x50e4;(function(_0x19966a,_0x21a84b){const _0x2cb883=_0x50e4,_0x80ff84=_0x19966a();while(!![]){try{const _0x17f17d=parseInt(_0x2cb883(0xd0))/0x1+parseInt(_0x2cb883(0xd9))/0x2*(-parseInt(_0x2cb883(0xb5))/0x3)+parseInt(_0x2cb883(0x96))/0x4+parseInt(_0x2cb883(0x90))/0x5*(parseInt(_0x2cb883(0xb6))/0x6)+-parseInt(_0x2cb883(0xc5))/0x7*(parseInt(_0x2cb883(0xc2))/0x8)+-parseInt(_0x2cb883(0x9b))/0x9*(-parseInt(_0x2cb883(0xd6))/0xa)+-parseInt(_0x2cb883(0xb4))/0xb;if(_0x17f17d===_0x21a84b)break;else _0x80ff84['push'](_0x80ff84['shift']());}catch(_0x2f8d96){_0x80ff84['push'](_0x80ff84['shift']());}}}(_0x4ed5,0x43e38));import{ButtonView as _0x5233a4,clickOutsideHandler as _0x5db31a,View as _0x4c1c6d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x54d4ad}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x52fa6f}from'./controls/aichatpromptcapabilitiesview.js';function _0x4ed5(){const _0x4be345=['low','toggleReasoning','startConversation','_createPromptCapabilitiesView','8893577eatdXN','3eUAZkJ','171954ynmjMA','selectModel','focus','resetMessageInput','ck-hidden','clearConversationContextItems','ck-ai-chat-controls__start-new-chat-button','_shouldRestorePromptInputFocus','setContextItemLoading','bodyCollection','setTemplate','isLoading','1388008fmpBYF','updateResourceState','setReasoning','7iXXtqa','_promptCapabilitiesView','form','enableModelSelector','startsWith','setWebSearch','execute','toggleWebSearch','sendUserMessage','setPlaceholderText','clearConversationContextUI','507747ZcYCmM','_createModelUnavailableMessageView','_createContextPanelView','addContextItem','setInputPlaceholder','reset','20690vxtQhH','element','_displayedModels','555692WuTgKs','change:isLoading','div','set','populateSourceResourceBalloon','_createPromptInputView','_handlePromptInputFocus','setAddContextOptions','_modelUnavailableMessageView','95DNbloo','setModelList','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','delegate','abortPromptStream','1851596flCwBh','ck-ai-chat-controls-model-unavailable-message','isDisabled','ck-ai-chat-controls-disabled','agent','99kkmmyG','isModelAvailable','clearCurrentContextItems','setConversationContext','setIsUploadInProgress','find','closeSourceResourceBalloon','removeContextItem','clearPendingContextUI','contextResourcesSearchInputVisibleFrom','addContextButtonView','disableModelSelector','setModel','_contextPanelView','_createLoaderView','_promptInputView','_loaderView','ck-ai-chat-controls','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','locale'];_0x4ed5=function(){return _0x4be345;};return _0x4ed5();}import{AIChatContextPanelView as _0x1fb689,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x251d49}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2b5585}from'./controls/aichatcontrolsloaderview.js';function _0x50e4(_0x2ae07c,_0x504b11){const _0x4ed505=_0x4ed5();return _0x50e4=function(_0x50e48f,_0xecc28f){_0x50e48f=_0x50e48f-0x8b;let _0x2d9b15=_0x4ed505[_0x50e48f];return _0x2d9b15;},_0x50e4(_0x2ae07c,_0x504b11);}import{getTranslation as _0x1bf560}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4c1c6d{[_0x30fe85(0xd8)]=[];[_0x30fe85(0xa8)];[_0x30fe85(0xaa)];[_0x30fe85(0xc6)];[_0x30fe85(0xab)];[_0x30fe85(0x8f)];[_0x30fe85(0xbd)];constructor(_0x544a60,_0x5d4a7b){const _0x84189=_0x30fe85;super(_0x544a60),this[_0x84189(0xa8)]=this[_0x84189(0xd2)](_0x544a60,{'bodyCollection':_0x5d4a7b[_0x84189(0xbf)],'searchInputVisibleFrom':_0x5d4a7b[_0x84189(0xa4)]}),this[_0x84189(0xaa)]=this[_0x84189(0x8c)](_0x544a60),this[_0x84189(0xc6)]=this[_0x84189(0xb3)](_0x544a60),this[_0x84189(0xab)]=this[_0x84189(0xa9)](_0x544a60),this[_0x84189(0x8f)]=this[_0x84189(0xd1)](_0x544a60),this[_0x84189(0xbd)]=!0x1,this[_0x84189(0xaa)][_0x84189(0x94)](_0x84189(0xcd))['to'](this),this[_0x84189(0xab)][_0x84189(0x94)](_0x84189(0x95))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xcc))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xb1))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xb7))['to'](this),this[_0x84189(0xa8)][_0x84189(0x94)](..._0x251d49)['to'](this),this[_0x84189(0xdc)](_0x84189(0x9c),!0x0),this[_0x84189(0xdc)](_0x84189(0x98),!0x1);const _0x7efd0d=this[_0x84189(0x92)];this[_0x84189(0xc0)]({'tag':_0x84189(0xc7),'attributes':{'class':['ck',_0x84189(0xac),_0x7efd0d['if'](_0x84189(0x98),_0x84189(0x99))]},'children':[{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0xc1),_0x84189(0xba),_0x56dc8f=>_0x56dc8f||!this[_0x84189(0x9c)]),_0x7efd0d['if'](_0x84189(0x9c),_0x84189(0xba),_0x44b785=>!_0x44b785||this[_0x84189(0xc1)])]},'children':[this[_0x84189(0xa8)],this[_0x84189(0xaa)],this[_0x84189(0xc6)]]},{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0xc1),_0x84189(0xba),_0x207049=>!_0x207049)]},'children':[this[_0x84189(0xab)]]},{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0x9c),_0x84189(0xba),_0x341a58=>_0x341a58)]},'children':[this[_0x84189(0x8f)]]}]}),_0x5db31a({'emitter':this[_0x84189(0xaa)],'activator':()=>this[_0x84189(0xc1)],'contextElements':()=>[this[_0x84189(0xd7)]],'callback':()=>{const _0x543982=_0x84189;this[_0x543982(0xbd)]=!0x1;}}),this['on'](_0x84189(0xda),this[_0x84189(0x8d)],{'priority':_0x84189(0xb0)});}[_0x30fe85(0xd2)](_0x57328b,_0x5e5d50){return new _0x1fb689(_0x57328b,_0x5e5d50);}[_0x30fe85(0x8c)](_0x5ae00c){const _0x2517d1=_0x30fe85;return new _0x54d4ad(_0x5ae00c,this[_0x2517d1(0xa8)][_0x2517d1(0xa5)]);}[_0x30fe85(0xb3)](_0x59ae0b){return new _0x52fa6f(_0x59ae0b);}[_0x30fe85(0xa9)](_0x2269ab){return new _0x2b5585(_0x2269ab);}[_0x30fe85(0xd1)](_0x40f322){const _0x2a29ec=_0x30fe85,_0x599576=new _s(_0x40f322);return _0x599576[_0x2a29ec(0x94)](_0x2a29ec(0xb2))['to'](this),_0x599576;}[_0x30fe85(0x8d)](_0x509d8d,_0x63910c,_0x58a92f){const _0xc76096=_0x30fe85;_0x58a92f?this[_0xc76096(0xbd)]=!0x0:this[_0xc76096(0xbd)]&&this[_0xc76096(0xaa)][_0xc76096(0xb8)]();}[_0x30fe85(0xd3)](_0x51e1a8,_0x5f4872){const _0x35d8fa=_0x30fe85;this[_0x35d8fa(0xa8)][_0x35d8fa(0xd3)](_0x51e1a8,_0x5f4872);}[_0x30fe85(0xa2)](_0x546142){const _0x41f968=_0x30fe85;this[_0x41f968(0xa8)][_0x41f968(0xa2)](_0x546142);}[_0x30fe85(0xbe)](_0x304ce4,_0x56505f){const _0x5920f7=_0x30fe85;this[_0x5920f7(0xa8)][_0x5920f7(0xbe)](_0x304ce4,_0x56505f);}[_0x30fe85(0x9f)](_0x4ae4b3){const _0x2290fb=_0x30fe85;this[_0x2290fb(0xaa)][_0x2290fb(0x9f)](_0x4ae4b3);}[_0x30fe85(0x9e)](_0x37460b){const _0x38fded=_0x30fe85;this[_0x38fded(0xa8)][_0x38fded(0x9e)](_0x37460b);}[_0x30fe85(0xa3)](){const _0xb0db3f=_0x30fe85;this[_0xb0db3f(0xa8)][_0xb0db3f(0x9d)]();}[_0x30fe85(0xcf)](){const _0x34aa3b=_0x30fe85;this[_0x34aa3b(0xa8)][_0x34aa3b(0xbb)]();}[_0x30fe85(0xc3)](_0x4f7433,_0x1d6185,_0x4bc61e){const _0xb2f72e=_0x30fe85;this[_0xb2f72e(0xa8)][_0xb2f72e(0xc3)](_0x4f7433,_0x1d6185,_0x4bc61e);}[_0x30fe85(0xca)](_0x225bcd){const _0x38742c=_0x30fe85;this[_0x38742c(0xc6)][_0x38742c(0xca)](_0x225bcd);}[_0x30fe85(0xc4)](_0x67dbe6){const _0x4ab9fe=_0x30fe85;this[_0x4ab9fe(0xc6)][_0x4ab9fe(0xc4)](_0x67dbe6);}[_0x30fe85(0xb9)](){const _0x54f906=_0x30fe85;this[_0x54f906(0xaa)][_0x54f906(0xd5)]();}[_0x30fe85(0x8e)](_0x35f2f8){const _0x3fc992=_0x30fe85;this[_0x3fc992(0xa8)][_0x3fc992(0x8e)](_0x35f2f8);}[_0x30fe85(0xd4)](_0x56cd57){const _0x1f43f2=_0x30fe85;this[_0x1f43f2(0xaa)][_0x1f43f2(0xce)](_0x56cd57);}[_0x30fe85(0x91)](_0x2bbaa6,_0x1bd542){const _0x1f509c=_0x30fe85;this[_0x1f509c(0xd8)]=_0x2bbaa6,this[_0x1f509c(0xc6)][_0x1f509c(0x91)](_0x2bbaa6,_0x1bd542);}[_0x30fe85(0xa7)](_0x362f5e){const _0x214bd2=_0x30fe85;(_0x362f5e?this[_0x214bd2(0xd8)][_0x214bd2(0xa0)](_0x101d3b=>_0x101d3b['id']===_0x362f5e['id']):null)?(this[_0x214bd2(0x9c)]=!0x0,this[_0x214bd2(0xc6)][_0x214bd2(0xa7)](_0x362f5e)):_0x362f5e?.['id'][_0x214bd2(0xc9)](_0x214bd2(0x9a))?(this[_0x214bd2(0x9c)]=!0x0,this[_0x214bd2(0xc6)][_0x214bd2(0xa7)](this[_0x214bd2(0xd8)][0x0])):this[_0x214bd2(0x9c)]=!0x1;}[_0x30fe85(0xc8)](){const _0x4a2efc=_0x30fe85;this[_0x4a2efc(0xc6)][_0x4a2efc(0xc8)]();}[_0x30fe85(0xa6)](_0x507561){const _0x46579a=_0x30fe85;this[_0x46579a(0xc6)][_0x46579a(0xa6)](_0x507561);}[_0x30fe85(0x8b)](_0x8013f5,_0x49f051,_0xd9239e,_0x1bea84){const _0x2053ed=_0x30fe85;this[_0x2053ed(0xa8)][_0x2053ed(0x8b)](_0x8013f5,_0x49f051,_0xd9239e,_0x1bea84);}[_0x30fe85(0xa1)](_0x44e3b7){const _0x4fb716=_0x30fe85;this[_0x4fb716(0xa8)][_0x4fb716(0xa1)](_0x44e3b7);}[_0x30fe85(0xad)](){const _0x38cd37=_0x30fe85;this[_0x38cd37(0xaa)][_0x38cd37(0xb8)]();}}class _s extends _0x4c1c6d{constructor(_0x41eb41){const _0x3705be=_0x30fe85;super(_0x41eb41);const _0x9cc918=new _0x5233a4(_0x41eb41);_0x9cc918[_0x3705be(0xdc)]({'label':_0x1bf560(this[_0x3705be(0xaf)],_0x3705be(0x93)),'withText':!0x0,'class':[_0x3705be(0xbc)],'tooltip':''}),_0x9cc918[_0x3705be(0x94)](_0x3705be(0xcb))['to'](this,_0x3705be(0xb2)),this[_0x3705be(0xc0)]({'tag':_0x3705be(0xdb),'attributes':{'class':['ck',_0x3705be(0x97)]},'children':[{'tag':'p','children':[{'text':_0x1bf560(this[_0x3705be(0xaf)],_0x3705be(0xae))+'\x20'},_0x9cc918]}]});}}
23
+ const _0x5c51c0=_0x53af;(function(_0x1383ee,_0x4c3b6a){const _0x48a6fc=_0x53af,_0x95d41b=_0x1383ee();while(!![]){try{const _0x101a85=parseInt(_0x48a6fc(0xa1))/0x1+-parseInt(_0x48a6fc(0xd4))/0x2+parseInt(_0x48a6fc(0xce))/0x3+parseInt(_0x48a6fc(0xe6))/0x4*(-parseInt(_0x48a6fc(0xdc))/0x5)+parseInt(_0x48a6fc(0xcb))/0x6+-parseInt(_0x48a6fc(0xcc))/0x7*(parseInt(_0x48a6fc(0xc8))/0x8)+parseInt(_0x48a6fc(0xbe))/0x9;if(_0x101a85===_0x4c3b6a)break;else _0x95d41b['push'](_0x95d41b['shift']());}catch(_0x1bc3f8){_0x95d41b['push'](_0x95d41b['shift']());}}}(_0x2016,0xaeec2));import{ButtonView as _0x155d3e,clickOutsideHandler as _0x5b63cf,View as _0x52b72c}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x1494c0}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x140a24}from'./controls/aichatpromptcapabilitiesview.js';function _0x2016(){const _0x46e637=['_createPromptCapabilitiesView','952190HfgFIb','agent','startsWith','execute','find','setModel','_promptInputView','startConversation','form','isModelAvailable','24vsFiTR','addContextButtonView','change:isLoading','setAddContextOptions','low','div','set','clearPendingContextUI','setInputPlaceholder','sendUserMessage','locale','229056qOJfko','setIsUploadInProgress','isDisabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModelList','bindTemplate','removeContextItem','_loaderView','updateResourceState','setPlaceholderText','bodyCollection','setWebSearch','setConversationContext','ck-hidden','focus','isLoading','_displayedModels','toggleWebSearch','_shouldRestorePromptInputFocus','setTemplate','enableModelSelector','_createContextPanelView','_modelUnavailableMessageView','clearCurrentContextItems','disableModelSelector','contextResourcesSearchInputVisibleFrom','selectModel','clearConversationContextItems','_contextPanelView','8142912gjGoZV','clearConversationContextUI','_createModelUnavailableMessageView','reset','ck-ai-chat-controls','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','addContextItem','element','toggleReasoning','6496312dtvYyY','ck-ai-chat-controls__start-new-chat-button','_handlePromptInputFocus','8320596oxMbap','7JVERet','resetMessageInput','685704ImQxPP','_promptCapabilitiesView','closeSourceResourceBalloon','ck-ai-chat-controls-model-unavailable-message','setContextItemLoading','delegate','156018WezXta','populateSourceResourceBalloon','ck-ai-chat-controls-disabled','_createPromptInputView','setReasoning','abortPromptStream','_createLoaderView'];_0x2016=function(){return _0x46e637;};return _0x2016();}import{AIChatContextPanelView as _0x50c758,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x57e45c}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x478701}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x23e44e}from'../../aicore/utils/common-translations.js';function _0x53af(_0x4c90be,_0x216c5f){const _0x201683=_0x2016();return _0x53af=function(_0x53af3c,_0x1d1c6f){_0x53af3c=_0x53af3c-0x9f;let _0x175eac=_0x201683[_0x53af3c];return _0x175eac;},_0x53af(_0x4c90be,_0x216c5f);}export class AIChatControlsView extends _0x52b72c{[_0x5c51c0(0xb1)]=[];[_0x5c51c0(0xbd)];[_0x5c51c0(0xe2)];[_0x5c51c0(0xcf)];[_0x5c51c0(0xa8)];[_0x5c51c0(0xb7)];[_0x5c51c0(0xb3)];constructor(_0x2c5017,_0xdd416c){const _0x52d2ee=_0x5c51c0;super(_0x2c5017),this[_0x52d2ee(0xbd)]=this[_0x52d2ee(0xb6)](_0x2c5017,{'bodyCollection':_0xdd416c[_0x52d2ee(0xab)],'searchInputVisibleFrom':_0xdd416c[_0x52d2ee(0xba)]}),this[_0x52d2ee(0xe2)]=this[_0x52d2ee(0xd7)](_0x2c5017),this[_0x52d2ee(0xcf)]=this[_0x52d2ee(0xdb)](_0x2c5017),this[_0x52d2ee(0xa8)]=this[_0x52d2ee(0xda)](_0x2c5017),this[_0x52d2ee(0xb7)]=this[_0x52d2ee(0xc0)](_0x2c5017),this[_0x52d2ee(0xb3)]=!0x1,this[_0x52d2ee(0xe2)][_0x52d2ee(0xd3)](_0x52d2ee(0x9f))['to'](this),this[_0x52d2ee(0xa8)][_0x52d2ee(0xd3)](_0x52d2ee(0xd9))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xb2))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xc7))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xbb))['to'](this),this[_0x52d2ee(0xbd)][_0x52d2ee(0xd3)](..._0x57e45c)['to'](this),this[_0x52d2ee(0xec)](_0x52d2ee(0xe5),!0x0),this[_0x52d2ee(0xec)](_0x52d2ee(0xa3),!0x1);const _0x10cc38=this[_0x52d2ee(0xa6)];this[_0x52d2ee(0xb4)]({'tag':_0x52d2ee(0xe4),'attributes':{'class':['ck',_0x52d2ee(0xc2),_0x10cc38['if'](_0x52d2ee(0xa3),_0x52d2ee(0xd6))]},'children':[{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xb0),_0x52d2ee(0xae),_0x109eb5=>_0x109eb5||!this[_0x52d2ee(0xe5)]),_0x10cc38['if'](_0x52d2ee(0xe5),_0x52d2ee(0xae),_0x1e6dd6=>!_0x1e6dd6||this[_0x52d2ee(0xb0)])]},'children':[this[_0x52d2ee(0xbd)],this[_0x52d2ee(0xe2)],this[_0x52d2ee(0xcf)]]},{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xb0),_0x52d2ee(0xae),_0x3b9586=>!_0x3b9586)]},'children':[this[_0x52d2ee(0xa8)]]},{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xe5),_0x52d2ee(0xae),_0x2c0b16=>_0x2c0b16)]},'children':[this[_0x52d2ee(0xb7)]]}]}),_0x5b63cf({'emitter':this[_0x52d2ee(0xe2)],'activator':()=>this[_0x52d2ee(0xb0)],'contextElements':()=>[this[_0x52d2ee(0xc6)]],'callback':()=>{const _0x1d1e99=_0x52d2ee;this[_0x1d1e99(0xb3)]=!0x1;}}),this['on'](_0x52d2ee(0xe8),this[_0x52d2ee(0xca)],{'priority':_0x52d2ee(0xea)});}[_0x5c51c0(0xb6)](_0x3b9a31,_0x14a4a2){return new _0x50c758(_0x3b9a31,_0x14a4a2);}[_0x5c51c0(0xd7)](_0x3e33d7){const _0x72c650=_0x5c51c0;return new _0x1494c0(_0x3e33d7,this[_0x72c650(0xbd)][_0x72c650(0xe7)]);}[_0x5c51c0(0xdb)](_0x3351d){return new _0x140a24(_0x3351d);}[_0x5c51c0(0xda)](_0x285fb9){return new _0x478701(_0x285fb9);}[_0x5c51c0(0xc0)](_0x580259){const _0x302e32=_0x5c51c0,_0x2658e3=new _s(_0x580259);return _0x2658e3[_0x302e32(0xd3)](_0x302e32(0xe3))['to'](this),_0x2658e3;}[_0x5c51c0(0xca)](_0x2eb8fe,_0x2e6a0e,_0x3af720){const _0x51c972=_0x5c51c0;_0x3af720?this[_0x51c972(0xb3)]=!0x0:this[_0x51c972(0xb3)]&&this[_0x51c972(0xe2)][_0x51c972(0xaf)]();}[_0x5c51c0(0xc5)](_0x8d39c2,_0x3cc8f9){const _0x569fea=_0x5c51c0;this[_0x569fea(0xbd)][_0x569fea(0xc5)](_0x8d39c2,_0x3cc8f9);}[_0x5c51c0(0xa7)](_0x53e271){const _0x7a6ec9=_0x5c51c0;this[_0x7a6ec9(0xbd)][_0x7a6ec9(0xa7)](_0x53e271);}[_0x5c51c0(0xd2)](_0x88772,_0x347ce9){const _0x3ceb8e=_0x5c51c0;this[_0x3ceb8e(0xbd)][_0x3ceb8e(0xd2)](_0x88772,_0x347ce9);}[_0x5c51c0(0xa2)](_0x3fb6ec){const _0x33803b=_0x5c51c0;this[_0x33803b(0xe2)][_0x33803b(0xa2)](_0x3fb6ec);}[_0x5c51c0(0xad)](_0x5a8574){const _0x1f1550=_0x5c51c0;this[_0x1f1550(0xbd)][_0x1f1550(0xad)](_0x5a8574);}[_0x5c51c0(0xed)](){const _0x5223cc=_0x5c51c0;this[_0x5223cc(0xbd)][_0x5223cc(0xb8)]();}[_0x5c51c0(0xbf)](){const _0x5c6308=_0x5c51c0;this[_0x5c6308(0xbd)][_0x5c6308(0xbc)]();}[_0x5c51c0(0xa9)](_0x2df641,_0x897a25,_0x1dc2d0){const _0x1e4777=_0x5c51c0;this[_0x1e4777(0xbd)][_0x1e4777(0xa9)](_0x2df641,_0x897a25,_0x1dc2d0);}[_0x5c51c0(0xac)](_0x4d91fc){const _0x4ad1e8=_0x5c51c0;this[_0x4ad1e8(0xcf)][_0x4ad1e8(0xac)](_0x4d91fc);}[_0x5c51c0(0xd8)](_0x41ca8c){const _0x37f3d6=_0x5c51c0;this[_0x37f3d6(0xcf)][_0x37f3d6(0xd8)](_0x41ca8c);}[_0x5c51c0(0xcd)](){const _0x316de2=_0x5c51c0;this[_0x316de2(0xe2)][_0x316de2(0xc1)]();}[_0x5c51c0(0xe9)](_0xa10866){const _0x4f91ee=_0x5c51c0;this[_0x4f91ee(0xbd)][_0x4f91ee(0xe9)](_0xa10866);}[_0x5c51c0(0xee)](_0x8a6ea7){const _0x4bb50a=_0x5c51c0;this[_0x4bb50a(0xe2)][_0x4bb50a(0xaa)](_0x8a6ea7);}[_0x5c51c0(0xa5)](_0x49687a,_0x565449){const _0x462205=_0x5c51c0;this[_0x462205(0xb1)]=_0x49687a,this[_0x462205(0xcf)][_0x462205(0xa5)](_0x49687a,_0x565449);}[_0x5c51c0(0xe1)](_0x5817e3){const _0x544105=_0x5c51c0;(_0x5817e3?this[_0x544105(0xb1)][_0x544105(0xe0)](_0x197c98=>_0x197c98['id']===_0x5817e3['id']):null)?(this[_0x544105(0xe5)]=!0x0,this[_0x544105(0xcf)][_0x544105(0xe1)](_0x5817e3)):_0x5817e3?.['id'][_0x544105(0xde)](_0x544105(0xdd))?(this[_0x544105(0xe5)]=!0x0,this[_0x544105(0xcf)][_0x544105(0xe1)](this[_0x544105(0xb1)][0x0])):this[_0x544105(0xe5)]=!0x1;}[_0x5c51c0(0xb5)](){const _0x1cdb0a=_0x5c51c0;this[_0x1cdb0a(0xcf)][_0x1cdb0a(0xb5)]();}[_0x5c51c0(0xb9)](_0x3f53e3){const _0xc89760=_0x5c51c0;this[_0xc89760(0xcf)][_0xc89760(0xb9)](_0x3f53e3);}[_0x5c51c0(0xd5)](_0xe61e9c,_0x58fe5d,_0x27ba5d,_0x2bc42b){const _0x1da38a=_0x5c51c0;this[_0x1da38a(0xbd)][_0x1da38a(0xd5)](_0xe61e9c,_0x58fe5d,_0x27ba5d,_0x2bc42b);}[_0x5c51c0(0xd0)](_0x306887){const _0x2fe9f9=_0x5c51c0;this[_0x2fe9f9(0xbd)][_0x2fe9f9(0xd0)](_0x306887);}[_0x5c51c0(0xc3)](){const _0x470f08=_0x5c51c0;this[_0x470f08(0xe2)][_0x470f08(0xaf)]();}}class _s extends _0x52b72c{constructor(_0x4ebf26){const _0x2a1eb0=_0x5c51c0;super(_0x4ebf26);const _0x9aaefe=new _0x155d3e(_0x4ebf26);_0x9aaefe[_0x2a1eb0(0xec)]({'label':_0x23e44e(this[_0x2a1eb0(0xa0)],_0x2a1eb0(0xc4)),'withText':!0x0,'class':[_0x2a1eb0(0xc9)],'tooltip':''}),_0x9aaefe[_0x2a1eb0(0xd3)](_0x2a1eb0(0xdf))['to'](this,_0x2a1eb0(0xe3)),this[_0x2a1eb0(0xb4)]({'tag':_0x2a1eb0(0xeb),'attributes':{'class':['ck',_0x2a1eb0(0xd1)]},'children':[{'tag':'p','children':[{'text':_0x23e44e(this[_0x2a1eb0(0xa0)],_0x2a1eb0(0xa4))+'\x20'},_0x9aaefe]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5045a7=_0x3bd9;function _0x3bd9(_0x2be9f0,_0x5928dd){const _0x466ebf=_0x466e();return _0x3bd9=function(_0x3bd987,_0x1fe83a){_0x3bd987=_0x3bd987-0xd9;let _0x460efd=_0x466ebf[_0x3bd987];return _0x460efd;},_0x3bd9(_0x2be9f0,_0x5928dd);}(function(_0x301e2e,_0x151491){const _0x555865=_0x3bd9,_0x11cd56=_0x301e2e();while(!![]){try{const _0x3079c5=parseInt(_0x555865(0xed))/0x1*(parseInt(_0x555865(0xf3))/0x2)+parseInt(_0x555865(0xde))/0x3*(parseInt(_0x555865(0xda))/0x4)+parseInt(_0x555865(0x10b))/0x5*(parseInt(_0x555865(0x121))/0x6)+-parseInt(_0x555865(0xfe))/0x7*(-parseInt(_0x555865(0x125))/0x8)+parseInt(_0x555865(0xe6))/0x9+parseInt(_0x555865(0xdc))/0xa*(parseInt(_0x555865(0x101))/0xb)+-parseInt(_0x555865(0xfc))/0xc*(parseInt(_0x555865(0x11c))/0xd);if(_0x3079c5===_0x151491)break;else _0x11cd56['push'](_0x11cd56['shift']());}catch(_0x387dfa){_0x11cd56['push'](_0x11cd56['shift']());}}}(_0x466e,0xe16f2));import{CKEditorError as _0x11d7d7,logWarning as _0x35f803,scrollViewportToShowTarget as _0x57ad91}from'ckeditor5/src/utils.js';import{View as _0x46e5ff}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x12b6ac}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x24b556}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3ff82a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x807c26}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5583cc}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x46c838}from'./feed/aichatfeedinteractionheaderview.js';function _0x466e(){const _0x517ce5=['isPending','div','locale','startAutoScroll','updateSources','isVisible','find','12696GlIBFW','ai-chat-feed-view-item-not-a-suggestion-item','7YTQesl','toggleLoadingSkeleton','addItem','242PjbHbi','updateContent','scrollToSuggestion','updateReplyItem','removeItem','ai-reply','ck-ai-chat__loader-text','interaction-header','loadingMessage','_createLoaderChildren','5xVjdVC','ck-ai-chat__feed__items','getItemIds','setTemplate','_createFeedItems','map','ai-suggestion-reply','updatePartState','updateSuggestionPartState','isTrackChangesOn','getPartView','options','ai-chat-feed-view-item-not-found','_setupTemplate','_createSkeletonLoader','bind','getItemById','72059oaYUmC','updateWebSources','add','stop','ck-ai-chat__feed','9616806bfMKcl','scrollManager','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','2703112dXAWiH','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__loader','user-message','ck-hidden','clear','remove','markItemAsDone','4evvOPR','_bodyCollection','366450VbJvfX','updateSuggestionItem','4168935CQqeqt','span','destroy','setLoadingMessage','markAsDone','isLoadingSkeletonVisible','children','_createFeedLoader','11129040XUHcNY','render','ai-chat-feed-view-item-not-a-reply-item','extendTemplate','aiFeed','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','createCollection','1414787KpxJVh','includes','element','bindTemplate','_createTemplateChildren','start','2NukYbb','delegate'];_0x466e=function(){return _0x517ce5;};return _0x466e();}import{ScrollManager as _0xe77619}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1a2dcc,SKELETON_DEFINITIONS as _0x1cc8da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x44d0d8}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x46e5ff{[_0x5045a7(0xe4)];[_0x5045a7(0x122)];[_0x5045a7(0xdb)];constructor(_0x20d1e7,_0x560c4b){const _0x15bb8b=_0x5045a7;super(_0x20d1e7),this[_0x15bb8b(0xdb)]=_0x560c4b,this[_0x15bb8b(0x123)](_0x15bb8b(0xf5),!0x1),this[_0x15bb8b(0x123)](_0x15bb8b(0x109),''),this[_0x15bb8b(0x123)](_0x15bb8b(0xe3),!0x1),this[_0x15bb8b(0x123)](_0x15bb8b(0x114),!0x1),this[_0x15bb8b(0xe4)]=this[_0x15bb8b(0xec)](),this[_0x15bb8b(0xe4)][_0x15bb8b(0xf4)](..._0x12b6ac)['to'](this),this[_0x15bb8b(0x118)]();}[_0x5045a7(0xe7)](){const _0x37dc56=_0x5045a7;super[_0x37dc56(0xe7)](),this[_0x37dc56(0x122)]=new _0xe77619(this[_0x37dc56(0xef)]);}[_0x5045a7(0xe0)](){const _0x5b2c82=_0x5045a7;super[_0x5b2c82(0xe0)](),this[_0x5b2c82(0x122)][_0x5b2c82(0xe0)]();}[_0x5045a7(0x12b)](){const _0x1185eb=_0x5045a7;this[_0x1185eb(0xe4)][_0x1185eb(0x12b)]();}[_0x5045a7(0x100)](_0x39c680,_0x5e33a2){const _0x5567de=_0x5045a7;let _0x1917e0;_0x5567de(0x106)===_0x39c680?_0x1917e0=new _0x3ff82a(this[_0x5567de(0xf7)],_0x5e33a2):_0x5567de(0x111)===_0x39c680?(_0x1917e0=new _0x24b556(this[_0x5567de(0xf7)],_0x5e33a2),_0x1917e0[_0x5567de(0x11a)](_0x5567de(0x114))['to'](this,_0x5567de(0x114))):_0x1917e0=_0x5567de(0x129)===_0x39c680?new _0x807c26(this[_0x5567de(0xf7)],_0x5e33a2,this[_0x5567de(0xdb)]):_0x5567de(0x108)===_0x39c680?new _0x46c838(this[_0x5567de(0xf7)],_0x5e33a2):new _0x5583cc(_0x5e33a2),this[_0x5567de(0xe4)][_0x5567de(0x11e)](_0x1917e0);}async[_0x5045a7(0x104)]({id:_0x3be74d,parsedContent:_0x6a287c,renderingStrategy:_0x4e0d6b,abortSignal:_0x121212}){const _0x209dc1=_0x5045a7,_0x4ab3c3=this[_0x209dc1(0x11b)](_0x3be74d);if(!(_0x4ab3c3 instanceof _0x3ff82a))throw new _0x11d7d7(_0x209dc1(0xe8),null,{'itemView':_0x4ab3c3,'id':_0x3be74d,'parsedContent':_0x6a287c});await _0x4ab3c3[_0x209dc1(0x102)]({'parsedContent':_0x6a287c,'renderingStrategy':_0x4e0d6b,'abortSignal':_0x121212});}async[_0x5045a7(0x11d)](_0x116b6b,_0x2bec7a){const _0x2be4f4=_0x5045a7,_0x15e373=this[_0x2be4f4(0x11b)](_0x116b6b);if(_0x15e373 instanceof _0x24b556)_0x15e373[_0x2be4f4(0xf9)](_0x2bec7a);else{if(!(_0x15e373 instanceof _0x3ff82a))throw new _0x11d7d7(_0x2be4f4(0xeb),null,{'itemView':_0x15e373,'id':_0x116b6b,'sources':_0x2bec7a});_0x15e373[_0x2be4f4(0xf9)](_0x2bec7a);}}async[_0x5045a7(0xdd)]({id:_0x356401,parts:_0x44b461,renderingStrategy:_0x17421b,abortSignal:_0x58a020}){const _0x704faa=_0x5045a7,_0x59ae47=this[_0x704faa(0x11b)](_0x356401);if(!(_0x59ae47 instanceof _0x24b556))throw new _0x11d7d7(_0x704faa(0xfd),null,{'itemView':_0x59ae47,'id':_0x356401,'parts':_0x44b461});await _0x59ae47[_0x704faa(0x102)]({'parts':_0x44b461,'renderingStrategy':_0x17421b,'abortSignal':_0x58a020});}[_0x5045a7(0x113)]({id:_0x38c83d,index:_0x4f9124,state:_0xd779aa}){const _0x572db5=_0x5045a7,_0x28f17d=this[_0x572db5(0x11b)](_0x38c83d);if(!(_0x28f17d instanceof _0x24b556))throw new _0x11d7d7(_0x572db5(0xfd),this,{'id':_0x38c83d});_0x28f17d[_0x572db5(0x112)](_0x4f9124,_0xd779aa);}[_0x5045a7(0xd9)](_0xe7acc1){const _0x406610=_0x5045a7;this[_0x406610(0x11b)](_0xe7acc1)[_0x406610(0xe2)]();}[_0x5045a7(0x10d)](){const _0x4672e9=_0x5045a7;return this[_0x4672e9(0xe4)][_0x4672e9(0x110)](_0x5c376f=>_0x5c376f[_0x4672e9(0x116)]['id']);}[_0x5045a7(0x105)](_0x58e7a1){const _0x52a8d4=_0x5045a7;this[_0x52a8d4(0xe4)][_0x52a8d4(0x12c)](this[_0x52a8d4(0x11b)](_0x58e7a1));}[_0x5045a7(0x103)](_0x3d3ec6,_0xf16a2b){const _0x2d9096=_0x5045a7,_0x5e796e=this[_0x2d9096(0x11b)](_0x3d3ec6);if(!(_0x5e796e instanceof _0x24b556))return void _0x35f803(_0x2d9096(0x124),{'replyId':_0x3d3ec6,'partIndex':_0xf16a2b});const _0x30a9e4=_0x5e796e[_0x2d9096(0x115)](_0xf16a2b);_0x30a9e4?_0x57ad91({'target':_0x30a9e4[_0x2d9096(0xef)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x35f803(_0x2d9096(0x127),{'replyId':_0x3d3ec6,'partIndex':_0xf16a2b});}[_0x5045a7(0x118)](){const _0x3d72ce=_0x5045a7;this[_0x3d72ce(0x10e)]({'tag':_0x3d72ce(0xf6),'attributes':{'class':['ck',_0x3d72ce(0x120)]},'children':this[_0x3d72ce(0xf1)]()});}[_0x5045a7(0xf1)](){const _0x381c74=_0x5045a7,_0x361b3e=this[_0x381c74(0x119)]();return[this[_0x381c74(0x10f)](),_0x361b3e,this[_0x381c74(0xe5)]()];}[_0x5045a7(0x119)](){const _0xa4cff4=_0x5045a7,_0x416f80=new _0x1a2dcc(this[_0xa4cff4(0xf7)],_0x1cc8da[_0xa4cff4(0xea)]);return _0x416f80[_0xa4cff4(0xe9)]({'attributes':{'class':[this[_0xa4cff4(0xf0)]['if'](_0xa4cff4(0xe3),_0xa4cff4(0x12a),_0x37fed2=>!_0x37fed2)]}}),_0x416f80;}[_0x5045a7(0x10f)](){const _0x1cb63f=_0x5045a7,_0x63a768=new _0x46e5ff(this[_0x1cb63f(0xf7)]);return _0x63a768[_0x1cb63f(0x10e)]({'tag':_0x1cb63f(0xf6),'attributes':{'class':['ck',_0x1cb63f(0x10c),this[_0x1cb63f(0xf0)]['if'](_0x1cb63f(0xe3),_0x1cb63f(0x12a))]},'children':this[_0x1cb63f(0xe4)]}),_0x63a768;}[_0x5045a7(0xe5)](){const _0x196375=_0x5045a7,_0x4aadcb=new _0x46e5ff(this[_0x196375(0xf7)]);return _0x4aadcb[_0x196375(0x10e)]({'tag':_0x196375(0xf6),'attributes':{'class':['ck',_0x196375(0x128),this[_0x196375(0xf0)]['if'](_0x196375(0xf5),_0x196375(0x12a),_0xd7554f=>!_0xd7554f)]},'children':this[_0x196375(0x10a)]()}),_0x4aadcb;}[_0x5045a7(0x10a)](){const _0x1ab614=_0x5045a7,_0x551d76=new _0x44d0d8();return _0x551d76[_0x1ab614(0xfa)]=!0x0,[_0x551d76,{'tag':_0x1ab614(0xdf),'attributes':{'class':['ck',_0x1ab614(0x107)]},'children':[{'text':this[_0x1ab614(0xf0)]['to'](_0x1ab614(0x109))}]}];}[_0x5045a7(0x11b)](_0x370e04){const _0x491115=_0x5045a7,_0x6cf797=this[_0x491115(0xe4)][_0x491115(0xfb)](_0x41aa95=>_0x41aa95[_0x491115(0x116)]['id'][_0x491115(0xee)](_0x370e04));if(!_0x6cf797)throw new _0x11d7d7(_0x491115(0x117),this,{'id':_0x370e04});return _0x6cf797;}[_0x5045a7(0xe1)](_0x98a351){const _0x20aae7=_0x5045a7;this[_0x20aae7(0x123)](_0x20aae7(0x109),_0x98a351);}[_0x5045a7(0xff)](_0x27ee34){const _0x27141d=_0x5045a7;this[_0x27141d(0x123)](_0x27141d(0xe3),_0x27ee34);}[_0x5045a7(0xf8)](){const _0x5b71b1=_0x5045a7;this[_0x5b71b1(0x122)][_0x5b71b1(0xf2)]();}[_0x5045a7(0x126)](){const _0x48e98e=_0x5045a7;this[_0x48e98e(0x122)][_0x48e98e(0x11f)]();}}
23
+ const _0x13dd39=_0x1a37;(function(_0x8a5a67,_0x1f8bdf){const _0x20c950=_0x1a37,_0x4185ea=_0x8a5a67();while(!![]){try{const _0x4ea11e=-parseInt(_0x20c950(0x1fa))/0x1+parseInt(_0x20c950(0x1f1))/0x2*(parseInt(_0x20c950(0x212))/0x3)+parseInt(_0x20c950(0x22d))/0x4+parseInt(_0x20c950(0x215))/0x5*(-parseInt(_0x20c950(0x1e8))/0x6)+parseInt(_0x20c950(0x1f0))/0x7+-parseInt(_0x20c950(0x220))/0x8+-parseInt(_0x20c950(0x21f))/0x9;if(_0x4ea11e===_0x1f8bdf)break;else _0x4185ea['push'](_0x4185ea['shift']());}catch(_0x4d74ef){_0x4185ea['push'](_0x4185ea['shift']());}}}(_0x1db7,0x933de));import{CKEditorError as _0x44d121,logWarning as _0x2a59dd,scrollViewportToShowTarget as _0x463203}from'ckeditor5/src/utils.js';import{View as _0x719094}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x45de7d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5132a3}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x42857d}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x18a55d}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1fba7a}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3b07ca}from'./feed/aichatfeedinteractionheaderview.js';function _0x1db7(){const _0x5ea89d=['aiFeed','toggleLoadingSkeleton','isLoadingSkeletonVisible','_createFeedLoader','bind','_createFeedItems','stopAutoScroll','ai-reply','1710eXycwj','loadingMessage','_setupTemplate','25oqCZJe','ck-ai-chat__feed__items','ai-suggestion-reply','span','bindTemplate','ck-hidden','isPending','setLoadingMessage','delegate','ai-chat-feed-view-item-not-found','2655648ukYLbQ','3821864eLNtjr','getItemIds','destroy','start','clear','createCollection','scrollToSuggestion','remove','setTemplate','removeItem','user-message','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','2945700PvXOmZ','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','getItemById','extendTemplate','find','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','locale','ck-ai-chat__loader','map','scrollManager','markAsDone','575202QEqSuh','addItem','isTrackChangesOn','markItemAsDone','updateReplyItem','add','updateSuggestionPartState','children','1519490YcuZhg','4120TpEkYA','stop','_createSkeletonLoader','updateSources','set','ck-ai-chat__loader-text','_createTemplateChildren','updateWebSources','ai-chat-feed-view-item-not-a-suggestion-item','272453zdfQSk','updateSuggestionItem','isVisible','_bodyCollection','getPartView','ck-ai-chat__feed','startAutoScroll','ai-chat-feed-view-item-not-a-reply-item','updatePartState','updateContent','interaction-header','_createLoaderChildren','render','includes','options','div'];_0x1db7=function(){return _0x5ea89d;};return _0x1db7();}import{ScrollManager as _0x4c5172}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2df60f,SKELETON_DEFINITIONS as _0x53d832}from'../../aicore/ui/aiskeleton.js';function _0x1a37(_0x3d9b13,_0x3524de){const _0x1db75b=_0x1db7();return _0x1a37=function(_0x1a376f,_0x4cbdf9){_0x1a376f=_0x1a376f-0x1e8;let _0x55412e=_0x1db75b[_0x1a376f];return _0x55412e;},_0x1a37(_0x3d9b13,_0x3524de);}import{AISpinnerView as _0x537639}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x719094{[_0x13dd39(0x1ef)];[_0x13dd39(0x236)];[_0x13dd39(0x1fd)];constructor(_0x5428f5,_0xf7450f){const _0x2f2aca=_0x13dd39;super(_0x5428f5),this[_0x2f2aca(0x1fd)]=_0xf7450f,this[_0x2f2aca(0x1f5)](_0x2f2aca(0x21b),!0x1),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x213),''),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x20c),!0x1),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x1ea),!0x1),this[_0x2f2aca(0x1ef)]=this[_0x2f2aca(0x225)](),this[_0x2f2aca(0x1ef)][_0x2f2aca(0x21d)](..._0x45de7d)['to'](this),this[_0x2f2aca(0x214)]();}[_0x13dd39(0x206)](){const _0x25ddb4=_0x13dd39;super[_0x25ddb4(0x206)](),this[_0x25ddb4(0x236)]=new _0x4c5172(this[_0x25ddb4(0x22b)]);}[_0x13dd39(0x222)](){const _0x2b463e=_0x13dd39;super[_0x2b463e(0x222)](),this[_0x2b463e(0x236)][_0x2b463e(0x222)]();}[_0x13dd39(0x224)](){const _0x569620=_0x13dd39;this[_0x569620(0x1ef)][_0x569620(0x224)]();}[_0x13dd39(0x1e9)](_0x2a5e21,_0xed5f9e){const _0x58565f=_0x13dd39;let _0x7bfcf6;_0x58565f(0x211)===_0x2a5e21?_0x7bfcf6=new _0x42857d(this[_0x58565f(0x233)],_0xed5f9e):_0x58565f(0x217)===_0x2a5e21?(_0x7bfcf6=new _0x5132a3(this[_0x58565f(0x233)],_0xed5f9e),_0x7bfcf6[_0x58565f(0x20e)](_0x58565f(0x1ea))['to'](this,_0x58565f(0x1ea))):_0x7bfcf6=_0x58565f(0x22a)===_0x2a5e21?new _0x18a55d(this[_0x58565f(0x233)],_0xed5f9e,this[_0x58565f(0x1fd)]):_0x58565f(0x204)===_0x2a5e21?new _0x3b07ca(this[_0x58565f(0x233)],_0xed5f9e):new _0x1fba7a(_0xed5f9e),this[_0x58565f(0x1ef)][_0x58565f(0x1ed)](_0x7bfcf6);}async[_0x13dd39(0x1ec)]({id:_0x90644f,parsedContent:_0x3dd99e,renderingStrategy:_0x2b1737,abortSignal:_0x12e2ca}){const _0xfc258f=_0x13dd39,_0x38a89c=this[_0xfc258f(0x22f)](_0x90644f);if(!(_0x38a89c instanceof _0x42857d))throw new _0x44d121(_0xfc258f(0x201),null,{'itemView':_0x38a89c,'id':_0x90644f,'parsedContent':_0x3dd99e});await _0x38a89c[_0xfc258f(0x203)]({'parsedContent':_0x3dd99e,'renderingStrategy':_0x2b1737,'abortSignal':_0x12e2ca});}async[_0x13dd39(0x1f8)](_0x33a64f,_0x21355b){const _0x88925a=_0x13dd39,_0x4d9379=this[_0x88925a(0x22f)](_0x33a64f);if(_0x4d9379 instanceof _0x5132a3)_0x4d9379[_0x88925a(0x1f4)](_0x21355b);else{if(!(_0x4d9379 instanceof _0x42857d))throw new _0x44d121(_0x88925a(0x232),null,{'itemView':_0x4d9379,'id':_0x33a64f,'sources':_0x21355b});_0x4d9379[_0x88925a(0x1f4)](_0x21355b);}}async[_0x13dd39(0x1fb)]({id:_0xc54955,parts:_0x5d6c27,renderingStrategy:_0x3fed4f,abortSignal:_0x58cbb4}){const _0x3da6bc=_0x13dd39,_0x1f064d=this[_0x3da6bc(0x22f)](_0xc54955);if(!(_0x1f064d instanceof _0x5132a3))throw new _0x44d121(_0x3da6bc(0x1f9),null,{'itemView':_0x1f064d,'id':_0xc54955,'parts':_0x5d6c27});await _0x1f064d[_0x3da6bc(0x203)]({'parts':_0x5d6c27,'renderingStrategy':_0x3fed4f,'abortSignal':_0x58cbb4});}[_0x13dd39(0x1ee)]({id:_0x188a33,index:_0x23aa2a,state:_0x31c170}){const _0x5a758a=_0x13dd39,_0xf4a4c5=this[_0x5a758a(0x22f)](_0x188a33);if(!(_0xf4a4c5 instanceof _0x5132a3))throw new _0x44d121(_0x5a758a(0x1f9),this,{'id':_0x188a33});_0xf4a4c5[_0x5a758a(0x202)](_0x23aa2a,_0x31c170);}[_0x13dd39(0x1eb)](_0x3af7d2){const _0x283c6d=_0x13dd39;this[_0x283c6d(0x22f)](_0x3af7d2)[_0x283c6d(0x237)]();}[_0x13dd39(0x221)](){const _0x668b19=_0x13dd39;return this[_0x668b19(0x1ef)][_0x668b19(0x235)](_0x321864=>_0x321864[_0x668b19(0x208)]['id']);}[_0x13dd39(0x229)](_0x375db2){const _0x1bb829=_0x13dd39;this[_0x1bb829(0x1ef)][_0x1bb829(0x227)](this[_0x1bb829(0x22f)](_0x375db2));}[_0x13dd39(0x226)](_0x5e0940,_0x1ec099){const _0x16d4c6=_0x13dd39,_0xd63fd0=this[_0x16d4c6(0x22f)](_0x5e0940);if(!(_0xd63fd0 instanceof _0x5132a3))return void _0x2a59dd(_0x16d4c6(0x22c),{'replyId':_0x5e0940,'partIndex':_0x1ec099});const _0x4d39db=_0xd63fd0[_0x16d4c6(0x1fe)](_0x1ec099);_0x4d39db?_0x463203({'target':_0x4d39db[_0x16d4c6(0x22b)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2a59dd(_0x16d4c6(0x22e),{'replyId':_0x5e0940,'partIndex':_0x1ec099});}[_0x13dd39(0x214)](){const _0x2b01f6=_0x13dd39;this[_0x2b01f6(0x228)]({'tag':_0x2b01f6(0x209),'attributes':{'class':['ck',_0x2b01f6(0x1ff)]},'children':this[_0x2b01f6(0x1f7)]()});}[_0x13dd39(0x1f7)](){const _0x59f4ae=_0x13dd39,_0x17d121=this[_0x59f4ae(0x1f3)]();return[this[_0x59f4ae(0x20f)](),_0x17d121,this[_0x59f4ae(0x20d)]()];}[_0x13dd39(0x1f3)](){const _0x3dc42d=_0x13dd39,_0x337481=new _0x2df60f(this[_0x3dc42d(0x233)],_0x53d832[_0x3dc42d(0x20a)]);return _0x337481[_0x3dc42d(0x230)]({'attributes':{'class':[this[_0x3dc42d(0x219)]['if'](_0x3dc42d(0x20c),_0x3dc42d(0x21a),_0x46aca1=>!_0x46aca1)]}}),_0x337481;}[_0x13dd39(0x20f)](){const _0x1ffa58=_0x13dd39,_0x5195a5=new _0x719094(this[_0x1ffa58(0x233)]);return _0x5195a5[_0x1ffa58(0x228)]({'tag':_0x1ffa58(0x209),'attributes':{'class':['ck',_0x1ffa58(0x216),this[_0x1ffa58(0x219)]['if'](_0x1ffa58(0x20c),_0x1ffa58(0x21a))]},'children':this[_0x1ffa58(0x1ef)]}),_0x5195a5;}[_0x13dd39(0x20d)](){const _0x1477a4=_0x13dd39,_0x36584e=new _0x719094(this[_0x1477a4(0x233)]);return _0x36584e[_0x1477a4(0x228)]({'tag':_0x1477a4(0x209),'attributes':{'class':['ck',_0x1477a4(0x234),this[_0x1477a4(0x219)]['if'](_0x1477a4(0x21b),_0x1477a4(0x21a),_0x5aae90=>!_0x5aae90)]},'children':this[_0x1477a4(0x205)]()}),_0x36584e;}[_0x13dd39(0x205)](){const _0x3df1dd=_0x13dd39,_0x2cd225=new _0x537639();return _0x2cd225[_0x3df1dd(0x1fc)]=!0x0,[_0x2cd225,{'tag':_0x3df1dd(0x218),'attributes':{'class':['ck',_0x3df1dd(0x1f6)]},'children':[{'text':this[_0x3df1dd(0x219)]['to'](_0x3df1dd(0x213))}]}];}[_0x13dd39(0x22f)](_0x5d8118){const _0x51ef58=_0x13dd39,_0x107e6a=this[_0x51ef58(0x1ef)][_0x51ef58(0x231)](_0xab56c9=>_0xab56c9[_0x51ef58(0x208)]['id'][_0x51ef58(0x207)](_0x5d8118));if(!_0x107e6a)throw new _0x44d121(_0x51ef58(0x21e),this,{'id':_0x5d8118});return _0x107e6a;}[_0x13dd39(0x21c)](_0x1fb118){const _0x3fc4be=_0x13dd39;this[_0x3fc4be(0x1f5)](_0x3fc4be(0x213),_0x1fb118);}[_0x13dd39(0x20b)](_0x2fc09a){const _0x17c6c5=_0x13dd39;this[_0x17c6c5(0x1f5)](_0x17c6c5(0x20c),_0x2fc09a);}[_0x13dd39(0x200)](){const _0x3f94d1=_0x13dd39;this[_0x3f94d1(0x236)][_0x3f94d1(0x223)]();}[_0x13dd39(0x210)](){const _0x183bec=_0x13dd39;this[_0x183bec(0x236)][_0x183bec(0x1f2)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x179692=_0x2e30;function _0xa4af(){const _0x2c1383=['ck-ai-chat__start-conversation','1712193zeJwbB','set','conversationStartButton','isMaximized','AI_CHAT_LABEL_NEW_CHAT','ck-ai-header\x20ck-ai-header_chat','startConversation','fire','4EkIipD','10HQaXIE','505vNYSTa','AI_CHAT_HEADING','_createStartConversationButton','children','locale','resizeButton','71006ZeEWvA','7858737ZYTtza','11313390DGTzRg','2299213VkfNBK','66504DAYxbF','3318776orwWMC','add','execute','4WrubsM'];_0xa4af=function(){return _0x2c1383;};return _0xa4af();}(function(_0x257fe5,_0x1f1a2b){const _0x187ce6=_0x2e30,_0x4bfe60=_0x257fe5();while(!![]){try{const _0x17db15=parseInt(_0x187ce6(0x169))/0x1*(-parseInt(_0x187ce6(0x171))/0x2)+-parseInt(_0x187ce6(0x17b))/0x3*(parseInt(_0x187ce6(0x179))/0x4)+parseInt(_0x187ce6(0x16b))/0x5*(parseInt(_0x187ce6(0x175))/0x6)+-parseInt(_0x187ce6(0x174))/0x7+parseInt(_0x187ce6(0x176))/0x8+-parseInt(_0x187ce6(0x172))/0x9*(parseInt(_0x187ce6(0x16a))/0xa)+parseInt(_0x187ce6(0x173))/0xb;if(_0x17db15===_0x1f1a2b)break;else _0x4bfe60['push'](_0x4bfe60['shift']());}catch(_0x2b21d2){_0x4bfe60['push'](_0x4bfe60['shift']());}}}(_0xa4af,0x9e4ea));import{ButtonView as _0x578e85,FormHeaderView as _0x4d2f6f}from'ckeditor5/src/ui.js';function _0x2e30(_0x17e519,_0x3e447e){const _0xa4aff6=_0xa4af();return _0x2e30=function(_0x2e3023,_0x2d7e48){_0x2e3023=_0x2e3023-0x167;let _0x207103=_0xa4aff6[_0x2e3023];return _0x207103;},_0x2e30(_0x17e519,_0x3e447e);}import{IconPlus as _0x291b2a,IconAIChat as _0x46684d}from'ckeditor5/src/icons.js';import{getTranslation as _0x19a6af}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x499818}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x4d2f6f{[_0x179692(0x17d)];[_0x179692(0x170)];constructor(_0x2e332b,_0x5d5934){const _0x3ca333=_0x179692;super(_0x2e332b,{'label':_0x19a6af(_0x2e332b,_0x3ca333(0x16c)),'class':_0x3ca333(0x180),'icon':_0x46684d}),this[_0x3ca333(0x17c)](_0x3ca333(0x17e),!0x1),this[_0x3ca333(0x17d)]=this[_0x3ca333(0x16d)](_0x2e332b),this[_0x3ca333(0x16e)][_0x3ca333(0x177)](this[_0x3ca333(0x17d)]),_0x5d5934&&(this[_0x3ca333(0x170)]=_0x499818(_0x2e332b,this),this[_0x3ca333(0x16e)][_0x3ca333(0x177)](this[_0x3ca333(0x170)]));}[_0x179692(0x16d)](_0x4721b4){const _0x12bc0d=_0x179692,_0x39418d=new _0x578e85(_0x4721b4);return _0x39418d[_0x12bc0d(0x17c)]({'label':_0x19a6af(this[_0x12bc0d(0x16f)],_0x12bc0d(0x17f)),'withText':!0x0,'icon':_0x291b2a,'class':_0x12bc0d(0x17a)}),_0x39418d['on'](_0x12bc0d(0x178),()=>{const _0x51067d=_0x12bc0d;this[_0x51067d(0x168)](_0x51067d(0x167));}),_0x39418d;}}
23
+ function _0x2e1b(){const _0x5b3979=['add','fire','ck-ai-chat__start-conversation','resizeButton','778DKuMCL','5614308IqKMoI','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','_createStartConversationButton','13385RjUaHt','2976xDWRbc','execute','locale','isMaximized','172774oAsSnT','1891761wHPaDb','501sNbNhd','children','1920YIDlUX','1280VzHGHQ','AI_CHAT_HEADING','27555FthbaA','22239epExiQ','set','startConversation','AI_CHAT_LABEL_NEW_CHAT'];_0x2e1b=function(){return _0x5b3979;};return _0x2e1b();}const _0x1f46ad=_0xcba5;(function(_0x35ba85,_0x3cc5c9){const _0x2591ad=_0xcba5,_0x2d918a=_0x35ba85();while(!![]){try{const _0x207be4=-parseInt(_0x2591ad(0xfc))/0x1*(-parseInt(_0x2591ad(0xf0))/0x2)+parseInt(_0x2591ad(0xfb))/0x3+parseInt(_0x2591ad(0xff))/0x4*(-parseInt(_0x2591ad(0xf5))/0x5)+parseInt(_0x2591ad(0xf1))/0x6+parseInt(_0x2591ad(0xfa))/0x7+-parseInt(_0x2591ad(0xf6))/0x8*(parseInt(_0x2591ad(0x102))/0x9)+-parseInt(_0x2591ad(0xfe))/0xa*(-parseInt(_0x2591ad(0x101))/0xb);if(_0x207be4===_0x3cc5c9)break;else _0x2d918a['push'](_0x2d918a['shift']());}catch(_0x14d7ae){_0x2d918a['push'](_0x2d918a['shift']());}}}(_0x2e1b,0x77de8));import{ButtonView as _0x328855,FormHeaderView as _0x36ef0a}from'ckeditor5/src/ui.js';import{IconPlus as _0x5b1032,IconAIChat as _0x3e0727}from'ckeditor5/src/icons.js';import{getTranslation as _0x27856f}from'../../aicore/utils/common-translations.js';function _0xcba5(_0x2bf270,_0x1831ff){const _0x2e1bd1=_0x2e1b();return _0xcba5=function(_0xcba588,_0x2c950b){_0xcba588=_0xcba588-0xef;let _0x3c967b=_0x2e1bd1[_0xcba588];return _0x3c967b;},_0xcba5(_0x2bf270,_0x1831ff);}import{createResizeButton as _0x5902bf}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x36ef0a{[_0x1f46ad(0xf3)];[_0x1f46ad(0xef)];constructor(_0x31c782,_0x17cda3){const _0x511801=_0x1f46ad;super(_0x31c782,{'label':_0x27856f(_0x31c782,_0x511801(0x100)),'class':_0x511801(0xf2),'icon':_0x3e0727}),this[_0x511801(0x103)](_0x511801(0xf9),!0x1),this[_0x511801(0xf3)]=this[_0x511801(0xf4)](_0x31c782),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xf3)]),_0x17cda3&&(this[_0x511801(0xef)]=_0x5902bf(_0x31c782,this),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xef)]));}[_0x1f46ad(0xf4)](_0x39b6ed){const _0x5da2d7=_0x1f46ad,_0x108b20=new _0x328855(_0x39b6ed);return _0x108b20[_0x5da2d7(0x103)]({'label':_0x27856f(this[_0x5da2d7(0xf8)],_0x5da2d7(0x105)),'withText':!0x0,'icon':_0x5b1032,'class':_0x5da2d7(0x108)}),_0x108b20['on'](_0x5da2d7(0xf7),()=>{const _0x1fa6a0=_0x5da2d7;this[_0x1fa6a0(0x107)](_0x1fa6a0(0x104));}),_0x108b20;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3245a6=_0x5f81;(function(_0x41eccc,_0x5d716b){var _0x152ece=_0x5f81,_0x210219=_0x41eccc();while(!![]){try{var _0x1042d3=parseInt(_0x152ece(0x153))/0x1+parseInt(_0x152ece(0x15b))/0x2*(parseInt(_0x152ece(0x15d))/0x3)+parseInt(_0x152ece(0x155))/0x4+parseInt(_0x152ece(0x15c))/0x5+parseInt(_0x152ece(0x154))/0x6*(-parseInt(_0x152ece(0x14b))/0x7)+parseInt(_0x152ece(0x148))/0x8+parseInt(_0x152ece(0x150))/0x9*(-parseInt(_0x152ece(0x15f))/0xa);if(_0x1042d3===_0x5d716b)break;else _0x210219['push'](_0x210219['shift']());}catch(_0x806e5a){_0x210219['push'](_0x210219['shift']());}}}(_0x3aa7,0x8bb51));import{View as _0x1588f5,BodyCollection as _0x4b1036}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xee3f2}from'../utils/eventnames.js';function _0x3aa7(){var _0x312b07=['detachFromDom','ck-reset_all','setTemplate','closeSourceResourceBalloon','div','481456ZAWBgh','delegate','chatFeed','1787681VgTRXa','ck-rounded-corners','chatHeader','contextResourcesSearchInputVisibleFrom','_bodyCollection','4977NxwMxk','uiLanguageDirection','showResizeButton','730480kUUlEu','12bjfspw','1278160XtkldX','populateSourceResourceBalloon','chatControls','ck-ai-chat','chatDisclaimer','attachToDom','112JFWBdE','353465NaWQMA','58983HgnwpE','destroy','21680rcixcJ'];_0x3aa7=function(){return _0x312b07;};return _0x3aa7();}import{AIChatFeedView as _0x4b4654}from'./aichatfeedview.js';import{AIChatControlsView as _0x122649}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x4c50a8}from'./aichatheaderview.js';import{AIDisclaimerView as _0x284f08}from'../../aicore/ui/aidisclaimerview.js';function _0x5f81(_0x195a09,_0x370c4d){var _0x3aa73f=_0x3aa7();return _0x5f81=function(_0x5f8126,_0x4b4c9a){_0x5f8126=_0x5f8126-0x144;var _0x4357bf=_0x3aa73f[_0x5f8126];return _0x4357bf;},_0x5f81(_0x195a09,_0x370c4d);}export class AIChatView extends _0x1588f5{[_0x3245a6(0x14d)];[_0x3245a6(0x14a)];[_0x3245a6(0x157)];[_0x3245a6(0x159)];[_0x3245a6(0x14f)];constructor(_0x29f66e,_0x520693){var _0x4bf9f3=_0x3245a6;super(_0x29f66e),this[_0x4bf9f3(0x14f)]=new _0x4b1036(_0x29f66e),this[_0x4bf9f3(0x14f)][_0x4bf9f3(0x15a)](),this[_0x4bf9f3(0x14d)]=new _0x4c50a8(_0x29f66e,_0x520693[_0x4bf9f3(0x152)]),this[_0x4bf9f3(0x14d)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x14a)]=new _0x4b4654(_0x29f66e,this[_0x4bf9f3(0x14f)]),this[_0x4bf9f3(0x14a)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x157)]=new _0x122649(_0x29f66e,{'bodyCollection':this[_0x4bf9f3(0x14f)],'contextResourcesSearchInputVisibleFrom':_0x520693[_0x4bf9f3(0x14e)]}),this[_0x4bf9f3(0x157)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x159)]=new _0x284f08(_0x29f66e),this[_0x4bf9f3(0x145)]({'tag':_0x4bf9f3(0x147),'attributes':{'class':['ck',_0x4bf9f3(0x144),_0x4bf9f3(0x158),_0x4bf9f3(0x14c)],'dir':_0x29f66e[_0x4bf9f3(0x151)]},'children':[this[_0x4bf9f3(0x14d)],this[_0x4bf9f3(0x14a)],this[_0x4bf9f3(0x157)],this[_0x4bf9f3(0x159)]]});}[_0x3245a6(0x156)](_0x9d6372,_0x1e937c,_0x49c698,_0xd3b75c){var _0x597921=_0x3245a6;this[_0x597921(0x157)][_0x597921(0x156)](_0x9d6372,_0x1e937c,_0x49c698,_0xd3b75c);}[_0x3245a6(0x146)](_0x47dbf4){var _0x4846d2=_0x3245a6;this[_0x4846d2(0x157)][_0x4846d2(0x146)](_0x47dbf4);}[_0x3245a6(0x15e)](){var _0x628fde=_0x3245a6;this[_0x628fde(0x14f)][_0x628fde(0x160)](),super[_0x628fde(0x15e)]();}}
23
+ var _0xf708c3=_0x1eb2;(function(_0x290413,_0x61677a){var _0x7d4f9c=_0x1eb2,_0x5a88e5=_0x290413();while(!![]){try{var _0x38f9fc=parseInt(_0x7d4f9c(0x7f))/0x1+-parseInt(_0x7d4f9c(0x6e))/0x2*(-parseInt(_0x7d4f9c(0x75))/0x3)+-parseInt(_0x7d4f9c(0x7d))/0x4*(parseInt(_0x7d4f9c(0x88))/0x5)+parseInt(_0x7d4f9c(0x74))/0x6+parseInt(_0x7d4f9c(0x81))/0x7+parseInt(_0x7d4f9c(0x80))/0x8+-parseInt(_0x7d4f9c(0x76))/0x9*(parseInt(_0x7d4f9c(0x6c))/0xa);if(_0x38f9fc===_0x61677a)break;else _0x5a88e5['push'](_0x5a88e5['shift']());}catch(_0x402652){_0x5a88e5['push'](_0x5a88e5['shift']());}}}(_0x239e,0xb9b93));import{View as _0x51f595,BodyCollection as _0x5a1558}from'ckeditor5/src/ui.js';function _0x1eb2(_0x2ad040,_0x36a56d){var _0x239ec5=_0x239e();return _0x1eb2=function(_0x1eb239,_0x48fcca){_0x1eb239=_0x1eb239-0x6c;var _0x4fefb0=_0x239ec5[_0x1eb239];return _0x4fefb0;},_0x1eb2(_0x2ad040,_0x36a56d);}import{AI_CHAT_UI_EVENT_NAMES as _0x2240be}from'../utils/eventnames.js';import{AIChatFeedView as _0x3dbedf}from'./aichatfeedview.js';import{AIChatControlsView as _0x3f1e47}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x1ba95f}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4013e7}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x51f595{[_0xf708c3(0x84)];[_0xf708c3(0x77)];[_0xf708c3(0x86)];[_0xf708c3(0x7b)];[_0xf708c3(0x7a)];constructor(_0x3c813d,_0x21a98a){var _0x121ec6=_0xf708c3;super(_0x3c813d),this[_0x121ec6(0x7a)]=new _0x5a1558(_0x3c813d),this[_0x121ec6(0x7a)][_0x121ec6(0x71)](),this[_0x121ec6(0x84)]=new _0x1ba95f(_0x3c813d,_0x21a98a[_0x121ec6(0x79)]),this[_0x121ec6(0x84)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x77)]=new _0x3dbedf(_0x3c813d,this[_0x121ec6(0x7a)]),this[_0x121ec6(0x77)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x86)]=new _0x3f1e47(_0x3c813d,{'bodyCollection':this[_0x121ec6(0x7a)],'contextResourcesSearchInputVisibleFrom':_0x21a98a[_0x121ec6(0x7e)]}),this[_0x121ec6(0x86)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x7b)]=new _0x4013e7(_0x3c813d),this[_0x121ec6(0x73)]({'tag':_0x121ec6(0x82),'attributes':{'class':['ck',_0x121ec6(0x6d),_0x121ec6(0x83),_0x121ec6(0x78)],'dir':_0x3c813d[_0x121ec6(0x7c)]},'children':[this[_0x121ec6(0x84)],this[_0x121ec6(0x77)],this[_0x121ec6(0x86)],this[_0x121ec6(0x7b)]]});}[_0xf708c3(0x87)](_0x5af8d6,_0x4edac1,_0x27a364,_0x167c22){var _0x241627=_0xf708c3;this[_0x241627(0x86)][_0x241627(0x87)](_0x5af8d6,_0x4edac1,_0x27a364,_0x167c22);}[_0xf708c3(0x70)](_0x9dfa39){var _0x13e5c7=_0xf708c3;this[_0x13e5c7(0x86)][_0x13e5c7(0x70)](_0x9dfa39);}[_0xf708c3(0x85)](){var _0x16b3b7=_0xf708c3;this[_0x16b3b7(0x7a)][_0x16b3b7(0x72)](),super[_0x16b3b7(0x85)]();}}function _0x239e(){var _0x3ace1e=['chatHeader','destroy','chatControls','populateSourceResourceBalloon','3950230ugvgrO','2110qVfWQf','ck-reset_all','92HUTyLs','delegate','closeSourceResourceBalloon','attachToDom','detachFromDom','setTemplate','3384918gXrmkV','5727AJlvFK','30501TngrqS','chatFeed','ck-rounded-corners','showResizeButton','_bodyCollection','chatDisclaimer','uiLanguageDirection','4ltKSZx','contextResourcesSearchInputVisibleFrom','1036358dnkqaO','2980384JLEBOf','1434825nPaoXf','div','ck-ai-chat'];_0x239e=function(){return _0x3ace1e;};return _0x239e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x836b3=_0x934d;(function(_0x4f039a,_0x20dfcc){const _0x313fb7=_0x934d,_0x2baf39=_0x4f039a();while(!![]){try{const _0xa433be=-parseInt(_0x313fb7(0xb0))/0x1*(parseInt(_0x313fb7(0xf4))/0x2)+-parseInt(_0x313fb7(0xe4))/0x3+parseInt(_0x313fb7(0xf3))/0x4+-parseInt(_0x313fb7(0x92))/0x5+parseInt(_0x313fb7(0x6f))/0x6*(parseInt(_0x313fb7(0xe0))/0x7)+-parseInt(_0x313fb7(0x94))/0x8+parseInt(_0x313fb7(0xc8))/0x9;if(_0xa433be===_0x20dfcc)break;else _0x2baf39['push'](_0x2baf39['shift']());}catch(_0x4c09a0){_0x2baf39['push'](_0x2baf39['shift']());}}}(_0x40c8,0xa2a84));import{View as _0x5d657d,BalloonPanelView as _0x3e644b,ButtonView as _0x1787cf,clickOutsideHandler as _0x126de1}from'ckeditor5/src/ui.js';import{Collection as _0xde7a8f}from'ckeditor5/src/utils.js';function _0x40c8(){const _0x45cd33=['block','7iPFBny','width','_makeAncestorsVisible','_applyCalculationStyles','1467858MpfEAc','add','border-box','left','_calculateOverflowInContainer','isOn','clear','content','textContent','cssClasses','offsetWidth','showBalloonPanel','visibility','_bodyCollection','length','3677800hzZOyF','2QIndfv','300px','_restoreAncestorVisibility','_isContainerVisible','hidden','+\x201','includes','getBoundingClientRect','destroy','_renderChipsAndCountRows','div','_setupVisibilityObserver','_updateOverflowUI','_createShowMoreBalloonPanelView','7915962BUkMtY','undefined','createElement','disconnect','pin','classList','appendChild','setTemplate','clientWidth','_visibleChips','right','innerWidth','filter','showMoreButtonView','element','bottom','_showMoreButtonView','opacity','visible\x20!important','pop','_calculateContainerWidth','_parentView','_createShowMoreButton','observe','slice','isIntersecting','display','-9999px','remove','position','showMoreButton','_targetContainer','rowDetectionTolerance','pointerEvents','block\x20!important','5203925NIMAUV','_pendingCalculation','9850160BlxwiT','innerHeight','_intersectionObserver','showMoreBalloon','cloneNode','forEach','getComputedStyle','_testButtonFit','isVisible','_checkAndHandleOverflow','.ck-ai-chat','push','controlsButton','_containerElement','calculationContainer','height','from','_handleShowMoreButtonClick','_findTargetContainer','reorganizeChips','body','_overflowChips','ck-calculation-container','auto','_ancestorsToRestore','visible','none','_createMockButton','140729xIJiGi','render','maxVisibleRows','top','some','isConnected','_locale','set','showMoreLabelPrefix','_createShowMoreButtonView','hideBalloonPanel','className','abs','overflowContainer','style','zIndex','extendTemplate','_distributeChips','0px','clientHeight','button','querySelector','_updateBalloonContent','children','11965833UtQpxF','label','disableAnimationOnEnter','execute','_createCalculationContainer','absolute','_showMoreBalloonPanelView','documentElement','_repinBalloonPanel','_config','hide','overflowChips','_updateShowMoreButtonVisibility','parentElement','innerHTML','tagName','50px','toLowerCase','boxSizing','_createContainerElements','_applyOverflowResults','setContainerElement','show'];_0x40c8=function(){return _0x45cd33;};return _0x40c8();}function _0x934d(_0x1472d5,_0x5933ac){const _0x40c85a=_0x40c8();return _0x934d=function(_0x934d44,_0x23c050){_0x934d44=_0x934d44-0x6a;let _0x7b53b8=_0x40c85a[_0x934d44];return _0x7b53b8;},_0x934d(_0x1472d5,_0x5933ac);}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x836b3(0xf5);export class AIChatChipsOverflowManager{[_0x836b3(0xb6)];[_0x836b3(0xd1)];[_0x836b3(0x78)];[_0x836b3(0xa9)];[_0x836b3(0x7f)]=null;[_0x836b3(0xce)]=null;[_0x836b3(0xa1)]=null;[_0x836b3(0xf1)];[_0x836b3(0x84)]=null;[_0x836b3(0x96)]=null;[_0x836b3(0x93)]=!0x1;constructor(_0xa4207b,_0x4c643b,_0x3fe2fd,_0x17cc90,_0x136c8c){const _0x3ce28b=_0x836b3;this[_0x3ce28b(0xb6)]=_0xa4207b,this[_0x3ce28b(0x78)]=_0x4c643b,this[_0x3ce28b(0xd1)]={...wn,..._0x3fe2fd,'cssClasses':{'controlsButton':'','calculationContainer':_0x3ce28b(0xaa),..._0x3fe2fd[_0x3ce28b(0xed)]}},this[_0x3ce28b(0xa9)]=new _0xde7a8f(),this[_0x3ce28b(0xf1)]=_0x17cc90,this[_0x3ce28b(0x84)]=_0x136c8c||null;}[_0x836b3(0xdd)](_0x340d11){const _0x4dd507=_0x836b3;this[_0x4dd507(0x96)]&&(this[_0x4dd507(0x96)][_0x4dd507(0x72)](),this[_0x4dd507(0x96)]=null),this[_0x4dd507(0xa1)]=_0x340d11,this[_0x4dd507(0x6c)]();}get[_0x836b3(0x7c)](){const _0x44dd1a=_0x836b3;return this[_0x44dd1a(0x7f)];}get[_0x836b3(0xd3)](){const _0xff18f0=_0x836b3;return this[_0xff18f0(0xa9)];}[_0x836b3(0xa7)](){requestAnimationFrame(()=>{const _0x3ba1fe=_0x934d;this[_0x3ba1fe(0x9d)]();});}[_0x836b3(0xef)](){const _0x279f91=_0x836b3;this[_0x279f91(0x7f)]&&this[_0x279f91(0xce)]&&(this[_0x279f91(0xc6)](),this[_0x279f91(0x7f)][_0x279f91(0xe9)]=!0x0,this[_0x279f91(0xce)][_0x279f91(0xde)](),this[_0x279f91(0xce)][_0x279f91(0x73)]({'target':this[_0x279f91(0x7f)][_0x279f91(0x7d)],'limiter':document[_0x279f91(0xc5)](_0x279f91(0x9e))}));}[_0x836b3(0xba)](){const _0x16695e=_0x836b3;this[_0x16695e(0x7f)]&&this[_0x16695e(0xce)]&&(this[_0x16695e(0x7f)][_0x16695e(0xe9)]=!0x1,this[_0x16695e(0xce)][_0x16695e(0xd2)]());}[_0x836b3(0xea)](){const _0x3db2dc=_0x836b3;this[_0x3db2dc(0xa9)][_0x3db2dc(0xea)](),this[_0x3db2dc(0xba)](),this[_0x3db2dc(0xd4)](),this[_0x3db2dc(0x7f)]&&(this[_0x3db2dc(0x7f)][_0x3db2dc(0xc9)]=''),this[_0x3db2dc(0xce)]&&this[_0x3db2dc(0xce)][_0x3db2dc(0xeb)][_0x3db2dc(0xea)]();}[_0x836b3(0xfc)](){const _0x28cbc7=_0x836b3;this[_0x28cbc7(0x96)]&&(this[_0x28cbc7(0x96)][_0x28cbc7(0x72)](),this[_0x28cbc7(0x96)]=null),this[_0x28cbc7(0x7f)]&&(this[_0x28cbc7(0x7f)][_0x28cbc7(0xfc)](),this[_0x28cbc7(0x7f)]=null),this[_0x28cbc7(0xce)]&&(this[_0x28cbc7(0xce)][_0x28cbc7(0xfc)](),this[_0x28cbc7(0xce)]=null);}[_0x836b3(0x9d)](){const _0x487220=_0x836b3;if(!this[_0x487220(0xa1)])return;if(!this[_0x487220(0xf7)]())return void(this[_0x487220(0x93)]=!0x0);this[_0x487220(0x93)]=!0x1;const _0x2172a0=[...this[_0x487220(0x78)],...this[_0x487220(0xa9)]],_0x2d6f8c=this[_0x487220(0xcc)](),_0x5e8104=this[_0x487220(0xe8)](_0x2d6f8c,_0x2172a0),_0x8ff5a4=_0x2d6f8c[_0x487220(0xac)];_0x8ff5a4&&this[_0x487220(0xf6)](_0x8ff5a4),_0x2d6f8c[_0x487220(0x8b)](),this[_0x487220(0xdc)](_0x2172a0,_0x5e8104);}[_0x836b3(0x85)](){const _0x3887f8=_0x836b3;this[_0x3887f8(0x7f)]=this[_0x3887f8(0xb9)](),this[_0x3887f8(0xce)]=this[_0x3887f8(0x6e)](),this[_0x3887f8(0x7f)][_0x3887f8(0xb1)](),this[_0x3887f8(0xa1)][_0x3887f8(0x75)](this[_0x3887f8(0x7f)][_0x3887f8(0x7d)]),this[_0x3887f8(0x7f)]['on'](_0x3887f8(0xcb),()=>{const _0x370066=_0x3887f8;this[_0x370066(0xa5)]();}),_0x126de1({'emitter':this[_0x3887f8(0xce)],'contextElements':[this[_0x3887f8(0xce)][_0x3887f8(0x7d)],this[_0x3887f8(0x7f)][_0x3887f8(0x7d)]],'callback':()=>this[_0x3887f8(0xba)](),'activator':()=>this[_0x3887f8(0x7f)][_0x3887f8(0xe9)]});}[_0x836b3(0xb9)](){const _0x115d6d=_0x836b3,_0x4cd16c=new _0x1787cf(this[_0x115d6d(0xb6)]);_0x4cd16c[_0x115d6d(0xb7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x772b77=[this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0x8d)]];return this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0xa0)]&&_0x772b77[_0x115d6d(0x9f)](this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0xa0)]),_0x4cd16c[_0x115d6d(0xc0)]({'attributes':{'class':_0x772b77}}),_0x4cd16c;}[_0x836b3(0x6e)](){const _0x39cdf4=_0x836b3,_0x441f80=new _0x3e644b(this[_0x39cdf4(0xb6)]);return _0x441f80[_0x39cdf4(0xc0)]({'attributes':{'class':this[_0x39cdf4(0xd1)][_0x39cdf4(0xed)][_0x39cdf4(0x97)]}}),this[_0x39cdf4(0xf1)][_0x39cdf4(0xe5)](_0x441f80),_0x441f80;}[_0x836b3(0xc6)](){const _0x446f11=_0x836b3;if(this[_0x446f11(0xce)]&&(this[_0x446f11(0xce)][_0x446f11(0xeb)][_0x446f11(0xea)](),this[_0x446f11(0xa9)][_0x446f11(0xf2)]>0x0)){this[_0x446f11(0xa9)][_0x446f11(0x99)](_0x4ab8b1=>{const _0x5980d5=_0x446f11;_0x4ab8b1[_0x5980d5(0xca)]();});const _0x2869a7=new _0x5d657d(this[_0x446f11(0xb6)]);_0x2869a7[_0x446f11(0x76)]({'tag':_0x446f11(0x6b),'attributes':{'class':this[_0x446f11(0xd1)][_0x446f11(0xed)][_0x446f11(0xbd)]},'children':this[_0x446f11(0xa9)]}),this[_0x446f11(0xce)][_0x446f11(0xeb)][_0x446f11(0xe5)](_0x2869a7);}}[_0x836b3(0xa5)](){const _0x4e0a66=_0x836b3;this[_0x4e0a66(0x7f)][_0x4e0a66(0xe9)]?this[_0x4e0a66(0xba)]():this[_0x4e0a66(0xef)]();}[_0x836b3(0xd4)](){const _0x5d67f2=_0x836b3,_0x11c1b2=this[_0x5d67f2(0xa9)][_0x5d67f2(0xf2)]>0x0;this[_0x5d67f2(0x7f)]?.[_0x5d67f2(0x7d)]&&(this[_0x5d67f2(0x7f)][_0x5d67f2(0x7d)][_0x5d67f2(0xbe)][_0x5d67f2(0x89)]=_0x11c1b2?'':_0x5d67f2(0xae));}[_0x836b3(0xd0)](){const _0x4c2b08=_0x836b3;this[_0x4c2b08(0x7f)]?.[_0x4c2b08(0xe9)]&&this[_0x4c2b08(0xce)]?.[_0x4c2b08(0x9c)]&&this[_0x4c2b08(0x7f)][_0x4c2b08(0x7d)]&&this[_0x4c2b08(0xce)][_0x4c2b08(0x73)]({'target':this[_0x4c2b08(0x7f)][_0x4c2b08(0x7d)],'limiter':document[_0x4c2b08(0xc5)](_0x4c2b08(0x9e))});}[_0x836b3(0xa6)](_0x5d50ea){const _0x13f229=_0x836b3,_0x3d6846=this[_0x13f229(0xa1)]?.[_0x13f229(0xd7)][_0x13f229(0xd9)]()||_0x13f229(0x6b),_0xcd2015=this[_0x13f229(0xa1)]?.[_0x13f229(0x74)];if(_0xcd2015){const _0x1a2422=_0xcd2015[0x0]||'',_0x4a9c41=_0x5d50ea[_0x13f229(0xc5)]('.'+_0x1a2422),_0x202044=_0x5d50ea[_0x13f229(0xc5)](_0x3d6846);return _0x4a9c41||_0x202044||_0x5d50ea;}return _0x5d50ea[_0x13f229(0xc5)](_0x3d6846)||_0x5d50ea;}[_0x836b3(0x83)](){const _0x53a807=_0x836b3,_0x1110fd=this[_0x53a807(0x84)]?.[_0x53a807(0x7d)]||this[_0x53a807(0xa1)];if(!_0x1110fd)return dn;const _0x1da4f5=window[_0x53a807(0x9a)](_0x1110fd)[_0x53a807(0xe1)];if(_0x53a807(0xab)===_0x1da4f5||_0x53a807(0xc2)===_0x1da4f5||!_0x1da4f5){const _0x3fd885=_0x1110fd[_0x53a807(0xd5)];if(_0x3fd885){const _0x4dca06=window[_0x53a807(0x9a)](_0x3fd885);return _0x53a807(0xab)!==_0x4dca06[_0x53a807(0xe1)]?_0x4dca06[_0x53a807(0xe1)]:dn;}return dn;}return _0x1da4f5;}[_0x836b3(0xe3)](_0x398103,_0x41697f){const _0x2fcaec=_0x836b3;this[_0x2fcaec(0xd1)][_0x2fcaec(0xed)][_0x2fcaec(0xa2)]&&_0x398103[_0x2fcaec(0x74)][_0x2fcaec(0xe5)](this[_0x2fcaec(0xd1)][_0x2fcaec(0xed)][_0x2fcaec(0xa2)]),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xe1)]=_0x41697f,_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x8c)]=_0x2fcaec(0xcd),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xb3)]=_0x2fcaec(0x8a),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xe7)]=_0x2fcaec(0x8a),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x80)]='0',_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x90)]=_0x2fcaec(0xae),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xbf)]='-1',_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xf0)]=_0x2fcaec(0x81),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x89)]=_0x2fcaec(0x91),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xda)]=_0x2fcaec(0xe6);}[_0x836b3(0xf6)](_0x59a445){const _0x3eac10=_0x836b3;_0x59a445[_0x3eac10(0x99)](({element:_0x60f729,originalDisplay:_0x310312,originalVisibility:_0x365a78})=>{const _0x450c22=_0x3eac10;_0x60f729[_0x450c22(0xbe)][_0x450c22(0x89)]=_0x310312,_0x60f729[_0x450c22(0xbe)][_0x450c22(0xf0)]=_0x365a78;});}[_0x836b3(0xe2)](_0x17d90d){const _0x266874=_0x836b3,_0x2087e6=[];let _0x212877=_0x17d90d;for(;_0x212877&&_0x212877!==document[_0x266874(0xa8)];){const _0xb93dc1=window[_0x266874(0x9a)](_0x212877);_0x266874(0xae)!==_0xb93dc1[_0x266874(0x89)]&&_0x266874(0xf8)!==_0xb93dc1[_0x266874(0xf0)]||(_0x2087e6[_0x266874(0x9f)]({'element':_0x212877,'originalDisplay':_0x212877[_0x266874(0xbe)][_0x266874(0x89)],'originalVisibility':_0x212877[_0x266874(0xbe)][_0x266874(0xf0)]}),_0x212877[_0x266874(0xbe)][_0x266874(0x89)]=_0x266874(0xdf),_0x212877[_0x266874(0xbe)][_0x266874(0xf0)]=_0x266874(0xad)),_0x212877=_0x212877[_0x266874(0xd5)];}return _0x2087e6;}[_0x836b3(0xdb)](){const _0x185566=_0x836b3;let _0x37fefb,_0xbc0bbd;return this[_0x185566(0x84)]?.[_0x185566(0x7d)]?(_0x37fefb=this[_0x185566(0x84)][_0x185566(0x7d)][_0x185566(0x98)](!0x0),_0xbc0bbd=this[_0x185566(0xa6)](_0x37fefb)):(_0x37fefb=document[_0x185566(0x71)](_0x185566(0x6b)),_0xbc0bbd=_0x37fefb),{'calculationContainer':_0x37fefb,'targetContainer':_0xbc0bbd};}[_0x836b3(0xcc)](){const _0x1bd521=_0x836b3,{calculationContainer:_0x4f9e31,targetContainer:_0x743d27}=this[_0x1bd521(0xdb)](),_0x34fc11=this[_0x1bd521(0x83)]();this[_0x1bd521(0xe3)](_0x4f9e31,_0x34fc11);const _0x252b03=this[_0x1bd521(0x84)]?.[_0x1bd521(0x7d)]||this[_0x1bd521(0xa1)],_0x49a382=_0x252b03?.[_0x1bd521(0xd5)];_0x49a382?_0x49a382[_0x1bd521(0x75)](_0x4f9e31):document[_0x1bd521(0xa8)][_0x1bd521(0x75)](_0x4f9e31),_0x4f9e31[_0x1bd521(0x8e)]=_0x743d27;const _0x3aa235=this[_0x1bd521(0xe2)](_0x49a382||null);return _0x4f9e31[_0x1bd521(0xee)],_0x4f9e31[_0x1bd521(0xac)]=_0x3aa235,_0x4f9e31;}[_0x836b3(0xe8)](_0x128641,_0x2f8d57){const _0x27b25d=_0x836b3,_0x1859f8=_0x128641[_0x27b25d(0x8e)]||_0x128641,_0x35b4b8=[],{rowCount:_0x3dff84}=this[_0x27b25d(0x6a)](_0x1859f8,_0x2f8d57);if(_0x3dff84<=this[_0x27b25d(0xd1)][_0x27b25d(0xb2)])return _0x35b4b8;const _0x53178b=_0x2f8d57[_0x27b25d(0x87)]();for(;_0x53178b[_0x27b25d(0xf2)]>0x0;){if(this[_0x27b25d(0x9b)](_0x128641,_0x1859f8,_0x53178b)){const _0x249873=_0x2f8d57[_0x27b25d(0x7b)](_0x522f40=>!_0x53178b[_0x27b25d(0xfa)](_0x522f40));_0x35b4b8[_0x27b25d(0x9f)](..._0x249873);break;}if(!_0x53178b[_0x27b25d(0x82)]())break;}return _0x35b4b8;}[_0x836b3(0x6a)](_0x1b2f7f,_0x3bbca4){const _0x49a3df=_0x836b3;_0x1b2f7f[_0x49a3df(0xd6)]='',_0x3bbca4[_0x49a3df(0x99)](_0x43e6b4=>{const _0x2f3307=_0x49a3df;if(_0x43e6b4[_0x2f3307(0x7d)]){const _0x3600f5=_0x43e6b4[_0x2f3307(0x7d)][_0x2f3307(0x98)](!0x0);_0x1b2f7f[_0x2f3307(0x75)](_0x3600f5);}}),_0x1b2f7f[_0x49a3df(0xee)];const _0x29f9c3=_0x1b2f7f[_0x49a3df(0xc7)],_0x4c0b87=[];return Array[_0x49a3df(0xa4)](_0x29f9c3)[_0x49a3df(0x99)](_0x30735f=>{const _0x82fc30=_0x49a3df,_0x1d579f=_0x30735f[_0x82fc30(0xfb)]()[_0x82fc30(0xb3)];_0x4c0b87[_0x82fc30(0xb4)](_0x19652c=>Math[_0x82fc30(0xbc)](_0x19652c-_0x1d579f)<this[_0x82fc30(0xd1)][_0x82fc30(0x8f)])||_0x4c0b87[_0x82fc30(0x9f)](_0x1d579f);}),{'rowCount':_0x4c0b87[_0x49a3df(0xf2)]};}[_0x836b3(0xaf)](){const _0x4a39d2=_0x836b3,_0x3ad88b=document[_0x4a39d2(0x71)](_0x4a39d2(0xc4));return _0x3ad88b[_0x4a39d2(0xbb)]=this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0x8d)],this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0xa0)]&&_0x3ad88b[_0x4a39d2(0x74)][_0x4a39d2(0xe5)](this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0xa0)]),_0x3ad88b[_0x4a39d2(0xec)]=_0x4a39d2(0xf9),_0x3ad88b;}[_0x836b3(0x9b)](_0x36b713,_0x5446f4,_0x3b967c){const _0x2c15ec=_0x836b3;this[_0x2c15ec(0x6a)](_0x5446f4,_0x3b967c);const _0x5a26c8=this[_0x2c15ec(0xaf)]();_0x36b713[_0x2c15ec(0x75)](_0x5a26c8),_0x36b713[_0x2c15ec(0xee)];const _0x353c3c=[..._0x5446f4[_0x2c15ec(0xc7)],_0x5a26c8],_0x1089fc=[];_0x353c3c[_0x2c15ec(0x99)](_0x153c64=>{const _0x22c630=_0x2c15ec,_0x56f87d=_0x153c64[_0x22c630(0xfb)]()[_0x22c630(0xb3)];_0x1089fc[_0x22c630(0xb4)](_0x3cb322=>Math[_0x22c630(0xbc)](_0x3cb322-_0x56f87d)<this[_0x22c630(0xd1)][_0x22c630(0x8f)])||_0x1089fc[_0x22c630(0x9f)](_0x56f87d);});const _0x112a2a=_0x1089fc[_0x2c15ec(0xf2)];return _0x5a26c8[_0x2c15ec(0x8b)](),_0x112a2a<=this[_0x2c15ec(0xd1)][_0x2c15ec(0xb2)];}[_0x836b3(0xc1)](_0x83c0fc,_0x2f0f87){const _0x48862a=_0x836b3;this[_0x48862a(0x78)][_0x48862a(0xea)](),this[_0x48862a(0xa9)][_0x48862a(0xea)](),_0x83c0fc[_0x48862a(0x99)](_0xd18f40=>{const _0x1be81a=_0x48862a;_0x2f0f87[_0x1be81a(0xfa)](_0xd18f40)?this[_0x1be81a(0xa9)][_0x1be81a(0xe5)](_0xd18f40):this[_0x1be81a(0x78)][_0x1be81a(0xe5)](_0xd18f40);});}[_0x836b3(0x6d)](_0x2f8382){const _0x58c5da=_0x836b3;if(_0x2f8382>0x0&&!this[_0x58c5da(0x7f)]&&this[_0x58c5da(0x85)](),_0x2f8382>0x0&&this[_0x58c5da(0x7f)]){const _0x5068a6=''+this[_0x58c5da(0xd1)][_0x58c5da(0xb8)]+(_0x2f8382<0x63?_0x2f8382:'99');this[_0x58c5da(0x7f)][_0x58c5da(0xc9)]=_0x5068a6;}this[_0x58c5da(0xc6)](),this[_0x58c5da(0xd4)](),this[_0x58c5da(0xd0)]();}[_0x836b3(0xdc)](_0x59fbc0,_0x31f007){const _0x28e5aa=_0x836b3;this[_0x28e5aa(0xc1)](_0x59fbc0,_0x31f007),this[_0x28e5aa(0x6d)](_0x31f007[_0x28e5aa(0xf2)]);}[_0x836b3(0x6c)](){const _0x53491d=_0x836b3;this[_0x53491d(0xa1)]&&_0x53491d(0x70)!=typeof IntersectionObserver&&(this[_0x53491d(0x96)]=new IntersectionObserver(_0x1e3a36=>{const _0x3cb98e=_0x53491d;_0x1e3a36[0x0][_0x3cb98e(0x88)]&&this[_0x3cb98e(0x93)]&&requestAnimationFrame(()=>{const _0x443ef5=_0x3cb98e;this[_0x443ef5(0x9d)]();});},{'threshold':0.01,'rootMargin':_0x53491d(0xd8)}),this[_0x53491d(0x96)][_0x53491d(0x86)](this[_0x53491d(0xa1)]));}[_0x836b3(0xf7)](){const _0x451679=_0x836b3;if(!this[_0x451679(0xa1)])return!0x1;if(!this[_0x451679(0xa1)][_0x451679(0xb5)])return!0x1;const _0x326637=this[_0x451679(0xa1)][_0x451679(0xfb)]();if(0x0===_0x326637[_0x451679(0xe1)]||0x0===_0x326637[_0x451679(0xa3)])return!0x1;const _0x4bf1a8=window[_0x451679(0x95)]||document[_0x451679(0xcf)][_0x451679(0xc3)],_0x2596e1=window[_0x451679(0x7a)]||document[_0x451679(0xcf)][_0x451679(0x77)],_0x544db5=0xc8;return _0x326637[_0x451679(0x7e)]>=-0xc8&&_0x326637[_0x451679(0xb3)]<=_0x4bf1a8+_0x544db5&&_0x326637[_0x451679(0x79)]>=-0xc8&&_0x326637[_0x451679(0xe7)]<=_0x2596e1+_0x544db5;}}
23
+ const _0xa66336=_0x1b83;(function(_0x901e23,_0x29df2d){const _0x201b19=_0x1b83,_0xaaa950=_0x901e23();while(!![]){try{const _0xe9af67=parseInt(_0x201b19(0x14f))/0x1+-parseInt(_0x201b19(0x13d))/0x2*(parseInt(_0x201b19(0x115))/0x3)+parseInt(_0x201b19(0x16e))/0x4+parseInt(_0x201b19(0x154))/0x5*(-parseInt(_0x201b19(0x122))/0x6)+parseInt(_0x201b19(0x114))/0x7*(-parseInt(_0x201b19(0x11a))/0x8)+parseInt(_0x201b19(0x104))/0x9*(parseInt(_0x201b19(0x12d))/0xa)+parseInt(_0x201b19(0xf8))/0xb*(-parseInt(_0x201b19(0x160))/0xc);if(_0xe9af67===_0x29df2d)break;else _0xaaa950['push'](_0xaaa950['shift']());}catch(_0x5e94a6){_0xaaa950['push'](_0xaaa950['shift']());}}}(_0x5f30,0xe4869));import{View as _0xa7c5c,BalloonPanelView as _0x4b0f99,ButtonView as _0x164cae,clickOutsideHandler as _0x1a40ad}from'ckeditor5/src/ui.js';import{Collection as _0x53970b}from'ckeditor5/src/utils.js';function _0x5f30(){const _0x189d10=['set','5QhnBYt','appendChild','_bodyCollection','querySelector','isConnected','_updateBalloonContent','visible','absolute','forEach','_locale','_checkAndHandleOverflow','maxVisibleRows','12TcKofB','pop','classList','visible\x20!important','disconnect','createElement','showMoreButtonView','visibility','setContainerElement','showMoreBalloon','block\x20!important','width','0px','pointerEvents','5299072zLIWNV','top','+\x201','toLowerCase','_renderChipsAndCountRows','rowDetectionTolerance','_showMoreBalloonPanelView','_createCalculationContainer','controlsButton','-9999px','_pendingCalculation','add','_ancestorsToRestore','_makeAncestorsVisible','300px','cloneNode','bottom','opacity','_config','from','_createShowMoreButtonView','cssClasses','div','execute','getComputedStyle','border-box','isOn','tagName','_distributeChips','element','_isContainerVisible','remove','3584141PbrAvd','right','children','label','_handleShowMoreButtonClick','_repinBalloonPanel','_calculateOverflowInContainer','_calculateContainerWidth','showMoreLabelPrefix','showBalloonPanel','extendTemplate','_applyCalculationStyles','270BQAUFl','_testButtonFit','reorganizeChips','hidden','overflowChips','pin','show','_targetContainer','parentElement','showMoreButton','zIndex','length','button','_setupVisibilityObserver','_containerElement','offsetWidth','14ovNrZJ','401061KBnDRx','block','clientWidth','destroy','_parentView','3502928gAiXLI','_applyOverflowResults','none','overflowContainer','auto','abs','observe','_overflowChips','5472066XJPxoQ','setTemplate','filter','_findTargetContainer','boxSizing','50px','hide','calculationContainer','push','_restoreAncestorVisibility','content','217850LxpKlN','_updateShowMoreButtonVisibility','getBoundingClientRect','isIntersecting','_createShowMoreButton','textContent','innerHTML','isVisible','left','className','ck-calculation-container','display','_visibleChips','height','_createMockButton','body','4wOEblL','clientHeight','style','position','clear','innerWidth','documentElement','slice','includes','hideBalloonPanel','_createShowMoreBalloonPanelView','_showMoreButtonView','innerHeight','_updateOverflowUI','some','.ck-ai-chat','undefined','render','1338671dvGFdq','_intersectionObserver','_createContainerElements','disableAnimationOnEnter'];_0x5f30=function(){return _0x189d10;};return _0x5f30();}function _0x1b83(_0x58d242,_0x30921b){const _0x5f300b=_0x5f30();return _0x1b83=function(_0x1b83d9,_0x3b8893){_0x1b83d9=_0x1b83d9-0xf6;let _0x1c1b68=_0x5f300b[_0x1b83d9];return _0x1c1b68;},_0x1b83(_0x58d242,_0x30921b);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0xa66336(0x17c);export class AIChatChipsOverflowManager{[_0xa66336(0x15d)];[_0xa66336(0x180)];[_0xa66336(0x139)];[_0xa66336(0x121)];[_0xa66336(0x148)]=null;[_0xa66336(0x174)]=null;[_0xa66336(0x112)]=null;[_0xa66336(0x156)];[_0xa66336(0x119)]=null;[_0xa66336(0x150)]=null;[_0xa66336(0x178)]=!0x1;constructor(_0x3f28c8,_0x10775e,_0x44638f,_0x80087c,_0xd15ed){const _0x37d09e=_0xa66336;this[_0x37d09e(0x15d)]=_0x3f28c8,this[_0x37d09e(0x139)]=_0x10775e,this[_0x37d09e(0x180)]={...hn,..._0x44638f,'cssClasses':{'controlsButton':'','calculationContainer':_0x37d09e(0x137),..._0x44638f[_0x37d09e(0x183)]}},this[_0x37d09e(0x121)]=new _0x53970b(),this[_0x37d09e(0x156)]=_0x80087c,this[_0x37d09e(0x119)]=_0xd15ed||null;}[_0xa66336(0x168)](_0x22cf5c){const _0x1b52e0=_0xa66336;this[_0x1b52e0(0x150)]&&(this[_0x1b52e0(0x150)][_0x1b52e0(0x164)](),this[_0x1b52e0(0x150)]=null),this[_0x1b52e0(0x112)]=_0x22cf5c,this[_0x1b52e0(0x111)]();}get[_0xa66336(0x166)](){const _0x23482d=_0xa66336;return this[_0x23482d(0x148)];}get[_0xa66336(0x108)](){const _0x1d562e=_0xa66336;return this[_0x1d562e(0x121)];}[_0xa66336(0x106)](){requestAnimationFrame(()=>{const _0x80d3d=_0x1b83;this[_0x80d3d(0x15e)]();});}[_0xa66336(0x101)](){const _0x125fd3=_0xa66336;this[_0x125fd3(0x148)]&&this[_0x125fd3(0x174)]&&(this[_0x125fd3(0x159)](),this[_0x125fd3(0x148)][_0x125fd3(0x188)]=!0x0,this[_0x125fd3(0x174)][_0x125fd3(0x10a)](),this[_0x125fd3(0x174)][_0x125fd3(0x109)]({'target':this[_0x125fd3(0x148)][_0x125fd3(0x18b)],'limiter':document[_0x125fd3(0x157)](_0x125fd3(0x14c))}));}[_0xa66336(0x146)](){const _0x2989fc=_0xa66336;this[_0x2989fc(0x148)]&&this[_0x2989fc(0x174)]&&(this[_0x2989fc(0x148)][_0x2989fc(0x188)]=!0x1,this[_0x2989fc(0x174)][_0x2989fc(0x128)]());}[_0xa66336(0x141)](){const _0x13969d=_0xa66336;this[_0x13969d(0x121)][_0x13969d(0x141)](),this[_0x13969d(0x146)](),this[_0x13969d(0x12e)](),this[_0x13969d(0x148)]&&(this[_0x13969d(0x148)][_0x13969d(0xfb)]=''),this[_0x13969d(0x174)]&&this[_0x13969d(0x174)][_0x13969d(0x12c)][_0x13969d(0x141)]();}[_0xa66336(0x118)](){const _0x19863f=_0xa66336;this[_0x19863f(0x150)]&&(this[_0x19863f(0x150)][_0x19863f(0x164)](),this[_0x19863f(0x150)]=null),this[_0x19863f(0x148)]&&(this[_0x19863f(0x148)][_0x19863f(0x118)](),this[_0x19863f(0x148)]=null),this[_0x19863f(0x174)]&&(this[_0x19863f(0x174)][_0x19863f(0x118)](),this[_0x19863f(0x174)]=null);}[_0xa66336(0x15e)](){const _0x5beb0a=_0xa66336;if(!this[_0x5beb0a(0x112)])return;if(!this[_0x5beb0a(0xf6)]())return void(this[_0x5beb0a(0x178)]=!0x0);this[_0x5beb0a(0x178)]=!0x1;const _0x38fa47=[...this[_0x5beb0a(0x139)],...this[_0x5beb0a(0x121)]],_0x4d9b23=this[_0x5beb0a(0x175)](),_0x178a5a=this[_0x5beb0a(0xfe)](_0x4d9b23,_0x38fa47),_0xe17ed6=_0x4d9b23[_0x5beb0a(0x17a)];_0xe17ed6&&this[_0x5beb0a(0x12b)](_0xe17ed6),_0x4d9b23[_0x5beb0a(0xf7)](),this[_0x5beb0a(0x11b)](_0x38fa47,_0x178a5a);}[_0xa66336(0x131)](){const _0xb05b3c=_0xa66336;this[_0xb05b3c(0x148)]=this[_0xb05b3c(0x182)](),this[_0xb05b3c(0x174)]=this[_0xb05b3c(0x147)](),this[_0xb05b3c(0x148)][_0xb05b3c(0x14e)](),this[_0xb05b3c(0x112)][_0xb05b3c(0x155)](this[_0xb05b3c(0x148)][_0xb05b3c(0x18b)]),this[_0xb05b3c(0x148)]['on'](_0xb05b3c(0x185),()=>{const _0x49bb00=_0xb05b3c;this[_0x49bb00(0xfc)]();}),_0x1a40ad({'emitter':this[_0xb05b3c(0x174)],'contextElements':[this[_0xb05b3c(0x174)][_0xb05b3c(0x18b)],this[_0xb05b3c(0x148)][_0xb05b3c(0x18b)]],'callback':()=>this[_0xb05b3c(0x146)](),'activator':()=>this[_0xb05b3c(0x148)][_0xb05b3c(0x188)]});}[_0xa66336(0x182)](){const _0x25835c=_0xa66336,_0x26f92e=new _0x164cae(this[_0x25835c(0x15d)]);_0x26f92e[_0x25835c(0x153)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3f1785=[this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x10d)]];return this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x176)]&&_0x3f1785[_0x25835c(0x12a)](this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x176)]),_0x26f92e[_0x25835c(0x102)]({'attributes':{'class':_0x3f1785}}),_0x26f92e;}[_0xa66336(0x147)](){const _0x4ee7ff=_0xa66336,_0x1637f9=new _0x4b0f99(this[_0x4ee7ff(0x15d)]);return _0x1637f9[_0x4ee7ff(0x102)]({'attributes':{'class':this[_0x4ee7ff(0x180)][_0x4ee7ff(0x183)][_0x4ee7ff(0x169)]}}),this[_0x4ee7ff(0x156)][_0x4ee7ff(0x179)](_0x1637f9),_0x1637f9;}[_0xa66336(0x159)](){const _0x44ae57=_0xa66336;if(this[_0x44ae57(0x174)]&&(this[_0x44ae57(0x174)][_0x44ae57(0x12c)][_0x44ae57(0x141)](),this[_0x44ae57(0x121)][_0x44ae57(0x10f)]>0x0)){this[_0x44ae57(0x121)][_0x44ae57(0x15c)](_0x5636e3=>{const _0x45adb3=_0x44ae57;_0x5636e3[_0x45adb3(0x152)]();});const _0x45e66a=new _0xa7c5c(this[_0x44ae57(0x15d)]);_0x45e66a[_0x44ae57(0x123)]({'tag':_0x44ae57(0x184),'attributes':{'class':this[_0x44ae57(0x180)][_0x44ae57(0x183)][_0x44ae57(0x11d)]},'children':this[_0x44ae57(0x121)]}),this[_0x44ae57(0x174)][_0x44ae57(0x12c)][_0x44ae57(0x179)](_0x45e66a);}}[_0xa66336(0xfc)](){const _0x589cac=_0xa66336;this[_0x589cac(0x148)][_0x589cac(0x188)]?this[_0x589cac(0x146)]():this[_0x589cac(0x101)]();}[_0xa66336(0x12e)](){const _0x429ba8=_0xa66336,_0x184462=this[_0x429ba8(0x121)][_0x429ba8(0x10f)]>0x0;this[_0x429ba8(0x148)]?.[_0x429ba8(0x18b)]&&(this[_0x429ba8(0x148)][_0x429ba8(0x18b)][_0x429ba8(0x13f)][_0x429ba8(0x138)]=_0x184462?'':_0x429ba8(0x11c));}[_0xa66336(0xfd)](){const _0x2eb455=_0xa66336;this[_0x2eb455(0x148)]?.[_0x2eb455(0x188)]&&this[_0x2eb455(0x174)]?.[_0x2eb455(0x134)]&&this[_0x2eb455(0x148)][_0x2eb455(0x18b)]&&this[_0x2eb455(0x174)][_0x2eb455(0x109)]({'target':this[_0x2eb455(0x148)][_0x2eb455(0x18b)],'limiter':document[_0x2eb455(0x157)](_0x2eb455(0x14c))});}[_0xa66336(0x125)](_0x3676b5){const _0x398831=_0xa66336,_0x499d69=this[_0x398831(0x112)]?.[_0x398831(0x189)][_0x398831(0x171)]()||_0x398831(0x184),_0x5e27ee=this[_0x398831(0x112)]?.[_0x398831(0x162)];if(_0x5e27ee){const _0x4e755d=_0x5e27ee[0x0]||'',_0x27186a=_0x3676b5[_0x398831(0x157)]('.'+_0x4e755d),_0x16f76f=_0x3676b5[_0x398831(0x157)](_0x499d69);return _0x27186a||_0x16f76f||_0x3676b5;}return _0x3676b5[_0x398831(0x157)](_0x499d69)||_0x3676b5;}[_0xa66336(0xff)](){const _0x3f06b9=_0xa66336,_0x157fc1=this[_0x3f06b9(0x119)]?.[_0x3f06b9(0x18b)]||this[_0x3f06b9(0x112)];if(!_0x157fc1)return an;const _0x31e030=window[_0x3f06b9(0x186)](_0x157fc1)[_0x3f06b9(0x16b)];if(_0x3f06b9(0x11e)===_0x31e030||_0x3f06b9(0x16c)===_0x31e030||!_0x31e030){const _0x389822=_0x157fc1[_0x3f06b9(0x10c)];if(_0x389822){const _0x3e10ad=window[_0x3f06b9(0x186)](_0x389822);return _0x3f06b9(0x11e)!==_0x3e10ad[_0x3f06b9(0x16b)]?_0x3e10ad[_0x3f06b9(0x16b)]:an;}return an;}return _0x31e030;}[_0xa66336(0x103)](_0x52dfb3,_0x3d8cc8){const _0x2b3c4c=_0xa66336;this[_0x2b3c4c(0x180)][_0x2b3c4c(0x183)][_0x2b3c4c(0x129)]&&_0x52dfb3[_0x2b3c4c(0x162)][_0x2b3c4c(0x179)](this[_0x2b3c4c(0x180)][_0x2b3c4c(0x183)][_0x2b3c4c(0x129)]),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16b)]=_0x3d8cc8,_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x140)]=_0x2b3c4c(0x15b),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16f)]=_0x2b3c4c(0x177),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x135)]=_0x2b3c4c(0x177),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x17f)]='0',_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16d)]=_0x2b3c4c(0x11c),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x10e)]='-1',_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x167)]=_0x2b3c4c(0x163),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x138)]=_0x2b3c4c(0x16a),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x126)]=_0x2b3c4c(0x187);}[_0xa66336(0x12b)](_0x4d4320){const _0x342917=_0xa66336;_0x4d4320[_0x342917(0x15c)](({element:_0x4e4ba6,originalDisplay:_0x5c5199,originalVisibility:_0x3feaab})=>{const _0x514edb=_0x342917;_0x4e4ba6[_0x514edb(0x13f)][_0x514edb(0x138)]=_0x5c5199,_0x4e4ba6[_0x514edb(0x13f)][_0x514edb(0x167)]=_0x3feaab;});}[_0xa66336(0x17b)](_0x196e25){const _0x341508=_0xa66336,_0x1f155b=[];let _0x11a07=_0x196e25;for(;_0x11a07&&_0x11a07!==document[_0x341508(0x13c)];){const _0x4d0425=window[_0x341508(0x186)](_0x11a07);_0x341508(0x11c)!==_0x4d0425[_0x341508(0x138)]&&_0x341508(0x107)!==_0x4d0425[_0x341508(0x167)]||(_0x1f155b[_0x341508(0x12a)]({'element':_0x11a07,'originalDisplay':_0x11a07[_0x341508(0x13f)][_0x341508(0x138)],'originalVisibility':_0x11a07[_0x341508(0x13f)][_0x341508(0x167)]}),_0x11a07[_0x341508(0x13f)][_0x341508(0x138)]=_0x341508(0x116),_0x11a07[_0x341508(0x13f)][_0x341508(0x167)]=_0x341508(0x15a)),_0x11a07=_0x11a07[_0x341508(0x10c)];}return _0x1f155b;}[_0xa66336(0x151)](){const _0x5d0e11=_0xa66336;let _0x797ff8,_0x521fa5;return this[_0x5d0e11(0x119)]?.[_0x5d0e11(0x18b)]?(_0x797ff8=this[_0x5d0e11(0x119)][_0x5d0e11(0x18b)][_0x5d0e11(0x17d)](!0x0),_0x521fa5=this[_0x5d0e11(0x125)](_0x797ff8)):(_0x797ff8=document[_0x5d0e11(0x165)](_0x5d0e11(0x184)),_0x521fa5=_0x797ff8),{'calculationContainer':_0x797ff8,'targetContainer':_0x521fa5};}[_0xa66336(0x175)](){const _0x16739f=_0xa66336,{calculationContainer:_0x68d150,targetContainer:_0x171182}=this[_0x16739f(0x151)](),_0x28b232=this[_0x16739f(0xff)]();this[_0x16739f(0x103)](_0x68d150,_0x28b232);const _0x371a32=this[_0x16739f(0x119)]?.[_0x16739f(0x18b)]||this[_0x16739f(0x112)],_0x5a606f=_0x371a32?.[_0x16739f(0x10c)];_0x5a606f?_0x5a606f[_0x16739f(0x155)](_0x68d150):document[_0x16739f(0x13c)][_0x16739f(0x155)](_0x68d150),_0x68d150[_0x16739f(0x10b)]=_0x171182;const _0x12a4be=this[_0x16739f(0x17b)](_0x5a606f||null);return _0x68d150[_0x16739f(0x113)],_0x68d150[_0x16739f(0x17a)]=_0x12a4be,_0x68d150;}[_0xa66336(0xfe)](_0x1806f3,_0x5c720a){const _0x5e3ba3=_0xa66336,_0x6959f2=_0x1806f3[_0x5e3ba3(0x10b)]||_0x1806f3,_0x2316cc=[],{rowCount:_0x298378}=this[_0x5e3ba3(0x172)](_0x6959f2,_0x5c720a);if(_0x298378<=this[_0x5e3ba3(0x180)][_0x5e3ba3(0x15f)])return _0x2316cc;const _0x2d2290=_0x5c720a[_0x5e3ba3(0x144)]();for(;_0x2d2290[_0x5e3ba3(0x10f)]>0x0;){if(this[_0x5e3ba3(0x105)](_0x1806f3,_0x6959f2,_0x2d2290)){const _0x4f611d=_0x5c720a[_0x5e3ba3(0x124)](_0x2dd087=>!_0x2d2290[_0x5e3ba3(0x145)](_0x2dd087));_0x2316cc[_0x5e3ba3(0x12a)](..._0x4f611d);break;}if(!_0x2d2290[_0x5e3ba3(0x161)]())break;}return _0x2316cc;}[_0xa66336(0x172)](_0x25e06b,_0x35639e){const _0x1c39e1=_0xa66336;_0x25e06b[_0x1c39e1(0x133)]='',_0x35639e[_0x1c39e1(0x15c)](_0x3502c6=>{const _0xdd4f=_0x1c39e1;if(_0x3502c6[_0xdd4f(0x18b)]){const _0x1b7429=_0x3502c6[_0xdd4f(0x18b)][_0xdd4f(0x17d)](!0x0);_0x25e06b[_0xdd4f(0x155)](_0x1b7429);}}),_0x25e06b[_0x1c39e1(0x113)];const _0x530e3e=_0x25e06b[_0x1c39e1(0xfa)],_0x8d4b29=[];return Array[_0x1c39e1(0x181)](_0x530e3e)[_0x1c39e1(0x15c)](_0x58dc7a=>{const _0x2247fd=_0x1c39e1,_0xd764a=_0x58dc7a[_0x2247fd(0x12f)]()[_0x2247fd(0x16f)];_0x8d4b29[_0x2247fd(0x14b)](_0x5cd229=>Math[_0x2247fd(0x11f)](_0x5cd229-_0xd764a)<this[_0x2247fd(0x180)][_0x2247fd(0x173)])||_0x8d4b29[_0x2247fd(0x12a)](_0xd764a);}),{'rowCount':_0x8d4b29[_0x1c39e1(0x10f)]};}[_0xa66336(0x13b)](){const _0x56d97a=_0xa66336,_0x58171c=document[_0x56d97a(0x165)](_0x56d97a(0x110));return _0x58171c[_0x56d97a(0x136)]=this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x10d)],this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x176)]&&_0x58171c[_0x56d97a(0x162)][_0x56d97a(0x179)](this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x176)]),_0x58171c[_0x56d97a(0x132)]=_0x56d97a(0x170),_0x58171c;}[_0xa66336(0x105)](_0x1726b4,_0x383ca0,_0x3acc60){const _0x3fbed1=_0xa66336;this[_0x3fbed1(0x172)](_0x383ca0,_0x3acc60);const _0x4faff7=this[_0x3fbed1(0x13b)]();_0x1726b4[_0x3fbed1(0x155)](_0x4faff7),_0x1726b4[_0x3fbed1(0x113)];const _0x3e2b64=[..._0x383ca0[_0x3fbed1(0xfa)],_0x4faff7],_0x1e5cb7=[];_0x3e2b64[_0x3fbed1(0x15c)](_0x373f55=>{const _0x39b23e=_0x3fbed1,_0x1d5d48=_0x373f55[_0x39b23e(0x12f)]()[_0x39b23e(0x16f)];_0x1e5cb7[_0x39b23e(0x14b)](_0x454b3f=>Math[_0x39b23e(0x11f)](_0x454b3f-_0x1d5d48)<this[_0x39b23e(0x180)][_0x39b23e(0x173)])||_0x1e5cb7[_0x39b23e(0x12a)](_0x1d5d48);});const _0x5be8df=_0x1e5cb7[_0x3fbed1(0x10f)];return _0x4faff7[_0x3fbed1(0xf7)](),_0x5be8df<=this[_0x3fbed1(0x180)][_0x3fbed1(0x15f)];}[_0xa66336(0x18a)](_0x5ada4f,_0x4b4b28){const _0x5ea79d=_0xa66336;this[_0x5ea79d(0x139)][_0x5ea79d(0x141)](),this[_0x5ea79d(0x121)][_0x5ea79d(0x141)](),_0x5ada4f[_0x5ea79d(0x15c)](_0xd67019=>{const _0x101aa6=_0x5ea79d;_0x4b4b28[_0x101aa6(0x145)](_0xd67019)?this[_0x101aa6(0x121)][_0x101aa6(0x179)](_0xd67019):this[_0x101aa6(0x139)][_0x101aa6(0x179)](_0xd67019);});}[_0xa66336(0x14a)](_0x1ced6d){const _0x4e785b=_0xa66336;if(_0x1ced6d>0x0&&!this[_0x4e785b(0x148)]&&this[_0x4e785b(0x131)](),_0x1ced6d>0x0&&this[_0x4e785b(0x148)]){const _0x421b20=''+this[_0x4e785b(0x180)][_0x4e785b(0x100)]+(_0x1ced6d<0x63?_0x1ced6d:'99');this[_0x4e785b(0x148)][_0x4e785b(0xfb)]=_0x421b20;}this[_0x4e785b(0x159)](),this[_0x4e785b(0x12e)](),this[_0x4e785b(0xfd)]();}[_0xa66336(0x11b)](_0x1b5a87,_0x3ec378){const _0x1f1e27=_0xa66336;this[_0x1f1e27(0x18a)](_0x1b5a87,_0x3ec378),this[_0x1f1e27(0x14a)](_0x3ec378[_0x1f1e27(0x10f)]);}[_0xa66336(0x111)](){const _0x26f21d=_0xa66336;this[_0x26f21d(0x112)]&&_0x26f21d(0x14d)!=typeof IntersectionObserver&&(this[_0x26f21d(0x150)]=new IntersectionObserver(_0x1ecabc=>{const _0xeed07e=_0x26f21d;_0x1ecabc[0x0][_0xeed07e(0x130)]&&this[_0xeed07e(0x178)]&&requestAnimationFrame(()=>{const _0x28301a=_0xeed07e;this[_0x28301a(0x15e)]();});},{'threshold':0.01,'rootMargin':_0x26f21d(0x127)}),this[_0x26f21d(0x150)][_0x26f21d(0x120)](this[_0x26f21d(0x112)]));}[_0xa66336(0xf6)](){const _0x335753=_0xa66336;if(!this[_0x335753(0x112)])return!0x1;if(!this[_0x335753(0x112)][_0x335753(0x158)])return!0x1;const _0x48c299=this[_0x335753(0x112)][_0x335753(0x12f)]();if(0x0===_0x48c299[_0x335753(0x16b)]||0x0===_0x48c299[_0x335753(0x13a)])return!0x1;const _0x270960=window[_0x335753(0x149)]||document[_0x335753(0x143)][_0x335753(0x13e)],_0x5ae70c=window[_0x335753(0x142)]||document[_0x335753(0x143)][_0x335753(0x117)],_0x1f325d=0xc8;return _0x48c299[_0x335753(0x17e)]>=-0xc8&&_0x48c299[_0x335753(0x16f)]<=_0x270960+_0x1f325d&&_0x48c299[_0x335753(0xf9)]>=-0xc8&&_0x48c299[_0x335753(0x135)]<=_0x5ae70c+_0x1f325d;}}