@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230903.0 → 0.0.0-nightly-20230905.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 _0x1e47=['catch','consumable','conversion','getRanges','_addSuggestionMarker','skipNestingCheck','containsPosition','_descriptionFactory','chain','markers','track-changes-command-not-found','commentThread','_joinSuggestions','isTouching','length','_onDiscard','removeMarker','commandName','change:data','PENDING_ACTION_SUGGESTION','isIntersectingWithRange','ck-suggestion-marker--active','formatBlock','isAtEnd','deletion','getUser','updateMarker','fromRange','registerCustomCallback','before','elementStart','after','split','resolve','getShiftedBy','return','removeAttribute','init','addHighlight','formatBlock:discard','suggestionUnloaded','getIntersection','authorName','some','howMany','_setSuggestionRange','forward','getSuggestions','marker-count','isEqual','model','insertion','containerElement','removeMarkers','end','data','createElement','schema','TrackChangesEditing','rethrowUnexpectedError','containsRange','_trackFormatChanges','_rangeIsInLocalUserInsertion','markerReady','_saved','isInsideObject','enableCommand','createRange','for','oldRange','keys','type','isObject','open','parent','push','getSuggestionCallback','getItems','_refreshSuggestionsChain','_removeSuggestion','addSuggestionData','_handleNewSuggestionMarker','isCollapsed','updateSuggestion','fire','_setSuggestionData','author','targetPosition','requires','attributes','editing','config','low','formatInline:accept','isAfter','removed','getRange','enqueueChange','addComment','size','discardAllSuggestions','dataToMarker','removeMarker:suggestion:formatBlock','getCustomProperty','ready','ck-suggestion-marker-','deletion:','createSelection','createdAt','accepted','formatBlock:chain','addCommentThread','showSuggestionHighlights','set','PendingActions','suggestion-type','from','element','map','acceptSuggestion','addClass','isDocumentOperation','_suggestions','delete','options','deleteContent','$marker','normal','setTo','change','editingDowncast','forceDefaultExecution','data-suggestion','suggestion','markMultiRangeInsertion','getAncestors','tablePasteChainId','@external','then','_getAuthorFromId','newRange','root','track-changes-adapter-already-set','getCommentThread','markDeletion','batch','trackChangesCommand','track-changes-user-not-found','getChangedMarkers','mapper','accept','Users','authoredAt','remove','discardSelectedSuggestions','bindElementToMarker','_commentsRepository','_joinWithAdjacentSuggestions','assign','start','getSuggestion','suggestionLoaded','_splitMarkerName','stopListening','addSuggestion','isRemovable','values','range','acceptSelectedSuggestions','createPositionBefore','addUser','getMultiRangeId','subType','isNextTo','selection','formatBlock:join','addRange','isInContent','getAttribute','createPositionAt','position','toViewElement','markMultiRangeBlockFormat','rejected','isBlock','fromCharCode','trackChanges.mergeNestedSuggestions','sort','markBlockFormat','get','unbindElementFromMarkerName','isUndo','formatBlock:accept','plugins','ck-suggestion-marker','dataReady','reconvertMarker','consume','$graveyard','editor','formatInline','_addThreadToSuggestion','update:suggestion','dataDowncast','pluginName','widget','deletion:accept','_customCallbacks','refresh','insertContent','substr','markerToData','$textProxy','never','_getExternalAuthor','includes','_createSuggestion','clone','backward','_suggestionState','elementEnd','discardSuggestion','collaboration.channelId','formatInline:discard','ck-suggestion-marker-formatBlock','item','high','getDifference','markerName','_isForcedDefaultExecutionBlock','track-changes-adapter-missing-getsuggestion','setSelection','rootName','getNearestSelectionRange','getFirstRange','isLocal','_suggestionFactory','addMarker:suggestion:formatBlock','suggestion:','setAttribute','lowest','_defaultCallbacks','insertion:discard','multipleBlocks','always','markInlineFormat','createRangeIn','move','filter','insertion:','detach','getAllAdjacentSuggestions','unbind','acceptAllSuggestions','markMultiRangeDeletion','addMarkerName','_enabledCommands','getMarkers','activeMarkers','name','default','writer','creator','add','value','discard','isAtStart','getFirstMarker','_mergeNestedSuggestions','trackChanges.trackFormatChanges','next','isMultiRange','adapter','_findSuggestions','originalSuggestionId','nodeAfter','formatBlock:','error-saving-suggestion-data-suggestion-discarded','isOwn','_registerDefaultCallbacks','_updateSuggestionData','_breakSuggestionMarker','addMarker','isLimit','notReady','multi','elementToElement','buildSuggestion','group','hasComments','differ','clear','removeClass','containsRangeInObject','_adapter','formatInline:','formatGroupId','change:_saved','execute','track-changes-suggestion-data-mismatch','deletion:chain','isArray','_checkSuggestionCorrectness','commands','listenTo','_cutOutSuggestionMarker','_model','define','formatInline:join','document','previous','CommentsRepository','nodeBefore','every','external:','getLastMatchingPosition','join','highest','_editor','has','isBefore','stop','_isDataLoaded','head','locale'];(function(_0x3764ac,_0x1e47f2){const _0x5584cc=function(_0x89fbe1){while(--_0x89fbe1){_0x3764ac['push'](_0x3764ac['shift']());}};_0x5584cc(++_0x1e47f2);}(_0x1e47,0x14c));const _0x5584=function(_0x3764ac,_0x1e47f2){_0x3764ac=_0x3764ac-0x0;let _0x5584cc=_0x1e47[_0x3764ac];return _0x5584cc;};import{Plugin as _0x567342,PendingActions as _0x220b1f}from'ckeditor5/src/core';import{LiveRange as _0x2e8331}from'ckeditor5/src/engine';import{CKEditorError as _0x5e6c53,uid as _0x2568c4,priorities as _0x48e1ad,logWarning as _0x2ae9fa}from'ckeditor5/src/utils';import{toWidget as _0x49fa6b}from'ckeditor5/src/widget';import{Users as _0x20faa4,hashObject as _0xdb6fad}from'ckeditor5-collaboration/src/collaboration-core';import _0x610404 from'./commands/trackchangescommand';import _0x56f8aa from'./commands/acceptsuggestioncommand';import _0x5ecc88 from'./commands/discardsuggestioncommand';import _0x46b0a1 from'./commands/executeonallsuggestionscommand';import _0x164b2a from'./commands/executeonselectedsuggestionscommand';import _0x56cb33 from'./suggestion';import _0x2d33c7 from'./suggestiondescriptionfactory';import _0x242c6a from'./integrations/alignment';import _0xcc7437 from'./integrations/basicstyles';import _0x453c75 from'./integrations/blockquote';import _0x24596b from'./integrations/ckbox';import _0x5c3bd3 from'./integrations/codeblock';import _0x8c3d1d from'./integrations/comments';import _0x1577b0 from'./integrations/deletecommand';import _0x420581 from'./integrations/documentlist';import _0xc9b4ef from'./integrations/entercommand';import _0x40dc75 from'./integrations/findandreplace';import _0x2a5fda from'./integrations/font';import _0x4f371d from'./integrations/formatpainter';import _0x1a66b2 from'./integrations/heading';import _0x236219 from'./integrations/highlight';import _0x48ec2e from'./integrations/horizontalline';import _0x3da7a8 from'./integrations/htmlembed';import _0x50b783 from'./integrations/image';import _0x5f1239 from'./integrations/imagereplace';import _0x5a0b99 from'./integrations/importword';import _0xa5b44d from'./integrations/indent';import _0x179f13 from'./integrations/inputcommand';import _0x400a7a from'./integrations/link';import _0xd2a93a from'./integrations/list';import _0x4f5d13 from'./integrations/listproperties';import _0xab110f from'./integrations/mediaembed';import _0x432d86 from'./integrations/mention';import _0x2c4ead from'./integrations/pagebreak';import _0x2180b2 from'./integrations/paragraph';import _0x362e16 from'./integrations/removeformat';import _0xba7520 from'./integrations/restrictededitingmode';import _0x3eb022 from'./integrations/shiftentercommand';import _0x28b53e from'./integrations/standardeditingmode';import _0x4e581b from'./integrations/style';import _0x1c42e4 from'./integrations/table';import _0x38d211 from'./integrations/tablemergesplit';import _0x9305b6 from'./integrations/tableheadings';import _0x1e4c3e from'./integrations/tableclipboard';import _0x1c97ac from'./integrations/tablecolumnresize';import _0x45131f from'./integrations/template';import _0x570f72 from'./integrations/tableofcontents';import _0x435201 from'./integrations/title';import _0x18b5cb from'./integrations/undo';import{getTranslation as _0x58b0eb}from'./utils/common-translations';import _0xc9fb64 from'./integrations/tablecaption';import _0x12aa84 from'./integrations/documentlistproperties';import _0x30f588 from'./integrations/tableproperties';import{isEqual as _0xddcb7a}from'lodash-es';export default class p extends _0x567342{static get[_0x5584('0x51')](){return['CommentsRepository',_0x20faa4,_0x220b1f,_0x242c6a,_0xcc7437,_0x453c75,_0x24596b,_0x5c3bd3,_0x8c3d1d,_0x1577b0,_0x420581,_0x12aa84,_0xc9b4ef,_0x40dc75,_0x2a5fda,_0x4f371d,_0x1a66b2,_0x236219,_0x48ec2e,_0x3da7a8,_0x50b783,_0x5f1239,_0x5a0b99,_0xa5b44d,_0x179f13,_0x400a7a,_0xd2a93a,_0x4f5d13,_0xab110f,_0x432d86,_0x2c4ead,_0x2180b2,_0x362e16,_0xba7520,_0x3eb022,_0x28b53e,_0x4e581b,_0x1c42e4,_0x38d211,_0x9305b6,_0xc9fb64,_0x1e4c3e,_0x1c97ac,_0x570f72,_0x30f588,_0x45131f,_0x435201,_0x18b5cb];}static get[_0x5584('0xc5')](){return _0x5584('0x33');}constructor(_0x373674){function _0x203257(_0x17fd41){return _0x17fd41[_0x5584('0x6f')](_0x557a57=>String[_0x5584('0xb2')](_0x557a57))['join']('');}super(_0x373674),this['set'](_0x5584('0xfb'),[]),this['on']('change:activeMarkers',(_0x5c3f21,_0x4088c5,_0xe32b68,_0x469bbd)=>{this[_0x5584('0x12b')][_0x5584('0x7a')](()=>{for(const _0xe1f5f8 of[..._0x469bbd,..._0xe32b68])this[_0x5584('0x12b')][_0x5584('0x2')][_0x5584('0x138')](_0xe1f5f8)&&_0x373674[_0x5584('0x53')][_0x5584('0xbd')](_0xe1f5f8);});}),this[_0x5584('0x0')]=new _0x2d33c7(this[_0x5584('0xc0')][_0x5584('0x2b')][_0x5584('0x32')],this[_0x5584('0xc0')][_0x5584('0x13d')]),this['_adapter']=null,this['_suggestionFactory']=new Dt(this[_0x5584('0xc0')]),this[_0x5584('0x73')]=new Map(),this[_0x5584('0x95')]=_0x373674[_0x5584('0xba')][_0x5584('0xb6')]('CommentsRepository'),this['_enabledCommands']=new Set(),this[_0x5584('0x12b')]=this['editor'][_0x5584('0x2b')],this[_0x5584('0xd4')]=new WeakMap(),this[_0x5584('0xde')]=!0x1,_0x373674[_0x5584('0x54')][_0x5584('0x12c')](_0x5584('0x106'),_0x5584('0xfd')),this[_0x5584('0x36')]=_0x373674[_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0x106')),_0x373674[_0x5584('0x54')]['define'](_0x5584('0xb3'),!0x0),this[_0x5584('0x105')]=_0x373674[_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0xb3')),this[_0x5584('0x8b')]=new _0x610404(_0x373674,this[_0x5584('0xf9')]),this[_0x203257([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x203257([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x36]);}[_0x5584('0x1e')](){const _0x4003a6=this[_0x5584('0xc0')];_0x4003a6['conversion']['for'](_0x5584('0x7b'))['markerToHighlight']({'model':_0x5584('0x7e'),'view':_0x2a19d2=>{const {id:_0x44762d,type:_0x4cf857}=this['_splitMarkerName'](_0x2a19d2['markerName']),_0x3060e2=['ck-suggestion-marker',_0x5584('0x62')+_0x4cf857];let _0x26ff45=0xbb8;return this[_0x5584('0xfb')][_0x5584('0xd0')](_0x2a19d2[_0x5584('0xdd')])&&(_0x3060e2[_0x5584('0x44')](_0x5584('0xe')),_0x26ff45=0xbc2),_0x5584('0x11')==_0x4cf857&&(_0x26ff45+=0x5),{'classes':_0x3060e2,'attributes':{'data-suggestion':_0x44762d},'priority':_0x26ff45};}}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0xc4'))[_0x5584('0x100')](_0x18c6d6=>{_0x18c6d6['on']('addMarker:suggestion',(_0x4197b6,_0x90034f,_0x1e9a0a)=>{if(!_0x1e9a0a['options'][_0x5584('0x69')])return;const _0x264855=_0x90034f[_0x5584('0xda')];if(!_0x264855)return;const _0x16303a=_0x1e9a0a[_0x5584('0x8e')][_0x5584('0xae')](_0x264855);_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')]['isObject'](_0x264855)&&_0x16303a&&!_0x16303a[_0x5584('0x60')](_0x5584('0xc6'))&&_0x16303a['is'](_0x5584('0x2d'))&&_0x49fa6b(_0x16303a,_0x1e9a0a['writer']);},{'priority':_0x5584('0xdb')});}),_0x4003a6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':_0x5584('0x7e'),'view':(_0x56b0e8,_0x339139)=>{if(!_0x339139[_0x5584('0x75')][_0x5584('0x69')])return null;const {type:_0x5cd1fc}=this[_0x5584('0x9b')](_0x56b0e8[_0x5584('0xdd')]);return{'classes':[_0x5584('0xbb'),_0x5584('0x62')+_0x5cd1fc],'priority':0xbb8};}});const _0x507e2a=({showActiveMarkers:_0x5394f5=!0x0}={})=>(_0x11a417,_0x4a889f,_0x4107b9)=>{if(!_0x4a889f[_0x5584('0xda')])return;if(_0x4a889f[_0x5584('0xda')]['is'](_0x5584('0xa7')))return void _0x4107b9[_0x5584('0x13f')][_0x5584('0xbe')](_0x4a889f[_0x5584('0xda')],_0x11a417[_0x5584('0xfc')]);const _0x43e39a=_0x4107b9['mapper']['toViewElement'](_0x4a889f[_0x5584('0xda')]);if(!(_0x4a889f[_0x5584('0xda')]['is']('element')&&_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')][_0x5584('0xb1')](_0x4a889f[_0x5584('0xda')])&&!_0x43e39a['getCustomProperty'](_0x5584('0x1f'))))return;const {id:_0x5eb47b}=this[_0x5584('0x9b')](_0x4a889f[_0x5584('0xdd')]);_0x4107b9[_0x5584('0xfe')][_0x5584('0x71')]([_0x5584('0xbb'),_0x5584('0xd9')],_0x43e39a),_0x4107b9[_0x5584('0xfe')][_0x5584('0xe8')](_0x5584('0x7d'),_0x5eb47b,_0x43e39a),_0x4107b9[_0x5584('0x8e')][_0x5584('0x94')](_0x43e39a,_0x4a889f['markerName']),_0x5394f5&&(this[_0x5584('0xfb')][_0x5584('0xd0')](_0x4a889f['markerName'])?_0x4107b9[_0x5584('0xfe')][_0x5584('0x71')]('ck-suggestion-marker--active',_0x43e39a):_0x4107b9[_0x5584('0xfe')][_0x5584('0x11d')]('ck-suggestion-marker--active',_0x43e39a));for(const _0x5aa4c0 of _0x4003a6[_0x5584('0x2b')][_0x5584('0xef')](_0x4a889f[_0x5584('0xda')])[_0x5584('0x46')]())_0x4107b9[_0x5584('0x13f')][_0x5584('0xbe')](_0x5aa4c0,_0x11a417['name']);_0x4107b9[_0x5584('0x13f')][_0x5584('0xbe')](_0x4a889f[_0x5584('0xda')],_0x11a417[_0x5584('0xfc')]);};_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0xc4'))[_0x5584('0x100')](_0x205eef=>{_0x205eef['on'](_0x5584('0xe6'),(_0x2bd058,_0x562bd3,_0x2f40d4)=>{_0x2f40d4[_0x5584('0x75')][_0x5584('0x69')]&&_0x507e2a({'showActiveMarkers':!0x1})(_0x2bd058,_0x562bd3,_0x2f40d4);},{'priority':_0x5584('0x136')});}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0xc4'))[_0x5584('0xcc')]({'model':_0x5584('0x7e'),'view':(_0x25aa77,_0x16011b)=>_0x16011b[_0x5584('0x75')]['showSuggestionHighlights']?null:{'group':_0x5584('0x7e'),'name':_0x25aa77[_0x5584('0xcb')](0xb)}}),_0x4003a6['conversion']['for']('upcast')[_0x5584('0x117')]({'view':{'name':_0x5584('0x7e'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4cba31,{writer:_0x506e9c})=>{let _0x3ed638=_0x5584('0xe7')+_0x4cba31['getAttribute'](_0x5584('0x6c'))+':'+_0x4cba31['getAttribute']('id');return _0x4cba31[_0x5584('0xab')](_0x5584('0x29'))&&(_0x3ed638+=':'+_0x4cba31['getAttribute'](_0x5584('0x29'))),_0x506e9c[_0x5584('0x31')](_0x5584('0x77'),{'data-name':_0x3ed638});}}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')]('upcast')[_0x5584('0x5e')]({'view':'suggestion'}),_0x4003a6[_0x5584('0x140')]['for'](_0x5584('0x7b'))[_0x5584('0x100')](_0x333127=>{_0x333127['on'](_0x5584('0xe6'),_0x507e2a(),{'priority':_0x5584('0xdb')});}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0x7b'))[_0x5584('0x100')](_0x1dbbb8=>{_0x1dbbb8['on'](_0x5584('0x5f'),(_0x49aa98,_0x4d5637,_0xb625ea)=>{const _0x50d6e0=_0xb625ea[_0x5584('0x8e')]['markerNameToElements'](_0x4d5637[_0x5584('0xdd')]);if(_0x50d6e0)for(const _0x417200 of _0x50d6e0)_0x417200['getCustomProperty'](_0x5584('0x1f'))||(_0xb625ea['writer'][_0x5584('0x11d')]([_0x5584('0xbb'),_0x5584('0xd9'),_0x5584('0xe')],_0x417200),_0xb625ea[_0x5584('0xfe')][_0x5584('0x1d')]('data-suggestion',_0x417200),_0xb625ea[_0x5584('0x8e')][_0x5584('0xb7')](_0x417200,_0x4d5637[_0x5584('0xdd')]));},{'priority':_0x5584('0xdb')});}),_0x4003a6[_0x5584('0x2b')][_0x5584('0x12e')]['registerPostFixer'](_0x22841b=>{let _0x2bb3d5=!0x1;const _0x55d26d=Array[_0x5584('0x6d')](_0x4003a6[_0x5584('0x2b')][_0x5584('0x12e')][_0x5584('0x11b')][_0x5584('0x8d')]()),_0x31b923=new Set();for(const {name:_0x314245,data:_0x359271}of _0x55d26d){const {group:_0x273217,type:_0x54436b,id:_0xcce755}=this[_0x5584('0x9b')](_0x314245);if(_0x5584('0x7e')!==_0x273217)continue;const _0x24e2d6=this[_0x5584('0x73')]['get'](_0xcce755);if(null!=_0x359271[_0x5584('0x85')]){_0x5584('0xc1')==_0x54436b&&(_0x2bb3d5=_0x2bb3d5||Mt(_0x359271[_0x5584('0x85')],_0x314245,_0x22841b,_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')]));if(_0x359271['newRange'][_0x5584('0x4b')]||_0x5584('0xbf')==_0x359271[_0x5584('0x85')][_0x5584('0x86')][_0x5584('0xe1')]||_0x5584('0xf')==_0x54436b&&!Nt(_0x359271[_0x5584('0x85')])||_0x5584('0x11')==_0x54436b&&!(!_t(_0x486798=_0x359271['newRange'])&&!function(_0x438d8f){return _0x438d8f[_0x5584('0x98')][_0x5584('0x43')]==_0x438d8f[_0x5584('0x2f')][_0x5584('0x131')]&&_0x438d8f[_0x5584('0x98')]['isAtEnd'];}(_0x486798)))_0x22841b[_0x5584('0x9')](_0x314245),_0x2bb3d5=!0x0;else{if(!_0x24e2d6||!_0x24e2d6[_0x5584('0xaa')])continue;_0x31b923['add'](_0x24e2d6);}}}var _0x486798;return _0x31b923[_0x5584('0x5c')]>0x0&&(_0x2bb3d5=!!this[_0x5584('0x96')](_0x31b923)||_0x2bb3d5),_0x2bb3d5;}),_0x4003a6[_0x5584('0x2b')]['document']['registerPostFixer'](_0x263264=>{let _0x5833f5=!0x1;for(const _0x413824 of _0x4003a6[_0x5584('0x2b')][_0x5584('0x12e')][_0x5584('0x11b')]['getChanges']()){if('insert'!=_0x413824[_0x5584('0x40')])continue;const _0x738436=_0x413824[_0x5584('0xad')][_0x5584('0x1b')](_0x413824['length']);if(_0x738436[_0x5584('0x10')])for(const _0x4fd6f3 of this[_0x5584('0x73')]['values']()){if(_0x4fd6f3['isMultiRange']||!_0x4fd6f3['isInContent'])continue;if(_0x5584('0xf')!=_0x4fd6f3[_0x5584('0x40')])continue;const _0x91a82c=_0x4fd6f3[_0x5584('0xe3')]();if(_0x91a82c['start'][_0x5584('0x43')]!=_0x91a82c[_0x5584('0x2f')][_0x5584('0x43')]&&_0x91a82c[_0x5584('0x2f')]['isEqual'](_0x413824['position'])){const _0x2f0f1e=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0x91a82c['start'],_0x738436);_0x263264[_0x5584('0x13')](_0x4fd6f3[_0x5584('0x104')](),{'range':_0x2f0f1e}),_0x5833f5=!0x0;}}}return _0x5833f5;}),_0x4003a6['model'][_0x5584('0x2')]['on'](_0x5584('0xc3'),(_0x2f72c1,_0x2cb669,_0x283054)=>{if(null==_0x283054){const {id:_0x3856a1}=this[_0x5584('0x9b')](_0x2cb669[_0x5584('0xfc')]),_0x4695b9=this[_0x5584('0x73')]['get'](_0x3856a1);_0x4695b9&&_0x4695b9[_0x5584('0xf8')](_0x2cb669['name']);}}),_0x4003a6['model'][_0x5584('0x12e')]['on'](_0x5584('0xb'),()=>{const _0x226d68=Array[_0x5584('0x6d')](_0x4003a6[_0x5584('0x2b')]['document'][_0x5584('0x11b')][_0x5584('0x8d')]())[_0x5584('0xf1')](_0xc1fb3=>_0x5584('0x7e')===this['_splitMarkerName'](_0xc1fb3[_0x5584('0xfc')])[_0x5584('0x119')]);if(0x0===_0x226d68[_0x5584('0x7')])return;_0x226d68[_0x5584('0xb4')]((_0x5e9882,_0x39417c)=>{const _0x352852=_0x5e9882[_0x5584('0x30')]['oldRange'],_0x488caf=_0x39417c[_0x5584('0x30')][_0x5584('0x3e')];return null===_0x352852&&null===_0x488caf?0x0:null===_0x352852&&null!==_0x488caf?-0x1:null!==_0x352852&&null===_0x488caf?0x1:_0x352852['start'][_0x5584('0x139')](_0x488caf[_0x5584('0x98')])?-0x1:0x1;});const _0x5c8044=new Set(),_0x4dd9cd=new Set();for(const {name:_0x27bdd1,data:_0x217b91}of _0x226d68){const {id:_0x52b413}=this[_0x5584('0x9b')](_0x27bdd1);if(null===_0x217b91[_0x5584('0x3e')]){const _0x548633=this[_0x5584('0x4a')](_0x27bdd1);_0x4dd9cd[_0x5584('0x100')](_0x548633);}else{const _0x38f6db=this[_0x5584('0x73')][_0x5584('0xb6')](_0x52b413);null!==_0x217b91[_0x5584('0x85')]||_0x38f6db['isInContent']?(_0x5c8044['add'](_0x38f6db[_0x5584('0x13c')]),_0x4dd9cd[_0x5584('0x100')](_0x38f6db)):this['_removeSuggestion'](_0x38f6db);}}_0x4dd9cd[_0x5584('0x5c')]>0x0&&this[_0x5584('0x47')](_0x4dd9cd);for(const _0x3d4198 of _0x5c8044)this[_0x5584('0x4d')]('suggestionChanged',_0x3d4198);}),_0x4003a6['model']['on']('applyOperation',(_0x31c74b,_0x58fdc6)=>{const _0x35ebfb=_0x58fdc6[0x0];if(!this[_0x5584('0x73')]['size'])return;if(!_0x35ebfb[_0x5584('0x72')])return;if(_0x35ebfb[_0x5584('0x8a')][_0x5584('0xb8')]||!_0x35ebfb[_0x5584('0x8a')][_0x5584('0xe4')])return;let _0x6a123a,_0x4b32e4;switch(_0x35ebfb['type']){case'insert':_0x6a123a=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb[_0x5584('0xad')]),_0x4b32e4=_0x6a123a['getShiftedBy'](_0x35ebfb[_0x5584('0x25')]);break;case _0x5584('0x19'):_0x6a123a=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb['splitPosition']),_0x4b32e4=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb['moveTargetPosition']);break;case _0x5584('0xf0'):_0x6a123a=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb[_0x5584('0x50')]),_0x4b32e4=_0x6a123a[_0x5584('0x1b')](_0x35ebfb['howMany']);break;default:return;}const _0x592030=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0x6a123a,_0x4b32e4);_0x4003a6[_0x5584('0x2b')][_0x5584('0x7a')](()=>{for(const {suggestion:_0x24a37f,meta:_0x290076}of this[_0x5584('0x10a')](_0x592030)){if(_0x24a37f[_0x5584('0x108')])continue;if(_0x5584('0xc1')==_0x24a37f[_0x5584('0x40')])continue;const _0x3c4114=_0x24a37f[_0x5584('0x30')]&&_0x24a37f[_0x5584('0x30')]['multipleBlocks'];('formatBlock'!=_0x24a37f['type']||_0x5584('0x19')==_0x35ebfb[_0x5584('0x40')]&&!_0x3c4114)&&(_0x290076['containsRangeInObject']||_0x5584('0x2c')==_0x24a37f[_0x5584('0x40')]&&_0x290076[_0x5584('0x10f')]||_0x24a37f[_0x5584('0xe3')]()[_0x5584('0x35')](_0x592030)&&this[_0x5584('0x112')](_0x24a37f,_0x6a123a,_0x4b32e4));}});},{'priority':_0x5584('0xe9')}),_0x4003a6[_0x5584('0x2b')]['on']('deleteContent',(_0x59c55a,_0x367e21)=>{const _0x5968f1=_0x367e21[0x0],_0x4c923d=_0x367e21[0x1];if(_0x4c923d&&_0x4c923d[_0x5584('0x7c')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5584('0x8b')][_0x5584('0x101')])return;if(_0x5968f1[_0x5584('0x4b')])return;const _0x4ecb75=_0x4003a6['model']['schema'],{start:_0x620e8f,end:_0xa71063}=_0x5968f1[_0x5584('0xe3')](),_0xaf57f5=_0x620e8f[_0x5584('0x10c')]&&_0x4ecb75[_0x5584('0x114')](_0x620e8f[_0x5584('0x10c')])?null:_0x4ecb75['getNearestSelectionRange'](_0x620e8f,_0x5584('0x27')),_0x1ef61c=_0xa71063[_0x5584('0x131')]&&_0x4ecb75['isLimit'](_0xa71063['nodeBefore'])?null:_0x4ecb75[_0x5584('0xe2')](_0xa71063,_0x5584('0xd3')),_0x5da754=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0xaf57f5?_0xaf57f5[_0x5584('0x98')]:_0x620e8f,_0x1ef61c?_0x1ef61c[_0x5584('0x2f')]:_0xa71063);_0x4003a6[_0x5584('0x2b')][_0x5584('0x7a')](_0x3c8610=>{this['markDeletion'](_0x5da754);const _0x3ff74e=_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')]['getNearestSelectionRange'](_0x5da754[_0x5584('0x98')]);_0x5968f1['is']('documentSelection')?_0x3c8610[_0x5584('0xe0')](_0x3ff74e):_0x5968f1[_0x5584('0x79')](_0x3ff74e);}),_0x59c55a[_0x5584('0x13a')]();},{'priority':_0x48e1ad[_0x5584('0x78')]+0xa}),_0x4003a6[_0x5584('0x2b')]['on']('insertContent',(_0x3ddf10,_0x2578d4)=>{const _0x3e35b0=_0x2578d4[_0x2578d4[_0x5584('0x7')]-0x1];_0x3e35b0&&_0x3e35b0['forceDefaultExecution']||this[_0x5584('0xde')]||this[_0x5584('0x8b')][_0x5584('0x101')]&&(_0x4003a6[_0x5584('0x2b')][_0x5584('0x7a')](()=>{let _0x5b46fd=_0x4003a6[_0x5584('0x2b')][_0x5584('0xca')](_0x2578d4[0x0],_0x2578d4[0x1],_0x2578d4[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b46fd)return;_0x3ddf10[_0x5584('0x1c')]=_0x5b46fd[_0x5584('0xd2')]();const _0x359c3c=_0x5b46fd['end']['nodeBefore'],_0x40cc3c=_0x4003a6['model'][_0x5584('0x32')];_0x359c3c&&_0x40cc3c[_0x5584('0xb1')](_0x359c3c)&&!_0x40cc3c['isObject'](_0x359c3c)&&(_0x5b46fd=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0x5b46fd[_0x5584('0x98')],_0x4003a6[_0x5584('0x2b')]['createPositionAt'](_0x359c3c,_0x5584('0x2f')))),this['markInsertion'](_0x5b46fd);}),_0x3ddf10[_0x5584('0x13a')]());},{'priority':_0x5584('0xdb')}),this['editor'][_0x5584('0x128')]['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x32a3db=new _0x56f8aa(_0x4003a6,this['_suggestions']);_0x4003a6['commands'][_0x5584('0x100')]('acceptSuggestion',_0x32a3db),this[_0x5584('0x3b')](_0x5584('0x70'));const _0x3e785c=new _0x5ecc88(_0x4003a6,this['_suggestions']);_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0xd6'),_0x3e785c),this['enableCommand'](_0x5584('0xd6')),_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0xf6'),new _0x46b0a1(_0x4003a6,_0x32a3db,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0xf6')),_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0x5d'),new _0x46b0a1(_0x4003a6,_0x3e785c,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0x5d')),_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0xa1'),new _0x164b2a(_0x4003a6,_0x32a3db,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0xa1')),_0x4003a6['commands']['add'](_0x5584('0x93'),new _0x164b2a(_0x4003a6,_0x3e785c,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0x93'));const _0x108d24=_0x4003a6['plugins'][_0x5584('0xb6')](_0x5584('0x130'));this[_0x5584('0x129')](_0x108d24,_0x5584('0x5b'),(_0x307cb2,{threadId:_0x3a766b})=>{const _0x43e35e=this[_0x5584('0x73')][_0x5584('0xb6')](_0x3a766b);_0x43e35e&&_0x43e35e[_0x5584('0x4')]&&0x1===_0x43e35e['commentThread'][_0x5584('0x7')]&&this[_0x5584('0x111')](_0x3a766b,{'hasComments':!0x0});},{'priority':_0x5584('0x55')}),this[_0x5584('0x129')](_0x108d24,'removeComment',(_0x43bc56,{threadId:_0x470e0e})=>{const _0x209e86=this[_0x5584('0x73')][_0x5584('0xb6')](_0x470e0e);_0x209e86&&_0x209e86['commentThread']&&!_0x209e86[_0x5584('0x4')][_0x5584('0x7')]&&this['_updateSuggestionData'](_0x470e0e,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5584('0x109')](_0x46fd14){if(this['_adapter'])throw new _0x5e6c53(_0x5584('0x87'),this);this[_0x5584('0x11f')]=_0x46fd14;}get[_0x5584('0x109')](){return this[_0x5584('0x11f')];}['getSuggestions']({skipNotAttached:_0x2cdfa6=!0x1,toJSON:_0x215c7b=!0x1}={}){const _0x40e11f=[];for(const _0x4e5b4c of this['_suggestions'][_0x5584('0x9f')]())_0x2cdfa6&&!_0x4e5b4c[_0x5584('0xaa')]||_0x40e11f[_0x5584('0x44')](_0x4e5b4c);return _0x215c7b?_0x40e11f[_0x5584('0x6f')](_0x2afb78=>_0x2afb78['toJSON']()):_0x40e11f;}[_0x5584('0x99')](_0x1a1d26){const _0x2f1081=this[_0x5584('0x73')]['get'](_0x1a1d26);if(!_0x2f1081)throw new _0x5e6c53('track-changes-suggestion-not-found',this);return _0x2f1081;}['hasSuggestion'](_0x2902b2){return this['_suggestions'][_0x5584('0x138')](_0x2902b2);}['addSuggestionData'](_0xce640f){const {authorId:_0x1e06d2,id:_0xc0722b,attributes:_0x2f5312}=_0xce640f,[_0x29ccce,_0x3db219]=_0xce640f[_0x5584('0x40')][_0x5584('0x19')](':'),_0x33be12=this[_0x5584('0x73')][_0x5584('0xb6')](_0xc0722b)||this[_0x5584('0xd1')](_0x29ccce,_0x3db219,_0xc0722b,_0x1e06d2,_0x2f5312);if(this[_0x5584('0xc2')](_0x33be12),this[_0x5584('0x127')](_0x33be12,_0x29ccce,_0x3db219||null,_0x1e06d2),_0x33be12[_0x5584('0x65')]=_0xce640f[_0x5584('0x65')],_0x33be12['_isDataLoaded']=!0x0,_0x2f5312&&_0x2f5312[_0x5584('0x82')]){const _0x1595d7=_0x2f5312[_0x5584('0x82')],_0x165f36=this[_0x5584('0xcf')](_0x1595d7[_0x5584('0x23')]);_0x33be12[_0x5584('0x91')]=_0x1595d7[_0x5584('0x65')],_0x33be12[_0x5584('0x4f')]=_0x165f36,_0x33be12['isExternal']=!0x0;}else _0x33be12[_0x5584('0x91')]=_0xce640f[_0x5584('0x65')];switch(_0xce640f[_0x5584('0x30')]&&(_0x33be12['data']=_0xce640f[_0x5584('0x30')]),_0xce640f[_0x5584('0x52')]&&(_0x33be12[_0x5584('0x52')]=_0xce640f[_0x5584('0x52')]),this[_0x5584('0x11f')]&&this[_0x5584('0x11f')][_0x5584('0x9d')]||(_0x33be12['_saved']=!0x0),this[_0x5584('0xd4')]['get'](_0x33be12)){case'notReady':this['_suggestionState'][_0x5584('0x6a')](_0x33be12,_0x5584('0xbc'));break;case _0x5584('0x38'):_0x33be12[_0x5584('0xaa')]?(this[_0x5584('0x47')](new Set([_0x33be12])),this['_joinWithAdjacentSuggestions'](new Set([_0x33be12])),this[_0x5584('0xd4')][_0x5584('0x6a')](_0x33be12,_0x5584('0x61')),this[_0x5584('0x4d')](_0x5584('0x9a'),_0x33be12)):this['_suggestionState'][_0x5584('0x6a')](_0x33be12,_0x5584('0x58'));}return _0x33be12;}['acceptSuggestion'](_0x2b9f3c){this['forceDefaultExecution'](()=>{this['editor'][_0x5584('0x2b')][_0x5584('0x7a')](()=>{for(const _0xdd002 of _0x2b9f3c[_0x5584('0xf4')]())_0xdd002[_0x5584('0x8f')]();});});}[_0x5584('0xd6')](_0xf8e5fe){this[_0x5584('0x7c')](()=>{this[_0x5584('0xc0')][_0x5584('0x2b')]['change'](()=>{for(const _0x228b06 of _0xf8e5fe[_0x5584('0xf4')]())_0x228b06[_0x5584('0x102')]();});});}[_0x5584('0x3b')](_0x1f2055,_0x1b2ce6){const _0x3c18d3=this['editor']['commands'][_0x5584('0xb6')](_0x1f2055);if(!_0x3c18d3)throw new _0x5e6c53(_0x5584('0x3'),this,{'commandName':_0x1f2055});this['_enabledCommands'][_0x5584('0x100')](_0x3c18d3),_0x1b2ce6&&_0x3c18d3['on'](_0x5584('0x123'),(_0x30adbb,_0x12545d)=>{this[_0x5584('0x8b')][_0x5584('0x101')]&&(this[_0x5584('0xde')]||_0x12545d['length']>0x0&&_0x12545d[_0x12545d[_0x5584('0x7')]-0x1]&&_0x12545d[_0x12545d[_0x5584('0x7')]-0x1][_0x5584('0x7c')]||(_0x1b2ce6((..._0x3bd065)=>_0x3c18d3[_0x5584('0x123')](..._0x3bd065,{'forceDefaultExecution':!0x0}),..._0x12545d),_0x30adbb[_0x5584('0x13a')]()));},{'priority':_0x5584('0xdb')});}['forceDefaultExecution'](_0x375558){let _0x3dfa16,_0x1b4a19;const _0x42365e=this[_0x5584('0xde')];this[_0x5584('0xde')]=!0x0;try{_0x3dfa16=_0x375558();}catch(_0x4e9e24){_0x1b4a19=_0x4e9e24;}return _0x42365e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b4a19&&_0x5e6c53[_0x5584('0x34')](_0x1b4a19,this),_0x3dfa16;}['markInsertion'](_0x2611ad,_0x2f9b74=null,_0x4941c0={}){if(_0x2611ad[_0x5584('0x4b')])return null;const _0x100750=this['editor'][_0x5584('0xba')][_0x5584('0xb6')](_0x5584('0x90'))['me'];for(const {suggestion:_0x469a73,meta:_0xed0523}of this['_findSuggestions'](_0x2611ad,'insertion'))if(_0xed0523[_0x5584('0x10f')]){if(!_0xed0523[_0x5584('0xa6')]){if(_0xed0523[_0x5584('0x11e')]){if(!this[_0x5584('0x105')]||!Ut(_0x469a73,_0x4941c0))continue;return _0x469a73;}if(Ut(_0x469a73,_0x4941c0))return _0x469a73;this[_0x5584('0x112')](_0x469a73,_0x2611ad[_0x5584('0x98')],_0x2611ad['end']);break;}if(_0x2f9b74==_0x469a73['subType']&&Ut(_0x469a73,_0x4941c0)){const _0x1c18c4=_0x469a73[_0x5584('0xe3')]();return _0x1c18c4['start'][_0x5584('0x2a')](_0x2611ad['end'])?this[_0x5584('0x26')](_0x469a73,this[_0x5584('0x12b')]['createRange'](_0x2611ad['start'],_0x1c18c4[_0x5584('0x2f')])):this[_0x5584('0x26')](_0x469a73,this[_0x5584('0x12b')]['createRange'](_0x1c18c4[_0x5584('0x98')],_0x2611ad[_0x5584('0x2f')])),_0x469a73;}}const _0x40dd62=_0x2568c4(),_0x2b1087=_0x100750['id'],_0x4d5116=_0x2f9b74?_0x5584('0xf2')+_0x2f9b74:_0x5584('0x2c'),_0x33b827=this[_0x5584('0x4e')]({'id':_0x40dd62,'type':_0x4d5116,'createdAt':new Date(),'authorId':_0x2b1087,'attributes':_0x4941c0});return this['_addSuggestionMarker'](_0x4d5116,_0x40dd62,_0x2b1087,_0x2611ad),_0x33b827;}[_0x5584('0x7f')](_0xffb752,_0x52b07c=_0x5584('0x116'),_0x2fcb03={}){const _0xae78a9=this['editor'][_0x5584('0xba')]['get'](_0x5584('0x90'))['me'],_0x415421=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x2c'),_0x52b07c,_0x5584('0x135'));for(const _0x3bc1d8 of this[_0x5584('0x28')]())if(_0x3bc1d8[_0x5584('0x4f')]['id']==_0xae78a9['id']&&_0x5584('0x2c')==_0x3bc1d8[_0x5584('0x40')]&&_0x3bc1d8[_0x5584('0xa5')]==_0x52b07c&&Ut(_0x3bc1d8,_0x2fcb03)&&(_0x415421(_0x3bc1d8[_0x5584('0x141')](),_0xffb752)||_0x415421(_0xffb752,_0x3bc1d8[_0x5584('0x141')]()))){for(const _0x1554a6 of _0xffb752)_0x3bc1d8[_0x5584('0xa9')](_0x1554a6);return _0x3bc1d8;}for(const {suggestion:_0x245d3d,meta:_0x2569b3}of this[_0x5584('0x10a')](_0xffb752,'insertion')){if(!_0x2569b3[_0x5584('0x10f')])continue;if(!this[_0x5584('0x105')]&&_0x2569b3[_0x5584('0x11e')])continue;if(!Ut(_0x245d3d,_0x2fcb03))continue;let _0x229d70=!0x0;for(const _0x1d1234 of _0x245d3d[_0x5584('0x141')]())for(const _0x576102 of _0xffb752)if(!_0x1d1234[_0x5584('0x35')](_0x576102)){_0x229d70=!0x1;break;}if(_0x229d70)return _0x245d3d;}const _0x5e17f2=_0x2568c4(),_0x56c004=_0xae78a9['id'],_0x3988ad=_0x5584('0xf2')+_0x52b07c,_0xc6414=this['_setSuggestionData']({'id':_0x5e17f2,'type':_0x3988ad,'createdAt':new Date(),'authorId':_0x56c004,'attributes':_0x2fcb03});for(const _0x3ec5d6 of _0xffb752)this[_0x5584('0x142')](_0x3988ad,_0x5e17f2,_0x56c004,_0x3ec5d6,_0x56cb33['getMultiRangeId']());return _0xc6414;}[_0x5584('0xee')](_0x1e7842,_0x949983,_0x4f2ed6=null,_0x47f275={}){if(_0x4f2ed6=_0x4f2ed6||$t(_0x949983),_0x1e7842[_0x5584('0x4b')])return null;if(_0x5584('0xce')===this[_0x5584('0x36')]){const _0xd73b84=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0xc1'),_0x4f2ed6,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0xd73b84([_0x1e7842],_0x949983,_0x47f275)),null;}const _0x256d8d=this[_0x5584('0xc0')]['plugins']['get']('Users')['me'],_0x52b3ea=[];if(_0x5584('0xed')!==this[_0x5584('0x36')])for(const {suggestion:_0x5e77db,meta:_0xef58c}of this[_0x5584('0x10a')](_0x1e7842,_0x5584('0x2c')))_0xef58c[_0x5584('0x10f')]&&!_0xef58c[_0x5584('0x3a')]&&_0x52b3ea[_0x5584('0x44')](..._0x5e77db['getRanges']());const _0x5e6dd9=function(_0x401395,_0xe1c181){const _0x40ffe4=[];for(const _0xf7c848 of _0xe1c181){const _0x100e9d=_0x401395[_0x5584('0x22')](_0xf7c848);_0x100e9d&&_0x40ffe4['push'](_0x100e9d);}return _0x40ffe4;}(_0x1e7842,_0x52b3ea),_0xac9888=function(_0x19de0a,_0x3c4014){const _0x2aa4d8=[_0x19de0a];for(const _0x16e105 of _0x3c4014){let _0x1ef386=0x0;for(;_0x1ef386<_0x2aa4d8[_0x5584('0x7')];){const _0x4ee056=_0x2aa4d8[_0x1ef386]['getDifference'](_0x16e105);_0x2aa4d8['splice'](_0x1ef386,0x1,..._0x4ee056),_0x1ef386+=_0x4ee056[_0x5584('0x7')];}}return _0x2aa4d8;}(_0x1e7842,_0x52b3ea);_0x5e6dd9[_0x5584('0x7')]&&this[_0x5584('0x12b')][_0x5584('0x7a')](()=>{for(const _0x2a48d1 of _0x5e6dd9){const _0x27663d=this['_suggestionFactory']['getSuggestionCallback'](_0x5584('0xc1'),_0x4f2ed6,_0x5584('0x8f'));this[_0x5584('0x7c')](()=>_0x27663d([_0x2a48d1],_0x949983,_0x47f275));}});for(const _0x593bed of _0xac9888){let _0x274ef9=null,_0x1898cf=_0x593bed[_0x5584('0x98')],_0x235fbc=_0x593bed[_0x5584('0x2f')];for(const {suggestion:_0x6e2e6c,meta:_0x4d34b9}of this[_0x5584('0x10a')](_0x593bed,_0x5584('0xc1'))){if(!_0x4d34b9[_0x5584('0x10f')])continue;if(_0x6e2e6c[_0x5584('0xa5')]!=_0x4f2ed6)continue;if(!Ut(_0x6e2e6c,_0x47f275))continue;const _0x3a033b=_0x6e2e6c[_0x5584('0xe3')]();if(_0x3a033b['containsRange'](_0x593bed,!0x0))return null;_0x1898cf=_0x1898cf[_0x5584('0x139')](_0x3a033b[_0x5584('0x98')])?_0x1898cf:_0x3a033b[_0x5584('0x98')],_0x235fbc=_0x235fbc[_0x5584('0x57')](_0x3a033b['end'])?_0x235fbc:_0x3a033b[_0x5584('0x2f')],_0x274ef9?_0x3a033b[_0x5584('0x98')]['isBefore'](_0x274ef9[_0x5584('0xe3')]()['start'])?(_0x274ef9[_0x5584('0x2e')](),_0x274ef9=_0x6e2e6c):_0x6e2e6c[_0x5584('0x2e')]():_0x274ef9=_0x6e2e6c;}const _0x6b3d59=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x1898cf,_0x235fbc);if(_0x274ef9)this[_0x5584('0x26')](_0x274ef9,_0x6b3d59);else{const _0x11b69e=_0x2568c4(),_0x21c489=_0x256d8d['id'];this[_0x5584('0x4e')]({'id':_0x11b69e,'type':_0x5584('0x120')+_0x4f2ed6,'data':_0x949983,'createdAt':new Date(),'authorId':_0x21c489,'attributes':_0x47f275}),this['_addSuggestionMarker'](_0x5584('0x120')+_0x4f2ed6,_0x11b69e,_0x21c489,_0x6b3d59);}}return null;}[_0x5584('0xb5')](_0x405daa,_0x3823e0,_0x5c525a=[],_0x2f1bdd=null,_0x5561df={}){_0x3823e0['formatGroupId']||(_0x3823e0['formatGroupId']=_0x3823e0[_0x5584('0xa')]),_0x3823e0[_0x5584('0xec')]=_0x405daa['is'](_0x5584('0xa0')),_0x2f1bdd=_0x2f1bdd||$t(_0x3823e0);const _0x4466dd=_0x5c525a[_0x5584('0x6f')](_0x20049b=>Rt(_0x20049b,this[_0x5584('0x12b')])),_0x2cc657=_0x405daa['is'](_0x5584('0xa0'))?_0x405daa:Rt(_0x405daa,this['_model']);if(_0x5584('0xce')===this[_0x5584('0x36')]){const _0x4b9622=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0xf'),_0x2f1bdd,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x4b9622([_0x2cc657],_0x3823e0,_0x5561df)),null;}_0x4466dd[_0x5584('0x44')](_0x2cc657);let _0x1c9620=!0x0;for(const _0x225096 of _0x4466dd)if(!this[_0x5584('0x37')](_0x225096)){_0x1c9620=!0x1;break;}if(_0x1c9620&&_0x5584('0xed')!==this[_0x5584('0x36')]){const _0x3ed1ab=this['_suggestionFactory'][_0x5584('0x45')](_0x5584('0xf'),_0x2f1bdd,'accept');return this[_0x5584('0x7c')](()=>_0x3ed1ab([_0x2cc657],_0x3823e0,_0x5561df)),null;}let _0x3852e4=null,_0x1b6260=_0x2cc657[_0x5584('0x98')],_0x3dc9c8=_0x2cc657[_0x5584('0x2f')];for(const {suggestion:_0x4db707,meta:_0x4da26a}of this[_0x5584('0x10a')](_0x2cc657,_0x5584('0xf'))){if(!_0x4da26a[_0x5584('0x10f')])continue;if(_0x4da26a['isNextTo']||_0x4da26a[_0x5584('0x11e')]||_0x4da26a['isInsideObject'])continue;if(_0x4db707[_0x5584('0x30')][_0x5584('0x121')]!=_0x3823e0[_0x5584('0x121')])continue;if(!Ut(_0x4db707,_0x5561df))continue;const _0x47d198=_0x4db707[_0x5584('0xe3')]();if(_0x4db707[_0x5584('0xa5')]==_0x2f1bdd){if(_0x47d198[_0x5584('0x35')](_0x2cc657,!0x0))return null;_0x1b6260=_0x1b6260[_0x5584('0x139')](_0x47d198['start'])?_0x1b6260:_0x47d198[_0x5584('0x98')],_0x3dc9c8=_0x3dc9c8[_0x5584('0x57')](_0x47d198['end'])?_0x3dc9c8:_0x47d198['end'],_0x3852e4?_0x47d198['start'][_0x5584('0x139')](_0x3852e4[_0x5584('0xe3')]()[_0x5584('0x98')])?(_0x3852e4[_0x5584('0x2e')](),_0x3852e4=_0x4db707):_0x4db707[_0x5584('0x2e')]():_0x3852e4=_0x4db707;}else{const _0x26b6e3=_0x2cc657[_0x5584('0x22')](_0x47d198);this['_cutOutSuggestionMarker'](_0x4db707,_0x26b6e3);}}const _0x4ee9f9=this[_0x5584('0xc0')][_0x5584('0xba')]['get'](_0x5584('0x90'))['me'],_0x35a53c=_0x2568c4(),_0xca08bd=_0x4ee9f9['id'];if(_0x3852e4)return this[_0x5584('0x26')](_0x3852e4,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x1b6260,_0x3dc9c8)),_0x3852e4;{const _0x1f2059=this[_0x5584('0x4e')]({'id':_0x35a53c,'type':_0x5584('0x10d')+_0x2f1bdd,'data':_0x3823e0,'createdAt':new Date(),'authorId':_0xca08bd,'attributes':_0x5561df});return this[_0x5584('0x142')](_0x5584('0x10d')+_0x2f1bdd,_0x35a53c,_0xca08bd,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x1b6260,_0x3dc9c8)),_0x1f2059;}}[_0x5584('0xaf')](_0x341db3,_0xc9480,_0x173369=[],_0x31de38=null,_0x1cd1af={}){_0xc9480[_0x5584('0x121')]||(_0xc9480[_0x5584('0x121')]=_0xc9480[_0x5584('0xa')]);const _0xf5cb12=_0x341db3[0x0];_0xc9480[_0x5584('0xec')]=_0xf5cb12['is'](_0x5584('0xa0')),_0x31de38=_0x31de38||$t(_0xc9480);const _0x4bf592=_0x173369['map'](_0xe3b8bb=>Rt(_0xe3b8bb,this[_0x5584('0x12b')])),_0x2bb033=_0xf5cb12['is']('range')?_0x341db3:_0x341db3['map'](_0x1e5bf4=>Rt(_0x1e5bf4,this[_0x5584('0x12b')]));if(_0x5584('0xce')===this[_0x5584('0x36')]){const _0x3131d8=this[_0x5584('0xe5')][_0x5584('0x45')]('formatBlock',_0x31de38,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x3131d8(_0x2bb033,_0xc9480,_0x1cd1af)),null;}_0x4bf592['push'](..._0x2bb033);let _0x9130d6=!0x0;for(const _0x3afb68 of _0x4bf592)if(!this[_0x5584('0x37')](_0x3afb68)){_0x9130d6=!0x1;break;}if(_0x9130d6&&_0x5584('0xed')!==this[_0x5584('0x36')]){const _0x447898=this[_0x5584('0xe5')]['getSuggestionCallback'](_0x5584('0xf'),_0x31de38,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x447898(_0x2bb033,_0xc9480,_0x1cd1af)),null;}const _0x596829=this[_0x5584('0xc0')][_0x5584('0xba')][_0x5584('0xb6')](_0x5584('0x90'))['me'];for(const _0x56979a of this[_0x5584('0x28')]()){if(_0x56979a[_0x5584('0x4f')]['id']!=_0x596829['id'])continue;if(_0x5584('0xf')!=_0x56979a[_0x5584('0x40')]||_0x56979a[_0x5584('0x30')][_0x5584('0x121')]!=_0xc9480[_0x5584('0x121')])continue;if(!Ut(_0x56979a,_0x1cd1af))continue;const _0x5d55fd=_0x56979a[_0x5584('0xa5')]==_0x31de38;for(let _0xd25951=0x0;_0xd25951<_0x2bb033[_0x5584('0x7')];_0xd25951++){const _0x584ecd=_0x2bb033[_0xd25951];for(const _0x465acb of _0x56979a[_0x5584('0xfa')]()){const _0x22916f=_0x465acb[_0x5584('0x59')]();if(_0x584ecd[_0x5584('0x2a')](_0x22916f)){_0x5d55fd?(_0x2bb033['splice'](_0xd25951,0x1),_0xd25951--):_0x56979a[_0x5584('0x9')](_0x465acb[_0x5584('0xfc')]);break;}}}}if(0x0==_0x2bb033[_0x5584('0x7')])return null;const _0x5931d0=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0xf'),_0x31de38,'join');for(const _0x3f1254 of this[_0x5584('0x28')]())if(_0x3f1254[_0x5584('0x4f')]['id']==_0x596829['id']&&_0x5584('0xf')==_0x3f1254[_0x5584('0x40')]&&_0x3f1254[_0x5584('0x30')]['formatGroupId']==_0xc9480[_0x5584('0x121')]&&_0x3f1254[_0x5584('0xa5')]==_0x31de38&&Ut(_0x3f1254,_0x1cd1af)&&(_0x5931d0(_0x3f1254[_0x5584('0x141')](),_0x2bb033)||_0x5931d0(_0x2bb033,_0x3f1254[_0x5584('0x141')]()))){for(const _0x516662 of _0x2bb033)_0x3f1254['addRange'](_0x516662);return _0x3f1254;}const _0xee1c56=_0x2568c4(),_0x508aa8=_0x596829['id'],_0x50dddd=_0x5584('0x10d')+_0x31de38,_0x83bdb9=this[_0x5584('0x4e')]({'id':_0xee1c56,'type':_0x50dddd,'data':_0xc9480,'createdAt':new Date(),'authorId':_0x508aa8,'attributes':_0x1cd1af});for(const _0x2e9935 of _0x2bb033)this[_0x5584('0x142')](_0x50dddd,_0xee1c56,_0x508aa8,_0x2e9935,_0x56cb33['getMultiRangeId']());return _0x83bdb9;}[_0x5584('0x89')](_0x8878ec,_0x43628b=null,_0x4b91ac={}){if(_0x8878ec[_0x5584('0x4b')])return null;const _0x30dd57=this['editor']['plugins'][_0x5584('0xb6')](_0x5584('0x90'))['me'],_0x1a10e5=new _0x2e8331(_0x8878ec[_0x5584('0x98')],_0x8878ec[_0x5584('0x2f')]);for(const {suggestion:_0x59789d,meta:_0x580e52}of this[_0x5584('0x10a')](_0x1a10e5,_0x5584('0x2c')))if(_0x580e52['isOwn']&&!_0x580e52[_0x5584('0xa6')]){if(_0x59789d['isMultiRange']){const _0x1a8eb3=_0x59789d[_0x5584('0x141')]()[_0x5584('0xf1')](_0x33f54e=>_0x5584('0xbf')!=_0x33f54e[_0x5584('0x86')][_0x5584('0xe1')]);_0x1a8eb3[_0x5584('0x132')](_0x4f5af9=>_0x1a10e5['containsRange'](_0x4f5af9,!0x0))&&_0x59789d[_0x5584('0x102')]();if(_0x1a8eb3['some'](_0x1f71b6=>_0x1f71b6[_0x5584('0x35')](_0x1a10e5,!0x0))){const _0x5d44d9=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x11'),_0x43628b,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x5d44d9([_0x1a10e5],null,_0x4b91ac)),null;}}else{const _0x55ff30=_0x1a10e5[_0x5584('0x22')](_0x59789d[_0x5584('0xe3')]());null!==_0x55ff30&&_0x59789d[_0x5584('0x8')]([_0x55ff30],null,_0x4b91ac);}}if(_0x1a10e5['detach'](),_0x1a10e5[_0x5584('0x4b')]||_0x5584('0xbf')==_0x1a10e5[_0x5584('0x86')][_0x5584('0xe1')])return null;let _0x36b94e=null,_0x5bc7dd=_0x1a10e5['start'],_0x120a67=_0x1a10e5[_0x5584('0x2f')];const _0x16aee4=this[_0x5584('0x10a')](_0x1a10e5,_0x5584('0x11'));for(const {suggestion:_0x480198,meta:_0x59bfe1}of _0x16aee4){const _0x2f1e74=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x5bc7dd,_0x120a67);if(_0x59bfe1[_0x5584('0x10f')]&&(this[_0x5584('0x105')]||!_0x59bfe1[_0x5584('0x11e')]&&!_0x59bfe1['isInsideObject'])){if(_0x480198[_0x5584('0x108')]){if(!Ut(_0x480198,_0x4b91ac))continue;let _0x36e71f=!0x0;for(const _0x4ba0af of _0x480198[_0x5584('0x141')]()){if(_0x4ba0af['containsRange'](_0x2f1e74,!0x0))return _0x480198;_0x2f1e74[_0x5584('0x35')](_0x4ba0af)||(_0x36e71f=!0x1);}_0x36e71f&&_0x480198[_0x5584('0x102')]();}else{const _0x3f6f44=_0x480198['getFirstRange']();if(_0x3f6f44[_0x5584('0x35')](_0x2f1e74,!0x0))return _0x480198;if(!Ut(_0x480198,_0x4b91ac)){_0x2f1e74['containsRange'](_0x3f6f44)?_0x480198[_0x5584('0x2e')]():_0x3f6f44[_0x5584('0x144')](_0x5bc7dd)?_0x5bc7dd=_0x3f6f44['end']:_0x3f6f44[_0x5584('0x144')](_0x120a67)&&(_0x120a67=_0x3f6f44[_0x5584('0x98')]);continue;}_0x5bc7dd=_0x5bc7dd[_0x5584('0x139')](_0x3f6f44[_0x5584('0x98')])?_0x5bc7dd:_0x3f6f44['start'],_0x120a67=_0x120a67[_0x5584('0x57')](_0x3f6f44[_0x5584('0x2f')])?_0x120a67:_0x3f6f44[_0x5584('0x2f')],_0x4b91ac=Object['assign']({},_0x480198[_0x5584('0x52')]),_0x36b94e?_0x3f6f44[_0x5584('0x98')][_0x5584('0x139')](_0x36b94e[_0x5584('0xe3')]()[_0x5584('0x98')])?(_0x36b94e[_0x5584('0x2e')](),_0x36b94e=_0x480198):_0x480198[_0x5584('0x2e')]():_0x36b94e=_0x480198;}}}if(_0x36b94e)return this[_0x5584('0x26')](_0x36b94e,this['_model'][_0x5584('0x3c')](_0x5bc7dd,_0x120a67)),_0x36b94e;{const _0x144960=_0x2568c4(),_0x14ca5c=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x5bc7dd,_0x120a67),_0x3a738c=_0x30dd57['id'],_0x4a5b09=_0x43628b?_0x5584('0x63')+_0x43628b:_0x5584('0x11'),_0x7a4481=this['_setSuggestionData']({'id':_0x144960,'type':_0x4a5b09,'createdAt':new Date(),'authorId':_0x3a738c,'attributes':_0x4b91ac});return this[_0x5584('0x142')](_0x4a5b09,_0x144960,_0x3a738c,_0x14ca5c),_0x7a4481;}}[_0x5584('0xf7')](_0x2911bd,_0x1f5f77='multi',_0x5abb48={}){const _0x41e67f=this[_0x5584('0xc0')][_0x5584('0xba')][_0x5584('0xb6')](_0x5584('0x90'))['me'],_0x542ba7=_0x2911bd['map'](_0x501f98=>new _0x2e8331(_0x501f98[_0x5584('0x98')],_0x501f98[_0x5584('0x2f')])),_0x27bf9d=new Set();for(const {suggestion:_0x255fbf,meta:_0x525663}of this[_0x5584('0x10a')](_0x542ba7,_0x5584('0x2c')))_0x525663[_0x5584('0x10f')]&&!_0x525663[_0x5584('0xa6')]&&_0x27bf9d[_0x5584('0x100')](_0x255fbf);for(const _0x556215 of _0x27bf9d)if(_0x556215['isMultiRange']){const _0x328282=_0x556215[_0x5584('0x141')]();(!_0x556215[_0x5584('0x52')]||!_0x556215[_0x5584('0x52')][_0x5584('0x143')])&&(_0x328282[_0x5584('0x132')](_0x3c0a2c=>_0x542ba7[_0x5584('0x24')](_0x818b25=>_0x818b25[_0x5584('0x35')](_0x3c0a2c,!0x0)))&&_0x556215[_0x5584('0x102')]());if(_0x542ba7[_0x5584('0x132')](_0x3dcb95=>_0x328282['some'](_0x477530=>_0x477530['containsRange'](_0x3dcb95,!0x0)))){const _0x30bc50=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x11'),_0x1f5f77,_0x5584('0x8f'));return this['forceDefaultExecution'](()=>_0x30bc50(_0x2911bd,null,_0x5abb48)),null;}}else{const _0x18fac1=_0x556215[_0x5584('0xe3')]();_0x542ba7[_0x5584('0x24')](_0x1588b8=>_0x1588b8[_0x5584('0x35')](_0x18fac1,!0x0))&&_0x556215[_0x5584('0x102')]();if(_0x542ba7['every'](_0x1cd6a0=>_0x18fac1[_0x5584('0x35')](_0x1cd6a0,!0x0))){const _0x517474=this[_0x5584('0xe5')]['getSuggestionCallback']('deletion',_0x1f5f77,_0x5584('0x8f'));return this['forceDefaultExecution'](()=>_0x517474(_0x542ba7,null,_0x5abb48)),null;}}const _0x3278b3=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x11'),_0x1f5f77,_0x5584('0x135'));let _0xbb3dd=null;for(const _0x306785 of this[_0x5584('0x28')]())if(_0x306785[_0x5584('0x4f')]['id']==_0x41e67f['id']&&_0x306785['isInContent']&&'deletion'==_0x306785[_0x5584('0x40')]&&_0x306785[_0x5584('0xa5')]==_0x1f5f77&&Ut(_0x306785,_0x5abb48)&&(_0x3278b3(_0x306785[_0x5584('0x141')](),_0x542ba7)||_0x3278b3(_0x542ba7,_0x306785[_0x5584('0x141')]()))){if(_0xbb3dd){if(_0x306785[_0x5584('0x4')]&&_0x306785['commentThread'][_0x5584('0x7')])continue;for(const _0x4eb551 of _0x306785['getRanges']())_0xbb3dd['isIntersectingWithRange'](_0x4eb551)||_0xbb3dd['addRange'](_0x4eb551);_0x306785[_0x5584('0x2e')]();}else{_0xbb3dd=_0x306785;for(const _0x4595c6 of _0x542ba7)_0x306785[_0x5584('0xd')](_0x4595c6)||_0x306785[_0x5584('0xa9')](_0x4595c6);}}if(_0xbb3dd)return _0xbb3dd;_0x27bf9d[_0x5584('0x11c')]();for(const {suggestion:_0x508e1d,meta:_0x3a5325}of this[_0x5584('0x10a')](_0x542ba7,_0x5584('0x11')))_0x3a5325['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a5325['containsRangeInObject']&&!_0x3a5325[_0x5584('0x3a')])&&Ut(_0x508e1d,_0x5abb48)&&_0x27bf9d[_0x5584('0x100')](_0x508e1d);for(const _0x512cca of _0x27bf9d){const _0x37f43b=_0x512cca[_0x5584('0x141')]();if(!_0x5abb48||!_0x5abb48['skipNestingCheck']){if(_0x542ba7['every'](_0x56c4a8=>_0x37f43b[_0x5584('0x24')](_0x5cbc2c=>_0x5cbc2c[_0x5584('0x35')](_0x56c4a8,!0x0))))return _0x512cca;}(!_0x512cca[_0x5584('0x52')]||!_0x512cca[_0x5584('0x52')][_0x5584('0x143')])&&(_0x37f43b[_0x5584('0x132')](_0xc28b69=>_0x542ba7['some'](_0x575dc9=>_0x575dc9[_0x5584('0x35')](_0xc28b69,!0x0)))&&_0x512cca['discard']());}const _0x10cf78=_0x2568c4(),_0x432c29=_0x41e67f['id'],_0x1a093d=_0x5584('0x63')+_0x1f5f77,_0x416aa4=this[_0x5584('0x4e')]({'id':_0x10cf78,'type':_0x1a093d,'createdAt':new Date(),'authorId':_0x432c29,'attributes':_0x5abb48});for(const _0x369911 of _0x542ba7)_0x369911[_0x5584('0xf3')](),_0x369911[_0x5584('0x4b')]||_0x5584('0xbf')==_0x369911[_0x5584('0x86')][_0x5584('0xe1')]||this[_0x5584('0x142')](_0x1a093d,_0x10cf78,_0x432c29,_0x369911,_0x56cb33[_0x5584('0xa4')]());return _0x416aa4;}[_0x5584('0x26')](_0x32c0b3,_0x54b4c6){const _0x30a079=_0x32c0b3[_0x5584('0x104')]();this[_0x5584('0x12b')][_0x5584('0x7a')](_0x3518ce=>{_0x3518ce[_0x5584('0x13')](_0x30a079,{'range':_0x54b4c6});});}[_0x5584('0xc2')](_0x257e0a){const _0x1ac7c4=_0x257e0a['id'],_0x58adc8=this['editor'][_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0xd7'));this[_0x5584('0x95')]['hasCommentThread'](_0x1ac7c4)||this[_0x5584('0x95')][_0x5584('0x68')]({'channelId':_0x58adc8,'threadId':_0x1ac7c4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x33dc8f=this[_0x5584('0x95')][_0x5584('0x88')](_0x1ac7c4);_0x33dc8f[_0x5584('0xf5')](_0x5584('0x9e')),_0x33dc8f[_0x5584('0x9e')]=!0x1,_0x257e0a[_0x5584('0x4')]=_0x33dc8f;}[_0x5584('0x127')](_0x1cb34b,_0x4b5017,_0x492dd0,_0x13cc4e){if(_0x1cb34b['type']!=_0x4b5017||_0x1cb34b[_0x5584('0xa5')]!=_0x492dd0||_0x1cb34b[_0x5584('0xff')]['id']!=_0x13cc4e)throw this[_0x5584('0xc0')]['enableReadOnlyMode'](_0x5584('0x124')),new _0x5e6c53(_0x5584('0x124'),this);}[_0x5584('0x12a')](_0x5ffbdc,_0x4f28ed){const _0x70ae6f=_0x5ffbdc[_0x5584('0xe3')]();if(_0x4f28ed[_0x5584('0x2a')](_0x70ae6f))_0x5ffbdc[_0x5584('0x2e')]();else{if(_0x70ae6f[_0x5584('0x35')](_0x4f28ed)){const _0x17c4a5=this[_0x5584('0x12b')]['createPositionAt'](_0x4f28ed[_0x5584('0x98')][_0x5584('0x131')],_0x5584('0x2f'));this[_0x5584('0x26')](_0x5ffbdc,this['_model'][_0x5584('0x3c')](_0x70ae6f[_0x5584('0x98')],_0x17c4a5));const _0x13acea=_0x2568c4(),_0x42e155=_0x5ffbdc['creator']['id'],_0x4be296=_0x5ffbdc['type']+':'+_0x5ffbdc[_0x5584('0xa5')];this[_0x5584('0x4e')]({'id':_0x13acea,'type':_0x4be296,'createdAt':new Date(),'authorId':_0x42e155,'data':_0x5ffbdc['data'],'attributes':_0x5ffbdc[_0x5584('0x52')]});const _0x29423c=this[_0x5584('0x12b')][_0x5584('0xac')](_0x4f28ed[_0x5584('0x2f')]['parent'],_0x5584('0x18')),_0x142180=this['_model'][_0x5584('0x3c')](_0x29423c,_0x70ae6f['end']);this[_0x5584('0x142')](_0x4be296,_0x13acea,_0x42e155,_0x142180);}else{if(_0x70ae6f[_0x5584('0x144')](_0x4f28ed[_0x5584('0x98')])){const _0x1ed8e8=this[_0x5584('0x12b')][_0x5584('0xac')](_0x4f28ed[_0x5584('0x98')][_0x5584('0x131')],_0x5584('0x2f'));this[_0x5584('0x26')](_0x5ffbdc,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x70ae6f[_0x5584('0x98')],_0x1ed8e8));}else{const _0x287c32=this['_model'][_0x5584('0xac')](_0x4f28ed[_0x5584('0x2f')][_0x5584('0x43')],_0x5584('0x18'));this['_setSuggestionRange'](_0x5ffbdc,this['_model'][_0x5584('0x3c')](_0x287c32,_0x70ae6f[_0x5584('0x2f')]));}}}}[_0x5584('0x37')](_0x472a55){for(const {suggestion:_0xdbc3f8,meta:_0x986923}of this[_0x5584('0x10a')](_0x472a55,_0x5584('0x2c'))){if(!_0x986923[_0x5584('0x10f')])continue;const _0x428716=_0xdbc3f8[_0x5584('0x141')]();for(const _0x15db17 of _0x428716)if(!_0x472a55[_0x5584('0xdc')](_0x15db17)[_0x5584('0x7')])return!0x0;}return!0x1;}[_0x5584('0x84')](_0x497ea4){const _0x582cac=this[_0x5584('0xc0')][_0x5584('0xba')][_0x5584('0xb6')]('Users')[_0x5584('0x12')](_0x497ea4);if(!_0x582cac)throw new _0x5e6c53(_0x5584('0x8c'),this);return _0x582cac;}[_0x5584('0xcf')](_0x2c803c){const _0x2cbea9=this[_0x5584('0xc0')]['plugins']['get'](_0x5584('0x90')),_0x2103f9=_0xdb6fad(_0x5584('0x133')+_0x2c803c),_0x45e5d1=_0x2cbea9[_0x5584('0x12')](_0x2103f9);return _0x45e5d1||_0x2cbea9[_0x5584('0xa3')]({'id':_0x2103f9,'name':_0x2c803c});}[_0x5584('0xd1')](_0x102166,_0x2c5762,_0x31df65,_0x295002,_0x39fd1f){const _0x1cde82=this[_0x5584('0x84')](_0x295002),_0x402769=this[_0x5584('0xe5')][_0x5584('0x118')](_0x102166,_0x2c5762,_0x31df65,_0x1cde82,_0x39fd1f,_0x5864c5=>this[_0x5584('0x111')](_0x31df65,{'attributes':_0x5864c5}));return this['listenTo'](_0x402769,_0x5584('0x8f'),()=>{this[_0x5584('0x111')](_0x31df65,{'state':_0x5584('0x66')});},{'priority':_0x5584('0xdb')}),this[_0x5584('0x129')](_0x402769,'discard',()=>{this['_updateSuggestionData'](_0x31df65,{'state':_0x5584('0xb0')});},{'priority':_0x5584('0xdb')}),this['_suggestions']['set'](_0x31df65,_0x402769),this[_0x5584('0xd4')][_0x5584('0x6a')](_0x402769,_0x5584('0x115')),_0x402769;}['_splitMarkerName'](_0x15357b){const _0xd66c97=_0x15357b[_0x5584('0x19')](':');return{'group':_0xd66c97[0x0],'type':_0xd66c97[0x1],'subType':_0xd66c97[_0x5584('0x7')]>=0x5?_0xd66c97[0x2]:null,'id':_0xd66c97[_0x5584('0x7')]<0x5?_0xd66c97[0x2]:_0xd66c97[0x3],'authorId':_0xd66c97[_0x5584('0x7')]<0x5?_0xd66c97[0x3]:_0xd66c97[0x4],'markerCount':0x6==_0xd66c97[_0x5584('0x7')]?_0xd66c97[0x5]:null};}[_0x5584('0x112')](_0x1ef989,_0x235e6f,_0x3b1f26){const _0x4d8341=_0x1ef989[_0x5584('0xe3')](),_0x34aa82=_0x4d8341[_0x5584('0x98')],_0x47aa0a=_0x4d8341[_0x5584('0x2f')];this[_0x5584('0x26')](_0x1ef989,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x34aa82,_0x235e6f));const _0x436543=_0x2568c4(),_0x116607=_0x1ef989['creator']['id'],_0xf9a0bd=_0x1ef989[_0x5584('0x40')]+(_0x1ef989['subType']?':'+_0x1ef989[_0x5584('0xa5')]:'');this[_0x5584('0x4e')]({'id':_0x436543,'type':_0xf9a0bd,'createdAt':new Date(),'authorId':_0x116607,'originalSuggestionId':_0x1ef989['id'],'attributes':_0x1ef989[_0x5584('0x52')],'data':_0x1ef989['data']}),'formatBlock'==_0x1ef989['type']&&(_0x3b1f26=this[_0x5584('0x12b')][_0x5584('0xa2')](_0x3b1f26[_0x5584('0x43')])),this['_addSuggestionMarker'](_0xf9a0bd,_0x436543,_0x116607,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x3b1f26,_0x47aa0a));}[_0x5584('0x10a')](_0x13f9d3,_0x323b04=null){const _0x66aec0=[],_0x5bedd9=this['editor'][_0x5584('0xba')][_0x5584('0xb6')]('Users')['me'];Array[_0x5584('0x126')](_0x13f9d3)||(_0x13f9d3=[_0x13f9d3]);for(const _0x238e56 of this[_0x5584('0x28')]()){if(!_0x238e56['isInContent'])continue;if(_0x323b04&&_0x238e56[_0x5584('0x40')]!=_0x323b04)continue;let _0x2375f2=!0x1;for(const _0x451753 of _0x238e56[_0x5584('0x141')]()){for(const _0x4a6699 of _0x13f9d3){const _0x110d17=_0x4a6699[_0x5584('0x98')]['isEqual'](_0x451753[_0x5584('0x2f')])||_0x4a6699[_0x5584('0x2f')][_0x5584('0x2a')](_0x451753[_0x5584('0x98')]);if(_0x110d17||_0x4a6699[_0x5584('0x22')](_0x451753)){const _0x4d4ac1=_0x4a6699[_0x5584('0x35')](_0x451753)&&Bt(this[_0x5584('0x12b')][_0x5584('0x32')],_0x451753[_0x5584('0x98')],_0x4a6699),_0x274c89=_0x451753[_0x5584('0x35')](_0x4a6699)&&Bt(this['_model']['schema'],_0x4a6699['start'],_0x451753);_0x66aec0[_0x5584('0x44')]({'suggestion':_0x238e56,'meta':{'isOwn':_0x5bedd9==_0x238e56[_0x5584('0x4f')],'isNextTo':_0x110d17,'isInsideObject':_0x4d4ac1,'containsRangeInObject':_0x274c89}}),_0x2375f2=!0x0;break;}}if(_0x2375f2)break;}}return _0x66aec0;}[_0x5584('0x142')](_0x141b5f,_0x292a60,_0x41422f,_0x50f674,_0x3c8c8a){this[_0x5584('0x12b')][_0x5584('0x7a')](_0x404348=>{let _0x578e28=_0x5584('0xe7')+_0x141b5f+':'+_0x292a60+':'+_0x41422f;_0x3c8c8a&&(_0x578e28=_0x578e28+':'+_0x3c8c8a),_0x404348[_0x5584('0x113')](_0x578e28,{'range':_0x50f674,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5584('0x48')](_0x1a3b4b){const _0x3aa09e=_0x1a3b4b[_0x5584('0x12f')],_0x219b5d=_0x1a3b4b[_0x5584('0x107')];_0x1a3b4b[_0x5584('0x12f')]=null,null!=_0x3aa09e&&(_0x3aa09e[_0x5584('0x107')]=null),_0x1a3b4b[_0x5584('0x107')]=null,null!=_0x219b5d&&(_0x219b5d['previous']=null),_0x5584('0x61')==this[_0x5584('0xd4')][_0x5584('0xb6')](_0x1a3b4b)&&(this[_0x5584('0xd4')][_0x5584('0x6a')](_0x1a3b4b,_0x5584('0x58')),this[_0x5584('0x4d')](_0x5584('0x21'),_0x1a3b4b,_0x3aa09e,_0x219b5d));}[_0x5584('0x4e')](_0x4ee5d4){const _0x312f4e=_0x4ee5d4['id'],_0xd73105=this[_0x5584('0x49')](_0x4ee5d4);if(this[_0x5584('0x11f')]&&this[_0x5584('0x11f')]['addSuggestion']){const _0x5746ac=this[_0x5584('0xc0')][_0x5584('0xba')]['get'](_0x5584('0x6b')),_0x4312be=_0xd73105[_0x5584('0x11a')],_0x54c13e=_0xd73105[_0x5584('0xa5')]?_0xd73105[_0x5584('0x40')]+':'+_0xd73105[_0x5584('0xa5')]:_0xd73105[_0x5584('0x40')],_0x1410ab=this[_0x5584('0xc0')][_0x5584('0x13d')],_0x552b1a=_0x5746ac['add'](_0x58b0eb(_0x1410ab,_0x5584('0xc'))),_0x5882cf={'id':_0x312f4e,'type':_0x54c13e,'hasComments':_0x4312be,'data':_0x4ee5d4[_0x5584('0x30')]||null,'originalSuggestionId':_0x4ee5d4[_0x5584('0x10b')]||null,'attributes':_0xd73105[_0x5584('0x52')]};this[_0x5584('0x11f')][_0x5584('0x9d')](_0x5882cf)['then'](_0x33bc01=>{_0xd73105['_saved']=!0x0,_0x5746ac['remove'](_0x552b1a),_0x33bc01&&_0x33bc01[_0x5584('0x65')]&&(this[_0x5584('0x73')][_0x5584('0xb6')](_0x312f4e)[_0x5584('0x65')]=_0x33bc01[_0x5584('0x65')]);})[_0x5584('0x13e')](_0x5f53fa=>{throw _0x2ae9fa(_0x5584('0x10e')),this['editor'][_0x5584('0x2b')][_0x5584('0x5a')]({'isUndoable':!0x1},()=>{_0xd73105['discard']();}),_0xd73105[_0x5584('0x9c')](),this[_0x5584('0x73')][_0x5584('0x74')](_0xd73105['id']),this[_0x5584('0xd4')]['delete'](_0xd73105),_0x5f53fa;});}return _0xd73105;}['_updateSuggestionData'](_0x5bc7e,_0x34c84c){const _0x1725c6=this[_0x5584('0xc0')][_0x5584('0xba')]['get'](_0x5584('0x6b')),_0x157cf7=this['getSuggestion'](_0x5bc7e);if(this[_0x5584('0x11f')]&&this[_0x5584('0x11f')][_0x5584('0x4c')]){if(_0x157cf7[_0x5584('0x39')]){const _0xbda72d=_0x1725c6[_0x5584('0x100')](_0x58b0eb(this[_0x5584('0xc0')][_0x5584('0x13d')],'PENDING_ACTION_SUGGESTION'));this[_0x5584('0x11f')][_0x5584('0x4c')](_0x5bc7e,_0x34c84c)['then'](()=>{_0x1725c6[_0x5584('0x92')](_0xbda72d);});}else _0x157cf7['on'](_0x5584('0x122'),()=>{this[_0x5584('0x111')](_0x5bc7e,_0x34c84c);});}}['_getSuggestionData'](_0x163b8d){if(!this[_0x5584('0x11f')]||!this[_0x5584('0x11f')][_0x5584('0x99')])throw new _0x5e6c53(_0x5584('0xdf'),this);return this[_0x5584('0x11f')][_0x5584('0x99')](_0x163b8d);}[_0x5584('0x4a')](_0x5a3c2d){const {id:_0x27d0e8,type:_0x324ad6,subType:_0x37e2a2,authorId:_0x39183d}=this[_0x5584('0x9b')](_0x5a3c2d),_0x480e5b=this[_0x5584('0x73')][_0x5584('0xb6')](_0x27d0e8)||this['_createSuggestion'](_0x324ad6,_0x37e2a2,_0x27d0e8,_0x39183d,{});switch(this['_checkSuggestionCorrectness'](_0x480e5b,_0x324ad6,_0x37e2a2,_0x39183d),this['_suggestionState'][_0x5584('0xb6')](_0x480e5b)){case _0x5584('0x115'):this['_getSuggestionData'](_0x27d0e8)[_0x5584('0x83')](_0x215289=>{let _0xaf87ab=Promise[_0x5584('0x1a')]();_0x215289[_0x5584('0x11a')]&&(_0xaf87ab=this[_0x5584('0x95')]['fetchCommentThread']({'channelId':this[_0x5584('0xc0')][_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0xd7')),'threadId':_0x27d0e8})),_0xaf87ab[_0x5584('0x83')](()=>{this[_0x5584('0x49')](_0x215289)[_0x5584('0x39')]=!0x0;});}),this[_0x5584('0xd4')][_0x5584('0x6a')](_0x480e5b,'markerReady');break;case _0x5584('0x58'):this[_0x5584('0x111')](_0x27d0e8,{'state':_0x5584('0x42')});case _0x5584('0xbc'):this[_0x5584('0xd4')][_0x5584('0x6a')](_0x480e5b,_0x5584('0x61')),this[_0x5584('0x4d')](_0x5584('0x9a'),_0x480e5b);break;case _0x5584('0x61'):this[_0x5584('0x4d')]('suggestionChanged',_0x480e5b);}return _0x480e5b[_0x5584('0xf8')](_0x5a3c2d),_0x480e5b;}[_0x5584('0x47')](_0x5353f3){const _0x12ca26=Array[_0x5584('0x6d')](_0x5353f3)[_0x5584('0xf1')](_0x1deddc=>!_0x1deddc[_0x5584('0x108')]),_0x81b69d=this['getSuggestions']({'skipNotAttached':!0x0})[_0x5584('0xf1')](_0x2f6854=>!_0x2f6854[_0x5584('0x108')]),_0x36b8cc=_0x81b69d['filter'](_0xd872ea=>!_0x5353f3[_0x5584('0x138')](_0xd872ea)),_0x1b43fa=new Map(_0x81b69d[_0x5584('0x6f')](_0x2b70e8=>[_0x2b70e8,this[_0x5584('0xe5')]['getSuggestionCallback'](_0x2b70e8[_0x5584('0x40')],_0x2b70e8[_0x5584('0xa5')],_0x5584('0x1'))])),_0x39f9c6=new Map(_0x81b69d[_0x5584('0x6f')](_0x4a95bf=>[_0x4a95bf,_0x4a95bf[_0x5584('0xe3')]()])),_0x112640=new Set(),_0x34072a=new Set();for(let _0x543efa=0x0;_0x543efa<_0x12ca26[_0x5584('0x7')];_0x543efa++)_0x2bb33d(_0x12ca26[_0x543efa],_0x12ca26,_0x543efa+0x1);for(let _0x4233bb=0x0;_0x4233bb<_0x12ca26[_0x5584('0x7')];_0x4233bb++)_0x2bb33d(_0x12ca26[_0x4233bb],_0x36b8cc,0x0);for(let _0x447f01=0x0;_0x447f01<_0x12ca26['length'];_0x447f01++){const _0x5e2326=_0x12ca26[_0x447f01];!_0x34072a[_0x5584('0x138')](_0x5e2326)&&_0x5e2326[_0x5584('0x12f')]&&(_0x5e2326[_0x5584('0x12f')]['next']===_0x5e2326&&(_0x5e2326[_0x5584('0x12f')][_0x5584('0x107')]=null),_0x5e2326[_0x5584('0x12f')]=null),!_0x112640[_0x5584('0x138')](_0x5e2326)&&_0x5e2326[_0x5584('0x107')]&&(_0x5e2326[_0x5584('0x107')][_0x5584('0x12f')]===_0x5e2326&&(_0x5e2326['next'][_0x5584('0x12f')]=null),_0x5e2326[_0x5584('0x107')]=null);}function _0x2bb33d(_0x47d4a0,_0x21cfb5,_0x2e91f){for(let _0x211d96=_0x2e91f;_0x211d96<_0x21cfb5[_0x5584('0x7')];_0x211d96++){const _0x3ce433=_0x3e949d(_0x47d4a0,_0x21cfb5[_0x211d96]);_0x3ce433&&(_0x3ce433[0x0][_0x5584('0x107')]=_0x3ce433[0x1],_0x3ce433[0x1][_0x5584('0x12f')]=_0x3ce433[0x0],_0x112640[_0x5584('0x100')](_0x3ce433[0x0]),_0x34072a[_0x5584('0x100')](_0x3ce433[0x1]));}}function _0x3e949d(_0x5515eb,_0x4f4217){if(_0x5515eb['author']['id']!==_0x4f4217[_0x5584('0x4f')]['id'])return null;const _0xd8adf0=_0x1b43fa[_0x5584('0xb6')](_0x5515eb)(_0x5515eb,_0x4f4217,_0x39f9c6[_0x5584('0xb6')](_0x5515eb),_0x39f9c6[_0x5584('0xb6')](_0x4f4217));if(!_0xd8adf0)return null;return _0x1b43fa[_0x5584('0xb6')](_0x4f4217)(_0x5515eb,_0x4f4217,_0x39f9c6[_0x5584('0xb6')](_0x5515eb),_0x39f9c6['get'](_0x4f4217))?_0xd8adf0[0x1][_0x5584('0x4')]&&_0xd8adf0[0x1][_0x5584('0x4')][_0x5584('0x7')]?null:_0xd8adf0:null;}}[_0x5584('0x96')](_0x22c971){const _0x2e6a11=Array['from'](_0x22c971),_0x2320bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x221edd=_0x2320bc[_0x5584('0xf1')](_0x1d2858=>!_0x22c971[_0x5584('0x138')](_0x1d2858)),_0x2aadf8=new Map(_0x2e6a11[_0x5584('0x6f')](_0x36c16b=>[_0x36c16b,this['_suggestionFactory'][_0x5584('0x45')](_0x36c16b[_0x5584('0x40')],_0x36c16b['subType'],_0x5584('0x135'))])),_0x500b4a=new Map(_0x2320bc['map'](_0x4e388a=>[_0x4e388a,_0x4e388a[_0x5584('0x141')]()]));for(let _0x174124=0x0;_0x174124<_0x2e6a11[_0x5584('0x7')];_0x174124++){if(_0x29555b(this,_0x2e6a11[_0x174124],_0x2e6a11,_0x174124+0x1))return!0x0;}for(let _0x2d2dbc=0x0;_0x2d2dbc<_0x2e6a11[_0x5584('0x7')];_0x2d2dbc++){if(_0x29555b(this,_0x2e6a11[_0x2d2dbc],_0x221edd,0x0))return!0x0;}return!0x1;function _0x29555b(_0x555f2c,_0x391892,_0x182786,_0x424b3d){for(let _0x2b6d2c=_0x424b3d;_0x2b6d2c<_0x182786[_0x5584('0x7')];_0x2b6d2c++){const _0x27907b=_0x182786[_0x2b6d2c];if(_0x27907b['type']!==_0x391892[_0x5584('0x40')]||_0x27907b[_0x5584('0x4f')]['id']!==_0x391892[_0x5584('0x4f')]['id']||_0x27907b[_0x5584('0xa5')]!==_0x391892['subType'])continue;if(!xt(_0x391892,_0x27907b))continue;const _0x681183=_0x2aadf8['get'](_0x391892),_0x14e4ce=_0x500b4a[_0x5584('0xb6')](_0x391892),_0x404040=_0x500b4a['get'](_0x27907b),_0x140244=_0x391892['commentThread']&&_0x391892['commentThread'][_0x5584('0x7')],_0x2d381a=_0x27907b[_0x5584('0x4')]&&_0x27907b[_0x5584('0x4')]['length'];if(!_0x140244&&_0x681183(_0x404040,_0x14e4ce))return _0x555f2c['_joinSuggestions'](_0x27907b,_0x391892),_0x500b4a[_0x5584('0x74')](_0x391892),!0x0;if(!_0x2d381a&&_0x681183(_0x14e4ce,_0x404040))return _0x555f2c[_0x5584('0x5')](_0x391892,_0x27907b),_0x500b4a[_0x5584('0x74')](_0x27907b),!0x0;}return!0x1;}}[_0x5584('0x5')](_0x247f9e,_0x180cfe){if(_0x247f9e['isMultiRange'])for(const _0xeb4a9d of _0x180cfe['getRanges']())_0x247f9e['addRange'](_0xeb4a9d);else{const _0x46144a=_0x180cfe['getFirstRange']()[_0x5584('0x2f')];this['_setSuggestionRange'](_0x247f9e,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x247f9e[_0x5584('0xe3')]()[_0x5584('0x98')],_0x46144a));}_0x180cfe[_0x5584('0x2e')]();}}class Dt{constructor(_0x443a34){this[_0x5584('0x137')]=_0x443a34,this[_0x5584('0x12b')]=_0x443a34[_0x5584('0x2b')],this[_0x5584('0xc8')]=new Map(),this[_0x5584('0xea')]=new Map(),this[_0x5584('0x110')]();}[_0x5584('0x118')](_0x51072d,_0x5ea3d9,_0x529b89,_0x275c23,_0x4aaa1d,_0x159284){return new _0x56cb33(this[_0x5584('0x12b')],{'type':_0x51072d,'subType':_0x5ea3d9,'id':_0x529b89,'author':_0x275c23,'creator':_0x275c23,'attributes':_0x4aaa1d,'onAttributesChange':_0x159284,'onAccept':(..._0x2d2a46)=>this[_0x5584('0x45')](_0x51072d,_0x5ea3d9,_0x5584('0x8f'))(..._0x2d2a46),'onDiscard':(..._0x41b5a5)=>this['getSuggestionCallback'](_0x51072d,_0x5ea3d9,_0x5584('0x102'))(..._0x41b5a5)});}[_0x5584('0x15')](_0x2e6df5,_0x563949,_0x24e910,_0xbc61d6){const _0x4183e9=_0x2e6df5+':'+_0x563949+':'+_0x24e910;this[_0x5584('0xc8')][_0x5584('0x6a')](_0x4183e9,_0xbc61d6);}[_0x5584('0x45')](_0x474a8c,_0x428e1a,_0x2b12e9){const _0xfdc133=_0x474a8c+':'+_0x428e1a+':'+_0x2b12e9;return this[_0x5584('0xc8')][_0x5584('0xb6')](_0xfdc133)||this[_0x5584('0xea')][_0x5584('0xb6')](_0x474a8c+':'+_0x2b12e9);}[_0x5584('0x110')](){const _0x226952=()=>!0x1,_0x1e45b7=_0x250a2a=>{_0x250a2a[_0x5584('0xb4')]((_0x39d019,_0x386718)=>_0x39d019[_0x5584('0x98')][_0x5584('0x139')](_0x386718[_0x5584('0x98')])?0x1:-0x1),this['_model'][_0x5584('0x7a')](_0x5a41d3=>{for(const _0x1954c0 of _0x250a2a){let _0x33885f;_0x33885f=_0x1954c0['end'][_0x5584('0x10')]&&_0x1954c0[_0x5584('0x2f')][_0x5584('0x43')]==_0x1954c0[_0x5584('0x98')][_0x5584('0x10c')]?_0x5a41d3[_0x5584('0x64')](_0x1954c0[_0x5584('0x98')][_0x5584('0x10c')],'on'):_0x5a41d3[_0x5584('0x64')](_0x1954c0),this[_0x5584('0x12b')][_0x5584('0x76')](_0x33885f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x837f1=(_0xf69b65,_0xadbc3a)=>{this['_model'][_0x5584('0x7a')](_0x48b6f0=>{const {commandName:_0x247565,commandParams:_0xa146b9=[]}=_0xadbc3a,_0x3b161f=_0xf69b65[_0x5584('0x6f')](_0x404890=>(_t(_0x404890)&&(_0x404890=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x404890[_0x5584('0x2f')])),_0x404890))[_0x5584('0xf1')](_0x1a7dda=>_0x5584('0xbf')!==_0x1a7dda[_0x5584('0x86')][_0x5584('0xe1')]);if(_0x3b161f[_0x5584('0x7')]<0x1)return;const _0x26d4f7=Array[_0x5584('0x6d')](this[_0x5584('0x12b')]['document'][_0x5584('0xa7')]['getRanges']())[_0x5584('0x6f')](_0x305183=>_0x2e8331[_0x5584('0x14')](_0x305183));_0x48b6f0['setSelection'](_0x3b161f);for(const _0x30b10d of this[_0x5584('0x137')][_0x5584('0x128')]['commands']())_0x30b10d[_0x5584('0xc9')]();_0xa146b9[_0x5584('0x44')]({'forceDefaultExecution':!0x0}),this[_0x5584('0x137')]['execute'](_0x247565,..._0xa146b9);const _0x396990=_0x26d4f7[_0x5584('0xf1')](_0x331905=>_0x5584('0xbf')!=_0x331905[_0x5584('0x86')]['rootName']);_0x396990[_0x5584('0x7')]>0x0&&_0x48b6f0['setSelection'](_0x396990);for(const _0x325164 of _0x26d4f7)_0x325164[_0x5584('0xf3')]();});},_0xec383e=(_0x1195bd,_0x33e3f8)=>0x1==_0x1195bd['length']&&0x1==_0x33e3f8['length']&&_0x1195bd[0x0]['end'][_0x5584('0x2a')](_0x33e3f8[0x0][_0x5584('0x98')]),_0x3d1d7a=(_0x49b7c0,_0x1867a6,_0x15f4fe,_0x3f5723)=>jt(_0x49b7c0,_0x1867a6,_0x15f4fe,_0x3f5723,this[_0x5584('0x12b')])?[_0x49b7c0,_0x1867a6]:jt(_0x1867a6,_0x49b7c0,_0x3f5723,_0x15f4fe,this[_0x5584('0x12b')])?[_0x1867a6,_0x49b7c0]:null;this[_0x5584('0xea')][_0x5584('0x6a')]('insertion:accept',_0x226952),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xeb'),_0x1e45b7),this['_defaultCallbacks'][_0x5584('0x6a')]('insertion:join',_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')]('insertion:chain',_0x3d1d7a),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xc7'),_0x1e45b7),this[_0x5584('0xea')][_0x5584('0x6a')]('deletion:discard',_0x226952),this['_defaultCallbacks']['set']('deletion:join',_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x125'),_0x3d1d7a),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x56'),_0x837f1),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xd8'),_0x226952),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x12d'),_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')]('formatInline:chain',_0x226952),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xb9'),_0x837f1),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x20'),_0x226952),this['_defaultCallbacks'][_0x5584('0x6a')](_0x5584('0xa8'),_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x67'),_0x226952);}}function Bt(_0x533d8d,_0x209153,_0x5d3cd6){for(const _0x4e8516 of _0x209153[_0x5584('0x43')][_0x5584('0x80')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4e8516[_0x5584('0x86')]==_0x4e8516)return!0x1;if(!_0x5d3cd6['containsItem'](_0x4e8516))return!0x1;if(_0x533d8d[_0x5584('0x41')](_0x4e8516)||_0x533d8d[_0x5584('0x114')](_0x4e8516))return!0x0;}return!0x1;}function _t(_0x117ca6){return _0x117ca6[_0x5584('0x2f')][_0x5584('0x43')]==_0x117ca6[_0x5584('0x98')][_0x5584('0x10c')]&&_0x117ca6['end'][_0x5584('0x103')];}function Mt(_0x22aefc,_0x34025f,_0x24701c,_0x33b5c8){const _0x58d329=_0x2d846c=>!_0x2d846c[_0x5584('0xda')]['is'](_0x5584('0xcd'))&&!_0x33b5c8[_0x5584('0x41')](_0x2d846c[_0x5584('0xda')]),_0x193950=_0x22aefc[_0x5584('0x98')][_0x5584('0x134')](_0x58d329),_0xb8b86f=_0x22aefc[_0x5584('0x2f')][_0x5584('0x134')](_0x58d329,{'direction':'backward'});return(!_0x22aefc[_0x5584('0x98')][_0x5584('0x2a')](_0x193950)||!_0x22aefc['end'][_0x5584('0x2a')](_0xb8b86f))&&(_0x193950['isBefore'](_0xb8b86f)?_0x24701c['updateMarker'](_0x34025f,{'range':_0x24701c[_0x5584('0x3c')](_0x193950,_0xb8b86f)}):_0x24701c['removeMarker'](_0x34025f),!0x0);}function $t(_0xcdac6f){return _0xdb6fad(_0xcdac6f);}function Nt(_0x5d03dc){const _0x5a98a6=_0x5d03dc[_0x5584('0x98')][_0x5584('0x10c')];return _0x5a98a6&&_0x5a98a6['is'](_0x5584('0x6e'));}function Rt(_0x449384,_0x441fe9){const _0x30358a=_0x441fe9[_0x5584('0x32')][_0x5584('0x41')](_0x449384)||_0x441fe9[_0x5584('0x32')]['isSelectable'](_0x449384);return _0x441fe9[_0x5584('0x3c')](_0x441fe9[_0x5584('0xac')](_0x449384,_0x5584('0x16')),_0x30358a?_0x441fe9['createPositionAfter'](_0x449384):_0x441fe9['createPositionAt'](_0x449384,_0x5584('0x2f')));}function jt(_0x2aea40,_0xc392b6,_0x498ecd,_0x20391d,_0x4460e1){if(!xt(_0x2aea40,_0xc392b6))return!0x1;if(_0x498ecd[_0x5584('0x2f')][_0x5584('0x2a')](_0x20391d[_0x5584('0x98')]))return!0x0;if(_0x2aea40[_0x5584('0x40')]!=_0xc392b6[_0x5584('0x40')])return!0x1;if(!_0x498ecd[_0x5584('0x2f')][_0x5584('0x6')](_0x20391d[_0x5584('0x98')]))return!0x1;const _0xba3d05=_0x4460e1[_0x5584('0x3c')](_0x498ecd[_0x5584('0x2f')],_0x20391d[_0x5584('0x98')])['getWalker']();for(const _0x358680 of _0xba3d05)if([_0x5584('0x17'),_0x5584('0xd5')][_0x5584('0xd0')](_0x358680[_0x5584('0x40')])&&_0x4460e1[_0x5584('0x32')]['isLimit'](_0x358680[_0x5584('0xda')]))return!0x1;return!0x0;}function xt(_0x5c2899,_0x231759){return!(!_0x5c2899[_0x5584('0x13b')]||!_0x231759['_isDataLoaded'])&&_0xddcb7a(_0x5c2899['attributes'],_0x231759[_0x5584('0x52')]);}function Ut(_0x4b2bed,_0x515932){const _0xcaca5f=Ot(_0x4b2bed[_0x5584('0x52')]),_0x172c8a=Ot(_0x515932);if(!_0x4b2bed['_isDataLoaded'])return!0x1;for(const _0x119f7b of Object[_0x5584('0x3f')](_0x172c8a))if(!_0xddcb7a(_0xcaca5f[_0x119f7b],_0x172c8a[_0x119f7b]))return!0x1;return!0x0;}function Ot(_0x471f35){const _0x2e6e6d=Object[_0x5584('0x97')]({},_0x471f35);return delete _0x2e6e6d[_0x5584('0x143')],delete _0x2e6e6d[_0x5584('0x81')],_0x2e6e6d;}
|
|
23
|
+
const _0x10d3=['fromRange','discardSuggestion','forceDefaultExecution','ck-suggestion-marker','attributes','_updateSuggestionData','rootName','consumable','acceptSelectedSuggestions','ck-suggestion-marker-formatBlock','creator','_addThreadToSuggestion','suggestion-type','isSelectable','substr','_findSuggestions','ck-suggestion-marker--active','addHighlight','deletion:join','_setSuggestionRange','batch','getAncestors','_suggestionState','config','set','formatBlock:discard','_editor','stopListening','dataToMarker','dataDowncast','@external','insertion:join','_commentsRepository','skipNestingCheck','_refreshSuggestionsChain','hasCommentThread','catch','lowest','notReady','from','root','removeComment','detach','getDifference','formatBlock','for','removeMarker','formatInline:accept','_joinWithAdjacentSuggestions','trackChanges.trackFormatChanges','init','$marker','change:activeMarkers','always','has','fromCharCode','addUser','next','isEqual','_breakSuggestionMarker','document','isBefore','PendingActions','registerCustomCallback','item','getFirstMarker','isMultiRange','createPositionAfter','change','containsRange','getChangedMarkers','markerReady','_saved','_customCallbacks','insertContent','createElement','track-changes-adapter-already-set','updateMarker','refresh','_isDataLoaded','isOwn','consume','addRange','deletion:accept','getIntersection','_createSuggestion','type','formatInline:chain','accept','group','_checkSuggestionCorrectness','trackChanges.mergeNestedSuggestions','_splitMarkerName','remove','editing','_adapter','markInsertion','end','buildSuggestion','registerPostFixer','removeAttribute','commands','acceptSuggestion','head','isInsideObject','never','authorName','$graveyard','normal','listenTo','addComment','isNextTo','markerToData','backward','track-changes-user-not-found','addMarker:suggestion:formatBlock','isCollapsed','after','_getAuthorFromId','addSuggestion','markBlockFormat','writer','insert','author','move','conversion','commandName','start','isUndo','createPositionAt','before','suggestion:','then','acceptAllSuggestions','differ','insertion:accept','formatGroupId','formatInline:discard','range','external:','createSelection','suggestionChanged','markMultiRangeDeletion','elementStart','getShiftedBy','change:data','markDeletion','values','isObject','_trackFormatChanges','isInContent','_isForcedDefaultExecutionBlock','_addSuggestionMarker','deletion:chain','formatInline','reconvertMarker','element','ready','_onDiscard','trackChangesCommand','includes','editor','addSuggestionData','get','getItems','_registerDefaultCallbacks','setAttribute','setSelection','insertion','multipleBlocks','removeMarkers','_rangeIsInLocalUserInsertion','_enabledCommands','getSuggestion','getCustomProperty','showSuggestionHighlights','mapper','options','getSuggestionCallback','adapter','push','_descriptionFactory','pluginName','deletion','requires','formatBlock:chain','_defaultCallbacks','length','toViewElement','$textProxy','insertion:','model','dataReady','open','getChanges','deleteContent','hasSuggestion','return','upcast','createRange','trackChanges','unbind','default','low','isAtEnd','setTo','discardSelectedSuggestions','enqueueChange','hasComments','getMultiRangeId','isAfter','execute','suggestionUnloaded','_removeSuggestion','isTouching','oldRange','getLastMatchingPosition','newRange','isBlock','getAllAdjacentSuggestions','bindElementToMarker','addMarker:suggestion','removed','split','discard','delete','getCommentThread','_model','formatBlock:','splitPosition','removeClass','map','isRemovable','change:_saved','tablePasteChainId','formatInline:','assign','high','authoredAt','size','schema','locale','name','track-changes-suggestion-not-found','_suggestions','clone','resolve','insertion:chain','isArray','isIntersectingWithRange','parent','unbindElementFromMarkerName','chain','formatInline:join','add','position','editingDowncast','getNearestSelectionRange','data-suggestion','fire','markerName','isDocumentOperation','removeMarker:suggestion:formatBlock','nodeBefore','_getExternalAuthor','widget','discardAllSuggestions','splice','getMarkers','rejected','getRange','isAtStart','markMultiRangeInsertion','howMany','targetPosition','accepted','commentThread','getFirstRange','createdAt','markerNameToElements','every','subType','elementEnd','value','data','marker-count','markers','enableCommand','_getSuggestionData','CommentsRepository','some','_suggestionFactory','filter','formatBlock:accept','collaboration.channelId','containsPosition','selection','nodeAfter','_handleNewSuggestionMarker','stop','suggestion','_joinSuggestions','markerToHighlight','isLimit','Users','_mergeNestedSuggestions','plugins','getAttribute','getRanges','getSuggestions','ck-suggestion-marker-','suggestionLoaded','previous','addClass','track-changes-command-not-found','documentSelection','containsRangeInObject','deletion:','_cutOutSuggestionMarker','addMarkerName','_setSuggestionData','join','track-changes-suggestion-data-mismatch','multi','activeMarkers','PENDING_ACTION_SUGGESTION','formatBlock:join'];(function(_0x3eb4ba,_0x10d3c6){const _0x545fe6=function(_0x348e16){while(--_0x348e16){_0x3eb4ba['push'](_0x3eb4ba['shift']());}};_0x545fe6(++_0x10d3c6);}(_0x10d3,0x16b));const _0x545f=function(_0x3eb4ba,_0x10d3c6){_0x3eb4ba=_0x3eb4ba-0x0;let _0x545fe6=_0x10d3[_0x3eb4ba];return _0x545fe6;};import{Plugin as _0x2ba468,PendingActions as _0x2b8ad3}from'ckeditor5/src/core';import{LiveRange as _0x305b6e}from'ckeditor5/src/engine';import{CKEditorError as _0x23608e,uid as _0xc98c69,priorities as _0x49f4ee,logWarning as _0x4ff997}from'ckeditor5/src/utils';import{toWidget as _0x411780}from'ckeditor5/src/widget';import{Users as _0x9200e9,hashObject as _0x1f5cc5}from'ckeditor5-collaboration/src/collaboration-core';import _0x55f5f1 from'./commands/trackchangescommand';import _0x457350 from'./commands/acceptsuggestioncommand';import _0x34e129 from'./commands/discardsuggestioncommand';import _0x3fa1e9 from'./commands/executeonallsuggestionscommand';import _0xfd5185 from'./commands/executeonselectedsuggestionscommand';import _0x4e3f09 from'./suggestion';import _0x8ad371 from'./suggestiondescriptionfactory';import _0x360fa7 from'./integrations/alignment';import _0x11d84c from'./integrations/basicstyles';import _0x466d33 from'./integrations/blockquote';import _0x456127 from'./integrations/ckbox';import _0x4296e4 from'./integrations/codeblock';import _0x54857b from'./integrations/comments';import _0x193038 from'./integrations/deletecommand';import _0x27e08d from'./integrations/documentlist';import _0x387776 from'./integrations/entercommand';import _0x496966 from'./integrations/findandreplace';import _0x2af00a from'./integrations/font';import _0x47fadd from'./integrations/formatpainter';import _0x36b1fc from'./integrations/heading';import _0x4936f7 from'./integrations/highlight';import _0x5b71fb from'./integrations/horizontalline';import _0x42f263 from'./integrations/htmlembed';import _0x4b5805 from'./integrations/image';import _0x3f2733 from'./integrations/imagereplace';import _0x19e4cd from'./integrations/importword';import _0x188c51 from'./integrations/indent';import _0x29910c from'./integrations/inputcommand';import _0x40d09a from'./integrations/link';import _0x405edf from'./integrations/list';import _0x402b10 from'./integrations/listproperties';import _0x1afc84 from'./integrations/mediaembed';import _0x91be80 from'./integrations/mention';import _0x5c2e1d from'./integrations/pagebreak';import _0x3bd9fe from'./integrations/paragraph';import _0x30925a from'./integrations/removeformat';import _0x3a8638 from'./integrations/restrictededitingmode';import _0x1daf79 from'./integrations/shiftentercommand';import _0x3bdf43 from'./integrations/standardeditingmode';import _0x1c4813 from'./integrations/style';import _0x20f0eb from'./integrations/table';import _0x549358 from'./integrations/tablemergesplit';import _0xa54404 from'./integrations/tableheadings';import _0x44947d from'./integrations/tableclipboard';import _0x18b2be from'./integrations/tablecolumnresize';import _0x59cc42 from'./integrations/template';import _0x54aea0 from'./integrations/tableofcontents';import _0x1b03f3 from'./integrations/title';import _0x97b69d from'./integrations/undo';import{getTranslation as _0x1eaf7a}from'./utils/common-translations';import _0x19bbab from'./integrations/tablecaption';import _0x298d3f from'./integrations/documentlistproperties';import _0x50b59d from'./integrations/tableproperties';import{isEqual as _0x3a9d17}from'lodash-es';export default class p extends _0x2ba468{static get[_0x545f('0x94')](){return[_0x545f('0xfd'),_0x9200e9,_0x2b8ad3,_0x360fa7,_0x11d84c,_0x466d33,_0x456127,_0x4296e4,_0x54857b,_0x193038,_0x27e08d,_0x298d3f,_0x387776,_0x496966,_0x2af00a,_0x47fadd,_0x36b1fc,_0x4936f7,_0x5b71fb,_0x42f263,_0x4b5805,_0x3f2733,_0x19e4cd,_0x188c51,_0x29910c,_0x40d09a,_0x405edf,_0x402b10,_0x1afc84,_0x91be80,_0x5c2e1d,_0x3bd9fe,_0x30925a,_0x3a8638,_0x1daf79,_0x3bdf43,_0x1c4813,_0x20f0eb,_0x549358,_0xa54404,_0x19bbab,_0x44947d,_0x18b2be,_0x54aea0,_0x50b59d,_0x59cc42,_0x1b03f3,_0x97b69d];}static get[_0x545f('0x92')](){return'TrackChangesEditing';}constructor(_0x15f153){function _0x1f8ba9(_0x392faf){return _0x392faf['map'](_0x3277bb=>String[_0x545f('0x13')](_0x3277bb))[_0x545f('0x11d')]('');}super(_0x15f153),this['set'](_0x545f('0x120'),[]),this['on'](_0x545f('0x10'),(_0x46dc29,_0x38d28a,_0x469a03,_0x1d3b7a)=>{this['_model'][_0x545f('0x20')](()=>{for(const _0x5567c8 of[..._0x1d3b7a,..._0x469a03])this[_0x545f('0xbf')][_0x545f('0xfa')]['has'](_0x5567c8)&&_0x15f153[_0x545f('0x3a')][_0x545f('0x77')](_0x5567c8);});}),this[_0x545f('0x91')]=new _0x8ad371(this[_0x545f('0x7d')]['model'][_0x545f('0xcc')],this['editor'][_0x545f('0xcd')]),this[_0x545f('0x3b')]=null,this[_0x545f('0xff')]=new Dt(this['editor']),this[_0x545f('0xd0')]=new Map(),this['_commentsRepository']=_0x15f153[_0x545f('0x10e')]['get']('CommentsRepository'),this[_0x545f('0x88')]=new Set(),this['_model']=this[_0x545f('0x7d')][_0x545f('0x9b')],this[_0x545f('0x139')]=new WeakMap(),this[_0x545f('0x73')]=!0x1,_0x15f153['config']['define']('trackChanges.trackFormatChanges',_0x545f('0xa6')),this['_trackFormatChanges']=_0x15f153['config'][_0x545f('0x7f')](_0x545f('0xd')),_0x15f153['config']['define'](_0x545f('0x37'),!0x0),this['_mergeNestedSuggestions']=_0x15f153['config']['get'](_0x545f('0x37')),this[_0x545f('0x7b')]=new _0x55f5f1(_0x15f153,this[_0x545f('0x88')]),this[_0x1f8ba9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1f8ba9([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x30]);}[_0x545f('0xe')](){const _0x5b2809=this['editor'];_0x5b2809[_0x545f('0x59')][_0x545f('0x9')](_0x545f('0xdc'))[_0x545f('0x10a')]({'model':_0x545f('0x108'),'view':_0x3b2606=>{const {id:_0x3fb46e,type:_0x4450ce}=this[_0x545f('0x38')](_0x3b2606[_0x545f('0xe0')]),_0x134fca=[_0x545f('0x126'),_0x545f('0x112')+_0x4450ce];let _0x384d0c=0xbb8;return this['activeMarkers'][_0x545f('0x7c')](_0x3b2606[_0x545f('0xe0')])&&(_0x134fca[_0x545f('0x90')](_0x545f('0x133')),_0x384d0c=0xbc2),_0x545f('0x93')==_0x4450ce&&(_0x384d0c+=0x5),{'classes':_0x134fca,'attributes':{'data-suggestion':_0x3fb46e},'priority':_0x384d0c};}}),_0x5b2809['conversion']['for'](_0x545f('0x140'))[_0x545f('0xda')](_0x5ca51c=>{_0x5ca51c['on'](_0x545f('0xb9'),(_0x3360cb,_0x4a56a2,_0x430422)=>{if(!_0x430422[_0x545f('0x8d')][_0x545f('0x8b')])return;const _0x3dce06=_0x4a56a2['item'];if(!_0x3dce06)return;const _0x47fd02=_0x430422[_0x545f('0x8c')][_0x545f('0x98')](_0x3dce06);_0x5b2809[_0x545f('0x9b')][_0x545f('0xcc')][_0x545f('0x70')](_0x3dce06)&&_0x47fd02&&!_0x47fd02[_0x545f('0x8a')](_0x545f('0xe5'))&&_0x47fd02['is']('containerElement')&&_0x411780(_0x47fd02,_0x430422[_0x545f('0x55')]);},{'priority':_0x545f('0xc9')});}),_0x5b2809[_0x545f('0x59')][_0x545f('0x9')](_0x545f('0x140'))[_0x545f('0x10a')]({'model':_0x545f('0x108'),'view':(_0x18d4a5,_0x3d03ce)=>{if(!_0x3d03ce[_0x545f('0x8d')][_0x545f('0x8b')])return null;const {type:_0x5ae541}=this['_splitMarkerName'](_0x18d4a5[_0x545f('0xe0')]);return{'classes':['ck-suggestion-marker',_0x545f('0x112')+_0x5ae541],'priority':0xbb8};}});const _0x37dade=({showActiveMarkers:_0x3d76c5=!0x0}={})=>(_0x8e1bb0,_0x5742f5,_0x4a8f5d)=>{if(!_0x5742f5[_0x545f('0x1c')])return;if(_0x5742f5['item']['is'](_0x545f('0x104')))return void _0x4a8f5d['consumable'][_0x545f('0x2d')](_0x5742f5[_0x545f('0x1c')],_0x8e1bb0[_0x545f('0xce')]);const _0x49afc9=_0x4a8f5d[_0x545f('0x8c')]['toViewElement'](_0x5742f5[_0x545f('0x1c')]);if(!(_0x5742f5[_0x545f('0x1c')]['is'](_0x545f('0x78'))&&_0x5b2809[_0x545f('0x9b')][_0x545f('0xcc')]['isBlock'](_0x5742f5['item'])&&!_0x49afc9['getCustomProperty'](_0x545f('0x134'))))return;const {id:_0x27c02a}=this[_0x545f('0x38')](_0x5742f5['markerName']);_0x4a8f5d[_0x545f('0x55')]['addClass']([_0x545f('0x126'),_0x545f('0x12c')],_0x49afc9),_0x4a8f5d[_0x545f('0x55')][_0x545f('0x82')]('data-suggestion',_0x27c02a,_0x49afc9),_0x4a8f5d['mapper'][_0x545f('0xb8')](_0x49afc9,_0x5742f5[_0x545f('0xe0')]),_0x3d76c5&&(this[_0x545f('0x120')][_0x545f('0x7c')](_0x5742f5['markerName'])?_0x4a8f5d[_0x545f('0x55')][_0x545f('0x115')](_0x545f('0x133'),_0x49afc9):_0x4a8f5d[_0x545f('0x55')][_0x545f('0xc2')]('ck-suggestion-marker--active',_0x49afc9));for(const _0x469809 of _0x5b2809['model']['createRangeIn'](_0x5742f5['item'])[_0x545f('0x80')]())_0x4a8f5d[_0x545f('0x12a')][_0x545f('0x2d')](_0x469809,_0x8e1bb0[_0x545f('0xce')]);_0x4a8f5d['consumable'][_0x545f('0x2d')](_0x5742f5['item'],_0x8e1bb0[_0x545f('0xce')]);};_0x5b2809[_0x545f('0x59')][_0x545f('0x9')]('dataDowncast')[_0x545f('0xda')](_0x832ddf=>{_0x832ddf['on']('addMarker:suggestion:formatBlock',(_0x1c7c41,_0x4cd09e,_0x586731)=>{_0x586731[_0x545f('0x8d')][_0x545f('0x8b')]&&_0x37dade({'showActiveMarkers':!0x1})(_0x1c7c41,_0x4cd09e,_0x586731);},{'priority':'highest'});}),_0x5b2809['conversion']['for']('dataDowncast')[_0x545f('0x4c')]({'model':_0x545f('0x108'),'view':(_0x1e228a,_0x96f100)=>_0x96f100[_0x545f('0x8d')][_0x545f('0x8b')]?null:{'group':_0x545f('0x108'),'name':_0x1e228a[_0x545f('0x131')](0xb)}}),_0x5b2809[_0x545f('0x59')]['for'](_0x545f('0xa2'))['elementToElement']({'view':{'name':_0x545f('0x108'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34faf1,{writer:_0x4dd884})=>{let _0xc30f7d=_0x545f('0x5f')+_0x34faf1['getAttribute'](_0x545f('0x12f'))+':'+_0x34faf1[_0x545f('0x10f')]('id');return _0x34faf1['getAttribute'](_0x545f('0xf9'))&&(_0xc30f7d+=':'+_0x34faf1[_0x545f('0x10f')](_0x545f('0xf9'))),_0x4dd884[_0x545f('0x27')](_0x545f('0xf'),{'data-name':_0xc30f7d});}}),_0x5b2809[_0x545f('0x59')][_0x545f('0x9')](_0x545f('0xa2'))[_0x545f('0x13f')]({'view':_0x545f('0x108')}),_0x5b2809[_0x545f('0x59')][_0x545f('0x9')]('editingDowncast')[_0x545f('0xda')](_0x1a2c53=>{_0x1a2c53['on'](_0x545f('0x4f'),_0x37dade(),{'priority':_0x545f('0xc9')});}),_0x5b2809[_0x545f('0x59')][_0x545f('0x9')](_0x545f('0xdc'))['add'](_0x1fa996=>{_0x1fa996['on'](_0x545f('0xe2'),(_0x5c5652,_0x933fea,_0x102872)=>{const _0x130535=_0x102872[_0x545f('0x8c')][_0x545f('0xf3')](_0x933fea[_0x545f('0xe0')]);if(_0x130535)for(const _0xde3319 of _0x130535)_0xde3319['getCustomProperty'](_0x545f('0x134'))||(_0x102872[_0x545f('0x55')][_0x545f('0xc2')](['ck-suggestion-marker',_0x545f('0x12c'),_0x545f('0x133')],_0xde3319),_0x102872[_0x545f('0x55')][_0x545f('0x40')](_0x545f('0xde'),_0xde3319),_0x102872[_0x545f('0x8c')][_0x545f('0xd7')](_0xde3319,_0x933fea[_0x545f('0xe0')]));},{'priority':_0x545f('0xc9')});}),_0x5b2809[_0x545f('0x9b')][_0x545f('0x18')][_0x545f('0x3f')](_0x526364=>{let _0x1b8ef4=!0x1;const _0x503b9a=Array[_0x545f('0x3')](_0x5b2809[_0x545f('0x9b')][_0x545f('0x18')]['differ'][_0x545f('0x22')]()),_0x431eed=new Set();for(const {name:_0x4d2533,data:_0x18521c}of _0x503b9a){const {group:_0x4470dd,type:_0x4b64cd,id:_0x3eab61}=this[_0x545f('0x38')](_0x4d2533);if(_0x545f('0x108')!==_0x4470dd)continue;const _0x1a7913=this[_0x545f('0xd0')][_0x545f('0x7f')](_0x3eab61);if(null!=_0x18521c['newRange']){_0x545f('0x76')==_0x4b64cd&&(_0x1b8ef4=_0x1b8ef4||Mt(_0x18521c[_0x545f('0xb5')],_0x4d2533,_0x526364,_0x5b2809[_0x545f('0x9b')]['schema']));if(_0x18521c[_0x545f('0xb5')][_0x545f('0x50')]||_0x545f('0x47')==_0x18521c[_0x545f('0xb5')][_0x545f('0x4')][_0x545f('0x129')]||'formatBlock'==_0x4b64cd&&!Nt(_0x18521c[_0x545f('0xb5')])||_0x545f('0x93')==_0x4b64cd&&!(!_t(_0x1ad134=_0x18521c[_0x545f('0xb5')])&&!function(_0x4692f7){return _0x4692f7[_0x545f('0x5b')][_0x545f('0xd6')]==_0x4692f7[_0x545f('0x3d')][_0x545f('0xe3')]&&_0x4692f7[_0x545f('0x5b')][_0x545f('0xa8')];}(_0x1ad134)))_0x526364['removeMarker'](_0x4d2533),_0x1b8ef4=!0x0;else{if(!_0x1a7913||!_0x1a7913[_0x545f('0x72')])continue;_0x431eed[_0x545f('0xda')](_0x1a7913);}}}var _0x1ad134;return _0x431eed[_0x545f('0xcb')]>0x0&&(_0x1b8ef4=!!this['_joinWithAdjacentSuggestions'](_0x431eed)||_0x1b8ef4),_0x1b8ef4;}),_0x5b2809[_0x545f('0x9b')]['document'][_0x545f('0x3f')](_0x3e9086=>{let _0x1f9b02=!0x1;for(const _0x4e2d35 of _0x5b2809[_0x545f('0x9b')][_0x545f('0x18')][_0x545f('0x62')][_0x545f('0x9e')]()){if(_0x545f('0x56')!=_0x4e2d35[_0x545f('0x32')])continue;const _0x285ede=_0x4e2d35[_0x545f('0xdb')]['getShiftedBy'](_0x4e2d35[_0x545f('0x97')]);if(_0x285ede[_0x545f('0xa8')])for(const _0x4165e5 of this[_0x545f('0xd0')][_0x545f('0x6f')]()){if(_0x4165e5['isMultiRange']||!_0x4165e5[_0x545f('0x72')])continue;if(_0x545f('0x8')!=_0x4165e5[_0x545f('0x32')])continue;const _0x192e86=_0x4165e5[_0x545f('0xf1')]();if(_0x192e86[_0x545f('0x5b')][_0x545f('0xd6')]!=_0x192e86[_0x545f('0x3d')][_0x545f('0xd6')]&&_0x192e86[_0x545f('0x3d')]['isEqual'](_0x4e2d35['position'])){const _0x225705=_0x5b2809['model'][_0x545f('0xa3')](_0x192e86[_0x545f('0x5b')],_0x285ede);_0x3e9086[_0x545f('0x29')](_0x4165e5[_0x545f('0x1d')](),{'range':_0x225705}),_0x1f9b02=!0x0;}}}return _0x1f9b02;}),_0x5b2809[_0x545f('0x9b')][_0x545f('0xfa')]['on']('update:suggestion',(_0x590570,_0x311252,_0x440d73)=>{if(null==_0x440d73){const {id:_0x248349}=this[_0x545f('0x38')](_0x311252[_0x545f('0xce')]),_0x329e76=this[_0x545f('0xd0')][_0x545f('0x7f')](_0x248349);_0x329e76&&_0x329e76[_0x545f('0x11b')](_0x311252[_0x545f('0xce')]);}}),_0x5b2809[_0x545f('0x9b')][_0x545f('0x18')]['on'](_0x545f('0x6d'),()=>{const _0x3da7c1=Array[_0x545f('0x3')](_0x5b2809[_0x545f('0x9b')][_0x545f('0x18')]['differ'][_0x545f('0x22')]())[_0x545f('0x100')](_0x315de1=>_0x545f('0x108')===this['_splitMarkerName'](_0x315de1[_0x545f('0xce')])[_0x545f('0x35')]);if(0x0===_0x3da7c1[_0x545f('0x97')])return;_0x3da7c1['sort']((_0x30b3f4,_0x171e96)=>{const _0x4e1a04=_0x30b3f4[_0x545f('0xf8')][_0x545f('0xb3')],_0x21d0d4=_0x171e96['data']['oldRange'];return null===_0x4e1a04&&null===_0x21d0d4?0x0:null===_0x4e1a04&&null!==_0x21d0d4?-0x1:null!==_0x4e1a04&&null===_0x21d0d4?0x1:_0x4e1a04['start'][_0x545f('0x19')](_0x21d0d4[_0x545f('0x5b')])?-0x1:0x1;});const _0x341092=new Set(),_0x475ddd=new Set();for(const {name:_0x23e8ce,data:_0x2442f3}of _0x3da7c1){const {id:_0x44e8bb}=this[_0x545f('0x38')](_0x23e8ce);if(null===_0x2442f3[_0x545f('0xb3')]){const _0x587153=this[_0x545f('0x106')](_0x23e8ce);_0x475ddd['add'](_0x587153);}else{const _0x353d7e=this['_suggestions'][_0x545f('0x7f')](_0x44e8bb);null!==_0x2442f3[_0x545f('0xb5')]||_0x353d7e['isInContent']?(_0x341092['add'](_0x353d7e[_0x545f('0x43')]),_0x475ddd['add'](_0x353d7e)):this[_0x545f('0xb1')](_0x353d7e);}}_0x475ddd[_0x545f('0xcb')]>0x0&&this['_refreshSuggestionsChain'](_0x475ddd);for(const _0x175744 of _0x341092)this[_0x545f('0xdf')](_0x545f('0x69'),_0x175744);}),_0x5b2809[_0x545f('0x9b')]['on']('applyOperation',(_0x1b981d,_0x476dd3)=>{const _0x139892=_0x476dd3[0x0];if(!this[_0x545f('0xd0')][_0x545f('0xcb')])return;if(!_0x139892[_0x545f('0xe1')])return;if(_0x139892[_0x545f('0x137')][_0x545f('0x5c')]||!_0x139892[_0x545f('0x137')]['isLocal'])return;let _0x1af708,_0x16f242;switch(_0x139892[_0x545f('0x32')]){case'insert':_0x1af708=_0x5b2809[_0x545f('0x9b')]['createPositionAt'](_0x139892['position']),_0x16f242=_0x1af708[_0x545f('0x6c')](_0x139892[_0x545f('0xed')]);break;case _0x545f('0xbb'):_0x1af708=_0x5b2809[_0x545f('0x9b')][_0x545f('0x5d')](_0x139892[_0x545f('0xc1')]),_0x16f242=_0x5b2809['model']['createPositionAt'](_0x139892['moveTargetPosition']);break;case _0x545f('0x58'):_0x1af708=_0x5b2809[_0x545f('0x9b')][_0x545f('0x5d')](_0x139892[_0x545f('0xee')]),_0x16f242=_0x1af708[_0x545f('0x6c')](_0x139892['howMany']);break;default:return;}const _0x4c5acb=_0x5b2809['model'][_0x545f('0xa3')](_0x1af708,_0x16f242);_0x5b2809[_0x545f('0x9b')][_0x545f('0x20')](()=>{for(const {suggestion:_0x2da1fd,meta:_0x5f164b}of this[_0x545f('0x132')](_0x4c5acb)){if(_0x2da1fd[_0x545f('0x1e')])continue;if(_0x545f('0x76')==_0x2da1fd[_0x545f('0x32')])continue;const _0x33dec3=_0x2da1fd[_0x545f('0xf8')]&&_0x2da1fd[_0x545f('0xf8')]['multipleBlocks'];(_0x545f('0x8')!=_0x2da1fd[_0x545f('0x32')]||_0x545f('0xbb')==_0x139892[_0x545f('0x32')]&&!_0x33dec3)&&(_0x5f164b[_0x545f('0x118')]||_0x545f('0x84')==_0x2da1fd[_0x545f('0x32')]&&_0x5f164b['isOwn']||_0x2da1fd[_0x545f('0xf1')]()[_0x545f('0x21')](_0x4c5acb)&&this[_0x545f('0x17')](_0x2da1fd,_0x1af708,_0x16f242));}});},{'priority':_0x545f('0x1')}),_0x5b2809[_0x545f('0x9b')]['on'](_0x545f('0x9f'),(_0x42af6f,_0x5368bc)=>{const _0x22e1ac=_0x5368bc[0x0],_0x2d45ff=_0x5368bc[0x1];if(_0x2d45ff&&_0x2d45ff['forceDefaultExecution'])return;if(this[_0x545f('0x73')])return;if(!this[_0x545f('0x7b')][_0x545f('0xf7')])return;if(_0x22e1ac[_0x545f('0x50')])return;const _0x5ce734=_0x5b2809[_0x545f('0x9b')]['schema'],{start:_0x33686d,end:_0x3b5065}=_0x22e1ac['getFirstRange'](),_0x54c80e=_0x33686d[_0x545f('0x105')]&&_0x5ce734[_0x545f('0x10b')](_0x33686d[_0x545f('0x105')])?null:_0x5ce734[_0x545f('0xdd')](_0x33686d,'forward'),_0x5609b6=_0x3b5065[_0x545f('0xe3')]&&_0x5ce734['isLimit'](_0x3b5065[_0x545f('0xe3')])?null:_0x5ce734[_0x545f('0xdd')](_0x3b5065,_0x545f('0x4d')),_0x5ab3db=_0x5b2809[_0x545f('0x9b')][_0x545f('0xa3')](_0x54c80e?_0x54c80e[_0x545f('0x5b')]:_0x33686d,_0x5609b6?_0x5609b6[_0x545f('0x3d')]:_0x3b5065);_0x5b2809[_0x545f('0x9b')][_0x545f('0x20')](_0x376f03=>{this[_0x545f('0x6e')](_0x5ab3db);const _0x2800cb=_0x5b2809[_0x545f('0x9b')][_0x545f('0xcc')][_0x545f('0xdd')](_0x5ab3db['start']);_0x22e1ac['is'](_0x545f('0x117'))?_0x376f03[_0x545f('0x83')](_0x2800cb):_0x22e1ac[_0x545f('0xa9')](_0x2800cb);}),_0x42af6f['stop']();},{'priority':_0x49f4ee[_0x545f('0x48')]+0xa}),_0x5b2809['model']['on'](_0x545f('0x26'),(_0x1af7b2,_0xc129a4)=>{const _0x78d533=_0xc129a4[_0xc129a4['length']-0x1];_0x78d533&&_0x78d533[_0x545f('0x125')]||this[_0x545f('0x73')]||this['trackChangesCommand'][_0x545f('0xf7')]&&(_0x5b2809[_0x545f('0x9b')][_0x545f('0x20')](()=>{let _0x5073d9=_0x5b2809['model'][_0x545f('0x26')](_0xc129a4[0x0],_0xc129a4[0x1],_0xc129a4[0x2],{'forceDefaultExecution':!0x0});if(!_0x5073d9)return;_0x1af7b2[_0x545f('0xa1')]=_0x5073d9[_0x545f('0xd1')]();const _0x2ca1b9=_0x5073d9[_0x545f('0x3d')]['nodeBefore'],_0x52f6f6=_0x5b2809[_0x545f('0x9b')][_0x545f('0xcc')];_0x2ca1b9&&_0x52f6f6[_0x545f('0xb6')](_0x2ca1b9)&&!_0x52f6f6[_0x545f('0x70')](_0x2ca1b9)&&(_0x5073d9=_0x5b2809[_0x545f('0x9b')][_0x545f('0xa3')](_0x5073d9['start'],_0x5b2809[_0x545f('0x9b')]['createPositionAt'](_0x2ca1b9,_0x545f('0x3d')))),this[_0x545f('0x3c')](_0x5073d9);}),_0x1af7b2[_0x545f('0x107')]());},{'priority':'high'}),this[_0x545f('0x7d')]['commands'][_0x545f('0xda')](_0x545f('0xa4'),this[_0x545f('0x7b')]),this['enableCommand'](_0x545f('0xa4'));const _0x31a016=new _0x457350(_0x5b2809,this[_0x545f('0xd0')]);_0x5b2809[_0x545f('0x41')][_0x545f('0xda')](_0x545f('0x42'),_0x31a016),this[_0x545f('0xfb')](_0x545f('0x42'));const _0x5d5838=new _0x34e129(_0x5b2809,this[_0x545f('0xd0')]);_0x5b2809[_0x545f('0x41')][_0x545f('0xda')](_0x545f('0x124'),_0x5d5838),this[_0x545f('0xfb')](_0x545f('0x124')),_0x5b2809['commands'][_0x545f('0xda')](_0x545f('0x61'),new _0x3fa1e9(_0x5b2809,_0x31a016,this[_0x545f('0xd0')])),this['enableCommand']('acceptAllSuggestions'),_0x5b2809['commands'][_0x545f('0xda')](_0x545f('0xe6'),new _0x3fa1e9(_0x5b2809,_0x5d5838,this[_0x545f('0xd0')])),this[_0x545f('0xfb')](_0x545f('0xe6')),_0x5b2809[_0x545f('0x41')][_0x545f('0xda')](_0x545f('0x12b'),new _0xfd5185(_0x5b2809,_0x31a016,this[_0x545f('0xd0')])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b2809[_0x545f('0x41')][_0x545f('0xda')](_0x545f('0xaa'),new _0xfd5185(_0x5b2809,_0x5d5838,this['_suggestions'])),this[_0x545f('0xfb')](_0x545f('0xaa'));const _0x2aa8e2=_0x5b2809[_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0xfd'));this[_0x545f('0x49')](_0x2aa8e2,_0x545f('0x4a'),(_0x582cd4,{threadId:_0x939f88})=>{const _0x2e374e=this[_0x545f('0xd0')][_0x545f('0x7f')](_0x939f88);_0x2e374e&&_0x2e374e[_0x545f('0xf0')]&&0x1===_0x2e374e[_0x545f('0xf0')][_0x545f('0x97')]&&this[_0x545f('0x128')](_0x939f88,{'hasComments':!0x0});},{'priority':_0x545f('0xa7')}),this['listenTo'](_0x2aa8e2,_0x545f('0x5'),(_0x363779,{threadId:_0x355c05})=>{const _0x1a8166=this[_0x545f('0xd0')][_0x545f('0x7f')](_0x355c05);_0x1a8166&&_0x1a8166['commentThread']&&!_0x1a8166[_0x545f('0xf0')]['length']&&this[_0x545f('0x128')](_0x355c05,{'hasComments':!0x1});},{'priority':_0x545f('0xa7')});}set[_0x545f('0x8f')](_0x397677){if(this[_0x545f('0x3b')])throw new _0x23608e(_0x545f('0x28'),this);this[_0x545f('0x3b')]=_0x397677;}get['adapter'](){return this[_0x545f('0x3b')];}[_0x545f('0x111')]({skipNotAttached:_0x53c7e0=!0x1,toJSON:_0x672aa9=!0x1}={}){const _0x323c75=[];for(const _0x38cf5d of this[_0x545f('0xd0')]['values']())_0x53c7e0&&!_0x38cf5d[_0x545f('0x72')]||_0x323c75[_0x545f('0x90')](_0x38cf5d);return _0x672aa9?_0x323c75[_0x545f('0xc3')](_0x5b3bdd=>_0x5b3bdd['toJSON']()):_0x323c75;}[_0x545f('0x89')](_0x67f48){const _0x4007e3=this[_0x545f('0xd0')][_0x545f('0x7f')](_0x67f48);if(!_0x4007e3)throw new _0x23608e(_0x545f('0xcf'),this);return _0x4007e3;}[_0x545f('0xa0')](_0x2232f7){return this[_0x545f('0xd0')][_0x545f('0x12')](_0x2232f7);}[_0x545f('0x7e')](_0x3f0183){const {authorId:_0x36c2b7,id:_0x405cfc,attributes:_0x191b36}=_0x3f0183,[_0x5a8218,_0x30e456]=_0x3f0183[_0x545f('0x32')][_0x545f('0xbb')](':'),_0xcd1fe2=this[_0x545f('0xd0')][_0x545f('0x7f')](_0x405cfc)||this[_0x545f('0x31')](_0x5a8218,_0x30e456,_0x405cfc,_0x36c2b7,_0x191b36);if(this[_0x545f('0x12e')](_0xcd1fe2),this['_checkSuggestionCorrectness'](_0xcd1fe2,_0x5a8218,_0x30e456||null,_0x36c2b7),_0xcd1fe2['createdAt']=_0x3f0183[_0x545f('0xf2')],_0xcd1fe2[_0x545f('0x2b')]=!0x0,_0x191b36&&_0x191b36[_0x545f('0x141')]){const _0x46a4c0=_0x191b36[_0x545f('0x141')],_0x44efe7=this[_0x545f('0xe4')](_0x46a4c0[_0x545f('0x46')]);_0xcd1fe2[_0x545f('0xca')]=_0x46a4c0[_0x545f('0xf2')],_0xcd1fe2[_0x545f('0x57')]=_0x44efe7,_0xcd1fe2['isExternal']=!0x0;}else _0xcd1fe2['authoredAt']=_0x3f0183['createdAt'];switch(_0x3f0183[_0x545f('0xf8')]&&(_0xcd1fe2[_0x545f('0xf8')]=_0x3f0183[_0x545f('0xf8')]),_0x3f0183[_0x545f('0x127')]&&(_0xcd1fe2[_0x545f('0x127')]=_0x3f0183[_0x545f('0x127')]),this[_0x545f('0x3b')]&&this['_adapter'][_0x545f('0x53')]||(_0xcd1fe2[_0x545f('0x24')]=!0x0),this[_0x545f('0x139')][_0x545f('0x7f')](_0xcd1fe2)){case _0x545f('0x2'):this[_0x545f('0x139')][_0x545f('0x13b')](_0xcd1fe2,_0x545f('0x9c'));break;case'markerReady':_0xcd1fe2['isInContent']?(this[_0x545f('0x145')](new Set([_0xcd1fe2])),this[_0x545f('0xc')](new Set([_0xcd1fe2])),this[_0x545f('0x139')]['set'](_0xcd1fe2,_0x545f('0x79')),this[_0x545f('0xdf')](_0x545f('0x113'),_0xcd1fe2)):this[_0x545f('0x139')]['set'](_0xcd1fe2,_0x545f('0xba'));}return _0xcd1fe2;}[_0x545f('0x42')](_0x29a309){this[_0x545f('0x125')](()=>{this['editor'][_0x545f('0x9b')][_0x545f('0x20')](()=>{for(const _0x33681 of _0x29a309[_0x545f('0xb7')]())_0x33681[_0x545f('0x34')]();});});}['discardSuggestion'](_0x25b130){this['forceDefaultExecution'](()=>{this[_0x545f('0x7d')][_0x545f('0x9b')]['change'](()=>{for(const _0x167670 of _0x25b130[_0x545f('0xb7')]())_0x167670[_0x545f('0xbc')]();});});}['enableCommand'](_0x43ca6c,_0x3b177c){const _0x5b4d98=this[_0x545f('0x7d')][_0x545f('0x41')][_0x545f('0x7f')](_0x43ca6c);if(!_0x5b4d98)throw new _0x23608e(_0x545f('0x116'),this,{'commandName':_0x43ca6c});this[_0x545f('0x88')][_0x545f('0xda')](_0x5b4d98),_0x3b177c&&_0x5b4d98['on'](_0x545f('0xaf'),(_0x560e72,_0x314f1c)=>{this[_0x545f('0x7b')]['value']&&(this[_0x545f('0x73')]||_0x314f1c[_0x545f('0x97')]>0x0&&_0x314f1c[_0x314f1c['length']-0x1]&&_0x314f1c[_0x314f1c[_0x545f('0x97')]-0x1]['forceDefaultExecution']||(_0x3b177c((..._0x4891e4)=>_0x5b4d98[_0x545f('0xaf')](..._0x4891e4,{'forceDefaultExecution':!0x0}),..._0x314f1c),_0x560e72[_0x545f('0x107')]()));},{'priority':_0x545f('0xc9')});}['forceDefaultExecution'](_0x2e818c){let _0x1516f2,_0x2773b3;const _0x2d8104=this[_0x545f('0x73')];this[_0x545f('0x73')]=!0x0;try{_0x1516f2=_0x2e818c();}catch(_0x6fcb14){_0x2773b3=_0x6fcb14;}return _0x2d8104||(this[_0x545f('0x73')]=!0x1),_0x2773b3&&_0x23608e['rethrowUnexpectedError'](_0x2773b3,this),_0x1516f2;}['markInsertion'](_0x4e742d,_0x14bceb=null,_0x416505={}){if(_0x4e742d['isCollapsed'])return null;const _0x2f1d47=this[_0x545f('0x7d')][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x10c'))['me'];for(const {suggestion:_0x19af10,meta:_0x112dfa}of this[_0x545f('0x132')](_0x4e742d,_0x545f('0x84')))if(_0x112dfa[_0x545f('0x2c')]){if(!_0x112dfa['isNextTo']){if(_0x112dfa['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ut(_0x19af10,_0x416505))continue;return _0x19af10;}if(Ut(_0x19af10,_0x416505))return _0x19af10;this[_0x545f('0x17')](_0x19af10,_0x4e742d[_0x545f('0x5b')],_0x4e742d[_0x545f('0x3d')]);break;}if(_0x14bceb==_0x19af10[_0x545f('0xf5')]&&Ut(_0x19af10,_0x416505)){const _0x17b8fb=_0x19af10[_0x545f('0xf1')]();return _0x17b8fb[_0x545f('0x5b')][_0x545f('0x16')](_0x4e742d[_0x545f('0x3d')])?this[_0x545f('0x136')](_0x19af10,this['_model'][_0x545f('0xa3')](_0x4e742d[_0x545f('0x5b')],_0x17b8fb[_0x545f('0x3d')])):this[_0x545f('0x136')](_0x19af10,this['_model'][_0x545f('0xa3')](_0x17b8fb[_0x545f('0x5b')],_0x4e742d[_0x545f('0x3d')])),_0x19af10;}}const _0x4b5c75=_0xc98c69(),_0x47e482=_0x2f1d47['id'],_0x4def34=_0x14bceb?_0x545f('0x9a')+_0x14bceb:_0x545f('0x84'),_0x1f3f7b=this['_setSuggestionData']({'id':_0x4b5c75,'type':_0x4def34,'createdAt':new Date(),'authorId':_0x47e482,'attributes':_0x416505});return this[_0x545f('0x74')](_0x4def34,_0x4b5c75,_0x47e482,_0x4e742d),_0x1f3f7b;}[_0x545f('0xec')](_0x15904c,_0xb6dc46=_0x545f('0x11f'),_0x354f7c={}){const _0x515388=this[_0x545f('0x7d')][_0x545f('0x10e')]['get'](_0x545f('0x10c'))['me'],_0x1e0a59=this[_0x545f('0xff')][_0x545f('0x8e')](_0x545f('0x84'),_0xb6dc46,_0x545f('0x11d'));for(const _0x31490c of this[_0x545f('0x111')]())if(_0x31490c[_0x545f('0x57')]['id']==_0x515388['id']&&_0x545f('0x84')==_0x31490c[_0x545f('0x32')]&&_0x31490c[_0x545f('0xf5')]==_0xb6dc46&&Ut(_0x31490c,_0x354f7c)&&(_0x1e0a59(_0x31490c[_0x545f('0x110')](),_0x15904c)||_0x1e0a59(_0x15904c,_0x31490c['getRanges']()))){for(const _0x5bf455 of _0x15904c)_0x31490c[_0x545f('0x2e')](_0x5bf455);return _0x31490c;}for(const {suggestion:_0x248f0d,meta:_0x270925}of this['_findSuggestions'](_0x15904c,'insertion')){if(!_0x270925[_0x545f('0x2c')])continue;if(!this[_0x545f('0x10d')]&&_0x270925['containsRangeInObject'])continue;if(!Ut(_0x248f0d,_0x354f7c))continue;let _0x37bf52=!0x0;for(const _0x1c6e6b of _0x248f0d['getRanges']())for(const _0xadb675 of _0x15904c)if(!_0x1c6e6b[_0x545f('0x21')](_0xadb675)){_0x37bf52=!0x1;break;}if(_0x37bf52)return _0x248f0d;}const _0xd2060e=_0xc98c69(),_0x1e12a9=_0x515388['id'],_0x3ea15a='insertion:'+_0xb6dc46,_0x57703a=this['_setSuggestionData']({'id':_0xd2060e,'type':_0x3ea15a,'createdAt':new Date(),'authorId':_0x1e12a9,'attributes':_0x354f7c});for(const _0x25d996 of _0x15904c)this[_0x545f('0x74')](_0x3ea15a,_0xd2060e,_0x1e12a9,_0x25d996,_0x4e3f09[_0x545f('0xad')]());return _0x57703a;}['markInlineFormat'](_0x395ff7,_0x3a7314,_0x21c4b7=null,_0x55cfc={}){if(_0x21c4b7=_0x21c4b7||$t(_0x3a7314),_0x395ff7[_0x545f('0x50')])return null;if('never'===this[_0x545f('0x71')]){const _0xa2da9d=this[_0x545f('0xff')][_0x545f('0x8e')](_0x545f('0x76'),_0x21c4b7,_0x545f('0x34'));return this[_0x545f('0x125')](()=>_0xa2da9d([_0x395ff7],_0x3a7314,_0x55cfc)),null;}const _0x2f8161=this['editor'][_0x545f('0x10e')]['get'](_0x545f('0x10c'))['me'],_0x1bf082=[];if(_0x545f('0x11')!==this[_0x545f('0x71')])for(const {suggestion:_0x54c661,meta:_0x1b9741}of this[_0x545f('0x132')](_0x395ff7,_0x545f('0x84')))_0x1b9741[_0x545f('0x2c')]&&!_0x1b9741[_0x545f('0x44')]&&_0x1bf082['push'](..._0x54c661['getRanges']());const _0x14730a=function(_0x42dfbd,_0xd47169){const _0x100704=[];for(const _0x11d77a of _0xd47169){const _0x4f466b=_0x42dfbd[_0x545f('0x30')](_0x11d77a);_0x4f466b&&_0x100704['push'](_0x4f466b);}return _0x100704;}(_0x395ff7,_0x1bf082),_0x366a45=function(_0x2b44de,_0x1f13a1){const _0x1df49b=[_0x2b44de];for(const _0x409371 of _0x1f13a1){let _0x51f69e=0x0;for(;_0x51f69e<_0x1df49b[_0x545f('0x97')];){const _0x2b64f9=_0x1df49b[_0x51f69e][_0x545f('0x7')](_0x409371);_0x1df49b[_0x545f('0xe7')](_0x51f69e,0x1,..._0x2b64f9),_0x51f69e+=_0x2b64f9[_0x545f('0x97')];}}return _0x1df49b;}(_0x395ff7,_0x1bf082);_0x14730a['length']&&this[_0x545f('0xbf')][_0x545f('0x20')](()=>{for(const _0x147677 of _0x14730a){const _0xd4e6c6=this[_0x545f('0xff')][_0x545f('0x8e')](_0x545f('0x76'),_0x21c4b7,_0x545f('0x34'));this[_0x545f('0x125')](()=>_0xd4e6c6([_0x147677],_0x3a7314,_0x55cfc));}});for(const _0x188025 of _0x366a45){let _0x2846fe=null,_0x58d080=_0x188025[_0x545f('0x5b')],_0x393bd1=_0x188025[_0x545f('0x3d')];for(const {suggestion:_0x5b93ab,meta:_0x5f2e9d}of this[_0x545f('0x132')](_0x188025,_0x545f('0x76'))){if(!_0x5f2e9d[_0x545f('0x2c')])continue;if(_0x5b93ab[_0x545f('0xf5')]!=_0x21c4b7)continue;if(!Ut(_0x5b93ab,_0x55cfc))continue;const _0x4bde65=_0x5b93ab[_0x545f('0xf1')]();if(_0x4bde65[_0x545f('0x21')](_0x188025,!0x0))return null;_0x58d080=_0x58d080[_0x545f('0x19')](_0x4bde65[_0x545f('0x5b')])?_0x58d080:_0x4bde65[_0x545f('0x5b')],_0x393bd1=_0x393bd1['isAfter'](_0x4bde65[_0x545f('0x3d')])?_0x393bd1:_0x4bde65['end'],_0x2846fe?_0x4bde65[_0x545f('0x5b')][_0x545f('0x19')](_0x2846fe[_0x545f('0xf1')]()[_0x545f('0x5b')])?(_0x2846fe['removeMarkers'](),_0x2846fe=_0x5b93ab):_0x5b93ab[_0x545f('0x86')]():_0x2846fe=_0x5b93ab;}const _0x341168=this[_0x545f('0xbf')]['createRange'](_0x58d080,_0x393bd1);if(_0x2846fe)this['_setSuggestionRange'](_0x2846fe,_0x341168);else{const _0x29f47d=_0xc98c69(),_0x556361=_0x2f8161['id'];this[_0x545f('0x11c')]({'id':_0x29f47d,'type':_0x545f('0xc7')+_0x21c4b7,'data':_0x3a7314,'createdAt':new Date(),'authorId':_0x556361,'attributes':_0x55cfc}),this[_0x545f('0x74')]('formatInline:'+_0x21c4b7,_0x29f47d,_0x556361,_0x341168);}}return null;}[_0x545f('0x54')](_0x1a9271,_0x9a4fa6,_0x1fbfef=[],_0x3c0b48=null,_0x15aeb9={}){_0x9a4fa6[_0x545f('0x64')]||(_0x9a4fa6['formatGroupId']=_0x9a4fa6['commandName']),_0x9a4fa6[_0x545f('0x85')]=_0x1a9271['is'](_0x545f('0x66')),_0x3c0b48=_0x3c0b48||$t(_0x9a4fa6);const _0x2633fc=_0x1fbfef[_0x545f('0xc3')](_0x13ea0b=>Rt(_0x13ea0b,this['_model'])),_0x42c068=_0x1a9271['is']('range')?_0x1a9271:Rt(_0x1a9271,this[_0x545f('0xbf')]);if('never'===this[_0x545f('0x71')]){const _0x20070b=this[_0x545f('0xff')]['getSuggestionCallback']('formatBlock',_0x3c0b48,'accept');return this[_0x545f('0x125')](()=>_0x20070b([_0x42c068],_0x9a4fa6,_0x15aeb9)),null;}_0x2633fc[_0x545f('0x90')](_0x42c068);let _0xfd6b2e=!0x0;for(const _0x4c6c54 of _0x2633fc)if(!this[_0x545f('0x87')](_0x4c6c54)){_0xfd6b2e=!0x1;break;}if(_0xfd6b2e&&'always'!==this[_0x545f('0x71')]){const _0x289abb=this[_0x545f('0xff')]['getSuggestionCallback'](_0x545f('0x8'),_0x3c0b48,_0x545f('0x34'));return this['forceDefaultExecution'](()=>_0x289abb([_0x42c068],_0x9a4fa6,_0x15aeb9)),null;}let _0x4244b9=null,_0x5a6dcc=_0x42c068[_0x545f('0x5b')],_0x339d16=_0x42c068['end'];for(const {suggestion:_0x205c5c,meta:_0x4f83d2}of this['_findSuggestions'](_0x42c068,_0x545f('0x8'))){if(!_0x4f83d2[_0x545f('0x2c')])continue;if(_0x4f83d2[_0x545f('0x4b')]||_0x4f83d2['containsRangeInObject']||_0x4f83d2[_0x545f('0x44')])continue;if(_0x205c5c[_0x545f('0xf8')][_0x545f('0x64')]!=_0x9a4fa6[_0x545f('0x64')])continue;if(!Ut(_0x205c5c,_0x15aeb9))continue;const _0x6d29b3=_0x205c5c[_0x545f('0xf1')]();if(_0x205c5c['subType']==_0x3c0b48){if(_0x6d29b3[_0x545f('0x21')](_0x42c068,!0x0))return null;_0x5a6dcc=_0x5a6dcc[_0x545f('0x19')](_0x6d29b3['start'])?_0x5a6dcc:_0x6d29b3['start'],_0x339d16=_0x339d16['isAfter'](_0x6d29b3[_0x545f('0x3d')])?_0x339d16:_0x6d29b3['end'],_0x4244b9?_0x6d29b3[_0x545f('0x5b')][_0x545f('0x19')](_0x4244b9['getFirstRange']()[_0x545f('0x5b')])?(_0x4244b9[_0x545f('0x86')](),_0x4244b9=_0x205c5c):_0x205c5c[_0x545f('0x86')]():_0x4244b9=_0x205c5c;}else{const _0x11eb62=_0x42c068['getIntersection'](_0x6d29b3);this['_cutOutSuggestionMarker'](_0x205c5c,_0x11eb62);}}const _0x5a9579=this[_0x545f('0x7d')]['plugins'][_0x545f('0x7f')]('Users')['me'],_0x3f6daf=_0xc98c69(),_0x53996e=_0x5a9579['id'];if(_0x4244b9)return this[_0x545f('0x136')](_0x4244b9,this['_model'][_0x545f('0xa3')](_0x5a6dcc,_0x339d16)),_0x4244b9;{const _0x119726=this[_0x545f('0x11c')]({'id':_0x3f6daf,'type':'formatBlock:'+_0x3c0b48,'data':_0x9a4fa6,'createdAt':new Date(),'authorId':_0x53996e,'attributes':_0x15aeb9});return this[_0x545f('0x74')](_0x545f('0xc0')+_0x3c0b48,_0x3f6daf,_0x53996e,this['_model'][_0x545f('0xa3')](_0x5a6dcc,_0x339d16)),_0x119726;}}['markMultiRangeBlockFormat'](_0x81234f,_0x1e0ef9,_0x23070b=[],_0x22cfa2=null,_0x5f6f4a={}){_0x1e0ef9[_0x545f('0x64')]||(_0x1e0ef9['formatGroupId']=_0x1e0ef9[_0x545f('0x5a')]);const _0x1c9c87=_0x81234f[0x0];_0x1e0ef9[_0x545f('0x85')]=_0x1c9c87['is'](_0x545f('0x66')),_0x22cfa2=_0x22cfa2||$t(_0x1e0ef9);const _0x230cb5=_0x23070b['map'](_0x320b3e=>Rt(_0x320b3e,this[_0x545f('0xbf')])),_0xcb9684=_0x1c9c87['is']('range')?_0x81234f:_0x81234f[_0x545f('0xc3')](_0x18abd3=>Rt(_0x18abd3,this['_model']));if(_0x545f('0x45')===this[_0x545f('0x71')]){const _0x3f01f6=this[_0x545f('0xff')]['getSuggestionCallback']('formatBlock',_0x22cfa2,_0x545f('0x34'));return this[_0x545f('0x125')](()=>_0x3f01f6(_0xcb9684,_0x1e0ef9,_0x5f6f4a)),null;}_0x230cb5['push'](..._0xcb9684);let _0xd10fc7=!0x0;for(const _0x15be41 of _0x230cb5)if(!this[_0x545f('0x87')](_0x15be41)){_0xd10fc7=!0x1;break;}if(_0xd10fc7&&'always'!==this[_0x545f('0x71')]){const _0xf93454=this['_suggestionFactory'][_0x545f('0x8e')]('formatBlock',_0x22cfa2,_0x545f('0x34'));return this[_0x545f('0x125')](()=>_0xf93454(_0xcb9684,_0x1e0ef9,_0x5f6f4a)),null;}const _0x2d81c6=this['editor'][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x10c'))['me'];for(const _0x3f0ae0 of this[_0x545f('0x111')]()){if(_0x3f0ae0[_0x545f('0x57')]['id']!=_0x2d81c6['id'])continue;if(_0x545f('0x8')!=_0x3f0ae0[_0x545f('0x32')]||_0x3f0ae0[_0x545f('0xf8')][_0x545f('0x64')]!=_0x1e0ef9[_0x545f('0x64')])continue;if(!Ut(_0x3f0ae0,_0x5f6f4a))continue;const _0x640146=_0x3f0ae0[_0x545f('0xf5')]==_0x22cfa2;for(let _0x86448f=0x0;_0x86448f<_0xcb9684[_0x545f('0x97')];_0x86448f++){const _0x35f3c5=_0xcb9684[_0x86448f];for(const _0x4dc33c of _0x3f0ae0[_0x545f('0xe8')]()){const _0x9f1829=_0x4dc33c[_0x545f('0xea')]();if(_0x35f3c5[_0x545f('0x16')](_0x9f1829)){_0x640146?(_0xcb9684[_0x545f('0xe7')](_0x86448f,0x1),_0x86448f--):_0x3f0ae0[_0x545f('0xa')](_0x4dc33c[_0x545f('0xce')]);break;}}}}if(0x0==_0xcb9684[_0x545f('0x97')])return null;const _0x86f704=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22cfa2,_0x545f('0x11d'));for(const _0x2744f5 of this[_0x545f('0x111')]())if(_0x2744f5[_0x545f('0x57')]['id']==_0x2d81c6['id']&&'formatBlock'==_0x2744f5[_0x545f('0x32')]&&_0x2744f5[_0x545f('0xf8')]['formatGroupId']==_0x1e0ef9[_0x545f('0x64')]&&_0x2744f5[_0x545f('0xf5')]==_0x22cfa2&&Ut(_0x2744f5,_0x5f6f4a)&&(_0x86f704(_0x2744f5[_0x545f('0x110')](),_0xcb9684)||_0x86f704(_0xcb9684,_0x2744f5[_0x545f('0x110')]()))){for(const _0x241c51 of _0xcb9684)_0x2744f5[_0x545f('0x2e')](_0x241c51);return _0x2744f5;}const _0x2f25bb=_0xc98c69(),_0x593ec0=_0x2d81c6['id'],_0x3e57e2=_0x545f('0xc0')+_0x22cfa2,_0x24bfba=this[_0x545f('0x11c')]({'id':_0x2f25bb,'type':_0x3e57e2,'data':_0x1e0ef9,'createdAt':new Date(),'authorId':_0x593ec0,'attributes':_0x5f6f4a});for(const _0x3e3d58 of _0xcb9684)this[_0x545f('0x74')](_0x3e57e2,_0x2f25bb,_0x593ec0,_0x3e3d58,_0x4e3f09['getMultiRangeId']());return _0x24bfba;}[_0x545f('0x6e')](_0xada896,_0x41150d=null,_0x5d3631={}){if(_0xada896[_0x545f('0x50')])return null;const _0x46fbe5=this[_0x545f('0x7d')][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x10c'))['me'],_0x384051=new _0x305b6e(_0xada896['start'],_0xada896[_0x545f('0x3d')]);for(const {suggestion:_0x2da9af,meta:_0x345ec5}of this[_0x545f('0x132')](_0x384051,_0x545f('0x84')))if(_0x345ec5[_0x545f('0x2c')]&&!_0x345ec5[_0x545f('0x4b')]){if(_0x2da9af[_0x545f('0x1e')]){const _0x177f08=_0x2da9af['getRanges']()[_0x545f('0x100')](_0x3f1b4f=>_0x545f('0x47')!=_0x3f1b4f['root']['rootName']);_0x177f08[_0x545f('0xf4')](_0x57bcca=>_0x384051['containsRange'](_0x57bcca,!0x0))&&_0x2da9af[_0x545f('0xbc')]();if(_0x177f08[_0x545f('0xfe')](_0x14f106=>_0x14f106[_0x545f('0x21')](_0x384051,!0x0))){const _0x543898=this[_0x545f('0xff')][_0x545f('0x8e')]('deletion',_0x41150d,_0x545f('0x34'));return this['forceDefaultExecution'](()=>_0x543898([_0x384051],null,_0x5d3631)),null;}}else{const _0x1b4e5f=_0x384051[_0x545f('0x30')](_0x2da9af[_0x545f('0xf1')]());null!==_0x1b4e5f&&_0x2da9af[_0x545f('0x7a')]([_0x1b4e5f],null,_0x5d3631);}}if(_0x384051[_0x545f('0x6')](),_0x384051[_0x545f('0x50')]||_0x545f('0x47')==_0x384051['root']['rootName'])return null;let _0x1c301d=null,_0x30a3fa=_0x384051['start'],_0x3ec56a=_0x384051[_0x545f('0x3d')];const _0xecbf5f=this[_0x545f('0x132')](_0x384051,_0x545f('0x93'));for(const {suggestion:_0x3a3017,meta:_0x30a8bc}of _0xecbf5f){const _0x4cb9a6=this[_0x545f('0xbf')]['createRange'](_0x30a3fa,_0x3ec56a);if(_0x30a8bc[_0x545f('0x2c')]&&(this['_mergeNestedSuggestions']||!_0x30a8bc[_0x545f('0x118')]&&!_0x30a8bc[_0x545f('0x44')])){if(_0x3a3017['isMultiRange']){if(!Ut(_0x3a3017,_0x5d3631))continue;let _0x29354b=!0x0;for(const _0x25100a of _0x3a3017[_0x545f('0x110')]()){if(_0x25100a[_0x545f('0x21')](_0x4cb9a6,!0x0))return _0x3a3017;_0x4cb9a6[_0x545f('0x21')](_0x25100a)||(_0x29354b=!0x1);}_0x29354b&&_0x3a3017[_0x545f('0xbc')]();}else{const _0x4bbead=_0x3a3017[_0x545f('0xf1')]();if(_0x4bbead['containsRange'](_0x4cb9a6,!0x0))return _0x3a3017;if(!Ut(_0x3a3017,_0x5d3631)){_0x4cb9a6['containsRange'](_0x4bbead)?_0x3a3017[_0x545f('0x86')]():_0x4bbead[_0x545f('0x103')](_0x30a3fa)?_0x30a3fa=_0x4bbead['end']:_0x4bbead[_0x545f('0x103')](_0x3ec56a)&&(_0x3ec56a=_0x4bbead[_0x545f('0x5b')]);continue;}_0x30a3fa=_0x30a3fa['isBefore'](_0x4bbead[_0x545f('0x5b')])?_0x30a3fa:_0x4bbead[_0x545f('0x5b')],_0x3ec56a=_0x3ec56a[_0x545f('0xae')](_0x4bbead[_0x545f('0x3d')])?_0x3ec56a:_0x4bbead['end'],_0x5d3631=Object[_0x545f('0xc8')]({},_0x3a3017[_0x545f('0x127')]),_0x1c301d?_0x4bbead[_0x545f('0x5b')]['isBefore'](_0x1c301d[_0x545f('0xf1')]()[_0x545f('0x5b')])?(_0x1c301d[_0x545f('0x86')](),_0x1c301d=_0x3a3017):_0x3a3017['removeMarkers']():_0x1c301d=_0x3a3017;}}}if(_0x1c301d)return this['_setSuggestionRange'](_0x1c301d,this[_0x545f('0xbf')][_0x545f('0xa3')](_0x30a3fa,_0x3ec56a)),_0x1c301d;{const _0x10dd49=_0xc98c69(),_0x2989b6=this[_0x545f('0xbf')][_0x545f('0xa3')](_0x30a3fa,_0x3ec56a),_0x4f5684=_0x46fbe5['id'],_0x3d1b69=_0x41150d?'deletion:'+_0x41150d:_0x545f('0x93'),_0x34968d=this[_0x545f('0x11c')]({'id':_0x10dd49,'type':_0x3d1b69,'createdAt':new Date(),'authorId':_0x4f5684,'attributes':_0x5d3631});return this[_0x545f('0x74')](_0x3d1b69,_0x10dd49,_0x4f5684,_0x2989b6),_0x34968d;}}[_0x545f('0x6a')](_0x4422a3,_0x5ed721=_0x545f('0x11f'),_0x3bcc7d={}){const _0x12976b=this['editor'][_0x545f('0x10e')][_0x545f('0x7f')]('Users')['me'],_0x773ed2=_0x4422a3[_0x545f('0xc3')](_0x2a17f0=>new _0x305b6e(_0x2a17f0[_0x545f('0x5b')],_0x2a17f0[_0x545f('0x3d')])),_0xc80d51=new Set();for(const {suggestion:_0x1ab4a3,meta:_0x52eb41}of this[_0x545f('0x132')](_0x773ed2,_0x545f('0x84')))_0x52eb41[_0x545f('0x2c')]&&!_0x52eb41[_0x545f('0x4b')]&&_0xc80d51[_0x545f('0xda')](_0x1ab4a3);for(const _0x286f07 of _0xc80d51)if(_0x286f07[_0x545f('0x1e')]){const _0x193ab6=_0x286f07[_0x545f('0x110')]();(!_0x286f07['attributes']||!_0x286f07[_0x545f('0x127')][_0x545f('0x144')])&&(_0x193ab6['every'](_0x272f9e=>_0x773ed2[_0x545f('0xfe')](_0x36e5dc=>_0x36e5dc['containsRange'](_0x272f9e,!0x0)))&&_0x286f07['discard']());if(_0x773ed2['every'](_0x184218=>_0x193ab6[_0x545f('0xfe')](_0x3c7e07=>_0x3c7e07[_0x545f('0x21')](_0x184218,!0x0)))){const _0x591751=this[_0x545f('0xff')]['getSuggestionCallback']('deletion',_0x5ed721,_0x545f('0x34'));return this['forceDefaultExecution'](()=>_0x591751(_0x4422a3,null,_0x3bcc7d)),null;}}else{const _0x36b052=_0x286f07[_0x545f('0xf1')]();_0x773ed2[_0x545f('0xfe')](_0x20d519=>_0x20d519[_0x545f('0x21')](_0x36b052,!0x0))&&_0x286f07[_0x545f('0xbc')]();if(_0x773ed2[_0x545f('0xf4')](_0x2d010b=>_0x36b052[_0x545f('0x21')](_0x2d010b,!0x0))){const _0x3dc038=this[_0x545f('0xff')][_0x545f('0x8e')](_0x545f('0x93'),_0x5ed721,'accept');return this['forceDefaultExecution'](()=>_0x3dc038(_0x773ed2,null,_0x3bcc7d)),null;}}const _0x4e9c40=this['_suggestionFactory'][_0x545f('0x8e')](_0x545f('0x93'),_0x5ed721,_0x545f('0x11d'));let _0x3286f8=null;for(const _0x4a680d of this[_0x545f('0x111')]())if(_0x4a680d[_0x545f('0x57')]['id']==_0x12976b['id']&&_0x4a680d[_0x545f('0x72')]&&_0x545f('0x93')==_0x4a680d[_0x545f('0x32')]&&_0x4a680d[_0x545f('0xf5')]==_0x5ed721&&Ut(_0x4a680d,_0x3bcc7d)&&(_0x4e9c40(_0x4a680d[_0x545f('0x110')](),_0x773ed2)||_0x4e9c40(_0x773ed2,_0x4a680d[_0x545f('0x110')]()))){if(_0x3286f8){if(_0x4a680d[_0x545f('0xf0')]&&_0x4a680d[_0x545f('0xf0')][_0x545f('0x97')])continue;for(const _0x4a2a5e of _0x4a680d[_0x545f('0x110')]())_0x3286f8[_0x545f('0xd5')](_0x4a2a5e)||_0x3286f8[_0x545f('0x2e')](_0x4a2a5e);_0x4a680d[_0x545f('0x86')]();}else{_0x3286f8=_0x4a680d;for(const _0x13c5ed of _0x773ed2)_0x4a680d['isIntersectingWithRange'](_0x13c5ed)||_0x4a680d['addRange'](_0x13c5ed);}}if(_0x3286f8)return _0x3286f8;_0xc80d51['clear']();for(const {suggestion:_0x4e78de,meta:_0x532bfc}of this[_0x545f('0x132')](_0x773ed2,_0x545f('0x93')))_0x532bfc[_0x545f('0x2c')]&&(this[_0x545f('0x10d')]||!_0x532bfc[_0x545f('0x118')]&&!_0x532bfc[_0x545f('0x44')])&&Ut(_0x4e78de,_0x3bcc7d)&&_0xc80d51[_0x545f('0xda')](_0x4e78de);for(const _0x585cd3 of _0xc80d51){const _0x4aa233=_0x585cd3[_0x545f('0x110')]();if(!_0x3bcc7d||!_0x3bcc7d[_0x545f('0x144')]){if(_0x773ed2[_0x545f('0xf4')](_0x13862f=>_0x4aa233['some'](_0x594ad5=>_0x594ad5['containsRange'](_0x13862f,!0x0))))return _0x585cd3;}(!_0x585cd3[_0x545f('0x127')]||!_0x585cd3['attributes'][_0x545f('0x144')])&&(_0x4aa233[_0x545f('0xf4')](_0x58863b=>_0x773ed2[_0x545f('0xfe')](_0x24e6e5=>_0x24e6e5[_0x545f('0x21')](_0x58863b,!0x0)))&&_0x585cd3['discard']());}const _0x505dcb=_0xc98c69(),_0x2a1229=_0x12976b['id'],_0x44e149=_0x545f('0x119')+_0x5ed721,_0x50fc92=this[_0x545f('0x11c')]({'id':_0x505dcb,'type':_0x44e149,'createdAt':new Date(),'authorId':_0x2a1229,'attributes':_0x3bcc7d});for(const _0x4aeffd of _0x773ed2)_0x4aeffd[_0x545f('0x6')](),_0x4aeffd[_0x545f('0x50')]||_0x545f('0x47')==_0x4aeffd[_0x545f('0x4')][_0x545f('0x129')]||this[_0x545f('0x74')](_0x44e149,_0x505dcb,_0x2a1229,_0x4aeffd,_0x4e3f09[_0x545f('0xad')]());return _0x50fc92;}[_0x545f('0x136')](_0x571a09,_0x130ab1){const _0x2b59c8=_0x571a09[_0x545f('0x1d')]();this[_0x545f('0xbf')][_0x545f('0x20')](_0x1e1565=>{_0x1e1565[_0x545f('0x29')](_0x2b59c8,{'range':_0x130ab1});});}[_0x545f('0x12e')](_0x210e03){const _0x1d3532=_0x210e03['id'],_0x1b7fd3=this[_0x545f('0x7d')][_0x545f('0x13a')][_0x545f('0x7f')](_0x545f('0x102'));this['_commentsRepository'][_0x545f('0x146')](_0x1d3532)||this[_0x545f('0x143')]['addCommentThread']({'channelId':_0x1b7fd3,'threadId':_0x1d3532,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x57d270=this[_0x545f('0x143')][_0x545f('0xbe')](_0x1d3532);_0x57d270[_0x545f('0xa5')](_0x545f('0xc4')),_0x57d270[_0x545f('0xc4')]=!0x1,_0x210e03[_0x545f('0xf0')]=_0x57d270;}[_0x545f('0x36')](_0x1e842c,_0x345cf1,_0x5d461f,_0x2e7278){if(_0x1e842c['type']!=_0x345cf1||_0x1e842c[_0x545f('0xf5')]!=_0x5d461f||_0x1e842c['creator']['id']!=_0x2e7278)throw this[_0x545f('0x7d')]['enableReadOnlyMode'](_0x545f('0x11e')),new _0x23608e(_0x545f('0x11e'),this);}[_0x545f('0x11a')](_0x2ffa54,_0x58edcb){const _0x16281d=_0x2ffa54['getFirstRange']();if(_0x58edcb[_0x545f('0x16')](_0x16281d))_0x2ffa54[_0x545f('0x86')]();else{if(_0x16281d[_0x545f('0x21')](_0x58edcb)){const _0x739003=this[_0x545f('0xbf')][_0x545f('0x5d')](_0x58edcb[_0x545f('0x5b')]['nodeBefore'],'end');this[_0x545f('0x136')](_0x2ffa54,this[_0x545f('0xbf')][_0x545f('0xa3')](_0x16281d[_0x545f('0x5b')],_0x739003));const _0x11315f=_0xc98c69(),_0x2c9787=_0x2ffa54[_0x545f('0x12d')]['id'],_0x53d31a=_0x2ffa54[_0x545f('0x32')]+':'+_0x2ffa54['subType'];this['_setSuggestionData']({'id':_0x11315f,'type':_0x53d31a,'createdAt':new Date(),'authorId':_0x2c9787,'data':_0x2ffa54['data'],'attributes':_0x2ffa54[_0x545f('0x127')]});const _0x207073=this[_0x545f('0xbf')][_0x545f('0x5d')](_0x58edcb['end'][_0x545f('0xd6')],_0x545f('0x51')),_0x194565=this[_0x545f('0xbf')][_0x545f('0xa3')](_0x207073,_0x16281d[_0x545f('0x3d')]);this['_addSuggestionMarker'](_0x53d31a,_0x11315f,_0x2c9787,_0x194565);}else{if(_0x16281d[_0x545f('0x103')](_0x58edcb[_0x545f('0x5b')])){const _0x2f34c3=this[_0x545f('0xbf')][_0x545f('0x5d')](_0x58edcb['start']['nodeBefore'],'end');this[_0x545f('0x136')](_0x2ffa54,this[_0x545f('0xbf')][_0x545f('0xa3')](_0x16281d[_0x545f('0x5b')],_0x2f34c3));}else{const _0x2fb2d1=this[_0x545f('0xbf')][_0x545f('0x5d')](_0x58edcb[_0x545f('0x3d')]['parent'],'after');this[_0x545f('0x136')](_0x2ffa54,this[_0x545f('0xbf')][_0x545f('0xa3')](_0x2fb2d1,_0x16281d[_0x545f('0x3d')]));}}}}[_0x545f('0x87')](_0x40ed35){for(const {suggestion:_0x27682e,meta:_0xea3ff0}of this[_0x545f('0x132')](_0x40ed35,_0x545f('0x84'))){if(!_0xea3ff0['isOwn'])continue;const _0x4432ac=_0x27682e[_0x545f('0x110')]();for(const _0x36915d of _0x4432ac)if(!_0x40ed35['getDifference'](_0x36915d)[_0x545f('0x97')])return!0x0;}return!0x1;}[_0x545f('0x52')](_0x46d17a){const _0x53db5b=this['editor'][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x10c'))['getUser'](_0x46d17a);if(!_0x53db5b)throw new _0x23608e(_0x545f('0x4e'),this);return _0x53db5b;}[_0x545f('0xe4')](_0x2dbdae){const _0x22d47d=this[_0x545f('0x7d')][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x10c')),_0x5b1162=_0x1f5cc5(_0x545f('0x67')+_0x2dbdae),_0x4c2d53=_0x22d47d['getUser'](_0x5b1162);return _0x4c2d53||_0x22d47d[_0x545f('0x14')]({'id':_0x5b1162,'name':_0x2dbdae});}[_0x545f('0x31')](_0x46992f,_0x3c33e6,_0x35d65b,_0x5aa3a7,_0x18729a){const _0x543fca=this[_0x545f('0x52')](_0x5aa3a7),_0x394e2c=this[_0x545f('0xff')][_0x545f('0x3e')](_0x46992f,_0x3c33e6,_0x35d65b,_0x543fca,_0x18729a,_0x45707e=>this['_updateSuggestionData'](_0x35d65b,{'attributes':_0x45707e}));return this[_0x545f('0x49')](_0x394e2c,_0x545f('0x34'),()=>{this['_updateSuggestionData'](_0x35d65b,{'state':_0x545f('0xef')});},{'priority':_0x545f('0xc9')}),this['listenTo'](_0x394e2c,_0x545f('0xbc'),()=>{this[_0x545f('0x128')](_0x35d65b,{'state':_0x545f('0xe9')});},{'priority':_0x545f('0xc9')}),this['_suggestions'][_0x545f('0x13b')](_0x35d65b,_0x394e2c),this[_0x545f('0x139')][_0x545f('0x13b')](_0x394e2c,_0x545f('0x2')),_0x394e2c;}['_splitMarkerName'](_0x352295){const _0x49f22b=_0x352295[_0x545f('0xbb')](':');return{'group':_0x49f22b[0x0],'type':_0x49f22b[0x1],'subType':_0x49f22b[_0x545f('0x97')]>=0x5?_0x49f22b[0x2]:null,'id':_0x49f22b[_0x545f('0x97')]<0x5?_0x49f22b[0x2]:_0x49f22b[0x3],'authorId':_0x49f22b[_0x545f('0x97')]<0x5?_0x49f22b[0x3]:_0x49f22b[0x4],'markerCount':0x6==_0x49f22b[_0x545f('0x97')]?_0x49f22b[0x5]:null};}[_0x545f('0x17')](_0x3d9a21,_0x4a7a9e,_0x3d96f6){const _0x21117e=_0x3d9a21[_0x545f('0xf1')](),_0x45082b=_0x21117e['start'],_0x3968c8=_0x21117e['end'];this[_0x545f('0x136')](_0x3d9a21,this[_0x545f('0xbf')][_0x545f('0xa3')](_0x45082b,_0x4a7a9e));const _0x2b76f0=_0xc98c69(),_0x384682=_0x3d9a21[_0x545f('0x12d')]['id'],_0x2761e0=_0x3d9a21[_0x545f('0x32')]+(_0x3d9a21[_0x545f('0xf5')]?':'+_0x3d9a21[_0x545f('0xf5')]:'');this[_0x545f('0x11c')]({'id':_0x2b76f0,'type':_0x2761e0,'createdAt':new Date(),'authorId':_0x384682,'originalSuggestionId':_0x3d9a21['id'],'attributes':_0x3d9a21[_0x545f('0x127')],'data':_0x3d9a21[_0x545f('0xf8')]}),_0x545f('0x8')==_0x3d9a21['type']&&(_0x3d96f6=this[_0x545f('0xbf')]['createPositionBefore'](_0x3d96f6[_0x545f('0xd6')])),this['_addSuggestionMarker'](_0x2761e0,_0x2b76f0,_0x384682,this[_0x545f('0xbf')]['createRange'](_0x3d96f6,_0x3968c8));}[_0x545f('0x132')](_0x3d4375,_0x3efbf0=null){const _0x1343bd=[],_0x39ae5d=this[_0x545f('0x7d')][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x10c'))['me'];Array[_0x545f('0xd4')](_0x3d4375)||(_0x3d4375=[_0x3d4375]);for(const _0x3e67e7 of this[_0x545f('0x111')]()){if(!_0x3e67e7[_0x545f('0x72')])continue;if(_0x3efbf0&&_0x3e67e7[_0x545f('0x32')]!=_0x3efbf0)continue;let _0x12e17f=!0x1;for(const _0x1ec068 of _0x3e67e7[_0x545f('0x110')]()){for(const _0x2b9661 of _0x3d4375){const _0x2440b2=_0x2b9661[_0x545f('0x5b')][_0x545f('0x16')](_0x1ec068['end'])||_0x2b9661[_0x545f('0x3d')]['isEqual'](_0x1ec068[_0x545f('0x5b')]);if(_0x2440b2||_0x2b9661[_0x545f('0x30')](_0x1ec068)){const _0x5ed512=_0x2b9661[_0x545f('0x21')](_0x1ec068)&&Bt(this[_0x545f('0xbf')][_0x545f('0xcc')],_0x1ec068['start'],_0x2b9661),_0x2260fc=_0x1ec068[_0x545f('0x21')](_0x2b9661)&&Bt(this[_0x545f('0xbf')][_0x545f('0xcc')],_0x2b9661[_0x545f('0x5b')],_0x1ec068);_0x1343bd[_0x545f('0x90')]({'suggestion':_0x3e67e7,'meta':{'isOwn':_0x39ae5d==_0x3e67e7[_0x545f('0x57')],'isNextTo':_0x2440b2,'isInsideObject':_0x5ed512,'containsRangeInObject':_0x2260fc}}),_0x12e17f=!0x0;break;}}if(_0x12e17f)break;}}return _0x1343bd;}[_0x545f('0x74')](_0x4f3b9c,_0x22f9d9,_0x3db955,_0x3ee90a,_0x3d97b0){this[_0x545f('0xbf')][_0x545f('0x20')](_0x3bc280=>{let _0xcbc447='suggestion:'+_0x4f3b9c+':'+_0x22f9d9+':'+_0x3db955;_0x3d97b0&&(_0xcbc447=_0xcbc447+':'+_0x3d97b0),_0x3bc280['addMarker'](_0xcbc447,{'range':_0x3ee90a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2ca764){const _0x16e995=_0x2ca764[_0x545f('0x114')],_0x4663f3=_0x2ca764[_0x545f('0x15')];_0x2ca764[_0x545f('0x114')]=null,null!=_0x16e995&&(_0x16e995[_0x545f('0x15')]=null),_0x2ca764[_0x545f('0x15')]=null,null!=_0x4663f3&&(_0x4663f3[_0x545f('0x114')]=null),_0x545f('0x79')==this[_0x545f('0x139')][_0x545f('0x7f')](_0x2ca764)&&(this[_0x545f('0x139')][_0x545f('0x13b')](_0x2ca764,_0x545f('0xba')),this[_0x545f('0xdf')](_0x545f('0xb0'),_0x2ca764,_0x16e995,_0x4663f3));}['_setSuggestionData'](_0x1ed9b3){const _0x46e558=_0x1ed9b3['id'],_0x13f209=this[_0x545f('0x7e')](_0x1ed9b3);if(this['_adapter']&&this[_0x545f('0x3b')][_0x545f('0x53')]){const _0x534540=this[_0x545f('0x7d')][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x1a')),_0x409ce7=_0x13f209[_0x545f('0xac')],_0x2128f8=_0x13f209[_0x545f('0xf5')]?_0x13f209[_0x545f('0x32')]+':'+_0x13f209[_0x545f('0xf5')]:_0x13f209[_0x545f('0x32')],_0x177843=this[_0x545f('0x7d')][_0x545f('0xcd')],_0x455991=_0x534540[_0x545f('0xda')](_0x1eaf7a(_0x177843,'PENDING_ACTION_SUGGESTION')),_0x4231ed={'id':_0x46e558,'type':_0x2128f8,'hasComments':_0x409ce7,'data':_0x1ed9b3['data']||null,'originalSuggestionId':_0x1ed9b3['originalSuggestionId']||null,'attributes':_0x13f209[_0x545f('0x127')]};this['_adapter'][_0x545f('0x53')](_0x4231ed)[_0x545f('0x60')](_0x850696=>{_0x13f209[_0x545f('0x24')]=!0x0,_0x534540['remove'](_0x455991),_0x850696&&_0x850696['createdAt']&&(this[_0x545f('0xd0')][_0x545f('0x7f')](_0x46e558)[_0x545f('0xf2')]=_0x850696['createdAt']);})[_0x545f('0x0')](_0x1a52f4=>{throw _0x4ff997('error-saving-suggestion-data-suggestion-discarded'),this[_0x545f('0x7d')][_0x545f('0x9b')][_0x545f('0xab')]({'isUndoable':!0x1},()=>{_0x13f209['discard']();}),_0x13f209[_0x545f('0x13e')](),this[_0x545f('0xd0')][_0x545f('0xbd')](_0x13f209['id']),this['_suggestionState'][_0x545f('0xbd')](_0x13f209),_0x1a52f4;});}return _0x13f209;}['_updateSuggestionData'](_0x26552c,_0x370292){const _0x100270=this['editor'][_0x545f('0x10e')][_0x545f('0x7f')](_0x545f('0x1a')),_0x38a539=this[_0x545f('0x89')](_0x26552c);if(this[_0x545f('0x3b')]&&this['_adapter']['updateSuggestion']){if(_0x38a539[_0x545f('0x24')]){const _0x46166a=_0x100270['add'](_0x1eaf7a(this[_0x545f('0x7d')][_0x545f('0xcd')],_0x545f('0x121')));this['_adapter']['updateSuggestion'](_0x26552c,_0x370292)['then'](()=>{_0x100270[_0x545f('0x39')](_0x46166a);});}else _0x38a539['on'](_0x545f('0xc5'),()=>{this[_0x545f('0x128')](_0x26552c,_0x370292);});}}[_0x545f('0xfc')](_0x494ed8){if(!this[_0x545f('0x3b')]||!this['_adapter']['getSuggestion'])throw new _0x23608e('track-changes-adapter-missing-getsuggestion',this);return this[_0x545f('0x3b')][_0x545f('0x89')](_0x494ed8);}[_0x545f('0x106')](_0x221863){const {id:_0x4a610b,type:_0x5d7730,subType:_0x5353ba,authorId:_0x391944}=this[_0x545f('0x38')](_0x221863),_0xf322e=this[_0x545f('0xd0')][_0x545f('0x7f')](_0x4a610b)||this['_createSuggestion'](_0x5d7730,_0x5353ba,_0x4a610b,_0x391944,{});switch(this[_0x545f('0x36')](_0xf322e,_0x5d7730,_0x5353ba,_0x391944),this['_suggestionState']['get'](_0xf322e)){case _0x545f('0x2'):this[_0x545f('0xfc')](_0x4a610b)[_0x545f('0x60')](_0x6c840f=>{let _0x582006=Promise[_0x545f('0xd2')]();_0x6c840f[_0x545f('0xac')]&&(_0x582006=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config'][_0x545f('0x7f')]('collaboration.channelId'),'threadId':_0x4a610b})),_0x582006['then'](()=>{this[_0x545f('0x7e')](_0x6c840f)[_0x545f('0x24')]=!0x0;});}),this[_0x545f('0x139')][_0x545f('0x13b')](_0xf322e,_0x545f('0x23'));break;case _0x545f('0xba'):this[_0x545f('0x128')](_0x4a610b,{'state':_0x545f('0x9d')});case _0x545f('0x9c'):this[_0x545f('0x139')][_0x545f('0x13b')](_0xf322e,_0x545f('0x79')),this[_0x545f('0xdf')](_0x545f('0x113'),_0xf322e);break;case'ready':this[_0x545f('0xdf')](_0x545f('0x69'),_0xf322e);}return _0xf322e[_0x545f('0x11b')](_0x221863),_0xf322e;}[_0x545f('0x145')](_0xaac5eb){const _0x5d8c68=Array['from'](_0xaac5eb)[_0x545f('0x100')](_0x1eec36=>!_0x1eec36[_0x545f('0x1e')]),_0x1e7754=this[_0x545f('0x111')]({'skipNotAttached':!0x0})[_0x545f('0x100')](_0x4f3f8f=>!_0x4f3f8f[_0x545f('0x1e')]),_0x58c695=_0x1e7754['filter'](_0x1c2057=>!_0xaac5eb['has'](_0x1c2057)),_0x546522=new Map(_0x1e7754[_0x545f('0xc3')](_0x47b697=>[_0x47b697,this[_0x545f('0xff')][_0x545f('0x8e')](_0x47b697[_0x545f('0x32')],_0x47b697[_0x545f('0xf5')],_0x545f('0xd8'))])),_0x2cb19e=new Map(_0x1e7754[_0x545f('0xc3')](_0x27a087=>[_0x27a087,_0x27a087[_0x545f('0xf1')]()])),_0x14165d=new Set(),_0x115d48=new Set();for(let _0x489149=0x0;_0x489149<_0x5d8c68['length'];_0x489149++)_0x252933(_0x5d8c68[_0x489149],_0x5d8c68,_0x489149+0x1);for(let _0xb8b7cf=0x0;_0xb8b7cf<_0x5d8c68[_0x545f('0x97')];_0xb8b7cf++)_0x252933(_0x5d8c68[_0xb8b7cf],_0x58c695,0x0);for(let _0x565261=0x0;_0x565261<_0x5d8c68[_0x545f('0x97')];_0x565261++){const _0x46e245=_0x5d8c68[_0x565261];!_0x115d48[_0x545f('0x12')](_0x46e245)&&_0x46e245[_0x545f('0x114')]&&(_0x46e245[_0x545f('0x114')][_0x545f('0x15')]===_0x46e245&&(_0x46e245[_0x545f('0x114')][_0x545f('0x15')]=null),_0x46e245['previous']=null),!_0x14165d[_0x545f('0x12')](_0x46e245)&&_0x46e245[_0x545f('0x15')]&&(_0x46e245[_0x545f('0x15')]['previous']===_0x46e245&&(_0x46e245[_0x545f('0x15')][_0x545f('0x114')]=null),_0x46e245['next']=null);}function _0x252933(_0x497bcc,_0x4daa56,_0x4e7a16){for(let _0x477e7e=_0x4e7a16;_0x477e7e<_0x4daa56[_0x545f('0x97')];_0x477e7e++){const _0x2cb4bb=_0x534e36(_0x497bcc,_0x4daa56[_0x477e7e]);_0x2cb4bb&&(_0x2cb4bb[0x0][_0x545f('0x15')]=_0x2cb4bb[0x1],_0x2cb4bb[0x1][_0x545f('0x114')]=_0x2cb4bb[0x0],_0x14165d[_0x545f('0xda')](_0x2cb4bb[0x0]),_0x115d48['add'](_0x2cb4bb[0x1]));}}function _0x534e36(_0x1ece02,_0x4ddd28){if(_0x1ece02[_0x545f('0x57')]['id']!==_0x4ddd28[_0x545f('0x57')]['id'])return null;const _0x47f0bb=_0x546522['get'](_0x1ece02)(_0x1ece02,_0x4ddd28,_0x2cb19e[_0x545f('0x7f')](_0x1ece02),_0x2cb19e[_0x545f('0x7f')](_0x4ddd28));if(!_0x47f0bb)return null;return _0x546522[_0x545f('0x7f')](_0x4ddd28)(_0x1ece02,_0x4ddd28,_0x2cb19e[_0x545f('0x7f')](_0x1ece02),_0x2cb19e['get'](_0x4ddd28))?_0x47f0bb[0x1][_0x545f('0xf0')]&&_0x47f0bb[0x1]['commentThread']['length']?null:_0x47f0bb:null;}}[_0x545f('0xc')](_0x37dfe2){const _0x381e2f=Array[_0x545f('0x3')](_0x37dfe2),_0x4400ac=this['getSuggestions']({'skipNotAttached':!0x0}),_0x45b27b=_0x4400ac[_0x545f('0x100')](_0x2a6d8c=>!_0x37dfe2[_0x545f('0x12')](_0x2a6d8c)),_0x57b7a7=new Map(_0x381e2f[_0x545f('0xc3')](_0x34fcc0=>[_0x34fcc0,this[_0x545f('0xff')][_0x545f('0x8e')](_0x34fcc0['type'],_0x34fcc0['subType'],_0x545f('0x11d'))])),_0x52fa8c=new Map(_0x4400ac['map'](_0x439641=>[_0x439641,_0x439641[_0x545f('0x110')]()]));for(let _0x4420c5=0x0;_0x4420c5<_0x381e2f[_0x545f('0x97')];_0x4420c5++){if(_0xf1a0fc(this,_0x381e2f[_0x4420c5],_0x381e2f,_0x4420c5+0x1))return!0x0;}for(let _0x56d1b1=0x0;_0x56d1b1<_0x381e2f[_0x545f('0x97')];_0x56d1b1++){if(_0xf1a0fc(this,_0x381e2f[_0x56d1b1],_0x45b27b,0x0))return!0x0;}return!0x1;function _0xf1a0fc(_0x4ada63,_0x1e1133,_0x564396,_0x4671a3){for(let _0x1bc375=_0x4671a3;_0x1bc375<_0x564396[_0x545f('0x97')];_0x1bc375++){const _0x246626=_0x564396[_0x1bc375];if(_0x246626['type']!==_0x1e1133[_0x545f('0x32')]||_0x246626[_0x545f('0x57')]['id']!==_0x1e1133[_0x545f('0x57')]['id']||_0x246626[_0x545f('0xf5')]!==_0x1e1133[_0x545f('0xf5')])continue;if(!xt(_0x1e1133,_0x246626))continue;const _0x59444c=_0x57b7a7[_0x545f('0x7f')](_0x1e1133),_0x2b8e7d=_0x52fa8c[_0x545f('0x7f')](_0x1e1133),_0x49db52=_0x52fa8c[_0x545f('0x7f')](_0x246626),_0x3c7fdb=_0x1e1133[_0x545f('0xf0')]&&_0x1e1133[_0x545f('0xf0')][_0x545f('0x97')],_0x1c8dbd=_0x246626[_0x545f('0xf0')]&&_0x246626[_0x545f('0xf0')][_0x545f('0x97')];if(!_0x3c7fdb&&_0x59444c(_0x49db52,_0x2b8e7d))return _0x4ada63[_0x545f('0x109')](_0x246626,_0x1e1133),_0x52fa8c['delete'](_0x1e1133),!0x0;if(!_0x1c8dbd&&_0x59444c(_0x2b8e7d,_0x49db52))return _0x4ada63[_0x545f('0x109')](_0x1e1133,_0x246626),_0x52fa8c['delete'](_0x246626),!0x0;}return!0x1;}}[_0x545f('0x109')](_0x49aa50,_0x22d004){if(_0x49aa50['isMultiRange'])for(const _0x3c637e of _0x22d004['getRanges']())_0x49aa50[_0x545f('0x2e')](_0x3c637e);else{const _0x4b405d=_0x22d004[_0x545f('0xf1')]()['end'];this[_0x545f('0x136')](_0x49aa50,this[_0x545f('0xbf')]['createRange'](_0x49aa50[_0x545f('0xf1')]()['start'],_0x4b405d));}_0x22d004['removeMarkers']();}}class Dt{constructor(_0x2297d8){this[_0x545f('0x13d')]=_0x2297d8,this[_0x545f('0xbf')]=_0x2297d8['model'],this[_0x545f('0x25')]=new Map(),this[_0x545f('0x96')]=new Map(),this[_0x545f('0x81')]();}[_0x545f('0x3e')](_0x191079,_0x3774a6,_0x16d8fd,_0x30861f,_0xa4e4b5,_0x3d1f96){return new _0x4e3f09(this[_0x545f('0xbf')],{'type':_0x191079,'subType':_0x3774a6,'id':_0x16d8fd,'author':_0x30861f,'creator':_0x30861f,'attributes':_0xa4e4b5,'onAttributesChange':_0x3d1f96,'onAccept':(..._0x36f2c2)=>this['getSuggestionCallback'](_0x191079,_0x3774a6,_0x545f('0x34'))(..._0x36f2c2),'onDiscard':(..._0x2d91d3)=>this[_0x545f('0x8e')](_0x191079,_0x3774a6,_0x545f('0xbc'))(..._0x2d91d3)});}[_0x545f('0x1b')](_0x111ed3,_0x18bc07,_0x2f8d67,_0x5581d3){const _0xd0b3f7=_0x111ed3+':'+_0x18bc07+':'+_0x2f8d67;this[_0x545f('0x25')][_0x545f('0x13b')](_0xd0b3f7,_0x5581d3);}[_0x545f('0x8e')](_0x393064,_0x45291b,_0x4e8da2){const _0x4f2fb1=_0x393064+':'+_0x45291b+':'+_0x4e8da2;return this[_0x545f('0x25')][_0x545f('0x7f')](_0x4f2fb1)||this[_0x545f('0x96')][_0x545f('0x7f')](_0x393064+':'+_0x4e8da2);}[_0x545f('0x81')](){const _0x5807d4=()=>!0x1,_0x286549=_0x3b351f=>{_0x3b351f['sort']((_0x4d2657,_0x3e5de3)=>_0x4d2657['start'][_0x545f('0x19')](_0x3e5de3['start'])?0x1:-0x1),this[_0x545f('0xbf')]['change'](_0x2d2081=>{for(const _0x58f01d of _0x3b351f){let _0x1bf515;_0x1bf515=_0x58f01d[_0x545f('0x3d')][_0x545f('0xa8')]&&_0x58f01d[_0x545f('0x3d')][_0x545f('0xd6')]==_0x58f01d[_0x545f('0x5b')][_0x545f('0x105')]?_0x2d2081[_0x545f('0x68')](_0x58f01d['start'][_0x545f('0x105')],'on'):_0x2d2081[_0x545f('0x68')](_0x58f01d),this[_0x545f('0xbf')][_0x545f('0x9f')](_0x1bf515,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf4e79d=(_0x557261,_0x329149)=>{this['_model']['change'](_0x34ca0a=>{const {commandName:_0x58b68b,commandParams:_0x57ea18=[]}=_0x329149,_0xd16b8d=_0x557261[_0x545f('0xc3')](_0x3bb8b8=>(_t(_0x3bb8b8)&&(_0x3bb8b8=this[_0x545f('0xbf')][_0x545f('0xa3')](_0x3bb8b8['end'])),_0x3bb8b8))[_0x545f('0x100')](_0x56301a=>_0x545f('0x47')!==_0x56301a[_0x545f('0x4')]['rootName']);if(_0xd16b8d[_0x545f('0x97')]<0x1)return;const _0x3dea69=Array[_0x545f('0x3')](this['_model']['document'][_0x545f('0x104')][_0x545f('0x110')]())[_0x545f('0xc3')](_0x2880fb=>_0x305b6e[_0x545f('0x123')](_0x2880fb));_0x34ca0a[_0x545f('0x83')](_0xd16b8d);for(const _0x103def of this[_0x545f('0x13d')][_0x545f('0x41')][_0x545f('0x41')]())_0x103def[_0x545f('0x2a')]();_0x57ea18[_0x545f('0x90')]({'forceDefaultExecution':!0x0}),this[_0x545f('0x13d')]['execute'](_0x58b68b,..._0x57ea18);const _0x2a059a=_0x3dea69[_0x545f('0x100')](_0x34dcfe=>_0x545f('0x47')!=_0x34dcfe['root'][_0x545f('0x129')]);_0x2a059a[_0x545f('0x97')]>0x0&&_0x34ca0a[_0x545f('0x83')](_0x2a059a);for(const _0x508272 of _0x3dea69)_0x508272[_0x545f('0x6')]();});},_0x45f724=(_0x2e1084,_0x271b1b)=>0x1==_0x2e1084[_0x545f('0x97')]&&0x1==_0x271b1b[_0x545f('0x97')]&&_0x2e1084[0x0][_0x545f('0x3d')]['isEqual'](_0x271b1b[0x0][_0x545f('0x5b')]),_0x12e79c=(_0x4c865b,_0x12fca2,_0x7324e0,_0x2ab70f)=>jt(_0x4c865b,_0x12fca2,_0x7324e0,_0x2ab70f,this[_0x545f('0xbf')])?[_0x4c865b,_0x12fca2]:jt(_0x12fca2,_0x4c865b,_0x2ab70f,_0x7324e0,this[_0x545f('0xbf')])?[_0x12fca2,_0x4c865b]:null;this[_0x545f('0x96')][_0x545f('0x13b')](_0x545f('0x63'),_0x5807d4),this[_0x545f('0x96')][_0x545f('0x13b')]('insertion:discard',_0x286549),this[_0x545f('0x96')]['set'](_0x545f('0x142'),_0x45f724),this['_defaultCallbacks']['set'](_0x545f('0xd3'),_0x12e79c),this[_0x545f('0x96')]['set'](_0x545f('0x2f'),_0x286549),this[_0x545f('0x96')][_0x545f('0x13b')]('deletion:discard',_0x5807d4),this[_0x545f('0x96')][_0x545f('0x13b')](_0x545f('0x135'),_0x45f724),this[_0x545f('0x96')][_0x545f('0x13b')](_0x545f('0x75'),_0x12e79c),this[_0x545f('0x96')][_0x545f('0x13b')](_0x545f('0xb'),_0xf4e79d),this['_defaultCallbacks']['set'](_0x545f('0x65'),_0x5807d4),this[_0x545f('0x96')][_0x545f('0x13b')](_0x545f('0xd9'),_0x45f724),this['_defaultCallbacks']['set'](_0x545f('0x33'),_0x5807d4),this[_0x545f('0x96')]['set'](_0x545f('0x101'),_0xf4e79d),this[_0x545f('0x96')][_0x545f('0x13b')](_0x545f('0x13c'),_0x5807d4),this[_0x545f('0x96')]['set'](_0x545f('0x122'),_0x45f724),this[_0x545f('0x96')][_0x545f('0x13b')](_0x545f('0x95'),_0x5807d4);}}function Bt(_0x366435,_0x3cd74f,_0x1a8af7){for(const _0x2b90f6 of _0x3cd74f[_0x545f('0xd6')][_0x545f('0x138')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2b90f6[_0x545f('0x4')]==_0x2b90f6)return!0x1;if(!_0x1a8af7['containsItem'](_0x2b90f6))return!0x1;if(_0x366435[_0x545f('0x70')](_0x2b90f6)||_0x366435[_0x545f('0x10b')](_0x2b90f6))return!0x0;}return!0x1;}function _t(_0x1d1243){return _0x1d1243[_0x545f('0x3d')][_0x545f('0xd6')]==_0x1d1243['start'][_0x545f('0x105')]&&_0x1d1243[_0x545f('0x3d')][_0x545f('0xeb')];}function Mt(_0x3463ea,_0x29c393,_0x2825cd,_0x279941){const _0xb8828=_0x3602a0=>!_0x3602a0['item']['is'](_0x545f('0x99'))&&!_0x279941[_0x545f('0x70')](_0x3602a0['item']),_0x4ea3c2=_0x3463ea[_0x545f('0x5b')][_0x545f('0xb4')](_0xb8828),_0x727a38=_0x3463ea['end'][_0x545f('0xb4')](_0xb8828,{'direction':_0x545f('0x4d')});return(!_0x3463ea['start'][_0x545f('0x16')](_0x4ea3c2)||!_0x3463ea[_0x545f('0x3d')]['isEqual'](_0x727a38))&&(_0x4ea3c2['isBefore'](_0x727a38)?_0x2825cd[_0x545f('0x29')](_0x29c393,{'range':_0x2825cd['createRange'](_0x4ea3c2,_0x727a38)}):_0x2825cd[_0x545f('0xa')](_0x29c393),!0x0);}function $t(_0x315c26){return _0x1f5cc5(_0x315c26);}function Nt(_0x263c4b){const _0x482630=_0x263c4b[_0x545f('0x5b')]['nodeAfter'];return _0x482630&&_0x482630['is'](_0x545f('0x78'));}function Rt(_0xa6e162,_0x265260){const _0x5d2af7=_0x265260['schema'][_0x545f('0x70')](_0xa6e162)||_0x265260[_0x545f('0xcc')][_0x545f('0x130')](_0xa6e162);return _0x265260[_0x545f('0xa3')](_0x265260[_0x545f('0x5d')](_0xa6e162,_0x545f('0x5e')),_0x5d2af7?_0x265260[_0x545f('0x1f')](_0xa6e162):_0x265260[_0x545f('0x5d')](_0xa6e162,_0x545f('0x3d')));}function jt(_0x368f94,_0x1db914,_0x3029ba,_0x2bed71,_0x136a01){if(!xt(_0x368f94,_0x1db914))return!0x1;if(_0x3029ba[_0x545f('0x3d')][_0x545f('0x16')](_0x2bed71[_0x545f('0x5b')]))return!0x0;if(_0x368f94[_0x545f('0x32')]!=_0x1db914[_0x545f('0x32')])return!0x1;if(!_0x3029ba['end'][_0x545f('0xb2')](_0x2bed71[_0x545f('0x5b')]))return!0x1;const _0x5ab6d6=_0x136a01[_0x545f('0xa3')](_0x3029ba[_0x545f('0x3d')],_0x2bed71[_0x545f('0x5b')])['getWalker']();for(const _0x10895d of _0x5ab6d6)if([_0x545f('0x6b'),_0x545f('0xf6')]['includes'](_0x10895d['type'])&&_0x136a01[_0x545f('0xcc')][_0x545f('0x10b')](_0x10895d[_0x545f('0x1c')]))return!0x1;return!0x0;}function xt(_0x2cc6a2,_0x2566d1){return!(!_0x2cc6a2[_0x545f('0x2b')]||!_0x2566d1[_0x545f('0x2b')])&&_0x3a9d17(_0x2cc6a2[_0x545f('0x127')],_0x2566d1['attributes']);}function Ut(_0x12f3b1,_0x2fe564){const _0x3789b3=Ot(_0x12f3b1[_0x545f('0x127')]),_0x21e4ea=Ot(_0x2fe564);if(!_0x12f3b1[_0x545f('0x2b')])return!0x1;for(const _0x15c2b2 of Object['keys'](_0x21e4ea))if(!_0x3a9d17(_0x3789b3[_0x15c2b2],_0x21e4ea[_0x15c2b2]))return!0x1;return!0x0;}function Ot(_0x26ca69){const _0x3070d3=Object[_0x545f('0xc8')]({},_0x26ca69);return delete _0x3070d3[_0x545f('0x144')],delete _0x3070d3[_0x545f('0xc6')],_0x3070d3;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5d5d=['getFirstRange','get','arrowView','comments.maxCommentCharsWhenCollapsed','createAnnotationView','getDescriptions','unbind','switchbutton','EditorAnnotations','locale','change:activeAnnotations','reduce','view','_annotationViews','suggestionLoaded','_updateController','change:previous','CommentsRepository','init','refreshSelectedViews','lowest','innerView','comments.editorConfig','delete','focus','_createUIButton','size','commentThread','type','TrackChangesUI','previous','from','getSuggestion','values','_descriptionFactory','actionView','suggestion-','config','getMarkerNames','button','trackChanges.disableComments','isEnabled','add','SuggestionThreadView','listenTo','_initializeController','keys','trackChanges','acceptAllSuggestions','trackChanges.SuggestionThreadView','discardButton','TrackChangesEditing','getMarkers','commands','filter','some','isOn','isMultiRange','getRanges','Annotations','commandName','push','_viewToController','getByInnerView','CommentView','requires','has','destroy','_handleSuggestionControllerDelayed','value','suggestionChanged','isInContent','_disableComments','_bindAnnotationToEditors','_destroyController','head','define','_suggestionToController','_refreshActiveMarkers','getJoined','clear','editor','CommentsUI','getAllAdjacentSuggestions','addComment','Track\x20changes','buttonView','componentFactory','plugins','acceptButton','Discard\x20all\x20suggestions','model','descriptionParts','_handleControllerBuffer','createAnnotation','addSourceCollector','isDirty','set','length','bind','separator','execute','pluginName','editing','acceptSelectedSuggestions','source','mainView'];(function(_0x3ef766,_0x5d5d2d){const _0x3b5a02=function(_0x3bcedb){while(--_0x3bcedb){_0x3ef766['push'](_0x3ef766['shift']());}};_0x3b5a02(++_0x5d5d2d);}(_0x5d5d,0x16c));const _0x3b5a=function(_0x3ef766,_0x5d5d2d){_0x3ef766=_0x3ef766-0x0;let _0x3b5a02=_0x5d5d[_0x3ef766];return _0x3b5a02;};import{Plugin as _0x5cae29}from'ckeditor5/src/core';import{Collection as _0x4c9845}from'ckeditor5/src/utils';import{Model as _0x3ae574,SplitButtonView as _0x5948dd,createDropdown as _0x5f25cc,addListToDropdown as _0x14be52}from'ckeditor5/src/ui';import{Users as _0x475d9e,getDateTimeFormatter as _0x2ff6ed,getAllMarkersDomElementsSorted as _0x302601}from'ckeditor5-collaboration/src/collaboration-core';import _0x26a636 from'./trackchangesediting';import _0xe3e04e from'./ui/suggestioncontroller';import _0x36c549 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1cf1e0}from'./utils/common-translations';import _0xcace68 from'../theme/icons/track-changes.svg';export default class d extends _0x5cae29{static get[_0x3b5a('0x16')](){return[_0x26a636,_0x475d9e,_0x3b5a('0x51'),_0x3b5a('0x10'),_0x3b5a('0x48')];}static get[_0x3b5a('0x3b')](){return _0x3b5a('0x5d');}constructor(_0x54bb91){super(_0x54bb91),this['_suggestionToController']=new Map(),this[_0x3b5a('0x13')]=new Map(),this[_0x3b5a('0x4d')]=new Map(),this[_0x3b5a('0x32')]=new Map();const _0x3c3577=this['editor'][_0x3b5a('0x65')];_0x3c3577['define'](_0x3b5a('0x6'),_0x36c549),_0x3c3577[_0x3b5a('0x21')](_0x3b5a('0x68'),!0x1),this[_0x3b5a('0x1d')]=_0x3c3577[_0x3b5a('0x41')]('trackChanges.disableComments');}[_0x3b5a('0x19')](_0x3d22df,_0x79a0de){0x0===this['_handleControllerBuffer'][_0x3b5a('0x5a')]&&setTimeout(()=>{for(const [_0x59a3dd,_0x599bdf]of this[_0x3b5a('0x32')]){const _0x310207=this[_0x3b5a('0x22')]['has'](_0x59a3dd);_0x310207||_0x599bdf?_0x310207&&_0x599bdf&&this[_0x3b5a('0x1f')](_0x59a3dd):this[_0x3b5a('0x2')](_0x59a3dd);}this['editor'][_0x3b5a('0x2d')][_0x3b5a('0x41')]('EditorAnnotations')[_0x3b5a('0x53')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x3b5a('0x25')]();},0xa),this[_0x3b5a('0x32')][_0x3b5a('0x36')](_0x3d22df,_0x79a0de);}[_0x3b5a('0x52')](){const _0x9ad87a=this['editor'],_0x3805f8=_0x9ad87a[_0x3b5a('0x2d')]['get'](_0x3b5a('0x8')),_0x7ed14e=_0x9ad87a[_0x3b5a('0x2d')]['get']('Annotations'),_0x30effb=_0x9ad87a['plugins'][_0x3b5a('0x41')](_0x3b5a('0x48')),_0x37f980=_0x9ad87a[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x51'));_0x9ad87a['ui'][_0x3b5a('0x2c')]['add'](_0x3b5a('0x4'),_0x181a20=>this[_0x3b5a('0x59')](_0x181a20)),_0x30effb[_0x3b5a('0x34')](()=>{const _0x2966f0=[];for(const [_0xff827e,_0x4d9be1]of Array['from'](this['_suggestionToController'])){const _0x5ccd41=_0xff827e[_0x3b5a('0x28')](),_0x352408=[];for(const _0x3c81d1 of _0x5ccd41){if(!_0x3c81d1[_0x3b5a('0x1c')])continue;if(_0x3c81d1[_0x3b5a('0xe')]){_0x352408[_0x3b5a('0x12')](..._0x3c81d1[_0x3b5a('0xf')]());continue;}const _0x502216=_0x3c81d1[_0x3b5a('0x40')]();if(_0x352408['length']>0x0){const _0x241e96=_0x352408[0x0][_0x3b5a('0x24')](_0x502216);if(_0x241e96){_0x352408[0x0]=_0x241e96;continue;}}_0x352408[_0x3b5a('0x12')](_0x502216);}_0x2966f0[_0x3b5a('0x12')]([_0x4d9be1[_0x3b5a('0x4c')],_0x352408]);}return _0x2966f0;}),this[_0x3b5a('0x1')](_0x3805f8,_0x3b5a('0x4e'),(_0x4bb322,_0x33a929)=>{this[_0x3b5a('0x1')](_0x33a929,_0x3b5a('0x50'),(_0x5b7932,_0x4d7276,_0x70690c,_0x28cd48)=>{_0x33a929['isInContent']&&(null==_0x70690c?(this[_0x3b5a('0x4f')](_0x28cd48['head']),this['_handleSuggestionControllerDelayed'](_0x33a929,!0x1)):(this[_0x3b5a('0x4f')](_0x70690c[_0x3b5a('0x20')]),this[_0x3b5a('0x19')](_0x33a929,!0x0)));}),null===_0x33a929[_0x3b5a('0x5e')]?this['_handleSuggestionControllerDelayed'](_0x33a929,!0x1):this[_0x3b5a('0x4f')](_0x33a929[_0x3b5a('0x20')]);}),this[_0x3b5a('0x1')](_0x3805f8,'suggestionUnloaded',(_0x245aa6,_0xc26594,_0x2a86e7)=>{this['stopListening'](_0xc26594,_0x3b5a('0x50')),this[_0x3b5a('0x32')][_0x3b5a('0x57')](_0xc26594);const _0x437d06=_0x2a86e7?_0x2a86e7[_0x3b5a('0x20')]:_0xc26594,_0x1be240=this[_0x3b5a('0x22')]['get'](_0x437d06);null!==_0x2a86e7&&this[_0x3b5a('0x4f')](_0x437d06),null===_0x2a86e7&&_0x1be240&&this['_destroyController'](_0xc26594);}),this[_0x3b5a('0x1')](_0x3805f8,_0x3b5a('0x1b'),(_0x5d99ca,_0x2c2019)=>{this[_0x3b5a('0x4f')](_0x2c2019);}),this['listenTo'](_0x7ed14e,_0x3b5a('0x4a'),()=>{this[_0x3b5a('0x23')]();}),this[_0x3b5a('0x1')](_0x37f980,_0x3b5a('0x29'),(_0x1b619e,{threadId:_0x27d3ba,isFromAdapter:_0x3dff5e})=>{if(_0x3dff5e||!_0x3805f8['hasSuggestion'](_0x27d3ba))return;const _0x1832ae=_0x3805f8[_0x3b5a('0x60')](_0x27d3ba);this[_0x3b5a('0x22')][_0x3b5a('0x41')](_0x1832ae)['view'][_0x3b5a('0x58')]();},{'priority':_0x3b5a('0x54')});}['_refreshActiveMarkers'](){const _0x4b166c=this[_0x3b5a('0x26')]['plugins'][_0x3b5a('0x41')](_0x3b5a('0x10')),_0xcf4585=this['editor'][_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x8')),_0x4ffb11=Array[_0x3b5a('0x5f')](_0x4b166c['activeAnnotations'],_0x473d75=>_0x473d75[_0x3b5a('0x55')])[_0x3b5a('0xb')](_0x4020b6=>this['_viewToController'][_0x3b5a('0x17')](_0x4020b6)),_0x364eb4=[];for(const _0x51a16d of _0x4ffb11){const _0x4431cc=this['_viewToController']['get'](_0x51a16d)[_0x3b5a('0x30')][_0x3b5a('0x28')]();_0x364eb4[_0x3b5a('0x12')](..._0x4431cc[_0x3b5a('0x4b')]((_0x22f2b0,_0x1abaf5)=>[..._0x22f2b0,..._0x1abaf5[_0x3b5a('0x66')]()],[]));}_0xcf4585['activeMarkers']=_0x364eb4;}[_0x3b5a('0x59')](_0x104aab){const _0x42dbb1=_0x5f25cc(_0x104aab,_0x5948dd),_0x5b9f9e=this['editor'][_0x3b5a('0xa')][_0x3b5a('0x41')]('trackChanges'),_0x24f4f7=_0x1cf1e0(_0x104aab,_0x3b5a('0x2a'));_0x42dbb1[_0x3b5a('0x2b')]['set']({'tooltip':_0x24f4f7,'label':_0x24f4f7,'icon':_0xcace68}),_0x42dbb1[_0x3b5a('0x2b')][_0x3b5a('0x38')](_0x3b5a('0xd'))['to'](_0x5b9f9e,_0x3b5a('0x1a')),_0x42dbb1[_0x3b5a('0x2b')]['on'](_0x3b5a('0x3a'),()=>{_0x5b9f9e[_0x3b5a('0x3a')](),this[_0x3b5a('0x26')][_0x3b5a('0x3c')][_0x3b5a('0x4c')]['focus']();});const _0x3edfa5=new _0x4c9845(),_0x22a876=[{'type':_0x3b5a('0x47'),'model':{'withText':!0x0,'label':_0x24f4f7,'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Accept\x20all\x20suggestions'),'commandName':_0x3b5a('0x5')}},{'type':_0x3b5a('0x67'),'model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x3b5a('0x3d')}},{'type':'button','model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,_0x3b5a('0x2f')),'commandName':'discardAllSuggestions'}},{'type':_0x3b5a('0x67'),'model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0xa62040 of _0x22a876){let _0x3b8e29={'type':_0x3b5a('0x39')};if(_0xa62040['model']){const _0x4f1009=new _0x3ae574(_0xa62040['model']),_0x264003=this['editor'][_0x3b5a('0xa')]['get'](_0x4f1009[_0x3b5a('0x11')]);_0x4f1009[_0x3b5a('0x38')](_0x3b5a('0xd'),_0x3b5a('0x69'))['to'](_0x264003,_0x3b5a('0x1a'),'isEnabled'),_0x3b8e29={'type':_0xa62040[_0x3b5a('0x5c')],'model':_0x4f1009};}_0x3edfa5[_0x3b5a('0x6a')](_0x3b8e29);}_0x14be52(_0x42dbb1,_0x3edfa5);const _0x528b84=_0x22a876[_0x3b5a('0xb')](_0x19e1e9=>null!=_0x19e1e9[_0x3b5a('0x30')])['map'](_0x431ba2=>this[_0x3b5a('0x26')][_0x3b5a('0xa')]['get'](_0x431ba2[_0x3b5a('0x30')][_0x3b5a('0x11')])),_0x37877b=_0x42dbb1[_0x3b5a('0x2b')];return _0x37877b[_0x3b5a('0x63')][_0x3b5a('0x46')](_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x42')][_0x3b5a('0x46')](_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x63')]['bind'](_0x3b5a('0x69'))['to'](_0x5b9f9e,_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x42')][_0x3b5a('0x38')](_0x3b5a('0x69'))['toMany'](_0x528b84,_0x3b5a('0x69'),(..._0x5c6dc0)=>_0x5c6dc0[_0x3b5a('0xc')](_0x1a3cc9=>_0x1a3cc9)),_0x42dbb1['on'](_0x3b5a('0x3a'),_0x358483=>{this[_0x3b5a('0x26')][_0x3b5a('0x3a')](_0x358483[_0x3b5a('0x3e')][_0x3b5a('0x11')]),this[_0x3b5a('0x26')][_0x3b5a('0x3c')][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x42dbb1;}[_0x3b5a('0x2')](_0x5df0d0){const _0x5c87f1=this['editor'],_0x145199=_0x5c87f1['config'],_0x560239=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x10')),_0x139469=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x51')),_0x1027d7=_0x5c87f1[_0x3b5a('0x2d')]['get'](_0x3b5a('0x48')),_0x310311=_0x5c87f1['plugins'][_0x3b5a('0x41')](_0x475d9e)['me'],_0xbfe373=_0x145199[_0x3b5a('0x41')]('trackChanges')[_0x3b5a('0x0')],{CommentsListView:_0x2dff7b,CommentThreadInputView:_0x14b8e2}=_0x5c87f1['plugins']['get'](_0x3b5a('0x27'));let _0x129055,_0x41ed97;this[_0x3b5a('0x4d')][_0x3b5a('0x17')](_0x5df0d0['id'])?(_0x41ed97=this[_0x3b5a('0x4d')]['get'](_0x5df0d0['id']),_0x129055=_0x41ed97[_0x3b5a('0x3f')]):(_0x129055=new _0xbfe373(_0x5c87f1[_0x3b5a('0x49')],_0x5df0d0,_0x310311,{'disableComments':this['_disableComments'],'editorConfig':_0x145199[_0x3b5a('0x41')](_0x3b5a('0x56')),'maxCommentsWhenCollapsed':_0x145199[_0x3b5a('0x41')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x145199['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x145199[_0x3b5a('0x41')](_0x3b5a('0x43')),'formatDateTime':_0x2ff6ed(_0x145199[_0x3b5a('0x41')](_0x3b5a('0x49'))),'CommentView':_0x145199[_0x3b5a('0x41')]('comments')[_0x3b5a('0x15')],'CommentsListView':_0x2dff7b,'CommentThreadInputView':_0x14b8e2}),_0x129055[_0x3b5a('0x2e')]['on'](_0x3b5a('0x3a'),()=>{_0x5c87f1[_0x3b5a('0x3c')][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x129055[_0x3b5a('0x7')]['on'](_0x3b5a('0x3a'),()=>{_0x5c87f1['editing'][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x41ed97=_0x560239[_0x3b5a('0x44')](this['editor'][_0x3b5a('0x49')],_0x129055),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x35'))['to'](_0x129055,_0x3b5a('0x35')),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x37'))['to'](_0x129055),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x5c'))['to'](_0x129055,_0x3b5a('0x5c'),_0x3817f7=>_0x3b5a('0x64')+_0x3817f7),this[_0x3b5a('0x4d')][_0x3b5a('0x36')](_0x5df0d0['id'],_0x41ed97));const _0x4f1f37=_0x139469['createCommentThreadController'](_0x5df0d0[_0x3b5a('0x5b')],_0x129055),_0x1075ad=new _0xe3e04e(_0x5c87f1,_0x5df0d0,_0x129055,_0x4f1f37),_0x48ff35=_0x5df0d0[_0x3b5a('0x28')]()['filter'](_0x205fac=>_0x205fac['isInContent']);_0x129055['descriptionParts']=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x8'))['_descriptionFactory'][_0x3b5a('0x45')](_0x48ff35),this[_0x3b5a('0x22')][_0x3b5a('0x36')](_0x5df0d0,_0x1075ad),this[_0x3b5a('0x13')]['set'](_0x129055,_0x1075ad);const _0x1f38c1=_0x560239[_0x3b5a('0x33')]({'view':_0x41ed97,'target':()=>{const _0x388474=[],_0x2bdefb=_0x5df0d0[_0x3b5a('0x28')]()[_0x3b5a('0xb')](_0x554821=>_0x554821['isInContent']);for(const _0x51d6a0 of _0x2bdefb)_0x388474[_0x3b5a('0x12')](..._0x51d6a0[_0x3b5a('0x9')]());return _0x302601(_0x5c87f1[_0x3b5a('0x3c')],_0x388474);},'type':()=>_0x3b5a('0x64')+_0x1075ad['view'][_0x3b5a('0x5c')]});_0x139469[_0x3b5a('0x1e')](_0x129055,_0x1f38c1),_0x560239[_0x3b5a('0x6a')](_0x1f38c1),_0x1027d7['registerAnnotation'](_0x1f38c1);}[_0x3b5a('0x1f')](_0x4fed35){const _0x1f470b=this[_0x3b5a('0x26')]['plugins'][_0x3b5a('0x41')]('Annotations'),_0x5b908c=this['_suggestionToController'][_0x3b5a('0x41')](_0x4fed35),_0x4e0a15=_0x5b908c[_0x3b5a('0x4c')],_0x25700b=_0x1f470b[_0x3b5a('0x14')](_0x4e0a15);_0x25700b&&_0x1f470b['remove'](_0x25700b),this['_suggestionToController'][_0x3b5a('0x57')](_0x4fed35),this[_0x3b5a('0x13')][_0x3b5a('0x57')](_0x4e0a15),_0x5b908c[_0x3b5a('0x18')]();}[_0x3b5a('0x4f')](_0x189575){if(!_0x189575[_0x3b5a('0x1c')]||!this['_suggestionToController']['has'](_0x189575))return;const _0x547c23=this[_0x3b5a('0x26')]['plugins']['get']('TrackChangesEditing'),_0x3861b9=this['_suggestionToController'][_0x3b5a('0x41')](_0x189575),_0x103434=_0x189575[_0x3b5a('0x28')]();_0x3861b9['view'][_0x3b5a('0x31')]=_0x547c23[_0x3b5a('0x62')]['getDescriptions'](_0x103434);}[_0x3b5a('0x18')](){for(const _0x1f89d0 of this[_0x3b5a('0x22')][_0x3b5a('0x3')]())this[_0x3b5a('0x1f')](_0x1f89d0);for(const _0x49dadc of this[_0x3b5a('0x4d')][_0x3b5a('0x61')]())_0x49dadc[_0x3b5a('0x3f')][_0x3b5a('0x18')]();super[_0x3b5a('0x18')]();}}
|
|
23
|
+
const _0x51d4=['commentThread','editing','plugins','registerAnnotation','TrackChangesUI','toMany','innerView','suggestionChanged','trackChanges.SuggestionThreadView','arrowView','createAnnotation','commands','createCommentThreadController','suggestionLoaded','config','push','define','isDirty','getMarkerNames','filter','view','listenTo','comments.maxCommentsWhenCollapsed','_suggestionToController','activeMarkers','hasSuggestion','_createUIButton','suggestion-','getAllAdjacentSuggestions','trackChanges','size','_bindAnnotationToEditors','pluginName','actionView','getMarkers','destroy','length','clear','getDescriptions','editor','Accept\x20all\x20suggestions','addComment','CommentView','type','source','head','_refreshActiveMarkers','has','_disableComments','previous','comments.maxCommentCharsWhenCollapsed','CommentsUI','focus','TrackChangesEditing','trackChanges.disableComments','change:previous','mainView','Discard\x20all\x20selected\x20suggestions','activeAnnotations','_viewToController','button','acceptAllSuggestions','switchbutton','suggestionUnloaded','_updateController','model','getFirstRange','stopListening','locale','Accept\x20all\x20selected\x20suggestions','_initializeController','componentFactory','execute','separator','delete','get','_handleSuggestionControllerDelayed','discardButton','buttonView','set','isOn','map','_descriptionFactory','_annotationViews','isEnabled','_handleControllerBuffer','commandName','lowest','Annotations','unbind','change:activeAnnotations','CommentsRepository','value','from','_destroyController','isInContent','EditorAnnotations','Discard\x20all\x20suggestions','getRanges','add','descriptionParts','getSuggestion','some','bind'];(function(_0x4ce290,_0x51d499){const _0x27f289=function(_0x109ae1){while(--_0x109ae1){_0x4ce290['push'](_0x4ce290['shift']());}};_0x27f289(++_0x51d499);}(_0x51d4,0x1a7));const _0x27f2=function(_0x4ce290,_0x51d499){_0x4ce290=_0x4ce290-0x0;let _0x27f289=_0x51d4[_0x4ce290];return _0x27f289;};import{Plugin as _0x2c02ae}from'ckeditor5/src/core';import{Collection as _0x460093}from'ckeditor5/src/utils';import{Model as _0x48b50c,SplitButtonView as _0x3f51b2,createDropdown as _0x11c123,addListToDropdown as _0x19e86e}from'ckeditor5/src/ui';import{Users as _0x2aaace,getDateTimeFormatter as _0x232e0e,getAllMarkersDomElementsSorted as _0x20d90f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b0442 from'./trackchangesediting';import _0x73486 from'./ui/suggestioncontroller';import _0x9de663 from'./ui/view/suggestionthreadview';import{getTranslation as _0x192ca8}from'./utils/common-translations';import _0x54977c from'../theme/icons/track-changes.svg';export default class d extends _0x2c02ae{static get['requires'](){return[_0x2b0442,_0x2aaace,'CommentsRepository',_0x27f2('0x51'),_0x27f2('0x59')];}static get[_0x27f2('0x19')](){return _0x27f2('0x65');}constructor(_0x1e0ae5){super(_0x1e0ae5),this['_suggestionToController']=new Map(),this[_0x27f2('0x34')]=new Map(),this[_0x27f2('0x4c')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x35e44e=this[_0x27f2('0x20')][_0x27f2('0x7')];_0x35e44e[_0x27f2('0x9')](_0x27f2('0x1'),_0x9de663),_0x35e44e[_0x27f2('0x9')](_0x27f2('0x2f'),!0x1),this['_disableComments']=_0x35e44e[_0x27f2('0x44')](_0x27f2('0x2f'));}[_0x27f2('0x45')](_0x4fac41,_0x36916e){0x0===this[_0x27f2('0x4e')][_0x27f2('0x17')]&&setTimeout(()=>{for(const [_0x49d0c0,_0x5d802c]of this[_0x27f2('0x4e')]){const _0x215ba3=this[_0x27f2('0x10')][_0x27f2('0x28')](_0x49d0c0);_0x215ba3||_0x5d802c?_0x215ba3&&_0x5d802c&&this[_0x27f2('0x57')](_0x49d0c0):this[_0x27f2('0x3f')](_0x49d0c0);}this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x59'))['refreshSelectedViews'](),this['_refreshActiveMarkers'](),this[_0x27f2('0x4e')][_0x27f2('0x1e')]();},0xa),this[_0x27f2('0x4e')][_0x27f2('0x48')](_0x4fac41,_0x36916e);}['init'](){const _0x335ac3=this['editor'],_0x5b5582=_0x335ac3[_0x27f2('0x63')]['get']('TrackChangesEditing'),_0x46e829=_0x335ac3[_0x27f2('0x63')]['get'](_0x27f2('0x51')),_0xb58294=_0x335ac3[_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x59')),_0xe51dca=_0x335ac3[_0x27f2('0x63')]['get'](_0x27f2('0x54'));_0x335ac3['ui'][_0x27f2('0x40')]['add'](_0x27f2('0x16'),_0x20bd20=>this['_createUIButton'](_0x20bd20)),_0xb58294['addSourceCollector'](()=>{const _0x3939c3=[];for(const [_0x4b2bb9,_0x388b7f]of Array[_0x27f2('0x56')](this[_0x27f2('0x10')])){const _0x1f7046=_0x4b2bb9[_0x27f2('0x15')](),_0x3bdf71=[];for(const _0x94fb0b of _0x1f7046){if(!_0x94fb0b[_0x27f2('0x58')])continue;if(_0x94fb0b['isMultiRange']){_0x3bdf71[_0x27f2('0x8')](..._0x94fb0b[_0x27f2('0x5b')]());continue;}const _0x41b709=_0x94fb0b[_0x27f2('0x3b')]();if(_0x3bdf71[_0x27f2('0x1d')]>0x0){const _0x5e7536=_0x3bdf71[0x0]['getJoined'](_0x41b709);if(_0x5e7536){_0x3bdf71[0x0]=_0x5e7536;continue;}}_0x3bdf71[_0x27f2('0x8')](_0x41b709);}_0x3939c3['push']([_0x388b7f[_0x27f2('0xd')],_0x3bdf71]);}return _0x3939c3;}),this['listenTo'](_0x5b5582,_0x27f2('0x6'),(_0x25a327,_0x4e549d)=>{this[_0x27f2('0xe')](_0x4e549d,'change:previous',(_0x2c2afa,_0x19eb44,_0x127603,_0x19f8eb)=>{_0x4e549d[_0x27f2('0x58')]&&(null==_0x127603?(this['_updateController'](_0x19f8eb[_0x27f2('0x26')]),this[_0x27f2('0x45')](_0x4e549d,!0x1)):(this['_updateController'](_0x127603[_0x27f2('0x26')]),this[_0x27f2('0x45')](_0x4e549d,!0x0)));}),null===_0x4e549d[_0x27f2('0x2a')]?this['_handleSuggestionControllerDelayed'](_0x4e549d,!0x1):this['_updateController'](_0x4e549d[_0x27f2('0x26')]);}),this[_0x27f2('0xe')](_0x5b5582,_0x27f2('0x38'),(_0x2f6bde,_0x231112,_0x2636ca)=>{this[_0x27f2('0x3c')](_0x231112,_0x27f2('0x30')),this[_0x27f2('0x4e')][_0x27f2('0x43')](_0x231112);const _0x258620=_0x2636ca?_0x2636ca[_0x27f2('0x26')]:_0x231112,_0x143e46=this[_0x27f2('0x10')]['get'](_0x258620);null!==_0x2636ca&&this[_0x27f2('0x39')](_0x258620),null===_0x2636ca&&_0x143e46&&this[_0x27f2('0x57')](_0x231112);}),this[_0x27f2('0xe')](_0x5b5582,_0x27f2('0x0'),(_0x45823f,_0x2c91c4)=>{this[_0x27f2('0x39')](_0x2c91c4);}),this['listenTo'](_0x46e829,_0x27f2('0x53'),()=>{this['_refreshActiveMarkers']();}),this[_0x27f2('0xe')](_0xe51dca,_0x27f2('0x22'),(_0x3a0dff,{threadId:_0x2412e3,isFromAdapter:_0x563f57})=>{if(_0x563f57||!_0x5b5582[_0x27f2('0x12')](_0x2412e3))return;const _0x1c0a54=_0x5b5582[_0x27f2('0x5e')](_0x2412e3);this[_0x27f2('0x10')][_0x27f2('0x44')](_0x1c0a54)['view'][_0x27f2('0x2d')]();},{'priority':_0x27f2('0x50')});}[_0x27f2('0x27')](){const _0x12f6f6=this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x51')),_0x11df58=this[_0x27f2('0x20')][_0x27f2('0x63')]['get'](_0x27f2('0x2e')),_0x561a7a=Array[_0x27f2('0x56')](_0x12f6f6[_0x27f2('0x33')],_0x51d241=>_0x51d241[_0x27f2('0x67')])['filter'](_0x177169=>this['_viewToController'][_0x27f2('0x28')](_0x177169)),_0x52a901=[];for(const _0x38af98 of _0x561a7a){const _0x59ece9=this['_viewToController'][_0x27f2('0x44')](_0x38af98)['model'][_0x27f2('0x15')]();_0x52a901['push'](..._0x59ece9['reduce']((_0x368f50,_0x27095b)=>[..._0x368f50,..._0x27095b[_0x27f2('0xb')]()],[]));}_0x11df58[_0x27f2('0x11')]=_0x52a901;}[_0x27f2('0x13')](_0x3f66ce){const _0x3e9a29=_0x11c123(_0x3f66ce,_0x3f51b2),_0x5c3097=this[_0x27f2('0x20')][_0x27f2('0x4')]['get']('trackChanges'),_0x26f480=_0x192ca8(_0x3f66ce,'Track\x20changes');_0x3e9a29[_0x27f2('0x47')][_0x27f2('0x48')]({'tooltip':_0x26f480,'label':_0x26f480,'icon':_0x54977c}),_0x3e9a29[_0x27f2('0x47')]['bind']('isOn')['to'](_0x5c3097,_0x27f2('0x55')),_0x3e9a29[_0x27f2('0x47')]['on'](_0x27f2('0x41'),()=>{_0x5c3097['execute'](),this[_0x27f2('0x20')][_0x27f2('0x62')][_0x27f2('0xd')][_0x27f2('0x2d')]();});const _0x24ae43=new _0x460093(),_0x379e17=[{'type':_0x27f2('0x37'),'model':{'withText':!0x0,'label':_0x26f480,'commandName':'trackChanges'}},{'type':'separator'},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x21')),'commandName':_0x27f2('0x36')}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x3e')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x5a')),'commandName':'discardAllSuggestions'}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x32')),'commandName':'discardSelectedSuggestions'}}];for(const _0x58eecc of _0x379e17){let _0x3c132d={'type':_0x27f2('0x42')};if(_0x58eecc[_0x27f2('0x3a')]){const _0x4fdf5e=new _0x48b50c(_0x58eecc[_0x27f2('0x3a')]),_0x2e5453=this[_0x27f2('0x20')][_0x27f2('0x4')][_0x27f2('0x44')](_0x4fdf5e[_0x27f2('0x4f')]);_0x4fdf5e[_0x27f2('0x60')](_0x27f2('0x49'),'isEnabled')['to'](_0x2e5453,_0x27f2('0x55'),'isEnabled'),_0x3c132d={'type':_0x58eecc[_0x27f2('0x24')],'model':_0x4fdf5e};}_0x24ae43[_0x27f2('0x5c')](_0x3c132d);}_0x19e86e(_0x3e9a29,_0x24ae43);const _0x3edaab=_0x379e17[_0x27f2('0xc')](_0x4666ed=>null!=_0x4666ed[_0x27f2('0x3a')])[_0x27f2('0x4a')](_0x12c147=>this['editor'][_0x27f2('0x4')][_0x27f2('0x44')](_0x12c147[_0x27f2('0x3a')][_0x27f2('0x4f')])),_0x231022=_0x3e9a29[_0x27f2('0x47')];return _0x231022[_0x27f2('0x1a')][_0x27f2('0x52')](_0x27f2('0x4d')),_0x231022['arrowView'][_0x27f2('0x52')](_0x27f2('0x4d')),_0x231022[_0x27f2('0x1a')][_0x27f2('0x60')]('isEnabled')['to'](_0x5c3097,_0x27f2('0x4d')),_0x231022[_0x27f2('0x2')][_0x27f2('0x60')]('isEnabled')[_0x27f2('0x66')](_0x3edaab,_0x27f2('0x4d'),(..._0x473869)=>_0x473869[_0x27f2('0x5f')](_0x9b6f1a=>_0x9b6f1a)),_0x3e9a29['on'](_0x27f2('0x41'),_0x508187=>{this['editor'][_0x27f2('0x41')](_0x508187[_0x27f2('0x25')][_0x27f2('0x4f')]),this[_0x27f2('0x20')][_0x27f2('0x62')][_0x27f2('0xd')]['focus']();}),_0x3e9a29;}[_0x27f2('0x3f')](_0x43de3b){const _0x1028e6=this[_0x27f2('0x20')],_0x15e127=_0x1028e6['config'],_0x14f094=_0x1028e6['plugins'][_0x27f2('0x44')]('Annotations'),_0x3a3adb=_0x1028e6['plugins'][_0x27f2('0x44')]('CommentsRepository'),_0x377461=_0x1028e6['plugins'][_0x27f2('0x44')](_0x27f2('0x59')),_0x5f382d=_0x1028e6['plugins'][_0x27f2('0x44')](_0x2aaace)['me'],_0x2d495e=_0x15e127[_0x27f2('0x44')](_0x27f2('0x16'))['SuggestionThreadView'],{CommentsListView:_0x583d59,CommentThreadInputView:_0x1c4a44}=_0x1028e6[_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x2c'));let _0x2385a7,_0x4533fe;this[_0x27f2('0x4c')][_0x27f2('0x28')](_0x43de3b['id'])?(_0x4533fe=this[_0x27f2('0x4c')][_0x27f2('0x44')](_0x43de3b['id']),_0x2385a7=_0x4533fe[_0x27f2('0x31')]):(_0x2385a7=new _0x2d495e(_0x1028e6[_0x27f2('0x3d')],_0x43de3b,_0x5f382d,{'disableComments':this[_0x27f2('0x29')],'editorConfig':_0x15e127[_0x27f2('0x44')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x15e127['get'](_0x27f2('0xf')),'maxThreadTotalWeight':_0x15e127[_0x27f2('0x44')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15e127[_0x27f2('0x44')](_0x27f2('0x2b')),'formatDateTime':_0x232e0e(_0x15e127[_0x27f2('0x44')](_0x27f2('0x3d'))),'CommentView':_0x15e127[_0x27f2('0x44')]('comments')[_0x27f2('0x23')],'CommentsListView':_0x583d59,'CommentThreadInputView':_0x1c4a44}),_0x2385a7['acceptButton']['on']('execute',()=>{_0x1028e6[_0x27f2('0x62')][_0x27f2('0xd')]['focus']();}),_0x2385a7[_0x27f2('0x46')]['on'](_0x27f2('0x41'),()=>{_0x1028e6['editing'][_0x27f2('0xd')][_0x27f2('0x2d')]();}),_0x4533fe=_0x14f094['createAnnotationView'](this[_0x27f2('0x20')][_0x27f2('0x3d')],_0x2385a7),_0x4533fe[_0x27f2('0x60')](_0x27f2('0xa'))['to'](_0x2385a7,_0x27f2('0xa')),_0x4533fe[_0x27f2('0x60')]('length')['to'](_0x2385a7),_0x4533fe[_0x27f2('0x60')](_0x27f2('0x24'))['to'](_0x2385a7,_0x27f2('0x24'),_0x2fd181=>_0x27f2('0x14')+_0x2fd181),this[_0x27f2('0x4c')][_0x27f2('0x48')](_0x43de3b['id'],_0x4533fe));const _0x34615b=_0x3a3adb[_0x27f2('0x5')](_0x43de3b[_0x27f2('0x61')],_0x2385a7),_0x375dc6=new _0x73486(_0x1028e6,_0x43de3b,_0x2385a7,_0x34615b),_0x3505c3=_0x43de3b[_0x27f2('0x15')]()[_0x27f2('0xc')](_0x353880=>_0x353880[_0x27f2('0x58')]);_0x2385a7[_0x27f2('0x5d')]=_0x1028e6[_0x27f2('0x63')][_0x27f2('0x44')]('TrackChangesEditing')[_0x27f2('0x4b')][_0x27f2('0x1f')](_0x3505c3),this[_0x27f2('0x10')][_0x27f2('0x48')](_0x43de3b,_0x375dc6),this['_viewToController']['set'](_0x2385a7,_0x375dc6);const _0x4086c4=_0x14f094[_0x27f2('0x3')]({'view':_0x4533fe,'target':()=>{const _0x417a48=[],_0x2f7ff6=_0x43de3b[_0x27f2('0x15')]()[_0x27f2('0xc')](_0x32c17c=>_0x32c17c[_0x27f2('0x58')]);for(const _0x1a3f27 of _0x2f7ff6)_0x417a48['push'](..._0x1a3f27[_0x27f2('0x1b')]());return _0x20d90f(_0x1028e6['editing'],_0x417a48);},'type':()=>_0x27f2('0x14')+_0x375dc6[_0x27f2('0xd')][_0x27f2('0x24')]});_0x3a3adb[_0x27f2('0x18')](_0x2385a7,_0x4086c4),_0x14f094['add'](_0x4086c4),_0x377461[_0x27f2('0x64')](_0x4086c4);}[_0x27f2('0x57')](_0x31e066){const _0x1a030a=this[_0x27f2('0x20')][_0x27f2('0x63')]['get']('Annotations'),_0xe1ecf9=this[_0x27f2('0x10')][_0x27f2('0x44')](_0x31e066),_0x1d1cc2=_0xe1ecf9[_0x27f2('0xd')],_0x4f2d81=_0x1a030a['getByInnerView'](_0x1d1cc2);_0x4f2d81&&_0x1a030a['remove'](_0x4f2d81),this[_0x27f2('0x10')]['delete'](_0x31e066),this[_0x27f2('0x34')]['delete'](_0x1d1cc2),_0xe1ecf9[_0x27f2('0x1c')]();}[_0x27f2('0x39')](_0x2e9249){if(!_0x2e9249[_0x27f2('0x58')]||!this['_suggestionToController'][_0x27f2('0x28')](_0x2e9249))return;const _0x186536=this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x2e')),_0x1cd938=this[_0x27f2('0x10')][_0x27f2('0x44')](_0x2e9249),_0x231206=_0x2e9249['getAllAdjacentSuggestions']();_0x1cd938[_0x27f2('0xd')]['descriptionParts']=_0x186536[_0x27f2('0x4b')]['getDescriptions'](_0x231206);}[_0x27f2('0x1c')](){for(const _0x1ccef5 of this[_0x27f2('0x10')]['keys']())this[_0x27f2('0x57')](_0x1ccef5);for(const _0x55da7f of this[_0x27f2('0x4c')]['values']())_0x55da7f[_0x27f2('0x31')][_0x27f2('0x1c')]();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34f1=['_acceptCommand','bind','PENDING_ACTION_SUGGESTION','listenTo','_removePendingAction','change:isDirty','isEnabled','execute','isDirty','model','_editor','view','commands','_discardCommand','acceptSuggestion','getRanges','PendingActions','plugins','unbind','stopListening','commentThreadController','locale','canAccept','canDiscard','_pendingAction','get','canEditAt','discardSuggestion','_setPendingAction'];(function(_0x75ea3f,_0x34f1bc){const _0x17aa71=function(_0x4f5636){while(--_0x4f5636){_0x75ea3f['push'](_0x75ea3f['shift']());}};_0x17aa71(++_0x34f1bc);}(_0x34f1,0x82));const _0x17aa=function(_0x75ea3f,_0x34f1bc){_0x75ea3f=_0x75ea3f-0x0;let _0x17aa71=_0x34f1[_0x75ea3f];return _0x17aa71;};import{ObservableMixin as _0x9bbf63}from'ckeditor5/src/utils';import{getTranslation as _0x16f3d9}from'../utils/common-translations';export default class Ft extends _0x9bbf63(){constructor(_0x39a9f3,_0x3fc405,_0x549c49,_0x4adc9d){super(),this[_0x17aa('0x18')]=_0x3fc405,this[_0x17aa('0x1a')]=_0x549c49,this[_0x17aa('0x6')]=_0x4adc9d,this[_0x17aa('0x19')]=_0x39a9f3,this['_acceptCommand']=_0x39a9f3[_0x17aa('0x1b')][_0x17aa('0xb')](_0x17aa('0x0')),this['_discardCommand']=_0x39a9f3[_0x17aa('0x1b')][_0x17aa('0xb')](_0x17aa('0xd')),this[_0x17aa('0x1a')][_0x17aa('0x10')](_0x17aa('0x15'))['to'](this[_0x17aa('0xf')],this[_0x17aa('0x1c')],(_0x2c4fe1,_0xbd17b9)=>_0x2c4fe1||_0xbd17b9),this[_0x17aa('0x1a')][_0x17aa('0x10')](_0x17aa('0x8'))['to'](this['_acceptCommand'],_0x17aa('0x15'),_0x32279d=>_0x32279d&&this[_0x17aa('0x19')][_0x17aa('0x18')]['canEditAt'](_0x3fc405[_0x17aa('0x1')]())),this['view'][_0x17aa('0x10')](_0x17aa('0x9'))['to'](this[_0x17aa('0x1c')],_0x17aa('0x15'),_0xe3314d=>_0xe3314d&&this[_0x17aa('0x19')][_0x17aa('0x18')][_0x17aa('0xc')](_0x3fc405['getRanges']())),this[_0x17aa('0xa')]=null,_0x549c49[_0x17aa('0x17')]&&this[_0x17aa('0xe')](),this[_0x17aa('0x12')](_0x549c49,_0x17aa('0x0'),()=>this[_0x17aa('0x0')]()),this[_0x17aa('0x12')](_0x549c49,_0x17aa('0xd'),()=>this['discardSuggestion']()),this['listenTo'](_0x549c49,_0x17aa('0x14'),()=>{_0x549c49[_0x17aa('0x17')]?this[_0x17aa('0xe')]():this[_0x17aa('0x13')]();});}[_0x17aa('0x0')](){this[_0x17aa('0xf')]['execute'](this[_0x17aa('0x18')]['id']);}[_0x17aa('0xd')](){this[_0x17aa('0x1c')][_0x17aa('0x16')](this[_0x17aa('0x18')]['id']);}['destroy'](){this[_0x17aa('0x1a')]['unbind'](_0x17aa('0x15')),this[_0x17aa('0x1a')][_0x17aa('0x4')]('canAccept'),this['view'][_0x17aa('0x4')](_0x17aa('0x9')),this[_0x17aa('0x5')](),this[_0x17aa('0x6')]['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}[_0x17aa('0xe')](){const _0xa40d10=_0x16f3d9(this['_editor'][_0x17aa('0x7')],_0x17aa('0x11'));this['_pendingAction']=this[_0x17aa('0x19')][_0x17aa('0x3')][_0x17aa('0xb')](_0x17aa('0x2'))['add'](_0xa40d10);}[_0x17aa('0x13')](){null!==this['_pendingAction']&&this[_0x17aa('0x19')][_0x17aa('0x3')][_0x17aa('0xb')](_0x17aa('0x2'))['remove'](this['_pendingAction']),this[_0x17aa('0xa')]=null;}}
|