@ckeditor/ckeditor5-track-changes 37.0.0-rc.0 → 37.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +2 -2
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/heading.js +1 -1
  21. package/src/integrations/highlight.js +1 -1
  22. package/src/integrations/horizontalline.js +1 -1
  23. package/src/integrations/htmlembed.js +1 -1
  24. package/src/integrations/image.js +1 -1
  25. package/src/integrations/imagereplace.js +1 -1
  26. package/src/integrations/importword.js +1 -1
  27. package/src/integrations/indent.js +1 -1
  28. package/src/integrations/inputcommand.js +1 -1
  29. package/src/integrations/link.js +1 -1
  30. package/src/integrations/list.js +1 -1
  31. package/src/integrations/listproperties.js +1 -1
  32. package/src/integrations/mediaembed.js +1 -1
  33. package/src/integrations/mention.js +1 -1
  34. package/src/integrations/pagebreak.js +1 -1
  35. package/src/integrations/paragraph.js +1 -1
  36. package/src/integrations/removeformat.js +1 -1
  37. package/src/integrations/restrictededitingmode.js +1 -1
  38. package/src/integrations/shiftentercommand.js +1 -1
  39. package/src/integrations/standardeditingmode.js +1 -1
  40. package/src/integrations/style.js +1 -1
  41. package/src/integrations/table.js +1 -1
  42. package/src/integrations/tablecaption.js +1 -1
  43. package/src/integrations/tableclipboard.js +1 -1
  44. package/src/integrations/tablecolumnresize.js +1 -1
  45. package/src/integrations/tableheadings.js +1 -1
  46. package/src/integrations/tablemergesplit.js +1 -1
  47. package/src/integrations/tableproperties.js +1 -1
  48. package/src/integrations/title.js +1 -1
  49. package/src/integrations/undo.js +1 -1
  50. package/src/integrations/utils.js +1 -1
  51. package/src/suggestion.js +1 -1
  52. package/src/suggestiondescriptionfactory.js +1 -1
  53. package/src/trackchanges.js +1 -1
  54. package/src/trackchangesdata.js +1 -1
  55. package/src/trackchangesediting.js +1 -1
  56. package/src/trackchangesui.js +1 -1
  57. package/src/ui/suggestioncontroller.js +1 -1
  58. package/src/ui/view/basesuggestionthreadview.js +1 -1
  59. package/src/ui/view/suggestionthreadview.js +1 -1
  60. package/src/utils/common-translations.js +1 -1
  61. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27d6=['addObject','item','isEmpty','_locale','*Remove:*\x20%0','addContainer','_addDescriptionItems','addEmptyContainer','_schema','normal','isObject','_itemLabels','getWalker','removeObject','matchingCallback','indexOf','elementEnd','previousSibling','end','data','add','skip','_itemLabelsCallbacks','replace','getFirstRange','match','getItemLabel','$1\x20$2','Object','type','Container','isEqual','registerElementLabel','*Merge:*\x20%0','remove','function','name','text','$textProxy','_customCallbacks','_resolveDescriptionItems','push','EmptyContainer','element','quantity','nextSibling','*Split:*\x20%0','length','REPLACE_TEXT','*Insert:*\x20%0','deletion','isInContent','start','ELEMENT_SPACE','insertion','pop'];(function(_0x3ca25f,_0x27d638){const _0x26148a=function(_0x27be6d){while(--_0x27be6d){_0x3ca25f['push'](_0x3ca25f['shift']());}};_0x26148a(++_0x27d638);}(_0x27d6,0x162));const _0x2614=function(_0x3ca25f,_0x27d638){_0x3ca25f=_0x3ca25f-0x0;let _0x26148a=_0x27d6[_0x3ca25f];return _0x26148a;};import{getTranslation as _0x503418}from'./utils/common-translations';import{priorities as _0x17db74,insertToPriorityArray as _0x183c11}from'ckeditor5/src/utils';export default class m{constructor(_0x263e1d,_0x352f76){this[_0x2614('0x15')]=[],this[_0x2614('0x31')]=new Map(),this[_0x2614('0x4')]=[],this[_0x2614('0x2e')]=_0x263e1d,this[_0x2614('0x29')]=_0x352f76;}['getDescriptions'](_0x287a25){const _0x465fe9=[];for(let _0x3556a2=0x0;_0x3556a2<_0x287a25[_0x2614('0x1d')];_0x3556a2++){const _0x3d0ff8=_0x287a25[_0x3556a2];if(!_0x3d0ff8[_0x2614('0x21')])continue;let _0x424f3d=!0x1;for(const _0x5b3bda of this['_customCallbacks']){const _0x209ccd=_0x5b3bda(_0x3d0ff8);if(_0x209ccd){_0x2614('0xb')in _0x209ccd&&_0x465fe9['push'](_0x209ccd),_0x424f3d=!0x0;break;}}if(!_0x424f3d){this[_0x2614('0x2c')](_0x465fe9,_0x3d0ff8);const _0x31024c=_0x287a25[_0x3556a2+0x1];if(_0x31024c&&!_0x3d0ff8[_0x2614('0x6')]()[_0x2614('0x0')][_0x2614('0xd')](_0x31024c[_0x2614('0x6')]()[_0x2614('0x22')])){const _0x2786ea=_0x465fe9[_0x465fe9[_0x2614('0x1d')]-0x1],_0x5a0fcd='insertion'==_0x3d0ff8[_0x2614('0xb')]?'add':_0x2614('0x10');_0x2786ea&&_0x2614('0x13')==_0x2786ea[_0x2614('0xb')]&&(_0x2786ea[_0x5a0fcd]+='\x0a');}}}return this[_0x2614('0x16')](_0x465fe9);}['registerDescriptionCallback'](_0x415ace){this[_0x2614('0x15')][_0x2614('0x17')](_0x415ace);}[_0x2614('0xe')](_0x1fc53c,_0x4b807f,_0x464cfb=_0x17db74[_0x2614('0x2f')]){_0x2614('0x11')==typeof _0x1fc53c?_0x183c11(this[_0x2614('0x4')],{'matchingCallback':_0x1fc53c,'label':_0x4b807f,'priority':_0x464cfb}):this[_0x2614('0x31')]['set'](_0x1fc53c,_0x4b807f);}['getItemLabel'](_0x3c753f,_0xe8bcc5=0x1){let _0x338367;for(const _0x2d380d of this['_itemLabelsCallbacks'])if(_0x2d380d[_0x2614('0x34')](_0x3c753f)){_0x338367=_0x2d380d['label'];break;}return _0x338367||(_0x338367=this[_0x2614('0x31')]['get'](_0x3c753f[_0x2614('0x12')])),_0x338367?_0x338367(_0xe8bcc5):0x1!==_0xe8bcc5?_0xe8bcc5+'\x20'+_0x3c753f[_0x2614('0x12')]+'s':''+_0x3c753f['name'];}[_0x2614('0x2c')](_0x39b70f,_0x19218a){const _0x278c11=_0x19218a[_0x2614('0x6')]()[_0x2614('0x32')](),_0x3e147f='insertion'==_0x19218a[_0x2614('0xb')]?'add':_0x2614('0x10');for(const _0x3928e6 of _0x278c11){const _0x4f2073=_0x3928e6['item'],_0xd3d279=_0x39b70f[_0x39b70f['length']-0x1];if(_0x4f2073['is'](_0x2614('0x14')))_0xd3d279&&_0xd3d279['type'][_0x2614('0x35')](_0x2614('0xc'))>-0x1&&_0x39b70f[_0x2614('0x25')](),_0xd3d279&&_0x2614('0x13')==_0xd3d279[_0x2614('0xb')]?_0xd3d279[_0x3e147f]+=_0x4f2073[_0x2614('0x1')]:_0x39b70f[_0x2614('0x17')]({'type':_0x2614('0x13'),'add':_0x2614('0x2')==_0x3e147f?_0x4f2073[_0x2614('0x1')]:'','remove':_0x2614('0x10')==_0x3e147f?_0x4f2073[_0x2614('0x1')]:''});else{if(this[_0x2614('0x2e')][_0x2614('0x30')](_0x4f2073)){const _0x206cce=_0x4f2073;if(_0xd3d279&&_0xd3d279[_0x2614('0xb')][_0x2614('0x35')](_0x2614('0xc'))>-0x1&&_0x39b70f['pop'](),'elementEnd'==_0x3928e6['type'])continue;_0xd3d279&&_0xd3d279[_0x2614('0xb')]==_0x3e147f+_0x2614('0xa')&&_0xd3d279[_0x2614('0x19')]['name']==_0x206cce[_0x2614('0x12')]?_0xd3d279[_0x2614('0x1a')]++:_0x39b70f['push']({'type':_0x3e147f+'Object','element':_0x206cce,'quantity':0x1}),_0x278c11[_0x2614('0x3')](_0x5f13a5=>!(_0x2614('0x36')==_0x5f13a5[_0x2614('0xb')]&&_0x5f13a5[_0x2614('0x27')]==_0x4f2073));}else{if(this[_0x2614('0x2e')]['checkChild'](_0x4f2073,'$text')||_0x4f2073['is']('element','softBreak')){const _0x5365f5=_0x4f2073;if(_0x2614('0x2')==_0x3e147f&&'elementStart'==_0x3928e6[_0x2614('0xb')]||_0x2614('0x10')==_0x3e147f&&_0x2614('0x36')==_0x3928e6[_0x2614('0xb')])continue;if(_0xd3d279&&-0x1==_0xd3d279[_0x2614('0xb')][_0x2614('0x35')]('Container')){'text'==_0xd3d279[_0x2614('0xb')]&&(_0xd3d279[_0x3e147f]+='\x0a');continue;}let _0x3c8235;if(_0x3c8235=_0x2614('0x2')==_0x3e147f?_0x5365f5[_0x2614('0x1b')]&&!this[_0x2614('0x2e')]['isObject'](_0x5365f5[_0x2614('0x1b')])?_0x5365f5[_0x2614('0x1b')]:null:_0x5365f5[_0x2614('0x37')]&&!this['_schema']['isObject'](_0x5365f5[_0x2614('0x37')])?_0x5365f5[_0x2614('0x37')]:null,_0x5365f5['isEmpty']||_0x3c8235&&_0x3c8235[_0x2614('0x28')]){const _0x2107f1=_0x3c8235&&_0x3c8235['isEmpty']?_0x3c8235:_0x5365f5;_0xd3d279&&_0xd3d279['type']==_0x3e147f+_0x2614('0x18')&&_0xd3d279[_0x2614('0x19')][_0x2614('0x12')]==_0x2107f1[_0x2614('0x12')]?_0xd3d279[_0x2614('0x1a')]++:_0x39b70f[_0x2614('0x17')]({'type':_0x3e147f+_0x2614('0x18'),'element':_0x2107f1,'quantity':0x1});}else _0x39b70f['push']({'type':_0x3e147f+_0x2614('0xc'),'element':_0x5365f5});}}}}}[_0x2614('0x16')](_0x3924b4){const _0x314151=this[_0x2614('0x29')],_0x2c3822=[];for(const _0x2aa72e of _0x3924b4){switch(_0x2aa72e[_0x2614('0xb')]){case _0x2614('0x13'):if(_0x2aa72e['add']=_0x2aa72e[_0x2614('0x2')][_0x2614('0x5')](/(\S)\u000A+(\S)/g,_0x2614('0x9'))[_0x2614('0x5')](/\u000A/g,''),_0x2aa72e[_0x2614('0x10')]=_0x2aa72e[_0x2614('0x10')][_0x2614('0x5')](/(\S)\u000A+(\S)/g,_0x2614('0x9'))[_0x2614('0x5')](/\u000A/g,''),''!=_0x2aa72e['add']&&''!=_0x2aa72e['remove']){_0x2c3822[_0x2614('0x17')]({'type':_0x2614('0x5'),'content':_0x503418(_0x314151,_0x2614('0x1e'),['\x22'+_0x2aa72e[_0x2614('0x10')]+'\x22','\x22'+_0x2aa72e[_0x2614('0x2')]+'\x22'])});continue;}if(null!=_0x2aa72e[_0x2614('0x2')][_0x2614('0x7')](/^ +$/)){_0x2c3822[_0x2614('0x17')]({'type':_0x2614('0x24'),'content':_0x503418(_0x314151,_0x2614('0x1f'),_0x503418(_0x314151,_0x2614('0x23'),_0x2aa72e[_0x2614('0x2')]['length']))});continue;}if(null!=_0x2aa72e[_0x2614('0x10')][_0x2614('0x7')](/^ +$/)){_0x2c3822[_0x2614('0x17')]({'type':_0x2614('0x20'),'content':_0x503418(_0x314151,_0x2614('0x2a'),_0x503418(_0x314151,_0x2614('0x23'),_0x2aa72e[_0x2614('0x10')][_0x2614('0x1d')]))});continue;}if(''!=_0x2aa72e[_0x2614('0x2')]){_0x2c3822[_0x2614('0x17')]({'type':_0x2614('0x24'),'content':_0x503418(_0x314151,_0x2614('0x1f'),'\x22'+_0x2aa72e['add']+'\x22')});continue;}_0x2c3822[_0x2614('0x17')]({'type':_0x2614('0x20'),'content':_0x503418(_0x314151,_0x2614('0x2a'),'\x22'+_0x2aa72e[_0x2614('0x10')]+'\x22')});continue;case _0x2614('0x2d'):case _0x2614('0x26'):_0x2c3822[_0x2614('0x17')]({'type':_0x2614('0x24'),'content':_0x503418(_0x314151,_0x2614('0x1f'),this[_0x2614('0x8')](_0x2aa72e[_0x2614('0x19')],_0x2aa72e[_0x2614('0x1a')]))});continue;case'removeEmptyContainer':case _0x2614('0x33'):_0x2c3822['push']({'type':_0x2614('0x20'),'content':_0x503418(_0x314151,'*Remove:*\x20%0',this[_0x2614('0x8')](_0x2aa72e[_0x2614('0x19')],_0x2aa72e['quantity']))});continue;case _0x2614('0x2b'):_0x2c3822[_0x2614('0x17')]({'type':_0x2614('0x24'),'content':_0x503418(_0x314151,_0x2614('0x1c'),this[_0x2614('0x8')](_0x2aa72e[_0x2614('0x19')],_0x2aa72e[_0x2614('0x1a')]))});continue;case'removeContainer':_0x2c3822[_0x2614('0x17')]({'type':'deletion','content':_0x503418(_0x314151,_0x2614('0xf'),this[_0x2614('0x8')](_0x2aa72e[_0x2614('0x19')],_0x2aa72e['quantity']))});continue;}_0x2c3822['push'](_0x2aa72e);}return _0x2c3822;}}
