@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.4

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 (106) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/aiassistantediting.js +1 -1
  7. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  8. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  9. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  10. package/src/aiassistant/ui/form/aiformview.js +1 -1
  11. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  12. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  13. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  14. package/src/aiballoon/aiballoon.js +1 -1
  15. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  16. package/src/aiballoon/ui/aiballoonview.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatcontroller.js +1 -1
  19. package/src/aichat/aichatui.js +1 -1
  20. package/src/aichat/model/aichatcontext.js +1 -1
  21. package/src/aichat/model/aichatconversation.js +1 -1
  22. package/src/aichat/model/aichatinteraction.js +1 -1
  23. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  24. package/src/aichat/ui/aichatfeedview.js +1 -1
  25. package/src/aichat/ui/aichatheaderview.js +1 -1
  26. package/src/aichat/ui/aichatview.js +1 -1
  27. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  28. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  29. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  32. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  35. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeedusermessageitem.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/aicore/aiconnector.js +1 -1
  57. package/src/aicore/aiediting.js +1 -1
  58. package/src/aicore/model/aiinteraction.js +1 -1
  59. package/src/aicore/model/aimodels.js +1 -1
  60. package/src/aicore/model/aireply.js +1 -1
  61. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  62. package/src/aicore/pipeline/airesponseparser.js +2 -2
  63. package/src/aicore/ui/aidisclaimerview.js +1 -1
  64. package/src/aicore/ui/aiskeleton.js +1 -1
  65. package/src/aicore/ui/aispinner.js +1 -1
  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/aisuggestioncontentpartview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  71. package/src/aicore/utils/documentposition.js +1 -1
  72. package/src/aicore/utils/documentrange.js +1 -1
  73. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  74. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  75. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  76. package/src/aicore/utils/htmlparser.js +1 -1
  77. package/src/aicore/utils/htmlstreamer.js +1 -1
  78. package/src/aicore/utils/scrollmanager.js +1 -1
  79. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  80. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  81. package/src/aiquickactions/aiquickactionsui.js +1 -1
  82. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  83. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  84. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  85. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  86. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  87. package/src/aireviewmode/aireviewmode.js +1 -1
  88. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  89. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  90. package/src/aireviewmode/aireviewmodeui.js +1 -1
  91. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  92. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  93. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  94. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  95. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  96. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  97. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  98. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  99. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  100. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  101. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  102. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  103. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  104. package/src/aitabs/aitabs.js +1 -1
  105. package/src/aitabs/tabs/aitabsview.js +1 -1
  106. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x306904=_0x1f95;(function(_0x3630af,_0x483f33){const _0x1b90cd=_0x1f95,_0x20bacd=_0x3630af();while(!![]){try{const _0x43e7e6=parseInt(_0x1b90cd(0x17a))/0x1+parseInt(_0x1b90cd(0x187))/0x2+parseInt(_0x1b90cd(0x18b))/0x3*(parseInt(_0x1b90cd(0x1ad))/0x4)+parseInt(_0x1b90cd(0x18c))/0x5*(-parseInt(_0x1b90cd(0x1aa))/0x6)+parseInt(_0x1b90cd(0x19d))/0x7*(parseInt(_0x1b90cd(0x1a6))/0x8)+parseInt(_0x1b90cd(0x1a1))/0x9+-parseInt(_0x1b90cd(0x1a4))/0xa;if(_0x43e7e6===_0x483f33)break;else _0x20bacd['push'](_0x20bacd['shift']());}catch(_0x5d4bba){_0x20bacd['push'](_0x20bacd['shift']());}}}(_0x472f,0x30edc));function _0x1f95(_0x77c93c,_0x5c700a){const _0x472f81=_0x472f();return _0x1f95=function(_0x1f95a2,_0x14f94d){_0x1f95a2=_0x1f95a2-0x178;let _0xa97cb8=_0x472f81[_0x1f95a2];return _0xa97cb8;},_0x1f95(_0x77c93c,_0x5c700a);}import{CKEditorError as _0x50eb47,EmitterMixin as _0x3b24ec,uid as _0x5927be}from'ckeditor5/src/utils.js';import{AIReply as _0x2417f7,isIgnoredReplyType as _0x3d689,isValidReplyType as _0x4a1b62,isReplyTitleType as _0x1658f5,isSourceType as _0x5819ab}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x306904(0x198),_0x306904(0x191),_0x306904(0x1ab),_0x306904(0x1a7),_0x306904(0x18d),_0x306904(0x1a5),_0x306904(0x1bd),_0x306904(0x1b0),_0x306904(0x178),_0x306904(0x1b1),_0x306904(0x194),_0x306904(0x195),_0x306904(0x1af),_0x306904(0x1ac)];function _0x472f(){const _0x5a0e0c=['messageId','delegate','1449ojzWFC','abortController','replies','3903040JaTcxR','replyCreated','40ZAdvav','interactionFinished','find','isStopped','330ZFXqbh','interactionStopped','error','72ONadrL','length','reasoningFinished','replyChangeGroupStateUpdated','webSearchStarted','source','sendRequest','getDocumentContext','appendContent','stopListening','action-metadata','getReply','currentRequest','callId','currentReply','data','replyContentUpdated','setConversationTitle','textDelta','216662UltIsk','sources','destroy','done','actionCallId','_isReasoning','reasoning','content','connector','message-metadata','_isWebSearching','fire','push','621044Ungzki','isDestroyed','_finalizeInteraction','editor','57126KVQXDr','29065BYKjoU','interactionDestroyed','abort','start','web-search','interactionStarted','createReply','getStream','webSearchFinished','reasoningStarted','ai-chat-interaction-error','event','interactionCreated','conversationTitle','forEach','modification-delta','splice','56462SASczT','stop'];_0x472f=function(){return _0x5a0e0c;};return _0x472f();}export class AIInteraction extends _0x3b24ec(){['id'];[_0x306904(0x1a3)]=[];[_0x306904(0x1bb)];[_0x306904(0x19f)];[_0x306904(0x17e)];[_0x306904(0x1b9)];[_0x306904(0x182)];[_0x306904(0x1a9)]=!0x1;[_0x306904(0x188)]=!0x1;[_0x306904(0x18a)];[_0x306904(0x17f)]=!0x1;[_0x306904(0x184)]=!0x1;constructor({connector:_0xfa3797,editor:_0x3f7781}){const _0x13e42d=_0x306904;super(),this['id']=_0x5927be(),this[_0x13e42d(0x182)]=_0xfa3797,this[_0x13e42d(0x1a9)]=!0x0,this[_0x13e42d(0x18a)]=_0x3f7781;}async[_0x306904(0x18f)](){const _0x41cf66=_0x306904;let _0x2fe158;const _0x1a458f=[];this[_0x41cf66(0x1a9)]=!0x1;try{this[_0x41cf66(0x1b9)]=await this[_0x41cf66(0x1b3)](),this[_0x41cf66(0x185)](_0x41cf66(0x191),this);const _0x57fdcb=await this[_0x41cf66(0x1b9)][_0x41cf66(0x193)]();for await(const _0x29cde0 of _0x57fdcb){if(this[_0x41cf66(0x1a9)])return;if(_0x41cf66(0x1ac)===_0x29cde0[_0x41cf66(0x197)])return void this[_0x41cf66(0x185)](_0x41cf66(0x1ac),{'error':new _0x50eb47(_0x41cf66(0x196),this)});if(_0x41cf66(0x183)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x41cf66(0x1b7)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x1658f5(_0x29cde0[_0x41cf66(0x197)])&&this[_0x41cf66(0x178)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x199)],!0x0),_0x5819ab(_0x29cde0[_0x41cf66(0x197)]))_0x1a458f[_0x41cf66(0x186)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1b2)]);else{if(_0x4a1b62(_0x29cde0[_0x41cf66(0x197)])){if(_0x29cde0[_0x41cf66(0x197)]!==_0x2fe158){if(_0x2fe158=_0x29cde0[_0x41cf66(0x197)],_0x41cf66(0x190)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x184)]||(this[_0x41cf66(0x184)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x1b1),this));continue;}if(_0x41cf66(0x180)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x17f)]||(this[_0x41cf66(0x17f)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x195),this));continue;}this[_0x41cf66(0x17f)]&&(this[_0x41cf66(0x17f)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x1af),this)),this[_0x41cf66(0x184)]&&(this[_0x41cf66(0x184)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x194),this)),this[_0x41cf66(0x1bb)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x17d)](),this[_0x41cf66(0x1bb)]=this[_0x41cf66(0x192)]({'type':_0x29cde0[_0x41cf66(0x197)],'interactionId':this['id'],'id':_0x29cde0[_0x41cf66(0x1bc)]?.['id']}),_0x1a458f[_0x41cf66(0x1ae)]>0x0&&_0x41cf66(0x19b)===_0x29cde0[_0x41cf66(0x197)]&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0));}_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x1b5)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]);}else _0x3d689(_0x29cde0[_0x41cf66(0x197)]);}}else this[_0x41cf66(0x17e)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1ba)];}else this[_0x41cf66(0x19f)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x19f)];}}finally{this[_0x41cf66(0x1a9)]||(_0x1a458f[_0x41cf66(0x1ae)]>0x0&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0)),this[_0x41cf66(0x189)](),this[_0x41cf66(0x185)](_0x41cf66(0x1a7),this));}}[_0x306904(0x19e)](){const _0x58d47e=_0x306904;this[_0x58d47e(0x1a9)]||(this[_0x58d47e(0x189)](),this[_0x58d47e(0x185)](_0x58d47e(0x1ab),this));}[_0x306904(0x1b8)](_0x1f6c9d){const _0x328fa4=_0x306904;return this[_0x328fa4(0x1a3)][_0x328fa4(0x1a8)](_0xa3fb=>_0xa3fb['id']===_0x1f6c9d);}[_0x306904(0x17c)](){const _0x58adc4=_0x306904;this[_0x58adc4(0x188)]||(this[_0x58adc4(0x19e)](),this[_0x58adc4(0x1a3)][_0x58adc4(0x19a)](_0x1bfac0=>_0x1bfac0[_0x58adc4(0x17c)]()),this[_0x58adc4(0x1a3)]=[],this[_0x58adc4(0x188)]=!0x0,this[_0x58adc4(0x185)](_0x58adc4(0x18d),this),this[_0x58adc4(0x1b6)]());}[_0x306904(0x192)](_0x311a6f){const _0x259c7b=_0x306904,_0x15a5e1=new _0x2417f7({'editor':this[_0x259c7b(0x18a)],'documentContextContent':this[_0x259c7b(0x1b4)]()?.[_0x259c7b(0x181)],..._0x311a6f});return this[_0x259c7b(0x1a3)][_0x259c7b(0x186)](_0x15a5e1),_0x15a5e1[_0x259c7b(0x1a0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x259c7b(0x185)](_0x259c7b(0x1a5),_0x15a5e1),_0x15a5e1;}[_0x306904(0x178)](_0x11de92,_0xc78851=!0x1){const _0x20ab12=_0x306904;this[_0x20ab12(0x185)](_0x20ab12(0x178),_0x11de92,_0xc78851);}[_0x306904(0x189)](){const _0x58e02a=_0x306904;this[_0x58e02a(0x1a9)]=!0x0,this[_0x58e02a(0x1b9)]&&this[_0x58e02a(0x1b9)][_0x58e02a(0x1a2)][_0x58e02a(0x18e)](),this[_0x58e02a(0x1bb)]&&this[_0x58e02a(0x1bb)][_0x58e02a(0x17d)](),this[_0x58e02a(0x1b9)]=this[_0x58e02a(0x1bb)]=void 0x0;}}
