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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/aiadapter.js +1 -1
  7. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  8. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  9. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  10. package/src/aiassistant/aiassistant.js +1 -1
  11. package/src/aiassistant/aiassistantediting.js +1 -1
  12. package/src/aiassistant/aiassistantui.js +1 -1
  13. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  14. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformview.js +1 -1
  17. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  19. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  20. package/src/aiballoon/aiballoon.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatballoon.js +1 -1
  23. package/src/aichat/aichatcontroller.js +1 -1
  24. package/src/aichat/aichatui.js +1 -1
  25. package/src/aichat/model/aichatcontext.js +1 -1
  26. package/src/aichat/ui/aichatballoonview.js +1 -1
  27. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  28. package/src/aichat/ui/aichatheaderview.js +1 -1
  29. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  35. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichathistory/aichathistory.js +1 -1
  42. package/src/aichathistory/aichathistorycontroller.js +1 -1
  43. package/src/aichathistory/aichathistoryui.js +1 -1
  44. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  45. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  46. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  47. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  48. package/src/aicore/aiconnector.js +1 -1
  49. package/src/aicore/aiediting.js +1 -1
  50. package/src/aicore/model/aiinteraction.js +1 -1
  51. package/src/aicore/model/aimodels.js +1 -1
  52. package/src/aicore/model/aireply.js +1 -1
  53. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  54. package/src/aicore/ui/aidisclaimerview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  57. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  58. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  59. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  63. package/src/aicore/utils/createresizebutton.js +1 -1
  64. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  65. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  66. package/src/aieditorintegration/aieditorintegration.js +1 -1
  67. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  68. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  69. package/src/aiquickactions/aiquickactions.js +1 -1
  70. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  71. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  72. package/src/aiquickactions/aiquickactionsui.js +1 -1
  73. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  76. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  77. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  78. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  79. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  80. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  81. package/src/aireviewcore/aireviewcoreui.js +1 -1
  82. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  83. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  84. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  85. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  86. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  87. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  88. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  89. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  90. package/src/aireviewmode/aireviewmode.js +1 -1
  91. package/src/aireviewmode/aireviewmodeui.js +1 -1
  92. package/src/aitabs/aitabs.js +1 -1
  93. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  94. package/src/aitranslate/aitranslate.js +1 -1
  95. package/src/aitranslate/aitranslatecontroller.js +1 -1
  96. package/src/aitranslate/aitranslateui.js +1 -1
  97. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  98. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1465(){const _0x126f34=['map','isAvailable','_availableModels','_modelList','getModels','36920dBjPvg','_filterModels','push','_getModelById','_locale','getAvailableModels','recommended','_defaultModelId','_isMatchingFilter','list','_retrieveModels','agent','filter','57597GTPQBz','getModel','defaultModelId','ai-chat-default-model-id-unrecognized','startsWith','length','name','206742sjlWyd','_modelsRequest','getAll','has','9XODpBu','auto','AI_MODEL_NAME_AUTO','add','_config','some','toLocaleLowerCase','561449ykIEUL','ai-models-unable-to-retrieve','30978tdanTT','uiLanguage','_connector','find','string','ai-chat-model-id-unrecognized','16BlhdQp','displayedModels','items','116YpOmXX','provider','5Eygyvj','getDefault','866850pZToST','4485591bpdxcb'];_0x1465=function(){return _0x126f34;};return _0x1465();}const _0x1b0c44=_0x4211;(function(_0x2482bc,_0x350472){const _0x272ea8=_0x4211,_0x53f6c0=_0x2482bc();while(!![]){try{const _0x544872=-parseInt(_0x272ea8(0x1b7))/0x1*(parseInt(_0x272ea8(0x1ac))/0x2)+-parseInt(_0x272ea8(0x198))/0x3+parseInt(_0x272ea8(0x1b5))/0x4*(-parseInt(_0x272ea8(0x1c0))/0x5)+-parseInt(_0x272ea8(0x19f))/0x6+-parseInt(_0x272ea8(0x1aa))/0x7*(-parseInt(_0x272ea8(0x1b2))/0x8)+-parseInt(_0x272ea8(0x1a3))/0x9*(parseInt(_0x272ea8(0x1b9))/0xa)+parseInt(_0x272ea8(0x1ba))/0xb;if(_0x544872===_0x350472)break;else _0x53f6c0['push'](_0x53f6c0['shift']());}catch(_0x1da011){_0x53f6c0['push'](_0x53f6c0['shift']());}}}(_0x1465,0x21451));import{EmitterMixin as _0x1f1f9b,logWarning as _0x174402,logError as _0x5009d2}from'ckeditor5/src/utils.js';function _0x4211(_0x5a0625,_0x26ad7d){const _0x146594=_0x1465();return _0x4211=function(_0x421129,_0x342acc){_0x421129=_0x421129-0x195;let _0x105839=_0x146594[_0x421129];return _0x105839;},_0x4211(_0x5a0625,_0x26ad7d);}import{getTranslation as _0x35d75d}from'../utils/common-translations.js';export class AIModels extends _0x1f1f9b(){[_0x1b0c44(0x1ae)];[_0x1b0c44(0x1a7)];[_0x1b0c44(0x1c4)];[_0x1b0c44(0x1be)]=[];[_0x1b0c44(0x1a0)]=null;constructor({connector:_0x2b2048,config:_0x3a7826,locale:_0x2436da}){const _0x3aee4b=_0x1b0c44;super(),this[_0x3aee4b(0x1ae)]=_0x2b2048,this[_0x3aee4b(0x1a7)]=_0x3a7826,this[_0x3aee4b(0x1c4)]=_0x2436da;}get[_0x1b0c44(0x1bd)](){const _0xb16af9=_0x1b0c44;return this[_0xb16af9(0x1a7)]?.[_0xb16af9(0x1b3)];}get[_0x1b0c44(0x1c7)](){const _0x488db9=_0x1b0c44;return this[_0x488db9(0x1a7)]?.[_0x488db9(0x19a)];}async[_0x1b0c44(0x1a1)](){const _0x1e436e=_0x1b0c44;return this[_0x1e436e(0x1a0)]||(this[_0x1e436e(0x1a0)]=this[_0x1e436e(0x195)]()),this[_0x1e436e(0x1a0)];}async[_0x1b0c44(0x1c5)](){const _0x3455d3=_0x1b0c44,_0x47bb82=await this[_0x3455d3(0x1a1)]();let _0x3d6103;return _0x3d6103=this[_0x3455d3(0x1bd)]?this[_0x3455d3(0x1c1)](_0x47bb82,this[_0x3455d3(0x1bd)]):_0x47bb82[_0x3455d3(0x197)](_0x33b1ff=>_0x33b1ff[_0x3455d3(0x1c6)]),_0x3d6103;}async[_0x1b0c44(0x199)](_0x3ec15c){const _0x256e2c=_0x1b0c44,_0x57e2f3=await this[_0x256e2c(0x1a1)]();if(!_0x57e2f3[_0x256e2c(0x19d)])return null;if(_0x3ec15c){const _0x2d7f27=this[_0x256e2c(0x1c3)](_0x57e2f3,_0x3ec15c);if(_0x2d7f27)return _0x2d7f27;_0x174402(_0x256e2c(0x1b1),{'modelId':_0x3ec15c,'fallBackModelId':this[_0x256e2c(0x1c7)]});}return this[_0x256e2c(0x1b8)]();}async[_0x1b0c44(0x1b8)](){const _0x53995f=_0x1b0c44,_0x4cf9f8=await this[_0x53995f(0x1c5)]();if(!_0x4cf9f8[_0x53995f(0x19d)])return null;if(this[_0x53995f(0x1c7)]){const _0x445594=this[_0x53995f(0x1c3)](_0x4cf9f8,this[_0x53995f(0x1c7)]);if(_0x445594)return _0x445594;_0x174402(_0x53995f(0x19b),{'defaultModelId':this[_0x53995f(0x1c7)],'fallBackModelId':_0x4cf9f8[0x0]['id']});}return _0x4cf9f8[0x0];}async[_0x1b0c44(0x1bc)](_0x37108a){const _0x4c08fa=_0x1b0c44;return(await this[_0x4c08fa(0x1c5)]())[_0x4c08fa(0x1a8)](_0x5bc00c=>_0x5bc00c[_0x4c08fa(0x19e)]===_0x37108a[_0x4c08fa(0x19e)]&&_0x5bc00c[_0x4c08fa(0x1b6)]===_0x37108a[_0x4c08fa(0x1b6)]);}async[_0x1b0c44(0x195)](){const _0x3fe16e=_0x1b0c44;if(!this[_0x3fe16e(0x1be)][_0x3fe16e(0x19d)])try{const _0x11f33d=this[_0x3fe16e(0x1c4)][_0x3fe16e(0x1ad)]||'en',_0x853448=this[_0x3fe16e(0x1ae)][_0x3fe16e(0x1bf)](_0x11f33d),_0x56e6b8=await _0x853448[_0x3fe16e(0x1c9)]();this[_0x3fe16e(0x1be)]=_0x56e6b8[_0x3fe16e(0x1b4)][_0x3fe16e(0x1bb)](_0x3c0b7a=>Bi(_0x3c0b7a)?{..._0x3c0b7a,'name':_0x35d75d(this[_0x3fe16e(0x1c4)],_0x3fe16e(0x1a5))}:_0x3c0b7a);}catch(_0x418474){throw _0x5009d2(_0x3fe16e(0x1ab),{'error':_0x418474}),_0x418474;}return[...this[_0x3fe16e(0x1be)]];}[_0x1b0c44(0x1c1)](_0x4bfc5e,_0x4ab45b){const _0x10bdcd=_0x1b0c44;let _0x1278cc;if(_0x4ab45b){_0x1278cc=[];const _0x44072e=new Set(),_0x439183=_0x10bdcd(0x1b0)==typeof _0x4ab45b?[_0x4ab45b[_0x10bdcd(0x1a9)]()]:_0x4ab45b[_0x10bdcd(0x1bb)](_0x4a6c4c=>_0x4a6c4c[_0x10bdcd(0x1a9)]());for(const _0x24226b of _0x439183)for(const _0xdee284 of _0x4bfc5e)!_0x44072e[_0x10bdcd(0x1a2)](_0xdee284['id'])&&this[_0x10bdcd(0x1c8)](_0xdee284,_0x24226b)&&(_0x1278cc[_0x10bdcd(0x1c2)](_0xdee284),_0x44072e[_0x10bdcd(0x1a6)](_0xdee284['id']));}else _0x1278cc=_0x4bfc5e;return _0x1278cc;}[_0x1b0c44(0x1c8)](_0x5d5832,_0xdc210d){const _0x336dd9=_0x1b0c44,_0x19f6f8=_0x5d5832['id'][_0x336dd9(0x1a9)](),_0x5ed902=_0x5d5832[_0x336dd9(0x19e)][_0x336dd9(0x1a9)](),_0x5f531b=_0x5d5832[_0x336dd9(0x1b6)][_0x336dd9(0x1a9)]();return _0x19f6f8===_0xdc210d||_0x5ed902===_0xdc210d||Bi(_0x5d5832)&&_0x336dd9(0x1a4)===_0xdc210d||_0x5f531b===_0xdc210d||_0x19f6f8[_0x336dd9(0x19c)](_0xdc210d);}[_0x1b0c44(0x1c3)](_0x33fce3,_0x3da55c){const _0x2a8cbb=_0x1b0c44;return _0x33fce3[_0x2a8cbb(0x1af)](_0x1872bd=>Bi(_0x1872bd)&&_0x2a8cbb(0x1a4)===_0x3da55c?_0x1872bd:_0x1872bd['id']===_0x3da55c)||null;}}function Bi(_0x5c445c){const _0x30d244=_0x1b0c44;return _0x5c445c['id'][_0x30d244(0x19c)](_0x30d244(0x196));}
