UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines • 20.1 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x83de3a=_0x317e;(function(_0xefc402,_0x282231){const _0x3ebbaa=_0x317e,_0xbe6621=_0xefc402();while(!![]){try{const _0xd51896=parseInt(_0x3ebbaa(0x187))/0x1*(parseInt(_0x3ebbaa(0x1cc))/0x2)+parseInt(_0x3ebbaa(0x199))/0x3+-parseInt(_0x3ebbaa(0x1d9))/0x4*(-parseInt(_0x3ebbaa(0x178))/0x5)+-parseInt(_0x3ebbaa(0x1b6))/0x6+parseInt(_0x3ebbaa(0x1cf))/0x7+-parseInt(_0x3ebbaa(0x1d2))/0x8+-parseInt(_0x3ebbaa(0x155))/0x9*(parseInt(_0x3ebbaa(0x1b4))/0xa);if(_0xd51896===_0x282231)break;else _0xbe6621['push'](_0xbe6621['shift']());}catch(_0x1c8bd5){_0xbe6621['push'](_0xbe6621['shift']());}}}(_0x5a5a,0x368fe));import{ContextPlugin as _0x3c79b8}from'ckeditor5/src/core.js';import{CKEditorError as _0x64c8bf,logError as _0x174874,scrollAncestorsToShowTarget as _0x4e3736,scrollViewportToShowTarget as _0x29314f}from'ckeditor5/src/utils.js';import{AIConnector as _0x4690e5}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x236ae6}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x9ce579}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x3ed01d}from'./model/aireviewcustomcheckrun.js';import{AIModels as _0x5cdfbe}from'../aicore/model/aimodels.js';function _0x317e(_0x403c63,_0x3e6ddd){const _0x5a5a75=_0x5a5a();return _0x317e=function(_0x317eb9,_0x51b1b8){_0x317eb9=_0x317eb9-0x14c;let _0x32afa8=_0x5a5a75[_0x317eb9];return _0x32afa8;},_0x317e(_0x403c63,_0x3e6ddd);}import{AI_REVIEW_CHECKS as _0x290f7c}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x22af39}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x3c79b8{[_0x83de3a(0x1f5)];[_0x83de3a(0x1c3)];[_0x83de3a(0x1c5)];[_0x83de3a(0x1d5)];[_0x83de3a(0x1bf)];[_0x83de3a(0x1d1)]=!0x1;[_0x83de3a(0x1d8)]=null;static get[_0x83de3a(0x16d)](){return[_0x4690e5];}static get[_0x83de3a(0x1c2)](){const _0x5b997c=_0x83de3a;return _0x5b997c(0x185);}static get[_0x83de3a(0x1e4)](){return!0x0;}static get[_0x83de3a(0x1ce)](){return!0x0;}async[_0x83de3a(0x1ac)](){const _0x12f457=_0x83de3a;this[_0x12f457(0x1f5)]=this[_0x12f457(0x15e)][_0x12f457(0x14f)][_0x12f457(0x1e7)](_0x12f457(0x19f)),this[_0x12f457(0x1c3)]=this[_0x12f457(0x15e)][_0x12f457(0x14f)][_0x12f457(0x1e7)](_0x12f457(0x193)),this[_0x12f457(0x1c5)]=this[_0x12f457(0x15e)][_0x12f457(0x14f)][_0x12f457(0x1e7)](_0x12f457(0x179));const _0x209646=this[_0x12f457(0x15e)][_0x12f457(0x205)][_0x12f457(0x1e7)](_0x12f457(0x1be));if(_0x209646){for(const _0x6c632a of _0x290f7c)_0x12f457(0x166)===_0x6c632a['id']&&(_0x6c632a[_0x12f457(0x1bc)][0x0][_0x12f457(0x1c9)]=_0x209646);}const _0x619789=this[_0x12f457(0x16e)](_0x290f7c);this[_0x12f457(0x1d5)]=new _0x236ae6(_0x619789);const _0x2e029a=this[_0x12f457(0x1d5)][_0x12f457(0x1b1)][_0x12f457(0x1ae)](_0x201b0b=>_0x12f457(0x192)===_0x201b0b['id']);if(_0x2e029a)try{const _0x5925f1=await new _0x5cdfbe({'connector':this[_0x12f457(0x1f5)]})[_0x12f457(0x1d4)]();_0x2e029a[_0x12f457(0x1f4)]=_0x5925f1[_0x12f457(0x1d0)](_0x481c0d=>({..._0x481c0d,'description':this[_0x12f457(0x198)](_0x12f457(0x14e)+_0x481c0d['id'][_0x12f457(0x151)](),_0x481c0d[_0x12f457(0x1ab)])}));}catch(_0x309aea){this[_0x12f457(0x1d5)][_0x12f457(0x164)](_0x12f457(0x192)),this[_0x12f457(0x17e)](new _0x64c8bf(_0x12f457(0x18f),this,{'error':_0x309aea}));}this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x15d),()=>{const _0x118640=_0x12f457;this[_0x118640(0x1c3)][_0x118640(0x18e)](this[_0x118640(0x1d5)][_0x118640(0x1b1)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1f2),async(_0x1116e5,_0x3c6827)=>{const _0xd93d5f=_0x12f457,_0xaafc61=this[_0xd93d5f(0x1d5)][_0xd93d5f(0x1aa)](_0x3c6827['id']);if(_0xaafc61){this[_0xd93d5f(0x1ad)](this[_0xd93d5f(0x1d1)]),_0x3c6827[_0xd93d5f(0x1b8)]?this[_0xd93d5f(0x1bf)]=new _0x3ed01d(_0x3c6827[_0xd93d5f(0x1a2)][_0xd93d5f(0x1f9)],_0x3c6827[_0xd93d5f(0x1a2)][_0xd93d5f(0x1a4)],this[_0xd93d5f(0x1c5)][_0xd93d5f(0x182)](),_0xaafc61,this[_0xd93d5f(0x1f5)]):this[_0xd93d5f(0x1bf)]=new _0x9ce579(this[_0xd93d5f(0x1c5)][_0xd93d5f(0x182)](),_0xaafc61,this[_0xd93d5f(0x1f5)],_0x3c6827[_0xd93d5f(0x1e9)],_0x3c6827[_0xd93d5f(0x1a2)]),this[_0xd93d5f(0x1c3)][_0xd93d5f(0x1fc)](this[_0xd93d5f(0x1bf)][_0xd93d5f(0x1e5)],this[_0xd93d5f(0x1bf)][_0xd93d5f(0x18a)]),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1ee),(_0x49d7f3,_0x39790e)=>{const _0x37442c=_0xd93d5f;_0x37442c(0x1c9)===_0x39790e[_0x37442c(0x165)]||_0x37442c(0x1ea)===_0x39790e[_0x37442c(0x165)]?(this[_0x37442c(0x1c5)][_0x37442c(0x1d7)](),this[_0x37442c(0x1c3)][_0x37442c(0x1bd)](_0x39790e)):_0x37442c(0x15b)===_0x39790e[_0x37442c(0x165)]?this[_0x37442c(0x1c3)][_0x37442c(0x1c7)]():_0x37442c(0x180)===_0x39790e[_0x37442c(0x165)]?this[_0x37442c(0x1c3)][_0x37442c(0x150)]():_0x37442c(0x195)===_0x39790e[_0x37442c(0x165)]?this[_0x37442c(0x1c3)][_0x37442c(0x19d)]():_0x37442c(0x1ff)===_0x39790e[_0x37442c(0x165)]?(this[_0x37442c(0x1c3)][_0x37442c(0x189)](),this[_0x37442c(0x17e)](new _0x64c8bf(_0x37442c(0x1a0),this,this[_0x37442c(0x1bf)]?.[_0x37442c(0x1ef)]))):_0x37442c(0x1fb)===_0x39790e[_0x37442c(0x165)]?(this[_0x37442c(0x1c3)][_0x37442c(0x19c)](),this[_0x37442c(0x17e)](new _0x64c8bf(_0x37442c(0x1ca),this,this[_0x37442c(0x1bf)]?.[_0x37442c(0x1ef)]))):_0x37442c(0x14c)===_0x39790e[_0x37442c(0x165)]&&(this[_0x37442c(0x1bf)]&&this[_0x37442c(0x1bf)][_0x37442c(0x1cd)]>0x0?setTimeout(()=>{const _0x20b079=_0x37442c;this[_0x20b079(0x1bf)]?.[_0x20b079(0x202)]();},0x0):this[_0x37442c(0x1eb)](!0x0)),_0x37442c(0x180)!==_0x39790e[_0x37442c(0x165)]&&_0x37442c(0x1fb)!==_0x39790e[_0x37442c(0x165)]&&_0x37442c(0x1ff)!==_0x39790e[_0x37442c(0x165)]||this[_0x37442c(0x1bf)]?.[_0x37442c(0x1a3)]();}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x172),(_0x14d018,_0x4096eb)=>{const _0x15a788=_0xd93d5f;if(!this[_0x15a788(0x1bf)])throw new _0x64c8bf(_0x15a788(0x19b),this);const _0x21e74f=this[_0x15a788(0x1c5)][_0x15a788(0x203)](_0x4096eb[_0x15a788(0x191)][_0x15a788(0x200)],_0x4096eb[_0x15a788(0x191)][_0x15a788(0x19a)]);_0x4096eb[_0x15a788(0x1de)][_0x15a788(0x184)](_0x4096eb[_0x15a788(0x191)]['id'],_0x21e74f);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1c8),(_0x3b9081,_0x1ccad4)=>{const _0x462d5a=_0xd93d5f;for(const _0x4942a3 of _0x1ccad4[_0x462d5a(0x1c6)])this[_0x462d5a(0x1c3)][_0x462d5a(0x18b)](_0x4942a3);this[_0x462d5a(0x1c5)][_0x462d5a(0x1d6)](_0x1ccad4[_0x462d5a(0x1c6)],_0x1ccad4[_0x462d5a(0x1de)][_0x462d5a(0x1a6)]);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x157),(_0x44304d,_0x5c4ca6)=>{const _0x5c89a4=_0xd93d5f;this[_0x5c89a4(0x1c3)][_0x5c89a4(0x1a7)](_0x5c4ca6[_0x5c89a4(0x17b)]['id'],_0x5c4ca6[_0x5c89a4(0x165)]);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1c1),(_0x397e5f,_0x56a7bd)=>{const _0x47922a=_0xd93d5f;this[_0x47922a(0x1c3)][_0x47922a(0x1a8)](_0x56a7bd[_0x47922a(0x17b)]['id']);const _0x4f48b1=this[_0x47922a(0x1c5)][_0x47922a(0x186)](_0x56a7bd[_0x47922a(0x17b)]['id']);if(!_0x4f48b1)return;if(_0x47922a(0x177)===this[_0x47922a(0x1d8)]){const _0x3d7829=this[_0x47922a(0x1c3)][_0x47922a(0x169)](_0x56a7bd[_0x47922a(0x17b)]['id']);_0x3d7829&&_0x4e3736(_0x3d7829[_0x47922a(0x160)](_0x47922a(0x1a1))||_0x3d7829);}else{if(_0x47922a(0x1c0)===this[_0x47922a(0x1d8)]){const _0x40da46={'target':_0x4f48b1[_0x47922a(0x1fd)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x29314f(_0x40da46);}}const _0x3523f9=this[_0x47922a(0x1c5)][_0x47922a(0x173)]();this[_0x47922a(0x1c3)][_0x47922a(0x1df)](_0x56a7bd[_0x47922a(0x17b)],_0x4f48b1[_0x47922a(0x1fd)],void 0x0,_0x47922a(0x1ba),_0x3523f9?.[_0x47922a(0x1b7)]?.[_0x47922a(0x1a9)]?.[_0x47922a(0x1e3)](),_0x3523f9?.['ui']?.[_0x47922a(0x1db)]);}),this[_0xd93d5f(0x1bf)]['on'](_0xd93d5f(0x1f1),()=>{const _0x486d23=_0xd93d5f;this[_0x486d23(0x1c3)][_0x486d23(0x16a)](),this[_0x486d23(0x1c3)][_0x486d23(0x152)]();});try{await this[_0xd93d5f(0x1bf)][_0xd93d5f(0x17d)]();}catch(_0x4317ef){_0x4317ef instanceof Error&&_0x4317ef[_0xd93d5f(0x171)][_0xd93d5f(0x19e)](_0xd93d5f(0x1cb))||(_0x4317ef instanceof _0x64c8bf?this[_0xd93d5f(0x17e)](_0x4317ef):this[_0xd93d5f(0x17e)](new _0x64c8bf(_0xd93d5f(0x1e6),this,{'error':_0x4317ef})));}}else this[_0xd93d5f(0x17e)](new _0x64c8bf(_0xd93d5f(0x17a),this,{'checkId':_0x3c6827['id']}));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1e1),()=>{const _0x24be8f=_0x12f457;this[_0x24be8f(0x1eb)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x183),()=>{const _0x4dcf0f=_0x12f457;this[_0x4dcf0f(0x1eb)](!0x0);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1a5),()=>{const _0x58e0e0=_0x12f457;this[_0x58e0e0(0x1bf)]&&this[_0x58e0e0(0x1bf)][_0x58e0e0(0x1bb)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1b2),()=>{const _0x1c1676=_0x12f457;this[_0x1c1676(0x1eb)](!0x0);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x201),()=>{const _0x2b6371=_0x12f457;if(!this[_0x2b6371(0x1bf)])return;const _0x16748c=this[_0x2b6371(0x1bf)][_0x2b6371(0x197)]();_0x16748c[_0x2b6371(0x163)]&&(this[_0x2b6371(0x1c5)][_0x2b6371(0x162)](_0x16748c[_0x2b6371(0x1d0)](_0x5c1e2a=>_0x5c1e2a['id'])),this[_0x2b6371(0x1bf)][_0x2b6371(0x1af)](),this[_0x2b6371(0x1bf)][_0x2b6371(0x1a3)]());}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x196),(_0xda447e,_0x1a81de)=>{const _0x2791c0=_0x12f457;this[_0x2791c0(0x1bf)]&&this[_0x2791c0(0x1bf)][_0x2791c0(0x1b0)](_0x1a81de['id'])&&(this[_0x2791c0(0x1c5)][_0x2791c0(0x162)]([_0x1a81de['id']]),this[_0x2791c0(0x1bf)][_0x2791c0(0x1f8)](_0x1a81de['id']),this[_0x2791c0(0x1c3)][_0x2791c0(0x152)](),this[_0x2791c0(0x1bf)][_0x2791c0(0x1a3)](_0x1a81de['id']));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1ec),(_0x51b1e7,_0x110ec4)=>{const _0x435a8e=_0x12f457;this[_0x435a8e(0x1bf)]&&this[_0x435a8e(0x1bf)][_0x435a8e(0x1b0)](_0x110ec4['id'])&&(this[_0x435a8e(0x1c5)][_0x435a8e(0x153)](_0x110ec4['id']),this[_0x435a8e(0x1bf)][_0x435a8e(0x175)](_0x110ec4['id']),this[_0x435a8e(0x1c3)][_0x435a8e(0x152)](),this[_0x435a8e(0x1bf)][_0x435a8e(0x1a3)](_0x110ec4['id']));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x15a),(_0x59511c,_0x590e92)=>{const _0x55d2e5=_0x12f457;this[_0x55d2e5(0x1d1)]=_0x590e92['on'],this[_0x55d2e5(0x1ad)](this[_0x55d2e5(0x1d1)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1f6),async()=>{const _0x5cbcda=_0x12f457;this[_0x5cbcda(0x1bf)]&&(this[_0x5cbcda(0x1c5)][_0x5cbcda(0x188)](),this[_0x5cbcda(0x1bf)][_0x5cbcda(0x1f3)](this[_0x5cbcda(0x1c5)][_0x5cbcda(0x182)]()),await this[_0x5cbcda(0x1bf)][_0x5cbcda(0x16b)]());}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1ed),(_0x3d37a6,_0x502691)=>{const _0x2d33d4=_0x12f457;this[_0x2d33d4(0x1bf)]&&(this[_0x2d33d4(0x1d8)]=_0x2d33d4(0x1c0),this[_0x2d33d4(0x1bf)][_0x2d33d4(0x1ed)](_0x502691['id']));}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c3)],_0x12f457(0x1f0),()=>{const _0x4c67fc=_0x12f457;this[_0x4c67fc(0x1bf)]&&this[_0x4c67fc(0x1bf)][_0x4c67fc(0x1f0)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1e8),(_0x2d4ed2,_0x21d31c)=>{const _0x12ce14=_0x12f457;if(!this[_0x12ce14(0x1bf)])return;this[_0x12ce14(0x1d8)]=_0x12ce14(0x177),this[_0x12ce14(0x1bf)][_0x12ce14(0x1ed)](_0x21d31c[_0x12ce14(0x17c)]);const _0x3c7d98=this[_0x12ce14(0x1bf)][_0x12ce14(0x1dc)](_0x21d31c[_0x12ce14(0x17c)]);if(!_0x3c7d98)return;const _0x392aa5=this[_0x12ce14(0x1c5)][_0x12ce14(0x173)]();this[_0x12ce14(0x1c3)][_0x12ce14(0x1df)](_0x3c7d98,_0x21d31c[_0x12ce14(0x1da)],_0x21d31c[_0x12ce14(0x154)],_0x12ce14(0x1ba),_0x392aa5?.[_0x12ce14(0x1b7)]?.[_0x12ce14(0x1a9)]?.[_0x12ce14(0x1e3)](),_0x392aa5?.['ui']?.[_0x12ce14(0x1db)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1b9),(_0x34998e,_0x55379c)=>{const _0x1806f1=_0x12f457;if(!this[_0x1806f1(0x1bf)])return;if(this[_0x1806f1(0x1bf)][_0x1806f1(0x174)]())return;const _0x51ea0b=this[_0x1806f1(0x1bf)][_0x1806f1(0x1dc)](_0x55379c[_0x1806f1(0x17c)]);if(!_0x51ea0b)return;const _0x209da0=this[_0x1806f1(0x1c5)][_0x1806f1(0x173)]();this[_0x1806f1(0x1c3)][_0x1806f1(0x1df)](_0x51ea0b,_0x55379c[_0x1806f1(0x1da)],_0x55379c[_0x1806f1(0x154)],_0x1806f1(0x156),_0x209da0?.[_0x1806f1(0x1b7)]?.[_0x1806f1(0x1a9)]?.[_0x1806f1(0x1e3)](),_0x209da0?.['ui']?.[_0x1806f1(0x1db)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1d3),()=>{const _0xc3ef0e=_0x12f457;if(!this[_0xc3ef0e(0x1bf)])return;this[_0xc3ef0e(0x1bf)][_0xc3ef0e(0x174)]()||this[_0xc3ef0e(0x1c3)][_0xc3ef0e(0x152)]();}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x159),(_0x46b254,_0x187185)=>{const _0x28b77e=_0x12f457;this[_0x28b77e(0x1bf)]&&this[_0x28b77e(0x1bf)][_0x28b77e(0x158)](_0x187185[_0x28b77e(0x17c)]);}),this[_0x12f457(0x1c4)](this[_0x12f457(0x1c5)][_0x12f457(0x1e0)],_0x12f457(0x1fa),(_0x2f6e04,_0x294b5f)=>{const _0x2de578=_0x12f457;this[_0x2de578(0x1bf)]&&this[_0x2de578(0x1bf)][_0x2de578(0x161)](_0x294b5f[_0x2de578(0x17c)]);});}[_0x83de3a(0x1eb)](_0x1e23e6=!0x1){const _0x2571c5=_0x83de3a;this[_0x2571c5(0x1bf)]&&(this[_0x2571c5(0x1bf)][_0x2571c5(0x16c)]||this[_0x2571c5(0x1bf)][_0x2571c5(0x1a3)](),this[_0x2571c5(0x1bf)][_0x2571c5(0x1f7)](),this[_0x2571c5(0x1bf)][_0x2571c5(0x1bb)](),this[_0x2571c5(0x1bf)]=void 0x0),_0x1e23e6&&this[_0x2571c5(0x1c3)][_0x2571c5(0x167)](),this[_0x2571c5(0x1c5)][_0x2571c5(0x188)](),this[_0x2571c5(0x1c5)][_0x2571c5(0x194)](),this[_0x2571c5(0x1d8)]=null;const _0x28377b=this[_0x2571c5(0x1c5)][_0x2571c5(0x173)]();_0x28377b&&_0x28377b[_0x2571c5(0x1b7)][_0x2571c5(0x1a9)][_0x2571c5(0x17b)](_0x1f5bde=>{const _0x13bb55=_0x2571c5,_0x52984d=_0x28377b[_0x13bb55(0x1b7)][_0x13bb55(0x1a9)][_0x13bb55(0x1b3)][_0x13bb55(0x18c)]();_0x1f5bde[_0x13bb55(0x1fe)](_0x13bb55(0x17f),_0x52984d),_0x1f5bde[_0x13bb55(0x1fe)](_0x13bb55(0x190),_0x52984d);});}[_0x83de3a(0x1ad)](_0x49c194){const _0x1de186=_0x83de3a,_0x4662ae=this[_0x1de186(0x1c5)][_0x1de186(0x173)]();_0x49c194?this[_0x1de186(0x1c3)][_0x1de186(0x170)]():this[_0x1de186(0x1c3)][_0x1de186(0x15c)](),_0x4662ae&&_0x4662ae[_0x1de186(0x1b7)][_0x1de186(0x1a9)][_0x1de186(0x17b)](_0x1931e5=>{const _0x1b5733=_0x1de186,_0x24b288=_0x4662ae[_0x1b5733(0x1b7)][_0x1b5733(0x1a9)][_0x1b5733(0x1b3)][_0x1b5733(0x18c)]();_0x1931e5[_0x1b5733(0x1fe)](_0x1b5733(0x17f),_0x24b288),_0x1931e5[_0x1b5733(0x1fe)](_0x1b5733(0x190),_0x24b288),_0x1931e5[_0x1b5733(0x204)](_0x49c194?_0x1b5733(0x17f):_0x1b5733(0x190),_0x24b288);});}[_0x83de3a(0x16e)](_0x2108bc){const _0x3f5691=_0x83de3a;return _0x2108bc[_0x3f5691(0x1d0)](_0x1532ec=>{const _0x532721=_0x3f5691,_0x1e3d6f=_0x532721(0x1b5)+_0x1532ec['id'][_0x532721(0x151)]()[_0x532721(0x15f)]('-','_'),_0x136c4a={..._0x1532ec,'title':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x168),_0x1532ec[_0x532721(0x1e5)]),'description':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x181),_0x1532ec[_0x532721(0x1ab)])};return _0x1532ec[_0x532721(0x1bc)]&&(_0x136c4a[_0x532721(0x1bc)]=_0x1532ec[_0x532721(0x1bc)][_0x532721(0x1d0)](_0x4081ec=>({..._0x4081ec,'label':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x16f),_0x4081ec[_0x532721(0x1e2)]||''),'data':_0x4081ec[_0x532721(0x1c9)]?_0x4081ec[_0x532721(0x1c9)][_0x532721(0x1d0)](_0x2825a7=>({..._0x2825a7,'label':this[_0x532721(0x198)](_0x1e3d6f+_0x532721(0x176)+_0x2825a7['id'][_0x532721(0x151)](),_0x2825a7[_0x532721(0x1e2)])})):void 0x0}))),_0x136c4a;});}[_0x83de3a(0x198)](_0x2eb5f4,_0x517dc8){const _0x309497=_0x83de3a,_0x2e3fa4=this[_0x309497(0x15e)][_0x309497(0x14d)],_0x92350c=_0x22af39(_0x2e3fa4,_0x2eb5f4);return _0x92350c===_0x2eb5f4?_0x517dc8:_0x92350c;}[_0x83de3a(0x17e)](_0x56c8d5){const _0x3b126a=_0x83de3a;_0x174874(_0x56c8d5[_0x3b126a(0x171)]),_0x56c8d5[_0x3b126a(0x171)][_0x3b126a(0x18d)](_0x3b126a(0x18f))?this[_0x3b126a(0x1c3)][_0x3b126a(0x1dd)]():this[_0x3b126a(0x1c3)][_0x3b126a(0x189)]();}}function _0x5a5a(){const _0xf13efa=['setCheckResultTitle','domElement','removeClass','error-general','contentInitial','acceptAllChanges','forceReadyState','diffContent','addClass','config','aborted','locale','AI_MODEL_DESCRIPTION_','plugins','showActionsWhenResultIsReady','toUpperCase','hideChangeBalloon','rejectChange','domEvent','1125aCLuLH','hover','reviewCheckResultChangeStatusUpdated','markChangeAsOutdated','changeMarkerRemoved','toggleDiff','finished','showDiffInBalloon','getReviewCheckList','context','replaceAll','closest','markChangeAsPending','applyChange','length','removeCheckById','status','translate','showReviewCheckList','_TITLE','getChangeElement','resetActiveStateInResults','restart','hasModifications','requires','_translateReviewChecks','_OPTIONS_LABEL','hideDiffInBalloon','message','reviewCheckResultAdded','getEditor','isAnyChangeActivated','markChangeAsRejected','_OPTIONS_DATA_','content','465XqmzrX','AIReviewModeEditing','ai-review-mode-source-check-not-found','change','changeId','start','_logError','ck-ai-review-mode-diff','ready','_DESCRIPTION','getDocumentData','leaveReviewModeResultList','addResultChanges','AIReviewModeController','getMarkerElementForChange','7ELfELa','clearAllMarkers','showGeneralResultsErrorView','subTitle','showCheckRunResult','getRoot','startsWith','setAvailableChecks','ai-review-mode-models-unable-to-retrieve','ck-ai-review-mode-highlights','result','custom','AIReviewModeUI','switchToEdit','unmodified','acceptChange','getActiveChanges','_getTranslationWithDefault','129516spUAFm','contentNew','ai-review-mode-no-current-check-run','showChunkErrorView','showNoChangesView','includes','AIConnector','ai-review-mode-check-run-general-error','.ck-ai-review-mode__check-run-result','args','sendRating','model','abortReviewStream','documentData','updateChangeState','setActiveStateInResults','view','getCheckById','description','init','_onDiffChange','find','markAllChangesAsAccepted','isChangeActive','checks','finishReview','document','2130UrnlAc','AI_REVIEW_CHECK_','800994ZnwyIo','editing','isCustom','changeMarkerHovered','click','abort','options','showCheckRunResults','ai.reviewMode.translations','_currentReviewCheckRun','panel','reviewCheckResultActivated','pluginName','_aiReviewModeUi','listenTo','_aiReviewModeEditing','changes','showReviewCompletedView','reviewCheckResultReady','data','ai-review-mode-check-run-chunk-error','ai-request-aborted','92362jvzVxK','processedResultsCount','isPremiumPlugin','1708504KIugFU','map','_isDiffOn','3272704EArFFa','changeMarkerBlurred','getAll','_aiReviewCheckList','markChangePositionInEditorContent','switchToReadOnly','_changeActivationSource','7836jjiEaR','markerElement','viewportOffset','getChangeById','showGeneralReviewModeErrorView','source','showChangeBalloon','emitter','leaveReviewMode','label','getDomRoot','isOfficialPlugin','title','ai-review-mode-check-run-failed','get','changeMarkerClick','params','loading','_onReviewModeRunLeave','dismissChange','activateChange','reviewCheckRunUpdated','currentError','deactivateChange','reviewCheckResultDeactivated','runReviewCheck','updateDocumentData','models','_aiConnector','retryReview','stopListening','markChangeAsAccepted','prompt','changeMarkerRestored','error-chunk'];_0x5a5a=function(){return _0xf13efa;};return _0x5a5a();}