23
+ const _0x16a8=['addObject','push','_addDescriptionItems','_schema','get','item','registerDescriptionCallback','addEmptyContainer','end','function','deletion','skip','replace','quantity','match','_itemLabels','*Insert:*\x20%0','REPLACE_TEXT','add','set','_itemLabelsCallbacks','text','elementEnd','isEqual','data','_resolveDescriptionItems','element','getFirstRange','removeObject','elementStart','type','nextSibling','checkChild','getItemLabel','_customCallbacks','remove','label','normal','isEmpty','isInContent','removeContainer','previousSibling','indexOf','pop','getDescriptions','removeEmptyContainer','$textProxy','Container','*Remove:*\x20%0','isObject','ELEMENT_SPACE','Object','addContainer','*Merge:*\x20%0','getWalker','*Split:*\x20%0','EmptyContainer','name','length','$1\x20$2','start','insertion'];(function(_0x9933b5,_0x16a864){const _0x28f4c8=function(_0xb3cc5a){while(--_0xb3cc5a){_0x9933b5['push'](_0x9933b5['shift']());}};_0x28f4c8(++_0x16a864);}(_0x16a8,0x8c));const _0x28f4=function(_0x9933b5,_0x16a864){_0x9933b5=_0x9933b5-0x0;let _0x28f4c8=_0x16a8[_0x9933b5];return _0x28f4c8;};import{getTranslation as _0xf62a54}from'./utils/common-translations';import{priorities as _0x32d0b2,insertToPriorityArray as _0x429c91}from'ckeditor5/src/utils';export default class m{constructor(_0x209faa,_0x5904e7){this[_0x28f4('0x12')]=[],this[_0x28f4('0x3d')]=new Map(),this[_0x28f4('0x4')]=[],this['_schema']=_0x209faa,this['_locale']=_0x5904e7;}[_0x28f4('0x1c')](_0x1fabbd){const _0x1b0513=[];for(let _0x2c5dbd=0x0;_0x2c5dbd<_0x1fabbd[_0x28f4('0x2a')];_0x2c5dbd++){const _0x87955b=_0x1fabbd[_0x2c5dbd];if(!_0x87955b[_0x28f4('0x17')])continue;let _0x492767=!0x1;for(const _0x1525b0 of this[_0x28f4('0x12')]){const _0x57170b=_0x1525b0(_0x87955b);if(_0x57170b){'type'in _0x57170b&&_0x1b0513['push'](_0x57170b),_0x492767=!0x0;break;}}if(!_0x492767){this[_0x28f4('0x30')](_0x1b0513,_0x87955b);const _0x413697=_0x1fabbd[_0x2c5dbd+0x1];if(_0x413697&&!_0x87955b['getFirstRange']()[_0x28f4('0x36')][_0x28f4('0x7')](_0x413697[_0x28f4('0xb')]()[_0x28f4('0x2c')])){const _0x461c45=_0x1b0513[_0x1b0513[_0x28f4('0x2a')]-0x1],_0x4e5cfd='insertion'==_0x87955b['type']?_0x28f4('0x2'):_0x28f4('0x13');_0x461c45&&_0x28f4('0x5')==_0x461c45[_0x28f4('0xe')]&&(_0x461c45[_0x4e5cfd]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x1b0513);}[_0x28f4('0x34')](_0x5d3bca){this['_customCallbacks'][_0x28f4('0x2f')](_0x5d3bca);}['registerElementLabel'](_0x1398ca,_0x403dcc,_0xb721d0=_0x32d0b2[_0x28f4('0x15')]){_0x28f4('0x37')==typeof _0x1398ca?_0x429c91(this[_0x28f4('0x4')],{'matchingCallback':_0x1398ca,'label':_0x403dcc,'priority':_0xb721d0}):this['_itemLabels'][_0x28f4('0x3')](_0x1398ca,_0x403dcc);}['getItemLabel'](_0x3d2cc5,_0x33939d=0x1){let _0x200430;for(const _0x170920 of this[_0x28f4('0x4')])if(_0x170920['matchingCallback'](_0x3d2cc5)){_0x200430=_0x170920[_0x28f4('0x14')];break;}return _0x200430||(_0x200430=this['_itemLabels'][_0x28f4('0x32')](_0x3d2cc5[_0x28f4('0x29')])),_0x200430?_0x200430(_0x33939d):0x1!==_0x33939d?_0x33939d+'\x20'+_0x3d2cc5['name']+'s':''+_0x3d2cc5[_0x28f4('0x29')];}['_addDescriptionItems'](_0x387b7a,_0x4ca9bb){const _0x3dafd5=_0x4ca9bb[_0x28f4('0xb')]()[_0x28f4('0x26')](),_0x5e61a6=_0x28f4('0x2d')==_0x4ca9bb[_0x28f4('0xe')]?_0x28f4('0x2'):'remove';for(const _0xda5ef5 of _0x3dafd5){const _0x38d8b1=_0xda5ef5[_0x28f4('0x33')],_0xba1d7=_0x387b7a[_0x387b7a[_0x28f4('0x2a')]-0x1];if(_0x38d8b1['is'](_0x28f4('0x1e')))_0xba1d7&&_0xba1d7[_0x28f4('0xe')][_0x28f4('0x1a')]('Container')>-0x1&&_0x387b7a[_0x28f4('0x1b')](),_0xba1d7&&'text'==_0xba1d7[_0x28f4('0xe')]?_0xba1d7[_0x5e61a6]+=_0x38d8b1[_0x28f4('0x8')]:_0x387b7a[_0x28f4('0x2f')]({'type':_0x28f4('0x5'),'add':'add'==_0x5e61a6?_0x38d8b1['data']:'','remove':_0x28f4('0x13')==_0x5e61a6?_0x38d8b1[_0x28f4('0x8')]:''});else{if(this['_schema']['isObject'](_0x38d8b1)){const _0x576282=_0x38d8b1;if(_0xba1d7&&_0xba1d7[_0x28f4('0xe')][_0x28f4('0x1a')]('Container')>-0x1&&_0x387b7a[_0x28f4('0x1b')](),_0x28f4('0x6')==_0xda5ef5[_0x28f4('0xe')])continue;_0xba1d7&&_0xba1d7['type']==_0x5e61a6+'Object'&&_0xba1d7[_0x28f4('0xa')]['name']==_0x576282['name']?_0xba1d7['quantity']++:_0x387b7a[_0x28f4('0x2f')]({'type':_0x5e61a6+_0x28f4('0x23'),'element':_0x576282,'quantity':0x1}),_0x3dafd5[_0x28f4('0x39')](_0x33a1ab=>!(_0x28f4('0x6')==_0x33a1ab['type']&&_0x33a1ab['item']==_0x38d8b1));}else{if(this[_0x28f4('0x31')][_0x28f4('0x10')](_0x38d8b1,'$text')||_0x38d8b1['is'](_0x28f4('0xa'),'softBreak')){const _0x318a72=_0x38d8b1;if(_0x28f4('0x2')==_0x5e61a6&&_0x28f4('0xd')==_0xda5ef5['type']||'remove'==_0x5e61a6&&_0x28f4('0x6')==_0xda5ef5[_0x28f4('0xe')])continue;if(_0xba1d7&&-0x1==_0xba1d7[_0x28f4('0xe')]['indexOf'](_0x28f4('0x1f'))){'text'==_0xba1d7[_0x28f4('0xe')]&&(_0xba1d7[_0x5e61a6]+='\x0a');continue;}let _0x5a5d8d;if(_0x5a5d8d=_0x28f4('0x2')==_0x5e61a6?_0x318a72[_0x28f4('0xf')]&&!this[_0x28f4('0x31')][_0x28f4('0x21')](_0x318a72[_0x28f4('0xf')])?_0x318a72[_0x28f4('0xf')]:null:_0x318a72[_0x28f4('0x19')]&&!this['_schema'][_0x28f4('0x21')](_0x318a72[_0x28f4('0x19')])?_0x318a72['previousSibling']:null,_0x318a72[_0x28f4('0x16')]||_0x5a5d8d&&_0x5a5d8d['isEmpty']){const _0x55368a=_0x5a5d8d&&_0x5a5d8d[_0x28f4('0x16')]?_0x5a5d8d:_0x318a72;_0xba1d7&&_0xba1d7[_0x28f4('0xe')]==_0x5e61a6+_0x28f4('0x28')&&_0xba1d7[_0x28f4('0xa')]['name']==_0x55368a[_0x28f4('0x29')]?_0xba1d7[_0x28f4('0x3b')]++:_0x387b7a[_0x28f4('0x2f')]({'type':_0x5e61a6+_0x28f4('0x28'),'element':_0x55368a,'quantity':0x1});}else _0x387b7a['push']({'type':_0x5e61a6+'Container','element':_0x318a72});}}}}}[_0x28f4('0x9')](_0x1e5331){const _0x59f5c4=this['_locale'],_0x12ae52=[];for(const _0x2ce6fa of _0x1e5331){switch(_0x2ce6fa[_0x28f4('0xe')]){case _0x28f4('0x5'):if(_0x2ce6fa[_0x28f4('0x2')]=_0x2ce6fa[_0x28f4('0x2')][_0x28f4('0x3a')](/(\S)\u000A+(\S)/g,_0x28f4('0x2b'))['replace'](/\u000A/g,''),_0x2ce6fa[_0x28f4('0x13')]=_0x2ce6fa['remove'][_0x28f4('0x3a')](/(\S)\u000A+(\S)/g,_0x28f4('0x2b'))[_0x28f4('0x3a')](/\u000A/g,''),''!=_0x2ce6fa[_0x28f4('0x2')]&&''!=_0x2ce6fa[_0x28f4('0x13')]){_0x12ae52['push']({'type':_0x28f4('0x3a'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x1'),['\x22'+_0x2ce6fa[_0x28f4('0x13')]+'\x22','\x22'+_0x2ce6fa['add']+'\x22'])});continue;}if(null!=_0x2ce6fa[_0x28f4('0x2')][_0x28f4('0x3c')](/^ +$/)){_0x12ae52['push']({'type':'insertion','content':_0xf62a54(_0x59f5c4,_0x28f4('0x0'),_0xf62a54(_0x59f5c4,_0x28f4('0x22'),_0x2ce6fa[_0x28f4('0x2')][_0x28f4('0x2a')]))});continue;}if(null!=_0x2ce6fa[_0x28f4('0x13')][_0x28f4('0x3c')](/^ +$/)){_0x12ae52[_0x28f4('0x2f')]({'type':'deletion','content':_0xf62a54(_0x59f5c4,_0x28f4('0x20'),_0xf62a54(_0x59f5c4,_0x28f4('0x22'),_0x2ce6fa[_0x28f4('0x13')][_0x28f4('0x2a')]))});continue;}if(''!=_0x2ce6fa[_0x28f4('0x2')]){_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x2d'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x0'),'\x22'+_0x2ce6fa['add']+'\x22')});continue;}_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x38'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x20'),'\x22'+_0x2ce6fa[_0x28f4('0x13')]+'\x22')});continue;case _0x28f4('0x35'):case _0x28f4('0x2e'):_0x12ae52['push']({'type':_0x28f4('0x2d'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x0'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa[_0x28f4('0x3b')]))});continue;case _0x28f4('0x1d'):case _0x28f4('0xc'):_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x38'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x20'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa['quantity']))});continue;case _0x28f4('0x24'):_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x2d'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x27'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa[_0x28f4('0x3b')]))});continue;case _0x28f4('0x18'):_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x38'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x25'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa[_0x28f4('0x3b')]))});continue;}_0x12ae52['push'](_0x2ce6fa);}return _0x12ae52;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4a6b=['requires','plugins','getSuggestions','addSuggestion','get','editor','adapter','Comments','getSuggestion'];(function(_0x584dd6,_0x4a6b0a){var _0x3af6a5=function(_0x1afa53){while(--_0x1afa53){_0x584dd6['push'](_0x584dd6['shift']());}};_0x3af6a5(++_0x4a6b0a);}(_0x4a6b,0x1d7));var _0x3af6=function(_0x584dd6,_0x4a6b0a){_0x584dd6=_0x584dd6-0x0;var _0x3af6a5=_0x4a6b[_0x584dd6];return _0x3af6a5;};import{Plugin as _0x203b58}from'ckeditor5/src/core';import _0x106c0b from'./trackchangesui';import _0x5ae3f2 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x203b58{static get[_0x3af6('0x6')](){return[_0x5ae3f2,_0x106c0b,_0x3af6('0x4')];}static get['pluginName'](){return'TrackChanges';}set[_0x3af6('0x3')](_0x732650){this['editor']['plugins'][_0x3af6('0x1')](_0x5ae3f2)[_0x3af6('0x3')]=_0x732650;}get[_0x3af6('0x3')](){return this[_0x3af6('0x2')]['plugins'][_0x3af6('0x1')](_0x5ae3f2)[_0x3af6('0x3')];}[_0x3af6('0x0')](_0x19a22d){return this[_0x3af6('0x2')][_0x3af6('0x7')]['get'](_0x5ae3f2)['addSuggestionData'](_0x19a22d);}['getSuggestions']({skipNotAttached:_0x9b03c2=!0x1,toJSON:_0xe86d56=!0x1}={}){return this[_0x3af6('0x2')][_0x3af6('0x7')][_0x3af6('0x1')](_0x5ae3f2)[_0x3af6('0x8')]({'skipNotAttached':_0x9b03c2,'toJSON':_0xe86d56});}[_0x3af6('0x5')](_0x367e27){return this[_0x3af6('0x2')]['plugins']['get'](_0x5ae3f2)[_0x3af6('0x5')](_0x367e27);}}
23
+ var _0xc61a=['getSuggestions','getSuggestion','editor','addSuggestion','TrackChanges','Comments','requires','get','adapter','plugins'];(function(_0x54cb26,_0xc61ae1){var _0x51bed3=function(_0x294f6c){while(--_0x294f6c){_0x54cb26['push'](_0x54cb26['shift']());}};_0x51bed3(++_0xc61ae1);}(_0xc61a,0x1c8));var _0x51be=function(_0x54cb26,_0xc61ae1){_0x54cb26=_0x54cb26-0x0;var _0x51bed3=_0xc61a[_0x54cb26];return _0x51bed3;};import{Plugin as _0xc86b69}from'ckeditor5/src/core';import _0x41eda8 from'./trackchangesui';import _0x58529a from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0xc86b69{static get[_0x51be('0x0')](){return[_0x58529a,_0x41eda8,_0x51be('0x9')];}static get['pluginName'](){return _0x51be('0x8');}set[_0x51be('0x2')](_0x4fbd98){this[_0x51be('0x6')][_0x51be('0x3')][_0x51be('0x1')](_0x58529a)['adapter']=_0x4fbd98;}get[_0x51be('0x2')](){return this[_0x51be('0x6')][_0x51be('0x3')][_0x51be('0x1')](_0x58529a)[_0x51be('0x2')];}[_0x51be('0x7')](_0x525ca9){return this[_0x51be('0x6')]['plugins']['get'](_0x58529a)['addSuggestionData'](_0x525ca9);}[_0x51be('0x4')]({skipNotAttached:_0x4315c0=!0x1,toJSON:_0x33ad87=!0x1}={}){return this[_0x51be('0x6')][_0x51be('0x3')][_0x51be('0x1')](_0x58529a)[_0x51be('0x4')]({'skipNotAttached':_0x4315c0,'toJSON':_0x33ad87});}['getSuggestion'](_0x3a9be6){return this[_0x51be('0x6')]['plugins'][_0x51be('0x1')](_0x58529a)[_0x51be('0x5')](_0x3a9be6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf044=['addSuggestionData','get','TrackChangesDataGetter','document','set','div','appendChild','TrackChangesData','has','toolbar','Pagination','map','init','users','names','concat','string','getSuggestions','acceptAllSuggestions','requires','name','destroy','end','plugins','WebSocketGateway','builtinPlugins','every','constructor','getDataWithAcceptedSuggestions','trackChangesData','getUser','RevisionTracker','function','extraPlugins','initialData','TrackChangesEditing','Users','create','filter','define','data','push','config','editorCreator','pluginName','CommentsRepository','result','createElement','getRootNames','WordCount','editor','createDocumentFragment','context','includes','model'];(function(_0x3c8d1f,_0xf044a4){const _0x52a6a0=function(_0x17ec5e){while(--_0x17ec5e){_0x3c8d1f['push'](_0x3c8d1f['shift']());}};_0x52a6a0(++_0xf044a4);}(_0xf044,0x162));const _0x52a6=function(_0x3c8d1f,_0xf044a4){_0x3c8d1f=_0x3c8d1f-0x0;let _0x52a6a0=_0xf044[_0x3c8d1f];return _0x52a6a0;};import{Plugin as _0x5ce03c}from'ckeditor5/src/core';import{CKEditorError as _0x1c637e}from'ckeditor5/src/utils';import _0x40f7f3 from'./trackchangesediting';const C=[_0x52a6('0xa'),_0x52a6('0x1c'),_0x52a6('0x28')],w=[_0x52a6('0x0'),_0x52a6('0x7'),'Autosave',_0x52a6('0x19'),_0x52a6('0x29')];export default class T extends _0x5ce03c{static get[_0x52a6('0x32')](){return[_0x40f7f3];}static get[_0x52a6('0x14')](){return _0x52a6('0x26');}['init'](){const _0x148f8f=this[_0x52a6('0x1a')];if(_0x148f8f[_0x52a6('0x12')][_0x52a6('0xf')]('trackChangesData.editorCreator',_0x8cdae9=>_0x148f8f[_0x52a6('0x3')][_0x52a6('0xd')]('',_0x8cdae9)),_0x52a6('0x8')!=typeof _0x148f8f['config'][_0x52a6('0x20')]('trackChangesData')[_0x52a6('0x13')])throw new _0x1c637e('track-changes-data-invalid-editor-creator');}[_0x52a6('0x4')](_0x574a40){return D(this[_0x52a6('0x1a')],!0x0,_0x574a40);}['getDataWithDiscardedSuggestions'](_0x175049){return D(this[_0x52a6('0x1a')],!0x1,_0x175049);}}class P extends _0x5ce03c{static get['pluginName'](){return _0x52a6('0x21');}constructor(_0x5ee1f6){super(_0x5ee1f6),this[_0x52a6('0x16')]=_0x52a6('0x35');}[_0x52a6('0x2b')](){this[_0x52a6('0x1a')][_0x52a6('0x36')]['get'](_0x52a6('0x15'))['adapter']={'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[_0x52a6('0x1a')][_0x52a6('0x36')][_0x52a6('0x20')]('TrackChangesEditing')['_adapter']=null;}}async function D(_0x36ea03,_0x71a7d7,_0x486b53){const _0x348fcc=function(_0x12472b){const _0x260d2c={};for(const _0x5ac9ff of _0x12472b[_0x52a6('0x12')][_0x52a6('0x2d')]())C[_0x52a6('0x1d')](_0x5ac9ff)||(_0x260d2c[_0x5ac9ff]=_0x12472b['config'][_0x52a6('0x20')](_0x5ac9ff));const _0x57af44=_0x12472b['constructor'][_0x52a6('0x1')]||[],_0x1dc6d0=_0x260d2c[_0x52a6('0x9')]||[];delete _0x260d2c['extraPlugins'];const _0x826293=_0x57af44['concat'](_0x260d2c['plugins'])[_0x52a6('0x2e')](_0x1dc6d0)[_0x52a6('0x2a')](_0x2a24da=>_0x52a6('0x2f')==typeof _0x2a24da?_0x57af44['find'](_0x26e680=>_0x26e680['pluginName']==_0x2a24da):_0x2a24da),_0x353ffd=Array['from'](new Set(_0x826293)),_0x5b78e5=new Map();return _0x260d2c['plugins']=_0x353ffd[_0x52a6('0xe')](_0x1c4948=>v(_0x1c4948,_0x5b78e5)),_0x260d2c['plugins'][_0x52a6('0x11')](P),_0x260d2c[_0x52a6('0x36')]['push'](_0x40f7f3),_0x260d2c;}(_0x36ea03),_0x443231=document[_0x52a6('0x1b')](),_0x34c6c9=_0x36ea03['config'][_0x52a6('0x20')](_0x52a6('0x5'))[_0x52a6('0x13')],_0x4761a3=await _0x34c6c9(_0x348fcc,()=>function(_0x3fd2c0){const _0x23213e=document[_0x52a6('0x17')](_0x52a6('0x24'));return _0x3fd2c0[_0x52a6('0x25')](_0x23213e),_0x23213e;}(_0x443231));!function(_0xdfeb54,_0x461d44){const _0x229411=_0xdfeb54[_0x52a6('0x1e')][_0x52a6('0x22')][_0x52a6('0x18')]()['reduce']((_0xa51e2a,_0x3e6c14)=>(_0xa51e2a[_0x3e6c14]=_0xdfeb54[_0x52a6('0x10')][_0x52a6('0x20')]({'rootName':_0x3e6c14}),_0xa51e2a),{}),_0x4eaaea=_0xdfeb54['plugins'][_0x52a6('0x20')](_0x52a6('0xc'))[_0x52a6('0x2c')][_0x52a6('0x2a')](_0x54573d=>({'id':_0x54573d['id'],'name':_0x54573d[_0x52a6('0x33')]})),_0x2b4f73=_0xdfeb54[_0x52a6('0x36')][_0x52a6('0x20')]('TrackChangesEditing')[_0x52a6('0x30')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x387145=_0x461d44[_0x52a6('0x36')][_0x52a6('0x20')]('Users'),_0x1e8c3a=_0x461d44[_0x52a6('0x36')][_0x52a6('0x20')](_0x52a6('0xb'));for(const _0x40dcfa of _0x4eaaea)_0x387145[_0x52a6('0x6')](_0x40dcfa['id'])||_0x387145['addUser'](_0x40dcfa);_0x387145['me']||_0x387145['useAnonymousUser']();for(const _0x438702 of _0x2b4f73)_0x1e8c3a[_0x52a6('0x1f')](_0x438702);_0x461d44[_0x52a6('0x10')][_0x52a6('0x23')](_0x229411);}(_0x36ea03,_0x4761a3),_0x4761a3['execute'](_0x71a7d7?_0x52a6('0x31'):'discardAllSuggestions');const _0x363b3c=_0x4761a3['data'][_0x52a6('0x20')](_0x486b53);return await _0x4761a3[_0x52a6('0x34')](),_0x363b3c;}function v(_0x410152,_0x2d9f40){const _0x8aeccf=_0x52a6('0x8')==typeof _0x410152?_0x410152[_0x52a6('0x14')]||_0x410152[_0x52a6('0x33')]:_0x410152;if(_0x2d9f40[_0x52a6('0x27')](_0x8aeccf))return _0x2d9f40[_0x52a6('0x20')](_0x8aeccf);if(_0x2d9f40[_0x52a6('0x23')](_0x8aeccf,!0x0),_0x8aeccf&&w[_0x52a6('0x1d')](_0x8aeccf))return _0x2d9f40[_0x52a6('0x23')](_0x8aeccf,!0x1),!0x1;if(!_0x410152['requires'])return _0x2d9f40['set'](_0x8aeccf,!0x0),!0x0;const _0x320b4b=_0x410152['requires'][_0x52a6('0x2')](_0x3caeb4=>v(_0x3caeb4,_0x2d9f40));return _0x2d9f40[_0x52a6('0x23')](_0x8aeccf,_0x320b4b),_0x320b4b;}
23
+ const _0x31d8=['requires','data','_adapter','push','map','addUser','destroy','execute','reduce','getRootNames','create','trackChangesData.editorCreator','config','Pagination','editor','Users','includes','get','plugins','filter','TrackChangesData','context','editorCreator','Autosave','getDataWithDiscardedSuggestions','initialData','end','function','constructor','getSuggestions','model','document','createElement','pluginName','from','getDataWithAcceptedSuggestions','trackChangesData','CommentsRepository','toolbar','addSuggestionData','find','set','init','every','result','useAnonymousUser','name','extraPlugins','concat','RevisionTracker','discardAllSuggestions','names','TrackChangesEditing','acceptAllSuggestions','createDocumentFragment'];(function(_0x47019f,_0x31d858){const _0x56bf3b=function(_0x73786){while(--_0x73786){_0x47019f['push'](_0x47019f['shift']());}};_0x56bf3b(++_0x31d858);}(_0x31d8,0x18e));const _0x56bf=function(_0x47019f,_0x31d858){_0x47019f=_0x47019f-0x0;let _0x56bf3b=_0x31d8[_0x47019f];return _0x56bf3b;};import{Plugin as _0x2077db}from'ckeditor5/src/core';import{CKEditorError as _0x4c5bcd}from'ckeditor5/src/utils';import _0x4a4e5e from'./trackchangesediting';const C=[_0x56bf('0xc'),_0x56bf('0x8'),_0x56bf('0x19')],w=['WebSocketGateway',_0x56bf('0x24'),_0x56bf('0xa'),'WordCount',_0x56bf('0x0')];export default class T extends _0x2077db{static get[_0x56bf('0x2a')](){return[_0x4a4e5e];}static get['pluginName'](){return _0x56bf('0x7');}[_0x56bf('0x1d')](){const _0x4e1a1b=this['editor'];if(_0x4e1a1b[_0x56bf('0x36')]['define'](_0x56bf('0x35'),_0x47de40=>_0x4e1a1b[_0x56bf('0xf')][_0x56bf('0x34')]('',_0x47de40)),_0x56bf('0xe')!=typeof _0x4e1a1b[_0x56bf('0x36')]['get']('trackChangesData')['editorCreator'])throw new _0x4c5bcd('track-changes-data-invalid-editor-creator');}[_0x56bf('0x16')](_0x4d2ded){return D(this[_0x56bf('0x1')],!0x0,_0x4d2ded);}[_0x56bf('0xb')](_0xb4ce32){return D(this[_0x56bf('0x1')],!0x1,_0xb4ce32);}}class P extends _0x2077db{static get[_0x56bf('0x14')](){return'TrackChangesDataGetter';}constructor(_0xe0f74b){super(_0xe0f74b),this[_0x56bf('0x1f')]=_0x56bf('0xd');}[_0x56bf('0x1d')](){this[_0x56bf('0x1')][_0x56bf('0x5')]['get'](_0x56bf('0x18'))['adapter']={'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[_0x56bf('0x1')]['plugins'][_0x56bf('0x4')](_0x56bf('0x27'))[_0x56bf('0x2c')]=null;}}async function D(_0x11c25e,_0x1ced7c,_0x4778df){const _0x4f1a45=function(_0x19fee0){const _0x563429={};for(const _0x194c3c of _0x19fee0[_0x56bf('0x36')][_0x56bf('0x26')]())C[_0x56bf('0x3')](_0x194c3c)||(_0x563429[_0x194c3c]=_0x19fee0[_0x56bf('0x36')][_0x56bf('0x4')](_0x194c3c));const _0x206e3f=_0x19fee0[_0x56bf('0xf')]['builtinPlugins']||[],_0x4c85e2=_0x563429[_0x56bf('0x22')]||[];delete _0x563429[_0x56bf('0x22')];const _0x1ff4f8=_0x206e3f[_0x56bf('0x23')](_0x563429[_0x56bf('0x5')])[_0x56bf('0x23')](_0x4c85e2)[_0x56bf('0x2e')](_0x29010e=>'string'==typeof _0x29010e?_0x206e3f[_0x56bf('0x1b')](_0xb4650f=>_0xb4650f[_0x56bf('0x14')]==_0x29010e):_0x29010e),_0x25b5ca=Array[_0x56bf('0x15')](new Set(_0x1ff4f8)),_0x55a1fe=new Map();return _0x563429[_0x56bf('0x5')]=_0x25b5ca[_0x56bf('0x6')](_0x1bd028=>v(_0x1bd028,_0x55a1fe)),_0x563429[_0x56bf('0x5')][_0x56bf('0x2d')](P),_0x563429['plugins'][_0x56bf('0x2d')](_0x4a4e5e),_0x563429;}(_0x11c25e),_0x3bdb4c=document[_0x56bf('0x29')](),_0x2dd452=_0x11c25e[_0x56bf('0x36')]['get'](_0x56bf('0x17'))[_0x56bf('0x9')],_0x548694=await _0x2dd452(_0x4f1a45,()=>function(_0x4269bc){const _0x578989=document[_0x56bf('0x13')]('div');return _0x4269bc['appendChild'](_0x578989),_0x578989;}(_0x3bdb4c));!function(_0x4d7895,_0x3eae9c){const _0x563bf2=_0x4d7895[_0x56bf('0x11')][_0x56bf('0x12')][_0x56bf('0x33')]()[_0x56bf('0x32')]((_0x82158,_0x58ebe8)=>(_0x82158[_0x58ebe8]=_0x4d7895['data']['get']({'rootName':_0x58ebe8}),_0x82158),{}),_0x388898=_0x4d7895[_0x56bf('0x5')][_0x56bf('0x4')]('Users')['users'][_0x56bf('0x2e')](_0x65b675=>({'id':_0x65b675['id'],'name':_0x65b675['name']})),_0x567965=_0x4d7895[_0x56bf('0x5')][_0x56bf('0x4')]('TrackChangesEditing')[_0x56bf('0x10')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b450c=_0x3eae9c[_0x56bf('0x5')][_0x56bf('0x4')](_0x56bf('0x2')),_0x59c59e=_0x3eae9c[_0x56bf('0x5')][_0x56bf('0x4')](_0x56bf('0x27'));for(const _0x4c0966 of _0x388898)_0x5b450c['getUser'](_0x4c0966['id'])||_0x5b450c[_0x56bf('0x2f')](_0x4c0966);_0x5b450c['me']||_0x5b450c[_0x56bf('0x20')]();for(const _0x116252 of _0x567965)_0x59c59e[_0x56bf('0x1a')](_0x116252);_0x3eae9c[_0x56bf('0x2b')][_0x56bf('0x1c')](_0x563bf2);}(_0x11c25e,_0x548694),_0x548694[_0x56bf('0x31')](_0x1ced7c?_0x56bf('0x28'):_0x56bf('0x25'));const _0x47641c=_0x548694[_0x56bf('0x2b')][_0x56bf('0x4')](_0x4778df);return await _0x548694[_0x56bf('0x30')](),_0x47641c;}function v(_0x12ee32,_0x4d0d2d){const _0x20e8d2='function'==typeof _0x12ee32?_0x12ee32[_0x56bf('0x14')]||_0x12ee32[_0x56bf('0x21')]:_0x12ee32;if(_0x4d0d2d['has'](_0x20e8d2))return _0x4d0d2d[_0x56bf('0x4')](_0x20e8d2);if(_0x4d0d2d[_0x56bf('0x1c')](_0x20e8d2,!0x0),_0x20e8d2&&w[_0x56bf('0x3')](_0x20e8d2))return _0x4d0d2d[_0x56bf('0x1c')](_0x20e8d2,!0x1),!0x1;if(!_0x12ee32[_0x56bf('0x2a')])return _0x4d0d2d[_0x56bf('0x1c')](_0x20e8d2,!0x0),!0x0;const _0x18d18f=_0x12ee32['requires'][_0x56bf('0x1e')](_0x16b2a3=>v(_0x16b2a3,_0x4d0d2d));return _0x4d0d2d[_0x56bf('0x1c')](_0x20e8d2,_0x18d18f),_0x18d18f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1393=['high','start','showSuggestionHighlights','markBlockFormat','TrackChangesEditing','values','data-suggestion','insertion:','formatGroupId','schema','ck-suggestion-marker--active','isMultiRange','elementToElement','consume','has','removeComment','markInlineFormat','Users','_getSuggestionData','locale','formatBlock:','_getExternalAuthor','track-changes-adapter-already-set','creator','commentThread','getFirstRange','map','formatBlock:join','conversion','_getAuthorFromId','hasComments','then','isLimit','getUser','change:data','return','insertion:chain','define','size','removeClass','open','formatInline:join','isUndo','markDeletion','consumable','requires','addMarker','widget','_joinWithAdjacentSuggestions','nodeAfter','isInsideObject','insertion:accept','getShiftedBy','getAttribute','moveTargetPosition','insertion','dataReady','rethrowUnexpectedError','markers','formatBlock','isIntersectingWithRange','suggestion:','oldRange','detach','getIntersection','reconvertMarker','before','stop','authorName','_cutOutSuggestionMarker','track-changes-suggestion-data-mismatch','length','getChanges','subType','suggestion-type','hasCommentThread','_refreshSuggestionsChain','_rangeIsInLocalUserInsertion','writer','backward','createSelection','track-changes-command-not-found','isInContent','mapper','isEqual','getNearestSelectionRange','split','unbind','_suggestions','getCustomProperty','model','_adapter','for','isCollapsed','_setSuggestionData','insertContent','accept','skipNestingCheck','_model','addMarker:suggestion','addClass','addMarker:suggestion:formatBlock','originalSuggestionId','lowest','fromCharCode','init','enableReadOnlyMode','enqueueChange','getChangedMarkers','getAncestors','element','createdAt','ck-suggestion-marker','data','resolve','updateMarker','_findSuggestions','forceDefaultExecution','plugins','newRange','trackChangesCommand','forward','getRange','chain','collaboration.channelId','addRange','getSuggestionCallback','isSelectable','range','formatBlock:accept','formatInline','removeMarkers','get','attributes','document','set','bindElementToMarker','addHighlight','acceptAllSuggestions','_updateSuggestionData','insertion:join','removeMarker','editor','formatInline:','$textProxy','dataDowncast','_splitMarkerName','_suggestionFactory','suggestion','next','position','_commentsRepository','remove','_trackFormatChanges','commands','getDifference','isBefore','dataToMarker','activeMarkers','rootName','unbindElementFromMarkerName','createRangeIn','removed','isTouching','accepted','buildSuggestion','updateSuggestion','getSuggestions','track-changes-user-not-found','push','_createSuggestion','options','item','after','config','_customCallbacks','fire','CommentsRepository','join','formatInline:chain','track-changes-suggestion-not-found','isOwn','markerReady','notReady','_isForcedDefaultExecutionBlock','markerName','registerPostFixer','change:activeMarkers','value','ready','discardAllSuggestions','_registerDefaultCallbacks','discard','stopListening','addComment','addUser','_defaultCallbacks','containsPosition','_addSuggestionMarker','insert','delete','isObject','normal','move','multipleBlocks','formatBlock:discard','selection','addSuggestion','enableCommand','fetchCommentThread','root','authoredAt','group','getFirstMarker','ck-suggestion-marker-formatBlock','previous','_checkSuggestionCorrectness','editingDowncast','sort','_breakSuggestionMarker','createRange','_joinSuggestions','type','external:','nodeBefore','isRemovable','_handleNewSuggestionMarker','clear','some','isExternal','suggestionLoaded','PendingActions','update:suggestion','isNextTo','howMany','addCommentThread','$graveyard','deletion:','catch','_onDiscard','isAfter','_setSuggestionRange','addMarkerName','documentSelection','from','commandName','listenTo','createPositionAt','_addThreadToSuggestion','marker-count','parent','getSuggestion','containsRangeInObject','containsItem','every','fromRange','acceptSuggestion','includes','isAtEnd','hasSuggestion','setSelection','markMultiRangeDeletion','discardSelectedSuggestions','@external','refresh','differ','formatInline:accept','getItems','rejected','multi','batch','$marker','_saved','acceptSelectedSuggestions','elementStart','author','getRanges','PENDING_ACTION_SUGGESTION','end','change','markInsertion','containsRange','trackChanges','change:_saved','getLastMatchingPosition','highest','isDocumentOperation','addSuggestionData','deletion:accept','containerElement','editing','_suggestionState','deleteContent','name','discardSuggestion','suggestionChanged','deletion:join','getMultiRangeId','error-saving-suggestion-data-suggestion-discarded','upcast','add','markMultiRangeBlockFormat','low','adapter','ck-suggestion-marker-','splitPosition','execute','filter','removeMarker:suggestion:formatBlock','registerCustomCallback','_editor','_removeSuggestion','deletion','trackChanges.trackFormatChanges','splice','formatInline:discard'];(function(_0x295217,_0x1393d6){const _0x12959e=function(_0x3f59f3){while(--_0x3f59f3){_0x295217['push'](_0x295217['shift']());}};_0x12959e(++_0x1393d6);}(_0x1393,0x111));const _0x1295=function(_0x295217,_0x1393d6){_0x295217=_0x295217-0x0;let _0x12959e=_0x1393[_0x295217];return _0x12959e;};import{Plugin as _0x3fbe60,PendingActions as _0x510eb1}from'ckeditor5/src/core';import{LiveRange as _0x30e928}from'ckeditor5/src/engine';import{CKEditorError as _0x5ca231,uid as _0x381575,priorities as _0x4e5bde,logWarning as _0x5105f9}from'ckeditor5/src/utils';import{toWidget as _0x3e735f}from'ckeditor5/src/widget';import{Users as _0x1a74a7,hashObject as _0x55d191}from'ckeditor5-collaboration/src/collaboration-core';import _0x1452b9 from'./commands/trackchangescommand';import _0x508f45 from'./commands/acceptsuggestioncommand';import _0x23b22b from'./commands/discardsuggestioncommand';import _0x15693c from'./commands/executeonallsuggestionscommand';import _0x239b1b from'./commands/executeonselectedsuggestionscommand';import _0x55858b from'./suggestion';import _0x3f9c39 from'./suggestiondescriptionfactory';import _0x2a4832 from'./integrations/alignment';import _0x5c42f8 from'./integrations/basicstyles';import _0x53f75f from'./integrations/blockquote';import _0x33110f from'./integrations/ckbox';import _0x4fe0fb from'./integrations/codeblock';import _0x4b25f6 from'./integrations/comments';import _0x4dc3a2 from'./integrations/deletecommand';import _0x489fb5 from'./integrations/documentlist';import _0x31eeab from'./integrations/entercommand';import _0x525888 from'./integrations/findandreplace';import _0xcb678d from'./integrations/font';import _0x41bcc6 from'./integrations/heading';import _0x54fb5c from'./integrations/highlight';import _0x9f8f07 from'./integrations/horizontalline';import _0x12082a from'./integrations/htmlembed';import _0x169cc2 from'./integrations/image';import _0x481aa0 from'./integrations/imagereplace';import _0x3a3ff2 from'./integrations/importword';import _0x117361 from'./integrations/indent';import _0x9e9546 from'./integrations/inputcommand';import _0x5d56ca from'./integrations/link';import _0x619dfa from'./integrations/list';import _0x134fca from'./integrations/listproperties';import _0x12570a from'./integrations/mediaembed';import _0x387994 from'./integrations/mention';import _0x1ef231 from'./integrations/pagebreak';import _0x21ff1f from'./integrations/paragraph';import _0x2c90e9 from'./integrations/removeformat';import _0x189db3 from'./integrations/restrictededitingmode';import _0x3daf6f from'./integrations/shiftentercommand';import _0x33f7f4 from'./integrations/standardeditingmode';import _0x1f27e1 from'./integrations/style';import _0x19db28 from'./integrations/table';import _0x485547 from'./integrations/tablemergesplit';import _0x1cc28b from'./integrations/tableheadings';import _0x28e040 from'./integrations/tableclipboard';import _0x3375a3 from'./integrations/tablecolumnresize';import _0x442fdb from'./integrations/title';import _0xf6b108 from'./integrations/undo';import{getTranslation as _0x146fe2}from'./utils/common-translations';import _0x41a3a9 from'./integrations/tablecaption';import _0x9382e4 from'./integrations/documentlistproperties';import _0x56ddf3 from'./integrations/tableproperties';export default class p extends _0x3fbe60{static get[_0x1295('0x58')](){return['CommentsRepository',_0x1a74a7,_0x510eb1,_0x2a4832,_0x5c42f8,_0x53f75f,_0x33110f,_0x4fe0fb,_0x4b25f6,_0x4dc3a2,_0x489fb5,_0x9382e4,_0x31eeab,_0x525888,_0xcb678d,_0x41bcc6,_0x54fb5c,_0x9f8f07,_0x12082a,_0x169cc2,_0x481aa0,_0x3a3ff2,_0x117361,_0x9e9546,_0x5d56ca,_0x619dfa,_0x134fca,_0x12570a,_0x387994,_0x1ef231,_0x21ff1f,_0x2c90e9,_0x189db3,_0x3daf6f,_0x33f7f4,_0x1f27e1,_0x19db28,_0x485547,_0x1cc28b,_0x41a3a9,_0x28e040,_0x3375a3,_0x56ddf3,_0x442fdb,_0xf6b108];}static get['pluginName'](){return _0x1295('0x2f');}constructor(_0xbb4aad){function _0x31e908(_0x38c7bb){return _0x38c7bb[_0x1295('0x45')](_0x1c9e0d=>String[_0x1295('0x93')](_0x1c9e0d))[_0x1295('0xdd')]('');}super(_0xbb4aad),this[_0x1295('0xb2')](_0x1295('0xc9'),[]),this['on'](_0x1295('0xe6'),(_0x525250,_0x32a6ad,_0x1b848c,_0x565e49)=>{this[_0x1295('0x8d')]['change'](()=>{for(const _0x21bf12 of[..._0x565e49,..._0x1b848c])this['_model'][_0x1295('0x65')][_0x1295('0x39')](_0x21bf12)&&_0xbb4aad[_0x1295('0x11')][_0x1295('0x6c')](_0x21bf12);});}),this['_descriptionFactory']=new _0x3f9c39(this['editor'][_0x1295('0x85')][_0x1295('0x34')],this[_0x1295('0xb9')][_0x1295('0x3e')]),this[_0x1295('0x86')]=null,this[_0x1295('0xbe')]=new vt(this[_0x1295('0xb9')]),this['_suggestions']=new Map(),this[_0x1295('0xc2')]=_0xbb4aad[_0x1295('0xa1')]['get'](_0x1295('0xdc')),this['_enabledCommands']=new Set(),this[_0x1295('0x8d')]=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xbb4aad['config'][_0x1295('0x50')](_0x1295('0x28'),!0x0),this[_0x1295('0xc4')]=_0xbb4aad['config'][_0x1295('0xaf')]('trackChanges.trackFormatChanges'),this[_0x1295('0xa3')]=new _0x1452b9(_0xbb4aad,this['_enabledCommands']),this[_0x31e908([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x31e908([0x34,0x30,0x34,0x36,0x30,0x38,0x30,0x36]);}[_0x1295('0x94')](){const _0x15d52e=this[_0x1295('0xb9')];_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x104'))['markerToHighlight']({'model':_0x1295('0xbf'),'view':_0x33d8f9=>{const {id:_0x42a4fd,type:_0x1a1e17}=this[_0x1295('0xbd')](_0x33d8f9['markerName']),_0x3fa754=[_0x1295('0x9b'),_0x1295('0x1f')+_0x1a1e17];let _0x5ee5d1=0xbb8;return this[_0x1295('0xc9')]['includes'](_0x33d8f9[_0x1295('0xe4')])&&(_0x3fa754['push']('ck-suggestion-marker--active'),_0x5ee5d1=0xbc2),'deletion'==_0x1a1e17&&(_0x5ee5d1+=0x5),{'classes':_0x3fa754,'attributes':{'data-suggestion':_0x42a4fd},'priority':_0x5ee5d1};}}),_0x15d52e['conversion'][_0x1295('0x87')](_0x1295('0xbc'))['add'](_0x5e0b14=>{_0x5e0b14['on'](_0x1295('0x8e'),(_0x255afa,_0x28d207,_0x51bbed)=>{if(!_0x51bbed[_0x1295('0xd6')][_0x1295('0x2d')])return;const _0x41f51a=_0x28d207[_0x1295('0xd7')];if(!_0x41f51a)return;const _0x3b2090=_0x51bbed[_0x1295('0x7e')]['toViewElement'](_0x41f51a);_0x15d52e['model'][_0x1295('0x34')][_0x1295('0xf4')](_0x41f51a)&&_0x3b2090&&!_0x3b2090[_0x1295('0x84')](_0x1295('0x5a'))&&_0x3b2090['is'](_0x1295('0x10'))&&_0x3e735f(_0x3b2090,_0x51bbed[_0x1295('0x79')]);},{'priority':_0x1295('0x2b')});}),_0x15d52e[_0x1295('0x47')]['for']('dataDowncast')['markerToHighlight']({'model':_0x1295('0xbf'),'view':(_0x1ba01c,_0x2e4854)=>{if(!_0x2e4854[_0x1295('0xd6')][_0x1295('0x2d')])return null;const {type:_0x6cc2e7}=this[_0x1295('0xbd')](_0x1ba01c[_0x1295('0xe4')]);return{'classes':[_0x1295('0x9b'),_0x1295('0x1f')+_0x6cc2e7],'priority':0xbb8};}});const _0x3097a5=({showActiveMarkers:_0x418454=!0x0}={})=>(_0x3b0022,_0x129ff8,_0x2bc38f)=>{if(!_0x129ff8['item'])return;if(_0x129ff8[_0x1295('0xd7')]['is']('selection'))return void _0x2bc38f['consumable'][_0x1295('0x38')](_0x129ff8[_0x1295('0xd7')],_0x3b0022[_0x1295('0x14')]);const _0x4804c6=_0x2bc38f[_0x1295('0x7e')]['toViewElement'](_0x129ff8[_0x1295('0xd7')]);if(!(_0x129ff8['item']['is'](_0x1295('0x99'))&&_0x15d52e['model'][_0x1295('0x34')]['isBlock'](_0x129ff8[_0x1295('0xd7')])&&!_0x4804c6['getCustomProperty'](_0x1295('0xb4'))))return;const {id:_0x4ca0fc}=this['_splitMarkerName'](_0x129ff8[_0x1295('0xe4')]);_0x2bc38f['writer'][_0x1295('0x8f')]([_0x1295('0x9b'),_0x1295('0x101')],_0x4804c6),_0x2bc38f[_0x1295('0x79')]['setAttribute'](_0x1295('0x31'),_0x4ca0fc,_0x4804c6),_0x2bc38f[_0x1295('0x7e')][_0x1295('0xb3')](_0x4804c6,_0x129ff8[_0x1295('0xe4')]),_0x418454&&(this[_0x1295('0xc9')][_0x1295('0x12c')](_0x129ff8[_0x1295('0xe4')])?_0x2bc38f[_0x1295('0x79')][_0x1295('0x8f')](_0x1295('0x35'),_0x4804c6):_0x2bc38f[_0x1295('0x79')]['removeClass']('ck-suggestion-marker--active',_0x4804c6));for(const _0x4b8ab6 of _0x15d52e[_0x1295('0x85')][_0x1295('0xcc')](_0x129ff8[_0x1295('0xd7')])[_0x1295('0x136')]())_0x2bc38f[_0x1295('0x57')][_0x1295('0x38')](_0x4b8ab6,_0x3b0022[_0x1295('0x14')]);_0x2bc38f[_0x1295('0x57')][_0x1295('0x38')](_0x129ff8[_0x1295('0xd7')],_0x3b0022['name']);};_0x15d52e[_0x1295('0x47')]['for'](_0x1295('0xbc'))['add'](_0x553557=>{_0x553557['on'](_0x1295('0x90'),(_0x5e5a9f,_0x5cdba8,_0x1dd985)=>{_0x1dd985[_0x1295('0xd6')][_0x1295('0x2d')]&&_0x3097a5({'showActiveMarkers':!0x1})(_0x5e5a9f,_0x5cdba8,_0x1dd985);},{'priority':_0x1295('0xc')});}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')]('dataDowncast')['markerToData']({'model':_0x1295('0xbf'),'view':(_0xea722,_0x252da1)=>_0x252da1[_0x1295('0xd6')][_0x1295('0x2d')]?null:{'group':_0x1295('0xbf'),'name':_0xea722['substr'](_0x1295('0xbf')[_0x1295('0x72')]+0x1)}}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x1a'))[_0x1295('0x37')]({'view':{'name':_0x1295('0xbf'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a48aa,{writer:_0x12dda2})=>{let _0x20ef05='suggestion:'+_0x1a48aa[_0x1295('0x60')](_0x1295('0x75'))+':'+_0x1a48aa[_0x1295('0x60')]('id');return _0x1a48aa[_0x1295('0x60')](_0x1295('0x124'))&&(_0x20ef05+=':'+_0x1a48aa[_0x1295('0x60')](_0x1295('0x124'))),_0x12dda2['createElement'](_0x1295('0x13a'),{'data-name':_0x20ef05});}}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x1a'))[_0x1295('0xc8')]({'view':_0x1295('0xbf')}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')]('editingDowncast')[_0x1295('0x1b')](_0x1d7608=>{_0x1d7608['on'](_0x1295('0x90'),_0x3097a5(),{'priority':_0x1295('0x2b')});}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x104'))[_0x1295('0x1b')](_0x429c47=>{_0x429c47['on'](_0x1295('0x23'),(_0x1e2eb4,_0x40fb94,_0x2e13f7)=>{const _0x776f46=_0x2e13f7[_0x1295('0x7e')]['markerNameToElements'](_0x40fb94[_0x1295('0xe4')]);if(_0x776f46)for(const _0x31768f of _0x776f46)_0x31768f[_0x1295('0x84')](_0x1295('0xb4'))||(_0x2e13f7[_0x1295('0x79')][_0x1295('0x52')]([_0x1295('0x9b'),_0x1295('0x101'),_0x1295('0x35')],_0x31768f),_0x2e13f7[_0x1295('0x79')]['removeAttribute'](_0x1295('0x31'),_0x31768f),_0x2e13f7[_0x1295('0x7e')][_0x1295('0xcb')](_0x31768f,_0x40fb94[_0x1295('0xe4')]));},{'priority':'high'});}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0xe5')](_0x513aa7=>{let _0xae3eea=!0x1;const _0x4ba6b5=Array[_0x1295('0x11f')](_0x15d52e['model'][_0x1295('0xb1')][_0x1295('0x134')][_0x1295('0x97')]()),_0x4d23d2=new Set();for(const {name:_0x3982ef,data:_0x16183e}of _0x4ba6b5){const {group:_0x45b9c4,type:_0x2ea65c,id:_0x38c119}=this[_0x1295('0xbd')](_0x3982ef);if('suggestion'!==_0x45b9c4)continue;const _0x5b9999=this[_0x1295('0x83')][_0x1295('0xaf')](_0x38c119);if(null!=_0x16183e['newRange']){_0x1295('0xad')==_0x2ea65c&&(_0xae3eea=_0xae3eea||Ct(_0x16183e[_0x1295('0xa2')],_0x3982ef,_0x513aa7,_0x15d52e['model'][_0x1295('0x34')]));if(_0x16183e[_0x1295('0xa2')]['isCollapsed']||'$graveyard'==_0x16183e[_0x1295('0xa2')][_0x1295('0xfd')][_0x1295('0xca')]||'formatBlock'==_0x2ea65c&&!_t(_0x16183e[_0x1295('0xa2')])||_0x1295('0x27')==_0x2ea65c&&!(!Dt(_0x269d10=_0x16183e[_0x1295('0xa2')])&&!function(_0xa44f36){return _0xa44f36[_0x1295('0x2c')]['parent']==_0xa44f36[_0x1295('0x5')][_0x1295('0x10b')]&&_0xa44f36[_0x1295('0x2c')][_0x1295('0x12d')];}(_0x269d10)))_0x513aa7['removeMarker'](_0x3982ef),_0xae3eea=!0x0;else{if(!_0x5b9999||!_0x5b9999['isInContent'])continue;_0x4d23d2[_0x1295('0x1b')](_0x5b9999);}}}var _0x269d10;return _0x4d23d2[_0x1295('0x51')]>0x0&&(_0xae3eea=!!this[_0x1295('0x5b')](_0x4d23d2)||_0xae3eea),_0xae3eea;}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0xe5')](_0x2ab407=>{let _0x2fd14d=!0x1;for(const _0x53cdae of _0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0x134')][_0x1295('0x73')]()){if('insert'!=_0x53cdae[_0x1295('0x109')])continue;const _0x47cc5e=_0x53cdae[_0x1295('0xc1')]['getShiftedBy'](_0x53cdae['length']);if(_0x47cc5e[_0x1295('0x12d')])for(const _0x2c0107 of this[_0x1295('0x83')][_0x1295('0x30')]()){if(_0x2c0107[_0x1295('0x36')]||!_0x2c0107[_0x1295('0x7d')])continue;if(_0x1295('0x66')!=_0x2c0107['type'])continue;const _0x56b525=_0x2c0107['getFirstRange']();if(_0x56b525[_0x1295('0x2c')][_0x1295('0x125')]!=_0x56b525[_0x1295('0x5')][_0x1295('0x125')]&&_0x56b525['end'][_0x1295('0x7f')](_0x53cdae[_0x1295('0xc1')])){const _0x1a7ffd=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0x56b525[_0x1295('0x2c')],_0x47cc5e);_0x2ab407['updateMarker'](_0x2c0107['getFirstMarker'](),{'range':_0x1a7ffd}),_0x2fd14d=!0x0;}}}return _0x2fd14d;}),_0x15d52e['model'][_0x1295('0x65')]['on'](_0x1295('0x113'),(_0x3e32b8,_0x2da344,_0x242afb)=>{if(null==_0x242afb){const {id:_0x445272}=this[_0x1295('0xbd')](_0x2da344[_0x1295('0x14')]),_0x314cfc=this[_0x1295('0x83')][_0x1295('0xaf')](_0x445272);_0x314cfc&&_0x314cfc[_0x1295('0x11d')](_0x2da344['name']);}}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')]['on'](_0x1295('0x4d'),()=>{const _0x39df76=Array[_0x1295('0x11f')](_0x15d52e['model'][_0x1295('0xb1')][_0x1295('0x134')]['getChangedMarkers']())[_0x1295('0x22')](_0x2d02eb=>'suggestion'===this['_splitMarkerName'](_0x2d02eb[_0x1295('0x14')])[_0x1295('0xff')]);if(0x0===_0x39df76[_0x1295('0x72')])return;_0x39df76[_0x1295('0x105')]((_0x13710d,_0x46b6b6)=>{const _0x2e3e48=_0x13710d[_0x1295('0x9c')][_0x1295('0x69')],_0x218dd2=_0x46b6b6[_0x1295('0x9c')][_0x1295('0x69')];return null===_0x2e3e48&&null===_0x218dd2?0x0:null===_0x2e3e48&&null!==_0x218dd2?-0x1:null!==_0x2e3e48&&null===_0x218dd2?0x1:_0x2e3e48[_0x1295('0x2c')]['isBefore'](_0x218dd2['start'])?-0x1:0x1;});const _0x2829a7=new Set(),_0x56d6fa=new Set();for(const {name:_0x29df30,data:_0x16d414}of _0x39df76){const {id:_0x562b8e}=this[_0x1295('0xbd')](_0x29df30);if(null===_0x16d414[_0x1295('0x69')]){const _0x241292=this[_0x1295('0x10d')](_0x29df30);_0x56d6fa[_0x1295('0x1b')](_0x241292);}else{const _0x243e51=this[_0x1295('0x83')]['get'](_0x562b8e);null!==_0x16d414['newRange']||_0x243e51[_0x1295('0x7d')]?(_0x2829a7[_0x1295('0x1b')](_0x243e51['head']),_0x56d6fa[_0x1295('0x1b')](_0x243e51)):this['_removeSuggestion'](_0x243e51);}}_0x56d6fa['size']>0x0&&this[_0x1295('0x77')](_0x56d6fa);for(const _0x405b31 of _0x2829a7)this[_0x1295('0xdb')](_0x1295('0x16'),_0x405b31);}),_0x15d52e[_0x1295('0x85')]['on']('applyOperation',(_0x4686f0,_0x22cf15)=>{const _0x4bc040=_0x22cf15[0x0];if(!this['_suggestions'][_0x1295('0x51')])return;if(!_0x4bc040[_0x1295('0xd')])return;if(_0x4bc040[_0x1295('0x139')][_0x1295('0x55')]||!_0x4bc040['batch']['isLocal'])return;let _0x1a8d62,_0x35dc0b;switch(_0x4bc040[_0x1295('0x109')]){case _0x1295('0xf2'):_0x1a8d62=_0x15d52e['model'][_0x1295('0x122')](_0x4bc040[_0x1295('0xc1')]),_0x35dc0b=_0x1a8d62[_0x1295('0x5f')](_0x4bc040[_0x1295('0x115')]);break;case _0x1295('0x81'):_0x1a8d62=_0x15d52e[_0x1295('0x85')]['createPositionAt'](_0x4bc040[_0x1295('0x20')]),_0x35dc0b=_0x15d52e['model'][_0x1295('0x122')](_0x4bc040[_0x1295('0x61')]);break;case _0x1295('0xf6'):_0x1a8d62=_0x15d52e[_0x1295('0x85')]['createPositionAt'](_0x4bc040['targetPosition']),_0x35dc0b=_0x1a8d62[_0x1295('0x5f')](_0x4bc040[_0x1295('0x115')]);break;default:return;}const _0x1483c1=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0x1a8d62,_0x35dc0b);_0x15d52e[_0x1295('0x85')][_0x1295('0x6')](()=>{for(const {suggestion:_0x45373e,meta:_0x5d34a1}of this['_findSuggestions'](_0x1483c1)){if(_0x45373e['isMultiRange'])continue;if(_0x1295('0xad')==_0x45373e[_0x1295('0x109')])continue;const _0x54a794=_0x45373e[_0x1295('0x9c')]&&_0x45373e[_0x1295('0x9c')]['multipleBlocks'];(_0x1295('0x66')!=_0x45373e[_0x1295('0x109')]||_0x1295('0x81')==_0x4bc040[_0x1295('0x109')]&&!_0x54a794)&&(_0x5d34a1[_0x1295('0x127')]||_0x1295('0x62')==_0x45373e[_0x1295('0x109')]&&_0x5d34a1['isOwn']||_0x45373e[_0x1295('0x44')]()[_0x1295('0x8')](_0x1483c1)&&this[_0x1295('0x106')](_0x45373e,_0x1a8d62,_0x35dc0b));}});},{'priority':_0x1295('0x92')}),_0x15d52e[_0x1295('0x85')]['on']('deleteContent',(_0x43bff8,_0x719089)=>{const _0x53a08d=_0x719089[0x0],_0xf8642e=_0x719089[0x1];if(_0xf8642e&&_0xf8642e[_0x1295('0xa0')])return;if(this[_0x1295('0xe3')])return;if(!this[_0x1295('0xa3')][_0x1295('0xe7')])return;if(_0x53a08d[_0x1295('0x88')])return;const _0x2e798f=_0x15d52e['model']['schema'],{start:_0x11e884,end:_0x4614f3}=_0x53a08d[_0x1295('0x44')](),_0xaca712=_0x11e884[_0x1295('0x5c')]&&_0x2e798f['isLimit'](_0x11e884[_0x1295('0x5c')])?null:_0x2e798f[_0x1295('0x80')](_0x11e884,_0x1295('0xa4')),_0xe7e118=_0x4614f3[_0x1295('0x10b')]&&_0x2e798f[_0x1295('0x4b')](_0x4614f3[_0x1295('0x10b')])?null:_0x2e798f[_0x1295('0x80')](_0x4614f3,_0x1295('0x7a')),_0x49d69c=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0xaca712?_0xaca712[_0x1295('0x2c')]:_0x11e884,_0xe7e118?_0xe7e118[_0x1295('0x5')]:_0x4614f3);_0x15d52e[_0x1295('0x85')][_0x1295('0x6')](_0xc36ba4=>{this['markDeletion'](_0x49d69c);const _0x43b3f5=_0x15d52e['model'][_0x1295('0x34')][_0x1295('0x80')](_0x49d69c[_0x1295('0x2c')]);_0x53a08d['is'](_0x1295('0x11e'))?_0xc36ba4[_0x1295('0x12f')](_0x43b3f5):_0x53a08d['setTo'](_0x43b3f5);}),_0x43bff8[_0x1295('0x6e')]();},{'priority':_0x4e5bde[_0x1295('0xf5')]+0xa}),_0x15d52e['model']['on']('insertContent',(_0x17fe0c,_0x13d6ee)=>{const _0x5327a6=_0x13d6ee[_0x13d6ee['length']-0x1];_0x5327a6&&_0x5327a6[_0x1295('0xa0')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x1295('0xe7')]&&(_0x15d52e[_0x1295('0x85')]['change'](()=>{let _0x545a7a=_0x15d52e[_0x1295('0x85')][_0x1295('0x8a')](_0x13d6ee[0x0],_0x13d6ee[0x1],_0x13d6ee[0x2],{'forceDefaultExecution':!0x0});if(!_0x545a7a)return;_0x17fe0c[_0x1295('0x4e')]=_0x545a7a['clone']();const _0x3f519f=_0x545a7a[_0x1295('0x5')]['nodeBefore'],_0x1a9dc1=_0x15d52e['model'][_0x1295('0x34')];_0x3f519f&&_0x1a9dc1['isBlock'](_0x3f519f)&&!_0x1a9dc1[_0x1295('0xf4')](_0x3f519f)&&(_0x545a7a=_0x15d52e['model']['createRange'](_0x545a7a[_0x1295('0x2c')],_0x15d52e[_0x1295('0x85')][_0x1295('0x122')](_0x3f519f,_0x1295('0x5')))),this[_0x1295('0x7')](_0x545a7a);}),_0x17fe0c[_0x1295('0x6e')]());},{'priority':_0x1295('0x2b')}),this[_0x1295('0xb9')][_0x1295('0xc5')][_0x1295('0x1b')]('trackChanges',this['trackChangesCommand']),this[_0x1295('0xfb')](_0x1295('0x9'));const _0x8da3e=new _0x508f45(_0x15d52e,this[_0x1295('0x83')]);_0x15d52e['commands'][_0x1295('0x1b')]('acceptSuggestion',_0x8da3e),this[_0x1295('0xfb')](_0x1295('0x12b'));const _0xb10686=new _0x23b22b(_0x15d52e,this[_0x1295('0x83')]);_0x15d52e[_0x1295('0xc5')][_0x1295('0x1b')](_0x1295('0x15'),_0xb10686),this[_0x1295('0xfb')](_0x1295('0x15')),_0x15d52e[_0x1295('0xc5')]['add']('acceptAllSuggestions',new _0x15693c(_0x15d52e,_0x8da3e,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0xb5')),_0x15d52e[_0x1295('0xc5')][_0x1295('0x1b')]('discardAllSuggestions',new _0x15693c(_0x15d52e,_0xb10686,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0xe9')),_0x15d52e[_0x1295('0xc5')]['add']('acceptSelectedSuggestions',new _0x239b1b(_0x15d52e,_0x8da3e,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0x0')),_0x15d52e['commands'][_0x1295('0x1b')](_0x1295('0x131'),new _0x239b1b(_0x15d52e,_0xb10686,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0x131'));const _0x117673=_0x15d52e[_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0xdc'));this[_0x1295('0x121')](_0x117673,_0x1295('0xed'),(_0x291368,{threadId:_0x2c5584})=>{const _0x51dd84=this['_suggestions'][_0x1295('0xaf')](_0x2c5584);_0x51dd84&&_0x51dd84[_0x1295('0x43')]&&0x1===_0x51dd84['commentThread'][_0x1295('0x72')]&&this[_0x1295('0xb6')](_0x2c5584,{'hasComments':!0x0});},{'priority':_0x1295('0x1d')}),this[_0x1295('0x121')](_0x117673,_0x1295('0x3a'),(_0x183a84,{threadId:_0x28acbf})=>{const _0xe3475c=this[_0x1295('0x83')][_0x1295('0xaf')](_0x28acbf);_0xe3475c&&_0xe3475c[_0x1295('0x43')]&&!_0xe3475c[_0x1295('0x43')][_0x1295('0x72')]&&this[_0x1295('0xb6')](_0x28acbf,{'hasComments':!0x1});},{'priority':_0x1295('0x1d')});}set[_0x1295('0x1e')](_0x356972){if(this[_0x1295('0x86')])throw new _0x5ca231(_0x1295('0x41'),this);this[_0x1295('0x86')]=_0x356972;}get[_0x1295('0x1e')](){return this[_0x1295('0x86')];}['getSuggestions']({skipNotAttached:_0x62d552=!0x1,toJSON:_0x3474c8=!0x1}={}){const _0x53d560=[];for(const _0x43aaa4 of this['_suggestions'][_0x1295('0x30')]())_0x62d552&&!_0x43aaa4['isInContent']||_0x53d560['push'](_0x43aaa4);return _0x3474c8?_0x53d560[_0x1295('0x45')](_0x13fd2f=>_0x13fd2f['toJSON']()):_0x53d560;}[_0x1295('0x126')](_0x2211ae){const _0x5908f2=this['_suggestions'][_0x1295('0xaf')](_0x2211ae);if(!_0x5908f2)throw new _0x5ca231(_0x1295('0xdf'),this);return _0x5908f2;}[_0x1295('0x12e')](_0x42e590){return this[_0x1295('0x83')][_0x1295('0x39')](_0x42e590);}['addSuggestionData'](_0x4d97fa){const {authorId:_0x3edd14,id:_0x429b43,attributes:_0x2520c9}=_0x4d97fa,[_0x419595,_0x1bce1b]=_0x4d97fa[_0x1295('0x109')][_0x1295('0x81')](':'),_0x14cfc3=this[_0x1295('0x83')]['get'](_0x429b43)||this[_0x1295('0xd5')](_0x419595,_0x1bce1b,_0x429b43,_0x3edd14,_0x2520c9);if(this[_0x1295('0x123')](_0x14cfc3),this[_0x1295('0x103')](_0x14cfc3,_0x419595,_0x1bce1b||null,_0x3edd14),_0x14cfc3['createdAt']=_0x4d97fa['createdAt'],_0x2520c9&&_0x2520c9[_0x1295('0x132')]){const _0x4fb34b=_0x2520c9[_0x1295('0x132')],_0x399359=this[_0x1295('0x40')](_0x4fb34b[_0x1295('0x6f')]);_0x14cfc3['authoredAt']=_0x4fb34b[_0x1295('0x9a')],_0x14cfc3['author']=_0x399359,_0x14cfc3[_0x1295('0x110')]=!0x0;}else _0x14cfc3[_0x1295('0xfe')]=_0x4d97fa['createdAt'];switch(_0x4d97fa[_0x1295('0x9c')]&&(_0x14cfc3[_0x1295('0x9c')]=_0x4d97fa[_0x1295('0x9c')]),_0x4d97fa[_0x1295('0xb0')]&&(_0x14cfc3[_0x1295('0xb0')]=_0x4d97fa[_0x1295('0xb0')]),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14cfc3['_saved']=!0x0),this[_0x1295('0x12')][_0x1295('0xaf')](_0x14cfc3)){case _0x1295('0xe2'):this[_0x1295('0x12')]['set'](_0x14cfc3,_0x1295('0x63'));break;case'markerReady':_0x14cfc3['isInContent']?(this[_0x1295('0x12')][_0x1295('0xb2')](_0x14cfc3,'ready'),this[_0x1295('0xdb')](_0x1295('0x111'),_0x14cfc3)):this[_0x1295('0x12')]['set'](_0x14cfc3,_0x1295('0xcd'));}return _0x14cfc3;}[_0x1295('0x12b')](_0x26cdf9){this[_0x1295('0xa0')](()=>{this[_0x1295('0xb9')]['model'][_0x1295('0x6')](()=>{for(const _0xd621ec of _0x26cdf9['getAllAdjacentSuggestions']())_0xd621ec[_0x1295('0x8b')]();});});}['discardSuggestion'](_0x5e88e8){this[_0x1295('0xa0')](()=>{this[_0x1295('0xb9')][_0x1295('0x85')][_0x1295('0x6')](()=>{for(const _0x34abd6 of _0x5e88e8['getAllAdjacentSuggestions']())_0x34abd6[_0x1295('0xeb')]();});});}[_0x1295('0xfb')](_0x19f6bc,_0x255271){const _0x23958f=this[_0x1295('0xb9')][_0x1295('0xc5')][_0x1295('0xaf')](_0x19f6bc);if(!_0x23958f)throw new _0x5ca231(_0x1295('0x7c'),this,{'commandName':_0x19f6bc});this['_enabledCommands'][_0x1295('0x1b')](_0x23958f),_0x255271&&_0x23958f['on'](_0x1295('0x21'),(_0x3f07d9,_0x48e2ff)=>{this['trackChangesCommand']['value']&&(this[_0x1295('0xe3')]||_0x48e2ff[_0x1295('0x72')]>0x0&&_0x48e2ff[_0x48e2ff[_0x1295('0x72')]-0x1]&&_0x48e2ff[_0x48e2ff['length']-0x1]['forceDefaultExecution']||(_0x255271((..._0x19d9ea)=>_0x23958f[_0x1295('0x21')](..._0x19d9ea,{'forceDefaultExecution':!0x0}),..._0x48e2ff),_0x3f07d9[_0x1295('0x6e')]()));},{'priority':'high'});}[_0x1295('0xa0')](_0x55d5dc){let _0x33b928,_0x175044;const _0x429201=this[_0x1295('0xe3')];this[_0x1295('0xe3')]=!0x0;try{_0x33b928=_0x55d5dc();}catch(_0x2c29b3){_0x175044=_0x2c29b3;}return _0x429201||(this[_0x1295('0xe3')]=!0x1),_0x175044&&_0x5ca231[_0x1295('0x64')](_0x175044,this),_0x33b928;}['markInsertion'](_0x2dbe0e,_0x2d31b0=null,_0x3cdaba={}){if(_0x2dbe0e[_0x1295('0x88')])return null;const _0x108162=this[_0x1295('0xb9')][_0x1295('0xa1')]['get']('Users')['me'];for(const {suggestion:_0xc0e8fc,meta:_0x1f0a59}of this[_0x1295('0x9f')](_0x2dbe0e,_0x1295('0x62')))if(_0x1f0a59[_0x1295('0xe0')]){if(!_0x1f0a59[_0x1295('0x114')])return _0xc0e8fc;if(_0x2d31b0==_0xc0e8fc['subType']){const _0xc07eb9=_0xc0e8fc['getFirstRange']();return _0xc07eb9['start'][_0x1295('0x7f')](_0x2dbe0e['end'])?this[_0x1295('0x11c')](_0xc0e8fc,this[_0x1295('0x8d')][_0x1295('0x107')](_0x2dbe0e['start'],_0xc07eb9[_0x1295('0x5')])):this[_0x1295('0x11c')](_0xc0e8fc,this['_model'][_0x1295('0x107')](_0xc07eb9[_0x1295('0x2c')],_0x2dbe0e['end'])),_0xc0e8fc;}}const _0x4a8939=_0x381575(),_0x4fc87d=_0x108162['id'],_0x5d2f91=_0x2d31b0?_0x1295('0x32')+_0x2d31b0:_0x1295('0x62'),_0xcab097=this[_0x1295('0x89')]({'id':_0x4a8939,'type':_0x5d2f91,'createdAt':new Date(),'authorId':_0x4fc87d,'attributes':_0x3cdaba});return this[_0x1295('0xf1')](_0x5d2f91,_0x4a8939,_0x4fc87d,_0x2dbe0e),_0xcab097;}['markMultiRangeInsertion'](_0x5cf85a,_0x366f6b='multi',_0x4d2445={}){const _0x10c36f=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c'))['me'],_0x177ece=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x62'),_0x366f6b,'join');for(const _0x2d6c1f of this[_0x1295('0xd2')]())if(_0x2d6c1f[_0x1295('0x2')]['id']==_0x10c36f['id']&&_0x1295('0x62')==_0x2d6c1f[_0x1295('0x109')]&&_0x2d6c1f['subType']==_0x366f6b&&(_0x177ece(_0x2d6c1f[_0x1295('0x3')](),_0x5cf85a)||_0x177ece(_0x5cf85a,_0x2d6c1f[_0x1295('0x3')]()))){for(const _0x694966 of _0x5cf85a)_0x2d6c1f[_0x1295('0xa8')](_0x694966);return _0x2d6c1f;}for(const _0xbc47e6 of _0x5cf85a)for(const {suggestion:_0x5d9db7,meta:_0x1743c6}of this['_findSuggestions'](_0xbc47e6,_0x1295('0x62'))){if(!_0x1743c6[_0x1295('0xe0')])continue;let _0x2481d6=!0x0;for(const _0x288455 of _0x5d9db7[_0x1295('0x3')]())for(const _0x257afa of _0x5cf85a)if(!_0x288455[_0x1295('0x8')](_0x257afa)){_0x2481d6=!0x1;break;}if(_0x2481d6)return _0x5d9db7;}const _0x500bea=_0x381575(),_0x4db5c8=_0x10c36f['id'],_0x10ff72='insertion:'+_0x366f6b,_0x3816e2=this[_0x1295('0x89')]({'id':_0x500bea,'type':_0x10ff72,'createdAt':new Date(),'authorId':_0x4db5c8,'attributes':_0x4d2445});for(const _0x52abed of _0x5cf85a)this[_0x1295('0xf1')](_0x10ff72,_0x500bea,_0x4db5c8,_0x52abed,_0x55858b[_0x1295('0x18')]());return _0x3816e2;}[_0x1295('0x3b')](_0x32b305,_0x15d113,_0x437f68=null,_0x464de2={}){if(_0x437f68=_0x437f68||Bt(_0x15d113),_0x32b305[_0x1295('0x88')])return null;if(!0x1===this[_0x1295('0xc4')]){const _0xcbce5b=this['_suggestionFactory'][_0x1295('0xa9')](_0x1295('0xad'),_0x437f68,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0xcbce5b([_0x32b305],_0x15d113,_0x464de2)),null;}const _0x65fbb8=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')]('Users')['me'],_0x42a32f=[];for(const {suggestion:_0x43df27,meta:_0x28a718}of this['_findSuggestions'](_0x32b305,_0x1295('0x62')))_0x28a718[_0x1295('0xe0')]&&!_0x28a718[_0x1295('0x5d')]&&_0x42a32f['push'](..._0x43df27[_0x1295('0x3')]());const _0xba578a=function(_0xefe8ac,_0x5ddea9){const _0x54bf41=[];for(const _0x3f2378 of _0x5ddea9){const _0xb2822f=_0xefe8ac[_0x1295('0x6b')](_0x3f2378);_0xb2822f&&_0x54bf41['push'](_0xb2822f);}return _0x54bf41;}(_0x32b305,_0x42a32f),_0x278a2d=function(_0x1c3b95,_0x1706f7){const _0x932c59=[_0x1c3b95];for(const _0x425c99 of _0x1706f7){let _0x4d49cb=0x0;for(;_0x4d49cb<_0x932c59['length'];){const _0x572021=_0x932c59[_0x4d49cb]['getDifference'](_0x425c99);_0x932c59[_0x1295('0x29')](_0x4d49cb,0x1,..._0x572021),_0x4d49cb+=_0x572021[_0x1295('0x72')];}}return _0x932c59;}(_0x32b305,_0x42a32f);_0xba578a[_0x1295('0x72')]&&this['_model'][_0x1295('0x6')](()=>{for(const _0x57009c of _0xba578a){const _0x34d4f7=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0xad'),_0x437f68,_0x1295('0x8b'));this[_0x1295('0xa0')](()=>_0x34d4f7([_0x57009c],_0x15d113,_0x464de2));}});for(const _0x1b19ce of _0x278a2d){let _0x5d94c4=null,_0x4ea81a=_0x1b19ce['start'],_0x52d37e=_0x1b19ce['end'];for(const {suggestion:_0x139961,meta:_0x41ef62}of this[_0x1295('0x9f')](_0x1b19ce,_0x1295('0xad'))){if(!_0x41ef62[_0x1295('0xe0')])continue;if(_0x139961[_0x1295('0x74')]!=_0x437f68)continue;const _0x33692d=_0x139961['getFirstRange']();if(_0x33692d['containsRange'](_0x1b19ce,!0x0))return null;_0x4ea81a=_0x4ea81a['isBefore'](_0x33692d['start'])?_0x4ea81a:_0x33692d[_0x1295('0x2c')],_0x52d37e=_0x52d37e[_0x1295('0x11b')](_0x33692d[_0x1295('0x5')])?_0x52d37e:_0x33692d[_0x1295('0x5')],_0x5d94c4?_0x33692d[_0x1295('0x2c')][_0x1295('0xc7')](_0x5d94c4['getFirstRange']()[_0x1295('0x2c')])?(_0x5d94c4[_0x1295('0xae')](),_0x5d94c4=_0x139961):_0x139961['removeMarkers']():_0x5d94c4=_0x139961;}const _0x29f4e2=this[_0x1295('0x8d')]['createRange'](_0x4ea81a,_0x52d37e);if(_0x5d94c4)this[_0x1295('0x11c')](_0x5d94c4,_0x29f4e2);else{const _0x133c0d=_0x381575(),_0x3d5a6a=_0x65fbb8['id'];this['_setSuggestionData']({'id':_0x133c0d,'type':_0x1295('0xba')+_0x437f68,'data':_0x15d113,'createdAt':new Date(),'authorId':_0x3d5a6a,'attributes':_0x464de2}),this['_addSuggestionMarker'](_0x1295('0xba')+_0x437f68,_0x133c0d,_0x3d5a6a,_0x29f4e2);}}return null;}[_0x1295('0x2e')](_0x3da8de,_0x5685d1,_0x255846=[],_0xbfb617=null,_0x1712f2={}){_0x5685d1[_0x1295('0x33')]||(_0x5685d1[_0x1295('0x33')]=_0x5685d1[_0x1295('0x120')]),_0x5685d1['multipleBlocks']=_0x3da8de['is'](_0x1295('0xab')),_0xbfb617=_0xbfb617||Bt(_0x5685d1);const _0x58ad65=_0x255846[_0x1295('0x45')](_0x5550fb=>Mt(_0x5550fb,this[_0x1295('0x8d')])),_0x267ed0=_0x3da8de['is']('range')?_0x3da8de:Mt(_0x3da8de,this[_0x1295('0x8d')]);if(!0x1===this['_trackFormatChanges']){const _0x50ec1e=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x66'),_0xbfb617,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x50ec1e([_0x267ed0],_0x5685d1,_0x1712f2)),null;}_0x58ad65[_0x1295('0xd4')](_0x267ed0);let _0x4215e8=!0x0;for(const _0x201900 of _0x58ad65)if(!this['_rangeIsInLocalUserInsertion'](_0x201900)){_0x4215e8=!0x1;break;}if(_0x4215e8){const _0x85ab0b=this['_suggestionFactory'][_0x1295('0xa9')](_0x1295('0x66'),_0xbfb617,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x85ab0b([_0x267ed0],_0x5685d1,_0x1712f2)),null;}let _0x4d3732=null,_0x153fb1=_0x267ed0[_0x1295('0x2c')],_0x1b0564=_0x267ed0[_0x1295('0x5')];for(const {suggestion:_0x1796af,meta:_0x1a8e43}of this['_findSuggestions'](_0x267ed0,_0x1295('0x66'))){if(!_0x1a8e43[_0x1295('0xe0')]||_0x1a8e43[_0x1295('0x114')]||_0x1a8e43['containsRangeInObject']||_0x1a8e43['isInsideObject'])continue;if(_0x1796af[_0x1295('0x9c')][_0x1295('0x33')]!=_0x5685d1[_0x1295('0x33')])continue;const _0x20c77f=_0x1796af[_0x1295('0x44')]();if(_0x1796af[_0x1295('0x74')]==_0xbfb617){if(_0x20c77f[_0x1295('0x8')](_0x267ed0,!0x0))return null;_0x153fb1=_0x153fb1['isBefore'](_0x20c77f[_0x1295('0x2c')])?_0x153fb1:_0x20c77f['start'],_0x1b0564=_0x1b0564['isAfter'](_0x20c77f[_0x1295('0x5')])?_0x1b0564:_0x20c77f['end'],_0x4d3732?_0x20c77f[_0x1295('0x2c')][_0x1295('0xc7')](_0x4d3732[_0x1295('0x44')]()[_0x1295('0x2c')])?(_0x4d3732[_0x1295('0xae')](),_0x4d3732=_0x1796af):_0x1796af['removeMarkers']():_0x4d3732=_0x1796af;}else{const _0x3b12a8=_0x267ed0[_0x1295('0x6b')](_0x20c77f);this[_0x1295('0x70')](_0x1796af,_0x3b12a8);}}const _0x4c5a46=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))['me'],_0x12b40f=_0x381575(),_0x2b8a6a=_0x4c5a46['id'];if(_0x4d3732)return this[_0x1295('0x11c')](_0x4d3732,this[_0x1295('0x8d')][_0x1295('0x107')](_0x153fb1,_0x1b0564)),_0x4d3732;{const _0x1f8f04=this[_0x1295('0x89')]({'id':_0x12b40f,'type':_0x1295('0x3f')+_0xbfb617,'data':_0x5685d1,'createdAt':new Date(),'authorId':_0x2b8a6a,'attributes':_0x1712f2});return this[_0x1295('0xf1')]('formatBlock:'+_0xbfb617,_0x12b40f,_0x2b8a6a,this[_0x1295('0x8d')]['createRange'](_0x153fb1,_0x1b0564)),_0x1f8f04;}}[_0x1295('0x1c')](_0x2ca710,_0x363292,_0x1612ad=[],_0x3d0e70=null,_0x5f2e21={}){_0x363292['formatGroupId']||(_0x363292[_0x1295('0x33')]=_0x363292[_0x1295('0x120')]);const _0x1438f7=_0x2ca710[0x0];_0x363292[_0x1295('0xf7')]=_0x1438f7['is'](_0x1295('0xab')),_0x3d0e70=_0x3d0e70||Bt(_0x363292);const _0x2dc9f3=_0x1612ad[_0x1295('0x45')](_0xba78d5=>Mt(_0xba78d5,this[_0x1295('0x8d')])),_0x4a2b1f=_0x1438f7['is'](_0x1295('0xab'))?_0x2ca710:_0x2ca710['map'](_0x464069=>Mt(_0x464069,this[_0x1295('0x8d')]));if(!0x1===this[_0x1295('0xc4')]){const _0x3763ce=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x66'),_0x3d0e70,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x3763ce(_0x4a2b1f,_0x363292,_0x5f2e21)),null;}_0x2dc9f3[_0x1295('0xd4')](..._0x4a2b1f);let _0x134bbe=!0x0;for(const _0x2a7314 of _0x2dc9f3)if(!this[_0x1295('0x78')](_0x2a7314)){_0x134bbe=!0x1;break;}if(_0x134bbe){const _0x2926d7=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x66'),_0x3d0e70,'accept');return this[_0x1295('0xa0')](()=>_0x2926d7(_0x4a2b1f,_0x363292,_0x5f2e21)),null;}const _0x4366e7=this['editor'][_0x1295('0xa1')][_0x1295('0xaf')]('Users')['me'];for(const _0x7c7cf7 of this[_0x1295('0xd2')]()){if(_0x7c7cf7['author']['id']!=_0x4366e7['id'])continue;if(_0x1295('0x66')!=_0x7c7cf7[_0x1295('0x109')]||_0x7c7cf7[_0x1295('0x9c')][_0x1295('0x33')]!=_0x363292[_0x1295('0x33')])continue;const _0x3d7ba2=_0x7c7cf7[_0x1295('0x74')]==_0x3d0e70;for(let _0x339532=0x0;_0x339532<_0x4a2b1f[_0x1295('0x72')];_0x339532++){const _0x4d843f=_0x4a2b1f[_0x339532];for(const _0x1a200b of _0x7c7cf7['getMarkers']()){const _0x276539=_0x1a200b[_0x1295('0xa5')]();if(_0x4d843f[_0x1295('0x7f')](_0x276539)){_0x3d7ba2?(_0x4a2b1f['splice'](_0x339532,0x1),_0x339532--):_0x7c7cf7[_0x1295('0xb8')](_0x1a200b[_0x1295('0x14')]);break;}}}}if(0x0==_0x4a2b1f[_0x1295('0x72')])return null;const _0x4839ee=this[_0x1295('0xbe')][_0x1295('0xa9')]('formatBlock',_0x3d0e70,_0x1295('0xdd'));for(const _0x341484 of this[_0x1295('0xd2')]())if(_0x341484[_0x1295('0x2')]['id']==_0x4366e7['id']&&'formatBlock'==_0x341484['type']&&_0x341484['data'][_0x1295('0x33')]==_0x363292['formatGroupId']&&_0x341484[_0x1295('0x74')]==_0x3d0e70&&(_0x4839ee(_0x341484[_0x1295('0x3')](),_0x4a2b1f)||_0x4839ee(_0x4a2b1f,_0x341484[_0x1295('0x3')]()))){for(const _0x40a682 of _0x4a2b1f)_0x341484[_0x1295('0xa8')](_0x40a682);return _0x341484;}const _0x54b7f0=_0x381575(),_0x51cbf0=_0x4366e7['id'],_0x5e7a38=_0x1295('0x3f')+_0x3d0e70,_0x423932=this[_0x1295('0x89')]({'id':_0x54b7f0,'type':_0x5e7a38,'data':_0x363292,'createdAt':new Date(),'authorId':_0x51cbf0,'attributes':_0x5f2e21});for(const _0x2d466d of _0x4a2b1f)this[_0x1295('0xf1')](_0x5e7a38,_0x54b7f0,_0x51cbf0,_0x2d466d,_0x55858b[_0x1295('0x18')]());return _0x423932;}[_0x1295('0x56')](_0x43f4be,_0x15a6f7=null,_0x313dce={}){if(_0x43f4be['isCollapsed'])return null;const _0x2eb037=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c'))['me'],_0x2ca366=new _0x30e928(_0x43f4be[_0x1295('0x2c')],_0x43f4be[_0x1295('0x5')]);for(const {suggestion:_0x4fcf2f,meta:_0x476f2a}of this[_0x1295('0x9f')](_0x2ca366,_0x1295('0x62')))if(_0x476f2a['isOwn']&&!_0x476f2a[_0x1295('0x114')]){if(_0x4fcf2f[_0x1295('0x36')]){const _0x3382a5=_0x4fcf2f[_0x1295('0x3')]()[_0x1295('0x22')](_0x1b330f=>_0x1295('0x117')!=_0x1b330f[_0x1295('0xfd')][_0x1295('0xca')]);_0x3382a5['every'](_0x33824e=>_0x2ca366['containsRange'](_0x33824e,!0x0))&&_0x4fcf2f['discard']();if(_0x3382a5['some'](_0x119aa2=>_0x119aa2[_0x1295('0x8')](_0x2ca366,!0x0))){const _0x39fe19=this[_0x1295('0xbe')]['getSuggestionCallback']('deletion',_0x15a6f7,_0x1295('0x8b'));return this['forceDefaultExecution'](()=>_0x39fe19([_0x2ca366],null,_0x313dce)),null;}}else{const _0x1c6409=_0x2ca366[_0x1295('0x6b')](_0x4fcf2f[_0x1295('0x44')]());_0x4fcf2f[_0x1295('0x11a')]([_0x1c6409],null,_0x313dce);}}if(_0x2ca366['detach'](),_0x2ca366[_0x1295('0x88')]||_0x1295('0x117')==_0x2ca366[_0x1295('0xfd')][_0x1295('0xca')])return null;let _0x1683b8=null,_0x5be1ce=_0x2ca366[_0x1295('0x2c')],_0x235151=_0x2ca366[_0x1295('0x5')];for(const {suggestion:_0x511f29,meta:_0xc324c7}of this[_0x1295('0x9f')](_0x2ca366,_0x1295('0x27')))if(_0xc324c7[_0x1295('0xe0')]){if(_0x511f29[_0x1295('0x36')]){let _0x3f3c56=!0x0;for(const _0x2ae0fc of _0x511f29[_0x1295('0x3')]()){if(_0x2ae0fc['containsRange'](_0x2ca366,!0x0))return _0x511f29;_0x2ca366[_0x1295('0x8')](_0x2ae0fc)||(_0x3f3c56=!0x1);}_0x3f3c56&&_0x511f29['discard']();}else{const _0x60d491=_0x511f29[_0x1295('0x44')]();if(_0x60d491[_0x1295('0x8')](_0x2ca366,!0x0))return _0x511f29;_0x5be1ce=_0x5be1ce[_0x1295('0xc7')](_0x60d491['start'])?_0x5be1ce:_0x60d491['start'],_0x235151=_0x235151[_0x1295('0x11b')](_0x60d491[_0x1295('0x5')])?_0x235151:_0x60d491['end'],_0x1683b8?_0x60d491['start'][_0x1295('0xc7')](_0x1683b8[_0x1295('0x44')]()['start'])?(_0x1683b8[_0x1295('0xae')](),_0x1683b8=_0x511f29):_0x511f29[_0x1295('0xae')]():_0x1683b8=_0x511f29;}}if(_0x1683b8)return this[_0x1295('0x11c')](_0x1683b8,this[_0x1295('0x8d')]['createRange'](_0x5be1ce,_0x235151)),_0x1683b8;{const _0x9919c9=_0x381575(),_0x1f522e=this[_0x1295('0x8d')][_0x1295('0x107')](_0x5be1ce,_0x235151),_0x560488=_0x2eb037['id'],_0x4fca0e=_0x15a6f7?'deletion:'+_0x15a6f7:'deletion',_0x244166=this[_0x1295('0x89')]({'id':_0x9919c9,'type':_0x4fca0e,'createdAt':new Date(),'authorId':_0x560488,'attributes':_0x313dce});return this[_0x1295('0xf1')](_0x4fca0e,_0x9919c9,_0x560488,_0x1f522e),_0x244166;}}[_0x1295('0x130')](_0x325704,_0x1e982a=_0x1295('0x138'),_0x1f8d30={}){const _0x6422cb=this['editor']['plugins']['get'](_0x1295('0x3c'))['me'],_0x214ee6=_0x325704['map'](_0x13e004=>new _0x30e928(_0x13e004[_0x1295('0x2c')],_0x13e004[_0x1295('0x5')])),_0x2393f1=new Set();for(const _0x51cf51 of _0x214ee6)for(const {suggestion:_0x24fc87,meta:_0x3e3fa1}of this[_0x1295('0x9f')](_0x51cf51,'insertion'))_0x3e3fa1[_0x1295('0xe0')]&&!_0x3e3fa1['isNextTo']&&_0x2393f1[_0x1295('0x1b')](_0x24fc87);for(const _0x27f960 of _0x2393f1)if(_0x27f960[_0x1295('0x36')]){const _0x87ac51=_0x27f960[_0x1295('0x3')]();(!_0x27f960['attributes']||!_0x27f960['attributes'][_0x1295('0x8c')])&&(_0x87ac51[_0x1295('0x129')](_0x9b2cc4=>_0x214ee6['some'](_0x2c65f1=>_0x2c65f1[_0x1295('0x8')](_0x9b2cc4,!0x0)))&&_0x27f960[_0x1295('0xeb')]());if(_0x214ee6['every'](_0x2538bf=>_0x87ac51[_0x1295('0x10f')](_0x71ad3e=>_0x71ad3e[_0x1295('0x8')](_0x2538bf,!0x0)))){const _0x284976=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x27'),_0x1e982a,_0x1295('0x8b'));return this['forceDefaultExecution'](()=>_0x284976(_0x325704,null,_0x1f8d30)),null;}}else{const _0x3c8c9d=_0x27f960['getFirstRange']();_0x214ee6[_0x1295('0x10f')](_0x4fb33c=>_0x4fb33c[_0x1295('0x8')](_0x3c8c9d,!0x0))&&_0x27f960[_0x1295('0xeb')]();if(_0x214ee6['every'](_0x249c7f=>_0x3c8c9d[_0x1295('0x8')](_0x249c7f,!0x0))){const _0x5edbbf=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x27'),_0x1e982a,'accept');return this[_0x1295('0xa0')](()=>_0x5edbbf(_0x214ee6,null,_0x1f8d30)),null;}}const _0x51d86e=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x27'),_0x1e982a,'join');let _0x333d21=null;for(const _0x3499f3 of this[_0x1295('0xd2')]())if(_0x3499f3[_0x1295('0x2')]['id']==_0x6422cb['id']&&_0x3499f3[_0x1295('0x7d')]&&_0x1295('0x27')==_0x3499f3[_0x1295('0x109')]&&_0x3499f3[_0x1295('0x74')]==_0x1e982a&&(_0x51d86e(_0x3499f3[_0x1295('0x3')](),_0x214ee6)||_0x51d86e(_0x214ee6,_0x3499f3[_0x1295('0x3')]()))){if(_0x333d21){if(_0x3499f3[_0x1295('0x43')]&&_0x3499f3[_0x1295('0x43')][_0x1295('0x72')])continue;for(const _0x15d804 of _0x3499f3[_0x1295('0x3')]())_0x333d21['isIntersectingWithRange'](_0x15d804)||_0x333d21[_0x1295('0xa8')](_0x15d804);_0x3499f3['removeMarkers']();}else{_0x333d21=_0x3499f3;for(const _0x47a995 of _0x214ee6)_0x3499f3[_0x1295('0x67')](_0x47a995)||_0x3499f3[_0x1295('0xa8')](_0x47a995);}}if(_0x333d21)return _0x333d21;_0x2393f1[_0x1295('0x10e')]();for(const _0x3ca112 of _0x214ee6)for(const {suggestion:_0x48c1df,meta:_0x38f22e}of this[_0x1295('0x9f')](_0x3ca112,_0x1295('0x27')))_0x38f22e[_0x1295('0xe0')]&&_0x2393f1['add'](_0x48c1df);for(const _0xe10ce4 of _0x2393f1){const _0x13046c=_0xe10ce4[_0x1295('0x3')]();if(!_0x1f8d30||!_0x1f8d30['skipNestingCheck']){if(_0x214ee6[_0x1295('0x129')](_0x362396=>_0x13046c[_0x1295('0x10f')](_0x187a1b=>_0x187a1b[_0x1295('0x8')](_0x362396,!0x0))))return _0xe10ce4;}(!_0xe10ce4['attributes']||!_0xe10ce4['attributes'][_0x1295('0x8c')])&&(_0x13046c[_0x1295('0x129')](_0xf74402=>_0x214ee6[_0x1295('0x10f')](_0xa8c948=>_0xa8c948['containsRange'](_0xf74402,!0x0)))&&_0xe10ce4[_0x1295('0xeb')]());}const _0x2034f8=_0x381575(),_0x2efcb1=_0x6422cb['id'],_0x38ebf1=_0x1295('0x118')+_0x1e982a,_0x2cb72f=this['_setSuggestionData']({'id':_0x2034f8,'type':_0x38ebf1,'createdAt':new Date(),'authorId':_0x2efcb1,'attributes':_0x1f8d30});for(const _0x280518 of _0x214ee6)_0x280518[_0x1295('0x6a')](),_0x280518[_0x1295('0x88')]||_0x1295('0x117')==_0x280518['root'][_0x1295('0xca')]||this[_0x1295('0xf1')](_0x38ebf1,_0x2034f8,_0x2efcb1,_0x280518,_0x55858b[_0x1295('0x18')]());return _0x2cb72f;}[_0x1295('0x11c')](_0x161ae2,_0x57502c){const _0x55131c=_0x161ae2[_0x1295('0x100')]();this['_model'][_0x1295('0x6')](_0x3e9ad6=>{_0x3e9ad6[_0x1295('0x9e')](_0x55131c,{'range':_0x57502c});});}[_0x1295('0x123')](_0x899407){const _0x23d6a4=_0x899407['id'],_0x1ba576=this[_0x1295('0xb9')][_0x1295('0xd9')][_0x1295('0xaf')]('collaboration.channelId');this[_0x1295('0xc2')][_0x1295('0x76')](_0x23d6a4)||this[_0x1295('0xc2')][_0x1295('0x116')]({'channelId':_0x1ba576,'threadId':_0x23d6a4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4de512=this['_commentsRepository']['getCommentThread'](_0x23d6a4);_0x4de512[_0x1295('0x82')](_0x1295('0x10c')),_0x4de512[_0x1295('0x10c')]=!0x1,_0x899407[_0x1295('0x43')]=_0x4de512;}[_0x1295('0x103')](_0x4c38d5,_0x173be6,_0x4f5bbf,_0xcf6687){if(_0x4c38d5[_0x1295('0x109')]!=_0x173be6||_0x4c38d5[_0x1295('0x74')]!=_0x4f5bbf||_0x4c38d5[_0x1295('0x42')]['id']!=_0xcf6687)throw this[_0x1295('0xb9')][_0x1295('0x95')](_0x1295('0x71')),new _0x5ca231(_0x1295('0x71'),this);}[_0x1295('0x70')](_0x311b17,_0x3aa0e8){const _0x1cc869=_0x311b17[_0x1295('0x44')]();if(_0x3aa0e8['isEqual'](_0x1cc869))_0x311b17[_0x1295('0xae')]();else{if(_0x1cc869[_0x1295('0x8')](_0x3aa0e8)){const _0x1327ff=this['_model'][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x2c')][_0x1295('0x10b')],_0x1295('0x5'));this[_0x1295('0x11c')](_0x311b17,this[_0x1295('0x8d')][_0x1295('0x107')](_0x1cc869[_0x1295('0x2c')],_0x1327ff));const _0x4dfc0f=_0x381575(),_0x12865f=_0x311b17[_0x1295('0x42')]['id'],_0x2def7c=_0x311b17[_0x1295('0x109')]+':'+_0x311b17[_0x1295('0x74')];this[_0x1295('0x89')]({'id':_0x4dfc0f,'type':_0x2def7c,'createdAt':new Date(),'authorId':_0x12865f,'data':_0x311b17[_0x1295('0x9c')],'attributes':_0x311b17[_0x1295('0xb0')]});const _0x2dac5d=this[_0x1295('0x8d')][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x5')]['parent'],'after'),_0x1ed997=this[_0x1295('0x8d')][_0x1295('0x107')](_0x2dac5d,_0x1cc869[_0x1295('0x5')]);this[_0x1295('0xf1')](_0x2def7c,_0x4dfc0f,_0x12865f,_0x1ed997);}else{if(_0x1cc869[_0x1295('0xf0')](_0x3aa0e8[_0x1295('0x2c')])){const _0x5ac67a=this['_model']['createPositionAt'](_0x3aa0e8[_0x1295('0x2c')][_0x1295('0x10b')],_0x1295('0x5'));this['_setSuggestionRange'](_0x311b17,this['_model'][_0x1295('0x107')](_0x1cc869[_0x1295('0x2c')],_0x5ac67a));}else{const _0x516ddf=this[_0x1295('0x8d')][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x5')][_0x1295('0x125')],_0x1295('0xd8'));this[_0x1295('0x11c')](_0x311b17,this[_0x1295('0x8d')][_0x1295('0x107')](_0x516ddf,_0x1cc869['end']));}}}}[_0x1295('0x78')](_0x19fd94){for(const {suggestion:_0x310c7e,meta:_0x52c43f}of this['_findSuggestions'](_0x19fd94,_0x1295('0x62'))){if(!_0x52c43f['isOwn'])continue;const _0x3d2d24=_0x310c7e[_0x1295('0x3')]();for(const _0x3c7d03 of _0x3d2d24)if(!_0x19fd94[_0x1295('0xc6')](_0x3c7d03)[_0x1295('0x72')])return!0x0;}return!0x1;}[_0x1295('0x48')](_0x1df05f){const _0x2969ab=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))[_0x1295('0x4c')](_0x1df05f);if(!_0x2969ab)throw new _0x5ca231(_0x1295('0xd3'),this);return _0x2969ab;}['_getExternalAuthor'](_0x5bbb00){const _0x81eb9d=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c')),_0x59cc01=_0x55d191(_0x1295('0x10a')+_0x5bbb00),_0x5bec48=_0x81eb9d[_0x1295('0x4c')](_0x59cc01);return _0x5bec48||_0x81eb9d[_0x1295('0xee')]({'id':_0x59cc01,'name':_0x5bbb00});}['_createSuggestion'](_0xeb8f5b,_0x415b33,_0x1805fb,_0x13f80f,_0x4c0c7d){const _0xb5e7e5=this[_0x1295('0x48')](_0x13f80f),_0x55a185=this[_0x1295('0xbe')]['buildSuggestion'](_0xeb8f5b,_0x415b33,_0x1805fb,_0xb5e7e5,_0x4c0c7d,_0x8b13e5=>this['_updateSuggestionData'](_0x1805fb,{'attributes':_0x8b13e5}));return this[_0x1295('0x121')](_0x55a185,_0x1295('0x8b'),()=>{this[_0x1295('0xb6')](_0x1805fb,{'state':_0x1295('0xcf')});},{'priority':_0x1295('0x2b')}),this[_0x1295('0x121')](_0x55a185,_0x1295('0xeb'),()=>{this[_0x1295('0xb6')](_0x1805fb,{'state':_0x1295('0x137')});},{'priority':_0x1295('0x2b')}),this['_suggestions'][_0x1295('0xb2')](_0x1805fb,_0x55a185),this[_0x1295('0x12')][_0x1295('0xb2')](_0x55a185,'notReady'),_0x55a185;}[_0x1295('0xbd')](_0x3c7bea){const _0x353e80=_0x3c7bea[_0x1295('0x81')](':');return{'group':_0x353e80[0x0],'type':_0x353e80[0x1],'subType':_0x353e80[_0x1295('0x72')]>=0x5?_0x353e80[0x2]:null,'id':_0x353e80[_0x1295('0x72')]<0x5?_0x353e80[0x2]:_0x353e80[0x3],'authorId':_0x353e80[_0x1295('0x72')]<0x5?_0x353e80[0x3]:_0x353e80[0x4],'markerCount':0x6==_0x353e80[_0x1295('0x72')]?_0x353e80[0x5]:null};}[_0x1295('0x106')](_0x1a7ffb,_0x385d60,_0x74223c){const _0x23c988=_0x1a7ffb['getFirstRange'](),_0x507353=_0x23c988[_0x1295('0x2c')],_0x4cf870=_0x23c988['end'];this[_0x1295('0x11c')](_0x1a7ffb,this[_0x1295('0x8d')][_0x1295('0x107')](_0x507353,_0x385d60));const _0x3f60fe=_0x381575(),_0xb39d86=_0x1a7ffb[_0x1295('0x42')]['id'],_0x30f570=_0x1a7ffb[_0x1295('0x109')]+(_0x1a7ffb[_0x1295('0x74')]?':'+_0x1a7ffb[_0x1295('0x74')]:'');this[_0x1295('0x89')]({'id':_0x3f60fe,'type':_0x30f570,'createdAt':new Date(),'authorId':_0xb39d86,'originalSuggestionId':_0x1a7ffb['id'],'attributes':_0x1a7ffb[_0x1295('0xb0')],'data':_0x1a7ffb[_0x1295('0x9c')]}),'formatBlock'==_0x1a7ffb['type']&&(_0x74223c=this[_0x1295('0x8d')]['createPositionBefore'](_0x74223c[_0x1295('0x125')])),this['_addSuggestionMarker'](_0x30f570,_0x3f60fe,_0xb39d86,this[_0x1295('0x8d')][_0x1295('0x107')](_0x74223c,_0x4cf870));}[_0x1295('0x9f')](_0x21d3bb,_0x2f65e8=null){const _0x596412=[],_0x506c92=this['_model'][_0x1295('0x34')],_0x1b2cb2=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))['me'];for(const _0x14dfec of this[_0x1295('0xd2')]())if(_0x14dfec[_0x1295('0x7d')]&&(!_0x2f65e8||_0x14dfec[_0x1295('0x109')]==_0x2f65e8))for(const _0x3acc78 of _0x14dfec[_0x1295('0x3')]()){const _0x3379c6=_0x21d3bb['start'][_0x1295('0x7f')](_0x3acc78[_0x1295('0x5')])||_0x21d3bb['end'][_0x1295('0x7f')](_0x3acc78[_0x1295('0x2c')]);if(_0x3379c6||_0x21d3bb[_0x1295('0x6b')](_0x3acc78)){const _0x2aff59=_0x21d3bb[_0x1295('0x8')](_0x3acc78)&&At(_0x506c92,_0x3acc78[_0x1295('0x2c')],_0x21d3bb),_0x303a76=_0x3acc78['containsRange'](_0x21d3bb)&&At(_0x506c92,_0x21d3bb['start'],_0x3acc78);_0x596412[_0x1295('0xd4')]({'suggestion':_0x14dfec,'meta':{'isOwn':_0x1b2cb2==_0x14dfec[_0x1295('0x2')],'isNextTo':_0x3379c6,'isInsideObject':_0x2aff59,'containsRangeInObject':_0x303a76}});break;}}return _0x596412;}[_0x1295('0xf1')](_0x5e8f39,_0x4713b3,_0x1176ed,_0x57c654,_0x198392){this['_model']['change'](_0x46b6ab=>{let _0x17322b=_0x1295('0x68')+_0x5e8f39+':'+_0x4713b3+':'+_0x1176ed;_0x198392&&(_0x17322b=_0x17322b+':'+_0x198392),_0x46b6ab[_0x1295('0x59')](_0x17322b,{'range':_0x57c654,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1295('0x26')](_0x35b3a0){const _0x245c38=_0x35b3a0[_0x1295('0x102')],_0x5874b1=_0x35b3a0[_0x1295('0xc0')];_0x35b3a0['previous']=null,null!=_0x245c38&&(_0x245c38['next']=null),_0x35b3a0[_0x1295('0xc0')]=null,null!=_0x5874b1&&(_0x5874b1[_0x1295('0x102')]=null),_0x1295('0xe8')==this[_0x1295('0x12')][_0x1295('0xaf')](_0x35b3a0)&&(this['_suggestionState'][_0x1295('0xb2')](_0x35b3a0,_0x1295('0xcd')),this[_0x1295('0xdb')]('suggestionUnloaded',_0x35b3a0,_0x245c38,_0x5874b1));}[_0x1295('0x89')](_0x55a64e){const _0x4bf187=_0x55a64e['id'],_0x20765e=this[_0x1295('0xe')](_0x55a64e);if(this[_0x1295('0x86')]&&this[_0x1295('0x86')][_0x1295('0xfa')]){const _0x315e80=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x112')),_0x31bb21=_0x20765e[_0x1295('0x49')],_0x483fcc=_0x20765e[_0x1295('0x74')]?_0x20765e[_0x1295('0x109')]+':'+_0x20765e[_0x1295('0x74')]:_0x20765e[_0x1295('0x109')],_0x242eba=this[_0x1295('0xb9')][_0x1295('0x3e')],_0x43cf33=_0x315e80[_0x1295('0x1b')](_0x146fe2(_0x242eba,_0x1295('0x4'))),_0x57946e={'id':_0x4bf187,'type':_0x483fcc,'hasComments':_0x31bb21,'data':_0x55a64e[_0x1295('0x9c')]||null,'originalSuggestionId':_0x55a64e[_0x1295('0x91')]||null,'attributes':_0x20765e[_0x1295('0xb0')]};this[_0x1295('0x86')]['addSuggestion'](_0x57946e)['then'](_0x1dc7df=>{_0x20765e[_0x1295('0x13b')]=!0x0,_0x315e80[_0x1295('0xc3')](_0x43cf33),_0x1dc7df&&_0x1dc7df[_0x1295('0x9a')]&&(this[_0x1295('0x83')]['get'](_0x4bf187)[_0x1295('0x9a')]=_0x1dc7df[_0x1295('0x9a')]);})[_0x1295('0x119')](_0x2b524a=>{throw _0x5105f9(_0x1295('0x19')),this[_0x1295('0xb9')]['model'][_0x1295('0x96')]({'isUndoable':!0x1},()=>{_0x20765e[_0x1295('0xeb')]();}),_0x20765e[_0x1295('0xec')](),this[_0x1295('0x83')][_0x1295('0xf3')](_0x20765e['id']),this[_0x1295('0x12')][_0x1295('0xf3')](_0x20765e),_0x2b524a;});}return _0x20765e;}[_0x1295('0xb6')](_0x1d243a,_0x33b209){const _0x8740a9=this[_0x1295('0xb9')]['plugins'][_0x1295('0xaf')]('PendingActions'),_0x350067=this[_0x1295('0x126')](_0x1d243a);if(this[_0x1295('0x86')]&&this[_0x1295('0x86')][_0x1295('0xd1')]){if(_0x350067[_0x1295('0x13b')]){const _0x5e46b1=_0x8740a9[_0x1295('0x1b')](_0x146fe2(this[_0x1295('0xb9')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x1295('0x86')][_0x1295('0xd1')](_0x1d243a,_0x33b209)['then'](()=>{_0x8740a9['remove'](_0x5e46b1);});}else _0x350067['on'](_0x1295('0xa'),()=>{this[_0x1295('0xb6')](_0x1d243a,_0x33b209);});}}[_0x1295('0x3d')](_0x1e50f6){if(!this[_0x1295('0x86')]||!this[_0x1295('0x86')][_0x1295('0x126')])throw new _0x5ca231('track-changes-adapter-missing-getsuggestion',this);return this[_0x1295('0x86')][_0x1295('0x126')](_0x1e50f6);}[_0x1295('0x10d')](_0x526a30){const {id:_0x4375e0,type:_0x9ba32c,subType:_0x456b4e,authorId:_0x2b8a56}=this[_0x1295('0xbd')](_0x526a30),_0x374c68=this[_0x1295('0x83')][_0x1295('0xaf')](_0x4375e0)||this['_createSuggestion'](_0x9ba32c,_0x456b4e,_0x4375e0,_0x2b8a56,{});switch(this[_0x1295('0x103')](_0x374c68,_0x9ba32c,_0x456b4e,_0x2b8a56),this[_0x1295('0x12')][_0x1295('0xaf')](_0x374c68)){case _0x1295('0xe2'):this[_0x1295('0x3d')](_0x4375e0)[_0x1295('0x4a')](_0x2a09ae=>{let _0x3d40e=Promise[_0x1295('0x9d')]();_0x2a09ae[_0x1295('0x49')]&&(_0x3d40e=this['_commentsRepository'][_0x1295('0xfc')]({'channelId':this['editor'][_0x1295('0xd9')][_0x1295('0xaf')](_0x1295('0xa7')),'threadId':_0x4375e0})),_0x3d40e[_0x1295('0x4a')](()=>{this['addSuggestionData'](_0x2a09ae)[_0x1295('0x13b')]=!0x0;});}),this[_0x1295('0x12')]['set'](_0x374c68,_0x1295('0xe1'));break;case'removed':this['_updateSuggestionData'](_0x4375e0,{'state':_0x1295('0x53')});case _0x1295('0x63'):this[_0x1295('0x12')][_0x1295('0xb2')](_0x374c68,'ready'),this[_0x1295('0xdb')](_0x1295('0x111'),_0x374c68);break;case _0x1295('0xe8'):this[_0x1295('0xdb')]('suggestionChanged',_0x374c68);}return _0x374c68[_0x1295('0x11d')](_0x526a30),_0x374c68;}[_0x1295('0x77')](_0xb4439e){const _0x1b90b3=Array['from'](_0xb4439e)['filter'](_0x1fc0f5=>!_0x1fc0f5['isMultiRange']),_0xb23f47=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1295('0x22')](_0x4df1a2=>!_0x4df1a2['isMultiRange']),_0x589a04=_0xb23f47[_0x1295('0x22')](_0x3f7597=>!_0xb4439e['has'](_0x3f7597)),_0x24607b=new Map(_0xb23f47[_0x1295('0x45')](_0x1a1ec=>[_0x1a1ec,this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1a1ec[_0x1295('0x109')],_0x1a1ec[_0x1295('0x74')],_0x1295('0xa6'))])),_0x369072=new Map(_0xb23f47[_0x1295('0x45')](_0x472991=>[_0x472991,_0x472991[_0x1295('0x44')]()])),_0x43322f=new Set(),_0x3586b9=new Set();for(let _0x102510=0x0;_0x102510<_0x1b90b3[_0x1295('0x72')];_0x102510++)_0x4491d7(_0x1b90b3[_0x102510],_0x1b90b3,_0x102510+0x1);for(let _0x32b0ae=0x0;_0x32b0ae<_0x1b90b3['length'];_0x32b0ae++)_0x4491d7(_0x1b90b3[_0x32b0ae],_0x589a04,0x0);for(let _0x255983=0x0;_0x255983<_0x1b90b3[_0x1295('0x72')];_0x255983++){const _0x540ad5=_0x1b90b3[_0x255983];!_0x3586b9['has'](_0x540ad5)&&_0x540ad5[_0x1295('0x102')]&&(_0x540ad5[_0x1295('0x102')][_0x1295('0xc0')]===_0x540ad5&&(_0x540ad5[_0x1295('0x102')][_0x1295('0xc0')]=null),_0x540ad5[_0x1295('0x102')]=null),!_0x43322f[_0x1295('0x39')](_0x540ad5)&&_0x540ad5[_0x1295('0xc0')]&&(_0x540ad5[_0x1295('0xc0')][_0x1295('0x102')]===_0x540ad5&&(_0x540ad5[_0x1295('0xc0')][_0x1295('0x102')]=null),_0x540ad5['next']=null);}function _0x4491d7(_0xd61d3a,_0x1d2808,_0x4185aa){for(let _0x5039e7=_0x4185aa;_0x5039e7<_0x1d2808[_0x1295('0x72')];_0x5039e7++){const _0x4a08f3=_0x403b28(_0xd61d3a,_0x1d2808[_0x5039e7]);_0x4a08f3&&(_0x4a08f3[0x0][_0x1295('0xc0')]=_0x4a08f3[0x1],_0x4a08f3[0x1][_0x1295('0x102')]=_0x4a08f3[0x0],_0x43322f[_0x1295('0x1b')](_0x4a08f3[0x0]),_0x3586b9[_0x1295('0x1b')](_0x4a08f3[0x1]));}}function _0x403b28(_0x2422c4,_0x50c72e){if(_0x2422c4[_0x1295('0x2')]['id']!==_0x50c72e['author']['id'])return null;const _0x423fa5=_0x24607b[_0x1295('0xaf')](_0x2422c4)(_0x2422c4,_0x50c72e,_0x369072[_0x1295('0xaf')](_0x2422c4),_0x369072[_0x1295('0xaf')](_0x50c72e));if(!_0x423fa5)return null;return _0x24607b[_0x1295('0xaf')](_0x50c72e)(_0x2422c4,_0x50c72e,_0x369072[_0x1295('0xaf')](_0x2422c4),_0x369072['get'](_0x50c72e))?_0x423fa5[0x1][_0x1295('0x43')]&&_0x423fa5[0x1]['commentThread'][_0x1295('0x72')]?null:_0x423fa5:null;}}[_0x1295('0x5b')](_0x37b431){const _0x4cea53=Array[_0x1295('0x11f')](_0x37b431),_0x47d5b8=this[_0x1295('0xd2')]({'skipNotAttached':!0x0}),_0x2a3726=_0x47d5b8[_0x1295('0x22')](_0x4602ba=>!_0x37b431[_0x1295('0x39')](_0x4602ba)),_0x144a79=new Map(_0x4cea53['map'](_0x3143b1=>[_0x3143b1,this[_0x1295('0xbe')][_0x1295('0xa9')](_0x3143b1[_0x1295('0x109')],_0x3143b1[_0x1295('0x74')],_0x1295('0xdd'))])),_0x23f955=new Map(_0x47d5b8[_0x1295('0x45')](_0x56550c=>[_0x56550c,_0x56550c[_0x1295('0x3')]()]));for(let _0x359413=0x0;_0x359413<_0x4cea53['length'];_0x359413++){if(_0x5eb59a(this,_0x4cea53[_0x359413],_0x4cea53,_0x359413+0x1))return!0x0;}for(let _0x50f9ef=0x0;_0x50f9ef<_0x4cea53[_0x1295('0x72')];_0x50f9ef++){if(_0x5eb59a(this,_0x4cea53[_0x50f9ef],_0x2a3726,0x0))return!0x0;}return!0x1;function _0x5eb59a(_0x5b69cc,_0xbc7fbd,_0x494e26,_0x20ad13){for(let _0x4e1f60=_0x20ad13;_0x4e1f60<_0x494e26['length'];_0x4e1f60++){const _0xb40ce0=_0x494e26[_0x4e1f60];if(_0xb40ce0[_0x1295('0x109')]!==_0xbc7fbd[_0x1295('0x109')]||_0xb40ce0['author']['id']!==_0xbc7fbd[_0x1295('0x2')]['id']||_0xb40ce0[_0x1295('0x74')]!==_0xbc7fbd[_0x1295('0x74')])continue;const _0x5588ab=_0x144a79[_0x1295('0xaf')](_0xbc7fbd),_0x1e76ff=_0x23f955['get'](_0xbc7fbd),_0x239306=_0x23f955[_0x1295('0xaf')](_0xb40ce0),_0x520874=_0xbc7fbd[_0x1295('0x43')]&&_0xbc7fbd['commentThread']['length'],_0x3e4fee=_0xb40ce0[_0x1295('0x43')]&&_0xb40ce0['commentThread'][_0x1295('0x72')];if(!_0x520874&&_0x5588ab(_0x239306,_0x1e76ff))return _0x5b69cc[_0x1295('0x108')](_0xb40ce0,_0xbc7fbd),_0x23f955[_0x1295('0xf3')](_0xbc7fbd),!0x0;if(!_0x3e4fee&&_0x5588ab(_0x1e76ff,_0x239306))return _0x5b69cc[_0x1295('0x108')](_0xbc7fbd,_0xb40ce0),_0x23f955['delete'](_0xb40ce0),!0x0;}return!0x1;}}[_0x1295('0x108')](_0x32be66,_0x106832){if(_0x32be66['isMultiRange'])for(const _0x15d43a of _0x106832[_0x1295('0x3')]())_0x32be66['addRange'](_0x15d43a);else{const _0x58717e=_0x106832[_0x1295('0x44')]()[_0x1295('0x5')];this[_0x1295('0x11c')](_0x32be66,this[_0x1295('0x8d')][_0x1295('0x107')](_0x32be66[_0x1295('0x44')]()[_0x1295('0x2c')],_0x58717e));}_0x106832[_0x1295('0xae')]();}}class vt{constructor(_0x155944){this[_0x1295('0x25')]=_0x155944,this['_model']=_0x155944[_0x1295('0x85')],this[_0x1295('0xda')]=new Map(),this[_0x1295('0xef')]=new Map(),this[_0x1295('0xea')]();}[_0x1295('0xd0')](_0x1147dc,_0x5264d7,_0xbf46a0,_0x2f376d,_0x2817dc,_0x1bd22a){return new _0x55858b(this[_0x1295('0x8d')],{'type':_0x1147dc,'subType':_0x5264d7,'id':_0xbf46a0,'author':_0x2f376d,'creator':_0x2f376d,'attributes':_0x2817dc,'onAttributesChange':_0x1bd22a,'onAccept':(..._0x5136f8)=>this[_0x1295('0xa9')](_0x1147dc,_0x5264d7,_0x1295('0x8b'))(..._0x5136f8),'onDiscard':(..._0x1c0d87)=>this[_0x1295('0xa9')](_0x1147dc,_0x5264d7,_0x1295('0xeb'))(..._0x1c0d87)});}[_0x1295('0x24')](_0x455c17,_0x1d3f4d,_0x3cc704,_0x292dbf){const _0x124c4b=_0x455c17+':'+_0x1d3f4d+':'+_0x3cc704;this['_customCallbacks'][_0x1295('0xb2')](_0x124c4b,_0x292dbf);}[_0x1295('0xa9')](_0x4b4117,_0x46d355,_0x48efdf){const _0x403f79=_0x4b4117+':'+_0x46d355+':'+_0x48efdf;return this[_0x1295('0xda')][_0x1295('0xaf')](_0x403f79)||this[_0x1295('0xef')][_0x1295('0xaf')](_0x4b4117+':'+_0x48efdf);}[_0x1295('0xea')](){const _0x2cc573=()=>{},_0x321f2c=_0x248743=>{_0x248743[_0x1295('0x105')]((_0x8b321d,_0x4adadb)=>_0x8b321d[_0x1295('0x2c')][_0x1295('0xc7')](_0x4adadb[_0x1295('0x2c')])?0x1:-0x1),this[_0x1295('0x8d')][_0x1295('0x6')](_0xa937e7=>{for(const _0xcfe974 of _0x248743){let _0x5b6d63;_0x5b6d63=_0xcfe974[_0x1295('0x5')][_0x1295('0x12d')]&&_0xcfe974[_0x1295('0x5')][_0x1295('0x125')]==_0xcfe974[_0x1295('0x2c')][_0x1295('0x5c')]?_0xa937e7[_0x1295('0x7b')](_0xcfe974['start'][_0x1295('0x5c')],'on'):_0xa937e7['createSelection'](_0xcfe974),this[_0x1295('0x8d')][_0x1295('0x13')](_0x5b6d63,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5d24a4=(_0x224b16,_0xe70467)=>{this[_0x1295('0x8d')][_0x1295('0x6')](_0x30c0ca=>{const {commandName:_0x740dfc,commandParams:_0x2ad1a7=[]}=_0xe70467,_0x1f0648=_0x224b16[_0x1295('0x45')](_0x56e0f2=>(Dt(_0x56e0f2)&&(_0x56e0f2=this[_0x1295('0x8d')][_0x1295('0x107')](_0x56e0f2[_0x1295('0x5')])),_0x56e0f2))[_0x1295('0x22')](_0x336e99=>_0x1295('0x117')!==_0x336e99['root'][_0x1295('0xca')]);if(_0x1f0648[_0x1295('0x72')]<0x1)return;const _0x2564a2=Array[_0x1295('0x11f')](this['_model'][_0x1295('0xb1')][_0x1295('0xf9')][_0x1295('0x3')]())[_0x1295('0x45')](_0x1e51bb=>_0x30e928[_0x1295('0x12a')](_0x1e51bb));_0x30c0ca['setSelection'](_0x1f0648);for(const _0x251f5c of this[_0x1295('0x25')][_0x1295('0xc5')]['commands']())_0x251f5c[_0x1295('0x133')]();_0x2ad1a7[_0x1295('0xd4')]({'forceDefaultExecution':!0x0}),this[_0x1295('0x25')][_0x1295('0x21')](_0x740dfc,..._0x2ad1a7);const _0x5ecc16=_0x2564a2[_0x1295('0x22')](_0x12ea76=>_0x1295('0x117')!=_0x12ea76[_0x1295('0xfd')]['rootName']);_0x5ecc16[_0x1295('0x72')]>0x0&&_0x30c0ca[_0x1295('0x12f')](_0x5ecc16);for(const _0x3d2301 of _0x2564a2)_0x3d2301['detach']();});},_0x4c2c1f=(_0x2ff11c,_0x41369d)=>0x1==_0x2ff11c[_0x1295('0x72')]&&0x1==_0x41369d['length']&&_0x2ff11c[0x0]['end'][_0x1295('0x7f')](_0x41369d[0x0]['start']),_0x48f69f=(_0x483af7,_0xe32869,_0x4c56bc,_0x471bf3)=>$t(_0x483af7,_0xe32869,_0x4c56bc,_0x471bf3,this['_model'])?[_0x483af7,_0xe32869]:$t(_0xe32869,_0x483af7,_0x471bf3,_0x4c56bc,this[_0x1295('0x8d')])?[_0xe32869,_0x483af7]:null;this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x5e'),_0x2cc573),this[_0x1295('0xef')][_0x1295('0xb2')]('insertion:discard',_0x321f2c),this['_defaultCallbacks']['set'](_0x1295('0xb7'),_0x4c2c1f),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x4f'),_0x48f69f),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0xf'),_0x321f2c),this['_defaultCallbacks'][_0x1295('0xb2')]('deletion:discard',_0x2cc573),this['_defaultCallbacks']['set'](_0x1295('0x17'),_0x4c2c1f),this[_0x1295('0xef')]['set']('deletion:chain',_0x48f69f),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0x135'),_0x5d24a4),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x2a'),_0x2cc573),this[_0x1295('0xef')]['set'](_0x1295('0x54'),_0x4c2c1f),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0xde'),_0x2cc573),this[_0x1295('0xef')]['set'](_0x1295('0xac'),_0x5d24a4),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0xf8'),_0x2cc573),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0x46'),_0x4c2c1f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2cc573);}}function At(_0x67498,_0x2a5fd4,_0x522e6){for(const _0x2e1ba7 of _0x2a5fd4['parent'][_0x1295('0x98')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e1ba7['root']==_0x2e1ba7)return!0x1;if(!_0x522e6[_0x1295('0x128')](_0x2e1ba7))return!0x1;if(_0x67498['isObject'](_0x2e1ba7)||_0x67498[_0x1295('0x4b')](_0x2e1ba7))return!0x0;}return!0x1;}function Dt(_0x53d25b){return _0x53d25b[_0x1295('0x5')][_0x1295('0x125')]==_0x53d25b[_0x1295('0x2c')][_0x1295('0x5c')]&&_0x53d25b['end']['isAtStart'];}function Ct(_0x546cae,_0x5c86fd,_0x380bb3,_0x4e7a26){const _0x3e53e6=_0x411d1e=>!_0x411d1e[_0x1295('0xd7')]['is'](_0x1295('0xbb'))&&!_0x4e7a26[_0x1295('0xf4')](_0x411d1e[_0x1295('0xd7')]),_0x639482=_0x546cae[_0x1295('0x2c')][_0x1295('0xb')](_0x3e53e6),_0x19e02c=_0x546cae['end'][_0x1295('0xb')](_0x3e53e6,{'direction':_0x1295('0x7a')});return(!_0x546cae[_0x1295('0x2c')][_0x1295('0x7f')](_0x639482)||!_0x546cae['end'][_0x1295('0x7f')](_0x19e02c))&&(_0x639482['isBefore'](_0x19e02c)?_0x380bb3[_0x1295('0x9e')](_0x5c86fd,{'range':_0x380bb3[_0x1295('0x107')](_0x639482,_0x19e02c)}):_0x380bb3[_0x1295('0xb8')](_0x5c86fd),!0x0);}function Bt(_0x107cf0){return _0x55d191(_0x107cf0);}function _t(_0x469a29){const _0x587087=_0x469a29['start']['nodeAfter'];return _0x587087&&_0x587087['is'](_0x1295('0x99'));}function Mt(_0x3ae638,_0x46c2e7){const _0x2ebeb6=_0x46c2e7[_0x1295('0x34')][_0x1295('0xf4')](_0x3ae638)||_0x46c2e7[_0x1295('0x34')][_0x1295('0xaa')](_0x3ae638);return _0x46c2e7[_0x1295('0x107')](_0x46c2e7['createPositionAt'](_0x3ae638,_0x1295('0x6d')),_0x2ebeb6?_0x46c2e7['createPositionAfter'](_0x3ae638):_0x46c2e7[_0x1295('0x122')](_0x3ae638,_0x1295('0x5')));}function $t(_0x56cb5f,_0x61743b,_0x245795,_0x4eba3d,_0x441fce){if(_0x245795[_0x1295('0x5')][_0x1295('0x7f')](_0x4eba3d[_0x1295('0x2c')]))return!0x0;if(_0x56cb5f['type']!=_0x61743b[_0x1295('0x109')])return!0x1;if(!_0x245795['end'][_0x1295('0xce')](_0x4eba3d[_0x1295('0x2c')]))return!0x1;const _0x10f279=_0x441fce['createRange'](_0x245795[_0x1295('0x5')],_0x4eba3d[_0x1295('0x2c')])['getWalker']();for(const _0x2e47fd of _0x10f279)if([_0x1295('0x1'),'elementEnd'][_0x1295('0x12c')](_0x2e47fd[_0x1295('0x109')])&&_0x441fce[_0x1295('0x34')][_0x1295('0x4b')](_0x2e47fd[_0x1295('0xd7')]))return!0x1;return!0x0;}
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;}