@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231104.0 → 0.0.0-nightly-20231106.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-20231104.0",
3
+ "version": "0.0.0-nightly-20231106.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-20231104.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231104.0",
42
+ "ckeditor5": "0.0.0-nightly-20231106.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231106.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 _0x368b=['update:suggestion','addSuggestion','formatBlock','addClass','deletion:','upcast','split','some','isIntersectingWithRange','_registerDefaultCallbacks','markerToData','data','differ','getDifference','_handleNewSuggestionMarker','delete','markMultiRangeDeletion','documentSelection','trackChanges.mergeNestedSuggestions','isAfter','includes','keys','position','$marker','selection','_suggestionFactory','formatInline:accept','stopListening','_updateSuggestionData','isLimit','addMarker:suggestion','writer','isTouching','insertion:join','options','isBefore','updateMarker','howMany','parent','commands','formatBlock:accept','getRange','hasComments','markers','_rangeIsInLocalUserInsertion','_model','ck-suggestion-marker','add','fromRange','insertion','getChanges','data-suggestion','fire','clear','trackChangesCommand','splitPosition','getIntersection','formatInline:join','push','CommentsRepository','insertion:accept','low','locale','_mergeNestedSuggestions','pluginName','acceptAllSuggestions','discardAllSuggestions','removeAttribute','_cutOutSuggestionMarker','addCommentThread','reconvertMarker','name','editor','suggestion','forward','fromCharCode','_checkSuggestionCorrectness','markerReady','isNextTo','toViewElement','define','isUndo','authoredAt','newRange','createdAt','createPositionAfter','dataToMarker','dataReady','targetPosition','containerElement','requires','enableCommand','markMultiRangeInsertion','refresh','ck-suggestion-marker--active','elementStart','widget','markInlineFormat','getFirstRange','addMarkerName','getSuggestionCallback','markerToHighlight','next','nodeBefore','insertion:','rootName','getChangedMarkers','set','element','applyOperation','multi','marker-count','isLocal','consumable','acceptSelectedSuggestions','attributes','_addThreadToSuggestion','_getAuthorFromId','external:','getAttribute','consume','deletion','Users','high','track-changes-command-not-found','detach','dataDowncast','_adapter','config','remove','_commentsRepository','_isForcedDefaultExecutionBlock','removed','containsRange','plugins','removeMarker','start','_onDiscard','for','discardSuggestion','markMultiRangeBlockFormat','getMarkers','markInsertion','schema','unbindElementFromMarkerName','track-changes-adapter-already-set','addComment','values','_suggestionState','change:activeMarkers','suggestionLoaded','length','then','_createSuggestion','deletion:join','catch','getShiftedBy','containsRangeInObject','unbind','never','before','isBlock','isAtStart','$graveyard','elementEnd','_saved','insertion:discard','after','head','model','addRange','has','setTo','getAllAdjacentSuggestions','_descriptionFactory','insertContent','_joinSuggestions','removeMarker:suggestion:formatBlock','_getSuggestionData','range','createSelection','formatInline','adapter','insert','elementToElement','getUser','notReady','change:_saved','updateSuggestion','getMultiRangeId','get','_joinWithAdjacentSuggestions','PENDING_ACTION_SUGGESTION','isCollapsed','execute','@external','enableReadOnlyMode','skipNestingCheck','insertion:chain','discardSelectedSuggestions','filter','open','backward','formatInline:chain','clone','isInContent','setSelection','acceptSuggestion','_setSuggestionRange','getItems','_defaultCallbacks','showSuggestionHighlights','formatBlock:chain','addHighlight','_setSuggestionData','listenTo','suggestion-type','PendingActions','multipleBlocks','collaboration.channelId','_breakSuggestionMarker','trackChanges','size','rethrowUnexpectedError','end','setAttribute','_refreshSuggestionsChain','forceDefaultExecution','getLastMatchingPosition','oldRange','sort','assign','subType','formatBlock:discard','_isDataLoaded','_findSuggestions','group','error-saving-suggestion-data-suggestion-discarded','creator','accept','track-changes-suggestion-data-mismatch','value','isAtEnd','item','move','formatInline:','_splitMarkerName','ck-suggestion-marker-formatBlock','isObject','removeComment','_enabledCommands','_removeSuggestion','change','commandName','removeClass','document','isInsideObject','addMarker:suggestion:formatBlock','addSuggestionData','isMultiRange','_customCallbacks','formatGroupId','getSuggestion','join','getCommentThread','_trackFormatChanges','init','discard','from','conversion','ready','markerName','resolve','getNearestSelectionRange','isDocumentOperation','removeMarkers','originalSuggestionId','suggestionChanged','isOwn','markDeletion','_suggestions','fetchCommentThread','track-changes-adapter-missing-getsuggestion','previous','activeMarkers','getRanges','accepted','formatBlock:','buildSuggestion','_editor','isEqual','bindElementToMarker','ck-suggestion-marker-','createPositionAt','stop','_addSuggestionMarker','commentThread','formatInline:discard','editingDowncast','track-changes-suggestion-not-found','createRange','_getExternalAuthor','editing','containsPosition','getSuggestions','createRangeIn','return','getCustomProperty','every','tablePasteChainId','nodeAfter','map','suggestion:','track-changes-user-not-found','mapper','root','author','type','getFirstMarker','isRemovable'];(function(_0x3ef984,_0x368b24){const _0x5a9d87=function(_0x570b49){while(--_0x570b49){_0x3ef984['push'](_0x3ef984['shift']());}};_0x5a9d87(++_0x368b24);}(_0x368b,0x16c));const _0x5a9d=function(_0x3ef984,_0x368b24){_0x3ef984=_0x3ef984-0x0;let _0x5a9d87=_0x368b[_0x3ef984];return _0x5a9d87;};import{Plugin as _0xc8ab82,PendingActions as _0x1d50ed}from'ckeditor5/src/core';import{LiveRange as _0x20f427}from'ckeditor5/src/engine';import{CKEditorError as _0x22f0ea,uid as _0x131c85,priorities as _0x55ae06,logWarning as _0x1e536e}from'ckeditor5/src/utils';import{toWidget as _0x284161}from'ckeditor5/src/widget';import{Users as _0x2a2dad,hashObject as _0x16fb8f}from'ckeditor5-collaboration/src/collaboration-core';import _0x5574e5 from'./commands/trackchangescommand';import _0xc188ac from'./commands/acceptsuggestioncommand';import _0x17afe3 from'./commands/discardsuggestioncommand';import _0x35613c from'./commands/executeonallsuggestionscommand';import _0x3477e7 from'./commands/executeonselectedsuggestionscommand';import _0x2757c5 from'./suggestion';import _0x120e2b from'./suggestiondescriptionfactory';import _0x36a4f4 from'./integrations/aiassistant';import _0x2edf40 from'./integrations/alignment';import _0x4973d6 from'./integrations/basicstyles';import _0x1acfda from'./integrations/blockquote';import _0x17920c from'./integrations/ckbox';import _0x279574 from'./integrations/codeblock';import _0x499b87 from'./integrations/comments';import _0xae08e3 from'./integrations/deletecommand';import _0x4bb5e6 from'./integrations/documentlist';import _0x58bc2d from'./integrations/entercommand';import _0x59a2ec from'./integrations/findandreplace';import _0x34689c from'./integrations/font';import _0x495dbe from'./integrations/formatpainter';import _0x3bee7c from'./integrations/heading';import _0x1dd40d from'./integrations/highlight';import _0x156df3 from'./integrations/horizontalline';import _0x3bc22c from'./integrations/htmlembed';import _0xb3dd6 from'./integrations/image';import _0x413314 from'./integrations/imagereplace';import _0x1297d6 from'./integrations/importword';import _0x5d9a9d from'./integrations/indent';import _0x3c4720 from'./integrations/inputcommand';import _0x5c0288 from'./integrations/link';import _0x4f7f00 from'./integrations/list';import _0x2877d7 from'./integrations/listproperties';import _0xe4d69f from'./integrations/mediaembed';import _0x55c7e2 from'./integrations/mention';import _0x21b1fe from'./integrations/pagebreak';import _0x147c53 from'./integrations/paragraph';import _0x46738c from'./integrations/removeformat';import _0x136565 from'./integrations/restrictededitingmode';import _0x4592b6 from'./integrations/shiftentercommand';import _0x419da3 from'./integrations/standardeditingmode';import _0x24382b from'./integrations/style';import _0x3d2736 from'./integrations/table';import _0x1837ee from'./integrations/tablemergesplit';import _0x58b6ac from'./integrations/tableheadings';import _0xd873aa from'./integrations/tableclipboard';import _0x4cd029 from'./integrations/tablecolumnresize';import _0x545f0a from'./integrations/template';import _0x1ed083 from'./integrations/tableofcontents';import _0x1c6941 from'./integrations/title';import _0x17fd7c from'./integrations/undo';import{getTranslation as _0x200c81}from'./utils/common-translations';import _0x47c36b from'./integrations/tablecaption';import _0x4d01f9 from'./integrations/documentlistproperties';import _0x591dcb from'./integrations/tableproperties';import{isEqual as _0x53d308}from'lodash-es';export default class p extends _0xc8ab82{static get[_0x5a9d('0x2e')](){return[_0x5a9d('0xf'),_0x2a2dad,_0x1d50ed,_0x36a4f4,_0x2edf40,_0x4973d6,_0x1acfda,_0x17920c,_0x279574,_0x499b87,_0xae08e3,_0x4bb5e6,_0x4d01f9,_0x58bc2d,_0x59a2ec,_0x34689c,_0x495dbe,_0x3bee7c,_0x1dd40d,_0x156df3,_0x3bc22c,_0xb3dd6,_0x413314,_0x1297d6,_0x5d9a9d,_0x3c4720,_0x5c0288,_0x4f7f00,_0x2877d7,_0xe4d69f,_0x55c7e2,_0x21b1fe,_0x147c53,_0x46738c,_0x136565,_0x4592b6,_0x419da3,_0x24382b,_0x3d2736,_0x1837ee,_0x58b6ac,_0x47c36b,_0xd873aa,_0x4cd029,_0x1ed083,_0x591dcb,_0x545f0a,_0x1c6941,_0x17fd7c];}static get[_0x5a9d('0x14')](){return'TrackChangesEditing';}constructor(_0x3318ca){function _0x2ad2cf(_0x48047c){return _0x48047c['map'](_0xe54cf=>String[_0x5a9d('0x1f')](_0xe54cf))[_0x5a9d('0xdb')]('');}super(_0x3318ca),this[_0x5a9d('0x3f')](_0x5a9d('0xf0'),[]),this['on'](_0x5a9d('0x69'),(_0x18609f,_0xae3755,_0x298faa,_0x4e4789)=>{this[_0x5a9d('0x1')][_0x5a9d('0xd0')](()=>{for(const _0x10b872 of[..._0x4e4789,..._0x298faa])this[_0x5a9d('0x1')][_0x5a9d('0x13f')][_0x5a9d('0x7f')](_0x10b872)&&_0x3318ca[_0x5a9d('0x102')][_0x5a9d('0x1a')](_0x10b872);});}),this[_0x5a9d('0x82')]=new _0x120e2b(this[_0x5a9d('0x1c')][_0x5a9d('0x7d')][_0x5a9d('0x63')],this[_0x5a9d('0x1c')][_0x5a9d('0x12')]),this[_0x5a9d('0x53')]=null,this[_0x5a9d('0x12d')]=new Bt(this[_0x5a9d('0x1c')]),this[_0x5a9d('0xec')]=new Map(),this[_0x5a9d('0x56')]=_0x3318ca[_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0xf')),this[_0x5a9d('0xce')]=new Set(),this['_model']=this[_0x5a9d('0x1c')][_0x5a9d('0x7d')],this[_0x5a9d('0x68')]=new WeakMap(),this[_0x5a9d('0x57')]=!0x1,_0x3318ca[_0x5a9d('0x54')]['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3318ca[_0x5a9d('0x54')][_0x5a9d('0x92')]('trackChanges.trackFormatChanges'),_0x3318ca[_0x5a9d('0x54')][_0x5a9d('0x24')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x5a9d('0x13')]=_0x3318ca[_0x5a9d('0x54')][_0x5a9d('0x92')](_0x5a9d('0x126')),this['trackChangesCommand']=new _0x5574e5(_0x3318ca,this[_0x5a9d('0xce')]),this[_0x2ad2cf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2ad2cf([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x38]);}[_0x5a9d('0xde')](){const _0x3f05c8=this[_0x5a9d('0x1c')];_0x3f05c8['conversion'][_0x5a9d('0x5e')]('editingDowncast')[_0x5a9d('0x39')]({'model':_0x5a9d('0x1d'),'view':_0x26fce6=>{const {id:_0x31bb1e,type:_0x5c17c2}=this[_0x5a9d('0xca')](_0x26fce6['markerName']),_0x399f10=['ck-suggestion-marker',_0x5a9d('0xf8')+_0x5c17c2];let _0x1851b4=0xbb8;return this[_0x5a9d('0xf0')][_0x5a9d('0x128')](_0x26fce6[_0x5a9d('0xe3')])&&(_0x399f10[_0x5a9d('0xe')]('ck-suggestion-marker--active'),_0x1851b4=0xbc2),'deletion'==_0x5c17c2&&(_0x1851b4+=0x5),{'classes':_0x399f10,'attributes':{'data-suggestion':_0x31bb1e},'priority':_0x1851b4};}}),_0x3f05c8[_0x5a9d('0xe1')][_0x5a9d('0x5e')](_0x5a9d('0x52'))['add'](_0x2f4bfb=>{_0x2f4bfb['on'](_0x5a9d('0x132'),(_0x8cfdc5,_0x392eeb,_0x3b831f)=>{if(!_0x3b831f[_0x5a9d('0x136')][_0x5a9d('0xa7')])return;const _0x42b2ba=_0x392eeb[_0x5a9d('0xc7')];if(!_0x42b2ba)return;const _0x15a4a8=_0x3b831f[_0x5a9d('0x10e')][_0x5a9d('0x23')](_0x42b2ba);_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')]['isObject'](_0x42b2ba)&&_0x15a4a8&&!_0x15a4a8[_0x5a9d('0x107')](_0x5a9d('0x34'))&&_0x15a4a8['is'](_0x5a9d('0x2d'))&&_0x284161(_0x15a4a8,_0x3b831f[_0x5a9d('0x133')]);},{'priority':_0x5a9d('0x4f')});}),_0x3f05c8[_0x5a9d('0xe1')]['for'](_0x5a9d('0x52'))[_0x5a9d('0x39')]({'model':_0x5a9d('0x1d'),'view':(_0x255c89,_0x22eb95)=>{if(!_0x22eb95[_0x5a9d('0x136')][_0x5a9d('0xa7')])return null;const {type:_0x315f22}=this[_0x5a9d('0xca')](_0x255c89[_0x5a9d('0xe3')]);return{'classes':['ck-suggestion-marker',_0x5a9d('0xf8')+_0x315f22],'priority':0xbb8};}});const _0x3dfc51=({showActiveMarkers:_0x2704ed=!0x0}={})=>(_0x298c57,_0x8722fe,_0x35f7aa)=>{if(!_0x8722fe[_0x5a9d('0xc7')])return;if(_0x8722fe[_0x5a9d('0xc7')]['is'](_0x5a9d('0x12c')))return void _0x35f7aa[_0x5a9d('0x45')]['consume'](_0x8722fe[_0x5a9d('0xc7')],_0x298c57[_0x5a9d('0x1b')]);const _0x262e52=_0x35f7aa[_0x5a9d('0x10e')]['toViewElement'](_0x8722fe[_0x5a9d('0xc7')]);if(!(_0x8722fe['item']['is'](_0x5a9d('0x40'))&&_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')][_0x5a9d('0x75')](_0x8722fe[_0x5a9d('0xc7')])&&!_0x262e52[_0x5a9d('0x107')](_0x5a9d('0xa9'))))return;const {id:_0x502677}=this[_0x5a9d('0xca')](_0x8722fe[_0x5a9d('0xe3')]);_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0x117')](['ck-suggestion-marker',_0x5a9d('0xcb')],_0x262e52),_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0xb5')](_0x5a9d('0x7'),_0x502677,_0x262e52),_0x35f7aa[_0x5a9d('0x10e')][_0x5a9d('0xf7')](_0x262e52,_0x8722fe[_0x5a9d('0xe3')]),_0x2704ed&&(this[_0x5a9d('0xf0')][_0x5a9d('0x128')](_0x8722fe[_0x5a9d('0xe3')])?_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0x117')](_0x5a9d('0x32'),_0x262e52):_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0xd2')]('ck-suggestion-marker--active',_0x262e52));for(const _0x347845 of _0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x105')](_0x8722fe[_0x5a9d('0xc7')])[_0x5a9d('0xa5')]())_0x35f7aa[_0x5a9d('0x45')]['consume'](_0x347845,_0x298c57[_0x5a9d('0x1b')]);_0x35f7aa[_0x5a9d('0x45')][_0x5a9d('0x4c')](_0x8722fe[_0x5a9d('0xc7')],_0x298c57['name']);};_0x3f05c8[_0x5a9d('0xe1')]['for']('dataDowncast')[_0x5a9d('0x3')](_0x449a72=>{_0x449a72['on']('addMarker:suggestion:formatBlock',(_0xeae057,_0x2fbde7,_0xc7c6dd)=>{_0xc7c6dd['options']['showSuggestionHighlights']&&_0x3dfc51({'showActiveMarkers':!0x1})(_0xeae057,_0x2fbde7,_0xc7c6dd);},{'priority':'highest'});}),_0x3f05c8['conversion']['for']('dataDowncast')[_0x5a9d('0x11e')]({'model':_0x5a9d('0x1d'),'view':(_0x15b977,_0x4a9375)=>_0x4a9375['options'][_0x5a9d('0xa7')]?null:{'group':_0x5a9d('0x1d'),'name':_0x15b977['substr'](0xb)}}),_0x3f05c8['conversion'][_0x5a9d('0x5e')](_0x5a9d('0x119'))[_0x5a9d('0x8c')]({'view':{'name':_0x5a9d('0x1d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4fd580,{writer:_0x3aa1de})=>{let _0x232ca8=_0x5a9d('0x10c')+_0x4fd580['getAttribute'](_0x5a9d('0xac'))+':'+_0x4fd580['getAttribute']('id');return _0x4fd580[_0x5a9d('0x4b')]('marker-count')&&(_0x232ca8+=':'+_0x4fd580[_0x5a9d('0x4b')](_0x5a9d('0x43'))),_0x3aa1de['createElement'](_0x5a9d('0x12b'),{'data-name':_0x232ca8});}}),_0x3f05c8['conversion'][_0x5a9d('0x5e')](_0x5a9d('0x119'))[_0x5a9d('0x2a')]({'view':_0x5a9d('0x1d')}),_0x3f05c8['conversion'][_0x5a9d('0x5e')](_0x5a9d('0xfe'))[_0x5a9d('0x3')](_0x4a9e2f=>{_0x4a9e2f['on'](_0x5a9d('0xd5'),_0x3dfc51(),{'priority':_0x5a9d('0x4f')});}),_0x3f05c8['conversion']['for'](_0x5a9d('0xfe'))[_0x5a9d('0x3')](_0x113dc2=>{_0x113dc2['on'](_0x5a9d('0x85'),(_0x21dece,_0x1e3adc,_0x23b47a)=>{const _0x269e48=_0x23b47a[_0x5a9d('0x10e')]['markerNameToElements'](_0x1e3adc['markerName']);if(_0x269e48)for(const _0x295338 of _0x269e48)_0x295338['getCustomProperty']('addHighlight')||(_0x23b47a[_0x5a9d('0x133')][_0x5a9d('0xd2')]([_0x5a9d('0x2'),'ck-suggestion-marker-formatBlock',_0x5a9d('0x32')],_0x295338),_0x23b47a[_0x5a9d('0x133')][_0x5a9d('0x17')](_0x5a9d('0x7'),_0x295338),_0x23b47a['mapper'][_0x5a9d('0x64')](_0x295338,_0x1e3adc[_0x5a9d('0xe3')]));},{'priority':'high'});}),_0x3f05c8['model'][_0x5a9d('0xd3')]['registerPostFixer'](_0x491a93=>{let _0x35b83d=!0x1;const _0x1e2396=Array['from'](_0x3f05c8[_0x5a9d('0x7d')]['document']['differ'][_0x5a9d('0x3e')]()),_0x31e60f=new Set();for(const {name:_0x11abce,data:_0x5e0f1e}of _0x1e2396){const {group:_0x43d578,type:_0x59a9f2,id:_0x12b86f}=this['_splitMarkerName'](_0x11abce);if(_0x5a9d('0x1d')!==_0x43d578)continue;const _0x3fe74a=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x12b86f);if(null!=_0x5e0f1e[_0x5a9d('0x27')]){_0x5a9d('0x89')==_0x59a9f2&&(_0x35b83d=_0x35b83d||$t(_0x5e0f1e['newRange'],_0x11abce,_0x491a93,_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')]));if(_0x5e0f1e['newRange'][_0x5a9d('0x95')]||_0x5a9d('0x77')==_0x5e0f1e['newRange']['root']['rootName']||'formatBlock'==_0x59a9f2&&!Rt(_0x5e0f1e['newRange'])||_0x5a9d('0x4d')==_0x59a9f2&&!(!Mt(_0xcefc05=_0x5e0f1e[_0x5a9d('0x27')])&&!function(_0x1473e8){return _0x1473e8[_0x5a9d('0x5c')][_0x5a9d('0x13a')]==_0x1473e8[_0x5a9d('0xb4')][_0x5a9d('0x3b')]&&_0x1473e8['start']['isAtEnd'];}(_0xcefc05)))_0x491a93[_0x5a9d('0x5b')](_0x11abce),_0x35b83d=!0x0;else{if(!_0x3fe74a||!_0x3fe74a['isInContent'])continue;_0x31e60f[_0x5a9d('0x3')](_0x3fe74a);}}}var _0xcefc05;return _0x31e60f[_0x5a9d('0xb2')]>0x0&&(_0x35b83d=!!this['_joinWithAdjacentSuggestions'](_0x31e60f)||_0x35b83d),_0x35b83d;}),_0x3f05c8[_0x5a9d('0x7d')]['document']['registerPostFixer'](_0x441ccd=>{let _0x235c32=!0x1;for(const _0x18c5b4 of _0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xd3')][_0x5a9d('0x120')][_0x5a9d('0x6')]()){if(_0x5a9d('0x8b')!=_0x18c5b4[_0x5a9d('0x111')])continue;const _0x391d97=_0x18c5b4['position'][_0x5a9d('0x70')](_0x18c5b4[_0x5a9d('0x6b')]);if(_0x391d97[_0x5a9d('0xc6')])for(const _0x43030e of this[_0x5a9d('0xec')][_0x5a9d('0x67')]()){if(_0x43030e[_0x5a9d('0xd7')]||!_0x43030e[_0x5a9d('0xa1')])continue;if('formatBlock'!=_0x43030e[_0x5a9d('0x111')])continue;const _0x41f107=_0x43030e[_0x5a9d('0x36')]();if(_0x41f107[_0x5a9d('0x5c')][_0x5a9d('0x13a')]!=_0x41f107[_0x5a9d('0xb4')][_0x5a9d('0x13a')]&&_0x41f107['end'][_0x5a9d('0xf6')](_0x18c5b4[_0x5a9d('0x12a')])){const _0x495d51=_0x3f05c8[_0x5a9d('0x7d')]['createRange'](_0x41f107[_0x5a9d('0x5c')],_0x391d97);_0x441ccd['updateMarker'](_0x43030e[_0x5a9d('0x112')](),{'range':_0x495d51}),_0x235c32=!0x0;}}}return _0x235c32;}),_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x13f')]['on'](_0x5a9d('0x114'),(_0x480937,_0x1bb2b5,_0x1b0028)=>{if(null==_0x1b0028){const {id:_0x1eeb74}=this[_0x5a9d('0xca')](_0x1bb2b5['name']),_0x3e020e=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x1eeb74);_0x3e020e&&_0x3e020e[_0x5a9d('0x37')](_0x1bb2b5[_0x5a9d('0x1b')]);}}),_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xd3')]['on']('change:data',()=>{const _0x5689dc=Array[_0x5a9d('0xe0')](_0x3f05c8['model'][_0x5a9d('0xd3')][_0x5a9d('0x120')][_0x5a9d('0x3e')]())[_0x5a9d('0x9c')](_0x10a856=>_0x5a9d('0x1d')===this[_0x5a9d('0xca')](_0x10a856[_0x5a9d('0x1b')])[_0x5a9d('0xc0')]);if(0x0===_0x5689dc[_0x5a9d('0x6b')])return;_0x5689dc[_0x5a9d('0xba')]((_0x381cef,_0x325e1e)=>{const _0x22a122=_0x381cef[_0x5a9d('0x11f')][_0x5a9d('0xb9')],_0x210c2b=_0x325e1e['data'][_0x5a9d('0xb9')];return null===_0x22a122&&null===_0x210c2b?0x0:null===_0x22a122&&null!==_0x210c2b?-0x1:null!==_0x22a122&&null===_0x210c2b?0x1:_0x22a122[_0x5a9d('0x5c')][_0x5a9d('0x137')](_0x210c2b[_0x5a9d('0x5c')])?-0x1:0x1;});const _0x3e864c=new Set(),_0x4fa506=new Set();for(const {name:_0x41e24d,data:_0x18fa45}of _0x5689dc){const {id:_0x2435b4}=this[_0x5a9d('0xca')](_0x41e24d);if(null===_0x18fa45[_0x5a9d('0xb9')]){const _0x4f0503=this[_0x5a9d('0x122')](_0x41e24d);_0x4fa506[_0x5a9d('0x3')](_0x4f0503);}else{const _0x5fef63=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x2435b4);null!==_0x18fa45['newRange']||_0x5fef63[_0x5a9d('0xa1')]?(_0x3e864c[_0x5a9d('0x3')](_0x5fef63[_0x5a9d('0x7c')]),_0x4fa506[_0x5a9d('0x3')](_0x5fef63)):this[_0x5a9d('0xcf')](_0x5fef63);}}_0x4fa506[_0x5a9d('0xb2')]>0x0&&this[_0x5a9d('0xb6')](_0x4fa506);for(const _0x63ea9a of _0x3e864c)this[_0x5a9d('0x8')](_0x5a9d('0xe9'),_0x63ea9a);}),_0x3f05c8[_0x5a9d('0x7d')]['on'](_0x5a9d('0x41'),(_0x17a2f0,_0x5c7582)=>{const _0x3136b6=_0x5c7582[0x0];if(!this[_0x5a9d('0xec')][_0x5a9d('0xb2')])return;if(!_0x3136b6[_0x5a9d('0xe6')])return;if(_0x3136b6['batch'][_0x5a9d('0x25')]||!_0x3136b6['batch'][_0x5a9d('0x44')])return;let _0x467bcd,_0x1a70e2;switch(_0x3136b6[_0x5a9d('0x111')]){case'insert':_0x467bcd=_0x3f05c8[_0x5a9d('0x7d')]['createPositionAt'](_0x3136b6[_0x5a9d('0x12a')]),_0x1a70e2=_0x467bcd[_0x5a9d('0x70')](_0x3136b6[_0x5a9d('0x139')]);break;case _0x5a9d('0x11a'):_0x467bcd=_0x3f05c8[_0x5a9d('0x7d')]['createPositionAt'](_0x3136b6[_0x5a9d('0xb')]),_0x1a70e2=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xf9')](_0x3136b6['moveTargetPosition']);break;case _0x5a9d('0xc8'):_0x467bcd=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xf9')](_0x3136b6[_0x5a9d('0x2c')]),_0x1a70e2=_0x467bcd[_0x5a9d('0x70')](_0x3136b6[_0x5a9d('0x139')]);break;default:return;}const _0x49ff73=_0x3f05c8[_0x5a9d('0x7d')]['createRange'](_0x467bcd,_0x1a70e2);_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xd0')](()=>{for(const {suggestion:_0x28520e,meta:_0xd1955f}of this['_findSuggestions'](_0x49ff73)){if(_0x28520e[_0x5a9d('0xd7')])continue;if(_0x5a9d('0x89')==_0x28520e[_0x5a9d('0x111')])continue;const _0x2ca422=_0x28520e[_0x5a9d('0x11f')]&&_0x28520e['data'][_0x5a9d('0xae')];(_0x5a9d('0x116')!=_0x28520e[_0x5a9d('0x111')]||_0x5a9d('0x11a')==_0x3136b6[_0x5a9d('0x111')]&&!_0x2ca422)&&(_0xd1955f['containsRangeInObject']||_0x5a9d('0x5')==_0x28520e['type']&&_0xd1955f['isOwn']||_0x28520e['getFirstRange']()['containsRange'](_0x49ff73)&&this[_0x5a9d('0xb0')](_0x28520e,_0x467bcd,_0x1a70e2));}});},{'priority':'lowest'}),_0x3f05c8[_0x5a9d('0x7d')]['on']('deleteContent',(_0x57f5db,_0x305ef9)=>{const _0x349bc3=_0x305ef9[0x0],_0x535bf7=_0x305ef9[0x1];if(_0x535bf7&&_0x535bf7[_0x5a9d('0xb7')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x349bc3[_0x5a9d('0x95')])return;const _0x2b5e08=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')],{start:_0xa99891,end:_0x2b77ed}=_0x349bc3[_0x5a9d('0x36')](),_0x42bfc8=_0xa99891[_0x5a9d('0x10a')]&&_0x2b5e08[_0x5a9d('0x131')](_0xa99891[_0x5a9d('0x10a')])?null:_0x2b5e08['getNearestSelectionRange'](_0xa99891,_0x5a9d('0x1e')),_0x178377=_0x2b77ed[_0x5a9d('0x3b')]&&_0x2b5e08[_0x5a9d('0x131')](_0x2b77ed[_0x5a9d('0x3b')])?null:_0x2b5e08[_0x5a9d('0xe5')](_0x2b77ed,_0x5a9d('0x9e')),_0x579f02=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x100')](_0x42bfc8?_0x42bfc8[_0x5a9d('0x5c')]:_0xa99891,_0x178377?_0x178377[_0x5a9d('0xb4')]:_0x2b77ed);_0x3f05c8['model'][_0x5a9d('0xd0')](_0x4088d9=>{this[_0x5a9d('0xeb')](_0x579f02);const _0x587a57=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')]['getNearestSelectionRange'](_0x579f02[_0x5a9d('0x5c')]);_0x349bc3['is'](_0x5a9d('0x125'))?_0x4088d9['setSelection'](_0x587a57):_0x349bc3[_0x5a9d('0x80')](_0x587a57);}),_0x57f5db[_0x5a9d('0xfa')]();},{'priority':_0x55ae06['normal']+0xa}),_0x3f05c8[_0x5a9d('0x7d')]['on'](_0x5a9d('0x83'),(_0x644103,_0x1e98f8)=>{const _0x4db4de=_0x1e98f8[_0x1e98f8[_0x5a9d('0x6b')]-0x1];_0x4db4de&&_0x4db4de[_0x5a9d('0xb7')]||this['_isForcedDefaultExecutionBlock']||this[_0x5a9d('0xa')][_0x5a9d('0xc5')]&&(_0x3f05c8['model'][_0x5a9d('0xd0')](()=>{let _0x25cb47=_0x3f05c8['model'][_0x5a9d('0x83')](_0x1e98f8[0x0],_0x1e98f8[0x1],_0x1e98f8[0x2],{'forceDefaultExecution':!0x0});if(!_0x25cb47)return;_0x644103[_0x5a9d('0x106')]=_0x25cb47[_0x5a9d('0xa0')]();const _0x5533a1=_0x25cb47['end'][_0x5a9d('0x3b')],_0x41317b=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')];_0x5533a1&&_0x41317b[_0x5a9d('0x75')](_0x5533a1)&&!_0x41317b[_0x5a9d('0xcc')](_0x5533a1)&&(_0x25cb47=_0x3f05c8['model'][_0x5a9d('0x100')](_0x25cb47[_0x5a9d('0x5c')],_0x3f05c8['model'][_0x5a9d('0xf9')](_0x5533a1,_0x5a9d('0xb4')))),this[_0x5a9d('0x62')](_0x25cb47);}),_0x644103[_0x5a9d('0xfa')]());},{'priority':_0x5a9d('0x4f')}),this['editor'][_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0xb1'),this['trackChangesCommand']),this[_0x5a9d('0x2f')]('trackChanges');const _0x51b17c=new _0xc188ac(_0x3f05c8,this[_0x5a9d('0xec')]);_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0xa3'),_0x51b17c),this[_0x5a9d('0x2f')](_0x5a9d('0xa3'));const _0x4187af=new _0x17afe3(_0x3f05c8,this[_0x5a9d('0xec')]);_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0x5f'),_0x4187af),this[_0x5a9d('0x2f')](_0x5a9d('0x5f')),_0x3f05c8['commands'][_0x5a9d('0x3')](_0x5a9d('0x15'),new _0x35613c(_0x3f05c8,_0x51b17c,this[_0x5a9d('0xec')])),this[_0x5a9d('0x2f')]('acceptAllSuggestions'),_0x3f05c8['commands'][_0x5a9d('0x3')](_0x5a9d('0x16'),new _0x35613c(_0x3f05c8,_0x4187af,this[_0x5a9d('0xec')])),this[_0x5a9d('0x2f')]('discardAllSuggestions'),_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0x46'),new _0x3477e7(_0x3f05c8,_0x51b17c,this['_suggestions'])),this[_0x5a9d('0x2f')](_0x5a9d('0x46')),_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')]('discardSelectedSuggestions',new _0x3477e7(_0x3f05c8,_0x4187af,this[_0x5a9d('0xec')])),this[_0x5a9d('0x2f')](_0x5a9d('0x9b'));const _0x33bab9=_0x3f05c8[_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0xf'));this[_0x5a9d('0xab')](_0x33bab9,_0x5a9d('0x66'),(_0x1c3cc9,{threadId:_0x3051db})=>{const _0x326940=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x3051db);_0x326940&&_0x326940['commentThread']&&0x1===_0x326940[_0x5a9d('0xfc')][_0x5a9d('0x6b')]&&this[_0x5a9d('0x130')](_0x3051db,{'hasComments':!0x0});},{'priority':_0x5a9d('0x11')}),this[_0x5a9d('0xab')](_0x33bab9,_0x5a9d('0xcd'),(_0x54e4b5,{threadId:_0x3aaa7d})=>{const _0x4c6396=this[_0x5a9d('0xec')]['get'](_0x3aaa7d);_0x4c6396&&_0x4c6396['commentThread']&&!_0x4c6396[_0x5a9d('0xfc')][_0x5a9d('0x6b')]&&this[_0x5a9d('0x130')](_0x3aaa7d,{'hasComments':!0x1});},{'priority':_0x5a9d('0x11')});}set[_0x5a9d('0x8a')](_0x3c2fd6){if(this['_adapter'])throw new _0x22f0ea(_0x5a9d('0x65'),this);this['_adapter']=_0x3c2fd6;}get[_0x5a9d('0x8a')](){return this[_0x5a9d('0x53')];}['getSuggestions']({skipNotAttached:_0x1e7af8=!0x1,toJSON:_0x2c3073=!0x1}={}){const _0x5dccde=[];for(const _0x3847ea of this['_suggestions']['values']())_0x1e7af8&&!_0x3847ea['isInContent']||_0x5dccde[_0x5a9d('0xe')](_0x3847ea);return _0x2c3073?_0x5dccde[_0x5a9d('0x10b')](_0x5022d9=>_0x5022d9['toJSON']()):_0x5dccde;}['getSuggestion'](_0x4703fa){const _0x1f5078=this[_0x5a9d('0xec')]['get'](_0x4703fa);if(!_0x1f5078)throw new _0x22f0ea(_0x5a9d('0xff'),this);return _0x1f5078;}['hasSuggestion'](_0x1a87a3){return this[_0x5a9d('0xec')]['has'](_0x1a87a3);}[_0x5a9d('0xd6')](_0x4f5129){const {authorId:_0x1bbd50,id:_0x48c9ec,attributes:_0x3aa60b}=_0x4f5129,[_0x4bb311,_0x5f1497]=_0x4f5129[_0x5a9d('0x111')][_0x5a9d('0x11a')](':'),_0x6d8fe=this[_0x5a9d('0xec')]['get'](_0x48c9ec)||this['_createSuggestion'](_0x4bb311,_0x5f1497,_0x48c9ec,_0x1bbd50,_0x3aa60b);if(this[_0x5a9d('0x48')](_0x6d8fe),this['_checkSuggestionCorrectness'](_0x6d8fe,_0x4bb311,_0x5f1497||null,_0x1bbd50),_0x6d8fe[_0x5a9d('0x28')]=_0x4f5129[_0x5a9d('0x28')],_0x6d8fe['_isDataLoaded']=!0x0,_0x3aa60b&&_0x3aa60b[_0x5a9d('0x97')]){const _0x697df3=_0x3aa60b['@external'],_0x322e28=this[_0x5a9d('0x101')](_0x697df3['authorName']);_0x6d8fe['authoredAt']=_0x697df3[_0x5a9d('0x28')],_0x6d8fe[_0x5a9d('0x110')]=_0x322e28,_0x6d8fe['isExternal']=!0x0;}else _0x6d8fe[_0x5a9d('0x26')]=_0x4f5129[_0x5a9d('0x28')];switch(_0x4f5129[_0x5a9d('0x11f')]&&(_0x6d8fe['data']=_0x4f5129[_0x5a9d('0x11f')]),_0x4f5129[_0x5a9d('0x47')]&&(_0x6d8fe[_0x5a9d('0x47')]=_0x4f5129[_0x5a9d('0x47')]),this[_0x5a9d('0x53')]&&this[_0x5a9d('0x53')][_0x5a9d('0x115')]||(_0x6d8fe[_0x5a9d('0x79')]=!0x0),this[_0x5a9d('0x68')][_0x5a9d('0x92')](_0x6d8fe)){case _0x5a9d('0x8e'):this[_0x5a9d('0x68')]['set'](_0x6d8fe,_0x5a9d('0x2b'));break;case _0x5a9d('0x21'):_0x6d8fe[_0x5a9d('0xa1')]?(this[_0x5a9d('0xb6')](new Set([_0x6d8fe])),this[_0x5a9d('0x93')](new Set([_0x6d8fe])),this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x6d8fe,_0x5a9d('0xe2')),this['fire'](_0x5a9d('0x6a'),_0x6d8fe)):this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x6d8fe,'removed');}return _0x6d8fe;}['acceptSuggestion'](_0x2ad3dc){this[_0x5a9d('0xb7')](()=>{this[_0x5a9d('0x1c')][_0x5a9d('0x7d')][_0x5a9d('0xd0')](()=>{for(const _0xaff99 of _0x2ad3dc[_0x5a9d('0x81')]())_0xaff99[_0x5a9d('0xc3')]();});});}[_0x5a9d('0x5f')](_0x355a20){this[_0x5a9d('0xb7')](()=>{this[_0x5a9d('0x1c')][_0x5a9d('0x7d')][_0x5a9d('0xd0')](()=>{for(const _0x1ae2f3 of _0x355a20['getAllAdjacentSuggestions']())_0x1ae2f3['discard']();});});}[_0x5a9d('0x2f')](_0x5668be,_0x4a5d80){const _0x5e11ac=this[_0x5a9d('0x1c')]['commands']['get'](_0x5668be);if(!_0x5e11ac)throw new _0x22f0ea(_0x5a9d('0x50'),this,{'commandName':_0x5668be});this['_enabledCommands'][_0x5a9d('0x3')](_0x5e11ac),_0x4a5d80&&_0x5e11ac['on'](_0x5a9d('0x96'),(_0x15e024,_0x47eb89)=>{this[_0x5a9d('0xa')][_0x5a9d('0xc5')]&&(this[_0x5a9d('0x57')]||_0x47eb89[_0x5a9d('0x6b')]>0x0&&_0x47eb89[_0x47eb89[_0x5a9d('0x6b')]-0x1]&&_0x47eb89[_0x47eb89[_0x5a9d('0x6b')]-0x1][_0x5a9d('0xb7')]||(_0x15e024[_0x5a9d('0x106')]=_0x4a5d80((..._0x51f8e5)=>_0x5e11ac[_0x5a9d('0x96')](..._0x51f8e5,{'forceDefaultExecution':!0x0}),..._0x47eb89),_0x15e024[_0x5a9d('0xfa')]()));},{'priority':'high'});}[_0x5a9d('0xb7')](_0x511e61){let _0x1b9436,_0x5803b6;const _0x430dae=this[_0x5a9d('0x57')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b9436=_0x511e61();}catch(_0x24bda9){_0x5803b6=_0x24bda9;}return _0x430dae||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5803b6&&_0x22f0ea[_0x5a9d('0xb3')](_0x5803b6,this),_0x1b9436;}[_0x5a9d('0x62')](_0x548c27,_0x58dde3=null,_0x3bb962={}){if(_0x548c27[_0x5a9d('0x95')])return null;const _0x818de1=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'];for(const {suggestion:_0x4d64f8,meta:_0x42990b}of this[_0x5a9d('0xbf')](_0x548c27,_0x5a9d('0x5')))if(_0x42990b[_0x5a9d('0xea')]){if(!_0x42990b[_0x5a9d('0x22')]){if(_0x42990b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ot(_0x4d64f8,_0x3bb962))continue;return _0x4d64f8;}if(Ot(_0x4d64f8,_0x3bb962))return _0x4d64f8;this[_0x5a9d('0xb0')](_0x4d64f8,_0x548c27['start'],_0x548c27[_0x5a9d('0xb4')]);break;}if(_0x58dde3==_0x4d64f8[_0x5a9d('0xbc')]&&Ot(_0x4d64f8,_0x3bb962)){const _0x3d5de8=_0x4d64f8[_0x5a9d('0x36')]();return _0x3d5de8[_0x5a9d('0x5c')][_0x5a9d('0xf6')](_0x548c27['end'])?this[_0x5a9d('0xa4')](_0x4d64f8,this[_0x5a9d('0x1')]['createRange'](_0x548c27[_0x5a9d('0x5c')],_0x3d5de8[_0x5a9d('0xb4')])):this[_0x5a9d('0xa4')](_0x4d64f8,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x3d5de8['start'],_0x548c27[_0x5a9d('0xb4')])),_0x4d64f8;}}const _0x19ed39=_0x131c85(),_0x26bee2=_0x818de1['id'],_0x5be768=_0x58dde3?'insertion:'+_0x58dde3:_0x5a9d('0x5'),_0x56eae9=this[_0x5a9d('0xaa')]({'id':_0x19ed39,'type':_0x5be768,'createdAt':new Date(),'authorId':_0x26bee2,'attributes':_0x3bb962});return this['_addSuggestionMarker'](_0x5be768,_0x19ed39,_0x26bee2,_0x548c27),_0x56eae9;}[_0x5a9d('0x30')](_0x1798c9,_0x50f0c5=_0x5a9d('0x42'),_0x709828={}){const _0x4f5639=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'],_0x402ece=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x5'),_0x50f0c5,_0x5a9d('0xdb'));for(const _0x228541 of this[_0x5a9d('0x104')]())if(_0x228541[_0x5a9d('0x110')]['id']==_0x4f5639['id']&&_0x5a9d('0x5')==_0x228541['type']&&_0x228541['subType']==_0x50f0c5&&Ot(_0x228541,_0x709828)&&(_0x402ece(_0x228541[_0x5a9d('0xf1')](),_0x1798c9)||_0x402ece(_0x1798c9,_0x228541[_0x5a9d('0xf1')]()))){for(const _0x2030e4 of _0x1798c9)_0x228541[_0x5a9d('0x7e')](_0x2030e4);return _0x228541;}for(const {suggestion:_0x48ccb3,meta:_0x164980}of this[_0x5a9d('0xbf')](_0x1798c9,_0x5a9d('0x5'))){if(!_0x164980[_0x5a9d('0xea')])continue;if(!this[_0x5a9d('0x13')]&&_0x164980[_0x5a9d('0x71')])continue;if(!Ot(_0x48ccb3,_0x709828))continue;let _0xa1abd0=!0x0;for(const _0x1951e3 of _0x48ccb3[_0x5a9d('0xf1')]())for(const _0x8c70ff of _0x1798c9)if(!_0x1951e3['containsRange'](_0x8c70ff)){_0xa1abd0=!0x1;break;}if(_0xa1abd0)return _0x48ccb3;}const _0x247fd8=_0x131c85(),_0x6a32ca=_0x4f5639['id'],_0x1046ac=_0x5a9d('0x3c')+_0x50f0c5,_0x2f055c=this['_setSuggestionData']({'id':_0x247fd8,'type':_0x1046ac,'createdAt':new Date(),'authorId':_0x6a32ca,'attributes':_0x709828});for(const _0x5a223c of _0x1798c9)this[_0x5a9d('0xfb')](_0x1046ac,_0x247fd8,_0x6a32ca,_0x5a223c,_0x2757c5[_0x5a9d('0x91')]());return _0x2f055c;}[_0x5a9d('0x35')](_0x504499,_0x529d4d,_0x5497a6=null,_0x2b6144={}){if(_0x5497a6=_0x5497a6||Nt(_0x529d4d),_0x504499[_0x5a9d('0x95')])return null;if(_0x5a9d('0x73')===this[_0x5a9d('0xdd')]){const _0x2e5da5=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x89'),_0x5497a6,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0x2e5da5([_0x504499],_0x529d4d,_0x2b6144)),null;}const _0x390deb=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'],_0x36687d=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x466a81,meta:_0x4b4b40}of this[_0x5a9d('0xbf')](_0x504499,'insertion'))_0x4b4b40['isOwn']&&!_0x4b4b40[_0x5a9d('0xd4')]&&_0x36687d[_0x5a9d('0xe')](..._0x466a81[_0x5a9d('0xf1')]());const _0xa1db22=function(_0x5d6487,_0x5cc697){const _0x55b3b2=[];for(const _0x49f299 of _0x5cc697){const _0x3c2e0d=_0x5d6487['getIntersection'](_0x49f299);_0x3c2e0d&&_0x55b3b2['push'](_0x3c2e0d);}return _0x55b3b2;}(_0x504499,_0x36687d),_0x40c0f4=function(_0x415442,_0x3ad909){const _0xb595a8=[_0x415442];for(const _0x28ddd3 of _0x3ad909){let _0xf266b8=0x0;for(;_0xf266b8<_0xb595a8[_0x5a9d('0x6b')];){const _0x2c8a29=_0xb595a8[_0xf266b8]['getDifference'](_0x28ddd3);_0xb595a8['splice'](_0xf266b8,0x1,..._0x2c8a29),_0xf266b8+=_0x2c8a29[_0x5a9d('0x6b')];}}return _0xb595a8;}(_0x504499,_0x36687d);_0xa1db22[_0x5a9d('0x6b')]&&this[_0x5a9d('0x1')][_0x5a9d('0xd0')](()=>{for(const _0x2aa7f5 of _0xa1db22){const _0x2d273d=this['_suggestionFactory'][_0x5a9d('0x38')](_0x5a9d('0x89'),_0x5497a6,'accept');this[_0x5a9d('0xb7')](()=>_0x2d273d([_0x2aa7f5],_0x529d4d,_0x2b6144));}});for(const _0x22982f of _0x40c0f4){let _0x40d740=null,_0x6f8d73=_0x22982f[_0x5a9d('0x5c')],_0x3e1f69=_0x22982f['end'];for(const {suggestion:_0x4276a8,meta:_0x234e24}of this[_0x5a9d('0xbf')](_0x22982f,_0x5a9d('0x89'))){if(!_0x234e24[_0x5a9d('0xea')])continue;if(_0x4276a8[_0x5a9d('0xbc')]!=_0x5497a6)continue;if(!Ot(_0x4276a8,_0x2b6144))continue;const _0xd2a006=_0x4276a8[_0x5a9d('0x36')]();if(_0xd2a006['containsRange'](_0x22982f,!0x0))return null;_0x6f8d73=_0x6f8d73[_0x5a9d('0x137')](_0xd2a006[_0x5a9d('0x5c')])?_0x6f8d73:_0xd2a006[_0x5a9d('0x5c')],_0x3e1f69=_0x3e1f69[_0x5a9d('0x127')](_0xd2a006[_0x5a9d('0xb4')])?_0x3e1f69:_0xd2a006[_0x5a9d('0xb4')],_0x40d740?_0xd2a006[_0x5a9d('0x5c')][_0x5a9d('0x137')](_0x40d740[_0x5a9d('0x36')]()[_0x5a9d('0x5c')])?(_0x40d740[_0x5a9d('0xe7')](),_0x40d740=_0x4276a8):_0x4276a8[_0x5a9d('0xe7')]():_0x40d740=_0x4276a8;}const _0x5c188c=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x6f8d73,_0x3e1f69);if(_0x40d740)this['_setSuggestionRange'](_0x40d740,_0x5c188c);else{const _0x36b013=_0x131c85(),_0x37787a=_0x390deb['id'];this[_0x5a9d('0xaa')]({'id':_0x36b013,'type':_0x5a9d('0xc9')+_0x5497a6,'data':_0x529d4d,'createdAt':new Date(),'authorId':_0x37787a,'attributes':_0x2b6144}),this[_0x5a9d('0xfb')](_0x5a9d('0xc9')+_0x5497a6,_0x36b013,_0x37787a,_0x5c188c);}}return null;}['markBlockFormat'](_0x1a2de,_0x48ea4e,_0x350e8a=[],_0x585437=null,_0x42683c={}){_0x48ea4e[_0x5a9d('0xd9')]||(_0x48ea4e[_0x5a9d('0xd9')]=_0x48ea4e[_0x5a9d('0xd1')]),_0x48ea4e[_0x5a9d('0xae')]=_0x1a2de['is'](_0x5a9d('0x87')),_0x585437=_0x585437||Nt(_0x48ea4e);const _0x47e99e=_0x350e8a[_0x5a9d('0x10b')](_0x170aa4=>jt(_0x170aa4,this[_0x5a9d('0x1')])),_0x1f7402=_0x1a2de['is'](_0x5a9d('0x87'))?_0x1a2de:jt(_0x1a2de,this[_0x5a9d('0x1')]);if(_0x5a9d('0x73')===this[_0x5a9d('0xdd')]){const _0x14df44=this['_suggestionFactory']['getSuggestionCallback'](_0x5a9d('0x116'),_0x585437,'accept');return this[_0x5a9d('0xb7')](()=>_0x14df44([_0x1f7402],_0x48ea4e,_0x42683c)),null;}_0x47e99e[_0x5a9d('0xe')](_0x1f7402);let _0x39c390=!0x0;for(const _0x20b890 of _0x47e99e)if(!this[_0x5a9d('0x0')](_0x20b890)){_0x39c390=!0x1;break;}if(_0x39c390&&'always'!==this[_0x5a9d('0xdd')]){const _0xededbd=this['_suggestionFactory']['getSuggestionCallback'](_0x5a9d('0x116'),_0x585437,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0xededbd([_0x1f7402],_0x48ea4e,_0x42683c)),null;}let _0x24d078=null,_0x28ef7e=_0x1f7402[_0x5a9d('0x5c')],_0x27b61e=_0x1f7402[_0x5a9d('0xb4')];for(const {suggestion:_0x21f880,meta:_0x55c60d}of this['_findSuggestions'](_0x1f7402,'formatBlock')){if(!_0x55c60d[_0x5a9d('0xea')])continue;if(_0x55c60d[_0x5a9d('0x22')]||_0x55c60d['containsRangeInObject']||_0x55c60d[_0x5a9d('0xd4')])continue;if(_0x21f880[_0x5a9d('0x11f')]['formatGroupId']!=_0x48ea4e[_0x5a9d('0xd9')])continue;if(!Ot(_0x21f880,_0x42683c))continue;const _0x5be530=_0x21f880[_0x5a9d('0x36')]();if(_0x21f880['subType']==_0x585437){if(_0x5be530[_0x5a9d('0x59')](_0x1f7402,!0x0))return null;_0x28ef7e=_0x28ef7e[_0x5a9d('0x137')](_0x5be530[_0x5a9d('0x5c')])?_0x28ef7e:_0x5be530[_0x5a9d('0x5c')],_0x27b61e=_0x27b61e[_0x5a9d('0x127')](_0x5be530[_0x5a9d('0xb4')])?_0x27b61e:_0x5be530[_0x5a9d('0xb4')],_0x24d078?_0x5be530[_0x5a9d('0x5c')]['isBefore'](_0x24d078['getFirstRange']()[_0x5a9d('0x5c')])?(_0x24d078['removeMarkers'](),_0x24d078=_0x21f880):_0x21f880[_0x5a9d('0xe7')]():_0x24d078=_0x21f880;}else{const _0xc08913=_0x1f7402['getIntersection'](_0x5be530);this[_0x5a9d('0x18')](_0x21f880,_0xc08913);}}const _0x850cc3=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')]('Users')['me'],_0xec67b8=_0x131c85(),_0x52d401=_0x850cc3['id'];if(_0x24d078)return this['_setSuggestionRange'](_0x24d078,this['_model'][_0x5a9d('0x100')](_0x28ef7e,_0x27b61e)),_0x24d078;{const _0x2d9690=this[_0x5a9d('0xaa')]({'id':_0xec67b8,'type':_0x5a9d('0xf3')+_0x585437,'data':_0x48ea4e,'createdAt':new Date(),'authorId':_0x52d401,'attributes':_0x42683c});return this[_0x5a9d('0xfb')](_0x5a9d('0xf3')+_0x585437,_0xec67b8,_0x52d401,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x28ef7e,_0x27b61e)),_0x2d9690;}}[_0x5a9d('0x60')](_0x55b596,_0x3a77ec,_0x239b28=[],_0x1e5d8b=null,_0x52b831={}){_0x3a77ec[_0x5a9d('0xd9')]||(_0x3a77ec[_0x5a9d('0xd9')]=_0x3a77ec[_0x5a9d('0xd1')]);const _0x2feff6=_0x55b596[0x0];_0x3a77ec['multipleBlocks']=_0x2feff6['is'](_0x5a9d('0x87')),_0x1e5d8b=_0x1e5d8b||Nt(_0x3a77ec);const _0x9af42c=_0x239b28[_0x5a9d('0x10b')](_0x41687a=>jt(_0x41687a,this[_0x5a9d('0x1')])),_0x5baa4b=_0x2feff6['is'](_0x5a9d('0x87'))?_0x55b596:_0x55b596[_0x5a9d('0x10b')](_0x1902b9=>jt(_0x1902b9,this[_0x5a9d('0x1')]));if(_0x5a9d('0x73')===this[_0x5a9d('0xdd')]){const _0x2d403c=this['_suggestionFactory'][_0x5a9d('0x38')](_0x5a9d('0x116'),_0x1e5d8b,_0x5a9d('0xc3'));return this['forceDefaultExecution'](()=>_0x2d403c(_0x5baa4b,_0x3a77ec,_0x52b831)),null;}_0x9af42c[_0x5a9d('0xe')](..._0x5baa4b);let _0x3822c0=!0x0;for(const _0x144d39 of _0x9af42c)if(!this[_0x5a9d('0x0')](_0x144d39)){_0x3822c0=!0x1;break;}if(_0x3822c0&&'always'!==this[_0x5a9d('0xdd')]){const _0x5af949=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x116'),_0x1e5d8b,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0x5af949(_0x5baa4b,_0x3a77ec,_0x52b831)),null;}const _0x2aa514=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'];for(const _0x3a8b35 of this['getSuggestions']()){if(_0x3a8b35['author']['id']!=_0x2aa514['id'])continue;if('formatBlock'!=_0x3a8b35[_0x5a9d('0x111')]||_0x3a8b35[_0x5a9d('0x11f')]['formatGroupId']!=_0x3a77ec[_0x5a9d('0xd9')])continue;if(!Ot(_0x3a8b35,_0x52b831))continue;const _0x3ef840=_0x3a8b35[_0x5a9d('0xbc')]==_0x1e5d8b;for(let _0x2e512f=0x0;_0x2e512f<_0x5baa4b[_0x5a9d('0x6b')];_0x2e512f++){const _0x46bdc9=_0x5baa4b[_0x2e512f];for(const _0x1dfeb8 of _0x3a8b35[_0x5a9d('0x61')]()){const _0x51cb0b=_0x1dfeb8[_0x5a9d('0x13d')]();if(_0x46bdc9['isEqual'](_0x51cb0b)){_0x3ef840?(_0x5baa4b['splice'](_0x2e512f,0x1),_0x2e512f--):_0x3a8b35[_0x5a9d('0x5b')](_0x1dfeb8[_0x5a9d('0x1b')]);break;}}}}if(0x0==_0x5baa4b['length'])return null;const _0xfc14aa=this[_0x5a9d('0x12d')]['getSuggestionCallback'](_0x5a9d('0x116'),_0x1e5d8b,'join');for(const _0x189546 of this[_0x5a9d('0x104')]())if(_0x189546[_0x5a9d('0x110')]['id']==_0x2aa514['id']&&'formatBlock'==_0x189546[_0x5a9d('0x111')]&&_0x189546[_0x5a9d('0x11f')][_0x5a9d('0xd9')]==_0x3a77ec['formatGroupId']&&_0x189546['subType']==_0x1e5d8b&&Ot(_0x189546,_0x52b831)&&(_0xfc14aa(_0x189546['getRanges'](),_0x5baa4b)||_0xfc14aa(_0x5baa4b,_0x189546[_0x5a9d('0xf1')]()))){for(const _0x345ab7 of _0x5baa4b)_0x189546[_0x5a9d('0x7e')](_0x345ab7);return _0x189546;}const _0x1dbba9=_0x131c85(),_0x5879b9=_0x2aa514['id'],_0x4e2a53=_0x5a9d('0xf3')+_0x1e5d8b,_0x590a99=this[_0x5a9d('0xaa')]({'id':_0x1dbba9,'type':_0x4e2a53,'data':_0x3a77ec,'createdAt':new Date(),'authorId':_0x5879b9,'attributes':_0x52b831});for(const _0x5e0fdd of _0x5baa4b)this[_0x5a9d('0xfb')](_0x4e2a53,_0x1dbba9,_0x5879b9,_0x5e0fdd,_0x2757c5[_0x5a9d('0x91')]());return _0x590a99;}[_0x5a9d('0xeb')](_0x568574,_0x2fd73e=null,_0x4aa893={}){if(_0x568574[_0x5a9d('0x95')])return null;const _0x56a281=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')]('Users')['me'],_0x1e9198=new _0x20f427(_0x568574[_0x5a9d('0x5c')],_0x568574[_0x5a9d('0xb4')]);for(const {suggestion:_0x1e5151,meta:_0x4cf745}of this[_0x5a9d('0xbf')](_0x1e9198,'insertion'))if(_0x4cf745[_0x5a9d('0xea')]&&!_0x4cf745[_0x5a9d('0x22')]){if(_0x1e5151[_0x5a9d('0xd7')]){const _0x4a4c60=_0x1e5151[_0x5a9d('0xf1')]()[_0x5a9d('0x9c')](_0x1c73fa=>_0x5a9d('0x77')!=_0x1c73fa[_0x5a9d('0x10f')][_0x5a9d('0x3d')]);_0x4a4c60[_0x5a9d('0x108')](_0x40f52d=>_0x1e9198[_0x5a9d('0x59')](_0x40f52d,!0x0))&&_0x1e5151[_0x5a9d('0xdf')]();if(_0x4a4c60['some'](_0x30486c=>_0x30486c[_0x5a9d('0x59')](_0x1e9198,!0x0))){const _0x355cdc=this['_suggestionFactory']['getSuggestionCallback'](_0x5a9d('0x4d'),_0x2fd73e,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0x355cdc([_0x1e9198],null,_0x4aa893)),null;}}else{const _0x17f646=_0x1e9198[_0x5a9d('0xc')](_0x1e5151['getFirstRange']());null!==_0x17f646&&_0x1e5151[_0x5a9d('0x5d')]([_0x17f646],null,_0x4aa893);}}if(_0x1e9198[_0x5a9d('0x51')](),_0x1e9198[_0x5a9d('0x95')]||_0x5a9d('0x77')==_0x1e9198[_0x5a9d('0x10f')]['rootName'])return null;let _0x1d0b9c=null,_0x1e8b7b=_0x1e9198[_0x5a9d('0x5c')],_0x2fe4df=_0x1e9198[_0x5a9d('0xb4')];const _0x3f4131=this[_0x5a9d('0xbf')](_0x1e9198,_0x5a9d('0x4d'));for(const {suggestion:_0x538914,meta:_0x4b92a0}of _0x3f4131){const _0x23c486=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x1e8b7b,_0x2fe4df);if(_0x4b92a0[_0x5a9d('0xea')]&&(this[_0x5a9d('0x13')]||!_0x4b92a0['containsRangeInObject']&&!_0x4b92a0[_0x5a9d('0xd4')])){if(_0x538914[_0x5a9d('0xd7')]){if(!Ot(_0x538914,_0x4aa893))continue;let _0x4bfc07=!0x0;for(const _0x4fb841 of _0x538914['getRanges']()){if(_0x4fb841[_0x5a9d('0x59')](_0x23c486,!0x0))return _0x538914;_0x23c486[_0x5a9d('0x59')](_0x4fb841)||(_0x4bfc07=!0x1);}_0x4bfc07&&_0x538914[_0x5a9d('0xdf')]();}else{const _0x4a3086=_0x538914['getFirstRange']();if(_0x4a3086[_0x5a9d('0x59')](_0x23c486,!0x0))return _0x538914;if(!Ot(_0x538914,_0x4aa893)){_0x23c486[_0x5a9d('0x59')](_0x4a3086)?_0x538914[_0x5a9d('0xe7')]():_0x4a3086[_0x5a9d('0x103')](_0x1e8b7b)?_0x1e8b7b=_0x4a3086['end']:_0x4a3086[_0x5a9d('0x103')](_0x2fe4df)&&(_0x2fe4df=_0x4a3086['start']);continue;}_0x1e8b7b=_0x1e8b7b[_0x5a9d('0x137')](_0x4a3086['start'])?_0x1e8b7b:_0x4a3086[_0x5a9d('0x5c')],_0x2fe4df=_0x2fe4df[_0x5a9d('0x127')](_0x4a3086[_0x5a9d('0xb4')])?_0x2fe4df:_0x4a3086[_0x5a9d('0xb4')],_0x4aa893=Object['assign']({},_0x538914[_0x5a9d('0x47')]),_0x1d0b9c?_0x4a3086[_0x5a9d('0x5c')]['isBefore'](_0x1d0b9c['getFirstRange']()[_0x5a9d('0x5c')])?(_0x1d0b9c['removeMarkers'](),_0x1d0b9c=_0x538914):_0x538914['removeMarkers']():_0x1d0b9c=_0x538914;}}}if(_0x1d0b9c)return this[_0x5a9d('0xa4')](_0x1d0b9c,this['_model'][_0x5a9d('0x100')](_0x1e8b7b,_0x2fe4df)),_0x1d0b9c;{const _0x4a3668=_0x131c85(),_0x3d75e3=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x1e8b7b,_0x2fe4df),_0x24c7be=_0x56a281['id'],_0x42e74e=_0x2fd73e?_0x5a9d('0x118')+_0x2fd73e:_0x5a9d('0x4d'),_0x3f0641=this['_setSuggestionData']({'id':_0x4a3668,'type':_0x42e74e,'createdAt':new Date(),'authorId':_0x24c7be,'attributes':_0x4aa893});return this[_0x5a9d('0xfb')](_0x42e74e,_0x4a3668,_0x24c7be,_0x3d75e3),_0x3f0641;}}[_0x5a9d('0x124')](_0x239f9f,_0x2dedc9=_0x5a9d('0x42'),_0xcc06bd={}){const _0x2eceb6=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')]['get'](_0x5a9d('0x4e'))['me'],_0x2eeb77=_0x239f9f[_0x5a9d('0x10b')](_0x5f2ec0=>new _0x20f427(_0x5f2ec0[_0x5a9d('0x5c')],_0x5f2ec0[_0x5a9d('0xb4')])),_0x100d21=new Set();for(const {suggestion:_0x3e3147,meta:_0x4f2728}of this[_0x5a9d('0xbf')](_0x2eeb77,'insertion'))_0x4f2728['isOwn']&&!_0x4f2728[_0x5a9d('0x22')]&&_0x100d21['add'](_0x3e3147);for(const _0x446669 of _0x100d21)if(_0x446669[_0x5a9d('0xd7')]){const _0xdf12e7=_0x446669[_0x5a9d('0xf1')]();(!_0x446669['attributes']||!_0x446669[_0x5a9d('0x47')][_0x5a9d('0x99')])&&(_0xdf12e7[_0x5a9d('0x108')](_0x498be1=>_0x2eeb77[_0x5a9d('0x11b')](_0x2f2508=>_0x2f2508['containsRange'](_0x498be1,!0x0)))&&_0x446669[_0x5a9d('0xdf')]());if(_0x2eeb77['every'](_0x49e55c=>_0xdf12e7['some'](_0x29579f=>_0x29579f[_0x5a9d('0x59')](_0x49e55c,!0x0)))){const _0xcf6be6=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x4d'),_0x2dedc9,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0xcf6be6(_0x239f9f,null,_0xcc06bd)),null;}}else{const _0x2236ce=_0x446669[_0x5a9d('0x36')]();_0x2eeb77[_0x5a9d('0x11b')](_0x4b03cd=>_0x4b03cd['containsRange'](_0x2236ce,!0x0))&&_0x446669[_0x5a9d('0xdf')]();if(_0x2eeb77['every'](_0x19ee57=>_0x2236ce[_0x5a9d('0x59')](_0x19ee57,!0x0))){const _0xcc28ca=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x4d'),_0x2dedc9,_0x5a9d('0xc3'));return this['forceDefaultExecution'](()=>_0xcc28ca(_0x2eeb77,null,_0xcc06bd)),null;}}const _0x59fb91=this[_0x5a9d('0x12d')]['getSuggestionCallback'](_0x5a9d('0x4d'),_0x2dedc9,_0x5a9d('0xdb'));let _0x58a624=null;for(const _0x34d515 of this[_0x5a9d('0x104')]())if(_0x34d515[_0x5a9d('0x110')]['id']==_0x2eceb6['id']&&_0x34d515[_0x5a9d('0xa1')]&&_0x5a9d('0x4d')==_0x34d515[_0x5a9d('0x111')]&&_0x34d515[_0x5a9d('0xbc')]==_0x2dedc9&&Ot(_0x34d515,_0xcc06bd)&&(_0x59fb91(_0x34d515[_0x5a9d('0xf1')](),_0x2eeb77)||_0x59fb91(_0x2eeb77,_0x34d515[_0x5a9d('0xf1')]()))){if(_0x58a624){if(_0x34d515[_0x5a9d('0xfc')]&&_0x34d515[_0x5a9d('0xfc')]['length'])continue;for(const _0x214075 of _0x34d515['getRanges']())_0x58a624[_0x5a9d('0x11c')](_0x214075)||_0x58a624[_0x5a9d('0x7e')](_0x214075);_0x34d515[_0x5a9d('0xe7')]();}else{_0x58a624=_0x34d515;for(const _0x2491c8 of _0x2eeb77)_0x34d515[_0x5a9d('0x11c')](_0x2491c8)||_0x34d515['addRange'](_0x2491c8);}}if(_0x58a624)return _0x58a624;_0x100d21[_0x5a9d('0x9')]();for(const {suggestion:_0x3b49b5,meta:_0x1751ba}of this['_findSuggestions'](_0x2eeb77,_0x5a9d('0x4d')))_0x1751ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1751ba['containsRangeInObject']&&!_0x1751ba[_0x5a9d('0xd4')])&&Ot(_0x3b49b5,_0xcc06bd)&&_0x100d21[_0x5a9d('0x3')](_0x3b49b5);for(const _0x3f0f68 of _0x100d21){const _0x2290d3=_0x3f0f68[_0x5a9d('0xf1')]();if(!_0xcc06bd||!_0xcc06bd[_0x5a9d('0x99')]){if(_0x2eeb77['every'](_0x38829d=>_0x2290d3[_0x5a9d('0x11b')](_0x22d00d=>_0x22d00d['containsRange'](_0x38829d,!0x0))))return _0x3f0f68;}(!_0x3f0f68[_0x5a9d('0x47')]||!_0x3f0f68[_0x5a9d('0x47')][_0x5a9d('0x99')])&&(_0x2290d3['every'](_0x5289a4=>_0x2eeb77['some'](_0x2f2b77=>_0x2f2b77[_0x5a9d('0x59')](_0x5289a4,!0x0)))&&_0x3f0f68[_0x5a9d('0xdf')]());}const _0x6bca8d=_0x131c85(),_0x2e55ae=_0x2eceb6['id'],_0xab2d64=_0x5a9d('0x118')+_0x2dedc9,_0x253df1=this[_0x5a9d('0xaa')]({'id':_0x6bca8d,'type':_0xab2d64,'createdAt':new Date(),'authorId':_0x2e55ae,'attributes':_0xcc06bd});for(const _0x377dcb of _0x2eeb77)_0x377dcb[_0x5a9d('0x51')](),_0x377dcb[_0x5a9d('0x95')]||'$graveyard'==_0x377dcb[_0x5a9d('0x10f')][_0x5a9d('0x3d')]||this[_0x5a9d('0xfb')](_0xab2d64,_0x6bca8d,_0x2e55ae,_0x377dcb,_0x2757c5[_0x5a9d('0x91')]());return _0x253df1;}[_0x5a9d('0xa4')](_0x331bfc,_0xf8dc64){const _0x4fc003=_0x331bfc[_0x5a9d('0x112')]();this[_0x5a9d('0x1')][_0x5a9d('0xd0')](_0x5438ec=>{_0x5438ec[_0x5a9d('0x138')](_0x4fc003,{'range':_0xf8dc64});});}['_addThreadToSuggestion'](_0x59b507){const _0x131d49=_0x59b507['id'],_0x93c343=this[_0x5a9d('0x1c')]['config'][_0x5a9d('0x92')](_0x5a9d('0xaf'));this[_0x5a9d('0x56')]['hasCommentThread'](_0x131d49)||this['_commentsRepository'][_0x5a9d('0x19')]({'channelId':_0x93c343,'threadId':_0x131d49,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x151f95=this[_0x5a9d('0x56')][_0x5a9d('0xdc')](_0x131d49);_0x151f95[_0x5a9d('0x72')]('isRemovable'),_0x151f95[_0x5a9d('0x113')]=!0x1,_0x59b507[_0x5a9d('0xfc')]=_0x151f95;}[_0x5a9d('0x20')](_0xb7a931,_0x370700,_0x31dfa2,_0x5d54d6){if(_0xb7a931[_0x5a9d('0x111')]!=_0x370700||_0xb7a931[_0x5a9d('0xbc')]!=_0x31dfa2||_0xb7a931[_0x5a9d('0xc2')]['id']!=_0x5d54d6)throw this['editor'][_0x5a9d('0x98')](_0x5a9d('0xc4')),new _0x22f0ea(_0x5a9d('0xc4'),this);}[_0x5a9d('0x18')](_0xb0053c,_0x6dc350){const _0x4a709f=_0xb0053c[_0x5a9d('0x36')]();if(_0x6dc350[_0x5a9d('0xf6')](_0x4a709f))_0xb0053c[_0x5a9d('0xe7')]();else{if(_0x4a709f[_0x5a9d('0x59')](_0x6dc350)){const _0x59d09d=this['_model']['createPositionAt'](_0x6dc350['start'][_0x5a9d('0x3b')],_0x5a9d('0xb4'));this[_0x5a9d('0xa4')](_0xb0053c,this['_model'][_0x5a9d('0x100')](_0x4a709f['start'],_0x59d09d));const _0x5359ea=_0x131c85(),_0x574da4=_0xb0053c[_0x5a9d('0xc2')]['id'],_0x545c5a=_0xb0053c[_0x5a9d('0x111')]+':'+_0xb0053c[_0x5a9d('0xbc')];this['_setSuggestionData']({'id':_0x5359ea,'type':_0x545c5a,'createdAt':new Date(),'authorId':_0x574da4,'data':_0xb0053c[_0x5a9d('0x11f')],'attributes':_0xb0053c[_0x5a9d('0x47')]});const _0x4469c6=this[_0x5a9d('0x1')][_0x5a9d('0xf9')](_0x6dc350[_0x5a9d('0xb4')][_0x5a9d('0x13a')],_0x5a9d('0x7b')),_0x2ecaee=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x4469c6,_0x4a709f['end']);this[_0x5a9d('0xfb')](_0x545c5a,_0x5359ea,_0x574da4,_0x2ecaee);}else{if(_0x4a709f[_0x5a9d('0x103')](_0x6dc350['start'])){const _0x399a44=this[_0x5a9d('0x1')]['createPositionAt'](_0x6dc350[_0x5a9d('0x5c')][_0x5a9d('0x3b')],_0x5a9d('0xb4'));this[_0x5a9d('0xa4')](_0xb0053c,this['_model']['createRange'](_0x4a709f[_0x5a9d('0x5c')],_0x399a44));}else{const _0x3dae63=this[_0x5a9d('0x1')][_0x5a9d('0xf9')](_0x6dc350['end']['parent'],_0x5a9d('0x7b'));this[_0x5a9d('0xa4')](_0xb0053c,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x3dae63,_0x4a709f[_0x5a9d('0xb4')]));}}}}[_0x5a9d('0x0')](_0x49822f){for(const {suggestion:_0x5f0aee,meta:_0x19d5f3}of this[_0x5a9d('0xbf')](_0x49822f,_0x5a9d('0x5'))){if(!_0x19d5f3[_0x5a9d('0xea')])continue;const _0x2edb0b=_0x5f0aee[_0x5a9d('0xf1')]();for(const _0x474e18 of _0x2edb0b)if(!_0x49822f[_0x5a9d('0x121')](_0x474e18)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x177a66){const _0x2023cd=this[_0x5a9d('0x1c')]['plugins'][_0x5a9d('0x92')](_0x5a9d('0x4e'))[_0x5a9d('0x8d')](_0x177a66);if(!_0x2023cd)throw new _0x22f0ea(_0x5a9d('0x10d'),this);return _0x2023cd;}[_0x5a9d('0x101')](_0x3bb229){const _0x572665=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')]['get'](_0x5a9d('0x4e')),_0x26659b=_0x16fb8f(_0x5a9d('0x4a')+_0x3bb229),_0x188c68=_0x572665[_0x5a9d('0x8d')](_0x26659b);return _0x188c68||_0x572665['addUser']({'id':_0x26659b,'name':_0x3bb229});}[_0x5a9d('0x6d')](_0x111145,_0x3d4749,_0x35af0d,_0x297572,_0x6176a6){const _0x204289=this[_0x5a9d('0x49')](_0x297572),_0x481ab0=this[_0x5a9d('0x12d')]['buildSuggestion'](_0x111145,_0x3d4749,_0x35af0d,_0x204289,_0x6176a6,_0x3bfe5a=>this['_updateSuggestionData'](_0x35af0d,{'attributes':_0x3bfe5a}));return this[_0x5a9d('0xab')](_0x481ab0,'accept',()=>{this[_0x5a9d('0x130')](_0x35af0d,{'state':_0x5a9d('0xf2')});},{'priority':_0x5a9d('0x4f')}),this[_0x5a9d('0xab')](_0x481ab0,_0x5a9d('0xdf'),()=>{this[_0x5a9d('0x130')](_0x35af0d,{'state':'rejected'});},{'priority':_0x5a9d('0x4f')}),this['_suggestions']['set'](_0x35af0d,_0x481ab0),this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x481ab0,_0x5a9d('0x8e')),_0x481ab0;}['_splitMarkerName'](_0x247ed0){const _0x18b506=_0x247ed0[_0x5a9d('0x11a')](':');return{'group':_0x18b506[0x0],'type':_0x18b506[0x1],'subType':_0x18b506[_0x5a9d('0x6b')]>=0x5?_0x18b506[0x2]:null,'id':_0x18b506[_0x5a9d('0x6b')]<0x5?_0x18b506[0x2]:_0x18b506[0x3],'authorId':_0x18b506[_0x5a9d('0x6b')]<0x5?_0x18b506[0x3]:_0x18b506[0x4],'markerCount':0x6==_0x18b506[_0x5a9d('0x6b')]?_0x18b506[0x5]:null};}[_0x5a9d('0xb0')](_0xb8fabf,_0x107fb1,_0x40450f){const _0x11a185=_0xb8fabf[_0x5a9d('0x36')](),_0x534ac0=_0x11a185[_0x5a9d('0x5c')],_0x10ac10=_0x11a185['end'];this[_0x5a9d('0xa4')](_0xb8fabf,this[_0x5a9d('0x1')]['createRange'](_0x534ac0,_0x107fb1));const _0x1af4d4=_0x131c85(),_0x4642c2=_0xb8fabf['creator']['id'],_0x290a50=_0xb8fabf[_0x5a9d('0x111')]+(_0xb8fabf['subType']?':'+_0xb8fabf[_0x5a9d('0xbc')]:'');this[_0x5a9d('0xaa')]({'id':_0x1af4d4,'type':_0x290a50,'createdAt':new Date(),'authorId':_0x4642c2,'originalSuggestionId':_0xb8fabf['id'],'attributes':_0xb8fabf[_0x5a9d('0x47')],'data':_0xb8fabf[_0x5a9d('0x11f')]}),'formatBlock'==_0xb8fabf[_0x5a9d('0x111')]&&(_0x40450f=this['_model']['createPositionBefore'](_0x40450f[_0x5a9d('0x13a')])),this['_addSuggestionMarker'](_0x290a50,_0x1af4d4,_0x4642c2,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x40450f,_0x10ac10));}[_0x5a9d('0xbf')](_0x28a0ea,_0x31a31b=null){const _0x14096d=[],_0x58217a=this[_0x5a9d('0x1c')]['plugins'][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'];Array['isArray'](_0x28a0ea)||(_0x28a0ea=[_0x28a0ea]);for(const _0x23e57c of this[_0x5a9d('0x104')]()){if(!_0x23e57c[_0x5a9d('0xa1')])continue;if(_0x31a31b&&_0x23e57c['type']!=_0x31a31b)continue;let _0x3554f2=!0x1;for(const _0x50d8a0 of _0x23e57c[_0x5a9d('0xf1')]()){for(const _0x1bfa63 of _0x28a0ea){const _0x8e3f0a=_0x1bfa63['start'][_0x5a9d('0xf6')](_0x50d8a0[_0x5a9d('0xb4')])||_0x1bfa63[_0x5a9d('0xb4')][_0x5a9d('0xf6')](_0x50d8a0['start']);if(_0x8e3f0a||_0x1bfa63[_0x5a9d('0xc')](_0x50d8a0)){const _0xef897d=_0x1bfa63[_0x5a9d('0x59')](_0x50d8a0)&&_t(this['_model'][_0x5a9d('0x63')],_0x50d8a0[_0x5a9d('0x5c')],_0x1bfa63),_0x5215fc=_0x50d8a0[_0x5a9d('0x59')](_0x1bfa63)&&_t(this[_0x5a9d('0x1')][_0x5a9d('0x63')],_0x1bfa63[_0x5a9d('0x5c')],_0x50d8a0);_0x14096d['push']({'suggestion':_0x23e57c,'meta':{'isOwn':_0x58217a==_0x23e57c[_0x5a9d('0x110')],'isNextTo':_0x8e3f0a,'isInsideObject':_0xef897d,'containsRangeInObject':_0x5215fc}}),_0x3554f2=!0x0;break;}}if(_0x3554f2)break;}}return _0x14096d;}['_addSuggestionMarker'](_0x55504d,_0x3fe9f5,_0x5d498e,_0x5b2d8c,_0x51c37e){this[_0x5a9d('0x1')]['change'](_0x23d269=>{let _0x35bdad=_0x5a9d('0x10c')+_0x55504d+':'+_0x3fe9f5+':'+_0x5d498e;_0x51c37e&&(_0x35bdad=_0x35bdad+':'+_0x51c37e),_0x23d269['addMarker'](_0x35bdad,{'range':_0x5b2d8c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a9d('0xcf')](_0x2fd7f9){const _0x32111a=_0x2fd7f9[_0x5a9d('0xef')],_0x2fcb37=_0x2fd7f9[_0x5a9d('0x3a')];_0x2fd7f9[_0x5a9d('0xef')]=null,null!=_0x32111a&&(_0x32111a['next']=null),_0x2fd7f9[_0x5a9d('0x3a')]=null,null!=_0x2fcb37&&(_0x2fcb37[_0x5a9d('0xef')]=null),_0x5a9d('0xe2')==this[_0x5a9d('0x68')]['get'](_0x2fd7f9)&&(this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x2fd7f9,_0x5a9d('0x58')),this[_0x5a9d('0x8')]('suggestionUnloaded',_0x2fd7f9,_0x32111a,_0x2fcb37));}[_0x5a9d('0xaa')](_0x293805){const _0x4989a2=_0x293805['id'],_0x2e785c=this[_0x5a9d('0xd6')](_0x293805);if(this[_0x5a9d('0x53')]&&this['_adapter'][_0x5a9d('0x115')]){const _0x1699c3=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0xad')),_0x3c9bf3=_0x2e785c[_0x5a9d('0x13e')],_0x2e7977=_0x2e785c[_0x5a9d('0xbc')]?_0x2e785c[_0x5a9d('0x111')]+':'+_0x2e785c[_0x5a9d('0xbc')]:_0x2e785c['type'],_0x20abf8=this[_0x5a9d('0x1c')][_0x5a9d('0x12')],_0x3dc997=_0x1699c3[_0x5a9d('0x3')](_0x200c81(_0x20abf8,_0x5a9d('0x94'))),_0x385ad3={'id':_0x4989a2,'type':_0x2e7977,'hasComments':_0x3c9bf3,'data':_0x293805[_0x5a9d('0x11f')]||null,'originalSuggestionId':_0x293805[_0x5a9d('0xe8')]||null,'attributes':_0x2e785c[_0x5a9d('0x47')]};this['_adapter']['addSuggestion'](_0x385ad3)[_0x5a9d('0x6c')](_0x124bb3=>{_0x2e785c[_0x5a9d('0x79')]=!0x0,_0x1699c3[_0x5a9d('0x55')](_0x3dc997),_0x124bb3&&_0x124bb3[_0x5a9d('0x28')]&&(this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x4989a2)[_0x5a9d('0x28')]=_0x124bb3[_0x5a9d('0x28')]);})[_0x5a9d('0x6f')](_0x4ae337=>{throw _0x1e536e(_0x5a9d('0xc1')),this[_0x5a9d('0x1c')][_0x5a9d('0x7d')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e785c[_0x5a9d('0xdf')]();}),_0x2e785c[_0x5a9d('0x12f')](),this[_0x5a9d('0xec')][_0x5a9d('0x123')](_0x2e785c['id']),this[_0x5a9d('0x68')][_0x5a9d('0x123')](_0x2e785c),_0x4ae337;});}return _0x2e785c;}[_0x5a9d('0x130')](_0x5ceee7,_0x5a350f){const _0x4011b5=this[_0x5a9d('0x1c')]['plugins'][_0x5a9d('0x92')](_0x5a9d('0xad')),_0x1c6d7c=this[_0x5a9d('0xda')](_0x5ceee7);if(this['_adapter']&&this[_0x5a9d('0x53')][_0x5a9d('0x90')]){if(_0x1c6d7c[_0x5a9d('0x79')]){const _0x12b399=_0x4011b5[_0x5a9d('0x3')](_0x200c81(this[_0x5a9d('0x1c')][_0x5a9d('0x12')],_0x5a9d('0x94')));this[_0x5a9d('0x53')][_0x5a9d('0x90')](_0x5ceee7,_0x5a350f)['then'](()=>{_0x4011b5[_0x5a9d('0x55')](_0x12b399);});}else _0x1c6d7c['on'](_0x5a9d('0x8f'),()=>{this[_0x5a9d('0x130')](_0x5ceee7,_0x5a350f);});}}[_0x5a9d('0x86')](_0x298dd6){if(!this[_0x5a9d('0x53')]||!this[_0x5a9d('0x53')][_0x5a9d('0xda')])throw new _0x22f0ea(_0x5a9d('0xee'),this);return this[_0x5a9d('0x53')][_0x5a9d('0xda')](_0x298dd6);}[_0x5a9d('0x122')](_0x38d0b4){const {id:_0x107905,type:_0x21bb09,subType:_0x4645b8,authorId:_0x515686}=this['_splitMarkerName'](_0x38d0b4),_0x1c33f7=this['_suggestions'][_0x5a9d('0x92')](_0x107905)||this['_createSuggestion'](_0x21bb09,_0x4645b8,_0x107905,_0x515686,{});switch(this[_0x5a9d('0x20')](_0x1c33f7,_0x21bb09,_0x4645b8,_0x515686),this['_suggestionState'][_0x5a9d('0x92')](_0x1c33f7)){case'notReady':this[_0x5a9d('0x86')](_0x107905)[_0x5a9d('0x6c')](_0x803313=>{let _0x28589e=Promise[_0x5a9d('0xe4')]();_0x803313[_0x5a9d('0x13e')]&&(_0x28589e=this['_commentsRepository'][_0x5a9d('0xed')]({'channelId':this[_0x5a9d('0x1c')][_0x5a9d('0x54')][_0x5a9d('0x92')](_0x5a9d('0xaf')),'threadId':_0x107905})),_0x28589e[_0x5a9d('0x6c')](()=>{this[_0x5a9d('0xd6')](_0x803313)[_0x5a9d('0x79')]=!0x0;});}),this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x1c33f7,_0x5a9d('0x21'));break;case'removed':this['_updateSuggestionData'](_0x107905,{'state':_0x5a9d('0x9d')});case _0x5a9d('0x2b'):this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x1c33f7,_0x5a9d('0xe2')),this['fire'](_0x5a9d('0x6a'),_0x1c33f7);break;case _0x5a9d('0xe2'):this[_0x5a9d('0x8')](_0x5a9d('0xe9'),_0x1c33f7);}return _0x1c33f7[_0x5a9d('0x37')](_0x38d0b4),_0x1c33f7;}[_0x5a9d('0xb6')](_0x5b3b20){const _0x4c64f2=Array['from'](_0x5b3b20)[_0x5a9d('0x9c')](_0x2e73d5=>!_0x2e73d5[_0x5a9d('0xd7')]),_0x3a915d=this[_0x5a9d('0x104')]({'skipNotAttached':!0x0})[_0x5a9d('0x9c')](_0x36580e=>!_0x36580e[_0x5a9d('0xd7')]),_0x48f680=_0x3a915d[_0x5a9d('0x9c')](_0x5096d6=>!_0x5b3b20[_0x5a9d('0x7f')](_0x5096d6)),_0x545b2a=new Map(_0x3a915d[_0x5a9d('0x10b')](_0x181db7=>[_0x181db7,this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x181db7[_0x5a9d('0x111')],_0x181db7[_0x5a9d('0xbc')],'chain')])),_0x55af2e=new Map(_0x3a915d['map'](_0x5acb4e=>[_0x5acb4e,_0x5acb4e[_0x5a9d('0x36')]()])),_0xa11cb9=new Set(),_0x1908d7=new Set();for(let _0x580186=0x0;_0x580186<_0x4c64f2[_0x5a9d('0x6b')];_0x580186++)_0x32f2fa(_0x4c64f2[_0x580186],_0x4c64f2,_0x580186+0x1);for(let _0x168b89=0x0;_0x168b89<_0x4c64f2[_0x5a9d('0x6b')];_0x168b89++)_0x32f2fa(_0x4c64f2[_0x168b89],_0x48f680,0x0);for(let _0x37c033=0x0;_0x37c033<_0x4c64f2[_0x5a9d('0x6b')];_0x37c033++){const _0x523fc3=_0x4c64f2[_0x37c033];!_0x1908d7['has'](_0x523fc3)&&_0x523fc3[_0x5a9d('0xef')]&&(_0x523fc3[_0x5a9d('0xef')]['next']===_0x523fc3&&(_0x523fc3[_0x5a9d('0xef')][_0x5a9d('0x3a')]=null),_0x523fc3[_0x5a9d('0xef')]=null),!_0xa11cb9[_0x5a9d('0x7f')](_0x523fc3)&&_0x523fc3[_0x5a9d('0x3a')]&&(_0x523fc3['next'][_0x5a9d('0xef')]===_0x523fc3&&(_0x523fc3[_0x5a9d('0x3a')][_0x5a9d('0xef')]=null),_0x523fc3['next']=null);}function _0x32f2fa(_0x1bdb17,_0x148165,_0x23f40f){for(let _0x69e6ff=_0x23f40f;_0x69e6ff<_0x148165[_0x5a9d('0x6b')];_0x69e6ff++){const _0x1e1d7a=_0x267df1(_0x1bdb17,_0x148165[_0x69e6ff]);_0x1e1d7a&&(_0x1e1d7a[0x0][_0x5a9d('0x3a')]=_0x1e1d7a[0x1],_0x1e1d7a[0x1][_0x5a9d('0xef')]=_0x1e1d7a[0x0],_0xa11cb9[_0x5a9d('0x3')](_0x1e1d7a[0x0]),_0x1908d7['add'](_0x1e1d7a[0x1]));}}function _0x267df1(_0x3d7381,_0x3d42c5){if(_0x3d7381[_0x5a9d('0x110')]['id']!==_0x3d42c5[_0x5a9d('0x110')]['id'])return null;const _0x4a2b2a=_0x545b2a[_0x5a9d('0x92')](_0x3d7381)(_0x3d7381,_0x3d42c5,_0x55af2e['get'](_0x3d7381),_0x55af2e[_0x5a9d('0x92')](_0x3d42c5));if(!_0x4a2b2a)return null;return _0x545b2a[_0x5a9d('0x92')](_0x3d42c5)(_0x3d7381,_0x3d42c5,_0x55af2e['get'](_0x3d7381),_0x55af2e[_0x5a9d('0x92')](_0x3d42c5))?_0x4a2b2a[0x1]['commentThread']&&_0x4a2b2a[0x1][_0x5a9d('0xfc')][_0x5a9d('0x6b')]?null:_0x4a2b2a:null;}}[_0x5a9d('0x93')](_0x3030d9){const _0x232fef=Array['from'](_0x3030d9),_0x5b175d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4193fd=_0x5b175d['filter'](_0x241e3a=>!_0x3030d9[_0x5a9d('0x7f')](_0x241e3a)),_0x3428dd=new Map(_0x232fef[_0x5a9d('0x10b')](_0x66a5c3=>[_0x66a5c3,this['_suggestionFactory']['getSuggestionCallback'](_0x66a5c3[_0x5a9d('0x111')],_0x66a5c3[_0x5a9d('0xbc')],_0x5a9d('0xdb'))])),_0x3cc207=new Map(_0x5b175d['map'](_0x5be5ba=>[_0x5be5ba,_0x5be5ba[_0x5a9d('0xf1')]()]));for(let _0x2bddb6=0x0;_0x2bddb6<_0x232fef[_0x5a9d('0x6b')];_0x2bddb6++){if(_0x5b334e(this,_0x232fef[_0x2bddb6],_0x232fef,_0x2bddb6+0x1))return!0x0;}for(let _0x5b8780=0x0;_0x5b8780<_0x232fef[_0x5a9d('0x6b')];_0x5b8780++){if(_0x5b334e(this,_0x232fef[_0x5b8780],_0x4193fd,0x0))return!0x0;}return!0x1;function _0x5b334e(_0x4eca87,_0x5c6ef2,_0x29a9b9,_0xeff52a){for(let _0x59e5b0=_0xeff52a;_0x59e5b0<_0x29a9b9[_0x5a9d('0x6b')];_0x59e5b0++){const _0x245967=_0x29a9b9[_0x59e5b0];if(_0x245967[_0x5a9d('0x111')]!==_0x5c6ef2[_0x5a9d('0x111')]||_0x245967[_0x5a9d('0x110')]['id']!==_0x5c6ef2['author']['id']||_0x245967[_0x5a9d('0xbc')]!==_0x5c6ef2[_0x5a9d('0xbc')])continue;if(!Ut(_0x5c6ef2,_0x245967))continue;const _0x310e24=_0x3428dd[_0x5a9d('0x92')](_0x5c6ef2),_0x3f105c=_0x3cc207[_0x5a9d('0x92')](_0x5c6ef2),_0x256756=_0x3cc207[_0x5a9d('0x92')](_0x245967),_0x5cd00a=_0x5c6ef2[_0x5a9d('0xfc')]&&_0x5c6ef2[_0x5a9d('0xfc')][_0x5a9d('0x6b')],_0x3c0a46=_0x245967[_0x5a9d('0xfc')]&&_0x245967[_0x5a9d('0xfc')][_0x5a9d('0x6b')];if(!_0x5cd00a&&_0x310e24(_0x256756,_0x3f105c))return _0x4eca87[_0x5a9d('0x84')](_0x245967,_0x5c6ef2),_0x3cc207[_0x5a9d('0x123')](_0x5c6ef2),!0x0;if(!_0x3c0a46&&_0x310e24(_0x3f105c,_0x256756))return _0x4eca87['_joinSuggestions'](_0x5c6ef2,_0x245967),_0x3cc207[_0x5a9d('0x123')](_0x245967),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42f2e1,_0x1ba02a){if(_0x42f2e1[_0x5a9d('0xd7')])for(const _0x40875d of _0x1ba02a['getRanges']())_0x42f2e1[_0x5a9d('0x7e')](_0x40875d);else{const _0x16acf0=_0x1ba02a[_0x5a9d('0x36')]()[_0x5a9d('0xb4')];this[_0x5a9d('0xa4')](_0x42f2e1,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x42f2e1[_0x5a9d('0x36')]()[_0x5a9d('0x5c')],_0x16acf0));}_0x1ba02a[_0x5a9d('0xe7')]();}}class Bt{constructor(_0x2dad55){this[_0x5a9d('0xf5')]=_0x2dad55,this[_0x5a9d('0x1')]=_0x2dad55[_0x5a9d('0x7d')],this[_0x5a9d('0xd8')]=new Map(),this[_0x5a9d('0xa6')]=new Map(),this[_0x5a9d('0x11d')]();}[_0x5a9d('0xf4')](_0x37845f,_0xf75034,_0x502af9,_0x5c9885,_0xe67a73,_0x28a642){return new _0x2757c5(this['_model'],{'type':_0x37845f,'subType':_0xf75034,'id':_0x502af9,'author':_0x5c9885,'creator':_0x5c9885,'attributes':_0xe67a73,'onAttributesChange':_0x28a642,'onAccept':(..._0x529a28)=>this['getSuggestionCallback'](_0x37845f,_0xf75034,_0x5a9d('0xc3'))(..._0x529a28),'onDiscard':(..._0x4095ef)=>this[_0x5a9d('0x38')](_0x37845f,_0xf75034,_0x5a9d('0xdf'))(..._0x4095ef)});}['registerCustomCallback'](_0x33ab58,_0x8b456c,_0xf4404,_0x16f7c7){const _0x13cbcf=_0x33ab58+':'+_0x8b456c+':'+_0xf4404;this['_customCallbacks'][_0x5a9d('0x3f')](_0x13cbcf,_0x16f7c7);}[_0x5a9d('0x38')](_0xed516,_0x425d28,_0x413273){const _0x2ab664=_0xed516+':'+_0x425d28+':'+_0x413273;return this['_customCallbacks']['get'](_0x2ab664)||this[_0x5a9d('0xa6')][_0x5a9d('0x92')](_0xed516+':'+_0x413273);}[_0x5a9d('0x11d')](){const _0x1c13bf=()=>!0x1,_0x4da8b8=_0x48c6f9=>{_0x48c6f9[_0x5a9d('0xba')]((_0x215e7f,_0x373a2a)=>_0x215e7f['start']['isBefore'](_0x373a2a[_0x5a9d('0x5c')])?0x1:-0x1),this[_0x5a9d('0x1')]['change'](_0x1b953a=>{for(const _0x288170 of _0x48c6f9){let _0x1a1d44;_0x1a1d44=_0x288170[_0x5a9d('0xb4')][_0x5a9d('0xc6')]&&_0x288170[_0x5a9d('0xb4')]['parent']==_0x288170[_0x5a9d('0x5c')][_0x5a9d('0x10a')]?_0x1b953a[_0x5a9d('0x88')](_0x288170[_0x5a9d('0x5c')][_0x5a9d('0x10a')],'on'):_0x1b953a['createSelection'](_0x288170),this[_0x5a9d('0x1')]['deleteContent'](_0x1a1d44,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1da4c7=(_0x42092b,_0x166299)=>{this[_0x5a9d('0x1')][_0x5a9d('0xd0')](_0x273442=>{const {commandName:_0x795c5b,commandParams:_0x44b578=[]}=_0x166299,_0x584ae6=_0x42092b[_0x5a9d('0x10b')](_0x3696e9=>(Mt(_0x3696e9)&&(_0x3696e9=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x3696e9['end'])),_0x3696e9))['filter'](_0xd358a2=>_0x5a9d('0x77')!==_0xd358a2[_0x5a9d('0x10f')][_0x5a9d('0x3d')]);if(_0x584ae6[_0x5a9d('0x6b')]<0x1)return;const _0x28da85=Array['from'](this[_0x5a9d('0x1')][_0x5a9d('0xd3')]['selection'][_0x5a9d('0xf1')]())['map'](_0x19aafe=>_0x20f427[_0x5a9d('0x4')](_0x19aafe));_0x273442['setSelection'](_0x584ae6);for(const _0x447b33 of this[_0x5a9d('0xf5')][_0x5a9d('0x13b')][_0x5a9d('0x13b')]())_0x447b33[_0x5a9d('0x31')]();_0x44b578[_0x5a9d('0xe')]({'forceDefaultExecution':!0x0}),this[_0x5a9d('0xf5')][_0x5a9d('0x96')](_0x795c5b,..._0x44b578);const _0x165fe3=_0x28da85[_0x5a9d('0x9c')](_0x5bdb98=>_0x5a9d('0x77')!=_0x5bdb98['root'][_0x5a9d('0x3d')]);_0x165fe3[_0x5a9d('0x6b')]>0x0&&_0x273442[_0x5a9d('0xa2')](_0x165fe3);for(const _0x148c83 of _0x28da85)_0x148c83[_0x5a9d('0x51')]();});},_0x5dbe79=(_0x5866da,_0x147b4c)=>0x1==_0x5866da[_0x5a9d('0x6b')]&&0x1==_0x147b4c[_0x5a9d('0x6b')]&&_0x5866da[0x0][_0x5a9d('0xb4')]['isEqual'](_0x147b4c[0x0][_0x5a9d('0x5c')]),_0x4860ca=(_0x2229dc,_0x3fe2eb,_0x214b1c,_0x3eb9b6)=>xt(_0x2229dc,_0x3fe2eb,_0x214b1c,_0x3eb9b6,this[_0x5a9d('0x1')])?[_0x2229dc,_0x3fe2eb]:xt(_0x3fe2eb,_0x2229dc,_0x3eb9b6,_0x214b1c,this[_0x5a9d('0x1')])?[_0x3fe2eb,_0x2229dc]:null;this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x10'),_0x1c13bf),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x7a'),_0x4da8b8),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x135'),_0x5dbe79),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x9a'),_0x4860ca),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')]('deletion:accept',_0x4da8b8),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')]('deletion:discard',_0x1c13bf),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x6e'),_0x5dbe79),this['_defaultCallbacks'][_0x5a9d('0x3f')]('deletion:chain',_0x4860ca),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x12e'),_0x1da4c7),this[_0x5a9d('0xa6')]['set'](_0x5a9d('0xfd'),_0x1c13bf),this[_0x5a9d('0xa6')]['set'](_0x5a9d('0xd'),_0x5dbe79),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x9f'),_0x1c13bf),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x13c'),_0x1da4c7),this['_defaultCallbacks']['set'](_0x5a9d('0xbd'),_0x1c13bf),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')]('formatBlock:join',_0x5dbe79),this[_0x5a9d('0xa6')]['set'](_0x5a9d('0xa8'),_0x1c13bf);}}function _t(_0x54bca1,_0x2c19c5,_0x3fc715){for(const _0x27d3c6 of _0x2c19c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x27d3c6[_0x5a9d('0x10f')]==_0x27d3c6)return!0x1;if(!_0x3fc715['containsItem'](_0x27d3c6))return!0x1;if(_0x54bca1[_0x5a9d('0xcc')](_0x27d3c6)||_0x54bca1['isLimit'](_0x27d3c6))return!0x0;}return!0x1;}function Mt(_0x40bbec){return _0x40bbec[_0x5a9d('0xb4')][_0x5a9d('0x13a')]==_0x40bbec[_0x5a9d('0x5c')][_0x5a9d('0x10a')]&&_0x40bbec[_0x5a9d('0xb4')][_0x5a9d('0x76')];}function $t(_0x51d776,_0x45a56f,_0x500f0d,_0x594ea7){const _0x42b969=_0x2172ca=>!_0x2172ca['item']['is']('$textProxy')&&!_0x594ea7[_0x5a9d('0xcc')](_0x2172ca[_0x5a9d('0xc7')]),_0x394a0f=_0x51d776[_0x5a9d('0x5c')][_0x5a9d('0xb8')](_0x42b969),_0x4bd0a3=_0x51d776[_0x5a9d('0xb4')][_0x5a9d('0xb8')](_0x42b969,{'direction':_0x5a9d('0x9e')});return(!_0x51d776[_0x5a9d('0x5c')][_0x5a9d('0xf6')](_0x394a0f)||!_0x51d776[_0x5a9d('0xb4')][_0x5a9d('0xf6')](_0x4bd0a3))&&(_0x394a0f['isBefore'](_0x4bd0a3)?_0x500f0d['updateMarker'](_0x45a56f,{'range':_0x500f0d[_0x5a9d('0x100')](_0x394a0f,_0x4bd0a3)}):_0x500f0d[_0x5a9d('0x5b')](_0x45a56f),!0x0);}function Nt(_0x5a00c9){return _0x16fb8f(_0x5a00c9);}function Rt(_0x12618f){const _0x4b32fb=_0x12618f[_0x5a9d('0x5c')]['nodeAfter'];return _0x4b32fb&&_0x4b32fb['is'](_0x5a9d('0x40'));}function jt(_0x1e77bb,_0x5026fd){const _0x564876=_0x5026fd[_0x5a9d('0x63')]['isObject'](_0x1e77bb)||_0x5026fd[_0x5a9d('0x63')]['isSelectable'](_0x1e77bb);return _0x5026fd[_0x5a9d('0x100')](_0x5026fd[_0x5a9d('0xf9')](_0x1e77bb,_0x5a9d('0x74')),_0x564876?_0x5026fd[_0x5a9d('0x29')](_0x1e77bb):_0x5026fd[_0x5a9d('0xf9')](_0x1e77bb,'end'));}function xt(_0x1f087e,_0x149054,_0x5a34a7,_0x28738f,_0x513829){if(!Ut(_0x1f087e,_0x149054))return!0x1;if(_0x5a34a7[_0x5a9d('0xb4')]['isEqual'](_0x28738f[_0x5a9d('0x5c')]))return!0x0;if(_0x1f087e['type']!=_0x149054[_0x5a9d('0x111')])return!0x1;if(!_0x5a34a7[_0x5a9d('0xb4')][_0x5a9d('0x134')](_0x28738f[_0x5a9d('0x5c')]))return!0x1;const _0x5c008b=_0x513829[_0x5a9d('0x100')](_0x5a34a7['end'],_0x28738f[_0x5a9d('0x5c')])['getWalker']();for(const _0x5e7d31 of _0x5c008b)if([_0x5a9d('0x33'),_0x5a9d('0x78')]['includes'](_0x5e7d31['type'])&&_0x513829[_0x5a9d('0x63')][_0x5a9d('0x131')](_0x5e7d31['item']))return!0x1;return!0x0;}function Ut(_0x815cf5,_0x14f02d){return!(!_0x815cf5['_isDataLoaded']||!_0x14f02d[_0x5a9d('0xbe')])&&_0x53d308(_0x815cf5[_0x5a9d('0x47')],_0x14f02d['attributes']);}function Ot(_0xd19e33,_0x584aa7){const _0x2affa8=Et(_0xd19e33[_0x5a9d('0x47')]),_0x298b15=Et(_0x584aa7);if(!_0xd19e33[_0x5a9d('0xbe')])return!0x1;for(const _0x3fbbae of Object[_0x5a9d('0x129')](_0x298b15))if(!_0x53d308(_0x2affa8[_0x3fbbae],_0x298b15[_0x3fbbae]))return!0x1;return!0x0;}function Et(_0x476dc7){const _0x39983b=Object[_0x5a9d('0xbb')]({},_0x476dc7);return delete _0x39983b[_0x5a9d('0x99')],delete _0x39983b[_0x5a9d('0x109')],_0x39983b;}
23
+ const _0x1b26=['insertion:accept','filter','open','_getExternalAuthor','isInContent','formatGroupId','dataReady','discardSuggestion','item','formatBlock:discard','model','formatBlock:accept','addClass','track-changes-adapter-missing-getsuggestion','listenTo','createPositionAt','getRange','removeAttribute','enableCommand','elementStart','rejected','_onDiscard','getMultiRangeId','editor','suggestion-type','_mergeNestedSuggestions','attributes','for','track-changes-suggestion-not-found','hasSuggestion','deletion:accept','isBlock','writer','every','toJSON','formatInline','acceptSelectedSuggestions','pluginName','resolve','notReady','isObject','substr','_splitMarkerName','formatInline:discard','removeMarkers','parent','head','_joinWithAdjacentSuggestions','formatInline:','Users','PENDING_ACTION_SUGGESTION','isBefore','collaboration.channelId','elementEnd','selection','setTo','dataDowncast','clear','updateMarker','locale','getSuggestionCallback','ck-suggestion-marker--active','_createSuggestion','suggestionLoaded','upcast','group','batch','clone','insertion:','markerToData','formatInline:join','enqueueChange','_setSuggestionRange','isMultiRange','start','insertContent','bindElementToMarker','root','remove','isLimit','_breakSuggestionMarker','rootName','_registerDefaultCallbacks','_saved','_customCallbacks','nodeAfter','formatInline:accept','_enabledCommands','isCollapsed','execute','_editor','getDifference','data-suggestion','track-changes-command-not-found','set','_findSuggestions','getIntersection','forceDefaultExecution','nodeBefore','values','_refreshSuggestionsChain','editing','_addThreadToSuggestion','getCommentThread','formatInline:chain','_suggestions','markerToHighlight','removeMarker','config','getShiftedBy','detach','value','getSuggestions','getChangedMarkers','containsItem','trackChanges','fromCharCode','addSuggestionData','howMany','never','isArray','_removeSuggestion','@external','skipNestingCheck','change:activeMarkers','deletion:chain','default','isEqual','commands','removeClass','isExternal','markInsertion','fire','_handleNewSuggestionMarker','buildSuggestion','CommentsRepository','createRangeIn','enableReadOnlyMode','stop','splitPosition','_trackFormatChanges','then','_getAuthorFromId','after','applyOperation','schema','deleteContent','low','getUser','track-changes-user-not-found','discard','getAttribute','map','get','isAfter','isIntersectingWithRange','size','createElement','dataToMarker','addComment','showSuggestionHighlights','add','getLastMatchingPosition','sort','isTouching','previous','removeMarker:suggestion:formatBlock','addUser','join','formatBlock:chain','elementToElement','suggestion:','author','originalSuggestionId','requires','consume','_model','deletion','push','_getSuggestionData','createSelection','markInlineFormat','discardSelectedSuggestions','insertion:chain','toViewElement','high','before','from','setSelection','containerElement','oldRange','data','markMultiRangeInsertion','createRange','commentThread','position','_addSuggestionMarker','conversion','reconvertMarker','differ','$marker','discardAllSuggestions','markBlockFormat','keys','_suggestionFactory','_updateSuggestionData','split','includes','getNearestSelectionRange','markerName','addMarker','backward','some','acceptSuggestion','trackChanges.trackFormatChanges','suggestionUnloaded','hasComments','getCustomProperty','move','formatBlock:','removed','end','ready','getSuggestion','suggestionChanged','element','assign','insertion:join','markDeletion','isDocumentOperation','subType','trackChangesCommand','init','commandName','track-changes-adapter-already-set','accepted','return','isRemovable','isOwn','marker-count','document','unbindElementFromMarkerName','define','_setSuggestionData','multipleBlocks','ck-suggestion-marker-','plugins','addMarkerName','isInsideObject','addRange','PendingActions','containsRangeInObject','name','length','creator','unbind','addMarker:suggestion:formatBlock','_isDataLoaded','editingDowncast','getFirstMarker','getAncestors','_adapter','createPositionAfter','addSuggestion','activeMarkers','registerPostFixer','change:data','has','next','range','formatBlock','getMarkers','ck-suggestion-marker','isNextTo','getRanges','trackChanges.mergeNestedSuggestions','_checkSuggestionCorrectness','acceptAllSuggestions','documentSelection','always','options','type','forward','getFirstRange','_joinSuggestions','createdAt','multi','normal','insertion','updateSuggestion','consumable','insertion:discard','_defaultCallbacks','containsRange','markers','_rangeIsInLocalUserInsertion','stopListening','_isForcedDefaultExecutionBlock','mapper','isUndo','lowest','$graveyard','newRange','_descriptionFactory','track-changes-suggestion-data-mismatch','_suggestionState','isAtEnd','tablePasteChainId','authoredAt','fetchCommentThread','change','adapter','setAttribute','external:','hasCommentThread','accept','delete','_commentsRepository','suggestion'];(function(_0x3a710d,_0x1b26b8){const _0xc46189=function(_0x17d007){while(--_0x17d007){_0x3a710d['push'](_0x3a710d['shift']());}};_0xc46189(++_0x1b26b8);}(_0x1b26,0x159));const _0xc461=function(_0x3a710d,_0x1b26b8){_0x3a710d=_0x3a710d-0x0;let _0xc46189=_0x1b26[_0x3a710d];return _0xc46189;};import{Plugin as _0x566c40,PendingActions as _0x44cdde}from'ckeditor5/src/core';import{LiveRange as _0x439992}from'ckeditor5/src/engine';import{CKEditorError as _0x339aa1,uid as _0xccee84,priorities as _0x312d8c,logWarning as _0x1725bb}from'ckeditor5/src/utils';import{toWidget as _0x1c8f14}from'ckeditor5/src/widget';import{Users as _0x1ef6d4,hashObject as _0x4a4395}from'ckeditor5-collaboration/src/collaboration-core';import _0x347b90 from'./commands/trackchangescommand';import _0x98675f from'./commands/acceptsuggestioncommand';import _0x1587e2 from'./commands/discardsuggestioncommand';import _0xaceebc from'./commands/executeonallsuggestionscommand';import _0x198a38 from'./commands/executeonselectedsuggestionscommand';import _0x454d15 from'./suggestion';import _0x53c2ba from'./suggestiondescriptionfactory';import _0x4a217a from'./integrations/aiassistant';import _0x3d20ce from'./integrations/alignment';import _0x243a99 from'./integrations/basicstyles';import _0x422abe from'./integrations/blockquote';import _0x527932 from'./integrations/ckbox';import _0x406f10 from'./integrations/codeblock';import _0xc09312 from'./integrations/comments';import _0x2c2cf8 from'./integrations/deletecommand';import _0x3b29fb from'./integrations/documentlist';import _0x4e5610 from'./integrations/entercommand';import _0x29d3a7 from'./integrations/findandreplace';import _0x5be49f from'./integrations/font';import _0x33199a from'./integrations/formatpainter';import _0x209ec1 from'./integrations/heading';import _0x10e67d from'./integrations/highlight';import _0x1ae1a2 from'./integrations/horizontalline';import _0x555479 from'./integrations/htmlembed';import _0x18287f from'./integrations/image';import _0x36e659 from'./integrations/imagereplace';import _0x51df5b from'./integrations/importword';import _0x2d52fb from'./integrations/indent';import _0x1e12cf from'./integrations/inputcommand';import _0x120cd1 from'./integrations/link';import _0x14613b from'./integrations/list';import _0x1fb7fe from'./integrations/listproperties';import _0x19cfc1 from'./integrations/mediaembed';import _0x3c1012 from'./integrations/mention';import _0x1de599 from'./integrations/pagebreak';import _0x112eeb from'./integrations/paragraph';import _0x2278c8 from'./integrations/removeformat';import _0x16fbb4 from'./integrations/restrictededitingmode';import _0x34b8d4 from'./integrations/shiftentercommand';import _0x9de535 from'./integrations/standardeditingmode';import _0x24e643 from'./integrations/style';import _0x1b7573 from'./integrations/table';import _0x310af5 from'./integrations/tablemergesplit';import _0x2d99b9 from'./integrations/tableheadings';import _0x413160 from'./integrations/tableclipboard';import _0x5c1707 from'./integrations/tablecolumnresize';import _0x40f708 from'./integrations/template';import _0x480453 from'./integrations/tableofcontents';import _0x2ec094 from'./integrations/title';import _0x4b467a from'./integrations/undo';import{getTranslation as _0x30569e}from'./utils/common-translations';import _0x504903 from'./integrations/tablecaption';import _0x5c10b6 from'./integrations/documentlistproperties';import _0x3096f2 from'./integrations/tableproperties';import{isEqual as _0x4541bd}from'lodash-es';export default class p extends _0x566c40{static get[_0xc461('0x94')](){return[_0xc461('0x6d'),_0x1ef6d4,_0x44cdde,_0x4a217a,_0x3d20ce,_0x243a99,_0x422abe,_0x527932,_0x406f10,_0xc09312,_0x2c2cf8,_0x3b29fb,_0x5c10b6,_0x4e5610,_0x29d3a7,_0x5be49f,_0x33199a,_0x209ec1,_0x10e67d,_0x1ae1a2,_0x555479,_0x18287f,_0x36e659,_0x51df5b,_0x2d52fb,_0x1e12cf,_0x120cd1,_0x14613b,_0x1fb7fe,_0x19cfc1,_0x3c1012,_0x1de599,_0x112eeb,_0x2278c8,_0x16fbb4,_0x34b8d4,_0x9de535,_0x24e643,_0x1b7573,_0x310af5,_0x2d99b9,_0x504903,_0x413160,_0x5c1707,_0x480453,_0x3096f2,_0x40f708,_0x2ec094,_0x4b467a];}static get[_0xc461('0xb')](){return'TrackChangesEditing';}constructor(_0x372932){function _0x530a45(_0x2535fd){return _0x2535fd[_0xc461('0x7e')](_0x59edc9=>String[_0xc461('0x5a')](_0x59edc9))[_0xc461('0x8e')]('');}super(_0x372932),this[_0xc461('0x44')](_0xc461('0xee'),[]),this['on'](_0xc461('0x62'),(_0x155904,_0x5660fc,_0x1558bf,_0x3101fd)=>{this['_model'][_0xc461('0x11c')](()=>{for(const _0x3a0d45 of[..._0x3101fd,..._0x1558bf])this[_0xc461('0x96')]['markers'][_0xc461('0xf1')](_0x3a0d45)&&_0x372932[_0xc461('0x4b')][_0xc461('0xac')](_0x3a0d45);});}),this[_0xc461('0x115')]=new _0x53c2ba(this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x77')],this[_0xc461('0x13c')]['locale']),this[_0xc461('0xeb')]=null,this[_0xc461('0xb2')]=new Bt(this[_0xc461('0x13c')]),this['_suggestions']=new Map(),this[_0xc461('0x123')]=_0x372932[_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x6d')),this[_0xc461('0x3d')]=new Set(),this['_model']=this[_0xc461('0x13c')]['model'],this[_0xc461('0x117')]=new WeakMap(),this[_0xc461('0x10f')]=!0x1,_0x372932[_0xc461('0x52')][_0xc461('0xd8')](_0xc461('0xbc'),_0xc461('0x64')),this[_0xc461('0x72')]=_0x372932[_0xc461('0x52')][_0xc461('0x7f')](_0xc461('0xbc')),_0x372932['config'][_0xc461('0xd8')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x372932[_0xc461('0x52')][_0xc461('0x7f')](_0xc461('0xf9')),this[_0xc461('0xcd')]=new _0x347b90(_0x372932,this['_enabledCommands']),this[_0x530a45([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x530a45([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x32]);}[_0xc461('0xce')](){const _0x138134=this['editor'];_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0xe8'))[_0xc461('0x50')]({'model':_0xc461('0x124'),'view':_0x31c465=>{const {id:_0x258d5a,type:_0x59dde9}=this[_0xc461('0x10')](_0x31c465[_0xc461('0xb7')]),_0x4450af=['ck-suggestion-marker',_0xc461('0xdb')+_0x59dde9];let _0x5d2281=0xbb8;return this['activeMarkers'][_0xc461('0xb5')](_0x31c465['markerName'])&&(_0x4450af[_0xc461('0x98')](_0xc461('0x23')),_0x5d2281=0xbc2),_0xc461('0x97')==_0x59dde9&&(_0x5d2281+=0x5),{'classes':_0x4450af,'attributes':{'data-suggestion':_0x258d5a},'priority':_0x5d2281};}}),_0x138134['conversion'][_0xc461('0x1')](_0xc461('0x1e'))[_0xc461('0x87')](_0x5bd8a7=>{_0x5bd8a7['on']('addMarker:suggestion',(_0x3b7e70,_0x2054e,_0x38fadc)=>{if(!_0x38fadc[_0xc461('0xfe')][_0xc461('0x86')])return;const _0x274302=_0x2054e['item'];if(!_0x274302)return;const _0x5a9d19=_0x38fadc[_0xc461('0x110')]['toViewElement'](_0x274302);_0x138134['model'][_0xc461('0x77')][_0xc461('0xe')](_0x274302)&&_0x5a9d19&&!_0x5a9d19[_0xc461('0xbf')]('widget')&&_0x5a9d19['is'](_0xc461('0xa3'))&&_0x1c8f14(_0x5a9d19,_0x38fadc[_0xc461('0x6')]);},{'priority':_0xc461('0x9f')});}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x1e'))[_0xc461('0x50')]({'model':'suggestion','view':(_0x3f3004,_0x210570)=>{if(!_0x210570[_0xc461('0xfe')][_0xc461('0x86')])return null;const {type:_0x25cbaf}=this[_0xc461('0x10')](_0x3f3004[_0xc461('0xb7')]);return{'classes':[_0xc461('0xf6'),'ck-suggestion-marker-'+_0x25cbaf],'priority':0xbb8};}});const _0x23c3ed=({showActiveMarkers:_0x4dffe1=!0x0}={})=>(_0x409ac5,_0x1f6b1b,_0x42eaf6)=>{if(!_0x1f6b1b['item'])return;if(_0x1f6b1b[_0xc461('0x12d')]['is']('selection'))return void _0x42eaf6[_0xc461('0x108')]['consume'](_0x1f6b1b[_0xc461('0x12d')],_0x409ac5[_0xc461('0xe2')]);const _0x1001df=_0x42eaf6['mapper'][_0xc461('0x9e')](_0x1f6b1b[_0xc461('0x12d')]);if(!(_0x1f6b1b['item']['is'](_0xc461('0xc7'))&&_0x138134['model'][_0xc461('0x77')][_0xc461('0x5')](_0x1f6b1b[_0xc461('0x12d')])&&!_0x1001df[_0xc461('0xbf')]('addHighlight')))return;const {id:_0x2b7d65}=this['_splitMarkerName'](_0x1f6b1b['markerName']);_0x42eaf6[_0xc461('0x6')][_0xc461('0x131')]([_0xc461('0xf6'),'ck-suggestion-marker-formatBlock'],_0x1001df),_0x42eaf6['writer'][_0xc461('0x11e')](_0xc461('0x42'),_0x2b7d65,_0x1001df),_0x42eaf6['mapper'][_0xc461('0x32')](_0x1001df,_0x1f6b1b[_0xc461('0xb7')]),_0x4dffe1&&(this['activeMarkers']['includes'](_0x1f6b1b[_0xc461('0xb7')])?_0x42eaf6[_0xc461('0x6')][_0xc461('0x131')](_0xc461('0x23'),_0x1001df):_0x42eaf6[_0xc461('0x6')][_0xc461('0x67')](_0xc461('0x23'),_0x1001df));for(const _0x146de8 of _0x138134[_0xc461('0x12f')][_0xc461('0x6e')](_0x1f6b1b[_0xc461('0x12d')])['getItems']())_0x42eaf6[_0xc461('0x108')]['consume'](_0x146de8,_0x409ac5['name']);_0x42eaf6[_0xc461('0x108')][_0xc461('0x95')](_0x1f6b1b[_0xc461('0x12d')],_0x409ac5['name']);};_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x1e'))['add'](_0x9c1e5=>{_0x9c1e5['on']('addMarker:suggestion:formatBlock',(_0x100858,_0x43f6b1,_0x213291)=>{_0x213291[_0xc461('0xfe')]['showSuggestionHighlights']&&_0x23c3ed({'showActiveMarkers':!0x1})(_0x100858,_0x43f6b1,_0x213291);},{'priority':'highest'});}),_0x138134['conversion']['for'](_0xc461('0x1e'))[_0xc461('0x2b')]({'model':'suggestion','view':(_0x33d336,_0x3de0cd)=>_0x3de0cd[_0xc461('0xfe')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33d336[_0xc461('0xf')](0xb)}}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x26'))[_0xc461('0x90')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34ba46,{writer:_0x448291})=>{let _0x131317=_0xc461('0x91')+_0x34ba46[_0xc461('0x7d')](_0xc461('0x13d'))+':'+_0x34ba46[_0xc461('0x7d')]('id');return _0x34ba46[_0xc461('0x7d')](_0xc461('0xd5'))&&(_0x131317+=':'+_0x34ba46['getAttribute'](_0xc461('0xd5'))),_0x448291[_0xc461('0x83')](_0xc461('0xae'),{'data-name':_0x131317});}}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x26'))[_0xc461('0x84')]({'view':_0xc461('0x124')}),_0x138134[_0xc461('0xab')]['for'](_0xc461('0xe8'))[_0xc461('0x87')](_0x309ca2=>{_0x309ca2['on'](_0xc461('0xe6'),_0x23c3ed(),{'priority':_0xc461('0x9f')});}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0xe8'))[_0xc461('0x87')](_0x4d7bf6=>{_0x4d7bf6['on'](_0xc461('0x8c'),(_0x22287d,_0x7909e7,_0x478e5d)=>{const _0x17f36f=_0x478e5d[_0xc461('0x110')]['markerNameToElements'](_0x7909e7[_0xc461('0xb7')]);if(_0x17f36f)for(const _0x1c9be0 of _0x17f36f)_0x1c9be0['getCustomProperty']('addHighlight')||(_0x478e5d['writer'][_0xc461('0x67')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0xc461('0x23')],_0x1c9be0),_0x478e5d[_0xc461('0x6')][_0xc461('0x136')](_0xc461('0x42'),_0x1c9be0),_0x478e5d[_0xc461('0x110')][_0xc461('0xd7')](_0x1c9be0,_0x7909e7['markerName']));},{'priority':_0xc461('0x9f')});}),_0x138134['model'][_0xc461('0xd6')][_0xc461('0xef')](_0x200c52=>{let _0x45b67f=!0x1;const _0x1c626c=Array[_0xc461('0xa1')](_0x138134[_0xc461('0x12f')][_0xc461('0xd6')]['differ'][_0xc461('0x57')]()),_0x586738=new Set();for(const {name:_0x2fb8a1,data:_0x579ec6}of _0x1c626c){const {group:_0x216436,type:_0x5e8322,id:_0x1d8150}=this[_0xc461('0x10')](_0x2fb8a1);if(_0xc461('0x124')!==_0x216436)continue;const _0x2b25a7=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x1d8150);if(null!=_0x579ec6[_0xc461('0x114')]){_0xc461('0x9')==_0x5e8322&&(_0x45b67f=_0x45b67f||$t(_0x579ec6['newRange'],_0x2fb8a1,_0x200c52,_0x138134[_0xc461('0x12f')][_0xc461('0x77')]));if(_0x579ec6[_0xc461('0x114')][_0xc461('0x3e')]||'$graveyard'==_0x579ec6[_0xc461('0x114')][_0xc461('0x33')][_0xc461('0x37')]||_0xc461('0xf4')==_0x5e8322&&!Rt(_0x579ec6[_0xc461('0x114')])||_0xc461('0x97')==_0x5e8322&&!(!Mt(_0x1bcbce=_0x579ec6[_0xc461('0x114')])&&!function(_0x44e10f){return _0x44e10f['start'][_0xc461('0x13')]==_0x44e10f['end'][_0xc461('0x48')]&&_0x44e10f['start'][_0xc461('0x118')];}(_0x1bcbce)))_0x200c52[_0xc461('0x51')](_0x2fb8a1),_0x45b67f=!0x0;else{if(!_0x2b25a7||!_0x2b25a7[_0xc461('0x129')])continue;_0x586738[_0xc461('0x87')](_0x2b25a7);}}}var _0x1bcbce;return _0x586738[_0xc461('0x82')]>0x0&&(_0x45b67f=!!this[_0xc461('0x15')](_0x586738)||_0x45b67f),_0x45b67f;}),_0x138134[_0xc461('0x12f')]['document']['registerPostFixer'](_0x2fff32=>{let _0x231928=!0x1;for(const _0x317064 of _0x138134[_0xc461('0x12f')][_0xc461('0xd6')][_0xc461('0xad')]['getChanges']()){if('insert'!=_0x317064[_0xc461('0xff')])continue;const _0x4860e2=_0x317064[_0xc461('0xa9')][_0xc461('0x53')](_0x317064[_0xc461('0xe3')]);if(_0x4860e2['isAtEnd'])for(const _0x2051df of this[_0xc461('0x4f')][_0xc461('0x49')]()){if(_0x2051df[_0xc461('0x2f')]||!_0x2051df[_0xc461('0x129')])continue;if(_0xc461('0xf4')!=_0x2051df[_0xc461('0xff')])continue;const _0x29a311=_0x2051df[_0xc461('0x101')]();if(_0x29a311['start'][_0xc461('0x13')]!=_0x29a311[_0xc461('0xc3')][_0xc461('0x13')]&&_0x29a311[_0xc461('0xc3')][_0xc461('0x65')](_0x317064['position'])){const _0x1d1fd3=_0x138134['model'][_0xc461('0xa7')](_0x29a311[_0xc461('0x30')],_0x4860e2);_0x2fff32[_0xc461('0x20')](_0x2051df[_0xc461('0xe9')](),{'range':_0x1d1fd3}),_0x231928=!0x0;}}}return _0x231928;}),_0x138134[_0xc461('0x12f')][_0xc461('0x10c')]['on']('update:suggestion',(_0x3a38e1,_0x13db76,_0x3319ac)=>{if(null==_0x3319ac){const {id:_0x55b31a}=this['_splitMarkerName'](_0x13db76['name']),_0x45a6a3=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x55b31a);_0x45a6a3&&_0x45a6a3[_0xc461('0xdd')](_0x13db76[_0xc461('0xe2')]);}}),_0x138134['model'][_0xc461('0xd6')]['on'](_0xc461('0xf0'),()=>{const _0x4dc27b=Array[_0xc461('0xa1')](_0x138134['model'][_0xc461('0xd6')]['differ'][_0xc461('0x57')]())[_0xc461('0x126')](_0x5ce609=>_0xc461('0x124')===this[_0xc461('0x10')](_0x5ce609[_0xc461('0xe2')])[_0xc461('0x27')]);if(0x0===_0x4dc27b[_0xc461('0xe3')])return;_0x4dc27b['sort']((_0x2a0781,_0x10757b)=>{const _0x5f5dfe=_0x2a0781[_0xc461('0xa5')][_0xc461('0xa4')],_0x1d6136=_0x10757b[_0xc461('0xa5')]['oldRange'];return null===_0x5f5dfe&&null===_0x1d6136?0x0:null===_0x5f5dfe&&null!==_0x1d6136?-0x1:null!==_0x5f5dfe&&null===_0x1d6136?0x1:_0x5f5dfe[_0xc461('0x30')][_0xc461('0x19')](_0x1d6136[_0xc461('0x30')])?-0x1:0x1;});const _0x2c01ca=new Set(),_0x51f7a4=new Set();for(const {name:_0x473082,data:_0x343a25}of _0x4dc27b){const {id:_0x4a2755}=this[_0xc461('0x10')](_0x473082);if(null===_0x343a25[_0xc461('0xa4')]){const _0x5d8409=this[_0xc461('0x6b')](_0x473082);_0x51f7a4['add'](_0x5d8409);}else{const _0x3444a0=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x4a2755);null!==_0x343a25[_0xc461('0x114')]||_0x3444a0['isInContent']?(_0x2c01ca[_0xc461('0x87')](_0x3444a0[_0xc461('0x14')]),_0x51f7a4[_0xc461('0x87')](_0x3444a0)):this[_0xc461('0x5f')](_0x3444a0);}}_0x51f7a4[_0xc461('0x82')]>0x0&&this[_0xc461('0x4a')](_0x51f7a4);for(const _0x31c485 of _0x2c01ca)this['fire'](_0xc461('0xc6'),_0x31c485);}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x76'),(_0x2d09ea,_0x4be9a4)=>{const _0x13ecc4=_0x4be9a4[0x0];if(!this[_0xc461('0x4f')][_0xc461('0x82')])return;if(!_0x13ecc4[_0xc461('0xcb')])return;if(_0x13ecc4[_0xc461('0x28')][_0xc461('0x111')]||!_0x13ecc4[_0xc461('0x28')]['isLocal'])return;let _0x198124,_0x5b3234;switch(_0x13ecc4[_0xc461('0xff')]){case'insert':_0x198124=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4[_0xc461('0xa9')]),_0x5b3234=_0x198124[_0xc461('0x53')](_0x13ecc4[_0xc461('0x5c')]);break;case _0xc461('0xb4'):_0x198124=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4[_0xc461('0x71')]),_0x5b3234=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4['moveTargetPosition']);break;case _0xc461('0xc0'):_0x198124=_0x138134[_0xc461('0x12f')]['createPositionAt'](_0x13ecc4['targetPosition']),_0x5b3234=_0x198124[_0xc461('0x53')](_0x13ecc4['howMany']);break;default:return;}const _0x49e8fd=_0x138134[_0xc461('0x12f')][_0xc461('0xa7')](_0x198124,_0x5b3234);_0x138134[_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const {suggestion:_0x221e72,meta:_0x5df00c}of this[_0xc461('0x45')](_0x49e8fd)){if(_0x221e72[_0xc461('0x2f')])continue;if('formatInline'==_0x221e72['type'])continue;const _0x11498d=_0x221e72[_0xc461('0xa5')]&&_0x221e72[_0xc461('0xa5')][_0xc461('0xda')];(_0xc461('0xf4')!=_0x221e72['type']||_0xc461('0xb4')==_0x13ecc4[_0xc461('0xff')]&&!_0x11498d)&&(_0x5df00c[_0xc461('0xe1')]||_0xc461('0x106')==_0x221e72[_0xc461('0xff')]&&_0x5df00c['isOwn']||_0x221e72[_0xc461('0x101')]()[_0xc461('0x10b')](_0x49e8fd)&&this[_0xc461('0x36')](_0x221e72,_0x198124,_0x5b3234));}});},{'priority':_0xc461('0x112')}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x78'),(_0x31f328,_0x2416ea)=>{const _0x16fe48=_0x2416ea[0x0],_0x7962d4=_0x2416ea[0x1];if(_0x7962d4&&_0x7962d4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0xc461('0xcd')][_0xc461('0x55')])return;if(_0x16fe48['isCollapsed'])return;const _0x55008d=_0x138134[_0xc461('0x12f')][_0xc461('0x77')],{start:_0x1e7021,end:_0x4c036b}=_0x16fe48[_0xc461('0x101')](),_0x371f1a=_0x1e7021['nodeAfter']&&_0x55008d[_0xc461('0x35')](_0x1e7021['nodeAfter'])?null:_0x55008d['getNearestSelectionRange'](_0x1e7021,_0xc461('0x100')),_0x32cf99=_0x4c036b[_0xc461('0x48')]&&_0x55008d[_0xc461('0x35')](_0x4c036b[_0xc461('0x48')])?null:_0x55008d[_0xc461('0xb6')](_0x4c036b,_0xc461('0xb9')),_0x14c36f=_0x138134['model'][_0xc461('0xa7')](_0x371f1a?_0x371f1a[_0xc461('0x30')]:_0x1e7021,_0x32cf99?_0x32cf99[_0xc461('0xc3')]:_0x4c036b);_0x138134['model']['change'](_0x515b5d=>{this[_0xc461('0xca')](_0x14c36f);const _0x4ac9fa=_0x138134[_0xc461('0x12f')]['schema'][_0xc461('0xb6')](_0x14c36f[_0xc461('0x30')]);_0x16fe48['is'](_0xc461('0xfc'))?_0x515b5d[_0xc461('0xa2')](_0x4ac9fa):_0x16fe48[_0xc461('0x1d')](_0x4ac9fa);}),_0x31f328[_0xc461('0x70')]();},{'priority':_0x312d8c[_0xc461('0x105')]+0xa}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x31'),(_0x41c9aa,_0x45f011)=>{const _0x20bc35=_0x45f011[_0x45f011['length']-0x1];_0x20bc35&&_0x20bc35['forceDefaultExecution']||this[_0xc461('0x10f')]||this['trackChangesCommand'][_0xc461('0x55')]&&(_0x138134[_0xc461('0x12f')][_0xc461('0x11c')](()=>{let _0x560e52=_0x138134[_0xc461('0x12f')][_0xc461('0x31')](_0x45f011[0x0],_0x45f011[0x1],_0x45f011[0x2],{'forceDefaultExecution':!0x0});if(!_0x560e52)return;_0x41c9aa['return']=_0x560e52[_0xc461('0x29')]();const _0x2fc38f=_0x560e52['end'][_0xc461('0x48')],_0x4f37af=_0x138134[_0xc461('0x12f')][_0xc461('0x77')];_0x2fc38f&&_0x4f37af['isBlock'](_0x2fc38f)&&!_0x4f37af[_0xc461('0xe')](_0x2fc38f)&&(_0x560e52=_0x138134[_0xc461('0x12f')][_0xc461('0xa7')](_0x560e52[_0xc461('0x30')],_0x138134[_0xc461('0x12f')]['createPositionAt'](_0x2fc38f,'end'))),this[_0xc461('0x69')](_0x560e52);}),_0x41c9aa[_0xc461('0x70')]());},{'priority':_0xc461('0x9f')}),this[_0xc461('0x13c')][_0xc461('0x66')][_0xc461('0x87')](_0xc461('0x59'),this[_0xc461('0xcd')]),this[_0xc461('0x137')](_0xc461('0x59'));const _0x21fa0a=new _0x98675f(_0x138134,this[_0xc461('0x4f')]);_0x138134['commands'][_0xc461('0x87')]('acceptSuggestion',_0x21fa0a),this['enableCommand'](_0xc461('0xbb'));const _0x2e0791=new _0x1587e2(_0x138134,this['_suggestions']);_0x138134[_0xc461('0x66')][_0xc461('0x87')]('discardSuggestion',_0x2e0791),this[_0xc461('0x137')](_0xc461('0x12c')),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('acceptAllSuggestions',new _0xaceebc(_0x138134,_0x21fa0a,this[_0xc461('0x4f')])),this['enableCommand'](_0xc461('0xfb')),_0x138134['commands']['add'](_0xc461('0xaf'),new _0xaceebc(_0x138134,_0x2e0791,this[_0xc461('0x4f')])),this['enableCommand']('discardAllSuggestions'),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('acceptSelectedSuggestions',new _0x198a38(_0x138134,_0x21fa0a,this[_0xc461('0x4f')])),this[_0xc461('0x137')](_0xc461('0xa')),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('discardSelectedSuggestions',new _0x198a38(_0x138134,_0x2e0791,this[_0xc461('0x4f')])),this[_0xc461('0x137')](_0xc461('0x9c'));const _0x655555=_0x138134[_0xc461('0xdc')]['get']('CommentsRepository');this[_0xc461('0x133')](_0x655555,_0xc461('0x85'),(_0x3d00a3,{threadId:_0x35c828})=>{const _0x34f00d=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x35c828);_0x34f00d&&_0x34f00d['commentThread']&&0x1===_0x34f00d[_0xc461('0xa8')][_0xc461('0xe3')]&&this[_0xc461('0xb3')](_0x35c828,{'hasComments':!0x0});},{'priority':'low'}),this[_0xc461('0x133')](_0x655555,'removeComment',(_0x360e62,{threadId:_0x4724c4})=>{const _0x44c5ed=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x4724c4);_0x44c5ed&&_0x44c5ed[_0xc461('0xa8')]&&!_0x44c5ed['commentThread']['length']&&this[_0xc461('0xb3')](_0x4724c4,{'hasComments':!0x1});},{'priority':_0xc461('0x79')});}set[_0xc461('0x11d')](_0x18c4a9){if(this[_0xc461('0xeb')])throw new _0x339aa1(_0xc461('0xd0'),this);this[_0xc461('0xeb')]=_0x18c4a9;}get[_0xc461('0x11d')](){return this[_0xc461('0xeb')];}[_0xc461('0x56')]({skipNotAttached:_0x465648=!0x1,toJSON:_0x22d3dd=!0x1}={}){const _0x59c1c3=[];for(const _0x1be6ff of this['_suggestions'][_0xc461('0x49')]())_0x465648&&!_0x1be6ff['isInContent']||_0x59c1c3[_0xc461('0x98')](_0x1be6ff);return _0x22d3dd?_0x59c1c3['map'](_0x2baecc=>_0x2baecc[_0xc461('0x8')]()):_0x59c1c3;}[_0xc461('0xc5')](_0x3d0c28){const _0xb334f2=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x3d0c28);if(!_0xb334f2)throw new _0x339aa1(_0xc461('0x2'),this);return _0xb334f2;}[_0xc461('0x3')](_0x102f13){return this[_0xc461('0x4f')][_0xc461('0xf1')](_0x102f13);}[_0xc461('0x5b')](_0x229f69){const {authorId:_0x41647d,id:_0x2f4cb9,attributes:_0x1ac55a}=_0x229f69,[_0x249f30,_0x12168e]=_0x229f69[_0xc461('0xff')][_0xc461('0xb4')](':'),_0x3e3f71=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x2f4cb9)||this[_0xc461('0x24')](_0x249f30,_0x12168e,_0x2f4cb9,_0x41647d,_0x1ac55a);if(this[_0xc461('0x4c')](_0x3e3f71),this[_0xc461('0xfa')](_0x3e3f71,_0x249f30,_0x12168e||null,_0x41647d),_0x3e3f71['createdAt']=_0x229f69[_0xc461('0x103')],_0x3e3f71['_isDataLoaded']=!0x0,_0x1ac55a&&_0x1ac55a[_0xc461('0x60')]){const _0x4bf891=_0x1ac55a[_0xc461('0x60')],_0x17fb3a=this[_0xc461('0x128')](_0x4bf891['authorName']);_0x3e3f71[_0xc461('0x11a')]=_0x4bf891['createdAt'],_0x3e3f71['author']=_0x17fb3a,_0x3e3f71[_0xc461('0x68')]=!0x0;}else _0x3e3f71[_0xc461('0x11a')]=_0x229f69[_0xc461('0x103')];switch(_0x229f69[_0xc461('0xa5')]&&(_0x3e3f71[_0xc461('0xa5')]=_0x229f69[_0xc461('0xa5')]),_0x229f69[_0xc461('0x0')]&&(_0x3e3f71[_0xc461('0x0')]=_0x229f69[_0xc461('0x0')]),this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0xed')]||(_0x3e3f71[_0xc461('0x39')]=!0x0),this['_suggestionState'][_0xc461('0x7f')](_0x3e3f71)){case _0xc461('0xd'):this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0x12b'));break;case'markerReady':_0x3e3f71['isInContent']?(this[_0xc461('0x4a')](new Set([_0x3e3f71])),this[_0xc461('0x15')](new Set([_0x3e3f71])),this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0xc4')),this[_0xc461('0x6a')](_0xc461('0x25'),_0x3e3f71)):this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0xc2'));}return _0x3e3f71;}['acceptSuggestion'](_0x16196f){this[_0xc461('0x47')](()=>{this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const _0x3f8f71 of _0x16196f['getAllAdjacentSuggestions']())_0x3f8f71[_0xc461('0x121')]();});});}[_0xc461('0x12c')](_0x52c426){this['forceDefaultExecution'](()=>{this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const _0x2f3dba of _0x52c426['getAllAdjacentSuggestions']())_0x2f3dba[_0xc461('0x7c')]();});});}['enableCommand'](_0x231891,_0x150168){const _0x583329=this['editor'][_0xc461('0x66')][_0xc461('0x7f')](_0x231891);if(!_0x583329)throw new _0x339aa1(_0xc461('0x43'),this,{'commandName':_0x231891});this[_0xc461('0x3d')]['add'](_0x583329),_0x150168&&_0x583329['on'](_0xc461('0x3f'),(_0x420317,_0x27b2f3)=>{this['trackChangesCommand'][_0xc461('0x55')]&&(this['_isForcedDefaultExecutionBlock']||_0x27b2f3[_0xc461('0xe3')]>0x0&&_0x27b2f3[_0x27b2f3[_0xc461('0xe3')]-0x1]&&_0x27b2f3[_0x27b2f3[_0xc461('0xe3')]-0x1][_0xc461('0x47')]||(_0x420317[_0xc461('0xd2')]=_0x150168((..._0x17e539)=>_0x583329[_0xc461('0x3f')](..._0x17e539,{'forceDefaultExecution':!0x0}),..._0x27b2f3),_0x420317[_0xc461('0x70')]()));},{'priority':_0xc461('0x9f')});}[_0xc461('0x47')](_0x5a9b8e){let _0x10ccde,_0x4265c9;const _0x2ab5dc=this[_0xc461('0x10f')];this[_0xc461('0x10f')]=!0x0;try{_0x10ccde=_0x5a9b8e();}catch(_0x55836e){_0x4265c9=_0x55836e;}return _0x2ab5dc||(this[_0xc461('0x10f')]=!0x1),_0x4265c9&&_0x339aa1['rethrowUnexpectedError'](_0x4265c9,this),_0x10ccde;}[_0xc461('0x69')](_0xc8be0f,_0x180650=null,_0x357f06={}){if(_0xc8be0f['isCollapsed'])return null;const _0x1de02b=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'];for(const {suggestion:_0x4c676f,meta:_0x41b3a1}of this['_findSuggestions'](_0xc8be0f,_0xc461('0x106')))if(_0x41b3a1[_0xc461('0xd4')]){if(!_0x41b3a1['isNextTo']){if(_0x41b3a1[_0xc461('0xe1')]){if(!this[_0xc461('0x13e')]||!Ot(_0x4c676f,_0x357f06))continue;return _0x4c676f;}if(Ot(_0x4c676f,_0x357f06))return _0x4c676f;this['_breakSuggestionMarker'](_0x4c676f,_0xc8be0f['start'],_0xc8be0f[_0xc461('0xc3')]);break;}if(_0x180650==_0x4c676f[_0xc461('0xcc')]&&Ot(_0x4c676f,_0x357f06)){const _0x2899b5=_0x4c676f[_0xc461('0x101')]();return _0x2899b5[_0xc461('0x30')][_0xc461('0x65')](_0xc8be0f['end'])?this[_0xc461('0x2e')](_0x4c676f,this[_0xc461('0x96')][_0xc461('0xa7')](_0xc8be0f[_0xc461('0x30')],_0x2899b5[_0xc461('0xc3')])):this[_0xc461('0x2e')](_0x4c676f,this[_0xc461('0x96')][_0xc461('0xa7')](_0x2899b5[_0xc461('0x30')],_0xc8be0f['end'])),_0x4c676f;}}const _0x10938d=_0xccee84(),_0x42456e=_0x1de02b['id'],_0x5b1dda=_0x180650?_0xc461('0x2a')+_0x180650:_0xc461('0x106'),_0x2151f4=this[_0xc461('0xd9')]({'id':_0x10938d,'type':_0x5b1dda,'createdAt':new Date(),'authorId':_0x42456e,'attributes':_0x357f06});return this[_0xc461('0xaa')](_0x5b1dda,_0x10938d,_0x42456e,_0xc8be0f),_0x2151f4;}[_0xc461('0xa6')](_0x3b318b,_0x1e1448=_0xc461('0x104'),_0x3faa08={}){const _0x341558=this[_0xc461('0x13c')][_0xc461('0xdc')]['get'](_0xc461('0x17'))['me'],_0x19a23a=this[_0xc461('0xb2')][_0xc461('0x22')]('insertion',_0x1e1448,'join');for(const _0x3081be of this[_0xc461('0x56')]())if(_0x3081be[_0xc461('0x92')]['id']==_0x341558['id']&&'insertion'==_0x3081be[_0xc461('0xff')]&&_0x3081be[_0xc461('0xcc')]==_0x1e1448&&Ot(_0x3081be,_0x3faa08)&&(_0x19a23a(_0x3081be[_0xc461('0xf8')](),_0x3b318b)||_0x19a23a(_0x3b318b,_0x3081be[_0xc461('0xf8')]()))){for(const _0x4d32ca of _0x3b318b)_0x3081be[_0xc461('0xdf')](_0x4d32ca);return _0x3081be;}for(const {suggestion:_0x56848c,meta:_0x5ce76f}of this[_0xc461('0x45')](_0x3b318b,_0xc461('0x106'))){if(!_0x5ce76f['isOwn'])continue;if(!this[_0xc461('0x13e')]&&_0x5ce76f['containsRangeInObject'])continue;if(!Ot(_0x56848c,_0x3faa08))continue;let _0x3bb495=!0x0;for(const _0x1d8a30 of _0x56848c[_0xc461('0xf8')]())for(const _0x3b7166 of _0x3b318b)if(!_0x1d8a30[_0xc461('0x10b')](_0x3b7166)){_0x3bb495=!0x1;break;}if(_0x3bb495)return _0x56848c;}const _0x40eaca=_0xccee84(),_0x4038f0=_0x341558['id'],_0x33a9c6=_0xc461('0x2a')+_0x1e1448,_0x3d110e=this[_0xc461('0xd9')]({'id':_0x40eaca,'type':_0x33a9c6,'createdAt':new Date(),'authorId':_0x4038f0,'attributes':_0x3faa08});for(const _0x379065 of _0x3b318b)this[_0xc461('0xaa')](_0x33a9c6,_0x40eaca,_0x4038f0,_0x379065,_0x454d15[_0xc461('0x13b')]());return _0x3d110e;}[_0xc461('0x9b')](_0x213069,_0x1a6e24,_0x123630=null,_0x1ee02d={}){if(_0x123630=_0x123630||Nt(_0x1a6e24),_0x213069[_0xc461('0x3e')])return null;if(_0xc461('0x5d')===this[_0xc461('0x72')]){const _0x2c43e6=this[_0xc461('0xb2')][_0xc461('0x22')]('formatInline',_0x123630,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x2c43e6([_0x213069],_0x1a6e24,_0x1ee02d)),null;}const _0x1e94da=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')]('Users')['me'],_0xf9b58d=[];if(_0xc461('0xfd')!==this['_trackFormatChanges'])for(const {suggestion:_0x43a6c9,meta:_0x2ee995}of this[_0xc461('0x45')](_0x213069,_0xc461('0x106')))_0x2ee995['isOwn']&&!_0x2ee995[_0xc461('0xde')]&&_0xf9b58d[_0xc461('0x98')](..._0x43a6c9['getRanges']());const _0x2f8f68=function(_0x3b8b81,_0x622107){const _0x2113b1=[];for(const _0x4752e1 of _0x622107){const _0x362bfb=_0x3b8b81[_0xc461('0x46')](_0x4752e1);_0x362bfb&&_0x2113b1[_0xc461('0x98')](_0x362bfb);}return _0x2113b1;}(_0x213069,_0xf9b58d),_0x44e17c=function(_0x1e8545,_0x39393a){const _0x4a7662=[_0x1e8545];for(const _0x36583a of _0x39393a){let _0x5aef80=0x0;for(;_0x5aef80<_0x4a7662['length'];){const _0x368e6d=_0x4a7662[_0x5aef80][_0xc461('0x41')](_0x36583a);_0x4a7662['splice'](_0x5aef80,0x1,..._0x368e6d),_0x5aef80+=_0x368e6d[_0xc461('0xe3')];}}return _0x4a7662;}(_0x213069,_0xf9b58d);_0x2f8f68[_0xc461('0xe3')]&&this[_0xc461('0x96')][_0xc461('0x11c')](()=>{for(const _0x5567a3 of _0x2f8f68){const _0x2f0108=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0x9'),_0x123630,_0xc461('0x121'));this[_0xc461('0x47')](()=>_0x2f0108([_0x5567a3],_0x1a6e24,_0x1ee02d));}});for(const _0x2ecd22 of _0x44e17c){let _0x400d93=null,_0x36506e=_0x2ecd22[_0xc461('0x30')],_0x4f98f0=_0x2ecd22[_0xc461('0xc3')];for(const {suggestion:_0xd021f,meta:_0x4c91f7}of this[_0xc461('0x45')](_0x2ecd22,_0xc461('0x9'))){if(!_0x4c91f7['isOwn'])continue;if(_0xd021f[_0xc461('0xcc')]!=_0x123630)continue;if(!Ot(_0xd021f,_0x1ee02d))continue;const _0x278c3f=_0xd021f['getFirstRange']();if(_0x278c3f['containsRange'](_0x2ecd22,!0x0))return null;_0x36506e=_0x36506e[_0xc461('0x19')](_0x278c3f[_0xc461('0x30')])?_0x36506e:_0x278c3f['start'],_0x4f98f0=_0x4f98f0[_0xc461('0x80')](_0x278c3f[_0xc461('0xc3')])?_0x4f98f0:_0x278c3f['end'],_0x400d93?_0x278c3f[_0xc461('0x30')]['isBefore'](_0x400d93['getFirstRange']()[_0xc461('0x30')])?(_0x400d93[_0xc461('0x12')](),_0x400d93=_0xd021f):_0xd021f[_0xc461('0x12')]():_0x400d93=_0xd021f;}const _0x5367b7=this[_0xc461('0x96')]['createRange'](_0x36506e,_0x4f98f0);if(_0x400d93)this['_setSuggestionRange'](_0x400d93,_0x5367b7);else{const _0x407c37=_0xccee84(),_0x46b5a2=_0x1e94da['id'];this[_0xc461('0xd9')]({'id':_0x407c37,'type':_0xc461('0x16')+_0x123630,'data':_0x1a6e24,'createdAt':new Date(),'authorId':_0x46b5a2,'attributes':_0x1ee02d}),this[_0xc461('0xaa')]('formatInline:'+_0x123630,_0x407c37,_0x46b5a2,_0x5367b7);}}return null;}[_0xc461('0xb0')](_0x5dfed8,_0x1107a5,_0x31c42c=[],_0xfa0310=null,_0x854621={}){_0x1107a5[_0xc461('0x12a')]||(_0x1107a5[_0xc461('0x12a')]=_0x1107a5['commandName']),_0x1107a5[_0xc461('0xda')]=_0x5dfed8['is'](_0xc461('0xf3')),_0xfa0310=_0xfa0310||Nt(_0x1107a5);const _0x52bf0c=_0x31c42c[_0xc461('0x7e')](_0x27c6ca=>jt(_0x27c6ca,this[_0xc461('0x96')])),_0x527d73=_0x5dfed8['is'](_0xc461('0xf3'))?_0x5dfed8:jt(_0x5dfed8,this[_0xc461('0x96')]);if(_0xc461('0x5d')===this[_0xc461('0x72')]){const _0x320beb=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0xf4'),_0xfa0310,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x320beb([_0x527d73],_0x1107a5,_0x854621)),null;}_0x52bf0c[_0xc461('0x98')](_0x527d73);let _0x26b7f8=!0x0;for(const _0x788975 of _0x52bf0c)if(!this[_0xc461('0x10d')](_0x788975)){_0x26b7f8=!0x1;break;}if(_0x26b7f8&&'always'!==this[_0xc461('0x72')]){const _0x3ffc32=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0xf4'),_0xfa0310,'accept');return this[_0xc461('0x47')](()=>_0x3ffc32([_0x527d73],_0x1107a5,_0x854621)),null;}let _0x51fbd6=null,_0x121752=_0x527d73[_0xc461('0x30')],_0x27f091=_0x527d73[_0xc461('0xc3')];for(const {suggestion:_0x2d2815,meta:_0x1f8201}of this['_findSuggestions'](_0x527d73,'formatBlock')){if(!_0x1f8201[_0xc461('0xd4')])continue;if(_0x1f8201[_0xc461('0xf7')]||_0x1f8201[_0xc461('0xe1')]||_0x1f8201[_0xc461('0xde')])continue;if(_0x2d2815[_0xc461('0xa5')][_0xc461('0x12a')]!=_0x1107a5[_0xc461('0x12a')])continue;if(!Ot(_0x2d2815,_0x854621))continue;const _0x44dfff=_0x2d2815[_0xc461('0x101')]();if(_0x2d2815[_0xc461('0xcc')]==_0xfa0310){if(_0x44dfff[_0xc461('0x10b')](_0x527d73,!0x0))return null;_0x121752=_0x121752[_0xc461('0x19')](_0x44dfff[_0xc461('0x30')])?_0x121752:_0x44dfff[_0xc461('0x30')],_0x27f091=_0x27f091[_0xc461('0x80')](_0x44dfff[_0xc461('0xc3')])?_0x27f091:_0x44dfff[_0xc461('0xc3')],_0x51fbd6?_0x44dfff[_0xc461('0x30')]['isBefore'](_0x51fbd6['getFirstRange']()[_0xc461('0x30')])?(_0x51fbd6['removeMarkers'](),_0x51fbd6=_0x2d2815):_0x2d2815[_0xc461('0x12')]():_0x51fbd6=_0x2d2815;}else{const _0x18ab0a=_0x527d73[_0xc461('0x46')](_0x44dfff);this['_cutOutSuggestionMarker'](_0x2d2815,_0x18ab0a);}}const _0x2f71ed=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'],_0x43fb58=_0xccee84(),_0x2773f2=_0x2f71ed['id'];if(_0x51fbd6)return this['_setSuggestionRange'](_0x51fbd6,this[_0xc461('0x96')]['createRange'](_0x121752,_0x27f091)),_0x51fbd6;{const _0x364eb2=this[_0xc461('0xd9')]({'id':_0x43fb58,'type':_0xc461('0xc1')+_0xfa0310,'data':_0x1107a5,'createdAt':new Date(),'authorId':_0x2773f2,'attributes':_0x854621});return this['_addSuggestionMarker']('formatBlock:'+_0xfa0310,_0x43fb58,_0x2773f2,this[_0xc461('0x96')]['createRange'](_0x121752,_0x27f091)),_0x364eb2;}}['markMultiRangeBlockFormat'](_0x46ba51,_0x2992a8,_0x5ea260=[],_0x203407=null,_0x505db1={}){_0x2992a8[_0xc461('0x12a')]||(_0x2992a8['formatGroupId']=_0x2992a8[_0xc461('0xcf')]);const _0x4a22fe=_0x46ba51[0x0];_0x2992a8[_0xc461('0xda')]=_0x4a22fe['is'](_0xc461('0xf3')),_0x203407=_0x203407||Nt(_0x2992a8);const _0x529bb5=_0x5ea260[_0xc461('0x7e')](_0x338b7d=>jt(_0x338b7d,this[_0xc461('0x96')])),_0x5965ac=_0x4a22fe['is'](_0xc461('0xf3'))?_0x46ba51:_0x46ba51['map'](_0x4ff372=>jt(_0x4ff372,this[_0xc461('0x96')]));if(_0xc461('0x5d')===this['_trackFormatChanges']){const _0x22b437=this['_suggestionFactory']['getSuggestionCallback'](_0xc461('0xf4'),_0x203407,'accept');return this[_0xc461('0x47')](()=>_0x22b437(_0x5965ac,_0x2992a8,_0x505db1)),null;}_0x529bb5[_0xc461('0x98')](..._0x5965ac);let _0x1de0f8=!0x0;for(const _0x380250 of _0x529bb5)if(!this[_0xc461('0x10d')](_0x380250)){_0x1de0f8=!0x1;break;}if(_0x1de0f8&&_0xc461('0xfd')!==this[_0xc461('0x72')]){const _0x127046=this[_0xc461('0xb2')]['getSuggestionCallback'](_0xc461('0xf4'),_0x203407,'accept');return this[_0xc461('0x47')](()=>_0x127046(_0x5965ac,_0x2992a8,_0x505db1)),null;}const _0x3bfa77=this['editor'][_0xc461('0xdc')][_0xc461('0x7f')]('Users')['me'];for(const _0x92e348 of this[_0xc461('0x56')]()){if(_0x92e348[_0xc461('0x92')]['id']!=_0x3bfa77['id'])continue;if(_0xc461('0xf4')!=_0x92e348[_0xc461('0xff')]||_0x92e348[_0xc461('0xa5')]['formatGroupId']!=_0x2992a8[_0xc461('0x12a')])continue;if(!Ot(_0x92e348,_0x505db1))continue;const _0x4f6d33=_0x92e348[_0xc461('0xcc')]==_0x203407;for(let _0x27271e=0x0;_0x27271e<_0x5965ac['length'];_0x27271e++){const _0x5c3ade=_0x5965ac[_0x27271e];for(const _0x20c106 of _0x92e348[_0xc461('0xf5')]()){const _0x317e90=_0x20c106[_0xc461('0x135')]();if(_0x5c3ade[_0xc461('0x65')](_0x317e90)){_0x4f6d33?(_0x5965ac['splice'](_0x27271e,0x1),_0x27271e--):_0x92e348[_0xc461('0x51')](_0x20c106[_0xc461('0xe2')]);break;}}}}if(0x0==_0x5965ac[_0xc461('0xe3')])return null;const _0x5e10db=this['_suggestionFactory'][_0xc461('0x22')](_0xc461('0xf4'),_0x203407,_0xc461('0x8e'));for(const _0xabcbc2 of this[_0xc461('0x56')]())if(_0xabcbc2[_0xc461('0x92')]['id']==_0x3bfa77['id']&&_0xc461('0xf4')==_0xabcbc2[_0xc461('0xff')]&&_0xabcbc2[_0xc461('0xa5')]['formatGroupId']==_0x2992a8[_0xc461('0x12a')]&&_0xabcbc2[_0xc461('0xcc')]==_0x203407&&Ot(_0xabcbc2,_0x505db1)&&(_0x5e10db(_0xabcbc2['getRanges'](),_0x5965ac)||_0x5e10db(_0x5965ac,_0xabcbc2[_0xc461('0xf8')]()))){for(const _0x21c000 of _0x5965ac)_0xabcbc2['addRange'](_0x21c000);return _0xabcbc2;}const _0x21200b=_0xccee84(),_0x25193d=_0x3bfa77['id'],_0x139713=_0xc461('0xc1')+_0x203407,_0x2cbb19=this[_0xc461('0xd9')]({'id':_0x21200b,'type':_0x139713,'data':_0x2992a8,'createdAt':new Date(),'authorId':_0x25193d,'attributes':_0x505db1});for(const _0x5d0646 of _0x5965ac)this[_0xc461('0xaa')](_0x139713,_0x21200b,_0x25193d,_0x5d0646,_0x454d15[_0xc461('0x13b')]());return _0x2cbb19;}[_0xc461('0xca')](_0x15e472,_0x228bfc=null,_0x53680f={}){if(_0x15e472[_0xc461('0x3e')])return null;const _0x1def87=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'],_0xd260ef=new _0x439992(_0x15e472[_0xc461('0x30')],_0x15e472['end']);for(const {suggestion:_0x19a4e8,meta:_0x2bc1d6}of this[_0xc461('0x45')](_0xd260ef,'insertion'))if(_0x2bc1d6['isOwn']&&!_0x2bc1d6['isNextTo']){if(_0x19a4e8['isMultiRange']){const _0xbff4b=_0x19a4e8[_0xc461('0xf8')]()[_0xc461('0x126')](_0x39dcf9=>_0xc461('0x113')!=_0x39dcf9[_0xc461('0x33')][_0xc461('0x37')]);_0xbff4b[_0xc461('0x7')](_0x5a213a=>_0xd260ef[_0xc461('0x10b')](_0x5a213a,!0x0))&&_0x19a4e8[_0xc461('0x7c')]();if(_0xbff4b['some'](_0x2e9417=>_0x2e9417[_0xc461('0x10b')](_0xd260ef,!0x0))){const _0x3f3203=this['_suggestionFactory']['getSuggestionCallback'](_0xc461('0x97'),_0x228bfc,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x3f3203([_0xd260ef],null,_0x53680f)),null;}}else{const _0x2e91e0=_0xd260ef['getIntersection'](_0x19a4e8[_0xc461('0x101')]());null!==_0x2e91e0&&_0x19a4e8[_0xc461('0x13a')]([_0x2e91e0],null,_0x53680f);}}if(_0xd260ef[_0xc461('0x54')](),_0xd260ef[_0xc461('0x3e')]||'$graveyard'==_0xd260ef['root']['rootName'])return null;let _0x384143=null,_0x26a37c=_0xd260ef[_0xc461('0x30')],_0x2924a0=_0xd260ef[_0xc461('0xc3')];const _0x584b6f=this['_findSuggestions'](_0xd260ef,_0xc461('0x97'));for(const {suggestion:_0x4b6fe4,meta:_0x161321}of _0x584b6f){const _0x1e8151=this[_0xc461('0x96')][_0xc461('0xa7')](_0x26a37c,_0x2924a0);if(_0x161321[_0xc461('0xd4')]&&(this[_0xc461('0x13e')]||!_0x161321[_0xc461('0xe1')]&&!_0x161321[_0xc461('0xde')])){if(_0x4b6fe4['isMultiRange']){if(!Ot(_0x4b6fe4,_0x53680f))continue;let _0x309321=!0x0;for(const _0x1ddc07 of _0x4b6fe4[_0xc461('0xf8')]()){if(_0x1ddc07[_0xc461('0x10b')](_0x1e8151,!0x0))return _0x4b6fe4;_0x1e8151[_0xc461('0x10b')](_0x1ddc07)||(_0x309321=!0x1);}_0x309321&&_0x4b6fe4[_0xc461('0x7c')]();}else{const _0x186ada=_0x4b6fe4[_0xc461('0x101')]();if(_0x186ada[_0xc461('0x10b')](_0x1e8151,!0x0))return _0x4b6fe4;if(!Ot(_0x4b6fe4,_0x53680f)){_0x1e8151[_0xc461('0x10b')](_0x186ada)?_0x4b6fe4[_0xc461('0x12')]():_0x186ada['containsPosition'](_0x26a37c)?_0x26a37c=_0x186ada['end']:_0x186ada['containsPosition'](_0x2924a0)&&(_0x2924a0=_0x186ada[_0xc461('0x30')]);continue;}_0x26a37c=_0x26a37c[_0xc461('0x19')](_0x186ada[_0xc461('0x30')])?_0x26a37c:_0x186ada['start'],_0x2924a0=_0x2924a0['isAfter'](_0x186ada[_0xc461('0xc3')])?_0x2924a0:_0x186ada['end'],_0x53680f=Object[_0xc461('0xc8')]({},_0x4b6fe4[_0xc461('0x0')]),_0x384143?_0x186ada[_0xc461('0x30')][_0xc461('0x19')](_0x384143['getFirstRange']()[_0xc461('0x30')])?(_0x384143['removeMarkers'](),_0x384143=_0x4b6fe4):_0x4b6fe4[_0xc461('0x12')]():_0x384143=_0x4b6fe4;}}}if(_0x384143)return this['_setSuggestionRange'](_0x384143,this['_model']['createRange'](_0x26a37c,_0x2924a0)),_0x384143;{const _0x4ab1c7=_0xccee84(),_0x19b3ae=this['_model'][_0xc461('0xa7')](_0x26a37c,_0x2924a0),_0x46592a=_0x1def87['id'],_0x25a9d0=_0x228bfc?'deletion:'+_0x228bfc:'deletion',_0x19d8ae=this['_setSuggestionData']({'id':_0x4ab1c7,'type':_0x25a9d0,'createdAt':new Date(),'authorId':_0x46592a,'attributes':_0x53680f});return this['_addSuggestionMarker'](_0x25a9d0,_0x4ab1c7,_0x46592a,_0x19b3ae),_0x19d8ae;}}['markMultiRangeDeletion'](_0x3f029b,_0x195153=_0xc461('0x104'),_0x39a446={}){const _0x1e5d64=this['editor']['plugins']['get'](_0xc461('0x17'))['me'],_0x14fc01=_0x3f029b['map'](_0x4de768=>new _0x439992(_0x4de768['start'],_0x4de768[_0xc461('0xc3')])),_0x303664=new Set();for(const {suggestion:_0x198bbe,meta:_0x41135f}of this[_0xc461('0x45')](_0x14fc01,_0xc461('0x106')))_0x41135f[_0xc461('0xd4')]&&!_0x41135f['isNextTo']&&_0x303664[_0xc461('0x87')](_0x198bbe);for(const _0x1bd0a5 of _0x303664)if(_0x1bd0a5[_0xc461('0x2f')]){const _0x3b2f5c=_0x1bd0a5[_0xc461('0xf8')]();(!_0x1bd0a5[_0xc461('0x0')]||!_0x1bd0a5[_0xc461('0x0')][_0xc461('0x61')])&&(_0x3b2f5c[_0xc461('0x7')](_0x77cacd=>_0x14fc01[_0xc461('0xba')](_0x2a9414=>_0x2a9414[_0xc461('0x10b')](_0x77cacd,!0x0)))&&_0x1bd0a5[_0xc461('0x7c')]());if(_0x14fc01[_0xc461('0x7')](_0x9bac37=>_0x3b2f5c[_0xc461('0xba')](_0x2dc03f=>_0x2dc03f[_0xc461('0x10b')](_0x9bac37,!0x0)))){const _0x598458=this[_0xc461('0xb2')][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x121'));return this['forceDefaultExecution'](()=>_0x598458(_0x3f029b,null,_0x39a446)),null;}}else{const _0x1b86db=_0x1bd0a5['getFirstRange']();_0x14fc01[_0xc461('0xba')](_0xfe452=>_0xfe452['containsRange'](_0x1b86db,!0x0))&&_0x1bd0a5[_0xc461('0x7c')]();if(_0x14fc01[_0xc461('0x7')](_0x734abe=>_0x1b86db['containsRange'](_0x734abe,!0x0))){const _0xc416bc=this[_0xc461('0xb2')][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0xc416bc(_0x14fc01,null,_0x39a446)),null;}}const _0x116942=this['_suggestionFactory'][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x8e'));let _0xce647e=null;for(const _0xe4713 of this[_0xc461('0x56')]())if(_0xe4713['author']['id']==_0x1e5d64['id']&&_0xe4713[_0xc461('0x129')]&&_0xc461('0x97')==_0xe4713['type']&&_0xe4713['subType']==_0x195153&&Ot(_0xe4713,_0x39a446)&&(_0x116942(_0xe4713[_0xc461('0xf8')](),_0x14fc01)||_0x116942(_0x14fc01,_0xe4713[_0xc461('0xf8')]()))){if(_0xce647e){if(_0xe4713[_0xc461('0xa8')]&&_0xe4713[_0xc461('0xa8')][_0xc461('0xe3')])continue;for(const _0x1a2ee1 of _0xe4713['getRanges']())_0xce647e[_0xc461('0x81')](_0x1a2ee1)||_0xce647e[_0xc461('0xdf')](_0x1a2ee1);_0xe4713[_0xc461('0x12')]();}else{_0xce647e=_0xe4713;for(const _0x5a3057 of _0x14fc01)_0xe4713[_0xc461('0x81')](_0x5a3057)||_0xe4713[_0xc461('0xdf')](_0x5a3057);}}if(_0xce647e)return _0xce647e;_0x303664[_0xc461('0x1f')]();for(const {suggestion:_0x36ca07,meta:_0x4bea49}of this[_0xc461('0x45')](_0x14fc01,_0xc461('0x97')))_0x4bea49[_0xc461('0xd4')]&&(this[_0xc461('0x13e')]||!_0x4bea49['containsRangeInObject']&&!_0x4bea49[_0xc461('0xde')])&&Ot(_0x36ca07,_0x39a446)&&_0x303664[_0xc461('0x87')](_0x36ca07);for(const _0x2a991c of _0x303664){const _0x125dad=_0x2a991c[_0xc461('0xf8')]();if(!_0x39a446||!_0x39a446[_0xc461('0x61')]){if(_0x14fc01[_0xc461('0x7')](_0x1180e7=>_0x125dad[_0xc461('0xba')](_0x22128d=>_0x22128d['containsRange'](_0x1180e7,!0x0))))return _0x2a991c;}(!_0x2a991c[_0xc461('0x0')]||!_0x2a991c[_0xc461('0x0')][_0xc461('0x61')])&&(_0x125dad[_0xc461('0x7')](_0x5c290e=>_0x14fc01[_0xc461('0xba')](_0x4399ba=>_0x4399ba['containsRange'](_0x5c290e,!0x0)))&&_0x2a991c[_0xc461('0x7c')]());}const _0x1a7882=_0xccee84(),_0x1a789e=_0x1e5d64['id'],_0x3b9273='deletion:'+_0x195153,_0x1593d5=this[_0xc461('0xd9')]({'id':_0x1a7882,'type':_0x3b9273,'createdAt':new Date(),'authorId':_0x1a789e,'attributes':_0x39a446});for(const _0x2538b0 of _0x14fc01)_0x2538b0['detach'](),_0x2538b0[_0xc461('0x3e')]||_0xc461('0x113')==_0x2538b0[_0xc461('0x33')][_0xc461('0x37')]||this[_0xc461('0xaa')](_0x3b9273,_0x1a7882,_0x1a789e,_0x2538b0,_0x454d15['getMultiRangeId']());return _0x1593d5;}['_setSuggestionRange'](_0x5f156c,_0x23e9bb){const _0x17c92c=_0x5f156c[_0xc461('0xe9')]();this['_model'][_0xc461('0x11c')](_0x4319ea=>{_0x4319ea[_0xc461('0x20')](_0x17c92c,{'range':_0x23e9bb});});}['_addThreadToSuggestion'](_0x22a99d){const _0x297155=_0x22a99d['id'],_0x2e6528=this[_0xc461('0x13c')][_0xc461('0x52')]['get'](_0xc461('0x1a'));this[_0xc461('0x123')][_0xc461('0x120')](_0x297155)||this[_0xc461('0x123')]['addCommentThread']({'channelId':_0x2e6528,'threadId':_0x297155,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd95eb3=this[_0xc461('0x123')][_0xc461('0x4d')](_0x297155);_0xd95eb3[_0xc461('0xe5')](_0xc461('0xd3')),_0xd95eb3['isRemovable']=!0x1,_0x22a99d[_0xc461('0xa8')]=_0xd95eb3;}[_0xc461('0xfa')](_0x40c5c5,_0x3b15cb,_0x5b3914,_0x2a9aec){if(_0x40c5c5['type']!=_0x3b15cb||_0x40c5c5[_0xc461('0xcc')]!=_0x5b3914||_0x40c5c5[_0xc461('0xe4')]['id']!=_0x2a9aec)throw this[_0xc461('0x13c')][_0xc461('0x6f')](_0xc461('0x116')),new _0x339aa1(_0xc461('0x116'),this);}['_cutOutSuggestionMarker'](_0x152404,_0x220fb2){const _0x4bafca=_0x152404[_0xc461('0x101')]();if(_0x220fb2[_0xc461('0x65')](_0x4bafca))_0x152404[_0xc461('0x12')]();else{if(_0x4bafca['containsRange'](_0x220fb2)){const _0x4bf5a9=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0x30')][_0xc461('0x48')],_0xc461('0xc3'));this[_0xc461('0x2e')](_0x152404,this['_model'][_0xc461('0xa7')](_0x4bafca['start'],_0x4bf5a9));const _0x35f1fa=_0xccee84(),_0x5570eb=_0x152404[_0xc461('0xe4')]['id'],_0x5a4432=_0x152404[_0xc461('0xff')]+':'+_0x152404[_0xc461('0xcc')];this['_setSuggestionData']({'id':_0x35f1fa,'type':_0x5a4432,'createdAt':new Date(),'authorId':_0x5570eb,'data':_0x152404[_0xc461('0xa5')],'attributes':_0x152404[_0xc461('0x0')]});const _0x4afabe=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0xc3')][_0xc461('0x13')],_0xc461('0x75')),_0x226c6d=this[_0xc461('0x96')][_0xc461('0xa7')](_0x4afabe,_0x4bafca[_0xc461('0xc3')]);this[_0xc461('0xaa')](_0x5a4432,_0x35f1fa,_0x5570eb,_0x226c6d);}else{if(_0x4bafca['containsPosition'](_0x220fb2['start'])){const _0x3f3ffa=this[_0xc461('0x96')][_0xc461('0x134')](_0x220fb2[_0xc461('0x30')][_0xc461('0x48')],_0xc461('0xc3'));this[_0xc461('0x2e')](_0x152404,this[_0xc461('0x96')]['createRange'](_0x4bafca['start'],_0x3f3ffa));}else{const _0xa95307=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0xc3')][_0xc461('0x13')],'after');this[_0xc461('0x2e')](_0x152404,this[_0xc461('0x96')][_0xc461('0xa7')](_0xa95307,_0x4bafca[_0xc461('0xc3')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2110c0){for(const {suggestion:_0x2eab0b,meta:_0x5987f5}of this[_0xc461('0x45')](_0x2110c0,_0xc461('0x106'))){if(!_0x5987f5[_0xc461('0xd4')])continue;const _0x5acb98=_0x2eab0b[_0xc461('0xf8')]();for(const _0x286208 of _0x5acb98)if(!_0x2110c0[_0xc461('0x41')](_0x286208)['length'])return!0x0;}return!0x1;}[_0xc461('0x74')](_0x355865){const _0x9d643a=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))[_0xc461('0x7a')](_0x355865);if(!_0x9d643a)throw new _0x339aa1(_0xc461('0x7b'),this);return _0x9d643a;}[_0xc461('0x128')](_0x50db34){const _0x275e68=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17')),_0xd751fb=_0x4a4395(_0xc461('0x11f')+_0x50db34),_0x39e106=_0x275e68[_0xc461('0x7a')](_0xd751fb);return _0x39e106||_0x275e68[_0xc461('0x8d')]({'id':_0xd751fb,'name':_0x50db34});}['_createSuggestion'](_0x557a26,_0x4233bd,_0x3c1abf,_0x4e0877,_0x937c16){const _0x117f12=this[_0xc461('0x74')](_0x4e0877),_0xe1d885=this[_0xc461('0xb2')][_0xc461('0x6c')](_0x557a26,_0x4233bd,_0x3c1abf,_0x117f12,_0x937c16,_0x3ecb74=>this[_0xc461('0xb3')](_0x3c1abf,{'attributes':_0x3ecb74}));return this['listenTo'](_0xe1d885,_0xc461('0x121'),()=>{this[_0xc461('0xb3')](_0x3c1abf,{'state':_0xc461('0xd1')});},{'priority':_0xc461('0x9f')}),this['listenTo'](_0xe1d885,_0xc461('0x7c'),()=>{this[_0xc461('0xb3')](_0x3c1abf,{'state':_0xc461('0x139')});},{'priority':_0xc461('0x9f')}),this[_0xc461('0x4f')]['set'](_0x3c1abf,_0xe1d885),this[_0xc461('0x117')]['set'](_0xe1d885,_0xc461('0xd')),_0xe1d885;}['_splitMarkerName'](_0x504be9){const _0x2319b4=_0x504be9[_0xc461('0xb4')](':');return{'group':_0x2319b4[0x0],'type':_0x2319b4[0x1],'subType':_0x2319b4[_0xc461('0xe3')]>=0x5?_0x2319b4[0x2]:null,'id':_0x2319b4['length']<0x5?_0x2319b4[0x2]:_0x2319b4[0x3],'authorId':_0x2319b4[_0xc461('0xe3')]<0x5?_0x2319b4[0x3]:_0x2319b4[0x4],'markerCount':0x6==_0x2319b4[_0xc461('0xe3')]?_0x2319b4[0x5]:null};}[_0xc461('0x36')](_0x125bba,_0x27270b,_0x3d4127){const _0x16e662=_0x125bba[_0xc461('0x101')](),_0x3bc0ad=_0x16e662[_0xc461('0x30')],_0xfb2db8=_0x16e662[_0xc461('0xc3')];this[_0xc461('0x2e')](_0x125bba,this[_0xc461('0x96')][_0xc461('0xa7')](_0x3bc0ad,_0x27270b));const _0x5b9137=_0xccee84(),_0x5103d1=_0x125bba['creator']['id'],_0x5592cc=_0x125bba['type']+(_0x125bba[_0xc461('0xcc')]?':'+_0x125bba[_0xc461('0xcc')]:'');this[_0xc461('0xd9')]({'id':_0x5b9137,'type':_0x5592cc,'createdAt':new Date(),'authorId':_0x5103d1,'originalSuggestionId':_0x125bba['id'],'attributes':_0x125bba[_0xc461('0x0')],'data':_0x125bba['data']}),'formatBlock'==_0x125bba[_0xc461('0xff')]&&(_0x3d4127=this[_0xc461('0x96')]['createPositionBefore'](_0x3d4127[_0xc461('0x13')])),this[_0xc461('0xaa')](_0x5592cc,_0x5b9137,_0x5103d1,this[_0xc461('0x96')][_0xc461('0xa7')](_0x3d4127,_0xfb2db8));}[_0xc461('0x45')](_0x42f844,_0x33f7f6=null){const _0x483af8=[],_0x58203a=this['editor'][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'];Array[_0xc461('0x5e')](_0x42f844)||(_0x42f844=[_0x42f844]);for(const _0x44f6b4 of this[_0xc461('0x56')]()){if(!_0x44f6b4[_0xc461('0x129')])continue;if(_0x33f7f6&&_0x44f6b4['type']!=_0x33f7f6)continue;let _0x34de78=!0x1;for(const _0x10b5c0 of _0x44f6b4[_0xc461('0xf8')]()){for(const _0x497527 of _0x42f844){const _0x5c37cd=_0x497527[_0xc461('0x30')][_0xc461('0x65')](_0x10b5c0[_0xc461('0xc3')])||_0x497527['end']['isEqual'](_0x10b5c0[_0xc461('0x30')]);if(_0x5c37cd||_0x497527[_0xc461('0x46')](_0x10b5c0)){const _0x175819=_0x497527[_0xc461('0x10b')](_0x10b5c0)&&_t(this[_0xc461('0x96')]['schema'],_0x10b5c0['start'],_0x497527),_0x49f8df=_0x10b5c0[_0xc461('0x10b')](_0x497527)&&_t(this[_0xc461('0x96')][_0xc461('0x77')],_0x497527[_0xc461('0x30')],_0x10b5c0);_0x483af8[_0xc461('0x98')]({'suggestion':_0x44f6b4,'meta':{'isOwn':_0x58203a==_0x44f6b4['author'],'isNextTo':_0x5c37cd,'isInsideObject':_0x175819,'containsRangeInObject':_0x49f8df}}),_0x34de78=!0x0;break;}}if(_0x34de78)break;}}return _0x483af8;}['_addSuggestionMarker'](_0x3c0c55,_0x37be87,_0x4f2e07,_0x112731,_0x39d034){this[_0xc461('0x96')][_0xc461('0x11c')](_0x222e34=>{let _0x59ab16=_0xc461('0x91')+_0x3c0c55+':'+_0x37be87+':'+_0x4f2e07;_0x39d034&&(_0x59ab16=_0x59ab16+':'+_0x39d034),_0x222e34[_0xc461('0xb8')](_0x59ab16,{'range':_0x112731,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xc461('0x5f')](_0x3c1587){const _0x496474=_0x3c1587['previous'],_0x5cb2d4=_0x3c1587['next'];_0x3c1587[_0xc461('0x8b')]=null,null!=_0x496474&&(_0x496474[_0xc461('0xf2')]=null),_0x3c1587['next']=null,null!=_0x5cb2d4&&(_0x5cb2d4[_0xc461('0x8b')]=null),_0xc461('0xc4')==this[_0xc461('0x117')][_0xc461('0x7f')](_0x3c1587)&&(this[_0xc461('0x117')][_0xc461('0x44')](_0x3c1587,'removed'),this[_0xc461('0x6a')](_0xc461('0xbd'),_0x3c1587,_0x496474,_0x5cb2d4));}['_setSuggestionData'](_0x238ce7){const _0xc8a086=_0x238ce7['id'],_0xcf431=this[_0xc461('0x5b')](_0x238ce7);if(this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0xed')]){const _0x43b2bc=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0xe0')),_0x21882f=_0xcf431[_0xc461('0xbe')],_0x33ab46=_0xcf431[_0xc461('0xcc')]?_0xcf431['type']+':'+_0xcf431[_0xc461('0xcc')]:_0xcf431[_0xc461('0xff')],_0x441c59=this['editor'][_0xc461('0x21')],_0x5b0bdb=_0x43b2bc['add'](_0x30569e(_0x441c59,_0xc461('0x18'))),_0x4e2a28={'id':_0xc8a086,'type':_0x33ab46,'hasComments':_0x21882f,'data':_0x238ce7['data']||null,'originalSuggestionId':_0x238ce7[_0xc461('0x93')]||null,'attributes':_0xcf431[_0xc461('0x0')]};this['_adapter'][_0xc461('0xed')](_0x4e2a28)[_0xc461('0x73')](_0x31a4fc=>{_0xcf431[_0xc461('0x39')]=!0x0,_0x43b2bc['remove'](_0x5b0bdb),_0x31a4fc&&_0x31a4fc[_0xc461('0x103')]&&(this['_suggestions'][_0xc461('0x7f')](_0xc8a086)[_0xc461('0x103')]=_0x31a4fc[_0xc461('0x103')]);})['catch'](_0x314882=>{throw _0x1725bb('error-saving-suggestion-data-suggestion-discarded'),this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x2d')]({'isUndoable':!0x1},()=>{_0xcf431[_0xc461('0x7c')]();}),_0xcf431[_0xc461('0x10e')](),this[_0xc461('0x4f')]['delete'](_0xcf431['id']),this[_0xc461('0x117')][_0xc461('0x122')](_0xcf431),_0x314882;});}return _0xcf431;}[_0xc461('0xb3')](_0x1bfa81,_0x100093){const _0x2b219d=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0xe0')),_0x168a33=this[_0xc461('0xc5')](_0x1bfa81);if(this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0x107')]){if(_0x168a33['_saved']){const _0x184da3=_0x2b219d[_0xc461('0x87')](_0x30569e(this[_0xc461('0x13c')][_0xc461('0x21')],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1bfa81,_0x100093)[_0xc461('0x73')](()=>{_0x2b219d[_0xc461('0x34')](_0x184da3);});}else _0x168a33['on']('change:_saved',()=>{this[_0xc461('0xb3')](_0x1bfa81,_0x100093);});}}['_getSuggestionData'](_0x1e6542){if(!this[_0xc461('0xeb')]||!this[_0xc461('0xeb')][_0xc461('0xc5')])throw new _0x339aa1(_0xc461('0x132'),this);return this[_0xc461('0xeb')][_0xc461('0xc5')](_0x1e6542);}[_0xc461('0x6b')](_0x8d5ec2){const {id:_0x2f328e,type:_0x3895e8,subType:_0x4109bc,authorId:_0x2e7c80}=this[_0xc461('0x10')](_0x8d5ec2),_0x48c30e=this[_0xc461('0x4f')]['get'](_0x2f328e)||this[_0xc461('0x24')](_0x3895e8,_0x4109bc,_0x2f328e,_0x2e7c80,{});switch(this['_checkSuggestionCorrectness'](_0x48c30e,_0x3895e8,_0x4109bc,_0x2e7c80),this['_suggestionState'][_0xc461('0x7f')](_0x48c30e)){case _0xc461('0xd'):this[_0xc461('0x99')](_0x2f328e)['then'](_0x5b2510=>{let _0x35a478=Promise[_0xc461('0xc')]();_0x5b2510['hasComments']&&(_0x35a478=this[_0xc461('0x123')][_0xc461('0x11b')]({'channelId':this['editor']['config'][_0xc461('0x7f')](_0xc461('0x1a')),'threadId':_0x2f328e})),_0x35a478[_0xc461('0x73')](()=>{this['addSuggestionData'](_0x5b2510)[_0xc461('0x39')]=!0x0;});}),this[_0xc461('0x117')][_0xc461('0x44')](_0x48c30e,'markerReady');break;case'removed':this[_0xc461('0xb3')](_0x2f328e,{'state':_0xc461('0x127')});case _0xc461('0x12b'):this['_suggestionState'][_0xc461('0x44')](_0x48c30e,'ready'),this[_0xc461('0x6a')](_0xc461('0x25'),_0x48c30e);break;case _0xc461('0xc4'):this[_0xc461('0x6a')](_0xc461('0xc6'),_0x48c30e);}return _0x48c30e[_0xc461('0xdd')](_0x8d5ec2),_0x48c30e;}[_0xc461('0x4a')](_0x10ff19){const _0x28077a=Array['from'](_0x10ff19)[_0xc461('0x126')](_0x52437a=>!_0x52437a['isMultiRange']),_0x541481=this[_0xc461('0x56')]({'skipNotAttached':!0x0})[_0xc461('0x126')](_0x563a4b=>!_0x563a4b[_0xc461('0x2f')]),_0x2e8bee=_0x541481[_0xc461('0x126')](_0x996071=>!_0x10ff19['has'](_0x996071)),_0x2be762=new Map(_0x541481[_0xc461('0x7e')](_0x2d5a49=>[_0x2d5a49,this[_0xc461('0xb2')][_0xc461('0x22')](_0x2d5a49[_0xc461('0xff')],_0x2d5a49['subType'],'chain')])),_0x5547d3=new Map(_0x541481[_0xc461('0x7e')](_0x4b09d0=>[_0x4b09d0,_0x4b09d0[_0xc461('0x101')]()])),_0x599fca=new Set(),_0x49fb76=new Set();for(let _0x21167e=0x0;_0x21167e<_0x28077a[_0xc461('0xe3')];_0x21167e++)_0x1f748d(_0x28077a[_0x21167e],_0x28077a,_0x21167e+0x1);for(let _0x9f680e=0x0;_0x9f680e<_0x28077a['length'];_0x9f680e++)_0x1f748d(_0x28077a[_0x9f680e],_0x2e8bee,0x0);for(let _0x46dc1d=0x0;_0x46dc1d<_0x28077a['length'];_0x46dc1d++){const _0x1408b8=_0x28077a[_0x46dc1d];!_0x49fb76['has'](_0x1408b8)&&_0x1408b8[_0xc461('0x8b')]&&(_0x1408b8[_0xc461('0x8b')][_0xc461('0xf2')]===_0x1408b8&&(_0x1408b8[_0xc461('0x8b')][_0xc461('0xf2')]=null),_0x1408b8[_0xc461('0x8b')]=null),!_0x599fca[_0xc461('0xf1')](_0x1408b8)&&_0x1408b8[_0xc461('0xf2')]&&(_0x1408b8['next'][_0xc461('0x8b')]===_0x1408b8&&(_0x1408b8['next']['previous']=null),_0x1408b8[_0xc461('0xf2')]=null);}function _0x1f748d(_0xd21c1,_0x551dab,_0xbf5aac){for(let _0x174c73=_0xbf5aac;_0x174c73<_0x551dab['length'];_0x174c73++){const _0xf1b3f2=_0x315f9f(_0xd21c1,_0x551dab[_0x174c73]);_0xf1b3f2&&(_0xf1b3f2[0x0]['next']=_0xf1b3f2[0x1],_0xf1b3f2[0x1][_0xc461('0x8b')]=_0xf1b3f2[0x0],_0x599fca[_0xc461('0x87')](_0xf1b3f2[0x0]),_0x49fb76[_0xc461('0x87')](_0xf1b3f2[0x1]));}}function _0x315f9f(_0x4abcd8,_0x1e6378){if(_0x4abcd8[_0xc461('0x92')]['id']!==_0x1e6378[_0xc461('0x92')]['id'])return null;const _0xad6603=_0x2be762[_0xc461('0x7f')](_0x4abcd8)(_0x4abcd8,_0x1e6378,_0x5547d3[_0xc461('0x7f')](_0x4abcd8),_0x5547d3[_0xc461('0x7f')](_0x1e6378));if(!_0xad6603)return null;return _0x2be762['get'](_0x1e6378)(_0x4abcd8,_0x1e6378,_0x5547d3['get'](_0x4abcd8),_0x5547d3['get'](_0x1e6378))?_0xad6603[0x1][_0xc461('0xa8')]&&_0xad6603[0x1][_0xc461('0xa8')][_0xc461('0xe3')]?null:_0xad6603:null;}}[_0xc461('0x15')](_0x33502c){const _0x11c095=Array['from'](_0x33502c),_0x208241=this['getSuggestions']({'skipNotAttached':!0x0}),_0x493681=_0x208241[_0xc461('0x126')](_0x27e5c7=>!_0x33502c[_0xc461('0xf1')](_0x27e5c7)),_0x46352e=new Map(_0x11c095[_0xc461('0x7e')](_0x28716d=>[_0x28716d,this[_0xc461('0xb2')][_0xc461('0x22')](_0x28716d['type'],_0x28716d['subType'],_0xc461('0x8e'))])),_0x328919=new Map(_0x208241[_0xc461('0x7e')](_0x1f61b5=>[_0x1f61b5,_0x1f61b5[_0xc461('0xf8')]()]));for(let _0x235a10=0x0;_0x235a10<_0x11c095[_0xc461('0xe3')];_0x235a10++){if(_0x2eb49f(this,_0x11c095[_0x235a10],_0x11c095,_0x235a10+0x1))return!0x0;}for(let _0x26516c=0x0;_0x26516c<_0x11c095[_0xc461('0xe3')];_0x26516c++){if(_0x2eb49f(this,_0x11c095[_0x26516c],_0x493681,0x0))return!0x0;}return!0x1;function _0x2eb49f(_0x52033f,_0x2ab1a4,_0x46f4bf,_0x2c096f){for(let _0x4979ed=_0x2c096f;_0x4979ed<_0x46f4bf[_0xc461('0xe3')];_0x4979ed++){const _0x305f6b=_0x46f4bf[_0x4979ed];if(_0x305f6b[_0xc461('0xff')]!==_0x2ab1a4[_0xc461('0xff')]||_0x305f6b[_0xc461('0x92')]['id']!==_0x2ab1a4['author']['id']||_0x305f6b[_0xc461('0xcc')]!==_0x2ab1a4[_0xc461('0xcc')])continue;if(!Ut(_0x2ab1a4,_0x305f6b))continue;const _0x2f736d=_0x46352e[_0xc461('0x7f')](_0x2ab1a4),_0x2b8329=_0x328919[_0xc461('0x7f')](_0x2ab1a4),_0x437a07=_0x328919['get'](_0x305f6b),_0x556f9b=_0x2ab1a4[_0xc461('0xa8')]&&_0x2ab1a4[_0xc461('0xa8')]['length'],_0x1c346b=_0x305f6b[_0xc461('0xa8')]&&_0x305f6b[_0xc461('0xa8')][_0xc461('0xe3')];if(!_0x556f9b&&_0x2f736d(_0x437a07,_0x2b8329))return _0x52033f[_0xc461('0x102')](_0x305f6b,_0x2ab1a4),_0x328919[_0xc461('0x122')](_0x2ab1a4),!0x0;if(!_0x1c346b&&_0x2f736d(_0x2b8329,_0x437a07))return _0x52033f['_joinSuggestions'](_0x2ab1a4,_0x305f6b),_0x328919[_0xc461('0x122')](_0x305f6b),!0x0;}return!0x1;}}[_0xc461('0x102')](_0x5a4fde,_0x4bc8b8){if(_0x5a4fde[_0xc461('0x2f')])for(const _0x210938 of _0x4bc8b8[_0xc461('0xf8')]())_0x5a4fde[_0xc461('0xdf')](_0x210938);else{const _0x4f9e63=_0x4bc8b8['getFirstRange']()[_0xc461('0xc3')];this['_setSuggestionRange'](_0x5a4fde,this[_0xc461('0x96')]['createRange'](_0x5a4fde['getFirstRange']()[_0xc461('0x30')],_0x4f9e63));}_0x4bc8b8['removeMarkers']();}}class Bt{constructor(_0x3ad131){this[_0xc461('0x40')]=_0x3ad131,this[_0xc461('0x96')]=_0x3ad131[_0xc461('0x12f')],this[_0xc461('0x3a')]=new Map(),this[_0xc461('0x10a')]=new Map(),this[_0xc461('0x38')]();}[_0xc461('0x6c')](_0x29f37e,_0x591e15,_0x2f6a37,_0x469883,_0x720b99,_0x108c26){return new _0x454d15(this[_0xc461('0x96')],{'type':_0x29f37e,'subType':_0x591e15,'id':_0x2f6a37,'author':_0x469883,'creator':_0x469883,'attributes':_0x720b99,'onAttributesChange':_0x108c26,'onAccept':(..._0x53117b)=>this['getSuggestionCallback'](_0x29f37e,_0x591e15,_0xc461('0x121'))(..._0x53117b),'onDiscard':(..._0x3e5a06)=>this[_0xc461('0x22')](_0x29f37e,_0x591e15,'discard')(..._0x3e5a06)});}['registerCustomCallback'](_0x418cc9,_0x114515,_0x33b7e6,_0x27753e){const _0x5bb5ca=_0x418cc9+':'+_0x114515+':'+_0x33b7e6;this[_0xc461('0x3a')]['set'](_0x5bb5ca,_0x27753e);}[_0xc461('0x22')](_0x199964,_0x3edfcb,_0x213118){const _0x2584f1=_0x199964+':'+_0x3edfcb+':'+_0x213118;return this['_customCallbacks']['get'](_0x2584f1)||this[_0xc461('0x10a')][_0xc461('0x7f')](_0x199964+':'+_0x213118);}[_0xc461('0x38')](){const _0x448e67=()=>!0x1,_0x2a8d67=_0x3459ee=>{_0x3459ee[_0xc461('0x89')]((_0x18d0a7,_0x5cafcc)=>_0x18d0a7[_0xc461('0x30')][_0xc461('0x19')](_0x5cafcc['start'])?0x1:-0x1),this[_0xc461('0x96')]['change'](_0xc9e4e9=>{for(const _0xfc9dc9 of _0x3459ee){let _0x2303c5;_0x2303c5=_0xfc9dc9['end']['isAtEnd']&&_0xfc9dc9[_0xc461('0xc3')][_0xc461('0x13')]==_0xfc9dc9[_0xc461('0x30')][_0xc461('0x3b')]?_0xc9e4e9[_0xc461('0x9a')](_0xfc9dc9['start'][_0xc461('0x3b')],'on'):_0xc9e4e9[_0xc461('0x9a')](_0xfc9dc9),this[_0xc461('0x96')][_0xc461('0x78')](_0x2303c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x12a76a=(_0x3d5e07,_0xe573cc)=>{this[_0xc461('0x96')][_0xc461('0x11c')](_0x1385eb=>{const {commandName:_0x70844b,commandParams:_0x46f2d8=[]}=_0xe573cc,_0x4cd2a6=_0x3d5e07['map'](_0x529b2c=>(Mt(_0x529b2c)&&(_0x529b2c=this[_0xc461('0x96')]['createRange'](_0x529b2c[_0xc461('0xc3')])),_0x529b2c))[_0xc461('0x126')](_0x2da0d7=>'$graveyard'!==_0x2da0d7[_0xc461('0x33')][_0xc461('0x37')]);if(_0x4cd2a6['length']<0x1)return;const _0x2ab3e3=Array['from'](this[_0xc461('0x96')]['document'][_0xc461('0x1c')][_0xc461('0xf8')]())[_0xc461('0x7e')](_0x5743d0=>_0x439992['fromRange'](_0x5743d0));_0x1385eb[_0xc461('0xa2')](_0x4cd2a6);for(const _0x8642dc of this[_0xc461('0x40')][_0xc461('0x66')][_0xc461('0x66')]())_0x8642dc['refresh']();_0x46f2d8[_0xc461('0x98')]({'forceDefaultExecution':!0x0}),this['_editor'][_0xc461('0x3f')](_0x70844b,..._0x46f2d8);const _0xb8b626=_0x2ab3e3[_0xc461('0x126')](_0x445513=>_0xc461('0x113')!=_0x445513['root'][_0xc461('0x37')]);_0xb8b626[_0xc461('0xe3')]>0x0&&_0x1385eb['setSelection'](_0xb8b626);for(const _0x5109c0 of _0x2ab3e3)_0x5109c0[_0xc461('0x54')]();});},_0x5380cf=(_0x4a24a6,_0x3d692f)=>0x1==_0x4a24a6['length']&&0x1==_0x3d692f['length']&&_0x4a24a6[0x0][_0xc461('0xc3')][_0xc461('0x65')](_0x3d692f[0x0][_0xc461('0x30')]),_0x1b6fc9=(_0x2cc9a6,_0x294708,_0x23b1e2,_0x5aeca8)=>xt(_0x2cc9a6,_0x294708,_0x23b1e2,_0x5aeca8,this[_0xc461('0x96')])?[_0x2cc9a6,_0x294708]:xt(_0x294708,_0x2cc9a6,_0x5aeca8,_0x23b1e2,this['_model'])?[_0x294708,_0x2cc9a6]:null;this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x125'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x109'),_0x2a8d67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0xc9'),_0x5380cf),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x9d'),_0x1b6fc9),this['_defaultCallbacks'][_0xc461('0x44')](_0xc461('0x4'),_0x2a8d67),this[_0xc461('0x10a')][_0xc461('0x44')]('deletion:discard',_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')]('deletion:join',_0x5380cf),this[_0xc461('0x10a')]['set'](_0xc461('0x63'),_0x1b6fc9),this[_0xc461('0x10a')]['set'](_0xc461('0x3c'),_0x12a76a),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x11'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x2c'),_0x5380cf),this[_0xc461('0x10a')]['set'](_0xc461('0x4e'),_0x448e67),this['_defaultCallbacks'][_0xc461('0x44')](_0xc461('0x130'),_0x12a76a),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x12e'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')]('formatBlock:join',_0x5380cf),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x8f'),_0x448e67);}}function _t(_0x3b7d76,_0x42d870,_0x490d37){for(const _0x49e16f of _0x42d870['parent'][_0xc461('0xea')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49e16f[_0xc461('0x33')]==_0x49e16f)return!0x1;if(!_0x490d37[_0xc461('0x58')](_0x49e16f))return!0x1;if(_0x3b7d76[_0xc461('0xe')](_0x49e16f)||_0x3b7d76[_0xc461('0x35')](_0x49e16f))return!0x0;}return!0x1;}function Mt(_0x52e369){return _0x52e369[_0xc461('0xc3')][_0xc461('0x13')]==_0x52e369['start']['nodeAfter']&&_0x52e369[_0xc461('0xc3')]['isAtStart'];}function $t(_0x57ee62,_0x267a9d,_0x17e52b,_0xcd09e7){const _0x4c6e0b=_0x4e3eb2=>!_0x4e3eb2[_0xc461('0x12d')]['is']('$textProxy')&&!_0xcd09e7[_0xc461('0xe')](_0x4e3eb2['item']),_0x57bd10=_0x57ee62[_0xc461('0x30')][_0xc461('0x88')](_0x4c6e0b),_0x549417=_0x57ee62[_0xc461('0xc3')][_0xc461('0x88')](_0x4c6e0b,{'direction':_0xc461('0xb9')});return(!_0x57ee62[_0xc461('0x30')][_0xc461('0x65')](_0x57bd10)||!_0x57ee62[_0xc461('0xc3')][_0xc461('0x65')](_0x549417))&&(_0x57bd10[_0xc461('0x19')](_0x549417)?_0x17e52b[_0xc461('0x20')](_0x267a9d,{'range':_0x17e52b[_0xc461('0xa7')](_0x57bd10,_0x549417)}):_0x17e52b[_0xc461('0x51')](_0x267a9d),!0x0);}function Nt(_0x4b2bb8){return _0x4a4395(_0x4b2bb8);}function Rt(_0x37a645){const _0x6a2330=_0x37a645[_0xc461('0x30')][_0xc461('0x3b')];return _0x6a2330&&_0x6a2330['is']('element');}function jt(_0x5ae169,_0x441df8){const _0x1ec82e=_0x441df8[_0xc461('0x77')]['isObject'](_0x5ae169)||_0x441df8['schema']['isSelectable'](_0x5ae169);return _0x441df8[_0xc461('0xa7')](_0x441df8[_0xc461('0x134')](_0x5ae169,_0xc461('0xa0')),_0x1ec82e?_0x441df8[_0xc461('0xec')](_0x5ae169):_0x441df8[_0xc461('0x134')](_0x5ae169,_0xc461('0xc3')));}function xt(_0x424e8d,_0x598863,_0x5941c5,_0x1ade99,_0x8546c4){if(!Ut(_0x424e8d,_0x598863))return!0x1;if(_0x5941c5[_0xc461('0xc3')][_0xc461('0x65')](_0x1ade99[_0xc461('0x30')]))return!0x0;if(_0x424e8d[_0xc461('0xff')]!=_0x598863[_0xc461('0xff')])return!0x1;if(!_0x5941c5[_0xc461('0xc3')][_0xc461('0x8a')](_0x1ade99[_0xc461('0x30')]))return!0x1;const _0x1ece40=_0x8546c4['createRange'](_0x5941c5['end'],_0x1ade99[_0xc461('0x30')])['getWalker']();for(const _0x17bdf1 of _0x1ece40)if([_0xc461('0x138'),_0xc461('0x1b')][_0xc461('0xb5')](_0x17bdf1['type'])&&_0x8546c4[_0xc461('0x77')]['isLimit'](_0x17bdf1[_0xc461('0x12d')]))return!0x1;return!0x0;}function Ut(_0x47aef9,_0x573875){return!(!_0x47aef9[_0xc461('0xe7')]||!_0x573875[_0xc461('0xe7')])&&_0x4541bd(_0x47aef9[_0xc461('0x0')],_0x573875[_0xc461('0x0')]);}function Ot(_0x38c48d,_0x518e69){const _0x33a3d5=Et(_0x38c48d[_0xc461('0x0')]),_0x472288=Et(_0x518e69);if(!_0x38c48d[_0xc461('0xe7')])return!0x1;for(const _0x1fcd53 of Object[_0xc461('0xb1')](_0x472288))if(!_0x4541bd(_0x33a3d5[_0x1fcd53],_0x472288[_0x1fcd53]))return!0x1;return!0x0;}function Et(_0x5c3873){const _0x5562eb=Object[_0xc461('0xc8')]({},_0x5c3873);return delete _0x5562eb[_0xc461('0x61')],delete _0x5562eb[_0xc461('0x119')],_0x5562eb;}