@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.3

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 (78) 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/awstextadapter.js +1 -1
  8. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  9. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformview.js +1 -1
  12. package/src/aichat/aichat.js +1 -1
  13. package/src/aichat/aichatballoon.js +1 -1
  14. package/src/aichat/aichatcontroller.js +1 -1
  15. package/src/aichat/aichatui.js +1 -1
  16. package/src/aichat/model/aichatcontext.js +1 -1
  17. package/src/aichat/model/aichatconversation.js +1 -1
  18. package/src/aichat/model/aichatinteraction.js +1 -1
  19. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  20. package/src/aichat/ui/aichatfeedview.js +1 -1
  21. package/src/aichat/ui/aichatheaderview.js +1 -1
  22. package/src/aichat/ui/aichatview.js +1 -1
  23. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  24. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  25. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  26. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  27. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  28. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  29. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  30. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  31. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  32. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  33. package/src/aichat/utils/eventnames.js +1 -1
  34. package/src/aichathistory/aichathistory.js +1 -1
  35. package/src/aichathistory/aichathistorycontroller.js +1 -1
  36. package/src/aichathistory/aichathistoryui.js +1 -1
  37. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  38. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  39. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  40. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  41. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  42. package/src/aicore/aiediting.js +1 -1
  43. package/src/aicore/model/aiinteraction.js +1 -1
  44. package/src/aicore/model/aimodels.js +1 -1
  45. package/src/aicore/model/aireply.js +1 -1
  46. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  47. package/src/aicore/pipeline/airesponseparser.js +2 -2
  48. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  49. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  50. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  51. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  52. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  53. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  54. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  57. package/src/aicore/utils/documentrange.js +1 -1
  58. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  59. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  60. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  61. package/src/aicore/utils/htmlparser.js +1 -1
  62. package/src/aicore/utils/htmlstreamer.js +1 -1
  63. package/src/aieditorintegration/aieditorintegration.js +1 -1
  64. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  65. package/src/aiquickactions/aiquickactionsui.js +1 -1
  66. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  67. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  68. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  69. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  70. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  71. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  72. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  73. package/src/aireviewcore/aireviewcoreui.js +1 -1
  74. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  75. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  76. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  77. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  78. package/src/aitabs/aitabs.js +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x28fc(_0x131d7d,_0x546b9c){const _0x4d2f3b=_0x4d2f();return _0x28fc=function(_0x28fc18,_0x37613d){_0x28fc18=_0x28fc18-0xe8;let _0x188ee9=_0x4d2f3b[_0x28fc18];return _0x188ee9;},_0x28fc(_0x131d7d,_0x546b9c);}const _0xb6b0fd=_0x28fc;(function(_0x5cbb6e,_0x5ea979){const _0xc5325b=_0x28fc,_0x1ddfab=_0x5cbb6e();while(!![]){try{const _0x410977=-parseInt(_0xc5325b(0x123))/0x1+-parseInt(_0xc5325b(0xf7))/0x2*(parseInt(_0xc5325b(0x13a))/0x3)+-parseInt(_0xc5325b(0x106))/0x4+parseInt(_0xc5325b(0xff))/0x5*(parseInt(_0xc5325b(0xf5))/0x6)+parseInt(_0xc5325b(0x10a))/0x7*(-parseInt(_0xc5325b(0x12e))/0x8)+parseInt(_0xc5325b(0x12f))/0x9+parseInt(_0xc5325b(0x144))/0xa*(parseInt(_0xc5325b(0x111))/0xb);if(_0x410977===_0x5ea979)break;else _0x1ddfab['push'](_0x1ddfab['shift']());}catch(_0x175561){_0x1ddfab['push'](_0x1ddfab['shift']());}}}(_0x4d2f,0x9cbf9));import{ListItemView as _0x351b77,HighlightedTextView as _0xc3e05c,ButtonView as _0x170ac0,ListView as _0x493baa,IconView as _0x59788e,createDropdown as _0x140376,InputTextView as _0x82c1a8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xc5f37,IconPin as _0x18fd85,IconCheck as _0x16f28d,IconCancel as _0x145cb7}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1e9aa0,ConfirmMixin as _0x440d3c}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x24c4c6}from'es-toolkit/compat';import{AISpinnerView as _0x2ca88b}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5d281b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x440d3c(_0x351b77){['id'];static [_0xb6b0fd(0x14a)]={'remove':_0xb6b0fd(0x133),'rename':_0xb6b0fd(0x142),'pin':_0xb6b0fd(0x11a),'unpin':_0xb6b0fd(0x120)};[_0xb6b0fd(0xf0)];[_0xb6b0fd(0x11d)];[_0xb6b0fd(0xec)];constructor(_0x3e2922,_0x4f2cc3){const _0x81d8fc=_0xb6b0fd;super(_0x3e2922);const _0x438cd3=this[_0x81d8fc(0x121)];this[_0x81d8fc(0x147)](_0x81d8fc(0x13f),!0x1),this[_0x81d8fc(0x147)](_0x81d8fc(0x100),!0x0),this[_0x81d8fc(0x147)](_0x81d8fc(0xfa),!!_0x4f2cc3[_0x81d8fc(0xfa)]),this[_0x81d8fc(0x147)](_0x81d8fc(0x135),null),this['id']=_0x4f2cc3['id'];const {title:_0x13eb96,createdAt:_0x48ab1e,active:_0x579a64=!0x1}=_0x4f2cc3;this[_0x81d8fc(0xec)]=new _0xc3e05c(),this[_0x81d8fc(0xec)][_0x81d8fc(0xf8)]=_0x13eb96,this[_0x81d8fc(0xec)][_0x81d8fc(0x139)]({'attributes':{'class':[_0x81d8fc(0x115)]}});const _0x463054=this[_0x81d8fc(0x126)](),_0x42730f=this[_0x81d8fc(0x119)](_0x3e2922),_0x1c5d8f=this[_0x81d8fc(0x13e)](),_0x5129b2=this[_0x81d8fc(0x130)](_0x3e2922,_0x13eb96),_0x493b04=this[_0x81d8fc(0x110)](_0x3e2922,_0x5129b2),_0x5577a6=this[_0x81d8fc(0x12a)](_0x3e2922,_0x5129b2);this[_0x81d8fc(0xf0)]=this[_0x81d8fc(0x13c)](),this[_0x81d8fc(0x11d)]=this[_0x81d8fc(0x13c)](),this[_0x81d8fc(0x11d)][_0x81d8fc(0x104)](this[_0x81d8fc(0xec)]),this[_0x81d8fc(0xf0)][_0x81d8fc(0x104)](_0x42730f),this[_0x81d8fc(0xf0)][_0x81d8fc(0x104)](_0x1c5d8f),this['on'](_0x81d8fc(0x103),(_0x2490de,_0xa409d8,_0x3bdfd5)=>{const _0x38dc43=_0x81d8fc;this[_0x38dc43(0xf0)][_0x38dc43(0x137)](),this[_0x38dc43(0x11d)][_0x38dc43(0x137)](),_0x3bdfd5?(this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x493b04),this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x5577a6),this[_0x38dc43(0x11d)][_0x38dc43(0x104)](_0x5129b2),_0x5129b2[_0x38dc43(0x129)][_0x38dc43(0x11c)]()):(this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x42730f),this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x1c5d8f),this[_0x38dc43(0x11d)][_0x38dc43(0x104)](this[_0x38dc43(0xec)]));}),this[_0x81d8fc(0x116)]({'tag':'li','attributes':{'class':[_0x81d8fc(0xfe),_0x579a64?_0x81d8fc(0xfd):'',_0x438cd3['if'](_0x81d8fc(0x100),_0x81d8fc(0x112),_0x4003fc=>!_0x4003fc),_0x438cd3['if'](_0x81d8fc(0x13f),_0x81d8fc(0x12c))],'role':_0x81d8fc(0xe8)},'children':[{'tag':_0x81d8fc(0x11f),'attributes':{'class':[_0x81d8fc(0x140)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x10c),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x337599=>!!_0x337599)]},'children':_0x579a64?[_0x463054]:[]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x13d),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x4c1d7d=>!_0x4c1d7d)]},'children':[this[_0x81d8fc(0xfc)]()]}]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x117)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x10d)]},'on':{'click':this[_0x81d8fc(0x121)]['to'](_0x81d8fc(0x143))},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0xef)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x115),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x2b59e3=>!!_0x2b59e3)]},'children':this[_0x81d8fc(0x11d)]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0xed),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x1b758d=>!_0x1b758d)]},'children':[{'text':_0x438cd3['to'](_0x81d8fc(0x135),_0x591ff7=>_0x591ff7?_0x5d281b(this[_0x81d8fc(0x108)],AIChatHistoryListItemView[_0x81d8fc(0x14a)][_0x591ff7]):'')}]}]},{'tag':_0x81d8fc(0x11f),'attributes':{'class':[_0x81d8fc(0xf4)]},'children':[_0x48ab1e]}]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x12b)]},'children':this[_0x81d8fc(0xf0)]}]}]}),this['on'](_0x81d8fc(0x143),()=>{const _0x314c80=_0x81d8fc;this[_0x314c80(0x13f)]||this[_0x314c80(0x149)](_0x314c80(0x132),{'id':this['id']});});}[_0xb6b0fd(0x127)](_0x3a944e){const _0x4aa168=_0xb6b0fd;this[_0x4aa168(0xec)][_0x4aa168(0xf8)]=_0x24c4c6(_0x3a944e);}[_0xb6b0fd(0xfb)](_0x5cbb7c,_0x237566){const _0x3d2e91=_0xb6b0fd;this[_0x3d2e91(0x147)](_0x3d2e91(0x135),_0x237566?_0x5cbb7c:null);}[_0xb6b0fd(0x126)](){const _0x1a7946=_0xb6b0fd,_0x2de72b=new _0x59788e();return _0x2de72b[_0x1a7946(0x147)]({'content':_0x16f28d}),_0x2de72b;}[_0xb6b0fd(0x119)](_0x3bc650){const _0x30f319=_0xb6b0fd,_0x1b89a7=new _0x170ac0(_0x3bc650);return _0x1b89a7[_0x30f319(0x147)]({'label':_0x5d281b(_0x3bc650,_0x30f319(0xf6)),'icon':_0x18fd85,'withText':!0x1,'tooltip':!0x0}),_0x1b89a7[_0x30f319(0x122)](_0x30f319(0x138))['to'](this,_0x30f319(0xfa)),_0x1b89a7['on'](_0x30f319(0x107),()=>{const _0x17342f=_0x30f319,_0x3580cd=!this[_0x17342f(0xfa)];this[_0x17342f(0x149)](_0x17342f(0x105),{'id':this['id'],'pinned':_0x3580cd});}),_0x1b89a7;}[_0xb6b0fd(0x13e)](){const _0x54f8eb=_0xb6b0fd,_0x804d4f=_0x140376(this[_0x54f8eb(0x108)],_0x1e9aa0),_0x458e06=_0x804d4f[_0x54f8eb(0x136)][_0x54f8eb(0xf1)];_0x804d4f[_0x54f8eb(0x146)][_0x54f8eb(0x147)]({'label':_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x114)),'icon':_0xc5f37}),_0x804d4f[_0x54f8eb(0x145)]='sw';const _0x5141eb=new _0x170ac0(this[_0x54f8eb(0x108)]);_0x5141eb[_0x54f8eb(0x118)]=_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x134)),_0x5141eb[_0x54f8eb(0x10b)]=!0x0,_0x5141eb['on'](_0x54f8eb(0x107),()=>{const _0x38771f=_0x54f8eb;this[_0x38771f(0x13f)]=!0x0;});const _0x22e3db=new _0x170ac0(this[_0x54f8eb(0x108)]);_0x22e3db[_0x54f8eb(0x118)]=_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x10f)),_0x22e3db[_0x54f8eb(0x10b)]=!0x0,_0x22e3db['on'](_0x54f8eb(0x107),()=>{const _0xb7944b=_0x54f8eb;this[_0xb7944b(0x125)](_0x5d281b(this[_0xb7944b(0x108)],_0xb7944b(0xea)),this[_0xb7944b(0x129)])[_0xb7944b(0xf2)](()=>{const _0x298c41=_0xb7944b;this[_0x298c41(0x149)](_0x298c41(0x148),{'id':this['id']});});});const _0x243d68=new _0x493baa(this[_0x54f8eb(0x108)]),_0x29aed4=new _0x351b77(this[_0x54f8eb(0x108)]);_0x29aed4[_0x54f8eb(0xf1)][_0x54f8eb(0x104)](_0x5141eb);const _0xe98bc4=new _0x351b77(this[_0x54f8eb(0x108)]);return _0xe98bc4[_0x54f8eb(0xf1)][_0x54f8eb(0x104)](_0x22e3db),_0x243d68[_0x54f8eb(0x12d)][_0x54f8eb(0xf9)]([_0x29aed4,_0xe98bc4]),_0x458e06[_0x54f8eb(0x104)](_0x243d68),_0x804d4f;}[_0xb6b0fd(0x130)](_0x4dfd90,_0xaa287f){const _0x1f739d=_0xb6b0fd,_0x4ef9ea=new _0x82c1a8(_0x4dfd90),_0xf6d183=_0x4ef9ea[_0x1f739d(0x121)];return _0x4ef9ea[_0x1f739d(0xeb)]=_0xaa287f,_0x4ef9ea[_0x1f739d(0x139)]({'on':{'keydown':_0xf6d183['to'](_0x19f622=>{const _0x444033=_0x1f739d;_0x444033(0x131)==_0x19f622[_0x444033(0x102)]&&this[_0x444033(0x101)](_0x4ef9ea);})}}),_0x4ef9ea;}[_0xb6b0fd(0x110)](_0x525dbe,_0x3b502f){const _0x576079=_0xb6b0fd,_0xdbf161=new _0x170ac0(_0x525dbe);return _0xdbf161[_0x576079(0x147)]({'icon':_0x16f28d,'withText':!0x1,'tooltip':_0x5d281b(_0x525dbe,_0x576079(0xee))}),_0xdbf161[_0x576079(0x139)]({'attributes':{'class':[_0x576079(0xe9)]}}),_0xdbf161['on'](_0x576079(0x107),()=>{const _0x169e15=_0x576079;this[_0x169e15(0x101)](_0x3b502f);}),_0xdbf161;}[_0xb6b0fd(0x101)](_0x3adf13){const _0x259aa1=_0xb6b0fd,_0x2643ce=_0x3adf13[_0x259aa1(0x129)][_0x259aa1(0xeb)]||'';this[_0x259aa1(0xec)][_0x259aa1(0xf8)]=_0x2643ce,this[_0x259aa1(0x13f)]=!0x1,this[_0x259aa1(0x149)](_0x259aa1(0x10e),{'id':this['id'],'title':_0x2643ce});}[_0xb6b0fd(0x12a)](_0x49e317,_0x49156c){const _0x1cdfa9=_0xb6b0fd,_0x3215d7=new _0x170ac0(_0x49e317);return _0x3215d7[_0x1cdfa9(0x147)]({'icon':_0x145cb7,'withText':!0x1,'tooltip':_0x5d281b(_0x49e317,_0x1cdfa9(0x128))}),_0x3215d7[_0x1cdfa9(0x139)]({'attributes':{'class':[_0x1cdfa9(0xf3)]}}),_0x3215d7['on'](_0x1cdfa9(0x107),()=>{const _0x361032=_0x1cdfa9;this[_0x361032(0x13f)]=!0x1,_0x49156c[_0x361032(0xeb)]=this[_0x361032(0xec)][_0x361032(0xf8)]||'',this[_0x361032(0x149)](_0x361032(0x11e));}),_0x3215d7;}[_0xb6b0fd(0xfc)](){const _0x4ac84c=_0xb6b0fd,_0x1cc479=new _0x2ca88b(_0x4ac84c(0x109));return _0x1cc479[_0x4ac84c(0x100)]=!0x0,_0x1cc479;}[_0xb6b0fd(0x141)](_0x4149a0){const _0x4058b8=_0xb6b0fd;return this[_0x4058b8(0xec)]&&_0x4058b8(0x113)==typeof this[_0x4058b8(0xec)][_0x4058b8(0xf8)]&&this[_0x4058b8(0xec)][_0x4058b8(0xf8)][_0x4058b8(0x11b)](_0x4149a0)?{'title':!0x0}:null;}[_0xb6b0fd(0x124)](_0x58b03c){const _0x35bfb3=_0xb6b0fd;this[_0x35bfb3(0xec)][_0x35bfb3(0x124)](_0x58b03c);}}function _0x4d2f(){const _0x157497=['showConfirm','_createCheckView','updateTitle','AI_CHAT_HISTORY_CANCEL','element','_createCancelEditButtonView','ck-ai-chat-history__item-actions','ck-ai-chat-history__item--edit','items','1368DXkxgA','3570129mnZlHU','_createEditInputView','Enter','selectConversation','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_EDIT_NAME','loadingState','panelView','clear','isOn','extendTemplate','75dEqxuo','div','createCollection','ck-ai-loader','_createMenuDropdownView','isEdit','ck-ai-chat-history__item-check-container','isMatching','AI_CHAT_HISTORY_LOADING_RENAMING','click','1249750kSQGsT','panelPosition','buttonView','set','removeConversation','fire','LOADING_LABELS','listitem','ck-confirm-view-submit','AI_CHAT_HISTORY_REMOVE_CONFIRM','value','_titleView','ck-ai-loader__text','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-main-content','actions','children','then','ck-confirm-view-cancel','ck-ai-chat-history__item-date','328380mpKgrj','AI_CHAT_HISTORY_PIN_BUTTON','50774TnMkIK','text','addMany','pinned','updateLoadingState','_createSpinnerView','ck-ai-chat-history__item--active','ck-ai-chat-history__item','90xuhkqI','isVisible','_commitEditInputValue','key','change:isEdit','add','setConversationPinned','4849736WHOxDK','execute','locale','tiny','10549TuiYgG','withText','ck-ai-chat-history__item-check','ck-ai-chat-history__item-content','editConversationTitle','AI_CHAT_HISTORY_REMOVE','_createAcceptEditButtonView','187tGxeol','ck-hidden','string','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-title','setTemplate','ck-ai-chat-history__item-row','label','_createPinButtonView','AI_CHAT_HISTORY_LOADING_PINNING','match','focus','mainContent','edit:cancel','span','AI_CHAT_HISTORY_LOADING_UNPINNING','bindTemplate','bind','759549JnbWrf','highlightText'];_0x4d2f=function(){return _0x157497;};return _0x4d2f();}
