@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230914.0 → 0.0.0-nightly-20230915.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 +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/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.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +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.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b11=['isAfter','deletion:accept','adapter','isInsideObject','enableCommand','_getExternalAuthor','filter','formatBlock:discard','insertion:chain','attributes','change','suggestionUnloaded','editor','author','createSelection','isLocal','type','fromCharCode','TrackChangesEditing','error-saving-suggestion-data-suggestion-discarded','markerNameToElements','markInsertion','map','fetchCommentThread','hasComments','_removeSuggestion','getRange','_customCallbacks','position','normal','delete','from','for','setSelection','get','setAttribute','discardAllSuggestions','enqueueChange','getAncestors','data-suggestion','external:','getNearestSelectionRange','splice','getWalker','getChangedMarkers','addHighlight','registerPostFixer','size','_joinSuggestions','clone','every','next','authorName','getUser','_registerDefaultCallbacks','_rangeIsInLocalUserInsertion','insertion:join','insertion:','creator','rejected','markMultiRangeDeletion','tablePasteChainId','isDocumentOperation','head','values','$textProxy','addSuggestionData','editing','data','deletion:discard','high','document','addCommentThread','catch','addMarkerName','getSuggestion','multipleBlocks','containsRangeInObject','name','isInContent','Users','getSuggestions','isObject','before','CommentsRepository','isMultiRange','unbind','elementEnd','authoredAt','_splitMarkerName','_getSuggestionData','_addThreadToSuggestion','markers','_adapter','_editor','updateMarker','moveTargetPosition','formatBlock:chain','createPositionBefore','substr','removeMarker','sort','_suggestionFactory','always','trackChanges.mergeNestedSuggestions','formatInline:','isAtStart','isLimit','removeMarkers','push','isTouching','getFirstRange','getItems','change:data','buildSuggestion','enableReadOnlyMode','stopListening','consumable','deletion:join','getAttribute','getIntersection','PENDING_ACTION_SUGGESTION','targetPosition','locale','_model','mapper','markMultiRangeBlockFormat','config','after','conversion','acceptSuggestion','activeMarkers','isCollapsed','registerCustomCallback','originalSuggestionId','_enabledCommands','ck-suggestion-marker-','isEqual','marker-count','rootName','createRangeIn','start','ck-suggestion-marker','refresh','some','_breakSuggestionMarker','getCustomProperty','_mergeNestedSuggestions','getCommentThread','isUndo','setTo','model','createdAt','fromRange','removeComment','_saved','track-changes-user-not-found','set','_checkSuggestionCorrectness','consume','multi','track-changes-suggestion-data-mismatch','markerToHighlight','acceptAllSuggestions','_setSuggestionRange','has','writer','then','getLastMatchingPosition','low','$graveyard','_cutOutSuggestionMarker','markerName','trackChanges.trackFormatChanges','editingDowncast','newRange','skipNestingCheck','_trackFormatChanges','add','isIntersectingWithRange','nodeAfter','containsRange','formatBlock:','formatBlock','selection','containerElement','_joinWithAdjacentSuggestions','pluginName','suggestionChanged','backward','_suggestionState','widget','hasSuggestion','rethrowUnexpectedError','formatInline:chain','insertion','isBlock','_getAuthorFromId','_handleNewSuggestionMarker','getSuggestionCallback','_suggestions','subType','group','_createSuggestion','removeMarker:suggestion:formatBlock','removed','formatInline:discard','nodeBefore','isAtEnd','fire','getShiftedBy','addMarker:suggestion:formatBlock','containsItem','isSelectable','change:_saved','deletion:chain','getFirstMarker','element','hasCommentThread','@external','_addSuggestionMarker','addRange','discard','return','getAllAdjacentSuggestions','PendingActions','insertContent','_setSuggestionData','requires','toJSON','forceDefaultExecution','getDifference','removeAttribute','insert','markInlineFormat','_defaultCallbacks','collaboration.channelId','remove','_commentsRepository','_isForcedDefaultExecutionBlock','parent','addSuggestion','acceptSelectedSuggestions','oldRange','define','root','deletion','accept','formatGroupId','length','isArray','addMarker:suggestion','includes','bindElementToMarker','listenTo','howMany','updateSuggestion','plugins','markDeletion','removeClass','split','getRanges','highest','track-changes-adapter-missing-getsuggestion','_refreshSuggestionsChain','suggestion','end','commandName','isOwn','formatInline:join','_updateSuggestionData','ck-suggestion-marker-formatBlock','formatBlock:join','addMarker','formatInline','dataDowncast','never','stop','deletion:','differ','containsPosition','forward','range','ready','deleteContent','join','item','discardSuggestion','showSuggestionHighlights','move','suggestion-type','addComment','createPositionAt','elementToElement','createElement','getMultiRangeId','notReady','createPositionAfter','resolve','assign','commands','getChanges','_descriptionFactory','open','toViewElement','dataReady','trackChanges','previous','detach','execute','markerToData','trackChangesCommand','discardSelectedSuggestions','batch','_isDataLoaded','clear','ck-suggestion-marker--active','isNextTo','options','schema','markerReady','value','isRemovable','commentThread','addClass','insertion:discard','suggestion:','track-changes-command-not-found','lowest','createRange','getMarkers','_findSuggestions','isBefore'];(function(_0x2225ac,_0x1b11dd){const _0x4691fe=function(_0x227d70){while(--_0x227d70){_0x2225ac['push'](_0x2225ac['shift']());}};_0x4691fe(++_0x1b11dd);}(_0x1b11,0xf3));const _0x4691=function(_0x2225ac,_0x1b11dd){_0x2225ac=_0x2225ac-0x0;let _0x4691fe=_0x1b11[_0x2225ac];return _0x4691fe;};import{Plugin as _0x5d24fa,PendingActions as _0x251440}from'ckeditor5/src/core';import{LiveRange as _0x2df8ac}from'ckeditor5/src/engine';import{CKEditorError as _0x25e35d,uid as _0x32ed3d,priorities as _0x32d0e0,logWarning as _0x53f60d}from'ckeditor5/src/utils';import{toWidget as _0x5aab48}from'ckeditor5/src/widget';import{Users as _0x136091,hashObject as _0x22a06c}from'ckeditor5-collaboration/src/collaboration-core';import _0x393a57 from'./commands/trackchangescommand';import _0x8f6700 from'./commands/acceptsuggestioncommand';import _0x427239 from'./commands/discardsuggestioncommand';import _0x351e6d from'./commands/executeonallsuggestionscommand';import _0x29d4fa from'./commands/executeonselectedsuggestionscommand';import _0x54c8de from'./suggestion';import _0x34262d from'./suggestiondescriptionfactory';import _0x1726ac from'./integrations/alignment';import _0x143007 from'./integrations/basicstyles';import _0x359832 from'./integrations/blockquote';import _0x1f4016 from'./integrations/ckbox';import _0x1b65ef from'./integrations/codeblock';import _0x52cf45 from'./integrations/comments';import _0x1f10a6 from'./integrations/deletecommand';import _0x336dec from'./integrations/documentlist';import _0x5bca61 from'./integrations/entercommand';import _0x16bb44 from'./integrations/findandreplace';import _0x4668f7 from'./integrations/font';import _0x289bfa from'./integrations/formatpainter';import _0x5226c7 from'./integrations/heading';import _0x2423c6 from'./integrations/highlight';import _0x11e473 from'./integrations/horizontalline';import _0x5f52fd from'./integrations/htmlembed';import _0x119ee6 from'./integrations/image';import _0x31c8c9 from'./integrations/imagereplace';import _0x2b0445 from'./integrations/importword';import _0x306535 from'./integrations/indent';import _0x2e6ff2 from'./integrations/inputcommand';import _0x17dc7f from'./integrations/link';import _0x399a8d from'./integrations/list';import _0x31f191 from'./integrations/listproperties';import _0x410d8b from'./integrations/mediaembed';import _0x2b261f from'./integrations/mention';import _0x2c35e5 from'./integrations/pagebreak';import _0x5f51fb from'./integrations/paragraph';import _0x482d89 from'./integrations/removeformat';import _0x1ec80e from'./integrations/restrictededitingmode';import _0x71389f from'./integrations/shiftentercommand';import _0xc83b56 from'./integrations/standardeditingmode';import _0x25cafb from'./integrations/style';import _0x3209e4 from'./integrations/table';import _0x34f40b from'./integrations/tablemergesplit';import _0x519b25 from'./integrations/tableheadings';import _0x4ab63c from'./integrations/tableclipboard';import _0x2e35a2 from'./integrations/tablecolumnresize';import _0x85ef70 from'./integrations/template';import _0x5140d0 from'./integrations/tableofcontents';import _0x1379eb from'./integrations/title';import _0x4c4a06 from'./integrations/undo';import{getTranslation as _0x5dd572}from'./utils/common-translations';import _0x349faa from'./integrations/tablecaption';import _0x32246f from'./integrations/documentlistproperties';import _0x3db00d from'./integrations/tableproperties';import{isEqual as _0x303ab4}from'lodash-es';export default class p extends _0x5d24fa{static get[_0x4691('0x13e')](){return[_0x4691('0xae'),_0x136091,_0x251440,_0x1726ac,_0x143007,_0x359832,_0x1f4016,_0x1b65ef,_0x52cf45,_0x1f10a6,_0x336dec,_0x32246f,_0x5bca61,_0x16bb44,_0x4668f7,_0x289bfa,_0x5226c7,_0x2423c6,_0x11e473,_0x5f52fd,_0x119ee6,_0x31c8c9,_0x2b0445,_0x306535,_0x2e6ff2,_0x17dc7f,_0x399a8d,_0x31f191,_0x410d8b,_0x2b261f,_0x2c35e5,_0x5f51fb,_0x482d89,_0x1ec80e,_0x71389f,_0xc83b56,_0x25cafb,_0x3209e4,_0x34f40b,_0x519b25,_0x349faa,_0x4ab63c,_0x2e35a2,_0x5140d0,_0x3db00d,_0x85ef70,_0x1379eb,_0x4c4a06];}static get[_0x4691('0x115')](){return _0x4691('0x6c');}constructor(_0x1201c0){function _0x54b089(_0x21e448){return _0x21e448['map'](_0x4d4836=>String[_0x4691('0x6b')](_0x4d4836))[_0x4691('0x2a')]('');}super(_0x1201c0),this[_0x4691('0xf7')](_0x4691('0xdd'),[]),this['on']('change:activeMarkers',(_0x5b4ff2,_0x5b6977,_0x62f1b6,_0x383b91)=>{this[_0x4691('0xd6')][_0x4691('0x64')](()=>{for(const _0x58e7aa of[..._0x383b91,..._0x62f1b6])this['_model'][_0x4691('0xb6')][_0x4691('0xff')](_0x58e7aa)&&_0x1201c0[_0x4691('0x9d')]['reconvertMarker'](_0x58e7aa);});}),this[_0x4691('0x3b')]=new _0x34262d(this[_0x4691('0x66')][_0x4691('0xf1')][_0x4691('0x4c')],this['editor'][_0x4691('0xd5')]),this[_0x4691('0xb7')]=null,this[_0x4691('0xc0')]=new Dt(this['editor']),this[_0x4691('0x122')]=new Map(),this[_0x4691('0x148')]=_0x1201c0['plugins'][_0x4691('0x7c')](_0x4691('0xae')),this[_0x4691('0xe1')]=new Set(),this['_model']=this['editor'][_0x4691('0xf1')],this[_0x4691('0x118')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1201c0[_0x4691('0xd9')][_0x4691('0x1')](_0x4691('0x107'),'default'),this[_0x4691('0x10b')]=_0x1201c0[_0x4691('0xd9')][_0x4691('0x7c')](_0x4691('0x107')),_0x1201c0[_0x4691('0xd9')][_0x4691('0x1')](_0x4691('0xc2'),!0x0),this[_0x4691('0xed')]=_0x1201c0[_0x4691('0xd9')][_0x4691('0x7c')](_0x4691('0xc2')),this[_0x4691('0x44')]=new _0x393a57(_0x1201c0,this['_enabledCommands']),this[_0x54b089([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x54b089([0x34,0x30,0x34,0x36,0x31,0x38,0x32,0x38]);}['init'](){const _0x2b4408=this[_0x4691('0x66')];_0x2b4408[_0x4691('0xdb')]['for'](_0x4691('0x108'))['markerToHighlight']({'model':'suggestion','view':_0x476ade=>{const {id:_0x362695,type:_0x41d219}=this[_0x4691('0xb3')](_0x476ade[_0x4691('0x106')]),_0x263844=[_0x4691('0xe8'),_0x4691('0xe2')+_0x41d219];let _0x1e0c3a=0xbb8;return this[_0x4691('0xdd')]['includes'](_0x476ade['markerName'])&&(_0x263844[_0x4691('0xc7')](_0x4691('0x49')),_0x1e0c3a=0xbc2),_0x4691('0x3')==_0x41d219&&(_0x1e0c3a+=0x5),{'classes':_0x263844,'attributes':{'data-suggestion':_0x362695},'priority':_0x1e0c3a};}}),_0x2b4408[_0x4691('0xdb')][_0x4691('0x7a')](_0x4691('0x20'))[_0x4691('0x10c')](_0x7f4e4e=>{_0x7f4e4e['on'](_0x4691('0x8'),(_0x1f20aa,_0x1128e1,_0x2c9f21)=>{if(!_0x2c9f21[_0x4691('0x4b')][_0x4691('0x2d')])return;const _0x174180=_0x1128e1['item'];if(!_0x174180)return;const _0x4f559e=_0x2c9f21[_0x4691('0xd7')]['toViewElement'](_0x174180);_0x2b4408[_0x4691('0xf1')][_0x4691('0x4c')][_0x4691('0xac')](_0x174180)&&_0x4f559e&&!_0x4f559e[_0x4691('0xec')](_0x4691('0x119'))&&_0x4f559e['is'](_0x4691('0x113'))&&_0x5aab48(_0x4f559e,_0x2c9f21['writer']);},{'priority':_0x4691('0xa0')});}),_0x2b4408[_0x4691('0xdb')][_0x4691('0x7a')]('dataDowncast')[_0x4691('0xfc')]({'model':_0x4691('0x16'),'view':(_0x4af7df,_0x66fdf1)=>{if(!_0x66fdf1[_0x4691('0x4b')][_0x4691('0x2d')])return null;const {type:_0x5cc076}=this['_splitMarkerName'](_0x4af7df[_0x4691('0x106')]);return{'classes':['ck-suggestion-marker',_0x4691('0xe2')+_0x5cc076],'priority':0xbb8};}});const _0xf8b165=({showActiveMarkers:_0x35d50e=!0x0}={})=>(_0x5cfdcf,_0x4c84d3,_0x58b8ff)=>{if(!_0x4c84d3['item'])return;if(_0x4c84d3[_0x4691('0x2b')]['is']('selection'))return void _0x58b8ff[_0x4691('0xcf')][_0x4691('0xf9')](_0x4c84d3[_0x4691('0x2b')],_0x5cfdcf['name']);const _0x10496f=_0x58b8ff[_0x4691('0xd7')][_0x4691('0x3d')](_0x4c84d3['item']);if(!(_0x4c84d3[_0x4691('0x2b')]['is'](_0x4691('0x133'))&&_0x2b4408[_0x4691('0xf1')][_0x4691('0x4c')]['isBlock'](_0x4c84d3['item'])&&!_0x10496f[_0x4691('0xec')](_0x4691('0x87'))))return;const {id:_0x5cdb03}=this[_0x4691('0xb3')](_0x4c84d3[_0x4691('0x106')]);_0x58b8ff[_0x4691('0x100')][_0x4691('0x51')]([_0x4691('0xe8'),'ck-suggestion-marker-formatBlock'],_0x10496f),_0x58b8ff[_0x4691('0x100')][_0x4691('0x7d')](_0x4691('0x81'),_0x5cdb03,_0x10496f),_0x58b8ff[_0x4691('0xd7')][_0x4691('0xa')](_0x10496f,_0x4c84d3['markerName']),_0x35d50e&&(this[_0x4691('0xdd')][_0x4691('0x9')](_0x4c84d3[_0x4691('0x106')])?_0x58b8ff[_0x4691('0x100')][_0x4691('0x51')](_0x4691('0x49'),_0x10496f):_0x58b8ff[_0x4691('0x100')]['removeClass'](_0x4691('0x49'),_0x10496f));for(const _0x130350 of _0x2b4408[_0x4691('0xf1')][_0x4691('0xe6')](_0x4c84d3[_0x4691('0x2b')])[_0x4691('0xca')]())_0x58b8ff[_0x4691('0xcf')][_0x4691('0xf9')](_0x130350,_0x5cfdcf['name']);_0x58b8ff['consumable']['consume'](_0x4c84d3['item'],_0x5cfdcf['name']);};_0x2b4408[_0x4691('0xdb')][_0x4691('0x7a')](_0x4691('0x20'))[_0x4691('0x10c')](_0x3928f0=>{_0x3928f0['on'](_0x4691('0x12d'),(_0x4fb418,_0x594f00,_0x580d03)=>{_0x580d03['options'][_0x4691('0x2d')]&&_0xf8b165({'showActiveMarkers':!0x1})(_0x4fb418,_0x594f00,_0x580d03);},{'priority':_0x4691('0x13')});}),_0x2b4408['conversion'][_0x4691('0x7a')]('dataDowncast')[_0x4691('0x43')]({'model':'suggestion','view':(_0x5ced1a,_0xbd3272)=>_0xbd3272[_0x4691('0x4b')][_0x4691('0x2d')]?null:{'group':'suggestion','name':_0x5ced1a[_0x4691('0xbd')](0xb)}}),_0x2b4408[_0x4691('0xdb')][_0x4691('0x7a')]('upcast')[_0x4691('0x32')]({'view':{'name':_0x4691('0x16'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x640219,{writer:_0x5f1e5f})=>{let _0x4c91cd='suggestion:'+_0x640219[_0x4691('0xd1')](_0x4691('0x2f'))+':'+_0x640219[_0x4691('0xd1')]('id');return _0x640219[_0x4691('0xd1')](_0x4691('0xe4'))&&(_0x4c91cd+=':'+_0x640219['getAttribute']('marker-count')),_0x5f1e5f[_0x4691('0x33')]('$marker',{'data-name':_0x4c91cd});}}),_0x2b4408[_0x4691('0xdb')][_0x4691('0x7a')]('upcast')['dataToMarker']({'view':'suggestion'}),_0x2b4408[_0x4691('0xdb')]['for'](_0x4691('0x108'))[_0x4691('0x10c')](_0x5441ee=>{_0x5441ee['on']('addMarker:suggestion:formatBlock',_0xf8b165(),{'priority':_0x4691('0xa0')});}),_0x2b4408[_0x4691('0xdb')][_0x4691('0x7a')](_0x4691('0x108'))[_0x4691('0x10c')](_0x1409b7=>{_0x1409b7['on'](_0x4691('0x126'),(_0x1f5df3,_0x427ea2,_0x3b15d8)=>{const _0x360a0d=_0x3b15d8[_0x4691('0xd7')][_0x4691('0x6e')](_0x427ea2[_0x4691('0x106')]);if(_0x360a0d)for(const _0x5de4d9 of _0x360a0d)_0x5de4d9[_0x4691('0xec')](_0x4691('0x87'))||(_0x3b15d8[_0x4691('0x100')][_0x4691('0x10')]([_0x4691('0xe8'),_0x4691('0x1c'),_0x4691('0x49')],_0x5de4d9),_0x3b15d8[_0x4691('0x100')][_0x4691('0x142')](_0x4691('0x81'),_0x5de4d9),_0x3b15d8['mapper']['unbindElementFromMarkerName'](_0x5de4d9,_0x427ea2['markerName']));},{'priority':_0x4691('0xa0')});}),_0x2b4408[_0x4691('0xf1')]['document'][_0x4691('0x88')](_0x3e583b=>{let _0x394398=!0x1;const _0x3b26a6=Array[_0x4691('0x79')](_0x2b4408[_0x4691('0xf1')][_0x4691('0xa1')][_0x4691('0x24')][_0x4691('0x86')]()),_0x5c5bfc=new Set();for(const {name:_0x29848c,data:_0x2a5223}of _0x3b26a6){const {group:_0x578caa,type:_0x12bc27,id:_0x13ff42}=this['_splitMarkerName'](_0x29848c);if(_0x4691('0x16')!==_0x578caa)continue;const _0x51c60b=this[_0x4691('0x122')]['get'](_0x13ff42);if(null!=_0x2a5223[_0x4691('0x109')]){_0x4691('0x1f')==_0x12bc27&&(_0x394398=_0x394398||Mt(_0x2a5223[_0x4691('0x109')],_0x29848c,_0x3e583b,_0x2b4408['model'][_0x4691('0x4c')]));if(_0x2a5223[_0x4691('0x109')][_0x4691('0xde')]||_0x4691('0x104')==_0x2a5223['newRange']['root'][_0x4691('0xe5')]||_0x4691('0x111')==_0x12bc27&&!Nt(_0x2a5223[_0x4691('0x109')])||_0x4691('0x3')==_0x12bc27&&!(!_t(_0x56c394=_0x2a5223[_0x4691('0x109')])&&!function(_0xfc402f){return _0xfc402f[_0x4691('0xe7')][_0x4691('0x14a')]==_0xfc402f['end'][_0x4691('0x129')]&&_0xfc402f['start'][_0x4691('0x12a')];}(_0x56c394)))_0x3e583b['removeMarker'](_0x29848c),_0x394398=!0x0;else{if(!_0x51c60b||!_0x51c60b[_0x4691('0xa9')])continue;_0x5c5bfc[_0x4691('0x10c')](_0x51c60b);}}}var _0x56c394;return _0x5c5bfc[_0x4691('0x89')]>0x0&&(_0x394398=!!this[_0x4691('0x114')](_0x5c5bfc)||_0x394398),_0x394398;}),_0x2b4408['model'][_0x4691('0xa1')][_0x4691('0x88')](_0x59828a=>{let _0x38f0cb=!0x1;for(const _0x476052 of _0x2b4408[_0x4691('0xf1')][_0x4691('0xa1')]['differ'][_0x4691('0x3a')]()){if(_0x4691('0x143')!=_0x476052['type'])continue;const _0x21ba75=_0x476052['position'][_0x4691('0x12c')](_0x476052['length']);if(_0x21ba75[_0x4691('0x12a')])for(const _0x30b9c4 of this[_0x4691('0x122')]['values']()){if(_0x30b9c4[_0x4691('0xaf')]||!_0x30b9c4[_0x4691('0xa9')])continue;if(_0x4691('0x111')!=_0x30b9c4[_0x4691('0x6a')])continue;const _0x3f60a8=_0x30b9c4['getFirstRange']();if(_0x3f60a8[_0x4691('0xe7')][_0x4691('0x14a')]!=_0x3f60a8['end'][_0x4691('0x14a')]&&_0x3f60a8[_0x4691('0x17')][_0x4691('0xe3')](_0x476052[_0x4691('0x76')])){const _0x42a49d=_0x2b4408[_0x4691('0xf1')]['createRange'](_0x3f60a8[_0x4691('0xe7')],_0x21ba75);_0x59828a[_0x4691('0xb9')](_0x30b9c4[_0x4691('0x132')](),{'range':_0x42a49d}),_0x38f0cb=!0x0;}}}return _0x38f0cb;}),_0x2b4408[_0x4691('0xf1')][_0x4691('0xb6')]['on']('update:suggestion',(_0x2ed9fd,_0x2f4153,_0x3b1f11)=>{if(null==_0x3b1f11){const {id:_0x1ec446}=this[_0x4691('0xb3')](_0x2f4153[_0x4691('0xa8')]),_0x303de2=this[_0x4691('0x122')]['get'](_0x1ec446);_0x303de2&&_0x303de2['addMarkerName'](_0x2f4153[_0x4691('0xa8')]);}}),_0x2b4408[_0x4691('0xf1')]['document']['on'](_0x4691('0xcb'),()=>{const _0x557033=Array[_0x4691('0x79')](_0x2b4408[_0x4691('0xf1')][_0x4691('0xa1')][_0x4691('0x24')]['getChangedMarkers']())[_0x4691('0x60')](_0x1862cb=>_0x4691('0x16')===this[_0x4691('0xb3')](_0x1862cb[_0x4691('0xa8')])[_0x4691('0x124')]);if(0x0===_0x557033[_0x4691('0x6')])return;_0x557033[_0x4691('0xbf')]((_0x3f36a4,_0xade57c)=>{const _0x2f4536=_0x3f36a4[_0x4691('0x9e')][_0x4691('0x0')],_0x63b4d9=_0xade57c[_0x4691('0x9e')][_0x4691('0x0')];return null===_0x2f4536&&null===_0x63b4d9?0x0:null===_0x2f4536&&null!==_0x63b4d9?-0x1:null!==_0x2f4536&&null===_0x63b4d9?0x1:_0x2f4536['start']['isBefore'](_0x63b4d9[_0x4691('0xe7')])?-0x1:0x1;});const _0x400165=new Set(),_0x2f97e1=new Set();for(const {name:_0x73b96,data:_0x5362ea}of _0x557033){const {id:_0x42ae63}=this[_0x4691('0xb3')](_0x73b96);if(null===_0x5362ea[_0x4691('0x0')]){const _0x2c7e05=this['_handleNewSuggestionMarker'](_0x73b96);_0x2f97e1[_0x4691('0x10c')](_0x2c7e05);}else{const _0xe67595=this[_0x4691('0x122')][_0x4691('0x7c')](_0x42ae63);null!==_0x5362ea[_0x4691('0x109')]||_0xe67595[_0x4691('0xa9')]?(_0x400165['add'](_0xe67595[_0x4691('0x99')]),_0x2f97e1[_0x4691('0x10c')](_0xe67595)):this[_0x4691('0x73')](_0xe67595);}}_0x2f97e1[_0x4691('0x89')]>0x0&&this[_0x4691('0x15')](_0x2f97e1);for(const _0x410398 of _0x400165)this[_0x4691('0x12b')](_0x4691('0x116'),_0x410398);}),_0x2b4408[_0x4691('0xf1')]['on']('applyOperation',(_0x3b27fb,_0x38e7c1)=>{const _0x2d698b=_0x38e7c1[0x0];if(!this[_0x4691('0x122')][_0x4691('0x89')])return;if(!_0x2d698b[_0x4691('0x98')])return;if(_0x2d698b['batch'][_0x4691('0xef')]||!_0x2d698b[_0x4691('0x46')][_0x4691('0x69')])return;let _0x4f75f5,_0x4ec378;switch(_0x2d698b[_0x4691('0x6a')]){case _0x4691('0x143'):_0x4f75f5=_0x2b4408[_0x4691('0xf1')][_0x4691('0x31')](_0x2d698b[_0x4691('0x76')]),_0x4ec378=_0x4f75f5[_0x4691('0x12c')](_0x2d698b[_0x4691('0xc')]);break;case'split':_0x4f75f5=_0x2b4408['model'][_0x4691('0x31')](_0x2d698b['splitPosition']),_0x4ec378=_0x2b4408[_0x4691('0xf1')][_0x4691('0x31')](_0x2d698b[_0x4691('0xba')]);break;case _0x4691('0x2e'):_0x4f75f5=_0x2b4408[_0x4691('0xf1')][_0x4691('0x31')](_0x2d698b[_0x4691('0xd4')]),_0x4ec378=_0x4f75f5['getShiftedBy'](_0x2d698b['howMany']);break;default:return;}const _0x483cbf=_0x2b4408['model'][_0x4691('0x56')](_0x4f75f5,_0x4ec378);_0x2b4408[_0x4691('0xf1')]['change'](()=>{for(const {suggestion:_0x47b2a7,meta:_0x8d8a75}of this[_0x4691('0x58')](_0x483cbf)){if(_0x47b2a7['isMultiRange'])continue;if('formatInline'==_0x47b2a7['type'])continue;const _0x3932e9=_0x47b2a7['data']&&_0x47b2a7['data'][_0x4691('0xa6')];(_0x4691('0x111')!=_0x47b2a7[_0x4691('0x6a')]||_0x4691('0x11')==_0x2d698b[_0x4691('0x6a')]&&!_0x3932e9)&&(_0x8d8a75['containsRangeInObject']||'insertion'==_0x47b2a7[_0x4691('0x6a')]&&_0x8d8a75[_0x4691('0x19')]||_0x47b2a7[_0x4691('0xc9')]()[_0x4691('0x10f')](_0x483cbf)&&this[_0x4691('0xeb')](_0x47b2a7,_0x4f75f5,_0x4ec378));}});},{'priority':_0x4691('0x55')}),_0x2b4408['model']['on'](_0x4691('0x29'),(_0x5ee1e5,_0x35a698)=>{const _0x596dc6=_0x35a698[0x0],_0xf22bc2=_0x35a698[0x1];if(_0xf22bc2&&_0xf22bc2['forceDefaultExecution'])return;if(this[_0x4691('0x149')])return;if(!this[_0x4691('0x44')][_0x4691('0x4e')])return;if(_0x596dc6['isCollapsed'])return;const _0x34e21e=_0x2b4408[_0x4691('0xf1')][_0x4691('0x4c')],{start:_0xd5506e,end:_0x3864f9}=_0x596dc6['getFirstRange'](),_0x59183d=_0xd5506e[_0x4691('0x10e')]&&_0x34e21e['isLimit'](_0xd5506e[_0x4691('0x10e')])?null:_0x34e21e[_0x4691('0x83')](_0xd5506e,_0x4691('0x26')),_0x3ddccc=_0x3864f9['nodeBefore']&&_0x34e21e[_0x4691('0xc5')](_0x3864f9[_0x4691('0x129')])?null:_0x34e21e['getNearestSelectionRange'](_0x3864f9,_0x4691('0x117')),_0x494227=_0x2b4408[_0x4691('0xf1')][_0x4691('0x56')](_0x59183d?_0x59183d['start']:_0xd5506e,_0x3ddccc?_0x3ddccc[_0x4691('0x17')]:_0x3864f9);_0x2b4408[_0x4691('0xf1')][_0x4691('0x64')](_0x5cbd71=>{this[_0x4691('0xf')](_0x494227);const _0x5287da=_0x2b4408[_0x4691('0xf1')][_0x4691('0x4c')]['getNearestSelectionRange'](_0x494227[_0x4691('0xe7')]);_0x596dc6['is']('documentSelection')?_0x5cbd71[_0x4691('0x7b')](_0x5287da):_0x596dc6[_0x4691('0xf0')](_0x5287da);}),_0x5ee1e5[_0x4691('0x22')]();},{'priority':_0x32d0e0[_0x4691('0x77')]+0xa}),_0x2b4408['model']['on']('insertContent',(_0x259078,_0x44fc44)=>{const _0x411f53=_0x44fc44[_0x44fc44[_0x4691('0x6')]-0x1];_0x411f53&&_0x411f53[_0x4691('0x140')]||this[_0x4691('0x149')]||this[_0x4691('0x44')][_0x4691('0x4e')]&&(_0x2b4408[_0x4691('0xf1')][_0x4691('0x64')](()=>{let _0x1a395c=_0x2b4408[_0x4691('0xf1')][_0x4691('0x13c')](_0x44fc44[0x0],_0x44fc44[0x1],_0x44fc44[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a395c)return;_0x259078[_0x4691('0x139')]=_0x1a395c[_0x4691('0x8b')]();const _0x44bc7c=_0x1a395c['end'][_0x4691('0x129')],_0x30b243=_0x2b4408[_0x4691('0xf1')]['schema'];_0x44bc7c&&_0x30b243[_0x4691('0x11e')](_0x44bc7c)&&!_0x30b243['isObject'](_0x44bc7c)&&(_0x1a395c=_0x2b4408[_0x4691('0xf1')][_0x4691('0x56')](_0x1a395c[_0x4691('0xe7')],_0x2b4408[_0x4691('0xf1')][_0x4691('0x31')](_0x44bc7c,_0x4691('0x17')))),this[_0x4691('0x6f')](_0x1a395c);}),_0x259078['stop']());},{'priority':_0x4691('0xa0')}),this[_0x4691('0x66')]['commands'][_0x4691('0x10c')](_0x4691('0x3f'),this[_0x4691('0x44')]),this[_0x4691('0x5e')](_0x4691('0x3f'));const _0x18db84=new _0x8f6700(_0x2b4408,this[_0x4691('0x122')]);_0x2b4408['commands']['add'](_0x4691('0xdc'),_0x18db84),this[_0x4691('0x5e')](_0x4691('0xdc'));const _0x296e8b=new _0x427239(_0x2b4408,this[_0x4691('0x122')]);_0x2b4408['commands'][_0x4691('0x10c')](_0x4691('0x2c'),_0x296e8b),this[_0x4691('0x5e')](_0x4691('0x2c')),_0x2b4408[_0x4691('0x39')]['add'](_0x4691('0xfd'),new _0x351e6d(_0x2b4408,_0x18db84,this['_suggestions'])),this[_0x4691('0x5e')](_0x4691('0xfd')),_0x2b4408[_0x4691('0x39')][_0x4691('0x10c')]('discardAllSuggestions',new _0x351e6d(_0x2b4408,_0x296e8b,this[_0x4691('0x122')])),this[_0x4691('0x5e')](_0x4691('0x7e')),_0x2b4408[_0x4691('0x39')][_0x4691('0x10c')]('acceptSelectedSuggestions',new _0x29d4fa(_0x2b4408,_0x18db84,this[_0x4691('0x122')])),this[_0x4691('0x5e')](_0x4691('0x14c')),_0x2b4408[_0x4691('0x39')][_0x4691('0x10c')](_0x4691('0x45'),new _0x29d4fa(_0x2b4408,_0x296e8b,this['_suggestions'])),this[_0x4691('0x5e')](_0x4691('0x45'));const _0x1030a6=_0x2b4408[_0x4691('0xe')][_0x4691('0x7c')]('CommentsRepository');this[_0x4691('0xb')](_0x1030a6,_0x4691('0x30'),(_0x1c6fce,{threadId:_0x424c15})=>{const _0x4ddf09=this['_suggestions'][_0x4691('0x7c')](_0x424c15);_0x4ddf09&&_0x4ddf09[_0x4691('0x50')]&&0x1===_0x4ddf09['commentThread']['length']&&this[_0x4691('0x1b')](_0x424c15,{'hasComments':!0x0});},{'priority':_0x4691('0x103')}),this[_0x4691('0xb')](_0x1030a6,_0x4691('0xf4'),(_0x38cc00,{threadId:_0x3d7860})=>{const _0x337d0a=this['_suggestions']['get'](_0x3d7860);_0x337d0a&&_0x337d0a[_0x4691('0x50')]&&!_0x337d0a[_0x4691('0x50')][_0x4691('0x6')]&&this['_updateSuggestionData'](_0x3d7860,{'hasComments':!0x1});},{'priority':'low'});}set[_0x4691('0x5c')](_0x484d2e){if(this[_0x4691('0xb7')])throw new _0x25e35d('track-changes-adapter-already-set',this);this[_0x4691('0xb7')]=_0x484d2e;}get[_0x4691('0x5c')](){return this[_0x4691('0xb7')];}[_0x4691('0xab')]({skipNotAttached:_0x2d995a=!0x1,toJSON:_0x14f103=!0x1}={}){const _0x4b7165=[];for(const _0xdb880f of this[_0x4691('0x122')][_0x4691('0x9a')]())_0x2d995a&&!_0xdb880f[_0x4691('0xa9')]||_0x4b7165['push'](_0xdb880f);return _0x14f103?_0x4b7165['map'](_0x39a13a=>_0x39a13a[_0x4691('0x13f')]()):_0x4b7165;}['getSuggestion'](_0x5b1d8d){const _0x5eab95=this[_0x4691('0x122')][_0x4691('0x7c')](_0x5b1d8d);if(!_0x5eab95)throw new _0x25e35d('track-changes-suggestion-not-found',this);return _0x5eab95;}[_0x4691('0x11a')](_0x9aa742){return this[_0x4691('0x122')][_0x4691('0xff')](_0x9aa742);}[_0x4691('0x9c')](_0x26ce0c){const {authorId:_0x22628e,id:_0x679877,attributes:_0x252a46}=_0x26ce0c,[_0x539e2d,_0x6229ce]=_0x26ce0c[_0x4691('0x6a')][_0x4691('0x11')](':'),_0x2995ff=this['_suggestions'][_0x4691('0x7c')](_0x679877)||this[_0x4691('0x125')](_0x539e2d,_0x6229ce,_0x679877,_0x22628e,_0x252a46);if(this[_0x4691('0xb5')](_0x2995ff),this[_0x4691('0xf8')](_0x2995ff,_0x539e2d,_0x6229ce||null,_0x22628e),_0x2995ff[_0x4691('0xf2')]=_0x26ce0c[_0x4691('0xf2')],_0x2995ff[_0x4691('0x47')]=!0x0,_0x252a46&&_0x252a46[_0x4691('0x135')]){const _0x59f989=_0x252a46[_0x4691('0x135')],_0x3022fd=this[_0x4691('0x5f')](_0x59f989[_0x4691('0x8e')]);_0x2995ff[_0x4691('0xb2')]=_0x59f989[_0x4691('0xf2')],_0x2995ff[_0x4691('0x67')]=_0x3022fd,_0x2995ff['isExternal']=!0x0;}else _0x2995ff['authoredAt']=_0x26ce0c['createdAt'];switch(_0x26ce0c['data']&&(_0x2995ff[_0x4691('0x9e')]=_0x26ce0c['data']),_0x26ce0c[_0x4691('0x63')]&&(_0x2995ff[_0x4691('0x63')]=_0x26ce0c[_0x4691('0x63')]),this[_0x4691('0xb7')]&&this['_adapter'][_0x4691('0x14b')]||(_0x2995ff[_0x4691('0xf5')]=!0x0),this['_suggestionState'][_0x4691('0x7c')](_0x2995ff)){case _0x4691('0x35'):this[_0x4691('0x118')][_0x4691('0xf7')](_0x2995ff,_0x4691('0x3e'));break;case _0x4691('0x4d'):_0x2995ff[_0x4691('0xa9')]?(this['_refreshSuggestionsChain'](new Set([_0x2995ff])),this[_0x4691('0x114')](new Set([_0x2995ff])),this[_0x4691('0x118')][_0x4691('0xf7')](_0x2995ff,_0x4691('0x28')),this[_0x4691('0x12b')]('suggestionLoaded',_0x2995ff)):this['_suggestionState'][_0x4691('0xf7')](_0x2995ff,_0x4691('0x127'));}return _0x2995ff;}[_0x4691('0xdc')](_0x17551a){this[_0x4691('0x140')](()=>{this['editor'][_0x4691('0xf1')][_0x4691('0x64')](()=>{for(const _0x5a375c of _0x17551a[_0x4691('0x13a')]())_0x5a375c[_0x4691('0x4')]();});});}['discardSuggestion'](_0x3d6ba9){this['forceDefaultExecution'](()=>{this[_0x4691('0x66')][_0x4691('0xf1')][_0x4691('0x64')](()=>{for(const _0x1f160e of _0x3d6ba9['getAllAdjacentSuggestions']())_0x1f160e[_0x4691('0x138')]();});});}[_0x4691('0x5e')](_0x22300e,_0x262419){const _0x53b6a9=this['editor'][_0x4691('0x39')][_0x4691('0x7c')](_0x22300e);if(!_0x53b6a9)throw new _0x25e35d(_0x4691('0x54'),this,{'commandName':_0x22300e});this[_0x4691('0xe1')][_0x4691('0x10c')](_0x53b6a9),_0x262419&&_0x53b6a9['on'](_0x4691('0x42'),(_0x567c77,_0x2c7885)=>{this[_0x4691('0x44')][_0x4691('0x4e')]&&(this['_isForcedDefaultExecutionBlock']||_0x2c7885['length']>0x0&&_0x2c7885[_0x2c7885[_0x4691('0x6')]-0x1]&&_0x2c7885[_0x2c7885['length']-0x1][_0x4691('0x140')]||(_0x262419((..._0x5f3e18)=>_0x53b6a9[_0x4691('0x42')](..._0x5f3e18,{'forceDefaultExecution':!0x0}),..._0x2c7885),_0x567c77['stop']()));},{'priority':_0x4691('0xa0')});}['forceDefaultExecution'](_0x519942){let _0x1fe0e5,_0x2e95b5;const _0x5f42f9=this[_0x4691('0x149')];this[_0x4691('0x149')]=!0x0;try{_0x1fe0e5=_0x519942();}catch(_0x49b714){_0x2e95b5=_0x49b714;}return _0x5f42f9||(this[_0x4691('0x149')]=!0x1),_0x2e95b5&&_0x25e35d[_0x4691('0x11b')](_0x2e95b5,this),_0x1fe0e5;}[_0x4691('0x6f')](_0x252198,_0xdbd936=null,_0x3d0929={}){if(_0x252198[_0x4691('0xde')])return null;const _0x232ac9=this[_0x4691('0x66')][_0x4691('0xe')]['get']('Users')['me'];for(const {suggestion:_0x785ea2,meta:_0x113e6e}of this['_findSuggestions'](_0x252198,'insertion'))if(_0x113e6e[_0x4691('0x19')]){if(!_0x113e6e[_0x4691('0x4a')]){if(_0x113e6e['containsRangeInObject']){if(!this[_0x4691('0xed')]||!Ut(_0x785ea2,_0x3d0929))continue;return _0x785ea2;}if(Ut(_0x785ea2,_0x3d0929))return _0x785ea2;this[_0x4691('0xeb')](_0x785ea2,_0x252198[_0x4691('0xe7')],_0x252198['end']);break;}if(_0xdbd936==_0x785ea2['subType']&&Ut(_0x785ea2,_0x3d0929)){const _0x4058ae=_0x785ea2[_0x4691('0xc9')]();return _0x4058ae['start'][_0x4691('0xe3')](_0x252198['end'])?this[_0x4691('0xfe')](_0x785ea2,this['_model'][_0x4691('0x56')](_0x252198[_0x4691('0xe7')],_0x4058ae[_0x4691('0x17')])):this['_setSuggestionRange'](_0x785ea2,this[_0x4691('0xd6')][_0x4691('0x56')](_0x4058ae[_0x4691('0xe7')],_0x252198['end'])),_0x785ea2;}}const _0x459acf=_0x32ed3d(),_0x3aaa15=_0x232ac9['id'],_0x428673=_0xdbd936?_0x4691('0x93')+_0xdbd936:'insertion',_0x4e1d6c=this[_0x4691('0x13d')]({'id':_0x459acf,'type':_0x428673,'createdAt':new Date(),'authorId':_0x3aaa15,'attributes':_0x3d0929});return this[_0x4691('0x136')](_0x428673,_0x459acf,_0x3aaa15,_0x252198),_0x4e1d6c;}['markMultiRangeInsertion'](_0x46b1b7,_0xa240da=_0x4691('0xfa'),_0x3b10c7={}){const _0x55e275=this[_0x4691('0x66')][_0x4691('0xe')][_0x4691('0x7c')](_0x4691('0xaa'))['me'],_0x2fcf26=this['_suggestionFactory'][_0x4691('0x121')](_0x4691('0x11d'),_0xa240da,_0x4691('0x2a'));for(const _0x2ef006 of this[_0x4691('0xab')]())if(_0x2ef006[_0x4691('0x67')]['id']==_0x55e275['id']&&_0x4691('0x11d')==_0x2ef006['type']&&_0x2ef006[_0x4691('0x123')]==_0xa240da&&Ut(_0x2ef006,_0x3b10c7)&&(_0x2fcf26(_0x2ef006[_0x4691('0x12')](),_0x46b1b7)||_0x2fcf26(_0x46b1b7,_0x2ef006[_0x4691('0x12')]()))){for(const _0x39619f of _0x46b1b7)_0x2ef006[_0x4691('0x137')](_0x39619f);return _0x2ef006;}for(const {suggestion:_0x5963f1,meta:_0x4ac234}of this[_0x4691('0x58')](_0x46b1b7,_0x4691('0x11d'))){if(!_0x4ac234['isOwn'])continue;if(!this[_0x4691('0xed')]&&_0x4ac234['containsRangeInObject'])continue;if(!Ut(_0x5963f1,_0x3b10c7))continue;let _0x3e1e43=!0x0;for(const _0xc98fef of _0x5963f1['getRanges']())for(const _0xa7436d of _0x46b1b7)if(!_0xc98fef[_0x4691('0x10f')](_0xa7436d)){_0x3e1e43=!0x1;break;}if(_0x3e1e43)return _0x5963f1;}const _0x17c4e6=_0x32ed3d(),_0x29d57c=_0x55e275['id'],_0x218e20=_0x4691('0x93')+_0xa240da,_0x424534=this[_0x4691('0x13d')]({'id':_0x17c4e6,'type':_0x218e20,'createdAt':new Date(),'authorId':_0x29d57c,'attributes':_0x3b10c7});for(const _0x4153ab of _0x46b1b7)this[_0x4691('0x136')](_0x218e20,_0x17c4e6,_0x29d57c,_0x4153ab,_0x54c8de[_0x4691('0x34')]());return _0x424534;}[_0x4691('0x144')](_0x46fca1,_0x5ef3e8,_0x55f2f3=null,_0x3a0001={}){if(_0x55f2f3=_0x55f2f3||$t(_0x5ef3e8),_0x46fca1[_0x4691('0xde')])return null;if('never'===this[_0x4691('0x10b')]){const _0x3992d9=this[_0x4691('0xc0')][_0x4691('0x121')](_0x4691('0x1f'),_0x55f2f3,_0x4691('0x4'));return this[_0x4691('0x140')](()=>_0x3992d9([_0x46fca1],_0x5ef3e8,_0x3a0001)),null;}const _0x2a91b3=this[_0x4691('0x66')][_0x4691('0xe')]['get']('Users')['me'],_0x5d021d=[];if(_0x4691('0xc1')!==this[_0x4691('0x10b')])for(const {suggestion:_0x51fdbb,meta:_0x63c5cb}of this[_0x4691('0x58')](_0x46fca1,'insertion'))_0x63c5cb[_0x4691('0x19')]&&!_0x63c5cb[_0x4691('0x5d')]&&_0x5d021d[_0x4691('0xc7')](..._0x51fdbb[_0x4691('0x12')]());const _0x4e6ada=function(_0x386800,_0x15c648){const _0x358c7b=[];for(const _0x39dd5e of _0x15c648){const _0x3d2288=_0x386800[_0x4691('0xd2')](_0x39dd5e);_0x3d2288&&_0x358c7b['push'](_0x3d2288);}return _0x358c7b;}(_0x46fca1,_0x5d021d),_0x2b7d6d=function(_0x26ee4d,_0x16ce8f){const _0x148e25=[_0x26ee4d];for(const _0x5c5ca5 of _0x16ce8f){let _0x597a1a=0x0;for(;_0x597a1a<_0x148e25[_0x4691('0x6')];){const _0x17f6aa=_0x148e25[_0x597a1a][_0x4691('0x141')](_0x5c5ca5);_0x148e25[_0x4691('0x84')](_0x597a1a,0x1,..._0x17f6aa),_0x597a1a+=_0x17f6aa['length'];}}return _0x148e25;}(_0x46fca1,_0x5d021d);_0x4e6ada[_0x4691('0x6')]&&this[_0x4691('0xd6')]['change'](()=>{for(const _0x396c89 of _0x4e6ada){const _0x37ec9e=this['_suggestionFactory'][_0x4691('0x121')]('formatInline',_0x55f2f3,_0x4691('0x4'));this[_0x4691('0x140')](()=>_0x37ec9e([_0x396c89],_0x5ef3e8,_0x3a0001));}});for(const _0x305209 of _0x2b7d6d){let _0x5b51c2=null,_0x4d7714=_0x305209[_0x4691('0xe7')],_0x3b6e11=_0x305209['end'];for(const {suggestion:_0x36c078,meta:_0x35e48b}of this[_0x4691('0x58')](_0x305209,_0x4691('0x1f'))){if(!_0x35e48b[_0x4691('0x19')])continue;if(_0x36c078['subType']!=_0x55f2f3)continue;if(!Ut(_0x36c078,_0x3a0001))continue;const _0x145710=_0x36c078[_0x4691('0xc9')]();if(_0x145710[_0x4691('0x10f')](_0x305209,!0x0))return null;_0x4d7714=_0x4d7714[_0x4691('0x59')](_0x145710[_0x4691('0xe7')])?_0x4d7714:_0x145710[_0x4691('0xe7')],_0x3b6e11=_0x3b6e11[_0x4691('0x5a')](_0x145710[_0x4691('0x17')])?_0x3b6e11:_0x145710[_0x4691('0x17')],_0x5b51c2?_0x145710[_0x4691('0xe7')]['isBefore'](_0x5b51c2[_0x4691('0xc9')]()[_0x4691('0xe7')])?(_0x5b51c2[_0x4691('0xc6')](),_0x5b51c2=_0x36c078):_0x36c078[_0x4691('0xc6')]():_0x5b51c2=_0x36c078;}const _0x1648b4=this['_model']['createRange'](_0x4d7714,_0x3b6e11);if(_0x5b51c2)this[_0x4691('0xfe')](_0x5b51c2,_0x1648b4);else{const _0x1e7065=_0x32ed3d(),_0x332b9e=_0x2a91b3['id'];this['_setSuggestionData']({'id':_0x1e7065,'type':_0x4691('0xc3')+_0x55f2f3,'data':_0x5ef3e8,'createdAt':new Date(),'authorId':_0x332b9e,'attributes':_0x3a0001}),this[_0x4691('0x136')](_0x4691('0xc3')+_0x55f2f3,_0x1e7065,_0x332b9e,_0x1648b4);}}return null;}['markBlockFormat'](_0x239a0e,_0x218576,_0x1e8fed=[],_0x125a6a=null,_0x2e253d={}){_0x218576[_0x4691('0x5')]||(_0x218576[_0x4691('0x5')]=_0x218576[_0x4691('0x18')]),_0x218576[_0x4691('0xa6')]=_0x239a0e['is'](_0x4691('0x27')),_0x125a6a=_0x125a6a||$t(_0x218576);const _0x529267=_0x1e8fed[_0x4691('0x70')](_0x465f7a=>Rt(_0x465f7a,this[_0x4691('0xd6')])),_0x482c6d=_0x239a0e['is'](_0x4691('0x27'))?_0x239a0e:Rt(_0x239a0e,this[_0x4691('0xd6')]);if(_0x4691('0x21')===this[_0x4691('0x10b')]){const _0x470c7f=this['_suggestionFactory'][_0x4691('0x121')]('formatBlock',_0x125a6a,'accept');return this[_0x4691('0x140')](()=>_0x470c7f([_0x482c6d],_0x218576,_0x2e253d)),null;}_0x529267['push'](_0x482c6d);let _0x4a1251=!0x0;for(const _0xed11ae of _0x529267)if(!this['_rangeIsInLocalUserInsertion'](_0xed11ae)){_0x4a1251=!0x1;break;}if(_0x4a1251&&_0x4691('0xc1')!==this[_0x4691('0x10b')]){const _0x363b16=this[_0x4691('0xc0')][_0x4691('0x121')](_0x4691('0x111'),_0x125a6a,'accept');return this['forceDefaultExecution'](()=>_0x363b16([_0x482c6d],_0x218576,_0x2e253d)),null;}let _0x2e2c5c=null,_0x4a9e68=_0x482c6d[_0x4691('0xe7')],_0xee75b6=_0x482c6d['end'];for(const {suggestion:_0x2257ef,meta:_0x37afff}of this[_0x4691('0x58')](_0x482c6d,'formatBlock')){if(!_0x37afff['isOwn'])continue;if(_0x37afff[_0x4691('0x4a')]||_0x37afff[_0x4691('0xa7')]||_0x37afff[_0x4691('0x5d')])continue;if(_0x2257ef[_0x4691('0x9e')][_0x4691('0x5')]!=_0x218576[_0x4691('0x5')])continue;if(!Ut(_0x2257ef,_0x2e253d))continue;const _0x53b9f0=_0x2257ef[_0x4691('0xc9')]();if(_0x2257ef[_0x4691('0x123')]==_0x125a6a){if(_0x53b9f0[_0x4691('0x10f')](_0x482c6d,!0x0))return null;_0x4a9e68=_0x4a9e68['isBefore'](_0x53b9f0['start'])?_0x4a9e68:_0x53b9f0[_0x4691('0xe7')],_0xee75b6=_0xee75b6[_0x4691('0x5a')](_0x53b9f0[_0x4691('0x17')])?_0xee75b6:_0x53b9f0[_0x4691('0x17')],_0x2e2c5c?_0x53b9f0[_0x4691('0xe7')][_0x4691('0x59')](_0x2e2c5c[_0x4691('0xc9')]()[_0x4691('0xe7')])?(_0x2e2c5c[_0x4691('0xc6')](),_0x2e2c5c=_0x2257ef):_0x2257ef[_0x4691('0xc6')]():_0x2e2c5c=_0x2257ef;}else{const _0x328b0b=_0x482c6d[_0x4691('0xd2')](_0x53b9f0);this['_cutOutSuggestionMarker'](_0x2257ef,_0x328b0b);}}const _0x500801=this['editor'][_0x4691('0xe')][_0x4691('0x7c')]('Users')['me'],_0x48bdb1=_0x32ed3d(),_0x2c8a6b=_0x500801['id'];if(_0x2e2c5c)return this[_0x4691('0xfe')](_0x2e2c5c,this[_0x4691('0xd6')][_0x4691('0x56')](_0x4a9e68,_0xee75b6)),_0x2e2c5c;{const _0x1cf12f=this['_setSuggestionData']({'id':_0x48bdb1,'type':'formatBlock:'+_0x125a6a,'data':_0x218576,'createdAt':new Date(),'authorId':_0x2c8a6b,'attributes':_0x2e253d});return this[_0x4691('0x136')]('formatBlock:'+_0x125a6a,_0x48bdb1,_0x2c8a6b,this['_model']['createRange'](_0x4a9e68,_0xee75b6)),_0x1cf12f;}}[_0x4691('0xd8')](_0x48f64c,_0x3b2a5b,_0x520114=[],_0x446340=null,_0x10bf14={}){_0x3b2a5b[_0x4691('0x5')]||(_0x3b2a5b['formatGroupId']=_0x3b2a5b[_0x4691('0x18')]);const _0x2ee49b=_0x48f64c[0x0];_0x3b2a5b[_0x4691('0xa6')]=_0x2ee49b['is'](_0x4691('0x27')),_0x446340=_0x446340||$t(_0x3b2a5b);const _0x1af30a=_0x520114['map'](_0x273208=>Rt(_0x273208,this[_0x4691('0xd6')])),_0x48b584=_0x2ee49b['is']('range')?_0x48f64c:_0x48f64c[_0x4691('0x70')](_0x4e448b=>Rt(_0x4e448b,this[_0x4691('0xd6')]));if('never'===this[_0x4691('0x10b')]){const _0x9b3f0e=this[_0x4691('0xc0')][_0x4691('0x121')](_0x4691('0x111'),_0x446340,_0x4691('0x4'));return this[_0x4691('0x140')](()=>_0x9b3f0e(_0x48b584,_0x3b2a5b,_0x10bf14)),null;}_0x1af30a[_0x4691('0xc7')](..._0x48b584);let _0x1508e6=!0x0;for(const _0x2deef6 of _0x1af30a)if(!this[_0x4691('0x91')](_0x2deef6)){_0x1508e6=!0x1;break;}if(_0x1508e6&&'always'!==this[_0x4691('0x10b')]){const _0x1cd7c9=this['_suggestionFactory'][_0x4691('0x121')](_0x4691('0x111'),_0x446340,_0x4691('0x4'));return this[_0x4691('0x140')](()=>_0x1cd7c9(_0x48b584,_0x3b2a5b,_0x10bf14)),null;}const _0x1117ad=this['editor']['plugins'][_0x4691('0x7c')](_0x4691('0xaa'))['me'];for(const _0x5f16cf of this['getSuggestions']()){if(_0x5f16cf[_0x4691('0x67')]['id']!=_0x1117ad['id'])continue;if(_0x4691('0x111')!=_0x5f16cf[_0x4691('0x6a')]||_0x5f16cf[_0x4691('0x9e')]['formatGroupId']!=_0x3b2a5b['formatGroupId'])continue;if(!Ut(_0x5f16cf,_0x10bf14))continue;const _0x5042c4=_0x5f16cf[_0x4691('0x123')]==_0x446340;for(let _0x2c34e7=0x0;_0x2c34e7<_0x48b584[_0x4691('0x6')];_0x2c34e7++){const _0x18d760=_0x48b584[_0x2c34e7];for(const _0x4252fc of _0x5f16cf[_0x4691('0x57')]()){const _0x409e2f=_0x4252fc[_0x4691('0x74')]();if(_0x18d760['isEqual'](_0x409e2f)){_0x5042c4?(_0x48b584[_0x4691('0x84')](_0x2c34e7,0x1),_0x2c34e7--):_0x5f16cf[_0x4691('0xbe')](_0x4252fc[_0x4691('0xa8')]);break;}}}}if(0x0==_0x48b584['length'])return null;const _0x33c559=this[_0x4691('0xc0')]['getSuggestionCallback'](_0x4691('0x111'),_0x446340,_0x4691('0x2a'));for(const _0x242137 of this[_0x4691('0xab')]())if(_0x242137['author']['id']==_0x1117ad['id']&&_0x4691('0x111')==_0x242137[_0x4691('0x6a')]&&_0x242137[_0x4691('0x9e')][_0x4691('0x5')]==_0x3b2a5b[_0x4691('0x5')]&&_0x242137['subType']==_0x446340&&Ut(_0x242137,_0x10bf14)&&(_0x33c559(_0x242137['getRanges'](),_0x48b584)||_0x33c559(_0x48b584,_0x242137['getRanges']()))){for(const _0x39156c of _0x48b584)_0x242137['addRange'](_0x39156c);return _0x242137;}const _0x2ba275=_0x32ed3d(),_0x47dc92=_0x1117ad['id'],_0x1fe458=_0x4691('0x110')+_0x446340,_0x402226=this[_0x4691('0x13d')]({'id':_0x2ba275,'type':_0x1fe458,'data':_0x3b2a5b,'createdAt':new Date(),'authorId':_0x47dc92,'attributes':_0x10bf14});for(const _0x519cb3 of _0x48b584)this[_0x4691('0x136')](_0x1fe458,_0x2ba275,_0x47dc92,_0x519cb3,_0x54c8de[_0x4691('0x34')]());return _0x402226;}[_0x4691('0xf')](_0x2323a5,_0x3a52bb=null,_0x16e3ef={}){if(_0x2323a5['isCollapsed'])return null;const _0x3b75f0=this['editor'][_0x4691('0xe')][_0x4691('0x7c')](_0x4691('0xaa'))['me'],_0x4fa6db=new _0x2df8ac(_0x2323a5[_0x4691('0xe7')],_0x2323a5['end']);for(const {suggestion:_0x50e739,meta:_0x53a181}of this[_0x4691('0x58')](_0x4fa6db,_0x4691('0x11d')))if(_0x53a181[_0x4691('0x19')]&&!_0x53a181[_0x4691('0x4a')]){if(_0x50e739['isMultiRange']){const _0x4ec060=_0x50e739[_0x4691('0x12')]()[_0x4691('0x60')](_0xd4e19b=>_0x4691('0x104')!=_0xd4e19b[_0x4691('0x2')][_0x4691('0xe5')]);_0x4ec060[_0x4691('0x8c')](_0x35a42c=>_0x4fa6db[_0x4691('0x10f')](_0x35a42c,!0x0))&&_0x50e739[_0x4691('0x138')]();if(_0x4ec060[_0x4691('0xea')](_0xb4597d=>_0xb4597d['containsRange'](_0x4fa6db,!0x0))){const _0x7202dd=this[_0x4691('0xc0')]['getSuggestionCallback'](_0x4691('0x3'),_0x3a52bb,_0x4691('0x4'));return this['forceDefaultExecution'](()=>_0x7202dd([_0x4fa6db],null,_0x16e3ef)),null;}}else{const _0x5f503d=_0x4fa6db[_0x4691('0xd2')](_0x50e739[_0x4691('0xc9')]());null!==_0x5f503d&&_0x50e739['_onDiscard']([_0x5f503d],null,_0x16e3ef);}}if(_0x4fa6db[_0x4691('0x41')](),_0x4fa6db[_0x4691('0xde')]||_0x4691('0x104')==_0x4fa6db[_0x4691('0x2')][_0x4691('0xe5')])return null;let _0x44c146=null,_0x46d6c8=_0x4fa6db[_0x4691('0xe7')],_0x271a09=_0x4fa6db[_0x4691('0x17')];const _0x4e76f8=this[_0x4691('0x58')](_0x4fa6db,_0x4691('0x3'));for(const {suggestion:_0x52076a,meta:_0x310d59}of _0x4e76f8){const _0x561a06=this[_0x4691('0xd6')][_0x4691('0x56')](_0x46d6c8,_0x271a09);if(_0x310d59[_0x4691('0x19')]&&(this[_0x4691('0xed')]||!_0x310d59[_0x4691('0xa7')]&&!_0x310d59[_0x4691('0x5d')])){if(_0x52076a[_0x4691('0xaf')]){if(!Ut(_0x52076a,_0x16e3ef))continue;let _0x5a686c=!0x0;for(const _0x2b23cc of _0x52076a[_0x4691('0x12')]()){if(_0x2b23cc[_0x4691('0x10f')](_0x561a06,!0x0))return _0x52076a;_0x561a06[_0x4691('0x10f')](_0x2b23cc)||(_0x5a686c=!0x1);}_0x5a686c&&_0x52076a[_0x4691('0x138')]();}else{const _0x22ded5=_0x52076a[_0x4691('0xc9')]();if(_0x22ded5[_0x4691('0x10f')](_0x561a06,!0x0))return _0x52076a;if(!Ut(_0x52076a,_0x16e3ef)){_0x561a06[_0x4691('0x10f')](_0x22ded5)?_0x52076a[_0x4691('0xc6')]():_0x22ded5[_0x4691('0x25')](_0x46d6c8)?_0x46d6c8=_0x22ded5[_0x4691('0x17')]:_0x22ded5[_0x4691('0x25')](_0x271a09)&&(_0x271a09=_0x22ded5[_0x4691('0xe7')]);continue;}_0x46d6c8=_0x46d6c8[_0x4691('0x59')](_0x22ded5[_0x4691('0xe7')])?_0x46d6c8:_0x22ded5['start'],_0x271a09=_0x271a09[_0x4691('0x5a')](_0x22ded5[_0x4691('0x17')])?_0x271a09:_0x22ded5['end'],_0x16e3ef=Object[_0x4691('0x38')]({},_0x52076a[_0x4691('0x63')]),_0x44c146?_0x22ded5[_0x4691('0xe7')][_0x4691('0x59')](_0x44c146[_0x4691('0xc9')]()[_0x4691('0xe7')])?(_0x44c146['removeMarkers'](),_0x44c146=_0x52076a):_0x52076a[_0x4691('0xc6')]():_0x44c146=_0x52076a;}}}if(_0x44c146)return this['_setSuggestionRange'](_0x44c146,this['_model'][_0x4691('0x56')](_0x46d6c8,_0x271a09)),_0x44c146;{const _0x1627d3=_0x32ed3d(),_0x495abc=this[_0x4691('0xd6')][_0x4691('0x56')](_0x46d6c8,_0x271a09),_0x7064c4=_0x3b75f0['id'],_0x5c9b73=_0x3a52bb?_0x4691('0x23')+_0x3a52bb:_0x4691('0x3'),_0x175a4c=this[_0x4691('0x13d')]({'id':_0x1627d3,'type':_0x5c9b73,'createdAt':new Date(),'authorId':_0x7064c4,'attributes':_0x16e3ef});return this[_0x4691('0x136')](_0x5c9b73,_0x1627d3,_0x7064c4,_0x495abc),_0x175a4c;}}[_0x4691('0x96')](_0x4e33e1,_0x2986d6=_0x4691('0xfa'),_0x13ca3c={}){const _0x10b97c=this[_0x4691('0x66')]['plugins'][_0x4691('0x7c')](_0x4691('0xaa'))['me'],_0x542864=_0x4e33e1['map'](_0x236ddb=>new _0x2df8ac(_0x236ddb[_0x4691('0xe7')],_0x236ddb[_0x4691('0x17')])),_0x1f9041=new Set();for(const {suggestion:_0x2a4b18,meta:_0x3ad7da}of this['_findSuggestions'](_0x542864,_0x4691('0x11d')))_0x3ad7da[_0x4691('0x19')]&&!_0x3ad7da['isNextTo']&&_0x1f9041[_0x4691('0x10c')](_0x2a4b18);for(const _0x43a5a5 of _0x1f9041)if(_0x43a5a5[_0x4691('0xaf')]){const _0x5d8705=_0x43a5a5[_0x4691('0x12')]();(!_0x43a5a5[_0x4691('0x63')]||!_0x43a5a5[_0x4691('0x63')]['skipNestingCheck'])&&(_0x5d8705[_0x4691('0x8c')](_0x8813a9=>_0x542864['some'](_0x1b2f62=>_0x1b2f62[_0x4691('0x10f')](_0x8813a9,!0x0)))&&_0x43a5a5[_0x4691('0x138')]());if(_0x542864[_0x4691('0x8c')](_0x19b32c=>_0x5d8705['some'](_0x277433=>_0x277433['containsRange'](_0x19b32c,!0x0)))){const _0x408a2a=this[_0x4691('0xc0')][_0x4691('0x121')]('deletion',_0x2986d6,_0x4691('0x4'));return this['forceDefaultExecution'](()=>_0x408a2a(_0x4e33e1,null,_0x13ca3c)),null;}}else{const _0x36ffd8=_0x43a5a5[_0x4691('0xc9')]();_0x542864['some'](_0xa2a7e1=>_0xa2a7e1['containsRange'](_0x36ffd8,!0x0))&&_0x43a5a5[_0x4691('0x138')]();if(_0x542864['every'](_0x238a28=>_0x36ffd8['containsRange'](_0x238a28,!0x0))){const _0xee26c2=this['_suggestionFactory'][_0x4691('0x121')](_0x4691('0x3'),_0x2986d6,_0x4691('0x4'));return this[_0x4691('0x140')](()=>_0xee26c2(_0x542864,null,_0x13ca3c)),null;}}const _0x43c774=this[_0x4691('0xc0')][_0x4691('0x121')](_0x4691('0x3'),_0x2986d6,'join');let _0x13ef99=null;for(const _0x24c579 of this[_0x4691('0xab')]())if(_0x24c579['author']['id']==_0x10b97c['id']&&_0x24c579['isInContent']&&_0x4691('0x3')==_0x24c579[_0x4691('0x6a')]&&_0x24c579['subType']==_0x2986d6&&Ut(_0x24c579,_0x13ca3c)&&(_0x43c774(_0x24c579['getRanges'](),_0x542864)||_0x43c774(_0x542864,_0x24c579[_0x4691('0x12')]()))){if(_0x13ef99){if(_0x24c579[_0x4691('0x50')]&&_0x24c579[_0x4691('0x50')]['length'])continue;for(const _0x5dae65 of _0x24c579[_0x4691('0x12')]())_0x13ef99['isIntersectingWithRange'](_0x5dae65)||_0x13ef99['addRange'](_0x5dae65);_0x24c579['removeMarkers']();}else{_0x13ef99=_0x24c579;for(const _0x44cba6 of _0x542864)_0x24c579[_0x4691('0x10d')](_0x44cba6)||_0x24c579[_0x4691('0x137')](_0x44cba6);}}if(_0x13ef99)return _0x13ef99;_0x1f9041[_0x4691('0x48')]();for(const {suggestion:_0x544ebb,meta:_0x51f9e7}of this[_0x4691('0x58')](_0x542864,_0x4691('0x3')))_0x51f9e7[_0x4691('0x19')]&&(this[_0x4691('0xed')]||!_0x51f9e7['containsRangeInObject']&&!_0x51f9e7[_0x4691('0x5d')])&&Ut(_0x544ebb,_0x13ca3c)&&_0x1f9041[_0x4691('0x10c')](_0x544ebb);for(const _0x4fa4b6 of _0x1f9041){const _0x402476=_0x4fa4b6[_0x4691('0x12')]();if(!_0x13ca3c||!_0x13ca3c[_0x4691('0x10a')]){if(_0x542864[_0x4691('0x8c')](_0x16d21d=>_0x402476[_0x4691('0xea')](_0x57677f=>_0x57677f[_0x4691('0x10f')](_0x16d21d,!0x0))))return _0x4fa4b6;}(!_0x4fa4b6[_0x4691('0x63')]||!_0x4fa4b6[_0x4691('0x63')][_0x4691('0x10a')])&&(_0x402476['every'](_0x49bbb4=>_0x542864['some'](_0x99d96c=>_0x99d96c[_0x4691('0x10f')](_0x49bbb4,!0x0)))&&_0x4fa4b6[_0x4691('0x138')]());}const _0x327db1=_0x32ed3d(),_0x516166=_0x10b97c['id'],_0x29083a=_0x4691('0x23')+_0x2986d6,_0x3f55bd=this[_0x4691('0x13d')]({'id':_0x327db1,'type':_0x29083a,'createdAt':new Date(),'authorId':_0x516166,'attributes':_0x13ca3c});for(const _0x23f8d8 of _0x542864)_0x23f8d8[_0x4691('0x41')](),_0x23f8d8[_0x4691('0xde')]||'$graveyard'==_0x23f8d8[_0x4691('0x2')][_0x4691('0xe5')]||this[_0x4691('0x136')](_0x29083a,_0x327db1,_0x516166,_0x23f8d8,_0x54c8de[_0x4691('0x34')]());return _0x3f55bd;}['_setSuggestionRange'](_0x1ca158,_0x2d97d6){const _0x4cd637=_0x1ca158[_0x4691('0x132')]();this[_0x4691('0xd6')]['change'](_0x210694=>{_0x210694[_0x4691('0xb9')](_0x4cd637,{'range':_0x2d97d6});});}[_0x4691('0xb5')](_0x871db2){const _0x555531=_0x871db2['id'],_0x88f65c=this[_0x4691('0x66')][_0x4691('0xd9')]['get']('collaboration.channelId');this[_0x4691('0x148')][_0x4691('0x134')](_0x555531)||this['_commentsRepository'][_0x4691('0xa2')]({'channelId':_0x88f65c,'threadId':_0x555531,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b1711=this[_0x4691('0x148')][_0x4691('0xee')](_0x555531);_0x2b1711[_0x4691('0xb0')]('isRemovable'),_0x2b1711[_0x4691('0x4f')]=!0x1,_0x871db2[_0x4691('0x50')]=_0x2b1711;}[_0x4691('0xf8')](_0x2cccd5,_0x26f228,_0x49cf3b,_0x39505d){if(_0x2cccd5['type']!=_0x26f228||_0x2cccd5[_0x4691('0x123')]!=_0x49cf3b||_0x2cccd5[_0x4691('0x94')]['id']!=_0x39505d)throw this[_0x4691('0x66')][_0x4691('0xcd')](_0x4691('0xfb')),new _0x25e35d(_0x4691('0xfb'),this);}[_0x4691('0x105')](_0xc3a7ac,_0x47e26b){const _0x43e9b3=_0xc3a7ac['getFirstRange']();if(_0x47e26b[_0x4691('0xe3')](_0x43e9b3))_0xc3a7ac[_0x4691('0xc6')]();else{if(_0x43e9b3[_0x4691('0x10f')](_0x47e26b)){const _0x117ccd=this['_model'][_0x4691('0x31')](_0x47e26b['start'][_0x4691('0x129')],'end');this['_setSuggestionRange'](_0xc3a7ac,this[_0x4691('0xd6')]['createRange'](_0x43e9b3[_0x4691('0xe7')],_0x117ccd));const _0x5526df=_0x32ed3d(),_0x169428=_0xc3a7ac[_0x4691('0x94')]['id'],_0x4e4cf5=_0xc3a7ac['type']+':'+_0xc3a7ac['subType'];this['_setSuggestionData']({'id':_0x5526df,'type':_0x4e4cf5,'createdAt':new Date(),'authorId':_0x169428,'data':_0xc3a7ac[_0x4691('0x9e')],'attributes':_0xc3a7ac[_0x4691('0x63')]});const _0x455f08=this[_0x4691('0xd6')][_0x4691('0x31')](_0x47e26b['end'][_0x4691('0x14a')],'after'),_0x49d2ca=this[_0x4691('0xd6')][_0x4691('0x56')](_0x455f08,_0x43e9b3[_0x4691('0x17')]);this[_0x4691('0x136')](_0x4e4cf5,_0x5526df,_0x169428,_0x49d2ca);}else{if(_0x43e9b3['containsPosition'](_0x47e26b[_0x4691('0xe7')])){const _0x7ffb14=this[_0x4691('0xd6')]['createPositionAt'](_0x47e26b[_0x4691('0xe7')][_0x4691('0x129')],_0x4691('0x17'));this['_setSuggestionRange'](_0xc3a7ac,this[_0x4691('0xd6')][_0x4691('0x56')](_0x43e9b3[_0x4691('0xe7')],_0x7ffb14));}else{const _0x38e450=this[_0x4691('0xd6')]['createPositionAt'](_0x47e26b[_0x4691('0x17')]['parent'],_0x4691('0xda'));this['_setSuggestionRange'](_0xc3a7ac,this['_model'][_0x4691('0x56')](_0x38e450,_0x43e9b3[_0x4691('0x17')]));}}}}['_rangeIsInLocalUserInsertion'](_0xb5773e){for(const {suggestion:_0x5b8ba6,meta:_0x2d0879}of this[_0x4691('0x58')](_0xb5773e,'insertion')){if(!_0x2d0879[_0x4691('0x19')])continue;const _0x1b1bc5=_0x5b8ba6['getRanges']();for(const _0x4eab61 of _0x1b1bc5)if(!_0xb5773e[_0x4691('0x141')](_0x4eab61)[_0x4691('0x6')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x258470){const _0x512569=this['editor'][_0x4691('0xe')][_0x4691('0x7c')](_0x4691('0xaa'))[_0x4691('0x8f')](_0x258470);if(!_0x512569)throw new _0x25e35d(_0x4691('0xf6'),this);return _0x512569;}[_0x4691('0x5f')](_0x2fe157){const _0x24b992=this[_0x4691('0x66')][_0x4691('0xe')]['get'](_0x4691('0xaa')),_0x1d3dad=_0x22a06c(_0x4691('0x82')+_0x2fe157),_0x380910=_0x24b992[_0x4691('0x8f')](_0x1d3dad);return _0x380910||_0x24b992['addUser']({'id':_0x1d3dad,'name':_0x2fe157});}[_0x4691('0x125')](_0x36d3c,_0x3c385f,_0x87ff66,_0x19f7b4,_0x476d4d){const _0x207fc4=this[_0x4691('0x11f')](_0x19f7b4),_0x584d6c=this[_0x4691('0xc0')][_0x4691('0xcc')](_0x36d3c,_0x3c385f,_0x87ff66,_0x207fc4,_0x476d4d,_0x4eee67=>this[_0x4691('0x1b')](_0x87ff66,{'attributes':_0x4eee67}));return this[_0x4691('0xb')](_0x584d6c,_0x4691('0x4'),()=>{this[_0x4691('0x1b')](_0x87ff66,{'state':'accepted'});},{'priority':_0x4691('0xa0')}),this[_0x4691('0xb')](_0x584d6c,'discard',()=>{this[_0x4691('0x1b')](_0x87ff66,{'state':_0x4691('0x95')});},{'priority':'high'}),this[_0x4691('0x122')][_0x4691('0xf7')](_0x87ff66,_0x584d6c),this[_0x4691('0x118')][_0x4691('0xf7')](_0x584d6c,'notReady'),_0x584d6c;}['_splitMarkerName'](_0x5816ea){const _0x40fe8a=_0x5816ea[_0x4691('0x11')](':');return{'group':_0x40fe8a[0x0],'type':_0x40fe8a[0x1],'subType':_0x40fe8a[_0x4691('0x6')]>=0x5?_0x40fe8a[0x2]:null,'id':_0x40fe8a[_0x4691('0x6')]<0x5?_0x40fe8a[0x2]:_0x40fe8a[0x3],'authorId':_0x40fe8a[_0x4691('0x6')]<0x5?_0x40fe8a[0x3]:_0x40fe8a[0x4],'markerCount':0x6==_0x40fe8a[_0x4691('0x6')]?_0x40fe8a[0x5]:null};}[_0x4691('0xeb')](_0x710e89,_0x2a8f9a,_0x4e8010){const _0x36399d=_0x710e89[_0x4691('0xc9')](),_0x75254e=_0x36399d[_0x4691('0xe7')],_0x20397b=_0x36399d[_0x4691('0x17')];this[_0x4691('0xfe')](_0x710e89,this['_model']['createRange'](_0x75254e,_0x2a8f9a));const _0x31e302=_0x32ed3d(),_0x46ada8=_0x710e89[_0x4691('0x94')]['id'],_0x13a70e=_0x710e89[_0x4691('0x6a')]+(_0x710e89['subType']?':'+_0x710e89[_0x4691('0x123')]:'');this[_0x4691('0x13d')]({'id':_0x31e302,'type':_0x13a70e,'createdAt':new Date(),'authorId':_0x46ada8,'originalSuggestionId':_0x710e89['id'],'attributes':_0x710e89[_0x4691('0x63')],'data':_0x710e89[_0x4691('0x9e')]}),_0x4691('0x111')==_0x710e89[_0x4691('0x6a')]&&(_0x4e8010=this['_model'][_0x4691('0xbc')](_0x4e8010['parent'])),this['_addSuggestionMarker'](_0x13a70e,_0x31e302,_0x46ada8,this['_model'][_0x4691('0x56')](_0x4e8010,_0x20397b));}[_0x4691('0x58')](_0x5b8b2f,_0x144aa0=null){const _0x2e0839=[],_0xbdbf65=this[_0x4691('0x66')][_0x4691('0xe')][_0x4691('0x7c')](_0x4691('0xaa'))['me'];Array[_0x4691('0x7')](_0x5b8b2f)||(_0x5b8b2f=[_0x5b8b2f]);for(const _0x57bae7 of this['getSuggestions']()){if(!_0x57bae7[_0x4691('0xa9')])continue;if(_0x144aa0&&_0x57bae7[_0x4691('0x6a')]!=_0x144aa0)continue;let _0x20fcfe=!0x1;for(const _0x58190e of _0x57bae7[_0x4691('0x12')]()){for(const _0x1d86bf of _0x5b8b2f){const _0x1bea63=_0x1d86bf['start'][_0x4691('0xe3')](_0x58190e[_0x4691('0x17')])||_0x1d86bf['end'][_0x4691('0xe3')](_0x58190e[_0x4691('0xe7')]);if(_0x1bea63||_0x1d86bf['getIntersection'](_0x58190e)){const _0x3517ed=_0x1d86bf[_0x4691('0x10f')](_0x58190e)&&Bt(this['_model'][_0x4691('0x4c')],_0x58190e[_0x4691('0xe7')],_0x1d86bf),_0x2811e0=_0x58190e[_0x4691('0x10f')](_0x1d86bf)&&Bt(this[_0x4691('0xd6')][_0x4691('0x4c')],_0x1d86bf[_0x4691('0xe7')],_0x58190e);_0x2e0839[_0x4691('0xc7')]({'suggestion':_0x57bae7,'meta':{'isOwn':_0xbdbf65==_0x57bae7[_0x4691('0x67')],'isNextTo':_0x1bea63,'isInsideObject':_0x3517ed,'containsRangeInObject':_0x2811e0}}),_0x20fcfe=!0x0;break;}}if(_0x20fcfe)break;}}return _0x2e0839;}[_0x4691('0x136')](_0x34abfe,_0x12e952,_0x2fb662,_0x75ae51,_0x5ceeea){this[_0x4691('0xd6')]['change'](_0x390239=>{let _0x481dc7=_0x4691('0x53')+_0x34abfe+':'+_0x12e952+':'+_0x2fb662;_0x5ceeea&&(_0x481dc7=_0x481dc7+':'+_0x5ceeea),_0x390239[_0x4691('0x1e')](_0x481dc7,{'range':_0x75ae51,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x45eeea){const _0x4e68ec=_0x45eeea[_0x4691('0x40')],_0x28ee0c=_0x45eeea[_0x4691('0x8d')];_0x45eeea[_0x4691('0x40')]=null,null!=_0x4e68ec&&(_0x4e68ec[_0x4691('0x8d')]=null),_0x45eeea[_0x4691('0x8d')]=null,null!=_0x28ee0c&&(_0x28ee0c[_0x4691('0x40')]=null),_0x4691('0x28')==this['_suggestionState'][_0x4691('0x7c')](_0x45eeea)&&(this[_0x4691('0x118')][_0x4691('0xf7')](_0x45eeea,_0x4691('0x127')),this[_0x4691('0x12b')](_0x4691('0x65'),_0x45eeea,_0x4e68ec,_0x28ee0c));}[_0x4691('0x13d')](_0x53e499){const _0x16a240=_0x53e499['id'],_0x4bcdf4=this[_0x4691('0x9c')](_0x53e499);if(this[_0x4691('0xb7')]&&this[_0x4691('0xb7')][_0x4691('0x14b')]){const _0xfc855f=this[_0x4691('0x66')][_0x4691('0xe')]['get'](_0x4691('0x13b')),_0x24c2be=_0x4bcdf4[_0x4691('0x72')],_0x17802d=_0x4bcdf4[_0x4691('0x123')]?_0x4bcdf4[_0x4691('0x6a')]+':'+_0x4bcdf4[_0x4691('0x123')]:_0x4bcdf4[_0x4691('0x6a')],_0x481801=this[_0x4691('0x66')][_0x4691('0xd5')],_0x1bc271=_0xfc855f['add'](_0x5dd572(_0x481801,_0x4691('0xd3'))),_0x37a893={'id':_0x16a240,'type':_0x17802d,'hasComments':_0x24c2be,'data':_0x53e499[_0x4691('0x9e')]||null,'originalSuggestionId':_0x53e499[_0x4691('0xe0')]||null,'attributes':_0x4bcdf4[_0x4691('0x63')]};this[_0x4691('0xb7')]['addSuggestion'](_0x37a893)[_0x4691('0x101')](_0x5ef11b=>{_0x4bcdf4[_0x4691('0xf5')]=!0x0,_0xfc855f[_0x4691('0x147')](_0x1bc271),_0x5ef11b&&_0x5ef11b['createdAt']&&(this[_0x4691('0x122')][_0x4691('0x7c')](_0x16a240)['createdAt']=_0x5ef11b['createdAt']);})[_0x4691('0xa3')](_0x2c74d4=>{throw _0x53f60d(_0x4691('0x6d')),this[_0x4691('0x66')][_0x4691('0xf1')][_0x4691('0x7f')]({'isUndoable':!0x1},()=>{_0x4bcdf4['discard']();}),_0x4bcdf4[_0x4691('0xce')](),this[_0x4691('0x122')]['delete'](_0x4bcdf4['id']),this[_0x4691('0x118')][_0x4691('0x78')](_0x4bcdf4),_0x2c74d4;});}return _0x4bcdf4;}['_updateSuggestionData'](_0x2fb9cc,_0x472cea){const _0x5aca93=this['editor'][_0x4691('0xe')][_0x4691('0x7c')]('PendingActions'),_0x51ef61=this[_0x4691('0xa5')](_0x2fb9cc);if(this[_0x4691('0xb7')]&&this[_0x4691('0xb7')][_0x4691('0xd')]){if(_0x51ef61[_0x4691('0xf5')]){const _0x490b30=_0x5aca93[_0x4691('0x10c')](_0x5dd572(this['editor'][_0x4691('0xd5')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4691('0xd')](_0x2fb9cc,_0x472cea)[_0x4691('0x101')](()=>{_0x5aca93[_0x4691('0x147')](_0x490b30);});}else _0x51ef61['on'](_0x4691('0x130'),()=>{this[_0x4691('0x1b')](_0x2fb9cc,_0x472cea);});}}['_getSuggestionData'](_0x1eaf5f){if(!this[_0x4691('0xb7')]||!this['_adapter'][_0x4691('0xa5')])throw new _0x25e35d(_0x4691('0x14'),this);return this['_adapter']['getSuggestion'](_0x1eaf5f);}[_0x4691('0x120')](_0x1e6563){const {id:_0x3b5233,type:_0x2c76f4,subType:_0x503a1b,authorId:_0x1e8b83}=this[_0x4691('0xb3')](_0x1e6563),_0x3cef74=this[_0x4691('0x122')][_0x4691('0x7c')](_0x3b5233)||this['_createSuggestion'](_0x2c76f4,_0x503a1b,_0x3b5233,_0x1e8b83,{});switch(this[_0x4691('0xf8')](_0x3cef74,_0x2c76f4,_0x503a1b,_0x1e8b83),this[_0x4691('0x118')][_0x4691('0x7c')](_0x3cef74)){case _0x4691('0x35'):this[_0x4691('0xb4')](_0x3b5233)[_0x4691('0x101')](_0x2e5327=>{let _0x1df6db=Promise[_0x4691('0x37')]();_0x2e5327[_0x4691('0x72')]&&(_0x1df6db=this[_0x4691('0x148')][_0x4691('0x71')]({'channelId':this[_0x4691('0x66')][_0x4691('0xd9')][_0x4691('0x7c')](_0x4691('0x146')),'threadId':_0x3b5233})),_0x1df6db[_0x4691('0x101')](()=>{this[_0x4691('0x9c')](_0x2e5327)['_saved']=!0x0;});}),this[_0x4691('0x118')]['set'](_0x3cef74,_0x4691('0x4d'));break;case _0x4691('0x127'):this[_0x4691('0x1b')](_0x3b5233,{'state':_0x4691('0x3c')});case _0x4691('0x3e'):this['_suggestionState']['set'](_0x3cef74,_0x4691('0x28')),this[_0x4691('0x12b')]('suggestionLoaded',_0x3cef74);break;case _0x4691('0x28'):this[_0x4691('0x12b')](_0x4691('0x116'),_0x3cef74);}return _0x3cef74[_0x4691('0xa4')](_0x1e6563),_0x3cef74;}[_0x4691('0x15')](_0x104724){const _0x172438=Array[_0x4691('0x79')](_0x104724)[_0x4691('0x60')](_0x25f948=>!_0x25f948[_0x4691('0xaf')]),_0x1a7045=this[_0x4691('0xab')]({'skipNotAttached':!0x0})[_0x4691('0x60')](_0x2ae7aa=>!_0x2ae7aa['isMultiRange']),_0x2824bf=_0x1a7045[_0x4691('0x60')](_0xbda009=>!_0x104724['has'](_0xbda009)),_0x20460d=new Map(_0x1a7045[_0x4691('0x70')](_0x465fdf=>[_0x465fdf,this['_suggestionFactory']['getSuggestionCallback'](_0x465fdf[_0x4691('0x6a')],_0x465fdf['subType'],'chain')])),_0x3324ae=new Map(_0x1a7045[_0x4691('0x70')](_0x33dfbc=>[_0x33dfbc,_0x33dfbc[_0x4691('0xc9')]()])),_0x546e08=new Set(),_0x599835=new Set();for(let _0x523242=0x0;_0x523242<_0x172438[_0x4691('0x6')];_0x523242++)_0x313837(_0x172438[_0x523242],_0x172438,_0x523242+0x1);for(let _0x1075d7=0x0;_0x1075d7<_0x172438[_0x4691('0x6')];_0x1075d7++)_0x313837(_0x172438[_0x1075d7],_0x2824bf,0x0);for(let _0x4325c7=0x0;_0x4325c7<_0x172438[_0x4691('0x6')];_0x4325c7++){const _0x16d7c7=_0x172438[_0x4325c7];!_0x599835[_0x4691('0xff')](_0x16d7c7)&&_0x16d7c7[_0x4691('0x40')]&&(_0x16d7c7[_0x4691('0x40')]['next']===_0x16d7c7&&(_0x16d7c7['previous'][_0x4691('0x8d')]=null),_0x16d7c7[_0x4691('0x40')]=null),!_0x546e08['has'](_0x16d7c7)&&_0x16d7c7[_0x4691('0x8d')]&&(_0x16d7c7['next'][_0x4691('0x40')]===_0x16d7c7&&(_0x16d7c7['next'][_0x4691('0x40')]=null),_0x16d7c7['next']=null);}function _0x313837(_0x4e99c3,_0x2d9e3e,_0x29480e){for(let _0x262ca1=_0x29480e;_0x262ca1<_0x2d9e3e['length'];_0x262ca1++){const _0x2d44a2=_0xcd8158(_0x4e99c3,_0x2d9e3e[_0x262ca1]);_0x2d44a2&&(_0x2d44a2[0x0][_0x4691('0x8d')]=_0x2d44a2[0x1],_0x2d44a2[0x1][_0x4691('0x40')]=_0x2d44a2[0x0],_0x546e08[_0x4691('0x10c')](_0x2d44a2[0x0]),_0x599835[_0x4691('0x10c')](_0x2d44a2[0x1]));}}function _0xcd8158(_0x514219,_0x169868){if(_0x514219[_0x4691('0x67')]['id']!==_0x169868[_0x4691('0x67')]['id'])return null;const _0x2477da=_0x20460d['get'](_0x514219)(_0x514219,_0x169868,_0x3324ae[_0x4691('0x7c')](_0x514219),_0x3324ae['get'](_0x169868));if(!_0x2477da)return null;return _0x20460d[_0x4691('0x7c')](_0x169868)(_0x514219,_0x169868,_0x3324ae[_0x4691('0x7c')](_0x514219),_0x3324ae[_0x4691('0x7c')](_0x169868))?_0x2477da[0x1][_0x4691('0x50')]&&_0x2477da[0x1][_0x4691('0x50')]['length']?null:_0x2477da:null;}}[_0x4691('0x114')](_0x4df130){const _0x32a192=Array[_0x4691('0x79')](_0x4df130),_0x15b87b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4d2607=_0x15b87b[_0x4691('0x60')](_0x2105ee=>!_0x4df130[_0x4691('0xff')](_0x2105ee)),_0x29c4b1=new Map(_0x32a192[_0x4691('0x70')](_0x59d302=>[_0x59d302,this[_0x4691('0xc0')][_0x4691('0x121')](_0x59d302['type'],_0x59d302['subType'],_0x4691('0x2a'))])),_0x2442e2=new Map(_0x15b87b[_0x4691('0x70')](_0x11a21b=>[_0x11a21b,_0x11a21b[_0x4691('0x12')]()]));for(let _0x36dc96=0x0;_0x36dc96<_0x32a192[_0x4691('0x6')];_0x36dc96++){if(_0x1e65c2(this,_0x32a192[_0x36dc96],_0x32a192,_0x36dc96+0x1))return!0x0;}for(let _0x1e15e6=0x0;_0x1e15e6<_0x32a192['length'];_0x1e15e6++){if(_0x1e65c2(this,_0x32a192[_0x1e15e6],_0x4d2607,0x0))return!0x0;}return!0x1;function _0x1e65c2(_0xae3756,_0xc9457,_0x36ef82,_0x25916e){for(let _0x5d521d=_0x25916e;_0x5d521d<_0x36ef82[_0x4691('0x6')];_0x5d521d++){const _0x2377d2=_0x36ef82[_0x5d521d];if(_0x2377d2['type']!==_0xc9457[_0x4691('0x6a')]||_0x2377d2[_0x4691('0x67')]['id']!==_0xc9457['author']['id']||_0x2377d2[_0x4691('0x123')]!==_0xc9457[_0x4691('0x123')])continue;if(!xt(_0xc9457,_0x2377d2))continue;const _0x1a758c=_0x29c4b1[_0x4691('0x7c')](_0xc9457),_0x35c36a=_0x2442e2[_0x4691('0x7c')](_0xc9457),_0x3e4bbd=_0x2442e2[_0x4691('0x7c')](_0x2377d2),_0x34fbb2=_0xc9457[_0x4691('0x50')]&&_0xc9457[_0x4691('0x50')]['length'],_0x4d76a5=_0x2377d2[_0x4691('0x50')]&&_0x2377d2[_0x4691('0x50')][_0x4691('0x6')];if(!_0x34fbb2&&_0x1a758c(_0x3e4bbd,_0x35c36a))return _0xae3756[_0x4691('0x8a')](_0x2377d2,_0xc9457),_0x2442e2[_0x4691('0x78')](_0xc9457),!0x0;if(!_0x4d76a5&&_0x1a758c(_0x35c36a,_0x3e4bbd))return _0xae3756[_0x4691('0x8a')](_0xc9457,_0x2377d2),_0x2442e2[_0x4691('0x78')](_0x2377d2),!0x0;}return!0x1;}}[_0x4691('0x8a')](_0x44bc4c,_0x533627){if(_0x44bc4c[_0x4691('0xaf')])for(const _0x1b114b of _0x533627[_0x4691('0x12')]())_0x44bc4c[_0x4691('0x137')](_0x1b114b);else{const _0x2cb91a=_0x533627[_0x4691('0xc9')]()[_0x4691('0x17')];this['_setSuggestionRange'](_0x44bc4c,this['_model']['createRange'](_0x44bc4c[_0x4691('0xc9')]()['start'],_0x2cb91a));}_0x533627[_0x4691('0xc6')]();}}class Dt{constructor(_0x44914c){this[_0x4691('0xb8')]=_0x44914c,this[_0x4691('0xd6')]=_0x44914c['model'],this['_customCallbacks']=new Map(),this[_0x4691('0x145')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4691('0xcc')](_0x5adaf1,_0x1fce24,_0x416957,_0x41b525,_0x308db9,_0x72106b){return new _0x54c8de(this[_0x4691('0xd6')],{'type':_0x5adaf1,'subType':_0x1fce24,'id':_0x416957,'author':_0x41b525,'creator':_0x41b525,'attributes':_0x308db9,'onAttributesChange':_0x72106b,'onAccept':(..._0x3db352)=>this[_0x4691('0x121')](_0x5adaf1,_0x1fce24,_0x4691('0x4'))(..._0x3db352),'onDiscard':(..._0x165ab6)=>this[_0x4691('0x121')](_0x5adaf1,_0x1fce24,_0x4691('0x138'))(..._0x165ab6)});}[_0x4691('0xdf')](_0x4e6fac,_0x582dff,_0x5b587a,_0x5904b1){const _0x3a3c4e=_0x4e6fac+':'+_0x582dff+':'+_0x5b587a;this['_customCallbacks'][_0x4691('0xf7')](_0x3a3c4e,_0x5904b1);}[_0x4691('0x121')](_0x3028e2,_0x1760b5,_0x2813ee){const _0x561cb6=_0x3028e2+':'+_0x1760b5+':'+_0x2813ee;return this[_0x4691('0x75')]['get'](_0x561cb6)||this[_0x4691('0x145')][_0x4691('0x7c')](_0x3028e2+':'+_0x2813ee);}[_0x4691('0x90')](){const _0x43ad52=()=>!0x1,_0x59279d=_0x32c1ad=>{_0x32c1ad['sort']((_0x14abe2,_0xd2a44b)=>_0x14abe2['start'][_0x4691('0x59')](_0xd2a44b[_0x4691('0xe7')])?0x1:-0x1),this[_0x4691('0xd6')]['change'](_0x4c05b6=>{for(const _0x49d5c2 of _0x32c1ad){let _0x3efacc;_0x3efacc=_0x49d5c2['end'][_0x4691('0x12a')]&&_0x49d5c2[_0x4691('0x17')]['parent']==_0x49d5c2['start'][_0x4691('0x10e')]?_0x4c05b6['createSelection'](_0x49d5c2[_0x4691('0xe7')][_0x4691('0x10e')],'on'):_0x4c05b6[_0x4691('0x68')](_0x49d5c2),this[_0x4691('0xd6')][_0x4691('0x29')](_0x3efacc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x10c7fd=(_0x58f740,_0xb34d17)=>{this[_0x4691('0xd6')]['change'](_0x1d485f=>{const {commandName:_0x1dcfe9,commandParams:_0x96dc8c=[]}=_0xb34d17,_0x255042=_0x58f740['map'](_0x489a49=>(_t(_0x489a49)&&(_0x489a49=this[_0x4691('0xd6')][_0x4691('0x56')](_0x489a49['end'])),_0x489a49))[_0x4691('0x60')](_0x49c27e=>_0x4691('0x104')!==_0x49c27e[_0x4691('0x2')][_0x4691('0xe5')]);if(_0x255042['length']<0x1)return;const _0x7587da=Array['from'](this[_0x4691('0xd6')][_0x4691('0xa1')][_0x4691('0x112')][_0x4691('0x12')]())['map'](_0x3cacf5=>_0x2df8ac[_0x4691('0xf3')](_0x3cacf5));_0x1d485f['setSelection'](_0x255042);for(const _0x33b59c of this[_0x4691('0xb8')][_0x4691('0x39')][_0x4691('0x39')]())_0x33b59c[_0x4691('0xe9')]();_0x96dc8c[_0x4691('0xc7')]({'forceDefaultExecution':!0x0}),this[_0x4691('0xb8')][_0x4691('0x42')](_0x1dcfe9,..._0x96dc8c);const _0x1a89c3=_0x7587da['filter'](_0x3caf36=>_0x4691('0x104')!=_0x3caf36[_0x4691('0x2')][_0x4691('0xe5')]);_0x1a89c3[_0x4691('0x6')]>0x0&&_0x1d485f[_0x4691('0x7b')](_0x1a89c3);for(const _0x5b4add of _0x7587da)_0x5b4add['detach']();});},_0x192a8a=(_0x3b3af5,_0x1a8e25)=>0x1==_0x3b3af5[_0x4691('0x6')]&&0x1==_0x1a8e25[_0x4691('0x6')]&&_0x3b3af5[0x0][_0x4691('0x17')]['isEqual'](_0x1a8e25[0x0][_0x4691('0xe7')]),_0x21367e=(_0x58f036,_0x43de24,_0x1ceb6c,_0x19f383)=>jt(_0x58f036,_0x43de24,_0x1ceb6c,_0x19f383,this[_0x4691('0xd6')])?[_0x58f036,_0x43de24]:jt(_0x43de24,_0x58f036,_0x19f383,_0x1ceb6c,this['_model'])?[_0x43de24,_0x58f036]:null;this[_0x4691('0x145')][_0x4691('0xf7')]('insertion:accept',_0x43ad52),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x52'),_0x59279d),this['_defaultCallbacks'][_0x4691('0xf7')](_0x4691('0x92'),_0x192a8a),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x62'),_0x21367e),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x5b'),_0x59279d),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x9f'),_0x43ad52),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0xd0'),_0x192a8a),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x131'),_0x21367e),this[_0x4691('0x145')][_0x4691('0xf7')]('formatInline:accept',_0x10c7fd),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x128'),_0x43ad52),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x1a'),_0x192a8a),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x11c'),_0x43ad52),this[_0x4691('0x145')][_0x4691('0xf7')]('formatBlock:accept',_0x10c7fd),this[_0x4691('0x145')][_0x4691('0xf7')](_0x4691('0x61'),_0x43ad52),this[_0x4691('0x145')]['set'](_0x4691('0x1d'),_0x192a8a),this['_defaultCallbacks'][_0x4691('0xf7')](_0x4691('0xbb'),_0x43ad52);}}function Bt(_0x5de99a,_0x140167,_0x250482){for(const _0x252d27 of _0x140167[_0x4691('0x14a')][_0x4691('0x80')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x252d27[_0x4691('0x2')]==_0x252d27)return!0x1;if(!_0x250482[_0x4691('0x12e')](_0x252d27))return!0x1;if(_0x5de99a['isObject'](_0x252d27)||_0x5de99a[_0x4691('0xc5')](_0x252d27))return!0x0;}return!0x1;}function _t(_0x1c773a){return _0x1c773a[_0x4691('0x17')]['parent']==_0x1c773a['start']['nodeAfter']&&_0x1c773a[_0x4691('0x17')][_0x4691('0xc4')];}function Mt(_0x1217d9,_0xce588f,_0x3f4785,_0x17913){const _0x2cb44b=_0x37e554=>!_0x37e554[_0x4691('0x2b')]['is'](_0x4691('0x9b'))&&!_0x17913[_0x4691('0xac')](_0x37e554[_0x4691('0x2b')]),_0x1f744e=_0x1217d9[_0x4691('0xe7')]['getLastMatchingPosition'](_0x2cb44b),_0x50a95b=_0x1217d9['end'][_0x4691('0x102')](_0x2cb44b,{'direction':_0x4691('0x117')});return(!_0x1217d9[_0x4691('0xe7')][_0x4691('0xe3')](_0x1f744e)||!_0x1217d9[_0x4691('0x17')][_0x4691('0xe3')](_0x50a95b))&&(_0x1f744e['isBefore'](_0x50a95b)?_0x3f4785[_0x4691('0xb9')](_0xce588f,{'range':_0x3f4785[_0x4691('0x56')](_0x1f744e,_0x50a95b)}):_0x3f4785[_0x4691('0xbe')](_0xce588f),!0x0);}function $t(_0xa3b29b){return _0x22a06c(_0xa3b29b);}function Nt(_0x126099){const _0x15f187=_0x126099[_0x4691('0xe7')][_0x4691('0x10e')];return _0x15f187&&_0x15f187['is'](_0x4691('0x133'));}function Rt(_0x43a540,_0x4be5ce){const _0x758563=_0x4be5ce[_0x4691('0x4c')][_0x4691('0xac')](_0x43a540)||_0x4be5ce['schema'][_0x4691('0x12f')](_0x43a540);return _0x4be5ce[_0x4691('0x56')](_0x4be5ce[_0x4691('0x31')](_0x43a540,_0x4691('0xad')),_0x758563?_0x4be5ce[_0x4691('0x36')](_0x43a540):_0x4be5ce[_0x4691('0x31')](_0x43a540,_0x4691('0x17')));}function jt(_0x21a34f,_0x181a23,_0x51b8f5,_0x50585e,_0x2f2f09){if(!xt(_0x21a34f,_0x181a23))return!0x1;if(_0x51b8f5[_0x4691('0x17')][_0x4691('0xe3')](_0x50585e['start']))return!0x0;if(_0x21a34f['type']!=_0x181a23['type'])return!0x1;if(!_0x51b8f5[_0x4691('0x17')][_0x4691('0xc8')](_0x50585e[_0x4691('0xe7')]))return!0x1;const _0x326803=_0x2f2f09[_0x4691('0x56')](_0x51b8f5['end'],_0x50585e[_0x4691('0xe7')])[_0x4691('0x85')]();for(const _0x52cbb9 of _0x326803)if(['elementStart',_0x4691('0xb1')]['includes'](_0x52cbb9['type'])&&_0x2f2f09[_0x4691('0x4c')]['isLimit'](_0x52cbb9['item']))return!0x1;return!0x0;}function xt(_0x3c140a,_0x651159){return!(!_0x3c140a[_0x4691('0x47')]||!_0x651159['_isDataLoaded'])&&_0x303ab4(_0x3c140a[_0x4691('0x63')],_0x651159[_0x4691('0x63')]);}function Ut(_0x210663,_0x3e3e9f){const _0x51e7d3=Ot(_0x210663[_0x4691('0x63')]),_0x42054f=Ot(_0x3e3e9f);if(!_0x210663[_0x4691('0x47')])return!0x1;for(const _0x307240 of Object['keys'](_0x42054f))if(!_0x303ab4(_0x51e7d3[_0x307240],_0x42054f[_0x307240]))return!0x1;return!0x0;}function Ot(_0x369287){const _0x1ad871=Object['assign']({},_0x369287);return delete _0x1ad871[_0x4691('0x10a')],delete _0x1ad871[_0x4691('0x97')],_0x1ad871;}
|
|
23
|
+
const _0x17c4=['createElement','chain','batch','name','getLastMatchingPosition','isLimit','_defaultCallbacks','_splitMarkerName','formatInline:chain','trackChanges','differ','_trackFormatChanges','_isForcedDefaultExecutionBlock','map','formatGroupId','splitPosition','never','getAncestors','getWalker','push','delete','open','forceDefaultExecution','refresh','splice','_findSuggestions','getSuggestionCallback','change','getRange','dataReady','isInContent','getShiftedBy','removeAttribute','then','showSuggestionHighlights','_commentsRepository','_removeSuggestion','_enabledCommands','Users','commentThread','author','getCustomProperty','discardAllSuggestions','change:activeMarkers','ck-suggestion-marker','enableReadOnlyMode','substr','formatBlock:','get','join','schema','collaboration.channelId','getItems','formatInline:','commandName','_suggestionFactory','removed','suggestion:','markMultiRangeBlockFormat','_createSuggestion','root','addMarker','pluginName','addClass','hasCommentThread','addComment','high','markerName','insertion:discard','document','createRange','isObject','getUser','markMultiRangeInsertion','elementToElement','value','markBlockFormat','default','rejected','_suggestionState','formatBlock:discard','formatBlock:chain','getNearestSelectionRange','trackChanges.mergeNestedSuggestions','data-suggestion','clear','getChangedMarkers','consumable','formatBlock:accept','containsRangeInObject','fetchCommentThread','addSuggestionData','unbind','model','addSuggestion','isLocal','size','trackChangesCommand','stop','isMultiRange','_getExternalAuthor','ck-suggestion-marker-formatBlock','_adapter','enqueueChange','createPositionAt','adapter','removeMarkers','_saved','isOwn','discardSelectedSuggestions','ready','accepted','_addSuggestionMarker','unbindElementFromMarkerName','move','registerPostFixer','suggestionUnloaded','_isDataLoaded','acceptSelectedSuggestions','track-changes-suggestion-not-found','rootName','CommentsRepository','deletion:chain','deletion:discard','accept','_updateSuggestionData','createRangeIn','addHighlight','createSelection','buildSuggestion','targetPosition','_getAuthorFromId','discardSuggestion','getFirstRange','insertContent','fromRange','originalSuggestionId','insertion:','getMarkers','values','external:','_setSuggestionData','before','containsRange','nodeBefore','options','isCollapsed','deleteContent','mapper','notReady','plugins','rethrowUnexpectedError','acceptSuggestion','config','removeMarker','getDifference','$graveyard','authoredAt','oldRange','set','PendingActions','isAfter','newRange','editing','add','isAtEnd','type','suggestionLoaded','_customCallbacks','fire','authorName','isBefore','deletion:','markerNameToElements','update:suggestion','length','isSelectable','insertion','commands','creator','backward','conversion','_getSuggestionData','addMarkerName','toViewElement','next','elementStart','_editor','low','previous','deletion:accept','containsItem','nodeAfter','enableCommand','_joinWithAdjacentSuggestions','_breakSuggestionMarker','_handleNewSuggestionMarker','head','track-changes-adapter-missing-getsuggestion','$textProxy','addUser','isArray','multi','split','containsPosition','_checkSuggestionCorrectness','fromCharCode','suggestion-type','lowest','markInsertion','isIntersectingWithRange','track-changes-command-not-found','error-saving-suggestion-data-suggestion-discarded','always','addCommentThread','multipleBlocks','marker-count','isEqual','ck-suggestion-marker--active','hasComments','isUndo','_setSuggestionRange','updateMarker','bindElementToMarker','addMarker:suggestion:formatBlock','getMultiRangeId','TrackChangesEditing','has','documentSelection','skipNestingCheck','insert','locale','writer','isInsideObject','@external','upcast','_registerDefaultCallbacks','getIntersection','updateSuggestion','subType','listenTo','position','setSelection','getSuggestions','data','formatInline:discard','consume','getChanges','deletion','isBlock','filter','catch','insertion:chain','_refreshSuggestionsChain','deletion:join','range','trackChanges.trackFormatChanges','PENDING_ACTION_SUGGESTION','tablePasteChainId','_suggestions','element','_joinSuggestions','getAttribute','_mergeNestedSuggestions','editor','formatInline:join','for','attributes','addRange','formatBlock','_cutOutSuggestionMarker','_rangeIsInLocalUserInsertion','markers','end','item','markMultiRangeDeletion','detach','every','init','elementEnd','isDocumentOperation','toJSON','markDeletion','_addThreadToSuggestion','suggestionChanged','dataDowncast','formatInline','getRanges','suggestion','from','parent','includes','start','_descriptionFactory','after','createdAt','acceptAllSuggestions','highest','editingDowncast','insertion:accept','define','isNextTo','_model','keys','selection','moveTargetPosition','some','markerReady','getAllAdjacentSuggestions','applyOperation','discard','getFirstMarker','markerToHighlight','getSuggestion','dataToMarker','change:_saved'];(function(_0x1e5146,_0x17c46a){const _0x31e827=function(_0x487bca){while(--_0x487bca){_0x1e5146['push'](_0x1e5146['shift']());}};_0x31e827(++_0x17c46a);}(_0x17c4,0xe3));const _0x31e8=function(_0x1e5146,_0x17c46a){_0x1e5146=_0x1e5146-0x0;let _0x31e827=_0x17c4[_0x1e5146];return _0x31e827;};import{Plugin as _0x22bd5c,PendingActions as _0x2c844a}from'ckeditor5/src/core';import{LiveRange as _0x4f747d}from'ckeditor5/src/engine';import{CKEditorError as _0x3ed594,uid as _0x2d4264,priorities as _0x45a5b5,logWarning as _0x3dc91b}from'ckeditor5/src/utils';import{toWidget as _0x45b506}from'ckeditor5/src/widget';import{Users as _0x2e1b98,hashObject as _0x1a04cf}from'ckeditor5-collaboration/src/collaboration-core';import _0x17759d from'./commands/trackchangescommand';import _0x1f9c5f from'./commands/acceptsuggestioncommand';import _0x3fd515 from'./commands/discardsuggestioncommand';import _0x3ae874 from'./commands/executeonallsuggestionscommand';import _0x503cf1 from'./commands/executeonselectedsuggestionscommand';import _0xeaea29 from'./suggestion';import _0x1e19a9 from'./suggestiondescriptionfactory';import _0x85c07b from'./integrations/alignment';import _0x4304b9 from'./integrations/basicstyles';import _0x213d4 from'./integrations/blockquote';import _0x10d5ae from'./integrations/ckbox';import _0xd57f0c from'./integrations/codeblock';import _0x4eb9eb from'./integrations/comments';import _0xd36b27 from'./integrations/deletecommand';import _0x249800 from'./integrations/documentlist';import _0x561af0 from'./integrations/entercommand';import _0x37bba1 from'./integrations/findandreplace';import _0x239d1b from'./integrations/font';import _0x583675 from'./integrations/formatpainter';import _0x399781 from'./integrations/heading';import _0x492364 from'./integrations/highlight';import _0x110388 from'./integrations/horizontalline';import _0x10f759 from'./integrations/htmlembed';import _0x5e0930 from'./integrations/image';import _0x516c4a from'./integrations/imagereplace';import _0x1fa476 from'./integrations/importword';import _0x560a3e from'./integrations/indent';import _0x572499 from'./integrations/inputcommand';import _0x440531 from'./integrations/link';import _0x500238 from'./integrations/list';import _0x5d6478 from'./integrations/listproperties';import _0x5b0722 from'./integrations/mediaembed';import _0x5cbf50 from'./integrations/mention';import _0x1eea3d from'./integrations/pagebreak';import _0x3ddca8 from'./integrations/paragraph';import _0x1e65c9 from'./integrations/removeformat';import _0x5572dc from'./integrations/restrictededitingmode';import _0x2f8305 from'./integrations/shiftentercommand';import _0x19de8c from'./integrations/standardeditingmode';import _0x463d67 from'./integrations/style';import _0xad1e23 from'./integrations/table';import _0x5d8cb5 from'./integrations/tablemergesplit';import _0x524cda from'./integrations/tableheadings';import _0x4a2bce from'./integrations/tableclipboard';import _0x29133c from'./integrations/tablecolumnresize';import _0x13c0eb from'./integrations/template';import _0x1f0535 from'./integrations/tableofcontents';import _0x51fda9 from'./integrations/title';import _0x62a1f8 from'./integrations/undo';import{getTranslation as _0x56f861}from'./utils/common-translations';import _0xf663ee from'./integrations/tablecaption';import _0x128143 from'./integrations/documentlistproperties';import _0x564637 from'./integrations/tableproperties';import{isEqual as _0x5473b4}from'lodash-es';export default class p extends _0x22bd5c{static get['requires'](){return[_0x31e8('0xd2'),_0x2e1b98,_0x2c844a,_0x85c07b,_0x4304b9,_0x213d4,_0x10d5ae,_0xd57f0c,_0x4eb9eb,_0xd36b27,_0x249800,_0x128143,_0x561af0,_0x37bba1,_0x239d1b,_0x583675,_0x399781,_0x492364,_0x110388,_0x10f759,_0x5e0930,_0x516c4a,_0x1fa476,_0x560a3e,_0x572499,_0x440531,_0x500238,_0x5d6478,_0x5b0722,_0x5cbf50,_0x1eea3d,_0x3ddca8,_0x1e65c9,_0x5572dc,_0x2f8305,_0x19de8c,_0x463d67,_0xad1e23,_0x5d8cb5,_0x524cda,_0xf663ee,_0x4a2bce,_0x29133c,_0x1f0535,_0x564637,_0x13c0eb,_0x51fda9,_0x62a1f8];}static get[_0x31e8('0x97')](){return _0x31e8('0x13b');}constructor(_0x55bc50){function _0x18d224(_0x33b4af){return _0x33b4af[_0x31e8('0x66')](_0x3a7931=>String[_0x31e8('0x127')](_0x3a7931))[_0x31e8('0x8a')]('');}super(_0x55bc50),this[_0x31e8('0xf8')]('activeMarkers',[]),this['on'](_0x31e8('0x84'),(_0x59970b,_0x5c2e36,_0x2f956c,_0x4227a4)=>{this[_0x31e8('0x4b')][_0x31e8('0x74')](()=>{for(const _0x253580 of[..._0x4227a4,..._0x2f956c])this['_model'][_0x31e8('0x2d')][_0x31e8('0x0')](_0x253580)&&_0x55bc50[_0x31e8('0xfc')]['reconvertMarker'](_0x253580);});}),this[_0x31e8('0x42')]=new _0x1e19a9(this[_0x31e8('0x25')][_0x31e8('0xb6')][_0x31e8('0x8b')],this['editor'][_0x31e8('0x4')]),this[_0x31e8('0xbf')]=null,this[_0x31e8('0x90')]=new Dt(this['editor']),this[_0x31e8('0x20')]=new Map(),this['_commentsRepository']=_0x55bc50[_0x31e8('0xef')][_0x31e8('0x89')](_0x31e8('0xd2')),this[_0x31e8('0x7e')]=new Set(),this[_0x31e8('0x4b')]=this[_0x31e8('0x25')][_0x31e8('0xb6')],this[_0x31e8('0xa8')]=new WeakMap(),this[_0x31e8('0x65')]=!0x1,_0x55bc50[_0x31e8('0xf2')][_0x31e8('0x49')](_0x31e8('0x1d'),_0x31e8('0xa6')),this[_0x31e8('0x64')]=_0x55bc50['config'][_0x31e8('0x89')](_0x31e8('0x1d')),_0x55bc50[_0x31e8('0xf2')][_0x31e8('0x49')](_0x31e8('0xac'),!0x0),this[_0x31e8('0x24')]=_0x55bc50['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x17759d(_0x55bc50,this['_enabledCommands']),this[_0x18d224([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x18d224([0x34,0x30,0x34,0x36,0x31,0x38,0x33,0x30]);}[_0x31e8('0x33')](){const _0x3008be=this['editor'];_0x3008be[_0x31e8('0x10e')][_0x31e8('0x27')](_0x31e8('0x47'))[_0x31e8('0x55')]({'model':_0x31e8('0x3d'),'view':_0xea08ba=>{const {id:_0x54c16c,type:_0x37a2a5}=this[_0x31e8('0x60')](_0xea08ba[_0x31e8('0x9c')]),_0x564f70=[_0x31e8('0x85'),'ck-suggestion-marker-'+_0x37a2a5];let _0x4e0ea2=0xbb8;return this['activeMarkers'][_0x31e8('0x40')](_0xea08ba['markerName'])&&(_0x564f70[_0x31e8('0x6c')](_0x31e8('0x133')),_0x4e0ea2=0xbc2),_0x31e8('0x15')==_0x37a2a5&&(_0x4e0ea2+=0x5),{'classes':_0x564f70,'attributes':{'data-suggestion':_0x54c16c},'priority':_0x4e0ea2};}}),_0x3008be[_0x31e8('0x10e')]['for']('dataDowncast')[_0x31e8('0xfd')](_0x5a8533=>{_0x5a8533['on']('addMarker:suggestion',(_0x3698bf,_0x4b2d39,_0x3826cb)=>{if(!_0x3826cb[_0x31e8('0xea')][_0x31e8('0x7b')])return;const _0x5540e9=_0x4b2d39['item'];if(!_0x5540e9)return;const _0xd0c4df=_0x3826cb[_0x31e8('0xed')][_0x31e8('0x111')](_0x5540e9);_0x3008be[_0x31e8('0xb6')][_0x31e8('0x8b')][_0x31e8('0xa0')](_0x5540e9)&&_0xd0c4df&&!_0xd0c4df[_0x31e8('0x82')]('widget')&&_0xd0c4df['is']('containerElement')&&_0x45b506(_0xd0c4df,_0x3826cb[_0x31e8('0x5')]);},{'priority':'high'});}),_0x3008be[_0x31e8('0x10e')][_0x31e8('0x27')]('dataDowncast')[_0x31e8('0x55')]({'model':'suggestion','view':(_0x1523b6,_0x4a9c98)=>{if(!_0x4a9c98[_0x31e8('0xea')][_0x31e8('0x7b')])return null;const {type:_0x1eb12f}=this['_splitMarkerName'](_0x1523b6[_0x31e8('0x9c')]);return{'classes':[_0x31e8('0x85'),'ck-suggestion-marker-'+_0x1eb12f],'priority':0xbb8};}});const _0x4cf71e=({showActiveMarkers:_0x2200b9=!0x0}={})=>(_0x17df3a,_0x2d4f80,_0x1a39b9)=>{if(!_0x2d4f80[_0x31e8('0x2f')])return;if(_0x2d4f80['item']['is'](_0x31e8('0x4d')))return void _0x1a39b9[_0x31e8('0xb0')]['consume'](_0x2d4f80[_0x31e8('0x2f')],_0x17df3a[_0x31e8('0x5c')]);const _0x4de4eb=_0x1a39b9['mapper'][_0x31e8('0x111')](_0x2d4f80[_0x31e8('0x2f')]);if(!(_0x2d4f80[_0x31e8('0x2f')]['is'](_0x31e8('0x21'))&&_0x3008be[_0x31e8('0xb6')][_0x31e8('0x8b')]['isBlock'](_0x2d4f80['item'])&&!_0x4de4eb['getCustomProperty'](_0x31e8('0xd8'))))return;const {id:_0x5d8670}=this['_splitMarkerName'](_0x2d4f80[_0x31e8('0x9c')]);_0x1a39b9[_0x31e8('0x5')][_0x31e8('0x98')]([_0x31e8('0x85'),_0x31e8('0xbe')],_0x4de4eb),_0x1a39b9[_0x31e8('0x5')]['setAttribute'](_0x31e8('0xad'),_0x5d8670,_0x4de4eb),_0x1a39b9[_0x31e8('0xed')][_0x31e8('0x138')](_0x4de4eb,_0x2d4f80['markerName']),_0x2200b9&&(this['activeMarkers'][_0x31e8('0x40')](_0x2d4f80[_0x31e8('0x9c')])?_0x1a39b9[_0x31e8('0x5')][_0x31e8('0x98')](_0x31e8('0x133'),_0x4de4eb):_0x1a39b9[_0x31e8('0x5')]['removeClass'](_0x31e8('0x133'),_0x4de4eb));for(const _0x276e15 of _0x3008be[_0x31e8('0xb6')][_0x31e8('0xd7')](_0x2d4f80[_0x31e8('0x2f')])[_0x31e8('0x8d')]())_0x1a39b9['consumable'][_0x31e8('0x13')](_0x276e15,_0x17df3a[_0x31e8('0x5c')]);_0x1a39b9[_0x31e8('0xb0')]['consume'](_0x2d4f80[_0x31e8('0x2f')],_0x17df3a['name']);};_0x3008be[_0x31e8('0x10e')][_0x31e8('0x27')](_0x31e8('0x3a'))[_0x31e8('0xfd')](_0x100aba=>{_0x100aba['on'](_0x31e8('0x139'),(_0x1d29b3,_0x2805dc,_0x3b2313)=>{_0x3b2313[_0x31e8('0xea')][_0x31e8('0x7b')]&&_0x4cf71e({'showActiveMarkers':!0x1})(_0x1d29b3,_0x2805dc,_0x3b2313);},{'priority':_0x31e8('0x46')});}),_0x3008be[_0x31e8('0x10e')][_0x31e8('0x27')](_0x31e8('0x3a'))['markerToData']({'model':_0x31e8('0x3d'),'view':(_0x2c58c0,_0xdc56c5)=>_0xdc56c5[_0x31e8('0xea')][_0x31e8('0x7b')]?null:{'group':_0x31e8('0x3d'),'name':_0x2c58c0[_0x31e8('0x87')](0xb)}}),_0x3008be[_0x31e8('0x10e')][_0x31e8('0x27')](_0x31e8('0x8'))[_0x31e8('0xa3')]({'view':{'name':_0x31e8('0x3d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3e1882,{writer:_0x3d241f})=>{let _0x2d4abe=_0x31e8('0x92')+_0x3e1882['getAttribute'](_0x31e8('0x128'))+':'+_0x3e1882[_0x31e8('0x23')]('id');return _0x3e1882[_0x31e8('0x23')](_0x31e8('0x131'))&&(_0x2d4abe+=':'+_0x3e1882[_0x31e8('0x23')](_0x31e8('0x131'))),_0x3d241f[_0x31e8('0x59')]('$marker',{'data-name':_0x2d4abe});}}),_0x3008be[_0x31e8('0x10e')][_0x31e8('0x27')](_0x31e8('0x8'))[_0x31e8('0x57')]({'view':_0x31e8('0x3d')}),_0x3008be[_0x31e8('0x10e')][_0x31e8('0x27')](_0x31e8('0x47'))[_0x31e8('0xfd')](_0x15d231=>{_0x15d231['on'](_0x31e8('0x139'),_0x4cf71e(),{'priority':_0x31e8('0x9b')});}),_0x3008be['conversion'][_0x31e8('0x27')]('editingDowncast')[_0x31e8('0xfd')](_0x1bfc31=>{_0x1bfc31['on']('removeMarker:suggestion:formatBlock',(_0xec2067,_0x3077be,_0x2040b5)=>{const _0x5f479b=_0x2040b5[_0x31e8('0xed')][_0x31e8('0x106')](_0x3077be['markerName']);if(_0x5f479b)for(const _0x72f1e of _0x5f479b)_0x72f1e[_0x31e8('0x82')](_0x31e8('0xd8'))||(_0x2040b5[_0x31e8('0x5')]['removeClass']([_0x31e8('0x85'),_0x31e8('0xbe'),_0x31e8('0x133')],_0x72f1e),_0x2040b5[_0x31e8('0x5')][_0x31e8('0x79')]('data-suggestion',_0x72f1e),_0x2040b5[_0x31e8('0xed')][_0x31e8('0xca')](_0x72f1e,_0x3077be[_0x31e8('0x9c')]));},{'priority':_0x31e8('0x9b')});}),_0x3008be['model']['document']['registerPostFixer'](_0x2a94d4=>{let _0x4edd27=!0x1;const _0x36bc62=Array[_0x31e8('0x3e')](_0x3008be['model'][_0x31e8('0x9e')][_0x31e8('0x63')][_0x31e8('0xaf')]()),_0x12248b=new Set();for(const {name:_0x99d13e,data:_0x3a25d1}of _0x36bc62){const {group:_0x5c39f9,type:_0x207338,id:_0x4119be}=this['_splitMarkerName'](_0x99d13e);if('suggestion'!==_0x5c39f9)continue;const _0x219587=this[_0x31e8('0x20')][_0x31e8('0x89')](_0x4119be);if(null!=_0x3a25d1[_0x31e8('0xfb')]){_0x31e8('0x3b')==_0x207338&&(_0x4edd27=_0x4edd27||Mt(_0x3a25d1[_0x31e8('0xfb')],_0x99d13e,_0x2a94d4,_0x3008be['model'][_0x31e8('0x8b')]));if(_0x3a25d1[_0x31e8('0xfb')]['isCollapsed']||_0x31e8('0xf5')==_0x3a25d1[_0x31e8('0xfb')][_0x31e8('0x95')][_0x31e8('0xd1')]||'formatBlock'==_0x207338&&!Nt(_0x3a25d1[_0x31e8('0xfb')])||_0x31e8('0x15')==_0x207338&&!(!_t(_0x31e0d8=_0x3a25d1['newRange'])&&!function(_0x126e8a){return _0x126e8a[_0x31e8('0x41')]['parent']==_0x126e8a[_0x31e8('0x2e')][_0x31e8('0xe9')]&&_0x126e8a['start'][_0x31e8('0xfe')];}(_0x31e0d8)))_0x2a94d4[_0x31e8('0xf3')](_0x99d13e),_0x4edd27=!0x0;else{if(!_0x219587||!_0x219587['isInContent'])continue;_0x12248b[_0x31e8('0xfd')](_0x219587);}}}var _0x31e0d8;return _0x12248b[_0x31e8('0xb9')]>0x0&&(_0x4edd27=!!this[_0x31e8('0x11b')](_0x12248b)||_0x4edd27),_0x4edd27;}),_0x3008be['model'][_0x31e8('0x9e')][_0x31e8('0xcc')](_0x2868bf=>{let _0x149908=!0x1;for(const _0x40df95 of _0x3008be[_0x31e8('0xb6')][_0x31e8('0x9e')][_0x31e8('0x63')][_0x31e8('0x14')]()){if(_0x31e8('0x3')!=_0x40df95[_0x31e8('0xff')])continue;const _0x3f5103=_0x40df95[_0x31e8('0xe')][_0x31e8('0x78')](_0x40df95[_0x31e8('0x108')]);if(_0x3f5103[_0x31e8('0xfe')])for(const _0x1af6ba of this[_0x31e8('0x20')]['values']()){if(_0x1af6ba['isMultiRange']||!_0x1af6ba['isInContent'])continue;if(_0x31e8('0x2a')!=_0x1af6ba['type'])continue;const _0x82538a=_0x1af6ba[_0x31e8('0xde')]();if(_0x82538a[_0x31e8('0x41')][_0x31e8('0x3f')]!=_0x82538a[_0x31e8('0x2e')]['parent']&&_0x82538a[_0x31e8('0x2e')][_0x31e8('0x132')](_0x40df95[_0x31e8('0xe')])){const _0x59bb5a=_0x3008be['model'][_0x31e8('0x9f')](_0x82538a['start'],_0x3f5103);_0x2868bf['updateMarker'](_0x1af6ba['getFirstMarker'](),{'range':_0x59bb5a}),_0x149908=!0x0;}}}return _0x149908;}),_0x3008be[_0x31e8('0xb6')][_0x31e8('0x2d')]['on'](_0x31e8('0x107'),(_0x2eda78,_0x224e92,_0x2b39cd)=>{if(null==_0x2b39cd){const {id:_0x327f32}=this[_0x31e8('0x60')](_0x224e92[_0x31e8('0x5c')]),_0x25e601=this[_0x31e8('0x20')][_0x31e8('0x89')](_0x327f32);_0x25e601&&_0x25e601[_0x31e8('0x110')](_0x224e92[_0x31e8('0x5c')]);}}),_0x3008be[_0x31e8('0xb6')]['document']['on']('change:data',()=>{const _0x54e09c=Array[_0x31e8('0x3e')](_0x3008be[_0x31e8('0xb6')][_0x31e8('0x9e')][_0x31e8('0x63')][_0x31e8('0xaf')]())[_0x31e8('0x17')](_0x30cfdf=>_0x31e8('0x3d')===this[_0x31e8('0x60')](_0x30cfdf[_0x31e8('0x5c')])['group']);if(0x0===_0x54e09c['length'])return;_0x54e09c['sort']((_0x2b0fca,_0x41ac2d)=>{const _0x43f075=_0x2b0fca[_0x31e8('0x11')][_0x31e8('0xf7')],_0x15e564=_0x41ac2d['data'][_0x31e8('0xf7')];return null===_0x43f075&&null===_0x15e564?0x0:null===_0x43f075&&null!==_0x15e564?-0x1:null!==_0x43f075&&null===_0x15e564?0x1:_0x43f075[_0x31e8('0x41')]['isBefore'](_0x15e564[_0x31e8('0x41')])?-0x1:0x1;});const _0x299a8a=new Set(),_0x44d45e=new Set();for(const {name:_0x5bfb05,data:_0x3d0db0}of _0x54e09c){const {id:_0x3c26c9}=this[_0x31e8('0x60')](_0x5bfb05);if(null===_0x3d0db0[_0x31e8('0xf7')]){const _0x34cb53=this[_0x31e8('0x11d')](_0x5bfb05);_0x44d45e['add'](_0x34cb53);}else{const _0x2aea3b=this[_0x31e8('0x20')][_0x31e8('0x89')](_0x3c26c9);null!==_0x3d0db0['newRange']||_0x2aea3b[_0x31e8('0x77')]?(_0x299a8a['add'](_0x2aea3b[_0x31e8('0x11e')]),_0x44d45e[_0x31e8('0xfd')](_0x2aea3b)):this['_removeSuggestion'](_0x2aea3b);}}_0x44d45e[_0x31e8('0xb9')]>0x0&&this[_0x31e8('0x1a')](_0x44d45e);for(const _0x17a2ac of _0x299a8a)this[_0x31e8('0x102')](_0x31e8('0x39'),_0x17a2ac);}),_0x3008be['model']['on'](_0x31e8('0x52'),(_0x4d6d0b,_0x39b507)=>{const _0x34a64e=_0x39b507[0x0];if(!this['_suggestions'][_0x31e8('0xb9')])return;if(!_0x34a64e[_0x31e8('0x35')])return;if(_0x34a64e[_0x31e8('0x5b')][_0x31e8('0x135')]||!_0x34a64e[_0x31e8('0x5b')][_0x31e8('0xb8')])return;let _0x21558c,_0x1638a8;switch(_0x34a64e[_0x31e8('0xff')]){case'insert':_0x21558c=_0x3008be[_0x31e8('0xb6')][_0x31e8('0xc1')](_0x34a64e[_0x31e8('0xe')]),_0x1638a8=_0x21558c[_0x31e8('0x78')](_0x34a64e['howMany']);break;case _0x31e8('0x124'):_0x21558c=_0x3008be[_0x31e8('0xb6')][_0x31e8('0xc1')](_0x34a64e[_0x31e8('0x68')]),_0x1638a8=_0x3008be[_0x31e8('0xb6')][_0x31e8('0xc1')](_0x34a64e[_0x31e8('0x4e')]);break;case _0x31e8('0xcb'):_0x21558c=_0x3008be[_0x31e8('0xb6')][_0x31e8('0xc1')](_0x34a64e[_0x31e8('0xdb')]),_0x1638a8=_0x21558c[_0x31e8('0x78')](_0x34a64e['howMany']);break;default:return;}const _0x2db7a2=_0x3008be[_0x31e8('0xb6')][_0x31e8('0x9f')](_0x21558c,_0x1638a8);_0x3008be['model'][_0x31e8('0x74')](()=>{for(const {suggestion:_0x3db5dd,meta:_0x332bee}of this['_findSuggestions'](_0x2db7a2)){if(_0x3db5dd[_0x31e8('0xbc')])continue;if('formatInline'==_0x3db5dd['type'])continue;const _0x385c87=_0x3db5dd[_0x31e8('0x11')]&&_0x3db5dd['data'][_0x31e8('0x130')];(_0x31e8('0x2a')!=_0x3db5dd[_0x31e8('0xff')]||'split'==_0x34a64e[_0x31e8('0xff')]&&!_0x385c87)&&(_0x332bee[_0x31e8('0xb2')]||_0x31e8('0x10a')==_0x3db5dd['type']&&_0x332bee[_0x31e8('0xc5')]||_0x3db5dd[_0x31e8('0xde')]()['containsRange'](_0x2db7a2)&&this[_0x31e8('0x11c')](_0x3db5dd,_0x21558c,_0x1638a8));}});},{'priority':_0x31e8('0x129')}),_0x3008be[_0x31e8('0xb6')]['on'](_0x31e8('0xec'),(_0x2d664a,_0x1a535c)=>{const _0x20cce0=_0x1a535c[0x0],_0xd87ab5=_0x1a535c[0x1];if(_0xd87ab5&&_0xd87ab5['forceDefaultExecution'])return;if(this[_0x31e8('0x65')])return;if(!this['trackChangesCommand'][_0x31e8('0xa4')])return;if(_0x20cce0['isCollapsed'])return;const _0x6302e0=_0x3008be['model'][_0x31e8('0x8b')],{start:_0x4131e7,end:_0xe21bfd}=_0x20cce0['getFirstRange'](),_0x1dfc26=_0x4131e7[_0x31e8('0x119')]&&_0x6302e0[_0x31e8('0x5e')](_0x4131e7[_0x31e8('0x119')])?null:_0x6302e0['getNearestSelectionRange'](_0x4131e7,'forward'),_0x5021f9=_0xe21bfd[_0x31e8('0xe9')]&&_0x6302e0[_0x31e8('0x5e')](_0xe21bfd['nodeBefore'])?null:_0x6302e0[_0x31e8('0xab')](_0xe21bfd,_0x31e8('0x10d')),_0x44d6d8=_0x3008be['model'][_0x31e8('0x9f')](_0x1dfc26?_0x1dfc26[_0x31e8('0x41')]:_0x4131e7,_0x5021f9?_0x5021f9[_0x31e8('0x2e')]:_0xe21bfd);_0x3008be[_0x31e8('0xb6')][_0x31e8('0x74')](_0x287629=>{this[_0x31e8('0x37')](_0x44d6d8);const _0x197989=_0x3008be[_0x31e8('0xb6')][_0x31e8('0x8b')][_0x31e8('0xab')](_0x44d6d8['start']);_0x20cce0['is'](_0x31e8('0x1'))?_0x287629[_0x31e8('0xf')](_0x197989):_0x20cce0['setTo'](_0x197989);}),_0x2d664a[_0x31e8('0xbb')]();},{'priority':_0x45a5b5['normal']+0xa}),_0x3008be['model']['on'](_0x31e8('0xdf'),(_0xfc8346,_0x2e6bda)=>{const _0x5564bc=_0x2e6bda[_0x2e6bda[_0x31e8('0x108')]-0x1];_0x5564bc&&_0x5564bc[_0x31e8('0x6f')]||this[_0x31e8('0x65')]||this['trackChangesCommand'][_0x31e8('0xa4')]&&(_0x3008be[_0x31e8('0xb6')][_0x31e8('0x74')](()=>{let _0x57db3d=_0x3008be[_0x31e8('0xb6')][_0x31e8('0xdf')](_0x2e6bda[0x0],_0x2e6bda[0x1],_0x2e6bda[0x2],{'forceDefaultExecution':!0x0});if(!_0x57db3d)return;_0xfc8346['return']=_0x57db3d['clone']();const _0xa327d9=_0x57db3d['end'][_0x31e8('0xe9')],_0x3b75bc=_0x3008be[_0x31e8('0xb6')]['schema'];_0xa327d9&&_0x3b75bc[_0x31e8('0x16')](_0xa327d9)&&!_0x3b75bc['isObject'](_0xa327d9)&&(_0x57db3d=_0x3008be['model']['createRange'](_0x57db3d[_0x31e8('0x41')],_0x3008be[_0x31e8('0xb6')][_0x31e8('0xc1')](_0xa327d9,_0x31e8('0x2e')))),this[_0x31e8('0x12a')](_0x57db3d);}),_0xfc8346[_0x31e8('0xbb')]());},{'priority':_0x31e8('0x9b')}),this[_0x31e8('0x25')][_0x31e8('0x10b')][_0x31e8('0xfd')](_0x31e8('0x62'),this[_0x31e8('0xba')]),this[_0x31e8('0x11a')]('trackChanges');const _0x35f029=new _0x1f9c5f(_0x3008be,this[_0x31e8('0x20')]);_0x3008be['commands'][_0x31e8('0xfd')](_0x31e8('0xf1'),_0x35f029),this[_0x31e8('0x11a')]('acceptSuggestion');const _0x5231e7=new _0x3fd515(_0x3008be,this[_0x31e8('0x20')]);_0x3008be['commands'][_0x31e8('0xfd')](_0x31e8('0xdd'),_0x5231e7),this['enableCommand'](_0x31e8('0xdd')),_0x3008be['commands'][_0x31e8('0xfd')](_0x31e8('0x45'),new _0x3ae874(_0x3008be,_0x35f029,this[_0x31e8('0x20')])),this[_0x31e8('0x11a')](_0x31e8('0x45')),_0x3008be[_0x31e8('0x10b')]['add'](_0x31e8('0x83'),new _0x3ae874(_0x3008be,_0x5231e7,this[_0x31e8('0x20')])),this[_0x31e8('0x11a')](_0x31e8('0x83')),_0x3008be[_0x31e8('0x10b')][_0x31e8('0xfd')]('acceptSelectedSuggestions',new _0x503cf1(_0x3008be,_0x35f029,this[_0x31e8('0x20')])),this['enableCommand'](_0x31e8('0xcf')),_0x3008be[_0x31e8('0x10b')][_0x31e8('0xfd')](_0x31e8('0xc6'),new _0x503cf1(_0x3008be,_0x5231e7,this['_suggestions'])),this[_0x31e8('0x11a')](_0x31e8('0xc6'));const _0x2fce2d=_0x3008be[_0x31e8('0xef')][_0x31e8('0x89')](_0x31e8('0xd2'));this[_0x31e8('0xd')](_0x2fce2d,_0x31e8('0x9a'),(_0xcf75e3,{threadId:_0x43a62b})=>{const _0x763965=this[_0x31e8('0x20')]['get'](_0x43a62b);_0x763965&&_0x763965[_0x31e8('0x80')]&&0x1===_0x763965['commentThread']['length']&&this[_0x31e8('0xd6')](_0x43a62b,{'hasComments':!0x0});},{'priority':_0x31e8('0x115')}),this[_0x31e8('0xd')](_0x2fce2d,'removeComment',(_0x2a272b,{threadId:_0x2339a6})=>{const _0x3b8510=this[_0x31e8('0x20')][_0x31e8('0x89')](_0x2339a6);_0x3b8510&&_0x3b8510[_0x31e8('0x80')]&&!_0x3b8510[_0x31e8('0x80')]['length']&&this[_0x31e8('0xd6')](_0x2339a6,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x14d474){if(this[_0x31e8('0xbf')])throw new _0x3ed594('track-changes-adapter-already-set',this);this[_0x31e8('0xbf')]=_0x14d474;}get[_0x31e8('0xc2')](){return this[_0x31e8('0xbf')];}[_0x31e8('0x10')]({skipNotAttached:_0x58d329=!0x1,toJSON:_0x146555=!0x1}={}){const _0x33b7da=[];for(const _0x37d301 of this[_0x31e8('0x20')][_0x31e8('0xe4')]())_0x58d329&&!_0x37d301[_0x31e8('0x77')]||_0x33b7da[_0x31e8('0x6c')](_0x37d301);return _0x146555?_0x33b7da[_0x31e8('0x66')](_0x5c51eb=>_0x5c51eb[_0x31e8('0x36')]()):_0x33b7da;}[_0x31e8('0x56')](_0x1d7171){const _0xdf5555=this[_0x31e8('0x20')][_0x31e8('0x89')](_0x1d7171);if(!_0xdf5555)throw new _0x3ed594(_0x31e8('0xd0'),this);return _0xdf5555;}['hasSuggestion'](_0x95cba2){return this[_0x31e8('0x20')][_0x31e8('0x0')](_0x95cba2);}[_0x31e8('0xb4')](_0x1dd107){const {authorId:_0x53a640,id:_0x78620a,attributes:_0x31bf3b}=_0x1dd107,[_0x315aa3,_0x2c4459]=_0x1dd107[_0x31e8('0xff')][_0x31e8('0x124')](':'),_0x20af14=this[_0x31e8('0x20')][_0x31e8('0x89')](_0x78620a)||this[_0x31e8('0x94')](_0x315aa3,_0x2c4459,_0x78620a,_0x53a640,_0x31bf3b);if(this[_0x31e8('0x38')](_0x20af14),this['_checkSuggestionCorrectness'](_0x20af14,_0x315aa3,_0x2c4459||null,_0x53a640),_0x20af14[_0x31e8('0x44')]=_0x1dd107['createdAt'],_0x20af14[_0x31e8('0xce')]=!0x0,_0x31bf3b&&_0x31bf3b[_0x31e8('0x7')]){const _0x221356=_0x31bf3b['@external'],_0x3682c5=this[_0x31e8('0xbd')](_0x221356[_0x31e8('0x103')]);_0x20af14[_0x31e8('0xf6')]=_0x221356[_0x31e8('0x44')],_0x20af14[_0x31e8('0x81')]=_0x3682c5,_0x20af14['isExternal']=!0x0;}else _0x20af14[_0x31e8('0xf6')]=_0x1dd107[_0x31e8('0x44')];switch(_0x1dd107[_0x31e8('0x11')]&&(_0x20af14[_0x31e8('0x11')]=_0x1dd107[_0x31e8('0x11')]),_0x1dd107['attributes']&&(_0x20af14[_0x31e8('0x28')]=_0x1dd107[_0x31e8('0x28')]),this[_0x31e8('0xbf')]&&this[_0x31e8('0xbf')][_0x31e8('0xb7')]||(_0x20af14[_0x31e8('0xc4')]=!0x0),this[_0x31e8('0xa8')]['get'](_0x20af14)){case'notReady':this[_0x31e8('0xa8')][_0x31e8('0xf8')](_0x20af14,'dataReady');break;case _0x31e8('0x50'):_0x20af14[_0x31e8('0x77')]?(this[_0x31e8('0x1a')](new Set([_0x20af14])),this[_0x31e8('0x11b')](new Set([_0x20af14])),this[_0x31e8('0xa8')]['set'](_0x20af14,_0x31e8('0xc7')),this[_0x31e8('0x102')](_0x31e8('0x100'),_0x20af14)):this[_0x31e8('0xa8')][_0x31e8('0xf8')](_0x20af14,_0x31e8('0x91'));}return _0x20af14;}[_0x31e8('0xf1')](_0x13f7e0){this[_0x31e8('0x6f')](()=>{this[_0x31e8('0x25')][_0x31e8('0xb6')]['change'](()=>{for(const _0x17e6a6 of _0x13f7e0[_0x31e8('0x51')]())_0x17e6a6[_0x31e8('0xd5')]();});});}[_0x31e8('0xdd')](_0x30477d){this['forceDefaultExecution'](()=>{this['editor'][_0x31e8('0xb6')][_0x31e8('0x74')](()=>{for(const _0x2e9e30 of _0x30477d['getAllAdjacentSuggestions']())_0x2e9e30[_0x31e8('0x53')]();});});}[_0x31e8('0x11a')](_0x4e815e,_0x55804b){const _0x273a82=this['editor'][_0x31e8('0x10b')][_0x31e8('0x89')](_0x4e815e);if(!_0x273a82)throw new _0x3ed594(_0x31e8('0x12c'),this,{'commandName':_0x4e815e});this[_0x31e8('0x7e')][_0x31e8('0xfd')](_0x273a82),_0x55804b&&_0x273a82['on']('execute',(_0x3809e1,_0x3e8456)=>{this[_0x31e8('0xba')][_0x31e8('0xa4')]&&(this[_0x31e8('0x65')]||_0x3e8456[_0x31e8('0x108')]>0x0&&_0x3e8456[_0x3e8456['length']-0x1]&&_0x3e8456[_0x3e8456[_0x31e8('0x108')]-0x1][_0x31e8('0x6f')]||(_0x55804b((..._0x5aa752)=>_0x273a82['execute'](..._0x5aa752,{'forceDefaultExecution':!0x0}),..._0x3e8456),_0x3809e1['stop']()));},{'priority':'high'});}[_0x31e8('0x6f')](_0x1056c2){let _0x37f5f5,_0x51cae5;const _0x41a82c=this[_0x31e8('0x65')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37f5f5=_0x1056c2();}catch(_0x4793d5){_0x51cae5=_0x4793d5;}return _0x41a82c||(this[_0x31e8('0x65')]=!0x1),_0x51cae5&&_0x3ed594[_0x31e8('0xf0')](_0x51cae5,this),_0x37f5f5;}[_0x31e8('0x12a')](_0x1ae075,_0x33bd56=null,_0x50a1d8={}){if(_0x1ae075[_0x31e8('0xeb')])return null;const _0xfea386=this[_0x31e8('0x25')]['plugins'][_0x31e8('0x89')](_0x31e8('0x7f'))['me'];for(const {suggestion:_0x4a8013,meta:_0x266f67}of this['_findSuggestions'](_0x1ae075,_0x31e8('0x10a')))if(_0x266f67['isOwn']){if(!_0x266f67[_0x31e8('0x4a')]){if(_0x266f67[_0x31e8('0xb2')]){if(!this[_0x31e8('0x24')]||!Ut(_0x4a8013,_0x50a1d8))continue;return _0x4a8013;}if(Ut(_0x4a8013,_0x50a1d8))return _0x4a8013;this['_breakSuggestionMarker'](_0x4a8013,_0x1ae075[_0x31e8('0x41')],_0x1ae075[_0x31e8('0x2e')]);break;}if(_0x33bd56==_0x4a8013[_0x31e8('0xc')]&&Ut(_0x4a8013,_0x50a1d8)){const _0x3a6cd8=_0x4a8013['getFirstRange']();return _0x3a6cd8[_0x31e8('0x41')][_0x31e8('0x132')](_0x1ae075[_0x31e8('0x2e')])?this[_0x31e8('0x136')](_0x4a8013,this['_model'][_0x31e8('0x9f')](_0x1ae075[_0x31e8('0x41')],_0x3a6cd8[_0x31e8('0x2e')])):this['_setSuggestionRange'](_0x4a8013,this['_model']['createRange'](_0x3a6cd8[_0x31e8('0x41')],_0x1ae075['end'])),_0x4a8013;}}const _0x2e28ac=_0x2d4264(),_0x4af0af=_0xfea386['id'],_0x2631a5=_0x33bd56?_0x31e8('0xe2')+_0x33bd56:_0x31e8('0x10a'),_0x20219a=this[_0x31e8('0xe6')]({'id':_0x2e28ac,'type':_0x2631a5,'createdAt':new Date(),'authorId':_0x4af0af,'attributes':_0x50a1d8});return this[_0x31e8('0xc9')](_0x2631a5,_0x2e28ac,_0x4af0af,_0x1ae075),_0x20219a;}[_0x31e8('0xa2')](_0xe7099,_0x5ab8c8=_0x31e8('0x123'),_0x191709={}){const _0x66c8e5=this[_0x31e8('0x25')][_0x31e8('0xef')]['get'](_0x31e8('0x7f'))['me'],_0x35f716=this[_0x31e8('0x90')][_0x31e8('0x73')](_0x31e8('0x10a'),_0x5ab8c8,'join');for(const _0x4680a7 of this[_0x31e8('0x10')]())if(_0x4680a7[_0x31e8('0x81')]['id']==_0x66c8e5['id']&&'insertion'==_0x4680a7[_0x31e8('0xff')]&&_0x4680a7[_0x31e8('0xc')]==_0x5ab8c8&&Ut(_0x4680a7,_0x191709)&&(_0x35f716(_0x4680a7['getRanges'](),_0xe7099)||_0x35f716(_0xe7099,_0x4680a7[_0x31e8('0x3c')]()))){for(const _0x415d28 of _0xe7099)_0x4680a7[_0x31e8('0x29')](_0x415d28);return _0x4680a7;}for(const {suggestion:_0x33b56,meta:_0x2c3028}of this[_0x31e8('0x72')](_0xe7099,_0x31e8('0x10a'))){if(!_0x2c3028[_0x31e8('0xc5')])continue;if(!this[_0x31e8('0x24')]&&_0x2c3028[_0x31e8('0xb2')])continue;if(!Ut(_0x33b56,_0x191709))continue;let _0x3f4b5a=!0x0;for(const _0x1c703a of _0x33b56[_0x31e8('0x3c')]())for(const _0x369f8a of _0xe7099)if(!_0x1c703a['containsRange'](_0x369f8a)){_0x3f4b5a=!0x1;break;}if(_0x3f4b5a)return _0x33b56;}const _0x4cc15b=_0x2d4264(),_0x109d62=_0x66c8e5['id'],_0xba6b44=_0x31e8('0xe2')+_0x5ab8c8,_0x150a25=this['_setSuggestionData']({'id':_0x4cc15b,'type':_0xba6b44,'createdAt':new Date(),'authorId':_0x109d62,'attributes':_0x191709});for(const _0x246ce6 of _0xe7099)this[_0x31e8('0xc9')](_0xba6b44,_0x4cc15b,_0x109d62,_0x246ce6,_0xeaea29[_0x31e8('0x13a')]());return _0x150a25;}['markInlineFormat'](_0xf29579,_0x2e169f,_0x2c6996=null,_0x3df981={}){if(_0x2c6996=_0x2c6996||$t(_0x2e169f),_0xf29579[_0x31e8('0xeb')])return null;if(_0x31e8('0x69')===this['_trackFormatChanges']){const _0x2eab0d=this['_suggestionFactory'][_0x31e8('0x73')]('formatInline',_0x2c6996,_0x31e8('0xd5'));return this[_0x31e8('0x6f')](()=>_0x2eab0d([_0xf29579],_0x2e169f,_0x3df981)),null;}const _0x2e61a7=this['editor'][_0x31e8('0xef')]['get'](_0x31e8('0x7f'))['me'],_0x5762ee=[];if(_0x31e8('0x12e')!==this['_trackFormatChanges'])for(const {suggestion:_0x5256d2,meta:_0x156bd4}of this[_0x31e8('0x72')](_0xf29579,_0x31e8('0x10a')))_0x156bd4['isOwn']&&!_0x156bd4[_0x31e8('0x6')]&&_0x5762ee[_0x31e8('0x6c')](..._0x5256d2['getRanges']());const _0x5ba39c=function(_0x363955,_0x3982ea){const _0x47d534=[];for(const _0x1e2b03 of _0x3982ea){const _0x4242dc=_0x363955[_0x31e8('0xa')](_0x1e2b03);_0x4242dc&&_0x47d534[_0x31e8('0x6c')](_0x4242dc);}return _0x47d534;}(_0xf29579,_0x5762ee),_0x36ff32=function(_0x3ec437,_0x5eb3bc){const _0x1ca896=[_0x3ec437];for(const _0x1001e5 of _0x5eb3bc){let _0x33f467=0x0;for(;_0x33f467<_0x1ca896['length'];){const _0x5ef8cd=_0x1ca896[_0x33f467][_0x31e8('0xf4')](_0x1001e5);_0x1ca896[_0x31e8('0x71')](_0x33f467,0x1,..._0x5ef8cd),_0x33f467+=_0x5ef8cd[_0x31e8('0x108')];}}return _0x1ca896;}(_0xf29579,_0x5762ee);_0x5ba39c[_0x31e8('0x108')]&&this['_model'][_0x31e8('0x74')](()=>{for(const _0x50835a of _0x5ba39c){const _0x5484a4=this[_0x31e8('0x90')]['getSuggestionCallback'](_0x31e8('0x3b'),_0x2c6996,_0x31e8('0xd5'));this[_0x31e8('0x6f')](()=>_0x5484a4([_0x50835a],_0x2e169f,_0x3df981));}});for(const _0x26b2e0 of _0x36ff32){let _0x35fb72=null,_0x4eb064=_0x26b2e0['start'],_0xb858ef=_0x26b2e0[_0x31e8('0x2e')];for(const {suggestion:_0x941cf0,meta:_0x2d6ba8}of this[_0x31e8('0x72')](_0x26b2e0,_0x31e8('0x3b'))){if(!_0x2d6ba8[_0x31e8('0xc5')])continue;if(_0x941cf0[_0x31e8('0xc')]!=_0x2c6996)continue;if(!Ut(_0x941cf0,_0x3df981))continue;const _0x3672f0=_0x941cf0[_0x31e8('0xde')]();if(_0x3672f0[_0x31e8('0xe8')](_0x26b2e0,!0x0))return null;_0x4eb064=_0x4eb064[_0x31e8('0x104')](_0x3672f0[_0x31e8('0x41')])?_0x4eb064:_0x3672f0[_0x31e8('0x41')],_0xb858ef=_0xb858ef[_0x31e8('0xfa')](_0x3672f0[_0x31e8('0x2e')])?_0xb858ef:_0x3672f0[_0x31e8('0x2e')],_0x35fb72?_0x3672f0[_0x31e8('0x41')][_0x31e8('0x104')](_0x35fb72[_0x31e8('0xde')]()[_0x31e8('0x41')])?(_0x35fb72[_0x31e8('0xc3')](),_0x35fb72=_0x941cf0):_0x941cf0['removeMarkers']():_0x35fb72=_0x941cf0;}const _0x44d908=this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x4eb064,_0xb858ef);if(_0x35fb72)this['_setSuggestionRange'](_0x35fb72,_0x44d908);else{const _0x129e4a=_0x2d4264(),_0x3b6a4b=_0x2e61a7['id'];this[_0x31e8('0xe6')]({'id':_0x129e4a,'type':'formatInline:'+_0x2c6996,'data':_0x2e169f,'createdAt':new Date(),'authorId':_0x3b6a4b,'attributes':_0x3df981}),this[_0x31e8('0xc9')](_0x31e8('0x8e')+_0x2c6996,_0x129e4a,_0x3b6a4b,_0x44d908);}}return null;}[_0x31e8('0xa5')](_0x3d7e12,_0x547d53,_0x32ef6c=[],_0x4b99d6=null,_0x32a68f={}){_0x547d53['formatGroupId']||(_0x547d53['formatGroupId']=_0x547d53[_0x31e8('0x8f')]),_0x547d53['multipleBlocks']=_0x3d7e12['is']('range'),_0x4b99d6=_0x4b99d6||$t(_0x547d53);const _0x113344=_0x32ef6c[_0x31e8('0x66')](_0x3f0ecb=>Rt(_0x3f0ecb,this[_0x31e8('0x4b')])),_0xf1aa9e=_0x3d7e12['is']('range')?_0x3d7e12:Rt(_0x3d7e12,this['_model']);if(_0x31e8('0x69')===this['_trackFormatChanges']){const _0x11fba6=this[_0x31e8('0x90')][_0x31e8('0x73')](_0x31e8('0x2a'),_0x4b99d6,_0x31e8('0xd5'));return this[_0x31e8('0x6f')](()=>_0x11fba6([_0xf1aa9e],_0x547d53,_0x32a68f)),null;}_0x113344[_0x31e8('0x6c')](_0xf1aa9e);let _0x387122=!0x0;for(const _0x1367f7 of _0x113344)if(!this[_0x31e8('0x2c')](_0x1367f7)){_0x387122=!0x1;break;}if(_0x387122&&_0x31e8('0x12e')!==this[_0x31e8('0x64')]){const _0x347440=this[_0x31e8('0x90')][_0x31e8('0x73')](_0x31e8('0x2a'),_0x4b99d6,_0x31e8('0xd5'));return this[_0x31e8('0x6f')](()=>_0x347440([_0xf1aa9e],_0x547d53,_0x32a68f)),null;}let _0x1bfcc0=null,_0x297b94=_0xf1aa9e[_0x31e8('0x41')],_0x596a3a=_0xf1aa9e[_0x31e8('0x2e')];for(const {suggestion:_0xc1e64d,meta:_0xd7ed11}of this['_findSuggestions'](_0xf1aa9e,_0x31e8('0x2a'))){if(!_0xd7ed11[_0x31e8('0xc5')])continue;if(_0xd7ed11[_0x31e8('0x4a')]||_0xd7ed11['containsRangeInObject']||_0xd7ed11[_0x31e8('0x6')])continue;if(_0xc1e64d['data'][_0x31e8('0x67')]!=_0x547d53['formatGroupId'])continue;if(!Ut(_0xc1e64d,_0x32a68f))continue;const _0x3816ce=_0xc1e64d[_0x31e8('0xde')]();if(_0xc1e64d[_0x31e8('0xc')]==_0x4b99d6){if(_0x3816ce['containsRange'](_0xf1aa9e,!0x0))return null;_0x297b94=_0x297b94[_0x31e8('0x104')](_0x3816ce[_0x31e8('0x41')])?_0x297b94:_0x3816ce[_0x31e8('0x41')],_0x596a3a=_0x596a3a[_0x31e8('0xfa')](_0x3816ce[_0x31e8('0x2e')])?_0x596a3a:_0x3816ce[_0x31e8('0x2e')],_0x1bfcc0?_0x3816ce['start'][_0x31e8('0x104')](_0x1bfcc0[_0x31e8('0xde')]()[_0x31e8('0x41')])?(_0x1bfcc0['removeMarkers'](),_0x1bfcc0=_0xc1e64d):_0xc1e64d[_0x31e8('0xc3')]():_0x1bfcc0=_0xc1e64d;}else{const _0x1b4d64=_0xf1aa9e[_0x31e8('0xa')](_0x3816ce);this[_0x31e8('0x2b')](_0xc1e64d,_0x1b4d64);}}const _0xd64089=this[_0x31e8('0x25')][_0x31e8('0xef')][_0x31e8('0x89')](_0x31e8('0x7f'))['me'],_0x432e12=_0x2d4264(),_0x1ccd12=_0xd64089['id'];if(_0x1bfcc0)return this[_0x31e8('0x136')](_0x1bfcc0,this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x297b94,_0x596a3a)),_0x1bfcc0;{const _0x534894=this[_0x31e8('0xe6')]({'id':_0x432e12,'type':'formatBlock:'+_0x4b99d6,'data':_0x547d53,'createdAt':new Date(),'authorId':_0x1ccd12,'attributes':_0x32a68f});return this['_addSuggestionMarker'](_0x31e8('0x88')+_0x4b99d6,_0x432e12,_0x1ccd12,this['_model']['createRange'](_0x297b94,_0x596a3a)),_0x534894;}}[_0x31e8('0x93')](_0x219a66,_0x1ea8d5,_0x5ac0fc=[],_0x340d11=null,_0x10cb89={}){_0x1ea8d5[_0x31e8('0x67')]||(_0x1ea8d5[_0x31e8('0x67')]=_0x1ea8d5[_0x31e8('0x8f')]);const _0x30133b=_0x219a66[0x0];_0x1ea8d5[_0x31e8('0x130')]=_0x30133b['is'](_0x31e8('0x1c')),_0x340d11=_0x340d11||$t(_0x1ea8d5);const _0x366c4b=_0x5ac0fc['map'](_0x1c2dc7=>Rt(_0x1c2dc7,this[_0x31e8('0x4b')])),_0x241865=_0x30133b['is']('range')?_0x219a66:_0x219a66['map'](_0xf2d398=>Rt(_0xf2d398,this['_model']));if(_0x31e8('0x69')===this[_0x31e8('0x64')]){const _0x4e3422=this['_suggestionFactory'][_0x31e8('0x73')]('formatBlock',_0x340d11,'accept');return this['forceDefaultExecution'](()=>_0x4e3422(_0x241865,_0x1ea8d5,_0x10cb89)),null;}_0x366c4b['push'](..._0x241865);let _0x383d0d=!0x0;for(const _0x281a26 of _0x366c4b)if(!this[_0x31e8('0x2c')](_0x281a26)){_0x383d0d=!0x1;break;}if(_0x383d0d&&_0x31e8('0x12e')!==this['_trackFormatChanges']){const _0x54cd9d=this[_0x31e8('0x90')][_0x31e8('0x73')]('formatBlock',_0x340d11,_0x31e8('0xd5'));return this['forceDefaultExecution'](()=>_0x54cd9d(_0x241865,_0x1ea8d5,_0x10cb89)),null;}const _0x2909e4=this[_0x31e8('0x25')][_0x31e8('0xef')][_0x31e8('0x89')]('Users')['me'];for(const _0x1a9b09 of this[_0x31e8('0x10')]()){if(_0x1a9b09[_0x31e8('0x81')]['id']!=_0x2909e4['id'])continue;if(_0x31e8('0x2a')!=_0x1a9b09[_0x31e8('0xff')]||_0x1a9b09[_0x31e8('0x11')][_0x31e8('0x67')]!=_0x1ea8d5[_0x31e8('0x67')])continue;if(!Ut(_0x1a9b09,_0x10cb89))continue;const _0x2db2c3=_0x1a9b09[_0x31e8('0xc')]==_0x340d11;for(let _0x5f4cfc=0x0;_0x5f4cfc<_0x241865[_0x31e8('0x108')];_0x5f4cfc++){const _0x1729e9=_0x241865[_0x5f4cfc];for(const _0x3d7eac of _0x1a9b09[_0x31e8('0xe3')]()){const _0x17ce95=_0x3d7eac[_0x31e8('0x75')]();if(_0x1729e9[_0x31e8('0x132')](_0x17ce95)){_0x2db2c3?(_0x241865[_0x31e8('0x71')](_0x5f4cfc,0x1),_0x5f4cfc--):_0x1a9b09[_0x31e8('0xf3')](_0x3d7eac[_0x31e8('0x5c')]);break;}}}}if(0x0==_0x241865[_0x31e8('0x108')])return null;const _0x560eda=this[_0x31e8('0x90')]['getSuggestionCallback'](_0x31e8('0x2a'),_0x340d11,'join');for(const _0x582351 of this['getSuggestions']())if(_0x582351[_0x31e8('0x81')]['id']==_0x2909e4['id']&&_0x31e8('0x2a')==_0x582351[_0x31e8('0xff')]&&_0x582351[_0x31e8('0x11')]['formatGroupId']==_0x1ea8d5[_0x31e8('0x67')]&&_0x582351['subType']==_0x340d11&&Ut(_0x582351,_0x10cb89)&&(_0x560eda(_0x582351[_0x31e8('0x3c')](),_0x241865)||_0x560eda(_0x241865,_0x582351[_0x31e8('0x3c')]()))){for(const _0x4b8320 of _0x241865)_0x582351[_0x31e8('0x29')](_0x4b8320);return _0x582351;}const _0x4da8df=_0x2d4264(),_0x3ae8ab=_0x2909e4['id'],_0x1b5ec9=_0x31e8('0x88')+_0x340d11,_0x4672a4=this[_0x31e8('0xe6')]({'id':_0x4da8df,'type':_0x1b5ec9,'data':_0x1ea8d5,'createdAt':new Date(),'authorId':_0x3ae8ab,'attributes':_0x10cb89});for(const _0x82c04 of _0x241865)this['_addSuggestionMarker'](_0x1b5ec9,_0x4da8df,_0x3ae8ab,_0x82c04,_0xeaea29[_0x31e8('0x13a')]());return _0x4672a4;}['markDeletion'](_0x4f5ea0,_0x55d5e9=null,_0x4c894b={}){if(_0x4f5ea0[_0x31e8('0xeb')])return null;const _0xee3ea9=this[_0x31e8('0x25')][_0x31e8('0xef')][_0x31e8('0x89')](_0x31e8('0x7f'))['me'],_0x51e804=new _0x4f747d(_0x4f5ea0['start'],_0x4f5ea0[_0x31e8('0x2e')]);for(const {suggestion:_0x1209de,meta:_0x3beacb}of this[_0x31e8('0x72')](_0x51e804,_0x31e8('0x10a')))if(_0x3beacb[_0x31e8('0xc5')]&&!_0x3beacb[_0x31e8('0x4a')]){if(_0x1209de['isMultiRange']){const _0x3482c1=_0x1209de[_0x31e8('0x3c')]()['filter'](_0x4ef522=>_0x31e8('0xf5')!=_0x4ef522[_0x31e8('0x95')]['rootName']);_0x3482c1['every'](_0x4bc9c1=>_0x51e804[_0x31e8('0xe8')](_0x4bc9c1,!0x0))&&_0x1209de['discard']();if(_0x3482c1['some'](_0x51b1c8=>_0x51b1c8[_0x31e8('0xe8')](_0x51e804,!0x0))){const _0x1a47ff=this[_0x31e8('0x90')][_0x31e8('0x73')](_0x31e8('0x15'),_0x55d5e9,_0x31e8('0xd5'));return this[_0x31e8('0x6f')](()=>_0x1a47ff([_0x51e804],null,_0x4c894b)),null;}}else{const _0x628cd5=_0x51e804[_0x31e8('0xa')](_0x1209de[_0x31e8('0xde')]());null!==_0x628cd5&&_0x1209de['_onDiscard']([_0x628cd5],null,_0x4c894b);}}if(_0x51e804[_0x31e8('0x31')](),_0x51e804[_0x31e8('0xeb')]||_0x31e8('0xf5')==_0x51e804[_0x31e8('0x95')][_0x31e8('0xd1')])return null;let _0x2bc628=null,_0x1382bc=_0x51e804[_0x31e8('0x41')],_0x38bd7a=_0x51e804[_0x31e8('0x2e')];const _0x585bba=this[_0x31e8('0x72')](_0x51e804,'deletion');for(const {suggestion:_0x4f2bfb,meta:_0x26e748}of _0x585bba){const _0x3f3958=this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x1382bc,_0x38bd7a);if(_0x26e748[_0x31e8('0xc5')]&&(this['_mergeNestedSuggestions']||!_0x26e748[_0x31e8('0xb2')]&&!_0x26e748[_0x31e8('0x6')])){if(_0x4f2bfb[_0x31e8('0xbc')]){if(!Ut(_0x4f2bfb,_0x4c894b))continue;let _0x539d61=!0x0;for(const _0x4f40d4 of _0x4f2bfb['getRanges']()){if(_0x4f40d4[_0x31e8('0xe8')](_0x3f3958,!0x0))return _0x4f2bfb;_0x3f3958[_0x31e8('0xe8')](_0x4f40d4)||(_0x539d61=!0x1);}_0x539d61&&_0x4f2bfb[_0x31e8('0x53')]();}else{const _0x3b1393=_0x4f2bfb[_0x31e8('0xde')]();if(_0x3b1393[_0x31e8('0xe8')](_0x3f3958,!0x0))return _0x4f2bfb;if(!Ut(_0x4f2bfb,_0x4c894b)){_0x3f3958[_0x31e8('0xe8')](_0x3b1393)?_0x4f2bfb[_0x31e8('0xc3')]():_0x3b1393[_0x31e8('0x125')](_0x1382bc)?_0x1382bc=_0x3b1393['end']:_0x3b1393[_0x31e8('0x125')](_0x38bd7a)&&(_0x38bd7a=_0x3b1393[_0x31e8('0x41')]);continue;}_0x1382bc=_0x1382bc[_0x31e8('0x104')](_0x3b1393[_0x31e8('0x41')])?_0x1382bc:_0x3b1393[_0x31e8('0x41')],_0x38bd7a=_0x38bd7a[_0x31e8('0xfa')](_0x3b1393[_0x31e8('0x2e')])?_0x38bd7a:_0x3b1393['end'],_0x4c894b=Object['assign']({},_0x4f2bfb[_0x31e8('0x28')]),_0x2bc628?_0x3b1393[_0x31e8('0x41')]['isBefore'](_0x2bc628[_0x31e8('0xde')]()[_0x31e8('0x41')])?(_0x2bc628['removeMarkers'](),_0x2bc628=_0x4f2bfb):_0x4f2bfb['removeMarkers']():_0x2bc628=_0x4f2bfb;}}}if(_0x2bc628)return this['_setSuggestionRange'](_0x2bc628,this['_model'][_0x31e8('0x9f')](_0x1382bc,_0x38bd7a)),_0x2bc628;{const _0x1994ad=_0x2d4264(),_0x209bc4=this[_0x31e8('0x4b')]['createRange'](_0x1382bc,_0x38bd7a),_0x58df1e=_0xee3ea9['id'],_0x54db35=_0x55d5e9?_0x31e8('0x105')+_0x55d5e9:_0x31e8('0x15'),_0x484077=this[_0x31e8('0xe6')]({'id':_0x1994ad,'type':_0x54db35,'createdAt':new Date(),'authorId':_0x58df1e,'attributes':_0x4c894b});return this['_addSuggestionMarker'](_0x54db35,_0x1994ad,_0x58df1e,_0x209bc4),_0x484077;}}[_0x31e8('0x30')](_0x18fa10,_0x1d0d6d=_0x31e8('0x123'),_0x432b99={}){const _0x32e95b=this[_0x31e8('0x25')][_0x31e8('0xef')][_0x31e8('0x89')](_0x31e8('0x7f'))['me'],_0x4590e2=_0x18fa10[_0x31e8('0x66')](_0x471d92=>new _0x4f747d(_0x471d92[_0x31e8('0x41')],_0x471d92[_0x31e8('0x2e')])),_0x3d0a09=new Set();for(const {suggestion:_0x3593d8,meta:_0x1b3244}of this[_0x31e8('0x72')](_0x4590e2,_0x31e8('0x10a')))_0x1b3244[_0x31e8('0xc5')]&&!_0x1b3244[_0x31e8('0x4a')]&&_0x3d0a09[_0x31e8('0xfd')](_0x3593d8);for(const _0x186419 of _0x3d0a09)if(_0x186419['isMultiRange']){const _0x1d7376=_0x186419[_0x31e8('0x3c')]();(!_0x186419[_0x31e8('0x28')]||!_0x186419[_0x31e8('0x28')][_0x31e8('0x2')])&&(_0x1d7376[_0x31e8('0x32')](_0x2b2e7c=>_0x4590e2[_0x31e8('0x4f')](_0x78e41=>_0x78e41[_0x31e8('0xe8')](_0x2b2e7c,!0x0)))&&_0x186419[_0x31e8('0x53')]());if(_0x4590e2[_0x31e8('0x32')](_0x5cea17=>_0x1d7376[_0x31e8('0x4f')](_0x2e5f38=>_0x2e5f38[_0x31e8('0xe8')](_0x5cea17,!0x0)))){const _0x141d00=this['_suggestionFactory'][_0x31e8('0x73')](_0x31e8('0x15'),_0x1d0d6d,_0x31e8('0xd5'));return this[_0x31e8('0x6f')](()=>_0x141d00(_0x18fa10,null,_0x432b99)),null;}}else{const _0x1b6923=_0x186419[_0x31e8('0xde')]();_0x4590e2[_0x31e8('0x4f')](_0x300b58=>_0x300b58[_0x31e8('0xe8')](_0x1b6923,!0x0))&&_0x186419[_0x31e8('0x53')]();if(_0x4590e2[_0x31e8('0x32')](_0x4617d2=>_0x1b6923[_0x31e8('0xe8')](_0x4617d2,!0x0))){const _0x3a5fba=this[_0x31e8('0x90')]['getSuggestionCallback'](_0x31e8('0x15'),_0x1d0d6d,_0x31e8('0xd5'));return this['forceDefaultExecution'](()=>_0x3a5fba(_0x4590e2,null,_0x432b99)),null;}}const _0x5b1d61=this['_suggestionFactory'][_0x31e8('0x73')](_0x31e8('0x15'),_0x1d0d6d,_0x31e8('0x8a'));let _0x96b9e3=null;for(const _0x4a97ee of this[_0x31e8('0x10')]())if(_0x4a97ee[_0x31e8('0x81')]['id']==_0x32e95b['id']&&_0x4a97ee[_0x31e8('0x77')]&&'deletion'==_0x4a97ee[_0x31e8('0xff')]&&_0x4a97ee[_0x31e8('0xc')]==_0x1d0d6d&&Ut(_0x4a97ee,_0x432b99)&&(_0x5b1d61(_0x4a97ee[_0x31e8('0x3c')](),_0x4590e2)||_0x5b1d61(_0x4590e2,_0x4a97ee[_0x31e8('0x3c')]()))){if(_0x96b9e3){if(_0x4a97ee[_0x31e8('0x80')]&&_0x4a97ee['commentThread'][_0x31e8('0x108')])continue;for(const _0x126776 of _0x4a97ee[_0x31e8('0x3c')]())_0x96b9e3[_0x31e8('0x12b')](_0x126776)||_0x96b9e3[_0x31e8('0x29')](_0x126776);_0x4a97ee[_0x31e8('0xc3')]();}else{_0x96b9e3=_0x4a97ee;for(const _0x42839e of _0x4590e2)_0x4a97ee['isIntersectingWithRange'](_0x42839e)||_0x4a97ee['addRange'](_0x42839e);}}if(_0x96b9e3)return _0x96b9e3;_0x3d0a09[_0x31e8('0xae')]();for(const {suggestion:_0x16c9f3,meta:_0x228e1d}of this[_0x31e8('0x72')](_0x4590e2,_0x31e8('0x15')))_0x228e1d[_0x31e8('0xc5')]&&(this[_0x31e8('0x24')]||!_0x228e1d['containsRangeInObject']&&!_0x228e1d['isInsideObject'])&&Ut(_0x16c9f3,_0x432b99)&&_0x3d0a09[_0x31e8('0xfd')](_0x16c9f3);for(const _0x36014f of _0x3d0a09){const _0x4de702=_0x36014f['getRanges']();if(!_0x432b99||!_0x432b99['skipNestingCheck']){if(_0x4590e2[_0x31e8('0x32')](_0x19fa47=>_0x4de702[_0x31e8('0x4f')](_0x5beefb=>_0x5beefb[_0x31e8('0xe8')](_0x19fa47,!0x0))))return _0x36014f;}(!_0x36014f[_0x31e8('0x28')]||!_0x36014f[_0x31e8('0x28')][_0x31e8('0x2')])&&(_0x4de702[_0x31e8('0x32')](_0x563aab=>_0x4590e2['some'](_0x23ece5=>_0x23ece5[_0x31e8('0xe8')](_0x563aab,!0x0)))&&_0x36014f[_0x31e8('0x53')]());}const _0xbdfdd8=_0x2d4264(),_0x5e1bdc=_0x32e95b['id'],_0x1f927e=_0x31e8('0x105')+_0x1d0d6d,_0x41a2b4=this[_0x31e8('0xe6')]({'id':_0xbdfdd8,'type':_0x1f927e,'createdAt':new Date(),'authorId':_0x5e1bdc,'attributes':_0x432b99});for(const _0x397b11 of _0x4590e2)_0x397b11[_0x31e8('0x31')](),_0x397b11[_0x31e8('0xeb')]||_0x31e8('0xf5')==_0x397b11[_0x31e8('0x95')][_0x31e8('0xd1')]||this[_0x31e8('0xc9')](_0x1f927e,_0xbdfdd8,_0x5e1bdc,_0x397b11,_0xeaea29[_0x31e8('0x13a')]());return _0x41a2b4;}[_0x31e8('0x136')](_0x26199d,_0x5e1d61){const _0x482503=_0x26199d[_0x31e8('0x54')]();this[_0x31e8('0x4b')][_0x31e8('0x74')](_0x240bd3=>{_0x240bd3[_0x31e8('0x137')](_0x482503,{'range':_0x5e1d61});});}[_0x31e8('0x38')](_0x1bbb4c){const _0xc38e91=_0x1bbb4c['id'],_0x3a4338=this[_0x31e8('0x25')][_0x31e8('0xf2')][_0x31e8('0x89')]('collaboration.channelId');this['_commentsRepository'][_0x31e8('0x99')](_0xc38e91)||this[_0x31e8('0x7c')][_0x31e8('0x12f')]({'channelId':_0x3a4338,'threadId':_0xc38e91,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x545a56=this['_commentsRepository']['getCommentThread'](_0xc38e91);_0x545a56[_0x31e8('0xb5')]('isRemovable'),_0x545a56['isRemovable']=!0x1,_0x1bbb4c[_0x31e8('0x80')]=_0x545a56;}[_0x31e8('0x126')](_0x46956f,_0x13a040,_0x3af134,_0x8ed34){if(_0x46956f[_0x31e8('0xff')]!=_0x13a040||_0x46956f[_0x31e8('0xc')]!=_0x3af134||_0x46956f[_0x31e8('0x10c')]['id']!=_0x8ed34)throw this['editor'][_0x31e8('0x86')]('track-changes-suggestion-data-mismatch'),new _0x3ed594('track-changes-suggestion-data-mismatch',this);}[_0x31e8('0x2b')](_0x4525e7,_0x545222){const _0x5673fd=_0x4525e7[_0x31e8('0xde')]();if(_0x545222[_0x31e8('0x132')](_0x5673fd))_0x4525e7['removeMarkers']();else{if(_0x5673fd[_0x31e8('0xe8')](_0x545222)){const _0x2cd0d3=this['_model'][_0x31e8('0xc1')](_0x545222[_0x31e8('0x41')]['nodeBefore'],_0x31e8('0x2e'));this[_0x31e8('0x136')](_0x4525e7,this['_model']['createRange'](_0x5673fd[_0x31e8('0x41')],_0x2cd0d3));const _0x5ec4eb=_0x2d4264(),_0x4995c2=_0x4525e7['creator']['id'],_0x1c594d=_0x4525e7[_0x31e8('0xff')]+':'+_0x4525e7['subType'];this[_0x31e8('0xe6')]({'id':_0x5ec4eb,'type':_0x1c594d,'createdAt':new Date(),'authorId':_0x4995c2,'data':_0x4525e7['data'],'attributes':_0x4525e7[_0x31e8('0x28')]});const _0x5d79a8=this[_0x31e8('0x4b')][_0x31e8('0xc1')](_0x545222[_0x31e8('0x2e')][_0x31e8('0x3f')],_0x31e8('0x43')),_0xe97d34=this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x5d79a8,_0x5673fd['end']);this[_0x31e8('0xc9')](_0x1c594d,_0x5ec4eb,_0x4995c2,_0xe97d34);}else{if(_0x5673fd['containsPosition'](_0x545222[_0x31e8('0x41')])){const _0x49f7cc=this[_0x31e8('0x4b')][_0x31e8('0xc1')](_0x545222['start'][_0x31e8('0xe9')],_0x31e8('0x2e'));this[_0x31e8('0x136')](_0x4525e7,this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x5673fd[_0x31e8('0x41')],_0x49f7cc));}else{const _0x4e3c98=this[_0x31e8('0x4b')]['createPositionAt'](_0x545222['end'][_0x31e8('0x3f')],_0x31e8('0x43'));this[_0x31e8('0x136')](_0x4525e7,this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x4e3c98,_0x5673fd['end']));}}}}[_0x31e8('0x2c')](_0x38ac43){for(const {suggestion:_0x26e980,meta:_0x2753c6}of this['_findSuggestions'](_0x38ac43,_0x31e8('0x10a'))){if(!_0x2753c6[_0x31e8('0xc5')])continue;const _0x29b5ce=_0x26e980[_0x31e8('0x3c')]();for(const _0x2b79e8 of _0x29b5ce)if(!_0x38ac43['getDifference'](_0x2b79e8)['length'])return!0x0;}return!0x1;}[_0x31e8('0xdc')](_0x2c05b0){const _0x35b94b=this[_0x31e8('0x25')]['plugins']['get']('Users')['getUser'](_0x2c05b0);if(!_0x35b94b)throw new _0x3ed594('track-changes-user-not-found',this);return _0x35b94b;}[_0x31e8('0xbd')](_0x1be4bb){const _0x216c85=this[_0x31e8('0x25')][_0x31e8('0xef')]['get'](_0x31e8('0x7f')),_0x425964=_0x1a04cf(_0x31e8('0xe5')+_0x1be4bb),_0x52b39f=_0x216c85[_0x31e8('0xa1')](_0x425964);return _0x52b39f||_0x216c85[_0x31e8('0x121')]({'id':_0x425964,'name':_0x1be4bb});}[_0x31e8('0x94')](_0x2678a0,_0x3aba44,_0x35d1e2,_0x29f2a8,_0x3d9367){const _0x45fd4d=this[_0x31e8('0xdc')](_0x29f2a8),_0x47ef0b=this[_0x31e8('0x90')][_0x31e8('0xda')](_0x2678a0,_0x3aba44,_0x35d1e2,_0x45fd4d,_0x3d9367,_0x56630d=>this[_0x31e8('0xd6')](_0x35d1e2,{'attributes':_0x56630d}));return this[_0x31e8('0xd')](_0x47ef0b,_0x31e8('0xd5'),()=>{this[_0x31e8('0xd6')](_0x35d1e2,{'state':_0x31e8('0xc8')});},{'priority':_0x31e8('0x9b')}),this[_0x31e8('0xd')](_0x47ef0b,_0x31e8('0x53'),()=>{this['_updateSuggestionData'](_0x35d1e2,{'state':_0x31e8('0xa7')});},{'priority':_0x31e8('0x9b')}),this[_0x31e8('0x20')][_0x31e8('0xf8')](_0x35d1e2,_0x47ef0b),this[_0x31e8('0xa8')][_0x31e8('0xf8')](_0x47ef0b,_0x31e8('0xee')),_0x47ef0b;}['_splitMarkerName'](_0x3e2ac3){const _0x3244e5=_0x3e2ac3['split'](':');return{'group':_0x3244e5[0x0],'type':_0x3244e5[0x1],'subType':_0x3244e5[_0x31e8('0x108')]>=0x5?_0x3244e5[0x2]:null,'id':_0x3244e5[_0x31e8('0x108')]<0x5?_0x3244e5[0x2]:_0x3244e5[0x3],'authorId':_0x3244e5[_0x31e8('0x108')]<0x5?_0x3244e5[0x3]:_0x3244e5[0x4],'markerCount':0x6==_0x3244e5[_0x31e8('0x108')]?_0x3244e5[0x5]:null};}[_0x31e8('0x11c')](_0xdf57bb,_0x2d034d,_0x23ed70){const _0x58cdec=_0xdf57bb['getFirstRange'](),_0x1d03c8=_0x58cdec[_0x31e8('0x41')],_0x4657f4=_0x58cdec[_0x31e8('0x2e')];this['_setSuggestionRange'](_0xdf57bb,this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x1d03c8,_0x2d034d));const _0x1705bc=_0x2d4264(),_0x296ef7=_0xdf57bb['creator']['id'],_0x490dc4=_0xdf57bb[_0x31e8('0xff')]+(_0xdf57bb[_0x31e8('0xc')]?':'+_0xdf57bb[_0x31e8('0xc')]:'');this['_setSuggestionData']({'id':_0x1705bc,'type':_0x490dc4,'createdAt':new Date(),'authorId':_0x296ef7,'originalSuggestionId':_0xdf57bb['id'],'attributes':_0xdf57bb[_0x31e8('0x28')],'data':_0xdf57bb['data']}),_0x31e8('0x2a')==_0xdf57bb[_0x31e8('0xff')]&&(_0x23ed70=this[_0x31e8('0x4b')]['createPositionBefore'](_0x23ed70[_0x31e8('0x3f')])),this[_0x31e8('0xc9')](_0x490dc4,_0x1705bc,_0x296ef7,this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x23ed70,_0x4657f4));}[_0x31e8('0x72')](_0x5183dc,_0x38a672=null){const _0x37ed9d=[],_0x283fb8=this['editor'][_0x31e8('0xef')][_0x31e8('0x89')]('Users')['me'];Array[_0x31e8('0x122')](_0x5183dc)||(_0x5183dc=[_0x5183dc]);for(const _0x538a4a of this['getSuggestions']()){if(!_0x538a4a[_0x31e8('0x77')])continue;if(_0x38a672&&_0x538a4a[_0x31e8('0xff')]!=_0x38a672)continue;let _0x7eb6b0=!0x1;for(const _0x1075b2 of _0x538a4a[_0x31e8('0x3c')]()){for(const _0x2c2c6d of _0x5183dc){const _0x3e90ff=_0x2c2c6d['start'][_0x31e8('0x132')](_0x1075b2['end'])||_0x2c2c6d[_0x31e8('0x2e')][_0x31e8('0x132')](_0x1075b2[_0x31e8('0x41')]);if(_0x3e90ff||_0x2c2c6d[_0x31e8('0xa')](_0x1075b2)){const _0x1f8506=_0x2c2c6d[_0x31e8('0xe8')](_0x1075b2)&&Bt(this[_0x31e8('0x4b')][_0x31e8('0x8b')],_0x1075b2['start'],_0x2c2c6d),_0x446205=_0x1075b2['containsRange'](_0x2c2c6d)&&Bt(this[_0x31e8('0x4b')][_0x31e8('0x8b')],_0x2c2c6d['start'],_0x1075b2);_0x37ed9d[_0x31e8('0x6c')]({'suggestion':_0x538a4a,'meta':{'isOwn':_0x283fb8==_0x538a4a[_0x31e8('0x81')],'isNextTo':_0x3e90ff,'isInsideObject':_0x1f8506,'containsRangeInObject':_0x446205}}),_0x7eb6b0=!0x0;break;}}if(_0x7eb6b0)break;}}return _0x37ed9d;}['_addSuggestionMarker'](_0x40e801,_0x8dcd43,_0x482824,_0x284b20,_0x43eafa){this[_0x31e8('0x4b')][_0x31e8('0x74')](_0x512c70=>{let _0x19db67=_0x31e8('0x92')+_0x40e801+':'+_0x8dcd43+':'+_0x482824;_0x43eafa&&(_0x19db67=_0x19db67+':'+_0x43eafa),_0x512c70[_0x31e8('0x96')](_0x19db67,{'range':_0x284b20,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x31e8('0x7d')](_0x171649){const _0x52d545=_0x171649[_0x31e8('0x116')],_0x2b47f9=_0x171649['next'];_0x171649[_0x31e8('0x116')]=null,null!=_0x52d545&&(_0x52d545[_0x31e8('0x112')]=null),_0x171649[_0x31e8('0x112')]=null,null!=_0x2b47f9&&(_0x2b47f9['previous']=null),'ready'==this[_0x31e8('0xa8')][_0x31e8('0x89')](_0x171649)&&(this[_0x31e8('0xa8')]['set'](_0x171649,_0x31e8('0x91')),this['fire'](_0x31e8('0xcd'),_0x171649,_0x52d545,_0x2b47f9));}['_setSuggestionData'](_0x27bd4f){const _0x44e78a=_0x27bd4f['id'],_0x41109d=this[_0x31e8('0xb4')](_0x27bd4f);if(this['_adapter']&&this[_0x31e8('0xbf')][_0x31e8('0xb7')]){const _0x454dc8=this[_0x31e8('0x25')][_0x31e8('0xef')]['get']('PendingActions'),_0x5e5c93=_0x41109d[_0x31e8('0x134')],_0x3fecc1=_0x41109d[_0x31e8('0xc')]?_0x41109d[_0x31e8('0xff')]+':'+_0x41109d['subType']:_0x41109d[_0x31e8('0xff')],_0x529ac2=this[_0x31e8('0x25')]['locale'],_0x3828b6=_0x454dc8['add'](_0x56f861(_0x529ac2,_0x31e8('0x1e'))),_0x1871f3={'id':_0x44e78a,'type':_0x3fecc1,'hasComments':_0x5e5c93,'data':_0x27bd4f[_0x31e8('0x11')]||null,'originalSuggestionId':_0x27bd4f[_0x31e8('0xe1')]||null,'attributes':_0x41109d['attributes']};this['_adapter']['addSuggestion'](_0x1871f3)['then'](_0x5d738f=>{_0x41109d[_0x31e8('0xc4')]=!0x0,_0x454dc8['remove'](_0x3828b6),_0x5d738f&&_0x5d738f['createdAt']&&(this[_0x31e8('0x20')][_0x31e8('0x89')](_0x44e78a)['createdAt']=_0x5d738f['createdAt']);})[_0x31e8('0x18')](_0x107087=>{throw _0x3dc91b(_0x31e8('0x12d')),this[_0x31e8('0x25')][_0x31e8('0xb6')][_0x31e8('0xc0')]({'isUndoable':!0x1},()=>{_0x41109d['discard']();}),_0x41109d['stopListening'](),this['_suggestions']['delete'](_0x41109d['id']),this[_0x31e8('0xa8')][_0x31e8('0x6d')](_0x41109d),_0x107087;});}return _0x41109d;}[_0x31e8('0xd6')](_0x28993d,_0x39caaf){const _0x384290=this[_0x31e8('0x25')][_0x31e8('0xef')]['get'](_0x31e8('0xf9')),_0x177ec5=this[_0x31e8('0x56')](_0x28993d);if(this[_0x31e8('0xbf')]&&this[_0x31e8('0xbf')][_0x31e8('0xb')]){if(_0x177ec5[_0x31e8('0xc4')]){const _0x173dd0=_0x384290['add'](_0x56f861(this[_0x31e8('0x25')][_0x31e8('0x4')],'PENDING_ACTION_SUGGESTION'));this[_0x31e8('0xbf')][_0x31e8('0xb')](_0x28993d,_0x39caaf)[_0x31e8('0x7a')](()=>{_0x384290['remove'](_0x173dd0);});}else _0x177ec5['on'](_0x31e8('0x58'),()=>{this[_0x31e8('0xd6')](_0x28993d,_0x39caaf);});}}['_getSuggestionData'](_0x108693){if(!this[_0x31e8('0xbf')]||!this[_0x31e8('0xbf')][_0x31e8('0x56')])throw new _0x3ed594(_0x31e8('0x11f'),this);return this[_0x31e8('0xbf')]['getSuggestion'](_0x108693);}[_0x31e8('0x11d')](_0x208d86){const {id:_0xa6974b,type:_0x4560c3,subType:_0xbc73cd,authorId:_0xc94ee7}=this[_0x31e8('0x60')](_0x208d86),_0x1d2e6b=this[_0x31e8('0x20')][_0x31e8('0x89')](_0xa6974b)||this[_0x31e8('0x94')](_0x4560c3,_0xbc73cd,_0xa6974b,_0xc94ee7,{});switch(this[_0x31e8('0x126')](_0x1d2e6b,_0x4560c3,_0xbc73cd,_0xc94ee7),this[_0x31e8('0xa8')][_0x31e8('0x89')](_0x1d2e6b)){case _0x31e8('0xee'):this[_0x31e8('0x10f')](_0xa6974b)[_0x31e8('0x7a')](_0x3b582b=>{let _0x1099a1=Promise['resolve']();_0x3b582b[_0x31e8('0x134')]&&(_0x1099a1=this['_commentsRepository'][_0x31e8('0xb3')]({'channelId':this[_0x31e8('0x25')]['config'][_0x31e8('0x89')](_0x31e8('0x8c')),'threadId':_0xa6974b})),_0x1099a1[_0x31e8('0x7a')](()=>{this['addSuggestionData'](_0x3b582b)[_0x31e8('0xc4')]=!0x0;});}),this[_0x31e8('0xa8')][_0x31e8('0xf8')](_0x1d2e6b,_0x31e8('0x50'));break;case _0x31e8('0x91'):this[_0x31e8('0xd6')](_0xa6974b,{'state':_0x31e8('0x6e')});case _0x31e8('0x76'):this[_0x31e8('0xa8')][_0x31e8('0xf8')](_0x1d2e6b,'ready'),this[_0x31e8('0x102')](_0x31e8('0x100'),_0x1d2e6b);break;case'ready':this[_0x31e8('0x102')](_0x31e8('0x39'),_0x1d2e6b);}return _0x1d2e6b[_0x31e8('0x110')](_0x208d86),_0x1d2e6b;}['_refreshSuggestionsChain'](_0x3604a3){const _0x48d4fd=Array[_0x31e8('0x3e')](_0x3604a3)[_0x31e8('0x17')](_0x35ef55=>!_0x35ef55[_0x31e8('0xbc')]),_0x2eebe8=this[_0x31e8('0x10')]({'skipNotAttached':!0x0})['filter'](_0x4cf728=>!_0x4cf728['isMultiRange']),_0x4eb841=_0x2eebe8[_0x31e8('0x17')](_0x2a84bd=>!_0x3604a3['has'](_0x2a84bd)),_0x3c12df=new Map(_0x2eebe8[_0x31e8('0x66')](_0x554a46=>[_0x554a46,this['_suggestionFactory'][_0x31e8('0x73')](_0x554a46['type'],_0x554a46['subType'],_0x31e8('0x5a'))])),_0x412dce=new Map(_0x2eebe8['map'](_0x281b42=>[_0x281b42,_0x281b42['getFirstRange']()])),_0x2b73b9=new Set(),_0x158642=new Set();for(let _0x4e8986=0x0;_0x4e8986<_0x48d4fd[_0x31e8('0x108')];_0x4e8986++)_0x329a0b(_0x48d4fd[_0x4e8986],_0x48d4fd,_0x4e8986+0x1);for(let _0xaa7f9b=0x0;_0xaa7f9b<_0x48d4fd[_0x31e8('0x108')];_0xaa7f9b++)_0x329a0b(_0x48d4fd[_0xaa7f9b],_0x4eb841,0x0);for(let _0x4e6578=0x0;_0x4e6578<_0x48d4fd[_0x31e8('0x108')];_0x4e6578++){const _0x2a29e5=_0x48d4fd[_0x4e6578];!_0x158642[_0x31e8('0x0')](_0x2a29e5)&&_0x2a29e5[_0x31e8('0x116')]&&(_0x2a29e5[_0x31e8('0x116')][_0x31e8('0x112')]===_0x2a29e5&&(_0x2a29e5[_0x31e8('0x116')]['next']=null),_0x2a29e5[_0x31e8('0x116')]=null),!_0x2b73b9[_0x31e8('0x0')](_0x2a29e5)&&_0x2a29e5['next']&&(_0x2a29e5[_0x31e8('0x112')][_0x31e8('0x116')]===_0x2a29e5&&(_0x2a29e5[_0x31e8('0x112')][_0x31e8('0x116')]=null),_0x2a29e5['next']=null);}function _0x329a0b(_0x4e78c7,_0x193de2,_0x335c14){for(let _0x4a2aa3=_0x335c14;_0x4a2aa3<_0x193de2[_0x31e8('0x108')];_0x4a2aa3++){const _0x498405=_0xf17ba0(_0x4e78c7,_0x193de2[_0x4a2aa3]);_0x498405&&(_0x498405[0x0]['next']=_0x498405[0x1],_0x498405[0x1][_0x31e8('0x116')]=_0x498405[0x0],_0x2b73b9[_0x31e8('0xfd')](_0x498405[0x0]),_0x158642[_0x31e8('0xfd')](_0x498405[0x1]));}}function _0xf17ba0(_0x15fbb5,_0x24fa34){if(_0x15fbb5[_0x31e8('0x81')]['id']!==_0x24fa34[_0x31e8('0x81')]['id'])return null;const _0x54d2b2=_0x3c12df['get'](_0x15fbb5)(_0x15fbb5,_0x24fa34,_0x412dce[_0x31e8('0x89')](_0x15fbb5),_0x412dce[_0x31e8('0x89')](_0x24fa34));if(!_0x54d2b2)return null;return _0x3c12df[_0x31e8('0x89')](_0x24fa34)(_0x15fbb5,_0x24fa34,_0x412dce['get'](_0x15fbb5),_0x412dce['get'](_0x24fa34))?_0x54d2b2[0x1]['commentThread']&&_0x54d2b2[0x1][_0x31e8('0x80')][_0x31e8('0x108')]?null:_0x54d2b2:null;}}['_joinWithAdjacentSuggestions'](_0x26a48f){const _0x11118e=Array['from'](_0x26a48f),_0x3d880c=this[_0x31e8('0x10')]({'skipNotAttached':!0x0}),_0x4e1d72=_0x3d880c[_0x31e8('0x17')](_0x4e0dad=>!_0x26a48f[_0x31e8('0x0')](_0x4e0dad)),_0x1e7765=new Map(_0x11118e['map'](_0x4b708d=>[_0x4b708d,this[_0x31e8('0x90')][_0x31e8('0x73')](_0x4b708d[_0x31e8('0xff')],_0x4b708d[_0x31e8('0xc')],'join')])),_0x1ba030=new Map(_0x3d880c[_0x31e8('0x66')](_0x489da0=>[_0x489da0,_0x489da0[_0x31e8('0x3c')]()]));for(let _0x4b6ef3=0x0;_0x4b6ef3<_0x11118e['length'];_0x4b6ef3++){if(_0x57a9a3(this,_0x11118e[_0x4b6ef3],_0x11118e,_0x4b6ef3+0x1))return!0x0;}for(let _0x3d154a=0x0;_0x3d154a<_0x11118e[_0x31e8('0x108')];_0x3d154a++){if(_0x57a9a3(this,_0x11118e[_0x3d154a],_0x4e1d72,0x0))return!0x0;}return!0x1;function _0x57a9a3(_0x4f79cc,_0x29c1a9,_0x3c67e0,_0x461f3c){for(let _0x10f072=_0x461f3c;_0x10f072<_0x3c67e0['length'];_0x10f072++){const _0x4abdc1=_0x3c67e0[_0x10f072];if(_0x4abdc1['type']!==_0x29c1a9['type']||_0x4abdc1[_0x31e8('0x81')]['id']!==_0x29c1a9['author']['id']||_0x4abdc1[_0x31e8('0xc')]!==_0x29c1a9[_0x31e8('0xc')])continue;if(!xt(_0x29c1a9,_0x4abdc1))continue;const _0x45d55b=_0x1e7765['get'](_0x29c1a9),_0x468ecc=_0x1ba030['get'](_0x29c1a9),_0x4fe54f=_0x1ba030['get'](_0x4abdc1),_0x3aac72=_0x29c1a9[_0x31e8('0x80')]&&_0x29c1a9['commentThread'][_0x31e8('0x108')],_0x1ebd6a=_0x4abdc1[_0x31e8('0x80')]&&_0x4abdc1[_0x31e8('0x80')][_0x31e8('0x108')];if(!_0x3aac72&&_0x45d55b(_0x4fe54f,_0x468ecc))return _0x4f79cc[_0x31e8('0x22')](_0x4abdc1,_0x29c1a9),_0x1ba030[_0x31e8('0x6d')](_0x29c1a9),!0x0;if(!_0x1ebd6a&&_0x45d55b(_0x468ecc,_0x4fe54f))return _0x4f79cc[_0x31e8('0x22')](_0x29c1a9,_0x4abdc1),_0x1ba030['delete'](_0x4abdc1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x426cfc,_0x3072cb){if(_0x426cfc['isMultiRange'])for(const _0x45b40c of _0x3072cb[_0x31e8('0x3c')]())_0x426cfc[_0x31e8('0x29')](_0x45b40c);else{const _0x23933e=_0x3072cb[_0x31e8('0xde')]()[_0x31e8('0x2e')];this[_0x31e8('0x136')](_0x426cfc,this[_0x31e8('0x4b')][_0x31e8('0x9f')](_0x426cfc[_0x31e8('0xde')]()[_0x31e8('0x41')],_0x23933e));}_0x3072cb['removeMarkers']();}}class Dt{constructor(_0x46090e){this['_editor']=_0x46090e,this[_0x31e8('0x4b')]=_0x46090e[_0x31e8('0xb6')],this[_0x31e8('0x101')]=new Map(),this[_0x31e8('0x5f')]=new Map(),this['_registerDefaultCallbacks']();}[_0x31e8('0xda')](_0x1d9303,_0x54df22,_0xd46933,_0xee5be,_0x493ce2,_0x23b4bf){return new _0xeaea29(this[_0x31e8('0x4b')],{'type':_0x1d9303,'subType':_0x54df22,'id':_0xd46933,'author':_0xee5be,'creator':_0xee5be,'attributes':_0x493ce2,'onAttributesChange':_0x23b4bf,'onAccept':(..._0x17bb45)=>this[_0x31e8('0x73')](_0x1d9303,_0x54df22,_0x31e8('0xd5'))(..._0x17bb45),'onDiscard':(..._0x2cfd8a)=>this[_0x31e8('0x73')](_0x1d9303,_0x54df22,_0x31e8('0x53'))(..._0x2cfd8a)});}['registerCustomCallback'](_0x8c1c85,_0x3c210d,_0x3edcdf,_0x31b022){const _0x335c43=_0x8c1c85+':'+_0x3c210d+':'+_0x3edcdf;this['_customCallbacks'][_0x31e8('0xf8')](_0x335c43,_0x31b022);}[_0x31e8('0x73')](_0x2094bd,_0x575486,_0x2a077d){const _0x2da803=_0x2094bd+':'+_0x575486+':'+_0x2a077d;return this['_customCallbacks'][_0x31e8('0x89')](_0x2da803)||this['_defaultCallbacks'][_0x31e8('0x89')](_0x2094bd+':'+_0x2a077d);}[_0x31e8('0x9')](){const _0x54a367=()=>!0x1,_0x5a5c06=_0x4d200=>{_0x4d200['sort']((_0x44a49b,_0x88f73f)=>_0x44a49b['start'][_0x31e8('0x104')](_0x88f73f['start'])?0x1:-0x1),this[_0x31e8('0x4b')][_0x31e8('0x74')](_0xfc3fb9=>{for(const _0xf2f144 of _0x4d200){let _0x11da56;_0x11da56=_0xf2f144[_0x31e8('0x2e')]['isAtEnd']&&_0xf2f144[_0x31e8('0x2e')][_0x31e8('0x3f')]==_0xf2f144[_0x31e8('0x41')]['nodeAfter']?_0xfc3fb9['createSelection'](_0xf2f144[_0x31e8('0x41')][_0x31e8('0x119')],'on'):_0xfc3fb9[_0x31e8('0xd9')](_0xf2f144),this[_0x31e8('0x4b')][_0x31e8('0xec')](_0x11da56,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x27cb6c=(_0x1aa558,_0x3c0834)=>{this[_0x31e8('0x4b')][_0x31e8('0x74')](_0x550a39=>{const {commandName:_0x4ed6c3,commandParams:_0x339c4c=[]}=_0x3c0834,_0x23d9e4=_0x1aa558[_0x31e8('0x66')](_0xce27d5=>(_t(_0xce27d5)&&(_0xce27d5=this[_0x31e8('0x4b')]['createRange'](_0xce27d5[_0x31e8('0x2e')])),_0xce27d5))[_0x31e8('0x17')](_0x4190dc=>_0x31e8('0xf5')!==_0x4190dc['root'][_0x31e8('0xd1')]);if(_0x23d9e4[_0x31e8('0x108')]<0x1)return;const _0x549c7f=Array['from'](this['_model'][_0x31e8('0x9e')][_0x31e8('0x4d')][_0x31e8('0x3c')]())[_0x31e8('0x66')](_0x1a95d4=>_0x4f747d[_0x31e8('0xe0')](_0x1a95d4));_0x550a39[_0x31e8('0xf')](_0x23d9e4);for(const _0x53ce79 of this[_0x31e8('0x114')][_0x31e8('0x10b')]['commands']())_0x53ce79[_0x31e8('0x70')]();_0x339c4c['push']({'forceDefaultExecution':!0x0}),this[_0x31e8('0x114')]['execute'](_0x4ed6c3,..._0x339c4c);const _0x3fac9d=_0x549c7f[_0x31e8('0x17')](_0x34459e=>_0x31e8('0xf5')!=_0x34459e[_0x31e8('0x95')]['rootName']);_0x3fac9d[_0x31e8('0x108')]>0x0&&_0x550a39['setSelection'](_0x3fac9d);for(const _0x362e4c of _0x549c7f)_0x362e4c[_0x31e8('0x31')]();});},_0x2831a5=(_0x3005dd,_0x55a032)=>0x1==_0x3005dd[_0x31e8('0x108')]&&0x1==_0x55a032[_0x31e8('0x108')]&&_0x3005dd[0x0]['end'][_0x31e8('0x132')](_0x55a032[0x0][_0x31e8('0x41')]),_0x1833ec=(_0xe71d7b,_0x3cdab4,_0x5012d9,_0x26c445)=>jt(_0xe71d7b,_0x3cdab4,_0x5012d9,_0x26c445,this[_0x31e8('0x4b')])?[_0xe71d7b,_0x3cdab4]:jt(_0x3cdab4,_0xe71d7b,_0x26c445,_0x5012d9,this['_model'])?[_0x3cdab4,_0xe71d7b]:null;this['_defaultCallbacks']['set'](_0x31e8('0x48'),_0x54a367),this[_0x31e8('0x5f')]['set'](_0x31e8('0x9d'),_0x5a5c06),this[_0x31e8('0x5f')][_0x31e8('0xf8')]('insertion:join',_0x2831a5),this['_defaultCallbacks'][_0x31e8('0xf8')](_0x31e8('0x19'),_0x1833ec),this['_defaultCallbacks']['set'](_0x31e8('0x117'),_0x5a5c06),this['_defaultCallbacks'][_0x31e8('0xf8')](_0x31e8('0xd4'),_0x54a367),this[_0x31e8('0x5f')][_0x31e8('0xf8')](_0x31e8('0x1b'),_0x2831a5),this[_0x31e8('0x5f')][_0x31e8('0xf8')](_0x31e8('0xd3'),_0x1833ec),this[_0x31e8('0x5f')]['set']('formatInline:accept',_0x27cb6c),this[_0x31e8('0x5f')][_0x31e8('0xf8')](_0x31e8('0x12'),_0x54a367),this[_0x31e8('0x5f')][_0x31e8('0xf8')](_0x31e8('0x26'),_0x2831a5),this[_0x31e8('0x5f')][_0x31e8('0xf8')](_0x31e8('0x61'),_0x54a367),this[_0x31e8('0x5f')]['set'](_0x31e8('0xb1'),_0x27cb6c),this[_0x31e8('0x5f')][_0x31e8('0xf8')](_0x31e8('0xa9'),_0x54a367),this['_defaultCallbacks'][_0x31e8('0xf8')]('formatBlock:join',_0x2831a5),this[_0x31e8('0x5f')][_0x31e8('0xf8')](_0x31e8('0xaa'),_0x54a367);}}function Bt(_0x2647fe,_0x37827f,_0x5a69f2){for(const _0x58b0ba of _0x37827f[_0x31e8('0x3f')][_0x31e8('0x6a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x58b0ba['root']==_0x58b0ba)return!0x1;if(!_0x5a69f2[_0x31e8('0x118')](_0x58b0ba))return!0x1;if(_0x2647fe[_0x31e8('0xa0')](_0x58b0ba)||_0x2647fe[_0x31e8('0x5e')](_0x58b0ba))return!0x0;}return!0x1;}function _t(_0x11a7cb){return _0x11a7cb['end']['parent']==_0x11a7cb['start'][_0x31e8('0x119')]&&_0x11a7cb[_0x31e8('0x2e')]['isAtStart'];}function Mt(_0x153ad9,_0x4ec56a,_0x606a8d,_0x3432b3){const _0x46ddf8=_0x2f5f6d=>!_0x2f5f6d['item']['is'](_0x31e8('0x120'))&&!_0x3432b3[_0x31e8('0xa0')](_0x2f5f6d[_0x31e8('0x2f')]),_0x1fafac=_0x153ad9['start'][_0x31e8('0x5d')](_0x46ddf8),_0x505c09=_0x153ad9['end'][_0x31e8('0x5d')](_0x46ddf8,{'direction':_0x31e8('0x10d')});return(!_0x153ad9[_0x31e8('0x41')][_0x31e8('0x132')](_0x1fafac)||!_0x153ad9[_0x31e8('0x2e')][_0x31e8('0x132')](_0x505c09))&&(_0x1fafac[_0x31e8('0x104')](_0x505c09)?_0x606a8d[_0x31e8('0x137')](_0x4ec56a,{'range':_0x606a8d['createRange'](_0x1fafac,_0x505c09)}):_0x606a8d[_0x31e8('0xf3')](_0x4ec56a),!0x0);}function $t(_0x4e9ab4){return _0x1a04cf(_0x4e9ab4);}function Nt(_0x3704d3){const _0x311495=_0x3704d3[_0x31e8('0x41')][_0x31e8('0x119')];return _0x311495&&_0x311495['is'](_0x31e8('0x21'));}function Rt(_0x3545b1,_0x44f7e2){const _0x30b678=_0x44f7e2[_0x31e8('0x8b')]['isObject'](_0x3545b1)||_0x44f7e2[_0x31e8('0x8b')][_0x31e8('0x109')](_0x3545b1);return _0x44f7e2[_0x31e8('0x9f')](_0x44f7e2[_0x31e8('0xc1')](_0x3545b1,_0x31e8('0xe7')),_0x30b678?_0x44f7e2['createPositionAfter'](_0x3545b1):_0x44f7e2[_0x31e8('0xc1')](_0x3545b1,_0x31e8('0x2e')));}function jt(_0x344e96,_0x475f96,_0x514a56,_0x59974a,_0x9f7ac1){if(!xt(_0x344e96,_0x475f96))return!0x1;if(_0x514a56[_0x31e8('0x2e')][_0x31e8('0x132')](_0x59974a['start']))return!0x0;if(_0x344e96[_0x31e8('0xff')]!=_0x475f96[_0x31e8('0xff')])return!0x1;if(!_0x514a56[_0x31e8('0x2e')]['isTouching'](_0x59974a[_0x31e8('0x41')]))return!0x1;const _0x3da98d=_0x9f7ac1[_0x31e8('0x9f')](_0x514a56[_0x31e8('0x2e')],_0x59974a['start'])[_0x31e8('0x6b')]();for(const _0x3f6882 of _0x3da98d)if([_0x31e8('0x113'),_0x31e8('0x34')][_0x31e8('0x40')](_0x3f6882['type'])&&_0x9f7ac1['schema'][_0x31e8('0x5e')](_0x3f6882['item']))return!0x1;return!0x0;}function xt(_0x5d614c,_0x2a755d){return!(!_0x5d614c[_0x31e8('0xce')]||!_0x2a755d[_0x31e8('0xce')])&&_0x5473b4(_0x5d614c[_0x31e8('0x28')],_0x2a755d[_0x31e8('0x28')]);}function Ut(_0x43d95b,_0x30e9c9){const _0x469dc2=Ot(_0x43d95b[_0x31e8('0x28')]),_0x409519=Ot(_0x30e9c9);if(!_0x43d95b[_0x31e8('0xce')])return!0x1;for(const _0x57f925 of Object[_0x31e8('0x4c')](_0x409519))if(!_0x5473b4(_0x469dc2[_0x57f925],_0x409519[_0x57f925]))return!0x1;return!0x0;}function Ot(_0x8c47f9){const _0xba3c23=Object['assign']({},_0x8c47f9);return delete _0xba3c23['skipNestingCheck'],delete _0xba3c23[_0x31e8('0x1f')],_0xba3c23;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1591=['head','source','change:activeAnnotations','has','_handleControllerBuffer','destroy','getSuggestion','listenTo','model','trackChanges.disableComments','TrackChangesUI','change:previous','actionView','editing','getMarkerNames','requires','push','SuggestionThreadView','arrowView','hasSuggestion','button','isEnabled','type','_refreshActiveMarkers','Annotations','comments.maxThreadTotalWeight','remove','_createUIButton','addSourceCollector','isMultiRange','CommentView','getAllAdjacentSuggestions','componentFactory','_suggestionToController','lowest','length','stopListening','comments','getJoined','Accept\x20all\x20suggestions','_handleSuggestionControllerDelayed','from','separator','map','isInContent','registerAnnotation','discardButton','TrackChangesEditing','buttonView','commentThread','define','trackChanges','activeAnnotations','clear','getByInnerView','trackChanges.SuggestionThreadView','isOn','suggestionUnloaded','execute','toMany','pluginName','Accept\x20all\x20selected\x20suggestions','init','bind','set','previous','_destroyController','suggestion-','createCommentThreadController','editor','innerView','_unbindEditors','CommentsUI','commands','view','plugins','_descriptionFactory','_annotationViews','discardSelectedSuggestions','CommentsRepository','_bindAnnotationToEditors','getRanges','getDescriptions','add','commandName','EditorAnnotations','value','acceptAllSuggestions','size','config','filter','getMarkers','focus','Discard\x20all\x20selected\x20suggestions','isDirty','_updateController','unbind','refreshSelectedViews','_viewToController','mainView','locale','activeMarkers','some','get','delete','switchbutton','acceptButton'];(function(_0x20244e,_0x1591d3){const _0x13eb00=function(_0x2bd212){while(--_0x2bd212){_0x20244e['push'](_0x20244e['shift']());}};_0x13eb00(++_0x1591d3);}(_0x1591,0xeb));const _0x13eb=function(_0x20244e,_0x1591d3){_0x20244e=_0x20244e-0x0;let _0x13eb00=_0x1591[_0x20244e];return _0x13eb00;};import{Plugin as _0x14d2af}from'ckeditor5/src/core';import{Collection as _0x4145a1}from'ckeditor5/src/utils';import{Model as _0x57632e,SplitButtonView as _0x57728b,createDropdown as _0x2b65a3,addListToDropdown as _0x2e91b5}from'ckeditor5/src/ui';import{Users as _0x254bdc,getDateTimeFormatter as _0x47d0ef,getAllMarkersDomElementsSorted as _0x4319be}from'ckeditor5-collaboration/src/collaboration-core';import _0x46a9e1 from'./trackchangesediting';import _0xe2331f from'./ui/suggestioncontroller';import _0x5d2938 from'./ui/view/suggestionthreadview';import{getTranslation as _0x58e37d}from'./utils/common-translations';import _0x117c61 from'../theme/icons/track-changes.svg';export default class d extends _0x14d2af{static get[_0x13eb('0x65')](){return[_0x46a9e1,_0x254bdc,_0x13eb('0x3a'),_0x13eb('0x3'),_0x13eb('0x40')];}static get[_0x13eb('0x27')](){return _0x13eb('0x60');}constructor(_0x5d68f7){super(_0x5d68f7),this['_suggestionToController']=new Map(),this[_0x13eb('0x4d')]=new Map(),this[_0x13eb('0x38')]=new Map(),this[_0x13eb('0x5a')]=new Map();const _0x1954b8=this[_0x13eb('0x30')][_0x13eb('0x44')];_0x1954b8[_0x13eb('0x1d')](_0x13eb('0x22'),_0x5d2938),_0x1954b8[_0x13eb('0x1d')](_0x13eb('0x5f'),!0x1),this['_disableComments']=_0x1954b8[_0x13eb('0x52')]('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2c4fc1,_0x2e3e43){0x0===this[_0x13eb('0x5a')][_0x13eb('0x43')]&&setTimeout(()=>{for(const [_0x430c4d,_0x2b50f5]of this['_handleControllerBuffer']){const _0x183c2f=this[_0x13eb('0xc')][_0x13eb('0x59')](_0x430c4d);_0x183c2f||_0x2b50f5?_0x183c2f&&_0x2b50f5&&this['_destroyController'](_0x430c4d):this['_initializeController'](_0x430c4d);}this[_0x13eb('0x30')][_0x13eb('0x36')][_0x13eb('0x52')](_0x13eb('0x40'))[_0x13eb('0x4c')](),this[_0x13eb('0x2')](),this[_0x13eb('0x5a')][_0x13eb('0x20')]();},0xa),this[_0x13eb('0x5a')]['set'](_0x2c4fc1,_0x2e3e43);}[_0x13eb('0x29')](){const _0x16279a=this[_0x13eb('0x30')],_0x1dee29=_0x16279a[_0x13eb('0x36')]['get'](_0x13eb('0x1a')),_0x3fc718=_0x16279a[_0x13eb('0x36')]['get'](_0x13eb('0x3')),_0x2f6e3c=_0x16279a[_0x13eb('0x36')][_0x13eb('0x52')]('EditorAnnotations'),_0x17471e=_0x16279a['plugins'][_0x13eb('0x52')](_0x13eb('0x3a'));_0x16279a['ui'][_0x13eb('0xb')][_0x13eb('0x3e')](_0x13eb('0x1e'),_0x35641c=>this[_0x13eb('0x6')](_0x35641c)),_0x2f6e3c[_0x13eb('0x7')](()=>{const _0x4ead8b=[];for(const [_0x6d0f47,_0x4cc8fb]of Array[_0x13eb('0x14')](this[_0x13eb('0xc')])){const _0x1176cc=_0x6d0f47[_0x13eb('0xa')](),_0x3a53f5=[];for(const _0x2b9345 of _0x1176cc){if(!_0x2b9345[_0x13eb('0x17')])continue;if(_0x2b9345[_0x13eb('0x8')]){_0x3a53f5[_0x13eb('0x66')](..._0x2b9345[_0x13eb('0x3c')]());continue;}const _0x4c54c0=_0x2b9345['getFirstRange']();if(_0x3a53f5[_0x13eb('0xe')]>0x0){const _0x3ccadd=_0x3a53f5[0x0][_0x13eb('0x11')](_0x4c54c0);if(_0x3ccadd){_0x3a53f5[0x0]=_0x3ccadd;continue;}}_0x3a53f5[_0x13eb('0x66')](_0x4c54c0);}_0x4ead8b['push']([_0x4cc8fb[_0x13eb('0x35')],_0x3a53f5]);}return _0x4ead8b;}),this[_0x13eb('0x5d')](_0x1dee29,'suggestionLoaded',(_0x3a2f73,_0x58866a)=>{this[_0x13eb('0x5d')](_0x58866a,_0x13eb('0x61'),(_0xfb8f3,_0x34f131,_0x240c5a,_0x2ef534)=>{_0x58866a[_0x13eb('0x17')]&&(null==_0x240c5a?(this[_0x13eb('0x4a')](_0x2ef534['head']),this[_0x13eb('0x13')](_0x58866a,!0x1)):(this[_0x13eb('0x4a')](_0x240c5a[_0x13eb('0x56')]),this[_0x13eb('0x13')](_0x58866a,!0x0)));}),null===_0x58866a[_0x13eb('0x2c')]?this['_handleSuggestionControllerDelayed'](_0x58866a,!0x1):this[_0x13eb('0x4a')](_0x58866a[_0x13eb('0x56')]);}),this[_0x13eb('0x5d')](_0x1dee29,_0x13eb('0x24'),(_0x628e99,_0xad81fd,_0x4de027)=>{this[_0x13eb('0xf')](_0xad81fd,_0x13eb('0x61')),this[_0x13eb('0x5a')][_0x13eb('0x53')](_0xad81fd);const _0x220f4b=_0x4de027?_0x4de027['head']:_0xad81fd,_0x396deb=this['_suggestionToController'][_0x13eb('0x52')](_0x220f4b);null!==_0x4de027&&this[_0x13eb('0x4a')](_0x220f4b),null===_0x4de027&&_0x396deb&&this[_0x13eb('0x2d')](_0xad81fd);}),this[_0x13eb('0x5d')](_0x1dee29,'suggestionChanged',(_0x498d9e,_0x1c0e91)=>{this[_0x13eb('0x4a')](_0x1c0e91);}),this[_0x13eb('0x5d')](_0x3fc718,_0x13eb('0x58'),()=>{this[_0x13eb('0x2')]();}),this[_0x13eb('0x5d')](_0x17471e,'addComment',(_0x2aacd3,{threadId:_0x386289,isFromAdapter:_0x318656})=>{if(_0x318656||!_0x1dee29[_0x13eb('0x69')](_0x386289))return;const _0x1b7786=_0x1dee29[_0x13eb('0x5c')](_0x386289);this[_0x13eb('0xc')][_0x13eb('0x52')](_0x1b7786)[_0x13eb('0x35')][_0x13eb('0x47')]();},{'priority':_0x13eb('0xd')});}['_refreshActiveMarkers'](){const _0xfdec66=this[_0x13eb('0x30')][_0x13eb('0x36')][_0x13eb('0x52')](_0x13eb('0x3')),_0x2171a4=this[_0x13eb('0x30')][_0x13eb('0x36')]['get'](_0x13eb('0x1a')),_0x179450=Array['from'](_0xfdec66[_0x13eb('0x1f')],_0x7500c1=>_0x7500c1[_0x13eb('0x31')])[_0x13eb('0x45')](_0x2e4edc=>this[_0x13eb('0x4d')]['has'](_0x2e4edc)),_0x560803=[];for(const _0xe2e8c3 of _0x179450){const _0x18f9d6=this[_0x13eb('0x4d')][_0x13eb('0x52')](_0xe2e8c3)[_0x13eb('0x5e')][_0x13eb('0xa')]();_0x560803[_0x13eb('0x66')](..._0x18f9d6['reduce']((_0x4ae810,_0x3219f7)=>[..._0x4ae810,..._0x3219f7[_0x13eb('0x64')]()],[]));}_0x2171a4[_0x13eb('0x50')]=_0x560803;}[_0x13eb('0x6')](_0x4d03fa){const _0x1bd587=_0x2b65a3(_0x4d03fa,_0x57728b),_0x498baf=this[_0x13eb('0x30')][_0x13eb('0x34')][_0x13eb('0x52')](_0x13eb('0x1e')),_0x1d63e9=_0x58e37d(_0x4d03fa,'Track\x20changes');_0x1bd587['buttonView'][_0x13eb('0x2b')]({'tooltip':_0x1d63e9,'label':_0x1d63e9,'icon':_0x117c61}),_0x1bd587[_0x13eb('0x1b')][_0x13eb('0x2a')](_0x13eb('0x23'))['to'](_0x498baf,_0x13eb('0x41')),_0x1bd587[_0x13eb('0x1b')]['on'](_0x13eb('0x25'),()=>{_0x498baf[_0x13eb('0x25')](),this['editor'][_0x13eb('0x63')]['view']['focus']();});const _0x228979=new _0x4145a1(),_0xadd258=[{'type':_0x13eb('0x54'),'model':{'withText':!0x0,'label':_0x1d63e9,'commandName':'trackChanges'}},{'type':'separator'},{'type':_0x13eb('0x6a'),'model':{'withText':!0x0,'label':_0x58e37d(_0x4d03fa,_0x13eb('0x12')),'commandName':_0x13eb('0x42')}},{'type':_0x13eb('0x6a'),'model':{'withText':!0x0,'label':_0x58e37d(_0x4d03fa,_0x13eb('0x28')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x58e37d(_0x4d03fa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x13eb('0x6a'),'model':{'withText':!0x0,'label':_0x58e37d(_0x4d03fa,_0x13eb('0x48')),'commandName':_0x13eb('0x39')}}];for(const _0x1b48bc of _0xadd258){let _0x54f9f2={'type':_0x13eb('0x15')};if(_0x1b48bc[_0x13eb('0x5e')]){const _0x136cd7=new _0x57632e(_0x1b48bc[_0x13eb('0x5e')]),_0x5aa1a9=this['editor'][_0x13eb('0x34')][_0x13eb('0x52')](_0x136cd7[_0x13eb('0x3f')]);_0x136cd7[_0x13eb('0x2a')](_0x13eb('0x23'),_0x13eb('0x0'))['to'](_0x5aa1a9,_0x13eb('0x41'),_0x13eb('0x0')),_0x54f9f2={'type':_0x1b48bc[_0x13eb('0x1')],'model':_0x136cd7};}_0x228979[_0x13eb('0x3e')](_0x54f9f2);}_0x2e91b5(_0x1bd587,_0x228979);const _0x19b59b=_0xadd258[_0x13eb('0x45')](_0xe57634=>null!=_0xe57634[_0x13eb('0x5e')])[_0x13eb('0x16')](_0x3d574=>this[_0x13eb('0x30')][_0x13eb('0x34')][_0x13eb('0x52')](_0x3d574['model']['commandName'])),_0x3db35a=_0x1bd587[_0x13eb('0x1b')];return _0x3db35a[_0x13eb('0x62')]['unbind'](_0x13eb('0x0')),_0x3db35a[_0x13eb('0x68')][_0x13eb('0x4b')]('isEnabled'),_0x3db35a[_0x13eb('0x62')][_0x13eb('0x2a')]('isEnabled')['to'](_0x498baf,_0x13eb('0x0')),_0x3db35a[_0x13eb('0x68')][_0x13eb('0x2a')](_0x13eb('0x0'))[_0x13eb('0x26')](_0x19b59b,_0x13eb('0x0'),(..._0x2121c3)=>_0x2121c3[_0x13eb('0x51')](_0x3e5948=>_0x3e5948)),_0x1bd587['on'](_0x13eb('0x25'),_0x3da3c9=>{this['editor']['execute'](_0x3da3c9[_0x13eb('0x57')][_0x13eb('0x3f')]),this[_0x13eb('0x30')]['editing'][_0x13eb('0x35')][_0x13eb('0x47')]();}),_0x1bd587;}['_initializeController'](_0x59b9cd){const _0x270fbd=this['editor'],_0x1e09f3=_0x270fbd['config'],_0x61be0e=_0x270fbd[_0x13eb('0x36')][_0x13eb('0x52')](_0x13eb('0x3')),_0x3da75d=_0x270fbd[_0x13eb('0x36')][_0x13eb('0x52')]('CommentsRepository'),_0x1e0079=_0x270fbd[_0x13eb('0x36')][_0x13eb('0x52')](_0x13eb('0x40')),_0x492dc3=_0x270fbd['plugins'][_0x13eb('0x52')](_0x254bdc)['me'],_0x186e2a=_0x1e09f3[_0x13eb('0x52')](_0x13eb('0x1e'))[_0x13eb('0x67')],{CommentsListView:_0x400fec,CommentThreadInputView:_0x5b9174}=_0x270fbd[_0x13eb('0x36')][_0x13eb('0x52')](_0x13eb('0x33'));let _0x1652de,_0x5b02b1;this['_annotationViews'][_0x13eb('0x59')](_0x59b9cd['id'])?(_0x5b02b1=this[_0x13eb('0x38')][_0x13eb('0x52')](_0x59b9cd['id']),_0x1652de=_0x5b02b1[_0x13eb('0x4e')]):(_0x1652de=new _0x186e2a(_0x270fbd['locale'],_0x59b9cd,_0x492dc3,{'disableComments':this['_disableComments'],'editorConfig':_0x1e09f3[_0x13eb('0x52')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1e09f3[_0x13eb('0x52')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e09f3[_0x13eb('0x52')](_0x13eb('0x4')),'maxCommentCharsWhenCollapsed':_0x1e09f3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x47d0ef(_0x1e09f3[_0x13eb('0x52')](_0x13eb('0x4f'))),'CommentView':_0x1e09f3[_0x13eb('0x52')](_0x13eb('0x10'))[_0x13eb('0x9')],'CommentsListView':_0x400fec,'CommentThreadInputView':_0x5b9174}),_0x1652de[_0x13eb('0x55')]['on'](_0x13eb('0x25'),()=>{_0x270fbd[_0x13eb('0x63')][_0x13eb('0x35')][_0x13eb('0x47')]();}),_0x1652de[_0x13eb('0x19')]['on'](_0x13eb('0x25'),()=>{_0x270fbd[_0x13eb('0x63')][_0x13eb('0x35')][_0x13eb('0x47')]();}),_0x5b02b1=_0x61be0e['createAnnotationView'](this[_0x13eb('0x30')][_0x13eb('0x4f')],_0x1652de),_0x5b02b1[_0x13eb('0x2a')](_0x13eb('0x49'))['to'](_0x1652de,_0x13eb('0x49')),_0x5b02b1[_0x13eb('0x2a')](_0x13eb('0xe'))['to'](_0x1652de),_0x5b02b1[_0x13eb('0x2a')]('type')['to'](_0x1652de,_0x13eb('0x1'),_0x44f539=>_0x13eb('0x2e')+_0x44f539),this[_0x13eb('0x38')][_0x13eb('0x2b')](_0x59b9cd['id'],_0x5b02b1));const _0x599a07=_0x3da75d[_0x13eb('0x2f')](_0x59b9cd[_0x13eb('0x1c')],_0x1652de),_0x5af050=new _0xe2331f(_0x270fbd,_0x59b9cd,_0x1652de,_0x599a07),_0x51a549=_0x59b9cd[_0x13eb('0xa')]()[_0x13eb('0x45')](_0xfd3d6b=>_0xfd3d6b[_0x13eb('0x17')]);_0x1652de['descriptionParts']=_0x270fbd['plugins'][_0x13eb('0x52')](_0x13eb('0x1a'))[_0x13eb('0x37')][_0x13eb('0x3d')](_0x51a549),this[_0x13eb('0xc')]['set'](_0x59b9cd,_0x5af050),this[_0x13eb('0x4d')][_0x13eb('0x2b')](_0x1652de,_0x5af050);const _0x153b9a=_0x61be0e['createAnnotation']({'view':_0x5b02b1,'target':()=>{const _0x3879da=[],_0x244c84=_0x59b9cd[_0x13eb('0xa')]()[_0x13eb('0x45')](_0x39cf61=>_0x39cf61[_0x13eb('0x17')]);for(const _0x8c79c2 of _0x244c84)_0x3879da[_0x13eb('0x66')](..._0x8c79c2[_0x13eb('0x46')]());return _0x4319be(_0x270fbd[_0x13eb('0x63')],_0x3879da);},'type':()=>_0x13eb('0x2e')+_0x5af050[_0x13eb('0x35')]['type']});_0x3da75d[_0x13eb('0x3b')](_0x1652de,_0x153b9a),_0x61be0e[_0x13eb('0x3e')](_0x153b9a),_0x1e0079[_0x13eb('0x18')](_0x153b9a);}['_destroyController'](_0x66b86a){const _0x35a78c=this[_0x13eb('0x30')]['plugins']['get'](_0x13eb('0x3a')),_0x336f0c=this[_0x13eb('0x30')][_0x13eb('0x36')]['get'](_0x13eb('0x3')),_0x4517ad=this[_0x13eb('0xc')][_0x13eb('0x52')](_0x66b86a),_0x21492b=_0x4517ad[_0x13eb('0x35')],_0x4adc99=_0x336f0c[_0x13eb('0x21')](_0x21492b);_0x35a78c[_0x13eb('0x32')](_0x21492b),_0x4adc99&&_0x336f0c[_0x13eb('0x5')](_0x4adc99),this[_0x13eb('0xc')][_0x13eb('0x53')](_0x66b86a),this[_0x13eb('0x4d')][_0x13eb('0x53')](_0x21492b),_0x4517ad[_0x13eb('0x5b')]();}[_0x13eb('0x4a')](_0x2f6e4f){if(!_0x2f6e4f[_0x13eb('0x17')]||!this[_0x13eb('0xc')]['has'](_0x2f6e4f))return;const _0x802cbf=this[_0x13eb('0x30')]['plugins'][_0x13eb('0x52')](_0x13eb('0x1a')),_0x3ceba8=this['_suggestionToController']['get'](_0x2f6e4f),_0x1e57cf=_0x2f6e4f['getAllAdjacentSuggestions']();_0x3ceba8[_0x13eb('0x35')]['descriptionParts']=_0x802cbf['_descriptionFactory'][_0x13eb('0x3d')](_0x1e57cf);}['destroy'](){for(const _0x3656d4 of this['_suggestionToController']['keys']())this[_0x13eb('0x2d')](_0x3656d4);for(const _0x3226d1 of this[_0x13eb('0x38')]['values']())_0x3226d1[_0x13eb('0x4e')][_0x13eb('0x5b')]();super[_0x13eb('0x5b')]();}}
|
|
23
|
+
const _0x5cef=['value','isOn','model','suggestionLoaded','unbind','acceptButton','change:previous','destroy','_handleSuggestionControllerDelayed','buttonView','lowest','_unbindEditors','listenTo','focus','componentFactory','createCommentThreadController','getFirstRange','refreshSelectedViews','view','getSuggestion','commandName','EditorAnnotations','discardSelectedSuggestions','commands','editing','requires','actionView','getRanges','_bindAnnotationToEditors','commentThread','getAllAdjacentSuggestions','_viewToController','discardButton','delete','_createUIButton','push','Track\x20changes','define','TrackChangesEditing','length','values','keys','addComment','getByInnerView','registerAnnotation','isMultiRange','isDirty','get','config','comments.maxCommentCharsWhenCollapsed','size','createAnnotationView','_suggestionToController','some','filter','clear','getJoined','hasSuggestion','Accept\x20all\x20selected\x20suggestions','has','Annotations','set','suggestionChanged','acceptAllSuggestions','_updateController','head','comments','innerView','execute','reduce','map','Discard\x20all\x20suggestions','acceptSelectedSuggestions','activeMarkers','_descriptionFactory','button','add','getMarkers','editor','_refreshActiveMarkers','_disableComments','remove','switchbutton','isInContent','separator','arrowView','activeAnnotations','Discard\x20all\x20selected\x20suggestions','type','stopListening','addSourceCollector','_annotationViews','comments.maxCommentsWhenCollapsed','bind','CommentsUI','locale','createAnnotation','CommentsRepository','descriptionParts','change:activeAnnotations','trackChanges','_handleControllerBuffer','suggestion-','previous','_destroyController','Accept\x20all\x20suggestions','comments.maxThreadTotalWeight','_initializeController','plugins','toMany','comments.editorConfig','isEnabled','trackChanges.disableComments','CommentView','from','TrackChangesUI'];(function(_0x162f1e,_0x5ceff5){const _0x1aac45=function(_0x4c8890){while(--_0x4c8890){_0x162f1e['push'](_0x162f1e['shift']());}};_0x1aac45(++_0x5ceff5);}(_0x5cef,0xc1));const _0x1aac=function(_0x162f1e,_0x5ceff5){_0x162f1e=_0x162f1e-0x0;let _0x1aac45=_0x5cef[_0x162f1e];return _0x1aac45;};import{Plugin as _0x4adc3b}from'ckeditor5/src/core';import{Collection as _0x5efd21}from'ckeditor5/src/utils';import{Model as _0x3702f4,SplitButtonView as _0x348be2,createDropdown as _0x58385b,addListToDropdown as _0x40d5b2}from'ckeditor5/src/ui';import{Users as _0xedb35c,getDateTimeFormatter as _0x3cfba9,getAllMarkersDomElementsSorted as _0x23d113}from'ckeditor5-collaboration/src/collaboration-core';import _0x3faeee from'./trackchangesediting';import _0x9365bd from'./ui/suggestioncontroller';import _0x43d893 from'./ui/view/suggestionthreadview';import{getTranslation as _0x55acd5}from'./utils/common-translations';import _0x4d8fa1 from'../theme/icons/track-changes.svg';export default class d extends _0x4adc3b{static get[_0x1aac('0x40')](){return[_0x3faeee,_0xedb35c,_0x1aac('0x14'),_0x1aac('0x63'),_0x1aac('0x3c')];}static get['pluginName'](){return _0x1aac('0x26');}constructor(_0xe97dcd){super(_0xe97dcd),this[_0x1aac('0x5b')]=new Map(),this[_0x1aac('0x46')]=new Map(),this[_0x1aac('0xe')]=new Map(),this[_0x1aac('0x18')]=new Map();const _0x5e5732=this[_0x1aac('0x1')][_0x1aac('0x57')];_0x5e5732[_0x1aac('0x4c')]('trackChanges.SuggestionThreadView',_0x43d893),_0x5e5732[_0x1aac('0x4c')](_0x1aac('0x23'),!0x1),this[_0x1aac('0x3')]=_0x5e5732['get'](_0x1aac('0x23'));}[_0x1aac('0x2f')](_0x32872f,_0x3557b3){0x0===this[_0x1aac('0x18')][_0x1aac('0x59')]&&setTimeout(()=>{for(const [_0x230ee9,_0x31e0b8]of this[_0x1aac('0x18')]){const _0x48846b=this[_0x1aac('0x5b')][_0x1aac('0x62')](_0x230ee9);_0x48846b||_0x31e0b8?_0x48846b&&_0x31e0b8&&this['_destroyController'](_0x230ee9):this[_0x1aac('0x1e')](_0x230ee9);}this[_0x1aac('0x1')][_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x3c'))[_0x1aac('0x38')](),this[_0x1aac('0x2')](),this[_0x1aac('0x18')][_0x1aac('0x5e')]();},0xa),this[_0x1aac('0x18')]['set'](_0x32872f,_0x3557b3);}['init'](){const _0x13da3f=this[_0x1aac('0x1')],_0x253174=_0x13da3f[_0x1aac('0x1f')][_0x1aac('0x56')]('TrackChangesEditing'),_0x50ba98=_0x13da3f[_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x63')),_0x3a8d11=_0x13da3f[_0x1aac('0x1f')][_0x1aac('0x56')]('EditorAnnotations'),_0x1a3003=_0x13da3f['plugins'][_0x1aac('0x56')]('CommentsRepository');_0x13da3f['ui'][_0x1aac('0x35')][_0x1aac('0x73')]('trackChanges',_0x4f8200=>this['_createUIButton'](_0x4f8200)),_0x3a8d11[_0x1aac('0xd')](()=>{const _0x5f4cea=[];for(const [_0x108758,_0x4cc72e]of Array[_0x1aac('0x25')](this[_0x1aac('0x5b')])){const _0x59643f=_0x108758[_0x1aac('0x45')](),_0x3719a0=[];for(const _0x1ef6f8 of _0x59643f){if(!_0x1ef6f8[_0x1aac('0x6')])continue;if(_0x1ef6f8[_0x1aac('0x54')]){_0x3719a0[_0x1aac('0x4a')](..._0x1ef6f8[_0x1aac('0x42')]());continue;}const _0x4cfea7=_0x1ef6f8[_0x1aac('0x37')]();if(_0x3719a0[_0x1aac('0x4e')]>0x0){const _0x468cb7=_0x3719a0[0x0][_0x1aac('0x5f')](_0x4cfea7);if(_0x468cb7){_0x3719a0[0x0]=_0x468cb7;continue;}}_0x3719a0[_0x1aac('0x4a')](_0x4cfea7);}_0x5f4cea[_0x1aac('0x4a')]([_0x4cc72e[_0x1aac('0x39')],_0x3719a0]);}return _0x5f4cea;}),this[_0x1aac('0x33')](_0x253174,_0x1aac('0x2a'),(_0x235df5,_0x4511ba)=>{this['listenTo'](_0x4511ba,'change:previous',(_0x7416e5,_0x2ce979,_0x3d04cd,_0x54908a)=>{_0x4511ba[_0x1aac('0x6')]&&(null==_0x3d04cd?(this['_updateController'](_0x54908a[_0x1aac('0x68')]),this[_0x1aac('0x2f')](_0x4511ba,!0x1)):(this[_0x1aac('0x67')](_0x3d04cd[_0x1aac('0x68')]),this['_handleSuggestionControllerDelayed'](_0x4511ba,!0x0)));}),null===_0x4511ba[_0x1aac('0x1a')]?this[_0x1aac('0x2f')](_0x4511ba,!0x1):this[_0x1aac('0x67')](_0x4511ba[_0x1aac('0x68')]);}),this['listenTo'](_0x253174,'suggestionUnloaded',(_0x17a4e3,_0x54f07a,_0x16164f)=>{this[_0x1aac('0xc')](_0x54f07a,_0x1aac('0x2d')),this['_handleControllerBuffer']['delete'](_0x54f07a);const _0x3d5c9b=_0x16164f?_0x16164f['head']:_0x54f07a,_0x2514d6=this[_0x1aac('0x5b')][_0x1aac('0x56')](_0x3d5c9b);null!==_0x16164f&&this[_0x1aac('0x67')](_0x3d5c9b),null===_0x16164f&&_0x2514d6&&this[_0x1aac('0x1b')](_0x54f07a);}),this[_0x1aac('0x33')](_0x253174,_0x1aac('0x65'),(_0x395348,_0x425b05)=>{this[_0x1aac('0x67')](_0x425b05);}),this['listenTo'](_0x50ba98,_0x1aac('0x16'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1a3003,_0x1aac('0x51'),(_0x2851f7,{threadId:_0xb9f1ca,isFromAdapter:_0x36d417})=>{if(_0x36d417||!_0x253174[_0x1aac('0x60')](_0xb9f1ca))return;const _0x4e819e=_0x253174[_0x1aac('0x3a')](_0xb9f1ca);this[_0x1aac('0x5b')][_0x1aac('0x56')](_0x4e819e)[_0x1aac('0x39')]['focus']();},{'priority':_0x1aac('0x31')});}[_0x1aac('0x2')](){const _0x3c0978=this[_0x1aac('0x1')][_0x1aac('0x1f')]['get']('Annotations'),_0x3d03cc=this[_0x1aac('0x1')][_0x1aac('0x1f')]['get'](_0x1aac('0x4d')),_0x32ca1c=Array['from'](_0x3c0978[_0x1aac('0x9')],_0x5bd979=>_0x5bd979[_0x1aac('0x6a')])[_0x1aac('0x5d')](_0x34b2a2=>this[_0x1aac('0x46')][_0x1aac('0x62')](_0x34b2a2)),_0x59c2b8=[];for(const _0x1bca90 of _0x32ca1c){const _0x2cc77e=this['_viewToController'][_0x1aac('0x56')](_0x1bca90)['model'][_0x1aac('0x45')]();_0x59c2b8[_0x1aac('0x4a')](..._0x2cc77e[_0x1aac('0x6c')]((_0x18196d,_0xda996f)=>[..._0x18196d,..._0xda996f['getMarkerNames']()],[]));}_0x3d03cc[_0x1aac('0x70')]=_0x59c2b8;}[_0x1aac('0x49')](_0x266f49){const _0x19b13c=_0x58385b(_0x266f49,_0x348be2),_0x558e33=this['editor'][_0x1aac('0x3e')]['get'](_0x1aac('0x17')),_0x1b771c=_0x55acd5(_0x266f49,_0x1aac('0x4b'));_0x19b13c[_0x1aac('0x30')]['set']({'tooltip':_0x1b771c,'label':_0x1b771c,'icon':_0x4d8fa1}),_0x19b13c[_0x1aac('0x30')][_0x1aac('0x10')](_0x1aac('0x28'))['to'](_0x558e33,_0x1aac('0x27')),_0x19b13c[_0x1aac('0x30')]['on']('execute',()=>{_0x558e33[_0x1aac('0x6b')](),this[_0x1aac('0x1')]['editing'][_0x1aac('0x39')][_0x1aac('0x34')]();});const _0x4f3845=new _0x5efd21(),_0x5f2635=[{'type':_0x1aac('0x5'),'model':{'withText':!0x0,'label':_0x1b771c,'commandName':'trackChanges'}},{'type':_0x1aac('0x7')},{'type':'button','model':{'withText':!0x0,'label':_0x55acd5(_0x266f49,_0x1aac('0x1c')),'commandName':_0x1aac('0x66')}},{'type':_0x1aac('0x72'),'model':{'withText':!0x0,'label':_0x55acd5(_0x266f49,_0x1aac('0x61')),'commandName':_0x1aac('0x6f')}},{'type':_0x1aac('0x72'),'model':{'withText':!0x0,'label':_0x55acd5(_0x266f49,_0x1aac('0x6e')),'commandName':'discardAllSuggestions'}},{'type':_0x1aac('0x72'),'model':{'withText':!0x0,'label':_0x55acd5(_0x266f49,_0x1aac('0xa')),'commandName':_0x1aac('0x3d')}}];for(const _0x317c3a of _0x5f2635){let _0x311d1c={'type':_0x1aac('0x7')};if(_0x317c3a[_0x1aac('0x29')]){const _0xab7158=new _0x3702f4(_0x317c3a[_0x1aac('0x29')]),_0xb6c51=this['editor'][_0x1aac('0x3e')][_0x1aac('0x56')](_0xab7158[_0x1aac('0x3b')]);_0xab7158['bind'](_0x1aac('0x28'),_0x1aac('0x22'))['to'](_0xb6c51,_0x1aac('0x27'),_0x1aac('0x22')),_0x311d1c={'type':_0x317c3a['type'],'model':_0xab7158};}_0x4f3845['add'](_0x311d1c);}_0x40d5b2(_0x19b13c,_0x4f3845);const _0x30d7db=_0x5f2635['filter'](_0x46c739=>null!=_0x46c739['model'])[_0x1aac('0x6d')](_0x24d41b=>this[_0x1aac('0x1')][_0x1aac('0x3e')][_0x1aac('0x56')](_0x24d41b['model'][_0x1aac('0x3b')])),_0x451d03=_0x19b13c[_0x1aac('0x30')];return _0x451d03[_0x1aac('0x41')][_0x1aac('0x2b')]('isEnabled'),_0x451d03[_0x1aac('0x8')][_0x1aac('0x2b')](_0x1aac('0x22')),_0x451d03[_0x1aac('0x41')][_0x1aac('0x10')](_0x1aac('0x22'))['to'](_0x558e33,_0x1aac('0x22')),_0x451d03['arrowView'][_0x1aac('0x10')](_0x1aac('0x22'))[_0x1aac('0x20')](_0x30d7db,'isEnabled',(..._0x334d31)=>_0x334d31[_0x1aac('0x5c')](_0x596ebb=>_0x596ebb)),_0x19b13c['on'](_0x1aac('0x6b'),_0x200a6b=>{this['editor']['execute'](_0x200a6b['source'][_0x1aac('0x3b')]),this['editor']['editing'][_0x1aac('0x39')]['focus']();}),_0x19b13c;}[_0x1aac('0x1e')](_0x255ff8){const _0x10cf50=this['editor'],_0x358190=_0x10cf50[_0x1aac('0x57')],_0xeeb5cb=_0x10cf50[_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x63')),_0x548d6=_0x10cf50[_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x14')),_0x76c99a=_0x10cf50[_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x3c')),_0x5125e5=_0x10cf50[_0x1aac('0x1f')][_0x1aac('0x56')](_0xedb35c)['me'],_0x5a92f0=_0x358190[_0x1aac('0x56')](_0x1aac('0x17'))['SuggestionThreadView'],{CommentsListView:_0x424115,CommentThreadInputView:_0x5c3cbe}=_0x10cf50['plugins'][_0x1aac('0x56')](_0x1aac('0x11'));let _0x1580a3,_0x474b36;this[_0x1aac('0xe')][_0x1aac('0x62')](_0x255ff8['id'])?(_0x474b36=this['_annotationViews'][_0x1aac('0x56')](_0x255ff8['id']),_0x1580a3=_0x474b36['mainView']):(_0x1580a3=new _0x5a92f0(_0x10cf50[_0x1aac('0x12')],_0x255ff8,_0x5125e5,{'disableComments':this[_0x1aac('0x3')],'editorConfig':_0x358190[_0x1aac('0x56')](_0x1aac('0x21')),'maxCommentsWhenCollapsed':_0x358190['get'](_0x1aac('0xf')),'maxThreadTotalWeight':_0x358190[_0x1aac('0x56')](_0x1aac('0x1d')),'maxCommentCharsWhenCollapsed':_0x358190['get'](_0x1aac('0x58')),'formatDateTime':_0x3cfba9(_0x358190[_0x1aac('0x56')]('locale')),'CommentView':_0x358190[_0x1aac('0x56')](_0x1aac('0x69'))[_0x1aac('0x24')],'CommentsListView':_0x424115,'CommentThreadInputView':_0x5c3cbe}),_0x1580a3[_0x1aac('0x2c')]['on'](_0x1aac('0x6b'),()=>{_0x10cf50['editing']['view'][_0x1aac('0x34')]();}),_0x1580a3[_0x1aac('0x47')]['on'](_0x1aac('0x6b'),()=>{_0x10cf50[_0x1aac('0x3f')][_0x1aac('0x39')]['focus']();}),_0x474b36=_0xeeb5cb[_0x1aac('0x5a')](this[_0x1aac('0x1')][_0x1aac('0x12')],_0x1580a3),_0x474b36[_0x1aac('0x10')](_0x1aac('0x55'))['to'](_0x1580a3,_0x1aac('0x55')),_0x474b36[_0x1aac('0x10')](_0x1aac('0x4e'))['to'](_0x1580a3),_0x474b36[_0x1aac('0x10')](_0x1aac('0xb'))['to'](_0x1580a3,'type',_0x2eb47f=>'suggestion-'+_0x2eb47f),this[_0x1aac('0xe')][_0x1aac('0x64')](_0x255ff8['id'],_0x474b36));const _0xd13bfc=_0x548d6[_0x1aac('0x36')](_0x255ff8[_0x1aac('0x44')],_0x1580a3),_0x15b46c=new _0x9365bd(_0x10cf50,_0x255ff8,_0x1580a3,_0xd13bfc),_0x12989e=_0x255ff8['getAllAdjacentSuggestions']()[_0x1aac('0x5d')](_0xdc1650=>_0xdc1650['isInContent']);_0x1580a3[_0x1aac('0x15')]=_0x10cf50['plugins'][_0x1aac('0x56')](_0x1aac('0x4d'))[_0x1aac('0x71')]['getDescriptions'](_0x12989e),this['_suggestionToController'][_0x1aac('0x64')](_0x255ff8,_0x15b46c),this[_0x1aac('0x46')][_0x1aac('0x64')](_0x1580a3,_0x15b46c);const _0x292be5=_0xeeb5cb[_0x1aac('0x13')]({'view':_0x474b36,'target':()=>{const _0x42342c=[],_0x4641cd=_0x255ff8['getAllAdjacentSuggestions']()['filter'](_0x1354b0=>_0x1354b0[_0x1aac('0x6')]);for(const _0x2a45cf of _0x4641cd)_0x42342c[_0x1aac('0x4a')](..._0x2a45cf[_0x1aac('0x0')]());return _0x23d113(_0x10cf50[_0x1aac('0x3f')],_0x42342c);},'type':()=>_0x1aac('0x19')+_0x15b46c[_0x1aac('0x39')][_0x1aac('0xb')]});_0x548d6[_0x1aac('0x43')](_0x1580a3,_0x292be5),_0xeeb5cb['add'](_0x292be5),_0x76c99a[_0x1aac('0x53')](_0x292be5);}[_0x1aac('0x1b')](_0x38bc52){const _0x4c6c7f=this[_0x1aac('0x1')][_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x14')),_0x172947=this[_0x1aac('0x1')][_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x63')),_0x529c3f=this[_0x1aac('0x5b')]['get'](_0x38bc52),_0x542c01=_0x529c3f['view'],_0x4166e0=_0x172947[_0x1aac('0x52')](_0x542c01);_0x4c6c7f[_0x1aac('0x32')](_0x542c01),_0x4166e0&&_0x172947[_0x1aac('0x4')](_0x4166e0),this[_0x1aac('0x5b')][_0x1aac('0x48')](_0x38bc52),this[_0x1aac('0x46')][_0x1aac('0x48')](_0x542c01),_0x529c3f[_0x1aac('0x2e')]();}[_0x1aac('0x67')](_0x49e9f3){if(!_0x49e9f3[_0x1aac('0x6')]||!this['_suggestionToController'][_0x1aac('0x62')](_0x49e9f3))return;const _0x7c024d=this['editor'][_0x1aac('0x1f')][_0x1aac('0x56')](_0x1aac('0x4d')),_0x5ac892=this[_0x1aac('0x5b')][_0x1aac('0x56')](_0x49e9f3),_0x3c3769=_0x49e9f3[_0x1aac('0x45')]();_0x5ac892['view'][_0x1aac('0x15')]=_0x7c024d[_0x1aac('0x71')]['getDescriptions'](_0x3c3769);}['destroy'](){for(const _0x1ac3c5 of this['_suggestionToController'][_0x1aac('0x50')]())this[_0x1aac('0x1b')](_0x1ac3c5);for(const _0x227201 of this[_0x1aac('0xe')][_0x1aac('0x4f')]())_0x227201['mainView'][_0x1aac('0x2e')]();super[_0x1aac('0x2e')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe94c=['plugins','commands','isEnabled','canAccept','unbind','_removePendingAction','PENDING_ACTION_SUGGESTION','_pendingAction','isDirty','commentThreadController','PendingActions','model','change:isDirty','bind','execute','canEditAt','getRanges','destroy','_discardCommand','canDiscard','view','discardSuggestion','_setPendingAction','remove','listenTo','add','get','acceptSuggestion','_acceptCommand','_editor'];(function(_0x2d6265,_0xe94cf2){const _0x14c8d6=function(_0x508605){while(--_0x508605){_0x2d6265['push'](_0x2d6265['shift']());}};_0x14c8d6(++_0xe94cf2);}(_0xe94c,0x122));const _0x14c8=function(_0x2d6265,_0xe94cf2){_0x2d6265=_0x2d6265-0x0;let _0x14c8d6=_0xe94c[_0x2d6265];return _0x14c8d6;};import{ObservableMixin as _0x24debd}from'ckeditor5/src/utils';import{getTranslation as _0x1bea75}from'../utils/common-translations';export default class Ft extends _0x24debd(){constructor(_0xd2b04,_0x2dd03b,_0x381d38,_0x313630){super(),this[_0x14c8('0x15')]=_0x2dd03b,this[_0x14c8('0x0')]=_0x381d38,this[_0x14c8('0x13')]=_0x313630,this[_0x14c8('0x9')]=_0xd2b04,this[_0x14c8('0x8')]=_0xd2b04[_0x14c8('0xb')][_0x14c8('0x6')](_0x14c8('0x7')),this[_0x14c8('0x1c')]=_0xd2b04[_0x14c8('0xb')][_0x14c8('0x6')](_0x14c8('0x1')),this[_0x14c8('0x0')][_0x14c8('0x17')](_0x14c8('0xc'))['to'](this[_0x14c8('0x8')],this[_0x14c8('0x1c')],(_0x2c9d94,_0x4a7148)=>_0x2c9d94||_0x4a7148),this['view']['bind'](_0x14c8('0xd'))['to'](this[_0x14c8('0x8')],'isEnabled',_0x16640b=>_0x16640b&&this['_editor'][_0x14c8('0x15')]['canEditAt'](_0x2dd03b[_0x14c8('0x1a')]())),this[_0x14c8('0x0')][_0x14c8('0x17')](_0x14c8('0x1d'))['to'](this[_0x14c8('0x1c')],_0x14c8('0xc'),_0x553aae=>_0x553aae&&this['_editor'][_0x14c8('0x15')][_0x14c8('0x19')](_0x2dd03b[_0x14c8('0x1a')]())),this[_0x14c8('0x11')]=null,_0x381d38['isDirty']&&this[_0x14c8('0x2')](),this['listenTo'](_0x381d38,_0x14c8('0x7'),()=>this[_0x14c8('0x7')]()),this['listenTo'](_0x381d38,_0x14c8('0x1'),()=>this['discardSuggestion']()),this[_0x14c8('0x4')](_0x381d38,_0x14c8('0x16'),()=>{_0x381d38[_0x14c8('0x12')]?this[_0x14c8('0x2')]():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand'][_0x14c8('0x18')](this[_0x14c8('0x15')]['id']);}[_0x14c8('0x1')](){this[_0x14c8('0x1c')][_0x14c8('0x18')](this[_0x14c8('0x15')]['id']);}[_0x14c8('0x1b')](){this[_0x14c8('0x0')][_0x14c8('0xe')]('isEnabled'),this[_0x14c8('0x0')][_0x14c8('0xe')](_0x14c8('0xd')),this['view'][_0x14c8('0xe')](_0x14c8('0x1d')),this['stopListening'](),this[_0x14c8('0x13')][_0x14c8('0x1b')](),this['_pendingAction']&&this[_0x14c8('0xf')]();}[_0x14c8('0x2')](){const _0x14fda=_0x1bea75(this['_editor']['locale'],_0x14c8('0x10'));this[_0x14c8('0x11')]=this['_editor'][_0x14c8('0xa')][_0x14c8('0x6')](_0x14c8('0x14'))[_0x14c8('0x5')](_0x14fda);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x14c8('0x9')][_0x14c8('0xa')][_0x14c8('0x6')](_0x14c8('0x14'))[_0x14c8('0x3')](this['_pendingAction']),this[_0x14c8('0x11')]=null;}}
|