UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 34.6 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 _0x3c1f46=_0x994b;(function(_0x3208de,_0x3977f8){const _0x2fe5e4=_0x994b,_0x21dd92=_0x3208de();while(!![]){try{const _0x3ffa1c=-parseInt(_0x2fe5e4(0x21b))/0x1*(-parseInt(_0x2fe5e4(0x144))/0x2)+-parseInt(_0x2fe5e4(0x1ff))/0x3+parseInt(_0x2fe5e4(0x13f))/0x4+-parseInt(_0x2fe5e4(0x173))/0x5+-parseInt(_0x2fe5e4(0x19f))/0x6+parseInt(_0x2fe5e4(0x1af))/0x7+-parseInt(_0x2fe5e4(0x139))/0x8;if(_0x3ffa1c===_0x3977f8)break;else _0x21dd92['push'](_0x21dd92['shift']());}catch(_0x5bace4){_0x21dd92['push'](_0x21dd92['shift']());}}}(_0xcf8f,0x7c701));import{InsertOperation as _0x5aa292,MarkerOperation as _0x3bd1f1,ModelDocumentFragment as _0x128885,ModelPosition as _0x2f6ba1,ModelRange as _0x127ae3,ModelTreeWalker as _0x34302f,transformOperationSets as _0x4ddfc7}from'ckeditor5/src/engine.js';import{DomEmitterMixin as _0x5598bf,EmitterMixin as _0x20b06b}from'ckeditor5/src/utils.js';function _0x994b(_0x1cd1c3,_0x1d18c3){const _0xcf8f26=_0xcf8f();return _0x994b=function(_0x994b2d,_0xe2189e){_0x994b2d=_0x994b2d-0x127;let _0x406187=_0xcf8f26[_0x994b2d];return _0x406187;},_0x994b(_0x1cd1c3,_0x1d18c3);}import{ContextPlugin as _0x43be5a}from'ckeditor5/src/core.js';import{DocumentCompare as _0x34912a,DATA_ID_MODEL_ATTRIBUTE as _0x131629,DATA_ID_VIEW_ATTRIBUTE as _0x50abf9}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x3c844c}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x30f5ad}from'../aicore/aiediting.js';import{debounce as _0x51624f}from'es-toolkit/compat';const pe=_0x3c1f46(0x20b);export class AIReviewModeEditing extends _0x43be5a{static get[_0x3c1f46(0x1aa)](){const _0x509ddb=_0x3c1f46;return _0x509ddb(0x167);}static get[_0x3c1f46(0x1d1)](){return[_0x34912a,_0x30f5ad];}static get[_0x3c1f46(0x1a5)](){return!0x0;}static get[_0x3c1f46(0x1d8)](){return!0x0;}[_0x3c1f46(0x19b)]=new Map();[_0x3c1f46(0x1de)];[_0x3c1f46(0x128)];constructor(_0x267500){const _0x52e31d=_0x3c1f46;super(_0x267500),this[_0x52e31d(0x1de)]=new(_0x5598bf())(),this[_0x52e31d(0x128)]=new(_0x20b06b())();}get[_0x3c1f46(0x14e)](){const _0x34342a=_0x3c1f46;return this[_0x34342a(0x128)];}[_0x3c1f46(0x183)](){const _0xfc790f=_0x3c1f46,_0x2287b2=_0x3c844c(this[_0xfc790f(0x1ba)]);_0x2287b2[_0xfc790f(0x175)][_0xfc790f(0x1e4)](_0xfc790f(0x1e5))[_0xfc790f(0x16d)]({'model':pe+_0xfc790f(0x15a),'view':(_0x2a0ad0,{writer:_0x2a5fec})=>{const _0x38251c=_0xfc790f,_0x20a629=this[_0x38251c(0x19b)][_0x38251c(0x1c2)](_0x2a0ad0[_0x38251c(0x202)]),_0x4ab7dd={'class':_0x38251c(0x1d2),'data-marker-id':_0x2a0ad0[_0x38251c(0x202)]};return _0x2a5fec[_0x38251c(0x19d)](_0x38251c(0x148),_0x4ab7dd,function(_0x364591){const _0x4f1c1e=_0x38251c,_0x2cd6dd=this[_0x4f1c1e(0x1c9)](_0x364591);return _0x2cd6dd[_0x4f1c1e(0x161)]=_0x20a629?.[_0x4f1c1e(0x1c8)]||'',_0x2cd6dd;});}}),_0x2287b2[_0xfc790f(0x175)][_0xfc790f(0x1e4)](_0xfc790f(0x1e5))[_0xfc790f(0x12e)]({'model':pe+_0xfc790f(0x13e),'view':_0x110aed=>({'classes':_0xfc790f(0x1a1),'attributes':{'data-marker-id':_0x110aed[_0xfc790f(0x202)]}})}),_0x2287b2[_0xfc790f(0x175)][_0xfc790f(0x1e4)](_0xfc790f(0x1e5))[_0xfc790f(0x12e)]({'model':pe+_0xfc790f(0x169),'view':_0x2c1acb=>({'classes':_0xfc790f(0x1bb),'attributes':{'data-marker-id':_0x2c1acb[_0xfc790f(0x202)]}})}),_0x2287b2[_0xfc790f(0x175)][_0xfc790f(0x1e4)](_0xfc790f(0x1e5))[_0xfc790f(0x12e)]({'model':pe+_0xfc790f(0x19e),'view':_0x259123=>({'classes':_0xfc790f(0x140),'attributes':{'data-marker-id':_0x259123[_0xfc790f(0x202)]}})}),_0x2287b2[_0xfc790f(0x175)][_0xfc790f(0x1e4)](_0xfc790f(0x13c))[_0xfc790f(0x16d)]({'model':pe+_0xfc790f(0x1ed),'view':(_0x198be,{writer:_0x5815e3})=>_0x5815e3[_0xfc790f(0x18f)](_0xfc790f(0x148),{'class':_0xfc790f(0x15f)+(_0x198be[_0xfc790f(0x1f9)]?_0xfc790f(0x127):_0xfc790f(0x1e8))})}),_0x2287b2[_0xfc790f(0x175)][_0xfc790f(0x1e4)](_0xfc790f(0x1ca))[_0xfc790f(0x1a0)]({'model':_0x131629,'view':_0x50abf9}),this[_0xfc790f(0x1de)][_0xfc790f(0x12c)](document,_0xfc790f(0x218),(_0x2f92be,_0x53a333)=>{const _0x161770=_0xfc790f,_0x4a480b=_0x53a333[_0x161770(0x14c)],_0xb08b6d=this[_0x161770(0x207)](_0x4a480b);if(!_0xb08b6d)return;const _0x2c980e=_0xb08b6d[_0x161770(0x195)](_0x161770(0x1be)),_0x33372b=_0x2c980e[_0x161770(0x1a4)](':')[_0x161770(0x154)]()?.[_0x161770(0x1a4)]('_')[0x0];this[_0x161770(0x128)][_0x161770(0x145)](_0x161770(0x1d7),{'markerId':_0x2c980e,'changeId':_0x33372b,'markerElement':_0xb08b6d,'domEvent':_0x53a333});}),this[_0xfc790f(0x1de)][_0xfc790f(0x12c)](document,_0xfc790f(0x1fd),(_0x9ad249,_0x44726e)=>{const _0x426a79=_0xfc790f,_0x1ab2e1=_0x44726e[_0x426a79(0x14c)],_0x57fe5d=_0x44726e[_0x426a79(0x1a3)];let _0x4d6aa5=this[_0x426a79(0x207)](_0x1ab2e1);if(!_0x4d6aa5&&_0x57fe5d&&(_0x4d6aa5=this[_0x426a79(0x207)](_0x57fe5d)),!_0x4d6aa5)return;const _0x4c53c1=_0x4d6aa5[_0x426a79(0x195)](_0x426a79(0x1be)),_0xcaeafd=_0x4c53c1[_0x426a79(0x1a4)](':')[_0x426a79(0x154)]()?.[_0x426a79(0x1a4)]('_')[0x0];this[_0x426a79(0x128)][_0x426a79(0x145)](_0x426a79(0x21a),{'changeId':_0xcaeafd,'markerElement':_0x4d6aa5,'domEvent':_0x44726e});}),this[_0xfc790f(0x1de)][_0xfc790f(0x12c)](document,_0xfc790f(0x1fd),_0x51624f((_0x43c362,_0x7aa1a6)=>{const _0x1a78ad=_0xfc790f,_0x2b8296=_0x7aa1a6[_0x1a78ad(0x14c)];if(this[_0x1a78ad(0x207)](_0x2b8296))return;_0x2b8296[_0x1a78ad(0x1b3)](_0x1a78ad(0x184))||this[_0x1a78ad(0x128)][_0x1a78ad(0x145)](_0x1a78ad(0x142));},0xc8)),_0x2287b2[_0xfc790f(0x1c5)][_0xfc790f(0x152)][_0xfc790f(0x17d)](_0x54b4f4=>this[_0xfc790f(0x1df)](_0x2287b2,_0x54b4f4)),_0x2287b2[_0xfc790f(0x1c5)][_0xfc790f(0x152)]['on'](_0xfc790f(0x1cf),()=>this[_0xfc790f(0x159)](_0x2287b2));}[_0x3c1f46(0x14b)](){const _0x4a0fdc=_0x3c1f46,_0x36848f=this[_0x4a0fdc(0x1ba)][_0x4a0fdc(0x1d3)][_0x4a0fdc(0x1c2)](_0x4a0fdc(0x158)),_0x2dacef=_0x3c844c(this[_0x4a0fdc(0x1ba)]),_0x52a492=_0x2dacef[_0x4a0fdc(0x1c5)],_0x54eebb=new _0x128885();for(const _0xe6d47a of _0x52a492[_0x4a0fdc(0x152)][_0x4a0fdc(0x1e3)]()[_0x4a0fdc(0x1ce)]()){const _0x24e890=_0xe6d47a[_0x4a0fdc(0x14d)](!0x0);_0x54eebb[_0x4a0fdc(0x1db)](_0x24e890);}for(const _0x7a8427 of _0x52a492[_0x4a0fdc(0x1f6)])_0x54eebb[_0x4a0fdc(0x1f6)][_0x4a0fdc(0x1f1)](_0x7a8427[_0x4a0fdc(0x176)],this[_0x4a0fdc(0x14f)](_0x7a8427[_0x4a0fdc(0x166)]()[_0x4a0fdc(0x1dd)](),_0x54eebb));const _0x3d2b8e=new _0x34302f({'ignoreElementEnd':!0x0,'startPosition':_0x52a492[_0x4a0fdc(0x1ae)](_0x54eebb,0x0)}),_0x4f7eae=new Set(),_0x5d3ff4=new Map();for(const {item:_0x16bf63}of _0x3d2b8e){if(!_0x16bf63['is'](_0x4a0fdc(0x12f)))continue;const _0x2a05cf=_0x16bf63[_0x4a0fdc(0x191)];if(_0x2a05cf&&_0x2a05cf['is'](_0x4a0fdc(0x206))){const _0x450018=this[_0x4a0fdc(0x1b9)](_0x2a05cf,()=>_0x36848f[_0x4a0fdc(0x134)](_0x4f7eae));_0x4f7eae[_0x4a0fdc(0x15d)](_0x450018);for(const _0x209f7c of _0x2a05cf[_0x4a0fdc(0x1ce)]())_0x209f7c['is'](_0x4a0fdc(0x206))&&_0x4f7eae[_0x4a0fdc(0x15d)](this[_0x4a0fdc(0x1b9)](_0x209f7c,()=>_0x36848f[_0x4a0fdc(0x134)](_0x4f7eae)));let _0x5aec53=_0x2a05cf;for(;_0x5aec53[_0x4a0fdc(0x191)]&&!_0x5aec53[_0x4a0fdc(0x191)]['is'](_0x4a0fdc(0x197));)_0x5aec53=_0x5aec53[_0x4a0fdc(0x191)],_0x5aec53[_0x4a0fdc(0x205)](_0x131629)&&_0x5aec53[_0x4a0fdc(0x170)](_0x131629);_0x5d3ff4[_0x4a0fdc(0x1f1)](_0x450018,{'path':_0x2a05cf[_0x4a0fdc(0x194)](),'getContent':this[_0x4a0fdc(0x196)](_0x5aec53[_0x4a0fdc(0x14d)](!0x0),_0x450018,_0x2dacef[_0x4a0fdc(0x211)])}),_0x3d2b8e[_0x4a0fdc(0x156)](_0x52a492[_0x4a0fdc(0x186)](_0x2a05cf));}}return{'content':_0x2dacef[_0x4a0fdc(0x211)][_0x4a0fdc(0x165)][_0x4a0fdc(0x132)](_0x2dacef[_0x4a0fdc(0x211)][_0x4a0fdc(0x16a)](_0x54eebb)),'version':_0x2dacef[_0x4a0fdc(0x1c5)][_0x4a0fdc(0x152)][_0x4a0fdc(0x185)],'elements':_0x5d3ff4};}[_0x3c1f46(0x1dc)](_0x53c977,_0x38f9a6){const _0x59cc8d=_0x3c1f46,_0x111bda=[],_0x5c33d0=_0x3c844c(this[_0x59cc8d(0x1ba)]),_0x562159=_0x5c33d0[_0x59cc8d(0x211)][_0x59cc8d(0x208)](_0x38f9a6,_0x59cc8d(0x1fe)),_0x534fb3=_0x5c33d0[_0x59cc8d(0x211)][_0x59cc8d(0x208)](_0x53c977,_0x59cc8d(0x1fe)),_0x550f9f=_0x5c33d0[_0x59cc8d(0x1c5)][_0x59cc8d(0x1ae)](_0x534fb3,0x0);if(this[_0x59cc8d(0x1c1)](_0x562159)){if(!this[_0x59cc8d(0x17f)](_0x534fb3,_0x562159))return _0x111bda;}else{const _0x88812a=_0x5c33d0[_0x59cc8d(0x1c5)][_0x59cc8d(0x16f)];if(!this[_0x59cc8d(0x182)](_0x534fb3,_0x88812a)||!this[_0x59cc8d(0x182)](_0x562159,_0x88812a))return _0x111bda;}const _0xfe69d=this[_0x59cc8d(0x1ba)][_0x59cc8d(0x1d3)][_0x59cc8d(0x1c2)](_0x59cc8d(0x136))[_0x59cc8d(0x1b7)](_0x53c977,_0x38f9a6,{'anchor':_0x550f9f,'markDeletions':!0x0})[_0x59cc8d(0x1c4)]()[_0x59cc8d(0x172)](_0x197b2d=>_0x59cc8d(0x15a)===_0x197b2d[_0x59cc8d(0x1e0)]||_0x59cc8d(0x187)===_0x197b2d[_0x59cc8d(0x1e0)]&&_0x197b2d[_0x59cc8d(0x176)][_0x59cc8d(0x217)](_0x59cc8d(0x1e7))),_0x291957=this[_0x59cc8d(0x151)](_0xfe69d);let _0x3a43f6=0x0;return _0x5c33d0[_0x59cc8d(0x1c5)][_0x59cc8d(0x1cf)](_0x43f1ab=>{const _0xd8648c=_0x59cc8d;for(let _0x5043ca=0x0;_0x5043ca<_0x291957[_0xd8648c(0x12d)];_0x5043ca++){const _0x35867a=_0x291957[_0x5043ca],_0x5e6bea=_0x43f1ab[_0xd8648c(0x1b0)]();for(const _0x20a32e of _0x534fb3[_0xd8648c(0x1ce)]())_0x43f1ab[_0xd8648c(0x1cc)](_0x20a32e[_0xd8648c(0x14d)](!0x0),_0x5e6bea);for(const _0x4ecf93 of _0x35867a[_0xd8648c(0x20c)])if(_0xd8648c(0x15a)===_0x4ecf93[_0xd8648c(0x1e0)]){const _0x56077c=_0x4ecf93;_0x56077c[_0xd8648c(0x20e)]=null,_0x56077c[_0xd8648c(0x1b1)]=!0x1,this[_0xd8648c(0x1d5)](_0x56077c,_0x5e6bea),_0x43f1ab[_0xd8648c(0x162)][_0xd8648c(0x1ac)](_0x4ecf93),_0x5c33d0[_0xd8648c(0x1c5)][_0xd8648c(0x14a)](_0x4ecf93);const _0x50bb7c=_0xd8648c(0x18a)+_0x3a43f6++,_0x57bff4=_0x5c33d0[_0xd8648c(0x1c5)][_0xd8648c(0x1e6)](_0x56077c[_0xd8648c(0x153)],_0x56077c[_0xd8648c(0x153)][_0xd8648c(0x1fb)](_0x56077c[_0xd8648c(0x1ef)]));_0x5e6bea[_0xd8648c(0x1f6)][_0xd8648c(0x1f1)](_0x50bb7c,_0x57bff4);}else{if(_0xd8648c(0x187)===_0x4ecf93[_0xd8648c(0x1e0)]&&_0x4ecf93[_0xd8648c(0x176)][_0xd8648c(0x217)](_0xd8648c(0x1e7))){const _0xe4458e=_0x4ecf93,_0x5019c5=_0xd8648c(0x1fc)+_0x3a43f6++;this[_0xd8648c(0x1d5)](_0xe4458e,_0x5e6bea),_0x5e6bea[_0xd8648c(0x1f6)][_0xd8648c(0x1f1)](_0x5019c5,_0xe4458e[_0xd8648c(0x138)]);}}const _0x470f3a=this[_0xd8648c(0x130)](this[_0xd8648c(0x1e1)](this[_0xd8648c(0x15c)](_0x35867a[_0xd8648c(0x20c)][0x0]),_0x5e6bea),this[_0xd8648c(0x1e1)](this[_0xd8648c(0x131)](_0x35867a[_0xd8648c(0x20c)][_0x35867a[_0xd8648c(0x20c)][_0xd8648c(0x12d)]-0x1]),_0x5e6bea));_0x5e6bea[_0xd8648c(0x1f6)][_0xd8648c(0x1f1)](pe+_0xd8648c(0x1ed),new _0x127ae3(_0x470f3a[_0xd8648c(0x127)],_0x470f3a[_0xd8648c(0x1e8)])),_0x111bda[_0xd8648c(0x1fa)]({..._0x35867a,'context':this[_0xd8648c(0x143)](_0x5e6bea,_0x5c33d0[_0xd8648c(0x211)],{'ellipsisBefore':_0x470f3a[_0xd8648c(0x1ec)],'ellipsisAfter':_0x470f3a[_0xd8648c(0x12a)]}),'content':this[_0xd8648c(0x201)](_0x5e6bea,_0x5c33d0[_0xd8648c(0x211)])});}}),_0x111bda;}[_0x3c1f46(0x214)](_0x3390fe,_0x477bfa){const _0xe92cf9=_0x3c1f46;if(!_0x3390fe[_0xe92cf9(0x12d)])return;const _0x549352=_0x3390fe[0x0][_0xe92cf9(0x191)]['id'],_0x28ba44=_0x477bfa[_0xe92cf9(0x12b)][_0xe92cf9(0x1c2)](_0x549352);if(!_0x28ba44)return void console[_0xe92cf9(0x129)](_0xe92cf9(0x1f3)+_0x549352);const _0x4b5b43=_0x28ba44[_0xe92cf9(0x174)],_0x535308=_0x3c844c(this[_0xe92cf9(0x1ba)]),_0x36159f=_0x535308[_0xe92cf9(0x1c5)][_0xe92cf9(0x152)][_0xe92cf9(0x212)][_0xe92cf9(0x1c4)](_0x477bfa[_0xe92cf9(0x185)]),_0x533633=[];for(const _0xa36593 of _0x3390fe){const _0x2ad7c4=_0xa36593[_0xe92cf9(0x20c)][_0xe92cf9(0x193)](_0xc5cd24=>this[_0xe92cf9(0x1bf)](_0xc5cd24,_0x4b5b43,_0x535308[_0xe92cf9(0x1c5)][_0xe92cf9(0x152)][_0xe92cf9(0x1a9)]()[0x0]));if(!_0x2ad7c4||!_0x2ad7c4[_0xe92cf9(0x12d)])continue;const _0x45d226=_0x2ad7c4[_0xe92cf9(0x157)](_0x12ea23=>_0xe92cf9(0x187)===_0x12ea23[_0xe92cf9(0x1e0)]&&_0x12ea23[_0xe92cf9(0x176)][_0xe92cf9(0x217)](_0xe92cf9(0x1e7))),_0x292c91={'document':_0x535308[_0xe92cf9(0x1c5)][_0xe92cf9(0x152)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5efe7e=_0x4ddfc7(_0x2ad7c4,_0x36159f,_0x292c91)[_0xe92cf9(0x17c)];for(const _0x4ef18e of _0x5efe7e)if(_0xe92cf9(0x15a)===_0x4ef18e[_0xe92cf9(0x1e0)]){const _0x7bd15c=_0x4ef18e,_0x59fc3f=_0x7bd15c[_0xe92cf9(0x1f2)];let _0x48cf30='';for(const _0x1ef592 of _0x59fc3f)_0x1ef592&&_0x1ef592['is'](_0xe92cf9(0x1c6))&&(_0x48cf30+=_0x1ef592[_0xe92cf9(0x211)]);_0x533633[_0xe92cf9(0x1fa)]({'start':_0x7bd15c[_0xe92cf9(0x153)],'end':_0x7bd15c[_0xe92cf9(0x153)],'type':_0xe92cf9(0x15a),'groupId':_0xa36593['id'],'text':_0x48cf30});}else{if(_0xe92cf9(0x187)===_0x4ef18e[_0xe92cf9(0x1e0)]&&_0x4ef18e[_0xe92cf9(0x176)][_0xe92cf9(0x217)](_0xe92cf9(0x1e7))){const _0x31bf48=_0x4ef18e;let _0x14f07f=_0xe92cf9(0x19e);if(_0x45d226){const _0x1b763e=this[_0xe92cf9(0x18b)](_0x31bf48[_0xe92cf9(0x138)][_0xe92cf9(0x127)],_0xe92cf9(0x1d6),_0x535308[_0xe92cf9(0x1c5)][_0xe92cf9(0x16f)]),_0xd6c03d=this[_0xe92cf9(0x18b)](_0x31bf48[_0xe92cf9(0x138)][_0xe92cf9(0x1e8)],_0xe92cf9(0x1a6),_0x535308[_0xe92cf9(0x1c5)][_0xe92cf9(0x16f)]);if(_0x1b763e||_0xd6c03d){const _0xe38acd=_0x31bf48[_0xe92cf9(0x138)][_0xe92cf9(0x127)][_0xe92cf9(0x1fb)](-_0x1b763e),_0x32f95a=_0x31bf48[_0xe92cf9(0x138)][_0xe92cf9(0x1e8)][_0xe92cf9(0x1fb)](_0xd6c03d);_0x533633[_0xe92cf9(0x1fa)]({'start':_0xe38acd,'end':_0x32f95a,'groupId':_0xa36593['id'],'type':_0xe92cf9(0x169)});}else _0x14f07f=_0xe92cf9(0x13e);}_0x533633[_0xe92cf9(0x1fa)]({'start':_0x31bf48[_0xe92cf9(0x138)][_0xe92cf9(0x127)],'end':_0x31bf48[_0xe92cf9(0x138)][_0xe92cf9(0x1e8)],'groupId':_0xa36593['id'],'type':_0x14f07f});}}}this[_0xe92cf9(0x147)](_0x533633);}[_0x3c1f46(0x1ea)](){const _0xfe6454=_0x3c1f46,_0x320fb0=_0x3c844c(this[_0xfe6454(0x1ba)]);_0x320fb0[_0xfe6454(0x1c5)][_0xfe6454(0x1cf)](_0x3329d6=>{const _0x1a9759=_0xfe6454;for(const _0x5f10f3 of this[_0x1a9759(0x19b)][_0x1a9759(0x181)]())_0x320fb0[_0x1a9759(0x1c5)][_0x1a9759(0x1f6)][_0x1a9759(0x1c2)](_0x5f10f3)&&_0x3329d6[_0x1a9759(0x200)](_0x5f10f3);}),this[_0xfe6454(0x19b)][_0xfe6454(0x155)]();}[_0x3c1f46(0x204)](){const _0x213f7c=_0x3c1f46;_0x3c844c(this[_0x213f7c(0x1ba)])[_0x213f7c(0x20a)](_0x213f7c(0x164));}[_0x3c1f46(0x198)](){const _0x1a2c06=_0x3c1f46;_0x3c844c(this[_0x1a2c06(0x1ba)])[_0x1a2c06(0x1f8)](_0x1a2c06(0x164));}[_0x3c1f46(0x1e9)](_0x4bada4){const _0x4fd24a=_0x3c1f46,_0x4ce2a0=_0x3c844c(this[_0x4fd24a(0x1ba)]),_0x46688e=_0x4ce2a0[_0x4fd24a(0x1c5)],_0x2030aa=_0x4bada4[_0x4fd24a(0x193)](_0x3908e3=>this[_0x4fd24a(0x1c7)](_0x3908e3))[_0x4fd24a(0x1b8)]();_0x46688e[_0x4fd24a(0x1cf)](_0x10012b=>{const _0x169c38=_0x4fd24a;for(const _0x151ffd of _0x2030aa){const _0x275c4a=_0x4ce2a0[_0x169c38(0x1c5)][_0x169c38(0x1f6)][_0x169c38(0x1c2)](_0x151ffd['id']);_0x275c4a&&(_0x169c38(0x15a)===_0x151ffd[_0x169c38(0x1e0)]?_0x46688e[_0x169c38(0x15e)](_0x10012b[_0x169c38(0x19a)](_0x151ffd[_0x169c38(0x1c8)]||''),_0x275c4a[_0x169c38(0x166)]()[_0x169c38(0x127)]):_0x169c38(0x19e)!==_0x151ffd[_0x169c38(0x1e0)]&&_0x169c38(0x13e)!==_0x151ffd[_0x169c38(0x1e0)]||_0x46688e[_0x169c38(0x1e2)](_0x46688e[_0x169c38(0x199)](_0x275c4a[_0x169c38(0x166)]())),_0x10012b[_0x169c38(0x200)](_0x151ffd['id']),this[_0x169c38(0x19b)][_0x169c38(0x215)](_0x151ffd['id']));}});}[_0x3c1f46(0x1f5)](_0x3f8687){const _0x3b3bbf=_0x3c1f46,_0x1e4c2c=_0x3c844c(this[_0x3b3bbf(0x1ba)]),_0x1f9c3f=this[_0x3b3bbf(0x1c7)](_0x3f8687);_0x1e4c2c[_0x3b3bbf(0x1c5)][_0x3b3bbf(0x1cf)](_0x9e8033=>{const _0x543480=_0x3b3bbf;for(const _0x45457b of _0x1f9c3f)_0x9e8033[_0x543480(0x200)](_0x45457b['id']),this[_0x543480(0x19b)][_0x543480(0x215)](_0x45457b['id']);});}[_0x3c1f46(0x16b)](){const _0x2b15fa=_0x3c1f46;return _0x3c844c(this[_0x2b15fa(0x1ba)]);}[_0x3c1f46(0x20d)](_0xf99b2c){const _0x5b87ae=_0x3c1f46,_0x4be610=Array[_0x5b87ae(0x1f4)](this[_0x5b87ae(0x19b)][_0x5b87ae(0x1b4)]())[_0x5b87ae(0x172)](_0x1c5466=>_0x1c5466[_0x5b87ae(0x20f)]===_0xf99b2c);if(!_0x4be610[_0x5b87ae(0x12d)])return null;const _0x4492fb=0x1===_0x4be610[_0x5b87ae(0x12d)]?_0x4be610[0x0]:this[_0x5b87ae(0x168)](_0x4be610)[0x0],_0xe4c10c=_0x3c844c(this[_0x5b87ae(0x1ba)]),_0x1b74c2=_0xe4c10c[_0x5b87ae(0x1c5)][_0x5b87ae(0x1f6)][_0x5b87ae(0x1c2)](_0x4492fb['id']);if(!_0x1b74c2)return null;const _0x4a9b2f=_0x1b74c2[_0x5b87ae(0x166)](),_0x504975=_0xe4c10c[_0x5b87ae(0x18e)][_0x5b87ae(0x216)][_0x5b87ae(0x17a)]();if(!_0x504975||!_0x4a9b2f)return null;const _0x11fd5c=_0x504975[_0x5b87ae(0x1ee)](_0x5b87ae(0x1c3)+_0x4492fb['id']+'\x22]');return _0x11fd5c?{'modelRange':_0x4a9b2f,'domElement':_0x11fd5c}:null;}[_0x3c1f46(0x1df)](_0xd8fd4c,_0x3c20fc){const _0x3136d0=_0x3c1f46,_0x393453=Array[_0x3136d0(0x1f4)](this[_0x3136d0(0x19b)][_0x3136d0(0x181)]()),_0x1d6d3c=new Map();for(const _0x401c4d of _0x393453){const _0x36d18f=_0xd8fd4c[_0x3136d0(0x1c5)][_0x3136d0(0x1f6)][_0x3136d0(0x1c2)](_0x401c4d);if(!_0x36d18f)continue;const _0x1bffd2=_0x36d18f[_0x3136d0(0x177)]()[_0x3136d0(0x174)][0x0];_0x1d6d3c[_0x3136d0(0x146)](_0x1bffd2)||_0x1d6d3c[_0x3136d0(0x1f1)](_0x1bffd2,[]),_0x1d6d3c[_0x3136d0(0x1c2)](_0x1bffd2)[_0x3136d0(0x1fa)](_0x36d18f);}const _0x3d6a8e=new Set();for(const _0x54a5af of _0xd8fd4c[_0x3136d0(0x1c5)][_0x3136d0(0x152)][_0x3136d0(0x190)][_0x3136d0(0x1c0)]()){let _0x4dfcdc=-0x1,_0x47f3b9=null;if(_0x3136d0(0x15a)===_0x54a5af[_0x3136d0(0x1e0)])_0x47f3b9=new _0x127ae3(_0x54a5af[_0x3136d0(0x153)],_0x54a5af[_0x3136d0(0x153)][_0x3136d0(0x1fb)](_0x54a5af[_0x3136d0(0x12d)])),_0x4dfcdc=_0x54a5af[_0x3136d0(0x153)][_0x3136d0(0x174)][0x0];else{if(_0x3136d0(0x1cd)!==_0x54a5af[_0x3136d0(0x1e0)])continue;_0x47f3b9=new _0x127ae3(_0x54a5af[_0x3136d0(0x153)]),_0x4dfcdc=_0x54a5af[_0x3136d0(0x153)][_0x3136d0(0x174)][0x0];}const _0x2a7ca9=_0x1d6d3c[_0x3136d0(0x1c2)](_0x4dfcdc)||[];if(_0x2a7ca9[_0x3136d0(0x12d)]){for(const _0x4e2833 of _0x2a7ca9)if(_0x47f3b9[_0x3136d0(0x178)][_0x3136d0(0x13a)]===_0x4e2833[_0x3136d0(0x166)]()[_0x3136d0(0x178)][_0x3136d0(0x13a)]&&(_0x3136d0(0x15a)!==_0x54a5af[_0x3136d0(0x1e0)]||!_0x47f3b9[_0x3136d0(0x16c)](_0x4e2833[_0x3136d0(0x166)]()))&&(_0x47f3b9[_0x3136d0(0x1b6)](_0x4e2833[_0x3136d0(0x166)]())||_0x47f3b9[_0x3136d0(0x127)][_0x3136d0(0x171)](_0x4e2833[_0x3136d0(0x166)]()[_0x3136d0(0x1e8)])||_0x47f3b9[_0x3136d0(0x1e8)][_0x3136d0(0x171)](_0x4e2833[_0x3136d0(0x166)]()[_0x3136d0(0x127)]))){const _0x181e24=this[_0x3136d0(0x1f7)](_0x4e2833[_0x3136d0(0x176)]);Array[_0x3136d0(0x1f4)](this[_0x3136d0(0x19b)][_0x3136d0(0x1b4)]())[_0x3136d0(0x172)](_0x1be5bd=>_0x1be5bd[_0x3136d0(0x20f)]===_0x181e24[_0x3136d0(0x20f)])[_0x3136d0(0x1b2)](_0xdaa83f=>_0x3d6a8e[_0x3136d0(0x15d)](_0xdaa83f['id']));}}}if(_0x3d6a8e[_0x3136d0(0x219)]){for(const _0x51442c of _0x3d6a8e)_0x3c20fc[_0x3136d0(0x200)](_0x51442c);return!0x0;}return!0x1;}[_0x3c1f46(0x159)](_0x56a2a0){const _0x104c61=_0x3c1f46;for(const {name:_0x353ee9,data:_0x3d1df9}of _0x56a2a0[_0x104c61(0x1c5)][_0x104c61(0x152)][_0x104c61(0x190)][_0x104c61(0x192)]()){if(!_0x353ee9[_0x104c61(0x217)](pe))continue;const _0x190f34=_0x3d1df9[_0x104c61(0x13d)],_0xfbab65=_0x3d1df9[_0x104c61(0x138)],_0x2cdc1e=_0x190f34&&_0x104c61(0x180)===_0x190f34[_0x104c61(0x178)][_0x104c61(0x13a)],_0x56b86b=_0xfbab65&&_0x104c61(0x180)===_0xfbab65[_0x104c61(0x178)][_0x104c61(0x13a)];if(_0x2cdc1e&&_0x56b86b)continue;const _0x4be47c=this[_0x104c61(0x1f7)](_0x353ee9);this[_0x104c61(0x19b)][_0x104c61(0x1c2)](_0x353ee9)&&(_0x56b86b||!_0xfbab65?this[_0x104c61(0x128)][_0x104c61(0x145)](_0x104c61(0x163),{'markerId':_0x353ee9,'changeId':_0x4be47c[_0x104c61(0x20f)]}):_0x2cdc1e&&_0xfbab65&&this[_0x104c61(0x128)][_0x104c61(0x145)](_0x104c61(0x17e),{'markerId':_0x353ee9,'changeId':_0x4be47c[_0x104c61(0x20f)]}));}}[_0x3c1f46(0x1f7)](_0x15d68b){const _0x4f55ab=_0x3c1f46,_0x9f2527=_0x15d68b[_0x4f55ab(0x1a4)](':'),_0x636039=(_0x9f2527[0x1]||'')[_0x4f55ab(0x1a4)]('_');return{'prefix':_0x9f2527[0x0],'groupId':_0x636039[0x0],'suffix':_0x636039[0x1]};}[_0x3c1f46(0x1bf)](_0x1bf9f6,_0x3cb586,_0x2dfca4){const _0x5cfcfe=_0x3c1f46;if(_0x5cfcfe(0x15a)===_0x1bf9f6[_0x5cfcfe(0x1e0)]){const _0x571ec6=_0x1bf9f6;return new _0x5aa292(this[_0x5cfcfe(0x13b)](_0x3cb586[_0x5cfcfe(0x1ad)](_0x571ec6[_0x5cfcfe(0x153)][_0x5cfcfe(0x210)]),_0x2dfca4),_0x571ec6[_0x5cfcfe(0x1f2)],_0x571ec6[_0x5cfcfe(0x20e)]);}if(_0x5cfcfe(0x187)===_0x1bf9f6[_0x5cfcfe(0x1e0)]&&_0x1bf9f6[_0x5cfcfe(0x176)][_0x5cfcfe(0x217)](_0x5cfcfe(0x1e7))){const _0x3599e2=_0x1bf9f6;return new _0x3bd1f1(_0x3599e2[_0x5cfcfe(0x176)],_0x3599e2[_0x5cfcfe(0x13d)],this[_0x5cfcfe(0x1a2)](_0x3599e2[_0x5cfcfe(0x138)],_0x3cb586[_0x5cfcfe(0x1ad)](_0x3599e2[_0x5cfcfe(0x138)][_0x5cfcfe(0x127)][_0x5cfcfe(0x210)]),_0x3cb586[_0x5cfcfe(0x1ad)](_0x3599e2[_0x5cfcfe(0x138)][_0x5cfcfe(0x1e8)][_0x5cfcfe(0x210)]),_0x2dfca4),_0x3599e2[_0x5cfcfe(0x19b)],_0x3599e2[_0x5cfcfe(0x150)],_0x3599e2[_0x5cfcfe(0x20e)]);}return _0x1bf9f6;}[_0x3c1f46(0x151)](_0x221631){const _0x378401=_0x3c1f46;if(!_0x221631[_0x378401(0x12d)])return[];const _0x20a83f=[];let _0x468e8e=0x0,_0x41935a=0x0,_0x234643=[];for(let _0x21dfbc=0x0;_0x21dfbc<=_0x221631[_0x378401(0x12d)];_0x21dfbc++){const _0x28d62e=_0x221631[_0x21dfbc],_0x1bbe79=_0x221631[_0x21dfbc-0x1];!_0x28d62e||_0x1bbe79&&!this[_0x378401(0x131)](_0x1bbe79)[_0x378401(0x171)](this[_0x378401(0x15c)](_0x28d62e))?(_0x20a83f[_0x378401(0x1fa)]({'operations':_0x234643,'operationsIsolated':_0x234643[_0x378401(0x193)](_0xbcded7=>this[_0x378401(0x137)](_0xbcded7[_0x378401(0x1dd)](),-_0x41935a)),'groupOffset':_0x468e8e}),_0x234643=_0x28d62e?[_0x28d62e]:[],_0x41935a+=_0x468e8e,_0x468e8e=0x0):_0x234643[_0x378401(0x1fa)](_0x28d62e),_0x28d62e&&_0x378401(0x15a)===_0x28d62e[_0x378401(0x1e0)]&&(_0x468e8e+=_0x28d62e[_0x378401(0x1ef)]);}return _0x20a83f;}[_0x3c1f46(0x18b)](_0x1a95fc,_0x1afa62,_0x86ad,_0x100f66=0x1){const _0xeee9c9=_0x3c1f46,_0x228e1d=new _0x34302f({'startPosition':_0x1a95fc,'direction':_0x1afa62});let _0x55af0d=0x0;for(let _0x58b138=0x0;_0x58b138<_0x100f66;_0x58b138++){let _0x4b8c22=0x0,_0x526c3d=!0x1,_0xf349a3=_0xeee9c9(0x1a6)===_0x1afa62?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x4ed5e7}of _0x228e1d)if(_0x4ed5e7['is'](_0xeee9c9(0x12f))){const _0x3baa9a=_0xf349a3[_0xeee9c9(0x213)](_0x4ed5e7[_0xeee9c9(0x211)]);if(_0x3baa9a&&_0x3baa9a[_0xeee9c9(0x12d)]){if(_0x4b8c22+=_0xeee9c9(0x1a6)===_0x1afa62?_0x3baa9a[_0xeee9c9(0x1a7)]+_0x3baa9a[0x0][_0xeee9c9(0x12d)]:_0x4ed5e7[_0xeee9c9(0x211)][_0xeee9c9(0x12d)]-_0x3baa9a[_0xeee9c9(0x1a7)],_0x3baa9a[0x0][_0xeee9c9(0x12d)]!==_0x4ed5e7[_0xeee9c9(0x211)][_0xeee9c9(0x12d)])break;_0x526c3d=!0x0,_0xf349a3=_0xeee9c9(0x1a6)===_0x1afa62?/^\w+/:/\w+$/;}else{if(_0x526c3d)break;_0x4b8c22+=_0x4ed5e7[_0xeee9c9(0x203)];}}else{if(_0x4ed5e7['is'](_0xeee9c9(0x206))){_0x86ad[_0xeee9c9(0x188)](_0x4ed5e7)&&!_0x526c3d&&(_0x4b8c22+=0x1);break;}}_0x55af0d+=_0x4b8c22,_0x228e1d[_0xeee9c9(0x156)](_0x1a95fc[_0xeee9c9(0x1fb)](_0xeee9c9(0x1a6)===_0x1afa62?_0x55af0d:-_0x55af0d));}return _0x55af0d;}[_0x3c1f46(0x130)](_0x4dcf0d,_0x5ebd6c){const _0x149cd7=_0x3c1f46,_0x1f8f7a=_0x3c844c(this[_0x149cd7(0x1ba)])[_0x149cd7(0x1c5)][_0x149cd7(0x16f)],_0x113561=this[_0x149cd7(0x18b)](_0x4dcf0d,_0x149cd7(0x1d6),_0x1f8f7a,0x6),_0x4f9a12=this[_0x149cd7(0x18b)](_0x5ebd6c,_0x149cd7(0x1a6),_0x1f8f7a,0x6),_0x377eed=_0x4dcf0d[_0x149cd7(0x1fb)](-_0x113561),_0x529d49=_0x5ebd6c[_0x149cd7(0x1fb)](_0x4f9a12);return{'start':_0x377eed,'end':_0x529d49,'hasContentBefore':!_0x377eed[_0x149cd7(0x141)],'hasContentAfter':!_0x529d49[_0x149cd7(0x1a8)]};}[_0x3c1f46(0x147)](_0x4a71ef){const _0x4faa89=_0x3c1f46,_0x48af89=this[_0x4faa89(0x1ba)][_0x4faa89(0x1d3)][_0x4faa89(0x1c2)](_0x4faa89(0x158)),_0x1ba934=new Set();_0x3c844c(this[_0x4faa89(0x1ba)])[_0x4faa89(0x1c5)][_0x4faa89(0x1cf)](_0x46a430=>{const _0x15c1af=_0x4faa89;for(const _0x1db6bb of _0x4a71ef){const _0x2fde85=''+pe+_0x1db6bb[_0x15c1af(0x1e0)]+':'+_0x1db6bb[_0x15c1af(0x20f)]+'_'+_0x48af89[_0x15c1af(0x134)](_0x1ba934);this[_0x15c1af(0x19b)][_0x15c1af(0x1f1)](_0x2fde85,{'id':_0x2fde85,'groupId':_0x1db6bb[_0x15c1af(0x20f)],'type':_0x1db6bb[_0x15c1af(0x1e0)],'text':_0x1db6bb[_0x15c1af(0x1c8)]}),_0x46a430[_0x15c1af(0x149)](_0x2fde85,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x46a430[_0x15c1af(0x1e6)](_0x1db6bb[_0x15c1af(0x127)],_0x1db6bb[_0x15c1af(0x1e8)])});}});}[_0x3c1f46(0x143)](_0x31e7c3,_0x309d2f,_0x5d89d8){let _0x36a05e='';return()=>{const _0x13c329=_0x994b;if(!_0x36a05e){const _0x41c645=_0x309d2f[_0x13c329(0x16a)](_0x31e7c3,{'showSuggestionHighlights':!0x0});let _0x27060b=_0x41c645[_0x13c329(0x160)](0x0);if(_0x27060b['is'](_0x13c329(0x17b))||(_0x27060b=_0x41c645),!_0x27060b)return'';let _0x4497ff=!0x1;const _0x14f511=[];for(const _0x4fa065 of _0x27060b[_0x13c329(0x1ce)]())_0x4fa065['is'](_0x13c329(0x206),_0x13c329(0x148))&&_0x4fa065[_0x13c329(0x209)](_0x13c329(0x1bd))&&(_0x4497ff=!0x1),_0x4497ff&&_0x14f511[_0x13c329(0x1fa)](_0x4fa065),_0x4fa065['is'](_0x13c329(0x206),_0x13c329(0x148))&&_0x4fa065[_0x13c329(0x209)](_0x13c329(0x1d4))&&(_0x4497ff=!0x0);_0x27060b[_0x13c329(0x1eb)](0x0,_0x27060b[_0x13c329(0x1cb)]),_0x5d89d8?.[_0x13c329(0x1f0)]&&_0x27060b[_0x13c329(0x1db)]('…'),_0x27060b[_0x13c329(0x1db)](_0x14f511),_0x5d89d8?.[_0x13c329(0x15b)]&&_0x27060b[_0x13c329(0x1db)]('…');const _0x3c0aac=_0x309d2f[_0x13c329(0x1d0)][_0x13c329(0x16e)][_0x13c329(0x135)](_0x41c645),_0x3b962a=_0x309d2f[_0x13c329(0x1d0)][_0x13c329(0x18d)][_0x13c329(0x19c)](_0x3c0aac);_0x36a05e=_0x3b962a;}return _0x36a05e;};}[_0x3c1f46(0x201)](_0x56d979,_0x28e30e){const _0x37c027=_0x3c1f46;let _0x5608e3='';return()=>(_0x5608e3||(_0x5608e3=_0x28e30e[_0x37c027(0x179)](_0x56d979,{'showSuggestionHighlights':!0x0})),_0x5608e3);}[_0x3c1f46(0x196)](_0x133bc5,_0x4d9ecb,_0x1b6f54){let _0x56ec67='';return()=>{const _0x3bb2c1=_0x994b;if(!_0x56ec67){const _0x2e4f72=_0x1b6f54[_0x3bb2c1(0x16a)](new _0x128885(_0x133bc5)),_0x141ddd=_0x1b6f54[_0x3bb2c1(0x1d0)][_0x3bb2c1(0x16e)][_0x3bb2c1(0x135)](_0x2e4f72)[_0x3bb2c1(0x1ee)](_0x3bb2c1(0x1d9)+_0x4d9ecb+'\x22]');_0x56ec67=_0x141ddd?.[_0x3bb2c1(0x18c)]||'';}return _0x56ec67;};}[_0x3c1f46(0x207)](_0x40d779,_0x420f13=0x5){const _0x19d687=_0x3c1f46;let _0x52fc4f=_0x40d779,_0x328cf0=null;for(let _0x4388ef=0x0;_0x4388ef<_0x420f13&&_0x52fc4f;_0x4388ef++){if(!_0x52fc4f[_0x19d687(0x1b5)]){_0x52fc4f=_0x52fc4f[_0x19d687(0x189)];continue;}if(!(''+_0x52fc4f[_0x19d687(0x1b5)])[_0x19d687(0x133)](_0x19d687(0x1ab))){_0x52fc4f=_0x52fc4f[_0x19d687(0x189)];continue;}if(!_0x52fc4f[_0x19d687(0x195)](_0x19d687(0x1be)))break;_0x328cf0=_0x52fc4f;break;}return _0x328cf0;}[_0x3c1f46(0x1c7)](_0xbd27a9){const _0x22e0c7=_0x3c1f46;return Array[_0x22e0c7(0x1f4)](this[_0x22e0c7(0x19b)][_0x22e0c7(0x1b4)]())[_0x22e0c7(0x172)](_0xd23d0=>_0xd23d0[_0x22e0c7(0x20f)]===_0xbd27a9);}[_0x3c1f46(0x15c)](_0x674ad8){const _0x3ff416=_0x3c1f46;return _0x3ff416(0x15a)===_0x674ad8[_0x3ff416(0x1e0)]?_0x674ad8[_0x3ff416(0x153)]:_0x674ad8[_0x3ff416(0x138)][_0x3ff416(0x127)];}[_0x3c1f46(0x131)](_0x460e1b,_0x10adec=!0x1){const _0x55400f=_0x3c1f46;return _0x55400f(0x15a)===_0x460e1b[_0x55400f(0x1e0)]?_0x10adec?_0x460e1b[_0x55400f(0x153)]:_0x460e1b[_0x55400f(0x153)][_0x55400f(0x1fb)](_0x460e1b[_0x55400f(0x1ef)]):_0x460e1b[_0x55400f(0x138)][_0x55400f(0x1e8)];}[_0x3c1f46(0x137)](_0x4796bc,_0x48b41){const _0x7c10fe=_0x3c1f46;return _0x7c10fe(0x15a)===_0x4796bc[_0x7c10fe(0x1e0)]?_0x4796bc[_0x7c10fe(0x153)]=_0x4796bc[_0x7c10fe(0x153)][_0x7c10fe(0x1fb)](_0x48b41):_0x7c10fe(0x187)===_0x4796bc[_0x7c10fe(0x1e0)]&&_0x4796bc[_0x7c10fe(0x138)]&&(_0x4796bc[_0x7c10fe(0x138)]=new _0x127ae3(_0x4796bc[_0x7c10fe(0x138)][_0x7c10fe(0x127)][_0x7c10fe(0x1fb)](_0x48b41),_0x4796bc[_0x7c10fe(0x138)][_0x7c10fe(0x1e8)][_0x7c10fe(0x1fb)](_0x48b41))),_0x4796bc;}[_0x3c1f46(0x1d5)](_0x1541fb,_0x44bb83){const _0x3d36d5=_0x3c1f46;_0x3d36d5(0x15a)===_0x1541fb[_0x3d36d5(0x1e0)]?_0x1541fb[_0x3d36d5(0x153)]=this[_0x3d36d5(0x1e1)](_0x1541fb[_0x3d36d5(0x153)],_0x44bb83):_0x3d36d5(0x187)===_0x1541fb[_0x3d36d5(0x1e0)]&&_0x1541fb[_0x3d36d5(0x138)]&&(_0x1541fb[_0x3d36d5(0x138)]=this[_0x3d36d5(0x14f)](_0x1541fb[_0x3d36d5(0x138)],_0x44bb83));}[_0x3c1f46(0x1e1)](_0x45cde4,_0x4784d3){const _0x618336=_0x3c1f46;return new _0x2f6ba1(_0x4784d3,_0x45cde4[_0x618336(0x174)]);}[_0x3c1f46(0x14f)](_0x230c59,_0x1da9b3){const _0x5cbba4=_0x3c1f46;return new _0x127ae3(this[_0x5cbba4(0x1e1)](_0x230c59[_0x5cbba4(0x127)],_0x1da9b3),this[_0x5cbba4(0x1e1)](_0x230c59[_0x5cbba4(0x1e8)],_0x1da9b3));}[_0x3c1f46(0x13b)](_0x290529,_0x7cb9a6){return new _0x2f6ba1(_0x7cb9a6,[..._0x290529]);}[_0x3c1f46(0x1a2)](_0x56d3ce,_0x13daf3,_0x1a4a1e,_0x442394){const _0x3583a=_0x3c1f46;return new _0x127ae3(this[_0x3583a(0x13b)](_0x13daf3,_0x442394),this[_0x3583a(0x13b)](_0x1a4a1e,_0x442394));}[_0x3c1f46(0x168)](_0x156d86){const _0x5e1901=_0x3c1f46,_0x37650f=_0x32239e=>{const _0x38ddd7=_0x994b;switch(_0x32239e){case _0x38ddd7(0x15a):return 0x1;case _0x38ddd7(0x169):return 0x2;case _0x38ddd7(0x13e):return 0x3;case _0x38ddd7(0x19e):return 0x4;}};return _0x156d86[_0x5e1901(0x1bc)]((_0xd6cac8,_0x2180b4)=>_0x37650f(_0xd6cac8[_0x5e1901(0x1e0)])-_0x37650f(_0x2180b4[_0x5e1901(0x1e0)]));}[_0x3c1f46(0x17f)](_0x1a6870,_0x11d33c){const _0x16d3cd=_0x3c1f46,_0x3666c6=_0x1a6870[_0x16d3cd(0x160)](0x0),_0x2f8cc4=_0x11d33c[_0x16d3cd(0x160)](0x0);return!(!_0x3666c6||!_0x2f8cc4)&&((!_0x3666c6['is'](_0x16d3cd(0x206))||!_0x2f8cc4['is'](_0x16d3cd(0x206))||_0x3666c6[_0x16d3cd(0x176)]===_0x2f8cc4[_0x16d3cd(0x176)])&&!(_0x3666c6['is'](_0x16d3cd(0x206))&&!_0x2f8cc4['is'](_0x16d3cd(0x206))||!_0x3666c6['is'](_0x16d3cd(0x206))&&_0x2f8cc4['is'](_0x16d3cd(0x206))));}[_0x3c1f46(0x1c1)](_0x151f99){const _0x52c3b1=_0x3c1f46;return 0x1===_0x151f99[_0x52c3b1(0x1cb)];}[_0x3c1f46(0x182)](_0x2e3beb,_0x49e884){const _0x16afe8=_0x3c1f46;for(const _0x3e399e of _0x2e3beb[_0x16afe8(0x1ce)]())if(_0x3e399e['is'](_0x16afe8(0x206))&&!_0x49e884[_0x16afe8(0x188)](_0x3e399e))return!0x1;return!0x0;}[_0x3c1f46(0x1b9)](_0x48b540,_0x5c6c34){const _0x521da3=_0x3c1f46;let _0x531e5a=_0x48b540[_0x521da3(0x195)](_0x131629);return _0x531e5a||(_0x531e5a=_0x5c6c34(),_0x48b540[_0x521da3(0x1da)](_0x131629,_0x531e5a)),_0x531e5a;}}function _0xcf8f(){const _0x3e486b=['data-marker-id','_translateOperationToEditorContent','getChanges','_haveSingleTopLevelElement','get','[data-marker-id=\x22','getOperations','model','model:$text','_getMarkersDataForGroup','text','toDomElement','downcast','childCount','append','remove','getChildren','change','htmlProcessor','requires','ck-ai_review-mode-marker_add','plugins','ck-ai_review-mode-marker_context-start','_changeOperationOwnerDocument','backward','changeMarkerClick','isPremiumPlugin','[data-id=\x22','_setAttribute','_appendChild','diffContent','clone','_domEmitter','_validateMarkers','type','_changePositionOwnerDocument','deleteContent','getRoot','for','editingDowncast','createRange','$markedRemove','end','applyChange','clearAllMarkers','_removeChildren','hasContentBefore','suggestion-context','querySelector','howMany','ellipsisBefore','set','nodes','No\x20element\x20found\x20for\x20ID:\x20','from','rejectChange','markers','_parseMarkerName','disableReadOnlyMode','isOpening','push','getShiftedBy','suggestion:deletion:id:authorId:','mouseover','$documentFragment','2039889ltEDpe','removeMarker','_createGetContentFn','markerName','offsetSize','switchToReadOnly','hasAttribute','element','_findMarkerElement','parse','hasClass','enableReadOnlyMode','reviewmode-','operationsIsolated','getMarkerElementForChange','baseVersion','groupId','offset','data','history','exec','markChangePositionInEditorContent','delete','view','startsWith','click','size','changeMarkerHovered','1avXwUD','start','_eventEmitter','warn','hasContentAfter','elements','listenTo','length','markerToHighlight','$textProxy','_getChangeContext','_getOperationEnd','toData','includes','_nextDataId','viewToDom','DocumentCompare','_shiftOperation','newRange','7171072ZbSZkc','rootName','_changePosition','dataDowncast','oldRange','remove-only','3532856ZOwlig','ck-ai_review-mode-marker_hide','isAtStart','changeMarkerBlurred','_createGetContextFn','1475788mptTPM','fire','has','_insertMarkers','span','addMarker','applyOperation','getDocumentData','target','_clone','emitter','_changeRangeOwnerDocument','affectsData','_groupAdjacentOperations','document','position','pop','clear','jumpTo','every','AIEditing','_handleMarkerChanges','insert','ellipsisAfter','_getOperationStart','add','insertContent','ck-ai_review-mode-marker_context-','getChild','innerHTML','batch','changeMarkerRemoved','ai-review-mode','processor','getRange','AIReviewModeEditing','_sortMarkers','remove-context','toView','getEditor','containsRange','markerToElement','domConverter','schema','_removeAttribute','isTouching','filter','1005425kiaSed','path','conversion','name','getStart','root','stringify','getDomRoot','containerElement','operationsA','registerPostFixer','changeMarkerRestored','_hasSameTopLevelElement','$graveyard','keys','_haveOnlyInlineContent','afterInit','.ck-reset.ck-ai-review-mode-balloon-panel-suggestion','version','createPositionAfter','marker','isInline','parentElement','suggestion:insertion:id:authorId:','_findAdjacentContextDistance','outerHTML','htmlWriter','editing','createRawElement','differ','parent','getChangedMarkers','map','getPath','getAttribute','_createGetContentUsingDataIdFn','documentFragment','switchToEdit','createSelection','createText','_markers','getHtml','createUIElement','remove-text','959394hQzDwc','attributeToAttribute','ck-ai_review-mode-marker_strikethrough','_changeRange','relatedTarget','split','isOfficialPlugin','forward','index','isAtEnd','getRoots','pluginName','ck-ai_review-mode-marker_','addOperation','concat','createPositionAt','5781440zwYhZF','createDocumentFragment','isDocumentOperation','forEach','closest','values','className','isIntersecting','getDiff','flat','_upsertDataId','context','ck-ai_review-mode-marker_underline','sort','ck-ai_review-mode-marker_context-end'];_0xcf8f=function(){return _0x3e486b;};return _0xcf8f();}