@ckeditor/ckeditor5-track-changes 29.1.0 → 31.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/lang/contexts.json +8 -7
  2. package/lang/translations/cs.po +27 -23
  3. package/lang/translations/da.po +387 -0
  4. package/lang/translations/de.po +29 -25
  5. package/lang/translations/en-au.po +27 -23
  6. package/lang/translations/en.po +27 -23
  7. package/lang/translations/es.po +26 -22
  8. package/lang/translations/et.po +26 -22
  9. package/lang/translations/fr.po +27 -23
  10. package/lang/translations/gl.po +29 -25
  11. package/lang/translations/hi.po +27 -23
  12. package/lang/translations/hr.po +27 -23
  13. package/lang/translations/it.po +29 -25
  14. package/lang/translations/nl.po +26 -22
  15. package/lang/translations/pl.po +27 -23
  16. package/lang/translations/pt-br.po +49 -45
  17. package/lang/translations/sk.po +27 -23
  18. package/lang/translations/sr-latn.po +27 -23
  19. package/lang/translations/sr.po +27 -23
  20. package/lang/translations/tk.po +27 -23
  21. package/lang/translations/tr.po +27 -23
  22. package/lang/translations/zh-cn.po +27 -23
  23. package/lang/translations/zh.po +370 -0
  24. package/package.json +7 -7
  25. package/src/commands/acceptallsuggestionscommand.js +1 -1
  26. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  27. package/src/commands/acceptsuggestioncommand.js +1 -1
  28. package/src/commands/discardallsuggestionscommand.js +1 -1
  29. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  30. package/src/commands/discardsuggestioncommand.js +1 -1
  31. package/src/commands/trackchangescommand.js +1 -1
  32. package/src/integrations/alignment.js +1 -1
  33. package/src/integrations/basicstyles.js +1 -1
  34. package/src/integrations/blockquote.js +1 -1
  35. package/src/integrations/codeblock.js +1 -1
  36. package/src/integrations/comments.js +1 -1
  37. package/src/integrations/deletecommand.js +1 -1
  38. package/src/integrations/entercommand.js +1 -1
  39. package/src/integrations/font.js +1 -1
  40. package/src/integrations/heading.js +1 -1
  41. package/src/integrations/highlight.js +1 -1
  42. package/src/integrations/horizontalline.js +1 -1
  43. package/src/integrations/image.js +1 -1
  44. package/src/integrations/indent.js +1 -1
  45. package/src/integrations/inputcommand.js +1 -1
  46. package/src/integrations/link.js +1 -1
  47. package/src/integrations/list.js +1 -1
  48. package/src/integrations/mediaembed.js +1 -1
  49. package/src/integrations/mention.js +1 -1
  50. package/src/integrations/pagebreak.js +1 -1
  51. package/src/integrations/paragraph.js +1 -1
  52. package/src/integrations/removeformat.js +1 -1
  53. package/src/integrations/restrictededitingmode.js +1 -1
  54. package/src/integrations/shiftentercommand.js +1 -1
  55. package/src/integrations/standardeditingmode.js +1 -1
  56. package/src/integrations/table.js +1 -1
  57. package/src/integrations/tableclipboard.js +1 -1
  58. package/src/integrations/tableheadings.js +1 -1
  59. package/src/integrations/tablemergesplit.js +1 -1
  60. package/src/integrations/title.js +1 -1
  61. package/src/integrations/undo.js +1 -1
  62. package/src/integrations/utils.js +1 -1
  63. package/src/suggestion.js +1 -1
  64. package/src/suggestiondescriptionfactory.js +1 -1
  65. package/src/trackchanges.js +1 -1
  66. package/src/trackchangesdata.js +1 -1
  67. package/src/trackchangesediting.js +1 -1
  68. package/src/trackchangesui.js +1 -1
  69. package/src/ui/suggestioncontroller.js +1 -1
  70. package/src/ui/view/basesuggestionthreadview.js +1 -1
  71. package/src/ui/view/suggestionthreadview.js +1 -1
  72. package/src/utils/getselectedsuggestions.js +1 -1
  73. package/src/utils/hashobject.js +1 -1
  74. package/src/utils/normalizedescription.js +1 -1
  75. package/src/utils/sortsuggestions.js +1 -1
  76. package/theme/integrations/table.css +57 -48
  77. package/theme/suggestion.css +10 -0
  78. package/theme/suggestionmarker.css +1 -0
  79. package/src/integrations/exportpdf.js +0 -23
  80. package/src/integrations/exportword.js +0 -23
  81. package/src/integrations/selectall.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x262cf4,PendingActions as _0x206eab}from'ckeditor5/src/core';import _0x3c013c from'@ckeditor/ckeditor5-collaboration-core/src/users';import{LiveRange as _0x20405a}from'ckeditor5/src/engine';import{CKEditorError as _0x1fdab6,uid as _0x18ae71,priorities as _0x818434,EmitterMixin as _0x10893d,mix as _0x579d99}from'ckeditor5/src/utils';import _0x54940c from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import _0x2ec714 from'./commands/trackchangescommand';import _0x48861b from'./commands/acceptsuggestioncommand';import _0x53b4d7 from'./commands/discardsuggestioncommand';import _0x3d6495 from'./commands/acceptallsuggestionscommand';import _0x18ce4a from'./commands/acceptselectedsuggestionscommand';import _0xeea2d6 from'./commands/discardallsuggestionscommand';import _0x3db4f2 from'./commands/discardselectedsuggestionscommand';import _0x331110 from'./suggestion';import _0x264388 from'./suggestiondescriptionfactory';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import _0x3ad963 from'./integrations/alignment';import _0x1ecf52 from'./integrations/basicstyles';import _0x414fd8 from'./integrations/blockquote';import _0x686753 from'./integrations/codeblock';import _0x355a85 from'./integrations/comments';import _0x210666 from'./integrations/deletecommand';import _0x363ea0 from'./integrations/entercommand';import _0x224752 from'./integrations/exportpdf';import _0x283045 from'./integrations/exportword';import _0xdb0da3 from'./integrations/font';import _0x26ef15 from'./integrations/heading';import _0x44dac1 from'./integrations/highlight';import _0x133c0e from'./integrations/horizontalline';import _0x346695 from'./integrations/image';import _0x21c12c from'./integrations/indent';import tt from'./integrations/inputcommand';import it from'./integrations/link';import st from'./integrations/list';import nt from'./integrations/mediaembed';import et from'./integrations/mention';import ot from'./integrations/pagebreak';import rt from'./integrations/paragraph';import at from'./integrations/removeformat';import ct from'./integrations/restrictededitingmode';import ht from'./integrations/selectall';import ut from'./integrations/shiftentercommand';import ft from'./integrations/standardeditingmode';import gt from'./integrations/table';import lt from'./integrations/tablemergesplit';import dt from'./integrations/tableheadings';import mt from'./integrations/tableclipboard';import pt from'./integrations/title';import kt from'./integrations/undo';import wt from'./utils/hashobject.js';import{toWidget as yt}from'ckeditor5/src/widget';export default class l extends _0x262cf4{static get['requires'](){return[_0x3c013c,_0x206eab,_0x54940c,_0x3ad963,_0x1ecf52,_0x414fd8,_0x686753,_0x355a85,_0x210666,_0x363ea0,_0x224752,_0x283045,_0xdb0da3,_0x26ef15,_0x44dac1,_0x133c0e,_0x346695,_0x21c12c,tt,it,st,nt,et,ot,rt,at,ct,ht,ut,ft,gt,lt,dt,mt,pt,kt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x46a8bb){function _0x5a13f2(_0x3ece83){return _0x3ece83['map'](_0x3a3a71=>String['fromCharCode'](_0x3a3a71))['join']('');}super(_0x46a8bb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f0243,_0xe93c5b,_0x30c279,_0x274e8e)=>{this['_model']['change'](_0x19f481=>{for(const _0x260d89 of[..._0x274e8e,..._0x30c279])this['_model']['markers']['has'](_0x260d89)&&_0x19f481['updateMarker'](_0x260d89);});}),this['_descriptionFactory']=new _0x264388(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new St(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x46a8bb['plugins']['get'](_0x54940c),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x5a13f2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5a13f2([0x34,0x30,0x34,0x32,0x31,0x36,0x30,0x38]);}['init'](){const _0x4da237=this['editor'];_0x4da237['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4be601=>{const {id:_0x33a004,type:_0x14e7ac}=this['_splitMarkerName'](_0x4be601['markerName']),_0x29c631=['ck-suggestion-marker','ck-suggestion-marker-'+_0x14e7ac];let _0x3d238b=0xbb8;return this['activeMarkers']['includes'](_0x4be601['markerName'])&&(_0x29c631['push']('ck-suggestion-marker--active'),_0x3d238b=0xbc2),'deletion'==_0x14e7ac&&(_0x3d238b+=0x5),{'classes':_0x29c631,'attributes':{'data-suggestion':_0x33a004},'priority':_0x3d238b};}}),_0x4da237['conversion']['for']('dataDowncast')['add'](_0x18ea1b=>{_0x18ea1b['on']('addMarker:suggestion',(_0x267327,_0x50df4e,_0x42928f)=>{if(!_0x42928f['options']['showSuggestionHighlights'])return;const _0x327e2a=_0x50df4e['item'];if(!_0x327e2a)return;const _0x40adb7=_0x42928f['mapper']['toViewElement'](_0x327e2a);_0x4da237['model']['schema']['isObject'](_0x327e2a)&&_0x40adb7&&!_0x40adb7['getCustomProperty']('widget')&&_0x40adb7['is']('containerElement')&&yt(_0x40adb7,_0x42928f['writer']);},{'priority':'high'});}),_0x4da237['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x150a8d,_0x24a737)=>{if(!_0x24a737['options']['showSuggestionHighlights'])return null;const {type:_0x197fee}=this['_splitMarkerName'](_0x150a8d['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x197fee],'priority':0xbb8};}});const _0x9b3e77=({showActiveMarkers:_0x150913=!0x0}={})=>(_0x17f0ba,_0x5b5a2f,_0x2b7e95)=>{if(!_0x5b5a2f['item'])return;if(_0x5b5a2f['item']['is']('selection'))return void _0x2b7e95['consumable']['consume'](_0x5b5a2f['item'],_0x17f0ba['name']);const _0x48481e=_0x2b7e95['mapper']['toViewElement'](_0x5b5a2f['item']);if(!(_0x5b5a2f['item']['is']('element')&&_0x4da237['model']['schema']['isBlock'](_0x5b5a2f['item'])&&!_0x48481e['getCustomProperty']('addHighlight')))return;const {id:_0x5d5cf7}=this['_splitMarkerName'](_0x5b5a2f['markerName']);_0x2b7e95['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x48481e),_0x2b7e95['writer']['setAttribute']('data-suggestion',_0x5d5cf7,_0x48481e),_0x2b7e95['mapper']['bindElementToMarker'](_0x48481e,_0x5b5a2f['markerName']),_0x150913&&(this['activeMarkers']['includes'](_0x5b5a2f['markerName'])?_0x2b7e95['writer']['addClass']('ck-suggestion-marker--active',_0x48481e):_0x2b7e95['writer']['removeClass']('ck-suggestion-marker--active',_0x48481e));for(const _0xccb885 of _0x4da237['model']['createRangeIn'](_0x5b5a2f['item'])['getItems']())_0x2b7e95['consumable']['consume'](_0xccb885,_0x17f0ba['name']);_0x2b7e95['consumable']['consume'](_0x5b5a2f['item'],_0x17f0ba['name']);};_0x4da237['conversion']['for']('dataDowncast')['add'](_0x554e0c=>{_0x554e0c['on']('addMarker:suggestion:formatBlock',(_0x3f67b8,_0x43e1f4,_0x38e7e5)=>{_0x38e7e5['options']['showSuggestionHighlights']&&_0x9b3e77({'showActiveMarkers':!0x1})(_0x3f67b8,_0x43e1f4,_0x38e7e5);},{'priority':'highest'});}),_0x4da237['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27b7f3,_0x1f5a78)=>_0x1f5a78['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x27b7f3['substr']('suggestion'['length']+0x1)}}),_0x4da237['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x3c77f7,{writer:_0x4c4b29})=>{let _0x31324e='suggestion:'+_0x3c77f7['getAttribute']('suggestion-type')+':'+_0x3c77f7['getAttribute']('id');return _0x3c77f7['getAttribute']('marker-count')&&(_0x31324e+=':'+_0x3c77f7['getAttribute']('marker-count')),_0x4c4b29['createElement']('$marker',{'data-name':_0x31324e});}}),_0x4da237['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4da237['conversion']['for']('editingDowncast')['add'](_0x16f3e0=>{_0x16f3e0['on']('addMarker:suggestion:formatBlock',_0x9b3e77(),{'priority':'high'});}),_0x4da237['conversion']['for']('editingDowncast')['add'](_0x1345d6=>{_0x1345d6['on']('removeMarker:suggestion:formatBlock',(_0x20f4c3,_0x4f5b61,_0x46c16d)=>{const _0x1ecac8=_0x46c16d['mapper']['markerNameToElements'](_0x4f5b61['markerName']);if(_0x1ecac8)for(const _0x3297f0 of _0x1ecac8)_0x3297f0['getCustomProperty']('addHighlight')||(_0x46c16d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3297f0),_0x46c16d['writer']['removeAttribute']('data-suggestion',_0x3297f0),_0x46c16d['mapper']['unbindElementFromMarkerName'](_0x3297f0,_0x4f5b61['markerName']));},{'priority':'high'});}),_0x4da237['model']['document']['registerPostFixer'](_0x3b16d3=>{let _0x543b4c=!0x1;const _0x13295a=Array['from'](_0x4da237['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b0018,data:_0x35c975}of _0x13295a){const {group:_0x23b986,type:_0x426f12,id:_0x278a0e}=this['_splitMarkerName'](_0x3b0018);if('suggestion'!==_0x23b986)continue;const _0x2364be=this['_suggestions']['get'](_0x278a0e);if(null!=_0x35c975['newRange']){'formatInline'==_0x426f12&&(_0x543b4c=_0x543b4c||vt(_0x35c975['newRange'],_0x3b0018,_0x3b16d3,_0x4da237['model']['schema']));if(_0x35c975['newRange']['isCollapsed']||'$graveyard'==_0x35c975['newRange']['root']['rootName']||'formatBlock'==_0x426f12&&!At(_0x35c975['newRange'])||'deletion'==_0x426f12&&!(!It(_0x3ba2af=_0x35c975['newRange'])&&!function(_0xc466e5){return _0xc466e5['start']['parent']==_0xc466e5['end']['nodeBefore']&&_0xc466e5['start']['isAtEnd'];}(_0x3ba2af)))_0x3b16d3['removeMarker'](_0x3b0018),_0x543b4c=!0x0;else{if(!_0x2364be||!_0x2364be['isInContent'])continue;_0x543b4c=!!this['_joinWithAdjacentSuggestions'](_0x2364be)||_0x543b4c;}}}var _0x3ba2af;return _0x543b4c;}),_0x4da237['model']['document']['registerPostFixer'](_0x2997e6=>{let _0x4f7586=!0x1;for(const _0x5f055c of _0x4da237['model']['document']['differ']['getChanges']()){if('insert'!=_0x5f055c['type'])continue;const _0x54ea50=_0x5f055c['position']['getShiftedBy'](_0x5f055c['length']);if(_0x54ea50['isAtEnd'])for(const _0x4d4e85 of this['_suggestions']['values']()){if(_0x4d4e85['isMultiRange']||!_0x4d4e85['isInContent'])continue;if('formatBlock'!=_0x4d4e85['type'])continue;const _0x13f2b7=_0x4d4e85['getFirstRange']();if(_0x13f2b7['start']['parent']!=_0x13f2b7['end']['parent']&&_0x13f2b7['end']['isEqual'](_0x5f055c['position'])){const _0x3e950d=_0x4da237['model']['createRange'](_0x13f2b7['start'],_0x54ea50);_0x2997e6['updateMarker'](_0x4d4e85['getFirstMarker'](),{'range':_0x3e950d}),_0x4f7586=!0x0;}}}return _0x4f7586;}),_0x4da237['model']['markers']['on']('update:suggestion',(_0x252b6b,_0x5ded75,_0x4f6df1)=>{if(null==_0x4f6df1){const {id:_0x239341}=this['_splitMarkerName'](_0x5ded75['name']),_0x205e9b=this['_suggestions']['get'](_0x239341);_0x205e9b&&_0x205e9b['addMarkerName'](_0x5ded75['name']);}}),_0x4da237['model']['document']['on']('change:data',()=>{const _0xd23e16=Array['from'](_0x4da237['model']['document']['differ']['getChangedMarkers']());_0xd23e16['sort']((_0x52dae1,_0x571b8e)=>{const _0x5c4229=_0x52dae1['data']['oldRange'],_0x5e7f14=_0x571b8e['data']['oldRange'];return null===_0x5c4229&&null===_0x5e7f14?0x0:null===_0x5c4229&&null!==_0x5e7f14?-0x1:null!==_0x5c4229&&null===_0x5e7f14?0x1:_0x5c4229['start']['isBefore'](_0x5e7f14['start'])?-0x1:0x1;});const _0x1b4561=new Set();for(const {name:_0x1cab45,data:_0x951c92}of _0xd23e16){const {group:_0x1a4eaf,id:_0x51f783}=this['_splitMarkerName'](_0x1cab45);if('suggestion'===_0x1a4eaf&&(null===_0x951c92['oldRange']&&this['_handleNewSuggestionMarker'](_0x1cab45),null===_0x951c92['newRange'])){const _0x322f23=this['_suggestions']['get'](_0x51f783);_0x322f23['isInContent']?_0x1b4561['add'](_0x322f23):this['_removeSuggestion'](_0x322f23);}}for(const {name:_0x140c4a,data:_0x273eb1}of _0xd23e16){const {group:_0x4e7cf1,id:_0x36cb15}=this['_splitMarkerName'](_0x140c4a);if('suggestion'!==_0x4e7cf1)continue;const _0x5ba0ae=this['_suggestions']['get'](_0x36cb15);null!=_0x273eb1['newRange']&&null!=_0x273eb1['oldRange']&&(this['_refreshSuggestionsChain'](_0x5ba0ae),_0x1b4561['add'](_0x5ba0ae['head']));}for(const _0xfbe09d of _0x1b4561)this['fire']('suggestionChanged',_0xfbe09d);_0x1b4561['clear']();}),_0x4da237['model']['on']('applyOperation',(_0xd2afc,_0x2d6fba)=>{const _0x58f093=_0x2d6fba[0x0];if(!this['_suggestions']['size'])return;if(!_0x58f093['isDocumentOperation'])return;if('transparent'==_0x58f093['batch']['type'])return;let _0x195f3d,_0x5e115c;switch(_0x58f093['type']){case'insert':_0x195f3d=_0x4da237['model']['createPositionAt'](_0x58f093['position']),_0x5e115c=_0x195f3d['getShiftedBy'](_0x58f093['howMany']);break;case'split':_0x195f3d=_0x4da237['model']['createPositionAt'](_0x58f093['splitPosition']),_0x5e115c=_0x4da237['model']['createPositionAt'](_0x58f093['moveTargetPosition']);break;case'move':_0x195f3d=_0x4da237['model']['createPositionAt'](_0x58f093['targetPosition']),_0x5e115c=_0x195f3d['getShiftedBy'](_0x58f093['howMany']);break;default:return;}const _0x14c3d6=_0x4da237['model']['createRange'](_0x195f3d,_0x5e115c);_0x4da237['model']['change'](()=>{for(const {suggestion:_0x1d9aa7,meta:_0x31ad2b}of this['_findSuggestions'](_0x14c3d6)){if(_0x1d9aa7['isMultiRange'])continue;if('formatInline'==_0x1d9aa7['type'])continue;const _0x288ab7=_0x1d9aa7['data']&&_0x1d9aa7['data']['multipleBlocks'];('formatBlock'!=_0x1d9aa7['type']||'split'==_0x58f093['type']&&!_0x288ab7)&&(_0x31ad2b['containsRangeInObject']||'insertion'==_0x1d9aa7['type']&&_0x31ad2b['isOwn']||_0x1d9aa7['getFirstRange']()['containsRange'](_0x14c3d6)&&this['_breakSuggestionMarker'](_0x1d9aa7,_0x195f3d,_0x5e115c));}});},{'priority':'lowest'}),_0x4da237['model']['on']('deleteContent',(_0x276e03,_0x2c822a)=>{const _0x1277dd=_0x2c822a[0x0],_0x27ad36=_0x2c822a[0x1];if(_0x27ad36&&_0x27ad36['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1277dd['isCollapsed'])return;const _0x40be0f=_0x4da237['model']['schema'],{start:_0x1ceaa2,end:_0x54502b}=_0x1277dd['getFirstRange'](),_0x293433=_0x1ceaa2['nodeAfter']&&_0x40be0f['isObject'](_0x1ceaa2['nodeAfter'])?null:_0x40be0f['getNearestSelectionRange'](_0x1ceaa2,'forward'),_0x3f6912=_0x54502b['nodeBefore']&&_0x40be0f['isObject'](_0x54502b['nodeBefore'])?null:_0x40be0f['getNearestSelectionRange'](_0x54502b,'backward'),_0x4f6b6c=_0x4da237['model']['createRange'](_0x293433?_0x293433['start']:_0x1ceaa2,_0x3f6912?_0x3f6912['end']:_0x54502b);_0x4da237['model']['change'](_0x130d4a=>{this['markDeletion'](_0x4f6b6c);const _0x25ef85=_0x4da237['model']['schema']['getNearestSelectionRange'](_0x4f6b6c['start']);_0x1277dd['is']('documentSelection')?_0x130d4a['setSelection'](_0x25ef85):_0x1277dd['setTo'](_0x25ef85);}),_0x276e03['stop']();},{'priority':_0x818434['normal']+0xa}),_0x4da237['model']['on']('insertContent',(_0x3c0d80,_0x227c72)=>{const _0x369567=_0x227c72[_0x227c72['length']-0x1];_0x369567&&_0x369567['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4da237['model']['change'](()=>{let _0x4dafde=_0x4da237['model']['insertContent'](_0x227c72[0x0],_0x227c72[0x1],_0x227c72[0x2],_0x227c72[0x3],{'forceDefaultExecution':!0x0});if(!_0x4dafde)return;_0x3c0d80['return']=_0x4dafde['clone']();const _0x127aab=_0x4dafde['end']['nodeBefore'],_0x206563=_0x4da237['model']['schema'];_0x127aab&&_0x206563['isBlock'](_0x127aab)&&!_0x206563['isObject'](_0x127aab)&&(_0x4dafde=_0x4da237['model']['createRange'](_0x4dafde['start'],_0x4da237['model']['createPositionAt'](_0x127aab,'end'))),this['markInsertion'](_0x4dafde);}),_0x3c0d80['stop']());},{'priority':'high'}),this['trackChangesCommand']=new _0x2ec714(_0x4da237,this['_enabledCommands']),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36cc03=new _0x48861b(_0x4da237,this['_suggestions']);_0x4da237['commands']['add']('acceptSuggestion',_0x36cc03),this['enableCommand']('acceptSuggestion');const _0x1ae547=new _0x53b4d7(_0x4da237,this['_suggestions']);_0x4da237['commands']['add']('discardSuggestion',_0x1ae547),this['enableCommand']('discardSuggestion'),_0x4da237['commands']['add']('acceptAllSuggestions',new _0x3d6495(_0x4da237,_0x36cc03,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4da237['commands']['add']('discardAllSuggestions',new _0xeea2d6(_0x4da237,_0x1ae547,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4da237['commands']['add']('acceptSelectedSuggestions',new _0x18ce4a(_0x4da237,_0x36cc03,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4da237['commands']['add']('discardSelectedSuggestions',new _0x3db4f2(_0x4da237,_0x1ae547,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x32aafd=_0x4da237['plugins']['get'](_0x54940c);this['listenTo'](_0x32aafd,'addComment',(_0x43544b,{threadId:_0x12c54a})=>{const _0x26fe5=this['_suggestions']['get'](_0x12c54a);_0x26fe5&&_0x26fe5['commentThread']&&0x1===_0x26fe5['commentThread']['length']&&this['_updateSuggestionData'](_0x12c54a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x32aafd,'removeComment',(_0x22afea,{threadId:_0x307fe1})=>{const _0x4beab6=this['_suggestions']['get'](_0x307fe1);_0x4beab6&&_0x4beab6['commentThread']&&!_0x4beab6['commentThread']['length']&&this['_updateSuggestionData'](_0x307fe1,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x290d58){if(this['_adapter'])throw new _0x1fdab6('track-changes-adapter-already-set',this);this['_adapter']=_0x290d58;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x44a500=!0x1,toJSON:_0xd018d7=!0x1}={}){const _0x2558e3=[];for(const _0x19f0e5 of this['_suggestions']['values']())_0x44a500&&!_0x19f0e5['isInContent']||_0x2558e3['push'](_0x19f0e5);return _0xd018d7?_0x2558e3['map'](_0x127205=>_0x127205['toJSON']()):_0x2558e3;}['getSuggestion'](_0x3dd877){const _0x23c1f1=this['_suggestions']['get'](_0x3dd877);if(!_0x23c1f1)throw new _0x1fdab6('track-changes-suggestion-not-found',this);return _0x23c1f1;}['hasSuggestion'](_0x301222){return this['_suggestions']['has'](_0x301222);}['addSuggestionData'](_0x3fe9cb){const {id:_0x4615ea,authorId:_0x584d77}=_0x3fe9cb,[_0x389dd6,_0x307904]=_0x3fe9cb['type']['split'](':'),_0x886e7a=this['_suggestions']['get'](_0x4615ea)||this['_createSuggestion'](_0x389dd6,_0x307904,_0x4615ea,_0x584d77);switch(this['_addThreadToSuggestion'](_0x886e7a),this['_checkSuggestionCorrectness'](_0x886e7a,_0x389dd6,_0x307904||null,_0x584d77),_0x886e7a['createdAt']=_0x3fe9cb['createdAt'],_0x3fe9cb['data']&&(_0x886e7a['data']=_0x3fe9cb['data']),_0x3fe9cb['attributes']&&(_0x886e7a['attributes']=_0x3fe9cb['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x886e7a['_saved']=!0x0),this['_suggestionState']['get'](_0x886e7a)){case'notReady':this['_suggestionState']['set'](_0x886e7a,'dataReady');break;case'markerReady':_0x886e7a['isInContent']?(this['_suggestionState']['set'](_0x886e7a,'ready'),this['fire']('suggestionLoaded',_0x886e7a)):this['_suggestionState']['set'](_0x886e7a,'removed');}return _0x886e7a;}['acceptSuggestion'](_0x43882c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x587a30 of _0x43882c['getAllAdjacentSuggestions']())_0x587a30['accept']();});});}['discardSuggestion'](_0x1bab48){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5a536d of _0x1bab48['getAllAdjacentSuggestions']())_0x5a536d['discard']();});});}['enableCommand'](_0x117329,_0x217f50){const _0x5cb790=this['editor']['commands']['get'](_0x117329);if(!_0x5cb790)throw new _0x1fdab6('track-changes-command-not-found',this,{'commandName':_0x117329});this['_enabledCommands']['add'](_0x5cb790),_0x217f50&&_0x5cb790['on']('execute',(_0x4e5d1e,_0x4c2886)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||_0x4c2886['length']>0x0&&_0x4c2886[_0x4c2886['length']-0x1]&&_0x4c2886[_0x4c2886['length']-0x1]['forceDefaultExecution']||(_0x217f50((..._0x2838e3)=>_0x5cb790['execute'](..._0x2838e3,{'forceDefaultExecution':!0x0}),..._0x4c2886),_0x4e5d1e['stop']()));},{'priority':'high'});}['forceDefaultExecution'](_0x2459b6){let _0x59a215,_0x206d32;const _0x2735f8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x59a215=_0x2459b6();}catch(_0x216c42){_0x206d32=_0x216c42;}return _0x2735f8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x206d32&&_0x1fdab6['rethrowUnexpectedError'](_0x206d32,this),_0x59a215;}['markInsertion'](_0x40848b,_0x183f3d=null,_0x2038de={}){if(_0x40848b['isCollapsed'])return null;const _0x2dd31d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x42fcba,meta:_0x5d43e4}of this['_findSuggestions'](_0x40848b,'insertion'))if(_0x5d43e4['isOwn']){if(!_0x5d43e4['isNextTo'])return _0x42fcba;if(_0x183f3d==_0x42fcba['subType']){const _0xaf4212=_0x42fcba['getFirstRange']();return _0xaf4212['start']['isEqual'](_0x40848b['end'])?this['_setSuggestionRange'](_0x42fcba,this['_model']['createRange'](_0x40848b['start'],_0xaf4212['end'])):this['_setSuggestionRange'](_0x42fcba,this['_model']['createRange'](_0xaf4212['start'],_0x40848b['end'])),_0x42fcba;}}const _0x428231=_0x18ae71(),_0x35454d=_0x2dd31d['id'],_0x2ad6e1=_0x183f3d?'insertion:'+_0x183f3d:'insertion',_0x1e06e5=this['_setSuggestionData']({'id':_0x428231,'type':_0x2ad6e1,'createdAt':new Date(),'authorId':_0x35454d,'attributes':_0x2038de});return this['_addSuggestionMarker'](_0x2ad6e1,_0x428231,_0x35454d,_0x40848b),_0x1e06e5;}['markMultiRangeInsertion'](_0x1b5234,_0xd283ff='multi',_0x1b3d44={}){const _0x46c3de=this['editor']['plugins']['get']('Users')['me'],_0x185abe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd283ff,'join');for(const _0x3b427c of this['getSuggestions']())if(_0x3b427c['author']['id']==_0x46c3de['id']&&'insertion'==_0x3b427c['type']&&_0x3b427c['subType']==_0xd283ff&&(_0x185abe(_0x3b427c['getRanges'](),_0x1b5234)||_0x185abe(_0x1b5234,_0x3b427c['getRanges']()))){for(const _0x54f2e5 of _0x1b5234)_0x3b427c['addRange'](_0x54f2e5);return _0x3b427c;}for(const _0x4110ab of _0x1b5234)for(const {suggestion:_0x3298ad,meta:_0x46bf75}of this['_findSuggestions'](_0x4110ab,'insertion')){if(!_0x46bf75['isOwn'])continue;let _0x5306c7=!0x0;for(const _0x5939b5 of _0x3298ad['getRanges']())for(const _0x305d61 of _0x1b5234)if(!_0x5939b5['containsRange'](_0x305d61)){_0x5306c7=!0x1;break;}if(_0x5306c7)return _0x3298ad;}const _0x1cf036=_0x18ae71(),_0x13eb0f=_0x46c3de['id'],_0x19da76='insertion:'+_0xd283ff,_0x346079=this['_setSuggestionData']({'id':_0x1cf036,'type':_0x19da76,'createdAt':new Date(),'authorId':_0x13eb0f,'attributes':_0x1b3d44});for(const _0xb1dfe0 of _0x1b5234)this['_addSuggestionMarker'](_0x19da76,_0x1cf036,_0x13eb0f,_0xb1dfe0,_0x331110['getMultiRangeId']());return _0x346079;}['markInlineFormat'](_0x4b0caf,_0x350126,_0x384d9d=null,_0x432746={}){if(_0x384d9d=_0x384d9d||Dt(_0x350126),_0x4b0caf['isCollapsed'])return;const _0x52cc53=this['editor']['plugins']['get']('Users')['me'],_0x5ae238=[];for(const {suggestion:_0x1034f5,meta:_0x15c3d9}of this['_findSuggestions'](_0x4b0caf,'insertion'))_0x15c3d9['isOwn']&&!_0x15c3d9['isInsideObject']&&_0x5ae238['push'](..._0x1034f5['getRanges']());const _0x5231d6=function(_0xaec422,_0x304c15){const _0x1f9a70=[];for(const _0x2bbfce of _0x304c15){const _0x18a440=_0xaec422['getIntersection'](_0x2bbfce);_0x18a440&&_0x1f9a70['push'](_0x18a440);}return _0x1f9a70;}(_0x4b0caf,_0x5ae238),_0x5512f9=function(_0x19d04e,_0x40573e){const _0x118c72=[_0x19d04e];for(const _0x23c0cd of _0x40573e){let _0xcfcd92=0x0;for(;_0xcfcd92<_0x118c72['length'];){const _0x4a76bb=_0x118c72[_0xcfcd92]['getDifference'](_0x23c0cd);_0x118c72['splice'](_0xcfcd92,0x1,..._0x4a76bb),_0xcfcd92+=_0x4a76bb['length'];}}return _0x118c72;}(_0x4b0caf,_0x5ae238);_0x5231d6['length']&&this['_model']['change'](()=>{for(const _0x5173eb of _0x5231d6){const _0x5c1191=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x384d9d,'accept');this['forceDefaultExecution'](()=>_0x5c1191([_0x5173eb],_0x350126,_0x432746));}});for(const _0x3bca50 of _0x5512f9){let _0x4a9a91=null,_0x134483=_0x3bca50['start'],_0x523801=_0x3bca50['end'];for(const {suggestion:_0x897433,meta:_0x2c9a16}of this['_findSuggestions'](_0x3bca50,'formatInline')){if(!_0x2c9a16['isOwn'])continue;if(_0x897433['subType']!=_0x384d9d)continue;const _0x1baa1c=_0x897433['getFirstRange']();if(_0x1baa1c['containsRange'](_0x3bca50,!0x0))return;_0x134483=_0x134483['isBefore'](_0x1baa1c['start'])?_0x134483:_0x1baa1c['start'],_0x523801=_0x523801['isAfter'](_0x1baa1c['end'])?_0x523801:_0x1baa1c['end'],_0x4a9a91?_0x1baa1c['start']['isBefore'](_0x4a9a91['getFirstRange']()['start'])?(_0x4a9a91['removeMarkers'](),_0x4a9a91=_0x897433):_0x897433['removeMarkers']():_0x4a9a91=_0x897433;}const _0x267978=this['_model']['createRange'](_0x134483,_0x523801);if(_0x4a9a91)this['_setSuggestionRange'](_0x4a9a91,_0x267978);else{const _0x26eb4d=_0x18ae71(),_0xc2dd78=_0x52cc53['id'];this['_setSuggestionData']({'id':_0x26eb4d,'type':'formatInline:'+_0x384d9d,'data':_0x350126,'createdAt':new Date(),'authorId':_0xc2dd78,'attributes':_0x432746}),this['_addSuggestionMarker']('formatInline:'+_0x384d9d,_0x26eb4d,_0xc2dd78,_0x267978);}}}['markBlockFormat'](_0x2996d1,_0x23bf0e,_0xd52d39=[],_0x3220ac=null,_0x52a8f4={}){_0x23bf0e['formatGroupId']||(_0x23bf0e['formatGroupId']=_0x23bf0e['commandName']),_0x23bf0e['multipleBlocks']=_0x2996d1['is']('range'),_0x3220ac=_0x3220ac||Dt(_0x23bf0e);const _0x12c201=_0xd52d39['map'](_0x3c445c=>_t(_0x3c445c,this['_model'])),_0x35d9b0=_0x2996d1['is']('range')?_0x2996d1:_t(_0x2996d1,this['_model']);_0x12c201['push'](_0x35d9b0);let _0x1d2917=!0x0;for(const _0x4655c9 of _0x12c201)if(!this['_rangeIsInLocalUserInsertion'](_0x4655c9)){_0x1d2917=!0x1;break;}if(_0x1d2917){const _0x50afac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3220ac,'accept');return void this['forceDefaultExecution'](()=>_0x50afac([_0x35d9b0],_0x23bf0e,_0x52a8f4));}let _0x559a16=null,_0x334952=_0x35d9b0['start'],_0x4178e6=_0x35d9b0['end'];for(const {suggestion:_0x33159f,meta:_0x2e1adf}of this['_findSuggestions'](_0x35d9b0,'formatBlock')){if(!_0x2e1adf['isOwn']||_0x2e1adf['isNextTo']||_0x2e1adf['containsRangeInObject']||_0x2e1adf['isInsideObject'])continue;if(_0x33159f['data']['formatGroupId']!=_0x23bf0e['formatGroupId'])continue;const _0x199280=_0x33159f['getFirstRange']();if(_0x33159f['subType']==_0x3220ac){if(_0x199280['containsRange'](_0x35d9b0,!0x0))return;_0x334952=_0x334952['isBefore'](_0x199280['start'])?_0x334952:_0x199280['start'],_0x4178e6=_0x4178e6['isAfter'](_0x199280['end'])?_0x4178e6:_0x199280['end'],_0x559a16?_0x199280['start']['isBefore'](_0x559a16['getFirstRange']()['start'])?(_0x559a16['removeMarkers'](),_0x559a16=_0x33159f):_0x33159f['removeMarkers']():_0x559a16=_0x33159f;}else{const _0x27ba1a=_0x35d9b0['getIntersection'](_0x199280);this['_cutOutSuggestionMarker'](_0x33159f,_0x27ba1a);}}const _0x427ee1=this['editor']['plugins']['get']('Users')['me'],_0x5be6d6=_0x18ae71(),_0x59fa03=_0x427ee1['id'];_0x559a16?this['_setSuggestionRange'](_0x559a16,this['_model']['createRange'](_0x334952,_0x4178e6)):(this['_setSuggestionData']({'id':_0x5be6d6,'type':'formatBlock:'+_0x3220ac,'data':_0x23bf0e,'createdAt':new Date(),'authorId':_0x59fa03,'attributes':_0x52a8f4}),this['_addSuggestionMarker']('formatBlock:'+_0x3220ac,_0x5be6d6,_0x59fa03,this['_model']['createRange'](_0x334952,_0x4178e6)));}['markMultiRangeBlockFormat'](_0x14e428,_0x2b8f83,_0x3406eb=[],_0x15e3af=null,_0x43fc59={}){_0x2b8f83['formatGroupId']||(_0x2b8f83['formatGroupId']=_0x2b8f83['commandName']),_0x2b8f83['multipleBlocks']=!0x1,_0x15e3af=_0x15e3af||Dt(_0x2b8f83);const _0x478dc8=_0x3406eb['map'](_0x1c5d22=>_t(_0x1c5d22,this['_model'])),_0x4da9b0=_0x14e428['map'](_0x3f4bb8=>_t(_0x3f4bb8,this['_model']));_0x478dc8['push'](..._0x4da9b0);let _0x1a2c7b=!0x0;for(const _0x51ec43 of _0x478dc8)if(!this['_rangeIsInLocalUserInsertion'](_0x51ec43)){_0x1a2c7b=!0x1;break;}if(_0x1a2c7b){const _0x515abc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15e3af,'accept');return void this['forceDefaultExecution'](()=>_0x515abc(_0x4da9b0,_0x2b8f83,_0x43fc59));}const _0x5c724c=this['editor']['plugins']['get']('Users')['me'];for(const _0x43cc93 of this['getSuggestions']()){if(_0x43cc93['author']['id']!=_0x5c724c['id'])continue;if('formatBlock'!=_0x43cc93['type']||_0x43cc93['data']['formatGroupId']!=_0x2b8f83['formatGroupId'])continue;const _0x2a5d8e=_0x43cc93['subType']==_0x15e3af;for(let _0x211c4f=0x0;_0x211c4f<_0x4da9b0['length'];_0x211c4f++){const _0x3639bc=_0x4da9b0[_0x211c4f];for(const _0x549879 of _0x43cc93['getMarkers']()){const _0xc79e2a=_0x549879['getRange']();if(_0x3639bc['isEqual'](_0xc79e2a)){_0x2a5d8e?(_0x4da9b0['splice'](_0x211c4f,0x1),_0x211c4f--):_0x43cc93['removeMarker'](_0x549879['name']);break;}}}}if(0x0==_0x4da9b0['length'])return;const _0x258a4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15e3af,'join');for(const _0x253069 of this['getSuggestions']())if(_0x253069['author']['id']==_0x5c724c['id']&&'formatBlock'==_0x253069['type']&&_0x253069['data']['formatGroupId']==_0x2b8f83['formatGroupId']&&_0x253069['subType']==_0x15e3af&&(_0x258a4e(_0x253069['getRanges'](),_0x4da9b0)||_0x258a4e(_0x4da9b0,_0x253069['getRanges']()))){for(const _0x254878 of _0x4da9b0)_0x253069['addRange'](_0x254878);return _0x253069;}const _0x2f7f2f=_0x18ae71(),_0x376f16=_0x5c724c['id'],_0x1cd3c7='formatBlock:'+_0x15e3af,_0x4b726e=this['_setSuggestionData']({'id':_0x2f7f2f,'type':_0x1cd3c7,'data':_0x2b8f83,'createdAt':new Date(),'authorId':_0x376f16,'attributes':_0x43fc59});for(const _0x4c6975 of _0x4da9b0)this['_addSuggestionMarker'](_0x1cd3c7,_0x2f7f2f,_0x376f16,_0x4c6975,_0x331110['getMultiRangeId']());return _0x4b726e;}['markDeletion'](_0x57d643,_0x58cab7=null,_0x5ee0d2={}){if(_0x57d643['isCollapsed'])return null;const _0x5bae95=this['editor']['plugins']['get']('Users')['me'],_0x481650=new _0x20405a(_0x57d643['start'],_0x57d643['end']);for(const {suggestion:_0x573a8a,meta:_0x197103}of this['_findSuggestions'](_0x481650,'insertion'))if(_0x197103['isOwn']&&!_0x197103['isNextTo']){if(_0x573a8a['isMultiRange']){const _0x43bf76=_0x573a8a['getRanges']()['filter'](_0x4bb7e6=>'$graveyard'!=_0x4bb7e6['root']['rootName']);_0x43bf76['every'](_0x196023=>_0x481650['containsRange'](_0x196023,!0x0))&&_0x573a8a['discard']();if(_0x43bf76['some'](_0x51e384=>_0x51e384['containsRange'](_0x481650,!0x0))){const _0x2561fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58cab7,'accept');return this['forceDefaultExecution'](()=>_0x2561fb([_0x481650],null,_0x5ee0d2)),null;}}else{const _0x451b2f=_0x481650['getIntersection'](_0x573a8a['getFirstRange']());_0x573a8a['_onDiscard']([_0x451b2f],null,_0x5ee0d2);}}if(_0x481650['detach'](),_0x481650['isCollapsed']||'$graveyard'==_0x481650['root']['rootName'])return null;let _0x5ceca8=null,_0x3dd708=_0x481650['start'],_0x38fe7c=_0x481650['end'];for(const {suggestion:_0xdb7db3,meta:_0x55f176}of this['_findSuggestions'](_0x481650,'deletion'))if(_0x55f176['isOwn']){if(_0xdb7db3['isMultiRange']){let _0x113758=!0x0;for(const _0x3fce8b of _0xdb7db3['getRanges']()){if(_0x3fce8b['containsRange'](_0x481650,!0x0))return _0xdb7db3;_0x481650['containsRange'](_0x3fce8b)||(_0x113758=!0x1);}_0x113758&&_0xdb7db3['discard']();}else{const _0x2b98cb=_0xdb7db3['getFirstRange']();if(_0x2b98cb['containsRange'](_0x481650,!0x0))return _0xdb7db3;_0x3dd708=_0x3dd708['isBefore'](_0x2b98cb['start'])?_0x3dd708:_0x2b98cb['start'],_0x38fe7c=_0x38fe7c['isAfter'](_0x2b98cb['end'])?_0x38fe7c:_0x2b98cb['end'],_0x5ceca8?_0x2b98cb['start']['isBefore'](_0x5ceca8['getFirstRange']()['start'])?(_0x5ceca8['removeMarkers'](),_0x5ceca8=_0xdb7db3):_0xdb7db3['removeMarkers']():_0x5ceca8=_0xdb7db3;}}if(_0x5ceca8)return this['_setSuggestionRange'](_0x5ceca8,this['_model']['createRange'](_0x3dd708,_0x38fe7c)),_0x5ceca8;{const _0x564c14=_0x18ae71(),_0x38ef31=this['_model']['createRange'](_0x3dd708,_0x38fe7c),_0x5ccffb=_0x5bae95['id'],_0x371308=_0x58cab7?'deletion:'+_0x58cab7:'deletion',_0x3884c0=this['_setSuggestionData']({'id':_0x564c14,'type':_0x371308,'createdAt':new Date(),'authorId':_0x5ccffb,'attributes':_0x5ee0d2});return this['_addSuggestionMarker'](_0x371308,_0x564c14,_0x5ccffb,_0x38ef31),_0x3884c0;}}['markMultiRangeDeletion'](_0x340e79,_0x3e5c10='multi',_0x5f4080={}){const _0x1adf68=this['editor']['plugins']['get']('Users')['me'],_0x5f2076=_0x340e79['map'](_0x5a18f4=>new _0x20405a(_0x5a18f4['start'],_0x5a18f4['end'])),_0x55d9dd=new Set();for(const _0x54ed79 of _0x5f2076)for(const {suggestion:_0x5e2f1e,meta:_0x49b836}of this['_findSuggestions'](_0x54ed79,'insertion'))_0x49b836['isOwn']&&!_0x49b836['isNextTo']&&_0x55d9dd['add'](_0x5e2f1e);for(const _0x1ba3b6 of _0x55d9dd)if(_0x1ba3b6['isMultiRange']){const _0x189dca=_0x1ba3b6['getRanges']();(!_0x1ba3b6['attributes']||!_0x1ba3b6['attributes']['skipNestingCheck'])&&(_0x189dca['every'](_0x336149=>_0x5f2076['some'](_0x5a2321=>_0x5a2321['containsRange'](_0x336149,!0x0)))&&_0x1ba3b6['discard']());if(_0x5f2076['every'](_0x59f19f=>_0x189dca['some'](_0xf982d4=>_0xf982d4['containsRange'](_0x59f19f,!0x0)))){const _0x3f9526=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e5c10,'accept');return this['forceDefaultExecution'](()=>_0x3f9526(_0x340e79,null,_0x5f4080)),null;}}else{const _0x308917=_0x1ba3b6['getFirstRange']();_0x5f2076['some'](_0x3167ec=>_0x3167ec['containsRange'](_0x308917,!0x0))&&_0x1ba3b6['discard']();if(_0x5f2076['every'](_0xbc7c65=>_0x308917['containsRange'](_0xbc7c65,!0x0))){const _0x59bef1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e5c10,'accept');return this['forceDefaultExecution'](()=>_0x59bef1(_0x5f2076,null,_0x5f4080)),null;}}const _0x17501b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e5c10,'join');let _0xff3663=null;for(const _0x38d960 of this['getSuggestions']())if(_0x38d960['author']['id']==_0x1adf68['id']&&_0x38d960['isInContent']&&'deletion'==_0x38d960['type']&&_0x38d960['subType']==_0x3e5c10&&(_0x17501b(_0x38d960['getRanges'](),_0x5f2076)||_0x17501b(_0x5f2076,_0x38d960['getRanges']()))){if(_0xff3663){if(_0x38d960['commentThread']&&_0x38d960['commentThread']['length'])continue;for(const _0x3551e3 of _0x38d960['getRanges']())_0xff3663['isIntersectingWithRange'](_0x3551e3)||_0xff3663['addRange'](_0x3551e3);_0x38d960['removeMarkers']();}else{_0xff3663=_0x38d960;for(const _0x1f0657 of _0x5f2076)_0x38d960['isIntersectingWithRange'](_0x1f0657)||_0x38d960['addRange'](_0x1f0657);}}if(_0xff3663)return _0xff3663;_0x55d9dd['clear']();for(const _0x1d800a of _0x5f2076)for(const {suggestion:_0x2e560a,meta:_0x5c2218}of this['_findSuggestions'](_0x1d800a,'deletion'))_0x5c2218['isOwn']&&_0x55d9dd['add'](_0x2e560a);for(const _0x55d8f3 of _0x55d9dd){const _0x29c297=_0x55d8f3['getRanges']();if(!_0x5f4080||!_0x5f4080['skipNestingCheck']){if(_0x5f2076['every'](_0x4e64b6=>_0x29c297['some'](_0x4f6760=>_0x4f6760['containsRange'](_0x4e64b6,!0x0))))return _0x55d8f3;}(!_0x55d8f3['attributes']||!_0x55d8f3['attributes']['skipNestingCheck'])&&(_0x29c297['every'](_0x44e3ba=>_0x5f2076['some'](_0x257300=>_0x257300['containsRange'](_0x44e3ba,!0x0)))&&_0x55d8f3['discard']());}const _0x446976=_0x18ae71(),_0x887e79=_0x1adf68['id'],_0x29d8a3='deletion:'+_0x3e5c10,_0xf01889=this['_setSuggestionData']({'id':_0x446976,'type':_0x29d8a3,'createdAt':new Date(),'authorId':_0x887e79,'attributes':_0x5f4080});for(const _0x17745a of _0x5f2076)_0x17745a['detach'](),_0x17745a['isCollapsed']||'$graveyard'==_0x17745a['root']['rootName']||this['_addSuggestionMarker'](_0x29d8a3,_0x446976,_0x887e79,_0x17745a,_0x331110['getMultiRangeId']());return _0xf01889;}['_setSuggestionRange'](_0x5148b8,_0x281e1a){const _0x3c713d=_0x5148b8['getFirstMarker']();this['_model']['change'](_0xb713d6=>{_0xb713d6['updateMarker'](_0x3c713d,{'range':_0x281e1a});});}['_addThreadToSuggestion'](_0x5e89da){const _0x297d94=_0x5e89da['id'],_0x17f998=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x297d94)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17f998,'threadId':_0x297d94});const _0x582058=this['_commentsRepository']['getCommentThread'](_0x297d94);_0x582058['unbind']('isRemovable'),_0x582058['isRemovable']=!0x1,_0x5e89da['commentThread']=_0x582058;}['_checkSuggestionCorrectness'](_0x4c5bae,_0x18a99c,_0x3f0186,_0xba4647){if(_0x4c5bae['type']!=_0x18a99c||_0x4c5bae['subType']!=_0x3f0186||_0x4c5bae['author']['id']!=_0xba4647)throw this['editor']['isReadOnly']=!0x0,new _0x1fdab6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x52385b,_0x3c737d){const _0x42dd21=_0x52385b['getFirstRange']();if(_0x3c737d['isEqual'](_0x42dd21))_0x52385b['removeMarkers']();else{if(_0x42dd21['containsRange'](_0x3c737d)){const _0x46df86=this['_model']['createPositionAt'](_0x3c737d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x52385b,this['_model']['createRange'](_0x42dd21['start'],_0x46df86));const _0x4df828=_0x18ae71(),_0x3da9dd=_0x52385b['author']['id'],_0x3aced3=_0x52385b['type']+':'+_0x52385b['subType'];this['_setSuggestionData']({'id':_0x4df828,'type':_0x3aced3,'createdAt':new Date(),'authorId':_0x3da9dd,'data':_0x52385b['data'],'attributes':_0x52385b['attributes']});const _0x363ff6=this['_model']['createPositionAt'](_0x3c737d['end']['parent'],'after'),_0xe7fc45=this['_model']['createRange'](_0x363ff6,_0x42dd21['end']);this['_addSuggestionMarker'](_0x3aced3,_0x4df828,_0x3da9dd,_0xe7fc45);}else{if(_0x42dd21['containsPosition'](_0x3c737d['start'])){const _0x219db8=this['_model']['createPositionAt'](_0x3c737d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x52385b,this['_model']['createRange'](_0x42dd21['start'],_0x219db8));}else{const _0x85d9c8=this['_model']['createPositionAt'](_0x3c737d['end']['parent'],'after');this['_setSuggestionRange'](_0x52385b,this['_model']['createRange'](_0x85d9c8,_0x42dd21['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2efb53){for(const {suggestion:_0x5c1df2,meta:_0x1780bb}of this['_findSuggestions'](_0x2efb53,'insertion')){if(!_0x1780bb['isOwn'])continue;const _0x372917=_0x5c1df2['getRanges']();for(const _0x19784f of _0x372917)if(!_0x2efb53['getDifference'](_0x19784f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x31bff5){const _0x7b2c93=this['editor']['plugins']['get']('Users')['getUser'](_0x31bff5);if(!_0x7b2c93)throw new _0x1fdab6('track-changes-user-not-found',this);return _0x7b2c93;}['_createSuggestion'](_0x32c4ff,_0x4e6403,_0x3e97d0,_0x3ac878){const _0x708eb6=this['_getAuthorFromId'](_0x3ac878),_0x27b760=this['_suggestionFactory']['buildSuggestion'](_0x32c4ff,_0x4e6403,_0x3e97d0,_0x708eb6,_0x43cea6=>this['_updateSuggestionData'](_0x3e97d0,{'attributes':_0x43cea6}));return this['listenTo'](_0x27b760,'accept',()=>{this['_updateSuggestionData'](_0x3e97d0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27b760,'discard',()=>{this['_updateSuggestionData'](_0x3e97d0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e97d0,_0x27b760),this['_suggestionState']['set'](_0x27b760,'notReady'),_0x27b760;}['_splitMarkerName'](_0x5d1150){const _0x518b04=_0x5d1150['split'](':');return{'group':_0x518b04[0x0],'type':_0x518b04[0x1],'subType':_0x518b04['length']>=0x5?_0x518b04[0x2]:null,'id':_0x518b04['length']<0x5?_0x518b04[0x2]:_0x518b04[0x3],'authorId':_0x518b04['length']<0x5?_0x518b04[0x3]:_0x518b04[0x4],'markerCount':0x6==_0x518b04['length']?_0x518b04[0x5]:null};}['_breakSuggestionMarker'](_0x485cf7,_0x5a4e10,_0x32ac9d){const _0x595125=_0x485cf7['getFirstRange'](),_0x304b25=_0x595125['start'],_0x526b39=_0x595125['end'];this['_setSuggestionRange'](_0x485cf7,this['_model']['createRange'](_0x304b25,_0x5a4e10));const _0x52b6ea=_0x18ae71(),_0x3abeae=_0x485cf7['author']['id'],_0xa1c2dd=_0x485cf7['type']+(_0x485cf7['subType']?':'+_0x485cf7['subType']:'');this['_setSuggestionData']({'id':_0x52b6ea,'type':_0xa1c2dd,'createdAt':new Date(),'authorId':_0x3abeae,'originalSuggestionId':_0x485cf7['id'],'data':_0x485cf7['data']}),'formatBlock'==_0x485cf7['type']&&(_0x32ac9d=this['_model']['createPositionBefore'](_0x32ac9d['parent'])),this['_addSuggestionMarker'](_0xa1c2dd,_0x52b6ea,_0x3abeae,this['_model']['createRange'](_0x32ac9d,_0x526b39));}['_findSuggestions'](_0x958f2e,_0x2f7d8d=null){const _0x397e77=[],_0xbb09de=this['_model']['schema'],_0x4971ba=this['editor']['plugins']['get']('Users')['me'];for(const _0x92a287 of this['getSuggestions']())if(_0x92a287['isInContent']&&(!_0x2f7d8d||_0x92a287['type']==_0x2f7d8d))for(const _0x467b52 of _0x92a287['getRanges']()){const _0x4eca43=_0x958f2e['start']['isEqual'](_0x467b52['end'])||_0x958f2e['end']['isEqual'](_0x467b52['start']);if(_0x4eca43||_0x958f2e['getIntersection'](_0x467b52)){const _0x3aa160=_0x958f2e['containsRange'](_0x467b52)&&bt(_0xbb09de,_0x467b52['start'],_0x958f2e),_0x2eac6c=_0x467b52['containsRange'](_0x958f2e)&&bt(_0xbb09de,_0x958f2e['start'],_0x467b52);_0x397e77['push']({'suggestion':_0x92a287,'meta':{'isOwn':_0x4971ba==_0x92a287['author'],'isNextTo':_0x4eca43,'isInsideObject':_0x3aa160,'containsRangeInObject':_0x2eac6c}});break;}}return _0x397e77;}['_addSuggestionMarker'](_0x26b502,_0x382444,_0x5066da,_0x560cfc,_0x576c32=null){this['_model']['change'](_0x5df87e=>{let _0x5c843a='suggestion:'+_0x26b502+':'+_0x382444+':'+_0x5066da;_0x576c32&&(_0x5c843a=_0x5c843a+':'+_0x576c32),_0x5df87e['addMarker'](_0x5c843a,{'range':_0x560cfc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x338774){const _0x1ecadd=_0x338774['previous'],_0x39c9f0=_0x338774['next'];_0x338774['previous']=null,null!=_0x1ecadd&&(_0x1ecadd['next']=null),_0x338774['next']=null,null!=_0x39c9f0&&(_0x39c9f0['previous']=null),'ready'==this['_suggestionState']['get'](_0x338774)&&(this['_suggestionState']['set'](_0x338774,'removed'),this['fire']('suggestionUnloaded',_0x338774,_0x1ecadd,_0x39c9f0));}['_setSuggestionData'](_0x5472d9){const _0x4cb5f7=_0x5472d9['id'],_0xe8455=this['addSuggestionData'](_0x5472d9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3c1b20=this['editor']['plugins']['get']('PendingActions'),_0x152f24=_0xe8455['hasComments'],_0x462565=_0xe8455['subType']?_0xe8455['type']+':'+_0xe8455['subType']:_0xe8455['type'],t=this['editor']['locale']['t'],_0x586c32=_0x3c1b20['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'})),_0x46576e={'id':_0x4cb5f7,'type':_0x462565,'hasComments':_0x152f24,'data':_0x5472d9['data']||null,'originalSuggestionId':_0x5472d9['originalSuggestionId']||null,'attributes':_0xe8455['attributes']};this['_adapter']['addSuggestion'](_0x46576e)['then'](_0x4486c6=>{_0xe8455['_saved']=!0x0,_0x3c1b20['remove'](_0x586c32),_0x4486c6&&_0x4486c6['createdAt']&&(this['_suggestions']['get'](_0x4cb5f7)['createdAt']=_0x4486c6['createdAt']);});}return _0xe8455;}['_updateSuggestionData'](_0x5d7966,_0x540d25){const _0x48636c=this['editor']['plugins']['get']('PendingActions'),_0x5015e2=this['_suggestions']['get'](_0x5d7966);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5015e2['_saved']){const t=this['editor']['locale']['t'],_0x1788d5=_0x48636c['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));this['_adapter']['updateSuggestion'](_0x5d7966,_0x540d25)['then'](()=>{_0x48636c['remove'](_0x1788d5);});}else _0x5015e2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d7966,_0x540d25);});}}['_getSuggestionData'](_0x2e7691){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1fdab6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e7691);}['_handleNewSuggestionMarker'](_0x16a08a){const {id:_0x438ace,type:_0x561748,subType:_0x148610,authorId:_0x4a7e42}=this['_splitMarkerName'](_0x16a08a),_0x12222f=this['_suggestions']['get'](_0x438ace)||this['_createSuggestion'](_0x561748,_0x148610,_0x438ace,_0x4a7e42);switch(this['_checkSuggestionCorrectness'](_0x12222f,_0x561748,_0x148610,_0x4a7e42),this['_suggestionState']['get'](_0x12222f)){case'notReady':this['_getSuggestionData'](_0x438ace)['then'](_0x10f839=>{let _0xb92287=Promise['resolve']();_0x10f839['hasComments']&&(_0xb92287=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x438ace})),_0xb92287['then'](()=>{this['addSuggestionData'](_0x10f839)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x12222f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x438ace,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x12222f,'ready'),this['fire']('suggestionLoaded',_0x12222f);break;case'ready':this['fire']('suggestionChanged',_0x12222f);}_0x12222f['addMarkerName'](_0x16a08a),this['_refreshSuggestionsChain'](_0x12222f);}['_refreshSuggestionsChain'](_0x193f17){if(_0x193f17['isMultiRange'])return;let _0x44881a=!0x0,_0x33dffd=!0x0;for(const _0x286104 of this['getSuggestions']()){if(_0x286104['isMultiRange'])continue;if(_0x286104==_0x193f17||!_0x286104['isInContent'])continue;if(_0x286104['author']['id']!=_0x193f17['author']['id'])continue;const _0x4756fc=this['_suggestionFactory']['getSuggestionCallback'](_0x193f17['type'],_0x193f17['subType'],'chain'),_0x5bd6f2=this['_suggestionFactory']['getSuggestionCallback'](_0x286104['type'],_0x286104['subType'],'chain'),_0x694508=_0x4756fc(_0x193f17,_0x286104),_0x2876b7=_0x5bd6f2(_0x193f17,_0x286104);_0x694508&&_0x2876b7&&(_0x694508[0x1]['commentThread']&&_0x694508[0x1]['commentThread']['length']||(_0x694508[0x0]['next']=_0x694508[0x1],_0x694508[0x1]['previous']=_0x694508[0x0],_0x694508[0x0]==_0x193f17?_0x33dffd=!0x1:_0x44881a=!0x1));}_0x193f17['previous']&&_0x44881a&&(_0x193f17['previous']['next']=null,_0x193f17['previous']=null),_0x193f17['next']&&_0x33dffd&&(_0x193f17['next']['previous']=null,_0x193f17['next']=null);}['_joinWithAdjacentSuggestions'](_0x3d7f72){for(const _0x8a5acc of this['_suggestions']['values']()){if(_0x8a5acc==_0x3d7f72||!_0x8a5acc['isInContent'])continue;if(_0x8a5acc['type']!=_0x3d7f72['type']||_0x8a5acc['author']['id']!=_0x3d7f72['author']['id']||_0x8a5acc['subType']!=_0x3d7f72['subType'])continue;const _0x1a3334=this['_suggestionFactory']['getSuggestionCallback'](_0x3d7f72['type'],_0x3d7f72['subType'],'join');if(_0x1a3334(_0x8a5acc['getRanges'](),_0x3d7f72['getRanges']())){if(_0x3d7f72['commentThread']&&_0x3d7f72['commentThread']['length'])continue;return this['_joinSuggestions'](_0x8a5acc,_0x3d7f72),!0x0;}if(_0x1a3334(_0x3d7f72['getRanges'](),_0x8a5acc['getRanges']())){if(_0x8a5acc['commentThread']&&_0x8a5acc['commentThread']['length'])continue;return this['_joinSuggestions'](_0x3d7f72,_0x8a5acc),!0x0;}}return!0x1;}['_joinSuggestions'](_0x2fd3fe,_0x274fa9){if(_0x2fd3fe['isMultiRange'])for(const _0x1eca05 of _0x274fa9['getRanges']())_0x2fd3fe['addRange'](_0x1eca05);else{const _0x2777cf=_0x274fa9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2fd3fe,this['_model']['createRange'](_0x2fd3fe['getFirstRange']()['start'],_0x2777cf));}_0x274fa9['removeMarkers']();}}_0x579d99(l,_0x10893d);class St{constructor(_0x2aeda1){this['_editor']=_0x2aeda1,this['_model']=_0x2aeda1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1328cd,_0x4eeaf4,_0x27f6bd,_0x3b2f8c,_0x3bede9){return new _0x331110(this['_model'],{'type':_0x1328cd,'subType':_0x4eeaf4,'id':_0x27f6bd,'author':_0x3b2f8c,'onAttributesChange':_0x3bede9,'onAccept':(..._0xb955e9)=>this['getSuggestionCallback'](_0x1328cd,_0x4eeaf4,'accept')(..._0xb955e9),'onDiscard':(..._0x4d6d24)=>this['getSuggestionCallback'](_0x1328cd,_0x4eeaf4,'discard')(..._0x4d6d24)});}['registerCustomCallback'](_0x44e4a7,_0x1bb436,_0x561dc9,_0x315818){const _0x1491ea=_0x44e4a7+':'+_0x1bb436+':'+_0x561dc9;this['_customCallbacks']['set'](_0x1491ea,_0x315818);}['getSuggestionCallback'](_0x5ac479,_0x115e65,_0x27ce79){const _0x130df9=_0x5ac479+':'+_0x115e65+':'+_0x27ce79;return this['_customCallbacks']['get'](_0x130df9)||this['_defaultCallbacks']['get'](_0x5ac479+':'+_0x27ce79);}['_registerDefaultCallbacks'](){const _0x127d5b=()=>{},_0x4dfc83=_0x3ab870=>{_0x3ab870['sort']((_0x3c6912,_0x5f2607)=>_0x3c6912['start']['isBefore'](_0x5f2607['start'])?0x1:-0x1),this['_model']['change'](_0x4e0c32=>{for(const _0x25a784 of _0x3ab870){let _0x1f3827;_0x1f3827=_0x25a784['end']['isAtEnd']&&_0x25a784['end']['parent']==_0x25a784['start']['nodeAfter']?_0x4e0c32['createSelection'](_0x25a784['start']['nodeAfter'],'on'):_0x4e0c32['createSelection'](_0x25a784),this['_model']['deleteContent'](_0x1f3827,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x171400=(_0x20b70f,_0x1e150e)=>{this['_model']['change'](_0x9a01e9=>{const {commandName:_0x102405,commandParams:_0x1c7c7e=[]}=_0x1e150e,_0x11fddc=_0x20b70f[0x0];if('$graveyard'==_0x11fddc['root']['rootName'])return;const _0x38d36e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4a7509=>_0x20405a['fromRange'](_0x4a7509));It(_0x11fddc)?_0x9a01e9['setSelection'](this['_model']['createRange'](_0x11fddc['end'])):_0x9a01e9['setSelection'](_0x11fddc);for(const _0x2c5bb1 of this['_editor']['commands']['commands']())_0x2c5bb1['refresh']();_0x1c7c7e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x102405,..._0x1c7c7e);const _0x3fe34a=_0x38d36e['filter'](_0x4178de=>'$graveyard'!=_0x4178de['root']['rootName']);_0x3fe34a['length']>0x0&&_0x9a01e9['setSelection'](_0x3fe34a);for(const _0x33f908 of _0x38d36e)_0x33f908['detach']();});},_0x18e811=(_0x3e0dcc,_0x3f00fe)=>0x1==_0x3e0dcc['length']&&0x1==_0x3f00fe['length']&&_0x3e0dcc[0x0]['end']['isEqual'](_0x3f00fe[0x0]['start']),_0x4d34cb=(_0x2c885c,_0x16ad06)=>Bt(_0x2c885c,_0x16ad06,this['_model'])?[_0x2c885c,_0x16ad06]:Bt(_0x16ad06,_0x2c885c,this['_model'])?[_0x16ad06,_0x2c885c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x127d5b),this['_defaultCallbacks']['set']('insertion:discard',_0x4dfc83),this['_defaultCallbacks']['set']('insertion:join',_0x18e811),this['_defaultCallbacks']['set']('insertion:chain',_0x4d34cb),this['_defaultCallbacks']['set']('deletion:accept',_0x4dfc83),this['_defaultCallbacks']['set']('deletion:discard',_0x127d5b),this['_defaultCallbacks']['set']('deletion:join',_0x18e811),this['_defaultCallbacks']['set']('deletion:chain',_0x4d34cb),this['_defaultCallbacks']['set']('formatInline:accept',_0x171400),this['_defaultCallbacks']['set']('formatInline:discard',_0x127d5b),this['_defaultCallbacks']['set']('formatInline:join',_0x18e811),this['_defaultCallbacks']['set']('formatInline:chain',_0x127d5b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x171400),this['_defaultCallbacks']['set']('formatBlock:discard',_0x127d5b),this['_defaultCallbacks']['set']('formatBlock:join',_0x18e811),this['_defaultCallbacks']['set']('formatBlock:chain',_0x127d5b);}}function bt(_0x32a01e,_0x276e66,_0x484604){for(const _0x3d669f of _0x276e66['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3d669f['root']==_0x3d669f)return!0x1;if(!_0x484604['containsItem'](_0x3d669f))return!0x1;if(_0x32a01e['isObject'](_0x3d669f)||_0x32a01e['isLimit'](_0x3d669f))return!0x0;}}function It(_0x48b42c){return _0x48b42c['end']['parent']==_0x48b42c['start']['nodeAfter']&&_0x48b42c['end']['isAtStart'];}function vt(_0x184c89,_0x1fcf92,_0x125a20,_0x242d54){const _0x3fb908=_0x3c2db3=>!_0x3c2db3['item']['is']('textProxy')&&!_0x242d54['isObject'](_0x3c2db3['item']),_0x589167=_0x184c89['start']['getLastMatchingPosition'](_0x3fb908),_0x2f11c7=_0x184c89['end']['getLastMatchingPosition'](_0x3fb908,{'direction':'backward'});return(!_0x184c89['start']['isEqual'](_0x589167)||!_0x184c89['end']['isEqual'](_0x2f11c7))&&(_0x589167['isBefore'](_0x2f11c7)?_0x125a20['updateMarker'](_0x1fcf92,{'range':_0x125a20['createRange'](_0x589167,_0x2f11c7)}):_0x125a20['removeMarker'](_0x1fcf92),!0x0);}function Dt(_0x293209){return wt(_0x293209);}function At(_0x54cc8f){const _0x1c9be7=_0x54cc8f['start']['nodeAfter'];return _0x1c9be7&&_0x1c9be7['is']('element');}function _t(_0x4da268,_0x591653){const _0x2696a0=_0x591653['schema']['isObject'](_0x4da268)||_0x591653['schema']['isSelectable'](_0x4da268);return _0x591653['createRange'](_0x591653['createPositionAt'](_0x4da268,'before'),_0x2696a0?_0x591653['createPositionAfter'](_0x4da268):_0x591653['createPositionAt'](_0x4da268,'end'));}function Bt(_0x1c8199,_0x401473,_0x33c420){const _0x391def=_0x1c8199['getFirstRange'](),_0x573d48=_0x401473['getFirstRange']();if(_0x391def['end']['isEqual'](_0x573d48['start']))return!0x0;if(_0x1c8199['type']!=_0x401473['type'])return!0x1;if(!_0x391def['end']['isTouching'](_0x573d48['start']))return!0x1;const _0x279cd4=_0x33c420['createRange'](_0x391def['end'],_0x573d48['start'])['getWalker']();for(const _0x46ab96 of _0x279cd4)if(['elementStart','elementEnd']['includes'](_0x46ab96['type'])&&_0x33c420['schema']['isLimit'](_0x46ab96['item']))return!0x1;return!0x0;}
23
+ import{Plugin as _0x279550,PendingActions as _0x4d14bf}from'ckeditor5/src/core';import _0xc43de from'@ckeditor/ckeditor5-collaboration-core/src/users';import{LiveRange as _0x1b3715}from'ckeditor5/src/engine';import{CKEditorError as _0x44c973,uid as _0x3b1025,priorities as _0x3acfcb,EmitterMixin as _0x3d6fbb,mix as _0x2e9c45}from'ckeditor5/src/utils';import _0x144b4c from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import _0x4d7753 from'./commands/trackchangescommand';import _0x59bf4d from'./commands/acceptsuggestioncommand';import _0x4ff08b from'./commands/discardsuggestioncommand';import _0x2bb79a from'./commands/acceptallsuggestionscommand';import _0xf8ea7f from'./commands/acceptselectedsuggestionscommand';import _0xfdc890 from'./commands/discardallsuggestionscommand';import _0x2d6ce7 from'./commands/discardselectedsuggestionscommand';import _0x2f7912 from'./suggestion';import _0x51a516 from'./suggestiondescriptionfactory';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import _0x3b3f29 from'./integrations/alignment';import _0x34dc54 from'./integrations/basicstyles';import _0x4dd0a8 from'./integrations/blockquote';import _0x57bca1 from'./integrations/codeblock';import _0xd931b9 from'./integrations/comments';import _0x2d7637 from'./integrations/deletecommand';import _0x22f9fb from'./integrations/entercommand';import _0x5859e9 from'./integrations/font';import _0x33c466 from'./integrations/heading';import _0x2ef255 from'./integrations/highlight';import _0x5d1b81 from'./integrations/horizontalline';import _0x3ad48b from'./integrations/image';import _0x1d85d9 from'./integrations/indent';import _0xdcf1af from'./integrations/inputcommand';import _0x53d05d from'./integrations/link';import tt from'./integrations/list';import it from'./integrations/mediaembed';import st from'./integrations/mention';import nt from'./integrations/pagebreak';import et from'./integrations/paragraph';import ot from'./integrations/removeformat';import rt from'./integrations/restrictededitingmode';import at from'./integrations/shiftentercommand';import ct from'./integrations/standardeditingmode';import ht from'./integrations/table';import ut from'./integrations/tablemergesplit';import ft from'./integrations/tableheadings';import gt from'./integrations/tableclipboard';import lt from'./integrations/title';import dt from'./integrations/undo';import mt from'./utils/hashobject.js';import{toWidget as pt}from'ckeditor5/src/widget';export default class l extends _0x279550{static get['requires'](){return[_0xc43de,_0x4d14bf,_0x144b4c,_0x3b3f29,_0x34dc54,_0x4dd0a8,_0x57bca1,_0xd931b9,_0x2d7637,_0x22f9fb,_0x5859e9,_0x33c466,_0x2ef255,_0x5d1b81,_0x3ad48b,_0x1d85d9,_0xdcf1af,_0x53d05d,tt,it,st,nt,et,ot,rt,at,ct,ht,ut,ft,gt,lt,dt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5652b0){function _0x27d909(_0x2d48b7){return _0x2d48b7['map'](_0x39c505=>String['fromCharCode'](_0x39c505))['join']('');}super(_0x5652b0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1f4a1d,_0x118c3e,_0x5c0424,_0x28576f)=>{this['_model']['change'](_0x495d75=>{for(const _0x5c844f of[..._0x28576f,..._0x5c0424])this['_model']['markers']['has'](_0x5c844f)&&_0x495d75['updateMarker'](_0x5c844f);});}),this['_descriptionFactory']=new _0x51a516(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5652b0['plugins']['get'](_0x144b4c),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x27d909([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x27d909([0x34,0x30,0x34,0x32,0x32,0x34,0x31,0x34]);}['init'](){const _0xa2f10b=this['editor'];_0xa2f10b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x7e0fe2=>{const {id:_0x25544a,type:_0x48f861}=this['_splitMarkerName'](_0x7e0fe2['markerName']),_0x40aac9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x48f861];let _0x42ac56=0xbb8;return this['activeMarkers']['includes'](_0x7e0fe2['markerName'])&&(_0x40aac9['push']('ck-suggestion-marker--active'),_0x42ac56=0xbc2),'deletion'==_0x48f861&&(_0x42ac56+=0x5),{'classes':_0x40aac9,'attributes':{'data-suggestion':_0x25544a},'priority':_0x42ac56};}}),_0xa2f10b['conversion']['for']('dataDowncast')['add'](_0x44a60f=>{_0x44a60f['on']('addMarker:suggestion',(_0x7b07e2,_0x307184,_0x53543b)=>{if(!_0x53543b['options']['showSuggestionHighlights'])return;const _0x408e9f=_0x307184['item'];if(!_0x408e9f)return;const _0x324ffc=_0x53543b['mapper']['toViewElement'](_0x408e9f);_0xa2f10b['model']['schema']['isObject'](_0x408e9f)&&_0x324ffc&&!_0x324ffc['getCustomProperty']('widget')&&_0x324ffc['is']('containerElement')&&pt(_0x324ffc,_0x53543b['writer']);},{'priority':'high'});}),_0xa2f10b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x21fbd9,_0x252c2e)=>{if(!_0x252c2e['options']['showSuggestionHighlights'])return null;const {type:_0xb5c043}=this['_splitMarkerName'](_0x21fbd9['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0xb5c043],'priority':0xbb8};}});const _0x222c29=({showActiveMarkers:_0x2492df=!0x0}={})=>(_0x17fa41,_0x5736a8,_0x193d3e)=>{if(!_0x5736a8['item'])return;if(_0x5736a8['item']['is']('selection'))return void _0x193d3e['consumable']['consume'](_0x5736a8['item'],_0x17fa41['name']);const _0x1d2d2b=_0x193d3e['mapper']['toViewElement'](_0x5736a8['item']);if(!(_0x5736a8['item']['is']('element')&&_0xa2f10b['model']['schema']['isBlock'](_0x5736a8['item'])&&!_0x1d2d2b['getCustomProperty']('addHighlight')))return;const {id:_0x2020de}=this['_splitMarkerName'](_0x5736a8['markerName']);_0x193d3e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1d2d2b),_0x193d3e['writer']['setAttribute']('data-suggestion',_0x2020de,_0x1d2d2b),_0x193d3e['mapper']['bindElementToMarker'](_0x1d2d2b,_0x5736a8['markerName']),_0x2492df&&(this['activeMarkers']['includes'](_0x5736a8['markerName'])?_0x193d3e['writer']['addClass']('ck-suggestion-marker--active',_0x1d2d2b):_0x193d3e['writer']['removeClass']('ck-suggestion-marker--active',_0x1d2d2b));for(const _0x58ade1 of _0xa2f10b['model']['createRangeIn'](_0x5736a8['item'])['getItems']())_0x193d3e['consumable']['consume'](_0x58ade1,_0x17fa41['name']);_0x193d3e['consumable']['consume'](_0x5736a8['item'],_0x17fa41['name']);};_0xa2f10b['conversion']['for']('dataDowncast')['add'](_0x224521=>{_0x224521['on']('addMarker:suggestion:formatBlock',(_0x3d9d47,_0x370fbd,_0x853bcd)=>{_0x853bcd['options']['showSuggestionHighlights']&&_0x222c29({'showActiveMarkers':!0x1})(_0x3d9d47,_0x370fbd,_0x853bcd);},{'priority':'highest'});}),_0xa2f10b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x33edb9,_0x133ae1)=>_0x133ae1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33edb9['substr']('suggestion'['length']+0x1)}}),_0xa2f10b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x5c76fb,{writer:_0x53234a})=>{let _0x1337cf='suggestion:'+_0x5c76fb['getAttribute']('suggestion-type')+':'+_0x5c76fb['getAttribute']('id');return _0x5c76fb['getAttribute']('marker-count')&&(_0x1337cf+=':'+_0x5c76fb['getAttribute']('marker-count')),_0x53234a['createElement']('$marker',{'data-name':_0x1337cf});}}),_0xa2f10b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa2f10b['conversion']['for']('editingDowncast')['add'](_0x2c9ad4=>{_0x2c9ad4['on']('addMarker:suggestion:formatBlock',_0x222c29(),{'priority':'high'});}),_0xa2f10b['conversion']['for']('editingDowncast')['add'](_0x5f0591=>{_0x5f0591['on']('removeMarker:suggestion:formatBlock',(_0x51a5bc,_0x2f05b7,_0x596584)=>{const _0x3db16e=_0x596584['mapper']['markerNameToElements'](_0x2f05b7['markerName']);if(_0x3db16e)for(const _0x45eb3f of _0x3db16e)_0x45eb3f['getCustomProperty']('addHighlight')||(_0x596584['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45eb3f),_0x596584['writer']['removeAttribute']('data-suggestion',_0x45eb3f),_0x596584['mapper']['unbindElementFromMarkerName'](_0x45eb3f,_0x2f05b7['markerName']));},{'priority':'high'});}),_0xa2f10b['model']['document']['registerPostFixer'](_0x5af299=>{let _0x24c818=!0x1;const _0x5ba9a9=Array['from'](_0xa2f10b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x208652,data:_0x4216eb}of _0x5ba9a9){const {group:_0x4418f8,type:_0x2df1a6,id:_0x28df0e}=this['_splitMarkerName'](_0x208652);if('suggestion'!==_0x4418f8)continue;const _0x2fdfb8=this['_suggestions']['get'](_0x28df0e);if(null!=_0x4216eb['newRange']){'formatInline'==_0x2df1a6&&(_0x24c818=_0x24c818||St(_0x4216eb['newRange'],_0x208652,_0x5af299,_0xa2f10b['model']['schema']));if(_0x4216eb['newRange']['isCollapsed']||'$graveyard'==_0x4216eb['newRange']['root']['rootName']||'formatBlock'==_0x2df1a6&&!It(_0x4216eb['newRange'])||'deletion'==_0x2df1a6&&!(!yt(_0x27d764=_0x4216eb['newRange'])&&!function(_0xd9093e){return _0xd9093e['start']['parent']==_0xd9093e['end']['nodeBefore']&&_0xd9093e['start']['isAtEnd'];}(_0x27d764)))_0x5af299['removeMarker'](_0x208652),_0x24c818=!0x0;else{if(!_0x2fdfb8||!_0x2fdfb8['isInContent'])continue;_0x24c818=!!this['_joinWithAdjacentSuggestions'](_0x2fdfb8)||_0x24c818;}}}var _0x27d764;return _0x24c818;}),_0xa2f10b['model']['document']['registerPostFixer'](_0x27af98=>{let _0x4b7e75=!0x1;for(const _0x1f4818 of _0xa2f10b['model']['document']['differ']['getChanges']()){if('insert'!=_0x1f4818['type'])continue;const _0x523b72=_0x1f4818['position']['getShiftedBy'](_0x1f4818['length']);if(_0x523b72['isAtEnd'])for(const _0x5bde73 of this['_suggestions']['values']()){if(_0x5bde73['isMultiRange']||!_0x5bde73['isInContent'])continue;if('formatBlock'!=_0x5bde73['type'])continue;const _0x25cd41=_0x5bde73['getFirstRange']();if(_0x25cd41['start']['parent']!=_0x25cd41['end']['parent']&&_0x25cd41['end']['isEqual'](_0x1f4818['position'])){const _0x1ee3ae=_0xa2f10b['model']['createRange'](_0x25cd41['start'],_0x523b72);_0x27af98['updateMarker'](_0x5bde73['getFirstMarker'](),{'range':_0x1ee3ae}),_0x4b7e75=!0x0;}}}return _0x4b7e75;}),_0xa2f10b['model']['markers']['on']('update:suggestion',(_0x285f93,_0x188ca2,_0x4aab93)=>{if(null==_0x4aab93){const {id:_0x4d5c39}=this['_splitMarkerName'](_0x188ca2['name']),_0x31e463=this['_suggestions']['get'](_0x4d5c39);_0x31e463&&_0x31e463['addMarkerName'](_0x188ca2['name']);}}),_0xa2f10b['model']['document']['on']('change:data',()=>{const _0x3ec672=Array['from'](_0xa2f10b['model']['document']['differ']['getChangedMarkers']());_0x3ec672['sort']((_0x2214d1,_0x564877)=>{const _0x5a3fd6=_0x2214d1['data']['oldRange'],_0x40ae88=_0x564877['data']['oldRange'];return null===_0x5a3fd6&&null===_0x40ae88?0x0:null===_0x5a3fd6&&null!==_0x40ae88?-0x1:null!==_0x5a3fd6&&null===_0x40ae88?0x1:_0x5a3fd6['start']['isBefore'](_0x40ae88['start'])?-0x1:0x1;});const _0x3aa73f=new Set();for(const {name:_0x5bd02c,data:_0x34e35f}of _0x3ec672){const {group:_0x1c0d60,id:_0x56be75}=this['_splitMarkerName'](_0x5bd02c);if('suggestion'===_0x1c0d60&&(null===_0x34e35f['oldRange']&&this['_handleNewSuggestionMarker'](_0x5bd02c),null===_0x34e35f['newRange'])){const _0x283b72=this['_suggestions']['get'](_0x56be75);_0x283b72['isInContent']?_0x3aa73f['add'](_0x283b72):this['_removeSuggestion'](_0x283b72);}}for(const {name:_0x492943,data:_0x4bdf3e}of _0x3ec672){const {group:_0x2843db,id:_0x501387}=this['_splitMarkerName'](_0x492943);if('suggestion'!==_0x2843db)continue;const _0x5b496d=this['_suggestions']['get'](_0x501387);null!=_0x4bdf3e['newRange']&&null!=_0x4bdf3e['oldRange']&&(this['_refreshSuggestionsChain'](_0x5b496d),_0x3aa73f['add'](_0x5b496d['head']));}for(const _0x2b052b of _0x3aa73f)this['fire']('suggestionChanged',_0x2b052b);_0x3aa73f['clear']();}),_0xa2f10b['model']['on']('applyOperation',(_0x204ccf,_0x35ef5b)=>{const _0x5df91f=_0x35ef5b[0x0];if(!this['_suggestions']['size'])return;if(!_0x5df91f['isDocumentOperation'])return;if('transparent'==_0x5df91f['batch']['type'])return;let _0x41e6a6,_0x32aa1a;switch(_0x5df91f['type']){case'insert':_0x41e6a6=_0xa2f10b['model']['createPositionAt'](_0x5df91f['position']),_0x32aa1a=_0x41e6a6['getShiftedBy'](_0x5df91f['howMany']);break;case'split':_0x41e6a6=_0xa2f10b['model']['createPositionAt'](_0x5df91f['splitPosition']),_0x32aa1a=_0xa2f10b['model']['createPositionAt'](_0x5df91f['moveTargetPosition']);break;case'move':_0x41e6a6=_0xa2f10b['model']['createPositionAt'](_0x5df91f['targetPosition']),_0x32aa1a=_0x41e6a6['getShiftedBy'](_0x5df91f['howMany']);break;default:return;}const _0x232bea=_0xa2f10b['model']['createRange'](_0x41e6a6,_0x32aa1a);_0xa2f10b['model']['change'](()=>{for(const {suggestion:_0xd380ff,meta:_0x3b1859}of this['_findSuggestions'](_0x232bea)){if(_0xd380ff['isMultiRange'])continue;if('formatInline'==_0xd380ff['type'])continue;const _0x13c8cc=_0xd380ff['data']&&_0xd380ff['data']['multipleBlocks'];('formatBlock'!=_0xd380ff['type']||'split'==_0x5df91f['type']&&!_0x13c8cc)&&(_0x3b1859['containsRangeInObject']||'insertion'==_0xd380ff['type']&&_0x3b1859['isOwn']||_0xd380ff['getFirstRange']()['containsRange'](_0x232bea)&&this['_breakSuggestionMarker'](_0xd380ff,_0x41e6a6,_0x32aa1a));}});},{'priority':'lowest'}),_0xa2f10b['model']['on']('deleteContent',(_0x23963b,_0x29616e)=>{const _0x11837f=_0x29616e[0x0],_0x2467e0=_0x29616e[0x1];if(_0x2467e0&&_0x2467e0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x11837f['isCollapsed'])return;const _0x3d1700=_0xa2f10b['model']['schema'],{start:_0xb7ad32,end:_0x19509b}=_0x11837f['getFirstRange'](),_0x397d2c=_0xb7ad32['nodeAfter']&&_0x3d1700['isObject'](_0xb7ad32['nodeAfter'])?null:_0x3d1700['getNearestSelectionRange'](_0xb7ad32,'forward'),_0x2afdf7=_0x19509b['nodeBefore']&&_0x3d1700['isObject'](_0x19509b['nodeBefore'])?null:_0x3d1700['getNearestSelectionRange'](_0x19509b,'backward'),_0x32f83d=_0xa2f10b['model']['createRange'](_0x397d2c?_0x397d2c['start']:_0xb7ad32,_0x2afdf7?_0x2afdf7['end']:_0x19509b);_0xa2f10b['model']['change'](_0x2493c4=>{this['markDeletion'](_0x32f83d);const _0x34f516=_0xa2f10b['model']['schema']['getNearestSelectionRange'](_0x32f83d['start']);_0x11837f['is']('documentSelection')?_0x2493c4['setSelection'](_0x34f516):_0x11837f['setTo'](_0x34f516);}),_0x23963b['stop']();},{'priority':_0x3acfcb['normal']+0xa}),_0xa2f10b['model']['on']('insertContent',(_0x500ad0,_0x439b95)=>{const _0x1a84a5=_0x439b95[_0x439b95['length']-0x1];_0x1a84a5&&_0x1a84a5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa2f10b['model']['change'](()=>{let _0x37bcdc=_0xa2f10b['model']['insertContent'](_0x439b95[0x0],_0x439b95[0x1],_0x439b95[0x2],_0x439b95[0x3],{'forceDefaultExecution':!0x0});if(!_0x37bcdc)return;_0x500ad0['return']=_0x37bcdc['clone']();const _0x834b0=_0x37bcdc['end']['nodeBefore'],_0x34d72a=_0xa2f10b['model']['schema'];_0x834b0&&_0x34d72a['isBlock'](_0x834b0)&&!_0x34d72a['isObject'](_0x834b0)&&(_0x37bcdc=_0xa2f10b['model']['createRange'](_0x37bcdc['start'],_0xa2f10b['model']['createPositionAt'](_0x834b0,'end'))),this['markInsertion'](_0x37bcdc);}),_0x500ad0['stop']());},{'priority':'high'}),this['trackChangesCommand']=new _0x4d7753(_0xa2f10b,this['_enabledCommands']),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x18fafc=new _0x59bf4d(_0xa2f10b,this['_suggestions']);_0xa2f10b['commands']['add']('acceptSuggestion',_0x18fafc),this['enableCommand']('acceptSuggestion');const _0x4eaae4=new _0x4ff08b(_0xa2f10b,this['_suggestions']);_0xa2f10b['commands']['add']('discardSuggestion',_0x4eaae4),this['enableCommand']('discardSuggestion'),_0xa2f10b['commands']['add']('acceptAllSuggestions',new _0x2bb79a(_0xa2f10b,_0x18fafc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa2f10b['commands']['add']('discardAllSuggestions',new _0xfdc890(_0xa2f10b,_0x4eaae4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa2f10b['commands']['add']('acceptSelectedSuggestions',new _0xf8ea7f(_0xa2f10b,_0x18fafc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa2f10b['commands']['add']('discardSelectedSuggestions',new _0x2d6ce7(_0xa2f10b,_0x4eaae4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x540052=_0xa2f10b['plugins']['get'](_0x144b4c);this['listenTo'](_0x540052,'addComment',(_0x1ac045,{threadId:_0x5c0f38})=>{const _0x498186=this['_suggestions']['get'](_0x5c0f38);_0x498186&&_0x498186['commentThread']&&0x1===_0x498186['commentThread']['length']&&this['_updateSuggestionData'](_0x5c0f38,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x540052,'removeComment',(_0x4d3752,{threadId:_0xe3fd76})=>{const _0x290128=this['_suggestions']['get'](_0xe3fd76);_0x290128&&_0x290128['commentThread']&&!_0x290128['commentThread']['length']&&this['_updateSuggestionData'](_0xe3fd76,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xf7457a){if(this['_adapter'])throw new _0x44c973('track-changes-adapter-already-set',this);this['_adapter']=_0xf7457a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x229153=!0x1,toJSON:_0x4abb28=!0x1}={}){const _0x5e908a=[];for(const _0x39d684 of this['_suggestions']['values']())_0x229153&&!_0x39d684['isInContent']||_0x5e908a['push'](_0x39d684);return _0x4abb28?_0x5e908a['map'](_0x4ad82a=>_0x4ad82a['toJSON']()):_0x5e908a;}['getSuggestion'](_0x2f2bae){const _0x17c4cf=this['_suggestions']['get'](_0x2f2bae);if(!_0x17c4cf)throw new _0x44c973('track-changes-suggestion-not-found',this);return _0x17c4cf;}['hasSuggestion'](_0x1a6aa){return this['_suggestions']['has'](_0x1a6aa);}['addSuggestionData'](_0x460782){const {id:_0x2ecea4,authorId:_0x38ee10}=_0x460782,[_0x154e27,_0x55e7e9]=_0x460782['type']['split'](':'),_0x4e18e7=this['_suggestions']['get'](_0x2ecea4)||this['_createSuggestion'](_0x154e27,_0x55e7e9,_0x2ecea4,_0x38ee10);switch(this['_addThreadToSuggestion'](_0x4e18e7),this['_checkSuggestionCorrectness'](_0x4e18e7,_0x154e27,_0x55e7e9||null,_0x38ee10),_0x4e18e7['createdAt']=_0x460782['createdAt'],_0x460782['data']&&(_0x4e18e7['data']=_0x460782['data']),_0x460782['attributes']&&(_0x4e18e7['attributes']=_0x460782['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4e18e7['_saved']=!0x0),this['_suggestionState']['get'](_0x4e18e7)){case'notReady':this['_suggestionState']['set'](_0x4e18e7,'dataReady');break;case'markerReady':_0x4e18e7['isInContent']?(this['_suggestionState']['set'](_0x4e18e7,'ready'),this['fire']('suggestionLoaded',_0x4e18e7)):this['_suggestionState']['set'](_0x4e18e7,'removed');}return _0x4e18e7;}['acceptSuggestion'](_0x222fc5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1237d5 of _0x222fc5['getAllAdjacentSuggestions']())_0x1237d5['accept']();});});}['discardSuggestion'](_0x45e11d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ba131 of _0x45e11d['getAllAdjacentSuggestions']())_0x1ba131['discard']();});});}['enableCommand'](_0x1a9bcb,_0x234ca9){const _0x1e0cda=this['editor']['commands']['get'](_0x1a9bcb);if(!_0x1e0cda)throw new _0x44c973('track-changes-command-not-found',this,{'commandName':_0x1a9bcb});this['_enabledCommands']['add'](_0x1e0cda),_0x234ca9&&_0x1e0cda['on']('execute',(_0x16d20e,_0x5a50f9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||_0x5a50f9['length']>0x0&&_0x5a50f9[_0x5a50f9['length']-0x1]&&_0x5a50f9[_0x5a50f9['length']-0x1]['forceDefaultExecution']||(_0x234ca9((..._0x3ba2c8)=>_0x1e0cda['execute'](..._0x3ba2c8,{'forceDefaultExecution':!0x0}),..._0x5a50f9),_0x16d20e['stop']()));},{'priority':'high'});}['forceDefaultExecution'](_0x319334){let _0x211712,_0x30ab09;const _0x48222b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x211712=_0x319334();}catch(_0x2729dc){_0x30ab09=_0x2729dc;}return _0x48222b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30ab09&&_0x44c973['rethrowUnexpectedError'](_0x30ab09,this),_0x211712;}['markInsertion'](_0x23c1ac,_0x5888a3=null,_0x5b503e={}){if(_0x23c1ac['isCollapsed'])return null;const _0x73ec8a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x9c7be1,meta:_0x5894a3}of this['_findSuggestions'](_0x23c1ac,'insertion'))if(_0x5894a3['isOwn']){if(!_0x5894a3['isNextTo'])return _0x9c7be1;if(_0x5888a3==_0x9c7be1['subType']){const _0x306c67=_0x9c7be1['getFirstRange']();return _0x306c67['start']['isEqual'](_0x23c1ac['end'])?this['_setSuggestionRange'](_0x9c7be1,this['_model']['createRange'](_0x23c1ac['start'],_0x306c67['end'])):this['_setSuggestionRange'](_0x9c7be1,this['_model']['createRange'](_0x306c67['start'],_0x23c1ac['end'])),_0x9c7be1;}}const _0x49df40=_0x3b1025(),_0x391e8e=_0x73ec8a['id'],_0x4f292a=_0x5888a3?'insertion:'+_0x5888a3:'insertion',_0x4a5033=this['_setSuggestionData']({'id':_0x49df40,'type':_0x4f292a,'createdAt':new Date(),'authorId':_0x391e8e,'attributes':_0x5b503e});return this['_addSuggestionMarker'](_0x4f292a,_0x49df40,_0x391e8e,_0x23c1ac),_0x4a5033;}['markMultiRangeInsertion'](_0x2eccb1,_0x2f62f3='multi',_0x43bf2b={}){const _0x1b3e35=this['editor']['plugins']['get']('Users')['me'],_0x2e733e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f62f3,'join');for(const _0x5c005d of this['getSuggestions']())if(_0x5c005d['author']['id']==_0x1b3e35['id']&&'insertion'==_0x5c005d['type']&&_0x5c005d['subType']==_0x2f62f3&&(_0x2e733e(_0x5c005d['getRanges'](),_0x2eccb1)||_0x2e733e(_0x2eccb1,_0x5c005d['getRanges']()))){for(const _0x116853 of _0x2eccb1)_0x5c005d['addRange'](_0x116853);return _0x5c005d;}for(const _0x4cc372 of _0x2eccb1)for(const {suggestion:_0x250907,meta:_0x587c02}of this['_findSuggestions'](_0x4cc372,'insertion')){if(!_0x587c02['isOwn'])continue;let _0x311f82=!0x0;for(const _0x45fc73 of _0x250907['getRanges']())for(const _0x5612a7 of _0x2eccb1)if(!_0x45fc73['containsRange'](_0x5612a7)){_0x311f82=!0x1;break;}if(_0x311f82)return _0x250907;}const _0x2135b1=_0x3b1025(),_0xceb8ae=_0x1b3e35['id'],_0x440c78='insertion:'+_0x2f62f3,_0xff62ba=this['_setSuggestionData']({'id':_0x2135b1,'type':_0x440c78,'createdAt':new Date(),'authorId':_0xceb8ae,'attributes':_0x43bf2b});for(const _0x2560f7 of _0x2eccb1)this['_addSuggestionMarker'](_0x440c78,_0x2135b1,_0xceb8ae,_0x2560f7,_0x2f7912['getMultiRangeId']());return _0xff62ba;}['markInlineFormat'](_0x474b41,_0x3f39fd,_0x34bc29=null,_0x221017={}){if(_0x34bc29=_0x34bc29||bt(_0x3f39fd),_0x474b41['isCollapsed'])return;const _0x34722d=this['editor']['plugins']['get']('Users')['me'],_0x2121c6=[];for(const {suggestion:_0x4f6887,meta:_0x49fa73}of this['_findSuggestions'](_0x474b41,'insertion'))_0x49fa73['isOwn']&&!_0x49fa73['isInsideObject']&&_0x2121c6['push'](..._0x4f6887['getRanges']());const _0x8b6ea2=function(_0x52a53b,_0x39195b){const _0x5cb644=[];for(const _0x4f439f of _0x39195b){const _0x12129c=_0x52a53b['getIntersection'](_0x4f439f);_0x12129c&&_0x5cb644['push'](_0x12129c);}return _0x5cb644;}(_0x474b41,_0x2121c6),_0x3cfa02=function(_0x37a7cf,_0x5a8e9d){const _0x319cd1=[_0x37a7cf];for(const _0x5b3856 of _0x5a8e9d){let _0x5027d1=0x0;for(;_0x5027d1<_0x319cd1['length'];){const _0xe281bc=_0x319cd1[_0x5027d1]['getDifference'](_0x5b3856);_0x319cd1['splice'](_0x5027d1,0x1,..._0xe281bc),_0x5027d1+=_0xe281bc['length'];}}return _0x319cd1;}(_0x474b41,_0x2121c6);_0x8b6ea2['length']&&this['_model']['change'](()=>{for(const _0x466547 of _0x8b6ea2){const _0x4ee688=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34bc29,'accept');this['forceDefaultExecution'](()=>_0x4ee688([_0x466547],_0x3f39fd,_0x221017));}});for(const _0x33db73 of _0x3cfa02){let _0x656cfd=null,_0x54221f=_0x33db73['start'],_0x2518bb=_0x33db73['end'];for(const {suggestion:_0x46d306,meta:_0x2547c1}of this['_findSuggestions'](_0x33db73,'formatInline')){if(!_0x2547c1['isOwn'])continue;if(_0x46d306['subType']!=_0x34bc29)continue;const _0x1af520=_0x46d306['getFirstRange']();if(_0x1af520['containsRange'](_0x33db73,!0x0))return;_0x54221f=_0x54221f['isBefore'](_0x1af520['start'])?_0x54221f:_0x1af520['start'],_0x2518bb=_0x2518bb['isAfter'](_0x1af520['end'])?_0x2518bb:_0x1af520['end'],_0x656cfd?_0x1af520['start']['isBefore'](_0x656cfd['getFirstRange']()['start'])?(_0x656cfd['removeMarkers'](),_0x656cfd=_0x46d306):_0x46d306['removeMarkers']():_0x656cfd=_0x46d306;}const _0x51b1ca=this['_model']['createRange'](_0x54221f,_0x2518bb);if(_0x656cfd)this['_setSuggestionRange'](_0x656cfd,_0x51b1ca);else{const _0x2068a0=_0x3b1025(),_0x1aa1da=_0x34722d['id'];this['_setSuggestionData']({'id':_0x2068a0,'type':'formatInline:'+_0x34bc29,'data':_0x3f39fd,'createdAt':new Date(),'authorId':_0x1aa1da,'attributes':_0x221017}),this['_addSuggestionMarker']('formatInline:'+_0x34bc29,_0x2068a0,_0x1aa1da,_0x51b1ca);}}}['markBlockFormat'](_0x139717,_0x17a57c,_0x22e9b8=[],_0x2fb9b1=null,_0xe3e457={}){_0x17a57c['formatGroupId']||(_0x17a57c['formatGroupId']=_0x17a57c['commandName']),_0x17a57c['multipleBlocks']=_0x139717['is']('range'),_0x2fb9b1=_0x2fb9b1||bt(_0x17a57c);const _0x35ee79=_0x22e9b8['map'](_0xf6f065=>vt(_0xf6f065,this['_model'])),_0x238dec=_0x139717['is']('range')?_0x139717:vt(_0x139717,this['_model']);_0x35ee79['push'](_0x238dec);let _0x127624=!0x0;for(const _0x52a540 of _0x35ee79)if(!this['_rangeIsInLocalUserInsertion'](_0x52a540)){_0x127624=!0x1;break;}if(_0x127624){const _0x280f97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fb9b1,'accept');return void this['forceDefaultExecution'](()=>_0x280f97([_0x238dec],_0x17a57c,_0xe3e457));}let _0x351083=null,_0x25d170=_0x238dec['start'],_0x2c8329=_0x238dec['end'];for(const {suggestion:_0x203954,meta:_0x55e41b}of this['_findSuggestions'](_0x238dec,'formatBlock')){if(!_0x55e41b['isOwn']||_0x55e41b['isNextTo']||_0x55e41b['containsRangeInObject']||_0x55e41b['isInsideObject'])continue;if(_0x203954['data']['formatGroupId']!=_0x17a57c['formatGroupId'])continue;const _0x1737c4=_0x203954['getFirstRange']();if(_0x203954['subType']==_0x2fb9b1){if(_0x1737c4['containsRange'](_0x238dec,!0x0))return;_0x25d170=_0x25d170['isBefore'](_0x1737c4['start'])?_0x25d170:_0x1737c4['start'],_0x2c8329=_0x2c8329['isAfter'](_0x1737c4['end'])?_0x2c8329:_0x1737c4['end'],_0x351083?_0x1737c4['start']['isBefore'](_0x351083['getFirstRange']()['start'])?(_0x351083['removeMarkers'](),_0x351083=_0x203954):_0x203954['removeMarkers']():_0x351083=_0x203954;}else{const _0x37792d=_0x238dec['getIntersection'](_0x1737c4);this['_cutOutSuggestionMarker'](_0x203954,_0x37792d);}}const _0x1d536c=this['editor']['plugins']['get']('Users')['me'],_0x52643a=_0x3b1025(),_0x405537=_0x1d536c['id'];_0x351083?this['_setSuggestionRange'](_0x351083,this['_model']['createRange'](_0x25d170,_0x2c8329)):(this['_setSuggestionData']({'id':_0x52643a,'type':'formatBlock:'+_0x2fb9b1,'data':_0x17a57c,'createdAt':new Date(),'authorId':_0x405537,'attributes':_0xe3e457}),this['_addSuggestionMarker']('formatBlock:'+_0x2fb9b1,_0x52643a,_0x405537,this['_model']['createRange'](_0x25d170,_0x2c8329)));}['markMultiRangeBlockFormat'](_0x720209,_0x4a8d60,_0x6bba15=[],_0x5b890c=null,_0x31b494={}){_0x4a8d60['formatGroupId']||(_0x4a8d60['formatGroupId']=_0x4a8d60['commandName']),_0x4a8d60['multipleBlocks']=!0x1,_0x5b890c=_0x5b890c||bt(_0x4a8d60);const _0x4f7e8e=_0x6bba15['map'](_0x262ddc=>vt(_0x262ddc,this['_model'])),_0x5d98fb=_0x720209['map'](_0x2bed8a=>vt(_0x2bed8a,this['_model']));_0x4f7e8e['push'](..._0x5d98fb);let _0x36fd7e=!0x0;for(const _0x5e4ca3 of _0x4f7e8e)if(!this['_rangeIsInLocalUserInsertion'](_0x5e4ca3)){_0x36fd7e=!0x1;break;}if(_0x36fd7e){const _0x6d4691=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b890c,'accept');return void this['forceDefaultExecution'](()=>_0x6d4691(_0x5d98fb,_0x4a8d60,_0x31b494));}const _0x1c399b=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ff3b3 of this['getSuggestions']()){if(_0x1ff3b3['author']['id']!=_0x1c399b['id'])continue;if('formatBlock'!=_0x1ff3b3['type']||_0x1ff3b3['data']['formatGroupId']!=_0x4a8d60['formatGroupId'])continue;const _0x44c49a=_0x1ff3b3['subType']==_0x5b890c;for(let _0x3f695e=0x0;_0x3f695e<_0x5d98fb['length'];_0x3f695e++){const _0x5e1384=_0x5d98fb[_0x3f695e];for(const _0x30abf9 of _0x1ff3b3['getMarkers']()){const _0x3ba42a=_0x30abf9['getRange']();if(_0x5e1384['isEqual'](_0x3ba42a)){_0x44c49a?(_0x5d98fb['splice'](_0x3f695e,0x1),_0x3f695e--):_0x1ff3b3['removeMarker'](_0x30abf9['name']);break;}}}}if(0x0==_0x5d98fb['length'])return;const _0xc108ab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b890c,'join');for(const _0x109549 of this['getSuggestions']())if(_0x109549['author']['id']==_0x1c399b['id']&&'formatBlock'==_0x109549['type']&&_0x109549['data']['formatGroupId']==_0x4a8d60['formatGroupId']&&_0x109549['subType']==_0x5b890c&&(_0xc108ab(_0x109549['getRanges'](),_0x5d98fb)||_0xc108ab(_0x5d98fb,_0x109549['getRanges']()))){for(const _0x104f5a of _0x5d98fb)_0x109549['addRange'](_0x104f5a);return _0x109549;}const _0x14cd6d=_0x3b1025(),_0xc47fa6=_0x1c399b['id'],_0x36c634='formatBlock:'+_0x5b890c,_0x289a2e=this['_setSuggestionData']({'id':_0x14cd6d,'type':_0x36c634,'data':_0x4a8d60,'createdAt':new Date(),'authorId':_0xc47fa6,'attributes':_0x31b494});for(const _0x4be26e of _0x5d98fb)this['_addSuggestionMarker'](_0x36c634,_0x14cd6d,_0xc47fa6,_0x4be26e,_0x2f7912['getMultiRangeId']());return _0x289a2e;}['markDeletion'](_0x48455b,_0x36b522=null,_0x42a44c={}){if(_0x48455b['isCollapsed'])return null;const _0x2fb0bc=this['editor']['plugins']['get']('Users')['me'],_0x25b82d=new _0x1b3715(_0x48455b['start'],_0x48455b['end']);for(const {suggestion:_0x229f15,meta:_0x46b167}of this['_findSuggestions'](_0x25b82d,'insertion'))if(_0x46b167['isOwn']&&!_0x46b167['isNextTo']){if(_0x229f15['isMultiRange']){const _0x28e307=_0x229f15['getRanges']()['filter'](_0x5c3a64=>'$graveyard'!=_0x5c3a64['root']['rootName']);_0x28e307['every'](_0x3d27bb=>_0x25b82d['containsRange'](_0x3d27bb,!0x0))&&_0x229f15['discard']();if(_0x28e307['some'](_0x587407=>_0x587407['containsRange'](_0x25b82d,!0x0))){const _0x530e70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36b522,'accept');return this['forceDefaultExecution'](()=>_0x530e70([_0x25b82d],null,_0x42a44c)),null;}}else{const _0x217cf3=_0x25b82d['getIntersection'](_0x229f15['getFirstRange']());_0x229f15['_onDiscard']([_0x217cf3],null,_0x42a44c);}}if(_0x25b82d['detach'](),_0x25b82d['isCollapsed']||'$graveyard'==_0x25b82d['root']['rootName'])return null;let _0x101519=null,_0x1699e6=_0x25b82d['start'],_0x2601b2=_0x25b82d['end'];for(const {suggestion:_0xb614ac,meta:_0xe7c73d}of this['_findSuggestions'](_0x25b82d,'deletion'))if(_0xe7c73d['isOwn']){if(_0xb614ac['isMultiRange']){let _0x48859e=!0x0;for(const _0x4f1787 of _0xb614ac['getRanges']()){if(_0x4f1787['containsRange'](_0x25b82d,!0x0))return _0xb614ac;_0x25b82d['containsRange'](_0x4f1787)||(_0x48859e=!0x1);}_0x48859e&&_0xb614ac['discard']();}else{const _0x1a90e3=_0xb614ac['getFirstRange']();if(_0x1a90e3['containsRange'](_0x25b82d,!0x0))return _0xb614ac;_0x1699e6=_0x1699e6['isBefore'](_0x1a90e3['start'])?_0x1699e6:_0x1a90e3['start'],_0x2601b2=_0x2601b2['isAfter'](_0x1a90e3['end'])?_0x2601b2:_0x1a90e3['end'],_0x101519?_0x1a90e3['start']['isBefore'](_0x101519['getFirstRange']()['start'])?(_0x101519['removeMarkers'](),_0x101519=_0xb614ac):_0xb614ac['removeMarkers']():_0x101519=_0xb614ac;}}if(_0x101519)return this['_setSuggestionRange'](_0x101519,this['_model']['createRange'](_0x1699e6,_0x2601b2)),_0x101519;{const _0x35d033=_0x3b1025(),_0x11a238=this['_model']['createRange'](_0x1699e6,_0x2601b2),_0x281764=_0x2fb0bc['id'],_0x172520=_0x36b522?'deletion:'+_0x36b522:'deletion',_0xb2c4d8=this['_setSuggestionData']({'id':_0x35d033,'type':_0x172520,'createdAt':new Date(),'authorId':_0x281764,'attributes':_0x42a44c});return this['_addSuggestionMarker'](_0x172520,_0x35d033,_0x281764,_0x11a238),_0xb2c4d8;}}['markMultiRangeDeletion'](_0x20a1bb,_0x2f8ade='multi',_0x42de30={}){const _0x501d4c=this['editor']['plugins']['get']('Users')['me'],_0x42826b=_0x20a1bb['map'](_0x1b3ab2=>new _0x1b3715(_0x1b3ab2['start'],_0x1b3ab2['end'])),_0x5dd2d9=new Set();for(const _0x220ade of _0x42826b)for(const {suggestion:_0x1514ad,meta:_0x3b5d7c}of this['_findSuggestions'](_0x220ade,'insertion'))_0x3b5d7c['isOwn']&&!_0x3b5d7c['isNextTo']&&_0x5dd2d9['add'](_0x1514ad);for(const _0x4dfd79 of _0x5dd2d9)if(_0x4dfd79['isMultiRange']){const _0x5d749a=_0x4dfd79['getRanges']();(!_0x4dfd79['attributes']||!_0x4dfd79['attributes']['skipNestingCheck'])&&(_0x5d749a['every'](_0x2b8611=>_0x42826b['some'](_0x16046c=>_0x16046c['containsRange'](_0x2b8611,!0x0)))&&_0x4dfd79['discard']());if(_0x42826b['every'](_0x4297b0=>_0x5d749a['some'](_0x2d8c61=>_0x2d8c61['containsRange'](_0x4297b0,!0x0)))){const _0x4bb236=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8ade,'accept');return this['forceDefaultExecution'](()=>_0x4bb236(_0x20a1bb,null,_0x42de30)),null;}}else{const _0x240eea=_0x4dfd79['getFirstRange']();_0x42826b['some'](_0x3d51fd=>_0x3d51fd['containsRange'](_0x240eea,!0x0))&&_0x4dfd79['discard']();if(_0x42826b['every'](_0x170913=>_0x240eea['containsRange'](_0x170913,!0x0))){const _0x29ae1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8ade,'accept');return this['forceDefaultExecution'](()=>_0x29ae1e(_0x42826b,null,_0x42de30)),null;}}const _0x1d24ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f8ade,'join');let _0x408c49=null;for(const _0x3049af of this['getSuggestions']())if(_0x3049af['author']['id']==_0x501d4c['id']&&_0x3049af['isInContent']&&'deletion'==_0x3049af['type']&&_0x3049af['subType']==_0x2f8ade&&(_0x1d24ba(_0x3049af['getRanges'](),_0x42826b)||_0x1d24ba(_0x42826b,_0x3049af['getRanges']()))){if(_0x408c49){if(_0x3049af['commentThread']&&_0x3049af['commentThread']['length'])continue;for(const _0x119f46 of _0x3049af['getRanges']())_0x408c49['isIntersectingWithRange'](_0x119f46)||_0x408c49['addRange'](_0x119f46);_0x3049af['removeMarkers']();}else{_0x408c49=_0x3049af;for(const _0x4e3eed of _0x42826b)_0x3049af['isIntersectingWithRange'](_0x4e3eed)||_0x3049af['addRange'](_0x4e3eed);}}if(_0x408c49)return _0x408c49;_0x5dd2d9['clear']();for(const _0x52521f of _0x42826b)for(const {suggestion:_0x319db7,meta:_0x5abb8c}of this['_findSuggestions'](_0x52521f,'deletion'))_0x5abb8c['isOwn']&&_0x5dd2d9['add'](_0x319db7);for(const _0x420449 of _0x5dd2d9){const _0x5dc6d1=_0x420449['getRanges']();if(!_0x42de30||!_0x42de30['skipNestingCheck']){if(_0x42826b['every'](_0x3b8d8f=>_0x5dc6d1['some'](_0x352372=>_0x352372['containsRange'](_0x3b8d8f,!0x0))))return _0x420449;}(!_0x420449['attributes']||!_0x420449['attributes']['skipNestingCheck'])&&(_0x5dc6d1['every'](_0x482c75=>_0x42826b['some'](_0x2ce427=>_0x2ce427['containsRange'](_0x482c75,!0x0)))&&_0x420449['discard']());}const _0x29a790=_0x3b1025(),_0x51757d=_0x501d4c['id'],_0x22bc7c='deletion:'+_0x2f8ade,_0x3cc9c3=this['_setSuggestionData']({'id':_0x29a790,'type':_0x22bc7c,'createdAt':new Date(),'authorId':_0x51757d,'attributes':_0x42de30});for(const _0x4ab66e of _0x42826b)_0x4ab66e['detach'](),_0x4ab66e['isCollapsed']||'$graveyard'==_0x4ab66e['root']['rootName']||this['_addSuggestionMarker'](_0x22bc7c,_0x29a790,_0x51757d,_0x4ab66e,_0x2f7912['getMultiRangeId']());return _0x3cc9c3;}['_setSuggestionRange'](_0x5d912d,_0x361616){const _0x3cdd16=_0x5d912d['getFirstMarker']();this['_model']['change'](_0x4a3a27=>{_0x4a3a27['updateMarker'](_0x3cdd16,{'range':_0x361616});});}['_addThreadToSuggestion'](_0x47eb3f){const _0x47304f=_0x47eb3f['id'],_0x254df3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47304f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x254df3,'threadId':_0x47304f});const _0x2626a1=this['_commentsRepository']['getCommentThread'](_0x47304f);_0x2626a1['unbind']('isRemovable'),_0x2626a1['isRemovable']=!0x1,_0x47eb3f['commentThread']=_0x2626a1;}['_checkSuggestionCorrectness'](_0x573451,_0x51029d,_0x5ca7a0,_0x32fb7f){if(_0x573451['type']!=_0x51029d||_0x573451['subType']!=_0x5ca7a0||_0x573451['author']['id']!=_0x32fb7f)throw this['editor']['isReadOnly']=!0x0,new _0x44c973('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3442fa,_0x152eef){const _0x4ef672=_0x3442fa['getFirstRange']();if(_0x152eef['isEqual'](_0x4ef672))_0x3442fa['removeMarkers']();else{if(_0x4ef672['containsRange'](_0x152eef)){const _0x244840=this['_model']['createPositionAt'](_0x152eef['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3442fa,this['_model']['createRange'](_0x4ef672['start'],_0x244840));const _0x596d6a=_0x3b1025(),_0x36885f=_0x3442fa['author']['id'],_0x55a1ae=_0x3442fa['type']+':'+_0x3442fa['subType'];this['_setSuggestionData']({'id':_0x596d6a,'type':_0x55a1ae,'createdAt':new Date(),'authorId':_0x36885f,'data':_0x3442fa['data'],'attributes':_0x3442fa['attributes']});const _0x478190=this['_model']['createPositionAt'](_0x152eef['end']['parent'],'after'),_0x21380c=this['_model']['createRange'](_0x478190,_0x4ef672['end']);this['_addSuggestionMarker'](_0x55a1ae,_0x596d6a,_0x36885f,_0x21380c);}else{if(_0x4ef672['containsPosition'](_0x152eef['start'])){const _0x4a6c5f=this['_model']['createPositionAt'](_0x152eef['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3442fa,this['_model']['createRange'](_0x4ef672['start'],_0x4a6c5f));}else{const _0xfef596=this['_model']['createPositionAt'](_0x152eef['end']['parent'],'after');this['_setSuggestionRange'](_0x3442fa,this['_model']['createRange'](_0xfef596,_0x4ef672['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28ea54){for(const {suggestion:_0x24f196,meta:_0x2fbd9e}of this['_findSuggestions'](_0x28ea54,'insertion')){if(!_0x2fbd9e['isOwn'])continue;const _0x2c7604=_0x24f196['getRanges']();for(const _0x5aaa3e of _0x2c7604)if(!_0x28ea54['getDifference'](_0x5aaa3e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2e1188){const _0x15ef46=this['editor']['plugins']['get']('Users')['getUser'](_0x2e1188);if(!_0x15ef46)throw new _0x44c973('track-changes-user-not-found',this);return _0x15ef46;}['_createSuggestion'](_0x4b84cf,_0x54a520,_0xfd6a2d,_0x148d70){const _0x27ca4d=this['_getAuthorFromId'](_0x148d70),_0x57301b=this['_suggestionFactory']['buildSuggestion'](_0x4b84cf,_0x54a520,_0xfd6a2d,_0x27ca4d,_0x3c941b=>this['_updateSuggestionData'](_0xfd6a2d,{'attributes':_0x3c941b}));return this['listenTo'](_0x57301b,'accept',()=>{this['_updateSuggestionData'](_0xfd6a2d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x57301b,'discard',()=>{this['_updateSuggestionData'](_0xfd6a2d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xfd6a2d,_0x57301b),this['_suggestionState']['set'](_0x57301b,'notReady'),_0x57301b;}['_splitMarkerName'](_0x18f83d){const _0x53b106=_0x18f83d['split'](':');return{'group':_0x53b106[0x0],'type':_0x53b106[0x1],'subType':_0x53b106['length']>=0x5?_0x53b106[0x2]:null,'id':_0x53b106['length']<0x5?_0x53b106[0x2]:_0x53b106[0x3],'authorId':_0x53b106['length']<0x5?_0x53b106[0x3]:_0x53b106[0x4],'markerCount':0x6==_0x53b106['length']?_0x53b106[0x5]:null};}['_breakSuggestionMarker'](_0x578ab6,_0x3454d3,_0x53d6e2){const _0x13d979=_0x578ab6['getFirstRange'](),_0x14921d=_0x13d979['start'],_0x5bed8f=_0x13d979['end'];this['_setSuggestionRange'](_0x578ab6,this['_model']['createRange'](_0x14921d,_0x3454d3));const _0x521c20=_0x3b1025(),_0x5e15e8=_0x578ab6['author']['id'],_0x479259=_0x578ab6['type']+(_0x578ab6['subType']?':'+_0x578ab6['subType']:'');this['_setSuggestionData']({'id':_0x521c20,'type':_0x479259,'createdAt':new Date(),'authorId':_0x5e15e8,'originalSuggestionId':_0x578ab6['id'],'data':_0x578ab6['data']}),'formatBlock'==_0x578ab6['type']&&(_0x53d6e2=this['_model']['createPositionBefore'](_0x53d6e2['parent'])),this['_addSuggestionMarker'](_0x479259,_0x521c20,_0x5e15e8,this['_model']['createRange'](_0x53d6e2,_0x5bed8f));}['_findSuggestions'](_0x50bbe6,_0x4fcb75=null){const _0x1d9ac3=[],_0x1928f5=this['_model']['schema'],_0x33baa8=this['editor']['plugins']['get']('Users')['me'];for(const _0x2d1444 of this['getSuggestions']())if(_0x2d1444['isInContent']&&(!_0x4fcb75||_0x2d1444['type']==_0x4fcb75))for(const _0x5f56f3 of _0x2d1444['getRanges']()){const _0x54e25f=_0x50bbe6['start']['isEqual'](_0x5f56f3['end'])||_0x50bbe6['end']['isEqual'](_0x5f56f3['start']);if(_0x54e25f||_0x50bbe6['getIntersection'](_0x5f56f3)){const _0x57c35a=_0x50bbe6['containsRange'](_0x5f56f3)&&wt(_0x1928f5,_0x5f56f3['start'],_0x50bbe6),_0x58f352=_0x5f56f3['containsRange'](_0x50bbe6)&&wt(_0x1928f5,_0x50bbe6['start'],_0x5f56f3);_0x1d9ac3['push']({'suggestion':_0x2d1444,'meta':{'isOwn':_0x33baa8==_0x2d1444['author'],'isNextTo':_0x54e25f,'isInsideObject':_0x57c35a,'containsRangeInObject':_0x58f352}});break;}}return _0x1d9ac3;}['_addSuggestionMarker'](_0x5a2858,_0x1fa764,_0x2dda09,_0x4dccf1,_0x11e24f=null){this['_model']['change'](_0x37a700=>{let _0x50280d='suggestion:'+_0x5a2858+':'+_0x1fa764+':'+_0x2dda09;_0x11e24f&&(_0x50280d=_0x50280d+':'+_0x11e24f),_0x37a700['addMarker'](_0x50280d,{'range':_0x4dccf1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51a7eb){const _0x17a57f=_0x51a7eb['previous'],_0x490d5e=_0x51a7eb['next'];_0x51a7eb['previous']=null,null!=_0x17a57f&&(_0x17a57f['next']=null),_0x51a7eb['next']=null,null!=_0x490d5e&&(_0x490d5e['previous']=null),'ready'==this['_suggestionState']['get'](_0x51a7eb)&&(this['_suggestionState']['set'](_0x51a7eb,'removed'),this['fire']('suggestionUnloaded',_0x51a7eb,_0x17a57f,_0x490d5e));}['_setSuggestionData'](_0x3d5326){const _0x4eaffb=_0x3d5326['id'],_0x519f9c=this['addSuggestionData'](_0x3d5326);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x581ea4=this['editor']['plugins']['get']('PendingActions'),_0x4e010a=_0x519f9c['hasComments'],_0x14aeb0=_0x519f9c['subType']?_0x519f9c['type']+':'+_0x519f9c['subType']:_0x519f9c['type'],t=this['editor']['locale']['t'],_0xae1ceb=_0x581ea4['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'})),_0x263ed9={'id':_0x4eaffb,'type':_0x14aeb0,'hasComments':_0x4e010a,'data':_0x3d5326['data']||null,'originalSuggestionId':_0x3d5326['originalSuggestionId']||null,'attributes':_0x519f9c['attributes']};this['_adapter']['addSuggestion'](_0x263ed9)['then'](_0x2305df=>{_0x519f9c['_saved']=!0x0,_0x581ea4['remove'](_0xae1ceb),_0x2305df&&_0x2305df['createdAt']&&(this['_suggestions']['get'](_0x4eaffb)['createdAt']=_0x2305df['createdAt']);});}return _0x519f9c;}['_updateSuggestionData'](_0x5ee911,_0x542261){const _0x54122e=this['editor']['plugins']['get']('PendingActions'),_0x4e12b3=this['_suggestions']['get'](_0x5ee911);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4e12b3['_saved']){const t=this['editor']['locale']['t'],_0xda8374=_0x54122e['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));this['_adapter']['updateSuggestion'](_0x5ee911,_0x542261)['then'](()=>{_0x54122e['remove'](_0xda8374);});}else _0x4e12b3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5ee911,_0x542261);});}}['_getSuggestionData'](_0x5af2f9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x44c973('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5af2f9);}['_handleNewSuggestionMarker'](_0x141c18){const {id:_0x220360,type:_0x16901a,subType:_0x563cbd,authorId:_0x5cf0ed}=this['_splitMarkerName'](_0x141c18),_0x3778c3=this['_suggestions']['get'](_0x220360)||this['_createSuggestion'](_0x16901a,_0x563cbd,_0x220360,_0x5cf0ed);switch(this['_checkSuggestionCorrectness'](_0x3778c3,_0x16901a,_0x563cbd,_0x5cf0ed),this['_suggestionState']['get'](_0x3778c3)){case'notReady':this['_getSuggestionData'](_0x220360)['then'](_0x2b6590=>{let _0x3a636e=Promise['resolve']();_0x2b6590['hasComments']&&(_0x3a636e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x220360})),_0x3a636e['then'](()=>{this['addSuggestionData'](_0x2b6590)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3778c3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x220360,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3778c3,'ready'),this['fire']('suggestionLoaded',_0x3778c3);break;case'ready':this['fire']('suggestionChanged',_0x3778c3);}_0x3778c3['addMarkerName'](_0x141c18),this['_refreshSuggestionsChain'](_0x3778c3);}['_refreshSuggestionsChain'](_0x99f752){if(_0x99f752['isMultiRange'])return;let _0xb0a79f=!0x0,_0x204c10=!0x0;for(const _0x35395e of this['getSuggestions']()){if(_0x35395e['isMultiRange'])continue;if(_0x35395e==_0x99f752||!_0x35395e['isInContent'])continue;if(_0x35395e['author']['id']!=_0x99f752['author']['id'])continue;const _0x49ba77=this['_suggestionFactory']['getSuggestionCallback'](_0x99f752['type'],_0x99f752['subType'],'chain'),_0x273c6d=this['_suggestionFactory']['getSuggestionCallback'](_0x35395e['type'],_0x35395e['subType'],'chain'),_0x560b0a=_0x49ba77(_0x99f752,_0x35395e),_0x5a0bd9=_0x273c6d(_0x99f752,_0x35395e);_0x560b0a&&_0x5a0bd9&&(_0x560b0a[0x1]['commentThread']&&_0x560b0a[0x1]['commentThread']['length']||(_0x560b0a[0x0]['next']=_0x560b0a[0x1],_0x560b0a[0x1]['previous']=_0x560b0a[0x0],_0x560b0a[0x0]==_0x99f752?_0x204c10=!0x1:_0xb0a79f=!0x1));}_0x99f752['previous']&&_0xb0a79f&&(_0x99f752['previous']['next']=null,_0x99f752['previous']=null),_0x99f752['next']&&_0x204c10&&(_0x99f752['next']['previous']=null,_0x99f752['next']=null);}['_joinWithAdjacentSuggestions'](_0x5f135b){for(const _0x3ee192 of this['_suggestions']['values']()){if(_0x3ee192==_0x5f135b||!_0x3ee192['isInContent'])continue;if(_0x3ee192['type']!=_0x5f135b['type']||_0x3ee192['author']['id']!=_0x5f135b['author']['id']||_0x3ee192['subType']!=_0x5f135b['subType'])continue;const _0x47bb9c=this['_suggestionFactory']['getSuggestionCallback'](_0x5f135b['type'],_0x5f135b['subType'],'join');if(_0x47bb9c(_0x3ee192['getRanges'](),_0x5f135b['getRanges']())){if(_0x5f135b['commentThread']&&_0x5f135b['commentThread']['length'])continue;return this['_joinSuggestions'](_0x3ee192,_0x5f135b),!0x0;}if(_0x47bb9c(_0x5f135b['getRanges'](),_0x3ee192['getRanges']())){if(_0x3ee192['commentThread']&&_0x3ee192['commentThread']['length'])continue;return this['_joinSuggestions'](_0x5f135b,_0x3ee192),!0x0;}}return!0x1;}['_joinSuggestions'](_0x3040dc,_0x1c4a56){if(_0x3040dc['isMultiRange'])for(const _0x3c87bd of _0x1c4a56['getRanges']())_0x3040dc['addRange'](_0x3c87bd);else{const _0x3af3dd=_0x1c4a56['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3040dc,this['_model']['createRange'](_0x3040dc['getFirstRange']()['start'],_0x3af3dd));}_0x1c4a56['removeMarkers']();}}_0x2e9c45(l,_0x3d6fbb);class kt{constructor(_0x230a37){this['_editor']=_0x230a37,this['_model']=_0x230a37['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x12eb8d,_0x3a9754,_0x48755b,_0x308ebe,_0x184873){return new _0x2f7912(this['_model'],{'type':_0x12eb8d,'subType':_0x3a9754,'id':_0x48755b,'author':_0x308ebe,'onAttributesChange':_0x184873,'onAccept':(..._0x26cb70)=>this['getSuggestionCallback'](_0x12eb8d,_0x3a9754,'accept')(..._0x26cb70),'onDiscard':(..._0x212e55)=>this['getSuggestionCallback'](_0x12eb8d,_0x3a9754,'discard')(..._0x212e55)});}['registerCustomCallback'](_0x2e9c8f,_0x45d110,_0x3e9b81,_0x44b4ee){const _0x5a0990=_0x2e9c8f+':'+_0x45d110+':'+_0x3e9b81;this['_customCallbacks']['set'](_0x5a0990,_0x44b4ee);}['getSuggestionCallback'](_0x5f5085,_0x152f27,_0x482a1b){const _0x15ddd3=_0x5f5085+':'+_0x152f27+':'+_0x482a1b;return this['_customCallbacks']['get'](_0x15ddd3)||this['_defaultCallbacks']['get'](_0x5f5085+':'+_0x482a1b);}['_registerDefaultCallbacks'](){const _0x4bf64a=()=>{},_0x66ec4=_0x4a2c19=>{_0x4a2c19['sort']((_0x25f5f8,_0xbc4eef)=>_0x25f5f8['start']['isBefore'](_0xbc4eef['start'])?0x1:-0x1),this['_model']['change'](_0xf95b17=>{for(const _0x192b95 of _0x4a2c19){let _0x372969;_0x372969=_0x192b95['end']['isAtEnd']&&_0x192b95['end']['parent']==_0x192b95['start']['nodeAfter']?_0xf95b17['createSelection'](_0x192b95['start']['nodeAfter'],'on'):_0xf95b17['createSelection'](_0x192b95),this['_model']['deleteContent'](_0x372969,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x23e427=(_0x956a5d,_0x15f768)=>{this['_model']['change'](_0x38ff0c=>{const {commandName:_0xd52767,commandParams:_0xacfba7=[]}=_0x15f768,_0x6c7099=_0x956a5d[0x0];if('$graveyard'==_0x6c7099['root']['rootName'])return;const _0x4e9c29=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f3c3f=>_0x1b3715['fromRange'](_0x1f3c3f));yt(_0x6c7099)?_0x38ff0c['setSelection'](this['_model']['createRange'](_0x6c7099['end'])):_0x38ff0c['setSelection'](_0x6c7099);for(const _0x230790 of this['_editor']['commands']['commands']())_0x230790['refresh']();_0xacfba7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd52767,..._0xacfba7);const _0x243da9=_0x4e9c29['filter'](_0x29b77a=>'$graveyard'!=_0x29b77a['root']['rootName']);_0x243da9['length']>0x0&&_0x38ff0c['setSelection'](_0x243da9);for(const _0x441a9e of _0x4e9c29)_0x441a9e['detach']();});},_0x280c4f=(_0x2483a8,_0x45a88e)=>0x1==_0x2483a8['length']&&0x1==_0x45a88e['length']&&_0x2483a8[0x0]['end']['isEqual'](_0x45a88e[0x0]['start']),_0xd99dde=(_0xd21937,_0x51f15b)=>Dt(_0xd21937,_0x51f15b,this['_model'])?[_0xd21937,_0x51f15b]:Dt(_0x51f15b,_0xd21937,this['_model'])?[_0x51f15b,_0xd21937]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4bf64a),this['_defaultCallbacks']['set']('insertion:discard',_0x66ec4),this['_defaultCallbacks']['set']('insertion:join',_0x280c4f),this['_defaultCallbacks']['set']('insertion:chain',_0xd99dde),this['_defaultCallbacks']['set']('deletion:accept',_0x66ec4),this['_defaultCallbacks']['set']('deletion:discard',_0x4bf64a),this['_defaultCallbacks']['set']('deletion:join',_0x280c4f),this['_defaultCallbacks']['set']('deletion:chain',_0xd99dde),this['_defaultCallbacks']['set']('formatInline:accept',_0x23e427),this['_defaultCallbacks']['set']('formatInline:discard',_0x4bf64a),this['_defaultCallbacks']['set']('formatInline:join',_0x280c4f),this['_defaultCallbacks']['set']('formatInline:chain',_0x4bf64a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x23e427),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4bf64a),this['_defaultCallbacks']['set']('formatBlock:join',_0x280c4f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4bf64a);}}function wt(_0x326493,_0x4c7cde,_0x791054){for(const _0xad1fae of _0x4c7cde['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xad1fae['root']==_0xad1fae)return!0x1;if(!_0x791054['containsItem'](_0xad1fae))return!0x1;if(_0x326493['isObject'](_0xad1fae)||_0x326493['isLimit'](_0xad1fae))return!0x0;}}function yt(_0x229be7){return _0x229be7['end']['parent']==_0x229be7['start']['nodeAfter']&&_0x229be7['end']['isAtStart'];}function St(_0x53f817,_0x7ca2cc,_0x24dafa,_0x3a4943){const _0x1cf32d=_0x5ab100=>!_0x5ab100['item']['is']('textProxy')&&!_0x3a4943['isObject'](_0x5ab100['item']),_0xbc7d83=_0x53f817['start']['getLastMatchingPosition'](_0x1cf32d),_0x5ca6d2=_0x53f817['end']['getLastMatchingPosition'](_0x1cf32d,{'direction':'backward'});return(!_0x53f817['start']['isEqual'](_0xbc7d83)||!_0x53f817['end']['isEqual'](_0x5ca6d2))&&(_0xbc7d83['isBefore'](_0x5ca6d2)?_0x24dafa['updateMarker'](_0x7ca2cc,{'range':_0x24dafa['createRange'](_0xbc7d83,_0x5ca6d2)}):_0x24dafa['removeMarker'](_0x7ca2cc),!0x0);}function bt(_0x322d7f){return mt(_0x322d7f);}function It(_0x5cf9d5){const _0x14f6fe=_0x5cf9d5['start']['nodeAfter'];return _0x14f6fe&&_0x14f6fe['is']('element');}function vt(_0x164954,_0x3b98a2){const _0x23b210=_0x3b98a2['schema']['isObject'](_0x164954)||_0x3b98a2['schema']['isSelectable'](_0x164954);return _0x3b98a2['createRange'](_0x3b98a2['createPositionAt'](_0x164954,'before'),_0x23b210?_0x3b98a2['createPositionAfter'](_0x164954):_0x3b98a2['createPositionAt'](_0x164954,'end'));}function Dt(_0x3b7457,_0x5ba0bf,_0x627f27){const _0x3ad442=_0x3b7457['getFirstRange'](),_0x52f330=_0x5ba0bf['getFirstRange']();if(_0x3ad442['end']['isEqual'](_0x52f330['start']))return!0x0;if(_0x3b7457['type']!=_0x5ba0bf['type'])return!0x1;if(!_0x3ad442['end']['isTouching'](_0x52f330['start']))return!0x1;const _0x173a6d=_0x627f27['createRange'](_0x3ad442['end'],_0x52f330['start'])['getWalker']();for(const _0x54fdfc of _0x173a6d)if(['elementStart','elementEnd']['includes'](_0x54fdfc['type'])&&_0x627f27['schema']['isLimit'](_0x54fdfc['item']))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xdd6b1d}from'ckeditor5/src/core';import _0x3245a6 from'./trackchangesediting';import _0xca43d9 from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import Ct from'./ui/suggestioncontroller';import Tt from'./ui/view/suggestionthreadview';import _0x190f4a from'@ckeditor/ckeditor5-collaboration-core/src/users';import xt from'@ckeditor/ckeditor5-comments/src/annotations/editorannotations';import{Collection as Et}from'ckeditor5/src/utils';import{Model as Nt,SplitButtonView as Ut,createDropdown as Wt,addListToDropdown as Ot}from'ckeditor5/src/ui';import Gt from'@ckeditor/ckeditor5-comments/src/utils/getdatetimeformatter';import Mt from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import Pt from'../theme/icons/track-changes.svg';import{debounce as Vt}from'lodash-es';import qt from'@ckeditor/ckeditor5-comments/src/annotations/view/annotationview';import zt from'@ckeditor/ckeditor5-comments/src/annotations/annotation';import Ft from'@ckeditor/ckeditor5-comments/src/annotations/annotations';export default class f extends _0xdd6b1d{static get['requires'](){return[Ft,xt,_0x3245a6,_0xca43d9,_0x190f4a];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x444036){super(_0x444036),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x6d4d2c=this['editor']['config'];_0x6d4d2c['define']('trackChanges.SuggestionThreadView',Tt),_0x6d4d2c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x6d4d2c['get']('trackChanges.disableComments');}['init'](){const _0x1161c3=this['editor'],_0xd717ce=_0x1161c3['plugins']['get'](_0x3245a6),_0x3b3300=_0x1161c3['plugins']['get'](Ft),_0x48de64=_0x1161c3['plugins']['get'](xt),_0x478e39=_0x1161c3['plugins']['get'](_0xca43d9);_0x1161c3['ui']['componentFactory']['add']('trackChanges',_0x51e975=>this['_createUIButton'](_0x51e975)),_0x48de64['addSourceCollector'](()=>{const _0x38d1d2=[];for(const [_0x46dc42,_0x269e41]of Array['from'](this['_suggestionToController'])){const _0x31d963=_0x46dc42['getAllAdjacentSuggestions'](),_0x4b05a3=[];for(const _0x360c15 of _0x31d963){if(!_0x360c15['isInContent'])continue;if(_0x360c15['isMultiRange']){_0x4b05a3['push'](..._0x360c15['getRanges']());continue;}const _0x14cda2=_0x360c15['getFirstRange']();if(_0x4b05a3['length']>0x0){const _0x4e3bd1=_0x4b05a3[0x0]['getJoined'](_0x14cda2);if(_0x4e3bd1){_0x4b05a3[0x0]=_0x4e3bd1;continue;}}_0x4b05a3['push'](_0x14cda2);}_0x38d1d2['push']([_0x269e41['view'],_0x4b05a3]);}return _0x38d1d2;}),this['listenTo'](_0xd717ce,'suggestionLoaded',(_0x595db9,_0x19e809)=>{let _0x5b5a47=!0x1;const _0x3e1aa0=Vt(_0x19d2e8=>{_0x5b5a47||_0x19d2e8?_0x5b5a47&&_0x19d2e8&&(this['_destroyController'](_0x19e809),_0x48de64['refreshSelectedViews'](),_0x5b5a47=!0x1):(this['_initializeController'](_0x19e809),_0x48de64['refreshSelectedViews'](),_0x5b5a47=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x19e809,_0x3e1aa0),this['listenTo'](_0x19e809,'change:previous',(_0x184a55,_0x10cc9f,_0x1bbabf,_0x175fcb)=>{_0x19e809['isInContent']&&(null==_0x1bbabf?(this['_updateController'](_0x175fcb['head']),_0x3e1aa0(!0x1)):(this['_updateController'](_0x1bbabf['head']),_0x3e1aa0(!0x0)));}),null===_0x19e809['previous']?_0x3e1aa0(!0x1):this['_updateController'](_0x19e809['head']);}),this['listenTo'](_0xd717ce,'suggestionUnloaded',(_0x4e1187,_0x49b65e,_0x311f13)=>{this['stopListening'](_0x49b65e,'change:previous'),this['_debouncedHandlers']['get'](_0x49b65e)['cancel'](),this['_debouncedHandlers']['delete'](_0x49b65e);const _0x135179=_0x311f13?_0x311f13['head']:_0x49b65e,_0x878685=this['_suggestionToController']['get'](_0x135179);null!==_0x311f13&&this['_updateController'](_0x135179),null===_0x311f13&&_0x878685&&this['_destroyController'](_0x49b65e);}),this['listenTo'](_0xd717ce,'suggestionChanged',(_0x59563b,_0x3b1b6a)=>{this['_updateController'](_0x3b1b6a);}),this['listenTo'](_0x3b3300,'change:activeAnnotations',(_0x399e05,_0x4179b3,_0x5e0d96)=>{const _0x4f012c=Array['from'](_0x5e0d96,_0x212eb1=>_0x212eb1['innerView'])['filter'](_0xb049f0=>this['_viewToController']['has'](_0xb049f0)),_0x4b3dd0=[];for(const _0x10b7fa of _0x4f012c){const _0x1fe5a2=this['_viewToController']['get'](_0x10b7fa)['model']['getAllAdjacentSuggestions']();_0x4b3dd0['push'](..._0x1fe5a2['reduce']((_0x20a115,_0x16488a)=>[..._0x20a115,..._0x16488a['getMarkerNames']()],[]));}_0xd717ce['activeMarkers']=_0x4b3dd0;}),this['listenTo'](_0x478e39,'addComment',(_0x5e2333,{threadId:_0xf3a7a7,isFromAdapter:_0x5c6074})=>{if(_0x5c6074||!_0xd717ce['hasSuggestion'](_0xf3a7a7))return;const _0x1ad633=_0xd717ce['getSuggestion'](_0xf3a7a7);this['_suggestionToController']['get'](_0x1ad633)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x1d6ddc){const _0x3cc8d1=Wt(_0x1d6ddc,Ut),_0x44fb40=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x3cc8d1['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':Pt}),_0x3cc8d1['buttonView']['bind']('isOn')['to'](_0x44fb40,'value'),_0x3cc8d1['buttonView']['on']('execute',()=>_0x44fb40['execute']());const _0x34e280=new Et(),_0xa8843e=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x4b97f9 of _0xa8843e){const _0x721328={'type':_0x4b97f9['type']};if(_0x4b97f9['model']){const _0x406349=new Nt(_0x4b97f9['model']),_0x17bc36=this['editor']['commands']['get'](_0x406349['commandName']);_0x406349['bind']('isOn','isEnabled')['to'](_0x17bc36,'value','isEnabled'),_0x721328['model']=_0x406349;}_0x34e280['add'](_0x721328);}Ot(_0x3cc8d1,_0x34e280);const _0x1e7a81=_0xa8843e['filter'](_0x433ee6=>null!=_0x433ee6['model'])['map'](_0x9346c4=>this['editor']['commands']['get'](_0x9346c4['model']['commandName']));return _0x3cc8d1['buttonView']['actionView']['unbind']('isEnabled'),_0x3cc8d1['buttonView']['arrowView']['unbind']('isEnabled'),_0x3cc8d1['buttonView']['actionView']['bind']('isEnabled')['to'](_0x44fb40,'isEnabled'),_0x3cc8d1['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0x1e7a81,'isEnabled',(..._0x2e7044)=>_0x2e7044['some'](_0x20bf9e=>_0x20bf9e)),_0x3cc8d1['on']('execute',_0x51334b=>this['editor']['execute'](_0x51334b['source']['commandName'])),_0x3cc8d1;}['_initializeController'](_0x3fab13){const _0x5cfff5=this['editor'],_0x2270f1=_0x5cfff5['config'],_0x42df6f=_0x5cfff5['plugins']['get'](Ft),_0x263e55=_0x3fab13['getAllAdjacentSuggestions']()['filter'](_0xcbbffb=>_0xcbbffb['isInContent']),_0x290630=_0x5cfff5['plugins']['get']('Users')['me'],_0x2eba4d=_0x5cfff5['commands']['get']('acceptSuggestion'),_0x5c472e=_0x5cfff5['commands']['get']('discardSuggestion'),_0x432caa=new(0x0,(_0x2270f1['get']('trackChanges'))['SuggestionThreadView'])(_0x5cfff5['locale'],_0x3fab13,_0x290630,{'disableComments':this['_disableComments'],'editorConfig':_0x2270f1['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2270f1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2270f1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2270f1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':Gt(_0x2270f1['get']('locale')),'CommentView':_0x2270f1['get']('comments')['CommentView']}),_0x285717=new Ct(_0x3fab13,_0x432caa,_0x2eba4d,_0x5c472e);_0x432caa['descriptionParts']=_0x5cfff5['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x263e55),this['_suggestionToController']['set'](_0x3fab13,_0x285717),this['_viewToController']['set'](_0x432caa,_0x285717);const _0x3c282d=new qt(this['editor']['locale'],_0x432caa);_0x3c282d['bind']('isDirty')['to'](_0x432caa,'isDirty'),_0x3c282d['bind']('length')['to'](_0x432caa),_0x3c282d['bind']('type')['to'](_0x432caa,'type',_0x525856=>'suggestion-'+_0x525856);const _0x2be59e=new zt({'view':_0x3c282d,'target':()=>{const _0x2c076d=_0x263e55[0x0]['getFirstMarker']();if(!_0x2c076d)return null;const _0x382e9b=_0x2c076d['getRange']()['getContainedElement']();return _0x382e9b&&!_0x5cfff5['editing']['mapper']['toViewElement'](_0x382e9b)?null:Mt(_0x5cfff5['editing'],_0x2c076d)||null;},'type':()=>'suggestion-'+_0x285717['view']['type']});_0x42df6f['add'](_0x2be59e);const _0x457cd7=_0x5cfff5['plugins']['get']('PendingActions');let _0x3adb49;_0x432caa['on']('change:isDirty',(_0x1aec8,_0x30d2e8,_0x4fb090)=>{if(_0x4fb090){const t=this['editor']['locale']['t'];_0x3adb49=_0x457cd7['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x457cd7['remove'](_0x3adb49),_0x3adb49=null;});}['_destroyController'](_0xbab59d){const _0x1eb701=this['editor']['plugins']['get']('Annotations'),_0xf557cb=this['_suggestionToController']['get'](_0xbab59d),_0x1e8e69=_0xf557cb['view'],_0x44aaf1=_0x1eb701['getByInnerView'](_0x1e8e69);_0x1eb701['remove'](_0x44aaf1),this['_suggestionToController']['delete'](_0xbab59d),this['_viewToController']['delete'](_0x1e8e69),_0xf557cb['destroy'](),_0x1e8e69['destroy']();}['_updateController'](_0xb696b6){if(!_0xb696b6['isInContent']||!this['_suggestionToController']['has'](_0xb696b6))return;const _0x3e2513=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7759bf=this['_suggestionToController']['get'](_0xb696b6),_0xa37eea=_0xb696b6['getAllAdjacentSuggestions']();_0x7759bf['view']['descriptionParts']=_0x3e2513['_descriptionFactory']['getDescriptions'](_0xa37eea);}['destroy'](){super['destroy']();for(const _0x42e83a of this['_suggestionToController']['keys']())this['_destroyController'](_0x42e83a);for(const _0x397041 of this['_debouncedHandlers']['values']())_0x397041['cancel']();this['_debouncedHandlers']['clear']();}}
23
+ import{Plugin as _0x3c04e8}from'ckeditor5/src/core';import _0x18f2e1 from'./trackchangesediting';import _0x532981 from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import Ct from'./ui/suggestioncontroller';import Tt from'./ui/view/suggestionthreadview';import _0xb52340 from'@ckeditor/ckeditor5-collaboration-core/src/users';import xt from'@ckeditor/ckeditor5-comments/src/annotations/editorannotations';import{Collection as Et}from'ckeditor5/src/utils';import{Model as At,SplitButtonView as Nt,createDropdown as Ut,addListToDropdown as Wt}from'ckeditor5/src/ui';import _t from'@ckeditor/ckeditor5-comments/src/utils/getdatetimeformatter';import Ot from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import Gt from'../theme/icons/track-changes.svg';import{debounce as Mt}from'lodash-es';import Pt from'@ckeditor/ckeditor5-comments/src/annotations/view/annotationview';import Vt from'@ckeditor/ckeditor5-comments/src/annotations/annotation';import qt from'@ckeditor/ckeditor5-comments/src/annotations/annotations';export default class f extends _0x3c04e8{static get['requires'](){return[qt,xt,_0x18f2e1,_0x532981,_0xb52340];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5ef2dc){super(_0x5ef2dc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x42a319=this['editor']['config'];_0x42a319['define']('trackChanges.SuggestionThreadView',Tt),_0x42a319['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x42a319['get']('trackChanges.disableComments');}['init'](){const _0x6f0e83=this['editor'],_0x2546a4=_0x6f0e83['plugins']['get'](_0x18f2e1),_0x18d9a2=_0x6f0e83['plugins']['get'](qt),_0x158a10=_0x6f0e83['plugins']['get'](xt),_0x50401b=_0x6f0e83['plugins']['get'](_0x532981);_0x6f0e83['ui']['componentFactory']['add']('trackChanges',_0x35eeb1=>this['_createUIButton'](_0x35eeb1)),_0x158a10['addSourceCollector'](()=>{const _0xc0277=[];for(const [_0x3a7c30,_0xa101c2]of Array['from'](this['_suggestionToController'])){const _0x57a982=_0x3a7c30['getAllAdjacentSuggestions'](),_0x112161=[];for(const _0x189242 of _0x57a982){if(!_0x189242['isInContent'])continue;if(_0x189242['isMultiRange']){_0x112161['push'](..._0x189242['getRanges']());continue;}const _0x80718c=_0x189242['getFirstRange']();if(_0x112161['length']>0x0){const _0x3233d8=_0x112161[0x0]['getJoined'](_0x80718c);if(_0x3233d8){_0x112161[0x0]=_0x3233d8;continue;}}_0x112161['push'](_0x80718c);}_0xc0277['push']([_0xa101c2['view'],_0x112161]);}return _0xc0277;}),this['listenTo'](_0x2546a4,'suggestionLoaded',(_0x19cb71,_0x19b437)=>{let _0x309be0=!0x1;const _0x8300ab=Mt(_0x1a38ba=>{_0x309be0||_0x1a38ba?_0x309be0&&_0x1a38ba&&(this['_destroyController'](_0x19b437),_0x158a10['refreshSelectedViews'](),_0x309be0=!0x1):(this['_initializeController'](_0x19b437),_0x158a10['refreshSelectedViews'](),_0x309be0=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x19b437,_0x8300ab),this['listenTo'](_0x19b437,'change:previous',(_0x35e312,_0x3ffd59,_0x336e80,_0x248d30)=>{_0x19b437['isInContent']&&(null==_0x336e80?(this['_updateController'](_0x248d30['head']),_0x8300ab(!0x1)):(this['_updateController'](_0x336e80['head']),_0x8300ab(!0x0)));}),null===_0x19b437['previous']?_0x8300ab(!0x1):this['_updateController'](_0x19b437['head']);}),this['listenTo'](_0x2546a4,'suggestionUnloaded',(_0x56a522,_0x3ba85a,_0x26ef90)=>{this['stopListening'](_0x3ba85a,'change:previous'),this['_debouncedHandlers']['get'](_0x3ba85a)['cancel'](),this['_debouncedHandlers']['delete'](_0x3ba85a);const _0x19904b=_0x26ef90?_0x26ef90['head']:_0x3ba85a,_0x37480c=this['_suggestionToController']['get'](_0x19904b);null!==_0x26ef90&&this['_updateController'](_0x19904b),null===_0x26ef90&&_0x37480c&&this['_destroyController'](_0x3ba85a);}),this['listenTo'](_0x2546a4,'suggestionChanged',(_0x551ab8,_0x2e4ec7)=>{this['_updateController'](_0x2e4ec7);}),this['listenTo'](_0x18d9a2,'change:activeAnnotations',(_0x1b3321,_0x2f7cb5,_0x2f5579)=>{const _0x38ceba=Array['from'](_0x2f5579,_0x212f65=>_0x212f65['innerView'])['filter'](_0x554693=>this['_viewToController']['has'](_0x554693)),_0x4288ea=[];for(const _0x469dcf of _0x38ceba){const _0x2ca81c=this['_viewToController']['get'](_0x469dcf)['model']['getAllAdjacentSuggestions']();_0x4288ea['push'](..._0x2ca81c['reduce']((_0x5b88a9,_0x8d3b76)=>[..._0x5b88a9,..._0x8d3b76['getMarkerNames']()],[]));}_0x2546a4['activeMarkers']=_0x4288ea;}),this['listenTo'](_0x50401b,'addComment',(_0x1929a,{threadId:_0x442e10,isFromAdapter:_0x3cbeaa})=>{if(_0x3cbeaa||!_0x2546a4['hasSuggestion'](_0x442e10))return;const _0x28cdee=_0x2546a4['getSuggestion'](_0x442e10);this['_suggestionToController']['get'](_0x28cdee)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x1df57d){const _0x2fdbcc=Ut(_0x1df57d,Nt),_0x36605f=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x2fdbcc['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':Gt}),_0x2fdbcc['buttonView']['bind']('isOn')['to'](_0x36605f,'value'),_0x2fdbcc['buttonView']['on']('execute',()=>_0x36605f['execute']());const _0x22e675=new Et(),_0x21de81=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x2f2b86 of _0x21de81){const _0x196c50={'type':_0x2f2b86['type']};if(_0x2f2b86['model']){const _0x431e1a=new At(_0x2f2b86['model']),_0x4b7a2f=this['editor']['commands']['get'](_0x431e1a['commandName']);_0x431e1a['bind']('isOn','isEnabled')['to'](_0x4b7a2f,'value','isEnabled'),_0x196c50['model']=_0x431e1a;}_0x22e675['add'](_0x196c50);}Wt(_0x2fdbcc,_0x22e675);const _0xc8f7e9=_0x21de81['filter'](_0x657c92=>null!=_0x657c92['model'])['map'](_0x5027b7=>this['editor']['commands']['get'](_0x5027b7['model']['commandName']));return _0x2fdbcc['buttonView']['actionView']['unbind']('isEnabled'),_0x2fdbcc['buttonView']['arrowView']['unbind']('isEnabled'),_0x2fdbcc['buttonView']['actionView']['bind']('isEnabled')['to'](_0x36605f,'isEnabled'),_0x2fdbcc['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0xc8f7e9,'isEnabled',(..._0x3fb4e1)=>_0x3fb4e1['some'](_0x51f3c1=>_0x51f3c1)),_0x2fdbcc['on']('execute',_0x53f9a9=>this['editor']['execute'](_0x53f9a9['source']['commandName'])),_0x2fdbcc;}['_initializeController'](_0x5d6e61){const _0x42f055=this['editor'],_0x968f43=_0x42f055['config'],_0x5ec3ad=_0x42f055['plugins']['get'](qt),_0x4c9f92=_0x5d6e61['getAllAdjacentSuggestions']()['filter'](_0x56218e=>_0x56218e['isInContent']),_0x5a749b=_0x42f055['plugins']['get']('Users')['me'],_0x3c17d0=_0x42f055['commands']['get']('acceptSuggestion'),_0xf851b=_0x42f055['commands']['get']('discardSuggestion'),_0x36eebc=new(0x0,(_0x968f43['get']('trackChanges'))['SuggestionThreadView'])(_0x42f055['locale'],_0x5d6e61,_0x5a749b,{'disableComments':this['_disableComments'],'editorConfig':_0x968f43['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x968f43['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x968f43['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x968f43['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_t(_0x968f43['get']('locale')),'CommentView':_0x968f43['get']('comments')['CommentView']}),_0x548a28=new Ct(_0x5d6e61,_0x36eebc,_0x3c17d0,_0xf851b);_0x36eebc['descriptionParts']=_0x42f055['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x4c9f92),this['_suggestionToController']['set'](_0x5d6e61,_0x548a28),this['_viewToController']['set'](_0x36eebc,_0x548a28);const _0x5db46b=new Pt(this['editor']['locale'],_0x36eebc);_0x5db46b['bind']('isDirty')['to'](_0x36eebc,'isDirty'),_0x5db46b['bind']('length')['to'](_0x36eebc),_0x5db46b['bind']('type')['to'](_0x36eebc,'type',_0x493900=>'suggestion-'+_0x493900);const _0x4cc596=new Vt({'view':_0x5db46b,'target':()=>{const _0x2a3bae=_0x4c9f92[0x0]['getFirstMarker']();if(!_0x2a3bae)return null;const _0x5a1581=_0x2a3bae['getRange']()['getContainedElement']();return _0x5a1581&&!_0x42f055['editing']['mapper']['toViewElement'](_0x5a1581)?null:Ot(_0x42f055['editing'],_0x2a3bae)||null;},'type':()=>'suggestion-'+_0x548a28['view']['type']});_0x5ec3ad['add'](_0x4cc596);const _0x35de61=_0x42f055['plugins']['get']('PendingActions');let _0x5c0ede;_0x36eebc['on']('change:isDirty',(_0x50fb78,_0xfa72d5,_0x100153)=>{if(_0x100153){const t=this['editor']['locale']['t'];_0x5c0ede=_0x35de61['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x35de61['remove'](_0x5c0ede),_0x5c0ede=null;});}['_destroyController'](_0x580ca){const _0x51a444=this['editor']['plugins']['get']('Annotations'),_0x1866cb=this['_suggestionToController']['get'](_0x580ca),_0x5ab667=_0x1866cb['view'],_0x4d9021=_0x51a444['getByInnerView'](_0x5ab667);_0x51a444['remove'](_0x4d9021),this['_suggestionToController']['delete'](_0x580ca),this['_viewToController']['delete'](_0x5ab667),_0x1866cb['destroy'](),_0x5ab667['destroy']();}['_updateController'](_0x2acd56){if(!_0x2acd56['isInContent']||!this['_suggestionToController']['has'](_0x2acd56))return;const _0x4163b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16536b=this['_suggestionToController']['get'](_0x2acd56),_0x49e7d0=_0x2acd56['getAllAdjacentSuggestions']();_0x16536b['view']['descriptionParts']=_0x4163b6['_descriptionFactory']['getDescriptions'](_0x49e7d0);}['destroy'](){super['destroy']();for(const _0x426cf5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x426cf5);for(const _0x4a24c1 of this['_debouncedHandlers']['values']())_0x4a24c1['cancel']();this['_debouncedHandlers']['clear']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xf73e=['destroy','model','listenTo','discardSuggestion','view','stopListening','execute','isEnabled','commentThread','_acceptCommand','acceptSuggestion'];(function(_0x35dd9e,_0xf73ef6){var _0x4a952e=function(_0x5821d1){while(--_0x5821d1){_0x35dd9e['push'](_0x35dd9e['shift']());}};_0x4a952e(++_0xf73ef6);}(_0xf73e,0x146));var _0x4a95=function(_0x35dd9e,_0xf73ef6){_0x35dd9e=_0x35dd9e-0x0;var _0x4a952e=_0xf73e[_0x35dd9e];return _0x4a952e;};import{ObservableMixin as _0x5aa031,mix as _0x2144fa}from'ckeditor5/src/utils';import _0x337615 from'@ckeditor/ckeditor5-comments/src/comments/ui/commentthreadcontroller';export default class Ct{constructor(_0x25565f,_0xd93c8f,_0xd8fce,_0x3c15c7){this[_0x4a95('0x5')]=_0x25565f,this[_0x4a95('0x8')]=_0xd93c8f,this['commentThreadController']=new _0x337615(_0x25565f[_0x4a95('0x1')],_0xd93c8f),this[_0x4a95('0x2')]=_0xd8fce,this['_discardCommand']=_0x3c15c7,this[_0x4a95('0x8')]['bind'](_0x4a95('0x0'))['to'](this[_0x4a95('0x2')]),this[_0x4a95('0x6')](_0xd93c8f,'acceptSuggestion',()=>this[_0x4a95('0x3')]()),this[_0x4a95('0x6')](_0xd93c8f,_0x4a95('0x7'),()=>this[_0x4a95('0x7')]());}[_0x4a95('0x3')](){this[_0x4a95('0x2')][_0x4a95('0xa')](this['model']['id']);}[_0x4a95('0x7')](){this['_discardCommand'][_0x4a95('0xa')](this[_0x4a95('0x5')]['id']);}[_0x4a95('0x4')](){this[_0x4a95('0x8')]['unbind'](_0x4a95('0x0')),this[_0x4a95('0x9')](),this['commentThreadController'][_0x4a95('0x4')]();}}_0x2144fa(Ct,_0x5aa031);
23
+ var _0x380d=['listenTo','bind','stopListening','view','commentThread','isEnabled','discardSuggestion','acceptSuggestion','_discardCommand','model','_acceptCommand'];(function(_0x26f0ec,_0x380d4b){var _0x48b08f=function(_0x66ef03){while(--_0x66ef03){_0x26f0ec['push'](_0x26f0ec['shift']());}};_0x48b08f(++_0x380d4b);}(_0x380d,0x107));var _0x48b0=function(_0x26f0ec,_0x380d4b){_0x26f0ec=_0x26f0ec-0x0;var _0x48b08f=_0x380d[_0x26f0ec];return _0x48b08f;};import{ObservableMixin as _0x2ef0d1,mix as _0x53be8e}from'ckeditor5/src/utils';import _0x5657e5 from'@ckeditor/ckeditor5-comments/src/comments/ui/commentthreadcontroller';export default class Ct{constructor(_0x1ef0ea,_0x5104dd,_0x14bda9,_0x550730){this[_0x48b0('0xa')]=_0x1ef0ea,this[_0x48b0('0x4')]=_0x5104dd,this['commentThreadController']=new _0x5657e5(_0x1ef0ea[_0x48b0('0x5')],_0x5104dd),this[_0x48b0('0x0')]=_0x14bda9,this[_0x48b0('0x9')]=_0x550730,this['view'][_0x48b0('0x2')](_0x48b0('0x6'))['to'](this[_0x48b0('0x0')]),this[_0x48b0('0x1')](_0x5104dd,_0x48b0('0x8'),()=>this[_0x48b0('0x8')]()),this['listenTo'](_0x5104dd,_0x48b0('0x7'),()=>this[_0x48b0('0x7')]());}[_0x48b0('0x8')](){this[_0x48b0('0x0')]['execute'](this[_0x48b0('0xa')]['id']);}[_0x48b0('0x7')](){this[_0x48b0('0x9')]['execute'](this[_0x48b0('0xa')]['id']);}['destroy'](){this[_0x48b0('0x4')]['unbind']('isEnabled'),this[_0x48b0('0x3')](),this['commentThreadController']['destroy']();}}_0x53be8e(Ct,_0x2ef0d1);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fd5=['disabledSubmit','_model','commentThread','commentInputView','descriptionParts','commentsListView','disableComments','createdAt','value','CommentView','set','isEnabled','delegate','_createCommentViews','editor','destroy','isActive','fire','focus','commentThreadInputView','addComment','removeComment','locale','editorConfig','setData','assign','isDirty','updateComment','isReadOnly','_localUser','_createCommentThreadInputView','bind','element','_config','length'];(function(_0x19a8eb,_0x2fd54f){const _0x229e84=function(_0x38806b){while(--_0x38806b){_0x19a8eb['push'](_0x19a8eb['shift']());}};_0x229e84(++_0x2fd54f);}(_0x2fd5,0xcf));const _0x229e=function(_0x19a8eb,_0x2fd54f){_0x19a8eb=_0x19a8eb-0x0;let _0x229e84=_0x2fd5[_0x19a8eb];return _0x229e84;};import{View as _0x594607}from'ckeditor5/src/ui';import _0x580952 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentslistview';import _0x11dd62 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentthreadinputview';export default class ei extends _0x594607{constructor(_0x3c4ee7,_0x318c21,_0x51a20f,_0x490156){super(_0x3c4ee7),this[_0x229e('0x8')]=null,this['commentThreadInputView']=null,this[_0x229e('0xd')](_0x229e('0x13'),!0x1),this[_0x229e('0xd')](_0x229e('0xa'),_0x318c21[_0x229e('0xa')]),this[_0x229e('0x22')](_0x229e('0xa'))['to'](_0x318c21),this[_0x229e('0xd')](_0x229e('0x7'),[]),this[_0x229e('0xd')]('isDirty',!0x1),this[_0x229e('0xd')](_0x229e('0xe'),!0x1),this[_0x229e('0x4')]=_0x318c21,this[_0x229e('0x20')]=_0x51a20f,this[_0x229e('0x1')]=_0x490156,_0x490156[_0x229e('0x9')]?this[_0x229e('0xd')](_0x229e('0x2'),0x1):this[_0x229e('0x10')]();}['focus'](){this[_0x229e('0x0')]['focus']();}[_0x229e('0x12')](){this[_0x229e('0x1d')]=!0x1,this['commentsListView']&&this[_0x229e('0x8')][_0x229e('0x12')](),this[_0x229e('0x16')]&&this[_0x229e('0x16')]['destroy'](),super['destroy']();}[_0x229e('0x10')](){this[_0x229e('0x8')]=new _0x580952(this[_0x229e('0x19')],this['_model'][_0x229e('0x5')],Object[_0x229e('0x1c')]({'CommentView':this[_0x229e('0x1')][_0x229e('0xc')]},this[_0x229e('0x1')])),this[_0x229e('0x8')]['delegate'](_0x229e('0x18'))['to'](this),this[_0x229e('0x8')][_0x229e('0xf')](_0x229e('0x1e'))['to'](this),this[_0x229e('0x8')]['bind'](_0x229e('0x13'))['to'](this),this[_0x229e('0xd')](_0x229e('0x2'),this[_0x229e('0x8')][_0x229e('0x2')]+0x1),this['bind'](_0x229e('0x2'))['to'](this[_0x229e('0x8')],_0x229e('0x2'),_0x5addf4=>_0x5addf4+0x1),this['commentThreadInputView']=this[_0x229e('0x21')](),this['on'](_0x229e('0x18'),()=>this[_0x229e('0x15')]()),this[_0x229e('0x22')](_0x229e('0x1d'))['to'](this[_0x229e('0x8')],'hasDirtyComment',this[_0x229e('0x16')][_0x229e('0x6')],'value',(_0x53124c,_0x1ce401)=>_0x53124c||!!_0x1ce401);}[_0x229e('0x21')](){const _0x151e5b=new _0x11dd62(this[_0x229e('0x19')],this['_localUser'],this['_config'][_0x229e('0x1a')]),_0x347bf2=_0x151e5b['commentInputView'];return _0x151e5b[_0x229e('0x22')]('showInput')['to'](this,_0x229e('0x13'),this[_0x229e('0x4')][_0x229e('0x5')],_0x229e('0x1f'),_0x347bf2,_0x229e('0xb'),(_0x2c19e1,_0x2001c8,_0x374fd4)=>!!_0x374fd4||_0x2c19e1&&!_0x2001c8),_0x347bf2['on']('submit',(_0x6241f3,_0x187c6b)=>{this[_0x229e('0x14')](_0x229e('0x17'),_0x187c6b),_0x347bf2[_0x229e('0x11')][_0x229e('0x1b')]('');}),_0x347bf2['on']('cancel',()=>this[_0x229e('0x15')]()),_0x347bf2[_0x229e('0x22')](_0x229e('0x3'))['to'](this[_0x229e('0x4')][_0x229e('0x5')],_0x229e('0x1f')),_0x151e5b;}}
23
+ const _0x2985=['CommentView','delegate','showInput','isActive','editorConfig','hasDirtyComment','submit','updateComment','commentThreadInputView','value','locale','disableComments','cancel','assign','destroy','removeComment','_config','addComment','commentInputView','set','fire','createdAt','descriptionParts','_createCommentViews','length','_model','isReadOnly','_createCommentThreadInputView','isDirty','setData','commentThread','bind','focus','editor','isEnabled','_localUser','commentsListView'];(function(_0x3500a5,_0x298591){const _0x7bbb77=function(_0x49cdcd){while(--_0x49cdcd){_0x3500a5['push'](_0x3500a5['shift']());}};_0x7bbb77(++_0x298591);}(_0x2985,0x142));const _0x7bbb=function(_0x3500a5,_0x298591){_0x3500a5=_0x3500a5-0x0;let _0x7bbb77=_0x2985[_0x3500a5];return _0x7bbb77;};import{View as _0x54dd2a}from'ckeditor5/src/ui';import _0x3afd37 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentslistview';import _0x435bea from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentthreadinputview';export default class ei extends _0x54dd2a{constructor(_0x5f5989,_0x2c4742,_0x5ab86f,_0x4657f8){super(_0x5f5989),this['commentsListView']=null,this[_0x7bbb('0x13')]=null,this[_0x7bbb('0x1e')](_0x7bbb('0xe'),!0x1),this[_0x7bbb('0x1e')](_0x7bbb('0x20'),_0x2c4742['createdAt']),this[_0x7bbb('0x5')](_0x7bbb('0x20'))['to'](_0x2c4742),this['set'](_0x7bbb('0x21'),[]),this[_0x7bbb('0x1e')](_0x7bbb('0x2'),!0x1),this[_0x7bbb('0x1e')](_0x7bbb('0x8'),!0x1),this[_0x7bbb('0x24')]=_0x2c4742,this[_0x7bbb('0x9')]=_0x5ab86f,this[_0x7bbb('0x1b')]=_0x4657f8,_0x4657f8[_0x7bbb('0x16')]?this['set'](_0x7bbb('0x23'),0x1):this[_0x7bbb('0x22')]();}['focus'](){this['element']['focus']();}[_0x7bbb('0x19')](){this[_0x7bbb('0x2')]=!0x1,this[_0x7bbb('0xa')]&&this[_0x7bbb('0xa')]['destroy'](),this[_0x7bbb('0x13')]&&this['commentThreadInputView'][_0x7bbb('0x19')](),super[_0x7bbb('0x19')]();}[_0x7bbb('0x22')](){this[_0x7bbb('0xa')]=new _0x3afd37(this[_0x7bbb('0x15')],this[_0x7bbb('0x24')][_0x7bbb('0x4')],Object[_0x7bbb('0x18')]({'CommentView':this[_0x7bbb('0x1b')][_0x7bbb('0xb')]},this['_config'])),this['commentsListView'][_0x7bbb('0xc')](_0x7bbb('0x1a'))['to'](this),this['commentsListView'][_0x7bbb('0xc')](_0x7bbb('0x12'))['to'](this),this[_0x7bbb('0xa')][_0x7bbb('0x5')]('isActive')['to'](this),this['set'](_0x7bbb('0x23'),this[_0x7bbb('0xa')][_0x7bbb('0x23')]+0x1),this[_0x7bbb('0x5')]('length')['to'](this[_0x7bbb('0xa')],_0x7bbb('0x23'),_0x3ddee2=>_0x3ddee2+0x1),this[_0x7bbb('0x13')]=this[_0x7bbb('0x1')](),this['on'](_0x7bbb('0x1a'),()=>this[_0x7bbb('0x6')]()),this[_0x7bbb('0x5')](_0x7bbb('0x2'))['to'](this[_0x7bbb('0xa')],_0x7bbb('0x10'),this[_0x7bbb('0x13')][_0x7bbb('0x1d')],_0x7bbb('0x14'),(_0x544f0b,_0x444a1c)=>_0x544f0b||!!_0x444a1c);}['_createCommentThreadInputView'](){const _0x4e4856=new _0x435bea(this[_0x7bbb('0x15')],this[_0x7bbb('0x9')],this[_0x7bbb('0x1b')][_0x7bbb('0xf')]),_0x20e0b2=_0x4e4856[_0x7bbb('0x1d')];return _0x4e4856[_0x7bbb('0x5')](_0x7bbb('0xd'))['to'](this,'isActive',this[_0x7bbb('0x24')]['commentThread'],_0x7bbb('0x0'),_0x20e0b2,_0x7bbb('0x14'),(_0x189999,_0x4cb541,_0x4475ef)=>!!_0x4475ef||_0x189999&&!_0x4cb541),_0x20e0b2['on'](_0x7bbb('0x11'),(_0x41968b,_0x286b4e)=>{this[_0x7bbb('0x1f')](_0x7bbb('0x1c'),_0x286b4e),_0x20e0b2[_0x7bbb('0x7')][_0x7bbb('0x3')]('');}),_0x20e0b2['on'](_0x7bbb('0x17'),()=>this[_0x7bbb('0x6')]()),_0x20e0b2[_0x7bbb('0x5')]('disabledSubmit')['to'](this[_0x7bbb('0x24')][_0x7bbb('0x4')],_0x7bbb('0x0')),_0x4e4856;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x14c94 from'./basesuggestionthreadview';import _0x31db99 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{ButtonView as _0x449f4a}from'ckeditor5/src/ui';import{icons as _0x494486}from'ckeditor5/src/core';import _0x112b0b from'@ckeditor/ckeditor5-comments/src/utils/trim-html';export default class Tt extends _0x14c94{constructor(_0x221537,_0x15ba7f,_0x4c4435,_0x29b0a8){super(_0x221537,_0x15ba7f,_0x4c4435,_0x29b0a8);const {t:t}=_0x221537;this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x46cf36=>_0x46cf36&&_0x46cf36[0x0]?_0x46cf36[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4dc70d,_0x107f24)=>{let _0x5f5d84='';for(const _0x51cfbe of _0x4dc70d)_0x5f5d84+='<p>'+ri(_0x51cfbe['content'])+'</p>';return _0x107f24?_0x5f5d84:_0x112b0b(_0x5f5d84,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](t('Accept\x20suggestion'),_0x494486['check'],'ck-suggestion--accept','acceptSuggestion'),this['discardButton']=this['_createButton'](t('Discard\x20suggestion'),_0x494486['cancel'],'ck-suggestion--discard','discardSuggestion'),this['userView']=new _0x31db99(_0x221537,this['_model']['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x55a1e0=this['bindTemplate'],_0x1a5e8b={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x55a1e0['if']('isActive','ck-suggestion-wrapper--active'),_0x55a1e0['to']('type',_0x5ca852=>'ck-suggestion-'+_0x5ca852),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x55a1e0['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x55a1e0['to']('createdAt',_0x331df5=>this['_config']['formatDateTime'](_0x331df5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this['commentsListView']&&this['commentThreadInputView']&&_0x1a5e8b['children']['push'](this['commentsListView'],this['commentThreadInputView']),_0x1a5e8b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3dc413,_0x4b2c90,_0x23ab2f)=>{this['_descriptionElement']['innerHTML']=_0x23ab2f;});}['_createButton'](_0x2899e5,_0x3c86be,_0x3355fe,_0x228bb0){const _0x124a55=new _0x449f4a(this['locale']);return _0x124a55['set']({'label':_0x2899e5,'icon':_0x3c86be,'tooltip':!0x0}),_0x124a55['extendTemplate']({'attributes':{'class':_0x3355fe}}),_0x124a55['on']('execute',()=>{this['fire'](_0x228bb0,this['_model']['id']);}),_0x124a55['bind']('isEnabled')['to'](this),_0x124a55;}}function ri(_0x2d8137){let _0x267014='';return _0x267014+=_0x2d8137['split']('*')['map']((_0x3c9735,_0x54c287)=>_0x54c287%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+hi(_0x3c9735)+'</span>':hi(_0x3c9735))['join'](''),_0x267014;}function hi(_0x2c7939){const _0x1d0d61=document['createElement']('span');return _0x1d0d61['innerText']=_0x2c7939,_0x1d0d61['innerHTML'];}
23
+ import _0x1943b2 from'./basesuggestionthreadview';import _0x43aa18 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{ButtonView as _0x221443}from'ckeditor5/src/ui';import{icons as _0x5e726c}from'ckeditor5/src/core';import _0x475684 from'@ckeditor/ckeditor5-comments/src/utils/trim-html';export default class Tt extends _0x1943b2{constructor(_0x59a487,_0x50098b,_0x2530cb,_0x129cc7){super(_0x59a487,_0x50098b,_0x2530cb,_0x129cc7);const {t:t}=_0x59a487;this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x586182=>_0x586182&&_0x586182[0x0]?_0x586182[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x119a1f,_0x329ebb)=>{let _0x124667='';for(const _0x3b3c84 of _0x119a1f)_0x124667+='<p>'+as(_0x3b3c84['content'],_0x3b3c84['color'])+'</p>';return _0x329ebb?_0x124667:_0x475684(_0x124667,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](t('Accept\x20suggestion'),_0x5e726c['check'],'ck-suggestion--accept','acceptSuggestion'),this['discardButton']=this['_createButton'](t('Discard\x20suggestion'),_0x5e726c['cancel'],'ck-suggestion--discard','discardSuggestion'),this['userView']=new _0x43aa18(_0x59a487,this['_model']['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0x1f04f7=this['bindTemplate'],_0x41e3ee={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1f04f7['if']('isActive','ck-suggestion-wrapper--active'),_0x1f04f7['to']('type',_0x32ca7c=>'ck-suggestion-'+_0x32ca7c),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1f04f7['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1f04f7['to']('createdAt',_0x3e9971=>this['_config']['formatDateTime'](_0x3e9971))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this['commentsListView']&&this['commentThreadInputView']&&_0x41e3ee['children']['push'](this['commentsListView'],this['commentThreadInputView']),_0x41e3ee;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1879d5,_0x3e6469,_0x27c2d1)=>{this['_descriptionElement']['innerHTML']=_0x27c2d1;});}['_createButton'](_0x39317f,_0x505bc5,_0xd2cedb,_0x4357a6){const _0x250e9d=new _0x221443(this['locale']);return _0x250e9d['set']({'label':_0x39317f,'icon':_0x505bc5,'tooltip':!0x0}),_0x250e9d['extendTemplate']({'attributes':{'class':_0xd2cedb}}),_0x250e9d['on']('execute',()=>{this['fire'](_0x4357a6,this['_model']['id']);}),_0x250e9d['bind']('isEnabled')['to'](this),_0x250e9d;}}function as(_0x415208,_0x5daadb){let _0x2f5020='';return _0x2f5020+=_0x415208['split']('*')['map']((_0x5aeec9,_0x4a2dc2)=>_0x4a2dc2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rs(_0x5aeec9)+'</span>':rs(_0x5aeec9))['join'](''),_0x5daadb&&(_0x2f5020+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5daadb['value']+'\x22\x20title=\x22'+_0x5daadb['title']+'\x22></span>'),_0x2f5020;}function rs(_0x464642){const _0x59ca4a=document['createElement']('span');return _0x59ca4a['innerText']=_0x464642,_0x59ca4a['innerHTML'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfee8=['next','isTouching','isInContent','getRange','isMultiRange','getRanges','from','isIntersecting','start','isCollapsed'];(function(_0xab575b,_0xfee898){const _0xe1baf=function(_0x4d6450){while(--_0x4d6450){_0xab575b['push'](_0xab575b['shift']());}};_0xe1baf(++_0xfee898);}(_0xfee8,0x90));const _0xe1ba=function(_0xab575b,_0xfee898){_0xab575b=_0xab575b-0x0;let _0xe1baf=_0xfee8[_0xab575b];return _0xe1baf;};export default function jt(_0x10a455,_0x31336f){const _0x578a4b=Array[_0xe1ba('0x2')](_0x10a455[_0xe1ba('0x1')]()),_0x2ff8c9=new Set();for(const _0x287ab6 of _0x31336f)if(_0x287ab6[_0xe1ba('0x8')])for(const _0x57fdb7 of _0x578a4b)for(const _0xefff19 of _0x287ab6['getMarkers']()){const _0x351408=_0xefff19[_0xe1ba('0x9')]();(_0x57fdb7[_0xe1ba('0x3')](_0x351408)||_0x10a455[_0xe1ba('0x5')]&&!_0x287ab6[_0xe1ba('0x0')]&&_0x287ab6[_0xe1ba('0x6')]&&_0x351408['end'][_0xe1ba('0x7')](_0x57fdb7[_0xe1ba('0x4')]))&&_0x2ff8c9['add'](_0x287ab6);}return _0x2ff8c9;}
23
+ const _0x4608=['getRange','getMarkers','isTouching','isCollapsed','end','add','isInContent','isIntersecting','isMultiRange','from'];(function(_0x197bd8,_0x46081f){const _0x392186=function(_0x28825c){while(--_0x28825c){_0x197bd8['push'](_0x197bd8['shift']());}};_0x392186(++_0x46081f);}(_0x4608,0xcf));const _0x3921=function(_0x197bd8,_0x46081f){_0x197bd8=_0x197bd8-0x0;let _0x392186=_0x4608[_0x197bd8];return _0x392186;};export default function jt(_0x3cb2c5,_0x58d9f9){const _0x4cdb06=Array[_0x3921('0x2')](_0x3cb2c5['getRanges']()),_0x29463b=new Set();for(const _0x39b2a7 of _0x58d9f9)if(_0x39b2a7[_0x3921('0x9')])for(const _0x58c96c of _0x4cdb06)for(const _0x520202 of _0x39b2a7[_0x3921('0x4')]()){const _0x128871=_0x520202[_0x3921('0x3')]();(_0x58c96c[_0x3921('0x0')](_0x128871)||_0x3cb2c5[_0x3921('0x6')]&&!_0x39b2a7[_0x3921('0x1')]&&_0x39b2a7['next']&&_0x128871[_0x3921('0x7')][_0x3921('0x5')](_0x58c96c['start']))&&_0x29463b[_0x3921('0x8')](_0x39b2a7);}return _0x29463b;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a67=['string','isArray','sign','number','keys','toString','charCodeAt'];(function(_0x35fa40,_0x4a6799){const _0x3d6a51=function(_0x2756a7){while(--_0x2756a7){_0x35fa40['push'](_0x35fa40['shift']());}};_0x3d6a51(++_0x4a6799);}(_0x4a67,0x146));const _0x3d6a=function(_0x35fa40,_0x4a6799){_0x35fa40=_0x35fa40-0x0;let _0x3d6a51=_0x4a67[_0x35fa40];return _0x3d6a51;};export default function wt(_0x6dbf06){let _0x2f0d69=0x0,_0x4997e3=0x0;for(const _0x3a95fe of je(_0x6dbf06))_0x2f0d69=(_0x2f0d69<<0x5)-_0x2f0d69+_0x3a95fe,_0x2f0d69&=_0x2f0d69,[_0x2f0d69,_0x4997e3]=[_0x4997e3,_0x2f0d69];return Ae(_0x2f0d69)+Ae(_0x4997e3);}function*ye(_0x502044){_0x502044?'boolean'==typeof _0x502044?yield 0x1:Array[_0x3d6a('0x4')](_0x502044)?yield*function*(_0x54368d){for(const _0x1603b3 of _0x54368d)yield*ye(_0x1603b3);}(_0x502044):'object'==typeof _0x502044?yield*je(_0x502044):_0x3d6a('0x3')==typeof _0x502044?yield*he(_0x502044):_0x3d6a('0x6')==typeof _0x502044&&(yield _0x502044):yield 0x0;}function*je(_0x5465ac){if(yield xe('{'),_0x5465ac){const _0x17d123=Object[_0x3d6a('0x0')](_0x5465ac)['sort']();for(const _0xfe25b5 of _0x17d123){yield*he(_0xfe25b5),yield xe(':');const _0x34f7d9=_0x5465ac[_0xfe25b5];yield*ye(_0x34f7d9);}}yield xe('}');}function*he(_0x13332c){yield xe('\x22');for(const _0x341390 of _0x13332c)yield xe(_0x341390);yield xe('\x22');}function xe(_0x8b17c3){return _0x8b17c3[_0x3d6a('0x2')](0x0);}function Ae(_0x5d95e7){return(_0x5d95e7*=Math[_0x3d6a('0x5')](_0x5d95e7))[_0x3d6a('0x1')](0x24);}
23
+ const _0x5af7=['sort','toString','sign','object','boolean','string','isArray','number'];(function(_0x3244cb,_0x5af7b6){const _0x156ec4=function(_0x1b72ce){while(--_0x1b72ce){_0x3244cb['push'](_0x3244cb['shift']());}};_0x156ec4(++_0x5af7b6);}(_0x5af7,0x137));const _0x156e=function(_0x3244cb,_0x5af7b6){_0x3244cb=_0x3244cb-0x0;let _0x156ec4=_0x5af7[_0x3244cb];return _0x156ec4;};export default function mt(_0x2eae94){let _0xb259f7=0x0,_0x1b09ca=0x0;for(const _0x5bae2a of pe(_0x2eae94))_0xb259f7=(_0xb259f7<<0x5)-_0xb259f7+_0x5bae2a,_0xb259f7&=_0xb259f7,[_0xb259f7,_0x1b09ca]=[_0x1b09ca,_0xb259f7];return xe(_0xb259f7)+xe(_0x1b09ca);}function*ye(_0x281e5c){_0x281e5c?_0x156e('0x5')==typeof _0x281e5c?yield 0x1:Array[_0x156e('0x7')](_0x281e5c)?yield*function*(_0x5cfd8f){for(const _0x349ed2 of _0x5cfd8f)yield*ye(_0x349ed2);}(_0x281e5c):_0x156e('0x4')==typeof _0x281e5c?yield*pe(_0x281e5c):_0x156e('0x6')==typeof _0x281e5c?yield*je(_0x281e5c):_0x156e('0x0')==typeof _0x281e5c&&(yield _0x281e5c):yield 0x0;}function*pe(_0x42374c){if(yield he('{'),_0x42374c){const _0x220dd3=Object['keys'](_0x42374c)[_0x156e('0x1')]();for(const _0x31c1e2 of _0x220dd3){yield*je(_0x31c1e2),yield he(':');const _0x55179f=_0x42374c[_0x31c1e2];yield*ye(_0x55179f);}}yield he('}');}function*je(_0x118543){yield he('\x22');for(const _0x4ba3ca of _0x118543)yield he(_0x4ba3ca);yield he('\x22');}function he(_0x3037a4){return _0x3037a4['charCodeAt'](0x0);}function xe(_0xdf20d0){return(_0xdf20d0*=Math[_0x156e('0x3')](_0xdf20d0))[_0x156e('0x2')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x35fd=['content','isArray'];(function(_0x4d41f8,_0x35fd30){var _0x1bbc37=function(_0x1eaf2e){while(--_0x1eaf2e){_0x4d41f8['push'](_0x4d41f8['shift']());}};_0x1bbc37(++_0x35fd30);}(_0x35fd,0x1a8));var _0x1bbc=function(_0x4d41f8,_0x35fd30){_0x4d41f8=_0x4d41f8-0x0;var _0x1bbc37=_0x35fd[_0x4d41f8];return _0x1bbc37;};export function normalizeDescription(_0x204db9){return Array[_0x1bbc('0x1')](_0x204db9)||(_0x204db9=[_0x204db9]),_0x204db9['map'](_0x2173bb=>'['+_0x2173bb['type']+']\x20'+_0x2173bb[_0x1bbc('0x0')]['replace'](/\*/g,''))['join'](';\x20');}
23
+ const _0x2246=['isArray','value','replace','color','type','map'];(function(_0x357988,_0x2246d1){const _0x45bf5a=function(_0x34eab3){while(--_0x34eab3){_0x357988['push'](_0x357988['shift']());}};_0x45bf5a(++_0x2246d1);}(_0x2246,0x144));const _0x45bf=function(_0x357988,_0x2246d1){_0x357988=_0x357988-0x0;let _0x45bf5a=_0x2246[_0x357988];return _0x45bf5a;};export function normalizeDescription(_0x4d3b2d){return Array[_0x45bf('0x0')](_0x4d3b2d)||(_0x4d3b2d=[_0x4d3b2d]),_0x4d3b2d[_0x45bf('0x5')](_0xdaa59e=>{const _0x220ad6=_0xdaa59e['content'][_0x45bf('0x2')](/\*/g,''),_0x4121ef=_0xdaa59e[_0x45bf('0x3')]?'\x20[color\x20'+_0xdaa59e[_0x45bf('0x3')][_0x45bf('0x1')]+']':'';return'['+_0xdaa59e[_0x45bf('0x4')]+']\x20'+_0x220ad6+_0x4121ef;})['join'](';\x20');}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x251b=['deletion','type','sort'];(function(_0x27fefb,_0x251b13){var _0x4d9bc7=function(_0x4d8fda){while(--_0x4d8fda){_0x27fefb['push'](_0x27fefb['shift']());}};_0x4d9bc7(++_0x251b13);}(_0x251b,0x10c));var _0x4d9b=function(_0x27fefb,_0x251b13){_0x27fefb=_0x27fefb-0x0;var _0x4d9bc7=_0x251b[_0x27fefb];return _0x4d9bc7;};export default function ts(_0x32199e){return _0x32199e[_0x4d9b('0x1')]((_0x2130ce,_0x3ab6cd)=>_0x4d9b('0x2')==_0x2130ce[_0x4d9b('0x0')]&&_0x4d9b('0x2')!=_0x3ab6cd[_0x4d9b('0x0')]?-0x1:_0x4d9b('0x2')!=_0x2130ce[_0x4d9b('0x0')]&&_0x4d9b('0x2')==_0x3ab6cd[_0x4d9b('0x0')]?0x1:0x0);}
23
+ var _0x4555=['deletion','type'];(function(_0x16af29,_0x455505){var _0x1664da=function(_0x529dcc){while(--_0x529dcc){_0x16af29['push'](_0x16af29['shift']());}};_0x1664da(++_0x455505);}(_0x4555,0xc3));var _0x1664=function(_0x16af29,_0x455505){_0x16af29=_0x16af29-0x0;var _0x1664da=_0x4555[_0x16af29];return _0x1664da;};export default function ts(_0x2e1d22){return _0x2e1d22['sort']((_0x2afab7,_0x120138)=>_0x1664('0x1')==_0x2afab7[_0x1664('0x0')]&&_0x1664('0x1')!=_0x120138[_0x1664('0x0')]?-0x1:_0x1664('0x1')!=_0x2afab7[_0x1664('0x0')]&&_0x1664('0x1')==_0x120138[_0x1664('0x0')]?0x1:0x0);}