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

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 (110) 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/aiassistantediting.js +1 -1
  9. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  10. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  12. package/src/aiassistant/ui/form/aiformview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  14. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  15. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  16. package/src/aiballoon/aiballoon.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatballoon.js +1 -1
  19. package/src/aichat/aichatcontroller.js +1 -1
  20. package/src/aichat/aichatui.js +1 -1
  21. package/src/aichat/model/aichatcontext.js +1 -1
  22. package/src/aichat/model/aichatconversation.js +1 -1
  23. package/src/aichat/model/aichatinteraction.js +1 -1
  24. package/src/aichat/ui/aichatballoonview.js +1 -1
  25. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  26. package/src/aichat/ui/aichatfeedview.js +1 -1
  27. package/src/aichat/ui/aichatheaderview.js +1 -1
  28. package/src/aichat/ui/aichatview.js +1 -1
  29. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  35. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  46. package/src/aichat/utils/eventnames.js +1 -1
  47. package/src/aichathistory/aichathistory.js +1 -1
  48. package/src/aichathistory/aichathistorycontroller.js +1 -1
  49. package/src/aichathistory/aichathistoryui.js +1 -1
  50. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  51. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  52. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  53. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  54. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  55. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  56. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  57. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  58. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  59. package/src/aicore/aiconnector.js +1 -1
  60. package/src/aicore/aiediting.js +1 -1
  61. package/src/aicore/model/aiinteraction.js +1 -1
  62. package/src/aicore/model/aimodels.js +1 -1
  63. package/src/aicore/model/aireply.js +1 -1
  64. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  65. package/src/aicore/pipeline/airesponseparser.js +2 -2
  66. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  77. package/src/aicore/utils/documentposition.js +1 -1
  78. package/src/aicore/utils/documentrange.js +1 -1
  79. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  80. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  81. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  82. package/src/aicore/utils/htmlparser.js +1 -1
  83. package/src/aicore/utils/htmlstreamer.js +1 -1
  84. package/src/aieditorintegration/aieditorintegration.js +1 -1
  85. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  86. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  87. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  88. package/src/aiquickactions/aiquickactionsui.js +1 -1
  89. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  90. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  91. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  92. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  93. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  94. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  95. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  96. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  97. package/src/aireviewcore/aireviewcoreui.js +1 -1
  98. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  99. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  100. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  101. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  102. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  103. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  104. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  105. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  106. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aitabs/aitabs.js +1 -1
  110. package/src/aitranslate/aitranslate.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58a4a1=_0x26dd;(function(_0x4ed4c4,_0x3cc172){const _0x48338f=_0x26dd,_0x3f68fe=_0x4ed4c4();while(!![]){try{const _0x1754ef=parseInt(_0x48338f(0xfd))/0x1+-parseInt(_0x48338f(0xd5))/0x2+parseInt(_0x48338f(0xe5))/0x3+parseInt(_0x48338f(0xf1))/0x4+parseInt(_0x48338f(0x101))/0x5+parseInt(_0x48338f(0xec))/0x6+-parseInt(_0x48338f(0xef))/0x7*(parseInt(_0x48338f(0xdc))/0x8);if(_0x1754ef===_0x3cc172)break;else _0x3f68fe['push'](_0x3f68fe['shift']());}catch(_0x505174){_0x3f68fe['push'](_0x3f68fe['shift']());}}}(_0x51fe,0xb7f46));import{AIChatUI as _0x175e19}from'../aichat/aichatui.js';import{ContextPlugin as _0x39187c}from'ckeditor5/src/core.js';function _0x51fe(){const _0x14bda0=['check','source','_shortcuts','locale','find','destroy','658337cFQfhI','getDefault','fire','ai.chat.shortcuts','4732820ZuUAPB','element','_switchTab','_removeShortcuts','_runChatShortcut','interactionStarted','_runReviewShortcut','get','_validateShortcuts','getModel','AITabs','_aiChatUI','conversationCreated','values','params','config','AIChatController','hasFeedItem','ai-chat-shortcuts-translate-not-found','review','focusPromptInput','pluginName','_injectShortcuts','isFromHistory','chat','args','AIReviewModeUI','activeConversation','REVIEW','runReviewCheck','isPremiumPlugin','forEach','TRANSLATE','requires','type','AIChatShortcuts','_shortcutsView','ai-chat-shortcuts-ai-tabs-not-found','CHAT','activateTab','reviewMode','string','has','chat-shortcuts','chatModels','listenTo','1959070OxeSAX','plugins','_executeShortcut','setPromptInputValue','isOfficialPlugin','execute','ai-chat-shortcuts-invalid-config','64ljjNCT','view','translate','setReasoning','_runTranslateShortcut','removeFeedItem','addFeedItemCustomElement','addCurrentDocumentToChatContext','init','370986RrFLHx','label','AITranslateUI','length','context','setWebSearch','render','1615320lOcJZC','ai-chat-shortcuts-review-mode-not-found','language','456729bVgJhB','setModel','1028824GSKJfv','sendMessage','prompt','includes','custom','AIChat'];_0x51fe=function(){return _0x14bda0;};return _0x51fe();}import{AIChatShortcutsView as _0x47c79a}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x35a8ad}from'ckeditor5/src/utils.js';function _0x26dd(_0x29751d,_0x1900d9){const _0x51fed1=_0x51fe();return _0x26dd=function(_0x26dd8f,_0x259897){_0x26dd8f=_0x26dd8f-0xb6;let _0x455b91=_0x51fed1[_0x26dd8f];return _0x455b91;},_0x26dd(_0x29751d,_0x1900d9);}import'../../theme/aichatshortcuts/aichatshortcuts.css';const wt=_0x58a4a1(0xd2);export var AIChatShortcutType;!function(_0x286b01){const _0x3cc585=_0x58a4a1;_0x286b01[_0x3cc585(0xcd)]=_0x3cc585(0xbf),_0x286b01[_0x3cc585(0xc3)]=_0x3cc585(0xba),_0x286b01[_0x3cc585(0xc7)]=_0x3cc585(0xde);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x39187c{[_0x58a4a1(0xf9)];[_0x58a4a1(0xcb)];[_0x58a4a1(0x10c)];static get[_0x58a4a1(0xc8)](){return[_0x175e19];}static get[_0x58a4a1(0xbc)](){const _0x2ed13b=_0x58a4a1;return _0x2ed13b(0xca);}static get[_0x58a4a1(0xd9)](){return!0x0;}static get[_0x58a4a1(0xc5)](){return!0x0;}[_0x58a4a1(0xe4)](){const _0x1952a5=_0x58a4a1;this[_0x1952a5(0x10c)]=this[_0x1952a5(0xe9)][_0x1952a5(0xd6)][_0x1952a5(0x108)](_0x175e19),this[_0x1952a5(0xf9)]=this[_0x1952a5(0xe9)][_0x1952a5(0xb6)][_0x1952a5(0x108)](_0x1952a5(0x100))??[];const _0x1604a5=this[_0x1952a5(0xe9)][_0x1952a5(0xd6)][_0x1952a5(0x108)](_0x1952a5(0xb7));this[_0x1952a5(0xf9)][_0x1952a5(0xe8)]&&(this[_0x1952a5(0x109)](),this[_0x1952a5(0x10c)]['on'](_0x1952a5(0x10d),()=>{const _0x3b6664=_0x1952a5;_0x1604a5[_0x3b6664(0xc2)][_0x3b6664(0xbe)]||this[_0x3b6664(0xbd)]();}),this[_0x1952a5(0xd4)](_0x1604a5,_0x1952a5(0x106),()=>{const _0x132389=_0x1952a5;this[_0x132389(0x104)]();}));}[_0x58a4a1(0x109)](){const _0x595699=_0x58a4a1,_0x47e61a=Object[_0x595699(0x10e)](AIChatShortcutType);this[_0x595699(0xf9)][_0x595699(0xc6)](_0x54b040=>{const _0x4abc36=_0x595699;let _0xceb216=!0x0;if(_0x54b040['id']&&_0x54b040[_0x4abc36(0xe6)]&&_0x47e61a[_0x4abc36(0xf4)](_0x54b040[_0x4abc36(0xc9)])?_0x4abc36(0xbf)===_0x54b040[_0x4abc36(0xc9)]&&(_0xceb216=_0x4abc36(0xd0)==typeof _0x54b040[_0x4abc36(0xf3)]):_0xceb216=!0x1,!_0xceb216)throw new _0x35a8ad(_0x4abc36(0xdb),this[_0x4abc36(0xe9)],{'shortcut':_0x54b040});});}[_0x58a4a1(0xbd)](){const _0x2072a6=_0x58a4a1,_0x4873ff=this[_0x2072a6(0xe9)][_0x2072a6(0xd6)][_0x2072a6(0x108)](_0x175e19);this[_0x2072a6(0xcb)]=new _0x47c79a(this[_0x2072a6(0xe9)][_0x2072a6(0xfa)],this[_0x2072a6(0xf9)]),this[_0x2072a6(0xcb)][_0x2072a6(0xeb)](),_0x4873ff[_0x2072a6(0xe2)](this[_0x2072a6(0xcb)][_0x2072a6(0x102)],wt),this[_0x2072a6(0xcb)]['on'](_0x2072a6(0xda),_0x4781db=>{const _0x5014c9=_0x2072a6,_0x327f44=_0x4781db[_0x5014c9(0xf8)]['id'];this[_0x5014c9(0xd7)](_0x327f44);});}[_0x58a4a1(0x104)](){const _0x42b7c1=_0x58a4a1,_0x1799af=this[_0x42b7c1(0xe9)][_0x42b7c1(0xd6)][_0x42b7c1(0x108)](_0x175e19);_0x1799af[_0x42b7c1(0xb8)](wt)&&_0x1799af[_0x42b7c1(0xe1)](wt),this[_0x42b7c1(0xcb)]?.[_0x42b7c1(0xfc)]();}[_0x58a4a1(0xd7)](_0x4a3172){const _0x3706e7=_0x58a4a1,_0x21caaa=this[_0x3706e7(0xf9)][_0x3706e7(0xfb)](_0x54ae1c=>_0x54ae1c['id']===_0x4a3172),_0x3d5761=_0x21caaa[_0x3706e7(0xc9)];_0x3706e7(0xbf)===_0x3d5761?this[_0x3706e7(0x105)](_0x21caaa):_0x3706e7(0xba)===_0x3d5761?_0x21caaa[_0x3706e7(0xf7)]?this[_0x3706e7(0x107)](_0x21caaa):this[_0x3706e7(0x103)](_0x3706e7(0xcf)):_0x3706e7(0xde)===_0x3d5761&&(_0x21caaa[_0x3706e7(0xee)]?this[_0x3706e7(0xe0)](_0x21caaa):this[_0x3706e7(0x103)](_0x3706e7(0xde)));}[_0x58a4a1(0x103)](_0x28bae1){const _0x398515=_0x58a4a1;if(!this[_0x398515(0xe9)][_0x398515(0xd6)][_0x398515(0xd1)](_0x398515(0x10b)))throw new _0x35a8ad(_0x398515(0xcc),this[_0x398515(0xe9)],{'tabName':_0x28bae1});this[_0x398515(0xe9)][_0x398515(0xd6)][_0x398515(0x108)](_0x398515(0x10b))[_0x398515(0xdd)][_0x398515(0xce)](_0x28bae1);}async[_0x58a4a1(0x105)]({prompt:_0x2bba33,draftMode:_0x51bb55,useWebSearch:_0x336df5=!0x1,useReasoning:_0x120b54=!0x1,model:_0x16b6f9}){const _0x2735f0=_0x58a4a1,_0x3b596d=this[_0x2735f0(0xe9)][_0x2735f0(0xd6)][_0x2735f0(0x108)](_0x2735f0(0xf6)),_0x23b634=this[_0x2735f0(0xe9)][_0x2735f0(0xd6)][_0x2735f0(0x108)](_0x2735f0(0xb7)),_0x9addf9=_0x23b634[_0x2735f0(0xc2)];let _0xe722ba;_0xe722ba=_0x16b6f9?await _0x9addf9[_0x2735f0(0xd3)][_0x2735f0(0x10a)](_0x16b6f9):await _0x9addf9[_0x2735f0(0xd3)][_0x2735f0(0xfe)](),_0xe722ba&&await _0x9addf9[_0x2735f0(0xf0)](_0xe722ba),_0x9addf9[_0x2735f0(0xea)](_0x336df5),_0x9addf9[_0x2735f0(0xdf)](_0x120b54),_0x23b634[_0x2735f0(0xe3)](),_0x51bb55?(this[_0x2735f0(0x10c)][_0x2735f0(0xd8)](_0x2bba33),this[_0x2735f0(0x10c)][_0x2735f0(0xbb)](!0x0)):_0x3b596d[_0x2735f0(0xf2)]({'message':_0x2bba33});}[_0x58a4a1(0x107)]({check:_0x460f66,model:_0x4f28fb,prompt:_0x1f97ba,params:_0x32270c}){const _0xcc9e48=_0x58a4a1;if(!this[_0xcc9e48(0xe9)][_0xcc9e48(0xd6)][_0xcc9e48(0xd1)](_0xcc9e48(0xc1)))throw new _0x35a8ad(_0xcc9e48(0xed),this[_0xcc9e48(0xe9)]);this[_0xcc9e48(0x103)](_0xcc9e48(0xcf));const _0x26a644={'id':_0x460f66,'isCustom':_0xcc9e48(0xf5)===_0x460f66};_0x4f28fb&&_0x1f97ba&&(_0x26a644[_0xcc9e48(0xc0)]={'model':_0x4f28fb,'prompt':_0x1f97ba}),_0x32270c&&(_0x26a644[_0xcc9e48(0x10f)]=_0x32270c),this[_0xcc9e48(0xe9)][_0xcc9e48(0xd6)][_0xcc9e48(0x108)](_0xcc9e48(0xc1))[_0xcc9e48(0xff)](_0xcc9e48(0xc4),_0x26a644);}[_0x58a4a1(0xe0)]({language:_0x4406d8}){const _0x5256d8=_0x58a4a1;if(!this[_0x5256d8(0xe9)][_0x5256d8(0xd6)][_0x5256d8(0xd1)](_0x5256d8(0xe7)))throw new _0x35a8ad(_0x5256d8(0xb9),this[_0x5256d8(0xe9)]);this[_0x5256d8(0x103)](_0x5256d8(0xde)),this[_0x5256d8(0xe9)][_0x5256d8(0xd6)][_0x5256d8(0x108)](_0x5256d8(0xe7))[_0x5256d8(0xff)](_0x5256d8(0xc4),{'id':_0x4406d8,'args':{'language':_0x4406d8}});}}
23
+ const _0x45108e=_0x192b;(function(_0x37b3ca,_0x3106b4){const _0x52623b=_0x192b,_0x11b901=_0x37b3ca();while(!![]){try{const _0x5a486d=parseInt(_0x52623b(0x206))/0x1*(-parseInt(_0x52623b(0x1d2))/0x2)+parseInt(_0x52623b(0x20e))/0x3*(-parseInt(_0x52623b(0x201))/0x4)+-parseInt(_0x52623b(0x22d))/0x5+parseInt(_0x52623b(0x20f))/0x6*(-parseInt(_0x52623b(0x222))/0x7)+-parseInt(_0x52623b(0x20a))/0x8*(parseInt(_0x52623b(0x209))/0x9)+-parseInt(_0x52623b(0x1fb))/0xa+parseInt(_0x52623b(0x1f9))/0xb;if(_0x5a486d===_0x3106b4)break;else _0x11b901['push'](_0x11b901['shift']());}catch(_0x2cd97d){_0x11b901['push'](_0x11b901['shift']());}}}(_0x428e,0x234df));import{AIChatUI as _0x250f9f}from'../aichat/aichatui.js';import{ContextPlugin as _0x41cc41}from'ckeditor5/src/core.js';function _0x428e(){const _0x26ac13=['focusPromptInput','element','removeFeedItem','custom','check','addFeedItemCustomElement','_aiChatUI','_runTranslateShortcut','type','params','setModel','includes','review','AIChatController','language','interactionStarted','_runChatShortcut','runReviewCheck','AIReviewModeUI','isPremiumPlugin','args','ai-chat-shortcuts-review-mode-not-found','TRANSLATE','AIChat','init','get','config','_injectShortcuts','hasFeedItem','CHAT','conversationCreated','destroy','ai-chat-shortcuts-invalid-config','chat-shortcuts','locale','12101650EsuOUL','plugins','2686250RnApdU','activateTab','chat','find','_removeShortcuts','activeConversation','640nbPPpw','has','requires','AITabs','chatModels','3lzdUfo','context','setPromptInputValue','243amkEaJ','19096afBSKm','_shortcutsView','forEach','isOfficialPlugin','2937tARltX','138lHMZJv','_validateShortcuts','length','getDefault','view','AITranslateUI','_executeShortcut','execute','values','sendMessage','string','setWebSearch','pluginName','getModel','_shortcuts','reviewMode','listenTo','setReasoning','ai-chat-shortcuts-translate-not-found','68733nlCrDi','label','translate','AIChatShortcuts','fire','REVIEW','source','_switchTab','prompt','_runReviewShortcut','ai-chat-shortcuts-ai-tabs-not-found','608990mOByZc','render','78796hdckTM','addCurrentDocumentToChatContext','isFromHistory','ai.chat.shortcuts'];_0x428e=function(){return _0x26ac13;};return _0x428e();}import{AIChatShortcutsView as _0x130cad}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x5980aa}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x45108e(0x1f7);function _0x192b(_0x34f511,_0x4b0502){const _0x428ed5=_0x428e();return _0x192b=function(_0x192bdd,_0x12935b){_0x192bdd=_0x192bdd-0x1d1;let _0x3954fe=_0x428ed5[_0x192bdd];return _0x3954fe;},_0x192b(_0x34f511,_0x4b0502);}export var AIChatShortcutType;!function(_0x370400){const _0x2d095b=_0x45108e;_0x370400[_0x2d095b(0x1f3)]=_0x2d095b(0x1fd),_0x370400[_0x2d095b(0x227)]=_0x2d095b(0x1e2),_0x370400[_0x2d095b(0x1ec)]=_0x2d095b(0x224);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x41cc41{[_0x45108e(0x21d)];[_0x45108e(0x20b)];[_0x45108e(0x1dc)];static get[_0x45108e(0x203)](){return[_0x250f9f];}static get[_0x45108e(0x21b)](){const _0x3fc6c6=_0x45108e;return _0x3fc6c6(0x225);}static get[_0x45108e(0x20d)](){return!0x0;}static get[_0x45108e(0x1e9)](){return!0x0;}[_0x45108e(0x1ee)](){const _0x1da882=_0x45108e;this[_0x1da882(0x1dc)]=this[_0x1da882(0x207)][_0x1da882(0x1fa)][_0x1da882(0x1ef)](_0x250f9f),this[_0x1da882(0x21d)]=this[_0x1da882(0x207)][_0x1da882(0x1f0)][_0x1da882(0x1ef)](_0x1da882(0x1d5))??[];const _0x1cbd19=this[_0x1da882(0x207)][_0x1da882(0x1fa)][_0x1da882(0x1ef)](_0x1da882(0x1e3));this[_0x1da882(0x21d)][_0x1da882(0x211)]&&(this[_0x1da882(0x210)](),this[_0x1da882(0x1dc)]['on'](_0x1da882(0x1f4),()=>{const _0x1de03f=_0x1da882;_0x1cbd19[_0x1de03f(0x200)][_0x1de03f(0x1d4)]||this[_0x1de03f(0x1f1)]();}),this[_0x1da882(0x21f)](_0x1cbd19,_0x1da882(0x1e5),()=>{const _0x561255=_0x1da882;this[_0x561255(0x1ff)]();}));}[_0x45108e(0x210)](){const _0x548cd1=_0x45108e,_0x4caa2a=Object[_0x548cd1(0x217)](AIChatShortcutType);this[_0x548cd1(0x21d)][_0x548cd1(0x20c)](_0x3e499a=>{const _0xcde80d=_0x548cd1;let _0xf7e86d=!0x0;if(_0x3e499a['id']&&_0x3e499a[_0xcde80d(0x223)]&&_0x4caa2a[_0xcde80d(0x1e1)](_0x3e499a[_0xcde80d(0x1de)])?_0xcde80d(0x1fd)===_0x3e499a[_0xcde80d(0x1de)]&&(_0xf7e86d=_0xcde80d(0x219)==typeof _0x3e499a[_0xcde80d(0x22a)]):_0xf7e86d=!0x1,!_0xf7e86d)throw new _0x5980aa(_0xcde80d(0x1f6),this[_0xcde80d(0x207)],{'shortcut':_0x3e499a});});}[_0x45108e(0x1f1)](){const _0x485feb=_0x45108e,_0xb8087d=this[_0x485feb(0x207)][_0x485feb(0x1fa)][_0x485feb(0x1ef)](_0x250f9f);this[_0x485feb(0x20b)]=new _0x130cad(this[_0x485feb(0x207)][_0x485feb(0x1f8)],this[_0x485feb(0x21d)]),this[_0x485feb(0x20b)][_0x485feb(0x1d1)](),_0xb8087d[_0x485feb(0x1db)](this[_0x485feb(0x20b)][_0x485feb(0x1d7)],Ut),this[_0x485feb(0x20b)]['on'](_0x485feb(0x216),_0x5d2420=>{const _0x386479=_0x485feb,_0x25c815=_0x5d2420[_0x386479(0x228)]['id'];this[_0x386479(0x215)](_0x25c815);});}[_0x45108e(0x1ff)](){const _0xd25aa2=_0x45108e,_0xc5ab7a=this[_0xd25aa2(0x207)][_0xd25aa2(0x1fa)][_0xd25aa2(0x1ef)](_0x250f9f);_0xc5ab7a[_0xd25aa2(0x1f2)](Ut)&&_0xc5ab7a[_0xd25aa2(0x1d8)](Ut),this[_0xd25aa2(0x20b)]?.[_0xd25aa2(0x1f5)]();}[_0x45108e(0x215)](_0x4e4350){const _0x3dee86=_0x45108e,_0x44afa1=this[_0x3dee86(0x21d)][_0x3dee86(0x1fe)](_0x80a4e6=>_0x80a4e6['id']===_0x4e4350),_0x36d7f6=_0x44afa1[_0x3dee86(0x1de)];_0x3dee86(0x1fd)===_0x36d7f6?this[_0x3dee86(0x1e6)](_0x44afa1):_0x3dee86(0x1e2)===_0x36d7f6?_0x44afa1[_0x3dee86(0x1da)]?this[_0x3dee86(0x22b)](_0x44afa1):this[_0x3dee86(0x229)](_0x3dee86(0x21e)):_0x3dee86(0x224)===_0x36d7f6&&(_0x44afa1[_0x3dee86(0x1e4)]?this[_0x3dee86(0x1dd)](_0x44afa1):this[_0x3dee86(0x229)](_0x3dee86(0x224)));}[_0x45108e(0x229)](_0x44c1d7){const _0x5d9319=_0x45108e;if(!this[_0x5d9319(0x207)][_0x5d9319(0x1fa)][_0x5d9319(0x202)](_0x5d9319(0x204)))throw new _0x5980aa(_0x5d9319(0x22c),this[_0x5d9319(0x207)],{'tabName':_0x44c1d7});this[_0x5d9319(0x207)][_0x5d9319(0x1fa)][_0x5d9319(0x1ef)](_0x5d9319(0x204))[_0x5d9319(0x213)][_0x5d9319(0x1fc)](_0x44c1d7);}async[_0x45108e(0x1e6)]({prompt:_0x332faa,draftMode:_0x4801c3,useWebSearch:_0x5bb9ea=!0x1,useReasoning:_0x5788ee=!0x1,model:_0x598f50}){const _0x10ac21=_0x45108e,_0x2041ec=this[_0x10ac21(0x207)][_0x10ac21(0x1fa)][_0x10ac21(0x1ef)](_0x10ac21(0x1ed)),_0x550e20=this[_0x10ac21(0x207)][_0x10ac21(0x1fa)][_0x10ac21(0x1ef)](_0x10ac21(0x1e3)),_0x2e93ea=_0x550e20[_0x10ac21(0x200)];let _0x476712;_0x476712=_0x598f50?await _0x2e93ea[_0x10ac21(0x205)][_0x10ac21(0x21c)](_0x598f50):await _0x2e93ea[_0x10ac21(0x205)][_0x10ac21(0x212)](),_0x476712&&await _0x2e93ea[_0x10ac21(0x1e0)](_0x476712),_0x2e93ea[_0x10ac21(0x21a)](_0x5bb9ea),_0x2e93ea[_0x10ac21(0x220)](_0x5788ee),_0x550e20[_0x10ac21(0x1d3)](),_0x4801c3?(this[_0x10ac21(0x1dc)][_0x10ac21(0x208)](_0x332faa),this[_0x10ac21(0x1dc)][_0x10ac21(0x1d6)](!0x0)):_0x2041ec[_0x10ac21(0x218)]({'message':_0x332faa});}[_0x45108e(0x22b)]({check:_0x52e22d,model:_0x180735,prompt:_0x4246b7,params:_0x309a5e}){const _0x14c0f1=_0x45108e;if(!this[_0x14c0f1(0x207)][_0x14c0f1(0x1fa)][_0x14c0f1(0x202)](_0x14c0f1(0x1e8)))throw new _0x5980aa(_0x14c0f1(0x1eb),this[_0x14c0f1(0x207)]);this[_0x14c0f1(0x229)](_0x14c0f1(0x21e));const _0x4ad923={'id':_0x52e22d,'isCustom':_0x14c0f1(0x1d9)===_0x52e22d};_0x180735&&_0x4246b7&&(_0x4ad923[_0x14c0f1(0x1ea)]={'model':_0x180735,'prompt':_0x4246b7}),_0x309a5e&&(_0x4ad923[_0x14c0f1(0x1df)]=_0x309a5e),this[_0x14c0f1(0x207)][_0x14c0f1(0x1fa)][_0x14c0f1(0x1ef)](_0x14c0f1(0x1e8))[_0x14c0f1(0x226)](_0x14c0f1(0x1e7),_0x4ad923);}[_0x45108e(0x1dd)]({language:_0x97f878}){const _0x33905a=_0x45108e;if(!this[_0x33905a(0x207)][_0x33905a(0x1fa)][_0x33905a(0x202)](_0x33905a(0x214)))throw new _0x5980aa(_0x33905a(0x221),this[_0x33905a(0x207)]);this[_0x33905a(0x229)](_0x33905a(0x224)),this[_0x33905a(0x207)][_0x33905a(0x1fa)][_0x33905a(0x1ef)](_0x33905a(0x214))[_0x33905a(0x226)](_0x33905a(0x1e7),{'id':_0x97f878,'args':{'language':_0x97f878}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9ca811=_0x136a;function _0x136a(_0x2d82f0,_0x75610a){const _0x5ab9df=_0x5ab9();return _0x136a=function(_0x136a30,_0x34162a){_0x136a30=_0x136a30-0xa8;let _0x2eec1d=_0x5ab9df[_0x136a30];return _0x2eec1d;},_0x136a(_0x2d82f0,_0x75610a);}(function(_0x5f3d39,_0x580d5b){const _0x2c6d95=_0x136a,_0x4100a7=_0x5f3d39();while(!![]){try{const _0x45e101=-parseInt(_0x2c6d95(0xb8))/0x1+parseInt(_0x2c6d95(0xb5))/0x2*(-parseInt(_0x2c6d95(0xba))/0x3)+-parseInt(_0x2c6d95(0xb6))/0x4*(parseInt(_0x2c6d95(0xaa))/0x5)+parseInt(_0x2c6d95(0xbb))/0x6*(-parseInt(_0x2c6d95(0xb4))/0x7)+-parseInt(_0x2c6d95(0xac))/0x8*(parseInt(_0x2c6d95(0xbd))/0x9)+parseInt(_0x2c6d95(0xb9))/0xa+-parseInt(_0x2c6d95(0xab))/0xb*(-parseInt(_0x2c6d95(0xbf))/0xc);if(_0x45e101===_0x580d5b)break;else _0x4100a7['push'](_0x4100a7['shift']());}catch(_0x541f0d){_0x4100a7['push'](_0x4100a7['shift']());}}}(_0x5ab9,0xa7398));function _0x5ab9(){const _0x56bc92=['addMany','map','14fHJDEs','15530nTubwC','16DnRSEg','items','278431lTmDvS','8816860YgASjW','123adsLQo','1410930lkrkSG','ck-ai-chat-shortcuts','265203WPPgqH','children','747732eWctiI','div','listView','1462415leAlBU','407kxIMIR','72eZnlpo','delegate','locale','setTemplate','execute','add'];_0x5ab9=function(){return _0x56bc92;};return _0x5ab9();}import{ListItemView as _0x195fcf,ListView as _0x39e264,View as _0x33a9d9}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x4f5c53}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x33a9d9{[_0x9ca811(0xa9)];constructor(_0x29055a,_0x31ee55){const _0xc99125=_0x9ca811;super(_0x29055a);const _0x1db8f0=_0x31ee55[_0xc99125(0xb3)](_0x50f576=>{const _0x1009c3=_0xc99125,_0x2f7b5d=new _0x195fcf(this[_0x1009c3(0xae)]),_0x4954c3=new _0x4f5c53(this[_0x1009c3(0xae)],_0x50f576);return _0x2f7b5d[_0x1009c3(0xbe)][_0x1009c3(0xb1)](_0x4954c3),_0x4954c3[_0x1009c3(0xad)](_0x1009c3(0xb0))['to'](this),_0x2f7b5d;});this[_0xc99125(0xa9)]=new _0x39e264(this[_0xc99125(0xae)]),this[_0xc99125(0xa9)][_0xc99125(0xb7)][_0xc99125(0xb2)](_0x1db8f0),this[_0xc99125(0xaf)]({'tag':_0xc99125(0xa8),'attributes':{'class':['ck',_0xc99125(0xbc)]},'children':[this[_0xc99125(0xa9)]]});}}
23
+ const _0x5b2f32=_0x3f8b;(function(_0x4111d8,_0xc70669){const _0x4d29eb=_0x3f8b,_0x3c656b=_0x4111d8();while(!![]){try{const _0x2aec3c=parseInt(_0x4d29eb(0x18a))/0x1+parseInt(_0x4d29eb(0x18e))/0x2*(-parseInt(_0x4d29eb(0x17a))/0x3)+parseInt(_0x4d29eb(0x18c))/0x4*(parseInt(_0x4d29eb(0x18f))/0x5)+parseInt(_0x4d29eb(0x183))/0x6+parseInt(_0x4d29eb(0x190))/0x7*(-parseInt(_0x4d29eb(0x18d))/0x8)+-parseInt(_0x4d29eb(0x185))/0x9*(parseInt(_0x4d29eb(0x17d))/0xa)+-parseInt(_0x4d29eb(0x180))/0xb;if(_0x2aec3c===_0xc70669)break;else _0x3c656b['push'](_0x3c656b['shift']());}catch(_0x91327b){_0x3c656b['push'](_0x3c656b['shift']());}}}(_0x546c,0xaf881));function _0x546c(){const _0x3fc8e2=['delegate','327550bIdjZb','map','4xEvbwL','6576yDQIyf','298uenzCu','2971415EyKjVz','7441xBIUQU','1509OFDIyA','locale','execute','2412330FgqIlB','addMany','children','171215ENEXyp','setTemplate','ck-ai-chat-shortcuts','7463448LAUHDk','items','18HqwWnA','div','add','listView'];_0x546c=function(){return _0x3fc8e2;};return _0x546c();}import{ListItemView as _0x13ecb1,ListView as _0x5c2671,View as _0x5acdde}from'ckeditor5/src/ui.js';function _0x3f8b(_0x533723,_0x2280cf){const _0x546cc5=_0x546c();return _0x3f8b=function(_0x3f8bf2,_0x1a3488){_0x3f8bf2=_0x3f8bf2-0x17a;let _0x24ec0a=_0x546cc5[_0x3f8bf2];return _0x24ec0a;},_0x3f8b(_0x533723,_0x2280cf);}import{AIChatShortcutView as _0x5531a5}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5acdde{[_0x5b2f32(0x188)];constructor(_0x1a823e,_0x58d438){const _0x32ea5a=_0x5b2f32;super(_0x1a823e);const _0xbc227c=_0x58d438[_0x32ea5a(0x18b)](_0x165234=>{const _0xe4b335=_0x32ea5a,_0x4beac8=new _0x13ecb1(this[_0xe4b335(0x17b)]),_0x2b63d7=new _0x5531a5(this[_0xe4b335(0x17b)],_0x165234);return _0x4beac8[_0xe4b335(0x17f)][_0xe4b335(0x187)](_0x2b63d7),_0x2b63d7[_0xe4b335(0x189)](_0xe4b335(0x17c))['to'](this),_0x4beac8;});this[_0x32ea5a(0x188)]=new _0x5c2671(this[_0x32ea5a(0x17b)]),this[_0x32ea5a(0x188)][_0x32ea5a(0x184)][_0x32ea5a(0x17e)](_0xbc227c),this[_0x32ea5a(0x181)]({'tag':_0x32ea5a(0x186),'attributes':{'class':['ck',_0x32ea5a(0x182)]},'children':[this[_0x32ea5a(0x188)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5991d1,_0x563093){const _0xa5980e=_0x4bf4,_0x2630b9=_0x5991d1();while(!![]){try{const _0x3d2928=-parseInt(_0xa5980e(0x191))/0x1*(parseInt(_0xa5980e(0x190))/0x2)+parseInt(_0xa5980e(0x18d))/0x3*(-parseInt(_0xa5980e(0x18e))/0x4)+parseInt(_0xa5980e(0x19a))/0x5+-parseInt(_0xa5980e(0x189))/0x6+-parseInt(_0xa5980e(0x196))/0x7*(-parseInt(_0xa5980e(0x194))/0x8)+parseInt(_0xa5980e(0x193))/0x9+-parseInt(_0xa5980e(0x18c))/0xa*(parseInt(_0xa5980e(0x18b))/0xb);if(_0x3d2928===_0x563093)break;else _0x2630b9['push'](_0x2630b9['shift']());}catch(_0x17fe55){_0x2630b9['push'](_0x2630b9['shift']());}}}(_0x1273,0xc9c35));import{ButtonView as _0x4d0744}from'ckeditor5/src/ui.js';function _0x4bf4(_0x581cf4,_0x14c515){const _0x12730f=_0x1273();return _0x4bf4=function(_0x4bf43c,_0x133d82){_0x4bf43c=_0x4bf43c-0x189;let _0x22d024=_0x12730f[_0x4bf43c];return _0x22d024;},_0x4bf4(_0x581cf4,_0x14c515);}import{IconAIChat as _0x23ed56,IconAIReview as _0x4df5c8,IconAITranslate as _0x2eff23}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x4d0744{['id'];constructor(_0x38cb6c,_0x11c6f7){const _0x228862=_0x4bf4;super(_0x38cb6c);const {id:_0x502b5,type:_0x384a61,icon:_0x4306cc}=_0x11c6f7;this['id']=_0x502b5,this[_0x228862(0x197)]({'label':_0x11c6f7[_0x228862(0x195)],'withText':!0x0,'class':_0x228862(0x19b)}),this[_0x228862(0x192)]({'attributes':{'data-cke-ai-shortcut-id':_0x11c6f7['id']}}),_0x4306cc?this[_0x228862(0x18a)]=_0x4306cc:_0x228862(0x199)===_0x384a61?this[_0x228862(0x18a)]=_0x23ed56:_0x228862(0x18f)===_0x384a61?this[_0x228862(0x18a)]=_0x4df5c8:_0x228862(0x198)===_0x384a61&&(this[_0x228862(0x18a)]=_0x2eff23);}}function _0x1273(){const _0x5237c9=['6247BBUEJU','extendTemplate','13308498eoAZqV','127072HsQxZl','label','567FhTcPt','set','translate','chat','1005675QIelvE','ck-ai-chat-shortcut','1948668NhopmA','icon','3617174YryBvu','10PBXSrC','1104645pgZJgL','4adizdG','review','358WFPCaq'];_0x1273=function(){return _0x5237c9;};return _0x1273();}
23
+ function _0x1fef(_0x3bd786,_0x5a66e5){const _0x13775d=_0x1377();return _0x1fef=function(_0x1fefe8,_0xca8652){_0x1fefe8=_0x1fefe8-0xdd;let _0x142072=_0x13775d[_0x1fefe8];return _0x142072;},_0x1fef(_0x3bd786,_0x5a66e5);}(function(_0xfdfaf6,_0x275943){const _0x34daab=_0x1fef,_0x17c4f9=_0xfdfaf6();while(!![]){try{const _0xff0fae=-parseInt(_0x34daab(0xeb))/0x1*(parseInt(_0x34daab(0xe0))/0x2)+parseInt(_0x34daab(0xea))/0x3+-parseInt(_0x34daab(0xdf))/0x4*(-parseInt(_0x34daab(0xe9))/0x5)+parseInt(_0x34daab(0xe5))/0x6+parseInt(_0x34daab(0xde))/0x7*(-parseInt(_0x34daab(0xee))/0x8)+parseInt(_0x34daab(0xe7))/0x9+parseInt(_0x34daab(0xe2))/0xa;if(_0xff0fae===_0x275943)break;else _0x17c4f9['push'](_0x17c4f9['shift']());}catch(_0x4aca5b){_0x17c4f9['push'](_0x17c4f9['shift']());}}}(_0x1377,0x41fe7));import{ButtonView as _0x17864b}from'ckeditor5/src/ui.js';import{IconAIChat as _0x249dcd,IconAIReview as _0x15f741,IconAITranslate as _0xb2d3b4}from'@ckeditor/ckeditor5-icons';function _0x1377(){const _0x228597=['105000BsYLGr','label','ck-ai-chat-shortcut','1881414VjrPFM','set','4257342HAsExh','review','9070kXtvbB','501318OpYrpV','73ybJDRG','extendTemplate','chat','8FrwaNb','icon','3770543zwKqRW','20lPgTsv','4502AzhcLE','translate'];_0x1377=function(){return _0x228597;};return _0x1377();}export class AIChatShortcutView extends _0x17864b{['id'];constructor(_0x7dda43,_0x39910b){const _0x5c5c1f=_0x1fef;super(_0x7dda43);const {id:_0x548e3b,type:_0x1c411b,icon:_0xc69d7f}=_0x39910b;this['id']=_0x548e3b,this[_0x5c5c1f(0xe6)]({'label':_0x39910b[_0x5c5c1f(0xe3)],'withText':!0x0,'class':_0x5c5c1f(0xe4)}),this[_0x5c5c1f(0xec)]({'attributes':{'data-cke-ai-shortcut-id':_0x39910b['id']}}),_0xc69d7f?this[_0x5c5c1f(0xdd)]=_0xc69d7f:_0x5c5c1f(0xed)===_0x1c411b?this[_0x5c5c1f(0xdd)]=_0x249dcd:_0x5c5c1f(0xe8)===_0x1c411b?this[_0x5c5c1f(0xdd)]=_0x15f741:_0x5c5c1f(0xe1)===_0x1c411b&&(this[_0x5c5c1f(0xdd)]=_0xb2d3b4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5675e2=_0x4700;function _0x1d27(){const _0x3bad56=['/documents/','positiveCount','Content-Type','upsertCustomAIReviewRating','/reviews/custom/calls','POST','949930fHXSAP','/calls/','code','init','message','sortBy','context','false','MAKE_LONGER','PUT','348392qBmPRj','deleteConversation','isPremiumPlugin','/messages','/files','isOfficialPlugin','upsertAIChatRating','/conversations','5fBWMoa','callSystemReview','_sendApiRequest','MAKE_SHORTER','_apiUrl','PATCH','1104724zRkhXw','fetchConversationMessages','_token','ai.serviceUrl','group','GET','status','body','fix-grammar','abortController','MAKE_TONE_FORMAL','executeCustomAction','2806311vobYKq','read','file','traceId','append','uploadDocument','/conversations?','/ratings','/calls','make-shorter','/reviews/system/','requires','application/json','config','/files/','/web-resources/','json','attributes','createdAt','order','DELETE','deleteDocument','uploadFile','upsertCustomAIActionRating','value','language','/messages/','https://ai.cke-cs.com/v1','_decoder','fetchDocument','make-tone-formal','feed','make-tone-casual','IMPROVE_WRITING','fetchConversation','ai-request-aborted','/actions/system/','100','statusText','length','deleteFile','name','signal','queryAssistant','Bearer\x20','upsertAIReviewRating','deleteWebResource','/conversations/','text','AIConnector','FIX_GRAMMAR','executeAction','ai-missing-token','pluginName','then','push','totalCount','translate','get','limit','/models/1?','stringify','startConversation','continue','toString','define','2896UwyfFV','uploadUrl','desc','data','callCustomReview','excludeEmpty','CONTINUE','modificationId','ai-request-failed','token','catch','MAKE_TONE_CASUAL','10260999AHuxLw','items','true','/reviews/custom/calls/','/documents','updateConversation','fetchConversations','make-longer','TRANSLATE','getReader','_handleError','plugins','20195loSGYT','_getStreamReader','/actions/custom/calls','request','1103226KPqjwY','reset','decode','improve-writing','/actions/custom/calls/','parse','upsertAIActionRating','releaseLock','CloudServices','AbortError','/web-resources','getModels'];_0x1d27=function(){return _0x3bad56;};return _0x1d27();}(function(_0x263377,_0x309d18){const _0x56bea7=_0x4700,_0x48eff2=_0x263377();while(!![]){try{const _0x3d103c=parseInt(_0x56bea7(0x105))/0x1+parseInt(_0x56bea7(0x11d))/0x2+-parseInt(_0x56bea7(0x129))/0x3+-parseInt(_0x56bea7(0x10f))/0x4+parseInt(_0x56bea7(0x117))/0x5*(parseInt(_0x56bea7(0xf3))/0x6)+parseInt(_0x56bea7(0xef))/0x7*(parseInt(_0x56bea7(0xd7))/0x8)+-parseInt(_0x56bea7(0xe3))/0x9;if(_0x3d103c===_0x309d18)break;else _0x48eff2['push'](_0x48eff2['shift']());}catch(_0x5618cb){_0x48eff2['push'](_0x48eff2['shift']());}}}(_0x1d27,0x8aa4f));import{createParser as _0x116244}from'eventsource-parser';import{ContextPlugin as _0x31d959}from'ckeditor5/src/core.js';import{CKEditorError as _0x2ee44f}from'ckeditor5/src/utils.js';function _0x4700(_0x4531b0,_0x4fb97c){const _0x1d2764=_0x1d27();return _0x4700=function(_0x470091,_0x49c0f1){_0x470091=_0x470091-0xc9;let _0x27965c=_0x1d2764[_0x470091];return _0x27965c;},_0x4700(_0x4531b0,_0x4fb97c);}export var AIActionsNames;!function(_0x457236){const _0x2cb3de=_0x4700;_0x457236[_0x2cb3de(0xdd)]=_0x2cb3de(0xd4),_0x457236[_0x2cb3de(0x15b)]=_0x2cb3de(0x125),_0x457236[_0x2cb3de(0x14a)]=_0x2cb3de(0xf6),_0x457236[_0x2cb3de(0x10d)]=_0x2cb3de(0xea),_0x457236[_0x2cb3de(0x11a)]=_0x2cb3de(0x132),_0x457236[_0x2cb3de(0xe2)]=_0x2cb3de(0x149),_0x457236[_0x2cb3de(0x127)]=_0x2cb3de(0x147),_0x457236[_0x2cb3de(0xeb)]=_0x2cb3de(0xce);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x31d959{[_0x5675e2(0x11b)];[_0x5675e2(0x11f)];[_0x5675e2(0x145)];static get[_0x5675e2(0x134)](){const _0x12478a=_0x5675e2;return[_0x12478a(0xfb)];}static get[_0x5675e2(0xca)](){const _0xb29a16=_0x5675e2;return _0xb29a16(0x15a);}static get[_0x5675e2(0x114)](){return!0x0;}static get[_0x5675e2(0x111)](){return!0x0;}constructor(_0xedf475){const _0x3d3d5e=_0x5675e2;super(_0xedf475),this[_0x3d3d5e(0x10b)][_0x3d3d5e(0x136)][_0x3d3d5e(0xd6)](_0x3d3d5e(0x120),_0x3d3d5e(0x144)),this[_0x3d3d5e(0x11b)]=this[_0x3d3d5e(0x10b)][_0x3d3d5e(0x136)][_0x3d3d5e(0xcf)](_0x3d3d5e(0x120)),this[_0x3d3d5e(0x11f)]=null,this[_0x3d3d5e(0x145)]=new TextDecoder();}[_0x5675e2(0x108)](){const _0xd44f4c=_0x5675e2,_0x189bc7=this[_0xd44f4c(0x10b)][_0xd44f4c(0xee)][_0xd44f4c(0xcf)](_0xd44f4c(0xfb));if(!_0x189bc7[_0xd44f4c(0xe0)])throw new _0x2ee44f(_0xd44f4c(0xc9),this);this[_0xd44f4c(0x11f)]=_0x189bc7[_0xd44f4c(0xe0)];}[_0x5675e2(0xd3)](_0x477b1a,_0x42f471){const _0x1c7491=_0x5675e2,_0x46278e=this[_0x1c7491(0x119)](_0x1c7491(0x116),_0x1c7491(0x104),{'id':_0x477b1a,'group':_0x42f471});return{'getConversation':async()=>(await _0x46278e[_0x1c7491(0xf2)])[_0x1c7491(0x139)](),'abortController':_0x46278e[_0x1c7491(0x126)]};}[_0x5675e2(0x154)]({message:_0x46653d,conversationId:_0x51c68e,parts:_0x43f5c9,capabilities:_0x5dfdb5,model:_0x2e1f15,attributes:_0x3ee3d8}){const _0x59a00d=_0x5675e2,_0x46cbd7={'prompt':_0x46653d,'content':_0x43f5c9,'model':_0x2e1f15,..._0x5dfdb5&&{'capabilities':_0x5dfdb5},..._0x3ee3d8&&{'attributes':_0x3ee3d8}},_0x41cf83=this[_0x59a00d(0x119)](_0x59a00d(0x158)+_0x51c68e+_0x59a00d(0x112),_0x59a00d(0x104),_0x46cbd7);return{'getStream':async()=>{const _0x6dfb5d=_0x59a00d,_0x2c7dd7=(await _0x41cf83[_0x6dfb5d(0xf2)])[_0x6dfb5d(0x124)];return this[_0x6dfb5d(0xf0)](_0x2c7dd7);},'abortController':_0x41cf83[_0x59a00d(0x126)]};}[_0x5675e2(0x128)]({content:_0x184624,message:_0x3c3779,model:_0x191517,outputFormat:_0x2d818f}){const _0x54b113=_0x5675e2,_0x35defa={'content':[{'type':_0x54b113(0x159),'content':_0x184624}],'prompt':_0x3c3779,'model':_0x191517,'outputFormat':_0x2d818f},_0x50cda0=this[_0x54b113(0x119)](_0x54b113(0xf1),_0x54b113(0x104),_0x35defa);return{'getStream':async()=>{const _0x33a833=_0x54b113,_0x2c153f=(await _0x50cda0[_0x33a833(0xf2)])[_0x33a833(0x124)];return this[_0x33a833(0xf0)](_0x2c153f);},'abortController':_0x50cda0[_0x54b113(0x126)]};}[_0x5675e2(0x15c)]({actionName:_0x360e56,content:_0xa92739,args:_0x521415}){const _0x26fc9c=_0x5675e2,_0x2edb49={'content':[{'type':_0x26fc9c(0x159),'content':_0xa92739}],'args':_0x521415},_0x381011=this[_0x26fc9c(0x119)](_0x26fc9c(0x14d)+_0x360e56+_0x26fc9c(0x131),_0x26fc9c(0x104),_0x2edb49);return{'getStream':async()=>{const _0x4f1333=_0x26fc9c,_0x2f229b=(await _0x381011[_0x4f1333(0xf2)])[_0x4f1333(0x124)];return this[_0x4f1333(0xf0)](_0x2f229b);},'abortController':_0x381011[_0x26fc9c(0x126)]};}[_0x5675e2(0x13f)](_0x1d7933,_0x4a3062,_0x7ed8f0){const _0x57932a=_0x5675e2,_0x36cf72=new FormData();_0x36cf72[_0x57932a(0x12d)](_0x57932a(0x12b),_0x4a3062,_0x4a3062[_0x57932a(0x152)]),_0x7ed8f0&&_0x36cf72[_0x57932a(0x12d)](_0x57932a(0x13a),JSON[_0x57932a(0xd2)](_0x7ed8f0));const _0x5817c9=this[_0x57932a(0x119)](_0x57932a(0x158)+_0x1d7933+_0x57932a(0x113),_0x57932a(0x104),_0x36cf72);return{'getId':async()=>(await _0x5817c9[_0x57932a(0xf2)])[_0x57932a(0x139)](),'abortController':_0x5817c9[_0x57932a(0x126)]};}[_0x5675e2(0x146)](_0x4a99d5,_0x1a3bf6){const _0x86ce8a=_0x5675e2,_0x25d78e=this[_0x86ce8a(0x119)](_0x86ce8a(0x158)+_0x4a99d5+_0x86ce8a(0xff)+_0x1a3bf6,_0x86ce8a(0x122));return{'getDocument':async()=>(await _0x25d78e[_0x86ce8a(0xf2)])[_0x86ce8a(0x139)](),'abortController':_0x25d78e[_0x86ce8a(0x126)]};}[_0x5675e2(0x12e)](_0xa3a3f4,_0x16d0a3,_0x439ad4){const _0x4fc1a8=_0x5675e2,_0x1c9919={'content':_0x16d0a3};_0x439ad4&&(_0x1c9919[_0x4fc1a8(0x13a)]=_0x439ad4);const _0x5513f1=this[_0x4fc1a8(0x119)](_0x4fc1a8(0x158)+_0xa3a3f4+_0x4fc1a8(0xe7),_0x4fc1a8(0x104),_0x1c9919);return{'getId':async()=>(await _0x5513f1[_0x4fc1a8(0xf2)])[_0x4fc1a8(0x139)](),'abortController':_0x5513f1[_0x4fc1a8(0x126)]};}[_0x5675e2(0xe9)](_0x2f36e4,_0x578fae={}){const _0x73dfcf=_0x5675e2,_0x647ccc=new URLSearchParams();_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0x121),_0x2f36e4),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0xdc),!0x1!==_0x578fae[_0x73dfcf(0xdc)]?_0x73dfcf(0xe5):_0x73dfcf(0x10c)),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0xd0),_0x578fae[_0x73dfcf(0xd0)]?_0x578fae[_0x73dfcf(0xd0)][_0x73dfcf(0xd5)]():_0x73dfcf(0x14e)),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0x10a),_0x578fae[_0x73dfcf(0x10a)]?_0x578fae[_0x73dfcf(0x10a)]:_0x73dfcf(0x13b)),_0x647ccc[_0x73dfcf(0x12d)](_0x73dfcf(0x13c),_0x578fae[_0x73dfcf(0x13c)]?_0x578fae[_0x73dfcf(0x13c)]:_0x73dfcf(0xd9));const _0xeee441=this[_0x73dfcf(0x119)](_0x73dfcf(0x12f)+_0x647ccc[_0x73dfcf(0xd5)](),_0x73dfcf(0x122));return{'getConversations':async()=>{const _0x27afb3=_0x73dfcf,_0x5cd64c=await _0xeee441[_0x27afb3(0xf2)];return(await _0x5cd64c[_0x27afb3(0x139)]())[_0x27afb3(0xe4)];},'abortController':_0xeee441[_0x73dfcf(0x126)]};}[_0x5675e2(0x110)](_0x223cf7){const _0x5a1523=_0x5675e2,_0x2c9d98=this[_0x5a1523(0x119)](_0x5a1523(0x158)+_0x223cf7,_0x5a1523(0x13d));return{'execute':async()=>{const _0x4d7358=_0x5a1523;await _0x2c9d98[_0x4d7358(0xf2)];},'abortController':_0x2c9d98[_0x5a1523(0x126)]};}[_0x5675e2(0xe8)](_0x31794b,_0xe3e94e){const _0x452301=_0x5675e2,_0x4d3038=this[_0x452301(0x119)](_0x452301(0x158)+_0x31794b,_0x452301(0x11c),_0xe3e94e);return{'getResult':async()=>(await _0x4d3038[_0x452301(0xf2)],_0xe3e94e),'abortController':_0x4d3038[_0x452301(0x126)]};}[_0x5675e2(0x14b)](_0x4838d8){const _0x5d482a=_0x5675e2,_0xeac45a=this[_0x5d482a(0x119)](_0x5d482a(0x158)+_0x4838d8,_0x5d482a(0x122));return{'getConversation':async()=>(await _0xeac45a[_0x5d482a(0xf2)])[_0x5d482a(0x139)](),'abortController':_0xeac45a[_0x5d482a(0x126)]};}[_0x5675e2(0x11e)](_0x59e3e4){const _0x210a0f=_0x5675e2,_0x2c0839=this[_0x210a0f(0x119)](_0x210a0f(0x158)+_0x59e3e4+_0x210a0f(0x112),_0x210a0f(0x122));return{'getMessages':async()=>{const _0x2fd891=_0x210a0f,_0x1cd7f1=await _0x2c0839[_0x2fd891(0xf2)];return(await _0x1cd7f1[_0x2fd891(0x139)]())[_0x2fd891(0xe4)];},'abortController':_0x2c0839[_0x210a0f(0x126)]};}[_0x5675e2(0xd8)](_0x2cca1e,_0x39681b,_0x56cd25){const _0x109242=_0x5675e2,_0x576e17=this[_0x109242(0x119)](_0x109242(0x158)+_0x2cca1e+_0x109242(0xfd),_0x109242(0x104),{'url':_0x39681b,'attributes':_0x56cd25});return{'getId':async()=>(await _0x576e17[_0x109242(0xf2)])[_0x109242(0x139)](),'abortController':_0x576e17[_0x109242(0x126)]};}[_0x5675e2(0xfe)](_0x325491='en'){const _0x50967a=_0x5675e2,_0x2ff444=new URLSearchParams();_0x2ff444[_0x50967a(0x12d)](_0x50967a(0x142),_0x325491);const _0x503017=_0x50967a(0xd1)+_0x2ff444[_0x50967a(0xd5)](),_0x45d117=this[_0x50967a(0x119)](_0x503017,_0x50967a(0x122));return{'list':async()=>await(await _0x45d117[_0x50967a(0xf2)])[_0x50967a(0x139)](),'abortController':_0x45d117[_0x50967a(0x126)]};}[_0x5675e2(0x151)](_0x50bf3b,_0x3bbadf){const _0x27c601=_0x5675e2,_0xebef1=this[_0x27c601(0x119)](_0x27c601(0x158)+_0x50bf3b+_0x27c601(0x137)+_0x3bbadf,_0x27c601(0x13d));return{'execute':async()=>{const _0x32abfb=_0x27c601;await _0xebef1[_0x32abfb(0xf2)];},'abortController':_0xebef1[_0x27c601(0x126)]};}[_0x5675e2(0x13e)](_0x5317e2,_0x3b86c4){const _0x4db183=_0x5675e2,_0xa426e8=this[_0x4db183(0x119)](_0x4db183(0x158)+_0x5317e2+_0x4db183(0xff)+_0x3b86c4,_0x4db183(0x13d));return{'execute':async()=>{const _0x49a88e=_0x4db183;await _0xa426e8[_0x49a88e(0xf2)];},'abortController':_0xa426e8[_0x4db183(0x126)]};}[_0x5675e2(0x157)](_0x50dfa4,_0x800aaa){const _0x5f4d01=_0x5675e2,_0x218ebf=this[_0x5f4d01(0x119)](_0x5f4d01(0x158)+_0x50dfa4+_0x5f4d01(0x138)+_0x800aaa,_0x5f4d01(0x13d));return{'execute':async()=>{const _0x6cffa8=_0x5f4d01;await _0x218ebf[_0x6cffa8(0xf2)];},'abortController':_0x218ebf[_0x5f4d01(0x126)]};}[_0x5675e2(0x118)]({reviewName:_0x4fb017,content:_0x2f6121,args:_0x1c3fba}){const _0x9f8063=_0x5675e2,_0x1c4343=this[_0x9f8063(0x119)](_0x9f8063(0x133)+_0x4fb017+_0x9f8063(0x131),_0x9f8063(0x104),{'content':[{'type':_0x9f8063(0x159),'content':_0x2f6121}],'args':_0x1c3fba});return{'getStream':async()=>{const _0x1f6b72=_0x9f8063,_0x412e1f=(await _0x1c4343[_0x1f6b72(0xf2)])[_0x1f6b72(0x124)];return this[_0x1f6b72(0xf0)](_0x412e1f);},'abortController':_0x1c4343[_0x9f8063(0x126)]};}[_0x5675e2(0xdb)]({content:_0x10938c,prompt:_0x3f927f,model:_0x4aadd4}){const _0xbc7694=_0x5675e2,_0x3fb328=this[_0xbc7694(0x119)](_0xbc7694(0x103),_0xbc7694(0x104),{'content':[{'type':_0xbc7694(0x159),'content':_0x10938c}],'prompt':_0x3f927f,'model':_0x4aadd4});return{'getStream':async()=>{const _0x1978e6=_0xbc7694,_0x166e1c=(await _0x3fb328[_0x1978e6(0xf2)])[_0x1978e6(0x124)];return this[_0x1978e6(0xf0)](_0x166e1c);},'abortController':_0x3fb328[_0xbc7694(0x126)]};}[_0x5675e2(0x115)](_0x4cae41,_0x5bf594,_0x317ca2){const _0x3f65d1=_0x5675e2,_0x99763=this[_0x3f65d1(0x119)](_0x3f65d1(0x158)+_0x4cae41+_0x3f65d1(0x143)+_0x5bf594+_0x3f65d1(0x130),_0x3f65d1(0x10e),{'positiveCount':_0x317ca2[_0x3f65d1(0x100)],'totalCount':_0x317ca2[_0x3f65d1(0xcd)],'modificationId':_0x317ca2[_0x3f65d1(0xde)]});return{'execute':async()=>{const _0x1bb0c5=_0x3f65d1;await _0x99763[_0x1bb0c5(0xf2)];},'abortController':_0x99763[_0x3f65d1(0x126)]};}[_0x5675e2(0xf9)](_0x1ac477,_0x418c63,_0x2f5c1c){const _0xac6c1e=_0x5675e2,_0x176da7=this[_0xac6c1e(0x119)](_0xac6c1e(0x14d)+_0x1ac477+_0xac6c1e(0x106)+_0x418c63+_0xac6c1e(0x130),_0xac6c1e(0x10e),{'positiveCount':_0x2f5c1c[_0xac6c1e(0x100)],'totalCount':_0x2f5c1c[_0xac6c1e(0xcd)]});return{'execute':async()=>{const _0x5960c8=_0xac6c1e;await _0x176da7[_0x5960c8(0xf2)];},'abortController':_0x176da7[_0xac6c1e(0x126)]};}[_0x5675e2(0x140)](_0x1261af,_0x47cc3f){const _0x28a99b=_0x5675e2,_0x3dc2aa=this[_0x28a99b(0x119)](_0x28a99b(0xf7)+_0x1261af+_0x28a99b(0x130),_0x28a99b(0x10e),{'positiveCount':_0x47cc3f[_0x28a99b(0x100)],'totalCount':_0x47cc3f[_0x28a99b(0xcd)]});return{'execute':async()=>{const _0x2b94c9=_0x28a99b;await _0x3dc2aa[_0x2b94c9(0xf2)];},'abortController':_0x3dc2aa[_0x28a99b(0x126)]};}[_0x5675e2(0x156)](_0x137446,_0x406c95,_0xdf0ffd,_0x301e12){const _0x1bba88=_0x5675e2,_0x33c81d=this[_0x1bba88(0x119)](_0x1bba88(0x133)+_0x137446+_0x1bba88(0x106)+_0x406c95+_0x1bba88(0x130),_0x1bba88(0x10e),{'positiveCount':_0xdf0ffd[_0x1bba88(0x100)],'totalCount':_0xdf0ffd[_0x1bba88(0xcd)],'dataId':_0x301e12});return{'execute':async()=>{const _0x2010d4=_0x1bba88;await _0x33c81d[_0x2010d4(0xf2)];},'abortController':_0x33c81d[_0x1bba88(0x126)]};}[_0x5675e2(0x102)](_0x20dd1c,_0x5c797c,_0x3aac00){const _0x380bb7=_0x5675e2,_0x12a71f=this[_0x380bb7(0x119)](_0x380bb7(0xe6)+_0x20dd1c+_0x380bb7(0x130),_0x380bb7(0x10e),{'positiveCount':_0x5c797c[_0x380bb7(0x100)],'totalCount':_0x5c797c[_0x380bb7(0xcd)],'dataId':_0x3aac00});return{'execute':async()=>{const _0x410128=_0x380bb7;await _0x12a71f[_0x410128(0xf2)];},'abortController':_0x12a71f[_0x380bb7(0x126)]};}[_0x5675e2(0x119)](_0x22b721,_0x2317c4,_0x125fe3){const _0x2bff70=_0x5675e2,_0x5791b4=new AbortController(),_0x366c89=_0x125fe3 instanceof FormData,_0x5ad354={'Authorization':_0x2bff70(0x155)+this[_0x2bff70(0x11f)]?.[_0x2bff70(0x141)]};_0x125fe3&&!_0x366c89&&(_0x5ad354[_0x2bff70(0x101)]=_0x2bff70(0x135));const _0x3ff381={'method':_0x2317c4,'headers':_0x5ad354,'signal':_0x5791b4[_0x2bff70(0x153)]};return _0x125fe3&&(_0x3ff381[_0x2bff70(0x124)]=_0x366c89?_0x125fe3:JSON[_0x2bff70(0xd2)](_0x125fe3)),{'request':fetch(''+this[_0x2bff70(0x11b)]+_0x22b721,_0x3ff381)[_0x2bff70(0xe1)](_0x4a3982=>{const _0x30f3e9=_0x2bff70;this[_0x30f3e9(0xed)](_0x4a3982);})[_0x2bff70(0xcb)](_0x3e50b1=>_0x3e50b1['ok']?_0x3e50b1:_0x3e50b1[_0x2bff70(0x139)]()[_0x2bff70(0xcb)](_0xce09d5=>{const _0x22af2f=_0x2bff70;throw{'url':this[_0x22af2f(0x11b)],'path':_0x22b721,'method':_0x2317c4,'body':_0x125fe3,'status':(_0x3e50b1||{})[_0x22af2f(0x123)],'statusText':(_0x3e50b1||{})[_0x22af2f(0x14f)],'code':_0xce09d5[_0x22af2f(0x107)],'message':_0xce09d5[_0x22af2f(0x109)],'traceId':_0xce09d5[_0x22af2f(0x12c)]};})),'abortController':_0x5791b4};}async*[_0x5675e2(0xf0)](_0x24e7f7){const _0x52b253=_0x5675e2,_0x22f111=[],_0x218c00=_0x24e7f7[_0x52b253(0xec)](),_0x593f5b=_0x116244({'onError':_0x19955d=>{const _0x28f709=_0x52b253;this[_0x28f709(0xed)](_0x19955d);},'onEvent':_0x5ece40=>{const _0x5a0a9a=_0x52b253;_0x5ece40[_0x5a0a9a(0xda)]=JSON[_0x5a0a9a(0xf8)](_0x5ece40[_0x5a0a9a(0xda)]),_0x22f111[_0x5a0a9a(0xcc)](_0x5ece40);}});try{let _0x87a74f=!0x1;for(;!_0x87a74f;){const {done:_0x3c13ba,value:_0x7e03a5}=await _0x218c00[_0x52b253(0x12a)]();_0x3c13ba&&(_0x87a74f=!0x0),_0x593f5b[_0x52b253(0x148)](this[_0x52b253(0x145)][_0x52b253(0xf5)](_0x7e03a5,{'stream':!0x0})),yield*_0x22f111,_0x22f111[_0x52b253(0x150)]=0x0;}}catch(_0x20061b){this[_0x52b253(0xed)](_0x20061b);}finally{_0x218c00[_0x52b253(0xfa)](),_0x593f5b[_0x52b253(0xf4)]();}}[_0x5675e2(0xed)](_0x2009c9){const _0x27fcf3=_0x5675e2;if(_0x2009c9 instanceof _0x2ee44f)throw _0x2009c9;if(_0x2009c9 instanceof Error&&_0x27fcf3(0xfc)===_0x2009c9[_0x27fcf3(0x152)])throw new _0x2ee44f(_0x27fcf3(0x14c),this,{'originalError':_0x2009c9});throw new _0x2ee44f(_0x27fcf3(0xdf),this,{'originalError':_0x2009c9});}}
23
+ const _0x5cee35=_0x2fbc;(function(_0x14ffd8,_0x7d826c){const _0x3a0cab=_0x2fbc,_0x7088d2=_0x14ffd8();while(!![]){try{const _0x41d716=parseInt(_0x3a0cab(0x1e5))/0x1+-parseInt(_0x3a0cab(0x19c))/0x2*(-parseInt(_0x3a0cab(0x1dc))/0x3)+-parseInt(_0x3a0cab(0x1f0))/0x4+parseInt(_0x3a0cab(0x1d5))/0x5*(parseInt(_0x3a0cab(0x1f8))/0x6)+parseInt(_0x3a0cab(0x185))/0x7*(parseInt(_0x3a0cab(0x1a5))/0x8)+-parseInt(_0x3a0cab(0x1b7))/0x9*(parseInt(_0x3a0cab(0x200))/0xa)+-parseInt(_0x3a0cab(0x1f7))/0xb;if(_0x41d716===_0x7d826c)break;else _0x7088d2['push'](_0x7088d2['shift']());}catch(_0x1a41a4){_0x7088d2['push'](_0x7088d2['shift']());}}}(_0x1fcd,0x5e4f0));function _0x2fbc(_0x3b5999,_0x41063b){const _0x1fcd45=_0x1fcd();return _0x2fbc=function(_0x2fbc48,_0x94327a){_0x2fbc48=_0x2fbc48-0x170;let _0x5a2a06=_0x1fcd45[_0x2fbc48];return _0x5a2a06;},_0x2fbc(_0x3b5999,_0x41063b);}import{createParser as _0x38f7e1}from'eventsource-parser';import{ContextPlugin as _0x4af224}from'ckeditor5/src/core.js';import{CKEditorError as _0x5efe38}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xe81368){const _0x82241a=_0x2fbc;_0xe81368[_0x82241a(0x18a)]=_0x82241a(0x188),_0xe81368[_0x82241a(0x1c3)]=_0x82241a(0x198),_0xe81368[_0x82241a(0x1d2)]=_0x82241a(0x1e0),_0xe81368[_0x82241a(0x1c9)]=_0x82241a(0x1d9),_0xe81368[_0x82241a(0x1de)]=_0x82241a(0x173),_0xe81368[_0x82241a(0x19b)]=_0x82241a(0x201),_0xe81368[_0x82241a(0x1a2)]=_0x82241a(0x1bb),_0xe81368[_0x82241a(0x1b3)]=_0x82241a(0x18e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x4af224{[_0x5cee35(0x1ea)];[_0x5cee35(0x1f4)];[_0x5cee35(0x1db)];static get[_0x5cee35(0x1a1)](){const _0x33b178=_0x5cee35;return[_0x33b178(0x1e3)];}static get[_0x5cee35(0x1b5)](){const _0x54876c=_0x5cee35;return _0x54876c(0x1ff);}static get[_0x5cee35(0x18c)](){return!0x0;}static get[_0x5cee35(0x181)](){return!0x0;}constructor(_0x231e74){const _0x3a0295=_0x5cee35;super(_0x231e74),this[_0x3a0295(0x1a8)][_0x3a0295(0x1e6)][_0x3a0295(0x1fa)](_0x3a0295(0x1b8),_0x3a0295(0x192)),this[_0x3a0295(0x1ea)]=this[_0x3a0295(0x1a8)][_0x3a0295(0x1e6)][_0x3a0295(0x189)](_0x3a0295(0x1b8)),this[_0x3a0295(0x1f4)]=null,this[_0x3a0295(0x1db)]=new TextDecoder();}[_0x5cee35(0x190)](){const _0x41219d=_0x5cee35,_0x460a89=this[_0x41219d(0x1a8)][_0x41219d(0x1d8)][_0x41219d(0x189)](_0x41219d(0x1e3));if(!_0x460a89[_0x41219d(0x1dd)])throw new _0x5efe38(_0x41219d(0x1ee),this);this[_0x41219d(0x1f4)]=_0x460a89[_0x41219d(0x1dd)];}[_0x5cee35(0x1cc)](_0x1eff7f,_0x3b74b6){const _0x5ec760=_0x5cee35,_0x2f382c=this[_0x5ec760(0x179)](_0x5ec760(0x19f),_0x5ec760(0x1e7),{'id':_0x1eff7f,'group':_0x3b74b6});return{'getConversation':async()=>(await _0x2f382c[_0x5ec760(0x1e2)])[_0x5ec760(0x1ac)](),'abortController':_0x2f382c[_0x5ec760(0x1e1)]};}[_0x5cee35(0x1c0)]({message:_0x23cb21,conversationId:_0x449d8f,parts:_0x2a449e,capabilities:_0xa73acd,model:_0x43c183,attributes:_0x39165c}){const _0xa91b97=_0x5cee35,_0x5da961={'prompt':_0x23cb21,'content':_0x2a449e,'model':_0x43c183,..._0xa73acd&&{'capabilities':_0xa73acd},..._0x39165c&&{'attributes':_0x39165c}},_0x22dcf7=this[_0xa91b97(0x179)](_0xa91b97(0x1ab)+_0x449d8f+_0xa91b97(0x1fc),_0xa91b97(0x1e7),_0x5da961);return{'getStream':async()=>{const _0x256344=_0xa91b97,_0x2cf3df=(await _0x22dcf7[_0x256344(0x1e2)])[_0x256344(0x1b0)];return this[_0x256344(0x1c6)](_0x2cf3df);},'abortController':_0x22dcf7[_0xa91b97(0x1e1)]};}[_0x5cee35(0x1bd)]({content:_0x481544,message:_0x409988,model:_0x382ca6,outputFormat:_0x46584d}){const _0x3bee34=_0x5cee35,_0x2b298a={'content':[{'type':_0x3bee34(0x205),'content':_0x481544}],'prompt':_0x409988,'model':_0x382ca6,'outputFormat':_0x46584d},_0x1ad2f3=this[_0x3bee34(0x179)](_0x3bee34(0x1f6),_0x3bee34(0x1e7),_0x2b298a);return{'getStream':async()=>{const _0x429bcd=_0x3bee34,_0x3ede95=(await _0x1ad2f3[_0x429bcd(0x1e2)])[_0x429bcd(0x1b0)];return this[_0x429bcd(0x1c6)](_0x3ede95);},'abortController':_0x1ad2f3[_0x3bee34(0x1e1)]};}[_0x5cee35(0x1c4)]({actionName:_0x17afbc,content:_0x162e3e,args:_0x1f78e0}){const _0x407a8d=_0x5cee35,_0x49a1fa={'content':[{'type':_0x407a8d(0x205),'content':_0x162e3e}],'args':_0x1f78e0},_0x4e18a5=this[_0x407a8d(0x179)](_0x407a8d(0x19d)+_0x17afbc+_0x407a8d(0x1b4),_0x407a8d(0x1e7),_0x49a1fa);return{'getStream':async()=>{const _0x2dab3e=_0x407a8d,_0x18eeab=(await _0x4e18a5[_0x2dab3e(0x1e2)])[_0x2dab3e(0x1b0)];return this[_0x2dab3e(0x1c6)](_0x18eeab);},'abortController':_0x4e18a5[_0x407a8d(0x1e1)]};}[_0x5cee35(0x19a)](_0x1bcf98,_0x1a248b,_0x33c348){const _0x36090d=_0x5cee35,_0x1b739b=new FormData();_0x1b739b[_0x36090d(0x1a0)](_0x36090d(0x180),_0x1a248b,_0x1a248b[_0x36090d(0x1ad)]),_0x33c348&&_0x1b739b[_0x36090d(0x1a0)](_0x36090d(0x1ec),JSON[_0x36090d(0x1cd)](_0x33c348));const _0x26a034=this[_0x36090d(0x179)](_0x36090d(0x1ab)+_0x1bcf98+_0x36090d(0x193),_0x36090d(0x1e7),_0x1b739b);return{'getId':async()=>(await _0x26a034[_0x36090d(0x1e2)])[_0x36090d(0x1ac)](),'abortController':_0x26a034[_0x36090d(0x1e1)]};}[_0x5cee35(0x1a7)](_0x1f9423,_0x54f510){const _0x1b30da=_0x5cee35,_0x2e2a1a=this[_0x1b30da(0x179)](_0x1b30da(0x1ab)+_0x1f9423+_0x1b30da(0x1fb)+_0x54f510,_0x1b30da(0x1d4));return{'getDocument':async()=>(await _0x2e2a1a[_0x1b30da(0x1e2)])[_0x1b30da(0x1ac)](),'abortController':_0x2e2a1a[_0x1b30da(0x1e1)]};}[_0x5cee35(0x1eb)](_0x3fb054,_0xd58b02,_0x50eeec){const _0x4824ce=_0x5cee35,_0x575f06={'content':_0xd58b02};_0x50eeec&&(_0x575f06[_0x4824ce(0x1ec)]=_0x50eeec);const _0x324e6c=this[_0x4824ce(0x179)](_0x4824ce(0x1ab)+_0x3fb054+_0x4824ce(0x1e9),_0x4824ce(0x1e7),_0x575f06);return{'getId':async()=>(await _0x324e6c[_0x4824ce(0x1e2)])[_0x4824ce(0x1ac)](),'abortController':_0x324e6c[_0x4824ce(0x1e1)]};}[_0x5cee35(0x1cf)](_0x18b436,_0x134491={}){const _0x481610=_0x5cee35,_0x34d1cf=new URLSearchParams();_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x1c5),_0x18b436),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x1ef),!0x1!==_0x134491[_0x481610(0x1ef)]?_0x481610(0x182):_0x481610(0x171)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x191),_0x134491[_0x481610(0x191)]?_0x134491[_0x481610(0x191)][_0x481610(0x1b2)]():_0x481610(0x1c7)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x202),_0x134491[_0x481610(0x202)]?_0x134491[_0x481610(0x202)]:_0x481610(0x1d1)),_0x34d1cf[_0x481610(0x1a0)](_0x481610(0x197),_0x134491[_0x481610(0x197)]?_0x134491[_0x481610(0x197)]:_0x481610(0x17f));const _0x10bd2c=this[_0x481610(0x179)](_0x481610(0x178)+_0x34d1cf[_0x481610(0x1b2)](),_0x481610(0x1d4));return{'getConversations':async()=>{const _0x322f11=_0x481610,_0xb3960b=await _0x10bd2c[_0x322f11(0x1e2)];return(await _0xb3960b[_0x322f11(0x1ac)]())[_0x322f11(0x1a6)];},'abortController':_0x10bd2c[_0x481610(0x1e1)]};}[_0x5cee35(0x204)](_0x44ceae){const _0x1cc8f7=_0x5cee35,_0x23c318=this[_0x1cc8f7(0x179)](_0x1cc8f7(0x1ab)+_0x44ceae,_0x1cc8f7(0x194));return{'execute':async()=>{const _0x2d68f5=_0x1cc8f7;await _0x23c318[_0x2d68f5(0x1e2)];},'abortController':_0x23c318[_0x1cc8f7(0x1e1)]};}[_0x5cee35(0x1d3)](_0x36b2a2,_0x45ba8f){const _0x3c4628=_0x5cee35,_0x1e3fce=this[_0x3c4628(0x179)](_0x3c4628(0x1ab)+_0x36b2a2,_0x3c4628(0x1ba),_0x45ba8f);return{'getResult':async()=>(await _0x1e3fce[_0x3c4628(0x1e2)],_0x45ba8f),'abortController':_0x1e3fce[_0x3c4628(0x1e1)]};}[_0x5cee35(0x18d)](_0x3c5660){const _0x241123=_0x5cee35,_0x13087d=this[_0x241123(0x179)](_0x241123(0x1ab)+_0x3c5660,_0x241123(0x1d4));return{'getConversation':async()=>(await _0x13087d[_0x241123(0x1e2)])[_0x241123(0x1ac)](),'abortController':_0x13087d[_0x241123(0x1e1)]};}[_0x5cee35(0x1bf)](_0x11b20c){const _0x33b361=_0x5cee35,_0x4173aa=this[_0x33b361(0x179)](_0x33b361(0x1ab)+_0x11b20c+_0x33b361(0x1fc),_0x33b361(0x1d4));return{'getMessages':async()=>{const _0xef3611=_0x33b361,_0x18d1d1=await _0x4173aa[_0xef3611(0x1e2)];return(await _0x18d1d1[_0xef3611(0x1ac)]())[_0xef3611(0x1a6)];},'abortController':_0x4173aa[_0x33b361(0x1e1)]};}[_0x5cee35(0x1df)](_0x2b7a72,_0xc14cd7,_0x33e449){const _0x3b5d39=_0x5cee35,_0x3169e0=this[_0x3b5d39(0x179)](_0x3b5d39(0x1ab)+_0x2b7a72+_0x3b5d39(0x1f5),_0x3b5d39(0x1e7),{'url':_0xc14cd7,'attributes':_0x33e449});return{'getId':async()=>(await _0x3169e0[_0x3b5d39(0x1e2)])[_0x3b5d39(0x1ac)](),'abortController':_0x3169e0[_0x3b5d39(0x1e1)]};}[_0x5cee35(0x1e4)](_0x37cefd='en'){const _0x475707=_0x5cee35,_0x24b485=new URLSearchParams();_0x24b485[_0x475707(0x1a0)](_0x475707(0x17b),_0x37cefd);const _0x2ad749=_0x475707(0x1bc)+_0x24b485[_0x475707(0x1b2)](),_0x831e36=this[_0x475707(0x179)](_0x2ad749,_0x475707(0x1d4));return{'list':async()=>await(await _0x831e36[_0x475707(0x1e2)])[_0x475707(0x1ac)](),'abortController':_0x831e36[_0x475707(0x1e1)]};}[_0x5cee35(0x196)](_0x2feae7,_0x3fd93e){const _0x1af1be=_0x5cee35,_0x5991a5=this[_0x1af1be(0x179)](_0x1af1be(0x1ab)+_0x2feae7+_0x1af1be(0x1a9)+_0x3fd93e,_0x1af1be(0x194));return{'execute':async()=>{const _0x291a62=_0x1af1be;await _0x5991a5[_0x291a62(0x1e2)];},'abortController':_0x5991a5[_0x1af1be(0x1e1)]};}[_0x5cee35(0x1a3)](_0x66edd4,_0x47cd9b){const _0x2b2038=_0x5cee35,_0x1ae270=this[_0x2b2038(0x179)](_0x2b2038(0x1ab)+_0x66edd4+_0x2b2038(0x1fb)+_0x47cd9b,_0x2b2038(0x194));return{'execute':async()=>{const _0x3db95a=_0x2b2038;await _0x1ae270[_0x3db95a(0x1e2)];},'abortController':_0x1ae270[_0x2b2038(0x1e1)]};}[_0x5cee35(0x1ce)](_0x48fe82,_0x121a2c){const _0x2cccfc=_0x5cee35,_0x128ecc=this[_0x2cccfc(0x179)](_0x2cccfc(0x1ab)+_0x48fe82+_0x2cccfc(0x195)+_0x121a2c,_0x2cccfc(0x194));return{'execute':async()=>{const _0x351476=_0x2cccfc;await _0x128ecc[_0x351476(0x1e2)];},'abortController':_0x128ecc[_0x2cccfc(0x1e1)]};}[_0x5cee35(0x1fe)]({reviewName:_0x28c011,content:_0x4f5c87,args:_0xc6396c}){const _0x286d21=_0x5cee35,_0x10341e=this[_0x286d21(0x179)](_0x286d21(0x1aa)+_0x28c011+_0x286d21(0x1b4),_0x286d21(0x1e7),{'content':[{'type':_0x286d21(0x205),'content':_0x4f5c87}],'args':_0xc6396c});return{'getStream':async()=>{const _0x295058=_0x286d21,_0x1a5e05=(await _0x10341e[_0x295058(0x1e2)])[_0x295058(0x1b0)];return this[_0x295058(0x1c6)](_0x1a5e05);},'abortController':_0x10341e[_0x286d21(0x1e1)]};}[_0x5cee35(0x176)]({content:_0x562650,prompt:_0x749c26,model:_0xe9faa2}){const _0xf5d4a8=_0x5cee35,_0x5ea461=this[_0xf5d4a8(0x179)](_0xf5d4a8(0x1b1),_0xf5d4a8(0x1e7),{'content':[{'type':_0xf5d4a8(0x205),'content':_0x562650}],'prompt':_0x749c26,'model':_0xe9faa2});return{'getStream':async()=>{const _0x44073a=_0xf5d4a8,_0x2b9d92=(await _0x5ea461[_0x44073a(0x1e2)])[_0x44073a(0x1b0)];return this[_0x44073a(0x1c6)](_0x2b9d92);},'abortController':_0x5ea461[_0xf5d4a8(0x1e1)]};}[_0x5cee35(0x184)](_0x57e61c,_0x4ca5bf,_0x2e0d55){const _0x33af72=_0x5cee35,_0xb69788=this[_0x33af72(0x179)](_0x33af72(0x1ab)+_0x57e61c+_0x33af72(0x183)+_0x4ca5bf+_0x33af72(0x1da),_0x33af72(0x1ae),{'positiveCount':_0x2e0d55[_0x33af72(0x1c2)],'totalCount':_0x2e0d55[_0x33af72(0x17d)],'modificationId':_0x2e0d55[_0x33af72(0x1d0)]});return{'execute':async()=>{const _0x2b6f19=_0x33af72;await _0xb69788[_0x2b6f19(0x1e2)];},'abortController':_0xb69788[_0x33af72(0x1e1)]};}[_0x5cee35(0x199)](_0xbb8c84,_0x567425,_0x14705f){const _0x912f14=_0x5cee35,_0xea66de=this[_0x912f14(0x179)](_0x912f14(0x19d)+_0xbb8c84+_0x912f14(0x1f2)+_0x567425+_0x912f14(0x1da),_0x912f14(0x1ae),{'positiveCount':_0x14705f[_0x912f14(0x1c2)],'totalCount':_0x14705f[_0x912f14(0x17d)]});return{'execute':async()=>{const _0x4cea19=_0x912f14;await _0xea66de[_0x4cea19(0x1e2)];},'abortController':_0xea66de[_0x912f14(0x1e1)]};}[_0x5cee35(0x1b9)](_0x197189,_0x3e46d){const _0x544af8=_0x5cee35,_0x18869e=this[_0x544af8(0x179)](_0x544af8(0x1ed)+_0x197189+_0x544af8(0x1da),_0x544af8(0x1ae),{'positiveCount':_0x3e46d[_0x544af8(0x1c2)],'totalCount':_0x3e46d[_0x544af8(0x17d)]});return{'execute':async()=>{const _0x1d64ad=_0x544af8;await _0x18869e[_0x1d64ad(0x1e2)];},'abortController':_0x18869e[_0x544af8(0x1e1)]};}[_0x5cee35(0x17c)](_0x18bbc2,_0x5addd0,_0x22ce6c,_0x3ab16d){const _0x57221b=_0x5cee35,_0x5425e4=this[_0x57221b(0x179)](_0x57221b(0x1aa)+_0x18bbc2+_0x57221b(0x1f2)+_0x5addd0+_0x57221b(0x1da),_0x57221b(0x1ae),{'positiveCount':_0x22ce6c[_0x57221b(0x1c2)],'totalCount':_0x22ce6c[_0x57221b(0x17d)],'dataId':_0x3ab16d});return{'execute':async()=>{const _0x603994=_0x57221b;await _0x5425e4[_0x603994(0x1e2)];},'abortController':_0x5425e4[_0x57221b(0x1e1)]};}[_0x5cee35(0x1fd)](_0x4646a3,_0x4d3f2a,_0x1f6480){const _0x3232f4=_0x5cee35,_0x2a0932=this[_0x3232f4(0x179)](_0x3232f4(0x174)+_0x4646a3+_0x3232f4(0x1da),_0x3232f4(0x1ae),{'positiveCount':_0x4d3f2a[_0x3232f4(0x1c2)],'totalCount':_0x4d3f2a[_0x3232f4(0x17d)],'dataId':_0x1f6480});return{'execute':async()=>{const _0x4d071=_0x3232f4;await _0x2a0932[_0x4d071(0x1e2)];},'abortController':_0x2a0932[_0x3232f4(0x1e1)]};}[_0x5cee35(0x179)](_0x1bf5c3,_0x103f00,_0x1d98f){const _0x34819a=_0x5cee35,_0x27f26c=new AbortController(),_0x1b892f=_0x1d98f instanceof FormData,_0x204104={'Authorization':_0x34819a(0x1d7)+this[_0x34819a(0x1f4)]?.[_0x34819a(0x17a)]};_0x1d98f&&!_0x1b892f&&(_0x204104[_0x34819a(0x187)]=_0x34819a(0x1b6));const _0x362f8b={'method':_0x103f00,'headers':_0x204104,'signal':_0x27f26c[_0x34819a(0x175)]};return _0x1d98f&&(_0x362f8b[_0x34819a(0x1b0)]=_0x1b892f?_0x1d98f:JSON[_0x34819a(0x1cd)](_0x1d98f)),{'request':fetch(''+this[_0x34819a(0x1ea)]+_0x1bf5c3,_0x362f8b)[_0x34819a(0x1d6)](_0x776114=>{const _0xa76f=_0x34819a;this[_0xa76f(0x19e)](_0x776114);})[_0x34819a(0x1f3)](_0x574900=>_0x574900['ok']?_0x574900:_0x574900[_0x34819a(0x1ac)]()[_0x34819a(0x1f3)](_0x2d226e=>{const _0x5bb224=_0x34819a;throw{'url':this[_0x5bb224(0x1ea)],'path':_0x1bf5c3,'method':_0x103f00,'body':_0x1d98f,'status':(_0x574900||{})[_0x5bb224(0x1f9)],'statusText':(_0x574900||{})[_0x5bb224(0x18b)],'code':_0x2d226e[_0x5bb224(0x203)],'message':_0x2d226e[_0x5bb224(0x170)],'traceId':_0x2d226e[_0x5bb224(0x1ca)]};})),'abortController':_0x27f26c};}async*[_0x5cee35(0x1c6)](_0x5d6da3){const _0x3df459=_0x5cee35,_0x19c31a=[],_0x523aeb=_0x5d6da3[_0x3df459(0x1be)](),_0x4ed3ac=_0x38f7e1({'onError':_0x1c64c4=>{const _0x2b4157=_0x3df459;this[_0x2b4157(0x19e)](_0x1c64c4);},'onEvent':_0xfa4fc=>{const _0x13d0a8=_0x3df459;_0xfa4fc[_0x13d0a8(0x177)]=JSON[_0x13d0a8(0x18f)](_0xfa4fc[_0x13d0a8(0x177)]),_0x19c31a[_0x13d0a8(0x1a4)](_0xfa4fc);}});try{let _0x5f512c=!0x1;for(;!_0x5f512c;){const {done:_0x4938bd,value:_0x589d33}=await _0x523aeb[_0x3df459(0x1e8)]();_0x4938bd&&(_0x5f512c=!0x0),_0x4ed3ac[_0x3df459(0x186)](this[_0x3df459(0x1db)][_0x3df459(0x1af)](_0x589d33,{'stream':!0x0})),yield*_0x19c31a,_0x19c31a[_0x3df459(0x1cb)]=0x0;}}catch(_0x841134){this[_0x3df459(0x19e)](_0x841134);}finally{_0x523aeb[_0x3df459(0x1c8)](),_0x4ed3ac[_0x3df459(0x17e)]();}}[_0x5cee35(0x19e)](_0x579459){const _0x4f0a7b=_0x5cee35;if(_0x579459 instanceof _0x5efe38)throw _0x579459;if(_0x579459 instanceof Error&&_0x4f0a7b(0x172)===_0x579459[_0x4f0a7b(0x1ad)])throw new _0x5efe38(_0x4f0a7b(0x1c1),this,{'originalError':_0x579459});throw new _0x5efe38(_0x4f0a7b(0x1f1),this,{'originalError':_0x579459});}}function _0x1fcd(){const _0x5322d1=['/conversations','append','requires','MAKE_TONE_FORMAL','deleteDocument','push','40XFiGFG','items','fetchDocument','context','/files/','/reviews/system/','/conversations/','json','name','PUT','decode','body','/reviews/custom/calls','toString','TRANSLATE','/calls','pluginName','application/json','153QIdVlh','ai.serviceUrl','upsertCustomAIActionRating','PATCH','make-tone-formal','/models/1?','executeCustomAction','getReader','fetchConversationMessages','queryAssistant','ai-request-aborted','positiveCount','FIX_GRAMMAR','executeAction','group','_getStreamReader','100','releaseLock','MAKE_LONGER','traceId','length','startConversation','stringify','deleteWebResource','fetchConversations','modificationId','createdAt','IMPROVE_WRITING','updateConversation','GET','257685LnKvTi','catch','Bearer\x20','plugins','make-longer','/ratings','_decoder','6tqwXwO','token','MAKE_SHORTER','uploadUrl','improve-writing','abortController','request','CloudServices','getModels','651655QCHRMq','config','POST','read','/documents','_apiUrl','uploadDocument','attributes','/actions/custom/calls/','ai-missing-token','excludeEmpty','1397912DmNPia','ai-request-failed','/calls/','then','_token','/web-resources','/actions/custom/calls','5932641VuTnWS','60KoltLg','status','define','/documents/','/messages','upsertCustomAIReviewRating','callSystemReview','AIConnector','345570vTcUuw','make-tone-casual','sortBy','code','deleteConversation','text','message','false','AbortError','make-shorter','/reviews/custom/calls/','signal','callCustomReview','data','/conversations?','_sendApiRequest','value','language','upsertAIReviewRating','totalCount','reset','desc','file','isPremiumPlugin','true','/messages/','upsertAIChatRating','239491DKpepG','feed','Content-Type','continue','get','CONTINUE','statusText','isOfficialPlugin','fetchConversation','translate','parse','init','limit','https://ai.cke-cs.com/v1','/files','DELETE','/web-resources/','deleteFile','order','fix-grammar','upsertAIActionRating','uploadFile','MAKE_TONE_CASUAL','524476NRzuTV','/actions/system/','_handleError'];_0x1fcd=function(){return _0x5322d1;};return _0x1fcd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x185a(){const _0x1de68a=['locale','plugins','markerName','ai-selection:','getSelection','define','50982600VTOjVH','getRanges','change','removeAllRanges','substring','isOfficialPlugin','getRoot','from','trim','version','listenTo','context','markerToElement','pluginName','data','setAttribute','createRange','sessionId','domConverter','ai-selection','toData','toView','view','length','dataDowncast','editingDowncast','4XyBxUs','addMarker','722504lCleSN','_setDataIdsOnChildren','indexOf','emptyElement','document','70585iupEaR','getChildren','modelToDataWithIds','AIEditing','containerElement','sort','_displayedFakeSelectionLocked','editors','random','start','add','_integrateEditor','element','convertAiChatSelectionMarker','_outputDataProcessor','_displayedFakeSelectionId','getStart','floor','viewToDom','data-id','push','2261505UFZmXs','_getDocumentDataStringFromView','getHtml','config','28816yQJuRe',':start></','getSelectionText','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','processor',':end></','fromCharCode','model','172zXvoTj','3987NfsPcB','isBefore','afterInit','selection','end','conversion','_setOutputDataProcessor','6046848hBneLp','markers','markerToHighlight','isAfter','name','htmlWriter','$textProxy','get','removeMarker','getDocumentData','showFakeVisualSelection','isOpening','ck-fake-ai-selection','ai.models.showModelSelector','_nextDataId','getItems','RealTimeCollaborationClient','hideFakeVisualSelection','getMarkersGroup','isContent','ck-ai-assistant-ui_theme','join','isAtEnd','ready','_getMarkersInDocumentOrder','createUIElement','editing',':start>','has','_sessionId','schema','8000041kUIBSl','getLastMatchingPosition','for','isPremiumPlugin',':end>'];_0x185a=function(){return _0x1de68a;};return _0x185a();}const _0x310faa=_0x4c12;(function(_0x162085,_0x3f5dea){const _0x38cf5b=_0x4c12,_0x51c8c3=_0x162085();while(!![]){try{const _0x5ddeb2=parseInt(_0x38cf5b(0xf2))/0x1*(-parseInt(_0x38cf5b(0xf4))/0x2)+-parseInt(_0x38cf5b(0x10e))/0x3+parseInt(_0x38cf5b(0xa6))/0x4*(-parseInt(_0x38cf5b(0xf9))/0x5)+-parseInt(_0x38cf5b(0xae))/0x6+parseInt(_0x38cf5b(0xcd))/0x7+parseInt(_0x38cf5b(0x112))/0x8*(-parseInt(_0x38cf5b(0xa7))/0x9)+parseInt(_0x38cf5b(0xd8))/0xa;if(_0x5ddeb2===_0x3f5dea)break;else _0x51c8c3['push'](_0x51c8c3['shift']());}catch(_0x5763d0){_0x51c8c3['push'](_0x51c8c3['shift']());}}}(_0x185a,0xcb10b));import{ViewDowncastWriter as _0x2f6821}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x310d8f,Editor as _0x214077}from'ckeditor5/src/core.js';import{uid as _0x40ca1d}from'ckeditor5/src/utils.js';function _0x4c12(_0x13f835,_0xbd9289){const _0x185a79=_0x185a();return _0x4c12=function(_0x4c128c,_0x119d38){_0x4c128c=_0x4c128c-0xa3;let _0x5123bd=_0x185a79[_0x4c128c];return _0x5123bd;},_0x4c12(_0x13f835,_0xbd9289);}import{getTranslation as _0x3e2707}from'./utils/common-translations.js';import{getEditorFromContext as _0x46b53e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x310faa(0xeb);export class AIEditing extends _0x310d8f{constructor(_0x5ade15){const _0x1a403e=_0x310faa;super(_0x5ade15),this[_0x1a403e(0xe3)][_0x1a403e(0x111)][_0x1a403e(0xd7)](_0x1a403e(0xbb),!0x0);}[_0x310faa(0x107)];[_0x310faa(0x108)]=null;[_0x310faa(0xff)]=!0x1;[_0x310faa(0xcb)];static get[_0x310faa(0xe5)](){const _0x2e503d=_0x310faa;return _0x2e503d(0xfc);}static get[_0x310faa(0xdd)](){return!0x0;}static get[_0x310faa(0xd0)](){return!0x0;}get[_0x310faa(0xe9)](){const _0x163fbb=_0x310faa;if(!this[_0x163fbb(0xcb)]){const _0x3870d7=_0x46b53e(this[_0x163fbb(0xe3)]),_0x233f91=_0x3870d7[_0x163fbb(0xd3)][_0x163fbb(0xca)](_0x163fbb(0xbe))&&_0x3870d7[_0x163fbb(0xd3)][_0x163fbb(0xb5)](_0x163fbb(0xbe))[_0x163fbb(0xe9)];this[_0x163fbb(0xcb)]=_0x233f91||_0x40ca1d();}return this[_0x163fbb(0xcb)];}async[_0x310faa(0xb7)](){const _0x213e24=_0x310faa,_0x56e1e6=_0x46b53e(this[_0x213e24(0xe3)]),_0x1302fe=_0x56e1e6[_0x213e24(0xa5)],_0x187958=_0x56e1e6[_0x213e24(0xe6)][_0x213e24(0xed)](_0x1302fe[_0x213e24(0xf8)][_0x213e24(0xde)](),{'convertAiChatSelectionMarker':!0x0}),_0x3005be=new _0x2f6821(_0x56e1e6[_0x213e24(0xc8)][_0x213e24(0xee)][_0x213e24(0xf8)]);this[_0x213e24(0xf5)](_0x187958,_0x3005be);let _0x42973f=await this[_0x213e24(0x10f)](_0x187958);const _0x1f1873=this[_0x213e24(0xc6)](),_0x25dc56=[];for(const _0x13f42d of _0x1f1873){const _0x2790c1='<'+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0x113)+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0xc9),_0x1ae46a=_0x42973f[_0x213e24(0xf6)](_0x2790c1);_0x42973f=_0x42973f[_0x213e24(0xdc)](0x0,_0x1ae46a)+_0x42973f[_0x213e24(0xdc)](_0x1ae46a+_0x2790c1[_0x213e24(0xef)]);const _0x2252ad='<'+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0xa3)+_0x13f42d[_0x213e24(0xb2)]+_0x213e24(0xd1),_0x2fa7ff=_0x42973f[_0x213e24(0xf6)](_0x2252ad);_0x42973f=_0x42973f[_0x213e24(0xdc)](0x0,_0x2fa7ff)+_0x42973f[_0x213e24(0xdc)](_0x2fa7ff+_0x2252ad[_0x213e24(0xef)]),_0x25dc56[_0x213e24(0x10d)]({'markerName':_0x13f42d[_0x213e24(0xb2)],'start':_0x1ae46a,'end':_0x2fa7ff,'htmlFragment':_0x42973f[_0x213e24(0xdc)](_0x1ae46a,_0x2fa7ff)});}return{'content':_0x42973f,'version':_0x56e1e6[_0x213e24(0xa5)][_0x213e24(0xf8)][_0x213e24(0xe1)],'sessionId':this[_0x213e24(0xe9)],'selections':_0x25dc56};}async[_0x310faa(0xa9)](){const _0x28ea3a=_0x310faa;this[_0x28ea3a(0xe3)]instanceof _0x214077?this[_0x28ea3a(0x104)](this[_0x28ea3a(0xe3)]):this[_0x28ea3a(0xe2)](this[_0x28ea3a(0xe3)][_0x28ea3a(0x100)],_0x28ea3a(0x103),(_0x2d197a,_0x477198)=>{const _0x6a6393=_0x28ea3a;_0x477198['on'](_0x6a6393(0xc5),()=>{const _0x466dac=_0x6a6393;this[_0x466dac(0x104)](_0x477198);});});}[_0x310faa(0xad)](_0x40bd2f){const _0x42d306=_0x310faa;this[_0x42d306(0x107)]=_0x40bd2f;}async[_0x310faa(0x10f)](_0xc6c5c0){const _0x4d06d6=_0x310faa;let _0x1e1b0d;const _0x4c4769=_0x46b53e(this[_0x4d06d6(0xe3)]);if(this[_0x4d06d6(0x107)]){const _0x70a1b7=_0x4c4769[_0x4d06d6(0xe6)][_0x4d06d6(0x116)][_0x4d06d6(0xea)][_0x4d06d6(0x10b)](_0xc6c5c0),_0x4a7230=await this[_0x4d06d6(0x107)](_0x70a1b7);_0x1e1b0d=_0x4c4769[_0x4d06d6(0xe6)][_0x4d06d6(0x116)][_0x4d06d6(0xb3)][_0x4d06d6(0x110)](_0x4a7230);}else _0x1e1b0d=_0x4c4769[_0x4d06d6(0xe6)][_0x4d06d6(0x116)][_0x4d06d6(0xec)](_0xc6c5c0);return _0x1e1b0d;}[_0x310faa(0x104)](_0x4d7c7c){const _0xe8b5d5=_0x310faa;_0x4d7c7c[_0xe8b5d5(0xac)][_0xe8b5d5(0xcf)](_0xe8b5d5(0xf1))[_0xe8b5d5(0xb0)]({'model':_0xe8b5d5(0xeb),'view':{'classes':[_0xe8b5d5(0xba),_0xe8b5d5(0xc2)],'priority':0xc}}),_0x4d7c7c[_0xe8b5d5(0xac)][_0xe8b5d5(0xcf)](_0xe8b5d5(0xf0))[_0xe8b5d5(0xe4)]({'model':_0xe8b5d5(0xeb),'view':(_0x886195,{writer:_0x29b8c7,options:_0x2d622d})=>_0x2d622d[_0xe8b5d5(0x106)]?_0x29b8c7[_0xe8b5d5(0xc7)](_0x886195[_0xe8b5d5(0xd4)]+':'+(_0x886195[_0xe8b5d5(0xb9)]?_0xe8b5d5(0x102):_0xe8b5d5(0xab))):null});}[_0x310faa(0xb8)](_0x5620c0,_0x42d842,_0x57f824=!0x1,_0x3d9f4c=!0x1){const _0x3e7730=_0x310faa;if(this[_0x3e7730(0xff)]&&!_0x3d9f4c)return!0x1;const _0x1678ea=_0x46b53e(this[_0x3e7730(0xe3)])[_0x3e7730(0xa5)];return _0x1678ea[_0x3e7730(0xda)](_0x50cd6f=>{const _0x227baf=_0x3e7730;this[_0x227baf(0x108)]&&this[_0x227baf(0xbf)](this[_0x227baf(0x108)]),this[_0x227baf(0x108)]=_0x42d842,this[_0x227baf(0xff)]=_0x57f824;let _0x3ae111=0x0;for(let _0x3f150b of _0x5620c0){const _0x5954f4=_0x227baf(0xd5)+_0x3ae111;if(_0x3f150b[_0x227baf(0x102)][_0x227baf(0xc4)]){const _0x3e81c3=_0x3f150b[_0x227baf(0x102)][_0x227baf(0xce)](({item:_0x3dc5ef})=>!_0x1678ea[_0x227baf(0xcc)][_0x227baf(0xc1)](_0x3dc5ef),{'boundaries':_0x3f150b});_0x3f150b=_0x50cd6f[_0x227baf(0xe8)](_0x3e81c3,_0x3f150b[_0x227baf(0xab)]);}_0x50cd6f[_0x227baf(0xf3)](_0x5954f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3f150b}),_0x3ae111++;}}),window[_0x3e7730(0xd6)]()?.[_0x3e7730(0xdb)](),!0x0;}[_0x310faa(0xbf)](_0x3e7751){const _0x40c331=_0x310faa;if(this[_0x40c331(0x108)]!=_0x3e7751)return!0x1;this[_0x40c331(0x108)]=null,this[_0x40c331(0xff)]=!0x1;const _0x4c4878=_0x46b53e(this[_0x40c331(0xe3)]),_0x53591a=_0x4c4878[_0x40c331(0xa5)][_0x40c331(0xaf)][_0x40c331(0xc0)](_0x40c331(0xeb));return _0x4c4878[_0x40c331(0xa5)][_0x40c331(0xda)](_0x19a9d8=>{const _0xa507cb=_0x40c331;for(const _0xb29aa3 of _0x53591a)_0x19a9d8[_0xa507cb(0xb6)](_0xb29aa3);}),!0x0;}async[_0x310faa(0xfb)](_0x49d926){const _0x122446=_0x310faa,_0xdf2fe5=_0x46b53e(this[_0x122446(0xe3)]),_0xb5b4a5=_0xdf2fe5[_0x122446(0xe6)][_0x122446(0xed)](_0x49d926),_0x500309=new _0x2f6821(_0xdf2fe5[_0x122446(0xc8)][_0x122446(0xee)][_0x122446(0xf8)]);return this[_0x122446(0xf5)](_0xb5b4a5,_0x500309),this[_0x122446(0x10f)](_0xb5b4a5);}[_0x310faa(0xf5)](_0x80ebc8,_0x6efd3c){const _0x4e1598=_0x310faa;let _0x58714d=!0x1;const _0x3b2b32=new Set();for(const _0xa320a7 of _0x80ebc8[_0x4e1598(0xfa)]()){const _0x670d26=_0xa320a7['is'](_0x4e1598(0xf7))||_0xa320a7['is'](_0x4e1598(0xfd));if(!_0xa320a7['is'](_0x4e1598(0x105)))continue;(this[_0x4e1598(0xf5)](_0xa320a7,_0x6efd3c)||_0x670d26)&&(_0x6efd3c[_0x4e1598(0xe7)](_0x4e1598(0x10c),this[_0x4e1598(0xbc)](_0x3b2b32),_0xa320a7),_0x58714d=!0x0);}return _0x58714d;}[_0x310faa(0xbc)](_0x3a7680){const _0x5f07bb=_0x310faa;let _0x324bba;do{_0x324bba='';for(let _0x709046=0x0;_0x709046<0x4;_0x709046++)_0x324bba+=String[_0x5f07bb(0xa4)](0x61+Math[_0x5f07bb(0x10a)](0x1a*Math[_0x5f07bb(0x101)]()));}while(_0x3a7680[_0x5f07bb(0xca)](_0x324bba));return _0x3a7680[_0x5f07bb(0x103)](_0x324bba),_0x324bba;}[_0x310faa(0x114)](){const _0x55ff4e=_0x310faa,{model:_0x2405e2}=_0x46b53e(this[_0x55ff4e(0xe3)]),_0x4bdb7a=_0x2405e2[_0x55ff4e(0xf8)][_0x55ff4e(0xaa)],_0xd0778e=[];for(const _0x3a8686 of _0x4bdb7a[_0x55ff4e(0xd9)]())for(const _0x4dbe26 of _0x3a8686[_0x55ff4e(0xbd)]())_0x4dbe26['is'](_0x55ff4e(0xb4))?_0xd0778e[_0x55ff4e(0x10d)](_0x4dbe26[_0x55ff4e(0xe6)]):_0x4dbe26['is'](_0x55ff4e(0x105))&&_0xd0778e[_0x55ff4e(0xef)]>0x0&&'\x20'!==_0xd0778e[_0xd0778e[_0x55ff4e(0xef)]-0x1]&&_0xd0778e[_0x55ff4e(0x10d)]('\x20');return _0xd0778e[_0x55ff4e(0xef)]?'\x22'+_0xd0778e[_0x55ff4e(0xc3)]('')[_0x55ff4e(0xe0)]()+'\x22':_0x3e2707(this[_0x55ff4e(0xe3)][_0x55ff4e(0xd2)],_0x55ff4e(0x115));}[_0x310faa(0xc6)](){const _0x3a6103=_0x310faa,_0x5b62b5=_0x46b53e(this[_0x3a6103(0xe3)])[_0x3a6103(0xa5)];return Array[_0x3a6103(0xdf)](_0x5b62b5[_0x3a6103(0xaf)][_0x3a6103(0xc0)](_0x3a6103(0xeb)))[_0x3a6103(0xfe)]((_0x14842b,_0x23b180)=>_0x14842b[_0x3a6103(0x109)]()[_0x3a6103(0xa8)](_0x23b180[_0x3a6103(0x109)]())?-0x1:_0x14842b[_0x3a6103(0x109)]()[_0x3a6103(0xb1)](_0x23b180[_0x3a6103(0x109)]())?0x1:0x0);}}
23
+ const _0x40aa86=_0xf8ba;(function(_0x4b141e,_0x48f199){const _0xb08747=_0xf8ba,_0x136663=_0x4b141e();while(!![]){try{const _0x25ca78=-parseInt(_0xb08747(0x167))/0x1+-parseInt(_0xb08747(0x192))/0x2*(-parseInt(_0xb08747(0x1a5))/0x3)+-parseInt(_0xb08747(0x1b4))/0x4+parseInt(_0xb08747(0x177))/0x5+-parseInt(_0xb08747(0x187))/0x6*(parseInt(_0xb08747(0x1ba))/0x7)+parseInt(_0xb08747(0x1ac))/0x8*(-parseInt(_0xb08747(0x183))/0x9)+parseInt(_0xb08747(0x1a4))/0xa;if(_0x25ca78===_0x48f199)break;else _0x136663['push'](_0x136663['shift']());}catch(_0x5240d5){_0x136663['push'](_0x136663['shift']());}}}(_0x3360,0x78298));import{ViewDowncastWriter as _0x3e972b}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2d584b,Editor as _0x390b06}from'ckeditor5/src/core.js';import{uid as _0x1a710e}from'ckeditor5/src/utils.js';import{getTranslation as _0x49aaff}from'./utils/common-translations.js';import{getEditorFromContext as _0x13d0c8}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x40aa86(0x1a6);export class AIEditing extends _0x2d584b{constructor(_0x135579){const _0xfc1f33=_0x40aa86;super(_0x135579),this[_0xfc1f33(0x1c5)][_0xfc1f33(0x16f)][_0xfc1f33(0x189)](_0xfc1f33(0x19c),!0x0);}[_0x40aa86(0x166)];[_0x40aa86(0x191)]=null;[_0x40aa86(0x1b9)]=!0x1;[_0x40aa86(0x1b1)];static get[_0x40aa86(0x16b)](){const _0x455ed0=_0x40aa86;return _0x455ed0(0x18f);}static get[_0x40aa86(0x164)](){return!0x0;}static get[_0x40aa86(0x1b8)](){return!0x0;}get[_0x40aa86(0x190)](){const _0x18a21b=_0x40aa86;if(!this[_0x18a21b(0x1b1)]){const _0x4c2b9a=_0x13d0c8(this[_0x18a21b(0x1c5)]),_0x19b469=_0x4c2b9a[_0x18a21b(0x18c)][_0x18a21b(0x18a)](_0x18a21b(0x158))&&_0x4c2b9a[_0x18a21b(0x18c)][_0x18a21b(0x16d)](_0x18a21b(0x158))[_0x18a21b(0x190)];this[_0x18a21b(0x1b1)]=_0x19b469||_0x1a710e();}return this[_0x18a21b(0x1b1)];}async[_0x40aa86(0x171)](){const _0x377ce6=_0x40aa86,_0x5f2a81=_0x13d0c8(this[_0x377ce6(0x1c5)]),_0x29fbcf=_0x5f2a81[_0x377ce6(0x1b2)],_0x4a1120=_0x5f2a81[_0x377ce6(0x161)][_0x377ce6(0x17a)](_0x29fbcf[_0x377ce6(0x15e)][_0x377ce6(0x17d)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f5bc0=new _0x3e972b(_0x5f2a81[_0x377ce6(0x1cb)][_0x377ce6(0x19f)][_0x377ce6(0x15e)]);this[_0x377ce6(0x184)](_0x4a1120,_0x1f5bc0);let _0x1d1ff7=await this[_0x377ce6(0x170)](_0x4a1120);const _0x3e0d00=this[_0x377ce6(0x1b7)](),_0x4e2fd7=[];for(const _0x19c65f of _0x3e0d00){const _0x396424='<'+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x194)+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x16e),_0x486771=_0x1d1ff7[_0x377ce6(0x19d)](_0x396424);_0x1d1ff7=_0x1d1ff7[_0x377ce6(0x1a7)](0x0,_0x486771)+_0x1d1ff7[_0x377ce6(0x1a7)](_0x486771+_0x396424[_0x377ce6(0x198)]);const _0x2ae89e='<'+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x15d)+_0x19c65f[_0x377ce6(0x1b3)]+_0x377ce6(0x18e),_0x16256f=_0x1d1ff7[_0x377ce6(0x19d)](_0x2ae89e);_0x1d1ff7=_0x1d1ff7[_0x377ce6(0x1a7)](0x0,_0x16256f)+_0x1d1ff7[_0x377ce6(0x1a7)](_0x16256f+_0x2ae89e[_0x377ce6(0x198)]),_0x4e2fd7[_0x377ce6(0x1ca)]({'markerName':_0x19c65f[_0x377ce6(0x1b3)],'start':_0x486771,'end':_0x16256f,'htmlFragment':_0x1d1ff7[_0x377ce6(0x1a7)](_0x486771,_0x16256f)});}return{'content':_0x1d1ff7,'version':_0x5f2a81[_0x377ce6(0x1b2)][_0x377ce6(0x15e)][_0x377ce6(0x16a)],'sessionId':this[_0x377ce6(0x190)],'selections':_0x4e2fd7};}async[_0x40aa86(0x16c)](){const _0x50a707=_0x40aa86;this[_0x50a707(0x1c5)]instanceof _0x390b06?this[_0x50a707(0x1bf)](this[_0x50a707(0x1c5)]):this[_0x50a707(0x1bd)](this[_0x50a707(0x1c5)][_0x50a707(0x1be)],_0x50a707(0x15b),(_0x4fdac8,_0x1f7fa2)=>{const _0x3ac4ee=_0x50a707;_0x1f7fa2['on'](_0x3ac4ee(0x1a8),()=>{const _0x4fbd2b=_0x3ac4ee;this[_0x4fbd2b(0x1bf)](_0x1f7fa2);});});}[_0x40aa86(0x15c)](_0x3f0d54){const _0x25ddfe=_0x40aa86;this[_0x25ddfe(0x166)]=_0x3f0d54;}async[_0x40aa86(0x170)](_0x140a13){const _0x557cae=_0x40aa86;let _0x50441d;const _0xfaf71e=_0x13d0c8(this[_0x557cae(0x1c5)]);if(this[_0x557cae(0x166)]){const _0x58f67f=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x160)][_0x557cae(0x159)](_0x140a13),_0x160bed=await this[_0x557cae(0x166)](_0x58f67f);_0x50441d=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x1c0)][_0x557cae(0x165)](_0x160bed);}else _0x50441d=_0xfaf71e[_0x557cae(0x161)][_0x557cae(0x186)][_0x557cae(0x180)](_0x140a13);return _0x50441d;}[_0x40aa86(0x1bf)](_0x394236){const _0x5ea4cc=_0x40aa86;_0x394236[_0x5ea4cc(0x1bb)][_0x5ea4cc(0x1a1)](_0x5ea4cc(0x1b6))[_0x5ea4cc(0x18b)]({'model':_0x5ea4cc(0x1a6),'view':{'classes':[_0x5ea4cc(0x163),_0x5ea4cc(0x18d)],'priority':0xc}}),_0x394236[_0x5ea4cc(0x1bb)][_0x5ea4cc(0x1a1)](_0x5ea4cc(0x1a9))[_0x5ea4cc(0x168)]({'model':_0x5ea4cc(0x1a6),'view':(_0x375f49,{writer:_0x8204a8,options:_0x54fc5c})=>_0x54fc5c[_0x5ea4cc(0x17e)]?_0x8204a8[_0x5ea4cc(0x1c4)](_0x375f49[_0x5ea4cc(0x1a3)]+':'+(_0x375f49[_0x5ea4cc(0x193)]?_0x5ea4cc(0x179):_0x5ea4cc(0x197))):null});}[_0x40aa86(0x1c3)](_0x46b2b6,_0x12ee57,_0x4197a0=!0x1,_0x276013=!0x1){const _0x16c332=_0x40aa86;if(this[_0x16c332(0x1b9)]&&!_0x276013)return!0x1;const _0x111e5f=_0x13d0c8(this[_0x16c332(0x1c5)])[_0x16c332(0x1b2)];return _0x111e5f[_0x16c332(0x1c7)](_0x4051d2=>{const _0x3a52a8=_0x16c332;this[_0x3a52a8(0x191)]&&this[_0x3a52a8(0x1af)](this[_0x3a52a8(0x191)]),this[_0x3a52a8(0x191)]=_0x12ee57,this[_0x3a52a8(0x1b9)]=_0x4197a0;let _0x4f008c=0x0;for(let _0x47cf3a of _0x46b2b6){const _0x596997=_0x3a52a8(0x1b0)+_0x4f008c;if(_0x47cf3a[_0x3a52a8(0x179)][_0x3a52a8(0x169)]){const _0x1a7b49=_0x47cf3a[_0x3a52a8(0x179)][_0x3a52a8(0x19e)](({item:_0x2ad4c7})=>!_0x111e5f[_0x3a52a8(0x1ae)][_0x3a52a8(0x17b)](_0x2ad4c7),{'boundaries':_0x47cf3a});_0x47cf3a=_0x4051d2[_0x3a52a8(0x17c)](_0x1a7b49,_0x47cf3a[_0x3a52a8(0x197)]);}_0x4051d2[_0x3a52a8(0x1a0)](_0x596997,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x47cf3a}),_0x4f008c++;}}),window[_0x16c332(0x1c9)]()?.[_0x16c332(0x1ad)](),!0x0;}[_0x40aa86(0x1af)](_0x225b23){const _0x5f58ab=_0x40aa86;if(this[_0x5f58ab(0x191)]!=_0x225b23)return!0x1;this[_0x5f58ab(0x191)]=null,this[_0x5f58ab(0x1b9)]=!0x1;const _0x30cc11=_0x13d0c8(this[_0x5f58ab(0x1c5)]),_0x5d353a=_0x30cc11[_0x5f58ab(0x1b2)][_0x5f58ab(0x175)][_0x5f58ab(0x15f)](_0x5f58ab(0x1a6));return _0x30cc11[_0x5f58ab(0x1b2)][_0x5f58ab(0x1c7)](_0x531700=>{const _0x2c581a=_0x5f58ab;for(const _0x1502a4 of _0x5d353a)_0x531700[_0x2c581a(0x176)](_0x1502a4);}),!0x0;}async[_0x40aa86(0x199)](_0x1ec2ce){const _0x3a1578=_0x40aa86,_0x329bf5=_0x13d0c8(this[_0x3a1578(0x1c5)]),_0x4adfb8=_0x329bf5[_0x3a1578(0x161)][_0x3a1578(0x17a)](_0x1ec2ce),_0x35eb6c=new _0x3e972b(_0x329bf5[_0x3a1578(0x1cb)][_0x3a1578(0x19f)][_0x3a1578(0x15e)]);return this[_0x3a1578(0x184)](_0x4adfb8,_0x35eb6c),this[_0x3a1578(0x170)](_0x4adfb8);}[_0x40aa86(0x184)](_0x32693f,_0x491ba2){const _0x28778c=_0x40aa86;let _0x5d6dfc=!0x1;const _0x43cecc=new Set();for(const _0x38b960 of _0x32693f[_0x28778c(0x162)]()){const _0x2576d4=_0x38b960['is'](_0x28778c(0x185))||_0x38b960['is'](_0x28778c(0x1ab));if(!_0x38b960['is'](_0x28778c(0x1b5)))continue;(this[_0x28778c(0x184)](_0x38b960,_0x491ba2)||_0x2576d4)&&(_0x491ba2[_0x28778c(0x172)](_0x28778c(0x174),this[_0x28778c(0x1aa)](_0x43cecc),_0x38b960),_0x5d6dfc=!0x0);}return _0x5d6dfc;}[_0x40aa86(0x1aa)](_0x57b5cc){const _0x32bf4a=_0x40aa86;let _0x3a891c;do{_0x3a891c='';for(let _0x14229c=0x0;_0x14229c<0x4;_0x14229c++)_0x3a891c+=String[_0x32bf4a(0x173)](0x61+Math[_0x32bf4a(0x15a)](0x1a*Math[_0x32bf4a(0x1c2)]()));}while(_0x57b5cc[_0x32bf4a(0x18a)](_0x3a891c));return _0x57b5cc[_0x32bf4a(0x15b)](_0x3a891c),_0x3a891c;}[_0x40aa86(0x1c1)](){const _0xe77c77=_0x40aa86,{model:_0x365196}=_0x13d0c8(this[_0xe77c77(0x1c5)]),_0xc9c997=_0x365196[_0xe77c77(0x15e)][_0xe77c77(0x17f)],_0x23135c=[];for(const _0x1a6100 of _0xc9c997[_0xe77c77(0x188)]())for(const _0x36fad9 of _0x1a6100[_0xe77c77(0x19b)]())_0x36fad9['is'](_0xe77c77(0x1bc))?_0x23135c[_0xe77c77(0x1ca)](_0x36fad9[_0xe77c77(0x161)]):_0x36fad9['is'](_0xe77c77(0x1b5))&&_0x23135c[_0xe77c77(0x198)]>0x0&&'\x20'!==_0x23135c[_0x23135c[_0xe77c77(0x198)]-0x1]&&_0x23135c[_0xe77c77(0x1ca)]('\x20');return _0x23135c[_0xe77c77(0x198)]?'\x22'+_0x23135c[_0xe77c77(0x181)]('')[_0xe77c77(0x178)]()+'\x22':_0x49aaff(this[_0xe77c77(0x1c5)][_0xe77c77(0x1c8)],_0xe77c77(0x1a2));}[_0x40aa86(0x1b7)](){const _0x3d4c4c=_0x40aa86,_0x52b4d6=_0x13d0c8(this[_0x3d4c4c(0x1c5)])[_0x3d4c4c(0x1b2)];return Array[_0x3d4c4c(0x1c6)](_0x52b4d6[_0x3d4c4c(0x175)][_0x3d4c4c(0x15f)](_0x3d4c4c(0x1a6)))[_0x3d4c4c(0x182)]((_0x599652,_0x5acd85)=>_0x599652[_0x3d4c4c(0x196)]()[_0x3d4c4c(0x195)](_0x5acd85[_0x3d4c4c(0x196)]())?-0x1:_0x599652[_0x3d4c4c(0x196)]()[_0x3d4c4c(0x19a)](_0x5acd85[_0x3d4c4c(0x196)]())?0x1:0x0);}}function _0xf8ba(_0x33ac0e,_0x2df690){const _0x336059=_0x3360();return _0xf8ba=function(_0xf8ba49,_0x42eba1){_0xf8ba49=_0xf8ba49-0x158;let _0x197602=_0x336059[_0xf8ba49];return _0x197602;},_0xf8ba(_0x33ac0e,_0x2df690);}function _0x3360(){const _0x51f51e=['pluginName','afterInit','get',':start>','config','_getDocumentDataStringFromView','getDocumentData','setAttribute','fromCharCode','data-id','markers','removeMarker','1741345naOLuU','trim','start','toView','isContent','createRange','getRoot','convertAiChatSelectionMarker','selection','toData','join','sort','15633bxcarq','_setDataIdsOnChildren','emptyElement','processor','6UMdbBO','getRanges','define','has','markerToHighlight','plugins','ck-ai-assistant-ui_theme',':end>','AIEditing','sessionId','_displayedFakeSelectionId','134alYJeo','isOpening',':start></','isBefore','getStart','end','length','modelToDataWithIds','isAfter','getItems','ai.models.showModelSelector','indexOf','getLastMatchingPosition','view','addMarker','for','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','markerName','13026170PITDlU','30702fOjZhJ','ai-selection','substring','ready','dataDowncast','_nextDataId','containerElement','4040USQUxr','removeAllRanges','schema','hideFakeVisualSelection','ai-selection:','_sessionId','model','name','990356ibSOKk','element','editingDowncast','_getMarkersInDocumentOrder','isPremiumPlugin','_displayedFakeSelectionLocked','4947467YoWemt','conversion','$textProxy','listenTo','editors','_integrateEditor','htmlWriter','getSelectionText','random','showFakeVisualSelection','createUIElement','context','from','change','locale','getSelection','push','editing','RealTimeCollaborationClient','viewToDom','floor','add','_setOutputDataProcessor',':end></','document','getMarkersGroup','domConverter','data','getChildren','ck-fake-ai-selection','isOfficialPlugin','getHtml','_outputDataProcessor','12825PYqlfK','markerToElement','isAtEnd','version'];_0x3360=function(){return _0x51f51e;};return _0x3360();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x559271=_0x40e0;function _0x40e0(_0x1c4abe,_0x2d7c2a){const _0x5da823=_0x5da8();return _0x40e0=function(_0x40e0d1,_0x3806cc){_0x40e0d1=_0x40e0d1-0xee;let _0xc9a482=_0x5da823[_0x40e0d1];return _0xc9a482;},_0x40e0(_0x1c4abe,_0x2d7c2a);}(function(_0x19defe,_0x31c992){const _0x3bd2c4=_0x40e0,_0x3b0ad5=_0x19defe();while(!![]){try{const _0x4aadc8=parseInt(_0x3bd2c4(0x138))/0x1+parseInt(_0x3bd2c4(0x13b))/0x2+-parseInt(_0x3bd2c4(0x132))/0x3+parseInt(_0x3bd2c4(0x104))/0x4*(parseInt(_0x3bd2c4(0x10c))/0x5)+-parseInt(_0x3bd2c4(0xef))/0x6*(parseInt(_0x3bd2c4(0xf1))/0x7)+parseInt(_0x3bd2c4(0xee))/0x8*(parseInt(_0x3bd2c4(0x10d))/0x9)+parseInt(_0x3bd2c4(0x100))/0xa;if(_0x4aadc8===_0x31c992)break;else _0x3b0ad5['push'](_0x3b0ad5['shift']());}catch(_0xdc70c2){_0x3b0ad5['push'](_0x3b0ad5['shift']());}}}(_0x5da8,0x5c87e));function _0x5da8(){const _0x40ebbe=['stopListening','sendRequest','forEach','sources','parse','reasoningStarted','2917660cbxpbg','done','notification','replyContentUpdated','240644rwzhSM','stop','fire','currentReply','error','_handleToolNotificationData','delegate','connector','5kcyGvX','9DnFthx','toolName','event','webSearchStarted','currentRequest','textDelta','getStream','attributes','interactionDestroyed','interactionFinished','appendContent','text','toolDataReceived','getReply','resetWebSearchState','_isWebSearching','_finalizeInteraction','isStopped','find','interactionStarted','destroy','result','content','editor','message-metadata','resetReasoningState','setConversationTitle','getDocumentContext','reasoningFinished','_handleToolResultData','modification-delta','actionCallId','replyChangeGroupStateUpdated','action-metadata','source','abortController','createReply','2007195KQqLeB','mcp-tool-result','_isReasoning','webSearchFinished','interactionStopped','length','137119GLcOvm','web-search','replyCreated','491764yXQqqy','callId','mcp-tool-notification','replies','modification','start','splice','isDestroyed','push','reasoning','5168040dUZkQE','1997172rgAFpo','interactionCreated','7QOwSsf','data','conversationTitle','messageId','conversation-title','type','abort','text-delta','ai-chat-interaction-error'];_0x5da8=function(){return _0x40ebbe;};return _0x5da8();}import{CKEditorError as _0x23f8d3,EmitterMixin as _0x11078f,uid as _0x7898ab}from'ckeditor5/src/utils.js';import{AIReply as _0x12133d}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x559271(0xf0),_0x559271(0x120),_0x559271(0x136),_0x559271(0x116),_0x559271(0x115),_0x559271(0x13a),_0x559271(0x103),_0x559271(0x12d),_0x559271(0x127),_0x559271(0x110),_0x559271(0x135),_0x559271(0xff),_0x559271(0x129),_0x559271(0x119),_0x559271(0x108)];export class AIInteraction extends _0x11078f(){['id'];[_0x559271(0x13e)]=[];[_0x559271(0x107)];[_0x559271(0xf4)];[_0x559271(0x12c)];[_0x559271(0x111)];[_0x559271(0x10b)];[_0x559271(0x11e)]=!0x1;[_0x559271(0x142)]=!0x1;[_0x559271(0x124)];[_0x559271(0x134)]=!0x1;[_0x559271(0x11c)]=!0x1;constructor({connector:_0x3fed9b,editor:_0x53cb5f}){const _0x27e0c8=_0x559271;super(),this['id']=_0x7898ab(),this[_0x27e0c8(0x10b)]=_0x3fed9b,this[_0x27e0c8(0x11e)]=!0x0,this[_0x27e0c8(0x124)]=_0x53cb5f;}async[_0x559271(0x140)](){const _0x236716=_0x559271,_0x42976e=[];let _0x232308,_0xf5835d,_0x3e48f2;this[_0x236716(0x11e)]=!0x1;try{this[_0x236716(0x111)]=await this[_0x236716(0xfb)](),this[_0x236716(0x106)](_0x236716(0x120),this);const _0x543565=await this[_0x236716(0x111)][_0x236716(0x113)]();for await(const _0x58ad41 of _0x543565){if(this[_0x236716(0x11e)])return;if(_0x236716(0x108)==_0x58ad41[_0x236716(0x10f)])return void this[_0x236716(0x106)](_0x236716(0x108),{'error':new _0x23f8d3(_0x236716(0xf9),this)});switch(_0x58ad41[_0x236716(0x10f)]){case _0x236716(0x125):this[_0x236716(0xf4)]=_0x58ad41[_0x236716(0xf2)][_0x236716(0xf4)];break;case _0x236716(0x12e):this[_0x236716(0x12c)]=_0x58ad41[_0x236716(0xf2)][_0x236716(0x13c)];break;case _0x236716(0xf5):this[_0x236716(0x127)](_0x58ad41[_0x236716(0xf2)][_0x236716(0xf3)],!0x0);break;case _0x236716(0x12f):_0x42976e[_0x236716(0x143)](_0x58ad41[_0x236716(0xf2)][_0x236716(0x12f)]);break;case _0x236716(0x139):this[_0x236716(0x11c)]||(this[_0x236716(0x11c)]=!0x0,this[_0x236716(0x106)](_0x236716(0x110),this));break;case _0x236716(0x144):this[_0x236716(0x134)]||(this[_0x236716(0x134)]=!0x0,this[_0x236716(0x106)](_0x236716(0xff),this));break;case _0x236716(0x12b):case _0x236716(0xf8):this[_0x236716(0x126)](),this[_0x236716(0x11b)](),_0x232308=_0x236716(0x12b)==_0x58ad41[_0x236716(0x10f)]?_0x236716(0x13f):_0x236716(0x118),_0xf5835d=_0x236716(0x12b)==_0x58ad41[_0x236716(0x10f)]?_0x58ad41[_0x236716(0xf2)]['id']:void 0x0,this[_0x236716(0x107)]&&this[_0x236716(0x107)][_0x236716(0xf6)]!=_0x232308&&(this[_0x236716(0x107)][_0x236716(0x101)](),this[_0x236716(0x107)]=void 0x0),this[_0x236716(0x107)]||(this[_0x236716(0x107)]=this[_0x236716(0x131)]({'type':_0x232308,'interactionId':this['id'],'id':_0xf5835d}),_0x236716(0x13f)==_0x232308&&(this[_0x236716(0x107)][_0x236716(0xfd)]=_0x42976e[_0x236716(0x141)](0x0))),this[_0x236716(0x107)][_0x236716(0x117)](_0x58ad41[_0x236716(0xf2)][_0x236716(0x112)]);break;case _0x236716(0x133):_0x3e48f2=JSON[_0x236716(0xfe)](_0x58ad41[_0x236716(0xf2)][_0x236716(0x122)]),this[_0x236716(0x12a)]({'toolName':_0x58ad41[_0x236716(0xf2)][_0x236716(0x10e)],'data':_0x3e48f2[_0x236716(0xf2)],'attributes':_0x3e48f2[_0x236716(0x114)]});break;case _0x236716(0x13d):this[_0x236716(0x109)]({'toolName':_0x58ad41[_0x236716(0xf2)][_0x236716(0x10e)],'data':_0x58ad41[_0x236716(0xf2)][_0x236716(0xf2)]});}}}finally{this[_0x236716(0x11e)]||(this[_0x236716(0x107)]&&_0x42976e[_0x236716(0x137)]>0x0&&(this[_0x236716(0x107)][_0x236716(0xfd)]=_0x42976e[_0x236716(0x141)](0x0)),this[_0x236716(0x11d)](),this[_0x236716(0x106)](_0x236716(0x116),this));}}[_0x559271(0x105)](){const _0x2b74bd=_0x559271;this[_0x2b74bd(0x11e)]||(this[_0x2b74bd(0x11d)](),this[_0x2b74bd(0x106)](_0x2b74bd(0x136),this));}[_0x559271(0x11a)](_0x21164e){const _0x29587a=_0x559271;return this[_0x29587a(0x13e)][_0x29587a(0x11f)](_0x5d1aeb=>_0x5d1aeb['id']===_0x21164e);}[_0x559271(0x121)](){const _0x29d133=_0x559271;this[_0x29d133(0x142)]||(this[_0x29d133(0x105)](),this[_0x29d133(0x13e)][_0x29d133(0xfc)](_0x3b3adb=>_0x3b3adb[_0x29d133(0x121)]()),this[_0x29d133(0x13e)]=[],this[_0x29d133(0x142)]=!0x0,this[_0x29d133(0x106)](_0x29d133(0x115),this),this[_0x29d133(0xfa)]());}[_0x559271(0x131)](_0x394912){const _0x4264e0=_0x559271,_0x413ad7=new _0x12133d({'editor':this[_0x4264e0(0x124)],'documentContextContent':this[_0x4264e0(0x128)]()?.[_0x4264e0(0x123)],..._0x394912});return this[_0x4264e0(0x13e)][_0x4264e0(0x143)](_0x413ad7),_0x413ad7[_0x4264e0(0x10a)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4264e0(0x106)](_0x4264e0(0x13a),_0x413ad7),_0x413ad7;}[_0x559271(0x127)](_0x3c79be,_0x1d78fc=!0x1){const _0x2e27d0=_0x559271;this[_0x2e27d0(0x106)](_0x2e27d0(0x127),_0x3c79be,_0x1d78fc);}[_0x559271(0x11b)](){const _0x5578b8=_0x559271;this[_0x5578b8(0x11c)]&&(this[_0x5578b8(0x11c)]=!0x1,this[_0x5578b8(0x106)](_0x5578b8(0x135),this));}[_0x559271(0x126)](){const _0xfc89ac=_0x559271;this[_0xfc89ac(0x134)]&&(this[_0xfc89ac(0x134)]=!0x1,this[_0xfc89ac(0x106)](_0xfc89ac(0x129),this));}[_0x559271(0x12a)](_0x49efc3){const _0x5ce4ec=_0x559271;this[_0x5ce4ec(0x106)](_0x5ce4ec(0x119),{'type':_0x5ce4ec(0x122),'toolName':_0x49efc3[_0x5ce4ec(0x10e)],'data':structuredClone(_0x49efc3[_0x5ce4ec(0xf2)]||{}),'attributes':structuredClone(_0x49efc3[_0x5ce4ec(0x114)]||{})},this);}[_0x559271(0x109)](_0xd4bc6){const _0x29bf94=_0x559271;this[_0x29bf94(0x106)](_0x29bf94(0x119),{'type':_0x29bf94(0x102),'toolName':_0xd4bc6[_0x29bf94(0x10e)],'data':structuredClone(_0xd4bc6[_0x29bf94(0xf2)])},this);}[_0x559271(0x11d)](){const _0x2c7796=_0x559271;this[_0x2c7796(0x11e)]=!0x0,this[_0x2c7796(0x111)]&&this[_0x2c7796(0x111)][_0x2c7796(0x130)][_0x2c7796(0xf7)](),this[_0x2c7796(0x107)]&&this[_0x2c7796(0x107)][_0x2c7796(0x101)](),this[_0x2c7796(0x111)]=this[_0x2c7796(0x107)]=void 0x0;}}
23
+ const _0x547587=_0x4067;(function(_0x3ccc56,_0x365fca){const _0x92bb3=_0x4067,_0x1737a9=_0x3ccc56();while(!![]){try{const _0x5e043a=parseInt(_0x92bb3(0xa3))/0x1*(parseInt(_0x92bb3(0x80))/0x2)+parseInt(_0x92bb3(0x89))/0x3*(-parseInt(_0x92bb3(0xbb))/0x4)+parseInt(_0x92bb3(0xcf))/0x5*(-parseInt(_0x92bb3(0x7d))/0x6)+parseInt(_0x92bb3(0x98))/0x7+-parseInt(_0x92bb3(0x9b))/0x8*(parseInt(_0x92bb3(0xa5))/0x9)+-parseInt(_0x92bb3(0x92))/0xa+parseInt(_0x92bb3(0x83))/0xb*(parseInt(_0x92bb3(0x8f))/0xc);if(_0x5e043a===_0x365fca)break;else _0x1737a9['push'](_0x1737a9['shift']());}catch(_0x43de66){_0x1737a9['push'](_0x1737a9['shift']());}}}(_0x248a,0x4e6ef));import{CKEditorError as _0x3ae127,EmitterMixin as _0x13d141,uid as _0x4911bb}from'ckeditor5/src/utils.js';import{AIReply as _0x4c417d}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x547587(0xc4),_0x547587(0xae),_0x547587(0xb9),_0x547587(0xac),_0x547587(0xa4),_0x547587(0xc7),_0x547587(0xbe),_0x547587(0x93),_0x547587(0x9f),_0x547587(0xb0),_0x547587(0xd2),_0x547587(0xd3),_0x547587(0xbd),_0x547587(0xa2),_0x547587(0xc5)];function _0x4067(_0x5998e4,_0x238c47){const _0x248a2a=_0x248a();return _0x4067=function(_0x406755,_0x38763f){_0x406755=_0x406755-0x7c;let _0x15fa53=_0x248a2a[_0x406755];return _0x15fa53;},_0x4067(_0x5998e4,_0x238c47);}function _0x248a(){const _0x5b2315=['stopListening','interactionStopped','connector','1032932ygdRpT','currentReply','reasoningFinished','replyContentUpdated','toolName','appendContent','modification','_isWebSearching','createReply','interactionCreated','error','length','replyCreated','content','modification-delta','forEach','editor','getReply','mcp-tool-result','done','312445AHsQth','sources','message-metadata','webSearchFinished','reasoningStarted','isDestroyed','actionCallId','30BZYRXi','splice','fire','38962dCJjiU','attributes','resetWebSearchState','268488LlBvpH','start','callId','notification','action-metadata','push','3ceopCA','reasoning','getDocumentContext','abortController','event','currentRequest','324cQPzzP','find','mcp-tool-notification','3495410KsKeCO','replyChangeGroupStateUpdated','abort','getStream','resetReasoningState','_handleToolResultData','2588194aINPkp','text','delegate','324232ulAlRO','sendRequest','_handleToolNotificationData','destroy','setConversationTitle','_finalizeInteraction','stop','toolDataReceived','13NgxgTw','interactionDestroyed','9HlXGCh','replies','text-delta','web-search','ai-chat-interaction-error','textDelta','isStopped','interactionFinished','messageId','interactionStarted','conversation-title','webSearchStarted','parse','conversationTitle','_isReasoning','data','source','result','type'];_0x248a=function(){return _0x5b2315;};return _0x248a();}export class AIInteraction extends _0x13d141(){['id'];[_0x547587(0xa6)]=[];[_0x547587(0xbc)];[_0x547587(0xad)];[_0x547587(0x7c)];[_0x547587(0x8e)];[_0x547587(0xba)];[_0x547587(0xab)]=!0x1;[_0x547587(0xd4)]=!0x1;[_0x547587(0xcb)];[_0x547587(0xb3)]=!0x1;[_0x547587(0xc2)]=!0x1;constructor({connector:_0xf80eda,editor:_0x502085}){const _0x55abd0=_0x547587;super(),this['id']=_0x4911bb(),this[_0x55abd0(0xba)]=_0xf80eda,this[_0x55abd0(0xab)]=!0x0,this[_0x55abd0(0xcb)]=_0x502085;}async[_0x547587(0x84)](){const _0x5c034c=_0x547587,_0x5bffb6=[];let _0x294cac,_0x17b63,_0x227847;this[_0x5c034c(0xab)]=!0x1;try{this[_0x5c034c(0x8e)]=await this[_0x5c034c(0x9c)](),this[_0x5c034c(0x7f)](_0x5c034c(0xae),this);const _0x34eee2=await this[_0x5c034c(0x8e)][_0x5c034c(0x95)]();for await(const _0x4c3358 of _0x34eee2){if(this[_0x5c034c(0xab)])return;if(_0x5c034c(0xc5)==_0x4c3358[_0x5c034c(0x8d)])return void this[_0x5c034c(0x7f)](_0x5c034c(0xc5),{'error':new _0x3ae127(_0x5c034c(0xa9),this)});switch(_0x4c3358[_0x5c034c(0x8d)]){case _0x5c034c(0xd1):this[_0x5c034c(0xad)]=_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xad)];break;case _0x5c034c(0x87):this[_0x5c034c(0x7c)]=_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0x85)];break;case _0x5c034c(0xaf):this[_0x5c034c(0x9f)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb2)],!0x0);break;case _0x5c034c(0xb5):_0x5bffb6[_0x5c034c(0x88)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb5)]);break;case _0x5c034c(0xa8):this[_0x5c034c(0xc2)]||(this[_0x5c034c(0xc2)]=!0x0,this[_0x5c034c(0x7f)](_0x5c034c(0xb0),this));break;case _0x5c034c(0x8a):this[_0x5c034c(0xb3)]||(this[_0x5c034c(0xb3)]=!0x0,this[_0x5c034c(0x7f)](_0x5c034c(0xd3),this));break;case _0x5c034c(0xc9):case _0x5c034c(0xa7):this[_0x5c034c(0x96)](),this[_0x5c034c(0x82)](),_0x294cac=_0x5c034c(0xc9)==_0x4c3358[_0x5c034c(0x8d)]?_0x5c034c(0xc1):_0x5c034c(0x99),_0x17b63=_0x5c034c(0xc9)==_0x4c3358[_0x5c034c(0x8d)]?_0x4c3358[_0x5c034c(0xb4)]['id']:void 0x0,this[_0x5c034c(0xbc)]&&this[_0x5c034c(0xbc)][_0x5c034c(0xb7)]!=_0x294cac&&(this[_0x5c034c(0xbc)][_0x5c034c(0xce)](),this[_0x5c034c(0xbc)]=void 0x0),this[_0x5c034c(0xbc)]||(this[_0x5c034c(0xbc)]=this[_0x5c034c(0xc3)]({'type':_0x294cac,'interactionId':this['id'],'id':_0x17b63}),_0x5c034c(0xc1)==_0x294cac&&(this[_0x5c034c(0xbc)][_0x5c034c(0xd0)]=_0x5bffb6[_0x5c034c(0x7e)](0x0))),this[_0x5c034c(0xbc)][_0x5c034c(0xc0)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xaa)]);break;case _0x5c034c(0xcd):_0x227847=JSON[_0x5c034c(0xb1)](_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb6)]),this[_0x5c034c(0x97)]({'toolName':_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xbf)],'data':_0x227847[_0x5c034c(0xb4)],'attributes':_0x227847[_0x5c034c(0x81)]});break;case _0x5c034c(0x91):this[_0x5c034c(0x9d)]({'toolName':_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xbf)],'data':_0x4c3358[_0x5c034c(0xb4)][_0x5c034c(0xb4)]});}}}finally{this[_0x5c034c(0xab)]||(this[_0x5c034c(0xbc)]&&_0x5bffb6[_0x5c034c(0xc6)]>0x0&&(this[_0x5c034c(0xbc)][_0x5c034c(0xd0)]=_0x5bffb6[_0x5c034c(0x7e)](0x0)),this[_0x5c034c(0xa0)](),this[_0x5c034c(0x7f)](_0x5c034c(0xac),this));}}[_0x547587(0xa1)](){const _0x2d7296=_0x547587;this[_0x2d7296(0xab)]||(this[_0x2d7296(0xa0)](),this[_0x2d7296(0x7f)](_0x2d7296(0xb9),this));}[_0x547587(0xcc)](_0x4ae228){const _0x23c944=_0x547587;return this[_0x23c944(0xa6)][_0x23c944(0x90)](_0x40241f=>_0x40241f['id']===_0x4ae228);}[_0x547587(0x9e)](){const _0x181457=_0x547587;this[_0x181457(0xd4)]||(this[_0x181457(0xa1)](),this[_0x181457(0xa6)][_0x181457(0xca)](_0x2297c3=>_0x2297c3[_0x181457(0x9e)]()),this[_0x181457(0xa6)]=[],this[_0x181457(0xd4)]=!0x0,this[_0x181457(0x7f)](_0x181457(0xa4),this),this[_0x181457(0xb8)]());}[_0x547587(0xc3)](_0x379568){const _0x4a0d79=_0x547587,_0x3cdd12=new _0x4c417d({'editor':this[_0x4a0d79(0xcb)],'documentContextContent':this[_0x4a0d79(0x8b)]()?.[_0x4a0d79(0xc8)],..._0x379568});return this[_0x4a0d79(0xa6)][_0x4a0d79(0x88)](_0x3cdd12),_0x3cdd12[_0x4a0d79(0x9a)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4a0d79(0x7f)](_0x4a0d79(0xc7),_0x3cdd12),_0x3cdd12;}[_0x547587(0x9f)](_0x45d14f,_0x5aaff2=!0x1){const _0x13f59d=_0x547587;this[_0x13f59d(0x7f)](_0x13f59d(0x9f),_0x45d14f,_0x5aaff2);}[_0x547587(0x82)](){const _0x47598d=_0x547587;this[_0x47598d(0xc2)]&&(this[_0x47598d(0xc2)]=!0x1,this[_0x47598d(0x7f)](_0x47598d(0xd2),this));}[_0x547587(0x96)](){const _0x21f884=_0x547587;this[_0x21f884(0xb3)]&&(this[_0x21f884(0xb3)]=!0x1,this[_0x21f884(0x7f)](_0x21f884(0xbd),this));}[_0x547587(0x97)](_0x8472d){const _0xc1ca36=_0x547587;this[_0xc1ca36(0x7f)](_0xc1ca36(0xa2),{'type':_0xc1ca36(0xb6),'toolName':_0x8472d[_0xc1ca36(0xbf)],'data':structuredClone(_0x8472d[_0xc1ca36(0xb4)]||{}),'attributes':structuredClone(_0x8472d[_0xc1ca36(0x81)]||{})},this);}[_0x547587(0x9d)](_0x5b4556){const _0x1d9954=_0x547587;this[_0x1d9954(0x7f)](_0x1d9954(0xa2),{'type':_0x1d9954(0x86),'toolName':_0x5b4556[_0x1d9954(0xbf)],'data':structuredClone(_0x5b4556[_0x1d9954(0xb4)])},this);}[_0x547587(0xa0)](){const _0x425494=_0x547587;this[_0x425494(0xab)]=!0x0,this[_0x425494(0x8e)]&&this[_0x425494(0x8e)][_0x425494(0x8c)][_0x425494(0x94)](),this[_0x425494(0xbc)]&&this[_0x425494(0xbc)][_0x425494(0xce)](),this[_0x425494(0x8e)]=this[_0x425494(0xbc)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b1d0b=_0x2c1c;(function(_0x5ae886,_0x363e13){const _0x4ff1b2=_0x2c1c,_0x47bcd8=_0x5ae886();while(!![]){try{const _0x527a54=-parseInt(_0x4ff1b2(0x156))/0x1*(-parseInt(_0x4ff1b2(0x12a))/0x2)+-parseInt(_0x4ff1b2(0x13e))/0x3+parseInt(_0x4ff1b2(0x149))/0x4+-parseInt(_0x4ff1b2(0x152))/0x5*(parseInt(_0x4ff1b2(0x13a))/0x6)+parseInt(_0x4ff1b2(0x147))/0x7*(parseInt(_0x4ff1b2(0x145))/0x8)+-parseInt(_0x4ff1b2(0x135))/0x9+parseInt(_0x4ff1b2(0x157))/0xa;if(_0x527a54===_0x363e13)break;else _0x47bcd8['push'](_0x47bcd8['shift']());}catch(_0x4c42f1){_0x47bcd8['push'](_0x47bcd8['shift']());}}}(_0x3810,0x5b788));function _0x3810(){const _0x1e8c25=['_connector','uiLanguage','filter','push','add','displayedModels','ai-chat-default-model-id-unrecognized','name','5861475LkEFzN','_locale','_modelsRequest','agent','items','138RzeHwu','_availableModels','_isMatchingFilter','getDefault','871524lZBjaj','AI_MODEL_NAME_AUTO','provider','auto','_getModelById','string','map','12424dlhQzl','startsWith','1827lzKuMJ','toLocaleLowerCase','601784NGZGHa','some','defaultModelId','_retrieveModels','ai-chat-model-id-unrecognized','isAvailable','_filterModels','getAll','recommended','87990ZrXmKC','has','getAvailableModels','getModel','971Ttacgn','4789250exUgGZ','_modelList','ai-models-unable-to-retrieve','_config','length','find','list','1414eNFyQv','getModels','_defaultModelId'];_0x3810=function(){return _0x1e8c25;};return _0x3810();}import{EmitterMixin as _0x591cb8,logWarning as _0x41d758,logError as _0x46a738}from'ckeditor5/src/utils.js';import{getTranslation as _0x5a1fec}from'../utils/common-translations.js';function _0x2c1c(_0x29d6ef,_0x4427c6){const _0x381086=_0x3810();return _0x2c1c=function(_0x2c1c73,_0x487852){_0x2c1c73=_0x2c1c73-0x128;let _0x4df168=_0x381086[_0x2c1c73];return _0x4df168;},_0x2c1c(_0x29d6ef,_0x4427c6);}export class AIModels extends _0x591cb8(){[_0x2b1d0b(0x12d)];[_0x2b1d0b(0x15a)];[_0x2b1d0b(0x136)];[_0x2b1d0b(0x158)]=[];[_0x2b1d0b(0x137)]=null;constructor({connector:_0x115425,config:_0x25f24a,locale:_0xcb6c40}){const _0x530f00=_0x2b1d0b;super(),this[_0x530f00(0x12d)]=_0x115425,this[_0x530f00(0x15a)]=_0x25f24a,this[_0x530f00(0x136)]=_0xcb6c40;}get[_0x2b1d0b(0x13b)](){const _0x558210=_0x2b1d0b;return this[_0x558210(0x15a)]?.[_0x558210(0x132)];}get[_0x2b1d0b(0x12c)](){const _0x5ddcb1=_0x2b1d0b;return this[_0x5ddcb1(0x15a)]?.[_0x5ddcb1(0x14b)];}async[_0x2b1d0b(0x150)](){const _0x52744f=_0x2b1d0b;return this[_0x52744f(0x137)]||(this[_0x52744f(0x137)]=this[_0x52744f(0x14c)]()),this[_0x52744f(0x137)];}async[_0x2b1d0b(0x154)](){const _0xac4c4c=_0x2b1d0b,_0x332367=await this[_0xac4c4c(0x150)]();let _0x1183cb;return _0x1183cb=this[_0xac4c4c(0x13b)]?this[_0xac4c4c(0x14f)](_0x332367,this[_0xac4c4c(0x13b)]):_0x332367[_0xac4c4c(0x12f)](_0x2ac327=>_0x2ac327[_0xac4c4c(0x151)]),_0x1183cb;}async[_0x2b1d0b(0x155)](_0x277aa8){const _0x20118e=_0x2b1d0b,_0x39ef0e=await this[_0x20118e(0x150)]();if(!_0x39ef0e[_0x20118e(0x15b)])return null;if(_0x277aa8){const _0x938e8b=this[_0x20118e(0x142)](_0x39ef0e,_0x277aa8);if(_0x938e8b)return _0x938e8b;_0x41d758(_0x20118e(0x14d),{'modelId':_0x277aa8,'fallBackModelId':this[_0x20118e(0x12c)]});}return this[_0x20118e(0x13d)]();}async[_0x2b1d0b(0x13d)](){const _0x2fd8f1=_0x2b1d0b,_0x3cf019=await this[_0x2fd8f1(0x154)]();if(!_0x3cf019[_0x2fd8f1(0x15b)])return null;if(this[_0x2fd8f1(0x12c)]){const _0x1c388a=this[_0x2fd8f1(0x142)](_0x3cf019,this[_0x2fd8f1(0x12c)]);if(_0x1c388a)return _0x1c388a;_0x41d758(_0x2fd8f1(0x133),{'defaultModelId':this[_0x2fd8f1(0x12c)],'fallBackModelId':_0x3cf019[0x0]['id']});}return _0x3cf019[0x0];}async[_0x2b1d0b(0x14e)](_0x1ae1e9){const _0x18adf9=_0x2b1d0b;return(await this[_0x18adf9(0x154)]())[_0x18adf9(0x14a)](_0x105908=>_0x105908[_0x18adf9(0x134)]===_0x1ae1e9[_0x18adf9(0x134)]&&_0x105908[_0x18adf9(0x140)]===_0x1ae1e9[_0x18adf9(0x140)]);}async[_0x2b1d0b(0x14c)](){const _0x5a0c6f=_0x2b1d0b;if(!this[_0x5a0c6f(0x158)][_0x5a0c6f(0x15b)])try{const _0x1362f0=this[_0x5a0c6f(0x136)][_0x5a0c6f(0x12e)]||'en',_0x2fd556=this[_0x5a0c6f(0x12d)][_0x5a0c6f(0x12b)](_0x1362f0),_0x2cdf57=await _0x2fd556[_0x5a0c6f(0x129)]();this[_0x5a0c6f(0x158)]=_0x2cdf57[_0x5a0c6f(0x139)][_0x5a0c6f(0x144)](_0x5a7e37=>Ui(_0x5a7e37)?{..._0x5a7e37,'name':_0x5a1fec(this[_0x5a0c6f(0x136)],_0x5a0c6f(0x13f))}:_0x5a7e37);}catch(_0x5c3cd5){throw _0x46a738(_0x5a0c6f(0x159),{'error':_0x5c3cd5}),_0x5c3cd5;}return[...this[_0x5a0c6f(0x158)]];}[_0x2b1d0b(0x14f)](_0x491281,_0x4debc5){const _0x2ff5d7=_0x2b1d0b;let _0x494885;if(_0x4debc5){_0x494885=[];const _0x1d14f5=new Set(),_0x4c25a4=_0x2ff5d7(0x143)==typeof _0x4debc5?[_0x4debc5[_0x2ff5d7(0x148)]()]:_0x4debc5[_0x2ff5d7(0x144)](_0x49d8ce=>_0x49d8ce[_0x2ff5d7(0x148)]());for(const _0x58ef94 of _0x4c25a4)for(const _0x455e88 of _0x491281)!_0x1d14f5[_0x2ff5d7(0x153)](_0x455e88['id'])&&this[_0x2ff5d7(0x13c)](_0x455e88,_0x58ef94)&&(_0x494885[_0x2ff5d7(0x130)](_0x455e88),_0x1d14f5[_0x2ff5d7(0x131)](_0x455e88['id']));}else _0x494885=_0x491281;return _0x494885;}[_0x2b1d0b(0x13c)](_0x46bc65,_0x32b7d3){const _0x50b2b2=_0x2b1d0b,_0x20d8d0=_0x46bc65['id'][_0x50b2b2(0x148)](),_0xae9d0e=_0x46bc65[_0x50b2b2(0x134)][_0x50b2b2(0x148)](),_0x14b057=_0x46bc65[_0x50b2b2(0x140)][_0x50b2b2(0x148)]();return _0x20d8d0===_0x32b7d3||_0xae9d0e===_0x32b7d3||Ui(_0x46bc65)&&_0x50b2b2(0x141)===_0x32b7d3||_0x14b057===_0x32b7d3||_0x20d8d0[_0x50b2b2(0x146)](_0x32b7d3);}[_0x2b1d0b(0x142)](_0x4d4f9a,_0x2d8f67){const _0x1e6673=_0x2b1d0b;return _0x4d4f9a[_0x1e6673(0x128)](_0x157051=>Ui(_0x157051)&&_0x1e6673(0x141)===_0x2d8f67?_0x157051:_0x157051['id']===_0x2d8f67)||null;}}function Ui(_0x110a40){const _0x1cf7f6=_0x2b1d0b;return _0x110a40['id'][_0x1cf7f6(0x146)](_0x1cf7f6(0x138));}
23
+ const _0x48080a=_0x362c;(function(_0xca0e04,_0x2e3d5f){const _0x40a6c2=_0x362c,_0x457482=_0xca0e04();while(!![]){try{const _0x3fe036=-parseInt(_0x40a6c2(0x183))/0x1*(-parseInt(_0x40a6c2(0x17d))/0x2)+parseInt(_0x40a6c2(0x188))/0x3*(-parseInt(_0x40a6c2(0x17a))/0x4)+-parseInt(_0x40a6c2(0x1a0))/0x5*(-parseInt(_0x40a6c2(0x18a))/0x6)+parseInt(_0x40a6c2(0x190))/0x7+parseInt(_0x40a6c2(0x19e))/0x8+-parseInt(_0x40a6c2(0x17f))/0x9+-parseInt(_0x40a6c2(0x174))/0xa*(parseInt(_0x40a6c2(0x192))/0xb);if(_0x3fe036===_0x2e3d5f)break;else _0x457482['push'](_0x457482['shift']());}catch(_0x582c6c){_0x457482['push'](_0x457482['shift']());}}}(_0x2df5,0x21d0d));function _0x362c(_0x539d3a,_0x1c5920){const _0x2df58f=_0x2df5();return _0x362c=function(_0x362ca5,_0x27f621){_0x362ca5=_0x362ca5-0x172;let _0x5d248e=_0x2df58f[_0x362ca5];return _0x5d248e;},_0x362c(_0x539d3a,_0x1c5920);}import{EmitterMixin as _0x19d10a,logWarning as _0x61cd53,logError as _0x57faf0}from'ckeditor5/src/utils.js';import{getTranslation as _0x579834}from'../utils/common-translations.js';export class AIModels extends _0x19d10a(){[_0x48080a(0x1a3)];[_0x48080a(0x19a)];[_0x48080a(0x189)];[_0x48080a(0x184)]=[];[_0x48080a(0x193)]=null;constructor({connector:_0x5743c4,config:_0x13e061,locale:_0x49b589}){const _0x2098ba=_0x48080a;super(),this[_0x2098ba(0x1a3)]=_0x5743c4,this[_0x2098ba(0x19a)]=_0x13e061,this[_0x2098ba(0x189)]=_0x49b589;}get[_0x48080a(0x18e)](){const _0x410258=_0x48080a;return this[_0x410258(0x19a)]?.[_0x410258(0x177)];}get[_0x48080a(0x194)](){const _0x5b8696=_0x48080a;return this[_0x5b8696(0x19a)]?.[_0x5b8696(0x1a4)];}async[_0x48080a(0x1a6)](){const _0x3e9913=_0x48080a;return this[_0x3e9913(0x193)]||(this[_0x3e9913(0x193)]=this[_0x3e9913(0x17c)]()),this[_0x3e9913(0x193)];}async[_0x48080a(0x191)](){const _0x3f878e=_0x48080a,_0x4f35e2=await this[_0x3f878e(0x1a6)]();let _0x228609;return _0x228609=this[_0x3f878e(0x18e)]?this[_0x3f878e(0x185)](_0x4f35e2,this[_0x3f878e(0x18e)]):_0x4f35e2[_0x3f878e(0x196)](_0x395489=>_0x395489[_0x3f878e(0x18b)]),_0x228609;}async[_0x48080a(0x19f)](_0x3fc8c0){const _0x108a23=_0x48080a,_0x3bc986=await this[_0x108a23(0x1a6)]();if(!_0x3bc986[_0x108a23(0x180)])return null;if(_0x3fc8c0){const _0x558ed4=this[_0x108a23(0x1a5)](_0x3bc986,_0x3fc8c0);if(_0x558ed4)return _0x558ed4;_0x61cd53(_0x108a23(0x199),{'modelId':_0x3fc8c0,'fallBackModelId':this[_0x108a23(0x194)]});}return this[_0x108a23(0x18c)]();}async[_0x48080a(0x18c)](){const _0xb51896=_0x48080a,_0x2fae2a=await this[_0xb51896(0x191)]();if(!_0x2fae2a[_0xb51896(0x180)])return null;if(this[_0xb51896(0x194)]){const _0x3a3a20=this[_0xb51896(0x1a5)](_0x2fae2a,this[_0xb51896(0x194)]);if(_0x3a3a20)return _0x3a3a20;_0x61cd53(_0xb51896(0x198),{'defaultModelId':this[_0xb51896(0x194)],'fallBackModelId':_0x2fae2a[0x0]['id']});}return _0x2fae2a[0x0];}async[_0x48080a(0x17e)](_0x43d1a6){const _0x403a8c=_0x48080a;return(await this[_0x403a8c(0x191)]())[_0x403a8c(0x178)](_0x258da3=>_0x258da3[_0x403a8c(0x18d)]===_0x43d1a6[_0x403a8c(0x18d)]&&_0x258da3[_0x403a8c(0x173)]===_0x43d1a6[_0x403a8c(0x173)]);}async[_0x48080a(0x17c)](){const _0x31b450=_0x48080a;if(!this[_0x31b450(0x184)][_0x31b450(0x180)])try{const _0x2a652e=this[_0x31b450(0x189)][_0x31b450(0x17b)]||'en',_0x1d4834=this[_0x31b450(0x1a3)][_0x31b450(0x187)](_0x2a652e),_0x906e43=await _0x1d4834[_0x31b450(0x197)]();this[_0x31b450(0x184)]=_0x906e43[_0x31b450(0x172)][_0x31b450(0x175)](_0x406e9a=>Bi(_0x406e9a)?{..._0x406e9a,'name':_0x579834(this[_0x31b450(0x189)],_0x31b450(0x19b))}:_0x406e9a);}catch(_0xecee0d){throw _0x57faf0(_0x31b450(0x1a2),{'error':_0xecee0d}),_0xecee0d;}return[...this[_0x31b450(0x184)]];}[_0x48080a(0x185)](_0x15731f,_0x57128d){const _0x37dbe1=_0x48080a;let _0x41b5ec;if(_0x57128d){_0x41b5ec=[];const _0x1a6f3f=new Set(),_0xfb3660=_0x37dbe1(0x1a1)==typeof _0x57128d?[_0x57128d[_0x37dbe1(0x195)]()]:_0x57128d[_0x37dbe1(0x175)](_0x32664a=>_0x32664a[_0x37dbe1(0x195)]());for(const _0x177dfa of _0xfb3660)for(const _0x58eaa7 of _0x15731f)!_0x1a6f3f[_0x37dbe1(0x18f)](_0x58eaa7['id'])&&this[_0x37dbe1(0x179)](_0x58eaa7,_0x177dfa)&&(_0x41b5ec[_0x37dbe1(0x186)](_0x58eaa7),_0x1a6f3f[_0x37dbe1(0x176)](_0x58eaa7['id']));}else _0x41b5ec=_0x15731f;return _0x41b5ec;}[_0x48080a(0x179)](_0x3df9af,_0x435244){const _0xf8383b=_0x48080a,_0x1493d5=_0x3df9af['id'][_0xf8383b(0x195)](),_0x3ee7b6=_0x3df9af[_0xf8383b(0x18d)][_0xf8383b(0x195)](),_0x3ac9b2=_0x3df9af[_0xf8383b(0x173)][_0xf8383b(0x195)]();return _0x1493d5===_0x435244||_0x3ee7b6===_0x435244||Bi(_0x3df9af)&&_0xf8383b(0x181)===_0x435244||_0x3ac9b2===_0x435244||_0x1493d5[_0xf8383b(0x19c)](_0x435244);}[_0x48080a(0x1a5)](_0x4b5fe8,_0x361b55){const _0xcbb244=_0x48080a;return _0x4b5fe8[_0xcbb244(0x182)](_0x272592=>Bi(_0x272592)&&_0xcbb244(0x181)===_0x361b55?_0x272592:_0x272592['id']===_0x361b55)||null;}}function Bi(_0x573c4a){const _0x4969c5=_0x48080a;return _0x573c4a['id'][_0x4969c5(0x19c)](_0x4969c5(0x19d));}function _0x2df5(){const _0x199867=['displayedModels','some','_isMatchingFilter','209444GqAtEI','uiLanguage','_retrieveModels','165112zvbMFf','isAvailable','1119726lFVUuw','length','auto','find','2wfEPBX','_modelList','_filterModels','push','getModels','3sbHQCH','_locale','174SuQxHJ','recommended','getDefault','name','_availableModels','has','473536PduyVj','getAvailableModels','884774FaPsgl','_modelsRequest','_defaultModelId','toLocaleLowerCase','filter','list','ai-chat-default-model-id-unrecognized','ai-chat-model-id-unrecognized','_config','AI_MODEL_NAME_AUTO','startsWith','agent','2048096DAqvZU','getModel','25560VTjkmj','string','ai-models-unable-to-retrieve','_connector','defaultModelId','_getModelById','getAll','items','provider','40TslKZK','map','add'];_0x2df5=function(){return _0x199867;};return _0x2df5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2d47(_0x5f2bc6,_0x33b901){const _0x3f3ddd=_0x3f3d();return _0x2d47=function(_0x2d4743,_0x10a087){_0x2d4743=_0x2d4743-0x1a2;let _0x333482=_0x3f3ddd[_0x2d4743];return _0x333482;},_0x2d47(_0x5f2bc6,_0x33b901);}const _0x59422e=_0x2d47;(function(_0x548696,_0xe3007e){const _0x55dd2c=_0x2d47,_0x237f0d=_0x548696();while(!![]){try{const _0x4d9e75=-parseInt(_0x55dd2c(0x1de))/0x1+parseInt(_0x55dd2c(0x1a8))/0x2*(-parseInt(_0x55dd2c(0x1c2))/0x3)+-parseInt(_0x55dd2c(0x1ed))/0x4*(-parseInt(_0x55dd2c(0x1cc))/0x5)+parseInt(_0x55dd2c(0x1dc))/0x6+parseInt(_0x55dd2c(0x1d1))/0x7+parseInt(_0x55dd2c(0x1a6))/0x8*(parseInt(_0x55dd2c(0x1e2))/0x9)+-parseInt(_0x55dd2c(0x1af))/0xa;if(_0x4d9e75===_0xe3007e)break;else _0x237f0d['push'](_0x237f0d['shift']());}catch(_0x111d5e){_0x237f0d['push'](_0x237f0d['shift']());}}}(_0x3f3d,0xe2c3a));import{CKEditorError as _0x190c2e,ObservableMixin as _0x4e5261,uid as _0x99e2cc}from'ckeditor5/src/utils.js';import{Element as _0x331346,findAll as _0x2aa685,getAttribute as _0x5a4022,getParents as _0x499931,Document as _0x53192d,parse as _0x242cb8,Text as _0x52597b}from'../utils/htmlparser.js';import{AIResponseParser as _0x5b4498}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4d450e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x12e5c2}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xfe314b}from'../utils/common-translations.js';import{cloneDeep as _0x1ed073}from'es-toolkit';function _0x3f3d(){const _0x1724d8=['aiResponseApplier','_getDifferentChangeGroups','context','updateChangeGroups','merge','locale','parsedContent','5680836VJWpns','getContentParts','57994WncJiz','ai-reply-get-content-parts-group-not-found','convertMarkdownToHTML','areActionsDisabled','265221jllAlp','indexOf','_getCachedContentParts','onContentChange','AI_SUGGESTION_CONTENT_PART_REMOVED','modifiedNodeIds','aiResponseParser','map','filter','change:content','replyChangeGroupStateUpdated','292DOfOzj','nextSibling','cachedSuggestionContentParts','previousSibling','modified','parseAndNormalizeHTML','splice','parsedMergedContent','color:\x20#808080;\x20font-style:\x20italic','320kUPWTV','destroy','282QAtQxp','includes','index','newNodeIds','withoutDiff','fire','state','24001400goIqOm','span','replyContentUpdated','data-unstable','documentContextContent','modification','removed','find','length','cloneNode','type','sources','changeGroups','changes','every','stopListening','_setCachedContentParts','unshift','pending','5517hALcLm','appendContent','removedNodeIds','content','push','set','ai-get-editor-from-context-no-editor','withDiff','editor','interactionId','81295gnoDYG','done','forEach','data-id','setChangeGroupState','2336502LmHczx','isDone','new','node'];_0x3f3d=function(){return _0x1724d8;};return _0x3f3d();}export class AIReply extends _0x4e5261(){['id'];[_0x59422e(0x1cb)];[_0x59422e(0x1b9)];[_0x59422e(0x1ba)]=[];[_0x59422e(0x1db)]=new _0x53192d([]);[_0x59422e(0x1a4)]=new _0x53192d([]);[_0x59422e(0x1bb)]=[];[_0x59422e(0x1e1)]=!0x1;[_0x59422e(0x1b3)];[_0x59422e(0x1e8)];[_0x59422e(0x1d5)];[_0x59422e(0x1ca)];[_0x59422e(0x1ef)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x43b8d7,content:_0x5db910='',isDone:_0xe0c946=!0x1,interactionId:_0xf20aab,areActionsDisabled:_0x25e786,documentContextContent:_0x2c1cae,editor:_0x443951,id:_0x57e24b}){const _0x7cd082=_0x59422e;super(),this['id']=_0x57e24b||_0x99e2cc(),this[_0x7cd082(0x1cb)]=_0xf20aab,this[_0x7cd082(0x1b9)]=_0x43b8d7,this[_0x7cd082(0x1e1)]=!!_0x25e786,this[_0x7cd082(0x1ca)]=_0x443951,this[_0x7cd082(0x1e8)]=new _0x5b4498(),this[_0x7cd082(0x1d5)]=new _0x4d450e(),this[_0x7cd082(0x1b3)]=_0x242cb8(_0x2c1cae||''),this[_0x7cd082(0x1c7)](_0x7cd082(0x1d2),_0xe0c946),this['on'](_0x7cd082(0x1eb),()=>{const _0x3e89b3=_0x7cd082;this[_0x3e89b3(0x1e5)]();}),this[_0x7cd082(0x1c7)](_0x7cd082(0x1c5),_0x5db910);}[_0x59422e(0x1c3)](_0x28291c){const _0x2d7fc0=_0x59422e;this[_0x2d7fc0(0x1c7)](_0x2d7fc0(0x1c5),this[_0x2d7fc0(0x1c5)]+_0x28291c);}[_0x59422e(0x1cd)](){const _0x356a36=_0x59422e;this[_0x356a36(0x1d2)]||(this[_0x356a36(0x1c7)](_0x356a36(0x1d2),!0x0),this[_0x356a36(0x1e5)]());}[_0x59422e(0x1a7)](){const _0x4bedd6=_0x59422e;this[_0x4bedd6(0x1be)]();}[_0x59422e(0x1d0)](_0x411c22,_0x3e42e){const _0x299577=_0x59422e;this[_0x299577(0x1bb)][_0x411c22][_0x299577(0x1ae)]=_0x3e42e,this[_0x299577(0x1ad)](_0x299577(0x1ec),{'reply':this,'index':_0x411c22,'state':_0x3e42e});}[_0x59422e(0x1dd)]({showDiff:_0x56ac25,groupIndex:_0x4c1d26}){const _0x4095b0=_0x59422e;if(!this[_0x4095b0(0x1ca)])throw new _0x190c2e(_0x4095b0(0x1c8),null,{'aiReply':this});const _0x45b1b8=this[_0x4095b0(0x1e4)](_0x56ac25,_0x4c1d26);if(_0x45b1b8)return _0x45b1b8;let _0x37a18d=[];if(void 0x0===_0x4c1d26)_0x37a18d=this[_0x4095b0(0x1bb)];else{const _0x20b213=this[_0x4095b0(0x1bb)][_0x4095b0(0x1b6)](({index:_0x147062})=>_0x147062===_0x4c1d26);if(!_0x20b213)throw new _0x190c2e(_0x4095b0(0x1df),null,{'aiReply':this,'groupIndex':_0x4c1d26});_0x37a18d=[_0x20b213];}const _0x19c67a=_0x12e5c2({'editor':this[_0x4095b0(0x1ca)],'showDiff':_0x56ac25,'changeGroups':_0x37a18d,'documentContextContent':this[_0x4095b0(0x1b3)]});return this[_0x4095b0(0x1bf)](_0x56ac25,_0x19c67a),_0x19c67a;}[_0x59422e(0x1e4)](_0x1b1d2b,_0x13e632){const _0x25112b=_0x59422e,_0x4add20=_0x1b1d2b?_0x25112b(0x1c9):_0x25112b(0x1ac);if(!this[_0x25112b(0x1ef)][_0x4add20][_0x25112b(0x1b7)])return null;const _0x1e3b69=this[_0x25112b(0x1ef)][_0x4add20];if(void 0x0===_0x13e632)return _0x1e3b69[_0x25112b(0x1b7)]>0x0&&_0x1e3b69[_0x25112b(0x1b7)]!==this[_0x25112b(0x1bb)][_0x25112b(0x1b7)]?(this[_0x25112b(0x1bf)](_0x1b1d2b,null),null):_0x1ed073(_0x1e3b69);{const _0x8fa069=_0x1e3b69[_0x25112b(0x1b6)](({index:_0x1d6ec8})=>_0x1d6ec8===_0x13e632);if(_0x8fa069)return[_0x1ed073(_0x8fa069)];}return null;}[_0x59422e(0x1bf)](_0x31ac4b,_0x485599){const _0x33345d=_0x59422e,_0x26a863=_0x31ac4b?_0x33345d(0x1c9):_0x33345d(0x1ac);_0x485599?_0x485599[_0x33345d(0x1ce)](_0x7100cc=>{const _0x16f746=_0x33345d,_0x8a20b1=this[_0x16f746(0x1ef)][_0x26a863],_0x47b62d=_0x8a20b1[_0x16f746(0x1b6)](({index:_0x1453f1})=>_0x1453f1===_0x7100cc[_0x16f746(0x1aa)]);if(_0x47b62d){const _0x41e2ca=_0x8a20b1[_0x16f746(0x1e3)](_0x47b62d);_0x8a20b1[_0x16f746(0x1a3)](_0x41e2ca,0x1,_0x7100cc);}else _0x8a20b1[_0x16f746(0x1c6)](_0x7100cc);}):this[_0x33345d(0x1ef)][_0x26a863][_0x33345d(0x1b7)]=0x0;}[_0x59422e(0x1e5)](){const _0x1bcb32=_0x59422e;if(_0x1bcb32(0x1b4)===this[_0x1bcb32(0x1b9)]){this[_0x1bcb32(0x1db)]=this[_0x1bcb32(0x1e8)][_0x1bcb32(0x1a2)](this[_0x1bcb32(0x1c5)]);const _0x6c349a=this[_0x1bcb32(0x1bb)];this[_0x1bcb32(0x1d8)]();const _0x4a5882=this[_0x1bcb32(0x1d6)](_0x6c349a,this[_0x1bcb32(0x1bb)]);(_0x4a5882[_0x1bcb32(0x1b7)]||this[_0x1bcb32(0x1d2)])&&(this[_0x1bcb32(0x1ad)](_0x1bcb32(0x1b1),this,_0x4a5882),this[_0x1bcb32(0x1ef)][_0x1bcb32(0x1c9)][_0x1bcb32(0x1b7)]=this[_0x1bcb32(0x1ef)][_0x1bcb32(0x1ac)][_0x1bcb32(0x1b7)]=0x0);}else this[_0x1bcb32(0x1db)]=this[_0x1bcb32(0x1e8)][_0x1bcb32(0x1e0)](this[_0x1bcb32(0x1c5)]),this[_0x1bcb32(0x1ad)](_0x1bcb32(0x1b1),this);}[_0x59422e(0x1d6)](_0x20bdf5,_0x5910ff){const _0x29fce7=_0x59422e,_0x15dd74=[];for(const _0x1656c5 of _0x5910ff){const _0x308c97=_0x20bdf5[_0x1656c5[_0x29fce7(0x1aa)]];_0x308c97?_0x308c97[_0x29fce7(0x1bc)][_0x29fce7(0x1b7)]!==_0x1656c5[_0x29fce7(0x1bc)][_0x29fce7(0x1b7)]?_0x15dd74[_0x29fce7(0x1c6)](_0x1656c5):_0x308c97[_0x29fce7(0x1bc)][_0x29fce7(0x1ce)]((_0xb48c59,_0x2efc34)=>{const _0x10fe18=_0x29fce7,_0x42f031=_0x1656c5[_0x10fe18(0x1bc)][_0x2efc34];_0xb48c59['id']!==_0x42f031['id']&&_0x15dd74[_0x10fe18(0x1c6)](_0x1656c5);}):_0x15dd74[_0x29fce7(0x1c6)](_0x1656c5);}return _0x15dd74;}[_0x59422e(0x1d8)](){const _0x55e34e=_0x59422e,_0x5aec20=new _0x331346('p',{},[new _0x331346(_0x55e34e(0x1b0),{'style':_0x55e34e(0x1a5)},[new _0x52597b(_0xfe314b(this[_0x55e34e(0x1ca)][_0x55e34e(0x1da)],_0x55e34e(0x1e6)))])]),_0x157471=this[_0x55e34e(0x1d5)][_0x55e34e(0x1d9)](this[_0x55e34e(0x1db)],this[_0x55e34e(0x1b3)][_0x55e34e(0x1b8)](!0x0),{'markUnstableElements':!this[_0x55e34e(0x1d2)],'replaceRemovedWith':_0x5aec20,'cutAfterLastChange':!this[_0x55e34e(0x1d2)]});if(!_0x157471[_0x55e34e(0x1e7)][_0x55e34e(0x1b7)]&&!this[_0x55e34e(0x1d2)])return;this[_0x55e34e(0x1a4)]=_0x157471[_0x55e34e(0x1db)];let _0x3f756e=[];if(_0x2aa685(_0x568b01=>{const _0x31be03=_0x55e34e,_0x13c9ce=_0x5a4022(_0x568b01,_0x31be03(0x1cf));if(!_0x13c9ce||!_0x1ad94c(_0x13c9ce))return!0x1;const _0xec3bc1=[_0x568b01,..._0x499931(_0x568b01)]['at'](-0x2);if(_0x568b01!=_0xec3bc1){const _0x388f3c=_0x5a4022(_0xec3bc1,_0x31be03(0x1cf));_0x1ad94c(_0x388f3c)||(_0x3f756e[_0x31be03(0x1c6)]({'node':_0xec3bc1,'id':_0x388f3c,'type':_0x31be03(0x1f1)}),_0x157471[_0x31be03(0x1e7)][_0x31be03(0x1c6)](_0x388f3c));}else _0x157471[_0x31be03(0x1e7)][_0x31be03(0x1a9)](_0x13c9ce)?_0x3f756e[_0x31be03(0x1c6)]({'node':_0x568b01,'type':_0x31be03(0x1f1),'id':_0x13c9ce}):_0x157471[_0x31be03(0x1ab)][_0x31be03(0x1a9)](_0x13c9ce)?_0x3f756e[_0x31be03(0x1c6)]({'node':_0x568b01,'type':_0x31be03(0x1d3),'id':_0x13c9ce,'anchorId':_0x5a4022(_0x568b01[_0x31be03(0x1f0)],_0x31be03(0x1cf))}):_0x3f756e[_0x31be03(0x1c6)]({'node':_0x568b01,'type':_0x31be03(0x1b5),'id':_0x13c9ce});return!0x0;},this[_0x55e34e(0x1a4)]),_0x3f756e=_0x3f756e[_0x55e34e(0x1ea)](({node:_0x4ff933})=>[..._0x499931(_0x4ff933),_0x4ff933][_0x55e34e(0x1bd)](_0x58d14d=>!_0x5a4022(_0x58d14d,_0x55e34e(0x1b2)))),0x0==_0x3f756e[_0x55e34e(0x1b7)])return;const _0x18bd13=[[_0x3f756e[0x0]]];for(let _0x1b1491=0x1;_0x1b1491<_0x3f756e[_0x55e34e(0x1b7)];_0x1b1491++){const _0x5eae83=_0x18bd13[_0x18bd13[_0x55e34e(0x1b7)]-0x1],_0xcf3059=_0x5eae83[_0x5eae83[_0x55e34e(0x1b7)]-0x1];_0x3f756e[_0x1b1491][_0x55e34e(0x1d4)][_0x55e34e(0x1f0)]==_0xcf3059[_0x55e34e(0x1d4)]&&_0x55e34e(0x1f1)!=_0x3f756e[_0x1b1491][_0x55e34e(0x1b9)]&&_0x55e34e(0x1f1)!=_0xcf3059[_0x55e34e(0x1b9)]?_0x5eae83[_0x55e34e(0x1c6)](_0x3f756e[_0x1b1491]):_0x18bd13[_0x55e34e(0x1c6)]([_0x3f756e[_0x1b1491]]);}for(const _0xa2f6a1 of _0x18bd13){const _0x1aef36=_0xa2f6a1[0x0],_0x5f5126=_0xa2f6a1[_0xa2f6a1[_0x55e34e(0x1b7)]-0x1],_0x4dc932=_0x1a342f(_0x1aef36[_0x55e34e(0x1d4)][_0x55e34e(0x1f0)]);_0x4dc932&&_0xa2f6a1[_0x55e34e(0x1c0)](_0x4dc932);const _0x55bfa2=_0x1a342f(_0x5f5126[_0x55e34e(0x1d4)][_0x55e34e(0x1ee)]);_0x55bfa2&&_0xa2f6a1[_0x55e34e(0x1c6)](_0x55bfa2);}function _0x1ad94c(_0x42a7fe){const _0x392ffe=_0x55e34e;return _0x157471[_0x392ffe(0x1e7)][_0x392ffe(0x1a9)](_0x42a7fe)||_0x157471[_0x392ffe(0x1ab)][_0x392ffe(0x1a9)](_0x42a7fe)||_0x157471[_0x392ffe(0x1c4)][_0x392ffe(0x1a9)](_0x42a7fe);}function _0x1a342f(_0x2e131e){const _0x1a6495=_0x55e34e;if(_0x2e131e&&_0x5a4022(_0x2e131e,_0x1a6495(0x1cf))&&!_0x5a4022(_0x2e131e,_0x1a6495(0x1b2))){const _0x3d8738=_0x5a4022(_0x2e131e,_0x1a6495(0x1cf));if(!_0x1ad94c(_0x3d8738))return{'node':_0x2e131e,'type':_0x1a6495(0x1d7),'id':_0x3d8738};}return null;}this[_0x55e34e(0x1bb)]=_0x18bd13[_0x55e34e(0x1e9)]((_0xe85f93,_0x13795c)=>({'changes':_0xe85f93,'state':_0x55e34e(0x1c1),'index':_0x13795c}));}}
23
+ const _0x2cc7b0=_0x1d2c;(function(_0x2c5f24,_0x246512){const _0xd15fa2=_0x1d2c,_0x2b1f77=_0x2c5f24();while(!![]){try{const _0x52ba27=-parseInt(_0xd15fa2(0x110))/0x1*(-parseInt(_0xd15fa2(0xf1))/0x2)+parseInt(_0xd15fa2(0xe5))/0x3*(-parseInt(_0xd15fa2(0x125))/0x4)+-parseInt(_0xd15fa2(0x11f))/0x5+parseInt(_0xd15fa2(0xe6))/0x6*(parseInt(_0xd15fa2(0x10f))/0x7)+-parseInt(_0xd15fa2(0xf6))/0x8+parseInt(_0xd15fa2(0xea))/0x9*(-parseInt(_0xd15fa2(0x117))/0xa)+parseInt(_0xd15fa2(0x118))/0xb;if(_0x52ba27===_0x246512)break;else _0x2b1f77['push'](_0x2b1f77['shift']());}catch(_0x35a9a3){_0x2b1f77['push'](_0x2b1f77['shift']());}}}(_0x5895,0x9b711));import{CKEditorError as _0x9e8bbf,ObservableMixin as _0xa60d90,uid as _0x2ad607}from'ckeditor5/src/utils.js';import{Element as _0x3b3dd3,findAll as _0x264a4f,getAttribute as _0x3b92e1,getParents as _0x25e81e,Document as _0x19af40,parse as _0x31af9d,Text as _0x20585c}from'../utils/htmlparser.js';import{AIResponseParser as _0x4853d1}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x401d08}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3a4591}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x238ef}from'../utils/common-translations.js';import{cloneDeep as _0x78aff0}from'es-toolkit';function _0x1d2c(_0x37ca39,_0x42f99c){const _0x58953f=_0x5895();return _0x1d2c=function(_0x1d2caf,_0x846dbb){_0x1d2caf=_0x1d2caf-0xda;let _0x4f8f8b=_0x58953f[_0x1d2caf];return _0x4f8f8b;},_0x1d2c(_0x37ca39,_0x42f99c);}function _0x5895(){const _0x533730=['stopListening','push','interactionId','_setCachedContentParts','3676990nPkXvf','27619691IAfphv','done','includes','forEach','onContentChange','changeGroups','aiResponseApplier','3243590xTmtum','editor','replyContentUpdated','unshift','modification','ai-reply-get-content-parts-group-not-found','4SRNXqg','_getDifferentChangeGroups','pending','indexOf','context','data-unstable','parsedMergedContent','length','modified','cachedSuggestionContentParts','node','_getCachedContentParts','cloneNode','withDiff','modifiedNodeIds','removedNodeIds','find','2299926uBTqZn','102bejtCH','changes','removed','ai-get-editor-from-context-no-editor','18PYqaLn','convertMarkdownToHTML','setChangeGroupState','state','splice','change:content','every','3370FQdCER','type','destroy','isDone','parseAndNormalizeHTML','6656640bgKwIZ','index','sources','span','new','color:\x20#808080;\x20font-style:\x20italic','appendContent','locale','AI_SUGGESTION_CONTENT_PART_REMOVED','nextSibling','areActionsDisabled','content','getContentParts','updateChangeGroups','merge','data-id','newNodeIds','withoutDiff','filter','replyChangeGroupStateUpdated','documentContextContent','set','previousSibling','aiResponseParser','fire','394751DQSJvQ','89acQgaM','map','parsedContent'];_0x5895=function(){return _0x533730;};return _0x5895();}export class AIReply extends _0xa60d90(){['id'];[_0x2cc7b0(0x115)];[_0x2cc7b0(0xf2)];[_0x2cc7b0(0xf8)]=[];[_0x2cc7b0(0x112)]=new _0x19af40([]);[_0x2cc7b0(0xda)]=new _0x19af40([]);[_0x2cc7b0(0x11d)]=[];[_0x2cc7b0(0x100)]=!0x1;[_0x2cc7b0(0x10a)];[_0x2cc7b0(0x10d)];[_0x2cc7b0(0x11e)];[_0x2cc7b0(0x120)];[_0x2cc7b0(0xdd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3e1018,content:_0x171112='',isDone:_0x46c254=!0x1,interactionId:_0x4bd52b,areActionsDisabled:_0x4bdbfe,documentContextContent:_0x5efef2,editor:_0xa1ef6f,id:_0x4965d0}){const _0x430777=_0x2cc7b0;super(),this['id']=_0x4965d0||_0x2ad607(),this[_0x430777(0x115)]=_0x4bd52b,this[_0x430777(0xf2)]=_0x3e1018,this[_0x430777(0x100)]=!!_0x4bdbfe,this[_0x430777(0x120)]=_0xa1ef6f,this[_0x430777(0x10d)]=new _0x4853d1(),this[_0x430777(0x11e)]=new _0x401d08(),this[_0x430777(0x10a)]=_0x31af9d(_0x5efef2||''),this[_0x430777(0x10b)](_0x430777(0xf4),_0x46c254),this['on'](_0x430777(0xef),()=>{const _0x36b772=_0x430777;this[_0x36b772(0x11c)]();}),this[_0x430777(0x10b)](_0x430777(0x101),_0x171112);}[_0x2cc7b0(0xfc)](_0x3c8a05){const _0x1a478e=_0x2cc7b0;this[_0x1a478e(0x10b)](_0x1a478e(0x101),this[_0x1a478e(0x101)]+_0x3c8a05);}[_0x2cc7b0(0x119)](){const _0x3ed795=_0x2cc7b0;this[_0x3ed795(0xf4)]||(this[_0x3ed795(0x10b)](_0x3ed795(0xf4),!0x0),this[_0x3ed795(0x11c)]());}[_0x2cc7b0(0xf3)](){const _0x233588=_0x2cc7b0;this[_0x233588(0x113)]();}[_0x2cc7b0(0xec)](_0x320db8,_0x634aae){const _0x3360d4=_0x2cc7b0;this[_0x3360d4(0x11d)][_0x320db8][_0x3360d4(0xed)]=_0x634aae,this[_0x3360d4(0x10e)](_0x3360d4(0x109),{'reply':this,'index':_0x320db8,'state':_0x634aae});}[_0x2cc7b0(0x102)]({showDiff:_0x25fe9f,groupIndex:_0x1fac0d}){const _0x4205cd=_0x2cc7b0;if(!this[_0x4205cd(0x120)])throw new _0x9e8bbf(_0x4205cd(0xe9),null,{'aiReply':this});const _0x56105c=this[_0x4205cd(0xdf)](_0x25fe9f,_0x1fac0d);if(_0x56105c)return _0x56105c;let _0x549765=[];if(void 0x0===_0x1fac0d)_0x549765=this[_0x4205cd(0x11d)];else{const _0xe809c3=this[_0x4205cd(0x11d)][_0x4205cd(0xe4)](({index:_0x5b41d3})=>_0x5b41d3===_0x1fac0d);if(!_0xe809c3)throw new _0x9e8bbf(_0x4205cd(0x124),null,{'aiReply':this,'groupIndex':_0x1fac0d});_0x549765=[_0xe809c3];}const _0x5edabd=_0x3a4591({'editor':this[_0x4205cd(0x120)],'showDiff':_0x25fe9f,'changeGroups':_0x549765,'documentContextContent':this[_0x4205cd(0x10a)]});return this[_0x4205cd(0x116)](_0x25fe9f,_0x5edabd),_0x5edabd;}[_0x2cc7b0(0xdf)](_0x42cb19,_0x5d1b2e){const _0x3f3bac=_0x2cc7b0,_0x5482b3=_0x42cb19?_0x3f3bac(0xe1):_0x3f3bac(0x107);if(!this[_0x3f3bac(0xdd)][_0x5482b3][_0x3f3bac(0xdb)])return null;const _0x201154=this[_0x3f3bac(0xdd)][_0x5482b3];if(void 0x0===_0x5d1b2e)return _0x201154[_0x3f3bac(0xdb)]>0x0&&_0x201154[_0x3f3bac(0xdb)]!==this[_0x3f3bac(0x11d)][_0x3f3bac(0xdb)]?(this[_0x3f3bac(0x116)](_0x42cb19,null),null):_0x78aff0(_0x201154);{const _0xc57811=_0x201154[_0x3f3bac(0xe4)](({index:_0x4d16e1})=>_0x4d16e1===_0x5d1b2e);if(_0xc57811)return[_0x78aff0(_0xc57811)];}return null;}[_0x2cc7b0(0x116)](_0x381fd5,_0x3993c3){const _0x26c171=_0x2cc7b0,_0x1774df=_0x381fd5?_0x26c171(0xe1):_0x26c171(0x107);_0x3993c3?_0x3993c3[_0x26c171(0x11b)](_0x48bf64=>{const _0x41075b=_0x26c171,_0x3ae15c=this[_0x41075b(0xdd)][_0x1774df],_0x324434=_0x3ae15c[_0x41075b(0xe4)](({index:_0x10751e})=>_0x10751e===_0x48bf64[_0x41075b(0xf7)]);if(_0x324434){const _0x2d293c=_0x3ae15c[_0x41075b(0x128)](_0x324434);_0x3ae15c[_0x41075b(0xee)](_0x2d293c,0x1,_0x48bf64);}else _0x3ae15c[_0x41075b(0x114)](_0x48bf64);}):this[_0x26c171(0xdd)][_0x1774df][_0x26c171(0xdb)]=0x0;}[_0x2cc7b0(0x11c)](){const _0x4e3c01=_0x2cc7b0;if(_0x4e3c01(0x123)===this[_0x4e3c01(0xf2)]){this[_0x4e3c01(0x112)]=this[_0x4e3c01(0x10d)][_0x4e3c01(0xf5)](this[_0x4e3c01(0x101)]);const _0x54ca8c=this[_0x4e3c01(0x11d)];this[_0x4e3c01(0x103)]();const _0x2efbed=this[_0x4e3c01(0x126)](_0x54ca8c,this[_0x4e3c01(0x11d)]);(_0x2efbed[_0x4e3c01(0xdb)]||this[_0x4e3c01(0xf4)])&&(this[_0x4e3c01(0x10e)](_0x4e3c01(0x121),this,_0x2efbed),this[_0x4e3c01(0xdd)][_0x4e3c01(0xe1)][_0x4e3c01(0xdb)]=this[_0x4e3c01(0xdd)][_0x4e3c01(0x107)][_0x4e3c01(0xdb)]=0x0);}else this[_0x4e3c01(0x112)]=this[_0x4e3c01(0x10d)][_0x4e3c01(0xeb)](this[_0x4e3c01(0x101)]),this[_0x4e3c01(0x10e)](_0x4e3c01(0x121),this);}[_0x2cc7b0(0x126)](_0x4be5e3,_0x4a96fa){const _0x228f70=_0x2cc7b0,_0x1424dd=[];for(const _0x1f5bfa of _0x4a96fa){const _0x1eb5f5=_0x4be5e3[_0x1f5bfa[_0x228f70(0xf7)]];_0x1eb5f5?_0x1eb5f5[_0x228f70(0xe7)][_0x228f70(0xdb)]!==_0x1f5bfa[_0x228f70(0xe7)][_0x228f70(0xdb)]?_0x1424dd[_0x228f70(0x114)](_0x1f5bfa):_0x1eb5f5[_0x228f70(0xe7)][_0x228f70(0x11b)]((_0x1ebcee,_0x387442)=>{const _0x4155f9=_0x228f70,_0x40280f=_0x1f5bfa[_0x4155f9(0xe7)][_0x387442];_0x1ebcee['id']!==_0x40280f['id']&&_0x1424dd[_0x4155f9(0x114)](_0x1f5bfa);}):_0x1424dd[_0x228f70(0x114)](_0x1f5bfa);}return _0x1424dd;}[_0x2cc7b0(0x103)](){const _0x1c6049=_0x2cc7b0,_0x48fdf8=new _0x3b3dd3('p',{},[new _0x3b3dd3(_0x1c6049(0xf9),{'style':_0x1c6049(0xfb)},[new _0x20585c(_0x238ef(this[_0x1c6049(0x120)][_0x1c6049(0xfd)],_0x1c6049(0xfe)))])]),_0x23186e=this[_0x1c6049(0x11e)][_0x1c6049(0x104)](this[_0x1c6049(0x112)],this[_0x1c6049(0x10a)][_0x1c6049(0xe0)](!0x0),{'markUnstableElements':!this[_0x1c6049(0xf4)],'replaceRemovedWith':_0x48fdf8,'cutAfterLastChange':!this[_0x1c6049(0xf4)]});if(!_0x23186e[_0x1c6049(0xe2)][_0x1c6049(0xdb)]&&!this[_0x1c6049(0xf4)])return;this[_0x1c6049(0xda)]=_0x23186e[_0x1c6049(0x112)];let _0x396259=[];if(_0x264a4f(_0x204b2d=>{const _0x47ddff=_0x1c6049,_0x3cfb3e=_0x3b92e1(_0x204b2d,_0x47ddff(0x105));if(!_0x3cfb3e||!_0x2b97d4(_0x3cfb3e))return!0x1;const _0x2ab084=[_0x204b2d,..._0x25e81e(_0x204b2d)]['at'](-0x2);if(_0x204b2d!=_0x2ab084){const _0x23d3c1=_0x3b92e1(_0x2ab084,_0x47ddff(0x105));_0x2b97d4(_0x23d3c1)||(_0x396259[_0x47ddff(0x114)]({'node':_0x2ab084,'id':_0x23d3c1,'type':_0x47ddff(0xdc)}),_0x23186e[_0x47ddff(0xe2)][_0x47ddff(0x114)](_0x23d3c1));}else _0x23186e[_0x47ddff(0xe2)][_0x47ddff(0x11a)](_0x3cfb3e)?_0x396259[_0x47ddff(0x114)]({'node':_0x204b2d,'type':_0x47ddff(0xdc),'id':_0x3cfb3e}):_0x23186e[_0x47ddff(0x106)][_0x47ddff(0x11a)](_0x3cfb3e)?_0x396259[_0x47ddff(0x114)]({'node':_0x204b2d,'type':_0x47ddff(0xfa),'id':_0x3cfb3e,'anchorId':_0x3b92e1(_0x204b2d[_0x47ddff(0x10c)],_0x47ddff(0x105))}):_0x396259[_0x47ddff(0x114)]({'node':_0x204b2d,'type':_0x47ddff(0xe8),'id':_0x3cfb3e});return!0x0;},this[_0x1c6049(0xda)]),_0x396259=_0x396259[_0x1c6049(0x108)](({node:_0x56211e})=>[..._0x25e81e(_0x56211e),_0x56211e][_0x1c6049(0xf0)](_0x4bdf90=>!_0x3b92e1(_0x4bdf90,_0x1c6049(0x12a)))),0x0==_0x396259[_0x1c6049(0xdb)])return;const _0x5eaac9=[[_0x396259[0x0]]];for(let _0x13cb33=0x1;_0x13cb33<_0x396259[_0x1c6049(0xdb)];_0x13cb33++){const _0x10115b=_0x5eaac9[_0x5eaac9[_0x1c6049(0xdb)]-0x1],_0x21ff1c=_0x10115b[_0x10115b[_0x1c6049(0xdb)]-0x1];_0x396259[_0x13cb33][_0x1c6049(0xde)][_0x1c6049(0x10c)]==_0x21ff1c[_0x1c6049(0xde)]&&_0x1c6049(0xdc)!=_0x396259[_0x13cb33][_0x1c6049(0xf2)]&&_0x1c6049(0xdc)!=_0x21ff1c[_0x1c6049(0xf2)]?_0x10115b[_0x1c6049(0x114)](_0x396259[_0x13cb33]):_0x5eaac9[_0x1c6049(0x114)]([_0x396259[_0x13cb33]]);}for(const _0x2f90dd of _0x5eaac9){const _0x391217=_0x2f90dd[0x0],_0x5cf045=_0x2f90dd[_0x2f90dd[_0x1c6049(0xdb)]-0x1],_0x32a8ac=_0x582c4b(_0x391217[_0x1c6049(0xde)][_0x1c6049(0x10c)]);_0x32a8ac&&_0x2f90dd[_0x1c6049(0x122)](_0x32a8ac);const _0xe610e=_0x582c4b(_0x5cf045[_0x1c6049(0xde)][_0x1c6049(0xff)]);_0xe610e&&_0x2f90dd[_0x1c6049(0x114)](_0xe610e);}function _0x2b97d4(_0x165e45){const _0x1b047b=_0x1c6049;return _0x23186e[_0x1b047b(0xe2)][_0x1b047b(0x11a)](_0x165e45)||_0x23186e[_0x1b047b(0x106)][_0x1b047b(0x11a)](_0x165e45)||_0x23186e[_0x1b047b(0xe3)][_0x1b047b(0x11a)](_0x165e45);}function _0x582c4b(_0x3b800a){const _0x3d04a6=_0x1c6049;if(_0x3b800a&&_0x3b92e1(_0x3b800a,_0x3d04a6(0x105))&&!_0x3b92e1(_0x3b800a,_0x3d04a6(0x12a))){const _0x1620a6=_0x3b92e1(_0x3b800a,_0x3d04a6(0x105));if(!_0x2b97d4(_0x1620a6))return{'node':_0x3b800a,'type':_0x3d04a6(0x129),'id':_0x1620a6};}return null;}this[_0x1c6049(0x11d)]=_0x5eaac9[_0x1c6049(0x111)]((_0x1ed9e0,_0x18a9fe)=>({'changes':_0x1ed9e0,'state':_0x1c6049(0x127),'index':_0x18a9fe}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4457(){const _0x2e381d=['data-unstable','markUnstableElementsDepth','forEach','_isExistingNode','_insertNodes','afterbegin','modifiedIds','invalidIds','cloneNode','_isDelNode','newIds','882840jrUHHL','reverse','831115KQsgFT','_markUnstableElements','lastTouchedId','new-element','_markWrappedElements','parentNode','_findPrevElementWithDataId','nodeType','merge','previousSibling','lastChild','_markLastTagElementUnstable','_isExistingContentComment','_existingDataIds','slice','data-id','from','length','nextSibling','_storeDeletedElementIds','cutAfterLastChange','_isNewNode','trim','indexOf','_findReferenceNode','_touchedNodesState','true','splice','_removeSpecialComments','map','_findNextElementWithDataId','_getNodeDataId','includes','data-removed','childNodes','_getUid','626679ZtFqJo','match','push','_hasWrappedParent','beforebegin','replaceRemovedWith','markUnstableElements','_generateUid','removedIds','filter','993372XHldSR','329552snfKcA','_replaceNode','afterend','data-wrapped-id','_findFallbackReferenceNode','97950gaOgEz','194895kQSLYs','has'];_0x4457=function(){return _0x2e381d;};return _0x4457();}const _0x5a0b23=_0x3dd7;(function(_0xea7fce,_0xc3224b){const _0x5663a1=_0x3dd7,_0xd34502=_0xea7fce();while(!![]){try{const _0x350211=-parseInt(_0x5663a1(0x1b0))/0x1+parseInt(_0x5663a1(0x1af))/0x2+parseInt(_0x5663a1(0x19f))/0x3+-parseInt(_0x5663a1(0x1aa))/0x4+parseInt(_0x5663a1(0x17b))/0x5+-parseInt(_0x5663a1(0x1a9))/0x6+parseInt(_0x5663a1(0x179))/0x7;if(_0x350211===_0xc3224b)break;else _0xd34502['push'](_0xd34502['shift']());}catch(_0x316287){_0xd34502['push'](_0xd34502['shift']());}}}(_0x4457,0x1a366));function _0x3dd7(_0x145f12,_0x1aa012){const _0x445783=_0x4457();return _0x3dd7=function(_0x3dd798,_0x3d7364){_0x3dd798=_0x3dd798-0x174;let _0xe8a720=_0x445783[_0x3dd798];return _0xe8a720;},_0x3dd7(_0x145f12,_0x1aa012);}import{ObservableMixin as _0x5df2d4,uid as _0x1b29e8}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1add45,findByAttribute as _0x28a82d,getAttribute as _0x1760ca,isComment as _0x2d1d6c,isTag as _0xa02f0b,insertElement as _0x5682ec,moveElement as _0x19a1b5,removeElement as _0x27eb91,replaceElement as _0x5de8be,serialize as _0x396b9e,setAttribute as _0x60dc2,clone as _0x222af6,findAllComments as _0x19fcde,getParents as _0xb2ed4b,getNodeNestingLevel as _0x500bd4,areNodesSame as _0x5e8d5a,removeElementsAfter as _0x117446}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x5df2d4(){[_0x5a0b23(0x1a6)];[_0x5a0b23(0x194)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5a0b23(0x188)]=new Set();constructor(_0x3bfaf9){const _0x3be5aa=_0x5a0b23;super(),this[_0x3be5aa(0x1a6)]=_0x3bfaf9||_0x1b29e8;}[_0x5a0b23(0x183)](_0x29c0d3,_0x479a8b,_0x109bf6){const _0x1da730=_0x5a0b23,_0x27d941=_0x222af6(_0x29c0d3);if(0x0===_0x479a8b[_0x1da730(0x19d)][_0x1da730(0x18c)]){const _0x1cde7c=[];return _0x1add45(_0x1da730(0x18a),_0x1da730(0x17e),_0x27d941)[_0x1da730(0x1b4)](_0x4f84e6=>{const _0x3eca7f=_0x1da730,_0x38e857=this[_0x3eca7f(0x1a6)]();_0x60dc2(_0x4f84e6,_0x3eca7f(0x18a),_0x38e857),_0x1cde7c[_0x3eca7f(0x1a1)](_0x38e857);}),this[_0x1da730(0x197)](_0x27d941),{'parsedContent':_0x27d941,'newNodeIds':_0x1cde7c,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x109bf6&&_0x109bf6[_0x1da730(0x1a5)]&&this[_0x1da730(0x186)](_0x27d941),this[_0x1da730(0x194)][_0x1da730(0x178)]=[],this[_0x1da730(0x194)][_0x1da730(0x174)]=[],this[_0x1da730(0x194)][_0x1da730(0x1a7)]=[],this[_0x1da730(0x194)][_0x1da730(0x175)]=[],this[_0x1da730(0x194)][_0x1da730(0x17d)]=null,this[_0x1da730(0x188)]=new Set(_0x1add45(_0x1da730(0x18a),null,_0x479a8b)[_0x1da730(0x198)](_0x3a4fff=>_0x1760ca(_0x3a4fff,_0x1da730(0x18a)))[_0x1da730(0x1a8)](_0x39dcf3=>!!_0x39dcf3));let _0x5c816e=-0x1,_0xfe49a0=!0x1;const _0x37d1db=_0x27d941[_0x1da730(0x19d)],_0x83bec0=Array[_0x1da730(0x18b)](_0x37d1db)[_0x1da730(0x1a8)](_0xa10663=>!(0x3===_0xa10663[_0x1da730(0x182)]&&''===_0x396b9e(_0xa10663)[_0x1da730(0x191)]())),_0x279134=_0x83bec0[_0x1da730(0x18c)];for(let _0x8a6a7c=0x0;_0x8a6a7c<_0x279134;_0x8a6a7c++){const _0x4609a0=_0x83bec0[_0x8a6a7c],_0x3b1e28=_0x83bec0[_0x8a6a7c+0x1];if(this[_0x1da730(0x190)](_0x4609a0)){if(-0x1===_0x5c816e&&(_0x5c816e=_0x8a6a7c),this[_0x1da730(0x17f)](_0x4609a0),!this[_0x1da730(0x190)](_0x3b1e28)){const [_0x4d3fe5,_0x333f00]=this[_0x1da730(0x193)](_0x4609a0,_0xfe49a0,_0x479a8b);if(_0x4d3fe5){const _0x468c29=Array[_0x1da730(0x18b)](_0x83bec0)[_0x1da730(0x189)](_0x5c816e,_0x8a6a7c+0x1);this[_0x1da730(0x1b6)](_0x4d3fe5,_0x468c29,_0x333f00),_0x5c816e=-0x1;}}}else{if(this[_0x1da730(0x187)](_0x4609a0))_0xfe49a0=!0x0;else{if(this[_0x1da730(0x1b5)](_0x4609a0)){const _0x34434f=_0x1760ca(_0x4609a0,_0x1da730(0x18a));if(_0x34434f&&this[_0x1da730(0x188)][_0x1da730(0x1b1)](_0x34434f)){const _0x46c5fe=_0x28a82d(_0x1da730(0x18a),_0x34434f,_0x479a8b);this[_0x1da730(0x1ab)](_0x46c5fe,_0x4609a0);}if(this[_0x1da730(0x194)][_0x1da730(0x1a7)][_0x1da730(0x19b)](_0x34434f)){const _0x11fde8=this[_0x1da730(0x194)][_0x1da730(0x1a7)][_0x1da730(0x192)](_0x34434f);this[_0x1da730(0x194)][_0x1da730(0x1a7)][_0x1da730(0x196)](_0x11fde8,0x1);}}else{if(this[_0x1da730(0x177)](_0x4609a0)){const _0x42e5df=_0x1760ca(_0x4609a0,_0x1da730(0x18a));this[_0x1da730(0x194)][_0x1da730(0x174)][_0x1da730(0x19b)](_0x42e5df)||this[_0x1da730(0x18e)](_0x4609a0);}}}}}for(const _0x301a6d of this[_0x1da730(0x194)][_0x1da730(0x1a7)]){const _0x274464=_0x28a82d(_0x1da730(0x18a),_0x301a6d,_0x479a8b);if(_0x274464){if(_0x109bf6&&_0x109bf6[_0x1da730(0x1a4)]){this[_0x1da730(0x194)][_0x1da730(0x17d)]=_0x301a6d;const _0x33b347=_0x109bf6[_0x1da730(0x1a4)][_0x1da730(0x176)](!0x0);_0x60dc2(_0x33b347,_0x1da730(0x18a),_0x301a6d),_0x60dc2(_0x33b347,_0x1da730(0x19c),_0x1da730(0x195)),_0x5de8be(_0x274464,_0x33b347);}else _0x27eb91(_0x274464);}}if(_0x1add45(_0x1da730(0x1ad),null,_0x479a8b)[_0x1da730(0x1b4)](_0x1d2ebf=>{const _0x6642eb=_0x1da730,_0x492eb4=_0x1760ca(_0x1d2ebf,_0x6642eb(0x1ad)),_0x26f61e=_0x28a82d(_0x6642eb(0x18a),_0x492eb4,_0x479a8b);_0x26f61e&&_0x19a1b5(_0x26f61e,_0x1d2ebf);}),_0x1add45(_0x1da730(0x18a),_0x1da730(0x17e),_0x479a8b)[_0x1da730(0x1b4)](_0x500a2c=>{const _0x4ea5d1=_0x1da730,_0x505588=this[_0x4ea5d1(0x19e)](_0x500a2c);_0x60dc2(_0x500a2c,_0x4ea5d1(0x18a),_0x505588),this[_0x4ea5d1(0x194)][_0x4ea5d1(0x178)][_0x4ea5d1(0x1a1)](_0x505588);}),this[_0x1da730(0x197)](_0x479a8b),_0x109bf6&&_0x109bf6[_0x1da730(0x1a5)]&&this[_0x1da730(0x17c)](_0x479a8b,_0x109bf6[_0x1da730(0x1b3)]||0x0),_0x109bf6&&_0x109bf6[_0x1da730(0x18f)]&&this[_0x1da730(0x194)][_0x1da730(0x17d)]){let _0x33b458=_0x28a82d(_0x1da730(0x18a),this[_0x1da730(0x194)][_0x1da730(0x17d)],_0x479a8b);for(;_0x33b458;)_0x117446(_0x33b458),_0x33b458=_0x33b458[_0x1da730(0x180)];}return{'parsedContent':_0x479a8b,'newNodeIds':this[_0x1da730(0x194)][_0x1da730(0x178)],'modifiedNodeIds':this[_0x1da730(0x194)][_0x1da730(0x174)],'removedNodeIds':this[_0x1da730(0x194)][_0x1da730(0x1a7)]};}[_0x5a0b23(0x1b6)](_0x22c6e0,_0x11bfc7,_0x598727){const _0x270b98=_0x5a0b23;for(const _0xb0ec33 of _0x11bfc7){const _0x260748=this[_0x270b98(0x19e)](_0xb0ec33);_0x60dc2(_0xb0ec33,_0x270b98(0x18a),_0x260748),this[_0x270b98(0x194)][_0x270b98(0x178)][_0x270b98(0x1a1)](_0x260748),this[_0x270b98(0x194)][_0x270b98(0x17d)]=_0x260748;}const _0x2dcf50=_0x270b98(0x1b7)===_0x598727||_0x270b98(0x1ac)===_0x598727?_0x11bfc7[_0x270b98(0x17a)]():_0x11bfc7;for(const _0x2fa492 of _0x2dcf50)_0x5682ec(_0x22c6e0,_0x2fa492,_0x598727);}[_0x5a0b23(0x1ab)](_0x286b67,_0x5cea6){const _0x19c0a1=_0x5a0b23;if(!_0x286b67)return;if(_0x5e8d5a(_0x286b67,_0x5cea6))return;const _0x35b66b=this[_0x19c0a1(0x19e)](_0x286b67);_0x60dc2(_0x5cea6,_0x19c0a1(0x18a),_0x35b66b),this[_0x19c0a1(0x194)][_0x19c0a1(0x174)][_0x19c0a1(0x1a1)](_0x35b66b),this[_0x19c0a1(0x194)][_0x19c0a1(0x17d)]=_0x35b66b,_0x5de8be(_0x286b67,_0x5cea6[_0x19c0a1(0x176)](!0x0));}[_0x5a0b23(0x193)](_0x5cd6b9,_0x1b7180,_0x41c767){const _0x325309=_0x5a0b23,_0x35df95=this[_0x325309(0x181)](_0x5cd6b9,!0x1);if(_0x35df95){const _0x350bd6=this[_0x325309(0x19a)](_0x35df95),_0x87da5c=_0x28a82d(_0x325309(0x18a),_0x350bd6,_0x41c767);if(_0x87da5c)return[_0x87da5c,_0x325309(0x1ac)];this[_0x325309(0x194)][_0x325309(0x175)][_0x325309(0x1a1)](_0x350bd6);}const _0x1597a3=this[_0x325309(0x199)](_0x5cd6b9,!0x1);if(_0x1597a3){const _0x31ed70=this[_0x325309(0x19a)](_0x1597a3),_0x2689fe=_0x28a82d(_0x325309(0x18a),_0x31ed70,_0x41c767);if(_0x2689fe)return[_0x2689fe,_0x325309(0x1a3)];this[_0x325309(0x194)][_0x325309(0x175)][_0x325309(0x1a1)](_0x31ed70);}return _0x1b7180?_0x5cd6b9[_0x325309(0x18d)]?this[_0x325309(0x1ae)](_0x5cd6b9,_0x41c767):[_0x41c767[_0x325309(0x19d)][_0x41c767[_0x325309(0x19d)][_0x325309(0x18c)]-0x1],_0x325309(0x1ac)]:[_0x41c767[_0x325309(0x19d)][0x0],_0x325309(0x1a3)];}[_0x5a0b23(0x1ae)](_0x544cf8,_0x38bd76){const _0x39f0a5=_0x5a0b23,_0x18d8e8=[],_0x414461=this[_0x39f0a5(0x181)](_0x544cf8,!0x0);if(_0x414461){const _0x1fe5bb=this[_0x39f0a5(0x19a)](_0x414461),_0x1737c3=_0x28a82d(_0x39f0a5(0x18a),_0x1fe5bb,_0x38bd76);_0x1737c3&&_0x18d8e8[_0x39f0a5(0x1a1)]([_0x1737c3,_0x39f0a5(0x1ac)]);}const _0x17bac=this[_0x39f0a5(0x199)](_0x544cf8,!0x0);if(_0x17bac){const _0x12de42=this[_0x39f0a5(0x19a)](_0x17bac),_0x3db15a=_0x28a82d(_0x39f0a5(0x18a),_0x12de42,_0x38bd76);_0x3db15a&&_0x18d8e8[_0x39f0a5(0x1a1)]([_0x3db15a,_0x39f0a5(0x1a3)]);}if(_0x18d8e8[_0x39f0a5(0x18c)]>0x1)return _0x500bd4(_0x18d8e8[0x0][0x0])<=_0x500bd4(_0x18d8e8[0x1][0x0])?_0x18d8e8[0x0]:_0x18d8e8[0x1];return 0x1===_0x18d8e8[_0x39f0a5(0x18c)]?_0x18d8e8[0x0]:[_0x38bd76[_0x39f0a5(0x185)],_0x39f0a5(0x1ac)];}[_0x5a0b23(0x199)](_0x366ffe,_0x5a4473){const _0x2bc57b=_0x5a0b23;let _0x801b18=_0x366ffe[_0x2bc57b(0x18d)],_0x54a240=null,_0x124246=!0x1;for(;_0x801b18;){if(_0x2d1d6c(_0x801b18)){if(this[_0x2bc57b(0x177)](_0x801b18)&&(_0x54a240=_0x801b18),this[_0x2bc57b(0x187)](_0x801b18)&&_0x5a4473&&!_0x124246){_0x124246=!0x0,_0x801b18=_0x801b18[_0x2bc57b(0x18d)];continue;}break;}const _0x208d83=_0x1760ca(_0x801b18,_0x2bc57b(0x18a));if(_0x208d83&&_0x2bc57b(0x17e)!==_0x208d83&&this[_0x2bc57b(0x188)][_0x2bc57b(0x1b1)](_0x208d83)){_0x54a240=_0x801b18;break;}_0x801b18=_0x801b18[_0x2bc57b(0x18d)];}return _0x54a240;}[_0x5a0b23(0x181)](_0xc5e2ee,_0xd4ad8){const _0x771642=_0x5a0b23;let _0x52e02b=_0xc5e2ee[_0x771642(0x184)],_0x431905=null,_0x5286a0=!0x1;for(;_0x52e02b;){if(_0x2d1d6c(_0x52e02b)){if(this[_0x771642(0x177)](_0x52e02b)&&(_0x431905=_0x52e02b),this[_0x771642(0x187)](_0x52e02b)&&_0xd4ad8&&!_0x5286a0){_0x5286a0=!0x0,_0x52e02b=_0x52e02b[_0x771642(0x184)];continue;}break;}const _0x4b2727=_0x1760ca(_0x52e02b,_0x771642(0x18a));if(_0x4b2727&&_0x771642(0x17e)!==_0x4b2727&&this[_0x771642(0x188)][_0x771642(0x1b1)](_0x4b2727)){_0x431905=_0x52e02b;break;}_0x52e02b=_0x52e02b[_0x771642(0x184)];}return _0x431905;}[_0x5a0b23(0x17f)](_0x4a6019){const _0x4faf5d=_0x5a0b23;_0xa02f0b(_0x4a6019)&&_0x1add45(_0x4faf5d(0x18a),null,_0x4a6019)[_0x4faf5d(0x1b4)](_0x15c246=>{const _0x1527eb=_0x4faf5d;if(this[_0x1527eb(0x1b5)](_0x15c246)&&!this[_0x1527eb(0x1a2)](_0x15c246)){const _0x229032=_0x1760ca(_0x15c246,_0x1527eb(0x18a));_0x60dc2(_0x15c246,_0x1527eb(0x1ad),_0x229032),_0x60dc2(_0x15c246,_0x1527eb(0x18a),null);}});}[_0x5a0b23(0x19a)](_0x42c615){const _0x30f590=_0x5a0b23;if(!_0x42c615)return null;if(_0xa02f0b(_0x42c615))return _0x1760ca(_0x42c615,_0x30f590(0x18a));if(_0x2d1d6c(_0x42c615)){const _0x6daf37=_0x396b9e(_0x42c615)[_0x30f590(0x1a0)](/removed[\s*-]data-id="([^"]+)"/);if(_0x6daf37&&_0x6daf37[0x1])return _0x6daf37[0x1];}return null;}[_0x5a0b23(0x18e)](_0x51dd6b){const _0x295d48=_0x5a0b23;if(_0x2d1d6c(_0x51dd6b)){const _0x44f909=_0x396b9e(_0x51dd6b)[_0x295d48(0x1a0)](/removed[\s*-]data-id="([^"]+)"/);_0x44f909&&_0x44f909[0x1]&&this[_0x295d48(0x194)][_0x295d48(0x1a7)][_0x295d48(0x1a1)](_0x44f909[0x1]);}}[_0x5a0b23(0x19e)](_0xf7b68){const _0x13195d=_0x5a0b23;return this[_0x13195d(0x1b5)](_0xf7b68)?_0x1760ca(_0xf7b68,_0x13195d(0x18a)):this[_0x13195d(0x1a6)]();}[_0x5a0b23(0x197)](_0x29b9b2){const _0x2bb088=_0x5a0b23;_0x19fcde(_0x29b9b2)[_0x2bb088(0x1a8)](_0x4aa338=>this[_0x2bb088(0x177)](_0x4aa338)||this[_0x2bb088(0x187)](_0x4aa338))[_0x2bb088(0x1b4)](_0x4a086e=>{_0x27eb91(_0x4a086e);});}[_0x5a0b23(0x186)](_0x297a11){const _0x1debdc=_0x5a0b23,_0x1df37a=_0x297a11[_0x1debdc(0x19d)],_0x4be9ac=_0x1df37a[_0x1df37a[_0x1debdc(0x18c)]-0x1];_0x4be9ac&&_0xa02f0b(_0x4be9ac)&&_0x60dc2(_0x4be9ac,_0x1debdc(0x1b2),_0x1debdc(0x195));}[_0x5a0b23(0x17c)](_0x1df517,_0x4666f0){const _0x2070fd=_0x5a0b23,_0xfb5ecb=_0x28a82d(_0x2070fd(0x1b2),_0x2070fd(0x195),_0x1df517);if(!_0xfb5ecb)return;const _0xf430b2=_0xb2ed4b(_0xfb5ecb)[_0x2070fd(0x189)](0x0,-0x1),_0x173570=_0xf430b2[_0x2070fd(0x18c)];let _0x3f9f1c=_0xfb5ecb;if(_0x173570>_0x4666f0){let _0x3b3b31=_0x173570,_0xddbf1a=null;for(;_0x3b3b31>_0x4666f0&&_0x3b3b31>=0x0;)_0x3b3b31--,_0xddbf1a=_0xf430b2[_0x3b3b31];_0xddbf1a&&(_0x3f9f1c=_0xddbf1a,_0x60dc2(_0xfb5ecb,_0x2070fd(0x1b2),null),_0x60dc2(_0xddbf1a,_0x2070fd(0x1b2),_0x2070fd(0x195)));}else{if(_0x173570<_0x4666f0){let _0x543542=_0x173570,_0x59d8d5=_0xfb5ecb;for(;_0x543542<_0x4666f0;){const _0x42f9a5=_0x59d8d5[_0x2070fd(0x19d)][_0x2070fd(0x1a8)](_0x52e8aa=>_0xa02f0b(_0x52e8aa));if(0x0===_0x42f9a5[_0x2070fd(0x18c)])break;_0x543542++,_0x59d8d5=_0x42f9a5[_0x42f9a5[_0x2070fd(0x18c)]-0x1];}_0x59d8d5&&(_0x3f9f1c=_0x59d8d5,_0x60dc2(_0xfb5ecb,_0x2070fd(0x1b2),null),_0x60dc2(_0x59d8d5,_0x2070fd(0x1b2),_0x2070fd(0x195)));}}let _0x9f824b=_0x3f9f1c;for(;_0x9f824b;){for(;_0x9f824b[_0x2070fd(0x18d)];)_0x9f824b=_0x9f824b[_0x2070fd(0x18d)],_0xa02f0b(_0x9f824b)&&_0x60dc2(_0x9f824b,_0x2070fd(0x1b2),_0x2070fd(0x195));_0x9f824b=_0x9f824b[_0x2070fd(0x180)];}}[_0x5a0b23(0x190)](_0x441bf6){const _0x41e534=_0x5a0b23;return Boolean(_0x41e534(0x17e)===_0x1760ca(_0x441bf6,_0x41e534(0x18a)));}[_0x5a0b23(0x1b5)](_0x38af3){const _0x15a03d=_0x5a0b23;return Boolean((_0x1760ca(_0x38af3,_0x15a03d(0x18a))||'')[_0x15a03d(0x18c)]>0x0&&_0x15a03d(0x17e)!==_0x1760ca(_0x38af3,_0x15a03d(0x18a)));}[_0x5a0b23(0x177)](_0x1be541){const _0x48acbf=_0x5a0b23;return!!_0x1be541&&Boolean(_0x2d1d6c(_0x1be541)&&_0x396b9e(_0x1be541)[_0x48acbf(0x1a0)](/removed[\s*-]data-id="[^"]+"/));}[_0x5a0b23(0x1a2)](_0x4df729){const _0x315e8=_0x5a0b23;let _0x2d5768=_0x4df729[_0x315e8(0x180)];for(;_0x2d5768;){if(_0x1760ca(_0x2d5768,_0x315e8(0x1ad)))return!0x0;_0x2d5768=_0x2d5768[_0x315e8(0x180)];}return!0x1;}[_0x5a0b23(0x187)](_0x254e6a){const _0x56cf85=_0x5a0b23;return Boolean(_0x2d1d6c(_0x254e6a)&&_0x396b9e(_0x254e6a)[_0x56cf85(0x1a0)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x115057=_0x1600;(function(_0x5d9132,_0x5eb829){const _0x41cb6a=_0x1600,_0x24539e=_0x5d9132();while(!![]){try{const _0x2af8ec=parseInt(_0x41cb6a(0x172))/0x1*(parseInt(_0x41cb6a(0x18f))/0x2)+parseInt(_0x41cb6a(0x187))/0x3*(-parseInt(_0x41cb6a(0x198))/0x4)+-parseInt(_0x41cb6a(0x178))/0x5*(-parseInt(_0x41cb6a(0x189))/0x6)+parseInt(_0x41cb6a(0x184))/0x7*(parseInt(_0x41cb6a(0x1a2))/0x8)+-parseInt(_0x41cb6a(0x193))/0x9*(-parseInt(_0x41cb6a(0x16f))/0xa)+parseInt(_0x41cb6a(0x176))/0xb+-parseInt(_0x41cb6a(0x177))/0xc;if(_0x2af8ec===_0x5eb829)break;else _0x24539e['push'](_0x24539e['shift']());}catch(_0x2284f8){_0x24539e['push'](_0x24539e['shift']());}}}(_0x5e5f,0xadc40));import{ObservableMixin as _0x1777c6,uid as _0xf48425}from'ckeditor5/src/utils.js';function _0x5e5f(){const _0x8a8265=['_getNodeDataId','_markUnstableElements','_isExistingNode','_markWrappedElements','true','14666zuuJCf','indexOf','childNodes','match','1637253opqqgn','invalidIds','_removeSpecialComments','afterbegin','cloneNode','8RnwyBc','parentNode','push','has','map','includes','removedIds','_getUid','data-id','slice','10325320iLIQGZ','nodeType','length','modifiedIds','_existingDataIds','newIds','_findReferenceNode','from','data-wrapped-id','_hasWrappedParent','nextSibling','_findNextElementWithDataId','_findFallbackReferenceNode','markUnstableElementsDepth','data-removed','afterend','merge','_generateUid','cutAfterLastChange','reverse','previousSibling','_storeDeletedElementIds','70vFZQlJ','lastTouchedId','beforebegin','13wBnBfv','_insertNodes','_isExistingContentComment','data-unstable','3303080tofvyQ','19297776cwFEKn','17155iuOTKv','forEach','_touchedNodesState','markUnstableElements','lastChild','_findPrevElementWithDataId','_markLastTagElementUnstable','trim','_isDelNode','_replaceNode','replaceRemovedWith','_isNewNode','7omgLXY','splice','new-element','985434TKtrTJ','filter','30qQbfpX'];_0x5e5f=function(){return _0x8a8265;};return _0x5e5f();}import{findAllByAttribute as _0x379d9a,findByAttribute as _0x1e9add,getAttribute as _0xd1db17,isComment as _0x1af7af,isTag as _0x3b79d7,insertElement as _0x4bb615,moveElement as _0x4bb378,removeElement as _0x3fea47,replaceElement as _0x4f21f,serialize as _0x33dc0b,setAttribute as _0x552f9c,clone as _0x5b7068,findAllComments as _0x432059,getParents as _0x2d5010,getNodeNestingLevel as _0x1c92ea,areNodesSame as _0x32bff0,removeElementsAfter as _0x1ee0c6}from'../utils/htmlparser.js';function _0x1600(_0x34290d,_0x334104){const _0x5e5fb6=_0x5e5f();return _0x1600=function(_0x16000a,_0x234811){_0x16000a=_0x16000a-0x161;let _0x39cffd=_0x5e5fb6[_0x16000a];return _0x39cffd;},_0x1600(_0x34290d,_0x334104);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x1777c6(){[_0x115057(0x16a)];[_0x115057(0x17a)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x115057(0x1a6)]=new Set();constructor(_0x151a4d){const _0x51f4f8=_0x115057;super(),this[_0x51f4f8(0x16a)]=_0x151a4d||_0xf48425;}[_0x115057(0x169)](_0xa11859,_0x16f524,_0x2c8a50){const _0x297125=_0x115057,_0x83dcd7=_0x5b7068(_0xa11859);if(0x0===_0x16f524[_0x297125(0x191)][_0x297125(0x1a4)]){const _0x320c9b=[];return _0x379d9a(_0x297125(0x1a0),_0x297125(0x186),_0x83dcd7)[_0x297125(0x179)](_0x1b83f0=>{const _0x295125=_0x297125,_0x24a4d8=this[_0x295125(0x16a)]();_0x552f9c(_0x1b83f0,_0x295125(0x1a0),_0x24a4d8),_0x320c9b[_0x295125(0x19a)](_0x24a4d8);}),this[_0x297125(0x195)](_0x83dcd7),{'parsedContent':_0x83dcd7,'newNodeIds':_0x320c9b,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2c8a50&&_0x2c8a50[_0x297125(0x17b)]&&this[_0x297125(0x17e)](_0x83dcd7),this[_0x297125(0x17a)][_0x297125(0x1a7)]=[],this[_0x297125(0x17a)][_0x297125(0x1a5)]=[],this[_0x297125(0x17a)][_0x297125(0x19e)]=[],this[_0x297125(0x17a)][_0x297125(0x194)]=[],this[_0x297125(0x17a)][_0x297125(0x170)]=null,this[_0x297125(0x1a6)]=new Set(_0x379d9a(_0x297125(0x1a0),null,_0x16f524)[_0x297125(0x19c)](_0x5cd8e0=>_0xd1db17(_0x5cd8e0,_0x297125(0x1a0)))[_0x297125(0x188)](_0x53ddf9=>!!_0x53ddf9));let _0x4fe9ba=-0x1,_0xdb360a=!0x1;const _0x1bcffb=_0x83dcd7[_0x297125(0x191)],_0x845694=Array[_0x297125(0x1a9)](_0x1bcffb)[_0x297125(0x188)](_0x572515=>!(0x3===_0x572515[_0x297125(0x1a3)]&&''===_0x33dc0b(_0x572515)[_0x297125(0x17f)]())),_0x4e27f5=_0x845694[_0x297125(0x1a4)];for(let _0x32bdd4=0x0;_0x32bdd4<_0x4e27f5;_0x32bdd4++){const _0x8daf9f=_0x845694[_0x32bdd4],_0x539774=_0x845694[_0x32bdd4+0x1];if(this[_0x297125(0x183)](_0x8daf9f)){if(-0x1===_0x4fe9ba&&(_0x4fe9ba=_0x32bdd4),this[_0x297125(0x18d)](_0x8daf9f),!this[_0x297125(0x183)](_0x539774)){const [_0x1b9873,_0x35f187]=this[_0x297125(0x1a8)](_0x8daf9f,_0xdb360a,_0x16f524);if(_0x1b9873){const _0x170813=Array[_0x297125(0x1a9)](_0x845694)[_0x297125(0x1a1)](_0x4fe9ba,_0x32bdd4+0x1);this[_0x297125(0x173)](_0x1b9873,_0x170813,_0x35f187),_0x4fe9ba=-0x1;}}}else{if(this[_0x297125(0x174)](_0x8daf9f))_0xdb360a=!0x0;else{if(this[_0x297125(0x18c)](_0x8daf9f)){const _0x546fac=_0xd1db17(_0x8daf9f,_0x297125(0x1a0));if(_0x546fac&&this[_0x297125(0x1a6)][_0x297125(0x19b)](_0x546fac)){const _0x502d16=_0x1e9add(_0x297125(0x1a0),_0x546fac,_0x16f524);this[_0x297125(0x181)](_0x502d16,_0x8daf9f);}if(this[_0x297125(0x17a)][_0x297125(0x19e)][_0x297125(0x19d)](_0x546fac)){const _0x245f8f=this[_0x297125(0x17a)][_0x297125(0x19e)][_0x297125(0x190)](_0x546fac);this[_0x297125(0x17a)][_0x297125(0x19e)][_0x297125(0x185)](_0x245f8f,0x1);}}else{if(this[_0x297125(0x180)](_0x8daf9f)){const _0x282dea=_0xd1db17(_0x8daf9f,_0x297125(0x1a0));this[_0x297125(0x17a)][_0x297125(0x1a5)][_0x297125(0x19d)](_0x282dea)||this[_0x297125(0x16e)](_0x8daf9f);}}}}}for(const _0x41c441 of this[_0x297125(0x17a)][_0x297125(0x19e)]){const _0xd6fe16=_0x1e9add(_0x297125(0x1a0),_0x41c441,_0x16f524);if(_0xd6fe16){if(_0x2c8a50&&_0x2c8a50[_0x297125(0x182)]){this[_0x297125(0x17a)][_0x297125(0x170)]=_0x41c441;const _0x4d7674=_0x2c8a50[_0x297125(0x182)][_0x297125(0x197)](!0x0);_0x552f9c(_0x4d7674,_0x297125(0x1a0),_0x41c441),_0x552f9c(_0x4d7674,_0x297125(0x167),_0x297125(0x18e)),_0x4f21f(_0xd6fe16,_0x4d7674);}else _0x3fea47(_0xd6fe16);}}if(_0x379d9a(_0x297125(0x161),null,_0x16f524)[_0x297125(0x179)](_0x4014a2=>{const _0x311c2a=_0x297125,_0x250d33=_0xd1db17(_0x4014a2,_0x311c2a(0x161)),_0x2f317f=_0x1e9add(_0x311c2a(0x1a0),_0x250d33,_0x16f524);_0x2f317f&&_0x4bb378(_0x2f317f,_0x4014a2);}),_0x379d9a(_0x297125(0x1a0),_0x297125(0x186),_0x16f524)[_0x297125(0x179)](_0x4d4733=>{const _0x17770c=_0x297125,_0x41f373=this[_0x17770c(0x19f)](_0x4d4733);_0x552f9c(_0x4d4733,_0x17770c(0x1a0),_0x41f373),this[_0x17770c(0x17a)][_0x17770c(0x1a7)][_0x17770c(0x19a)](_0x41f373);}),this[_0x297125(0x195)](_0x16f524),_0x2c8a50&&_0x2c8a50[_0x297125(0x17b)]&&this[_0x297125(0x18b)](_0x16f524,_0x2c8a50[_0x297125(0x166)]||0x0),_0x2c8a50&&_0x2c8a50[_0x297125(0x16b)]&&this[_0x297125(0x17a)][_0x297125(0x170)]){let _0x13421d=_0x1e9add(_0x297125(0x1a0),this[_0x297125(0x17a)][_0x297125(0x170)],_0x16f524);for(;_0x13421d;)_0x1ee0c6(_0x13421d),_0x13421d=_0x13421d[_0x297125(0x199)];}return{'parsedContent':_0x16f524,'newNodeIds':this[_0x297125(0x17a)][_0x297125(0x1a7)],'modifiedNodeIds':this[_0x297125(0x17a)][_0x297125(0x1a5)],'removedNodeIds':this[_0x297125(0x17a)][_0x297125(0x19e)]};}[_0x115057(0x173)](_0x3346fb,_0xb6cb02,_0x47cdd5){const _0x18c945=_0x115057;for(const _0x2c4e41 of _0xb6cb02){const _0x2ab064=this[_0x18c945(0x19f)](_0x2c4e41);_0x552f9c(_0x2c4e41,_0x18c945(0x1a0),_0x2ab064),this[_0x18c945(0x17a)][_0x18c945(0x1a7)][_0x18c945(0x19a)](_0x2ab064),this[_0x18c945(0x17a)][_0x18c945(0x170)]=_0x2ab064;}const _0x434add=_0x18c945(0x196)===_0x47cdd5||_0x18c945(0x168)===_0x47cdd5?_0xb6cb02[_0x18c945(0x16c)]():_0xb6cb02;for(const _0x3a7801 of _0x434add)_0x4bb615(_0x3346fb,_0x3a7801,_0x47cdd5);}[_0x115057(0x181)](_0x415160,_0x2c8201){const _0x1d3446=_0x115057;if(!_0x415160)return;if(_0x32bff0(_0x415160,_0x2c8201))return;const _0xf5f3f4=this[_0x1d3446(0x19f)](_0x415160);_0x552f9c(_0x2c8201,_0x1d3446(0x1a0),_0xf5f3f4),this[_0x1d3446(0x17a)][_0x1d3446(0x1a5)][_0x1d3446(0x19a)](_0xf5f3f4),this[_0x1d3446(0x17a)][_0x1d3446(0x170)]=_0xf5f3f4,_0x4f21f(_0x415160,_0x2c8201[_0x1d3446(0x197)](!0x0));}[_0x115057(0x1a8)](_0xa5d99b,_0xc119a4,_0x5b3783){const _0x2a690a=_0x115057,_0x286975=this[_0x2a690a(0x17d)](_0xa5d99b,!0x1);if(_0x286975){const _0x23420e=this[_0x2a690a(0x18a)](_0x286975),_0x2bb3ac=_0x1e9add(_0x2a690a(0x1a0),_0x23420e,_0x5b3783);if(_0x2bb3ac)return[_0x2bb3ac,_0x2a690a(0x168)];this[_0x2a690a(0x17a)][_0x2a690a(0x194)][_0x2a690a(0x19a)](_0x23420e);}const _0x1d6cf6=this[_0x2a690a(0x164)](_0xa5d99b,!0x1);if(_0x1d6cf6){const _0x5257f2=this[_0x2a690a(0x18a)](_0x1d6cf6),_0x47daf5=_0x1e9add(_0x2a690a(0x1a0),_0x5257f2,_0x5b3783);if(_0x47daf5)return[_0x47daf5,_0x2a690a(0x171)];this[_0x2a690a(0x17a)][_0x2a690a(0x194)][_0x2a690a(0x19a)](_0x5257f2);}return _0xc119a4?_0xa5d99b[_0x2a690a(0x163)]?this[_0x2a690a(0x165)](_0xa5d99b,_0x5b3783):[_0x5b3783[_0x2a690a(0x191)][_0x5b3783[_0x2a690a(0x191)][_0x2a690a(0x1a4)]-0x1],_0x2a690a(0x168)]:[_0x5b3783[_0x2a690a(0x191)][0x0],_0x2a690a(0x171)];}[_0x115057(0x165)](_0x9548c,_0xa9dfab){const _0x1df03e=_0x115057,_0x48c8db=[],_0x2b524d=this[_0x1df03e(0x17d)](_0x9548c,!0x0);if(_0x2b524d){const _0x2e39b6=this[_0x1df03e(0x18a)](_0x2b524d),_0x8ea95f=_0x1e9add(_0x1df03e(0x1a0),_0x2e39b6,_0xa9dfab);_0x8ea95f&&_0x48c8db[_0x1df03e(0x19a)]([_0x8ea95f,_0x1df03e(0x168)]);}const _0x227034=this[_0x1df03e(0x164)](_0x9548c,!0x0);if(_0x227034){const _0x39e24d=this[_0x1df03e(0x18a)](_0x227034),_0x594bbe=_0x1e9add(_0x1df03e(0x1a0),_0x39e24d,_0xa9dfab);_0x594bbe&&_0x48c8db[_0x1df03e(0x19a)]([_0x594bbe,_0x1df03e(0x171)]);}if(_0x48c8db[_0x1df03e(0x1a4)]>0x1)return _0x1c92ea(_0x48c8db[0x0][0x0])<=_0x1c92ea(_0x48c8db[0x1][0x0])?_0x48c8db[0x0]:_0x48c8db[0x1];return 0x1===_0x48c8db[_0x1df03e(0x1a4)]?_0x48c8db[0x0]:[_0xa9dfab[_0x1df03e(0x17c)],_0x1df03e(0x168)];}[_0x115057(0x164)](_0x41b0af,_0x514b50){const _0x4c8fef=_0x115057;let _0x2b2edd=_0x41b0af[_0x4c8fef(0x163)],_0x5a18a5=null,_0x5db5a7=!0x1;for(;_0x2b2edd;){if(_0x1af7af(_0x2b2edd)){if(this[_0x4c8fef(0x180)](_0x2b2edd)&&(_0x5a18a5=_0x2b2edd),this[_0x4c8fef(0x174)](_0x2b2edd)&&_0x514b50&&!_0x5db5a7){_0x5db5a7=!0x0,_0x2b2edd=_0x2b2edd[_0x4c8fef(0x163)];continue;}break;}const _0x3457a0=_0xd1db17(_0x2b2edd,_0x4c8fef(0x1a0));if(_0x3457a0&&_0x4c8fef(0x186)!==_0x3457a0&&this[_0x4c8fef(0x1a6)][_0x4c8fef(0x19b)](_0x3457a0)){_0x5a18a5=_0x2b2edd;break;}_0x2b2edd=_0x2b2edd[_0x4c8fef(0x163)];}return _0x5a18a5;}[_0x115057(0x17d)](_0x368f9d,_0x43e7ec){const _0x306276=_0x115057;let _0xed5c80=_0x368f9d[_0x306276(0x16d)],_0x407cdc=null,_0x41242b=!0x1;for(;_0xed5c80;){if(_0x1af7af(_0xed5c80)){if(this[_0x306276(0x180)](_0xed5c80)&&(_0x407cdc=_0xed5c80),this[_0x306276(0x174)](_0xed5c80)&&_0x43e7ec&&!_0x41242b){_0x41242b=!0x0,_0xed5c80=_0xed5c80[_0x306276(0x16d)];continue;}break;}const _0x169aeb=_0xd1db17(_0xed5c80,_0x306276(0x1a0));if(_0x169aeb&&_0x306276(0x186)!==_0x169aeb&&this[_0x306276(0x1a6)][_0x306276(0x19b)](_0x169aeb)){_0x407cdc=_0xed5c80;break;}_0xed5c80=_0xed5c80[_0x306276(0x16d)];}return _0x407cdc;}[_0x115057(0x18d)](_0x125a37){const _0x3b649d=_0x115057;_0x3b79d7(_0x125a37)&&_0x379d9a(_0x3b649d(0x1a0),null,_0x125a37)[_0x3b649d(0x179)](_0x273d7d=>{const _0x3a9203=_0x3b649d;if(this[_0x3a9203(0x18c)](_0x273d7d)&&!this[_0x3a9203(0x162)](_0x273d7d)){const _0x125755=_0xd1db17(_0x273d7d,_0x3a9203(0x1a0));_0x552f9c(_0x273d7d,_0x3a9203(0x161),_0x125755),_0x552f9c(_0x273d7d,_0x3a9203(0x1a0),null);}});}[_0x115057(0x18a)](_0x2ad241){const _0x1a0381=_0x115057;if(!_0x2ad241)return null;if(_0x3b79d7(_0x2ad241))return _0xd1db17(_0x2ad241,_0x1a0381(0x1a0));if(_0x1af7af(_0x2ad241)){const _0x4c7e22=_0x33dc0b(_0x2ad241)[_0x1a0381(0x192)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4c7e22&&_0x4c7e22[0x1])return _0x4c7e22[0x1];}return null;}[_0x115057(0x16e)](_0x48450b){const _0x4e9237=_0x115057;if(_0x1af7af(_0x48450b)){const _0x1d147f=_0x33dc0b(_0x48450b)[_0x4e9237(0x192)](/removed[\s*-]data-id="([^"]+)"/);_0x1d147f&&_0x1d147f[0x1]&&this[_0x4e9237(0x17a)][_0x4e9237(0x19e)][_0x4e9237(0x19a)](_0x1d147f[0x1]);}}[_0x115057(0x19f)](_0x9f125c){const _0x42c7d6=_0x115057;return this[_0x42c7d6(0x18c)](_0x9f125c)?_0xd1db17(_0x9f125c,_0x42c7d6(0x1a0)):this[_0x42c7d6(0x16a)]();}[_0x115057(0x195)](_0x32a7ca){const _0x534ac2=_0x115057;_0x432059(_0x32a7ca)[_0x534ac2(0x188)](_0x33bb96=>this[_0x534ac2(0x180)](_0x33bb96)||this[_0x534ac2(0x174)](_0x33bb96))[_0x534ac2(0x179)](_0xee2f55=>{_0x3fea47(_0xee2f55);});}[_0x115057(0x17e)](_0x23f962){const _0x363268=_0x115057,_0x23cf98=_0x23f962[_0x363268(0x191)],_0x21d10a=_0x23cf98[_0x23cf98[_0x363268(0x1a4)]-0x1];_0x21d10a&&_0x3b79d7(_0x21d10a)&&_0x552f9c(_0x21d10a,_0x363268(0x175),_0x363268(0x18e));}[_0x115057(0x18b)](_0x3219c8,_0x25234f){const _0x1f6495=_0x115057,_0x1f20e5=_0x1e9add(_0x1f6495(0x175),_0x1f6495(0x18e),_0x3219c8);if(!_0x1f20e5)return;const _0x4e4205=_0x2d5010(_0x1f20e5)[_0x1f6495(0x1a1)](0x0,-0x1),_0x542cf2=_0x4e4205[_0x1f6495(0x1a4)];let _0x453717=_0x1f20e5;if(_0x542cf2>_0x25234f){let _0x13cf4e=_0x542cf2,_0xdc7b6c=null;for(;_0x13cf4e>_0x25234f&&_0x13cf4e>=0x0;)_0x13cf4e--,_0xdc7b6c=_0x4e4205[_0x13cf4e];_0xdc7b6c&&(_0x453717=_0xdc7b6c,_0x552f9c(_0x1f20e5,_0x1f6495(0x175),null),_0x552f9c(_0xdc7b6c,_0x1f6495(0x175),_0x1f6495(0x18e)));}else{if(_0x542cf2<_0x25234f){let _0x1c9970=_0x542cf2,_0xc303e4=_0x1f20e5;for(;_0x1c9970<_0x25234f;){const _0x387424=_0xc303e4[_0x1f6495(0x191)][_0x1f6495(0x188)](_0x3b4282=>_0x3b79d7(_0x3b4282));if(0x0===_0x387424[_0x1f6495(0x1a4)])break;_0x1c9970++,_0xc303e4=_0x387424[_0x387424[_0x1f6495(0x1a4)]-0x1];}_0xc303e4&&(_0x453717=_0xc303e4,_0x552f9c(_0x1f20e5,_0x1f6495(0x175),null),_0x552f9c(_0xc303e4,_0x1f6495(0x175),_0x1f6495(0x18e)));}}let _0x4e5e2e=_0x453717;for(;_0x4e5e2e;){for(;_0x4e5e2e[_0x1f6495(0x163)];)_0x4e5e2e=_0x4e5e2e[_0x1f6495(0x163)],_0x3b79d7(_0x4e5e2e)&&_0x552f9c(_0x4e5e2e,_0x1f6495(0x175),_0x1f6495(0x18e));_0x4e5e2e=_0x4e5e2e[_0x1f6495(0x199)];}}[_0x115057(0x183)](_0x464456){const _0x439c44=_0x115057;return Boolean(_0x439c44(0x186)===_0xd1db17(_0x464456,_0x439c44(0x1a0)));}[_0x115057(0x18c)](_0x202123){const _0x2456f1=_0x115057;return Boolean((_0xd1db17(_0x202123,_0x2456f1(0x1a0))||'')[_0x2456f1(0x1a4)]>0x0&&_0x2456f1(0x186)!==_0xd1db17(_0x202123,_0x2456f1(0x1a0)));}[_0x115057(0x180)](_0x18c405){const _0x484179=_0x115057;return!!_0x18c405&&Boolean(_0x1af7af(_0x18c405)&&_0x33dc0b(_0x18c405)[_0x484179(0x192)](/removed[\s*-]data-id="[^"]+"/));}[_0x115057(0x162)](_0x5ea767){const _0x3c7724=_0x115057;let _0x561a28=_0x5ea767[_0x3c7724(0x199)];for(;_0x561a28;){if(_0xd1db17(_0x561a28,_0x3c7724(0x161)))return!0x0;_0x561a28=_0x561a28[_0x3c7724(0x199)];}return!0x1;}[_0x115057(0x174)](_0x308b22){const _0x4945d0=_0x115057;return Boolean(_0x1af7af(_0x308b22)&&_0x33dc0b(_0x308b22)[_0x4945d0(0x192)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf943(){const _0x4dd3a1=['_parseHTML','<dummy>','convertMarkdownToHTML','3700565xcVyMM','541350oBsbcf','296OpQxLV','867127POuvZL','3440aVgJZi','children','</dummy>','parse','parseAndNormalizeHTML','replace','111FadzMi','87808hyDVGg','13788DHvglE','_m2html','78604rUjYqU','160900cKgSEH','6OPWblM'];_0xf943=function(){return _0x4dd3a1;};return _0xf943();}const _0x453a7f=_0x1052;function _0x1052(_0x51a8d2,_0x5d92b0){const _0xf943dc=_0xf943();return _0x1052=function(_0x1052c1,_0x1fa688){_0x1052c1=_0x1052c1-0x105;let _0x5baee8=_0xf943dc[_0x1052c1];return _0x5baee8;},_0x1052(_0x51a8d2,_0x5d92b0);}(function(_0x5aac8b,_0xe9bc63){const _0x15a17e=_0x1052,_0x3941a1=_0x5aac8b();while(!![]){try{const _0x19c400=-parseInt(_0x15a17e(0x106))/0x1+parseInt(_0x15a17e(0x118))/0x2+-parseInt(_0x15a17e(0x10d))/0x3*(-parseInt(_0x15a17e(0x111))/0x4)+-parseInt(_0x15a17e(0x112))/0x5*(parseInt(_0x15a17e(0x113))/0x6)+-parseInt(_0x15a17e(0x10e))/0x7*(parseInt(_0x15a17e(0x105))/0x8)+parseInt(_0x15a17e(0x10f))/0x9*(parseInt(_0x15a17e(0x107))/0xa)+parseInt(_0x15a17e(0x117))/0xb;if(_0x19c400===_0xe9bc63)break;else _0x3941a1['push'](_0x3941a1['shift']());}catch(_0x1a06cd){_0x3941a1['push'](_0x3941a1['shift']());}}}(_0xf943,0x79856));import{ObservableMixin as _0x544d34}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x7e4209}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x385cdb}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x544d34(){[_0x453a7f(0x110)];constructor(){const _0x40706e=_0x453a7f;super(),this[_0x40706e(0x110)]=new _0x7e4209();}[_0x453a7f(0x116)](_0x5cc76e){const _0x115b86=_0x453a7f,_0x1fd378=this[_0x115b86(0x110)][_0x115b86(0x10a)](_0x5cc76e);return this[_0x115b86(0x10b)](_0x1fd378);}[_0x453a7f(0x10b)](_0x2af16f){const _0x288706=_0x453a7f;return this[_0x288706(0x114)](_0x2af16f);}[_0x453a7f(0x114)](_0x48e8ce){const _0x31a193=_0x453a7f,_0x2e51d2=_0x48e8ce[_0x31a193(0x10c)](/^\t+/gm,'\x20')[_0x31a193(0x10c)](/\n*/g,'')[_0x31a193(0x10c)](/\s+/g,'\x20')[_0x31a193(0x10c)](/<[^>]*?$/g,''),_0x28d4dd=_0x385cdb(_0x31a193(0x115)+_0x2e51d2+_0x31a193(0x109));return _0x28d4dd[_0x31a193(0x108)]=_0x28d4dd[_0x31a193(0x108)][0x0][_0x31a193(0x108)],_0x28d4dd;}}
23
+ function _0x3df1(){const _0x171943=['_parseHTML','351EbRKia','196109McuvBx','84rRYsVR','18356fgNity','convertMarkdownToHTML','158568Dfigck','parseAndNormalizeHTML','children','</dummy>','7725883Xidwbv','10rdnMHD','<dummy>','7063479YmwZAl','6iQHbsl','190JLLbgW','7086456IOeFQk','parse','_m2html','310280FoQbBn','replace'];_0x3df1=function(){return _0x171943;};return _0x3df1();}const _0xcfad53=_0x5897;(function(_0x94549,_0x2bbeb7){const _0x1de7a5=_0x5897,_0x3f294d=_0x94549();while(!![]){try{const _0x103432=parseInt(_0x1de7a5(0x1b3))/0x1*(parseInt(_0x1de7a5(0x1aa))/0x2)+parseInt(_0x1de7a5(0x1b2))/0x3*(parseInt(_0x1de7a5(0x1b5))/0x4)+-parseInt(_0x1de7a5(0x1ab))/0x5*(parseInt(_0x1de7a5(0x1b7))/0x6)+parseInt(_0x1de7a5(0x1b4))/0x7*(-parseInt(_0x1de7a5(0x1af))/0x8)+parseInt(_0x1de7a5(0x1a9))/0x9*(parseInt(_0x1de7a5(0x1bc))/0xa)+parseInt(_0x1de7a5(0x1bb))/0xb+-parseInt(_0x1de7a5(0x1ac))/0xc;if(_0x103432===_0x2bbeb7)break;else _0x3f294d['push'](_0x3f294d['shift']());}catch(_0x3c4a13){_0x3f294d['push'](_0x3f294d['shift']());}}}(_0x3df1,0x86d0a));import{ObservableMixin as _0x197473}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f3609}from'@ckeditor/ckeditor5-markdown-gfm';function _0x5897(_0x1cb8d2,_0x1184a1){const _0x3df1fa=_0x3df1();return _0x5897=function(_0x58976e,_0x3e1191){_0x58976e=_0x58976e-0x1a9;let _0x4f8e0a=_0x3df1fa[_0x58976e];return _0x4f8e0a;},_0x5897(_0x1cb8d2,_0x1184a1);}import{parse as _0x4e6601}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x197473(){[_0xcfad53(0x1ae)];constructor(){const _0x5f2958=_0xcfad53;super(),this[_0x5f2958(0x1ae)]=new _0x2f3609();}[_0xcfad53(0x1b6)](_0x44c0b4){const _0x41ad75=_0xcfad53,_0x3c1cd1=this[_0x41ad75(0x1ae)][_0x41ad75(0x1ad)](_0x44c0b4);return this[_0x41ad75(0x1b8)](_0x3c1cd1);}[_0xcfad53(0x1b8)](_0x19716a){const _0x3f6615=_0xcfad53;return this[_0x3f6615(0x1b1)](_0x19716a);}[_0xcfad53(0x1b1)](_0x1ec86c){const _0x5d86f6=_0xcfad53,_0x631245=_0x1ec86c[_0x5d86f6(0x1b0)](/^\t+/gm,'\x20')[_0x5d86f6(0x1b0)](/\n*/g,'')[_0x5d86f6(0x1b0)](/\s+/g,'\x20')[_0x5d86f6(0x1b0)](/<[^>]*?$/g,''),_0x21b7ad=_0x4e6601(_0x5d86f6(0x1bd)+_0x631245+_0x5d86f6(0x1ba));return _0x21b7ad[_0x5d86f6(0x1b9)]=_0x21b7ad[_0x5d86f6(0x1b9)][0x0][_0x5d86f6(0x1b9)],_0x21b7ad;}}