@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230930.0 → 0.0.0-nightly-20231001.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20230930.0",
3
+ "version": "0.0.0-nightly-20231001.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "0.0.0-nightly-20230930.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230930.0",
42
+ "ckeditor5": "0.0.0-nightly-20231001.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231001.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a27=['getUser','formatBlock:','multi','markBlockFormat','trackChanges.mergeNestedSuggestions','markerReady','commands','detach','never','_descriptionFactory','normal','marker-count','after','_defaultCallbacks','position','_updateSuggestionData','getSuggestionCallback','_breakSuggestionMarker','discardSelectedSuggestions','getLastMatchingPosition','_refreshSuggestionsChain','_registerDefaultCallbacks','model','createSelection','remove','deletion:','change:activeMarkers','deletion:accept','insertion:join','split','getWalker','getCommentThread','TrackChangesEditing','getCustomProperty','newRange','acceptAllSuggestions','markMultiRangeDeletion','forceDefaultExecution','conversion','isArray','addRange','_isDataLoaded','values','_getSuggestionData','_createSuggestion','registerCustomCallback','unbindElementFromMarkerName','_commentsRepository','bindElementToMarker','isBlock','chain','addMarker:suggestion','documentSelection','createRange','assign','getNearestSelectionRange','options','formatInline:','formatInline:accept','removeClass','high','formatInline:chain','createElement','hasSuggestion','dataDowncast','createdAt','acceptSelectedSuggestions','suggestion','markerToData','execute','config','_saved','_findSuggestions','isInsideObject','_editor','discard','init','_addSuggestionMarker','add','showSuggestionHighlights','next','discardAllSuggestions','addSuggestion','splitPosition','range','removeComment','markInlineFormat','suggestionLoaded','before','getMultiRangeId','$textProxy','_getExternalAuthor','pluginName','formatBlock','selection','_cutOutSuggestionMarker','error-saving-suggestion-data-suggestion-discarded','editing','define','get','_onDiscard','enableCommand','change:_saved','setSelection','ck-suggestion-marker-','isLimit','update:suggestion','document','name','markers','trackChanges','_isForcedDefaultExecutionBlock','toViewElement','type','getChanges','markDeletion','head','length','getAttribute','_removeSuggestion','_trackFormatChanges','setTo','writer','change','move','track-changes-adapter-missing-getsuggestion','mapper','substr','plugins','isRemovable','some','insertion:discard','creator','createRangeIn','addMarker:suggestion:formatBlock','registerPostFixer','item','_checkSuggestionCorrectness','isAfter','accepted','refresh','differ','fire','map','targetPosition','value','removeMarker:suggestion:formatBlock','isBefore','formatInline:join','_adapter','adapter','createPositionAfter','_customCallbacks','isOwn','discardSuggestion','_model','dataReady','containsRangeInObject','oldRange','isMultiRange','always','isIntersectingWithRange','rethrowUnexpectedError','insertion:accept','isLocal','applyOperation','isCollapsed','notReady','includes','getShiftedBy','then','subType','_rangeIsInLocalUserInsertion','reconvertMarker','elementToElement','catch','removed','elementEnd','commentThread','track-changes-adapter-already-set','track-changes-suggestion-not-found','CommentsRepository','delete','addUser','deletion:chain','every','authoredAt','default','editor','insertContent','consumable','attributes','formatBlock:join','_joinWithAdjacentSuggestions','change:data','trackChangesCommand','removeMarker','howMany','open','elementStart','schema','multipleBlocks','containsPosition','getAncestors','originalSuggestionId','getFirstMarker','PENDING_ACTION_SUGGESTION','data','insertion:','splice','markerToHighlight','enqueueChange','collaboration.channelId','getSuggestion','element','updateMarker','isNextTo','_joinSuggestions','addCommentThread','getIntersection','tablePasteChainId','_enabledCommands','formatInline','isObject','data-suggestion','root','deleteContent','parent','getAllAdjacentSuggestions','containerElement','insertion','start','formatBlock:accept','author','isTouching','fetchCommentThread','getRange','track-changes-suggestion-data-mismatch','resolve','_splitMarkerName','rejected','push','end','getMarkers','createPositionAt','getFirstRange','removeAttribute','rootName','isInContent','size','stop','trackChanges.trackFormatChanges','from','highest','_suggestionFactory','markInsertion','addHighlight','external:','low','ck-suggestion-marker','isAtEnd','Users','getChangedMarkers','sort','activeMarkers','_suggestionState','addSuggestionData','editingDowncast','getSuggestions','nodeBefore','backward','getRanges','ready','skipNestingCheck','has','markerName','buildSuggestion','@external','hasComments','$graveyard','_suggestions','_mergeNestedSuggestions','moveTargetPosition','for','nodeAfter','stopListening','listenTo','set','_handleNewSuggestionMarker','upcast','_addThreadToSuggestion','batch','ck-suggestion-marker-formatBlock','_setSuggestionRange','ck-suggestion-marker--active','getItems','isEqual','deletion','addMarkerName','accept','_setSuggestionData','suggestionChanged','containsRange','removeMarkers','previous','setAttribute','_getAuthorFromId','lowest','acceptSuggestion','insert','join','isAtStart','filter','getDifference','consume','PendingActions','formatGroupId'];(function(_0x461a37,_0x4a2745){const _0x57cd4a=function(_0x1f52fb){while(--_0x1f52fb){_0x461a37['push'](_0x461a37['shift']());}};_0x57cd4a(++_0x4a2745);}(_0x4a27,0x18a));const _0x57cd=function(_0x461a37,_0x4a2745){_0x461a37=_0x461a37-0x0;let _0x57cd4a=_0x4a27[_0x461a37];return _0x57cd4a;};import{Plugin as _0x374470,PendingActions as _0x2158e4}from'ckeditor5/src/core';import{LiveRange as _0x56790a}from'ckeditor5/src/engine';import{CKEditorError as _0x101948,uid as _0x4402c6,priorities as _0xaca722,logWarning as _0x3f59c6}from'ckeditor5/src/utils';import{toWidget as _0x2e7685}from'ckeditor5/src/widget';import{Users as _0x6d742f,hashObject as _0x31373a}from'ckeditor5-collaboration/src/collaboration-core';import _0x325c2c from'./commands/trackchangescommand';import _0x42a2ea from'./commands/acceptsuggestioncommand';import _0x163db7 from'./commands/discardsuggestioncommand';import _0x312957 from'./commands/executeonallsuggestionscommand';import _0x44c32b from'./commands/executeonselectedsuggestionscommand';import _0x1f6f54 from'./suggestion';import _0x1c41a2 from'./suggestiondescriptionfactory';import _0x7b204c from'./integrations/aiassistant';import _0x2efbc3 from'./integrations/alignment';import _0x5a8acd from'./integrations/basicstyles';import _0x7ae0f2 from'./integrations/blockquote';import _0x2cca58 from'./integrations/ckbox';import _0x17f7f4 from'./integrations/codeblock';import _0x3d8190 from'./integrations/comments';import _0x3bba63 from'./integrations/deletecommand';import _0x43df85 from'./integrations/documentlist';import _0x55a813 from'./integrations/entercommand';import _0x58203a from'./integrations/findandreplace';import _0x5bb551 from'./integrations/font';import _0x59cce4 from'./integrations/formatpainter';import _0x494332 from'./integrations/heading';import _0x1c5621 from'./integrations/highlight';import _0xdd183e from'./integrations/horizontalline';import _0x2522c6 from'./integrations/htmlembed';import _0xb1d079 from'./integrations/image';import _0xe72e5a from'./integrations/imagereplace';import _0x3b8e61 from'./integrations/importword';import _0x421837 from'./integrations/indent';import _0x3efab4 from'./integrations/inputcommand';import _0x33f38a from'./integrations/link';import _0x1c5796 from'./integrations/list';import _0x151777 from'./integrations/listproperties';import _0x4e82f1 from'./integrations/mediaembed';import _0x2f7525 from'./integrations/mention';import _0x4d183b from'./integrations/pagebreak';import _0x52b563 from'./integrations/paragraph';import _0x3dabdc from'./integrations/removeformat';import _0x4fb8ad from'./integrations/restrictededitingmode';import _0xb78382 from'./integrations/shiftentercommand';import _0x305820 from'./integrations/standardeditingmode';import _0x3710c6 from'./integrations/style';import _0x189f92 from'./integrations/table';import _0x49f0e7 from'./integrations/tablemergesplit';import _0xe68401 from'./integrations/tableheadings';import _0x31b2fd from'./integrations/tableclipboard';import _0x81193 from'./integrations/tablecolumnresize';import _0x22db25 from'./integrations/template';import _0x50c83e from'./integrations/tableofcontents';import _0x3acf51 from'./integrations/title';import _0x42953d from'./integrations/undo';import{getTranslation as _0x4f6bc8}from'./utils/common-translations';import _0x5a89be from'./integrations/tablecaption';import _0x4e6f80 from'./integrations/documentlistproperties';import _0x45eb77 from'./integrations/tableproperties';import{isEqual as _0x4b00ed}from'lodash-es';export default class p extends _0x374470{static get['requires'](){return[_0x57cd('0x68'),_0x6d742f,_0x2158e4,_0x7b204c,_0x2efbc3,_0x5a8acd,_0x7ae0f2,_0x2cca58,_0x17f7f4,_0x3d8190,_0x3bba63,_0x43df85,_0x4e6f80,_0x55a813,_0x58203a,_0x5bb551,_0x59cce4,_0x494332,_0x1c5621,_0xdd183e,_0x2522c6,_0xb1d079,_0xe72e5a,_0x3b8e61,_0x421837,_0x3efab4,_0x33f38a,_0x1c5796,_0x151777,_0x4e82f1,_0x2f7525,_0x4d183b,_0x52b563,_0x3dabdc,_0x4fb8ad,_0xb78382,_0x305820,_0x3710c6,_0x189f92,_0x49f0e7,_0xe68401,_0x5a89be,_0x31b2fd,_0x81193,_0x50c83e,_0x45eb77,_0x22db25,_0x3acf51,_0x42953d];}static get[_0x57cd('0xf')](){return _0x57cd('0x110');}constructor(_0x4ac5ce){function _0xce1b2c(_0x1b116e){return _0x1b116e[_0x57cd('0x42')](_0x4e9c0c=>String['fromCharCode'](_0x4e9c0c))['join']('');}super(_0x4ac5ce),this[_0x57cd('0xd2')]('activeMarkers',[]),this['on'](_0x57cd('0x10a'),(_0xf24664,_0x1d2d23,_0x3de05f,_0x49d0b8)=>{this[_0x57cd('0x4e')][_0x57cd('0x2e')](()=>{for(const _0x4a135e of[..._0x49d0b8,..._0x3de05f])this[_0x57cd('0x4e')][_0x57cd('0x20')]['has'](_0x4a135e)&&_0x4ac5ce[_0x57cd('0x14')][_0x57cd('0x60')](_0x4a135e);});}),this[_0x57cd('0xf9')]=new _0x1c41a2(this['editor'][_0x57cd('0x106')][_0x57cd('0x7b')],this[_0x57cd('0x6f')]['locale']),this[_0x57cd('0x48')]=null,this[_0x57cd('0xb1')]=new Bt(this['editor']),this[_0x57cd('0xcb')]=new Map(),this[_0x57cd('0x11f')]=_0x4ac5ce[_0x57cd('0x33')][_0x57cd('0x16')](_0x57cd('0x68')),this[_0x57cd('0x90')]=new Set(),this[_0x57cd('0x4e')]=this[_0x57cd('0x6f')][_0x57cd('0x106')],this[_0x57cd('0xbc')]=new WeakMap(),this[_0x57cd('0x22')]=!0x1,_0x4ac5ce[_0x57cd('0x136')]['define'](_0x57cd('0xae'),_0x57cd('0x6e')),this['_trackFormatChanges']=_0x4ac5ce[_0x57cd('0x136')]['get'](_0x57cd('0xae')),_0x4ac5ce[_0x57cd('0x136')][_0x57cd('0x15')](_0x57cd('0xf4'),!0x0),this[_0x57cd('0xcc')]=_0x4ac5ce[_0x57cd('0x136')]['get'](_0x57cd('0xf4')),this[_0x57cd('0x76')]=new _0x325c2c(_0x4ac5ce,this[_0x57cd('0x90')]),this[_0xce1b2c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xce1b2c([0x34,0x30,0x34,0x36,0x31,0x38,0x36,0x30]);}[_0x57cd('0x13c')](){const _0x394abb=this[_0x57cd('0x6f')];_0x394abb[_0x57cd('0x116')][_0x57cd('0xce')](_0x57cd('0xbe'))[_0x57cd('0x85')]({'model':_0x57cd('0x133'),'view':_0x6f10cc=>{const {id:_0x3afc29,type:_0x2b6be5}=this[_0x57cd('0xa2')](_0x6f10cc['markerName']),_0x3166d2=[_0x57cd('0xb6'),_0x57cd('0x1b')+_0x2b6be5];let _0x56d47a=0xbb8;return this['activeMarkers'][_0x57cd('0x5b')](_0x6f10cc['markerName'])&&(_0x3166d2[_0x57cd('0xa4')](_0x57cd('0xd9')),_0x56d47a=0xbc2),_0x57cd('0xdc')==_0x2b6be5&&(_0x56d47a+=0x5),{'classes':_0x3166d2,'attributes':{'data-suggestion':_0x3afc29},'priority':_0x56d47a};}}),_0x394abb['conversion'][_0x57cd('0xce')](_0x57cd('0x130'))[_0x57cd('0x1')](_0x19e7d9=>{_0x19e7d9['on'](_0x57cd('0x123'),(_0x25d1e8,_0x17de5a,_0x85f4e5)=>{if(!_0x85f4e5[_0x57cd('0x128')][_0x57cd('0x2')])return;const _0x57c7a7=_0x17de5a[_0x57cd('0x3b')];if(!_0x57c7a7)return;const _0x5c1e42=_0x85f4e5[_0x57cd('0x31')][_0x57cd('0x23')](_0x57c7a7);_0x394abb[_0x57cd('0x106')]['schema']['isObject'](_0x57c7a7)&&_0x5c1e42&&!_0x5c1e42[_0x57cd('0x111')]('widget')&&_0x5c1e42['is'](_0x57cd('0x98'))&&_0x2e7685(_0x5c1e42,_0x85f4e5[_0x57cd('0x2d')]);},{'priority':_0x57cd('0x12c')});}),_0x394abb[_0x57cd('0x116')]['for'](_0x57cd('0x130'))[_0x57cd('0x85')]({'model':'suggestion','view':(_0x304cab,_0x1d9a14)=>{if(!_0x1d9a14[_0x57cd('0x128')][_0x57cd('0x2')])return null;const {type:_0x1e483f}=this[_0x57cd('0xa2')](_0x304cab['markerName']);return{'classes':[_0x57cd('0xb6'),_0x57cd('0x1b')+_0x1e483f],'priority':0xbb8};}});const _0x4b7530=({showActiveMarkers:_0xa88e55=!0x0}={})=>(_0x55a71b,_0x2a3488,_0xce7955)=>{if(!_0x2a3488[_0x57cd('0x3b')])return;if(_0x2a3488[_0x57cd('0x3b')]['is'](_0x57cd('0x11')))return void _0xce7955[_0x57cd('0x71')]['consume'](_0x2a3488[_0x57cd('0x3b')],_0x55a71b['name']);const _0x8d140a=_0xce7955['mapper'][_0x57cd('0x23')](_0x2a3488['item']);if(!(_0x2a3488['item']['is'](_0x57cd('0x89'))&&_0x394abb[_0x57cd('0x106')]['schema'][_0x57cd('0x121')](_0x2a3488[_0x57cd('0x3b')])&&!_0x8d140a[_0x57cd('0x111')](_0x57cd('0xb3'))))return;const {id:_0x364495}=this[_0x57cd('0xa2')](_0x2a3488[_0x57cd('0xc6')]);_0xce7955[_0x57cd('0x2d')]['addClass'](['ck-suggestion-marker',_0x57cd('0xd7')],_0x8d140a),_0xce7955[_0x57cd('0x2d')][_0x57cd('0xe4')](_0x57cd('0x93'),_0x364495,_0x8d140a),_0xce7955[_0x57cd('0x31')][_0x57cd('0x120')](_0x8d140a,_0x2a3488[_0x57cd('0xc6')]),_0xa88e55&&(this[_0x57cd('0xbb')][_0x57cd('0x5b')](_0x2a3488[_0x57cd('0xc6')])?_0xce7955[_0x57cd('0x2d')]['addClass'](_0x57cd('0xd9'),_0x8d140a):_0xce7955[_0x57cd('0x2d')][_0x57cd('0x12b')](_0x57cd('0xd9'),_0x8d140a));for(const _0x15deb3 of _0x394abb[_0x57cd('0x106')][_0x57cd('0x38')](_0x2a3488['item'])[_0x57cd('0xda')]())_0xce7955[_0x57cd('0x71')][_0x57cd('0xed')](_0x15deb3,_0x55a71b['name']);_0xce7955[_0x57cd('0x71')][_0x57cd('0xed')](_0x2a3488[_0x57cd('0x3b')],_0x55a71b[_0x57cd('0x1f')]);};_0x394abb[_0x57cd('0x116')][_0x57cd('0xce')]('dataDowncast')[_0x57cd('0x1')](_0x12b199=>{_0x12b199['on'](_0x57cd('0x39'),(_0x5c6c8a,_0x158564,_0x43a22f)=>{_0x43a22f['options'][_0x57cd('0x2')]&&_0x4b7530({'showActiveMarkers':!0x1})(_0x5c6c8a,_0x158564,_0x43a22f);},{'priority':_0x57cd('0xb0')});}),_0x394abb[_0x57cd('0x116')][_0x57cd('0xce')]('dataDowncast')[_0x57cd('0x134')]({'model':_0x57cd('0x133'),'view':(_0x584ca5,_0x2f3cc6)=>_0x2f3cc6[_0x57cd('0x128')][_0x57cd('0x2')]?null:{'group':'suggestion','name':_0x584ca5[_0x57cd('0x32')](0xb)}}),_0x394abb[_0x57cd('0x116')][_0x57cd('0xce')]('upcast')[_0x57cd('0x61')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a6737,{writer:_0x3d17f9})=>{let _0x2b441d='suggestion:'+_0x2a6737[_0x57cd('0x29')]('suggestion-type')+':'+_0x2a6737[_0x57cd('0x29')]('id');return _0x2a6737['getAttribute']('marker-count')&&(_0x2b441d+=':'+_0x2a6737['getAttribute'](_0x57cd('0xfb'))),_0x3d17f9[_0x57cd('0x12e')]('$marker',{'data-name':_0x2b441d});}}),_0x394abb['conversion'][_0x57cd('0xce')](_0x57cd('0xd4'))['dataToMarker']({'view':_0x57cd('0x133')}),_0x394abb[_0x57cd('0x116')][_0x57cd('0xce')](_0x57cd('0xbe'))[_0x57cd('0x1')](_0x25d4c6=>{_0x25d4c6['on'](_0x57cd('0x39'),_0x4b7530(),{'priority':'high'});}),_0x394abb['conversion'][_0x57cd('0xce')](_0x57cd('0xbe'))['add'](_0x5b0df5=>{_0x5b0df5['on'](_0x57cd('0x45'),(_0x1a351b,_0x35b002,_0x4f78a3)=>{const _0xd64a3d=_0x4f78a3[_0x57cd('0x31')]['markerNameToElements'](_0x35b002[_0x57cd('0xc6')]);if(_0xd64a3d)for(const _0x328710 of _0xd64a3d)_0x328710[_0x57cd('0x111')](_0x57cd('0xb3'))||(_0x4f78a3[_0x57cd('0x2d')]['removeClass'](['ck-suggestion-marker',_0x57cd('0xd7'),_0x57cd('0xd9')],_0x328710),_0x4f78a3[_0x57cd('0x2d')][_0x57cd('0xa9')]('data-suggestion',_0x328710),_0x4f78a3['mapper'][_0x57cd('0x11e')](_0x328710,_0x35b002[_0x57cd('0xc6')]));},{'priority':_0x57cd('0x12c')});}),_0x394abb[_0x57cd('0x106')][_0x57cd('0x1e')][_0x57cd('0x3a')](_0x4b1d65=>{let _0x51d6e4=!0x1;const _0x580bfa=Array[_0x57cd('0xaf')](_0x394abb[_0x57cd('0x106')]['document'][_0x57cd('0x40')][_0x57cd('0xb9')]()),_0x3ab306=new Set();for(const {name:_0xc7969a,data:_0x30dad9}of _0x580bfa){const {group:_0x44d6ab,type:_0x3c3ba0,id:_0x76bbf1}=this[_0x57cd('0xa2')](_0xc7969a);if(_0x57cd('0x133')!==_0x44d6ab)continue;const _0x1786d3=this[_0x57cd('0xcb')]['get'](_0x76bbf1);if(null!=_0x30dad9[_0x57cd('0x112')]){_0x57cd('0x91')==_0x3c3ba0&&(_0x51d6e4=_0x51d6e4||$t(_0x30dad9['newRange'],_0xc7969a,_0x4b1d65,_0x394abb['model'][_0x57cd('0x7b')]));if(_0x30dad9[_0x57cd('0x112')][_0x57cd('0x59')]||_0x57cd('0xca')==_0x30dad9[_0x57cd('0x112')][_0x57cd('0x94')]['rootName']||_0x57cd('0x10')==_0x3c3ba0&&!Rt(_0x30dad9[_0x57cd('0x112')])||'deletion'==_0x3c3ba0&&!(!Mt(_0x50f9c9=_0x30dad9[_0x57cd('0x112')])&&!function(_0x45dc3b){return _0x45dc3b[_0x57cd('0x9a')]['parent']==_0x45dc3b[_0x57cd('0xa5')]['nodeBefore']&&_0x45dc3b[_0x57cd('0x9a')]['isAtEnd'];}(_0x50f9c9)))_0x4b1d65['removeMarker'](_0xc7969a),_0x51d6e4=!0x0;else{if(!_0x1786d3||!_0x1786d3['isInContent'])continue;_0x3ab306[_0x57cd('0x1')](_0x1786d3);}}}var _0x50f9c9;return _0x3ab306[_0x57cd('0xac')]>0x0&&(_0x51d6e4=!!this['_joinWithAdjacentSuggestions'](_0x3ab306)||_0x51d6e4),_0x51d6e4;}),_0x394abb[_0x57cd('0x106')][_0x57cd('0x1e')][_0x57cd('0x3a')](_0x59a89d=>{let _0x52588e=!0x1;for(const _0x1c0bd9 of _0x394abb[_0x57cd('0x106')]['document'][_0x57cd('0x40')][_0x57cd('0x25')]()){if(_0x57cd('0xe8')!=_0x1c0bd9[_0x57cd('0x24')])continue;const _0x31e8ba=_0x1c0bd9[_0x57cd('0xfe')][_0x57cd('0x5c')](_0x1c0bd9['length']);if(_0x31e8ba[_0x57cd('0xb7')])for(const _0xfcf4f0 of this['_suggestions'][_0x57cd('0x11a')]()){if(_0xfcf4f0[_0x57cd('0x52')]||!_0xfcf4f0[_0x57cd('0xab')])continue;if(_0x57cd('0x10')!=_0xfcf4f0['type'])continue;const _0x50cc63=_0xfcf4f0[_0x57cd('0xa8')]();if(_0x50cc63[_0x57cd('0x9a')][_0x57cd('0x96')]!=_0x50cc63[_0x57cd('0xa5')]['parent']&&_0x50cc63[_0x57cd('0xa5')][_0x57cd('0xdb')](_0x1c0bd9[_0x57cd('0xfe')])){const _0x1d6cd2=_0x394abb[_0x57cd('0x106')][_0x57cd('0x125')](_0x50cc63[_0x57cd('0x9a')],_0x31e8ba);_0x59a89d['updateMarker'](_0xfcf4f0[_0x57cd('0x80')](),{'range':_0x1d6cd2}),_0x52588e=!0x0;}}}return _0x52588e;}),_0x394abb[_0x57cd('0x106')][_0x57cd('0x20')]['on'](_0x57cd('0x1d'),(_0x1082fa,_0x2e53fc,_0x5ac76e)=>{if(null==_0x5ac76e){const {id:_0x4f2ee0}=this['_splitMarkerName'](_0x2e53fc[_0x57cd('0x1f')]),_0x5ac7e0=this[_0x57cd('0xcb')][_0x57cd('0x16')](_0x4f2ee0);_0x5ac7e0&&_0x5ac7e0['addMarkerName'](_0x2e53fc[_0x57cd('0x1f')]);}}),_0x394abb[_0x57cd('0x106')][_0x57cd('0x1e')]['on'](_0x57cd('0x75'),()=>{const _0x31e785=Array['from'](_0x394abb['model']['document'][_0x57cd('0x40')][_0x57cd('0xb9')]())['filter'](_0xb25765=>_0x57cd('0x133')===this[_0x57cd('0xa2')](_0xb25765['name'])['group']);if(0x0===_0x31e785[_0x57cd('0x28')])return;_0x31e785['sort']((_0x22d122,_0x2beee7)=>{const _0x2c13c2=_0x22d122[_0x57cd('0x82')][_0x57cd('0x51')],_0x279a48=_0x2beee7[_0x57cd('0x82')][_0x57cd('0x51')];return null===_0x2c13c2&&null===_0x279a48?0x0:null===_0x2c13c2&&null!==_0x279a48?-0x1:null!==_0x2c13c2&&null===_0x279a48?0x1:_0x2c13c2[_0x57cd('0x9a')][_0x57cd('0x46')](_0x279a48[_0x57cd('0x9a')])?-0x1:0x1;});const _0x522090=new Set(),_0x5eda85=new Set();for(const {name:_0x4e5c3e,data:_0x40a3f6}of _0x31e785){const {id:_0x2b93de}=this[_0x57cd('0xa2')](_0x4e5c3e);if(null===_0x40a3f6[_0x57cd('0x51')]){const _0x485d68=this[_0x57cd('0xd3')](_0x4e5c3e);_0x5eda85[_0x57cd('0x1')](_0x485d68);}else{const _0x11f33b=this['_suggestions'][_0x57cd('0x16')](_0x2b93de);null!==_0x40a3f6[_0x57cd('0x112')]||_0x11f33b[_0x57cd('0xab')]?(_0x522090['add'](_0x11f33b[_0x57cd('0x27')]),_0x5eda85[_0x57cd('0x1')](_0x11f33b)):this[_0x57cd('0x2a')](_0x11f33b);}}_0x5eda85[_0x57cd('0xac')]>0x0&&this[_0x57cd('0x104')](_0x5eda85);for(const _0x2d9c47 of _0x522090)this[_0x57cd('0x41')](_0x57cd('0xe0'),_0x2d9c47);}),_0x394abb[_0x57cd('0x106')]['on'](_0x57cd('0x58'),(_0x560cbd,_0x51f47f)=>{const _0x2c5ee5=_0x51f47f[0x0];if(!this[_0x57cd('0xcb')]['size'])return;if(!_0x2c5ee5['isDocumentOperation'])return;if(_0x2c5ee5['batch']['isUndo']||!_0x2c5ee5[_0x57cd('0xd6')][_0x57cd('0x57')])return;let _0x51a89c,_0x53187f;switch(_0x2c5ee5[_0x57cd('0x24')]){case'insert':_0x51a89c=_0x394abb[_0x57cd('0x106')][_0x57cd('0xa7')](_0x2c5ee5[_0x57cd('0xfe')]),_0x53187f=_0x51a89c['getShiftedBy'](_0x2c5ee5['howMany']);break;case'split':_0x51a89c=_0x394abb[_0x57cd('0x106')][_0x57cd('0xa7')](_0x2c5ee5[_0x57cd('0x6')]),_0x53187f=_0x394abb[_0x57cd('0x106')][_0x57cd('0xa7')](_0x2c5ee5[_0x57cd('0xcd')]);break;case _0x57cd('0x2f'):_0x51a89c=_0x394abb['model'][_0x57cd('0xa7')](_0x2c5ee5[_0x57cd('0x43')]),_0x53187f=_0x51a89c[_0x57cd('0x5c')](_0x2c5ee5[_0x57cd('0x78')]);break;default:return;}const _0x74cf81=_0x394abb['model']['createRange'](_0x51a89c,_0x53187f);_0x394abb[_0x57cd('0x106')][_0x57cd('0x2e')](()=>{for(const {suggestion:_0x474bed,meta:_0x3d993a}of this[_0x57cd('0x138')](_0x74cf81)){if(_0x474bed['isMultiRange'])continue;if(_0x57cd('0x91')==_0x474bed[_0x57cd('0x24')])continue;const _0x3b620a=_0x474bed[_0x57cd('0x82')]&&_0x474bed[_0x57cd('0x82')][_0x57cd('0x7c')];(_0x57cd('0x10')!=_0x474bed[_0x57cd('0x24')]||'split'==_0x2c5ee5[_0x57cd('0x24')]&&!_0x3b620a)&&(_0x3d993a[_0x57cd('0x50')]||'insertion'==_0x474bed['type']&&_0x3d993a['isOwn']||_0x474bed[_0x57cd('0xa8')]()['containsRange'](_0x74cf81)&&this['_breakSuggestionMarker'](_0x474bed,_0x51a89c,_0x53187f));}});},{'priority':_0x57cd('0xe6')}),_0x394abb['model']['on'](_0x57cd('0x95'),(_0x32a3a2,_0x517efd)=>{const _0x4ee4f7=_0x517efd[0x0],_0x2a2b94=_0x517efd[0x1];if(_0x2a2b94&&_0x2a2b94['forceDefaultExecution'])return;if(this[_0x57cd('0x22')])return;if(!this[_0x57cd('0x76')][_0x57cd('0x44')])return;if(_0x4ee4f7['isCollapsed'])return;const _0x2e73b8=_0x394abb[_0x57cd('0x106')][_0x57cd('0x7b')],{start:_0x27091e,end:_0x45897b}=_0x4ee4f7[_0x57cd('0xa8')](),_0x33f2eb=_0x27091e['nodeAfter']&&_0x2e73b8['isLimit'](_0x27091e['nodeAfter'])?null:_0x2e73b8[_0x57cd('0x127')](_0x27091e,'forward'),_0x3a9def=_0x45897b[_0x57cd('0xc0')]&&_0x2e73b8[_0x57cd('0x1c')](_0x45897b['nodeBefore'])?null:_0x2e73b8[_0x57cd('0x127')](_0x45897b,_0x57cd('0xc1')),_0x256d40=_0x394abb['model'][_0x57cd('0x125')](_0x33f2eb?_0x33f2eb['start']:_0x27091e,_0x3a9def?_0x3a9def['end']:_0x45897b);_0x394abb[_0x57cd('0x106')][_0x57cd('0x2e')](_0x57067c=>{this[_0x57cd('0x26')](_0x256d40);const _0x3a919d=_0x394abb[_0x57cd('0x106')][_0x57cd('0x7b')][_0x57cd('0x127')](_0x256d40[_0x57cd('0x9a')]);_0x4ee4f7['is'](_0x57cd('0x124'))?_0x57067c['setSelection'](_0x3a919d):_0x4ee4f7[_0x57cd('0x2c')](_0x3a919d);}),_0x32a3a2[_0x57cd('0xad')]();},{'priority':_0xaca722[_0x57cd('0xfa')]+0xa}),_0x394abb[_0x57cd('0x106')]['on'](_0x57cd('0x70'),(_0x163694,_0x30cd1e)=>{const _0xb7e19a=_0x30cd1e[_0x30cd1e['length']-0x1];_0xb7e19a&&_0xb7e19a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x57cd('0x76')][_0x57cd('0x44')]&&(_0x394abb['model'][_0x57cd('0x2e')](()=>{let _0x523a87=_0x394abb[_0x57cd('0x106')][_0x57cd('0x70')](_0x30cd1e[0x0],_0x30cd1e[0x1],_0x30cd1e[0x2],{'forceDefaultExecution':!0x0});if(!_0x523a87)return;_0x163694['return']=_0x523a87['clone']();const _0x5ebcdb=_0x523a87['end'][_0x57cd('0xc0')],_0x24ccd0=_0x394abb[_0x57cd('0x106')]['schema'];_0x5ebcdb&&_0x24ccd0['isBlock'](_0x5ebcdb)&&!_0x24ccd0[_0x57cd('0x92')](_0x5ebcdb)&&(_0x523a87=_0x394abb[_0x57cd('0x106')][_0x57cd('0x125')](_0x523a87[_0x57cd('0x9a')],_0x394abb['model'][_0x57cd('0xa7')](_0x5ebcdb,_0x57cd('0xa5')))),this[_0x57cd('0xb2')](_0x523a87);}),_0x163694[_0x57cd('0xad')]());},{'priority':'high'}),this['editor'][_0x57cd('0xf6')][_0x57cd('0x1')](_0x57cd('0x21'),this[_0x57cd('0x76')]),this[_0x57cd('0x18')](_0x57cd('0x21'));const _0x1b92a2=new _0x42a2ea(_0x394abb,this[_0x57cd('0xcb')]);_0x394abb['commands'][_0x57cd('0x1')](_0x57cd('0xe7'),_0x1b92a2),this[_0x57cd('0x18')](_0x57cd('0xe7'));const _0x4d46af=new _0x163db7(_0x394abb,this[_0x57cd('0xcb')]);_0x394abb[_0x57cd('0xf6')][_0x57cd('0x1')](_0x57cd('0x4d'),_0x4d46af),this[_0x57cd('0x18')](_0x57cd('0x4d')),_0x394abb['commands']['add'](_0x57cd('0x113'),new _0x312957(_0x394abb,_0x1b92a2,this[_0x57cd('0xcb')])),this[_0x57cd('0x18')](_0x57cd('0x113')),_0x394abb[_0x57cd('0xf6')][_0x57cd('0x1')]('discardAllSuggestions',new _0x312957(_0x394abb,_0x4d46af,this[_0x57cd('0xcb')])),this[_0x57cd('0x18')](_0x57cd('0x4')),_0x394abb[_0x57cd('0xf6')][_0x57cd('0x1')](_0x57cd('0x132'),new _0x44c32b(_0x394abb,_0x1b92a2,this[_0x57cd('0xcb')])),this[_0x57cd('0x18')](_0x57cd('0x132')),_0x394abb[_0x57cd('0xf6')][_0x57cd('0x1')](_0x57cd('0x102'),new _0x44c32b(_0x394abb,_0x4d46af,this[_0x57cd('0xcb')])),this[_0x57cd('0x18')]('discardSelectedSuggestions');const _0x5dda3d=_0x394abb[_0x57cd('0x33')][_0x57cd('0x16')](_0x57cd('0x68'));this[_0x57cd('0xd1')](_0x5dda3d,'addComment',(_0x3bf0ed,{threadId:_0x1466d7})=>{const _0x233ba8=this[_0x57cd('0xcb')][_0x57cd('0x16')](_0x1466d7);_0x233ba8&&_0x233ba8['commentThread']&&0x1===_0x233ba8['commentThread']['length']&&this[_0x57cd('0xff')](_0x1466d7,{'hasComments':!0x0});},{'priority':_0x57cd('0xb5')}),this[_0x57cd('0xd1')](_0x5dda3d,_0x57cd('0x8'),(_0x1af864,{threadId:_0x33cefe})=>{const _0x930bcb=this[_0x57cd('0xcb')][_0x57cd('0x16')](_0x33cefe);_0x930bcb&&_0x930bcb[_0x57cd('0x65')]&&!_0x930bcb[_0x57cd('0x65')]['length']&&this[_0x57cd('0xff')](_0x33cefe,{'hasComments':!0x1});},{'priority':_0x57cd('0xb5')});}set[_0x57cd('0x49')](_0x220ee5){if(this[_0x57cd('0x48')])throw new _0x101948(_0x57cd('0x66'),this);this[_0x57cd('0x48')]=_0x220ee5;}get['adapter'](){return this['_adapter'];}[_0x57cd('0xbf')]({skipNotAttached:_0x223bd1=!0x1,toJSON:_0x25e1b5=!0x1}={}){const _0x436a11=[];for(const _0x5b3cae of this[_0x57cd('0xcb')][_0x57cd('0x11a')]())_0x223bd1&&!_0x5b3cae[_0x57cd('0xab')]||_0x436a11[_0x57cd('0xa4')](_0x5b3cae);return _0x25e1b5?_0x436a11['map'](_0x12e28f=>_0x12e28f['toJSON']()):_0x436a11;}[_0x57cd('0x88')](_0x366209){const _0x53f54b=this[_0x57cd('0xcb')]['get'](_0x366209);if(!_0x53f54b)throw new _0x101948(_0x57cd('0x67'),this);return _0x53f54b;}[_0x57cd('0x12f')](_0x587553){return this[_0x57cd('0xcb')][_0x57cd('0xc5')](_0x587553);}['addSuggestionData'](_0x4481d8){const {authorId:_0x3fa731,id:_0x18637b,attributes:_0x1301ca}=_0x4481d8,[_0x1f37f9,_0x47f38e]=_0x4481d8[_0x57cd('0x24')][_0x57cd('0x10d')](':'),_0x15b833=this[_0x57cd('0xcb')][_0x57cd('0x16')](_0x18637b)||this['_createSuggestion'](_0x1f37f9,_0x47f38e,_0x18637b,_0x3fa731,_0x1301ca);if(this[_0x57cd('0xd5')](_0x15b833),this['_checkSuggestionCorrectness'](_0x15b833,_0x1f37f9,_0x47f38e||null,_0x3fa731),_0x15b833[_0x57cd('0x131')]=_0x4481d8[_0x57cd('0x131')],_0x15b833[_0x57cd('0x119')]=!0x0,_0x1301ca&&_0x1301ca[_0x57cd('0xc8')]){const _0x446c48=_0x1301ca[_0x57cd('0xc8')],_0x18c0a3=this[_0x57cd('0xe')](_0x446c48['authorName']);_0x15b833[_0x57cd('0x6d')]=_0x446c48[_0x57cd('0x131')],_0x15b833[_0x57cd('0x9c')]=_0x18c0a3,_0x15b833['isExternal']=!0x0;}else _0x15b833[_0x57cd('0x6d')]=_0x4481d8['createdAt'];switch(_0x4481d8[_0x57cd('0x82')]&&(_0x15b833[_0x57cd('0x82')]=_0x4481d8['data']),_0x4481d8[_0x57cd('0x72')]&&(_0x15b833[_0x57cd('0x72')]=_0x4481d8[_0x57cd('0x72')]),this[_0x57cd('0x48')]&&this[_0x57cd('0x48')][_0x57cd('0x5')]||(_0x15b833[_0x57cd('0x137')]=!0x0),this['_suggestionState'][_0x57cd('0x16')](_0x15b833)){case'notReady':this['_suggestionState'][_0x57cd('0xd2')](_0x15b833,_0x57cd('0x4f'));break;case _0x57cd('0xf5'):_0x15b833[_0x57cd('0xab')]?(this['_refreshSuggestionsChain'](new Set([_0x15b833])),this[_0x57cd('0x74')](new Set([_0x15b833])),this[_0x57cd('0xbc')]['set'](_0x15b833,'ready'),this['fire']('suggestionLoaded',_0x15b833)):this[_0x57cd('0xbc')][_0x57cd('0xd2')](_0x15b833,_0x57cd('0x63'));}return _0x15b833;}[_0x57cd('0xe7')](_0x12d731){this[_0x57cd('0x115')](()=>{this['editor'][_0x57cd('0x106')][_0x57cd('0x2e')](()=>{for(const _0x2473c5 of _0x12d731['getAllAdjacentSuggestions']())_0x2473c5[_0x57cd('0xde')]();});});}[_0x57cd('0x4d')](_0x2fb9bf){this[_0x57cd('0x115')](()=>{this[_0x57cd('0x6f')]['model'][_0x57cd('0x2e')](()=>{for(const _0x136843 of _0x2fb9bf[_0x57cd('0x97')]())_0x136843[_0x57cd('0x13b')]();});});}['enableCommand'](_0x3b2ab4,_0x342e4f){const _0x352ad3=this[_0x57cd('0x6f')]['commands'][_0x57cd('0x16')](_0x3b2ab4);if(!_0x352ad3)throw new _0x101948('track-changes-command-not-found',this,{'commandName':_0x3b2ab4});this['_enabledCommands'][_0x57cd('0x1')](_0x352ad3),_0x342e4f&&_0x352ad3['on']('execute',(_0x1f621a,_0x1f967a)=>{this['trackChangesCommand'][_0x57cd('0x44')]&&(this[_0x57cd('0x22')]||_0x1f967a[_0x57cd('0x28')]>0x0&&_0x1f967a[_0x1f967a['length']-0x1]&&_0x1f967a[_0x1f967a[_0x57cd('0x28')]-0x1]['forceDefaultExecution']||(_0x342e4f((..._0x46ce2c)=>_0x352ad3[_0x57cd('0x135')](..._0x46ce2c,{'forceDefaultExecution':!0x0}),..._0x1f967a),_0x1f621a[_0x57cd('0xad')]()));},{'priority':_0x57cd('0x12c')});}[_0x57cd('0x115')](_0x51357c){let _0x23c8ce,_0x14a449;const _0x48c34e=this[_0x57cd('0x22')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x23c8ce=_0x51357c();}catch(_0xe7dc85){_0x14a449=_0xe7dc85;}return _0x48c34e||(this[_0x57cd('0x22')]=!0x1),_0x14a449&&_0x101948[_0x57cd('0x55')](_0x14a449,this),_0x23c8ce;}[_0x57cd('0xb2')](_0x405eb7,_0x17b6f0=null,_0x1d1f20={}){if(_0x405eb7[_0x57cd('0x59')])return null;const _0x26887f=this[_0x57cd('0x6f')]['plugins'][_0x57cd('0x16')]('Users')['me'];for(const {suggestion:_0x777df6,meta:_0x27a6eb}of this[_0x57cd('0x138')](_0x405eb7,_0x57cd('0x99')))if(_0x27a6eb['isOwn']){if(!_0x27a6eb[_0x57cd('0x8b')]){if(_0x27a6eb[_0x57cd('0x50')]){if(!this[_0x57cd('0xcc')]||!Ot(_0x777df6,_0x1d1f20))continue;return _0x777df6;}if(Ot(_0x777df6,_0x1d1f20))return _0x777df6;this[_0x57cd('0x101')](_0x777df6,_0x405eb7[_0x57cd('0x9a')],_0x405eb7[_0x57cd('0xa5')]);break;}if(_0x17b6f0==_0x777df6[_0x57cd('0x5e')]&&Ot(_0x777df6,_0x1d1f20)){const _0x42c7da=_0x777df6[_0x57cd('0xa8')]();return _0x42c7da[_0x57cd('0x9a')][_0x57cd('0xdb')](_0x405eb7[_0x57cd('0xa5')])?this['_setSuggestionRange'](_0x777df6,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x405eb7[_0x57cd('0x9a')],_0x42c7da['end'])):this[_0x57cd('0xd8')](_0x777df6,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x42c7da[_0x57cd('0x9a')],_0x405eb7[_0x57cd('0xa5')])),_0x777df6;}}const _0x451ab6=_0x4402c6(),_0x6cdee6=_0x26887f['id'],_0x389f45=_0x17b6f0?_0x57cd('0x83')+_0x17b6f0:'insertion',_0x525207=this[_0x57cd('0xdf')]({'id':_0x451ab6,'type':_0x389f45,'createdAt':new Date(),'authorId':_0x6cdee6,'attributes':_0x1d1f20});return this[_0x57cd('0x0')](_0x389f45,_0x451ab6,_0x6cdee6,_0x405eb7),_0x525207;}['markMultiRangeInsertion'](_0x10b670,_0x5967f5=_0x57cd('0xf2'),_0x3328bf={}){const _0x242ba2=this['editor'][_0x57cd('0x33')][_0x57cd('0x16')](_0x57cd('0xb8'))['me'],_0x23b703=this[_0x57cd('0xb1')]['getSuggestionCallback'](_0x57cd('0x99'),_0x5967f5,_0x57cd('0xe9'));for(const _0x43912d of this[_0x57cd('0xbf')]())if(_0x43912d[_0x57cd('0x9c')]['id']==_0x242ba2['id']&&_0x57cd('0x99')==_0x43912d[_0x57cd('0x24')]&&_0x43912d[_0x57cd('0x5e')]==_0x5967f5&&Ot(_0x43912d,_0x3328bf)&&(_0x23b703(_0x43912d[_0x57cd('0xc2')](),_0x10b670)||_0x23b703(_0x10b670,_0x43912d[_0x57cd('0xc2')]()))){for(const _0x1077f0 of _0x10b670)_0x43912d[_0x57cd('0x118')](_0x1077f0);return _0x43912d;}for(const {suggestion:_0x20a593,meta:_0x1118e2}of this[_0x57cd('0x138')](_0x10b670,'insertion')){if(!_0x1118e2['isOwn'])continue;if(!this[_0x57cd('0xcc')]&&_0x1118e2[_0x57cd('0x50')])continue;if(!Ot(_0x20a593,_0x3328bf))continue;let _0x2b14b8=!0x0;for(const _0x179b27 of _0x20a593[_0x57cd('0xc2')]())for(const _0x329b47 of _0x10b670)if(!_0x179b27[_0x57cd('0xe1')](_0x329b47)){_0x2b14b8=!0x1;break;}if(_0x2b14b8)return _0x20a593;}const _0x1b9f74=_0x4402c6(),_0x435c7a=_0x242ba2['id'],_0x4b589e=_0x57cd('0x83')+_0x5967f5,_0x123dc6=this['_setSuggestionData']({'id':_0x1b9f74,'type':_0x4b589e,'createdAt':new Date(),'authorId':_0x435c7a,'attributes':_0x3328bf});for(const _0x38c4d6 of _0x10b670)this[_0x57cd('0x0')](_0x4b589e,_0x1b9f74,_0x435c7a,_0x38c4d6,_0x1f6f54[_0x57cd('0xc')]());return _0x123dc6;}[_0x57cd('0x9')](_0xa18d4d,_0x59fc93,_0x4a9185=null,_0x20d6fc={}){if(_0x4a9185=_0x4a9185||Nt(_0x59fc93),_0xa18d4d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x332b58=this[_0x57cd('0xb1')]['getSuggestionCallback'](_0x57cd('0x91'),_0x4a9185,_0x57cd('0xde'));return this[_0x57cd('0x115')](()=>_0x332b58([_0xa18d4d],_0x59fc93,_0x20d6fc)),null;}const _0x228d2d=this[_0x57cd('0x6f')][_0x57cd('0x33')]['get'](_0x57cd('0xb8'))['me'],_0x46bea7=[];if(_0x57cd('0x53')!==this[_0x57cd('0x2b')])for(const {suggestion:_0x25cfb2,meta:_0x3c8c64}of this[_0x57cd('0x138')](_0xa18d4d,_0x57cd('0x99')))_0x3c8c64[_0x57cd('0x4c')]&&!_0x3c8c64[_0x57cd('0x139')]&&_0x46bea7[_0x57cd('0xa4')](..._0x25cfb2[_0x57cd('0xc2')]());const _0x2f12e1=function(_0x3853ed,_0x23d5a7){const _0x10a697=[];for(const _0x4f2e06 of _0x23d5a7){const _0x2c20f1=_0x3853ed[_0x57cd('0x8e')](_0x4f2e06);_0x2c20f1&&_0x10a697[_0x57cd('0xa4')](_0x2c20f1);}return _0x10a697;}(_0xa18d4d,_0x46bea7),_0x1ab96c=function(_0x3ccad2,_0xd6cf80){const _0x5a37c9=[_0x3ccad2];for(const _0x3dcb91 of _0xd6cf80){let _0x4befc7=0x0;for(;_0x4befc7<_0x5a37c9['length'];){const _0x29885d=_0x5a37c9[_0x4befc7]['getDifference'](_0x3dcb91);_0x5a37c9[_0x57cd('0x84')](_0x4befc7,0x1,..._0x29885d),_0x4befc7+=_0x29885d[_0x57cd('0x28')];}}return _0x5a37c9;}(_0xa18d4d,_0x46bea7);_0x2f12e1[_0x57cd('0x28')]&&this[_0x57cd('0x4e')][_0x57cd('0x2e')](()=>{for(const _0x22dfe9 of _0x2f12e1){const _0x2bd1a6=this[_0x57cd('0xb1')]['getSuggestionCallback'](_0x57cd('0x91'),_0x4a9185,_0x57cd('0xde'));this['forceDefaultExecution'](()=>_0x2bd1a6([_0x22dfe9],_0x59fc93,_0x20d6fc));}});for(const _0x321130 of _0x1ab96c){let _0x21796f=null,_0x3ac8b6=_0x321130['start'],_0x45ea34=_0x321130['end'];for(const {suggestion:_0x14f950,meta:_0x15448d}of this[_0x57cd('0x138')](_0x321130,'formatInline')){if(!_0x15448d[_0x57cd('0x4c')])continue;if(_0x14f950[_0x57cd('0x5e')]!=_0x4a9185)continue;if(!Ot(_0x14f950,_0x20d6fc))continue;const _0x2fdd81=_0x14f950[_0x57cd('0xa8')]();if(_0x2fdd81['containsRange'](_0x321130,!0x0))return null;_0x3ac8b6=_0x3ac8b6[_0x57cd('0x46')](_0x2fdd81[_0x57cd('0x9a')])?_0x3ac8b6:_0x2fdd81[_0x57cd('0x9a')],_0x45ea34=_0x45ea34['isAfter'](_0x2fdd81[_0x57cd('0xa5')])?_0x45ea34:_0x2fdd81['end'],_0x21796f?_0x2fdd81[_0x57cd('0x9a')]['isBefore'](_0x21796f[_0x57cd('0xa8')]()[_0x57cd('0x9a')])?(_0x21796f[_0x57cd('0xe2')](),_0x21796f=_0x14f950):_0x14f950[_0x57cd('0xe2')]():_0x21796f=_0x14f950;}const _0x2ac57f=this['_model'][_0x57cd('0x125')](_0x3ac8b6,_0x45ea34);if(_0x21796f)this['_setSuggestionRange'](_0x21796f,_0x2ac57f);else{const _0x309db6=_0x4402c6(),_0x5e6464=_0x228d2d['id'];this['_setSuggestionData']({'id':_0x309db6,'type':_0x57cd('0x129')+_0x4a9185,'data':_0x59fc93,'createdAt':new Date(),'authorId':_0x5e6464,'attributes':_0x20d6fc}),this['_addSuggestionMarker'](_0x57cd('0x129')+_0x4a9185,_0x309db6,_0x5e6464,_0x2ac57f);}}return null;}[_0x57cd('0xf3')](_0x3298f2,_0x507201,_0xbe8437=[],_0x578d0d=null,_0x27e18c={}){_0x507201['formatGroupId']||(_0x507201[_0x57cd('0xef')]=_0x507201['commandName']),_0x507201[_0x57cd('0x7c')]=_0x3298f2['is'](_0x57cd('0x7')),_0x578d0d=_0x578d0d||Nt(_0x507201);const _0x533d08=_0xbe8437['map'](_0x529aab=>jt(_0x529aab,this[_0x57cd('0x4e')])),_0x8425fc=_0x3298f2['is']('range')?_0x3298f2:jt(_0x3298f2,this['_model']);if(_0x57cd('0xf8')===this[_0x57cd('0x2b')]){const _0x13c314=this[_0x57cd('0xb1')][_0x57cd('0x100')]('formatBlock',_0x578d0d,_0x57cd('0xde'));return this[_0x57cd('0x115')](()=>_0x13c314([_0x8425fc],_0x507201,_0x27e18c)),null;}_0x533d08['push'](_0x8425fc);let _0x58d41b=!0x0;for(const _0x329e1a of _0x533d08)if(!this[_0x57cd('0x5f')](_0x329e1a)){_0x58d41b=!0x1;break;}if(_0x58d41b&&_0x57cd('0x53')!==this['_trackFormatChanges']){const _0x5f4d41=this['_suggestionFactory'][_0x57cd('0x100')](_0x57cd('0x10'),_0x578d0d,_0x57cd('0xde'));return this[_0x57cd('0x115')](()=>_0x5f4d41([_0x8425fc],_0x507201,_0x27e18c)),null;}let _0x2c18a9=null,_0x703788=_0x8425fc['start'],_0x2ea52a=_0x8425fc[_0x57cd('0xa5')];for(const {suggestion:_0x9b2587,meta:_0x524ef0}of this[_0x57cd('0x138')](_0x8425fc,_0x57cd('0x10'))){if(!_0x524ef0['isOwn'])continue;if(_0x524ef0[_0x57cd('0x8b')]||_0x524ef0[_0x57cd('0x50')]||_0x524ef0[_0x57cd('0x139')])continue;if(_0x9b2587['data']['formatGroupId']!=_0x507201['formatGroupId'])continue;if(!Ot(_0x9b2587,_0x27e18c))continue;const _0xe38baa=_0x9b2587['getFirstRange']();if(_0x9b2587[_0x57cd('0x5e')]==_0x578d0d){if(_0xe38baa['containsRange'](_0x8425fc,!0x0))return null;_0x703788=_0x703788[_0x57cd('0x46')](_0xe38baa[_0x57cd('0x9a')])?_0x703788:_0xe38baa[_0x57cd('0x9a')],_0x2ea52a=_0x2ea52a[_0x57cd('0x3d')](_0xe38baa[_0x57cd('0xa5')])?_0x2ea52a:_0xe38baa[_0x57cd('0xa5')],_0x2c18a9?_0xe38baa[_0x57cd('0x9a')][_0x57cd('0x46')](_0x2c18a9['getFirstRange']()[_0x57cd('0x9a')])?(_0x2c18a9[_0x57cd('0xe2')](),_0x2c18a9=_0x9b2587):_0x9b2587[_0x57cd('0xe2')]():_0x2c18a9=_0x9b2587;}else{const _0x52d223=_0x8425fc[_0x57cd('0x8e')](_0xe38baa);this[_0x57cd('0x12')](_0x9b2587,_0x52d223);}}const _0x99c130=this[_0x57cd('0x6f')]['plugins'][_0x57cd('0x16')](_0x57cd('0xb8'))['me'],_0x3f5790=_0x4402c6(),_0xcae3ff=_0x99c130['id'];if(_0x2c18a9)return this[_0x57cd('0xd8')](_0x2c18a9,this[_0x57cd('0x4e')]['createRange'](_0x703788,_0x2ea52a)),_0x2c18a9;{const _0x5f0d4c=this['_setSuggestionData']({'id':_0x3f5790,'type':_0x57cd('0xf1')+_0x578d0d,'data':_0x507201,'createdAt':new Date(),'authorId':_0xcae3ff,'attributes':_0x27e18c});return this[_0x57cd('0x0')](_0x57cd('0xf1')+_0x578d0d,_0x3f5790,_0xcae3ff,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x703788,_0x2ea52a)),_0x5f0d4c;}}['markMultiRangeBlockFormat'](_0x57b835,_0x176af9,_0x1381a1=[],_0x180618=null,_0x16bbd9={}){_0x176af9[_0x57cd('0xef')]||(_0x176af9['formatGroupId']=_0x176af9['commandName']);const _0x17f67d=_0x57b835[0x0];_0x176af9[_0x57cd('0x7c')]=_0x17f67d['is'](_0x57cd('0x7')),_0x180618=_0x180618||Nt(_0x176af9);const _0x594e1c=_0x1381a1['map'](_0x226be2=>jt(_0x226be2,this['_model'])),_0x1b54fe=_0x17f67d['is'](_0x57cd('0x7'))?_0x57b835:_0x57b835['map'](_0x3f4960=>jt(_0x3f4960,this[_0x57cd('0x4e')]));if('never'===this['_trackFormatChanges']){const _0x197f0b=this[_0x57cd('0xb1')]['getSuggestionCallback'](_0x57cd('0x10'),_0x180618,_0x57cd('0xde'));return this[_0x57cd('0x115')](()=>_0x197f0b(_0x1b54fe,_0x176af9,_0x16bbd9)),null;}_0x594e1c[_0x57cd('0xa4')](..._0x1b54fe);let _0x3aff2c=!0x0;for(const _0x207022 of _0x594e1c)if(!this[_0x57cd('0x5f')](_0x207022)){_0x3aff2c=!0x1;break;}if(_0x3aff2c&&_0x57cd('0x53')!==this[_0x57cd('0x2b')]){const _0x430c8a=this[_0x57cd('0xb1')][_0x57cd('0x100')](_0x57cd('0x10'),_0x180618,_0x57cd('0xde'));return this[_0x57cd('0x115')](()=>_0x430c8a(_0x1b54fe,_0x176af9,_0x16bbd9)),null;}const _0x50d618=this[_0x57cd('0x6f')]['plugins'][_0x57cd('0x16')](_0x57cd('0xb8'))['me'];for(const _0x53fcf0 of this[_0x57cd('0xbf')]()){if(_0x53fcf0[_0x57cd('0x9c')]['id']!=_0x50d618['id'])continue;if(_0x57cd('0x10')!=_0x53fcf0[_0x57cd('0x24')]||_0x53fcf0[_0x57cd('0x82')]['formatGroupId']!=_0x176af9['formatGroupId'])continue;if(!Ot(_0x53fcf0,_0x16bbd9))continue;const _0x122bf2=_0x53fcf0[_0x57cd('0x5e')]==_0x180618;for(let _0x5696bc=0x0;_0x5696bc<_0x1b54fe['length'];_0x5696bc++){const _0x2dacf9=_0x1b54fe[_0x5696bc];for(const _0x4e423b of _0x53fcf0[_0x57cd('0xa6')]()){const _0x4ab386=_0x4e423b[_0x57cd('0x9f')]();if(_0x2dacf9[_0x57cd('0xdb')](_0x4ab386)){_0x122bf2?(_0x1b54fe[_0x57cd('0x84')](_0x5696bc,0x1),_0x5696bc--):_0x53fcf0[_0x57cd('0x77')](_0x4e423b[_0x57cd('0x1f')]);break;}}}}if(0x0==_0x1b54fe[_0x57cd('0x28')])return null;const _0x2202ce=this[_0x57cd('0xb1')]['getSuggestionCallback']('formatBlock',_0x180618,'join');for(const _0xb90fab of this[_0x57cd('0xbf')]())if(_0xb90fab[_0x57cd('0x9c')]['id']==_0x50d618['id']&&_0x57cd('0x10')==_0xb90fab[_0x57cd('0x24')]&&_0xb90fab['data'][_0x57cd('0xef')]==_0x176af9['formatGroupId']&&_0xb90fab[_0x57cd('0x5e')]==_0x180618&&Ot(_0xb90fab,_0x16bbd9)&&(_0x2202ce(_0xb90fab[_0x57cd('0xc2')](),_0x1b54fe)||_0x2202ce(_0x1b54fe,_0xb90fab[_0x57cd('0xc2')]()))){for(const _0x4e8922 of _0x1b54fe)_0xb90fab[_0x57cd('0x118')](_0x4e8922);return _0xb90fab;}const _0xfb279f=_0x4402c6(),_0x19b4b5=_0x50d618['id'],_0x2ac625=_0x57cd('0xf1')+_0x180618,_0x2653c4=this[_0x57cd('0xdf')]({'id':_0xfb279f,'type':_0x2ac625,'data':_0x176af9,'createdAt':new Date(),'authorId':_0x19b4b5,'attributes':_0x16bbd9});for(const _0x6b0ffb of _0x1b54fe)this[_0x57cd('0x0')](_0x2ac625,_0xfb279f,_0x19b4b5,_0x6b0ffb,_0x1f6f54[_0x57cd('0xc')]());return _0x2653c4;}['markDeletion'](_0x24c816,_0x4555a6=null,_0x42d377={}){if(_0x24c816[_0x57cd('0x59')])return null;const _0x1855ae=this[_0x57cd('0x6f')][_0x57cd('0x33')]['get'](_0x57cd('0xb8'))['me'],_0x15d7a7=new _0x56790a(_0x24c816[_0x57cd('0x9a')],_0x24c816[_0x57cd('0xa5')]);for(const {suggestion:_0x4b265d,meta:_0x24f19c}of this[_0x57cd('0x138')](_0x15d7a7,'insertion'))if(_0x24f19c[_0x57cd('0x4c')]&&!_0x24f19c[_0x57cd('0x8b')]){if(_0x4b265d[_0x57cd('0x52')]){const _0x2178c0=_0x4b265d[_0x57cd('0xc2')]()['filter'](_0x66ca5f=>_0x57cd('0xca')!=_0x66ca5f[_0x57cd('0x94')]['rootName']);_0x2178c0[_0x57cd('0x6c')](_0x316ed9=>_0x15d7a7['containsRange'](_0x316ed9,!0x0))&&_0x4b265d[_0x57cd('0x13b')]();if(_0x2178c0['some'](_0x4a90b4=>_0x4a90b4[_0x57cd('0xe1')](_0x15d7a7,!0x0))){const _0x5a7f55=this[_0x57cd('0xb1')][_0x57cd('0x100')](_0x57cd('0xdc'),_0x4555a6,_0x57cd('0xde'));return this[_0x57cd('0x115')](()=>_0x5a7f55([_0x15d7a7],null,_0x42d377)),null;}}else{const _0x149b0c=_0x15d7a7['getIntersection'](_0x4b265d[_0x57cd('0xa8')]());null!==_0x149b0c&&_0x4b265d[_0x57cd('0x17')]([_0x149b0c],null,_0x42d377);}}if(_0x15d7a7[_0x57cd('0xf7')](),_0x15d7a7[_0x57cd('0x59')]||_0x57cd('0xca')==_0x15d7a7[_0x57cd('0x94')][_0x57cd('0xaa')])return null;let _0x310b26=null,_0x9fcf5e=_0x15d7a7[_0x57cd('0x9a')],_0x2f17c9=_0x15d7a7[_0x57cd('0xa5')];const _0x38725a=this['_findSuggestions'](_0x15d7a7,'deletion');for(const {suggestion:_0x5ae020,meta:_0x4705e5}of _0x38725a){const _0x11dbe6=this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x9fcf5e,_0x2f17c9);if(_0x4705e5[_0x57cd('0x4c')]&&(this[_0x57cd('0xcc')]||!_0x4705e5[_0x57cd('0x50')]&&!_0x4705e5['isInsideObject'])){if(_0x5ae020[_0x57cd('0x52')]){if(!Ot(_0x5ae020,_0x42d377))continue;let _0x59b7c4=!0x0;for(const _0x1a1516 of _0x5ae020[_0x57cd('0xc2')]()){if(_0x1a1516[_0x57cd('0xe1')](_0x11dbe6,!0x0))return _0x5ae020;_0x11dbe6['containsRange'](_0x1a1516)||(_0x59b7c4=!0x1);}_0x59b7c4&&_0x5ae020['discard']();}else{const _0x11f187=_0x5ae020[_0x57cd('0xa8')]();if(_0x11f187[_0x57cd('0xe1')](_0x11dbe6,!0x0))return _0x5ae020;if(!Ot(_0x5ae020,_0x42d377)){_0x11dbe6[_0x57cd('0xe1')](_0x11f187)?_0x5ae020[_0x57cd('0xe2')]():_0x11f187[_0x57cd('0x7d')](_0x9fcf5e)?_0x9fcf5e=_0x11f187['end']:_0x11f187['containsPosition'](_0x2f17c9)&&(_0x2f17c9=_0x11f187[_0x57cd('0x9a')]);continue;}_0x9fcf5e=_0x9fcf5e['isBefore'](_0x11f187['start'])?_0x9fcf5e:_0x11f187[_0x57cd('0x9a')],_0x2f17c9=_0x2f17c9['isAfter'](_0x11f187[_0x57cd('0xa5')])?_0x2f17c9:_0x11f187[_0x57cd('0xa5')],_0x42d377=Object[_0x57cd('0x126')]({},_0x5ae020[_0x57cd('0x72')]),_0x310b26?_0x11f187[_0x57cd('0x9a')]['isBefore'](_0x310b26[_0x57cd('0xa8')]()[_0x57cd('0x9a')])?(_0x310b26['removeMarkers'](),_0x310b26=_0x5ae020):_0x5ae020['removeMarkers']():_0x310b26=_0x5ae020;}}}if(_0x310b26)return this[_0x57cd('0xd8')](_0x310b26,this[_0x57cd('0x4e')]['createRange'](_0x9fcf5e,_0x2f17c9)),_0x310b26;{const _0x5bc8ec=_0x4402c6(),_0x52f56f=this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x9fcf5e,_0x2f17c9),_0x405eaf=_0x1855ae['id'],_0x14f4f6=_0x4555a6?_0x57cd('0x109')+_0x4555a6:_0x57cd('0xdc'),_0x541426=this[_0x57cd('0xdf')]({'id':_0x5bc8ec,'type':_0x14f4f6,'createdAt':new Date(),'authorId':_0x405eaf,'attributes':_0x42d377});return this[_0x57cd('0x0')](_0x14f4f6,_0x5bc8ec,_0x405eaf,_0x52f56f),_0x541426;}}[_0x57cd('0x114')](_0x5be7d7,_0x2f6c2d=_0x57cd('0xf2'),_0x332d12={}){const _0x5f5697=this[_0x57cd('0x6f')][_0x57cd('0x33')][_0x57cd('0x16')](_0x57cd('0xb8'))['me'],_0x5ea0e9=_0x5be7d7[_0x57cd('0x42')](_0x412962=>new _0x56790a(_0x412962['start'],_0x412962[_0x57cd('0xa5')])),_0x5bac9a=new Set();for(const {suggestion:_0x50ee53,meta:_0x5021f1}of this[_0x57cd('0x138')](_0x5ea0e9,_0x57cd('0x99')))_0x5021f1['isOwn']&&!_0x5021f1['isNextTo']&&_0x5bac9a[_0x57cd('0x1')](_0x50ee53);for(const _0x2493cb of _0x5bac9a)if(_0x2493cb['isMultiRange']){const _0x2d5ff6=_0x2493cb[_0x57cd('0xc2')]();(!_0x2493cb['attributes']||!_0x2493cb[_0x57cd('0x72')][_0x57cd('0xc4')])&&(_0x2d5ff6[_0x57cd('0x6c')](_0x387629=>_0x5ea0e9[_0x57cd('0x35')](_0x2da585=>_0x2da585['containsRange'](_0x387629,!0x0)))&&_0x2493cb[_0x57cd('0x13b')]());if(_0x5ea0e9[_0x57cd('0x6c')](_0x5e09dd=>_0x2d5ff6[_0x57cd('0x35')](_0x302174=>_0x302174[_0x57cd('0xe1')](_0x5e09dd,!0x0)))){const _0x550a91=this['_suggestionFactory'][_0x57cd('0x100')](_0x57cd('0xdc'),_0x2f6c2d,_0x57cd('0xde'));return this['forceDefaultExecution'](()=>_0x550a91(_0x5be7d7,null,_0x332d12)),null;}}else{const _0x21b93f=_0x2493cb[_0x57cd('0xa8')]();_0x5ea0e9[_0x57cd('0x35')](_0x378626=>_0x378626[_0x57cd('0xe1')](_0x21b93f,!0x0))&&_0x2493cb[_0x57cd('0x13b')]();if(_0x5ea0e9['every'](_0x5f9bee=>_0x21b93f[_0x57cd('0xe1')](_0x5f9bee,!0x0))){const _0x407436=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f6c2d,_0x57cd('0xde'));return this['forceDefaultExecution'](()=>_0x407436(_0x5ea0e9,null,_0x332d12)),null;}}const _0x40b027=this[_0x57cd('0xb1')][_0x57cd('0x100')](_0x57cd('0xdc'),_0x2f6c2d,'join');let _0xe12e70=null;for(const _0x25c03c of this['getSuggestions']())if(_0x25c03c[_0x57cd('0x9c')]['id']==_0x5f5697['id']&&_0x25c03c[_0x57cd('0xab')]&&_0x57cd('0xdc')==_0x25c03c[_0x57cd('0x24')]&&_0x25c03c[_0x57cd('0x5e')]==_0x2f6c2d&&Ot(_0x25c03c,_0x332d12)&&(_0x40b027(_0x25c03c[_0x57cd('0xc2')](),_0x5ea0e9)||_0x40b027(_0x5ea0e9,_0x25c03c['getRanges']()))){if(_0xe12e70){if(_0x25c03c['commentThread']&&_0x25c03c[_0x57cd('0x65')]['length'])continue;for(const _0x45ad3e of _0x25c03c[_0x57cd('0xc2')]())_0xe12e70[_0x57cd('0x54')](_0x45ad3e)||_0xe12e70['addRange'](_0x45ad3e);_0x25c03c['removeMarkers']();}else{_0xe12e70=_0x25c03c;for(const _0xa6f792 of _0x5ea0e9)_0x25c03c[_0x57cd('0x54')](_0xa6f792)||_0x25c03c[_0x57cd('0x118')](_0xa6f792);}}if(_0xe12e70)return _0xe12e70;_0x5bac9a['clear']();for(const {suggestion:_0x2d5431,meta:_0x35ea59}of this['_findSuggestions'](_0x5ea0e9,_0x57cd('0xdc')))_0x35ea59[_0x57cd('0x4c')]&&(this[_0x57cd('0xcc')]||!_0x35ea59[_0x57cd('0x50')]&&!_0x35ea59['isInsideObject'])&&Ot(_0x2d5431,_0x332d12)&&_0x5bac9a['add'](_0x2d5431);for(const _0x3ec5d3 of _0x5bac9a){const _0x118758=_0x3ec5d3['getRanges']();if(!_0x332d12||!_0x332d12[_0x57cd('0xc4')]){if(_0x5ea0e9[_0x57cd('0x6c')](_0x118abb=>_0x118758[_0x57cd('0x35')](_0x44a3d9=>_0x44a3d9['containsRange'](_0x118abb,!0x0))))return _0x3ec5d3;}(!_0x3ec5d3[_0x57cd('0x72')]||!_0x3ec5d3[_0x57cd('0x72')][_0x57cd('0xc4')])&&(_0x118758[_0x57cd('0x6c')](_0x34d1ca=>_0x5ea0e9['some'](_0x4e3037=>_0x4e3037[_0x57cd('0xe1')](_0x34d1ca,!0x0)))&&_0x3ec5d3[_0x57cd('0x13b')]());}const _0x53a0f9=_0x4402c6(),_0x1a30bf=_0x5f5697['id'],_0x1217c9=_0x57cd('0x109')+_0x2f6c2d,_0x1f40fe=this[_0x57cd('0xdf')]({'id':_0x53a0f9,'type':_0x1217c9,'createdAt':new Date(),'authorId':_0x1a30bf,'attributes':_0x332d12});for(const _0x30f8a2 of _0x5ea0e9)_0x30f8a2[_0x57cd('0xf7')](),_0x30f8a2[_0x57cd('0x59')]||_0x57cd('0xca')==_0x30f8a2[_0x57cd('0x94')]['rootName']||this[_0x57cd('0x0')](_0x1217c9,_0x53a0f9,_0x1a30bf,_0x30f8a2,_0x1f6f54[_0x57cd('0xc')]());return _0x1f40fe;}[_0x57cd('0xd8')](_0x3bda25,_0x398eb7){const _0x4e8a0c=_0x3bda25[_0x57cd('0x80')]();this['_model'][_0x57cd('0x2e')](_0x579bcb=>{_0x579bcb[_0x57cd('0x8a')](_0x4e8a0c,{'range':_0x398eb7});});}['_addThreadToSuggestion'](_0x2fe6aa){const _0x4484b0=_0x2fe6aa['id'],_0x204c67=this[_0x57cd('0x6f')][_0x57cd('0x136')][_0x57cd('0x16')](_0x57cd('0x87'));this['_commentsRepository']['hasCommentThread'](_0x4484b0)||this[_0x57cd('0x11f')][_0x57cd('0x8d')]({'channelId':_0x204c67,'threadId':_0x4484b0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2dee70=this[_0x57cd('0x11f')][_0x57cd('0x10f')](_0x4484b0);_0x2dee70['unbind'](_0x57cd('0x34')),_0x2dee70[_0x57cd('0x34')]=!0x1,_0x2fe6aa['commentThread']=_0x2dee70;}[_0x57cd('0x3c')](_0x37831d,_0x1f381a,_0xeee8e2,_0x41887c){if(_0x37831d[_0x57cd('0x24')]!=_0x1f381a||_0x37831d[_0x57cd('0x5e')]!=_0xeee8e2||_0x37831d[_0x57cd('0x37')]['id']!=_0x41887c)throw this[_0x57cd('0x6f')]['enableReadOnlyMode'](_0x57cd('0xa0')),new _0x101948(_0x57cd('0xa0'),this);}[_0x57cd('0x12')](_0x40a8e3,_0x51697b){const _0x1a748a=_0x40a8e3['getFirstRange']();if(_0x51697b[_0x57cd('0xdb')](_0x1a748a))_0x40a8e3['removeMarkers']();else{if(_0x1a748a[_0x57cd('0xe1')](_0x51697b)){const _0x1f19be=this[_0x57cd('0x4e')][_0x57cd('0xa7')](_0x51697b[_0x57cd('0x9a')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x40a8e3,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x1a748a[_0x57cd('0x9a')],_0x1f19be));const _0x248164=_0x4402c6(),_0x484490=_0x40a8e3[_0x57cd('0x37')]['id'],_0x3eed42=_0x40a8e3[_0x57cd('0x24')]+':'+_0x40a8e3[_0x57cd('0x5e')];this['_setSuggestionData']({'id':_0x248164,'type':_0x3eed42,'createdAt':new Date(),'authorId':_0x484490,'data':_0x40a8e3[_0x57cd('0x82')],'attributes':_0x40a8e3[_0x57cd('0x72')]});const _0x2443da=this[_0x57cd('0x4e')][_0x57cd('0xa7')](_0x51697b[_0x57cd('0xa5')][_0x57cd('0x96')],'after'),_0x19e50c=this[_0x57cd('0x4e')]['createRange'](_0x2443da,_0x1a748a[_0x57cd('0xa5')]);this[_0x57cd('0x0')](_0x3eed42,_0x248164,_0x484490,_0x19e50c);}else{if(_0x1a748a[_0x57cd('0x7d')](_0x51697b[_0x57cd('0x9a')])){const _0x899d3e=this[_0x57cd('0x4e')][_0x57cd('0xa7')](_0x51697b[_0x57cd('0x9a')][_0x57cd('0xc0')],_0x57cd('0xa5'));this[_0x57cd('0xd8')](_0x40a8e3,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x1a748a[_0x57cd('0x9a')],_0x899d3e));}else{const _0x2aa7aa=this[_0x57cd('0x4e')]['createPositionAt'](_0x51697b['end'][_0x57cd('0x96')],_0x57cd('0xfc'));this[_0x57cd('0xd8')](_0x40a8e3,this[_0x57cd('0x4e')]['createRange'](_0x2aa7aa,_0x1a748a[_0x57cd('0xa5')]));}}}}['_rangeIsInLocalUserInsertion'](_0x567e26){for(const {suggestion:_0x18d12d,meta:_0x29a65f}of this[_0x57cd('0x138')](_0x567e26,_0x57cd('0x99'))){if(!_0x29a65f[_0x57cd('0x4c')])continue;const _0x401d78=_0x18d12d[_0x57cd('0xc2')]();for(const _0x4b4f2d of _0x401d78)if(!_0x567e26[_0x57cd('0xec')](_0x4b4f2d)['length'])return!0x0;}return!0x1;}[_0x57cd('0xe5')](_0xaf22a3){const _0x26dd19=this[_0x57cd('0x6f')][_0x57cd('0x33')]['get'](_0x57cd('0xb8'))[_0x57cd('0xf0')](_0xaf22a3);if(!_0x26dd19)throw new _0x101948('track-changes-user-not-found',this);return _0x26dd19;}['_getExternalAuthor'](_0x397326){const _0x30bdd9=this[_0x57cd('0x6f')][_0x57cd('0x33')][_0x57cd('0x16')](_0x57cd('0xb8')),_0x558761=_0x31373a(_0x57cd('0xb4')+_0x397326),_0x2d6fda=_0x30bdd9[_0x57cd('0xf0')](_0x558761);return _0x2d6fda||_0x30bdd9[_0x57cd('0x6a')]({'id':_0x558761,'name':_0x397326});}[_0x57cd('0x11c')](_0x488bc7,_0x5947be,_0x3e7e71,_0x19c621,_0x5327c1){const _0x370355=this[_0x57cd('0xe5')](_0x19c621),_0x4467ed=this[_0x57cd('0xb1')]['buildSuggestion'](_0x488bc7,_0x5947be,_0x3e7e71,_0x370355,_0x5327c1,_0x42f3cc=>this[_0x57cd('0xff')](_0x3e7e71,{'attributes':_0x42f3cc}));return this[_0x57cd('0xd1')](_0x4467ed,_0x57cd('0xde'),()=>{this[_0x57cd('0xff')](_0x3e7e71,{'state':_0x57cd('0x3e')});},{'priority':_0x57cd('0x12c')}),this[_0x57cd('0xd1')](_0x4467ed,_0x57cd('0x13b'),()=>{this[_0x57cd('0xff')](_0x3e7e71,{'state':_0x57cd('0xa3')});},{'priority':_0x57cd('0x12c')}),this['_suggestions']['set'](_0x3e7e71,_0x4467ed),this['_suggestionState'][_0x57cd('0xd2')](_0x4467ed,'notReady'),_0x4467ed;}[_0x57cd('0xa2')](_0x2e1ee6){const _0x34193b=_0x2e1ee6[_0x57cd('0x10d')](':');return{'group':_0x34193b[0x0],'type':_0x34193b[0x1],'subType':_0x34193b[_0x57cd('0x28')]>=0x5?_0x34193b[0x2]:null,'id':_0x34193b[_0x57cd('0x28')]<0x5?_0x34193b[0x2]:_0x34193b[0x3],'authorId':_0x34193b[_0x57cd('0x28')]<0x5?_0x34193b[0x3]:_0x34193b[0x4],'markerCount':0x6==_0x34193b[_0x57cd('0x28')]?_0x34193b[0x5]:null};}[_0x57cd('0x101')](_0x34942d,_0x3870c6,_0x46c6c3){const _0x2fe60c=_0x34942d[_0x57cd('0xa8')](),_0x54b2df=_0x2fe60c[_0x57cd('0x9a')],_0x36e29e=_0x2fe60c['end'];this['_setSuggestionRange'](_0x34942d,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x54b2df,_0x3870c6));const _0x56404a=_0x4402c6(),_0x5b52ca=_0x34942d[_0x57cd('0x37')]['id'],_0x1bf37b=_0x34942d[_0x57cd('0x24')]+(_0x34942d[_0x57cd('0x5e')]?':'+_0x34942d[_0x57cd('0x5e')]:'');this[_0x57cd('0xdf')]({'id':_0x56404a,'type':_0x1bf37b,'createdAt':new Date(),'authorId':_0x5b52ca,'originalSuggestionId':_0x34942d['id'],'attributes':_0x34942d[_0x57cd('0x72')],'data':_0x34942d[_0x57cd('0x82')]}),_0x57cd('0x10')==_0x34942d[_0x57cd('0x24')]&&(_0x46c6c3=this['_model']['createPositionBefore'](_0x46c6c3[_0x57cd('0x96')])),this[_0x57cd('0x0')](_0x1bf37b,_0x56404a,_0x5b52ca,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x46c6c3,_0x36e29e));}['_findSuggestions'](_0x2453df,_0x57978e=null){const _0x540811=[],_0xad328d=this['editor']['plugins'][_0x57cd('0x16')](_0x57cd('0xb8'))['me'];Array[_0x57cd('0x117')](_0x2453df)||(_0x2453df=[_0x2453df]);for(const _0x347bd7 of this['getSuggestions']()){if(!_0x347bd7[_0x57cd('0xab')])continue;if(_0x57978e&&_0x347bd7[_0x57cd('0x24')]!=_0x57978e)continue;let _0xea266=!0x1;for(const _0x5eb7aa of _0x347bd7['getRanges']()){for(const _0x33b7ab of _0x2453df){const _0x30d291=_0x33b7ab[_0x57cd('0x9a')][_0x57cd('0xdb')](_0x5eb7aa[_0x57cd('0xa5')])||_0x33b7ab[_0x57cd('0xa5')][_0x57cd('0xdb')](_0x5eb7aa['start']);if(_0x30d291||_0x33b7ab[_0x57cd('0x8e')](_0x5eb7aa)){const _0x129bf0=_0x33b7ab[_0x57cd('0xe1')](_0x5eb7aa)&&_t(this[_0x57cd('0x4e')][_0x57cd('0x7b')],_0x5eb7aa[_0x57cd('0x9a')],_0x33b7ab),_0xb12794=_0x5eb7aa[_0x57cd('0xe1')](_0x33b7ab)&&_t(this[_0x57cd('0x4e')][_0x57cd('0x7b')],_0x33b7ab[_0x57cd('0x9a')],_0x5eb7aa);_0x540811['push']({'suggestion':_0x347bd7,'meta':{'isOwn':_0xad328d==_0x347bd7[_0x57cd('0x9c')],'isNextTo':_0x30d291,'isInsideObject':_0x129bf0,'containsRangeInObject':_0xb12794}}),_0xea266=!0x0;break;}}if(_0xea266)break;}}return _0x540811;}[_0x57cd('0x0')](_0x425686,_0x369ffd,_0x1a038f,_0x56a858,_0x5d1dde){this[_0x57cd('0x4e')]['change'](_0x468e68=>{let _0x341652='suggestion:'+_0x425686+':'+_0x369ffd+':'+_0x1a038f;_0x5d1dde&&(_0x341652=_0x341652+':'+_0x5d1dde),_0x468e68['addMarker'](_0x341652,{'range':_0x56a858,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x95a759){const _0x46f5f3=_0x95a759[_0x57cd('0xe3')],_0x2d186c=_0x95a759['next'];_0x95a759[_0x57cd('0xe3')]=null,null!=_0x46f5f3&&(_0x46f5f3['next']=null),_0x95a759[_0x57cd('0x3')]=null,null!=_0x2d186c&&(_0x2d186c['previous']=null),_0x57cd('0xc3')==this[_0x57cd('0xbc')][_0x57cd('0x16')](_0x95a759)&&(this[_0x57cd('0xbc')]['set'](_0x95a759,_0x57cd('0x63')),this[_0x57cd('0x41')]('suggestionUnloaded',_0x95a759,_0x46f5f3,_0x2d186c));}[_0x57cd('0xdf')](_0x2bf901){const _0x379aa0=_0x2bf901['id'],_0x25f511=this[_0x57cd('0xbd')](_0x2bf901);if(this[_0x57cd('0x48')]&&this['_adapter'][_0x57cd('0x5')]){const _0x4a1dc6=this['editor'][_0x57cd('0x33')][_0x57cd('0x16')]('PendingActions'),_0x57e48b=_0x25f511[_0x57cd('0xc9')],_0x473324=_0x25f511['subType']?_0x25f511['type']+':'+_0x25f511[_0x57cd('0x5e')]:_0x25f511[_0x57cd('0x24')],_0x264ef1=this[_0x57cd('0x6f')]['locale'],_0x41a743=_0x4a1dc6['add'](_0x4f6bc8(_0x264ef1,_0x57cd('0x81'))),_0xd1f64c={'id':_0x379aa0,'type':_0x473324,'hasComments':_0x57e48b,'data':_0x2bf901['data']||null,'originalSuggestionId':_0x2bf901[_0x57cd('0x7f')]||null,'attributes':_0x25f511[_0x57cd('0x72')]};this[_0x57cd('0x48')][_0x57cd('0x5')](_0xd1f64c)['then'](_0x4835b7=>{_0x25f511['_saved']=!0x0,_0x4a1dc6['remove'](_0x41a743),_0x4835b7&&_0x4835b7[_0x57cd('0x131')]&&(this['_suggestions'][_0x57cd('0x16')](_0x379aa0)[_0x57cd('0x131')]=_0x4835b7['createdAt']);})[_0x57cd('0x62')](_0x35d7a8=>{throw _0x3f59c6(_0x57cd('0x13')),this[_0x57cd('0x6f')][_0x57cd('0x106')][_0x57cd('0x86')]({'isUndoable':!0x1},()=>{_0x25f511[_0x57cd('0x13b')]();}),_0x25f511[_0x57cd('0xd0')](),this[_0x57cd('0xcb')]['delete'](_0x25f511['id']),this[_0x57cd('0xbc')][_0x57cd('0x69')](_0x25f511),_0x35d7a8;});}return _0x25f511;}[_0x57cd('0xff')](_0x45eedd,_0x40b62e){const _0x4719bb=this[_0x57cd('0x6f')][_0x57cd('0x33')][_0x57cd('0x16')](_0x57cd('0xee')),_0x3f3cca=this['getSuggestion'](_0x45eedd);if(this[_0x57cd('0x48')]&&this[_0x57cd('0x48')]['updateSuggestion']){if(_0x3f3cca[_0x57cd('0x137')]){const _0x43b54b=_0x4719bb[_0x57cd('0x1')](_0x4f6bc8(this[_0x57cd('0x6f')]['locale'],_0x57cd('0x81')));this[_0x57cd('0x48')]['updateSuggestion'](_0x45eedd,_0x40b62e)[_0x57cd('0x5d')](()=>{_0x4719bb[_0x57cd('0x108')](_0x43b54b);});}else _0x3f3cca['on'](_0x57cd('0x19'),()=>{this[_0x57cd('0xff')](_0x45eedd,_0x40b62e);});}}['_getSuggestionData'](_0x29c580){if(!this[_0x57cd('0x48')]||!this[_0x57cd('0x48')][_0x57cd('0x88')])throw new _0x101948(_0x57cd('0x30'),this);return this[_0x57cd('0x48')][_0x57cd('0x88')](_0x29c580);}['_handleNewSuggestionMarker'](_0x23175d){const {id:_0xe82368,type:_0x4a51f1,subType:_0x16da5b,authorId:_0x20f738}=this[_0x57cd('0xa2')](_0x23175d),_0x55269f=this[_0x57cd('0xcb')][_0x57cd('0x16')](_0xe82368)||this[_0x57cd('0x11c')](_0x4a51f1,_0x16da5b,_0xe82368,_0x20f738,{});switch(this[_0x57cd('0x3c')](_0x55269f,_0x4a51f1,_0x16da5b,_0x20f738),this[_0x57cd('0xbc')][_0x57cd('0x16')](_0x55269f)){case _0x57cd('0x5a'):this[_0x57cd('0x11b')](_0xe82368)[_0x57cd('0x5d')](_0x367e16=>{let _0x184ebe=Promise[_0x57cd('0xa1')]();_0x367e16['hasComments']&&(_0x184ebe=this[_0x57cd('0x11f')][_0x57cd('0x9e')]({'channelId':this[_0x57cd('0x6f')]['config'][_0x57cd('0x16')](_0x57cd('0x87')),'threadId':_0xe82368})),_0x184ebe[_0x57cd('0x5d')](()=>{this['addSuggestionData'](_0x367e16)[_0x57cd('0x137')]=!0x0;});}),this[_0x57cd('0xbc')][_0x57cd('0xd2')](_0x55269f,_0x57cd('0xf5'));break;case'removed':this[_0x57cd('0xff')](_0xe82368,{'state':_0x57cd('0x79')});case _0x57cd('0x4f'):this[_0x57cd('0xbc')][_0x57cd('0xd2')](_0x55269f,_0x57cd('0xc3')),this[_0x57cd('0x41')](_0x57cd('0xa'),_0x55269f);break;case _0x57cd('0xc3'):this['fire'](_0x57cd('0xe0'),_0x55269f);}return _0x55269f[_0x57cd('0xdd')](_0x23175d),_0x55269f;}[_0x57cd('0x104')](_0x49260e){const _0x468498=Array['from'](_0x49260e)['filter'](_0x3146a8=>!_0x3146a8[_0x57cd('0x52')]),_0x15a04d=this[_0x57cd('0xbf')]({'skipNotAttached':!0x0})[_0x57cd('0xeb')](_0x11b0b5=>!_0x11b0b5[_0x57cd('0x52')]),_0x349980=_0x15a04d[_0x57cd('0xeb')](_0x5bc49a=>!_0x49260e['has'](_0x5bc49a)),_0xf4dac2=new Map(_0x15a04d[_0x57cd('0x42')](_0x3873d5=>[_0x3873d5,this[_0x57cd('0xb1')][_0x57cd('0x100')](_0x3873d5[_0x57cd('0x24')],_0x3873d5[_0x57cd('0x5e')],_0x57cd('0x122'))])),_0xc22613=new Map(_0x15a04d[_0x57cd('0x42')](_0x43895f=>[_0x43895f,_0x43895f[_0x57cd('0xa8')]()])),_0x446a9c=new Set(),_0x2dacde=new Set();for(let _0x70ca00=0x0;_0x70ca00<_0x468498[_0x57cd('0x28')];_0x70ca00++)_0x418407(_0x468498[_0x70ca00],_0x468498,_0x70ca00+0x1);for(let _0x2b708d=0x0;_0x2b708d<_0x468498[_0x57cd('0x28')];_0x2b708d++)_0x418407(_0x468498[_0x2b708d],_0x349980,0x0);for(let _0x5687cc=0x0;_0x5687cc<_0x468498[_0x57cd('0x28')];_0x5687cc++){const _0x11ab37=_0x468498[_0x5687cc];!_0x2dacde[_0x57cd('0xc5')](_0x11ab37)&&_0x11ab37[_0x57cd('0xe3')]&&(_0x11ab37[_0x57cd('0xe3')][_0x57cd('0x3')]===_0x11ab37&&(_0x11ab37['previous'][_0x57cd('0x3')]=null),_0x11ab37[_0x57cd('0xe3')]=null),!_0x446a9c['has'](_0x11ab37)&&_0x11ab37[_0x57cd('0x3')]&&(_0x11ab37['next'][_0x57cd('0xe3')]===_0x11ab37&&(_0x11ab37['next'][_0x57cd('0xe3')]=null),_0x11ab37[_0x57cd('0x3')]=null);}function _0x418407(_0x3706c4,_0x4e59b1,_0x122579){for(let _0x1cdf38=_0x122579;_0x1cdf38<_0x4e59b1[_0x57cd('0x28')];_0x1cdf38++){const _0x431e16=_0xb8c291(_0x3706c4,_0x4e59b1[_0x1cdf38]);_0x431e16&&(_0x431e16[0x0][_0x57cd('0x3')]=_0x431e16[0x1],_0x431e16[0x1][_0x57cd('0xe3')]=_0x431e16[0x0],_0x446a9c[_0x57cd('0x1')](_0x431e16[0x0]),_0x2dacde['add'](_0x431e16[0x1]));}}function _0xb8c291(_0x3c3309,_0x4126b4){if(_0x3c3309['author']['id']!==_0x4126b4['author']['id'])return null;const _0x4955e1=_0xf4dac2[_0x57cd('0x16')](_0x3c3309)(_0x3c3309,_0x4126b4,_0xc22613[_0x57cd('0x16')](_0x3c3309),_0xc22613[_0x57cd('0x16')](_0x4126b4));if(!_0x4955e1)return null;return _0xf4dac2[_0x57cd('0x16')](_0x4126b4)(_0x3c3309,_0x4126b4,_0xc22613[_0x57cd('0x16')](_0x3c3309),_0xc22613[_0x57cd('0x16')](_0x4126b4))?_0x4955e1[0x1]['commentThread']&&_0x4955e1[0x1][_0x57cd('0x65')][_0x57cd('0x28')]?null:_0x4955e1:null;}}[_0x57cd('0x74')](_0x167919){const _0x35bd76=Array['from'](_0x167919),_0xed2b87=this[_0x57cd('0xbf')]({'skipNotAttached':!0x0}),_0x20b097=_0xed2b87[_0x57cd('0xeb')](_0x39a789=>!_0x167919['has'](_0x39a789)),_0x3a7964=new Map(_0x35bd76[_0x57cd('0x42')](_0x3be197=>[_0x3be197,this[_0x57cd('0xb1')][_0x57cd('0x100')](_0x3be197[_0x57cd('0x24')],_0x3be197[_0x57cd('0x5e')],'join')])),_0x958b70=new Map(_0xed2b87['map'](_0x588462=>[_0x588462,_0x588462[_0x57cd('0xc2')]()]));for(let _0x509135=0x0;_0x509135<_0x35bd76[_0x57cd('0x28')];_0x509135++){if(_0x3bb6db(this,_0x35bd76[_0x509135],_0x35bd76,_0x509135+0x1))return!0x0;}for(let _0x2ac1c4=0x0;_0x2ac1c4<_0x35bd76[_0x57cd('0x28')];_0x2ac1c4++){if(_0x3bb6db(this,_0x35bd76[_0x2ac1c4],_0x20b097,0x0))return!0x0;}return!0x1;function _0x3bb6db(_0x106754,_0x22be68,_0x13442a,_0x3d8973){for(let _0x5055ad=_0x3d8973;_0x5055ad<_0x13442a[_0x57cd('0x28')];_0x5055ad++){const _0x25c5fd=_0x13442a[_0x5055ad];if(_0x25c5fd[_0x57cd('0x24')]!==_0x22be68[_0x57cd('0x24')]||_0x25c5fd['author']['id']!==_0x22be68[_0x57cd('0x9c')]['id']||_0x25c5fd['subType']!==_0x22be68['subType'])continue;if(!Ut(_0x22be68,_0x25c5fd))continue;const _0x28281d=_0x3a7964[_0x57cd('0x16')](_0x22be68),_0xdeff1e=_0x958b70[_0x57cd('0x16')](_0x22be68),_0x78866b=_0x958b70[_0x57cd('0x16')](_0x25c5fd),_0xed8fca=_0x22be68[_0x57cd('0x65')]&&_0x22be68[_0x57cd('0x65')][_0x57cd('0x28')],_0x1f37ae=_0x25c5fd[_0x57cd('0x65')]&&_0x25c5fd['commentThread'][_0x57cd('0x28')];if(!_0xed8fca&&_0x28281d(_0x78866b,_0xdeff1e))return _0x106754['_joinSuggestions'](_0x25c5fd,_0x22be68),_0x958b70[_0x57cd('0x69')](_0x22be68),!0x0;if(!_0x1f37ae&&_0x28281d(_0xdeff1e,_0x78866b))return _0x106754[_0x57cd('0x8c')](_0x22be68,_0x25c5fd),_0x958b70['delete'](_0x25c5fd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1b80f3,_0x523e10){if(_0x1b80f3[_0x57cd('0x52')])for(const _0x166e79 of _0x523e10[_0x57cd('0xc2')]())_0x1b80f3['addRange'](_0x166e79);else{const _0x1c2b72=_0x523e10[_0x57cd('0xa8')]()[_0x57cd('0xa5')];this[_0x57cd('0xd8')](_0x1b80f3,this[_0x57cd('0x4e')][_0x57cd('0x125')](_0x1b80f3['getFirstRange']()['start'],_0x1c2b72));}_0x523e10[_0x57cd('0xe2')]();}}class Bt{constructor(_0x172c23){this[_0x57cd('0x13a')]=_0x172c23,this[_0x57cd('0x4e')]=_0x172c23[_0x57cd('0x106')],this[_0x57cd('0x4b')]=new Map(),this[_0x57cd('0xfd')]=new Map(),this[_0x57cd('0x105')]();}[_0x57cd('0xc7')](_0xea44f0,_0x24d89a,_0x2c9a49,_0x454223,_0x57debc,_0x41ede7){return new _0x1f6f54(this[_0x57cd('0x4e')],{'type':_0xea44f0,'subType':_0x24d89a,'id':_0x2c9a49,'author':_0x454223,'creator':_0x454223,'attributes':_0x57debc,'onAttributesChange':_0x41ede7,'onAccept':(..._0xce3749)=>this[_0x57cd('0x100')](_0xea44f0,_0x24d89a,_0x57cd('0xde'))(..._0xce3749),'onDiscard':(..._0x279c02)=>this[_0x57cd('0x100')](_0xea44f0,_0x24d89a,_0x57cd('0x13b'))(..._0x279c02)});}[_0x57cd('0x11d')](_0x43cf9c,_0x45d50b,_0x5f3340,_0x15afd9){const _0x27de00=_0x43cf9c+':'+_0x45d50b+':'+_0x5f3340;this['_customCallbacks'][_0x57cd('0xd2')](_0x27de00,_0x15afd9);}[_0x57cd('0x100')](_0x403e84,_0x7effc6,_0x32ae98){const _0x507000=_0x403e84+':'+_0x7effc6+':'+_0x32ae98;return this[_0x57cd('0x4b')][_0x57cd('0x16')](_0x507000)||this['_defaultCallbacks']['get'](_0x403e84+':'+_0x32ae98);}[_0x57cd('0x105')](){const _0x2753c7=()=>!0x1,_0x2bff2b=_0xa41bfc=>{_0xa41bfc[_0x57cd('0xba')]((_0x51f859,_0x878304)=>_0x51f859[_0x57cd('0x9a')]['isBefore'](_0x878304[_0x57cd('0x9a')])?0x1:-0x1),this[_0x57cd('0x4e')][_0x57cd('0x2e')](_0x2ce0e7=>{for(const _0x341b95 of _0xa41bfc){let _0x26063c;_0x26063c=_0x341b95['end']['isAtEnd']&&_0x341b95[_0x57cd('0xa5')][_0x57cd('0x96')]==_0x341b95['start'][_0x57cd('0xcf')]?_0x2ce0e7[_0x57cd('0x107')](_0x341b95[_0x57cd('0x9a')][_0x57cd('0xcf')],'on'):_0x2ce0e7[_0x57cd('0x107')](_0x341b95),this[_0x57cd('0x4e')]['deleteContent'](_0x26063c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59b6de=(_0x59e0ab,_0x2b20b5)=>{this[_0x57cd('0x4e')][_0x57cd('0x2e')](_0x3ea829=>{const {commandName:_0xe9adca,commandParams:_0xcf6649=[]}=_0x2b20b5,_0x513744=_0x59e0ab[_0x57cd('0x42')](_0x533dc6=>(Mt(_0x533dc6)&&(_0x533dc6=this[_0x57cd('0x4e')]['createRange'](_0x533dc6[_0x57cd('0xa5')])),_0x533dc6))[_0x57cd('0xeb')](_0x104f20=>_0x57cd('0xca')!==_0x104f20[_0x57cd('0x94')][_0x57cd('0xaa')]);if(_0x513744[_0x57cd('0x28')]<0x1)return;const _0x3afc17=Array[_0x57cd('0xaf')](this[_0x57cd('0x4e')][_0x57cd('0x1e')][_0x57cd('0x11')][_0x57cd('0xc2')]())[_0x57cd('0x42')](_0x46c15f=>_0x56790a['fromRange'](_0x46c15f));_0x3ea829[_0x57cd('0x1a')](_0x513744);for(const _0x244960 of this[_0x57cd('0x13a')][_0x57cd('0xf6')][_0x57cd('0xf6')]())_0x244960[_0x57cd('0x3f')]();_0xcf6649[_0x57cd('0xa4')]({'forceDefaultExecution':!0x0}),this[_0x57cd('0x13a')][_0x57cd('0x135')](_0xe9adca,..._0xcf6649);const _0x1a3662=_0x3afc17[_0x57cd('0xeb')](_0x2c5142=>_0x57cd('0xca')!=_0x2c5142['root'][_0x57cd('0xaa')]);_0x1a3662[_0x57cd('0x28')]>0x0&&_0x3ea829[_0x57cd('0x1a')](_0x1a3662);for(const _0x2cc396 of _0x3afc17)_0x2cc396[_0x57cd('0xf7')]();});},_0x31b76f=(_0x1034f9,_0xc835e3)=>0x1==_0x1034f9[_0x57cd('0x28')]&&0x1==_0xc835e3[_0x57cd('0x28')]&&_0x1034f9[0x0][_0x57cd('0xa5')]['isEqual'](_0xc835e3[0x0][_0x57cd('0x9a')]),_0x3becae=(_0x1ecf56,_0x2ff39a,_0x261bc2,_0x429f3d)=>xt(_0x1ecf56,_0x2ff39a,_0x261bc2,_0x429f3d,this[_0x57cd('0x4e')])?[_0x1ecf56,_0x2ff39a]:xt(_0x2ff39a,_0x1ecf56,_0x429f3d,_0x261bc2,this[_0x57cd('0x4e')])?[_0x2ff39a,_0x1ecf56]:null;this['_defaultCallbacks']['set'](_0x57cd('0x56'),_0x2753c7),this[_0x57cd('0xfd')][_0x57cd('0xd2')](_0x57cd('0x36'),_0x2bff2b),this[_0x57cd('0xfd')][_0x57cd('0xd2')](_0x57cd('0x10c'),_0x31b76f),this['_defaultCallbacks'][_0x57cd('0xd2')]('insertion:chain',_0x3becae),this[_0x57cd('0xfd')][_0x57cd('0xd2')](_0x57cd('0x10b'),_0x2bff2b),this['_defaultCallbacks'][_0x57cd('0xd2')]('deletion:discard',_0x2753c7),this[_0x57cd('0xfd')][_0x57cd('0xd2')]('deletion:join',_0x31b76f),this[_0x57cd('0xfd')]['set'](_0x57cd('0x6b'),_0x3becae),this[_0x57cd('0xfd')][_0x57cd('0xd2')](_0x57cd('0x12a'),_0x59b6de),this[_0x57cd('0xfd')]['set']('formatInline:discard',_0x2753c7),this['_defaultCallbacks']['set'](_0x57cd('0x47'),_0x31b76f),this[_0x57cd('0xfd')][_0x57cd('0xd2')](_0x57cd('0x12d'),_0x2753c7),this[_0x57cd('0xfd')]['set'](_0x57cd('0x9b'),_0x59b6de),this[_0x57cd('0xfd')][_0x57cd('0xd2')]('formatBlock:discard',_0x2753c7),this[_0x57cd('0xfd')][_0x57cd('0xd2')](_0x57cd('0x73'),_0x31b76f),this['_defaultCallbacks'][_0x57cd('0xd2')]('formatBlock:chain',_0x2753c7);}}function _t(_0x1ee82f,_0x43b7c5,_0x548a3a){for(const _0x3812ac of _0x43b7c5[_0x57cd('0x96')][_0x57cd('0x7e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3812ac[_0x57cd('0x94')]==_0x3812ac)return!0x1;if(!_0x548a3a['containsItem'](_0x3812ac))return!0x1;if(_0x1ee82f[_0x57cd('0x92')](_0x3812ac)||_0x1ee82f[_0x57cd('0x1c')](_0x3812ac))return!0x0;}return!0x1;}function Mt(_0x2d3dfb){return _0x2d3dfb[_0x57cd('0xa5')][_0x57cd('0x96')]==_0x2d3dfb[_0x57cd('0x9a')][_0x57cd('0xcf')]&&_0x2d3dfb[_0x57cd('0xa5')][_0x57cd('0xea')];}function $t(_0x4960fe,_0x25955a,_0x5c803c,_0x5afeb7){const _0x35c27f=_0x5a795c=>!_0x5a795c[_0x57cd('0x3b')]['is'](_0x57cd('0xd'))&&!_0x5afeb7[_0x57cd('0x92')](_0x5a795c['item']),_0x4a893e=_0x4960fe[_0x57cd('0x9a')]['getLastMatchingPosition'](_0x35c27f),_0x30c44f=_0x4960fe[_0x57cd('0xa5')][_0x57cd('0x103')](_0x35c27f,{'direction':_0x57cd('0xc1')});return(!_0x4960fe[_0x57cd('0x9a')]['isEqual'](_0x4a893e)||!_0x4960fe['end'][_0x57cd('0xdb')](_0x30c44f))&&(_0x4a893e[_0x57cd('0x46')](_0x30c44f)?_0x5c803c[_0x57cd('0x8a')](_0x25955a,{'range':_0x5c803c['createRange'](_0x4a893e,_0x30c44f)}):_0x5c803c[_0x57cd('0x77')](_0x25955a),!0x0);}function Nt(_0x349006){return _0x31373a(_0x349006);}function Rt(_0x431b94){const _0x457b5a=_0x431b94['start']['nodeAfter'];return _0x457b5a&&_0x457b5a['is'](_0x57cd('0x89'));}function jt(_0x320d27,_0x3b2f13){const _0x4dab25=_0x3b2f13['schema'][_0x57cd('0x92')](_0x320d27)||_0x3b2f13['schema']['isSelectable'](_0x320d27);return _0x3b2f13[_0x57cd('0x125')](_0x3b2f13['createPositionAt'](_0x320d27,_0x57cd('0xb')),_0x4dab25?_0x3b2f13[_0x57cd('0x4a')](_0x320d27):_0x3b2f13[_0x57cd('0xa7')](_0x320d27,'end'));}function xt(_0x45b4fc,_0xc361d0,_0x370b0a,_0x21f84c,_0x3e012c){if(!Ut(_0x45b4fc,_0xc361d0))return!0x1;if(_0x370b0a[_0x57cd('0xa5')][_0x57cd('0xdb')](_0x21f84c[_0x57cd('0x9a')]))return!0x0;if(_0x45b4fc[_0x57cd('0x24')]!=_0xc361d0[_0x57cd('0x24')])return!0x1;if(!_0x370b0a['end'][_0x57cd('0x9d')](_0x21f84c[_0x57cd('0x9a')]))return!0x1;const _0x538b70=_0x3e012c[_0x57cd('0x125')](_0x370b0a[_0x57cd('0xa5')],_0x21f84c['start'])[_0x57cd('0x10e')]();for(const _0x44409c of _0x538b70)if([_0x57cd('0x7a'),_0x57cd('0x64')][_0x57cd('0x5b')](_0x44409c[_0x57cd('0x24')])&&_0x3e012c['schema'][_0x57cd('0x1c')](_0x44409c[_0x57cd('0x3b')]))return!0x1;return!0x0;}function Ut(_0xf7412c,_0x3882e9){return!(!_0xf7412c[_0x57cd('0x119')]||!_0x3882e9[_0x57cd('0x119')])&&_0x4b00ed(_0xf7412c[_0x57cd('0x72')],_0x3882e9[_0x57cd('0x72')]);}function Ot(_0x3a1136,_0x371ff5){const _0x47e399=Et(_0x3a1136[_0x57cd('0x72')]),_0x1adc61=Et(_0x371ff5);if(!_0x3a1136[_0x57cd('0x119')])return!0x1;for(const _0xe51d76 of Object['keys'](_0x1adc61))if(!_0x4b00ed(_0x47e399[_0xe51d76],_0x1adc61[_0xe51d76]))return!0x1;return!0x0;}function Et(_0x1a314c){const _0x48a285=Object[_0x57cd('0x126')]({},_0x1a314c);return delete _0x48a285[_0x57cd('0xc4')],delete _0x48a285[_0x57cd('0x8f')],_0x48a285;}
23
+ const _0x3769=['showSuggestionHighlights','_suggestionFactory','next','isDocumentOperation','selection','forceDefaultExecution','addRange','pluginName','_cutOutSuggestionMarker','change:_saved','stopListening','containsRange','every','lowest','addUser','includes','rootName','default','always','_editor','_suggestions','getLastMatchingPosition','formatBlock:accept','getItems','remove','addCommentThread','suggestion:','hasComments','attributes','commands','activeMarkers','nodeBefore','_suggestionState','track-changes-suggestion-not-found','oldRange','setTo','notReady','upcast','elementToElement','_handleNewSuggestionMarker','markInsertion','_setSuggestionRange','highest','markerToHighlight','join','insertion:','insertion','formatInline:chain','getFirstRange','removed','tablePasteChainId','isCollapsed','execute','getNearestSelectionRange','normal','config','add','markerReady','_getSuggestionData','_isForcedDefaultExecutionBlock','track-changes-user-not-found','batch','insertion:discard','differ','splitPosition','removeMarkers','addSuggestion','high','_addThreadToSuggestion','push','formatBlock:join','options','Users','insertContent','size','ck-suggestion-marker-formatBlock','_setSuggestionData','set','getAllAdjacentSuggestions','delete','addHighlight','ready','markInlineFormat','removeMarker:suggestion:formatBlock','discard','suggestionLoaded','parent','_commentsRepository','removeAttribute','toViewElement','markMultiRangeDeletion','ck-suggestion-marker','data','rejected','setSelection','_mergeNestedSuggestions','_checkSuggestionCorrectness','_createSuggestion','schema','authorName','discardSuggestion','_descriptionFactory','registerPostFixer','head','suggestion-type','resolve','model','assign','data-suggestion','change:activeMarkers','containsPosition','define','getSuggestion','formatGroupId','move','createPositionAt','listenTo','getMultiRangeId','markMultiRangeBlockFormat','has','$textProxy','consumable','isEqual','nodeAfter','splice','fire','CommentsRepository','isBefore','setAttribute','for','getDifference','dataToMarker','containsRangeInObject','_getAuthorFromId','dataDowncast','isNextTo','createRange','unbindElementFromMarkerName','init','deletion:join','PENDING_ACTION_SUGGESTION','marker-count','markers','get','chain','originalSuggestionId','_saved','addSuggestionData','some','isObject','before','_model','fetchCommentThread','@external','isOwn','update:suggestion','_trackFormatChanges','formatInline:join','then','skipNestingCheck','addMarker:suggestion','multipleBlocks','TrackChangesEditing','suggestionUnloaded','createPositionBefore','isMultiRange','plugins','isInContent','acceptSelectedSuggestions','locale','getAttribute','accept','range','editingDowncast','hasSuggestion','moveTargetPosition','multi','dataReady','createElement','suggestion','creator','forward','formatBlock','formatInline:discard','addClass','enqueueChange','adapter','detach','trackChanges.trackFormatChanges','refresh','ck-suggestion-marker-','getCommentThread','_refreshSuggestionsChain','removeMarker','isRemovable','formatInline','value','after','position','$graveyard','keys','getRanges','conversion','_removeSuggestion','isLimit','low','_onDiscard','discardAllSuggestions','howMany','end','values','_findSuggestions','_getExternalAuthor','getIntersection','fromCharCode','addMarkerName','trackChanges','elementStart','root','return','reconvertMarker','consume','isAtEnd','_adapter','bindElementToMarker','deleteContent','trackChanges.mergeNestedSuggestions','change','group','item','clear','collaboration.channelId','element','getRange','_isDataLoaded','editor','widget','containsItem','formatBlock:','isAfter','trackChangesCommand','writer','accepted','suggestionChanged','editing','updateMarker','_joinWithAdjacentSuggestions','_customCallbacks','deletion:accept','track-changes-suggestion-data-mismatch','subType','fromRange','insertion:join','isExternal','authoredAt','_updateSuggestionData','getAncestors','isArray','author','documentSelection','formatInline:','_rangeIsInLocalUserInsertion','_registerDefaultCallbacks','enableCommand','split','insertion:chain','formatBlock:chain','commandName','toJSON','mapper','type','newRange','ck-suggestion-marker--active','commentThread','updateSuggestion','name','getSuggestionCallback','acceptSuggestion','addMarker:suggestion:formatBlock','deletion:discard','filter','markMultiRangeInsertion','length','_defaultCallbacks','isUndo','createRangeIn','isTouching','start','deletion','getCustomProperty','addMarker','track-changes-command-not-found','change:data','map','getSuggestions','isBlock','markerName','createdAt','_splitMarkerName','deletion:','stop','isInsideObject','document','_breakSuggestionMarker','never','insert','createSelection','previous','backward','markBlockFormat','deletion:chain','containerElement','sort','getFirstMarker','registerCustomCallback','_enabledCommands','getChangedMarkers','from','isIntersectingWithRange','elementEnd','_joinSuggestions','getWalker','_addSuggestionMarker','isSelectable','discardSelectedSuggestions','PendingActions','getShiftedBy'];(function(_0x2d1632,_0x37692c){const _0x33556f=function(_0x5477da){while(--_0x5477da){_0x2d1632['push'](_0x2d1632['shift']());}};_0x33556f(++_0x37692c);}(_0x3769,0x121));const _0x3355=function(_0x2d1632,_0x37692c){_0x2d1632=_0x2d1632-0x0;let _0x33556f=_0x3769[_0x2d1632];return _0x33556f;};import{Plugin as _0x426609,PendingActions as _0x300cdf}from'ckeditor5/src/core';import{LiveRange as _0x3bb391}from'ckeditor5/src/engine';import{CKEditorError as _0x3c873b,uid as _0x140e3b,priorities as _0x3fe394,logWarning as _0x48fb86}from'ckeditor5/src/utils';import{toWidget as _0x478498}from'ckeditor5/src/widget';import{Users as _0x21658c,hashObject as _0x2967d9}from'ckeditor5-collaboration/src/collaboration-core';import _0x5822bb from'./commands/trackchangescommand';import _0x41736e from'./commands/acceptsuggestioncommand';import _0xe7026d from'./commands/discardsuggestioncommand';import _0x4eb4e3 from'./commands/executeonallsuggestionscommand';import _0x11ef8a from'./commands/executeonselectedsuggestionscommand';import _0x46901b from'./suggestion';import _0x2d6a86 from'./suggestiondescriptionfactory';import _0x39f901 from'./integrations/aiassistant';import _0x3a30ef from'./integrations/alignment';import _0x4b2288 from'./integrations/basicstyles';import _0x2d09c4 from'./integrations/blockquote';import _0x37cd28 from'./integrations/ckbox';import _0xd81c3d from'./integrations/codeblock';import _0x40a4b3 from'./integrations/comments';import _0x4008ac from'./integrations/deletecommand';import _0x32a8ce from'./integrations/documentlist';import _0x577e3a from'./integrations/entercommand';import _0x52168b from'./integrations/findandreplace';import _0x455232 from'./integrations/font';import _0x208661 from'./integrations/formatpainter';import _0x413ad6 from'./integrations/heading';import _0x48a50b from'./integrations/highlight';import _0x2b96d2 from'./integrations/horizontalline';import _0xb8c34b from'./integrations/htmlembed';import _0xf89998 from'./integrations/image';import _0x548995 from'./integrations/imagereplace';import _0x47b845 from'./integrations/importword';import _0x380778 from'./integrations/indent';import _0x293469 from'./integrations/inputcommand';import _0x478650 from'./integrations/link';import _0x349070 from'./integrations/list';import _0x3ea990 from'./integrations/listproperties';import _0x3f38a1 from'./integrations/mediaembed';import _0x4debd2 from'./integrations/mention';import _0x26a86f from'./integrations/pagebreak';import _0x497bce from'./integrations/paragraph';import _0x1756a4 from'./integrations/removeformat';import _0x35a07b from'./integrations/restrictededitingmode';import _0x2bfb30 from'./integrations/shiftentercommand';import _0x6b3cca from'./integrations/standardeditingmode';import _0x415918 from'./integrations/style';import _0x5dca4d from'./integrations/table';import _0x4b0f33 from'./integrations/tablemergesplit';import _0x34590e from'./integrations/tableheadings';import _0x5ed1fc from'./integrations/tableclipboard';import _0x26c962 from'./integrations/tablecolumnresize';import _0x2e71d5 from'./integrations/template';import _0x3288cf from'./integrations/tableofcontents';import _0x755ba9 from'./integrations/title';import _0x3f965b from'./integrations/undo';import{getTranslation as _0x5723bb}from'./utils/common-translations';import _0x2236b2 from'./integrations/tablecaption';import _0x539110 from'./integrations/documentlistproperties';import _0x2b8bb0 from'./integrations/tableproperties';import{isEqual as _0x19e7de}from'lodash-es';export default class p extends _0x426609{static get['requires'](){return[_0x3355('0xa4'),_0x21658c,_0x300cdf,_0x39f901,_0x3a30ef,_0x4b2288,_0x2d09c4,_0x37cd28,_0xd81c3d,_0x40a4b3,_0x4008ac,_0x32a8ce,_0x539110,_0x577e3a,_0x52168b,_0x455232,_0x208661,_0x413ad6,_0x48a50b,_0x2b96d2,_0xb8c34b,_0xf89998,_0x548995,_0x47b845,_0x380778,_0x293469,_0x478650,_0x349070,_0x3ea990,_0x3f38a1,_0x4debd2,_0x26a86f,_0x497bce,_0x1756a4,_0x35a07b,_0x2bfb30,_0x6b3cca,_0x415918,_0x5dca4d,_0x4b0f33,_0x34590e,_0x2236b2,_0x5ed1fc,_0x26c962,_0x3288cf,_0x2b8bb0,_0x2e71d5,_0x755ba9,_0x3f965b];}static get[_0x3355('0x2d')](){return _0x3355('0xc8');}constructor(_0x596433){function _0x107da4(_0x2ec972){return _0x2ec972['map'](_0x3844bc=>String[_0x3355('0xfc')](_0x3844bc))[_0x3355('0x52')]('');}super(_0x596433),this[_0x3355('0x73')](_0x3355('0x44'),[]),this['on'](_0x3355('0x93'),(_0x251cb1,_0x41a3ea,_0x37855e,_0x114d93)=>{this['_model'][_0x3355('0x109')](()=>{for(const _0x22c28c of[..._0x114d93,..._0x37855e])this[_0x3355('0xbd')]['markers'][_0x3355('0x9d')](_0x22c28c)&&_0x596433[_0x3355('0x11a')][_0x3355('0x102')](_0x22c28c);});}),this[_0x3355('0x8b')]=new _0x2d6a86(this[_0x3355('0x111')][_0x3355('0x90')][_0x3355('0x88')],this[_0x3355('0x111')][_0x3355('0xcf')]),this[_0x3355('0x105')]=null,this[_0x3355('0x27')]=new Bt(this[_0x3355('0x111')]),this['_suggestions']=new Map(),this[_0x3355('0x7d')]=_0x596433['plugins'][_0x3355('0xb5')]('CommentsRepository'),this[_0x3355('0x1a')]=new Set(),this[_0x3355('0xbd')]=this[_0x3355('0x111')][_0x3355('0x90')],this[_0x3355('0x46')]=new WeakMap(),this[_0x3355('0x61')]=!0x1,_0x596433[_0x3355('0x5d')][_0x3355('0x95')](_0x3355('0xe2'),_0x3355('0x37')),this['_trackFormatChanges']=_0x596433[_0x3355('0x5d')][_0x3355('0xb5')](_0x3355('0xe2')),_0x596433[_0x3355('0x5d')][_0x3355('0x95')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x596433['config'][_0x3355('0xb5')](_0x3355('0x108')),this[_0x3355('0x116')]=new _0x5822bb(_0x596433,this[_0x3355('0x1a')]),this[_0x107da4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x107da4([0x34,0x30,0x34,0x36,0x32,0x30,0x30,0x32]);}[_0x3355('0xb0')](){const _0x2aafb5=this['editor'];_0x2aafb5['conversion'][_0x3355('0xa7')]('editingDowncast')[_0x3355('0x51')]({'model':_0x3355('0xd9'),'view':_0xa18280=>{const {id:_0x5d1c42,type:_0x1e0eda}=this[_0x3355('0x9')](_0xa18280['markerName']),_0x1a6560=['ck-suggestion-marker',_0x3355('0xe4')+_0x1e0eda];let _0x56b547=0xbb8;return this[_0x3355('0x44')][_0x3355('0x35')](_0xa18280[_0x3355('0x7')])&&(_0x1a6560[_0x3355('0x6b')](_0x3355('0x136')),_0x56b547=0xbc2),_0x3355('0x146')==_0x1e0eda&&(_0x56b547+=0x5),{'classes':_0x1a6560,'attributes':{'data-suggestion':_0x5d1c42},'priority':_0x56b547};}}),_0x2aafb5['conversion']['for'](_0x3355('0xac'))[_0x3355('0x5e')](_0x342c0a=>{_0x342c0a['on'](_0x3355('0xc6'),(_0x55e742,_0x232a49,_0x3f651f)=>{if(!_0x3f651f[_0x3355('0x6d')][_0x3355('0x26')])return;const _0x13e6a0=_0x232a49[_0x3355('0x10b')];if(!_0x13e6a0)return;const _0x136f7d=_0x3f651f[_0x3355('0x133')][_0x3355('0x7f')](_0x13e6a0);_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')]['isObject'](_0x13e6a0)&&_0x136f7d&&!_0x136f7d[_0x3355('0x0')](_0x3355('0x112'))&&_0x136f7d['is'](_0x3355('0x16'))&&_0x478498(_0x136f7d,_0x3f651f[_0x3355('0x117')]);},{'priority':'high'});}),_0x2aafb5[_0x3355('0xf0')][_0x3355('0xa7')](_0x3355('0xac'))[_0x3355('0x51')]({'model':_0x3355('0xd9'),'view':(_0x491ad3,_0x4b45b4)=>{if(!_0x4b45b4['options'][_0x3355('0x26')])return null;const {type:_0x41893c}=this[_0x3355('0x9')](_0x491ad3[_0x3355('0x7')]);return{'classes':['ck-suggestion-marker',_0x3355('0xe4')+_0x41893c],'priority':0xbb8};}});const _0x577701=({showActiveMarkers:_0x4c3fda=!0x0}={})=>(_0x51129a,_0x2909e2,_0x48cdff)=>{if(!_0x2909e2[_0x3355('0x10b')])return;if(_0x2909e2['item']['is'](_0x3355('0x2a')))return void _0x48cdff[_0x3355('0x9f')][_0x3355('0x103')](_0x2909e2[_0x3355('0x10b')],_0x51129a['name']);const _0xf53220=_0x48cdff[_0x3355('0x133')]['toViewElement'](_0x2909e2[_0x3355('0x10b')]);if(!(_0x2909e2['item']['is'](_0x3355('0x10e'))&&_0x2aafb5['model'][_0x3355('0x88')][_0x3355('0x6')](_0x2909e2[_0x3355('0x10b')])&&!_0xf53220[_0x3355('0x0')](_0x3355('0x76'))))return;const {id:_0x2e7a5c}=this[_0x3355('0x9')](_0x2909e2['markerName']);_0x48cdff[_0x3355('0x117')][_0x3355('0xde')]([_0x3355('0x81'),_0x3355('0x71')],_0xf53220),_0x48cdff['writer'][_0x3355('0xa6')](_0x3355('0x92'),_0x2e7a5c,_0xf53220),_0x48cdff['mapper'][_0x3355('0x106')](_0xf53220,_0x2909e2[_0x3355('0x7')]),_0x4c3fda&&(this[_0x3355('0x44')]['includes'](_0x2909e2[_0x3355('0x7')])?_0x48cdff['writer'][_0x3355('0xde')](_0x3355('0x136'),_0xf53220):_0x48cdff['writer']['removeClass'](_0x3355('0x136'),_0xf53220));for(const _0x7171ce of _0x2aafb5[_0x3355('0x90')][_0x3355('0x143')](_0x2909e2['item'])[_0x3355('0x3d')]())_0x48cdff[_0x3355('0x9f')][_0x3355('0x103')](_0x7171ce,_0x51129a[_0x3355('0x139')]);_0x48cdff[_0x3355('0x9f')][_0x3355('0x103')](_0x2909e2[_0x3355('0x10b')],_0x51129a[_0x3355('0x139')]);};_0x2aafb5[_0x3355('0xf0')]['for'](_0x3355('0xac'))[_0x3355('0x5e')](_0x435f54=>{_0x435f54['on'](_0x3355('0x13c'),(_0x5000d4,_0x34a092,_0x1afd1a)=>{_0x1afd1a[_0x3355('0x6d')][_0x3355('0x26')]&&_0x577701({'showActiveMarkers':!0x1})(_0x5000d4,_0x34a092,_0x1afd1a);},{'priority':_0x3355('0x50')});}),_0x2aafb5[_0x3355('0xf0')][_0x3355('0xa7')]('dataDowncast')['markerToData']({'model':_0x3355('0xd9'),'view':(_0x10d078,_0x2273e4)=>_0x2273e4[_0x3355('0x6d')][_0x3355('0x26')]?null:{'group':'suggestion','name':_0x10d078['substr'](0xb)}}),_0x2aafb5[_0x3355('0xf0')]['for']('upcast')[_0x3355('0x4c')]({'view':{'name':_0x3355('0xd9'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x379801,{writer:_0x4f93cc})=>{let _0xcdb14=_0x3355('0x40')+_0x379801[_0x3355('0xd0')](_0x3355('0x8e'))+':'+_0x379801[_0x3355('0xd0')]('id');return _0x379801[_0x3355('0xd0')](_0x3355('0xb3'))&&(_0xcdb14+=':'+_0x379801['getAttribute'](_0x3355('0xb3'))),_0x4f93cc[_0x3355('0xd8')]('$marker',{'data-name':_0xcdb14});}}),_0x2aafb5[_0x3355('0xf0')][_0x3355('0xa7')](_0x3355('0x4b'))[_0x3355('0xa9')]({'view':_0x3355('0xd9')}),_0x2aafb5[_0x3355('0xf0')]['for'](_0x3355('0xd3'))[_0x3355('0x5e')](_0xa4b73c=>{_0xa4b73c['on']('addMarker:suggestion:formatBlock',_0x577701(),{'priority':_0x3355('0x69')});}),_0x2aafb5['conversion'][_0x3355('0xa7')](_0x3355('0xd3'))[_0x3355('0x5e')](_0x49aadc=>{_0x49aadc['on'](_0x3355('0x79'),(_0x5ec09d,_0x364190,_0x4549d4)=>{const _0x17c8fb=_0x4549d4[_0x3355('0x133')]['markerNameToElements'](_0x364190[_0x3355('0x7')]);if(_0x17c8fb)for(const _0x18f9da of _0x17c8fb)_0x18f9da[_0x3355('0x0')](_0x3355('0x76'))||(_0x4549d4['writer']['removeClass'](['ck-suggestion-marker',_0x3355('0x71'),'ck-suggestion-marker--active'],_0x18f9da),_0x4549d4[_0x3355('0x117')][_0x3355('0x7e')]('data-suggestion',_0x18f9da),_0x4549d4[_0x3355('0x133')][_0x3355('0xaf')](_0x18f9da,_0x364190['markerName']));},{'priority':_0x3355('0x69')});}),_0x2aafb5['model'][_0x3355('0xd')][_0x3355('0x8c')](_0x507bf9=>{let _0x209bdb=!0x1;const _0x45ab4a=Array['from'](_0x2aafb5['model'][_0x3355('0xd')]['differ'][_0x3355('0x1b')]()),_0x1f2d6f=new Set();for(const {name:_0x4458f0,data:_0x62d565}of _0x45ab4a){const {group:_0x2b83f1,type:_0x3b62d0,id:_0x27d07d}=this[_0x3355('0x9')](_0x4458f0);if(_0x3355('0xd9')!==_0x2b83f1)continue;const _0x30a1ab=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x27d07d);if(null!=_0x62d565[_0x3355('0x135')]){'formatInline'==_0x3b62d0&&(_0x209bdb=_0x209bdb||$t(_0x62d565['newRange'],_0x4458f0,_0x507bf9,_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')]));if(_0x62d565['newRange'][_0x3355('0x59')]||_0x3355('0xed')==_0x62d565[_0x3355('0x135')][_0x3355('0x100')][_0x3355('0x36')]||_0x3355('0xdc')==_0x3b62d0&&!Rt(_0x62d565[_0x3355('0x135')])||_0x3355('0x146')==_0x3b62d0&&!(!Mt(_0x3a8b1d=_0x62d565['newRange'])&&!function(_0x23a465){return _0x23a465[_0x3355('0x145')]['parent']==_0x23a465[_0x3355('0xf7')][_0x3355('0x45')]&&_0x23a465[_0x3355('0x145')][_0x3355('0x104')];}(_0x3a8b1d)))_0x507bf9[_0x3355('0xe7')](_0x4458f0),_0x209bdb=!0x0;else{if(!_0x30a1ab||!_0x30a1ab[_0x3355('0xcd')])continue;_0x1f2d6f[_0x3355('0x5e')](_0x30a1ab);}}}var _0x3a8b1d;return _0x1f2d6f[_0x3355('0x70')]>0x0&&(_0x209bdb=!!this[_0x3355('0x11c')](_0x1f2d6f)||_0x209bdb),_0x209bdb;}),_0x2aafb5[_0x3355('0x90')][_0x3355('0xd')][_0x3355('0x8c')](_0x4573ef=>{let _0x4c69e9=!0x1;for(const _0x32caa3 of _0x2aafb5['model'][_0x3355('0xd')][_0x3355('0x65')]['getChanges']()){if(_0x3355('0x10')!=_0x32caa3[_0x3355('0x134')])continue;const _0x1a9421=_0x32caa3[_0x3355('0xec')][_0x3355('0x25')](_0x32caa3['length']);if(_0x1a9421[_0x3355('0x104')])for(const _0x51c128 of this[_0x3355('0x3a')][_0x3355('0xf8')]()){if(_0x51c128[_0x3355('0xcb')]||!_0x51c128[_0x3355('0xcd')])continue;if('formatBlock'!=_0x51c128[_0x3355('0x134')])continue;const _0x355c5e=_0x51c128[_0x3355('0x56')]();if(_0x355c5e[_0x3355('0x145')][_0x3355('0x7c')]!=_0x355c5e[_0x3355('0xf7')][_0x3355('0x7c')]&&_0x355c5e[_0x3355('0xf7')][_0x3355('0xa0')](_0x32caa3[_0x3355('0xec')])){const _0x11fddc=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x355c5e[_0x3355('0x145')],_0x1a9421);_0x4573ef[_0x3355('0x11b')](_0x51c128[_0x3355('0x18')](),{'range':_0x11fddc}),_0x4c69e9=!0x0;}}}return _0x4c69e9;}),_0x2aafb5['model'][_0x3355('0xb4')]['on'](_0x3355('0xc1'),(_0x35d9b2,_0x232582,_0x4b8c50)=>{if(null==_0x4b8c50){const {id:_0x403d91}=this[_0x3355('0x9')](_0x232582['name']),_0x55481d=this[_0x3355('0x3a')]['get'](_0x403d91);_0x55481d&&_0x55481d[_0x3355('0xfd')](_0x232582[_0x3355('0x139')]);}}),_0x2aafb5[_0x3355('0x90')]['document']['on'](_0x3355('0x3'),()=>{const _0x5ca5b0=Array[_0x3355('0x1c')](_0x2aafb5[_0x3355('0x90')][_0x3355('0xd')][_0x3355('0x65')][_0x3355('0x1b')]())[_0x3355('0x13e')](_0x100575=>_0x3355('0xd9')===this[_0x3355('0x9')](_0x100575[_0x3355('0x139')])[_0x3355('0x10a')]);if(0x0===_0x5ca5b0[_0x3355('0x140')])return;_0x5ca5b0[_0x3355('0x17')]((_0xd7585a,_0x2f962d)=>{const _0x14f655=_0xd7585a['data'][_0x3355('0x48')],_0x2315ce=_0x2f962d['data'][_0x3355('0x48')];return null===_0x14f655&&null===_0x2315ce?0x0:null===_0x14f655&&null!==_0x2315ce?-0x1:null!==_0x14f655&&null===_0x2315ce?0x1:_0x14f655[_0x3355('0x145')][_0x3355('0xa5')](_0x2315ce[_0x3355('0x145')])?-0x1:0x1;});const _0x1a4538=new Set(),_0x5a8c19=new Set();for(const {name:_0x16c27f,data:_0x58799a}of _0x5ca5b0){const {id:_0x56e5ea}=this[_0x3355('0x9')](_0x16c27f);if(null===_0x58799a['oldRange']){const _0x237ba9=this['_handleNewSuggestionMarker'](_0x16c27f);_0x5a8c19[_0x3355('0x5e')](_0x237ba9);}else{const _0x558897=this['_suggestions']['get'](_0x56e5ea);null!==_0x58799a['newRange']||_0x558897[_0x3355('0xcd')]?(_0x1a4538[_0x3355('0x5e')](_0x558897[_0x3355('0x8d')]),_0x5a8c19[_0x3355('0x5e')](_0x558897)):this[_0x3355('0xf1')](_0x558897);}}_0x5a8c19[_0x3355('0x70')]>0x0&&this[_0x3355('0xe6')](_0x5a8c19);for(const _0x295398 of _0x1a4538)this[_0x3355('0xa3')](_0x3355('0x119'),_0x295398);}),_0x2aafb5[_0x3355('0x90')]['on']('applyOperation',(_0x3e27a3,_0x476ad8)=>{const _0x1a3dc0=_0x476ad8[0x0];if(!this['_suggestions'][_0x3355('0x70')])return;if(!_0x1a3dc0[_0x3355('0x29')])return;if(_0x1a3dc0[_0x3355('0x63')][_0x3355('0x142')]||!_0x1a3dc0[_0x3355('0x63')]['isLocal'])return;let _0x8a9fc9,_0x32f8e1;switch(_0x1a3dc0[_0x3355('0x134')]){case'insert':_0x8a9fc9=_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x1a3dc0[_0x3355('0xec')]),_0x32f8e1=_0x8a9fc9['getShiftedBy'](_0x1a3dc0[_0x3355('0xf6')]);break;case'split':_0x8a9fc9=_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x1a3dc0[_0x3355('0x66')]),_0x32f8e1=_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x1a3dc0[_0x3355('0xd5')]);break;case _0x3355('0x98'):_0x8a9fc9=_0x2aafb5[_0x3355('0x90')]['createPositionAt'](_0x1a3dc0['targetPosition']),_0x32f8e1=_0x8a9fc9[_0x3355('0x25')](_0x1a3dc0[_0x3355('0xf6')]);break;default:return;}const _0x27ab13=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x8a9fc9,_0x32f8e1);_0x2aafb5['model'][_0x3355('0x109')](()=>{for(const {suggestion:_0xf979eb,meta:_0x4427a5}of this[_0x3355('0xf9')](_0x27ab13)){if(_0xf979eb[_0x3355('0xcb')])continue;if(_0x3355('0xe9')==_0xf979eb[_0x3355('0x134')])continue;const _0x27046a=_0xf979eb[_0x3355('0x82')]&&_0xf979eb[_0x3355('0x82')][_0x3355('0xc7')];(_0x3355('0xdc')!=_0xf979eb[_0x3355('0x134')]||'split'==_0x1a3dc0[_0x3355('0x134')]&&!_0x27046a)&&(_0x4427a5['containsRangeInObject']||_0x3355('0x54')==_0xf979eb[_0x3355('0x134')]&&_0x4427a5[_0x3355('0xc0')]||_0xf979eb[_0x3355('0x56')]()[_0x3355('0x31')](_0x27ab13)&&this[_0x3355('0xe')](_0xf979eb,_0x8a9fc9,_0x32f8e1));}});},{'priority':_0x3355('0x33')}),_0x2aafb5['model']['on'](_0x3355('0x107'),(_0x575ec1,_0x361976)=>{const _0x3bce03=_0x361976[0x0],_0x542b45=_0x361976[0x1];if(_0x542b45&&_0x542b45['forceDefaultExecution'])return;if(this[_0x3355('0x61')])return;if(!this['trackChangesCommand'][_0x3355('0xea')])return;if(_0x3bce03['isCollapsed'])return;const _0x1233bf=_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')],{start:_0x3c04ce,end:_0x3fc550}=_0x3bce03[_0x3355('0x56')](),_0x643818=_0x3c04ce[_0x3355('0xa1')]&&_0x1233bf[_0x3355('0xf2')](_0x3c04ce[_0x3355('0xa1')])?null:_0x1233bf[_0x3355('0x5b')](_0x3c04ce,_0x3355('0xdb')),_0x53a4f1=_0x3fc550[_0x3355('0x45')]&&_0x1233bf[_0x3355('0xf2')](_0x3fc550[_0x3355('0x45')])?null:_0x1233bf[_0x3355('0x5b')](_0x3fc550,_0x3355('0x13')),_0x2d5a85=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x643818?_0x643818[_0x3355('0x145')]:_0x3c04ce,_0x53a4f1?_0x53a4f1[_0x3355('0xf7')]:_0x3fc550);_0x2aafb5[_0x3355('0x90')][_0x3355('0x109')](_0x766ffa=>{this['markDeletion'](_0x2d5a85);const _0x996b3c=_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')][_0x3355('0x5b')](_0x2d5a85[_0x3355('0x145')]);_0x3bce03['is'](_0x3355('0x129'))?_0x766ffa[_0x3355('0x84')](_0x996b3c):_0x3bce03[_0x3355('0x49')](_0x996b3c);}),_0x575ec1['stop']();},{'priority':_0x3fe394[_0x3355('0x5c')]+0xa}),_0x2aafb5['model']['on'](_0x3355('0x6f'),(_0xfddc75,_0x26abc8)=>{const _0x27e39b=_0x26abc8[_0x26abc8['length']-0x1];_0x27e39b&&_0x27e39b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x3355('0x116')]['value']&&(_0x2aafb5[_0x3355('0x90')][_0x3355('0x109')](()=>{let _0x21c9f0=_0x2aafb5['model'][_0x3355('0x6f')](_0x26abc8[0x0],_0x26abc8[0x1],_0x26abc8[0x2],{'forceDefaultExecution':!0x0});if(!_0x21c9f0)return;_0xfddc75[_0x3355('0x101')]=_0x21c9f0['clone']();const _0x2a938c=_0x21c9f0[_0x3355('0xf7')][_0x3355('0x45')],_0x76cdb9=_0x2aafb5[_0x3355('0x90')][_0x3355('0x88')];_0x2a938c&&_0x76cdb9[_0x3355('0x6')](_0x2a938c)&&!_0x76cdb9[_0x3355('0xbb')](_0x2a938c)&&(_0x21c9f0=_0x2aafb5[_0x3355('0x90')][_0x3355('0xae')](_0x21c9f0[_0x3355('0x145')],_0x2aafb5[_0x3355('0x90')][_0x3355('0x99')](_0x2a938c,_0x3355('0xf7')))),this[_0x3355('0x4e')](_0x21c9f0);}),_0xfddc75[_0x3355('0xb')]());},{'priority':_0x3355('0x69')}),this[_0x3355('0x111')][_0x3355('0x43')]['add'](_0x3355('0xfe'),this[_0x3355('0x116')]),this[_0x3355('0x12d')]('trackChanges');const _0xffe18b=new _0x41736e(_0x2aafb5,this['_suggestions']);_0x2aafb5[_0x3355('0x43')][_0x3355('0x5e')](_0x3355('0x13b'),_0xffe18b),this[_0x3355('0x12d')](_0x3355('0x13b'));const _0x2ffef8=new _0xe7026d(_0x2aafb5,this['_suggestions']);_0x2aafb5[_0x3355('0x43')]['add'](_0x3355('0x8a'),_0x2ffef8),this['enableCommand'](_0x3355('0x8a')),_0x2aafb5[_0x3355('0x43')][_0x3355('0x5e')]('acceptAllSuggestions',new _0x4eb4e3(_0x2aafb5,_0xffe18b,this['_suggestions'])),this[_0x3355('0x12d')]('acceptAllSuggestions'),_0x2aafb5[_0x3355('0x43')][_0x3355('0x5e')](_0x3355('0xf5'),new _0x4eb4e3(_0x2aafb5,_0x2ffef8,this['_suggestions'])),this['enableCommand'](_0x3355('0xf5')),_0x2aafb5['commands'][_0x3355('0x5e')]('acceptSelectedSuggestions',new _0x11ef8a(_0x2aafb5,_0xffe18b,this[_0x3355('0x3a')])),this[_0x3355('0x12d')](_0x3355('0xce')),_0x2aafb5['commands']['add'](_0x3355('0x23'),new _0x11ef8a(_0x2aafb5,_0x2ffef8,this[_0x3355('0x3a')])),this['enableCommand'](_0x3355('0x23'));const _0x3ed1ee=_0x2aafb5['plugins']['get'](_0x3355('0xa4'));this[_0x3355('0x9a')](_0x3ed1ee,'addComment',(_0x519aee,{threadId:_0x5534a7})=>{const _0x322166=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x5534a7);_0x322166&&_0x322166[_0x3355('0x137')]&&0x1===_0x322166[_0x3355('0x137')][_0x3355('0x140')]&&this[_0x3355('0x125')](_0x5534a7,{'hasComments':!0x0});},{'priority':_0x3355('0xf3')}),this[_0x3355('0x9a')](_0x3ed1ee,'removeComment',(_0x536ddc,{threadId:_0x9edf93})=>{const _0x597b28=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x9edf93);_0x597b28&&_0x597b28[_0x3355('0x137')]&&!_0x597b28[_0x3355('0x137')][_0x3355('0x140')]&&this[_0x3355('0x125')](_0x9edf93,{'hasComments':!0x1});},{'priority':'low'});}set[_0x3355('0xe0')](_0x4138b8){if(this[_0x3355('0x105')])throw new _0x3c873b('track-changes-adapter-already-set',this);this[_0x3355('0x105')]=_0x4138b8;}get[_0x3355('0xe0')](){return this['_adapter'];}[_0x3355('0x5')]({skipNotAttached:_0xc3fe90=!0x1,toJSON:_0x8fcdfb=!0x1}={}){const _0x52d462=[];for(const _0x410644 of this[_0x3355('0x3a')][_0x3355('0xf8')]())_0xc3fe90&&!_0x410644[_0x3355('0xcd')]||_0x52d462[_0x3355('0x6b')](_0x410644);return _0x8fcdfb?_0x52d462[_0x3355('0x4')](_0x3dc210=>_0x3dc210[_0x3355('0x132')]()):_0x52d462;}[_0x3355('0x96')](_0xe7e7cf){const _0x16578a=this[_0x3355('0x3a')][_0x3355('0xb5')](_0xe7e7cf);if(!_0x16578a)throw new _0x3c873b(_0x3355('0x47'),this);return _0x16578a;}[_0x3355('0xd4')](_0x7c1e93){return this[_0x3355('0x3a')][_0x3355('0x9d')](_0x7c1e93);}[_0x3355('0xb9')](_0x2a2f74){const {authorId:_0x3dd37,id:_0x4ece6d,attributes:_0x59a0da}=_0x2a2f74,[_0xe39fe7,_0x28d362]=_0x2a2f74['type']['split'](':'),_0x50c1df=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x4ece6d)||this['_createSuggestion'](_0xe39fe7,_0x28d362,_0x4ece6d,_0x3dd37,_0x59a0da);if(this[_0x3355('0x6a')](_0x50c1df),this['_checkSuggestionCorrectness'](_0x50c1df,_0xe39fe7,_0x28d362||null,_0x3dd37),_0x50c1df['createdAt']=_0x2a2f74[_0x3355('0x8')],_0x50c1df[_0x3355('0x110')]=!0x0,_0x59a0da&&_0x59a0da[_0x3355('0xbf')]){const _0x278f84=_0x59a0da[_0x3355('0xbf')],_0x57369d=this[_0x3355('0xfa')](_0x278f84[_0x3355('0x89')]);_0x50c1df['authoredAt']=_0x278f84['createdAt'],_0x50c1df[_0x3355('0x128')]=_0x57369d,_0x50c1df[_0x3355('0x123')]=!0x0;}else _0x50c1df[_0x3355('0x124')]=_0x2a2f74[_0x3355('0x8')];switch(_0x2a2f74['data']&&(_0x50c1df['data']=_0x2a2f74['data']),_0x2a2f74['attributes']&&(_0x50c1df[_0x3355('0x42')]=_0x2a2f74[_0x3355('0x42')]),this[_0x3355('0x105')]&&this['_adapter'][_0x3355('0x68')]||(_0x50c1df[_0x3355('0xb8')]=!0x0),this[_0x3355('0x46')]['get'](_0x50c1df)){case _0x3355('0x4a'):this[_0x3355('0x46')][_0x3355('0x73')](_0x50c1df,_0x3355('0xd7'));break;case'markerReady':_0x50c1df[_0x3355('0xcd')]?(this[_0x3355('0xe6')](new Set([_0x50c1df])),this[_0x3355('0x11c')](new Set([_0x50c1df])),this['_suggestionState'][_0x3355('0x73')](_0x50c1df,_0x3355('0x77')),this[_0x3355('0xa3')](_0x3355('0x7b'),_0x50c1df)):this['_suggestionState'][_0x3355('0x73')](_0x50c1df,_0x3355('0x57'));}return _0x50c1df;}[_0x3355('0x13b')](_0x5483cd){this['forceDefaultExecution'](()=>{this['editor'][_0x3355('0x90')]['change'](()=>{for(const _0x3f9bd5 of _0x5483cd[_0x3355('0x74')]())_0x3f9bd5['accept']();});});}[_0x3355('0x8a')](_0x8fed8b){this[_0x3355('0x2b')](()=>{this[_0x3355('0x111')][_0x3355('0x90')][_0x3355('0x109')](()=>{for(const _0x1d0e08 of _0x8fed8b[_0x3355('0x74')]())_0x1d0e08[_0x3355('0x7a')]();});});}[_0x3355('0x12d')](_0x3b735a,_0x2c1f5b){const _0x1beb3e=this['editor'][_0x3355('0x43')][_0x3355('0xb5')](_0x3b735a);if(!_0x1beb3e)throw new _0x3c873b(_0x3355('0x2'),this,{'commandName':_0x3b735a});this[_0x3355('0x1a')][_0x3355('0x5e')](_0x1beb3e),_0x2c1f5b&&_0x1beb3e['on'](_0x3355('0x5a'),(_0x3ade07,_0x2c61a4)=>{this[_0x3355('0x116')][_0x3355('0xea')]&&(this[_0x3355('0x61')]||_0x2c61a4[_0x3355('0x140')]>0x0&&_0x2c61a4[_0x2c61a4[_0x3355('0x140')]-0x1]&&_0x2c61a4[_0x2c61a4[_0x3355('0x140')]-0x1]['forceDefaultExecution']||(_0x2c1f5b((..._0x44c8e7)=>_0x1beb3e[_0x3355('0x5a')](..._0x44c8e7,{'forceDefaultExecution':!0x0}),..._0x2c61a4),_0x3ade07[_0x3355('0xb')]()));},{'priority':_0x3355('0x69')});}['forceDefaultExecution'](_0x3d0e96){let _0x573973,_0x2602e3;const _0x44a37e=this[_0x3355('0x61')];this[_0x3355('0x61')]=!0x0;try{_0x573973=_0x3d0e96();}catch(_0x574aec){_0x2602e3=_0x574aec;}return _0x44a37e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2602e3&&_0x3c873b['rethrowUnexpectedError'](_0x2602e3,this),_0x573973;}['markInsertion'](_0x53c3f5,_0x2a1368=null,_0x4df9f4={}){if(_0x53c3f5[_0x3355('0x59')])return null;const _0x14bb4c=this[_0x3355('0x111')][_0x3355('0xcc')]['get']('Users')['me'];for(const {suggestion:_0x529b00,meta:_0x25d464}of this[_0x3355('0xf9')](_0x53c3f5,_0x3355('0x54')))if(_0x25d464['isOwn']){if(!_0x25d464[_0x3355('0xad')]){if(_0x25d464[_0x3355('0xaa')]){if(!this[_0x3355('0x85')]||!Ot(_0x529b00,_0x4df9f4))continue;return _0x529b00;}if(Ot(_0x529b00,_0x4df9f4))return _0x529b00;this[_0x3355('0xe')](_0x529b00,_0x53c3f5['start'],_0x53c3f5[_0x3355('0xf7')]);break;}if(_0x2a1368==_0x529b00[_0x3355('0x120')]&&Ot(_0x529b00,_0x4df9f4)){const _0x7bc077=_0x529b00[_0x3355('0x56')]();return _0x7bc077[_0x3355('0x145')][_0x3355('0xa0')](_0x53c3f5[_0x3355('0xf7')])?this[_0x3355('0x4f')](_0x529b00,this[_0x3355('0xbd')][_0x3355('0xae')](_0x53c3f5[_0x3355('0x145')],_0x7bc077[_0x3355('0xf7')])):this['_setSuggestionRange'](_0x529b00,this[_0x3355('0xbd')][_0x3355('0xae')](_0x7bc077['start'],_0x53c3f5[_0x3355('0xf7')])),_0x529b00;}}const _0x4a4e99=_0x140e3b(),_0x284d35=_0x14bb4c['id'],_0x5da89d=_0x2a1368?'insertion:'+_0x2a1368:_0x3355('0x54'),_0x23733c=this['_setSuggestionData']({'id':_0x4a4e99,'type':_0x5da89d,'createdAt':new Date(),'authorId':_0x284d35,'attributes':_0x4df9f4});return this[_0x3355('0x21')](_0x5da89d,_0x4a4e99,_0x284d35,_0x53c3f5),_0x23733c;}[_0x3355('0x13f')](_0x1d6c5d,_0x24cdbd=_0x3355('0xd6'),_0xbcc58={}){const _0x55f747=this[_0x3355('0x111')][_0x3355('0xcc')][_0x3355('0xb5')](_0x3355('0x6e'))['me'],_0x2abcdd=this['_suggestionFactory'][_0x3355('0x13a')](_0x3355('0x54'),_0x24cdbd,_0x3355('0x52'));for(const _0x505003 of this[_0x3355('0x5')]())if(_0x505003[_0x3355('0x128')]['id']==_0x55f747['id']&&_0x3355('0x54')==_0x505003[_0x3355('0x134')]&&_0x505003[_0x3355('0x120')]==_0x24cdbd&&Ot(_0x505003,_0xbcc58)&&(_0x2abcdd(_0x505003['getRanges'](),_0x1d6c5d)||_0x2abcdd(_0x1d6c5d,_0x505003['getRanges']()))){for(const _0x39d1dc of _0x1d6c5d)_0x505003[_0x3355('0x2c')](_0x39d1dc);return _0x505003;}for(const {suggestion:_0x23c7bd,meta:_0x369635}of this[_0x3355('0xf9')](_0x1d6c5d,_0x3355('0x54'))){if(!_0x369635[_0x3355('0xc0')])continue;if(!this['_mergeNestedSuggestions']&&_0x369635[_0x3355('0xaa')])continue;if(!Ot(_0x23c7bd,_0xbcc58))continue;let _0x1d561d=!0x0;for(const _0x736290 of _0x23c7bd[_0x3355('0xef')]())for(const _0xc24660 of _0x1d6c5d)if(!_0x736290[_0x3355('0x31')](_0xc24660)){_0x1d561d=!0x1;break;}if(_0x1d561d)return _0x23c7bd;}const _0x54e56e=_0x140e3b(),_0x5c83ca=_0x55f747['id'],_0x36882b=_0x3355('0x53')+_0x24cdbd,_0x5d76b6=this['_setSuggestionData']({'id':_0x54e56e,'type':_0x36882b,'createdAt':new Date(),'authorId':_0x5c83ca,'attributes':_0xbcc58});for(const _0x11cbb8 of _0x1d6c5d)this[_0x3355('0x21')](_0x36882b,_0x54e56e,_0x5c83ca,_0x11cbb8,_0x46901b[_0x3355('0x9b')]());return _0x5d76b6;}[_0x3355('0x78')](_0x4803e6,_0x293826,_0x170cd4=null,_0x87c1cc={}){if(_0x170cd4=_0x170cd4||Nt(_0x293826),_0x4803e6[_0x3355('0x59')])return null;if(_0x3355('0xf')===this[_0x3355('0xc2')]){const _0x5eda66=this[_0x3355('0x27')]['getSuggestionCallback']('formatInline',_0x170cd4,_0x3355('0xd1'));return this['forceDefaultExecution'](()=>_0x5eda66([_0x4803e6],_0x293826,_0x87c1cc)),null;}const _0x4f9ea1=this[_0x3355('0x111')]['plugins'][_0x3355('0xb5')]('Users')['me'],_0x13e506=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x386e2c,meta:_0xe4c0f7}of this['_findSuggestions'](_0x4803e6,'insertion'))_0xe4c0f7['isOwn']&&!_0xe4c0f7['isInsideObject']&&_0x13e506[_0x3355('0x6b')](..._0x386e2c[_0x3355('0xef')]());const _0x27dbfa=function(_0x52338e,_0xe52dc9){const _0x58e277=[];for(const _0x4339b0 of _0xe52dc9){const _0x106ea0=_0x52338e[_0x3355('0xfb')](_0x4339b0);_0x106ea0&&_0x58e277[_0x3355('0x6b')](_0x106ea0);}return _0x58e277;}(_0x4803e6,_0x13e506),_0x5df502=function(_0x192af4,_0x4061bf){const _0x1dae15=[_0x192af4];for(const _0x7341c1 of _0x4061bf){let _0x490874=0x0;for(;_0x490874<_0x1dae15[_0x3355('0x140')];){const _0xb3c0f9=_0x1dae15[_0x490874][_0x3355('0xa8')](_0x7341c1);_0x1dae15[_0x3355('0xa2')](_0x490874,0x1,..._0xb3c0f9),_0x490874+=_0xb3c0f9[_0x3355('0x140')];}}return _0x1dae15;}(_0x4803e6,_0x13e506);_0x27dbfa['length']&&this['_model'][_0x3355('0x109')](()=>{for(const _0x6fb746 of _0x27dbfa){const _0x7767ee=this[_0x3355('0x27')]['getSuggestionCallback'](_0x3355('0xe9'),_0x170cd4,_0x3355('0xd1'));this[_0x3355('0x2b')](()=>_0x7767ee([_0x6fb746],_0x293826,_0x87c1cc));}});for(const _0x28824c of _0x5df502){let _0x359a86=null,_0x5d6f5c=_0x28824c['start'],_0x541c55=_0x28824c[_0x3355('0xf7')];for(const {suggestion:_0x4799df,meta:_0x596cab}of this[_0x3355('0xf9')](_0x28824c,_0x3355('0xe9'))){if(!_0x596cab[_0x3355('0xc0')])continue;if(_0x4799df[_0x3355('0x120')]!=_0x170cd4)continue;if(!Ot(_0x4799df,_0x87c1cc))continue;const _0x10a9e6=_0x4799df[_0x3355('0x56')]();if(_0x10a9e6['containsRange'](_0x28824c,!0x0))return null;_0x5d6f5c=_0x5d6f5c['isBefore'](_0x10a9e6[_0x3355('0x145')])?_0x5d6f5c:_0x10a9e6[_0x3355('0x145')],_0x541c55=_0x541c55[_0x3355('0x115')](_0x10a9e6[_0x3355('0xf7')])?_0x541c55:_0x10a9e6[_0x3355('0xf7')],_0x359a86?_0x10a9e6[_0x3355('0x145')][_0x3355('0xa5')](_0x359a86[_0x3355('0x56')]()[_0x3355('0x145')])?(_0x359a86[_0x3355('0x67')](),_0x359a86=_0x4799df):_0x4799df[_0x3355('0x67')]():_0x359a86=_0x4799df;}const _0x4c97ff=this[_0x3355('0xbd')]['createRange'](_0x5d6f5c,_0x541c55);if(_0x359a86)this['_setSuggestionRange'](_0x359a86,_0x4c97ff);else{const _0xca41da=_0x140e3b(),_0x270cca=_0x4f9ea1['id'];this[_0x3355('0x72')]({'id':_0xca41da,'type':_0x3355('0x12a')+_0x170cd4,'data':_0x293826,'createdAt':new Date(),'authorId':_0x270cca,'attributes':_0x87c1cc}),this['_addSuggestionMarker'](_0x3355('0x12a')+_0x170cd4,_0xca41da,_0x270cca,_0x4c97ff);}}return null;}[_0x3355('0x14')](_0x26ea0c,_0x32f14c,_0x24115c=[],_0x2d0049=null,_0x36747a={}){_0x32f14c[_0x3355('0x97')]||(_0x32f14c[_0x3355('0x97')]=_0x32f14c[_0x3355('0x131')]),_0x32f14c[_0x3355('0xc7')]=_0x26ea0c['is'](_0x3355('0xd2')),_0x2d0049=_0x2d0049||Nt(_0x32f14c);const _0x37b70e=_0x24115c['map'](_0x6e04b9=>jt(_0x6e04b9,this[_0x3355('0xbd')])),_0x1c15da=_0x26ea0c['is'](_0x3355('0xd2'))?_0x26ea0c:jt(_0x26ea0c,this[_0x3355('0xbd')]);if(_0x3355('0xf')===this[_0x3355('0xc2')]){const _0x4a9275=this['_suggestionFactory'][_0x3355('0x13a')](_0x3355('0xdc'),_0x2d0049,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0x4a9275([_0x1c15da],_0x32f14c,_0x36747a)),null;}_0x37b70e[_0x3355('0x6b')](_0x1c15da);let _0x2446e6=!0x0;for(const _0x4843f6 of _0x37b70e)if(!this[_0x3355('0x12b')](_0x4843f6)){_0x2446e6=!0x1;break;}if(_0x2446e6&&_0x3355('0x38')!==this[_0x3355('0xc2')]){const _0xc73c14=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0xdc'),_0x2d0049,_0x3355('0xd1'));return this['forceDefaultExecution'](()=>_0xc73c14([_0x1c15da],_0x32f14c,_0x36747a)),null;}let _0x12ed4b=null,_0x15b18c=_0x1c15da[_0x3355('0x145')],_0x5aefe8=_0x1c15da[_0x3355('0xf7')];for(const {suggestion:_0xd21378,meta:_0x4fdc2f}of this[_0x3355('0xf9')](_0x1c15da,_0x3355('0xdc'))){if(!_0x4fdc2f[_0x3355('0xc0')])continue;if(_0x4fdc2f[_0x3355('0xad')]||_0x4fdc2f[_0x3355('0xaa')]||_0x4fdc2f[_0x3355('0xc')])continue;if(_0xd21378[_0x3355('0x82')][_0x3355('0x97')]!=_0x32f14c['formatGroupId'])continue;if(!Ot(_0xd21378,_0x36747a))continue;const _0x5ea031=_0xd21378['getFirstRange']();if(_0xd21378[_0x3355('0x120')]==_0x2d0049){if(_0x5ea031[_0x3355('0x31')](_0x1c15da,!0x0))return null;_0x15b18c=_0x15b18c[_0x3355('0xa5')](_0x5ea031[_0x3355('0x145')])?_0x15b18c:_0x5ea031['start'],_0x5aefe8=_0x5aefe8[_0x3355('0x115')](_0x5ea031[_0x3355('0xf7')])?_0x5aefe8:_0x5ea031['end'],_0x12ed4b?_0x5ea031[_0x3355('0x145')][_0x3355('0xa5')](_0x12ed4b[_0x3355('0x56')]()[_0x3355('0x145')])?(_0x12ed4b[_0x3355('0x67')](),_0x12ed4b=_0xd21378):_0xd21378[_0x3355('0x67')]():_0x12ed4b=_0xd21378;}else{const _0x8ca8c5=_0x1c15da['getIntersection'](_0x5ea031);this['_cutOutSuggestionMarker'](_0xd21378,_0x8ca8c5);}}const _0x54b965=this['editor'][_0x3355('0xcc')]['get'](_0x3355('0x6e'))['me'],_0xbe4433=_0x140e3b(),_0x2de249=_0x54b965['id'];if(_0x12ed4b)return this['_setSuggestionRange'](_0x12ed4b,this['_model'][_0x3355('0xae')](_0x15b18c,_0x5aefe8)),_0x12ed4b;{const _0x485321=this[_0x3355('0x72')]({'id':_0xbe4433,'type':_0x3355('0x114')+_0x2d0049,'data':_0x32f14c,'createdAt':new Date(),'authorId':_0x2de249,'attributes':_0x36747a});return this[_0x3355('0x21')](_0x3355('0x114')+_0x2d0049,_0xbe4433,_0x2de249,this[_0x3355('0xbd')][_0x3355('0xae')](_0x15b18c,_0x5aefe8)),_0x485321;}}[_0x3355('0x9c')](_0x59f0f8,_0x843498,_0x648772=[],_0x1e30a8=null,_0xa8cef2={}){_0x843498['formatGroupId']||(_0x843498['formatGroupId']=_0x843498[_0x3355('0x131')]);const _0x44194d=_0x59f0f8[0x0];_0x843498[_0x3355('0xc7')]=_0x44194d['is'](_0x3355('0xd2')),_0x1e30a8=_0x1e30a8||Nt(_0x843498);const _0x4a8b86=_0x648772['map'](_0x4a9d20=>jt(_0x4a9d20,this['_model'])),_0x5d3d1d=_0x44194d['is'](_0x3355('0xd2'))?_0x59f0f8:_0x59f0f8[_0x3355('0x4')](_0x1d245a=>jt(_0x1d245a,this[_0x3355('0xbd')]));if(_0x3355('0xf')===this[_0x3355('0xc2')]){const _0x4b9af6=this['_suggestionFactory'][_0x3355('0x13a')](_0x3355('0xdc'),_0x1e30a8,'accept');return this[_0x3355('0x2b')](()=>_0x4b9af6(_0x5d3d1d,_0x843498,_0xa8cef2)),null;}_0x4a8b86[_0x3355('0x6b')](..._0x5d3d1d);let _0x26e1ea=!0x0;for(const _0x278a81 of _0x4a8b86)if(!this['_rangeIsInLocalUserInsertion'](_0x278a81)){_0x26e1ea=!0x1;break;}if(_0x26e1ea&&'always'!==this[_0x3355('0xc2')]){const _0x3efde3=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0xdc'),_0x1e30a8,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0x3efde3(_0x5d3d1d,_0x843498,_0xa8cef2)),null;}const _0x55b5d7=this[_0x3355('0x111')][_0x3355('0xcc')]['get'](_0x3355('0x6e'))['me'];for(const _0x459df4 of this[_0x3355('0x5')]()){if(_0x459df4[_0x3355('0x128')]['id']!=_0x55b5d7['id'])continue;if(_0x3355('0xdc')!=_0x459df4['type']||_0x459df4[_0x3355('0x82')][_0x3355('0x97')]!=_0x843498['formatGroupId'])continue;if(!Ot(_0x459df4,_0xa8cef2))continue;const _0x1f75c4=_0x459df4['subType']==_0x1e30a8;for(let _0x597373=0x0;_0x597373<_0x5d3d1d['length'];_0x597373++){const _0x5d1214=_0x5d3d1d[_0x597373];for(const _0x6508d6 of _0x459df4['getMarkers']()){const _0x197c1c=_0x6508d6[_0x3355('0x10f')]();if(_0x5d1214['isEqual'](_0x197c1c)){_0x1f75c4?(_0x5d3d1d[_0x3355('0xa2')](_0x597373,0x1),_0x597373--):_0x459df4[_0x3355('0xe7')](_0x6508d6[_0x3355('0x139')]);break;}}}}if(0x0==_0x5d3d1d[_0x3355('0x140')])return null;const _0x5ebc5e=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0xdc'),_0x1e30a8,_0x3355('0x52'));for(const _0x59ae87 of this[_0x3355('0x5')]())if(_0x59ae87[_0x3355('0x128')]['id']==_0x55b5d7['id']&&'formatBlock'==_0x59ae87[_0x3355('0x134')]&&_0x59ae87[_0x3355('0x82')]['formatGroupId']==_0x843498['formatGroupId']&&_0x59ae87[_0x3355('0x120')]==_0x1e30a8&&Ot(_0x59ae87,_0xa8cef2)&&(_0x5ebc5e(_0x59ae87[_0x3355('0xef')](),_0x5d3d1d)||_0x5ebc5e(_0x5d3d1d,_0x59ae87['getRanges']()))){for(const _0xc6e428 of _0x5d3d1d)_0x59ae87[_0x3355('0x2c')](_0xc6e428);return _0x59ae87;}const _0x394b5c=_0x140e3b(),_0x443c12=_0x55b5d7['id'],_0x34234a=_0x3355('0x114')+_0x1e30a8,_0x36eb1f=this[_0x3355('0x72')]({'id':_0x394b5c,'type':_0x34234a,'data':_0x843498,'createdAt':new Date(),'authorId':_0x443c12,'attributes':_0xa8cef2});for(const _0x1595c2 of _0x5d3d1d)this['_addSuggestionMarker'](_0x34234a,_0x394b5c,_0x443c12,_0x1595c2,_0x46901b[_0x3355('0x9b')]());return _0x36eb1f;}['markDeletion'](_0x1f6d82,_0x566c78=null,_0x45addf={}){if(_0x1f6d82[_0x3355('0x59')])return null;const _0x33a214=this['editor'][_0x3355('0xcc')][_0x3355('0xb5')](_0x3355('0x6e'))['me'],_0x41ecd2=new _0x3bb391(_0x1f6d82[_0x3355('0x145')],_0x1f6d82['end']);for(const {suggestion:_0x56b914,meta:_0x3cc922}of this[_0x3355('0xf9')](_0x41ecd2,_0x3355('0x54')))if(_0x3cc922['isOwn']&&!_0x3cc922[_0x3355('0xad')]){if(_0x56b914[_0x3355('0xcb')]){const _0x3c3ed0=_0x56b914[_0x3355('0xef')]()['filter'](_0x46fb3f=>_0x3355('0xed')!=_0x46fb3f[_0x3355('0x100')][_0x3355('0x36')]);_0x3c3ed0['every'](_0x191d10=>_0x41ecd2[_0x3355('0x31')](_0x191d10,!0x0))&&_0x56b914[_0x3355('0x7a')]();if(_0x3c3ed0[_0x3355('0xba')](_0xfa9458=>_0xfa9458[_0x3355('0x31')](_0x41ecd2,!0x0))){const _0x2db2fc=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0x146'),_0x566c78,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0x2db2fc([_0x41ecd2],null,_0x45addf)),null;}}else{const _0x430a43=_0x41ecd2[_0x3355('0xfb')](_0x56b914[_0x3355('0x56')]());null!==_0x430a43&&_0x56b914[_0x3355('0xf4')]([_0x430a43],null,_0x45addf);}}if(_0x41ecd2['detach'](),_0x41ecd2['isCollapsed']||_0x3355('0xed')==_0x41ecd2[_0x3355('0x100')]['rootName'])return null;let _0x3fda65=null,_0x339b9a=_0x41ecd2[_0x3355('0x145')],_0x425cdb=_0x41ecd2['end'];const _0x2626d4=this['_findSuggestions'](_0x41ecd2,_0x3355('0x146'));for(const {suggestion:_0x3324c8,meta:_0x3dba89}of _0x2626d4){const _0x36f5bb=this[_0x3355('0xbd')][_0x3355('0xae')](_0x339b9a,_0x425cdb);if(_0x3dba89[_0x3355('0xc0')]&&(this[_0x3355('0x85')]||!_0x3dba89[_0x3355('0xaa')]&&!_0x3dba89['isInsideObject'])){if(_0x3324c8[_0x3355('0xcb')]){if(!Ot(_0x3324c8,_0x45addf))continue;let _0x1bea87=!0x0;for(const _0x32858e of _0x3324c8[_0x3355('0xef')]()){if(_0x32858e[_0x3355('0x31')](_0x36f5bb,!0x0))return _0x3324c8;_0x36f5bb[_0x3355('0x31')](_0x32858e)||(_0x1bea87=!0x1);}_0x1bea87&&_0x3324c8[_0x3355('0x7a')]();}else{const _0x4ad3d2=_0x3324c8[_0x3355('0x56')]();if(_0x4ad3d2[_0x3355('0x31')](_0x36f5bb,!0x0))return _0x3324c8;if(!Ot(_0x3324c8,_0x45addf)){_0x36f5bb[_0x3355('0x31')](_0x4ad3d2)?_0x3324c8['removeMarkers']():_0x4ad3d2[_0x3355('0x94')](_0x339b9a)?_0x339b9a=_0x4ad3d2[_0x3355('0xf7')]:_0x4ad3d2[_0x3355('0x94')](_0x425cdb)&&(_0x425cdb=_0x4ad3d2[_0x3355('0x145')]);continue;}_0x339b9a=_0x339b9a['isBefore'](_0x4ad3d2[_0x3355('0x145')])?_0x339b9a:_0x4ad3d2[_0x3355('0x145')],_0x425cdb=_0x425cdb[_0x3355('0x115')](_0x4ad3d2[_0x3355('0xf7')])?_0x425cdb:_0x4ad3d2[_0x3355('0xf7')],_0x45addf=Object[_0x3355('0x91')]({},_0x3324c8[_0x3355('0x42')]),_0x3fda65?_0x4ad3d2['start']['isBefore'](_0x3fda65['getFirstRange']()['start'])?(_0x3fda65[_0x3355('0x67')](),_0x3fda65=_0x3324c8):_0x3324c8[_0x3355('0x67')]():_0x3fda65=_0x3324c8;}}}if(_0x3fda65)return this[_0x3355('0x4f')](_0x3fda65,this[_0x3355('0xbd')][_0x3355('0xae')](_0x339b9a,_0x425cdb)),_0x3fda65;{const _0x562739=_0x140e3b(),_0xa14e3b=this[_0x3355('0xbd')][_0x3355('0xae')](_0x339b9a,_0x425cdb),_0x2b4be1=_0x33a214['id'],_0x447e5e=_0x566c78?_0x3355('0xa')+_0x566c78:_0x3355('0x146'),_0xbeb961=this[_0x3355('0x72')]({'id':_0x562739,'type':_0x447e5e,'createdAt':new Date(),'authorId':_0x2b4be1,'attributes':_0x45addf});return this['_addSuggestionMarker'](_0x447e5e,_0x562739,_0x2b4be1,_0xa14e3b),_0xbeb961;}}[_0x3355('0x80')](_0x48ec4e,_0x5380b9='multi',_0x3644ba={}){const _0xe7987a=this[_0x3355('0x111')]['plugins'][_0x3355('0xb5')]('Users')['me'],_0x5de55e=_0x48ec4e['map'](_0x41b754=>new _0x3bb391(_0x41b754['start'],_0x41b754['end'])),_0x4a6a8a=new Set();for(const {suggestion:_0x38aa15,meta:_0x331d2a}of this[_0x3355('0xf9')](_0x5de55e,_0x3355('0x54')))_0x331d2a[_0x3355('0xc0')]&&!_0x331d2a[_0x3355('0xad')]&&_0x4a6a8a[_0x3355('0x5e')](_0x38aa15);for(const _0x10a971 of _0x4a6a8a)if(_0x10a971['isMultiRange']){const _0x2017aa=_0x10a971[_0x3355('0xef')]();(!_0x10a971[_0x3355('0x42')]||!_0x10a971['attributes'][_0x3355('0xc5')])&&(_0x2017aa[_0x3355('0x32')](_0x20e712=>_0x5de55e[_0x3355('0xba')](_0x51f432=>_0x51f432[_0x3355('0x31')](_0x20e712,!0x0)))&&_0x10a971[_0x3355('0x7a')]());if(_0x5de55e['every'](_0x9d3b88=>_0x2017aa[_0x3355('0xba')](_0x4f61c7=>_0x4f61c7[_0x3355('0x31')](_0x9d3b88,!0x0)))){const _0x1b1a5c=this[_0x3355('0x27')][_0x3355('0x13a')](_0x3355('0x146'),_0x5380b9,'accept');return this['forceDefaultExecution'](()=>_0x1b1a5c(_0x48ec4e,null,_0x3644ba)),null;}}else{const _0x5b6676=_0x10a971[_0x3355('0x56')]();_0x5de55e['some'](_0x4f06cf=>_0x4f06cf['containsRange'](_0x5b6676,!0x0))&&_0x10a971['discard']();if(_0x5de55e[_0x3355('0x32')](_0x665c79=>_0x5b6676[_0x3355('0x31')](_0x665c79,!0x0))){const _0xd586f8=this[_0x3355('0x27')]['getSuggestionCallback'](_0x3355('0x146'),_0x5380b9,_0x3355('0xd1'));return this[_0x3355('0x2b')](()=>_0xd586f8(_0x5de55e,null,_0x3644ba)),null;}}const _0x50b203=this[_0x3355('0x27')]['getSuggestionCallback'](_0x3355('0x146'),_0x5380b9,_0x3355('0x52'));let _0x28bd46=null;for(const _0x431462 of this[_0x3355('0x5')]())if(_0x431462[_0x3355('0x128')]['id']==_0xe7987a['id']&&_0x431462[_0x3355('0xcd')]&&_0x3355('0x146')==_0x431462[_0x3355('0x134')]&&_0x431462['subType']==_0x5380b9&&Ot(_0x431462,_0x3644ba)&&(_0x50b203(_0x431462['getRanges'](),_0x5de55e)||_0x50b203(_0x5de55e,_0x431462['getRanges']()))){if(_0x28bd46){if(_0x431462[_0x3355('0x137')]&&_0x431462['commentThread'][_0x3355('0x140')])continue;for(const _0xc37e8a of _0x431462['getRanges']())_0x28bd46[_0x3355('0x1d')](_0xc37e8a)||_0x28bd46[_0x3355('0x2c')](_0xc37e8a);_0x431462[_0x3355('0x67')]();}else{_0x28bd46=_0x431462;for(const _0x211b19 of _0x5de55e)_0x431462[_0x3355('0x1d')](_0x211b19)||_0x431462['addRange'](_0x211b19);}}if(_0x28bd46)return _0x28bd46;_0x4a6a8a[_0x3355('0x10c')]();for(const {suggestion:_0x4f2fd0,meta:_0x213d97}of this[_0x3355('0xf9')](_0x5de55e,_0x3355('0x146')))_0x213d97[_0x3355('0xc0')]&&(this[_0x3355('0x85')]||!_0x213d97['containsRangeInObject']&&!_0x213d97['isInsideObject'])&&Ot(_0x4f2fd0,_0x3644ba)&&_0x4a6a8a[_0x3355('0x5e')](_0x4f2fd0);for(const _0x51b482 of _0x4a6a8a){const _0x1588db=_0x51b482[_0x3355('0xef')]();if(!_0x3644ba||!_0x3644ba['skipNestingCheck']){if(_0x5de55e[_0x3355('0x32')](_0x25d00a=>_0x1588db[_0x3355('0xba')](_0x2fffb4=>_0x2fffb4['containsRange'](_0x25d00a,!0x0))))return _0x51b482;}(!_0x51b482[_0x3355('0x42')]||!_0x51b482[_0x3355('0x42')]['skipNestingCheck'])&&(_0x1588db[_0x3355('0x32')](_0x291251=>_0x5de55e[_0x3355('0xba')](_0xf4e7fd=>_0xf4e7fd['containsRange'](_0x291251,!0x0)))&&_0x51b482['discard']());}const _0x18b0f8=_0x140e3b(),_0xc6deda=_0xe7987a['id'],_0x52b81e='deletion:'+_0x5380b9,_0x18b169=this[_0x3355('0x72')]({'id':_0x18b0f8,'type':_0x52b81e,'createdAt':new Date(),'authorId':_0xc6deda,'attributes':_0x3644ba});for(const _0x170c4 of _0x5de55e)_0x170c4[_0x3355('0xe1')](),_0x170c4[_0x3355('0x59')]||_0x3355('0xed')==_0x170c4[_0x3355('0x100')][_0x3355('0x36')]||this[_0x3355('0x21')](_0x52b81e,_0x18b0f8,_0xc6deda,_0x170c4,_0x46901b[_0x3355('0x9b')]());return _0x18b169;}[_0x3355('0x4f')](_0x800b3b,_0x46ace3){const _0x4d2762=_0x800b3b['getFirstMarker']();this[_0x3355('0xbd')][_0x3355('0x109')](_0x16da41=>{_0x16da41['updateMarker'](_0x4d2762,{'range':_0x46ace3});});}[_0x3355('0x6a')](_0x2df725){const _0x257daa=_0x2df725['id'],_0x1a279b=this[_0x3355('0x111')]['config']['get'](_0x3355('0x10d'));this['_commentsRepository']['hasCommentThread'](_0x257daa)||this[_0x3355('0x7d')][_0x3355('0x3f')]({'channelId':_0x1a279b,'threadId':_0x257daa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x288b53=this[_0x3355('0x7d')][_0x3355('0xe5')](_0x257daa);_0x288b53['unbind'](_0x3355('0xe8')),_0x288b53['isRemovable']=!0x1,_0x2df725[_0x3355('0x137')]=_0x288b53;}[_0x3355('0x86')](_0x3e5cdc,_0x4711ac,_0x47c5a2,_0xdb27c){if(_0x3e5cdc[_0x3355('0x134')]!=_0x4711ac||_0x3e5cdc[_0x3355('0x120')]!=_0x47c5a2||_0x3e5cdc[_0x3355('0xda')]['id']!=_0xdb27c)throw this[_0x3355('0x111')]['enableReadOnlyMode'](_0x3355('0x11f')),new _0x3c873b('track-changes-suggestion-data-mismatch',this);}[_0x3355('0x2e')](_0x589174,_0x1d3f55){const _0x22735f=_0x589174[_0x3355('0x56')]();if(_0x1d3f55[_0x3355('0xa0')](_0x22735f))_0x589174[_0x3355('0x67')]();else{if(_0x22735f[_0x3355('0x31')](_0x1d3f55)){const _0x3bfc67=this[_0x3355('0xbd')][_0x3355('0x99')](_0x1d3f55[_0x3355('0x145')][_0x3355('0x45')],'end');this[_0x3355('0x4f')](_0x589174,this['_model'][_0x3355('0xae')](_0x22735f['start'],_0x3bfc67));const _0x58c839=_0x140e3b(),_0x2d5d88=_0x589174[_0x3355('0xda')]['id'],_0x47b688=_0x589174[_0x3355('0x134')]+':'+_0x589174[_0x3355('0x120')];this['_setSuggestionData']({'id':_0x58c839,'type':_0x47b688,'createdAt':new Date(),'authorId':_0x2d5d88,'data':_0x589174[_0x3355('0x82')],'attributes':_0x589174[_0x3355('0x42')]});const _0x233f19=this[_0x3355('0xbd')][_0x3355('0x99')](_0x1d3f55[_0x3355('0xf7')][_0x3355('0x7c')],'after'),_0x4c9cee=this[_0x3355('0xbd')][_0x3355('0xae')](_0x233f19,_0x22735f[_0x3355('0xf7')]);this[_0x3355('0x21')](_0x47b688,_0x58c839,_0x2d5d88,_0x4c9cee);}else{if(_0x22735f[_0x3355('0x94')](_0x1d3f55[_0x3355('0x145')])){const _0x433d9b=this[_0x3355('0xbd')]['createPositionAt'](_0x1d3f55[_0x3355('0x145')][_0x3355('0x45')],_0x3355('0xf7'));this['_setSuggestionRange'](_0x589174,this['_model'][_0x3355('0xae')](_0x22735f[_0x3355('0x145')],_0x433d9b));}else{const _0x5810f7=this[_0x3355('0xbd')][_0x3355('0x99')](_0x1d3f55[_0x3355('0xf7')][_0x3355('0x7c')],_0x3355('0xeb'));this['_setSuggestionRange'](_0x589174,this[_0x3355('0xbd')][_0x3355('0xae')](_0x5810f7,_0x22735f[_0x3355('0xf7')]));}}}}[_0x3355('0x12b')](_0x38447e){for(const {suggestion:_0x536809,meta:_0x3d277c}of this[_0x3355('0xf9')](_0x38447e,_0x3355('0x54'))){if(!_0x3d277c['isOwn'])continue;const _0x3ed146=_0x536809['getRanges']();for(const _0x43882f of _0x3ed146)if(!_0x38447e['getDifference'](_0x43882f)[_0x3355('0x140')])return!0x0;}return!0x1;}[_0x3355('0xab')](_0x3d7f53){const _0x5b476c=this[_0x3355('0x111')][_0x3355('0xcc')]['get']('Users')['getUser'](_0x3d7f53);if(!_0x5b476c)throw new _0x3c873b(_0x3355('0x62'),this);return _0x5b476c;}['_getExternalAuthor'](_0x11184a){const _0x194cea=this['editor']['plugins'][_0x3355('0xb5')]('Users'),_0x10ea19=_0x2967d9('external:'+_0x11184a),_0x3389a9=_0x194cea['getUser'](_0x10ea19);return _0x3389a9||_0x194cea[_0x3355('0x34')]({'id':_0x10ea19,'name':_0x11184a});}[_0x3355('0x87')](_0x1a50d8,_0x308abd,_0x5ef8cf,_0x40702c,_0x443bdd){const _0x19e0b2=this[_0x3355('0xab')](_0x40702c),_0x10f49b=this[_0x3355('0x27')]['buildSuggestion'](_0x1a50d8,_0x308abd,_0x5ef8cf,_0x19e0b2,_0x443bdd,_0x381748=>this[_0x3355('0x125')](_0x5ef8cf,{'attributes':_0x381748}));return this['listenTo'](_0x10f49b,'accept',()=>{this['_updateSuggestionData'](_0x5ef8cf,{'state':_0x3355('0x118')});},{'priority':_0x3355('0x69')}),this[_0x3355('0x9a')](_0x10f49b,_0x3355('0x7a'),()=>{this[_0x3355('0x125')](_0x5ef8cf,{'state':_0x3355('0x83')});},{'priority':_0x3355('0x69')}),this[_0x3355('0x3a')][_0x3355('0x73')](_0x5ef8cf,_0x10f49b),this['_suggestionState'][_0x3355('0x73')](_0x10f49b,'notReady'),_0x10f49b;}[_0x3355('0x9')](_0x366bfd){const _0xa898e8=_0x366bfd[_0x3355('0x12e')](':');return{'group':_0xa898e8[0x0],'type':_0xa898e8[0x1],'subType':_0xa898e8[_0x3355('0x140')]>=0x5?_0xa898e8[0x2]:null,'id':_0xa898e8[_0x3355('0x140')]<0x5?_0xa898e8[0x2]:_0xa898e8[0x3],'authorId':_0xa898e8['length']<0x5?_0xa898e8[0x3]:_0xa898e8[0x4],'markerCount':0x6==_0xa898e8[_0x3355('0x140')]?_0xa898e8[0x5]:null};}[_0x3355('0xe')](_0x41a0ad,_0x21688b,_0x562340){const _0x3d9a1a=_0x41a0ad[_0x3355('0x56')](),_0x504ecc=_0x3d9a1a['start'],_0x7bb9fa=_0x3d9a1a[_0x3355('0xf7')];this[_0x3355('0x4f')](_0x41a0ad,this[_0x3355('0xbd')]['createRange'](_0x504ecc,_0x21688b));const _0xe7d48=_0x140e3b(),_0x43af98=_0x41a0ad[_0x3355('0xda')]['id'],_0x3812f1=_0x41a0ad[_0x3355('0x134')]+(_0x41a0ad[_0x3355('0x120')]?':'+_0x41a0ad[_0x3355('0x120')]:'');this[_0x3355('0x72')]({'id':_0xe7d48,'type':_0x3812f1,'createdAt':new Date(),'authorId':_0x43af98,'originalSuggestionId':_0x41a0ad['id'],'attributes':_0x41a0ad[_0x3355('0x42')],'data':_0x41a0ad[_0x3355('0x82')]}),_0x3355('0xdc')==_0x41a0ad['type']&&(_0x562340=this[_0x3355('0xbd')][_0x3355('0xca')](_0x562340[_0x3355('0x7c')])),this[_0x3355('0x21')](_0x3812f1,_0xe7d48,_0x43af98,this[_0x3355('0xbd')]['createRange'](_0x562340,_0x7bb9fa));}[_0x3355('0xf9')](_0xcdb7f6,_0x3f8986=null){const _0x5dc696=[],_0x2a0b36=this[_0x3355('0x111')][_0x3355('0xcc')]['get']('Users')['me'];Array[_0x3355('0x127')](_0xcdb7f6)||(_0xcdb7f6=[_0xcdb7f6]);for(const _0x3e5484 of this[_0x3355('0x5')]()){if(!_0x3e5484['isInContent'])continue;if(_0x3f8986&&_0x3e5484[_0x3355('0x134')]!=_0x3f8986)continue;let _0x45835e=!0x1;for(const _0x12c06e of _0x3e5484[_0x3355('0xef')]()){for(const _0x1c46e5 of _0xcdb7f6){const _0x36e655=_0x1c46e5[_0x3355('0x145')]['isEqual'](_0x12c06e['end'])||_0x1c46e5['end'][_0x3355('0xa0')](_0x12c06e['start']);if(_0x36e655||_0x1c46e5['getIntersection'](_0x12c06e)){const _0x13d71f=_0x1c46e5[_0x3355('0x31')](_0x12c06e)&&_t(this[_0x3355('0xbd')]['schema'],_0x12c06e[_0x3355('0x145')],_0x1c46e5),_0x4ac8cd=_0x12c06e[_0x3355('0x31')](_0x1c46e5)&&_t(this['_model'][_0x3355('0x88')],_0x1c46e5[_0x3355('0x145')],_0x12c06e);_0x5dc696[_0x3355('0x6b')]({'suggestion':_0x3e5484,'meta':{'isOwn':_0x2a0b36==_0x3e5484[_0x3355('0x128')],'isNextTo':_0x36e655,'isInsideObject':_0x13d71f,'containsRangeInObject':_0x4ac8cd}}),_0x45835e=!0x0;break;}}if(_0x45835e)break;}}return _0x5dc696;}['_addSuggestionMarker'](_0x2a641c,_0x37552b,_0xe29064,_0x12a024,_0x1d76f4){this[_0x3355('0xbd')]['change'](_0x2f76f0=>{let _0x1916b3=_0x3355('0x40')+_0x2a641c+':'+_0x37552b+':'+_0xe29064;_0x1d76f4&&(_0x1916b3=_0x1916b3+':'+_0x1d76f4),_0x2f76f0[_0x3355('0x1')](_0x1916b3,{'range':_0x12a024,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3355('0xf1')](_0x3d2e0b){const _0x266a90=_0x3d2e0b[_0x3355('0x12')],_0x31331e=_0x3d2e0b[_0x3355('0x28')];_0x3d2e0b[_0x3355('0x12')]=null,null!=_0x266a90&&(_0x266a90['next']=null),_0x3d2e0b[_0x3355('0x28')]=null,null!=_0x31331e&&(_0x31331e['previous']=null),_0x3355('0x77')==this[_0x3355('0x46')][_0x3355('0xb5')](_0x3d2e0b)&&(this[_0x3355('0x46')][_0x3355('0x73')](_0x3d2e0b,'removed'),this[_0x3355('0xa3')](_0x3355('0xc9'),_0x3d2e0b,_0x266a90,_0x31331e));}[_0x3355('0x72')](_0x4fa685){const _0x33903f=_0x4fa685['id'],_0x2bc474=this[_0x3355('0xb9')](_0x4fa685);if(this[_0x3355('0x105')]&&this[_0x3355('0x105')][_0x3355('0x68')]){const _0x206417=this[_0x3355('0x111')][_0x3355('0xcc')][_0x3355('0xb5')](_0x3355('0x24')),_0xb134ee=_0x2bc474[_0x3355('0x41')],_0xdc29d1=_0x2bc474[_0x3355('0x120')]?_0x2bc474[_0x3355('0x134')]+':'+_0x2bc474[_0x3355('0x120')]:_0x2bc474[_0x3355('0x134')],_0x362462=this[_0x3355('0x111')][_0x3355('0xcf')],_0x2937e6=_0x206417['add'](_0x5723bb(_0x362462,_0x3355('0xb2'))),_0x124834={'id':_0x33903f,'type':_0xdc29d1,'hasComments':_0xb134ee,'data':_0x4fa685[_0x3355('0x82')]||null,'originalSuggestionId':_0x4fa685[_0x3355('0xb7')]||null,'attributes':_0x2bc474[_0x3355('0x42')]};this['_adapter']['addSuggestion'](_0x124834)[_0x3355('0xc4')](_0x4f9cde=>{_0x2bc474[_0x3355('0xb8')]=!0x0,_0x206417[_0x3355('0x3e')](_0x2937e6),_0x4f9cde&&_0x4f9cde[_0x3355('0x8')]&&(this[_0x3355('0x3a')]['get'](_0x33903f)[_0x3355('0x8')]=_0x4f9cde[_0x3355('0x8')]);})['catch'](_0x549848=>{throw _0x48fb86('error-saving-suggestion-data-suggestion-discarded'),this[_0x3355('0x111')][_0x3355('0x90')][_0x3355('0xdf')]({'isUndoable':!0x1},()=>{_0x2bc474['discard']();}),_0x2bc474[_0x3355('0x30')](),this[_0x3355('0x3a')][_0x3355('0x75')](_0x2bc474['id']),this[_0x3355('0x46')]['delete'](_0x2bc474),_0x549848;});}return _0x2bc474;}['_updateSuggestionData'](_0x15e3dd,_0x34fd21){const _0x47bfe0=this[_0x3355('0x111')]['plugins'][_0x3355('0xb5')](_0x3355('0x24')),_0xdb6e4e=this[_0x3355('0x96')](_0x15e3dd);if(this['_adapter']&&this[_0x3355('0x105')][_0x3355('0x138')]){if(_0xdb6e4e[_0x3355('0xb8')]){const _0x53890f=_0x47bfe0['add'](_0x5723bb(this['editor'][_0x3355('0xcf')],'PENDING_ACTION_SUGGESTION'));this[_0x3355('0x105')]['updateSuggestion'](_0x15e3dd,_0x34fd21)['then'](()=>{_0x47bfe0['remove'](_0x53890f);});}else _0xdb6e4e['on'](_0x3355('0x2f'),()=>{this[_0x3355('0x125')](_0x15e3dd,_0x34fd21);});}}[_0x3355('0x60')](_0x171799){if(!this[_0x3355('0x105')]||!this[_0x3355('0x105')][_0x3355('0x96')])throw new _0x3c873b('track-changes-adapter-missing-getsuggestion',this);return this[_0x3355('0x105')][_0x3355('0x96')](_0x171799);}[_0x3355('0x4d')](_0x192cef){const {id:_0x47361f,type:_0x5810bb,subType:_0x39b2c1,authorId:_0x58a52d}=this[_0x3355('0x9')](_0x192cef),_0x1b5607=this[_0x3355('0x3a')][_0x3355('0xb5')](_0x47361f)||this['_createSuggestion'](_0x5810bb,_0x39b2c1,_0x47361f,_0x58a52d,{});switch(this[_0x3355('0x86')](_0x1b5607,_0x5810bb,_0x39b2c1,_0x58a52d),this[_0x3355('0x46')][_0x3355('0xb5')](_0x1b5607)){case _0x3355('0x4a'):this[_0x3355('0x60')](_0x47361f)[_0x3355('0xc4')](_0xade6eb=>{let _0x4717e8=Promise[_0x3355('0x8f')]();_0xade6eb[_0x3355('0x41')]&&(_0x4717e8=this[_0x3355('0x7d')][_0x3355('0xbe')]({'channelId':this[_0x3355('0x111')][_0x3355('0x5d')][_0x3355('0xb5')]('collaboration.channelId'),'threadId':_0x47361f})),_0x4717e8['then'](()=>{this['addSuggestionData'](_0xade6eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1b5607,_0x3355('0x5f'));break;case _0x3355('0x57'):this[_0x3355('0x125')](_0x47361f,{'state':'open'});case _0x3355('0xd7'):this[_0x3355('0x46')][_0x3355('0x73')](_0x1b5607,_0x3355('0x77')),this['fire']('suggestionLoaded',_0x1b5607);break;case _0x3355('0x77'):this[_0x3355('0xa3')]('suggestionChanged',_0x1b5607);}return _0x1b5607[_0x3355('0xfd')](_0x192cef),_0x1b5607;}[_0x3355('0xe6')](_0x219739){const _0x188c2b=Array[_0x3355('0x1c')](_0x219739)[_0x3355('0x13e')](_0x550ef9=>!_0x550ef9[_0x3355('0xcb')]),_0x532d0d=this[_0x3355('0x5')]({'skipNotAttached':!0x0})['filter'](_0xb42ca4=>!_0xb42ca4[_0x3355('0xcb')]),_0x1464ec=_0x532d0d['filter'](_0x10e7b0=>!_0x219739[_0x3355('0x9d')](_0x10e7b0)),_0x2d707b=new Map(_0x532d0d[_0x3355('0x4')](_0x27912a=>[_0x27912a,this[_0x3355('0x27')]['getSuggestionCallback'](_0x27912a[_0x3355('0x134')],_0x27912a[_0x3355('0x120')],_0x3355('0xb6'))])),_0x270ab4=new Map(_0x532d0d[_0x3355('0x4')](_0x2f9bbd=>[_0x2f9bbd,_0x2f9bbd[_0x3355('0x56')]()])),_0x479d4d=new Set(),_0x3ce288=new Set();for(let _0x29380a=0x0;_0x29380a<_0x188c2b[_0x3355('0x140')];_0x29380a++)_0x2e432d(_0x188c2b[_0x29380a],_0x188c2b,_0x29380a+0x1);for(let _0x1f22fb=0x0;_0x1f22fb<_0x188c2b['length'];_0x1f22fb++)_0x2e432d(_0x188c2b[_0x1f22fb],_0x1464ec,0x0);for(let _0x5ba0f9=0x0;_0x5ba0f9<_0x188c2b[_0x3355('0x140')];_0x5ba0f9++){const _0x522e31=_0x188c2b[_0x5ba0f9];!_0x3ce288['has'](_0x522e31)&&_0x522e31[_0x3355('0x12')]&&(_0x522e31[_0x3355('0x12')][_0x3355('0x28')]===_0x522e31&&(_0x522e31[_0x3355('0x12')][_0x3355('0x28')]=null),_0x522e31['previous']=null),!_0x479d4d[_0x3355('0x9d')](_0x522e31)&&_0x522e31[_0x3355('0x28')]&&(_0x522e31['next'][_0x3355('0x12')]===_0x522e31&&(_0x522e31[_0x3355('0x28')][_0x3355('0x12')]=null),_0x522e31[_0x3355('0x28')]=null);}function _0x2e432d(_0xe34db5,_0x13edd8,_0x29e2b0){for(let _0x12b20a=_0x29e2b0;_0x12b20a<_0x13edd8['length'];_0x12b20a++){const _0x287e8f=_0x67ae3(_0xe34db5,_0x13edd8[_0x12b20a]);_0x287e8f&&(_0x287e8f[0x0][_0x3355('0x28')]=_0x287e8f[0x1],_0x287e8f[0x1][_0x3355('0x12')]=_0x287e8f[0x0],_0x479d4d[_0x3355('0x5e')](_0x287e8f[0x0]),_0x3ce288[_0x3355('0x5e')](_0x287e8f[0x1]));}}function _0x67ae3(_0x13a8d8,_0x56727f){if(_0x13a8d8[_0x3355('0x128')]['id']!==_0x56727f['author']['id'])return null;const _0x163360=_0x2d707b['get'](_0x13a8d8)(_0x13a8d8,_0x56727f,_0x270ab4[_0x3355('0xb5')](_0x13a8d8),_0x270ab4[_0x3355('0xb5')](_0x56727f));if(!_0x163360)return null;return _0x2d707b['get'](_0x56727f)(_0x13a8d8,_0x56727f,_0x270ab4['get'](_0x13a8d8),_0x270ab4[_0x3355('0xb5')](_0x56727f))?_0x163360[0x1]['commentThread']&&_0x163360[0x1]['commentThread'][_0x3355('0x140')]?null:_0x163360:null;}}[_0x3355('0x11c')](_0x14aad3){const _0x5db74e=Array[_0x3355('0x1c')](_0x14aad3),_0x43717e=this[_0x3355('0x5')]({'skipNotAttached':!0x0}),_0x1ea55d=_0x43717e[_0x3355('0x13e')](_0x495c2a=>!_0x14aad3[_0x3355('0x9d')](_0x495c2a)),_0x4e14f7=new Map(_0x5db74e['map'](_0xb24d1d=>[_0xb24d1d,this['_suggestionFactory'][_0x3355('0x13a')](_0xb24d1d['type'],_0xb24d1d[_0x3355('0x120')],_0x3355('0x52'))])),_0x555ef7=new Map(_0x43717e[_0x3355('0x4')](_0x134a09=>[_0x134a09,_0x134a09['getRanges']()]));for(let _0x20decb=0x0;_0x20decb<_0x5db74e['length'];_0x20decb++){if(_0x4cd08b(this,_0x5db74e[_0x20decb],_0x5db74e,_0x20decb+0x1))return!0x0;}for(let _0x53392e=0x0;_0x53392e<_0x5db74e[_0x3355('0x140')];_0x53392e++){if(_0x4cd08b(this,_0x5db74e[_0x53392e],_0x1ea55d,0x0))return!0x0;}return!0x1;function _0x4cd08b(_0x6eb923,_0x247182,_0x470285,_0x211577){for(let _0x414fef=_0x211577;_0x414fef<_0x470285[_0x3355('0x140')];_0x414fef++){const _0x4093b5=_0x470285[_0x414fef];if(_0x4093b5[_0x3355('0x134')]!==_0x247182[_0x3355('0x134')]||_0x4093b5[_0x3355('0x128')]['id']!==_0x247182[_0x3355('0x128')]['id']||_0x4093b5[_0x3355('0x120')]!==_0x247182[_0x3355('0x120')])continue;if(!Ut(_0x247182,_0x4093b5))continue;const _0x1cb87c=_0x4e14f7[_0x3355('0xb5')](_0x247182),_0x15da2b=_0x555ef7[_0x3355('0xb5')](_0x247182),_0x367ada=_0x555ef7[_0x3355('0xb5')](_0x4093b5),_0xf31b15=_0x247182['commentThread']&&_0x247182['commentThread'][_0x3355('0x140')],_0xcdb8a0=_0x4093b5[_0x3355('0x137')]&&_0x4093b5[_0x3355('0x137')][_0x3355('0x140')];if(!_0xf31b15&&_0x1cb87c(_0x367ada,_0x15da2b))return _0x6eb923[_0x3355('0x1f')](_0x4093b5,_0x247182),_0x555ef7[_0x3355('0x75')](_0x247182),!0x0;if(!_0xcdb8a0&&_0x1cb87c(_0x15da2b,_0x367ada))return _0x6eb923[_0x3355('0x1f')](_0x247182,_0x4093b5),_0x555ef7[_0x3355('0x75')](_0x4093b5),!0x0;}return!0x1;}}[_0x3355('0x1f')](_0x7f26a4,_0xf1c7ba){if(_0x7f26a4[_0x3355('0xcb')])for(const _0xd42eb7 of _0xf1c7ba[_0x3355('0xef')]())_0x7f26a4[_0x3355('0x2c')](_0xd42eb7);else{const _0x1fc8eb=_0xf1c7ba[_0x3355('0x56')]()[_0x3355('0xf7')];this[_0x3355('0x4f')](_0x7f26a4,this[_0x3355('0xbd')][_0x3355('0xae')](_0x7f26a4[_0x3355('0x56')]()[_0x3355('0x145')],_0x1fc8eb));}_0xf1c7ba['removeMarkers']();}}class Bt{constructor(_0x52fc33){this[_0x3355('0x39')]=_0x52fc33,this['_model']=_0x52fc33[_0x3355('0x90')],this[_0x3355('0x11d')]=new Map(),this[_0x3355('0x141')]=new Map(),this[_0x3355('0x12c')]();}['buildSuggestion'](_0xa5087,_0x3b94aa,_0xbdc920,_0x1af579,_0x44b1ac,_0xb80467){return new _0x46901b(this[_0x3355('0xbd')],{'type':_0xa5087,'subType':_0x3b94aa,'id':_0xbdc920,'author':_0x1af579,'creator':_0x1af579,'attributes':_0x44b1ac,'onAttributesChange':_0xb80467,'onAccept':(..._0x548160)=>this[_0x3355('0x13a')](_0xa5087,_0x3b94aa,_0x3355('0xd1'))(..._0x548160),'onDiscard':(..._0x1e49e7)=>this[_0x3355('0x13a')](_0xa5087,_0x3b94aa,'discard')(..._0x1e49e7)});}[_0x3355('0x19')](_0x5b25b9,_0x572103,_0x58d44a,_0x5b45c3){const _0x86aa94=_0x5b25b9+':'+_0x572103+':'+_0x58d44a;this[_0x3355('0x11d')][_0x3355('0x73')](_0x86aa94,_0x5b45c3);}['getSuggestionCallback'](_0x1c3493,_0x2a1000,_0x457267){const _0x14be3f=_0x1c3493+':'+_0x2a1000+':'+_0x457267;return this[_0x3355('0x11d')]['get'](_0x14be3f)||this[_0x3355('0x141')][_0x3355('0xb5')](_0x1c3493+':'+_0x457267);}[_0x3355('0x12c')](){const _0x5b84d5=()=>!0x1,_0x3087a3=_0x3b5bc7=>{_0x3b5bc7[_0x3355('0x17')]((_0x3284b2,_0x28d503)=>_0x3284b2[_0x3355('0x145')][_0x3355('0xa5')](_0x28d503[_0x3355('0x145')])?0x1:-0x1),this['_model'][_0x3355('0x109')](_0xf36436=>{for(const _0x5def1d of _0x3b5bc7){let _0x1dc730;_0x1dc730=_0x5def1d[_0x3355('0xf7')]['isAtEnd']&&_0x5def1d[_0x3355('0xf7')][_0x3355('0x7c')]==_0x5def1d[_0x3355('0x145')][_0x3355('0xa1')]?_0xf36436[_0x3355('0x11')](_0x5def1d[_0x3355('0x145')]['nodeAfter'],'on'):_0xf36436[_0x3355('0x11')](_0x5def1d),this[_0x3355('0xbd')][_0x3355('0x107')](_0x1dc730,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c4166=(_0xd2195a,_0x1bbb5f)=>{this['_model']['change'](_0x34461b=>{const {commandName:_0x52648c,commandParams:_0x4e8780=[]}=_0x1bbb5f,_0x62bdf8=_0xd2195a[_0x3355('0x4')](_0x5cad61=>(Mt(_0x5cad61)&&(_0x5cad61=this[_0x3355('0xbd')][_0x3355('0xae')](_0x5cad61[_0x3355('0xf7')])),_0x5cad61))[_0x3355('0x13e')](_0x265077=>_0x3355('0xed')!==_0x265077[_0x3355('0x100')]['rootName']);if(_0x62bdf8[_0x3355('0x140')]<0x1)return;const _0x3f1921=Array[_0x3355('0x1c')](this[_0x3355('0xbd')][_0x3355('0xd')][_0x3355('0x2a')][_0x3355('0xef')]())[_0x3355('0x4')](_0x6a1b51=>_0x3bb391[_0x3355('0x121')](_0x6a1b51));_0x34461b['setSelection'](_0x62bdf8);for(const _0x82ddc8 of this[_0x3355('0x39')]['commands'][_0x3355('0x43')]())_0x82ddc8[_0x3355('0xe3')]();_0x4e8780[_0x3355('0x6b')]({'forceDefaultExecution':!0x0}),this[_0x3355('0x39')]['execute'](_0x52648c,..._0x4e8780);const _0x5e60a5=_0x3f1921[_0x3355('0x13e')](_0x617efc=>_0x3355('0xed')!=_0x617efc[_0x3355('0x100')][_0x3355('0x36')]);_0x5e60a5[_0x3355('0x140')]>0x0&&_0x34461b[_0x3355('0x84')](_0x5e60a5);for(const _0x101f38 of _0x3f1921)_0x101f38[_0x3355('0xe1')]();});},_0x2cc2ba=(_0x287c27,_0x5dfdeb)=>0x1==_0x287c27[_0x3355('0x140')]&&0x1==_0x5dfdeb[_0x3355('0x140')]&&_0x287c27[0x0]['end']['isEqual'](_0x5dfdeb[0x0][_0x3355('0x145')]),_0x474dd1=(_0x8497ae,_0x753803,_0x537b2f,_0x63e87e)=>xt(_0x8497ae,_0x753803,_0x537b2f,_0x63e87e,this[_0x3355('0xbd')])?[_0x8497ae,_0x753803]:xt(_0x753803,_0x8497ae,_0x63e87e,_0x537b2f,this[_0x3355('0xbd')])?[_0x753803,_0x8497ae]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5b84d5),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x64'),_0x3087a3),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x122'),_0x2cc2ba),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x12f'),_0x474dd1),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x11e'),_0x3087a3),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x13d'),_0x5b84d5),this['_defaultCallbacks']['set'](_0x3355('0xb1'),_0x2cc2ba),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x15'),_0x474dd1),this[_0x3355('0x141')][_0x3355('0x73')]('formatInline:accept',_0x2c4166),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0xdd'),_0x5b84d5),this[_0x3355('0x141')]['set'](_0x3355('0xc3'),_0x2cc2ba),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x55'),_0x5b84d5),this['_defaultCallbacks'][_0x3355('0x73')](_0x3355('0x3c'),_0x2c4166),this[_0x3355('0x141')][_0x3355('0x73')]('formatBlock:discard',_0x5b84d5),this[_0x3355('0x141')][_0x3355('0x73')](_0x3355('0x6c'),_0x2cc2ba),this['_defaultCallbacks'][_0x3355('0x73')](_0x3355('0x130'),_0x5b84d5);}}function _t(_0x1eaf07,_0x3bea6c,_0x250bbf){for(const _0x4136a4 of _0x3bea6c[_0x3355('0x7c')][_0x3355('0x126')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4136a4[_0x3355('0x100')]==_0x4136a4)return!0x1;if(!_0x250bbf[_0x3355('0x113')](_0x4136a4))return!0x1;if(_0x1eaf07[_0x3355('0xbb')](_0x4136a4)||_0x1eaf07['isLimit'](_0x4136a4))return!0x0;}return!0x1;}function Mt(_0x2b2f5f){return _0x2b2f5f['end'][_0x3355('0x7c')]==_0x2b2f5f[_0x3355('0x145')]['nodeAfter']&&_0x2b2f5f['end']['isAtStart'];}function $t(_0x2c923d,_0x522f62,_0x24d780,_0x1d3237){const _0x342304=_0x4ae348=>!_0x4ae348['item']['is'](_0x3355('0x9e'))&&!_0x1d3237[_0x3355('0xbb')](_0x4ae348['item']),_0x52ca66=_0x2c923d[_0x3355('0x145')][_0x3355('0x3b')](_0x342304),_0x1c402e=_0x2c923d[_0x3355('0xf7')][_0x3355('0x3b')](_0x342304,{'direction':_0x3355('0x13')});return(!_0x2c923d[_0x3355('0x145')]['isEqual'](_0x52ca66)||!_0x2c923d[_0x3355('0xf7')][_0x3355('0xa0')](_0x1c402e))&&(_0x52ca66[_0x3355('0xa5')](_0x1c402e)?_0x24d780[_0x3355('0x11b')](_0x522f62,{'range':_0x24d780[_0x3355('0xae')](_0x52ca66,_0x1c402e)}):_0x24d780[_0x3355('0xe7')](_0x522f62),!0x0);}function Nt(_0x1d3dfe){return _0x2967d9(_0x1d3dfe);}function Rt(_0x259f67){const _0x5da79c=_0x259f67[_0x3355('0x145')][_0x3355('0xa1')];return _0x5da79c&&_0x5da79c['is']('element');}function jt(_0x4b3600,_0x4481a4){const _0x4cef5e=_0x4481a4[_0x3355('0x88')][_0x3355('0xbb')](_0x4b3600)||_0x4481a4[_0x3355('0x88')][_0x3355('0x22')](_0x4b3600);return _0x4481a4[_0x3355('0xae')](_0x4481a4[_0x3355('0x99')](_0x4b3600,_0x3355('0xbc')),_0x4cef5e?_0x4481a4['createPositionAfter'](_0x4b3600):_0x4481a4[_0x3355('0x99')](_0x4b3600,_0x3355('0xf7')));}function xt(_0x533208,_0x23009d,_0x525277,_0x521f0a,_0xd97bbf){if(!Ut(_0x533208,_0x23009d))return!0x1;if(_0x525277[_0x3355('0xf7')]['isEqual'](_0x521f0a[_0x3355('0x145')]))return!0x0;if(_0x533208[_0x3355('0x134')]!=_0x23009d[_0x3355('0x134')])return!0x1;if(!_0x525277['end'][_0x3355('0x144')](_0x521f0a[_0x3355('0x145')]))return!0x1;const _0x110f2e=_0xd97bbf[_0x3355('0xae')](_0x525277['end'],_0x521f0a[_0x3355('0x145')])[_0x3355('0x20')]();for(const _0x3fbd93 of _0x110f2e)if([_0x3355('0xff'),_0x3355('0x1e')][_0x3355('0x35')](_0x3fbd93[_0x3355('0x134')])&&_0xd97bbf[_0x3355('0x88')][_0x3355('0xf2')](_0x3fbd93[_0x3355('0x10b')]))return!0x1;return!0x0;}function Ut(_0x29e9fa,_0x1fae66){return!(!_0x29e9fa[_0x3355('0x110')]||!_0x1fae66['_isDataLoaded'])&&_0x19e7de(_0x29e9fa['attributes'],_0x1fae66[_0x3355('0x42')]);}function Ot(_0x21c7f0,_0x4dd584){const _0x362c17=Et(_0x21c7f0[_0x3355('0x42')]),_0x174415=Et(_0x4dd584);if(!_0x21c7f0[_0x3355('0x110')])return!0x1;for(const _0x32121e of Object[_0x3355('0xee')](_0x174415))if(!_0x19e7de(_0x362c17[_0x32121e],_0x174415[_0x32121e]))return!0x1;return!0x0;}function Et(_0x43bef2){const _0x5aad85=Object[_0x3355('0x91')]({},_0x43bef2);return delete _0x5aad85['skipNestingCheck'],delete _0x5aad85[_0x3355('0x58')],_0x5aad85;}