@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240131.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 (67) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x321d=['isExternal','from','hasComments','map','@external','isIntersectingWithRange','addMarkerName','setAttribute','onDiscard','nodeAfter','length','subType','addRange','head','next','_saved','delete','accept','author','isInContent','add','clear','nodeBefore','change','getAllAdjacentSuggestions','_onAttributesChange','getMultiRangeId','creator','type','removeAttribute','removeMarker','getMarkers','suggestion:','push','createdAt','isMultiRange','getFirstRange','onAccept','getFirstMarker','authoredAt','discard','toJSON','set','removeMarkers','_model','_isDataLoaded','getRanges','_onDiscard','getContainedElement','commentThread','attributes','start','addMarker','decorate','previous','getItems','_markerNames','getRange','onAttributesChange','getMarkerNames','data'];(function(_0x1cdba0,_0x321d7f){const _0x13a8e2=function(_0x4b9d4d){while(--_0x4b9d4d){_0x1cdba0['push'](_0x1cdba0['shift']());}};_0x13a8e2(++_0x321d7f);}(_0x321d,0xdd));const _0x13a8=function(_0x1cdba0,_0x321d7f){_0x1cdba0=_0x1cdba0-0x0;let _0x13a8e2=_0x321d[_0x1cdba0];return _0x13a8e2;};import{Element as _0x3a9ec2}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x2f2bbe,uid as _0x4898b0}from'ckeditor5/src/utils.js';import{cloneDeep as _0x46114c,isEqual as _0x39e7a0,set as _0x5220ec,unset as _0x1157b0}from'lodash-es';export default class u extends _0x2f2bbe(){constructor(_0x3607e0,_0x5280c6){super(),this[_0x13a8('0x7')]=!0x1,this['id']=_0x5280c6['id'],this['type']=_0x5280c6[_0x13a8('0x33')],this['subType']=_0x5280c6[_0x13a8('0x22')]||null,this[_0x13a8('0x29')]=_0x5280c6[_0x13a8('0x29')],this[_0x13a8('0x32')]=_0x5280c6[_0x13a8('0x32')]||_0x5280c6[_0x13a8('0x29')],this[_0x13a8('0x17')]=Boolean(_0x5280c6['attributes']&&_0x5280c6['attributes'][_0x13a8('0x1b')]),this['data']=null,this['_model']=_0x3607e0,this['_onAccept']=_0x5280c6[_0x13a8('0x3c')],this[_0x13a8('0x9')]=_0x5280c6[_0x13a8('0x1f')],this[_0x13a8('0x30')]=_0x5280c6[_0x13a8('0x14')],this[_0x13a8('0x12')]=new Set(),this['createdAt']=null,this['set'](_0x13a8('0x1'),null),this[_0x13a8('0x4')](_0x13a8('0xc'),_0x5280c6['attributes']||{}),this[_0x13a8('0x4')]('previous',null),this['set']('next',null),this[_0x13a8('0x4')]('commentThread',null),this[_0x13a8('0x4')](_0x13a8('0x26'),!0x1),this[_0x13a8('0xf')](_0x13a8('0x28')),this['decorate'](_0x13a8('0x2'));}get[_0x13a8('0x24')](){let _0x5c7ab5=this;for(;_0x5c7ab5[_0x13a8('0x10')];)_0x5c7ab5=_0x5c7ab5[_0x13a8('0x10')];return _0x5c7ab5;}get[_0x13a8('0x19')](){return!!this['commentThread']&&this[_0x13a8('0xb')][_0x13a8('0x21')]>0x0;}get[_0x13a8('0x3a')](){if(0x0==this[_0x13a8('0x12')]['size'])return!0x1;return 0x6==Array['from'](this[_0x13a8('0x12')])[0x0]['split'](':')['length'];}get[_0x13a8('0x2a')](){return null!==this['getFirstMarker']();}[_0x13a8('0x1d')](_0x89afb0){this[_0x13a8('0x12')][_0x13a8('0x2b')](_0x89afb0);}[_0x13a8('0x15')](){return Array[_0x13a8('0x18')](this[_0x13a8('0x12')]);}[_0x13a8('0x36')](){return this[_0x13a8('0x15')]()[_0x13a8('0x1a')](_0x35c286=>this[_0x13a8('0x6')]['markers']['get'](_0x35c286))['filter'](_0x20997c=>_0x20997c);}[_0x13a8('0x0')](){return this[_0x13a8('0x36')]()[0x0]||null;}['removeMarkers'](){this[_0x13a8('0x6')][_0x13a8('0x2e')](_0x79097c=>{for(const _0x2da1f6 of this[_0x13a8('0x36')]())_0x79097c[_0x13a8('0x35')](_0x2da1f6);}),this[_0x13a8('0x12')][_0x13a8('0x2c')]();}['removeMarker'](_0x47c03b){this[_0x13a8('0x6')][_0x13a8('0x2e')](_0x4c75e6=>{_0x4c75e6[_0x13a8('0x35')](_0x47c03b);}),this[_0x13a8('0x12')][_0x13a8('0x27')](_0x47c03b);}[_0x13a8('0x23')](_0x530448){const _0x5489a2=_0x13a8('0x37')+this[_0x13a8('0x33')]+':'+this[_0x13a8('0x22')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x13a8('0x31')]();this['addMarkerName'](_0x5489a2),this[_0x13a8('0x6')]['change'](_0x755c95=>{_0x755c95[_0x13a8('0xe')](_0x5489a2,{'range':_0x530448,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x13a8('0x1c')](_0x19227e){for(const _0x221f31 of this[_0x13a8('0x8')]())if(_0x221f31['isIntersecting'](_0x19227e))return!0x0;return!0x1;}[_0x13a8('0x8')](){return this[_0x13a8('0x36')]()['map'](_0x3310aa=>_0x3310aa[_0x13a8('0x13')]());}[_0x13a8('0x11')](){return this[_0x13a8('0x8')]()['reduce']((_0x28f55f,_0x3ddb78)=>[..._0x28f55f,..._0x3ddb78[_0x13a8('0x11')]()],[]);}[_0x13a8('0x3b')](){var _0x34b5e0;return(null===(_0x34b5e0=this[_0x13a8('0x0')]())||void 0x0===_0x34b5e0?void 0x0:_0x34b5e0['getRange']())||null;}[_0x13a8('0xa')](){const _0x56d595=this[_0x13a8('0x8')]();if(0x1!=_0x56d595[_0x13a8('0x21')])return null;const _0x50c75d=_0x56d595[0x0],_0x5cf20b=_0x50c75d[_0x13a8('0xd')][_0x13a8('0x20')],_0x28c373=_0x50c75d['end'][_0x13a8('0x2d')];return _0x5cf20b instanceof _0x3a9ec2?_0x5cf20b!=_0x28c373?null:_0x5cf20b:null;}['accept'](){this['_onAccept'](this[_0x13a8('0x8')](),this[_0x13a8('0x16')],this['attributes']),this[_0x13a8('0x5')]();}['discard'](){this[_0x13a8('0x9')](this[_0x13a8('0x8')](),this[_0x13a8('0x16')],this[_0x13a8('0xc')]),this[_0x13a8('0x5')]();}[_0x13a8('0x2f')](){const _0x2d946f=[];let _0x572ffa=this[_0x13a8('0x24')];for(;_0x572ffa;)_0x2d946f[_0x13a8('0x38')](_0x572ffa),_0x572ffa=_0x572ffa[_0x13a8('0x25')];return _0x2d946f;}[_0x13a8('0x1e')](_0x41dbe5,_0x1f91ce){const _0x40d707=_0x46114c(this[_0x13a8('0xc')]);_0x5220ec(_0x40d707,_0x41dbe5,_0x1f91ce),_0x39e7a0(_0x40d707,this['attributes'])||(this['attributes']=_0x40d707,this[_0x13a8('0x30')](_0x40d707));}[_0x13a8('0x34')](_0x26d019){const _0x494fab=_0x46114c(this[_0x13a8('0xc')]);_0x1157b0(_0x494fab,_0x26d019),_0x39e7a0(_0x494fab,this['attributes'])||(this[_0x13a8('0xc')]=_0x494fab,this[_0x13a8('0x30')](this[_0x13a8('0xc')]));}[_0x13a8('0x3')](){return{'id':this['id'],'type':this[_0x13a8('0x22')]?this[_0x13a8('0x33')]+':'+this['subType']:this['type'],'authorId':this[_0x13a8('0x32')]['id'],'createdAt':this[_0x13a8('0x39')],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x13a8('0xc')]};}static[_0x13a8('0x31')](){return _0x4898b0()['substr'](0x1,0x5);}}
23
+ const _0x45ee=['reduce','removeMarker','attributes','getMultiRangeId','type','onAttributesChange','length','set','end','isInContent','onAccept','getRange','isIntersectingWithRange','subType','accept','_onDiscard','data','isIntersecting','suggestion:','change','getAllAdjacentSuggestions','_onAttributesChange','getItems','authoredAt','_markerNames','commentThread','onDiscard','createdAt','head','addMarkerName','substr','creator','_onAccept','hasComments','clear','_saved','delete','author','markers','push','decorate','removeMarkers','previous','nodeAfter','@external','getMarkers','getRanges','removeAttribute','discard','start','getContainedElement','map','getFirstMarker','getMarkerNames','addRange','next','isMultiRange','_isDataLoaded','_model','filter'];(function(_0xbfe915,_0x45eeae){const _0x175b3e=function(_0x20897b){while(--_0x20897b){_0xbfe915['push'](_0xbfe915['shift']());}};_0x175b3e(++_0x45eeae);}(_0x45ee,0x96));const _0x175b=function(_0xbfe915,_0x45eeae){_0xbfe915=_0xbfe915-0x0;let _0x175b3e=_0x45ee[_0xbfe915];return _0x175b3e;};import{Element as _0x5e7585}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x5aa926,uid as _0x11dea9}from'ckeditor5/src/utils.js';import{cloneDeep as _0x26c792,isEqual as _0x24011b,set as _0xeb2ba,unset as _0x404a5f}from'lodash-es';export default class u extends _0x5aa926(){constructor(_0x2f779c,_0x677bd3){super(),this[_0x175b('0x1b')]=!0x1,this['id']=_0x677bd3['id'],this[_0x175b('0x22')]=_0x677bd3[_0x175b('0x22')],this['subType']=_0x677bd3[_0x175b('0x2b')]||null,this[_0x175b('0x7')]=_0x677bd3['author'],this[_0x175b('0x1')]=_0x677bd3['creator']||_0x677bd3['author'],this['isExternal']=Boolean(_0x677bd3['attributes']&&_0x677bd3[_0x175b('0x20')][_0x175b('0xe')]),this[_0x175b('0x2e')]=null,this['_model']=_0x2f779c,this['_onAccept']=_0x677bd3[_0x175b('0x28')],this[_0x175b('0x2d')]=_0x677bd3[_0x175b('0x38')],this[_0x175b('0x33')]=_0x677bd3[_0x175b('0x23')],this[_0x175b('0x36')]=new Set(),this[_0x175b('0x39')]=null,this[_0x175b('0x25')](_0x175b('0x35'),null),this['set'](_0x175b('0x20'),_0x677bd3['attributes']||{}),this[_0x175b('0x25')](_0x175b('0xc'),null),this[_0x175b('0x25')](_0x175b('0x19'),null),this['set'](_0x175b('0x37'),null),this[_0x175b('0x25')](_0x175b('0x5'),!0x1),this[_0x175b('0xa')](_0x175b('0x2c')),this[_0x175b('0xa')](_0x175b('0x12'));}get[_0x175b('0x3a')](){let _0x524399=this;for(;_0x524399[_0x175b('0xc')];)_0x524399=_0x524399['previous'];return _0x524399;}get[_0x175b('0x3')](){return!!this['commentThread']&&this['commentThread'][_0x175b('0x24')]>0x0;}get[_0x175b('0x1a')](){if(0x0==this[_0x175b('0x36')]['size'])return!0x1;return 0x6==Array['from'](this[_0x175b('0x36')])[0x0]['split'](':')[_0x175b('0x24')];}get[_0x175b('0x27')](){return null!==this[_0x175b('0x16')]();}[_0x175b('0x3b')](_0x459b57){this[_0x175b('0x36')]['add'](_0x459b57);}[_0x175b('0x17')](){return Array['from'](this[_0x175b('0x36')]);}['getMarkers'](){return this[_0x175b('0x17')]()[_0x175b('0x15')](_0x16de1d=>this[_0x175b('0x1c')][_0x175b('0x8')]['get'](_0x16de1d))[_0x175b('0x1d')](_0x5c616f=>_0x5c616f);}['getFirstMarker'](){return this[_0x175b('0xf')]()[0x0]||null;}['removeMarkers'](){this[_0x175b('0x1c')]['change'](_0x25e2b8=>{for(const _0x5aab33 of this['getMarkers']())_0x25e2b8[_0x175b('0x1f')](_0x5aab33);}),this['_markerNames'][_0x175b('0x4')]();}[_0x175b('0x1f')](_0x25abb3){this['_model'][_0x175b('0x31')](_0x7e15e2=>{_0x7e15e2[_0x175b('0x1f')](_0x25abb3);}),this['_markerNames'][_0x175b('0x6')](_0x25abb3);}[_0x175b('0x18')](_0x138746){const _0x2ba2d1=_0x175b('0x30')+this[_0x175b('0x22')]+':'+this[_0x175b('0x2b')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x175b('0x21')]();this[_0x175b('0x3b')](_0x2ba2d1),this[_0x175b('0x1c')][_0x175b('0x31')](_0x39ed2e=>{_0x39ed2e['addMarker'](_0x2ba2d1,{'range':_0x138746,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x175b('0x2a')](_0x50bbc1){for(const _0x5c106c of this[_0x175b('0x10')]())if(_0x5c106c[_0x175b('0x2f')](_0x50bbc1))return!0x0;return!0x1;}[_0x175b('0x10')](){return this['getMarkers']()[_0x175b('0x15')](_0x123e10=>_0x123e10[_0x175b('0x29')]());}[_0x175b('0x34')](){return this['getRanges']()[_0x175b('0x1e')]((_0x2fd174,_0x16ff79)=>[..._0x2fd174,..._0x16ff79[_0x175b('0x34')]()],[]);}['getFirstRange'](){var _0x5945ff;return(null===(_0x5945ff=this[_0x175b('0x16')]())||void 0x0===_0x5945ff?void 0x0:_0x5945ff['getRange']())||null;}[_0x175b('0x14')](){const _0x5b1d8b=this[_0x175b('0x10')]();if(0x1!=_0x5b1d8b[_0x175b('0x24')])return null;const _0x249c4c=_0x5b1d8b[0x0],_0xf35202=_0x249c4c[_0x175b('0x13')][_0x175b('0xd')],_0x59e324=_0x249c4c[_0x175b('0x26')]['nodeBefore'];return _0xf35202 instanceof _0x5e7585?_0xf35202!=_0x59e324?null:_0xf35202:null;}[_0x175b('0x2c')](){this[_0x175b('0x2')](this[_0x175b('0x10')](),this[_0x175b('0x2e')],this[_0x175b('0x20')]),this['removeMarkers']();}[_0x175b('0x12')](){this[_0x175b('0x2d')](this[_0x175b('0x10')](),this[_0x175b('0x2e')],this['attributes']),this[_0x175b('0xb')]();}[_0x175b('0x32')](){const _0x4b3273=[];let _0x297c30=this[_0x175b('0x3a')];for(;_0x297c30;)_0x4b3273[_0x175b('0x9')](_0x297c30),_0x297c30=_0x297c30[_0x175b('0x19')];return _0x4b3273;}['setAttribute'](_0x465590,_0x27ddba){const _0x1b352d=_0x26c792(this['attributes']);_0xeb2ba(_0x1b352d,_0x465590,_0x27ddba),_0x24011b(_0x1b352d,this[_0x175b('0x20')])||(this[_0x175b('0x20')]=_0x1b352d,this[_0x175b('0x33')](_0x1b352d));}[_0x175b('0x11')](_0x1c31e7){const _0x6ee088=_0x26c792(this[_0x175b('0x20')]);_0x404a5f(_0x6ee088,_0x1c31e7),_0x24011b(_0x6ee088,this[_0x175b('0x20')])||(this[_0x175b('0x20')]=_0x6ee088,this['_onAttributesChange'](this[_0x175b('0x20')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x175b('0x2b')]?this[_0x175b('0x22')]+':'+this[_0x175b('0x2b')]:this[_0x175b('0x22')],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this[_0x175b('0x3')],'data':this[_0x175b('0x2e')],'attributes':this[_0x175b('0x20')]};}static[_0x175b('0x21')](){return _0x11dea9()[_0x175b('0x0')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27af=['type','isEmpty','_attributeLabels','data','format','*Remove:*\x20%0','$textProxy','element','function','nextSibling','push','subType','registerDescriptionCallback','_handleInsertRemoveSuggestionDescription','getFirstRange','match','set','join','add','_handleRenameSuggestionDescription','isEqual','_locale','replace','newValue','has','registerElementLabel','_customCallbacks','ELEMENT_SPACE','insertion','*Change\x20to:*\x20%0','Container','_schema','item','previousSibling','$text','text','length','_resolveDescriptionItems','end','*Set\x20format:*\x20%0','_handleAttributeSuggestionDescription','skip','nodeAfter','_itemLabels','getWalker','addEmptyContainer','name','removeContainer','pop','addFormat','start','isObject','attribute','$1\x20$2','REPLACE_TEXT','removeFormat','removeEmptyContainer','_addDescriptionItems','*Split:*\x20%0','getItemLabel','addContainer','*Insert:*\x20%0','*Remove\x20format:*\x20%0','_handleCustomCallbackDescription','key','quantity','Object','map','remove','_itemLabelsCallbacks','matchingCallback','elementEnd','indexOf','get','deletion','registerAttributeLabel','removeObject'];(function(_0x211644,_0x27af6c){const _0x15ed43=function(_0x36bd41){while(--_0x36bd41){_0x211644['push'](_0x211644['shift']());}};_0x15ed43(++_0x27af6c);}(_0x27af,0xef));const _0x15ed=function(_0x211644,_0x27af6c){_0x211644=_0x211644-0x0;let _0x15ed43=_0x27af[_0x211644];return _0x15ed43;};import{getTranslation as _0x26e76a}from'./utils/common-translations.js';import{priorities as _0x5eda7a,insertToPriorityArray as _0x4aff39}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x31024f}from'./trackchangesediting.js';export default class f{constructor(_0x5bab82,_0xee105f){this['_customCallbacks']=[],this[_0x15ed('0x23')]=new Map(),this[_0x15ed('0x3d')]=[],this[_0x15ed('0x47')]=new Map(),this[_0x15ed('0x17')]=_0x5bab82,this['_locale']=_0xee105f;}['getDescriptions'](_0x5825b7){const _0x5ec8c7=[],_0x415a81=new Set(),_0x47db07=new Set();for(let _0x58ab53=0x0;_0x58ab53<_0x5825b7['length'];_0x58ab53++){const _0x32cf6f=_0x5825b7[_0x58ab53];if(!_0x32cf6f['isInContent'])continue;const _0x3a9d40=this[_0x15ed('0x37')](_0x32cf6f);if(_0x3a9d40){if(null!=_0x32cf6f[_0x15ed('0x3')]){if(_0x415a81[_0x15ed('0x10')](_0x32cf6f[_0x15ed('0x3')]))continue;_0x415a81[_0x15ed('0xa')](_0x32cf6f[_0x15ed('0x3')]);}_0x5ec8c7[_0x15ed('0x2')](_0x3a9d40);}else{if(_0x15ed('0x2c')!=_0x32cf6f[_0x15ed('0x45')])_0x15ed('0x14')!=_0x32cf6f[_0x15ed('0x45')]&&_0x15ed('0x42')!=_0x32cf6f[_0x15ed('0x45')]||this[_0x15ed('0x5')](_0x5ec8c7,_0x32cf6f,_0x5825b7[_0x58ab53+0x1]);else{const _0x57dc79=_0x32cf6f[_0x15ed('0x48')][_0x15ed('0x38')];if(_0x47db07[_0x15ed('0x10')](_0x57dc79))continue;_0x47db07[_0x15ed('0xa')](_0x32cf6f[_0x15ed('0x48')]['key']),_0x57dc79==_0x31024f?this['_handleRenameSuggestionDescription'](_0x5ec8c7,_0x32cf6f):this[_0x15ed('0x20')](_0x5ec8c7,_0x32cf6f);}}}return this['_resolveDescriptionItems'](_0x5ec8c7);}[_0x15ed('0x4')](_0x2b1124){this[_0x15ed('0x12')][_0x15ed('0x2')](_0x2b1124);}[_0x15ed('0x11')](_0x377f2c,_0x36c27c,_0x451810=_0x5eda7a['normal']){_0x15ed('0x0')==typeof _0x377f2c?_0x4aff39(this[_0x15ed('0x3d')],{'matchingCallback':_0x377f2c,'label':_0x36c27c,'priority':_0x451810}):this[_0x15ed('0x23')][_0x15ed('0x8')](_0x377f2c,_0x36c27c);}[_0x15ed('0x43')](_0xb7eb80,_0x32ca4d){this['_attributeLabels']['set'](_0xb7eb80,_0x32ca4d);}[_0x15ed('0x33')](_0x1ef685,_0xeab75e=0x1){let _0x403c6b;for(const _0xa7e82d of this[_0x15ed('0x3d')])if(_0xa7e82d[_0x15ed('0x3e')](_0x1ef685)){_0x403c6b=_0xa7e82d['label'];break;}return _0x403c6b||(_0x403c6b=this[_0x15ed('0x23')][_0x15ed('0x41')](_0x1ef685['name'])),_0x403c6b?_0x403c6b(_0xeab75e):0x1!==_0xeab75e?_0xeab75e+'\x20'+_0x1ef685[_0x15ed('0x26')]+'s':''+_0x1ef685[_0x15ed('0x26')];}['_addDescriptionItems'](_0x9cd1e0,_0x410888){const _0x5474de=_0x410888['getFirstRange']()[_0x15ed('0x24')](),_0x540544=_0x15ed('0x14')==_0x410888[_0x15ed('0x45')]?_0x15ed('0xa'):_0x15ed('0x3c');for(const _0x386dd6 of _0x5474de){const _0x2f478=_0x386dd6[_0x15ed('0x18')],_0x3bfd00=_0x9cd1e0[_0x9cd1e0[_0x15ed('0x1c')]-0x1];if(_0x2f478['is'](_0x15ed('0x4b')))_0x3bfd00&&_0x3bfd00[_0x15ed('0x45')][_0x15ed('0x40')]('Container')>-0x1&&_0x9cd1e0[_0x15ed('0x28')](),_0x3bfd00&&_0x15ed('0x1b')==_0x3bfd00[_0x15ed('0x45')]?_0x3bfd00[_0x540544]+=_0x2f478[_0x15ed('0x48')]:_0x9cd1e0['push']({'type':_0x15ed('0x1b'),'add':_0x15ed('0xa')==_0x540544?_0x2f478[_0x15ed('0x48')]:'','remove':_0x15ed('0x3c')==_0x540544?_0x2f478[_0x15ed('0x48')]:''});else{if(this[_0x15ed('0x17')]['isObject'](_0x2f478)){const _0x3f450b=_0x2f478;if(_0x3bfd00&&_0x3bfd00[_0x15ed('0x45')][_0x15ed('0x40')](_0x15ed('0x16'))>-0x1&&_0x9cd1e0[_0x15ed('0x28')](),'elementEnd'==_0x386dd6[_0x15ed('0x45')])continue;_0x3bfd00&&_0x3bfd00['type']==_0x540544+'Object'&&_0x3bfd00[_0x15ed('0x4c')][_0x15ed('0x26')]==_0x3f450b[_0x15ed('0x26')]?_0x3bfd00[_0x15ed('0x39')]++:_0x9cd1e0[_0x15ed('0x2')]({'type':_0x540544+_0x15ed('0x3a'),'element':_0x3f450b,'quantity':0x1}),_0x5474de[_0x15ed('0x21')](_0x26bb18=>!(_0x15ed('0x3f')==_0x26bb18['type']&&_0x26bb18[_0x15ed('0x18')]==_0x2f478));}else{if(this['_schema']['checkChild'](_0x2f478,_0x15ed('0x1a'))||_0x2f478['is'](_0x15ed('0x4c'),'softBreak')){const _0x16502b=_0x2f478;if(_0x15ed('0xa')==_0x540544&&'elementStart'==_0x386dd6[_0x15ed('0x45')]||_0x15ed('0x3c')==_0x540544&&_0x15ed('0x3f')==_0x386dd6[_0x15ed('0x45')])continue;if(_0x3bfd00&&-0x1==_0x3bfd00[_0x15ed('0x45')]['indexOf']('Container')){_0x15ed('0x1b')==_0x3bfd00[_0x15ed('0x45')]&&(_0x3bfd00[_0x540544]+='\x0a');continue;}let _0x336998;if(_0x336998='add'==_0x540544?_0x16502b[_0x15ed('0x1')]&&!this[_0x15ed('0x17')]['isObject'](_0x16502b['nextSibling'])?_0x16502b[_0x15ed('0x1')]:null:_0x16502b[_0x15ed('0x19')]&&!this[_0x15ed('0x17')][_0x15ed('0x2b')](_0x16502b[_0x15ed('0x19')])?_0x16502b['previousSibling']:null,_0x16502b[_0x15ed('0x46')]||_0x336998&&_0x336998[_0x15ed('0x46')]){const _0x4c3afa=_0x336998&&_0x336998[_0x15ed('0x46')]?_0x336998:_0x16502b;_0x3bfd00&&_0x3bfd00[_0x15ed('0x45')]==_0x540544+'EmptyContainer'&&_0x3bfd00[_0x15ed('0x4c')][_0x15ed('0x26')]==_0x4c3afa[_0x15ed('0x26')]?_0x3bfd00[_0x15ed('0x39')]++:_0x9cd1e0[_0x15ed('0x2')]({'type':_0x540544+'EmptyContainer','element':_0x4c3afa,'quantity':0x1});}else _0x9cd1e0[_0x15ed('0x2')]({'type':_0x540544+_0x15ed('0x16'),'element':_0x16502b});}}}}}[_0x15ed('0x1d')](_0x408ea3){const _0x2a91c3=this[_0x15ed('0xd')],_0x1c0859=[],_0x7fd8b=[],_0x4d9730=[];for(const _0x326462 of _0x408ea3)switch(_0x326462[_0x15ed('0x45')]){case _0x15ed('0x1b'):if(_0x326462[_0x15ed('0xa')]=_0x326462[_0x15ed('0xa')][_0x15ed('0xe')](/(\S)\u000A+(\S)/g,_0x15ed('0x2d'))[_0x15ed('0xe')](/\u000A/g,''),_0x326462[_0x15ed('0x3c')]=_0x326462[_0x15ed('0x3c')]['replace'](/(\S)\u000A+(\S)/g,_0x15ed('0x2d'))[_0x15ed('0xe')](/\u000A/g,''),''!=_0x326462['add']&&''!=_0x326462[_0x15ed('0x3c')]){_0x1c0859['push']({'type':_0x15ed('0xe'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x2e'),['\x22'+_0x326462[_0x15ed('0x3c')]+'\x22','\x22'+_0x326462['add']+'\x22'])});continue;}if(null!=_0x326462[_0x15ed('0xa')][_0x15ed('0x7')](/^ +$/)){_0x1c0859[_0x15ed('0x2')]({'type':'insertion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x35'),_0x26e76a(_0x2a91c3,_0x15ed('0x13'),_0x326462['add']['length']))});continue;}if(null!=_0x326462[_0x15ed('0x3c')][_0x15ed('0x7')](/^ +$/)){_0x1c0859[_0x15ed('0x2')]({'type':'deletion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x4a'),_0x26e76a(_0x2a91c3,_0x15ed('0x13'),_0x326462['remove'][_0x15ed('0x1c')]))});continue;}if(''!=_0x326462[_0x15ed('0xa')]){_0x1c0859[_0x15ed('0x2')]({'type':'insertion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x35'),'\x22'+_0x326462[_0x15ed('0xa')]+'\x22')});continue;}_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x42'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x4a'),'\x22'+_0x326462[_0x15ed('0x3c')]+'\x22')});continue;case _0x15ed('0x25'):case'addObject':_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x14'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x35'),this[_0x15ed('0x33')](_0x326462[_0x15ed('0x4c')],_0x326462[_0x15ed('0x39')]))});continue;case _0x15ed('0x30'):case _0x15ed('0x44'):_0x1c0859[_0x15ed('0x2')]({'type':'deletion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x4a'),this[_0x15ed('0x33')](_0x326462[_0x15ed('0x4c')],_0x326462['quantity']))});continue;case _0x15ed('0x34'):_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x14'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x32'),this[_0x15ed('0x33')](_0x326462[_0x15ed('0x4c')],_0x326462['quantity']))});continue;case _0x15ed('0x27'):_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x42'),'content':_0x26e76a(_0x2a91c3,'*Merge:*\x20%0',this[_0x15ed('0x33')](_0x326462['element'],_0x326462[_0x15ed('0x39')]))});continue;case _0x15ed('0x29'):_0x7fd8b[_0x15ed('0x2')](_0x326462[_0x15ed('0x38')]);continue;case _0x15ed('0x2f'):_0x4d9730[_0x15ed('0x2')](_0x326462[_0x15ed('0x38')]);continue;default:_0x1c0859[_0x15ed('0x2')](_0x326462);}if(_0x7fd8b[_0x15ed('0x1c')]){const _0x74c413=_0x7fd8b[_0x15ed('0x3b')](_0x32bfd3=>this[_0x15ed('0x47')][_0x15ed('0x10')](_0x32bfd3)?this[_0x15ed('0x47')][_0x15ed('0x41')](_0x32bfd3):_0x32bfd3)[_0x15ed('0x9')](',\x20');_0x1c0859['push']({'type':'format','content':_0x26e76a(this[_0x15ed('0xd')],_0x15ed('0x1f'),_0x74c413)});}if(_0x4d9730['length']){const _0x19f6ef=_0x4d9730['map'](_0x4eb8e5=>this['_attributeLabels'][_0x15ed('0x10')](_0x4eb8e5)?this['_attributeLabels'][_0x15ed('0x41')](_0x4eb8e5):_0x4eb8e5)[_0x15ed('0x9')](',\x20');_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x49'),'content':_0x26e76a(this[_0x15ed('0xd')],_0x15ed('0x36'),_0x19f6ef)});}return _0x1c0859;}[_0x15ed('0x37')](_0x300c79){for(const _0x245e6b of this[_0x15ed('0x12')]){const _0x58b248=_0x245e6b(_0x300c79);if(_0x58b248&&_0x15ed('0x45')in _0x58b248)return _0x58b248;}}[_0x15ed('0x20')](_0x4f3721,_0x294c2e){const _0x102a54=_0x294c2e[_0x15ed('0x48')],_0x7bc435=void 0x0===_0x102a54[_0x15ed('0xf')]?_0x15ed('0x2f'):_0x15ed('0x29');_0x4f3721[_0x15ed('0x2')]({'type':_0x7bc435,'key':_0x102a54[_0x15ed('0x38')]});}[_0x15ed('0xb')](_0x416885,_0x1bd7a7){_0x416885[_0x15ed('0x2')]({'type':_0x15ed('0x49'),'content':_0x26e76a(this['_locale'],_0x15ed('0x15'),this['getItemLabel'](_0x1bd7a7['getFirstRange']()[_0x15ed('0x2a')][_0x15ed('0x22')],0x1))});}[_0x15ed('0x5')](_0x2173e6,_0x10d985,_0x3ade9e){if(this[_0x15ed('0x31')](_0x2173e6,_0x10d985),_0x3ade9e&&_0x3ade9e[_0x15ed('0x6')]()&&!_0x10d985['getFirstRange']()[_0x15ed('0x1e')][_0x15ed('0xc')](_0x3ade9e[_0x15ed('0x6')]()['start'])){const _0x3328ae=_0x2173e6[_0x2173e6[_0x15ed('0x1c')]-0x1],_0x2a5bfd=_0x15ed('0x14')==_0x10d985[_0x15ed('0x45')]?_0x15ed('0xa'):_0x15ed('0x3c');_0x3328ae&&_0x15ed('0x1b')==_0x3328ae[_0x15ed('0x45')]&&(_0x3328ae[_0x2a5bfd]+='\x0a');}}}
23
+ const _0x51ac=['deletion','label','registerDescriptionCallback','set','addFormat','newValue','element','key','has','$textProxy','*Remove\x20format:*\x20%0','nextSibling','indexOf','registerElementLabel','remove','quantity','format','end','previousSibling','addEmptyContainer','get','data','add','removeContainer','isInContent','_customCallbacks','Object','type','Container','push','_schema','function','_attributeLabels','checkChild','insertion','$1\x20$2','ELEMENT_SPACE','elementEnd','_handleRenameSuggestionDescription','normal','addObject','*Remove:*\x20%0','map','*Merge:*\x20%0','$text','_itemLabels','_handleCustomCallbackDescription','nodeAfter','_resolveDescriptionItems','_handleInsertRemoveSuggestionDescription','match','name','join','registerAttributeLabel','skip','replace','item','*Split:*\x20%0','removeFormat','start','removeEmptyContainer','pop','*Change\x20to:*\x20%0','_handleAttributeSuggestionDescription','getItemLabel','_itemLabelsCallbacks','getFirstRange','isEqual','isObject','*Insert:*\x20%0','removeObject','length','isEmpty','subType','_locale','text','EmptyContainer','REPLACE_TEXT'];(function(_0x3a522c,_0x51ac75){const _0x4bc42b=function(_0x4a53f5){while(--_0x4a53f5){_0x3a522c['push'](_0x3a522c['shift']());}};_0x4bc42b(++_0x51ac75);}(_0x51ac,0x159));const _0x4bc4=function(_0x3a522c,_0x51ac75){_0x3a522c=_0x3a522c-0x0;let _0x4bc42b=_0x51ac[_0x3a522c];return _0x4bc42b;};import{getTranslation as _0x219bd4}from'./utils/common-translations.js';import{priorities as _0x287d91,insertToPriorityArray as _0x56978c}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x25e830}from'./trackchangesediting.js';export default class f{constructor(_0x4b0b00,_0x45ad95){this[_0x4bc4('0x46')]=[],this[_0x4bc4('0xc')]=new Map(),this[_0x4bc4('0x20')]=[],this['_attributeLabels']=new Map(),this[_0x4bc4('0x4b')]=_0x4b0b00,this[_0x4bc4('0x29')]=_0x45ad95;}['getDescriptions'](_0xb2a025){const _0x4f925f=[],_0x47ede2=new Set(),_0x1a8f36=new Set();for(let _0x451717=0x0;_0x451717<_0xb2a025[_0x4bc4('0x26')];_0x451717++){const _0x3f5404=_0xb2a025[_0x451717];if(!_0x3f5404[_0x4bc4('0x45')])continue;const _0x40cbd5=this[_0x4bc4('0xd')](_0x3f5404);if(_0x40cbd5){if(null!=_0x3f5404[_0x4bc4('0x28')]){if(_0x47ede2[_0x4bc4('0x35')](_0x3f5404[_0x4bc4('0x28')]))continue;_0x47ede2[_0x4bc4('0x43')](_0x3f5404[_0x4bc4('0x28')]);}_0x4f925f[_0x4bc4('0x4a')](_0x40cbd5);}else{if('attribute'!=_0x3f5404[_0x4bc4('0x48')])_0x4bc4('0x1')!=_0x3f5404[_0x4bc4('0x48')]&&'deletion'!=_0x3f5404[_0x4bc4('0x48')]||this[_0x4bc4('0x10')](_0x4f925f,_0x3f5404,_0xb2a025[_0x451717+0x1]);else{const _0x416f4a=_0x3f5404[_0x4bc4('0x42')][_0x4bc4('0x34')];if(_0x1a8f36[_0x4bc4('0x35')](_0x416f4a))continue;_0x1a8f36[_0x4bc4('0x43')](_0x3f5404[_0x4bc4('0x42')][_0x4bc4('0x34')]),_0x416f4a==_0x25e830?this[_0x4bc4('0x5')](_0x4f925f,_0x3f5404):this[_0x4bc4('0x1e')](_0x4f925f,_0x3f5404);}}}return this['_resolveDescriptionItems'](_0x4f925f);}[_0x4bc4('0x2f')](_0x43df29){this[_0x4bc4('0x46')][_0x4bc4('0x4a')](_0x43df29);}[_0x4bc4('0x3a')](_0x5c2c18,_0x50ab8,_0x4c0be3=_0x287d91[_0x4bc4('0x6')]){_0x4bc4('0x4c')==typeof _0x5c2c18?_0x56978c(this[_0x4bc4('0x20')],{'matchingCallback':_0x5c2c18,'label':_0x50ab8,'priority':_0x4c0be3}):this['_itemLabels'][_0x4bc4('0x30')](_0x5c2c18,_0x50ab8);}[_0x4bc4('0x14')](_0x4eb76f,_0x35620f){this[_0x4bc4('0x4d')]['set'](_0x4eb76f,_0x35620f);}['getItemLabel'](_0x38c53d,_0x15631e=0x1){let _0x9f8e04;for(const _0x113ae of this[_0x4bc4('0x20')])if(_0x113ae['matchingCallback'](_0x38c53d)){_0x9f8e04=_0x113ae[_0x4bc4('0x2e')];break;}return _0x9f8e04||(_0x9f8e04=this[_0x4bc4('0xc')][_0x4bc4('0x41')](_0x38c53d[_0x4bc4('0x12')])),_0x9f8e04?_0x9f8e04(_0x15631e):0x1!==_0x15631e?_0x15631e+'\x20'+_0x38c53d[_0x4bc4('0x12')]+'s':''+_0x38c53d['name'];}['_addDescriptionItems'](_0x14755b,_0x357f89){const _0x1304a5=_0x357f89[_0x4bc4('0x21')]()['getWalker'](),_0x317fda=_0x4bc4('0x1')==_0x357f89[_0x4bc4('0x48')]?_0x4bc4('0x43'):_0x4bc4('0x3b');for(const _0x2e924d of _0x1304a5){const _0x455c2d=_0x2e924d[_0x4bc4('0x17')],_0x3ce3a8=_0x14755b[_0x14755b['length']-0x1];if(_0x455c2d['is'](_0x4bc4('0x36')))_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')][_0x4bc4('0x39')]('Container')>-0x1&&_0x14755b[_0x4bc4('0x1c')](),_0x3ce3a8&&'text'==_0x3ce3a8[_0x4bc4('0x48')]?_0x3ce3a8[_0x317fda]+=_0x455c2d['data']:_0x14755b[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2a'),'add':_0x4bc4('0x43')==_0x317fda?_0x455c2d[_0x4bc4('0x42')]:'','remove':_0x4bc4('0x3b')==_0x317fda?_0x455c2d[_0x4bc4('0x42')]:''});else{if(this['_schema'][_0x4bc4('0x23')](_0x455c2d)){const _0x10873b=_0x455c2d;if(_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')][_0x4bc4('0x39')](_0x4bc4('0x49'))>-0x1&&_0x14755b[_0x4bc4('0x1c')](),_0x4bc4('0x4')==_0x2e924d[_0x4bc4('0x48')])continue;_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')]==_0x317fda+'Object'&&_0x3ce3a8[_0x4bc4('0x33')][_0x4bc4('0x12')]==_0x10873b[_0x4bc4('0x12')]?_0x3ce3a8[_0x4bc4('0x3c')]++:_0x14755b[_0x4bc4('0x4a')]({'type':_0x317fda+_0x4bc4('0x47'),'element':_0x10873b,'quantity':0x1}),_0x1304a5[_0x4bc4('0x15')](_0x34d295=>!(_0x4bc4('0x4')==_0x34d295[_0x4bc4('0x48')]&&_0x34d295[_0x4bc4('0x17')]==_0x455c2d));}else{if(this[_0x4bc4('0x4b')][_0x4bc4('0x0')](_0x455c2d,_0x4bc4('0xb'))||_0x455c2d['is'](_0x4bc4('0x33'),'softBreak')){const _0x24eb6d=_0x455c2d;if(_0x4bc4('0x43')==_0x317fda&&'elementStart'==_0x2e924d[_0x4bc4('0x48')]||'remove'==_0x317fda&&_0x4bc4('0x4')==_0x2e924d[_0x4bc4('0x48')])continue;if(_0x3ce3a8&&-0x1==_0x3ce3a8['type'][_0x4bc4('0x39')](_0x4bc4('0x49'))){_0x4bc4('0x2a')==_0x3ce3a8[_0x4bc4('0x48')]&&(_0x3ce3a8[_0x317fda]+='\x0a');continue;}let _0x18db68;if(_0x18db68=_0x4bc4('0x43')==_0x317fda?_0x24eb6d[_0x4bc4('0x38')]&&!this['_schema'][_0x4bc4('0x23')](_0x24eb6d[_0x4bc4('0x38')])?_0x24eb6d[_0x4bc4('0x38')]:null:_0x24eb6d[_0x4bc4('0x3f')]&&!this[_0x4bc4('0x4b')]['isObject'](_0x24eb6d[_0x4bc4('0x3f')])?_0x24eb6d[_0x4bc4('0x3f')]:null,_0x24eb6d[_0x4bc4('0x27')]||_0x18db68&&_0x18db68['isEmpty']){const _0x29e8bb=_0x18db68&&_0x18db68[_0x4bc4('0x27')]?_0x18db68:_0x24eb6d;_0x3ce3a8&&_0x3ce3a8[_0x4bc4('0x48')]==_0x317fda+_0x4bc4('0x2b')&&_0x3ce3a8[_0x4bc4('0x33')][_0x4bc4('0x12')]==_0x29e8bb[_0x4bc4('0x12')]?_0x3ce3a8[_0x4bc4('0x3c')]++:_0x14755b[_0x4bc4('0x4a')]({'type':_0x317fda+'EmptyContainer','element':_0x29e8bb,'quantity':0x1});}else _0x14755b[_0x4bc4('0x4a')]({'type':_0x317fda+_0x4bc4('0x49'),'element':_0x24eb6d});}}}}}[_0x4bc4('0xf')](_0x26cbdd){const _0x36d70c=this['_locale'],_0x1f7ae4=[],_0x57ec08=[],_0x44de7e=[];for(const _0x468f9b of _0x26cbdd)switch(_0x468f9b[_0x4bc4('0x48')]){case _0x4bc4('0x2a'):if(_0x468f9b['add']=_0x468f9b[_0x4bc4('0x43')]['replace'](/(\S)\u000A+(\S)/g,_0x4bc4('0x2'))[_0x4bc4('0x16')](/\u000A/g,''),_0x468f9b[_0x4bc4('0x3b')]=_0x468f9b[_0x4bc4('0x3b')][_0x4bc4('0x16')](/(\S)\u000A+(\S)/g,_0x4bc4('0x2'))[_0x4bc4('0x16')](/\u000A/g,''),''!=_0x468f9b['add']&&''!=_0x468f9b['remove']){_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x16'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x2c'),['\x22'+_0x468f9b[_0x4bc4('0x3b')]+'\x22','\x22'+_0x468f9b[_0x4bc4('0x43')]+'\x22'])});continue;}if(null!=_0x468f9b[_0x4bc4('0x43')][_0x4bc4('0x11')](/^ +$/)){_0x1f7ae4[_0x4bc4('0x4a')]({'type':'insertion','content':_0x219bd4(_0x36d70c,_0x4bc4('0x24'),_0x219bd4(_0x36d70c,_0x4bc4('0x3'),_0x468f9b['add'][_0x4bc4('0x26')]))});continue;}if(null!=_0x468f9b[_0x4bc4('0x3b')][_0x4bc4('0x11')](/^ +$/)){_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,'*Remove:*\x20%0',_0x219bd4(_0x36d70c,_0x4bc4('0x3'),_0x468f9b[_0x4bc4('0x3b')]['length']))});continue;}if(''!=_0x468f9b[_0x4bc4('0x43')]){_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x1'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x24'),'\x22'+_0x468f9b[_0x4bc4('0x43')]+'\x22')});continue;}_0x1f7ae4['push']({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x8'),'\x22'+_0x468f9b[_0x4bc4('0x3b')]+'\x22')});continue;case _0x4bc4('0x40'):case _0x4bc4('0x7'):_0x1f7ae4[_0x4bc4('0x4a')]({'type':'insertion','content':_0x219bd4(_0x36d70c,'*Insert:*\x20%0',this[_0x4bc4('0x1f')](_0x468f9b[_0x4bc4('0x33')],_0x468f9b['quantity']))});continue;case _0x4bc4('0x1b'):case _0x4bc4('0x25'):_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,'*Remove:*\x20%0',this[_0x4bc4('0x1f')](_0x468f9b['element'],_0x468f9b[_0x4bc4('0x3c')]))});continue;case'addContainer':_0x1f7ae4['push']({'type':_0x4bc4('0x1'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0x18'),this['getItemLabel'](_0x468f9b[_0x4bc4('0x33')],_0x468f9b[_0x4bc4('0x3c')]))});continue;case _0x4bc4('0x44'):_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x2d'),'content':_0x219bd4(_0x36d70c,_0x4bc4('0xa'),this[_0x4bc4('0x1f')](_0x468f9b[_0x4bc4('0x33')],_0x468f9b[_0x4bc4('0x3c')]))});continue;case'addFormat':_0x57ec08[_0x4bc4('0x4a')](_0x468f9b[_0x4bc4('0x34')]);continue;case _0x4bc4('0x19'):_0x44de7e[_0x4bc4('0x4a')](_0x468f9b[_0x4bc4('0x34')]);continue;default:_0x1f7ae4[_0x4bc4('0x4a')](_0x468f9b);}if(_0x57ec08[_0x4bc4('0x26')]){const _0x33eea8=_0x57ec08[_0x4bc4('0x9')](_0x2fc1a0=>this[_0x4bc4('0x4d')][_0x4bc4('0x35')](_0x2fc1a0)?this[_0x4bc4('0x4d')][_0x4bc4('0x41')](_0x2fc1a0):_0x2fc1a0)[_0x4bc4('0x13')](',\x20');_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x3d'),'content':_0x219bd4(this['_locale'],'*Set\x20format:*\x20%0',_0x33eea8)});}if(_0x44de7e[_0x4bc4('0x26')]){const _0x1127e9=_0x44de7e[_0x4bc4('0x9')](_0x262bd4=>this[_0x4bc4('0x4d')][_0x4bc4('0x35')](_0x262bd4)?this[_0x4bc4('0x4d')][_0x4bc4('0x41')](_0x262bd4):_0x262bd4)[_0x4bc4('0x13')](',\x20');_0x1f7ae4[_0x4bc4('0x4a')]({'type':_0x4bc4('0x3d'),'content':_0x219bd4(this['_locale'],_0x4bc4('0x37'),_0x1127e9)});}return _0x1f7ae4;}[_0x4bc4('0xd')](_0x59a51c){for(const _0x44bb48 of this[_0x4bc4('0x46')]){const _0x1f7e35=_0x44bb48(_0x59a51c);if(_0x1f7e35&&'type'in _0x1f7e35)return _0x1f7e35;}}['_handleAttributeSuggestionDescription'](_0x467c15,_0x53a81e){const _0x28c2cc=_0x53a81e[_0x4bc4('0x42')],_0x38e88a=void 0x0===_0x28c2cc[_0x4bc4('0x32')]?_0x4bc4('0x19'):_0x4bc4('0x31');_0x467c15[_0x4bc4('0x4a')]({'type':_0x38e88a,'key':_0x28c2cc[_0x4bc4('0x34')]});}[_0x4bc4('0x5')](_0x7b388d,_0x21b9a1){_0x7b388d[_0x4bc4('0x4a')]({'type':_0x4bc4('0x3d'),'content':_0x219bd4(this['_locale'],_0x4bc4('0x1d'),this[_0x4bc4('0x1f')](_0x21b9a1[_0x4bc4('0x21')]()['start'][_0x4bc4('0xe')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d619b,_0x38e54e,_0x59d2bd){if(this['_addDescriptionItems'](_0x1d619b,_0x38e54e),_0x59d2bd&&_0x59d2bd[_0x4bc4('0x21')]()&&!_0x38e54e[_0x4bc4('0x21')]()[_0x4bc4('0x3e')][_0x4bc4('0x22')](_0x59d2bd[_0x4bc4('0x21')]()[_0x4bc4('0x1a')])){const _0x4af04d=_0x1d619b[_0x1d619b[_0x4bc4('0x26')]-0x1],_0x4c2c01='insertion'==_0x38e54e['type']?_0x4bc4('0x43'):_0x4bc4('0x3b');_0x4af04d&&_0x4bc4('0x2a')==_0x4af04d[_0x4bc4('0x48')]&&(_0x4af04d[_0x4c2c01]+='\x0a');}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5b57=['pluginName','editor','getSuggestion','get','requires','addSuggestionData','plugins','TrackChanges','addSuggestion','adapter'];(function(_0x2262fa,_0x5b57af){var _0x1b8607=function(_0x1e9b01){while(--_0x1e9b01){_0x2262fa['push'](_0x2262fa['shift']());}};_0x1b8607(++_0x5b57af);}(_0x5b57,0x6c));var _0x1b86=function(_0x2262fa,_0x5b57af){_0x2262fa=_0x2262fa-0x0;var _0x1b8607=_0x5b57[_0x2262fa];return _0x1b8607;};import{Plugin as _0x5f59f7}from'ckeditor5/src/core.js';import _0x527202 from'./trackchangesui.js';import _0xb5a944 from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x5f59f7{static get[_0x1b86('0x6')](){return[_0xb5a944,_0x527202,'Comments'];}static get[_0x1b86('0x2')](){return _0x1b86('0x9');}set[_0x1b86('0x1')](_0x51002a){this[_0x1b86('0x3')][_0x1b86('0x8')][_0x1b86('0x5')](_0xb5a944)[_0x1b86('0x1')]=_0x51002a;}get['adapter'](){return this[_0x1b86('0x3')][_0x1b86('0x8')]['get'](_0xb5a944)[_0x1b86('0x1')];}[_0x1b86('0x0')](_0x1ecf11){return this[_0x1b86('0x3')][_0x1b86('0x8')]['get'](_0xb5a944)[_0x1b86('0x7')](_0x1ecf11);}['getSuggestions']({skipNotAttached:_0x47abf2=!0x1,toJSON:_0x4b1c57=!0x1}={}){return this[_0x1b86('0x3')][_0x1b86('0x8')][_0x1b86('0x5')](_0xb5a944)['getSuggestions']({'skipNotAttached':_0x47abf2,'toJSON':_0x4b1c57});}[_0x1b86('0x4')](_0x4a8d61){return this['editor']['plugins'][_0x1b86('0x5')](_0xb5a944)['getSuggestion'](_0x4a8d61);}}
23
+ var _0x24fd=['adapter','requires','editor','plugins','getSuggestions','addSuggestionData','getSuggestion','TrackChanges','pluginName','get','addSuggestion','Comments'];(function(_0x17c403,_0x24fd46){var _0x1a53dc=function(_0x2a80f6){while(--_0x2a80f6){_0x17c403['push'](_0x17c403['shift']());}};_0x1a53dc(++_0x24fd46);}(_0x24fd,0xc7));var _0x1a53=function(_0x17c403,_0x24fd46){_0x17c403=_0x17c403-0x0;var _0x1a53dc=_0x24fd[_0x17c403];return _0x1a53dc;};import{Plugin as _0x193ce3}from'ckeditor5/src/core.js';import _0x4e50ea from'./trackchangesui.js';import _0xbb32d1 from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x193ce3{static get[_0x1a53('0x6')](){return[_0xbb32d1,_0x4e50ea,_0x1a53('0x4')];}static get[_0x1a53('0x1')](){return _0x1a53('0x0');}set['adapter'](_0x1438c8){this[_0x1a53('0x7')]['plugins']['get'](_0xbb32d1)['adapter']=_0x1438c8;}get[_0x1a53('0x5')](){return this[_0x1a53('0x7')][_0x1a53('0x8')][_0x1a53('0x2')](_0xbb32d1)[_0x1a53('0x5')];}[_0x1a53('0x3')](_0x2987b4){return this[_0x1a53('0x7')][_0x1a53('0x8')][_0x1a53('0x2')](_0xbb32d1)[_0x1a53('0xa')](_0x2987b4);}[_0x1a53('0x9')]({skipNotAttached:_0x1fa860=!0x1,toJSON:_0x38396c=!0x1}={}){return this[_0x1a53('0x7')][_0x1a53('0x8')][_0x1a53('0x2')](_0xbb32d1)[_0x1a53('0x9')]({'skipNotAttached':_0x1fa860,'toJSON':_0x38396c});}[_0x1a53('0xb')](_0x45764e){return this['editor']['plugins'][_0x1a53('0x2')](_0xbb32d1)[_0x1a53('0xb')](_0x45764e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12b1=['editorCreator','div','constructor','createElement','result','getDataWithDiscardedSuggestions','pluginName','track-changes-data-invalid-editor-creator','trackChangesData.editorCreator','users','plugins','TrackChangesData','appendChild','createDocumentFragment','getDataWithAcceptedSuggestions','addUser','getRootNames','Pagination','trackChangesData','get','config','reduce','_adapter','TrackChangesEditing','rootsAttributes','getUser','define','name','init','addSuggestionData','data','map','create','push','CommentsRepository','model','document','getRootsAttributes','editor','TrackChangesDataGetter','useAnonymousUser','requires','destroy','end','Users'];(function(_0x580719,_0x12b1ce){const _0x3a84ec=function(_0xf3f32d){while(--_0xf3f32d){_0x580719['push'](_0x580719['shift']());}};_0x3a84ec(++_0x12b1ce);}(_0x12b1,0x1d6));const _0x3a84=function(_0x580719,_0x12b1ce){_0x580719=_0x580719-0x0;let _0x3a84ec=_0x12b1[_0x580719];return _0x3a84ec;};import{Plugin as _0x3b2b68}from'ckeditor5/src/core.js';import{CKEditorError as _0x432ba6}from'ckeditor5/src/utils.js';import _0x236914 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x200762}from'ckeditor5-collaboration/src/collaboration-core.js';const T=[_0x3a84('0x2a')];export default class P extends _0x3b2b68{static get[_0x3a84('0x15')](){return[_0x236914];}static get['pluginName'](){return _0x3a84('0x24');}[_0x3a84('0x8')](){const _0x4406d8=this['editor'];if(_0x4406d8['config'][_0x3a84('0x6')](_0x3a84('0x21'),_0x16918b=>{const _0x1ba5c9=_0x4406d8[_0x3a84('0xf')][_0x3a84('0x10')][_0x3a84('0x29')]()[_0x3a84('0x1')]((_0x318d0f,_0x407d85)=>(_0x318d0f[_0x407d85]='',_0x318d0f),{});return _0x4406d8[_0x3a84('0x1b')][_0x3a84('0xc')](_0x1ba5c9,_0x16918b);}),'function'!=typeof _0x4406d8['config'][_0x3a84('0x2c')](_0x3a84('0x2b'))[_0x3a84('0x19')])throw new _0x432ba6(_0x3a84('0x20'));}[_0x3a84('0x27')](_0x478d37){return N(this[_0x3a84('0x12')],!0x0,_0x478d37);}[_0x3a84('0x1e')](_0x12c637){return N(this[_0x3a84('0x12')],!0x1,_0x12c637);}}class D extends _0x3b2b68{static get[_0x3a84('0x1f')](){return _0x3a84('0x13');}constructor(_0x14d53f){super(_0x14d53f),this[_0x3a84('0x1d')]=_0x3a84('0x17');}[_0x3a84('0x8')](){this['editor']['plugins'][_0x3a84('0x2c')](_0x3a84('0xe'))[_0x3a84('0x2')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x3a84('0x12')][_0x3a84('0x23')][_0x3a84('0x2c')](_0x3a84('0x3'))[_0x3a84('0x2')]=null;}}function v(_0xf74f79){return void 0x0!==_0xf74f79[_0x3a84('0x11')];}async function N(_0x186122,_0x26c4e0,_0x1f365a){const _0x5b0979=_0x200762(_0x186122,T);_0x5b0979[_0x3a84('0x23')][_0x3a84('0xd')](_0x236914,D),_0x5b0979[_0x3a84('0x4')]=v(_0x186122)?_0x186122['getRootsAttributes']():void 0x0;const _0x9c0a43=document[_0x3a84('0x26')](),_0x47687b=_0x186122[_0x3a84('0x0')][_0x3a84('0x2c')](_0x3a84('0x2b'))['editorCreator'],_0x511be4=await _0x47687b(_0x5b0979,()=>function(_0x18ccee){const _0x139afd=document[_0x3a84('0x1c')](_0x3a84('0x1a'));return _0x18ccee[_0x3a84('0x25')](_0x139afd),_0x139afd;}(_0x9c0a43));!function(_0x4de6a8,_0x21a3f9){const _0x1bbbf5=_0x4de6a8[_0x3a84('0xf')][_0x3a84('0x10')][_0x3a84('0x29')]()['reduce']((_0x1e2083,_0x4b3afb)=>(_0x1e2083[_0x4b3afb]=_0x4de6a8[_0x3a84('0xa')][_0x3a84('0x2c')]({'rootName':_0x4b3afb}),_0x1e2083),{}),_0x540df9=_0x4de6a8[_0x3a84('0x23')][_0x3a84('0x2c')](_0x3a84('0x18'))[_0x3a84('0x22')][_0x3a84('0xb')](_0x3d2628=>({'id':_0x3d2628['id'],'name':_0x3d2628[_0x3a84('0x7')]})),_0x26afaa=_0x4de6a8[_0x3a84('0x23')][_0x3a84('0x2c')](_0x3a84('0x3'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6e5857=_0x21a3f9['plugins']['get'](_0x3a84('0x18')),_0x1a0521=_0x21a3f9[_0x3a84('0x23')][_0x3a84('0x2c')]('TrackChangesEditing');for(const _0xb2e4f of _0x540df9)_0x6e5857[_0x3a84('0x5')](_0xb2e4f['id'])||_0x6e5857[_0x3a84('0x28')](_0xb2e4f);_0x6e5857['me']||_0x6e5857[_0x3a84('0x14')]();for(const _0x47a5de of _0x26afaa)_0x1a0521[_0x3a84('0x9')](_0x47a5de);_0x21a3f9[_0x3a84('0xa')]['set'](_0x1bbbf5);}(_0x186122,_0x511be4),_0x511be4['execute'](_0x26c4e0?'acceptAllSuggestions':'discardAllSuggestions');const _0x5d0e4e=v(_0x511be4)?_0x511be4['getFullData'](_0x1f365a):_0x511be4[_0x3a84('0xa')][_0x3a84('0x2c')](_0x1f365a);return await _0x511be4[_0x3a84('0x16')](),_0x5d0e4e;}
23
+ const _0x336f=['name','getDataWithDiscardedSuggestions','function','init','document','execute','_adapter','createDocumentFragment','editorCreator','model','map','pluginName','getSuggestions','destroy','plugins','getFullData','getUser','acceptAllSuggestions','addUser','define','reduce','editor','end','discardAllSuggestions','appendChild','getRootNames','useAnonymousUser','Pagination','get','CommentsRepository','data','Users','div','addSuggestionData','getRootsAttributes','TrackChangesDataGetter','getDataWithAcceptedSuggestions','config','trackChangesData','users','createElement','TrackChangesEditing','rootsAttributes','track-changes-data-invalid-editor-creator'];(function(_0x1ef1e4,_0x336f2a){const _0x511e65=function(_0x540cbd){while(--_0x540cbd){_0x1ef1e4['push'](_0x1ef1e4['shift']());}};_0x511e65(++_0x336f2a);}(_0x336f,0xe6));const _0x511e=function(_0x1ef1e4,_0x336f2a){_0x1ef1e4=_0x1ef1e4-0x0;let _0x511e65=_0x336f[_0x1ef1e4];return _0x511e65;};import{Plugin as _0x35c3aa}from'ckeditor5/src/core.js';import{CKEditorError as _0x181e97}from'ckeditor5/src/utils.js';import _0x12f0e5 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x1adb4b}from'ckeditor5-collaboration/src/collaboration-core.js';const T=[_0x511e('0x11')];export default class P extends _0x35c3aa{static get['requires'](){return[_0x12f0e5];}static get[_0x511e('0x1')](){return'TrackChangesData';}[_0x511e('0x25')](){const _0x13ee3c=this[_0x511e('0xb')];if(_0x13ee3c[_0x511e('0x1b')][_0x511e('0x9')]('trackChangesData.editorCreator',_0x282ad1=>{const _0x2d352a=_0x13ee3c[_0x511e('0x2b')][_0x511e('0x26')][_0x511e('0xf')]()[_0x511e('0xa')]((_0x4b37cb,_0x3ce8b7)=>(_0x4b37cb[_0x3ce8b7]='',_0x4b37cb),{});return _0x13ee3c['constructor']['create'](_0x2d352a,_0x282ad1);}),_0x511e('0x24')!=typeof _0x13ee3c[_0x511e('0x1b')][_0x511e('0x12')](_0x511e('0x1c'))[_0x511e('0x2a')])throw new _0x181e97(_0x511e('0x21'));}[_0x511e('0x1a')](_0x5adefa){return N(this['editor'],!0x0,_0x5adefa);}[_0x511e('0x23')](_0x7fee5c){return N(this[_0x511e('0xb')],!0x1,_0x7fee5c);}}class D extends _0x35c3aa{static get[_0x511e('0x1')](){return _0x511e('0x19');}constructor(_0x338250){super(_0x338250),this['result']=_0x511e('0xc');}[_0x511e('0x25')](){this[_0x511e('0xb')][_0x511e('0x4')]['get'](_0x511e('0x13'))[_0x511e('0x28')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x511e('0xb')]['plugins']['get']('TrackChangesEditing')[_0x511e('0x28')]=null;}}function v(_0x5818ce){return void 0x0!==_0x5818ce['getRootsAttributes'];}async function N(_0x25d211,_0x197e39,_0x48808a){const _0x387896=_0x1adb4b(_0x25d211,T);_0x387896[_0x511e('0x4')]['push'](_0x12f0e5,D),_0x387896[_0x511e('0x20')]=v(_0x25d211)?_0x25d211[_0x511e('0x18')]():void 0x0;const _0x13bd1f=document[_0x511e('0x29')](),_0x3cfdb0=_0x25d211[_0x511e('0x1b')][_0x511e('0x12')](_0x511e('0x1c'))['editorCreator'],_0x366895=await _0x3cfdb0(_0x387896,()=>function(_0x1daccd){const _0x2f0417=document[_0x511e('0x1e')](_0x511e('0x16'));return _0x1daccd[_0x511e('0xe')](_0x2f0417),_0x2f0417;}(_0x13bd1f));!function(_0x1cbae9,_0x4e97cb){const _0x4b867a=_0x1cbae9[_0x511e('0x2b')][_0x511e('0x26')][_0x511e('0xf')]()['reduce']((_0x931b8,_0x4665c8)=>(_0x931b8[_0x4665c8]=_0x1cbae9[_0x511e('0x14')][_0x511e('0x12')]({'rootName':_0x4665c8}),_0x931b8),{}),_0x407706=_0x1cbae9[_0x511e('0x4')]['get'](_0x511e('0x15'))[_0x511e('0x1d')][_0x511e('0x0')](_0x3902ff=>({'id':_0x3902ff['id'],'name':_0x3902ff[_0x511e('0x22')]})),_0x50a4ac=_0x1cbae9[_0x511e('0x4')][_0x511e('0x12')](_0x511e('0x1f'))[_0x511e('0x2')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x300641=_0x4e97cb[_0x511e('0x4')]['get']('Users'),_0x8c568=_0x4e97cb['plugins'][_0x511e('0x12')](_0x511e('0x1f'));for(const _0xd2c97f of _0x407706)_0x300641[_0x511e('0x6')](_0xd2c97f['id'])||_0x300641[_0x511e('0x8')](_0xd2c97f);_0x300641['me']||_0x300641[_0x511e('0x10')]();for(const _0x22ce9f of _0x50a4ac)_0x8c568[_0x511e('0x17')](_0x22ce9f);_0x4e97cb['data']['set'](_0x4b867a);}(_0x25d211,_0x366895),_0x366895[_0x511e('0x27')](_0x197e39?_0x511e('0x7'):_0x511e('0xd'));const _0x5cd582=v(_0x366895)?_0x366895[_0x511e('0x5')](_0x48808a):_0x366895[_0x511e('0x14')]['get'](_0x48808a);return await _0x366895[_0x511e('0x3')](),_0x5cd582;}