23
+ const _0x4ac2fb=_0xb92a;(function(_0x45a62d,_0x302bdc){const _0x27ccc9=_0xb92a,_0x427bbc=_0x45a62d();while(!![]){try{const _0x1de878=-parseInt(_0x27ccc9(0x219))/0x1*(-parseInt(_0x27ccc9(0x201))/0x2)+-parseInt(_0x27ccc9(0x1d9))/0x3+-parseInt(_0x27ccc9(0x20f))/0x4*(parseInt(_0x27ccc9(0x1eb))/0x5)+-parseInt(_0x27ccc9(0x204))/0x6*(parseInt(_0x27ccc9(0x222))/0x7)+parseInt(_0x27ccc9(0x1e2))/0x8*(parseInt(_0x27ccc9(0x21a))/0x9)+-parseInt(_0x27ccc9(0x1f7))/0xa*(-parseInt(_0x27ccc9(0x20d))/0xb)+-parseInt(_0x27ccc9(0x1dc))/0xc*(parseInt(_0x27ccc9(0x1d8))/0xd);if(_0x1de878===_0x302bdc)break;else _0x427bbc['push'](_0x427bbc['shift']());}catch(_0x351436){_0x427bbc['push'](_0x427bbc['shift']());}}}(_0x3533,0x598b1));function _0x3533(){const _0x3aae57=['children','addMany','2XjoHWR','listitem','_createEditInputView','36apSAad','_createPinButtonView','mainContent','ck-ai-chat-history__item-check-container','removeConversation','add','panelView','bindTemplate','panelPosition','11bEHLVj','createCollection','1050904UWJtWC','isMatching','ck-ai-chat-history__item-check','Enter','focus','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-content','click','fire','338783Zulamq','9XhePZz','AI_CHAT_HISTORY_LOADING_REMOVING','selectConversation','setTemplate','isOn','_createSpinnerView','LOADING_LABELS','key','433118HYEmMk','label','ck-ai-chat-history__item','span','buttonView','items','_createAcceptEditButtonView','actions','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-row','updateTitle','setConversationPinned','change:isEdit','ck-ai-chat-history__item-date','bind','showConfirm','ck-ai-chat-history__item--edit','div','ck-ai-loader__text','AI_CHAT_HISTORY_REMOVE','pinned','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_RENAMING','loadingState','_titleView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-actions','445315GgQZQu','280773VVjdfU','withText','clear','12Sjnxls','text','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','_commitEditInputValue','editConversationTitle','5342824yuHaSS','tiny','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_LOADING_PINNING','isVisible','set','_createMenuDropdownView','highlightText','ck-ai-loader','5xdBykm','ck-ai-chat-history__item-main-content','string','then','edit:cancel','AI_CHAT_HISTORY_EDIT_NAME','_createCheckView','AI_CHAT_HISTORY_ACCEPT','updateLoadingState','element','isEdit','execute','1219490HPTGZl','value','extendTemplate','ck-ai-chat-history__item-title','ck-hidden','ck-confirm-view-submit','locale','match'];_0x3533=function(){return _0x3aae57;};return _0x3533();}import{ListItemView as _0x365afd,HighlightedTextView as _0x32b79d,ButtonView as _0x1d853b,ListView as _0x1bdf2c,IconView as _0x5d75f1,createDropdown as _0x532c55,InputTextView as _0x3979ce}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x17af50,IconPin as _0x5084ab,IconCheck as _0x35ae4a,IconCancel as _0x315f56}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x527717,ConfirmMixin as _0x19fdbd}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x20f7ff}from'es-toolkit/compat';import{AISpinnerView as _0x37d7a0}from'../../aicore/ui/aispinner.js';function _0xb92a(_0x2d4dc0,_0x129bcc){const _0x353393=_0x3533();return _0xb92a=function(_0xb92a95,_0x1b4f4f){_0xb92a95=_0xb92a95-0x1d2;let _0x1ed2d0=_0x353393[_0xb92a95];return _0x1ed2d0;},_0xb92a(_0x2d4dc0,_0x129bcc);}import{getTranslation as _0x57a0f0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x19fdbd(_0x365afd){['id'];static [_0x4ac2fb(0x220)]={'remove':_0x4ac2fb(0x21b),'rename':_0x4ac2fb(0x1d3),'pin':_0x4ac2fb(0x1e5),'unpin':_0x4ac2fb(0x1d2)};[_0x4ac2fb(0x229)];[_0x4ac2fb(0x206)];[_0x4ac2fb(0x1d5)];constructor(_0x2a90c9,_0x2f81b7){const _0x14a6e5=_0x4ac2fb;super(_0x2a90c9);const _0x54e1e4=this[_0x14a6e5(0x20b)];this[_0x14a6e5(0x1e7)](_0x14a6e5(0x1f5),!0x1),this[_0x14a6e5(0x1e7)](_0x14a6e5(0x1e6),!0x0),this[_0x14a6e5(0x1e7)](_0x14a6e5(0x236),!!_0x2f81b7[_0x14a6e5(0x236)]),this[_0x14a6e5(0x1e7)](_0x14a6e5(0x1d4),null),this['id']=_0x2f81b7['id'];const {title:_0x20ad0c,createdAt:_0x38bb20,active:_0x12c112=!0x1}=_0x2f81b7;this[_0x14a6e5(0x1d5)]=new _0x32b79d(),this[_0x14a6e5(0x1d5)][_0x14a6e5(0x1dd)]=_0x20ad0c,this[_0x14a6e5(0x1d5)][_0x14a6e5(0x1f9)]({'attributes':{'class':[_0x14a6e5(0x1fa)]}});const _0x40fc98=this[_0x14a6e5(0x1f1)](),_0x1f2146=this[_0x14a6e5(0x205)](_0x2a90c9),_0x2a74a6=this[_0x14a6e5(0x1e8)](),_0x284d1b=this[_0x14a6e5(0x203)](_0x2a90c9,_0x20ad0c),_0x524453=this[_0x14a6e5(0x228)](_0x2a90c9,_0x284d1b),_0x443510=this[_0x14a6e5(0x214)](_0x2a90c9,_0x284d1b);this[_0x14a6e5(0x229)]=this[_0x14a6e5(0x20e)](),this[_0x14a6e5(0x206)]=this[_0x14a6e5(0x20e)](),this[_0x14a6e5(0x206)][_0x14a6e5(0x209)](this[_0x14a6e5(0x1d5)]),this[_0x14a6e5(0x229)][_0x14a6e5(0x209)](_0x1f2146),this[_0x14a6e5(0x229)][_0x14a6e5(0x209)](_0x2a74a6),this['on'](_0x14a6e5(0x22e),(_0x41d0e3,_0x3e490d,_0x38d98f)=>{const _0x22bd4c=_0x14a6e5;this[_0x22bd4c(0x229)][_0x22bd4c(0x1db)](),this[_0x22bd4c(0x206)][_0x22bd4c(0x1db)](),_0x38d98f?(this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x524453),this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x443510),this[_0x22bd4c(0x206)][_0x22bd4c(0x209)](_0x284d1b),_0x284d1b[_0x22bd4c(0x1f4)][_0x22bd4c(0x213)]()):(this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x1f2146),this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x2a74a6),this[_0x22bd4c(0x206)][_0x22bd4c(0x209)](this[_0x22bd4c(0x1d5)]));}),this[_0x14a6e5(0x21d)]({'tag':'li','attributes':{'class':[_0x14a6e5(0x224),_0x12c112?_0x14a6e5(0x1e4):'',_0x54e1e4['if'](_0x14a6e5(0x1e6),_0x14a6e5(0x1fb),_0x13c428=>!_0x13c428),_0x54e1e4['if'](_0x14a6e5(0x1f5),_0x14a6e5(0x232))],'role':_0x14a6e5(0x202)},'children':[{'tag':_0x14a6e5(0x225),'attributes':{'class':[_0x14a6e5(0x207)]},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x211),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x1bc110=>!!_0x1bc110)]},'children':_0x12c112?[_0x40fc98]:[]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1ea),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x14b28f=>!_0x14b28f)]},'children':[this[_0x14a6e5(0x21f)]()]}]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x22b)]},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x216)]},'on':{'click':this[_0x14a6e5(0x20b)]['to'](_0x14a6e5(0x217))},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1ec)]},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1fa),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x1b47bb=>!!_0x1b47bb)]},'children':this[_0x14a6e5(0x206)]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x234),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x5a7338=>!_0x5a7338)]},'children':[{'text':_0x54e1e4['to'](_0x14a6e5(0x1d4),_0x15d931=>_0x15d931?_0x57a0f0(this[_0x14a6e5(0x1fd)],AIChatHistoryListItemView[_0x14a6e5(0x220)][_0x15d931]):'')}]}]},{'tag':_0x14a6e5(0x225),'attributes':{'class':[_0x14a6e5(0x22f)]},'children':[_0x38bb20]}]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1d7)]},'children':this[_0x14a6e5(0x229)]}]}]}),this['on'](_0x14a6e5(0x217),()=>{const _0x18965b=_0x14a6e5;this[_0x18965b(0x1f5)]||this[_0x18965b(0x218)](_0x18965b(0x21c),{'id':this['id']});});}[_0x4ac2fb(0x22c)](_0x57ec76){const _0x2ae221=_0x4ac2fb;this[_0x2ae221(0x1d5)][_0x2ae221(0x1dd)]=_0x20f7ff(_0x57ec76);}[_0x4ac2fb(0x1f3)](_0x5e7cbe,_0xe40b4a){const _0x53de53=_0x4ac2fb;this[_0x53de53(0x1e7)](_0x53de53(0x1d4),_0xe40b4a?_0x5e7cbe:null);}[_0x4ac2fb(0x1f1)](){const _0x44947d=_0x4ac2fb,_0x265ee1=new _0x5d75f1();return _0x265ee1[_0x44947d(0x1e7)]({'content':_0x35ae4a}),_0x265ee1;}[_0x4ac2fb(0x205)](_0x3a58b3){const _0x528d46=_0x4ac2fb,_0x4cefc7=new _0x1d853b(_0x3a58b3);return _0x4cefc7[_0x528d46(0x1e7)]({'label':_0x57a0f0(_0x3a58b3,_0x528d46(0x22a)),'icon':_0x5084ab,'withText':!0x1,'tooltip':!0x0}),_0x4cefc7[_0x528d46(0x230)](_0x528d46(0x21e))['to'](this,_0x528d46(0x236)),_0x4cefc7['on'](_0x528d46(0x1f6),()=>{const _0x35df27=_0x528d46,_0xd5e456=!this[_0x35df27(0x236)];this[_0x35df27(0x218)](_0x35df27(0x22d),{'id':this['id'],'pinned':_0xd5e456});}),_0x4cefc7;}[_0x4ac2fb(0x1e8)](){const _0x1f8233=_0x4ac2fb,_0x12f369=_0x532c55(this[_0x1f8233(0x1fd)],_0x527717),_0x273b44=_0x12f369[_0x1f8233(0x20a)][_0x1f8233(0x1ff)];_0x12f369[_0x1f8233(0x226)][_0x1f8233(0x1e7)]({'label':_0x57a0f0(this[_0x1f8233(0x1fd)],_0x1f8233(0x1d6)),'icon':_0x17af50}),_0x12f369[_0x1f8233(0x20c)]='sw';const _0x4b0f90=new _0x1d853b(this[_0x1f8233(0x1fd)]);_0x4b0f90[_0x1f8233(0x223)]=_0x57a0f0(this[_0x1f8233(0x1fd)],_0x1f8233(0x1f0)),_0x4b0f90[_0x1f8233(0x1da)]=!0x0,_0x4b0f90['on'](_0x1f8233(0x1f6),()=>{const _0xa64928=_0x1f8233;this[_0xa64928(0x1f5)]=!0x0;});const _0x46650d=new _0x1d853b(this[_0x1f8233(0x1fd)]);_0x46650d[_0x1f8233(0x223)]=_0x57a0f0(this[_0x1f8233(0x1fd)],_0x1f8233(0x235)),_0x46650d[_0x1f8233(0x1da)]=!0x0,_0x46650d['on'](_0x1f8233(0x1f6),()=>{const _0x174f41=_0x1f8233;this[_0x174f41(0x231)](_0x57a0f0(this[_0x174f41(0x1fd)],_0x174f41(0x215)),this[_0x174f41(0x1f4)])[_0x174f41(0x1ee)](()=>{const _0x2540bf=_0x174f41;this[_0x2540bf(0x218)](_0x2540bf(0x208),{'id':this['id']});});});const _0x487579=new _0x1bdf2c(this[_0x1f8233(0x1fd)]),_0x1da1f2=new _0x365afd(this[_0x1f8233(0x1fd)]);_0x1da1f2[_0x1f8233(0x1ff)][_0x1f8233(0x209)](_0x4b0f90);const _0x3ffa2e=new _0x365afd(this[_0x1f8233(0x1fd)]);return _0x3ffa2e[_0x1f8233(0x1ff)][_0x1f8233(0x209)](_0x46650d),_0x487579[_0x1f8233(0x227)][_0x1f8233(0x200)]([_0x1da1f2,_0x3ffa2e]),_0x273b44[_0x1f8233(0x209)](_0x487579),_0x12f369;}[_0x4ac2fb(0x203)](_0x517404,_0x27bed3){const _0x9438e=_0x4ac2fb,_0x2ba760=new _0x3979ce(_0x517404),_0x21a38d=_0x2ba760[_0x9438e(0x20b)];return _0x2ba760[_0x9438e(0x1f8)]=_0x27bed3,_0x2ba760[_0x9438e(0x1f9)]({'on':{'keydown':_0x21a38d['to'](_0x3b45bd=>{const _0x50175f=_0x9438e;_0x50175f(0x212)==_0x3b45bd[_0x50175f(0x221)]&&this[_0x50175f(0x1e0)](_0x2ba760);})}}),_0x2ba760;}[_0x4ac2fb(0x228)](_0x16d302,_0x41f1be){const _0x32d874=_0x4ac2fb,_0x621049=new _0x1d853b(_0x16d302);return _0x621049[_0x32d874(0x1e7)]({'icon':_0x35ae4a,'withText':!0x1,'tooltip':_0x57a0f0(_0x16d302,_0x32d874(0x1f2))}),_0x621049[_0x32d874(0x1f9)]({'attributes':{'class':[_0x32d874(0x1fc)]}}),_0x621049['on'](_0x32d874(0x1f6),()=>{const _0x4fac93=_0x32d874;this[_0x4fac93(0x1e0)](_0x41f1be);}),_0x621049;}[_0x4ac2fb(0x1e0)](_0x252bc3){const _0x230aed=_0x4ac2fb,_0x176b73=_0x252bc3[_0x230aed(0x1f4)][_0x230aed(0x1f8)]||'';this[_0x230aed(0x1d5)][_0x230aed(0x1dd)]=_0x176b73,this[_0x230aed(0x1f5)]=!0x1,this[_0x230aed(0x218)](_0x230aed(0x1e1),{'id':this['id'],'title':_0x176b73});}[_0x4ac2fb(0x214)](_0x4e506d,_0x214b1a){const _0x42f3d9=_0x4ac2fb,_0x480310=new _0x1d853b(_0x4e506d);return _0x480310[_0x42f3d9(0x1e7)]({'icon':_0x315f56,'withText':!0x1,'tooltip':_0x57a0f0(_0x4e506d,_0x42f3d9(0x1df))}),_0x480310[_0x42f3d9(0x1f9)]({'attributes':{'class':[_0x42f3d9(0x1de)]}}),_0x480310['on'](_0x42f3d9(0x1f6),()=>{const _0x1714fa=_0x42f3d9;this[_0x1714fa(0x1f5)]=!0x1,_0x214b1a[_0x1714fa(0x1f8)]=this[_0x1714fa(0x1d5)][_0x1714fa(0x1dd)]||'',this[_0x1714fa(0x218)](_0x1714fa(0x1ef));}),_0x480310;}[_0x4ac2fb(0x21f)](){const _0x3989e1=_0x4ac2fb,_0x47d7fd=new _0x37d7a0(_0x3989e1(0x1e3));return _0x47d7fd[_0x3989e1(0x1e6)]=!0x0,_0x47d7fd;}[_0x4ac2fb(0x210)](_0x1d03ca){const _0x347f58=_0x4ac2fb;return this[_0x347f58(0x1d5)]&&_0x347f58(0x1ed)==typeof this[_0x347f58(0x1d5)][_0x347f58(0x1dd)]&&this[_0x347f58(0x1d5)][_0x347f58(0x1dd)][_0x347f58(0x1fe)](_0x1d03ca)?{'title':!0x0}:null;}[_0x4ac2fb(0x1e9)](_0x526fa1){const _0x41410c=_0x4ac2fb;this[_0x41410c(0x1d5)][_0x41410c(0x1e9)](_0x526fa1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1ecb(_0x42599d,_0x1e18c0){const _0xd31183=_0xd311();return _0x1ecb=function(_0x1ecb60,_0xf7feb3){_0x1ecb60=_0x1ecb60-0x66;let _0x1ca0f2=_0xd31183[_0x1ecb60];return _0x1ca0f2;},_0x1ecb(_0x42599d,_0x1e18c0);}const _0x2b422e=_0x1ecb;(function(_0x2efaf9,_0x5d2aeb){const _0x3b7810=_0x1ecb,_0x25bfde=_0x2efaf9();while(!![]){try{const _0x2d7d91=parseInt(_0x3b7810(0x6b))/0x1*(-parseInt(_0x3b7810(0xa7))/0x2)+-parseInt(_0x3b7810(0x87))/0x3+parseInt(_0x3b7810(0x7e))/0x4*(-parseInt(_0x3b7810(0x86))/0x5)+parseInt(_0x3b7810(0x8f))/0x6+parseInt(_0x3b7810(0x96))/0x7+-parseInt(_0x3b7810(0x89))/0x8+parseInt(_0x3b7810(0x9c))/0x9;if(_0x2d7d91===_0x5d2aeb)break;else _0x25bfde['push'](_0x25bfde['shift']());}catch(_0x4d9c4d){_0x25bfde['push'](_0x25bfde['shift']());}}}(_0xd311,0x3daf5));import{View as _0x4ebe7c,SearchTextView as _0x437336,FormHeaderView as _0xa9b73c,ButtonView as _0x361d00}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2fd3e7,IconCancel as _0x57154a,IconPlus as _0x40fa7a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2449f8}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x35b627}from'./aichathistorylistview.js';function _0xd311(){const _0xbb8428=['change:errorMessage','ck-ai-notification_error','children','_createListItemViews','getItem','searchView','bind','_updateViewVisibility','55117jLNmIy','errorMessage','ck-reset_all','removeItem','locale','some','push','AI_CHAT_HISTORY_HEADING','updateItemTitle','resizeButton','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','title','queryView','ck-ai-chat-history__content','div','_refreshSearch','change:isLoading','isMaximized','_createSearchView','8bjiYnK','search','isSearchViewVisible','isMainErrorViewVisible','isLoading','aiHistory','_createErrorView','element','419015GODIjc','276315YyLOSR','extendTemplate','966104FMYIFX','_createSkeletonView','clear','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-notification_error__dismiss-button','set','2214912nXKkRZ','fire','AI_CHAT_LABEL_NEW_CHAT','_createEmptyStateView','ck-ai-chat-history__empty-message','ck-ai-chat-history','indexOf','285313ZCKeRv','hasItems','skeletonView','splice','itemsViews','openChat','2505069AYLvzr','remove','add','updateTitle','change:hasItems','updateHistoryItemsWithCategories','ck-ai-chat-history__empty','updateLoadingState','sectionsView','isVisible','addMany','2YvHPjZ','render','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','fieldView','ck-hidden','sections','setTemplate','delegate','length','ck-ai-chat__start-conversation','items','ck-ai-header\x20ck-ai-header_history','ck-ai-notification','isEmptyViewVisible','mainErrorView','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateItemLoadingState','ck-rounded-corners','removeHistoryItem','execute','emptyView','bindTemplate'];_0xd311=function(){return _0xbb8428;};return _0xd311();}import{AIChatHistoryListItemView as _0x179a44}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x175bfa}from'../aichathistoryui.js';import{AISkeletonView as _0x5ba013,SKELETON_DEFINITIONS as _0x4c1e86}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x378533}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4a367c}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4ebe7c{[_0x2b422e(0x68)];[_0x2b422e(0xb6)];[_0x2b422e(0x98)];[_0x2b422e(0xbd)];[_0x2b422e(0xa4)];[_0x2b422e(0x74)];constructor(_0x4cbd86,_0x63cb7e){const _0x2d4133=_0x2b422e;super(_0x4cbd86),this[_0x2d4133(0x8e)](_0x2d4133(0x97),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x82),!0x0),this[_0x2d4133(0x8e)](_0x2d4133(0x6c),''),this[_0x2d4133(0x8e)](_0x2d4133(0x7c),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x80),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0xb5),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x81),!0x1);const _0x4ba36c=new _0xa9b73c(_0x4cbd86,{'label':_0x4a367c(_0x4cbd86,_0x2d4133(0x72)),'icon':_0x2fd3e7,'class':_0x2d4133(0xb3)});_0x63cb7e&&(this[_0x2d4133(0x74)]=_0x378533(_0x4cbd86,this),_0x4ba36c[_0x2d4133(0xc1)][_0x2d4133(0x9e)](this[_0x2d4133(0x74)])),this[_0x2d4133(0xa4)]=new _0x2449f8(_0x4cbd86,[]),this[_0x2d4133(0xa4)][_0x2d4133(0xaf)](..._0x175bfa)['to'](this),this[_0x2d4133(0xb6)]=this[_0x2d4133(0x84)](),this[_0x2d4133(0x98)]=this[_0x2d4133(0x8a)](),this[_0x2d4133(0xbd)]=this[_0x2d4133(0x92)](),this[_0x2d4133(0x68)]=this[_0x2d4133(0x7d)](),this[_0x2d4133(0xb6)][_0x2d4133(0x88)]({'attributes':{'class':[this[_0x2d4133(0xbe)]['if'](_0x2d4133(0x81),_0x2d4133(0xac),_0x414e10=>!_0x414e10)]}}),this['on'](_0x2d4133(0x7b),()=>this[_0x2d4133(0x6a)]()),this['on'](_0x2d4133(0xa0),()=>this[_0x2d4133(0x6a)]()),this['on'](_0x2d4133(0xbf),()=>this[_0x2d4133(0x6a)]()),this[_0x2d4133(0xae)]({'tag':_0x2d4133(0x79),'attributes':{'class':['ck',_0x2d4133(0x6d),_0x2d4133(0x94),_0x2d4133(0xba)],'dir':_0x2d4133(0xaa)},'children':[_0x4ba36c,{'tag':_0x2d4133(0x79),'attributes':{'class':[_0x2d4133(0x78)]},'children':[this[_0x2d4133(0x98)],this[_0x2d4133(0xb6)],this[_0x2d4133(0xbd)],this[_0x2d4133(0x68)]]}]});}[_0x2b422e(0x6a)](){const _0x14b3cb=_0x2b422e;this[_0x14b3cb(0x80)]=!this[_0x14b3cb(0x82)]&&this[_0x14b3cb(0x97)],this[_0x14b3cb(0xb5)]=!this[_0x14b3cb(0x82)]&&!this[_0x14b3cb(0x97)]&&!this[_0x14b3cb(0x6c)],this[_0x14b3cb(0x81)]=!this[_0x14b3cb(0x80)]&&!!this[_0x14b3cb(0x6c)];}[_0x2b422e(0x7d)](){const _0x7421d9=_0x2b422e,_0xa65d44=new _0x437336(this[_0x7421d9(0x6f)],{'filteredView':this[_0x7421d9(0xa4)],'queryView':{'label':_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0xa9))},'infoView':{'text':{'notFound':{'primary':_0x52062f=>_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0x75),_0x52062f),'secondary':_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0xb8))}}}}),_0x42837c=this[_0x7421d9(0x84)]();return _0x42837c[_0x7421d9(0x88)]({'attributes':{'class':[this[_0x7421d9(0xbe)]['if'](_0x7421d9(0x6c),_0x7421d9(0xac),_0x2e2b18=>!_0x2e2b18)]}}),_0xa65d44['on'](_0x7421d9(0xa8),()=>{const _0x421617=_0x7421d9;_0xa65d44[_0x421617(0xc1)][_0x421617(0x9e)](_0x42837c,0x1);}),_0xa65d44[_0x7421d9(0x88)]({'attributes':{'class':[this[_0x7421d9(0xbe)]['if'](_0x7421d9(0x80),_0x7421d9(0xac),_0x42b115=>!_0x42b115)]}}),_0xa65d44;}[_0x2b422e(0x8a)](){const _0x218243=_0x2b422e,_0x38ee3b=new _0x5ba013(this[_0x218243(0x6f)],_0x4c1e86[_0x218243(0x83)]);return _0x38ee3b[_0x218243(0x88)]({'attributes':{'class':[this[_0x218243(0xbe)]['if'](_0x218243(0x82),_0x218243(0xac),_0x1a9a96=>!_0x1a9a96)]}}),_0x38ee3b;}[_0x2b422e(0x84)](){const _0xd9e527=_0x2b422e,_0x5727dc=new _0x4ebe7c(this[_0xd9e527(0x6f)]),_0x21ab04=new _0x361d00(this[_0xd9e527(0x6f)]);_0x21ab04[_0xd9e527(0x8e)]({'withText':!0x1,'icon':_0x57154a,'class':_0xd9e527(0x8d)}),_0x21ab04[_0xd9e527(0x69)](_0xd9e527(0xa5))['to'](this,_0xd9e527(0x97),_0x31547c=>!!_0x31547c),_0x21ab04['on'](_0xd9e527(0xbc),()=>{const _0x1b19fb=_0xd9e527;this[_0x1b19fb(0x6c)]='';});const _0x81db37=this[_0xd9e527(0xbe)];return _0x5727dc[_0xd9e527(0xae)]({'tag':_0xd9e527(0x79),'attributes':{'class':['ck',_0xd9e527(0xb4),_0xd9e527(0xc0)]},'children':[{'tag':'p','children':[{'text':_0x81db37['to'](_0xd9e527(0x6c))}]},_0x21ab04]}),_0x5727dc;}[_0x2b422e(0x92)](){const _0x44cccd=_0x2b422e,_0x4d5b8f=new _0x361d00(this[_0x44cccd(0x6f)]);_0x4d5b8f[_0x44cccd(0x8e)]({'label':_0x4a367c(this[_0x44cccd(0x6f)],_0x44cccd(0x91)),'withText':!0x0,'icon':_0x40fa7a,'class':_0x44cccd(0xb1)}),_0x4d5b8f['on'](_0x44cccd(0xbc),()=>{const _0x5aa09b=_0x44cccd;this[_0x5aa09b(0x90)](_0x5aa09b(0x9b));});const _0xfb8a65=new _0x4ebe7c(this[_0x44cccd(0x6f)]);return _0xfb8a65[_0x44cccd(0xae)]({'tag':_0x44cccd(0x79),'attributes':{'class':[_0x44cccd(0xa2),this[_0x44cccd(0xbe)]['if'](_0x44cccd(0xb5),_0x44cccd(0xac),_0x40ac31=>!_0x40ac31)]},'children':[{'tag':'p','attributes':{'class':[_0x44cccd(0x93)]},'children':[_0x4a367c(this[_0x44cccd(0x6f)],_0x44cccd(0x8c))]},_0x4d5b8f]}),_0xfb8a65;}[_0x2b422e(0x66)](_0x29dc35,_0x24ed7c){const _0x259658=_0x2b422e,_0x34966e=[];for(const _0x7f26f5 of _0x29dc35){const _0x4dad7b=new _0x179a44(_0x24ed7c,_0x7f26f5);_0x4dad7b[_0x259658(0xaf)](..._0x175bfa)['to'](this),_0x34966e[_0x259658(0x71)](_0x4dad7b);}return _0x34966e;}[_0x2b422e(0xa1)](_0x491d1b){const _0x45e550=_0x2b422e,_0x425cea=this[_0x45e550(0x6f)]||'en',_0x79182a=[];for(const _0x1b8ef6 of _0x491d1b){const _0x33476d=this[_0x45e550(0x66)](_0x1b8ef6[_0x45e550(0xb2)],_0x425cea);_0x79182a[_0x45e550(0x71)](new _0x35b627(_0x425cea,{'title':_0x1b8ef6[_0x45e550(0x76)],'items':_0x33476d}));}this[_0x45e550(0xa4)][_0x45e550(0xad)]=_0x79182a,this[_0x45e550(0xa4)][_0x45e550(0xb2)][_0x45e550(0x8b)](),this[_0x45e550(0xa4)][_0x45e550(0xb2)][_0x45e550(0xa6)](_0x79182a),this[_0x45e550(0x97)]=_0x491d1b[_0x45e550(0x70)](_0x33f734=>_0x33f734[_0x45e550(0xb2)][_0x45e550(0xb0)]>0x0),this[_0x45e550(0x7a)]();}[_0x2b422e(0xbb)](_0x1a0402){const _0x2eea97=_0x2b422e;for(const _0x3b83b7 of this[_0x2eea97(0xa4)][_0x2eea97(0xad)]){const _0x1bb90f=_0x3b83b7[_0x2eea97(0x67)](_0x1a0402);if(_0x1bb90f){if(_0x3b83b7[_0x2eea97(0x6e)](_0x1bb90f),0x0===_0x3b83b7[_0x2eea97(0x9a)][_0x2eea97(0xb0)]){const _0x328142=this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0x95)](_0x3b83b7);-0x1!==_0x328142&&(this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0x99)](_0x328142,0x1),this[_0x2eea97(0xa4)][_0x2eea97(0xb2)][_0x2eea97(0x9d)](_0x3b83b7));}this[_0x2eea97(0x97)]=this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0xb0)]>0x0,this[_0x2eea97(0x7a)]();break;}}}[_0x2b422e(0x73)](_0x1e5804,_0x2148fa){const _0x55ca6e=_0x2b422e;for(const _0x350308 of this[_0x55ca6e(0xa4)][_0x55ca6e(0xad)]){const _0x28d45b=_0x350308[_0x55ca6e(0x67)](_0x1e5804);if(_0x28d45b){_0x28d45b[_0x55ca6e(0x9f)](_0x2148fa);break;}}}[_0x2b422e(0xb9)](_0x4d6ebc,_0x43e080,_0xba2395){const _0x9330e3=_0x2b422e;for(const _0x5d7395 of this[_0x9330e3(0xa4)][_0x9330e3(0xad)]){const _0xa7bf0d=_0x5d7395[_0x9330e3(0x67)](_0x4d6ebc);if(_0xa7bf0d){_0xa7bf0d[_0x9330e3(0xa3)](_0x43e080,_0xba2395);break;}}}[_0x2b422e(0x7a)](){const _0x157b3f=_0x2b422e;if(this[_0x157b3f(0x97)]){const _0x5348b0=this[_0x157b3f(0x68)][_0x157b3f(0x77)][_0x157b3f(0xab)]?.[_0x157b3f(0x85)]?.[_0x157b3f(0xb7)]||'';this[_0x157b3f(0x68)][_0x157b3f(0x7f)](_0x5348b0);}}}
23
+ const _0x3bc240=_0x3566;(function(_0x202c55,_0x101fec){const _0x5b669d=_0x3566,_0x2d8a00=_0x202c55();while(!![]){try{const _0x34d3df=parseInt(_0x5b669d(0x199))/0x1*(-parseInt(_0x5b669d(0x160))/0x2)+parseInt(_0x5b669d(0x150))/0x3*(-parseInt(_0x5b669d(0x178))/0x4)+-parseInt(_0x5b669d(0x197))/0x5*(parseInt(_0x5b669d(0x16e))/0x6)+-parseInt(_0x5b669d(0x164))/0x7*(parseInt(_0x5b669d(0x1a4))/0x8)+parseInt(_0x5b669d(0x154))/0x9*(-parseInt(_0x5b669d(0x19e))/0xa)+parseInt(_0x5b669d(0x14f))/0xb+parseInt(_0x5b669d(0x187))/0xc;if(_0x34d3df===_0x101fec)break;else _0x2d8a00['push'](_0x2d8a00['shift']());}catch(_0x38e711){_0x2d8a00['push'](_0x2d8a00['shift']());}}}(_0x4323,0x2bcac));import{View as _0x5ea6eb,SearchTextView as _0x5188f9,FormHeaderView as _0x1b7c19,ButtonView as _0x3aea82}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x38c996,IconCancel as _0x23b683,IconPlus as _0x57eb52}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x578364}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x54e369}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2fbd68}from'./aichathistorylistitemview.js';function _0x3566(_0x2cbc48,_0x392f46){const _0x432382=_0x4323();return _0x3566=function(_0x35663a,_0x279bf9){_0x35663a=_0x35663a-0x14a;let _0x416e8e=_0x432382[_0x35663a];return _0x416e8e;},_0x3566(_0x2cbc48,_0x392f46);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x348e81}from'../aichathistoryui.js';import{AISkeletonView as _0x3cdc42,SKELETON_DEFINITIONS as _0x24c0a6}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x109d61}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5d3034}from'../../aicore/utils/common-translations.js';function _0x4323(){const _0x4af6f6=['_refreshSearch','ck-ai-notification_error','627768wyUAHp','errorMessage','change:hasItems','execute','remove','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:errorMessage','ck-ai-chat-history__empty-message','_createSkeletonView','6721eaarin','18KoOHKe','children','sectionsView','ck-reset_all','3204VMjBqx','indexOf','isVisible','ck-hidden','updateHistoryItemsWithCategories','updateLoadingState','isEmptyViewVisible','isMaximized','ck-ai-chat-history__empty','setTemplate','clear','AI_CHAT_HISTORY_EMPTY_MESSAGE','4yrSOsF','sections','ck-ai-chat-history__content','_createSearchView','7wPaDGe','element','hasItems','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_LABEL','length','removeItem','bindTemplate','fieldView','div','394206BdgZtg','splice','updateItemLoadingState','locale','search','AI_CHAT_HISTORY_HEADING','title','add','bind','resizeButton','125012kABcXx','ck-ai-chat__start-conversation','_createEmptyStateView','ck-ai-notification','ck-rounded-corners','extendTemplate','fire','emptyView','ltr','ck-ai-chat-history','some','aiHistory','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','render','11841324QFRySb','_updateViewVisibility','change:isLoading','value','queryView','push','set','items','updateTitle','removeHistoryItem','itemsViews','delegate','ck-ai-notification_error__dismiss-button','skeletonView','searchView','openChat','25PUiAVV','addMany','77213CzUbPa','updateItemTitle','mainErrorView','isLoading','_createListItemViews','1660aJFbfi','isMainErrorViewVisible','ck-ai-header\x20ck-ai-header_history','isSearchViewVisible'];_0x4323=function(){return _0x4af6f6;};return _0x4323();}export class AIChatHistoryView extends _0x5ea6eb{[_0x3bc240(0x195)];[_0x3bc240(0x19b)];[_0x3bc240(0x194)];[_0x3bc240(0x17f)];[_0x3bc240(0x152)];[_0x3bc240(0x177)];constructor(_0x24c7d4,_0x1eb15b){const _0xcd6b61=_0x3bc240;super(_0x24c7d4),this[_0xcd6b61(0x18d)](_0xcd6b61(0x166),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x19c),!0x0),this[_0xcd6b61(0x18d)](_0xcd6b61(0x1a5),''),this[_0xcd6b61(0x18d)](_0xcd6b61(0x15b),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x1a1),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x15a),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x19f),!0x1);const _0x1d6baa=new _0x1b7c19(_0x24c7d4,{'label':_0x5d3034(_0x24c7d4,_0xcd6b61(0x173)),'icon':_0x38c996,'class':_0xcd6b61(0x1a0)});_0x1eb15b&&(this[_0xcd6b61(0x177)]=_0x109d61(_0x24c7d4,this),_0x1d6baa[_0xcd6b61(0x151)][_0xcd6b61(0x175)](this[_0xcd6b61(0x177)])),this[_0xcd6b61(0x152)]=new _0x578364(_0x24c7d4,[]),this[_0xcd6b61(0x152)][_0xcd6b61(0x192)](..._0x348e81)['to'](this),this[_0xcd6b61(0x19b)]=this[_0xcd6b61(0x184)](),this[_0xcd6b61(0x194)]=this[_0xcd6b61(0x14e)](),this[_0xcd6b61(0x17f)]=this[_0xcd6b61(0x17a)](),this[_0xcd6b61(0x195)]=this[_0xcd6b61(0x163)](),this[_0xcd6b61(0x19b)][_0xcd6b61(0x17d)]({'attributes':{'class':[this[_0xcd6b61(0x16b)]['if'](_0xcd6b61(0x19f),_0xcd6b61(0x157),_0x7e5569=>!_0x7e5569)]}}),this['on'](_0xcd6b61(0x189),()=>this[_0xcd6b61(0x188)]()),this['on'](_0xcd6b61(0x1a6),()=>this[_0xcd6b61(0x188)]()),this['on'](_0xcd6b61(0x14c),()=>this[_0xcd6b61(0x188)]()),this[_0xcd6b61(0x15d)]({'tag':_0xcd6b61(0x16d),'attributes':{'class':['ck',_0xcd6b61(0x153),_0xcd6b61(0x181),_0xcd6b61(0x17c)],'dir':_0xcd6b61(0x180)},'children':[_0x1d6baa,{'tag':_0xcd6b61(0x16d),'attributes':{'class':[_0xcd6b61(0x162)]},'children':[this[_0xcd6b61(0x194)],this[_0xcd6b61(0x19b)],this[_0xcd6b61(0x17f)],this[_0xcd6b61(0x195)]]}]});}[_0x3bc240(0x188)](){const _0x27a692=_0x3bc240;this[_0x27a692(0x1a1)]=!this[_0x27a692(0x19c)]&&this[_0x27a692(0x166)],this[_0x27a692(0x15a)]=!this[_0x27a692(0x19c)]&&!this[_0x27a692(0x166)]&&!this[_0x27a692(0x1a5)],this[_0x27a692(0x19f)]=!this[_0x27a692(0x1a1)]&&!!this[_0x27a692(0x1a5)];}[_0x3bc240(0x163)](){const _0x155f77=_0x3bc240,_0x4264b4=new _0x5188f9(this[_0x155f77(0x171)],{'filteredView':this[_0x155f77(0x152)],'queryView':{'label':_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x168))},'infoView':{'text':{'notFound':{'primary':_0x3b4144=>_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x14b),_0x3b4144),'secondary':_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x167))}}}}),_0x55b3e9=this[_0x155f77(0x184)]();return _0x55b3e9[_0x155f77(0x17d)]({'attributes':{'class':[this[_0x155f77(0x16b)]['if'](_0x155f77(0x1a5),_0x155f77(0x157),_0x24679a=>!_0x24679a)]}}),_0x4264b4['on'](_0x155f77(0x186),()=>{const _0x132f34=_0x155f77;_0x4264b4[_0x132f34(0x151)][_0x132f34(0x175)](_0x55b3e9,0x1);}),_0x4264b4[_0x155f77(0x17d)]({'attributes':{'class':[this[_0x155f77(0x16b)]['if'](_0x155f77(0x1a1),_0x155f77(0x157),_0x36fc89=>!_0x36fc89)]}}),_0x4264b4;}[_0x3bc240(0x14e)](){const _0x40530c=_0x3bc240,_0x5ce99a=new _0x3cdc42(this[_0x40530c(0x171)],_0x24c0a6[_0x40530c(0x183)]);return _0x5ce99a[_0x40530c(0x17d)]({'attributes':{'class':[this[_0x40530c(0x16b)]['if'](_0x40530c(0x19c),_0x40530c(0x157),_0x52c8e1=>!_0x52c8e1)]}}),_0x5ce99a;}[_0x3bc240(0x184)](){const _0x52810c=_0x3bc240,_0x37f4cf=new _0x5ea6eb(this[_0x52810c(0x171)]),_0x2024cb=new _0x3aea82(this[_0x52810c(0x171)]);_0x2024cb[_0x52810c(0x18d)]({'withText':!0x1,'icon':_0x23b683,'class':_0x52810c(0x193)}),_0x2024cb[_0x52810c(0x176)](_0x52810c(0x156))['to'](this,_0x52810c(0x166),_0x15a151=>!!_0x15a151),_0x2024cb['on'](_0x52810c(0x1a7),()=>{const _0x17f001=_0x52810c;this[_0x17f001(0x1a5)]='';});const _0x1a4d7b=this[_0x52810c(0x16b)];return _0x37f4cf[_0x52810c(0x15d)]({'tag':_0x52810c(0x16d),'attributes':{'class':['ck',_0x52810c(0x17b),_0x52810c(0x1a3)]},'children':[{'tag':'p','children':[{'text':_0x1a4d7b['to'](_0x52810c(0x1a5))}]},_0x2024cb]}),_0x37f4cf;}[_0x3bc240(0x17a)](){const _0x25a15a=_0x3bc240,_0x5100e8=new _0x3aea82(this[_0x25a15a(0x171)]);_0x5100e8[_0x25a15a(0x18d)]({'label':_0x5d3034(this[_0x25a15a(0x171)],_0x25a15a(0x185)),'withText':!0x0,'icon':_0x57eb52,'class':_0x25a15a(0x179)}),_0x5100e8['on'](_0x25a15a(0x1a7),()=>{const _0x2de3de=_0x25a15a;this[_0x2de3de(0x17e)](_0x2de3de(0x196));});const _0x3086d4=new _0x5ea6eb(this[_0x25a15a(0x171)]);return _0x3086d4[_0x25a15a(0x15d)]({'tag':_0x25a15a(0x16d),'attributes':{'class':[_0x25a15a(0x15c),this[_0x25a15a(0x16b)]['if'](_0x25a15a(0x15a),_0x25a15a(0x157),_0x5b80fd=>!_0x5b80fd)]},'children':[{'tag':'p','attributes':{'class':[_0x25a15a(0x14d)]},'children':[_0x5d3034(this[_0x25a15a(0x171)],_0x25a15a(0x15f))]},_0x5100e8]}),_0x3086d4;}[_0x3bc240(0x19d)](_0x3837ae,_0x11bfad){const _0x2670a3=_0x3bc240,_0x31b72d=[];for(const _0x31179a of _0x3837ae){const _0x21f21a=new _0x2fbd68(_0x11bfad,_0x31179a);_0x21f21a[_0x2670a3(0x192)](..._0x348e81)['to'](this),_0x31b72d[_0x2670a3(0x18c)](_0x21f21a);}return _0x31b72d;}[_0x3bc240(0x158)](_0x32f7a1){const _0x3906c0=_0x3bc240,_0x4314eb=this[_0x3906c0(0x171)]||'en',_0x31d620=[];for(const _0x5a3527 of _0x32f7a1){const _0x599ad8=this[_0x3906c0(0x19d)](_0x5a3527[_0x3906c0(0x18e)],_0x4314eb);_0x31d620[_0x3906c0(0x18c)](new _0x54e369(_0x4314eb,{'title':_0x5a3527[_0x3906c0(0x174)],'items':_0x599ad8}));}this[_0x3906c0(0x152)][_0x3906c0(0x161)]=_0x31d620,this[_0x3906c0(0x152)][_0x3906c0(0x18e)][_0x3906c0(0x15e)](),this[_0x3906c0(0x152)][_0x3906c0(0x18e)][_0x3906c0(0x198)](_0x31d620),this[_0x3906c0(0x166)]=_0x32f7a1[_0x3906c0(0x182)](_0x217abb=>_0x217abb[_0x3906c0(0x18e)][_0x3906c0(0x169)]>0x0),this[_0x3906c0(0x1a2)]();}[_0x3bc240(0x190)](_0x572ffe){const _0x4b9ac7=_0x3bc240;for(const _0xcae5e1 of this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)]){const _0x435f07=_0xcae5e1[_0x4b9ac7(0x14a)](_0x572ffe);if(_0x435f07){if(_0xcae5e1[_0x4b9ac7(0x16a)](_0x435f07),0x0===_0xcae5e1[_0x4b9ac7(0x191)][_0x4b9ac7(0x169)]){const _0x4ef223=this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x155)](_0xcae5e1);-0x1!==_0x4ef223&&(this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x16f)](_0x4ef223,0x1),this[_0x4b9ac7(0x152)][_0x4b9ac7(0x18e)][_0x4b9ac7(0x1a8)](_0xcae5e1));}this[_0x4b9ac7(0x166)]=this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x169)]>0x0,this[_0x4b9ac7(0x1a2)]();break;}}}[_0x3bc240(0x19a)](_0x3ffb19,_0x1d951c){const _0x44c19d=_0x3bc240;for(const _0x3f5325 of this[_0x44c19d(0x152)][_0x44c19d(0x161)]){const _0x330c98=_0x3f5325[_0x44c19d(0x14a)](_0x3ffb19);if(_0x330c98){_0x330c98[_0x44c19d(0x18f)](_0x1d951c);break;}}}[_0x3bc240(0x170)](_0x27c82d,_0xc86a84,_0x98a7dc){const _0x5f521f=_0x3bc240;for(const _0x1a6095 of this[_0x5f521f(0x152)][_0x5f521f(0x161)]){const _0x1654ed=_0x1a6095[_0x5f521f(0x14a)](_0x27c82d);if(_0x1654ed){_0x1654ed[_0x5f521f(0x159)](_0xc86a84,_0x98a7dc);break;}}}[_0x3bc240(0x1a2)](){const _0x36d468=_0x3bc240;if(this[_0x36d468(0x166)]){const _0x1f2f33=this[_0x36d468(0x195)][_0x36d468(0x18b)][_0x36d468(0x16c)]?.[_0x36d468(0x165)]?.[_0x36d468(0x18a)]||'';this[_0x36d468(0x195)][_0x36d468(0x172)](_0x1f2f33);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3969db=_0x113e;(function(_0x26f434,_0x5db86a){const _0x584339=_0x113e,_0x13434a=_0x26f434();while(!![]){try{const _0x35a251=parseInt(_0x584339(0x206))/0x1+parseInt(_0x584339(0x20d))/0x2*(-parseInt(_0x584339(0x224))/0x3)+-parseInt(_0x584339(0x214))/0x4+-parseInt(_0x584339(0x1df))/0x5*(-parseInt(_0x584339(0x221))/0x6)+-parseInt(_0x584339(0x21f))/0x7+parseInt(_0x584339(0x1e7))/0x8+parseInt(_0x584339(0x21d))/0x9*(parseInt(_0x584339(0x207))/0xa);if(_0x35a251===_0x5db86a)break;else _0x13434a['push'](_0x13434a['shift']());}catch(_0x34f20f){_0x13434a['push'](_0x13434a['shift']());}}}(_0x192b,0xe0a39));import{AIChatUI as _0x27b83a}from'../aichat/aichatui.js';import{ContextPlugin as _0x42eed2}from'ckeditor5/src/core.js';function _0x192b(){const _0xc2e18c=['execute','setWebSearch','_shortcutsView','_aiChatUI','606344DLFnCB','source','config','destroy','has','chat','isPremiumPlugin','language','view','REVIEW','forEach','hasFeedItem','get','_injectShortcuts','setReasoning','ai-chat-shortcuts-review-mode-not-found','isFromHistory','label','setModel','chat-shortcuts','chatModels','isOfficialPlugin','_runChatShortcut','focusPromptInput','AITabs','check','activateTab','_validateShortcuts','plugins','_shortcuts','_runReviewShortcut','1719376WZEYgb','189170GszVcn','reviewMode','length','prompt','AIReviewModeUI','CHAT','972172OSgtqP','element','removeFeedItem','string','_switchTab','AITranslateUI','render','6578608wXesCS','setPromptInputValue','activeConversation','conversationCreated','ai.chat.shortcuts','custom','context','pluginName','type','1395YnTebI','AIChat','8192499CySbQg','ai-chat-shortcuts-ai-tabs-not-found','12828ggbZOU','_removeShortcuts','review','9lbJUzA','runReviewCheck','params','translate','values','includes','ai-chat-shortcuts-translate-not-found','interactionStarted','AIChatShortcuts','addCurrentDocumentToChatContext','_executeShortcut','ai-chat-shortcuts-invalid-config','args','find','sendMessage','init','fire','_runTranslateShortcut','addFeedItemCustomElement','requires','TRANSLATE','AIChatController','getDefault','1090GxdFEg','getModel','locale','listenTo'];_0x192b=function(){return _0xc2e18c;};return _0x192b();}import{AIChatShortcutsView as _0x4e2e0b}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x23529f}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';function _0x113e(_0x50d66a,_0x532c33){const _0x192ba0=_0x192b();return _0x113e=function(_0x113ec1,_0x1442b4){_0x113ec1=_0x113ec1-0x1dd;let _0x3e63d7=_0x192ba0[_0x113ec1];return _0x3e63d7;},_0x113e(_0x50d66a,_0x532c33);}const Ut=_0x3969db(0x1fa);export var AIChatShortcutType;!function(_0x1f7546){const _0x4b6cb8=_0x3969db;_0x1f7546[_0x4b6cb8(0x20c)]=_0x4b6cb8(0x1ec),_0x1f7546[_0x4b6cb8(0x1f0)]=_0x4b6cb8(0x223),_0x1f7546[_0x4b6cb8(0x238)]=_0x4b6cb8(0x227);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x42eed2{[_0x3969db(0x204)];[_0x3969db(0x1e5)];[_0x3969db(0x1e6)];static get[_0x3969db(0x237)](){return[_0x27b83a];}static get[_0x3969db(0x21b)](){const _0xa99c6e=_0x3969db;return _0xa99c6e(0x22c);}static get[_0x3969db(0x1fc)](){return!0x0;}static get[_0x3969db(0x1ed)](){return!0x0;}[_0x3969db(0x233)](){const _0x43f5cf=_0x3969db;this[_0x43f5cf(0x1e6)]=this[_0x43f5cf(0x21a)][_0x43f5cf(0x203)][_0x43f5cf(0x1f3)](_0x27b83a),this[_0x43f5cf(0x204)]=this[_0x43f5cf(0x21a)][_0x43f5cf(0x1e9)][_0x43f5cf(0x1f3)](_0x43f5cf(0x218))??[];const _0x1611b8=this[_0x43f5cf(0x21a)][_0x43f5cf(0x203)][_0x43f5cf(0x1f3)](_0x43f5cf(0x1dd));this[_0x43f5cf(0x204)][_0x43f5cf(0x209)]&&(this[_0x43f5cf(0x202)](),this[_0x43f5cf(0x1e6)]['on'](_0x43f5cf(0x217),()=>{const _0x3e3fd2=_0x43f5cf;_0x1611b8[_0x3e3fd2(0x216)][_0x3e3fd2(0x1f7)]||this[_0x3e3fd2(0x1f4)]();}),this[_0x43f5cf(0x1e2)](_0x1611b8,_0x43f5cf(0x22b),()=>{const _0x3de327=_0x43f5cf;this[_0x3de327(0x222)]();}));}[_0x3969db(0x202)](){const _0x1c0b6f=_0x3969db,_0x3b632a=Object[_0x1c0b6f(0x228)](AIChatShortcutType);this[_0x1c0b6f(0x204)][_0x1c0b6f(0x1f1)](_0x43dbb6=>{const _0x5a2c7e=_0x1c0b6f;let _0x27f8e8=!0x0;if(_0x43dbb6['id']&&_0x43dbb6[_0x5a2c7e(0x1f8)]&&_0x3b632a[_0x5a2c7e(0x229)](_0x43dbb6[_0x5a2c7e(0x21c)])?_0x5a2c7e(0x1ec)===_0x43dbb6[_0x5a2c7e(0x21c)]&&(_0x27f8e8=_0x5a2c7e(0x210)==typeof _0x43dbb6[_0x5a2c7e(0x20a)]):_0x27f8e8=!0x1,!_0x27f8e8)throw new _0x23529f(_0x5a2c7e(0x22f),this[_0x5a2c7e(0x21a)],{'shortcut':_0x43dbb6});});}[_0x3969db(0x1f4)](){const _0xa69b8e=_0x3969db,_0x387936=this[_0xa69b8e(0x21a)][_0xa69b8e(0x203)][_0xa69b8e(0x1f3)](_0x27b83a);this[_0xa69b8e(0x1e5)]=new _0x4e2e0b(this[_0xa69b8e(0x21a)][_0xa69b8e(0x1e1)],this[_0xa69b8e(0x204)]),this[_0xa69b8e(0x1e5)][_0xa69b8e(0x213)](),_0x387936[_0xa69b8e(0x236)](this[_0xa69b8e(0x1e5)][_0xa69b8e(0x20e)],Ut),this[_0xa69b8e(0x1e5)]['on'](_0xa69b8e(0x1e3),_0x394073=>{const _0x293313=_0xa69b8e,_0x43fc1b=_0x394073[_0x293313(0x1e8)]['id'];this[_0x293313(0x22e)](_0x43fc1b);});}[_0x3969db(0x222)](){const _0xb25d23=_0x3969db,_0x53e50f=this[_0xb25d23(0x21a)][_0xb25d23(0x203)][_0xb25d23(0x1f3)](_0x27b83a);_0x53e50f[_0xb25d23(0x1f2)](Ut)&&_0x53e50f[_0xb25d23(0x20f)](Ut),this[_0xb25d23(0x1e5)]?.[_0xb25d23(0x1ea)]();}[_0x3969db(0x22e)](_0x9f1c1){const _0x26d14b=_0x3969db,_0x4f0138=this[_0x26d14b(0x204)][_0x26d14b(0x231)](_0x1727de=>_0x1727de['id']===_0x9f1c1),_0x1d2009=_0x4f0138[_0x26d14b(0x21c)];_0x26d14b(0x1ec)===_0x1d2009?this[_0x26d14b(0x1fd)](_0x4f0138):_0x26d14b(0x223)===_0x1d2009?_0x4f0138[_0x26d14b(0x200)]?this[_0x26d14b(0x205)](_0x4f0138):this[_0x26d14b(0x211)](_0x26d14b(0x208)):_0x26d14b(0x227)===_0x1d2009&&(_0x4f0138[_0x26d14b(0x1ee)]?this[_0x26d14b(0x235)](_0x4f0138):this[_0x26d14b(0x211)](_0x26d14b(0x227)));}[_0x3969db(0x211)](_0x42893f){const _0xc54a61=_0x3969db;if(!this[_0xc54a61(0x21a)][_0xc54a61(0x203)][_0xc54a61(0x1eb)](_0xc54a61(0x1ff)))throw new _0x23529f(_0xc54a61(0x220),this[_0xc54a61(0x21a)],{'tabName':_0x42893f});this[_0xc54a61(0x21a)][_0xc54a61(0x203)][_0xc54a61(0x1f3)](_0xc54a61(0x1ff))[_0xc54a61(0x1ef)][_0xc54a61(0x201)](_0x42893f);}async[_0x3969db(0x1fd)]({prompt:_0x3afb4a,draftMode:_0xe4fd68,useWebSearch:_0x1bbe96=!0x1,useReasoning:_0x36cefa=!0x1,model:_0x164761}){const _0x3396ae=_0x3969db,_0x4528ab=this[_0x3396ae(0x21a)][_0x3396ae(0x203)][_0x3396ae(0x1f3)](_0x3396ae(0x21e)),_0x3afd41=this[_0x3396ae(0x21a)][_0x3396ae(0x203)][_0x3396ae(0x1f3)](_0x3396ae(0x1dd)),_0x544c59=_0x3afd41[_0x3396ae(0x216)];let _0x4a819c;_0x4a819c=_0x164761?await _0x544c59[_0x3396ae(0x1fb)][_0x3396ae(0x1e0)](_0x164761):await _0x544c59[_0x3396ae(0x1fb)][_0x3396ae(0x1de)](),_0x4a819c&&await _0x544c59[_0x3396ae(0x1f9)](_0x4a819c),_0x544c59[_0x3396ae(0x1e4)](_0x1bbe96),_0x544c59[_0x3396ae(0x1f5)](_0x36cefa),_0x3afd41[_0x3396ae(0x22d)](),_0xe4fd68?(this[_0x3396ae(0x1e6)][_0x3396ae(0x215)](_0x3afb4a),this[_0x3396ae(0x1e6)][_0x3396ae(0x1fe)](!0x0)):_0x4528ab[_0x3396ae(0x232)]({'message':_0x3afb4a});}[_0x3969db(0x205)]({check:_0x3c0688,model:_0xc89278,prompt:_0x156dfa,params:_0x418e87}){const _0x2257fe=_0x3969db;if(!this[_0x2257fe(0x21a)][_0x2257fe(0x203)][_0x2257fe(0x1eb)](_0x2257fe(0x20b)))throw new _0x23529f(_0x2257fe(0x1f6),this[_0x2257fe(0x21a)]);this[_0x2257fe(0x211)](_0x2257fe(0x208));const _0x417046={'id':_0x3c0688,'isCustom':_0x2257fe(0x219)===_0x3c0688};_0xc89278&&_0x156dfa&&(_0x417046[_0x2257fe(0x230)]={'model':_0xc89278,'prompt':_0x156dfa}),_0x418e87&&(_0x417046[_0x2257fe(0x226)]=_0x418e87),this[_0x2257fe(0x21a)][_0x2257fe(0x203)][_0x2257fe(0x1f3)](_0x2257fe(0x20b))[_0x2257fe(0x234)](_0x2257fe(0x225),_0x417046);}[_0x3969db(0x235)]({language:_0x1baf8f}){const _0x5bf8e8=_0x3969db;if(!this[_0x5bf8e8(0x21a)][_0x5bf8e8(0x203)][_0x5bf8e8(0x1eb)](_0x5bf8e8(0x212)))throw new _0x23529f(_0x5bf8e8(0x22a),this[_0x5bf8e8(0x21a)]);this[_0x5bf8e8(0x211)](_0x5bf8e8(0x227)),this[_0x5bf8e8(0x21a)][_0x5bf8e8(0x203)][_0x5bf8e8(0x1f3)](_0x5bf8e8(0x212))[_0x5bf8e8(0x234)](_0x5bf8e8(0x225),{'id':_0x1baf8f,'args':{'language':_0x1baf8f}});}}
23
+ const _0xf0af77=_0x3a78;(function(_0x455874,_0x11bb7c){const _0x314b04=_0x3a78,_0x231848=_0x455874();while(!![]){try{const _0xce5d50=parseInt(_0x314b04(0x1ac))/0x1*(parseInt(_0x314b04(0x1e3))/0x2)+parseInt(_0x314b04(0x1e2))/0x3*(parseInt(_0x314b04(0x1e1))/0x4)+parseInt(_0x314b04(0x1ab))/0x5+-parseInt(_0x314b04(0x1d2))/0x6*(-parseInt(_0x314b04(0x1de))/0x7)+parseInt(_0x314b04(0x1bc))/0x8+parseInt(_0x314b04(0x1ba))/0x9*(parseInt(_0x314b04(0x1b1))/0xa)+-parseInt(_0x314b04(0x1a2))/0xb*(parseInt(_0x314b04(0x1a5))/0xc);if(_0xce5d50===_0x11bb7c)break;else _0x231848['push'](_0x231848['shift']());}catch(_0x5274e5){_0x231848['push'](_0x231848['shift']());}}}(_0x29c8,0x25149));import{AIChatUI as _0x32b134}from'../aichat/aichatui.js';import{ContextPlugin as _0x2ea68f}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x3c6327}from'./ui/aichatshortcutsview.js';function _0x29c8(){const _0x6813db=['6eZafeX','prompt','forEach','hasFeedItem','label','reviewMode','string','get','AITranslateUI','type','CHAT','activeConversation','2110017YqGECj','_shortcuts','translate','60TdCKIR','59439mtSTwZ','179056WYlrym','AITabs','AIChatController','_runTranslateShortcut','destroy','review','AIChat','_executeShortcut','execute','element','params','config','plugins','interactionStarted','removeFeedItem','context','ai-chat-shortcuts-ai-tabs-not-found','length','fire','focusPromptInput','TRANSLATE','_shortcutsView','find','ai.chat.shortcuts','check','addFeedItemCustomElement','AIReviewModeUI','_validateShortcuts','chatModels','517QfILBv','activateTab','custom','307428cQcXEi','sendMessage','isPremiumPlugin','setReasoning','init','setPromptInputValue','1280830xpFldw','1TNZefX','source','_injectShortcuts','language','pluginName','10oMKYaS','_runChatShortcut','values','chat','locale','runReviewCheck','ai-chat-shortcuts-translate-not-found','ai-chat-shortcuts-review-mode-not-found','getModel','1932129lntwPH','conversationCreated','1575784zzFMkB','setModel','_removeShortcuts','requires','_runReviewShortcut','listenTo','addCurrentDocumentToChatContext','chat-shortcuts','includes','has','ai-chat-shortcuts-invalid-config','REVIEW','setWebSearch','_switchTab','view','AIChatShortcuts','getDefault','isFromHistory','args','isOfficialPlugin','_aiChatUI','render'];_0x29c8=function(){return _0x6813db;};return _0x29c8();}import{CKEditorError as _0x3a66bd}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0xf0af77(0x1c3);function _0x3a78(_0x1d5fbd,_0x50c64e){const _0x29c874=_0x29c8();return _0x3a78=function(_0x3a7896,_0x294c41){_0x3a7896=_0x3a7896-0x19d;let _0x3b620a=_0x29c874[_0x3a7896];return _0x3b620a;},_0x3a78(_0x1d5fbd,_0x50c64e);}export var AIChatShortcutType;!function(_0x2999bb){const _0x3b8b62=_0xf0af77;_0x2999bb[_0x3b8b62(0x1dc)]=_0x3b8b62(0x1b4),_0x2999bb[_0x3b8b62(0x1c7)]=_0x3b8b62(0x1e8),_0x2999bb[_0x3b8b62(0x1f7)]=_0x3b8b62(0x1e0);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x2ea68f{[_0xf0af77(0x1df)];[_0xf0af77(0x1f8)];[_0xf0af77(0x1d0)];static get[_0xf0af77(0x1bf)](){return[_0x32b134];}static get[_0xf0af77(0x1b0)](){const _0x3ee06a=_0xf0af77;return _0x3ee06a(0x1cb);}static get[_0xf0af77(0x1cf)](){return!0x0;}static get[_0xf0af77(0x1a7)](){return!0x0;}[_0xf0af77(0x1a9)](){const _0x56e493=_0xf0af77;this[_0x56e493(0x1d0)]=this[_0x56e493(0x1f2)][_0x56e493(0x1ef)][_0x56e493(0x1d9)](_0x32b134),this[_0x56e493(0x1df)]=this[_0x56e493(0x1f2)][_0x56e493(0x1ee)][_0x56e493(0x1d9)](_0x56e493(0x1fa))??[];const _0x567186=this[_0x56e493(0x1f2)][_0x56e493(0x1ef)][_0x56e493(0x1d9)](_0x56e493(0x1e5));this[_0x56e493(0x1df)][_0x56e493(0x1f4)]&&(this[_0x56e493(0x1a0)](),this[_0x56e493(0x1d0)]['on'](_0x56e493(0x1bb),()=>{const _0x128602=_0x56e493;_0x567186[_0x128602(0x1dd)][_0x128602(0x1cd)]||this[_0x128602(0x1ae)]();}),this[_0x56e493(0x1c1)](_0x567186,_0x56e493(0x1f0),()=>{const _0x353e34=_0x56e493;this[_0x353e34(0x1be)]();}));}[_0xf0af77(0x1a0)](){const _0x2043c2=_0xf0af77,_0x5e11f4=Object[_0x2043c2(0x1b3)](AIChatShortcutType);this[_0x2043c2(0x1df)][_0x2043c2(0x1d4)](_0x21e2dc=>{const _0x54191d=_0x2043c2;let _0x22831b=!0x0;if(_0x21e2dc['id']&&_0x21e2dc[_0x54191d(0x1d6)]&&_0x5e11f4[_0x54191d(0x1c4)](_0x21e2dc[_0x54191d(0x1db)])?_0x54191d(0x1b4)===_0x21e2dc[_0x54191d(0x1db)]&&(_0x22831b=_0x54191d(0x1d8)==typeof _0x21e2dc[_0x54191d(0x1d3)]):_0x22831b=!0x1,!_0x22831b)throw new _0x3a66bd(_0x54191d(0x1c6),this[_0x54191d(0x1f2)],{'shortcut':_0x21e2dc});});}[_0xf0af77(0x1ae)](){const _0x356e3b=_0xf0af77,_0xa75df0=this[_0x356e3b(0x1f2)][_0x356e3b(0x1ef)][_0x356e3b(0x1d9)](_0x32b134);this[_0x356e3b(0x1f8)]=new _0x3c6327(this[_0x356e3b(0x1f2)][_0x356e3b(0x1b5)],this[_0x356e3b(0x1df)]),this[_0x356e3b(0x1f8)][_0x356e3b(0x1d1)](),_0xa75df0[_0x356e3b(0x19e)](this[_0x356e3b(0x1f8)][_0x356e3b(0x1ec)],Ut),this[_0x356e3b(0x1f8)]['on'](_0x356e3b(0x1eb),_0x4eba19=>{const _0x84c7c2=_0x356e3b,_0x553d45=_0x4eba19[_0x84c7c2(0x1ad)]['id'];this[_0x84c7c2(0x1ea)](_0x553d45);});}[_0xf0af77(0x1be)](){const _0x28bf11=_0xf0af77,_0x35db94=this[_0x28bf11(0x1f2)][_0x28bf11(0x1ef)][_0x28bf11(0x1d9)](_0x32b134);_0x35db94[_0x28bf11(0x1d5)](Ut)&&_0x35db94[_0x28bf11(0x1f1)](Ut),this[_0x28bf11(0x1f8)]?.[_0x28bf11(0x1e7)]();}[_0xf0af77(0x1ea)](_0x28dd6f){const _0x272d72=_0xf0af77,_0x36e451=this[_0x272d72(0x1df)][_0x272d72(0x1f9)](_0x4001fb=>_0x4001fb['id']===_0x28dd6f),_0x5935c4=_0x36e451[_0x272d72(0x1db)];_0x272d72(0x1b4)===_0x5935c4?this[_0x272d72(0x1b2)](_0x36e451):_0x272d72(0x1e8)===_0x5935c4?_0x36e451[_0x272d72(0x19d)]?this[_0x272d72(0x1c0)](_0x36e451):this[_0x272d72(0x1c9)](_0x272d72(0x1d7)):_0x272d72(0x1e0)===_0x5935c4&&(_0x36e451[_0x272d72(0x1af)]?this[_0x272d72(0x1e6)](_0x36e451):this[_0x272d72(0x1c9)](_0x272d72(0x1e0)));}[_0xf0af77(0x1c9)](_0x19d9ee){const _0x10f84f=_0xf0af77;if(!this[_0x10f84f(0x1f2)][_0x10f84f(0x1ef)][_0x10f84f(0x1c5)](_0x10f84f(0x1e4)))throw new _0x3a66bd(_0x10f84f(0x1f3),this[_0x10f84f(0x1f2)],{'tabName':_0x19d9ee});this[_0x10f84f(0x1f2)][_0x10f84f(0x1ef)][_0x10f84f(0x1d9)](_0x10f84f(0x1e4))[_0x10f84f(0x1ca)][_0x10f84f(0x1a3)](_0x19d9ee);}async[_0xf0af77(0x1b2)]({prompt:_0x4087e7,draftMode:_0x5e7078,useWebSearch:_0x57707c=!0x1,useReasoning:_0x466453=!0x1,model:_0x1d433b}){const _0x33aa4c=_0xf0af77,_0x22fd98=this[_0x33aa4c(0x1f2)][_0x33aa4c(0x1ef)][_0x33aa4c(0x1d9)](_0x33aa4c(0x1e9)),_0x55dee3=this[_0x33aa4c(0x1f2)][_0x33aa4c(0x1ef)][_0x33aa4c(0x1d9)](_0x33aa4c(0x1e5)),_0x5ecea1=_0x55dee3[_0x33aa4c(0x1dd)];let _0x33ff05;_0x33ff05=_0x1d433b?await _0x5ecea1[_0x33aa4c(0x1a1)][_0x33aa4c(0x1b9)](_0x1d433b):await _0x5ecea1[_0x33aa4c(0x1a1)][_0x33aa4c(0x1cc)](),_0x33ff05&&await _0x5ecea1[_0x33aa4c(0x1bd)](_0x33ff05),_0x5ecea1[_0x33aa4c(0x1c8)](_0x57707c),_0x5ecea1[_0x33aa4c(0x1a8)](_0x466453),_0x55dee3[_0x33aa4c(0x1c2)](),_0x5e7078?(this[_0x33aa4c(0x1d0)][_0x33aa4c(0x1aa)](_0x4087e7),this[_0x33aa4c(0x1d0)][_0x33aa4c(0x1f6)](!0x0)):_0x22fd98[_0x33aa4c(0x1a6)]({'message':_0x4087e7});}[_0xf0af77(0x1c0)]({check:_0x5e81de,model:_0x1150d2,prompt:_0x3287fb,params:_0x4a399e}){const _0x9be03=_0xf0af77;if(!this[_0x9be03(0x1f2)][_0x9be03(0x1ef)][_0x9be03(0x1c5)](_0x9be03(0x19f)))throw new _0x3a66bd(_0x9be03(0x1b8),this[_0x9be03(0x1f2)]);this[_0x9be03(0x1c9)](_0x9be03(0x1d7));const _0x2b6943={'id':_0x5e81de,'isCustom':_0x9be03(0x1a4)===_0x5e81de};_0x1150d2&&_0x3287fb&&(_0x2b6943[_0x9be03(0x1ce)]={'model':_0x1150d2,'prompt':_0x3287fb}),_0x4a399e&&(_0x2b6943[_0x9be03(0x1ed)]=_0x4a399e),this[_0x9be03(0x1f2)][_0x9be03(0x1ef)][_0x9be03(0x1d9)](_0x9be03(0x19f))[_0x9be03(0x1f5)](_0x9be03(0x1b6),_0x2b6943);}[_0xf0af77(0x1e6)]({language:_0x535f60}){const _0x1c453a=_0xf0af77;if(!this[_0x1c453a(0x1f2)][_0x1c453a(0x1ef)][_0x1c453a(0x1c5)](_0x1c453a(0x1da)))throw new _0x3a66bd(_0x1c453a(0x1b7),this[_0x1c453a(0x1f2)]);this[_0x1c453a(0x1c9)](_0x1c453a(0x1e0)),this[_0x1c453a(0x1f2)][_0x1c453a(0x1ef)][_0x1c453a(0x1d9)](_0x1c453a(0x1da))[_0x1c453a(0x1f5)](_0x1c453a(0x1b6),{'id':_0x535f60,'args':{'language':_0x535f60}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2edbe8,_0x4b54a1){const _0x4ec920=_0x1e2a,_0x3d22a8=_0x2edbe8();while(!![]){try{const _0x1534bc=-parseInt(_0x4ec920(0x1fe))/0x1*(parseInt(_0x4ec920(0x200))/0x2)+-parseInt(_0x4ec920(0x1ef))/0x3*(-parseInt(_0x4ec920(0x1f6))/0x4)+-parseInt(_0x4ec920(0x201))/0x5*(-parseInt(_0x4ec920(0x1f3))/0x6)+parseInt(_0x4ec920(0x1f5))/0x7*(-parseInt(_0x4ec920(0x1f9))/0x8)+-parseInt(_0x4ec920(0x1f4))/0x9*(parseInt(_0x4ec920(0x1f7))/0xa)+-parseInt(_0x4ec920(0x1fa))/0xb+parseInt(_0x4ec920(0x1fc))/0xc*(parseInt(_0x4ec920(0x1f0))/0xd);if(_0x1534bc===_0x4b54a1)break;else _0x3d22a8['push'](_0x3d22a8['shift']());}catch(_0x31dc35){_0x3d22a8['push'](_0x3d22a8['shift']());}}}(_0x3c58,0xe34ad));import{ButtonView as _0x584307}from'ckeditor5/src/ui.js';function _0x1e2a(_0x9ca1bc,_0x27d2a6){const _0x3c584a=_0x3c58();return _0x1e2a=function(_0x1e2ad6,_0xdd997f){_0x1e2ad6=_0x1e2ad6-0x1ee;let _0x4cebd2=_0x3c584a[_0x1e2ad6];return _0x4cebd2;},_0x1e2a(_0x9ca1bc,_0x27d2a6);}import{IconAIChat as _0x292aa3,IconAIReview as _0x5dbcd0,IconAITranslate as _0x392b7c}from'@ckeditor/ckeditor5-icons';function _0x3c58(){const _0x693062=['24dXGKny','review','3lQycYA','set','501046lZvvzQ','405045WNWtjH','icon','translate','843QOTSrM','4253717HwrbTV','label','chat','126ZOJtNq','215433wkHpaY','7ELNCrQ','22868MwYzqw','470smipXL','ck-ai-chat-shortcut','1738144DUBrpD','10309409HMCzpH','extendTemplate'];_0x3c58=function(){return _0x693062;};return _0x3c58();}export class AIChatShortcutView extends _0x584307{['id'];constructor(_0x37f79a,_0x2f5c92){const _0x5bd98b=_0x1e2a;super(_0x37f79a);const {id:_0xc58c11,type:_0x493948,icon:_0x2fc4da}=_0x2f5c92;this['id']=_0xc58c11,this[_0x5bd98b(0x1ff)]({'label':_0x2f5c92[_0x5bd98b(0x1f1)],'withText':!0x0,'class':_0x5bd98b(0x1f8)}),this[_0x5bd98b(0x1fb)]({'attributes':{'data-cke-ai-shortcut-id':_0x2f5c92['id']}}),_0x2fc4da?this[_0x5bd98b(0x202)]=_0x2fc4da:_0x5bd98b(0x1f2)===_0x493948?this[_0x5bd98b(0x202)]=_0x292aa3:_0x5bd98b(0x1fd)===_0x493948?this[_0x5bd98b(0x202)]=_0x5dbcd0:_0x5bd98b(0x1ee)===_0x493948&&(this[_0x5bd98b(0x202)]=_0x392b7c);}}
23
+ function _0x4495(_0x37ebf8,_0x3a6b18){const _0x52fcfa=_0x52fc();return _0x4495=function(_0x4495bf,_0x715e7b){_0x4495bf=_0x4495bf-0xc5;let _0x16fdc2=_0x52fcfa[_0x4495bf];return _0x16fdc2;},_0x4495(_0x37ebf8,_0x3a6b18);}(function(_0x203a30,_0x56a4cf){const _0x2d5ee2=_0x4495,_0x552408=_0x203a30();while(!![]){try{const _0xa47b9c=parseInt(_0x2d5ee2(0xcb))/0x1+-parseInt(_0x2d5ee2(0xd1))/0x2*(-parseInt(_0x2d5ee2(0xcd))/0x3)+-parseInt(_0x2d5ee2(0xcc))/0x4+parseInt(_0x2d5ee2(0xc8))/0x5+-parseInt(_0x2d5ee2(0xd0))/0x6*(-parseInt(_0x2d5ee2(0xcf))/0x7)+-parseInt(_0x2d5ee2(0xd4))/0x8+-parseInt(_0x2d5ee2(0xce))/0x9*(parseInt(_0x2d5ee2(0xc9))/0xa);if(_0xa47b9c===_0x56a4cf)break;else _0x552408['push'](_0x552408['shift']());}catch(_0x26d2ce){_0x552408['push'](_0x552408['shift']());}}}(_0x52fc,0x2bdbc));import{ButtonView as _0x578f63}from'ckeditor5/src/ui.js';import{IconAIChat as _0x22af9a,IconAIReview as _0x253e8d,IconAITranslate as _0x2d715}from'@ckeditor/ckeditor5-icons';function _0x52fc(){const _0x527ea4=['2808880VUhBCM','chat','ck-ai-chat-shortcut','review','extendTemplate','set','1678410vnsVGZ','80FGKkRE','icon','75181ENsVVQ','840376gtmPjX','608799mXrOqW','244827qfZlSj','14umUzBY','1034028RXWDms','2ulbTtM','label','translate'];_0x52fc=function(){return _0x527ea4;};return _0x52fc();}export class AIChatShortcutView extends _0x578f63{['id'];constructor(_0xc624cc,_0x4e03a0){const _0x3a5486=_0x4495;super(_0xc624cc);const {id:_0x3cc433,type:_0x49df32,icon:_0x3045bb}=_0x4e03a0;this['id']=_0x3cc433,this[_0x3a5486(0xc7)]({'label':_0x4e03a0[_0x3a5486(0xd2)],'withText':!0x0,'class':_0x3a5486(0xd6)}),this[_0x3a5486(0xc6)]({'attributes':{'data-cke-ai-shortcut-id':_0x4e03a0['id']}}),_0x3045bb?this[_0x3a5486(0xca)]=_0x3045bb:_0x3a5486(0xd5)===_0x49df32?this[_0x3a5486(0xca)]=_0x22af9a:_0x3a5486(0xc5)===_0x49df32?this[_0x3a5486(0xca)]=_0x253e8d:_0x3a5486(0xd3)===_0x49df32&&(this[_0x3a5486(0xca)]=_0x2d715);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2140a2=_0x4606;(function(_0x1636a5,_0x1acc24){const _0x2452fa=_0x4606,_0x3355bb=_0x1636a5();while(!![]){try{const _0x1b5e21=parseInt(_0x2452fa(0x128))/0x1*(-parseInt(_0x2452fa(0x103))/0x2)+-parseInt(_0x2452fa(0x146))/0x3*(parseInt(_0x2452fa(0xf8))/0x4)+parseInt(_0x2452fa(0xea))/0x5*(parseInt(_0x2452fa(0xe6))/0x6)+parseInt(_0x2452fa(0x105))/0x7*(-parseInt(_0x2452fa(0x114))/0x8)+-parseInt(_0x2452fa(0x107))/0x9*(-parseInt(_0x2452fa(0x140))/0xa)+parseInt(_0x2452fa(0x14d))/0xb*(parseInt(_0x2452fa(0x136))/0xc)+parseInt(_0x2452fa(0xe2))/0xd;if(_0x1b5e21===_0x1acc24)break;else _0x3355bb['push'](_0x3355bb['shift']());}catch(_0x250632){_0x3355bb['push'](_0x3355bb['shift']());}}}(_0x527d,0x71114));function _0x527d(){const _0xab0d19=['_outputDataProcessor','locale','removeAllRanges','getRanges','viewToDom','trim','processor','isBefore',':end></','ck-fake-ai-selection','data','70840CzwXCO','from','join','markerToHighlight','has','name','toView','domConverter',':start></','listenTo','createRange','42pzudur','modelToDataWithIds','763imyoDb','element','27AJRCwQ','change','afterInit','isOfficialPlugin','start','random','hideFakeVisualSelection','add','_sessionId','showFakeVisualSelection','conversion','getDocumentData','getRoot','10328hMzDwR','fromCharCode',':end>','getLastMatchingPosition','$textProxy','_setOutputDataProcessor','schema','_getMarkersInDocumentOrder','pluginName','for','RealTimeCollaborationClient','createUIElement','ready','isAfter','get','substring','setAttribute','dataDowncast','plugins','getItems','21117gweycm','floor','ai-selection:','push','selection','markers',':start>','isAtEnd','_integrateEditor','getSelectionText','getSelection','_nextDataId','ai-selection','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','20652FriyJM','sessionId','document','view','editingDowncast','_getDocumentDataStringFromView','sort','getMarkersGroup','editors','getStart','146810NHUlhd','_setDataIdsOnChildren','removeMarker','version','addMarker','isContent','57ZrLmPl','htmlWriter','getChildren','model','editing','markerToElement','AIEditing','693tTBROP','define','ck-ai-assistant-ui_theme','_displayedFakeSelectionId','_displayedFakeSelectionLocked','length','ai.models.showModelSelector','config','isPremiumPlugin','markerName','isOpening','convertAiChatSelectionMarker','10390068iAzuPH','end','indexOf','data-id','12owglXA','containerElement','getHtml','toData','1080220IhrDgC','emptyElement','context'];_0x527d=function(){return _0xab0d19;};return _0x527d();}import{ViewDowncastWriter as _0x191f16}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xd18856,Editor as _0x12f6c0}from'ckeditor5/src/core.js';import{uid as _0x181d39}from'ckeditor5/src/utils.js';import{getTranslation as _0x9edf5a}from'./utils/common-translations.js';function _0x4606(_0x5c73b6,_0x272e88){const _0x527d34=_0x527d();return _0x4606=function(_0x460662,_0x4d3a14){_0x460662=_0x460662-0xdc;let _0x1c997a=_0x527d34[_0x460662];return _0x1c997a;},_0x4606(_0x5c73b6,_0x272e88);}import{getEditorFromContext as _0xc5624a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2140a2(0x134);export class AIEditing extends _0xd18856{constructor(_0x1f21fc){const _0x599002=_0x2140a2;super(_0x1f21fc),this[_0x599002(0xec)][_0x599002(0xdd)][_0x599002(0x14e)](_0x599002(0xdc),!0x0);}[_0x2140a2(0xed)];[_0x2140a2(0x150)]=null;[_0x2140a2(0x151)]=!0x1;[_0x2140a2(0x10f)];static get[_0x2140a2(0x11c)](){const _0x449c37=_0x2140a2;return _0x449c37(0x14c);}static get[_0x2140a2(0x10a)](){return!0x0;}static get[_0x2140a2(0xde)](){return!0x0;}get[_0x2140a2(0x137)](){const _0x2e413d=_0x2140a2;if(!this[_0x2e413d(0x10f)]){const _0x117f9a=_0xc5624a(this[_0x2e413d(0xec)]),_0x31416a=_0x117f9a[_0x2e413d(0x126)][_0x2e413d(0xfc)](_0x2e413d(0x11e))&&_0x117f9a[_0x2e413d(0x126)][_0x2e413d(0x122)](_0x2e413d(0x11e))[_0x2e413d(0x137)];this[_0x2e413d(0x10f)]=_0x31416a||_0x181d39();}return this[_0x2e413d(0x10f)];}async[_0x2140a2(0x112)](){const _0x4df8eb=_0x2140a2,_0x3ad20d=_0xc5624a(this[_0x4df8eb(0xec)]),_0x3acd7b=_0x3ad20d[_0x4df8eb(0x149)],_0x33bc9e=_0x3ad20d[_0x4df8eb(0xf7)][_0x4df8eb(0xfe)](_0x3acd7b[_0x4df8eb(0x138)][_0x4df8eb(0x113)](),{'convertAiChatSelectionMarker':!0x0}),_0x2fe2c6=new _0x191f16(_0x3ad20d[_0x4df8eb(0x14a)][_0x4df8eb(0x139)][_0x4df8eb(0x138)]);this[_0x4df8eb(0x141)](_0x33bc9e,_0x2fe2c6);let _0x497045=await this[_0x4df8eb(0x13b)](_0x33bc9e);const _0x7e7d2d=this[_0x4df8eb(0x11b)](),_0xb81eef=[];for(const _0x34298a of _0x7e7d2d){const _0x5e2e6c='<'+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x100)+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x12e),_0x2125a3=_0x497045[_0x4df8eb(0xe4)](_0x5e2e6c);_0x497045=_0x497045[_0x4df8eb(0x123)](0x0,_0x2125a3)+_0x497045[_0x4df8eb(0x123)](_0x2125a3+_0x5e2e6c[_0x4df8eb(0x152)]);const _0x2faf2a='<'+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0xf5)+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x116),_0x4a37ea=_0x497045[_0x4df8eb(0xe4)](_0x2faf2a);_0x497045=_0x497045[_0x4df8eb(0x123)](0x0,_0x4a37ea)+_0x497045[_0x4df8eb(0x123)](_0x4a37ea+_0x2faf2a[_0x4df8eb(0x152)]),_0xb81eef[_0x4df8eb(0x12b)]({'markerName':_0x34298a[_0x4df8eb(0xfd)],'start':_0x2125a3,'end':_0x4a37ea,'htmlFragment':_0x497045[_0x4df8eb(0x123)](_0x2125a3,_0x4a37ea)});}return{'content':_0x497045,'version':_0x3ad20d[_0x4df8eb(0x149)][_0x4df8eb(0x138)][_0x4df8eb(0x143)],'sessionId':this[_0x4df8eb(0x137)],'selections':_0xb81eef};}async[_0x2140a2(0x109)](){const _0x1a5f4e=_0x2140a2;this[_0x1a5f4e(0xec)]instanceof _0x12f6c0?this[_0x1a5f4e(0x130)](this[_0x1a5f4e(0xec)]):this[_0x1a5f4e(0x101)](this[_0x1a5f4e(0xec)][_0x1a5f4e(0x13e)],_0x1a5f4e(0x10e),(_0x435287,_0x3cca8b)=>{const _0x901174=_0x1a5f4e;_0x3cca8b['on'](_0x901174(0x120),()=>{const _0x14dad5=_0x901174;this[_0x14dad5(0x130)](_0x3cca8b);});});}[_0x2140a2(0x119)](_0x3641a8){const _0x21b207=_0x2140a2;this[_0x21b207(0xed)]=_0x3641a8;}async[_0x2140a2(0x13b)](_0x18547c){const _0x5b97e6=_0x2140a2;let _0x2e269;const _0x134040=_0xc5624a(this[_0x5b97e6(0xec)]);if(this[_0x5b97e6(0xed)]){const _0x1930f1=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0xff)][_0x5b97e6(0xf1)](_0x18547c),_0x411ac2=await this[_0x5b97e6(0xed)](_0x1930f1);_0x2e269=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0x147)][_0x5b97e6(0xe8)](_0x411ac2);}else _0x2e269=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0xe9)](_0x18547c);return _0x2e269;}[_0x2140a2(0x130)](_0x5e013a){const _0xc810cd=_0x2140a2;_0x5e013a[_0xc810cd(0x111)][_0xc810cd(0x11d)](_0xc810cd(0x13a))[_0xc810cd(0xfb)]({'model':_0xc810cd(0x134),'view':{'classes':[_0xc810cd(0xf6),_0xc810cd(0x14f)],'priority':0xc}}),_0x5e013a[_0xc810cd(0x111)][_0xc810cd(0x11d)](_0xc810cd(0x125))[_0xc810cd(0x14b)]({'model':_0xc810cd(0x134),'view':(_0x26576d,{writer:_0x4bc31c,options:_0x4b4abd})=>_0x4b4abd[_0xc810cd(0xe1)]?_0x4bc31c[_0xc810cd(0x11f)](_0x26576d[_0xc810cd(0xdf)]+':'+(_0x26576d[_0xc810cd(0xe0)]?_0xc810cd(0x10b):_0xc810cd(0xe3))):null});}[_0x2140a2(0x110)](_0x35234f,_0x34d66b,_0x319b2f=!0x1,_0x357a13=!0x1){const _0x1c949a=_0x2140a2;if(this[_0x1c949a(0x151)]&&!_0x357a13)return!0x1;const _0x40eeb7=_0xc5624a(this[_0x1c949a(0xec)])[_0x1c949a(0x149)];return _0x40eeb7[_0x1c949a(0x108)](_0x334a03=>{const _0x1638d7=_0x1c949a;this[_0x1638d7(0x150)]&&this[_0x1638d7(0x10d)](this[_0x1638d7(0x150)]),this[_0x1638d7(0x150)]=_0x34d66b,this[_0x1638d7(0x151)]=_0x319b2f;let _0x924c91=0x0;for(let _0x4e3546 of _0x35234f){const _0x39e0b3=_0x1638d7(0x12a)+_0x924c91;if(_0x4e3546[_0x1638d7(0x10b)][_0x1638d7(0x12f)]){const _0x866d3=_0x4e3546[_0x1638d7(0x10b)][_0x1638d7(0x117)](({item:_0x3286f3})=>!_0x40eeb7[_0x1638d7(0x11a)][_0x1638d7(0x145)](_0x3286f3),{'boundaries':_0x4e3546});_0x4e3546=_0x334a03[_0x1638d7(0x102)](_0x866d3,_0x4e3546[_0x1638d7(0xe3)]);}_0x334a03[_0x1638d7(0x144)](_0x39e0b3,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4e3546}),_0x924c91++;}}),window[_0x1c949a(0x132)]()?.[_0x1c949a(0xef)](),!0x0;}[_0x2140a2(0x10d)](_0x5cd7af){const _0x21f909=_0x2140a2;if(this[_0x21f909(0x150)]!=_0x5cd7af)return!0x1;this[_0x21f909(0x150)]=null,this[_0x21f909(0x151)]=!0x1;const _0x237026=_0xc5624a(this[_0x21f909(0xec)]),_0x1afa91=_0x237026[_0x21f909(0x149)][_0x21f909(0x12d)][_0x21f909(0x13d)](_0x21f909(0x134));return _0x237026[_0x21f909(0x149)][_0x21f909(0x108)](_0x16fb68=>{const _0x683690=_0x21f909;for(const _0x33bbc3 of _0x1afa91)_0x16fb68[_0x683690(0x142)](_0x33bbc3);}),!0x0;}async[_0x2140a2(0x104)](_0x233113){const _0x51435f=_0x2140a2,_0x13896d=_0xc5624a(this[_0x51435f(0xec)]),_0x29c6aa=_0x13896d[_0x51435f(0xf7)][_0x51435f(0xfe)](_0x233113),_0x554a94=new _0x191f16(_0x13896d[_0x51435f(0x14a)][_0x51435f(0x139)][_0x51435f(0x138)]);return this[_0x51435f(0x141)](_0x29c6aa,_0x554a94),this[_0x51435f(0x13b)](_0x29c6aa);}[_0x2140a2(0x141)](_0x13fb5b,_0x1100af){const _0x268bf6=_0x2140a2;let _0x4ec1cf=!0x1;const _0x304ecf=new Set();for(const _0x4295db of _0x13fb5b[_0x268bf6(0x148)]()){const _0x4f59af=_0x4295db['is'](_0x268bf6(0xeb))||_0x4295db['is'](_0x268bf6(0xe7));if(!_0x4295db['is'](_0x268bf6(0x106)))continue;(this[_0x268bf6(0x141)](_0x4295db,_0x1100af)||_0x4f59af)&&(_0x1100af[_0x268bf6(0x124)](_0x268bf6(0xe5),this[_0x268bf6(0x133)](_0x304ecf),_0x4295db),_0x4ec1cf=!0x0);}return _0x4ec1cf;}[_0x2140a2(0x133)](_0x32669a){const _0xb12ae1=_0x2140a2;let _0x4feb8d;do{_0x4feb8d='';for(let _0x587297=0x0;_0x587297<0x4;_0x587297++)_0x4feb8d+=String[_0xb12ae1(0x115)](0x61+Math[_0xb12ae1(0x129)](0x1a*Math[_0xb12ae1(0x10c)]()));}while(_0x32669a[_0xb12ae1(0xfc)](_0x4feb8d));return _0x32669a[_0xb12ae1(0x10e)](_0x4feb8d),_0x4feb8d;}[_0x2140a2(0x131)](){const _0x2f7754=_0x2140a2,{model:_0x597007}=_0xc5624a(this[_0x2f7754(0xec)]),_0x126cbf=_0x597007[_0x2f7754(0x138)][_0x2f7754(0x12c)],_0x167473=[];for(const _0x591c96 of _0x126cbf[_0x2f7754(0xf0)]())for(const _0x52e764 of _0x591c96[_0x2f7754(0x127)]())_0x52e764['is'](_0x2f7754(0x118))?_0x167473[_0x2f7754(0x12b)](_0x52e764[_0x2f7754(0xf7)]):_0x52e764['is'](_0x2f7754(0x106))&&_0x167473[_0x2f7754(0x152)]>0x0&&'\x20'!==_0x167473[_0x167473[_0x2f7754(0x152)]-0x1]&&_0x167473[_0x2f7754(0x12b)]('\x20');return _0x167473[_0x2f7754(0x152)]?'\x22'+_0x167473[_0x2f7754(0xfa)]('')[_0x2f7754(0xf2)]()+'\x22':_0x9edf5a(this[_0x2f7754(0xec)][_0x2f7754(0xee)],_0x2f7754(0x135));}[_0x2140a2(0x11b)](){const _0x385eec=_0x2140a2,_0x32506b=_0xc5624a(this[_0x385eec(0xec)])[_0x385eec(0x149)];return Array[_0x385eec(0xf9)](_0x32506b[_0x385eec(0x12d)][_0x385eec(0x13d)](_0x385eec(0x134)))[_0x385eec(0x13c)]((_0x8eb46a,_0x33e0ef)=>_0x8eb46a[_0x385eec(0x13f)]()[_0x385eec(0xf4)](_0x33e0ef[_0x385eec(0x13f)]())?-0x1:_0x8eb46a[_0x385eec(0x13f)]()[_0x385eec(0x121)](_0x33e0ef[_0x385eec(0x13f)]())?0x1:0x0);}}
23
+ const _0x29f28c=_0x5720;(function(_0x3a6a0d,_0x1a7ab1){const _0x46cdc2=_0x5720,_0x562f9d=_0x3a6a0d();while(!![]){try{const _0x34b761=parseInt(_0x46cdc2(0x219))/0x1+-parseInt(_0x46cdc2(0x1d1))/0x2+-parseInt(_0x46cdc2(0x22c))/0x3*(-parseInt(_0x46cdc2(0x1de))/0x4)+parseInt(_0x46cdc2(0x234))/0x5*(parseInt(_0x46cdc2(0x1ff))/0x6)+parseInt(_0x46cdc2(0x1fc))/0x7*(parseInt(_0x46cdc2(0x1cc))/0x8)+-parseInt(_0x46cdc2(0x22d))/0x9*(-parseInt(_0x46cdc2(0x1d0))/0xa)+-parseInt(_0x46cdc2(0x1c7))/0xb*(parseInt(_0x46cdc2(0x1d5))/0xc);if(_0x34b761===_0x1a7ab1)break;else _0x562f9d['push'](_0x562f9d['shift']());}catch(_0x214265){_0x562f9d['push'](_0x562f9d['shift']());}}}(_0x2d7e,0x77836));import{ViewDowncastWriter as _0x363d9f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x50d022,Editor as _0x30cc69}from'ckeditor5/src/core.js';import{uid as _0x196cd8}from'ckeditor5/src/utils.js';function _0x5720(_0x1f0a10,_0x3d3efe){const _0x2d7ea6=_0x2d7e();return _0x5720=function(_0x5720ce,_0x428e5d){_0x5720ce=_0x5720ce-0x1c5;let _0x12ca97=_0x2d7ea6[_0x5720ce];return _0x12ca97;},_0x5720(_0x1f0a10,_0x3d3efe);}function _0x2d7e(){const _0x5cc051=['_getDocumentDataStringFromView','4NjJCGo','toView','start','containerElement','getItems','isOfficialPlugin','data','editingDowncast','trim','getLastMatchingPosition','data-id','hideFakeVisualSelection','schema','selection','createRange','getStart','for','getHtml','_displayedFakeSelectionLocked','markerToElement','toData','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','removeMarker','_setDataIdsOnChildren',':start>','push','isAtEnd','isPremiumPlugin','domConverter','markers','119LLWALd','_integrateEditor','locale','193770FUNgoO','ai-selection:','isOpening','ai-selection','fromCharCode','define','removeAllRanges','random','config','createUIElement','markerToHighlight','_outputDataProcessor','$textProxy','processor','emptyElement','sessionId','pluginName','name','context','indexOf','view','getSelection','markerName','length','substring','viewToDom','615353XtEGKk','listenTo','conversion',':start></','afterInit','convertAiChatSelectionMarker','isBefore','getSelectionText','sort','AIEditing','ready','getRoot','_setOutputDataProcessor','getDocumentData','dataDowncast','_getMarkersInDocumentOrder','end','_sessionId','has','912387ZMyxzH','3015Lmjkod','ai.models.showModelSelector','setAttribute','plugins','addMarker','RealTimeCollaborationClient','editing','20ckWIcj','from','getChildren','editors','isContent','document','get','floor','htmlWriter','3568609QuxKii','getMarkersGroup','model','element','join','118424QEIrCv',':end>','ck-ai-assistant-ui_theme','modelToDataWithIds','2480sVzEXj','1138896YpkgYZ','_displayedFakeSelectionId','ck-fake-ai-selection','getRanges','12TBOrXM','change',':end></','showFakeVisualSelection','add','isAfter','version','_nextDataId'];_0x2d7e=function(){return _0x5cc051;};return _0x2d7e();}import{getTranslation as _0x357b17}from'./utils/common-translations.js';import{getEditorFromContext as _0x40762e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x29f28c(0x202);export class AIEditing extends _0x50d022{constructor(_0x332452){const _0x31ba91=_0x29f28c;super(_0x332452),this[_0x31ba91(0x211)][_0x31ba91(0x207)][_0x31ba91(0x204)](_0x31ba91(0x22e),!0x0);}[_0x29f28c(0x20a)];[_0x29f28c(0x1d2)]=null;[_0x29f28c(0x1f0)]=!0x1;[_0x29f28c(0x22a)];static get[_0x29f28c(0x20f)](){const _0x15ab3d=_0x29f28c;return _0x15ab3d(0x222);}static get[_0x29f28c(0x1e3)](){return!0x0;}static get[_0x29f28c(0x1f9)](){return!0x0;}get[_0x29f28c(0x20e)](){const _0x5947ef=_0x29f28c;if(!this[_0x5947ef(0x22a)]){const _0x4534d4=_0x40762e(this[_0x5947ef(0x211)]),_0x5021eb=_0x4534d4[_0x5947ef(0x230)][_0x5947ef(0x22b)](_0x5947ef(0x232))&&_0x4534d4[_0x5947ef(0x230)][_0x5947ef(0x23a)](_0x5947ef(0x232))[_0x5947ef(0x20e)];this[_0x5947ef(0x22a)]=_0x5021eb||_0x196cd8();}return this[_0x5947ef(0x22a)];}async[_0x29f28c(0x226)](){const _0x58d24c=_0x29f28c,_0x444cb1=_0x40762e(this[_0x58d24c(0x211)]),_0x4d938d=_0x444cb1[_0x58d24c(0x1c9)],_0x29cec5=_0x444cb1[_0x58d24c(0x1e4)][_0x58d24c(0x1df)](_0x4d938d[_0x58d24c(0x239)][_0x58d24c(0x224)](),{'convertAiChatSelectionMarker':!0x0}),_0x49db72=new _0x363d9f(_0x444cb1[_0x58d24c(0x233)][_0x58d24c(0x213)][_0x58d24c(0x239)]);this[_0x58d24c(0x1f5)](_0x29cec5,_0x49db72);let _0x114d4e=await this[_0x58d24c(0x1dd)](_0x29cec5);const _0x3b8a39=this[_0x58d24c(0x228)](),_0x202282=[];for(const _0x1ddfb9 of _0x3b8a39){const _0x404868='<'+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x21c)+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1f6),_0x2887ce=_0x114d4e[_0x58d24c(0x212)](_0x404868);_0x114d4e=_0x114d4e[_0x58d24c(0x217)](0x0,_0x2887ce)+_0x114d4e[_0x58d24c(0x217)](_0x2887ce+_0x404868[_0x58d24c(0x216)]);const _0x3e69b3='<'+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1d7)+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1cd),_0x200b3b=_0x114d4e[_0x58d24c(0x212)](_0x3e69b3);_0x114d4e=_0x114d4e[_0x58d24c(0x217)](0x0,_0x200b3b)+_0x114d4e[_0x58d24c(0x217)](_0x200b3b+_0x3e69b3[_0x58d24c(0x216)]),_0x202282[_0x58d24c(0x1f7)]({'markerName':_0x1ddfb9[_0x58d24c(0x210)],'start':_0x2887ce,'end':_0x200b3b,'htmlFragment':_0x114d4e[_0x58d24c(0x217)](_0x2887ce,_0x200b3b)});}return{'content':_0x114d4e,'version':_0x444cb1[_0x58d24c(0x1c9)][_0x58d24c(0x239)][_0x58d24c(0x1db)],'sessionId':this[_0x58d24c(0x20e)],'selections':_0x202282};}async[_0x29f28c(0x21d)](){const _0x2b7ba9=_0x29f28c;this[_0x2b7ba9(0x211)]instanceof _0x30cc69?this[_0x2b7ba9(0x1fd)](this[_0x2b7ba9(0x211)]):this[_0x2b7ba9(0x21a)](this[_0x2b7ba9(0x211)][_0x2b7ba9(0x237)],_0x2b7ba9(0x1d9),(_0x3eb76f,_0x239214)=>{const _0x370786=_0x2b7ba9;_0x239214['on'](_0x370786(0x223),()=>{const _0x18ef9d=_0x370786;this[_0x18ef9d(0x1fd)](_0x239214);});});}[_0x29f28c(0x225)](_0x22d87c){const _0x1b8789=_0x29f28c;this[_0x1b8789(0x20a)]=_0x22d87c;}async[_0x29f28c(0x1dd)](_0x5e8cd6){const _0x18338a=_0x29f28c;let _0x1049cc;const _0x1a4605=_0x40762e(this[_0x18338a(0x211)]);if(this[_0x18338a(0x20a)]){const _0x804f14=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1fa)][_0x18338a(0x218)](_0x5e8cd6),_0x5d094a=await this[_0x18338a(0x20a)](_0x804f14);_0x1049cc=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1c6)][_0x18338a(0x1ef)](_0x5d094a);}else _0x1049cc=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1f2)](_0x5e8cd6);return _0x1049cc;}[_0x29f28c(0x1fd)](_0x3c3536){const _0x1ea231=_0x29f28c;_0x3c3536[_0x1ea231(0x21b)][_0x1ea231(0x1ee)](_0x1ea231(0x1e5))[_0x1ea231(0x209)]({'model':_0x1ea231(0x202),'view':{'classes':[_0x1ea231(0x1d3),_0x1ea231(0x1ce)],'priority':0xc}}),_0x3c3536[_0x1ea231(0x21b)][_0x1ea231(0x1ee)](_0x1ea231(0x227))[_0x1ea231(0x1f1)]({'model':_0x1ea231(0x202),'view':(_0x5c8040,{writer:_0x24faa8,options:_0x23eff5})=>_0x23eff5[_0x1ea231(0x21e)]?_0x24faa8[_0x1ea231(0x208)](_0x5c8040[_0x1ea231(0x215)]+':'+(_0x5c8040[_0x1ea231(0x201)]?_0x1ea231(0x1e0):_0x1ea231(0x229))):null});}[_0x29f28c(0x1d8)](_0x4e2a05,_0x1ffc31,_0x267cce=!0x1,_0x43707a=!0x1){const _0x3255bb=_0x29f28c;if(this[_0x3255bb(0x1f0)]&&!_0x43707a)return!0x1;const _0x4ce4b9=_0x40762e(this[_0x3255bb(0x211)])[_0x3255bb(0x1c9)];return _0x4ce4b9[_0x3255bb(0x1d6)](_0x177a26=>{const _0x4d5286=_0x3255bb;this[_0x4d5286(0x1d2)]&&this[_0x4d5286(0x1e9)](this[_0x4d5286(0x1d2)]),this[_0x4d5286(0x1d2)]=_0x1ffc31,this[_0x4d5286(0x1f0)]=_0x267cce;let _0x2207c8=0x0;for(let _0x3eb606 of _0x4e2a05){const _0x527f9f=_0x4d5286(0x200)+_0x2207c8;if(_0x3eb606[_0x4d5286(0x1e0)][_0x4d5286(0x1f8)]){const _0x385af4=_0x3eb606[_0x4d5286(0x1e0)][_0x4d5286(0x1e7)](({item:_0x3ef912})=>!_0x4ce4b9[_0x4d5286(0x1ea)][_0x4d5286(0x238)](_0x3ef912),{'boundaries':_0x3eb606});_0x3eb606=_0x177a26[_0x4d5286(0x1ec)](_0x385af4,_0x3eb606[_0x4d5286(0x229)]);}_0x177a26[_0x4d5286(0x231)](_0x527f9f,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3eb606}),_0x2207c8++;}}),window[_0x3255bb(0x214)]()?.[_0x3255bb(0x205)](),!0x0;}[_0x29f28c(0x1e9)](_0x5a39c2){const _0x2281d0=_0x29f28c;if(this[_0x2281d0(0x1d2)]!=_0x5a39c2)return!0x1;this[_0x2281d0(0x1d2)]=null,this[_0x2281d0(0x1f0)]=!0x1;const _0x403391=_0x40762e(this[_0x2281d0(0x211)]),_0x6c4757=_0x403391[_0x2281d0(0x1c9)][_0x2281d0(0x1fb)][_0x2281d0(0x1c8)](_0x2281d0(0x202));return _0x403391[_0x2281d0(0x1c9)][_0x2281d0(0x1d6)](_0x29946d=>{const _0x26d053=_0x2281d0;for(const _0x4d6bd8 of _0x6c4757)_0x29946d[_0x26d053(0x1f4)](_0x4d6bd8);}),!0x0;}async[_0x29f28c(0x1cf)](_0x3b1c4d){const _0x218dad=_0x29f28c,_0x2fafe1=_0x40762e(this[_0x218dad(0x211)]),_0x211d56=_0x2fafe1[_0x218dad(0x1e4)][_0x218dad(0x1df)](_0x3b1c4d),_0x1b0d83=new _0x363d9f(_0x2fafe1[_0x218dad(0x233)][_0x218dad(0x213)][_0x218dad(0x239)]);return this[_0x218dad(0x1f5)](_0x211d56,_0x1b0d83),this[_0x218dad(0x1dd)](_0x211d56);}[_0x29f28c(0x1f5)](_0x199268,_0x418a97){const _0x34468b=_0x29f28c;let _0x383c8e=!0x1;const _0x2649bf=new Set();for(const _0x74b864 of _0x199268[_0x34468b(0x236)]()){const _0xc615ee=_0x74b864['is'](_0x34468b(0x20d))||_0x74b864['is'](_0x34468b(0x1e1));if(!_0x74b864['is'](_0x34468b(0x1ca)))continue;(this[_0x34468b(0x1f5)](_0x74b864,_0x418a97)||_0xc615ee)&&(_0x418a97[_0x34468b(0x22f)](_0x34468b(0x1e8),this[_0x34468b(0x1dc)](_0x2649bf),_0x74b864),_0x383c8e=!0x0);}return _0x383c8e;}[_0x29f28c(0x1dc)](_0x5123a1){const _0xb5dd40=_0x29f28c;let _0x2631a1;do{_0x2631a1='';for(let _0x2eebcd=0x0;_0x2eebcd<0x4;_0x2eebcd++)_0x2631a1+=String[_0xb5dd40(0x203)](0x61+Math[_0xb5dd40(0x1c5)](0x1a*Math[_0xb5dd40(0x206)]()));}while(_0x5123a1[_0xb5dd40(0x22b)](_0x2631a1));return _0x5123a1[_0xb5dd40(0x1d9)](_0x2631a1),_0x2631a1;}[_0x29f28c(0x220)](){const _0x41fab6=_0x29f28c,{model:_0x1b7367}=_0x40762e(this[_0x41fab6(0x211)]),_0x32fef3=_0x1b7367[_0x41fab6(0x239)][_0x41fab6(0x1eb)],_0x5ba2cb=[];for(const _0x28f66b of _0x32fef3[_0x41fab6(0x1d4)]())for(const _0x22ee20 of _0x28f66b[_0x41fab6(0x1e2)]())_0x22ee20['is'](_0x41fab6(0x20b))?_0x5ba2cb[_0x41fab6(0x1f7)](_0x22ee20[_0x41fab6(0x1e4)]):_0x22ee20['is'](_0x41fab6(0x1ca))&&_0x5ba2cb[_0x41fab6(0x216)]>0x0&&'\x20'!==_0x5ba2cb[_0x5ba2cb[_0x41fab6(0x216)]-0x1]&&_0x5ba2cb[_0x41fab6(0x1f7)]('\x20');return _0x5ba2cb[_0x41fab6(0x216)]?'\x22'+_0x5ba2cb[_0x41fab6(0x1cb)]('')[_0x41fab6(0x1e6)]()+'\x22':_0x357b17(this[_0x41fab6(0x211)][_0x41fab6(0x1fe)],_0x41fab6(0x1f3));}[_0x29f28c(0x228)](){const _0x366579=_0x29f28c,_0x5d6286=_0x40762e(this[_0x366579(0x211)])[_0x366579(0x1c9)];return Array[_0x366579(0x235)](_0x5d6286[_0x366579(0x1fb)][_0x366579(0x1c8)](_0x366579(0x202)))[_0x366579(0x221)]((_0x180578,_0x2e072c)=>_0x180578[_0x366579(0x1ed)]()[_0x366579(0x21f)](_0x2e072c[_0x366579(0x1ed)]())?-0x1:_0x180578[_0x366579(0x1ed)]()[_0x366579(0x1da)](_0x2e072c[_0x366579(0x1ed)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x518241=_0x5d74;function _0x5d74(_0x569abc,_0x16b16f){const _0x76ee3c=_0x76ee();return _0x5d74=function(_0x5d74ea,_0x235e1a){_0x5d74ea=_0x5d74ea-0x1db;let _0xfd9b2b=_0x76ee3c[_0x5d74ea];return _0xfd9b2b;},_0x5d74(_0x569abc,_0x16b16f);}(function(_0x51bf6a,_0x5a9e64){const _0x5a2446=_0x5d74,_0x3784a3=_0x51bf6a();while(!![]){try{const _0x540c88=parseInt(_0x5a2446(0x1e5))/0x1*(-parseInt(_0x5a2446(0x217))/0x2)+-parseInt(_0x5a2446(0x208))/0x3*(parseInt(_0x5a2446(0x224))/0x4)+parseInt(_0x5a2446(0x215))/0x5+-parseInt(_0x5a2446(0x1fb))/0x6+-parseInt(_0x5a2446(0x221))/0x7+parseInt(_0x5a2446(0x218))/0x8*(-parseInt(_0x5a2446(0x203))/0x9)+parseInt(_0x5a2446(0x1fc))/0xa*(parseInt(_0x5a2446(0x225))/0xb);if(_0x540c88===_0x5a9e64)break;else _0x3784a3['push'](_0x3784a3['shift']());}catch(_0x36c566){_0x3784a3['push'](_0x3784a3['shift']());}}}(_0x76ee,0xafc13));function _0x76ee(){const _0x37c72e=['ai-chat-interaction-error','messageId','toolDataReceived','push','interactionCreated','modification','replyContentUpdated','mcp-tool-notification','action-metadata','replies','resetReasoningState','actionCallId','2725215PAAoOS','fire','2BEIKBD','9374024krprcx','getDocumentContext','interactionFinished','currentReply','reasoningFinished','conversationTitle','data','interactionDestroyed','interactionStopped','2512055bxHKIJ','toolName','message-metadata','248KtHVNj','33919413lpfKGz','getStream','_isWebSearching','reasoningStarted','abort','start','currentRequest','mcp-tool-result','connector','modification-delta','isStopped','stopListening','find','error','editor','replyCreated','web-search','webSearchStarted','attributes','notification','destroy','length','sources','reasoning','91007cWFVIU','parse','text','event','webSearchFinished','done','createReply','_handleToolResultData','abortController','resetWebSearchState','setConversationTitle','_handleToolNotificationData','source','getReply','_isReasoning','replyChangeGroupStateUpdated','type','interactionStarted','splice','textDelta','_finalizeInteraction','content','209004txOyth','10QEXmTS','stop','callId','text-delta','isDestroyed','appendContent','delegate','9pkyEem','forEach','result','sendRequest','conversation-title','60594BkHLZc'];_0x76ee=function(){return _0x37c72e;};return _0x76ee();}import{CKEditorError as _0x12d68a,EmitterMixin as _0x28100d,uid as _0x24e4b5}from'ckeditor5/src/utils.js';import{AIReply as _0x57a8bc}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x518241(0x20d),_0x518241(0x1f6),_0x518241(0x220),_0x518241(0x21a),_0x518241(0x21f),_0x518241(0x1dc),_0x518241(0x20f),_0x518241(0x1f4),_0x518241(0x1ef),_0x518241(0x1de),_0x518241(0x1e9),_0x518241(0x228),_0x518241(0x21c),_0x518241(0x20b),_0x518241(0x232)];export class AIInteraction extends _0x28100d(){['id'];[_0x518241(0x212)]=[];[_0x518241(0x21b)];[_0x518241(0x20a)];[_0x518241(0x214)];[_0x518241(0x22b)];[_0x518241(0x22d)];[_0x518241(0x22f)]=!0x1;[_0x518241(0x200)]=!0x1;[_0x518241(0x1db)];[_0x518241(0x1f3)]=!0x1;[_0x518241(0x227)]=!0x1;constructor({connector:_0x59d421,editor:_0x2e5440}){const _0x3337cb=_0x518241;super(),this['id']=_0x24e4b5(),this[_0x3337cb(0x22d)]=_0x59d421,this[_0x3337cb(0x22f)]=!0x0,this[_0x3337cb(0x1db)]=_0x2e5440;}async[_0x518241(0x22a)](){const _0x4bbf66=_0x518241,_0x253158=[];let _0x948757,_0x22e00c,_0x2d1ba0;this[_0x4bbf66(0x22f)]=!0x1;try{this[_0x4bbf66(0x22b)]=await this[_0x4bbf66(0x206)](),this[_0x4bbf66(0x216)](_0x4bbf66(0x1f6),this);const _0x14630d=await this[_0x4bbf66(0x22b)][_0x4bbf66(0x226)]();for await(const _0x390807 of _0x14630d){if(this[_0x4bbf66(0x22f)])return;if(_0x4bbf66(0x232)==_0x390807[_0x4bbf66(0x1e8)])return void this[_0x4bbf66(0x216)](_0x4bbf66(0x232),{'error':new _0x12d68a(_0x4bbf66(0x209),this)});switch(_0x390807[_0x4bbf66(0x1e8)]){case _0x4bbf66(0x223):this[_0x4bbf66(0x20a)]=_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x20a)];break;case _0x4bbf66(0x211):this[_0x4bbf66(0x214)]=_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1fe)];break;case _0x4bbf66(0x207):this[_0x4bbf66(0x1ef)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x21d)],!0x0);break;case _0x4bbf66(0x1f1):_0x253158[_0x4bbf66(0x20c)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1f1)]);break;case _0x4bbf66(0x1dd):this[_0x4bbf66(0x227)]||(this[_0x4bbf66(0x227)]=!0x0,this[_0x4bbf66(0x216)](_0x4bbf66(0x1de),this));break;case _0x4bbf66(0x1e4):this[_0x4bbf66(0x1f3)]||(this[_0x4bbf66(0x1f3)]=!0x0,this[_0x4bbf66(0x216)](_0x4bbf66(0x228),this));break;case _0x4bbf66(0x22e):case _0x4bbf66(0x1ff):this[_0x4bbf66(0x213)](),this[_0x4bbf66(0x1ee)](),_0x948757=_0x4bbf66(0x22e)==_0x390807[_0x4bbf66(0x1e8)]?_0x4bbf66(0x20e):_0x4bbf66(0x1e7),_0x22e00c=_0x4bbf66(0x22e)==_0x390807[_0x4bbf66(0x1e8)]?_0x390807[_0x4bbf66(0x21e)]['id']:void 0x0,this[_0x4bbf66(0x21b)]&&this[_0x4bbf66(0x21b)][_0x4bbf66(0x1f5)]!=_0x948757&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1ea)](),this[_0x4bbf66(0x21b)]=void 0x0),this[_0x4bbf66(0x21b)]||(this[_0x4bbf66(0x21b)]=this[_0x4bbf66(0x1eb)]({'type':_0x948757,'interactionId':this['id'],'id':_0x22e00c}),_0x4bbf66(0x20e)==_0x948757&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1e3)]=_0x253158[_0x4bbf66(0x1f7)](0x0))),this[_0x4bbf66(0x21b)][_0x4bbf66(0x201)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1f8)]);break;case _0x4bbf66(0x22c):_0x2d1ba0=JSON[_0x4bbf66(0x1e6)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x205)]),this[_0x4bbf66(0x1ec)]({'toolName':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x222)],'data':_0x2d1ba0[_0x4bbf66(0x21e)],'attributes':_0x2d1ba0[_0x4bbf66(0x1df)]});break;case _0x4bbf66(0x210):this[_0x4bbf66(0x1f0)]({'toolName':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x222)],'data':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x21e)]});}}}finally{this[_0x4bbf66(0x22f)]||(this[_0x4bbf66(0x21b)]&&_0x253158[_0x4bbf66(0x1e2)]>0x0&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1e3)]=_0x253158[_0x4bbf66(0x1f7)](0x0)),this[_0x4bbf66(0x1f9)](),this[_0x4bbf66(0x216)](_0x4bbf66(0x21a),this));}}[_0x518241(0x1fd)](){const _0x44ad1f=_0x518241;this[_0x44ad1f(0x22f)]||(this[_0x44ad1f(0x1f9)](),this[_0x44ad1f(0x216)](_0x44ad1f(0x220),this));}[_0x518241(0x1f2)](_0x57a7af){const _0x5d6c77=_0x518241;return this[_0x5d6c77(0x212)][_0x5d6c77(0x231)](_0x4e01c0=>_0x4e01c0['id']===_0x57a7af);}[_0x518241(0x1e1)](){const _0x1c31b9=_0x518241;this[_0x1c31b9(0x200)]||(this[_0x1c31b9(0x1fd)](),this[_0x1c31b9(0x212)][_0x1c31b9(0x204)](_0x4d3541=>_0x4d3541[_0x1c31b9(0x1e1)]()),this[_0x1c31b9(0x212)]=[],this[_0x1c31b9(0x200)]=!0x0,this[_0x1c31b9(0x216)](_0x1c31b9(0x21f),this),this[_0x1c31b9(0x230)]());}[_0x518241(0x1eb)](_0xe93452){const _0x5b862e=_0x518241,_0x57292f=new _0x57a8bc({'editor':this[_0x5b862e(0x1db)],'documentContextContent':this[_0x5b862e(0x219)]()?.[_0x5b862e(0x1fa)],..._0xe93452});return this[_0x5b862e(0x212)][_0x5b862e(0x20c)](_0x57292f),_0x57292f[_0x5b862e(0x202)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5b862e(0x216)](_0x5b862e(0x1dc),_0x57292f),_0x57292f;}[_0x518241(0x1ef)](_0x27df6e,_0x6a5022=!0x1){const _0x12f056=_0x518241;this[_0x12f056(0x216)](_0x12f056(0x1ef),_0x27df6e,_0x6a5022);}[_0x518241(0x1ee)](){const _0x3a5a56=_0x518241;this[_0x3a5a56(0x227)]&&(this[_0x3a5a56(0x227)]=!0x1,this[_0x3a5a56(0x216)](_0x3a5a56(0x1e9),this));}[_0x518241(0x213)](){const _0x5e4527=_0x518241;this[_0x5e4527(0x1f3)]&&(this[_0x5e4527(0x1f3)]=!0x1,this[_0x5e4527(0x216)](_0x5e4527(0x21c),this));}[_0x518241(0x1ec)](_0x534ae0){const _0x127778=_0x518241;this[_0x127778(0x216)](_0x127778(0x20b),{'type':_0x127778(0x205),'toolName':_0x534ae0[_0x127778(0x222)],'data':structuredClone(_0x534ae0[_0x127778(0x21e)]||{}),'attributes':structuredClone(_0x534ae0[_0x127778(0x1df)]||{})},this);}[_0x518241(0x1f0)](_0x1b312c){const _0x4c6aff=_0x518241;this[_0x4c6aff(0x216)](_0x4c6aff(0x20b),{'type':_0x4c6aff(0x1e0),'toolName':_0x1b312c[_0x4c6aff(0x222)],'data':structuredClone(_0x1b312c[_0x4c6aff(0x21e)])},this);}[_0x518241(0x1f9)](){const _0x1fe623=_0x518241;this[_0x1fe623(0x22f)]=!0x0,this[_0x1fe623(0x22b)]&&this[_0x1fe623(0x22b)][_0x1fe623(0x1ed)][_0x1fe623(0x229)](),this[_0x1fe623(0x21b)]&&this[_0x1fe623(0x21b)][_0x1fe623(0x1ea)](),this[_0x1fe623(0x22b)]=this[_0x1fe623(0x21b)]=void 0x0;}}
23
+ const _0x412129=_0x5505;(function(_0x4d849c,_0x5538d4){const _0x1bac49=_0x5505,_0x5d565e=_0x4d849c();while(!![]){try{const _0x26d13c=parseInt(_0x1bac49(0x1de))/0x1*(-parseInt(_0x1bac49(0x1a2))/0x2)+parseInt(_0x1bac49(0x1c2))/0x3+parseInt(_0x1bac49(0x1c5))/0x4*(parseInt(_0x1bac49(0x1bf))/0x5)+parseInt(_0x1bac49(0x1c4))/0x6*(-parseInt(_0x1bac49(0x1c8))/0x7)+parseInt(_0x1bac49(0x1b2))/0x8*(-parseInt(_0x1bac49(0x1ea))/0x9)+-parseInt(_0x1bac49(0x1e3))/0xa+parseInt(_0x1bac49(0x1b1))/0xb;if(_0x26d13c===_0x5538d4)break;else _0x5d565e['push'](_0x5d565e['shift']());}catch(_0x36cf6d){_0x5d565e['push'](_0x5d565e['shift']());}}}(_0x2bd2,0xe9055));import{CKEditorError as _0x4603a6,EmitterMixin as _0x55b844,uid as _0x241005}from'ckeditor5/src/utils.js';function _0x5505(_0x22b180,_0x33662f){const _0x2bd26e=_0x2bd2();return _0x5505=function(_0x55055c,_0x1f3ab5){_0x55055c=_0x55055c-0x19f;let _0x4098dc=_0x2bd26e[_0x55055c];return _0x4098dc;},_0x5505(_0x22b180,_0x33662f);}import{AIReply as _0x176839}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x412129(0x1bd),_0x412129(0x1d6),_0x412129(0x1a3),_0x412129(0x1ce),_0x412129(0x1c3),_0x412129(0x1ef),_0x412129(0x1e5),_0x412129(0x1af),_0x412129(0x1ed),_0x412129(0x1dd),_0x412129(0x1be),_0x412129(0x1a7),_0x412129(0x1ad),_0x412129(0x1d7),_0x412129(0x1c9)];export class AIInteraction extends _0x55b844(){['id'];[_0x412129(0x1da)]=[];[_0x412129(0x1eb)];[_0x412129(0x1e1)];[_0x412129(0x1bc)];[_0x412129(0x1aa)];[_0x412129(0x1b8)];[_0x412129(0x1dc)]=!0x1;[_0x412129(0x1e4)]=!0x1;[_0x412129(0x1c0)];[_0x412129(0x1b7)]=!0x1;[_0x412129(0x1f6)]=!0x1;constructor({connector:_0x36e71b,editor:_0x3d5e20}){const _0x4e9f3e=_0x412129;super(),this['id']=_0x241005(),this[_0x4e9f3e(0x1b8)]=_0x36e71b,this[_0x4e9f3e(0x1dc)]=!0x0,this[_0x4e9f3e(0x1c0)]=_0x3d5e20;}async[_0x412129(0x1e0)](){const _0x3124a4=_0x412129,_0x530aea=[];let _0x5122c0,_0x1adef4,_0xe03f5e;this[_0x3124a4(0x1dc)]=!0x1;try{this[_0x3124a4(0x1aa)]=await this[_0x3124a4(0x1ac)](),this[_0x3124a4(0x1a5)](_0x3124a4(0x1d6),this);const _0x228115=await this[_0x3124a4(0x1aa)][_0x3124a4(0x1a4)]();for await(const _0x4013d1 of _0x228115){if(this[_0x3124a4(0x1dc)])return;if(_0x3124a4(0x1c9)==_0x4013d1[_0x3124a4(0x1df)])return void this[_0x3124a4(0x1a5)](_0x3124a4(0x1c9),{'error':new _0x4603a6(_0x3124a4(0x1d2),this)});switch(_0x4013d1[_0x3124a4(0x1df)]){case _0x3124a4(0x1f1):this[_0x3124a4(0x1e1)]=_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e1)];break;case _0x3124a4(0x1ee):this[_0x3124a4(0x1bc)]=_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x19f)];break;case _0x3124a4(0x1a9):this[_0x3124a4(0x1ed)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e6)],!0x0);break;case _0x3124a4(0x1f2):_0x530aea[_0x3124a4(0x1b3)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1f2)]);break;case _0x3124a4(0x1cf):this[_0x3124a4(0x1f6)]||(this[_0x3124a4(0x1f6)]=!0x0,this[_0x3124a4(0x1a5)](_0x3124a4(0x1dd),this));break;case _0x3124a4(0x1a1):this[_0x3124a4(0x1b7)]||(this[_0x3124a4(0x1b7)]=!0x0,this[_0x3124a4(0x1a5)](_0x3124a4(0x1a7),this));break;case _0x3124a4(0x1a0):case _0x3124a4(0x1ca):this[_0x3124a4(0x1d5)](),this[_0x3124a4(0x1cd)](),_0x5122c0=_0x3124a4(0x1a0)==_0x4013d1[_0x3124a4(0x1df)]?_0x3124a4(0x1b9):_0x3124a4(0x1db),_0x1adef4=_0x3124a4(0x1a0)==_0x4013d1[_0x3124a4(0x1df)]?_0x4013d1[_0x3124a4(0x1e2)]['id']:void 0x0,this[_0x3124a4(0x1eb)]&&this[_0x3124a4(0x1eb)][_0x3124a4(0x1f0)]!=_0x5122c0&&(this[_0x3124a4(0x1eb)][_0x3124a4(0x1b4)](),this[_0x3124a4(0x1eb)]=void 0x0),this[_0x3124a4(0x1eb)]||(this[_0x3124a4(0x1eb)]=this[_0x3124a4(0x1e7)]({'type':_0x5122c0,'interactionId':this['id'],'id':_0x1adef4}),_0x3124a4(0x1b9)==_0x5122c0&&(this[_0x3124a4(0x1eb)][_0x3124a4(0x1d4)]=_0x530aea[_0x3124a4(0x1d0)](0x0))),this[_0x3124a4(0x1eb)][_0x3124a4(0x1cb)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e9)]);break;case _0x3124a4(0x1ba):_0xe03f5e=JSON[_0x3124a4(0x1b0)](_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1ec)]),this[_0x3124a4(0x1b5)]({'toolName':_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1d9)],'data':_0xe03f5e[_0x3124a4(0x1e2)],'attributes':_0xe03f5e[_0x3124a4(0x1c1)]});break;case _0x3124a4(0x1f5):this[_0x3124a4(0x1ae)]({'toolName':_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1d9)],'data':_0x4013d1[_0x3124a4(0x1e2)][_0x3124a4(0x1e2)]});}}}finally{this[_0x3124a4(0x1dc)]||(this[_0x3124a4(0x1eb)]&&_0x530aea[_0x3124a4(0x1d1)]>0x0&&(this[_0x3124a4(0x1eb)][_0x3124a4(0x1d4)]=_0x530aea[_0x3124a4(0x1d0)](0x0)),this[_0x3124a4(0x1e8)](),this[_0x3124a4(0x1a5)](_0x3124a4(0x1ce),this));}}[_0x412129(0x1d8)](){const _0x546f80=_0x412129;this[_0x546f80(0x1dc)]||(this[_0x546f80(0x1e8)](),this[_0x546f80(0x1a5)](_0x546f80(0x1a3),this));}[_0x412129(0x1f4)](_0x497d92){const _0x45046f=_0x412129;return this[_0x45046f(0x1da)][_0x45046f(0x1cc)](_0x181588=>_0x181588['id']===_0x497d92);}[_0x412129(0x1b6)](){const _0x3aedff=_0x412129;this[_0x3aedff(0x1e4)]||(this[_0x3aedff(0x1d8)](),this[_0x3aedff(0x1da)][_0x3aedff(0x1a8)](_0x12785=>_0x12785[_0x3aedff(0x1b6)]()),this[_0x3aedff(0x1da)]=[],this[_0x3aedff(0x1e4)]=!0x0,this[_0x3aedff(0x1a5)](_0x3aedff(0x1c3),this),this[_0x3aedff(0x1d3)]());}[_0x412129(0x1e7)](_0x4d02f9){const _0x57b196=_0x412129,_0x28a8d2=new _0x176839({'editor':this[_0x57b196(0x1c0)],'documentContextContent':this[_0x57b196(0x1f3)]()?.[_0x57b196(0x1c6)],..._0x4d02f9});return this[_0x57b196(0x1da)][_0x57b196(0x1b3)](_0x28a8d2),_0x28a8d2[_0x57b196(0x1ab)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x57b196(0x1a5)](_0x57b196(0x1ef),_0x28a8d2),_0x28a8d2;}[_0x412129(0x1ed)](_0x3f6733,_0x46829e=!0x1){const _0x3d5930=_0x412129;this[_0x3d5930(0x1a5)](_0x3d5930(0x1ed),_0x3f6733,_0x46829e);}[_0x412129(0x1cd)](){const _0x2ff8f1=_0x412129;this[_0x2ff8f1(0x1f6)]&&(this[_0x2ff8f1(0x1f6)]=!0x1,this[_0x2ff8f1(0x1a5)](_0x2ff8f1(0x1be),this));}[_0x412129(0x1d5)](){const _0xa2bcaf=_0x412129;this[_0xa2bcaf(0x1b7)]&&(this[_0xa2bcaf(0x1b7)]=!0x1,this[_0xa2bcaf(0x1a5)](_0xa2bcaf(0x1ad),this));}[_0x412129(0x1b5)](_0x2fe20f){const _0x51259b=_0x412129;this[_0x51259b(0x1a5)](_0x51259b(0x1d7),{'type':_0x51259b(0x1ec),'toolName':_0x2fe20f[_0x51259b(0x1d9)],'data':structuredClone(_0x2fe20f[_0x51259b(0x1e2)]||{}),'attributes':structuredClone(_0x2fe20f[_0x51259b(0x1c1)]||{})},this);}[_0x412129(0x1ae)](_0x580967){const _0x4a697d=_0x412129;this[_0x4a697d(0x1a5)](_0x4a697d(0x1d7),{'type':_0x4a697d(0x1c7),'toolName':_0x580967[_0x4a697d(0x1d9)],'data':structuredClone(_0x580967[_0x4a697d(0x1e2)])},this);}[_0x412129(0x1e8)](){const _0x1750f1=_0x412129;this[_0x1750f1(0x1dc)]=!0x0,this[_0x1750f1(0x1aa)]&&this[_0x1750f1(0x1aa)][_0x1750f1(0x1bb)][_0x1750f1(0x1a6)](),this[_0x1750f1(0x1eb)]&&this[_0x1750f1(0x1eb)][_0x1750f1(0x1b4)](),this[_0x1750f1(0x1aa)]=this[_0x1750f1(0x1eb)]=void 0x0;}}function _0x2bd2(){const _0x1cfac3=['currentReply','result','setConversationTitle','action-metadata','replyCreated','type','message-metadata','source','getDocumentContext','getReply','mcp-tool-notification','_isWebSearching','callId','modification-delta','reasoning','241694NwKATP','interactionStopped','getStream','fire','abort','reasoningStarted','forEach','conversation-title','currentRequest','delegate','sendRequest','reasoningFinished','_handleToolNotificationData','replyChangeGroupStateUpdated','parse','39270968VaWPsN','1219048gkzdOF','push','done','_handleToolResultData','destroy','_isReasoning','connector','modification','mcp-tool-result','abortController','actionCallId','interactionCreated','webSearchFinished','1426265zxVSZZ','editor','attributes','3030864wDkSRT','interactionDestroyed','6aFEprM','12WiusTy','content','notification','12853925zHhjeq','error','text-delta','appendContent','find','resetWebSearchState','interactionFinished','web-search','splice','length','ai-chat-interaction-error','stopListening','sources','resetReasoningState','interactionStarted','toolDataReceived','stop','toolName','replies','text','isStopped','webSearchStarted','9SubDHb','event','start','messageId','data','12530220BSWcwY','isDestroyed','replyContentUpdated','conversationTitle','createReply','_finalizeInteraction','textDelta','18WkDmcL'];_0x2bd2=function(){return _0x1cfac3;};return _0x2bd2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eeed0=_0x5d78;(function(_0x2e6185,_0x8d9fcc){const _0x415ae8=_0x5d78,_0x489887=_0x2e6185();while(!![]){try{const _0x798bed=parseInt(_0x415ae8(0xc7))/0x1*(parseInt(_0x415ae8(0xd2))/0x2)+-parseInt(_0x415ae8(0xec))/0x3+-parseInt(_0x415ae8(0xdd))/0x4*(parseInt(_0x415ae8(0xc9))/0x5)+parseInt(_0x415ae8(0xce))/0x6*(parseInt(_0x415ae8(0xcf))/0x7)+-parseInt(_0x415ae8(0xe5))/0x8+-parseInt(_0x415ae8(0xc6))/0x9+parseInt(_0x415ae8(0xe2))/0xa*(parseInt(_0x415ae8(0xd1))/0xb);if(_0x798bed===_0x8d9fcc)break;else _0x489887['push'](_0x489887['shift']());}catch(_0x4d587d){_0x489887['push'](_0x489887['shift']());}}}(_0x1ea6,0x735b6));import{EmitterMixin as _0x1a0fad,logWarning as _0x25c552,logError as _0x324518}from'ckeditor5/src/utils.js';function _0x5d78(_0x2e6ad7,_0x497fac){const _0x1ea693=_0x1ea6();return _0x5d78=function(_0x5d7840,_0x13def7){_0x5d7840=_0x5d7840-0xbb;let _0x4a481d=_0x1ea693[_0x5d7840];return _0x4a481d;},_0x5d78(_0x2e6ad7,_0x497fac);}import{getTranslation as _0xdde8ff}from'../utils/common-translations.js';export class AIModels extends _0x1a0fad(){[_0x4eeed0(0xef)];[_0x4eeed0(0xc3)];[_0x4eeed0(0xd8)];[_0x4eeed0(0xbb)]=[];[_0x4eeed0(0xe9)]=null;constructor({connector:_0xbe3591,config:_0x3fdc88,locale:_0x56fd50}){const _0x22bd1b=_0x4eeed0;super(),this[_0x22bd1b(0xef)]=_0xbe3591,this[_0x22bd1b(0xc3)]=_0x3fdc88,this[_0x22bd1b(0xd8)]=_0x56fd50;}get[_0x4eeed0(0xc0)](){const _0x5750fe=_0x4eeed0;return this[_0x5750fe(0xc3)]?.[_0x5750fe(0xd6)];}get[_0x4eeed0(0xed)](){const _0x2a1daf=_0x4eeed0;return this[_0x2a1daf(0xc3)]?.[_0x2a1daf(0xe7)];}async[_0x4eeed0(0xcc)](){const _0x2347ab=_0x4eeed0;return this[_0x2347ab(0xe9)]||(this[_0x2347ab(0xe9)]=this[_0x2347ab(0xc1)]()),this[_0x2347ab(0xe9)];}async[_0x4eeed0(0xee)](){const _0x24bf23=_0x4eeed0,_0xf74d0a=await this[_0x24bf23(0xcc)]();let _0x3850e0;return _0x3850e0=this[_0x24bf23(0xc0)]?this[_0x24bf23(0xe0)](_0xf74d0a,this[_0x24bf23(0xc0)]):_0xf74d0a[_0x24bf23(0xe6)](_0x7417d2=>_0x7417d2[_0x24bf23(0xd4)]),_0x3850e0;}async[_0x4eeed0(0xc2)](_0x36075f){const _0x36e99d=_0x4eeed0,_0x410dc8=await this[_0x36e99d(0xcc)]();if(!_0x410dc8[_0x36e99d(0xca)])return null;if(_0x36075f){const _0x39d82c=this[_0x36e99d(0xbf)](_0x410dc8,_0x36075f);if(_0x39d82c)return _0x39d82c;_0x25c552(_0x36e99d(0xe4),{'modelId':_0x36075f,'fallBackModelId':this[_0x36e99d(0xed)]});}return this[_0x36e99d(0xbe)]();}async[_0x4eeed0(0xbe)](){const _0xf0c4ee=_0x4eeed0,_0x47df07=await this[_0xf0c4ee(0xee)]();if(!_0x47df07[_0xf0c4ee(0xca)])return null;if(this[_0xf0c4ee(0xed)]){const _0x78e8a7=this[_0xf0c4ee(0xbf)](_0x47df07,this[_0xf0c4ee(0xed)]);if(_0x78e8a7)return _0x78e8a7;_0x25c552(_0xf0c4ee(0xde),{'defaultModelId':this[_0xf0c4ee(0xed)],'fallBackModelId':_0x47df07[0x0]['id']});}return _0x47df07[0x0];}async[_0x4eeed0(0xe3)](_0x5cb8d4){const _0x14503e=_0x4eeed0;return(await this[_0x14503e(0xee)]())[_0x14503e(0xd3)](_0x52368a=>_0x52368a[_0x14503e(0xbc)]===_0x5cb8d4[_0x14503e(0xbc)]&&_0x52368a[_0x14503e(0xe8)]===_0x5cb8d4[_0x14503e(0xe8)]);}async[_0x4eeed0(0xc1)](){const _0xd8a65b=_0x4eeed0;if(!this[_0xd8a65b(0xbb)][_0xd8a65b(0xca)])try{const _0x5eb086=this[_0xd8a65b(0xd8)][_0xd8a65b(0xdc)]||'en',_0x24fbb3=this[_0xd8a65b(0xef)][_0xd8a65b(0xdf)](_0x5eb086),_0x86d1a6=await _0x24fbb3[_0xd8a65b(0xc8)]();this[_0xd8a65b(0xbb)]=_0x86d1a6[_0xd8a65b(0xcb)][_0xd8a65b(0xda)](_0xe1ea9f=>qi(_0xe1ea9f)?{..._0xe1ea9f,'name':_0xdde8ff(this[_0xd8a65b(0xd8)],_0xd8a65b(0xcd))}:_0xe1ea9f);}catch(_0x3c59ad){throw _0x324518(_0xd8a65b(0xdb),{'error':_0x3c59ad}),_0x3c59ad;}return[...this[_0xd8a65b(0xbb)]];}[_0x4eeed0(0xe0)](_0x19113e,_0x2fac6b){const _0x2b1318=_0x4eeed0;let _0xc8d44c;if(_0x2fac6b){_0xc8d44c=[];const _0x5d2aa7=new Set(),_0x530aaa=_0x2b1318(0xd7)==typeof _0x2fac6b?[_0x2fac6b[_0x2b1318(0xea)]()]:_0x2fac6b[_0x2b1318(0xda)](_0x5d408f=>_0x5d408f[_0x2b1318(0xea)]());for(const _0x541098 of _0x530aaa)for(const _0x86ec90 of _0x19113e)!_0x5d2aa7[_0x2b1318(0xd0)](_0x86ec90['id'])&&this[_0x2b1318(0xc4)](_0x86ec90,_0x541098)&&(_0xc8d44c[_0x2b1318(0xbd)](_0x86ec90),_0x5d2aa7[_0x2b1318(0xeb)](_0x86ec90['id']));}else _0xc8d44c=_0x19113e;return _0xc8d44c;}[_0x4eeed0(0xc4)](_0xe30c0d,_0x1c2437){const _0xd7439b=_0x4eeed0,_0x2fa9e9=_0xe30c0d['id'][_0xd7439b(0xea)](),_0x5f49e1=_0xe30c0d[_0xd7439b(0xbc)][_0xd7439b(0xea)](),_0x49f724=_0xe30c0d[_0xd7439b(0xe8)][_0xd7439b(0xea)]();return _0x2fa9e9===_0x1c2437||_0x5f49e1===_0x1c2437||qi(_0xe30c0d)&&_0xd7439b(0xe1)===_0x1c2437||_0x49f724===_0x1c2437||_0x2fa9e9[_0xd7439b(0xd9)](_0x1c2437);}[_0x4eeed0(0xbf)](_0x47c227,_0x10a911){const _0x40a4c3=_0x4eeed0;return _0x47c227[_0x40a4c3(0xd5)](_0x24f753=>qi(_0x24f753)&&_0x40a4c3(0xe1)===_0x10a911?_0x24f753:_0x24f753['id']===_0x10a911)||null;}}function _0x1ea6(){const _0x8dad27=['push','getDefault','_getModelById','_availableModels','_retrieveModels','getModel','_config','_isMatchingFilter','agent','3368205wSBiZW','6898yPWTcY','list','10aNTaYm','length','items','getAll','AI_MODEL_NAME_AUTO','873870BmcVLi','35lUiBVy','has','15747545FwFlEq','158kHXBIR','some','recommended','find','displayedModels','string','_locale','startsWith','map','ai-models-unable-to-retrieve','uiLanguage','455276TRJFiZ','ai-chat-default-model-id-unrecognized','getModels','_filterModels','auto','10iWBofA','isAvailable','ai-chat-model-id-unrecognized','6470048tuXLzX','filter','defaultModelId','provider','_modelsRequest','toLocaleLowerCase','add','2464863WdrlnL','_defaultModelId','getAvailableModels','_connector','_modelList','name'];_0x1ea6=function(){return _0x8dad27;};return _0x1ea6();}function qi(_0x42ee43){const _0x3fdf40=_0x4eeed0;return _0x42ee43['id'][_0x3fdf40(0xd9)](_0x3fdf40(0xc5));}
23
+ function _0x12b9(_0x413946,_0x28ae30){const _0x2b244a=_0x2b24();return _0x12b9=function(_0x12b915,_0x4b16fd){_0x12b915=_0x12b915-0x154;let _0x12b8fe=_0x2b244a[_0x12b915];return _0x12b8fe;},_0x12b9(_0x413946,_0x28ae30);}const _0x58b2ee=_0x12b9;(function(_0x1442bb,_0x2d7024){const _0x3c4cf6=_0x12b9,_0x4642c9=_0x1442bb();while(!![]){try{const _0x1d1edf=parseInt(_0x3c4cf6(0x169))/0x1*(parseInt(_0x3c4cf6(0x160))/0x2)+-parseInt(_0x3c4cf6(0x177))/0x3+-parseInt(_0x3c4cf6(0x163))/0x4+parseInt(_0x3c4cf6(0x16a))/0x5+parseInt(_0x3c4cf6(0x173))/0x6+-parseInt(_0x3c4cf6(0x175))/0x7*(-parseInt(_0x3c4cf6(0x15e))/0x8)+parseInt(_0x3c4cf6(0x166))/0x9;if(_0x1d1edf===_0x2d7024)break;else _0x4642c9['push'](_0x4642c9['shift']());}catch(_0x16fbeb){_0x4642c9['push'](_0x4642c9['shift']());}}}(_0x2b24,0xb7700));import{EmitterMixin as _0x7fff32,logWarning as _0x49b40e,logError as _0x17e592}from'ckeditor5/src/utils.js';import{getTranslation as _0x3f4485}from'../utils/common-translations.js';export class AIModels extends _0x7fff32(){[_0x58b2ee(0x172)];[_0x58b2ee(0x154)];[_0x58b2ee(0x157)];[_0x58b2ee(0x158)]=[];[_0x58b2ee(0x15a)]=null;constructor({connector:_0x23ccc6,config:_0x288277,locale:_0x44f81c}){const _0x272687=_0x58b2ee;super(),this[_0x272687(0x172)]=_0x23ccc6,this[_0x272687(0x154)]=_0x288277,this[_0x272687(0x157)]=_0x44f81c;}get[_0x58b2ee(0x167)](){const _0x382e24=_0x58b2ee;return this[_0x382e24(0x154)]?.[_0x382e24(0x186)];}get[_0x58b2ee(0x16c)](){const _0x1db1c6=_0x58b2ee;return this[_0x1db1c6(0x154)]?.[_0x1db1c6(0x164)];}async[_0x58b2ee(0x170)](){const _0x39dd1f=_0x58b2ee;return this[_0x39dd1f(0x15a)]||(this[_0x39dd1f(0x15a)]=this[_0x39dd1f(0x16e)]()),this[_0x39dd1f(0x15a)];}async[_0x58b2ee(0x17f)](){const _0x49b347=_0x58b2ee,_0x3d0430=await this[_0x49b347(0x170)]();let _0x3c6884;return _0x3c6884=this[_0x49b347(0x167)]?this[_0x49b347(0x183)](_0x3d0430,this[_0x49b347(0x167)]):_0x3d0430[_0x49b347(0x15c)](_0x4cb671=>_0x4cb671[_0x49b347(0x176)]),_0x3c6884;}async[_0x58b2ee(0x16f)](_0x220a73){const _0x2f9adc=_0x58b2ee,_0x432452=await this[_0x2f9adc(0x170)]();if(!_0x432452[_0x2f9adc(0x16d)])return null;if(_0x220a73){const _0x233bdb=this[_0x2f9adc(0x161)](_0x432452,_0x220a73);if(_0x233bdb)return _0x233bdb;_0x49b40e(_0x2f9adc(0x17c),{'modelId':_0x220a73,'fallBackModelId':this[_0x2f9adc(0x16c)]});}return this[_0x2f9adc(0x17b)]();}async[_0x58b2ee(0x17b)](){const _0x2d29dc=_0x58b2ee,_0x3832b7=await this[_0x2d29dc(0x17f)]();if(!_0x3832b7[_0x2d29dc(0x16d)])return null;if(this[_0x2d29dc(0x16c)]){const _0x27ff8d=this[_0x2d29dc(0x161)](_0x3832b7,this[_0x2d29dc(0x16c)]);if(_0x27ff8d)return _0x27ff8d;_0x49b40e(_0x2d29dc(0x162),{'defaultModelId':this[_0x2d29dc(0x16c)],'fallBackModelId':_0x3832b7[0x0]['id']});}return _0x3832b7[0x0];}async[_0x58b2ee(0x174)](_0x53b5c4){const _0x478d49=_0x58b2ee;return(await this[_0x478d49(0x17f)]())[_0x478d49(0x184)](_0x70d082=>_0x70d082[_0x478d49(0x17d)]===_0x53b5c4[_0x478d49(0x17d)]&&_0x70d082[_0x478d49(0x156)]===_0x53b5c4[_0x478d49(0x156)]);}async[_0x58b2ee(0x16e)](){const _0x484f7b=_0x58b2ee;if(!this[_0x484f7b(0x158)][_0x484f7b(0x16d)])try{const _0x2645be=this[_0x484f7b(0x157)][_0x484f7b(0x165)]||'en',_0x3dee2f=this[_0x484f7b(0x172)][_0x484f7b(0x159)](_0x2645be),_0x354ac1=await _0x3dee2f[_0x484f7b(0x16b)]();this[_0x484f7b(0x158)]=_0x354ac1[_0x484f7b(0x15f)][_0x484f7b(0x181)](_0x42a486=>Bi(_0x42a486)?{..._0x42a486,'name':_0x3f4485(this[_0x484f7b(0x157)],_0x484f7b(0x17a))}:_0x42a486);}catch(_0x37ebaa){throw _0x17e592(_0x484f7b(0x168),{'error':_0x37ebaa}),_0x37ebaa;}return[...this[_0x484f7b(0x158)]];}[_0x58b2ee(0x183)](_0x96ad6d,_0xd81b37){const _0x2958ad=_0x58b2ee;let _0x2efeab;if(_0xd81b37){_0x2efeab=[];const _0x38f3ff=new Set(),_0x27ba0e=_0x2958ad(0x178)==typeof _0xd81b37?[_0xd81b37[_0x2958ad(0x179)]()]:_0xd81b37[_0x2958ad(0x181)](_0x2a9df8=>_0x2a9df8[_0x2958ad(0x179)]());for(const _0x23396f of _0x27ba0e)for(const _0x54f9a3 of _0x96ad6d)!_0x38f3ff[_0x2958ad(0x180)](_0x54f9a3['id'])&&this[_0x2958ad(0x185)](_0x54f9a3,_0x23396f)&&(_0x2efeab[_0x2958ad(0x182)](_0x54f9a3),_0x38f3ff[_0x2958ad(0x171)](_0x54f9a3['id']));}else _0x2efeab=_0x96ad6d;return _0x2efeab;}[_0x58b2ee(0x185)](_0x553523,_0x29fdd1){const _0x213e10=_0x58b2ee,_0x1ab670=_0x553523['id'][_0x213e10(0x179)](),_0x34ad44=_0x553523[_0x213e10(0x17d)][_0x213e10(0x179)](),_0xa5a3b0=_0x553523[_0x213e10(0x156)][_0x213e10(0x179)]();return _0x1ab670===_0x29fdd1||_0x34ad44===_0x29fdd1||Bi(_0x553523)&&_0x213e10(0x155)===_0x29fdd1||_0xa5a3b0===_0x29fdd1||_0x1ab670[_0x213e10(0x17e)](_0x29fdd1);}[_0x58b2ee(0x161)](_0x4ced2d,_0x5553ac){const _0x2ff8d9=_0x58b2ee;return _0x4ced2d[_0x2ff8d9(0x15b)](_0x31ca2a=>Bi(_0x31ca2a)&&_0x2ff8d9(0x155)===_0x5553ac?_0x31ca2a:_0x31ca2a['id']===_0x5553ac)||null;}}function Bi(_0x1953cd){const _0x3de65f=_0x58b2ee;return _0x1953cd['id'][_0x3de65f(0x17e)](_0x3de65f(0x15d));}function _0x2b24(){const _0x365b78=['1344738hkpZrS','isAvailable','14WMkplZ','recommended','3192726kCNyWV','string','toLocaleLowerCase','AI_MODEL_NAME_AUTO','getDefault','ai-chat-model-id-unrecognized','name','startsWith','getAvailableModels','has','map','push','_filterModels','some','_isMatchingFilter','displayedModels','_config','auto','provider','_locale','_modelList','getModels','_modelsRequest','find','filter','agent','3698888KfoBNJ','items','2847748xyWNnz','_getModelById','ai-chat-default-model-id-unrecognized','6009124mdMvBw','defaultModelId','uiLanguage','5285061cTtOXf','_availableModels','ai-models-unable-to-retrieve','1rEGtYZ','789675hMFVEF','list','_defaultModelId','length','_retrieveModels','getModel','getAll','add','_connector'];_0x2b24=function(){return _0x365b78;};return _0x2b24();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4134(_0x20d0c0,_0xcd8de3){const _0x25e3ed=_0x25e3();return _0x4134=function(_0x4134b3,_0x46ef21){_0x4134b3=_0x4134b3-0x1b5;let _0x4f4db5=_0x25e3ed[_0x4134b3];return _0x4f4db5;},_0x4134(_0x20d0c0,_0xcd8de3);}function _0x25e3(){const _0x38b76b=['data-id','aiResponseParser','modified','forEach','removedNodeIds','cloneNode','node','updateChangeGroups','aiResponseApplier','replyContentUpdated','interactionId','stopListening','3687093HBkNMD','destroy','documentContextContent','parseAndNormalizeHTML','change:content','find','_getDifferentChangeGroups','_getCachedContentParts','content','_setCachedContentParts','withoutDiff','areActionsDisabled','context','4VstlwC','editor','682595rskGJA','modification','convertMarkdownToHTML','ai-reply-get-content-parts-group-not-found','withDiff','new','filter','3440511tRjoTv','done','changes','type','length','splice','pending','fire','index','data-unstable','isDone','includes','cachedSuggestionContentParts','1908480fnwAly','appendContent','push','328936fKwvPm','color:\x20#808080;\x20font-style:\x20italic','parsedContent','newNodeIds','onContentChange','changeGroups','8zRDFeh','previousSibling','indexOf','ai-get-editor-from-context-no-editor','8YeFaRC','locale','modifiedNodeIds','removed','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','nextSibling','state','every','parsedMergedContent','replyChangeGroupStateUpdated','map','unshift','getContentParts','set','sources','span','setChangeGroupState','24127510FOFXGR','8826552EGGcNB'];_0x25e3=function(){return _0x38b76b;};return _0x25e3();}const _0x350e68=_0x4134;(function(_0x11fc89,_0x2f6d7e){const _0x30aaa7=_0x4134,_0x11d494=_0x11fc89();while(!![]){try{const _0x45804f=-parseInt(_0x30aaa7(0x1bd))/0x1*(parseInt(_0x30aaa7(0x1b7))/0x2)+parseInt(_0x30aaa7(0x1f7))/0x3+-parseInt(_0x30aaa7(0x1ee))/0x4*(parseInt(_0x30aaa7(0x1f0))/0x5)+parseInt(_0x30aaa7(0x204))/0x6+parseInt(_0x30aaa7(0x1d4))/0x7*(-parseInt(_0x30aaa7(0x1c1))/0x8)+-parseInt(_0x30aaa7(0x1e1))/0x9+parseInt(_0x30aaa7(0x1d3))/0xa;if(_0x45804f===_0x2f6d7e)break;else _0x11d494['push'](_0x11d494['shift']());}catch(_0x536a10){_0x11d494['push'](_0x11d494['shift']());}}}(_0x25e3,0xb8468));import{CKEditorError as _0x58e79b,ObservableMixin as _0x1aec81,uid as _0x469dd7}from'ckeditor5/src/utils.js';import{Element as _0x1a62d7,findAll as _0x50cefe,getAttribute as _0x1d2b5b,getParents as _0x2b02c1,Document as _0x26ed87,parse as _0x45b6bd,Text as _0x5a6d8f}from'../utils/htmlparser.js';import{AIResponseParser as _0x3959cc}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34f150}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x366ac0}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5a0f9e}from'../utils/common-translations.js';import{cloneDeep as _0x3ae04d}from'es-toolkit';export class AIReply extends _0x1aec81(){['id'];[_0x350e68(0x1df)];[_0x350e68(0x1fa)];[_0x350e68(0x1d0)]=[];[_0x350e68(0x1b9)]=new _0x26ed87([]);[_0x350e68(0x1ca)]=new _0x26ed87([]);[_0x350e68(0x1bc)]=[];[_0x350e68(0x1ec)]=!0x1;[_0x350e68(0x1e3)];[_0x350e68(0x1d6)];[_0x350e68(0x1dd)];[_0x350e68(0x1ef)];[_0x350e68(0x203)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x2155f1,content:_0x44c888='',isDone:_0x23d2dd=!0x1,interactionId:_0x52a7a7,areActionsDisabled:_0x5e9397,documentContextContent:_0x42e8b0,editor:_0x39cf63,id:_0x3b4e5d}){const _0x4f851d=_0x350e68;super(),this['id']=_0x3b4e5d||_0x469dd7(),this[_0x4f851d(0x1df)]=_0x52a7a7,this[_0x4f851d(0x1fa)]=_0x2155f1,this[_0x4f851d(0x1ec)]=!!_0x5e9397,this[_0x4f851d(0x1ef)]=_0x39cf63,this[_0x4f851d(0x1d6)]=new _0x3959cc(),this[_0x4f851d(0x1dd)]=new _0x34f150(),this[_0x4f851d(0x1e3)]=_0x45b6bd(_0x42e8b0||''),this[_0x4f851d(0x1cf)](_0x4f851d(0x201),_0x23d2dd),this['on'](_0x4f851d(0x1e5),()=>{const _0x22638e=_0x4f851d;this[_0x22638e(0x1bb)]();}),this[_0x4f851d(0x1cf)](_0x4f851d(0x1e9),_0x44c888);}[_0x350e68(0x1b5)](_0x3954d1){const _0x194f93=_0x350e68;this[_0x194f93(0x1cf)](_0x194f93(0x1e9),this[_0x194f93(0x1e9)]+_0x3954d1);}[_0x350e68(0x1f8)](){const _0x4623c9=_0x350e68;this[_0x4623c9(0x201)]||(this[_0x4623c9(0x1cf)](_0x4623c9(0x201),!0x0),this[_0x4623c9(0x1bb)]());}[_0x350e68(0x1e2)](){const _0x1d6a6f=_0x350e68;this[_0x1d6a6f(0x1e0)]();}[_0x350e68(0x1d2)](_0x16caba,_0x60a045){const _0x813ecc=_0x350e68;this[_0x813ecc(0x1bc)][_0x16caba][_0x813ecc(0x1c8)]=_0x60a045,this[_0x813ecc(0x1fe)](_0x813ecc(0x1cb),{'reply':this,'index':_0x16caba,'state':_0x60a045});}[_0x350e68(0x1ce)]({showDiff:_0x49d965,groupIndex:_0x13d144}){const _0x1e4797=_0x350e68;if(!this[_0x1e4797(0x1ef)])throw new _0x58e79b(_0x1e4797(0x1c0),null,{'aiReply':this});const _0x54f314=this[_0x1e4797(0x1e8)](_0x49d965,_0x13d144);if(_0x54f314)return _0x54f314;let _0x46a1ba=[];if(void 0x0===_0x13d144)_0x46a1ba=this[_0x1e4797(0x1bc)];else{const _0x47ab23=this[_0x1e4797(0x1bc)][_0x1e4797(0x1e6)](({index:_0xc474b4})=>_0xc474b4===_0x13d144);if(!_0x47ab23)throw new _0x58e79b(_0x1e4797(0x1f3),null,{'aiReply':this,'groupIndex':_0x13d144});_0x46a1ba=[_0x47ab23];}const _0x4484a4=_0x366ac0({'editor':this[_0x1e4797(0x1ef)],'showDiff':_0x49d965,'changeGroups':_0x46a1ba,'documentContextContent':this[_0x1e4797(0x1e3)]});return this[_0x1e4797(0x1ea)](_0x49d965,_0x4484a4),_0x4484a4;}[_0x350e68(0x1e8)](_0x132b2e,_0x599b78){const _0x521937=_0x350e68,_0x4f637c=_0x132b2e?_0x521937(0x1f4):_0x521937(0x1eb);if(!this[_0x521937(0x203)][_0x4f637c][_0x521937(0x1fb)])return null;const _0x408e6c=this[_0x521937(0x203)][_0x4f637c];if(void 0x0===_0x599b78)return _0x408e6c[_0x521937(0x1fb)]>0x0&&_0x408e6c[_0x521937(0x1fb)]!==this[_0x521937(0x1bc)][_0x521937(0x1fb)]?(this[_0x521937(0x1ea)](_0x132b2e,null),null):_0x3ae04d(_0x408e6c);{const _0x1dfc00=_0x408e6c[_0x521937(0x1e6)](({index:_0x57e47a})=>_0x57e47a===_0x599b78);if(_0x1dfc00)return[_0x3ae04d(_0x1dfc00)];}return null;}[_0x350e68(0x1ea)](_0x48b242,_0x1a6f19){const _0x5d6744=_0x350e68,_0x2fb2f0=_0x48b242?_0x5d6744(0x1f4):_0x5d6744(0x1eb);_0x1a6f19?_0x1a6f19[_0x5d6744(0x1d8)](_0x62277a=>{const _0x4a4452=_0x5d6744,_0x50109b=this[_0x4a4452(0x203)][_0x2fb2f0],_0x326fb7=_0x50109b[_0x4a4452(0x1e6)](({index:_0x2c4682})=>_0x2c4682===_0x62277a[_0x4a4452(0x1ff)]);if(_0x326fb7){const _0x1c3f24=_0x50109b[_0x4a4452(0x1bf)](_0x326fb7);_0x50109b[_0x4a4452(0x1fc)](_0x1c3f24,0x1,_0x62277a);}else _0x50109b[_0x4a4452(0x1b6)](_0x62277a);}):this[_0x5d6744(0x203)][_0x2fb2f0][_0x5d6744(0x1fb)]=0x0;}[_0x350e68(0x1bb)](){const _0x5e8028=_0x350e68;if(_0x5e8028(0x1f1)===this[_0x5e8028(0x1fa)]){this[_0x5e8028(0x1b9)]=this[_0x5e8028(0x1d6)][_0x5e8028(0x1e4)](this[_0x5e8028(0x1e9)]);const _0x3dbbab=this[_0x5e8028(0x1bc)];this[_0x5e8028(0x1dc)]();const _0x3f7562=this[_0x5e8028(0x1e7)](_0x3dbbab,this[_0x5e8028(0x1bc)]);(_0x3f7562[_0x5e8028(0x1fb)]||this[_0x5e8028(0x201)])&&(this[_0x5e8028(0x1fe)](_0x5e8028(0x1de),this,_0x3f7562),this[_0x5e8028(0x203)][_0x5e8028(0x1f4)][_0x5e8028(0x1fb)]=this[_0x5e8028(0x203)][_0x5e8028(0x1eb)][_0x5e8028(0x1fb)]=0x0);}else this[_0x5e8028(0x1b9)]=this[_0x5e8028(0x1d6)][_0x5e8028(0x1f2)](this[_0x5e8028(0x1e9)]),this[_0x5e8028(0x1fe)](_0x5e8028(0x1de),this);}[_0x350e68(0x1e7)](_0x3b326e,_0xfce96e){const _0x4f532a=_0x350e68,_0x262dfc=[];for(const _0x18d746 of _0xfce96e){const _0x56e2bc=_0x3b326e[_0x18d746[_0x4f532a(0x1ff)]];_0x56e2bc?_0x56e2bc[_0x4f532a(0x1f9)][_0x4f532a(0x1fb)]!==_0x18d746[_0x4f532a(0x1f9)][_0x4f532a(0x1fb)]?_0x262dfc[_0x4f532a(0x1b6)](_0x18d746):_0x56e2bc[_0x4f532a(0x1f9)][_0x4f532a(0x1d8)]((_0x1e0d22,_0x2930b0)=>{const _0x3c5f7c=_0x4f532a,_0x3f0e33=_0x18d746[_0x3c5f7c(0x1f9)][_0x2930b0];_0x1e0d22['id']!==_0x3f0e33['id']&&_0x262dfc[_0x3c5f7c(0x1b6)](_0x18d746);}):_0x262dfc[_0x4f532a(0x1b6)](_0x18d746);}return _0x262dfc;}[_0x350e68(0x1dc)](){const _0x386378=_0x350e68,_0xd24b91=new _0x1a62d7('p',{},[new _0x1a62d7(_0x386378(0x1d1),{'style':_0x386378(0x1b8)},[new _0x5a6d8f(_0x5a0f9e(this[_0x386378(0x1ef)][_0x386378(0x1c2)],_0x386378(0x1c5)))])]),_0x44b568=this[_0x386378(0x1dd)][_0x386378(0x1c6)](this[_0x386378(0x1b9)],this[_0x386378(0x1e3)][_0x386378(0x1da)](!0x0),{'markUnstableElements':!this[_0x386378(0x201)],'replaceRemovedWith':_0xd24b91,'cutAfterLastChange':!this[_0x386378(0x201)]});if(!_0x44b568[_0x386378(0x1c3)][_0x386378(0x1fb)]&&!this[_0x386378(0x201)])return;this[_0x386378(0x1ca)]=_0x44b568[_0x386378(0x1b9)];let _0x4b3be8=[];if(_0x50cefe(_0x34787b=>{const _0x522d47=_0x386378,_0x3a19fd=_0x1d2b5b(_0x34787b,_0x522d47(0x1d5));if(!_0x3a19fd||!_0x297427(_0x3a19fd))return!0x1;const _0x3c3634=[_0x34787b,..._0x2b02c1(_0x34787b)]['at'](-0x2);if(_0x34787b!=_0x3c3634){const _0x4ce784=_0x1d2b5b(_0x3c3634,_0x522d47(0x1d5));_0x297427(_0x4ce784)||(_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x3c3634,'id':_0x4ce784,'type':_0x522d47(0x1d7)}),_0x44b568[_0x522d47(0x1c3)][_0x522d47(0x1b6)](_0x4ce784));}else _0x44b568[_0x522d47(0x1c3)][_0x522d47(0x202)](_0x3a19fd)?_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1d7),'id':_0x3a19fd}):_0x44b568[_0x522d47(0x1ba)][_0x522d47(0x202)](_0x3a19fd)?_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1f5),'id':_0x3a19fd,'anchorId':_0x1d2b5b(_0x34787b[_0x522d47(0x1be)],_0x522d47(0x1d5))}):_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1c4),'id':_0x3a19fd});return!0x0;},this[_0x386378(0x1ca)]),_0x4b3be8=_0x4b3be8[_0x386378(0x1f6)](({node:_0xec23f8})=>[..._0x2b02c1(_0xec23f8),_0xec23f8][_0x386378(0x1c9)](_0x3f9355=>!_0x1d2b5b(_0x3f9355,_0x386378(0x200)))),0x0==_0x4b3be8[_0x386378(0x1fb)])return;const _0x365e8a=[[_0x4b3be8[0x0]]];for(let _0x1f7908=0x1;_0x1f7908<_0x4b3be8[_0x386378(0x1fb)];_0x1f7908++){const _0x3d7e36=_0x365e8a[_0x365e8a[_0x386378(0x1fb)]-0x1],_0xf74894=_0x3d7e36[_0x3d7e36[_0x386378(0x1fb)]-0x1];_0x4b3be8[_0x1f7908][_0x386378(0x1db)][_0x386378(0x1be)]==_0xf74894[_0x386378(0x1db)]&&_0x386378(0x1d7)!=_0x4b3be8[_0x1f7908][_0x386378(0x1fa)]&&_0x386378(0x1d7)!=_0xf74894[_0x386378(0x1fa)]?_0x3d7e36[_0x386378(0x1b6)](_0x4b3be8[_0x1f7908]):_0x365e8a[_0x386378(0x1b6)]([_0x4b3be8[_0x1f7908]]);}for(const _0x1b087f of _0x365e8a){const _0x4d826c=_0x1b087f[0x0],_0x2839d9=_0x1b087f[_0x1b087f[_0x386378(0x1fb)]-0x1],_0x1dafae=_0x344324(_0x4d826c[_0x386378(0x1db)][_0x386378(0x1be)]);_0x1dafae&&_0x1b087f[_0x386378(0x1cd)](_0x1dafae);const _0x14d12b=_0x344324(_0x2839d9[_0x386378(0x1db)][_0x386378(0x1c7)]);_0x14d12b&&_0x1b087f[_0x386378(0x1b6)](_0x14d12b);}function _0x297427(_0x4530ae){const _0x459e08=_0x386378;return _0x44b568[_0x459e08(0x1c3)][_0x459e08(0x202)](_0x4530ae)||_0x44b568[_0x459e08(0x1ba)][_0x459e08(0x202)](_0x4530ae)||_0x44b568[_0x459e08(0x1d9)][_0x459e08(0x202)](_0x4530ae);}function _0x344324(_0x4ba44f){const _0x360ecb=_0x386378;if(_0x4ba44f&&_0x1d2b5b(_0x4ba44f,_0x360ecb(0x1d5))&&!_0x1d2b5b(_0x4ba44f,_0x360ecb(0x200))){const _0x37969=_0x1d2b5b(_0x4ba44f,_0x360ecb(0x1d5));if(!_0x297427(_0x37969))return{'node':_0x4ba44f,'type':_0x360ecb(0x1ed),'id':_0x37969};}return null;}this[_0x386378(0x1bc)]=_0x365e8a[_0x386378(0x1cc)]((_0x279341,_0x1d4b18)=>({'changes':_0x279341,'state':_0x386378(0x1fd),'index':_0x1d4b18}));}}
23
+ function _0x21d2(_0x186140,_0x41413c){const _0x10eb9c=_0x10eb();return _0x21d2=function(_0x21d25c,_0x4946a7){_0x21d25c=_0x21d25c-0x1ac;let _0x3fe4a6=_0x10eb9c[_0x21d25c];return _0x3fe4a6;},_0x21d2(_0x186140,_0x41413c);}const _0x1dbc35=_0x21d2;(function(_0x31dddf,_0x7f9185){const _0x3b4e8e=_0x21d2,_0x1b07a3=_0x31dddf();while(!![]){try{const _0x56f419=-parseInt(_0x3b4e8e(0x1de))/0x1*(parseInt(_0x3b4e8e(0x1dc))/0x2)+-parseInt(_0x3b4e8e(0x1c7))/0x3*(-parseInt(_0x3b4e8e(0x1cd))/0x4)+-parseInt(_0x3b4e8e(0x1ac))/0x5*(parseInt(_0x3b4e8e(0x1d7))/0x6)+-parseInt(_0x3b4e8e(0x1ea))/0x7*(parseInt(_0x3b4e8e(0x1f9))/0x8)+-parseInt(_0x3b4e8e(0x1b1))/0x9+-parseInt(_0x3b4e8e(0x1c1))/0xa+-parseInt(_0x3b4e8e(0x1b5))/0xb*(-parseInt(_0x3b4e8e(0x1af))/0xc);if(_0x56f419===_0x7f9185)break;else _0x1b07a3['push'](_0x1b07a3['shift']());}catch(_0x591c67){_0x1b07a3['push'](_0x1b07a3['shift']());}}}(_0x10eb,0x46a26));import{CKEditorError as _0xe8e30a,ObservableMixin as _0x4525dd,uid as _0x40bb6b}from'ckeditor5/src/utils.js';import{Element as _0xbc92c0,findAll as _0x1a0d81,getAttribute as _0x2f0c10,getParents as _0x3cd6e7,Document as _0x1af7e3,parse as _0x3f9970,Text as _0x473226}from'../utils/htmlparser.js';import{AIResponseParser as _0x282d4c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3ec193}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5daa36}from'../utils/getsuggestionpartsfromreply.js';function _0x10eb(){const _0x58b650=['type','126883YaeUbP','previousSibling','aiResponseApplier','newNodeIds','forEach','parsedMergedContent','change:content','find','push','map','color:\x20#808080;\x20font-style:\x20italic','replyChangeGroupStateUpdated','244769dmEHop','removed','unshift','set','changeGroups','splice','appendContent','editor','merge','ai-get-editor-from-context-no-editor','replyContentUpdated','withDiff','data-unstable','stopListening','cloneNode','112wVwOuh','_setCachedContentParts','modifiedNodeIds','onContentChange','removedNodeIds','5TkwOIY','every','updateChangeGroups','23892DRqnCF','node','1743930yRYUCW','setChangeGroupState','sources','data-id','9647AHhjUE','ai-reply-get-content-parts-group-not-found','isDone','filter','convertMarkdownToHTML','withoutDiff','locale','parsedContent','span','nextSibling','includes','cachedSuggestionContentParts','2561590wUlZVA','pending','length','indexOf','destroy','AI_SUGGESTION_CONTENT_PART_REMOVED','3tUHXTJ','_getDifferentChangeGroups','areActionsDisabled','done','aiResponseParser','state','1242188xZQnkx','_getCachedContentParts','context','getContentParts','new','modification','changes','fire','interactionId','index','3444618VgOaoj','modified','content','parseAndNormalizeHTML','documentContextContent','4hofDVi'];_0x10eb=function(){return _0x58b650;};return _0x10eb();}import{getTranslation as _0x4cbbaa}from'../utils/common-translations.js';import{cloneDeep as _0x16a653}from'es-toolkit';export class AIReply extends _0x4525dd(){['id'];[_0x1dbc35(0x1d5)];[_0x1dbc35(0x1dd)];[_0x1dbc35(0x1b3)]=[];[_0x1dbc35(0x1bc)]=new _0x1af7e3([]);[_0x1dbc35(0x1e3)]=new _0x1af7e3([]);[_0x1dbc35(0x1ee)]=[];[_0x1dbc35(0x1c9)]=!0x1;[_0x1dbc35(0x1db)];[_0x1dbc35(0x1cb)];[_0x1dbc35(0x1e0)];[_0x1dbc35(0x1f1)];[_0x1dbc35(0x1c0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x518453,content:_0x29dc97='',isDone:_0x2c1002=!0x1,interactionId:_0x76ad25,areActionsDisabled:_0x402b13,documentContextContent:_0x51314e,editor:_0x5a5dfe,id:_0x2a5636}){const _0xceb0b3=_0x1dbc35;super(),this['id']=_0x2a5636||_0x40bb6b(),this[_0xceb0b3(0x1d5)]=_0x76ad25,this[_0xceb0b3(0x1dd)]=_0x518453,this[_0xceb0b3(0x1c9)]=!!_0x402b13,this[_0xceb0b3(0x1f1)]=_0x5a5dfe,this[_0xceb0b3(0x1cb)]=new _0x282d4c(),this[_0xceb0b3(0x1e0)]=new _0x3ec193(),this[_0xceb0b3(0x1db)]=_0x3f9970(_0x51314e||''),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1b7),_0x2c1002),this['on'](_0xceb0b3(0x1e4),()=>{const _0x888eb0=_0xceb0b3;this[_0x888eb0(0x1fc)]();}),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1d9),_0x29dc97);}[_0x1dbc35(0x1f0)](_0x3ec435){const _0x32fc41=_0x1dbc35;this[_0x32fc41(0x1ed)](_0x32fc41(0x1d9),this[_0x32fc41(0x1d9)]+_0x3ec435);}[_0x1dbc35(0x1ca)](){const _0x321455=_0x1dbc35;this[_0x321455(0x1b7)]||(this[_0x321455(0x1ed)](_0x321455(0x1b7),!0x0),this[_0x321455(0x1fc)]());}[_0x1dbc35(0x1c5)](){const _0x5ae9b7=_0x1dbc35;this[_0x5ae9b7(0x1f7)]();}[_0x1dbc35(0x1b2)](_0x2dcd65,_0x398c19){const _0x58314a=_0x1dbc35;this[_0x58314a(0x1ee)][_0x2dcd65][_0x58314a(0x1cc)]=_0x398c19,this[_0x58314a(0x1d4)](_0x58314a(0x1e9),{'reply':this,'index':_0x2dcd65,'state':_0x398c19});}[_0x1dbc35(0x1d0)]({showDiff:_0x2cfbc1,groupIndex:_0x4e2373}){const _0x64788=_0x1dbc35;if(!this[_0x64788(0x1f1)])throw new _0xe8e30a(_0x64788(0x1f3),null,{'aiReply':this});const _0x4f29d1=this[_0x64788(0x1ce)](_0x2cfbc1,_0x4e2373);if(_0x4f29d1)return _0x4f29d1;let _0x516b31=[];if(void 0x0===_0x4e2373)_0x516b31=this[_0x64788(0x1ee)];else{const _0x459946=this[_0x64788(0x1ee)][_0x64788(0x1e5)](({index:_0x247dd2})=>_0x247dd2===_0x4e2373);if(!_0x459946)throw new _0xe8e30a(_0x64788(0x1b6),null,{'aiReply':this,'groupIndex':_0x4e2373});_0x516b31=[_0x459946];}const _0x32a7e6=_0x5daa36({'editor':this[_0x64788(0x1f1)],'showDiff':_0x2cfbc1,'changeGroups':_0x516b31,'documentContextContent':this[_0x64788(0x1db)]});return this[_0x64788(0x1fa)](_0x2cfbc1,_0x32a7e6),_0x32a7e6;}[_0x1dbc35(0x1ce)](_0x3752ce,_0x5b75af){const _0x27400d=_0x1dbc35,_0x1c4d10=_0x3752ce?_0x27400d(0x1f5):_0x27400d(0x1ba);if(!this[_0x27400d(0x1c0)][_0x1c4d10][_0x27400d(0x1c3)])return null;const _0xe8df2a=this[_0x27400d(0x1c0)][_0x1c4d10];if(void 0x0===_0x5b75af)return _0xe8df2a[_0x27400d(0x1c3)]>0x0&&_0xe8df2a[_0x27400d(0x1c3)]!==this[_0x27400d(0x1ee)][_0x27400d(0x1c3)]?(this[_0x27400d(0x1fa)](_0x3752ce,null),null):_0x16a653(_0xe8df2a);{const _0x18bdd9=_0xe8df2a[_0x27400d(0x1e5)](({index:_0x2201c7})=>_0x2201c7===_0x5b75af);if(_0x18bdd9)return[_0x16a653(_0x18bdd9)];}return null;}[_0x1dbc35(0x1fa)](_0x559cd2,_0x27a4fd){const _0x49e518=_0x1dbc35,_0x442338=_0x559cd2?_0x49e518(0x1f5):_0x49e518(0x1ba);_0x27a4fd?_0x27a4fd[_0x49e518(0x1e2)](_0x2cb025=>{const _0x3221dd=_0x49e518,_0x1571b4=this[_0x3221dd(0x1c0)][_0x442338],_0x416b78=_0x1571b4[_0x3221dd(0x1e5)](({index:_0x5a6cdb})=>_0x5a6cdb===_0x2cb025[_0x3221dd(0x1d6)]);if(_0x416b78){const _0x40c393=_0x1571b4[_0x3221dd(0x1c4)](_0x416b78);_0x1571b4[_0x3221dd(0x1ef)](_0x40c393,0x1,_0x2cb025);}else _0x1571b4[_0x3221dd(0x1e6)](_0x2cb025);}):this[_0x49e518(0x1c0)][_0x442338][_0x49e518(0x1c3)]=0x0;}[_0x1dbc35(0x1fc)](){const _0x53af77=_0x1dbc35;if(_0x53af77(0x1d2)===this[_0x53af77(0x1dd)]){this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1da)](this[_0x53af77(0x1d9)]);const _0x2bea7c=this[_0x53af77(0x1ee)];this[_0x53af77(0x1ae)]();const _0x3855e3=this[_0x53af77(0x1c8)](_0x2bea7c,this[_0x53af77(0x1ee)]);(_0x3855e3[_0x53af77(0x1c3)]||this[_0x53af77(0x1b7)])&&(this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this,_0x3855e3),this[_0x53af77(0x1c0)][_0x53af77(0x1f5)][_0x53af77(0x1c3)]=this[_0x53af77(0x1c0)][_0x53af77(0x1ba)][_0x53af77(0x1c3)]=0x0);}else this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1b9)](this[_0x53af77(0x1d9)]),this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this);}[_0x1dbc35(0x1c8)](_0x5558fa,_0x1d1dbc){const _0x5e28bd=_0x1dbc35,_0x37c34e=[];for(const _0x490a07 of _0x1d1dbc){const _0x1482ba=_0x5558fa[_0x490a07[_0x5e28bd(0x1d6)]];_0x1482ba?_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]!==_0x490a07[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]?_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07):_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1e2)]((_0x119d07,_0x543b47)=>{const _0x76fa6a=_0x5e28bd,_0x1485d1=_0x490a07[_0x76fa6a(0x1d3)][_0x543b47];_0x119d07['id']!==_0x1485d1['id']&&_0x37c34e[_0x76fa6a(0x1e6)](_0x490a07);}):_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07);}return _0x37c34e;}[_0x1dbc35(0x1ae)](){const _0x4c790f=_0x1dbc35,_0x1d8355=new _0xbc92c0('p',{},[new _0xbc92c0(_0x4c790f(0x1bd),{'style':_0x4c790f(0x1e8)},[new _0x473226(_0x4cbbaa(this[_0x4c790f(0x1f1)][_0x4c790f(0x1bb)],_0x4c790f(0x1c6)))])]),_0xcc4d30=this[_0x4c790f(0x1e0)][_0x4c790f(0x1f2)](this[_0x4c790f(0x1bc)],this[_0x4c790f(0x1db)][_0x4c790f(0x1f8)](!0x0),{'markUnstableElements':!this[_0x4c790f(0x1b7)],'replaceRemovedWith':_0x1d8355,'cutAfterLastChange':!this[_0x4c790f(0x1b7)]});if(!_0xcc4d30[_0x4c790f(0x1fb)][_0x4c790f(0x1c3)]&&!this[_0x4c790f(0x1b7)])return;this[_0x4c790f(0x1e3)]=_0xcc4d30[_0x4c790f(0x1bc)];let _0x2403b7=[];if(_0x1a0d81(_0x49c3d7=>{const _0x41c318=_0x4c790f,_0x1572b4=_0x2f0c10(_0x49c3d7,_0x41c318(0x1b4));if(!_0x1572b4||!_0x42759c(_0x1572b4))return!0x1;const _0x1314be=[_0x49c3d7,..._0x3cd6e7(_0x49c3d7)]['at'](-0x2);if(_0x49c3d7!=_0x1314be){const _0x46afe0=_0x2f0c10(_0x1314be,_0x41c318(0x1b4));_0x42759c(_0x46afe0)||(_0x2403b7[_0x41c318(0x1e6)]({'node':_0x1314be,'id':_0x46afe0,'type':_0x41c318(0x1d8)}),_0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1e6)](_0x46afe0));}else _0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d8),'id':_0x1572b4}):_0xcc4d30[_0x41c318(0x1e1)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d1),'id':_0x1572b4,'anchorId':_0x2f0c10(_0x49c3d7[_0x41c318(0x1df)],_0x41c318(0x1b4))}):_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1eb),'id':_0x1572b4});return!0x0;},this[_0x4c790f(0x1e3)]),_0x2403b7=_0x2403b7[_0x4c790f(0x1b8)](({node:_0x2c79ef})=>[..._0x3cd6e7(_0x2c79ef),_0x2c79ef][_0x4c790f(0x1ad)](_0x1ca8ee=>!_0x2f0c10(_0x1ca8ee,_0x4c790f(0x1f6)))),0x0==_0x2403b7[_0x4c790f(0x1c3)])return;const _0x4255b9=[[_0x2403b7[0x0]]];for(let _0x1f28a0=0x1;_0x1f28a0<_0x2403b7[_0x4c790f(0x1c3)];_0x1f28a0++){const _0x2bedf5=_0x4255b9[_0x4255b9[_0x4c790f(0x1c3)]-0x1],_0x46d031=_0x2bedf5[_0x2bedf5[_0x4c790f(0x1c3)]-0x1];_0x2403b7[_0x1f28a0][_0x4c790f(0x1b0)][_0x4c790f(0x1df)]==_0x46d031[_0x4c790f(0x1b0)]&&_0x4c790f(0x1d8)!=_0x2403b7[_0x1f28a0][_0x4c790f(0x1dd)]&&_0x4c790f(0x1d8)!=_0x46d031[_0x4c790f(0x1dd)]?_0x2bedf5[_0x4c790f(0x1e6)](_0x2403b7[_0x1f28a0]):_0x4255b9[_0x4c790f(0x1e6)]([_0x2403b7[_0x1f28a0]]);}for(const _0x163d97 of _0x4255b9){const _0xdc25a=_0x163d97[0x0],_0x5e0a79=_0x163d97[_0x163d97[_0x4c790f(0x1c3)]-0x1],_0x221b2e=_0x564763(_0xdc25a[_0x4c790f(0x1b0)][_0x4c790f(0x1df)]);_0x221b2e&&_0x163d97[_0x4c790f(0x1ec)](_0x221b2e);const _0x43fcd6=_0x564763(_0x5e0a79[_0x4c790f(0x1b0)][_0x4c790f(0x1be)]);_0x43fcd6&&_0x163d97[_0x4c790f(0x1e6)](_0x43fcd6);}function _0x42759c(_0x42c1a4){const _0x1a16dc=_0x4c790f;return _0xcc4d30[_0x1a16dc(0x1fb)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1e1)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1fd)][_0x1a16dc(0x1bf)](_0x42c1a4);}function _0x564763(_0x3b266b){const _0x50da7=_0x4c790f;if(_0x3b266b&&_0x2f0c10(_0x3b266b,_0x50da7(0x1b4))&&!_0x2f0c10(_0x3b266b,_0x50da7(0x1f6))){const _0x3107e8=_0x2f0c10(_0x3b266b,_0x50da7(0x1b4));if(!_0x42759c(_0x3107e8))return{'node':_0x3b266b,'type':_0x50da7(0x1cf),'id':_0x3107e8};}return null;}this[_0x4c790f(0x1ee)]=_0x4255b9[_0x4c790f(0x1e7)]((_0x5979e7,_0x23f1ed)=>({'changes':_0x5979e7,'state':_0x4c790f(0x1c2),'index':_0x23f1ed}));}}