23
+ const _0xf4b449=_0x37f6;function _0x2d35(){const _0x3c0836=['add','getModel','list','ai-chat-model-id-unrecognized','_locale','5288cawQbj','startsWith','map','ai-models-unable-to-retrieve','recommended','_modelsRequest','ai-chat-default-model-id-unrecognized','_config','name','2412DTAKKX','_isMatchingFilter','2175090wtaJGd','string','4447566bkPjeT','agent','getAvailableModels','_modelList','toLocaleLowerCase','uiLanguage','isAvailable','_getModelById','9071392MagSKG','provider','153FzRnjY','find','getDefault','_retrieveModels','some','_defaultModelId','items','1cDjBdC','displayedModels','getAll','length','_filterModels','has','auto','1052055tbekBT','filter','6817692VhzDTP','515462QrOBXH','push','defaultModelId','AI_MODEL_NAME_AUTO','getModels','_connector','_availableModels'];_0x2d35=function(){return _0x3c0836;};return _0x2d35();}function _0x37f6(_0xcbbb39,_0x3ecb39){const _0x2d3542=_0x2d35();return _0x37f6=function(_0x37f6f4,_0x39b62e){_0x37f6f4=_0x37f6f4-0x1ad;let _0xb48a97=_0x2d3542[_0x37f6f4];return _0xb48a97;},_0x37f6(_0xcbbb39,_0x3ecb39);}(function(_0x4ef285,_0x1c485d){const _0x13108d=_0x37f6,_0x3cb14f=_0x4ef285();while(!![]){try{const _0x734fb4=-parseInt(_0x13108d(0x1b5))/0x1*(-parseInt(_0x13108d(0x1bf))/0x2)+-parseInt(_0x13108d(0x1d4))/0x3*(-parseInt(_0x13108d(0x1cb))/0x4)+parseInt(_0x13108d(0x1bc))/0x5+parseInt(_0x13108d(0x1d8))/0x6+parseInt(_0x13108d(0x1be))/0x7+parseInt(_0x13108d(0x1e0))/0x8+-parseInt(_0x13108d(0x1ae))/0x9*(parseInt(_0x13108d(0x1d6))/0xa);if(_0x734fb4===_0x1c485d)break;else _0x3cb14f['push'](_0x3cb14f['shift']());}catch(_0x39896d){_0x3cb14f['push'](_0x3cb14f['shift']());}}}(_0x2d35,0xa6a16));import{EmitterMixin as _0x6a200c,logWarning as _0x1398ed,logError as _0x166e65}from'ckeditor5/src/utils.js';import{getTranslation as _0x4c3fa0}from'../utils/common-translations.js';export class AIModels extends _0x6a200c(){[_0xf4b449(0x1c4)];[_0xf4b449(0x1d2)];[_0xf4b449(0x1ca)];[_0xf4b449(0x1db)]=[];[_0xf4b449(0x1d0)]=null;constructor({connector:_0x319bfb,config:_0x3edbd1,locale:_0x5d7431}){const _0x5d676e=_0xf4b449;super(),this[_0x5d676e(0x1c4)]=_0x319bfb,this[_0x5d676e(0x1d2)]=_0x3edbd1,this[_0x5d676e(0x1ca)]=_0x5d7431;}get[_0xf4b449(0x1c5)](){const _0x4fb683=_0xf4b449;return this[_0x4fb683(0x1d2)]?.[_0x4fb683(0x1b6)];}get[_0xf4b449(0x1b3)](){const _0x3f0044=_0xf4b449;return this[_0x3f0044(0x1d2)]?.[_0x3f0044(0x1c1)];}async[_0xf4b449(0x1b7)](){const _0x3cf7c0=_0xf4b449;return this[_0x3cf7c0(0x1d0)]||(this[_0x3cf7c0(0x1d0)]=this[_0x3cf7c0(0x1b1)]()),this[_0x3cf7c0(0x1d0)];}async[_0xf4b449(0x1da)](){const _0x45a2d4=_0xf4b449,_0x1bf06b=await this[_0x45a2d4(0x1b7)]();let _0x10c478;return _0x10c478=this[_0x45a2d4(0x1c5)]?this[_0x45a2d4(0x1b9)](_0x1bf06b,this[_0x45a2d4(0x1c5)]):_0x1bf06b[_0x45a2d4(0x1bd)](_0x446cce=>_0x446cce[_0x45a2d4(0x1cf)]),_0x10c478;}async[_0xf4b449(0x1c7)](_0x192766){const _0xe3423=_0xf4b449,_0x591f0f=await this[_0xe3423(0x1b7)]();if(!_0x591f0f[_0xe3423(0x1b8)])return null;if(_0x192766){const _0x4b7049=this[_0xe3423(0x1df)](_0x591f0f,_0x192766);if(_0x4b7049)return _0x4b7049;_0x1398ed(_0xe3423(0x1c9),{'modelId':_0x192766,'fallBackModelId':this[_0xe3423(0x1b3)]});}return this[_0xe3423(0x1b0)]();}async[_0xf4b449(0x1b0)](){const _0x402904=_0xf4b449,_0x4b7e9a=await this[_0x402904(0x1da)]();if(!_0x4b7e9a[_0x402904(0x1b8)])return null;if(this[_0x402904(0x1b3)]){const _0x7e37b3=this[_0x402904(0x1df)](_0x4b7e9a,this[_0x402904(0x1b3)]);if(_0x7e37b3)return _0x7e37b3;_0x1398ed(_0x402904(0x1d1),{'defaultModelId':this[_0x402904(0x1b3)],'fallBackModelId':_0x4b7e9a[0x0]['id']});}return _0x4b7e9a[0x0];}async[_0xf4b449(0x1de)](_0x335c75){const _0x44d841=_0xf4b449;return(await this[_0x44d841(0x1da)]())[_0x44d841(0x1b2)](_0x22d418=>_0x22d418[_0x44d841(0x1d3)]===_0x335c75[_0x44d841(0x1d3)]&&_0x22d418[_0x44d841(0x1ad)]===_0x335c75[_0x44d841(0x1ad)]);}async[_0xf4b449(0x1b1)](){const _0x3c0542=_0xf4b449;if(!this[_0x3c0542(0x1db)][_0x3c0542(0x1b8)])try{const _0x4b5ea=this[_0x3c0542(0x1ca)][_0x3c0542(0x1dd)]||'en',_0x16ec47=this[_0x3c0542(0x1c4)][_0x3c0542(0x1c3)](_0x4b5ea),_0x3cd750=await _0x16ec47[_0x3c0542(0x1c8)]();this[_0x3c0542(0x1db)]=_0x3cd750[_0x3c0542(0x1b4)][_0x3c0542(0x1cd)](_0x3d61f1=>Bi(_0x3d61f1)?{..._0x3d61f1,'name':_0x4c3fa0(this[_0x3c0542(0x1ca)],_0x3c0542(0x1c2))}:_0x3d61f1);}catch(_0x50d519){throw _0x166e65(_0x3c0542(0x1ce),{'error':_0x50d519}),_0x50d519;}return[...this[_0x3c0542(0x1db)]];}[_0xf4b449(0x1b9)](_0x3e9c5e,_0x15da68){const _0x19ed09=_0xf4b449;let _0x4b8751;if(_0x15da68){_0x4b8751=[];const _0x11b5c8=new Set(),_0x11236a=_0x19ed09(0x1d7)==typeof _0x15da68?[_0x15da68[_0x19ed09(0x1dc)]()]:_0x15da68[_0x19ed09(0x1cd)](_0x1e6e2d=>_0x1e6e2d[_0x19ed09(0x1dc)]());for(const _0xb049a1 of _0x11236a)for(const _0xffa618 of _0x3e9c5e)!_0x11b5c8[_0x19ed09(0x1ba)](_0xffa618['id'])&&this[_0x19ed09(0x1d5)](_0xffa618,_0xb049a1)&&(_0x4b8751[_0x19ed09(0x1c0)](_0xffa618),_0x11b5c8[_0x19ed09(0x1c6)](_0xffa618['id']));}else _0x4b8751=_0x3e9c5e;return _0x4b8751;}[_0xf4b449(0x1d5)](_0x5a3c7f,_0x1d0de7){const _0x20c2e0=_0xf4b449,_0x184b6d=_0x5a3c7f['id'][_0x20c2e0(0x1dc)](),_0x12c9ad=_0x5a3c7f[_0x20c2e0(0x1d3)][_0x20c2e0(0x1dc)](),_0x38ac5=_0x5a3c7f[_0x20c2e0(0x1ad)][_0x20c2e0(0x1dc)]();return _0x184b6d===_0x1d0de7||_0x12c9ad===_0x1d0de7||Bi(_0x5a3c7f)&&_0x20c2e0(0x1bb)===_0x1d0de7||_0x38ac5===_0x1d0de7||_0x184b6d[_0x20c2e0(0x1cc)](_0x1d0de7);}[_0xf4b449(0x1df)](_0x42986d,_0x2b9e4c){const _0x43bf3c=_0xf4b449;return _0x42986d[_0x43bf3c(0x1af)](_0x26f73a=>Bi(_0x26f73a)&&_0x43bf3c(0x1bb)===_0x2b9e4c?_0x26f73a:_0x26f73a['id']===_0x2b9e4c)||null;}}function Bi(_0x27f840){const _0x78ca53=_0xf4b449;return _0x27f840['id'][_0x78ca53(0x1cc)](_0x78ca53(0x1d9));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3112a7=_0x2829;function _0x5db2(){const _0x3285fe=['convertMarkdownToHTML','changes','push','change:content','locale','every','newNodeIds','stopListening','5308KaOjPn','4dRFoit','fire','includes','unshift','merge','getContentParts','find','context','removed','content','node','aiResponseApplier','1263588HhJWPc','done','documentContextContent','span','editor','updateChangeGroups','filter','forEach','5641512NAyJyd','_getDifferentChangeGroups','index','length','modification','previousSibling','new','isDone','interactionId','AI_SUGGESTION_CONTENT_PART_REMOVED','removedNodeIds','onContentChange','modified','parsedContent','10byXqsv','areActionsDisabled','1422UxopjZ','aiResponseParser','ai-get-editor-from-context-no-editor','state','parseAndNormalizeHTML','indexOf','withoutDiff','_getCachedContentParts','type','ai-reply-get-content-parts-group-not-found','replyChangeGroupStateUpdated','splice','appendContent','modifiedNodeIds','nextSibling','setChangeGroupState','sources','3118129MWeyAc','cachedSuggestionContentParts','replyContentUpdated','destroy','3482015SWEwmF','data-id','color:\x20#808080;\x20font-style:\x20italic','cloneNode','withDiff','28383641QNUbka','pending','parsedMergedContent','14116770pcpIAX','8oRYQlx','set','map','changeGroups','_setCachedContentParts','data-unstable'];_0x5db2=function(){return _0x3285fe;};return _0x5db2();}function _0x2829(_0x5d637e,_0x5eda05){const _0x5db202=_0x5db2();return _0x2829=function(_0x28295b,_0x27039f){_0x28295b=_0x28295b-0x1a5;let _0x3ae7e7=_0x5db202[_0x28295b];return _0x3ae7e7;},_0x2829(_0x5d637e,_0x5eda05);}(function(_0x38767e,_0x4eba3a){const _0x29f28e=_0x2829,_0x18b71a=_0x38767e();while(!![]){try{const _0x2c16d2=parseInt(_0x29f28e(0x1c0))/0x1+-parseInt(_0x29f28e(0x1b3))/0x2*(parseInt(_0x29f28e(0x1d8))/0x3)+parseInt(_0x29f28e(0x1b4))/0x4*(-parseInt(_0x29f28e(0x1ed))/0x5)+parseInt(_0x29f28e(0x1c8))/0x6+parseInt(_0x29f28e(0x1e9))/0x7*(-parseInt(_0x29f28e(0x1a5))/0x8)+-parseInt(_0x29f28e(0x1f5))/0x9+-parseInt(_0x29f28e(0x1d6))/0xa*(-parseInt(_0x29f28e(0x1f2))/0xb);if(_0x2c16d2===_0x4eba3a)break;else _0x18b71a['push'](_0x18b71a['shift']());}catch(_0x2c4ca3){_0x18b71a['push'](_0x18b71a['shift']());}}}(_0x5db2,0xc72b3));import{CKEditorError as _0x15c81b,ObservableMixin as _0x1aa5b1,uid as _0xb1e5b4}from'ckeditor5/src/utils.js';import{Element as _0x2b4560,findAll as _0x31ba74,getAttribute as _0x1ad82e,getParents as _0x58a523,Document as _0x460bb7,parse as _0x3ca973,Text as _0x3901d4}from'../utils/htmlparser.js';import{AIResponseParser as _0x1bc510}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5ad989}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2b7f41}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x42ff55}from'../utils/common-translations.js';import{cloneDeep as _0x2049f7}from'es-toolkit';export class AIReply extends _0x1aa5b1(){['id'];[_0x3112a7(0x1d0)];[_0x3112a7(0x1e0)];[_0x3112a7(0x1e8)]=[];[_0x3112a7(0x1d5)]=new _0x460bb7([]);[_0x3112a7(0x1f4)]=new _0x460bb7([]);[_0x3112a7(0x1a8)]=[];[_0x3112a7(0x1d7)]=!0x1;[_0x3112a7(0x1c2)];[_0x3112a7(0x1d9)];[_0x3112a7(0x1bf)];[_0x3112a7(0x1c4)];[_0x3112a7(0x1ea)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1c9ce7,content:_0x40c514='',isDone:_0x16bc92=!0x1,interactionId:_0x385078,areActionsDisabled:_0x1a93dc,documentContextContent:_0x502490,editor:_0x32f3e7,id:_0x3c81b0}){const _0x4d8cd5=_0x3112a7;super(),this['id']=_0x3c81b0||_0xb1e5b4(),this[_0x4d8cd5(0x1d0)]=_0x385078,this[_0x4d8cd5(0x1e0)]=_0x1c9ce7,this[_0x4d8cd5(0x1d7)]=!!_0x1a93dc,this[_0x4d8cd5(0x1c4)]=_0x32f3e7,this[_0x4d8cd5(0x1d9)]=new _0x1bc510(),this[_0x4d8cd5(0x1bf)]=new _0x5ad989(),this[_0x4d8cd5(0x1c2)]=_0x3ca973(_0x502490||''),this[_0x4d8cd5(0x1a6)](_0x4d8cd5(0x1cf),_0x16bc92),this['on'](_0x4d8cd5(0x1ae),()=>{const _0xb9c325=_0x4d8cd5;this[_0xb9c325(0x1d3)]();}),this[_0x4d8cd5(0x1a6)](_0x4d8cd5(0x1bd),_0x40c514);}[_0x3112a7(0x1e4)](_0x28a01b){const _0x3f45a1=_0x3112a7;this[_0x3f45a1(0x1a6)](_0x3f45a1(0x1bd),this[_0x3f45a1(0x1bd)]+_0x28a01b);}[_0x3112a7(0x1c1)](){const _0x106e9d=_0x3112a7;this[_0x106e9d(0x1cf)]||(this[_0x106e9d(0x1a6)](_0x106e9d(0x1cf),!0x0),this[_0x106e9d(0x1d3)]());}[_0x3112a7(0x1ec)](){const _0x8b2b19=_0x3112a7;this[_0x8b2b19(0x1b2)]();}[_0x3112a7(0x1e7)](_0x2b760b,_0x4cf40f){const _0x1fa46d=_0x3112a7;this[_0x1fa46d(0x1a8)][_0x2b760b][_0x1fa46d(0x1db)]=_0x4cf40f,this[_0x1fa46d(0x1b5)](_0x1fa46d(0x1e2),{'reply':this,'index':_0x2b760b,'state':_0x4cf40f});}[_0x3112a7(0x1b9)]({showDiff:_0x270db9,groupIndex:_0x4e3437}){const _0x1672f3=_0x3112a7;if(!this[_0x1672f3(0x1c4)])throw new _0x15c81b(_0x1672f3(0x1da),null,{'aiReply':this});const _0x51a96d=this[_0x1672f3(0x1df)](_0x270db9,_0x4e3437);if(_0x51a96d)return _0x51a96d;let _0x2114ed=[];if(void 0x0===_0x4e3437)_0x2114ed=this[_0x1672f3(0x1a8)];else{const _0x53f4d4=this[_0x1672f3(0x1a8)][_0x1672f3(0x1ba)](({index:_0x1a81e5})=>_0x1a81e5===_0x4e3437);if(!_0x53f4d4)throw new _0x15c81b(_0x1672f3(0x1e1),null,{'aiReply':this,'groupIndex':_0x4e3437});_0x2114ed=[_0x53f4d4];}const _0x87d307=_0x2b7f41({'editor':this[_0x1672f3(0x1c4)],'showDiff':_0x270db9,'changeGroups':_0x2114ed,'documentContextContent':this[_0x1672f3(0x1c2)]});return this[_0x1672f3(0x1a9)](_0x270db9,_0x87d307),_0x87d307;}[_0x3112a7(0x1df)](_0x193467,_0x5b57b2){const _0x390385=_0x3112a7,_0x39ad70=_0x193467?_0x390385(0x1f1):_0x390385(0x1de);if(!this[_0x390385(0x1ea)][_0x39ad70][_0x390385(0x1cb)])return null;const _0xe05ca=this[_0x390385(0x1ea)][_0x39ad70];if(void 0x0===_0x5b57b2)return _0xe05ca[_0x390385(0x1cb)]>0x0&&_0xe05ca[_0x390385(0x1cb)]!==this[_0x390385(0x1a8)][_0x390385(0x1cb)]?(this[_0x390385(0x1a9)](_0x193467,null),null):_0x2049f7(_0xe05ca);{const _0x4d201b=_0xe05ca[_0x390385(0x1ba)](({index:_0x7036b7})=>_0x7036b7===_0x5b57b2);if(_0x4d201b)return[_0x2049f7(_0x4d201b)];}return null;}[_0x3112a7(0x1a9)](_0x560542,_0x2fb291){const _0xd05751=_0x3112a7,_0x2b05ba=_0x560542?_0xd05751(0x1f1):_0xd05751(0x1de);_0x2fb291?_0x2fb291[_0xd05751(0x1c7)](_0x260544=>{const _0x457599=_0xd05751,_0x1019a0=this[_0x457599(0x1ea)][_0x2b05ba],_0x404293=_0x1019a0[_0x457599(0x1ba)](({index:_0x48f93d})=>_0x48f93d===_0x260544[_0x457599(0x1ca)]);if(_0x404293){const _0x28f779=_0x1019a0[_0x457599(0x1dd)](_0x404293);_0x1019a0[_0x457599(0x1e3)](_0x28f779,0x1,_0x260544);}else _0x1019a0[_0x457599(0x1ad)](_0x260544);}):this[_0xd05751(0x1ea)][_0x2b05ba][_0xd05751(0x1cb)]=0x0;}[_0x3112a7(0x1d3)](){const _0x51e959=_0x3112a7;if(_0x51e959(0x1cc)===this[_0x51e959(0x1e0)]){this[_0x51e959(0x1d5)]=this[_0x51e959(0x1d9)][_0x51e959(0x1dc)](this[_0x51e959(0x1bd)]);const _0xff661c=this[_0x51e959(0x1a8)];this[_0x51e959(0x1c5)]();const _0x464ec9=this[_0x51e959(0x1c9)](_0xff661c,this[_0x51e959(0x1a8)]);(_0x464ec9[_0x51e959(0x1cb)]||this[_0x51e959(0x1cf)])&&(this[_0x51e959(0x1b5)](_0x51e959(0x1eb),this,_0x464ec9),this[_0x51e959(0x1ea)][_0x51e959(0x1f1)][_0x51e959(0x1cb)]=this[_0x51e959(0x1ea)][_0x51e959(0x1de)][_0x51e959(0x1cb)]=0x0);}else this[_0x51e959(0x1d5)]=this[_0x51e959(0x1d9)][_0x51e959(0x1ab)](this[_0x51e959(0x1bd)]),this[_0x51e959(0x1b5)](_0x51e959(0x1eb),this);}[_0x3112a7(0x1c9)](_0x28db17,_0x2f506d){const _0x5bf1d9=_0x3112a7,_0x5b20ce=[];for(const _0x30c52b of _0x2f506d){const _0x18af82=_0x28db17[_0x30c52b[_0x5bf1d9(0x1ca)]];_0x18af82?_0x18af82[_0x5bf1d9(0x1ac)][_0x5bf1d9(0x1cb)]!==_0x30c52b[_0x5bf1d9(0x1ac)][_0x5bf1d9(0x1cb)]?_0x5b20ce[_0x5bf1d9(0x1ad)](_0x30c52b):_0x18af82[_0x5bf1d9(0x1ac)][_0x5bf1d9(0x1c7)]((_0x4b03fc,_0x35e41c)=>{const _0x40fd7a=_0x5bf1d9,_0x5f0c53=_0x30c52b[_0x40fd7a(0x1ac)][_0x35e41c];_0x4b03fc['id']!==_0x5f0c53['id']&&_0x5b20ce[_0x40fd7a(0x1ad)](_0x30c52b);}):_0x5b20ce[_0x5bf1d9(0x1ad)](_0x30c52b);}return _0x5b20ce;}[_0x3112a7(0x1c5)](){const _0x1907e2=_0x3112a7,_0x28a8bb=new _0x2b4560('p',{},[new _0x2b4560(_0x1907e2(0x1c3),{'style':_0x1907e2(0x1ef)},[new _0x3901d4(_0x42ff55(this[_0x1907e2(0x1c4)][_0x1907e2(0x1af)],_0x1907e2(0x1d1)))])]),_0x9b71aa=this[_0x1907e2(0x1bf)][_0x1907e2(0x1b8)](this[_0x1907e2(0x1d5)],this[_0x1907e2(0x1c2)][_0x1907e2(0x1f0)](!0x0),{'markUnstableElements':!this[_0x1907e2(0x1cf)],'replaceRemovedWith':_0x28a8bb,'cutAfterLastChange':!this[_0x1907e2(0x1cf)]});if(!_0x9b71aa[_0x1907e2(0x1e5)][_0x1907e2(0x1cb)]&&!this[_0x1907e2(0x1cf)])return;this[_0x1907e2(0x1f4)]=_0x9b71aa[_0x1907e2(0x1d5)];let _0x23dca8=[];if(_0x31ba74(_0x46370c=>{const _0x510fec=_0x1907e2,_0x2d8306=_0x1ad82e(_0x46370c,_0x510fec(0x1ee));if(!_0x2d8306||!_0x54592a(_0x2d8306))return!0x1;const _0x2e9b8e=[_0x46370c,..._0x58a523(_0x46370c)]['at'](-0x2);if(_0x46370c!=_0x2e9b8e){const _0x34b8d9=_0x1ad82e(_0x2e9b8e,_0x510fec(0x1ee));_0x54592a(_0x34b8d9)||(_0x23dca8[_0x510fec(0x1ad)]({'node':_0x2e9b8e,'id':_0x34b8d9,'type':_0x510fec(0x1d4)}),_0x9b71aa[_0x510fec(0x1e5)][_0x510fec(0x1ad)](_0x34b8d9));}else _0x9b71aa[_0x510fec(0x1e5)][_0x510fec(0x1b6)](_0x2d8306)?_0x23dca8[_0x510fec(0x1ad)]({'node':_0x46370c,'type':_0x510fec(0x1d4),'id':_0x2d8306}):_0x9b71aa[_0x510fec(0x1b1)][_0x510fec(0x1b6)](_0x2d8306)?_0x23dca8[_0x510fec(0x1ad)]({'node':_0x46370c,'type':_0x510fec(0x1ce),'id':_0x2d8306,'anchorId':_0x1ad82e(_0x46370c[_0x510fec(0x1cd)],_0x510fec(0x1ee))}):_0x23dca8[_0x510fec(0x1ad)]({'node':_0x46370c,'type':_0x510fec(0x1bc),'id':_0x2d8306});return!0x0;},this[_0x1907e2(0x1f4)]),_0x23dca8=_0x23dca8[_0x1907e2(0x1c6)](({node:_0x4a2e49})=>[..._0x58a523(_0x4a2e49),_0x4a2e49][_0x1907e2(0x1b0)](_0x4b3319=>!_0x1ad82e(_0x4b3319,_0x1907e2(0x1aa)))),0x0==_0x23dca8[_0x1907e2(0x1cb)])return;const _0x3a86e4=[[_0x23dca8[0x0]]];for(let _0x4d2a32=0x1;_0x4d2a32<_0x23dca8[_0x1907e2(0x1cb)];_0x4d2a32++){const _0x2d3520=_0x3a86e4[_0x3a86e4[_0x1907e2(0x1cb)]-0x1],_0x3e96cc=_0x2d3520[_0x2d3520[_0x1907e2(0x1cb)]-0x1];_0x23dca8[_0x4d2a32][_0x1907e2(0x1be)][_0x1907e2(0x1cd)]==_0x3e96cc[_0x1907e2(0x1be)]&&_0x1907e2(0x1d4)!=_0x23dca8[_0x4d2a32][_0x1907e2(0x1e0)]&&_0x1907e2(0x1d4)!=_0x3e96cc[_0x1907e2(0x1e0)]?_0x2d3520[_0x1907e2(0x1ad)](_0x23dca8[_0x4d2a32]):_0x3a86e4[_0x1907e2(0x1ad)]([_0x23dca8[_0x4d2a32]]);}for(const _0x51e7c5 of _0x3a86e4){const _0x1cc766=_0x51e7c5[0x0],_0x16f70b=_0x51e7c5[_0x51e7c5[_0x1907e2(0x1cb)]-0x1],_0x31b9e1=_0x1e73ae(_0x1cc766[_0x1907e2(0x1be)][_0x1907e2(0x1cd)]);_0x31b9e1&&_0x51e7c5[_0x1907e2(0x1b7)](_0x31b9e1);const _0x5aa757=_0x1e73ae(_0x16f70b[_0x1907e2(0x1be)][_0x1907e2(0x1e6)]);_0x5aa757&&_0x51e7c5[_0x1907e2(0x1ad)](_0x5aa757);}function _0x54592a(_0x1c6414){const _0x1a8685=_0x1907e2;return _0x9b71aa[_0x1a8685(0x1e5)][_0x1a8685(0x1b6)](_0x1c6414)||_0x9b71aa[_0x1a8685(0x1b1)][_0x1a8685(0x1b6)](_0x1c6414)||_0x9b71aa[_0x1a8685(0x1d2)][_0x1a8685(0x1b6)](_0x1c6414);}function _0x1e73ae(_0x39bea9){const _0x400a3b=_0x1907e2;if(_0x39bea9&&_0x1ad82e(_0x39bea9,_0x400a3b(0x1ee))&&!_0x1ad82e(_0x39bea9,_0x400a3b(0x1aa))){const _0x490540=_0x1ad82e(_0x39bea9,_0x400a3b(0x1ee));if(!_0x54592a(_0x490540))return{'node':_0x39bea9,'type':_0x400a3b(0x1bb),'id':_0x490540};}return null;}this[_0x1907e2(0x1a8)]=_0x3a86e4[_0x1907e2(0x1a7)]((_0x33494b,_0x5a2d29)=>({'changes':_0x33494b,'state':_0x1907e2(0x1f3),'index':_0x5a2d29}));}}
23
+ const _0x15de43=_0x4f16;(function(_0x35ec66,_0x26edc0){const _0x4ddadb=_0x4f16,_0x8c06c2=_0x35ec66();while(!![]){try{const _0x49ef6=parseInt(_0x4ddadb(0x1ec))/0x1+parseInt(_0x4ddadb(0x1d5))/0x2+parseInt(_0x4ddadb(0x1c8))/0x3*(parseInt(_0x4ddadb(0x210))/0x4)+-parseInt(_0x4ddadb(0x209))/0x5*(parseInt(_0x4ddadb(0x1cb))/0x6)+parseInt(_0x4ddadb(0x1e1))/0x7*(-parseInt(_0x4ddadb(0x206))/0x8)+-parseInt(_0x4ddadb(0x1fd))/0x9*(parseInt(_0x4ddadb(0x1d8))/0xa)+parseInt(_0x4ddadb(0x211))/0xb;if(_0x49ef6===_0x26edc0)break;else _0x8c06c2['push'](_0x8c06c2['shift']());}catch(_0x4cf62c){_0x8c06c2['push'](_0x8c06c2['shift']());}}}(_0x2e35,0xd364e));import{CKEditorError as _0x43efa2,ObservableMixin as _0x10a928,uid as _0x326ffb}from'ckeditor5/src/utils.js';import{Element as _0x511730,findAll as _0x3a1342,getAttribute as _0x5901b9,getParents as _0x4670c0,Document as _0x14ab84,parse as _0x21a7f6,Text as _0x117376}from'../utils/htmlparser.js';function _0x4f16(_0x47a720,_0x4119c3){const _0x2e353e=_0x2e35();return _0x4f16=function(_0x4f164d,_0x3d9d83){_0x4f164d=_0x4f164d-0x1c6;let _0x2580d3=_0x2e353e[_0x4f164d];return _0x2580d3;},_0x4f16(_0x47a720,_0x4119c3);}import{AIResponseParser as _0x12f101}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1a9a07}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5c0aec}from'../utils/getsuggestionpartsfromreply.js';function _0x2e35(){const _0x13d2a2=['fire','documentContextContent','merge','AI_SUGGESTION_CONTENT_PART_REMOVED','updateChangeGroups','new','isDone','locale','every','623126TvxMTw','splice','span','1433960KzPXHo','appendContent','nextSibling','previousSibling','interactionId','_getDifferentChangeGroups','removedNodeIds','areActionsDisabled','aiResponseApplier','551082jbhLEG','_getCachedContentParts','node','cloneNode','push','index','aiResponseParser','modification','length','editor','ai-get-editor-from-context-no-editor','238184kBsdPr','stopListening','indexOf','replyContentUpdated','cachedSuggestionContentParts','done','map','content','color:\x20#808080;\x20font-style:\x20italic','removed','data-id','changeGroups','find','withoutDiff','setChangeGroupState','parsedContent','withDiff','18LXzdTq','unshift','set','replyChangeGroupStateUpdated','modified','destroy','change:content','ai-reply-get-content-parts-group-not-found','includes','80PSDvsD','convertMarkdownToHTML','sources','4010lpAIEC','getContentParts','type','forEach','data-unstable','onContentChange','parsedMergedContent','3186084TPMNFI','22947936EyhCHN','context','changes','state','pending','_setCachedContentParts','modifiedNodeIds','filter','3dXNMPj','parseAndNormalizeHTML','newNodeIds','11166mOXQMK'];_0x2e35=function(){return _0x13d2a2;};return _0x2e35();}import{getTranslation as _0x341846}from'../utils/common-translations.js';import{cloneDeep as _0x1861d2}from'es-toolkit';export class AIReply extends _0x10a928(){['id'];[_0x15de43(0x1dc)];[_0x15de43(0x20b)];[_0x15de43(0x208)]=[];[_0x15de43(0x1fb)]=new _0x14ab84([]);[_0x15de43(0x20f)]=new _0x14ab84([]);[_0x15de43(0x1f7)]=[];[_0x15de43(0x1df)]=!0x1;[_0x15de43(0x1cd)];[_0x15de43(0x1e7)];[_0x15de43(0x1e0)];[_0x15de43(0x1ea)];[_0x15de43(0x1f0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x300683,content:_0xc7959='',isDone:_0x8b7a4c=!0x1,interactionId:_0x5b654e,areActionsDisabled:_0x1fe329,documentContextContent:_0x33508f,editor:_0x4bd240,id:_0x3247a1}){const _0x59d8a5=_0x15de43;super(),this['id']=_0x3247a1||_0x326ffb(),this[_0x59d8a5(0x1dc)]=_0x5b654e,this[_0x59d8a5(0x20b)]=_0x300683,this[_0x59d8a5(0x1df)]=!!_0x1fe329,this[_0x59d8a5(0x1ea)]=_0x4bd240,this[_0x59d8a5(0x1e7)]=new _0x12f101(),this[_0x59d8a5(0x1e0)]=new _0x1a9a07(),this[_0x59d8a5(0x1cd)]=_0x21a7f6(_0x33508f||''),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1d2),_0x8b7a4c),this['on'](_0x59d8a5(0x203),()=>{const _0x31aeb6=_0x59d8a5;this[_0x31aeb6(0x20e)]();}),this[_0x59d8a5(0x1ff)](_0x59d8a5(0x1f3),_0xc7959);}[_0x15de43(0x1d9)](_0x430e8f){const _0x5d9f71=_0x15de43;this[_0x5d9f71(0x1ff)](_0x5d9f71(0x1f3),this[_0x5d9f71(0x1f3)]+_0x430e8f);}[_0x15de43(0x1f1)](){const _0x4d136a=_0x15de43;this[_0x4d136a(0x1d2)]||(this[_0x4d136a(0x1ff)](_0x4d136a(0x1d2),!0x0),this[_0x4d136a(0x20e)]());}[_0x15de43(0x202)](){const _0x52e967=_0x15de43;this[_0x52e967(0x1ed)]();}[_0x15de43(0x1fa)](_0x13e807,_0x25d1b2){const _0xe9ee18=_0x15de43;this[_0xe9ee18(0x1f7)][_0x13e807][_0xe9ee18(0x214)]=_0x25d1b2,this[_0xe9ee18(0x1cc)](_0xe9ee18(0x200),{'reply':this,'index':_0x13e807,'state':_0x25d1b2});}[_0x15de43(0x20a)]({showDiff:_0x59edca,groupIndex:_0x139dc7}){const _0x5ebb00=_0x15de43;if(!this[_0x5ebb00(0x1ea)])throw new _0x43efa2(_0x5ebb00(0x1eb),null,{'aiReply':this});const _0x5cfea4=this[_0x5ebb00(0x1e2)](_0x59edca,_0x139dc7);if(_0x5cfea4)return _0x5cfea4;let _0x38f45c=[];if(void 0x0===_0x139dc7)_0x38f45c=this[_0x5ebb00(0x1f7)];else{const _0x3e7dd6=this[_0x5ebb00(0x1f7)][_0x5ebb00(0x1f8)](({index:_0x31c7c9})=>_0x31c7c9===_0x139dc7);if(!_0x3e7dd6)throw new _0x43efa2(_0x5ebb00(0x204),null,{'aiReply':this,'groupIndex':_0x139dc7});_0x38f45c=[_0x3e7dd6];}const _0x2bfeb4=_0x5c0aec({'editor':this[_0x5ebb00(0x1ea)],'showDiff':_0x59edca,'changeGroups':_0x38f45c,'documentContextContent':this[_0x5ebb00(0x1cd)]});return this[_0x5ebb00(0x216)](_0x59edca,_0x2bfeb4),_0x2bfeb4;}[_0x15de43(0x1e2)](_0x1b403c,_0x6f2db7){const _0x575dbe=_0x15de43,_0x152834=_0x1b403c?_0x575dbe(0x1fc):_0x575dbe(0x1f9);if(!this[_0x575dbe(0x1f0)][_0x152834][_0x575dbe(0x1e9)])return null;const _0x536aa1=this[_0x575dbe(0x1f0)][_0x152834];if(void 0x0===_0x6f2db7)return _0x536aa1[_0x575dbe(0x1e9)]>0x0&&_0x536aa1[_0x575dbe(0x1e9)]!==this[_0x575dbe(0x1f7)][_0x575dbe(0x1e9)]?(this[_0x575dbe(0x216)](_0x1b403c,null),null):_0x1861d2(_0x536aa1);{const _0x1863d6=_0x536aa1[_0x575dbe(0x1f8)](({index:_0x27a10c})=>_0x27a10c===_0x6f2db7);if(_0x1863d6)return[_0x1861d2(_0x1863d6)];}return null;}[_0x15de43(0x216)](_0x2625bb,_0x200d17){const _0x1d4024=_0x15de43,_0x2cacfd=_0x2625bb?_0x1d4024(0x1fc):_0x1d4024(0x1f9);_0x200d17?_0x200d17[_0x1d4024(0x20c)](_0x56af8f=>{const _0x587c95=_0x1d4024,_0x92c447=this[_0x587c95(0x1f0)][_0x2cacfd],_0x18d52f=_0x92c447[_0x587c95(0x1f8)](({index:_0x45ad33})=>_0x45ad33===_0x56af8f[_0x587c95(0x1e6)]);if(_0x18d52f){const _0x45ed70=_0x92c447[_0x587c95(0x1ee)](_0x18d52f);_0x92c447[_0x587c95(0x1d6)](_0x45ed70,0x1,_0x56af8f);}else _0x92c447[_0x587c95(0x1e5)](_0x56af8f);}):this[_0x1d4024(0x1f0)][_0x2cacfd][_0x1d4024(0x1e9)]=0x0;}[_0x15de43(0x20e)](){const _0x112ffb=_0x15de43;if(_0x112ffb(0x1e8)===this[_0x112ffb(0x20b)]){this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x1c9)](this[_0x112ffb(0x1f3)]);const _0x2f85db=this[_0x112ffb(0x1f7)];this[_0x112ffb(0x1d0)]();const _0x1dc8f6=this[_0x112ffb(0x1dd)](_0x2f85db,this[_0x112ffb(0x1f7)]);(_0x1dc8f6[_0x112ffb(0x1e9)]||this[_0x112ffb(0x1d2)])&&(this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this,_0x1dc8f6),this[_0x112ffb(0x1f0)][_0x112ffb(0x1fc)][_0x112ffb(0x1e9)]=this[_0x112ffb(0x1f0)][_0x112ffb(0x1f9)][_0x112ffb(0x1e9)]=0x0);}else this[_0x112ffb(0x1fb)]=this[_0x112ffb(0x1e7)][_0x112ffb(0x207)](this[_0x112ffb(0x1f3)]),this[_0x112ffb(0x1cc)](_0x112ffb(0x1ef),this);}[_0x15de43(0x1dd)](_0x1d4797,_0x40a69e){const _0xefa48e=_0x15de43,_0x121cdf=[];for(const _0x19d4c1 of _0x40a69e){const _0x25c77d=_0x1d4797[_0x19d4c1[_0xefa48e(0x1e6)]];_0x25c77d?_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x1e9)]!==_0x19d4c1[_0xefa48e(0x213)][_0xefa48e(0x1e9)]?_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1):_0x25c77d[_0xefa48e(0x213)][_0xefa48e(0x20c)]((_0x4527cd,_0x47c730)=>{const _0x1db793=_0xefa48e,_0x3ed570=_0x19d4c1[_0x1db793(0x213)][_0x47c730];_0x4527cd['id']!==_0x3ed570['id']&&_0x121cdf[_0x1db793(0x1e5)](_0x19d4c1);}):_0x121cdf[_0xefa48e(0x1e5)](_0x19d4c1);}return _0x121cdf;}[_0x15de43(0x1d0)](){const _0x315631=_0x15de43,_0xe34ea6=new _0x511730('p',{},[new _0x511730(_0x315631(0x1d7),{'style':_0x315631(0x1f4)},[new _0x117376(_0x341846(this[_0x315631(0x1ea)][_0x315631(0x1d3)],_0x315631(0x1cf)))])]),_0x5fa843=this[_0x315631(0x1e0)][_0x315631(0x1ce)](this[_0x315631(0x1fb)],this[_0x315631(0x1cd)][_0x315631(0x1e4)](!0x0),{'markUnstableElements':!this[_0x315631(0x1d2)],'replaceRemovedWith':_0xe34ea6,'cutAfterLastChange':!this[_0x315631(0x1d2)]});if(!_0x5fa843[_0x315631(0x1c6)][_0x315631(0x1e9)]&&!this[_0x315631(0x1d2)])return;this[_0x315631(0x20f)]=_0x5fa843[_0x315631(0x1fb)];let _0x43c62a=[];if(_0x3a1342(_0x37f252=>{const _0x5d85c1=_0x315631,_0x1717ae=_0x5901b9(_0x37f252,_0x5d85c1(0x1f6));if(!_0x1717ae||!_0x53230c(_0x1717ae))return!0x1;const _0x5beb9a=[_0x37f252,..._0x4670c0(_0x37f252)]['at'](-0x2);if(_0x37f252!=_0x5beb9a){const _0xdc4f92=_0x5901b9(_0x5beb9a,_0x5d85c1(0x1f6));_0x53230c(_0xdc4f92)||(_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x5beb9a,'id':_0xdc4f92,'type':_0x5d85c1(0x201)}),_0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x1e5)](_0xdc4f92));}else _0x5fa843[_0x5d85c1(0x1c6)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x201),'id':_0x1717ae}):_0x5fa843[_0x5d85c1(0x1ca)][_0x5d85c1(0x205)](_0x1717ae)?_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1d1),'id':_0x1717ae,'anchorId':_0x5901b9(_0x37f252[_0x5d85c1(0x1db)],_0x5d85c1(0x1f6))}):_0x43c62a[_0x5d85c1(0x1e5)]({'node':_0x37f252,'type':_0x5d85c1(0x1f5),'id':_0x1717ae});return!0x0;},this[_0x315631(0x20f)]),_0x43c62a=_0x43c62a[_0x315631(0x1c7)](({node:_0x504bc9})=>[..._0x4670c0(_0x504bc9),_0x504bc9][_0x315631(0x1d4)](_0x249219=>!_0x5901b9(_0x249219,_0x315631(0x20d)))),0x0==_0x43c62a[_0x315631(0x1e9)])return;const _0x296401=[[_0x43c62a[0x0]]];for(let _0x32f786=0x1;_0x32f786<_0x43c62a[_0x315631(0x1e9)];_0x32f786++){const _0x380668=_0x296401[_0x296401[_0x315631(0x1e9)]-0x1],_0x341f08=_0x380668[_0x380668[_0x315631(0x1e9)]-0x1];_0x43c62a[_0x32f786][_0x315631(0x1e3)][_0x315631(0x1db)]==_0x341f08[_0x315631(0x1e3)]&&_0x315631(0x201)!=_0x43c62a[_0x32f786][_0x315631(0x20b)]&&_0x315631(0x201)!=_0x341f08[_0x315631(0x20b)]?_0x380668[_0x315631(0x1e5)](_0x43c62a[_0x32f786]):_0x296401[_0x315631(0x1e5)]([_0x43c62a[_0x32f786]]);}for(const _0x53eca5 of _0x296401){const _0x3b4d1a=_0x53eca5[0x0],_0xa1e02f=_0x53eca5[_0x53eca5[_0x315631(0x1e9)]-0x1],_0x4ecb72=_0x216406(_0x3b4d1a[_0x315631(0x1e3)][_0x315631(0x1db)]);_0x4ecb72&&_0x53eca5[_0x315631(0x1fe)](_0x4ecb72);const _0x218d2=_0x216406(_0xa1e02f[_0x315631(0x1e3)][_0x315631(0x1da)]);_0x218d2&&_0x53eca5[_0x315631(0x1e5)](_0x218d2);}function _0x53230c(_0x21f93a){const _0x5db247=_0x315631;return _0x5fa843[_0x5db247(0x1c6)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1ca)][_0x5db247(0x205)](_0x21f93a)||_0x5fa843[_0x5db247(0x1de)][_0x5db247(0x205)](_0x21f93a);}function _0x216406(_0x50ec0e){const _0x33f6ad=_0x315631;if(_0x50ec0e&&_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6))&&!_0x5901b9(_0x50ec0e,_0x33f6ad(0x20d))){const _0x182385=_0x5901b9(_0x50ec0e,_0x33f6ad(0x1f6));if(!_0x53230c(_0x182385))return{'node':_0x50ec0e,'type':_0x33f6ad(0x212),'id':_0x182385};}return null;}this[_0x315631(0x1f7)]=_0x296401[_0x315631(0x1f2)]((_0x20a0e9,_0x8689a8)=>({'changes':_0x20a0e9,'state':_0x315631(0x215),'index':_0x8689a8}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7df4e=_0xd594;function _0xd594(_0x1b6e52,_0x724797){const _0x9747d6=_0x9747();return _0xd594=function(_0xd59403,_0x4d2814){_0xd59403=_0xd59403-0x161;let _0x5eb72a=_0x9747d6[_0xd59403];return _0x5eb72a;},_0xd594(_0x1b6e52,_0x724797);}function _0x9747(){const _0x6be5ec=['previousSibling','_replaceNode','cloneNode','markUnstableElementsDepth','nodeType','_findPrevElementWithDataId','trim','33089vmnmZZ','_getUid','_isExistingContentComment','_isExistingNode','_findReferenceNode','match','splice','forEach','data-unstable','_findNextElementWithDataId','nextSibling','push','includes','_touchedNodesState','modifiedIds','afterend','from','indexOf','_findFallbackReferenceNode','map','_existingDataIds','_insertNodes','_storeDeletedElementIds','merge','parentNode','_markLastTagElementUnstable','_isDelNode','1345418jdGpgk','data-wrapped-id','cutAfterLastChange','_getNodeDataId','33103584UBPLyz','replaceRemovedWith','1672HYlVdI','length','has','_generateUid','_markWrappedElements','slice','newIds','_hasWrappedParent','reverse','data-id','data-removed','childNodes','filter','_isNewNode','lastTouchedId','_removeSpecialComments','130065JmFaCg','5948928BCfMjr','afterbegin','markUnstableElements','1849245qxPPLv','new-element','329248APOqza','removedIds','true','beforebegin','8LOjaGh','lastChild','_markUnstableElements','invalidIds'];_0x9747=function(){return _0x6be5ec;};return _0x9747();}(function(_0x188da1,_0x230b6f){const _0x37fdca=_0xd594,_0x2b385c=_0x188da1();while(!![]){try{const _0xa725bb=parseInt(_0x37fdca(0x18b))/0x1+-parseInt(_0x37fdca(0x16f))/0x2+-parseInt(_0x37fdca(0x189))/0x3+-parseInt(_0x37fdca(0x18f))/0x4*(parseInt(_0x37fdca(0x185))/0x5)+-parseInt(_0x37fdca(0x186))/0x6+-parseInt(_0x37fdca(0x19a))/0x7*(parseInt(_0x37fdca(0x175))/0x8)+parseInt(_0x37fdca(0x173))/0x9;if(_0xa725bb===_0x230b6f)break;else _0x2b385c['push'](_0x2b385c['shift']());}catch(_0x48f4a0){_0x2b385c['push'](_0x2b385c['shift']());}}}(_0x9747,0xa7afb));import{ObservableMixin as _0xc4d5a,uid as _0x464a4d}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2b736b,findByAttribute as _0x4c0e73,getAttribute as _0x311fef,isComment as _0x450f44,isTag as _0x5dd85b,insertElement as _0x23454f,moveElement as _0x49b1be,removeElement as _0x3eac5d,replaceElement as _0x395233,serialize as _0x54d01c,setAttribute as _0x387130,clone as _0x587f69,findAllComments as _0x58d8c9,getParents as _0x49fbc5,getNodeNestingLevel as _0x2cd91a,areNodesSame as _0x52954c,removeElementsAfter as _0x4f2f1e}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0xc4d5a(){[_0x7df4e(0x178)];[_0x7df4e(0x161)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x7df4e(0x168)]=new Set();constructor(_0x1da4a9){const _0x80caab=_0x7df4e;super(),this[_0x80caab(0x178)]=_0x1da4a9||_0x464a4d;}[_0x7df4e(0x16b)](_0x11f524,_0x1f1cb3,_0x50219c){const _0x28f13f=_0x7df4e,_0x361b6c=_0x587f69(_0x11f524);if(0x0===_0x1f1cb3[_0x28f13f(0x180)][_0x28f13f(0x176)]){const _0x157e80=[];return _0x2b736b(_0x28f13f(0x17e),_0x28f13f(0x18a),_0x361b6c)[_0x28f13f(0x1a1)](_0x1c28cc=>{const _0x4c808c=_0x28f13f,_0x2c9839=this[_0x4c808c(0x178)]();_0x387130(_0x1c28cc,_0x4c808c(0x17e),_0x2c9839),_0x157e80[_0x4c808c(0x1a5)](_0x2c9839);}),this[_0x28f13f(0x184)](_0x361b6c),{'parsedContent':_0x361b6c,'newNodeIds':_0x157e80,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x50219c&&_0x50219c[_0x28f13f(0x188)]&&this[_0x28f13f(0x16d)](_0x361b6c),this[_0x28f13f(0x161)][_0x28f13f(0x17b)]=[],this[_0x28f13f(0x161)][_0x28f13f(0x162)]=[],this[_0x28f13f(0x161)][_0x28f13f(0x18c)]=[],this[_0x28f13f(0x161)][_0x28f13f(0x192)]=[],this[_0x28f13f(0x161)][_0x28f13f(0x183)]=null,this[_0x28f13f(0x168)]=new Set(_0x2b736b(_0x28f13f(0x17e),null,_0x1f1cb3)[_0x28f13f(0x167)](_0x57e5dd=>_0x311fef(_0x57e5dd,_0x28f13f(0x17e)))[_0x28f13f(0x181)](_0x4f0769=>!!_0x4f0769));let _0x5dbe10=-0x1,_0x529d1d=!0x1;const _0x5ab4fe=_0x361b6c[_0x28f13f(0x180)],_0x434a9c=Array[_0x28f13f(0x164)](_0x5ab4fe)[_0x28f13f(0x181)](_0x165868=>!(0x3===_0x165868[_0x28f13f(0x197)]&&''===_0x54d01c(_0x165868)[_0x28f13f(0x199)]())),_0x5590de=_0x434a9c[_0x28f13f(0x176)];for(let _0x1fc792=0x0;_0x1fc792<_0x5590de;_0x1fc792++){const _0x19ad5d=_0x434a9c[_0x1fc792],_0xb14d64=_0x434a9c[_0x1fc792+0x1];if(this[_0x28f13f(0x182)](_0x19ad5d)){if(-0x1===_0x5dbe10&&(_0x5dbe10=_0x1fc792),this[_0x28f13f(0x179)](_0x19ad5d),!this[_0x28f13f(0x182)](_0xb14d64)){const [_0x4d8a51,_0x32941b]=this[_0x28f13f(0x19e)](_0x19ad5d,_0x529d1d,_0x1f1cb3);if(_0x4d8a51){const _0x2e428d=Array[_0x28f13f(0x164)](_0x434a9c)[_0x28f13f(0x17a)](_0x5dbe10,_0x1fc792+0x1);this[_0x28f13f(0x169)](_0x4d8a51,_0x2e428d,_0x32941b),_0x5dbe10=-0x1;}}}else{if(this[_0x28f13f(0x19c)](_0x19ad5d))_0x529d1d=!0x0;else{if(this[_0x28f13f(0x19d)](_0x19ad5d)){const _0x438672=_0x311fef(_0x19ad5d,_0x28f13f(0x17e));if(_0x438672&&this[_0x28f13f(0x168)][_0x28f13f(0x177)](_0x438672)){const _0x3d972b=_0x4c0e73(_0x28f13f(0x17e),_0x438672,_0x1f1cb3);this[_0x28f13f(0x194)](_0x3d972b,_0x19ad5d);}if(this[_0x28f13f(0x161)][_0x28f13f(0x18c)][_0x28f13f(0x1a6)](_0x438672)){const _0x2eeed2=this[_0x28f13f(0x161)][_0x28f13f(0x18c)][_0x28f13f(0x165)](_0x438672);this[_0x28f13f(0x161)][_0x28f13f(0x18c)][_0x28f13f(0x1a0)](_0x2eeed2,0x1);}}else{if(this[_0x28f13f(0x16e)](_0x19ad5d)){const _0x2ac388=_0x311fef(_0x19ad5d,_0x28f13f(0x17e));this[_0x28f13f(0x161)][_0x28f13f(0x162)][_0x28f13f(0x1a6)](_0x2ac388)||this[_0x28f13f(0x16a)](_0x19ad5d);}}}}}for(const _0x26c1f7 of this[_0x28f13f(0x161)][_0x28f13f(0x18c)]){const _0x22e6b0=_0x4c0e73(_0x28f13f(0x17e),_0x26c1f7,_0x1f1cb3);if(_0x22e6b0){if(_0x50219c&&_0x50219c[_0x28f13f(0x174)]){this[_0x28f13f(0x161)][_0x28f13f(0x183)]=_0x26c1f7;const _0x22c751=_0x50219c[_0x28f13f(0x174)][_0x28f13f(0x195)](!0x0);_0x387130(_0x22c751,_0x28f13f(0x17e),_0x26c1f7),_0x387130(_0x22c751,_0x28f13f(0x17f),_0x28f13f(0x18d)),_0x395233(_0x22e6b0,_0x22c751);}else _0x3eac5d(_0x22e6b0);}}if(_0x2b736b(_0x28f13f(0x170),null,_0x1f1cb3)[_0x28f13f(0x1a1)](_0x5ad5f5=>{const _0x4a7252=_0x28f13f,_0x142772=_0x311fef(_0x5ad5f5,_0x4a7252(0x170)),_0x4c7baa=_0x4c0e73(_0x4a7252(0x17e),_0x142772,_0x1f1cb3);_0x4c7baa&&_0x49b1be(_0x4c7baa,_0x5ad5f5);}),_0x2b736b(_0x28f13f(0x17e),_0x28f13f(0x18a),_0x1f1cb3)[_0x28f13f(0x1a1)](_0x23d3b0=>{const _0x315297=_0x28f13f,_0x383142=this[_0x315297(0x19b)](_0x23d3b0);_0x387130(_0x23d3b0,_0x315297(0x17e),_0x383142),this[_0x315297(0x161)][_0x315297(0x17b)][_0x315297(0x1a5)](_0x383142);}),this[_0x28f13f(0x184)](_0x1f1cb3),_0x50219c&&_0x50219c[_0x28f13f(0x188)]&&this[_0x28f13f(0x191)](_0x1f1cb3,_0x50219c[_0x28f13f(0x196)]||0x0),_0x50219c&&_0x50219c[_0x28f13f(0x171)]&&this[_0x28f13f(0x161)][_0x28f13f(0x183)]){let _0x3b8d9d=_0x4c0e73(_0x28f13f(0x17e),this[_0x28f13f(0x161)][_0x28f13f(0x183)],_0x1f1cb3);for(;_0x3b8d9d;)_0x4f2f1e(_0x3b8d9d),_0x3b8d9d=_0x3b8d9d[_0x28f13f(0x16c)];}return{'parsedContent':_0x1f1cb3,'newNodeIds':this[_0x28f13f(0x161)][_0x28f13f(0x17b)],'modifiedNodeIds':this[_0x28f13f(0x161)][_0x28f13f(0x162)],'removedNodeIds':this[_0x28f13f(0x161)][_0x28f13f(0x18c)]};}[_0x7df4e(0x169)](_0x53f7f3,_0x28868b,_0x380639){const _0x2c7fa6=_0x7df4e;for(const _0x4ae136 of _0x28868b){const _0x2dbaea=this[_0x2c7fa6(0x19b)](_0x4ae136);_0x387130(_0x4ae136,_0x2c7fa6(0x17e),_0x2dbaea),this[_0x2c7fa6(0x161)][_0x2c7fa6(0x17b)][_0x2c7fa6(0x1a5)](_0x2dbaea),this[_0x2c7fa6(0x161)][_0x2c7fa6(0x183)]=_0x2dbaea;}const _0x30aba6=_0x2c7fa6(0x187)===_0x380639||_0x2c7fa6(0x163)===_0x380639?_0x28868b[_0x2c7fa6(0x17d)]():_0x28868b;for(const _0x4246fa of _0x30aba6)_0x23454f(_0x53f7f3,_0x4246fa,_0x380639);}[_0x7df4e(0x194)](_0x23c01d,_0x56285a){const _0x45a890=_0x7df4e;if(!_0x23c01d)return;if(_0x52954c(_0x23c01d,_0x56285a))return;const _0x2af614=this[_0x45a890(0x19b)](_0x23c01d);_0x387130(_0x56285a,_0x45a890(0x17e),_0x2af614),this[_0x45a890(0x161)][_0x45a890(0x162)][_0x45a890(0x1a5)](_0x2af614),this[_0x45a890(0x161)][_0x45a890(0x183)]=_0x2af614,_0x395233(_0x23c01d,_0x56285a[_0x45a890(0x195)](!0x0));}[_0x7df4e(0x19e)](_0x16ae1e,_0x15c573,_0x419426){const _0x485d25=_0x7df4e,_0x13ef7f=this[_0x485d25(0x198)](_0x16ae1e,!0x1);if(_0x13ef7f){const _0x9688a8=this[_0x485d25(0x172)](_0x13ef7f),_0x4e76a9=_0x4c0e73(_0x485d25(0x17e),_0x9688a8,_0x419426);if(_0x4e76a9)return[_0x4e76a9,_0x485d25(0x163)];this[_0x485d25(0x161)][_0x485d25(0x192)][_0x485d25(0x1a5)](_0x9688a8);}const _0x5b1920=this[_0x485d25(0x1a3)](_0x16ae1e,!0x1);if(_0x5b1920){const _0x1dd286=this[_0x485d25(0x172)](_0x5b1920),_0x3539b8=_0x4c0e73(_0x485d25(0x17e),_0x1dd286,_0x419426);if(_0x3539b8)return[_0x3539b8,_0x485d25(0x18e)];this[_0x485d25(0x161)][_0x485d25(0x192)][_0x485d25(0x1a5)](_0x1dd286);}return _0x15c573?_0x16ae1e[_0x485d25(0x1a4)]?this[_0x485d25(0x166)](_0x16ae1e,_0x419426):[_0x419426[_0x485d25(0x180)][_0x419426[_0x485d25(0x180)][_0x485d25(0x176)]-0x1],_0x485d25(0x163)]:[_0x419426[_0x485d25(0x180)][0x0],_0x485d25(0x18e)];}[_0x7df4e(0x166)](_0x3ba555,_0x3c9dfa){const _0x1a0013=_0x7df4e,_0x7cc2a=[],_0x23bb4a=this[_0x1a0013(0x198)](_0x3ba555,!0x0);if(_0x23bb4a){const _0x3bc2ee=this[_0x1a0013(0x172)](_0x23bb4a),_0x4e0ee2=_0x4c0e73(_0x1a0013(0x17e),_0x3bc2ee,_0x3c9dfa);_0x4e0ee2&&_0x7cc2a[_0x1a0013(0x1a5)]([_0x4e0ee2,_0x1a0013(0x163)]);}const _0x5635f7=this[_0x1a0013(0x1a3)](_0x3ba555,!0x0);if(_0x5635f7){const _0x59c019=this[_0x1a0013(0x172)](_0x5635f7),_0xb39f90=_0x4c0e73(_0x1a0013(0x17e),_0x59c019,_0x3c9dfa);_0xb39f90&&_0x7cc2a[_0x1a0013(0x1a5)]([_0xb39f90,_0x1a0013(0x18e)]);}if(_0x7cc2a[_0x1a0013(0x176)]>0x1)return _0x2cd91a(_0x7cc2a[0x0][0x0])<=_0x2cd91a(_0x7cc2a[0x1][0x0])?_0x7cc2a[0x0]:_0x7cc2a[0x1];return 0x1===_0x7cc2a[_0x1a0013(0x176)]?_0x7cc2a[0x0]:[_0x3c9dfa[_0x1a0013(0x190)],_0x1a0013(0x163)];}[_0x7df4e(0x1a3)](_0x254171,_0x21f278){const _0x23a825=_0x7df4e;let _0x11f757=_0x254171[_0x23a825(0x1a4)],_0x23124b=null,_0x427545=!0x1;for(;_0x11f757;){if(_0x450f44(_0x11f757)){if(this[_0x23a825(0x16e)](_0x11f757)&&(_0x23124b=_0x11f757),this[_0x23a825(0x19c)](_0x11f757)&&_0x21f278&&!_0x427545){_0x427545=!0x0,_0x11f757=_0x11f757[_0x23a825(0x1a4)];continue;}break;}const _0x43be7f=_0x311fef(_0x11f757,_0x23a825(0x17e));if(_0x43be7f&&_0x23a825(0x18a)!==_0x43be7f&&this[_0x23a825(0x168)][_0x23a825(0x177)](_0x43be7f)){_0x23124b=_0x11f757;break;}_0x11f757=_0x11f757[_0x23a825(0x1a4)];}return _0x23124b;}[_0x7df4e(0x198)](_0xae979b,_0x26bdae){const _0x26a225=_0x7df4e;let _0x3cae50=_0xae979b[_0x26a225(0x193)],_0x24423=null,_0x260a09=!0x1;for(;_0x3cae50;){if(_0x450f44(_0x3cae50)){if(this[_0x26a225(0x16e)](_0x3cae50)&&(_0x24423=_0x3cae50),this[_0x26a225(0x19c)](_0x3cae50)&&_0x26bdae&&!_0x260a09){_0x260a09=!0x0,_0x3cae50=_0x3cae50[_0x26a225(0x193)];continue;}break;}const _0x46bcc4=_0x311fef(_0x3cae50,_0x26a225(0x17e));if(_0x46bcc4&&_0x26a225(0x18a)!==_0x46bcc4&&this[_0x26a225(0x168)][_0x26a225(0x177)](_0x46bcc4)){_0x24423=_0x3cae50;break;}_0x3cae50=_0x3cae50[_0x26a225(0x193)];}return _0x24423;}[_0x7df4e(0x179)](_0x4978d0){const _0x32a211=_0x7df4e;_0x5dd85b(_0x4978d0)&&_0x2b736b(_0x32a211(0x17e),null,_0x4978d0)[_0x32a211(0x1a1)](_0x403b45=>{const _0x4ae83c=_0x32a211;if(this[_0x4ae83c(0x19d)](_0x403b45)&&!this[_0x4ae83c(0x17c)](_0x403b45)){const _0x4f34a9=_0x311fef(_0x403b45,_0x4ae83c(0x17e));_0x387130(_0x403b45,_0x4ae83c(0x170),_0x4f34a9),_0x387130(_0x403b45,_0x4ae83c(0x17e),null);}});}[_0x7df4e(0x172)](_0xa4d3d3){const _0x358523=_0x7df4e;if(!_0xa4d3d3)return null;if(_0x5dd85b(_0xa4d3d3))return _0x311fef(_0xa4d3d3,_0x358523(0x17e));if(_0x450f44(_0xa4d3d3)){const _0x11dc08=_0x54d01c(_0xa4d3d3)[_0x358523(0x19f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x11dc08&&_0x11dc08[0x1])return _0x11dc08[0x1];}return null;}[_0x7df4e(0x16a)](_0x41ce9d){const _0x221517=_0x7df4e;if(_0x450f44(_0x41ce9d)){const _0x155b80=_0x54d01c(_0x41ce9d)[_0x221517(0x19f)](/removed[\s*-]data-id="([^"]+)"/);_0x155b80&&_0x155b80[0x1]&&this[_0x221517(0x161)][_0x221517(0x18c)][_0x221517(0x1a5)](_0x155b80[0x1]);}}[_0x7df4e(0x19b)](_0x1e57b3){const _0x2dc36a=_0x7df4e;return this[_0x2dc36a(0x19d)](_0x1e57b3)?_0x311fef(_0x1e57b3,_0x2dc36a(0x17e)):this[_0x2dc36a(0x178)]();}[_0x7df4e(0x184)](_0x4d042a){const _0x2aa019=_0x7df4e;_0x58d8c9(_0x4d042a)[_0x2aa019(0x181)](_0x7b628b=>this[_0x2aa019(0x16e)](_0x7b628b)||this[_0x2aa019(0x19c)](_0x7b628b))[_0x2aa019(0x1a1)](_0x6c2fab=>{_0x3eac5d(_0x6c2fab);});}[_0x7df4e(0x16d)](_0x2095e2){const _0x48594b=_0x7df4e,_0x187d54=_0x2095e2[_0x48594b(0x180)],_0x21d51b=_0x187d54[_0x187d54[_0x48594b(0x176)]-0x1];_0x21d51b&&_0x5dd85b(_0x21d51b)&&_0x387130(_0x21d51b,_0x48594b(0x1a2),_0x48594b(0x18d));}[_0x7df4e(0x191)](_0x45fcc7,_0x2fc261){const _0xeed966=_0x7df4e,_0x41980f=_0x4c0e73(_0xeed966(0x1a2),_0xeed966(0x18d),_0x45fcc7);if(!_0x41980f)return;const _0xcd4d4d=_0x49fbc5(_0x41980f)[_0xeed966(0x17a)](0x0,-0x1),_0xffe793=_0xcd4d4d[_0xeed966(0x176)];let _0x4fd603=_0x41980f;if(_0xffe793>_0x2fc261){let _0x36bc6d=_0xffe793,_0x3ec3e2=null;for(;_0x36bc6d>_0x2fc261&&_0x36bc6d>=0x0;)_0x36bc6d--,_0x3ec3e2=_0xcd4d4d[_0x36bc6d];_0x3ec3e2&&(_0x4fd603=_0x3ec3e2,_0x387130(_0x41980f,_0xeed966(0x1a2),null),_0x387130(_0x3ec3e2,_0xeed966(0x1a2),_0xeed966(0x18d)));}else{if(_0xffe793<_0x2fc261){let _0x212c03=_0xffe793,_0x20d92b=_0x41980f;for(;_0x212c03<_0x2fc261;){const _0x1f223c=_0x20d92b[_0xeed966(0x180)][_0xeed966(0x181)](_0x46e353=>_0x5dd85b(_0x46e353));if(0x0===_0x1f223c[_0xeed966(0x176)])break;_0x212c03++,_0x20d92b=_0x1f223c[_0x1f223c[_0xeed966(0x176)]-0x1];}_0x20d92b&&(_0x4fd603=_0x20d92b,_0x387130(_0x41980f,_0xeed966(0x1a2),null),_0x387130(_0x20d92b,_0xeed966(0x1a2),_0xeed966(0x18d)));}}let _0x21103d=_0x4fd603;for(;_0x21103d;){for(;_0x21103d[_0xeed966(0x1a4)];)_0x21103d=_0x21103d[_0xeed966(0x1a4)],_0x5dd85b(_0x21103d)&&_0x387130(_0x21103d,_0xeed966(0x1a2),_0xeed966(0x18d));_0x21103d=_0x21103d[_0xeed966(0x16c)];}}[_0x7df4e(0x182)](_0x4b1a6f){const _0x16f3e2=_0x7df4e;return Boolean(_0x16f3e2(0x18a)===_0x311fef(_0x4b1a6f,_0x16f3e2(0x17e)));}[_0x7df4e(0x19d)](_0x23337f){const _0x3b4f96=_0x7df4e;return Boolean((_0x311fef(_0x23337f,_0x3b4f96(0x17e))||'')[_0x3b4f96(0x176)]>0x0&&_0x3b4f96(0x18a)!==_0x311fef(_0x23337f,_0x3b4f96(0x17e)));}[_0x7df4e(0x16e)](_0x74536c){const _0x968938=_0x7df4e;return!!_0x74536c&&Boolean(_0x450f44(_0x74536c)&&_0x54d01c(_0x74536c)[_0x968938(0x19f)](/removed[\s*-]data-id="[^"]+"/));}[_0x7df4e(0x17c)](_0x3f655d){const _0x2f7185=_0x7df4e;let _0x2254a8=_0x3f655d[_0x2f7185(0x16c)];for(;_0x2254a8;){if(_0x311fef(_0x2254a8,_0x2f7185(0x170)))return!0x0;_0x2254a8=_0x2254a8[_0x2f7185(0x16c)];}return!0x1;}[_0x7df4e(0x19c)](_0x2d4631){const _0x348f5a=_0x7df4e;return Boolean(_0x450f44(_0x2d4631)&&_0x54d01c(_0x2d4631)[_0x348f5a(0x19f)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x459b34=_0x1765;(function(_0x1b799b,_0x44032e){const _0x2b5261=_0x1765,_0x1d7c51=_0x1b799b();while(!![]){try{const _0x28f332=parseInt(_0x2b5261(0x211))/0x1*(-parseInt(_0x2b5261(0x22a))/0x2)+parseInt(_0x2b5261(0x202))/0x3*(parseInt(_0x2b5261(0x217))/0x4)+parseInt(_0x2b5261(0x1fa))/0x5*(parseInt(_0x2b5261(0x216))/0x6)+parseInt(_0x2b5261(0x22c))/0x7+-parseInt(_0x2b5261(0x232))/0x8+parseInt(_0x2b5261(0x20c))/0x9*(parseInt(_0x2b5261(0x1f0))/0xa)+parseInt(_0x2b5261(0x1f4))/0xb;if(_0x28f332===_0x44032e)break;else _0x1d7c51['push'](_0x1d7c51['shift']());}catch(_0x27265c){_0x1d7c51['push'](_0x1d7c51['shift']());}}}(_0x465f,0x2a378));function _0x465f(){const _0x21ad3a=['trim','has','_touchedNodesState','_findPrevElementWithDataId','lastTouchedId','600434MzRRYj','_replaceNode','261779DOfLSX','_storeDeletedElementIds','cloneNode','parentNode','_isExistingContentComment','_removeSpecialComments','2373512AnXCzo','childNodes','data-removed','markUnstableElements','modifiedIds','_findNextElementWithDataId','748190JJwZIQ','splice','newIds','length','4210525kByiJq','indexOf','merge','_isExistingNode','afterbegin','reverse','798355EoLEmC','forEach','map','_getUid','cutAfterLastChange','_isDelNode','push','filter','63VsekOt','markUnstableElementsDepth','_hasWrappedParent','removedIds','true','afterend','slice','data-id','_existingDataIds','_markUnstableElements','9PdJlEl','data-wrapped-id','nodeType','includes','new-element','1MOHKBy','_findFallbackReferenceNode','_isNewNode','_insertNodes','match','6qxMAVH','21936DcRsZN','_markLastTagElementUnstable','lastChild','_markWrappedElements','nextSibling','_generateUid','replaceRemovedWith','beforebegin','previousSibling','_getNodeDataId','invalidIds','from','_findReferenceNode','data-unstable'];_0x465f=function(){return _0x21ad3a;};return _0x465f();}function _0x1765(_0x522dc7,_0x45d007){const _0x465f92=_0x465f();return _0x1765=function(_0x17654e,_0x2d7d80){_0x17654e=_0x17654e-0x1eb;let _0x54b19a=_0x465f92[_0x17654e];return _0x54b19a;},_0x1765(_0x522dc7,_0x45d007);}import{ObservableMixin as _0x5e3215,uid as _0x13bbab}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xd1ffa5,findByAttribute as _0x2982a8,getAttribute as _0x2842f8,isComment as _0x5b6b06,isTag as _0x4b38ed,insertElement as _0x58e231,moveElement as _0x4a9924,removeElement as _0xce1575,replaceElement as _0x40d39d,serialize as _0x3865c0,setAttribute as _0x478682,clone as _0x42ab44,findAllComments as _0x54795b,getParents as _0x4fcc3b,getNodeNestingLevel as _0x49384e,areNodesSame as _0x18b4d9,removeElementsAfter as _0x8b970a}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x5e3215(){[_0x459b34(0x21c)];[_0x459b34(0x227)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x459b34(0x20a)]=new Set();constructor(_0x565f74){const _0x4e0c25=_0x459b34;super(),this[_0x4e0c25(0x21c)]=_0x565f74||_0x13bbab;}[_0x459b34(0x1f6)](_0x322810,_0x1d0a61,_0x4a023b){const _0x5bd519=_0x459b34,_0x4323f5=_0x42ab44(_0x322810);if(0x0===_0x1d0a61[_0x5bd519(0x1eb)][_0x5bd519(0x1f3)]){const _0x9f5bfc=[];return _0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x4323f5)[_0x5bd519(0x1fb)](_0x2cbafe=>{const _0x5281d5=_0x5bd519,_0x180909=this[_0x5281d5(0x21c)]();_0x478682(_0x2cbafe,_0x5281d5(0x209),_0x180909),_0x9f5bfc[_0x5281d5(0x200)](_0x180909);}),this[_0x5bd519(0x231)](_0x4323f5),{'parsedContent':_0x4323f5,'newNodeIds':_0x9f5bfc,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x218)](_0x4323f5),this[_0x5bd519(0x227)][_0x5bd519(0x1f2)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x1ee)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x205)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x221)]=[],this[_0x5bd519(0x227)][_0x5bd519(0x229)]=null,this[_0x5bd519(0x20a)]=new Set(_0xd1ffa5(_0x5bd519(0x209),null,_0x1d0a61)[_0x5bd519(0x1fc)](_0x5cf38b=>_0x2842f8(_0x5cf38b,_0x5bd519(0x209)))[_0x5bd519(0x201)](_0x441575=>!!_0x441575));let _0x230f06=-0x1,_0x50aa31=!0x1;const _0x30785c=_0x4323f5[_0x5bd519(0x1eb)],_0x52b4ce=Array[_0x5bd519(0x222)](_0x30785c)[_0x5bd519(0x201)](_0x575225=>!(0x3===_0x575225[_0x5bd519(0x20e)]&&''===_0x3865c0(_0x575225)[_0x5bd519(0x225)]())),_0xed79a3=_0x52b4ce[_0x5bd519(0x1f3)];for(let _0x11fe1d=0x0;_0x11fe1d<_0xed79a3;_0x11fe1d++){const _0x4c6a48=_0x52b4ce[_0x11fe1d],_0x40bb09=_0x52b4ce[_0x11fe1d+0x1];if(this[_0x5bd519(0x213)](_0x4c6a48)){if(-0x1===_0x230f06&&(_0x230f06=_0x11fe1d),this[_0x5bd519(0x21a)](_0x4c6a48),!this[_0x5bd519(0x213)](_0x40bb09)){const [_0x3b8f3f,_0x2a1942]=this[_0x5bd519(0x223)](_0x4c6a48,_0x50aa31,_0x1d0a61);if(_0x3b8f3f){const _0x3969da=Array[_0x5bd519(0x222)](_0x52b4ce)[_0x5bd519(0x208)](_0x230f06,_0x11fe1d+0x1);this[_0x5bd519(0x214)](_0x3b8f3f,_0x3969da,_0x2a1942),_0x230f06=-0x1;}}}else{if(this[_0x5bd519(0x230)](_0x4c6a48))_0x50aa31=!0x0;else{if(this[_0x5bd519(0x1f7)](_0x4c6a48)){const _0x1ab468=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));if(_0x1ab468&&this[_0x5bd519(0x20a)][_0x5bd519(0x226)](_0x1ab468)){const _0x45861f=_0x2982a8(_0x5bd519(0x209),_0x1ab468,_0x1d0a61);this[_0x5bd519(0x22b)](_0x45861f,_0x4c6a48);}if(this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x20f)](_0x1ab468)){const _0x3123e1=this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f5)](_0x1ab468);this[_0x5bd519(0x227)][_0x5bd519(0x205)][_0x5bd519(0x1f1)](_0x3123e1,0x1);}}else{if(this[_0x5bd519(0x1ff)](_0x4c6a48)){const _0x3a438a=_0x2842f8(_0x4c6a48,_0x5bd519(0x209));this[_0x5bd519(0x227)][_0x5bd519(0x1ee)][_0x5bd519(0x20f)](_0x3a438a)||this[_0x5bd519(0x22d)](_0x4c6a48);}}}}}for(const _0x3a44bd of this[_0x5bd519(0x227)][_0x5bd519(0x205)]){const _0x250188=_0x2982a8(_0x5bd519(0x209),_0x3a44bd,_0x1d0a61);if(_0x250188){if(_0x4a023b&&_0x4a023b[_0x5bd519(0x21d)]){this[_0x5bd519(0x227)][_0x5bd519(0x229)]=_0x3a44bd;const _0xe54429=_0x4a023b[_0x5bd519(0x21d)][_0x5bd519(0x22e)](!0x0);_0x478682(_0xe54429,_0x5bd519(0x209),_0x3a44bd),_0x478682(_0xe54429,_0x5bd519(0x1ec),_0x5bd519(0x206)),_0x40d39d(_0x250188,_0xe54429);}else _0xce1575(_0x250188);}}if(_0xd1ffa5(_0x5bd519(0x20d),null,_0x1d0a61)[_0x5bd519(0x1fb)](_0x4cff95=>{const _0x5855de=_0x5bd519,_0x1d2e35=_0x2842f8(_0x4cff95,_0x5855de(0x20d)),_0xa5470e=_0x2982a8(_0x5855de(0x209),_0x1d2e35,_0x1d0a61);_0xa5470e&&_0x4a9924(_0xa5470e,_0x4cff95);}),_0xd1ffa5(_0x5bd519(0x209),_0x5bd519(0x210),_0x1d0a61)[_0x5bd519(0x1fb)](_0xc0aa5f=>{const _0x10fb69=_0x5bd519,_0x41c72e=this[_0x10fb69(0x1fd)](_0xc0aa5f);_0x478682(_0xc0aa5f,_0x10fb69(0x209),_0x41c72e),this[_0x10fb69(0x227)][_0x10fb69(0x1f2)][_0x10fb69(0x200)](_0x41c72e);}),this[_0x5bd519(0x231)](_0x1d0a61),_0x4a023b&&_0x4a023b[_0x5bd519(0x1ed)]&&this[_0x5bd519(0x20b)](_0x1d0a61,_0x4a023b[_0x5bd519(0x203)]||0x0),_0x4a023b&&_0x4a023b[_0x5bd519(0x1fe)]&&this[_0x5bd519(0x227)][_0x5bd519(0x229)]){let _0x11e90f=_0x2982a8(_0x5bd519(0x209),this[_0x5bd519(0x227)][_0x5bd519(0x229)],_0x1d0a61);for(;_0x11e90f;)_0x8b970a(_0x11e90f),_0x11e90f=_0x11e90f[_0x5bd519(0x22f)];}return{'parsedContent':_0x1d0a61,'newNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1f2)],'modifiedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x1ee)],'removedNodeIds':this[_0x5bd519(0x227)][_0x5bd519(0x205)]};}[_0x459b34(0x214)](_0x3c85c4,_0x50812d,_0x25e82a){const _0x4742c6=_0x459b34;for(const _0x43493b of _0x50812d){const _0x4aae2d=this[_0x4742c6(0x1fd)](_0x43493b);_0x478682(_0x43493b,_0x4742c6(0x209),_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x1f2)][_0x4742c6(0x200)](_0x4aae2d),this[_0x4742c6(0x227)][_0x4742c6(0x229)]=_0x4aae2d;}const _0x2e2370=_0x4742c6(0x1f8)===_0x25e82a||_0x4742c6(0x207)===_0x25e82a?_0x50812d[_0x4742c6(0x1f9)]():_0x50812d;for(const _0x3bcde6 of _0x2e2370)_0x58e231(_0x3c85c4,_0x3bcde6,_0x25e82a);}[_0x459b34(0x22b)](_0xd15c5c,_0x50fc86){const _0x393369=_0x459b34;if(!_0xd15c5c)return;if(_0x18b4d9(_0xd15c5c,_0x50fc86))return;const _0x42eb0c=this[_0x393369(0x1fd)](_0xd15c5c);_0x478682(_0x50fc86,_0x393369(0x209),_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x1ee)][_0x393369(0x200)](_0x42eb0c),this[_0x393369(0x227)][_0x393369(0x229)]=_0x42eb0c,_0x40d39d(_0xd15c5c,_0x50fc86[_0x393369(0x22e)](!0x0));}[_0x459b34(0x223)](_0x43c090,_0x3396f2,_0x53d286){const _0x5b2653=_0x459b34,_0x5caaf9=this[_0x5b2653(0x228)](_0x43c090,!0x1);if(_0x5caaf9){const _0x3276a5=this[_0x5b2653(0x220)](_0x5caaf9),_0x3c4044=_0x2982a8(_0x5b2653(0x209),_0x3276a5,_0x53d286);if(_0x3c4044)return[_0x3c4044,_0x5b2653(0x207)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x3276a5);}const _0x23c310=this[_0x5b2653(0x1ef)](_0x43c090,!0x1);if(_0x23c310){const _0x24447e=this[_0x5b2653(0x220)](_0x23c310),_0x4ee8d4=_0x2982a8(_0x5b2653(0x209),_0x24447e,_0x53d286);if(_0x4ee8d4)return[_0x4ee8d4,_0x5b2653(0x21e)];this[_0x5b2653(0x227)][_0x5b2653(0x221)][_0x5b2653(0x200)](_0x24447e);}return _0x3396f2?_0x43c090[_0x5b2653(0x21b)]?this[_0x5b2653(0x212)](_0x43c090,_0x53d286):[_0x53d286[_0x5b2653(0x1eb)][_0x53d286[_0x5b2653(0x1eb)][_0x5b2653(0x1f3)]-0x1],_0x5b2653(0x207)]:[_0x53d286[_0x5b2653(0x1eb)][0x0],_0x5b2653(0x21e)];}[_0x459b34(0x212)](_0x3a6641,_0x4b07b7){const _0x3421b5=_0x459b34,_0x3e858c=[],_0x8aa60e=this[_0x3421b5(0x228)](_0x3a6641,!0x0);if(_0x8aa60e){const _0x806a15=this[_0x3421b5(0x220)](_0x8aa60e),_0x228513=_0x2982a8(_0x3421b5(0x209),_0x806a15,_0x4b07b7);_0x228513&&_0x3e858c[_0x3421b5(0x200)]([_0x228513,_0x3421b5(0x207)]);}const _0x28349f=this[_0x3421b5(0x1ef)](_0x3a6641,!0x0);if(_0x28349f){const _0x19bbaf=this[_0x3421b5(0x220)](_0x28349f),_0x115428=_0x2982a8(_0x3421b5(0x209),_0x19bbaf,_0x4b07b7);_0x115428&&_0x3e858c[_0x3421b5(0x200)]([_0x115428,_0x3421b5(0x21e)]);}if(_0x3e858c[_0x3421b5(0x1f3)]>0x1)return _0x49384e(_0x3e858c[0x0][0x0])<=_0x49384e(_0x3e858c[0x1][0x0])?_0x3e858c[0x0]:_0x3e858c[0x1];return 0x1===_0x3e858c[_0x3421b5(0x1f3)]?_0x3e858c[0x0]:[_0x4b07b7[_0x3421b5(0x219)],_0x3421b5(0x207)];}[_0x459b34(0x1ef)](_0x2e20a4,_0xb47357){const _0xa323e4=_0x459b34;let _0x3e318a=_0x2e20a4[_0xa323e4(0x21b)],_0x894b47=null,_0x445eac=!0x1;for(;_0x3e318a;){if(_0x5b6b06(_0x3e318a)){if(this[_0xa323e4(0x1ff)](_0x3e318a)&&(_0x894b47=_0x3e318a),this[_0xa323e4(0x230)](_0x3e318a)&&_0xb47357&&!_0x445eac){_0x445eac=!0x0,_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];continue;}break;}const _0x2068da=_0x2842f8(_0x3e318a,_0xa323e4(0x209));if(_0x2068da&&_0xa323e4(0x210)!==_0x2068da&&this[_0xa323e4(0x20a)][_0xa323e4(0x226)](_0x2068da)){_0x894b47=_0x3e318a;break;}_0x3e318a=_0x3e318a[_0xa323e4(0x21b)];}return _0x894b47;}[_0x459b34(0x228)](_0x179aab,_0x2aff62){const _0x4decbd=_0x459b34;let _0x4e6b6a=_0x179aab[_0x4decbd(0x21f)],_0x5c3e1c=null,_0xb90ef4=!0x1;for(;_0x4e6b6a;){if(_0x5b6b06(_0x4e6b6a)){if(this[_0x4decbd(0x1ff)](_0x4e6b6a)&&(_0x5c3e1c=_0x4e6b6a),this[_0x4decbd(0x230)](_0x4e6b6a)&&_0x2aff62&&!_0xb90ef4){_0xb90ef4=!0x0,_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];continue;}break;}const _0x1cb4d8=_0x2842f8(_0x4e6b6a,_0x4decbd(0x209));if(_0x1cb4d8&&_0x4decbd(0x210)!==_0x1cb4d8&&this[_0x4decbd(0x20a)][_0x4decbd(0x226)](_0x1cb4d8)){_0x5c3e1c=_0x4e6b6a;break;}_0x4e6b6a=_0x4e6b6a[_0x4decbd(0x21f)];}return _0x5c3e1c;}[_0x459b34(0x21a)](_0xba8f08){const _0x1ef0df=_0x459b34;_0x4b38ed(_0xba8f08)&&_0xd1ffa5(_0x1ef0df(0x209),null,_0xba8f08)[_0x1ef0df(0x1fb)](_0x52ab4b=>{const _0x411e5f=_0x1ef0df;if(this[_0x411e5f(0x1f7)](_0x52ab4b)&&!this[_0x411e5f(0x204)](_0x52ab4b)){const _0x4de87c=_0x2842f8(_0x52ab4b,_0x411e5f(0x209));_0x478682(_0x52ab4b,_0x411e5f(0x20d),_0x4de87c),_0x478682(_0x52ab4b,_0x411e5f(0x209),null);}});}[_0x459b34(0x220)](_0xe45341){const _0x2af184=_0x459b34;if(!_0xe45341)return null;if(_0x4b38ed(_0xe45341))return _0x2842f8(_0xe45341,_0x2af184(0x209));if(_0x5b6b06(_0xe45341)){const _0x51bc53=_0x3865c0(_0xe45341)[_0x2af184(0x215)](/removed[\s*-]data-id="([^"]+)"/);if(_0x51bc53&&_0x51bc53[0x1])return _0x51bc53[0x1];}return null;}[_0x459b34(0x22d)](_0x4a1c04){const _0x2a9637=_0x459b34;if(_0x5b6b06(_0x4a1c04)){const _0x3c6ae8=_0x3865c0(_0x4a1c04)[_0x2a9637(0x215)](/removed[\s*-]data-id="([^"]+)"/);_0x3c6ae8&&_0x3c6ae8[0x1]&&this[_0x2a9637(0x227)][_0x2a9637(0x205)][_0x2a9637(0x200)](_0x3c6ae8[0x1]);}}[_0x459b34(0x1fd)](_0x2d5b0e){const _0x309f85=_0x459b34;return this[_0x309f85(0x1f7)](_0x2d5b0e)?_0x2842f8(_0x2d5b0e,_0x309f85(0x209)):this[_0x309f85(0x21c)]();}[_0x459b34(0x231)](_0x1ed617){const _0x52e4bf=_0x459b34;_0x54795b(_0x1ed617)[_0x52e4bf(0x201)](_0x65a356=>this[_0x52e4bf(0x1ff)](_0x65a356)||this[_0x52e4bf(0x230)](_0x65a356))[_0x52e4bf(0x1fb)](_0x20afa3=>{_0xce1575(_0x20afa3);});}[_0x459b34(0x218)](_0x44465d){const _0x392fb0=_0x459b34,_0x2f9804=_0x44465d[_0x392fb0(0x1eb)],_0xcefc99=_0x2f9804[_0x2f9804[_0x392fb0(0x1f3)]-0x1];_0xcefc99&&_0x4b38ed(_0xcefc99)&&_0x478682(_0xcefc99,_0x392fb0(0x224),_0x392fb0(0x206));}[_0x459b34(0x20b)](_0x594caf,_0x2b117a){const _0x41595b=_0x459b34,_0x3fc83c=_0x2982a8(_0x41595b(0x224),_0x41595b(0x206),_0x594caf);if(!_0x3fc83c)return;const _0x451a5d=_0x4fcc3b(_0x3fc83c)[_0x41595b(0x208)](0x0,-0x1),_0x55f72b=_0x451a5d[_0x41595b(0x1f3)];let _0x137d8b=_0x3fc83c;if(_0x55f72b>_0x2b117a){let _0x36bf41=_0x55f72b,_0x5e2c61=null;for(;_0x36bf41>_0x2b117a&&_0x36bf41>=0x0;)_0x36bf41--,_0x5e2c61=_0x451a5d[_0x36bf41];_0x5e2c61&&(_0x137d8b=_0x5e2c61,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x5e2c61,_0x41595b(0x224),_0x41595b(0x206)));}else{if(_0x55f72b<_0x2b117a){let _0x3a8172=_0x55f72b,_0x128b64=_0x3fc83c;for(;_0x3a8172<_0x2b117a;){const _0x2e0957=_0x128b64[_0x41595b(0x1eb)][_0x41595b(0x201)](_0x3bc915=>_0x4b38ed(_0x3bc915));if(0x0===_0x2e0957[_0x41595b(0x1f3)])break;_0x3a8172++,_0x128b64=_0x2e0957[_0x2e0957[_0x41595b(0x1f3)]-0x1];}_0x128b64&&(_0x137d8b=_0x128b64,_0x478682(_0x3fc83c,_0x41595b(0x224),null),_0x478682(_0x128b64,_0x41595b(0x224),_0x41595b(0x206)));}}let _0x46737a=_0x137d8b;for(;_0x46737a;){for(;_0x46737a[_0x41595b(0x21b)];)_0x46737a=_0x46737a[_0x41595b(0x21b)],_0x4b38ed(_0x46737a)&&_0x478682(_0x46737a,_0x41595b(0x224),_0x41595b(0x206));_0x46737a=_0x46737a[_0x41595b(0x22f)];}}[_0x459b34(0x213)](_0x23ed36){const _0x43954f=_0x459b34;return Boolean(_0x43954f(0x210)===_0x2842f8(_0x23ed36,_0x43954f(0x209)));}[_0x459b34(0x1f7)](_0x29015a){const _0x49dc73=_0x459b34;return Boolean((_0x2842f8(_0x29015a,_0x49dc73(0x209))||'')[_0x49dc73(0x1f3)]>0x0&&_0x49dc73(0x210)!==_0x2842f8(_0x29015a,_0x49dc73(0x209)));}[_0x459b34(0x1ff)](_0x5a47b7){const _0xc173c8=_0x459b34;return!!_0x5a47b7&&Boolean(_0x5b6b06(_0x5a47b7)&&_0x3865c0(_0x5a47b7)[_0xc173c8(0x215)](/removed[\s*-]data-id="[^"]+"/));}[_0x459b34(0x204)](_0x138d94){const _0x5ca146=_0x459b34;let _0x1ab101=_0x138d94[_0x5ca146(0x22f)];for(;_0x1ab101;){if(_0x2842f8(_0x1ab101,_0x5ca146(0x20d)))return!0x0;_0x1ab101=_0x1ab101[_0x5ca146(0x22f)];}return!0x1;}[_0x459b34(0x230)](_0x5adf50){const _0x4a7f12=_0x459b34;return Boolean(_0x5b6b06(_0x5adf50)&&_0x3865c0(_0x5adf50)[_0x4a7f12(0x215)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xca7c92,_0x540d47){var _0x282297=_0x5c4c,_0x5a5cf6=_0xca7c92();while(!![]){try{var _0x551b95=parseInt(_0x282297(0xde))/0x1+-parseInt(_0x282297(0xdf))/0x2+-parseInt(_0x282297(0xd7))/0x3+-parseInt(_0x282297(0xd6))/0x4+parseInt(_0x282297(0xdd))/0x5*(parseInt(_0x282297(0xd5))/0x6)+parseInt(_0x282297(0xdb))/0x7+-parseInt(_0x282297(0xd4))/0x8;if(_0x551b95===_0x540d47)break;else _0x5a5cf6['push'](_0x5a5cf6['shift']());}catch(_0x4a1ee2){_0x5a5cf6['push'](_0x5a5cf6['shift']());}}}(_0x1cbb,0x8686f));import{View as _0x392fa2}from'ckeditor5/src/ui.js';function _0x5c4c(_0x424e1e,_0xb0b80){var _0x1cbba4=_0x1cbb();return _0x5c4c=function(_0x5c4cf3,_0x1e068a){_0x5c4cf3=_0x5c4cf3-0xd3;var _0x1386f0=_0x1cbba4[_0x5c4cf3];return _0x1386f0;},_0x5c4c(_0x424e1e,_0xb0b80);}function _0x1cbb(){var _0x3c2593=['div','AI_DISCLAIMER_TEXT','3384213zmJbUH','ck-ai-disclaimer','3045765LlDUHJ','1097743IDPVZD','199286aNTxCN','ck-ai-disclaimer__content','7712384BZgOrt','6AplavF','2240484WbBECR','46560IEKlcj','setTemplate'];_0x1cbb=function(){return _0x3c2593;};return _0x1cbb();}import{getTranslation as _0x3f6d90}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x392fa2{constructor(_0x1c2ad3){var _0x46d578=_0x5c4c;super(_0x1c2ad3),this[_0x46d578(0xd8)]({'tag':_0x46d578(0xd9),'attributes':{'class':['ck',_0x46d578(0xdc)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x46d578(0xd3)]},'children':[{'text':_0x3f6d90(_0x1c2ad3,_0x46d578(0xda))}]}]});}}
23
+ function _0x2106(){var _0x1b88a8=['ck-ai-disclaimer__content','4259596XBCdTF','AI_DISCLAIMER_TEXT','2962500fZFaed','99160XfmAqF','div','setTemplate','333770Qzkewb','553EbcLbH','ck-ai-disclaimer','20tZnUpz','617868oDybMl','100JvHhgo','24483TFQnKz','6662rNAmRv','261fSpdze'];_0x2106=function(){return _0x1b88a8;};return _0x2106();}function _0x47e2(_0x397d47,_0x28ddcf){var _0x210658=_0x2106();return _0x47e2=function(_0x47e2d4,_0x48c45d){_0x47e2d4=_0x47e2d4-0x1a6;var _0x3309b5=_0x210658[_0x47e2d4];return _0x3309b5;},_0x47e2(_0x397d47,_0x28ddcf);}(function(_0x5c4c02,_0x2bde5e){var _0x4f8f2b=_0x47e2,_0x21edaa=_0x5c4c02();while(!![]){try{var _0x3669b1=-parseInt(_0x4f8f2b(0x1b1))/0x1*(-parseInt(_0x4f8f2b(0x1af))/0x2)+parseInt(_0x4f8f2b(0x1b0))/0x3*(-parseInt(_0x4f8f2b(0x1ad))/0x4)+parseInt(_0x4f8f2b(0x1a6))/0x5+parseInt(_0x4f8f2b(0x1ae))/0x6+parseInt(_0x4f8f2b(0x1ab))/0x7*(parseInt(_0x4f8f2b(0x1a7))/0x8)+-parseInt(_0x4f8f2b(0x1b2))/0x9*(parseInt(_0x4f8f2b(0x1aa))/0xa)+-parseInt(_0x4f8f2b(0x1b4))/0xb;if(_0x3669b1===_0x2bde5e)break;else _0x21edaa['push'](_0x21edaa['shift']());}catch(_0x37848a){_0x21edaa['push'](_0x21edaa['shift']());}}}(_0x2106,0x955e1));import{View as _0x23dbdd}from'ckeditor5/src/ui.js';import{getTranslation as _0x49fa6a}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x23dbdd{constructor(_0x2f4e32){var _0x37b58e=_0x47e2;super(_0x2f4e32),this[_0x37b58e(0x1a9)]({'tag':_0x37b58e(0x1a8),'attributes':{'class':['ck',_0x37b58e(0x1ac)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x37b58e(0x1b3)]},'children':[{'text':_0x49fa6a(_0x2f4e32,_0x37b58e(0x1b5))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1290(){const _0xedbc7f=['444663vsAyYz','set','_setupCopyButton','_setupRatingButtons','addMany','locale','ck-ai-mini-toolbar-copy-button__check-mark','_config','children','24UYyeSR','like','ck-ai-mini-toolbar','72776pqlqCm','ck-ai-mini-toolbar\x20ck-hidden','4434TXzyNl','showChangesButton','556KXLOjM','1193856ncPjpB','isShowChangesOn','execute','extendTemplate','133YvSAsT','dislikeButton','895440OPQDFE','AI_MINI_TOOLBAR_COPY','showChanges','full','73952CEqukd','length','toggleShowChangesEnabled','fire','dislike','likeButton','showDislike','ck-ai-mini-toolbar-copy-button','showLike','ck-ai-button-tertiary','2kCJMTe','AI_MINI_TOOLBAR_LIKE','101516zJoxvK','AI_MINI_TOOLBAR_DISLIKE','items','_setupShowChangesButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','toggleShowChanges','add','60gCjwOA','showCopy','isEnabled','copyButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','customView','class','isOn','icon','bind'];_0x1290=function(){return _0xedbc7f;};return _0x1290();}const _0x5862df=_0x8fe6;(function(_0x286e36,_0x3915eb){const _0x28c6e0=_0x8fe6,_0xc4d439=_0x286e36();while(!![]){try{const _0xc71d40=-parseInt(_0x28c6e0(0x1c8))/0x1*(-parseInt(_0x28c6e0(0x1ca))/0x2)+parseInt(_0x28c6e0(0x1b1))/0x3*(parseInt(_0x28c6e0(0x1b3))/0x4)+-parseInt(_0x28c6e0(0x1ba))/0x5+parseInt(_0x28c6e0(0x1b4))/0x6+-parseInt(_0x28c6e0(0x1b8))/0x7*(-parseInt(_0x28c6e0(0x1be))/0x8)+-parseInt(_0x28c6e0(0x1a3))/0x9*(parseInt(_0x28c6e0(0x1d1))/0xa)+parseInt(_0x28c6e0(0x1af))/0xb*(-parseInt(_0x28c6e0(0x1ac))/0xc);if(_0xc71d40===_0x3915eb)break;else _0xc4d439['push'](_0xc4d439['shift']());}catch(_0x474f2c){_0xc4d439['push'](_0xc4d439['shift']());}}}(_0x1290,0x2f128));import{ButtonView as _0x4d7fde,IconView as _0xc5b78c,ToolbarView as _0x32ba1d}from'ckeditor5/src/ui.js';import{IconCheck as _0x5d92b3,IconCopy as _0x21856e,IconShowChangesOff as _0x1bcbee,IconShowChangesOn as _0x15d92d,IconThumbDown as _0x58b1ef,IconThumbUp as _0x5ef552}from'@ckeditor/ckeditor5-icons';function _0x8fe6(_0xe94b5d,_0x19fb45){const _0x129093=_0x1290();return _0x8fe6=function(_0x8fe676,_0xee9935){_0x8fe676=_0x8fe676-0x1a2;let _0x7bd120=_0x129093[_0x8fe676];return _0x7bd120;},_0x8fe6(_0xe94b5d,_0x19fb45);}import{getTranslation as _0xc211f9}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x32ba1d{[_0x5862df(0x1d4)];[_0x5862df(0x1c3)];[_0x5862df(0x1b9)];[_0x5862df(0x1b2)];[_0x5862df(0x1aa)];constructor(_0x1ae3f4,_0x1eadab={}){const _0x266ea4=_0x5862df;super(_0x1ae3f4),this[_0x266ea4(0x1a4)](_0x266ea4(0x1d3),!0x0),this[_0x266ea4(0x1a4)](_0x266ea4(0x1b5),!0x1),this[_0x266ea4(0x1aa)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1eadab};const _0x52a0ee=!(this[_0x266ea4(0x1aa)][_0x266ea4(0x1d2)]||this[_0x266ea4(0x1aa)][_0x266ea4(0x1bc)]||this[_0x266ea4(0x1aa)][_0x266ea4(0x1c6)]||this[_0x266ea4(0x1aa)][_0x266ea4(0x1c4)]||this[_0x266ea4(0x1aa)][_0x266ea4(0x1d6)]?.[_0x266ea4(0x1bf)]);this[_0x266ea4(0x1d7)]=_0x52a0ee?_0x266ea4(0x1b0):_0x266ea4(0x1ae),this[_0x266ea4(0x1aa)][_0x266ea4(0x1d2)]&&(this[_0x266ea4(0x1a5)](),this[_0x266ea4(0x1cc)][_0x266ea4(0x1d0)](this[_0x266ea4(0x1d4)])),this[_0x266ea4(0x1aa)][_0x266ea4(0x1bc)]&&(this[_0x266ea4(0x1cd)](),this[_0x266ea4(0x1cc)][_0x266ea4(0x1d0)](this[_0x266ea4(0x1b2)])),this[_0x266ea4(0x1a6)](),this[_0x266ea4(0x1aa)][_0x266ea4(0x1c6)]&&this[_0x266ea4(0x1cc)][_0x266ea4(0x1d0)](this[_0x266ea4(0x1c3)]),this[_0x266ea4(0x1aa)][_0x266ea4(0x1c4)]&&this[_0x266ea4(0x1cc)][_0x266ea4(0x1d0)](this[_0x266ea4(0x1b9)]),this[_0x266ea4(0x1aa)][_0x266ea4(0x1d6)]&&this[_0x266ea4(0x1cc)][_0x266ea4(0x1a7)](this[_0x266ea4(0x1aa)][_0x266ea4(0x1d6)]);}[_0x5862df(0x1c0)](_0x4d3825){const _0x2f0550=_0x5862df;this[_0x2f0550(0x1b2)][_0x2f0550(0x1d3)]=_0x4d3825;}[_0x5862df(0x1a6)](){const _0x3270ee=_0x5862df;this[_0x3270ee(0x1c3)]=new _0x4d7fde(this[_0x3270ee(0x1a8)]),this[_0x3270ee(0x1c3)][_0x3270ee(0x1a4)]({'icon':_0x5ef552,'label':_0xc211f9(this[_0x3270ee(0x1a8)],_0x3270ee(0x1c9)),'tooltip':!0x0}),this[_0x3270ee(0x1c3)][_0x3270ee(0x1a2)](_0x3270ee(0x1d3))['to'](this),this[_0x3270ee(0x1c3)]['on'](_0x3270ee(0x1b6),()=>{const _0x27cacf=_0x3270ee;this[_0x27cacf(0x1c1)](_0x27cacf(0x1ad));}),this[_0x3270ee(0x1b9)]=new _0x4d7fde(this[_0x3270ee(0x1a8)]),this[_0x3270ee(0x1b9)][_0x3270ee(0x1a4)]({'icon':_0x58b1ef,'label':_0xc211f9(this[_0x3270ee(0x1a8)],_0x3270ee(0x1cb)),'tooltip':!0x0}),this[_0x3270ee(0x1b9)][_0x3270ee(0x1a2)](_0x3270ee(0x1d3))['to'](this),this[_0x3270ee(0x1b9)]['on'](_0x3270ee(0x1b6),()=>{const _0x43dfa1=_0x3270ee;this[_0x43dfa1(0x1c1)](_0x43dfa1(0x1c2));});}[_0x5862df(0x1a5)](){const _0x2e46a4=_0x5862df;this[_0x2e46a4(0x1d4)]=new _0x4d7fde(this[_0x2e46a4(0x1a8)]),this[_0x2e46a4(0x1d4)][_0x2e46a4(0x1a4)]({'icon':_0x21856e,'label':_0xc211f9(this[_0x2e46a4(0x1a8)],_0x2e46a4(0x1bb)),'class':_0x2e46a4(0x1c5),'tooltip':!0x0}),this[_0x2e46a4(0x1d4)][_0x2e46a4(0x1a2)](_0x2e46a4(0x1d3))['to'](this);const _0x548e2a=new _0xc5b78c();_0x548e2a[_0x2e46a4(0x1a4)]({'content':_0x5d92b3}),_0x548e2a[_0x2e46a4(0x1b7)]({'attributes':{'class':[_0x2e46a4(0x1a9)]}}),this[_0x2e46a4(0x1d4)]['on'](_0x2e46a4(0x1b6),()=>{const _0x1d4752=_0x2e46a4;this[_0x1d4752(0x1d4)][_0x1d4752(0x1d7)]=_0x1d4752(0x1d5),setTimeout(()=>{const _0x315864=_0x1d4752;this[_0x315864(0x1d4)][_0x315864(0x1d7)]=_0x315864(0x1c5);},0x7d0);}),this[_0x2e46a4(0x1d4)][_0x2e46a4(0x1ab)][_0x2e46a4(0x1d0)](_0x548e2a);}[_0x5862df(0x1cd)](){const _0x463227=_0x5862df;this[_0x463227(0x1b2)]=new _0x4d7fde(this[_0x463227(0x1a8)]),this[_0x463227(0x1b2)][_0x463227(0x1a4)]({'icon':_0x1bcbee,'label':_0xc211f9(this[_0x463227(0x1a8)],_0x463227(0x1ce)),'withText':_0x463227(0x1bd)==this[_0x463227(0x1aa)][_0x463227(0x1bc)],'tooltip':_0x463227(0x1bd)!=this[_0x463227(0x1aa)][_0x463227(0x1bc)],'class':_0x463227(0x1c7)}),this[_0x463227(0x1b2)][_0x463227(0x1a2)](_0x463227(0x1d8))['to'](this,_0x463227(0x1b5)),this[_0x463227(0x1b2)][_0x463227(0x1a2)](_0x463227(0x1d3))['to'](this),this[_0x463227(0x1b2)][_0x463227(0x1a2)](_0x463227(0x1d9))['to'](this,_0x463227(0x1b5),_0x327eab=>_0x327eab?_0x15d92d:_0x1bcbee),this[_0x463227(0x1b2)]['on'](_0x463227(0x1b6),()=>{const _0x156d30=_0x463227;this[_0x156d30(0x1c1)](_0x156d30(0x1cf));});}}
23
+ function _0x3bae(_0x308042,_0x2328ff){const _0x2a7cea=_0x2a7c();return _0x3bae=function(_0x3bae66,_0x1071ff){_0x3bae66=_0x3bae66-0x1bb;let _0x416684=_0x2a7cea[_0x3bae66];return _0x416684;},_0x3bae(_0x308042,_0x2328ff);}const _0x21add7=_0x3bae;(function(_0x5026b6,_0x33d27f){const _0x41a26a=_0x3bae,_0xcf929a=_0x5026b6();while(!![]){try{const _0xa19654=-parseInt(_0x41a26a(0x1e3))/0x1+-parseInt(_0x41a26a(0x1cf))/0x2*(-parseInt(_0x41a26a(0x1c4))/0x3)+parseInt(_0x41a26a(0x1e1))/0x4+parseInt(_0x41a26a(0x1cb))/0x5*(parseInt(_0x41a26a(0x1ce))/0x6)+-parseInt(_0x41a26a(0x1db))/0x7+parseInt(_0x41a26a(0x1bf))/0x8+parseInt(_0x41a26a(0x1e5))/0x9*(-parseInt(_0x41a26a(0x1c0))/0xa);if(_0xa19654===_0x33d27f)break;else _0xcf929a['push'](_0xcf929a['shift']());}catch(_0x52d2f9){_0xcf929a['push'](_0xcf929a['shift']());}}}(_0x2a7c,0xce4cc));import{ButtonView as _0x29d769,IconView as _0x226dc7,ToolbarView as _0x273617}from'ckeditor5/src/ui.js';import{IconCheck as _0x3d02d2,IconCopy as _0x1c6cd1,IconShowChangesOff as _0x1d80bd,IconShowChangesOn as _0x1bf958,IconThumbDown as _0x12f89d,IconThumbUp as _0x235810}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5082ec}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x273617{[_0x21add7(0x1ea)];[_0x21add7(0x1be)];[_0x21add7(0x1e6)];[_0x21add7(0x1d4)];[_0x21add7(0x1c3)];constructor(_0x1161cc,_0x2beefd={}){const _0xf65d15=_0x21add7;super(_0x1161cc),this[_0xf65d15(0x1e9)](_0xf65d15(0x1dd),!0x0),this[_0xf65d15(0x1e9)](_0xf65d15(0x1eb),!0x1),this[_0xf65d15(0x1c3)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x2beefd};const _0x29d830=!(this[_0xf65d15(0x1c3)][_0xf65d15(0x1d7)]||this[_0xf65d15(0x1c3)][_0xf65d15(0x1c2)]||this[_0xf65d15(0x1c3)][_0xf65d15(0x1de)]||this[_0xf65d15(0x1c3)][_0xf65d15(0x1bc)]||this[_0xf65d15(0x1c3)][_0xf65d15(0x1dc)]?.[_0xf65d15(0x1d2)]);this[_0xf65d15(0x1e7)]=_0x29d830?_0xf65d15(0x1e8):_0xf65d15(0x1c9),this[_0xf65d15(0x1c3)][_0xf65d15(0x1d7)]&&(this[_0xf65d15(0x1d9)](),this[_0xf65d15(0x1d5)][_0xf65d15(0x1c8)](this[_0xf65d15(0x1ea)])),this[_0xf65d15(0x1c3)][_0xf65d15(0x1c2)]&&(this[_0xf65d15(0x1da)](),this[_0xf65d15(0x1d5)][_0xf65d15(0x1c8)](this[_0xf65d15(0x1d4)])),this[_0xf65d15(0x1bb)](),this[_0xf65d15(0x1c3)][_0xf65d15(0x1de)]&&this[_0xf65d15(0x1d5)][_0xf65d15(0x1c8)](this[_0xf65d15(0x1be)]),this[_0xf65d15(0x1c3)][_0xf65d15(0x1bc)]&&this[_0xf65d15(0x1d5)][_0xf65d15(0x1c8)](this[_0xf65d15(0x1e6)]),this[_0xf65d15(0x1c3)][_0xf65d15(0x1dc)]&&this[_0xf65d15(0x1d5)][_0xf65d15(0x1ed)](this[_0xf65d15(0x1c3)][_0xf65d15(0x1dc)]);}[_0x21add7(0x1cd)](_0x500f3a){const _0x5c2a92=_0x21add7;this[_0x5c2a92(0x1d4)][_0x5c2a92(0x1dd)]=_0x500f3a;}[_0x21add7(0x1bb)](){const _0x322664=_0x21add7;this[_0x322664(0x1be)]=new _0x29d769(this[_0x322664(0x1c7)]),this[_0x322664(0x1be)][_0x322664(0x1e9)]({'icon':_0x235810,'label':_0x5082ec(this[_0x322664(0x1c7)],_0x322664(0x1e2)),'tooltip':!0x0}),this[_0x322664(0x1be)][_0x322664(0x1c1)](_0x322664(0x1dd))['to'](this),this[_0x322664(0x1be)]['on'](_0x322664(0x1ec),()=>{const _0x380600=_0x322664;this[_0x380600(0x1ee)](_0x380600(0x1d0));}),this[_0x322664(0x1e6)]=new _0x29d769(this[_0x322664(0x1c7)]),this[_0x322664(0x1e6)][_0x322664(0x1e9)]({'icon':_0x12f89d,'label':_0x5082ec(this[_0x322664(0x1c7)],_0x322664(0x1cc)),'tooltip':!0x0}),this[_0x322664(0x1e6)][_0x322664(0x1c1)](_0x322664(0x1dd))['to'](this),this[_0x322664(0x1e6)]['on'](_0x322664(0x1ec),()=>{const _0x1ade39=_0x322664;this[_0x1ade39(0x1ee)](_0x1ade39(0x1f0));});}[_0x21add7(0x1d9)](){const _0x167004=_0x21add7;this[_0x167004(0x1ea)]=new _0x29d769(this[_0x167004(0x1c7)]),this[_0x167004(0x1ea)][_0x167004(0x1e9)]({'icon':_0x1c6cd1,'label':_0x5082ec(this[_0x167004(0x1c7)],_0x167004(0x1c5)),'class':_0x167004(0x1c6),'tooltip':!0x0}),this[_0x167004(0x1ea)][_0x167004(0x1c1)](_0x167004(0x1dd))['to'](this);const _0x81880a=new _0x226dc7();_0x81880a[_0x167004(0x1e9)]({'content':_0x3d02d2}),_0x81880a[_0x167004(0x1e0)]({'attributes':{'class':[_0x167004(0x1ca)]}}),this[_0x167004(0x1ea)]['on'](_0x167004(0x1ec),()=>{const _0x45dd92=_0x167004;this[_0x45dd92(0x1ea)][_0x45dd92(0x1e7)]=_0x45dd92(0x1d8),setTimeout(()=>{const _0x256d05=_0x45dd92;this[_0x256d05(0x1ea)][_0x256d05(0x1e7)]=_0x256d05(0x1c6);},0x7d0);}),this[_0x167004(0x1ea)][_0x167004(0x1e4)][_0x167004(0x1c8)](_0x81880a);}[_0x21add7(0x1da)](){const _0x5293dc=_0x21add7;this[_0x5293dc(0x1d4)]=new _0x29d769(this[_0x5293dc(0x1c7)]),this[_0x5293dc(0x1d4)][_0x5293dc(0x1e9)]({'icon':_0x1d80bd,'label':_0x5082ec(this[_0x5293dc(0x1c7)],_0x5293dc(0x1d6)),'withText':_0x5293dc(0x1ef)==this[_0x5293dc(0x1c3)][_0x5293dc(0x1c2)],'tooltip':_0x5293dc(0x1ef)!=this[_0x5293dc(0x1c3)][_0x5293dc(0x1c2)],'class':_0x5293dc(0x1df)}),this[_0x5293dc(0x1d4)][_0x5293dc(0x1c1)](_0x5293dc(0x1bd))['to'](this,_0x5293dc(0x1eb)),this[_0x5293dc(0x1d4)][_0x5293dc(0x1c1)](_0x5293dc(0x1dd))['to'](this),this[_0x5293dc(0x1d4)][_0x5293dc(0x1c1)](_0x5293dc(0x1d1))['to'](this,_0x5293dc(0x1eb),_0x3aa496=>_0x3aa496?_0x1bf958:_0x1d80bd),this[_0x5293dc(0x1d4)]['on'](_0x5293dc(0x1ec),()=>{const _0x5b87e7=_0x5293dc;this[_0x5b87e7(0x1ee)](_0x5b87e7(0x1d3));});}}function _0x2a7c(){const _0x2a9c51=['toggleShowChangesEnabled','66IJMstR','662KPNXAs','like','icon','length','toggleShowChanges','showChangesButton','items','AI_SUGGESTION_BUTTON_SHOW_CHANGES','showCopy','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','_setupCopyButton','_setupShowChangesButton','7674919PhRkKO','customView','isEnabled','showLike','ck-ai-button-tertiary','extendTemplate','6114964Eaxkdr','AI_MINI_TOOLBAR_LIKE','748742kfryuh','children','1391733TnEbuX','dislikeButton','class','ck-ai-mini-toolbar\x20ck-hidden','set','copyButton','isShowChangesOn','execute','addMany','fire','full','dislike','_setupRatingButtons','showDislike','isOn','likeButton','7065184ahoEoU','110cakxhX','bind','showChanges','_config','11274mCwqEv','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar-copy-button','locale','add','ck-ai-mini-toolbar','ck-ai-mini-toolbar-copy-button__check-mark','334265xLWpgD','AI_MINI_TOOLBAR_DISLIKE'];_0x2a7c=function(){return _0x2a9c51;};return _0x2a7c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf0deee=_0x3fb1;(function(_0x58547f,_0x5ba968){const _0x433a99=_0x3fb1,_0x2c9541=_0x58547f();while(!![]){try{const _0x1620d7=-parseInt(_0x433a99(0x186))/0x1+-parseInt(_0x433a99(0x1b0))/0x2+-parseInt(_0x433a99(0x189))/0x3*(-parseInt(_0x433a99(0x17e))/0x4)+-parseInt(_0x433a99(0x1ab))/0x5+parseInt(_0x433a99(0x18e))/0x6+-parseInt(_0x433a99(0x175))/0x7*(parseInt(_0x433a99(0x199))/0x8)+parseInt(_0x433a99(0x1a9))/0x9*(parseInt(_0x433a99(0x19c))/0xa);if(_0x1620d7===_0x5ba968)break;else _0x2c9541['push'](_0x2c9541['shift']());}catch(_0x1a6194){_0x2c9541['push'](_0x2c9541['shift']());}}}(_0x5d5f,0xa2198));function _0x5d5f(){const _0x2feb9b=['delegate','isActive','_actionsView','AI_SUGGESTION_NO_PARTS_WARNING','push','state','483658VkznqT','ck-ai-suggestion__body','updateSources','_updateContentPartsPromiseQueue','hasNonEmptyParts','_sourcesView','addSource','_areActionsDisabled','updateContent','56TIMugZ','_switchButtonLabelsPlurality','partsCount','setTemplate','hasChanges','setContent','ck-ai-suggestion__body__content-parts','_children','122438JdzDtI','div','availableActions','62349BOKiQF','areActionsDisabled','createCollection','isEnabled','_showUnchangedParts','3351048yosgrQ','_availableActions','warning','updateContentParts','length','bodyCollection','forEach','markAsDone','findIndex','queueEmptyPromise','bind','32cbkuwS','AI_SUGGESTION_EMPTY_PART_WARNING','_emptyPartsWarningView','19011810SiGLpl','hasPendingParts','updatePartState','partDefinition','isVisible','locale','abort','enqueue','set','add','from','_cachedContentParts','isTrackChangesOn','9EWvIpB','setPartActive','2412530Bfmczv','getPartView','find','index','pending','2410742DvGyWF','empty-parts-warning','updateVisibility','filter','some','addEventListener'];_0x5d5f=function(){return _0x2feb9b;};return _0x5d5f();}import{View as _0x33025c}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2894fc}from'./aisuggestioncontentpartview.js';function _0x3fb1(_0x4e65d4,_0x15a754){const _0x5d5f32=_0x5d5f();return _0x3fb1=function(_0x3fb12d,_0x21741e){_0x3fb12d=_0x3fb12d-0x16f;let _0x4e3ef0=_0x5d5f32[_0x3fb12d];return _0x4e3ef0;},_0x3fb1(_0x4e65d4,_0x15a754);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4b1017}from'../../utils/eventnames.js';import{PromiseQueue as _0x57ae2a}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x257076}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x328f87}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x24b987}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x56be32}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x33025c{[_0xf0deee(0x171)];[_0xf0deee(0x17a)];[_0xf0deee(0x185)];[_0xf0deee(0x17c)];[_0xf0deee(0x18d)];[_0xf0deee(0x178)];[_0xf0deee(0x19b)];[_0xf0deee(0x18f)];[_0xf0deee(0x1a7)]=[];constructor(_0x352c36,_0x20e397){const _0x2f78cf=_0xf0deee;super(_0x352c36);const {areActionsDisabled:_0x44293d,showUnchangedParts:_0x2fba6e,availableActions:_0x3d811e}=_0x20e397;this[_0x2f78cf(0x17c)]=_0x44293d,this[_0x2f78cf(0x18d)]=_0x2fba6e,this[_0x2f78cf(0x18f)]=_0x3d811e,this[_0x2f78cf(0x1a4)](_0x2f78cf(0x19d),!0x1),this[_0x2f78cf(0x1a4)](_0x2f78cf(0x1a8),!0x1),this[_0x2f78cf(0x185)]=this[_0x2f78cf(0x18b)](),this[_0x2f78cf(0x178)]=new _0x57ae2a(),this[_0x2f78cf(0x19b)]=new _0x257076({'id':_0x2f78cf(0x1b1),'initialContent':_0x328f87(_0x352c36,_0x2f78cf(0x19a)),'level':_0x2f78cf(0x190)}),this[_0x2f78cf(0x19b)][_0x2f78cf(0x1a0)]=!0x1,this[_0x2f78cf(0x171)]=new _0x24b987(_0x352c36,_0x20e397[_0x2f78cf(0x188)],this[_0x2f78cf(0x17c)]),this[_0x2f78cf(0x171)][_0x2f78cf(0x198)](_0x2f78cf(0x1a8))['to'](this),this[_0x2f78cf(0x17a)]=new _0x56be32(this[_0x2f78cf(0x1a1)],_0x20e397[_0x2f78cf(0x193)]),_0x20e397[_0x2f78cf(0x18a)]?this[_0x2f78cf(0x171)][_0x2f78cf(0x18c)]=!0x1:this[_0x2f78cf(0x171)][_0x2f78cf(0x198)](_0x2f78cf(0x18c))['to'](this,_0x2f78cf(0x19d)),this[_0x2f78cf(0x171)][_0x2f78cf(0x16f)](..._0x4b1017)['to'](this),this[_0x2f78cf(0x181)]({'tag':_0x2f78cf(0x187),'attributes':{'class':['ck',_0x2f78cf(0x176)]},'children':[{'tag':_0x2f78cf(0x187),'attributes':{'class':['ck',_0x2f78cf(0x184)]},'children':this[_0x2f78cf(0x185)]},this[_0x2f78cf(0x19b)],this[_0x2f78cf(0x171)],this[_0x2f78cf(0x17a)]]});}get[_0xf0deee(0x180)](){const _0x32621e=_0xf0deee;return this[_0x32621e(0x185)][_0x32621e(0x192)];}async[_0xf0deee(0x191)]({parts:_0x415b49,renderingStrategy:_0x153afb,abortSignal:_0x44c7ef}){const _0x555fda=_0xf0deee;this[_0x555fda(0x185)][_0x555fda(0x192)]?_0x415b49[_0x555fda(0x194)](_0x2662ce=>{const _0x435de2=_0x555fda,_0x4e0043=this[_0x435de2(0x1a7)][_0x435de2(0x196)](_0x390dbc=>_0x390dbc[_0x435de2(0x1ae)]==_0x2662ce[_0x435de2(0x1ae)]);-0x1===_0x4e0043?this[_0x435de2(0x1a7)][_0x435de2(0x173)](_0x2662ce):this[_0x435de2(0x1a7)][_0x4e0043]=_0x2662ce;}):this[_0x555fda(0x1a7)]=_0x415b49;const _0x3e2012=this[_0x555fda(0x18d)]?_0x415b49:_0x415b49[_0x555fda(0x1b3)](_0x4952a8=>_0x4952a8[_0x555fda(0x182)]);this[_0x555fda(0x171)][_0x555fda(0x17f)](_0x3e2012[_0x555fda(0x192)]>0x1);for(const _0x13900b of _0x3e2012)this[_0x555fda(0x178)][_0x555fda(0x1a3)](async _0x5ac85b=>{const _0x4f574c=_0x555fda;let _0x5e7a5d=this[_0x4f574c(0x1ac)](_0x13900b[_0x4f574c(0x1ae)]);_0x5e7a5d||(_0x5e7a5d=new _0x2894fc(this[_0x4f574c(0x1a1)],{'part':_0x13900b,'uiIndex':this[_0x4f574c(0x185)][_0x4f574c(0x192)]+0x1,'areActionsDisabled':this[_0x4f574c(0x17c)],'availableActions':this[_0x4f574c(0x18f)]}),_0x5e7a5d[_0x4f574c(0x16f)](..._0x4b1017)['to'](this),this[_0x4f574c(0x185)][_0x4f574c(0x1a5)](_0x5e7a5d),this[_0x4f574c(0x19d)]=!0x0),await _0x5e7a5d[_0x4f574c(0x17d)]({'part':_0x13900b,'renderingStrategy':_0x153afb,'showUnchangedParts':this[_0x4f574c(0x18d)],'abortSignal':_0x5ac85b}),_0x5e7a5d[_0x4f574c(0x195)]();});return _0x44c7ef?.[_0x555fda(0x1b5)](_0x555fda(0x1a2),()=>{const _0x27c45b=_0x555fda;this[_0x27c45b(0x178)][_0x27c45b(0x1a2)]();}),this[_0x555fda(0x178)][_0x555fda(0x197)];}[_0xf0deee(0x19e)](_0x46c83f,_0x30a5fa){const _0x353af1=_0xf0deee,_0x5a3e13=this[_0x353af1(0x1ac)](_0x46c83f);_0x5a3e13&&(_0x5a3e13[_0x353af1(0x174)]=_0x30a5fa),this[_0x353af1(0x19d)]=_0x353af1(0x1af)==_0x30a5fa||Array[_0x353af1(0x1a6)](this[_0x353af1(0x185)])[_0x353af1(0x1b4)](_0x246a29=>_0x353af1(0x1af)==_0x246a29[_0x353af1(0x174)]);}[_0xf0deee(0x1aa)](_0x3a0d53,_0x15f30b){const _0x41b3ce=_0xf0deee;if(!0x1===_0x3a0d53){for(const _0x232411 of this[_0x41b3ce(0x185)])_0x232411[_0x41b3ce(0x170)]=!0x1;}else{const _0x41f56e=this[_0x41b3ce(0x1ac)](_0x3a0d53);_0x41f56e&&(_0x41f56e[_0x41b3ce(0x170)]=_0x15f30b);}}[_0xf0deee(0x177)](_0x473a88){const _0x20935d=_0xf0deee;_0x473a88[_0x20935d(0x194)](_0x4fb472=>this[_0x20935d(0x17a)][_0x20935d(0x17b)](_0x4fb472)),this[_0x20935d(0x17a)][_0x20935d(0x1a0)]=!0x0;}[_0xf0deee(0x1ac)](_0x35730b){const _0x250dba=_0xf0deee;return this[_0x250dba(0x185)][_0x250dba(0x1ad)](_0x54e0e9=>_0x54e0e9[_0x250dba(0x19f)][_0x250dba(0x1ae)]==_0x35730b)??null;}[_0xf0deee(0x195)](){const _0x380622=_0xf0deee;if(!this[_0x380622(0x18d)]){const _0xb6b707=!this[_0x380622(0x1a7)][_0x380622(0x1ad)](({hasChanges:_0x283fce})=>_0x283fce),_0x3c79fa=!!this[_0x380622(0x1a7)][_0x380622(0x1ad)](({hasChanges:_0x4235a2})=>!_0x4235a2);this[_0x380622(0x19b)][_0x380622(0x1a0)]=0x0==this[_0x380622(0x185)][_0x380622(0x192)]||_0x3c79fa,_0xb6b707?this[_0x380622(0x19b)][_0x380622(0x183)](_0x328f87(this[_0x380622(0x1a1)],_0x380622(0x172))):this[_0x380622(0x19b)][_0x380622(0x183)](_0x328f87(this[_0x380622(0x1a1)],_0x380622(0x19a)));}this[_0x380622(0x185)][_0x380622(0x194)](_0x41fc82=>_0x41fc82[_0x380622(0x195)]()),this[_0x380622(0x171)][_0x380622(0x1b2)](this[_0x380622(0x179)]);}get[_0xf0deee(0x179)](){const _0x31f43f=_0xf0deee;return this[_0x31f43f(0x185)][_0x31f43f(0x1b3)](_0x2a8f8f=>_0x2a8f8f[_0x31f43f(0x19f)][_0x31f43f(0x182)])[_0x31f43f(0x192)]>0x0;}}
23
+ const _0xb9aa02=_0x1155;function _0x45e2(){const _0x2b0f33=['updateVisibility','setContent','isTrackChangesOn','filter','setTemplate','addEventListener','addSource','ck-ai-suggestion__body__content-parts','createCollection','_cachedContentParts','availableActions','partsCount','length','_availableActions','set','partDefinition','2915nomPha','_showUnchangedParts','173609OwyMHq','bodyCollection','106344nFObuK','3395070JGfCYY','4ZnoeQp','_areActionsDisabled','areActionsDisabled','forEach','delegate','find','279rMuPTq','683031myHSQV','getPartView','790qpYcBx','199836feebEG','updatePartState','hasNonEmptyParts','isVisible','updateSources','AI_SUGGESTION_EMPTY_PART_WARNING','from','index','hasPendingParts','pending','bind','_switchButtonLabelsPlurality','1148rEyGEp','AI_SUGGESTION_NO_PARTS_WARNING','setPartActive','findIndex','add','isActive','isEnabled','div','_sourcesView','empty-parts-warning','state','50567sRWywk','abort','updateContentParts','_emptyPartsWarningView','warning','enqueue','queueEmptyPromise','_children','push','some','locale','hasChanges','_updateContentPartsPromiseQueue','updateContent','markAsDone','ck-ai-suggestion__body','_actionsView'];_0x45e2=function(){return _0x2b0f33;};return _0x45e2();}(function(_0x1e563e,_0x2aa231){const _0x510acb=_0x1155,_0x53e5d4=_0x1e563e();while(!![]){try{const _0x478c18=-parseInt(_0x510acb(0x1fe))/0x1*(-parseInt(_0x510acb(0x202))/0x2)+parseInt(_0x510acb(0x209))/0x3+parseInt(_0x510acb(0x218))/0x4*(parseInt(_0x510acb(0x1fc))/0x5)+-parseInt(_0x510acb(0x20c))/0x6+-parseInt(_0x510acb(0x201))/0x7+parseInt(_0x510acb(0x200))/0x8*(parseInt(_0x510acb(0x208))/0x9)+-parseInt(_0x510acb(0x20b))/0xa*(parseInt(_0x510acb(0x223))/0xb);if(_0x478c18===_0x2aa231)break;else _0x53e5d4['push'](_0x53e5d4['shift']());}catch(_0x449292){_0x53e5d4['push'](_0x53e5d4['shift']());}}}(_0x45e2,0x429b4));import{View as _0x4bf85b}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x50f452}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x155055}from'../../utils/eventnames.js';import{PromiseQueue as _0x9823bf}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x284352}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0xb033e8}from'../../utils/common-translations.js';function _0x1155(_0x398ff7,_0x48a9a5){const _0x45e23f=_0x45e2();return _0x1155=function(_0x1155e8,_0x302228){_0x1155e8=_0x1155e8-0x1dc;let _0x105b79=_0x45e23f[_0x1155e8];return _0x105b79;},_0x1155(_0x398ff7,_0x48a9a5);}import{AIChatFeedSuggestionItemActionsView as _0x5e7af7}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x31d736}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x4bf85b{[_0xb9aa02(0x1eb)];[_0xb9aa02(0x220)];[_0xb9aa02(0x1e2)];[_0xb9aa02(0x203)];[_0xb9aa02(0x1fd)];[_0xb9aa02(0x1e7)];[_0xb9aa02(0x1de)];[_0xb9aa02(0x1f9)];[_0xb9aa02(0x1f5)]=[];constructor(_0x5bf9ad,_0x90c440){const _0x3ca6fe=_0xb9aa02;super(_0x5bf9ad);const {areActionsDisabled:_0x930050,showUnchangedParts:_0x20e086,availableActions:_0xfb7373}=_0x90c440;this[_0x3ca6fe(0x203)]=_0x930050,this[_0x3ca6fe(0x1fd)]=_0x20e086,this[_0x3ca6fe(0x1f9)]=_0xfb7373,this[_0x3ca6fe(0x1fa)](_0x3ca6fe(0x214),!0x1),this[_0x3ca6fe(0x1fa)](_0x3ca6fe(0x1ee),!0x1),this[_0x3ca6fe(0x1e2)]=this[_0x3ca6fe(0x1f4)](),this[_0x3ca6fe(0x1e7)]=new _0x9823bf(),this[_0x3ca6fe(0x1de)]=new _0x284352({'id':_0x3ca6fe(0x221),'initialContent':_0xb033e8(_0x5bf9ad,_0x3ca6fe(0x211)),'level':_0x3ca6fe(0x1df)}),this[_0x3ca6fe(0x1de)][_0x3ca6fe(0x20f)]=!0x1,this[_0x3ca6fe(0x1eb)]=new _0x5e7af7(_0x5bf9ad,_0x90c440[_0x3ca6fe(0x1f6)],this[_0x3ca6fe(0x203)]),this[_0x3ca6fe(0x1eb)][_0x3ca6fe(0x216)](_0x3ca6fe(0x1ee))['to'](this),this[_0x3ca6fe(0x220)]=new _0x31d736(this[_0x3ca6fe(0x1e5)],_0x90c440[_0x3ca6fe(0x1ff)]),_0x90c440[_0x3ca6fe(0x204)]?this[_0x3ca6fe(0x1eb)][_0x3ca6fe(0x21e)]=!0x1:this[_0x3ca6fe(0x1eb)][_0x3ca6fe(0x216)](_0x3ca6fe(0x21e))['to'](this,_0x3ca6fe(0x214)),this[_0x3ca6fe(0x1eb)][_0x3ca6fe(0x206)](..._0x155055)['to'](this),this[_0x3ca6fe(0x1f0)]({'tag':_0x3ca6fe(0x21f),'attributes':{'class':['ck',_0x3ca6fe(0x1ea)]},'children':[{'tag':_0x3ca6fe(0x21f),'attributes':{'class':['ck',_0x3ca6fe(0x1f3)]},'children':this[_0x3ca6fe(0x1e2)]},this[_0x3ca6fe(0x1de)],this[_0x3ca6fe(0x1eb)],this[_0x3ca6fe(0x220)]]});}get[_0xb9aa02(0x1f7)](){const _0x1ade52=_0xb9aa02;return this[_0x1ade52(0x1e2)][_0x1ade52(0x1f8)];}async[_0xb9aa02(0x1dd)]({parts:_0x127747,renderingStrategy:_0xb57761,abortSignal:_0x41a726}){const _0x29ff80=_0xb9aa02;this[_0x29ff80(0x1e2)][_0x29ff80(0x1f8)]?_0x127747[_0x29ff80(0x205)](_0x3eef60=>{const _0x250f32=_0x29ff80,_0x2b7899=this[_0x250f32(0x1f5)][_0x250f32(0x21b)](_0x5a437a=>_0x5a437a[_0x250f32(0x213)]==_0x3eef60[_0x250f32(0x213)]);-0x1===_0x2b7899?this[_0x250f32(0x1f5)][_0x250f32(0x1e3)](_0x3eef60):this[_0x250f32(0x1f5)][_0x2b7899]=_0x3eef60;}):this[_0x29ff80(0x1f5)]=_0x127747;const _0x3ea952=this[_0x29ff80(0x1fd)]?_0x127747:_0x127747[_0x29ff80(0x1ef)](_0x26348d=>_0x26348d[_0x29ff80(0x1e6)]);this[_0x29ff80(0x1eb)][_0x29ff80(0x217)](_0x3ea952[_0x29ff80(0x1f8)]>0x1);for(const _0x21c916 of _0x3ea952)this[_0x29ff80(0x1e7)][_0x29ff80(0x1e0)](async _0x177ec1=>{const _0x32988a=_0x29ff80;let _0x8339c3=this[_0x32988a(0x20a)](_0x21c916[_0x32988a(0x213)]);_0x8339c3||(_0x8339c3=new _0x50f452(this[_0x32988a(0x1e5)],{'part':_0x21c916,'uiIndex':this[_0x32988a(0x1e2)][_0x32988a(0x1f8)]+0x1,'areActionsDisabled':this[_0x32988a(0x203)],'availableActions':this[_0x32988a(0x1f9)]}),_0x8339c3[_0x32988a(0x206)](..._0x155055)['to'](this),this[_0x32988a(0x1e2)][_0x32988a(0x21c)](_0x8339c3),this[_0x32988a(0x214)]=!0x0),await _0x8339c3[_0x32988a(0x1e8)]({'part':_0x21c916,'renderingStrategy':_0xb57761,'showUnchangedParts':this[_0x32988a(0x1fd)],'abortSignal':_0x177ec1}),_0x8339c3[_0x32988a(0x1e9)]();});return _0x41a726?.[_0x29ff80(0x1f1)](_0x29ff80(0x1dc),()=>{const _0x4c8fd3=_0x29ff80;this[_0x4c8fd3(0x1e7)][_0x4c8fd3(0x1dc)]();}),this[_0x29ff80(0x1e7)][_0x29ff80(0x1e1)];}[_0xb9aa02(0x20d)](_0x2ea432,_0x3f7015){const _0x44fd08=_0xb9aa02,_0x40384e=this[_0x44fd08(0x20a)](_0x2ea432);_0x40384e&&(_0x40384e[_0x44fd08(0x222)]=_0x3f7015),this[_0x44fd08(0x214)]=_0x44fd08(0x215)==_0x3f7015||Array[_0x44fd08(0x212)](this[_0x44fd08(0x1e2)])[_0x44fd08(0x1e4)](_0x35b049=>_0x44fd08(0x215)==_0x35b049[_0x44fd08(0x222)]);}[_0xb9aa02(0x21a)](_0x2fda79,_0x2b305){const _0x1715ad=_0xb9aa02;if(!0x1===_0x2fda79){for(const _0x4c7da3 of this[_0x1715ad(0x1e2)])_0x4c7da3[_0x1715ad(0x21d)]=!0x1;}else{const _0x3b405c=this[_0x1715ad(0x20a)](_0x2fda79);_0x3b405c&&(_0x3b405c[_0x1715ad(0x21d)]=_0x2b305);}}[_0xb9aa02(0x210)](_0x30cd68){const _0x17b3a7=_0xb9aa02;_0x30cd68[_0x17b3a7(0x205)](_0x533da8=>this[_0x17b3a7(0x220)][_0x17b3a7(0x1f2)](_0x533da8)),this[_0x17b3a7(0x220)][_0x17b3a7(0x20f)]=!0x0;}[_0xb9aa02(0x20a)](_0x1bba78){const _0x12d3d7=_0xb9aa02;return this[_0x12d3d7(0x1e2)][_0x12d3d7(0x207)](_0xcb55c8=>_0xcb55c8[_0x12d3d7(0x1fb)][_0x12d3d7(0x213)]==_0x1bba78)??null;}[_0xb9aa02(0x1e9)](){const _0xe6df13=_0xb9aa02;if(!this[_0xe6df13(0x1fd)]){const _0x1745ff=!this[_0xe6df13(0x1f5)][_0xe6df13(0x207)](({hasChanges:_0x2930b1})=>_0x2930b1),_0x479e35=!!this[_0xe6df13(0x1f5)][_0xe6df13(0x207)](({hasChanges:_0x509c2a})=>!_0x509c2a);this[_0xe6df13(0x1de)][_0xe6df13(0x20f)]=0x0==this[_0xe6df13(0x1e2)][_0xe6df13(0x1f8)]||_0x479e35,_0x1745ff?this[_0xe6df13(0x1de)][_0xe6df13(0x1ed)](_0xb033e8(this[_0xe6df13(0x1e5)],_0xe6df13(0x219))):this[_0xe6df13(0x1de)][_0xe6df13(0x1ed)](_0xb033e8(this[_0xe6df13(0x1e5)],_0xe6df13(0x211)));}this[_0xe6df13(0x1e2)][_0xe6df13(0x205)](_0x1d5b2f=>_0x1d5b2f[_0xe6df13(0x1e9)]()),this[_0xe6df13(0x1eb)][_0xe6df13(0x1ec)](this[_0xe6df13(0x20e)]);}get[_0xb9aa02(0x20e)](){const _0x4f6ffb=_0xb9aa02;return this[_0x4f6ffb(0x1e2)][_0x4f6ffb(0x1ef)](_0x4406bb=>_0x4406bb[_0x4f6ffb(0x1fb)][_0x4f6ffb(0x1e6)])[_0x4f6ffb(0x1f8)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x74f4a1=_0x340e;(function(_0x49526e,_0x50fe41){var _0x268dc6=_0x340e,_0x2811e8=_0x49526e();while(!![]){try{var _0x4b5334=parseInt(_0x268dc6(0x9d))/0x1+-parseInt(_0x268dc6(0xa7))/0x2+-parseInt(_0x268dc6(0xba))/0x3+parseInt(_0x268dc6(0xb2))/0x4+parseInt(_0x268dc6(0xa9))/0x5+-parseInt(_0x268dc6(0xa1))/0x6*(parseInt(_0x268dc6(0xaf))/0x7)+parseInt(_0x268dc6(0xbf))/0x8;if(_0x4b5334===_0x50fe41)break;else _0x2811e8['push'](_0x2811e8['shift']());}catch(_0x28edd7){_0x2811e8['push'](_0x2811e8['shift']());}}}(_0x44be,0x1b8c4));function _0x340e(_0x3bc104,_0xebe84f){var _0x44bed2=_0x44be();return _0x340e=function(_0x340e0c,_0x2e2e62){_0x340e0c=_0x340e0c-0x9c;var _0x88ba76=_0x44bed2[_0x340e0c];return _0x88ba76;},_0x340e(_0x3bc104,_0xebe84f);}import{View as _0x1cdcd7}from'ckeditor5/src/ui.js';import{getTranslation as _0x2df7ed}from'../../utils/common-translations.js';import{AISuggestionContentPartStateView as _0x127df1}from'./aisuggestioncontentpartstateview.js';import{AISuggestionContentPartToolbarView as _0x5594a9}from'./aisuggestioncontentparttoolbarview.js';export class AISuggestionContentPartHeaderView extends _0x1cdcd7{[_0x74f4a1(0xbc)];[_0x74f4a1(0xa4)];[_0x74f4a1(0xb8)];[_0x74f4a1(0xab)];constructor(_0x5bafee,{part:_0x2d7fe4,uiIndex:_0x492d60,availableActions:_0x339111,areActionsDisabled:_0xb3a423}){var _0x5438fc=_0x74f4a1;super(_0x5bafee),this[_0x5438fc(0xa5)](_0x5438fc(0xb7),!0x0),this[_0x5438fc(0xa5)](_0x5438fc(0xb5),_0x5438fc(0xb4)),this[_0x5438fc(0xbc)]=new _0x5594a9(_0x5bafee,_0x339111,_0xb3a423),this[_0x5438fc(0xbc)]['on'](_0x5438fc(0xa8),()=>{var _0x419011=_0x5438fc;this[_0x419011(0xa2)](_0x419011(0xa8),{'index':_0x2d7fe4[_0x419011(0xad)]});}),this[_0x5438fc(0xbc)]['on'](_0x5438fc(0xbe),()=>{var _0x147e75=_0x5438fc;this[_0x147e75(0xa2)](_0x147e75(0xbe),{'index':_0x2d7fe4[_0x147e75(0xad)]});}),this[_0x5438fc(0xbc)]['on'](_0x5438fc(0xa0),()=>{var _0x418fea=_0x5438fc;this[_0x418fea(0xa2)](_0x418fea(0xa0),{'index':_0x2d7fe4[_0x418fea(0xad)]});}),this[_0x5438fc(0xbc)][_0x5438fc(0xa3)](_0x5438fc(0xb7))['to'](this),this[_0x5438fc(0xa4)]=new _0x127df1(_0x5bafee),this[_0x5438fc(0xb8)]=new Sn(_0x5bafee,_0x492d60),this[_0x5438fc(0xab)]=this[_0x5438fc(0x9c)](),this[_0x5438fc(0xab)][_0x5438fc(0xaa)]([this[_0x5438fc(0xb8)],this[_0x5438fc(0xbc)]]),this[_0x5438fc(0xb0)]({'tag':_0x5438fc(0xb1),'attributes':{'class':['ck',_0x5438fc(0xbb),_0x5438fc(0xb9)]},'children':this[_0x5438fc(0xab)]}),this['on'](_0x5438fc(0xb6),(_0x2f119f,_0x412e09,_0x3201d5,_0xcd44d5)=>{var _0x368db3=_0x5438fc;_0x368db3(0xb4)===_0xcd44d5?this[_0x368db3(0xab)][_0x368db3(0x9f)](this[_0x368db3(0xbc)]):this[_0x368db3(0xab)][_0x368db3(0x9f)](this[_0x368db3(0xa4)]),_0x368db3(0xb4)===_0x3201d5?this[_0x368db3(0xab)][_0x368db3(0xb3)](this[_0x368db3(0xbc)]):(this[_0x368db3(0xa4)][_0x368db3(0xbd)](_0x3201d5),this[_0x368db3(0xab)][_0x368db3(0xb3)](this[_0x368db3(0xa4)]));});}}class Sn extends _0x1cdcd7{constructor(_0x4e5d6b,_0x2bd9c9){var _0x387876=_0x74f4a1;super(_0x4e5d6b),this[_0x387876(0xb0)]({'tag':_0x387876(0xae),'attributes':{'class':['ck',_0x387876(0x9e)]},'children':[_0x2df7ed(_0x4e5d6b,_0x387876(0xac),_0x2bd9c9[_0x387876(0xa6)]())]});}}function _0x44be(){var _0x30e27a=['bind','stateView','set','toString','376258bYKqCh','rejectSuggestion','509595nqVwCB','addMany','children','AI_SUGGESTION_CONTENT_PART_TITLE','index','span','741643wHhpGb','setTemplate','div','877552ltrTYR','add','pending','state','change:state','isEnabled','titleLabelView','ck-ai-suggestion__body__content-part__title','375465zSIejx','ck-reset_all-excluded','toolbarView','setState','insertSuggestion','1400616uBqlZT','createCollection','35685CDRqWo','ck-ai-suggestion__body__content-part__title__label','remove','applySuggestion','6mhpThl','fire'];_0x44be=function(){return _0x30e27a;};return _0x44be();}
23
+ var _0x7c6821=_0x9dfa;(function(_0x467ef3,_0x18fb78){var _0x1ced22=_0x9dfa,_0x4c7f02=_0x467ef3();while(!![]){try{var _0x42da42=parseInt(_0x1ced22(0x175))/0x1+parseInt(_0x1ced22(0x176))/0x2+parseInt(_0x1ced22(0x186))/0x3*(-parseInt(_0x1ced22(0x17c))/0x4)+-parseInt(_0x1ced22(0x17d))/0x5*(parseInt(_0x1ced22(0x180))/0x6)+-parseInt(_0x1ced22(0x182))/0x7*(-parseInt(_0x1ced22(0x173))/0x8)+parseInt(_0x1ced22(0x167))/0x9+-parseInt(_0x1ced22(0x16c))/0xa*(-parseInt(_0x1ced22(0x178))/0xb);if(_0x42da42===_0x18fb78)break;else _0x4c7f02['push'](_0x4c7f02['shift']());}catch(_0x20765b){_0x4c7f02['push'](_0x4c7f02['shift']());}}}(_0x18ee,0x28206));function _0x9dfa(_0x98f521,_0x3fccb2){var _0x18ee98=_0x18ee();return _0x9dfa=function(_0x9dfab1,_0x1c017d){_0x9dfab1=_0x9dfab1-0x161;var _0x5d6b41=_0x18ee98[_0x9dfab1];return _0x5d6b41;},_0x9dfa(_0x98f521,_0x3fccb2);}import{View as _0x191e34}from'ckeditor5/src/ui.js';import{getTranslation as _0x28d16e}from'../../utils/common-translations.js';function _0x18ee(){var _0x50a08b=['100rtyJaE','ck-ai-suggestion__body__content-part__title__label','setTemplate','stateView','toolbarView','state','fire','75664CELZce','createCollection','20935ydwNVE','412812yQNlYq','bind','139414GFovxw','isEnabled','insertSuggestion','addMany','1187488RwBtMR','18040ijXGEq','toString','ck-ai-suggestion__body__content-part__title','6iNzvde','setState','63Hqxevb','span','ck-reset_all-excluded','titleLabelView','3oKwYvG','add','change:state','AI_SUGGESTION_CONTENT_PART_TITLE','index','remove','applySuggestion','pending','230715UBAoIL','div','children','rejectSuggestion','set'];_0x18ee=function(){return _0x50a08b;};return _0x18ee();}import{AISuggestionContentPartStateView as _0x1324cb}from'./aisuggestioncontentpartstateview.js';import{AISuggestionContentPartToolbarView as _0x309641}from'./aisuggestioncontentparttoolbarview.js';export class AISuggestionContentPartHeaderView extends _0x191e34{[_0x7c6821(0x170)];[_0x7c6821(0x16f)];[_0x7c6821(0x185)];[_0x7c6821(0x169)];constructor(_0xfe0070,{part:_0x58c69e,uiIndex:_0x247127,availableActions:_0x473577,areActionsDisabled:_0x1bfb54}){var _0x4c9029=_0x7c6821;super(_0xfe0070),this[_0x4c9029(0x16b)](_0x4c9029(0x179),!0x0),this[_0x4c9029(0x16b)](_0x4c9029(0x171),_0x4c9029(0x166)),this[_0x4c9029(0x170)]=new _0x309641(_0xfe0070,_0x473577,_0x1bfb54),this[_0x4c9029(0x170)]['on'](_0x4c9029(0x16a),()=>{var _0x15da5e=_0x4c9029;this[_0x15da5e(0x172)](_0x15da5e(0x16a),{'index':_0x58c69e[_0x15da5e(0x163)]});}),this[_0x4c9029(0x170)]['on'](_0x4c9029(0x17a),()=>{var _0x71ebd2=_0x4c9029;this[_0x71ebd2(0x172)](_0x71ebd2(0x17a),{'index':_0x58c69e[_0x71ebd2(0x163)]});}),this[_0x4c9029(0x170)]['on'](_0x4c9029(0x165),()=>{var _0x1a4d92=_0x4c9029;this[_0x1a4d92(0x172)](_0x1a4d92(0x165),{'index':_0x58c69e[_0x1a4d92(0x163)]});}),this[_0x4c9029(0x170)][_0x4c9029(0x177)](_0x4c9029(0x179))['to'](this),this[_0x4c9029(0x16f)]=new _0x1324cb(_0xfe0070),this[_0x4c9029(0x185)]=new Sn(_0xfe0070,_0x247127),this[_0x4c9029(0x169)]=this[_0x4c9029(0x174)](),this[_0x4c9029(0x169)][_0x4c9029(0x17b)]([this[_0x4c9029(0x185)],this[_0x4c9029(0x170)]]),this[_0x4c9029(0x16e)]({'tag':_0x4c9029(0x168),'attributes':{'class':['ck',_0x4c9029(0x184),_0x4c9029(0x17f)]},'children':this[_0x4c9029(0x169)]}),this['on'](_0x4c9029(0x161),(_0x22959e,_0x15048a,_0x2d9994,_0x32d489)=>{var _0x12399c=_0x4c9029;_0x12399c(0x166)===_0x32d489?this[_0x12399c(0x169)][_0x12399c(0x164)](this[_0x12399c(0x170)]):this[_0x12399c(0x169)][_0x12399c(0x164)](this[_0x12399c(0x16f)]),_0x12399c(0x166)===_0x2d9994?this[_0x12399c(0x169)][_0x12399c(0x187)](this[_0x12399c(0x170)]):(this[_0x12399c(0x16f)][_0x12399c(0x181)](_0x2d9994),this[_0x12399c(0x169)][_0x12399c(0x187)](this[_0x12399c(0x16f)]));});}}class Sn extends _0x191e34{constructor(_0x12caf6,_0x1673bc){var _0x3e889f=_0x7c6821;super(_0x12caf6),this[_0x3e889f(0x16e)]({'tag':_0x3e889f(0x183),'attributes':{'class':['ck',_0x3e889f(0x16d)]},'children':[_0x28d16e(_0x12caf6,_0x3e889f(0x162),_0x1673bc[_0x3e889f(0x17e)]())]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f21e9=_0x199e;function _0x39f5(){const _0x365406=['33jSISWW','AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','set','rejected','194tEmKQq','AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','424776lgarhZ','AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','change:state','setState','state','49NZaHEg','16622450bbJRlv','ck-ai-suggestion__content-part-state','div','content','ck-ai-suggestion__content-part-state_','1469230IZxFBk','3806595mbhWWF','85832yqpVVk','setTemplate','bindTemplate','ck-hidden','span','outdated','accepted','isVisible','stateIconView','ck-ai-suggestion__content-part-state__label','2484456DwgdoL','2710SpTWOL','bind'];_0x39f5=function(){return _0x365406;};return _0x39f5();}function _0x199e(_0x341471,_0x43c70c){const _0x39f526=_0x39f5();return _0x199e=function(_0x199e20,_0x4712d2){_0x199e20=_0x199e20-0x195;let _0x268fdc=_0x39f526[_0x199e20];return _0x268fdc;},_0x199e(_0x341471,_0x43c70c);}(function(_0x200a06,_0x3c7f27){const _0x2bdc48=_0x199e,_0x230f2f=_0x200a06();while(!![]){try{const _0x547059=parseInt(_0x2bdc48(0x1ab))/0x1*(-parseInt(_0x2bdc48(0x1a5))/0x2)+-parseInt(_0x2bdc48(0x1a7))/0x3*(parseInt(_0x2bdc48(0x19a))/0x4)+parseInt(_0x2bdc48(0x198))/0x5+-parseInt(_0x2bdc48(0x1a4))/0x6+-parseInt(_0x2bdc48(0x1b2))/0x7*(parseInt(_0x2bdc48(0x1ad))/0x8)+-parseInt(_0x2bdc48(0x199))/0x9+parseInt(_0x2bdc48(0x1b3))/0xa;if(_0x547059===_0x3c7f27)break;else _0x230f2f['push'](_0x230f2f['shift']());}catch(_0x1e618a){_0x230f2f['push'](_0x230f2f['shift']());}}}(_0x39f5,0x3ca99));import{IconView as _0x2d377a,View as _0x5506b1}from'ckeditor5/src/ui.js';import{IconBoxWithCross as _0x1fafdd,IconBoxWithCheck as _0x3944f2}from'ckeditor5/src/icons.js';import{getTranslation as _0x539179}from'../../utils/common-translations.js';import'../../../../theme/common/aisuggestioncontentpartstate.css';export const ICON_STATE_MAP={'accepted':_0x3944f2,'rejected':_0x1fafdd,'outdated':_0x1fafdd};export class AISuggestionContentPartStateView extends _0x5506b1{[_0x4f21e9(0x1a2)];constructor(_0x5d2684){const _0x6cfc9d=_0x4f21e9;super(_0x5d2684);const _0x4a323b=this[_0x6cfc9d(0x19c)];this[_0x6cfc9d(0x1a9)](_0x6cfc9d(0x1b1),_0x6cfc9d(0x1a0)),this[_0x6cfc9d(0x1a9)](_0x6cfc9d(0x1a1),!0x0),this[_0x6cfc9d(0x1a2)]=new StateIconView(),this[_0x6cfc9d(0x1a2)][_0x6cfc9d(0x1a6)](_0x6cfc9d(0x1b1))['to'](this),this[_0x6cfc9d(0x19b)]({'tag':_0x6cfc9d(0x195),'attributes':{'class':['ck',_0x6cfc9d(0x1b4),_0x4a323b['to'](_0x6cfc9d(0x1b1),_0xedc7ff=>_0x6cfc9d(0x197)+_0xedc7ff),_0x4a323b['if'](_0x6cfc9d(0x1a1),_0x6cfc9d(0x19d),_0x30f8bc=>!_0x30f8bc)]},'children':[{'tag':_0x6cfc9d(0x19e),'attributes':{'class':[_0x6cfc9d(0x1a3)]},'children':[{'text':_0x4a323b['to'](_0x6cfc9d(0x1b1),_0x2e7e83=>{const _0x43df89=_0x6cfc9d;switch(_0x2e7e83){case _0x43df89(0x1a0):return _0x539179(_0x5d2684,_0x43df89(0x1a8));case _0x43df89(0x1aa):return _0x539179(_0x5d2684,_0x43df89(0x1ae));case _0x43df89(0x19f):return _0x539179(_0x5d2684,_0x43df89(0x1ac));}})}]},this[_0x6cfc9d(0x1a2)]]});}[_0x4f21e9(0x1b0)](_0x596ee1){const _0x114783=_0x4f21e9;this[_0x114783(0x1b1)]=_0x596ee1;}}export class StateIconView extends _0x2d377a{constructor(){const _0x26baf3=_0x4f21e9;super(),this[_0x26baf3(0x1a9)](_0x26baf3(0x1b1),_0x26baf3(0x1a0)),this[_0x26baf3(0x196)]=ICON_STATE_MAP[this[_0x26baf3(0x1b1)]],this['on'](_0x26baf3(0x1af),()=>{const _0x1c2fa9=_0x26baf3;this[_0x1c2fa9(0x196)]=ICON_STATE_MAP[this[_0x1c2fa9(0x1b1)]];});}}
23
+ const _0x540dae=_0x1573;function _0x4d6a(){const _0x55ff5d=['set','AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','span','ck-ai-suggestion__content-part-state','2884OCMuTu','3341700cIdtvt','outdated','AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','158695jRsbnV','setTemplate','4HYIjtd','change:state','div','134784ZZrLNk','ck-ai-suggestion__content-part-state_','3600kBnuPP','isVisible','rejected','194980jBfZrb','bind','accepted','ck-hidden','stateIconView','2424084OpSRmJ','ck-ai-suggestion__content-part-state__label','AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','state','bindTemplate','867333wtAsiF','content','setState'];_0x4d6a=function(){return _0x55ff5d;};return _0x4d6a();}(function(_0x593bfd,_0x37f706){const _0x3b40f9=_0x1573,_0x2344e4=_0x593bfd();while(!![]){try{const _0x38d650=-parseInt(_0x3b40f9(0x1fe))/0x1+-parseInt(_0x3b40f9(0x203))/0x2+-parseInt(_0x3b40f9(0x20d))/0x3*(-parseInt(_0x3b40f9(0x1fb))/0x4)+-parseInt(_0x3b40f9(0x1f9))/0x5+parseInt(_0x3b40f9(0x208))/0x6+-parseInt(_0x3b40f9(0x1f5))/0x7*(-parseInt(_0x3b40f9(0x200))/0x8)+-parseInt(_0x3b40f9(0x1f6))/0x9;if(_0x38d650===_0x37f706)break;else _0x2344e4['push'](_0x2344e4['shift']());}catch(_0x2e8f85){_0x2344e4['push'](_0x2344e4['shift']());}}}(_0x4d6a,0x3b60c));function _0x1573(_0x47ac13,_0x143548){const _0x4d6a97=_0x4d6a();return _0x1573=function(_0x15733d,_0x31a9f0){_0x15733d=_0x15733d-0x1f3;let _0x3a9193=_0x4d6a97[_0x15733d];return _0x3a9193;},_0x1573(_0x47ac13,_0x143548);}import{IconView as _0x3b0447,View as _0x2ca72c}from'ckeditor5/src/ui.js';import{IconBoxWithCross as _0x4e0d06,IconBoxWithCheck as _0x5b8532}from'ckeditor5/src/icons.js';import{getTranslation as _0x301c7b}from'../../utils/common-translations.js';import'../../../../theme/common/aisuggestioncontentpartstate.css';export const ICON_STATE_MAP={'accepted':_0x5b8532,'rejected':_0x4e0d06,'outdated':_0x4e0d06};export class AISuggestionContentPartStateView extends _0x2ca72c{[_0x540dae(0x207)];constructor(_0x5192bd){const _0x597440=_0x540dae;super(_0x5192bd);const _0x2cd019=this[_0x597440(0x20c)];this[_0x597440(0x210)](_0x597440(0x20b),_0x597440(0x205)),this[_0x597440(0x210)](_0x597440(0x201),!0x0),this[_0x597440(0x207)]=new StateIconView(),this[_0x597440(0x207)][_0x597440(0x204)](_0x597440(0x20b))['to'](this),this[_0x597440(0x1fa)]({'tag':_0x597440(0x1fd),'attributes':{'class':['ck',_0x597440(0x1f4),_0x2cd019['to'](_0x597440(0x20b),_0x47c605=>_0x597440(0x1ff)+_0x47c605),_0x2cd019['if'](_0x597440(0x201),_0x597440(0x206),_0x2d8391=>!_0x2d8391)]},'children':[{'tag':_0x597440(0x1f3),'attributes':{'class':[_0x597440(0x209)]},'children':[{'text':_0x2cd019['to'](_0x597440(0x20b),_0x4e3921=>{const _0x2a929c=_0x597440;switch(_0x4e3921){case _0x2a929c(0x205):return _0x301c7b(_0x5192bd,_0x2a929c(0x20a));case _0x2a929c(0x202):return _0x301c7b(_0x5192bd,_0x2a929c(0x211));case _0x2a929c(0x1f7):return _0x301c7b(_0x5192bd,_0x2a929c(0x1f8));}})}]},this[_0x597440(0x207)]]});}[_0x540dae(0x20f)](_0x42a608){const _0x432941=_0x540dae;this[_0x432941(0x20b)]=_0x42a608;}}export class StateIconView extends _0x3b0447{constructor(){const _0x2a5495=_0x540dae;super(),this[_0x2a5495(0x210)](_0x2a5495(0x20b),_0x2a5495(0x205)),this[_0x2a5495(0x20e)]=ICON_STATE_MAP[this[_0x2a5495(0x20b)]],this['on'](_0x2a5495(0x1fc),()=>{const _0x1cef05=_0x2a5495;this[_0x1cef05(0x20e)]=ICON_STATE_MAP[this[_0x1cef05(0x20b)]];});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x59db(_0x4555a7,_0x4f76bc){const _0x5b34b0=_0x5b34();return _0x59db=function(_0x59dbf3,_0x1262b8){_0x59dbf3=_0x59dbf3-0x187;let _0x504ea1=_0x5b34b0[_0x59dbf3];return _0x504ea1;},_0x59db(_0x4555a7,_0x4f76bc);}const _0xe58e22=_0x59db;(function(_0xcfa01,_0x23bf5a){const _0x3160ea=_0x59db,_0x300c5d=_0xcfa01();while(!![]){try{const _0x28ab4b=-parseInt(_0x3160ea(0x1a8))/0x1*(parseInt(_0x3160ea(0x198))/0x2)+parseInt(_0x3160ea(0x196))/0x3*(-parseInt(_0x3160ea(0x1a0))/0x4)+parseInt(_0x3160ea(0x194))/0x5*(-parseInt(_0x3160ea(0x1a4))/0x6)+parseInt(_0x3160ea(0x19d))/0x7*(parseInt(_0x3160ea(0x1a7))/0x8)+parseInt(_0x3160ea(0x18b))/0x9*(parseInt(_0x3160ea(0x195))/0xa)+-parseInt(_0x3160ea(0x1a1))/0xb+parseInt(_0x3160ea(0x19c))/0xc;if(_0x28ab4b===_0x23bf5a)break;else _0x300c5d['push'](_0x300c5d['shift']());}catch(_0x490e14){_0x300c5d['push'](_0x300c5d['shift']());}}}(_0x5b34,0xb5904));function _0x5b34(){const _0x409d93=['ck-hidden','48ZJkmLS','_applyButton','execute','1063632eNngBl','11PpGVdc','setButtonsVisibility','bindTemplate','push','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','includes','rejectSuggestion','isVisible','160038niXHQb','extendTemplate','set','insertSuggestion','bind','items','class','ck-ai-suggestion-content-part-toolbar','AI_SUGGESTION_CONTENT_PART_REJECT','82855HoBmVK','680srFVrd','6ePDbUK','addMany','183830QdKFIR','AI_SUGGESTION_CONTENT_PART_APPLY','AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','fire','23741028Oqozio','21JEfvyE','_suggestButton','isEnabled','2416324IOMKUi','5400758FIqVIa','applySuggestion'];_0x5b34=function(){return _0x409d93;};return _0x5b34();}import{ButtonView as _0x70f08a,ToolbarView as _0x2e9fd3}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d6443}from'../../utils/common-translations.js';import{IconBoxWithCross as _0x3a306b,IconBoxWithCheck as _0x3a2080,IconBoxWithMarker as _0x29ee30,IconInfo as _0x3a2bdb}from'ckeditor5/src/icons.js';import'../../../../theme/common/aisuggestioncontentparttoolbar.css';export class AISuggestionContentPartToolbarView extends _0x2e9fd3{[_0xe58e22(0x1a5)];[_0xe58e22(0x19e)];constructor(_0x2f5cd8,_0x2bb96f,_0x2cb777){const _0x14e1a6=_0xe58e22;super(_0x2f5cd8);const _0x1e6d30=Boolean(_0x2cb777);this[_0x14e1a6(0x18d)](_0x14e1a6(0x19f),!_0x1e6d30),this[_0x14e1a6(0x18d)](_0x14e1a6(0x18a),!0x0),this[_0x14e1a6(0x191)]=_0x14e1a6(0x192);const _0x28dced=[];if(_0x1e6d30){const _0x4e20a5=new _0x70f08a(_0x2f5cd8);_0x4e20a5[_0x14e1a6(0x18d)]({'label':_0x4d6443(_0x2f5cd8,_0x14e1a6(0x187)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x3a2bdb}),_0x28dced[_0x14e1a6(0x1ab)](_0x4e20a5);}else{_0x2bb96f[_0x14e1a6(0x188)](_0x14e1a6(0x1a2))&&(this[_0x14e1a6(0x1a5)]=new _0x70f08a(_0x2f5cd8),this[_0x14e1a6(0x1a5)][_0x14e1a6(0x18d)]({'label':_0x4d6443(_0x2f5cd8,_0x14e1a6(0x199)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x3a2080}),this[_0x14e1a6(0x1a5)][_0x14e1a6(0x18f)](_0x14e1a6(0x19f))['to'](this),this[_0x14e1a6(0x1a5)]['on'](_0x14e1a6(0x1a6),()=>{const _0x3486da=_0x14e1a6;this[_0x3486da(0x19b)](_0x3486da(0x1a2));}),_0x28dced[_0x14e1a6(0x1ab)](this[_0x14e1a6(0x1a5)])),_0x2bb96f[_0x14e1a6(0x188)](_0x14e1a6(0x18e))&&(this[_0x14e1a6(0x19e)]=new _0x70f08a(_0x2f5cd8),this[_0x14e1a6(0x19e)][_0x14e1a6(0x18d)]({'label':_0x4d6443(_0x2f5cd8,_0x14e1a6(0x19a)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x29ee30}),this[_0x14e1a6(0x19e)][_0x14e1a6(0x18f)](_0x14e1a6(0x19f))['to'](this),this[_0x14e1a6(0x19e)]['on'](_0x14e1a6(0x1a6),()=>{const _0x4ba64e=_0x14e1a6;this[_0x4ba64e(0x19b)](_0x4ba64e(0x18e));}),_0x28dced[_0x14e1a6(0x1ab)](this[_0x14e1a6(0x19e)]));const _0x4ce85c=new _0x70f08a(_0x2f5cd8);_0x4ce85c[_0x14e1a6(0x18d)]({'label':_0x4d6443(_0x2f5cd8,_0x14e1a6(0x193)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x3a306b}),_0x4ce85c[_0x14e1a6(0x18f)](_0x14e1a6(0x19f))['to'](this),_0x4ce85c['on'](_0x14e1a6(0x1a6),()=>{const _0x5e7cbb=_0x14e1a6;this[_0x5e7cbb(0x19b)](_0x5e7cbb(0x189));}),_0x28dced[_0x14e1a6(0x1ab)](_0x4ce85c);}this[_0x14e1a6(0x190)][_0x14e1a6(0x197)](_0x28dced);const _0x34234c=this[_0x14e1a6(0x1aa)];this[_0x14e1a6(0x18c)]({'attributes':{'class':[_0x34234c['if'](_0x14e1a6(0x18a),_0x14e1a6(0x1a3),_0x252c15=>!_0x252c15)]}});}[_0xe58e22(0x1a9)]({showApplyButton:_0x39a6c3,showSuggestButton:_0x3c59cf}){const _0x324d42=_0xe58e22;this[_0x324d42(0x1a5)]&&(this[_0x324d42(0x1a5)][_0x324d42(0x18a)]=_0x39a6c3),this[_0x324d42(0x19e)]&&(this[_0x324d42(0x19e)][_0x324d42(0x18a)]=_0x3c59cf);}}
23
+ function _0x2cb7(_0x3ebbcd,_0x56c0fc){const _0x29fdfa=_0x29fd();return _0x2cb7=function(_0x2cb71a,_0xe0dbb3){_0x2cb71a=_0x2cb71a-0x13d;let _0x470a89=_0x29fdfa[_0x2cb71a];return _0x470a89;},_0x2cb7(_0x3ebbcd,_0x56c0fc);}const _0x265b9f=_0x2cb7;(function(_0x4777c4,_0x218d85){const _0x300c2e=_0x2cb7,_0x2cca40=_0x4777c4();while(!![]){try{const _0xdbaeb9=parseInt(_0x300c2e(0x142))/0x1+parseInt(_0x300c2e(0x149))/0x2+-parseInt(_0x300c2e(0x14f))/0x3*(parseInt(_0x300c2e(0x15d))/0x4)+-parseInt(_0x300c2e(0x14c))/0x5+-parseInt(_0x300c2e(0x13f))/0x6+parseInt(_0x300c2e(0x140))/0x7+parseInt(_0x300c2e(0x157))/0x8;if(_0xdbaeb9===_0x218d85)break;else _0x2cca40['push'](_0x2cca40['shift']());}catch(_0x5319be){_0x2cca40['push'](_0x2cca40['shift']());}}}(_0x29fd,0x9bd11));import{ButtonView as _0x47120d,ToolbarView as _0x3aa330}from'ckeditor5/src/ui.js';import{getTranslation as _0xa7423}from'../../utils/common-translations.js';import{IconBoxWithCross as _0x22816f,IconBoxWithCheck as _0x301220,IconBoxWithMarker as _0x3fb7d3,IconInfo as _0x1f2fc7}from'ckeditor5/src/icons.js';function _0x29fd(){const _0x2570b9=['4QQIGJJ','items','bindTemplate','4209078GHIXyd','1922130KJDtjF','_applyButton','693195yXJdsG','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','addMany','extendTemplate','push','applySuggestion','fire','1097398MoIkDq','AI_SUGGESTION_CONTENT_PART_REJECT','ck-hidden','599525camFvt','_suggestButton','AI_SUGGESTION_CONTENT_PART_APPLY','2715123AyiWeT','class','execute','bind','includes','set','AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','rejectSuggestion','6785600KZAYxh','isVisible','insertSuggestion','ck-ai-suggestion-content-part-toolbar','setButtonsVisibility','isEnabled'];_0x29fd=function(){return _0x2570b9;};return _0x29fd();}import'../../../../theme/common/aisuggestioncontentparttoolbar.css';export class AISuggestionContentPartToolbarView extends _0x3aa330{[_0x265b9f(0x141)];[_0x265b9f(0x14d)];constructor(_0x47c773,_0x169eaf,_0x5b06a2){const _0x176a4c=_0x265b9f;super(_0x47c773);const _0x4d5da6=Boolean(_0x5b06a2);this[_0x176a4c(0x154)](_0x176a4c(0x15c),!_0x4d5da6),this[_0x176a4c(0x154)](_0x176a4c(0x158),!0x0),this[_0x176a4c(0x150)]=_0x176a4c(0x15a);const _0x25f014=[];if(_0x4d5da6){const _0x97753d=new _0x47120d(_0x47c773);_0x97753d[_0x176a4c(0x154)]({'label':_0xa7423(_0x47c773,_0x176a4c(0x143)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x1f2fc7}),_0x25f014[_0x176a4c(0x146)](_0x97753d);}else{_0x169eaf[_0x176a4c(0x153)](_0x176a4c(0x147))&&(this[_0x176a4c(0x141)]=new _0x47120d(_0x47c773),this[_0x176a4c(0x141)][_0x176a4c(0x154)]({'label':_0xa7423(_0x47c773,_0x176a4c(0x14e)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x301220}),this[_0x176a4c(0x141)][_0x176a4c(0x152)](_0x176a4c(0x15c))['to'](this),this[_0x176a4c(0x141)]['on'](_0x176a4c(0x151),()=>{const _0x1450e6=_0x176a4c;this[_0x1450e6(0x148)](_0x1450e6(0x147));}),_0x25f014[_0x176a4c(0x146)](this[_0x176a4c(0x141)])),_0x169eaf[_0x176a4c(0x153)](_0x176a4c(0x159))&&(this[_0x176a4c(0x14d)]=new _0x47120d(_0x47c773),this[_0x176a4c(0x14d)][_0x176a4c(0x154)]({'label':_0xa7423(_0x47c773,_0x176a4c(0x155)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x3fb7d3}),this[_0x176a4c(0x14d)][_0x176a4c(0x152)](_0x176a4c(0x15c))['to'](this),this[_0x176a4c(0x14d)]['on'](_0x176a4c(0x151),()=>{const _0x42e5e1=_0x176a4c;this[_0x42e5e1(0x148)](_0x42e5e1(0x159));}),_0x25f014[_0x176a4c(0x146)](this[_0x176a4c(0x14d)]));const _0x472371=new _0x47120d(_0x47c773);_0x472371[_0x176a4c(0x154)]({'label':_0xa7423(_0x47c773,_0x176a4c(0x14a)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x22816f}),_0x472371[_0x176a4c(0x152)](_0x176a4c(0x15c))['to'](this),_0x472371['on'](_0x176a4c(0x151),()=>{const _0x2d2272=_0x176a4c;this[_0x2d2272(0x148)](_0x2d2272(0x156));}),_0x25f014[_0x176a4c(0x146)](_0x472371);}this[_0x176a4c(0x13d)][_0x176a4c(0x144)](_0x25f014);const _0x2b9ed4=this[_0x176a4c(0x13e)];this[_0x176a4c(0x145)]({'attributes':{'class':[_0x2b9ed4['if'](_0x176a4c(0x158),_0x176a4c(0x14b),_0x35a418=>!_0x35a418)]}});}[_0x265b9f(0x15b)]({showApplyButton:_0x5bde46,showSuggestButton:_0x5b6678}){const _0x51bcd1=_0x265b9f;this[_0x51bcd1(0x141)]&&(this[_0x51bcd1(0x141)][_0x51bcd1(0x158)]=_0x5bde46),this[_0x51bcd1(0x14d)]&&(this[_0x51bcd1(0x14d)][_0x51bcd1(0x158)]=_0x5b6678);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x392e2b=_0x3beb;(function(_0x477406,_0x4658fb){const _0x132cfa=_0x3beb,_0x28edb4=_0x477406();while(!![]){try{const _0x1f8c6a=-parseInt(_0x132cfa(0x6a))/0x1+parseInt(_0x132cfa(0x6d))/0x2+-parseInt(_0x132cfa(0x6f))/0x3*(parseInt(_0x132cfa(0x7a))/0x4)+parseInt(_0x132cfa(0x82))/0x5*(-parseInt(_0x132cfa(0x7b))/0x6)+-parseInt(_0x132cfa(0x8f))/0x7*(-parseInt(_0x132cfa(0x6b))/0x8)+-parseInt(_0x132cfa(0x77))/0x9*(parseInt(_0x132cfa(0x8b))/0xa)+parseInt(_0x132cfa(0x86))/0xb;if(_0x1f8c6a===_0x4658fb)break;else _0x28edb4['push'](_0x28edb4['shift']());}catch(_0x2976b0){_0x28edb4['push'](_0x28edb4['shift']());}}}(_0x434e,0x83f54));function _0x434e(){const _0x31899b=['21FGastW','190488UEjFSY','1018816ZZVoCs','set','1208520OyJPcy','showChangesToggleView','108HAdIOT','setTemplate','toggleShowChanges','content','add','div','isOn','showDiff','12834fDSbnO','isVisible','children','30696JOTcFn','13698RsiRCk','span','render','ck-hidden','remove','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','bind','2110ahTwMz','iconView','icon','filter','12443640ZSonya','ck-ai-suggestion__header','execute','showHeader','isShowChangesToggleVisible','1030WUucCy','AI_SUGGESTION_BUTTON_SHOW_CHANGES','fire','AI_SUGGESTION_HEADER_TITLE'];_0x434e=function(){return _0x31899b;};return _0x434e();}function _0x3beb(_0x228bed,_0x3b3bd5){const _0x434e23=_0x434e();return _0x3beb=function(_0x3beb2f,_0x39f5a7){_0x3beb2f=_0x3beb2f-0x6a;let _0x48d058=_0x434e23[_0x3beb2f];return _0x48d058;},_0x3beb(_0x228bed,_0x3b3bd5);}import{getTranslation as _0x2a1777}from'../../utils/common-translations.js';import{ButtonView as _0x57114b,IconView as _0x48cc41,View as _0x1d0b8e}from'ckeditor5/src/ui.js';import{IconDocument as _0x59765b,IconShowChangesOff as _0x41381b,IconShowChangesOn as _0x5d1959}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x1d0b8e{[_0x392e2b(0x6e)];constructor(_0x891cfa,_0x25d495){const _0x96907f=_0x392e2b;super(_0x891cfa),this[_0x96907f(0x6c)](_0x96907f(0x8a),!0x0),this[_0x96907f(0x6e)]=new ShowChangesToggleView(_0x891cfa),this[_0x96907f(0x6e)][_0x96907f(0x6c)]({'class':_0x96907f(0x80),'label':_0x2a1777(_0x891cfa,_0x96907f(0x8c)),'withText':!0x0}),this[_0x96907f(0x6e)][_0x96907f(0x75)]=_0x25d495[_0x96907f(0x76)],this[_0x96907f(0x6e)][_0x96907f(0x81)](_0x96907f(0x78))['to'](this,_0x96907f(0x8a)),this[_0x96907f(0x6e)][_0x96907f(0x81)](_0x96907f(0x84))['to'](this[_0x96907f(0x6e)],_0x96907f(0x75),_0x34c1e5=>_0x34c1e5?_0x5d1959:_0x41381b),this[_0x96907f(0x6e)]['on'](_0x96907f(0x88),()=>{const _0x3bbca0=_0x96907f;this[_0x3bbca0(0x6e)][_0x3bbca0(0x75)]=!this[_0x3bbca0(0x6e)][_0x3bbca0(0x75)],this[_0x3bbca0(0x8d)](_0x3bbca0(0x71),{'isOn':this[_0x3bbca0(0x6e)][_0x3bbca0(0x75)]});});const _0xd514e4=new _0x48cc41();_0xd514e4[_0x96907f(0x72)]=_0x59765b,this[_0x96907f(0x70)]({'tag':_0x96907f(0x74),'attributes':{'class':['ck',_0x96907f(0x87),!0x1===_0x25d495[_0x96907f(0x89)]?_0x96907f(0x7e):null][_0x96907f(0x85)](Boolean)},'children':[_0xd514e4,{'tag':_0x96907f(0x7c),'children':[_0x2a1777(_0x891cfa,_0x96907f(0x8e))]},this[_0x96907f(0x6e)]]});}}export class ShowChangesToggleView extends _0x57114b{[_0x392e2b(0x7d)](){const _0x4b3536=_0x392e2b;super[_0x4b3536(0x7d)](),this[_0x4b3536(0x79)][_0x4b3536(0x7f)](this[_0x4b3536(0x83)]),this[_0x4b3536(0x79)][_0x4b3536(0x73)](this[_0x4b3536(0x83)]);}}
23
+ function _0xa371(_0x50164c,_0x2df55d){const _0x1daf21=_0x1daf();return _0xa371=function(_0xa37143,_0xc1a3e8){_0xa37143=_0xa37143-0x18d;let _0x1fc27d=_0x1daf21[_0xa37143];return _0x1fc27d;},_0xa371(_0x50164c,_0x2df55d);}const _0x34956d=_0xa371;(function(_0x16e909,_0x58b5b2){const _0x367518=_0xa371,_0x3b88b1=_0x16e909();while(!![]){try{const _0x55efa9=-parseInt(_0x367518(0x1a7))/0x1*(-parseInt(_0x367518(0x19b))/0x2)+parseInt(_0x367518(0x191))/0x3+-parseInt(_0x367518(0x19a))/0x4+parseInt(_0x367518(0x192))/0x5*(-parseInt(_0x367518(0x19c))/0x6)+parseInt(_0x367518(0x1a4))/0x7+-parseInt(_0x367518(0x199))/0x8+parseInt(_0x367518(0x19d))/0x9*(parseInt(_0x367518(0x1ab))/0xa);if(_0x55efa9===_0x58b5b2)break;else _0x3b88b1['push'](_0x3b88b1['shift']());}catch(_0x5a009e){_0x3b88b1['push'](_0x3b88b1['shift']());}}}(_0x1daf,0xa2340));import{getTranslation as _0x42d945}from'../../utils/common-translations.js';import{ButtonView as _0x2cd58f,IconView as _0x339836,View as _0x3f9753}from'ckeditor5/src/ui.js';import{IconDocument as _0x353f96,IconShowChangesOff as _0x57b22d,IconShowChangesOn as _0x1ebc32}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x3f9753{[_0x34956d(0x18f)];constructor(_0x387a5e,_0x62d74e){const _0x409bf7=_0x34956d;super(_0x387a5e),this[_0x409bf7(0x1b0)](_0x409bf7(0x1af),!0x0),this[_0x409bf7(0x18f)]=new ShowChangesToggleView(_0x387a5e),this[_0x409bf7(0x18f)][_0x409bf7(0x1b0)]({'class':_0x409bf7(0x1aa),'label':_0x42d945(_0x387a5e,_0x409bf7(0x1a5)),'withText':!0x0}),this[_0x409bf7(0x18f)][_0x409bf7(0x19f)]=_0x62d74e[_0x409bf7(0x1a1)],this[_0x409bf7(0x18f)][_0x409bf7(0x19e)](_0x409bf7(0x1a6))['to'](this,_0x409bf7(0x1af)),this[_0x409bf7(0x18f)][_0x409bf7(0x19e)](_0x409bf7(0x1a9))['to'](this[_0x409bf7(0x18f)],_0x409bf7(0x19f),_0x133bc1=>_0x133bc1?_0x1ebc32:_0x57b22d),this[_0x409bf7(0x18f)]['on'](_0x409bf7(0x196),()=>{const _0x3a1fcf=_0x409bf7;this[_0x3a1fcf(0x18f)][_0x3a1fcf(0x19f)]=!this[_0x3a1fcf(0x18f)][_0x3a1fcf(0x19f)],this[_0x3a1fcf(0x1ae)](_0x3a1fcf(0x18d),{'isOn':this[_0x3a1fcf(0x18f)][_0x3a1fcf(0x19f)]});});const _0x4e72c5=new _0x339836();_0x4e72c5[_0x409bf7(0x195)]=_0x353f96,this[_0x409bf7(0x1a8)]({'tag':_0x409bf7(0x1ac),'attributes':{'class':['ck',_0x409bf7(0x1b1),!0x1===_0x62d74e[_0x409bf7(0x1a0)]?_0x409bf7(0x193):null][_0x409bf7(0x1ad)](Boolean)},'children':[_0x4e72c5,{'tag':_0x409bf7(0x18e),'children':[_0x42d945(_0x387a5e,_0x409bf7(0x194))]},this[_0x409bf7(0x18f)]]});}}export class ShowChangesToggleView extends _0x2cd58f{[_0x34956d(0x197)](){const _0x214888=_0x34956d;super[_0x214888(0x197)](),this[_0x214888(0x190)][_0x214888(0x1a2)](this[_0x214888(0x1a3)]),this[_0x214888(0x190)][_0x214888(0x198)](this[_0x214888(0x1a3)]);}}function _0x1daf(){const _0x24eb16=['span','showChangesToggleView','children','3805788lthTHc','25iOnlhu','ck-hidden','AI_SUGGESTION_HEADER_TITLE','content','execute','render','add','1937360evvADJ','1613360qYJBqn','2NTuqHQ','1158228bWoPYZ','1481994zGXJNn','bind','isOn','showHeader','showDiff','remove','iconView','610988fWJFIk','AI_SUGGESTION_BUTTON_SHOW_CHANGES','isVisible','589872kxpNVb','setTemplate','icon','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','20XysosK','div','filter','fire','isShowChangesToggleVisible','set','ck-ai-suggestion__header','toggleShowChanges'];_0x1daf=function(){return _0x24eb16;};return _0x1daf();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5a1fdb,_0x270ce0){const _0x38a46e=_0x5bd4,_0x1c0ac0=_0x5a1fdb();while(!![]){try{const _0x28fcd0=parseInt(_0x38a46e(0x1b9))/0x1*(parseInt(_0x38a46e(0x1c5))/0x2)+-parseInt(_0x38a46e(0x1c7))/0x3+-parseInt(_0x38a46e(0x1bb))/0x4*(parseInt(_0x38a46e(0x1cd))/0x5)+-parseInt(_0x38a46e(0x1ca))/0x6+-parseInt(_0x38a46e(0x1bc))/0x7*(-parseInt(_0x38a46e(0x1c8))/0x8)+parseInt(_0x38a46e(0x1cc))/0x9+parseInt(_0x38a46e(0x1c1))/0xa;if(_0x28fcd0===_0x270ce0)break;else _0x1c0ac0['push'](_0x1c0ac0['shift']());}catch(_0x557bbd){_0x1c0ac0['push'](_0x1c0ac0['shift']());}}}(_0x5020,0x1a167));import{View as _0x1b19fa}from'ckeditor5/src/ui.js';import{AISpinnerView as _0x47998d}from'../aispinner.js';function _0x5bd4(_0x399985,_0x5e3baf){const _0x502030=_0x5020();return _0x5bd4=function(_0x5bd49b,_0x2bc6dd){_0x5bd49b=_0x5bd49b-0x1b8;let _0x1cd307=_0x502030[_0x5bd49b];return _0x1cd307;},_0x5bd4(_0x399985,_0x5e3baf);}import{getTranslation as _0x236410}from'../../utils/common-translations.js';export class AISuggestionLoaderView extends _0x1b19fa{constructor(_0x40dd7c){const _0x341033=_0x5bd4;super(_0x40dd7c),this[_0x341033(0x1c0)](_0x341033(0x1c6),!0x0);const _0x9c0ee1=new _0x47998d(_0x341033(0x1bd));_0x9c0ee1[_0x341033(0x1c6)]=!0x0;const _0x1c6b09=new _0x1b19fa(this[_0x341033(0x1c2)]);_0x1c6b09[_0x341033(0x1cb)]({'tag':_0x341033(0x1c9),'attributes':{'class':['ck',_0x341033(0x1c4)]},'children':[_0x236410(this[_0x341033(0x1c2)],_0x341033(0x1be))]}),this[_0x341033(0x1cb)]({'tag':_0x341033(0x1c3),'attributes':{'class':['ck',_0x341033(0x1bf),this[_0x341033(0x1ba)]['if'](_0x341033(0x1c6),_0x341033(0x1b8),_0x19fdc1=>!_0x19fdc1)]},'children':[_0x9c0ee1,_0x1c6b09]});}}function _0x5020(){const _0x2419eb=['bindTemplate','10204JjfSeM','28168qCaxNB','small','AI_CHAT_IS_WRITING','ck-ai-suggestion__loader','set','984420LvGdeJ','locale','div','ck-ai-suggestion__loader-text','2UWYiaY','isVisible','163545pHITrn','64eQBhmD','span','1070910UOhfKJ','setTemplate','998937YCdjNj','115ecvKKq','ck-hidden','156901mTCPdm'];_0x5020=function(){return _0x2419eb;};return _0x5020();}
23
+ (function(_0x15a524,_0x2ac5d7){const _0x463aaf=_0x45c2,_0x4d0414=_0x15a524();while(!![]){try{const _0x103dc4=-parseInt(_0x463aaf(0x12b))/0x1+-parseInt(_0x463aaf(0x125))/0x2*(-parseInt(_0x463aaf(0x12c))/0x3)+parseInt(_0x463aaf(0x129))/0x4*(-parseInt(_0x463aaf(0x12e))/0x5)+-parseInt(_0x463aaf(0x126))/0x6+parseInt(_0x463aaf(0x119))/0x7*(parseInt(_0x463aaf(0x11a))/0x8)+-parseInt(_0x463aaf(0x130))/0x9*(-parseInt(_0x463aaf(0x11f))/0xa)+parseInt(_0x463aaf(0x128))/0xb*(parseInt(_0x463aaf(0x11e))/0xc);if(_0x103dc4===_0x2ac5d7)break;else _0x4d0414['push'](_0x4d0414['shift']());}catch(_0x5c387c){_0x4d0414['push'](_0x4d0414['shift']());}}}(_0x3431,0x599fe));import{View as _0x16a269}from'ckeditor5/src/ui.js';import{AISpinnerView as _0x4da6d2}from'../aispinner.js';function _0x45c2(_0x4f9a95,_0x47c716){const _0x343155=_0x3431();return _0x45c2=function(_0x45c278,_0x2ce29b){_0x45c278=_0x45c278-0x119;let _0x5467d5=_0x343155[_0x45c278];return _0x5467d5;},_0x45c2(_0x4f9a95,_0x47c716);}import{getTranslation as _0x5b4221}from'../../utils/common-translations.js';function _0x3431(){const _0x1bc727=['ck-ai-suggestion__loader','231qkAIRL','12FNzhdG','div','633493CuFrrb','1374ZfGVHI','AI_CHAT_IS_WRITING','673230vsIgeu','isVisible','9VAvSTr','7rGjWlR','3733672JZDiee','bindTemplate','ck-ai-suggestion__loader-text','setTemplate','375972CupqSk','3448070AyPvGy','locale','set','small','span','ck-hidden','2112jgWmXx','3291492UmPsTM'];_0x3431=function(){return _0x1bc727;};return _0x3431();}export class AISuggestionLoaderView extends _0x16a269{constructor(_0xe23266){const _0x2e7def=_0x45c2;super(_0xe23266),this[_0x2e7def(0x121)](_0x2e7def(0x12f),!0x0);const _0x2a59b3=new _0x4da6d2(_0x2e7def(0x122));_0x2a59b3[_0x2e7def(0x12f)]=!0x0;const _0x37458d=new _0x16a269(this[_0x2e7def(0x120)]);_0x37458d[_0x2e7def(0x11d)]({'tag':_0x2e7def(0x123),'attributes':{'class':['ck',_0x2e7def(0x11c)]},'children':[_0x5b4221(this[_0x2e7def(0x120)],_0x2e7def(0x12d))]}),this[_0x2e7def(0x11d)]({'tag':_0x2e7def(0x12a),'attributes':{'class':['ck',_0x2e7def(0x127),this[_0x2e7def(0x11b)]['if'](_0x2e7def(0x12f),_0x2e7def(0x124),_0x267dd9=>!_0x267dd9)]},'children':[_0x2a59b3,_0x37458d]});}}