@ckeditor/ckeditor5-track-changes 37.0.0 → 37.0.1
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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2142=['_schema','text','matchingCallback','previousSibling','checkChild','_itemLabels','_itemLabelsCallbacks','indexOf','deletion','_resolveDescriptionItems','getFirstRange','element','item','elementEnd','$1\x20$2','replace','ELEMENT_SPACE','addObject','length','label','data','registerDescriptionCallback','*Merge:*\x20%0','isObject','type','*Insert:*\x20%0','isEmpty','start','function','registerElementLabel','isEqual','elementStart','getDescriptions','get','softBreak','add','_addDescriptionItems','normal','push','name','match','quantity','Container','Object','getItemLabel','addContainer','removeObject','insertion','isInContent','nextSibling','*Remove:*\x20%0','EmptyContainer','_locale','skip','end','_customCallbacks','remove'];(function(_0x278d2e,_0x2142cf){const _0x24d782=function(_0x49b693){while(--_0x49b693){_0x278d2e['push'](_0x278d2e['shift']());}};_0x24d782(++_0x2142cf);}(_0x2142,0x10a));const _0x24d7=function(_0x278d2e,_0x2142cf){_0x278d2e=_0x278d2e-0x0;let _0x24d782=_0x2142[_0x278d2e];return _0x24d782;};import{getTranslation as _0x59c14e}from'./utils/common-translations';import{priorities as _0xc5af37,insertToPriorityArray as _0x5dc15b}from'ckeditor5/src/utils';export default class m{constructor(_0x1dd1ab,_0x3afcaf){this[_0x24d7('0x11')]=[],this['_itemLabels']=new Map(),this[_0x24d7('0x19')]=[],this[_0x24d7('0x13')]=_0x1dd1ab,this[_0x24d7('0xe')]=_0x3afcaf;}[_0x24d7('0x33')](_0x5289ea){const _0x42c638=[];for(let _0x209e50=0x0;_0x209e50<_0x5289ea[_0x24d7('0x25')];_0x209e50++){const _0x13eedf=_0x5289ea[_0x209e50];if(!_0x13eedf[_0x24d7('0xa')])continue;let _0x292deb=!0x1;for(const _0x2a0e29 of this[_0x24d7('0x11')]){const _0xa39f95=_0x2a0e29(_0x13eedf);if(_0xa39f95){_0x24d7('0x2b')in _0xa39f95&&_0x42c638[_0x24d7('0x0')](_0xa39f95),_0x292deb=!0x0;break;}}if(!_0x292deb){this[_0x24d7('0x37')](_0x42c638,_0x13eedf);const _0x1ca998=_0x5289ea[_0x209e50+0x1];if(_0x1ca998&&!_0x13eedf[_0x24d7('0x1d')]()[_0x24d7('0x10')][_0x24d7('0x31')](_0x1ca998[_0x24d7('0x1d')]()[_0x24d7('0x2e')])){const _0xbc33ec=_0x42c638[_0x42c638[_0x24d7('0x25')]-0x1],_0x4fd32c=_0x24d7('0x9')==_0x13eedf[_0x24d7('0x2b')]?_0x24d7('0x36'):'remove';_0xbc33ec&&_0x24d7('0x14')==_0xbc33ec[_0x24d7('0x2b')]&&(_0xbc33ec[_0x4fd32c]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x42c638);}[_0x24d7('0x28')](_0xe8340d){this['_customCallbacks'][_0x24d7('0x0')](_0xe8340d);}[_0x24d7('0x30')](_0x104e75,_0x2620b1,_0x3adf06=_0xc5af37[_0x24d7('0x38')]){_0x24d7('0x2f')==typeof _0x104e75?_0x5dc15b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x104e75,'label':_0x2620b1,'priority':_0x3adf06}):this[_0x24d7('0x18')]['set'](_0x104e75,_0x2620b1);}['getItemLabel'](_0x234f7d,_0x421e88=0x1){let _0x290a30;for(const _0x2a1d83 of this['_itemLabelsCallbacks'])if(_0x2a1d83[_0x24d7('0x15')](_0x234f7d)){_0x290a30=_0x2a1d83[_0x24d7('0x26')];break;}return _0x290a30||(_0x290a30=this['_itemLabels'][_0x24d7('0x34')](_0x234f7d[_0x24d7('0x1')])),_0x290a30?_0x290a30(_0x421e88):0x1!==_0x421e88?_0x421e88+'\x20'+_0x234f7d[_0x24d7('0x1')]+'s':''+_0x234f7d[_0x24d7('0x1')];}[_0x24d7('0x37')](_0x27a54e,_0xe2dd4f){const _0x210587=_0xe2dd4f[_0x24d7('0x1d')]()['getWalker'](),_0x2b1239='insertion'==_0xe2dd4f[_0x24d7('0x2b')]?_0x24d7('0x36'):_0x24d7('0x12');for(const _0x4f8c35 of _0x210587){const _0x45bb8a=_0x4f8c35[_0x24d7('0x1f')],_0xc199e6=_0x27a54e[_0x27a54e[_0x24d7('0x25')]-0x1];if(_0x45bb8a['is']('$textProxy'))_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0xc199e6&&_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]?_0xc199e6[_0x2b1239]+=_0x45bb8a[_0x24d7('0x27')]:_0x27a54e[_0x24d7('0x0')]({'type':_0x24d7('0x14'),'add':'add'==_0x2b1239?_0x45bb8a['data']:'','remove':_0x24d7('0x12')==_0x2b1239?_0x45bb8a[_0x24d7('0x27')]:''});else{if(this[_0x24d7('0x13')]['isObject'](_0x45bb8a)){const _0x4614bd=_0x45bb8a;if(_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0x24d7('0x20')==_0x4f8c35[_0x24d7('0x2b')])continue;_0xc199e6&&_0xc199e6['type']==_0x2b1239+_0x24d7('0x5')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x4614bd['name']?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+_0x24d7('0x5'),'element':_0x4614bd,'quantity':0x1}),_0x210587[_0x24d7('0xf')](_0x21523e=>!(_0x24d7('0x20')==_0x21523e[_0x24d7('0x2b')]&&_0x21523e['item']==_0x45bb8a));}else{if(this['_schema'][_0x24d7('0x17')](_0x45bb8a,'$text')||_0x45bb8a['is'](_0x24d7('0x1e'),_0x24d7('0x35'))){const _0x351ccc=_0x45bb8a;if('add'==_0x2b1239&&_0x24d7('0x32')==_0x4f8c35['type']||_0x24d7('0x12')==_0x2b1239&&_0x24d7('0x20')==_0x4f8c35['type'])continue;if(_0xc199e6&&-0x1==_0xc199e6[_0x24d7('0x2b')][_0x24d7('0x1a')](_0x24d7('0x4'))){_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]&&(_0xc199e6[_0x2b1239]+='\x0a');continue;}let _0x4a7ddf;if(_0x4a7ddf='add'==_0x2b1239?_0x351ccc[_0x24d7('0xb')]&&!this[_0x24d7('0x13')][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0xb')])?_0x351ccc['nextSibling']:null:_0x351ccc['previousSibling']&&!this['_schema'][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0x16')])?_0x351ccc[_0x24d7('0x16')]:null,_0x351ccc[_0x24d7('0x2d')]||_0x4a7ddf&&_0x4a7ddf['isEmpty']){const _0x420a02=_0x4a7ddf&&_0x4a7ddf[_0x24d7('0x2d')]?_0x4a7ddf:_0x351ccc;_0xc199e6&&_0xc199e6[_0x24d7('0x2b')]==_0x2b1239+_0x24d7('0xd')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x420a02[_0x24d7('0x1')]?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+'EmptyContainer','element':_0x420a02,'quantity':0x1});}else _0x27a54e['push']({'type':_0x2b1239+'Container','element':_0x351ccc});}}}}}[_0x24d7('0x1c')](_0x1bcf47){const _0x29a117=this['_locale'],_0x27e30b=[];for(const _0x183fc4 of _0x1bcf47){switch(_0x183fc4['type']){case'text':if(_0x183fc4[_0x24d7('0x36')]=_0x183fc4['add'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),_0x183fc4[_0x24d7('0x12')]=_0x183fc4['remove'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),''!=_0x183fc4[_0x24d7('0x36')]&&''!=_0x183fc4[_0x24d7('0x12')]){_0x27e30b[_0x24d7('0x0')]({'type':'replace','content':_0x59c14e(_0x29a117,'REPLACE_TEXT',['\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22','\x22'+_0x183fc4['add']+'\x22'])});continue;}if(null!=_0x183fc4['add'][_0x24d7('0x2')](/^ +$/)){_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x9'),'content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x36')][_0x24d7('0x25')]))});continue;}if(null!=_0x183fc4['remove']['match'](/^ +$/)){_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,'*Remove:*\x20%0',_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x12')][_0x24d7('0x25')]))});continue;}if(''!=_0x183fc4['add']){_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),'\x22'+_0x183fc4[_0x24d7('0x36')]+'\x22')});continue;}_0x27e30b[_0x24d7('0x0')]({'type':'deletion','content':_0x59c14e(_0x29a117,'*Remove:*\x20%0','\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22')});continue;case'addEmptyContainer':case _0x24d7('0x24'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeEmptyContainer':case _0x24d7('0x8'):_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0xc'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case _0x24d7('0x7'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,'*Split:*\x20%0',this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeContainer':_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0x29'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;}_0x27e30b['push'](_0x183fc4);}return _0x27e30b;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2818=['TrackChanges','get','editor','adapter','getSuggestions','requires','addSuggestionData','plugins','pluginName','getSuggestion'];(function(_0x2d8288,_0x2818b8){var _0xbb126e=function(_0x592a8f){while(--_0x592a8f){_0x2d8288['push'](_0x2d8288['shift']());}};_0xbb126e(++_0x2818b8);}(_0x2818,0x123));var _0xbb12=function(_0x2d8288,_0x2818b8){_0x2d8288=_0x2d8288-0x0;var _0xbb126e=_0x2818[_0x2d8288];return _0xbb126e;};import{Plugin as _0x5c1cd6}from'ckeditor5/src/core';import _0x300084 from'./trackchangesui';import _0x359ba5 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x5c1cd6{static get[_0xbb12('0x4')](){return[_0x359ba5,_0x300084,'Comments'];}static get[_0xbb12('0x7')](){return _0xbb12('0x9');}set['adapter'](_0x4b979f){this[_0xbb12('0x1')]['plugins']['get'](_0x359ba5)[_0xbb12('0x2')]=_0x4b979f;}get['adapter'](){return this[_0xbb12('0x1')][_0xbb12('0x6')]['get'](_0x359ba5)[_0xbb12('0x2')];}['addSuggestion'](_0x3c98fa){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x5')](_0x3c98fa);}[_0xbb12('0x3')]({skipNotAttached:_0x5d1957=!0x1,toJSON:_0x55893d=!0x1}={}){return this['editor'][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x3')]({'skipNotAttached':_0x5d1957,'toJSON':_0x55893d});}[_0xbb12('0x8')](_0x4c0e04){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x8')](_0x4c0e04);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20fd=['useAnonymousUser','track-changes-data-invalid-editor-creator','extraPlugins','find','editorCreator','users','builtinPlugins','model','discardAllSuggestions','end','WebSocketGateway','constructor','getUser','editor','appendChild','Autosave','WordCount','TrackChangesData','requires','push','includes','trackChangesData.editorCreator','set','init','adapter','name','pluginName','config','RevisionTracker','filter','getRootNames','getDataWithDiscardedSuggestions','map','trackChangesData','has','create','execute','string','plugins','document','addSuggestionData','createElement','CommentsRepository','TrackChangesEditing','createDocumentFragment','data','destroy','concat','getDataWithAcceptedSuggestions','context','Users','TrackChangesDataGetter','function','get'];(function(_0x5a37ee,_0x20fda8){const _0x414c46=function(_0x2e2529){while(--_0x2e2529){_0x5a37ee['push'](_0x5a37ee['shift']());}};_0x414c46(++_0x20fda8);}(_0x20fd,0x1df));const _0x414c=function(_0x5a37ee,_0x20fda8){_0x5a37ee=_0x5a37ee-0x0;let _0x414c46=_0x20fd[_0x5a37ee];return _0x414c46;};import{Plugin as _0x30e67d}from'ckeditor5/src/core';import{CKEditorError as _0x18edc4}from'ckeditor5/src/utils';import _0x25b209 from'./trackchangesediting';const C=['initialData',_0x414c('0x2'),'toolbar'],w=[_0x414c('0x11'),_0x414c('0x23'),_0x414c('0x16'),_0x414c('0x17'),'Pagination'];export default class T extends _0x30e67d{static get[_0x414c('0x19')](){return[_0x25b209];}static get['pluginName'](){return _0x414c('0x18');}['init'](){const _0x11e265=this[_0x414c('0x14')];if(_0x11e265['config']['define'](_0x414c('0x1c'),_0x52fa35=>_0x11e265[_0x414c('0x12')][_0x414c('0x2a')]('',_0x52fa35)),_0x414c('0x5')!=typeof _0x11e265[_0x414c('0x22')][_0x414c('0x6')](_0x414c('0x28'))[_0x414c('0xb')])throw new _0x18edc4(_0x414c('0x8'));}[_0x414c('0x1')](_0x11ab8e){return D(this[_0x414c('0x14')],!0x0,_0x11ab8e);}[_0x414c('0x26')](_0x620506){return D(this[_0x414c('0x14')],!0x1,_0x620506);}}class P extends _0x30e67d{static get['pluginName'](){return _0x414c('0x4');}constructor(_0x13abf3){super(_0x13abf3),this['result']=_0x414c('0x10');}[_0x414c('0x1e')](){this[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x31'))[_0x414c('0x1f')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'))['_adapter']=null;}}async function D(_0x31f8d3,_0x2d1a01,_0x4311e2){const _0x2e612c=function(_0x528070){const _0x3b3b17={};for(const _0x2ccb08 of _0x528070['config']['names']())C[_0x414c('0x1b')](_0x2ccb08)||(_0x3b3b17[_0x2ccb08]=_0x528070[_0x414c('0x22')][_0x414c('0x6')](_0x2ccb08));const _0x1f58b5=_0x528070['constructor'][_0x414c('0xd')]||[],_0x228195=_0x3b3b17[_0x414c('0x9')]||[];delete _0x3b3b17[_0x414c('0x9')];const _0x19743e=_0x1f58b5[_0x414c('0x0')](_0x3b3b17['plugins'])['concat'](_0x228195)[_0x414c('0x27')](_0x1ea9ca=>_0x414c('0x2c')==typeof _0x1ea9ca?_0x1f58b5[_0x414c('0xa')](_0x197979=>_0x197979[_0x414c('0x21')]==_0x1ea9ca):_0x1ea9ca),_0x19bb11=Array['from'](new Set(_0x19743e)),_0x523973=new Map();return _0x3b3b17['plugins']=_0x19bb11[_0x414c('0x24')](_0x5635c0=>v(_0x5635c0,_0x523973)),_0x3b3b17[_0x414c('0x2d')][_0x414c('0x1a')](P),_0x3b3b17[_0x414c('0x2d')]['push'](_0x25b209),_0x3b3b17;}(_0x31f8d3),_0x148b40=document[_0x414c('0x33')](),_0x46ed23=_0x31f8d3[_0x414c('0x22')]['get'](_0x414c('0x28'))[_0x414c('0xb')],_0x92ee5=await _0x46ed23(_0x2e612c,()=>function(_0x1857d3){const _0x2a8d77=document[_0x414c('0x30')]('div');return _0x1857d3[_0x414c('0x15')](_0x2a8d77),_0x2a8d77;}(_0x148b40));!function(_0x501b89,_0x5c7d60){const _0x1c9f94=_0x501b89[_0x414c('0xe')][_0x414c('0x2e')][_0x414c('0x25')]()['reduce']((_0x272b66,_0x3cfd7c)=>(_0x272b66[_0x3cfd7c]=_0x501b89[_0x414c('0x34')][_0x414c('0x6')]({'rootName':_0x3cfd7c}),_0x272b66),{}),_0x315624=_0x501b89['plugins'][_0x414c('0x6')](_0x414c('0x3'))[_0x414c('0xc')]['map'](_0x501df9=>({'id':_0x501df9['id'],'name':_0x501df9[_0x414c('0x20')]})),_0x37df8e=_0x501b89[_0x414c('0x2d')]['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c1c10=_0x5c7d60['plugins']['get'](_0x414c('0x3')),_0x434f7f=_0x5c7d60[_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'));for(const _0x1bdca6 of _0x315624)_0x5c1c10[_0x414c('0x13')](_0x1bdca6['id'])||_0x5c1c10['addUser'](_0x1bdca6);_0x5c1c10['me']||_0x5c1c10[_0x414c('0x7')]();for(const _0x2c5e87 of _0x37df8e)_0x434f7f[_0x414c('0x2f')](_0x2c5e87);_0x5c7d60[_0x414c('0x34')][_0x414c('0x1d')](_0x1c9f94);}(_0x31f8d3,_0x92ee5),_0x92ee5[_0x414c('0x2b')](_0x2d1a01?'acceptAllSuggestions':_0x414c('0xf'));const _0x26e3d3=_0x92ee5[_0x414c('0x34')]['get'](_0x4311e2);return await _0x92ee5[_0x414c('0x35')](),_0x26e3d3;}function v(_0x1d6d10,_0x3f305c){const _0x5022c0=_0x414c('0x5')==typeof _0x1d6d10?_0x1d6d10['pluginName']||_0x1d6d10[_0x414c('0x20')]:_0x1d6d10;if(_0x3f305c[_0x414c('0x29')](_0x5022c0))return _0x3f305c['get'](_0x5022c0);if(_0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),_0x5022c0&&w[_0x414c('0x1b')](_0x5022c0))return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x1),!0x1;if(!_0x1d6d10[_0x414c('0x19')])return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),!0x0;const _0x3fa570=_0x1d6d10[_0x414c('0x19')]['every'](_0x4cdfa6=>v(_0x4cdfa6,_0x3f305c));return _0x3f305c[_0x414c('0x1d')](_0x5022c0,_0x3fa570),_0x3fa570;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1f4b=['_refreshSuggestionsChain','createElement','enableCommand','originalSuggestionId','hasCommentThread','value','from','open','pluginName','formatInline:accept','collaboration.channelId','suggestion','insertion:discard','deletion:accept','suggestionLoaded','removed','ck-suggestion-marker','_getSuggestionData','rethrowUnexpectedError','substr','showSuggestionHighlights','_handleNewSuggestionMarker','getAttribute','delete','getNearestSelectionRange','enableReadOnlyMode','options','acceptSelectedSuggestions','containsPosition','track-changes-suggestion-not-found','_trackFormatChanges','getShiftedBy','splice','subType','markerNameToElements','_saved','_updateSuggestionData','_breakSuggestionMarker','isDocumentOperation','setTo','isAfter','notReady','createPositionAfter','getMultiRangeId','containsItem','hasSuggestion','insertion','values','deleteContent','sort','deletion:chain','add','isAtEnd','track-changes-adapter-already-set','insertion:chain','_editor','formatBlock:discard','setSelection','formatBlock','commandName','config','isObject','PENDING_ACTION_SUGGESTION','attributes','createRangeIn','getIntersection','_checkSuggestionCorrectness','containsRange','init','then','move','addClass','conversion','plugins','isBlock','isNextTo','formatBlock:','size','deletion:join','deletion:discard','getChangedMarkers','join','_customCallbacks','filter','detach','isMultiRange','formatGroupId','$marker','catch','markerToData','TrackChangesEditing','updateMarker','track-changes-command-not-found','position','markers','map','markMultiRangeBlockFormat','after','isLocal','creator','containsRangeInObject','upcast','_getAuthorFromId','nodeAfter','low','getFirstMarker','addHighlight','getAllAdjacentSuggestions','getMarkers','getSuggestion','removeClass','newRange','markerName','range','_addSuggestionMarker','getItems','has','markerReady','rejected','documentSelection','listenTo','isExternal','authoredAt','deletion:','isAtStart','getCustomProperty','parent','selection','group','dataToMarker','accept','elementStart','type','addMarker','isSelectable','root','removeComment','removeMarker','_rangeIsInLocalUserInsertion','isEqual','elementToElement','addSuggestion','chain','error-saving-suggestion-data-suggestion-discarded','_cutOutSuggestionMarker','setAttribute','_removeSuggestion','differ','formatBlock:chain','every','_getExternalAuthor','stop','_commentsRepository','execute','addMarkerName','getWalker','suggestionChanged','createPositionBefore','addMarker:suggestion:formatBlock','markDeletion','next','registerPostFixer','suggestion:','adapter','authorName','fromCharCode','change:activeMarkers','CommentsRepository','_enabledCommands','addRange','before','getFirstRange','discardSelectedSuggestions','for','consumable','length','change','toJSON','marker-count','getUser','schema','trackChanges','data','lowest','commands','removeAttribute','refresh','model','name','isCollapsed','_onDiscard','previous','remove','document','_defaultCallbacks','_suggestionFactory','buildSuggestion','acceptAllSuggestions','unbindElementFromMarkerName','getSuggestions','dataDowncast','normal','discardSuggestion','_joinWithAdjacentSuggestions','markMultiRangeDeletion','isInContent','markerToHighlight','define','getLastMatchingPosition','getSuggestionCallback','createRange','_suggestions','discardAllSuggestions','insertContent','multipleBlocks','ready','rootName','ck-suggestion-marker-formatBlock','markInlineFormat','markBlockFormat','forceDefaultExecution','elementEnd','Users','hasComments','ck-suggestion-marker-','multi','addSuggestionData','backward','ck-suggestion-marker--active','editor','getCommentThread','trackChanges.trackFormatChanges','splitPosition','createSelection','moveTargetPosition','insertion:','createPositionAt','reconvertMarker','accepted','isBefore','addUser','formatInline:join','toViewElement','_registerDefaultCallbacks','_addThreadToSuggestion','isOwn','editingDowncast','writer','forward','update:suggestion','_setSuggestionData','change:_saved','_setSuggestionRange','skipNestingCheck','containerElement','howMany','removeMarkers','fromRange','high','_createSuggestion','_adapter','highest','includes','isRemovable','locale','fire','@external','clone','deletion','formatInline:discard','dataReady','data-suggestion','oldRange','getRange','element','discard','split','$textProxy','addMarker:suggestion','removeMarker:suggestion:formatBlock','_isForcedDefaultExecutionBlock','acceptSuggestion','batch','commentThread','track-changes-adapter-missing-getsuggestion','_splitMarkerName','mapper','markMultiRangeInsertion','_suggestionState','set','_descriptionFactory','$graveyard','push','addComment','consume','get','some','resolve','track-changes-suggestion-data-mismatch','isTouching','item','nodeBefore','widget','getRanges','author','addCommentThread','end','_joinSuggestions','external:','start','formatBlock:accept','insert','track-changes-user-not-found','activeMarkers','formatInline:','markInsertion','_findSuggestions','isLimit','createdAt','formatInline','_model','trackChangesCommand'];(function(_0x3c7776,_0x1f4be2){const _0x3efbe6=function(_0x199e00){while(--_0x199e00){_0x3c7776['push'](_0x3c7776['shift']());}};_0x3efbe6(++_0x1f4be2);}(_0x1f4b,0x162));const _0x3efb=function(_0x3c7776,_0x1f4be2){_0x3c7776=_0x3c7776-0x0;let _0x3efbe6=_0x1f4b[_0x3c7776];return _0x3efbe6;};import{Plugin as _0x54a62b,PendingActions as _0x48441d}from'ckeditor5/src/core';import{LiveRange as _0x12e3b7}from'ckeditor5/src/engine';import{CKEditorError as _0x432566,uid as _0x12ed5b,priorities as _0x5b5f35,logWarning as _0x31de96}from'ckeditor5/src/utils';import{toWidget as _0x1d702e}from'ckeditor5/src/widget';import{Users as _0x2649a1,hashObject as _0x90c1fd}from'ckeditor5-collaboration/src/collaboration-core';import _0x5b9ffa from'./commands/trackchangescommand';import _0x18aa3d from'./commands/acceptsuggestioncommand';import _0x202999 from'./commands/discardsuggestioncommand';import _0x12b9bb from'./commands/executeonallsuggestionscommand';import _0x43fd6b from'./commands/executeonselectedsuggestionscommand';import _0x3dc7ba from'./suggestion';import _0x33188 from'./suggestiondescriptionfactory';import _0x51c9f7 from'./integrations/alignment';import _0x47e73d from'./integrations/basicstyles';import _0x2bfa37 from'./integrations/blockquote';import _0xd5bee3 from'./integrations/ckbox';import _0x1e5bf2 from'./integrations/codeblock';import _0x1cc7a5 from'./integrations/comments';import _0x335098 from'./integrations/deletecommand';import _0x50b682 from'./integrations/documentlist';import _0x50d510 from'./integrations/entercommand';import _0x2294a4 from'./integrations/findandreplace';import _0x2e30f0 from'./integrations/font';import _0x336a90 from'./integrations/heading';import _0x1ce02d from'./integrations/highlight';import _0x247a18 from'./integrations/horizontalline';import _0x1ca3a2 from'./integrations/htmlembed';import _0x3350fd from'./integrations/image';import _0x1078a9 from'./integrations/imagereplace';import _0x520029 from'./integrations/importword';import _0x5b17dc from'./integrations/indent';import _0x279555 from'./integrations/inputcommand';import _0x452169 from'./integrations/link';import _0x4e958c from'./integrations/list';import _0x262d69 from'./integrations/listproperties';import _0x59ec00 from'./integrations/mediaembed';import _0x17df65 from'./integrations/mention';import _0x9adfa1 from'./integrations/pagebreak';import _0x2ef849 from'./integrations/paragraph';import _0x42e5b8 from'./integrations/removeformat';import _0x2f3694 from'./integrations/restrictededitingmode';import _0x50bac0 from'./integrations/shiftentercommand';import _0x4c1ead from'./integrations/standardeditingmode';import _0x49f051 from'./integrations/style';import _0x29b48d from'./integrations/table';import _0x4b981d from'./integrations/tablemergesplit';import _0xc4c037 from'./integrations/tableheadings';import _0x59568e from'./integrations/tableclipboard';import _0x18bec1 from'./integrations/tablecolumnresize';import _0xb4dd03 from'./integrations/title';import _0x934692 from'./integrations/undo';import{getTranslation as _0x7f5023}from'./utils/common-translations';import _0x247bed from'./integrations/tablecaption';import _0x4b1b85 from'./integrations/documentlistproperties';import _0x35a5c5 from'./integrations/tableproperties';export default class p extends _0x54a62b{static get['requires'](){return[_0x3efb('0x87'),_0x2649a1,_0x48441d,_0x51c9f7,_0x47e73d,_0x2bfa37,_0xd5bee3,_0x1e5bf2,_0x1cc7a5,_0x335098,_0x50b682,_0x4b1b85,_0x50d510,_0x2294a4,_0x2e30f0,_0x336a90,_0x1ce02d,_0x247a18,_0x1ca3a2,_0x3350fd,_0x1078a9,_0x520029,_0x5b17dc,_0x279555,_0x452169,_0x4e958c,_0x262d69,_0x59ec00,_0x17df65,_0x9adfa1,_0x2ef849,_0x42e5b8,_0x2f3694,_0x50bac0,_0x4c1ead,_0x49f051,_0x29b48d,_0x4b981d,_0xc4c037,_0x247bed,_0x59568e,_0x18bec1,_0x35a5c5,_0xb4dd03,_0x934692];}static get[_0x3efb('0x12a')](){return _0x3efb('0x3a');}constructor(_0x1ecfb9){function _0x1a5ce8(_0x26f1ce){return _0x26f1ce['map'](_0x47df87=>String[_0x3efb('0x85')](_0x47df87))[_0x3efb('0x31')]('');}super(_0x1ecfb9),this[_0x3efb('0x101')](_0x3efb('0x119'),[]),this['on'](_0x3efb('0x86'),(_0x1a2ee3,_0x471421,_0xed941f,_0x16fff3)=>{this['_model'][_0x3efb('0x90')](()=>{for(const _0xa8e691 of[..._0x16fff3,..._0xed941f])this[_0x3efb('0x120')][_0x3efb('0x3e')]['has'](_0xa8e691)&&_0x1ecfb9['editing'][_0x3efb('0xcd')](_0xa8e691);});}),this[_0x3efb('0x102')]=new _0x33188(this[_0x3efb('0xc5')]['model'][_0x3efb('0x94')],this[_0x3efb('0xc5')][_0x3efb('0xe8')]),this[_0x3efb('0xe4')]=null,this[_0x3efb('0xa3')]=new vt(this['editor']),this[_0x3efb('0xb3')]=new Map(),this[_0x3efb('0x78')]=_0x1ecfb9[_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0x87')),this[_0x3efb('0x88')]=new Set(),this[_0x3efb('0x120')]=this[_0x3efb('0xc5')][_0x3efb('0x9b')],this[_0x3efb('0x100')]=new WeakMap(),this[_0x3efb('0xf8')]=!0x1,_0x1ecfb9[_0x3efb('0x1c')][_0x3efb('0xaf')](_0x3efb('0xc7'),!0x0),this['_trackFormatChanges']=_0x1ecfb9[_0x3efb('0x1c')][_0x3efb('0x107')](_0x3efb('0xc7')),this[_0x3efb('0x121')]=new _0x5b9ffa(_0x1ecfb9,this[_0x3efb('0x88')]),this[_0x1a5ce8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1a5ce8([0x34,0x30,0x34,0x36,0x30,0x38,0x31,0x30]);}[_0x3efb('0x24')](){const _0xbb5404=this[_0x3efb('0xc5')];_0xbb5404['conversion']['for'](_0x3efb('0xd6'))['markerToHighlight']({'model':'suggestion','view':_0x416c37=>{const {id:_0x2d2612,type:_0x246627}=this[_0x3efb('0xfd')](_0x416c37['markerName']),_0x27636f=['ck-suggestion-marker',_0x3efb('0xc0')+_0x246627];let _0x29eb1f=0xbb8;return this[_0x3efb('0x119')]['includes'](_0x416c37['markerName'])&&(_0x27636f[_0x3efb('0x104')]('ck-suggestion-marker--active'),_0x29eb1f=0xbc2),_0x3efb('0xec')==_0x246627&&(_0x29eb1f+=0x5),{'classes':_0x27636f,'attributes':{'data-suggestion':_0x2d2612},'priority':_0x29eb1f};}}),_0xbb5404[_0x3efb('0x28')]['for']('dataDowncast')[_0x3efb('0x13')](_0x3cf618=>{_0x3cf618['on'](_0x3efb('0xf6'),(_0x4c168a,_0x3e9d7b,_0x1d1ef3)=>{if(!_0x1d1ef3[_0x3efb('0x13c')][_0x3efb('0x136')])return;const _0x52b217=_0x3e9d7b[_0x3efb('0x10c')];if(!_0x52b217)return;const _0x1b60c4=_0x1d1ef3[_0x3efb('0xfe')][_0x3efb('0xd2')](_0x52b217);_0xbb5404[_0x3efb('0x9b')]['schema'][_0x3efb('0x1d')](_0x52b217)&&_0x1b60c4&&!_0x1b60c4['getCustomProperty'](_0x3efb('0x10e'))&&_0x1b60c4['is'](_0x3efb('0xde'))&&_0x1d702e(_0x1b60c4,_0x1d1ef3['writer']);},{'priority':_0x3efb('0xe2')});}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0xa8'))[_0x3efb('0xae')]({'model':_0x3efb('0x12d'),'view':(_0x4e6933,_0x1b8993)=>{if(!_0x1b8993['options']['showSuggestionHighlights'])return null;const {type:_0x24e4a0}=this[_0x3efb('0xfd')](_0x4e6933['markerName']);return{'classes':[_0x3efb('0x132'),_0x3efb('0xc0')+_0x24e4a0],'priority':0xbb8};}});const _0x480bfc=({showActiveMarkers:_0x2bc0a6=!0x0}={})=>(_0x2c8e14,_0x3c0661,_0x100171)=>{if(!_0x3c0661['item'])return;if(_0x3c0661[_0x3efb('0x10c')]['is'](_0x3efb('0x5f')))return void _0x100171[_0x3efb('0x8e')][_0x3efb('0x106')](_0x3c0661[_0x3efb('0x10c')],_0x2c8e14['name']);const _0x106715=_0x100171[_0x3efb('0xfe')][_0x3efb('0xd2')](_0x3c0661['item']);if(!(_0x3c0661[_0x3efb('0x10c')]['is'](_0x3efb('0xf2'))&&_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x94')][_0x3efb('0x2a')](_0x3c0661[_0x3efb('0x10c')])&&!_0x106715[_0x3efb('0x5d')](_0x3efb('0x4a'))))return;const {id:_0x2beb51}=this[_0x3efb('0xfd')](_0x3c0661[_0x3efb('0x50')]);_0x100171[_0x3efb('0xd7')][_0x3efb('0x27')](['ck-suggestion-marker',_0x3efb('0xb9')],_0x106715),_0x100171[_0x3efb('0xd7')][_0x3efb('0x71')](_0x3efb('0xef'),_0x2beb51,_0x106715),_0x100171[_0x3efb('0xfe')]['bindElementToMarker'](_0x106715,_0x3c0661[_0x3efb('0x50')]),_0x2bc0a6&&(this['activeMarkers']['includes'](_0x3c0661[_0x3efb('0x50')])?_0x100171[_0x3efb('0xd7')][_0x3efb('0x27')](_0x3efb('0xc4'),_0x106715):_0x100171[_0x3efb('0xd7')][_0x3efb('0x4e')](_0x3efb('0xc4'),_0x106715));for(const _0xf0124 of _0xbb5404['model'][_0x3efb('0x20')](_0x3c0661['item'])[_0x3efb('0x53')]())_0x100171[_0x3efb('0x8e')]['consume'](_0xf0124,_0x2c8e14[_0x3efb('0x9c')]);_0x100171[_0x3efb('0x8e')]['consume'](_0x3c0661[_0x3efb('0x10c')],_0x2c8e14[_0x3efb('0x9c')]);};_0xbb5404['conversion'][_0x3efb('0x8d')](_0x3efb('0xa8'))[_0x3efb('0x13')](_0x322d9d=>{_0x322d9d['on'](_0x3efb('0x7e'),(_0xac62b,_0xe073d5,_0x3e1fc3)=>{_0x3e1fc3[_0x3efb('0x13c')]['showSuggestionHighlights']&&_0x480bfc({'showActiveMarkers':!0x1})(_0xac62b,_0xe073d5,_0x3e1fc3);},{'priority':_0x3efb('0xe5')});}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0xa8'))[_0x3efb('0x39')]({'model':_0x3efb('0x12d'),'view':(_0xfeae5,_0x264004)=>_0x264004[_0x3efb('0x13c')][_0x3efb('0x136')]?null:{'group':_0x3efb('0x12d'),'name':_0xfeae5[_0x3efb('0x135')]('suggestion'[_0x3efb('0x8f')]+0x1)}}),_0xbb5404[_0x3efb('0x28')]['for'](_0x3efb('0x45'))[_0x3efb('0x6c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2b7ea9,{writer:_0x2858f3})=>{let _0x2a2051=_0x3efb('0x82')+_0x2b7ea9[_0x3efb('0x138')]('suggestion-type')+':'+_0x2b7ea9[_0x3efb('0x138')]('id');return _0x2b7ea9['getAttribute'](_0x3efb('0x92'))&&(_0x2a2051+=':'+_0x2b7ea9[_0x3efb('0x138')](_0x3efb('0x92'))),_0x2858f3[_0x3efb('0x123')](_0x3efb('0x37'),{'data-name':_0x2a2051});}}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0x45'))[_0x3efb('0x61')]({'view':_0x3efb('0x12d')}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')](_0x3efb('0xd6'))[_0x3efb('0x13')](_0xe98f14=>{_0xe98f14['on'](_0x3efb('0x7e'),_0x480bfc(),{'priority':_0x3efb('0xe2')});}),_0xbb5404[_0x3efb('0x28')][_0x3efb('0x8d')]('editingDowncast')['add'](_0x2b6b5b=>{_0x2b6b5b['on'](_0x3efb('0xf7'),(_0x541c68,_0x3dd1bb,_0x57c00a)=>{const _0x5015fa=_0x57c00a[_0x3efb('0xfe')][_0x3efb('0x2')](_0x3dd1bb[_0x3efb('0x50')]);if(_0x5015fa)for(const _0x174768 of _0x5015fa)_0x174768[_0x3efb('0x5d')]('addHighlight')||(_0x57c00a[_0x3efb('0xd7')]['removeClass'](['ck-suggestion-marker',_0x3efb('0xb9'),_0x3efb('0xc4')],_0x174768),_0x57c00a[_0x3efb('0xd7')][_0x3efb('0x99')]('data-suggestion',_0x174768),_0x57c00a[_0x3efb('0xfe')][_0x3efb('0xa6')](_0x174768,_0x3dd1bb[_0x3efb('0x50')]));},{'priority':_0x3efb('0xe2')});}),_0xbb5404[_0x3efb('0x9b')]['document']['registerPostFixer'](_0x319324=>{let _0x2ad0a8=!0x1;const _0x4edd53=Array[_0x3efb('0x128')](_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xa1')][_0x3efb('0x73')][_0x3efb('0x30')]()),_0x33e9af=new Set();for(const {name:_0x4d421b,data:_0x3cc859}of _0x4edd53){const {group:_0x2356e6,type:_0x4a5db5,id:_0x54d2e6}=this[_0x3efb('0xfd')](_0x4d421b);if(_0x3efb('0x12d')!==_0x2356e6)continue;const _0x83383b=this[_0x3efb('0xb3')]['get'](_0x54d2e6);if(null!=_0x3cc859[_0x3efb('0x4f')]){'formatInline'==_0x4a5db5&&(_0x2ad0a8=_0x2ad0a8||Ct(_0x3cc859[_0x3efb('0x4f')],_0x4d421b,_0x319324,_0xbb5404['model'][_0x3efb('0x94')]));if(_0x3cc859[_0x3efb('0x4f')][_0x3efb('0x9d')]||_0x3efb('0x103')==_0x3cc859['newRange']['root'][_0x3efb('0xb8')]||_0x3efb('0x1a')==_0x4a5db5&&!_t(_0x3cc859[_0x3efb('0x4f')])||'deletion'==_0x4a5db5&&!(!Dt(_0x4476a8=_0x3cc859[_0x3efb('0x4f')])&&!function(_0xd64297){return _0xd64297[_0x3efb('0x115')][_0x3efb('0x5e')]==_0xd64297[_0x3efb('0x112')]['nodeBefore']&&_0xd64297['start'][_0x3efb('0x14')];}(_0x4476a8)))_0x319324[_0x3efb('0x69')](_0x4d421b),_0x2ad0a8=!0x0;else{if(!_0x83383b||!_0x83383b['isInContent'])continue;_0x33e9af['add'](_0x83383b);}}}var _0x4476a8;return _0x33e9af[_0x3efb('0x2d')]>0x0&&(_0x2ad0a8=!!this['_joinWithAdjacentSuggestions'](_0x33e9af)||_0x2ad0a8),_0x2ad0a8;}),_0xbb5404[_0x3efb('0x9b')]['document'][_0x3efb('0x81')](_0x1a24c9=>{let _0x4f5b34=!0x1;for(const _0x4d05a7 of _0xbb5404[_0x3efb('0x9b')][_0x3efb('0xa1')][_0x3efb('0x73')]['getChanges']()){if(_0x3efb('0x117')!=_0x4d05a7[_0x3efb('0x64')])continue;const _0x428ad4=_0x4d05a7['position'][_0x3efb('0x141')](_0x4d05a7[_0x3efb('0x8f')]);if(_0x428ad4[_0x3efb('0x14')])for(const _0x44394e of this['_suggestions']['values']()){if(_0x44394e['isMultiRange']||!_0x44394e[_0x3efb('0xad')])continue;if(_0x3efb('0x1a')!=_0x44394e[_0x3efb('0x64')])continue;const _0x1d2a76=_0x44394e['getFirstRange']();if(_0x1d2a76['start'][_0x3efb('0x5e')]!=_0x1d2a76[_0x3efb('0x112')][_0x3efb('0x5e')]&&_0x1d2a76['end'][_0x3efb('0x6b')](_0x4d05a7[_0x3efb('0x3d')])){const _0x35161a=_0xbb5404['model']['createRange'](_0x1d2a76[_0x3efb('0x115')],_0x428ad4);_0x1a24c9[_0x3efb('0x3b')](_0x44394e[_0x3efb('0x49')](),{'range':_0x35161a}),_0x4f5b34=!0x0;}}}return _0x4f5b34;}),_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x3e')]['on'](_0x3efb('0xd9'),(_0x4ffdda,_0x5bec42,_0x2f6424)=>{if(null==_0x2f6424){const {id:_0x3df6b8}=this[_0x3efb('0xfd')](_0x5bec42[_0x3efb('0x9c')]),_0x14597c=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x3df6b8);_0x14597c&&_0x14597c['addMarkerName'](_0x5bec42[_0x3efb('0x9c')]);}}),_0xbb5404[_0x3efb('0x9b')]['document']['on']('change:data',()=>{const _0xb5a694=Array[_0x3efb('0x128')](_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xa1')]['differ'][_0x3efb('0x30')]())[_0x3efb('0x33')](_0x2180ed=>'suggestion'===this[_0x3efb('0xfd')](_0x2180ed[_0x3efb('0x9c')])[_0x3efb('0x60')]);if(0x0===_0xb5a694[_0x3efb('0x8f')])return;_0xb5a694[_0x3efb('0x11')]((_0xcccffb,_0xa4588c)=>{const _0x373dbc=_0xcccffb[_0x3efb('0x96')][_0x3efb('0xf0')],_0x2e3501=_0xa4588c[_0x3efb('0x96')][_0x3efb('0xf0')];return null===_0x373dbc&&null===_0x2e3501?0x0:null===_0x373dbc&&null!==_0x2e3501?-0x1:null!==_0x373dbc&&null===_0x2e3501?0x1:_0x373dbc[_0x3efb('0x115')][_0x3efb('0xcf')](_0x2e3501[_0x3efb('0x115')])?-0x1:0x1;});const _0x169c43=new Set(),_0x2de4da=new Set();for(const {name:_0x574137,data:_0xba5d92}of _0xb5a694){const {id:_0x5e191c}=this[_0x3efb('0xfd')](_0x574137);if(null===_0xba5d92[_0x3efb('0xf0')]){const _0x5b54ec=this[_0x3efb('0x137')](_0x574137);_0x2de4da['add'](_0x5b54ec);}else{const _0x21eb97=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x5e191c);null!==_0xba5d92[_0x3efb('0x4f')]||_0x21eb97[_0x3efb('0xad')]?(_0x169c43[_0x3efb('0x13')](_0x21eb97['head']),_0x2de4da[_0x3efb('0x13')](_0x21eb97)):this[_0x3efb('0x72')](_0x21eb97);}}_0x2de4da[_0x3efb('0x2d')]>0x0&&this[_0x3efb('0x122')](_0x2de4da);for(const _0x305afc of _0x169c43)this['fire'](_0x3efb('0x7c'),_0x305afc);}),_0xbb5404[_0x3efb('0x9b')]['on']('applyOperation',(_0x6f4382,_0x3365fa)=>{const _0x5bf7d6=_0x3365fa[0x0];if(!this[_0x3efb('0xb3')]['size'])return;if(!_0x5bf7d6[_0x3efb('0x6')])return;if(_0x5bf7d6['batch']['isUndo']||!_0x5bf7d6[_0x3efb('0xfa')][_0x3efb('0x42')])return;let _0x3c0ddf,_0x1cfa03;switch(_0x5bf7d6[_0x3efb('0x64')]){case _0x3efb('0x117'):_0x3c0ddf=_0xbb5404['model'][_0x3efb('0xcc')](_0x5bf7d6[_0x3efb('0x3d')]),_0x1cfa03=_0x3c0ddf['getShiftedBy'](_0x5bf7d6['howMany']);break;case _0x3efb('0xf4'):_0x3c0ddf=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xcc')](_0x5bf7d6[_0x3efb('0xc8')]),_0x1cfa03=_0xbb5404['model']['createPositionAt'](_0x5bf7d6[_0x3efb('0xca')]);break;case _0x3efb('0x26'):_0x3c0ddf=_0xbb5404[_0x3efb('0x9b')]['createPositionAt'](_0x5bf7d6['targetPosition']),_0x1cfa03=_0x3c0ddf[_0x3efb('0x141')](_0x5bf7d6[_0x3efb('0xdf')]);break;default:return;}const _0x5d7deb=_0xbb5404['model'][_0x3efb('0xb2')](_0x3c0ddf,_0x1cfa03);_0xbb5404[_0x3efb('0x9b')]['change'](()=>{for(const {suggestion:_0x123c5a,meta:_0x38a571}of this[_0x3efb('0x11c')](_0x5d7deb)){if(_0x123c5a[_0x3efb('0x35')])continue;if(_0x3efb('0x11f')==_0x123c5a[_0x3efb('0x64')])continue;const _0x693db7=_0x123c5a[_0x3efb('0x96')]&&_0x123c5a[_0x3efb('0x96')][_0x3efb('0xb6')];('formatBlock'!=_0x123c5a[_0x3efb('0x64')]||_0x3efb('0xf4')==_0x5bf7d6[_0x3efb('0x64')]&&!_0x693db7)&&(_0x38a571['containsRangeInObject']||'insertion'==_0x123c5a[_0x3efb('0x64')]&&_0x38a571['isOwn']||_0x123c5a['getFirstRange']()[_0x3efb('0x23')](_0x5d7deb)&&this[_0x3efb('0x5')](_0x123c5a,_0x3c0ddf,_0x1cfa03));}});},{'priority':_0x3efb('0x97')}),_0xbb5404[_0x3efb('0x9b')]['on'](_0x3efb('0x10'),(_0x317565,_0x7aaaef)=>{const _0x94526e=_0x7aaaef[0x0],_0x31b4d0=_0x7aaaef[0x1];if(_0x31b4d0&&_0x31b4d0[_0x3efb('0xbc')])return;if(this[_0x3efb('0xf8')])return;if(!this[_0x3efb('0x121')]['value'])return;if(_0x94526e['isCollapsed'])return;const _0x223897=_0xbb5404[_0x3efb('0x9b')]['schema'],{start:_0x4d2f29,end:_0x490ce8}=_0x94526e['getFirstRange'](),_0x5609ec=_0x4d2f29[_0x3efb('0x47')]&&_0x223897[_0x3efb('0x11d')](_0x4d2f29['nodeAfter'])?null:_0x223897[_0x3efb('0x13a')](_0x4d2f29,_0x3efb('0xd8')),_0x3488a7=_0x490ce8[_0x3efb('0x10d')]&&_0x223897[_0x3efb('0x11d')](_0x490ce8[_0x3efb('0x10d')])?null:_0x223897[_0x3efb('0x13a')](_0x490ce8,_0x3efb('0xc3')),_0x34c7d6=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xb2')](_0x5609ec?_0x5609ec['start']:_0x4d2f29,_0x3488a7?_0x3488a7['end']:_0x490ce8);_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x90')](_0x5cf0d6=>{this[_0x3efb('0x7f')](_0x34c7d6);const _0x118825=_0xbb5404[_0x3efb('0x9b')]['schema'][_0x3efb('0x13a')](_0x34c7d6[_0x3efb('0x115')]);_0x94526e['is'](_0x3efb('0x57'))?_0x5cf0d6['setSelection'](_0x118825):_0x94526e[_0x3efb('0x7')](_0x118825);}),_0x317565[_0x3efb('0x77')]();},{'priority':_0x5b5f35[_0x3efb('0xa9')]+0xa}),_0xbb5404[_0x3efb('0x9b')]['on'](_0x3efb('0xb5'),(_0x1b62a7,_0x3e4175)=>{const _0x527224=_0x3e4175[_0x3e4175[_0x3efb('0x8f')]-0x1];_0x527224&&_0x527224[_0x3efb('0xbc')]||this[_0x3efb('0xf8')]||this[_0x3efb('0x121')]['value']&&(_0xbb5404[_0x3efb('0x9b')][_0x3efb('0x90')](()=>{let _0xdea8f9=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xb5')](_0x3e4175[0x0],_0x3e4175[0x1],_0x3e4175[0x2],{'forceDefaultExecution':!0x0});if(!_0xdea8f9)return;_0x1b62a7['return']=_0xdea8f9[_0x3efb('0xeb')]();const _0x5b4ad1=_0xdea8f9[_0x3efb('0x112')][_0x3efb('0x10d')],_0x54ddc0=_0xbb5404[_0x3efb('0x9b')]['schema'];_0x5b4ad1&&_0x54ddc0[_0x3efb('0x2a')](_0x5b4ad1)&&!_0x54ddc0[_0x3efb('0x1d')](_0x5b4ad1)&&(_0xdea8f9=_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xb2')](_0xdea8f9[_0x3efb('0x115')],_0xbb5404[_0x3efb('0x9b')][_0x3efb('0xcc')](_0x5b4ad1,_0x3efb('0x112')))),this[_0x3efb('0x11b')](_0xdea8f9);}),_0x1b62a7['stop']());},{'priority':_0x3efb('0xe2')}),this[_0x3efb('0xc5')][_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0x95'),this[_0x3efb('0x121')]),this[_0x3efb('0x124')](_0x3efb('0x95'));const _0x2c2fa4=new _0x18aa3d(_0xbb5404,this[_0x3efb('0xb3')]);_0xbb5404['commands']['add'](_0x3efb('0xf9'),_0x2c2fa4),this[_0x3efb('0x124')](_0x3efb('0xf9'));const _0x16760a=new _0x202999(_0xbb5404,this[_0x3efb('0xb3')]);_0xbb5404[_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0xaa'),_0x16760a),this[_0x3efb('0x124')]('discardSuggestion'),_0xbb5404[_0x3efb('0x98')]['add'](_0x3efb('0xa5'),new _0x12b9bb(_0xbb5404,_0x2c2fa4,this[_0x3efb('0xb3')])),this[_0x3efb('0x124')](_0x3efb('0xa5')),_0xbb5404[_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0xb4'),new _0x12b9bb(_0xbb5404,_0x16760a,this[_0x3efb('0xb3')])),this[_0x3efb('0x124')]('discardAllSuggestions'),_0xbb5404[_0x3efb('0x98')]['add']('acceptSelectedSuggestions',new _0x43fd6b(_0xbb5404,_0x2c2fa4,this['_suggestions'])),this[_0x3efb('0x124')](_0x3efb('0x13d')),_0xbb5404[_0x3efb('0x98')][_0x3efb('0x13')](_0x3efb('0x8c'),new _0x43fd6b(_0xbb5404,_0x16760a,this[_0x3efb('0xb3')])),this[_0x3efb('0x124')](_0x3efb('0x8c'));const _0x4f7acc=_0xbb5404[_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0x87'));this[_0x3efb('0x58')](_0x4f7acc,_0x3efb('0x105'),(_0x5ef00b,{threadId:_0x283c20})=>{const _0x2f597d=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x283c20);_0x2f597d&&_0x2f597d['commentThread']&&0x1===_0x2f597d[_0x3efb('0xfb')]['length']&&this['_updateSuggestionData'](_0x283c20,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4f7acc,_0x3efb('0x68'),(_0x4cf17b,{threadId:_0x328401})=>{const _0x4bda75=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x328401);_0x4bda75&&_0x4bda75[_0x3efb('0xfb')]&&!_0x4bda75['commentThread']['length']&&this['_updateSuggestionData'](_0x328401,{'hasComments':!0x1});},{'priority':_0x3efb('0x48')});}set[_0x3efb('0x83')](_0x41f718){if(this['_adapter'])throw new _0x432566(_0x3efb('0x15'),this);this[_0x3efb('0xe4')]=_0x41f718;}get[_0x3efb('0x83')](){return this[_0x3efb('0xe4')];}['getSuggestions']({skipNotAttached:_0x2a02ea=!0x1,toJSON:_0x9780bb=!0x1}={}){const _0x359110=[];for(const _0x51c9b0 of this[_0x3efb('0xb3')][_0x3efb('0xf')]())_0x2a02ea&&!_0x51c9b0[_0x3efb('0xad')]||_0x359110[_0x3efb('0x104')](_0x51c9b0);return _0x9780bb?_0x359110[_0x3efb('0x3f')](_0x55c859=>_0x55c859[_0x3efb('0x91')]()):_0x359110;}['getSuggestion'](_0x133fd3){const _0x10cc36=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x133fd3);if(!_0x10cc36)throw new _0x432566(_0x3efb('0x13f'),this);return _0x10cc36;}[_0x3efb('0xd')](_0x28a820){return this['_suggestions'][_0x3efb('0x54')](_0x28a820);}['addSuggestionData'](_0x290320){const {authorId:_0x4cf31e,id:_0x9b206f,attributes:_0xe479cf}=_0x290320,[_0x4e0606,_0x548025]=_0x290320[_0x3efb('0x64')][_0x3efb('0xf4')](':'),_0x36cd90=this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x9b206f)||this[_0x3efb('0xe3')](_0x4e0606,_0x548025,_0x9b206f,_0x4cf31e,_0xe479cf);if(this[_0x3efb('0xd4')](_0x36cd90),this[_0x3efb('0x22')](_0x36cd90,_0x4e0606,_0x548025||null,_0x4cf31e),_0x36cd90[_0x3efb('0x11e')]=_0x290320['createdAt'],_0xe479cf&&_0xe479cf[_0x3efb('0xea')]){const _0x4d4a00=_0xe479cf[_0x3efb('0xea')],_0x2da367=this[_0x3efb('0x76')](_0x4d4a00[_0x3efb('0x84')]);_0x36cd90[_0x3efb('0x5a')]=_0x4d4a00['createdAt'],_0x36cd90[_0x3efb('0x110')]=_0x2da367,_0x36cd90[_0x3efb('0x59')]=!0x0;}else _0x36cd90['authoredAt']=_0x290320['createdAt'];switch(_0x290320[_0x3efb('0x96')]&&(_0x36cd90[_0x3efb('0x96')]=_0x290320['data']),_0x290320[_0x3efb('0x1f')]&&(_0x36cd90[_0x3efb('0x1f')]=_0x290320[_0x3efb('0x1f')]),this[_0x3efb('0xe4')]&&this[_0x3efb('0xe4')]['addSuggestion']||(_0x36cd90['_saved']=!0x0),this[_0x3efb('0x100')][_0x3efb('0x107')](_0x36cd90)){case _0x3efb('0x9'):this[_0x3efb('0x100')][_0x3efb('0x101')](_0x36cd90,'dataReady');break;case _0x3efb('0x55'):_0x36cd90[_0x3efb('0xad')]?(this[_0x3efb('0x100')][_0x3efb('0x101')](_0x36cd90,_0x3efb('0xb7')),this[_0x3efb('0xe9')](_0x3efb('0x130'),_0x36cd90)):this['_suggestionState'][_0x3efb('0x101')](_0x36cd90,'removed');}return _0x36cd90;}[_0x3efb('0xf9')](_0x51b2c0){this[_0x3efb('0xbc')](()=>{this[_0x3efb('0xc5')]['model'][_0x3efb('0x90')](()=>{for(const _0x502275 of _0x51b2c0['getAllAdjacentSuggestions']())_0x502275['accept']();});});}[_0x3efb('0xaa')](_0x3226cc){this[_0x3efb('0xbc')](()=>{this[_0x3efb('0xc5')][_0x3efb('0x9b')][_0x3efb('0x90')](()=>{for(const _0x28f4dd of _0x3226cc[_0x3efb('0x4b')]())_0x28f4dd[_0x3efb('0xf3')]();});});}[_0x3efb('0x124')](_0x11afeb,_0x34911c){const _0x5419a2=this['editor'][_0x3efb('0x98')]['get'](_0x11afeb);if(!_0x5419a2)throw new _0x432566(_0x3efb('0x3c'),this,{'commandName':_0x11afeb});this[_0x3efb('0x88')][_0x3efb('0x13')](_0x5419a2),_0x34911c&&_0x5419a2['on'](_0x3efb('0x79'),(_0x321f5b,_0xecdfaa)=>{this[_0x3efb('0x121')][_0x3efb('0x127')]&&(this[_0x3efb('0xf8')]||_0xecdfaa[_0x3efb('0x8f')]>0x0&&_0xecdfaa[_0xecdfaa['length']-0x1]&&_0xecdfaa[_0xecdfaa[_0x3efb('0x8f')]-0x1][_0x3efb('0xbc')]||(_0x34911c((..._0x4f1a1b)=>_0x5419a2[_0x3efb('0x79')](..._0x4f1a1b,{'forceDefaultExecution':!0x0}),..._0xecdfaa),_0x321f5b[_0x3efb('0x77')]()));},{'priority':_0x3efb('0xe2')});}[_0x3efb('0xbc')](_0x3753a3){let _0x3581df,_0xae0283;const _0xb39b65=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3581df=_0x3753a3();}catch(_0x1435bb){_0xae0283=_0x1435bb;}return _0xb39b65||(this[_0x3efb('0xf8')]=!0x1),_0xae0283&&_0x432566[_0x3efb('0x134')](_0xae0283,this),_0x3581df;}[_0x3efb('0x11b')](_0x159cc8,_0x5bb94a=null,_0x5d6819={}){if(_0x159cc8[_0x3efb('0x9d')])return null;const _0x48da84=this['editor'][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'];for(const {suggestion:_0x3e6963,meta:_0x3b805f}of this[_0x3efb('0x11c')](_0x159cc8,_0x3efb('0xe')))if(_0x3b805f['isOwn']){if(!_0x3b805f['isNextTo'])return _0x3e6963;if(_0x5bb94a==_0x3e6963['subType']){const _0x45c522=_0x3e6963[_0x3efb('0x8b')]();return _0x45c522['start'][_0x3efb('0x6b')](_0x159cc8['end'])?this[_0x3efb('0xdc')](_0x3e6963,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x159cc8[_0x3efb('0x115')],_0x45c522['end'])):this[_0x3efb('0xdc')](_0x3e6963,this['_model'][_0x3efb('0xb2')](_0x45c522['start'],_0x159cc8['end'])),_0x3e6963;}}const _0xd6e2f6=_0x12ed5b(),_0x4cd580=_0x48da84['id'],_0x279395=_0x5bb94a?_0x3efb('0xcb')+_0x5bb94a:_0x3efb('0xe'),_0x542580=this[_0x3efb('0xda')]({'id':_0xd6e2f6,'type':_0x279395,'createdAt':new Date(),'authorId':_0x4cd580,'attributes':_0x5d6819});return this[_0x3efb('0x52')](_0x279395,_0xd6e2f6,_0x4cd580,_0x159cc8),_0x542580;}[_0x3efb('0xff')](_0x57830c,_0x36baaf=_0x3efb('0xc1'),_0x50702b={}){const _0x1549e9=this['editor'][_0x3efb('0x29')]['get'](_0x3efb('0xbe'))['me'],_0x162384=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xe'),_0x36baaf,'join');for(const _0x12e156 of this[_0x3efb('0xa7')]())if(_0x12e156[_0x3efb('0x110')]['id']==_0x1549e9['id']&&_0x3efb('0xe')==_0x12e156[_0x3efb('0x64')]&&_0x12e156[_0x3efb('0x1')]==_0x36baaf&&(_0x162384(_0x12e156[_0x3efb('0x10f')](),_0x57830c)||_0x162384(_0x57830c,_0x12e156['getRanges']()))){for(const _0x19abe0 of _0x57830c)_0x12e156[_0x3efb('0x89')](_0x19abe0);return _0x12e156;}for(const _0x42242b of _0x57830c)for(const {suggestion:_0x418b53,meta:_0x6eedaf}of this['_findSuggestions'](_0x42242b,_0x3efb('0xe'))){if(!_0x6eedaf[_0x3efb('0xd5')])continue;let _0x359366=!0x0;for(const _0x2d7e5e of _0x418b53[_0x3efb('0x10f')]())for(const _0x574628 of _0x57830c)if(!_0x2d7e5e[_0x3efb('0x23')](_0x574628)){_0x359366=!0x1;break;}if(_0x359366)return _0x418b53;}const _0xa5cd60=_0x12ed5b(),_0x519a55=_0x1549e9['id'],_0x4fae54=_0x3efb('0xcb')+_0x36baaf,_0x3fa664=this[_0x3efb('0xda')]({'id':_0xa5cd60,'type':_0x4fae54,'createdAt':new Date(),'authorId':_0x519a55,'attributes':_0x50702b});for(const _0x4700d5 of _0x57830c)this[_0x3efb('0x52')](_0x4fae54,_0xa5cd60,_0x519a55,_0x4700d5,_0x3dc7ba['getMultiRangeId']());return _0x3fa664;}[_0x3efb('0xba')](_0x2a362f,_0x35500f,_0x21fb2b=null,_0x2e24e={}){if(_0x21fb2b=_0x21fb2b||Bt(_0x35500f),_0x2a362f[_0x3efb('0x9d')])return null;if(!0x1===this['_trackFormatChanges']){const _0x2df912=this[_0x3efb('0xa3')]['getSuggestionCallback']('formatInline',_0x21fb2b,'accept');return this['forceDefaultExecution'](()=>_0x2df912([_0x2a362f],_0x35500f,_0x2e24e)),null;}const _0x41f9ea=this['editor'][_0x3efb('0x29')]['get'](_0x3efb('0xbe'))['me'],_0x3788cb=[];for(const {suggestion:_0x5ebac3,meta:_0x1dd071}of this[_0x3efb('0x11c')](_0x2a362f,_0x3efb('0xe')))_0x1dd071['isOwn']&&!_0x1dd071['isInsideObject']&&_0x3788cb[_0x3efb('0x104')](..._0x5ebac3['getRanges']());const _0x56ed5d=function(_0x293e58,_0x4ec7c1){const _0x52b466=[];for(const _0x232849 of _0x4ec7c1){const _0xe08c3a=_0x293e58[_0x3efb('0x21')](_0x232849);_0xe08c3a&&_0x52b466[_0x3efb('0x104')](_0xe08c3a);}return _0x52b466;}(_0x2a362f,_0x3788cb),_0x9f896a=function(_0x3cf7ea,_0x565437){const _0x1719c2=[_0x3cf7ea];for(const _0x42e6cb of _0x565437){let _0x153bce=0x0;for(;_0x153bce<_0x1719c2[_0x3efb('0x8f')];){const _0x57c475=_0x1719c2[_0x153bce]['getDifference'](_0x42e6cb);_0x1719c2['splice'](_0x153bce,0x1,..._0x57c475),_0x153bce+=_0x57c475[_0x3efb('0x8f')];}}return _0x1719c2;}(_0x2a362f,_0x3788cb);_0x56ed5d[_0x3efb('0x8f')]&&this['_model'][_0x3efb('0x90')](()=>{for(const _0x2777ef of _0x56ed5d){const _0x32c2c4=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x11f'),_0x21fb2b,_0x3efb('0x62'));this[_0x3efb('0xbc')](()=>_0x32c2c4([_0x2777ef],_0x35500f,_0x2e24e));}});for(const _0x10fee5 of _0x9f896a){let _0x28691c=null,_0x176eec=_0x10fee5[_0x3efb('0x115')],_0x13bd72=_0x10fee5[_0x3efb('0x112')];for(const {suggestion:_0x41265d,meta:_0x577adb}of this[_0x3efb('0x11c')](_0x10fee5,_0x3efb('0x11f'))){if(!_0x577adb[_0x3efb('0xd5')])continue;if(_0x41265d[_0x3efb('0x1')]!=_0x21fb2b)continue;const _0x224c51=_0x41265d['getFirstRange']();if(_0x224c51[_0x3efb('0x23')](_0x10fee5,!0x0))return null;_0x176eec=_0x176eec[_0x3efb('0xcf')](_0x224c51[_0x3efb('0x115')])?_0x176eec:_0x224c51[_0x3efb('0x115')],_0x13bd72=_0x13bd72[_0x3efb('0x8')](_0x224c51[_0x3efb('0x112')])?_0x13bd72:_0x224c51[_0x3efb('0x112')],_0x28691c?_0x224c51['start'][_0x3efb('0xcf')](_0x28691c['getFirstRange']()[_0x3efb('0x115')])?(_0x28691c[_0x3efb('0xe0')](),_0x28691c=_0x41265d):_0x41265d[_0x3efb('0xe0')]():_0x28691c=_0x41265d;}const _0x3da723=this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x176eec,_0x13bd72);if(_0x28691c)this[_0x3efb('0xdc')](_0x28691c,_0x3da723);else{const _0x4e504c=_0x12ed5b(),_0x399052=_0x41f9ea['id'];this[_0x3efb('0xda')]({'id':_0x4e504c,'type':'formatInline:'+_0x21fb2b,'data':_0x35500f,'createdAt':new Date(),'authorId':_0x399052,'attributes':_0x2e24e}),this['_addSuggestionMarker'](_0x3efb('0x11a')+_0x21fb2b,_0x4e504c,_0x399052,_0x3da723);}}return null;}[_0x3efb('0xbb')](_0x78b217,_0x51e39b,_0xdf292d=[],_0x2ca47d=null,_0x1aa9e4={}){_0x51e39b[_0x3efb('0x36')]||(_0x51e39b['formatGroupId']=_0x51e39b[_0x3efb('0x1b')]),_0x51e39b[_0x3efb('0xb6')]=_0x78b217['is'](_0x3efb('0x51')),_0x2ca47d=_0x2ca47d||Bt(_0x51e39b);const _0x138554=_0xdf292d[_0x3efb('0x3f')](_0xa5a418=>Mt(_0xa5a418,this[_0x3efb('0x120')])),_0x44d52d=_0x78b217['is'](_0x3efb('0x51'))?_0x78b217:Mt(_0x78b217,this[_0x3efb('0x120')]);if(!0x1===this[_0x3efb('0x140')]){const _0xb2ecc7=this[_0x3efb('0xa3')]['getSuggestionCallback'](_0x3efb('0x1a'),_0x2ca47d,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0xb2ecc7([_0x44d52d],_0x51e39b,_0x1aa9e4)),null;}_0x138554[_0x3efb('0x104')](_0x44d52d);let _0x5a9a52=!0x0;for(const _0x297646 of _0x138554)if(!this[_0x3efb('0x6a')](_0x297646)){_0x5a9a52=!0x1;break;}if(_0x5a9a52){const _0x1287d4=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x1a'),_0x2ca47d,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0x1287d4([_0x44d52d],_0x51e39b,_0x1aa9e4)),null;}let _0x5bcf8a=null,_0x5a32a5=_0x44d52d[_0x3efb('0x115')],_0x2f92a9=_0x44d52d[_0x3efb('0x112')];for(const {suggestion:_0x125473,meta:_0x5e1302}of this[_0x3efb('0x11c')](_0x44d52d,_0x3efb('0x1a'))){if(!_0x5e1302[_0x3efb('0xd5')]||_0x5e1302[_0x3efb('0x2b')]||_0x5e1302[_0x3efb('0x44')]||_0x5e1302['isInsideObject'])continue;if(_0x125473[_0x3efb('0x96')][_0x3efb('0x36')]!=_0x51e39b[_0x3efb('0x36')])continue;const _0x4dc0d1=_0x125473[_0x3efb('0x8b')]();if(_0x125473['subType']==_0x2ca47d){if(_0x4dc0d1[_0x3efb('0x23')](_0x44d52d,!0x0))return null;_0x5a32a5=_0x5a32a5[_0x3efb('0xcf')](_0x4dc0d1[_0x3efb('0x115')])?_0x5a32a5:_0x4dc0d1[_0x3efb('0x115')],_0x2f92a9=_0x2f92a9[_0x3efb('0x8')](_0x4dc0d1[_0x3efb('0x112')])?_0x2f92a9:_0x4dc0d1[_0x3efb('0x112')],_0x5bcf8a?_0x4dc0d1[_0x3efb('0x115')][_0x3efb('0xcf')](_0x5bcf8a[_0x3efb('0x8b')]()[_0x3efb('0x115')])?(_0x5bcf8a['removeMarkers'](),_0x5bcf8a=_0x125473):_0x125473[_0x3efb('0xe0')]():_0x5bcf8a=_0x125473;}else{const _0x106548=_0x44d52d[_0x3efb('0x21')](_0x4dc0d1);this[_0x3efb('0x70')](_0x125473,_0x106548);}}const _0x3698b9=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'],_0x22f5f0=_0x12ed5b(),_0x423bb4=_0x3698b9['id'];if(_0x5bcf8a)return this[_0x3efb('0xdc')](_0x5bcf8a,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x5a32a5,_0x2f92a9)),_0x5bcf8a;{const _0x59c998=this[_0x3efb('0xda')]({'id':_0x22f5f0,'type':_0x3efb('0x2c')+_0x2ca47d,'data':_0x51e39b,'createdAt':new Date(),'authorId':_0x423bb4,'attributes':_0x1aa9e4});return this[_0x3efb('0x52')](_0x3efb('0x2c')+_0x2ca47d,_0x22f5f0,_0x423bb4,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x5a32a5,_0x2f92a9)),_0x59c998;}}[_0x3efb('0x40')](_0x1625d6,_0xac4414,_0x27c7a6=[],_0x31b289=null,_0x5ad86b={}){_0xac4414[_0x3efb('0x36')]||(_0xac4414['formatGroupId']=_0xac4414[_0x3efb('0x1b')]);const _0x3ce1bf=_0x1625d6[0x0];_0xac4414[_0x3efb('0xb6')]=_0x3ce1bf['is'](_0x3efb('0x51')),_0x31b289=_0x31b289||Bt(_0xac4414);const _0x309974=_0x27c7a6[_0x3efb('0x3f')](_0x2a2590=>Mt(_0x2a2590,this[_0x3efb('0x120')])),_0x483342=_0x3ce1bf['is'](_0x3efb('0x51'))?_0x1625d6:_0x1625d6['map'](_0x42b417=>Mt(_0x42b417,this[_0x3efb('0x120')]));if(!0x1===this[_0x3efb('0x140')]){const _0x33a868=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x1a'),_0x31b289,_0x3efb('0x62'));return this['forceDefaultExecution'](()=>_0x33a868(_0x483342,_0xac4414,_0x5ad86b)),null;}_0x309974['push'](..._0x483342);let _0x1a0645=!0x0;for(const _0x766f65 of _0x309974)if(!this['_rangeIsInLocalUserInsertion'](_0x766f65)){_0x1a0645=!0x1;break;}if(_0x1a0645){const _0x1e5402=this['_suggestionFactory']['getSuggestionCallback'](_0x3efb('0x1a'),_0x31b289,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0x1e5402(_0x483342,_0xac4414,_0x5ad86b)),null;}const _0x14f0c8=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'];for(const _0x310ae0 of this[_0x3efb('0xa7')]()){if(_0x310ae0[_0x3efb('0x110')]['id']!=_0x14f0c8['id'])continue;if('formatBlock'!=_0x310ae0[_0x3efb('0x64')]||_0x310ae0[_0x3efb('0x96')][_0x3efb('0x36')]!=_0xac4414['formatGroupId'])continue;const _0x23854b=_0x310ae0[_0x3efb('0x1')]==_0x31b289;for(let _0x41948d=0x0;_0x41948d<_0x483342['length'];_0x41948d++){const _0x2ca757=_0x483342[_0x41948d];for(const _0x38a26e of _0x310ae0[_0x3efb('0x4c')]()){const _0x14418b=_0x38a26e[_0x3efb('0xf1')]();if(_0x2ca757[_0x3efb('0x6b')](_0x14418b)){_0x23854b?(_0x483342[_0x3efb('0x0')](_0x41948d,0x1),_0x41948d--):_0x310ae0[_0x3efb('0x69')](_0x38a26e[_0x3efb('0x9c')]);break;}}}}if(0x0==_0x483342['length'])return null;const _0x3f4118=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0x1a'),_0x31b289,'join');for(const _0xc3b937 of this[_0x3efb('0xa7')]())if(_0xc3b937[_0x3efb('0x110')]['id']==_0x14f0c8['id']&&_0x3efb('0x1a')==_0xc3b937['type']&&_0xc3b937[_0x3efb('0x96')]['formatGroupId']==_0xac4414[_0x3efb('0x36')]&&_0xc3b937[_0x3efb('0x1')]==_0x31b289&&(_0x3f4118(_0xc3b937[_0x3efb('0x10f')](),_0x483342)||_0x3f4118(_0x483342,_0xc3b937['getRanges']()))){for(const _0x3030b3 of _0x483342)_0xc3b937[_0x3efb('0x89')](_0x3030b3);return _0xc3b937;}const _0x4be4ad=_0x12ed5b(),_0x35bb21=_0x14f0c8['id'],_0xd3fb25=_0x3efb('0x2c')+_0x31b289,_0x40b036=this[_0x3efb('0xda')]({'id':_0x4be4ad,'type':_0xd3fb25,'data':_0xac4414,'createdAt':new Date(),'authorId':_0x35bb21,'attributes':_0x5ad86b});for(const _0x214457 of _0x483342)this[_0x3efb('0x52')](_0xd3fb25,_0x4be4ad,_0x35bb21,_0x214457,_0x3dc7ba['getMultiRangeId']());return _0x40b036;}[_0x3efb('0x7f')](_0x5bc7a1,_0x77bf20=null,_0x21d785={}){if(_0x5bc7a1[_0x3efb('0x9d')])return null;const _0x5b5319=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'],_0x1b57d8=new _0x12e3b7(_0x5bc7a1[_0x3efb('0x115')],_0x5bc7a1[_0x3efb('0x112')]);for(const {suggestion:_0x7b47d,meta:_0x3cca66}of this[_0x3efb('0x11c')](_0x1b57d8,_0x3efb('0xe')))if(_0x3cca66['isOwn']&&!_0x3cca66[_0x3efb('0x2b')]){if(_0x7b47d[_0x3efb('0x35')]){const _0x2bde24=_0x7b47d[_0x3efb('0x10f')]()[_0x3efb('0x33')](_0x1a3278=>_0x3efb('0x103')!=_0x1a3278['root'][_0x3efb('0xb8')]);_0x2bde24[_0x3efb('0x75')](_0x491891=>_0x1b57d8[_0x3efb('0x23')](_0x491891,!0x0))&&_0x7b47d['discard']();if(_0x2bde24['some'](_0x7fdddc=>_0x7fdddc[_0x3efb('0x23')](_0x1b57d8,!0x0))){const _0x5605c9=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xec'),_0x77bf20,_0x3efb('0x62'));return this['forceDefaultExecution'](()=>_0x5605c9([_0x1b57d8],null,_0x21d785)),null;}}else{const _0x309709=_0x1b57d8['getIntersection'](_0x7b47d['getFirstRange']());_0x7b47d[_0x3efb('0x9e')]([_0x309709],null,_0x21d785);}}if(_0x1b57d8['detach'](),_0x1b57d8['isCollapsed']||_0x3efb('0x103')==_0x1b57d8[_0x3efb('0x67')][_0x3efb('0xb8')])return null;let _0x5db28f=null,_0x39c5c7=_0x1b57d8[_0x3efb('0x115')],_0x2069c3=_0x1b57d8[_0x3efb('0x112')];for(const {suggestion:_0x5d71e4,meta:_0x220d13}of this[_0x3efb('0x11c')](_0x1b57d8,_0x3efb('0xec')))if(_0x220d13[_0x3efb('0xd5')]){if(_0x5d71e4['isMultiRange']){let _0x32ceae=!0x0;for(const _0x479fd1 of _0x5d71e4[_0x3efb('0x10f')]()){if(_0x479fd1[_0x3efb('0x23')](_0x1b57d8,!0x0))return _0x5d71e4;_0x1b57d8['containsRange'](_0x479fd1)||(_0x32ceae=!0x1);}_0x32ceae&&_0x5d71e4['discard']();}else{const _0x5d92a0=_0x5d71e4[_0x3efb('0x8b')]();if(_0x5d92a0['containsRange'](_0x1b57d8,!0x0))return _0x5d71e4;_0x39c5c7=_0x39c5c7[_0x3efb('0xcf')](_0x5d92a0[_0x3efb('0x115')])?_0x39c5c7:_0x5d92a0[_0x3efb('0x115')],_0x2069c3=_0x2069c3[_0x3efb('0x8')](_0x5d92a0['end'])?_0x2069c3:_0x5d92a0[_0x3efb('0x112')],_0x5db28f?_0x5d92a0[_0x3efb('0x115')][_0x3efb('0xcf')](_0x5db28f['getFirstRange']()[_0x3efb('0x115')])?(_0x5db28f[_0x3efb('0xe0')](),_0x5db28f=_0x5d71e4):_0x5d71e4[_0x3efb('0xe0')]():_0x5db28f=_0x5d71e4;}}if(_0x5db28f)return this[_0x3efb('0xdc')](_0x5db28f,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x39c5c7,_0x2069c3)),_0x5db28f;{const _0x3c6fae=_0x12ed5b(),_0x46d96d=this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x39c5c7,_0x2069c3),_0x345ca2=_0x5b5319['id'],_0x30589c=_0x77bf20?_0x3efb('0x5b')+_0x77bf20:'deletion',_0x2432ff=this[_0x3efb('0xda')]({'id':_0x3c6fae,'type':_0x30589c,'createdAt':new Date(),'authorId':_0x345ca2,'attributes':_0x21d785});return this[_0x3efb('0x52')](_0x30589c,_0x3c6fae,_0x345ca2,_0x46d96d),_0x2432ff;}}[_0x3efb('0xac')](_0x26f715,_0x21ad83=_0x3efb('0xc1'),_0x5037b7={}){const _0x3cf737=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')]('Users')['me'],_0x5dd690=_0x26f715[_0x3efb('0x3f')](_0x2c4a07=>new _0x12e3b7(_0x2c4a07[_0x3efb('0x115')],_0x2c4a07[_0x3efb('0x112')])),_0x205890=new Set();for(const _0x1ef275 of _0x5dd690)for(const {suggestion:_0x79cf10,meta:_0x459b53}of this[_0x3efb('0x11c')](_0x1ef275,'insertion'))_0x459b53['isOwn']&&!_0x459b53['isNextTo']&&_0x205890[_0x3efb('0x13')](_0x79cf10);for(const _0x4ce2ab of _0x205890)if(_0x4ce2ab[_0x3efb('0x35')]){const _0x1ff6e7=_0x4ce2ab['getRanges']();(!_0x4ce2ab[_0x3efb('0x1f')]||!_0x4ce2ab[_0x3efb('0x1f')]['skipNestingCheck'])&&(_0x1ff6e7['every'](_0x268972=>_0x5dd690['some'](_0x4db1ae=>_0x4db1ae['containsRange'](_0x268972,!0x0)))&&_0x4ce2ab[_0x3efb('0xf3')]());if(_0x5dd690[_0x3efb('0x75')](_0x1d0e6c=>_0x1ff6e7[_0x3efb('0x108')](_0x56780a=>_0x56780a[_0x3efb('0x23')](_0x1d0e6c,!0x0)))){const _0x3cb1b1=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xec'),_0x21ad83,'accept');return this[_0x3efb('0xbc')](()=>_0x3cb1b1(_0x26f715,null,_0x5037b7)),null;}}else{const _0x54c3f2=_0x4ce2ab[_0x3efb('0x8b')]();_0x5dd690[_0x3efb('0x108')](_0x2f3ced=>_0x2f3ced[_0x3efb('0x23')](_0x54c3f2,!0x0))&&_0x4ce2ab[_0x3efb('0xf3')]();if(_0x5dd690['every'](_0x202bc8=>_0x54c3f2[_0x3efb('0x23')](_0x202bc8,!0x0))){const _0x40585=this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x3efb('0xec'),_0x21ad83,_0x3efb('0x62'));return this[_0x3efb('0xbc')](()=>_0x40585(_0x5dd690,null,_0x5037b7)),null;}}const _0x3e2444=this[_0x3efb('0xa3')]['getSuggestionCallback'](_0x3efb('0xec'),_0x21ad83,_0x3efb('0x31'));let _0xc9d123=null;for(const _0x24c283 of this['getSuggestions']())if(_0x24c283[_0x3efb('0x110')]['id']==_0x3cf737['id']&&_0x24c283[_0x3efb('0xad')]&&_0x3efb('0xec')==_0x24c283[_0x3efb('0x64')]&&_0x24c283['subType']==_0x21ad83&&(_0x3e2444(_0x24c283['getRanges'](),_0x5dd690)||_0x3e2444(_0x5dd690,_0x24c283[_0x3efb('0x10f')]()))){if(_0xc9d123){if(_0x24c283[_0x3efb('0xfb')]&&_0x24c283[_0x3efb('0xfb')]['length'])continue;for(const _0xe34c9c of _0x24c283[_0x3efb('0x10f')]())_0xc9d123['isIntersectingWithRange'](_0xe34c9c)||_0xc9d123[_0x3efb('0x89')](_0xe34c9c);_0x24c283[_0x3efb('0xe0')]();}else{_0xc9d123=_0x24c283;for(const _0x4103e9 of _0x5dd690)_0x24c283['isIntersectingWithRange'](_0x4103e9)||_0x24c283[_0x3efb('0x89')](_0x4103e9);}}if(_0xc9d123)return _0xc9d123;_0x205890['clear']();for(const _0x1143d5 of _0x5dd690)for(const {suggestion:_0x85ee85,meta:_0x45c554}of this[_0x3efb('0x11c')](_0x1143d5,_0x3efb('0xec')))_0x45c554['isOwn']&&_0x205890[_0x3efb('0x13')](_0x85ee85);for(const _0x180121 of _0x205890){const _0x33608e=_0x180121[_0x3efb('0x10f')]();if(!_0x5037b7||!_0x5037b7[_0x3efb('0xdd')]){if(_0x5dd690[_0x3efb('0x75')](_0x5d60ae=>_0x33608e[_0x3efb('0x108')](_0x57c651=>_0x57c651[_0x3efb('0x23')](_0x5d60ae,!0x0))))return _0x180121;}(!_0x180121[_0x3efb('0x1f')]||!_0x180121['attributes'][_0x3efb('0xdd')])&&(_0x33608e[_0x3efb('0x75')](_0x5c8fe3=>_0x5dd690['some'](_0xdb5685=>_0xdb5685[_0x3efb('0x23')](_0x5c8fe3,!0x0)))&&_0x180121[_0x3efb('0xf3')]());}const _0x59b7f3=_0x12ed5b(),_0x438c5e=_0x3cf737['id'],_0x9ffadf=_0x3efb('0x5b')+_0x21ad83,_0x385b91=this[_0x3efb('0xda')]({'id':_0x59b7f3,'type':_0x9ffadf,'createdAt':new Date(),'authorId':_0x438c5e,'attributes':_0x5037b7});for(const _0x402ffd of _0x5dd690)_0x402ffd[_0x3efb('0x34')](),_0x402ffd[_0x3efb('0x9d')]||_0x3efb('0x103')==_0x402ffd[_0x3efb('0x67')][_0x3efb('0xb8')]||this[_0x3efb('0x52')](_0x9ffadf,_0x59b7f3,_0x438c5e,_0x402ffd,_0x3dc7ba[_0x3efb('0xb')]());return _0x385b91;}[_0x3efb('0xdc')](_0x41e377,_0x367b6a){const _0x379681=_0x41e377[_0x3efb('0x49')]();this[_0x3efb('0x120')][_0x3efb('0x90')](_0x400939=>{_0x400939[_0x3efb('0x3b')](_0x379681,{'range':_0x367b6a});});}[_0x3efb('0xd4')](_0x11fab9){const _0x3c7dfe=_0x11fab9['id'],_0x2ceb96=this[_0x3efb('0xc5')][_0x3efb('0x1c')][_0x3efb('0x107')]('collaboration.channelId');this[_0x3efb('0x78')][_0x3efb('0x126')](_0x3c7dfe)||this[_0x3efb('0x78')][_0x3efb('0x111')]({'channelId':_0x2ceb96,'threadId':_0x3c7dfe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x16090e=this[_0x3efb('0x78')][_0x3efb('0xc6')](_0x3c7dfe);_0x16090e['unbind']('isRemovable'),_0x16090e[_0x3efb('0xe7')]=!0x1,_0x11fab9[_0x3efb('0xfb')]=_0x16090e;}[_0x3efb('0x22')](_0x2af68c,_0x590e67,_0x5876ec,_0x19f21a){if(_0x2af68c[_0x3efb('0x64')]!=_0x590e67||_0x2af68c['subType']!=_0x5876ec||_0x2af68c[_0x3efb('0x43')]['id']!=_0x19f21a)throw this[_0x3efb('0xc5')][_0x3efb('0x13b')](_0x3efb('0x10a')),new _0x432566(_0x3efb('0x10a'),this);}[_0x3efb('0x70')](_0x3225c0,_0x2c342a){const _0x50666c=_0x3225c0[_0x3efb('0x8b')]();if(_0x2c342a[_0x3efb('0x6b')](_0x50666c))_0x3225c0[_0x3efb('0xe0')]();else{if(_0x50666c['containsRange'](_0x2c342a)){const _0x3e6353=this[_0x3efb('0x120')][_0x3efb('0xcc')](_0x2c342a[_0x3efb('0x115')]['nodeBefore'],'end');this[_0x3efb('0xdc')](_0x3225c0,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x50666c[_0x3efb('0x115')],_0x3e6353));const _0x49cf08=_0x12ed5b(),_0x67ed64=_0x3225c0[_0x3efb('0x43')]['id'],_0x1f8843=_0x3225c0[_0x3efb('0x64')]+':'+_0x3225c0['subType'];this[_0x3efb('0xda')]({'id':_0x49cf08,'type':_0x1f8843,'createdAt':new Date(),'authorId':_0x67ed64,'data':_0x3225c0[_0x3efb('0x96')],'attributes':_0x3225c0[_0x3efb('0x1f')]});const _0x2e9991=this[_0x3efb('0x120')]['createPositionAt'](_0x2c342a[_0x3efb('0x112')][_0x3efb('0x5e')],_0x3efb('0x41')),_0x294228=this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x2e9991,_0x50666c[_0x3efb('0x112')]);this[_0x3efb('0x52')](_0x1f8843,_0x49cf08,_0x67ed64,_0x294228);}else{if(_0x50666c[_0x3efb('0x13e')](_0x2c342a[_0x3efb('0x115')])){const _0x6e7938=this[_0x3efb('0x120')][_0x3efb('0xcc')](_0x2c342a[_0x3efb('0x115')]['nodeBefore'],_0x3efb('0x112'));this[_0x3efb('0xdc')](_0x3225c0,this[_0x3efb('0x120')]['createRange'](_0x50666c['start'],_0x6e7938));}else{const _0x4964eb=this[_0x3efb('0x120')][_0x3efb('0xcc')](_0x2c342a[_0x3efb('0x112')][_0x3efb('0x5e')],_0x3efb('0x41'));this[_0x3efb('0xdc')](_0x3225c0,this['_model'][_0x3efb('0xb2')](_0x4964eb,_0x50666c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x559133){for(const {suggestion:_0xda35a9,meta:_0x30d78f}of this[_0x3efb('0x11c')](_0x559133,_0x3efb('0xe'))){if(!_0x30d78f['isOwn'])continue;const _0x23e754=_0xda35a9['getRanges']();for(const _0x28aa0c of _0x23e754)if(!_0x559133['getDifference'](_0x28aa0c)[_0x3efb('0x8f')])return!0x0;}return!0x1;}[_0x3efb('0x46')](_0x31ecb3){const _0x1d2dd5=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))[_0x3efb('0x93')](_0x31ecb3);if(!_0x1d2dd5)throw new _0x432566(_0x3efb('0x118'),this);return _0x1d2dd5;}[_0x3efb('0x76')](_0x1e650d){const _0x372247=this['editor']['plugins'][_0x3efb('0x107')]('Users'),_0x41dba1=_0x90c1fd(_0x3efb('0x114')+_0x1e650d),_0x4a5cc0=_0x372247['getUser'](_0x41dba1);return _0x4a5cc0||_0x372247[_0x3efb('0xd0')]({'id':_0x41dba1,'name':_0x1e650d});}['_createSuggestion'](_0xf9cd3a,_0x35da4a,_0x3eca68,_0x5ce927,_0x3f64eb){const _0x1cef88=this[_0x3efb('0x46')](_0x5ce927),_0x4d5696=this[_0x3efb('0xa3')][_0x3efb('0xa4')](_0xf9cd3a,_0x35da4a,_0x3eca68,_0x1cef88,_0x3f64eb,_0x690838=>this[_0x3efb('0x4')](_0x3eca68,{'attributes':_0x690838}));return this[_0x3efb('0x58')](_0x4d5696,_0x3efb('0x62'),()=>{this['_updateSuggestionData'](_0x3eca68,{'state':_0x3efb('0xce')});},{'priority':'high'}),this['listenTo'](_0x4d5696,_0x3efb('0xf3'),()=>{this[_0x3efb('0x4')](_0x3eca68,{'state':_0x3efb('0x56')});},{'priority':_0x3efb('0xe2')}),this[_0x3efb('0xb3')][_0x3efb('0x101')](_0x3eca68,_0x4d5696),this[_0x3efb('0x100')][_0x3efb('0x101')](_0x4d5696,_0x3efb('0x9')),_0x4d5696;}[_0x3efb('0xfd')](_0x351d13){const _0x5b389b=_0x351d13[_0x3efb('0xf4')](':');return{'group':_0x5b389b[0x0],'type':_0x5b389b[0x1],'subType':_0x5b389b[_0x3efb('0x8f')]>=0x5?_0x5b389b[0x2]:null,'id':_0x5b389b[_0x3efb('0x8f')]<0x5?_0x5b389b[0x2]:_0x5b389b[0x3],'authorId':_0x5b389b['length']<0x5?_0x5b389b[0x3]:_0x5b389b[0x4],'markerCount':0x6==_0x5b389b[_0x3efb('0x8f')]?_0x5b389b[0x5]:null};}[_0x3efb('0x5')](_0x4467e7,_0x3cd1b0,_0x4a0c1){const _0x3fc27a=_0x4467e7['getFirstRange'](),_0x497939=_0x3fc27a[_0x3efb('0x115')],_0xdddfa3=_0x3fc27a['end'];this[_0x3efb('0xdc')](_0x4467e7,this['_model'][_0x3efb('0xb2')](_0x497939,_0x3cd1b0));const _0x507690=_0x12ed5b(),_0x236f3f=_0x4467e7[_0x3efb('0x43')]['id'],_0x3cfa85=_0x4467e7[_0x3efb('0x64')]+(_0x4467e7[_0x3efb('0x1')]?':'+_0x4467e7[_0x3efb('0x1')]:'');this[_0x3efb('0xda')]({'id':_0x507690,'type':_0x3cfa85,'createdAt':new Date(),'authorId':_0x236f3f,'originalSuggestionId':_0x4467e7['id'],'attributes':_0x4467e7['attributes'],'data':_0x4467e7[_0x3efb('0x96')]}),'formatBlock'==_0x4467e7[_0x3efb('0x64')]&&(_0x4a0c1=this['_model'][_0x3efb('0x7d')](_0x4a0c1[_0x3efb('0x5e')])),this['_addSuggestionMarker'](_0x3cfa85,_0x507690,_0x236f3f,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x4a0c1,_0xdddfa3));}[_0x3efb('0x11c')](_0x25885d,_0x357f60=null){const _0x498079=[],_0x15fa54=this[_0x3efb('0x120')]['schema'],_0x1dbc05=this[_0x3efb('0xc5')][_0x3efb('0x29')][_0x3efb('0x107')](_0x3efb('0xbe'))['me'];for(const _0x155592 of this[_0x3efb('0xa7')]())if(_0x155592['isInContent']&&(!_0x357f60||_0x155592['type']==_0x357f60))for(const _0x3c948c of _0x155592[_0x3efb('0x10f')]()){const _0x271cb4=_0x25885d['start'][_0x3efb('0x6b')](_0x3c948c[_0x3efb('0x112')])||_0x25885d[_0x3efb('0x112')][_0x3efb('0x6b')](_0x3c948c['start']);if(_0x271cb4||_0x25885d[_0x3efb('0x21')](_0x3c948c)){const _0x55db5c=_0x25885d[_0x3efb('0x23')](_0x3c948c)&&At(_0x15fa54,_0x3c948c[_0x3efb('0x115')],_0x25885d),_0x3387af=_0x3c948c[_0x3efb('0x23')](_0x25885d)&&At(_0x15fa54,_0x25885d[_0x3efb('0x115')],_0x3c948c);_0x498079[_0x3efb('0x104')]({'suggestion':_0x155592,'meta':{'isOwn':_0x1dbc05==_0x155592[_0x3efb('0x110')],'isNextTo':_0x271cb4,'isInsideObject':_0x55db5c,'containsRangeInObject':_0x3387af}});break;}}return _0x498079;}[_0x3efb('0x52')](_0x3c8235,_0x21c0d7,_0x44ef9b,_0x1c9583,_0x5c632a){this['_model'][_0x3efb('0x90')](_0x544844=>{let _0x5a63d4=_0x3efb('0x82')+_0x3c8235+':'+_0x21c0d7+':'+_0x44ef9b;_0x5c632a&&(_0x5a63d4=_0x5a63d4+':'+_0x5c632a),_0x544844[_0x3efb('0x65')](_0x5a63d4,{'range':_0x1c9583,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31e391){const _0x4733d8=_0x31e391[_0x3efb('0x9f')],_0x12bfdd=_0x31e391['next'];_0x31e391[_0x3efb('0x9f')]=null,null!=_0x4733d8&&(_0x4733d8['next']=null),_0x31e391['next']=null,null!=_0x12bfdd&&(_0x12bfdd[_0x3efb('0x9f')]=null),'ready'==this['_suggestionState'][_0x3efb('0x107')](_0x31e391)&&(this['_suggestionState'][_0x3efb('0x101')](_0x31e391,_0x3efb('0x131')),this[_0x3efb('0xe9')]('suggestionUnloaded',_0x31e391,_0x4733d8,_0x12bfdd));}[_0x3efb('0xda')](_0x42e343){const _0x4d4c5b=_0x42e343['id'],_0x29005c=this['addSuggestionData'](_0x42e343);if(this['_adapter']&&this[_0x3efb('0xe4')][_0x3efb('0x6d')]){const _0x522bb0=this['editor'][_0x3efb('0x29')][_0x3efb('0x107')]('PendingActions'),_0x22e312=_0x29005c[_0x3efb('0xbf')],_0x10c46a=_0x29005c[_0x3efb('0x1')]?_0x29005c['type']+':'+_0x29005c[_0x3efb('0x1')]:_0x29005c[_0x3efb('0x64')],_0x11e187=this[_0x3efb('0xc5')][_0x3efb('0xe8')],_0x1cf735=_0x522bb0[_0x3efb('0x13')](_0x7f5023(_0x11e187,'PENDING_ACTION_SUGGESTION')),_0x49e130={'id':_0x4d4c5b,'type':_0x10c46a,'hasComments':_0x22e312,'data':_0x42e343[_0x3efb('0x96')]||null,'originalSuggestionId':_0x42e343[_0x3efb('0x125')]||null,'attributes':_0x29005c[_0x3efb('0x1f')]};this[_0x3efb('0xe4')][_0x3efb('0x6d')](_0x49e130)['then'](_0xc6f01b=>{_0x29005c[_0x3efb('0x3')]=!0x0,_0x522bb0['remove'](_0x1cf735),_0xc6f01b&&_0xc6f01b[_0x3efb('0x11e')]&&(this[_0x3efb('0xb3')][_0x3efb('0x107')](_0x4d4c5b)[_0x3efb('0x11e')]=_0xc6f01b[_0x3efb('0x11e')]);})[_0x3efb('0x38')](_0x556c96=>{throw _0x31de96(_0x3efb('0x6f')),this['editor'][_0x3efb('0x9b')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x29005c[_0x3efb('0xf3')]();}),_0x29005c['stopListening'](),this[_0x3efb('0xb3')][_0x3efb('0x139')](_0x29005c['id']),this[_0x3efb('0x100')][_0x3efb('0x139')](_0x29005c),_0x556c96;});}return _0x29005c;}[_0x3efb('0x4')](_0x300b9a,_0x39894a){const _0x428bd7=this[_0x3efb('0xc5')]['plugins'][_0x3efb('0x107')]('PendingActions'),_0x5aa90c=this[_0x3efb('0x4d')](_0x300b9a);if(this[_0x3efb('0xe4')]&&this[_0x3efb('0xe4')]['updateSuggestion']){if(_0x5aa90c[_0x3efb('0x3')]){const _0x5df1de=_0x428bd7[_0x3efb('0x13')](_0x7f5023(this[_0x3efb('0xc5')][_0x3efb('0xe8')],_0x3efb('0x1e')));this['_adapter']['updateSuggestion'](_0x300b9a,_0x39894a)['then'](()=>{_0x428bd7[_0x3efb('0xa0')](_0x5df1de);});}else _0x5aa90c['on'](_0x3efb('0xdb'),()=>{this[_0x3efb('0x4')](_0x300b9a,_0x39894a);});}}[_0x3efb('0x133')](_0x7e4da5){if(!this['_adapter']||!this['_adapter'][_0x3efb('0x4d')])throw new _0x432566(_0x3efb('0xfc'),this);return this[_0x3efb('0xe4')]['getSuggestion'](_0x7e4da5);}[_0x3efb('0x137')](_0x12cf8c){const {id:_0x21b15a,type:_0x2f7683,subType:_0x989cf7,authorId:_0x187ffd}=this[_0x3efb('0xfd')](_0x12cf8c),_0x2e4fa1=this[_0x3efb('0xb3')]['get'](_0x21b15a)||this[_0x3efb('0xe3')](_0x2f7683,_0x989cf7,_0x21b15a,_0x187ffd,{});switch(this[_0x3efb('0x22')](_0x2e4fa1,_0x2f7683,_0x989cf7,_0x187ffd),this[_0x3efb('0x100')]['get'](_0x2e4fa1)){case _0x3efb('0x9'):this[_0x3efb('0x133')](_0x21b15a)['then'](_0xd07d18=>{let _0x1656d3=Promise[_0x3efb('0x109')]();_0xd07d18[_0x3efb('0xbf')]&&(_0x1656d3=this[_0x3efb('0x78')]['fetchCommentThread']({'channelId':this[_0x3efb('0xc5')][_0x3efb('0x1c')]['get'](_0x3efb('0x12c')),'threadId':_0x21b15a})),_0x1656d3[_0x3efb('0x25')](()=>{this[_0x3efb('0xc2')](_0xd07d18)[_0x3efb('0x3')]=!0x0;});}),this[_0x3efb('0x100')]['set'](_0x2e4fa1,_0x3efb('0x55'));break;case _0x3efb('0x131'):this[_0x3efb('0x4')](_0x21b15a,{'state':_0x3efb('0x129')});case _0x3efb('0xee'):this[_0x3efb('0x100')][_0x3efb('0x101')](_0x2e4fa1,_0x3efb('0xb7')),this[_0x3efb('0xe9')](_0x3efb('0x130'),_0x2e4fa1);break;case _0x3efb('0xb7'):this['fire'](_0x3efb('0x7c'),_0x2e4fa1);}return _0x2e4fa1[_0x3efb('0x7a')](_0x12cf8c),_0x2e4fa1;}[_0x3efb('0x122')](_0x15b82c){const _0x4bdae9=Array[_0x3efb('0x128')](_0x15b82c)[_0x3efb('0x33')](_0x628a6=>!_0x628a6[_0x3efb('0x35')]),_0x2f5dd5=this[_0x3efb('0xa7')]({'skipNotAttached':!0x0})[_0x3efb('0x33')](_0x528b3c=>!_0x528b3c['isMultiRange']),_0x44ba54=_0x2f5dd5[_0x3efb('0x33')](_0x1cff44=>!_0x15b82c['has'](_0x1cff44)),_0x800693=new Map(_0x2f5dd5[_0x3efb('0x3f')](_0xa1b45f=>[_0xa1b45f,this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0xa1b45f[_0x3efb('0x64')],_0xa1b45f[_0x3efb('0x1')],_0x3efb('0x6e'))])),_0x180854=new Map(_0x2f5dd5['map'](_0xb409c=>[_0xb409c,_0xb409c[_0x3efb('0x8b')]()])),_0x32c9a4=new Set(),_0x4c7dbf=new Set();for(let _0x4fc4ab=0x0;_0x4fc4ab<_0x4bdae9[_0x3efb('0x8f')];_0x4fc4ab++)_0x1c7c3d(_0x4bdae9[_0x4fc4ab],_0x4bdae9,_0x4fc4ab+0x1);for(let _0x233482=0x0;_0x233482<_0x4bdae9[_0x3efb('0x8f')];_0x233482++)_0x1c7c3d(_0x4bdae9[_0x233482],_0x44ba54,0x0);for(let _0x3cc8f3=0x0;_0x3cc8f3<_0x4bdae9[_0x3efb('0x8f')];_0x3cc8f3++){const _0x23944a=_0x4bdae9[_0x3cc8f3];!_0x4c7dbf[_0x3efb('0x54')](_0x23944a)&&_0x23944a[_0x3efb('0x9f')]&&(_0x23944a[_0x3efb('0x9f')]['next']===_0x23944a&&(_0x23944a[_0x3efb('0x9f')][_0x3efb('0x80')]=null),_0x23944a[_0x3efb('0x9f')]=null),!_0x32c9a4[_0x3efb('0x54')](_0x23944a)&&_0x23944a[_0x3efb('0x80')]&&(_0x23944a[_0x3efb('0x80')][_0x3efb('0x9f')]===_0x23944a&&(_0x23944a[_0x3efb('0x80')][_0x3efb('0x9f')]=null),_0x23944a[_0x3efb('0x80')]=null);}function _0x1c7c3d(_0x2f0d50,_0x1fe955,_0x4a6c7a){for(let _0xdb52ce=_0x4a6c7a;_0xdb52ce<_0x1fe955['length'];_0xdb52ce++){const _0x276629=_0x59786e(_0x2f0d50,_0x1fe955[_0xdb52ce]);_0x276629&&(_0x276629[0x0]['next']=_0x276629[0x1],_0x276629[0x1][_0x3efb('0x9f')]=_0x276629[0x0],_0x32c9a4[_0x3efb('0x13')](_0x276629[0x0]),_0x4c7dbf[_0x3efb('0x13')](_0x276629[0x1]));}}function _0x59786e(_0x2b2a74,_0x3f928e){if(_0x2b2a74[_0x3efb('0x110')]['id']!==_0x3f928e[_0x3efb('0x110')]['id'])return null;const _0x327973=_0x800693['get'](_0x2b2a74)(_0x2b2a74,_0x3f928e,_0x180854[_0x3efb('0x107')](_0x2b2a74),_0x180854[_0x3efb('0x107')](_0x3f928e));if(!_0x327973)return null;return _0x800693['get'](_0x3f928e)(_0x2b2a74,_0x3f928e,_0x180854[_0x3efb('0x107')](_0x2b2a74),_0x180854[_0x3efb('0x107')](_0x3f928e))?_0x327973[0x1]['commentThread']&&_0x327973[0x1][_0x3efb('0xfb')][_0x3efb('0x8f')]?null:_0x327973:null;}}[_0x3efb('0xab')](_0x3af2a2){const _0x54a540=Array[_0x3efb('0x128')](_0x3af2a2),_0x38e18e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2a457a=_0x38e18e[_0x3efb('0x33')](_0x1db6b9=>!_0x3af2a2['has'](_0x1db6b9)),_0x13f772=new Map(_0x54a540[_0x3efb('0x3f')](_0x536395=>[_0x536395,this[_0x3efb('0xa3')][_0x3efb('0xb1')](_0x536395[_0x3efb('0x64')],_0x536395[_0x3efb('0x1')],_0x3efb('0x31'))])),_0x199e8b=new Map(_0x38e18e['map'](_0x238450=>[_0x238450,_0x238450['getRanges']()]));for(let _0x2daedd=0x0;_0x2daedd<_0x54a540[_0x3efb('0x8f')];_0x2daedd++){if(_0x4daad7(this,_0x54a540[_0x2daedd],_0x54a540,_0x2daedd+0x1))return!0x0;}for(let _0x43de21=0x0;_0x43de21<_0x54a540['length'];_0x43de21++){if(_0x4daad7(this,_0x54a540[_0x43de21],_0x2a457a,0x0))return!0x0;}return!0x1;function _0x4daad7(_0x4e8a2b,_0x2ce7fd,_0x29f4bd,_0x55e6a6){for(let _0x432b72=_0x55e6a6;_0x432b72<_0x29f4bd[_0x3efb('0x8f')];_0x432b72++){const _0x36defb=_0x29f4bd[_0x432b72];if(_0x36defb['type']!==_0x2ce7fd[_0x3efb('0x64')]||_0x36defb[_0x3efb('0x110')]['id']!==_0x2ce7fd[_0x3efb('0x110')]['id']||_0x36defb['subType']!==_0x2ce7fd[_0x3efb('0x1')])continue;const _0x33cc98=_0x13f772[_0x3efb('0x107')](_0x2ce7fd),_0x50ec97=_0x199e8b['get'](_0x2ce7fd),_0x38ba69=_0x199e8b[_0x3efb('0x107')](_0x36defb),_0x5d5c09=_0x2ce7fd[_0x3efb('0xfb')]&&_0x2ce7fd[_0x3efb('0xfb')][_0x3efb('0x8f')],_0x140dc0=_0x36defb[_0x3efb('0xfb')]&&_0x36defb[_0x3efb('0xfb')][_0x3efb('0x8f')];if(!_0x5d5c09&&_0x33cc98(_0x38ba69,_0x50ec97))return _0x4e8a2b[_0x3efb('0x113')](_0x36defb,_0x2ce7fd),_0x199e8b[_0x3efb('0x139')](_0x2ce7fd),!0x0;if(!_0x140dc0&&_0x33cc98(_0x50ec97,_0x38ba69))return _0x4e8a2b[_0x3efb('0x113')](_0x2ce7fd,_0x36defb),_0x199e8b[_0x3efb('0x139')](_0x36defb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5dd328,_0x3ce5f4){if(_0x5dd328[_0x3efb('0x35')])for(const _0x42feef of _0x3ce5f4[_0x3efb('0x10f')]())_0x5dd328['addRange'](_0x42feef);else{const _0x336bc8=_0x3ce5f4[_0x3efb('0x8b')]()[_0x3efb('0x112')];this[_0x3efb('0xdc')](_0x5dd328,this[_0x3efb('0x120')][_0x3efb('0xb2')](_0x5dd328[_0x3efb('0x8b')]()[_0x3efb('0x115')],_0x336bc8));}_0x3ce5f4[_0x3efb('0xe0')]();}}class vt{constructor(_0x37b3ad){this[_0x3efb('0x17')]=_0x37b3ad,this[_0x3efb('0x120')]=_0x37b3ad['model'],this[_0x3efb('0x32')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3efb('0xd3')]();}['buildSuggestion'](_0x1f53ba,_0x379a11,_0x501e2d,_0x276876,_0x35b550,_0x456ade){return new _0x3dc7ba(this['_model'],{'type':_0x1f53ba,'subType':_0x379a11,'id':_0x501e2d,'author':_0x276876,'creator':_0x276876,'attributes':_0x35b550,'onAttributesChange':_0x456ade,'onAccept':(..._0x3e5cf0)=>this[_0x3efb('0xb1')](_0x1f53ba,_0x379a11,_0x3efb('0x62'))(..._0x3e5cf0),'onDiscard':(..._0x559203)=>this[_0x3efb('0xb1')](_0x1f53ba,_0x379a11,_0x3efb('0xf3'))(..._0x559203)});}['registerCustomCallback'](_0x300d54,_0x2fef58,_0x506db3,_0x1b67ae){const _0x2379d2=_0x300d54+':'+_0x2fef58+':'+_0x506db3;this[_0x3efb('0x32')][_0x3efb('0x101')](_0x2379d2,_0x1b67ae);}[_0x3efb('0xb1')](_0x2bde42,_0x11072b,_0x1da280){const _0x451ef9=_0x2bde42+':'+_0x11072b+':'+_0x1da280;return this[_0x3efb('0x32')][_0x3efb('0x107')](_0x451ef9)||this['_defaultCallbacks'][_0x3efb('0x107')](_0x2bde42+':'+_0x1da280);}['_registerDefaultCallbacks'](){const _0x17ef0c=()=>{},_0x262b86=_0x2f408d=>{_0x2f408d[_0x3efb('0x11')]((_0x6cb813,_0x1a06a8)=>_0x6cb813[_0x3efb('0x115')][_0x3efb('0xcf')](_0x1a06a8['start'])?0x1:-0x1),this[_0x3efb('0x120')][_0x3efb('0x90')](_0x483deb=>{for(const _0x474256 of _0x2f408d){let _0x33a431;_0x33a431=_0x474256[_0x3efb('0x112')][_0x3efb('0x14')]&&_0x474256[_0x3efb('0x112')][_0x3efb('0x5e')]==_0x474256[_0x3efb('0x115')][_0x3efb('0x47')]?_0x483deb['createSelection'](_0x474256['start'][_0x3efb('0x47')],'on'):_0x483deb[_0x3efb('0xc9')](_0x474256),this['_model']['deleteContent'](_0x33a431,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c89a1=(_0x10edb3,_0x20d357)=>{this[_0x3efb('0x120')][_0x3efb('0x90')](_0x51bb9f=>{const {commandName:_0x2822d8,commandParams:_0x1b31da=[]}=_0x20d357,_0x57da0b=_0x10edb3[_0x3efb('0x3f')](_0xbd4392=>(Dt(_0xbd4392)&&(_0xbd4392=this['_model']['createRange'](_0xbd4392[_0x3efb('0x112')])),_0xbd4392))[_0x3efb('0x33')](_0x343c3a=>'$graveyard'!==_0x343c3a['root'][_0x3efb('0xb8')]);if(_0x57da0b[_0x3efb('0x8f')]<0x1)return;const _0x5e3a61=Array[_0x3efb('0x128')](this[_0x3efb('0x120')][_0x3efb('0xa1')][_0x3efb('0x5f')][_0x3efb('0x10f')]())[_0x3efb('0x3f')](_0x3e2439=>_0x12e3b7[_0x3efb('0xe1')](_0x3e2439));_0x51bb9f['setSelection'](_0x57da0b);for(const _0xdab0fb of this[_0x3efb('0x17')]['commands'][_0x3efb('0x98')]())_0xdab0fb[_0x3efb('0x9a')]();_0x1b31da[_0x3efb('0x104')]({'forceDefaultExecution':!0x0}),this[_0x3efb('0x17')]['execute'](_0x2822d8,..._0x1b31da);const _0x4e606a=_0x5e3a61[_0x3efb('0x33')](_0x1906da=>_0x3efb('0x103')!=_0x1906da[_0x3efb('0x67')][_0x3efb('0xb8')]);_0x4e606a[_0x3efb('0x8f')]>0x0&&_0x51bb9f[_0x3efb('0x19')](_0x4e606a);for(const _0x145f8d of _0x5e3a61)_0x145f8d[_0x3efb('0x34')]();});},_0x346cbe=(_0x2bfa67,_0x487554)=>0x1==_0x2bfa67[_0x3efb('0x8f')]&&0x1==_0x487554[_0x3efb('0x8f')]&&_0x2bfa67[0x0]['end']['isEqual'](_0x487554[0x0][_0x3efb('0x115')]),_0x48cd22=(_0x2fdfbf,_0x4971da,_0x38aa37,_0xfcab78)=>$t(_0x2fdfbf,_0x4971da,_0x38aa37,_0xfcab78,this[_0x3efb('0x120')])?[_0x2fdfbf,_0x4971da]:$t(_0x4971da,_0x2fdfbf,_0xfcab78,_0x38aa37,this[_0x3efb('0x120')])?[_0x4971da,_0x2fdfbf]:null;this[_0x3efb('0xa2')]['set']('insertion:accept',_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x12e'),_0x262b86),this[_0x3efb('0xa2')][_0x3efb('0x101')]('insertion:join',_0x346cbe),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x16'),_0x48cd22),this['_defaultCallbacks'][_0x3efb('0x101')](_0x3efb('0x12f'),_0x262b86),this['_defaultCallbacks']['set'](_0x3efb('0x2f'),_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x2e'),_0x346cbe),this['_defaultCallbacks']['set'](_0x3efb('0x12'),_0x48cd22),this[_0x3efb('0xa2')]['set'](_0x3efb('0x12b'),_0x2c89a1),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0xed'),_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0xd1'),_0x346cbe),this[_0x3efb('0xa2')][_0x3efb('0x101')]('formatInline:chain',_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')](_0x3efb('0x116'),_0x2c89a1),this['_defaultCallbacks']['set'](_0x3efb('0x18'),_0x17ef0c),this[_0x3efb('0xa2')][_0x3efb('0x101')]('formatBlock:join',_0x346cbe),this['_defaultCallbacks'][_0x3efb('0x101')](_0x3efb('0x74'),_0x17ef0c);}}function At(_0x58f978,_0x1109d3,_0x3d4825){for(const _0x3336b7 of _0x1109d3[_0x3efb('0x5e')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3336b7['root']==_0x3336b7)return!0x1;if(!_0x3d4825[_0x3efb('0xc')](_0x3336b7))return!0x1;if(_0x58f978[_0x3efb('0x1d')](_0x3336b7)||_0x58f978[_0x3efb('0x11d')](_0x3336b7))return!0x0;}return!0x1;}function Dt(_0x4762b0){return _0x4762b0[_0x3efb('0x112')][_0x3efb('0x5e')]==_0x4762b0[_0x3efb('0x115')][_0x3efb('0x47')]&&_0x4762b0[_0x3efb('0x112')][_0x3efb('0x5c')];}function Ct(_0x26d6e4,_0x43ac5b,_0x570cc1,_0x41c469){const _0xfeb7a2=_0x44a397=>!_0x44a397['item']['is'](_0x3efb('0xf5'))&&!_0x41c469[_0x3efb('0x1d')](_0x44a397[_0x3efb('0x10c')]),_0x22aa52=_0x26d6e4[_0x3efb('0x115')][_0x3efb('0xb0')](_0xfeb7a2),_0x5ded53=_0x26d6e4[_0x3efb('0x112')]['getLastMatchingPosition'](_0xfeb7a2,{'direction':_0x3efb('0xc3')});return(!_0x26d6e4[_0x3efb('0x115')][_0x3efb('0x6b')](_0x22aa52)||!_0x26d6e4[_0x3efb('0x112')][_0x3efb('0x6b')](_0x5ded53))&&(_0x22aa52[_0x3efb('0xcf')](_0x5ded53)?_0x570cc1[_0x3efb('0x3b')](_0x43ac5b,{'range':_0x570cc1[_0x3efb('0xb2')](_0x22aa52,_0x5ded53)}):_0x570cc1[_0x3efb('0x69')](_0x43ac5b),!0x0);}function Bt(_0x5baade){return _0x90c1fd(_0x5baade);}function _t(_0x40e1f7){const _0x4c08fd=_0x40e1f7[_0x3efb('0x115')][_0x3efb('0x47')];return _0x4c08fd&&_0x4c08fd['is'](_0x3efb('0xf2'));}function Mt(_0x6a9c9b,_0x143a36){const _0x35b8a1=_0x143a36[_0x3efb('0x94')]['isObject'](_0x6a9c9b)||_0x143a36[_0x3efb('0x94')][_0x3efb('0x66')](_0x6a9c9b);return _0x143a36[_0x3efb('0xb2')](_0x143a36[_0x3efb('0xcc')](_0x6a9c9b,_0x3efb('0x8a')),_0x35b8a1?_0x143a36[_0x3efb('0xa')](_0x6a9c9b):_0x143a36[_0x3efb('0xcc')](_0x6a9c9b,'end'));}function $t(_0x1409b5,_0xed97e5,_0x825298,_0x11cc7c,_0x103af0){if(_0x825298[_0x3efb('0x112')][_0x3efb('0x6b')](_0x11cc7c['start']))return!0x0;if(_0x1409b5[_0x3efb('0x64')]!=_0xed97e5[_0x3efb('0x64')])return!0x1;if(!_0x825298[_0x3efb('0x112')][_0x3efb('0x10b')](_0x11cc7c['start']))return!0x1;const _0x84923f=_0x103af0['createRange'](_0x825298['end'],_0x11cc7c['start'])[_0x3efb('0x7b')]();for(const _0x1e7003 of _0x84923f)if([_0x3efb('0x63'),_0x3efb('0xbd')][_0x3efb('0xe6')](_0x1e7003['type'])&&_0x103af0[_0x3efb('0x94')][_0x3efb('0x11d')](_0x1e7003[_0x3efb('0x10c')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x3bd5=['PENDING_ACTION_SUGGESTION','getAncestors','_enabledCommands','options','data-suggestion','update:suggestion','applyOperation','commandName','return','isEqual','selection','activeMarkers','suggestion:','addRange','discard','normal','_customCallbacks','dataToMarker','detach','getMultiRangeId','change:activeMarkers','markerReady','isDocumentOperation','_findSuggestions','elementStart','_handleNewSuggestionMarker','_checkSuggestionCorrectness','values','isObject','insert','has','parent','updateSuggestion','filter','containerElement','subType','_rangeIsInLocalUserInsertion','containsRange','_getExternalAuthor','size','formatInline:chain','isNextTo','refresh','elementToElement','_trackFormatChanges','$graveyard','removeComment','_getAuthorFromId','isMultiRange','_breakSuggestionMarker','howMany','hasCommentThread','createRange','attributes','getChangedMarkers','deletion:discard','insertion:','_defaultCallbacks','createPositionAt','getAttribute','getLastMatchingPosition','@external','registerCustomCallback','marker-count','name','PendingActions','isOwn','accepted','isCollapsed','deletion:join','trackChangesCommand','isAtEnd','isBefore','ck-suggestion-marker--active','_getSuggestionData','external:','deletion','ready','adapter','_setSuggestionData','push','bindElementToMarker','createPositionBefore','enableCommand','formatInline:discard','CommentsRepository','isInContent','acceptSuggestion','isSelectable','next','_adapter','length','commands','deletion:chain','track-changes-suggestion-data-mismatch','formatInline:accept','createRangeIn','_createSuggestion','commentThread','getAllAdjacentSuggestions','delete','suggestionChanged','createPositionAfter','formatInline','pluginName','ck-suggestion-marker-','track-changes-adapter-missing-getsuggestion','markDeletion','root','getShiftedBy','differ','isRemovable','acceptAllSuggestions','conversion','type','formatGroupId','formatInline:','addMarker:suggestion:formatBlock','clone','isUndo','createdAt','setSelection','markInsertion','removed','_registerDefaultCallbacks','split','author','model','suggestionLoaded','splice','every','getChanges','join','addComment','isLimit','splitPosition','high','removeMarkers','nodeAfter','hasSuggestion','markerToData','before','getMarkers','group','getFirstMarker','_commentsRepository','dataDowncast','isIntersectingWithRange','_addSuggestionMarker','locale','_saved','getSuggestionCallback','value','Users','forceDefaultExecution','getWalker','get','move','consumable','previous','getUser','remove','_model','getFirstRange','map','ck-suggestion-marker-formatBlock','isInsideObject','$textProxy','end','addSuggestion','addMarker','schema','plugins','setAttribute','isBlock','getSuggestions','editor','newRange','_suggestionFactory','stop','_setSuggestionRange','_joinWithAdjacentSuggestions','multipleBlocks','track-changes-command-not-found','head','authoredAt','ck-suggestion-marker','formatBlock:accept','sort','range','containsRangeInObject','track-changes-suggestion-not-found','documentSelection','mapper','position','init','define','markerNameToElements','getIntersection','config','trackChanges.trackFormatChanges','getDifference','removeMarker','trackChanges','_isForcedDefaultExecutionBlock','insertion:chain','toViewElement','_editor','enableReadOnlyMode','rootName','discardAllSuggestions','isAfter','fire','consume','data','addClass','nodeBefore','getRanges','formatBlock:chain','rejected','markBlockFormat','execute','deletion:','_cutOutSuggestionMarker','createElement','item','removeMarker:suggestion:formatBlock','insertContent','addSuggestionData','addMarker:suggestion','updateMarker','registerPostFixer','formatBlock:discard','lowest','listenTo','markers','_refreshSuggestionsChain','acceptSelectedSuggestions','markInlineFormat','start','formatInline:join','change','getNearestSelectionRange','writer','editingDowncast','track-changes-adapter-already-set','createSelection','batch','getCustomProperty','resolve','_addThreadToSuggestion','add','fromCharCode','chain','forward','creator','upcast','includes','markerToHighlight','buildSuggestion','_descriptionFactory','_suggestionState','multi','suggestion','markerName','hasComments','for','containsItem','toJSON','_suggestions','catch','set','then','deleteContent','isAtStart','formatBlock:','_joinSuggestions','getItems','showSuggestionHighlights','removeClass','_splitMarkerName','reconvertMarker','insertion','some','unbindElementFromMarkerName','getCommentThread','_onDiscard','containsPosition','suggestion-type','moveTargetPosition','discardSuggestion','getSuggestion','addHighlight','addMarkerName','collaboration.channelId','_removeSuggestion','change:data','_updateSuggestionData','deletion:accept','setTo','widget','element','discardSelectedSuggestions','notReady','dataReady','insertion:join','oldRange','stopListening','formatBlock','document','from','accept','after','low'];(function(_0xe5ab4,_0x3bd5fa){const _0x350f9c=function(_0x48e97a){while(--_0x48e97a){_0xe5ab4['push'](_0xe5ab4['shift']());}};_0x350f9c(++_0x3bd5fa);}(_0x3bd5,0x67));const _0x350f=function(_0xe5ab4,_0x3bd5fa){_0xe5ab4=_0xe5ab4-0x0;let _0x350f9c=_0x3bd5[_0xe5ab4];return _0x350f9c;};import{Plugin as _0x1517c8,PendingActions as _0x3fa6ea}from'ckeditor5/src/core';import{LiveRange as _0x319865}from'ckeditor5/src/engine';import{CKEditorError as _0x119d3e,uid as _0x4cb20a,priorities as _0x59dfda,logWarning as _0xd5393f}from'ckeditor5/src/utils';import{toWidget as _0x466ac4}from'ckeditor5/src/widget';import{Users as _0x4a58c5,hashObject as _0x394310}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d34bb from'./commands/trackchangescommand';import _0x4bcffe from'./commands/acceptsuggestioncommand';import _0x4186d0 from'./commands/discardsuggestioncommand';import _0x4a8fef from'./commands/executeonallsuggestionscommand';import _0xea949b from'./commands/executeonselectedsuggestionscommand';import _0x14b365 from'./suggestion';import _0x516da3 from'./suggestiondescriptionfactory';import _0x4c9d57 from'./integrations/alignment';import _0x154435 from'./integrations/basicstyles';import _0x804368 from'./integrations/blockquote';import _0x4458eb from'./integrations/ckbox';import _0x3ce1d3 from'./integrations/codeblock';import _0x23536b from'./integrations/comments';import _0x38c2a4 from'./integrations/deletecommand';import _0x3d7022 from'./integrations/documentlist';import _0x4792cd from'./integrations/entercommand';import _0x5e9ee8 from'./integrations/findandreplace';import _0x30e073 from'./integrations/font';import _0x5d7a9c from'./integrations/heading';import _0x1b625b from'./integrations/highlight';import _0x4c6b3f from'./integrations/horizontalline';import _0x338ebb from'./integrations/htmlembed';import _0x2b50d8 from'./integrations/image';import _0x4bdbfa from'./integrations/imagereplace';import _0x18c38f from'./integrations/importword';import _0x122ffd from'./integrations/indent';import _0x32252c from'./integrations/inputcommand';import _0x3f10e3 from'./integrations/link';import _0x59088e from'./integrations/list';import _0x14ba1f from'./integrations/listproperties';import _0x5ccc88 from'./integrations/mediaembed';import _0x49aa95 from'./integrations/mention';import _0x2e4b54 from'./integrations/pagebreak';import _0x4eddb9 from'./integrations/paragraph';import _0x381ea0 from'./integrations/removeformat';import _0xd1bac0 from'./integrations/restrictededitingmode';import _0x5502af from'./integrations/shiftentercommand';import _0x303eca from'./integrations/standardeditingmode';import _0x1e6178 from'./integrations/style';import _0x4486aa from'./integrations/table';import _0x12e456 from'./integrations/tablemergesplit';import _0x42bfb1 from'./integrations/tableheadings';import _0x42bf29 from'./integrations/tableclipboard';import _0x3dca8f from'./integrations/tablecolumnresize';import _0x4921df from'./integrations/title';import _0x4cf8d3 from'./integrations/undo';import{getTranslation as _0x3436c0}from'./utils/common-translations';import _0x34d931 from'./integrations/tablecaption';import _0x2c73a6 from'./integrations/documentlistproperties';import _0x27d865 from'./integrations/tableproperties';export default class p extends _0x1517c8{static get['requires'](){return['CommentsRepository',_0x4a58c5,_0x3fa6ea,_0x4c9d57,_0x154435,_0x804368,_0x4458eb,_0x3ce1d3,_0x23536b,_0x38c2a4,_0x3d7022,_0x2c73a6,_0x4792cd,_0x5e9ee8,_0x30e073,_0x5d7a9c,_0x1b625b,_0x4c6b3f,_0x338ebb,_0x2b50d8,_0x4bdbfa,_0x18c38f,_0x122ffd,_0x32252c,_0x3f10e3,_0x59088e,_0x14ba1f,_0x5ccc88,_0x49aa95,_0x2e4b54,_0x4eddb9,_0x381ea0,_0xd1bac0,_0x5502af,_0x303eca,_0x1e6178,_0x4486aa,_0x12e456,_0x42bfb1,_0x34d931,_0x42bf29,_0x3dca8f,_0x27d865,_0x4921df,_0x4cf8d3];}static get[_0x350f('0x1')](){return'TrackChangesEditing';}constructor(_0x2e4011){function _0x314b1f(_0x2f6356){return _0x2f6356[_0x350f('0x3d')](_0x23f325=>String[_0x350f('0x95')](_0x23f325))['join']('');}super(_0x2e4011),this[_0x350f('0xa8')](_0x350f('0xde'),[]),this['on'](_0x350f('0xe7'),(_0x1c79c7,_0x98370,_0x5c388f,_0x2281fa)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](()=>{for(const _0x15ee7e of[..._0x2281fa,..._0x5c388f])this[_0x350f('0x3b')][_0x350f('0x84')][_0x350f('0xf1')](_0x15ee7e)&&_0x2e4011['editing'][_0x350f('0xb2')](_0x15ee7e);});}),this[_0x350f('0x9d')]=new _0x516da3(this[_0x350f('0x49')]['model'][_0x350f('0x44')],this[_0x350f('0x49')][_0x350f('0x2e')]),this[_0x350f('0x12d')]=null,this[_0x350f('0x4b')]=new vt(this['editor']),this[_0x350f('0xa6')]=new Map(),this[_0x350f('0x2a')]=_0x2e4011[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128')),this[_0x350f('0xd5')]=new Set(),this[_0x350f('0x3b')]=this[_0x350f('0x49')]['model'],this[_0x350f('0x9e')]=new WeakMap(),this[_0x350f('0x65')]=!0x1,_0x2e4011[_0x350f('0x60')][_0x350f('0x5d')]('trackChanges.trackFormatChanges',!0x0),this['_trackFormatChanges']=_0x2e4011[_0x350f('0x60')]['get'](_0x350f('0x61')),this[_0x350f('0x119')]=new _0x2d34bb(_0x2e4011,this[_0x350f('0xd5')]),this[_0x314b1f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x314b1f([0x34,0x30,0x34,0x36,0x30,0x38,0x31,0x30]);}[_0x350f('0x5c')](){const _0x5a8c0c=this[_0x350f('0x49')];_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))['markerToHighlight']({'model':_0x350f('0xa0'),'view':_0x4aad6a=>{const {id:_0x55a5bf,type:_0x1c382e}=this['_splitMarkerName'](_0x4aad6a[_0x350f('0xa1')]),_0xd7c253=[_0x350f('0x53'),_0x350f('0x2')+_0x1c382e];let _0x5cfb01=0xbb8;return this['activeMarkers']['includes'](_0x4aad6a[_0x350f('0xa1')])&&(_0xd7c253[_0x350f('0x123')](_0x350f('0x11c')),_0x5cfb01=0xbc2),_0x350f('0x11f')==_0x1c382e&&(_0x5cfb01+=0x5),{'classes':_0xd7c253,'attributes':{'data-suggestion':_0x55a5bf},'priority':_0x5cfb01};}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))[_0x350f('0x94')](_0x4f6648=>{_0x4f6648['on'](_0x350f('0x7e'),(_0xc113d5,_0x368f7f,_0x4f97eb)=>{if(!_0x4f97eb[_0x350f('0xd6')][_0x350f('0xaf')])return;const _0xefff09=_0x368f7f['item'];if(!_0xefff09)return;const _0x3eaf8c=_0x4f97eb['mapper'][_0x350f('0x67')](_0xefff09);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0xef')](_0xefff09)&&_0x3eaf8c&&!_0x3eaf8c[_0x350f('0x91')](_0x350f('0xc5'))&&_0x3eaf8c['is'](_0x350f('0xf5'))&&_0x466ac4(_0x3eaf8c,_0x4f97eb[_0x350f('0x8c')]);},{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('dataDowncast')[_0x350f('0x9b')]({'model':_0x350f('0xa0'),'view':(_0x50be73,_0x277a65)=>{if(!_0x277a65['options'][_0x350f('0xaf')])return null;const {type:_0x120c5c}=this[_0x350f('0xb1')](_0x50be73[_0x350f('0xa1')]);return{'classes':[_0x350f('0x53'),_0x350f('0x2')+_0x120c5c],'priority':0xbb8};}});const _0x188385=({showActiveMarkers:_0x109e2b=!0x0}={})=>(_0x527657,_0x17a984,_0x3e0de1)=>{if(!_0x17a984[_0x350f('0x7a')])return;if(_0x17a984['item']['is'](_0x350f('0xdd')))return void _0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x17a984['item'],_0x527657[_0x350f('0x113')]);const _0x5556f2=_0x3e0de1[_0x350f('0x5a')]['toViewElement'](_0x17a984[_0x350f('0x7a')]);if(!(_0x17a984[_0x350f('0x7a')]['is'](_0x350f('0xc6'))&&_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0x47')](_0x17a984[_0x350f('0x7a')])&&!_0x5556f2[_0x350f('0x91')](_0x350f('0xbd'))))return;const {id:_0x23fc5c}=this[_0x350f('0xb1')](_0x17a984[_0x350f('0xa1')]);_0x3e0de1['writer'][_0x350f('0x70')]([_0x350f('0x53'),'ck-suggestion-marker-formatBlock'],_0x5556f2),_0x3e0de1[_0x350f('0x8c')][_0x350f('0x46')](_0x350f('0xd7'),_0x23fc5c,_0x5556f2),_0x3e0de1[_0x350f('0x5a')][_0x350f('0x124')](_0x5556f2,_0x17a984[_0x350f('0xa1')]),_0x109e2b&&(this[_0x350f('0xde')][_0x350f('0x9a')](_0x17a984[_0x350f('0xa1')])?_0x3e0de1[_0x350f('0x8c')]['addClass']('ck-suggestion-marker--active',_0x5556f2):_0x3e0de1[_0x350f('0x8c')][_0x350f('0xb0')](_0x350f('0x11c'),_0x5556f2));for(const _0x49467d of _0x5a8c0c[_0x350f('0x18')][_0x350f('0x133')](_0x17a984[_0x350f('0x7a')])[_0x350f('0xae')]())_0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x49467d,_0x527657['name']);_0x3e0de1['consumable'][_0x350f('0x6e')](_0x17a984[_0x350f('0x7a')],_0x527657['name']);};_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))['add'](_0x9dc56a=>{_0x9dc56a['on']('addMarker:suggestion:formatBlock',(_0x383272,_0xb4a754,_0x448c18)=>{_0x448c18[_0x350f('0xd6')]['showSuggestionHighlights']&&_0x188385({'showActiveMarkers':!0x1})(_0x383272,_0xb4a754,_0x448c18);},{'priority':'highest'});}),_0x5a8c0c[_0x350f('0xa')]['for'](_0x350f('0x2b'))[_0x350f('0x25')]({'model':_0x350f('0xa0'),'view':(_0x3ef126,_0xb33579)=>_0xb33579[_0x350f('0xd6')][_0x350f('0xaf')]?null:{'group':_0x350f('0xa0'),'name':_0x3ef126['substr'](_0x350f('0xa0')[_0x350f('0x12e')]+0x1)}}),_0x5a8c0c['conversion'][_0x350f('0xa3')](_0x350f('0x99'))[_0x350f('0xfe')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bff05,{writer:_0x2ef49e})=>{let _0x1e7a97=_0x350f('0xdf')+_0x3bff05['getAttribute'](_0x350f('0xb9'))+':'+_0x3bff05['getAttribute']('id');return _0x3bff05[_0x350f('0x10e')]('marker-count')&&(_0x1e7a97+=':'+_0x3bff05[_0x350f('0x10e')](_0x350f('0x112'))),_0x2ef49e[_0x350f('0x79')]('$marker',{'data-name':_0x1e7a97});}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('upcast')[_0x350f('0xe4')]({'view':_0x350f('0xa0')}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x93735e=>{_0x93735e['on'](_0x350f('0xe'),_0x188385(),{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x40423f=>{_0x40423f['on'](_0x350f('0x7b'),(_0x19f6a9,_0x1c5eeb,_0x3637df)=>{const _0x3c36b5=_0x3637df[_0x350f('0x5a')][_0x350f('0x5e')](_0x1c5eeb[_0x350f('0xa1')]);if(_0x3c36b5)for(const _0x3f360b of _0x3c36b5)_0x3f360b[_0x350f('0x91')]('addHighlight')||(_0x3637df['writer']['removeClass']([_0x350f('0x53'),_0x350f('0x3e'),'ck-suggestion-marker--active'],_0x3f360b),_0x3637df[_0x350f('0x8c')]['removeAttribute'](_0x350f('0xd7'),_0x3f360b),_0x3637df['mapper'][_0x350f('0xb5')](_0x3f360b,_0x1c5eeb['markerName']));},{'priority':'high'});}),_0x5a8c0c[_0x350f('0x18')]['document'][_0x350f('0x80')](_0x577f5d=>{let _0x2d7fc4=!0x1;const _0x20a2da=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')]['differ'][_0x350f('0x109')]()),_0x67ae9e=new Set();for(const {name:_0x1f8221,data:_0x5d06fd}of _0x20a2da){const {group:_0x15a9b2,type:_0x503f85,id:_0x56ce1e}=this[_0x350f('0xb1')](_0x1f8221);if(_0x350f('0xa0')!==_0x15a9b2)continue;const _0x1e99cc=this[_0x350f('0xa6')][_0x350f('0x35')](_0x56ce1e);if(null!=_0x5d06fd[_0x350f('0x4a')]){'formatInline'==_0x503f85&&(_0x2d7fc4=_0x2d7fc4||Ct(_0x5d06fd[_0x350f('0x4a')],_0x1f8221,_0x577f5d,_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')]));if(_0x5d06fd[_0x350f('0x4a')]['isCollapsed']||_0x350f('0x100')==_0x5d06fd[_0x350f('0x4a')][_0x350f('0x5')][_0x350f('0x6a')]||_0x350f('0xcd')==_0x503f85&&!_t(_0x5d06fd[_0x350f('0x4a')])||'deletion'==_0x503f85&&!(!Dt(_0x35ffa0=_0x5d06fd['newRange'])&&!function(_0x5e39f8){return _0x5e39f8[_0x350f('0x88')][_0x350f('0xf2')]==_0x5e39f8[_0x350f('0x41')][_0x350f('0x71')]&&_0x5e39f8['start'][_0x350f('0x11a')];}(_0x35ffa0)))_0x577f5d[_0x350f('0x63')](_0x1f8221),_0x2d7fc4=!0x0;else{if(!_0x1e99cc||!_0x1e99cc[_0x350f('0x129')])continue;_0x67ae9e[_0x350f('0x94')](_0x1e99cc);}}}var _0x35ffa0;return _0x67ae9e[_0x350f('0xfa')]>0x0&&(_0x2d7fc4=!!this[_0x350f('0x4e')](_0x67ae9e)||_0x2d7fc4),_0x2d7fc4;}),_0x5a8c0c['model'][_0x350f('0xce')][_0x350f('0x80')](_0x35889b=>{let _0x128166=!0x1;for(const _0x3d438e of _0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')][_0x350f('0x1c')]()){if('insert'!=_0x3d438e[_0x350f('0xb')])continue;const _0x4b1c0f=_0x3d438e[_0x350f('0x5b')][_0x350f('0x6')](_0x3d438e[_0x350f('0x12e')]);if(_0x4b1c0f[_0x350f('0x11a')])for(const _0x4b4f69 of this[_0x350f('0xa6')][_0x350f('0xee')]()){if(_0x4b4f69[_0x350f('0x103')]||!_0x4b4f69[_0x350f('0x129')])continue;if(_0x350f('0xcd')!=_0x4b4f69[_0x350f('0xb')])continue;const _0x596185=_0x4b4f69['getFirstRange']();if(_0x596185['start']['parent']!=_0x596185[_0x350f('0x41')]['parent']&&_0x596185[_0x350f('0x41')][_0x350f('0xdc')](_0x3d438e['position'])){const _0x4e045b=_0x5a8c0c['model'][_0x350f('0x107')](_0x596185[_0x350f('0x88')],_0x4b1c0f);_0x35889b[_0x350f('0x7f')](_0x4b4f69[_0x350f('0x29')](),{'range':_0x4e045b}),_0x128166=!0x0;}}}return _0x128166;}),_0x5a8c0c[_0x350f('0x18')][_0x350f('0x84')]['on'](_0x350f('0xd8'),(_0x17d0da,_0x365487,_0x3b96ad)=>{if(null==_0x3b96ad){const {id:_0x4d9ef9}=this[_0x350f('0xb1')](_0x365487[_0x350f('0x113')]),_0x4ac7e4=this['_suggestions'][_0x350f('0x35')](_0x4d9ef9);_0x4ac7e4&&_0x4ac7e4[_0x350f('0xbe')](_0x365487[_0x350f('0x113')]);}}),_0x5a8c0c['model']['document']['on'](_0x350f('0xc1'),()=>{const _0x324523=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')]['getChangedMarkers']())[_0x350f('0xf4')](_0x389dd6=>_0x350f('0xa0')===this[_0x350f('0xb1')](_0x389dd6['name'])[_0x350f('0x28')]);if(0x0===_0x324523[_0x350f('0x12e')])return;_0x324523[_0x350f('0x55')]((_0x3ad3df,_0x15da92)=>{const _0x4a5883=_0x3ad3df[_0x350f('0x6f')][_0x350f('0xcb')],_0x2901b6=_0x15da92['data'][_0x350f('0xcb')];return null===_0x4a5883&&null===_0x2901b6?0x0:null===_0x4a5883&&null!==_0x2901b6?-0x1:null!==_0x4a5883&&null===_0x2901b6?0x1:_0x4a5883[_0x350f('0x88')][_0x350f('0x11b')](_0x2901b6[_0x350f('0x88')])?-0x1:0x1;});const _0x67deaf=new Set(),_0x20b4a6=new Set();for(const {name:_0x55bf57,data:_0x48dff8}of _0x324523){const {id:_0x495590}=this[_0x350f('0xb1')](_0x55bf57);if(null===_0x48dff8['oldRange']){const _0x121478=this[_0x350f('0xec')](_0x55bf57);_0x20b4a6[_0x350f('0x94')](_0x121478);}else{const _0x289638=this[_0x350f('0xa6')][_0x350f('0x35')](_0x495590);null!==_0x48dff8[_0x350f('0x4a')]||_0x289638['isInContent']?(_0x67deaf['add'](_0x289638[_0x350f('0x51')]),_0x20b4a6[_0x350f('0x94')](_0x289638)):this[_0x350f('0xc0')](_0x289638);}}_0x20b4a6[_0x350f('0xfa')]>0x0&&this['_refreshSuggestionsChain'](_0x20b4a6);for(const _0x117667 of _0x67deaf)this[_0x350f('0x6d')]('suggestionChanged',_0x117667);}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xd9'),(_0x4ce38b,_0x489155)=>{const _0x45a442=_0x489155[0x0];if(!this[_0x350f('0xa6')][_0x350f('0xfa')])return;if(!_0x45a442[_0x350f('0xe9')])return;if(_0x45a442[_0x350f('0x90')][_0x350f('0x10')]||!_0x45a442[_0x350f('0x90')]['isLocal'])return;let _0x4d64ac,_0x297439;switch(_0x45a442[_0x350f('0xb')]){case _0x350f('0xf0'):_0x4d64ac=_0x5a8c0c['model']['createPositionAt'](_0x45a442[_0x350f('0x5b')]),_0x297439=_0x4d64ac[_0x350f('0x6')](_0x45a442[_0x350f('0x105')]);break;case _0x350f('0x16'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x45a442[_0x350f('0x20')]),_0x297439=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442[_0x350f('0xba')]);break;case _0x350f('0x36'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442['targetPosition']),_0x297439=_0x4d64ac['getShiftedBy'](_0x45a442[_0x350f('0x105')]);break;default:return;}const _0x219649=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x107')](_0x4d64ac,_0x297439);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const {suggestion:_0x75fd13,meta:_0x47cfc9}of this['_findSuggestions'](_0x219649)){if(_0x75fd13['isMultiRange'])continue;if(_0x350f('0x0')==_0x75fd13[_0x350f('0xb')])continue;const _0x2a3467=_0x75fd13[_0x350f('0x6f')]&&_0x75fd13['data'][_0x350f('0x4f')];(_0x350f('0xcd')!=_0x75fd13['type']||_0x350f('0x16')==_0x45a442['type']&&!_0x2a3467)&&(_0x47cfc9[_0x350f('0x57')]||_0x350f('0xb3')==_0x75fd13[_0x350f('0xb')]&&_0x47cfc9['isOwn']||_0x75fd13[_0x350f('0x3c')]()[_0x350f('0xf8')](_0x219649)&&this[_0x350f('0x104')](_0x75fd13,_0x4d64ac,_0x297439));}});},{'priority':_0x350f('0x82')}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xaa'),(_0x1fa3e0,_0x5c57c7)=>{const _0x60f1da=_0x5c57c7[0x0],_0x3298d3=_0x5c57c7[0x1];if(_0x3298d3&&_0x3298d3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x350f('0x119')][_0x350f('0x31')])return;if(_0x60f1da[_0x350f('0x117')])return;const _0x5ae90c=_0x5a8c0c[_0x350f('0x18')]['schema'],{start:_0x345400,end:_0x281790}=_0x60f1da[_0x350f('0x3c')](),_0x4cd966=_0x345400[_0x350f('0x23')]&&_0x5ae90c[_0x350f('0x1f')](_0x345400[_0x350f('0x23')])?null:_0x5ae90c['getNearestSelectionRange'](_0x345400,_0x350f('0x97')),_0x48c5c5=_0x281790[_0x350f('0x71')]&&_0x5ae90c[_0x350f('0x1f')](_0x281790[_0x350f('0x71')])?null:_0x5ae90c[_0x350f('0x8b')](_0x281790,'backward'),_0x4deb99=_0x5a8c0c['model'][_0x350f('0x107')](_0x4cd966?_0x4cd966[_0x350f('0x88')]:_0x345400,_0x48c5c5?_0x48c5c5['end']:_0x281790);_0x5a8c0c['model'][_0x350f('0x8a')](_0x3a1e15=>{this[_0x350f('0x4')](_0x4deb99);const _0x3dd609=_0x5a8c0c[_0x350f('0x18')]['schema']['getNearestSelectionRange'](_0x4deb99[_0x350f('0x88')]);_0x60f1da['is'](_0x350f('0x59'))?_0x3a1e15['setSelection'](_0x3dd609):_0x60f1da[_0x350f('0xc4')](_0x3dd609);}),_0x1fa3e0[_0x350f('0x4c')]();},{'priority':_0x59dfda[_0x350f('0xe2')]+0xa}),_0x5a8c0c['model']['on'](_0x350f('0x7c'),(_0x42087f,_0x4ee43c)=>{const _0x451212=_0x4ee43c[_0x4ee43c[_0x350f('0x12e')]-0x1];_0x451212&&_0x451212[_0x350f('0x33')]||this[_0x350f('0x65')]||this['trackChangesCommand']['value']&&(_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{let _0x44b51a=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x7c')](_0x4ee43c[0x0],_0x4ee43c[0x1],_0x4ee43c[0x2],{'forceDefaultExecution':!0x0});if(!_0x44b51a)return;_0x42087f[_0x350f('0xdb')]=_0x44b51a[_0x350f('0xf')]();const _0x1f245a=_0x44b51a[_0x350f('0x41')][_0x350f('0x71')],_0x33d792=_0x5a8c0c['model'][_0x350f('0x44')];_0x1f245a&&_0x33d792[_0x350f('0x47')](_0x1f245a)&&!_0x33d792[_0x350f('0xef')](_0x1f245a)&&(_0x44b51a=_0x5a8c0c['model']['createRange'](_0x44b51a[_0x350f('0x88')],_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x1f245a,_0x350f('0x41')))),this[_0x350f('0x13')](_0x44b51a);}),_0x42087f['stop']());},{'priority':_0x350f('0x21')}),this[_0x350f('0x49')][_0x350f('0x12f')]['add'](_0x350f('0x64'),this[_0x350f('0x119')]),this['enableCommand'](_0x350f('0x64'));const _0x4a0e01=new _0x4bcffe(_0x5a8c0c,this[_0x350f('0xa6')]);_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')](_0x350f('0x12a'),_0x4a0e01),this['enableCommand'](_0x350f('0x12a'));const _0x1fda72=new _0x4186d0(_0x5a8c0c,this['_suggestions']);_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0xbb'),_0x1fda72),this[_0x350f('0x126')](_0x350f('0xbb')),_0x5a8c0c['commands']['add'](_0x350f('0x9'),new _0x4a8fef(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x9')),_0x5a8c0c[_0x350f('0x12f')]['add'](_0x350f('0x6b'),new _0x4a8fef(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x6b')),_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0x86'),new _0xea949b(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')]('acceptSelectedSuggestions'),_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')]('discardSelectedSuggestions',new _0xea949b(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0xc7'));const _0x34df29=_0x5a8c0c[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128'));this[_0x350f('0x83')](_0x34df29,_0x350f('0x1e'),(_0x29c5f9,{threadId:_0x5f0f7c})=>{const _0x4f5ca2=this['_suggestions'][_0x350f('0x35')](_0x5f0f7c);_0x4f5ca2&&_0x4f5ca2[_0x350f('0x135')]&&0x1===_0x4f5ca2[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x5f0f7c,{'hasComments':!0x0});},{'priority':_0x350f('0xd2')}),this['listenTo'](_0x34df29,_0x350f('0x101'),(_0x105ce3,{threadId:_0x286176})=>{const _0x153c0e=this[_0x350f('0xa6')][_0x350f('0x35')](_0x286176);_0x153c0e&&_0x153c0e[_0x350f('0x135')]&&!_0x153c0e[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x286176,{'hasComments':!0x1});},{'priority':'low'});}set[_0x350f('0x121')](_0x24fae5){if(this['_adapter'])throw new _0x119d3e(_0x350f('0x8e'),this);this[_0x350f('0x12d')]=_0x24fae5;}get[_0x350f('0x121')](){return this[_0x350f('0x12d')];}[_0x350f('0x48')]({skipNotAttached:_0x15e49c=!0x1,toJSON:_0x35b3a2=!0x1}={}){const _0x1fcd1a=[];for(const _0x4124ab of this[_0x350f('0xa6')][_0x350f('0xee')]())_0x15e49c&&!_0x4124ab[_0x350f('0x129')]||_0x1fcd1a[_0x350f('0x123')](_0x4124ab);return _0x35b3a2?_0x1fcd1a['map'](_0x28cd60=>_0x28cd60[_0x350f('0xa5')]()):_0x1fcd1a;}[_0x350f('0xbc')](_0x4bbff7){const _0x46194d=this['_suggestions'][_0x350f('0x35')](_0x4bbff7);if(!_0x46194d)throw new _0x119d3e(_0x350f('0x58'),this);return _0x46194d;}[_0x350f('0x24')](_0x16aa5f){return this['_suggestions'][_0x350f('0xf1')](_0x16aa5f);}[_0x350f('0x7d')](_0x83ef1c){const {authorId:_0x4f6825,id:_0x32ef33,attributes:_0x48f0d8}=_0x83ef1c,[_0x1a7b61,_0x454c3a]=_0x83ef1c['type'][_0x350f('0x16')](':'),_0x5a7369=this['_suggestions'][_0x350f('0x35')](_0x32ef33)||this[_0x350f('0x134')](_0x1a7b61,_0x454c3a,_0x32ef33,_0x4f6825,_0x48f0d8);if(this[_0x350f('0x93')](_0x5a7369),this['_checkSuggestionCorrectness'](_0x5a7369,_0x1a7b61,_0x454c3a||null,_0x4f6825),_0x5a7369[_0x350f('0x11')]=_0x83ef1c['createdAt'],_0x48f0d8&&_0x48f0d8[_0x350f('0x110')]){const _0x5ba79c=_0x48f0d8[_0x350f('0x110')],_0x29df94=this[_0x350f('0xf9')](_0x5ba79c['authorName']);_0x5a7369[_0x350f('0x52')]=_0x5ba79c[_0x350f('0x11')],_0x5a7369[_0x350f('0x17')]=_0x29df94,_0x5a7369['isExternal']=!0x0;}else _0x5a7369[_0x350f('0x52')]=_0x83ef1c[_0x350f('0x11')];switch(_0x83ef1c[_0x350f('0x6f')]&&(_0x5a7369[_0x350f('0x6f')]=_0x83ef1c['data']),_0x83ef1c['attributes']&&(_0x5a7369[_0x350f('0x108')]=_0x83ef1c[_0x350f('0x108')]),this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]||(_0x5a7369[_0x350f('0x2f')]=!0x0),this[_0x350f('0x9e')][_0x350f('0x35')](_0x5a7369)){case _0x350f('0xc8'):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'dataReady');break;case _0x350f('0xe8'):_0x5a7369[_0x350f('0x129')]?(this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'ready'),this[_0x350f('0x6d')]('suggestionLoaded',_0x5a7369)):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'removed');}return _0x5a7369;}[_0x350f('0x12a')](_0x598410){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x3ba021 of _0x598410[_0x350f('0x136')]())_0x3ba021[_0x350f('0xd0')]();});});}[_0x350f('0xbb')](_0x306bc3){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x220c02 of _0x306bc3[_0x350f('0x136')]())_0x220c02['discard']();});});}[_0x350f('0x126')](_0x2ac6a6,_0x459c7d){const _0x5d6cfe=this[_0x350f('0x49')][_0x350f('0x12f')][_0x350f('0x35')](_0x2ac6a6);if(!_0x5d6cfe)throw new _0x119d3e(_0x350f('0x50'),this,{'commandName':_0x2ac6a6});this['_enabledCommands'][_0x350f('0x94')](_0x5d6cfe),_0x459c7d&&_0x5d6cfe['on'](_0x350f('0x76'),(_0x238f81,_0x277cc0)=>{this[_0x350f('0x119')][_0x350f('0x31')]&&(this[_0x350f('0x65')]||_0x277cc0['length']>0x0&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]['forceDefaultExecution']||(_0x459c7d((..._0xec9968)=>_0x5d6cfe[_0x350f('0x76')](..._0xec9968,{'forceDefaultExecution':!0x0}),..._0x277cc0),_0x238f81[_0x350f('0x4c')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x51d7a4){let _0x40f02b,_0x4225a9;const _0x3c3bb3=this[_0x350f('0x65')];this[_0x350f('0x65')]=!0x0;try{_0x40f02b=_0x51d7a4();}catch(_0x2ce40c){_0x4225a9=_0x2ce40c;}return _0x3c3bb3||(this[_0x350f('0x65')]=!0x1),_0x4225a9&&_0x119d3e['rethrowUnexpectedError'](_0x4225a9,this),_0x40f02b;}['markInsertion'](_0x5cc0a3,_0x58df4c=null,_0x507b25={}){if(_0x5cc0a3[_0x350f('0x117')])return null;const _0x1109cf=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'];for(const {suggestion:_0x457c26,meta:_0x2da8cd}of this[_0x350f('0xea')](_0x5cc0a3,_0x350f('0xb3')))if(_0x2da8cd['isOwn']){if(!_0x2da8cd[_0x350f('0xfc')])return _0x457c26;if(_0x58df4c==_0x457c26[_0x350f('0xf6')]){const _0x531f2e=_0x457c26[_0x350f('0x3c')]();return _0x531f2e[_0x350f('0x88')][_0x350f('0xdc')](_0x5cc0a3[_0x350f('0x41')])?this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x5cc0a3[_0x350f('0x88')],_0x531f2e[_0x350f('0x41')])):this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x531f2e[_0x350f('0x88')],_0x5cc0a3[_0x350f('0x41')])),_0x457c26;}}const _0x53dc7e=_0x4cb20a(),_0x25df07=_0x1109cf['id'],_0x2a57a5=_0x58df4c?_0x350f('0x10b')+_0x58df4c:_0x350f('0xb3'),_0xaee594=this[_0x350f('0x122')]({'id':_0x53dc7e,'type':_0x2a57a5,'createdAt':new Date(),'authorId':_0x25df07,'attributes':_0x507b25});return this['_addSuggestionMarker'](_0x2a57a5,_0x53dc7e,_0x25df07,_0x5cc0a3),_0xaee594;}['markMultiRangeInsertion'](_0x50d360,_0x23c15c=_0x350f('0x9f'),_0x535aea={}){const _0x2d7036=this[_0x350f('0x49')]['plugins']['get']('Users')['me'],_0x460172=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xb3'),_0x23c15c,_0x350f('0x1d'));for(const _0x14bbde of this[_0x350f('0x48')]())if(_0x14bbde[_0x350f('0x17')]['id']==_0x2d7036['id']&&_0x350f('0xb3')==_0x14bbde['type']&&_0x14bbde['subType']==_0x23c15c&&(_0x460172(_0x14bbde[_0x350f('0x72')](),_0x50d360)||_0x460172(_0x50d360,_0x14bbde['getRanges']()))){for(const _0x30263f of _0x50d360)_0x14bbde[_0x350f('0xe0')](_0x30263f);return _0x14bbde;}for(const _0x274191 of _0x50d360)for(const {suggestion:_0x36de1b,meta:_0x256895}of this['_findSuggestions'](_0x274191,_0x350f('0xb3'))){if(!_0x256895['isOwn'])continue;let _0x3149ae=!0x0;for(const _0x2b98fd of _0x36de1b[_0x350f('0x72')]())for(const _0x319757 of _0x50d360)if(!_0x2b98fd['containsRange'](_0x319757)){_0x3149ae=!0x1;break;}if(_0x3149ae)return _0x36de1b;}const _0x3cbfa6=_0x4cb20a(),_0x4b5629=_0x2d7036['id'],_0x1885ae=_0x350f('0x10b')+_0x23c15c,_0x4732eb=this['_setSuggestionData']({'id':_0x3cbfa6,'type':_0x1885ae,'createdAt':new Date(),'authorId':_0x4b5629,'attributes':_0x535aea});for(const _0x1a6804 of _0x50d360)this['_addSuggestionMarker'](_0x1885ae,_0x3cbfa6,_0x4b5629,_0x1a6804,_0x14b365[_0x350f('0xe6')]());return _0x4732eb;}[_0x350f('0x87')](_0x2f0a18,_0x2d2c5b,_0x34f3c4=null,_0x4c3fd3={}){if(_0x34f3c4=_0x34f3c4||Bt(_0x2d2c5b),_0x2f0a18[_0x350f('0x117')])return null;if(!0x1===this[_0x350f('0xff')]){const _0x3e9ba3=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');return this['forceDefaultExecution'](()=>_0x3e9ba3([_0x2f0a18],_0x2d2c5b,_0x4c3fd3)),null;}const _0x28eb0f=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x45cdb4=[];for(const {suggestion:_0x364019,meta:_0x453951}of this[_0x350f('0xea')](_0x2f0a18,_0x350f('0xb3')))_0x453951[_0x350f('0x115')]&&!_0x453951[_0x350f('0x3f')]&&_0x45cdb4[_0x350f('0x123')](..._0x364019[_0x350f('0x72')]());const _0x5188f7=function(_0x5b0d76,_0x40f1d8){const _0x45cb64=[];for(const _0x25963f of _0x40f1d8){const _0x57cf8c=_0x5b0d76[_0x350f('0x5f')](_0x25963f);_0x57cf8c&&_0x45cb64[_0x350f('0x123')](_0x57cf8c);}return _0x45cb64;}(_0x2f0a18,_0x45cdb4),_0x77388=function(_0x42b57c,_0x4a6b40){const _0x2c31ee=[_0x42b57c];for(const _0x4798e8 of _0x4a6b40){let _0x17ec16=0x0;for(;_0x17ec16<_0x2c31ee[_0x350f('0x12e')];){const _0x4832b7=_0x2c31ee[_0x17ec16][_0x350f('0x62')](_0x4798e8);_0x2c31ee[_0x350f('0x1a')](_0x17ec16,0x1,..._0x4832b7),_0x17ec16+=_0x4832b7[_0x350f('0x12e')];}}return _0x2c31ee;}(_0x2f0a18,_0x45cdb4);_0x5188f7[_0x350f('0x12e')]&&this[_0x350f('0x3b')]['change'](()=>{for(const _0x202df2 of _0x5188f7){const _0x53b0e1=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');this[_0x350f('0x33')](()=>_0x53b0e1([_0x202df2],_0x2d2c5b,_0x4c3fd3));}});for(const _0x40a706 of _0x77388){let _0x1ca11f=null,_0x4e2b90=_0x40a706[_0x350f('0x88')],_0x4af164=_0x40a706['end'];for(const {suggestion:_0x296ef9,meta:_0x2b535f}of this[_0x350f('0xea')](_0x40a706,_0x350f('0x0'))){if(!_0x2b535f[_0x350f('0x115')])continue;if(_0x296ef9[_0x350f('0xf6')]!=_0x34f3c4)continue;const _0xda85a=_0x296ef9[_0x350f('0x3c')]();if(_0xda85a[_0x350f('0xf8')](_0x40a706,!0x0))return null;_0x4e2b90=_0x4e2b90[_0x350f('0x11b')](_0xda85a['start'])?_0x4e2b90:_0xda85a[_0x350f('0x88')],_0x4af164=_0x4af164[_0x350f('0x6c')](_0xda85a[_0x350f('0x41')])?_0x4af164:_0xda85a[_0x350f('0x41')],_0x1ca11f?_0xda85a[_0x350f('0x88')][_0x350f('0x11b')](_0x1ca11f[_0x350f('0x3c')]()['start'])?(_0x1ca11f[_0x350f('0x22')](),_0x1ca11f=_0x296ef9):_0x296ef9[_0x350f('0x22')]():_0x1ca11f=_0x296ef9;}const _0x5b8126=this['_model'][_0x350f('0x107')](_0x4e2b90,_0x4af164);if(_0x1ca11f)this[_0x350f('0x4d')](_0x1ca11f,_0x5b8126);else{const _0x4b46e0=_0x4cb20a(),_0x3cc1bd=_0x28eb0f['id'];this[_0x350f('0x122')]({'id':_0x4b46e0,'type':_0x350f('0xd')+_0x34f3c4,'data':_0x2d2c5b,'createdAt':new Date(),'authorId':_0x3cc1bd,'attributes':_0x4c3fd3}),this[_0x350f('0x2d')](_0x350f('0xd')+_0x34f3c4,_0x4b46e0,_0x3cc1bd,_0x5b8126);}}return null;}[_0x350f('0x75')](_0x2001fc,_0x16bf22,_0x3ed712=[],_0x1b5d23=null,_0x5f841c={}){_0x16bf22[_0x350f('0xc')]||(_0x16bf22['formatGroupId']=_0x16bf22[_0x350f('0xda')]),_0x16bf22['multipleBlocks']=_0x2001fc['is'](_0x350f('0x56')),_0x1b5d23=_0x1b5d23||Bt(_0x16bf22);const _0x5dedba=_0x3ed712[_0x350f('0x3d')](_0x57b896=>Mt(_0x57b896,this[_0x350f('0x3b')])),_0x47d47b=_0x2001fc['is'](_0x350f('0x56'))?_0x2001fc:Mt(_0x2001fc,this['_model']);if(!0x1===this[_0x350f('0xff')]){const _0x1437dd=this[_0x350f('0x4b')]['getSuggestionCallback']('formatBlock',_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x1437dd([_0x47d47b],_0x16bf22,_0x5f841c)),null;}_0x5dedba['push'](_0x47d47b);let _0x1a94db=!0x0;for(const _0x48f433 of _0x5dedba)if(!this['_rangeIsInLocalUserInsertion'](_0x48f433)){_0x1a94db=!0x1;break;}if(_0x1a94db){const _0x19591d=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x19591d([_0x47d47b],_0x16bf22,_0x5f841c)),null;}let _0x16ace9=null,_0x50f6ae=_0x47d47b[_0x350f('0x88')],_0x2c2edf=_0x47d47b[_0x350f('0x41')];for(const {suggestion:_0x162bc7,meta:_0x3c28ed}of this['_findSuggestions'](_0x47d47b,_0x350f('0xcd'))){if(!_0x3c28ed[_0x350f('0x115')]||_0x3c28ed['isNextTo']||_0x3c28ed[_0x350f('0x57')]||_0x3c28ed[_0x350f('0x3f')])continue;if(_0x162bc7[_0x350f('0x6f')]['formatGroupId']!=_0x16bf22[_0x350f('0xc')])continue;const _0xee1340=_0x162bc7[_0x350f('0x3c')]();if(_0x162bc7[_0x350f('0xf6')]==_0x1b5d23){if(_0xee1340[_0x350f('0xf8')](_0x47d47b,!0x0))return null;_0x50f6ae=_0x50f6ae[_0x350f('0x11b')](_0xee1340['start'])?_0x50f6ae:_0xee1340[_0x350f('0x88')],_0x2c2edf=_0x2c2edf[_0x350f('0x6c')](_0xee1340[_0x350f('0x41')])?_0x2c2edf:_0xee1340[_0x350f('0x41')],_0x16ace9?_0xee1340[_0x350f('0x88')]['isBefore'](_0x16ace9['getFirstRange']()[_0x350f('0x88')])?(_0x16ace9[_0x350f('0x22')](),_0x16ace9=_0x162bc7):_0x162bc7[_0x350f('0x22')]():_0x16ace9=_0x162bc7;}else{const _0x236d7c=_0x47d47b[_0x350f('0x5f')](_0xee1340);this[_0x350f('0x78')](_0x162bc7,_0x236d7c);}}const _0x49db2c=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'],_0x5d6d11=_0x4cb20a(),_0x43b5bd=_0x49db2c['id'];if(_0x16ace9)return this[_0x350f('0x4d')](_0x16ace9,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x16ace9;{const _0x4b6a28=this[_0x350f('0x122')]({'id':_0x5d6d11,'type':'formatBlock:'+_0x1b5d23,'data':_0x16bf22,'createdAt':new Date(),'authorId':_0x43b5bd,'attributes':_0x5f841c});return this[_0x350f('0x2d')](_0x350f('0xac')+_0x1b5d23,_0x5d6d11,_0x43b5bd,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x4b6a28;}}['markMultiRangeBlockFormat'](_0x4d2ead,_0x309c8f,_0x2b9809=[],_0x3699ae=null,_0x31bf53={}){_0x309c8f[_0x350f('0xc')]||(_0x309c8f[_0x350f('0xc')]=_0x309c8f['commandName']);const _0xc21016=_0x4d2ead[0x0];_0x309c8f[_0x350f('0x4f')]=_0xc21016['is'](_0x350f('0x56')),_0x3699ae=_0x3699ae||Bt(_0x309c8f);const _0x3bbc3d=_0x2b9809[_0x350f('0x3d')](_0x357af4=>Mt(_0x357af4,this[_0x350f('0x3b')])),_0xd02e20=_0xc21016['is'](_0x350f('0x56'))?_0x4d2ead:_0x4d2ead['map'](_0x156977=>Mt(_0x156977,this[_0x350f('0x3b')]));if(!0x1===this['_trackFormatChanges']){const _0x5c0fa9=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x3699ae,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x5c0fa9(_0xd02e20,_0x309c8f,_0x31bf53)),null;}_0x3bbc3d[_0x350f('0x123')](..._0xd02e20);let _0x3eb3bf=!0x0;for(const _0x3dcd15 of _0x3bbc3d)if(!this[_0x350f('0xf7')](_0x3dcd15)){_0x3eb3bf=!0x1;break;}if(_0x3eb3bf){const _0x51ebd8=this[_0x350f('0x4b')]['getSuggestionCallback'](_0x350f('0xcd'),_0x3699ae,'accept');return this[_0x350f('0x33')](()=>_0x51ebd8(_0xd02e20,_0x309c8f,_0x31bf53)),null;}const _0x5beaeb=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x5946bf of this['getSuggestions']()){if(_0x5946bf[_0x350f('0x17')]['id']!=_0x5beaeb['id'])continue;if(_0x350f('0xcd')!=_0x5946bf[_0x350f('0xb')]||_0x5946bf[_0x350f('0x6f')][_0x350f('0xc')]!=_0x309c8f[_0x350f('0xc')])continue;const _0x303dcc=_0x5946bf[_0x350f('0xf6')]==_0x3699ae;for(let _0x3320c2=0x0;_0x3320c2<_0xd02e20['length'];_0x3320c2++){const _0x25e1af=_0xd02e20[_0x3320c2];for(const _0x1858ae of _0x5946bf[_0x350f('0x27')]()){const _0x2cb58d=_0x1858ae['getRange']();if(_0x25e1af[_0x350f('0xdc')](_0x2cb58d)){_0x303dcc?(_0xd02e20[_0x350f('0x1a')](_0x3320c2,0x1),_0x3320c2--):_0x5946bf[_0x350f('0x63')](_0x1858ae['name']);break;}}}}if(0x0==_0xd02e20[_0x350f('0x12e')])return null;const _0x3c235c=this['_suggestionFactory'][_0x350f('0x30')]('formatBlock',_0x3699ae,_0x350f('0x1d'));for(const _0x5bfc15 of this[_0x350f('0x48')]())if(_0x5bfc15[_0x350f('0x17')]['id']==_0x5beaeb['id']&&_0x350f('0xcd')==_0x5bfc15[_0x350f('0xb')]&&_0x5bfc15[_0x350f('0x6f')][_0x350f('0xc')]==_0x309c8f[_0x350f('0xc')]&&_0x5bfc15[_0x350f('0xf6')]==_0x3699ae&&(_0x3c235c(_0x5bfc15[_0x350f('0x72')](),_0xd02e20)||_0x3c235c(_0xd02e20,_0x5bfc15[_0x350f('0x72')]()))){for(const _0x4a9a56 of _0xd02e20)_0x5bfc15[_0x350f('0xe0')](_0x4a9a56);return _0x5bfc15;}const _0x116125=_0x4cb20a(),_0x47e80f=_0x5beaeb['id'],_0x570891=_0x350f('0xac')+_0x3699ae,_0xb9e47b=this['_setSuggestionData']({'id':_0x116125,'type':_0x570891,'data':_0x309c8f,'createdAt':new Date(),'authorId':_0x47e80f,'attributes':_0x31bf53});for(const _0x37445f of _0xd02e20)this[_0x350f('0x2d')](_0x570891,_0x116125,_0x47e80f,_0x37445f,_0x14b365[_0x350f('0xe6')]());return _0xb9e47b;}[_0x350f('0x4')](_0x2b0f55,_0x50f2dd=null,_0x4178ea={}){if(_0x2b0f55[_0x350f('0x117')])return null;const _0x4f2238=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x5cc337=new _0x319865(_0x2b0f55['start'],_0x2b0f55['end']);for(const {suggestion:_0x4e090b,meta:_0x77d797}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0xb3')))if(_0x77d797[_0x350f('0x115')]&&!_0x77d797[_0x350f('0xfc')]){if(_0x4e090b[_0x350f('0x103')]){const _0x418ff5=_0x4e090b[_0x350f('0x72')]()[_0x350f('0xf4')](_0x1eed0f=>'$graveyard'!=_0x1eed0f[_0x350f('0x5')][_0x350f('0x6a')]);_0x418ff5[_0x350f('0x1b')](_0xa6b7a4=>_0x5cc337[_0x350f('0xf8')](_0xa6b7a4,!0x0))&&_0x4e090b[_0x350f('0xe1')]();if(_0x418ff5['some'](_0x2c658e=>_0x2c658e[_0x350f('0xf8')](_0x5cc337,!0x0))){const _0x9a3a06=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x50f2dd,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x9a3a06([_0x5cc337],null,_0x4178ea)),null;}}else{const _0x4dcd2f=_0x5cc337[_0x350f('0x5f')](_0x4e090b[_0x350f('0x3c')]());_0x4e090b[_0x350f('0xb7')]([_0x4dcd2f],null,_0x4178ea);}}if(_0x5cc337[_0x350f('0xe5')](),_0x5cc337[_0x350f('0x117')]||_0x350f('0x100')==_0x5cc337[_0x350f('0x5')][_0x350f('0x6a')])return null;let _0x2c3c05=null,_0x455d5f=_0x5cc337['start'],_0x580d8c=_0x5cc337['end'];for(const {suggestion:_0x330c54,meta:_0x25e1e0}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0x11f')))if(_0x25e1e0['isOwn']){if(_0x330c54[_0x350f('0x103')]){let _0xcc8b33=!0x0;for(const _0x260969 of _0x330c54['getRanges']()){if(_0x260969[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x5cc337['containsRange'](_0x260969)||(_0xcc8b33=!0x1);}_0xcc8b33&&_0x330c54[_0x350f('0xe1')]();}else{const _0x296dbd=_0x330c54['getFirstRange']();if(_0x296dbd[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x455d5f=_0x455d5f[_0x350f('0x11b')](_0x296dbd[_0x350f('0x88')])?_0x455d5f:_0x296dbd[_0x350f('0x88')],_0x580d8c=_0x580d8c[_0x350f('0x6c')](_0x296dbd['end'])?_0x580d8c:_0x296dbd[_0x350f('0x41')],_0x2c3c05?_0x296dbd[_0x350f('0x88')][_0x350f('0x11b')](_0x2c3c05['getFirstRange']()[_0x350f('0x88')])?(_0x2c3c05[_0x350f('0x22')](),_0x2c3c05=_0x330c54):_0x330c54[_0x350f('0x22')]():_0x2c3c05=_0x330c54;}}if(_0x2c3c05)return this[_0x350f('0x4d')](_0x2c3c05,this[_0x350f('0x3b')]['createRange'](_0x455d5f,_0x580d8c)),_0x2c3c05;{const _0x4105bc=_0x4cb20a(),_0x221136=this[_0x350f('0x3b')][_0x350f('0x107')](_0x455d5f,_0x580d8c),_0x336022=_0x4f2238['id'],_0x16893c=_0x50f2dd?'deletion:'+_0x50f2dd:_0x350f('0x11f'),_0x20db8d=this[_0x350f('0x122')]({'id':_0x4105bc,'type':_0x16893c,'createdAt':new Date(),'authorId':_0x336022,'attributes':_0x4178ea});return this[_0x350f('0x2d')](_0x16893c,_0x4105bc,_0x336022,_0x221136),_0x20db8d;}}['markMultiRangeDeletion'](_0x5557c6,_0x4c53ed=_0x350f('0x9f'),_0x5ad3c9={}){const _0x1e06b3=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x3c8ef5=_0x5557c6[_0x350f('0x3d')](_0x10d70f=>new _0x319865(_0x10d70f[_0x350f('0x88')],_0x10d70f[_0x350f('0x41')])),_0x3340bb=new Set();for(const _0x43be22 of _0x3c8ef5)for(const {suggestion:_0x43f35c,meta:_0xfe976}of this[_0x350f('0xea')](_0x43be22,_0x350f('0xb3')))_0xfe976['isOwn']&&!_0xfe976['isNextTo']&&_0x3340bb[_0x350f('0x94')](_0x43f35c);for(const _0x123f7c of _0x3340bb)if(_0x123f7c[_0x350f('0x103')]){const _0x32e386=_0x123f7c['getRanges']();(!_0x123f7c[_0x350f('0x108')]||!_0x123f7c[_0x350f('0x108')]['skipNestingCheck'])&&(_0x32e386[_0x350f('0x1b')](_0x4aaab2=>_0x3c8ef5[_0x350f('0xb4')](_0x1ebf26=>_0x1ebf26[_0x350f('0xf8')](_0x4aaab2,!0x0)))&&_0x123f7c['discard']());if(_0x3c8ef5['every'](_0x240368=>_0x32e386[_0x350f('0xb4')](_0x569f0f=>_0x569f0f[_0x350f('0xf8')](_0x240368,!0x0)))){const _0x589e15=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,'accept');return this['forceDefaultExecution'](()=>_0x589e15(_0x5557c6,null,_0x5ad3c9)),null;}}else{const _0x18d71f=_0x123f7c[_0x350f('0x3c')]();_0x3c8ef5['some'](_0x54e99f=>_0x54e99f[_0x350f('0xf8')](_0x18d71f,!0x0))&&_0x123f7c[_0x350f('0xe1')]();if(_0x3c8ef5['every'](_0x2ba696=>_0x18d71f[_0x350f('0xf8')](_0x2ba696,!0x0))){const _0x54a358=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x54a358(_0x3c8ef5,null,_0x5ad3c9)),null;}}const _0x56f480=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0x1d'));let _0x1f0c34=null;for(const _0x1ffa00 of this[_0x350f('0x48')]())if(_0x1ffa00[_0x350f('0x17')]['id']==_0x1e06b3['id']&&_0x1ffa00[_0x350f('0x129')]&&_0x350f('0x11f')==_0x1ffa00[_0x350f('0xb')]&&_0x1ffa00[_0x350f('0xf6')]==_0x4c53ed&&(_0x56f480(_0x1ffa00[_0x350f('0x72')](),_0x3c8ef5)||_0x56f480(_0x3c8ef5,_0x1ffa00['getRanges']()))){if(_0x1f0c34){if(_0x1ffa00[_0x350f('0x135')]&&_0x1ffa00[_0x350f('0x135')][_0x350f('0x12e')])continue;for(const _0x23ac9e of _0x1ffa00[_0x350f('0x72')]())_0x1f0c34[_0x350f('0x2c')](_0x23ac9e)||_0x1f0c34[_0x350f('0xe0')](_0x23ac9e);_0x1ffa00[_0x350f('0x22')]();}else{_0x1f0c34=_0x1ffa00;for(const _0x3f4f7d of _0x3c8ef5)_0x1ffa00[_0x350f('0x2c')](_0x3f4f7d)||_0x1ffa00[_0x350f('0xe0')](_0x3f4f7d);}}if(_0x1f0c34)return _0x1f0c34;_0x3340bb['clear']();for(const _0x29d19e of _0x3c8ef5)for(const {suggestion:_0x18b89a,meta:_0x49c7b4}of this['_findSuggestions'](_0x29d19e,'deletion'))_0x49c7b4[_0x350f('0x115')]&&_0x3340bb[_0x350f('0x94')](_0x18b89a);for(const _0x1dcb4d of _0x3340bb){const _0x50d4fc=_0x1dcb4d[_0x350f('0x72')]();if(!_0x5ad3c9||!_0x5ad3c9['skipNestingCheck']){if(_0x3c8ef5['every'](_0x4c2df8=>_0x50d4fc[_0x350f('0xb4')](_0x32a57a=>_0x32a57a[_0x350f('0xf8')](_0x4c2df8,!0x0))))return _0x1dcb4d;}(!_0x1dcb4d['attributes']||!_0x1dcb4d[_0x350f('0x108')]['skipNestingCheck'])&&(_0x50d4fc['every'](_0xb67221=>_0x3c8ef5[_0x350f('0xb4')](_0xd43dac=>_0xd43dac[_0x350f('0xf8')](_0xb67221,!0x0)))&&_0x1dcb4d['discard']());}const _0x25d11c=_0x4cb20a(),_0x3930b7=_0x1e06b3['id'],_0x4d363f=_0x350f('0x77')+_0x4c53ed,_0x48e581=this['_setSuggestionData']({'id':_0x25d11c,'type':_0x4d363f,'createdAt':new Date(),'authorId':_0x3930b7,'attributes':_0x5ad3c9});for(const _0x34f24e of _0x3c8ef5)_0x34f24e[_0x350f('0xe5')](),_0x34f24e[_0x350f('0x117')]||_0x350f('0x100')==_0x34f24e[_0x350f('0x5')][_0x350f('0x6a')]||this[_0x350f('0x2d')](_0x4d363f,_0x25d11c,_0x3930b7,_0x34f24e,_0x14b365[_0x350f('0xe6')]());return _0x48e581;}[_0x350f('0x4d')](_0x55b05d,_0x58e01a){const _0x320b52=_0x55b05d[_0x350f('0x29')]();this[_0x350f('0x3b')][_0x350f('0x8a')](_0x7c6247=>{_0x7c6247[_0x350f('0x7f')](_0x320b52,{'range':_0x58e01a});});}[_0x350f('0x93')](_0x360fc0){const _0x4f8995=_0x360fc0['id'],_0x5add5d=this['editor']['config'][_0x350f('0x35')](_0x350f('0xbf'));this[_0x350f('0x2a')][_0x350f('0x106')](_0x4f8995)||this[_0x350f('0x2a')]['addCommentThread']({'channelId':_0x5add5d,'threadId':_0x4f8995,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5700dd=this[_0x350f('0x2a')][_0x350f('0xb6')](_0x4f8995);_0x5700dd['unbind'](_0x350f('0x8')),_0x5700dd[_0x350f('0x8')]=!0x1,_0x360fc0[_0x350f('0x135')]=_0x5700dd;}['_checkSuggestionCorrectness'](_0x3c121e,_0x273c95,_0x4c6634,_0x52b89e){if(_0x3c121e[_0x350f('0xb')]!=_0x273c95||_0x3c121e[_0x350f('0xf6')]!=_0x4c6634||_0x3c121e[_0x350f('0x98')]['id']!=_0x52b89e)throw this[_0x350f('0x49')][_0x350f('0x69')](_0x350f('0x131')),new _0x119d3e(_0x350f('0x131'),this);}[_0x350f('0x78')](_0x24cc4d,_0x3438bc){const _0x52112f=_0x24cc4d[_0x350f('0x3c')]();if(_0x3438bc[_0x350f('0xdc')](_0x52112f))_0x24cc4d[_0x350f('0x22')]();else{if(_0x52112f['containsRange'](_0x3438bc)){const _0x15b1e5=this[_0x350f('0x3b')][_0x350f('0x10d')](_0x3438bc['start'][_0x350f('0x71')],_0x350f('0x41'));this[_0x350f('0x4d')](_0x24cc4d,this['_model'][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x15b1e5));const _0x4a996=_0x4cb20a(),_0x1f6f9f=_0x24cc4d[_0x350f('0x98')]['id'],_0xe2d367=_0x24cc4d[_0x350f('0xb')]+':'+_0x24cc4d[_0x350f('0xf6')];this['_setSuggestionData']({'id':_0x4a996,'type':_0xe2d367,'createdAt':new Date(),'authorId':_0x1f6f9f,'data':_0x24cc4d[_0x350f('0x6f')],'attributes':_0x24cc4d[_0x350f('0x108')]});const _0x3e48c5=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],'after'),_0x5026b7=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3e48c5,_0x52112f[_0x350f('0x41')]);this[_0x350f('0x2d')](_0xe2d367,_0x4a996,_0x1f6f9f,_0x5026b7);}else{if(_0x52112f[_0x350f('0xb8')](_0x3438bc[_0x350f('0x88')])){const _0x3fd59=this['_model'][_0x350f('0x10d')](_0x3438bc['start']['nodeBefore'],_0x350f('0x41'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x3fd59));}else{const _0x2c0457=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],_0x350f('0xd1'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x2c0457,_0x52112f[_0x350f('0x41')]));}}}}[_0x350f('0xf7')](_0x56ceba){for(const {suggestion:_0x14c4ab,meta:_0x337721}of this['_findSuggestions'](_0x56ceba,_0x350f('0xb3'))){if(!_0x337721[_0x350f('0x115')])continue;const _0x23648a=_0x14c4ab[_0x350f('0x72')]();for(const _0x4ba9e6 of _0x23648a)if(!_0x56ceba['getDifference'](_0x4ba9e6)['length'])return!0x0;}return!0x1;}[_0x350f('0x102')](_0x45589f){const _0xacc214=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))[_0x350f('0x39')](_0x45589f);if(!_0xacc214)throw new _0x119d3e('track-changes-user-not-found',this);return _0xacc214;}['_getExternalAuthor'](_0x33eb99){const _0x5a1d5c=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32')),_0x45df3d=_0x394310(_0x350f('0x11e')+_0x33eb99),_0x128e57=_0x5a1d5c[_0x350f('0x39')](_0x45df3d);return _0x128e57||_0x5a1d5c['addUser']({'id':_0x45df3d,'name':_0x33eb99});}['_createSuggestion'](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x41ed03,_0x2d4210){const _0x35b21e=this[_0x350f('0x102')](_0x41ed03),_0x41e5e7=this[_0x350f('0x4b')][_0x350f('0x9c')](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x35b21e,_0x2d4210,_0x156556=>this[_0x350f('0xc2')](_0x2f26d3,{'attributes':_0x156556}));return this[_0x350f('0x83')](_0x41e5e7,'accept',()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x116')});},{'priority':_0x350f('0x21')}),this[_0x350f('0x83')](_0x41e5e7,_0x350f('0xe1'),()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x74')});},{'priority':_0x350f('0x21')}),this[_0x350f('0xa6')][_0x350f('0xa8')](_0x2f26d3,_0x41e5e7),this[_0x350f('0x9e')]['set'](_0x41e5e7,_0x350f('0xc8')),_0x41e5e7;}['_splitMarkerName'](_0x2393e3){const _0x39385e=_0x2393e3[_0x350f('0x16')](':');return{'group':_0x39385e[0x0],'type':_0x39385e[0x1],'subType':_0x39385e['length']>=0x5?_0x39385e[0x2]:null,'id':_0x39385e['length']<0x5?_0x39385e[0x2]:_0x39385e[0x3],'authorId':_0x39385e[_0x350f('0x12e')]<0x5?_0x39385e[0x3]:_0x39385e[0x4],'markerCount':0x6==_0x39385e[_0x350f('0x12e')]?_0x39385e[0x5]:null};}[_0x350f('0x104')](_0x37c199,_0x3f2260,_0x830434){const _0x429b70=_0x37c199[_0x350f('0x3c')](),_0x21edc5=_0x429b70[_0x350f('0x88')],_0x51da37=_0x429b70[_0x350f('0x41')];this['_setSuggestionRange'](_0x37c199,this[_0x350f('0x3b')][_0x350f('0x107')](_0x21edc5,_0x3f2260));const _0x19ff2e=_0x4cb20a(),_0x447afd=_0x37c199[_0x350f('0x98')]['id'],_0x4dff0e=_0x37c199[_0x350f('0xb')]+(_0x37c199[_0x350f('0xf6')]?':'+_0x37c199[_0x350f('0xf6')]:'');this[_0x350f('0x122')]({'id':_0x19ff2e,'type':_0x4dff0e,'createdAt':new Date(),'authorId':_0x447afd,'originalSuggestionId':_0x37c199['id'],'attributes':_0x37c199['attributes'],'data':_0x37c199[_0x350f('0x6f')]}),'formatBlock'==_0x37c199[_0x350f('0xb')]&&(_0x830434=this[_0x350f('0x3b')][_0x350f('0x125')](_0x830434[_0x350f('0xf2')])),this['_addSuggestionMarker'](_0x4dff0e,_0x19ff2e,_0x447afd,this[_0x350f('0x3b')]['createRange'](_0x830434,_0x51da37));}[_0x350f('0xea')](_0x3d3fd7,_0x5dceae=null){const _0x4ced67=[],_0xb654d6=this[_0x350f('0x3b')]['schema'],_0x33cee7=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x279b36 of this['getSuggestions']())if(_0x279b36['isInContent']&&(!_0x5dceae||_0x279b36[_0x350f('0xb')]==_0x5dceae))for(const _0x2090ec of _0x279b36[_0x350f('0x72')]()){const _0x1e94e6=_0x3d3fd7['start'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x41')])||_0x3d3fd7['end'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x88')]);if(_0x1e94e6||_0x3d3fd7[_0x350f('0x5f')](_0x2090ec)){const _0x266d2e=_0x3d3fd7['containsRange'](_0x2090ec)&&At(_0xb654d6,_0x2090ec['start'],_0x3d3fd7),_0x3346b0=_0x2090ec[_0x350f('0xf8')](_0x3d3fd7)&&At(_0xb654d6,_0x3d3fd7[_0x350f('0x88')],_0x2090ec);_0x4ced67[_0x350f('0x123')]({'suggestion':_0x279b36,'meta':{'isOwn':_0x33cee7==_0x279b36['author'],'isNextTo':_0x1e94e6,'isInsideObject':_0x266d2e,'containsRangeInObject':_0x3346b0}});break;}}return _0x4ced67;}[_0x350f('0x2d')](_0x1599ad,_0x3e9583,_0x3ddd4c,_0x2411a4,_0x382e11){this[_0x350f('0x3b')][_0x350f('0x8a')](_0xdd9af3=>{let _0x33e3f1=_0x350f('0xdf')+_0x1599ad+':'+_0x3e9583+':'+_0x3ddd4c;_0x382e11&&(_0x33e3f1=_0x33e3f1+':'+_0x382e11),_0xdd9af3[_0x350f('0x43')](_0x33e3f1,{'range':_0x2411a4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x350f('0xc0')](_0x432b01){const _0x425df5=_0x432b01[_0x350f('0x38')],_0xe9c7c=_0x432b01[_0x350f('0x12c')];_0x432b01[_0x350f('0x38')]=null,null!=_0x425df5&&(_0x425df5[_0x350f('0x12c')]=null),_0x432b01[_0x350f('0x12c')]=null,null!=_0xe9c7c&&(_0xe9c7c[_0x350f('0x38')]=null),_0x350f('0x120')==this[_0x350f('0x9e')][_0x350f('0x35')](_0x432b01)&&(this['_suggestionState'][_0x350f('0xa8')](_0x432b01,_0x350f('0x14')),this[_0x350f('0x6d')]('suggestionUnloaded',_0x432b01,_0x425df5,_0xe9c7c));}[_0x350f('0x122')](_0x3a8819){const _0x81c7ea=_0x3a8819['id'],_0x1e3c05=this[_0x350f('0x7d')](_0x3a8819);if(this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]){const _0x4341ea=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x114')),_0x5b6fb7=_0x1e3c05[_0x350f('0xa2')],_0x4deea5=_0x1e3c05['subType']?_0x1e3c05[_0x350f('0xb')]+':'+_0x1e3c05[_0x350f('0xf6')]:_0x1e3c05['type'],_0x3886db=this[_0x350f('0x49')]['locale'],_0x556b38=_0x4341ea[_0x350f('0x94')](_0x3436c0(_0x3886db,_0x350f('0xd3'))),_0x56b856={'id':_0x81c7ea,'type':_0x4deea5,'hasComments':_0x5b6fb7,'data':_0x3a8819[_0x350f('0x6f')]||null,'originalSuggestionId':_0x3a8819['originalSuggestionId']||null,'attributes':_0x1e3c05[_0x350f('0x108')]};this[_0x350f('0x12d')][_0x350f('0x42')](_0x56b856)[_0x350f('0xa9')](_0x14251c=>{_0x1e3c05['_saved']=!0x0,_0x4341ea['remove'](_0x556b38),_0x14251c&&_0x14251c['createdAt']&&(this[_0x350f('0xa6')][_0x350f('0x35')](_0x81c7ea)['createdAt']=_0x14251c[_0x350f('0x11')]);})[_0x350f('0xa7')](_0x2c3247=>{throw _0xd5393f('error-saving-suggestion-data-suggestion-discarded'),this[_0x350f('0x49')][_0x350f('0x18')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e3c05[_0x350f('0xe1')]();}),_0x1e3c05[_0x350f('0xcc')](),this['_suggestions'][_0x350f('0x137')](_0x1e3c05['id']),this['_suggestionState']['delete'](_0x1e3c05),_0x2c3247;});}return _0x1e3c05;}[_0x350f('0xc2')](_0x341f17,_0x544195){const _0x2e4755=this['editor'][_0x350f('0x45')]['get'](_0x350f('0x114')),_0x45e0fe=this['getSuggestion'](_0x341f17);if(this[_0x350f('0x12d')]&&this['_adapter'][_0x350f('0xf3')]){if(_0x45e0fe['_saved']){const _0x1c19ee=_0x2e4755[_0x350f('0x94')](_0x3436c0(this[_0x350f('0x49')][_0x350f('0x2e')],_0x350f('0xd3')));this['_adapter'][_0x350f('0xf3')](_0x341f17,_0x544195)[_0x350f('0xa9')](()=>{_0x2e4755[_0x350f('0x3a')](_0x1c19ee);});}else _0x45e0fe['on']('change:_saved',()=>{this[_0x350f('0xc2')](_0x341f17,_0x544195);});}}['_getSuggestionData'](_0x4bb2f9){if(!this[_0x350f('0x12d')]||!this[_0x350f('0x12d')]['getSuggestion'])throw new _0x119d3e(_0x350f('0x3'),this);return this[_0x350f('0x12d')]['getSuggestion'](_0x4bb2f9);}[_0x350f('0xec')](_0x3977b9){const {id:_0xac369e,type:_0x3555d8,subType:_0x5d0bc7,authorId:_0x3e4c5a}=this[_0x350f('0xb1')](_0x3977b9),_0x309c8d=this[_0x350f('0xa6')][_0x350f('0x35')](_0xac369e)||this[_0x350f('0x134')](_0x3555d8,_0x5d0bc7,_0xac369e,_0x3e4c5a,{});switch(this[_0x350f('0xed')](_0x309c8d,_0x3555d8,_0x5d0bc7,_0x3e4c5a),this['_suggestionState']['get'](_0x309c8d)){case _0x350f('0xc8'):this[_0x350f('0x11d')](_0xac369e)[_0x350f('0xa9')](_0x1b8b03=>{let _0x532577=Promise[_0x350f('0x92')]();_0x1b8b03[_0x350f('0xa2')]&&(_0x532577=this[_0x350f('0x2a')]['fetchCommentThread']({'channelId':this['editor'][_0x350f('0x60')][_0x350f('0x35')](_0x350f('0xbf')),'threadId':_0xac369e})),_0x532577['then'](()=>{this[_0x350f('0x7d')](_0x1b8b03)['_saved']=!0x0;});}),this[_0x350f('0x9e')][_0x350f('0xa8')](_0x309c8d,_0x350f('0xe8'));break;case'removed':this[_0x350f('0xc2')](_0xac369e,{'state':'open'});case _0x350f('0xc9'):this[_0x350f('0x9e')]['set'](_0x309c8d,'ready'),this[_0x350f('0x6d')](_0x350f('0x19'),_0x309c8d);break;case _0x350f('0x120'):this[_0x350f('0x6d')](_0x350f('0x138'),_0x309c8d);}return _0x309c8d['addMarkerName'](_0x3977b9),_0x309c8d;}[_0x350f('0x85')](_0x3fb5d6){const _0x2c9d67=Array['from'](_0x3fb5d6)[_0x350f('0xf4')](_0x3c3e12=>!_0x3c3e12[_0x350f('0x103')]),_0x2503d5=this[_0x350f('0x48')]({'skipNotAttached':!0x0})[_0x350f('0xf4')](_0x2fcc25=>!_0x2fcc25[_0x350f('0x103')]),_0x5456dc=_0x2503d5[_0x350f('0xf4')](_0x277d1a=>!_0x3fb5d6[_0x350f('0xf1')](_0x277d1a)),_0x59619b=new Map(_0x2503d5['map'](_0x1dc7c7=>[_0x1dc7c7,this[_0x350f('0x4b')][_0x350f('0x30')](_0x1dc7c7[_0x350f('0xb')],_0x1dc7c7[_0x350f('0xf6')],_0x350f('0x96'))])),_0x59d069=new Map(_0x2503d5[_0x350f('0x3d')](_0x3438f1=>[_0x3438f1,_0x3438f1[_0x350f('0x3c')]()])),_0x54e50a=new Set(),_0x3d535a=new Set();for(let _0x3c56cf=0x0;_0x3c56cf<_0x2c9d67['length'];_0x3c56cf++)_0x44dbfa(_0x2c9d67[_0x3c56cf],_0x2c9d67,_0x3c56cf+0x1);for(let _0x4ab20f=0x0;_0x4ab20f<_0x2c9d67[_0x350f('0x12e')];_0x4ab20f++)_0x44dbfa(_0x2c9d67[_0x4ab20f],_0x5456dc,0x0);for(let _0x181f22=0x0;_0x181f22<_0x2c9d67['length'];_0x181f22++){const _0x211eda=_0x2c9d67[_0x181f22];!_0x3d535a[_0x350f('0xf1')](_0x211eda)&&_0x211eda['previous']&&(_0x211eda[_0x350f('0x38')]['next']===_0x211eda&&(_0x211eda['previous'][_0x350f('0x12c')]=null),_0x211eda['previous']=null),!_0x54e50a[_0x350f('0xf1')](_0x211eda)&&_0x211eda[_0x350f('0x12c')]&&(_0x211eda[_0x350f('0x12c')][_0x350f('0x38')]===_0x211eda&&(_0x211eda['next'][_0x350f('0x38')]=null),_0x211eda[_0x350f('0x12c')]=null);}function _0x44dbfa(_0x5c1715,_0x4f0e12,_0x46926b){for(let _0x598ef6=_0x46926b;_0x598ef6<_0x4f0e12[_0x350f('0x12e')];_0x598ef6++){const _0x36ef25=_0xfe5c5b(_0x5c1715,_0x4f0e12[_0x598ef6]);_0x36ef25&&(_0x36ef25[0x0][_0x350f('0x12c')]=_0x36ef25[0x1],_0x36ef25[0x1][_0x350f('0x38')]=_0x36ef25[0x0],_0x54e50a[_0x350f('0x94')](_0x36ef25[0x0]),_0x3d535a[_0x350f('0x94')](_0x36ef25[0x1]));}}function _0xfe5c5b(_0x24daea,_0x244094){if(_0x24daea[_0x350f('0x17')]['id']!==_0x244094[_0x350f('0x17')]['id'])return null;const _0x2c5077=_0x59619b[_0x350f('0x35')](_0x24daea)(_0x24daea,_0x244094,_0x59d069[_0x350f('0x35')](_0x24daea),_0x59d069['get'](_0x244094));if(!_0x2c5077)return null;return _0x59619b['get'](_0x244094)(_0x24daea,_0x244094,_0x59d069['get'](_0x24daea),_0x59d069[_0x350f('0x35')](_0x244094))?_0x2c5077[0x1]['commentThread']&&_0x2c5077[0x1][_0x350f('0x135')][_0x350f('0x12e')]?null:_0x2c5077:null;}}['_joinWithAdjacentSuggestions'](_0x120aa4){const _0xea9554=Array[_0x350f('0xcf')](_0x120aa4),_0x620af2=this[_0x350f('0x48')]({'skipNotAttached':!0x0}),_0x5a5973=_0x620af2['filter'](_0xf5e509=>!_0x120aa4[_0x350f('0xf1')](_0xf5e509)),_0x458a98=new Map(_0xea9554[_0x350f('0x3d')](_0x5f1416=>[_0x5f1416,this[_0x350f('0x4b')][_0x350f('0x30')](_0x5f1416[_0x350f('0xb')],_0x5f1416[_0x350f('0xf6')],_0x350f('0x1d'))])),_0x9fabf0=new Map(_0x620af2[_0x350f('0x3d')](_0x1baaf7=>[_0x1baaf7,_0x1baaf7[_0x350f('0x72')]()]));for(let _0x3394ab=0x0;_0x3394ab<_0xea9554[_0x350f('0x12e')];_0x3394ab++){if(_0x3a216e(this,_0xea9554[_0x3394ab],_0xea9554,_0x3394ab+0x1))return!0x0;}for(let _0x5e9297=0x0;_0x5e9297<_0xea9554[_0x350f('0x12e')];_0x5e9297++){if(_0x3a216e(this,_0xea9554[_0x5e9297],_0x5a5973,0x0))return!0x0;}return!0x1;function _0x3a216e(_0x3ba5ac,_0x5b1594,_0x2de71e,_0x4da04c){for(let _0x4493dc=_0x4da04c;_0x4493dc<_0x2de71e[_0x350f('0x12e')];_0x4493dc++){const _0x2c3b87=_0x2de71e[_0x4493dc];if(_0x2c3b87['type']!==_0x5b1594[_0x350f('0xb')]||_0x2c3b87['author']['id']!==_0x5b1594['author']['id']||_0x2c3b87['subType']!==_0x5b1594['subType'])continue;const _0x5e8acf=_0x458a98[_0x350f('0x35')](_0x5b1594),_0xd3a727=_0x9fabf0[_0x350f('0x35')](_0x5b1594),_0x3f782d=_0x9fabf0[_0x350f('0x35')](_0x2c3b87),_0x233345=_0x5b1594['commentThread']&&_0x5b1594[_0x350f('0x135')][_0x350f('0x12e')],_0x180b00=_0x2c3b87['commentThread']&&_0x2c3b87[_0x350f('0x135')]['length'];if(!_0x233345&&_0x5e8acf(_0x3f782d,_0xd3a727))return _0x3ba5ac[_0x350f('0xad')](_0x2c3b87,_0x5b1594),_0x9fabf0[_0x350f('0x137')](_0x5b1594),!0x0;if(!_0x180b00&&_0x5e8acf(_0xd3a727,_0x3f782d))return _0x3ba5ac['_joinSuggestions'](_0x5b1594,_0x2c3b87),_0x9fabf0[_0x350f('0x137')](_0x2c3b87),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4dbd18,_0x704343){if(_0x4dbd18[_0x350f('0x103')])for(const _0x17b908 of _0x704343[_0x350f('0x72')]())_0x4dbd18[_0x350f('0xe0')](_0x17b908);else{const _0x35c325=_0x704343[_0x350f('0x3c')]()['end'];this[_0x350f('0x4d')](_0x4dbd18,this[_0x350f('0x3b')][_0x350f('0x107')](_0x4dbd18['getFirstRange']()[_0x350f('0x88')],_0x35c325));}_0x704343[_0x350f('0x22')]();}}class vt{constructor(_0x591476){this['_editor']=_0x591476,this[_0x350f('0x3b')]=_0x591476[_0x350f('0x18')],this[_0x350f('0xe3')]=new Map(),this[_0x350f('0x10c')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10420b,_0x2c812c,_0x4fc6b4,_0x2869dc,_0xe81114,_0x8192eb){return new _0x14b365(this[_0x350f('0x3b')],{'type':_0x10420b,'subType':_0x2c812c,'id':_0x4fc6b4,'author':_0x2869dc,'creator':_0x2869dc,'attributes':_0xe81114,'onAttributesChange':_0x8192eb,'onAccept':(..._0x1161a9)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xd0'))(..._0x1161a9),'onDiscard':(..._0x49f437)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xe1'))(..._0x49f437)});}[_0x350f('0x111')](_0x432336,_0x4d0e6d,_0x3b6b00,_0x398ea5){const _0x8fb2b3=_0x432336+':'+_0x4d0e6d+':'+_0x3b6b00;this[_0x350f('0xe3')][_0x350f('0xa8')](_0x8fb2b3,_0x398ea5);}[_0x350f('0x30')](_0x49ab91,_0x498789,_0xcd4630){const _0x2635f4=_0x49ab91+':'+_0x498789+':'+_0xcd4630;return this[_0x350f('0xe3')][_0x350f('0x35')](_0x2635f4)||this['_defaultCallbacks'][_0x350f('0x35')](_0x49ab91+':'+_0xcd4630);}[_0x350f('0x15')](){const _0x2e96a7=()=>{},_0x33bcc8=_0x5dadfa=>{_0x5dadfa[_0x350f('0x55')]((_0x275e67,_0x79da03)=>_0x275e67['start']['isBefore'](_0x79da03[_0x350f('0x88')])?0x1:-0x1),this['_model']['change'](_0xd9215a=>{for(const _0x936924 of _0x5dadfa){let _0x455a1d;_0x455a1d=_0x936924['end'][_0x350f('0x11a')]&&_0x936924[_0x350f('0x41')][_0x350f('0xf2')]==_0x936924['start'][_0x350f('0x23')]?_0xd9215a[_0x350f('0x8f')](_0x936924[_0x350f('0x88')][_0x350f('0x23')],'on'):_0xd9215a['createSelection'](_0x936924),this[_0x350f('0x3b')][_0x350f('0xaa')](_0x455a1d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1889ef=(_0x31c220,_0x493297)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](_0x24525f=>{const {commandName:_0x46d901,commandParams:_0x1091f2=[]}=_0x493297,_0x5db87a=_0x31c220['map'](_0x3d265a=>(Dt(_0x3d265a)&&(_0x3d265a=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3d265a[_0x350f('0x41')])),_0x3d265a))[_0x350f('0xf4')](_0x2b51b8=>_0x350f('0x100')!==_0x2b51b8[_0x350f('0x5')][_0x350f('0x6a')]);if(_0x5db87a[_0x350f('0x12e')]<0x1)return;const _0x2521d5=Array[_0x350f('0xcf')](this['_model'][_0x350f('0xce')][_0x350f('0xdd')][_0x350f('0x72')]())['map'](_0x21a8fb=>_0x319865['fromRange'](_0x21a8fb));_0x24525f[_0x350f('0x12')](_0x5db87a);for(const _0x1ab088 of this[_0x350f('0x68')]['commands']['commands']())_0x1ab088[_0x350f('0xfd')]();_0x1091f2[_0x350f('0x123')]({'forceDefaultExecution':!0x0}),this[_0x350f('0x68')][_0x350f('0x76')](_0x46d901,..._0x1091f2);const _0x67de0c=_0x2521d5['filter'](_0xb9117f=>'$graveyard'!=_0xb9117f[_0x350f('0x5')][_0x350f('0x6a')]);_0x67de0c[_0x350f('0x12e')]>0x0&&_0x24525f[_0x350f('0x12')](_0x67de0c);for(const _0x7e6c86 of _0x2521d5)_0x7e6c86['detach']();});},_0x47bf7c=(_0x59547c,_0x4c37c1)=>0x1==_0x59547c[_0x350f('0x12e')]&&0x1==_0x4c37c1['length']&&_0x59547c[0x0][_0x350f('0x41')]['isEqual'](_0x4c37c1[0x0][_0x350f('0x88')]),_0x104e99=(_0x59d387,_0x217d69,_0x3946cb,_0x27af16)=>$t(_0x59d387,_0x217d69,_0x3946cb,_0x27af16,this[_0x350f('0x3b')])?[_0x59d387,_0x217d69]:$t(_0x217d69,_0x59d387,_0x27af16,_0x3946cb,this[_0x350f('0x3b')])?[_0x217d69,_0x59d387]:null;this[_0x350f('0x10c')][_0x350f('0xa8')]('insertion:accept',_0x2e96a7),this[_0x350f('0x10c')]['set']('insertion:discard',_0x33bcc8),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xca'),_0x47bf7c),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0x66'),_0x104e99),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xc3'),_0x33bcc8),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x10a'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x118'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0x130'),_0x104e99),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x132'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x127'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x89'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0xfb'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x54'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x81'),_0x2e96a7),this['_defaultCallbacks'][_0x350f('0xa8')]('formatBlock:join',_0x47bf7c),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x73'),_0x2e96a7);}}function At(_0x2b1223,_0x18c51b,_0x2c8f4e){for(const _0x52b6a4 of _0x18c51b[_0x350f('0xf2')][_0x350f('0xd4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52b6a4[_0x350f('0x5')]==_0x52b6a4)return!0x1;if(!_0x2c8f4e[_0x350f('0xa4')](_0x52b6a4))return!0x1;if(_0x2b1223[_0x350f('0xef')](_0x52b6a4)||_0x2b1223[_0x350f('0x1f')](_0x52b6a4))return!0x0;}return!0x1;}function Dt(_0x16f261){return _0x16f261[_0x350f('0x41')][_0x350f('0xf2')]==_0x16f261[_0x350f('0x88')][_0x350f('0x23')]&&_0x16f261['end'][_0x350f('0xab')];}function Ct(_0x1ece1e,_0x1a9432,_0x173547,_0x4c5885){const _0x78739b=_0x5f5c5a=>!_0x5f5c5a[_0x350f('0x7a')]['is'](_0x350f('0x40'))&&!_0x4c5885[_0x350f('0xef')](_0x5f5c5a[_0x350f('0x7a')]),_0x253313=_0x1ece1e[_0x350f('0x88')][_0x350f('0x10f')](_0x78739b),_0x21e8c1=_0x1ece1e[_0x350f('0x41')]['getLastMatchingPosition'](_0x78739b,{'direction':'backward'});return(!_0x1ece1e['start'][_0x350f('0xdc')](_0x253313)||!_0x1ece1e[_0x350f('0x41')][_0x350f('0xdc')](_0x21e8c1))&&(_0x253313['isBefore'](_0x21e8c1)?_0x173547[_0x350f('0x7f')](_0x1a9432,{'range':_0x173547[_0x350f('0x107')](_0x253313,_0x21e8c1)}):_0x173547['removeMarker'](_0x1a9432),!0x0);}function Bt(_0x346bff){return _0x394310(_0x346bff);}function _t(_0x1d0156){const _0x4c1aee=_0x1d0156[_0x350f('0x88')][_0x350f('0x23')];return _0x4c1aee&&_0x4c1aee['is']('element');}function Mt(_0x311239,_0xd5f1b5){const _0x16ec73=_0xd5f1b5[_0x350f('0x44')][_0x350f('0xef')](_0x311239)||_0xd5f1b5[_0x350f('0x44')][_0x350f('0x12b')](_0x311239);return _0xd5f1b5['createRange'](_0xd5f1b5[_0x350f('0x10d')](_0x311239,_0x350f('0x26')),_0x16ec73?_0xd5f1b5[_0x350f('0x139')](_0x311239):_0xd5f1b5['createPositionAt'](_0x311239,'end'));}function $t(_0x13db3c,_0x2d7557,_0x5aa4d2,_0x52fc57,_0x579125){if(_0x5aa4d2[_0x350f('0x41')]['isEqual'](_0x52fc57[_0x350f('0x88')]))return!0x0;if(_0x13db3c[_0x350f('0xb')]!=_0x2d7557[_0x350f('0xb')])return!0x1;if(!_0x5aa4d2['end']['isTouching'](_0x52fc57['start']))return!0x1;const _0x1cc686=_0x579125[_0x350f('0x107')](_0x5aa4d2[_0x350f('0x41')],_0x52fc57[_0x350f('0x88')])[_0x350f('0x34')]();for(const _0x3f8a00 of _0x1cc686)if([_0x350f('0xeb'),'elementEnd'][_0x350f('0x9a')](_0x3f8a00[_0x350f('0xb')])&&_0x579125[_0x350f('0x44')][_0x350f('0x1f')](_0x3f8a00['item']))return!0x1;return!0x0;}
|