@ckeditor/ckeditor5-track-changes 38.0.0 → 38.1.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/build/track-changes.js +1 -1
- package/package.json +10 -8
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +3 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +3 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +3 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +3 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +3 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +3 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +3 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +3 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +4 -5
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +49 -5
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +5 -5
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +0 -2
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e59=['_adapter','getFirstRange','pluginName','getRanges','getAllAdjacentSuggestions','stop','createElement','removeMarker','_trackFormatChanges','formatBlock:','insertion:join','_suggestions','suggestionUnloaded','_rangeIsInLocalUserInsertion','TrackChangesEditing','add','every','commentThread','originalSuggestionId','getDifference','hasSuggestion','previous','accept','formatBlock:join','getSuggestions','differ','markerName','config','writer','from','conversion','fromCharCode','split','_getSuggestionData','updateMarker','elementStart','markerReady','_customCallbacks','markers','PendingActions','values','suggestion','authorName','nodeAfter','for','_updateSuggestionData','getWalker','toViewElement','isObject','splice','activeMarkers','isIntersectingWithRange','root','track-changes-adapter-missing-getsuggestion','addSuggestionData','author','formatBlock:accept','creator','insert','locale','widget','formatBlock','formatInline:chain','insertion:discard','getFirstMarker','getMultiRangeId','deletion:discard','chain','createRange','addMarker:suggestion:formatBlock','change:_saved','_enabledCommands','showSuggestionHighlights','document','schema','getCustomProperty','addHighlight','trackChanges','isInContent','isRemovable','markerToHighlight','getIntersection','isBlock','next','lowest','accepted','_setSuggestionData','suggestionLoaded','setTo','bindElementToMarker','isLimit','_cutOutSuggestionMarker','Users','marker-count','isUndo','position','plugins','data','parent','some','mapper','get','nodeBefore','addComment','isAtEnd','element','formatInline:join','forward','trackChangesCommand','reconvertMarker','trackChanges.trackFormatChanges','markMultiRangeDeletion','registerPostFixer','_saved','init','highest','dataReady','enqueueChange','registerCustomCallback','isTouching','fire','ready','name','insertion:accept','isInsideObject','rootName','commandName','unbindElementFromMarkerName','formatBlock:discard','_getExternalAuthor','addCommentThread','adapter','return','_mergeNestedSuggestions','suggestionChanged','editing','markerToData','deletion:join','includes','rethrowUnexpectedError','containsRangeInObject','suggestion:','editor','markerNameToElements','discardSelectedSuggestions','createSelection','getSuggestion','removeAttribute','isAfter','batch','applyOperation','formatBlock:chain','deletion','_descriptionFactory','$graveyard','isDocumentOperation','_handleNewSuggestionMarker','addSuggestion','_model','markInsertion','enableReadOnlyMode','removed','discardSuggestion','splitPosition','join','execute','start','isSelectable','_commentsRepository','rejected','length','item','getCommentThread','attributes','buildSuggestion','external:','discardAllSuggestions','removeClass','deleteContent','set','removeMarker:suggestion:formatBlock','isNextTo','selection','data-suggestion','high','track-changes-suggestion-data-mismatch','removeMarkers','requires','getUser','low','isOwn','dataDowncast','_getAuthorFromId','_breakSuggestionMarker','editingDowncast','remove','change','map','insertContent','update:suggestion','elementToElement','addClass','setAttribute','deletion:','_registerDefaultCallbacks','addMarkerName','model','move','change:data','hasComments','_refreshSuggestionsChain','consumable','createRangeIn','size','markMultiRangeBlockFormat','insertion','multipleBlocks','getItems','always','oldRange','addUser','has','authoredAt','createPositionBefore','_splitMarkerName','_addSuggestionMarker','enableCommand','_checkSuggestionCorrectness','deletion:chain','ck-suggestion-marker','setSelection','getLastMatchingPosition','_joinWithAdjacentSuggestions','delete','_createSuggestion','track-changes-suggestion-not-found','change:activeMarkers','listenTo','@external','getSuggestionCallback','_isForcedDefaultExecutionBlock','subType','define','ck-suggestion-marker-','catch','default','_onDiscard','_suggestionState','skipNestingCheck','formatInline:discard','CommentsRepository','substr','ck-suggestion-marker-formatBlock','removeComment','end','_defaultCallbacks','acceptSelectedSuggestions','_editor','getChangedMarkers','after','acceptSuggestion','never','stopListening','formatInline:','options','sort','getNearestSelectionRange','type','newRange','isAtStart','addMarker:suggestion','formatInline','backward','insertion:chain','isBefore','_joinSuggestions','containsRange','insertion:','ck-suggestion-marker--active','_findSuggestions','_setSuggestionRange','moveTargetPosition','containerElement','acceptAllSuggestions','getAttribute','updateSuggestion','createdAt','containsPosition','formatGroupId','formatInline:accept','notReady','value','markBlockFormat','getAncestors','_addThreadToSuggestion','getShiftedBy','isEqual','_suggestionFactory','discard','collaboration.channelId','isCollapsed','filter','push','track-changes-user-not-found','createPositionAt','forceDefaultExecution','trackChanges.mergeNestedSuggestions','isMultiRange','addRange','consume','commands','range'];(function(_0x21a635,_0x5e59a5){const _0x230cb8=function(_0x2c344d){while(--_0x2c344d){_0x21a635['push'](_0x21a635['shift']());}};_0x230cb8(++_0x5e59a5);}(_0x5e59,0xf1));const _0x230c=function(_0x21a635,_0x5e59a5){_0x21a635=_0x21a635-0x0;let _0x230cb8=_0x5e59[_0x21a635];return _0x230cb8;};import{Plugin as _0x4061d3,PendingActions as _0x1ab065}from'ckeditor5/src/core';import{LiveRange as _0x526bfe}from'ckeditor5/src/engine';import{CKEditorError as _0x40e29f,uid as _0x4a6f2e,priorities as _0x34b2a8,logWarning as _0x3ba762}from'ckeditor5/src/utils';import{toWidget as _0x1f3c95}from'ckeditor5/src/widget';import{Users as _0x5052be,hashObject as _0x86ca02}from'ckeditor5-collaboration/src/collaboration-core';import _0x47cd0c from'./commands/trackchangescommand';import _0x6a78be from'./commands/acceptsuggestioncommand';import _0x3aa119 from'./commands/discardsuggestioncommand';import _0x3db442 from'./commands/executeonallsuggestionscommand';import _0x509559 from'./commands/executeonselectedsuggestionscommand';import _0x359907 from'./suggestion';import _0x3136ec from'./suggestiondescriptionfactory';import _0x2d4b02 from'./integrations/alignment';import _0x43605e from'./integrations/basicstyles';import _0x2c90c0 from'./integrations/blockquote';import _0x47339c from'./integrations/ckbox';import _0x1ac853 from'./integrations/codeblock';import _0x30680e from'./integrations/comments';import _0x1afd09 from'./integrations/deletecommand';import _0x364b32 from'./integrations/documentlist';import _0x21b6fc from'./integrations/entercommand';import _0x121a25 from'./integrations/findandreplace';import _0x3c0a05 from'./integrations/font';import _0x305764 from'./integrations/formatpainter';import _0x52052c from'./integrations/heading';import _0x8ab0c9 from'./integrations/highlight';import _0x5bac44 from'./integrations/horizontalline';import _0x1a855b from'./integrations/htmlembed';import _0x54a38a from'./integrations/image';import _0x114921 from'./integrations/imagereplace';import _0x44ef34 from'./integrations/importword';import _0x4be575 from'./integrations/indent';import _0x436d60 from'./integrations/inputcommand';import _0x522490 from'./integrations/link';import _0x23521b from'./integrations/list';import _0x4b8bd2 from'./integrations/listproperties';import _0x5666c3 from'./integrations/mediaembed';import _0x4155d4 from'./integrations/mention';import _0x280305 from'./integrations/pagebreak';import _0xf9e763 from'./integrations/paragraph';import _0x3cd1b0 from'./integrations/removeformat';import _0x16b7b3 from'./integrations/restrictededitingmode';import _0x412445 from'./integrations/shiftentercommand';import _0x5ca0d1 from'./integrations/standardeditingmode';import _0x59a53c from'./integrations/style';import _0x5d64aa from'./integrations/table';import _0x1106cf from'./integrations/tablemergesplit';import _0x655840 from'./integrations/tableheadings';import _0x3432e7 from'./integrations/tableclipboard';import _0x4616fd from'./integrations/tablecolumnresize';import _0x4530da from'./integrations/template';import _0x26fd93 from'./integrations/tableofcontents';import _0x1da71b from'./integrations/title';import _0x5530a7 from'./integrations/undo';import{getTranslation as _0x15ad70}from'./utils/common-translations';import _0x58ed20 from'./integrations/tablecaption';import _0x5d9338 from'./integrations/documentlistproperties';import _0x423198 from'./integrations/tableproperties';export default class p extends _0x4061d3{static get[_0x230c('0x102')](){return[_0x230c('0x9'),_0x5052be,_0x1ab065,_0x2d4b02,_0x43605e,_0x2c90c0,_0x47339c,_0x1ac853,_0x30680e,_0x1afd09,_0x364b32,_0x5d9338,_0x21b6fc,_0x121a25,_0x3c0a05,_0x305764,_0x52052c,_0x8ab0c9,_0x5bac44,_0x1a855b,_0x54a38a,_0x114921,_0x44ef34,_0x4be575,_0x436d60,_0x522490,_0x23521b,_0x4b8bd2,_0x5666c3,_0x4155d4,_0x280305,_0xf9e763,_0x3cd1b0,_0x16b7b3,_0x412445,_0x5ca0d1,_0x59a53c,_0x5d64aa,_0x1106cf,_0x655840,_0x58ed20,_0x3432e7,_0x4616fd,_0x26fd93,_0x423198,_0x4530da,_0x1da71b,_0x5530a7];}static get[_0x230c('0x49')](){return _0x230c('0x55');}constructor(_0x3d709e){function _0x5ba0b6(_0x472e79){return _0x472e79[_0x230c('0x10c')](_0x96e4e0=>String[_0x230c('0x66')](_0x96e4e0))[_0x230c('0xeb')]('');}super(_0x3d709e),this[_0x230c('0xfa')](_0x230c('0x79'),[]),this['on'](_0x230c('0x133'),(_0x6d33e6,_0x8d6971,_0x5899c7,_0x16964f)=>{this[_0x230c('0xe5')][_0x230c('0x10b')](()=>{for(const _0x315a89 of[..._0x16964f,..._0x5899c7])this[_0x230c('0xe5')][_0x230c('0x6d')][_0x230c('0x124')](_0x315a89)&&_0x3d709e[_0x230c('0xce')][_0x230c('0xb4')](_0x315a89);});}),this[_0x230c('0xe0')]=new _0x3136ec(this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0x91')],this[_0x230c('0xd5')][_0x230c('0x82')]),this[_0x230c('0x47')]=null,this[_0x230c('0x38')]=new Dt(this[_0x230c('0xd5')]),this[_0x230c('0x52')]=new Map(),this[_0x230c('0xef')]=_0x3d709e[_0x230c('0xa7')]['get'](_0x230c('0x9')),this['_enabledCommands']=new Set(),this[_0x230c('0xe5')]=this[_0x230c('0xd5')][_0x230c('0x115')],this[_0x230c('0x6')]=new WeakMap(),this[_0x230c('0x137')]=!0x1,_0x3d709e[_0x230c('0x62')]['define']('trackChanges.trackFormatChanges',_0x230c('0x4')),this[_0x230c('0x4f')]=_0x3d709e[_0x230c('0x62')]['get'](_0x230c('0xb5')),_0x3d709e[_0x230c('0x62')][_0x230c('0x1')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x230c('0xcc')]=_0x3d709e[_0x230c('0x62')][_0x230c('0xac')](_0x230c('0x41')),this[_0x230c('0xb3')]=new _0x47cd0c(_0x3d709e,this[_0x230c('0x8e')]),this[_0x5ba0b6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5ba0b6([0x34,0x30,0x34,0x36,0x31,0x30,0x34,0x34]);}[_0x230c('0xb9')](){const _0x5b2d43=this[_0x230c('0xd5')];_0x5b2d43[_0x230c('0x65')]['for'](_0x230c('0x109'))[_0x230c('0x97')]({'model':_0x230c('0x70'),'view':_0x37dd49=>{const {id:_0x4dccf6,type:_0x1a86c7}=this[_0x230c('0x127')](_0x37dd49['markerName']),_0x8cb434=[_0x230c('0x12c'),_0x230c('0x2')+_0x1a86c7];let _0x7fdf6c=0xbb8;return this[_0x230c('0x79')][_0x230c('0xd1')](_0x37dd49[_0x230c('0x61')])&&(_0x8cb434[_0x230c('0x3d')](_0x230c('0x25')),_0x7fdf6c=0xbc2),'deletion'==_0x1a86c7&&(_0x7fdf6c+=0x5),{'classes':_0x8cb434,'attributes':{'data-suggestion':_0x4dccf6},'priority':_0x7fdf6c};}}),_0x5b2d43[_0x230c('0x65')][_0x230c('0x73')](_0x230c('0x106'))['add'](_0x38f30f=>{_0x38f30f['on'](_0x230c('0x1d'),(_0x20f9b3,_0x185c9c,_0x5f2960)=>{if(!_0x5f2960[_0x230c('0x17')][_0x230c('0x8f')])return;const _0x1a5316=_0x185c9c['item'];if(!_0x1a5316)return;const _0x522c1d=_0x5f2960[_0x230c('0xab')][_0x230c('0x76')](_0x1a5316);_0x5b2d43[_0x230c('0x115')][_0x230c('0x91')][_0x230c('0x77')](_0x1a5316)&&_0x522c1d&&!_0x522c1d[_0x230c('0x92')](_0x230c('0x83'))&&_0x522c1d['is'](_0x230c('0x29'))&&_0x1f3c95(_0x522c1d,_0x5f2960['writer']);},{'priority':_0x230c('0xff')});}),_0x5b2d43[_0x230c('0x65')]['for']('dataDowncast')['markerToHighlight']({'model':_0x230c('0x70'),'view':(_0x47ac40,_0x538a80)=>{if(!_0x538a80[_0x230c('0x17')][_0x230c('0x8f')])return null;const {type:_0x181f9f}=this[_0x230c('0x127')](_0x47ac40[_0x230c('0x61')]);return{'classes':['ck-suggestion-marker',_0x230c('0x2')+_0x181f9f],'priority':0xbb8};}});const _0x3171cf=({showActiveMarkers:_0x5727a3=!0x0}={})=>(_0x1e6b7b,_0xe5b6a5,_0x1b97ce)=>{if(!_0xe5b6a5['item'])return;if(_0xe5b6a5[_0x230c('0xf2')]['is'](_0x230c('0xfd')))return void _0x1b97ce[_0x230c('0x11a')][_0x230c('0x44')](_0xe5b6a5['item'],_0x1e6b7b[_0x230c('0xc1')]);const _0x1978ed=_0x1b97ce[_0x230c('0xab')]['toViewElement'](_0xe5b6a5[_0x230c('0xf2')]);if(!(_0xe5b6a5[_0x230c('0xf2')]['is'](_0x230c('0xb0'))&&_0x5b2d43['model'][_0x230c('0x91')]['isBlock'](_0xe5b6a5['item'])&&!_0x1978ed['getCustomProperty'](_0x230c('0x93'))))return;const {id:_0x43e326}=this[_0x230c('0x127')](_0xe5b6a5[_0x230c('0x61')]);_0x1b97ce[_0x230c('0x63')][_0x230c('0x110')](['ck-suggestion-marker',_0x230c('0xb')],_0x1978ed),_0x1b97ce[_0x230c('0x63')][_0x230c('0x111')](_0x230c('0xfe'),_0x43e326,_0x1978ed),_0x1b97ce[_0x230c('0xab')][_0x230c('0xa0')](_0x1978ed,_0xe5b6a5['markerName']),_0x5727a3&&(this[_0x230c('0x79')][_0x230c('0xd1')](_0xe5b6a5[_0x230c('0x61')])?_0x1b97ce[_0x230c('0x63')][_0x230c('0x110')](_0x230c('0x25'),_0x1978ed):_0x1b97ce[_0x230c('0x63')][_0x230c('0xf8')](_0x230c('0x25'),_0x1978ed));for(const _0x325ca9 of _0x5b2d43[_0x230c('0x115')][_0x230c('0x11b')](_0xe5b6a5['item'])[_0x230c('0x120')]())_0x1b97ce['consumable']['consume'](_0x325ca9,_0x1e6b7b[_0x230c('0xc1')]);_0x1b97ce[_0x230c('0x11a')][_0x230c('0x44')](_0xe5b6a5[_0x230c('0xf2')],_0x1e6b7b['name']);};_0x5b2d43[_0x230c('0x65')][_0x230c('0x73')](_0x230c('0x106'))[_0x230c('0x56')](_0x136b7b=>{_0x136b7b['on']('addMarker:suggestion:formatBlock',(_0x39eaed,_0x257ae8,_0x391b2d)=>{_0x391b2d[_0x230c('0x17')][_0x230c('0x8f')]&&_0x3171cf({'showActiveMarkers':!0x1})(_0x39eaed,_0x257ae8,_0x391b2d);},{'priority':_0x230c('0xba')});}),_0x5b2d43[_0x230c('0x65')]['for'](_0x230c('0x106'))[_0x230c('0xcf')]({'model':_0x230c('0x70'),'view':(_0x3a7aff,_0x1df721)=>_0x1df721[_0x230c('0x17')][_0x230c('0x8f')]?null:{'group':_0x230c('0x70'),'name':_0x3a7aff[_0x230c('0xa')](0xb)}}),_0x5b2d43[_0x230c('0x65')]['for']('upcast')[_0x230c('0x10f')]({'view':{'name':_0x230c('0x70'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e42ad,{writer:_0x24e2bb})=>{let _0x3617f0=_0x230c('0xd4')+_0x4e42ad[_0x230c('0x2b')]('suggestion-type')+':'+_0x4e42ad[_0x230c('0x2b')]('id');return _0x4e42ad[_0x230c('0x2b')](_0x230c('0xa4'))&&(_0x3617f0+=':'+_0x4e42ad[_0x230c('0x2b')]('marker-count')),_0x24e2bb[_0x230c('0x4d')]('$marker',{'data-name':_0x3617f0});}}),_0x5b2d43['conversion'][_0x230c('0x73')]('upcast')['dataToMarker']({'view':_0x230c('0x70')}),_0x5b2d43[_0x230c('0x65')][_0x230c('0x73')](_0x230c('0x109'))[_0x230c('0x56')](_0x113e77=>{_0x113e77['on'](_0x230c('0x8c'),_0x3171cf(),{'priority':_0x230c('0xff')});}),_0x5b2d43['conversion'][_0x230c('0x73')](_0x230c('0x109'))[_0x230c('0x56')](_0x1991c1=>{_0x1991c1['on'](_0x230c('0xfb'),(_0x271e21,_0x1dcb60,_0x52b42c)=>{const _0x1e745e=_0x52b42c['mapper'][_0x230c('0xd6')](_0x1dcb60['markerName']);if(_0x1e745e)for(const _0x27a02a of _0x1e745e)_0x27a02a[_0x230c('0x92')](_0x230c('0x93'))||(_0x52b42c[_0x230c('0x63')]['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x230c('0x25')],_0x27a02a),_0x52b42c[_0x230c('0x63')][_0x230c('0xda')](_0x230c('0xfe'),_0x27a02a),_0x52b42c[_0x230c('0xab')][_0x230c('0xc6')](_0x27a02a,_0x1dcb60[_0x230c('0x61')]));},{'priority':'high'});}),_0x5b2d43['model'][_0x230c('0x90')][_0x230c('0xb7')](_0x2cbd3b=>{let _0x18a569=!0x1;const _0x465285=Array['from'](_0x5b2d43['model']['document'][_0x230c('0x60')][_0x230c('0x11')]()),_0xfd96af=new Set();for(const {name:_0x2c1a80,data:_0x25eb20}of _0x465285){const {group:_0x411aae,type:_0x59cc9d,id:_0x32e83c}=this[_0x230c('0x127')](_0x2c1a80);if(_0x230c('0x70')!==_0x411aae)continue;const _0x186b8a=this['_suggestions'][_0x230c('0xac')](_0x32e83c);if(null!=_0x25eb20[_0x230c('0x1b')]){_0x230c('0x1e')==_0x59cc9d&&(_0x18a569=_0x18a569||Mt(_0x25eb20[_0x230c('0x1b')],_0x2c1a80,_0x2cbd3b,_0x5b2d43[_0x230c('0x115')][_0x230c('0x91')]));if(_0x25eb20['newRange'][_0x230c('0x3b')]||'$graveyard'==_0x25eb20[_0x230c('0x1b')][_0x230c('0x7b')]['rootName']||_0x230c('0x84')==_0x59cc9d&&!Nt(_0x25eb20[_0x230c('0x1b')])||_0x230c('0xdf')==_0x59cc9d&&!(!_t(_0x516da3=_0x25eb20[_0x230c('0x1b')])&&!function(_0x4faa7b){return _0x4faa7b[_0x230c('0xed')]['parent']==_0x4faa7b[_0x230c('0xd')][_0x230c('0xad')]&&_0x4faa7b[_0x230c('0xed')]['isAtEnd'];}(_0x516da3)))_0x2cbd3b[_0x230c('0x4e')](_0x2c1a80),_0x18a569=!0x0;else{if(!_0x186b8a||!_0x186b8a[_0x230c('0x95')])continue;_0xfd96af[_0x230c('0x56')](_0x186b8a);}}}var _0x516da3;return _0xfd96af[_0x230c('0x11c')]>0x0&&(_0x18a569=!!this['_joinWithAdjacentSuggestions'](_0xfd96af)||_0x18a569),_0x18a569;}),_0x5b2d43['model'][_0x230c('0x90')]['registerPostFixer'](_0x39a36b=>{let _0x1c1c7f=!0x1;for(const _0x21b6c0 of _0x5b2d43[_0x230c('0x115')][_0x230c('0x90')][_0x230c('0x60')]['getChanges']()){if(_0x230c('0x81')!=_0x21b6c0['type'])continue;const _0x1b22c2=_0x21b6c0[_0x230c('0xa6')]['getShiftedBy'](_0x21b6c0[_0x230c('0xf1')]);if(_0x1b22c2[_0x230c('0xaf')])for(const _0x166e7c of this['_suggestions'][_0x230c('0x6f')]()){if(_0x166e7c['isMultiRange']||!_0x166e7c[_0x230c('0x95')])continue;if(_0x230c('0x84')!=_0x166e7c[_0x230c('0x1a')])continue;const _0x182e35=_0x166e7c[_0x230c('0x48')]();if(_0x182e35[_0x230c('0xed')][_0x230c('0xa9')]!=_0x182e35['end']['parent']&&_0x182e35[_0x230c('0xd')][_0x230c('0x37')](_0x21b6c0[_0x230c('0xa6')])){const _0x4685b1=_0x5b2d43['model']['createRange'](_0x182e35[_0x230c('0xed')],_0x1b22c2);_0x39a36b['updateMarker'](_0x166e7c[_0x230c('0x87')](),{'range':_0x4685b1}),_0x1c1c7f=!0x0;}}}return _0x1c1c7f;}),_0x5b2d43[_0x230c('0x115')]['markers']['on'](_0x230c('0x10e'),(_0x24457a,_0x3305da,_0x47808c)=>{if(null==_0x47808c){const {id:_0x4707fc}=this[_0x230c('0x127')](_0x3305da[_0x230c('0xc1')]),_0x3e2186=this[_0x230c('0x52')][_0x230c('0xac')](_0x4707fc);_0x3e2186&&_0x3e2186[_0x230c('0x114')](_0x3305da['name']);}}),_0x5b2d43['model'][_0x230c('0x90')]['on'](_0x230c('0x117'),()=>{const _0x47d569=Array[_0x230c('0x64')](_0x5b2d43['model'][_0x230c('0x90')]['differ']['getChangedMarkers']())['filter'](_0x3eb099=>_0x230c('0x70')===this[_0x230c('0x127')](_0x3eb099['name'])['group']);if(0x0===_0x47d569[_0x230c('0xf1')])return;_0x47d569['sort']((_0x581180,_0x436136)=>{const _0x332fe1=_0x581180['data'][_0x230c('0x122')],_0x2efb6c=_0x436136[_0x230c('0xa8')][_0x230c('0x122')];return null===_0x332fe1&&null===_0x2efb6c?0x0:null===_0x332fe1&&null!==_0x2efb6c?-0x1:null!==_0x332fe1&&null===_0x2efb6c?0x1:_0x332fe1[_0x230c('0xed')][_0x230c('0x21')](_0x2efb6c[_0x230c('0xed')])?-0x1:0x1;});const _0x231c8c=new Set(),_0x5a8588=new Set();for(const {name:_0x586509,data:_0x46d4d9}of _0x47d569){const {id:_0x7d5399}=this[_0x230c('0x127')](_0x586509);if(null===_0x46d4d9[_0x230c('0x122')]){const _0x35f172=this['_handleNewSuggestionMarker'](_0x586509);_0x5a8588[_0x230c('0x56')](_0x35f172);}else{const _0x417126=this[_0x230c('0x52')][_0x230c('0xac')](_0x7d5399);null!==_0x46d4d9[_0x230c('0x1b')]||_0x417126[_0x230c('0x95')]?(_0x231c8c['add'](_0x417126['head']),_0x5a8588[_0x230c('0x56')](_0x417126)):this['_removeSuggestion'](_0x417126);}}_0x5a8588[_0x230c('0x11c')]>0x0&&this[_0x230c('0x119')](_0x5a8588);for(const _0x1af73f of _0x231c8c)this[_0x230c('0xbf')](_0x230c('0xcd'),_0x1af73f);}),_0x5b2d43[_0x230c('0x115')]['on'](_0x230c('0xdd'),(_0x1e37af,_0x36a52b)=>{const _0x210b3a=_0x36a52b[0x0];if(!this[_0x230c('0x52')][_0x230c('0x11c')])return;if(!_0x210b3a[_0x230c('0xe2')])return;if(_0x210b3a[_0x230c('0xdc')][_0x230c('0xa5')]||!_0x210b3a['batch']['isLocal'])return;let _0x568c85,_0x5bc3d9;switch(_0x210b3a[_0x230c('0x1a')]){case'insert':_0x568c85=_0x5b2d43[_0x230c('0x115')][_0x230c('0x3f')](_0x210b3a[_0x230c('0xa6')]),_0x5bc3d9=_0x568c85[_0x230c('0x36')](_0x210b3a['howMany']);break;case _0x230c('0x67'):_0x568c85=_0x5b2d43['model'][_0x230c('0x3f')](_0x210b3a[_0x230c('0xea')]),_0x5bc3d9=_0x5b2d43['model']['createPositionAt'](_0x210b3a[_0x230c('0x28')]);break;case _0x230c('0x116'):_0x568c85=_0x5b2d43[_0x230c('0x115')][_0x230c('0x3f')](_0x210b3a['targetPosition']),_0x5bc3d9=_0x568c85[_0x230c('0x36')](_0x210b3a['howMany']);break;default:return;}const _0x56dd81=_0x5b2d43[_0x230c('0x115')][_0x230c('0x8b')](_0x568c85,_0x5bc3d9);_0x5b2d43[_0x230c('0x115')][_0x230c('0x10b')](()=>{for(const {suggestion:_0x52d77,meta:_0x3bd24b}of this[_0x230c('0x26')](_0x56dd81)){if(_0x52d77['isMultiRange'])continue;if('formatInline'==_0x52d77[_0x230c('0x1a')])continue;const _0x14670f=_0x52d77['data']&&_0x52d77[_0x230c('0xa8')][_0x230c('0x11f')];(_0x230c('0x84')!=_0x52d77['type']||'split'==_0x210b3a[_0x230c('0x1a')]&&!_0x14670f)&&(_0x3bd24b[_0x230c('0xd3')]||'insertion'==_0x52d77[_0x230c('0x1a')]&&_0x3bd24b[_0x230c('0x105')]||_0x52d77[_0x230c('0x48')]()[_0x230c('0x23')](_0x56dd81)&&this[_0x230c('0x108')](_0x52d77,_0x568c85,_0x5bc3d9));}});},{'priority':_0x230c('0x9b')}),_0x5b2d43[_0x230c('0x115')]['on'](_0x230c('0xf9'),(_0x11b146,_0x57b7da)=>{const _0x374778=_0x57b7da[0x0],_0x1a9c02=_0x57b7da[0x1];if(_0x1a9c02&&_0x1a9c02[_0x230c('0x40')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x374778[_0x230c('0x3b')])return;const _0xfa3941=_0x5b2d43['model']['schema'],{start:_0x1e8349,end:_0x346317}=_0x374778[_0x230c('0x48')](),_0x152142=_0x1e8349[_0x230c('0x72')]&&_0xfa3941['isLimit'](_0x1e8349[_0x230c('0x72')])?null:_0xfa3941[_0x230c('0x19')](_0x1e8349,_0x230c('0xb2')),_0xba27ff=_0x346317['nodeBefore']&&_0xfa3941[_0x230c('0xa1')](_0x346317[_0x230c('0xad')])?null:_0xfa3941['getNearestSelectionRange'](_0x346317,'backward'),_0x409439=_0x5b2d43[_0x230c('0x115')][_0x230c('0x8b')](_0x152142?_0x152142[_0x230c('0xed')]:_0x1e8349,_0xba27ff?_0xba27ff['end']:_0x346317);_0x5b2d43[_0x230c('0x115')][_0x230c('0x10b')](_0x40f46e=>{this['markDeletion'](_0x409439);const _0x4feea5=_0x5b2d43[_0x230c('0x115')]['schema'][_0x230c('0x19')](_0x409439[_0x230c('0xed')]);_0x374778['is']('documentSelection')?_0x40f46e[_0x230c('0x12d')](_0x4feea5):_0x374778[_0x230c('0x9f')](_0x4feea5);}),_0x11b146[_0x230c('0x4c')]();},{'priority':_0x34b2a8['normal']+0xa}),_0x5b2d43[_0x230c('0x115')]['on'](_0x230c('0x10d'),(_0x4fdcb0,_0x4f22a0)=>{const _0x2507d3=_0x4f22a0[_0x4f22a0[_0x230c('0xf1')]-0x1];_0x2507d3&&_0x2507d3['forceDefaultExecution']||this[_0x230c('0x137')]||this[_0x230c('0xb3')][_0x230c('0x32')]&&(_0x5b2d43[_0x230c('0x115')][_0x230c('0x10b')](()=>{let _0x12a35d=_0x5b2d43[_0x230c('0x115')][_0x230c('0x10d')](_0x4f22a0[0x0],_0x4f22a0[0x1],_0x4f22a0[0x2],{'forceDefaultExecution':!0x0});if(!_0x12a35d)return;_0x4fdcb0[_0x230c('0xcb')]=_0x12a35d['clone']();const _0x5459ca=_0x12a35d[_0x230c('0xd')][_0x230c('0xad')],_0xc2f332=_0x5b2d43[_0x230c('0x115')][_0x230c('0x91')];_0x5459ca&&_0xc2f332[_0x230c('0x99')](_0x5459ca)&&!_0xc2f332[_0x230c('0x77')](_0x5459ca)&&(_0x12a35d=_0x5b2d43[_0x230c('0x115')][_0x230c('0x8b')](_0x12a35d[_0x230c('0xed')],_0x5b2d43[_0x230c('0x115')]['createPositionAt'](_0x5459ca,_0x230c('0xd')))),this['markInsertion'](_0x12a35d);}),_0x4fdcb0[_0x230c('0x4c')]());},{'priority':_0x230c('0xff')}),this[_0x230c('0xd5')][_0x230c('0x45')]['add']('trackChanges',this['trackChangesCommand']),this[_0x230c('0x129')](_0x230c('0x94'));const _0x2d8147=new _0x6a78be(_0x5b2d43,this[_0x230c('0x52')]);_0x5b2d43[_0x230c('0x45')][_0x230c('0x56')](_0x230c('0x13'),_0x2d8147),this[_0x230c('0x129')]('acceptSuggestion');const _0x48a46f=new _0x3aa119(_0x5b2d43,this['_suggestions']);_0x5b2d43[_0x230c('0x45')][_0x230c('0x56')]('discardSuggestion',_0x48a46f),this[_0x230c('0x129')](_0x230c('0xe9')),_0x5b2d43[_0x230c('0x45')][_0x230c('0x56')](_0x230c('0x2a'),new _0x3db442(_0x5b2d43,_0x2d8147,this[_0x230c('0x52')])),this['enableCommand'](_0x230c('0x2a')),_0x5b2d43['commands']['add'](_0x230c('0xf7'),new _0x3db442(_0x5b2d43,_0x48a46f,this['_suggestions'])),this[_0x230c('0x129')](_0x230c('0xf7')),_0x5b2d43[_0x230c('0x45')]['add'](_0x230c('0xf'),new _0x509559(_0x5b2d43,_0x2d8147,this[_0x230c('0x52')])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b2d43[_0x230c('0x45')]['add'](_0x230c('0xd7'),new _0x509559(_0x5b2d43,_0x48a46f,this['_suggestions'])),this['enableCommand'](_0x230c('0xd7'));const _0x53567c=_0x5b2d43[_0x230c('0xa7')][_0x230c('0xac')]('CommentsRepository');this['listenTo'](_0x53567c,_0x230c('0xae'),(_0xe8193f,{threadId:_0x2d1b10})=>{const _0x3d29e9=this[_0x230c('0x52')][_0x230c('0xac')](_0x2d1b10);_0x3d29e9&&_0x3d29e9[_0x230c('0x58')]&&0x1===_0x3d29e9[_0x230c('0x58')]['length']&&this['_updateSuggestionData'](_0x2d1b10,{'hasComments':!0x0});},{'priority':'low'}),this[_0x230c('0x134')](_0x53567c,_0x230c('0xc'),(_0x12b4e4,{threadId:_0x4bc04b})=>{const _0x435c44=this['_suggestions'][_0x230c('0xac')](_0x4bc04b);_0x435c44&&_0x435c44[_0x230c('0x58')]&&!_0x435c44['commentThread'][_0x230c('0xf1')]&&this[_0x230c('0x74')](_0x4bc04b,{'hasComments':!0x1});},{'priority':_0x230c('0x104')});}set[_0x230c('0xca')](_0x26277b){if(this['_adapter'])throw new _0x40e29f('track-changes-adapter-already-set',this);this[_0x230c('0x47')]=_0x26277b;}get[_0x230c('0xca')](){return this[_0x230c('0x47')];}['getSuggestions']({skipNotAttached:_0x2866d3=!0x1,toJSON:_0x4e4989=!0x1}={}){const _0x1e7fab=[];for(const _0x4de20e of this[_0x230c('0x52')]['values']())_0x2866d3&&!_0x4de20e[_0x230c('0x95')]||_0x1e7fab[_0x230c('0x3d')](_0x4de20e);return _0x4e4989?_0x1e7fab[_0x230c('0x10c')](_0x2b5dbd=>_0x2b5dbd['toJSON']()):_0x1e7fab;}[_0x230c('0xd9')](_0x24975c){const _0x36493d=this[_0x230c('0x52')][_0x230c('0xac')](_0x24975c);if(!_0x36493d)throw new _0x40e29f(_0x230c('0x132'),this);return _0x36493d;}[_0x230c('0x5b')](_0x5f0e93){return this[_0x230c('0x52')][_0x230c('0x124')](_0x5f0e93);}[_0x230c('0x7d')](_0x35d6aa){const {authorId:_0x234729,id:_0x38bf76,attributes:_0x439b9c}=_0x35d6aa,[_0x5268e8,_0x1aaa15]=_0x35d6aa[_0x230c('0x1a')][_0x230c('0x67')](':'),_0x243e89=this[_0x230c('0x52')][_0x230c('0xac')](_0x38bf76)||this[_0x230c('0x131')](_0x5268e8,_0x1aaa15,_0x38bf76,_0x234729,_0x439b9c);if(this['_addThreadToSuggestion'](_0x243e89),this[_0x230c('0x12a')](_0x243e89,_0x5268e8,_0x1aaa15||null,_0x234729),_0x243e89['createdAt']=_0x35d6aa[_0x230c('0x2d')],_0x439b9c&&_0x439b9c[_0x230c('0x135')]){const _0x48e0ae=_0x439b9c[_0x230c('0x135')],_0x51b27d=this[_0x230c('0xc8')](_0x48e0ae[_0x230c('0x71')]);_0x243e89[_0x230c('0x125')]=_0x48e0ae['createdAt'],_0x243e89[_0x230c('0x7e')]=_0x51b27d,_0x243e89['isExternal']=!0x0;}else _0x243e89[_0x230c('0x125')]=_0x35d6aa[_0x230c('0x2d')];switch(_0x35d6aa[_0x230c('0xa8')]&&(_0x243e89[_0x230c('0xa8')]=_0x35d6aa[_0x230c('0xa8')]),_0x35d6aa[_0x230c('0xf4')]&&(_0x243e89[_0x230c('0xf4')]=_0x35d6aa[_0x230c('0xf4')]),this['_adapter']&&this[_0x230c('0x47')]['addSuggestion']||(_0x243e89[_0x230c('0xb8')]=!0x0),this['_suggestionState'][_0x230c('0xac')](_0x243e89)){case _0x230c('0x31'):this[_0x230c('0x6')][_0x230c('0xfa')](_0x243e89,_0x230c('0xbb'));break;case _0x230c('0x6b'):_0x243e89[_0x230c('0x95')]?(this[_0x230c('0x6')][_0x230c('0xfa')](_0x243e89,_0x230c('0xc0')),this['fire'](_0x230c('0x9e'),_0x243e89)):this[_0x230c('0x6')]['set'](_0x243e89,'removed');}return _0x243e89;}[_0x230c('0x13')](_0x48110f){this[_0x230c('0x40')](()=>{this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0x10b')](()=>{for(const _0x5f0c60 of _0x48110f['getAllAdjacentSuggestions']())_0x5f0c60[_0x230c('0x5d')]();});});}[_0x230c('0xe9')](_0x469bef){this[_0x230c('0x40')](()=>{this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0x10b')](()=>{for(const _0xdb00fb of _0x469bef[_0x230c('0x4b')]())_0xdb00fb[_0x230c('0x39')]();});});}[_0x230c('0x129')](_0x1fa672,_0x320423){const _0x1713ef=this['editor'][_0x230c('0x45')][_0x230c('0xac')](_0x1fa672);if(!_0x1713ef)throw new _0x40e29f('track-changes-command-not-found',this,{'commandName':_0x1fa672});this['_enabledCommands']['add'](_0x1713ef),_0x320423&&_0x1713ef['on']('execute',(_0xc439b4,_0xf77bf5)=>{this[_0x230c('0xb3')][_0x230c('0x32')]&&(this[_0x230c('0x137')]||_0xf77bf5[_0x230c('0xf1')]>0x0&&_0xf77bf5[_0xf77bf5['length']-0x1]&&_0xf77bf5[_0xf77bf5[_0x230c('0xf1')]-0x1][_0x230c('0x40')]||(_0x320423((..._0x547ad9)=>_0x1713ef[_0x230c('0xec')](..._0x547ad9,{'forceDefaultExecution':!0x0}),..._0xf77bf5),_0xc439b4[_0x230c('0x4c')]()));},{'priority':_0x230c('0xff')});}[_0x230c('0x40')](_0x47a6c8){let _0xcd9bb2,_0x4403e6;const _0x50ec46=this[_0x230c('0x137')];this[_0x230c('0x137')]=!0x0;try{_0xcd9bb2=_0x47a6c8();}catch(_0x313b0e){_0x4403e6=_0x313b0e;}return _0x50ec46||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4403e6&&_0x40e29f[_0x230c('0xd2')](_0x4403e6,this),_0xcd9bb2;}[_0x230c('0xe6')](_0xd292fc,_0x4f77be=null,_0x4f551c={}){if(_0xd292fc['isCollapsed'])return null;const _0x55de56=this['editor'][_0x230c('0xa7')]['get'](_0x230c('0xa3'))['me'];for(const {suggestion:_0x294cd5,meta:_0x40156b}of this[_0x230c('0x26')](_0xd292fc,'insertion'))if(_0x40156b['isOwn']){if(!_0x40156b[_0x230c('0xfc')]){if(!this['_mergeNestedSuggestions']&&_0x40156b['containsRangeInObject'])continue;return _0x294cd5;}if(_0x4f77be==_0x294cd5['subType']){const _0x25b4af=_0x294cd5['getFirstRange']();return _0x25b4af[_0x230c('0xed')][_0x230c('0x37')](_0xd292fc[_0x230c('0xd')])?this[_0x230c('0x27')](_0x294cd5,this['_model'][_0x230c('0x8b')](_0xd292fc[_0x230c('0xed')],_0x25b4af['end'])):this[_0x230c('0x27')](_0x294cd5,this[_0x230c('0xe5')]['createRange'](_0x25b4af[_0x230c('0xed')],_0xd292fc[_0x230c('0xd')])),_0x294cd5;}}const _0x26642d=_0x4a6f2e(),_0x362579=_0x55de56['id'],_0x576121=_0x4f77be?_0x230c('0x24')+_0x4f77be:_0x230c('0x11e'),_0x3c47c5=this[_0x230c('0x9d')]({'id':_0x26642d,'type':_0x576121,'createdAt':new Date(),'authorId':_0x362579,'attributes':_0x4f551c});return this[_0x230c('0x128')](_0x576121,_0x26642d,_0x362579,_0xd292fc),_0x3c47c5;}['markMultiRangeInsertion'](_0x1165e9,_0x39f015='multi',_0x41c4a3={}){const _0xef4409=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'],_0x3343d0=this['_suggestionFactory']['getSuggestionCallback'](_0x230c('0x11e'),_0x39f015,_0x230c('0xeb'));for(const _0xf2fa26 of this[_0x230c('0x5f')]())if(_0xf2fa26[_0x230c('0x7e')]['id']==_0xef4409['id']&&_0x230c('0x11e')==_0xf2fa26[_0x230c('0x1a')]&&_0xf2fa26[_0x230c('0x0')]==_0x39f015&&(_0x3343d0(_0xf2fa26[_0x230c('0x4a')](),_0x1165e9)||_0x3343d0(_0x1165e9,_0xf2fa26[_0x230c('0x4a')]()))){for(const _0x3e5489 of _0x1165e9)_0xf2fa26[_0x230c('0x43')](_0x3e5489);return _0xf2fa26;}if(this['_mergeNestedSuggestions'])for(const _0x3f779c of _0x1165e9)for(const {suggestion:_0x1f4ac9,meta:_0x3765b2}of this[_0x230c('0x26')](_0x3f779c,'insertion')){if(!_0x3765b2['isOwn'])continue;let _0x1be0ac=!0x0;for(const _0x2d4bbc of _0x1f4ac9[_0x230c('0x4a')]())for(const _0x2d165b of _0x1165e9)if(!_0x2d4bbc[_0x230c('0x23')](_0x2d165b)){_0x1be0ac=!0x1;break;}if(_0x1be0ac)return _0x1f4ac9;}const _0x357257=_0x4a6f2e(),_0x421adf=_0xef4409['id'],_0x3e7a9c=_0x230c('0x24')+_0x39f015,_0x5f8f4a=this['_setSuggestionData']({'id':_0x357257,'type':_0x3e7a9c,'createdAt':new Date(),'authorId':_0x421adf,'attributes':_0x41c4a3});for(const _0xe6bbd6 of _0x1165e9)this[_0x230c('0x128')](_0x3e7a9c,_0x357257,_0x421adf,_0xe6bbd6,_0x359907['getMultiRangeId']());return _0x5f8f4a;}['markInlineFormat'](_0x5fe785,_0x6ebfd4,_0x433cd4=null,_0x7373f2={}){if(_0x433cd4=_0x433cd4||$t(_0x6ebfd4),_0x5fe785['isCollapsed'])return null;if('never'===this[_0x230c('0x4f')]){const _0x541993=this[_0x230c('0x38')]['getSuggestionCallback']('formatInline',_0x433cd4,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x541993([_0x5fe785],_0x6ebfd4,_0x7373f2)),null;}const _0x238df3=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')]('Users')['me'],_0x402d3a=[];if(_0x230c('0x121')!==this['_trackFormatChanges'])for(const {suggestion:_0x11ed65,meta:_0x9277d2}of this[_0x230c('0x26')](_0x5fe785,_0x230c('0x11e')))_0x9277d2[_0x230c('0x105')]&&!_0x9277d2[_0x230c('0xc3')]&&_0x402d3a[_0x230c('0x3d')](..._0x11ed65[_0x230c('0x4a')]());const _0x2dc037=function(_0x52b56c,_0xf4e445){const _0x14a549=[];for(const _0x6ce8a0 of _0xf4e445){const _0x2a3665=_0x52b56c[_0x230c('0x98')](_0x6ce8a0);_0x2a3665&&_0x14a549['push'](_0x2a3665);}return _0x14a549;}(_0x5fe785,_0x402d3a),_0x4cc2de=function(_0x111aac,_0x2812e4){const _0x57b85d=[_0x111aac];for(const _0x5b6fe8 of _0x2812e4){let _0x1de484=0x0;for(;_0x1de484<_0x57b85d[_0x230c('0xf1')];){const _0x4ab908=_0x57b85d[_0x1de484][_0x230c('0x5a')](_0x5b6fe8);_0x57b85d[_0x230c('0x78')](_0x1de484,0x1,..._0x4ab908),_0x1de484+=_0x4ab908['length'];}}return _0x57b85d;}(_0x5fe785,_0x402d3a);_0x2dc037['length']&&this['_model']['change'](()=>{for(const _0x59faa4 of _0x2dc037){const _0x2d69b0=this[_0x230c('0x38')][_0x230c('0x136')]('formatInline',_0x433cd4,_0x230c('0x5d'));this[_0x230c('0x40')](()=>_0x2d69b0([_0x59faa4],_0x6ebfd4,_0x7373f2));}});for(const _0x4ddc05 of _0x4cc2de){let _0x1990d9=null,_0x4cb51a=_0x4ddc05[_0x230c('0xed')],_0x43970b=_0x4ddc05[_0x230c('0xd')];for(const {suggestion:_0xc427e2,meta:_0x14b365}of this['_findSuggestions'](_0x4ddc05,_0x230c('0x1e'))){if(!_0x14b365[_0x230c('0x105')])continue;if(_0xc427e2['subType']!=_0x433cd4)continue;const _0x253165=_0xc427e2[_0x230c('0x48')]();if(_0x253165['containsRange'](_0x4ddc05,!0x0))return null;_0x4cb51a=_0x4cb51a[_0x230c('0x21')](_0x253165[_0x230c('0xed')])?_0x4cb51a:_0x253165[_0x230c('0xed')],_0x43970b=_0x43970b[_0x230c('0xdb')](_0x253165[_0x230c('0xd')])?_0x43970b:_0x253165[_0x230c('0xd')],_0x1990d9?_0x253165[_0x230c('0xed')][_0x230c('0x21')](_0x1990d9[_0x230c('0x48')]()[_0x230c('0xed')])?(_0x1990d9['removeMarkers'](),_0x1990d9=_0xc427e2):_0xc427e2[_0x230c('0x101')]():_0x1990d9=_0xc427e2;}const _0x1c06a7=this[_0x230c('0xe5')][_0x230c('0x8b')](_0x4cb51a,_0x43970b);if(_0x1990d9)this[_0x230c('0x27')](_0x1990d9,_0x1c06a7);else{const _0x3ad773=_0x4a6f2e(),_0x496ccb=_0x238df3['id'];this[_0x230c('0x9d')]({'id':_0x3ad773,'type':_0x230c('0x16')+_0x433cd4,'data':_0x6ebfd4,'createdAt':new Date(),'authorId':_0x496ccb,'attributes':_0x7373f2}),this['_addSuggestionMarker'](_0x230c('0x16')+_0x433cd4,_0x3ad773,_0x496ccb,_0x1c06a7);}}return null;}[_0x230c('0x33')](_0x29ffdc,_0x364be9,_0x23bb7d=[],_0x20dfce=null,_0x48c1dc={}){_0x364be9[_0x230c('0x2f')]||(_0x364be9[_0x230c('0x2f')]=_0x364be9[_0x230c('0xc5')]),_0x364be9['multipleBlocks']=_0x29ffdc['is'](_0x230c('0x46')),_0x20dfce=_0x20dfce||$t(_0x364be9);const _0x4986ce=_0x23bb7d[_0x230c('0x10c')](_0xb96191=>Rt(_0xb96191,this[_0x230c('0xe5')])),_0x32a3b5=_0x29ffdc['is'](_0x230c('0x46'))?_0x29ffdc:Rt(_0x29ffdc,this[_0x230c('0xe5')]);if(_0x230c('0x14')===this[_0x230c('0x4f')]){const _0x1645f8=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0x84'),_0x20dfce,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x1645f8([_0x32a3b5],_0x364be9,_0x48c1dc)),null;}_0x4986ce[_0x230c('0x3d')](_0x32a3b5);let _0x3acce4=!0x0;for(const _0x421945 of _0x4986ce)if(!this[_0x230c('0x54')](_0x421945)){_0x3acce4=!0x1;break;}if(_0x3acce4&&_0x230c('0x121')!==this[_0x230c('0x4f')]){const _0x1ebd99=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0x84'),_0x20dfce,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x1ebd99([_0x32a3b5],_0x364be9,_0x48c1dc)),null;}let _0xbc9c2d=null,_0x1a48cf=_0x32a3b5[_0x230c('0xed')],_0x4f6886=_0x32a3b5['end'];for(const {suggestion:_0x1fe9af,meta:_0x5db2e2}of this[_0x230c('0x26')](_0x32a3b5,_0x230c('0x84'))){if(!_0x5db2e2[_0x230c('0x105')]||_0x5db2e2[_0x230c('0xfc')]||_0x5db2e2[_0x230c('0xd3')]||_0x5db2e2[_0x230c('0xc3')])continue;if(_0x1fe9af[_0x230c('0xa8')][_0x230c('0x2f')]!=_0x364be9[_0x230c('0x2f')])continue;const _0x1ab0e0=_0x1fe9af['getFirstRange']();if(_0x1fe9af[_0x230c('0x0')]==_0x20dfce){if(_0x1ab0e0[_0x230c('0x23')](_0x32a3b5,!0x0))return null;_0x1a48cf=_0x1a48cf['isBefore'](_0x1ab0e0[_0x230c('0xed')])?_0x1a48cf:_0x1ab0e0[_0x230c('0xed')],_0x4f6886=_0x4f6886[_0x230c('0xdb')](_0x1ab0e0[_0x230c('0xd')])?_0x4f6886:_0x1ab0e0[_0x230c('0xd')],_0xbc9c2d?_0x1ab0e0[_0x230c('0xed')]['isBefore'](_0xbc9c2d[_0x230c('0x48')]()['start'])?(_0xbc9c2d[_0x230c('0x101')](),_0xbc9c2d=_0x1fe9af):_0x1fe9af[_0x230c('0x101')]():_0xbc9c2d=_0x1fe9af;}else{const _0x133f5e=_0x32a3b5[_0x230c('0x98')](_0x1ab0e0);this['_cutOutSuggestionMarker'](_0x1fe9af,_0x133f5e);}}const _0x5f205b=this[_0x230c('0xd5')][_0x230c('0xa7')]['get']('Users')['me'],_0x2361d3=_0x4a6f2e(),_0x472d1f=_0x5f205b['id'];if(_0xbc9c2d)return this['_setSuggestionRange'](_0xbc9c2d,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x1a48cf,_0x4f6886)),_0xbc9c2d;{const _0x5d1300=this[_0x230c('0x9d')]({'id':_0x2361d3,'type':'formatBlock:'+_0x20dfce,'data':_0x364be9,'createdAt':new Date(),'authorId':_0x472d1f,'attributes':_0x48c1dc});return this[_0x230c('0x128')](_0x230c('0x50')+_0x20dfce,_0x2361d3,_0x472d1f,this['_model'][_0x230c('0x8b')](_0x1a48cf,_0x4f6886)),_0x5d1300;}}[_0x230c('0x11d')](_0x1abdea,_0x4f9f7c,_0x4bc17f=[],_0x500230=null,_0x26e428={}){_0x4f9f7c[_0x230c('0x2f')]||(_0x4f9f7c[_0x230c('0x2f')]=_0x4f9f7c[_0x230c('0xc5')]);const _0x4aec0e=_0x1abdea[0x0];_0x4f9f7c[_0x230c('0x11f')]=_0x4aec0e['is'](_0x230c('0x46')),_0x500230=_0x500230||$t(_0x4f9f7c);const _0x5809d2=_0x4bc17f['map'](_0x407195=>Rt(_0x407195,this['_model'])),_0x4f09eb=_0x4aec0e['is'](_0x230c('0x46'))?_0x1abdea:_0x1abdea[_0x230c('0x10c')](_0x18c4cb=>Rt(_0x18c4cb,this[_0x230c('0xe5')]));if(_0x230c('0x14')===this[_0x230c('0x4f')]){const _0x1ea49d=this[_0x230c('0x38')][_0x230c('0x136')]('formatBlock',_0x500230,_0x230c('0x5d'));return this['forceDefaultExecution'](()=>_0x1ea49d(_0x4f09eb,_0x4f9f7c,_0x26e428)),null;}_0x5809d2[_0x230c('0x3d')](..._0x4f09eb);let _0x57315d=!0x0;for(const _0x29ec6c of _0x5809d2)if(!this['_rangeIsInLocalUserInsertion'](_0x29ec6c)){_0x57315d=!0x1;break;}if(_0x57315d&&_0x230c('0x121')!==this[_0x230c('0x4f')]){const _0x19d165=this[_0x230c('0x38')]['getSuggestionCallback'](_0x230c('0x84'),_0x500230,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x19d165(_0x4f09eb,_0x4f9f7c,_0x26e428)),null;}const _0x9cbb8f=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'];for(const _0x520684 of this[_0x230c('0x5f')]()){if(_0x520684['author']['id']!=_0x9cbb8f['id'])continue;if(_0x230c('0x84')!=_0x520684['type']||_0x520684['data']['formatGroupId']!=_0x4f9f7c[_0x230c('0x2f')])continue;const _0x37ccff=_0x520684[_0x230c('0x0')]==_0x500230;for(let _0x139255=0x0;_0x139255<_0x4f09eb[_0x230c('0xf1')];_0x139255++){const _0x3015ee=_0x4f09eb[_0x139255];for(const _0x4084ab of _0x520684['getMarkers']()){const _0x161a3e=_0x4084ab['getRange']();if(_0x3015ee[_0x230c('0x37')](_0x161a3e)){_0x37ccff?(_0x4f09eb[_0x230c('0x78')](_0x139255,0x1),_0x139255--):_0x520684[_0x230c('0x4e')](_0x4084ab[_0x230c('0xc1')]);break;}}}}if(0x0==_0x4f09eb[_0x230c('0xf1')])return null;const _0x14cb1b=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0x84'),_0x500230,_0x230c('0xeb'));for(const _0x145cd9 of this[_0x230c('0x5f')]())if(_0x145cd9[_0x230c('0x7e')]['id']==_0x9cbb8f['id']&&'formatBlock'==_0x145cd9[_0x230c('0x1a')]&&_0x145cd9[_0x230c('0xa8')]['formatGroupId']==_0x4f9f7c[_0x230c('0x2f')]&&_0x145cd9['subType']==_0x500230&&(_0x14cb1b(_0x145cd9[_0x230c('0x4a')](),_0x4f09eb)||_0x14cb1b(_0x4f09eb,_0x145cd9[_0x230c('0x4a')]()))){for(const _0x582966 of _0x4f09eb)_0x145cd9[_0x230c('0x43')](_0x582966);return _0x145cd9;}const _0x198a89=_0x4a6f2e(),_0x38255a=_0x9cbb8f['id'],_0x5a8e03=_0x230c('0x50')+_0x500230,_0x3bff00=this[_0x230c('0x9d')]({'id':_0x198a89,'type':_0x5a8e03,'data':_0x4f9f7c,'createdAt':new Date(),'authorId':_0x38255a,'attributes':_0x26e428});for(const _0x2aa6bc of _0x4f09eb)this['_addSuggestionMarker'](_0x5a8e03,_0x198a89,_0x38255a,_0x2aa6bc,_0x359907['getMultiRangeId']());return _0x3bff00;}['markDeletion'](_0x30640c,_0x4e801d=null,_0x236849={}){if(_0x30640c['isCollapsed'])return null;const _0x398f1f=this['editor'][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'],_0x30d619=new _0x526bfe(_0x30640c['start'],_0x30640c[_0x230c('0xd')]);for(const {suggestion:_0x194a77,meta:_0x31294a}of this[_0x230c('0x26')](_0x30d619,_0x230c('0x11e')))if(_0x31294a[_0x230c('0x105')]&&!_0x31294a['isNextTo']){if(_0x194a77[_0x230c('0x42')]){const _0x3e5be6=_0x194a77['getRanges']()[_0x230c('0x3c')](_0x3771ed=>'$graveyard'!=_0x3771ed[_0x230c('0x7b')][_0x230c('0xc4')]);_0x3e5be6['every'](_0x16a386=>_0x30d619[_0x230c('0x23')](_0x16a386,!0x0))&&_0x194a77[_0x230c('0x39')]();if(_0x3e5be6['some'](_0xc520f5=>_0xc520f5[_0x230c('0x23')](_0x30d619,!0x0))){const _0x2e9501=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0xdf'),_0x4e801d,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x2e9501([_0x30d619],null,_0x236849)),null;}}else{const _0x2c1047=_0x30d619[_0x230c('0x98')](_0x194a77[_0x230c('0x48')]());null!==_0x2c1047&&_0x194a77[_0x230c('0x5')]([_0x2c1047],null,_0x236849);}}if(_0x30d619['detach'](),_0x30d619[_0x230c('0x3b')]||_0x230c('0xe1')==_0x30d619[_0x230c('0x7b')]['rootName'])return null;let _0xb5c2f7=null,_0x2b80b4=_0x30d619[_0x230c('0xed')],_0x3c80f2=_0x30d619[_0x230c('0xd')];for(const {suggestion:_0x4a0236,meta:_0x2cd3d4}of this[_0x230c('0x26')](_0x30d619,'deletion'))if(_0x2cd3d4[_0x230c('0x105')]){if(_0x4a0236['isMultiRange']&&this[_0x230c('0xcc')]){let _0x1df326=!0x0;for(const _0x563f85 of _0x4a0236[_0x230c('0x4a')]()){if(_0x563f85[_0x230c('0x23')](_0x30d619,!0x0))return _0x4a0236;_0x30d619[_0x230c('0x23')](_0x563f85)||(_0x1df326=!0x1);}_0x1df326&&_0x4a0236['discard']();}else{const _0x13fadf=_0x4a0236['getFirstRange']();if(_0x13fadf[_0x230c('0x23')](_0x30d619,!0x0)){if(!this[_0x230c('0xcc')]&&_0x2cd3d4[_0x230c('0xd3')])continue;return _0x4a0236;}_0x2b80b4=_0x2b80b4[_0x230c('0x21')](_0x13fadf[_0x230c('0xed')])?_0x2b80b4:_0x13fadf[_0x230c('0xed')],_0x3c80f2=_0x3c80f2[_0x230c('0xdb')](_0x13fadf[_0x230c('0xd')])?_0x3c80f2:_0x13fadf[_0x230c('0xd')],_0xb5c2f7?_0x13fadf[_0x230c('0xed')][_0x230c('0x21')](_0xb5c2f7['getFirstRange']()[_0x230c('0xed')])?(_0xb5c2f7['removeMarkers'](),_0xb5c2f7=_0x4a0236):_0x4a0236['removeMarkers']():_0xb5c2f7=_0x4a0236;}}if(_0xb5c2f7)return this[_0x230c('0x27')](_0xb5c2f7,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x2b80b4,_0x3c80f2)),_0xb5c2f7;{const _0x1895bc=_0x4a6f2e(),_0x153772=this[_0x230c('0xe5')][_0x230c('0x8b')](_0x2b80b4,_0x3c80f2),_0xd0d5ad=_0x398f1f['id'],_0x1717db=_0x4e801d?_0x230c('0x112')+_0x4e801d:_0x230c('0xdf'),_0x287b22=this[_0x230c('0x9d')]({'id':_0x1895bc,'type':_0x1717db,'createdAt':new Date(),'authorId':_0xd0d5ad,'attributes':_0x236849});return this['_addSuggestionMarker'](_0x1717db,_0x1895bc,_0xd0d5ad,_0x153772),_0x287b22;}}[_0x230c('0xb6')](_0x2d8990,_0x47d4db='multi',_0x2cefe3={}){const _0x12a63b=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'],_0x3965a9=_0x2d8990[_0x230c('0x10c')](_0x53dde0=>new _0x526bfe(_0x53dde0[_0x230c('0xed')],_0x53dde0[_0x230c('0xd')])),_0x4a8342=new Set();for(const _0x24b8ac of _0x3965a9)for(const {suggestion:_0x49348b,meta:_0x3029b3}of this[_0x230c('0x26')](_0x24b8ac,_0x230c('0x11e')))_0x3029b3[_0x230c('0x105')]&&!_0x3029b3[_0x230c('0xfc')]&&_0x4a8342[_0x230c('0x56')](_0x49348b);for(const _0x3b1825 of _0x4a8342)if(_0x3b1825['isMultiRange']){const _0x51567a=_0x3b1825[_0x230c('0x4a')]();(!_0x3b1825[_0x230c('0xf4')]||!_0x3b1825[_0x230c('0xf4')]['skipNestingCheck'])&&(_0x51567a['every'](_0xeb6b80=>_0x3965a9[_0x230c('0xaa')](_0x3d9dfa=>_0x3d9dfa['containsRange'](_0xeb6b80,!0x0)))&&_0x3b1825['discard']());if(_0x3965a9[_0x230c('0x57')](_0x7c4ca2=>_0x51567a[_0x230c('0xaa')](_0x22fc51=>_0x22fc51['containsRange'](_0x7c4ca2,!0x0)))){const _0x3011b8=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0xdf'),_0x47d4db,_0x230c('0x5d'));return this[_0x230c('0x40')](()=>_0x3011b8(_0x2d8990,null,_0x2cefe3)),null;}}else{const _0x2afe93=_0x3b1825[_0x230c('0x48')]();_0x3965a9['some'](_0x1398a3=>_0x1398a3[_0x230c('0x23')](_0x2afe93,!0x0))&&_0x3b1825[_0x230c('0x39')]();if(_0x3965a9[_0x230c('0x57')](_0x1d1c6e=>_0x2afe93[_0x230c('0x23')](_0x1d1c6e,!0x0))){const _0xf6d050=this[_0x230c('0x38')][_0x230c('0x136')](_0x230c('0xdf'),_0x47d4db,'accept');return this[_0x230c('0x40')](()=>_0xf6d050(_0x3965a9,null,_0x2cefe3)),null;}}const _0x33b701=this[_0x230c('0x38')]['getSuggestionCallback'](_0x230c('0xdf'),_0x47d4db,_0x230c('0xeb'));let _0x4bfdfb=null;for(const _0x24626c of this[_0x230c('0x5f')]())if(_0x24626c[_0x230c('0x7e')]['id']==_0x12a63b['id']&&_0x24626c[_0x230c('0x95')]&&_0x230c('0xdf')==_0x24626c['type']&&_0x24626c[_0x230c('0x0')]==_0x47d4db&&(_0x33b701(_0x24626c['getRanges'](),_0x3965a9)||_0x33b701(_0x3965a9,_0x24626c[_0x230c('0x4a')]()))){if(_0x4bfdfb){if(_0x24626c[_0x230c('0x58')]&&_0x24626c[_0x230c('0x58')][_0x230c('0xf1')])continue;for(const _0x35a3f9 of _0x24626c[_0x230c('0x4a')]())_0x4bfdfb[_0x230c('0x7a')](_0x35a3f9)||_0x4bfdfb[_0x230c('0x43')](_0x35a3f9);_0x24626c[_0x230c('0x101')]();}else{_0x4bfdfb=_0x24626c;for(const _0x420e4a of _0x3965a9)_0x24626c[_0x230c('0x7a')](_0x420e4a)||_0x24626c[_0x230c('0x43')](_0x420e4a);}}if(_0x4bfdfb)return _0x4bfdfb;_0x4a8342['clear']();for(const _0x4f6d1a of _0x3965a9)for(const {suggestion:_0x4119b7,meta:_0x433b69}of this[_0x230c('0x26')](_0x4f6d1a,'deletion'))_0x433b69[_0x230c('0x105')]&&_0x4a8342['add'](_0x4119b7);for(const _0x5df14c of _0x4a8342){const _0x3bc648=_0x5df14c[_0x230c('0x4a')]();if(!_0x2cefe3||!_0x2cefe3[_0x230c('0x7')]){if(_0x3965a9[_0x230c('0x57')](_0x3be3c3=>_0x3bc648[_0x230c('0xaa')](_0x12e8bf=>_0x12e8bf[_0x230c('0x23')](_0x3be3c3,!0x0))))return _0x5df14c;}(!_0x5df14c[_0x230c('0xf4')]||!_0x5df14c[_0x230c('0xf4')]['skipNestingCheck'])&&(_0x3bc648[_0x230c('0x57')](_0xcfe8f4=>_0x3965a9[_0x230c('0xaa')](_0x2dba47=>_0x2dba47['containsRange'](_0xcfe8f4,!0x0)))&&_0x5df14c[_0x230c('0x39')]());}const _0x1a8895=_0x4a6f2e(),_0x23be1d=_0x12a63b['id'],_0x43d93a='deletion:'+_0x47d4db,_0x1b3e3a=this['_setSuggestionData']({'id':_0x1a8895,'type':_0x43d93a,'createdAt':new Date(),'authorId':_0x23be1d,'attributes':_0x2cefe3});for(const _0x514a51 of _0x3965a9)_0x514a51['detach'](),_0x514a51[_0x230c('0x3b')]||_0x230c('0xe1')==_0x514a51['root'][_0x230c('0xc4')]||this[_0x230c('0x128')](_0x43d93a,_0x1a8895,_0x23be1d,_0x514a51,_0x359907[_0x230c('0x88')]());return _0x1b3e3a;}[_0x230c('0x27')](_0x18a743,_0x2c21e3){const _0x4163f3=_0x18a743[_0x230c('0x87')]();this[_0x230c('0xe5')][_0x230c('0x10b')](_0x2c4e03=>{_0x2c4e03[_0x230c('0x69')](_0x4163f3,{'range':_0x2c21e3});});}[_0x230c('0x35')](_0x313844){const _0x28c12d=_0x313844['id'],_0x1e4123=this[_0x230c('0xd5')][_0x230c('0x62')][_0x230c('0xac')](_0x230c('0x3a'));this[_0x230c('0xef')]['hasCommentThread'](_0x28c12d)||this[_0x230c('0xef')][_0x230c('0xc9')]({'channelId':_0x1e4123,'threadId':_0x28c12d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x233191=this[_0x230c('0xef')][_0x230c('0xf3')](_0x28c12d);_0x233191['unbind'](_0x230c('0x96')),_0x233191[_0x230c('0x96')]=!0x1,_0x313844[_0x230c('0x58')]=_0x233191;}['_checkSuggestionCorrectness'](_0x4191cf,_0x2733ea,_0x1a202f,_0x5eaaeb){if(_0x4191cf[_0x230c('0x1a')]!=_0x2733ea||_0x4191cf[_0x230c('0x0')]!=_0x1a202f||_0x4191cf['creator']['id']!=_0x5eaaeb)throw this[_0x230c('0xd5')][_0x230c('0xe7')](_0x230c('0x100')),new _0x40e29f(_0x230c('0x100'),this);}[_0x230c('0xa2')](_0x108e82,_0x32a853){const _0x48cce8=_0x108e82['getFirstRange']();if(_0x32a853[_0x230c('0x37')](_0x48cce8))_0x108e82[_0x230c('0x101')]();else{if(_0x48cce8[_0x230c('0x23')](_0x32a853)){const _0x219ac6=this[_0x230c('0xe5')][_0x230c('0x3f')](_0x32a853[_0x230c('0xed')][_0x230c('0xad')],_0x230c('0xd'));this[_0x230c('0x27')](_0x108e82,this['_model']['createRange'](_0x48cce8['start'],_0x219ac6));const _0x3b8b76=_0x4a6f2e(),_0x5440dd=_0x108e82[_0x230c('0x80')]['id'],_0x1835fb=_0x108e82['type']+':'+_0x108e82[_0x230c('0x0')];this[_0x230c('0x9d')]({'id':_0x3b8b76,'type':_0x1835fb,'createdAt':new Date(),'authorId':_0x5440dd,'data':_0x108e82[_0x230c('0xa8')],'attributes':_0x108e82[_0x230c('0xf4')]});const _0xc7e6e1=this[_0x230c('0xe5')][_0x230c('0x3f')](_0x32a853[_0x230c('0xd')][_0x230c('0xa9')],_0x230c('0x12')),_0x4c1397=this['_model'][_0x230c('0x8b')](_0xc7e6e1,_0x48cce8[_0x230c('0xd')]);this['_addSuggestionMarker'](_0x1835fb,_0x3b8b76,_0x5440dd,_0x4c1397);}else{if(_0x48cce8[_0x230c('0x2e')](_0x32a853[_0x230c('0xed')])){const _0x438980=this[_0x230c('0xe5')][_0x230c('0x3f')](_0x32a853[_0x230c('0xed')]['nodeBefore'],'end');this[_0x230c('0x27')](_0x108e82,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x48cce8[_0x230c('0xed')],_0x438980));}else{const _0x1f2789=this[_0x230c('0xe5')]['createPositionAt'](_0x32a853[_0x230c('0xd')]['parent'],_0x230c('0x12'));this[_0x230c('0x27')](_0x108e82,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x1f2789,_0x48cce8[_0x230c('0xd')]));}}}}['_rangeIsInLocalUserInsertion'](_0x200e70){for(const {suggestion:_0x56cff7,meta:_0xbd5d5e}of this['_findSuggestions'](_0x200e70,_0x230c('0x11e'))){if(!_0xbd5d5e['isOwn'])continue;const _0x39f086=_0x56cff7[_0x230c('0x4a')]();for(const _0x4d6256 of _0x39f086)if(!_0x200e70['getDifference'](_0x4d6256)[_0x230c('0xf1')])return!0x0;}return!0x1;}[_0x230c('0x107')](_0x6452e9){const _0x3acc60=this[_0x230c('0xd5')][_0x230c('0xa7')]['get'](_0x230c('0xa3'))[_0x230c('0x103')](_0x6452e9);if(!_0x3acc60)throw new _0x40e29f(_0x230c('0x3e'),this);return _0x3acc60;}[_0x230c('0xc8')](_0x5156e6){const _0x2ae113=this[_0x230c('0xd5')]['plugins'][_0x230c('0xac')](_0x230c('0xa3')),_0x4f6d2e=_0x86ca02(_0x230c('0xf6')+_0x5156e6),_0x353a57=_0x2ae113[_0x230c('0x103')](_0x4f6d2e);return _0x353a57||_0x2ae113[_0x230c('0x123')]({'id':_0x4f6d2e,'name':_0x5156e6});}[_0x230c('0x131')](_0x41ef0,_0x1908b9,_0x21a66e,_0x1460d5,_0x5867c2){const _0x6532e7=this['_getAuthorFromId'](_0x1460d5),_0x40d2bd=this[_0x230c('0x38')][_0x230c('0xf5')](_0x41ef0,_0x1908b9,_0x21a66e,_0x6532e7,_0x5867c2,_0x44f959=>this['_updateSuggestionData'](_0x21a66e,{'attributes':_0x44f959}));return this[_0x230c('0x134')](_0x40d2bd,'accept',()=>{this[_0x230c('0x74')](_0x21a66e,{'state':_0x230c('0x9c')});},{'priority':_0x230c('0xff')}),this[_0x230c('0x134')](_0x40d2bd,_0x230c('0x39'),()=>{this[_0x230c('0x74')](_0x21a66e,{'state':_0x230c('0xf0')});},{'priority':_0x230c('0xff')}),this[_0x230c('0x52')]['set'](_0x21a66e,_0x40d2bd),this[_0x230c('0x6')]['set'](_0x40d2bd,'notReady'),_0x40d2bd;}[_0x230c('0x127')](_0x1f1686){const _0x47d19f=_0x1f1686['split'](':');return{'group':_0x47d19f[0x0],'type':_0x47d19f[0x1],'subType':_0x47d19f[_0x230c('0xf1')]>=0x5?_0x47d19f[0x2]:null,'id':_0x47d19f[_0x230c('0xf1')]<0x5?_0x47d19f[0x2]:_0x47d19f[0x3],'authorId':_0x47d19f[_0x230c('0xf1')]<0x5?_0x47d19f[0x3]:_0x47d19f[0x4],'markerCount':0x6==_0x47d19f[_0x230c('0xf1')]?_0x47d19f[0x5]:null};}['_breakSuggestionMarker'](_0x463b4b,_0xc77628,_0xfd44f2){const _0x260bf6=_0x463b4b['getFirstRange'](),_0x2cdaf8=_0x260bf6[_0x230c('0xed')],_0x53b09d=_0x260bf6['end'];this['_setSuggestionRange'](_0x463b4b,this['_model'][_0x230c('0x8b')](_0x2cdaf8,_0xc77628));const _0xda7e54=_0x4a6f2e(),_0x5d18ba=_0x463b4b[_0x230c('0x80')]['id'],_0x5caf13=_0x463b4b[_0x230c('0x1a')]+(_0x463b4b['subType']?':'+_0x463b4b[_0x230c('0x0')]:'');this['_setSuggestionData']({'id':_0xda7e54,'type':_0x5caf13,'createdAt':new Date(),'authorId':_0x5d18ba,'originalSuggestionId':_0x463b4b['id'],'attributes':_0x463b4b[_0x230c('0xf4')],'data':_0x463b4b[_0x230c('0xa8')]}),_0x230c('0x84')==_0x463b4b[_0x230c('0x1a')]&&(_0xfd44f2=this[_0x230c('0xe5')][_0x230c('0x126')](_0xfd44f2[_0x230c('0xa9')])),this[_0x230c('0x128')](_0x5caf13,_0xda7e54,_0x5d18ba,this['_model']['createRange'](_0xfd44f2,_0x53b09d));}[_0x230c('0x26')](_0x3703ed,_0x333653=null){const _0x11897d=[],_0x2771b7=this[_0x230c('0xe5')]['schema'],_0x25f212=this[_0x230c('0xd5')][_0x230c('0xa7')][_0x230c('0xac')](_0x230c('0xa3'))['me'];for(const _0x57ed4a of this[_0x230c('0x5f')]())if(_0x57ed4a[_0x230c('0x95')]&&(!_0x333653||_0x57ed4a['type']==_0x333653))for(const _0x2c11a3 of _0x57ed4a[_0x230c('0x4a')]()){const _0x254a62=_0x3703ed[_0x230c('0xed')][_0x230c('0x37')](_0x2c11a3[_0x230c('0xd')])||_0x3703ed[_0x230c('0xd')][_0x230c('0x37')](_0x2c11a3[_0x230c('0xed')]);if(_0x254a62||_0x3703ed[_0x230c('0x98')](_0x2c11a3)){const _0x366d31=_0x3703ed[_0x230c('0x23')](_0x2c11a3)&&Bt(_0x2771b7,_0x2c11a3['start'],_0x3703ed),_0x27e754=_0x2c11a3['containsRange'](_0x3703ed)&&Bt(_0x2771b7,_0x3703ed[_0x230c('0xed')],_0x2c11a3);_0x11897d[_0x230c('0x3d')]({'suggestion':_0x57ed4a,'meta':{'isOwn':_0x25f212==_0x57ed4a[_0x230c('0x7e')],'isNextTo':_0x254a62,'isInsideObject':_0x366d31,'containsRangeInObject':_0x27e754}});break;}}return _0x11897d;}[_0x230c('0x128')](_0x17bc60,_0x6e40e8,_0x593d98,_0x51ebd5,_0xbec0f7){this[_0x230c('0xe5')]['change'](_0x2bdf0d=>{let _0x404fc3='suggestion:'+_0x17bc60+':'+_0x6e40e8+':'+_0x593d98;_0xbec0f7&&(_0x404fc3=_0x404fc3+':'+_0xbec0f7),_0x2bdf0d['addMarker'](_0x404fc3,{'range':_0x51ebd5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x400057){const _0x56921b=_0x400057[_0x230c('0x5c')],_0x1ff439=_0x400057[_0x230c('0x9a')];_0x400057[_0x230c('0x5c')]=null,null!=_0x56921b&&(_0x56921b[_0x230c('0x9a')]=null),_0x400057[_0x230c('0x9a')]=null,null!=_0x1ff439&&(_0x1ff439[_0x230c('0x5c')]=null),_0x230c('0xc0')==this[_0x230c('0x6')][_0x230c('0xac')](_0x400057)&&(this['_suggestionState'][_0x230c('0xfa')](_0x400057,_0x230c('0xe8')),this['fire'](_0x230c('0x53'),_0x400057,_0x56921b,_0x1ff439));}[_0x230c('0x9d')](_0x578dc4){const _0x3f64aa=_0x578dc4['id'],_0x5a95a8=this[_0x230c('0x7d')](_0x578dc4);if(this[_0x230c('0x47')]&&this[_0x230c('0x47')]['addSuggestion']){const _0x31349d=this[_0x230c('0xd5')][_0x230c('0xa7')]['get'](_0x230c('0x6e')),_0x4eabd5=_0x5a95a8['hasComments'],_0x2bf682=_0x5a95a8[_0x230c('0x0')]?_0x5a95a8[_0x230c('0x1a')]+':'+_0x5a95a8[_0x230c('0x0')]:_0x5a95a8[_0x230c('0x1a')],_0x26e8e2=this[_0x230c('0xd5')][_0x230c('0x82')],_0xa9e1c6=_0x31349d[_0x230c('0x56')](_0x15ad70(_0x26e8e2,'PENDING_ACTION_SUGGESTION')),_0x2c4e72={'id':_0x3f64aa,'type':_0x2bf682,'hasComments':_0x4eabd5,'data':_0x578dc4[_0x230c('0xa8')]||null,'originalSuggestionId':_0x578dc4[_0x230c('0x59')]||null,'attributes':_0x5a95a8['attributes']};this[_0x230c('0x47')][_0x230c('0xe4')](_0x2c4e72)['then'](_0x80ee12=>{_0x5a95a8[_0x230c('0xb8')]=!0x0,_0x31349d['remove'](_0xa9e1c6),_0x80ee12&&_0x80ee12[_0x230c('0x2d')]&&(this[_0x230c('0x52')]['get'](_0x3f64aa)[_0x230c('0x2d')]=_0x80ee12[_0x230c('0x2d')]);})[_0x230c('0x3')](_0x5d13c6=>{throw _0x3ba762('error-saving-suggestion-data-suggestion-discarded'),this[_0x230c('0xd5')][_0x230c('0x115')][_0x230c('0xbc')]({'isUndoable':!0x1},()=>{_0x5a95a8['discard']();}),_0x5a95a8[_0x230c('0x15')](),this['_suggestions'][_0x230c('0x130')](_0x5a95a8['id']),this[_0x230c('0x6')][_0x230c('0x130')](_0x5a95a8),_0x5d13c6;});}return _0x5a95a8;}[_0x230c('0x74')](_0x1a6765,_0x4a7416){const _0x4b4c31=this[_0x230c('0xd5')]['plugins'][_0x230c('0xac')](_0x230c('0x6e')),_0x2cde69=this[_0x230c('0xd9')](_0x1a6765);if(this[_0x230c('0x47')]&&this[_0x230c('0x47')][_0x230c('0x2c')]){if(_0x2cde69[_0x230c('0xb8')]){const _0x18422a=_0x4b4c31['add'](_0x15ad70(this[_0x230c('0xd5')][_0x230c('0x82')],'PENDING_ACTION_SUGGESTION'));this[_0x230c('0x47')]['updateSuggestion'](_0x1a6765,_0x4a7416)['then'](()=>{_0x4b4c31[_0x230c('0x10a')](_0x18422a);});}else _0x2cde69['on'](_0x230c('0x8d'),()=>{this[_0x230c('0x74')](_0x1a6765,_0x4a7416);});}}[_0x230c('0x68')](_0x2bc018){if(!this[_0x230c('0x47')]||!this[_0x230c('0x47')][_0x230c('0xd9')])throw new _0x40e29f(_0x230c('0x7c'),this);return this['_adapter'][_0x230c('0xd9')](_0x2bc018);}[_0x230c('0xe3')](_0x565774){const {id:_0xe47eef,type:_0x42b2ed,subType:_0x167b9e,authorId:_0x2a4d45}=this[_0x230c('0x127')](_0x565774),_0x27e349=this['_suggestions']['get'](_0xe47eef)||this[_0x230c('0x131')](_0x42b2ed,_0x167b9e,_0xe47eef,_0x2a4d45,{});switch(this[_0x230c('0x12a')](_0x27e349,_0x42b2ed,_0x167b9e,_0x2a4d45),this[_0x230c('0x6')][_0x230c('0xac')](_0x27e349)){case _0x230c('0x31'):this[_0x230c('0x68')](_0xe47eef)['then'](_0x1e678f=>{let _0x2522ee=Promise['resolve']();_0x1e678f[_0x230c('0x118')]&&(_0x2522ee=this[_0x230c('0xef')]['fetchCommentThread']({'channelId':this[_0x230c('0xd5')][_0x230c('0x62')][_0x230c('0xac')](_0x230c('0x3a')),'threadId':_0xe47eef})),_0x2522ee['then'](()=>{this[_0x230c('0x7d')](_0x1e678f)[_0x230c('0xb8')]=!0x0;});}),this[_0x230c('0x6')]['set'](_0x27e349,_0x230c('0x6b'));break;case _0x230c('0xe8'):this[_0x230c('0x74')](_0xe47eef,{'state':'open'});case _0x230c('0xbb'):this[_0x230c('0x6')][_0x230c('0xfa')](_0x27e349,_0x230c('0xc0')),this[_0x230c('0xbf')](_0x230c('0x9e'),_0x27e349);break;case _0x230c('0xc0'):this[_0x230c('0xbf')]('suggestionChanged',_0x27e349);}return _0x27e349[_0x230c('0x114')](_0x565774),_0x27e349;}[_0x230c('0x119')](_0x1c6675){const _0x2922c4=Array[_0x230c('0x64')](_0x1c6675)['filter'](_0x59a78c=>!_0x59a78c[_0x230c('0x42')]),_0x5ad7ae=this[_0x230c('0x5f')]({'skipNotAttached':!0x0})[_0x230c('0x3c')](_0x2e8558=>!_0x2e8558[_0x230c('0x42')]),_0x28d317=_0x5ad7ae[_0x230c('0x3c')](_0x21bd2b=>!_0x1c6675['has'](_0x21bd2b)),_0x545dc7=new Map(_0x5ad7ae[_0x230c('0x10c')](_0xea60c2=>[_0xea60c2,this[_0x230c('0x38')][_0x230c('0x136')](_0xea60c2[_0x230c('0x1a')],_0xea60c2['subType'],_0x230c('0x8a'))])),_0x247e6e=new Map(_0x5ad7ae[_0x230c('0x10c')](_0x2d677c=>[_0x2d677c,_0x2d677c[_0x230c('0x48')]()])),_0x759bf4=new Set(),_0x49aa88=new Set();for(let _0x467a49=0x0;_0x467a49<_0x2922c4['length'];_0x467a49++)_0x591cc6(_0x2922c4[_0x467a49],_0x2922c4,_0x467a49+0x1);for(let _0x12217d=0x0;_0x12217d<_0x2922c4['length'];_0x12217d++)_0x591cc6(_0x2922c4[_0x12217d],_0x28d317,0x0);for(let _0x3af887=0x0;_0x3af887<_0x2922c4[_0x230c('0xf1')];_0x3af887++){const _0x905deb=_0x2922c4[_0x3af887];!_0x49aa88['has'](_0x905deb)&&_0x905deb[_0x230c('0x5c')]&&(_0x905deb['previous'][_0x230c('0x9a')]===_0x905deb&&(_0x905deb[_0x230c('0x5c')]['next']=null),_0x905deb[_0x230c('0x5c')]=null),!_0x759bf4['has'](_0x905deb)&&_0x905deb[_0x230c('0x9a')]&&(_0x905deb[_0x230c('0x9a')][_0x230c('0x5c')]===_0x905deb&&(_0x905deb[_0x230c('0x9a')]['previous']=null),_0x905deb[_0x230c('0x9a')]=null);}function _0x591cc6(_0x898657,_0x4e4663,_0x48112b){for(let _0x2e8c37=_0x48112b;_0x2e8c37<_0x4e4663[_0x230c('0xf1')];_0x2e8c37++){const _0x5371e7=_0x1f5dac(_0x898657,_0x4e4663[_0x2e8c37]);_0x5371e7&&(_0x5371e7[0x0]['next']=_0x5371e7[0x1],_0x5371e7[0x1][_0x230c('0x5c')]=_0x5371e7[0x0],_0x759bf4[_0x230c('0x56')](_0x5371e7[0x0]),_0x49aa88[_0x230c('0x56')](_0x5371e7[0x1]));}}function _0x1f5dac(_0x234c7d,_0x599ff5){if(_0x234c7d['author']['id']!==_0x599ff5[_0x230c('0x7e')]['id'])return null;const _0xaf793c=_0x545dc7[_0x230c('0xac')](_0x234c7d)(_0x234c7d,_0x599ff5,_0x247e6e[_0x230c('0xac')](_0x234c7d),_0x247e6e[_0x230c('0xac')](_0x599ff5));if(!_0xaf793c)return null;return _0x545dc7[_0x230c('0xac')](_0x599ff5)(_0x234c7d,_0x599ff5,_0x247e6e['get'](_0x234c7d),_0x247e6e['get'](_0x599ff5))?_0xaf793c[0x1]['commentThread']&&_0xaf793c[0x1]['commentThread']['length']?null:_0xaf793c:null;}}[_0x230c('0x12f')](_0x2686dd){const _0x300e88=Array[_0x230c('0x64')](_0x2686dd),_0x10b28b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5f3da7=_0x10b28b[_0x230c('0x3c')](_0x6ce6c5=>!_0x2686dd[_0x230c('0x124')](_0x6ce6c5)),_0x20675a=new Map(_0x300e88[_0x230c('0x10c')](_0x16395c=>[_0x16395c,this['_suggestionFactory'][_0x230c('0x136')](_0x16395c['type'],_0x16395c['subType'],_0x230c('0xeb'))])),_0x308cb5=new Map(_0x10b28b[_0x230c('0x10c')](_0x564a9c=>[_0x564a9c,_0x564a9c[_0x230c('0x4a')]()]));for(let _0x1d8785=0x0;_0x1d8785<_0x300e88[_0x230c('0xf1')];_0x1d8785++){if(_0x48611d(this,_0x300e88[_0x1d8785],_0x300e88,_0x1d8785+0x1))return!0x0;}for(let _0x4dfadf=0x0;_0x4dfadf<_0x300e88['length'];_0x4dfadf++){if(_0x48611d(this,_0x300e88[_0x4dfadf],_0x5f3da7,0x0))return!0x0;}return!0x1;function _0x48611d(_0x71e9bf,_0x48628f,_0x413700,_0x18d9d9){for(let _0x104d31=_0x18d9d9;_0x104d31<_0x413700[_0x230c('0xf1')];_0x104d31++){const _0x3d6ade=_0x413700[_0x104d31];if(_0x3d6ade[_0x230c('0x1a')]!==_0x48628f[_0x230c('0x1a')]||_0x3d6ade['author']['id']!==_0x48628f[_0x230c('0x7e')]['id']||_0x3d6ade[_0x230c('0x0')]!==_0x48628f[_0x230c('0x0')])continue;const _0x9a8874=_0x20675a[_0x230c('0xac')](_0x48628f),_0x2f1c0d=_0x308cb5[_0x230c('0xac')](_0x48628f),_0x43719d=_0x308cb5[_0x230c('0xac')](_0x3d6ade),_0x45b41b=_0x48628f[_0x230c('0x58')]&&_0x48628f[_0x230c('0x58')]['length'],_0x3f0be3=_0x3d6ade[_0x230c('0x58')]&&_0x3d6ade[_0x230c('0x58')][_0x230c('0xf1')];if(!_0x45b41b&&_0x9a8874(_0x43719d,_0x2f1c0d))return _0x71e9bf[_0x230c('0x22')](_0x3d6ade,_0x48628f),_0x308cb5[_0x230c('0x130')](_0x48628f),!0x0;if(!_0x3f0be3&&_0x9a8874(_0x2f1c0d,_0x43719d))return _0x71e9bf[_0x230c('0x22')](_0x48628f,_0x3d6ade),_0x308cb5[_0x230c('0x130')](_0x3d6ade),!0x0;}return!0x1;}}[_0x230c('0x22')](_0x215a2a,_0x27fc5e){if(_0x215a2a[_0x230c('0x42')])for(const _0x3e7fa1 of _0x27fc5e[_0x230c('0x4a')]())_0x215a2a[_0x230c('0x43')](_0x3e7fa1);else{const _0x36b8a1=_0x27fc5e[_0x230c('0x48')]()[_0x230c('0xd')];this[_0x230c('0x27')](_0x215a2a,this[_0x230c('0xe5')][_0x230c('0x8b')](_0x215a2a[_0x230c('0x48')]()[_0x230c('0xed')],_0x36b8a1));}_0x27fc5e[_0x230c('0x101')]();}}class Dt{constructor(_0x3aed8b){this[_0x230c('0x10')]=_0x3aed8b,this['_model']=_0x3aed8b[_0x230c('0x115')],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x230c('0x113')]();}[_0x230c('0xf5')](_0x5b67d8,_0x30cc20,_0x2d5a2c,_0x1f4874,_0x26edd5,_0x10fb88){return new _0x359907(this[_0x230c('0xe5')],{'type':_0x5b67d8,'subType':_0x30cc20,'id':_0x2d5a2c,'author':_0x1f4874,'creator':_0x1f4874,'attributes':_0x26edd5,'onAttributesChange':_0x10fb88,'onAccept':(..._0xc78e9d)=>this[_0x230c('0x136')](_0x5b67d8,_0x30cc20,'accept')(..._0xc78e9d),'onDiscard':(..._0x2c77c0)=>this[_0x230c('0x136')](_0x5b67d8,_0x30cc20,'discard')(..._0x2c77c0)});}[_0x230c('0xbd')](_0x2f8cd3,_0x2bab21,_0x39679e,_0x5280d5){const _0x1bc1ec=_0x2f8cd3+':'+_0x2bab21+':'+_0x39679e;this[_0x230c('0x6c')][_0x230c('0xfa')](_0x1bc1ec,_0x5280d5);}['getSuggestionCallback'](_0x5394fc,_0x10bfa1,_0x389d00){const _0x4dabd3=_0x5394fc+':'+_0x10bfa1+':'+_0x389d00;return this[_0x230c('0x6c')]['get'](_0x4dabd3)||this['_defaultCallbacks']['get'](_0x5394fc+':'+_0x389d00);}[_0x230c('0x113')](){const _0x4e42e5=()=>{},_0x3a7f10=_0x1335d6=>{_0x1335d6[_0x230c('0x18')]((_0x2a8c05,_0xfb7a10)=>_0x2a8c05[_0x230c('0xed')][_0x230c('0x21')](_0xfb7a10[_0x230c('0xed')])?0x1:-0x1),this[_0x230c('0xe5')][_0x230c('0x10b')](_0x5924e5=>{for(const _0xa34aaf of _0x1335d6){let _0x4d1200;_0x4d1200=_0xa34aaf['end'][_0x230c('0xaf')]&&_0xa34aaf['end'][_0x230c('0xa9')]==_0xa34aaf['start'][_0x230c('0x72')]?_0x5924e5['createSelection'](_0xa34aaf[_0x230c('0xed')][_0x230c('0x72')],'on'):_0x5924e5[_0x230c('0xd8')](_0xa34aaf),this['_model']['deleteContent'](_0x4d1200,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4dbcd6=(_0x1a1799,_0x29defb)=>{this[_0x230c('0xe5')]['change'](_0x3f05ac=>{const {commandName:_0x30f181,commandParams:_0x2662e1=[]}=_0x29defb,_0x2a1cb4=_0x1a1799[_0x230c('0x10c')](_0x2bb4db=>(_t(_0x2bb4db)&&(_0x2bb4db=this[_0x230c('0xe5')][_0x230c('0x8b')](_0x2bb4db[_0x230c('0xd')])),_0x2bb4db))[_0x230c('0x3c')](_0x4aafd0=>_0x230c('0xe1')!==_0x4aafd0['root'][_0x230c('0xc4')]);if(_0x2a1cb4[_0x230c('0xf1')]<0x1)return;const _0x5498fd=Array[_0x230c('0x64')](this[_0x230c('0xe5')]['document']['selection'][_0x230c('0x4a')]())[_0x230c('0x10c')](_0x1d3a36=>_0x526bfe['fromRange'](_0x1d3a36));_0x3f05ac[_0x230c('0x12d')](_0x2a1cb4);for(const _0x2396ab of this[_0x230c('0x10')][_0x230c('0x45')][_0x230c('0x45')]())_0x2396ab['refresh']();_0x2662e1[_0x230c('0x3d')]({'forceDefaultExecution':!0x0}),this[_0x230c('0x10')]['execute'](_0x30f181,..._0x2662e1);const _0xd9ab7b=_0x5498fd[_0x230c('0x3c')](_0x485881=>'$graveyard'!=_0x485881[_0x230c('0x7b')][_0x230c('0xc4')]);_0xd9ab7b[_0x230c('0xf1')]>0x0&&_0x3f05ac[_0x230c('0x12d')](_0xd9ab7b);for(const _0x4be120 of _0x5498fd)_0x4be120['detach']();});},_0x172dda=(_0x3f9d49,_0x291030)=>0x1==_0x3f9d49[_0x230c('0xf1')]&&0x1==_0x291030[_0x230c('0xf1')]&&_0x3f9d49[0x0][_0x230c('0xd')][_0x230c('0x37')](_0x291030[0x0]['start']),_0x345909=(_0x32b137,_0xc48d5e,_0x249c48,_0x236239)=>xt(_0x32b137,_0xc48d5e,_0x249c48,_0x236239,this[_0x230c('0xe5')])?[_0x32b137,_0xc48d5e]:xt(_0xc48d5e,_0x32b137,_0x236239,_0x249c48,this[_0x230c('0xe5')])?[_0xc48d5e,_0x32b137]:null;this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0xc2'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x86'),_0x3a7f10),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x51'),_0x172dda),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x20'),_0x345909),this[_0x230c('0xe')][_0x230c('0xfa')]('deletion:accept',_0x3a7f10),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x89'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0xd0'),_0x172dda),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x12b'),_0x345909),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x30'),_0x4dbcd6),this[_0x230c('0xe')]['set'](_0x230c('0x8'),_0x4e42e5),this['_defaultCallbacks'][_0x230c('0xfa')](_0x230c('0xb1'),_0x172dda),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x85'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x7f'),_0x4dbcd6),this[_0x230c('0xe')]['set'](_0x230c('0xc7'),_0x4e42e5),this[_0x230c('0xe')][_0x230c('0xfa')](_0x230c('0x5e'),_0x172dda),this[_0x230c('0xe')]['set'](_0x230c('0xde'),_0x4e42e5);}}function Bt(_0x5c5d5c,_0x34bff3,_0x3a4933){for(const _0xf7ca1e of _0x34bff3[_0x230c('0xa9')][_0x230c('0x34')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xf7ca1e[_0x230c('0x7b')]==_0xf7ca1e)return!0x1;if(!_0x3a4933['containsItem'](_0xf7ca1e))return!0x1;if(_0x5c5d5c[_0x230c('0x77')](_0xf7ca1e)||_0x5c5d5c['isLimit'](_0xf7ca1e))return!0x0;}return!0x1;}function _t(_0x24a691){return _0x24a691[_0x230c('0xd')][_0x230c('0xa9')]==_0x24a691[_0x230c('0xed')][_0x230c('0x72')]&&_0x24a691[_0x230c('0xd')][_0x230c('0x1c')];}function Mt(_0x450906,_0x41a67c,_0x120a80,_0x1ddb9b){const _0x43027d=_0x5c9f7d=>!_0x5c9f7d[_0x230c('0xf2')]['is']('$textProxy')&&!_0x1ddb9b[_0x230c('0x77')](_0x5c9f7d[_0x230c('0xf2')]),_0x3669a5=_0x450906[_0x230c('0xed')][_0x230c('0x12e')](_0x43027d),_0x263b0c=_0x450906[_0x230c('0xd')]['getLastMatchingPosition'](_0x43027d,{'direction':_0x230c('0x1f')});return(!_0x450906['start'][_0x230c('0x37')](_0x3669a5)||!_0x450906[_0x230c('0xd')][_0x230c('0x37')](_0x263b0c))&&(_0x3669a5[_0x230c('0x21')](_0x263b0c)?_0x120a80[_0x230c('0x69')](_0x41a67c,{'range':_0x120a80['createRange'](_0x3669a5,_0x263b0c)}):_0x120a80[_0x230c('0x4e')](_0x41a67c),!0x0);}function $t(_0x38bca1){return _0x86ca02(_0x38bca1);}function Nt(_0xbc1e82){const _0x4a98b3=_0xbc1e82['start'][_0x230c('0x72')];return _0x4a98b3&&_0x4a98b3['is'](_0x230c('0xb0'));}function Rt(_0x3bb6cd,_0x722bf6){const _0x598154=_0x722bf6[_0x230c('0x91')][_0x230c('0x77')](_0x3bb6cd)||_0x722bf6[_0x230c('0x91')][_0x230c('0xee')](_0x3bb6cd);return _0x722bf6[_0x230c('0x8b')](_0x722bf6[_0x230c('0x3f')](_0x3bb6cd,'before'),_0x598154?_0x722bf6['createPositionAfter'](_0x3bb6cd):_0x722bf6[_0x230c('0x3f')](_0x3bb6cd,_0x230c('0xd')));}function xt(_0x198230,_0x3c3f3d,_0x112436,_0x4c43b2,_0x37f7ee){if(_0x112436[_0x230c('0xd')][_0x230c('0x37')](_0x4c43b2['start']))return!0x0;if(_0x198230['type']!=_0x3c3f3d[_0x230c('0x1a')])return!0x1;if(!_0x112436['end'][_0x230c('0xbe')](_0x4c43b2['start']))return!0x1;const _0x550453=_0x37f7ee[_0x230c('0x8b')](_0x112436['end'],_0x4c43b2[_0x230c('0xed')])[_0x230c('0x75')]();for(const _0xd63b85 of _0x550453)if([_0x230c('0x6a'),'elementEnd'][_0x230c('0xd1')](_0xd63b85[_0x230c('0x1a')])&&_0x37f7ee['schema'][_0x230c('0xa1')](_0xd63b85[_0x230c('0xf2')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x2ba6=['setTo','getDifference','low','skipNestingCheck','_suggestions','accepted','markBlockFormat','_registerDefaultCallbacks','_addSuggestionMarker','head','addMarker:suggestion','init','removeMarker','requires','$textProxy','updateSuggestion','containsPosition','insertion','_findSuggestions','editingDowncast','getShiftedBy','acceptAllSuggestions','isIntersectingWithRange','subType','isInsideObject','_customCallbacks','lowest','differ','move','bindElementToMarker','add','getSuggestionCallback','_suggestionFactory','nodeBefore','_joinSuggestions','dataDowncast','registerPostFixer','insertContent','getItems','addHighlight','insertion:chain','batch','isAtEnd','markDeletion','forceDefaultExecution','config','targetPosition','highest','removeMarkers','discard','isUndo','discardSuggestion','parent','range','_updateSuggestionData','element','isBefore','insertion:','activeMarkers','high','backward','newRange','upcast','$marker','suggestionChanged','always','value','dataToMarker','registerCustomCallback','split','plugins','isAtStart','after','commands','deleteContent','addUser','_suggestionState','pluginName','ck-suggestion-marker--active','Users','conversion','values','commentThread','markerToData','createPositionAt','rejected','getSuggestion','splice','_adapter','name','elementToElement','getAttribute','getIntersection','update:suggestion','getRanges','type','formatInline:','consume','from','markMultiRangeBlockFormat','track-changes-adapter-missing-getsuggestion','showSuggestionHighlights','external:','fetchCommentThread','suggestion','clear','hasComments','_splitMarkerName','change:_saved','authorName','markMultiRangeDeletion','end','adapter','fire','push','getFirstRange','_enabledCommands','creator','isAfter','size','commandName','getChangedMarkers','never','addClass','isInContent','sort','default','insertion:join','formatInline:accept','then','refresh','isCollapsed','markerToHighlight','moveTargetPosition','deletion:chain','insert','data','_setSuggestionData','consumable','author','createSelection','setAttribute','TrackChangesEditing','_checkSuggestionCorrectness','_refreshSuggestionsChain','markers','documentSelection','formatInline:join','return','multi','formatBlock','_defaultCallbacks','includes','isMultiRange','PendingActions','getCustomProperty','elementStart','map','formatBlock:join','splitPosition','addSuggestionData','document','filter','_isForcedDefaultExecutionBlock','removeComment','suggestionLoaded','stop','addMarker:suggestion:formatBlock','previous','markMultiRangeInsertion','get','markerReady','createRangeIn','removeAttribute','formatInline:discard','isOwn','createPositionBefore','has','for','enableCommand','addCommentThread','reconvertMarker','join','root','getMarkers','start','discardAllSuggestions','delete','multipleBlocks','editing','writer','ready','deletion:','_onDiscard','group','CommentsRepository','getNearestSelectionRange','trackChanges.trackFormatChanges','getMultiRangeId','isTouching','formatInline:chain','suggestion:','isNextTo','getWalker','getCommentThread','item','containsItem','listenTo','_cutOutSuggestionMarker','editor','formatBlock:discard','_mergeNestedSuggestions','createdAt','fromRange','_breakSuggestionMarker','_rangeIsInLocalUserInsertion','_handleNewSuggestionMarker','acceptSelectedSuggestions','_setSuggestionRange','isObject','execute','ck-suggestion-marker','trackChangesCommand','accept','_commentsRepository','data-suggestion','isRemovable','getSuggestions','nodeAfter','formatBlock:','track-changes-suggestion-data-mismatch','_getSuggestionData','next','markInsertion','_getAuthorFromId','createElement','PENDING_ACTION_SUGGESTION','buildSuggestion','every','remove','_editor','locale','position','notReady','before','trackChanges.mergeNestedSuggestions','setSelection','dataReady','authoredAt','getUser','hasCommentThread','_model','@external','detach','formatInline','forward','isBlock','applyOperation','formatBlock:accept','containsRange','unbindElementFromMarkerName','containsRangeInObject','_createSuggestion','getRange','createPositionAfter','_getExternalAuthor','enableReadOnlyMode','formatBlock:chain','catch','isEqual','deletion','length','track-changes-suggestion-not-found','_removeSuggestion','unbind','widget','marker-count','collaboration.channelId','resolve','removed','addRange','set','attributes','rootName','change','addMarkerName','createRange','updateMarker','containerElement','track-changes-adapter-already-set','isSelectable','rethrowUnexpectedError','mapper','change:data','isLimit','schema','_saved','$graveyard','toJSON','oldRange','selection','acceptSuggestion','getLastMatchingPosition','addComment','ck-suggestion-marker-formatBlock','markerName','_trackFormatChanges','some','getAncestors','track-changes-command-not-found','model','clone','options','ck-suggestion-marker-','addSuggestion','getAllAdjacentSuggestions','formatGroupId','discardSelectedSuggestions','markInlineFormat','suggestion-type','change:activeMarkers','define','removeMarker:suggestion:formatBlock'];(function(_0x4e7252,_0x2ba628){const _0x433496=function(_0x4beb11){while(--_0x4beb11){_0x4e7252['push'](_0x4e7252['shift']());}};_0x433496(++_0x2ba628);}(_0x2ba6,0x1ad));const _0x4334=function(_0x4e7252,_0x2ba628){_0x4e7252=_0x4e7252-0x0;let _0x433496=_0x2ba6[_0x4e7252];return _0x433496;};import{Plugin as _0x579e0a,PendingActions as _0x425ba1}from'ckeditor5/src/core';import{LiveRange as _0x3a048e}from'ckeditor5/src/engine';import{CKEditorError as _0x2bebbb,uid as _0x2a71e3,priorities as _0x58b8c3,logWarning as _0xd617ef}from'ckeditor5/src/utils';import{toWidget as _0x35c619}from'ckeditor5/src/widget';import{Users as _0x4a2cb5,hashObject as _0x3178f7}from'ckeditor5-collaboration/src/collaboration-core';import _0x10f0a9 from'./commands/trackchangescommand';import _0x4c9071 from'./commands/acceptsuggestioncommand';import _0x14c7a9 from'./commands/discardsuggestioncommand';import _0x36657a from'./commands/executeonallsuggestionscommand';import _0xb61c34 from'./commands/executeonselectedsuggestionscommand';import _0x23eeb3 from'./suggestion';import _0x35b89f from'./suggestiondescriptionfactory';import _0x3ef619 from'./integrations/alignment';import _0x4e33a4 from'./integrations/basicstyles';import _0x1f0207 from'./integrations/blockquote';import _0x2db750 from'./integrations/ckbox';import _0x491f31 from'./integrations/codeblock';import _0x400338 from'./integrations/comments';import _0x3d5adf from'./integrations/deletecommand';import _0x331587 from'./integrations/documentlist';import _0x45c9c3 from'./integrations/entercommand';import _0x33577e from'./integrations/findandreplace';import _0x5496a9 from'./integrations/font';import _0xb62f16 from'./integrations/formatpainter';import _0xef8bf5 from'./integrations/heading';import _0x390b27 from'./integrations/highlight';import _0x4adb21 from'./integrations/horizontalline';import _0x529cb9 from'./integrations/htmlembed';import _0x2d772e from'./integrations/image';import _0x2a1c21 from'./integrations/imagereplace';import _0x3ada24 from'./integrations/importword';import _0x5e58a9 from'./integrations/indent';import _0x39eb5d from'./integrations/inputcommand';import _0x591853 from'./integrations/link';import _0x2afe1c from'./integrations/list';import _0x2435ac from'./integrations/listproperties';import _0x555f31 from'./integrations/mediaembed';import _0x5e3702 from'./integrations/mention';import _0x28d5a4 from'./integrations/pagebreak';import _0x3ce906 from'./integrations/paragraph';import _0x569904 from'./integrations/removeformat';import _0x3d9d53 from'./integrations/restrictededitingmode';import _0xa912ae from'./integrations/shiftentercommand';import _0xd275e3 from'./integrations/standardeditingmode';import _0x50ca60 from'./integrations/style';import _0x27a51b from'./integrations/table';import _0x251e5d from'./integrations/tablemergesplit';import _0x45ee68 from'./integrations/tableheadings';import _0x44c801 from'./integrations/tableclipboard';import _0x1a8919 from'./integrations/tablecolumnresize';import _0x461d67 from'./integrations/template';import _0x56794e from'./integrations/tableofcontents';import _0x46ca23 from'./integrations/title';import _0x491205 from'./integrations/undo';import{getTranslation as _0x25dfb2}from'./utils/common-translations';import _0x2837e9 from'./integrations/tablecaption';import _0x1e283e from'./integrations/documentlistproperties';import _0x56c499 from'./integrations/tableproperties';export default class p extends _0x579e0a{static get[_0x4334('0xe6')](){return[_0x4334('0x59'),_0x4a2cb5,_0x425ba1,_0x3ef619,_0x4e33a4,_0x1f0207,_0x2db750,_0x491f31,_0x400338,_0x3d5adf,_0x331587,_0x1e283e,_0x45c9c3,_0x33577e,_0x5496a9,_0xb62f16,_0xef8bf5,_0x390b27,_0x4adb21,_0x529cb9,_0x2d772e,_0x2a1c21,_0x3ada24,_0x5e58a9,_0x39eb5d,_0x591853,_0x2afe1c,_0x2435ac,_0x555f31,_0x5e3702,_0x28d5a4,_0x3ce906,_0x569904,_0x3d9d53,_0xa912ae,_0xd275e3,_0x50ca60,_0x27a51b,_0x251e5d,_0x45ee68,_0x2837e9,_0x44c801,_0x1a8919,_0x56794e,_0x56c499,_0x461d67,_0x46ca23,_0x491205];}static get[_0x4334('0x126')](){return _0x4334('0x24');}constructor(_0x1c8b11){function _0x4257bf(_0x3f41b0){return _0x3f41b0['map'](_0x11a9ea=>String['fromCharCode'](_0x11a9ea))[_0x4334('0x4c')]('');}super(_0x1c8b11),this['set'](_0x4334('0x113'),[]),this['on'](_0x4334('0xd6'),(_0xc6cb6c,_0x27fd2b,_0x1f0edf,_0x40b03b)=>{this['_model'][_0x4334('0xb2')](()=>{for(const _0x1004a3 of[..._0x40b03b,..._0x1f0edf])this['_model'][_0x4334('0x27')]['has'](_0x1004a3)&&_0x1c8b11[_0x4334('0x53')][_0x4334('0x4b')](_0x1004a3);});}),this['_descriptionFactory']=new _0x35b89f(this[_0x4334('0x67')][_0x4334('0xcc')][_0x4334('0xbd')],this[_0x4334('0x67')][_0x4334('0x87')]),this[_0x4334('0x131')]=null,this['_suggestionFactory']=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x4334('0x76')]=_0x1c8b11[_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x59')),this[_0x4334('0xa')]=new Set(),this[_0x4334('0x91')]=this[_0x4334('0x67')][_0x4334('0xcc')],this['_suggestionState']=new WeakMap(),this[_0x4334('0x39')]=!0x1,_0x1c8b11[_0x4334('0x106')][_0x4334('0xd7')](_0x4334('0x5b'),_0x4334('0x14')),this[_0x4334('0xc8')]=_0x1c8b11[_0x4334('0x106')][_0x4334('0x40')](_0x4334('0x5b')),_0x1c8b11['config']['define'](_0x4334('0x8b'),!0x0),this[_0x4334('0x69')]=_0x1c8b11[_0x4334('0x106')][_0x4334('0x40')](_0x4334('0x8b')),this[_0x4334('0x74')]=new _0x10f0a9(_0x1c8b11,this[_0x4334('0xa')]),this[_0x4257bf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4257bf([0x34,0x30,0x34,0x36,0x31,0x32,0x35,0x36]);}[_0x4334('0xe4')](){const _0x289305=this['editor'];_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xec'))[_0x4334('0x1a')]({'model':'suggestion','view':_0x23a932=>{const {id:_0x300089,type:_0x378542}=this[_0x4334('0x1')](_0x23a932[_0x4334('0xc7')]),_0x28fc20=[_0x4334('0x73'),'ck-suggestion-marker-'+_0x378542];let _0x192ede=0xbb8;return this[_0x4334('0x113')][_0x4334('0x2e')](_0x23a932[_0x4334('0xc7')])&&(_0x28fc20['push'](_0x4334('0x127')),_0x192ede=0xbc2),'deletion'==_0x378542&&(_0x192ede+=0x5),{'classes':_0x28fc20,'attributes':{'data-suggestion':_0x300089},'priority':_0x192ede};}}),_0x289305['conversion'][_0x4334('0x48')](_0x4334('0xfc'))[_0x4334('0xf7')](_0x9e028d=>{_0x9e028d['on'](_0x4334('0xe3'),(_0x41eebb,_0x1a328f,_0x4142e)=>{if(!_0x4142e['options'][_0x4334('0x13e')])return;const _0x2398e4=_0x1a328f[_0x4334('0x63')];if(!_0x2398e4)return;const _0x2fdf3c=_0x4142e[_0x4334('0xba')]['toViewElement'](_0x2398e4);_0x289305[_0x4334('0xcc')]['schema'][_0x4334('0x71')](_0x2398e4)&&_0x2fdf3c&&!_0x2fdf3c[_0x4334('0x31')](_0x4334('0xa9'))&&_0x2fdf3c['is'](_0x4334('0xb6'))&&_0x35c619(_0x2fdf3c,_0x4142e['writer']);},{'priority':_0x4334('0x114')});}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xfc'))[_0x4334('0x1a')]({'model':_0x4334('0x141'),'view':(_0x1a4ef1,_0x1935a9)=>{if(!_0x1935a9[_0x4334('0xce')][_0x4334('0x13e')])return null;const {type:_0x1129f7}=this[_0x4334('0x1')](_0x1a4ef1[_0x4334('0xc7')]);return{'classes':['ck-suggestion-marker',_0x4334('0xcf')+_0x1129f7],'priority':0xbb8};}});const _0x23da5e=({showActiveMarkers:_0x24407f=!0x0}={})=>(_0x55bdfa,_0x2593a8,_0x30201a)=>{if(!_0x2593a8['item'])return;if(_0x2593a8[_0x4334('0x63')]['is'](_0x4334('0xc2')))return void _0x30201a[_0x4334('0x20')][_0x4334('0x13a')](_0x2593a8[_0x4334('0x63')],_0x55bdfa[_0x4334('0x132')]);const _0x37002a=_0x30201a[_0x4334('0xba')]['toViewElement'](_0x2593a8[_0x4334('0x63')]);if(!(_0x2593a8[_0x4334('0x63')]['is'](_0x4334('0x110'))&&_0x289305['model']['schema'][_0x4334('0x96')](_0x2593a8['item'])&&!_0x37002a[_0x4334('0x31')](_0x4334('0x100'))))return;const {id:_0x4baade}=this[_0x4334('0x1')](_0x2593a8[_0x4334('0xc7')]);_0x30201a[_0x4334('0x54')][_0x4334('0x11')](['ck-suggestion-marker',_0x4334('0xc6')],_0x37002a),_0x30201a[_0x4334('0x54')][_0x4334('0x23')](_0x4334('0x77'),_0x4baade,_0x37002a),_0x30201a['mapper'][_0x4334('0xf6')](_0x37002a,_0x2593a8['markerName']),_0x24407f&&(this[_0x4334('0x113')][_0x4334('0x2e')](_0x2593a8[_0x4334('0xc7')])?_0x30201a['writer']['addClass'](_0x4334('0x127'),_0x37002a):_0x30201a[_0x4334('0x54')]['removeClass'](_0x4334('0x127'),_0x37002a));for(const _0x188a24 of _0x289305[_0x4334('0xcc')][_0x4334('0x42')](_0x2593a8['item'])[_0x4334('0xff')]())_0x30201a[_0x4334('0x20')]['consume'](_0x188a24,_0x55bdfa['name']);_0x30201a['consumable']['consume'](_0x2593a8[_0x4334('0x63')],_0x55bdfa[_0x4334('0x132')]);};_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xfc'))[_0x4334('0xf7')](_0x13c63d=>{_0x13c63d['on'](_0x4334('0x3d'),(_0x206690,_0x166085,_0x64ea7a)=>{_0x64ea7a['options'][_0x4334('0x13e')]&&_0x23da5e({'showActiveMarkers':!0x1})(_0x206690,_0x166085,_0x64ea7a);},{'priority':_0x4334('0x108')});}),_0x289305['conversion'][_0x4334('0x48')]('dataDowncast')[_0x4334('0x12c')]({'model':_0x4334('0x141'),'view':(_0x463c11,_0x5c1d4c)=>_0x5c1d4c[_0x4334('0xce')][_0x4334('0x13e')]?null:{'group':'suggestion','name':_0x463c11['substr'](0xb)}}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0x117'))[_0x4334('0x133')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40bfa4,{writer:_0x2d6c23})=>{let _0x30563c=_0x4334('0x5f')+_0x40bfa4['getAttribute'](_0x4334('0xd5'))+':'+_0x40bfa4['getAttribute']('id');return _0x40bfa4['getAttribute'](_0x4334('0xaa'))&&(_0x30563c+=':'+_0x40bfa4[_0x4334('0x134')]('marker-count')),_0x2d6c23[_0x4334('0x81')](_0x4334('0x118'),{'data-name':_0x30563c});}}),_0x289305[_0x4334('0x129')][_0x4334('0x48')]('upcast')[_0x4334('0x11c')]({'view':_0x4334('0x141')}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xec'))['add'](_0x79c743=>{_0x79c743['on'](_0x4334('0x3d'),_0x23da5e(),{'priority':_0x4334('0x114')});}),_0x289305[_0x4334('0x129')][_0x4334('0x48')](_0x4334('0xec'))[_0x4334('0xf7')](_0x283a7f=>{_0x283a7f['on'](_0x4334('0xd8'),(_0x43e806,_0x4997c5,_0x8c3ef0)=>{const _0x4ed804=_0x8c3ef0[_0x4334('0xba')]['markerNameToElements'](_0x4997c5[_0x4334('0xc7')]);if(_0x4ed804)for(const _0x187698 of _0x4ed804)_0x187698[_0x4334('0x31')](_0x4334('0x100'))||(_0x8c3ef0[_0x4334('0x54')]['removeClass']([_0x4334('0x73'),'ck-suggestion-marker-formatBlock',_0x4334('0x127')],_0x187698),_0x8c3ef0[_0x4334('0x54')][_0x4334('0x43')](_0x4334('0x77'),_0x187698),_0x8c3ef0['mapper'][_0x4334('0x9a')](_0x187698,_0x4997c5[_0x4334('0xc7')]));},{'priority':'high'});}),_0x289305[_0x4334('0xcc')][_0x4334('0x37')][_0x4334('0xfd')](_0x2fd5be=>{let _0x456989=!0x1;const _0x5133d9=Array['from'](_0x289305[_0x4334('0xcc')][_0x4334('0x37')][_0x4334('0xf4')][_0x4334('0xf')]()),_0x43ef5d=new Set();for(const {name:_0x1a3af6,data:_0x2a9371}of _0x5133d9){const {group:_0x5cb786,type:_0x349d34,id:_0x26deec}=this[_0x4334('0x1')](_0x1a3af6);if(_0x4334('0x141')!==_0x5cb786)continue;const _0x1e333a=this[_0x4334('0xdd')]['get'](_0x26deec);if(null!=_0x2a9371['newRange']){'formatInline'==_0x349d34&&(_0x456989=_0x456989||Mt(_0x2a9371[_0x4334('0x116')],_0x1a3af6,_0x2fd5be,_0x289305[_0x4334('0xcc')][_0x4334('0xbd')]));if(_0x2a9371[_0x4334('0x116')][_0x4334('0x19')]||_0x4334('0xbf')==_0x2a9371[_0x4334('0x116')][_0x4334('0x4d')][_0x4334('0xb1')]||_0x4334('0x2c')==_0x349d34&&!Nt(_0x2a9371[_0x4334('0x116')])||'deletion'==_0x349d34&&!(!_t(_0x170e2d=_0x2a9371[_0x4334('0x116')])&&!function(_0xb9a35d){return _0xb9a35d[_0x4334('0x4f')][_0x4334('0x10d')]==_0xb9a35d[_0x4334('0x5')][_0x4334('0xfa')]&&_0xb9a35d[_0x4334('0x4f')][_0x4334('0x103')];}(_0x170e2d)))_0x2fd5be[_0x4334('0xe5')](_0x1a3af6),_0x456989=!0x0;else{if(!_0x1e333a||!_0x1e333a[_0x4334('0x12')])continue;_0x43ef5d[_0x4334('0xf7')](_0x1e333a);}}}var _0x170e2d;return _0x43ef5d[_0x4334('0xd')]>0x0&&(_0x456989=!!this['_joinWithAdjacentSuggestions'](_0x43ef5d)||_0x456989),_0x456989;}),_0x289305[_0x4334('0xcc')][_0x4334('0x37')]['registerPostFixer'](_0xdec9ed=>{let _0x4d1473=!0x1;for(const _0x4bd345 of _0x289305[_0x4334('0xcc')][_0x4334('0x37')][_0x4334('0xf4')]['getChanges']()){if(_0x4334('0x1d')!=_0x4bd345[_0x4334('0x138')])continue;const _0x5ca25f=_0x4bd345[_0x4334('0x88')]['getShiftedBy'](_0x4bd345[_0x4334('0xa5')]);if(_0x5ca25f[_0x4334('0x103')])for(const _0x58c109 of this['_suggestions'][_0x4334('0x12a')]()){if(_0x58c109[_0x4334('0x2f')]||!_0x58c109[_0x4334('0x12')])continue;if(_0x4334('0x2c')!=_0x58c109['type'])continue;const _0x6de9f7=_0x58c109[_0x4334('0x9')]();if(_0x6de9f7['start'][_0x4334('0x10d')]!=_0x6de9f7['end']['parent']&&_0x6de9f7[_0x4334('0x5')]['isEqual'](_0x4bd345['position'])){const _0x4b814e=_0x289305[_0x4334('0xcc')]['createRange'](_0x6de9f7[_0x4334('0x4f')],_0x5ca25f);_0xdec9ed[_0x4334('0xb5')](_0x58c109['getFirstMarker'](),{'range':_0x4b814e}),_0x4d1473=!0x0;}}}return _0x4d1473;}),_0x289305[_0x4334('0xcc')][_0x4334('0x27')]['on'](_0x4334('0x136'),(_0x405d18,_0x50a46b,_0x1414dd)=>{if(null==_0x1414dd){const {id:_0x15a3b7}=this[_0x4334('0x1')](_0x50a46b[_0x4334('0x132')]),_0x1892cf=this[_0x4334('0xdd')][_0x4334('0x40')](_0x15a3b7);_0x1892cf&&_0x1892cf[_0x4334('0xb3')](_0x50a46b[_0x4334('0x132')]);}}),_0x289305[_0x4334('0xcc')]['document']['on'](_0x4334('0xbb'),()=>{const _0x4c0bef=Array['from'](_0x289305['model'][_0x4334('0x37')][_0x4334('0xf4')]['getChangedMarkers']())[_0x4334('0x38')](_0x29baee=>_0x4334('0x141')===this[_0x4334('0x1')](_0x29baee[_0x4334('0x132')])[_0x4334('0x58')]);if(0x0===_0x4c0bef[_0x4334('0xa5')])return;_0x4c0bef[_0x4334('0x13')]((_0x22bcd9,_0x234be9)=>{const _0x57de09=_0x22bcd9[_0x4334('0x1e')]['oldRange'],_0x2bcb4c=_0x234be9[_0x4334('0x1e')]['oldRange'];return null===_0x57de09&&null===_0x2bcb4c?0x0:null===_0x57de09&&null!==_0x2bcb4c?-0x1:null!==_0x57de09&&null===_0x2bcb4c?0x1:_0x57de09[_0x4334('0x4f')][_0x4334('0x111')](_0x2bcb4c[_0x4334('0x4f')])?-0x1:0x1;});const _0x3316bc=new Set(),_0x2fdccb=new Set();for(const {name:_0x53e1a8,data:_0xf5bd93}of _0x4c0bef){const {id:_0x49ddd5}=this['_splitMarkerName'](_0x53e1a8);if(null===_0xf5bd93[_0x4334('0xc1')]){const _0x49bb99=this['_handleNewSuggestionMarker'](_0x53e1a8);_0x2fdccb[_0x4334('0xf7')](_0x49bb99);}else{const _0x2c5563=this[_0x4334('0xdd')][_0x4334('0x40')](_0x49ddd5);null!==_0xf5bd93[_0x4334('0x116')]||_0x2c5563[_0x4334('0x12')]?(_0x3316bc[_0x4334('0xf7')](_0x2c5563[_0x4334('0xe2')]),_0x2fdccb['add'](_0x2c5563)):this[_0x4334('0xa7')](_0x2c5563);}}_0x2fdccb[_0x4334('0xd')]>0x0&&this[_0x4334('0x26')](_0x2fdccb);for(const _0x20b2ef of _0x3316bc)this[_0x4334('0x7')](_0x4334('0x119'),_0x20b2ef);}),_0x289305[_0x4334('0xcc')]['on'](_0x4334('0x97'),(_0x34dda2,_0x329c64)=>{const _0x47692d=_0x329c64[0x0];if(!this['_suggestions'][_0x4334('0xd')])return;if(!_0x47692d['isDocumentOperation'])return;if(_0x47692d['batch'][_0x4334('0x10b')]||!_0x47692d[_0x4334('0x102')]['isLocal'])return;let _0x85fd5f,_0x2923fe;switch(_0x47692d[_0x4334('0x138')]){case'insert':_0x85fd5f=_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x47692d[_0x4334('0x88')]),_0x2923fe=_0x85fd5f[_0x4334('0xed')](_0x47692d['howMany']);break;case'split':_0x85fd5f=_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x47692d[_0x4334('0x35')]),_0x2923fe=_0x289305['model'][_0x4334('0x12d')](_0x47692d[_0x4334('0x1b')]);break;case _0x4334('0xf5'):_0x85fd5f=_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x47692d[_0x4334('0x107')]),_0x2923fe=_0x85fd5f['getShiftedBy'](_0x47692d['howMany']);break;default:return;}const _0x58d298=_0x289305[_0x4334('0xcc')][_0x4334('0xb4')](_0x85fd5f,_0x2923fe);_0x289305[_0x4334('0xcc')]['change'](()=>{for(const {suggestion:_0x2c4434,meta:_0x2d517e}of this[_0x4334('0xeb')](_0x58d298)){if(_0x2c4434[_0x4334('0x2f')])continue;if('formatInline'==_0x2c4434[_0x4334('0x138')])continue;const _0x5a84c5=_0x2c4434[_0x4334('0x1e')]&&_0x2c4434['data'][_0x4334('0x52')];(_0x4334('0x2c')!=_0x2c4434['type']||_0x4334('0x11e')==_0x47692d['type']&&!_0x5a84c5)&&(_0x2d517e['containsRangeInObject']||_0x4334('0xea')==_0x2c4434[_0x4334('0x138')]&&_0x2d517e[_0x4334('0x45')]||_0x2c4434[_0x4334('0x9')]()[_0x4334('0x99')](_0x58d298)&&this[_0x4334('0x6c')](_0x2c4434,_0x85fd5f,_0x2923fe));}});},{'priority':_0x4334('0xf3')}),_0x289305[_0x4334('0xcc')]['on'](_0x4334('0x123'),(_0x9181d7,_0x1195b2)=>{const _0x3839fb=_0x1195b2[0x0],_0x456b00=_0x1195b2[0x1];if(_0x456b00&&_0x456b00['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x4334('0x74')][_0x4334('0x11b')])return;if(_0x3839fb['isCollapsed'])return;const _0x1c920f=_0x289305[_0x4334('0xcc')]['schema'],{start:_0x418d39,end:_0x55e9ee}=_0x3839fb[_0x4334('0x9')](),_0x4c3e76=_0x418d39[_0x4334('0x7a')]&&_0x1c920f[_0x4334('0xbc')](_0x418d39['nodeAfter'])?null:_0x1c920f[_0x4334('0x5a')](_0x418d39,_0x4334('0x95')),_0x57c980=_0x55e9ee[_0x4334('0xfa')]&&_0x1c920f[_0x4334('0xbc')](_0x55e9ee[_0x4334('0xfa')])?null:_0x1c920f[_0x4334('0x5a')](_0x55e9ee,_0x4334('0x115')),_0x3af73e=_0x289305[_0x4334('0xcc')]['createRange'](_0x4c3e76?_0x4c3e76[_0x4334('0x4f')]:_0x418d39,_0x57c980?_0x57c980['end']:_0x55e9ee);_0x289305[_0x4334('0xcc')][_0x4334('0xb2')](_0x21bc75=>{this['markDeletion'](_0x3af73e);const _0xb3ba37=_0x289305[_0x4334('0xcc')][_0x4334('0xbd')][_0x4334('0x5a')](_0x3af73e['start']);_0x3839fb['is'](_0x4334('0x28'))?_0x21bc75[_0x4334('0x8c')](_0xb3ba37):_0x3839fb[_0x4334('0xd9')](_0xb3ba37);}),_0x9181d7['stop']();},{'priority':_0x58b8c3['normal']+0xa}),_0x289305[_0x4334('0xcc')]['on'](_0x4334('0xfe'),(_0x128d9d,_0x4cc0fd)=>{const _0x3dd3ed=_0x4cc0fd[_0x4cc0fd[_0x4334('0xa5')]-0x1];_0x3dd3ed&&_0x3dd3ed['forceDefaultExecution']||this[_0x4334('0x39')]||this[_0x4334('0x74')][_0x4334('0x11b')]&&(_0x289305['model'][_0x4334('0xb2')](()=>{let _0x7b4dcc=_0x289305[_0x4334('0xcc')][_0x4334('0xfe')](_0x4cc0fd[0x0],_0x4cc0fd[0x1],_0x4cc0fd[0x2],{'forceDefaultExecution':!0x0});if(!_0x7b4dcc)return;_0x128d9d[_0x4334('0x2a')]=_0x7b4dcc[_0x4334('0xcd')]();const _0x1153d9=_0x7b4dcc[_0x4334('0x5')]['nodeBefore'],_0xdc70e4=_0x289305[_0x4334('0xcc')][_0x4334('0xbd')];_0x1153d9&&_0xdc70e4[_0x4334('0x96')](_0x1153d9)&&!_0xdc70e4[_0x4334('0x71')](_0x1153d9)&&(_0x7b4dcc=_0x289305['model'][_0x4334('0xb4')](_0x7b4dcc[_0x4334('0x4f')],_0x289305[_0x4334('0xcc')][_0x4334('0x12d')](_0x1153d9,_0x4334('0x5')))),this[_0x4334('0x7f')](_0x7b4dcc);}),_0x128d9d[_0x4334('0x3c')]());},{'priority':_0x4334('0x114')}),this[_0x4334('0x67')][_0x4334('0x122')]['add']('trackChanges',this[_0x4334('0x74')]),this[_0x4334('0x49')]('trackChanges');const _0x2ee2f7=new _0x4c9071(_0x289305,this[_0x4334('0xdd')]);_0x289305['commands'][_0x4334('0xf7')](_0x4334('0xc3'),_0x2ee2f7),this['enableCommand'](_0x4334('0xc3'));const _0x25efe9=new _0x14c7a9(_0x289305,this[_0x4334('0xdd')]);_0x289305['commands'][_0x4334('0xf7')](_0x4334('0x10c'),_0x25efe9),this['enableCommand'](_0x4334('0x10c')),_0x289305['commands']['add'](_0x4334('0xee'),new _0x36657a(_0x289305,_0x2ee2f7,this[_0x4334('0xdd')])),this['enableCommand'](_0x4334('0xee')),_0x289305[_0x4334('0x122')][_0x4334('0xf7')](_0x4334('0x50'),new _0x36657a(_0x289305,_0x25efe9,this[_0x4334('0xdd')])),this['enableCommand'](_0x4334('0x50')),_0x289305[_0x4334('0x122')][_0x4334('0xf7')](_0x4334('0x6f'),new _0xb61c34(_0x289305,_0x2ee2f7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x289305[_0x4334('0x122')][_0x4334('0xf7')](_0x4334('0xd3'),new _0xb61c34(_0x289305,_0x25efe9,this['_suggestions'])),this[_0x4334('0x49')]('discardSelectedSuggestions');const _0x354187=_0x289305[_0x4334('0x11f')]['get']('CommentsRepository');this[_0x4334('0x65')](_0x354187,_0x4334('0xc5'),(_0x3f8bdd,{threadId:_0x35a212})=>{const _0x580114=this[_0x4334('0xdd')][_0x4334('0x40')](_0x35a212);_0x580114&&_0x580114[_0x4334('0x12b')]&&0x1===_0x580114[_0x4334('0x12b')][_0x4334('0xa5')]&&this[_0x4334('0x10f')](_0x35a212,{'hasComments':!0x0});},{'priority':_0x4334('0xdb')}),this['listenTo'](_0x354187,_0x4334('0x3a'),(_0x35dfe6,{threadId:_0x3f3f45})=>{const _0x42de2b=this[_0x4334('0xdd')][_0x4334('0x40')](_0x3f3f45);_0x42de2b&&_0x42de2b['commentThread']&&!_0x42de2b[_0x4334('0x12b')]['length']&&this['_updateSuggestionData'](_0x3f3f45,{'hasComments':!0x1});},{'priority':_0x4334('0xdb')});}set['adapter'](_0x229089){if(this[_0x4334('0x131')])throw new _0x2bebbb(_0x4334('0xb7'),this);this[_0x4334('0x131')]=_0x229089;}get[_0x4334('0x6')](){return this[_0x4334('0x131')];}[_0x4334('0x79')]({skipNotAttached:_0xa87e4b=!0x1,toJSON:_0x2e5c38=!0x1}={}){const _0x32bf60=[];for(const _0x5f0dd3 of this[_0x4334('0xdd')][_0x4334('0x12a')]())_0xa87e4b&&!_0x5f0dd3[_0x4334('0x12')]||_0x32bf60['push'](_0x5f0dd3);return _0x2e5c38?_0x32bf60[_0x4334('0x33')](_0xe0cd56=>_0xe0cd56[_0x4334('0xc0')]()):_0x32bf60;}[_0x4334('0x12f')](_0x4fd7ec){const _0x1c5565=this['_suggestions'][_0x4334('0x40')](_0x4fd7ec);if(!_0x1c5565)throw new _0x2bebbb(_0x4334('0xa6'),this);return _0x1c5565;}['hasSuggestion'](_0x1b9b6f){return this['_suggestions'][_0x4334('0x47')](_0x1b9b6f);}[_0x4334('0x36')](_0x342006){const {authorId:_0x414251,id:_0x555d00,attributes:_0x2b2114}=_0x342006,[_0x5613a0,_0x469396]=_0x342006['type']['split'](':'),_0x3a75c1=this[_0x4334('0xdd')][_0x4334('0x40')](_0x555d00)||this[_0x4334('0x9c')](_0x5613a0,_0x469396,_0x555d00,_0x414251,_0x2b2114);if(this['_addThreadToSuggestion'](_0x3a75c1),this[_0x4334('0x25')](_0x3a75c1,_0x5613a0,_0x469396||null,_0x414251),_0x3a75c1[_0x4334('0x6a')]=_0x342006[_0x4334('0x6a')],_0x2b2114&&_0x2b2114[_0x4334('0x92')]){const _0x1c4bf8=_0x2b2114[_0x4334('0x92')],_0x1a1ac6=this[_0x4334('0x9f')](_0x1c4bf8[_0x4334('0x3')]);_0x3a75c1[_0x4334('0x8e')]=_0x1c4bf8[_0x4334('0x6a')],_0x3a75c1[_0x4334('0x21')]=_0x1a1ac6,_0x3a75c1['isExternal']=!0x0;}else _0x3a75c1[_0x4334('0x8e')]=_0x342006[_0x4334('0x6a')];switch(_0x342006[_0x4334('0x1e')]&&(_0x3a75c1[_0x4334('0x1e')]=_0x342006[_0x4334('0x1e')]),_0x342006['attributes']&&(_0x3a75c1[_0x4334('0xb0')]=_0x342006[_0x4334('0xb0')]),this[_0x4334('0x131')]&&this[_0x4334('0x131')]['addSuggestion']||(_0x3a75c1[_0x4334('0xbe')]=!0x0),this[_0x4334('0x125')][_0x4334('0x40')](_0x3a75c1)){case _0x4334('0x89'):this[_0x4334('0x125')]['set'](_0x3a75c1,_0x4334('0x8d'));break;case _0x4334('0x41'):_0x3a75c1[_0x4334('0x12')]?(this[_0x4334('0x125')][_0x4334('0xaf')](_0x3a75c1,_0x4334('0x55')),this['fire'](_0x4334('0x3b'),_0x3a75c1)):this[_0x4334('0x125')][_0x4334('0xaf')](_0x3a75c1,_0x4334('0xad'));}return _0x3a75c1;}[_0x4334('0xc3')](_0x53e2ed){this[_0x4334('0x105')](()=>{this[_0x4334('0x67')][_0x4334('0xcc')][_0x4334('0xb2')](()=>{for(const _0x492f5a of _0x53e2ed[_0x4334('0xd1')]())_0x492f5a[_0x4334('0x75')]();});});}[_0x4334('0x10c')](_0x41b774){this[_0x4334('0x105')](()=>{this[_0x4334('0x67')][_0x4334('0xcc')]['change'](()=>{for(const _0x1aa584 of _0x41b774[_0x4334('0xd1')]())_0x1aa584['discard']();});});}['enableCommand'](_0xdcf972,_0x4f02c6){const _0x3de7b1=this[_0x4334('0x67')][_0x4334('0x122')][_0x4334('0x40')](_0xdcf972);if(!_0x3de7b1)throw new _0x2bebbb(_0x4334('0xcb'),this,{'commandName':_0xdcf972});this[_0x4334('0xa')]['add'](_0x3de7b1),_0x4f02c6&&_0x3de7b1['on'](_0x4334('0x72'),(_0x460303,_0x1ab7d0)=>{this[_0x4334('0x74')][_0x4334('0x11b')]&&(this[_0x4334('0x39')]||_0x1ab7d0[_0x4334('0xa5')]>0x0&&_0x1ab7d0[_0x1ab7d0[_0x4334('0xa5')]-0x1]&&_0x1ab7d0[_0x1ab7d0[_0x4334('0xa5')]-0x1][_0x4334('0x105')]||(_0x4f02c6((..._0x3d583a)=>_0x3de7b1['execute'](..._0x3d583a,{'forceDefaultExecution':!0x0}),..._0x1ab7d0),_0x460303[_0x4334('0x3c')]()));},{'priority':_0x4334('0x114')});}[_0x4334('0x105')](_0x54eeb5){let _0x436847,_0x16775e;const _0x3cd942=this['_isForcedDefaultExecutionBlock'];this[_0x4334('0x39')]=!0x0;try{_0x436847=_0x54eeb5();}catch(_0x17257b){_0x16775e=_0x17257b;}return _0x3cd942||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16775e&&_0x2bebbb[_0x4334('0xb9')](_0x16775e,this),_0x436847;}[_0x4334('0x7f')](_0x14e939,_0x106535=null,_0x375902={}){if(_0x14e939[_0x4334('0x19')])return null;const _0x5acf68=this[_0x4334('0x67')][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'];for(const {suggestion:_0x4fefe4,meta:_0x4bbbd6}of this[_0x4334('0xeb')](_0x14e939,_0x4334('0xea')))if(_0x4bbbd6['isOwn']){if(!_0x4bbbd6[_0x4334('0x60')]){if(!this[_0x4334('0x69')]&&_0x4bbbd6['containsRangeInObject'])continue;return _0x4fefe4;}if(_0x106535==_0x4fefe4[_0x4334('0xf0')]){const _0x5c61e4=_0x4fefe4[_0x4334('0x9')]();return _0x5c61e4[_0x4334('0x4f')]['isEqual'](_0x14e939[_0x4334('0x5')])?this['_setSuggestionRange'](_0x4fefe4,this[_0x4334('0x91')][_0x4334('0xb4')](_0x14e939[_0x4334('0x4f')],_0x5c61e4[_0x4334('0x5')])):this[_0x4334('0x70')](_0x4fefe4,this[_0x4334('0x91')][_0x4334('0xb4')](_0x5c61e4[_0x4334('0x4f')],_0x14e939[_0x4334('0x5')])),_0x4fefe4;}}const _0x79beb6=_0x2a71e3(),_0x18b762=_0x5acf68['id'],_0x28059b=_0x106535?_0x4334('0x112')+_0x106535:_0x4334('0xea'),_0xb20ae0=this[_0x4334('0x1f')]({'id':_0x79beb6,'type':_0x28059b,'createdAt':new Date(),'authorId':_0x18b762,'attributes':_0x375902});return this[_0x4334('0xe1')](_0x28059b,_0x79beb6,_0x18b762,_0x14e939),_0xb20ae0;}[_0x4334('0x3f')](_0x7013e7,_0x5f1a9d=_0x4334('0x2b'),_0xd7e434={}){const _0x364d43=this[_0x4334('0x67')]['plugins']['get'](_0x4334('0x128'))['me'],_0x29e1e2=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0xea'),_0x5f1a9d,_0x4334('0x4c'));for(const _0x5f598b of this['getSuggestions']())if(_0x5f598b['author']['id']==_0x364d43['id']&&_0x4334('0xea')==_0x5f598b[_0x4334('0x138')]&&_0x5f598b[_0x4334('0xf0')]==_0x5f1a9d&&(_0x29e1e2(_0x5f598b['getRanges'](),_0x7013e7)||_0x29e1e2(_0x7013e7,_0x5f598b[_0x4334('0x137')]()))){for(const _0x545399 of _0x7013e7)_0x5f598b[_0x4334('0xae')](_0x545399);return _0x5f598b;}if(this[_0x4334('0x69')])for(const _0x5c87cb of _0x7013e7)for(const {suggestion:_0x2c056b,meta:_0x502ad1}of this[_0x4334('0xeb')](_0x5c87cb,_0x4334('0xea'))){if(!_0x502ad1['isOwn'])continue;let _0x151e4a=!0x0;for(const _0x416c35 of _0x2c056b[_0x4334('0x137')]())for(const _0x3cab1f of _0x7013e7)if(!_0x416c35[_0x4334('0x99')](_0x3cab1f)){_0x151e4a=!0x1;break;}if(_0x151e4a)return _0x2c056b;}const _0x5096a2=_0x2a71e3(),_0x30c062=_0x364d43['id'],_0x260d01='insertion:'+_0x5f1a9d,_0x3c0d2d=this[_0x4334('0x1f')]({'id':_0x5096a2,'type':_0x260d01,'createdAt':new Date(),'authorId':_0x30c062,'attributes':_0xd7e434});for(const _0x47167d of _0x7013e7)this[_0x4334('0xe1')](_0x260d01,_0x5096a2,_0x30c062,_0x47167d,_0x23eeb3[_0x4334('0x5c')]());return _0x3c0d2d;}[_0x4334('0xd4')](_0x4d5260,_0x3f8d20,_0x4ed2d0=null,_0x4fbe27={}){if(_0x4ed2d0=_0x4ed2d0||$t(_0x3f8d20),_0x4d5260[_0x4334('0x19')])return null;if(_0x4334('0x10')===this['_trackFormatChanges']){const _0x7e14a5=this['_suggestionFactory'][_0x4334('0xf8')](_0x4334('0x94'),_0x4ed2d0,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x7e14a5([_0x4d5260],_0x3f8d20,_0x4fbe27)),null;}const _0xd2d3da=this[_0x4334('0x67')][_0x4334('0x11f')][_0x4334('0x40')]('Users')['me'],_0x29f84b=[];if(_0x4334('0x11a')!==this[_0x4334('0xc8')])for(const {suggestion:_0x491406,meta:_0x13b7ec}of this[_0x4334('0xeb')](_0x4d5260,_0x4334('0xea')))_0x13b7ec['isOwn']&&!_0x13b7ec[_0x4334('0xf1')]&&_0x29f84b['push'](..._0x491406[_0x4334('0x137')]());const _0x4a0ab9=function(_0x43a348,_0x47e3c7){const _0x19cf75=[];for(const _0x1e1e08 of _0x47e3c7){const _0x1987bf=_0x43a348[_0x4334('0x135')](_0x1e1e08);_0x1987bf&&_0x19cf75[_0x4334('0x8')](_0x1987bf);}return _0x19cf75;}(_0x4d5260,_0x29f84b),_0x11213d=function(_0x2e71b7,_0x12b53c){const _0x4e2c97=[_0x2e71b7];for(const _0x20792b of _0x12b53c){let _0x2556d2=0x0;for(;_0x2556d2<_0x4e2c97['length'];){const _0x37b9ce=_0x4e2c97[_0x2556d2][_0x4334('0xda')](_0x20792b);_0x4e2c97[_0x4334('0x130')](_0x2556d2,0x1,..._0x37b9ce),_0x2556d2+=_0x37b9ce[_0x4334('0xa5')];}}return _0x4e2c97;}(_0x4d5260,_0x29f84b);_0x4a0ab9[_0x4334('0xa5')]&&this['_model'][_0x4334('0xb2')](()=>{for(const _0x26d1cd of _0x4a0ab9){const _0x31460c=this['_suggestionFactory'][_0x4334('0xf8')]('formatInline',_0x4ed2d0,'accept');this[_0x4334('0x105')](()=>_0x31460c([_0x26d1cd],_0x3f8d20,_0x4fbe27));}});for(const _0x50ee33 of _0x11213d){let _0x39108b=null,_0x4bc5cb=_0x50ee33[_0x4334('0x4f')],_0x59777d=_0x50ee33['end'];for(const {suggestion:_0x46205a,meta:_0x2d59b5}of this[_0x4334('0xeb')](_0x50ee33,_0x4334('0x94'))){if(!_0x2d59b5['isOwn'])continue;if(_0x46205a['subType']!=_0x4ed2d0)continue;const _0x1b19ff=_0x46205a['getFirstRange']();if(_0x1b19ff[_0x4334('0x99')](_0x50ee33,!0x0))return null;_0x4bc5cb=_0x4bc5cb[_0x4334('0x111')](_0x1b19ff['start'])?_0x4bc5cb:_0x1b19ff[_0x4334('0x4f')],_0x59777d=_0x59777d[_0x4334('0xc')](_0x1b19ff[_0x4334('0x5')])?_0x59777d:_0x1b19ff[_0x4334('0x5')],_0x39108b?_0x1b19ff[_0x4334('0x4f')]['isBefore'](_0x39108b['getFirstRange']()['start'])?(_0x39108b[_0x4334('0x109')](),_0x39108b=_0x46205a):_0x46205a['removeMarkers']():_0x39108b=_0x46205a;}const _0x6e5d12=this[_0x4334('0x91')][_0x4334('0xb4')](_0x4bc5cb,_0x59777d);if(_0x39108b)this[_0x4334('0x70')](_0x39108b,_0x6e5d12);else{const _0x31db98=_0x2a71e3(),_0x1bc1ec=_0xd2d3da['id'];this[_0x4334('0x1f')]({'id':_0x31db98,'type':_0x4334('0x139')+_0x4ed2d0,'data':_0x3f8d20,'createdAt':new Date(),'authorId':_0x1bc1ec,'attributes':_0x4fbe27}),this['_addSuggestionMarker']('formatInline:'+_0x4ed2d0,_0x31db98,_0x1bc1ec,_0x6e5d12);}}return null;}[_0x4334('0xdf')](_0x3f1d6a,_0x4c9f41,_0x2a7c60=[],_0x3e546e=null,_0x2b1e99={}){_0x4c9f41[_0x4334('0xd2')]||(_0x4c9f41[_0x4334('0xd2')]=_0x4c9f41[_0x4334('0xe')]),_0x4c9f41[_0x4334('0x52')]=_0x3f1d6a['is'](_0x4334('0x10e')),_0x3e546e=_0x3e546e||$t(_0x4c9f41);const _0x86a1ff=_0x2a7c60[_0x4334('0x33')](_0x9ce68e=>Rt(_0x9ce68e,this[_0x4334('0x91')])),_0x583d3b=_0x3f1d6a['is'](_0x4334('0x10e'))?_0x3f1d6a:Rt(_0x3f1d6a,this[_0x4334('0x91')]);if(_0x4334('0x10')===this[_0x4334('0xc8')]){const _0xbec942=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x3e546e,'accept');return this[_0x4334('0x105')](()=>_0xbec942([_0x583d3b],_0x4c9f41,_0x2b1e99)),null;}_0x86a1ff[_0x4334('0x8')](_0x583d3b);let _0x27010d=!0x0;for(const _0x5f38b9 of _0x86a1ff)if(!this[_0x4334('0x6d')](_0x5f38b9)){_0x27010d=!0x1;break;}if(_0x27010d&&_0x4334('0x11a')!==this[_0x4334('0xc8')]){const _0x5144b0=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x3e546e,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x5144b0([_0x583d3b],_0x4c9f41,_0x2b1e99)),null;}let _0x540f53=null,_0x10809b=_0x583d3b[_0x4334('0x4f')],_0x3b6aa6=_0x583d3b['end'];for(const {suggestion:_0x337e98,meta:_0x382e1a}of this[_0x4334('0xeb')](_0x583d3b,_0x4334('0x2c'))){if(!_0x382e1a['isOwn']||_0x382e1a[_0x4334('0x60')]||_0x382e1a[_0x4334('0x9b')]||_0x382e1a[_0x4334('0xf1')])continue;if(_0x337e98[_0x4334('0x1e')]['formatGroupId']!=_0x4c9f41['formatGroupId'])continue;const _0x13b4e0=_0x337e98[_0x4334('0x9')]();if(_0x337e98[_0x4334('0xf0')]==_0x3e546e){if(_0x13b4e0[_0x4334('0x99')](_0x583d3b,!0x0))return null;_0x10809b=_0x10809b['isBefore'](_0x13b4e0[_0x4334('0x4f')])?_0x10809b:_0x13b4e0[_0x4334('0x4f')],_0x3b6aa6=_0x3b6aa6['isAfter'](_0x13b4e0[_0x4334('0x5')])?_0x3b6aa6:_0x13b4e0[_0x4334('0x5')],_0x540f53?_0x13b4e0[_0x4334('0x4f')][_0x4334('0x111')](_0x540f53[_0x4334('0x9')]()[_0x4334('0x4f')])?(_0x540f53[_0x4334('0x109')](),_0x540f53=_0x337e98):_0x337e98[_0x4334('0x109')]():_0x540f53=_0x337e98;}else{const _0x2166db=_0x583d3b['getIntersection'](_0x13b4e0);this['_cutOutSuggestionMarker'](_0x337e98,_0x2166db);}}const _0x4c86a9=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'],_0x5213e4=_0x2a71e3(),_0x37617f=_0x4c86a9['id'];if(_0x540f53)return this['_setSuggestionRange'](_0x540f53,this[_0x4334('0x91')]['createRange'](_0x10809b,_0x3b6aa6)),_0x540f53;{const _0x117251=this['_setSuggestionData']({'id':_0x5213e4,'type':'formatBlock:'+_0x3e546e,'data':_0x4c9f41,'createdAt':new Date(),'authorId':_0x37617f,'attributes':_0x2b1e99});return this['_addSuggestionMarker']('formatBlock:'+_0x3e546e,_0x5213e4,_0x37617f,this['_model'][_0x4334('0xb4')](_0x10809b,_0x3b6aa6)),_0x117251;}}[_0x4334('0x13c')](_0x1c7646,_0x2bd7a6,_0x364bc9=[],_0x4d11a6=null,_0x3ab353={}){_0x2bd7a6[_0x4334('0xd2')]||(_0x2bd7a6['formatGroupId']=_0x2bd7a6[_0x4334('0xe')]);const _0x33ca3c=_0x1c7646[0x0];_0x2bd7a6[_0x4334('0x52')]=_0x33ca3c['is']('range'),_0x4d11a6=_0x4d11a6||$t(_0x2bd7a6);const _0x3d6352=_0x364bc9[_0x4334('0x33')](_0x5db76d=>Rt(_0x5db76d,this[_0x4334('0x91')])),_0x4a61eb=_0x33ca3c['is'](_0x4334('0x10e'))?_0x1c7646:_0x1c7646[_0x4334('0x33')](_0x4d8c0c=>Rt(_0x4d8c0c,this[_0x4334('0x91')]));if(_0x4334('0x10')===this[_0x4334('0xc8')]){const _0x43b3c1=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x4d11a6,'accept');return this['forceDefaultExecution'](()=>_0x43b3c1(_0x4a61eb,_0x2bd7a6,_0x3ab353)),null;}_0x3d6352['push'](..._0x4a61eb);let _0x34ac45=!0x0;for(const _0xb98f93 of _0x3d6352)if(!this['_rangeIsInLocalUserInsertion'](_0xb98f93)){_0x34ac45=!0x1;break;}if(_0x34ac45&&_0x4334('0x11a')!==this['_trackFormatChanges']){const _0x221dfd=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x4d11a6,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x221dfd(_0x4a61eb,_0x2bd7a6,_0x3ab353)),null;}const _0x2f1080=this[_0x4334('0x67')][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'];for(const _0x5ba8d7 of this[_0x4334('0x79')]()){if(_0x5ba8d7[_0x4334('0x21')]['id']!=_0x2f1080['id'])continue;if(_0x4334('0x2c')!=_0x5ba8d7['type']||_0x5ba8d7['data'][_0x4334('0xd2')]!=_0x2bd7a6[_0x4334('0xd2')])continue;const _0x396f3d=_0x5ba8d7[_0x4334('0xf0')]==_0x4d11a6;for(let _0x4162e5=0x0;_0x4162e5<_0x4a61eb[_0x4334('0xa5')];_0x4162e5++){const _0x1c6eb1=_0x4a61eb[_0x4162e5];for(const _0x2c83ab of _0x5ba8d7[_0x4334('0x4e')]()){const _0x7a3221=_0x2c83ab[_0x4334('0x9d')]();if(_0x1c6eb1[_0x4334('0xa3')](_0x7a3221)){_0x396f3d?(_0x4a61eb[_0x4334('0x130')](_0x4162e5,0x1),_0x4162e5--):_0x5ba8d7[_0x4334('0xe5')](_0x2c83ab[_0x4334('0x132')]);break;}}}}if(0x0==_0x4a61eb[_0x4334('0xa5')])return null;const _0x127153=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0x2c'),_0x4d11a6,_0x4334('0x4c'));for(const _0x1c34d7 of this[_0x4334('0x79')]())if(_0x1c34d7[_0x4334('0x21')]['id']==_0x2f1080['id']&&_0x4334('0x2c')==_0x1c34d7[_0x4334('0x138')]&&_0x1c34d7[_0x4334('0x1e')][_0x4334('0xd2')]==_0x2bd7a6[_0x4334('0xd2')]&&_0x1c34d7['subType']==_0x4d11a6&&(_0x127153(_0x1c34d7[_0x4334('0x137')](),_0x4a61eb)||_0x127153(_0x4a61eb,_0x1c34d7[_0x4334('0x137')]()))){for(const _0x3c8264 of _0x4a61eb)_0x1c34d7['addRange'](_0x3c8264);return _0x1c34d7;}const _0x427618=_0x2a71e3(),_0x496cbb=_0x2f1080['id'],_0x1d6199=_0x4334('0x7b')+_0x4d11a6,_0x40236d=this[_0x4334('0x1f')]({'id':_0x427618,'type':_0x1d6199,'data':_0x2bd7a6,'createdAt':new Date(),'authorId':_0x496cbb,'attributes':_0x3ab353});for(const _0x499b53 of _0x4a61eb)this[_0x4334('0xe1')](_0x1d6199,_0x427618,_0x496cbb,_0x499b53,_0x23eeb3[_0x4334('0x5c')]());return _0x40236d;}[_0x4334('0x104')](_0x248770,_0x5552c0=null,_0x38e62b={}){if(_0x248770[_0x4334('0x19')])return null;const _0x31e240=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'],_0x2c45db=new _0x3a048e(_0x248770['start'],_0x248770[_0x4334('0x5')]);for(const {suggestion:_0x582431,meta:_0x2c4720}of this[_0x4334('0xeb')](_0x2c45db,_0x4334('0xea')))if(_0x2c4720[_0x4334('0x45')]&&!_0x2c4720['isNextTo']){if(_0x582431[_0x4334('0x2f')]){const _0x2dac1b=_0x582431[_0x4334('0x137')]()['filter'](_0x4401a6=>_0x4334('0xbf')!=_0x4401a6[_0x4334('0x4d')][_0x4334('0xb1')]);_0x2dac1b[_0x4334('0x84')](_0x5afa4d=>_0x2c45db[_0x4334('0x99')](_0x5afa4d,!0x0))&&_0x582431['discard']();if(_0x2dac1b['some'](_0x443fbe=>_0x443fbe[_0x4334('0x99')](_0x2c45db,!0x0))){const _0x18bcc5=this[_0x4334('0xf9')][_0x4334('0xf8')]('deletion',_0x5552c0,_0x4334('0x75'));return this[_0x4334('0x105')](()=>_0x18bcc5([_0x2c45db],null,_0x38e62b)),null;}}else{const _0xf7a338=_0x2c45db['getIntersection'](_0x582431['getFirstRange']());null!==_0xf7a338&&_0x582431[_0x4334('0x57')]([_0xf7a338],null,_0x38e62b);}}if(_0x2c45db[_0x4334('0x93')](),_0x2c45db['isCollapsed']||_0x4334('0xbf')==_0x2c45db['root'][_0x4334('0xb1')])return null;let _0x10b514=null,_0x26602f=_0x2c45db[_0x4334('0x4f')],_0x38e8ad=_0x2c45db['end'];for(const {suggestion:_0x4b54a2,meta:_0x502836}of this[_0x4334('0xeb')](_0x2c45db,_0x4334('0xa4')))if(_0x502836['isOwn']){if(_0x4b54a2[_0x4334('0x2f')]&&this[_0x4334('0x69')]){let _0x25d272=!0x0;for(const _0x4317ed of _0x4b54a2[_0x4334('0x137')]()){if(_0x4317ed[_0x4334('0x99')](_0x2c45db,!0x0))return _0x4b54a2;_0x2c45db['containsRange'](_0x4317ed)||(_0x25d272=!0x1);}_0x25d272&&_0x4b54a2[_0x4334('0x10a')]();}else{const _0x51cd3f=_0x4b54a2['getFirstRange']();if(_0x51cd3f[_0x4334('0x99')](_0x2c45db,!0x0)){if(!this[_0x4334('0x69')]&&_0x502836[_0x4334('0x9b')])continue;return _0x4b54a2;}_0x26602f=_0x26602f[_0x4334('0x111')](_0x51cd3f[_0x4334('0x4f')])?_0x26602f:_0x51cd3f[_0x4334('0x4f')],_0x38e8ad=_0x38e8ad[_0x4334('0xc')](_0x51cd3f[_0x4334('0x5')])?_0x38e8ad:_0x51cd3f[_0x4334('0x5')],_0x10b514?_0x51cd3f[_0x4334('0x4f')]['isBefore'](_0x10b514['getFirstRange']()[_0x4334('0x4f')])?(_0x10b514[_0x4334('0x109')](),_0x10b514=_0x4b54a2):_0x4b54a2[_0x4334('0x109')]():_0x10b514=_0x4b54a2;}}if(_0x10b514)return this[_0x4334('0x70')](_0x10b514,this['_model'][_0x4334('0xb4')](_0x26602f,_0x38e8ad)),_0x10b514;{const _0x5a2f0f=_0x2a71e3(),_0x11615d=this['_model'][_0x4334('0xb4')](_0x26602f,_0x38e8ad),_0x2a80bb=_0x31e240['id'],_0x2af2c6=_0x5552c0?_0x4334('0x56')+_0x5552c0:_0x4334('0xa4'),_0x1991bb=this['_setSuggestionData']({'id':_0x5a2f0f,'type':_0x2af2c6,'createdAt':new Date(),'authorId':_0x2a80bb,'attributes':_0x38e62b});return this[_0x4334('0xe1')](_0x2af2c6,_0x5a2f0f,_0x2a80bb,_0x11615d),_0x1991bb;}}[_0x4334('0x4')](_0x51e990,_0x5e60e0=_0x4334('0x2b'),_0x228947={}){const _0x59cfa=this[_0x4334('0x67')][_0x4334('0x11f')]['get']('Users')['me'],_0x4d7286=_0x51e990[_0x4334('0x33')](_0x207de1=>new _0x3a048e(_0x207de1['start'],_0x207de1[_0x4334('0x5')])),_0x1b7c32=new Set();for(const _0x335212 of _0x4d7286)for(const {suggestion:_0x3311b3,meta:_0x234679}of this[_0x4334('0xeb')](_0x335212,_0x4334('0xea')))_0x234679[_0x4334('0x45')]&&!_0x234679['isNextTo']&&_0x1b7c32[_0x4334('0xf7')](_0x3311b3);for(const _0x21193e of _0x1b7c32)if(_0x21193e[_0x4334('0x2f')]){const _0x19d204=_0x21193e['getRanges']();(!_0x21193e[_0x4334('0xb0')]||!_0x21193e['attributes'][_0x4334('0xdc')])&&(_0x19d204[_0x4334('0x84')](_0x4de640=>_0x4d7286['some'](_0x2caf6b=>_0x2caf6b[_0x4334('0x99')](_0x4de640,!0x0)))&&_0x21193e[_0x4334('0x10a')]());if(_0x4d7286[_0x4334('0x84')](_0x49d1f7=>_0x19d204[_0x4334('0xc9')](_0xffa3b9=>_0xffa3b9[_0x4334('0x99')](_0x49d1f7,!0x0)))){const _0x4221a2=this[_0x4334('0xf9')][_0x4334('0xf8')]('deletion',_0x5e60e0,'accept');return this[_0x4334('0x105')](()=>_0x4221a2(_0x51e990,null,_0x228947)),null;}}else{const _0x42af43=_0x21193e['getFirstRange']();_0x4d7286[_0x4334('0xc9')](_0x7ed4dd=>_0x7ed4dd[_0x4334('0x99')](_0x42af43,!0x0))&&_0x21193e[_0x4334('0x10a')]();if(_0x4d7286[_0x4334('0x84')](_0x1ed223=>_0x42af43[_0x4334('0x99')](_0x1ed223,!0x0))){const _0x4e63ab=this[_0x4334('0xf9')]['getSuggestionCallback'](_0x4334('0xa4'),_0x5e60e0,'accept');return this[_0x4334('0x105')](()=>_0x4e63ab(_0x4d7286,null,_0x228947)),null;}}const _0x311d36=this[_0x4334('0xf9')][_0x4334('0xf8')](_0x4334('0xa4'),_0x5e60e0,_0x4334('0x4c'));let _0x44125e=null;for(const _0x419974 of this['getSuggestions']())if(_0x419974[_0x4334('0x21')]['id']==_0x59cfa['id']&&_0x419974[_0x4334('0x12')]&&'deletion'==_0x419974[_0x4334('0x138')]&&_0x419974[_0x4334('0xf0')]==_0x5e60e0&&(_0x311d36(_0x419974[_0x4334('0x137')](),_0x4d7286)||_0x311d36(_0x4d7286,_0x419974[_0x4334('0x137')]()))){if(_0x44125e){if(_0x419974[_0x4334('0x12b')]&&_0x419974[_0x4334('0x12b')][_0x4334('0xa5')])continue;for(const _0x152b68 of _0x419974['getRanges']())_0x44125e[_0x4334('0xef')](_0x152b68)||_0x44125e[_0x4334('0xae')](_0x152b68);_0x419974['removeMarkers']();}else{_0x44125e=_0x419974;for(const _0x34cfe2 of _0x4d7286)_0x419974[_0x4334('0xef')](_0x34cfe2)||_0x419974[_0x4334('0xae')](_0x34cfe2);}}if(_0x44125e)return _0x44125e;_0x1b7c32[_0x4334('0x142')]();for(const _0x4c356c of _0x4d7286)for(const {suggestion:_0x20be96,meta:_0x46ad11}of this[_0x4334('0xeb')](_0x4c356c,_0x4334('0xa4')))_0x46ad11[_0x4334('0x45')]&&_0x1b7c32['add'](_0x20be96);for(const _0x48bd94 of _0x1b7c32){const _0x460f0f=_0x48bd94[_0x4334('0x137')]();if(!_0x228947||!_0x228947[_0x4334('0xdc')]){if(_0x4d7286[_0x4334('0x84')](_0x2e6758=>_0x460f0f[_0x4334('0xc9')](_0x3a87f1=>_0x3a87f1[_0x4334('0x99')](_0x2e6758,!0x0))))return _0x48bd94;}(!_0x48bd94[_0x4334('0xb0')]||!_0x48bd94[_0x4334('0xb0')][_0x4334('0xdc')])&&(_0x460f0f[_0x4334('0x84')](_0x571c77=>_0x4d7286['some'](_0x2fe1d4=>_0x2fe1d4['containsRange'](_0x571c77,!0x0)))&&_0x48bd94['discard']());}const _0x59f582=_0x2a71e3(),_0x3120ce=_0x59cfa['id'],_0x50705c=_0x4334('0x56')+_0x5e60e0,_0x3e55f8=this[_0x4334('0x1f')]({'id':_0x59f582,'type':_0x50705c,'createdAt':new Date(),'authorId':_0x3120ce,'attributes':_0x228947});for(const _0xe2766 of _0x4d7286)_0xe2766[_0x4334('0x93')](),_0xe2766[_0x4334('0x19')]||_0x4334('0xbf')==_0xe2766['root']['rootName']||this[_0x4334('0xe1')](_0x50705c,_0x59f582,_0x3120ce,_0xe2766,_0x23eeb3[_0x4334('0x5c')]());return _0x3e55f8;}['_setSuggestionRange'](_0x294e98,_0x20bc8b){const _0x201b93=_0x294e98['getFirstMarker']();this[_0x4334('0x91')][_0x4334('0xb2')](_0x2ec405=>{_0x2ec405[_0x4334('0xb5')](_0x201b93,{'range':_0x20bc8b});});}['_addThreadToSuggestion'](_0x540a81){const _0x515efb=_0x540a81['id'],_0x10671f=this['editor'][_0x4334('0x106')][_0x4334('0x40')](_0x4334('0xab'));this['_commentsRepository'][_0x4334('0x90')](_0x515efb)||this[_0x4334('0x76')][_0x4334('0x4a')]({'channelId':_0x10671f,'threadId':_0x515efb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e9e35=this[_0x4334('0x76')][_0x4334('0x62')](_0x515efb);_0x1e9e35[_0x4334('0xa8')](_0x4334('0x78')),_0x1e9e35[_0x4334('0x78')]=!0x1,_0x540a81[_0x4334('0x12b')]=_0x1e9e35;}[_0x4334('0x25')](_0x53ce29,_0x39b146,_0x230236,_0x1de721){if(_0x53ce29[_0x4334('0x138')]!=_0x39b146||_0x53ce29[_0x4334('0xf0')]!=_0x230236||_0x53ce29['creator']['id']!=_0x1de721)throw this['editor'][_0x4334('0xa0')](_0x4334('0x7c')),new _0x2bebbb('track-changes-suggestion-data-mismatch',this);}[_0x4334('0x66')](_0xded1d9,_0x182033){const _0x2f0293=_0xded1d9[_0x4334('0x9')]();if(_0x182033[_0x4334('0xa3')](_0x2f0293))_0xded1d9[_0x4334('0x109')]();else{if(_0x2f0293[_0x4334('0x99')](_0x182033)){const _0x3228cc=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033[_0x4334('0x4f')]['nodeBefore'],_0x4334('0x5'));this[_0x4334('0x70')](_0xded1d9,this['_model'][_0x4334('0xb4')](_0x2f0293['start'],_0x3228cc));const _0x3981c9=_0x2a71e3(),_0x43e408=_0xded1d9[_0x4334('0xb')]['id'],_0x2ac98d=_0xded1d9[_0x4334('0x138')]+':'+_0xded1d9[_0x4334('0xf0')];this['_setSuggestionData']({'id':_0x3981c9,'type':_0x2ac98d,'createdAt':new Date(),'authorId':_0x43e408,'data':_0xded1d9[_0x4334('0x1e')],'attributes':_0xded1d9['attributes']});const _0x1d3c32=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033['end'][_0x4334('0x10d')],_0x4334('0x121')),_0x20500d=this[_0x4334('0x91')]['createRange'](_0x1d3c32,_0x2f0293[_0x4334('0x5')]);this['_addSuggestionMarker'](_0x2ac98d,_0x3981c9,_0x43e408,_0x20500d);}else{if(_0x2f0293[_0x4334('0xe9')](_0x182033[_0x4334('0x4f')])){const _0xd20b92=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033['start'][_0x4334('0xfa')],_0x4334('0x5'));this[_0x4334('0x70')](_0xded1d9,this[_0x4334('0x91')][_0x4334('0xb4')](_0x2f0293['start'],_0xd20b92));}else{const _0x52179c=this[_0x4334('0x91')][_0x4334('0x12d')](_0x182033[_0x4334('0x5')][_0x4334('0x10d')],_0x4334('0x121'));this[_0x4334('0x70')](_0xded1d9,this[_0x4334('0x91')]['createRange'](_0x52179c,_0x2f0293['end']));}}}}[_0x4334('0x6d')](_0x54257f){for(const {suggestion:_0x3c724f,meta:_0x1fc914}of this['_findSuggestions'](_0x54257f,_0x4334('0xea'))){if(!_0x1fc914[_0x4334('0x45')])continue;const _0x30d2b8=_0x3c724f[_0x4334('0x137')]();for(const _0x40e74f of _0x30d2b8)if(!_0x54257f['getDifference'](_0x40e74f)[_0x4334('0xa5')])return!0x0;}return!0x1;}[_0x4334('0x80')](_0x3a0ce2){const _0x391926=this[_0x4334('0x67')][_0x4334('0x11f')]['get'](_0x4334('0x128'))[_0x4334('0x8f')](_0x3a0ce2);if(!_0x391926)throw new _0x2bebbb('track-changes-user-not-found',this);return _0x391926;}[_0x4334('0x9f')](_0x2ae2aa){const _0x1fe8a3=this['editor'][_0x4334('0x11f')][_0x4334('0x40')]('Users'),_0x1a4459=_0x3178f7(_0x4334('0x13f')+_0x2ae2aa),_0x5664d7=_0x1fe8a3['getUser'](_0x1a4459);return _0x5664d7||_0x1fe8a3[_0x4334('0x124')]({'id':_0x1a4459,'name':_0x2ae2aa});}['_createSuggestion'](_0x295218,_0x18477b,_0x42cbb7,_0x2834dc,_0x2a114e){const _0x10de85=this[_0x4334('0x80')](_0x2834dc),_0x6774df=this[_0x4334('0xf9')][_0x4334('0x83')](_0x295218,_0x18477b,_0x42cbb7,_0x10de85,_0x2a114e,_0x17dbc7=>this[_0x4334('0x10f')](_0x42cbb7,{'attributes':_0x17dbc7}));return this[_0x4334('0x65')](_0x6774df,_0x4334('0x75'),()=>{this['_updateSuggestionData'](_0x42cbb7,{'state':_0x4334('0xde')});},{'priority':_0x4334('0x114')}),this[_0x4334('0x65')](_0x6774df,_0x4334('0x10a'),()=>{this[_0x4334('0x10f')](_0x42cbb7,{'state':_0x4334('0x12e')});},{'priority':'high'}),this[_0x4334('0xdd')][_0x4334('0xaf')](_0x42cbb7,_0x6774df),this[_0x4334('0x125')][_0x4334('0xaf')](_0x6774df,'notReady'),_0x6774df;}[_0x4334('0x1')](_0x3bdd8b){const _0x729840=_0x3bdd8b['split'](':');return{'group':_0x729840[0x0],'type':_0x729840[0x1],'subType':_0x729840['length']>=0x5?_0x729840[0x2]:null,'id':_0x729840[_0x4334('0xa5')]<0x5?_0x729840[0x2]:_0x729840[0x3],'authorId':_0x729840['length']<0x5?_0x729840[0x3]:_0x729840[0x4],'markerCount':0x6==_0x729840['length']?_0x729840[0x5]:null};}[_0x4334('0x6c')](_0x3fa9a1,_0x7a2187,_0x45efc4){const _0x58d5f0=_0x3fa9a1['getFirstRange'](),_0x361540=_0x58d5f0[_0x4334('0x4f')],_0x47d125=_0x58d5f0['end'];this[_0x4334('0x70')](_0x3fa9a1,this[_0x4334('0x91')]['createRange'](_0x361540,_0x7a2187));const _0x3c7c56=_0x2a71e3(),_0x5e7c8c=_0x3fa9a1[_0x4334('0xb')]['id'],_0x4c2a29=_0x3fa9a1['type']+(_0x3fa9a1[_0x4334('0xf0')]?':'+_0x3fa9a1[_0x4334('0xf0')]:'');this[_0x4334('0x1f')]({'id':_0x3c7c56,'type':_0x4c2a29,'createdAt':new Date(),'authorId':_0x5e7c8c,'originalSuggestionId':_0x3fa9a1['id'],'attributes':_0x3fa9a1['attributes'],'data':_0x3fa9a1[_0x4334('0x1e')]}),_0x4334('0x2c')==_0x3fa9a1[_0x4334('0x138')]&&(_0x45efc4=this['_model'][_0x4334('0x46')](_0x45efc4[_0x4334('0x10d')])),this['_addSuggestionMarker'](_0x4c2a29,_0x3c7c56,_0x5e7c8c,this[_0x4334('0x91')][_0x4334('0xb4')](_0x45efc4,_0x47d125));}[_0x4334('0xeb')](_0x5a953a,_0x1416ef=null){const _0x11dd1d=[],_0x1a7eef=this['_model'][_0x4334('0xbd')],_0x3257c5=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x128'))['me'];for(const _0x3bf367 of this[_0x4334('0x79')]())if(_0x3bf367[_0x4334('0x12')]&&(!_0x1416ef||_0x3bf367[_0x4334('0x138')]==_0x1416ef))for(const _0x4d1f69 of _0x3bf367[_0x4334('0x137')]()){const _0x4018cc=_0x5a953a[_0x4334('0x4f')]['isEqual'](_0x4d1f69[_0x4334('0x5')])||_0x5a953a[_0x4334('0x5')][_0x4334('0xa3')](_0x4d1f69['start']);if(_0x4018cc||_0x5a953a['getIntersection'](_0x4d1f69)){const _0x1fc392=_0x5a953a[_0x4334('0x99')](_0x4d1f69)&&Bt(_0x1a7eef,_0x4d1f69[_0x4334('0x4f')],_0x5a953a),_0x2c009d=_0x4d1f69['containsRange'](_0x5a953a)&&Bt(_0x1a7eef,_0x5a953a[_0x4334('0x4f')],_0x4d1f69);_0x11dd1d[_0x4334('0x8')]({'suggestion':_0x3bf367,'meta':{'isOwn':_0x3257c5==_0x3bf367[_0x4334('0x21')],'isNextTo':_0x4018cc,'isInsideObject':_0x1fc392,'containsRangeInObject':_0x2c009d}});break;}}return _0x11dd1d;}['_addSuggestionMarker'](_0x3729c6,_0x4ce5ae,_0x12bb09,_0x57b0bf,_0x36d87b){this['_model'][_0x4334('0xb2')](_0x1b5cf2=>{let _0x520dc2='suggestion:'+_0x3729c6+':'+_0x4ce5ae+':'+_0x12bb09;_0x36d87b&&(_0x520dc2=_0x520dc2+':'+_0x36d87b),_0x1b5cf2['addMarker'](_0x520dc2,{'range':_0x57b0bf,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4334('0xa7')](_0x124da1){const _0x27f5de=_0x124da1['previous'],_0x198a08=_0x124da1[_0x4334('0x7e')];_0x124da1[_0x4334('0x3e')]=null,null!=_0x27f5de&&(_0x27f5de[_0x4334('0x7e')]=null),_0x124da1[_0x4334('0x7e')]=null,null!=_0x198a08&&(_0x198a08[_0x4334('0x3e')]=null),'ready'==this[_0x4334('0x125')][_0x4334('0x40')](_0x124da1)&&(this[_0x4334('0x125')][_0x4334('0xaf')](_0x124da1,'removed'),this[_0x4334('0x7')]('suggestionUnloaded',_0x124da1,_0x27f5de,_0x198a08));}[_0x4334('0x1f')](_0xfa6633){const _0x5a5593=_0xfa6633['id'],_0x5d7cc1=this[_0x4334('0x36')](_0xfa6633);if(this[_0x4334('0x131')]&&this[_0x4334('0x131')]['addSuggestion']){const _0x2e239f=this['editor']['plugins']['get'](_0x4334('0x30')),_0x1e6dbd=_0x5d7cc1['hasComments'],_0x3a0f2d=_0x5d7cc1[_0x4334('0xf0')]?_0x5d7cc1[_0x4334('0x138')]+':'+_0x5d7cc1[_0x4334('0xf0')]:_0x5d7cc1[_0x4334('0x138')],_0x44f81e=this[_0x4334('0x67')]['locale'],_0x6fff85=_0x2e239f[_0x4334('0xf7')](_0x25dfb2(_0x44f81e,_0x4334('0x82'))),_0x4265ee={'id':_0x5a5593,'type':_0x3a0f2d,'hasComments':_0x1e6dbd,'data':_0xfa6633['data']||null,'originalSuggestionId':_0xfa6633['originalSuggestionId']||null,'attributes':_0x5d7cc1[_0x4334('0xb0')]};this[_0x4334('0x131')][_0x4334('0xd0')](_0x4265ee)[_0x4334('0x17')](_0x143962=>{_0x5d7cc1['_saved']=!0x0,_0x2e239f[_0x4334('0x85')](_0x6fff85),_0x143962&&_0x143962['createdAt']&&(this[_0x4334('0xdd')][_0x4334('0x40')](_0x5a5593)['createdAt']=_0x143962['createdAt']);})[_0x4334('0xa2')](_0x56ef83=>{throw _0xd617ef('error-saving-suggestion-data-suggestion-discarded'),this[_0x4334('0x67')][_0x4334('0xcc')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x5d7cc1[_0x4334('0x10a')]();}),_0x5d7cc1['stopListening'](),this[_0x4334('0xdd')]['delete'](_0x5d7cc1['id']),this['_suggestionState'][_0x4334('0x51')](_0x5d7cc1),_0x56ef83;});}return _0x5d7cc1;}['_updateSuggestionData'](_0x40f661,_0x5fd0c){const _0x53f874=this['editor'][_0x4334('0x11f')][_0x4334('0x40')](_0x4334('0x30')),_0x1d1d69=this[_0x4334('0x12f')](_0x40f661);if(this[_0x4334('0x131')]&&this[_0x4334('0x131')][_0x4334('0xe8')]){if(_0x1d1d69[_0x4334('0xbe')]){const _0x376c34=_0x53f874['add'](_0x25dfb2(this['editor']['locale'],_0x4334('0x82')));this[_0x4334('0x131')][_0x4334('0xe8')](_0x40f661,_0x5fd0c)[_0x4334('0x17')](()=>{_0x53f874[_0x4334('0x85')](_0x376c34);});}else _0x1d1d69['on'](_0x4334('0x2'),()=>{this[_0x4334('0x10f')](_0x40f661,_0x5fd0c);});}}[_0x4334('0x7d')](_0x1ea8b7){if(!this[_0x4334('0x131')]||!this[_0x4334('0x131')][_0x4334('0x12f')])throw new _0x2bebbb(_0x4334('0x13d'),this);return this[_0x4334('0x131')][_0x4334('0x12f')](_0x1ea8b7);}[_0x4334('0x6e')](_0x17591f){const {id:_0x1a3020,type:_0x36e983,subType:_0x58400a,authorId:_0x426c8a}=this['_splitMarkerName'](_0x17591f),_0x4e1dba=this[_0x4334('0xdd')][_0x4334('0x40')](_0x1a3020)||this[_0x4334('0x9c')](_0x36e983,_0x58400a,_0x1a3020,_0x426c8a,{});switch(this[_0x4334('0x25')](_0x4e1dba,_0x36e983,_0x58400a,_0x426c8a),this[_0x4334('0x125')]['get'](_0x4e1dba)){case _0x4334('0x89'):this[_0x4334('0x7d')](_0x1a3020)[_0x4334('0x17')](_0x36c791=>{let _0xa11b29=Promise[_0x4334('0xac')]();_0x36c791[_0x4334('0x0')]&&(_0xa11b29=this[_0x4334('0x76')][_0x4334('0x140')]({'channelId':this[_0x4334('0x67')][_0x4334('0x106')]['get'](_0x4334('0xab')),'threadId':_0x1a3020})),_0xa11b29['then'](()=>{this[_0x4334('0x36')](_0x36c791)[_0x4334('0xbe')]=!0x0;});}),this[_0x4334('0x125')]['set'](_0x4e1dba,_0x4334('0x41'));break;case _0x4334('0xad'):this[_0x4334('0x10f')](_0x1a3020,{'state':'open'});case'dataReady':this['_suggestionState'][_0x4334('0xaf')](_0x4e1dba,_0x4334('0x55')),this['fire'](_0x4334('0x3b'),_0x4e1dba);break;case'ready':this[_0x4334('0x7')](_0x4334('0x119'),_0x4e1dba);}return _0x4e1dba[_0x4334('0xb3')](_0x17591f),_0x4e1dba;}['_refreshSuggestionsChain'](_0x212165){const _0x45cb8a=Array[_0x4334('0x13b')](_0x212165)[_0x4334('0x38')](_0x1af4db=>!_0x1af4db[_0x4334('0x2f')]),_0x12c5df=this[_0x4334('0x79')]({'skipNotAttached':!0x0})['filter'](_0x4f5d58=>!_0x4f5d58[_0x4334('0x2f')]),_0x1aa98c=_0x12c5df[_0x4334('0x38')](_0x500de6=>!_0x212165[_0x4334('0x47')](_0x500de6)),_0x31f5f6=new Map(_0x12c5df[_0x4334('0x33')](_0x3730be=>[_0x3730be,this[_0x4334('0xf9')]['getSuggestionCallback'](_0x3730be[_0x4334('0x138')],_0x3730be['subType'],'chain')])),_0x20ac30=new Map(_0x12c5df[_0x4334('0x33')](_0x479a38=>[_0x479a38,_0x479a38[_0x4334('0x9')]()])),_0x3ec574=new Set(),_0x454a1b=new Set();for(let _0x1de614=0x0;_0x1de614<_0x45cb8a[_0x4334('0xa5')];_0x1de614++)_0x4b9f4a(_0x45cb8a[_0x1de614],_0x45cb8a,_0x1de614+0x1);for(let _0x3df244=0x0;_0x3df244<_0x45cb8a['length'];_0x3df244++)_0x4b9f4a(_0x45cb8a[_0x3df244],_0x1aa98c,0x0);for(let _0x1a78fc=0x0;_0x1a78fc<_0x45cb8a[_0x4334('0xa5')];_0x1a78fc++){const _0x546b66=_0x45cb8a[_0x1a78fc];!_0x454a1b[_0x4334('0x47')](_0x546b66)&&_0x546b66[_0x4334('0x3e')]&&(_0x546b66[_0x4334('0x3e')][_0x4334('0x7e')]===_0x546b66&&(_0x546b66[_0x4334('0x3e')][_0x4334('0x7e')]=null),_0x546b66[_0x4334('0x3e')]=null),!_0x3ec574[_0x4334('0x47')](_0x546b66)&&_0x546b66[_0x4334('0x7e')]&&(_0x546b66[_0x4334('0x7e')][_0x4334('0x3e')]===_0x546b66&&(_0x546b66['next'][_0x4334('0x3e')]=null),_0x546b66[_0x4334('0x7e')]=null);}function _0x4b9f4a(_0x4cf886,_0x4f955b,_0x266117){for(let _0x5d7a32=_0x266117;_0x5d7a32<_0x4f955b[_0x4334('0xa5')];_0x5d7a32++){const _0x138f46=_0x2e1b2f(_0x4cf886,_0x4f955b[_0x5d7a32]);_0x138f46&&(_0x138f46[0x0]['next']=_0x138f46[0x1],_0x138f46[0x1][_0x4334('0x3e')]=_0x138f46[0x0],_0x3ec574['add'](_0x138f46[0x0]),_0x454a1b[_0x4334('0xf7')](_0x138f46[0x1]));}}function _0x2e1b2f(_0x4cd5ad,_0x2f2e72){if(_0x4cd5ad['author']['id']!==_0x2f2e72[_0x4334('0x21')]['id'])return null;const _0x29adea=_0x31f5f6[_0x4334('0x40')](_0x4cd5ad)(_0x4cd5ad,_0x2f2e72,_0x20ac30[_0x4334('0x40')](_0x4cd5ad),_0x20ac30[_0x4334('0x40')](_0x2f2e72));if(!_0x29adea)return null;return _0x31f5f6[_0x4334('0x40')](_0x2f2e72)(_0x4cd5ad,_0x2f2e72,_0x20ac30[_0x4334('0x40')](_0x4cd5ad),_0x20ac30['get'](_0x2f2e72))?_0x29adea[0x1]['commentThread']&&_0x29adea[0x1][_0x4334('0x12b')]['length']?null:_0x29adea:null;}}['_joinWithAdjacentSuggestions'](_0x278908){const _0xdfa905=Array['from'](_0x278908),_0x59dffb=this[_0x4334('0x79')]({'skipNotAttached':!0x0}),_0x3b8394=_0x59dffb['filter'](_0x336de9=>!_0x278908['has'](_0x336de9)),_0x1a6bdd=new Map(_0xdfa905[_0x4334('0x33')](_0x49617d=>[_0x49617d,this[_0x4334('0xf9')][_0x4334('0xf8')](_0x49617d[_0x4334('0x138')],_0x49617d[_0x4334('0xf0')],_0x4334('0x4c'))])),_0x322c50=new Map(_0x59dffb[_0x4334('0x33')](_0x5c000c=>[_0x5c000c,_0x5c000c['getRanges']()]));for(let _0x4f2c5d=0x0;_0x4f2c5d<_0xdfa905[_0x4334('0xa5')];_0x4f2c5d++){if(_0x1ff16a(this,_0xdfa905[_0x4f2c5d],_0xdfa905,_0x4f2c5d+0x1))return!0x0;}for(let _0x4b7213=0x0;_0x4b7213<_0xdfa905[_0x4334('0xa5')];_0x4b7213++){if(_0x1ff16a(this,_0xdfa905[_0x4b7213],_0x3b8394,0x0))return!0x0;}return!0x1;function _0x1ff16a(_0x11738e,_0x490f02,_0x289dc3,_0x4a2244){for(let _0x430254=_0x4a2244;_0x430254<_0x289dc3[_0x4334('0xa5')];_0x430254++){const _0x506922=_0x289dc3[_0x430254];if(_0x506922[_0x4334('0x138')]!==_0x490f02['type']||_0x506922[_0x4334('0x21')]['id']!==_0x490f02[_0x4334('0x21')]['id']||_0x506922[_0x4334('0xf0')]!==_0x490f02['subType'])continue;const _0x2b6b2a=_0x1a6bdd['get'](_0x490f02),_0x1dd399=_0x322c50['get'](_0x490f02),_0x49d384=_0x322c50['get'](_0x506922),_0x6634f0=_0x490f02['commentThread']&&_0x490f02[_0x4334('0x12b')][_0x4334('0xa5')],_0x71f563=_0x506922['commentThread']&&_0x506922[_0x4334('0x12b')]['length'];if(!_0x6634f0&&_0x2b6b2a(_0x49d384,_0x1dd399))return _0x11738e[_0x4334('0xfb')](_0x506922,_0x490f02),_0x322c50[_0x4334('0x51')](_0x490f02),!0x0;if(!_0x71f563&&_0x2b6b2a(_0x1dd399,_0x49d384))return _0x11738e[_0x4334('0xfb')](_0x490f02,_0x506922),_0x322c50[_0x4334('0x51')](_0x506922),!0x0;}return!0x1;}}[_0x4334('0xfb')](_0x46d10e,_0x1a4cc2){if(_0x46d10e[_0x4334('0x2f')])for(const _0x4cc7eb of _0x1a4cc2[_0x4334('0x137')]())_0x46d10e[_0x4334('0xae')](_0x4cc7eb);else{const _0x480243=_0x1a4cc2['getFirstRange']()['end'];this[_0x4334('0x70')](_0x46d10e,this[_0x4334('0x91')][_0x4334('0xb4')](_0x46d10e[_0x4334('0x9')]()[_0x4334('0x4f')],_0x480243));}_0x1a4cc2[_0x4334('0x109')]();}}class Dt{constructor(_0x41eff6){this[_0x4334('0x86')]=_0x41eff6,this[_0x4334('0x91')]=_0x41eff6[_0x4334('0xcc')],this[_0x4334('0xf2')]=new Map(),this[_0x4334('0x2d')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4334('0x83')](_0x190f69,_0x3d2cc6,_0x1b9d72,_0x75aaf8,_0x2309ba,_0x4defb8){return new _0x23eeb3(this[_0x4334('0x91')],{'type':_0x190f69,'subType':_0x3d2cc6,'id':_0x1b9d72,'author':_0x75aaf8,'creator':_0x75aaf8,'attributes':_0x2309ba,'onAttributesChange':_0x4defb8,'onAccept':(..._0x951a66)=>this[_0x4334('0xf8')](_0x190f69,_0x3d2cc6,_0x4334('0x75'))(..._0x951a66),'onDiscard':(..._0x4a2434)=>this['getSuggestionCallback'](_0x190f69,_0x3d2cc6,_0x4334('0x10a'))(..._0x4a2434)});}[_0x4334('0x11d')](_0x50acbb,_0x3f5a47,_0x594ed5,_0x13b8ec){const _0x206a23=_0x50acbb+':'+_0x3f5a47+':'+_0x594ed5;this[_0x4334('0xf2')][_0x4334('0xaf')](_0x206a23,_0x13b8ec);}[_0x4334('0xf8')](_0x514de0,_0x5eaa33,_0x2f3aa6){const _0x4893cc=_0x514de0+':'+_0x5eaa33+':'+_0x2f3aa6;return this[_0x4334('0xf2')][_0x4334('0x40')](_0x4893cc)||this['_defaultCallbacks'][_0x4334('0x40')](_0x514de0+':'+_0x2f3aa6);}[_0x4334('0xe0')](){const _0x51b724=()=>{},_0x4039a1=_0x3b9a95=>{_0x3b9a95[_0x4334('0x13')]((_0xadb915,_0x8260f5)=>_0xadb915[_0x4334('0x4f')][_0x4334('0x111')](_0x8260f5[_0x4334('0x4f')])?0x1:-0x1),this[_0x4334('0x91')][_0x4334('0xb2')](_0x5ca35c=>{for(const _0x39e7a7 of _0x3b9a95){let _0x4a2027;_0x4a2027=_0x39e7a7[_0x4334('0x5')][_0x4334('0x103')]&&_0x39e7a7[_0x4334('0x5')][_0x4334('0x10d')]==_0x39e7a7[_0x4334('0x4f')][_0x4334('0x7a')]?_0x5ca35c[_0x4334('0x22')](_0x39e7a7[_0x4334('0x4f')][_0x4334('0x7a')],'on'):_0x5ca35c[_0x4334('0x22')](_0x39e7a7),this[_0x4334('0x91')][_0x4334('0x123')](_0x4a2027,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1947a7=(_0x25f6f0,_0x1bb855)=>{this['_model'][_0x4334('0xb2')](_0xa44c1d=>{const {commandName:_0xdd71fa,commandParams:_0x255d50=[]}=_0x1bb855,_0x217e02=_0x25f6f0[_0x4334('0x33')](_0x7bc81e=>(_t(_0x7bc81e)&&(_0x7bc81e=this[_0x4334('0x91')]['createRange'](_0x7bc81e['end'])),_0x7bc81e))['filter'](_0x5eea58=>'$graveyard'!==_0x5eea58['root'][_0x4334('0xb1')]);if(_0x217e02[_0x4334('0xa5')]<0x1)return;const _0x511189=Array['from'](this['_model'][_0x4334('0x37')][_0x4334('0xc2')][_0x4334('0x137')]())[_0x4334('0x33')](_0xcd062e=>_0x3a048e[_0x4334('0x6b')](_0xcd062e));_0xa44c1d[_0x4334('0x8c')](_0x217e02);for(const _0x2f15d8 of this[_0x4334('0x86')][_0x4334('0x122')][_0x4334('0x122')]())_0x2f15d8[_0x4334('0x18')]();_0x255d50['push']({'forceDefaultExecution':!0x0}),this[_0x4334('0x86')][_0x4334('0x72')](_0xdd71fa,..._0x255d50);const _0x52d254=_0x511189[_0x4334('0x38')](_0x3afb70=>'$graveyard'!=_0x3afb70[_0x4334('0x4d')]['rootName']);_0x52d254['length']>0x0&&_0xa44c1d[_0x4334('0x8c')](_0x52d254);for(const _0x1d94f3 of _0x511189)_0x1d94f3[_0x4334('0x93')]();});},_0x369601=(_0x16d920,_0x4a8426)=>0x1==_0x16d920[_0x4334('0xa5')]&&0x1==_0x4a8426[_0x4334('0xa5')]&&_0x16d920[0x0][_0x4334('0x5')]['isEqual'](_0x4a8426[0x0][_0x4334('0x4f')]),_0x3de8e7=(_0x587efc,_0x3607f7,_0x25ecac,_0x7003e2)=>xt(_0x587efc,_0x3607f7,_0x25ecac,_0x7003e2,this[_0x4334('0x91')])?[_0x587efc,_0x3607f7]:xt(_0x3607f7,_0x587efc,_0x7003e2,_0x25ecac,this['_model'])?[_0x3607f7,_0x587efc]:null;this[_0x4334('0x2d')]['set']('insertion:accept',_0x51b724),this[_0x4334('0x2d')][_0x4334('0xaf')]('insertion:discard',_0x4039a1),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x15'),_0x369601),this['_defaultCallbacks']['set'](_0x4334('0x101'),_0x3de8e7),this[_0x4334('0x2d')][_0x4334('0xaf')]('deletion:accept',_0x4039a1),this['_defaultCallbacks'][_0x4334('0xaf')]('deletion:discard',_0x51b724),this[_0x4334('0x2d')]['set']('deletion:join',_0x369601),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x1c'),_0x3de8e7),this['_defaultCallbacks']['set'](_0x4334('0x16'),_0x1947a7),this['_defaultCallbacks']['set'](_0x4334('0x44'),_0x51b724),this[_0x4334('0x2d')]['set'](_0x4334('0x29'),_0x369601),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x5e'),_0x51b724),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0x98'),_0x1947a7),this['_defaultCallbacks'][_0x4334('0xaf')](_0x4334('0x68'),_0x51b724),this[_0x4334('0x2d')]['set'](_0x4334('0x34'),_0x369601),this[_0x4334('0x2d')][_0x4334('0xaf')](_0x4334('0xa1'),_0x51b724);}}function Bt(_0x490ec2,_0x3030d3,_0x29b83f){for(const _0x22e37b of _0x3030d3['parent'][_0x4334('0xca')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x22e37b['root']==_0x22e37b)return!0x1;if(!_0x29b83f[_0x4334('0x64')](_0x22e37b))return!0x1;if(_0x490ec2[_0x4334('0x71')](_0x22e37b)||_0x490ec2[_0x4334('0xbc')](_0x22e37b))return!0x0;}return!0x1;}function _t(_0x35f46d){return _0x35f46d[_0x4334('0x5')][_0x4334('0x10d')]==_0x35f46d[_0x4334('0x4f')][_0x4334('0x7a')]&&_0x35f46d['end'][_0x4334('0x120')];}function Mt(_0x4aab97,_0x269b22,_0x54b3dc,_0x313140){const _0x36d86b=_0x43f17e=>!_0x43f17e[_0x4334('0x63')]['is'](_0x4334('0xe7'))&&!_0x313140[_0x4334('0x71')](_0x43f17e[_0x4334('0x63')]),_0xcaac14=_0x4aab97[_0x4334('0x4f')][_0x4334('0xc4')](_0x36d86b),_0x2ec63b=_0x4aab97[_0x4334('0x5')]['getLastMatchingPosition'](_0x36d86b,{'direction':_0x4334('0x115')});return(!_0x4aab97['start'][_0x4334('0xa3')](_0xcaac14)||!_0x4aab97[_0x4334('0x5')]['isEqual'](_0x2ec63b))&&(_0xcaac14[_0x4334('0x111')](_0x2ec63b)?_0x54b3dc[_0x4334('0xb5')](_0x269b22,{'range':_0x54b3dc[_0x4334('0xb4')](_0xcaac14,_0x2ec63b)}):_0x54b3dc[_0x4334('0xe5')](_0x269b22),!0x0);}function $t(_0x1ff5c9){return _0x3178f7(_0x1ff5c9);}function Nt(_0xc3934c){const _0x4b9821=_0xc3934c[_0x4334('0x4f')][_0x4334('0x7a')];return _0x4b9821&&_0x4b9821['is'](_0x4334('0x110'));}function Rt(_0x231e42,_0x2c9777){const _0xb0ef68=_0x2c9777['schema'][_0x4334('0x71')](_0x231e42)||_0x2c9777['schema'][_0x4334('0xb8')](_0x231e42);return _0x2c9777['createRange'](_0x2c9777[_0x4334('0x12d')](_0x231e42,_0x4334('0x8a')),_0xb0ef68?_0x2c9777[_0x4334('0x9e')](_0x231e42):_0x2c9777['createPositionAt'](_0x231e42,_0x4334('0x5')));}function xt(_0x1538c3,_0x54b021,_0x246889,_0x3e46bb,_0x7049a9){if(_0x246889['end'][_0x4334('0xa3')](_0x3e46bb[_0x4334('0x4f')]))return!0x0;if(_0x1538c3[_0x4334('0x138')]!=_0x54b021[_0x4334('0x138')])return!0x1;if(!_0x246889[_0x4334('0x5')][_0x4334('0x5d')](_0x3e46bb[_0x4334('0x4f')]))return!0x1;const _0xeb20fc=_0x7049a9['createRange'](_0x246889[_0x4334('0x5')],_0x3e46bb[_0x4334('0x4f')])[_0x4334('0x61')]();for(const _0x4f28f1 of _0xeb20fc)if([_0x4334('0x32'),'elementEnd'][_0x4334('0x2e')](_0x4f28f1[_0x4334('0x138')])&&_0x7049a9['schema'][_0x4334('0xbc')](_0x4f28f1['item']))return!0x1;return!0x0;}
|
package/src/trackchangesui.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/trackchangesui
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin, type
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
6
|
+
import TrackChangesEditing from './trackchangesediting';
|
|
5
7
|
/**
|
|
6
8
|
* Provides UI for track changes plugin.
|
|
7
9
|
*
|
|
8
10
|
* This plugin displays {@link module:track-changes/suggestion~Suggestion suggestions} as a
|
|
9
11
|
* {@link module:comments/annotations/annotations~Annotations}.
|
|
10
|
-
*
|
|
11
|
-
* @extends module:core/plugin~Plugin
|
|
12
12
|
*/
|
|
13
13
|
export default class TrackChangesUI extends Plugin {
|
|
14
14
|
/**
|
|
15
15
|
* @inheritDoc
|
|
16
16
|
*/
|
|
17
|
-
static get requires():
|
|
17
|
+
static get requires(): readonly [typeof TrackChangesEditing, typeof Users, "CommentsRepository", "Annotations", "EditorAnnotations"];
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
21
|
-
static get pluginName():
|
|
21
|
+
static get pluginName(): "TrackChangesUI";
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
24
24
|
*/
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2761=['stopListening','discardButton','isEnabled','comments.maxCommentsWhenCollapsed','config','previous','push','_updateController','getFirstRange','getAllAdjacentSuggestions','comments','length','_disableComments','CommentView','delete','set','button','execute','suggestionLoaded','hasSuggestion','commands','commandName','size','EditorAnnotations','init','get','model','remove','trackChanges','actionView','isInContent','plugins','getDescriptions','addSourceCollector','registerAnnotation','createCommentThreadController','discardAllSuggestions','createAnnotationView','isMultiRange','acceptAllSuggestions','reduce','_descriptionFactory','TrackChangesEditing','mainView','_destroyController','_refreshActiveMarkers','isDirty','editing','suggestionUnloaded','_handleControllerBuffer','unbind','type','listenTo','filter','some','lowest','Accept\x20all\x20selected\x20suggestions','CommentsRepository','Annotations','locale','view','editor','value','pluginName','bind','requires','head','_suggestionToController','_viewToController','switchbutton','getSuggestion','change:activeAnnotations','commentThread','arrowView','toMany','descriptionParts','comments.maxCommentCharsWhenCollapsed','trackChanges.disableComments','change:previous','_handleSuggestionControllerDelayed','add','_createUIButton','has','map','addComment','getJoined','_annotationViews','focus','Accept\x20all\x20suggestions','clear','TrackChangesUI','buttonView','refreshSelectedViews','_initializeController','from','suggestion-','source','isOn','values','comments.maxThreadTotalWeight','destroy','innerView','componentFactory','discardSelectedSuggestions','getMarkerNames','define'];(function(_0x5bda58,_0x2761e6){const _0x393673=function(_0x32d93c){while(--_0x32d93c){_0x5bda58['push'](_0x5bda58['shift']());}};_0x393673(++_0x2761e6);}(_0x2761,0x1e6));const _0x3936=function(_0x5bda58,_0x2761e6){_0x5bda58=_0x5bda58-0x0;let _0x393673=_0x2761[_0x5bda58];return _0x393673;};import{Plugin as _0x4dd960}from'ckeditor5/src/core';import{Collection as _0x4d2619}from'ckeditor5/src/utils';import{Model as _0x13a652,SplitButtonView as _0x2abe9e,createDropdown as _0x5744dc,addListToDropdown as _0x4e2ba4}from'ckeditor5/src/ui';import{Users as _0x15bfee,getDateTimeFormatter as _0x1ab487,getAllMarkersDomElementsSorted as _0x29874f}from'ckeditor5-collaboration/src/collaboration-core';import _0x42b51e from'./trackchangesediting';import _0x94ad27 from'./ui/suggestioncontroller';import _0x54aee4 from'./ui/view/suggestionthreadview';import{getTranslation as _0xfdcd67}from'./utils/common-translations';import _0x2ce502 from'../theme/icons/track-changes.svg';export default class d extends _0x4dd960{static get[_0x3936('0x3')](){return[_0x42b51e,_0x15bfee,_0x3936('0x65'),_0x3936('0x66'),_0x3936('0x43')];}static get[_0x3936('0x1')](){return _0x3936('0x1c');}constructor(_0x5055c8){super(_0x5055c8),this[_0x3936('0x5')]=new Map(),this[_0x3936('0x6')]=new Map(),this[_0x3936('0x18')]=new Map(),this[_0x3936('0x5d')]=new Map();const _0x42ce35=this[_0x3936('0x69')]['config'];_0x42ce35[_0x3936('0x2b')]('trackChanges.SuggestionThreadView',_0x54aee4),_0x42ce35[_0x3936('0x2b')]('trackChanges.disableComments',!0x1),this[_0x3936('0x38')]=_0x42ce35[_0x3936('0x45')](_0x3936('0xf'));}[_0x3936('0x11')](_0xe1d317,_0x3f29b3){0x0===this['_handleControllerBuffer'][_0x3936('0x42')]&&setTimeout(()=>{for(const [_0x39e8bd,_0x43a099]of this[_0x3936('0x5d')]){const _0x2a7516=this['_suggestionToController'][_0x3936('0x14')](_0x39e8bd);_0x2a7516||_0x43a099?_0x2a7516&&_0x43a099&&this['_destroyController'](_0x39e8bd):this['_initializeController'](_0x39e8bd);}this[_0x3936('0x69')][_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x43'))[_0x3936('0x1e')](),this[_0x3936('0x59')](),this[_0x3936('0x5d')][_0x3936('0x1b')]();},0xa),this[_0x3936('0x5d')][_0x3936('0x3b')](_0xe1d317,_0x3f29b3);}[_0x3936('0x44')](){const _0x350399=this[_0x3936('0x69')],_0x2be38e=_0x350399[_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x56')),_0x413564=_0x350399[_0x3936('0x4b')]['get'](_0x3936('0x66')),_0x303d67=_0x350399['plugins']['get'](_0x3936('0x43')),_0x5c3672=_0x350399[_0x3936('0x4b')][_0x3936('0x45')]('CommentsRepository');_0x350399['ui'][_0x3936('0x28')][_0x3936('0x12')](_0x3936('0x48'),_0x4d07da=>this['_createUIButton'](_0x4d07da)),_0x303d67[_0x3936('0x4d')](()=>{const _0x4c88cb=[];for(const [_0x5505cf,_0x123f89]of Array['from'](this[_0x3936('0x5')])){const _0x60205c=_0x5505cf[_0x3936('0x35')](),_0x4c5351=[];for(const _0x58d7d9 of _0x60205c){if(!_0x58d7d9[_0x3936('0x4a')])continue;if(_0x58d7d9[_0x3936('0x52')]){_0x4c5351['push'](..._0x58d7d9['getRanges']());continue;}const _0x237e50=_0x58d7d9[_0x3936('0x34')]();if(_0x4c5351[_0x3936('0x37')]>0x0){const _0x5b53d8=_0x4c5351[0x0][_0x3936('0x17')](_0x237e50);if(_0x5b53d8){_0x4c5351[0x0]=_0x5b53d8;continue;}}_0x4c5351[_0x3936('0x32')](_0x237e50);}_0x4c88cb[_0x3936('0x32')]([_0x123f89['view'],_0x4c5351]);}return _0x4c88cb;}),this[_0x3936('0x60')](_0x2be38e,_0x3936('0x3e'),(_0x545c55,_0xf27c21)=>{this[_0x3936('0x60')](_0xf27c21,_0x3936('0x10'),(_0x1e4c9d,_0x5384b5,_0x4dfa4f,_0x537631)=>{_0xf27c21['isInContent']&&(null==_0x4dfa4f?(this['_updateController'](_0x537631[_0x3936('0x4')]),this[_0x3936('0x11')](_0xf27c21,!0x1)):(this[_0x3936('0x33')](_0x4dfa4f[_0x3936('0x4')]),this[_0x3936('0x11')](_0xf27c21,!0x0)));}),null===_0xf27c21[_0x3936('0x31')]?this['_handleSuggestionControllerDelayed'](_0xf27c21,!0x1):this[_0x3936('0x33')](_0xf27c21['head']);}),this[_0x3936('0x60')](_0x2be38e,_0x3936('0x5c'),(_0x4fa73b,_0x9c2372,_0x1b6811)=>{this[_0x3936('0x2c')](_0x9c2372,'change:previous'),this['_handleControllerBuffer'][_0x3936('0x3a')](_0x9c2372);const _0x346289=_0x1b6811?_0x1b6811[_0x3936('0x4')]:_0x9c2372,_0x14924f=this[_0x3936('0x5')][_0x3936('0x45')](_0x346289);null!==_0x1b6811&&this[_0x3936('0x33')](_0x346289),null===_0x1b6811&&_0x14924f&&this[_0x3936('0x58')](_0x9c2372);}),this['listenTo'](_0x2be38e,'suggestionChanged',(_0x51256a,_0x9182f5)=>{this[_0x3936('0x33')](_0x9182f5);}),this[_0x3936('0x60')](_0x413564,_0x3936('0x9'),()=>{this[_0x3936('0x59')]();}),this[_0x3936('0x60')](_0x5c3672,_0x3936('0x16'),(_0x81cd36,{threadId:_0x2664cd,isFromAdapter:_0x27903d})=>{if(_0x27903d||!_0x2be38e[_0x3936('0x3f')](_0x2664cd))return;const _0x5b3e38=_0x2be38e[_0x3936('0x8')](_0x2664cd);this['_suggestionToController'][_0x3936('0x45')](_0x5b3e38)[_0x3936('0x68')][_0x3936('0x19')]();},{'priority':_0x3936('0x63')});}[_0x3936('0x59')](){const _0x1b7d39=this[_0x3936('0x69')][_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x66')),_0x54a329=this[_0x3936('0x69')][_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x56')),_0x132570=Array[_0x3936('0x20')](_0x1b7d39['activeAnnotations'],_0x2d5369=>_0x2d5369[_0x3936('0x27')])[_0x3936('0x61')](_0x1eb1b7=>this[_0x3936('0x6')]['has'](_0x1eb1b7)),_0x53b32e=[];for(const _0x1dc825 of _0x132570){const _0xc4c7aa=this[_0x3936('0x6')]['get'](_0x1dc825)[_0x3936('0x46')]['getAllAdjacentSuggestions']();_0x53b32e[_0x3936('0x32')](..._0xc4c7aa[_0x3936('0x54')]((_0x16eb1f,_0x5e2bf1)=>[..._0x16eb1f,..._0x5e2bf1[_0x3936('0x2a')]()],[]));}_0x54a329['activeMarkers']=_0x53b32e;}[_0x3936('0x13')](_0xbbd4b5){const _0x250a65=_0x5744dc(_0xbbd4b5,_0x2abe9e),_0x5db9c2=this[_0x3936('0x69')][_0x3936('0x40')][_0x3936('0x45')](_0x3936('0x48')),_0xb1fed3=_0xfdcd67(_0xbbd4b5,'Track\x20changes');_0x250a65[_0x3936('0x1d')]['set']({'tooltip':_0xb1fed3,'label':_0xb1fed3,'icon':_0x2ce502}),_0x250a65['buttonView']['bind'](_0x3936('0x23'))['to'](_0x5db9c2,_0x3936('0x0')),_0x250a65['buttonView']['on'](_0x3936('0x3d'),()=>{_0x5db9c2[_0x3936('0x3d')](),this[_0x3936('0x69')][_0x3936('0x5b')]['view'][_0x3936('0x19')]();});const _0x2653bb=new _0x4d2619(),_0x58cd29=[{'type':_0x3936('0x7'),'model':{'withText':!0x0,'label':_0xb1fed3,'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,_0x3936('0x1a')),'commandName':_0x3936('0x53')}},{'type':'button','model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,_0x3936('0x64')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,'Discard\x20all\x20suggestions'),'commandName':_0x3936('0x50')}},{'type':_0x3936('0x3c'),'model':{'withText':!0x0,'label':_0xfdcd67(_0xbbd4b5,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3936('0x29')}}];for(const _0x2d779e of _0x58cd29){let _0x2f1d54={'type':'separator'};if(_0x2d779e[_0x3936('0x46')]){const _0x4131b5=new _0x13a652(_0x2d779e[_0x3936('0x46')]),_0x27c7e2=this['editor']['commands'][_0x3936('0x45')](_0x4131b5[_0x3936('0x41')]);_0x4131b5[_0x3936('0x2')](_0x3936('0x23'),_0x3936('0x2e'))['to'](_0x27c7e2,'value',_0x3936('0x2e')),_0x2f1d54={'type':_0x2d779e['type'],'model':_0x4131b5};}_0x2653bb['add'](_0x2f1d54);}_0x4e2ba4(_0x250a65,_0x2653bb);const _0x1f2937=_0x58cd29[_0x3936('0x61')](_0xecfc8f=>null!=_0xecfc8f[_0x3936('0x46')])[_0x3936('0x15')](_0x1a1a77=>this[_0x3936('0x69')][_0x3936('0x40')][_0x3936('0x45')](_0x1a1a77[_0x3936('0x46')][_0x3936('0x41')])),_0x1a01e0=_0x250a65[_0x3936('0x1d')];return _0x1a01e0[_0x3936('0x49')]['unbind'](_0x3936('0x2e')),_0x1a01e0[_0x3936('0xb')][_0x3936('0x5e')]('isEnabled'),_0x1a01e0['actionView'][_0x3936('0x2')](_0x3936('0x2e'))['to'](_0x5db9c2,'isEnabled'),_0x1a01e0['arrowView'][_0x3936('0x2')](_0x3936('0x2e'))[_0x3936('0xc')](_0x1f2937,'isEnabled',(..._0x231e67)=>_0x231e67[_0x3936('0x62')](_0x1f130d=>_0x1f130d)),_0x250a65['on']('execute',_0x3fa33b=>{this[_0x3936('0x69')][_0x3936('0x3d')](_0x3fa33b[_0x3936('0x22')][_0x3936('0x41')]),this[_0x3936('0x69')][_0x3936('0x5b')]['view'][_0x3936('0x19')]();}),_0x250a65;}[_0x3936('0x1f')](_0x3bb242){const _0x2f3e0b=this[_0x3936('0x69')],_0x5e0c0c=_0x2f3e0b[_0x3936('0x30')],_0xd9eb99=_0x2f3e0b['plugins'][_0x3936('0x45')]('Annotations'),_0x465dea=_0x2f3e0b[_0x3936('0x4b')][_0x3936('0x45')](_0x3936('0x65')),_0x4a02e1=_0x2f3e0b[_0x3936('0x4b')]['get'](_0x3936('0x43')),_0x3d868a=_0x2f3e0b[_0x3936('0x4b')][_0x3936('0x45')](_0x15bfee)['me'],_0x1165c7=_0x5e0c0c[_0x3936('0x45')](_0x3936('0x48'))['SuggestionThreadView'],{CommentsListView:_0x391f8f,CommentThreadInputView:_0xc6c9}=_0x2f3e0b[_0x3936('0x4b')][_0x3936('0x45')]('CommentsUI');let _0x414577,_0x215cc4;this['_annotationViews'][_0x3936('0x14')](_0x3bb242['id'])?(_0x215cc4=this['_annotationViews'][_0x3936('0x45')](_0x3bb242['id']),_0x414577=_0x215cc4[_0x3936('0x57')]):(_0x414577=new _0x1165c7(_0x2f3e0b['locale'],_0x3bb242,_0x3d868a,{'disableComments':this[_0x3936('0x38')],'editorConfig':_0x5e0c0c[_0x3936('0x45')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5e0c0c[_0x3936('0x45')](_0x3936('0x2f')),'maxThreadTotalWeight':_0x5e0c0c['get'](_0x3936('0x25')),'maxCommentCharsWhenCollapsed':_0x5e0c0c[_0x3936('0x45')](_0x3936('0xe')),'formatDateTime':_0x1ab487(_0x5e0c0c[_0x3936('0x45')](_0x3936('0x67'))),'CommentView':_0x5e0c0c[_0x3936('0x45')](_0x3936('0x36'))[_0x3936('0x39')],'CommentsListView':_0x391f8f,'CommentThreadInputView':_0xc6c9}),_0x414577['acceptButton']['on'](_0x3936('0x3d'),()=>{_0x2f3e0b[_0x3936('0x5b')][_0x3936('0x68')]['focus']();}),_0x414577[_0x3936('0x2d')]['on'](_0x3936('0x3d'),()=>{_0x2f3e0b[_0x3936('0x5b')][_0x3936('0x68')][_0x3936('0x19')]();}),_0x215cc4=_0xd9eb99[_0x3936('0x51')](this['editor']['locale'],_0x414577),_0x215cc4['bind'](_0x3936('0x5a'))['to'](_0x414577,_0x3936('0x5a')),_0x215cc4[_0x3936('0x2')](_0x3936('0x37'))['to'](_0x414577),_0x215cc4[_0x3936('0x2')](_0x3936('0x5f'))['to'](_0x414577,'type',_0x176a2f=>'suggestion-'+_0x176a2f),this[_0x3936('0x18')][_0x3936('0x3b')](_0x3bb242['id'],_0x215cc4));const _0x524b4d=_0x465dea[_0x3936('0x4f')](_0x3bb242[_0x3936('0xa')],_0x414577),_0x51abd8=new _0x94ad27(_0x2f3e0b,_0x3bb242,_0x414577,_0x524b4d),_0x446d39=_0x3bb242['getAllAdjacentSuggestions']()['filter'](_0x5469b1=>_0x5469b1[_0x3936('0x4a')]);_0x414577[_0x3936('0xd')]=_0x2f3e0b['plugins'][_0x3936('0x45')]('TrackChangesEditing')[_0x3936('0x55')]['getDescriptions'](_0x446d39),this[_0x3936('0x5')][_0x3936('0x3b')](_0x3bb242,_0x51abd8),this[_0x3936('0x6')][_0x3936('0x3b')](_0x414577,_0x51abd8);const _0x1e6de9=_0xd9eb99['createAnnotation']({'view':_0x215cc4,'target':()=>{const _0x4d6012=[],_0x163752=_0x3bb242[_0x3936('0x35')]()[_0x3936('0x61')](_0x4869d7=>_0x4869d7[_0x3936('0x4a')]);for(const _0x501da9 of _0x163752)_0x4d6012[_0x3936('0x32')](..._0x501da9['getMarkers']());return _0x29874f(_0x2f3e0b[_0x3936('0x5b')],_0x4d6012);},'type':()=>_0x3936('0x21')+_0x51abd8[_0x3936('0x68')]['type']});_0xd9eb99[_0x3936('0x12')](_0x1e6de9),_0x4a02e1[_0x3936('0x4e')](_0x1e6de9);}[_0x3936('0x58')](_0x14661b){const _0x33076d=this['editor'][_0x3936('0x4b')]['get'](_0x3936('0x66')),_0x45dd82=this[_0x3936('0x5')]['get'](_0x14661b),_0xe5b97a=_0x45dd82[_0x3936('0x68')],_0x5ce9d8=_0x33076d['getByInnerView'](_0xe5b97a);_0x5ce9d8&&_0x33076d[_0x3936('0x47')](_0x5ce9d8),this[_0x3936('0x5')][_0x3936('0x3a')](_0x14661b),this[_0x3936('0x6')][_0x3936('0x3a')](_0xe5b97a),_0x45dd82[_0x3936('0x26')]();}['_updateController'](_0x3442df){if(!_0x3442df[_0x3936('0x4a')]||!this['_suggestionToController'][_0x3936('0x14')](_0x3442df))return;const _0x49a208=this[_0x3936('0x69')][_0x3936('0x4b')]['get']('TrackChangesEditing'),_0x620c01=this[_0x3936('0x5')][_0x3936('0x45')](_0x3442df),_0x2e9f78=_0x3442df[_0x3936('0x35')]();_0x620c01[_0x3936('0x68')][_0x3936('0xd')]=_0x49a208[_0x3936('0x55')][_0x3936('0x4c')](_0x2e9f78);}[_0x3936('0x26')](){for(const _0x28323f of this[_0x3936('0x5')]['keys']())this[_0x3936('0x58')](_0x28323f);for(const _0x114674 of this[_0x3936('0x18')][_0x3936('0x24')]())_0x114674[_0x3936('0x57')]['destroy']();super['destroy']();}}
|
|
23
|
+
const _0x3082=['set','comments','comments.maxCommentsWhenCollapsed','suggestionChanged','getJoined','plugins','some','suggestion-','length','execute','SuggestionThreadView','_updateController','buttonView','isInContent','add','getMarkerNames','acceptAllSuggestions','Accept\x20all\x20selected\x20suggestions','activeMarkers','Discard\x20all\x20selected\x20suggestions','focus','createAnnotationView','comments.maxThreadTotalWeight','bind','config','delete','activeAnnotations','trackChanges.SuggestionThreadView','TrackChangesEditing','value','editing','Annotations','values','unbind','Track\x20changes','getSuggestion','Accept\x20all\x20suggestions','_annotationViews','isOn','comments.maxCommentCharsWhenCollapsed','_disableComments','_initializeController','pluginName','reduce','actionView','commands','getRanges','createCommentThreadController','acceptButton','CommentsRepository','comments.editorConfig','descriptionParts','registerAnnotation','get','separator','push','init','previous','lowest','hasSuggestion','createAnnotation','commentThread','suggestionLoaded','stopListening','refreshSelectedViews','commandName','map','has','listenTo','_suggestionToController','model','view','trackChanges.disableComments','_descriptionFactory','_handleSuggestionControllerDelayed','_createUIButton','size','editor','mainView','isEnabled','addComment','getDescriptions','destroy','_viewToController','locale','change:activeAnnotations','head','EditorAnnotations','innerView','getFirstRange','addSourceCollector','_destroyController','type','from','_refreshActiveMarkers','acceptSelectedSuggestions','getByInnerView','source','getAllAdjacentSuggestions','define','componentFactory','discardSelectedSuggestions','requires','trackChanges','_handleControllerBuffer','button'];(function(_0x4394d9,_0x3082f2){const _0xcf6415=function(_0x4f65c5){while(--_0x4f65c5){_0x4394d9['push'](_0x4394d9['shift']());}};_0xcf6415(++_0x3082f2);}(_0x3082,0x180));const _0xcf64=function(_0x4394d9,_0x3082f2){_0x4394d9=_0x4394d9-0x0;let _0xcf6415=_0x3082[_0x4394d9];return _0xcf6415;};import{Plugin as _0x35268d}from'ckeditor5/src/core';import{Collection as _0x26b6df}from'ckeditor5/src/utils';import{Model as _0x48fe95,SplitButtonView as _0x54a039,createDropdown as _0x2abc4a,addListToDropdown as _0x4080d2}from'ckeditor5/src/ui';import{Users as _0x723bc9,getDateTimeFormatter as _0x43d90e,getAllMarkersDomElementsSorted as _0x353f2c}from'ckeditor5-collaboration/src/collaboration-core';import _0x592358 from'./trackchangesediting';import _0x2d7a56 from'./ui/suggestioncontroller';import _0x577750 from'./ui/view/suggestionthreadview';import{getTranslation as _0xf9ab62}from'./utils/common-translations';import _0x2e5fe3 from'../theme/icons/track-changes.svg';export default class d extends _0x35268d{static get[_0xcf64('0x24')](){return[_0x592358,_0x723bc9,'CommentsRepository',_0xcf64('0x47'),_0xcf64('0x15')];}static get[_0xcf64('0x52')](){return'TrackChangesUI';}constructor(_0x75ae0e){super(_0x75ae0e),this[_0xcf64('0x3')]=new Map(),this[_0xcf64('0x11')]=new Map(),this[_0xcf64('0x4d')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x31c623=this[_0xcf64('0xb')][_0xcf64('0x40')];_0x31c623[_0xcf64('0x21')](_0xcf64('0x43'),_0x577750),_0x31c623[_0xcf64('0x21')](_0xcf64('0x6'),!0x1),this[_0xcf64('0x50')]=_0x31c623['get'](_0xcf64('0x6'));}[_0xcf64('0x8')](_0x3731a1,_0x2b8938){0x0===this[_0xcf64('0x26')][_0xcf64('0xa')]&&setTimeout(()=>{for(const [_0x5db034,_0x235ba2]of this[_0xcf64('0x26')]){const _0x38edc1=this[_0xcf64('0x3')][_0xcf64('0x1')](_0x5db034);_0x38edc1||_0x235ba2?_0x38edc1&&_0x235ba2&&this[_0xcf64('0x19')](_0x5db034):this['_initializeController'](_0x5db034);}this['editor']['plugins'][_0xcf64('0x5d')](_0xcf64('0x15'))[_0xcf64('0x68')](),this['_refreshActiveMarkers'](),this[_0xcf64('0x26')]['clear']();},0xa),this[_0xcf64('0x26')][_0xcf64('0x28')](_0x3731a1,_0x2b8938);}[_0xcf64('0x60')](){const _0x50d708=this['editor'],_0x53ea5f=_0x50d708[_0xcf64('0x2d')]['get']('TrackChangesEditing'),_0x3015e3=_0x50d708[_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x47')),_0x28b2aa=_0x50d708[_0xcf64('0x2d')][_0xcf64('0x5d')]('EditorAnnotations'),_0x47371a=_0x50d708[_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x59'));_0x50d708['ui'][_0xcf64('0x22')][_0xcf64('0x36')](_0xcf64('0x25'),_0x4b0692=>this[_0xcf64('0x9')](_0x4b0692)),_0x28b2aa[_0xcf64('0x18')](()=>{const _0x335801=[];for(const [_0x5ce288,_0x54d5b0]of Array[_0xcf64('0x1b')](this[_0xcf64('0x3')])){const _0x22c5b8=_0x5ce288[_0xcf64('0x20')](),_0x4e8235=[];for(const _0x52b1c7 of _0x22c5b8){if(!_0x52b1c7['isInContent'])continue;if(_0x52b1c7['isMultiRange']){_0x4e8235['push'](..._0x52b1c7[_0xcf64('0x56')]());continue;}const _0x3ce8b4=_0x52b1c7[_0xcf64('0x17')]();if(_0x4e8235['length']>0x0){const _0x214aea=_0x4e8235[0x0][_0xcf64('0x2c')](_0x3ce8b4);if(_0x214aea){_0x4e8235[0x0]=_0x214aea;continue;}}_0x4e8235['push'](_0x3ce8b4);}_0x335801[_0xcf64('0x5f')]([_0x54d5b0['view'],_0x4e8235]);}return _0x335801;}),this[_0xcf64('0x2')](_0x53ea5f,_0xcf64('0x66'),(_0x15c5eb,_0x40610f)=>{this['listenTo'](_0x40610f,'change:previous',(_0x263a45,_0x13ecf6,_0x5d3371,_0x5ce5e4)=>{_0x40610f[_0xcf64('0x35')]&&(null==_0x5d3371?(this[_0xcf64('0x33')](_0x5ce5e4[_0xcf64('0x14')]),this[_0xcf64('0x8')](_0x40610f,!0x1)):(this[_0xcf64('0x33')](_0x5d3371[_0xcf64('0x14')]),this[_0xcf64('0x8')](_0x40610f,!0x0)));}),null===_0x40610f[_0xcf64('0x61')]?this[_0xcf64('0x8')](_0x40610f,!0x1):this['_updateController'](_0x40610f[_0xcf64('0x14')]);}),this[_0xcf64('0x2')](_0x53ea5f,'suggestionUnloaded',(_0xe92cb4,_0xce144b,_0xe5fb49)=>{this[_0xcf64('0x67')](_0xce144b,'change:previous'),this[_0xcf64('0x26')][_0xcf64('0x41')](_0xce144b);const _0x38ffce=_0xe5fb49?_0xe5fb49['head']:_0xce144b,_0x16c09a=this['_suggestionToController'][_0xcf64('0x5d')](_0x38ffce);null!==_0xe5fb49&&this['_updateController'](_0x38ffce),null===_0xe5fb49&&_0x16c09a&&this['_destroyController'](_0xce144b);}),this[_0xcf64('0x2')](_0x53ea5f,_0xcf64('0x2b'),(_0xba7116,_0x43cd0c)=>{this[_0xcf64('0x33')](_0x43cd0c);}),this[_0xcf64('0x2')](_0x3015e3,_0xcf64('0x13'),()=>{this[_0xcf64('0x1c')]();}),this[_0xcf64('0x2')](_0x47371a,_0xcf64('0xe'),(_0x27cc15,{threadId:_0x24098c,isFromAdapter:_0x3c434c})=>{if(_0x3c434c||!_0x53ea5f[_0xcf64('0x63')](_0x24098c))return;const _0x3c5318=_0x53ea5f[_0xcf64('0x4b')](_0x24098c);this[_0xcf64('0x3')][_0xcf64('0x5d')](_0x3c5318)['view'][_0xcf64('0x3c')]();},{'priority':_0xcf64('0x62')});}[_0xcf64('0x1c')](){const _0x6164fc=this[_0xcf64('0xb')][_0xcf64('0x2d')]['get'](_0xcf64('0x47')),_0x42d4b4=this[_0xcf64('0xb')][_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x44')),_0x2ccc72=Array[_0xcf64('0x1b')](_0x6164fc[_0xcf64('0x42')],_0x3e223e=>_0x3e223e[_0xcf64('0x16')])['filter'](_0x5c7163=>this[_0xcf64('0x11')][_0xcf64('0x1')](_0x5c7163)),_0x2b2d5f=[];for(const _0x1d054b of _0x2ccc72){const _0x251409=this[_0xcf64('0x11')][_0xcf64('0x5d')](_0x1d054b)[_0xcf64('0x4')][_0xcf64('0x20')]();_0x2b2d5f[_0xcf64('0x5f')](..._0x251409[_0xcf64('0x53')]((_0x311c71,_0x6f8d6e)=>[..._0x311c71,..._0x6f8d6e[_0xcf64('0x37')]()],[]));}_0x42d4b4[_0xcf64('0x3a')]=_0x2b2d5f;}['_createUIButton'](_0x3ba660){const _0x1490d1=_0x2abc4a(_0x3ba660,_0x54a039),_0x2b1768=this[_0xcf64('0xb')][_0xcf64('0x55')][_0xcf64('0x5d')]('trackChanges'),_0x40256d=_0xf9ab62(_0x3ba660,_0xcf64('0x4a'));_0x1490d1['buttonView'][_0xcf64('0x28')]({'tooltip':_0x40256d,'label':_0x40256d,'icon':_0x2e5fe3}),_0x1490d1['buttonView'][_0xcf64('0x3f')](_0xcf64('0x4e'))['to'](_0x2b1768,_0xcf64('0x45')),_0x1490d1[_0xcf64('0x34')]['on'](_0xcf64('0x31'),()=>{_0x2b1768[_0xcf64('0x31')](),this['editor'][_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();});const _0x27a2bf=new _0x26b6df(),_0x22e8ae=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x40256d,'commandName':_0xcf64('0x25')}},{'type':_0xcf64('0x5e')},{'type':_0xcf64('0x27'),'model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,_0xcf64('0x4c')),'commandName':_0xcf64('0x38')}},{'type':'button','model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,_0xcf64('0x39')),'commandName':_0xcf64('0x1d')}},{'type':'button','model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0xcf64('0x27'),'model':{'withText':!0x0,'label':_0xf9ab62(_0x3ba660,_0xcf64('0x3b')),'commandName':_0xcf64('0x23')}}];for(const _0x184618 of _0x22e8ae){let _0x2e924d={'type':'separator'};if(_0x184618[_0xcf64('0x4')]){const _0x564189=new _0x48fe95(_0x184618['model']),_0x41edeb=this['editor'][_0xcf64('0x55')]['get'](_0x564189['commandName']);_0x564189[_0xcf64('0x3f')](_0xcf64('0x4e'),_0xcf64('0xd'))['to'](_0x41edeb,_0xcf64('0x45'),_0xcf64('0xd')),_0x2e924d={'type':_0x184618[_0xcf64('0x1a')],'model':_0x564189};}_0x27a2bf['add'](_0x2e924d);}_0x4080d2(_0x1490d1,_0x27a2bf);const _0x5cd1f9=_0x22e8ae['filter'](_0x7f5d09=>null!=_0x7f5d09[_0xcf64('0x4')])[_0xcf64('0x0')](_0x5dfbee=>this[_0xcf64('0xb')]['commands']['get'](_0x5dfbee[_0xcf64('0x4')][_0xcf64('0x69')])),_0x155490=_0x1490d1[_0xcf64('0x34')];return _0x155490[_0xcf64('0x54')][_0xcf64('0x49')](_0xcf64('0xd')),_0x155490['arrowView'][_0xcf64('0x49')](_0xcf64('0xd')),_0x155490[_0xcf64('0x54')][_0xcf64('0x3f')]('isEnabled')['to'](_0x2b1768,_0xcf64('0xd')),_0x155490['arrowView'][_0xcf64('0x3f')]('isEnabled')['toMany'](_0x5cd1f9,_0xcf64('0xd'),(..._0x188dee)=>_0x188dee[_0xcf64('0x2e')](_0x31ad64=>_0x31ad64)),_0x1490d1['on'](_0xcf64('0x31'),_0xdb7141=>{this[_0xcf64('0xb')][_0xcf64('0x31')](_0xdb7141[_0xcf64('0x1f')]['commandName']),this[_0xcf64('0xb')][_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();}),_0x1490d1;}[_0xcf64('0x51')](_0x1debd8){const _0x25f081=this[_0xcf64('0xb')],_0x390b0a=_0x25f081[_0xcf64('0x40')],_0x4b7a54=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x47')),_0x165283=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')]('CommentsRepository'),_0x801b05=_0x25f081['plugins'][_0xcf64('0x5d')](_0xcf64('0x15')),_0x20899c=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')](_0x723bc9)['me'],_0x4daa6e=_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x25'))[_0xcf64('0x32')],{CommentsListView:_0x3403c8,CommentThreadInputView:_0x3b212b}=_0x25f081[_0xcf64('0x2d')][_0xcf64('0x5d')]('CommentsUI');let _0x2cceee,_0x1deeb1;this[_0xcf64('0x4d')]['has'](_0x1debd8['id'])?(_0x1deeb1=this[_0xcf64('0x4d')]['get'](_0x1debd8['id']),_0x2cceee=_0x1deeb1[_0xcf64('0xc')]):(_0x2cceee=new _0x4daa6e(_0x25f081['locale'],_0x1debd8,_0x20899c,{'disableComments':this['_disableComments'],'editorConfig':_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x5a')),'maxCommentsWhenCollapsed':_0x390b0a['get'](_0xcf64('0x2a')),'maxThreadTotalWeight':_0x390b0a['get'](_0xcf64('0x3e')),'maxCommentCharsWhenCollapsed':_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x4f')),'formatDateTime':_0x43d90e(_0x390b0a[_0xcf64('0x5d')]('locale')),'CommentView':_0x390b0a[_0xcf64('0x5d')](_0xcf64('0x29'))['CommentView'],'CommentsListView':_0x3403c8,'CommentThreadInputView':_0x3b212b}),_0x2cceee[_0xcf64('0x58')]['on'](_0xcf64('0x31'),()=>{_0x25f081[_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();}),_0x2cceee['discardButton']['on'](_0xcf64('0x31'),()=>{_0x25f081[_0xcf64('0x46')][_0xcf64('0x5')][_0xcf64('0x3c')]();}),_0x1deeb1=_0x4b7a54[_0xcf64('0x3d')](this[_0xcf64('0xb')][_0xcf64('0x12')],_0x2cceee),_0x1deeb1[_0xcf64('0x3f')]('isDirty')['to'](_0x2cceee,'isDirty'),_0x1deeb1[_0xcf64('0x3f')](_0xcf64('0x30'))['to'](_0x2cceee),_0x1deeb1[_0xcf64('0x3f')](_0xcf64('0x1a'))['to'](_0x2cceee,_0xcf64('0x1a'),_0x4c1c82=>_0xcf64('0x2f')+_0x4c1c82),this['_annotationViews'][_0xcf64('0x28')](_0x1debd8['id'],_0x1deeb1));const _0x24891a=_0x165283[_0xcf64('0x57')](_0x1debd8[_0xcf64('0x65')],_0x2cceee),_0xec9adb=new _0x2d7a56(_0x25f081,_0x1debd8,_0x2cceee,_0x24891a),_0x405e0e=_0x1debd8[_0xcf64('0x20')]()['filter'](_0xd2b9ea=>_0xd2b9ea[_0xcf64('0x35')]);_0x2cceee[_0xcf64('0x5b')]=_0x25f081['plugins']['get'](_0xcf64('0x44'))[_0xcf64('0x7')][_0xcf64('0xf')](_0x405e0e),this[_0xcf64('0x3')]['set'](_0x1debd8,_0xec9adb),this['_viewToController'][_0xcf64('0x28')](_0x2cceee,_0xec9adb);const _0x3c19e0=_0x4b7a54[_0xcf64('0x64')]({'view':_0x1deeb1,'target':()=>{const _0xf6445=[],_0x123346=_0x1debd8['getAllAdjacentSuggestions']()['filter'](_0x279a0e=>_0x279a0e[_0xcf64('0x35')]);for(const _0x4e78dd of _0x123346)_0xf6445['push'](..._0x4e78dd['getMarkers']());return _0x353f2c(_0x25f081[_0xcf64('0x46')],_0xf6445);},'type':()=>'suggestion-'+_0xec9adb[_0xcf64('0x5')]['type']});_0x4b7a54[_0xcf64('0x36')](_0x3c19e0),_0x801b05[_0xcf64('0x5c')](_0x3c19e0);}['_destroyController'](_0x41c1e4){const _0x2cd65f=this[_0xcf64('0xb')][_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x47')),_0x281853=this[_0xcf64('0x3')]['get'](_0x41c1e4),_0x38e903=_0x281853[_0xcf64('0x5')],_0x21e5e2=_0x2cd65f[_0xcf64('0x1e')](_0x38e903);_0x21e5e2&&_0x2cd65f['remove'](_0x21e5e2),this[_0xcf64('0x3')][_0xcf64('0x41')](_0x41c1e4),this[_0xcf64('0x11')][_0xcf64('0x41')](_0x38e903),_0x281853[_0xcf64('0x10')]();}[_0xcf64('0x33')](_0x438bd4){if(!_0x438bd4['isInContent']||!this['_suggestionToController'][_0xcf64('0x1')](_0x438bd4))return;const _0x51175b=this[_0xcf64('0xb')][_0xcf64('0x2d')][_0xcf64('0x5d')](_0xcf64('0x44')),_0x4e5baa=this[_0xcf64('0x3')]['get'](_0x438bd4),_0x312462=_0x438bd4[_0xcf64('0x20')]();_0x4e5baa[_0xcf64('0x5')]['descriptionParts']=_0x51175b[_0xcf64('0x7')][_0xcf64('0xf')](_0x312462);}[_0xcf64('0x10')](){for(const _0x39d09c of this[_0xcf64('0x3')]['keys']())this[_0xcf64('0x19')](_0x39d09c);for(const _0x172a28 of this[_0xcf64('0x4d')][_0xcf64('0x48')]())_0x172a28[_0xcf64('0xc')][_0xcf64('0x10')]();super[_0xcf64('0x10')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5621=['commands','acceptSuggestion','_pendingAction','getRanges','isDirty','execute','PENDING_ACTION_SUGGESTION','bind','PendingActions','get','canDiscard','view','canEditAt','commentThreadController','listenTo','remove','add','destroy','discardSuggestion','unbind','model','isEnabled','_setPendingAction','_discardCommand','_editor','change:isDirty','canAccept','locale','_removePendingAction','plugins','_acceptCommand'];(function(_0x5938bc,_0x56219f){const _0x4826a5=function(_0x340e91){while(--_0x340e91){_0x5938bc['push'](_0x5938bc['shift']());}};_0x4826a5(++_0x56219f);}(_0x5621,0x1db));const _0x4826=function(_0x5938bc,_0x56219f){_0x5938bc=_0x5938bc-0x0;let _0x4826a5=_0x5621[_0x5938bc];return _0x4826a5;};import{ObservableMixin as _0x58337f}from'ckeditor5/src/utils';import{getTranslation as _0x80bf19}from'../utils/common-translations';export default class qt extends _0x58337f(){constructor(_0x5aedaa,_0x45b682,_0x3715ed,_0x441c2c){super(),this[_0x4826('0xa')]=_0x45b682,this[_0x4826('0x1')]=_0x3715ed,this['commentThreadController']=_0x441c2c,this[_0x4826('0xe')]=_0x5aedaa,this[_0x4826('0x14')]=_0x5aedaa[_0x4826('0x15')][_0x4826('0x1e')](_0x4826('0x16')),this[_0x4826('0xd')]=_0x5aedaa[_0x4826('0x15')][_0x4826('0x1e')](_0x4826('0x8')),this[_0x4826('0x1')][_0x4826('0x1c')](_0x4826('0xb'))['to'](this[_0x4826('0x14')],this['_discardCommand'],(_0x3530c4,_0x3dc3cd)=>_0x3530c4||_0x3dc3cd),this[_0x4826('0x1')][_0x4826('0x1c')](_0x4826('0x10'))['to'](this[_0x4826('0x14')],_0x4826('0xb'),_0x17484c=>_0x17484c&&this[_0x4826('0xe')][_0x4826('0xa')][_0x4826('0x2')](_0x45b682[_0x4826('0x18')]())),this[_0x4826('0x1')]['bind'](_0x4826('0x0'))['to'](this[_0x4826('0xd')],'isEnabled',_0x4a805c=>_0x4a805c&&this['_editor'][_0x4826('0xa')][_0x4826('0x2')](_0x45b682['getRanges']())),this[_0x4826('0x17')]=null,_0x3715ed[_0x4826('0x19')]&&this[_0x4826('0xc')](),this['listenTo'](_0x3715ed,_0x4826('0x16'),()=>this[_0x4826('0x16')]()),this[_0x4826('0x4')](_0x3715ed,'discardSuggestion',()=>this[_0x4826('0x8')]()),this[_0x4826('0x4')](_0x3715ed,_0x4826('0xf'),()=>{_0x3715ed['isDirty']?this[_0x4826('0xc')]():this[_0x4826('0x12')]();});}[_0x4826('0x16')](){this[_0x4826('0x14')][_0x4826('0x1a')](this[_0x4826('0xa')]['id']);}[_0x4826('0x8')](){this['_discardCommand'][_0x4826('0x1a')](this[_0x4826('0xa')]['id']);}[_0x4826('0x7')](){this[_0x4826('0x1')][_0x4826('0x9')]('isEnabled'),this['view'][_0x4826('0x9')]('canAccept'),this[_0x4826('0x1')][_0x4826('0x9')]('canDiscard'),this['stopListening'](),this[_0x4826('0x3')][_0x4826('0x7')](),this[_0x4826('0x17')]&&this[_0x4826('0x12')]();}[_0x4826('0xc')](){const _0x34f13e=_0x80bf19(this[_0x4826('0xe')][_0x4826('0x11')],_0x4826('0x1b'));this[_0x4826('0x17')]=this[_0x4826('0xe')][_0x4826('0x13')][_0x4826('0x1e')](_0x4826('0x1d'))[_0x4826('0x6')](_0x34f13e);}[_0x4826('0x12')](){null!==this[_0x4826('0x17')]&&this['_editor'][_0x4826('0x13')][_0x4826('0x1e')](_0x4826('0x1d'))[_0x4826('0x5')](this['_pendingAction']),this[_0x4826('0x17')]=null;}}
|