23
+ const _0x3fdbd0=_0x4771;(function(_0x2b060c,_0x1bf201){const _0x378212=_0x4771,_0x288a89=_0x2b060c();while(!![]){try{const _0x3cad30=parseInt(_0x378212(0xf4))/0x1+-parseInt(_0x378212(0xda))/0x2*(-parseInt(_0x378212(0xcf))/0x3)+-parseInt(_0x378212(0x110))/0x4*(parseInt(_0x378212(0xf1))/0x5)+-parseInt(_0x378212(0xe2))/0x6+parseInt(_0x378212(0x10c))/0x7*(parseInt(_0x378212(0xec))/0x8)+parseInt(_0x378212(0xd0))/0x9*(parseInt(_0x378212(0xf0))/0xa)+-parseInt(_0x378212(0xd6))/0xb;if(_0x3cad30===_0x1bf201)break;else _0x288a89['push'](_0x288a89['shift']());}catch(_0x2117db){_0x288a89['push'](_0x288a89['shift']());}}}(_0x2ceb,0x4a60a));function _0x2ceb(){const _0x32efd3=['reasoningFinished','splice','sendRequest','reasoningStarted','conversationTitle','connector','sources','getDocumentContext','_isWebSearching','content','callId','currentRequest','createReply','push','destroy','replyChangeGroupStateUpdated','interactionDestroyed','replies','42tGIaKV','web-search','reasoning','currentReply','4xftFiW','actionCallId','editor','getReply','abortController','stopListening','1340859iZGkKo','999wZdyxz','forEach','getStream','isDestroyed','webSearchFinished','start','3911248SeJwKp','modification-delta','data','messageId','2tJgBuk','textDelta','webSearchStarted','appendContent','setConversationTitle','ai-chat-interaction-error','stop','done','823944qRTHvR','event','_finalizeInteraction','interactionStarted','message-metadata','interactionCreated','interactionFinished','replyCreated','find','interactionStopped','525328nVffnJ','_isReasoning','source','abort','33560JnKXCZ','2540355KKeImS','isStopped','fire','92148bcNwar','length','replyContentUpdated','error','action-metadata','delegate'];_0x2ceb=function(){return _0x32efd3;};return _0x2ceb();}import{CKEditorError as _0x3d903a,EmitterMixin as _0x27f314,uid as _0x5b39b7}from'ckeditor5/src/utils.js';import{AIReply as _0x47ab16,isIgnoredReplyType as _0x462f32,isValidReplyType as _0x14bca1,isReplyTitleType as _0x3171bc,isSourceType as _0x1ce9cc}from'./aireply.js';function _0x4771(_0xa726f7,_0x57aefb){const _0x2ceb6d=_0x2ceb();return _0x4771=function(_0x47717e,_0xe0a680){_0x47717e=_0x47717e-0xce;let _0x4d8b2a=_0x2ceb6d[_0x47717e];return _0x4d8b2a;},_0x4771(_0xa726f7,_0x57aefb);}export const AI_MODEL_EVENT_NAMES=[_0x3fdbd0(0xe7),_0x3fdbd0(0xe5),_0x3fdbd0(0xeb),_0x3fdbd0(0xe8),_0x3fdbd0(0x10a),_0x3fdbd0(0xe9),_0x3fdbd0(0xf6),_0x3fdbd0(0x109),_0x3fdbd0(0xde),_0x3fdbd0(0xdc),_0x3fdbd0(0xd4),_0x3fdbd0(0xfd),_0x3fdbd0(0xfa),_0x3fdbd0(0xf7)];export class AIInteraction extends _0x27f314(){['id'];[_0x3fdbd0(0x10b)]=[];[_0x3fdbd0(0x10f)];[_0x3fdbd0(0xd9)];[_0x3fdbd0(0x111)];[_0x3fdbd0(0x105)];[_0x3fdbd0(0xff)];[_0x3fdbd0(0xf2)]=!0x1;[_0x3fdbd0(0xd3)]=!0x1;[_0x3fdbd0(0x112)];[_0x3fdbd0(0xed)]=!0x1;[_0x3fdbd0(0x102)]=!0x1;constructor({connector:_0x453e51,editor:_0xff832e}){const _0x2d972a=_0x3fdbd0;super(),this['id']=_0x5b39b7(),this[_0x2d972a(0xff)]=_0x453e51,this[_0x2d972a(0xf2)]=!0x0,this[_0x2d972a(0x112)]=_0xff832e;}async[_0x3fdbd0(0xd5)](){const _0x3e6e31=_0x3fdbd0;let _0x4f1f9d;const _0x2d585c=[];this[_0x3e6e31(0xf2)]=!0x1;try{this[_0x3e6e31(0x105)]=await this[_0x3e6e31(0xfc)](),this[_0x3e6e31(0xf3)](_0x3e6e31(0xe5),this);const _0xac3580=await this[_0x3e6e31(0x105)][_0x3e6e31(0xd2)]();for await(const _0x30bf7c of _0xac3580){if(this[_0x3e6e31(0xf2)])return;if(_0x3e6e31(0xf7)===_0x30bf7c[_0x3e6e31(0xe3)])return void this[_0x3e6e31(0xf3)](_0x3e6e31(0xf7),{'error':new _0x3d903a(_0x3e6e31(0xdf),this)});if(_0x3e6e31(0xe6)!==_0x30bf7c[_0x3e6e31(0xe3)]){if(_0x3e6e31(0xf8)!==_0x30bf7c[_0x3e6e31(0xe3)]){if(_0x3171bc(_0x30bf7c[_0x3e6e31(0xe3)])&&this[_0x3e6e31(0xde)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xfe)],!0x0),_0x1ce9cc(_0x30bf7c[_0x3e6e31(0xe3)]))_0x2d585c[_0x3e6e31(0x107)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xee)]);else{if(_0x14bca1(_0x30bf7c[_0x3e6e31(0xe3)])){if(_0x30bf7c[_0x3e6e31(0xe3)]!==_0x4f1f9d){if(_0x4f1f9d=_0x30bf7c[_0x3e6e31(0xe3)],_0x3e6e31(0x10d)===_0x30bf7c[_0x3e6e31(0xe3)]){this[_0x3e6e31(0x102)]||(this[_0x3e6e31(0x102)]=!0x0,this[_0x3e6e31(0xf3)](_0x3e6e31(0xdc),this));continue;}if(_0x3e6e31(0x10e)===_0x30bf7c[_0x3e6e31(0xe3)]){this[_0x3e6e31(0xed)]||(this[_0x3e6e31(0xed)]=!0x0,this[_0x3e6e31(0xf3)](_0x3e6e31(0xfd),this));continue;}this[_0x3e6e31(0xed)]&&(this[_0x3e6e31(0xed)]=!0x1,this[_0x3e6e31(0xf3)](_0x3e6e31(0xfa),this)),this[_0x3e6e31(0x102)]&&(this[_0x3e6e31(0x102)]=!0x1,this[_0x3e6e31(0xf3)](_0x3e6e31(0xd4),this)),this[_0x3e6e31(0x10f)]&&this[_0x3e6e31(0x10f)][_0x3e6e31(0xe1)](),this[_0x3e6e31(0x10f)]=this[_0x3e6e31(0x106)]({'type':_0x30bf7c[_0x3e6e31(0xe3)],'interactionId':this['id'],'id':_0x30bf7c[_0x3e6e31(0xd8)]?.['id']}),_0x2d585c[_0x3e6e31(0xf5)]>0x0&&_0x3e6e31(0xd7)===_0x30bf7c[_0x3e6e31(0xe3)]&&(this[_0x3e6e31(0x10f)][_0x3e6e31(0x100)]=_0x2d585c[_0x3e6e31(0xfb)](0x0));}_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xdb)]&&this[_0x3e6e31(0x10f)][_0x3e6e31(0xdd)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xdb)]);}else _0x462f32(_0x30bf7c[_0x3e6e31(0xe3)]);}}else this[_0x3e6e31(0x111)]=_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0x104)];}else this[_0x3e6e31(0xd9)]=_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xd9)];}}finally{this[_0x3e6e31(0xf2)]||(_0x2d585c[_0x3e6e31(0xf5)]>0x0&&(this[_0x3e6e31(0x10f)][_0x3e6e31(0x100)]=_0x2d585c[_0x3e6e31(0xfb)](0x0)),this[_0x3e6e31(0xe4)](),this[_0x3e6e31(0xf3)](_0x3e6e31(0xe8),this));}}[_0x3fdbd0(0xe0)](){const _0x44be56=_0x3fdbd0;this[_0x44be56(0xf2)]||(this[_0x44be56(0xe4)](),this[_0x44be56(0xf3)](_0x44be56(0xeb),this));}[_0x3fdbd0(0x113)](_0x58d430){const _0x4d84e7=_0x3fdbd0;return this[_0x4d84e7(0x10b)][_0x4d84e7(0xea)](_0x4db2a7=>_0x4db2a7['id']===_0x58d430);}[_0x3fdbd0(0x108)](){const _0x135920=_0x3fdbd0;this[_0x135920(0xd3)]||(this[_0x135920(0xe0)](),this[_0x135920(0x10b)][_0x135920(0xd1)](_0x1ba2b3=>_0x1ba2b3[_0x135920(0x108)]()),this[_0x135920(0x10b)]=[],this[_0x135920(0xd3)]=!0x0,this[_0x135920(0xf3)](_0x135920(0x10a),this),this[_0x135920(0xce)]());}[_0x3fdbd0(0x106)](_0x24f8ef){const _0x37d462=_0x3fdbd0,_0x436afb=new _0x47ab16({'editor':this[_0x37d462(0x112)],'documentContextContent':this[_0x37d462(0x101)]()?.[_0x37d462(0x103)],..._0x24f8ef});return this[_0x37d462(0x10b)][_0x37d462(0x107)](_0x436afb),_0x436afb[_0x37d462(0xf9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x37d462(0xf3)](_0x37d462(0xe9),_0x436afb),_0x436afb;}[_0x3fdbd0(0xde)](_0x1b0e56,_0x5f18d7=!0x1){const _0x3b7f45=_0x3fdbd0;this[_0x3b7f45(0xf3)](_0x3b7f45(0xde),_0x1b0e56,_0x5f18d7);}[_0x3fdbd0(0xe4)](){const _0x13b417=_0x3fdbd0;this[_0x13b417(0xf2)]=!0x0,this[_0x13b417(0x105)]&&this[_0x13b417(0x105)][_0x13b417(0x114)][_0x13b417(0xef)](),this[_0x13b417(0x10f)]&&this[_0x13b417(0x10f)][_0x13b417(0xe1)](),this[_0x13b417(0x105)]=this[_0x13b417(0x10f)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55b7fb=_0xbbfa;function _0xbbfa(_0x554b6a,_0x4d2549){const _0x58aac2=_0x58aa();return _0xbbfa=function(_0xbbfae1,_0x1f8f62){_0xbbfae1=_0xbbfae1-0x7c;let _0x22c6af=_0x58aac2[_0xbbfae1];return _0x22c6af;},_0xbbfa(_0x554b6a,_0x4d2549);}function _0x58aa(){const _0x1c0e2c=['agent','30qBnrel','15455736wLRuLo','getModels','297345AAZXeg','map','getDefault','length','auto','startsWith','getAll','getModel','isAvailable','ai-models-unable-to-retrieve','2393343sqHanJ','push','_filterModels','ai-chat-default-model-id-unrecognized','9016532MLDJaC','_connector','list','string','uiLanguage','AI_MODEL_NAME_AUTO','find','_getModelById','259976behDaZ','provider','some','ai-chat-model-id-unrecognized','_availableModels','_defaultModelId','_modelList','toLocaleLowerCase','83546TYtQBq','items','_locale','name','2304728wdsErM','getAvailableModels'];_0x58aa=function(){return _0x1c0e2c;};return _0x58aa();}(function(_0x117f08,_0x2164e3){const _0x1a31ba=_0xbbfa,_0x4b739a=_0x117f08();while(!![]){try{const _0x589696=-parseInt(_0x1a31ba(0x8f))/0x1+parseInt(_0x1a31ba(0x87))/0x2+-parseInt(_0x1a31ba(0xa3))/0x3+parseInt(_0x1a31ba(0x93))/0x4+parseInt(_0x1a31ba(0x99))/0x5*(parseInt(_0x1a31ba(0x96))/0x6)+-parseInt(_0x1a31ba(0x7f))/0x7+parseInt(_0x1a31ba(0x97))/0x8;if(_0x589696===_0x2164e3)break;else _0x4b739a['push'](_0x4b739a['shift']());}catch(_0x152533){_0x4b739a['push'](_0x4b739a['shift']());}}}(_0x58aa,0xbb07f));import{EmitterMixin as _0x3e4a73,logWarning as _0x223659,logError as _0x4a0444}from'ckeditor5/src/utils.js';import{getTranslation as _0x249b76}from'../utils/common-translations.js';export class AIModels extends _0x3e4a73(){[_0x55b7fb(0x80)];[_0x55b7fb(0x8b)];[_0x55b7fb(0x8c)];[_0x55b7fb(0x91)];[_0x55b7fb(0x8d)]=[];constructor({connector:_0x2fe5d1,availableModels:_0x515fa1,defaultModelId:_0x2bbb43,locale:_0x406c9c}){const _0x2e1fb0=_0x55b7fb;super(),this[_0x2e1fb0(0x80)]=_0x2fe5d1,this[_0x2e1fb0(0x8b)]=_0x515fa1,this[_0x2e1fb0(0x8c)]=_0x2bbb43,this[_0x2e1fb0(0x91)]=_0x406c9c;}async[_0x55b7fb(0x9f)](){const _0x27065b=_0x55b7fb;if(!this[_0x27065b(0x8d)][_0x27065b(0x9c)])try{const _0x5976c3=this[_0x27065b(0x91)][_0x27065b(0x83)]||'en',_0x4275f3=this[_0x27065b(0x80)][_0x27065b(0x98)](_0x5976c3),_0x54a25d=await _0x4275f3[_0x27065b(0x81)]();this[_0x27065b(0x8d)]=_0x54a25d[_0x27065b(0x90)][_0x27065b(0x9a)](_0x4a4e72=>ze(_0x4a4e72)?{..._0x4a4e72,'name':_0x249b76(this[_0x27065b(0x91)],_0x27065b(0x84))}:_0x4a4e72);}catch(_0xae335d){throw _0x4a0444(_0x27065b(0xa2),{'error':_0xae335d}),_0xae335d;}return[...this[_0x27065b(0x8d)]];}async[_0x55b7fb(0x94)](){const _0x5adfd8=_0x55b7fb,_0x5f0983=await this[_0x5adfd8(0x9f)]();return this[_0x5adfd8(0x7d)](_0x5f0983,this[_0x5adfd8(0x8b)]);}async[_0x55b7fb(0xa0)](_0x237afd){const _0x170e9a=_0x55b7fb,_0x721c11=await this[_0x170e9a(0x9f)]();if(!_0x721c11[_0x170e9a(0x9c)])return null;if(_0x237afd){const _0x3fa70d=this[_0x170e9a(0x86)](_0x721c11,_0x237afd);if(_0x3fa70d)return _0x3fa70d;_0x223659(_0x170e9a(0x8a),{'modelId':_0x237afd,'fallBackModelId':this[_0x170e9a(0x8c)]});}return this[_0x170e9a(0x9b)]();}async[_0x55b7fb(0x9b)](){const _0x579f82=_0x55b7fb,_0x2b181f=await this[_0x579f82(0x94)]();if(!_0x2b181f[_0x579f82(0x9c)])return null;if(this[_0x579f82(0x8c)]){const _0x5ea01a=this[_0x579f82(0x86)](_0x2b181f,this[_0x579f82(0x8c)]);if(_0x5ea01a)return _0x5ea01a;_0x223659(_0x579f82(0x7e),{'defaultModelId':this[_0x579f82(0x8c)],'fallBackModelId':_0x2b181f[0x0]['id']});}return _0x2b181f[0x0];}async[_0x55b7fb(0xa1)](_0x1bb382){const _0x5d39cb=_0x55b7fb;return(await this[_0x5d39cb(0x94)]())[_0x5d39cb(0x89)](_0x422e38=>_0x422e38[_0x5d39cb(0x92)]===_0x1bb382[_0x5d39cb(0x92)]&&_0x422e38[_0x5d39cb(0x88)]===_0x1bb382[_0x5d39cb(0x88)]);}[_0x55b7fb(0x7d)](_0x566968,_0x2e04b9){const _0x4057d2=_0x55b7fb;let _0x50a15e;if(_0x2e04b9){_0x50a15e=[];const _0x488ec1=_0x4057d2(0x82)==typeof _0x2e04b9?[_0x2e04b9[_0x4057d2(0x8e)]()]:_0x2e04b9[_0x4057d2(0x9a)](_0x309327=>_0x309327[_0x4057d2(0x8e)]());for(const _0x5108d2 of _0x488ec1)for(const _0x371734 of _0x566968)(_0x371734['id'][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734[_0x4057d2(0x92)][_0x4057d2(0x8e)]()===_0x5108d2||ze(_0x371734)&&_0x4057d2(0x9d)===_0x5108d2||_0x371734[_0x4057d2(0x88)][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734['id'][_0x4057d2(0x8e)]()[_0x4057d2(0x9e)](_0x5108d2))&&_0x50a15e[_0x4057d2(0x7c)](_0x371734);}else _0x50a15e=_0x566968;return _0x50a15e;}[_0x55b7fb(0x86)](_0x4d9938,_0xb99ea6){const _0x49f56c=_0x55b7fb;return _0x4d9938[_0x49f56c(0x85)](_0x285c34=>ze(_0x285c34)&&_0x49f56c(0x9d)===_0xb99ea6?_0x285c34:_0x285c34['id']===_0xb99ea6)||null;}}function ze(_0xb31763){const _0x236a15=_0x55b7fb;return _0xb31763['id'][_0x236a15(0x9e)](_0x236a15(0x95));}
23
+ const _0x20d8b4=_0x50da;function _0x39a5(){const _0x200d3c=['708tAutcM','provider','_modelList','getDefault','380dKgscN','some','find','uiLanguage','list','isAvailable','AI_MODEL_NAME_AUTO','agent','_availableModels','710PJxLui','22425NRzkRu','getAvailableModels','length','_connector','36HNlNYu','getModels','_locale','getModel','82782RfFqWc','306738lmxByi','6ZqcuRP','startsWith','auto','items','map','304278HxqASh','_filterModels','ai-models-unable-to-retrieve','name','3219528JPkNmQ','_defaultModelId','ai-chat-default-model-id-unrecognized','249809qvEkoW','push','getAll','190861qAFSyU','toLocaleLowerCase','_getModelById','string','ai-chat-model-id-unrecognized'];_0x39a5=function(){return _0x200d3c;};return _0x39a5();}(function(_0x536018,_0x458d1d){const _0x39bffa=_0x50da,_0x5e5678=_0x536018();while(!![]){try{const _0x7babd=parseInt(_0x39bffa(0x192))/0x1+-parseInt(_0x39bffa(0x18c))/0x2*(-parseInt(_0x39bffa(0x18d))/0x3)+parseInt(_0x39bffa(0x179))/0x4*(-parseInt(_0x39bffa(0x183))/0x5)+parseInt(_0x39bffa(0x187))/0x6*(parseInt(_0x39bffa(0x199))/0x7)+-parseInt(_0x39bffa(0x196))/0x8+parseInt(_0x39bffa(0x18b))/0x9*(-parseInt(_0x39bffa(0x182))/0xa)+parseInt(_0x39bffa(0x19c))/0xb*(parseInt(_0x39bffa(0x175))/0xc);if(_0x7babd===_0x458d1d)break;else _0x5e5678['push'](_0x5e5678['shift']());}catch(_0x45c6d7){_0x5e5678['push'](_0x5e5678['shift']());}}}(_0x39a5,0x59aa9));function _0x50da(_0x1985ac,_0x2217e6){const _0x39a5fb=_0x39a5();return _0x50da=function(_0x50daa7,_0x5a86f4){_0x50daa7=_0x50daa7-0x174;let _0x185e5a=_0x39a5fb[_0x50daa7];return _0x185e5a;},_0x50da(_0x1985ac,_0x2217e6);}import{EmitterMixin as _0x3b22e9,logWarning as _0xf4a43f,logError as _0x56c4f0}from'ckeditor5/src/utils.js';import{getTranslation as _0x45f630}from'../utils/common-translations.js';export class AIModels extends _0x3b22e9(){[_0x20d8b4(0x186)];[_0x20d8b4(0x181)];[_0x20d8b4(0x197)];[_0x20d8b4(0x189)];[_0x20d8b4(0x177)]=[];constructor({connector:_0x52783e,availableModels:_0x277ed8,defaultModelId:_0x520ada,locale:_0x390ae6}){const _0x130e44=_0x20d8b4;super(),this[_0x130e44(0x186)]=_0x52783e,this[_0x130e44(0x181)]=_0x277ed8,this[_0x130e44(0x197)]=_0x520ada,this[_0x130e44(0x189)]=_0x390ae6;}async[_0x20d8b4(0x19b)](){const _0x427f1d=_0x20d8b4;if(!this[_0x427f1d(0x177)][_0x427f1d(0x185)])try{const _0x1930e3=this[_0x427f1d(0x189)][_0x427f1d(0x17c)]||'en',_0xb0fadc=this[_0x427f1d(0x186)][_0x427f1d(0x188)](_0x1930e3),_0x3f46bf=await _0xb0fadc[_0x427f1d(0x17d)]();this[_0x427f1d(0x177)]=_0x3f46bf[_0x427f1d(0x190)][_0x427f1d(0x191)](_0x54bba3=>$e(_0x54bba3)?{..._0x54bba3,'name':_0x45f630(this[_0x427f1d(0x189)],_0x427f1d(0x17f))}:_0x54bba3);}catch(_0xe4f73){throw _0x56c4f0(_0x427f1d(0x194),{'error':_0xe4f73}),_0xe4f73;}return[...this[_0x427f1d(0x177)]];}async[_0x20d8b4(0x184)](){const _0x21dea2=_0x20d8b4,_0x39dd44=await this[_0x21dea2(0x19b)]();return this[_0x21dea2(0x193)](_0x39dd44,this[_0x21dea2(0x181)]);}async[_0x20d8b4(0x18a)](_0x37a05f){const _0x74933=_0x20d8b4,_0x3b2060=await this[_0x74933(0x19b)]();if(!_0x3b2060[_0x74933(0x185)])return null;if(_0x37a05f){const _0x36a12a=this[_0x74933(0x19e)](_0x3b2060,_0x37a05f);if(_0x36a12a)return _0x36a12a;_0xf4a43f(_0x74933(0x174),{'modelId':_0x37a05f,'fallBackModelId':this[_0x74933(0x197)]});}return this[_0x74933(0x178)]();}async[_0x20d8b4(0x178)](){const _0x2c179a=_0x20d8b4,_0xa96fc6=await this[_0x2c179a(0x184)]();if(!_0xa96fc6[_0x2c179a(0x185)])return null;if(this[_0x2c179a(0x197)]){const _0x592ab3=this[_0x2c179a(0x19e)](_0xa96fc6,this[_0x2c179a(0x197)]);if(_0x592ab3)return _0x592ab3;_0xf4a43f(_0x2c179a(0x198),{'defaultModelId':this[_0x2c179a(0x197)],'fallBackModelId':_0xa96fc6[0x0]['id']});}return _0xa96fc6[0x0];}async[_0x20d8b4(0x17e)](_0x5da29b){const _0x358053=_0x20d8b4;return(await this[_0x358053(0x184)]())[_0x358053(0x17a)](_0x5b1e24=>_0x5b1e24[_0x358053(0x195)]===_0x5da29b[_0x358053(0x195)]&&_0x5b1e24[_0x358053(0x176)]===_0x5da29b[_0x358053(0x176)]);}[_0x20d8b4(0x193)](_0x24019c,_0x409555){const _0x396e85=_0x20d8b4;let _0x2d76f4;if(_0x409555){_0x2d76f4=[];const _0x220cc4=_0x396e85(0x19f)==typeof _0x409555?[_0x409555[_0x396e85(0x19d)]()]:_0x409555[_0x396e85(0x191)](_0x304b5f=>_0x304b5f[_0x396e85(0x19d)]());for(const _0x531a76 of _0x220cc4)for(const _0x2f5c7e of _0x24019c)(_0x2f5c7e['id'][_0x396e85(0x19d)]()===_0x531a76||_0x2f5c7e[_0x396e85(0x195)][_0x396e85(0x19d)]()===_0x531a76||$e(_0x2f5c7e)&&_0x396e85(0x18f)===_0x531a76||_0x2f5c7e[_0x396e85(0x176)][_0x396e85(0x19d)]()===_0x531a76||_0x2f5c7e['id'][_0x396e85(0x19d)]()[_0x396e85(0x18e)](_0x531a76))&&_0x2d76f4[_0x396e85(0x19a)](_0x2f5c7e);}else _0x2d76f4=_0x24019c;return _0x2d76f4;}[_0x20d8b4(0x19e)](_0x48f5e1,_0x4fb4eb){const _0x2d010b=_0x20d8b4;return _0x48f5e1[_0x2d010b(0x17b)](_0x323ee8=>$e(_0x323ee8)&&_0x2d010b(0x18f)===_0x4fb4eb?_0x323ee8:_0x323ee8['id']===_0x4fb4eb)||null;}}function $e(_0x2a4d7b){const _0x172c6f=_0x20d8b4;return _0x2a4d7b['id'][_0x172c6f(0x18e)](_0x172c6f(0x180));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x421906=_0x1862;(function(_0x3415a0,_0x229462){const _0x4ebe9f=_0x1862,_0x4915f6=_0x3415a0();while(!![]){try{const _0x45d7c5=parseInt(_0x4ebe9f(0x1a5))/0x1*(parseInt(_0x4ebe9f(0x192))/0x2)+parseInt(_0x4ebe9f(0x1c0))/0x3+parseInt(_0x4ebe9f(0x197))/0x4+-parseInt(_0x4ebe9f(0x17f))/0x5+-parseInt(_0x4ebe9f(0x185))/0x6*(parseInt(_0x4ebe9f(0x176))/0x7)+parseInt(_0x4ebe9f(0x1ab))/0x8*(-parseInt(_0x4ebe9f(0x187))/0x9)+parseInt(_0x4ebe9f(0x1b0))/0xa;if(_0x45d7c5===_0x229462)break;else _0x4915f6['push'](_0x4915f6['shift']());}catch(_0x90c4c9){_0x4915f6['push'](_0x4915f6['shift']());}}}(_0x2b79,0x9e23e));import{CKEditorError as _0x36b64d,ObservableMixin as _0x1de503,uid as _0x29b3ba}from'ckeditor5/src/utils.js';import{Element as _0x4e86bb,findAll as _0x4f7572,getAttribute as _0x21030a,getParents as _0x202a00,Document as _0x544027,parse as _0x24b5bb,Text as _0x360a82}from'../utils/htmlparser.js';function _0x1862(_0x3607fe,_0x129aac){const _0x2b792a=_0x2b79();return _0x1862=function(_0x18625e,_0x38c8dd){_0x18625e=_0x18625e-0x170;let _0x528a5c=_0x2b792a[_0x18625e];return _0x528a5c;},_0x1862(_0x3607fe,_0x129aac);}import{AIResponseParser as _0x23ab1b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x15b45e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3e0f8d}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x378c95}from'../utils/common-translations.js';function _0x2b79(){const _0x4d4a95=['conversation-title','7538490wxLyOL','reasoning','AI_SUGGESTION_CONTENT_PART_REMOVED','fire','values','interactionId','aiResponseApplier','withoutDiff','node','_setCachedContentParts','destroy','4WuWDuD','cloneNode','state','pending','push','4441924oJYraW','length','convertMarkdownToHTML','onContentChange','replyContentUpdated','aiResponseParser','color:\x20#808080;\x20font-style:\x20italic','context','cachedSuggestionContentParts','sources','done','_getDifferentChangeGroups','change:content','editor','41879LIsQaB','parsedContent','unshift','map','new','replyChangeGroupStateUpdated','8OZwGLm','removedNodeIds','updateChangeGroups','splice','withDiff','13796520jdCbkr','modifiedNodeIds','ai-get-editor-from-context-no-editor','every','stopListening','merge','set','modification-delta','parsedMergedContent','getContentParts','nextSibling','content','removed','data-id','locale','parseAndNormalizeHTML','334644BbXNct','previousSibling','includes','filter','web-search','changes','forEach','setChangeGroupState','documentContextContent','appendContent','newNodeIds','data-unstable','14lYOPyn','ai-reply-get-content-parts-group-not-found','changeGroups','indexOf','areActionsDisabled','index','modified','span','isDone','4355905zFRRcC','_getCachedContentParts','find','source','type','text-delta','986718Venhti'];_0x2b79=function(){return _0x4d4a95;};return _0x2b79();}import{cloneDeep as _0x3a3d82}from'es-toolkit';export const AI_REPLY_TYPES=[_0x421906(0x1b7),_0x421906(0x184),_0x421906(0x1c4),_0x421906(0x188)];export const AI_REPLY_TYPES_IGNORED=[_0x421906(0x186)];export const AI_REPLY_TITLE_TYPE=_0x421906(0x186);export class AIReply extends _0x1de503(){['id'];[_0x421906(0x18c)];[_0x421906(0x183)];[_0x421906(0x1a0)]=[];[_0x421906(0x1a6)]=new _0x544027([]);[_0x421906(0x1b8)]=new _0x544027([]);[_0x421906(0x178)]=[];[_0x421906(0x17a)]=!0x1;[_0x421906(0x172)];[_0x421906(0x19c)];[_0x421906(0x18d)];[_0x421906(0x1a4)];[_0x421906(0x19f)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x47dbaf,content:_0x204e5e='',isDone:_0x4a212e=!0x1,interactionId:_0x238757,areActionsDisabled:_0xb27fd5,documentContextContent:_0x318e7f,editor:_0x1f3517,id:_0x1881ce}){const _0xf1772b=_0x421906;super(),this['id']=_0x1881ce||_0x29b3ba(),this[_0xf1772b(0x18c)]=_0x238757,this[_0xf1772b(0x183)]=_0x47dbaf,this[_0xf1772b(0x17a)]=!!_0xb27fd5,this[_0xf1772b(0x1a4)]=_0x1f3517,this[_0xf1772b(0x19c)]=new _0x23ab1b(),this[_0xf1772b(0x18d)]=new _0x15b45e(),this[_0xf1772b(0x172)]=_0x24b5bb(_0x318e7f||''),this[_0xf1772b(0x1b6)](_0xf1772b(0x17e),_0x4a212e),this['on'](_0xf1772b(0x1a3),()=>{const _0x114a7c=_0xf1772b;this[_0x114a7c(0x19a)]();}),this[_0xf1772b(0x1b6)](_0xf1772b(0x1bb),_0x204e5e);}[_0x421906(0x173)](_0x51d695){const _0x4202e4=_0x421906;this[_0x4202e4(0x1b6)](_0x4202e4(0x1bb),this[_0x4202e4(0x1bb)]+_0x51d695);}[_0x421906(0x1a1)](){const _0xdba8b2=_0x421906;this[_0xdba8b2(0x17e)]||(this[_0xdba8b2(0x1b6)](_0xdba8b2(0x17e),!0x0),this[_0xdba8b2(0x19a)]());}[_0x421906(0x191)](){const _0xf53500=_0x421906;this[_0xf53500(0x1b4)]();}[_0x421906(0x171)](_0xe4a478,_0x1cbbc6){const _0x495bcf=_0x421906;this[_0x495bcf(0x178)][_0xe4a478][_0x495bcf(0x194)]=_0x1cbbc6,this[_0x495bcf(0x18a)](_0x495bcf(0x1aa),{'reply':this,'index':_0xe4a478,'state':_0x1cbbc6});}[_0x421906(0x1b9)]({showDiff:_0x301c32,groupIndex:_0x27a5ba}){const _0x11f468=_0x421906;if(!this[_0x11f468(0x1a4)])throw new _0x36b64d(_0x11f468(0x1b2),null,{'aiReply':this});const _0x1cb6cd=this[_0x11f468(0x180)](_0x301c32,_0x27a5ba);if(_0x1cb6cd)return _0x1cb6cd;let _0xa3869c=[];if(void 0x0===_0x27a5ba)_0xa3869c=this[_0x11f468(0x178)];else{const _0x516b7c=this[_0x11f468(0x178)][_0x11f468(0x181)](({index:_0x3dc651})=>_0x3dc651===_0x27a5ba);if(!_0x516b7c)throw new _0x36b64d(_0x11f468(0x177),null,{'aiReply':this,'groupIndex':_0x27a5ba});_0xa3869c=[_0x516b7c];}const _0x5223ac=_0x3e0f8d({'editor':this[_0x11f468(0x1a4)],'showDiff':_0x301c32,'changeGroups':_0xa3869c,'documentContextContent':this[_0x11f468(0x172)]});return this[_0x11f468(0x190)](_0x301c32,_0x5223ac),_0x5223ac;}[_0x421906(0x180)](_0x235c34,_0x175c6f){const _0x5dec8a=_0x421906,_0x4bcfd6=_0x235c34?_0x5dec8a(0x1af):_0x5dec8a(0x18e);if(!this[_0x5dec8a(0x19f)][_0x4bcfd6][_0x5dec8a(0x198)])return null;const _0x47b128=this[_0x5dec8a(0x19f)][_0x4bcfd6];if(void 0x0===_0x175c6f)return _0x3a3d82(_0x47b128);{const _0x18215f=_0x47b128[_0x5dec8a(0x181)](({index:_0x398af4})=>_0x398af4===_0x175c6f);if(_0x18215f)return[_0x3a3d82(_0x18215f)];}return null;}[_0x421906(0x190)](_0x409c24,_0x49a3d0){const _0x31ff6e=_0x421906,_0x246b4a=_0x409c24?_0x31ff6e(0x1af):_0x31ff6e(0x18e);_0x49a3d0[_0x31ff6e(0x170)](_0x53c698=>{const _0x502ad5=_0x31ff6e,_0x568799=this[_0x502ad5(0x19f)][_0x246b4a],_0x1612e4=_0x568799[_0x502ad5(0x181)](({index:_0x14c2d8})=>_0x14c2d8===_0x53c698[_0x502ad5(0x17b)]);if(_0x1612e4){const _0x15a7b8=_0x568799[_0x502ad5(0x179)](_0x1612e4);_0x568799[_0x502ad5(0x1ae)](_0x15a7b8,0x1,_0x53c698);}else _0x568799[_0x502ad5(0x196)](_0x53c698);});}[_0x421906(0x19a)](){const _0xe2b875=_0x421906;if(_0xe2b875(0x1b7)===this[_0xe2b875(0x183)]){this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x1bf)](this[_0xe2b875(0x1bb)]);const _0x5bed0b=this[_0xe2b875(0x178)];this[_0xe2b875(0x1ad)]();const _0x25c824=this[_0xe2b875(0x1a2)](_0x5bed0b,this[_0xe2b875(0x178)]);(_0x25c824[_0xe2b875(0x198)]||this[_0xe2b875(0x17e)])&&(this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this,_0x25c824),this[_0xe2b875(0x19f)][_0xe2b875(0x1af)][_0xe2b875(0x198)]=this[_0xe2b875(0x19f)][_0xe2b875(0x18e)][_0xe2b875(0x198)]=0x0);}else this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x199)](this[_0xe2b875(0x1bb)]),this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this);}[_0x421906(0x1a2)](_0x17052e,_0x15a21b){const _0x4a17fe=_0x421906,_0x3ecae2=[];for(const _0x229669 of _0x15a21b){const _0xb7e501=_0x17052e[_0x229669[_0x4a17fe(0x17b)]];_0xb7e501?_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]!==_0x229669[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]?_0x3ecae2[_0x4a17fe(0x196)](_0x229669):_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x170)]((_0x32b1f3,_0x165167)=>{const _0xac56f5=_0x4a17fe,_0x24c901=_0x229669[_0xac56f5(0x1c5)][_0x165167];_0x32b1f3['id']!==_0x24c901['id']&&_0x3ecae2[_0xac56f5(0x196)](_0x229669);}):_0x3ecae2[_0x4a17fe(0x196)](_0x229669);}return _0x3ecae2;}[_0x421906(0x1ad)](){const _0x5062f3=_0x421906,_0x13a9a8=new _0x4e86bb('p',{},[new _0x4e86bb(_0x5062f3(0x17d),{'style':_0x5062f3(0x19d)},[new _0x360a82(_0x378c95(this[_0x5062f3(0x1a4)][_0x5062f3(0x1be)],_0x5062f3(0x189)))])]),_0x174517=this[_0x5062f3(0x18d)][_0x5062f3(0x1b5)](this[_0x5062f3(0x1a6)],this[_0x5062f3(0x172)][_0x5062f3(0x193)](!0x0),{'markUnstableElements':!this[_0x5062f3(0x17e)],'replaceRemovedWith':_0x13a9a8,'cutAfterLastChange':!this[_0x5062f3(0x17e)]});if(!_0x174517[_0x5062f3(0x1b1)][_0x5062f3(0x198)]&&!this[_0x5062f3(0x17e)])return;this[_0x5062f3(0x1b8)]=_0x174517[_0x5062f3(0x1a6)];let _0x2a16a2=[];if(_0x4f7572(_0xf5b872=>{const _0x1bac20=_0x5062f3,_0x2367b4=_0x21030a(_0xf5b872,_0x1bac20(0x1bd));if(!_0x2367b4||!_0x45be95(_0x2367b4))return!0x1;const _0x478e10=[_0xf5b872,..._0x202a00(_0xf5b872)]['at'](-0x2);if(_0xf5b872!=_0x478e10){const _0xc144b1=_0x21030a(_0x478e10,_0x1bac20(0x1bd));_0x45be95(_0xc144b1)||(_0x2a16a2[_0x1bac20(0x196)]({'node':_0x478e10,'id':_0xc144b1,'type':_0x1bac20(0x17c)}),_0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x196)](_0xc144b1));}else _0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x17c),'id':_0x2367b4}):_0x174517[_0x1bac20(0x174)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1a9),'id':_0x2367b4,'anchorId':_0x21030a(_0xf5b872[_0x1bac20(0x1c1)],_0x1bac20(0x1bd))}):_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1bc),'id':_0x2367b4});return!0x0;},this[_0x5062f3(0x1b8)]),_0x2a16a2=_0x2a16a2[_0x5062f3(0x1c3)](({node:_0x565c72})=>[..._0x202a00(_0x565c72),_0x565c72][_0x5062f3(0x1b3)](_0x346b21=>!_0x21030a(_0x346b21,_0x5062f3(0x175)))),0x0==_0x2a16a2[_0x5062f3(0x198)])return;const _0x2a46e8=[[_0x2a16a2[0x0]]];for(let _0x1201b2=0x1;_0x1201b2<_0x2a16a2[_0x5062f3(0x198)];_0x1201b2++){const _0x364710=_0x2a46e8[_0x2a46e8[_0x5062f3(0x198)]-0x1],_0x57cabc=_0x364710[_0x364710[_0x5062f3(0x198)]-0x1];_0x2a16a2[_0x1201b2][_0x5062f3(0x18f)][_0x5062f3(0x1c1)]==_0x57cabc[_0x5062f3(0x18f)]&&_0x5062f3(0x17c)!=_0x2a16a2[_0x1201b2][_0x5062f3(0x183)]&&_0x5062f3(0x17c)!=_0x57cabc[_0x5062f3(0x183)]?_0x364710[_0x5062f3(0x196)](_0x2a16a2[_0x1201b2]):_0x2a46e8[_0x5062f3(0x196)]([_0x2a16a2[_0x1201b2]]);}for(const _0x27beaa of _0x2a46e8){const _0x55482c=_0x27beaa[0x0],_0x160509=_0x27beaa[_0x27beaa[_0x5062f3(0x198)]-0x1],_0x15881c=_0x262d2b(_0x55482c[_0x5062f3(0x18f)][_0x5062f3(0x1c1)]);_0x15881c&&_0x27beaa[_0x5062f3(0x1a7)](_0x15881c);const _0x21cb61=_0x262d2b(_0x160509[_0x5062f3(0x18f)][_0x5062f3(0x1ba)]);_0x21cb61&&_0x27beaa[_0x5062f3(0x196)](_0x21cb61);}function _0x45be95(_0x52a0e9){const _0x43828e=_0x5062f3;return _0x174517[_0x43828e(0x1b1)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x174)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x1ac)][_0x43828e(0x1c2)](_0x52a0e9);}function _0x262d2b(_0x41f889){const _0x2b9820=_0x5062f3;if(_0x41f889&&_0x21030a(_0x41f889,_0x2b9820(0x1bd))&&!_0x21030a(_0x41f889,_0x2b9820(0x175))){const _0x3b291d=_0x21030a(_0x41f889,_0x2b9820(0x1bd));if(!_0x45be95(_0x3b291d))return{'node':_0x41f889,'type':_0x2b9820(0x19e),'id':_0x3b291d};}return null;}this[_0x5062f3(0x178)]=_0x2a46e8[_0x5062f3(0x1a8)]((_0x2adb0f,_0x40d5b3)=>({'changes':_0x2adb0f,'state':_0x5062f3(0x195),'index':_0x40d5b3}));}}export function isValidReplyType(_0x3fb51d){const _0x44c1c6=_0x421906;return Object[_0x44c1c6(0x18b)](AI_REPLY_TYPES)[_0x44c1c6(0x1c2)](_0x3fb51d);}export function isIgnoredReplyType(_0x27dbbe){const _0x1d2bc7=_0x421906;return AI_REPLY_TYPES_IGNORED[_0x1d2bc7(0x1c2)](_0x27dbbe);}export function isReplyTitleType(_0x5d1f18){return _0x5d1f18===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xad9043){const _0x436aad=_0x421906;return _0x436aad(0x182)===_0xad9043;}
23
+ const _0x593493=_0x216a;(function(_0x22ad92,_0x4a8e5b){const _0x5e251c=_0x216a,_0x586e09=_0x22ad92();while(!![]){try{const _0x30b922=parseInt(_0x5e251c(0x1bb))/0x1*(-parseInt(_0x5e251c(0x1b4))/0x2)+-parseInt(_0x5e251c(0x1d4))/0x3*(parseInt(_0x5e251c(0x19f))/0x4)+parseInt(_0x5e251c(0x1dc))/0x5*(parseInt(_0x5e251c(0x1be))/0x6)+parseInt(_0x5e251c(0x1e5))/0x7+-parseInt(_0x5e251c(0x1ea))/0x8+-parseInt(_0x5e251c(0x1ca))/0x9*(parseInt(_0x5e251c(0x1c9))/0xa)+parseInt(_0x5e251c(0x1bf))/0xb*(parseInt(_0x5e251c(0x1cb))/0xc);if(_0x30b922===_0x4a8e5b)break;else _0x586e09['push'](_0x586e09['shift']());}catch(_0x3fb898){_0x586e09['push'](_0x586e09['shift']());}}}(_0x4f7c,0x51c92));import{CKEditorError as _0x1f2991,ObservableMixin as _0x522e51,uid as _0x36e269}from'ckeditor5/src/utils.js';import{Element as _0x316c3a,findAll as _0x10fc03,getAttribute as _0x350188,getParents as _0x514d4c,Document as _0x3753c9,parse as _0x51c887,Text as _0x29c142}from'../utils/htmlparser.js';import{AIResponseParser as _0x3a2ff9}from'../pipeline/airesponseparser.js';function _0x4f7c(){const _0x3245fa=['2779651guAixi','span','_getCachedContentParts','web-search','state','2572712oVSNAz','node','every','new','newNodeIds','cloneNode','values','_setCachedContentParts','nextSibling','data-unstable','content','includes','color:\x20#808080;\x20font-style:\x20italic','1287608hlzocv','removedNodeIds','changes','data-id','text-delta','splice','removed','ai-reply-get-content-parts-group-not-found','merge','find','stopListening','fire','parseAndNormalizeHTML','context','index','previousSibling','replyContentUpdated','reasoning','editor','appendContent','destroy','2IDDPbS','conversation-title','documentContextContent','withDiff','sources','areActionsDisabled','source','515640kDXfXQ','map','parsedContent','306VUEVuU','6815666QVPOeC','pending','replyChangeGroupStateUpdated','indexOf','convertMarkdownToHTML','setChangeGroupState','forEach','done','onContentChange','set','1548790uMCeuV','9odFAfs','24CtmBLr','ai-get-editor-from-context-no-editor','getContentParts','cachedSuggestionContentParts','filter','modifiedNodeIds','withoutDiff','unshift','AI_SUGGESTION_CONTENT_PART_REMOVED','3diHltx','push','isDone','type','updateChangeGroups','modification-delta','interactionId','aiResponseApplier','1245VXmwTX','changeGroups','parsedMergedContent','aiResponseParser','length','locale','change:content','_getDifferentChangeGroups','modified'];_0x4f7c=function(){return _0x3245fa;};return _0x4f7c();}import{AIResponseApplier as _0x519bc1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x62f285}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x414239}from'../utils/common-translations.js';import{cloneDeep as _0x44f0b5}from'es-toolkit';export const AI_REPLY_TYPES=[_0x593493(0x1d9),_0x593493(0x1a3),_0x593493(0x1e8),_0x593493(0x1b0)];export const AI_REPLY_TYPES_IGNORED=[_0x593493(0x1b5)];export const AI_REPLY_TITLE_TYPE=_0x593493(0x1b5);export class AIReply extends _0x522e51(){['id'];[_0x593493(0x1da)];[_0x593493(0x1d7)];[_0x593493(0x1b8)]=[];[_0x593493(0x1bd)]=new _0x3753c9([]);[_0x593493(0x1de)]=new _0x3753c9([]);[_0x593493(0x1dd)]=[];[_0x593493(0x1b9)]=!0x1;[_0x593493(0x1b6)];[_0x593493(0x1df)];[_0x593493(0x1db)];[_0x593493(0x1b1)];[_0x593493(0x1ce)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x221d9a,content:_0x362e62='',isDone:_0x53d6d5=!0x1,interactionId:_0xa77fa3,areActionsDisabled:_0x4b07d0,documentContextContent:_0x45fa52,editor:_0x74d187,id:_0xbcdba6}){const _0x57febe=_0x593493;super(),this['id']=_0xbcdba6||_0x36e269(),this[_0x57febe(0x1da)]=_0xa77fa3,this[_0x57febe(0x1d7)]=_0x221d9a,this[_0x57febe(0x1b9)]=!!_0x4b07d0,this[_0x57febe(0x1b1)]=_0x74d187,this[_0x57febe(0x1df)]=new _0x3a2ff9(),this[_0x57febe(0x1db)]=new _0x519bc1(),this[_0x57febe(0x1b6)]=_0x51c887(_0x45fa52||''),this[_0x57febe(0x1c8)](_0x57febe(0x1d6),_0x53d6d5),this['on'](_0x57febe(0x1e2),()=>{const _0x27f38a=_0x57febe;this[_0x27f38a(0x1c7)]();}),this[_0x57febe(0x1c8)](_0x57febe(0x19c),_0x362e62);}[_0x593493(0x1b2)](_0x339226){const _0x762ec1=_0x593493;this[_0x762ec1(0x1c8)](_0x762ec1(0x19c),this[_0x762ec1(0x19c)]+_0x339226);}[_0x593493(0x1c6)](){const _0x21ca1f=_0x593493;this[_0x21ca1f(0x1d6)]||(this[_0x21ca1f(0x1c8)](_0x21ca1f(0x1d6),!0x0),this[_0x21ca1f(0x1c7)]());}[_0x593493(0x1b3)](){const _0x2cf336=_0x593493;this[_0x2cf336(0x1a9)]();}[_0x593493(0x1c4)](_0x4cb3e5,_0x56aa76){const _0x3db98f=_0x593493;this[_0x3db98f(0x1dd)][_0x4cb3e5][_0x3db98f(0x1e9)]=_0x56aa76,this[_0x3db98f(0x1aa)](_0x3db98f(0x1c1),{'reply':this,'index':_0x4cb3e5,'state':_0x56aa76});}[_0x593493(0x1cd)]({showDiff:_0x2c0d70,groupIndex:_0x29b6d3}){const _0x17b096=_0x593493;if(!this[_0x17b096(0x1b1)])throw new _0x1f2991(_0x17b096(0x1cc),null,{'aiReply':this});const _0x3f8302=this[_0x17b096(0x1e7)](_0x2c0d70,_0x29b6d3);if(_0x3f8302)return _0x3f8302;let _0x2fd6e2=[];if(void 0x0===_0x29b6d3)_0x2fd6e2=this[_0x17b096(0x1dd)];else{const _0x424a7f=this[_0x17b096(0x1dd)][_0x17b096(0x1a8)](({index:_0x451808})=>_0x451808===_0x29b6d3);if(!_0x424a7f)throw new _0x1f2991(_0x17b096(0x1a6),null,{'aiReply':this,'groupIndex':_0x29b6d3});_0x2fd6e2=[_0x424a7f];}const _0x2b262d=_0x62f285({'editor':this[_0x17b096(0x1b1)],'showDiff':_0x2c0d70,'changeGroups':_0x2fd6e2,'documentContextContent':this[_0x17b096(0x1b6)]});return this[_0x17b096(0x1f1)](_0x2c0d70,_0x2b262d),_0x2b262d;}[_0x593493(0x1e7)](_0xdbc3d0,_0x48013a){const _0x154fe1=_0x593493,_0x29abff=_0xdbc3d0?_0x154fe1(0x1b7):_0x154fe1(0x1d1);if(!this[_0x154fe1(0x1ce)][_0x29abff][_0x154fe1(0x1e0)])return null;const _0x436c7c=this[_0x154fe1(0x1ce)][_0x29abff];if(void 0x0===_0x48013a)return _0x44f0b5(_0x436c7c);{const _0x4b5e97=_0x436c7c[_0x154fe1(0x1a8)](({index:_0xe21fd5})=>_0xe21fd5===_0x48013a);if(_0x4b5e97)return[_0x44f0b5(_0x4b5e97)];}return null;}[_0x593493(0x1f1)](_0x174ce6,_0x40dbe2){const _0x43b0a5=_0x593493,_0xf913af=_0x174ce6?_0x43b0a5(0x1b7):_0x43b0a5(0x1d1);_0x40dbe2[_0x43b0a5(0x1c5)](_0x188593=>{const _0x578d2b=_0x43b0a5,_0x5ca1cd=this[_0x578d2b(0x1ce)][_0xf913af],_0x2bdb61=_0x5ca1cd[_0x578d2b(0x1a8)](({index:_0x34f130})=>_0x34f130===_0x188593[_0x578d2b(0x1ad)]);if(_0x2bdb61){const _0x5e37d0=_0x5ca1cd[_0x578d2b(0x1c2)](_0x2bdb61);_0x5ca1cd[_0x578d2b(0x1a4)](_0x5e37d0,0x1,_0x188593);}else _0x5ca1cd[_0x578d2b(0x1d5)](_0x188593);});}[_0x593493(0x1c7)](){const _0x3872df=_0x593493;if(_0x3872df(0x1d9)===this[_0x3872df(0x1d7)]){this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1ab)](this[_0x3872df(0x19c)]);const _0x3b2b2d=this[_0x3872df(0x1dd)];this[_0x3872df(0x1d8)]();const _0x16d646=this[_0x3872df(0x1e3)](_0x3b2b2d,this[_0x3872df(0x1dd)]);(_0x16d646[_0x3872df(0x1e0)]||this[_0x3872df(0x1d6)])&&(this[_0x3872df(0x1aa)](_0x3872df(0x1af),this,_0x16d646),this[_0x3872df(0x1ce)][_0x3872df(0x1b7)][_0x3872df(0x1e0)]=this[_0x3872df(0x1ce)][_0x3872df(0x1d1)][_0x3872df(0x1e0)]=0x0);}else this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1c3)](this[_0x3872df(0x19c)]),this[_0x3872df(0x1aa)](_0x3872df(0x1af),this);}[_0x593493(0x1e3)](_0x40c25f,_0xc337e7){const _0x385a2c=_0x593493,_0x10cfd7=[];for(const _0x224a1e of _0xc337e7){const _0x2b996d=_0x40c25f[_0x224a1e[_0x385a2c(0x1ad)]];_0x2b996d?_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]!==_0x224a1e[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]?_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e):_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1c5)]((_0x49c3a9,_0x55fbb2)=>{const _0x107da8=_0x385a2c,_0xec1622=_0x224a1e[_0x107da8(0x1a1)][_0x55fbb2];_0x49c3a9['id']!==_0xec1622['id']&&_0x10cfd7[_0x107da8(0x1d5)](_0x224a1e);}):_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e);}return _0x10cfd7;}[_0x593493(0x1d8)](){const _0x1d588a=_0x593493,_0x10253b=new _0x316c3a('p',{},[new _0x316c3a(_0x1d588a(0x1e6),{'style':_0x1d588a(0x19e)},[new _0x29c142(_0x414239(this[_0x1d588a(0x1b1)][_0x1d588a(0x1e1)],_0x1d588a(0x1d3)))])]),_0x54d8e2=this[_0x1d588a(0x1db)][_0x1d588a(0x1a7)](this[_0x1d588a(0x1bd)],this[_0x1d588a(0x1b6)][_0x1d588a(0x1ef)](!0x0),{'markUnstableElements':!this[_0x1d588a(0x1d6)],'replaceRemovedWith':_0x10253b,'cutAfterLastChange':!this[_0x1d588a(0x1d6)]});if(!_0x54d8e2[_0x1d588a(0x1d0)][_0x1d588a(0x1e0)]&&!this[_0x1d588a(0x1d6)])return;this[_0x1d588a(0x1de)]=_0x54d8e2[_0x1d588a(0x1bd)];let _0x45caa1=[];if(_0x10fc03(_0x54982a=>{const _0x1d8c80=_0x1d588a,_0x3ca72a=_0x350188(_0x54982a,_0x1d8c80(0x1a2));if(!_0x3ca72a||!_0x21a51a(_0x3ca72a))return!0x1;const _0x41197e=[_0x54982a,..._0x514d4c(_0x54982a)]['at'](-0x2);if(_0x54982a!=_0x41197e){const _0x95e03f=_0x350188(_0x41197e,_0x1d8c80(0x1a2));_0x21a51a(_0x95e03f)||(_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x41197e,'id':_0x95e03f,'type':_0x1d8c80(0x1e4)}),_0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x1d5)](_0x95e03f));}else _0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1e4),'id':_0x3ca72a}):_0x54d8e2[_0x1d8c80(0x1ee)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1ed),'id':_0x3ca72a,'anchorId':_0x350188(_0x54982a[_0x1d8c80(0x1ae)],_0x1d8c80(0x1a2))}):_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1a5),'id':_0x3ca72a});return!0x0;},this[_0x1d588a(0x1de)]),_0x45caa1=_0x45caa1[_0x1d588a(0x1cf)](({node:_0x1348a7})=>[..._0x514d4c(_0x1348a7),_0x1348a7][_0x1d588a(0x1ec)](_0x1c8a26=>!_0x350188(_0x1c8a26,_0x1d588a(0x19b)))),0x0==_0x45caa1[_0x1d588a(0x1e0)])return;const _0x5ad8e1=[[_0x45caa1[0x0]]];for(let _0x1cb294=0x1;_0x1cb294<_0x45caa1[_0x1d588a(0x1e0)];_0x1cb294++){const _0x9de08=_0x5ad8e1[_0x5ad8e1[_0x1d588a(0x1e0)]-0x1],_0xddc12=_0x9de08[_0x9de08[_0x1d588a(0x1e0)]-0x1];_0x45caa1[_0x1cb294][_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]==_0xddc12[_0x1d588a(0x1eb)]&&_0x1d588a(0x1e4)!=_0x45caa1[_0x1cb294][_0x1d588a(0x1d7)]&&_0x1d588a(0x1e4)!=_0xddc12[_0x1d588a(0x1d7)]?_0x9de08[_0x1d588a(0x1d5)](_0x45caa1[_0x1cb294]):_0x5ad8e1[_0x1d588a(0x1d5)]([_0x45caa1[_0x1cb294]]);}for(const _0x246721 of _0x5ad8e1){const _0x599533=_0x246721[0x0],_0x1dabb0=_0x246721[_0x246721[_0x1d588a(0x1e0)]-0x1],_0x917677=_0x923aac(_0x599533[_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]);_0x917677&&_0x246721[_0x1d588a(0x1d2)](_0x917677);const _0x42a338=_0x923aac(_0x1dabb0[_0x1d588a(0x1eb)][_0x1d588a(0x19a)]);_0x42a338&&_0x246721[_0x1d588a(0x1d5)](_0x42a338);}function _0x21a51a(_0x1aefe9){const _0x5145dc=_0x1d588a;return _0x54d8e2[_0x5145dc(0x1d0)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1ee)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1a0)][_0x5145dc(0x19d)](_0x1aefe9);}function _0x923aac(_0x2f0667){const _0x3e8bd6=_0x1d588a;if(_0x2f0667&&_0x350188(_0x2f0667,_0x3e8bd6(0x1a2))&&!_0x350188(_0x2f0667,_0x3e8bd6(0x19b))){const _0xb44fa4=_0x350188(_0x2f0667,_0x3e8bd6(0x1a2));if(!_0x21a51a(_0xb44fa4))return{'node':_0x2f0667,'type':_0x3e8bd6(0x1ac),'id':_0xb44fa4};}return null;}this[_0x1d588a(0x1dd)]=_0x5ad8e1[_0x1d588a(0x1bc)]((_0x2c1394,_0x2df253)=>({'changes':_0x2c1394,'state':_0x1d588a(0x1c0),'index':_0x2df253}));}}function _0x216a(_0x1df85c,_0x49cc84){const _0x4f7ca5=_0x4f7c();return _0x216a=function(_0x216a25,_0x19c05f){_0x216a25=_0x216a25-0x19a;let _0x3f094c=_0x4f7ca5[_0x216a25];return _0x3f094c;},_0x216a(_0x1df85c,_0x49cc84);}export function isValidReplyType(_0xe06df2){const _0x53c996=_0x593493;return Object[_0x53c996(0x1f0)](AI_REPLY_TYPES)[_0x53c996(0x19d)](_0xe06df2);}export function isIgnoredReplyType(_0x5255ec){const _0x4dd88e=_0x593493;return AI_REPLY_TYPES_IGNORED[_0x4dd88e(0x19d)](_0x5255ec);}export function isReplyTitleType(_0x1c5b82){return _0x1c5b82===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa74a4c){const _0x49bc2a=_0x593493;return _0x49bc2a(0x1ba)===_0xa74a4c;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x53aa(_0x2274d2,_0x422aa0){const _0x3f8a92=_0x3f8a();return _0x53aa=function(_0x53aab3,_0x11fbfb){_0x53aab3=_0x53aab3-0xd1;let _0x3fc47f=_0x3f8a92[_0x53aab3];return _0x3fc47f;},_0x53aa(_0x2274d2,_0x422aa0);}function _0x3f8a(){const _0x586948=['12SUmNjv','7829000uyMcAN','previousSibling','data-unstable','8450071XxewfB','_markWrappedElements','data-removed','_existingDataIds','_generateUid','4429707oKzKYP','length','markUnstableElements','childNodes','_getNodeDataId','_markLastTagElementUnstable','new-element','includes','markUnstableElementsDepth','_isDelNode','_findNextElementWithDataId','_getUid','lastTouchedId','nodeType','3956900SoiFVm','has','_findFallbackReferenceNode','_isExistingContentComment','_touchedNodesState','replaceRemovedWith','merge','forEach','parentNode','reverse','trim','map','splice','74138RMRetE','newIds','slice','_isNewNode','removedIds','_insertNodes','_findPrevElementWithDataId','697380RzUUnw','afterbegin','_markUnstableElements','push','filter','_storeDeletedElementIds','27144225ejaFbX','cloneNode','cutAfterLastChange','afterend','true','19SMaYHk','_findReferenceNode','_removeSpecialComments','_hasWrappedParent','_replaceNode','indexOf','invalidIds','lastChild','modifiedIds','data-wrapped-id','nextSibling','from','data-id','_isExistingNode','match','beforebegin'];_0x3f8a=function(){return _0x586948;};return _0x3f8a();}const _0xa22a5b=_0x53aa;(function(_0x3eb6d4,_0x16e4b1){const _0x5bd760=_0x53aa,_0x43449e=_0x3eb6d4();while(!![]){try{const _0xb1a8ea=parseInt(_0x5bd760(0x10f))/0x1*(parseInt(_0x5bd760(0xfd))/0x2)+-parseInt(_0x5bd760(0xe2))/0x3+-parseInt(_0x5bd760(0xf0))/0x4+-parseInt(_0x5bd760(0x104))/0x5*(parseInt(_0x5bd760(0xd9))/0x6)+-parseInt(_0x5bd760(0xdd))/0x7+parseInt(_0x5bd760(0xda))/0x8+parseInt(_0x5bd760(0x10a))/0x9;if(_0xb1a8ea===_0x16e4b1)break;else _0x43449e['push'](_0x43449e['shift']());}catch(_0x52d12f){_0x43449e['push'](_0x43449e['shift']());}}}(_0x3f8a,0xb6636));import{ObservableMixin as _0x490767,uid as _0x7dcf7b}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x115cec,findByAttribute as _0x1c323b,getAttribute as _0x2946a5,isComment as _0x382de5,isTag as _0x3ecd8b,insertElement as _0x30f484,moveElement as _0x47b18b,removeElement as _0x3b07f4,replaceElement as _0x558d5d,serialize as _0x3f0e33,setAttribute as _0x10261f,clone as _0x49bbac,findAllComments as _0x12afb2,getParents as _0x51bd01,getNodeNestingLevel as _0x1dbfa5,areNodesSame as _0x138cb6,removeElementsAfter as _0x4d89bf}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x490767(){[_0xa22a5b(0xe1)];[_0xa22a5b(0xf4)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xa22a5b(0xe0)]=new Set();constructor(_0x58b109){const _0x342a66=_0xa22a5b;super(),this[_0x342a66(0xe1)]=_0x58b109||_0x7dcf7b;}[_0xa22a5b(0xf6)](_0x490dce,_0x5ae247,_0x3c16e2){const _0x4bbf83=_0xa22a5b,_0x179318=_0x49bbac(_0x490dce);if(0x0===_0x5ae247[_0x4bbf83(0xe5)][_0x4bbf83(0xe3)]){const _0x51f110=[];return _0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x179318)[_0x4bbf83(0xf7)](_0x21c979=>{const _0x1c33bc=_0x4bbf83,_0x18881a=this[_0x1c33bc(0xe1)]();_0x10261f(_0x21c979,_0x1c33bc(0xd5),_0x18881a),_0x51f110[_0x1c33bc(0x107)](_0x18881a);}),this[_0x4bbf83(0x111)](_0x179318),{'parsedContent':_0x179318,'newNodeIds':_0x51f110,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0xe7)](_0x179318),this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x115)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=null,this[_0x4bbf83(0xe0)]=new Set(_0x115cec(_0x4bbf83(0xd5),null,_0x5ae247)[_0x4bbf83(0xfb)](_0x387b9e=>_0x2946a5(_0x387b9e,_0x4bbf83(0xd5)))[_0x4bbf83(0x108)](_0x4469eb=>!!_0x4469eb));let _0x177788=-0x1,_0x10bfb3=!0x1;const _0x2b4137=_0x179318[_0x4bbf83(0xe5)],_0x4bf22c=Array[_0x4bbf83(0xd4)](_0x2b4137)[_0x4bbf83(0x108)](_0x1c15bb=>!(0x3===_0x1c15bb[_0x4bbf83(0xef)]&&''===_0x3f0e33(_0x1c15bb)[_0x4bbf83(0xfa)]())),_0x18a477=_0x4bf22c[_0x4bbf83(0xe3)];for(let _0x50f75c=0x0;_0x50f75c<_0x18a477;_0x50f75c++){const _0xd352da=_0x4bf22c[_0x50f75c],_0x14ced5=_0x4bf22c[_0x50f75c+0x1];if(this[_0x4bbf83(0x100)](_0xd352da)){if(-0x1===_0x177788&&(_0x177788=_0x50f75c),this[_0x4bbf83(0xde)](_0xd352da),!this[_0x4bbf83(0x100)](_0x14ced5)){const [_0xb54e33,_0x2c3a19]=this[_0x4bbf83(0x110)](_0xd352da,_0x10bfb3,_0x5ae247);if(_0xb54e33){const _0x2a529f=Array[_0x4bbf83(0xd4)](_0x4bf22c)[_0x4bbf83(0xff)](_0x177788,_0x50f75c+0x1);this[_0x4bbf83(0x102)](_0xb54e33,_0x2a529f,_0x2c3a19),_0x177788=-0x1;}}}else{if(this[_0x4bbf83(0xf3)](_0xd352da))_0x10bfb3=!0x0;else{if(this[_0x4bbf83(0xd6)](_0xd352da)){const _0x5236f3=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));if(_0x5236f3&&this[_0x4bbf83(0xe0)][_0x4bbf83(0xf1)](_0x5236f3)){const _0x384d18=_0x1c323b(_0x4bbf83(0xd5),_0x5236f3,_0x5ae247);this[_0x4bbf83(0x113)](_0x384d18,_0xd352da);}if(this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xe9)](_0x5236f3)){const _0xd6d8e8=this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0x114)](_0x5236f3);this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xfc)](_0xd6d8e8,0x1);}}else{if(this[_0x4bbf83(0xeb)](_0xd352da)){const _0xdbb8cb=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)][_0x4bbf83(0xe9)](_0xdbb8cb)||this[_0x4bbf83(0x109)](_0xd352da);}}}}}for(const _0x587721 of this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]){const _0x5a78a9=_0x1c323b(_0x4bbf83(0xd5),_0x587721,_0x5ae247);if(_0x5a78a9){if(_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xf5)]){this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=_0x587721;const _0x175c90=_0x3c16e2[_0x4bbf83(0xf5)][_0x4bbf83(0x10b)](!0x0);_0x10261f(_0x175c90,_0x4bbf83(0xd5),_0x587721),_0x10261f(_0x175c90,_0x4bbf83(0xdf),_0x4bbf83(0x10e)),_0x558d5d(_0x5a78a9,_0x175c90);}else _0x3b07f4(_0x5a78a9);}}if(_0x115cec(_0x4bbf83(0xd2),null,_0x5ae247)[_0x4bbf83(0xf7)](_0x382f01=>{const _0x905d08=_0x4bbf83,_0x2f52ee=_0x2946a5(_0x382f01,_0x905d08(0xd2)),_0x2e2c08=_0x1c323b(_0x905d08(0xd5),_0x2f52ee,_0x5ae247);_0x2e2c08&&_0x47b18b(_0x2e2c08,_0x382f01);}),_0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x5ae247)[_0x4bbf83(0xf7)](_0x330c67=>{const _0x4d79f4=_0x4bbf83,_0x52ff50=this[_0x4d79f4(0xed)](_0x330c67);_0x10261f(_0x330c67,_0x4d79f4(0xd5),_0x52ff50),this[_0x4d79f4(0xf4)][_0x4d79f4(0xfe)][_0x4d79f4(0x107)](_0x52ff50);}),this[_0x4bbf83(0x111)](_0x5ae247),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0x106)](_0x5ae247,_0x3c16e2[_0x4bbf83(0xea)]||0x0),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0x10c)]&&this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]){let _0x59a869=_0x1c323b(_0x4bbf83(0xd5),this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)],_0x5ae247);for(;_0x59a869;)_0x4d89bf(_0x59a869),_0x59a869=_0x59a869[_0x4bbf83(0xf8)];}return{'parsedContent':_0x5ae247,'newNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)],'modifiedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)],'removedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]};}[_0xa22a5b(0x102)](_0x6c6579,_0x35baac,_0x4dde69){const _0x5bb32c=_0xa22a5b;for(const _0x29538a of _0x35baac){const _0x19d83b=this[_0x5bb32c(0xed)](_0x29538a);_0x10261f(_0x29538a,_0x5bb32c(0xd5),_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xfe)][_0x5bb32c(0x107)](_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xee)]=_0x19d83b;}const _0x2f1eff=_0x5bb32c(0x105)===_0x4dde69||_0x5bb32c(0x10d)===_0x4dde69?_0x35baac[_0x5bb32c(0xf9)]():_0x35baac;for(const _0x42a73d of _0x2f1eff)_0x30f484(_0x6c6579,_0x42a73d,_0x4dde69);}[_0xa22a5b(0x113)](_0x275061,_0x129644){const _0x51baa3=_0xa22a5b;if(!_0x275061)return;if(_0x138cb6(_0x275061,_0x129644))return;const _0x2e6535=this[_0x51baa3(0xed)](_0x275061);_0x10261f(_0x129644,_0x51baa3(0xd5),_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xd1)][_0x51baa3(0x107)](_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xee)]=_0x2e6535,_0x558d5d(_0x275061,_0x129644[_0x51baa3(0x10b)](!0x0));}[_0xa22a5b(0x110)](_0x1522ec,_0x52c129,_0x2481c0){const _0x55975e=_0xa22a5b,_0x5d836e=this[_0x55975e(0x103)](_0x1522ec,!0x1);if(_0x5d836e){const _0x22fc22=this[_0x55975e(0xe6)](_0x5d836e),_0x284420=_0x1c323b(_0x55975e(0xd5),_0x22fc22,_0x2481c0);if(_0x284420)return[_0x284420,_0x55975e(0x10d)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x22fc22);}const _0x52cd80=this[_0x55975e(0xec)](_0x1522ec,!0x1);if(_0x52cd80){const _0x258c07=this[_0x55975e(0xe6)](_0x52cd80),_0x5abec6=_0x1c323b(_0x55975e(0xd5),_0x258c07,_0x2481c0);if(_0x5abec6)return[_0x5abec6,_0x55975e(0xd8)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x258c07);}return _0x52c129?_0x1522ec[_0x55975e(0xd3)]?this[_0x55975e(0xf2)](_0x1522ec,_0x2481c0):[_0x2481c0[_0x55975e(0xe5)][_0x2481c0[_0x55975e(0xe5)][_0x55975e(0xe3)]-0x1],_0x55975e(0x10d)]:[_0x2481c0[_0x55975e(0xe5)][0x0],_0x55975e(0xd8)];}[_0xa22a5b(0xf2)](_0x5e0c9f,_0x391cd5){const _0x4c58fb=_0xa22a5b,_0x1e5dec=[],_0x4a956b=this[_0x4c58fb(0x103)](_0x5e0c9f,!0x0);if(_0x4a956b){const _0x5cbd86=this[_0x4c58fb(0xe6)](_0x4a956b),_0x11eb9f=_0x1c323b(_0x4c58fb(0xd5),_0x5cbd86,_0x391cd5);_0x11eb9f&&_0x1e5dec[_0x4c58fb(0x107)]([_0x11eb9f,_0x4c58fb(0x10d)]);}const _0x411958=this[_0x4c58fb(0xec)](_0x5e0c9f,!0x0);if(_0x411958){const _0x7764da=this[_0x4c58fb(0xe6)](_0x411958),_0x18245a=_0x1c323b(_0x4c58fb(0xd5),_0x7764da,_0x391cd5);_0x18245a&&_0x1e5dec[_0x4c58fb(0x107)]([_0x18245a,_0x4c58fb(0xd8)]);}if(_0x1e5dec[_0x4c58fb(0xe3)]>0x1)return _0x1dbfa5(_0x1e5dec[0x0][0x0])<=_0x1dbfa5(_0x1e5dec[0x1][0x0])?_0x1e5dec[0x0]:_0x1e5dec[0x1];return 0x1===_0x1e5dec[_0x4c58fb(0xe3)]?_0x1e5dec[0x0]:[_0x391cd5[_0x4c58fb(0x116)],_0x4c58fb(0x10d)];}[_0xa22a5b(0xec)](_0x28f726,_0x15c3d1){const _0x36f2ca=_0xa22a5b;let _0x17b31d=_0x28f726[_0x36f2ca(0xd3)],_0x569d0e=null,_0x12d9a3=!0x1;for(;_0x17b31d;){if(_0x382de5(_0x17b31d)){if(this[_0x36f2ca(0xeb)](_0x17b31d)&&(_0x569d0e=_0x17b31d),this[_0x36f2ca(0xf3)](_0x17b31d)&&_0x15c3d1&&!_0x12d9a3){_0x12d9a3=!0x0,_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];continue;}break;}const _0xfce0dd=_0x2946a5(_0x17b31d,_0x36f2ca(0xd5));if(_0xfce0dd&&_0x36f2ca(0xe8)!==_0xfce0dd&&this[_0x36f2ca(0xe0)][_0x36f2ca(0xf1)](_0xfce0dd)){_0x569d0e=_0x17b31d;break;}_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];}return _0x569d0e;}[_0xa22a5b(0x103)](_0x959158,_0x42b730){const _0x20f3c7=_0xa22a5b;let _0x2330f5=_0x959158[_0x20f3c7(0xdb)],_0x524425=null,_0xb54807=!0x1;for(;_0x2330f5;){if(_0x382de5(_0x2330f5)){if(this[_0x20f3c7(0xeb)](_0x2330f5)&&(_0x524425=_0x2330f5),this[_0x20f3c7(0xf3)](_0x2330f5)&&_0x42b730&&!_0xb54807){_0xb54807=!0x0,_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];continue;}break;}const _0x78a01=_0x2946a5(_0x2330f5,_0x20f3c7(0xd5));if(_0x78a01&&_0x20f3c7(0xe8)!==_0x78a01&&this[_0x20f3c7(0xe0)][_0x20f3c7(0xf1)](_0x78a01)){_0x524425=_0x2330f5;break;}_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];}return _0x524425;}[_0xa22a5b(0xde)](_0x5dc72f){const _0x53b41b=_0xa22a5b;_0x3ecd8b(_0x5dc72f)&&_0x115cec(_0x53b41b(0xd5),null,_0x5dc72f)[_0x53b41b(0xf7)](_0x431d7e=>{const _0x407507=_0x53b41b;if(this[_0x407507(0xd6)](_0x431d7e)&&!this[_0x407507(0x112)](_0x431d7e)){const _0x1332ca=_0x2946a5(_0x431d7e,_0x407507(0xd5));_0x10261f(_0x431d7e,_0x407507(0xd2),_0x1332ca),_0x10261f(_0x431d7e,_0x407507(0xd5),null);}});}[_0xa22a5b(0xe6)](_0x4f4e9b){const _0x21469=_0xa22a5b;if(!_0x4f4e9b)return null;if(_0x3ecd8b(_0x4f4e9b))return _0x2946a5(_0x4f4e9b,_0x21469(0xd5));if(_0x382de5(_0x4f4e9b)){const _0x46ad58=_0x3f0e33(_0x4f4e9b)[_0x21469(0xd7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x46ad58&&_0x46ad58[0x1])return _0x46ad58[0x1];}return null;}[_0xa22a5b(0x109)](_0x65d643){const _0x2e0b28=_0xa22a5b;if(_0x382de5(_0x65d643)){const _0x2dcfce=_0x3f0e33(_0x65d643)[_0x2e0b28(0xd7)](/removed[\s*-]data-id="([^"]+)"/);_0x2dcfce&&_0x2dcfce[0x1]&&this[_0x2e0b28(0xf4)][_0x2e0b28(0x101)][_0x2e0b28(0x107)](_0x2dcfce[0x1]);}}[_0xa22a5b(0xed)](_0x2c448f){const _0x2982f4=_0xa22a5b;return this[_0x2982f4(0xd6)](_0x2c448f)?_0x2946a5(_0x2c448f,_0x2982f4(0xd5)):this[_0x2982f4(0xe1)]();}[_0xa22a5b(0x111)](_0x47a7b6){const _0x54f61f=_0xa22a5b;_0x12afb2(_0x47a7b6)[_0x54f61f(0x108)](_0x40a913=>this[_0x54f61f(0xeb)](_0x40a913)||this[_0x54f61f(0xf3)](_0x40a913))[_0x54f61f(0xf7)](_0x5b43ab=>{_0x3b07f4(_0x5b43ab);});}[_0xa22a5b(0xe7)](_0x198a93){const _0x590241=_0xa22a5b,_0x55771f=_0x198a93[_0x590241(0xe5)],_0x4e867d=_0x55771f[_0x55771f[_0x590241(0xe3)]-0x1];_0x4e867d&&_0x3ecd8b(_0x4e867d)&&_0x10261f(_0x4e867d,_0x590241(0xdc),_0x590241(0x10e));}[_0xa22a5b(0x106)](_0x3aca38,_0x607ad5){const _0x3b4d36=_0xa22a5b,_0x1436a0=_0x1c323b(_0x3b4d36(0xdc),_0x3b4d36(0x10e),_0x3aca38);if(!_0x1436a0)return;const _0x39bb70=_0x51bd01(_0x1436a0)[_0x3b4d36(0xff)](0x0,-0x1),_0x48bcaa=_0x39bb70[_0x3b4d36(0xe3)];let _0x36d20c=_0x1436a0;if(_0x48bcaa>_0x607ad5){let _0x3cfb16=_0x48bcaa,_0x21005a=null;for(;_0x3cfb16>_0x607ad5&&_0x3cfb16>=0x0;)_0x3cfb16--,_0x21005a=_0x39bb70[_0x3cfb16];_0x21005a&&(_0x36d20c=_0x21005a,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x21005a,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}else{if(_0x48bcaa<_0x607ad5){let _0x358d85=_0x48bcaa,_0x914add=_0x1436a0;for(;_0x358d85<_0x607ad5;){const _0x5dcdff=_0x914add[_0x3b4d36(0xe5)][_0x3b4d36(0x108)](_0x7b725b=>_0x3ecd8b(_0x7b725b));if(0x0===_0x5dcdff[_0x3b4d36(0xe3)])break;_0x358d85++,_0x914add=_0x5dcdff[_0x5dcdff[_0x3b4d36(0xe3)]-0x1];}_0x914add&&(_0x36d20c=_0x914add,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x914add,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}}let _0x52750f=_0x36d20c;for(;_0x52750f;){for(;_0x52750f[_0x3b4d36(0xd3)];)_0x52750f=_0x52750f[_0x3b4d36(0xd3)],_0x3ecd8b(_0x52750f)&&_0x10261f(_0x52750f,_0x3b4d36(0xdc),_0x3b4d36(0x10e));_0x52750f=_0x52750f[_0x3b4d36(0xf8)];}}[_0xa22a5b(0x100)](_0x433cda){const _0x3ad879=_0xa22a5b;return Boolean(_0x3ad879(0xe8)===_0x2946a5(_0x433cda,_0x3ad879(0xd5)));}[_0xa22a5b(0xd6)](_0x3d5b9d){const _0x584166=_0xa22a5b;return Boolean((_0x2946a5(_0x3d5b9d,_0x584166(0xd5))||'')[_0x584166(0xe3)]>0x0&&_0x584166(0xe8)!==_0x2946a5(_0x3d5b9d,_0x584166(0xd5)));}[_0xa22a5b(0xeb)](_0x3c4835){const _0x4cdc2c=_0xa22a5b;return!!_0x3c4835&&Boolean(_0x382de5(_0x3c4835)&&_0x3f0e33(_0x3c4835)[_0x4cdc2c(0xd7)](/removed[\s*-]data-id="[^"]+"/));}[_0xa22a5b(0x112)](_0xfa9151){const _0xdc09a=_0xa22a5b;let _0x7e4161=_0xfa9151[_0xdc09a(0xf8)];for(;_0x7e4161;){if(_0x2946a5(_0x7e4161,_0xdc09a(0xd2)))return!0x0;_0x7e4161=_0x7e4161[_0xdc09a(0xf8)];}return!0x1;}[_0xa22a5b(0xf3)](_0x5aae87){const _0x100f5e=_0xa22a5b;return Boolean(_0x382de5(_0x5aae87)&&_0x3f0e33(_0x5aae87)[_0x100f5e(0xd7)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x46e315=_0x4d48;function _0x4d48(_0x20c747,_0x436ac5){const _0x53c868=_0x53c8();return _0x4d48=function(_0x4d4829,_0x333970){_0x4d4829=_0x4d4829-0x9b;let _0x5cd0ee=_0x53c868[_0x4d4829];return _0x5cd0ee;},_0x4d48(_0x20c747,_0x436ac5);}(function(_0x15dc0c,_0x553dc8){const _0x395c89=_0x4d48,_0x66627c=_0x15dc0c();while(!![]){try{const _0x34983a=-parseInt(_0x395c89(0xdc))/0x1*(parseInt(_0x395c89(0xae))/0x2)+parseInt(_0x395c89(0xb0))/0x3*(-parseInt(_0x395c89(0xbe))/0x4)+parseInt(_0x395c89(0xc2))/0x5*(parseInt(_0x395c89(0xa3))/0x6)+parseInt(_0x395c89(0xcb))/0x7*(-parseInt(_0x395c89(0xbd))/0x8)+-parseInt(_0x395c89(0x9c))/0x9+-parseInt(_0x395c89(0xd0))/0xa*(-parseInt(_0x395c89(0x9f))/0xb)+parseInt(_0x395c89(0xaf))/0xc*(parseInt(_0x395c89(0xc3))/0xd);if(_0x34983a===_0x553dc8)break;else _0x66627c['push'](_0x66627c['shift']());}catch(_0x28b767){_0x66627c['push'](_0x66627c['shift']());}}}(_0x53c8,0x45232));import{ObservableMixin as _0x258ec0,uid as _0x4c15dc}from'ckeditor5/src/utils.js';function _0x53c8(){const _0xca0f3c=['from','match','_markUnstableElements','175355IMivnN','6513nBqdxs','data-wrapped-id','_removeSpecialComments','_replaceNode','_findNextElementWithDataId','_markLastTagElementUnstable','data-unstable','newIds','1561595maAzxU','data-removed','_findFallbackReferenceNode','length','_generateUid','3310350EaQfvR','splice','_existingDataIds','removedIds','data-id','_markWrappedElements','map','nodeType','childNodes','_isExistingContentComment','_findReferenceNode','_isNewNode','466469tkTLrH','indexOf','filter','afterend','_isExistingNode','replaceRemovedWith','afterbegin','_touchedNodesState','new-element','beforebegin','459837FuiCYe','_getUid','lastChild','11SXbIIc','slice','merge','invalidIds','84BUzECM','_getNodeDataId','trim','_findPrevElementWithDataId','cutAfterLastChange','true','forEach','has','_insertNodes','cloneNode','push','2HGQXkg','12192wzEzsU','76803qsTRIM','_isDelNode','includes','lastTouchedId','_storeDeletedElementIds','nextSibling','reverse','parentNode','previousSibling','markUnstableElements','modifiedIds','markUnstableElementsDepth','_hasWrappedParent','8LlLkCA','48qICGsa'];_0x53c8=function(){return _0xca0f3c;};return _0x53c8();}import{findAllByAttribute as _0x5cd323,findByAttribute as _0xde5fce,getAttribute as _0x256857,isComment as _0x22821a,isTag as _0x454369,insertElement as _0xd22dc5,moveElement as _0xea4c65,removeElement as _0x323bdf,replaceElement as _0x53f494,serialize as _0xacb80d,setAttribute as _0x50f153,clone as _0x4f1a86,findAllComments as _0x2f5be0,getParents as _0x481fef,getNodeNestingLevel as _0x3ea9e0,areNodesSame as _0x4b5d3b,removeElementsAfter as _0x47346d}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x258ec0(){[_0x46e315(0xcf)];[_0x46e315(0xe3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x46e315(0xd2)]=new Set();constructor(_0x65303c){const _0x5bf4=_0x46e315;super(),this[_0x5bf4(0xcf)]=_0x65303c||_0x4c15dc;}[_0x46e315(0xa1)](_0x5414b9,_0x887038,_0x485b44){const _0x344975=_0x46e315,_0x126800=_0x4f1a86(_0x5414b9);if(0x0===_0x887038[_0x344975(0xd8)][_0x344975(0xce)]){const _0x5e3b6e=[];return _0x5cd323(_0x344975(0xd4),_0x344975(0xe4),_0x126800)[_0x344975(0xa9)](_0x597218=>{const _0x135690=_0x344975,_0x89594b=this[_0x135690(0xcf)]();_0x50f153(_0x597218,_0x135690(0xd4),_0x89594b),_0x5e3b6e[_0x135690(0xad)](_0x89594b);}),this[_0x344975(0xc5)](_0x126800),{'parsedContent':_0x126800,'newNodeIds':_0x5e3b6e,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x485b44&&_0x485b44[_0x344975(0xb9)]&&this[_0x344975(0xc8)](_0x126800),this[_0x344975(0xe3)][_0x344975(0xca)]=[],this[_0x344975(0xe3)][_0x344975(0xba)]=[],this[_0x344975(0xe3)][_0x344975(0xd3)]=[],this[_0x344975(0xe3)][_0x344975(0xa2)]=[],this[_0x344975(0xe3)][_0x344975(0xb3)]=null,this[_0x344975(0xd2)]=new Set(_0x5cd323(_0x344975(0xd4),null,_0x887038)[_0x344975(0xd6)](_0x36869e=>_0x256857(_0x36869e,_0x344975(0xd4)))[_0x344975(0xde)](_0x194e93=>!!_0x194e93));let _0x3159c3=-0x1,_0x1d003d=!0x1;const _0x274f8b=_0x126800[_0x344975(0xd8)],_0xf5dab4=Array[_0x344975(0xbf)](_0x274f8b)[_0x344975(0xde)](_0x59b825=>!(0x3===_0x59b825[_0x344975(0xd7)]&&''===_0xacb80d(_0x59b825)[_0x344975(0xa5)]())),_0x423b20=_0xf5dab4[_0x344975(0xce)];for(let _0xc91eb=0x0;_0xc91eb<_0x423b20;_0xc91eb++){const _0x2836e3=_0xf5dab4[_0xc91eb],_0x5a4d39=_0xf5dab4[_0xc91eb+0x1];if(this[_0x344975(0xdb)](_0x2836e3)){if(-0x1===_0x3159c3&&(_0x3159c3=_0xc91eb),this[_0x344975(0xd5)](_0x2836e3),!this[_0x344975(0xdb)](_0x5a4d39)){const [_0x17b622,_0x3bb3ed]=this[_0x344975(0xda)](_0x2836e3,_0x1d003d,_0x887038);if(_0x17b622){const _0x6c2b78=Array[_0x344975(0xbf)](_0xf5dab4)[_0x344975(0xa0)](_0x3159c3,_0xc91eb+0x1);this[_0x344975(0xab)](_0x17b622,_0x6c2b78,_0x3bb3ed),_0x3159c3=-0x1;}}}else{if(this[_0x344975(0xd9)](_0x2836e3))_0x1d003d=!0x0;else{if(this[_0x344975(0xe0)](_0x2836e3)){const _0x32eec8=_0x256857(_0x2836e3,_0x344975(0xd4));if(_0x32eec8&&this[_0x344975(0xd2)][_0x344975(0xaa)](_0x32eec8)){const _0x384c72=_0xde5fce(_0x344975(0xd4),_0x32eec8,_0x887038);this[_0x344975(0xc6)](_0x384c72,_0x2836e3);}if(this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xb2)](_0x32eec8)){const _0x551b3a=this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xdd)](_0x32eec8);this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xd1)](_0x551b3a,0x1);}}else{if(this[_0x344975(0xb1)](_0x2836e3)){const _0xe9dbb4=_0x256857(_0x2836e3,_0x344975(0xd4));this[_0x344975(0xe3)][_0x344975(0xba)][_0x344975(0xb2)](_0xe9dbb4)||this[_0x344975(0xb4)](_0x2836e3);}}}}}for(const _0x500e70 of this[_0x344975(0xe3)][_0x344975(0xd3)]){const _0x49d14b=_0xde5fce(_0x344975(0xd4),_0x500e70,_0x887038);if(_0x49d14b){if(_0x485b44&&_0x485b44[_0x344975(0xe1)]){this[_0x344975(0xe3)][_0x344975(0xb3)]=_0x500e70;const _0x486abb=_0x485b44[_0x344975(0xe1)][_0x344975(0xac)](!0x0);_0x50f153(_0x486abb,_0x344975(0xd4),_0x500e70),_0x50f153(_0x486abb,_0x344975(0xcc),_0x344975(0xa8)),_0x53f494(_0x49d14b,_0x486abb);}else _0x323bdf(_0x49d14b);}}if(_0x5cd323(_0x344975(0xc4),null,_0x887038)[_0x344975(0xa9)](_0x56d34d=>{const _0x4e40a4=_0x344975,_0x2c9a3b=_0x256857(_0x56d34d,_0x4e40a4(0xc4)),_0x594b10=_0xde5fce(_0x4e40a4(0xd4),_0x2c9a3b,_0x887038);_0x594b10&&_0xea4c65(_0x594b10,_0x56d34d);}),_0x5cd323(_0x344975(0xd4),_0x344975(0xe4),_0x887038)[_0x344975(0xa9)](_0x12ec6d=>{const _0x4c3422=_0x344975,_0x150fe1=this[_0x4c3422(0x9d)](_0x12ec6d);_0x50f153(_0x12ec6d,_0x4c3422(0xd4),_0x150fe1),this[_0x4c3422(0xe3)][_0x4c3422(0xca)][_0x4c3422(0xad)](_0x150fe1);}),this[_0x344975(0xc5)](_0x887038),_0x485b44&&_0x485b44[_0x344975(0xb9)]&&this[_0x344975(0xc1)](_0x887038,_0x485b44[_0x344975(0xbb)]||0x0),_0x485b44&&_0x485b44[_0x344975(0xa7)]&&this[_0x344975(0xe3)][_0x344975(0xb3)]){let _0x5de5d0=_0xde5fce(_0x344975(0xd4),this[_0x344975(0xe3)][_0x344975(0xb3)],_0x887038);for(;_0x5de5d0;)_0x47346d(_0x5de5d0),_0x5de5d0=_0x5de5d0[_0x344975(0xb7)];}return{'parsedContent':_0x887038,'newNodeIds':this[_0x344975(0xe3)][_0x344975(0xca)],'modifiedNodeIds':this[_0x344975(0xe3)][_0x344975(0xba)],'removedNodeIds':this[_0x344975(0xe3)][_0x344975(0xd3)]};}[_0x46e315(0xab)](_0x429bf0,_0x4ed62d,_0x32073e){const _0x47272a=_0x46e315;for(const _0x406d5a of _0x4ed62d){const _0x16309e=this[_0x47272a(0x9d)](_0x406d5a);_0x50f153(_0x406d5a,_0x47272a(0xd4),_0x16309e),this[_0x47272a(0xe3)][_0x47272a(0xca)][_0x47272a(0xad)](_0x16309e),this[_0x47272a(0xe3)][_0x47272a(0xb3)]=_0x16309e;}const _0x2f9b70=_0x47272a(0xe2)===_0x32073e||_0x47272a(0xdf)===_0x32073e?_0x4ed62d[_0x47272a(0xb6)]():_0x4ed62d;for(const _0x588cd4 of _0x2f9b70)_0xd22dc5(_0x429bf0,_0x588cd4,_0x32073e);}[_0x46e315(0xc6)](_0x1cb315,_0x473f31){const _0x2a3187=_0x46e315;if(!_0x1cb315)return;if(_0x4b5d3b(_0x1cb315,_0x473f31))return;const _0x42b3a3=this[_0x2a3187(0x9d)](_0x1cb315);_0x50f153(_0x473f31,_0x2a3187(0xd4),_0x42b3a3),this[_0x2a3187(0xe3)][_0x2a3187(0xba)][_0x2a3187(0xad)](_0x42b3a3),this[_0x2a3187(0xe3)][_0x2a3187(0xb3)]=_0x42b3a3,_0x53f494(_0x1cb315,_0x473f31[_0x2a3187(0xac)](!0x0));}[_0x46e315(0xda)](_0x709b8d,_0x302edc,_0x3d3a32){const _0xa8a197=_0x46e315,_0x3c6a19=this[_0xa8a197(0xa6)](_0x709b8d,!0x1);if(_0x3c6a19){const _0x566dc4=this[_0xa8a197(0xa4)](_0x3c6a19),_0x3f2f55=_0xde5fce(_0xa8a197(0xd4),_0x566dc4,_0x3d3a32);if(_0x3f2f55)return[_0x3f2f55,_0xa8a197(0xdf)];this[_0xa8a197(0xe3)][_0xa8a197(0xa2)][_0xa8a197(0xad)](_0x566dc4);}const _0x38c84e=this[_0xa8a197(0xc7)](_0x709b8d,!0x1);if(_0x38c84e){const _0x4032df=this[_0xa8a197(0xa4)](_0x38c84e),_0x5af77a=_0xde5fce(_0xa8a197(0xd4),_0x4032df,_0x3d3a32);if(_0x5af77a)return[_0x5af77a,_0xa8a197(0x9b)];this[_0xa8a197(0xe3)][_0xa8a197(0xa2)][_0xa8a197(0xad)](_0x4032df);}return _0x302edc?_0x709b8d[_0xa8a197(0xb5)]?this[_0xa8a197(0xcd)](_0x709b8d,_0x3d3a32):[_0x3d3a32[_0xa8a197(0xd8)][_0x3d3a32[_0xa8a197(0xd8)][_0xa8a197(0xce)]-0x1],_0xa8a197(0xdf)]:[_0x3d3a32[_0xa8a197(0xd8)][0x0],_0xa8a197(0x9b)];}[_0x46e315(0xcd)](_0x1fc552,_0x3119c2){const _0x5bd545=_0x46e315,_0x10eb4f=[],_0x23ae09=this[_0x5bd545(0xa6)](_0x1fc552,!0x0);if(_0x23ae09){const _0x110db2=this[_0x5bd545(0xa4)](_0x23ae09),_0x5cb47e=_0xde5fce(_0x5bd545(0xd4),_0x110db2,_0x3119c2);_0x5cb47e&&_0x10eb4f[_0x5bd545(0xad)]([_0x5cb47e,_0x5bd545(0xdf)]);}const _0x2765e3=this[_0x5bd545(0xc7)](_0x1fc552,!0x0);if(_0x2765e3){const _0x5570a4=this[_0x5bd545(0xa4)](_0x2765e3),_0x5a57b9=_0xde5fce(_0x5bd545(0xd4),_0x5570a4,_0x3119c2);_0x5a57b9&&_0x10eb4f[_0x5bd545(0xad)]([_0x5a57b9,_0x5bd545(0x9b)]);}if(_0x10eb4f[_0x5bd545(0xce)]>0x1)return _0x3ea9e0(_0x10eb4f[0x0][0x0])<=_0x3ea9e0(_0x10eb4f[0x1][0x0])?_0x10eb4f[0x0]:_0x10eb4f[0x1];return 0x1===_0x10eb4f[_0x5bd545(0xce)]?_0x10eb4f[0x0]:[_0x3119c2[_0x5bd545(0x9e)],_0x5bd545(0xdf)];}[_0x46e315(0xc7)](_0x13db2b,_0xfbbf0e){const _0x142749=_0x46e315;let _0x174178=_0x13db2b[_0x142749(0xb5)],_0x2a410a=null,_0x298c43=!0x1;for(;_0x174178;){if(_0x22821a(_0x174178)){if(this[_0x142749(0xb1)](_0x174178)&&(_0x2a410a=_0x174178),this[_0x142749(0xd9)](_0x174178)&&_0xfbbf0e&&!_0x298c43){_0x298c43=!0x0,_0x174178=_0x174178[_0x142749(0xb5)];continue;}break;}const _0x630b85=_0x256857(_0x174178,_0x142749(0xd4));if(_0x630b85&&_0x142749(0xe4)!==_0x630b85&&this[_0x142749(0xd2)][_0x142749(0xaa)](_0x630b85)){_0x2a410a=_0x174178;break;}_0x174178=_0x174178[_0x142749(0xb5)];}return _0x2a410a;}[_0x46e315(0xa6)](_0x1af78d,_0x2d4fc1){const _0x5482aa=_0x46e315;let _0x248670=_0x1af78d[_0x5482aa(0xb8)],_0x24f0c1=null,_0x3b663d=!0x1;for(;_0x248670;){if(_0x22821a(_0x248670)){if(this[_0x5482aa(0xb1)](_0x248670)&&(_0x24f0c1=_0x248670),this[_0x5482aa(0xd9)](_0x248670)&&_0x2d4fc1&&!_0x3b663d){_0x3b663d=!0x0,_0x248670=_0x248670[_0x5482aa(0xb8)];continue;}break;}const _0x2f9ed2=_0x256857(_0x248670,_0x5482aa(0xd4));if(_0x2f9ed2&&_0x5482aa(0xe4)!==_0x2f9ed2&&this[_0x5482aa(0xd2)][_0x5482aa(0xaa)](_0x2f9ed2)){_0x24f0c1=_0x248670;break;}_0x248670=_0x248670[_0x5482aa(0xb8)];}return _0x24f0c1;}[_0x46e315(0xd5)](_0x46b16b){const _0x266500=_0x46e315;_0x454369(_0x46b16b)&&_0x5cd323(_0x266500(0xd4),null,_0x46b16b)[_0x266500(0xa9)](_0x3bf7ed=>{const _0x192a73=_0x266500;if(this[_0x192a73(0xe0)](_0x3bf7ed)&&!this[_0x192a73(0xbc)](_0x3bf7ed)){const _0x31b538=_0x256857(_0x3bf7ed,_0x192a73(0xd4));_0x50f153(_0x3bf7ed,_0x192a73(0xc4),_0x31b538),_0x50f153(_0x3bf7ed,_0x192a73(0xd4),null);}});}[_0x46e315(0xa4)](_0x213169){const _0x3513ee=_0x46e315;if(!_0x213169)return null;if(_0x454369(_0x213169))return _0x256857(_0x213169,_0x3513ee(0xd4));if(_0x22821a(_0x213169)){const _0x5e3117=_0xacb80d(_0x213169)[_0x3513ee(0xc0)](/removed[\s*-]data-id="([^"]+)"/);if(_0x5e3117&&_0x5e3117[0x1])return _0x5e3117[0x1];}return null;}[_0x46e315(0xb4)](_0x1fb901){const _0x173734=_0x46e315;if(_0x22821a(_0x1fb901)){const _0xb84c81=_0xacb80d(_0x1fb901)[_0x173734(0xc0)](/removed[\s*-]data-id="([^"]+)"/);_0xb84c81&&_0xb84c81[0x1]&&this[_0x173734(0xe3)][_0x173734(0xd3)][_0x173734(0xad)](_0xb84c81[0x1]);}}[_0x46e315(0x9d)](_0x2209db){const _0x2ab10b=_0x46e315;return this[_0x2ab10b(0xe0)](_0x2209db)?_0x256857(_0x2209db,_0x2ab10b(0xd4)):this[_0x2ab10b(0xcf)]();}[_0x46e315(0xc5)](_0x5683f3){const _0x31cc1d=_0x46e315;_0x2f5be0(_0x5683f3)[_0x31cc1d(0xde)](_0x5a09db=>this[_0x31cc1d(0xb1)](_0x5a09db)||this[_0x31cc1d(0xd9)](_0x5a09db))[_0x31cc1d(0xa9)](_0x6a9fe2=>{_0x323bdf(_0x6a9fe2);});}[_0x46e315(0xc8)](_0x404006){const _0x47b63d=_0x46e315,_0x2bce6f=_0x404006[_0x47b63d(0xd8)],_0x46d649=_0x2bce6f[_0x2bce6f[_0x47b63d(0xce)]-0x1];_0x46d649&&_0x454369(_0x46d649)&&_0x50f153(_0x46d649,_0x47b63d(0xc9),_0x47b63d(0xa8));}[_0x46e315(0xc1)](_0x3a1594,_0x1f4163){const _0x3beed1=_0x46e315,_0x572059=_0xde5fce(_0x3beed1(0xc9),_0x3beed1(0xa8),_0x3a1594);if(!_0x572059)return;const _0x5569d2=_0x481fef(_0x572059)[_0x3beed1(0xa0)](0x0,-0x1),_0x31c582=_0x5569d2[_0x3beed1(0xce)];let _0x4b9fdb=_0x572059;if(_0x31c582>_0x1f4163){let _0x498666=_0x31c582,_0x2201c8=null;for(;_0x498666>_0x1f4163&&_0x498666>=0x0;)_0x498666--,_0x2201c8=_0x5569d2[_0x498666];_0x2201c8&&(_0x4b9fdb=_0x2201c8,_0x50f153(_0x572059,_0x3beed1(0xc9),null),_0x50f153(_0x2201c8,_0x3beed1(0xc9),_0x3beed1(0xa8)));}else{if(_0x31c582<_0x1f4163){let _0x438af5=_0x31c582,_0x166ab6=_0x572059;for(;_0x438af5<_0x1f4163;){const _0x4fb3cc=_0x166ab6[_0x3beed1(0xd8)][_0x3beed1(0xde)](_0x2cda78=>_0x454369(_0x2cda78));if(0x0===_0x4fb3cc[_0x3beed1(0xce)])break;_0x438af5++,_0x166ab6=_0x4fb3cc[_0x4fb3cc[_0x3beed1(0xce)]-0x1];}_0x166ab6&&(_0x4b9fdb=_0x166ab6,_0x50f153(_0x572059,_0x3beed1(0xc9),null),_0x50f153(_0x166ab6,_0x3beed1(0xc9),_0x3beed1(0xa8)));}}let _0x156d64=_0x4b9fdb;for(;_0x156d64;){for(;_0x156d64[_0x3beed1(0xb5)];)_0x156d64=_0x156d64[_0x3beed1(0xb5)],_0x454369(_0x156d64)&&_0x50f153(_0x156d64,_0x3beed1(0xc9),_0x3beed1(0xa8));_0x156d64=_0x156d64[_0x3beed1(0xb7)];}}[_0x46e315(0xdb)](_0x44127d){const _0x37cab6=_0x46e315;return Boolean(_0x37cab6(0xe4)===_0x256857(_0x44127d,_0x37cab6(0xd4)));}[_0x46e315(0xe0)](_0xbbde3f){const _0x5aff52=_0x46e315;return Boolean((_0x256857(_0xbbde3f,_0x5aff52(0xd4))||'')[_0x5aff52(0xce)]>0x0&&_0x5aff52(0xe4)!==_0x256857(_0xbbde3f,_0x5aff52(0xd4)));}[_0x46e315(0xb1)](_0x3f80a8){const _0x293726=_0x46e315;return!!_0x3f80a8&&Boolean(_0x22821a(_0x3f80a8)&&_0xacb80d(_0x3f80a8)[_0x293726(0xc0)](/removed[\s*-]data-id="[^"]+"/));}[_0x46e315(0xbc)](_0x4ed08d){const _0x375abb=_0x46e315;let _0x9f9795=_0x4ed08d[_0x375abb(0xb7)];for(;_0x9f9795;){if(_0x256857(_0x9f9795,_0x375abb(0xc4)))return!0x0;_0x9f9795=_0x9f9795[_0x375abb(0xb7)];}return!0x1;}[_0x46e315(0xd9)](_0x232977){const _0x362f62=_0x46e315;return Boolean(_0x22821a(_0x232977)&&_0xacb80d(_0x232977)[_0x362f62(0xc0)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x64a5ec=_0x51e2;(function(_0x354d25,_0x5d6167){const _0x246c99=_0x51e2,_0x519747=_0x354d25();while(!![]){try{const _0x2e87a6=-parseInt(_0x246c99(0x16d))/0x1*(-parseInt(_0x246c99(0x16b))/0x2)+parseInt(_0x246c99(0x163))/0x3*(-parseInt(_0x246c99(0x177))/0x4)+-parseInt(_0x246c99(0x175))/0x5*(-parseInt(_0x246c99(0x173))/0x6)+-parseInt(_0x246c99(0x165))/0x7*(-parseInt(_0x246c99(0x167))/0x8)+parseInt(_0x246c99(0x166))/0x9+parseInt(_0x246c99(0x174))/0xa*(parseInt(_0x246c99(0x171))/0xb)+-parseInt(_0x246c99(0x16f))/0xc;if(_0x2e87a6===_0x5d6167)break;else _0x519747['push'](_0x519747['shift']());}catch(_0x247945){_0x519747['push'](_0x519747['shift']());}}}(_0x294d,0x343df));function _0x51e2(_0x8d61b7,_0x5096f6){const _0x294dc0=_0x294d();return _0x51e2=function(_0x51e2c6,_0x1e10b0){_0x51e2c6=_0x51e2c6-0x163;let _0x3e36d9=_0x294dc0[_0x51e2c6];return _0x3e36d9;},_0x51e2(_0x8d61b7,_0x5096f6);}import{ObservableMixin as _0x47ca7d}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f3919}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x7486a6}from'../utils/htmlparser.js';function _0x294d(){const _0x4dd219=['460SmTzyD','_parseHTML','52NavLgg','78114JBkFyi','children','1799dEnuAz','1041480afSQYh','11496cHLdMI','<dummy>','convertMarkdownToHTML','_m2html','34978Xvpgfl','parse','9ZJEvkB','parseAndNormalizeHTML','7899216vtprrI','replace','2027377MzMhjc','</dummy>','25044uQbYgx','10UICPZz'];_0x294d=function(){return _0x4dd219;};return _0x294d();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x47ca7d(){[_0x64a5ec(0x16a)];constructor(){const _0x333d57=_0x64a5ec;super(),this[_0x333d57(0x16a)]=new _0x2f3919();}[_0x64a5ec(0x169)](_0x4b7486){const _0x2f0433=_0x64a5ec,_0x5774b0=this[_0x2f0433(0x16a)][_0x2f0433(0x16c)](_0x4b7486);return this[_0x2f0433(0x16e)](_0x5774b0);}[_0x64a5ec(0x16e)](_0x2c6616){const _0x39c9f8=_0x64a5ec;return this[_0x39c9f8(0x176)](_0x2c6616);}[_0x64a5ec(0x176)](_0x557363){const _0x2402d8=_0x64a5ec,_0x1e416b=_0x557363[_0x2402d8(0x170)](/^\t+/gm,'\x20')[_0x2402d8(0x170)](/\n*/g,'')[_0x2402d8(0x170)](/\s+/g,'\x20')[_0x2402d8(0x170)](/<[^>]*?$/g,''),_0x10403f=_0x7486a6(_0x2402d8(0x168)+_0x1e416b+_0x2402d8(0x172));return _0x10403f[_0x2402d8(0x164)]=_0x10403f[_0x2402d8(0x164)][0x0][_0x2402d8(0x164)],_0x10403f;}}
23
+ function _0x56d4(){const _0x3fde78=['39153aaedtV','316ubcdlO','convertMarkdownToHTML','80bolaBQ','3843qtZZLd','127djDfHI','6RNCqUA','11801671qYlhkH','replace','children','parseAndNormalizeHTML','<dummy>','_parseHTML','8818JxnRdH','12359784arnroz','257906ofTnAr','</dummy>','_m2html','27992mIiVgc','parse','2122425FgjUZB'];_0x56d4=function(){return _0x3fde78;};return _0x56d4();}const _0x51c3a9=_0x1db9;(function(_0x45db57,_0x59a838){const _0x5aea79=_0x1db9,_0x1be310=_0x45db57();while(!![]){try{const _0x5e268a=-parseInt(_0x5aea79(0xd2))/0x1*(-parseInt(_0x5aea79(0xda))/0x2)+parseInt(_0x5aea79(0xe2))/0x3*(-parseInt(_0x5aea79(0xe3))/0x4)+parseInt(_0x5aea79(0xe1))/0x5+parseInt(_0x5aea79(0xd3))/0x6*(-parseInt(_0x5aea79(0xd4))/0x7)+-parseInt(_0x5aea79(0xdf))/0x8*(-parseInt(_0x5aea79(0xd1))/0x9)+-parseInt(_0x5aea79(0xd0))/0xa*(-parseInt(_0x5aea79(0xdc))/0xb)+parseInt(_0x5aea79(0xdb))/0xc;if(_0x5e268a===_0x59a838)break;else _0x1be310['push'](_0x1be310['shift']());}catch(_0x153951){_0x1be310['push'](_0x1be310['shift']());}}}(_0x56d4,0xef07d));import{ObservableMixin as _0x1ea39b}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f8f29}from'@ckeditor/ckeditor5-markdown-gfm';function _0x1db9(_0x5e68c2,_0x47c9b0){const _0x56d458=_0x56d4();return _0x1db9=function(_0x1db9a5,_0x156906){_0x1db9a5=_0x1db9a5-0xd0;let _0x45934e=_0x56d458[_0x1db9a5];return _0x45934e;},_0x1db9(_0x5e68c2,_0x47c9b0);}import{parse as _0x1aa41a}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x1ea39b(){[_0x51c3a9(0xde)];constructor(){const _0x24fe98=_0x51c3a9;super(),this[_0x24fe98(0xde)]=new _0x2f8f29();}[_0x51c3a9(0xe4)](_0x1f2da1){const _0x29f5ca=_0x51c3a9,_0x22d0d9=this[_0x29f5ca(0xde)][_0x29f5ca(0xe0)](_0x1f2da1);return this[_0x29f5ca(0xd7)](_0x22d0d9);}[_0x51c3a9(0xd7)](_0x56d0bf){const _0x27a04f=_0x51c3a9;return this[_0x27a04f(0xd9)](_0x56d0bf);}[_0x51c3a9(0xd9)](_0x42c97a){const _0x2b490a=_0x51c3a9,_0x19ff32=_0x42c97a[_0x2b490a(0xd5)](/^\t+/gm,'\x20')[_0x2b490a(0xd5)](/\n*/g,'')[_0x2b490a(0xd5)](/\s+/g,'\x20')[_0x2b490a(0xd5)](/<[^>]*?$/g,''),_0x3a8c0f=_0x1aa41a(_0x2b490a(0xd8)+_0x19ff32+_0x2b490a(0xdd));return _0x3a8c0f[_0x2b490a(0xd6)]=_0x3a8c0f[_0x2b490a(0xd6)][0x0][_0x2b490a(0xd6)],_0x3a8c0f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x9970e5,_0x2a6955){var _0x507e28=_0x1411,_0x2c589a=_0x9970e5();while(!![]){try{var _0x3082b1=-parseInt(_0x507e28(0x1e1))/0x1+-parseInt(_0x507e28(0x1da))/0x2+-parseInt(_0x507e28(0x1e5))/0x3*(parseInt(_0x507e28(0x1dc))/0x4)+-parseInt(_0x507e28(0x1df))/0x5*(parseInt(_0x507e28(0x1d9))/0x6)+-parseInt(_0x507e28(0x1de))/0x7+parseInt(_0x507e28(0x1e2))/0x8*(-parseInt(_0x507e28(0x1e4))/0x9)+parseInt(_0x507e28(0x1e3))/0xa;if(_0x3082b1===_0x2a6955)break;else _0x2c589a['push'](_0x2c589a['shift']());}catch(_0x266208){_0x2c589a['push'](_0x2c589a['shift']());}}}(_0x3457,0x89fa8));import{View as _0x469114}from'ckeditor5/src/ui.js';import{getTranslation as _0x5decfe}from'../../aicore/utils/common-translations.js';function _0x1411(_0x2200ba,_0x489ac1){var _0x345706=_0x3457();return _0x1411=function(_0x1411d5,_0x253e33){_0x1411d5=_0x1411d5-0x1d8;var _0x322449=_0x345706[_0x1411d5];return _0x322449;},_0x1411(_0x2200ba,_0x489ac1);}export class AIDisclaimerView extends _0x469114{constructor(_0xf3ae4f){var _0x173313=_0x1411;super(_0xf3ae4f),this[_0x173313(0x1d8)]({'tag':_0x173313(0x1db),'attributes':{'class':['ck',_0x173313(0x1e0)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x173313(0x1e6)]},'children':[{'text':_0x5decfe(_0xf3ae4f,_0x173313(0x1dd))}]}]});}}function _0x3457(){var _0x3c2dd4=['10028YXKbRS','AI_DISCLAIMER_TEXT','7696710JuJZAt','180ChZeQf','ck-ai-disclaimer','161929JyClBP','16HEeSUh','44992460bkOvbA','2515968SAyreg','1203dTahlT','ck-ai-disclaimer__content','setTemplate','128328eXYACu','676496jouXYf','div'];_0x3457=function(){return _0x3c2dd4;};return _0x3457();}
23
+ function _0x1253(_0x4b2c24,_0x5cb17e){var _0x44ac9a=_0x44ac();return _0x1253=function(_0x125335,_0x306e4c){_0x125335=_0x125335-0x1a8;var _0x4a500d=_0x44ac9a[_0x125335];return _0x4a500d;},_0x1253(_0x4b2c24,_0x5cb17e);}(function(_0x31f910,_0xf520cd){var _0x5a78e9=_0x1253,_0x1f6a6f=_0x31f910();while(!![]){try{var _0x2cd0f3=parseInt(_0x5a78e9(0x1ac))/0x1*(-parseInt(_0x5a78e9(0x1b0))/0x2)+parseInt(_0x5a78e9(0x1b5))/0x3+parseInt(_0x5a78e9(0x1b4))/0x4+parseInt(_0x5a78e9(0x1a9))/0x5*(parseInt(_0x5a78e9(0x1b6))/0x6)+-parseInt(_0x5a78e9(0x1a8))/0x7+parseInt(_0x5a78e9(0x1b1))/0x8*(parseInt(_0x5a78e9(0x1ae))/0x9)+-parseInt(_0x5a78e9(0x1af))/0xa;if(_0x2cd0f3===_0xf520cd)break;else _0x1f6a6f['push'](_0x1f6a6f['shift']());}catch(_0x2bd5e2){_0x1f6a6f['push'](_0x1f6a6f['shift']());}}}(_0x44ac,0x2b145));import{View as _0x4f0c32}from'ckeditor5/src/ui.js';import{getTranslation as _0x585c5e}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4f0c32{constructor(_0x3237d3){var _0x4fa570=_0x1253;super(_0x3237d3),this[_0x4fa570(0x1aa)]({'tag':_0x4fa570(0x1b2),'attributes':{'class':['ck',_0x4fa570(0x1b3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4fa570(0x1ab)]},'children':[{'text':_0x585c5e(_0x3237d3,_0x4fa570(0x1ad))}]}]});}}function _0x44ac(){var _0x8ae2ae=['120qqaNmU','div','ck-ai-disclaimer','914512ZrUtRL','785868gbfXTV','733602pQsDRb','2122568wlVVPE','10EiBErh','setTemplate','ck-ai-disclaimer__content','53084HVlgrA','AI_DISCLAIMER_TEXT','201807DbNmle','4325340qmDXac','6VIHGBx'];_0x44ac=function(){return _0x8ae2ae;};return _0x44ac();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406ca0=_0x2d99;(function(_0x21b170,_0x1f12c7){const _0x4d479d=_0x2d99,_0x10bafa=_0x21b170();while(!![]){try{const _0x5b41e8=-parseInt(_0x4d479d(0x9e))/0x1+parseInt(_0x4d479d(0xa3))/0x2+parseInt(_0x4d479d(0x96))/0x3+parseInt(_0x4d479d(0x9c))/0x4*(parseInt(_0x4d479d(0x91))/0x5)+-parseInt(_0x4d479d(0xb1))/0x6+-parseInt(_0x4d479d(0xaf))/0x7+parseInt(_0x4d479d(0xa2))/0x8;if(_0x5b41e8===_0x1f12c7)break;else _0x10bafa['push'](_0x10bafa['shift']());}catch(_0xcabb30){_0x10bafa['push'](_0x10bafa['shift']());}}}(_0x6b3c,0xd788e));import{View as _0x2967a0}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x2967a0{constructor(_0x104903,_0x5dcc21){const _0x1964f2=_0x2d99;super(_0x104903),this[_0x1964f2(0xac)]({'tag':_0x1964f2(0xb4),'attributes':{'class':['ck',_0x1964f2(0xa8)]},'children':this[_0x1964f2(0x99)](_0x5dcc21)});}[_0x406ca0(0x99)](_0x3e948b){const _0x3373ef=_0x406ca0,_0x41a2ad=['ck',_0x3373ef(0xab)];return _0x3e948b[_0x3373ef(0x8f)](_0x544917=>{const _0x2529ae=_0x3373ef;let _0x5c61a3='';switch(_0x544917[_0x2529ae(0x90)][_0x2529ae(0xaa)]){case _0x2529ae(0xb2):_0x5c61a3=_0x2529ae(0x98);break;case _0x2529ae(0x9b):_0x5c61a3=_0x2529ae(0x95);break;case _0x2529ae(0xa6):_0x5c61a3=_0x2529ae(0x94);}return{'tag':_0x544917[_0x2529ae(0xa7)],'attributes':{'class':[..._0x41a2ad,_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]?_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]:''],'style':_0x2529ae(0xa0)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa9)]+_0x2529ae(0x97)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa5)]+';'+_0x5c61a3}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xad),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x9a),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0x92),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}}],'aiHistory':ta(0x5,_0x406ca0(0xa4),_0x406ca0(0x9d),_0x406ca0(0xb2)),'aiChatResources':ta(0x8,_0x406ca0(0xa4),_0x406ca0(0xae),_0x406ca0(0xb2)),'aiReviewChecks':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}}]};function _0x6b3c(){const _0x2fb2b4=['fill','div','40px','map','attributes','50tKuicd','140px','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1447095NcwXzr',';\x20height:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','_createSkeletonItems','150px','center','235228RzlkkV','44px','816617WALjAb','class','width:\x20','88px','8253592eDfwSv','501396BmyRTs','100%','height','left','tag','ck-ai-skeleton','width','align','ck-ai-skeleton__item','setTemplate','72px','24px','2188053YuTZXB','250px','2044836fFGmTk','right'];_0x6b3c=function(){return _0x2fb2b4;};return _0x6b3c();}function _0x2d99(_0x316906,_0x1c5386){const _0x6b3c4=_0x6b3c();return _0x2d99=function(_0x2d9925,_0x636df2){_0x2d9925=_0x2d9925-0x8f;let _0x3718ec=_0x6b3c4[_0x2d9925];return _0x3718ec;},_0x2d99(_0x316906,_0x1c5386);}function ta(_0x4b1f33,_0x5c51d8,_0x37f27a,_0x3935ad){const _0x89540d=_0x406ca0;return new Array(_0x4b1f33)[_0x89540d(0xb3)](null)[_0x89540d(0x8f)](()=>({'tag':_0x89540d(0xb4),'attributes':{'width':_0x5c51d8,'height':_0x37f27a,'align':_0x3935ad}}));}
23
+ const _0x3393b3=_0x3f91;(function(_0x539b62,_0x57e8fe){const _0x206cd9=_0x3f91,_0x1a27e1=_0x539b62();while(!![]){try{const _0x17a1dd=-parseInt(_0x206cd9(0x11c))/0x1+-parseInt(_0x206cd9(0x11a))/0x2+parseInt(_0x206cd9(0x113))/0x3*(-parseInt(_0x206cd9(0x12d))/0x4)+parseInt(_0x206cd9(0x10f))/0x5*(-parseInt(_0x206cd9(0x12b))/0x6)+parseInt(_0x206cd9(0x10a))/0x7*(-parseInt(_0x206cd9(0x10c))/0x8)+-parseInt(_0x206cd9(0x111))/0x9+parseInt(_0x206cd9(0x12c))/0xa*(parseInt(_0x206cd9(0x130))/0xb);if(_0x17a1dd===_0x57e8fe)break;else _0x1a27e1['push'](_0x1a27e1['shift']());}catch(_0x5db242){_0x1a27e1['push'](_0x1a27e1['shift']());}}}(_0x2b16,0x2902b));import{View as _0x30e207}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x30e207{constructor(_0x1f4dc5,_0x437219){const _0x72be6e=_0x3f91;super(_0x1f4dc5),this[_0x72be6e(0x118)]({'tag':_0x72be6e(0x11d),'attributes':{'class':['ck',_0x72be6e(0x127)]},'children':this[_0x72be6e(0x11b)](_0x437219)});}[_0x3393b3(0x11b)](_0x444b91){const _0x4378d9=_0x3393b3,_0x3dfc3d=['ck',_0x4378d9(0x125)];return _0x444b91[_0x4378d9(0x12a)](_0x1fd294=>{const _0x1b7a7a=_0x4378d9;let _0x22329d='';switch(_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x11e)]){case _0x1b7a7a(0x133):_0x22329d=_0x1b7a7a(0x112);break;case _0x1b7a7a(0x121):_0x22329d=_0x1b7a7a(0x131);break;case _0x1b7a7a(0x128):_0x22329d=_0x1b7a7a(0x11f);}return{'tag':_0x1fd294[_0x1b7a7a(0x124)],'attributes':{'class':[..._0x3dfc3d,_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]?_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]:''],'style':_0x1b7a7a(0x12e)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x126)]+_0x1b7a7a(0x12f)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x117)]+';'+_0x22329d}};});}}function _0x2b16(){const _0x3f4e25=['map','6VQWEVF','115630MWYZAQ','756cKtGIo','width:\x20',';\x20height:\x20','1463BnnasE','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','right','7CRpAGR','attributes','1938760pYyDWQ','128px','72px','1616445iHGaOR','250px','2404728CYeCGw','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','2280FRNyiV','24px','140px','class','height','setTemplate','44px','572212DOFQBO','_createSkeletonItems','107328dVHEnC','div','align','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','150px','center','100%','fill','tag','ck-ai-skeleton__item','width','ck-ai-skeleton','left','40px'];_0x2b16=function(){return _0x3f4e25;};return _0x2b16();}function _0x3f91(_0x5682e8,_0x2319f7){const _0x2b16dd=_0x2b16();return _0x3f91=function(_0x3f9140,_0x3f463e){_0x3f9140=_0x3f9140-0x10a;let _0x4d691b=_0x2b16dd[_0x3f9140];return _0x4d691b;},_0x3f91(_0x5682e8,_0x2319f7);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x10e),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x120),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x115),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}}],'aiHistory':ta(0x5,_0x3393b3(0x122),_0x3393b3(0x119),_0x3393b3(0x133)),'aiChatResources':ta(0x8,_0x3393b3(0x122),_0x3393b3(0x114),_0x3393b3(0x133)),'aiReviewChecks':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}}]};function ta(_0x4d8605,_0x16a61b,_0x1f1a21,_0xc1cd4e){const _0x406358=_0x3393b3;return new Array(_0x4d8605)[_0x406358(0x123)](null)[_0x406358(0x12a)](()=>({'tag':_0x406358(0x11d),'attributes':{'width':_0x16a61b,'height':_0x1f1a21,'align':_0xc1cd4e}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x44b3(_0x2314c5,_0x41d668){const _0x509cdb=_0x509c();return _0x44b3=function(_0x44b3eb,_0x17abb9){_0x44b3eb=_0x44b3eb-0x19a;let _0xcae72c=_0x509cdb[_0x44b3eb];return _0xcae72c;},_0x44b3(_0x2314c5,_0x41d668);}(function(_0x393138,_0x54da2d){const _0x4aa19f=_0x44b3,_0x3bcaab=_0x393138();while(!![]){try{const _0xc5de45=-parseInt(_0x4aa19f(0x1a6))/0x1*(-parseInt(_0x4aa19f(0x19a))/0x2)+parseInt(_0x4aa19f(0x1a2))/0x3*(-parseInt(_0x4aa19f(0x1a8))/0x4)+parseInt(_0x4aa19f(0x19e))/0x5*(-parseInt(_0x4aa19f(0x19b))/0x6)+parseInt(_0x4aa19f(0x1a7))/0x7*(parseInt(_0x4aa19f(0x1a9))/0x8)+-parseInt(_0x4aa19f(0x19f))/0x9+-parseInt(_0x4aa19f(0x19c))/0xa*(parseInt(_0x4aa19f(0x1a0))/0xb)+parseInt(_0x4aa19f(0x1a5))/0xc;if(_0xc5de45===_0x54da2d)break;else _0x3bcaab['push'](_0x3bcaab['shift']());}catch(_0x5cb9a2){_0x3bcaab['push'](_0x3bcaab['shift']());}}}(_0x509c,0xb7e20));import{SpinnerView as _0x3ba110}from'ckeditor5/src/ui.js';function _0x509c(){const _0xf997cf=['20907804TEaopL','1OGgrgt','126UYrrsc','106844wUXVSA','159096HeJPyR','434046glHBwB','207168Nndoiz','6454010ZJVBLF','extendTemplate','110DMunJF','951147kpJoHD','11ojWoDM','ck-ai-spinner','6UyJRhL','span','ck-ai-spinner_'];_0x509c=function(){return _0xf997cf;};return _0x509c();}export class AISpinnerView extends _0x3ba110{constructor(_0x48efc9=void 0x0){const _0xf55904=_0x44b3;super();const _0x385012=_0x48efc9?_0xf55904(0x1a4)+_0x48efc9:'';this[_0xf55904(0x19d)]({'tag':_0xf55904(0x1a3),'attributes':{'class':[_0xf55904(0x1a1),_0x385012]}});}}
23
+ function _0x5272(_0x140dc4,_0x520b3e){const _0x1ec617=_0x1ec6();return _0x5272=function(_0x52721f,_0x45d49){_0x52721f=_0x52721f-0xf2;let _0x3eb0b2=_0x1ec617[_0x52721f];return _0x3eb0b2;},_0x5272(_0x140dc4,_0x520b3e);}(function(_0x3daae8,_0x4f0060){const _0xf03237=_0x5272,_0x42babd=_0x3daae8();while(!![]){try{const _0x1d47ed=parseInt(_0xf03237(0xf2))/0x1*(parseInt(_0xf03237(0xfd))/0x2)+-parseInt(_0xf03237(0xf7))/0x3+parseInt(_0xf03237(0xf6))/0x4+parseInt(_0xf03237(0xf4))/0x5*(-parseInt(_0xf03237(0xfe))/0x6)+parseInt(_0xf03237(0xf5))/0x7*(parseInt(_0xf03237(0x101))/0x8)+-parseInt(_0xf03237(0xff))/0x9*(-parseInt(_0xf03237(0xf3))/0xa)+parseInt(_0xf03237(0x100))/0xb*(parseInt(_0xf03237(0xfa))/0xc);if(_0x1d47ed===_0x4f0060)break;else _0x42babd['push'](_0x42babd['shift']());}catch(_0x210992){_0x42babd['push'](_0x42babd['shift']());}}}(_0x1ec6,0x74b4c));function _0x1ec6(){const _0x385b0a=['386110HTHFhh','7362TJczWK','183942WIANZj','312158IVCRWk','196624YTMzQa','1mNYnwq','310zhCVMJ','2110rWXYnR','14AobTUU','1957728QaaGVW','1533867oXFRgM','ck-ai-spinner','span','60vIoioH','ck-ai-spinner_','extendTemplate'];_0x1ec6=function(){return _0x385b0a;};return _0x1ec6();}import{SpinnerView as _0x5a1a8b}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x5a1a8b{constructor(_0x44df14=void 0x0){const _0x4dabb5=_0x5272;super();const _0x4275e7=_0x44df14?_0x4dabb5(0xfb)+_0x44df14:'';this[_0x4dabb5(0xfc)]({'tag':_0x4dabb5(0xf9),'attributes':{'class':[_0x4dabb5(0xf8),_0x4275e7]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x302d(){const _0x4c5548=['length','isLoading','showCopy','396639aIsuST','full','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','ck-ai-mini-toolbar','execute','class','bind','showDislike','fire','22EbTKLx','_setupRatingButtons','AI_MINI_TOOLBAR_LIKE','add','set','locale','isEnabled','showLike','14497HykkaB','53945GAyNlA','4664BAXHuA','364VktlZa','likeButton','like','_setupCopyButton','5TnlrWZ','ck-ai-mini-toolbar-copy-button__check-mark','AI_MINI_TOOLBAR_DISLIKE','showChangesButton','AI_MINI_TOOLBAR_COPY','142166mOThdA','dislikeButton','16227NJpZnh','10121124NYasQQ','_setupShowChangesButton','7970OwUVOP','8958672ICAEmi','extendTemplate','isOn','addMany','copyButton','customView','dislike','children','items','toggleShowChanges','_config','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button'];_0x302d=function(){return _0x4c5548;};return _0x302d();}const _0x197bec=_0x4ddb;(function(_0x3b44ac,_0x3c85a2){const _0x5b1025=_0x4ddb,_0x6a46db=_0x3b44ac();while(!![]){try{const _0x3f5d6b=parseInt(_0x5b1025(0x163))/0x1*(parseInt(_0x5b1025(0x168))/0x2)+-parseInt(_0x5b1025(0x17e))/0x3+parseInt(_0x5b1025(0x15f))/0x4*(parseInt(_0x5b1025(0x15d))/0x5)+parseInt(_0x5b1025(0x16e))/0x6+parseInt(_0x5b1025(0x15c))/0x7*(parseInt(_0x5b1025(0x15e))/0x8)+parseInt(_0x5b1025(0x16a))/0x9*(-parseInt(_0x5b1025(0x16d))/0xa)+-parseInt(_0x5b1025(0x154))/0xb*(parseInt(_0x5b1025(0x16b))/0xc);if(_0x3f5d6b===_0x3c85a2)break;else _0x6a46db['push'](_0x6a46db['shift']());}catch(_0x454a88){_0x6a46db['push'](_0x6a46db['shift']());}}}(_0x302d,0xbed5d));import{ButtonView as _0x2ae371,IconView as _0x29f34d,ToolbarView as _0x340b22}from'ckeditor5/src/ui.js';import{IconCheck as _0x752c5a,IconCopy as _0x53837e,IconShowChangesOff as _0x4e7ec9,IconShowChangesOn as _0x215515,IconThumbDown as _0x57d9e2,IconThumbUp as _0x43b750}from'@ckeditor/ckeditor5-icons';function _0x4ddb(_0x67f53f,_0x44efb0){const _0x302ddd=_0x302d();return _0x4ddb=function(_0x4ddbe7,_0x2ad0a8){_0x4ddbe7=_0x4ddbe7-0x152;let _0x159a1a=_0x302ddd[_0x4ddbe7];return _0x159a1a;},_0x4ddb(_0x67f53f,_0x44efb0);}import{getTranslation as _0x248371}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x340b22{[_0x197bec(0x172)];[_0x197bec(0x160)];[_0x197bec(0x169)];[_0x197bec(0x166)];[_0x197bec(0x178)];constructor(_0x3b3617,_0x2a6d80={},_0x4e608f){const _0x3746b3=_0x197bec;super(_0x3b3617),this[_0x3746b3(0x158)](_0x3746b3(0x17c),!0x1),this[_0x3746b3(0x178)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x2a6d80};const _0x7292ed=!(this[_0x3746b3(0x178)][_0x3746b3(0x17d)]||this[_0x3746b3(0x178)][_0x3746b3(0x182)]||this[_0x3746b3(0x178)][_0x3746b3(0x15b)]||this[_0x3746b3(0x178)][_0x3746b3(0x152)]||this[_0x3746b3(0x178)][_0x3746b3(0x173)]?.[_0x3746b3(0x17b)]);this[_0x3746b3(0x185)]=_0x7292ed?_0x3746b3(0x179):_0x3746b3(0x183),this[_0x3746b3(0x178)][_0x3746b3(0x17d)]&&(this[_0x3746b3(0x162)](),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x172)])),this[_0x3746b3(0x178)][_0x3746b3(0x182)]&&(this[_0x3746b3(0x16c)](_0x4e608f),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x166)])),this[_0x3746b3(0x155)](),this[_0x3746b3(0x178)][_0x3746b3(0x15b)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x160)]),this[_0x3746b3(0x178)][_0x3746b3(0x152)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x169)]),this[_0x3746b3(0x178)][_0x3746b3(0x173)]&&this[_0x3746b3(0x176)][_0x3746b3(0x171)](this[_0x3746b3(0x178)][_0x3746b3(0x173)]);}[_0x197bec(0x155)](){const _0x23eeae=_0x197bec;this[_0x23eeae(0x160)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x160)][_0x23eeae(0x158)]({'icon':_0x43b750,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x156)),'tooltip':!0x0}),this[_0x23eeae(0x160)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0x3f3e2e=>!_0x3f3e2e),this[_0x23eeae(0x160)]['on'](_0x23eeae(0x184),()=>{const _0x34d334=_0x23eeae;this[_0x34d334(0x153)](_0x34d334(0x161));}),this[_0x23eeae(0x169)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x169)][_0x23eeae(0x158)]({'icon':_0x57d9e2,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x165)),'tooltip':!0x0}),this[_0x23eeae(0x169)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0xc0159f=>!_0xc0159f),this[_0x23eeae(0x169)]['on'](_0x23eeae(0x184),()=>{const _0x24d317=_0x23eeae;this[_0x24d317(0x153)](_0x24d317(0x174));});}[_0x197bec(0x162)](){const _0x342a51=_0x197bec;this[_0x342a51(0x172)]=new _0x2ae371(this[_0x342a51(0x159)]),this[_0x342a51(0x172)][_0x342a51(0x158)]({'icon':_0x53837e,'label':_0x248371(this[_0x342a51(0x159)],_0x342a51(0x167)),'class':_0x342a51(0x17a),'tooltip':!0x0}),this[_0x342a51(0x172)][_0x342a51(0x186)](_0x342a51(0x15a))['to'](this,_0x342a51(0x17c),_0x515484=>!_0x515484);const _0x528b04=new _0x29f34d();_0x528b04[_0x342a51(0x158)]({'content':_0x752c5a}),_0x528b04[_0x342a51(0x16f)]({'attributes':{'class':[_0x342a51(0x164)]}}),this[_0x342a51(0x172)]['on'](_0x342a51(0x184),()=>{const _0x267934=_0x342a51;this[_0x267934(0x172)][_0x267934(0x185)]=_0x267934(0x181),setTimeout(()=>{const _0x88468d=_0x267934;this[_0x88468d(0x172)][_0x88468d(0x185)]=_0x88468d(0x17a);},0x7d0);}),this[_0x342a51(0x172)][_0x342a51(0x175)][_0x342a51(0x157)](_0x528b04);}[_0x197bec(0x16c)](_0x4c9f54){const _0x5c8f1d=_0x197bec;this[_0x5c8f1d(0x166)]=new _0x2ae371(this[_0x5c8f1d(0x159)]),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x158)]({'icon':_0x4e7ec9,'label':_0x248371(this[_0x5c8f1d(0x159)],_0x5c8f1d(0x180)),'withText':_0x5c8f1d(0x17f)==this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'tooltip':_0x5c8f1d(0x17f)!=this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'isOn':_0x4c9f54}),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x186)](_0x5c8f1d(0x15a))['to'](this,_0x5c8f1d(0x17c),_0x4fc4fe=>!_0x4fc4fe),this[_0x5c8f1d(0x166)]['on'](_0x5c8f1d(0x184),()=>{const _0x3874c3=_0x5c8f1d,_0x1b80fd=!this[_0x3874c3(0x166)][_0x3874c3(0x170)];this[_0x3874c3(0x166)][_0x3874c3(0x158)]({'isOn':_0x1b80fd,'icon':_0x1b80fd?_0x215515:_0x4e7ec9}),this[_0x3874c3(0x153)](_0x3874c3(0x177),_0x1b80fd);});}}
23
+ const _0x3f2065=_0x18cc;(function(_0x55d8dc,_0x445d03){const _0x2c171b=_0x18cc,_0x2d3613=_0x55d8dc();while(!![]){try{const _0x33fccd=-parseInt(_0x2c171b(0x1da))/0x1+-parseInt(_0x2c171b(0x1fb))/0x2*(-parseInt(_0x2c171b(0x1f1))/0x3)+parseInt(_0x2c171b(0x1d5))/0x4+parseInt(_0x2c171b(0x200))/0x5+-parseInt(_0x2c171b(0x207))/0x6*(-parseInt(_0x2c171b(0x1ff))/0x7)+-parseInt(_0x2c171b(0x203))/0x8+-parseInt(_0x2c171b(0x1fc))/0x9*(-parseInt(_0x2c171b(0x1ed))/0xa);if(_0x33fccd===_0x445d03)break;else _0x2d3613['push'](_0x2d3613['shift']());}catch(_0x516c5b){_0x2d3613['push'](_0x2d3613['shift']());}}}(_0x5d94,0x8aa4f));import{ButtonView as _0x4b93e4,IconView as _0x4878f1,ToolbarView as _0x3f1142}from'ckeditor5/src/ui.js';import{IconCheck as _0xbd9328,IconCopy as _0x2b044d,IconShowChangesOff as _0x480d4a,IconShowChangesOn as _0xd15c37,IconThumbDown as _0x1115f9,IconThumbUp as _0x2f957b}from'@ckeditor/ckeditor5-icons';function _0x18cc(_0x30c7ba,_0xf0b847){const _0x5d9462=_0x5d94();return _0x18cc=function(_0x18cc30,_0x49a917){_0x18cc30=_0x18cc30-0x1d5;let _0x754ce=_0x5d9462[_0x18cc30];return _0x754ce;},_0x18cc(_0x30c7ba,_0xf0b847);}function _0x5d94(){const _0x3d852b=['2095284pMjWau','AI_MINI_TOOLBAR_DISLIKE','class','showDislike','children','946815KuaxZx','ck-ai-mini-toolbar\x20ck-hidden','length','isEnabled','toggleShowChanges','showCopy','copyButton','isLoading','showChanges','_config','_setupRatingButtons','execute','ck-ai-mini-toolbar','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-mini-toolbar-copy-button','extendTemplate','locale','add','full','10nEVtzj','dislike','fire','bind','6651PgaTfX','items','_setupShowChangesButton','likeButton','showLike','AI_MINI_TOOLBAR_LIKE','_setupCopyButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','like','showChangesButton','436sjtwjI','249489GPeuKz','set','ck-ai-mini-toolbar-copy-button__check-mark','14aPmvyr','4766380HPZSMg','customView','addMany','7088768xZWJGh','AI_MINI_TOOLBAR_COPY','isOn','dislikeButton','1238022zouyey'];_0x5d94=function(){return _0x3d852b;};return _0x5d94();}import{getTranslation as _0x2e02b6}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x3f1142{[_0x3f2065(0x1e0)];[_0x3f2065(0x1f4)];[_0x3f2065(0x206)];[_0x3f2065(0x1fa)];[_0x3f2065(0x1e3)];constructor(_0x522e95,_0xa88be6={},_0x2e8101){const _0x2b1718=_0x3f2065;super(_0x522e95),this[_0x2b1718(0x1fd)](_0x2b1718(0x1e1),!0x1),this[_0x2b1718(0x1e3)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0xa88be6};const _0x50c34d=!(this[_0x2b1718(0x1e3)][_0x2b1718(0x1df)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x1e2)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x1f5)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x1d8)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x201)]?.[_0x2b1718(0x1dc)]);this[_0x2b1718(0x1d7)]=_0x50c34d?_0x2b1718(0x1db):_0x2b1718(0x1e6),this[_0x2b1718(0x1e3)][_0x2b1718(0x1df)]&&(this[_0x2b1718(0x1f7)](),this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x1e0)])),this[_0x2b1718(0x1e3)][_0x2b1718(0x1e2)]&&(this[_0x2b1718(0x1f3)](_0x2e8101),this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x1fa)])),this[_0x2b1718(0x1e4)](),this[_0x2b1718(0x1e3)][_0x2b1718(0x1f5)]&&this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x1f4)]),this[_0x2b1718(0x1e3)][_0x2b1718(0x1d8)]&&this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x206)]),this[_0x2b1718(0x1e3)][_0x2b1718(0x201)]&&this[_0x2b1718(0x1f2)][_0x2b1718(0x202)](this[_0x2b1718(0x1e3)][_0x2b1718(0x201)]);}[_0x3f2065(0x1e4)](){const _0xeba8f6=_0x3f2065;this[_0xeba8f6(0x1f4)]=new _0x4b93e4(this[_0xeba8f6(0x1ea)]),this[_0xeba8f6(0x1f4)][_0xeba8f6(0x1fd)]({'icon':_0x2f957b,'label':_0x2e02b6(this[_0xeba8f6(0x1ea)],_0xeba8f6(0x1f6)),'tooltip':!0x0}),this[_0xeba8f6(0x1f4)][_0xeba8f6(0x1f0)](_0xeba8f6(0x1dd))['to'](this,_0xeba8f6(0x1e1),_0x27456a=>!_0x27456a),this[_0xeba8f6(0x1f4)]['on'](_0xeba8f6(0x1e5),()=>{const _0x1e09cc=_0xeba8f6;this[_0x1e09cc(0x1ef)](_0x1e09cc(0x1f9));}),this[_0xeba8f6(0x206)]=new _0x4b93e4(this[_0xeba8f6(0x1ea)]),this[_0xeba8f6(0x206)][_0xeba8f6(0x1fd)]({'icon':_0x1115f9,'label':_0x2e02b6(this[_0xeba8f6(0x1ea)],_0xeba8f6(0x1d6)),'tooltip':!0x0}),this[_0xeba8f6(0x206)][_0xeba8f6(0x1f0)](_0xeba8f6(0x1dd))['to'](this,_0xeba8f6(0x1e1),_0x4b4dcd=>!_0x4b4dcd),this[_0xeba8f6(0x206)]['on'](_0xeba8f6(0x1e5),()=>{const _0x4c0ff0=_0xeba8f6;this[_0x4c0ff0(0x1ef)](_0x4c0ff0(0x1ee));});}[_0x3f2065(0x1f7)](){const _0x44cffc=_0x3f2065;this[_0x44cffc(0x1e0)]=new _0x4b93e4(this[_0x44cffc(0x1ea)]),this[_0x44cffc(0x1e0)][_0x44cffc(0x1fd)]({'icon':_0x2b044d,'label':_0x2e02b6(this[_0x44cffc(0x1ea)],_0x44cffc(0x204)),'class':_0x44cffc(0x1e8),'tooltip':!0x0}),this[_0x44cffc(0x1e0)][_0x44cffc(0x1f0)](_0x44cffc(0x1dd))['to'](this,_0x44cffc(0x1e1),_0x4ffbc0=>!_0x4ffbc0);const _0x4d9ce9=new _0x4878f1();_0x4d9ce9[_0x44cffc(0x1fd)]({'content':_0xbd9328}),_0x4d9ce9[_0x44cffc(0x1e9)]({'attributes':{'class':[_0x44cffc(0x1fe)]}}),this[_0x44cffc(0x1e0)]['on'](_0x44cffc(0x1e5),()=>{const _0xb592e0=_0x44cffc;this[_0xb592e0(0x1e0)][_0xb592e0(0x1d7)]=_0xb592e0(0x1f8),setTimeout(()=>{const _0x1bd85a=_0xb592e0;this[_0x1bd85a(0x1e0)][_0x1bd85a(0x1d7)]=_0x1bd85a(0x1e8);},0x7d0);}),this[_0x44cffc(0x1e0)][_0x44cffc(0x1d9)][_0x44cffc(0x1eb)](_0x4d9ce9);}[_0x3f2065(0x1f3)](_0x41d50c){const _0x1cbb6a=_0x3f2065;this[_0x1cbb6a(0x1fa)]=new _0x4b93e4(this[_0x1cbb6a(0x1ea)]),this[_0x1cbb6a(0x1fa)][_0x1cbb6a(0x1fd)]({'icon':_0x480d4a,'label':_0x2e02b6(this[_0x1cbb6a(0x1ea)],_0x1cbb6a(0x1e7)),'withText':_0x1cbb6a(0x1ec)==this[_0x1cbb6a(0x1e3)][_0x1cbb6a(0x1e2)],'tooltip':_0x1cbb6a(0x1ec)!=this[_0x1cbb6a(0x1e3)][_0x1cbb6a(0x1e2)],'isOn':_0x41d50c}),this[_0x1cbb6a(0x1fa)][_0x1cbb6a(0x1f0)](_0x1cbb6a(0x1dd))['to'](this,_0x1cbb6a(0x1e1),_0x57f169=>!_0x57f169),this[_0x1cbb6a(0x1fa)]['on'](_0x1cbb6a(0x1e5),()=>{const _0x2fea4b=_0x1cbb6a,_0x5cb5e5=!this[_0x2fea4b(0x1fa)][_0x2fea4b(0x205)];this[_0x2fea4b(0x1fa)][_0x2fea4b(0x1fd)]({'isOn':_0x5cb5e5,'icon':_0x5cb5e5?_0xd15c37:_0x480d4a}),this[_0x2fea4b(0x1ef)](_0x2fea4b(0x1de),_0x5cb5e5);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44518a=_0x1e1a;(function(_0x395ec0,_0x4a1ac7){const _0x331f49=_0x1e1a,_0x54b025=_0x395ec0();while(!![]){try{const _0x13d54b=-parseInt(_0x331f49(0x19b))/0x1+parseInt(_0x331f49(0x176))/0x2+parseInt(_0x331f49(0x188))/0x3*(-parseInt(_0x331f49(0x1a5))/0x4)+-parseInt(_0x331f49(0x1a0))/0x5+parseInt(_0x331f49(0x181))/0x6*(-parseInt(_0x331f49(0x18a))/0x7)+parseInt(_0x331f49(0x1a4))/0x8+parseInt(_0x331f49(0x1a8))/0x9;if(_0x13d54b===_0x4a1ac7)break;else _0x54b025['push'](_0x54b025['shift']());}catch(_0x180d7e){_0x54b025['push'](_0x54b025['shift']());}}}(_0x1515,0x6e329));function _0x1e1a(_0x1bb151,_0x364eb6){const _0x151525=_0x1515();return _0x1e1a=function(_0x1e1a0b,_0x384430){_0x1e1a0b=_0x1e1a0b-0x171;let _0x734312=_0x151525[_0x1e1a0b];return _0x734312;},_0x1e1a(_0x1bb151,_0x364eb6);}import{View as _0x1d045e}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5b5129}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xbcb5e9}from'../../utils/eventnames.js';import{PromiseQueue as _0x51e5cd}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x1ba8e2}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x2cf976}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x1d045e{[_0x44518a(0x17f)];[_0x44518a(0x198)];[_0x44518a(0x186)];[_0x44518a(0x18c)];[_0x44518a(0x17d)];[_0x44518a(0x172)];[_0x44518a(0x174)]=[];constructor(_0x53d01f,_0xb15df9){const _0x4daaa4=_0x44518a;super(_0x53d01f);const {areActionsDisabled:_0xae9719,showUnchangedParts:_0x34b953,availableActions:_0x223fb4}=_0xb15df9;this[_0x4daaa4(0x198)]=_0xae9719,this[_0x4daaa4(0x186)]=_0x34b953,this[_0x4daaa4(0x172)]=_0x223fb4,this[_0x4daaa4(0x18e)](_0x4daaa4(0x197),!0x1),this[_0x4daaa4(0x17f)]=this[_0x4daaa4(0x173)](),this[_0x4daaa4(0x18c)]=new _0x51e5cd(),this[_0x4daaa4(0x17d)]=new _0x1ba8e2({'id':_0x4daaa4(0x19f),'initialContent':_0x2cf976(_0x53d01f,_0x4daaa4(0x190)),'level':_0x4daaa4(0x1a2)}),this[_0x4daaa4(0x17d)][_0x4daaa4(0x18d)]=!0x1,this[_0x4daaa4(0x194)]({'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x179)]},'children':[{'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x184)]},'children':this[_0x4daaa4(0x17f)]},this[_0x4daaa4(0x17d)]]});}get[_0x44518a(0x175)](){const _0x1b4f1f=_0x44518a;return this[_0x1b4f1f(0x17f)][_0x1b4f1f(0x185)];}async[_0x44518a(0x1aa)]({parts:_0x561b64,renderingStrategy:_0x38ec63,abortSignal:_0x17fc67}){const _0x3912fe=_0x44518a;this[_0x3912fe(0x17f)][_0x3912fe(0x185)]?_0x561b64[_0x3912fe(0x182)](_0x9e9cec=>{const _0x3e0b8e=_0x3912fe,_0x193167=this[_0x3e0b8e(0x174)][_0x3e0b8e(0x191)](_0x5be087=>_0x5be087[_0x3e0b8e(0x193)]==_0x9e9cec[_0x3e0b8e(0x193)]);-0x1===_0x193167?this[_0x3e0b8e(0x174)][_0x3e0b8e(0x1a6)](_0x9e9cec):this[_0x3e0b8e(0x174)][_0x193167]=_0x9e9cec;}):this[_0x3912fe(0x174)]=_0x561b64;for(const _0x5a43ed of _0x561b64[_0x3912fe(0x171)](_0x351b81=>_0x351b81[_0x3912fe(0x18b)]))this[_0x3912fe(0x18c)][_0x3912fe(0x177)](async _0x286964=>{const _0x30be4f=_0x3912fe;let _0xad8d20=this[_0x30be4f(0x189)](_0x5a43ed[_0x30be4f(0x193)]);_0xad8d20||(_0xad8d20=new _0x5b5129(this[_0x30be4f(0x183)],{'part':_0x5a43ed,'uiIndex':this[_0x30be4f(0x17f)][_0x30be4f(0x185)]+0x1,'areActionsDisabled':this[_0x30be4f(0x198)],'availableActions':this[_0x30be4f(0x172)]}),_0xad8d20[_0x30be4f(0x192)](..._0xbcb5e9)['to'](this),this[_0x30be4f(0x17f)][_0x30be4f(0x19a)](_0xad8d20),this[_0x30be4f(0x197)]=!0x0),0x2===this[_0x30be4f(0x17f)][_0x30be4f(0x185)]&&this[_0x30be4f(0x17f)][_0x30be4f(0x17a)][_0x30be4f(0x196)](!0x0),_0xad8d20[_0x30be4f(0x196)](this[_0x30be4f(0x17f)][_0x30be4f(0x185)]>0x1),await _0xad8d20[_0x30be4f(0x18f)]({'part':_0x5a43ed,'renderingStrategy':_0x38ec63,'showUnchangedParts':this[_0x30be4f(0x186)],'abortSignal':_0x286964});});return _0x17fc67?.[_0x3912fe(0x19e)](_0x3912fe(0x195),()=>{const _0x15d6f2=_0x3912fe;this[_0x15d6f2(0x18c)][_0x15d6f2(0x195)]();}),this[_0x3912fe(0x18c)][_0x3912fe(0x1a9)];}[_0x44518a(0x17c)](_0x470796,_0x5590b6){const _0x54d4b8=_0x44518a,_0x422e3c=this[_0x54d4b8(0x189)](_0x470796);_0x422e3c&&(_0x422e3c[_0x54d4b8(0x1a7)]=_0x5590b6),this[_0x54d4b8(0x197)]=_0x54d4b8(0x19d)==_0x5590b6||Array[_0x54d4b8(0x17b)](this[_0x54d4b8(0x17f)])[_0x54d4b8(0x1a1)](_0x44d2f0=>_0x54d4b8(0x19d)==_0x44d2f0[_0x54d4b8(0x1a7)]);}[_0x44518a(0x189)](_0x23962d){const _0x156c4d=_0x44518a;return this[_0x156c4d(0x17f)][_0x156c4d(0x178)](_0x2071c7=>_0x2071c7[_0x156c4d(0x17e)][_0x156c4d(0x193)]==_0x23962d)??null;}[_0x44518a(0x1a3)](){const _0x29e370=_0x44518a;if(!this[_0x29e370(0x186)]){const _0x3b342b=!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x28d8f0})=>_0x28d8f0),_0x9cdda6=!!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x320de4})=>!_0x320de4);this[_0x29e370(0x17d)][_0x29e370(0x18d)]=0x0==this[_0x29e370(0x17f)][_0x29e370(0x185)]||_0x9cdda6,_0x3b342b?this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x199))):this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x190)));}}get[_0x44518a(0x187)](){const _0xaa6407=_0x44518a;return!!this[_0xaa6407(0x17f)][_0xaa6407(0x178)](_0x55f9fb=>_0x55f9fb[_0xaa6407(0x17e)][_0xaa6407(0x18b)]);}}function _0x1515(){const _0x1386e9=['partDefinition','_children','div','6JvMFDF','forEach','locale','ck-ai-suggestion__body__content-parts','length','_showUnchangedParts','hasNonEmptyParts','765321HMBoiJ','getPartView','2842259LuAIkG','hasChanges','_updateContentPartsPromiseQueue','isVisible','set','updateContent','AI_SUGGESTION_EMPTY_PART_WARNING','findIndex','delegate','index','setTemplate','abort','toggleHeader','hasPendingParts','_areActionsDisabled','AI_SUGGESTION_NO_PARTS_WARNING','add','328321WmQwMQ','setContent','pending','addEventListener','empty-parts-warning','2177645GdyxSm','some','warning','markAsDone','3844376aPvJXY','8QeReHU','push','state','8193465sVcHgO','queueEmptyPromise','updateContentParts','filter','_availableActions','createCollection','_cachedContentParts','partsCount','1481076ALuCfe','enqueue','find','ck-ai-suggestion__body','first','from','updatePartState','_emptyPartsWarningView'];_0x1515=function(){return _0x1386e9;};return _0x1515();}
23
+ const _0x44dd83=_0x1b05;(function(_0x42fd9b,_0x4f2dc9){const _0x1305ce=_0x1b05,_0x10906c=_0x42fd9b();while(!![]){try{const _0x432b25=-parseInt(_0x1305ce(0x113))/0x1+parseInt(_0x1305ce(0x107))/0x2*(parseInt(_0x1305ce(0x12e))/0x3)+-parseInt(_0x1305ce(0x125))/0x4+parseInt(_0x1305ce(0x115))/0x5*(parseInt(_0x1305ce(0x104))/0x6)+parseInt(_0x1305ce(0x12f))/0x7+-parseInt(_0x1305ce(0x123))/0x8+-parseInt(_0x1305ce(0x103))/0x9;if(_0x432b25===_0x4f2dc9)break;else _0x10906c['push'](_0x10906c['shift']());}catch(_0x309be6){_0x10906c['push'](_0x10906c['shift']());}}}(_0x143c,0x259a6));import{View as _0x5a3cfe}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2b2e1c}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3ba0bd}from'../../utils/eventnames.js';function _0x1b05(_0x4c4a1d,_0x2f98d0){const _0x143c69=_0x143c();return _0x1b05=function(_0x1b05e2,_0x10df65){_0x1b05e2=_0x1b05e2-0xf8;let _0x1a55f2=_0x143c69[_0x1b05e2];return _0x1a55f2;},_0x1b05(_0x4c4a1d,_0x2f98d0);}import{PromiseQueue as _0x3a5be6}from'../../../aichat/utils/promisequeue.js';function _0x143c(){const _0x22d7d9=['enqueue','div','from','AI_SUGGESTION_NO_PARTS_WARNING','updatePartState','delegate','setContent','locale','pending','157233wFZrjT','first','9985UTRmJs','state','updateContentParts','ck-ai-suggestion__body','isVisible','hasPendingParts','forEach','findIndex','createCollection','warning','partsCount','empty-parts-warning','push','filter','694864FotQoI','add','118164wGMPnd','AI_SUGGESTION_EMPTY_PART_WARNING','_updateContentPartsPromiseQueue','hasChanges','markAsDone','length','find','_cachedContentParts','abort','3zSlmBk','549486ovPoUt','addEventListener','setTemplate','updateContent','partDefinition','some','set','queueEmptyPromise','index','_emptyPartsWarningView','_children','_availableActions','getPartView','_areActionsDisabled','1762740FXChzX','804EmAvwQ','_showUnchangedParts','toggleHeader','554836YGICAs','hasNonEmptyParts','ck-ai-suggestion__body__content-parts'];_0x143c=function(){return _0x22d7d9;};return _0x143c();}import{AIChatFeedErrorItemView as _0x25d0c6}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x438eae}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x5a3cfe{[_0x44dd83(0xff)];[_0x44dd83(0x102)];[_0x44dd83(0x105)];[_0x44dd83(0x127)];[_0x44dd83(0xfe)];[_0x44dd83(0x100)];[_0x44dd83(0x12c)]=[];constructor(_0x1589cc,_0x2b8612){const _0x1a490c=_0x44dd83;super(_0x1589cc);const {areActionsDisabled:_0x3326a2,showUnchangedParts:_0xa36741,availableActions:_0x510f1a}=_0x2b8612;this[_0x1a490c(0x102)]=_0x3326a2,this[_0x1a490c(0x105)]=_0xa36741,this[_0x1a490c(0x100)]=_0x510f1a,this[_0x1a490c(0xfb)](_0x1a490c(0x11a),!0x1),this[_0x1a490c(0xff)]=this[_0x1a490c(0x11d)](),this[_0x1a490c(0x127)]=new _0x3a5be6(),this[_0x1a490c(0xfe)]=new _0x25d0c6({'id':_0x1a490c(0x120),'initialContent':_0x438eae(_0x1589cc,_0x1a490c(0x126)),'level':_0x1a490c(0x11e)}),this[_0x1a490c(0xfe)][_0x1a490c(0x119)]=!0x1,this[_0x1a490c(0x131)]({'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x118)]},'children':[{'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x109)]},'children':this[_0x1a490c(0xff)]},this[_0x1a490c(0xfe)]]});}get[_0x44dd83(0x11f)](){const _0x4659a9=_0x44dd83;return this[_0x4659a9(0xff)][_0x4659a9(0x12a)];}async[_0x44dd83(0x117)]({parts:_0x33d5a8,renderingStrategy:_0x32728d,abortSignal:_0x4e190d}){const _0x12d356=_0x44dd83;this[_0x12d356(0xff)][_0x12d356(0x12a)]?_0x33d5a8[_0x12d356(0x11b)](_0x25db2c=>{const _0x51816b=_0x12d356,_0x4d508a=this[_0x51816b(0x12c)][_0x51816b(0x11c)](_0x5b40d8=>_0x5b40d8[_0x51816b(0xfd)]==_0x25db2c[_0x51816b(0xfd)]);-0x1===_0x4d508a?this[_0x51816b(0x12c)][_0x51816b(0x121)](_0x25db2c):this[_0x51816b(0x12c)][_0x4d508a]=_0x25db2c;}):this[_0x12d356(0x12c)]=_0x33d5a8;for(const _0x51811a of _0x33d5a8[_0x12d356(0x122)](_0x4378a3=>_0x4378a3[_0x12d356(0x128)]))this[_0x12d356(0x127)][_0x12d356(0x10a)](async _0x53f320=>{const _0x31f7c=_0x12d356;let _0x3f4b83=this[_0x31f7c(0x101)](_0x51811a[_0x31f7c(0xfd)]);_0x3f4b83||(_0x3f4b83=new _0x2b2e1c(this[_0x31f7c(0x111)],{'part':_0x51811a,'uiIndex':this[_0x31f7c(0xff)][_0x31f7c(0x12a)]+0x1,'areActionsDisabled':this[_0x31f7c(0x102)],'availableActions':this[_0x31f7c(0x100)]}),_0x3f4b83[_0x31f7c(0x10f)](..._0x3ba0bd)['to'](this),this[_0x31f7c(0xff)][_0x31f7c(0x124)](_0x3f4b83),this[_0x31f7c(0x11a)]=!0x0),0x2===this[_0x31f7c(0xff)][_0x31f7c(0x12a)]&&this[_0x31f7c(0xff)][_0x31f7c(0x114)][_0x31f7c(0x106)](!0x0),_0x3f4b83[_0x31f7c(0x106)](this[_0x31f7c(0xff)][_0x31f7c(0x12a)]>0x1),await _0x3f4b83[_0x31f7c(0xf8)]({'part':_0x51811a,'renderingStrategy':_0x32728d,'showUnchangedParts':this[_0x31f7c(0x105)],'abortSignal':_0x53f320});});return _0x4e190d?.[_0x12d356(0x130)](_0x12d356(0x12d),()=>{const _0x35cd95=_0x12d356;this[_0x35cd95(0x127)][_0x35cd95(0x12d)]();}),this[_0x12d356(0x127)][_0x12d356(0xfc)];}[_0x44dd83(0x10e)](_0x3f38b4,_0x4e5d36){const _0x288e98=_0x44dd83,_0xd05718=this[_0x288e98(0x101)](_0x3f38b4);_0xd05718&&(_0xd05718[_0x288e98(0x116)]=_0x4e5d36),this[_0x288e98(0x11a)]=_0x288e98(0x112)==_0x4e5d36||Array[_0x288e98(0x10c)](this[_0x288e98(0xff)])[_0x288e98(0xfa)](_0x4d1f99=>_0x288e98(0x112)==_0x4d1f99[_0x288e98(0x116)]);}[_0x44dd83(0x101)](_0x20db2c){const _0x5d4433=_0x44dd83;return this[_0x5d4433(0xff)][_0x5d4433(0x12b)](_0x19ae0f=>_0x19ae0f[_0x5d4433(0xf9)][_0x5d4433(0xfd)]==_0x20db2c)??null;}[_0x44dd83(0x129)](){const _0x537e51=_0x44dd83;if(!this[_0x537e51(0x105)]){const _0x4a7d6f=!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x205aca})=>_0x205aca),_0x462ab8=!!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x44a836})=>!_0x44a836);this[_0x537e51(0xfe)][_0x537e51(0x119)]=0x0==this[_0x537e51(0xff)][_0x537e51(0x12a)]||_0x462ab8,_0x4a7d6f?this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x10d))):this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x126)));}}get[_0x44dd83(0x108)](){const _0x4cbdf9=_0x44dd83;return!!this[_0x4cbdf9(0xff)][_0x4cbdf9(0x12b)](_0x150426=>_0x150426[_0x4cbdf9(0xf9)][_0x4cbdf9(0x128)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x359801=_0x92d5;(function(_0x1db5e2,_0x41f02d){const _0x392ee6=_0x92d5,_0x58a857=_0x1db5e2();while(!![]){try{const _0x4b230c=-parseInt(_0x392ee6(0x180))/0x1+parseInt(_0x392ee6(0x19f))/0x2+-parseInt(_0x392ee6(0x16f))/0x3+parseInt(_0x392ee6(0x1d6))/0x4*(-parseInt(_0x392ee6(0x17d))/0x5)+-parseInt(_0x392ee6(0x1a2))/0x6*(parseInt(_0x392ee6(0x185))/0x7)+-parseInt(_0x392ee6(0x192))/0x8+parseInt(_0x392ee6(0x1c1))/0x9;if(_0x4b230c===_0x41f02d)break;else _0x58a857['push'](_0x58a857['shift']());}catch(_0x133eef){_0x58a857['push'](_0x58a857['shift']());}}}(_0x388e,0x63ab1));import{IconWeb as _0x1e95fb}from'@ckeditor/ckeditor5-icons';import{View as _0x58a9fa,ButtonView as _0x176830,IconView as _0x354661,BalloonPanelView as _0x46860b}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0xa13e96}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x475a34}from'./aisuggestionheaderview.js';function _0x92d5(_0x318370,_0x5e2010){const _0x388e22=_0x388e();return _0x92d5=function(_0x92d5b8,_0x583cc9){_0x92d5b8=_0x92d5b8-0x162;let _0x3b005b=_0x388e22[_0x92d5b8];return _0x3b005b;},_0x92d5(_0x318370,_0x5e2010);}import{AISuggestionBodyView as _0x369985}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3a32ec}from'../../utils/eventnames.js';import{AISpinnerView as _0x579bd4}from'../aispinner.js';import{getTranslation as _0x55f3c7}from'../../utils/common-translations.js';function _0x388e(){const _0x23868d=['updateContent','bind','miniToolbarView','textContent','toggleSuggestionDisplayMode','remove','headerView','url','items','ck-ai-web-source__tooltip-image','...','open','northArrowSouthWest','children','setLoading','title','delegate','hide','push','17189829gZfqAe','_createErrorView','_createLoaderView','extendTemplate','northArrowSouthEast','add','createCollection','areChangesVisible','set','_createTooltipContentView','setTemplate','errorView','isEnabled','icon','ck-hidden','length','defaultPositions','showLoader','markAsDone','hideLoader','clearLoading','9076haieqX','locale','map','content','updateContentParts','_showTooltip','fire','ck-ai-web-source__tooltip-url','balloonPanelView','bindTemplate','ck-ai-web-source__tooltip-title','get','.ck-ai-chat','_bodyCollection','show','1245579djqBwl','showError','_blank','clearErrorState','hasNonEmptyParts','isVisible','AI_CHAT_SOURCES_HEADER','ck-ai-suggestion__error','bodyCollection','clear','.ck-ai-suggestion__error-text','pin','small','isLoading','470TEsAfl','favicon','ck-ai-web-source__tooltip','532551mDpVlD','querySelector','addNavigationItem','northArrowSouth','toggleShowChanges','7gralBz','_hideTooltip','destroy','isOn','substring','ck-ai-web-source__image','setErrorState','source','_updateTooltipContent','isShowChangesToggleVisible','ck-ai-suggestion__loader','isLoaderVisible','AI_CHAT_GENERIC_ERROR','1000344UmanKb','img','sourcesView','ck-ai-suggestion__container','updateSources','ck-ai-suggestion__error-text','loaderView','span','element','ck-ai-web-source__tooltip-balloon','addMany','_setupBalloonPanel','ck-ai-web-sources','726848IVURGF','ck-ai-suggestion__loader-text','ck-rounded-corners','3474546BTroEI','AI_CHAT_IS_WRITING','ck\x20ck-ai-web-source','removeNavigationItem','div','showChangesToggleView','ck-ai-web-sources__header','isErrorVisible','bodyView','hostname','hideError','ck-ai-web-source__tooltip-row'];_0x388e=function(){return _0x23868d;};return _0x388e();}export class AISuggestionContainerView extends _0x58a9fa{[_0x359801(0x1aa)];[_0x359801(0x1b0)];[_0x359801(0x1bb)];[_0x359801(0x1b4)];[_0x359801(0x198)];[_0x359801(0x1cc)];[_0x359801(0x194)];[_0x359801(0x16d)];constructor(_0x2f4111,_0x567ebc,_0x575a92){const _0x5cf76e=_0x359801;super(_0x2f4111),this[_0x5cf76e(0x16d)]=_0x575a92;const {showDiff:_0x478228,areActionsDisabled:_0x36d0f5,miniToolbarConfig:_0x1dea2e,hideHeader:_0x591964,showLoader:_0x228a09,showUnchangedParts:_0x358daa,availableActions:_0x2cb3f8}=_0x567ebc;this[_0x5cf76e(0x1c9)](_0x5cf76e(0x1c8),!0x1),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x190),!!_0x228a09),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x1a9),!0x1),this[_0x5cf76e(0x1c9)](_0x5cf76e(0x17c),!0x1),this[_0x5cf76e(0x1bb)]=this[_0x5cf76e(0x1c7)](),_0x591964||(this[_0x5cf76e(0x1b4)]=new _0x475a34(_0x2f4111,{'showDiff':_0x478228}),this[_0x5cf76e(0x1b4)]['on'](_0x5cf76e(0x184),(_0x3207b8,_0x3a414e)=>{const _0x5da3c6=_0x5cf76e;this[_0x5da3c6(0x1c8)]=_0x3a414e[_0x5da3c6(0x188)],this[_0x5da3c6(0x166)](_0x5da3c6(0x1b2),{'showDiff':_0x3a414e[_0x5da3c6(0x188)]});}),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1b4)])),this[_0x5cf76e(0x1aa)]=new _0x369985(_0x2f4111,{'areActionsDisabled':_0x36d0f5,'showUnchangedParts':!!_0x358daa,'availableActions':_0x2cb3f8}),this[_0x5cf76e(0x1aa)][_0x5cf76e(0x1be)](..._0x3a32ec)['to'](this),this[_0x5cf76e(0x1aa)][_0x5cf76e(0x1c4)]({'attributes':{'class':[this[_0x5cf76e(0x169)]['if'](_0x5cf76e(0x190),_0x5cf76e(0x1cf)),this[_0x5cf76e(0x169)]['if'](_0x5cf76e(0x1a9),_0x5cf76e(0x1cf))]}}),this[_0x5cf76e(0x1b0)]=new _0xa13e96(_0x2f4111,_0x1dea2e,_0x478228),this[_0x5cf76e(0x1b0)][_0x5cf76e(0x1be)](..._0x3a32ec)['to'](this),this[_0x5cf76e(0x1b0)]['on'](_0x5cf76e(0x184),(_0xdf332e,_0x141176)=>{const _0x4c155d=_0x5cf76e;this[_0x4c155d(0x1c8)]=_0x141176,this[_0x4c155d(0x166)](_0x4c155d(0x1b2),{'showDiff':_0x141176});}),this[_0x5cf76e(0x1b0)][_0x5cf76e(0x1af)](_0x5cf76e(0x17c))['to'](this),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1aa)]),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1b0)]),this[_0x5cf76e(0x194)]=new AIWebSourcesView(this[_0x5cf76e(0x1d7)],this[_0x5cf76e(0x16d)]),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x194)]),_0x228a09&&(this[_0x5cf76e(0x198)]=this[_0x5cf76e(0x1c3)](),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x198)])),this[_0x5cf76e(0x1cc)]=this[_0x5cf76e(0x1c2)](),this[_0x5cf76e(0x1bb)][_0x5cf76e(0x1c6)](this[_0x5cf76e(0x1cc)]),this[_0x5cf76e(0x1cb)]({'tag':_0x5cf76e(0x1a6),'attributes':{'class':['ck',_0x5cf76e(0x195),_0x5cf76e(0x1a1)]},'children':this[_0x5cf76e(0x1bb)]});}async[_0x359801(0x1ae)](_0x677086){const _0x15a5c8=_0x359801;await this[_0x15a5c8(0x1aa)][_0x15a5c8(0x164)](_0x677086);}[_0x359801(0x196)](_0x1849dc){const _0x5a8f06=_0x359801,_0xa4d532=this[_0x5a8f06(0x194)],_0x45d682=_0xa4d532[_0x5a8f06(0x168)];_0xa4d532[_0x5a8f06(0x1bb)][_0x5a8f06(0x19c)](_0x1849dc[_0x5a8f06(0x162)](_0x14738a=>new AIWebSourceView(this[_0x5a8f06(0x1d7)],_0x14738a,_0x45d682))),_0xa4d532[_0x5a8f06(0x174)]=!0x0;}[_0x359801(0x1d2)](){const _0x5a7127=_0x359801;this[_0x5a7127(0x198)]&&(this[_0x5a7127(0x190)]=!0x0);}[_0x359801(0x1d4)](){const _0x534b37=_0x359801;this[_0x534b37(0x198)]&&(this[_0x534b37(0x190)]=!0x1);}[_0x359801(0x170)](_0x4317d7){const _0x434bcb=_0x359801;if(this[_0x434bcb(0x1cc)]){const _0x3dced7=this[_0x434bcb(0x1cc)][_0x434bcb(0x19a)]?.[_0x434bcb(0x181)](_0x434bcb(0x179));_0x3dced7&&(_0x3dced7[_0x434bcb(0x1b1)]=_0x4317d7),this[_0x434bcb(0x1a9)]=!0x0;}}[_0x359801(0x1ac)](){const _0x4d4e88=_0x359801;this[_0x4d4e88(0x1cc)]&&(this[_0x4d4e88(0x1a9)]=!0x1);}[_0x359801(0x1d3)](){const _0x4c838d=_0x359801;this[_0x4c838d(0x1aa)][_0x4c838d(0x1d3)](),this[_0x4c838d(0x1b4)]&&(this[_0x4c838d(0x1b4)][_0x4c838d(0x18e)]=this[_0x4c838d(0x1aa)][_0x4c838d(0x173)]);}[_0x359801(0x1bc)](){const _0x57cd9b=_0x359801;this[_0x57cd9b(0x17c)]=!0x0;}[_0x359801(0x1d5)](){const _0x10de29=_0x359801;this[_0x10de29(0x17c)]=!0x1;}[_0x359801(0x18b)](){const _0x14dce0=_0x359801;this[_0x14dce0(0x1b0)]&&(this[_0x14dce0(0x1b0)][_0x14dce0(0x17c)]=!0x0),this[_0x14dce0(0x1b4)]?.[_0x14dce0(0x1a7)]&&(this[_0x14dce0(0x1b4)][_0x14dce0(0x1a7)][_0x14dce0(0x1cd)]=!0x1);}[_0x359801(0x172)](){const _0x3bba02=_0x359801;this[_0x3bba02(0x1b0)]&&(this[_0x3bba02(0x1b0)][_0x3bba02(0x17c)]=!0x1),this[_0x3bba02(0x1b4)]?.[_0x3bba02(0x1a7)]&&(this[_0x3bba02(0x1b4)][_0x3bba02(0x1a7)][_0x3bba02(0x1cd)]=!0x0);}[_0x359801(0x182)](_0x5b7109){const _0x40f726=_0x359801;this[_0x40f726(0x1b0)][_0x40f726(0x1b6)][_0x40f726(0x1c6)](_0x5b7109);}[_0x359801(0x1a5)](_0x5d8388){const _0x1ab408=_0x359801;this[_0x1ab408(0x1b0)][_0x1ab408(0x1b6)][_0x1ab408(0x1b3)](_0x5d8388);}[_0x359801(0x1c3)](){const _0x2b8db0=_0x359801,_0x1ba617=new _0x58a9fa(this[_0x2b8db0(0x1d7)]),_0x21ed0c=new _0x579bd4(_0x2b8db0(0x17b));_0x21ed0c[_0x2b8db0(0x174)]=!0x0;const _0x2a590f=new _0x58a9fa(this[_0x2b8db0(0x1d7)]);return _0x2a590f[_0x2b8db0(0x1cb)]({'tag':_0x2b8db0(0x199),'attributes':{'class':['ck',_0x2b8db0(0x1a0)]},'children':[_0x55f3c7(this[_0x2b8db0(0x1d7)],_0x2b8db0(0x1a3))]}),_0x1ba617[_0x2b8db0(0x1cb)]({'tag':_0x2b8db0(0x1a6),'attributes':{'class':['ck',_0x2b8db0(0x18f),this[_0x2b8db0(0x169)]['if'](_0x2b8db0(0x190),_0x2b8db0(0x1cf),_0xc59726=>!_0xc59726)]},'children':[_0x21ed0c,_0x2a590f]}),_0x1ba617;}[_0x359801(0x1c2)](){const _0x47acf8=_0x359801,_0x40bd71=new _0x58a9fa(this[_0x47acf8(0x1d7)]),_0x5e7e29=new _0x58a9fa(this[_0x47acf8(0x1d7)]);return _0x5e7e29[_0x47acf8(0x1cb)]({'tag':_0x47acf8(0x199),'attributes':{'class':['ck',_0x47acf8(0x197)]},'children':[_0x55f3c7(this[_0x47acf8(0x1d7)],_0x47acf8(0x191))]}),_0x40bd71[_0x47acf8(0x1cb)]({'tag':_0x47acf8(0x1a6),'attributes':{'class':['ck',_0x47acf8(0x176),this[_0x47acf8(0x169)]['if'](_0x47acf8(0x1a9),_0x47acf8(0x1cf),_0xea9b1e=>!_0xea9b1e)]},'children':[_0x5e7e29]}),_0x40bd71;}}export class AIWebSourcesView extends _0x58a9fa{[_0x359801(0x1bb)];[_0x359801(0x168)];[_0x359801(0x177)];constructor(_0x1b0b9f,_0x2a1183){const _0x3c2ff7=_0x359801;super(_0x1b0b9f),this[_0x3c2ff7(0x177)]=_0x2a1183,this[_0x3c2ff7(0x1bb)]=this[_0x3c2ff7(0x1c7)](),this[_0x3c2ff7(0x1c9)](_0x3c2ff7(0x174),!0x1),this[_0x3c2ff7(0x1cb)]({'tag':_0x3c2ff7(0x1a6),'attributes':{'class':['ck',_0x3c2ff7(0x19e),this[_0x3c2ff7(0x169)]['if'](_0x3c2ff7(0x174),_0x3c2ff7(0x1cf),_0x288539=>!_0x288539)]},'children':this[_0x3c2ff7(0x1bb)]});const _0x5c6416=new _0x58a9fa(this[_0x3c2ff7(0x1d7)]),_0x25e38d=new _0x354661();_0x25e38d[_0x3c2ff7(0x163)]=_0x1e95fb,_0x5c6416[_0x3c2ff7(0x1cb)]({'tag':_0x3c2ff7(0x1a6),'attributes':{'class':['ck',_0x3c2ff7(0x1a8)]},'children':[_0x25e38d,{'tag':_0x3c2ff7(0x199),'children':[{'text':_0x55f3c7(this[_0x3c2ff7(0x1d7)],_0x3c2ff7(0x175))}]}]}),this[_0x3c2ff7(0x1bb)][_0x3c2ff7(0x1c6)](_0x5c6416),this[_0x3c2ff7(0x19d)](_0x1b0b9f);}[_0x359801(0x19d)](_0xae2830){const _0x13f006=_0x359801;this[_0x13f006(0x168)]=new _0x46860b(_0xae2830),this[_0x13f006(0x168)][_0x13f006(0x1c4)]({'attributes':{'class':[_0x13f006(0x19b)]}}),this[_0x13f006(0x177)][_0x13f006(0x1c6)](this[_0x13f006(0x168)]);}}export class AIWebSourceView extends _0x176830{[_0x359801(0x168)];[_0x359801(0x18c)];constructor(_0x5eb0a5,_0x1704de,_0x1afca5){const _0x41154c=_0x359801;super(_0x5eb0a5),this[_0x41154c(0x18c)]=_0x1704de,this[_0x41154c(0x168)]=_0x1afca5,this[_0x41154c(0x1c9)]({'label':_0x1704de[_0x41154c(0x1bd)],'class':[_0x41154c(0x1a4)],'withText':!0x0});const _0x357e15=this[_0x41154c(0x169)];if(this[_0x41154c(0x1c4)]({'on':{'click':_0x357e15['to'](()=>{const _0x4fd8c4=_0x41154c;window[_0x4fd8c4(0x1b9)](_0x1704de[_0x4fd8c4(0x1b5)],_0x4fd8c4(0x171));}),'mouseenter':_0x357e15['to'](()=>{const _0x180188=_0x41154c;this[_0x180188(0x165)]();}),'mouseleave':_0x357e15['to'](()=>{const _0x2fa2db=_0x41154c;this[_0x2fa2db(0x186)]();})}}),_0x1704de[_0x41154c(0x17e)]){const _0x2eb0ac=new _0x58a9fa(_0x5eb0a5);_0x2eb0ac[_0x41154c(0x1cb)]({'tag':_0x41154c(0x193),'attributes':{'src':_0x1704de[_0x41154c(0x17e)]||_0x1e95fb,'alt':_0x1704de[_0x41154c(0x1bd)],'class':[_0x41154c(0x18a)]}}),this[_0x41154c(0x1bb)][_0x41154c(0x1c6)](_0x2eb0ac);}else this[_0x41154c(0x1c9)](_0x41154c(0x1ce),_0x1e95fb);}[_0x359801(0x1ca)](_0x422821,_0x58f64b){const _0x5f0815=_0x359801,_0x1c5c19=new _0x58a9fa(_0x422821),_0x5bf7b0=[];let _0x24589f;_0x58f64b?.[_0x5f0815(0x17e)]?(_0x24589f=new _0x58a9fa(_0x422821),_0x24589f[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x193),'attributes':{'src':_0x58f64b[_0x5f0815(0x17e)],'alt':_0x58f64b[_0x5f0815(0x1bd)],'class':[_0x5f0815(0x1b7)]}})):(_0x24589f=new _0x354661(),_0x24589f[_0x5f0815(0x163)]=_0x1e95fb,_0x24589f[_0x5f0815(0x1c4)]({'attributes':{'alt':_0x58f64b[_0x5f0815(0x1bd)],'class':[_0x5f0815(0x1b7)]}})),_0x5bf7b0[_0x5f0815(0x1c0)](_0x24589f);const _0x5e663c=new _0x58a9fa(_0x422821);_0x5e663c[_0x5f0815(0x1cb)]({'tag':'a','attributes':{'class':[_0x5f0815(0x167)],'href':_0x58f64b[_0x5f0815(0x1b5)]},'children':[{'text':new URL(_0x58f64b[_0x5f0815(0x1b5)])?.[_0x5f0815(0x1ab)]}]}),_0x5bf7b0[_0x5f0815(0x1c0)](_0x5e663c);const _0x59fd1e=new _0x58a9fa(_0x422821);_0x59fd1e[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x1a6),'attributes':{'class':[_0x5f0815(0x1ad)]},'children':_0x5bf7b0});const _0x423571=new _0x58a9fa(_0x422821);return _0x423571[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x199),'attributes':{'class':[_0x5f0815(0x1ad),_0x5f0815(0x16a)]},'children':[{'text':_0x58f64b[_0x5f0815(0x1bd)][_0x5f0815(0x1d0)]>0x190?_0x58f64b[_0x5f0815(0x1bd)][_0x5f0815(0x189)](0x0,0x190)+_0x5f0815(0x1b8):_0x58f64b[_0x5f0815(0x1bd)]}]}),_0x1c5c19[_0x5f0815(0x1cb)]({'tag':_0x5f0815(0x1a6),'attributes':{'class':['ck',_0x5f0815(0x17f)]},'children':[_0x59fd1e,_0x423571]}),_0x1c5c19;}[_0x359801(0x165)](){const _0x48c833=_0x359801;this[_0x48c833(0x18d)](),this[_0x48c833(0x168)][_0x48c833(0x17a)]({'target':this[_0x48c833(0x19a)],'positions':[_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x183)],_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x1ba)],_0x46860b[_0x48c833(0x1d1)][_0x48c833(0x1c5)]],'limiter':document[_0x48c833(0x181)](_0x48c833(0x16c))}),this[_0x48c833(0x168)][_0x48c833(0x16e)]();}[_0x359801(0x186)](){const _0x40ff30=_0x359801;this[_0x40ff30(0x168)][_0x40ff30(0x1bf)]();}[_0x359801(0x18d)](){const _0x160789=_0x359801;this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x16b)](0x0)?.[_0x160789(0x187)](),this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x178)]();const _0x2de48b=this[_0x160789(0x1ca)](this[_0x160789(0x1d7)],this[_0x160789(0x18c)]);this[_0x160789(0x168)][_0x160789(0x163)][_0x160789(0x1c6)](_0x2de48b);}}
23
+ const _0x3e1658=_0x3393;(function(_0x3c5180,_0x207cd6){const _0x3c324a=_0x3393,_0x208266=_0x3c5180();while(!![]){try{const _0x3f4343=-parseInt(_0x3c324a(0x105))/0x1*(parseInt(_0x3c324a(0xe4))/0x2)+parseInt(_0x3c324a(0xcf))/0x3+-parseInt(_0x3c324a(0xbb))/0x4+-parseInt(_0x3c324a(0x109))/0x5*(parseInt(_0x3c324a(0xd9))/0x6)+parseInt(_0x3c324a(0xe3))/0x7+parseInt(_0x3c324a(0xc8))/0x8+parseInt(_0x3c324a(0xd1))/0x9;if(_0x3f4343===_0x207cd6)break;else _0x208266['push'](_0x208266['shift']());}catch(_0x16dc59){_0x208266['push'](_0x208266['shift']());}}}(_0x502f,0xf1d70));import{IconWeb as _0x2d2950}from'@ckeditor/ckeditor5-icons';import{View as _0x4aa873,ButtonView as _0xf9fff,IconView as _0x9544e5,BalloonPanelView as _0x3477c0}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x27fc0c}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x2d1ef1}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x57074b}from'./aisuggestionbodyview.js';function _0x3393(_0x14dee9,_0x427368){const _0x502fa9=_0x502f();return _0x3393=function(_0x3393cc,_0x285139){_0x3393cc=_0x3393cc-0xaf;let _0x26baed=_0x502fa9[_0x3393cc];return _0x26baed;},_0x3393(_0x14dee9,_0x427368);}function _0x502f(){const _0x2ca0e1=['areChangesVisible','hasNonEmptyParts','clear','get','4286379EKqtcF','ck-ai-suggestion__container','3797136ZoOAtF','AI_CHAT_SOURCES_HEADER','isLoading','bodyView','removeNavigationItem','ck-ai-suggestion__loader-text','locale','textContent','6vHXYBv','isEnabled','addMany','span','ck-ai-web-source__tooltip-title','length','show','addNavigationItem','.ck-ai-chat','items','7165816QysGIi','394UjXqZj','ck-ai-web-source__tooltip-image','ck-hidden','...','toggleSuggestionDisplayMode','clearErrorState','ck-ai-web-sources','add','_bodyCollection','updateContent','icon','ck\x20ck-ai-web-source','ck-rounded-corners','hide','AI_CHAT_IS_WRITING','ck-ai-suggestion__error-text','favicon','ck-ai-web-source__tooltip-balloon','createCollection','fire','delegate','title','markAsDone','isShowChangesToggleVisible','_createErrorView','open','defaultPositions','errorView','ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-url','content','toggleShowChanges','updateContentParts','5217qMMeCT','ck-ai-web-sources__header','bind','clearLoading','9473670siwYKJ','_blank','.ck-ai-suggestion__error-text','map','_showTooltip','isLoaderVisible','bindTemplate','remove','showError','querySelector','loaderView','source','balloonPanelView','setErrorState','_setupBalloonPanel','ck-ai-web-source__image','pin','northArrowSouthEast','isVisible','ck-ai-suggestion__error','hideError','_createTooltipContentView','setLoading','_createLoaderView','AI_CHAT_GENERIC_ERROR','updateSources','headerView','hostname','substring','_updateTooltipContent','extendTemplate','northArrowSouth','ck-ai-suggestion__loader','small','children','miniToolbarView','element','div','img','url','1241848BrTLUo','sourcesView','set','ck-ai-web-source__tooltip','_hideTooltip','showLoader','hideLoader','setTemplate','bodyCollection','push','isOn','northArrowSouthWest','isErrorVisible','10793088aGzdTt','showChangesToggleView','destroy'];_0x502f=function(){return _0x2ca0e1;};return _0x502f();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4c9446}from'../../utils/eventnames.js';import{AISpinnerView as _0x4ba7b8}from'../aispinner.js';import{getTranslation as _0x347c88}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x4aa873{[_0x3e1658(0xd4)];[_0x3e1658(0xb6)];[_0x3e1658(0xb5)];[_0x3e1658(0x123)];[_0x3e1658(0x113)];[_0x3e1658(0xff)];[_0x3e1658(0xbc)];[_0x3e1658(0xec)];constructor(_0x5d8e8c,_0x371cc3,_0x4049a7){const _0x2c7490=_0x3e1658;super(_0x5d8e8c),this[_0x2c7490(0xec)]=_0x4049a7;const {showDiff:_0x5d5b3c,areActionsDisabled:_0x4408fc,miniToolbarConfig:_0x15221d,hideHeader:_0xab8f8c,showLoader:_0x20bf3f,showUnchangedParts:_0x4eedd1,availableActions:_0x41eaf7}=_0x371cc3;this[_0x2c7490(0xbd)](_0x2c7490(0xcb),!0x1),this[_0x2c7490(0xbd)](_0x2c7490(0x10e),!!_0x20bf3f),this[_0x2c7490(0xbd)](_0x2c7490(0xc7),!0x1),this[_0x2c7490(0xbd)](_0x2c7490(0xd3),!0x1),this[_0x2c7490(0xb5)]=this[_0x2c7490(0xf6)](),_0xab8f8c||(this[_0x2c7490(0x123)]=new _0x2d1ef1(_0x5d8e8c,{'showDiff':_0x5d5b3c}),this[_0x2c7490(0x123)]['on'](_0x2c7490(0x103),(_0x5382f2,_0x677b2f)=>{const _0xcdb66d=_0x2c7490;this[_0xcdb66d(0xcb)]=_0x677b2f[_0xcdb66d(0xc5)],this[_0xcdb66d(0xf7)](_0xcdb66d(0xe8),{'showDiff':_0x677b2f[_0xcdb66d(0xc5)]});}),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0x123)])),this[_0x2c7490(0xd4)]=new _0x57074b(_0x5d8e8c,{'areActionsDisabled':_0x4408fc,'showUnchangedParts':!!_0x4eedd1,'availableActions':_0x41eaf7}),this[_0x2c7490(0xd4)][_0x2c7490(0xf8)](..._0x4c9446)['to'](this),this[_0x2c7490(0xd4)][_0x2c7490(0xb1)]({'attributes':{'class':[this[_0x2c7490(0x10f)]['if'](_0x2c7490(0x10e),_0x2c7490(0xe6)),this[_0x2c7490(0x10f)]['if'](_0x2c7490(0xc7),_0x2c7490(0xe6))]}}),this[_0x2c7490(0xb6)]=new _0x27fc0c(_0x5d8e8c,_0x15221d,_0x5d5b3c),this[_0x2c7490(0xb6)][_0x2c7490(0xf8)](..._0x4c9446)['to'](this),this[_0x2c7490(0xb6)]['on'](_0x2c7490(0x103),(_0x1add03,_0x5e628b)=>{const _0x18242b=_0x2c7490;this[_0x18242b(0xcb)]=_0x5e628b,this[_0x18242b(0xf7)](_0x18242b(0xe8),{'showDiff':_0x5e628b});}),this[_0x2c7490(0xb6)][_0x2c7490(0x107)](_0x2c7490(0xd3))['to'](this),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xd4)]),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xb6)]),this[_0x2c7490(0xbc)]=new AIWebSourcesView(this[_0x2c7490(0xd7)],this[_0x2c7490(0xec)]),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xbc)]),_0x20bf3f&&(this[_0x2c7490(0x113)]=this[_0x2c7490(0x120)](),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0x113)])),this[_0x2c7490(0xff)]=this[_0x2c7490(0xfc)](),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xff)]),this[_0x2c7490(0xc2)]({'tag':_0x2c7490(0xb8),'attributes':{'class':['ck',_0x2c7490(0xd0),_0x2c7490(0xf0)]},'children':this[_0x2c7490(0xb5)]});}async[_0x3e1658(0xed)](_0x110c14){const _0x2ae096=_0x3e1658;await this[_0x2ae096(0xd4)][_0x2ae096(0x104)](_0x110c14);}[_0x3e1658(0x122)](_0x43fe34){const _0x53c5df=_0x3e1658,_0x6ddb6a=this[_0x53c5df(0xbc)],_0x1a05d4=_0x6ddb6a[_0x53c5df(0x115)];_0x6ddb6a[_0x53c5df(0xb5)][_0x53c5df(0xdb)](_0x43fe34[_0x53c5df(0x10c)](_0x4ff56c=>new AIWebSourceView(this[_0x53c5df(0xd7)],_0x4ff56c,_0x1a05d4))),_0x6ddb6a[_0x53c5df(0x11b)]=!0x0;}[_0x3e1658(0xc0)](){const _0x5448bb=_0x3e1658;this[_0x5448bb(0x113)]&&(this[_0x5448bb(0x10e)]=!0x0);}[_0x3e1658(0xc1)](){const _0x179379=_0x3e1658;this[_0x179379(0x113)]&&(this[_0x179379(0x10e)]=!0x1);}[_0x3e1658(0x111)](_0x4fb2ef){const _0x26ad80=_0x3e1658;if(this[_0x26ad80(0xff)]){const _0xb1cb2c=this[_0x26ad80(0xff)][_0x26ad80(0xb7)]?.[_0x26ad80(0x112)](_0x26ad80(0x10b));_0xb1cb2c&&(_0xb1cb2c[_0x26ad80(0xd8)]=_0x4fb2ef),this[_0x26ad80(0xc7)]=!0x0;}}[_0x3e1658(0x11d)](){const _0xb7a196=_0x3e1658;this[_0xb7a196(0xff)]&&(this[_0xb7a196(0xc7)]=!0x1);}[_0x3e1658(0xfa)](){const _0x354837=_0x3e1658;this[_0x354837(0xd4)][_0x354837(0xfa)](),this[_0x354837(0x123)]&&(this[_0x354837(0x123)][_0x354837(0xfb)]=this[_0x354837(0xd4)][_0x354837(0xcc)]);}[_0x3e1658(0x11f)](){const _0x43fe58=_0x3e1658;this[_0x43fe58(0xd3)]=!0x0;}[_0x3e1658(0x108)](){const _0x30d93d=_0x3e1658;this[_0x30d93d(0xd3)]=!0x1;}[_0x3e1658(0x116)](){const _0x291fe6=_0x3e1658;this[_0x291fe6(0xb6)]&&(this[_0x291fe6(0xb6)][_0x291fe6(0xd3)]=!0x0),this[_0x291fe6(0x123)]?.[_0x291fe6(0xc9)]&&(this[_0x291fe6(0x123)][_0x291fe6(0xc9)][_0x291fe6(0xda)]=!0x1);}[_0x3e1658(0xe9)](){const _0x582d82=_0x3e1658;this[_0x582d82(0xb6)]&&(this[_0x582d82(0xb6)][_0x582d82(0xd3)]=!0x1),this[_0x582d82(0x123)]?.[_0x582d82(0xc9)]&&(this[_0x582d82(0x123)][_0x582d82(0xc9)][_0x582d82(0xda)]=!0x0);}[_0x3e1658(0xe0)](_0x2812b4){const _0xc5caa5=_0x3e1658;this[_0xc5caa5(0xb6)][_0xc5caa5(0xe2)][_0xc5caa5(0xeb)](_0x2812b4);}[_0x3e1658(0xd5)](_0xfd530e){const _0x5d842a=_0x3e1658;this[_0x5d842a(0xb6)][_0x5d842a(0xe2)][_0x5d842a(0x110)](_0xfd530e);}[_0x3e1658(0x120)](){const _0x4e3444=_0x3e1658,_0x577be1=new _0x4aa873(this[_0x4e3444(0xd7)]),_0x4f143d=new _0x4ba7b8(_0x4e3444(0xb4));_0x4f143d[_0x4e3444(0x11b)]=!0x0;const _0x4a4a4f=new _0x4aa873(this[_0x4e3444(0xd7)]);return _0x4a4a4f[_0x4e3444(0xc2)]({'tag':_0x4e3444(0xdc),'attributes':{'class':['ck',_0x4e3444(0xd6)]},'children':[_0x347c88(this[_0x4e3444(0xd7)],_0x4e3444(0xf2))]}),_0x577be1[_0x4e3444(0xc2)]({'tag':_0x4e3444(0xb8),'attributes':{'class':['ck',_0x4e3444(0xb3),this[_0x4e3444(0x10f)]['if'](_0x4e3444(0x10e),_0x4e3444(0xe6),_0x3c7ec9=>!_0x3c7ec9)]},'children':[_0x4f143d,_0x4a4a4f]}),_0x577be1;}[_0x3e1658(0xfc)](){const _0x67d0a2=_0x3e1658,_0x33e6d2=new _0x4aa873(this[_0x67d0a2(0xd7)]),_0x1e4a7a=new _0x4aa873(this[_0x67d0a2(0xd7)]);return _0x1e4a7a[_0x67d0a2(0xc2)]({'tag':_0x67d0a2(0xdc),'attributes':{'class':['ck',_0x67d0a2(0xf3)]},'children':[_0x347c88(this[_0x67d0a2(0xd7)],_0x67d0a2(0x121))]}),_0x33e6d2[_0x67d0a2(0xc2)]({'tag':_0x67d0a2(0xb8),'attributes':{'class':['ck',_0x67d0a2(0x11c),this[_0x67d0a2(0x10f)]['if'](_0x67d0a2(0xc7),_0x67d0a2(0xe6),_0x43d3c4=>!_0x43d3c4)]},'children':[_0x1e4a7a]}),_0x33e6d2;}}export class AIWebSourcesView extends _0x4aa873{[_0x3e1658(0xb5)];[_0x3e1658(0x115)];[_0x3e1658(0xc3)];constructor(_0x4a4b2d,_0x22e673){const _0xa6ab2e=_0x3e1658;super(_0x4a4b2d),this[_0xa6ab2e(0xc3)]=_0x22e673,this[_0xa6ab2e(0xb5)]=this[_0xa6ab2e(0xf6)](),this[_0xa6ab2e(0xbd)](_0xa6ab2e(0x11b),!0x1),this[_0xa6ab2e(0xc2)]({'tag':_0xa6ab2e(0xb8),'attributes':{'class':['ck',_0xa6ab2e(0xea),this[_0xa6ab2e(0x10f)]['if'](_0xa6ab2e(0x11b),_0xa6ab2e(0xe6),_0x2d9fb8=>!_0x2d9fb8)]},'children':this[_0xa6ab2e(0xb5)]});const _0x82c741=new _0x4aa873(this[_0xa6ab2e(0xd7)]),_0x20cc90=new _0x9544e5();_0x20cc90[_0xa6ab2e(0x102)]=_0x2d2950,_0x82c741[_0xa6ab2e(0xc2)]({'tag':_0xa6ab2e(0xb8),'attributes':{'class':['ck',_0xa6ab2e(0x106)]},'children':[_0x20cc90,{'tag':_0xa6ab2e(0xdc),'children':[{'text':_0x347c88(this[_0xa6ab2e(0xd7)],_0xa6ab2e(0xd2))}]}]}),this[_0xa6ab2e(0xb5)][_0xa6ab2e(0xeb)](_0x82c741),this[_0xa6ab2e(0x117)](_0x4a4b2d);}[_0x3e1658(0x117)](_0x2fdff3){const _0xc920ce=_0x3e1658;this[_0xc920ce(0x115)]=new _0x3477c0(_0x2fdff3),this[_0xc920ce(0x115)][_0xc920ce(0xb1)]({'attributes':{'class':[_0xc920ce(0xf5)]}}),this[_0xc920ce(0xc3)][_0xc920ce(0xeb)](this[_0xc920ce(0x115)]);}}export class AIWebSourceView extends _0xf9fff{[_0x3e1658(0x115)];[_0x3e1658(0x114)];constructor(_0x3a7b90,_0x26b17e,_0x1c9989){const _0x4d4407=_0x3e1658;super(_0x3a7b90),this[_0x4d4407(0x114)]=_0x26b17e,this[_0x4d4407(0x115)]=_0x1c9989,this[_0x4d4407(0xbd)]({'label':_0x26b17e[_0x4d4407(0xf9)],'class':[_0x4d4407(0xef)],'withText':!0x0});const _0x4d5e2c=this[_0x4d4407(0x10f)];if(this[_0x4d4407(0xb1)]({'on':{'click':_0x4d5e2c['to'](()=>{const _0x4c6e56=_0x4d4407;window[_0x4c6e56(0xfd)](_0x26b17e[_0x4c6e56(0xba)],_0x4c6e56(0x10a));}),'mouseenter':_0x4d5e2c['to'](()=>{const _0xf65a35=_0x4d4407;this[_0xf65a35(0x10d)]();}),'mouseleave':_0x4d5e2c['to'](()=>{const _0x4c2f5d=_0x4d4407;this[_0x4c2f5d(0xbf)]();})}}),_0x26b17e[_0x4d4407(0xf4)]){const _0x3a677e=new _0x4aa873(_0x3a7b90);_0x3a677e[_0x4d4407(0xc2)]({'tag':_0x4d4407(0xb9),'attributes':{'src':_0x26b17e[_0x4d4407(0xf4)]||_0x2d2950,'alt':_0x26b17e[_0x4d4407(0xf9)],'class':[_0x4d4407(0x118)]}}),this[_0x4d4407(0xb5)][_0x4d4407(0xeb)](_0x3a677e);}else this[_0x4d4407(0xbd)](_0x4d4407(0xee),_0x2d2950);}[_0x3e1658(0x11e)](_0x344560,_0x270ec0){const _0x1e461b=_0x3e1658,_0x3b786f=new _0x4aa873(_0x344560),_0x4ddba1=[];let _0x5e7662;_0x270ec0?.[_0x1e461b(0xf4)]?(_0x5e7662=new _0x4aa873(_0x344560),_0x5e7662[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb9),'attributes':{'src':_0x270ec0[_0x1e461b(0xf4)],'alt':_0x270ec0[_0x1e461b(0xf9)],'class':[_0x1e461b(0xe5)]}})):(_0x5e7662=new _0x9544e5(),_0x5e7662[_0x1e461b(0x102)]=_0x2d2950,_0x5e7662[_0x1e461b(0xb1)]({'attributes':{'alt':_0x270ec0[_0x1e461b(0xf9)],'class':[_0x1e461b(0xe5)]}})),_0x4ddba1[_0x1e461b(0xc4)](_0x5e7662);const _0x31ac2a=new _0x4aa873(_0x344560);_0x31ac2a[_0x1e461b(0xc2)]({'tag':'a','attributes':{'class':[_0x1e461b(0x101)],'href':_0x270ec0[_0x1e461b(0xba)]},'children':[{'text':new URL(_0x270ec0[_0x1e461b(0xba)])?.[_0x1e461b(0x124)]}]}),_0x4ddba1[_0x1e461b(0xc4)](_0x31ac2a);const _0x3e3823=new _0x4aa873(_0x344560);_0x3e3823[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb8),'attributes':{'class':[_0x1e461b(0x100)]},'children':_0x4ddba1});const _0x2cfec7=new _0x4aa873(_0x344560);return _0x2cfec7[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xdc),'attributes':{'class':[_0x1e461b(0x100),_0x1e461b(0xdd)]},'children':[{'text':_0x270ec0[_0x1e461b(0xf9)][_0x1e461b(0xde)]>0x190?_0x270ec0[_0x1e461b(0xf9)][_0x1e461b(0xaf)](0x0,0x190)+_0x1e461b(0xe7):_0x270ec0[_0x1e461b(0xf9)]}]}),_0x3b786f[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb8),'attributes':{'class':['ck',_0x1e461b(0xbe)]},'children':[_0x3e3823,_0x2cfec7]}),_0x3b786f;}[_0x3e1658(0x10d)](){const _0xe7e8ac=_0x3e1658;this[_0xe7e8ac(0xb0)](),this[_0xe7e8ac(0x115)][_0xe7e8ac(0x119)]({'target':this[_0xe7e8ac(0xb7)],'positions':[_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0xb2)],_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0xc6)],_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0x11a)]],'limiter':document[_0xe7e8ac(0x112)](_0xe7e8ac(0xe1))}),this[_0xe7e8ac(0x115)][_0xe7e8ac(0xdf)]();}[_0x3e1658(0xbf)](){const _0x37b5a1=_0x3e1658;this[_0x37b5a1(0x115)][_0x37b5a1(0xf1)]();}[_0x3e1658(0xb0)](){const _0x22118d=_0x3e1658;this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xce)](0x0)?.[_0x22118d(0xca)](),this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xcd)]();const _0x3874de=this[_0x22118d(0x11e)](this[_0x22118d(0xd7)],this[_0x22118d(0x114)]);this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xeb)](_0x3874de);}}