@ckeditor/ckeditor5-track-changes 46.0.0-alpha.1 → 46.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x54f4cb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x33ac30,_0x154689){super(),this['id']=_0x154689['id'],this['type']=_0x154689['type'],this['subType']=_0x154689['subType']||null,this['author']=_0x154689['author'],this['creator']=_0x154689['creator']||_0x154689['author'],this['isExternal']=Boolean(_0x154689['attributes']&&_0x154689['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x154689['originalSuggestionId']||null,this['_model']=_0x33ac30,this['_onAccept']=_0x154689['onAccept'],this['_onDiscard']=_0x154689['onDiscard'],this['_onAttributesChange']=_0x154689['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x154689['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4e9590=this;for(;_0x4e9590['previous'];)_0x4e9590=_0x4e9590['previous'];return _0x4e9590;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x32aaba){this['_markerNames']['add'](_0x32aaba);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x189589=>this['_model']['markers']['get'](_0x189589))['filter'](_0x5c8115=>_0x5c8115);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8aaec0=>{for(const _0x58dfa0 of this['getMarkers']())_0x8aaec0['removeMarker'](_0x58dfa0);}),this['_markerNames']['clear']();}['removeMarker'](_0x506b3b){this['_model']['change'](_0x2799c3=>{_0x2799c3['removeMarker'](_0x506b3b);}),this['_markerNames']['delete'](_0x506b3b);}['addRange'](_0x2fd080){const _0x2af43d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x2af43d),this['_model']['change'](_0x444102=>{_0x444102['addMarker'](_0x2af43d,{'range':_0x2fd080,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x176f73){for(const _0x31acbd of this['getRanges']())if(_0x31acbd['isIntersecting'](_0x176f73))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8922b9=>_0x8922b9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a6154,_0x5d61f5)=>[..._0x3a6154,..._0x5d61f5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5e7957=this['getRanges']();if(0x1!=_0x5e7957['length'])return null;const _0x168d1b=_0x5e7957[0x0],_0x1577b9=_0x168d1b['start']['nodeAfter'],_0x57828f=_0x168d1b['end']['nodeBefore'];return _0x1577b9 instanceof _0x2c69d4?_0x1577b9!=_0x57828f?null:_0x1577b9:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x38b508=[];let _0x5c1acb=this['head'];for(;_0x5c1acb;)_0x38b508['push'](_0x5c1acb),_0x5c1acb=_0x5c1acb['next'];return _0x38b508;}['setAttribute'](_0x5cfb8b,_0x120517){const _0x3fce17=_0x304ad6(this['attributes']);_0x1d426a(_0x3fce17,_0x5cfb8b,_0x120517),_0x5b6043(_0x3fce17,this['attributes'])||(this['attributes']=_0x3fce17,this['_onAttributesChange'](_0x3fce17));}['removeAttribute'](_0x6f8de8){const _0x15d766=_0x304ad6(this['attributes']);_0x1978be(_0x15d766,_0x6f8de8),_0x5b6043(_0x15d766,this['attributes'])||(this['attributes']=_0x15d766,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x1a8355()['substr'](0x1,0x5);}}function o(_0x155727,_0xf1c25b,_0x336941){const _0x522348=_0x155727['t'],t=_0x155727['t'];switch(_0xf1c25b){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x336941);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x336941);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x336941);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x336941);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x336941);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x336941);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x336941);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x336941);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x336941);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x336941);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x336941);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x336941);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x336941);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x336941);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x336941);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x336941);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x336941);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x336941);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x336941);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x336941);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x336941);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x336941);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x336941);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x336941);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x336941);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x336941);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x336941);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x336941);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x336941);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x336941);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x336941);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x336941);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x336941);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x336941);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x336941);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x336941);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x336941);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x336941);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x336941);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x336941);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x336941);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x336941);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x336941);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x336941);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x336941);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x336941);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x336941);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x336941);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x336941);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x336941);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x522348({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x336941);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x522348({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x336941);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x336941);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x336941);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x336941);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x336941);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf1c25b;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x19f2e3,_0x5add9c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x19f2e3,this['_locale']=_0x5add9c;}['getDescriptions'](_0x43fa95){const _0x5a3975=[],_0x819d4e=new Set(),_0x2310fb=new Set();for(let _0x570f15=0x0;_0x570f15<_0x43fa95['length'];_0x570f15++){const _0x412cd6=_0x43fa95[_0x570f15];if(!_0x412cd6['isInContent'])continue;const _0x2ec19b=this['_handleCustomCallbackDescription'](_0x412cd6);if(_0x2ec19b){if(null!=_0x412cd6['subType']){if(_0x819d4e['has'](_0x412cd6['subType']))continue;_0x819d4e['add'](_0x412cd6['subType']);}_0x5a3975['push'](_0x2ec19b);}else{if('attribute'==_0x412cd6['type']){const _0x5aad4d=_0x412cd6['data']['key'];if(_0x2310fb['has'](_0x5aad4d))continue;_0x2310fb['add'](_0x412cd6['data']['key']),_0x5aad4d==m?this['_handleRenameSuggestionDescription'](_0x5a3975,_0x412cd6):this['_handleAttributeSuggestionDescription'](_0x5a3975,_0x412cd6);continue;}'insertion'!=_0x412cd6['type']&&'deletion'!=_0x412cd6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5a3975,_0x412cd6,_0x43fa95[_0x570f15+0x1]);}}return this['_resolveDescriptionItems'](_0x5a3975);}['registerDescriptionCallback'](_0x98ff92){this['_customCallbacks']['push'](_0x98ff92);}['registerElementLabel'](_0x53e92a,_0x14d554,_0x5a8714=_0x16cc49['normal']){'function'==typeof _0x53e92a?_0x43eb57(this['_itemLabelsCallbacks'],{'matchingCallback':_0x53e92a,'label':_0x14d554,'priority':_0x5a8714}):this['_itemLabels']['set'](_0x53e92a,_0x14d554);}['registerAttributeLabel'](_0x1af5f0,_0x34838d){this['_attributeLabels']['set'](_0x1af5f0,_0x34838d);}['getItemLabel'](_0x37a7cb,_0x4c0dd5=0x1){let _0x3025de;for(const _0x39f4e8 of this['_itemLabelsCallbacks'])if(_0x39f4e8['matchingCallback'](_0x37a7cb)){_0x3025de=_0x39f4e8['label'];break;}return _0x3025de||(_0x3025de=this['_itemLabels']['get'](_0x37a7cb['name'])),_0x3025de?_0x3025de(_0x4c0dd5):0x1!==_0x4c0dd5?_0x4c0dd5+'\x20'+_0x37a7cb['name']+'s':''+_0x37a7cb['name'];}['_addDescriptionItems'](_0x4216aa,_0x3a1086){const _0x2b189c=_0x3a1086['getFirstRange']()['getWalker'](),_0x1864e2='insertion'==_0x3a1086['type']?'add':'remove';for(const _0x33b75f of _0x2b189c){const _0x2bd252=_0x33b75f['item'],_0x55b62f=_0x4216aa[_0x4216aa['length']-0x1];if(_0x2bd252['is']('$textProxy'))_0x55b62f&&_0x55b62f['type']['indexOf']('Container')>-0x1&&_0x4216aa['pop'](),_0x55b62f&&'text'==_0x55b62f['type']?_0x55b62f[_0x1864e2]+=_0x2bd252['data']:_0x4216aa['push']({'type':'text','add':'add'==_0x1864e2?_0x2bd252['data']:'','remove':'remove'==_0x1864e2?_0x2bd252['data']:''});else{if(this['_schema']['isObject'](_0x2bd252)){const _0xea91cd=_0x2bd252;if(_0x55b62f&&_0x55b62f['type']['indexOf']('Container')>-0x1&&_0x4216aa['pop'](),'elementEnd'==_0x33b75f['type'])continue;_0x55b62f&&_0x55b62f['type']==_0x1864e2+'Object'&&_0x55b62f['element']['name']==_0xea91cd['name']?_0x55b62f['quantity']++:_0x4216aa['push']({'type':_0x1864e2+'Object','element':_0xea91cd,'quantity':0x1}),_0x2b189c['skip'](_0x52957c=>!('elementEnd'==_0x52957c['type']&&_0x52957c['item']==_0x2bd252));}else{if(this['_schema']['checkChild'](_0x2bd252,'$text')||_0x2bd252['is']('element','softBreak')){const _0x54b671=_0x2bd252;if('add'==_0x1864e2&&'elementStart'==_0x33b75f['type']||'remove'==_0x1864e2&&'elementEnd'==_0x33b75f['type'])continue;if(_0x55b62f&&-0x1==_0x55b62f['type']['indexOf']('Container')){'text'==_0x55b62f['type']&&(_0x55b62f[_0x1864e2]+='\x0a');continue;}let _0x50691a;if(_0x50691a='add'==_0x1864e2?_0x54b671['nextSibling']&&!this['_schema']['isObject'](_0x54b671['nextSibling'])?_0x54b671['nextSibling']:null:_0x54b671['previousSibling']&&!this['_schema']['isObject'](_0x54b671['previousSibling'])?_0x54b671['previousSibling']:null,_0x54b671['isEmpty']||_0x50691a&&_0x50691a['isEmpty']){const _0x49b257=_0x50691a&&_0x50691a['isEmpty']?_0x50691a:_0x54b671;_0x55b62f&&_0x55b62f['type']==_0x1864e2+'EmptyContainer'&&_0x55b62f['element']['name']==_0x49b257['name']?_0x55b62f['quantity']++:_0x4216aa['push']({'type':_0x1864e2+'EmptyContainer','element':_0x49b257,'quantity':0x1});}else _0x4216aa['push']({'type':_0x1864e2+'Container','element':_0x54b671});}}}}}['_resolveDescriptionItems'](_0x454aa3){const _0x2ce99e=this['_locale'],_0x5211e0=[],_0x5ab56e=[],_0x531c15=[];for(const _0x594446 of _0x454aa3)switch(_0x594446['type']){case'text':if(_0x594446['add']=_0x594446['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x594446['remove']=_0x594446['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x594446['add']&&''!=_0x594446['remove']){_0x5211e0['push']({'type':'replace','content':o(_0x2ce99e,'REPLACE_TEXT',['\x22'+_0x594446['remove']+'\x22','\x22'+_0x594446['add']+'\x22'])});continue;}if(null!=_0x594446['add']['match'](/^ +$/)){_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Insert:*\x20%0',o(_0x2ce99e,'ELEMENT_SPACE',_0x594446['add']['length']))});continue;}if(null!=_0x594446['remove']['match'](/^ +$/)){_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Remove:*\x20%0',o(_0x2ce99e,'ELEMENT_SPACE',_0x594446['remove']['length']))});continue;}if(''!=_0x594446['add']){_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Insert:*\x20%0','\x22'+_0x594446['add']+'\x22')});continue;}_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Remove:*\x20%0','\x22'+_0x594446['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Insert:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Remove:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'addContainer':_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Split:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'removeContainer':_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Merge:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'addFormat':_0x5ab56e['push'](_0x594446['key']);continue;case'removeFormat':_0x531c15['push'](_0x594446['key']);continue;default:_0x5211e0['push'](_0x594446);}if(_0x5ab56e['length']){const _0x29f1d3=_0x5ab56e['map'](_0x29ce47=>this['_attributeLabels']['has'](_0x29ce47)?this['_attributeLabels']['get'](_0x29ce47):_0x29ce47)['join'](',\x20');_0x5211e0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x29f1d3)});}if(_0x531c15['length']){const _0x93a765=_0x531c15['map'](_0xed87af=>this['_attributeLabels']['has'](_0xed87af)?this['_attributeLabels']['get'](_0xed87af):_0xed87af)['join'](',\x20');_0x5211e0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x93a765)});}return _0x5211e0;}['_handleCustomCallbackDescription'](_0x313598){for(const _0x37a846 of this['_customCallbacks']){const _0x14ef60=_0x37a846(_0x313598);if(_0x14ef60&&'type'in _0x14ef60)return _0x14ef60;}}['_handleAttributeSuggestionDescription'](_0xe70a34,_0x4fe809){const _0x194589=_0x4fe809['data'],_0x4aa9f0=void 0x0===_0x194589['newValue']?'removeFormat':'addFormat';_0xe70a34['push']({'type':_0x4aa9f0,'key':_0x194589['key']});}['_handleRenameSuggestionDescription'](_0x4a2743,_0x55c891){_0x4a2743['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55c891['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc68ffe,_0x293aeb,_0x6df695){if(this['_addDescriptionItems'](_0xc68ffe,_0x293aeb),_0x6df695&&_0x6df695['getFirstRange']()&&!_0x293aeb['getFirstRange']()['end']['isEqual'](_0x6df695['getFirstRange']()['start'])){const _0x585f7f=_0xc68ffe[_0xc68ffe['length']-0x1],_0x41bb1d='insertion'==_0x293aeb['type']?'add':'remove';_0x585f7f&&'text'==_0x585f7f['type']&&(_0x585f7f[_0x41bb1d]+='\x0a');}}}class O extends _0xeec5ec{['afterInit'](){const _0x344729=this['editor'],_0x16a203=_0x344729['plugins']['get']('TrackChangesEditing');_0x344729['commands']['get']('showAIAssistant')&&_0x16a203['enableCommand']('showAIAssistant');}}class E extends _0xeec5ec{['afterInit'](){const _0x347229=this['editor'],_0x163ec4=_0x347229['locale'];if(!_0x347229['plugins']['has']('AlignmentEditing'))return;const _0x409a0f=_0x347229['plugins']['get']('TrackChangesEditing');_0x409a0f['enableDefaultAttributesIntegration']('alignment'),_0x409a0f['registerBlockAttribute']('alignment'),_0x409a0f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x163ec4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x708369=this['editor'],_0x4a8e54=_0x708369['locale'];_0x708369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bdc47=>{if('formatBlock'!=_0x5bdc47['type'])return;const {data:_0x1d3575}=_0x5bdc47;if(_0x1d3575&&'alignment'==_0x1d3575['commandName']){const _0x2b1305=_0x1d3575['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a8e54,'*Format:*\x20%0',function(_0x32548c){switch(_0x32548c){case'left':return o(_0x4a8e54,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a8e54,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a8e54,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a8e54,'FORMAT_JUSTIFY_TEXT');}}(_0x2b1305))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xeec5ec{['afterInit'](){const _0x8425f1=this['editor'],_0x9cffee=_0x8425f1['plugins']['get']('TrackChangesEditing'),_0x12ffe5=_0x8425f1['locale'];for(const _0x1df61f of ti){if(!_0x8425f1['plugins']['has'](_0x1df61f))continue;const _0x1fe9f9=_0x1df61f['slice'](0x0,-0x7)['toLowerCase'](),_0x4095b4='FORMAT_'+_0x1fe9f9['toUpperCase']();_0x9cffee['enableDefaultAttributesIntegration'](_0x1fe9f9),_0x9cffee['registerInlineAttribute'](_0x1fe9f9),_0x9cffee['descriptionFactory']['registerAttributeLabel'](_0x1fe9f9,o(_0x12ffe5,_0x4095b4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8639=this['editor'],_0x438732=_0x4b8639['locale'],_0x257e2c=_0x4b8639['plugins']['get']('TrackChangesEditing');function _0x2379e7(_0x540135,_0x2781e7){_0x257e2c['descriptionFactory']['registerDescriptionCallback'](_0x585cba=>{if('formatInline'!=_0x585cba['type'])return;const {data:_0x157693}=_0x585cba;return _0x157693&&_0x157693['commandName']===_0x540135?_0x157693['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x438732,'*Format:*\x20%0',_0x2781e7)}:{'type':'format','content':o(_0x438732,'*Remove\x20format:*\x20%0',_0x2781e7)}:void 0x0;});}_0x2379e7('bold',o(_0x438732,'FORMAT_BOLD')),_0x2379e7('italic',o(_0x438732,'FORMAT_ITALIC')),_0x2379e7('underline',o(_0x438732,'FORMAT_UNDERLINE')),_0x2379e7('code',o(_0x438732,'FORMAT_CODE')),_0x2379e7('strikethrough',o(_0x438732,'FORMAT_STRIKETHROUGH')),_0x2379e7('subscript',o(_0x438732,'FORMAT_SUBSCRIPT')),_0x2379e7('superscript',o(_0x438732,'FORMAT_SUPERSCRIPT'));}}class U extends _0xeec5ec{['afterInit'](){const _0x239c52=this['editor'],_0x2a537f=_0x239c52['locale'];if(!_0x239c52['plugins']['has']('BlockQuoteEditing'))return;const _0x43079d=_0x239c52['plugins']['get']('TrackChangesEditing'),_0x5253c0=this['editor']['commands']['get']('blockQuote');_0x43079d['enableCommand']('blockQuote',(_0x3ec98a,_0x31c4ec={})=>{const _0x2fbbe4=this['editor']['model']['document']['selection'],_0x476c7e=_0x31c4ec&&void 0x0!==_0x31c4ec['forceValue']?_0x31c4ec['forceValue']:!_0x5253c0['value'];let _0x4ea354=[];if(_0x476c7e){const _0x5626c9=Array['from'](_0x2fbbe4['getSelectedBlocks']())['filter'](_0x41e38b=>oo(_0x41e38b)||function(_0x2f0293,_0x499047){const _0x17e37f=_0x499047['checkChild'](_0x2f0293['parent'],'blockQuote'),_0x3e57f7=_0x499047['checkChild'](['$root','blockQuote'],_0x2f0293);return _0x17e37f&&_0x3e57f7;}(_0x41e38b,this['editor']['model']['schema']));_0x4ea354=to(_0x5626c9,_0x239c52['model']);}else{const _0x830198=Array['from'](_0x2fbbe4['getSelectedBlocks']())['filter'](_0x5d28ad=>oo(_0x5d28ad));_0x4ea354=to(_0x830198,_0x239c52['model']);}_0x239c52['model']['change'](()=>{for(const _0x111a1e of _0x4ea354)_0x43079d['markBlockFormat'](_0x111a1e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x476c7e}]});});}),_0x43079d['descriptionFactory']['registerDescriptionCallback'](_0xc49c26=>{const {data:_0x5d9678}=_0xc49c26;if(_0x5d9678&&'blockQuote'==_0x5d9678['commandName']){const _0x199f98=o(_0x2a537f,'ELEMENT_BLOCK_QUOTE');return _0x5d9678['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a537f,'*Set\x20format:*\x20%0',_0x199f98)}:{'type':'format','content':o(_0x2a537f,'*Remove\x20format:*\x20%0',_0x199f98)};}});}}function oo(_0x7b256d){return'blockQuote'==_0x7b256d['parent']['name'];}class V extends _0xeec5ec{['afterInit'](){const _0x4b96c1=this['editor'],_0x3b100b=_0x4b96c1['locale'],_0x4f8a27=_0x4b96c1['plugins']['get']('TrackChangesEditing');_0x4b96c1['plugins']['has']('BookmarkEditing')&&(_0x4f8a27['enableCommand']('insertBookmark'),_0x4f8a27['enableDefaultAttributesIntegration']('updateBookmark'),_0x4f8a27['registerBlockAttribute']('bookmarkId'),_0x4f8a27['descriptionFactory']['registerDescriptionCallback'](_0x2c85e7=>{if('insertion'!=_0x2c85e7['type']&&'deletion'!=_0x2c85e7['type']&&'attribute'!=_0x2c85e7['type'])return;const _0x33f225=_0x2c85e7['getContainedElement']();if(null==_0x33f225)return;if(!_0x33f225['is']('element','bookmark'))return;const _0x30c40a=_0x33f225['getAttribute']('bookmarkId');if('insertion'==_0x2c85e7['type'])return{'type':'insertion','content':o(_0x3b100b,'*Insert:*\x20%0','\x22'+_0x30c40a+'\x22\x20'+o(_0x3b100b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c85e7['type'])return{'type':'deletion','content':o(_0x3b100b,'*Remove:*\x20%0','\x22'+_0x30c40a+'\x22\x20'+o(_0x3b100b,'ELEMENT_BOOKMARK'))};const {data:_0x64aabd}=_0x2c85e7;if(!_0x64aabd||'bookmarkId'!=_0x64aabd['key'])return;return{'type':'format','content':o(_0x3b100b,'*Set\x20bookmark:*\x20%0','\x22'+_0x64aabd['newValue']+'\x22')};}));}}class F extends _0xeec5ec{['afterInit'](){const _0x75819f=this['editor'];_0x75819f['plugins']['has']('CaseChange')&&(_0x75819f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x75819f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x75819f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xeec5ec{['afterInit'](){const _0x5b7bf4=this['editor'];_0x5b7bf4['commands']['get']('ckbox')&&_0x5b7bf4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xeec5ec{['afterInit'](){const _0x10d543=this['editor'];if(!_0x10d543['plugins']['has']('CodeBlock'))return;const _0x3770f7=_0x10d543['plugins']['get']('TrackChangesEditing'),_0x44a5b3=_0x10d543['locale'],_0xf8cad3=_0x10d543['config']['get']('codeBlock')['languages'],_0x2c2211=_0x10d543['commands']['get']('codeBlock');_0x3770f7['enableCommand']('indentCodeBlock'),_0x3770f7['enableCommand']('outdentCodeBlock'),_0x3770f7['enableCommand']('codeBlock',(_0x23c7c7,_0x47c3d0={})=>{const _0x27d0e4=_0x10d543['model'],_0x10ce5c=_0x10d543['model']['document']['selection'],_0x156ccf=_0x47c3d0&&void 0x0!==_0x47c3d0['forceValue']?_0x47c3d0['forceValue']:!_0x2c2211['value'];let _0x2c601f;_0x47c3d0['language']||(_0x47c3d0['language']=_0xf8cad3[0x0]['language']),_0x2c601f=_0x156ccf?Array['from'](_0x10ce5c['getSelectedBlocks']())['filter'](_0x41e0a1=>co(_0x41e0a1)||function(_0x22ba25,_0x350535){if(_0x22ba25['is']('rootElement')||_0x350535['isLimit'](_0x22ba25))return!0x1;return _0x350535['checkChild'](_0x22ba25['parent'],'codeBlock');}(_0x41e0a1,_0x27d0e4['schema'])):Array['from'](_0x10ce5c['getSelectedBlocks']())['filter'](_0x270dd9=>co(_0x270dd9));const _0x4df867=to(_0x2c601f,_0x27d0e4);_0x27d0e4['change'](()=>{for(const _0x3123e2 of _0x4df867)_0x3770f7['markBlockFormat'](_0x3123e2,{'commandName':'codeBlock','commandParams':[{..._0x47c3d0,'forceValue':_0x156ccf}],'formatGroupId':'blockName'});});}),(_0x3770f7['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cf6cc=>o(_0x44a5b3,'ELEMENT_CODE_BLOCK',_0x2cf6cc)),_0x3770f7['descriptionFactory']['registerDescriptionCallback'](_0x28adef=>{if('formatBlock'!=_0x28adef['type'])return;const _0x3f5cfd=_0x44a5b3['t'],{data:_0x56cf80}=_0x28adef;if(!_0x56cf80||'codeBlock'!=_0x56cf80['commandName'])return;const _0x876c11=_0x56cf80['commandParams'][0x0]['language'],_0x148700=_0x3f5cfd(_0xf8cad3['find'](_0x12a6a1=>_0x12a6a1['language']===_0x876c11)['label'])['toLowerCase']();return _0x56cf80['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44a5b3,'*Set\x20format:*\x20%0',o(_0x44a5b3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x148700+')')}:{'type':'format','content':o(_0x44a5b3,'*Remove\x20format:*\x20%0',o(_0x44a5b3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1eb42b){return'codeBlock'==_0x1eb42b['name'];}class J extends _0xeec5ec{['afterInit'](){const _0x961abb=this['editor'];if(!_0x961abb['plugins']['has']('CommentsEditing'))return;_0x961abb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3110fc,_0x291c16,_0xb15dc9){const _0x401e8e=[];for(const _0x5eb209 of _0x291c16['getItems']())_0x5eb209['hasAttribute'](_0x3110fc)&&_0x401e8e['push'](_0xb15dc9['createRangeOn'](_0x5eb209));return _0x401e8e;}function De(_0x2939b8,_0x3db8bd,{showActiveMarker:_0x5248ae=!0x0}={}){const _0x3089f6=_0x2939b8['plugins']['get']('TrackChangesEditing');return(_0x36ac08,_0x4e2cfb,_0x17c08b)=>{if(!_0x17c08b['consumable']['test'](_0x4e2cfb['markerRange'],_0x36ac08['name']))return;const _0x6535be=_0x4e2cfb['markerRange']['getWalker'](),_0x233b14=_0x4e2cfb['markerRange']['start'],_0x523c76=_0x2939b8['model']['schema'];let _0x3cc194=null,_0x52cb42=null,_0x2cebcc=!0x1,_0x35c221=!0x1;for(const _0x58ce8a of _0x6535be){const _0x464488=_0x58ce8a['item'];_0x2cebcc=_0x2cebcc||_0x523c76['isContent'](_0x464488);const _0x4ba4fd=_0x17c08b['mapper']['toViewElement'](_0x464488);if(_0x4ba4fd&&_0x4ba4fd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58ce8a['type']&&(_0x523c76['isBlock'](_0x464488)&&!_0x523c76['isLimit'](_0x464488)&&(_0x464488['nextSibling']||_0x233b14['isAtEnd']?_0x3cc194&&_0x3cc194['parent']==_0x464488||(_0x3cc194=_0x464488,_0x1340e2(_0x58ce8a['previousPosition']),_0x35c221=!0x0):_0x52cb42=_0x52cb42||_0x58ce8a['previousPosition']));}function _0x1340e2(_0x4bdfd8){const {id:_0x4fcc3e,authorId:_0x84e3fa}=_0x3089f6['_splitMarkerName'](_0x4e2cfb['markerName']),_0x1ee003=_0x17c08b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3db8bd,'data-suggestion':_0x4fcc3e,'data-author-id':_0x84e3fa}),_0x1f2588=_0x17c08b['mapper']['toViewPosition'](_0x4bdfd8);_0x5248ae&&_0x3089f6['activeMarkers']['includes'](_0x4e2cfb['markerName'])&&_0x17c08b['writer']['addClass']('ck-suggestion-marker--active',_0x1ee003),_0x17c08b['writer']['insert'](_0x1f2588,_0x1ee003),_0x17c08b['mapper']['bindElementToMarker'](_0x1ee003,_0x4e2cfb['markerName']);}_0x2cebcc||_0x35c221||!_0x52cb42||_0x1340e2(_0x52cb42);};}class K extends _0xeec5ec{static get['requires'](){return[_0x5f02aa];}['init'](){const _0x1784c1=this['editor'],_0x1865d9=_0x1784c1['plugins']['get']('TrackChangesEditing');_0x1865d9['enableCommand']('delete');const _0x44d0fd=_0x1784c1['commands']['get']('deleteForward');_0x1865d9['enableCommand']('deleteForward',(_0x503531,_0x566ef6={})=>{const _0x37ec12=_0x1784c1['model']['createSelection'](_0x1784c1['model']['document']['selection']);_0x37ec12['isCollapsed']&&_0x1784c1['model']['modifySelection'](_0x37ec12,{'direction':'forward','unit':_0x566ef6['unit']});const _0x4a3a23=_0x37ec12['getFirstRange'](),_0x853c69=_0x414e2a['fromRange'](_0x4a3a23);let _0x5cf3df;_0x503531(_0x566ef6),_0x5cf3df='$graveyard'==_0x853c69['root']['rootName']?_0x1784c1['model']['createRange'](_0x4a3a23['start']):_0x1784c1['model']['createRange'](_0x853c69['start'],_0x853c69['end']),_0x853c69['detach'](),_0x1784c1['model']['enqueueChange'](_0x44d0fd['buffer']['batch'],_0xdb289=>{_0x44d0fd['buffer']['lock'](),_0xdb289['setSelection'](_0xdb289['createRange'](_0x5cf3df['end'])),_0x44d0fd['buffer']['unlock']();});}),_0x1784c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1784c1,'merge'),{'priority':'high'}),_0x1784c1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a81ed,_0x1650e8,_0x124c39)=>{_0x124c39['options']['showSuggestionHighlights']&&De(_0x1784c1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a81ed,_0x1650e8,_0x124c39);},{'priority':'high'}),_0x1784c1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4256ff,_0x52e606,_0x503b87)=>{const _0x48c974=_0x503b87['mapper']['markerNameToElements'](_0x52e606['markerName']);if(_0x48c974){for(const _0xc9858d of _0x48c974)_0xc9858d['is']('uiElement')&&(_0x503b87['mapper']['unbindElementFromMarkerName'](_0xc9858d,_0x52e606['markerName']),_0x503b87['writer']['remove'](_0xc9858d));}},{'priority':'high'});}}class H extends _0xeec5ec{['afterInit'](){const _0xce97b3=this['editor'];if(!_0xce97b3['plugins']['has']('ListEditing'))return;const _0x39cbcb=_0xce97b3['locale'],_0x2be63f=_0xce97b3['plugins']['get']('TrackChangesEditing'),_0x1b03a8=_0xce97b3['plugins']['has']('TodoListEditing'),_0x3916ba=!!_0xce97b3['config']['get']('list.multiBlock');function _0x3c140c(_0x2d02dd){return{'type':'format','content':''+o(_0x39cbcb,'*Set\x20format:*\x20%0',_0x2d02dd)};}function _0x250420(_0x2d0717){return{'type':'format','content':''+o(_0x39cbcb,'*Remove\x20format:*\x20%0',_0x2d0717)};}_0x2be63f['enableDefaultAttributesIntegration']('numberedList'),_0x2be63f['enableDefaultAttributesIntegration']('bulletedList'),_0x2be63f['enableDefaultAttributesIntegration']('customNumberedList'),_0x2be63f['enableDefaultAttributesIntegration']('customBulletedList'),_0x2be63f['enableDefaultAttributesIntegration']('indentList'),_0x2be63f['enableDefaultAttributesIntegration']('outdentList'),_0x2be63f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2be63f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2be63f['registerBlockAttribute']('listItemId'),_0x2be63f['registerBlockAttribute']('listType'),_0x2be63f['registerBlockAttribute']('listIndent'),_0x3916ba&&(_0x2be63f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2be63f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1b03a8&&(_0x2be63f['enableDefaultAttributesIntegration']('todoList'),_0x2be63f['enableDefaultAttributesIntegration']('checkTodoList'),_0x2be63f['registerBlockAttribute']('todoListChecked'),_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0x12f970=>{const {data:_0x43490a}=_0x12f970;if(_0x43490a&&'todoListChecked'==_0x43490a['key'])return{'type':'format','content':_0x43490a['newValue']?o(_0x39cbcb,'*Check\x20item*'):o(_0x39cbcb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x51bddb=>{if(_0x51bddb['batch']['isUndo'])return!0x1;let _0xbe0751=!0x1;const _0x3c8b10=_0x2be63f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31f3a5=>'todoListChecked'===_0x2be63f['_getAttributeKey'](_0x31f3a5));for(const _0x2c685a of _0x3c8b10){'todo'!=_0x2c685a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2be63f['_findSuggestions'](_0x2c685a['getFirstRange'](),'attribute')['find'](_0x4a08c3=>'listType'===_0x2be63f['_getAttributeKey'](_0x4a08c3['suggestion']))||(_0x51bddb['removeMarker'](_0x2c685a['getFirstMarker']()),_0xbe0751=!0x0));}return _0xbe0751;})),_0x2be63f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x39cbcb,'FORMAT_INDENT'));const _0xfd5b9d={'type':'format','content':''};_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0xf1aec=>{const {data:_0x153105}=_0xf1aec;if(!_0x153105||'listType'!=_0x153105['key'])return;let _0x509ace=_0xf1aec['head'];for(;_0x509ace;){if(_0x509ace['data']&&(('listStyle'==_0x509ace['data']['key']||'listMarkerStyle'==_0x509ace['data']['key'])&&(_0x509ace['data']['newValue']&&'default'!=_0x509ace['data']['newValue']||'default'!=_0x509ace['data']['oldValue']&&!_0x153105['newValue'])||!_0x3916ba&&_0x509ace['data']['key']==m))return _0xfd5b9d;_0x509ace=_0x509ace['next'];}if(null==_0x153105['newValue'])switch(_0x153105['oldValue']){case'bulleted':return _0x250420(o(_0x39cbcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x250420(o(_0x39cbcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x250420(o(_0x39cbcb,'ELEMENT_TODO_LIST'));}switch(_0x153105['newValue']){case'bulleted':return _0x3c140c(o(_0x39cbcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c140c(o(_0x39cbcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c140c(o(_0x39cbcb,'ELEMENT_TODO_LIST'));}}),_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0x28513c=>{const {data:_0x352d9a}=_0x28513c;if(_0x352d9a&&'listIndent'==_0x352d9a['key'])return null==_0x352d9a['newValue']||null==_0x352d9a['oldValue']&&0x0==_0x352d9a['newValue']?_0xfd5b9d:void 0x0;}),_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0x18252f=>{if('attribute'!=_0x18252f['type'])return;const {data:_0x51c691}=_0x18252f;if(!_0x51c691||'listItemId'!=_0x51c691['key'])return;const _0xa83958=Te(_0x18252f);return'newValue'==_0xa83958?{'type':'format','content':o(_0x39cbcb,'*Merge:*\x20list\x20item')}:'oldValue'==_0xa83958?{'type':'format','content':o(_0x39cbcb,'*Split:*\x20list\x20item')}:_0xfd5b9d;}),_0xce97b3['model']['document']['registerPostFixer'](_0x56312d=>this['listItemIdFixer'](_0x56312d)),_0xce97b3['model']['document']['registerPostFixer'](_0x120f04=>this['noTrackChangesFixer'](_0x120f04)),_0xce97b3['model']['document']['on']('change:data',(_0x3d2302,_0x5687d0)=>{if(_0x5687d0['isUndo']||!_0x5687d0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b7ed4){if(_0x5b7ed4['batch']['isUndo']||!_0x5b7ed4['batch']['isLocal'])return!0x1;let _0x2385d5=!0x1;const _0x12077f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245867=>_0x245867['data']&&'listItemId'==_0x245867['data']['key'])['filter'](_0x1ae49f=>_0x1ae49f['data']['newValue']&&_0x1ae49f['data']['oldValue']);for(const _0x3e4c22 of _0x12077f)Te(_0x3e4c22)||(_0x5b7ed4['removeMarker'](_0x3e4c22['getFirstMarker']()),_0x2385d5=!0x0);return _0x2385d5;}['noTrackChangesFixer'](_0x1ef5a1){if(_0x1ef5a1['batch']['isUndo']||!_0x1ef5a1['batch']['isLocal'])return!0x1;const _0x14f37d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x14f37d['trackChangesCommand']['value'])return!0x1;let _0x2a481e=!0x1;const _0x3105ec=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1434d8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38cd1d=>'attribute'==_0x38cd1d['type'])['filter'](_0x14bdf2=>_0x3105ec['includes'](_0x14bdf2['attributeKey']));if(0x0==_0x1434d8['length'])return _0x2a481e;for(const _0x5c4f7b of _0x1434d8){const _0x46a582=_0x14f37d['_findSuggestions'](_0x5c4f7b['range'],'attribute')['filter'](_0x3dc1f2=>!_0x3dc1f2['meta']['isNextTo'])['map'](_0x17d0e8=>_0x17d0e8['suggestion'])['filter'](_0x52484f=>{const _0x151d1e=_0x14f37d['_getAttributeKey'](_0x52484f);return _0x3105ec['includes'](_0x151d1e);});if(_0x46a582['length']){for(const _0x40ad09 of _0x46a582)_0x1ef5a1['removeMarker'](_0x40ad09['getFirstMarker']());_0x2a481e=!0x0;}}return _0x2a481e;}['assureChains'](){const _0x16b34e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b8216=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc0deda;const _0x3a5aa0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x161b14=>{if(_0x161b14['data']['oldRange']||!_0x161b14['data']['newRange'])return null;if(!_0x161b14['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10bc3a}=_0x16b34e['_splitMarkerName'](_0x161b14['name']);if(!_0x16b34e['hasSuggestion'](_0x10bc3a))return null;const _0x55e5d8=_0x16b34e['getSuggestion'](_0x10bc3a);return _0x3b8216['includes'](_0x55e5d8['data']['key']);})['map'](_0xbba29b=>{const {id:_0x23eab2}=_0x16b34e['_splitMarkerName'](_0xbba29b['name']),_0x54ad78=_0x16b34e['getSuggestion'](_0x23eab2);return _0xc0deda=_0x54ad78['attributes']['groupId'],_0x54ad78['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a5aa0['size'])return;const _0x5b9d33=_0x16b34e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc5e16c=>'attribute'==_0xc5e16c['type']&&_0xc5e16c['data']&&_0x3b8216['includes'](_0xc5e16c['data']['key'])&&_0xc5e16c['attributes']['groupId']!=_0xc0deda)['map'](_0x32a97a=>({'listItem':_0x32a97a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x32a97a['attributes']['groupId']})),_0x6d856=new Set();for(const {groupId:_0x47e28a,listItem:_0x8fbef0}of _0x5b9d33)_0x3a5aa0['has'](_0x8fbef0)&&_0x6d856['add'](_0x47e28a);for(const _0x1a453f of _0x16b34e['getSuggestions']())_0x6d856['has'](_0x1a453f['attributes']['groupId'])&&_0x1a453f['setAttribute']('groupId',_0xc0deda);}['_supportLegacySuggestions'](){const _0x4ceb6=this['editor'],_0xa53db0=_0x4ceb6['locale'],_0x910e85=_0x4ceb6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x910e85['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51d6c2,_0x28106e){const _0x5e7710=[];for(let _0x5ae54a of _0x51d6c2)_0x5ae54a['start']['nodeAfter']===_0x5ae54a['end']['parent']&&(_0x5ae54a=_0x4ceb6['model']['createRange'](_0x4ceb6['model']['createPositionAt'](_0x5ae54a['start']['nodeAfter'],0x0))),_0x5e7710['push'](_0x5ae54a);_0x4ceb6['model']['change'](_0x66ec4a=>{const _0x5b69da=_0x4ceb6['model']['document']['selection'],_0x5e049f=Array['from'](_0x5b69da['getRanges']())['map'](_0x12c5b6=>_0x414e2a['fromRange'](_0x12c5b6));_0x66ec4a['setSelection'](_0x5e7710),_0x4ceb6['commands']['get'](_0x28106e['commandName'])['refresh'](),_0x28106e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ceb6['execute'](_0x28106e['commandName'],..._0x28106e['commandParams']),_0x66ec4a['setSelection'](_0x5e049f);for(const _0x1cb2f7 of _0x5e049f)_0x1cb2f7['detach']();});}),_0x910e85['descriptionFactory']['registerElementLabel'](function(_0x410463){const _0x43d4b9=!_0x4ceb6['model']['schema']['isObject'](_0x410463),_0x31d1eb=_0x410463['previousSibling'],_0x555b60=_0x410463['nextSibling'],_0x3b6866=_0x410463['getAttribute']('listItemId'),_0x7bad5=!_0x31d1eb||_0x31d1eb['getAttribute']('listItemId')!==_0x3b6866,_0x3fd31b=!_0x555b60||_0x555b60['getAttribute']('listItemId')!==_0x3b6866;return _0x43d4b9&&Boolean(_0x3b6866)&&_0x7bad5&&_0x3fd31b;},_0x56deaf=>o(_0xa53db0,'ELEMENT_LIST_ITEM',_0x56deaf));}['_registerLegacyDescription'](){const _0x2482fb=this['editor'],_0x272fab=_0x2482fb['locale'];function _0x5d88c7(_0x5a0cb1){const _0x480571=_0x2482fb['commands']['get']('bulletedList')['value'],_0x458175=_0x2482fb['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a0cb1?_0x480571:_0x458175;}_0x2482fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x33ce25){if('formatBlock'!=_0x33ce25['type'])return;const {data:_0xf6fc9}=_0x33ce25;if(!_0xf6fc9)return;let _0x221253,_0x7a04f3,_0x484993,_0x13561d;switch(_0xf6fc9['commandName']){case'bulletedList':_0x484993=_0xf6fc9['commandParams'][0x0]['forceValue'],_0x13561d=_0x5d88c7(_0xf6fc9['commandName']),_0x221253=_0x484993?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13561d&&_0x2482fb['config']['get']('list.multiBlock')||(_0x221253='*Change\x20to:*\x20%0'),_0x7a04f3={'type':'format','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x484993=_0xf6fc9['commandParams'][0x0]['forceValue'],_0x13561d=_0x5d88c7(_0xf6fc9['commandName']),_0x221253=_0x484993?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13561d&&_0x2482fb['config']['get']('list.multiBlock')||(_0x221253='*Change\x20to:*\x20%0'),_0x7a04f3={'type':'format','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x221253='*Indent:*\x20%0',_0x7a04f3={'type':'format','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x221253=function(_0x4d0eec){const _0x38d7e2=_0x4d0eec['getFirstRange']();let _0x4efd70=_0x38d7e2['start']['nodeAfter'];for(;_0x4efd70&&_0x38d7e2['containsItem'](_0x4efd70);){if(_0x4efd70['getAttribute']('listIndent')>0x0)return!0x1;_0x4efd70=_0x4efd70['nextSibling'];}return!0x0;}(_0x33ce25)?o(_0x272fab,'*Format:*\x20remove\x20from\x20%0',o(_0x272fab,function(_0x18ef25){return'ELEMENT_'+_0x18ef25['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x33ce25))):o(_0x272fab,'*Outdent:*\x20%0',o(_0x272fab,'ELEMENT_LIST_ITEM')),_0x7a04f3={'type':'format','content':_0x221253};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xf6fc9['multipleBlocks']&&(_0x221253='*Merge:*\x20%0',_0x7a04f3={'type':'deletion','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_LIST_ITEM'))});}return _0x7a04f3;});}}function Te(_0x3e3cd5){let _0x16ef9b=_0x3e3cd5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x16ef9b;){const _0x14abcd=_0x16ef9b['getAttribute']('listItemId');if(!_0x14abcd)return!0x1;if(_0x14abcd==_0x3e3cd5['data']['newValue'])return'newValue';if(_0x14abcd==_0x3e3cd5['data']['oldValue'])return'oldValue';_0x16ef9b=_0x16ef9b['previousSibling'];}return!0x1;}class q extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2e9eba=this['editor']['config']['get']('list.properties'),_0x177cc1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e9eba['styles']&&(_0x177cc1['enableDefaultAttributesIntegration']('listStyle'),_0x177cc1['registerBlockAttribute']('listStyle')),_0x2e9eba['reversed']&&(_0x177cc1['enableDefaultAttributesIntegration']('listReversed'),_0x177cc1['registerBlockAttribute']('listReversed')),_0x2e9eba['startIndex']&&(_0x177cc1['enableDefaultAttributesIntegration']('listStart'),_0x177cc1['registerBlockAttribute']('listStart'));const _0x56b2ea={'type':'format','content':''};_0x177cc1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ed360=this['editor']['locale'];_0x177cc1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ed360,'FORMAT_LIST_REVERSED')),_0x177cc1['descriptionFactory']['registerDescriptionCallback'](_0x9b95a=>{const {data:_0x2cbda4}=_0x9b95a;if(_0x2cbda4&&'listReversed'==_0x2cbda4['key'])return null==_0x2cbda4['newValue']||0x0==_0x2cbda4['newValue']&&null==_0x2cbda4['oldValue']?_0x56b2ea:void 0x0;}),_0x177cc1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ed360,'FORMAT_LIST_START')),_0x177cc1['descriptionFactory']['registerDescriptionCallback'](_0x532472=>{const {data:_0x22e3d6}=_0x532472;if(_0x22e3d6&&'listStart'==_0x22e3d6['key'])return null==_0x22e3d6['newValue']||0x1==_0x22e3d6['newValue']&&null==_0x22e3d6['oldValue']?_0x56b2ea:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x30feaf=>{if(_0x30feaf['batch']['isUndo'])return!0x1;let _0x4c3d64=!0x1;const _0x9646cc=_0x177cc1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c06a1=>{const _0x2e52eb=_0x177cc1['_getAttributeKey'](_0x4c06a1);return'listStart'==_0x2e52eb||'listReversed'==_0x2e52eb;});for(const _0x140de3 of _0x9646cc){const _0xf95639=_0x140de3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xf95639||'customNumbered'==_0xf95639)continue;_0x177cc1['_findSuggestions'](_0x140de3['getFirstRange'](),'attribute')['find'](_0x9d22c1=>'listType'==_0x177cc1['_getAttributeKey'](_0x9d22c1['suggestion']))||(_0x30feaf['removeMarker'](_0x140de3['getFirstMarker']()),_0x4c3d64=!0x0);}return _0x4c3d64;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2093ee){const _0x4ecfe2=this['editor']['locale'],{data:_0x4f671b}=_0x2093ee,_0x226a45={'type':'format','content':''};if(!_0x4f671b||'listStyle'!=_0x4f671b['key'])return;if(!_0x4f671b['oldValue'])return'default'==_0x4f671b['newValue']?_0x226a45:{'type':'format','content':''+o(_0x4ecfe2,'*Set\x20format:*\x20%0',o(_0x4ecfe2,this['_getTranslationKeyForListStyle'](_0x4f671b['newValue'])))};if(!_0x4f671b['newValue']){if('default'==_0x4f671b['oldValue'])return _0x226a45;let _0x254ccd=_0x2093ee['head'];for(;_0x254ccd;){if(_0x254ccd['data']&&'listType'==_0x254ccd['data']['key']&&_0x254ccd['data']['newValue'])return _0x226a45;_0x254ccd=_0x254ccd['next'];}return{'type':'format','content':''+o(_0x4ecfe2,'*Remove\x20format:*\x20%0',o(_0x4ecfe2,this['_getTranslationKeyForListStyle'](_0x4f671b['oldValue'])))};}if('default'!=_0x4f671b['newValue'])return{'type':'format','content':''+o(_0x4ecfe2,'*Set\x20format:*\x20%0',o(_0x4ecfe2,this['_getTranslationKeyForListStyle'](_0x4f671b['newValue'])))};let _0x49549d=_0x2093ee['head'];for(;_0x49549d;){if(_0x49549d['data']&&'listType'==_0x49549d['data']['key']&&_0x49549d['data']['newValue']&&_0x49549d['data']['oldValue'])return _0x226a45;_0x49549d=_0x49549d['next'];}return{'type':'format','content':o(_0x4ecfe2,'*Set\x20format:*\x20%0',o(_0x4ecfe2,'ELEMENT_'+_0x2093ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4ea5f9=this['editor'],_0x1354a8=_0x4ea5f9['locale'];_0x4ea5f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ac583=>{if('formatBlock'!=_0x2ac583['type'])return;const {data:_0x1bf741}=_0x2ac583;if(!_0x1bf741)return;let _0x25c58b,_0x5ba03b;switch(_0x1bf741['commandName']){case'listStyle':_0x25c58b='*Change\x20to:*\x20%0',_0x5ba03b={'type':'format','content':o(_0x1354a8,_0x25c58b,o(_0x1354a8,this['_getTranslationKeyForListStyle'](_0x1bf741['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25c58b=_0x1bf741['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ba03b={'type':'format','content':o(_0x1354a8,_0x25c58b)};break;case'listStart':_0x25c58b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ba03b={'type':'format','content':o(_0x1354a8,_0x25c58b,_0x1bf741['commandParams'][0x0]['startIndex'])};}return _0x5ba03b;});}['_getTranslationKeyForListStyle'](_0x27b0d8){return'ELEMENT_'+function(_0x3bbe32){if(Se['includes'](_0x3bbe32))return'bulleted';if(_e['includes'](_0x3bbe32))return'numbered';return null;}(_0x27b0d8)['toUpperCase']()+'_LIST_'+_0x27b0d8['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xeec5ec{['afterInit'](){const _0x26fff0=this['editor'];_0x26fff0['commands']['get']('emoji')&&_0x26fff0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xeec5ec{static get['requires'](){return[_0x2e8560];}['init'](){const _0x5a76b9=this['editor'],_0x324be6=_0x5a76b9['plugins']['get']('TrackChangesEditing'),_0x4383e1=_0x5a76b9['commands']['get']('enter');_0x324be6['enableCommand']('enter',()=>{_0x5a76b9['model']['change'](_0x46a08c=>{const _0x4d35bf=_0x5a76b9['model']['document']['selection'],_0x566b2d=_0x4d35bf['getFirstPosition'](),_0x2d9891=_0x414e2a['fromRange'](_0x4d35bf['getFirstRange']());if(_0x4383e1['enterBlock'](_0x46a08c)){const _0x1f9389=_0x5a76b9['model']['createPositionAt'](_0x566b2d['parent']['nextSibling'],0x0),_0x1617e4=_0x46a08c['createRange'](_0x566b2d,_0x1f9389);_0x324be6['markInsertion'](_0x1617e4);}else _0x46a08c['setSelection'](_0x46a08c['createRange'](_0x2d9891['end']));_0x2d9891['detach'](),_0x4383e1['fire']('afterExecute',{'writer':_0x46a08c});});}),_0x5a76b9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5a76b9,'split'),{'priority':'high'}),_0x5a76b9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3ea6ac,_0x59dbd1,_0x29f185)=>{const _0x48d584=_0x29f185['mapper']['markerNameToElements'](_0x59dbd1['markerName']);if(_0x48d584){for(const _0x1e32e9 of _0x48d584)_0x1e32e9['hasClass']('ck-suggestion-marker-split')&&(_0x29f185['mapper']['unbindElementFromMarkerName'](_0x1e32e9,_0x59dbd1['markerName']),_0x29f185['writer']['remove'](_0x1e32e9));}},{'priority':'high'}),_0x5a76b9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x575005,_0x4f6193,_0x967e7b)=>{_0x967e7b['options']['showSuggestionHighlights']&&De(_0x5a76b9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x575005,_0x4f6193,_0x967e7b);},{'priority':'high'});}}class Q extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x175474=this['editor']['plugins']['get']('TrackChangesEditing');_0x175474['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x175474['enableCommand']('findNext'),_0x175474['enableCommand']('findPrevious'),_0x175474['enableCommand']('replace'),_0x175474['enableCommand']('replaceAll');}['handleFindCommand'](_0x2758d0,_0x210084,_0x9c136d={}){const _0x21b8cb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2758d0(_0x2dfc0f=>{let _0x1204f6=('string'==typeof _0x210084?_0x21b8cb['findByTextCallback'](_0x210084,_0x9c136d):_0x210084)(_0x2dfc0f);Array['isArray'](_0x1204f6)&&(_0x1204f6={'results':_0x1204f6,'searchText':'string'==typeof _0x210084?_0x210084:''});const _0x42f71f=_0x1204f6['results']['filter'](_0x5a25eb=>!0x1===this['_isInDeletionRange'](_0x5a25eb,_0x2dfc0f['item']));return{..._0x1204f6,'results':_0x42f71f};},_0x9c136d);}['_isInDeletionRange'](_0x1186dc,_0x185edb){const _0x3695bf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x185edb,_0x1186dc['start']),this['editor']['model']['createPositionAt'](_0x185edb,_0x1186dc['end']));for(const _0x4b6b0c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3695bf['getIntersection'](_0x4b6b0c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xeec5ec{['afterInit'](){const _0x170133=this['editor']['locale'],_0x56f6eb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x151bdf,commandName:_0x43a444}of eo)this['editor']['plugins']['has'](_0x151bdf)&&(_0x56f6eb['enableDefaultAttributesIntegration'](_0x43a444),_0x56f6eb['registerInlineAttribute'](_0x43a444));_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x170133,'FORMAT_FONT_SIZE')),_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x170133,'FORMAT_FONT_FAMILY')),_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x170133,'FORMAT_FONT_COLOR')),_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x170133,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2123a3=this['editor'],_0x28338f=_0x2123a3['locale'];_0x2123a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14d701=>{const _0xb074b7=_0x28338f['t'];if('formatInline'!=_0x14d701['type'])return;const {data:_0x5069b3}=_0x14d701;if(null!=_0x5069b3){if('fontSize'==_0x5069b3['commandName']){const _0x2f80d5=_0x5069b3['commandParams'][0x0]['value'];if(_0x2f80d5){const _0x2cb51b=_0xb074b7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x45f1ab=>_0x45f1ab['model']==_0x2f80d5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x28338f,'*Set\x20font\x20size:*\x20%0',_0x2cb51b)};}return{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5069b3['commandName']){const _0x28c068=_0x5069b3['commandParams'][0x0]['value'];return _0x28c068?{'type':'format','content':o(_0x28338f,'*Set\x20font\x20family:*\x20%0',_0x28c068)}:{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5069b3['commandName']){const _0x3345c6=_0x5069b3['commandParams'][0x0]['value'];if(_0x3345c6){const _0x34cf8d=_0x990569(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3a8c1d=>_0x3a8c1d['model']==_0x3345c6);let _0x53d218=_0x3345c6,_0x15143e='';return _0x34cf8d&&(_0x53d218=_0x34cf8d['label'],_0x15143e=_0xb074b7(_0x53d218)['toLowerCase']()),{'type':'format','content':o(_0x28338f,'*Set\x20font\x20color:*\x20%0',_0x15143e)['trim'](),'color':{'value':_0x3345c6,'title':_0x15143e||_0x53d218}};}return{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5069b3['commandName']){const _0x264ebd=_0x5069b3['commandParams'][0x0]['value'];if(_0x264ebd){const _0x3155a8=_0x990569(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x280d60=>_0x280d60['model']==_0x264ebd);let _0x2ef4d5=_0x264ebd,_0x1afa31='';return _0x3155a8&&(_0x2ef4d5=_0x3155a8['label'],_0x1afa31=_0xb074b7(_0x2ef4d5)['toLowerCase']()),{'type':'format','content':o(_0x28338f,'*Set\x20font\x20background\x20color:*\x20%0',_0x1afa31)['trim'](),'color':{'value':_0x264ebd,'title':_0x1afa31||_0x2ef4d5}};}return{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xeec5ec{['afterInit'](){const _0x1e726f=this['editor'],_0x1557e1=_0x1e726f['plugins']['get']('TrackChangesEditing'),_0xbd35b6=_0x1e726f['commands']['get']('copyFormat'),_0x4462b1=_0x1e726f['commands']['get']('pasteFormat');_0xbd35b6&&_0x4462b1&&(_0x1557e1['enableDefaultAttributesIntegration']('pasteFormat'),_0x1557e1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3be4eb=this['editor'],_0x55fc12=_0x3be4eb['locale'];_0x3be4eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4991ff=>{if('formatBlock'!=_0x4991ff['type']&&'formatInline'!=_0x4991ff['type'])return;const {data:_0x55e3ca}=_0x4991ff;if(_0x55e3ca&&'pasteFormat'===_0x55e3ca['commandName']){const _0x4fc21b=[],_0x46851b=_0x55e3ca['commandParams'][0x0];for(const [_0x49974c,_0x92c42e]of Object['entries'](_0x46851b))_0x4fc21b['push'](ro(_0x3be4eb,_0x49974c,_0x92c42e));return _0x4fc21b['length']?{'type':'format','content':o(_0x55fc12,'*Set\x20format\x20to:*\x20%0',_0x4fc21b['join'](',\x20'))}:{'type':'format','content':o(_0x55fc12,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x200a9f,_0x75f6eb,_0x11fc45){const _0x5232b4=_0x200a9f['locale']['t'],_0x5826d3=_0x75f6eb['split'](/(?=[A-Z])/)['join']('\x20'),_0x483f56=_0x5232b4(_0x5826d3['charAt'](0x0)['toUpperCase']()+_0x5826d3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11fc45)return _0x483f56;if('fontColor'===_0x75f6eb||'fontBackgroundColor'===_0x75f6eb){const _0x33b6f7=_0x990569(_0x200a9f['config']['get']('fontColor.colors'))['find'](_0x3e7f32=>_0x3e7f32['model']==_0x11fc45);return _0x483f56+'\x20('+(_0x33b6f7?_0x5232b4(_0x33b6f7['label'])['toLowerCase']():_0x11fc45)+')';}if('fontSize'===_0x75f6eb&&isNaN(parseFloat(_0x11fc45))){const _0x34fc90=_0x200a9f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x200a9f['config']['get']('fontSize.options'))['find'](_0x57a5f2=>_0x57a5f2['model']==_0x11fc45);return _0x483f56+'\x20('+(_0x34fc90?_0x5232b4(_0x34fc90['title'])['toLowerCase']():_0x11fc45)+')';}return _0x483f56+'\x20('+_0x11fc45+')';}class Z extends _0xeec5ec{['_headingOptions'];['afterInit'](){const _0x5c0bad=this['editor'];if(!_0x5c0bad['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c0bad['config']['get']('heading.options');const _0x10520f=_0x5c0bad['locale'],_0x108ceb=_0x5c0bad['plugins']['get']('TrackChangesEditing');_0x108ceb['enableDefaultAttributesIntegration']('heading');for(const _0x2ae9aa of this['_headingOptions'])'paragraph'!=_0x2ae9aa['model']&&_0x108ceb['descriptionFactory']['registerElementLabel'](_0x2ae9aa['model'],_0x2545ef=>{const _0x5557d2=this['_getHeadingLevel'](_0x2ae9aa['model']);return null!==_0x5557d2?_0x5f103d(_0x2545ef,_0x5557d2):_0x1d75ff(_0x2545ef,_0x2ae9aa['title']);});function _0x5f103d(_0x55a71f,_0x295fc1){return o(_0x10520f,'ELEMENT_HEADING',[_0x55a71f,_0x295fc1]);}function _0x1d75ff(_0x335cc4,_0x4a6ff1){return o(_0x10520f,'ELEMENT_HEADING_CUSTOM',[_0x335cc4,_0x4a6ff1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x202638=this['editor'],_0x22721f=_0x202638['locale'];function _0x19d32f(_0x344e2a,_0x54c26f){return o(_0x22721f,'ELEMENT_HEADING_CUSTOM',[_0x344e2a,_0x54c26f]);}_0x202638['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xac74df=>{if('formatBlock'!=_0xac74df['type'])return;const {data:_0x5d2158}=_0xac74df;if(_0x5d2158&&'heading'==_0x5d2158['commandName']){const _0x3fa58f=_0x5d2158['commandParams'][0x0]['value'],_0x5bd51d=this['_getHeadingLevel'](_0x3fa58f);if(null!==_0x5bd51d)return{'type':'format','content':o(_0x22721f,'*Change\x20to:*\x20%0',(_0x2d0836=0x1,_0x1a6b81=_0x5bd51d,o(_0x22721f,'ELEMENT_HEADING',[_0x2d0836,_0x1a6b81])))};const _0x3b4801=this['_headingOptions']['find'](_0x311b17=>_0x311b17['model']===_0x3fa58f)['title'];return{'type':'format','content':o(_0x22721f,'*Change\x20to:*\x20%0',_0x19d32f(0x1,_0x3b4801))};}var _0x2d0836,_0x1a6b81;});}['_getHeadingLevel'](_0x10a83d){const _0x4e26fb=_0x10a83d['match'](/^heading(\d+)/);if(_0x4e26fb)return _0x4e26fb[0x1];const _0xb8abc7=this['_headingOptions']?.['find'](_0x42d506=>_0x42d506['model']==_0x10a83d);if(_0xb8abc7&&_0xb8abc7['view']){const _0x4e6013=_0xb8abc7['view'],_0x59fea1=(_0x4e6013['name']??_0x4e6013)['match'](/^h(\d+)/);if(_0x59fea1)return _0x59fea1[0x1];}return null;}}class tt extends _0xeec5ec{['afterInit'](){const _0x2a9120=this['editor'];if(!_0x2a9120['plugins']['has']('HighlightEditing'))return;const _0x5e8fb0=_0x2a9120['plugins']['get']('TrackChangesEditing'),_0x21cd8e=_0x2a9120['locale'];_0x5e8fb0['enableDefaultAttributesIntegration']('highlight'),_0x5e8fb0['registerInlineAttribute']('highlight'),_0x5e8fb0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x21cd8e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16849e=this['editor'],_0x404a7e=_0x16849e['locale'];_0x16849e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4dc0=>{if('formatInline'!=_0x3b4dc0['type'])return;const {data:_0x16bd5c}=_0x3b4dc0;if(_0x16bd5c&&'highlight'==_0x16bd5c['commandName']){const _0x45e3f9=_0x404a7e['t'],_0x204368=_0x16bd5c['commandParams'][0x0]['value'];if(_0x204368){const _0x273e91=_0x16849e['config']['get']('highlight.options')['find'](_0x147756=>_0x147756['model']==_0x204368),_0x55c2ca=_0x45e3f9(_0x273e91['title'])['toLowerCase']();return{'type':'format','content':o(_0x404a7e,'*Set\x20highlight:*\x20%0',_0x55c2ca),'color':{'value':_0x273e91['color'],'title':_0x273e91['title']}};}return{'type':'format','content':o(_0x404a7e,'*Remove\x20highlight*',o(_0x404a7e,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xeec5ec{['afterInit'](){const _0x3b0e59=this['editor'];if(!_0x3b0e59['plugins']['has']('HorizontalLineEditing'))return;_0x3b0e59['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3f7047=_0x3b0e59['plugins']['get']('TrackChangesEditing'),_0x547248=_0x3b0e59['locale'];_0x3f7047['descriptionFactory']['registerElementLabel']('horizontalLine',_0x51c1d0=>o(_0x547248,'ELEMENT_HORIZONTAL_LINE',_0x51c1d0)),_0x3b0e59['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5674e3,{writer:_0x163863,options:_0x28c8ce})=>{if(!_0x28c8ce['showSuggestionHighlights'])return null;const _0x316611=_0x163863['createContainerElement']('div'),_0x5c01aa=_0x163863['createEmptyElement']('hr');return _0x163863['addClass']('ck-horizontal-line',_0x316611),_0x163863['insert'](_0x163863['createPositionAt'](_0x316611,0x0),_0x5c01aa),_0x316611;},'converterPriority':'high'});}}class nt extends _0xeec5ec{['afterInit'](){const _0x37de62=this['editor'];if(!_0x37de62['plugins']['has']('HtmlEmbed'))return;const _0x29d8fa=_0x37de62['plugins']['get']('TrackChangesEditing'),_0x38128a=_0x37de62['locale'];_0x29d8fa['descriptionFactory']['registerElementLabel']('rawHtml',_0x1b280e=>o(_0x38128a,'ELEMENT_HTML_EMBED',_0x1b280e)),_0x29d8fa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29d8fa['registerBlockAttribute']('value'),_0x29d8fa['descriptionFactory']['registerDescriptionCallback'](_0x238e7d=>{if('attribute'!=_0x238e7d['type'])return;const {data:_0x1833dc}=_0x238e7d;if(_0x1833dc&&'value'==_0x1833dc['key']&&_0x238e7d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x25043b=o(_0x38128a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x38128a,'*Change\x20%0\x20content*',_0x25043b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e4190=this['editor'],_0x358f97=_0x1e4190['locale'];_0x1e4190['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15d6b9=>{if('formatBlock'!=_0x15d6b9['type'])return;const {data:_0x4eb91a}=_0x15d6b9;if(_0x4eb91a&&'htmlEmbed'==_0x4eb91a['commandName']){const _0x3d0ed=o(_0x358f97,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x358f97,'*Change\x20%0\x20content*',_0x3d0ed)};}});}}class et extends _0xeec5ec{['afterInit'](){const _0xd7cd8d=this['editor'];if(!_0xd7cd8d['plugins']['has']('ImageEditing'))return;const _0x1bf7c1=_0xd7cd8d['plugins']['get']('TrackChangesEditing'),_0x4be9fe=_0xd7cd8d['plugins']['get']('ImageUtils'),_0x1cf43d=_0xd7cd8d['locale'];_0x1bf7c1['enableCommand']('insertImage'),_0x1bf7c1['descriptionFactory']['registerElementLabel']('imageBlock',_0x34865b=>o(_0x1cf43d,'ELEMENT_IMAGE',_0x34865b)),_0x1bf7c1['descriptionFactory']['registerElementLabel']('imageInline',_0x2a5f73=>o(_0x1cf43d,'ELEMENT_INLINE_IMAGE',_0x2a5f73)),_0x1bf7c1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1cf43d,'ELEMENT_CAPTION')),_0xd7cd8d['plugins']['has']('ImageUploadEditing')&&_0x1bf7c1['enableCommand']('uploadImage'),_0xd7cd8d['plugins']['has']('ImageBlockEditing')&&_0xd7cd8d['plugins']['has']('ImageInlineEditing')&&(_0x1bf7c1['enableCommand']('imageTypeInline',(_0x3ab9b2,_0x307c3a)=>{const _0x29f59b=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']);_0xd7cd8d['model']['change'](()=>{_0x1bf7c1['markBlockFormat'](_0x29f59b,{'commandName':'imageTypeInline','commandParams':[_0x307c3a]},[],'convertBlockImageToInline');});}),_0x1bf7c1['enableCommand']('imageTypeBlock',(_0x559cd7,_0x288ea)=>{_0xd7cd8d['model']['change'](_0x31da79=>{let _0x405073=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x9c7762=_0x31da79['createRangeOn'](_0x405073);const _0x2b3b8b=_0x2beb4d['fromPosition'](_0x9c7762['start'],'toPrevious'),_0x2ba8ba=_0x2beb4d['fromPosition'](_0x9c7762['end'],'toNext');_0x1bf7c1['forceDefaultExecution'](()=>_0x559cd7(_0x288ea)),_0x405073=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x9c7762=_0x31da79['createRangeOn'](_0x405073);const _0x2d1702=_0x31da79['createRange'](_0x2b3b8b,_0x2ba8ba);_0x2b3b8b['detach'](),_0x2ba8ba['detach'](),_0x1bf7c1['markBlockFormat'](_0x405073,{'commandName':'imageTypeInline','commandParams':[_0x288ea]},[],'convertInlineImageToBlock'),_0x2d1702['start']['isBefore'](_0x9c7762['start'])&&_0x1bf7c1['markInsertion'](_0x31da79['createRange'](_0x2d1702['start'],_0x9c7762['start']),'convertInlineImageToBlock'),_0x9c7762['end']['isBefore'](_0x2d1702['end'])&&_0x1bf7c1['markInsertion'](_0x31da79['createRange'](_0x9c7762['end'],_0x2d1702['end']),'convertInlineImageToBlock');});}),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1bf7c1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x51fb6d])=>{const _0x12f939=_0x1bf7c1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x20a717=_0x51fb6d['start'],_0x37d2c1=_0x51fb6d['end'];const _0x19eb7c=_0xd7cd8d['model']['schema']['getNearestSelectionRange'](_0x20a717,'backward'),_0x5e09ce=_0xd7cd8d['model']['schema']['getNearestSelectionRange'](_0x37d2c1,'forward');_0x19eb7c['isCollapsed']&&(_0x20a717=_0x19eb7c['start']),_0x5e09ce['isCollapsed']&&(_0x37d2c1=_0x5e09ce['end']),_0x12f939([_0xd7cd8d['model']['createRange'](_0x20a717,_0x37d2c1)]);}),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1aaa3a),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1aaa3a)),_0xd7cd8d['plugins']['has']('ImageCaptionEditing')&&(_0x1bf7c1['enableCommand']('toggleImageCaption',(_0x1ed203,_0x4f0752)=>{const _0x5b67ea=_0xd7cd8d['plugins']['get']('ImageCaptionUtils');let _0x1932b9=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x39e0be=_0x5b67ea['getCaptionFromImageModelElement'](_0x1932b9);_0xd7cd8d['model']['change'](()=>{if(_0x39e0be)return void _0x1bf7c1['markDeletion'](_0xd7cd8d['model']['createRangeOn'](_0x39e0be));const _0x558242=_0x4be9fe['isBlockImage'](_0x1932b9);_0x1ed203(_0x4f0752),_0x1932b9=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x39e0be=_0x5b67ea['getCaptionFromImageModelElement'](_0x1932b9),_0x1bf7c1['markInsertion'](_0xd7cd8d['model']['createRangeOn'](_0x39e0be),_0x558242?null:'imageCaption');});}),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1aaa3a));const _0x597a0c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b019f(_0x52e624,_0xdbe108){const _0x2e5b46=_0x597a0c['findIndex'](({type:_0x1ad251,subType:_0x291dd9})=>_0x52e624['type']==_0x1ad251&&_0x52e624['subType']==_0x291dd9),_0xa198d9=_0x597a0c['findIndex'](({type:_0x27b3d7,subType:_0x385e7a})=>_0xdbe108['type']==_0x27b3d7&&_0xdbe108['subType']==_0x385e7a);if(_0x2e5b46<0x0||_0xa198d9<0x0)return!0x1;const _0x2c4fda=_0x52e624['getFirstRange'](),_0x5d2828=_0xdbe108['getFirstRange']();if((0x0==_0x2e5b46||0x1==_0x2e5b46)&&0x2==_0xa198d9&&_0x2c4fda['isIntersecting'](_0x5d2828))return!0x0;if(0x2==_0x2e5b46&&0x3==_0xa198d9){const _0x2c7a92=_0x1bf7c1['_findSuggestions'](_0x2c4fda,'insertion')['filter'](({suggestion:_0xe24c50,meta:_0x2af737})=>_0x2af737['isOwn']&&'convertInlineImageToBlock'==_0xe24c50['subType']);if(_0x2c7a92['length']>0x1&&_0x5d2828['end']['isEqual'](_0x2c4fda['start']))return!0x0;if(0x1==_0x2c7a92['length']&&(_0x2c4fda['start']['isEqual'](_0x5d2828['end'])||_0x2c4fda['end']['isEqual'](_0x5d2828['start'])))return!0x0;}if(0x3==_0x2e5b46&&0x3==_0xa198d9&&_0x2c4fda['start']['isBefore'](_0x5d2828['start'])){const _0x44565e=_0x2c4fda['end']['nodeAfter'],_0x426e6d=_0x5d2828['start']['nodeBefore'];return _0x4be9fe['isBlockImage'](_0x44565e)&&_0x44565e===_0x426e6d;}return!0x1;}function _0x1aaa3a(_0x109ca3,_0x5840dd){return _0x4b019f(_0x109ca3,_0x5840dd)?[_0x109ca3,_0x5840dd]:_0x4b019f(_0x5840dd,_0x109ca3)?[_0x5840dd,_0x109ca3]:null;}_0xd7cd8d['plugins']['has']('ImageResize')&&(_0x1bf7c1['enableDefaultAttributesIntegration']('resizeImage'),_0x1bf7c1['registerBlockAttribute']('resizedWidth'),_0x1bf7c1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1cf43d,'FORMAT_IMAGE_SIZE'))),_0xd7cd8d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1bf7c1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1bf7c1['registerBlockAttribute']('alt')),_0xd7cd8d['plugins']['has']('PictureEditing')&&(_0x1bf7c1['registerBlockAttribute']('sources'),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x2ca356=>{if('attribute'!=_0x2ca356['type'])return;const {data:_0x40faba}=_0x2ca356;return _0x40faba&&'sources'==_0x40faba['key']?{'type':'format','content':''}:void 0x0;})),_0xd7cd8d['plugins']['has']('ImageSizeAttributes')&&(_0x1bf7c1['registerBlockAttribute']('width'),_0x1bf7c1['registerBlockAttribute']('height'),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x1be84e=>{if('attribute'!=_0x1be84e['type'])return;const {data:_0x26165c}=_0x1be84e;return!_0x26165c||'width'!=_0x26165c['key']&&'height'!=_0x26165c['key']?void 0x0:{'type':'format','content':''};})),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x10a525=>{if(!!_0x597a0c['find'](({type:_0x5a0e75,subType:_0x2e7c17})=>_0x10a525['type']==_0x5a0e75&&_0x10a525['subType']==_0x2e7c17))return _0x10a525['previous']?{}:void 0x0;}),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x35a642=>{if('insertion'==_0x35a642['type']||'deletion'==_0x35a642['type']){const _0x130152=_0x35a642['getContainedElement']();if(_0x130152&&_0x130152['is']('element','caption'))return{'type':'insertion'==_0x35a642['type']?'addObject':'removeObject','element':_0x130152,'quantity':0x1};}}),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0xb31477=>'formatBlock'==_0xb31477['type']&&'convertInlineImageToBlock'==_0xb31477['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xb31477['type']&&'convertBlockImageToInline'==_0xb31477['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0xeec308=>{if('attribute'!=_0xeec308['type'])return;const {data:_0x23310c}=_0xeec308;if(!_0x23310c||'alt'!=_0x23310c['key'])return;const _0x4f65b3=_0x23310c['newValue'];return _0x4f65b3?{'type':'format','content':o(_0x1cf43d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f65b3+'\x22')}:{'type':'format','content':o(_0x1cf43d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5833c1=this['editor'],_0x359a72=_0x5833c1['locale'];_0x5833c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7fb5=>{if('formatBlock'!=_0x2e7fb5['type']&&'formatInline'!=_0x2e7fb5['type'])return;const {data:_0x30a975}=_0x2e7fb5;if(_0x30a975){if('imageTextAlternative'==_0x30a975['commandName']){const _0x587862=_0x30a975['commandParams'][0x0]['newValue'];return _0x587862?{'type':'format','content':o(_0x359a72,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x587862+'\x22')}:{'type':'format','content':o(_0x359a72,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x30a975['commandName']){const _0xacc0b7=_0x30a975['commandParams'][0x0]['width'];return _0xacc0b7?{'type':'format','content':o(_0x359a72,'*Set\x20image\x20width:*\x20%0',_0xacc0b7)}:{'type':'format','content':o(_0x359a72,'*Reset\x20image\x20width*')};}}});}}class st extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1cba85=this['editor']['locale'],_0x32f9cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x32f9cd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32f9cd['registerBlockAttribute']('src'),_0x32f9cd['descriptionFactory']['registerDescriptionCallback'](_0x168619=>{if('attribute'!=_0x168619['type'])return;const {data:_0x27d46e}=_0x168619;return _0x27d46e&&'src'==_0x27d46e['key']?_0x27d46e['newValue']&&_0x27d46e['oldValue']?{'type':'format','content':o(_0x1cba85,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x305e59=this['editor']['plugins']['get']('TrackChangesEditing');_0x305e59['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x305e59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x305e59['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x305e59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42bba9=this['editor'],_0x6b10de=_0x42bba9['locale'];_0x42bba9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bd8bc=>{if('formatBlock'!=_0x1bd8bc['type']&&'formatInline'!=_0x1bd8bc['type'])return;const {data:_0x21f9e8}=_0x1bd8bc;if(!_0x21f9e8||'replaceImageSource'!=_0x21f9e8['commandName'])return;return{'type':'format','content':o(_0x6b10de,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xeec5ec{['afterInit'](){const _0x31a897=this['editor'];if(!_0x31a897['plugins']['has']('ImageStyleEditing'))return;const _0x1eb554=_0x31a897['plugins']['get']('TrackChangesEditing'),_0x131ca5=_0x31a897['plugins']['get']('ImageUtils'),_0x671efa={};_0x1eb554['enableCommand']('imageStyle',(_0x231fd1,_0x146350)=>{const _0x267680=_0x31a897['plugins']['get']('Users')['me'],_0x53ff52=_0x31a897['commands']['get']('imageStyle');let _0x2a4a00=_0x131ca5['getClosestSelectedImageElement'](_0x31a897['model']['document']['selection']),_0x590340=_0x31a897['model']['createRangeOn'](_0x2a4a00),_0x5d81f6=_0x53ff52['value'];if(_0x5d81f6==_0x146350['value'])return;const _0x1483cc={'commandName':'imageStyle','commandParams':[_0x146350],'formatGroupId':_0x1a8355()};_0x31a897['model']['change'](()=>{if(_0x1eb554['getSuggestions']()['filter'](_0x5e3739=>_0x5e3739['isInContent']&&_0x267680==_0x5e3739['author']&&('formatBlock'==_0x5e3739['type']||'formatInline'==_0x5e3739['type'])&&('imageStylePreApply'==_0x5e3739['subType']||'imageStylePostApply'==_0x5e3739['subType'])&&_0x5e3739['getFirstRange']()['isEqual'](_0x590340))['forEach'](_0x103d7d=>_0x1eb554['discardSuggestion'](_0x103d7d['head'])),_0x2a4a00=_0x131ca5['getClosestSelectedImageElement'](_0x31a897['model']['document']['selection']),_0x590340=_0x31a897['model']['createRangeOn'](_0x2a4a00),_0x53ff52['refresh'](),_0x31a897['commands']['get']('imageTypeInline')['refresh'](),_0x31a897['commands']['get']('imageTypeBlock')['refresh'](),_0x5d81f6=_0x53ff52['value'],_0x5d81f6!=_0x146350['value'])return _0x131ca5['isInlineImage'](_0x2a4a00)&&_0x53ff52['shouldConvertImageType'](_0x146350['value'],_0x2a4a00)?(_0x231fd1({..._0x146350,'setImageSizes':!0x1}),_0x2a4a00=_0x131ca5['getClosestSelectedImageElement'](_0x31a897['model']['document']['selection']),void _0x1eb554['markBlockFormat'](_0x2a4a00,{..._0x1483cc,'commandReversedParams':[{'value':_0x5d81f6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x131ca5['isBlockImage'](_0x2a4a00)?_0x1eb554['markBlockFormat'](_0x2a4a00,_0x1483cc,[],'imageStylePostApply'):_0x1eb554['markInlineFormat'](_0x590340,_0x1483cc,'imageStylePostApply'));});});for(const _0x3810fa of _0x31a897['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x671efa[_0x3810fa['name']]=_0x3810fa['title']['toLowerCase']();_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4706d6])=>{_0x131ca5['setImageNaturalSizeAttributes'](_0x4706d6['getContainedElement']());}),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x18eeea,_0x58d239)=>{_0x1eb554['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x18eeea,{'commandName':_0x58d239['commandName'],'commandParams':_0x58d239['commandReversedParams']});}),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5eb4ff,_0x4ce79c){if(_0x238387(_0x5eb4ff,_0x4ce79c))return[_0x5eb4ff,_0x4ce79c];if(_0x238387(_0x4ce79c,_0x5eb4ff))return[_0x4ce79c,_0x5eb4ff];return null;});const _0x15a615=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x238387(_0x2c3c8a,_0x237bf0){const _0x580175=_0x15a615['findIndex'](({type:_0x5b717e,subType:_0x1ad8fc})=>_0x2c3c8a['type']==_0x5b717e&&_0x2c3c8a['subType']==_0x1ad8fc),_0x358f65=_0x15a615['findIndex'](({type:_0x136356,subType:_0x1a12a8})=>_0x237bf0['type']==_0x136356&&_0x237bf0['subType']==_0x1a12a8);if(_0x580175<0x0||_0x358f65<0x0)return!0x1;const _0x1b6d6b=_0x2c3c8a['getFirstRange'](),_0x30ac76=_0x237bf0['getFirstRange']();if((0x0==_0x580175||0x1==_0x580175)&&0x2==_0x358f65&&_0x1b6d6b['isIntersecting'](_0x30ac76))return!0x0;if(0x2==_0x580175&&0x3==_0x358f65){const _0x85c732=_0x1eb554['_findSuggestions'](_0x1b6d6b,'insertion')['filter'](({suggestion:_0x194218,meta:_0x49a97a})=>_0x49a97a['isOwn']&&'convertInlineImageToBlock'==_0x194218['subType']);if(_0x85c732['length']>0x1&&_0x30ac76['end']['isEqual'](_0x1b6d6b['start']))return!0x0;if(0x1==_0x85c732['length']&&(_0x1b6d6b['start']['isEqual'](_0x30ac76['end'])||_0x1b6d6b['end']['isEqual'](_0x30ac76['start'])))return!0x0;}if(0x3==_0x580175&&0x3==_0x358f65&&_0x1b6d6b['start']['isBefore'](_0x30ac76['start'])){const _0x46b1d4=_0x1b6d6b['end']['nodeAfter'],_0x476d28=_0x30ac76['start']['nodeBefore'];return _0x131ca5['isBlockImage'](_0x46b1d4)&&_0x46b1d4===_0x476d28;}return!0x1;}_0x31a897['model']['document']['registerPostFixer'](()=>{let _0x428354=!0x1;const _0x569b8f=Array['from'](_0x31a897['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40f435,data:_0x2903eb}of _0x569b8f){const {group:_0x5a75ad,type:_0x4a64eb,subType:_0x693ef2,id:_0x1c4c25}=_0x1eb554['_splitMarkerName'](_0x40f435);if('suggestion'==_0x5a75ad&&_0x1eb554['hasSuggestion'](_0x1c4c25)){if('formatBlock'==_0x4a64eb&&('imageStylePreApply'==_0x693ef2||'imageStylePostApply'==_0x693ef2)){const _0x45acdb=_0x1eb554['getSuggestion'](_0x1c4c25);if(_0x2903eb['newRange']){const _0x312792=_0x45acdb['getFirstRange']()['getContainedElement']();if(_0x131ca5['isBlockImage'](_0x312792))continue;_0x1eb554['discardSuggestion'](_0x45acdb),_0x428354=!0x0;}}if('insertion'==_0x4a64eb&&'imageCaption'==_0x693ef2&&!_0x2903eb['newRange']){const _0x1cd3a9=_0x1eb554['getSuggestion'](_0x1c4c25);_0x1cd3a9['next']&&_0x1cd3a9['next']['isInContent']&&(_0x1eb554['discardSuggestion'](_0x1cd3a9['next']),_0x428354=!0x0);}}}return _0x428354;}),this['_registerLegacyDescription'](_0x671efa);}['_registerLegacyDescription'](_0x387c6e){const _0x1dca7c=this['editor'],_0x363ba4=_0x1dca7c['locale'];_0x1dca7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeb15e3=>{if('formatBlock'!=_0xeb15e3['type']&&'formatInline'!=_0xeb15e3['type'])return;const {data:_0x2ce258}=_0xeb15e3;if(!_0x2ce258||'imageStyle'!=_0x2ce258['commandName'])return;const _0x588c6f=_0x2ce258['commandParams'][0x0]['value'];return _0x2133cd('side'===_0x588c6f?o(_0x363ba4,'FORMAT_SIDE_IMAGE'):_0x387c6e[_0x588c6f]||_0x588c6f);function _0x2133cd(_0x5b4847){return{'type':'format','content':o(_0x363ba4,'*Format:*\x20%0',_0x5b4847)};}});}}class rt extends _0xeec5ec{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3a94db){super(_0x3a94db),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x234353=this['editor'],_0xff514e=_0x234353['commands']['get']('importWord'),_0x126c1e=_0x234353['commands']['get']('trackChanges');_0xff514e&&(_0xff514e['on']('execute',(_0x5912bf,[,_0x228946])=>{this['_trackChangesValueDuringImport']=_0x126c1e['value'],_0x228946['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xff514e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xff514e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x126c1e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x234353['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4681ae,_0x722978){const {suggestions:_0x3ba569}=_0x722978,_0x1ac7d8=this['editor']['commands']['get']('trackChanges'),_0x166d8a=_0x1ac7d8['value'];this['_trackChangesValueDuringImport']!==_0x166d8a&&(_0x1ac7d8['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ba569&&_0x3ba569['forEach'](({id:_0xcffcd1,type:_0x149427,author:_0x1b0ea6,created_at:_0x2d34b2})=>{const _0x454a0e={'id':_0xcffcd1,'type':_0x149427,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1b0ea6,'createdAt':_0x2d34b2?new Date(_0x2d34b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x454a0e);});}}class at extends _0xeec5ec{['afterInit'](){const _0xe0fcf5=this['editor'],_0x956643=_0xe0fcf5['plugins']['get']('TrackChangesEditing');if(_0xe0fcf5['plugins']['has']('IndentEditing')&&(_0x956643['enableCommand']('indent'),_0x956643['enableCommand']('outdent')),_0xe0fcf5['plugins']['has']('IndentBlock')){for(const _0x5f3bf2 of['indentBlock','outdentBlock'])_0x956643['enableDefaultAttributesIntegration'](_0x5f3bf2);}const _0x3ce093=_0xe0fcf5['locale'];_0x956643['registerBlockAttribute']('blockIndent'),_0x956643['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3ce093,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f2552=this['editor'],_0x4cbe15=_0x2f2552['locale'],_0x2efe8d=_0x2f2552['plugins']['get']('TrackChangesEditing');_0x2efe8d['descriptionFactory']['registerDescriptionCallback'](_0x1ffda8=>{if('formatBlock'!=_0x1ffda8['type'])return;const {data:_0x14372a}=_0x1ffda8;if(!_0x14372a)return;if('indentBlock'!=_0x14372a['commandName']&&'outdentBlock'!=_0x14372a['commandName'])return;const _0x4195bf=_0x1ffda8['getItems']()[0x0],_0x2406ee=_0x2efe8d['descriptionFactory']['getItemLabel'](_0x4195bf);return'indentBlock'==_0x14372a['commandName']?{'type':'format','content':o(_0x4cbe15,'*Indent:*\x20%0',_0x2406ee)}:'outdentBlock'==_0x14372a['commandName']?{'type':'format','content':o(_0x4cbe15,'*Outdent:*\x20%0',_0x2406ee)}:void 0x0;});}}class ct extends _0xeec5ec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xeec5ec{['afterInit'](){const _0x123f8f=this['editor'];if(!_0x123f8f['plugins']['has']('LinkEditing'))return;const _0x3d7fde=_0x123f8f['plugins']['get']('TrackChangesEditing'),_0x391e31=_0x123f8f['commands']['get']('link');_0x3d7fde['enableDefaultAttributesIntegration']('link'),_0x3d7fde['enableDefaultAttributesIntegration']('unlink'),_0x3d7fde['registerInlineAttribute']('linkHref');for(const _0x1655ae of _0x391e31['manualDecorators'])_0x3d7fde['registerInlineAttribute'](_0x1655ae['id']),_0x3d7fde['descriptionFactory']['registerAttributeLabel'](_0x1655ae['id'],'link\x20('+_0x1655ae['label']['toLowerCase']()+')');_0x3d7fde['descriptionFactory']['registerDescriptionCallback'](_0x1a1b3b=>{if('attribute'!=_0x1a1b3b['type'])return;const {data:_0x6e7db5}=_0x1a1b3b;if(!_0x6e7db5||'linkHref'!=_0x6e7db5['key'])return;const _0x5975bb=_0x6e7db5['newValue'],_0xff9c77=_0x123f8f['locale'];return{'type':'format','content':null==_0x5975bb?o(_0xff9c77,'*Remove\x20link*'):o(_0xff9c77,'*Set\x20link:*\x20%0','\x22'+_0x5975bb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x571a95=this['editor'],_0x2858fc=_0x571a95['locale'];_0x571a95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e9acc=>{if('formatInline'!=_0x4e9acc['type'])return;const {data:_0x35f1a6}=_0x4e9acc;if(_0x35f1a6){if('link'==_0x35f1a6['commandName']){const _0x3108f7=_0x35f1a6['commandParams'][0x0];return{'type':'format','content':o(_0x2858fc,'*Set\x20link:*\x20%0','\x22'+_0x3108f7+'\x22')};}return'unlink'==_0x35f1a6['commandName']?{'type':'format','content':o(_0x2858fc,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xeec5ec{['afterInit'](){const _0x303ea7=this['editor'],_0xdfefdf=_0x303ea7['locale'];if(!_0x303ea7['plugins']['has']('LegacyListEditing'))return;const _0x3973cd=_0x303ea7['plugins']['get']('TrackChangesEditing'),_0x527898=_0x303ea7['plugins']['has']('LegacyTodoListEditing');function _0x4d23ff(_0x341d86){return()=>{const _0x229dac=_0x303ea7['model']['document']['selection'],_0x43ca10=_0x303ea7['commands']['get'](_0x341d86);if(_0x43ca10['value'])return void _0x303ea7['execute']('paragraph',{});const _0x3093f0=_0x341d86['slice'](0x0,-0x4),_0x249405=function(_0x271a4d,_0x3151bd,_0xffe199){let _0xab0f89=Array['from'](_0x271a4d)['filter'](_0x158a2c=>function(_0x49da2d,_0xe7d412){return _0xe7d412['checkChild'](_0x49da2d['parent'],'listItem')&&!_0xe7d412['isObject'](_0x49da2d);}(_0x158a2c,_0xffe199));_0xab0f89=_0xab0f89['filter'](_0x5d1d41=>!_0x5d1d41['is']('element','listItem')||_0x5d1d41['getAttribute']('listType')!=_0x3151bd);const _0xd84de3=new Set();for(const _0x5a372e of _0xab0f89)_0x5a372e['is']('element','listItem')?_0xd84de3['add'](Le(_0x5a372e)):_0xd84de3['add'](_0x5a372e);return Array['from'](_0xd84de3);}(_0x229dac['getSelectedBlocks'](),_0x3093f0,_0x303ea7['model']['schema']);_0x303ea7['model']['change'](()=>{for(const _0x2427a3 of _0x249405)_0x3973cd['markBlockFormat'](_0x2427a3,{'commandName':_0x341d86,'commandParams':[{'forceValue':!_0x43ca10['value']}],'formatGroupId':'blockName'},Ee(_0x2427a3));});};}function _0x1e0544(_0x4baff1){return()=>{const _0x5aafe3=function(_0x1a7dc6){let _0x3b3e42=Array['from'](_0x1a7dc6);const _0x33cb7e=_0x3b3e42['findIndex'](_0x4c8117=>'listItem'!=_0x4c8117['name']);return _0x33cb7e>-0x1&&(_0x3b3e42=_0x3b3e42['slice'](0x0,_0x33cb7e)),_0x3b3e42;}(_0x303ea7['model']['document']['selection']['getSelectedBlocks']()),_0x50fd0f=_0x303ea7['model']['createRange'](_0x303ea7['model']['createPositionAt'](_0x5aafe3[0x0],'before'),_0x303ea7['model']['createPositionAt'](_0x5aafe3[_0x5aafe3['length']-0x1],'end'));_0x303ea7['model']['change'](()=>{_0x3973cd['markBlockFormat'](_0x50fd0f,{'commandName':_0x4baff1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x243652){const _0x2b32dd=new Set();for(const _0x5eefc0 of _0x243652){let _0x5aec2a=_0x5eefc0['nextSibling'];for(;_0x5aec2a&&_0x5aec2a['getAttribute']('listIndent')>_0x5eefc0['getAttribute']('listIndent');)_0x2b32dd['add'](_0x5aec2a),_0x5aec2a=_0x5aec2a['nextSibling'];}return Array['from'](_0x2b32dd);}(_0x5aafe3));});};}_0x3973cd['enableCommand']('numberedList',_0x4d23ff('numberedList')),_0x3973cd['enableCommand']('bulletedList',_0x4d23ff('bulletedList')),_0x527898&&_0x3973cd['enableCommand']('todoList',_0x4d23ff('todoList')),_0x3973cd['enableCommand']('indentList',_0x1e0544('indentList')),_0x3973cd['enableCommand']('outdentList',_0x1e0544('outdentList')),_0x527898&&_0x3973cd['enableCommand']('checkTodoList',()=>{const _0x15e649=_0x303ea7['commands']['get']('checkTodoList'),_0x9c0282=Array['from'](_0x15e649['_selectedElements']);_0x9c0282['filter'](_0x4155f9=>_0x4155f9['getAttribute']('todoListChecked')!=_0x15e649['value']),_0x303ea7['model']['change'](()=>{for(const _0x3b232f of _0x9c0282)_0x3973cd['markBlockFormat'](_0x3b232f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x15e649['value']}]});});}),_0x3973cd['descriptionFactory']['registerElementLabel']('listItem',_0x47af69=>o(_0xdfefdf,'ELEMENT_LIST_ITEM',_0x47af69)),_0x3973cd['descriptionFactory']['registerDescriptionCallback'](_0x46dd18=>{if('formatBlock'!=_0x46dd18['type']&&'formatInline'!=_0x46dd18['type'])return;const {data:_0x5d9fc3}=_0x46dd18;if(_0x5d9fc3){if('numberedList'==_0x5d9fc3['commandName']||'bulletedList'==_0x5d9fc3['commandName']||'todoList'==_0x5d9fc3['commandName'])switch(_0x5d9fc3['commandName']['replace']('List','')){case'bulleted':return _0x5536b1(o(_0xdfefdf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5536b1(o(_0xdfefdf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5536b1(o(_0xdfefdf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5d9fc3['commandName'])return{'type':'format','content':o(_0xdfefdf,'*Indent:*\x20%0',o(_0xdfefdf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5d9fc3['commandName'])return{'type':'format','content':o(_0xdfefdf,'*Outdent:*\x20%0',o(_0xdfefdf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5d9fc3['commandName'])return _0x5d9fc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdfefdf,'*Check\x20item*')}:{'type':'format','content':o(_0xdfefdf,'*Uncheck\x20item*')};}function _0x5536b1(_0x24989f){return{'type':'format','content':o(_0xdfefdf,'*Change\x20to:*\x20%0',_0x24989f)};}});}}function Le(_0x37b38a){const _0x2d5a09=_0x37b38a['getAttribute']('listIndent');if(0x0==_0x2d5a09)return _0x37b38a;let _0x25ba52=_0x37b38a;for(;_0x37b38a['previousSibling']&&_0x37b38a['previousSibling']['is']('element','listItem');){const _0x3c6058=_0x37b38a['previousSibling']['getAttribute']('listIndent');if(_0x3c6058==_0x2d5a09)_0x25ba52=_0x37b38a['previousSibling'];else{if(_0x3c6058<_0x2d5a09)break;}_0x37b38a=_0x37b38a['previousSibling'];}return _0x25ba52;}function Ee(_0x2df1a1){const _0x5ebb5c=[];if(_0x2df1a1['is']('element','listItem')&&_0x2df1a1['getAttribute']('listIndent')>0x0){let _0xef5f4a=_0x2df1a1['nextSibling'];for(;_0xef5f4a&&'listItem'==_0xef5f4a['name']&&_0xef5f4a['getAttribute']('listIndent')==_0x2df1a1['getAttribute']('listIndent');)_0x5ebb5c['push'](_0xef5f4a),_0xef5f4a=_0xef5f4a['nextSibling'];}return _0x5ebb5c;}class ht extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b3e39=this['editor']['config']['get']('list.properties'),_0x459a35=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b3e39['styles']&&_0x459a35['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b3e39['reversed']&&_0x459a35['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b3e39['startIndex']&&_0x459a35['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x459a35['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x239352,_0x28ca14={}){const _0xd6241e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe41335=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd6241e['markMultiRangeBlockFormat'](_0xe41335,{'commandName':'listStyle','commandParams':[{'type':_0x28ca14['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2c9074,_0x1cf506={}){const _0x2b79f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36d853=this['_getSuggestionBlocks'](_0x4fb579=>_0x4fb579['is']('element','listItem')&&'numbered'===_0x4fb579['getAttribute']('listType'));if(_0x36d853['length']<0x1)return;const _0x53058e=_0x36d853['map'](_0x53ae12=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53ae12,'before'),this['editor']['model']['createPositionAt'](_0x53ae12,0x0)));this['editor']['model']['change'](()=>{_0x2b79f3['markMultiRangeBlockFormat'](_0x53058e,{'commandName':'listReversed','commandParams':[{'reversed':_0x1cf506['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1e5084,_0x538f1f={}){const _0x22bdd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x89a1d0=this['_getSuggestionBlocks'](_0x248454=>_0x248454['is']('element','listItem')&&'numbered'===_0x248454['getAttribute']('listType'));if(_0x89a1d0['length']<0x1)return;const _0x2e7749=_0x89a1d0['map'](_0x47838c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47838c,'before'),this['editor']['model']['createPositionAt'](_0x47838c,0x0)));this['editor']['model']['change'](()=>{_0x22bdd2['markMultiRangeBlockFormat'](_0x2e7749,{'commandName':'listStart','commandParams':[{'startIndex':_0x538f1f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x38a293){if('formatBlock'!=_0x38a293['type']&&'formatInline'!=_0x38a293['type'])return;const _0x47d465=this['editor']['locale'],{data:_0x332bb3}=_0x38a293;if(!_0x332bb3)return;let _0xdceab5,_0x5ab020;switch(_0x332bb3['commandName']){case'listStyle':_0xdceab5='*Change\x20to:*\x20%0',_0x5ab020={'type':'format','content':o(_0x47d465,_0xdceab5,o(_0x47d465,this['_getTranslationKeyForListStyle'](_0x332bb3['commandParams'][0x0]['type'])))};break;case'listReversed':_0xdceab5=_0x332bb3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ab020={'type':'format','content':o(_0x47d465,_0xdceab5)};break;case'listStart':_0xdceab5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ab020={'type':'format','content':o(_0x47d465,_0xdceab5,_0x332bb3['commandParams'][0x0]['startIndex'])};}return _0x5ab020;}['_getSuggestionBlocksForListStyle'](){const _0x399cfe=this['editor']['plugins']['get']('LegacyListUtils');let _0x537996=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x537996[0x0]?.['is']('element','listItem')&&_0x537996['unshift'](..._0x399cfe['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x537996[_0x537996['length']-0x1]?.['is']('element','listItem')&&_0x537996['push'](..._0x399cfe['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x537996=[...new Set(_0x537996)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x537996=_0x537996['filter'](_0x3ce180=>_0x3ce180['is']('element','listItem'))),_0x537996;}['_getSuggestionBlocks'](_0x14e3d9){const _0x570bb6=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f0bd9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x14e3d9)['map'](_0x567568=>{const _0x3568d4=this['editor']['model']['createPositionAt'](_0x567568,0x0);return[..._0x570bb6['getSiblingNodes'](_0x3568d4,'backward'),..._0x570bb6['getSiblingNodes'](_0x3568d4,'forward')];})['flat']();return _0x5f0bd9=[...new Set(_0x5f0bd9)],_0x5f0bd9;}['_getTranslationKeyForListStyle'](_0x4c6eb3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c6eb3)||'default')['toUpperCase']()+'_LIST_'+_0x4c6eb3['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xeec5ec{['afterInit'](){const _0x45a50f=this['editor'];if(!_0x45a50f['plugins']['has']('MediaEmbedEditing'))return;const _0x5ba7c8=_0x45a50f['plugins']['get']('TrackChangesEditing'),_0x346a8a=_0x45a50f['locale'];_0x5ba7c8['enableCommand']('mediaEmbed'),_0x5ba7c8['descriptionFactory']['registerElementLabel']('media',_0x10328f=>o(_0x346a8a,'ELEMENT_MEDIA',_0x10328f)),_0x45a50f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x73649a,{writer:_0x1b644c,options:_0x35d20e})=>{if(_0x35d20e['showSuggestionHighlights'])return _0x1b644c['createEmptyElement']('div');},'converterPriority':'high'}),_0x45a50f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x21453c,_0x454e38,_0xaafba7)=>{_0xaafba7['options']['showSuggestionHighlights']&&_0x21453c['stop']();},{'priority':'high'});}}class lt extends _0xeec5ec{['afterInit'](){const _0xeb0aa2=this['editor'];_0xeb0aa2['plugins']['has']('MentionEditing')&&_0xeb0aa2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xeec5ec{['afterInit'](){const _0x83e4e9=this['editor'];if(!_0x83e4e9['plugins']['has']('MergeFieldsEditing'))return;const _0x25d7c9=_0x83e4e9['plugins']['get']('TrackChangesEditing'),_0x58397a=_0x83e4e9['locale'];_0x25d7c9['enableCommand']('insertMergeField'),_0x25d7c9['enableCommand']('insertMergeFieldBlock'),_0x25d7c9['enableCommand']('insertMergeFieldImage'),_0x25d7c9['descriptionFactory']['registerElementLabel']('mergeField',_0x43e7be=>o(_0x58397a,'ELEMENT_MERGE_FIELD',_0x43e7be)),_0x25d7c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x489c45=>o(_0x58397a,'ELEMENT_MERGE_FIELD',_0x489c45)),_0x25d7c9['descriptionFactory']['registerDescriptionCallback'](_0x2cfb6d=>{if('insertion'!=_0x2cfb6d['type']&&'deletion'!=_0x2cfb6d['type'])return;const _0x1187d0=_0x2cfb6d['getContainedElement']();if(null==_0x1187d0)return;const _0x8678a3=_0x83e4e9['plugins']['get']('MergeFieldsEditing');let _0x3b352a;switch(_0x8678a3['getMergeFieldType'](_0x1187d0)){case null:return;case'image':{const _0xb811c8=_0x8678a3['unwrapAffixes'](_0x1187d0['getAttribute']('src'));_0x3b352a=_0x8678a3['getLabel'](_0xb811c8)||_0xb811c8;break;}default:{const _0x30749d=_0x1187d0['getAttribute']('id');_0x3b352a=_0x8678a3['getLabel'](_0x30749d)||_0x30749d;break;}}return'insertion'==_0x2cfb6d['type']?{'type':'insertion','content':o(_0x58397a,'*Insert:*\x20%0','\x22'+_0x3b352a+'\x22\x20'+o(_0x58397a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58397a,'*Remove:*\x20%0','\x22'+_0x3b352a+'\x22\x20'+o(_0x58397a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xeec5ec{['afterInit'](){const _0xe30871=this['editor'],_0x5effd9=_0xe30871['plugins']['get']('TrackChangesEditing');_0xe30871['plugins']['has']('MultiLevelList')&&(_0x5effd9['enableDefaultAttributesIntegration']('multiLevelList'),_0x5effd9['registerBlockAttribute']('listMarkerStyle'),_0x5effd9['descriptionFactory']['registerDescriptionCallback'](_0xbbad6b=>this['handleDescriptions'](_0xbbad6b)));}['handleDescriptions'](_0x2b7ccd){const _0x6754b=this['editor']['locale'],{data:_0x2d6a59}=_0x2b7ccd,_0x2ee13c={'type':'format','content':''};if(_0x2d6a59&&'listMarkerStyle'==_0x2d6a59['key']){if(!_0x2d6a59['oldValue'])return{'type':'format','content':o(_0x6754b,'*Set\x20format:*\x20%0',o(_0x6754b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d6a59['newValue']+')'};if(!_0x2d6a59['newValue']){let _0x22362b=_0x2b7ccd['head'];for(;_0x22362b;){if(_0x22362b['data']&&'listType'==_0x22362b['data']['key']&&_0x22362b['data']['newValue'])return _0x2ee13c;_0x22362b=_0x22362b['next'];}return{'type':'format','content':o(_0x6754b,'*Remove\x20format:*\x20%0',o(_0x6754b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d6a59['oldValue']+')'};}}}}class pt extends _0xeec5ec{['afterInit'](){const _0x4bd050=this['editor'];if(!_0x4bd050['plugins']['has']('PageBreakEditing'))return;_0x4bd050['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x37ef8c=_0x4bd050['plugins']['get']('TrackChangesEditing'),_0x47c004=_0x4bd050['locale'];_0x37ef8c['descriptionFactory']['registerElementLabel']('pageBreak',_0x50872f=>o(_0x47c004,'ELEMENT_PAGE_BREAK',_0x50872f));}}class kt extends _0xeec5ec{['afterInit'](){const _0x141cba=this['editor'];if(!_0x141cba['plugins']['has']('Paragraph'))return;const _0x502924=_0x141cba['locale'],_0x5288c7=_0x141cba['plugins']['get']('TrackChangesEditing');_0x5288c7['descriptionFactory']['registerElementLabel']('paragraph',_0x30fc84=>o(_0x502924,'ELEMENT_PARAGRAPH',_0x30fc84)),_0x5288c7['enableDefaultAttributesIntegration']('paragraph'),_0x5288c7['enableCommand']('insertParagraph'),_0x141cba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x141cba),{'priority':'highest'}),_0x141cba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa53028,_0x5e7fa2,_0x3bb64c)=>{_0x3bb64c['options']['showSuggestionHighlights']&&nr(_0x141cba,{'showActiveMarker':!0x1})(_0xa53028,_0x5e7fa2,_0x3bb64c);},{'priority':'highest'});const _0x74209f=_0x5288c7['descriptionFactory'];_0x74209f['registerDescriptionCallback'](_0xd6464=>{if('insertion'!==_0xd6464['type'])return;const {start:_0x172916,end:_0x3f8df2}=_0xd6464['getFirstRange']();if(!_0x172916['isTouching'](_0x3f8df2)||!_0x172916['nodeAfter'])return;const _0x115f27=_0x141cba['model']['schema'],_0x498841=_0x172916['nodeAfter'];return _0x115f27['isBlock'](_0x498841)&&!_0x115f27['isLimit'](_0x498841)&&_0x115f27['checkChild'](_0x498841,'$text')?{'type':'insertion','content':o(_0x502924,'*Insert:*\x20%0',_0x74209f['getItemLabel'](_0x498841,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20ea8d=this['editor'],_0x3b4aa3=_0x20ea8d['locale'];_0x20ea8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9636=>{if('formatBlock'!=_0x3e9636['type'])return;const {data:_0x5ebcad}=_0x3e9636;return _0x5ebcad&&'paragraph'==_0x5ebcad['commandName']?{'type':'format','content':o(_0x3b4aa3,'*Change\x20to:*\x20%0',o(_0x3b4aa3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x28315c,{showActiveMarker:_0x5079f8=!0x0}={}){return(_0x5227ff,_0x3ecf14,_0x223679)=>{const _0x5a3ce8=_0x28315c['plugins']['get']('TrackChangesEditing'),_0x250804=_0x3ecf14['markerRange']['start'],_0x568e08=_0x3ecf14['markerRange']['end'],_0x5eeaeb=_0x28315c['model']['schema'];if(!_0x250804['isTouching'](_0x568e08)||!_0x250804['nodeAfter'])return;const _0x446bbe=_0x250804['nodeAfter'];if(_0x5eeaeb['isBlock'](_0x446bbe)&&!_0x5eeaeb['isLimit'](_0x446bbe)&&_0x5eeaeb['checkChild'](_0x446bbe,'$text')){if(!_0x223679['consumable']['consume'](_0x3ecf14['markerRange'],_0x5227ff['name']))return;const {id:_0x4f3695,authorId:_0x4c35ca}=_0x5a3ce8['_splitMarkerName'](_0x3ecf14['markerName']),_0x575dab=_0x223679['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4f3695,'data-author-id':_0x4c35ca}),_0x308290=_0x223679['mapper']['toViewPosition'](_0x568e08);_0x5079f8&&_0x5a3ce8['activeMarkers']['includes'](_0x3ecf14['markerName'])&&_0x223679['writer']['addClass']('ck-suggestion-marker--active',_0x575dab),_0x223679['writer']['insert'](_0x308290,_0x575dab),_0x223679['mapper']['bindElementToMarker'](_0x575dab,_0x3ecf14['markerName']);}};}class wt extends _0xeec5ec{['afterInit'](){const _0x56de83=this['editor'];_0x56de83['commands']['get']('replaceSource')&&_0x56de83['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xeec5ec{['afterInit'](){const _0x3047d0=this['editor'];if(!_0x3047d0['plugins']['has']('RemoveFormatEditing'))return;_0x3047d0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4512ee=this['editor'];_0x4512ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279c1b=>{if('formatBlock'!=_0x279c1b['type']&&'formatInline'!=_0x279c1b['type'])return;const {data:_0x351121}=_0x279c1b;return _0x351121&&'removeFormat'==_0x351121['commandName']?{'type':'format','content':o(_0x4512ee['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xeec5ec{['afterInit'](){const _0x478db0=this['editor'];if(!_0x478db0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44f616=_0x478db0['plugins']['get']('TrackChangesEditing');_0x44f616['enableCommand']('goToPreviousRestrictedEditingException'),_0x44f616['enableCommand']('goToNextRestrictedEditingException');const _0xb17f77=_0x478db0['plugins']['get']('RestrictedEditingModeEditing');_0xb17f77['enableCommand']('trackChanges'),_0xb17f77['enableCommand']('acceptSuggestion'),_0xb17f77['enableCommand']('discardSuggestion'),_0xb17f77['enableCommand']('acceptAllSuggestions'),_0xb17f77['enableCommand']('discardAllSuggestions'),_0xb17f77['enableCommand']('acceptSelectedSuggestions'),_0xb17f77['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xeec5ec{['afterInit'](){const _0x3fc884=this['editor'];if(!_0x3fc884['plugins']['has']('ShiftEnter'))return;const _0x15d4e8=_0x3fc884['plugins']['get']('TrackChangesEditing');_0x15d4e8['enableCommand']('shiftEnter'),_0x3fc884['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3fc884),{'priority':'high'}),_0x3fc884['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3fc884),{'priority':'high'}),_0x3fc884['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50861b,_0x2a6c87,_0x3e5a7c)=>{_0x3e5a7c['options']['showSuggestionHighlights']&&je(_0x3fc884,{'showActiveMarker':!0x1})(_0x50861b,_0x2a6c87,_0x3e5a7c);}),_0x15d4e8['descriptionFactory']['registerElementLabel']('softBreak',_0x73145f=>o(_0x3fc884['locale'],'ELEMENT_LINE_BREAK',_0x73145f));}}function je(_0x32ae88,{showActiveMarker:_0x5091a2=!0x0}={}){return(_0x2f5564,_0x3e8b6f,_0x29890d)=>{const _0x31bcb6=_0x32ae88['plugins']['get']('TrackChangesEditing');if(!_0x29890d['consumable']['test'](_0x3e8b6f['markerRange'],_0x2f5564['name']))return;const _0x5d0d44=_0x32ae88['model'];for(const _0x20f7e5 of _0x3e8b6f['markerRange']['getItems']()){if(!_0x20f7e5['is']('element','softBreak'))continue;const _0x45fc3c='deletion'==_0x3e8b6f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x16fce4,authorId:_0x5a7ec1}=_0x31bcb6['_splitMarkerName'](_0x3e8b6f['markerName']),_0x42ef90=_0x29890d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45fc3c,'data-suggestion':_0x16fce4,'data-author-id':_0x5a7ec1}),_0x1e9b0b=_0x29890d['mapper']['toViewPosition'](_0x5d0d44['createPositionBefore'](_0x20f7e5));_0x5091a2&&_0x31bcb6['activeMarkers']['includes'](_0x3e8b6f['markerName'])&&_0x29890d['writer']['addClass']('ck-suggestion-marker--active',_0x42ef90),_0x29890d['writer']['insert'](_0x1e9b0b,_0x42ef90),_0x29890d['mapper']['bindElementToMarker'](_0x42ef90,_0x3e8b6f['markerName']);}};}class St extends _0xeec5ec{['afterInit'](){const _0x30de7d=this['editor'],_0x5d9a47=_0x30de7d['model'],_0x4754df=_0x30de7d['locale'];if(!_0x30de7d['plugins']['has']('StandardEditingModeEditing'))return;const _0x463cea=_0x30de7d['plugins']['get']('TrackChangesEditing'),_0x5407ef='restrictedEditingException',_0x43d21e=_0x30de7d['commands']['get'](_0x5407ef);_0x463cea['enableCommand'](_0x5407ef,(_0x5a8e42,_0x7d924e={})=>{const _0x3d9e69=_0x5d9a47['document']['selection'];if(_0x3d9e69['isCollapsed'])return void _0x5a8e42(_0x7d924e);const _0x23c483=void 0x0!==_0x7d924e['forceValue']?_0x7d924e['forceValue']:!_0x43d21e['value'];_0x5d9a47['change'](()=>{const _0x3ac79d=Array['from'](_0x3d9e69['getRanges']());for(const _0x47f78b of _0x3ac79d){const _0x4ae500=_0x23c483?[_0x47f78b]:io(_0x5407ef,_0x47f78b,_0x5d9a47);for(const _0x41e40c of _0x4ae500)_0x463cea['markInlineFormat'](_0x41e40c,{'commandName':_0x5407ef,'commandParams':[{'forceValue':_0x23c483}]});}});}),_0x463cea['descriptionFactory']['registerDescriptionCallback'](_0x5c0485=>{if('formatBlock'!=_0x5c0485['type']&&'formatInline'!=_0x5c0485['type'])return;const {data:_0x6a0d26}=_0x5c0485;return _0x6a0d26&&_0x6a0d26['commandName']==_0x5407ef?_0x6a0d26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4754df,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4754df,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xeec5ec{['afterInit'](){const _0x6dd229=this['editor'];if(!_0x6dd229['plugins']['has']('Style')||!_0x6dd229['plugins']['has']('DataSchema'))return;const _0x55783c=_0x6dd229['plugins']['get']('TrackChangesEditing'),_0x1304a5=_0x6dd229['locale'],_0x3459d3=_0x6dd229['config']['get']('style')||{},_0x2c6a1e=_0x6dd229['plugins']['get']('GeneralHtmlSupport'),_0x1119b6=_0x6dd229['plugins']['get']('StyleUtils')['normalizeConfig'](_0x6dd229['plugins']['get']('DataSchema'),_0x3459d3['definitions']);_0x55783c['enableDefaultAttributesIntegration']('style');const _0xd4cb4b=new Set();for(const _0x49cee4 of _0x1119b6['block']){const _0x57e539=_0x2c6a1e['getGhsAttributeNameForElement'](_0x49cee4['element']);_0xd4cb4b['add'](_0x57e539);}const _0x3f6a13=new Set();for(const _0x1decb4 of _0x1119b6['inline']){const _0x4fc7b0=_0x2c6a1e['getGhsAttributeNameForElement'](_0x1decb4['element']);_0x3f6a13['add'](_0x4fc7b0);for(const _0x32a4db of _0x1decb4['ghsAttributes'])_0x3f6a13['add'](_0x32a4db);}for(const _0xb5a36a of _0xd4cb4b)_0x55783c['registerBlockAttribute'](_0xb5a36a),_0x55783c['descriptionFactory']['registerAttributeLabel'](_0xb5a36a,o(_0x1304a5,'FORMAT_STYLE'));for(const _0xef5704 of _0x3f6a13)_0x55783c['registerInlineAttribute'](_0xef5704),_0x55783c['descriptionFactory']['registerAttributeLabel'](_0xef5704,o(_0x1304a5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e5885=this['editor'],_0x520f50=_0x4e5885['locale'];_0x4e5885['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1467a0=>{if('formatBlock'!=_0x1467a0['type']&&'formatInline'!=_0x1467a0['type'])return;const {data:_0x3aabdd}=_0x1467a0;return _0x3aabdd&&'style'===_0x3aabdd['commandName']?_0x3aabdd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x520f50,'*Set\x20format:*\x20%0',_0x3aabdd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x520f50,'*Remove\x20format:*\x20%0',_0x3aabdd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xeec5ec{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2b89d3){super(_0x2b89d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5c11f8=this['editor'],_0x2d7f00=_0x5c11f8['model']['document']['selection'];if(!_0x5c11f8['plugins']['has']('TableEditing'))return;const _0x112a2f=_0x5c11f8['locale'],_0x429b62=_0x5c11f8['plugins']['get']('TrackChangesEditing'),_0x23d2c9=_0x5c11f8['plugins']['get']('TableUtils');_0x429b62['descriptionFactory']['registerElementLabel']('table',_0x507472=>o(_0x112a2f,'ELEMENT_TABLE',_0x507472)),this['_setupColumnsRowsFixing'](),_0x429b62['enableCommand']('insertTable'),_0x429b62['enableCommand']('selectTableRow'),_0x429b62['enableCommand']('selectTableColumn');for(const _0xd75d63 of['insertTableRowAbove','insertTableRowBelow']){const _0x572ba1=_0x5c11f8['commands']['get'](_0xd75d63);_0x429b62['enableCommand'](_0xd75d63,_0x3c358b=>{_0x5c11f8['model']['change'](_0x3edb7c=>{_0x3c358b();const _0x25dd84='above'===_0x572ba1['order'],_0x2f3592=_0x23d2c9['getSelectionAffectedTableCells'](_0x2d7f00),_0xfe0a0=_0x23d2c9['getRowIndexes'](_0x2f3592),_0x55310c=_0x25dd84?_0xfe0a0['first']-0x1:_0xfe0a0['last']+0x1,_0x25fa7e=_0x2f3592[0x0]['findAncestor']('table'),_0x2bace0=_0x23d2c9['createTableWalker'](_0x25fa7e,{'startRow':_0x55310c,'endRow':_0x55310c}),_0xbc671e=Array['from'](_0x2bace0)['map'](_0x4daaa2=>_0x3edb7c['createRangeOn'](_0x4daaa2['cell']));_0x429b62['markMultiRangeInsertion'](_0xbc671e,'tableRow');});});}for(const _0x35156f of['insertTableColumnLeft','insertTableColumnRight']){const _0x563fce=_0x5c11f8['commands']['get'](_0x35156f);_0x429b62['enableCommand'](_0x35156f,_0x2f75e5=>{_0x5c11f8['model']['change'](_0x18a720=>{_0x2f75e5();const _0x4cc6b1='left'===_0x563fce['order'],_0x1cab1d=_0x23d2c9['getSelectionAffectedTableCells'](_0x2d7f00),_0x5dafc6=_0x23d2c9['getColumnIndexes'](_0x1cab1d),_0x1fd546=_0x4cc6b1?_0x5dafc6['first']-0x1:_0x5dafc6['last']+0x1,_0x85c889=_0x1cab1d[0x0]['findAncestor']('table'),_0x1cb88f=_0x23d2c9['createTableWalker'](_0x85c889,{'startRow':0x0,'column':_0x1fd546,'includeAllSlots':!0x1}),_0x335122=Array['from'](_0x1cb88f)['map'](_0x2022c4=>_0x18a720['createRangeOn'](_0x2022c4['cell']));_0x429b62['markMultiRangeInsertion'](_0x335122,'tableColumn');});});}for(const _0x4a3747 of['removeTableRow','removeTableColumn']){const _0x532293=_0x4a3747['substr'](0xb),_0x401904=_0x532293['toLowerCase'](),_0x486ed9=_0x401904['substr'](0x0,0x3)+'span',_0x26851b='table'+_0x532293,_0x52dda4='min'+_0x532293,_0x36973f='max'+_0x532293;_0x429b62['enableCommand'](_0x4a3747,()=>{_0x5c11f8['model']['change'](_0x73f773=>{const _0x2c18ea=_0x23d2c9['getSelectionAffectedTableCells'](_0x2d7f00),_0x4452af=_0x2c18ea[0x0]['findAncestor']('table');let _0x4bc72a;if('removeTableRow'==_0x4a3747){const _0x46f355=_0x23d2c9['getRowIndexes'](_0x2c18ea);_0x4bc72a={'startRow':_0x46f355['first'],'endRow':_0x46f355['last'],'includeAllSlots':!0x0};}else{const _0x33324a=_0x23d2c9['getColumnIndexes'](_0x2c18ea);_0x4bc72a={'startColumn':_0x33324a['first'],'endColumn':_0x33324a['last'],'includeAllSlots':!0x0};}const _0x286e7a=_0x23d2c9['createTableWalker'](_0x4452af,_0x4bc72a),_0x408dbb=Array['from'](_0x286e7a)['map'](({cell:_0x57f753})=>_0x57f753),_0xe443eb=Ne(_0x408dbb['filter'](_0x26dff9=>_0x26dff9['hasAttribute'](_0x486ed9))),_0x1603c7=Ne(_0x408dbb['filter'](_0x398f67=>!_0x398f67['hasAttribute'](_0x486ed9)))['map'](_0x101b70=>_0x73f773['createRangeOn'](_0x101b70)),_0x3177c5=_0x429b62['markMultiRangeDeletion'](_0x1603c7,_0x26851b);if(_0x3177c5&&('tableRow'==_0x3177c5['subType']||'tableColumn'==_0x3177c5['subType'])){const _0x56cb85=this['_getSuggestionCoords'](_0x3177c5);for(const _0x4ec959 of _0xe443eb){const _0x1e1e07=_0x73f773['createRangeOn'](_0x4ec959),_0x757b03=_0x23d2c9['getCellLocation'](_0x4ec959),_0x178ab6=_0x4ec959['getAttribute'](_0x486ed9)-0x1,_0x475d2e=_0x56cb85[_0x52dda4],_0x5b4992=_0x56cb85[_0x36973f];_0x475d2e<=_0x757b03[_0x401904]&&_0x757b03[_0x401904]+_0x178ab6<=_0x5b4992&&_0x3177c5['addRange'](_0x1e1e07);}}});});}function _0x348e5d(_0x5cb68b){const _0x49cf09=Array['from'](_0x2d7f00['getRanges']())['map'](_0x12de7d=>_0x414e2a['fromRange'](_0x12de7d));_0x5c11f8['model']['change'](_0x2acf88=>{const _0xbfcc6c=_0x2acf88['batch'];_0x5cb68b=_0x5cb68b['filter'](_0x3a1604=>'$graveyard'!=_0x3a1604['root']['rootName']),_0x2acf88['setSelection'](_0x5cb68b),_0x5c11f8['commands']['get']('removeTableRow')['refresh'](),_0x5c11f8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c11f8['model']['enqueueChange'](()=>{_0x5c11f8['model']['enqueueChange'](_0xbfcc6c,_0x1eb461=>{const _0x4b06fc=_0x49cf09['filter'](_0x291148=>'$graveyard'!=_0x291148['root']['rootName']);_0x4b06fc['length']>0x0&&_0x1eb461['setSelection'](_0x4b06fc);for(const _0x512c34 of _0x49cf09)_0x512c34['detach']();});});});}function _0x44b54b(_0x34cfdc){_0x5c11f8['model']['change'](_0x260318=>{const _0x3f1757=Array['from'](_0x2d7f00['getRanges']())['map'](_0x2d8f63=>_0x414e2a['fromRange'](_0x2d8f63)),_0x3483ad=[];for(const _0xc52718 of _0x34cfdc)for(const _0x196f1b of _0xc52718['getItems']({'shallow':!0x0}))_0x3483ad['push'](_0x196f1b);for(const _0x1db9ec of _0x3483ad)'$graveyard'!=_0x1db9ec['root']['rootName']&&(_0x260318['setSelection'](_0x260318['createPositionAt'](_0x1db9ec,0x0)),_0x5c11f8['commands']['get']('removeTableColumn')['refresh'](),_0x5c11f8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x269f8b=_0x3f1757['filter'](_0x14e4be=>'$graveyard'!=_0x14e4be['root']['rootName']);_0x269f8b['length']>0x0&&_0x260318['setSelection'](_0x269f8b);for(const _0x2e092f of _0x3f1757)_0x2e092f['detach']();});}function _0x529849(_0x4fa912,_0x13ff31){return _0x13ff31['every'](_0x537f9e=>_0x4fa912['some'](_0x3214f2=>_0x3214f2['end']['isEqual'](_0x537f9e['start'])||_0x537f9e['end']['isEqual'](_0x3214f2['start'])));}function _0x2139af(_0x237058,_0x251fae){return!_0x237058['some'](_0x1615a8=>_0x251fae['some'](_0x40db7d=>_0x1615a8['isIntersecting'](_0x40db7d)))&&_0x237058['some'](_0xd5dab0=>_0x251fae['some'](_0x3cfe9a=>_0xd5dab0['end']['isTouching'](_0x3cfe9a['start'])));}_0x5c11f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c534d,_0x59c652,_0x21e8fa)=>{if(!_0x21e8fa['options']['showSuggestionHighlights'])return;const _0x2e4eb6=_0x59c652['item'];if(!_0x2e4eb6||!_0x2e4eb6['is']('element','tableCell'))return;const _0x1242a0=_0x21e8fa['mapper']['toViewElement'](_0x2e4eb6);if(_0x1242a0){const {id:_0x3c468c,authorId:_0x2d41ef}=_0x429b62['_splitMarkerName'](_0x59c652['markerName']);_0x5b8608(_0x1242a0,_0x21e8fa['writer'],(_0x518375,_0x5e8274,_0x39ba3a)=>{_0x39ba3a['addClass'](_0xea2e1a(_0x5e8274['classes']),_0x518375),_0x39ba3a['setAttribute']('data-suggestion-id',_0x3c468c,_0x518375),_0x39ba3a['setAttribute']('data-author-id',_0x2d41ef,_0x518375);},(_0xbc5dd0,_0x80471e,_0x237ed0)=>{_0x237ed0['removeClass'](_0xea2e1a(_0x80471e['classes']),_0xbc5dd0),_0x237ed0['removeAttribute']('data-suggestion-id',_0xbc5dd0),_0x237ed0['removeAttribute']('data-author-id',_0xbc5dd0);});}},{'priority':'highest'}),_0x429b62['descriptionFactory']['registerDescriptionCallback'](_0x41d74f=>{if('insertion'!=_0x41d74f['type']&&'deletion'!=_0x41d74f['type'])return;const _0x5ec9d9=_0x41d74f['getContainedElement']();if(null!=_0x5ec9d9&&_0x5ec9d9['is']('element','table')){if('insertion'==_0x41d74f['type']){const _0xee9c7=_0x41d74f['getItems']()['filter'](_0x367add=>_0x367add['is']('$textProxy'))['map'](_0x3cd439=>_0x3cd439['data']);if(_0xee9c7['length'])return{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xee9c7['join']('\x20')+'\x22'))};}if('deletion'==_0x41d74f['type']){const _0xd3982b=_0x41d74f['getItems']()['filter'](_0x2e051c=>_0x2e051c['is']('$textProxy'))['map'](_0x52ba9d=>_0x52ba9d['data']);if(_0xd3982b['length'])return{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd3982b['join']('\x20')+'\x22'))};}}}),_0x429b62['descriptionFactory']['registerDescriptionCallback'](_0x19c006=>{if('tableRow'==_0x19c006['subType']){const _0x3f1fa2=_0x19c006['getItems']()['filter'](_0x5e4e0c=>_0x5e4e0c['is']('$textProxy'))['map'](_0x8b75ff=>_0x8b75ff['data']),_0xbb6c6c=this['_getSuggestionCoords'](_0x19c006),_0x25904f=_0xbb6c6c['maxRow']-_0xbb6c6c['minRow']+0x1;if('insertion'==_0x19c006['type'])return _0x3f1fa2['length']?{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x25904f,'\x22'+_0x3f1fa2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW',_0x25904f))};if('deletion'==_0x19c006['type'])return _0x3f1fa2['length']?{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x25904f,'\x22'+_0x3f1fa2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW',_0x25904f))};}if('tableColumn'==_0x19c006['subType']){const _0x42d7a1=_0x19c006['getItems']()['filter'](_0x7e2459=>_0x7e2459['is']('$textProxy'))['map'](_0x4e8904=>_0x4e8904['data']),_0x5623f9=this['_getSuggestionCoords'](_0x19c006),_0x626c8f=_0x5623f9['maxColumn']-_0x5623f9['minColumn']+0x1;if('insertion'==_0x19c006['type'])return _0x42d7a1['length']?{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x626c8f,'\x22'+_0x42d7a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN',_0x626c8f))};if('deletion'==_0x19c006['type'])return _0x42d7a1['length']?{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x626c8f,'\x22'+_0x42d7a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN',_0x626c8f))};}}),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x348e5d),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x348e5d),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x44b54b),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x44b54b),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x529849),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x529849),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2139af),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2139af);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32c975=this['editor'],_0x3c35ba=_0x32c975['model']['document']['selection'];return(_0x4fe2d3,_0x19ac08)=>{_0x32c975['model']['change'](_0x571293=>{const {commandName:_0x44e56b,commandParams:_0x50cec6}=_0x19ac08;let _0x2518e1=_0x4fe2d3[0x0]['end']['nodeBefore'];_0x50cec6&&_0x50cec6[0x0]&&!0x1===_0x50cec6[0x0]['forceValue']&&(_0x2518e1=_0x4fe2d3[0x0]['start']['nodeAfter']);const _0x2162d7=_0x571293['createRangeIn'](_0x2518e1);if('$graveyard'==_0x2162d7['root']['rootName'])return;const _0x10d579=Array['from'](_0x3c35ba['getRanges']())['map'](_0x12cedf=>_0x414e2a['fromRange'](_0x12cedf));_0x571293['setSelection'](_0x2162d7),_0x32c975['commands']['get'](_0x44e56b)['refresh'](),_0x50cec6['push']({'forceDefaultExecution':!0x0}),_0x32c975['execute'](_0x44e56b,..._0x50cec6);const _0xbaafa9=_0x10d579['filter'](_0x22cc06=>'$graveyard'!=_0x22cc06['root']['rootName']);_0xbaafa9['length']>0x0&&_0x571293['setSelection'](_0xbaafa9);for(const _0x826987 of _0x10d579)_0x826987['detach']();});};}['_getCoordsForCells'](_0x1d5c18){const _0x12865f=this['editor']['plugins']['get']('TableUtils');let _0x1a8ae1=Number['MAX_SAFE_INTEGER'],_0xda663f=Number['MIN_SAFE_INTEGER'],_0x2a70a6=Number['MAX_SAFE_INTEGER'],_0x277f18=Number['MIN_SAFE_INTEGER'];for(const _0x3e6f2e of _0x1d5c18){if('$graveyard'==_0x3e6f2e['root']['rootName'])continue;const {row:_0x35db78,column:_0x423792}=_0x12865f['getCellLocation'](_0x3e6f2e),_0x216d94=_0x3e6f2e['hasAttribute']('rowspan')?_0x3e6f2e['getAttribute']('rowspan')-0x1:0x0,_0x2c19b1=_0x3e6f2e['hasAttribute']('colspan')?_0x3e6f2e['getAttribute']('colspan')-0x1:0x0;_0x1a8ae1=_0x35db78<_0x1a8ae1?_0x35db78:_0x1a8ae1,_0xda663f=_0x35db78+_0x216d94>_0xda663f?_0x35db78+_0x216d94:_0xda663f,_0x2a70a6=_0x423792<_0x2a70a6?_0x423792:_0x2a70a6,_0x277f18=_0x423792+_0x2c19b1>_0x277f18?_0x423792+_0x2c19b1:_0x277f18;}return{'minRow':_0x1a8ae1,'maxRow':_0xda663f,'minColumn':_0x2a70a6,'maxColumn':_0x277f18};}['_setupColumnsRowsFixing'](){const _0x42b45e=this['editor'],_0x5d3f04=_0x42b45e['plugins']['get']('TrackChangesEditing'),_0x207ac1=_0x42b45e['plugins']['get']('TableUtils');_0x42b45e['model']['document']['on']('change:data',()=>{const _0x4fa0ad=Array['from'](_0x42b45e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x267dbf,data:_0x3a6b5d}of _0x4fa0ad){const {group:_0x2ef174,id:_0x174f2c,subType:_0x496422}=_0x5d3f04['_splitMarkerName'](_0x267dbf);if('suggestion'!=_0x2ef174)continue;if(null!=_0x3a6b5d['oldRange'])continue;const _0x233d0f=_0x5d3f04['getSuggestion'](_0x174f2c);this['_tablePostFixingSubtypes']['includes'](_0x496422)&&this['_tableSuggestions']['add'](_0x233d0f);}},{'priority':'low'});const _0x49bb08=(_0x2bdf73,_0x22deaf)=>{let _0x3a09ea=!0x1;const _0x3df50b=_0x22deaf['createRangeOn'](_0x2bdf73),_0x7b0297=_0x2bdf73['findAncestor']('table'),_0x1f633d=_0x207ac1['getCellLocation'](_0x2bdf73);for(const _0x3b7ebd of this['_tableSuggestions']){const _0x2970b4=_0x3b7ebd['subType'],_0x20fbb2=_0x2970b4['startsWith']('tablePaste'),_0x1e898f=_0x2970b4['substr'](_0x20fbb2?0xa:0x5),_0x540ea9=_0x1e898f['toLowerCase'](),_0xa4261d=_0x540ea9['substr'](0x0,0x3)+'span',_0x2d3a55='min'+_0x1e898f,_0xc58de2='max'+_0x1e898f;if(!_0x3b7ebd['isInContent'])continue;if(_0x7b0297!=_0x3b7ebd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3b7ebd['isIntersectingWithRange'](_0x3df50b))continue;const _0x12c903=_0x2bdf73['hasAttribute'](_0xa4261d)?_0x2bdf73['getAttribute'](_0xa4261d)-0x1:0x0,_0x519422=this['_getSuggestionCoords'](_0x3b7ebd),_0x8b050f=_0x519422[_0x2d3a55],_0x2ac35c=_0x519422[_0xc58de2];_0x8b050f<=_0x1f633d[_0x540ea9]&&_0x1f633d[_0x540ea9]+_0x12c903<=_0x2ac35c&&(_0x3b7ebd['addRange'](_0x3df50b),_0x3a09ea=!0x0);}return _0x3a09ea;};_0x42b45e['model']['document']['registerPostFixer'](_0x5b356b=>{let _0x53a6f2=!0x1;for(const _0x13a865 of _0x42b45e['model']['document']['differ']['getChanges']())if('insert'==_0x13a865['type']){if('tableRow'==_0x13a865['name']){for(const _0x4646a0 of _0x13a865['position']['nodeAfter']['getChildren']())_0x53a6f2=_0x53a6f2||_0x49bb08(_0x4646a0,_0x5b356b);}else'tableCell'==_0x13a865['name']&&(_0x53a6f2=_0x53a6f2||_0x49bb08(_0x13a865['position']['nodeAfter'],_0x5b356b));}return _0x53a6f2;});}['_getSuggestionCoords'](_0x5eb95e){return this['_getCoordsForCells'](_0x5eb95e['getRanges']()['map'](_0x5c63dc=>_0x5c63dc['start']['nodeAfter']));}}function Ne(_0xc2158e){return Array['from'](new Set(_0xc2158e)['values']());}class _t extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x39acc1=this['editor'],_0x469857=_0x39acc1['model']['document']['selection'],_0x377125=_0x39acc1['locale'];if(!_0x39acc1['plugins']['has']('TableEditing'))return;const _0x4140bc=_0x39acc1['plugins']['get']('TrackChangesEditing'),_0x599221=_0x39acc1['plugins']['get']('TableUtils'),_0x393ef0=_0x39acc1['plugins']['get'](At);_0x393ef0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4140bc['enableCommand']('mergeTableCells',()=>{const _0x251330=_0x599221['getSelectionAffectedTableCells'](_0x39acc1['model']['document']['selection']);_0x39acc1['model']['change'](()=>{_0x4140bc['markMultiRangeBlockFormat'](_0x251330,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39acc1['commands']['get']('mergeTableCells')['on']('execute',(_0x5850ea,_0x44009a)=>{_0x39acc1['commands']['get']('trackChanges')['value']&&(_0x44009a['length']>0x0&&_0x44009a[_0x44009a['length']-0x1]&&_0x44009a[_0x44009a['length']-0x1]['forceDefaultExecution']||_0x4140bc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5850ea['stop']());},{'priority':'highest'});for(const _0x4b4949 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17ad24=_0x39acc1['commands']['get'](_0x4b4949);_0x4140bc['enableCommand'](_0x4b4949,()=>{const _0x362481=_0x39acc1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d592d=>_0x5d592d['is']('element','tableCell')),_0x48c42e=_0x17ad24['value'];_0x39acc1['model']['change'](()=>{_0x4140bc['markMultiRangeBlockFormat']([_0x362481,_0x48c42e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x137959 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x547d2a=_0x39acc1['commands']['get'](_0x137959);_0x4140bc['enableCommand'](_0x137959,()=>{const _0x1b7943=_0x599221['getSelectionAffectedTableCells'](_0x39acc1['model']['document']['selection'])[0x0],_0x18e87c=_0x1b7943['findAncestor']('table'),{column:_0x2c3bec,row:_0x35d044}=_0x599221['getCellLocation'](_0x1b7943);let _0x2f3506=[];if('horizontally'==_0x547d2a['direction']){const _0x17b7c9=_0x599221['createTableWalker'](_0x18e87c,{'startRow':_0x35d044,'endRow':_0x35d044,'includeAllSlots':!0x0});_0x2f3506=Array['from'](_0x17b7c9)['map'](_0x4db56b=>_0x4db56b['cell']);}else{const _0x4ea440=_0x599221['createTableWalker'](_0x18e87c,{'column':_0x2c3bec,'includeAllSlots':!0x0});_0x2f3506=Array['from'](_0x4ea440)['map'](_0x5368e9=>_0x5368e9['cell']);}_0x39acc1['model']['change'](_0x52ec72=>{_0x4140bc['markBlockFormat'](_0x52ec72['createRangeOn'](_0x1b7943),{'commandName':_0x137959,'commandParams':[]},_0x2f3506,_0x137959);});});}_0x4140bc['descriptionFactory']['registerDescriptionCallback'](_0x2423be=>{if('formatBlock'!=_0x2423be['type']&&'formatInline'!=_0x2423be['type'])return;const {data:_0x20ec64}=_0x2423be;return _0x20ec64&&'mergeTableCells'==_0x20ec64['commandName']?{'type':'format','content':o(_0x377125,'*Merge\x20cells*')}:void 0x0;}),_0x4140bc['descriptionFactory']['registerDescriptionCallback'](_0x4be79f=>{if('formatBlock'!=_0x4be79f['type']&&'formatInline'!=_0x4be79f['type'])return;const {data:_0x4fe72c}=_0x4be79f;return _0x4fe72c?'splitTableCellVertically'==_0x4fe72c['commandName']?{'type':'format','content':o(_0x377125,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4fe72c['commandName']?{'type':'format','content':o(_0x377125,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5b5c05=_0x393ef0['_acceptFormatSuggestionCallbackFactory']();for(const _0x1534cf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4140bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1534cf,'accept',_0x5b5c05);for(const _0x52bbb5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4140bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52bbb5,'accept',_0x5b5c05);_0x4140bc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x573a01=>{_0x39acc1['model']['change'](_0x58820b=>{const _0xb83c09=Array['from'](_0x469857['getRanges']())['map'](_0x5215ed=>_0x414e2a['fromRange'](_0x5215ed));_0x58820b['setSelection'](_0x573a01),_0x39acc1['commands']['get']('mergeTableCells')['refresh'](),_0x39acc1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ee36d=_0xb83c09['filter'](_0x57d24f=>'$graveyard'!=_0x57d24f['root']['rootName']);_0x2ee36d['length']>0x0&&_0x58820b['setSelection'](_0x2ee36d);for(const _0x573317 of _0xb83c09)_0x573317['detach']();});});for(const _0x42f3b9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ed729=_0x39acc1['commands']['get'](_0x42f3b9);_0x3ed729['on']('set:isEnabled',(_0x49e035,_0x1e3a57,_0x3bcd04)=>{if(_0x3bcd04){const _0x511c8b=_0x39acc1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x6bd5e2=>_0x6bd5e2['is']('element','tableCell'));this['_areMergableCells'](_0x3ed729['value'],_0x511c8b)||(_0x49e035['return']=!0x1,_0x49e035['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x17de0c=this['editor']['commands']['get']('mergeTableCells'),_0xf0359a=this['editor']['plugins']['get']('TableUtils');if(!_0x17de0c['isEnabled'])return!0x1;const _0x3fceda=_0xf0359a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1fed30 of _0x3fceda)for(const _0x23d861 of _0x3fceda)if(_0x1fed30!=_0x23d861&&!this['_areMergableCells'](_0x1fed30,_0x23d861))return!0x1;return!0x0;}['_areMergableCells'](_0x58d02f,_0x3338fe){const _0x1fa57c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dbde1=this['editor']['model']['createRangeOn'](_0x58d02f),_0x1ed38f=this['editor']['model']['createRangeOn'](_0x3338fe),_0x46039a=new Set(),_0x48da21=new Set();for(const _0x326269 of _0x1fa57c['getSuggestions']())if(('insertion'==_0x326269['type']||'deletion'==_0x326269['type']||'mergeTableCells'==_0x326269['subType'])&&_0x326269['isInContent']){for(const _0x7d7d29 of _0x326269['getRanges']())_0x7d7d29['containsRange'](_0x4dbde1,!0x0)&&_0x46039a['add'](_0x326269['type']+':'+_0x326269['author']['id']),_0x7d7d29['containsRange'](_0x1ed38f,!0x0)&&_0x48da21['add'](_0x326269['type']+':'+_0x326269['author']['id']);}if(_0x46039a['size']!=_0x48da21['size'])return!0x1;for(const _0x1635ef of _0x46039a)if(!_0x48da21['has'](_0x1635ef))return!0x1;return!0x0;}}class Ct extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x34c20a=this['editor'];if(!_0x34c20a['plugins']['has']('TableEditing'))return;const _0x1aecd0=_0x34c20a['locale'],_0x46d597=_0x34c20a['plugins']['get']('TrackChangesEditing');_0x46d597['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x46d597['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x46d597['registerBlockAttribute']('headingRows'),_0x46d597['registerBlockAttribute']('headingColumns'),_0x46d597['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1aecd0,'FORMAT_HEADER_ROW')),_0x46d597['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1aecd0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x33f523=this['editor']['plugins']['get']('TrackChangesEditing'),_0x389165=this['editor']['plugins']['get']('TableUtils'),_0x5cd20d=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1bec32({showActiveMarker:_0x1af237=!0x0,setDataAttribute:_0x46a287=!0x0}={}){return(_0x387e1a,_0x4fca97,_0x589186)=>{const {type:_0x334c3a,id:_0x108cf2}=_0x33f523['_splitMarkerName'](_0x4fca97['markerName']),_0x254ceb=_0x33f523['getSuggestion'](_0x108cf2),_0x5b0d1d=_0x254ceb['data'];if('formatBlock'!=_0x254ceb['type']||!_0x5b0d1d||'setTableColumnHeader'!=_0x5b0d1d['commandName'])return;if(_0x4fca97['item'])return void _0x387e1a['stop']();if(!_0x589186['consumable']['consume'](_0x4fca97['markerRange'],_0x387e1a['name']))return;const _0x366c5b=_0x4fca97['markerRange']['start']['nodeAfter'],_0x13412a=_0x4fca97['markerRange']['end']['nodeBefore'],_0x55078a=_0x366c5b['parent']['parent'],{column:_0x35d71c}=_0x389165['getCellLocation'](_0x366c5b),{column:_0x4fb4bc}=_0x389165['getCellLocation'](_0x13412a);for(let _0x4bb1dd=_0x35d71c;_0x4bb1dd<=_0x4fb4bc;_0x4bb1dd++){const _0x4b2758=_0x389165['createTableWalker'](_0x55078a,{'column':_0x4bb1dd,'includeAllSlots':!0x1});for(const _0x5ea7c0 of _0x4b2758){const _0x1df788=_0x5ea7c0['cell'],_0x13c906=_0x589186['mapper']['toViewElement'](_0x1df788);_0x589186['writer']['addClass']('ck-suggestion-marker-'+_0x334c3a,_0x13c906),_0x46a287&&_0x589186['writer']['setAttribute']('data-suggestion',_0x108cf2,_0x13c906),_0x589186['mapper']['bindElementToMarker'](_0x13c906,_0x4fca97['markerName']),_0x1af237&&(_0x33f523['activeMarkers']['includes'](_0x4fca97['markerName'])?_0x589186['writer']['addClass']('ck-suggestion-marker--active',_0x13c906):_0x589186['writer']['removeClass']('ck-suggestion-marker--active',_0x13c906));}}};}_0x33f523['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5cd20d),_0x33f523['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5cd20d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1bec32(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe2ca6b,_0x4632b8,_0x1f87a3)=>{_0x1f87a3['options']['showSuggestionHighlights']&&_0x1bec32({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xe2ca6b,_0x4632b8,_0x1f87a3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x17cf8c,_0x4cb335,_0x472b77)=>{const {type:_0x159e9b,id:_0x2b9ac0}=_0x33f523['_splitMarkerName'](_0x4cb335['markerName']),_0x4bca1a=_0x33f523['getSuggestion'](_0x2b9ac0),_0x3c89e1=_0x4bca1a['data'];if('formatBlock'!=_0x4bca1a['type']||!_0x3c89e1||'setTableColumnHeader'!=_0x3c89e1['commandName'])return;const _0x1695b8=_0x472b77['mapper']['markerNameToElements'](_0x4cb335['markerName']);if(_0x1695b8){for(const _0x5212d1 of _0x1695b8)_0x472b77['writer']['removeClass']('ck-suggestion-marker-'+_0x159e9b,_0x5212d1),_0x472b77['writer']['removeClass']('ck-suggestion-marker--active',_0x5212d1),_0x472b77['writer']['removeAttribute']('data-suggestion',_0x5212d1),_0x472b77['mapper']['unbindElementFromMarkerName'](_0x5212d1,_0x4cb335['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bd09a=this['editor'],_0x152c45=_0x1bd09a['locale'];function _0x17e168(_0x244638){return{'type':'format','content':o(_0x152c45,'*Format:*\x20%0',_0x244638)};}_0x1bd09a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354f66=>{if('formatBlock'!=_0x354f66['type'])return;const {data:_0x24409d}=_0x354f66;if(_0x24409d){if('setTableRowHeader'==_0x24409d['commandName']){const _0x57c4dc=_0x24409d['commandParams'][0x0]['forceValue'];return _0x17e168(o(_0x152c45,_0x57c4dc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x24409d['commandName']){const _0x129864=_0x24409d['commandParams'][0x0]['forceValue'];return _0x17e168(o(_0x152c45,_0x129864?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xeec5ec{['afterInit'](){const _0x1c6f55=this['editor'],_0x424ace=_0x1c6f55['locale'],_0x5f497d=_0x1c6f55['plugins']['get']('TrackChangesEditing');function _0x3eb411(_0x5b05c9){return{'type':'format','content':''+o(_0x424ace,'*Set\x20table\x20type:*\x20%0',_0x5b05c9)};}_0x1c6f55['plugins']['has']('TableLayout')&&(_0x5f497d['enableCommand']('insertTableLayout'),_0x5f497d['enableDefaultAttributesIntegration']('tableType'),_0x5f497d['registerBlockAttribute']('tableType'),_0x5f497d['descriptionFactory']['registerElementLabel'](_0x107270=>_0x107270['is']('element','table')&&'layout'===_0x107270['getAttribute']('tableType'),_0x2b384c=>o(_0x424ace,'ELEMENT_LAYOUT_TABLE',_0x2b384c)),_0x5f497d['descriptionFactory']['registerDescriptionCallback'](_0x5797a7=>{const {data:_0x5bc3ad}=_0x5797a7;if(_0x5bc3ad&&'tableType'==_0x5bc3ad['key'])switch(_0x5bc3ad['newValue']){case'layout':return _0x3eb411(o(_0x424ace,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3eb411(o(_0x424ace,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x509bb9=>[_0x509bb9,null]));class Nt extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x330028=this['editor'];if(!_0x330028['plugins']['has']('TableClipboard'))return;const _0x572f3f=_0x330028['plugins']['get']('TrackChangesEditing'),_0x4f43ad=_0x330028['plugins']['get']('TableUtils'),_0x20fd62=_0x330028['plugins']['get'](At),_0x446ed6=_0x330028['plugins']['get']('TableClipboard'),_0x185246=_0x330028['plugins']['get']('TableSelection'),_0x2d5997=_0x330028['plugins']['get'](_0x321051);_0x20fd62['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x330028['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x330028['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x173ff9=null,_0x3e5dbd=!0x1;_0x2d5997['on']('contentInsertion',(_0x2b36e2,_0x1a7910)=>{_0x3e5dbd='paste'===_0x1a7910['method'];}),_0x330028['model']['on']('insertContent',(_0x45274b,_0x1907f8)=>{if(!_0x3e5dbd&&null===_0x185246['getSelectedTableCells']())return;const [_0x4672f0,_0x487b59]=_0x1907f8,_0x5bfeb6=_0x1907f8[_0x1907f8['length']-0x1];_0x5bfeb6&&_0x5bfeb6['forceDefaultExecution']||_0x572f3f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x30ffb8,_0x1236ff,_0x1a73f2,_0xd732ff,_0x36df11){if(_0x1236ff&&!_0x1236ff['is']('documentSelection'))return!0x1;const _0x5f11bf=_0x36df11['getTableIfOnlyTableInContent'](_0x30ffb8,_0x1a73f2);if(!_0x5f11bf||!Ue(_0x5f11bf,void 0x0,_0xd732ff))return!0x1;const _0x2b06bc=_0xd732ff['getSelectionAffectedTableCells'](_0x1a73f2['document']['selection']);if(!_0x2b06bc['length'])return!0x1;const _0x4fba74=_0x2b06bc[0x0]['findAncestor']('table'),_0x59539a=_0xd732ff['getRowIndexes'](_0x2b06bc),_0x5d85ad=_0xd732ff['getColumnIndexes'](_0x2b06bc),_0x11ec07={'startRow':_0x59539a['first'],'endRow':_0x59539a['last'],'startColumn':_0x5d85ad['first'],'endColumn':_0x5d85ad['last']};return 0x1==_0x2b06bc['length']&&(_0x11ec07['endRow']+=_0xd732ff['getRows'](_0x5f11bf)-0x1,_0x11ec07['endColumn']+=_0xd732ff['getColumns'](_0x5f11bf)-0x1),Ue(_0x4fba74,_0x11ec07,_0xd732ff);}(_0x4672f0,_0x487b59,_0x330028['model'],_0x4f43ad,_0x446ed6)&&(_0x45274b['stop'](),_0x173ff9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x330028['model']['change'](()=>{_0x330028['model']['insertContent'](_0x1907f8[0x0],_0x1907f8[0x1],_0x1907f8[0x2],{'forceDefaultExecution':!0x0});const _0x4068f3=_0x1a8355(),{rowInsertionRanges:_0x3cec8b,columnInsertionRanges:_0x439001,insertionRanges:_0x2bac86,deletionRanges:_0x33163c,cells:_0x3a3250}=_0x173ff9;_0x3cec8b['length']&&_0x572f3f['markMultiRangeInsertion'](_0x3cec8b,'tablePasteRow',{'tablePasteChainId':_0x4068f3}),_0x439001['length']&&_0x572f3f['markMultiRangeInsertion'](_0x439001,'tablePasteColumn',{'tablePasteChainId':_0x4068f3}),_0x2bac86['length']&&(_0x572f3f['markMultiRangeInsertion'](_0x2bac86,'tablePaste',{'tablePasteChainId':_0x4068f3,'skipNestingCheck':!0x0}),_0x2bac86['forEach'](_0xf6fddb=>_0xf6fddb['detach']?.())),_0x33163c['length']&&(_0x572f3f['markMultiRangeDeletion'](_0x33163c,'tablePaste',{'tablePasteChainId':_0x4068f3,'skipNestingCheck':!0x0}),_0x33163c['forEach'](_0x507ae0=>_0x507ae0['detach']?.()));const _0x37e881=_0x572f3f['markMultiRangeBlockFormat'](_0x3a3250['map'](({element:_0xe4bf18})=>_0xe4bf18),{'formatGroupId':_0x1a8355()},[],'tablePasteCell',{'tablePasteChainId':_0x4068f3});if(_0x37e881){const _0xf19dad=_0x37e881['getMarkers'](),_0x1d17b0=[];for(const {element:_0x32211d,attributes:_0x136cb3}of _0x3a3250){if(!_0x136cb3)continue;const _0x53c844=_0x330028['model']['createRangeOn'](_0x32211d),_0x2ed2d9=_0xf19dad['find'](_0x3aee08=>_0x3aee08['getRange']()['isEqual'](_0x53c844));_0x2ed2d9&&_0x1d17b0['push']([_0x2ed2d9['name'],_0x136cb3]);}_0x1d17b0['length']&&_0x37e881['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d17b0));}_0x173ff9=null;}));},{'priority':_0x16cc49['high']+0xa}),_0x2d5997['on']('contentInsertion',()=>{_0x3e5dbd=!0x1;},{'priority':'lowest'}),_0x330028['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x25c2b4,_0x58790f)=>{const [_0x5ac55f,_0x45222b,,_0x2ba91f]=_0x58790f;if(!_0x173ff9)return;_0x25c2b4['stop']();const _0x212e42=_0x5ac55f['cell'],_0x5a7ff8=_0x45222b,_0xe8e331=Oe(_0x212e42),_0x469a1c=Oe(_0x5a7ff8);_0x25c2b4['return']=_0x212e42;let _0x187960=null,_0x32e740=null;if(_0x469a1c||_0xe8e331){if(_0xe8e331&&!_0x469a1c){_0x2ba91f['remove'](_0x212e42['getChild'](0x0));for(const _0x26368a of Array['from'](_0x5a7ff8['getChildren']()))_0x2ba91f['insert'](_0x26368a,_0x212e42,'end');const _0x2df485=_0x173ff9['rowInsertionIndexes']['includes'](_0x5ac55f['row']),_0x2eb071=_0x173ff9['columnInsertionIndexes']['includes'](_0x5ac55f['column']);_0x2df485||_0x2eb071||(_0x187960=_0x414e2a['fromRange'](_0x2ba91f['createRangeIn'](_0x212e42)));}else _0x469a1c&&!_0xe8e331&&(_0x32e740=_0x2ba91f['createRangeIn'](_0x212e42));}else{const _0x123464=_0x2ba91f['createElement']('tableCellSuggestion'),_0x4fd002=_0x2ba91f['createElement']('tableCellSuggestion');_0x2ba91f['wrap'](_0x2ba91f['createRangeIn'](_0x212e42),_0x4fd002),_0x2ba91f['insert'](_0x123464,_0x212e42,0x0);for(const _0x597820 of Array['from'](_0x5a7ff8['getChildren']()))_0x2ba91f['insert'](_0x597820,_0x123464,'end');_0x187960=_0x414e2a['fromRange'](_0x2ba91f['createRangeOn'](_0x123464)),_0x32e740=_0x414e2a['fromRange'](_0x2ba91f['createRangeOn'](_0x4fd002));}const _0x309cee=Array['from'](_0x5a7ff8['getAttributes']())['filter'](([_0x4c136b])=>Be['includes'](_0x4c136b));_0x173ff9['cells']['push']({'element':_0x212e42,'attributes':_0x309cee['length']?Object['fromEntries'](_0x309cee):null}),_0x187960&&_0x173ff9['insertionRanges']['push'](_0x187960),_0x32e740&&_0x173ff9['deletionRanges']['push'](_0x32e740);},{'priority':'high'}),_0x4f43ad['on']('insertColumns',(_0x55b37a,_0xc2df57)=>{const [_0x3ded4f,_0x3a9012={}]=_0xc2df57;if(!_0x173ff9)return;const _0x314364=_0x3a9012['at']||0x0,_0x3ef3e9=_0x3a9012['columns']||0x1;_0x173ff9['columnInsertionIndexes']=new Array(_0x3ef3e9)['fill'](_0x314364)['map']((_0x238bf1,_0x20592f)=>_0x238bf1+_0x20592f);for(const {cell:_0xc25b42}of _0x4f43ad['createTableWalker'](_0x3ded4f,{'startColumn':_0x314364,'endColumn':_0x314364+_0x3ef3e9-0x1}))_0x173ff9['columnInsertionRanges']['push'](_0x330028['model']['createRangeOn'](_0xc25b42));},{'priority':'low'}),_0x4f43ad['on']('insertRows',(_0x255df1,_0x57db7c)=>{const [_0x11d2e9,_0xb8f4f4={}]=_0x57db7c;if(!_0x173ff9)return;const _0x26a301=_0xb8f4f4['at']||0x0,_0x581e16=_0xb8f4f4['rows']||0x1;_0x173ff9['rowInsertionIndexes']=new Array(_0x581e16)['fill'](_0x26a301)['map']((_0x3c4e04,_0x50988b)=>_0x3c4e04+_0x50988b);for(const {cell:_0xa9cce9}of _0x4f43ad['createTableWalker'](_0x11d2e9,{'startRow':_0x26a301,'endRow':_0x26a301+_0x581e16-0x1}))_0x173ff9['rowInsertionRanges']['push'](_0x330028['model']['createRangeOn'](_0xa9cce9));},{'priority':'low'}),_0x572f3f['descriptionFactory']['registerDescriptionCallback'](_0x21a142=>{if(_0x21a142['subType']&&_0x21a142['subType']['startsWith']('tablePaste'))return _0x21a142['previous']?{}:{'type':'insertion','content':o(_0x330028['locale'],'*Replace\x20table\x20cells*')};});const _0x2e3916=()=>!0x1;for(const _0x3af01b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x572f3f['_suggestionFactory']['registerCustomCallback']('insertion',_0x3af01b,'join',_0x2e3916),_0x572f3f['_suggestionFactory']['registerCustomCallback']('deletion',_0x3af01b,'join',_0x2e3916),_0x572f3f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3af01b,'join',_0x2e3916);_0x572f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2e3916),_0x572f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc42705,_0x67d63b,_0x9602e2)=>{const _0x3e6fa5=_0xc42705['map'](_0x4e3fee=>_0x4e3fee['getContainedElement']())['filter'](_0x1067d0=>_0x1067d0),_0x4eb9a3=new Map(_0x3e6fa5['map'](_0x9ae1f6=>[_0x9ae1f6,null]));if(_0x173ff9){for(const {element:_0x177cfa,attributes:_0x24c87c}of _0x173ff9['cells'])_0x24c87c&&_0x4eb9a3['set'](_0x177cfa,_0x24c87c);}else{if(_0x9602e2&&_0x9602e2['markerAttributes'])for(const [_0x2de9a8,_0x36c3c7]of Object['entries'](_0x9602e2['markerAttributes'])){const _0xada8bf=_0x330028['model']['markers']['get'](_0x2de9a8),_0x19311c=_0xada8bf?_0xada8bf['getRange']()['getContainedElement']():null;_0x19311c&&_0x4eb9a3['set'](_0x19311c,_0x36c3c7);}}_0x330028['model']['change'](_0xd7ae54=>{for(const [_0x149e43,_0x487f93]of _0x4eb9a3)_0xd7ae54['setAttributes']({...xe,..._0x487f93},_0x149e43);});});const _0x3617da=(_0x33d4ea,_0x3d62a2)=>{_0x572f3f['_suggestionFactory']['registerCustomCallback'](_0x33d4ea,'tablePaste',_0x3d62a2,(_0x263f53,_0x2b4eb6,_0x4f709a)=>{_0x330028['model']['change'](_0xb529de=>{const _0x54dbf1=[];for(const _0x47d302 of _0x263f53){const _0x45ef8d=_0x47d302['start']['nodeAfter'];_0x45ef8d['is']('element','tableCellSuggestion')&&_0x54dbf1['push'](_0x45ef8d);}_0x572f3f['_suggestionFactory']['getSuggestionCallback'](_0x33d4ea,null,_0x3d62a2)(_0x263f53,_0x2b4eb6,_0x4f709a);for(const _0x33f15c of _0x54dbf1)'$graveyard'!=_0x33f15c['root']['rootName']&&_0xb529de['unwrap'](_0x33f15c);});});};_0x3617da('insertion','accept'),_0x3617da('insertion','discard'),_0x3617da('deletion','accept'),_0x3617da('deletion','discard'),_0x572f3f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x254717=>{const _0x384c63=_0x254717['map'](_0xcb265b=>_0xcb265b['getContainedElement']()),_0x49808c=_0x384c63[0x0]['findAncestor']('table'),{minRow:_0x8adec9,maxRow:_0x5ef11a}=_0x20fd62['_getCoordsForCells'](_0x384c63);_0x4f43ad['removeRows'](_0x49808c,{'at':_0x8adec9,'rows':_0x5ef11a-_0x8adec9+0x1});}),_0x572f3f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x44f5d3=>{const _0x3a74fb=_0x44f5d3['map'](_0x43ddf8=>_0x43ddf8['getContainedElement']()),_0x57e9a9=_0x3a74fb[0x0]['findAncestor']('table'),{minColumn:_0x338428,maxColumn:_0x3cc0e7}=_0x20fd62['_getCoordsForCells'](_0x3a74fb);_0x4f43ad['removeColumns'](_0x57e9a9,{'at':_0x338428,'columns':_0x3cc0e7-_0x338428+0x1});});const _0x5d3fab=(_0x5b7653,_0x249bbd)=>{if(!_0x249bbd['subType']||!_0x249bbd['subType']['startsWith']('tablePaste'))return;const _0x4896bc=_0x249bbd['attributes']['tablePasteChainId'],_0x21e86d=_0x572f3f['getSuggestions']()['filter'](_0x161432=>_0x161432['isInContent']&&_0x161432['attributes']&&_0x161432['attributes']['tablePasteChainId']==_0x4896bc);_0x21e86d['length']&&_0x249bbd['getAllAdjacentSuggestions']()['length']!=_0x21e86d['length']&&_0x21e86d['reduce']((_0x484bbd,_0x4a0a38)=>(_0x484bbd['next']=_0x4a0a38,_0x4a0a38['previous']=_0x484bbd,_0x4a0a38));};function _0x17ad6d(_0x5574a6,_0x49fc57=!0x0){const {id:_0x1b3434,authorId:_0x27933f}=_0x572f3f['_splitMarkerName'](_0x5574a6['markerName']),_0x2cb85a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x7fc31d=_0x572f3f['activeMarkers']['includes'](_0x5574a6['markerName']);return _0x7fc31d&&_0x2cb85a['push']('ck-suggestion-marker--active'),{'classes':_0x2cb85a,'attributes':{'data-suggestion':_0x1b3434,'data-author-id':_0x27933f},'priority':_0x7fc31d&&_0x49fc57?0xbc2:0xbb8};}_0x572f3f['on']('suggestionLoaded',_0x5d3fab,{'priority':'high'}),_0x572f3f['on']('suggestionUnloaded',_0x5d3fab,{'priority':'high'}),_0x330028['model']['document']['registerPostFixer'](()=>{let _0x5a10b1=!0x1;const _0x315b90=Array['from'](_0x330028['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6f0e57,data:_0x1e0a7d}of _0x315b90){const {group:_0x465c11,type:_0x51396a,id:_0x42f14e}=_0x572f3f['_splitMarkerName'](_0x6f0e57);if('suggestion'!=_0x465c11||'deletion'!=_0x51396a||_0x1e0a7d['oldRange'])continue;if(!_0x572f3f['hasSuggestion'](_0x42f14e))continue;const _0x4fa37a=_0x572f3f['getSuggestion'](_0x42f14e)['getRanges'](),_0x5ab68c=_0x330028['plugins']['get']('Users')['me'];for(const _0x125cfd of _0x572f3f['getSuggestions']()){if(!_0x125cfd['isInContent']||_0x125cfd['author']!=_0x5ab68c)continue;if('formatBlock'!=_0x125cfd['type']||'tablePasteCell'!=_0x125cfd['subType'])continue;if(_0x125cfd['getRanges']()['every'](_0x246e5d=>_0x4fa37a['some'](_0x4ac829=>_0x4ac829['containsRange'](_0x246e5d,!0x0)))){for(const _0x4d2a96 of _0x125cfd['getAllAdjacentSuggestions']())_0x4d2a96['isInContent']&&(_0x4d2a96['discard'](),_0x5a10b1=!0x0);}}}return _0x5a10b1;}),_0x330028['model']['document']['registerPostFixer'](_0x37e295=>{const _0x4a7146=_0x330028['commands']['get']('redo');if(!_0x4a7146||!_0x4a7146['_createdBatches']['has'](_0x37e295['batch']))return!0x1;let _0xbcfb4=!0x1;const _0x551e2d=_0x330028['plugins']['get']('Users')['me'],_0x5129e2=_0x330028['model']['document']['differ']['getChanges'](),_0x4fcdb4=Array['from'](_0x330028['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3bb2b9,data:_0x344fba})=>{const {group:_0x137f9d,subType:_0x5d9929,authorId:_0x1084bf}=_0x572f3f['_splitMarkerName'](_0x3bb2b9);return'suggestion'==_0x137f9d&&'tablePaste'==_0x5d9929&&_0x1084bf==_0x551e2d['id']&&!_0x344fba['oldRange'];});for(const _0x56ccd3 of _0x5129e2){if('insert'!=_0x56ccd3['type']||'tableCellSuggestion'!=_0x56ccd3['name']||0x1!=_0x56ccd3['length'])continue;const _0x5a4cdc=_0x37e295['createRange'](_0x56ccd3['position'],_0x56ccd3['position']['getShiftedBy'](0x1));if(!_0x4fcdb4['find'](({data:_0x173e90})=>_0x173e90['newRange']['isEqual'](_0x5a4cdc))){for(const {name:_0x58b0f1,data:_0x45f370}of _0x4fcdb4)if(_0x5a4cdc['containsRange'](_0x45f370['newRange'])){_0x37e295['updateMarker'](_0x58b0f1,{'range':_0x5a4cdc}),_0xbcfb4=!0x0;break;}}}return _0xbcfb4;}),_0x330028['model']['document']['registerPostFixer'](_0x361865=>{let _0x4917d1=!0x1;const _0x38bdde=_0x330028['plugins']['get']('Users')['me'],_0x22cfc8=_0x572f3f['getSuggestions']()['filter'](_0x566898=>_0x566898['isInContent']&&_0x566898['author']==_0x38bdde),_0x2b3f07=new Set(),_0x36c033=new Set();for(const _0x30a3b4 of _0x22cfc8)if('tablePaste'==_0x30a3b4['subType'])for(const _0x4e2d63 of _0x30a3b4['getMarkers']()){const _0x29f9a5=_0x4e2d63['getRange']()['getContainedElement']();if(_0x29f9a5){if(_0x29f9a5['is']('element','tableCellSuggestion')&&Oe(_0x29f9a5)){_0x30a3b4['removeMarker'](_0x4e2d63['name']),_0x2b3f07['add'](_0x29f9a5),_0x4917d1=!0x0;const _0xa80b2c=_0x29f9a5['nextSibling'],_0x78cf2c=_0x29f9a5['previousSibling'],_0x50b225=_0xa80b2c&&_0xa80b2c['is']('element','tableCellSuggestion'),_0x58981c=_0x78cf2c&&_0x78cf2c['is']('element','tableCellSuggestion');_0x50b225&&!_0x2b3f07['has'](_0xa80b2c)&&_0x36c033['add'](_0xa80b2c),_0x58981c&&!_0x2b3f07['has'](_0x78cf2c)&&_0x36c033['add'](_0x78cf2c);}else _0x29f9a5['is']('element','paragraph')&&_0x29f9a5['isEmpty']&&(_0x30a3b4['removeMarker'](_0x4e2d63['name']),_0x4917d1=!0x0);}}else{if('tablePasteCell'==_0x30a3b4['subType']){if(!_0x30a3b4['attributes']||!_0x30a3b4['attributes']['tablePasteChainId'])continue;const _0x5783f1=_0x30a3b4['attributes']['markerAttributes'];if(_0x5783f1&&Object['keys'](_0x5783f1)['length'])continue;const _0x339072=_0x30a3b4['attributes']['tablePasteChainId'];let _0xe89689=!0x0,_0x43f1ce=!0x0;for(const _0x57fb01 of _0x22cfc8)if(_0x57fb01['subType']&&_0x57fb01['subType']['startsWith']('tablePaste')){if(!_0x57fb01['attributes']['tablePasteChainId']){_0x43f1ce=!0x1;break;}if(_0x57fb01['id']!=_0x30a3b4['id']&&_0x57fb01['attributes']['tablePasteChainId']==_0x339072){_0xe89689=!0x1;break;}}_0x43f1ce&&_0xe89689&&(_0x30a3b4['removeMarkers'](),_0x4917d1=!0x0);}}for(const _0x3f2870 of _0x2b3f07)_0x361865['remove'](_0x3f2870);for(const _0x32a988 of _0x36c033)_0x361865['unwrap'](_0x32a988);return _0x4917d1;}),_0x330028['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5ab6f0=>_0x17ad6d(_0x5ab6f0),'converterPriority':'high'}),_0x330028['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x471f2c,_0x94ac51)=>_0x94ac51['options']['showSuggestionHighlights']?_0x17ad6d(_0x471f2c,!0x1):null,'converterPriority':'high'});const _0x52d4d4=_0x330028['editing']['view'];this['listenTo'](_0x52d4d4['document'],'clipboardOutput',(_0x158689,_0x1bcd83)=>{const _0xba3a9d=[];for(const _0x5cb827 of _0x52d4d4['createRangeIn'](_0x1bcd83['content'])['getItems']())_0x5cb827['is']('element','suggestion-td')&&_0xba3a9d['push'](_0x5cb827);_0x52d4d4['change'](_0x4eea5c=>{for(const _0x3c50b4 of _0xba3a9d)_0x4eea5c['move'](_0x4eea5c['createRangeIn'](_0x3c50b4),_0x4eea5c['createPositionBefore'](_0x3c50b4)),_0x4eea5c['remove'](_0x3c50b4);});});}}function Oe(_0x540dbf){if(_0x540dbf['isEmpty'])return!0x0;const _0x3f4152=_0x540dbf['getChild'](0x0);return _0x3f4152['is']('element','paragraph')&&_0x3f4152['isEmpty'];}function Ue(_0x48359b,_0x14f4b9={},_0x2742f1){for(const {isAnchor:_0x5ccc15,cellHeight:_0x3611f7,cellWidth:_0x1f60c8}of _0x2742f1['createTableWalker'](_0x48359b,{'includeAllSlots':!0x0,..._0x14f4b9}))if(!_0x5ccc15||0x1!=_0x3611f7||0x1!=_0x1f60c8)return!0x1;return!0x0;}class Dt extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f3c4e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f3c4e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f3c4e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f3c4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f3c4e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f3c4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f3c4e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x14eb9b,_0x238482){const _0x1ab068=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169c18=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39499e=_0x238482['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x555d40=_0x169c18['getColumnGroupElement'](_0x39499e);let _0xf605b4=_0x555d40?_0x169c18['getTableColumnsWidths'](_0x555d40):null,_0x3e3a57=_0x39499e['getAttribute']('tableWidth')||null;const _0x23a182=_0x238482['tableWidth']||_0x3e3a57,_0x361836=_0x238482['columnWidths']||_0xf605b4,_0x2dafd5=this['editor']['plugins']['get']('Users')['me'];for(const _0x171dc1 of _0x1ab068['getSuggestions']()){const _0x28bbd6=_0x171dc1['getContainedElement']();if('resizeTable'===_0x171dc1['subType']&&_0x28bbd6===_0x39499e){_0x171dc1['author']!==_0x2dafd5&&_0x171dc1['discard']();const _0x2efc52=_0x171dc1['data']['commandParams'];_0x3e3a57=_0x2efc52[0x0]['tableWidth'],_0xf605b4=_0x2efc52[0x0]['columnWidths'];break;}}_0x14eb9b({'table':_0x39499e,'tableWidth':_0x23a182,'columnWidths':_0x361836}),_0x1ab068['markBlockFormat'](_0x39499e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3e3a57,'columnWidths':_0xf605b4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x8bb0bc){if('formatBlock'!=_0x8bb0bc['type']&&'formatInline'!=_0x8bb0bc['type'])return;const {data:_0x41fcc6}=_0x8bb0bc;if(_0x41fcc6&&'resizeTable'===_0x41fcc6['formatGroupId']){const _0x2cffe2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2cffe2)};}}}class Mt extends _0xeec5ec{['afterInit'](){const _0x5434ae=this['editor'];_0x5434ae['plugins']['has']('Template')&&_0x5434ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xeec5ec{['afterInit'](){const _0x618b71=this['editor'];if(!_0x618b71['commands']['get']('insertTableOfContents'))return;_0x618b71['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a78cc=_0x618b71['plugins']['get']('TrackChangesEditing'),_0x47433b=_0x618b71['locale'];_0x1a78cc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1eb100=>o(_0x47433b,'ELEMENT_TABLE_OF_CONTENTS',_0x1eb100));}}class Bt extends _0xeec5ec{['afterInit'](){const _0x339c25=this['editor'];if(!_0x339c25['plugins']['has']('Title'))return;const _0x1d67b6=_0x339c25['plugins']['get']('TrackChangesEditing');_0x1d67b6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x339c25['locale'],'ELEMENT_TITLE')),_0x339c25['model']['document']['registerPostFixer'](_0x31dfe6=>{let _0x4fff3b=!0x1;const _0x15bd29=Array['from'](_0x339c25['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ef198,data:_0x738d0b}of _0x15bd29){const {group:_0x6c3628}=_0x1d67b6['_splitMarkerName'](_0x4ef198);if('suggestion'!==_0x6c3628||!_0x738d0b['newRange'])continue;const _0x44a23d=_0x738d0b['newRange'],_0x4a5780=_0x44a23d['end']['nodeBefore'];if(!_0x4a5780||!_0x4a5780['is']('element','title-content'))continue;if(!_0x44a23d['start']['isTouching'](_0x44a23d['end']))continue;const _0x52e7cc=_0x339c25['model']['schema']['getNearestSelectionRange'](_0x44a23d['end'],'forward');if(_0x52e7cc&&_0x52e7cc['isCollapsed']){const _0x55b2ed=_0x31dfe6['createRange'](_0x44a23d['start'],_0x52e7cc['start']);_0x55b2ed['isEqual'](_0x44a23d)||(_0x31dfe6['updateMarker'](_0x4ef198,{'range':_0x55b2ed}),_0x4fff3b=!0x0);}_0x4fff3b||(_0x31dfe6['removeMarker'](_0x4ef198),_0x4fff3b=!0x0);}return _0x4fff3b;});}}class Tt extends _0xeec5ec{['afterInit'](){const _0x31356d=this['editor'],_0x22d79c=_0x31356d['plugins']['get']('TrackChangesEditing');_0x31356d['plugins']['has']('Uploadcare')&&(_0x22d79c['enableCommand']('uploadcare'),_0x31356d['plugins']['has']('UploadcareImageEdit')&&(_0x22d79c['enableCommand']('uploadcareImageEdit'),_0x22d79c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x22d79c['registerBlockAttribute']('uploadcareImageId'),_0x22d79c['descriptionFactory']['registerDescriptionCallback'](_0x4e2e6e=>{if('attribute'!=_0x4e2e6e['type'])return;const {data:_0x95f1ef}=_0x4e2e6e;return _0x95f1ef&&'uploadcareImageId'==_0x95f1ef['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xeec5ec{['afterInit'](){const _0x40f486=this['editor'],_0x1d2e5a=_0x40f486['plugins']['get']('TrackChangesEditing');_0x40f486['plugins']['has']('UndoEditing')&&(_0x1d2e5a['enableCommand']('undo'),_0x1d2e5a['enableCommand']('redo'));}}class Ot extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x382e7c=this['editor'];if(!_0x382e7c['plugins']['has']('TableCaptionEditing'))return;_0x382e7c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xeec5ec{['tableProperties'];['tableCellProperties'];constructor(_0x4e2497){super(_0x4e2497),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x494ed0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a6df2 of this['tableProperties'])_0x494ed0['enableCommand'](_0x1a6df2,(_0x5fe825,_0x349dfe)=>{const _0x5311eb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a6df2,[_0x5311eb],this['tableProperties'],'tableProperties',_0x5fe825,_0x349dfe);});_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x494ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x124228,_0x5d213f)=>this['handleDiscardAction'](this['tableProperties'],_0x124228,_0x5d213f)),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6c3cb4 of this['tableCellProperties'])_0x494ed0['enableCommand'](_0x6c3cb4,(_0x18ea1d,_0x321732)=>{const _0x108783=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6c3cb4,_0x108783,this['tableCellProperties'],'tableCellProperties',_0x18ea1d,_0x321732);});_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x494ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33b266,_0x8b4b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33b266,_0x8b4b)),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x494ed0['descriptionFactory']['registerDescriptionCallback'](_0x135e8f=>this['handleSuggestionDescription'](_0x135e8f));}['_handlePropertyChange'](_0x253cf4,_0x52bfb6,_0x1f316d,_0x5bfad5,_0x20ff4b,_0x4ebd1a){const _0x3cde15=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ebd1a['batch'],()=>{for(const _0xbbb5c0 of _0x52bfb6){if(this['_getSuggestion'](_0xbbb5c0,_0x5bfad5))_0x20ff4b(_0x4ebd1a);else{const _0x11b1f6={};for(const _0x149965 of _0x1f316d){const _0x28e781=_0xbbb5c0['getAttribute'](_0x149965);void 0x0!==_0x28e781&&(_0x11b1f6[_0x149965]=_0x28e781);}_0x20ff4b(_0x4ebd1a),_0x3cde15['markBlockFormat'](_0xbbb5c0,{'commandParams':[_0x11b1f6]},[],_0x5bfad5);}}});}['handleDiscardAction'](_0x4675c3,_0x437b20,_0x5eea7f){const _0x179840=_0x437b20[0x0]['start']['nodeAfter'],_0x57b881=_0x5eea7f['commandParams'][0x0];this['editor']['model']['change'](_0x150d90=>{for(const _0x470d56 of _0x4675c3)void 0x0!==_0x57b881[_0x470d56]?_0x150d90['setAttribute'](_0x470d56,_0x57b881[_0x470d56],_0x179840):_0x150d90['removeAttribute'](_0x470d56,_0x179840);});}['handleSuggestionDescription'](_0x591269){if(_0x591269['data'])switch(_0x591269['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x19c5ee,_0x561605){const _0x4f6c8b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2a2695 of _0x4f6c8b['getSuggestions']({'skipNotAttached':!0x0})){const _0x41502b=_0x2a2695['getContainedElement']();if(_0x2a2695['subType']===_0x561605&&_0x41502b===_0x19c5ee)return _0x2a2695;}return null;}}class Rt extends _0xeec5ec{['afterInit'](){const _0x2686a7=this['editor'];if(!_0x2686a7['plugins']['has']('LineHeight'))return;const _0x3058b8=_0x2686a7['plugins']['get']('TrackChangesEditing'),_0x392295=_0x2686a7['locale'];_0x3058b8['enableDefaultAttributesIntegration']('lineHeight'),_0x3058b8['registerBlockAttribute']('lineHeight'),_0x3058b8['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x392295,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xeec5ec{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x29227a,_0x2bc2b6,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x445fa7){super(_0x445fa7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x337f66,_0x51c3ab,_0x10375b,_0x7ef6c6)=>{this['_model']['change'](()=>{for(const _0x4452a6 of[..._0x7ef6c6,..._0x10375b])this['_model']['markers']['has'](_0x4452a6)&&_0x445fa7['editing']['reconvertMarker'](_0x4452a6);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x445fa7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x445fa7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x445fa7['config']['get']('trackChanges.trackFormatChanges'),_0x445fa7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x445fa7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x445fa7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2295d7=this['editor'],_0x464537=(_0x412547,_0x44bc95)=>{if('attribute'!=_0x412547)return'ck-suggestion-marker-'+_0x412547;const _0x4f5dc6=_0x44bc95['split']('|')[0x0];return this['_isBlockAttribute'](_0x4f5dc6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2295d7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x573220=>{const {id:_0x3c9454,authorId:_0x2d8752,type:_0x54a4a8,subType:_0x5480f7}=this['_splitMarkerName'](_0x573220['markerName']),_0x39d6e8=['ck-suggestion-marker',_0x464537(_0x54a4a8,_0x5480f7)];let _0x554462=0xbb8;return this['activeMarkers']['includes'](_0x573220['markerName'])&&(_0x39d6e8['push']('ck-suggestion-marker--active'),_0x554462=0xbc2),'deletion'==_0x54a4a8&&(_0x554462+=0x5),{'classes':_0x39d6e8,'attributes':{'data-suggestion':_0x3c9454,'data-author-id':_0x2d8752},'priority':_0x554462};}}),_0x2295d7['conversion']['for']('dataDowncast')['add'](_0x2f637d=>{_0x2f637d['on']('addMarker:suggestion',(_0x1fa711,_0x294452,_0x3c440f)=>{if(!_0x3c440f['options']['showSuggestionHighlights'])return;const _0x2bc075=_0x294452['item'];if(!_0x2bc075)return;const _0x3217c6=_0x3c440f['mapper']['toViewElement'](_0x2bc075);_0x2295d7['model']['schema']['isObject'](_0x2bc075)&&_0x3217c6&&!_0x3217c6['getCustomProperty']('widget')&&_0x3217c6['is']('containerElement')&&_0x2a9ce6(_0x3217c6,_0x3c440f['writer']);},{'priority':'high'});}),_0x2295d7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xaceb84,_0x575429)=>{if(!_0x575429['options']['showSuggestionHighlights'])return null;const {id:_0x3f2ad6,authorId:_0x290a69,type:_0x754654,subType:_0x4ea75f}=this['_splitMarkerName'](_0xaceb84['markerName']);return{'classes':['ck-suggestion-marker',_0x464537(_0x754654,_0x4ea75f)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3f2ad6,'data-author-id':_0x290a69}};}});const _0x4da9a6=({showActiveMarkers:_0x59d088=!0x0,isAttributeSuggestion:_0x1190ed=!0x1}={})=>(_0x1a2890,_0x4a17cc,_0x38fdfd)=>{if(!_0x4a17cc['item'])return;const {id:_0x27eeb6,authorId:_0x3f3ad9}=this['_splitMarkerName'](_0x4a17cc['markerName']);if(_0x1190ed){const _0x546f78=this['_suggestions']['get'](_0x27eeb6),_0x294f65=this['_getAttributeKey'](_0x546f78);if(!this['_isBlockAttribute'](_0x294f65))return;}if(_0x4a17cc['item']['is']('selection'))return void _0x38fdfd['consumable']['consume'](_0x4a17cc['item'],_0x1a2890['name']);const _0x277f5c=_0x38fdfd['mapper']['toViewElement'](_0x4a17cc['item']);if(_0x4a17cc['item']['is']('element')&&_0x2295d7['model']['schema']['isBlock'](_0x4a17cc['item'])&&!_0x277f5c['getCustomProperty']('addHighlight')){_0x38fdfd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x277f5c),_0x38fdfd['writer']['setAttribute']('data-suggestion',_0x27eeb6,_0x277f5c),_0x38fdfd['writer']['setAttribute']('data-author-id',_0x3f3ad9,_0x277f5c),_0x38fdfd['mapper']['bindElementToMarker'](_0x277f5c,_0x4a17cc['markerName']),_0x59d088&&(this['activeMarkers']['includes'](_0x4a17cc['markerName'])?_0x38fdfd['writer']['addClass']('ck-suggestion-marker--active',_0x277f5c):_0x38fdfd['writer']['removeClass']('ck-suggestion-marker--active',_0x277f5c));for(const _0xdba5a5 of _0x2295d7['model']['createRangeIn'](_0x4a17cc['item'])['getItems']())_0x38fdfd['consumable']['consume'](_0xdba5a5,_0x1a2890['name']);_0x38fdfd['consumable']['consume'](_0x4a17cc['item'],_0x1a2890['name']);}};_0x2295d7['conversion']['for']('dataDowncast')['add'](_0x80e99=>{_0x80e99['on']('addMarker:suggestion:formatBlock',(_0x28c589,_0x58d507,_0x5db884)=>{_0x5db884['options']['showSuggestionHighlights']&&_0x4da9a6({'showActiveMarkers':!0x1})(_0x28c589,_0x58d507,_0x5db884);},{'priority':'highest'});}),_0x2295d7['conversion']['for']('dataDowncast')['add'](_0x57a6e1=>{_0x57a6e1['on']('addMarker:suggestion:attribute',(_0x43a09e,_0x564ebb,_0x240c4d)=>{_0x240c4d['options']['showSuggestionHighlights']&&_0x4da9a6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x43a09e,_0x564ebb,_0x240c4d);},{'priority':'highest'});}),_0x2295d7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17d5d1,_0x5c82a7)=>{if(_0x5c82a7['options']['showSuggestionHighlights']){const {id:_0x10ce4b,authorId:_0x2a44d0}=this['_splitMarkerName'](_0x17d5d1);return _0x17d5d1['includes'](':split')||_0x17d5d1['includes'](':merge')?{'group':'suggestion','name':_0x17d5d1['substr'](0xb),'attributes':{'data-suggestion':_0x10ce4b,'data-author-id':_0x2a44d0}}:null;}return{'group':'suggestion','name':_0x17d5d1['substr'](0xb)};}}),_0x2295d7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe4ba07,{writer:_0x4c35fa})=>{let _0x3cae24='suggestion:'+_0xe4ba07['getAttribute']('suggestion-type')+':'+_0xe4ba07['getAttribute']('id');return _0xe4ba07['getAttribute']('marker-count')&&(_0x3cae24+=':'+_0xe4ba07['getAttribute']('marker-count')),_0x4c35fa['createElement']('$marker',{'data-name':_0x3cae24});}}),_0x2295d7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x50e2f4=>{_0x50e2f4['on']('addMarker:suggestion:formatBlock',_0x4da9a6(),{'priority':'high'});}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x3b7af3=>{_0x3b7af3['on']('addMarker:suggestion:attribute',_0x4da9a6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x442aa2=>{_0x442aa2['on']('removeMarker:suggestion:formatBlock',(_0x5bd576,_0x1096c2,_0x420125)=>{const _0x44e537=_0x420125['mapper']['markerNameToElements'](_0x1096c2['markerName']);if(_0x44e537){for(const _0x1be645 of _0x44e537)_0x1be645['getCustomProperty']('addHighlight')||(_0x420125['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1be645),_0x420125['writer']['removeAttribute']('data-suggestion',_0x1be645),_0x420125['writer']['removeAttribute']('data-author-id',_0x1be645),_0x420125['mapper']['unbindElementFromMarkerName'](_0x1be645,_0x1096c2['markerName']));}},{'priority':'high'});}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x5b4e01=>{_0x5b4e01['on']('removeMarker:suggestion:attribute',(_0x1550af,_0x1a52e7,_0x503e14)=>{const _0x51715a=_0x503e14['mapper']['markerNameToElements'](_0x1a52e7['markerName']);if(!_0x51715a)return;const {id:_0x3b154a}=this['_splitMarkerName'](_0x1a52e7['markerName']),_0x1c4a76=this['_suggestions']['get'](_0x3b154a),_0x5c33eb=this['_getAttributeKey'](_0x1c4a76);if(this['_isBlockAttribute'](_0x5c33eb)){for(const _0x3c2b7e of _0x51715a)_0x3c2b7e['getCustomProperty']('addHighlight')||(_0x503e14['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c2b7e),_0x503e14['writer']['removeAttribute']('data-suggestion',_0x3c2b7e),_0x503e14['writer']['removeAttribute']('data-author-id',_0x3c2b7e),_0x503e14['mapper']['unbindElementFromMarkerName'](_0x3c2b7e,_0x1a52e7['markerName']));}},{'priority':'high'});}),_0x2295d7['model']['document']['registerPostFixer'](_0x13db05=>{let _0x484962=!0x1;const _0x41c954=Array['from'](_0x2295d7['model']['document']['differ']['getChangedMarkers']()),_0x3baced=new Set();for(const {name:_0x3ef184,data:_0x171301}of _0x41c954){const {group:_0x350972,type:_0x5794f3,subType:_0x5f1024,id:_0x3832cd}=this['_splitMarkerName'](_0x3ef184);if('suggestion'!==_0x350972)continue;const _0x700dce=this['_suggestions']['get'](_0x3832cd);if(null!=_0x171301['newRange']){'formatInline'==_0x5794f3&&(_0x484962=_0x484962||Gt(_0x171301['newRange'],_0x3ef184,_0x13db05,_0x2295d7['model']['schema']));const _0x552809='attribute'==_0x5794f3&&this['_isBlockAttribute'](_0x5f1024['split']('|')[0x0]);if(_0x171301['newRange']['isCollapsed']||'$graveyard'==_0x171301['newRange']['root']['rootName']||'formatBlock'==_0x5794f3&&!Jt(_0x171301['newRange'])||_0x552809&&!Jt(_0x171301['newRange'])||'deletion'==_0x5794f3&&!Kt(_0x171301['newRange']))_0x13db05['removeMarker'](_0x3ef184),_0x484962=!0x0;else{if(!_0x700dce||!_0x700dce['isInContent'])continue;if(_0x171301['newRange']&&_0x171301['oldRange']&&_0x171301['newRange']['isEqual'](_0x171301['oldRange']))continue;_0x3baced['add'](_0x700dce);}}}return _0x3baced['size']>0x0&&(_0x484962=!!this['_joinWithAdjacentSuggestions'](_0x3baced)||_0x484962),_0x484962;}),_0x2295d7['model']['document']['registerPostFixer'](_0x3eb987=>{let _0x4dbb7d=!0x1;for(const _0x2a509d of _0x2295d7['model']['document']['differ']['getChanges']())if('insert'==_0x2a509d['type'])for(const _0x46cf4b of this['_suggestions']['values']()){if(_0x46cf4b['isMultiRange']||!_0x46cf4b['isInContent'])continue;const _0x507418='formatBlock'==_0x46cf4b['type'],_0x2545bf=this['_getAttributeKey'](_0x46cf4b),_0x153306=_0x2545bf&&this['_isBlockAttribute'](_0x2545bf);if(!_0x507418&&!_0x153306)continue;const _0x55de90=_0x46cf4b['getFirstRange']();if(_0x55de90['start']['parent']!=_0x55de90['end']['parent']&&!_0x55de90['end']['isAtEnd']){const _0x2ba49e=_0x2295d7['model']['createPositionAt'](_0x55de90['start']['nodeAfter'],'end'),_0x2d5239=_0x2295d7['model']['createRange'](_0x55de90['start'],_0x2ba49e);_0x3eb987['updateMarker'](_0x46cf4b['getFirstMarker'](),{'range':_0x2d5239}),_0x4dbb7d=!0x0;}}return _0x4dbb7d;}),_0x2295d7['model']['document']['registerPostFixer'](_0x484bad=>this['_processAttributeChanges'](_0x484bad)),_0x2295d7['model']['document']['registerPostFixer'](_0xc0ace7=>!_0xc0ace7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xc0ace7)),_0x2295d7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2295d7['model']['document']['on']('change:data',(_0x42a973,_0x5116b8)=>{if(!_0x5116b8['isLocal']||_0x5116b8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xc3a068=_0x2295d7['model']['document']['differ']['getChanges']();if(0x0==_0xc3a068['length'])return;const _0x2c21b5=[],_0x260e3b=_0xc3a068['filter'](_0x2a66f6=>'attribute'==_0x2a66f6['type']),_0x325bc5=_0xc3a068['filter'](_0x3d7120=>'insert'==_0x3d7120['type']&&'$text'!=_0x3d7120['name']);for(const _0x22d004 of _0x260e3b)this['_isRegisteredAttribute'](_0x22d004['attributeKey'])&&_0x2c21b5['push']({'key':_0x22d004['attributeKey'],'newValue':_0x22d004['attributeNewValue'],'oldValue':_0x22d004['attributeOldValue'],'range':Ht(_0x22d004['range'],_0x2295d7['model'])});for(const _0x3d2ba5 of _0x325bc5){if('rename'!=_0x3d2ba5['action']&&'refresh'!=_0x3d2ba5['action'])continue;const _0x3b3f71=qt(_0x3d2ba5['position']['nodeAfter'],_0x2295d7['model']),_0x649bdb=_0x3d2ba5['before'];'rename'==_0x3d2ba5['action']&&_0x2c21b5['push']({'key':m,'newValue':_0x3d2ba5['name'],'oldValue':_0x649bdb['name'],'range':_0x3b3f71});for(const [_0x2c46d6,_0x2b8ce8]of _0x649bdb['attributes']){if(!this['_isRegisteredAttribute'](_0x2c46d6))continue;const _0x4d1810=_0x3d2ba5['attributes']['get'](_0x2c46d6);_0x2b8ce8!==_0x4d1810&&_0x2c21b5['push']({'key':_0x2c46d6,'newValue':_0x4d1810,'oldValue':_0x2b8ce8,'range':_0x3b3f71});}for(const [_0x2d0303,_0x400a60]of _0x3d2ba5['attributes'])this['_isRegisteredAttribute'](_0x2d0303)&&(_0x649bdb['attributes']['has'](_0x2d0303)||_0x2c21b5['push']({'key':_0x2d0303,'newValue':_0x400a60,'oldValue':null,'range':_0x3b3f71}));}0x0!=_0x2c21b5['length']&&_0x2295d7['model']['enqueueChange'](_0x5116b8,_0x3a9068=>{const _0x86e8d1=_0x1a8355();for(const {range:_0x415b29,key:_0x1981b3,oldValue:_0x21d1a6,newValue:_0x411a21}of _0x2c21b5)this['markAttributeChange'](_0x415b29,_0x1981b3,_0x21d1a6,_0x411a21,{'groupId':_0x86e8d1});this['_reduceExistingSuggestions'](_0x3a9068,_0x2c21b5);});},{'priority':'lowest'}),_0x2295d7['model']['markers']['on']('update:suggestion',(_0x5072a4,_0xf06914,_0x17c30c)=>{if(null==_0x17c30c){const {id:_0x25d1d1}=this['_splitMarkerName'](_0xf06914['name']),_0x42f6cb=this['_suggestions']['get'](_0x25d1d1);_0x42f6cb&&_0x42f6cb['addMarkerName'](_0xf06914['name']);}}),_0x2295d7['model']['document']['on']('change:data',()=>{const _0x10cac0=Array['from'](_0x2295d7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x328930=>'suggestion'===this['_splitMarkerName'](_0x328930['name'])['group']);if(0x0===_0x10cac0['length'])return;_0x10cac0['sort']((_0x3775ce,_0x255779)=>{const _0x4e0ffd=_0x3775ce['data']['oldRange'],_0x142cf8=_0x255779['data']['oldRange'];return null===_0x4e0ffd&&null===_0x142cf8?0x0:null===_0x4e0ffd&&null!==_0x142cf8?-0x1:null!==_0x4e0ffd&&null===_0x142cf8?0x1:_0x4e0ffd['start']['isBefore'](_0x142cf8['start'])?-0x1:0x1;});const _0x6fa702=new Set(),_0x264135=new Set();for(const {name:_0x379b33,data:_0x22a65b}of _0x10cac0){const {id:_0x39b50f}=this['_splitMarkerName'](_0x379b33);if(null===_0x22a65b['oldRange']){const _0x608ccd=this['_handleNewSuggestionMarker'](_0x379b33);_0x264135['add'](_0x608ccd);}else{const _0x1a4f79=this['_suggestions']['get'](_0x39b50f);null!==_0x22a65b['newRange']||_0x1a4f79['isInContent']?(_0x6fa702['add'](_0x1a4f79['head']),_0x264135['add'](_0x1a4f79)):this['_removeSuggestion'](_0x1a4f79);}}_0x264135['size']>0x0&&this['_refreshSuggestionsChain'](_0x264135);for(const _0x507968 of _0x6fa702)this['fire']('suggestionChanged',_0x507968);}),_0x2295d7['model']['on']('applyOperation',(_0x4a19b1,_0x896457)=>{const _0x3edffa=_0x896457[0x0];if(!this['_suggestions']['size'])return;if(!_0x3edffa['isDocumentOperation'])return;if(_0x3edffa['batch']['isUndo']||!_0x3edffa['batch']['isLocal'])return;let _0x44552c,_0xc62e01;switch(_0x3edffa['type']){case'insert':_0x44552c=_0x2295d7['model']['createPositionAt'](_0x3edffa['position']),_0xc62e01=_0x44552c['getShiftedBy'](_0x3edffa['howMany']);break;case'split':_0x44552c=_0x2295d7['model']['createPositionAt'](_0x3edffa['splitPosition']),_0xc62e01=_0x2295d7['model']['createPositionAt'](_0x3edffa['moveTargetPosition']);break;case'move':_0x44552c=_0x2295d7['model']['createPositionAt'](_0x3edffa['targetPosition']),_0xc62e01=_0x44552c['getShiftedBy'](_0x3edffa['howMany']);break;default:return;}const _0x5daaa9=_0x2295d7['model']['createRange'](_0x44552c,_0xc62e01);_0x2295d7['model']['change'](()=>{for(const {suggestion:_0x399ff3,meta:_0x34644c}of this['_findSuggestions'](_0x5daaa9)){if(_0x399ff3['isMultiRange'])continue;if('formatInline'==_0x399ff3['type'])continue;const _0x525895=this['_getAttributeKey'](_0x399ff3);if(_0x525895&&this['_isBlockAttribute'](_0x525895)&&'split'!=_0x3edffa['type'])continue;const _0x3eeedf=_0x399ff3['data']&&_0x399ff3['data']['multipleBlocks'];('formatBlock'!=_0x399ff3['type']||'split'==_0x3edffa['type']&&!_0x3eeedf)&&(_0x34644c['containsRangeInObject']||'insertion'==_0x399ff3['type']&&_0x34644c['isOwn']||_0x399ff3['getFirstRange']()['containsRange'](_0x5daaa9)&&this['_breakSuggestionMarker'](_0x399ff3,_0x44552c,_0xc62e01));}});},{'priority':'lowest'}),_0x2295d7['model']['on']('deleteContent',(_0x344016,_0x1290f4)=>{const _0x45aee8=_0x1290f4[0x0],_0x528645=_0x1290f4[0x1];if(_0x528645&&_0x528645['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x45aee8['isCollapsed'])return;const _0x7fc3f1=_0x2295d7['model']['schema'],{start:_0x694fee,end:_0x2107e7}=_0x45aee8['getFirstRange'](),_0x28e189=_0x694fee['nodeAfter']&&_0x7fc3f1['isLimit'](_0x694fee['nodeAfter'])?null:_0x7fc3f1['getNearestSelectionRange'](_0x694fee,'forward'),_0x5cdd19=_0x2107e7['nodeBefore']&&_0x7fc3f1['isLimit'](_0x2107e7['nodeBefore'])?null:_0x7fc3f1['getNearestSelectionRange'](_0x2107e7,'backward'),_0x214efa=_0x2295d7['model']['createRange'](_0x28e189?_0x28e189['start']:_0x694fee,_0x5cdd19?_0x5cdd19['end']:_0x2107e7);_0x2295d7['model']['change'](_0x2d9df5=>{this['markDeletion'](_0x214efa);const _0xd15fc2=_0x2295d7['model']['schema']['getNearestSelectionRange'](_0x214efa['start']);_0x45aee8['is']('documentSelection')?_0x2d9df5['setSelection'](_0xd15fc2):_0x45aee8['setTo'](_0xd15fc2);}),_0x344016['stop']();},{'priority':_0x16cc49['normal']+0xa}),_0x2295d7['model']['on']('insertContent',(_0x1cbb26,_0x5055af)=>{const _0x43f403=_0x5055af[_0x5055af['length']-0x1];_0x43f403&&_0x43f403['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2295d7['model']['change'](()=>{let _0x4a3611=_0x2295d7['model']['insertContent'](_0x5055af[0x0],_0x5055af[0x1],_0x5055af[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a3611)return;_0x1cbb26['return']=_0x4a3611['clone']();const _0x296af7=_0x4a3611['end']['nodeBefore'],_0x5029af=_0x2295d7['model']['schema'];_0x296af7&&_0x5029af['isBlock'](_0x296af7)&&!_0x5029af['isObject'](_0x296af7)&&(_0x4a3611=_0x2295d7['model']['createRange'](_0x4a3611['start'],_0x2295d7['model']['createPositionAt'](_0x296af7,'end'))),this['markInsertion'](_0x4a3611);}),_0x1cbb26['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf94348=new D(_0x2295d7,this['_suggestions']);_0x2295d7['commands']['add']('acceptSuggestion',_0xf94348),this['enableCommand']('acceptSuggestion');const _0x4c0f43=new M(_0x2295d7,this['_suggestions']);_0x2295d7['commands']['add']('discardSuggestion',_0x4c0f43),this['enableCommand']('discardSuggestion'),_0x2295d7['commands']['add']('acceptAllSuggestions',new $(_0x2295d7,_0xf94348,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2295d7['commands']['add']('discardAllSuggestions',new $(_0x2295d7,_0x4c0f43,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2295d7['commands']['add']('acceptSelectedSuggestions',new B(_0x2295d7,_0xf94348,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2295d7['commands']['add']('discardSelectedSuggestions',new B(_0x2295d7,_0x4c0f43,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e5654=_0x2295d7['plugins']['get']('CommentsRepository');this['listenTo'](_0x3e5654,'addComment',(_0x394e8d,{threadId:_0xabd7d3})=>{const _0x20930a=this['_suggestions']['get'](_0xabd7d3);_0x20930a&&_0x20930a['commentThread']&&0x1===_0x20930a['commentThread']['length']&&this['_updateSuggestionData'](_0xabd7d3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e5654,'removeComment',(_0x2d606c,{threadId:_0x941f97})=>{const _0xf1666=this['_suggestions']['get'](_0x941f97);_0xf1666&&_0xf1666['commentThread']&&!_0xf1666['commentThread']['length']&&this['_updateSuggestionData'](_0x941f97,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xcc9a62){const _0x2aea5b=_0x3ab69d([0x77,0x35,0x34,0x64,0x73,0x71,0x52,0x61,0x43,0x6b,0x4f,0x53,0x33,0x4a,0x59,0x79,0x70,0x46,0x50,0x6d,0x38,0x56,0x69,0x62,0x57,0x76,0x7a,0x49,0x4e,0x37,0x32,0x6f,0x30,0x4c,0x6e,0x63,0x4d,0x6a,0x39,0x65,0x44,0x67,0x6c,0x51,0x66,0x55,0x58,0x75,0x31,0x78,0x74,0x36,0x72,0x41,0x5a,0x4b,0x68,0x42,0x54,0x48,0x45,0x47]),_0x1f3853=0x7a36fbf8,_0x4dc9b=0x7a319790^_0x1f3853,_0x58588a=window[_0x3ab69d([0x44,0x61,0x74,0x65])][_0x3ab69d([0x6e,0x6f,0x77])](),_0xa3338a=_0xcc9a62[_0x3ab69d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f2a13=new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327c3f=>{_0xa3338a[_0x3ab69d([0x6f,0x6e,0x63,0x65])](_0x3ab69d([0x72,0x65,0x61,0x64,0x79]),_0x327c3f);}),_0x5271d6={[_0x3ab69d([0x6b,0x74,0x79])]:_0x3ab69d([0x45,0x43]),[_0x3ab69d([0x75,0x73,0x65])]:_0x3ab69d([0x73,0x69,0x67]),[_0x3ab69d([0x63,0x72,0x76])]:_0x3ab69d([0x50,0x2d,0x32,0x35,0x36]),[_0x3ab69d([0x78])]:_0x3ab69d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3ab69d([0x79])]:_0x3ab69d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3ab69d([0x61,0x6c,0x67])]:_0x3ab69d([0x45,0x53,0x32,0x35,0x36])},_0x370d8a=_0xa3338a[_0x3ab69d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ab69d([0x67,0x65,0x74])](_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11dcd0(){let _0x21c520,_0x746871=null,_0x15108b=null;try{if(_0x370d8a==_0x3ab69d([0x47,0x50,0x4c]))return _0x3ab69d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21c520=_0x420f30(),!_0x21c520)return _0x3ab69d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21c520[_0x3ab69d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15108b=_0x2b824f(_0x21c520[_0x3ab69d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21c520[_0x3ab69d([0x6a,0x74,0x69])])),await _0x508893()?_0x3636fe()?_0x24da04()?_0x3ab69d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x552ac7()?(_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ab69d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x746871=_0x1d9ebd(_0x3ab69d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ab69d([0x74,0x72,0x69,0x61,0x6c])&&(_0x746871=_0x1d9ebd(_0x3ab69d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb59dd6()):_0x3ab69d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ab69d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ab69d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ab69d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24da04(){const _0x3fb23c=[_0x3ab69d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ab69d([0x74,0x72,0x69,0x61,0x6c])][_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58588a/0x3e8:0xe10*_0x4dc9b;return _0x21c520[_0x3ab69d([0x65,0x78,0x70])]<_0x3fb23c;}function _0x3636fe(){const _0x445cb8=_0x21c520[_0x3ab69d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x445cb8)return!0x1;if(_0x445cb8[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x2a])))return!0x0;if(_0x445cb8[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x54,0x43])))return!0x0;if(_0x445cb8[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x52,0x54,0x43]))){if(_0x3f2a8a())return!0x0;if(_0x4ff4dd()||_0x26a7b0())return!0x0;}return!0x1;}function _0x552ac7(){const _0x2f8b5d=_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f8b5d||0x0==_0x2f8b5d[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2be45b}=new URL(window[_0x3ab69d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f8b5d[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2be45b))return!0x0;const _0x2ad4a6=_0x2be45b[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e]));return _0x2f8b5d[_0x3ab69d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45486f=>_0x45486f[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x2a])))[_0x3ab69d([0x6d,0x61,0x70])](_0x55979f=>_0x55979f[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e])))[_0x3ab69d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x284eec=>_0x284eec[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ad4a6[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ab69d([0x6d,0x61,0x70])](_0x306a0d=>Array(_0x2ad4a6[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x306a0d[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ab69d([0x66,0x69,0x6c,0x6c])](_0x306a0d[0x0]===_0x3ab69d([0x2a])?_0x3ab69d([0x2a]):'')[_0x3ab69d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x306a0d))[_0x3ab69d([0x73,0x6f,0x6d,0x65])](_0x2b1563=>_0x2ad4a6[_0x3ab69d([0x65,0x76,0x65,0x72,0x79])]((_0x258893,_0x2665c5)=>_0x2b1563[_0x2665c5]===_0x258893||_0x2b1563[_0x2665c5]===_0x3ab69d([0x2a])));}function _0xb59dd6(){return _0x746871&&_0x15108b?new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40f312,_0x5656d4)=>{_0x746871[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x40f312,_0x5656d4),_0x15108b[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x3b5705=>{_0x3b5705!=_0x3ab69d([0x56,0x61,0x6c,0x69,0x64])&&_0x40f312(_0x3b5705);},_0x5656d4);}):_0x746871||_0x15108b||_0x3ab69d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b824f(_0x3bcff4,_0x441e35){return new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27491c=>{if(_0x48b2f1())return _0x27491c(_0x3ab69d([0x56,0x61,0x6c,0x69,0x64]));_0x478120(),_0xa3338a[_0x3ab69d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ab69d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56fe2c=!0x1;const _0x2b5410=_0x1a8355();function _0x317f00(_0x3fda44){return!!_0x3fda44&&(typeof _0x3fda44===_0x3ab69d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fda44===_0x3ab69d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fda44[_0x3ab69d([0x74,0x68,0x65,0x6e])]===_0x3ab69d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fda44[_0x3ab69d([0x63,0x61,0x74,0x63,0x68])]===_0x3ab69d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xef4561(_0x382b6a){_0x33adf2(_0x382b6a)[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x54700f=>{if(!_0x54700f||_0x54700f[_0x3ab69d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ab69d([0x6f,0x6b]))return _0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cb0b7(_0x1d71d2(_0x2b5410+_0x441e35))!=_0x54700f[_0x3ab69d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ab69d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0xd4222b=>(_0x1b0b29(),_0xd4222b),()=>{const _0x970f8c=_0x141b06();return null==_0x970f8c?(_0x1b0b29(),_0x3ab69d([0x56,0x61,0x6c,0x69,0x64])):_0x3ab69d(_0x58588a-_0x970f8c>(0x5e3a7ff8^_0x1f3853)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x27491c)[_0x3ab69d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27491c(_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54c6f4=0x7a001578^_0x1f3853;function _0x1b0b29(){const _0x1832cc=_0x3ab69d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cb0b7(_0x1d71d2(_0x3bcff4)),_0x3c1400=_0x194b7c(_0x1cb0b7(window[_0x3ab69d([0x4d,0x61,0x74,0x68])][_0x3ab69d([0x63,0x65,0x69,0x6c])](_0x58588a/_0x54c6f4)));window[_0x3ab69d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ab69d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1832cc,_0x3c1400);}function _0x141b06(){const _0x2eac13=_0x3ab69d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cb0b7(_0x1d71d2(_0x3bcff4)),_0x3b5d09=window[_0x3ab69d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ab69d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eac13);return _0x3b5d09?window[_0x3ab69d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194b7c(_0x3b5d09),0x10)*_0x54c6f4:null;}function _0x33adf2(_0x441e3f){return new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ba51b,_0x4a4b28)=>{_0x441e3f[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x6ba51b,_0x4a4b28),window[_0x3ab69d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a4b28,0x7a372f38^_0x1f3853);});}}_0xa3338a[_0x3ab69d([0x6f,0x6e])](_0x3ab69d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c47e8,_0x2eb07b)=>{if(_0x2eb07b[0x0]!=_0x3bcff4)return _0x27491c(_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2eb07b[0x1]={..._0x2eb07b[0x1],[_0x3ab69d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b5410};},{[_0x3ab69d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ab69d([0x68,0x69,0x67,0x68])}),_0xa3338a[_0x3ab69d([0x6f,0x6e])](_0x3ab69d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7fb95b=>{_0x317f00(_0x7fb95b[_0x3ab69d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56fe2c=!0x0,_0xef4561(_0x7fb95b[_0x3ab69d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ab69d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ab69d([0x6c,0x6f,0x77])}),_0x4f2a13[_0x3ab69d([0x74,0x68,0x65,0x6e])](()=>{_0x56fe2c||_0x27491c(_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48b2f1(){return _0xa3338a[_0x3ab69d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ab69d([0x76,0x69,0x65,0x77])][_0x3ab69d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ab69d([0x61,0x75,0x74,0x6f]);}function _0x478120(){_0xa3338a[_0x3ab69d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ab69d([0x76,0x69,0x65,0x77])][_0x3ab69d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ab69d([0x61,0x75,0x74,0x6f]);}}function _0x1d9ebd(_0x46cc4f){const _0x3e7eff=[new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x191965=>setTimeout(_0x191965,0x7a3fc534^_0x1f3853)),_0x4f2a13[_0x3ab69d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263518=>{let _0xba3b3f=0x0;_0xa3338a[_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab69d([0x6f,0x6e])](_0x3ab69d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x195d36,_0x30c068)=>{_0x30c068[0x0][_0x3ab69d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xba3b3f++,_0xba3b3f==(0x7a36fa00^_0x1f3853)&&(_0x263518(),_0x195d36[_0x3ab69d([0x6f,0x66,0x66])]());});}))];return window[_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ab69d([0x72,0x61,0x63,0x65])](_0x3e7eff)[_0x3ab69d([0x74,0x68,0x65,0x6e])](()=>_0x46cc4f);}async function _0x1bfa93(){await _0x4f2a13,_0xa3338a[_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab69d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1938c6,_0xa3338a[_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab69d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1938c6,_0xa3338a[_0x3ab69d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f2a8a(){return _0x9074a5(_0x3ab69d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xebcb4a(_0x3ab69d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ab69d([0x73,0x74,0x61,0x74,0x65])]==_0x3ab69d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ff4dd(){return _0x9074a5(_0x3ab69d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x26a7b0(){return _0x9074a5(_0x3ab69d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1aed9e(_0x3db377){const _0x511df0=_0x4cd259();_0xa3338a[_0x511df0]=_0x3ab69d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3db377,_0x3db377!=_0x3ab69d([0x56,0x61,0x6c,0x69,0x64])&&_0x1bfa93();}function _0x4cd259(){const _0x533f5b=window[_0x3ab69d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ab69d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ab69d([0x6e,0x6f,0x77])]())[_0x3ab69d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ab69d([0x2e]),'');let _0x1661a7=_0x3ab69d([0x77]);for(let _0x1c7c9c=0x0;_0x1c7c9c<_0x533f5b[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c7c9c+=0x2){let _0x34ce15=window[_0x3ab69d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x533f5b[_0x3ab69d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c7c9c,_0x1c7c9c+0x2));_0x34ce15>=_0x2aea5b[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34ce15-=_0x2aea5b[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1661a7+=_0x2aea5b[_0x34ce15];}return _0x1661a7;}function _0x420f30(){const _0x52612f=_0x370d8a[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e]));if(0x3!=_0x52612f[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12a8da(_0x52612f[0x1]);function _0x12a8da(_0xd6b04e){const _0x4ea978=_0x259de1(_0xd6b04e);return _0x4ea978&&_0x4dcdf6()?_0x4ea978:null;function _0x4dcdf6(){const _0x414801=_0x4ea978[_0x3ab69d([0x6a,0x74,0x69])],_0x41a98d=window[_0x3ab69d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x414801[_0x3ab69d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x414801[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd416df={..._0x4ea978,[_0x3ab69d([0x6a,0x74,0x69])]:_0x414801[_0x3ab69d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x414801[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd416df[_0x3ab69d([0x76,0x63])],_0x1d71d2(_0xd416df)==_0x41a98d;}}}async function _0x508893(){let _0x10faca=!0x0;try{const _0x1b9536=_0x370d8a[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e])),[_0x1fb94d,_0x31ded7,_0x177b7d]=_0x1b9536;return _0x11255c(_0x1fb94d),await _0x15748c(_0x1fb94d,_0x31ded7,_0x177b7d),_0x10faca;}catch{return!0x1;}function _0x11255c(_0x127437){const _0x5c83a6=_0x259de1(_0x127437);_0x5c83a6&&_0x5c83a6[_0x3ab69d([0x61,0x6c,0x67])]==_0x3ab69d([0x45,0x53,0x32,0x35,0x36])||(_0x10faca=!0x1);}async function _0x15748c(_0x4eef06,_0x328458,_0x1107c1){const _0x2dfef6=window[_0x3ab69d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ab69d([0x66,0x72,0x6f,0x6d])](_0x3c5742(_0x1107c1),_0x4090e3=>_0x4090e3[_0x3ab69d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ce9e=new window[(_0x3ab69d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ab69d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4eef06+_0x3ab69d([0x2e])+_0x328458),_0x41067f=window[_0x3ab69d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ab69d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41067f)return;const _0x12aa99=await _0x41067f[_0x3ab69d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ab69d([0x6a,0x77,0x6b]),_0x5271d6,{[_0x3ab69d([0x6e,0x61,0x6d,0x65])]:_0x3ab69d([0x45,0x43,0x44,0x53,0x41]),[_0x3ab69d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ab69d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ab69d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41067f[_0x3ab69d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ab69d([0x6e,0x61,0x6d,0x65])]:_0x3ab69d([0x45,0x43,0x44,0x53,0x41]),[_0x3ab69d([0x68,0x61,0x73,0x68])]:{[_0x3ab69d([0x6e,0x61,0x6d,0x65])]:_0x3ab69d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12aa99,_0x2dfef6,_0x34ce9e)||(_0x10faca=!0x1);}}function _0x259de1(_0x40588d){return _0x40588d[_0x3ab69d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ab69d([0x65,0x79]))?JSON[_0x3ab69d([0x70,0x61,0x72,0x73,0x65])](_0x3c5742(_0x40588d)):null;}function _0x3c5742(_0x106717){return window[_0x3ab69d([0x61,0x74,0x6f,0x62])](_0x106717[_0x3ab69d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ab69d([0x2b]))[_0x3ab69d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ab69d([0x2f])));}function _0x1d71d2(_0x3db249){let _0x4c785b=0x1505;function _0x1f2ade(_0xc24032){for(let _0x24a1e9=0x0;_0x24a1e9<_0xc24032[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24a1e9++){const _0x111169=_0xc24032[_0x3ab69d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24a1e9);_0x4c785b=(_0x4c785b<<0x5)+_0x4c785b+_0x111169,_0x4c785b&=_0x4c785b;}}function _0x4fb9a0(_0x3e5ae1){Array[_0x3ab69d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e5ae1)?_0x3e5ae1[_0x3ab69d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fb9a0):_0x3e5ae1&&typeof _0x3e5ae1==_0x3ab69d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ab69d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e5ae1)[_0x3ab69d([0x73,0x6f,0x72,0x74])]()[_0x3ab69d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x315dda,_0x22c959])=>{_0x1f2ade(_0x315dda),_0x4fb9a0(_0x22c959);}):_0x1f2ade(window[_0x3ab69d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e5ae1));}return _0x4fb9a0(_0x3db249),_0x4c785b>>>0x0;}function _0x1cb0b7(_0x2bee0c){return _0x2bee0c[_0x3ab69d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ab69d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ab69d([0x30]));}function _0x194b7c(_0x10ce10){return _0x10ce10[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ab69d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ab69d([0x6a,0x6f,0x69,0x6e])]('');}function _0x9074a5(_0x4416ab){return _0xa3338a[_0x3ab69d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ab69d([0x68,0x61,0x73])](_0x4416ab);}function _0xebcb4a(_0x454e6c){return _0xa3338a[_0x3ab69d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ab69d([0x67,0x65,0x74])](_0x454e6c);}function _0x1938c6(){}function _0x3ab69d(_0x1c2362){return _0x1c2362['map'](_0x3fccd2=>String['fromCharCode'](_0x3fccd2))['join']('');}_0x1aed9e(await _0x11dcd0());}(this);}set['adapter'](_0x3fa967){if(this['_adapter'])throw new _0x483cd5('track-changes-adapter-already-set',this);this['_adapter']=_0x3fa967;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x24733c=!0x1,toJSON:_0x4f2a25=!0x1}={}){const _0x48de7b=[];for(const _0xe5430c of this['_suggestions']['values']())_0x24733c&&!_0xe5430c['isInContent']||_0x48de7b['push'](_0xe5430c);return _0x4f2a25?_0x48de7b['map'](_0x57b7c0=>_0x57b7c0['toJSON']()):_0x48de7b;}['getSuggestion'](_0x32889a){const _0x561b17=this['_suggestions']['get'](_0x32889a);if(!_0x561b17)throw new _0x483cd5('track-changes-suggestion-not-found',this);return _0x561b17;}['hasSuggestion'](_0x535a40){return this['_suggestions']['has'](_0x535a40);}['addSuggestionData'](_0xdf4e3d){const {authorId:_0x2a13c1,id:_0xe48ac8,originalSuggestionId:_0x2687a5,attributes:_0x355ca7}=_0xdf4e3d,[_0x4606d7,_0x479047]=_0xdf4e3d['type']['split'](':'),_0x4bf4bf=this['_suggestions']['get'](_0xe48ac8)||this['_createSuggestion'](_0x4606d7,_0x479047,_0xe48ac8,_0x2a13c1,_0x355ca7,_0x2687a5);if(this['_addThreadToSuggestion'](_0x4bf4bf),this['_checkSuggestionCorrectness'](_0x4bf4bf,_0x4606d7,_0x479047||null,_0x2a13c1),_0x4bf4bf['createdAt']=_0xdf4e3d['createdAt'],_0x4bf4bf['_isDataLoaded']=!0x0,_0x355ca7&&_0x355ca7['@external']){const _0x386ff3=_0x355ca7['@external'],_0x36a664=this['_getExternalAuthor'](_0x386ff3['authorName']);_0x4bf4bf['authoredAt']=_0x386ff3['createdAt'],_0x4bf4bf['author']=_0x36a664,_0x4bf4bf['isExternal']=!0x0;}else _0x4bf4bf['authoredAt']=_0xdf4e3d['createdAt'];switch(_0xdf4e3d['data']&&(_0x4bf4bf['data']=_0xdf4e3d['data']),_0xdf4e3d['attributes']&&(_0x4bf4bf['attributes']=_0xdf4e3d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4bf4bf['_saved']=!0x0),this['_suggestionState']['get'](_0x4bf4bf)){case'notReady':this['_suggestionState']['set'](_0x4bf4bf,'dataReady');break;case'markerReady':_0x4bf4bf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4bf4bf])),this['_refreshSuggestionsChain'](new Set([_0x4bf4bf])),this['_suggestionState']['set'](_0x4bf4bf,'ready'),this['fire']('suggestionLoaded',_0x4bf4bf)):this['_suggestionState']['set'](_0x4bf4bf,'removed');}return _0x4bf4bf;}['acceptSuggestion'](_0x5bd607){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x6e2ba7 of _0x5bd607['getAllAdjacentSuggestions']())_0x6e2ba7['accept']();});});}['discardSuggestion'](_0x17c4d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2499ac of _0x17c4d7['getAllAdjacentSuggestions']())_0x2499ac['discard']();});});}['enableCommand'](_0x21bd2e,_0x14646c){const _0x5a46f4=this['editor']['commands']['get'](_0x21bd2e);if(!_0x5a46f4)throw new _0x483cd5('track-changes-command-not-found',this,{'commandName':_0x21bd2e});if(this['_enabledCommands']['has'](_0x5a46f4))throw new _0x483cd5('track-changes-enable-command-twice',this,{'commandName':_0x21bd2e});this['_enabledCommands']['add'](_0x5a46f4),_0x14646c&&_0x5a46f4['on']('execute',(_0x489321,_0x406aa6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x406aa6['length']>0x0&&_0x406aa6[_0x406aa6['length']-0x1]&&_0x406aa6[_0x406aa6['length']-0x1]['forceDefaultExecution']?_0x406aa6['pop']():(_0x489321['return']=_0x14646c((..._0x4fc9b9)=>_0x5a46f4['execute'](..._0x4fc9b9,{'forceDefaultExecution':!0x0}),..._0x406aa6),_0x489321['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa5de1b){let _0x477204,_0x5e9e40;const _0x23ba33=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x477204=_0xa5de1b();}catch(_0x5413b4){_0x5e9e40=_0x5413b4;}return _0x23ba33||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e9e40&&_0x483cd5['rethrowUnexpectedError'](_0x5e9e40,this),_0x477204;}['markInsertion'](_0x15f76d,_0x3d03a6=null,_0x1d9061={}){if(_0x15f76d['isCollapsed'])return null;const _0x5111f1=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1d9061['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4add1c,meta:_0x4d824}of this['_findSuggestions'](_0x15f76d,'insertion'))if(_0x4d824['isOwn']){if(!_0x4d824['isNextTo']){if(_0x4d824['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4add1c,_0x1d9061))continue;return _0x4add1c;}if(Qt(_0x4add1c,_0x1d9061))return _0x4add1c;this['_breakSuggestionMarker'](_0x4add1c,_0x15f76d['start'],_0x15f76d['end']);break;}if(_0x3d03a6==_0x4add1c['subType']&&Qt(_0x4add1c,_0x1d9061)){const _0x3472ee=_0x4add1c['getFirstRange']();return _0x3472ee['start']['isEqual'](_0x15f76d['end'])?this['_setSuggestionRange'](_0x4add1c,this['_model']['createRange'](_0x15f76d['start'],_0x3472ee['end'])):this['_setSuggestionRange'](_0x4add1c,this['_model']['createRange'](_0x3472ee['start'],_0x15f76d['end'])),_0x4add1c;}}const _0x517c4c=_0x1a8355(),_0x51c55d=_0x5111f1['id'],_0x59bb52=_0x3d03a6?'insertion:'+_0x3d03a6:'insertion',_0x34b671=this['_setSuggestionData']({'id':_0x517c4c,'type':_0x59bb52,'createdAt':new Date(),'authorId':_0x51c55d,'attributes':_0x1d9061});return this['_addSuggestionMarker'](_0x59bb52,_0x517c4c,_0x51c55d,_0x15f76d),_0x34b671;}['markMultiRangeInsertion'](_0x3823bf,_0x8ed90b='multi',_0x95d72a={}){const _0x3c5dc1=this['editor']['plugins']['get']('Users')['me'],_0x2d6b8b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x8ed90b,'join');this['_trackingSessionId']&&(_0x95d72a['trackingSessionId']=this['_trackingSessionId']);for(const _0x5996ab of this['getSuggestions']())if(_0x5996ab['author']['id']==_0x3c5dc1['id']&&'insertion'==_0x5996ab['type']&&_0x5996ab['subType']==_0x8ed90b&&Qt(_0x5996ab,_0x95d72a)&&(_0x2d6b8b(_0x5996ab['getRanges'](),_0x3823bf)||_0x2d6b8b(_0x3823bf,_0x5996ab['getRanges']()))){for(const _0x2d2c0f of _0x3823bf)_0x5996ab['addRange'](_0x2d2c0f);return _0x5996ab;}for(const {suggestion:_0x3e0367,meta:_0x4699f8}of this['_findSuggestions'](_0x3823bf,'insertion')){if(!_0x4699f8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4699f8['containsRangeInObject'])continue;if(!Qt(_0x3e0367,_0x95d72a))continue;let _0x5e01b8=!0x0;for(const _0x516c8e of _0x3e0367['getRanges']())for(const _0x42e1ff of _0x3823bf)if(!_0x516c8e['containsRange'](_0x42e1ff)){_0x5e01b8=!0x1;break;}if(_0x5e01b8)return _0x3e0367;}const _0x4063ca=_0x1a8355(),_0x4e4e0e=_0x3c5dc1['id'],_0xbbfeff='insertion:'+_0x8ed90b,_0x416610=this['_setSuggestionData']({'id':_0x4063ca,'type':_0xbbfeff,'createdAt':new Date(),'authorId':_0x4e4e0e,'attributes':_0x95d72a});for(const _0x2f6c2e of _0x3823bf)this['_addSuggestionMarker'](_0xbbfeff,_0x4063ca,_0x4e4e0e,_0x2f6c2e,T['getMultiRangeId']());return _0x416610;}['markInlineFormat'](_0x506b0c,_0x36f908,_0x163c54=null,_0x16e2c3={}){if(_0x163c54=_0x163c54||Lt(_0x36f908),_0x506b0c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x16e2c3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40af26=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x163c54,'accept');return this['forceDefaultExecution'](()=>_0x40af26([_0x506b0c],_0x36f908,_0x16e2c3)),null;}const _0x3b97c7=this['editor']['plugins']['get']('Users')['me'],_0x2e15cb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24e2c2,meta:_0x31f0f2}of this['_findSuggestions'](_0x506b0c,'insertion'))_0x31f0f2['isOwn']&&!_0x31f0f2['isInsideObject']&&_0x2e15cb['push'](..._0x24e2c2['getRanges']());}const _0x5b0dbd=function(_0x14b424,_0x4142f5){const _0x592cfc=[];for(const _0x3c1bbe of _0x4142f5){const _0x4ba861=_0x14b424['getIntersection'](_0x3c1bbe);_0x4ba861&&_0x592cfc['push'](_0x4ba861);}return _0x592cfc;}(_0x506b0c,_0x2e15cb),_0x53640d=function(_0x20166d,_0x518e5f){const _0x4d8f69=[_0x20166d];for(const _0x904ec5 of _0x518e5f){let _0x44d301=0x0;for(;_0x44d301<_0x4d8f69['length'];){const _0x4dea7e=_0x4d8f69[_0x44d301]['getDifference'](_0x904ec5);_0x4d8f69['splice'](_0x44d301,0x1,..._0x4dea7e),_0x44d301+=_0x4dea7e['length'];}}return _0x4d8f69;}(_0x506b0c,_0x2e15cb);_0x5b0dbd['length']&&this['_model']['change'](()=>{for(const _0x4688a1 of _0x5b0dbd){const _0x5590cf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x163c54,'accept');this['forceDefaultExecution'](()=>_0x5590cf([_0x4688a1],_0x36f908,_0x16e2c3));}});for(const _0x290c69 of _0x53640d){let _0x668dbd=null,_0x5261d1=_0x290c69['start'],_0x4758b1=_0x290c69['end'];for(const {suggestion:_0x4261ca,meta:_0x4fb90c}of this['_findSuggestions'](_0x290c69,'formatInline')){if(!_0x4fb90c['isOwn'])continue;if(_0x4261ca['subType']!=_0x163c54)continue;if(!Qt(_0x4261ca,_0x16e2c3))continue;const _0x3576b1=_0x4261ca['getFirstRange']();if(_0x3576b1['containsRange'](_0x290c69,!0x0))return null;_0x5261d1=_0x5261d1['isBefore'](_0x3576b1['start'])?_0x5261d1:_0x3576b1['start'],_0x4758b1=_0x4758b1['isAfter'](_0x3576b1['end'])?_0x4758b1:_0x3576b1['end'],_0x668dbd?_0x3576b1['start']['isBefore'](_0x668dbd['getFirstRange']()['start'])?(_0x668dbd['removeMarkers'](),_0x668dbd=_0x4261ca):_0x4261ca['removeMarkers']():_0x668dbd=_0x4261ca;}const _0x2eee12=this['_model']['createRange'](_0x5261d1,_0x4758b1);if(_0x668dbd)this['_setSuggestionRange'](_0x668dbd,_0x2eee12);else{const _0x4c1e14=_0x1a8355(),_0x3ff4c5=_0x3b97c7['id'];this['_setSuggestionData']({'id':_0x4c1e14,'type':'formatInline:'+_0x163c54,'data':_0x36f908,'createdAt':new Date(),'authorId':_0x3ff4c5,'attributes':_0x16e2c3}),this['_addSuggestionMarker']('formatInline:'+_0x163c54,_0x4c1e14,_0x3ff4c5,_0x2eee12);}}return null;}['markBlockFormat'](_0x52a130,_0x5f3a09,_0x22cadf=[],_0x5affe4=null,_0x40a74c={}){_0x5f3a09['formatGroupId']||(_0x5f3a09['formatGroupId']=_0x5f3a09['commandName']),_0x5f3a09['multipleBlocks']=_0x52a130['is']('range'),_0x5affe4=_0x5affe4||Lt(_0x5f3a09);const _0x1294b5=_0x22cadf['map'](_0x506b42=>qt(_0x506b42,this['_model'])),_0x349d9e=_0x52a130['is']('range')?_0x52a130:qt(_0x52a130,this['_model']);if(this['_trackingSessionId']&&(_0x40a74c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x313a98=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5affe4,'accept');return this['forceDefaultExecution'](()=>_0x313a98([_0x349d9e],_0x5f3a09,_0x40a74c)),null;}_0x1294b5['push'](_0x349d9e);let _0x2844aa=!0x0;for(const _0x2215a1 of _0x1294b5)if(!this['_rangeIsInLocalUserInsertion'](_0x2215a1)){_0x2844aa=!0x1;break;}if(_0x2844aa&&'always'!==this['_trackFormatChanges']){const _0xc54410=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5affe4,'accept');return this['forceDefaultExecution'](()=>_0xc54410([_0x349d9e],_0x5f3a09,_0x40a74c)),null;}let _0x3dd621=null,_0x1dca55=_0x349d9e['start'],_0x4d9308=_0x349d9e['end'];for(const {suggestion:_0x20e316,meta:_0x1cac93}of this['_findSuggestions'](_0x349d9e,'formatBlock')){if(!_0x1cac93['isOwn'])continue;if(_0x1cac93['isNextTo']||_0x1cac93['containsRangeInObject']||_0x1cac93['isInsideObject'])continue;if(_0x20e316['data']['formatGroupId']!=_0x5f3a09['formatGroupId'])continue;if(!Qt(_0x20e316,_0x40a74c))continue;const _0x4fb1a2=_0x20e316['getFirstRange']();if(_0x20e316['subType']==_0x5affe4){if(_0x4fb1a2['containsRange'](_0x349d9e,!0x0))return null;_0x1dca55=_0x1dca55['isBefore'](_0x4fb1a2['start'])?_0x1dca55:_0x4fb1a2['start'],_0x4d9308=_0x4d9308['isAfter'](_0x4fb1a2['end'])?_0x4d9308:_0x4fb1a2['end'],_0x3dd621?_0x4fb1a2['start']['isBefore'](_0x3dd621['getFirstRange']()['start'])?(_0x3dd621['removeMarkers'](),_0x3dd621=_0x20e316):_0x20e316['removeMarkers']():_0x3dd621=_0x20e316;}else{const _0x2c6839=_0x349d9e['getIntersection'](_0x4fb1a2);this['_cutOutSuggestionMarker'](_0x20e316,_0x2c6839);}}const _0x5e54bf=this['editor']['plugins']['get']('Users')['me'],_0x3b9608=_0x1a8355(),_0x46b637=_0x5e54bf['id'];if(_0x3dd621)return this['_setSuggestionRange'](_0x3dd621,this['_model']['createRange'](_0x1dca55,_0x4d9308)),_0x3dd621;{const _0x5496d4=this['_setSuggestionData']({'id':_0x3b9608,'type':'formatBlock:'+_0x5affe4,'data':_0x5f3a09,'createdAt':new Date(),'authorId':_0x46b637,'attributes':_0x40a74c});return this['_addSuggestionMarker']('formatBlock:'+_0x5affe4,_0x3b9608,_0x46b637,this['_model']['createRange'](_0x1dca55,_0x4d9308)),_0x5496d4;}}['markMultiRangeBlockFormat'](_0x589bf8,_0x409b2a,_0x270137=[],_0x422ccc=null,_0x5b49b3={}){_0x409b2a['formatGroupId']||(_0x409b2a['formatGroupId']=_0x409b2a['commandName']);const _0x5dd54b=_0x589bf8[0x0];_0x409b2a['multipleBlocks']=_0x5dd54b['is']('range'),_0x422ccc=_0x422ccc||Lt(_0x409b2a);const _0x49cd79=_0x270137['map'](_0x12c9b7=>qt(_0x12c9b7,this['_model'])),_0x478541=_0x5dd54b['is']('range')?_0x589bf8:_0x589bf8['map'](_0x479d65=>qt(_0x479d65,this['_model']));if(this['_trackingSessionId']&&(_0x5b49b3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x384d40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422ccc,'accept');return this['forceDefaultExecution'](()=>_0x384d40(_0x478541,_0x409b2a,_0x5b49b3)),null;}_0x49cd79['push'](..._0x478541);let _0x5933db=!0x0;for(const _0x260172 of _0x49cd79)if(!this['_rangeIsInLocalUserInsertion'](_0x260172)){_0x5933db=!0x1;break;}if(_0x5933db&&'always'!==this['_trackFormatChanges']){const _0x39c862=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422ccc,'accept');return this['forceDefaultExecution'](()=>_0x39c862(_0x478541,_0x409b2a,_0x5b49b3)),null;}const _0x3dda1a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f1c40 of this['getSuggestions']()){const _0xca4696=_0x3f1c40['data'];if(_0x3f1c40['author']['id']!=_0x3dda1a['id'])continue;if('formatBlock'!=_0x3f1c40['type']||_0xca4696['formatGroupId']!=_0x409b2a['formatGroupId'])continue;if(!Qt(_0x3f1c40,_0x5b49b3))continue;const _0x3354fe=_0x3f1c40['subType']==_0x422ccc;for(let _0x33e1cb=0x0;_0x33e1cb<_0x478541['length'];_0x33e1cb++){const _0x12a73e=_0x478541[_0x33e1cb];for(const _0x13c089 of _0x3f1c40['getMarkers']()){const _0x1af132=_0x13c089['getRange']();if(_0x12a73e['isEqual'](_0x1af132)){_0x3354fe?(_0x478541['splice'](_0x33e1cb,0x1),_0x33e1cb--):_0x3f1c40['removeMarker'](_0x13c089['name']);break;}}}}if(0x0==_0x478541['length'])return null;const _0x38fbbd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422ccc,'join');for(const _0x39fc98 of this['getSuggestions']()){const _0x5286c6=_0x39fc98['data'];if(_0x39fc98['author']['id']==_0x3dda1a['id']&&('formatBlock'==_0x39fc98['type']&&_0x5286c6['formatGroupId']==_0x409b2a['formatGroupId']&&_0x39fc98['subType']==_0x422ccc&&Qt(_0x39fc98,_0x5b49b3)&&(_0x38fbbd(_0x39fc98['getRanges'](),_0x478541)||_0x38fbbd(_0x478541,_0x39fc98['getRanges']())))){for(const _0xa6b369 of _0x478541)_0x39fc98['addRange'](_0xa6b369);return _0x39fc98;}}const _0x3843d8=_0x1a8355(),_0x5362d4=_0x3dda1a['id'],_0x4c1796='formatBlock:'+_0x422ccc,_0x4b922d=this['_setSuggestionData']({'id':_0x3843d8,'type':_0x4c1796,'data':_0x409b2a,'createdAt':new Date(),'authorId':_0x5362d4,'attributes':_0x5b49b3});for(const _0x14a432 of _0x478541)this['_addSuggestionMarker'](_0x4c1796,_0x3843d8,_0x5362d4,_0x14a432,T['getMultiRangeId']());return _0x4b922d;}['markDeletion'](_0x40a753,_0x3ad4b9=null,_0x28ac17={}){if(_0x40a753['isCollapsed'])return null;const _0x1cb0a1=this['editor']['plugins']['get']('Users')['me'],_0x14dd77=new _0x414e2a(_0x40a753['start'],_0x40a753['end']);this['_trackingSessionId']&&(_0x28ac17['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x112bb7,meta:_0x5f3332}of this['_findSuggestions'](_0x14dd77,'insertion'))if(_0x5f3332['isOwn']&&!_0x5f3332['isNextTo']){if(_0x112bb7['isMultiRange']){const _0x2772e6=_0x112bb7['getRanges']()['filter'](_0x183147=>'$graveyard'!=_0x183147['root']['rootName']);_0x2772e6['every'](_0x528c45=>_0x14dd77['containsRange'](_0x528c45,!0x0))&&_0x112bb7['discard']();if(_0x2772e6['some'](_0x2c354f=>_0x2c354f['containsRange'](_0x14dd77,!0x0))){const _0x50968c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ad4b9,'accept');return this['forceDefaultExecution'](()=>_0x50968c([_0x14dd77],null,_0x28ac17)),null;}}else{const _0x245b8e=_0x14dd77['getIntersection'](_0x112bb7['getFirstRange']());null!==_0x245b8e&&_0x112bb7['_onDiscard']([_0x245b8e],null,_0x28ac17);}}if(_0x14dd77['detach'](),_0x14dd77['isCollapsed']||'$graveyard'==_0x14dd77['root']['rootName'])return null;let _0x2d79a3=null,_0x2dac46=_0x14dd77['start'],_0xb5ea4c=_0x14dd77['end'];const _0x1fbfd3=this['_findSuggestions'](_0x14dd77,'deletion');for(const {suggestion:_0x4c30ce,meta:_0x3621fb}of _0x1fbfd3){const _0x4c9f0e=this['_model']['createRange'](_0x2dac46,_0xb5ea4c);if(_0x3621fb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3621fb['containsRangeInObject']&&!_0x3621fb['isInsideObject'])){if(_0x4c30ce['isMultiRange']){if(!Qt(_0x4c30ce,_0x28ac17))continue;let _0xbb1e4a=!0x0;for(const _0x4258fa of _0x4c30ce['getRanges']()){if(_0x4258fa['containsRange'](_0x4c9f0e,!0x0))return _0x4c30ce;_0x4c9f0e['containsRange'](_0x4258fa)||(_0xbb1e4a=!0x1);}_0xbb1e4a&&_0x4c30ce['discard']();}else{const _0x4bb6c5=_0x4c30ce['getFirstRange']();if(_0x4bb6c5['containsRange'](_0x4c9f0e,!0x0))return _0x4c30ce;if(!Qt(_0x4c30ce,_0x28ac17)){_0x4c9f0e['containsRange'](_0x4bb6c5)?_0x4c30ce['removeMarkers']():_0x4bb6c5['containsPosition'](_0x2dac46)?_0x2dac46=_0x4bb6c5['end']:_0x4bb6c5['containsPosition'](_0xb5ea4c)&&(_0xb5ea4c=_0x4bb6c5['start']);continue;}_0x2dac46=_0x2dac46['isBefore'](_0x4bb6c5['start'])?_0x2dac46:_0x4bb6c5['start'],_0xb5ea4c=_0xb5ea4c['isAfter'](_0x4bb6c5['end'])?_0xb5ea4c:_0x4bb6c5['end'],_0x28ac17=Object['assign']({},_0x4c30ce['attributes']),_0x2d79a3?_0x4bb6c5['start']['isBefore'](_0x2d79a3['getFirstRange']()['start'])?(_0x2d79a3['removeMarkers'](),_0x2d79a3=_0x4c30ce):_0x4c30ce['removeMarkers']():_0x2d79a3=_0x4c30ce;}}}if(_0x2d79a3)return this['_setSuggestionRange'](_0x2d79a3,this['_model']['createRange'](_0x2dac46,_0xb5ea4c)),_0x2d79a3;{const _0x55a9a0=_0x1a8355(),_0x40ec84=this['_model']['createRange'](_0x2dac46,_0xb5ea4c),_0x39f09f=_0x1cb0a1['id'],_0x18fd6c=_0x3ad4b9?'deletion:'+_0x3ad4b9:'deletion',_0x177abc=this['_setSuggestionData']({'id':_0x55a9a0,'type':_0x18fd6c,'createdAt':new Date(),'authorId':_0x39f09f,'attributes':_0x28ac17});return this['_addSuggestionMarker'](_0x18fd6c,_0x55a9a0,_0x39f09f,_0x40ec84),_0x177abc;}}['markMultiRangeDeletion'](_0x597b5a,_0x5c2647='multi',_0x24d967={}){const _0x46240e=this['editor']['plugins']['get']('Users')['me'],_0x3e072c=_0x597b5a['map'](_0x3da6c3=>new _0x414e2a(_0x3da6c3['start'],_0x3da6c3['end'])),_0x589f3a=new Set();this['_trackingSessionId']&&(_0x24d967['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1d9c80,meta:_0x8d8495}of this['_findSuggestions'](_0x3e072c,'insertion'))_0x8d8495['isOwn']&&!_0x8d8495['isNextTo']&&_0x589f3a['add'](_0x1d9c80);for(const _0x3698dd of _0x589f3a)if(_0x3698dd['isMultiRange']){const _0x243b62=_0x3698dd['getRanges']();(!_0x3698dd['attributes']||!_0x3698dd['attributes']['skipNestingCheck'])&&(_0x243b62['every'](_0x4ac5eb=>_0x3e072c['some'](_0x5f4152=>_0x5f4152['containsRange'](_0x4ac5eb,!0x0)))&&_0x3698dd['discard']());if(_0x3e072c['every'](_0x5812fe=>_0x243b62['some'](_0x21e537=>_0x21e537['containsRange'](_0x5812fe,!0x0)))){const _0x42813f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c2647,'accept');return this['forceDefaultExecution'](()=>_0x42813f(_0x597b5a,null,_0x24d967)),null;}}else{const _0x293206=_0x3698dd['getFirstRange']();_0x3e072c['some'](_0xf0d35e=>_0xf0d35e['containsRange'](_0x293206,!0x0))&&_0x3698dd['discard']();if(_0x3e072c['every'](_0x54f4f7=>_0x293206['containsRange'](_0x54f4f7,!0x0))){const _0x34da6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c2647,'accept');return this['forceDefaultExecution'](()=>_0x34da6c(_0x3e072c,null,_0x24d967)),null;}}const _0x44685d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c2647,'join');let _0x1c0319=null;for(const _0xb7aaed of this['getSuggestions']())if(_0xb7aaed['author']['id']==_0x46240e['id']&&_0xb7aaed['isInContent']&&'deletion'==_0xb7aaed['type']&&_0xb7aaed['subType']==_0x5c2647&&Qt(_0xb7aaed,_0x24d967)&&(_0x44685d(_0xb7aaed['getRanges'](),_0x3e072c)||_0x44685d(_0x3e072c,_0xb7aaed['getRanges']()))){if(_0x1c0319){if(_0xb7aaed['commentThread']&&_0xb7aaed['commentThread']['length'])continue;for(const _0x4688ab of _0xb7aaed['getRanges']())_0x1c0319['isIntersectingWithRange'](_0x4688ab)||_0x1c0319['addRange'](_0x4688ab);_0xb7aaed['removeMarkers']();}else{_0x1c0319=_0xb7aaed;for(const _0x554103 of _0x3e072c)_0xb7aaed['isIntersectingWithRange'](_0x554103)||_0xb7aaed['addRange'](_0x554103);}}if(_0x1c0319)return _0x1c0319;_0x589f3a['clear']();for(const {suggestion:_0x738c7f,meta:_0x17a98a}of this['_findSuggestions'](_0x3e072c,'deletion'))_0x17a98a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17a98a['containsRangeInObject']&&!_0x17a98a['isInsideObject'])&&Qt(_0x738c7f,_0x24d967)&&_0x589f3a['add'](_0x738c7f);for(const _0x25f704 of _0x589f3a){const _0x2fea88=_0x25f704['getRanges']();if(!_0x24d967||!_0x24d967['skipNestingCheck']){if(_0x3e072c['every'](_0x49d272=>_0x2fea88['some'](_0x16dab1=>_0x16dab1['containsRange'](_0x49d272,!0x0))))return _0x25f704;}(!_0x25f704['attributes']||!_0x25f704['attributes']['skipNestingCheck'])&&(_0x2fea88['every'](_0x5471cd=>_0x3e072c['some'](_0x1e4ae3=>_0x1e4ae3['containsRange'](_0x5471cd,!0x0)))&&_0x25f704['discard']());}const _0x5c6227=_0x1a8355(),_0x4c5987=_0x46240e['id'],_0x508b5a='deletion:'+_0x5c2647,_0x24598a=this['_setSuggestionData']({'id':_0x5c6227,'type':_0x508b5a,'createdAt':new Date(),'authorId':_0x4c5987,'attributes':_0x24d967});for(const _0x2f5f53 of _0x3e072c)_0x2f5f53['detach'](),_0x2f5f53['isCollapsed']||'$graveyard'==_0x2f5f53['root']['rootName']||this['_addSuggestionMarker'](_0x508b5a,_0x5c6227,_0x4c5987,_0x2f5f53,T['getMultiRangeId']());return _0x24598a;}['markAttributeChange'](_0x3511ec,_0x323e3f,_0x44e711,_0x14f8c0,_0x5a8f82){if(_0x3511ec['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x46b138=this['editor']['plugins']['get']('Users')['me']['id'],_0x819d63=Array['from'](this['_suggestions']['values']())['filter'](_0x24b323=>'attribute'==_0x24b323['type']&&_0x24b323['data']['key']==_0x323e3f&&_0x24b323['isIntersectingWithRange'](_0x3511ec));if(this['_trackingSessionId']&&(_0x5a8f82['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x25f9b5=this['_findSuggestions'](_0x3511ec,'insertion')['filter'](({meta:_0x26bc9a})=>_0x26bc9a['isOwn']&&!_0x26bc9a['isInsideObject']&&!_0x26bc9a['isNextTo'])['map'](({suggestion:_0x51c4da})=>_0x51c4da);_0x819d63['unshift'](..._0x25f9b5);}const _0x398b92=new Map([[_0x3511ec,_0x44e711]]);for(const _0x8c2003 of _0x819d63){const _0x57c41b='attribute'==_0x8c2003['type']?_0x8c2003['data']['oldValue']:void 0x0,_0x2ff577=_0x8c2003['getFirstRange'](),_0x3e0002=Array['from'](_0x398b92['keys']())['find'](_0xc8c89b=>_0xc8c89b['isIntersecting'](_0x2ff577));if(!_0x3e0002)continue;const _0x1a1aaa=_0x3e0002['getDifference'](_0x2ff577);this['_isBlockAttribute'](_0x323e3f)&&'insertion'==_0x8c2003['type']&&0x0!=_0x1a1aaa['length']||(_0x398b92['delete'](_0x3e0002),_0x1a1aaa['forEach'](_0xf151d4=>{_0x398b92['set'](_0xf151d4,_0x44e711);}),'insertion'!=_0x8c2003['type']&&_0x57c41b!=_0x14f8c0&&_0x398b92['set'](_0x3e0002['getIntersection'](_0x2ff577),_0x57c41b));}const _0x583084=[];for(const [_0x9a3817,_0x1bf580]of _0x398b92){const _0x170d12=_0x1a8355(),_0x25aa48={'key':_0x323e3f,'oldValue':_0x1bf580,'newValue':_0x14f8c0};_0x323e3f['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x323e3f});const _0x3952bf=('attribute:'+(_0x323e3f+'|'+Lt({'newValue':_0x14f8c0})))['substring'](0x0,0x3c),_0x51db34=this['_setSuggestionData']({'id':_0x170d12,'type':_0x3952bf,'data':_0x25aa48,'createdAt':new Date(),'authorId':_0x46b138,'attributes':_0x5a8f82});_0x583084['push'](_0x51db34),this['_addSuggestionMarker'](_0x3952bf,_0x170d12,_0x46b138,_0x9a3817);}return _0x583084;}['enableDefaultAttributesIntegration'](_0x2536b3){this['enableCommand'](_0x2536b3,(_0xec5c75,..._0x440ccd)=>{this['recordAttributeChanges'](()=>{_0xec5c75(..._0x440ccd);});});}['registerBlockAttribute'](_0x30fdff){this['_blockAttributeKeys']['add'](_0x30fdff);}['registerInlineAttribute'](_0x57db58){this['_inlineAttributeKeys']['add'](_0x57db58);}['startTrackingSession'](_0x11387c){return this['_trackingSessionId']=void 0x0!==_0x11387c?_0x11387c:_0x1a8355(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1936c3){return'attribute'==_0x1936c3['type']?_0x1936c3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1ad002,_0x5b6cf9){const _0x1dac0d=_0x1ad002['getFirstMarker']();this['_model']['change'](_0x28e2f4=>{_0x28e2f4['updateMarker'](_0x1dac0d,{'range':_0x5b6cf9});});}['_addThreadToSuggestion'](_0x18286f){const _0x1277f1=_0x18286f['id'],_0x35a784=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1277f1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35a784,'threadId':_0x1277f1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x268125=this['_commentsRepository']['getCommentThread'](_0x1277f1);_0x268125['unbind']('isRemovable'),_0x268125['isRemovable']=!0x1,_0x18286f['commentThread']=_0x268125;}['_checkSuggestionCorrectness'](_0x2c3ed4,_0x459c49,_0x13df08,_0x48be7e){if(_0x2c3ed4['type']!=_0x459c49||_0x2c3ed4['subType']!=_0x13df08||_0x2c3ed4['creator']['id']!=_0x48be7e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x483cd5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x101903,_0x4f02a3){const _0x2ac172=_0x101903['getFirstRange']();if(_0x4f02a3['isEqual'](_0x2ac172))_0x101903['removeMarkers']();else{if(_0x2ac172['containsRange'](_0x4f02a3)){const _0xb823c2=this['_model']['createPositionAt'](_0x4f02a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x101903,this['_model']['createRange'](_0x2ac172['start'],_0xb823c2));const _0x1282fc=_0x1a8355(),_0x3d8ffb=_0x101903['creator']['id'],_0xea2cbf=_0x101903['type']+':'+_0x101903['subType'];this['_setSuggestionData']({'id':_0x1282fc,'type':_0xea2cbf,'createdAt':new Date(),'authorId':_0x3d8ffb,'data':_0x101903['data'],'attributes':_0x101903['attributes']});const _0x1a432b=this['_model']['createPositionAt'](_0x4f02a3['end']['parent'],'after'),_0x592c5d=this['_model']['createRange'](_0x1a432b,_0x2ac172['end']);this['_addSuggestionMarker'](_0xea2cbf,_0x1282fc,_0x3d8ffb,_0x592c5d);}else{if(_0x2ac172['containsPosition'](_0x4f02a3['start'])){const _0x145986=this['_model']['createPositionAt'](_0x4f02a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x101903,this['_model']['createRange'](_0x2ac172['start'],_0x145986));}else{const _0x1796a1=this['_model']['createPositionAt'](_0x4f02a3['end']['parent'],'after');this['_setSuggestionRange'](_0x101903,this['_model']['createRange'](_0x1796a1,_0x2ac172['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11280f){for(const {suggestion:_0x2d07db,meta:_0x125198}of this['_findSuggestions'](_0x11280f,'insertion')){if(!_0x125198['isOwn'])continue;const _0xd5a9e2=_0x2d07db['getRanges']();for(const _0x1b05f7 of _0xd5a9e2)if(!_0x11280f['getDifference'](_0x1b05f7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5a01f9){const _0x37db5b=this['editor']['plugins']['get']('Users')['getUser'](_0x5a01f9);if(!_0x37db5b)throw new _0x483cd5('track-changes-user-not-found',this);return _0x37db5b;}['_getExternalAuthor'](_0x32ed72){const _0x5613a6=this['editor']['plugins']['get']('Users'),_0x42fc83=_0x4f0f78('external:'+_0x32ed72),_0x385e13=_0x5613a6['getUser'](_0x42fc83);return _0x385e13||_0x5613a6['addUser']({'id':_0x42fc83,'name':_0x32ed72});}['_createSuggestion'](_0x2ed67e,_0x37b8cb,_0x5f32ba,_0x112151,_0x531a69,_0x22591b){const _0x48f4e9=this['_getAuthorFromId'](_0x112151),_0x13f7dd=this['_suggestionFactory']['buildSuggestion'](_0x2ed67e,_0x37b8cb,_0x5f32ba,_0x48f4e9,_0x531a69,_0x115e9d=>{this['_updateSuggestionData'](_0x5f32ba,{'attributes':_0x115e9d});const _0x42e272=this['getSuggestion'](_0x5f32ba);this['_joinWithAdjacentSuggestions'](new Set([_0x42e272])),this['_refreshSuggestionsChain'](new Set([_0x42e272]));},_0x22591b);return this['listenTo'](_0x13f7dd,'accept',()=>{this['_updateSuggestionData'](_0x5f32ba,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x13f7dd,'discard',()=>{this['_updateSuggestionData'](_0x5f32ba,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5f32ba,_0x13f7dd),this['_suggestionState']['set'](_0x13f7dd,'notReady'),_0x13f7dd;}['_splitMarkerName'](_0x301a47){const _0x21227e=_0x301a47['split'](':');return{'group':_0x21227e[0x0],'type':_0x21227e[0x1],'subType':_0x21227e['length']>=0x5?_0x21227e[0x2]:null,'id':_0x21227e['length']<0x5?_0x21227e[0x2]:_0x21227e[0x3],'authorId':_0x21227e['length']<0x5?_0x21227e[0x3]:_0x21227e[0x4],'markerCount':0x6==_0x21227e['length']?_0x21227e[0x5]:null};}['_breakSuggestionMarker'](_0xf039b3,_0x1d5c23,_0x33076f){const _0x52cde4=_0xf039b3['getFirstRange'](),_0x253391=_0x52cde4['start'],_0x4fc188=_0x52cde4['end'];this['_setSuggestionRange'](_0xf039b3,this['_model']['createRange'](_0x253391,_0x1d5c23));const _0x511d55=_0x1a8355(),_0x4cffbd=_0xf039b3['creator']['id'],_0x1130ca=_0xf039b3['type']+(_0xf039b3['subType']?':'+_0xf039b3['subType']:'');this['_setSuggestionData']({'id':_0x511d55,'type':_0x1130ca,'createdAt':new Date(),'authorId':_0x4cffbd,'originalSuggestionId':_0xf039b3['_originalSuggestionId']||_0xf039b3['id'],'attributes':_0xf039b3['attributes'],'data':_0xf039b3['data']});const _0x43b2b8=this['_getAttributeKey'](_0xf039b3);('formatBlock'==_0xf039b3['type']||_0x43b2b8&&this['_isBlockAttribute'](_0x43b2b8))&&(_0x33076f=this['_model']['createPositionBefore'](_0x33076f['parent'])),this['_addSuggestionMarker'](_0x1130ca,_0x511d55,_0x4cffbd,this['_model']['createRange'](_0x33076f,_0x4fc188));}['_findSuggestions'](_0x7e39fa,_0x4544f2=null){const _0x551b8e=[],_0x28fb91=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x7e39fa)||(_0x7e39fa=[_0x7e39fa]);for(const _0x55bce1 of this['getSuggestions']()){if(!_0x55bce1['isInContent'])continue;if(_0x4544f2&&_0x55bce1['type']!=_0x4544f2)continue;let _0x5f46f9=!0x1;for(const _0x527550 of _0x55bce1['getRanges']()){for(const _0x1dde99 of _0x7e39fa){const _0x39b4f7=_0x1dde99['start']['isEqual'](_0x527550['end'])||_0x1dde99['end']['isEqual'](_0x527550['start']);if(_0x39b4f7||_0x1dde99['getIntersection'](_0x527550)){const _0x2da721=_0x1dde99['containsRange'](_0x527550)&&Ft(this['_model']['schema'],_0x527550['start'],_0x1dde99),_0x8985f8=_0x527550['containsRange'](_0x1dde99)&&Ft(this['_model']['schema'],_0x1dde99['start'],_0x527550);_0x551b8e['push']({'suggestion':_0x55bce1,'meta':{'isOwn':_0x28fb91==_0x55bce1['author'],'isNextTo':_0x39b4f7,'isInsideObject':_0x2da721,'containsRangeInObject':_0x8985f8}}),_0x5f46f9=!0x0;break;}}if(_0x5f46f9)break;}}return _0x551b8e;}['_addSuggestionMarker'](_0x12ec5e,_0x3cfa81,_0x1babe8,_0x2a0997,_0xdd99b7){this['_model']['change'](_0x526361=>{let _0x3d6fe8='suggestion:'+_0x12ec5e+':'+_0x3cfa81+':'+_0x1babe8;_0xdd99b7&&(_0x3d6fe8=_0x3d6fe8+':'+_0xdd99b7),_0x526361['addMarker'](_0x3d6fe8,{'range':_0x2a0997,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x539410){const _0x424294=_0x539410['previous'],_0x2dbee5=_0x539410['next'];_0x539410['previous']=null,_0x539410['next']=null,null!=_0x424294&&_0x424294['next']==_0x539410&&(_0x424294['next']=_0x2dbee5),null!=_0x2dbee5&&_0x2dbee5['previous']==_0x539410&&(_0x2dbee5['previous']=_0x424294),'ready'==this['_suggestionState']['get'](_0x539410)&&(this['_suggestionState']['set'](_0x539410,'removed'),this['fire']('suggestionUnloaded',_0x539410,_0x424294,_0x2dbee5));}['_setSuggestionData'](_0x3fc51b){const _0xf3ee93=_0x3fc51b['id'],_0x5e0458=this['addSuggestionData'](_0x3fc51b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56afd8=this['editor']['plugins']['get']('PendingActions'),_0x55ee94=_0x5e0458['hasComments'],_0x88b733=_0x5e0458['subType']?_0x5e0458['type']+':'+_0x5e0458['subType']:_0x5e0458['type'],_0x4c7e0a=this['editor']['locale'],_0x23fedd=_0x56afd8['add'](o(_0x4c7e0a,'PENDING_ACTION_SUGGESTION')),_0x2449c9={'id':_0xf3ee93,'type':_0x88b733,'hasComments':_0x55ee94,'data':_0x3fc51b['data']||null,'originalSuggestionId':_0x3fc51b['originalSuggestionId']||null,'attributes':_0x5e0458['attributes']};this['_adapter']['addSuggestion'](_0x2449c9)['then'](_0x4fc31c=>{_0x5e0458['_saved']=!0x0,_0x56afd8['remove'](_0x23fedd),_0x4fc31c&&_0x4fc31c['createdAt']&&(this['_suggestions']['get'](_0xf3ee93)['createdAt']=_0x4fc31c['createdAt']);})['catch'](_0x504a5d=>{throw _0x5aa01e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e0458['discard']();}),_0x5e0458['stopListening'](),this['_suggestions']['delete'](_0x5e0458['id']),this['_suggestionState']['delete'](_0x5e0458),_0x504a5d;});}return _0x5e0458;}['_isBlockAttribute'](_0x4de224){return this['_blockAttributeKeys']['has'](_0x4de224);}['_updateSuggestionData'](_0x1d2305,_0x3aa0aa){const _0xb39d24=this['editor']['plugins']['get']('PendingActions'),_0x507ceb=this['getSuggestion'](_0x1d2305);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x507ceb['_saved']){const _0x49a41e=_0xb39d24['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1d2305,_0x3aa0aa)['then'](()=>{_0xb39d24['remove'](_0x49a41e);});}else _0x507ceb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1d2305,_0x3aa0aa);});}}['_getSuggestionData'](_0x2e9565){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x483cd5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e9565);}['_handleNewSuggestionMarker'](_0x4304b2){const {id:_0x526071,type:_0x3e775b,subType:_0xc552f0,authorId:_0x186b74}=this['_splitMarkerName'](_0x4304b2),_0x2a3ae9=this['_suggestions']['get'](_0x526071)||this['_createSuggestion'](_0x3e775b,_0xc552f0,_0x526071,_0x186b74,{});switch(this['_checkSuggestionCorrectness'](_0x2a3ae9,_0x3e775b,_0xc552f0,_0x186b74),this['_suggestionState']['get'](_0x2a3ae9)){case'notReady':this['_getSuggestionData'](_0x526071)['then'](_0x9ac65e=>{let _0x25d6c8=Promise['resolve']();_0x9ac65e['hasComments']&&(_0x25d6c8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x526071})),_0x25d6c8['then'](()=>{this['addSuggestionData'](_0x9ac65e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2a3ae9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x526071,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2a3ae9,'ready'),this['fire']('suggestionLoaded',_0x2a3ae9);break;case'ready':this['fire']('suggestionChanged',_0x2a3ae9);}return _0x2a3ae9['addMarkerName'](_0x4304b2),_0x2a3ae9;}['_refreshSuggestionsChain'](_0x402c75){const _0x25c43e=Array['from'](_0x402c75),_0x56aa6b=_0x25c43e['filter'](_0x1f656f=>'attribute'==_0x1f656f['type']);this['_refreshAttributeSuggestionsChain'](_0x56aa6b);const _0x3e4a8a=_0x25c43e['filter'](_0x611a6c=>!_0x611a6c['isMultiRange']&&'attribute'!=_0x611a6c['type']),_0x1cc1b2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x909920=>!_0x909920['isMultiRange']&&'attribute'!=_0x909920['type']),_0x448333=_0x1cc1b2['filter'](_0x5164ea=>!_0x402c75['has'](_0x5164ea)),_0x13c641=new Map(_0x1cc1b2['map'](_0x16bcce=>[_0x16bcce,this['_suggestionFactory']['getSuggestionCallback'](_0x16bcce['type'],_0x16bcce['subType'],'chain')])),_0x28e522=new Map(_0x1cc1b2['map'](_0x143b37=>[_0x143b37,_0x143b37['getFirstRange']()])),_0x394048=new Set(),_0x345ddc=new Set();for(let _0x49038f=0x0;_0x49038f<_0x3e4a8a['length'];_0x49038f++)_0x4932a7(_0x3e4a8a[_0x49038f],_0x3e4a8a,_0x49038f+0x1);for(let _0x17e676=0x0;_0x17e676<_0x3e4a8a['length'];_0x17e676++)_0x4932a7(_0x3e4a8a[_0x17e676],_0x448333,0x0);const _0x2e14c2=new Set();for(let _0x3ffa21=0x0;_0x3ffa21<_0x3e4a8a['length'];_0x3ffa21++){const _0x142184=_0x3e4a8a[_0x3ffa21];!_0x345ddc['has'](_0x142184)&&_0x142184['previous']&&(_0x2e14c2['add'](_0x142184['previous']),_0x142184['previous']['next']===_0x142184&&(_0x142184['previous']['next']=null),_0x142184['previous']=null),!_0x394048['has'](_0x142184)&&_0x142184['next']&&(_0x2e14c2['add'](_0x142184['next']),_0x142184['next']['previous']===_0x142184&&(_0x142184['next']['previous']=null),_0x142184['next']=null);}function _0x4932a7(_0x55cbbb,_0x33f296,_0x5e060d){for(let _0x3c5068=_0x5e060d;_0x3c5068<_0x33f296['length'];_0x3c5068++){const _0x4fd376=_0x378f4f(_0x55cbbb,_0x33f296[_0x3c5068]);_0x4fd376&&(_0x4fd376[0x0]['next']=_0x4fd376[0x1],_0x4fd376[0x1]['previous']=_0x4fd376[0x0],_0x394048['add'](_0x4fd376[0x0]),_0x345ddc['add'](_0x4fd376[0x1]));}}function _0x378f4f(_0x41355b,_0x11db79){if(_0x41355b['author']['id']!==_0x11db79['author']['id'])return null;const _0x5bf34c=_0x13c641['get'](_0x41355b)(_0x41355b,_0x11db79,_0x28e522['get'](_0x41355b),_0x28e522['get'](_0x11db79));if(!_0x5bf34c)return null;return _0x13c641['get'](_0x11db79)(_0x41355b,_0x11db79,_0x28e522['get'](_0x41355b),_0x28e522['get'](_0x11db79))?_0x5bf34c[0x1]['commentThread']&&_0x5bf34c[0x1]['commentThread']['length']?null:_0x5bf34c:null;}_0x2e14c2['size']&&this['_refreshSuggestionsChain'](_0x2e14c2);}['_refreshAttributeSuggestionsChain'](_0x44d35c){if(0x0==_0x44d35c['length'])return;const _0x2231f1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1190ad=>'attribute'==_0x1190ad['type']&&_0x1190ad['_isDataLoaded']),_0x1684b8=[],_0x47216d=new Map();for(const _0x2586b2 of _0x2231f1){const _0x2de4e2=_0x4f0f78(_0x2586b2['attributes']);_0x47216d['has'](_0x2de4e2)||(_0x47216d['set'](_0x2de4e2,_0x1684b8['length']),_0x1684b8['push']([]));const _0x39c19e=_0x47216d['get'](_0x2de4e2);_0x1684b8[_0x39c19e]['push'](_0x2586b2);}!(function(){_0x1684b8['sort']((_0x161e2c,_0x17fa32)=>{const _0x49f6ba=_0x161e2c[0x0]['createdAt'],_0x517749=_0x17fa32[0x0]['createdAt'];return _0x49f6ba==_0x517749?_0x161e2c[0x0]['attributes']['groupId']<_0x17fa32[0x0]['attributes']['groupId']?-0x1:0x1:_0x49f6ba<_0x517749?-0x1:0x1;});for(const _0xbe982b of _0x1684b8)_0xbe982b['sort']((_0x184f14,_0x3f3a6d)=>_0x184f14['id']<_0x3f3a6d['id']?-0x1:0x1);}());for(let _0x264758=0x0;_0x264758<_0x1684b8['length'];_0x264758++){if(0x0==_0x1684b8[_0x264758]['length'])continue;const _0x19961c=[];for(let _0x2c9252=_0x264758+0x1;_0x2c9252<_0x1684b8['length'];_0x2c9252++)0x0!=_0x1684b8[_0x2c9252]['length']&&_0xea8427(_0x1684b8[_0x264758],_0x1684b8[_0x2c9252])&&_0x19961c['push'](_0x2c9252);for(const _0x444d59 of _0x19961c)_0x1684b8[_0x264758]=_0x1684b8[_0x264758]['concat'](_0x1684b8[_0x444d59]),_0x1684b8[_0x444d59]=[];}for(const _0x5df824 of _0x1684b8)for(let _0x22c09f=0x0;_0x22c09f<_0x5df824['length'];_0x22c09f++){const _0x13d65a=_0x5df824[_0x22c09f+0x1]||null;_0x5df824[_0x22c09f]['next']!==_0x13d65a&&(_0x5df824[_0x22c09f]['next']=_0x13d65a);}for(const _0x34a5e of _0x1684b8)for(let _0x1d913a=0x0;_0x1d913a<_0x34a5e['length'];_0x1d913a++){const _0x4bf0a2=_0x34a5e[_0x1d913a-0x1]||null;_0x34a5e[_0x1d913a]['previous']!==_0x4bf0a2&&(_0x34a5e[_0x1d913a]['previous']=_0x4bf0a2);}function _0xea8427(_0xaa8fc,_0x52684d){if(_0xaa8fc[0x0]['attributes']['groupId']!==_0x52684d[0x0]['attributes']['groupId']&&_0xaa8fc[0x0]['author']!==_0x52684d[0x0]['author'])return!0x1;if(!function(_0x21ea8a,_0x2fe8c7){if(!_0x21ea8a['hasComments']&&!_0x2fe8c7['hasComments'])return!0x0;if(_0x21ea8a['hasComments']&&_0x2fe8c7['hasComments'])return!0x1;if(_0x21ea8a['hasComments']&&_0x2fe8c7['createdAt']<_0x21ea8a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2fe8c7['hasComments']&&_0x21ea8a['createdAt']<_0x2fe8c7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xaa8fc[0x0],_0x52684d[0x0]))return!0x1;const _0x1525f5=Ut(_0xaa8fc[0x0]['attributes'],['groupId','trackingSessionId']),_0x335b8a=Ut(_0x52684d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5b6043(_0x1525f5,_0x335b8a))return!0x1;if(_0xaa8fc[0x0]['attributes']['groupId']==_0x52684d[0x0]['attributes']['groupId'])return!0x0;if(_0xaa8fc[0x0]['attributes']['trackingSessionId']!==_0x52684d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xaa8fc['every'](_0x82b622=>_0x52684d['some'](_0x136cda=>_0x82b622['getFirstRange']()['isEqual'](_0x136cda['getFirstRange']())))&&_0x52684d['every'](_0x1c3786=>_0xaa8fc['some'](_0x40f343=>_0x1c3786['getFirstRange']()['isEqual'](_0x40f343['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x39a133){const _0x1fbcc5=Array['from'](_0x39a133),_0x143969=this['getSuggestions']({'skipNotAttached':!0x0}),_0x49eb95=_0x143969['filter'](_0x16123d=>!_0x39a133['has'](_0x16123d)),_0x255967=new Map(_0x1fbcc5['map'](_0x1e08cd=>[_0x1e08cd,this['_suggestionFactory']['getSuggestionCallback'](_0x1e08cd['type'],_0x1e08cd['subType'],'join')])),_0x18a3cc=new Map(_0x143969['map'](_0x3bf598=>[_0x3bf598,_0x3bf598['getRanges']()]));for(let _0xa5355f=0x0;_0xa5355f<_0x1fbcc5['length'];_0xa5355f++){if(_0x3a0877(this,_0x1fbcc5[_0xa5355f],_0x1fbcc5,_0xa5355f+0x1))return!0x0;}for(let _0x45984e=0x0;_0x45984e<_0x1fbcc5['length'];_0x45984e++){if(_0x3a0877(this,_0x1fbcc5[_0x45984e],_0x49eb95,0x0))return!0x0;}return!0x1;function _0x3a0877(_0x470dfc,_0x45d2e8,_0x39e53e,_0x409700){for(let _0x550254=_0x409700;_0x550254<_0x39e53e['length'];_0x550254++){const _0x4970c3=_0x39e53e[_0x550254];if(_0x4970c3['type']!==_0x45d2e8['type']||_0x4970c3['author']['id']!==_0x45d2e8['author']['id']||_0x4970c3['subType']!==_0x45d2e8['subType'])continue;if(!Wt(_0x45d2e8,_0x4970c3))continue;if('attribute'==_0x45d2e8['type']&&_0x45d2e8['data']['oldValue']!=_0x4970c3['data']['oldValue'])continue;if('attribute'==_0x45d2e8['type']&&_0x470dfc['_isBlockAttribute'](_0x45d2e8['data']['key']))continue;if('formatBlock'==_0x45d2e8['type']){const _0x12c4b8=_0x470dfc['editor']['model'],_0x24c9bd=_0x45d2e8['getContainedElement']();if(_0x24c9bd&&(_0x12c4b8['schema']['isObject'](_0x24c9bd)||_0x12c4b8['schema']['isLimit'](_0x24c9bd)))continue;}const _0x1b492a=_0x255967['get'](_0x45d2e8),_0x69bef0=_0x18a3cc['get'](_0x45d2e8),_0x3daaf8=_0x18a3cc['get'](_0x4970c3),_0x3a0125=_0x45d2e8['commentThread']&&_0x45d2e8['commentThread']['length'],_0x29d6d7=_0x4970c3['commentThread']&&_0x4970c3['commentThread']['length'];if(!_0x3a0125&&_0x1b492a(_0x3daaf8,_0x69bef0))return _0x470dfc['_joinSuggestions'](_0x4970c3,_0x45d2e8),_0x18a3cc['delete'](_0x45d2e8),!0x0;if(!_0x29d6d7&&_0x1b492a(_0x69bef0,_0x3daaf8))return _0x470dfc['_joinSuggestions'](_0x45d2e8,_0x4970c3),_0x18a3cc['delete'](_0x4970c3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4bc37a,_0x2cd401){if(_0x4bc37a['isMultiRange']){for(const _0x3fd3c8 of _0x2cd401['getRanges']())_0x4bc37a['addRange'](_0x3fd3c8);}else{const _0x2d58bc=_0x2cd401['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4bc37a,this['_model']['createRange'](_0x4bc37a['getFirstRange']()['start'],_0x2d58bc));}_0x2cd401['removeMarkers']();}['_getMarkerAnnouncementText'](_0x15a2f4,_0x2e9f27,_0x49ea37){const _0xf86434=_0x15a2f4['startsWith']('format')||_0x15a2f4['startsWith']('attribute')?'FORMATTING':_0x15a2f4['toUpperCase']();return o(this['editor']['locale'],_0x2e9f27+'_'+_0xf86434+'_SUGGESTION_ANNOUNCEMENT',_0x49ea37);}['_initAriaMarkerChangeAnnouncements'](){const _0x2d3926=this['editor'];if(!_0x2d3926['ui'])return;const {ariaLiveAnnouncer:_0x561d6c}=_0x2d3926['ui'];_0x2c7d31(this['_model'],({left:_0x498656,entered:_0x5ce623})=>{for(const _0x5321b1 of _0x498656){const {group:_0x5843df,type:_0x2f952c}=this['_splitMarkerName'](_0x5321b1['name']);if('suggestion'===_0x5843df){_0x561d6c['announce'](this['_getMarkerAnnouncementText'](_0x2f952c,'LEAVE'));break;}}for(const _0x52a93b of _0x5ce623){const {group:_0x3287ac,type:_0x2b5c32}=this['_splitMarkerName'](_0x52a93b['name']);if('suggestion'===_0x3287ac){_0x561d6c['announce'](this['_getMarkerAnnouncementText'](_0x2b5c32,'ENTER',_0x5ad898(_0x49e48c)));break;}}});}['_processAttributeChanges'](_0xf8eea6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5ea387=this['editor'],_0x257bb1=_0x5ea387['model']['document']['differ']['getChanges']();if(0x0==_0x257bb1['length'])return!0x1;const _0x9d8722=[],_0x337089=_0x257bb1['filter'](_0x630a5a=>'attribute'==_0x630a5a['type']),_0x2baee4=_0x257bb1['filter'](_0x2912da=>'insert'==_0x2912da['type']&&'$text'!=_0x2912da['name']),_0x2389ee=_0x257bb1['filter'](_0x24f62f=>'remove'==_0x24f62f['type']&&'$text'!=_0x24f62f['name']);for(const _0x5bcb8b of _0x337089)_0x9d8722['push']({'key':_0x5bcb8b['attributeKey'],'newValue':_0x5bcb8b['attributeNewValue'],'oldValue':_0x5bcb8b['attributeOldValue'],'range':Ht(_0x5bcb8b['range'],_0x5ea387['model'])});for(const _0x321235 of _0x2baee4){const _0x290449=_0x2389ee['find'](_0x5077ab=>_0x5077ab['position']['isEqual'](_0x321235['position']));_0x290449&&_0x9d8722['push']({'key':m,'newValue':_0x321235['name'],'oldValue':_0x290449['name'],'range':_0x5ea387['model']['createRangeOn'](_0x321235['position']['nodeAfter'])});}return 0x0!=_0x9d8722['length']&&this['_reduceExistingSuggestions'](_0xf8eea6,_0x9d8722);}['_processAttributeSuggestions'](_0x103eac){let _0x4a189f=!0x1;const _0x333fbf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2bad21=>_0x2bad21['data']['newRange']&&_0x2bad21['name']['startsWith']('suggestion:attribute:'));for(const _0x6bf3f6 of _0x333fbf){const {subType:_0x35ce01,id:_0x43239b}=this['_splitMarkerName'](_0x6bf3f6['name']),_0x5f5ac5=_0x35ce01['split']('|')[0x0];for(const _0x3bd364 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bd364['id']!=_0x43239b&&'attribute'==_0x3bd364['type']&&_0x3bd364['data']&&_0x3bd364['data']['key']==_0x5f5ac5&&_0x3bd364['getFirstRange']()['isIntersecting'](_0x6bf3f6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bd364,_0x6bf3f6['data']['newRange'],_0x103eac),_0x4a189f=!0x0);}return _0x4a189f;}['recordAttributeChanges'](_0x954800){this['_recordAttributeSuggestions']=!0x0,_0x954800();}['_isRegisteredAttribute'](_0x43a702){const _0x2ef9d4=this['_isBlockAttribute'](_0x43a702),_0x17d29d=this['_inlineAttributeKeys']['has'](_0x43a702);return _0x2ef9d4||_0x17d29d;}['_reduceExistingSuggestions'](_0x3e370f,_0x1f7e82){if(0x0==_0x1f7e82['length'])return!0x1;let _0x5b2e58=!0x1;for(const _0x399969 of _0x1f7e82){const _0x2abf90=this['_findSuggestions'](_0x399969['range'],'attribute')['filter'](_0x11eb0a=>!_0x11eb0a['meta']['isNextTo'])['map'](_0x1f6ffa=>_0x1f6ffa['suggestion']),_0x2f494d=_0x4f0f78({'newValue':_0x399969['newValue']});_0x2abf90['filter'](_0x7d84bd=>{const [_0x485b67,_0x3f8ffb]=_0x7d84bd['subType']['split']('|');return _0x485b67==_0x399969['key']&&_0x3f8ffb!=_0x2f494d;})['forEach'](_0x259569=>{this['_reduceSuggestionAttributeRange'](_0x259569,_0x399969['range'],_0x3e370f),_0x5b2e58=!0x0;});}return _0x5b2e58;}['_reduceSuggestionAttributeRange'](_0x1c09e5,_0x25910c,_0x3e0208){const _0x4c527a=_0x1c09e5['getFirstRange']()['getDifference'](_0x25910c);0x0!==_0x4c527a['length']?0x1!==_0x4c527a['length']?this['_breakSuggestionMarker'](_0x1c09e5,_0x25910c['start'],_0x25910c['end']):this['_setSuggestionRange'](_0x1c09e5,_0x4c527a[0x0]):_0x3e0208['removeMarker'](_0x1c09e5['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xe0d512){this['_editor']=_0xe0d512,this['_model']=_0xe0d512['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ce28b,_0x2e6311,_0x30ee34,_0x5988f9,_0x45b945,_0x97a2a0,_0x22ce33){return new T(this['_model'],{'type':_0x2ce28b,'subType':_0x2e6311,'id':_0x30ee34,'originalSuggestionId':_0x22ce33,'author':_0x5988f9,'creator':_0x5988f9,'attributes':_0x45b945,'onAttributesChange':_0x97a2a0,'onAccept':(..._0x75970d)=>this['getSuggestionCallback'](_0x2ce28b,_0x2e6311,'accept')(..._0x75970d),'onDiscard':(..._0x5148a9)=>this['getSuggestionCallback'](_0x2ce28b,_0x2e6311,'discard')(..._0x5148a9)});}['registerCustomCallback'](_0xaea706,_0x5a0798,_0x5eaf93,_0x5a3544){const _0x498965=_0xaea706+':'+_0x5a0798+':'+_0x5eaf93;this['_customCallbacks']['set'](_0x498965,_0x5a3544);}['getSuggestionCallback'](_0x5506fd,_0x2b1eff,_0xba059e){const _0x39650=_0x5506fd+':'+_0x2b1eff+':'+_0xba059e;return this['_customCallbacks']['get'](_0x39650)||this['_defaultCallbacks']['get'](_0x5506fd+':'+_0xba059e);}['_registerDefaultCallbacks'](){const _0x3676c8=()=>!0x1,_0x27c028=_0x3eed23=>{_0x3eed23['sort']((_0x29eec7,_0x4d82e2)=>_0x29eec7['start']['isBefore'](_0x4d82e2['start'])?0x1:-0x1),this['_model']['change'](_0x8b7850=>{for(const _0xe2f8f4 of _0x3eed23){let _0x5a6147;_0x5a6147=_0xe2f8f4['end']['isAtEnd']&&_0xe2f8f4['end']['parent']==_0xe2f8f4['start']['nodeAfter']?_0x8b7850['createSelection'](_0xe2f8f4['start']['nodeAfter'],'on'):_0x8b7850['createSelection'](_0xe2f8f4),this['_model']['deleteContent'](_0x5a6147,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x488de3=(_0x882365,_0x88d4b2)=>{_0x88d4b2&&this['_model']['change'](_0x16d1f8=>{const {commandName:_0x3833df,commandParams:_0x2dfa92=[]}=_0x88d4b2,_0x178096=_0x882365['map'](_0x1bfe08=>(Pt(_0x1bfe08)&&(_0x1bfe08=this['_model']['createRange'](_0x1bfe08['end'])),_0x1bfe08))['filter'](_0x2513b7=>'$graveyard'!==_0x2513b7['root']['rootName']);if(_0x178096['length']<0x1)return;const _0x1e9394=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x18e6a1=>_0x414e2a['fromRange'](_0x18e6a1));_0x16d1f8['setSelection'](_0x178096);for(const _0x3fad86 of this['_editor']['commands']['commands']())_0x3fad86['refresh']();_0x2dfa92['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3833df,..._0x2dfa92);const _0x40753f=_0x1e9394['filter'](_0x2c1a10=>'$graveyard'!=_0x2c1a10['root']['rootName']);_0x40753f['length']>0x0&&_0x16d1f8['setSelection'](_0x40753f);for(const _0x411980 of _0x1e9394)_0x411980['detach']();});},_0x1efbf8=(_0x2f00db,_0x2f4636)=>0x1==_0x2f00db['length']&&0x1==_0x2f4636['length']&&_0x2f00db[0x0]['end']['isEqual'](_0x2f4636[0x0]['start']),_0x290eb3=(_0x487f36,_0x511fc5,_0x1670c6,_0x32e790)=>zt(_0x487f36,_0x511fc5,_0x1670c6,_0x32e790)?[_0x487f36,_0x511fc5]:zt(_0x511fc5,_0x487f36,_0x32e790,_0x1670c6)?[_0x511fc5,_0x487f36]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3676c8),this['_defaultCallbacks']['set']('insertion:discard',_0x27c028),this['_defaultCallbacks']['set']('insertion:join',_0x1efbf8),this['_defaultCallbacks']['set']('insertion:chain',_0x290eb3),this['_defaultCallbacks']['set']('deletion:accept',_0x27c028),this['_defaultCallbacks']['set']('deletion:discard',_0x3676c8),this['_defaultCallbacks']['set']('deletion:join',_0x1efbf8),this['_defaultCallbacks']['set']('deletion:chain',_0x290eb3),this['_defaultCallbacks']['set']('formatInline:accept',_0x488de3),this['_defaultCallbacks']['set']('formatInline:discard',_0x3676c8),this['_defaultCallbacks']['set']('formatInline:join',_0x1efbf8),this['_defaultCallbacks']['set']('formatInline:chain',_0x3676c8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x488de3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3676c8),this['_defaultCallbacks']['set']('formatBlock:join',_0x1efbf8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3676c8),this['_defaultCallbacks']['set']('attribute:accept',_0x3676c8),this['_defaultCallbacks']['set']('attribute:discard',(_0x538ad0,_0x11e0af)=>{if(!_0x11e0af)return;const _0x174b73=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x57f0fa=>{if(_0x11e0af['key']==m)for(const _0x30146f of _0x538ad0){const _0x42d7b9=_0x30146f['start']['nodeAfter'],_0x59a43f=_0x11e0af['oldValue'];_0x57f0fa['rename'](_0x42d7b9,_0x59a43f);}else{if(_0x174b73['_isBlockAttribute'](_0x11e0af['key'])){for(const _0x4b7d50 of _0x538ad0)void 0x0!==_0x11e0af['oldValue']?_0x57f0fa['setAttribute'](_0x11e0af['key'],_0x11e0af['oldValue'],_0x4b7d50['start']['nodeAfter']):_0x57f0fa['removeAttribute'](_0x11e0af['key'],_0x4b7d50['start']['nodeAfter']);}else{for(const _0x5063e1 of _0x538ad0)_0x11e0af['oldValue']?_0x57f0fa['setAttribute'](_0x11e0af['key'],_0x11e0af['oldValue'],_0x5063e1):_0x57f0fa['removeAttribute'](_0x11e0af['key'],_0x5063e1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1efbf8);}}function Ft(_0x3d2a73,_0x4e7257,_0x4c1f71){for(const _0x4fe4a0 of _0x4e7257['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fe4a0['root']==_0x4fe4a0)return!0x1;if(!_0x4c1f71['containsItem'](_0x4fe4a0))return!0x1;if(_0x3d2a73['isObject'](_0x4fe4a0)||_0x3d2a73['isLimit'](_0x4fe4a0))return!0x0;}return!0x1;}function Pt(_0x2ea9bf){return _0x2ea9bf['end']['parent']==_0x2ea9bf['start']['nodeAfter']&&_0x2ea9bf['end']['isAtStart'];}function Gt(_0x398b88,_0x2d8826,_0x3289a5,_0x3d92b0){const _0xc6cb76=_0x4eb826=>!_0x4eb826['item']['is']('$textProxy')&&!_0x3d92b0['isObject'](_0x4eb826['item']),_0x199cb3=_0x398b88['start']['getLastMatchingPosition'](_0xc6cb76),_0xdfc430=_0x398b88['end']['getLastMatchingPosition'](_0xc6cb76,{'direction':'backward'});return(!_0x398b88['start']['isEqual'](_0x199cb3)||!_0x398b88['end']['isEqual'](_0xdfc430))&&(_0x199cb3['isBefore'](_0xdfc430)?_0x3289a5['updateMarker'](_0x2d8826,{'range':_0x3289a5['createRange'](_0x199cb3,_0xdfc430)}):_0x3289a5['removeMarker'](_0x2d8826),!0x0);}function Lt(_0x45fa6e){return _0x4f0f78(_0x45fa6e);}function Jt(_0x496e43){const _0x4b227f=_0x496e43['start']['nodeAfter'];return _0x4b227f&&_0x4b227f['is']('element');}function Kt(_0x314e74){return!Pt(_0x314e74)&&!function(_0x490402){return _0x490402['start']['parent']==_0x490402['end']['nodeBefore']&&_0x490402['start']['isAtEnd'];}(_0x314e74);}function Ht(_0x233451,_0x546290){return null==_0x233451['end']['nodeBefore']&&_0x233451['end']['parent']==_0x233451['start']['nodeAfter']?qt(_0x233451['start']['nodeAfter'],_0x546290):_0x233451;}function qt(_0x124e66,_0x246989){const _0x58415a=_0x246989['schema']['isObject'](_0x124e66)||_0x246989['schema']['isSelectable'](_0x124e66);return _0x246989['createRange'](_0x246989['createPositionAt'](_0x124e66,'before'),_0x58415a?_0x246989['createPositionAfter'](_0x124e66):_0x246989['createPositionAt'](_0x124e66,'end'));}function zt(_0xacc039,_0x1850e1,_0x141ee4,_0x295da4){return!!Wt(_0xacc039,_0x1850e1)&&_0x141ee4['end']['isEqual'](_0x295da4['start']);}function Wt(_0x43ac4f,_0x38f362){if(!_0x43ac4f['_isDataLoaded']||!_0x38f362['_isDataLoaded'])return!0x1;const _0x5e69a0=new Set(Object['keys'](_0x43ac4f['attributes'])),_0x3ddfca=new Set(Object['keys'](_0x38f362['attributes']));if(_0x5e69a0['delete']('groupId'),_0x3ddfca['delete']('groupId'),0x0==_0x5e69a0['size']&&0x0==_0x3ddfca['size'])return!0x0;if(_0x5e69a0['size']!=_0x3ddfca['size'])return!0x1;const _0x5b9531={..._0x43ac4f['attributes']},_0x49fd3c={..._0x38f362['attributes']};return delete _0x5b9531['groupId'],delete _0x49fd3c['groupId'],JSON['stringify'](_0x5b9531)==JSON['stringify'](_0x49fd3c);}function Qt(_0x1b58c6,_0x5d360c){const _0x20ed6b=Xt(_0x1b58c6['attributes']),_0x1f96c1=Xt(_0x5d360c);if(!_0x1b58c6['_isDataLoaded'])return!0x1;for(const _0x30c549 of Object['keys'](_0x1f96c1))if(!_0x5b6043(_0x20ed6b[_0x30c549],_0x1f96c1[_0x30c549]))return!0x1;return!0x0;}function Xt(_0x4a780d){const _0x5a2dbe=Object['assign']({},_0x4a780d);return delete _0x5a2dbe['skipNestingCheck'],delete _0x5a2dbe['tablePasteChainId'],_0x5a2dbe;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x54f4cb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x237a8e,_0x320438,_0x18f46d,_0x4b91c1){super(),this['model']=_0x320438,this['view']=_0x18f46d,this['commentThreadController']=_0x4b91c1,this['_editor']=_0x237a8e,this['_acceptCommand']=_0x237a8e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x237a8e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1edcb8,_0x73f02e)=>_0x1edcb8||_0x73f02e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12afb4=>_0x12afb4&&this['_editor']['model']['canEditAt'](_0x320438['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4fe338=>_0x4fe338&&this['_editor']['model']['canEditAt'](_0x320438['getRanges']())),this['_pendingAction']=null,_0x18f46d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x18f46d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x18f46d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x18f46d,'change:isDirty',()=>{_0x18f46d['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x5e17a5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5e17a5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x376071{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2b5950,_0x5d820d,_0x195d63,_0x299332){super(_0x2b5950),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4675a1(_0x2b5950,o(_0x2b5950,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d820d['authoredAt']),this['bind']('authoredAt')['to'](_0x5d820d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x5d820d,'authoredAt',this,'descriptionParts',(_0x4f2884,_0x142ba3,_0x5368e5)=>{const _0x312177=_0x5368e5['map'](_0x28d4a1=>ls(_0x28d4a1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f2884-0x1,_0x5d820d['author']['name'],_0x142ba3?_0x299332['formatDateTime'](_0x142ba3):'',new DOMParser()['parseFromString'](_0x312177,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3611cc(),this['focusTracker']=new _0x233f8c(),this['keystrokes']=new _0x3f1993(),this['focusCycler']=new _0x180cf0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bfbf6=>_0x2bfbf6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d820d,this['_localUser']=_0x195d63,this['_config']=_0x299332,_0x299332['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3b1451(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xde88a3}=this['_config'];this['commentsListView']=new _0xde88a3(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x17cd16=>_0x17cd16+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x327e57,_0xfb2744)=>_0x327e57||!!_0xfb2744);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d0f42}=this['_config'],_0x4ccefd=new _0x4d0f42(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c5419=_0x4ccefd['commentInputView'];return _0x4ccefd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c5419,'value',(_0x503230,_0xdac3b9,_0x40f851)=>!!_0x40f851||_0x503230&&!_0xdac3b9),_0x3c5419['on']('submit',(_0x3b50b0,_0x918116)=>{this['fire']('addComment',_0x918116),_0x3c5419['editor']['setData']('');}),_0x3c5419['on']('cancel',()=>this['focus']()),_0x3c5419['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ccefd;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x10c3c9,_0x27aa0a,_0x5e874a,_0x43b82f){super(_0x10c3c9,_0x27aa0a,_0x5e874a,_0x43b82f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44612a=>_0x44612a&&_0x44612a[0x0]?_0x44612a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa902fb,_0x56b4e3)=>{let _0x58528b='';for(const _0x681402 of _0xa902fb)_0x58528b+='<p>'+ls(_0x681402['content'],_0x681402['color'])+'</p>';return _0x56b4e3?_0x58528b:_0x2261cb(_0x58528b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x43b82f['SuggestionView'](_0x10c3c9,_0x27aa0a,{'formatDateTime':_0x43b82f['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3360e4=this['bindTemplate'],_0x15835d=[this['suggestionView']];return this['commentsListView']&&_0x15835d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x15835d['push'](this['commentThreadInputView']),_0x15835d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3360e4['if']('isActive','ck-suggestion-wrapper--active'),_0x3360e4['to']('type',_0x592706=>'ck-suggestion-'+_0x592706),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':0x0,'role':'listitem','aria-label':_0x3360e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x15835d};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x376071{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a6672,_0x481ba1,_0x28d25d){super(_0x2a6672),this['_model']=_0x481ba1,this['_config']=_0x28d25d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x481ba1),this['acceptButton']=this['_createButton'](o(_0x2a6672,'Accept\x20suggestion'),_0x134e14,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2a6672,'Discard\x20suggestion'),_0xd2a307,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x44416a(_0x2a6672,_0x481ba1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3611cc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x233f8c(),this['keystrokes']=new _0x3f1993(),this['focusCycler']=new _0x180cf0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x31c45b=>_0x31c45b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x32a28e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x32a28e['innerHTML']=this['description'],this['on']('change:description',(_0xea5997,_0x4cda76,_0x1f615f)=>{_0x32a28e['innerHTML']=_0x1f615f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5de2a4=this['bindTemplate'],_0x38336a=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5de2a4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5de2a4['to']('authoredAt',_0x3e7333=>this['_config']['formatDateTime'](_0x3e7333))}]}]},{'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['_model']['isExternal']&&_0x38336a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x38336a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x169201,_0x15843a,_0x54fbed,_0x1d4f59,_0x1f267d){const _0x18fc89=new _0x427ae6(this['locale']);return _0x18fc89['set']({'label':_0x169201,'icon':_0x15843a,'tooltip':!0x0,'tooltipPosition':_0x1f267d}),_0x18fc89['extendTemplate']({'attributes':{'class':_0x54fbed}}),_0x18fc89['on']('execute',()=>{this['fire'](_0x1d4f59,this['_model']['id']);}),_0x18fc89;}['_setupKeyboardNavigation'](){const _0x1cae3a=this['element'];this['keystrokes']['listenTo'](_0x1cae3a);for(const _0x24d86f of this['focusables'])this['focusTracker']['add'](_0x24d86f['element']),this['keystrokes']['listenTo'](_0x24d86f['element']);this['keystrokes']['set']('enter',(_0x388fc5,_0x3270b4)=>{_0x1cae3a===_0x388fc5['target']&&(this['focusCycler']['focusFirst'](),_0x3270b4());}),this['keystrokes']['set']('esc',(_0x4ea4a1,_0x2c966a)=>{_0x1cae3a!==_0x4ea4a1['target']&&(this['focus'](),_0x2c966a());});}}class u extends _0xeec5ec{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x29227a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d4130){super(_0x2d4130),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x515605=this['editor']['config'];_0x515605['define']('trackChanges.SuggestionThreadView',fe),_0x515605['define']('trackChanges.SuggestionView',we),_0x515605['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x515605['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4b2ded,_0x98b012){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x397287,_0x2d0f91]of this['_handleControllerBuffer']){const _0x2f405a=this['_suggestionToController']['has'](_0x397287);_0x2f405a||_0x2d0f91?_0x2f405a&&_0x2d0f91&&this['_destroyController'](_0x397287):this['_initializeController'](_0x397287);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4b2ded,_0x98b012);}['init'](){const _0xef82cf=this['editor'],_0x3c9770=_0xef82cf['plugins']['get']('TrackChangesEditing'),_0x2cd86a=_0xef82cf['plugins']['get']('Annotations'),_0x31e63f=_0xef82cf['plugins']['get']('EditorAnnotations'),_0x54064f=_0xef82cf['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x31e63f['addSourceCollector'](()=>{const _0x5b7aba=[];for(const [_0x36234c,_0xbc018b]of Array['from'](this['_suggestionToController'])){const _0x525276=_0x36234c['getAllAdjacentSuggestions'](),_0x205e47=[];for(const _0xd23280 of _0x525276){if(!_0xd23280['isInContent'])continue;if(_0xd23280['isMultiRange']){_0x205e47['push'](..._0xd23280['getRanges']());continue;}const _0x1164aa=_0xd23280['getFirstRange']();if(_0x205e47['length']>0x0){const _0xe2d2d5=_0x205e47[0x0]['getJoined'](_0x1164aa);if(_0xe2d2d5){_0x205e47[0x0]=_0xe2d2d5;continue;}}_0x205e47['push'](_0x1164aa);}_0x5b7aba['push']([_0xbc018b['view'],_0x205e47]);}return _0x5b7aba;}),this['listenTo'](_0x3c9770,'suggestionLoaded',(_0x362c0a,_0x24963a)=>{this['listenTo'](_0x24963a,'change:previous',(_0x281663,_0x9b34e0,_0x51aa3d,_0x1cf86b)=>{_0x24963a['isInContent']&&(null==_0x51aa3d?(this['_updateController'](_0x1cf86b['head']),this['_handleSuggestionControllerDelayed'](_0x24963a,!0x1)):(this['_updateController'](_0x51aa3d['head']),null==_0x1cf86b&&this['_handleSuggestionControllerDelayed'](_0x24963a,!0x0)));}),null!==_0x24963a['previous']?this['_updateController'](_0x24963a['head']):this['_handleSuggestionControllerDelayed'](_0x24963a,!0x1);}),this['listenTo'](_0x3c9770,'suggestionUnloaded',(_0x22b81d,_0x224bf6,_0x2ceba4)=>{this['stopListening'](_0x224bf6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x224bf6),this['_suggestionToController']['has'](_0x224bf6)&&this['_destroyController'](_0x224bf6),_0x2ceba4&&this['_updateController'](_0x2ceba4['head']);}),this['listenTo'](_0x3c9770,'suggestionChanged',(_0x1c2bcc,_0x1b6b63)=>{this['_updateController'](_0x1b6b63);}),this['listenTo'](_0x2cd86a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54064f,'addComment',(_0x5ebe5f,{threadId:_0x52b250,isFromAdapter:_0xb1cf40})=>{if(_0xb1cf40||!_0x3c9770['hasSuggestion'](_0x52b250))return;const _0x5f2bd7=_0x3c9770['getSuggestion'](_0x52b250);this['_suggestionToController']['get'](_0x5f2bd7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x371d49=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f45da;for(const _0x225e46 in _0x371d49){const _0x375bc7=_0x225e46,_0x3b4f41=_0x371d49[_0x375bc7];if('trackChangesLicenseKeyValid'==_0x3b4f41||'trackChangesLicenseKeyInvalid'==_0x3b4f41||'trackChangesLicenseKeyExpired'==_0x3b4f41||'trackChangesLicenseKeyDomainLimit'==_0x3b4f41||'trackChangesLicenseKeyNotAllowed'==_0x3b4f41||'trackChangesLicenseKeyEvaluationLimit'==_0x3b4f41||'trackChangesLicenseKeyTrialLimit'==_0x3b4f41||'trackChangesLicenseKeyUsageLimit'==_0x3b4f41){delete _0x371d49[_0x375bc7],_0x1f45da=_0x3b4f41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f45da&&_0x371d49['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f45da&&_0x371d49['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f45da&&_0x371d49['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5a7561){const _0x4bf721=this['_suggestionToController']['get'](_0x5a7561);if(!_0x4bf721)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4bf721['view'])||null;}['getSuggestionForAnnotation'](_0x3a3860){const _0x3a09de=this['_viewToController']['get'](_0x3a3860['innerView']);return _0x3a09de?_0x3a09de['model']:null;}['_refreshActiveMarkers'](){const _0x394f5d=this['editor']['plugins']['get']('Annotations'),_0x14be31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b7c31=Array['from'](_0x394f5d['activeAnnotations'],_0x146f96=>_0x146f96['innerView'])['filter'](_0x2cb6bb=>this['_viewToController']['has'](_0x2cb6bb)),_0x5b9b70=[];for(const _0x596bf2 of _0x1b7c31){const _0x4ee9c7=this['_viewToController']['get'](_0x596bf2)['model']['getAllAdjacentSuggestions']();_0x5b9b70['push'](..._0x4ee9c7['reduce']((_0x243a70,_0xd200be)=>[..._0x243a70,..._0xd200be['getMarkerNames']()],[]));}_0x14be31['activeMarkers']=_0x5b9b70;}['_addUIComponentsToFactory'](){const _0x1f2ea4=this['editor'],_0x48e5d3=_0x1f2ea4['locale'],_0x540c61=o(_0x48e5d3,'Track\x20changes'),_0xa0bc72=new _0x1604a9([{'type':'switchbutton','model':new _0x4126df({'withText':!0x0,'isToggleable':!0x0,'label':_0x540c61,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1f2ea4['plugins']['has']('TrackChangesPreview')&&_0xa0bc72['addMany']([{'type':'separator'},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x30eb95 of _0xa0bc72)if(ke(_0x30eb95)){const _0x2c751b=_0x1f2ea4['commands']['get'](_0x30eb95['model']['commandName']);_0x30eb95['model']['bind']('isOn','isEnabled')['to'](_0x2c751b,'value','isEnabled');}_0x1f2ea4['ui']['componentFactory']['add']('trackChanges',_0x1cae45=>this['_createToolbarButton'](_0x1cae45,_0xa0bc72,_0x540c61)),_0x1f2ea4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x406ae6=>this['_createMenuBarMenu'](_0x406ae6,_0xa0bc72,_0x540c61));}['_createToolbarButton'](_0x58216b,_0x3317f5,_0x2fc908){const _0x3a0274=_0x49e9d6(_0x58216b,_0x3b9b00),_0x4c9ee2=this['editor']['commands']['get']('trackChanges');_0x3a0274['buttonView']['set']({'tooltip':_0x2fc908,'label':_0x2fc908,'icon':_0x572057}),_0x3a0274['buttonView']['bind']('isOn')['to'](_0x4c9ee2,'value'),_0x3a0274['buttonView']['on']('execute',()=>{_0x4c9ee2['execute'](),this['editor']['editing']['view']['focus']();}),_0x359ad2(_0x3a0274,_0x3317f5,{'role':'menu'});const _0x3508b4=[];for(const _0x3762f9 of _0x3317f5)ke(_0x3762f9)&&_0x3508b4['push'](this['editor']['commands']['get'](_0x3762f9['model']['commandName']));const _0x1c6cb9=_0x3a0274['buttonView'];return _0x1c6cb9['actionView']['unbind']('isEnabled'),_0x1c6cb9['arrowView']['unbind']('isEnabled'),_0x1c6cb9['actionView']['bind']('isEnabled')['to'](_0x4c9ee2,'isEnabled'),_0x1c6cb9['arrowView']['bind']('isEnabled')['toMany'](_0x3508b4,'isEnabled',(..._0x37d131)=>_0x37d131['some'](_0x2a6e44=>_0x2a6e44)),_0x3a0274['on']('execute',_0x2ef777=>{this['editor']['execute'](_0x2ef777['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a0274;}['_createMenuBarMenu'](_0x1c7473,_0x35ef29,_0x51c7c4){const _0xc3deb=new _0x552abe(_0x1c7473),_0x53b8b3=this['editor']['commands']['get']('trackChanges');_0xc3deb['buttonView']['set']({'label':_0x51c7c4,'icon':_0x572057});const _0x3eb227=new _0x3d3185(_0x1c7473);for(const _0x5cb5aa of _0x35ef29){if('separator'==_0x5cb5aa['type']){_0x3eb227['items']['add'](new _0x263776(_0x1c7473));continue;}const _0x401d98=new _0x4128de(_0x1c7473,_0xc3deb),_0x5dae80=new _0x3259b6(_0x1c7473),_0x3774a4=_0x5cb5aa['model'];_0x5dae80['bind'](...Object['keys'](_0x3774a4))['to'](_0x3774a4),_0x5dae80['delegate']('execute')['to'](_0xc3deb),_0x5dae80['on']('execute',()=>{this['editor']['execute'](_0x3774a4['commandName']),this['editor']['editing']['view']['focus']();}),_0x401d98['children']['add'](_0x5dae80),_0x3eb227['items']['add'](_0x401d98);}return _0xc3deb['bind']('isEnabled')['to'](_0x53b8b3,'isEnabled'),_0xc3deb['panelView']['children']['add'](_0x3eb227),_0xc3deb;}['_initializeController'](_0x3971bb){const _0x31b066=this['editor'],_0xb934d6=_0x31b066['config'],_0x3a223a=_0x31b066['plugins']['get']('Annotations'),_0x537b93=_0x31b066['plugins']['get']('CommentsRepository'),_0x4a2437=_0x31b066['plugins']['get']('EditorAnnotations'),_0x4e3bd7=_0x31b066['plugins']['get'](_0x29227a)['me'],_0x1d1612=_0xb934d6['get']('trackChanges')['SuggestionThreadView'],_0x45c21d=_0xb934d6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x25949a,CommentThreadInputView:_0x2a8369}=_0x31b066['plugins']['get']('CommentsUI');let _0x475806,_0x408b6e,_0x1237b6;this['_annotationViews']['has'](_0x3971bb['id'])?(_0x408b6e=this['_annotationViews']['get'](_0x3971bb['id']),_0x475806=_0x408b6e['mainView']):(_0x475806=new _0x1d1612(_0x31b066['locale'],_0x3971bb,_0x4e3bd7,{'disableComments':this['_disableComments'],'editorConfig':{..._0xb934d6['get']('comments.editorConfig'),'licenseKey':_0xb934d6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xb934d6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb934d6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb934d6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3673c3(_0xb934d6['get']('locale'),_0x31b066['locale']),'CommentView':_0xb934d6['get']('comments')['CommentView'],'CommentsListView':_0x25949a,'CommentThreadInputView':_0x2a8369,'SuggestionView':_0x45c21d}),_0x475806['suggestionView']['acceptButton']['on']('execute',()=>{_0x31b066['editing']['view']['focus']();}),_0x475806['suggestionView']['discardButton']['on']('execute',()=>{_0x31b066['editing']['view']['focus']();}),_0x408b6e=_0x3a223a['createAnnotationView'](this['editor']['locale'],_0x475806),_0x408b6e['bind']('isDirty')['to'](_0x475806,'isDirty'),_0x408b6e['bind']('length')['to'](_0x475806),_0x408b6e['bind']('type')['to'](_0x475806,'type',_0x42dbd4=>'suggestion-'+_0x42dbd4),_0x475806['on']('escape',()=>{_0x1237b6['fire']('escape');}),this['_annotationViews']['set'](_0x3971bb['id'],_0x408b6e));const _0xbf0389=_0x537b93['createCommentThreadController'](_0x3971bb['commentThread'],_0x475806),_0xc39dc6=new pe(_0x31b066,_0x3971bb,_0x475806,_0xbf0389),_0x5c918f=_0x3971bb['getAllAdjacentSuggestions']()['filter'](_0x2c7a82=>_0x2c7a82['isInContent']);_0x475806['descriptionParts']=_0x31b066['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c918f),this['_suggestionToController']['set'](_0x3971bb,_0xc39dc6),this['_viewToController']['set'](_0x475806,_0xc39dc6),_0x1237b6=_0x3a223a['createAnnotation']({'view':_0x408b6e,'target':()=>{const _0x4ff328=[],_0x28ba79=_0x3971bb['getAllAdjacentSuggestions']()['filter'](_0x64d51=>_0x64d51['isInContent']);for(const _0x3be1c7 of _0x28ba79)_0x4ff328['push'](..._0x3be1c7['getMarkers']());return _0x2e6994(_0x31b066['editing'],_0x4ff328);},'type':()=>'suggestion-'+_0xc39dc6['view']['type']}),_0x537b93['_bindAnnotationToEditors'](_0x475806,_0x1237b6),_0x3a223a['add'](_0x1237b6),_0x4a2437['registerAnnotation'](_0x1237b6);}['_destroyController'](_0x4bed13){const _0xbb34de=this['editor']['plugins']['get']('CommentsRepository'),_0x530c51=this['editor']['plugins']['get']('Annotations'),_0x6abe5=this['_suggestionToController']['get'](_0x4bed13),_0x215641=_0x6abe5['view'],_0x2eb9dd=_0x530c51['getByInnerView'](_0x215641);_0xbb34de['_unbindEditors'](_0x215641),_0x2eb9dd&&_0x530c51['remove'](_0x2eb9dd),this['_suggestionToController']['delete'](_0x4bed13),this['_viewToController']['delete'](_0x215641),_0x6abe5['destroy']();}['_updateController'](_0x2c536c){if(!_0x2c536c['isInContent']||!this['_suggestionToController']['has'](_0x2c536c))return;const _0x187676=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ad171=this['_suggestionToController']['get'](_0x2c536c),_0x9dcb8d=_0x2c536c['getAllAdjacentSuggestions']();_0x5ad171['view']['descriptionParts']=_0x187676['descriptionFactory']['getDescriptions'](_0x9dcb8d);}['destroy'](){for(const _0x27ddf8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x27ddf8);for(const _0x4814af of this['_annotationViews']['values']())_0x4814af['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xf80266){return'model'in _0xf80266;}class Fe extends _0xeec5ec{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e5e4a){this['editor']['plugins']['get'](d)['adapter']=_0x3e5e4a;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x512f02){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x512f02);}['getSuggestions']({skipNotAttached:_0x5b3677=!0x1,toJSON:_0xa1e5e6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5b3677,'toJSON':_0xa1e5e6});}['getSuggestion'](_0x1831e7){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1831e7);}}const p=['Pagination'];class re extends _0xeec5ec{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x321de8=this['editor'];if(_0x321de8['config']['define']('trackChangesData.editorCreator',_0x4f0622=>{const _0x52f741=_0x321de8['model']['document']['getRootNames']()['reduce']((_0x11058b,_0x12b96c)=>(_0x11058b[_0x12b96c]='',_0x11058b),{});return _0x321de8['constructor']['create'](_0x52f741,_0x4f0622);}),'function'!=typeof _0x321de8['config']['get']('trackChangesData')['editorCreator'])throw new _0x483cd5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x32e3e0){return P(this['editor'],!0x0,_0x32e3e0);}['getDataWithDiscardedSuggestions'](_0x11e5f3){return P(this['editor'],!0x1,_0x11e5f3);}}class Ge extends _0xeec5ec{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x362cf1){function _0x413d02(_0x2de6e8){return _0x2de6e8['map'](_0x3d0aa3=>String['fromCharCode'](_0x3d0aa3))['join']('');}super(_0x362cf1),this['result']='end',_0x362cf1[_0x413d02([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x413d02([0x76,0x69,0x65,0x77])][_0x413d02([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x413d02([0x61,0x75,0x74,0x6f]),_0x362cf1[_0x413d02([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x413d02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x413d02([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x413d02([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x413d02([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'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['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x2239e0){return void 0x0!==_0x2239e0['getRootsAttributes'];}async function P(_0x8dc644,_0x38ffd4,_0x47b91d){const _0x3228ad=_0x3a854f(_0x8dc644,p);_0x3228ad['plugins']['push'](d,Ge),_0x3228ad['rootsAttributes']=$e(_0x8dc644)?_0x8dc644['getRootsAttributes']():void 0x0;const _0x3eccda=document['createDocumentFragment'](),_0x1b2711=_0x8dc644['config']['get']('trackChangesData')['editorCreator'],_0x13e12b=await _0x1b2711(_0x3228ad,()=>function(_0x4b6653){const _0x34605c=document['createElement']('div');return _0x4b6653['appendChild'](_0x34605c),_0x34605c;}(_0x3eccda));!function(_0x59c5aa,_0x40533){const _0x452ed4=_0x59c5aa['model']['document']['getRootNames']()['reduce']((_0x3f7f51,_0x813c5b)=>(_0x3f7f51[_0x813c5b]=_0x59c5aa['data']['get']({'rootName':_0x813c5b}),_0x3f7f51),{}),_0x1d4636=_0x59c5aa['plugins']['get']('Users')['users']['map'](_0x19d814=>({'id':_0x19d814['id'],'name':_0x19d814['name']})),_0xc9f598=_0x59c5aa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x51dd2f=_0x59c5aa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1db43d=_0x40533['plugins']['get']('Users'),_0x482042=_0x40533['plugins']['get']('TrackChangesEditing'),_0x193934=_0x40533['plugins']['get']('CommentsRepository');for(const _0x2f9c8f of _0x193934['getCommentThreads']())_0x2f9c8f['remove']();for(const _0x4dd044 of _0x1d4636)_0x1db43d['getUser'](_0x4dd044['id'])||_0x1db43d['addUser'](_0x4dd044);_0x1db43d['me']||_0x1db43d['useAnonymousUser']();for(const _0x2d1d03 of _0x51dd2f)_0x193934['addCommentThread'](_0x2d1d03);for(const _0x21998f of _0xc9f598)_0x482042['addSuggestionData'](_0x21998f);_0x40533['data']['set'](_0x452ed4);}(_0x8dc644,_0x13e12b),_0x13e12b['execute'](_0x38ffd4?'acceptAllSuggestions':'discardAllSuggestions');const _0x58fd44=$e(_0x13e12b)?_0x13e12b['getFullData'](_0x47b91d):_0x13e12b['data']['get'](_0x47b91d);return await _0x13e12b['destroy'](),_0x58fd44;}class Me extends _0x376071{['options'];constructor(_0x3e339c,_0x2fa204){super(_0x3e339c),this['options']=_0x2fa204,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x3a47b5,_0x5d8c47){if(!this['element'])return;const _0x5c230a=[];for(const [_0x2a26f1,_0xcadc91]of _0x3a47b5){const _0x324642=document['createElement']('div');_0x324642['setAttribute']('data-ck-root-name',_0x2a26f1),_0x324642['className']=_0xcadc91['classes']+'\x20ck-track-changes-preview__root-container',_0x324642['innerHTML']=_0xcadc91['content'],_0x5c230a['push'](_0x324642);}_0x5d8c47(this['element'],_0x5c230a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x162850{constructor(_0x2d7d69){super(_0x2d7d69),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x106d07=this['editor'],_0x1019d7=_0x106d07['locale'],_0x1b4fa0=_0x106d07['plugins']['get']('Dialog');let _0x5bc1f0;const _0x31864a=function(_0x40f9fc){const _0x3c8ca8={};if('editables'in _0x40f9fc['ui']['view']){for(const [_0x5b1c92,_0x1733d8]of Object['entries'](_0x40f9fc['ui']['view']['editables']))_0x3c8ca8[_0x5b1c92]=_0x1733d8['element'];}else _0x3c8ca8[_0x40f9fc['model']['document']['getRootNames']()[0x0]]=_0x40f9fc['ui']['view']['editable']['element'];return _0x3c8ca8;}(_0x106d07),_0x490fb9=function(_0x405d2a){let _0xdb7c37=0x0;for(const _0x12d418 of Object['values'](_0x405d2a))_0xdb7c37=Math['max'](_0xdb7c37,_0x12d418['getBoundingClientRect']()['width']);let _0x5ac6fc=0x0;for(const _0x3768e9 of Object['values'](_0x405d2a))_0x5ac6fc+=_0x3768e9['getBoundingClientRect']()['height'];const _0x44ae6d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2a601f=Math['min'](_0x5ac6fc,_0x44ae6d);return{'width':_0xdb7c37,'height':_0x2a601f};}(_0x31864a);_0x1b4fa0['show']({'id':'finalContentPreview','title':o(_0x1019d7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1019d7,{'dialogRects':_0x490fb9}),'onHide':()=>{_0x5bc1f0['detachFromDom']();},'onShow':()=>{_0x106d07['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5e8796=>{const _0xd71630=this['_standarizeRootsData'](_0x5e8796,_0x106d07,_0x31864a);_0x1b4fa0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd71630,_0x106d07['config']['get']('trackChanges.preview.renderFunction'));}),_0x5bc1f0=new _0x504e06(_0x1019d7,[_0x1b4fa0['view']]),_0x5bc1f0['attachToDom'](),_0x5bc1f0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x106d07['once']('destroy',()=>{_0x5bc1f0['detachFromDom']();});const _0x16a9f2=_0x1b4fa0['view']['headerView']['class'];_0x1b4fa0['view']['headerView']['class']=_0x16a9f2?_0x16a9f2+'\x20ck-reset_all':'ck-reset_all',_0x1b4fa0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1b4fa0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x80f22a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x187b4a=_0x80f22a['previewMode'],_0x42acd2={};if('$labels'===_0x187b4a){for(const _0x5f28b1 of _0x80f22a['getMergeFieldsIds']())_0x42acd2[_0x5f28b1]=_0x80f22a['getLabel'](_0x5f28b1)||_0x5f28b1;}else{const _0x5bde81='$defaultValues'===_0x187b4a?_0x80f22a['getDefaultValues']():_0x80f22a['getDataSetValues'](_0x187b4a,!0x0);for(const _0x4379fd of Object['entries'](_0x5bde81)){const [_0x1f464f,_0x32aa68]=_0x4379fd;_0x42acd2[_0x1f464f]=null!==_0x32aa68?_0x32aa68:_0x80f22a['getLabel'](_0x1f464f)||_0x1f464f;}}return{'mergeFieldsData':_0x42acd2};}['_standarizeRootsData'](_0x42cad3,_0x3a597c,_0x55eb26){let _0x4edb2d;if('string'==typeof _0x42cad3){const _0x52435e=_0x3a597c['model']['document']['getRootNames']()[0x0];_0x4edb2d={[_0x52435e]:_0x42cad3};}else _0x4edb2d=_0x42cad3;const _0x2fe5a6=this['_fixMediaEmbeds'](_0x4edb2d,_0x3a597c),_0xf3b50b=function(_0x25ecda,_0x295405){for(const [_0x535d0c,_0x39cc9f]of _0x25ecda)_0x39cc9f['classes']=_0x295405[_0x535d0c]['classList']['value']['replace']('ck-focused','');return _0x25ecda;}(this['_sortRoots'](_0x3a597c)['reduce']((_0x3dbda9,_0x54164e)=>(_0x3dbda9['push']([_0x54164e,{'content':_0x2fe5a6[_0x54164e],'classes':''}]),_0x3dbda9),[]),_0x55eb26);return _0xf3b50b;}['_fixMediaEmbeds'](_0x57843e,_0x43bea8){if(!_0x43bea8['plugins']['has']('MediaEmbedEditing'))return _0x57843e;const _0x825fe3=_0x43bea8['plugins']['get']('MediaEmbedEditing');for(const [_0x14d48b,_0x47585e]of Object['entries'](_0x57843e)){const _0x2d3bfb=document['createElement']('div');_0x2d3bfb['innerHTML']=_0x47585e,(_0x2d3bfb['querySelectorAll']('figure.media')['forEach'](_0x1aa21b=>{const _0x54fe16=_0x1aa21b['querySelector']('oembed');if(_0x54fe16){const _0x1f782c=_0x54fe16['getAttribute']('url');if(_0x1f782c){const _0x4a18a0=_0x825fe3['registry']['getMediaViewElement'](new _0x5be9d6(_0x43bea8['editing']['view']['document']),_0x1f782c,{'elementName':'','renderForEditingView':!0x0}),_0x229d31=document['createElement']('div');_0x229d31['classList']['add']('ck-media__wrapper'),_0x4a18a0['render'](_0x229d31,_0x43bea8['editing']['view']['domConverter']),_0x54fe16['replaceWith'](_0x229d31);}}}),_0x57843e[_0x14d48b]=_0x2d3bfb['innerHTML']);}return _0x57843e;}['_sortRoots'](_0x5f37d3){if(!function(_0x3da811){return void 0x0!==_0x3da811['getRootsAttributes'];}(_0x5f37d3))return _0x5f37d3['model']['document']['getRootNames']();const _0x230163=[],_0x4497eb=new Map();for(const _0x152e2a of _0x5f37d3['model']['document']['getRootNames']()){const _0x3df694=_0x5f37d3['editing']['view']['getDomRoot'](_0x152e2a)['getClientRects']()['item'](0x0);_0x230163['push'](_0x152e2a),_0x4497eb['set'](_0x152e2a,_0x3df694);}return _0x230163['sort']((_0x2afe29,_0x2e5514)=>{const _0x24f45c=_0x4497eb['get'](_0x2afe29),_0x1877fd=_0x4497eb['get'](_0x2e5514);return _0x24f45c['y']-_0x1877fd['y']||_0x24f45c['x']-_0x1877fd['x'];}),_0x230163;}}class He extends _0xeec5ec{static get['requires'](){return[re,_0x1e3b93];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x583422){super(_0x583422),_0x583422['commands']['add']('previewFinalContent',new te(this['editor'])),_0x583422['config']['define']('trackChanges.preview.renderFunction',(_0x39be1d,_0x3177f3)=>{for(const _0x305775 of _0x3177f3)_0x39be1d['appendChild'](_0x305775);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|
|
23
|
+
import{Command as _0x5a8212,Plugin as _0x185c8e,PendingActions as _0x29dc66}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x464339,ObservableMixin as _0x4ab215,uid as _0x510ab3,priorities as _0xa6a0c5,insertToPriorityArray as _0x4f1811,toArray as _0x10f187,logWarning as _0x1a537c,getEnvKeystrokeText as _0x48f72b,FocusTracker as _0x4ba80c,KeystrokeHandler as _0xea4328,Collection as _0x418873}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3bab8d,IconCancel as _0x2bbfac,IconTrackChanges as _0x214e3f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x22f526,View as _0x51fa9e,ViewCollection as _0x13b940,FocusCycler as _0x50f93b,UIModel as _0x2a146f,createDropdown as _0x3413fc,SplitButtonView as _0x3f091f,addListToDropdown as _0x300a82,MenuBarMenuView as _0x53e884,MenuBarMenuListView as _0x2c5f59,ListSeparatorView as _0x4ca5df,MenuBarMenuListItemView as _0x441c3f,MenuBarMenuListItemButtonView as _0x3a5579,BodyCollection as _0x5a8715,Dialog as _0x5bfc98}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x7e9419,hashObject as _0x38917d,surroundingMarkersDetector as _0x320351,FOCUS_ANNOTATION_KEYSTROKE as _0x101cd3,AriaDescriptionView as _0x1fbb41,setupThreadKeyboardNavigation as _0x390368,trimHtml as _0x5039b0,UserView as _0x581262,LateFocusButtonView as _0xf2ab3a,getDateTimeFormatter as _0x25adc9,getAllMarkersDomElementsSorted as _0x331e1e,sanitizeEditorConfig as _0x32f147}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x469b5f,ModelLiveRange as _0x4ef168,ModelLivePosition as _0x2cbf43,ViewDowncastWriter as _0x32df9f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x481c19,toWidget as _0xdc8a31}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4bc9d1,set as _0x4195db,isEqual as _0x48c112,unset as _0xa6c429,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2e2120,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x7a9e08}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1ee166}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x5a8212{['_enabledCommands'];constructor(_0x5869a1,_0x2795b7){super(_0x5869a1),this['_enabledCommands']=_0x2795b7,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x8d8852 of this['editor']['commands']['commands']())_0x8d8852['affectsData']&&!this['_enabledCommands']['has'](_0x8d8852)&&_0x8d8852['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x205c82 of this['editor']['commands']['commands']())_0x205c82['affectsData']&&!this['_enabledCommands']['has'](_0x205c82)&&_0x205c82['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x5a8212{['_suggestions'];constructor(_0x5c3b26,_0x28f42a){super(_0x5c3b26),this['_suggestions']=_0x28f42a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20905c){const _0x560560=this['_suggestions']['get'](_0x20905c);if(!_0x560560)throw new _0x464339('track-changes-accept-suggestion-not-found',this);const _0x1c9229=_0x560560['getRanges']();this['editor']['model']['canEditAt'](_0x1c9229)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x560560);}}class M extends _0x5a8212{['_suggestions'];constructor(_0x5719a2,_0x4438fc){super(_0x5719a2),this['_suggestions']=_0x4438fc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x362190){const _0x5449d3=this['_suggestions']['get'](_0x362190);if(!_0x5449d3)throw new _0x464339('track-changes-discard-suggestion-not-found',this);const _0x27541c=_0x5449d3['getRanges']();this['editor']['model']['canEditAt'](_0x27541c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5449d3);}}function ls(_0x1307e7,_0x479964){let _0x579297='';return _0x579297+=_0x1307e7['split']('*')['map']((_0x1c6326,_0xd022c)=>_0xd022c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x1c6326)+'</span>':Yt(_0x1c6326))['join'](''),_0x479964&&(_0x579297+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x479964['value']+'\x22\x20title=\x22'+_0x479964['title']+'\x22></span>'),_0x579297;}function Yt(_0x4d26ac){const _0x3ec515=document['createElement']('span');return _0x3ec515['innerText']=_0x4d26ac,_0x3ec515['innerHTML'];}function ts(_0x391d9c){return _0x391d9c['sort']((_0x18c598,_0x40ad97)=>'attribute'===_0x18c598['type']&&'attribute'!==_0x40ad97['type']?-0x1:'attribute'!==_0x18c598['type']&&'attribute'===_0x40ad97['type']?0x1:'deletion'==_0x18c598['type']&&'deletion'!=_0x40ad97['type']?-0x1:'deletion'!=_0x18c598['type']&&'deletion'==_0x40ad97['type']?0x1:0x0);}function to(_0x251c40,_0x459d99){let _0x42aa82,_0x21d236=0x0;const _0x4479a2=[],_0x1ea6c3=_0x459d99['schema'];for(;_0x21d236<_0x251c40['length'];){const _0x17ca76=_0x251c40[_0x21d236],_0x32b261=_0x251c40[_0x21d236+0x1];_0x42aa82||(_0x42aa82=_0x459d99['createPositionBefore'](_0x17ca76)),Zt(_0x459d99,_0x17ca76,_0x32b261)||(_0x4479a2['push'](_0x459d99['createRange'](_0x42aa82,_0x1ea6c3['isObject'](_0x17ca76)?_0x459d99['createPositionAfter'](_0x17ca76):_0x459d99['createPositionAt'](_0x17ca76,'end'))),_0x42aa82=null),_0x21d236++;}return _0x4479a2;}function Zt(_0x2bb29d,_0x27ff14,_0x1b3236){if(!_0x1b3236)return!0x1;const _0x56c498=_0x2bb29d['createPositionAfter'](_0x27ff14),_0x397065=_0x2bb29d['createPositionBefore'](_0x1b3236);return _0x56c498['isTouching'](_0x397065);}function rs(_0x1c3f2d,_0xd2e74a,_0x545404){for(;_0x545404['length'];){const _0x34e15d=_0x545404['splice'](0x0,0x64);_0x1c3f2d['change'](()=>{for(const _0x57749d of _0x34e15d)_0x57749d['isInContent']&&_0xd2e74a['execute'](_0x57749d['id']);});}}class $ extends _0x5a8212{['_command'];['_suggestions'];constructor(_0x39369e,_0xb7778f,_0x3101bc){super(_0x39369e),this['_command']=_0xb7778f,this['_suggestions']=_0x3101bc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x358617=Array['from'](this['_suggestions']['values']())['some'](_0x23ae94=>_0x23ae94['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x358617;}['execute'](){const _0x2aabb7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x50258b of _0x2aabb7){const _0x30287f=_0x50258b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30287f))return;}rs(this['editor']['model'],this['_command'],_0x2aabb7);}}class B extends _0x5a8212{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd003f0,_0x236236,_0x2e921){super(_0xd003f0),this['_command']=_0x236236,this['_suggestions']=_0x2e921,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15bb2c=this['editor']['model']['document']['selection'],_0x52e76d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x41bbaf,_0x3f0bca){const _0xbe5b40=Array['from'](_0x41bbaf['getRanges']()),_0x11ca4f=new Set();for(const _0x282a40 of _0x3f0bca)if(_0x282a40['isInContent']){for(const _0x3baa30 of _0xbe5b40)for(const _0x3fdb38 of _0x282a40['getRanges']())(_0x3baa30['isIntersecting'](_0x3fdb38)||_0x41bbaf['isCollapsed']&&!_0x282a40['isMultiRange']&&_0x282a40['next']&&_0x3fdb38['end']['isTouching'](_0x3baa30['start']))&&_0x11ca4f['add'](_0x282a40);}return _0x11ca4f;}(_0x15bb2c,_0x52e76d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d9bcc=ts(Array['from'](this['_selectedSuggestions']));for(const _0x508004 of _0x4d9bcc){const _0x30244f=_0x508004['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30244f))return;}rs(this['editor']['model'],this['_command'],_0x4d9bcc);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ab215(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15ad48,_0x4eec2c){super(),this['id']=_0x4eec2c['id'],this['type']=_0x4eec2c['type'],this['subType']=_0x4eec2c['subType']||null,this['author']=_0x4eec2c['author'],this['creator']=_0x4eec2c['creator']||_0x4eec2c['author'],this['isExternal']=Boolean(_0x4eec2c['attributes']&&_0x4eec2c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4eec2c['originalSuggestionId']||null,this['_model']=_0x15ad48,this['_onAccept']=_0x4eec2c['onAccept'],this['_onDiscard']=_0x4eec2c['onDiscard'],this['_onAttributesChange']=_0x4eec2c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4eec2c['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4bffb5=this;for(;_0x4bffb5['previous'];)_0x4bffb5=_0x4bffb5['previous'];return _0x4bffb5;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2e87a5){this['_markerNames']['add'](_0x2e87a5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x52b66b=>this['_model']['markers']['get'](_0x52b66b))['filter'](_0x2ef2cb=>_0x2ef2cb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32df74=>{for(const _0x3c40f5 of this['getMarkers']())_0x32df74['removeMarker'](_0x3c40f5);}),this['_markerNames']['clear']();}['removeMarker'](_0x93e03){this['_model']['change'](_0x4060b2=>{_0x4060b2['removeMarker'](_0x93e03);}),this['_markerNames']['delete'](_0x93e03);}['addRange'](_0x5aa6f7){const _0x21c572='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x21c572),this['_model']['change'](_0x57f475=>{_0x57f475['addMarker'](_0x21c572,{'range':_0x5aa6f7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xb70f89){for(const _0x486d38 of this['getRanges']())if(_0x486d38['isIntersecting'](_0xb70f89))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x554e23=>_0x554e23['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1cb34b,_0x483147)=>[..._0x1cb34b,..._0x483147['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x222cfc=this['getRanges']();if(0x1!=_0x222cfc['length'])return null;const _0x5006f6=_0x222cfc[0x0],_0x6e8744=_0x5006f6['start']['nodeAfter'],_0x1276b7=_0x5006f6['end']['nodeBefore'];return _0x6e8744 instanceof _0x469b5f?_0x6e8744!=_0x1276b7?null:_0x6e8744:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x530b81=[];let _0x57bf97=this['head'];for(;_0x57bf97;)_0x530b81['push'](_0x57bf97),_0x57bf97=_0x57bf97['next'];return _0x530b81;}['setAttribute'](_0xf4508e,_0xc94375){const _0x45ce95=_0x4bc9d1(this['attributes']);_0x4195db(_0x45ce95,_0xf4508e,_0xc94375),_0x48c112(_0x45ce95,this['attributes'])||(this['attributes']=_0x45ce95,this['_onAttributesChange'](_0x45ce95));}['removeAttribute'](_0x2b60e0){const _0x3b323d=_0x4bc9d1(this['attributes']);_0xa6c429(_0x3b323d,_0x2b60e0),_0x48c112(_0x3b323d,this['attributes'])||(this['attributes']=_0x3b323d,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x510ab3()['substr'](0x1,0x5);}}function o(_0x4e0298,_0x2abaae,_0x3a510a){const _0x22ee8a=_0x4e0298['t'],t=_0x4e0298['t'];switch(_0x2abaae){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3a510a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a510a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a510a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a510a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a510a);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x3a510a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a510a);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a510a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a510a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a510a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a510a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a510a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a510a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3a510a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a510a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a510a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a510a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a510a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a510a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a510a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a510a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a510a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a510a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a510a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3a510a);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x3a510a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3a510a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3a510a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a510a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a510a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a510a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a510a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a510a);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x3a510a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a510a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a510a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a510a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a510a);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3a510a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a510a);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x3a510a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3a510a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a510a);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x3a510a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a510a);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x3a510a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a510a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a510a);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x3a510a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3a510a);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x22ee8a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a510a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x22ee8a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a510a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a510a);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x3a510a);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x3a510a);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x3a510a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2abaae;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d5d01,_0x2a2c72){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d5d01,this['_locale']=_0x2a2c72;}['getDescriptions'](_0x32f84e){const _0x34ec7e=[],_0x598137=new Set(),_0x4a9c61=new Set();for(let _0x3ee738=0x0;_0x3ee738<_0x32f84e['length'];_0x3ee738++){const _0x713788=_0x32f84e[_0x3ee738];if(!_0x713788['isInContent'])continue;const _0x2d56fc=this['_handleCustomCallbackDescription'](_0x713788);if(_0x2d56fc){if(null!=_0x713788['subType']){if(_0x598137['has'](_0x713788['subType']))continue;_0x598137['add'](_0x713788['subType']);}_0x34ec7e['push'](_0x2d56fc);}else{if('attribute'==_0x713788['type']){const _0xc8121b=_0x713788['data']['key'];if(_0x4a9c61['has'](_0xc8121b))continue;_0x4a9c61['add'](_0x713788['data']['key']),_0xc8121b==m?this['_handleRenameSuggestionDescription'](_0x34ec7e,_0x713788):this['_handleAttributeSuggestionDescription'](_0x34ec7e,_0x713788);continue;}'insertion'!=_0x713788['type']&&'deletion'!=_0x713788['type']||this['_handleInsertRemoveSuggestionDescription'](_0x34ec7e,_0x713788,_0x32f84e[_0x3ee738+0x1]);}}return this['_resolveDescriptionItems'](_0x34ec7e);}['registerDescriptionCallback'](_0x2ce123){this['_customCallbacks']['push'](_0x2ce123);}['registerElementLabel'](_0x227a09,_0x2c458a,_0x2b87b7=_0xa6a0c5['normal']){'function'==typeof _0x227a09?_0x4f1811(this['_itemLabelsCallbacks'],{'matchingCallback':_0x227a09,'label':_0x2c458a,'priority':_0x2b87b7}):this['_itemLabels']['set'](_0x227a09,_0x2c458a);}['registerAttributeLabel'](_0x4862bd,_0xb29ae7){this['_attributeLabels']['set'](_0x4862bd,_0xb29ae7);}['getItemLabel'](_0x249da0,_0x4d917d=0x1){let _0x5dd503;for(const _0x231c8e of this['_itemLabelsCallbacks'])if(_0x231c8e['matchingCallback'](_0x249da0)){_0x5dd503=_0x231c8e['label'];break;}return _0x5dd503||(_0x5dd503=this['_itemLabels']['get'](_0x249da0['name'])),_0x5dd503?_0x5dd503(_0x4d917d):0x1!==_0x4d917d?_0x4d917d+'\x20'+_0x249da0['name']+'s':''+_0x249da0['name'];}['_addDescriptionItems'](_0xfca6e4,_0x27dabb){const _0x5f208a=_0x27dabb['getFirstRange']()['getWalker'](),_0x40ff05='insertion'==_0x27dabb['type']?'add':'remove';for(const _0x59f226 of _0x5f208a){const _0x35260e=_0x59f226['item'],_0x2708b4=_0xfca6e4[_0xfca6e4['length']-0x1];if(_0x35260e['is']('$textProxy'))_0x2708b4&&_0x2708b4['type']['indexOf']('Container')>-0x1&&_0xfca6e4['pop'](),_0x2708b4&&'text'==_0x2708b4['type']?_0x2708b4[_0x40ff05]+=_0x35260e['data']:_0xfca6e4['push']({'type':'text','add':'add'==_0x40ff05?_0x35260e['data']:'','remove':'remove'==_0x40ff05?_0x35260e['data']:''});else{if(this['_schema']['isObject'](_0x35260e)){const _0x562597=_0x35260e;if(_0x2708b4&&_0x2708b4['type']['indexOf']('Container')>-0x1&&_0xfca6e4['pop'](),'elementEnd'==_0x59f226['type'])continue;_0x2708b4&&_0x2708b4['type']==_0x40ff05+'Object'&&_0x2708b4['element']['name']==_0x562597['name']?_0x2708b4['quantity']++:_0xfca6e4['push']({'type':_0x40ff05+'Object','element':_0x562597,'quantity':0x1}),_0x5f208a['skip'](_0x151ceb=>!('elementEnd'==_0x151ceb['type']&&_0x151ceb['item']==_0x35260e));}else{if(this['_schema']['checkChild'](_0x35260e,'$text')||_0x35260e['is']('element','softBreak')){const _0x351af8=_0x35260e;if('add'==_0x40ff05&&'elementStart'==_0x59f226['type']||'remove'==_0x40ff05&&'elementEnd'==_0x59f226['type'])continue;if(_0x2708b4&&-0x1==_0x2708b4['type']['indexOf']('Container')){'text'==_0x2708b4['type']&&(_0x2708b4[_0x40ff05]+='\x0a');continue;}let _0x26a2ee;if(_0x26a2ee='add'==_0x40ff05?_0x351af8['nextSibling']&&!this['_schema']['isObject'](_0x351af8['nextSibling'])?_0x351af8['nextSibling']:null:_0x351af8['previousSibling']&&!this['_schema']['isObject'](_0x351af8['previousSibling'])?_0x351af8['previousSibling']:null,_0x351af8['isEmpty']||_0x26a2ee&&_0x26a2ee['isEmpty']){const _0x319d69=_0x26a2ee&&_0x26a2ee['isEmpty']?_0x26a2ee:_0x351af8;_0x2708b4&&_0x2708b4['type']==_0x40ff05+'EmptyContainer'&&_0x2708b4['element']['name']==_0x319d69['name']?_0x2708b4['quantity']++:_0xfca6e4['push']({'type':_0x40ff05+'EmptyContainer','element':_0x319d69,'quantity':0x1});}else _0xfca6e4['push']({'type':_0x40ff05+'Container','element':_0x351af8});}}}}}['_resolveDescriptionItems'](_0x3c1893){const _0x959f28=this['_locale'],_0x43b828=[],_0x50a148=[],_0x3c9bbb=[];for(const _0x4b7c6e of _0x3c1893)switch(_0x4b7c6e['type']){case'text':if(_0x4b7c6e['add']=_0x4b7c6e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4b7c6e['remove']=_0x4b7c6e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4b7c6e['add']&&''!=_0x4b7c6e['remove']){_0x43b828['push']({'type':'replace','content':o(_0x959f28,'REPLACE_TEXT',['\x22'+_0x4b7c6e['remove']+'\x22','\x22'+_0x4b7c6e['add']+'\x22'])});continue;}if(null!=_0x4b7c6e['add']['match'](/^ +$/)){_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Insert:*\x20%0',o(_0x959f28,'ELEMENT_SPACE',_0x4b7c6e['add']['length']))});continue;}if(null!=_0x4b7c6e['remove']['match'](/^ +$/)){_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Remove:*\x20%0',o(_0x959f28,'ELEMENT_SPACE',_0x4b7c6e['remove']['length']))});continue;}if(''!=_0x4b7c6e['add']){_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Insert:*\x20%0','\x22'+_0x4b7c6e['add']+'\x22')});continue;}_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Remove:*\x20%0','\x22'+_0x4b7c6e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Insert:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Remove:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'addContainer':_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Split:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'removeContainer':_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Merge:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'addFormat':_0x50a148['push'](_0x4b7c6e['key']);continue;case'removeFormat':_0x3c9bbb['push'](_0x4b7c6e['key']);continue;default:_0x43b828['push'](_0x4b7c6e);}if(_0x50a148['length']){const _0x41f445=_0x50a148['map'](_0xc831c8=>this['_attributeLabels']['has'](_0xc831c8)?this['_attributeLabels']['get'](_0xc831c8):_0xc831c8)['join'](',\x20');_0x43b828['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x41f445)});}if(_0x3c9bbb['length']){const _0x510856=_0x3c9bbb['map'](_0x802fcd=>this['_attributeLabels']['has'](_0x802fcd)?this['_attributeLabels']['get'](_0x802fcd):_0x802fcd)['join'](',\x20');_0x43b828['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x510856)});}return _0x43b828;}['_handleCustomCallbackDescription'](_0x3f806){for(const _0x54d4e5 of this['_customCallbacks']){const _0x35ecb2=_0x54d4e5(_0x3f806);if(_0x35ecb2&&'type'in _0x35ecb2)return _0x35ecb2;}}['_handleAttributeSuggestionDescription'](_0x3e9df1,_0x501712){const _0x49b33b=_0x501712['data'],_0x34c30b=void 0x0===_0x49b33b['newValue']?'removeFormat':'addFormat';_0x3e9df1['push']({'type':_0x34c30b,'key':_0x49b33b['key']});}['_handleRenameSuggestionDescription'](_0x93a82d,_0x20f919){_0x93a82d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20f919['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x333df7,_0x316a3d,_0x26da02){if(this['_addDescriptionItems'](_0x333df7,_0x316a3d),_0x26da02&&_0x26da02['getFirstRange']()&&!_0x316a3d['getFirstRange']()['end']['isEqual'](_0x26da02['getFirstRange']()['start'])){const _0x3798ec=_0x333df7[_0x333df7['length']-0x1],_0x38ae38='insertion'==_0x316a3d['type']?'add':'remove';_0x3798ec&&'text'==_0x3798ec['type']&&(_0x3798ec[_0x38ae38]+='\x0a');}}}class O extends _0x185c8e{['afterInit'](){const _0x53cf94=this['editor'],_0x2757c8=_0x53cf94['plugins']['get']('TrackChangesEditing');_0x53cf94['commands']['get']('showAIAssistant')&&_0x2757c8['enableCommand']('showAIAssistant');}}class E extends _0x185c8e{['afterInit'](){const _0x38068b=this['editor'],_0x5b6b56=_0x38068b['locale'];if(!_0x38068b['plugins']['has']('AlignmentEditing'))return;const _0x5c89df=_0x38068b['plugins']['get']('TrackChangesEditing');_0x5c89df['enableDefaultAttributesIntegration']('alignment'),_0x5c89df['registerBlockAttribute']('alignment'),_0x5c89df['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5b6b56,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdf1afb=this['editor'],_0x58b54c=_0xdf1afb['locale'];_0xdf1afb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599d22=>{if('formatBlock'!=_0x599d22['type'])return;const {data:_0x364f2a}=_0x599d22;if(_0x364f2a&&'alignment'==_0x364f2a['commandName']){const _0x4b169e=_0x364f2a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x58b54c,'*Format:*\x20%0',function(_0x455b65){switch(_0x455b65){case'left':return o(_0x58b54c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x58b54c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x58b54c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x58b54c,'FORMAT_JUSTIFY_TEXT');}}(_0x4b169e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x185c8e{['afterInit'](){const _0x522dba=this['editor'],_0x3dc673=_0x522dba['plugins']['get']('TrackChangesEditing'),_0x43fae0=_0x522dba['locale'];for(const _0x239966 of ti){if(!_0x522dba['plugins']['has'](_0x239966))continue;const _0x1a8e78=_0x239966['slice'](0x0,-0x7)['toLowerCase'](),_0x691120='FORMAT_'+_0x1a8e78['toUpperCase']();_0x3dc673['enableDefaultAttributesIntegration'](_0x1a8e78),_0x3dc673['registerInlineAttribute'](_0x1a8e78),_0x3dc673['descriptionFactory']['registerAttributeLabel'](_0x1a8e78,o(_0x43fae0,_0x691120));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf1fa0c=this['editor'],_0x2a5abc=_0xf1fa0c['locale'],_0x101966=_0xf1fa0c['plugins']['get']('TrackChangesEditing');function _0x35bcff(_0x39a2da,_0x2514af){_0x101966['descriptionFactory']['registerDescriptionCallback'](_0x5cedfd=>{if('formatInline'!=_0x5cedfd['type'])return;const {data:_0x347701}=_0x5cedfd;return _0x347701&&_0x347701['commandName']===_0x39a2da?_0x347701['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a5abc,'*Format:*\x20%0',_0x2514af)}:{'type':'format','content':o(_0x2a5abc,'*Remove\x20format:*\x20%0',_0x2514af)}:void 0x0;});}_0x35bcff('bold',o(_0x2a5abc,'FORMAT_BOLD')),_0x35bcff('italic',o(_0x2a5abc,'FORMAT_ITALIC')),_0x35bcff('underline',o(_0x2a5abc,'FORMAT_UNDERLINE')),_0x35bcff('code',o(_0x2a5abc,'FORMAT_CODE')),_0x35bcff('strikethrough',o(_0x2a5abc,'FORMAT_STRIKETHROUGH')),_0x35bcff('subscript',o(_0x2a5abc,'FORMAT_SUBSCRIPT')),_0x35bcff('superscript',o(_0x2a5abc,'FORMAT_SUPERSCRIPT'));}}class U extends _0x185c8e{['afterInit'](){const _0x32e941=this['editor'],_0x11cf61=_0x32e941['locale'];if(!_0x32e941['plugins']['has']('BlockQuoteEditing'))return;const _0x4090da=_0x32e941['plugins']['get']('TrackChangesEditing'),_0x172b11=this['editor']['commands']['get']('blockQuote');_0x4090da['enableCommand']('blockQuote',(_0x3f18c7,_0x413a23={})=>{const _0x1dbed7=this['editor']['model']['document']['selection'],_0x2243d1=_0x413a23&&void 0x0!==_0x413a23['forceValue']?_0x413a23['forceValue']:!_0x172b11['value'];let _0x54a0eb=[];if(_0x2243d1){const _0x2998e1=Array['from'](_0x1dbed7['getSelectedBlocks']())['filter'](_0x4fe14c=>oo(_0x4fe14c)||function(_0x65be0e,_0x56620d){const _0x17a9aa=_0x56620d['checkChild'](_0x65be0e['parent'],'blockQuote'),_0x69d768=_0x56620d['checkChild'](['$root','blockQuote'],_0x65be0e);return _0x17a9aa&&_0x69d768;}(_0x4fe14c,this['editor']['model']['schema']));_0x54a0eb=to(_0x2998e1,_0x32e941['model']);}else{const _0x1bcef3=Array['from'](_0x1dbed7['getSelectedBlocks']())['filter'](_0x16f461=>oo(_0x16f461));_0x54a0eb=to(_0x1bcef3,_0x32e941['model']);}_0x32e941['model']['change'](()=>{for(const _0x19b119 of _0x54a0eb)_0x4090da['markBlockFormat'](_0x19b119,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2243d1}]});});}),_0x4090da['descriptionFactory']['registerDescriptionCallback'](_0x31ba8a=>{const {data:_0x5aff68}=_0x31ba8a;if(_0x5aff68&&'blockQuote'==_0x5aff68['commandName']){const _0x43525a=o(_0x11cf61,'ELEMENT_BLOCK_QUOTE');return _0x5aff68['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11cf61,'*Set\x20format:*\x20%0',_0x43525a)}:{'type':'format','content':o(_0x11cf61,'*Remove\x20format:*\x20%0',_0x43525a)};}});}}function oo(_0x2a2124){return'blockQuote'==_0x2a2124['parent']['name'];}class V extends _0x185c8e{['afterInit'](){const _0x27dbdd=this['editor'],_0x266624=_0x27dbdd['locale'],_0x238ffd=_0x27dbdd['plugins']['get']('TrackChangesEditing');_0x27dbdd['plugins']['has']('BookmarkEditing')&&(_0x238ffd['enableCommand']('insertBookmark'),_0x238ffd['enableDefaultAttributesIntegration']('updateBookmark'),_0x238ffd['registerBlockAttribute']('bookmarkId'),_0x238ffd['descriptionFactory']['registerDescriptionCallback'](_0x3a6ec6=>{if('insertion'!=_0x3a6ec6['type']&&'deletion'!=_0x3a6ec6['type']&&'attribute'!=_0x3a6ec6['type'])return;const _0x38ff27=_0x3a6ec6['getContainedElement']();if(null==_0x38ff27)return;if(!_0x38ff27['is']('element','bookmark'))return;const _0x5b71bc=_0x38ff27['getAttribute']('bookmarkId');if('insertion'==_0x3a6ec6['type'])return{'type':'insertion','content':o(_0x266624,'*Insert:*\x20%0','\x22'+_0x5b71bc+'\x22\x20'+o(_0x266624,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3a6ec6['type'])return{'type':'deletion','content':o(_0x266624,'*Remove:*\x20%0','\x22'+_0x5b71bc+'\x22\x20'+o(_0x266624,'ELEMENT_BOOKMARK'))};const {data:_0x515948}=_0x3a6ec6;if(!_0x515948||'bookmarkId'!=_0x515948['key'])return;return{'type':'format','content':o(_0x266624,'*Set\x20bookmark:*\x20%0','\x22'+_0x515948['newValue']+'\x22')};}));}}class F extends _0x185c8e{['afterInit'](){const _0x1dfbcc=this['editor'];_0x1dfbcc['plugins']['has']('CaseChange')&&(_0x1dfbcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1dfbcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1dfbcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x185c8e{['afterInit'](){const _0x1997ac=this['editor'];_0x1997ac['commands']['get']('ckbox')&&_0x1997ac['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x185c8e{['afterInit'](){const _0x47edf2=this['editor'];if(!_0x47edf2['plugins']['has']('CodeBlock'))return;const _0x1fa8a0=_0x47edf2['plugins']['get']('TrackChangesEditing'),_0x4c0814=_0x47edf2['locale'],_0x41e457=_0x47edf2['config']['get']('codeBlock')['languages'],_0x3c2ffc=_0x47edf2['commands']['get']('codeBlock');_0x1fa8a0['enableCommand']('indentCodeBlock'),_0x1fa8a0['enableCommand']('outdentCodeBlock'),_0x1fa8a0['enableCommand']('codeBlock',(_0x3b01ba,_0x14863f={})=>{const _0x6bd163=_0x47edf2['model'],_0x1693b9=_0x47edf2['model']['document']['selection'],_0x1ae8d9=_0x14863f&&void 0x0!==_0x14863f['forceValue']?_0x14863f['forceValue']:!_0x3c2ffc['value'];let _0x58f657;_0x14863f['language']||(_0x14863f['language']=_0x41e457[0x0]['language']),_0x58f657=_0x1ae8d9?Array['from'](_0x1693b9['getSelectedBlocks']())['filter'](_0x15cce2=>co(_0x15cce2)||function(_0x5169dc,_0x2bf691){if(_0x5169dc['is']('rootElement')||_0x2bf691['isLimit'](_0x5169dc))return!0x1;return _0x2bf691['checkChild'](_0x5169dc['parent'],'codeBlock');}(_0x15cce2,_0x6bd163['schema'])):Array['from'](_0x1693b9['getSelectedBlocks']())['filter'](_0x5b001f=>co(_0x5b001f));const _0x8c0a5c=to(_0x58f657,_0x6bd163);_0x6bd163['change'](()=>{for(const _0x366ca2 of _0x8c0a5c)_0x1fa8a0['markBlockFormat'](_0x366ca2,{'commandName':'codeBlock','commandParams':[{..._0x14863f,'forceValue':_0x1ae8d9}],'formatGroupId':'blockName'});});}),(_0x1fa8a0['descriptionFactory']['registerElementLabel']('codeBlock',_0x12f6c2=>o(_0x4c0814,'ELEMENT_CODE_BLOCK',_0x12f6c2)),_0x1fa8a0['descriptionFactory']['registerDescriptionCallback'](_0x4ff975=>{if('formatBlock'!=_0x4ff975['type'])return;const _0x1d9d6b=_0x4c0814['t'],{data:_0x4f02aa}=_0x4ff975;if(!_0x4f02aa||'codeBlock'!=_0x4f02aa['commandName'])return;const _0x57bfab=_0x4f02aa['commandParams'][0x0]['language'],_0x42a778=_0x1d9d6b(_0x41e457['find'](_0x27b11c=>_0x27b11c['language']===_0x57bfab)['label'])['toLowerCase']();return _0x4f02aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c0814,'*Set\x20format:*\x20%0',o(_0x4c0814,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x42a778+')')}:{'type':'format','content':o(_0x4c0814,'*Remove\x20format:*\x20%0',o(_0x4c0814,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x522e2d){return'codeBlock'==_0x522e2d['name'];}class J extends _0x185c8e{['afterInit'](){const _0x3d8299=this['editor'];if(!_0x3d8299['plugins']['has']('CommentsEditing'))return;_0x3d8299['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5ce713,_0x17179c,_0x42547f){const _0x473983=[];for(const _0x2468ab of _0x17179c['getItems']())_0x2468ab['hasAttribute'](_0x5ce713)&&_0x473983['push'](_0x42547f['createRangeOn'](_0x2468ab));return _0x473983;}function De(_0x4f7a30,_0x4f820e,{showActiveMarker:_0x531a71=!0x0}={}){const _0x4c90a0=_0x4f7a30['plugins']['get']('TrackChangesEditing');return(_0x597161,_0x1d831d,_0x4b02ab)=>{if(!_0x4b02ab['consumable']['test'](_0x1d831d['markerRange'],_0x597161['name']))return;const _0xede005=_0x1d831d['markerRange']['getWalker'](),_0x1fbed1=_0x1d831d['markerRange']['start'],_0x39006f=_0x4f7a30['model']['schema'];let _0xd225cc=null,_0xd79373=null,_0xd61d06=!0x1,_0x711247=!0x1;for(const _0x1d0292 of _0xede005){const _0x325e30=_0x1d0292['item'];_0xd61d06=_0xd61d06||_0x39006f['isContent'](_0x325e30);const _0x577abc=_0x4b02ab['mapper']['toViewElement'](_0x325e30);if(_0x577abc&&_0x577abc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d0292['type']&&(_0x39006f['isBlock'](_0x325e30)&&!_0x39006f['isLimit'](_0x325e30)&&(_0x325e30['nextSibling']||_0x1fbed1['isAtEnd']?_0xd225cc&&_0xd225cc['parent']==_0x325e30||(_0xd225cc=_0x325e30,_0x1f276d(_0x1d0292['previousPosition']),_0x711247=!0x0):_0xd79373=_0xd79373||_0x1d0292['previousPosition']));}function _0x1f276d(_0x101202){const {id:_0x42ea7e,authorId:_0x55ff52}=_0x4c90a0['_splitMarkerName'](_0x1d831d['markerName']),_0x15c00c=_0x4b02ab['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f820e,'data-suggestion':_0x42ea7e,'data-author-id':_0x55ff52}),_0xe3a0ec=_0x4b02ab['mapper']['toViewPosition'](_0x101202);_0x531a71&&_0x4c90a0['activeMarkers']['includes'](_0x1d831d['markerName'])&&_0x4b02ab['writer']['addClass']('ck-suggestion-marker--active',_0x15c00c),_0x4b02ab['writer']['insert'](_0xe3a0ec,_0x15c00c),_0x4b02ab['mapper']['bindElementToMarker'](_0x15c00c,_0x1d831d['markerName']);}_0xd61d06||_0x711247||!_0xd79373||_0x1f276d(_0xd79373);};}class K extends _0x185c8e{static get['requires'](){return[_0x2e2120];}['init'](){const _0x27d767=this['editor'],_0x5dc4e8=_0x27d767['plugins']['get']('TrackChangesEditing');_0x5dc4e8['enableCommand']('delete');const _0xeb2849=_0x27d767['commands']['get']('deleteForward');_0x5dc4e8['enableCommand']('deleteForward',(_0x18e0c2,_0x524fb5={})=>{const _0x23ba20=_0x27d767['model']['createSelection'](_0x27d767['model']['document']['selection']);_0x23ba20['isCollapsed']&&_0x27d767['model']['modifySelection'](_0x23ba20,{'direction':'forward','unit':_0x524fb5['unit']});const _0x14abd3=_0x23ba20['getFirstRange'](),_0x1a3623=_0x4ef168['fromRange'](_0x14abd3);let _0x869c4f;_0x18e0c2(_0x524fb5),_0x869c4f='$graveyard'==_0x1a3623['root']['rootName']?_0x27d767['model']['createRange'](_0x14abd3['start']):_0x27d767['model']['createRange'](_0x1a3623['start'],_0x1a3623['end']),_0x1a3623['detach'](),_0x27d767['model']['enqueueChange'](_0xeb2849['buffer']['batch'],_0x25d0c1=>{_0xeb2849['buffer']['lock'](),_0x25d0c1['setSelection'](_0x25d0c1['createRange'](_0x869c4f['end'])),_0xeb2849['buffer']['unlock']();});}),_0x27d767['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x27d767,'merge'),{'priority':'high'}),_0x27d767['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x119768,_0x5a03f1,_0x122ad5)=>{_0x122ad5['options']['showSuggestionHighlights']&&De(_0x27d767,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x119768,_0x5a03f1,_0x122ad5);},{'priority':'high'}),_0x27d767['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x407693,_0x4297a6,_0x2b8d86)=>{const _0x4c4e4e=_0x2b8d86['mapper']['markerNameToElements'](_0x4297a6['markerName']);if(_0x4c4e4e){for(const _0x28d701 of _0x4c4e4e)_0x28d701['is']('uiElement')&&(_0x2b8d86['mapper']['unbindElementFromMarkerName'](_0x28d701,_0x4297a6['markerName']),_0x2b8d86['writer']['remove'](_0x28d701));}},{'priority':'high'});}}class H extends _0x185c8e{['afterInit'](){const _0x427ccd=this['editor'];if(!_0x427ccd['plugins']['has']('ListEditing'))return;const _0x20cba1=_0x427ccd['locale'],_0x368ec0=_0x427ccd['plugins']['get']('TrackChangesEditing'),_0x5087d0=_0x427ccd['plugins']['has']('TodoListEditing'),_0x5e870f=!!_0x427ccd['config']['get']('list.multiBlock');function _0xe673f2(_0x3c440c){return{'type':'format','content':''+o(_0x20cba1,'*Set\x20format:*\x20%0',_0x3c440c)};}function _0x5b1d4f(_0x4e0436){return{'type':'format','content':''+o(_0x20cba1,'*Remove\x20format:*\x20%0',_0x4e0436)};}_0x368ec0['enableDefaultAttributesIntegration']('numberedList'),_0x368ec0['enableDefaultAttributesIntegration']('bulletedList'),_0x368ec0['enableDefaultAttributesIntegration']('customNumberedList'),_0x368ec0['enableDefaultAttributesIntegration']('customBulletedList'),_0x368ec0['enableDefaultAttributesIntegration']('indentList'),_0x368ec0['enableDefaultAttributesIntegration']('outdentList'),_0x368ec0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x368ec0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x368ec0['registerBlockAttribute']('listItemId'),_0x368ec0['registerBlockAttribute']('listType'),_0x368ec0['registerBlockAttribute']('listIndent'),_0x5e870f&&(_0x368ec0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x368ec0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5087d0&&(_0x368ec0['enableDefaultAttributesIntegration']('todoList'),_0x368ec0['enableDefaultAttributesIntegration']('checkTodoList'),_0x368ec0['registerBlockAttribute']('todoListChecked'),_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x1ded81=>{const {data:_0x5592c7}=_0x1ded81;if(_0x5592c7&&'todoListChecked'==_0x5592c7['key'])return{'type':'format','content':_0x5592c7['newValue']?o(_0x20cba1,'*Check\x20item*'):o(_0x20cba1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5a1268=>{if(_0x5a1268['batch']['isUndo'])return!0x1;let _0x4a6b28=!0x1;const _0x83badc=_0x368ec0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e7759=>'todoListChecked'===_0x368ec0['_getAttributeKey'](_0x5e7759));for(const _0x22625e of _0x83badc){'todo'!=_0x22625e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x368ec0['_findSuggestions'](_0x22625e['getFirstRange'](),'attribute')['find'](_0x336d6e=>'listType'===_0x368ec0['_getAttributeKey'](_0x336d6e['suggestion']))||(_0x5a1268['removeMarker'](_0x22625e['getFirstMarker']()),_0x4a6b28=!0x0));}return _0x4a6b28;})),_0x368ec0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x20cba1,'FORMAT_INDENT'));const _0x4c1d7d={'type':'format','content':''};_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x2f8d41=>{const {data:_0x24afc9}=_0x2f8d41;if(!_0x24afc9||'listType'!=_0x24afc9['key'])return;let _0x5217c9=_0x2f8d41['head'];for(;_0x5217c9;){if(_0x5217c9['data']&&(('listStyle'==_0x5217c9['data']['key']||'listMarkerStyle'==_0x5217c9['data']['key'])&&(_0x5217c9['data']['newValue']&&'default'!=_0x5217c9['data']['newValue']||'default'!=_0x5217c9['data']['oldValue']&&!_0x24afc9['newValue'])||!_0x5e870f&&_0x5217c9['data']['key']==m))return _0x4c1d7d;_0x5217c9=_0x5217c9['next'];}if(null==_0x24afc9['newValue'])switch(_0x24afc9['oldValue']){case'bulleted':return _0x5b1d4f(o(_0x20cba1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b1d4f(o(_0x20cba1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b1d4f(o(_0x20cba1,'ELEMENT_TODO_LIST'));}switch(_0x24afc9['newValue']){case'bulleted':return _0xe673f2(o(_0x20cba1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe673f2(o(_0x20cba1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe673f2(o(_0x20cba1,'ELEMENT_TODO_LIST'));}}),_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x3ee978=>{const {data:_0x45a2f3}=_0x3ee978;if(_0x45a2f3&&'listIndent'==_0x45a2f3['key'])return null==_0x45a2f3['newValue']||null==_0x45a2f3['oldValue']&&0x0==_0x45a2f3['newValue']?_0x4c1d7d:void 0x0;}),_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x5ee39a=>{if('attribute'!=_0x5ee39a['type'])return;const {data:_0x1ba7c7}=_0x5ee39a;if(!_0x1ba7c7||'listItemId'!=_0x1ba7c7['key'])return;const _0x4482b4=Te(_0x5ee39a);return'newValue'==_0x4482b4?{'type':'format','content':o(_0x20cba1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4482b4?{'type':'format','content':o(_0x20cba1,'*Split:*\x20list\x20item')}:_0x4c1d7d;}),_0x427ccd['model']['document']['registerPostFixer'](_0x5a4ba8=>this['listItemIdFixer'](_0x5a4ba8)),_0x427ccd['model']['document']['registerPostFixer'](_0x193186=>this['noTrackChangesFixer'](_0x193186)),_0x427ccd['model']['document']['on']('change:data',(_0x168fd8,_0x5e50eb)=>{if(_0x5e50eb['isUndo']||!_0x5e50eb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x487f3f){if(_0x487f3f['batch']['isUndo']||!_0x487f3f['batch']['isLocal'])return!0x1;let _0x281774=!0x1;const _0x1bf513=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x65b1de=>_0x65b1de['data']&&'listItemId'==_0x65b1de['data']['key'])['filter'](_0x2b427f=>_0x2b427f['data']['newValue']&&_0x2b427f['data']['oldValue']);for(const _0x307357 of _0x1bf513)Te(_0x307357)||(_0x487f3f['removeMarker'](_0x307357['getFirstMarker']()),_0x281774=!0x0);return _0x281774;}['noTrackChangesFixer'](_0x353ba7){if(_0x353ba7['batch']['isUndo']||!_0x353ba7['batch']['isLocal'])return!0x1;const _0x381022=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x381022['trackChangesCommand']['value'])return!0x1;let _0x4818d0=!0x1;const _0x27a97d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4985c2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2100c0=>'attribute'==_0x2100c0['type'])['filter'](_0x539999=>_0x27a97d['includes'](_0x539999['attributeKey']));if(0x0==_0x4985c2['length'])return _0x4818d0;for(const _0x2ecbd8 of _0x4985c2){const _0x27c6fb=_0x381022['_findSuggestions'](_0x2ecbd8['range'],'attribute')['filter'](_0x1c4815=>!_0x1c4815['meta']['isNextTo'])['map'](_0x3cd358=>_0x3cd358['suggestion'])['filter'](_0x4f1049=>{const _0x584d8b=_0x381022['_getAttributeKey'](_0x4f1049);return _0x27a97d['includes'](_0x584d8b);});if(_0x27c6fb['length']){for(const _0x578e31 of _0x27c6fb)_0x353ba7['removeMarker'](_0x578e31['getFirstMarker']());_0x4818d0=!0x0;}}return _0x4818d0;}['assureChains'](){const _0x2e4d10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x571c92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c58da;const _0x13e8a9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36cef5=>{if(_0x36cef5['data']['oldRange']||!_0x36cef5['data']['newRange'])return null;if(!_0x36cef5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2cafac}=_0x2e4d10['_splitMarkerName'](_0x36cef5['name']);if(!_0x2e4d10['hasSuggestion'](_0x2cafac))return null;const _0x61c9c7=_0x2e4d10['getSuggestion'](_0x2cafac);return _0x571c92['includes'](_0x61c9c7['data']['key']);})['map'](_0x39a912=>{const {id:_0x4b1000}=_0x2e4d10['_splitMarkerName'](_0x39a912['name']),_0x37d1d0=_0x2e4d10['getSuggestion'](_0x4b1000);return _0x1c58da=_0x37d1d0['attributes']['groupId'],_0x37d1d0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x13e8a9['size'])return;const _0x1a50e4=_0x2e4d10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c5efc=>'attribute'==_0x5c5efc['type']&&_0x5c5efc['data']&&_0x571c92['includes'](_0x5c5efc['data']['key'])&&_0x5c5efc['attributes']['groupId']!=_0x1c58da)['map'](_0x28ddd6=>({'listItem':_0x28ddd6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x28ddd6['attributes']['groupId']})),_0x2765be=new Set();for(const {groupId:_0x2a90a6,listItem:_0x101959}of _0x1a50e4)_0x13e8a9['has'](_0x101959)&&_0x2765be['add'](_0x2a90a6);for(const _0x5b395b of _0x2e4d10['getSuggestions']())_0x2765be['has'](_0x5b395b['attributes']['groupId'])&&_0x5b395b['setAttribute']('groupId',_0x1c58da);}['_supportLegacySuggestions'](){const _0x64d4bc=this['editor'],_0x452951=_0x64d4bc['locale'],_0x5d98fb=_0x64d4bc['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d98fb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5928eb,_0x269732){const _0x17b687=[];for(let _0x35e9d2 of _0x5928eb)_0x35e9d2['start']['nodeAfter']===_0x35e9d2['end']['parent']&&(_0x35e9d2=_0x64d4bc['model']['createRange'](_0x64d4bc['model']['createPositionAt'](_0x35e9d2['start']['nodeAfter'],0x0))),_0x17b687['push'](_0x35e9d2);_0x64d4bc['model']['change'](_0x4370bb=>{const _0x3b03a0=_0x64d4bc['model']['document']['selection'],_0x50cc0d=Array['from'](_0x3b03a0['getRanges']())['map'](_0x428218=>_0x4ef168['fromRange'](_0x428218));_0x4370bb['setSelection'](_0x17b687),_0x64d4bc['commands']['get'](_0x269732['commandName'])['refresh'](),_0x269732['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x64d4bc['execute'](_0x269732['commandName'],..._0x269732['commandParams']),_0x4370bb['setSelection'](_0x50cc0d);for(const _0x1b87f3 of _0x50cc0d)_0x1b87f3['detach']();});}),_0x5d98fb['descriptionFactory']['registerElementLabel'](function(_0x15e57e){const _0x394958=!_0x64d4bc['model']['schema']['isObject'](_0x15e57e),_0x5d1fef=_0x15e57e['previousSibling'],_0x181b13=_0x15e57e['nextSibling'],_0x252a2c=_0x15e57e['getAttribute']('listItemId'),_0x31176f=!_0x5d1fef||_0x5d1fef['getAttribute']('listItemId')!==_0x252a2c,_0x409715=!_0x181b13||_0x181b13['getAttribute']('listItemId')!==_0x252a2c;return _0x394958&&Boolean(_0x252a2c)&&_0x31176f&&_0x409715;},_0x44c7ba=>o(_0x452951,'ELEMENT_LIST_ITEM',_0x44c7ba));}['_registerLegacyDescription'](){const _0x39f886=this['editor'],_0x2617e2=_0x39f886['locale'];function _0xe6189a(_0xa9cd88){const _0x5c16d7=_0x39f886['commands']['get']('bulletedList')['value'],_0x6fec15=_0x39f886['commands']['get']('numberedList')['value'];return'numberedList'===_0xa9cd88?_0x5c16d7:_0x6fec15;}_0x39f886['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbe04f5){if('formatBlock'!=_0xbe04f5['type'])return;const {data:_0x3fbdbf}=_0xbe04f5;if(!_0x3fbdbf)return;let _0x1f0824,_0x31f74c,_0x310895,_0x303138;switch(_0x3fbdbf['commandName']){case'bulletedList':_0x310895=_0x3fbdbf['commandParams'][0x0]['forceValue'],_0x303138=_0xe6189a(_0x3fbdbf['commandName']),_0x1f0824=_0x310895?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x303138&&_0x39f886['config']['get']('list.multiBlock')||(_0x1f0824='*Change\x20to:*\x20%0'),_0x31f74c={'type':'format','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x310895=_0x3fbdbf['commandParams'][0x0]['forceValue'],_0x303138=_0xe6189a(_0x3fbdbf['commandName']),_0x1f0824=_0x310895?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x303138&&_0x39f886['config']['get']('list.multiBlock')||(_0x1f0824='*Change\x20to:*\x20%0'),_0x31f74c={'type':'format','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f0824='*Indent:*\x20%0',_0x31f74c={'type':'format','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f0824=function(_0x1b7e03){const _0x4bfa86=_0x1b7e03['getFirstRange']();let _0x2ab6f8=_0x4bfa86['start']['nodeAfter'];for(;_0x2ab6f8&&_0x4bfa86['containsItem'](_0x2ab6f8);){if(_0x2ab6f8['getAttribute']('listIndent')>0x0)return!0x1;_0x2ab6f8=_0x2ab6f8['nextSibling'];}return!0x0;}(_0xbe04f5)?o(_0x2617e2,'*Format:*\x20remove\x20from\x20%0',o(_0x2617e2,function(_0x272183){return'ELEMENT_'+_0x272183['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbe04f5))):o(_0x2617e2,'*Outdent:*\x20%0',o(_0x2617e2,'ELEMENT_LIST_ITEM')),_0x31f74c={'type':'format','content':_0x1f0824};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3fbdbf['multipleBlocks']&&(_0x1f0824='*Merge:*\x20%0',_0x31f74c={'type':'deletion','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_LIST_ITEM'))});}return _0x31f74c;});}}function Te(_0x3604cc){let _0x57a4c1=_0x3604cc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57a4c1;){const _0xc0efbd=_0x57a4c1['getAttribute']('listItemId');if(!_0xc0efbd)return!0x1;if(_0xc0efbd==_0x3604cc['data']['newValue'])return'newValue';if(_0xc0efbd==_0x3604cc['data']['oldValue'])return'oldValue';_0x57a4c1=_0x57a4c1['previousSibling'];}return!0x1;}class q extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f3294=this['editor']['config']['get']('list.properties'),_0x15dc78=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f3294['styles']&&(_0x15dc78['enableDefaultAttributesIntegration']('listStyle'),_0x15dc78['registerBlockAttribute']('listStyle')),_0x5f3294['reversed']&&(_0x15dc78['enableDefaultAttributesIntegration']('listReversed'),_0x15dc78['registerBlockAttribute']('listReversed')),_0x5f3294['startIndex']&&(_0x15dc78['enableDefaultAttributesIntegration']('listStart'),_0x15dc78['registerBlockAttribute']('listStart'));const _0x6e1785={'type':'format','content':''};_0x15dc78['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x77b486=this['editor']['locale'];_0x15dc78['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x77b486,'FORMAT_LIST_REVERSED')),_0x15dc78['descriptionFactory']['registerDescriptionCallback'](_0x1f65a4=>{const {data:_0x4d7828}=_0x1f65a4;if(_0x4d7828&&'listReversed'==_0x4d7828['key'])return null==_0x4d7828['newValue']||0x0==_0x4d7828['newValue']&&null==_0x4d7828['oldValue']?_0x6e1785:void 0x0;}),_0x15dc78['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x77b486,'FORMAT_LIST_START')),_0x15dc78['descriptionFactory']['registerDescriptionCallback'](_0x59ef6e=>{const {data:_0x17a6d4}=_0x59ef6e;if(_0x17a6d4&&'listStart'==_0x17a6d4['key'])return null==_0x17a6d4['newValue']||0x1==_0x17a6d4['newValue']&&null==_0x17a6d4['oldValue']?_0x6e1785:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x433633=>{if(_0x433633['batch']['isUndo'])return!0x1;let _0x225358=!0x1;const _0x28026a=_0x15dc78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58d343=>{const _0x3467fd=_0x15dc78['_getAttributeKey'](_0x58d343);return'listStart'==_0x3467fd||'listReversed'==_0x3467fd;});for(const _0x230a2d of _0x28026a){const _0x1f3662=_0x230a2d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f3662||'customNumbered'==_0x1f3662)continue;_0x15dc78['_findSuggestions'](_0x230a2d['getFirstRange'](),'attribute')['find'](_0x174954=>'listType'==_0x15dc78['_getAttributeKey'](_0x174954['suggestion']))||(_0x433633['removeMarker'](_0x230a2d['getFirstMarker']()),_0x225358=!0x0);}return _0x225358;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x55ea82){const _0x5517b0=this['editor']['locale'],{data:_0x34f717}=_0x55ea82,_0x25c796={'type':'format','content':''};if(!_0x34f717||'listStyle'!=_0x34f717['key'])return;if(!_0x34f717['oldValue'])return'default'==_0x34f717['newValue']?_0x25c796:{'type':'format','content':''+o(_0x5517b0,'*Set\x20format:*\x20%0',o(_0x5517b0,this['_getTranslationKeyForListStyle'](_0x34f717['newValue'])))};if(!_0x34f717['newValue']){if('default'==_0x34f717['oldValue'])return _0x25c796;let _0x3a5d7f=_0x55ea82['head'];for(;_0x3a5d7f;){if(_0x3a5d7f['data']&&'listType'==_0x3a5d7f['data']['key']&&_0x3a5d7f['data']['newValue'])return _0x25c796;_0x3a5d7f=_0x3a5d7f['next'];}return{'type':'format','content':''+o(_0x5517b0,'*Remove\x20format:*\x20%0',o(_0x5517b0,this['_getTranslationKeyForListStyle'](_0x34f717['oldValue'])))};}if('default'!=_0x34f717['newValue'])return{'type':'format','content':''+o(_0x5517b0,'*Set\x20format:*\x20%0',o(_0x5517b0,this['_getTranslationKeyForListStyle'](_0x34f717['newValue'])))};let _0x2ad83b=_0x55ea82['head'];for(;_0x2ad83b;){if(_0x2ad83b['data']&&'listType'==_0x2ad83b['data']['key']&&_0x2ad83b['data']['newValue']&&_0x2ad83b['data']['oldValue'])return _0x25c796;_0x2ad83b=_0x2ad83b['next'];}return{'type':'format','content':o(_0x5517b0,'*Set\x20format:*\x20%0',o(_0x5517b0,'ELEMENT_'+_0x55ea82['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b1a3d=this['editor'],_0x587a80=_0x3b1a3d['locale'];_0x3b1a3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dd4c5=>{if('formatBlock'!=_0x2dd4c5['type'])return;const {data:_0x4ea33b}=_0x2dd4c5;if(!_0x4ea33b)return;let _0xabe8da,_0x25d0e0;switch(_0x4ea33b['commandName']){case'listStyle':_0xabe8da='*Change\x20to:*\x20%0',_0x25d0e0={'type':'format','content':o(_0x587a80,_0xabe8da,o(_0x587a80,this['_getTranslationKeyForListStyle'](_0x4ea33b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xabe8da=_0x4ea33b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25d0e0={'type':'format','content':o(_0x587a80,_0xabe8da)};break;case'listStart':_0xabe8da='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25d0e0={'type':'format','content':o(_0x587a80,_0xabe8da,_0x4ea33b['commandParams'][0x0]['startIndex'])};}return _0x25d0e0;});}['_getTranslationKeyForListStyle'](_0x15efad){return'ELEMENT_'+function(_0x2f4c2a){if(Se['includes'](_0x2f4c2a))return'bulleted';if(_e['includes'](_0x2f4c2a))return'numbered';return null;}(_0x15efad)['toUpperCase']()+'_LIST_'+_0x15efad['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x185c8e{['afterInit'](){const _0x5bf57c=this['editor'];_0x5bf57c['commands']['get']('emoji')&&_0x5bf57c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x185c8e{static get['requires'](){return[_0x7a9e08];}['init'](){const _0x1254a1=this['editor'],_0x1e4617=_0x1254a1['plugins']['get']('TrackChangesEditing'),_0x14418c=_0x1254a1['commands']['get']('enter');_0x1e4617['enableCommand']('enter',()=>{_0x1254a1['model']['change'](_0x5618cc=>{const _0x3c27a0=_0x1254a1['model']['document']['selection'],_0x26f0e5=_0x3c27a0['getFirstPosition'](),_0x46a9ae=_0x4ef168['fromRange'](_0x3c27a0['getFirstRange']());if(_0x14418c['enterBlock'](_0x5618cc)){const _0x21680d=_0x1254a1['model']['createPositionAt'](_0x26f0e5['parent']['nextSibling'],0x0),_0x58bde1=_0x5618cc['createRange'](_0x26f0e5,_0x21680d);_0x1e4617['markInsertion'](_0x58bde1);}else _0x5618cc['setSelection'](_0x5618cc['createRange'](_0x46a9ae['end']));_0x46a9ae['detach'](),_0x14418c['fire']('afterExecute',{'writer':_0x5618cc});});}),_0x1254a1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1254a1,'split'),{'priority':'high'}),_0x1254a1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x158400,_0x427563,_0x38e87b)=>{const _0x4de89f=_0x38e87b['mapper']['markerNameToElements'](_0x427563['markerName']);if(_0x4de89f){for(const _0x437799 of _0x4de89f)_0x437799['hasClass']('ck-suggestion-marker-split')&&(_0x38e87b['mapper']['unbindElementFromMarkerName'](_0x437799,_0x427563['markerName']),_0x38e87b['writer']['remove'](_0x437799));}},{'priority':'high'}),_0x1254a1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47e61c,_0x59f7e1,_0x44fc6e)=>{_0x44fc6e['options']['showSuggestionHighlights']&&De(_0x1254a1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x47e61c,_0x59f7e1,_0x44fc6e);},{'priority':'high'});}}class Q extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x154f67=this['editor']['plugins']['get']('TrackChangesEditing');_0x154f67['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x154f67['enableCommand']('findNext'),_0x154f67['enableCommand']('findPrevious'),_0x154f67['enableCommand']('replace'),_0x154f67['enableCommand']('replaceAll');}['handleFindCommand'](_0x57789d,_0x156973,_0x281681={}){const _0x3fd2f4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x57789d(_0x39ad9b=>{let _0x486b7b=('string'==typeof _0x156973?_0x3fd2f4['findByTextCallback'](_0x156973,_0x281681):_0x156973)(_0x39ad9b);Array['isArray'](_0x486b7b)&&(_0x486b7b={'results':_0x486b7b,'searchText':'string'==typeof _0x156973?_0x156973:''});const _0x278f13=_0x486b7b['results']['filter'](_0x22e0de=>!0x1===this['_isInDeletionRange'](_0x22e0de,_0x39ad9b['item']));return{..._0x486b7b,'results':_0x278f13};},_0x281681);}['_isInDeletionRange'](_0x40bcdd,_0x58a107){const _0x57c42f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58a107,_0x40bcdd['start']),this['editor']['model']['createPositionAt'](_0x58a107,_0x40bcdd['end']));for(const _0x21d79a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57c42f['getIntersection'](_0x21d79a['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x185c8e{['afterInit'](){const _0x3d7eb4=this['editor']['locale'],_0x47c43e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x37eedf,commandName:_0x3fe2ec}of eo)this['editor']['plugins']['has'](_0x37eedf)&&(_0x47c43e['enableDefaultAttributesIntegration'](_0x3fe2ec),_0x47c43e['registerInlineAttribute'](_0x3fe2ec));_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3d7eb4,'FORMAT_FONT_SIZE')),_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3d7eb4,'FORMAT_FONT_FAMILY')),_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3d7eb4,'FORMAT_FONT_COLOR')),_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3d7eb4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5272bb=this['editor'],_0x21cec6=_0x5272bb['locale'];_0x5272bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2543d2=>{const _0xb6beea=_0x21cec6['t'];if('formatInline'!=_0x2543d2['type'])return;const {data:_0x24a2d3}=_0x2543d2;if(null!=_0x24a2d3){if('fontSize'==_0x24a2d3['commandName']){const _0x32af3d=_0x24a2d3['commandParams'][0x0]['value'];if(_0x32af3d){const _0x51ba06=_0xb6beea(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5781c2=>_0x5781c2['model']==_0x32af3d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20size:*\x20%0',_0x51ba06)};}return{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x24a2d3['commandName']){const _0xeb8da=_0x24a2d3['commandParams'][0x0]['value'];return _0xeb8da?{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20family:*\x20%0',_0xeb8da)}:{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x24a2d3['commandName']){const _0xa8ccdb=_0x24a2d3['commandParams'][0x0]['value'];if(_0xa8ccdb){const _0x2570e8=_0x22f526(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2aa2ec=>_0x2aa2ec['model']==_0xa8ccdb);let _0x46c932=_0xa8ccdb,_0x1347e7='';return _0x2570e8&&(_0x46c932=_0x2570e8['label'],_0x1347e7=_0xb6beea(_0x46c932)['toLowerCase']()),{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20color:*\x20%0',_0x1347e7)['trim'](),'color':{'value':_0xa8ccdb,'title':_0x1347e7||_0x46c932}};}return{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x24a2d3['commandName']){const _0x433c0c=_0x24a2d3['commandParams'][0x0]['value'];if(_0x433c0c){const _0x42eff4=_0x22f526(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3af1a9=>_0x3af1a9['model']==_0x433c0c);let _0x4134d2=_0x433c0c,_0x51deba='';return _0x42eff4&&(_0x4134d2=_0x42eff4['label'],_0x51deba=_0xb6beea(_0x4134d2)['toLowerCase']()),{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20background\x20color:*\x20%0',_0x51deba)['trim'](),'color':{'value':_0x433c0c,'title':_0x51deba||_0x4134d2}};}return{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x185c8e{['afterInit'](){const _0x2f062b=this['editor'],_0x2baef9=_0x2f062b['plugins']['get']('TrackChangesEditing'),_0x5ecd28=_0x2f062b['commands']['get']('copyFormat'),_0x26261b=_0x2f062b['commands']['get']('pasteFormat');_0x5ecd28&&_0x26261b&&(_0x2baef9['enableDefaultAttributesIntegration']('pasteFormat'),_0x2baef9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3876a9=this['editor'],_0x2c262c=_0x3876a9['locale'];_0x3876a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b1d71=>{if('formatBlock'!=_0x3b1d71['type']&&'formatInline'!=_0x3b1d71['type'])return;const {data:_0x3e9d0d}=_0x3b1d71;if(_0x3e9d0d&&'pasteFormat'===_0x3e9d0d['commandName']){const _0x3f5f45=[],_0x24d595=_0x3e9d0d['commandParams'][0x0];for(const [_0x5c63ce,_0x10690e]of Object['entries'](_0x24d595))_0x3f5f45['push'](ro(_0x3876a9,_0x5c63ce,_0x10690e));return _0x3f5f45['length']?{'type':'format','content':o(_0x2c262c,'*Set\x20format\x20to:*\x20%0',_0x3f5f45['join'](',\x20'))}:{'type':'format','content':o(_0x2c262c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3cb958,_0x332cea,_0x5526f4){const _0x2c8d6f=_0x3cb958['locale']['t'],_0x2bc85c=_0x332cea['split'](/(?=[A-Z])/)['join']('\x20'),_0x2220ba=_0x2c8d6f(_0x2bc85c['charAt'](0x0)['toUpperCase']()+_0x2bc85c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5526f4)return _0x2220ba;if('fontColor'===_0x332cea||'fontBackgroundColor'===_0x332cea){const _0x21ba3c=_0x22f526(_0x3cb958['config']['get']('fontColor.colors'))['find'](_0x3422f0=>_0x3422f0['model']==_0x5526f4);return _0x2220ba+'\x20('+(_0x21ba3c?_0x2c8d6f(_0x21ba3c['label'])['toLowerCase']():_0x5526f4)+')';}if('fontSize'===_0x332cea&&isNaN(parseFloat(_0x5526f4))){const _0x26b733=_0x3cb958['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cb958['config']['get']('fontSize.options'))['find'](_0x15fc58=>_0x15fc58['model']==_0x5526f4);return _0x2220ba+'\x20('+(_0x26b733?_0x2c8d6f(_0x26b733['title'])['toLowerCase']():_0x5526f4)+')';}return _0x2220ba+'\x20('+_0x5526f4+')';}class Z extends _0x185c8e{['_headingOptions'];['afterInit'](){const _0x5dea4b=this['editor'];if(!_0x5dea4b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5dea4b['config']['get']('heading.options');const _0x45b679=_0x5dea4b['locale'],_0x316fd9=_0x5dea4b['plugins']['get']('TrackChangesEditing');_0x316fd9['enableDefaultAttributesIntegration']('heading');for(const _0x350b00 of this['_headingOptions'])'paragraph'!=_0x350b00['model']&&_0x316fd9['descriptionFactory']['registerElementLabel'](_0x350b00['model'],_0x494612=>{const _0x4469a4=this['_getHeadingLevel'](_0x350b00['model']);return null!==_0x4469a4?_0x483d22(_0x494612,_0x4469a4):_0x25c6bd(_0x494612,_0x350b00['title']);});function _0x483d22(_0x377f85,_0x4fef8e){return o(_0x45b679,'ELEMENT_HEADING',[_0x377f85,_0x4fef8e]);}function _0x25c6bd(_0x188275,_0x5ccb5a){return o(_0x45b679,'ELEMENT_HEADING_CUSTOM',[_0x188275,_0x5ccb5a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430b0e=this['editor'],_0x1540bb=_0x430b0e['locale'];function _0x8dd15c(_0x48226a,_0x4a3361){return o(_0x1540bb,'ELEMENT_HEADING_CUSTOM',[_0x48226a,_0x4a3361]);}_0x430b0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x61850=>{if('formatBlock'!=_0x61850['type'])return;const {data:_0x474d23}=_0x61850;if(_0x474d23&&'heading'==_0x474d23['commandName']){const _0x544f53=_0x474d23['commandParams'][0x0]['value'],_0x28d27d=this['_getHeadingLevel'](_0x544f53);if(null!==_0x28d27d)return{'type':'format','content':o(_0x1540bb,'*Change\x20to:*\x20%0',(_0xd97921=0x1,_0x5700ec=_0x28d27d,o(_0x1540bb,'ELEMENT_HEADING',[_0xd97921,_0x5700ec])))};const _0x300ba0=this['_headingOptions']['find'](_0xbf62d0=>_0xbf62d0['model']===_0x544f53)['title'];return{'type':'format','content':o(_0x1540bb,'*Change\x20to:*\x20%0',_0x8dd15c(0x1,_0x300ba0))};}var _0xd97921,_0x5700ec;});}['_getHeadingLevel'](_0x463dec){const _0x3ce2f8=_0x463dec['match'](/^heading(\d+)/);if(_0x3ce2f8)return _0x3ce2f8[0x1];const _0x5e9257=this['_headingOptions']?.['find'](_0xf72aef=>_0xf72aef['model']==_0x463dec);if(_0x5e9257&&_0x5e9257['view']){const _0xdb27e2=_0x5e9257['view'],_0x406b7d=(_0xdb27e2['name']??_0xdb27e2)['match'](/^h(\d+)/);if(_0x406b7d)return _0x406b7d[0x1];}return null;}}class tt extends _0x185c8e{['afterInit'](){const _0x5cf17d=this['editor'];if(!_0x5cf17d['plugins']['has']('HighlightEditing'))return;const _0x57632c=_0x5cf17d['plugins']['get']('TrackChangesEditing'),_0x4b8635=_0x5cf17d['locale'];_0x57632c['enableDefaultAttributesIntegration']('highlight'),_0x57632c['registerInlineAttribute']('highlight'),_0x57632c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4b8635,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2360de=this['editor'],_0x5d5e38=_0x2360de['locale'];_0x2360de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d5bc=>{if('formatInline'!=_0x58d5bc['type'])return;const {data:_0x68081f}=_0x58d5bc;if(_0x68081f&&'highlight'==_0x68081f['commandName']){const _0xe56534=_0x5d5e38['t'],_0x30540d=_0x68081f['commandParams'][0x0]['value'];if(_0x30540d){const _0x2d71d1=_0x2360de['config']['get']('highlight.options')['find'](_0x342e23=>_0x342e23['model']==_0x30540d),_0x16b33a=_0xe56534(_0x2d71d1['title'])['toLowerCase']();return{'type':'format','content':o(_0x5d5e38,'*Set\x20highlight:*\x20%0',_0x16b33a),'color':{'value':_0x2d71d1['color'],'title':_0x2d71d1['title']}};}return{'type':'format','content':o(_0x5d5e38,'*Remove\x20highlight*',o(_0x5d5e38,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x185c8e{['afterInit'](){const _0x24b618=this['editor'];if(!_0x24b618['plugins']['has']('HorizontalLineEditing'))return;_0x24b618['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x449781=_0x24b618['plugins']['get']('TrackChangesEditing'),_0x1413dc=_0x24b618['locale'];_0x449781['descriptionFactory']['registerElementLabel']('horizontalLine',_0x214693=>o(_0x1413dc,'ELEMENT_HORIZONTAL_LINE',_0x214693)),_0x24b618['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4774d9,{writer:_0x36982f,options:_0x4ef6ad})=>{if(!_0x4ef6ad['showSuggestionHighlights'])return null;const _0x2764e8=_0x36982f['createContainerElement']('div'),_0x46e352=_0x36982f['createEmptyElement']('hr');return _0x36982f['addClass']('ck-horizontal-line',_0x2764e8),_0x36982f['insert'](_0x36982f['createPositionAt'](_0x2764e8,0x0),_0x46e352),_0x2764e8;},'converterPriority':'high'});}}class nt extends _0x185c8e{['afterInit'](){const _0x26b0e8=this['editor'];if(!_0x26b0e8['plugins']['has']('HtmlEmbed'))return;const _0x390f8b=_0x26b0e8['plugins']['get']('TrackChangesEditing'),_0x3883d0=_0x26b0e8['locale'];_0x390f8b['descriptionFactory']['registerElementLabel']('rawHtml',_0x20bb84=>o(_0x3883d0,'ELEMENT_HTML_EMBED',_0x20bb84)),_0x390f8b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x390f8b['registerBlockAttribute']('value'),_0x390f8b['descriptionFactory']['registerDescriptionCallback'](_0x88b96a=>{if('attribute'!=_0x88b96a['type'])return;const {data:_0x2029b7}=_0x88b96a;if(_0x2029b7&&'value'==_0x2029b7['key']&&_0x88b96a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x11ef06=o(_0x3883d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3883d0,'*Change\x20%0\x20content*',_0x11ef06)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x254e04=this['editor'],_0x2896be=_0x254e04['locale'];_0x254e04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1baf99=>{if('formatBlock'!=_0x1baf99['type'])return;const {data:_0x11110a}=_0x1baf99;if(_0x11110a&&'htmlEmbed'==_0x11110a['commandName']){const _0x3ed1ca=o(_0x2896be,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2896be,'*Change\x20%0\x20content*',_0x3ed1ca)};}});}}class et extends _0x185c8e{['afterInit'](){const _0x3fd980=this['editor'];if(!_0x3fd980['plugins']['has']('ImageEditing'))return;const _0x509c3d=_0x3fd980['plugins']['get']('TrackChangesEditing'),_0x12ff9c=_0x3fd980['plugins']['get']('ImageUtils'),_0x4fe167=_0x3fd980['locale'];_0x509c3d['enableCommand']('insertImage'),_0x509c3d['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c0d49=>o(_0x4fe167,'ELEMENT_IMAGE',_0x2c0d49)),_0x509c3d['descriptionFactory']['registerElementLabel']('imageInline',_0x15dce2=>o(_0x4fe167,'ELEMENT_INLINE_IMAGE',_0x15dce2)),_0x509c3d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4fe167,'ELEMENT_CAPTION')),_0x3fd980['plugins']['has']('ImageUploadEditing')&&_0x509c3d['enableCommand']('uploadImage'),_0x3fd980['plugins']['has']('ImageBlockEditing')&&_0x3fd980['plugins']['has']('ImageInlineEditing')&&(_0x509c3d['enableCommand']('imageTypeInline',(_0x32fcef,_0x3a8f92)=>{const _0x379e79=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']);_0x3fd980['model']['change'](()=>{_0x509c3d['markBlockFormat'](_0x379e79,{'commandName':'imageTypeInline','commandParams':[_0x3a8f92]},[],'convertBlockImageToInline');});}),_0x509c3d['enableCommand']('imageTypeBlock',(_0x45c05c,_0x240b07)=>{_0x3fd980['model']['change'](_0x12b525=>{let _0x389c2f=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x75878f=_0x12b525['createRangeOn'](_0x389c2f);const _0x4fdb74=_0x2cbf43['fromPosition'](_0x75878f['start'],'toPrevious'),_0x2c9b8c=_0x2cbf43['fromPosition'](_0x75878f['end'],'toNext');_0x509c3d['forceDefaultExecution'](()=>_0x45c05c(_0x240b07)),_0x389c2f=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x75878f=_0x12b525['createRangeOn'](_0x389c2f);const _0x577bf8=_0x12b525['createRange'](_0x4fdb74,_0x2c9b8c);_0x4fdb74['detach'](),_0x2c9b8c['detach'](),_0x509c3d['markBlockFormat'](_0x389c2f,{'commandName':'imageTypeInline','commandParams':[_0x240b07]},[],'convertInlineImageToBlock'),_0x577bf8['start']['isBefore'](_0x75878f['start'])&&_0x509c3d['markInsertion'](_0x12b525['createRange'](_0x577bf8['start'],_0x75878f['start']),'convertInlineImageToBlock'),_0x75878f['end']['isBefore'](_0x577bf8['end'])&&_0x509c3d['markInsertion'](_0x12b525['createRange'](_0x75878f['end'],_0x577bf8['end']),'convertInlineImageToBlock');});}),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x509c3d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x33fd9a])=>{const _0xe56ec9=_0x509c3d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x258170=_0x33fd9a['start'],_0x5dab54=_0x33fd9a['end'];const _0x2869d2=_0x3fd980['model']['schema']['getNearestSelectionRange'](_0x258170,'backward'),_0x5d6d03=_0x3fd980['model']['schema']['getNearestSelectionRange'](_0x5dab54,'forward');_0x2869d2['isCollapsed']&&(_0x258170=_0x2869d2['start']),_0x5d6d03['isCollapsed']&&(_0x5dab54=_0x5d6d03['end']),_0xe56ec9([_0x3fd980['model']['createRange'](_0x258170,_0x5dab54)]);}),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x7c8912),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x7c8912)),_0x3fd980['plugins']['has']('ImageCaptionEditing')&&(_0x509c3d['enableCommand']('toggleImageCaption',(_0x3a1053,_0x15caf7)=>{const _0x1afdab=_0x3fd980['plugins']['get']('ImageCaptionUtils');let _0xce8ab9=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x4434dd=_0x1afdab['getCaptionFromImageModelElement'](_0xce8ab9);_0x3fd980['model']['change'](()=>{if(_0x4434dd)return void _0x509c3d['markDeletion'](_0x3fd980['model']['createRangeOn'](_0x4434dd));const _0x56167d=_0x12ff9c['isBlockImage'](_0xce8ab9);_0x3a1053(_0x15caf7),_0xce8ab9=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x4434dd=_0x1afdab['getCaptionFromImageModelElement'](_0xce8ab9),_0x509c3d['markInsertion'](_0x3fd980['model']['createRangeOn'](_0x4434dd),_0x56167d?null:'imageCaption');});}),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x7c8912));const _0x2eb3de=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2a7f5b(_0x1bcc66,_0x25ead0){const _0xbd9f1e=_0x2eb3de['findIndex'](({type:_0x2217e3,subType:_0x1502d1})=>_0x1bcc66['type']==_0x2217e3&&_0x1bcc66['subType']==_0x1502d1),_0x370a2f=_0x2eb3de['findIndex'](({type:_0x5c7061,subType:_0xe2e249})=>_0x25ead0['type']==_0x5c7061&&_0x25ead0['subType']==_0xe2e249);if(_0xbd9f1e<0x0||_0x370a2f<0x0)return!0x1;const _0x3cb5d6=_0x1bcc66['getFirstRange'](),_0x4517af=_0x25ead0['getFirstRange']();if((0x0==_0xbd9f1e||0x1==_0xbd9f1e)&&0x2==_0x370a2f&&_0x3cb5d6['isIntersecting'](_0x4517af))return!0x0;if(0x2==_0xbd9f1e&&0x3==_0x370a2f){const _0x476920=_0x509c3d['_findSuggestions'](_0x3cb5d6,'insertion')['filter'](({suggestion:_0x2ed3d1,meta:_0x85eed0})=>_0x85eed0['isOwn']&&'convertInlineImageToBlock'==_0x2ed3d1['subType']);if(_0x476920['length']>0x1&&_0x4517af['end']['isEqual'](_0x3cb5d6['start']))return!0x0;if(0x1==_0x476920['length']&&(_0x3cb5d6['start']['isEqual'](_0x4517af['end'])||_0x3cb5d6['end']['isEqual'](_0x4517af['start'])))return!0x0;}if(0x3==_0xbd9f1e&&0x3==_0x370a2f&&_0x3cb5d6['start']['isBefore'](_0x4517af['start'])){const _0xcba2c2=_0x3cb5d6['end']['nodeAfter'],_0x14bcf0=_0x4517af['start']['nodeBefore'];return _0x12ff9c['isBlockImage'](_0xcba2c2)&&_0xcba2c2===_0x14bcf0;}return!0x1;}function _0x7c8912(_0x50ef3e,_0x183e79){return _0x2a7f5b(_0x50ef3e,_0x183e79)?[_0x50ef3e,_0x183e79]:_0x2a7f5b(_0x183e79,_0x50ef3e)?[_0x183e79,_0x50ef3e]:null;}_0x3fd980['plugins']['has']('ImageResize')&&(_0x509c3d['enableDefaultAttributesIntegration']('resizeImage'),_0x509c3d['registerBlockAttribute']('resizedWidth'),_0x509c3d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4fe167,'FORMAT_IMAGE_SIZE'))),_0x3fd980['plugins']['has']('ImageTextAlternativeEditing')&&(_0x509c3d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x509c3d['registerBlockAttribute']('alt')),_0x3fd980['plugins']['has']('PictureEditing')&&(_0x509c3d['registerBlockAttribute']('sources'),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x5cebd7=>{if('attribute'!=_0x5cebd7['type'])return;const {data:_0x31624b}=_0x5cebd7;return _0x31624b&&'sources'==_0x31624b['key']?{'type':'format','content':''}:void 0x0;})),_0x3fd980['plugins']['has']('ImageSizeAttributes')&&(_0x509c3d['registerBlockAttribute']('width'),_0x509c3d['registerBlockAttribute']('height'),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x3f1e9c=>{if('attribute'!=_0x3f1e9c['type'])return;const {data:_0x13d646}=_0x3f1e9c;return!_0x13d646||'width'!=_0x13d646['key']&&'height'!=_0x13d646['key']?void 0x0:{'type':'format','content':''};})),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x40a71f=>{if(!!_0x2eb3de['find'](({type:_0x266984,subType:_0x11c712})=>_0x40a71f['type']==_0x266984&&_0x40a71f['subType']==_0x11c712))return _0x40a71f['previous']?{}:void 0x0;}),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x375a63=>{if('insertion'==_0x375a63['type']||'deletion'==_0x375a63['type']){const _0x88ebf3=_0x375a63['getContainedElement']();if(_0x88ebf3&&_0x88ebf3['is']('element','caption'))return{'type':'insertion'==_0x375a63['type']?'addObject':'removeObject','element':_0x88ebf3,'quantity':0x1};}}),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x289622=>'formatBlock'==_0x289622['type']&&'convertInlineImageToBlock'==_0x289622['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x289622['type']&&'convertBlockImageToInline'==_0x289622['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x433aed=>{if('attribute'!=_0x433aed['type'])return;const {data:_0x7271bd}=_0x433aed;if(!_0x7271bd||'alt'!=_0x7271bd['key'])return;const _0x3a2112=_0x7271bd['newValue'];return _0x3a2112?{'type':'format','content':o(_0x4fe167,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a2112+'\x22')}:{'type':'format','content':o(_0x4fe167,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48b7e0=this['editor'],_0x50da0a=_0x48b7e0['locale'];_0x48b7e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10a187=>{if('formatBlock'!=_0x10a187['type']&&'formatInline'!=_0x10a187['type'])return;const {data:_0x24ab34}=_0x10a187;if(_0x24ab34){if('imageTextAlternative'==_0x24ab34['commandName']){const _0x1bb63b=_0x24ab34['commandParams'][0x0]['newValue'];return _0x1bb63b?{'type':'format','content':o(_0x50da0a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bb63b+'\x22')}:{'type':'format','content':o(_0x50da0a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x24ab34['commandName']){const _0x34df3c=_0x24ab34['commandParams'][0x0]['width'];return _0x34df3c?{'type':'format','content':o(_0x50da0a,'*Set\x20image\x20width:*\x20%0',_0x34df3c)}:{'type':'format','content':o(_0x50da0a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xbc00c9=this['editor']['locale'],_0xbac585=this['editor']['plugins']['get']('TrackChangesEditing');_0xbac585['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbac585['registerBlockAttribute']('src'),_0xbac585['descriptionFactory']['registerDescriptionCallback'](_0xe414da=>{if('attribute'!=_0xe414da['type'])return;const {data:_0x209057}=_0xe414da;return _0x209057&&'src'==_0x209057['key']?_0x209057['newValue']&&_0x209057['oldValue']?{'type':'format','content':o(_0xbc00c9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13dcd3=this['editor']['plugins']['get']('TrackChangesEditing');_0x13dcd3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13dcd3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13dcd3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13dcd3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34a928=this['editor'],_0x1a5643=_0x34a928['locale'];_0x34a928['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4933f6=>{if('formatBlock'!=_0x4933f6['type']&&'formatInline'!=_0x4933f6['type'])return;const {data:_0x1c6420}=_0x4933f6;if(!_0x1c6420||'replaceImageSource'!=_0x1c6420['commandName'])return;return{'type':'format','content':o(_0x1a5643,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x185c8e{['afterInit'](){const _0x475928=this['editor'];if(!_0x475928['plugins']['has']('ImageStyleEditing'))return;const _0x4f71ec=_0x475928['plugins']['get']('TrackChangesEditing'),_0x4ba4a4=_0x475928['plugins']['get']('ImageUtils'),_0x581e2b={};_0x4f71ec['enableCommand']('imageStyle',(_0x4bf3c3,_0x43d049)=>{const _0x959cae=_0x475928['plugins']['get']('Users')['me'],_0x8d5b8f=_0x475928['commands']['get']('imageStyle');let _0x198851=_0x4ba4a4['getClosestSelectedImageElement'](_0x475928['model']['document']['selection']),_0x1dcf4d=_0x475928['model']['createRangeOn'](_0x198851),_0x2e8c4c=_0x8d5b8f['value'];if(_0x2e8c4c==_0x43d049['value'])return;const _0x54c1c9={'commandName':'imageStyle','commandParams':[_0x43d049],'formatGroupId':_0x510ab3()};_0x475928['model']['change'](()=>{if(_0x4f71ec['getSuggestions']()['filter'](_0x3c33f9=>_0x3c33f9['isInContent']&&_0x959cae==_0x3c33f9['author']&&('formatBlock'==_0x3c33f9['type']||'formatInline'==_0x3c33f9['type'])&&('imageStylePreApply'==_0x3c33f9['subType']||'imageStylePostApply'==_0x3c33f9['subType'])&&_0x3c33f9['getFirstRange']()['isEqual'](_0x1dcf4d))['forEach'](_0x2b8790=>_0x4f71ec['discardSuggestion'](_0x2b8790['head'])),_0x198851=_0x4ba4a4['getClosestSelectedImageElement'](_0x475928['model']['document']['selection']),_0x1dcf4d=_0x475928['model']['createRangeOn'](_0x198851),_0x8d5b8f['refresh'](),_0x475928['commands']['get']('imageTypeInline')['refresh'](),_0x475928['commands']['get']('imageTypeBlock')['refresh'](),_0x2e8c4c=_0x8d5b8f['value'],_0x2e8c4c!=_0x43d049['value'])return _0x4ba4a4['isInlineImage'](_0x198851)&&_0x8d5b8f['shouldConvertImageType'](_0x43d049['value'],_0x198851)?(_0x4bf3c3({..._0x43d049,'setImageSizes':!0x1}),_0x198851=_0x4ba4a4['getClosestSelectedImageElement'](_0x475928['model']['document']['selection']),void _0x4f71ec['markBlockFormat'](_0x198851,{..._0x54c1c9,'commandReversedParams':[{'value':_0x2e8c4c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ba4a4['isBlockImage'](_0x198851)?_0x4f71ec['markBlockFormat'](_0x198851,_0x54c1c9,[],'imageStylePostApply'):_0x4f71ec['markInlineFormat'](_0x1dcf4d,_0x54c1c9,'imageStylePostApply'));});});for(const _0x437606 of _0x475928['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x581e2b[_0x437606['name']]=_0x437606['title']['toLowerCase']();_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52dd35])=>{_0x4ba4a4['setImageNaturalSizeAttributes'](_0x52dd35['getContainedElement']());}),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f1a27,_0x4e41ad)=>{_0x4f71ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f1a27,{'commandName':_0x4e41ad['commandName'],'commandParams':_0x4e41ad['commandReversedParams']});}),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9e8a7d,_0x345ba5){if(_0x4c62a3(_0x9e8a7d,_0x345ba5))return[_0x9e8a7d,_0x345ba5];if(_0x4c62a3(_0x345ba5,_0x9e8a7d))return[_0x345ba5,_0x9e8a7d];return null;});const _0xc91cf5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c62a3(_0x563e56,_0x8b1598){const _0x46240b=_0xc91cf5['findIndex'](({type:_0x2e257a,subType:_0x294102})=>_0x563e56['type']==_0x2e257a&&_0x563e56['subType']==_0x294102),_0x36d703=_0xc91cf5['findIndex'](({type:_0x8c3abd,subType:_0x2176aa})=>_0x8b1598['type']==_0x8c3abd&&_0x8b1598['subType']==_0x2176aa);if(_0x46240b<0x0||_0x36d703<0x0)return!0x1;const _0x3fc276=_0x563e56['getFirstRange'](),_0x1770c6=_0x8b1598['getFirstRange']();if((0x0==_0x46240b||0x1==_0x46240b)&&0x2==_0x36d703&&_0x3fc276['isIntersecting'](_0x1770c6))return!0x0;if(0x2==_0x46240b&&0x3==_0x36d703){const _0x46a499=_0x4f71ec['_findSuggestions'](_0x3fc276,'insertion')['filter'](({suggestion:_0x6bf297,meta:_0xda3308})=>_0xda3308['isOwn']&&'convertInlineImageToBlock'==_0x6bf297['subType']);if(_0x46a499['length']>0x1&&_0x1770c6['end']['isEqual'](_0x3fc276['start']))return!0x0;if(0x1==_0x46a499['length']&&(_0x3fc276['start']['isEqual'](_0x1770c6['end'])||_0x3fc276['end']['isEqual'](_0x1770c6['start'])))return!0x0;}if(0x3==_0x46240b&&0x3==_0x36d703&&_0x3fc276['start']['isBefore'](_0x1770c6['start'])){const _0x392e49=_0x3fc276['end']['nodeAfter'],_0x325eea=_0x1770c6['start']['nodeBefore'];return _0x4ba4a4['isBlockImage'](_0x392e49)&&_0x392e49===_0x325eea;}return!0x1;}_0x475928['model']['document']['registerPostFixer'](()=>{let _0xeb3bb8=!0x1;const _0x29eeec=Array['from'](_0x475928['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b1bc3,data:_0x22d35c}of _0x29eeec){const {group:_0x3326b1,type:_0x5a106f,subType:_0x555675,id:_0x336450}=_0x4f71ec['_splitMarkerName'](_0x1b1bc3);if('suggestion'==_0x3326b1&&_0x4f71ec['hasSuggestion'](_0x336450)){if('formatBlock'==_0x5a106f&&('imageStylePreApply'==_0x555675||'imageStylePostApply'==_0x555675)){const _0x54a78f=_0x4f71ec['getSuggestion'](_0x336450);if(_0x22d35c['newRange']){const _0x45092b=_0x54a78f['getFirstRange']()['getContainedElement']();if(_0x4ba4a4['isBlockImage'](_0x45092b))continue;_0x4f71ec['discardSuggestion'](_0x54a78f),_0xeb3bb8=!0x0;}}if('insertion'==_0x5a106f&&'imageCaption'==_0x555675&&!_0x22d35c['newRange']){const _0x151ce2=_0x4f71ec['getSuggestion'](_0x336450);_0x151ce2['next']&&_0x151ce2['next']['isInContent']&&(_0x4f71ec['discardSuggestion'](_0x151ce2['next']),_0xeb3bb8=!0x0);}}}return _0xeb3bb8;}),this['_registerLegacyDescription'](_0x581e2b);}['_registerLegacyDescription'](_0x3a6024){const _0x189d22=this['editor'],_0x1e6ffd=_0x189d22['locale'];_0x189d22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x365b28=>{if('formatBlock'!=_0x365b28['type']&&'formatInline'!=_0x365b28['type'])return;const {data:_0x1e4cd6}=_0x365b28;if(!_0x1e4cd6||'imageStyle'!=_0x1e4cd6['commandName'])return;const _0x4b70ef=_0x1e4cd6['commandParams'][0x0]['value'];return _0x30b72b('side'===_0x4b70ef?o(_0x1e6ffd,'FORMAT_SIDE_IMAGE'):_0x3a6024[_0x4b70ef]||_0x4b70ef);function _0x30b72b(_0x5ab04e){return{'type':'format','content':o(_0x1e6ffd,'*Format:*\x20%0',_0x5ab04e)};}});}}class rt extends _0x185c8e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x310fdc){super(_0x310fdc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x117f5d=this['editor'],_0x4f360a=_0x117f5d['commands']['get']('importWord'),_0x123762=_0x117f5d['commands']['get']('trackChanges');_0x4f360a&&(_0x4f360a['on']('execute',(_0x1f8c6c,[,_0x48ccc3])=>{this['_trackChangesValueDuringImport']=_0x123762['value'],_0x48ccc3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f360a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f360a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x123762['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x117f5d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1a6af1,_0x27ae83){const {suggestions:_0x107518}=_0x27ae83,_0x450323=this['editor']['commands']['get']('trackChanges'),_0x870722=_0x450323['value'];this['_trackChangesValueDuringImport']!==_0x870722&&(_0x450323['execute'](),this['_trackChangesExecuted']=!0x0),_0x107518&&_0x107518['forEach'](({id:_0x556cec,type:_0x398ff6,author:_0x4f2e86,created_at:_0x4bd6b2})=>{const _0x3e8c7d={'id':_0x556cec,'type':_0x398ff6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f2e86,'createdAt':_0x4bd6b2?new Date(_0x4bd6b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e8c7d);});}}class at extends _0x185c8e{['afterInit'](){const _0x39878f=this['editor'],_0x4a4f5f=_0x39878f['plugins']['get']('TrackChangesEditing');if(_0x39878f['plugins']['has']('IndentEditing')&&(_0x4a4f5f['enableCommand']('indent'),_0x4a4f5f['enableCommand']('outdent')),_0x39878f['plugins']['has']('IndentBlock')){for(const _0x34350a of['indentBlock','outdentBlock'])_0x4a4f5f['enableDefaultAttributesIntegration'](_0x34350a);}const _0x44d8c5=_0x39878f['locale'];_0x4a4f5f['registerBlockAttribute']('blockIndent'),_0x4a4f5f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x44d8c5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ad386=this['editor'],_0x23acd6=_0x1ad386['locale'],_0xdf9179=_0x1ad386['plugins']['get']('TrackChangesEditing');_0xdf9179['descriptionFactory']['registerDescriptionCallback'](_0x462080=>{if('formatBlock'!=_0x462080['type'])return;const {data:_0x2531eb}=_0x462080;if(!_0x2531eb)return;if('indentBlock'!=_0x2531eb['commandName']&&'outdentBlock'!=_0x2531eb['commandName'])return;const _0x2fc43d=_0x462080['getItems']()[0x0],_0x302bcb=_0xdf9179['descriptionFactory']['getItemLabel'](_0x2fc43d);return'indentBlock'==_0x2531eb['commandName']?{'type':'format','content':o(_0x23acd6,'*Indent:*\x20%0',_0x302bcb)}:'outdentBlock'==_0x2531eb['commandName']?{'type':'format','content':o(_0x23acd6,'*Outdent:*\x20%0',_0x302bcb)}:void 0x0;});}}class ct extends _0x185c8e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x185c8e{['afterInit'](){const _0x5fa867=this['editor'];if(!_0x5fa867['plugins']['has']('LinkEditing'))return;const _0x46e275=_0x5fa867['plugins']['get']('TrackChangesEditing'),_0x26b6b4=_0x5fa867['commands']['get']('link');_0x46e275['enableDefaultAttributesIntegration']('link'),_0x46e275['enableDefaultAttributesIntegration']('unlink'),_0x46e275['registerInlineAttribute']('linkHref');for(const _0x304b0e of _0x26b6b4['manualDecorators'])_0x46e275['registerInlineAttribute'](_0x304b0e['id']),_0x46e275['descriptionFactory']['registerAttributeLabel'](_0x304b0e['id'],'link\x20('+_0x304b0e['label']['toLowerCase']()+')');_0x46e275['descriptionFactory']['registerDescriptionCallback'](_0x20a602=>{if('attribute'!=_0x20a602['type'])return;const {data:_0x550278}=_0x20a602;if(!_0x550278||'linkHref'!=_0x550278['key'])return;const _0x4f7995=_0x550278['newValue'],_0x2ececa=_0x5fa867['locale'];return{'type':'format','content':null==_0x4f7995?o(_0x2ececa,'*Remove\x20link*'):o(_0x2ececa,'*Set\x20link:*\x20%0','\x22'+_0x4f7995+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8450=this['editor'],_0x516959=_0x1b8450['locale'];_0x1b8450['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccc8d=>{if('formatInline'!=_0x2ccc8d['type'])return;const {data:_0x13b5a5}=_0x2ccc8d;if(_0x13b5a5){if('link'==_0x13b5a5['commandName']){const _0x314cbc=_0x13b5a5['commandParams'][0x0];return{'type':'format','content':o(_0x516959,'*Set\x20link:*\x20%0','\x22'+_0x314cbc+'\x22')};}return'unlink'==_0x13b5a5['commandName']?{'type':'format','content':o(_0x516959,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x185c8e{['afterInit'](){const _0x5ca01c=this['editor'],_0x427254=_0x5ca01c['locale'];if(!_0x5ca01c['plugins']['has']('LegacyListEditing'))return;const _0x59ed78=_0x5ca01c['plugins']['get']('TrackChangesEditing'),_0x6f925c=_0x5ca01c['plugins']['has']('LegacyTodoListEditing');function _0xbd24a1(_0x4bf064){return()=>{const _0xdfe131=_0x5ca01c['model']['document']['selection'],_0x926f52=_0x5ca01c['commands']['get'](_0x4bf064);if(_0x926f52['value'])return void _0x5ca01c['execute']('paragraph',{});const _0x16ea16=_0x4bf064['slice'](0x0,-0x4),_0x5bb2e4=function(_0x75f0d0,_0x54e543,_0x4a05d4){let _0x2371c4=Array['from'](_0x75f0d0)['filter'](_0x144919=>function(_0x42d009,_0x46d700){return _0x46d700['checkChild'](_0x42d009['parent'],'listItem')&&!_0x46d700['isObject'](_0x42d009);}(_0x144919,_0x4a05d4));_0x2371c4=_0x2371c4['filter'](_0x1498a3=>!_0x1498a3['is']('element','listItem')||_0x1498a3['getAttribute']('listType')!=_0x54e543);const _0x2f88f5=new Set();for(const _0x2e04fb of _0x2371c4)_0x2e04fb['is']('element','listItem')?_0x2f88f5['add'](Le(_0x2e04fb)):_0x2f88f5['add'](_0x2e04fb);return Array['from'](_0x2f88f5);}(_0xdfe131['getSelectedBlocks'](),_0x16ea16,_0x5ca01c['model']['schema']);_0x5ca01c['model']['change'](()=>{for(const _0x318b8e of _0x5bb2e4)_0x59ed78['markBlockFormat'](_0x318b8e,{'commandName':_0x4bf064,'commandParams':[{'forceValue':!_0x926f52['value']}],'formatGroupId':'blockName'},Ee(_0x318b8e));});};}function _0x34ff20(_0xcc9ee4){return()=>{const _0x1d33a4=function(_0x8b3b9){let _0x31e5f4=Array['from'](_0x8b3b9);const _0x30db16=_0x31e5f4['findIndex'](_0x1997f8=>'listItem'!=_0x1997f8['name']);return _0x30db16>-0x1&&(_0x31e5f4=_0x31e5f4['slice'](0x0,_0x30db16)),_0x31e5f4;}(_0x5ca01c['model']['document']['selection']['getSelectedBlocks']()),_0x63ecf8=_0x5ca01c['model']['createRange'](_0x5ca01c['model']['createPositionAt'](_0x1d33a4[0x0],'before'),_0x5ca01c['model']['createPositionAt'](_0x1d33a4[_0x1d33a4['length']-0x1],'end'));_0x5ca01c['model']['change'](()=>{_0x59ed78['markBlockFormat'](_0x63ecf8,{'commandName':_0xcc9ee4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ecc18){const _0x5ed44e=new Set();for(const _0x40aff9 of _0x1ecc18){let _0x26764c=_0x40aff9['nextSibling'];for(;_0x26764c&&_0x26764c['getAttribute']('listIndent')>_0x40aff9['getAttribute']('listIndent');)_0x5ed44e['add'](_0x26764c),_0x26764c=_0x26764c['nextSibling'];}return Array['from'](_0x5ed44e);}(_0x1d33a4));});};}_0x59ed78['enableCommand']('numberedList',_0xbd24a1('numberedList')),_0x59ed78['enableCommand']('bulletedList',_0xbd24a1('bulletedList')),_0x6f925c&&_0x59ed78['enableCommand']('todoList',_0xbd24a1('todoList')),_0x59ed78['enableCommand']('indentList',_0x34ff20('indentList')),_0x59ed78['enableCommand']('outdentList',_0x34ff20('outdentList')),_0x6f925c&&_0x59ed78['enableCommand']('checkTodoList',()=>{const _0x1d91fb=_0x5ca01c['commands']['get']('checkTodoList'),_0x23b8e8=Array['from'](_0x1d91fb['_selectedElements']);_0x23b8e8['filter'](_0x4bb589=>_0x4bb589['getAttribute']('todoListChecked')!=_0x1d91fb['value']),_0x5ca01c['model']['change'](()=>{for(const _0x4d7944 of _0x23b8e8)_0x59ed78['markBlockFormat'](_0x4d7944,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1d91fb['value']}]});});}),_0x59ed78['descriptionFactory']['registerElementLabel']('listItem',_0x58bdb5=>o(_0x427254,'ELEMENT_LIST_ITEM',_0x58bdb5)),_0x59ed78['descriptionFactory']['registerDescriptionCallback'](_0x481bc3=>{if('formatBlock'!=_0x481bc3['type']&&'formatInline'!=_0x481bc3['type'])return;const {data:_0x4cbc1d}=_0x481bc3;if(_0x4cbc1d){if('numberedList'==_0x4cbc1d['commandName']||'bulletedList'==_0x4cbc1d['commandName']||'todoList'==_0x4cbc1d['commandName'])switch(_0x4cbc1d['commandName']['replace']('List','')){case'bulleted':return _0x2dbf06(o(_0x427254,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dbf06(o(_0x427254,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dbf06(o(_0x427254,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4cbc1d['commandName'])return{'type':'format','content':o(_0x427254,'*Indent:*\x20%0',o(_0x427254,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4cbc1d['commandName'])return{'type':'format','content':o(_0x427254,'*Outdent:*\x20%0',o(_0x427254,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4cbc1d['commandName'])return _0x4cbc1d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x427254,'*Check\x20item*')}:{'type':'format','content':o(_0x427254,'*Uncheck\x20item*')};}function _0x2dbf06(_0x3f0be9){return{'type':'format','content':o(_0x427254,'*Change\x20to:*\x20%0',_0x3f0be9)};}});}}function Le(_0x13418a){const _0x5d4364=_0x13418a['getAttribute']('listIndent');if(0x0==_0x5d4364)return _0x13418a;let _0x4f7fc1=_0x13418a;for(;_0x13418a['previousSibling']&&_0x13418a['previousSibling']['is']('element','listItem');){const _0x4ed6f8=_0x13418a['previousSibling']['getAttribute']('listIndent');if(_0x4ed6f8==_0x5d4364)_0x4f7fc1=_0x13418a['previousSibling'];else{if(_0x4ed6f8<_0x5d4364)break;}_0x13418a=_0x13418a['previousSibling'];}return _0x4f7fc1;}function Ee(_0x298a89){const _0x219f6c=[];if(_0x298a89['is']('element','listItem')&&_0x298a89['getAttribute']('listIndent')>0x0){let _0x4de18c=_0x298a89['nextSibling'];for(;_0x4de18c&&'listItem'==_0x4de18c['name']&&_0x4de18c['getAttribute']('listIndent')==_0x298a89['getAttribute']('listIndent');)_0x219f6c['push'](_0x4de18c),_0x4de18c=_0x4de18c['nextSibling'];}return _0x219f6c;}class ht extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x344174=this['editor']['config']['get']('list.properties'),_0x1ea49b=this['editor']['plugins']['get']('TrackChangesEditing');_0x344174['styles']&&_0x1ea49b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x344174['reversed']&&_0x1ea49b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x344174['startIndex']&&_0x1ea49b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1ea49b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x351dda,_0xba0cb4={}){const _0x10915b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2672e4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x10915b['markMultiRangeBlockFormat'](_0x2672e4,{'commandName':'listStyle','commandParams':[{'type':_0xba0cb4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3cbb86,_0x3f69a4={}){const _0x230c87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x185632=this['_getSuggestionBlocks'](_0x1aa17e=>_0x1aa17e['is']('element','listItem')&&'numbered'===_0x1aa17e['getAttribute']('listType'));if(_0x185632['length']<0x1)return;const _0x5a0e7e=_0x185632['map'](_0x4590e1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4590e1,'before'),this['editor']['model']['createPositionAt'](_0x4590e1,0x0)));this['editor']['model']['change'](()=>{_0x230c87['markMultiRangeBlockFormat'](_0x5a0e7e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f69a4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2775cb,_0xaf4bee={}){const _0xf2ac9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b4c1a=this['_getSuggestionBlocks'](_0x4a9690=>_0x4a9690['is']('element','listItem')&&'numbered'===_0x4a9690['getAttribute']('listType'));if(_0x1b4c1a['length']<0x1)return;const _0xcb0ad9=_0x1b4c1a['map'](_0x1bbdc9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1bbdc9,'before'),this['editor']['model']['createPositionAt'](_0x1bbdc9,0x0)));this['editor']['model']['change'](()=>{_0xf2ac9['markMultiRangeBlockFormat'](_0xcb0ad9,{'commandName':'listStart','commandParams':[{'startIndex':_0xaf4bee['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x348dfc){if('formatBlock'!=_0x348dfc['type']&&'formatInline'!=_0x348dfc['type'])return;const _0x5cba82=this['editor']['locale'],{data:_0x5cfc0b}=_0x348dfc;if(!_0x5cfc0b)return;let _0x412692,_0x526631;switch(_0x5cfc0b['commandName']){case'listStyle':_0x412692='*Change\x20to:*\x20%0',_0x526631={'type':'format','content':o(_0x5cba82,_0x412692,o(_0x5cba82,this['_getTranslationKeyForListStyle'](_0x5cfc0b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x412692=_0x5cfc0b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x526631={'type':'format','content':o(_0x5cba82,_0x412692)};break;case'listStart':_0x412692='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x526631={'type':'format','content':o(_0x5cba82,_0x412692,_0x5cfc0b['commandParams'][0x0]['startIndex'])};}return _0x526631;}['_getSuggestionBlocksForListStyle'](){const _0x3bbb7f=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e7635=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5e7635[0x0]?.['is']('element','listItem')&&_0x5e7635['unshift'](..._0x3bbb7f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5e7635[_0x5e7635['length']-0x1]?.['is']('element','listItem')&&_0x5e7635['push'](..._0x3bbb7f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5e7635=[...new Set(_0x5e7635)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5e7635=_0x5e7635['filter'](_0x48d37e=>_0x48d37e['is']('element','listItem'))),_0x5e7635;}['_getSuggestionBlocks'](_0x3fb9ed){const _0x91e510=this['editor']['plugins']['get']('LegacyListUtils');let _0xfa84ac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3fb9ed)['map'](_0x5584a3=>{const _0x1acb6c=this['editor']['model']['createPositionAt'](_0x5584a3,0x0);return[..._0x91e510['getSiblingNodes'](_0x1acb6c,'backward'),..._0x91e510['getSiblingNodes'](_0x1acb6c,'forward')];})['flat']();return _0xfa84ac=[...new Set(_0xfa84ac)],_0xfa84ac;}['_getTranslationKeyForListStyle'](_0x59872d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x59872d)||'default')['toUpperCase']()+'_LIST_'+_0x59872d['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x185c8e{['afterInit'](){const _0x5a2822=this['editor'];if(!_0x5a2822['plugins']['has']('MediaEmbedEditing'))return;const _0x53f61c=_0x5a2822['plugins']['get']('TrackChangesEditing'),_0x54d726=_0x5a2822['locale'];_0x53f61c['enableCommand']('mediaEmbed'),_0x53f61c['descriptionFactory']['registerElementLabel']('media',_0x1ae02f=>o(_0x54d726,'ELEMENT_MEDIA',_0x1ae02f)),_0x5a2822['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x167255,{writer:_0x265876,options:_0x2df3bf})=>{if(_0x2df3bf['showSuggestionHighlights'])return _0x265876['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a2822['data']['downcastDispatcher']['on']('attribute:url:media',(_0x254e19,_0x3ec614,_0x223a20)=>{_0x223a20['options']['showSuggestionHighlights']&&_0x254e19['stop']();},{'priority':'high'});}}class lt extends _0x185c8e{['afterInit'](){const _0x2f0c62=this['editor'];_0x2f0c62['plugins']['has']('MentionEditing')&&_0x2f0c62['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x185c8e{['afterInit'](){const _0x12c662=this['editor'];if(!_0x12c662['plugins']['has']('MergeFieldsEditing'))return;const _0x5103e3=_0x12c662['plugins']['get']('TrackChangesEditing'),_0x11e92a=_0x12c662['locale'];_0x5103e3['enableCommand']('insertMergeField'),_0x5103e3['enableCommand']('insertMergeFieldBlock'),_0x5103e3['enableCommand']('insertMergeFieldImage'),_0x5103e3['descriptionFactory']['registerElementLabel']('mergeField',_0x2dd1cc=>o(_0x11e92a,'ELEMENT_MERGE_FIELD',_0x2dd1cc)),_0x5103e3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x59c39a=>o(_0x11e92a,'ELEMENT_MERGE_FIELD',_0x59c39a)),_0x5103e3['descriptionFactory']['registerDescriptionCallback'](_0x1a5af0=>{if('insertion'!=_0x1a5af0['type']&&'deletion'!=_0x1a5af0['type'])return;const _0xbfd984=_0x1a5af0['getContainedElement']();if(null==_0xbfd984)return;const _0x41d94b=_0x12c662['plugins']['get']('MergeFieldsEditing');let _0x3255c8;switch(_0x41d94b['getMergeFieldType'](_0xbfd984)){case null:return;case'image':{const _0x4ed411=_0x41d94b['unwrapAffixes'](_0xbfd984['getAttribute']('src'));_0x3255c8=_0x41d94b['getLabel'](_0x4ed411)||_0x4ed411;break;}default:{const _0x3f54f8=_0xbfd984['getAttribute']('id');_0x3255c8=_0x41d94b['getLabel'](_0x3f54f8)||_0x3f54f8;break;}}return'insertion'==_0x1a5af0['type']?{'type':'insertion','content':o(_0x11e92a,'*Insert:*\x20%0','\x22'+_0x3255c8+'\x22\x20'+o(_0x11e92a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x11e92a,'*Remove:*\x20%0','\x22'+_0x3255c8+'\x22\x20'+o(_0x11e92a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x185c8e{['afterInit'](){const _0x2ec676=this['editor'],_0x3b1a31=_0x2ec676['plugins']['get']('TrackChangesEditing');_0x2ec676['plugins']['has']('MultiLevelList')&&(_0x3b1a31['enableDefaultAttributesIntegration']('multiLevelList'),_0x3b1a31['registerBlockAttribute']('listMarkerStyle'),_0x3b1a31['descriptionFactory']['registerDescriptionCallback'](_0x5cc385=>this['handleDescriptions'](_0x5cc385)));}['handleDescriptions'](_0x44f615){const _0x517ace=this['editor']['locale'],{data:_0x18035e}=_0x44f615,_0x3f2e2b={'type':'format','content':''};if(_0x18035e&&'listMarkerStyle'==_0x18035e['key']){if(!_0x18035e['oldValue'])return{'type':'format','content':o(_0x517ace,'*Set\x20format:*\x20%0',o(_0x517ace,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18035e['newValue']+')'};if(!_0x18035e['newValue']){let _0x1d3473=_0x44f615['head'];for(;_0x1d3473;){if(_0x1d3473['data']&&'listType'==_0x1d3473['data']['key']&&_0x1d3473['data']['newValue'])return _0x3f2e2b;_0x1d3473=_0x1d3473['next'];}return{'type':'format','content':o(_0x517ace,'*Remove\x20format:*\x20%0',o(_0x517ace,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18035e['oldValue']+')'};}}}}class pt extends _0x185c8e{['afterInit'](){const _0x4a8677=this['editor'];if(!_0x4a8677['plugins']['has']('PageBreakEditing'))return;_0x4a8677['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16a226=_0x4a8677['plugins']['get']('TrackChangesEditing'),_0x49ef3d=_0x4a8677['locale'];_0x16a226['descriptionFactory']['registerElementLabel']('pageBreak',_0x3e11b2=>o(_0x49ef3d,'ELEMENT_PAGE_BREAK',_0x3e11b2));}}class kt extends _0x185c8e{['afterInit'](){const _0x25da12=this['editor'];if(!_0x25da12['plugins']['has']('Paragraph'))return;const _0x418eef=_0x25da12['locale'],_0x20446d=_0x25da12['plugins']['get']('TrackChangesEditing');_0x20446d['descriptionFactory']['registerElementLabel']('paragraph',_0x229225=>o(_0x418eef,'ELEMENT_PARAGRAPH',_0x229225)),_0x20446d['enableDefaultAttributesIntegration']('paragraph'),_0x20446d['enableCommand']('insertParagraph'),_0x25da12['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x25da12),{'priority':'highest'}),_0x25da12['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b5080,_0x1094f1,_0x1a0c43)=>{_0x1a0c43['options']['showSuggestionHighlights']&&nr(_0x25da12,{'showActiveMarker':!0x1})(_0x1b5080,_0x1094f1,_0x1a0c43);},{'priority':'highest'});const _0x26a478=_0x20446d['descriptionFactory'];_0x26a478['registerDescriptionCallback'](_0x52be09=>{if('insertion'!==_0x52be09['type'])return;const {start:_0x5e421d,end:_0x385acb}=_0x52be09['getFirstRange']();if(!_0x5e421d['isTouching'](_0x385acb)||!_0x5e421d['nodeAfter'])return;const _0x2203a3=_0x25da12['model']['schema'],_0x18480c=_0x5e421d['nodeAfter'];return _0x2203a3['isBlock'](_0x18480c)&&!_0x2203a3['isLimit'](_0x18480c)&&_0x2203a3['checkChild'](_0x18480c,'$text')?{'type':'insertion','content':o(_0x418eef,'*Insert:*\x20%0',_0x26a478['getItemLabel'](_0x18480c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283baf=this['editor'],_0x4753c0=_0x283baf['locale'];_0x283baf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35d727=>{if('formatBlock'!=_0x35d727['type'])return;const {data:_0x208a1d}=_0x35d727;return _0x208a1d&&'paragraph'==_0x208a1d['commandName']?{'type':'format','content':o(_0x4753c0,'*Change\x20to:*\x20%0',o(_0x4753c0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1faf74,{showActiveMarker:_0x198f37=!0x0}={}){return(_0x52a674,_0x5a9970,_0x4eea6c)=>{const _0x77da57=_0x1faf74['plugins']['get']('TrackChangesEditing'),_0x35e069=_0x5a9970['markerRange']['start'],_0x5c9f10=_0x5a9970['markerRange']['end'],_0x16170d=_0x1faf74['model']['schema'];if(!_0x35e069['isTouching'](_0x5c9f10)||!_0x35e069['nodeAfter'])return;const _0xf77fce=_0x35e069['nodeAfter'];if(_0x16170d['isBlock'](_0xf77fce)&&!_0x16170d['isLimit'](_0xf77fce)&&_0x16170d['checkChild'](_0xf77fce,'$text')){if(!_0x4eea6c['consumable']['consume'](_0x5a9970['markerRange'],_0x52a674['name']))return;const {id:_0x1a5d0a,authorId:_0x456b2d}=_0x77da57['_splitMarkerName'](_0x5a9970['markerName']),_0x570d69=_0x4eea6c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1a5d0a,'data-author-id':_0x456b2d}),_0x54d035=_0x4eea6c['mapper']['toViewPosition'](_0x5c9f10);_0x198f37&&_0x77da57['activeMarkers']['includes'](_0x5a9970['markerName'])&&_0x4eea6c['writer']['addClass']('ck-suggestion-marker--active',_0x570d69),_0x4eea6c['writer']['insert'](_0x54d035,_0x570d69),_0x4eea6c['mapper']['bindElementToMarker'](_0x570d69,_0x5a9970['markerName']);}};}class wt extends _0x185c8e{['afterInit'](){const _0x522289=this['editor'];_0x522289['commands']['get']('replaceSource')&&_0x522289['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x185c8e{['afterInit'](){const _0x479809=this['editor'];if(!_0x479809['plugins']['has']('RemoveFormatEditing'))return;_0x479809['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ad494=this['editor'];_0x2ad494['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492bfd=>{if('formatBlock'!=_0x492bfd['type']&&'formatInline'!=_0x492bfd['type'])return;const {data:_0x54a469}=_0x492bfd;return _0x54a469&&'removeFormat'==_0x54a469['commandName']?{'type':'format','content':o(_0x2ad494['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x185c8e{['afterInit'](){const _0x428ecb=this['editor'];if(!_0x428ecb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x41edaa=_0x428ecb['plugins']['get']('TrackChangesEditing');_0x41edaa['enableCommand']('goToPreviousRestrictedEditingException'),_0x41edaa['enableCommand']('goToNextRestrictedEditingException');const _0x206af5=_0x428ecb['plugins']['get']('RestrictedEditingModeEditing');_0x206af5['enableCommand']('trackChanges'),_0x206af5['enableCommand']('acceptSuggestion'),_0x206af5['enableCommand']('discardSuggestion'),_0x206af5['enableCommand']('acceptAllSuggestions'),_0x206af5['enableCommand']('discardAllSuggestions'),_0x206af5['enableCommand']('acceptSelectedSuggestions'),_0x206af5['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x185c8e{['afterInit'](){const _0x39bb26=this['editor'];if(!_0x39bb26['plugins']['has']('ShiftEnter'))return;const _0x5e8827=_0x39bb26['plugins']['get']('TrackChangesEditing');_0x5e8827['enableCommand']('shiftEnter'),_0x39bb26['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x39bb26),{'priority':'high'}),_0x39bb26['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x39bb26),{'priority':'high'}),_0x39bb26['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c1940,_0x3ce902,_0x4bb047)=>{_0x4bb047['options']['showSuggestionHighlights']&&je(_0x39bb26,{'showActiveMarker':!0x1})(_0x1c1940,_0x3ce902,_0x4bb047);}),_0x5e8827['descriptionFactory']['registerElementLabel']('softBreak',_0x316178=>o(_0x39bb26['locale'],'ELEMENT_LINE_BREAK',_0x316178));}}function je(_0x248d2f,{showActiveMarker:_0x342d11=!0x0}={}){return(_0x5aee6a,_0x292c38,_0x367581)=>{const _0x54498c=_0x248d2f['plugins']['get']('TrackChangesEditing');if(!_0x367581['consumable']['test'](_0x292c38['markerRange'],_0x5aee6a['name']))return;const _0x359373=_0x248d2f['model'];for(const _0x451f7a of _0x292c38['markerRange']['getItems']()){if(!_0x451f7a['is']('element','softBreak'))continue;const _0x376a4b='deletion'==_0x292c38['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xfee78d,authorId:_0x2b0705}=_0x54498c['_splitMarkerName'](_0x292c38['markerName']),_0x473b0b=_0x367581['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x376a4b,'data-suggestion':_0xfee78d,'data-author-id':_0x2b0705}),_0x2c81ce=_0x367581['mapper']['toViewPosition'](_0x359373['createPositionBefore'](_0x451f7a));_0x342d11&&_0x54498c['activeMarkers']['includes'](_0x292c38['markerName'])&&_0x367581['writer']['addClass']('ck-suggestion-marker--active',_0x473b0b),_0x367581['writer']['insert'](_0x2c81ce,_0x473b0b),_0x367581['mapper']['bindElementToMarker'](_0x473b0b,_0x292c38['markerName']);}};}class St extends _0x185c8e{['afterInit'](){const _0x3a4644=this['editor'],_0x35c4ff=_0x3a4644['model'],_0x706d1c=_0x3a4644['locale'];if(!_0x3a4644['plugins']['has']('StandardEditingModeEditing'))return;const _0x4a9c3d=_0x3a4644['plugins']['get']('TrackChangesEditing'),_0x3ee1a8='restrictedEditingException',_0xaca6f=_0x3a4644['commands']['get'](_0x3ee1a8);_0x4a9c3d['enableCommand'](_0x3ee1a8,(_0x406908,_0x181b8c={})=>{const _0x18755a=_0x35c4ff['document']['selection'];if(_0x18755a['isCollapsed'])return void _0x406908(_0x181b8c);const _0xccb9f6=void 0x0!==_0x181b8c['forceValue']?_0x181b8c['forceValue']:!_0xaca6f['value'];_0x35c4ff['change'](()=>{const _0x5ea1f6=Array['from'](_0x18755a['getRanges']());for(const _0x2bb5d0 of _0x5ea1f6){const _0x8d9ad7=_0xccb9f6?[_0x2bb5d0]:io(_0x3ee1a8,_0x2bb5d0,_0x35c4ff);for(const _0xdfaf60 of _0x8d9ad7)_0x4a9c3d['markInlineFormat'](_0xdfaf60,{'commandName':_0x3ee1a8,'commandParams':[{'forceValue':_0xccb9f6}]});}});}),_0x4a9c3d['descriptionFactory']['registerDescriptionCallback'](_0x324f9a=>{if('formatBlock'!=_0x324f9a['type']&&'formatInline'!=_0x324f9a['type'])return;const {data:_0x1bb3cc}=_0x324f9a;return _0x1bb3cc&&_0x1bb3cc['commandName']==_0x3ee1a8?_0x1bb3cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x706d1c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x706d1c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x185c8e{['afterInit'](){const _0x45810f=this['editor'];if(!_0x45810f['plugins']['has']('Style')||!_0x45810f['plugins']['has']('DataSchema'))return;const _0xea9742=_0x45810f['plugins']['get']('TrackChangesEditing'),_0x2ce465=_0x45810f['locale'],_0xb65197=_0x45810f['config']['get']('style')||{},_0x5841dd=_0x45810f['plugins']['get']('GeneralHtmlSupport'),_0x2d8d1f=_0x45810f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x45810f['plugins']['get']('DataSchema'),_0xb65197['definitions']);_0xea9742['enableDefaultAttributesIntegration']('style');const _0x22446c=new Set();for(const _0x33e3c8 of _0x2d8d1f['block']){const _0x39b537=_0x5841dd['getGhsAttributeNameForElement'](_0x33e3c8['element']);_0x22446c['add'](_0x39b537);}const _0x199060=new Set();for(const _0xc84ee7 of _0x2d8d1f['inline']){const _0x81773f=_0x5841dd['getGhsAttributeNameForElement'](_0xc84ee7['element']);_0x199060['add'](_0x81773f);for(const _0x2d920d of _0xc84ee7['ghsAttributes'])_0x199060['add'](_0x2d920d);}for(const _0x6ceaa9 of _0x22446c)_0xea9742['registerBlockAttribute'](_0x6ceaa9),_0xea9742['descriptionFactory']['registerAttributeLabel'](_0x6ceaa9,o(_0x2ce465,'FORMAT_STYLE'));for(const _0x497196 of _0x199060)_0xea9742['registerInlineAttribute'](_0x497196),_0xea9742['descriptionFactory']['registerAttributeLabel'](_0x497196,o(_0x2ce465,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x523e72=this['editor'],_0x1bfdcd=_0x523e72['locale'];_0x523e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x250427=>{if('formatBlock'!=_0x250427['type']&&'formatInline'!=_0x250427['type'])return;const {data:_0x9f123a}=_0x250427;return _0x9f123a&&'style'===_0x9f123a['commandName']?_0x9f123a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bfdcd,'*Set\x20format:*\x20%0',_0x9f123a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1bfdcd,'*Remove\x20format:*\x20%0',_0x9f123a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x185c8e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e85c9){super(_0x4e85c9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44e68b=this['editor'],_0x2cdd54=_0x44e68b['model']['document']['selection'];if(!_0x44e68b['plugins']['has']('TableEditing'))return;const _0x38eee8=_0x44e68b['locale'],_0x2dec72=_0x44e68b['plugins']['get']('TrackChangesEditing'),_0x5a53f5=_0x44e68b['plugins']['get']('TableUtils');_0x2dec72['descriptionFactory']['registerElementLabel']('table',_0x307a43=>o(_0x38eee8,'ELEMENT_TABLE',_0x307a43)),this['_setupColumnsRowsFixing'](),_0x2dec72['enableCommand']('insertTable'),_0x2dec72['enableCommand']('selectTableRow'),_0x2dec72['enableCommand']('selectTableColumn');for(const _0x4be5e5 of['insertTableRowAbove','insertTableRowBelow']){const _0x22e688=_0x44e68b['commands']['get'](_0x4be5e5);_0x2dec72['enableCommand'](_0x4be5e5,_0xe5f04e=>{_0x44e68b['model']['change'](_0x2d3168=>{_0xe5f04e();const _0x1b9bdd='above'===_0x22e688['order'],_0x338ce6=_0x5a53f5['getSelectionAffectedTableCells'](_0x2cdd54),_0x479a10=_0x5a53f5['getRowIndexes'](_0x338ce6),_0xeb29b7=_0x1b9bdd?_0x479a10['first']-0x1:_0x479a10['last']+0x1,_0x2856ed=_0x338ce6[0x0]['findAncestor']('table'),_0x481d3d=_0x5a53f5['createTableWalker'](_0x2856ed,{'startRow':_0xeb29b7,'endRow':_0xeb29b7}),_0x2aa38e=Array['from'](_0x481d3d)['map'](_0xab39a=>_0x2d3168['createRangeOn'](_0xab39a['cell']));_0x2dec72['markMultiRangeInsertion'](_0x2aa38e,'tableRow');});});}for(const _0x530ae9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3be31e=_0x44e68b['commands']['get'](_0x530ae9);_0x2dec72['enableCommand'](_0x530ae9,_0x12415a=>{_0x44e68b['model']['change'](_0x446bb4=>{_0x12415a();const _0x262399='left'===_0x3be31e['order'],_0x5ba8de=_0x5a53f5['getSelectionAffectedTableCells'](_0x2cdd54),_0x161930=_0x5a53f5['getColumnIndexes'](_0x5ba8de),_0x8073d8=_0x262399?_0x161930['first']-0x1:_0x161930['last']+0x1,_0x577c95=_0x5ba8de[0x0]['findAncestor']('table'),_0x116035=_0x5a53f5['createTableWalker'](_0x577c95,{'startRow':0x0,'column':_0x8073d8,'includeAllSlots':!0x1}),_0x3747fa=Array['from'](_0x116035)['map'](_0x55521a=>_0x446bb4['createRangeOn'](_0x55521a['cell']));_0x2dec72['markMultiRangeInsertion'](_0x3747fa,'tableColumn');});});}for(const _0x2e5d94 of['removeTableRow','removeTableColumn']){const _0x581a3f=_0x2e5d94['substr'](0xb),_0x23faee=_0x581a3f['toLowerCase'](),_0x3716df=_0x23faee['substr'](0x0,0x3)+'span',_0x3253d0='table'+_0x581a3f,_0x26c18a='min'+_0x581a3f,_0x5aefbb='max'+_0x581a3f;_0x2dec72['enableCommand'](_0x2e5d94,()=>{_0x44e68b['model']['change'](_0x4ff2a6=>{const _0x599941=_0x5a53f5['getSelectionAffectedTableCells'](_0x2cdd54),_0x3d316b=_0x599941[0x0]['findAncestor']('table');let _0x255ac0;if('removeTableRow'==_0x2e5d94){const _0xc94178=_0x5a53f5['getRowIndexes'](_0x599941);_0x255ac0={'startRow':_0xc94178['first'],'endRow':_0xc94178['last'],'includeAllSlots':!0x0};}else{const _0x99e8b=_0x5a53f5['getColumnIndexes'](_0x599941);_0x255ac0={'startColumn':_0x99e8b['first'],'endColumn':_0x99e8b['last'],'includeAllSlots':!0x0};}const _0x2d3bcd=_0x5a53f5['createTableWalker'](_0x3d316b,_0x255ac0),_0x139114=Array['from'](_0x2d3bcd)['map'](({cell:_0xc1f88c})=>_0xc1f88c),_0x4ba1ea=Ne(_0x139114['filter'](_0xe9543d=>_0xe9543d['hasAttribute'](_0x3716df))),_0x3679d3=Ne(_0x139114['filter'](_0x2110e9=>!_0x2110e9['hasAttribute'](_0x3716df)))['map'](_0x15536d=>_0x4ff2a6['createRangeOn'](_0x15536d)),_0x3b5e25=_0x2dec72['markMultiRangeDeletion'](_0x3679d3,_0x3253d0);if(_0x3b5e25&&('tableRow'==_0x3b5e25['subType']||'tableColumn'==_0x3b5e25['subType'])){const _0x22fb8c=this['_getSuggestionCoords'](_0x3b5e25);for(const _0x1cad11 of _0x4ba1ea){const _0x5142d2=_0x4ff2a6['createRangeOn'](_0x1cad11),_0x73b2d1=_0x5a53f5['getCellLocation'](_0x1cad11),_0xbd210=_0x1cad11['getAttribute'](_0x3716df)-0x1,_0xba69b5=_0x22fb8c[_0x26c18a],_0x538286=_0x22fb8c[_0x5aefbb];_0xba69b5<=_0x73b2d1[_0x23faee]&&_0x73b2d1[_0x23faee]+_0xbd210<=_0x538286&&_0x3b5e25['addRange'](_0x5142d2);}}});});}function _0x1d64bb(_0x43372f){const _0x3db1fe=Array['from'](_0x2cdd54['getRanges']())['map'](_0x5e17c6=>_0x4ef168['fromRange'](_0x5e17c6));_0x44e68b['model']['change'](_0x5f237e=>{const _0x3272b9=_0x5f237e['batch'];_0x43372f=_0x43372f['filter'](_0x9a7999=>'$graveyard'!=_0x9a7999['root']['rootName']),_0x5f237e['setSelection'](_0x43372f),_0x44e68b['commands']['get']('removeTableRow')['refresh'](),_0x44e68b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44e68b['model']['enqueueChange'](()=>{_0x44e68b['model']['enqueueChange'](_0x3272b9,_0x274a46=>{const _0x127cf7=_0x3db1fe['filter'](_0x1b53be=>'$graveyard'!=_0x1b53be['root']['rootName']);_0x127cf7['length']>0x0&&_0x274a46['setSelection'](_0x127cf7);for(const _0x3717f8 of _0x3db1fe)_0x3717f8['detach']();});});});}function _0x3950e0(_0xd19844){_0x44e68b['model']['change'](_0xf39f8=>{const _0x5ab681=Array['from'](_0x2cdd54['getRanges']())['map'](_0x24d847=>_0x4ef168['fromRange'](_0x24d847)),_0x4b4a9a=[];for(const _0x401f8c of _0xd19844)for(const _0x7156a1 of _0x401f8c['getItems']({'shallow':!0x0}))_0x4b4a9a['push'](_0x7156a1);for(const _0x570d1d of _0x4b4a9a)'$graveyard'!=_0x570d1d['root']['rootName']&&(_0xf39f8['setSelection'](_0xf39f8['createPositionAt'](_0x570d1d,0x0)),_0x44e68b['commands']['get']('removeTableColumn')['refresh'](),_0x44e68b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x386ffb=_0x5ab681['filter'](_0x2493a2=>'$graveyard'!=_0x2493a2['root']['rootName']);_0x386ffb['length']>0x0&&_0xf39f8['setSelection'](_0x386ffb);for(const _0x2bb752 of _0x5ab681)_0x2bb752['detach']();});}function _0x60dfe6(_0x22c33d,_0x27fba4){return _0x27fba4['every'](_0x5d599f=>_0x22c33d['some'](_0x5bb081=>_0x5bb081['end']['isEqual'](_0x5d599f['start'])||_0x5d599f['end']['isEqual'](_0x5bb081['start'])));}function _0x1f010f(_0x245a58,_0x31ffec){return!_0x245a58['some'](_0xf80d39=>_0x31ffec['some'](_0x310867=>_0xf80d39['isIntersecting'](_0x310867)))&&_0x245a58['some'](_0x318211=>_0x31ffec['some'](_0x3529b5=>_0x318211['end']['isTouching'](_0x3529b5['start'])));}_0x44e68b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53d6df,_0x31b825,_0x267a1f)=>{if(!_0x267a1f['options']['showSuggestionHighlights'])return;const _0x51a1e5=_0x31b825['item'];if(!_0x51a1e5||!_0x51a1e5['is']('element','tableCell'))return;const _0x11ad74=_0x267a1f['mapper']['toViewElement'](_0x51a1e5);if(_0x11ad74){const {id:_0x57084e,authorId:_0x365387}=_0x2dec72['_splitMarkerName'](_0x31b825['markerName']);_0x481c19(_0x11ad74,_0x267a1f['writer'],(_0x54b7d3,_0x295cde,_0x392033)=>{_0x392033['addClass'](_0x10f187(_0x295cde['classes']),_0x54b7d3),_0x392033['setAttribute']('data-suggestion-id',_0x57084e,_0x54b7d3),_0x392033['setAttribute']('data-author-id',_0x365387,_0x54b7d3);},(_0xaf9d80,_0x4cba81,_0x274a2e)=>{_0x274a2e['removeClass'](_0x10f187(_0x4cba81['classes']),_0xaf9d80),_0x274a2e['removeAttribute']('data-suggestion-id',_0xaf9d80),_0x274a2e['removeAttribute']('data-author-id',_0xaf9d80);});}},{'priority':'highest'}),_0x2dec72['descriptionFactory']['registerDescriptionCallback'](_0x338e68=>{if('insertion'!=_0x338e68['type']&&'deletion'!=_0x338e68['type'])return;const _0x47d422=_0x338e68['getContainedElement']();if(null!=_0x47d422&&_0x47d422['is']('element','table')){if('insertion'==_0x338e68['type']){const _0x9029bc=_0x338e68['getItems']()['filter'](_0x3111ea=>_0x3111ea['is']('$textProxy'))['map'](_0x4ad24b=>_0x4ad24b['data']);if(_0x9029bc['length'])return{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9029bc['join']('\x20')+'\x22'))};}if('deletion'==_0x338e68['type']){const _0x225462=_0x338e68['getItems']()['filter'](_0x2349da=>_0x2349da['is']('$textProxy'))['map'](_0x2aeef7=>_0x2aeef7['data']);if(_0x225462['length'])return{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x225462['join']('\x20')+'\x22'))};}}}),_0x2dec72['descriptionFactory']['registerDescriptionCallback'](_0x298cdd=>{if('tableRow'==_0x298cdd['subType']){const _0x27b449=_0x298cdd['getItems']()['filter'](_0x243f96=>_0x243f96['is']('$textProxy'))['map'](_0x482075=>_0x482075['data']),_0x571697=this['_getSuggestionCoords'](_0x298cdd),_0x16ad43=_0x571697['maxRow']-_0x571697['minRow']+0x1;if('insertion'==_0x298cdd['type'])return _0x27b449['length']?{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16ad43,'\x22'+_0x27b449['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW',_0x16ad43))};if('deletion'==_0x298cdd['type'])return _0x27b449['length']?{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16ad43,'\x22'+_0x27b449['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW',_0x16ad43))};}if('tableColumn'==_0x298cdd['subType']){const _0x4c9782=_0x298cdd['getItems']()['filter'](_0x4fdfe1=>_0x4fdfe1['is']('$textProxy'))['map'](_0x2298cf=>_0x2298cf['data']),_0x2df7b4=this['_getSuggestionCoords'](_0x298cdd),_0x5467c5=_0x2df7b4['maxColumn']-_0x2df7b4['minColumn']+0x1;if('insertion'==_0x298cdd['type'])return _0x4c9782['length']?{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5467c5,'\x22'+_0x4c9782['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN',_0x5467c5))};if('deletion'==_0x298cdd['type'])return _0x4c9782['length']?{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5467c5,'\x22'+_0x4c9782['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN',_0x5467c5))};}}),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1d64bb),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1d64bb),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3950e0),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3950e0),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x60dfe6),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x60dfe6),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1f010f),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1f010f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c862a=this['editor'],_0x495463=_0x2c862a['model']['document']['selection'];return(_0x14a15b,_0x317799)=>{_0x2c862a['model']['change'](_0x17f936=>{const {commandName:_0x2e464d,commandParams:_0x249c9d}=_0x317799;let _0x54fbd3=_0x14a15b[0x0]['end']['nodeBefore'];_0x249c9d&&_0x249c9d[0x0]&&!0x1===_0x249c9d[0x0]['forceValue']&&(_0x54fbd3=_0x14a15b[0x0]['start']['nodeAfter']);const _0x20c460=_0x17f936['createRangeIn'](_0x54fbd3);if('$graveyard'==_0x20c460['root']['rootName'])return;const _0x4ab8b9=Array['from'](_0x495463['getRanges']())['map'](_0x316d80=>_0x4ef168['fromRange'](_0x316d80));_0x17f936['setSelection'](_0x20c460),_0x2c862a['commands']['get'](_0x2e464d)['refresh'](),_0x249c9d['push']({'forceDefaultExecution':!0x0}),_0x2c862a['execute'](_0x2e464d,..._0x249c9d);const _0x2b864b=_0x4ab8b9['filter'](_0x16bb8b=>'$graveyard'!=_0x16bb8b['root']['rootName']);_0x2b864b['length']>0x0&&_0x17f936['setSelection'](_0x2b864b);for(const _0x55133f of _0x4ab8b9)_0x55133f['detach']();});};}['_getCoordsForCells'](_0x3d3de5){const _0x268f43=this['editor']['plugins']['get']('TableUtils');let _0x192483=Number['MAX_SAFE_INTEGER'],_0x410e07=Number['MIN_SAFE_INTEGER'],_0x56a083=Number['MAX_SAFE_INTEGER'],_0x2a3984=Number['MIN_SAFE_INTEGER'];for(const _0x1b84ba of _0x3d3de5){if('$graveyard'==_0x1b84ba['root']['rootName'])continue;const {row:_0xfee071,column:_0x15cccf}=_0x268f43['getCellLocation'](_0x1b84ba),_0x487d17=_0x1b84ba['hasAttribute']('rowspan')?_0x1b84ba['getAttribute']('rowspan')-0x1:0x0,_0x1a4917=_0x1b84ba['hasAttribute']('colspan')?_0x1b84ba['getAttribute']('colspan')-0x1:0x0;_0x192483=_0xfee071<_0x192483?_0xfee071:_0x192483,_0x410e07=_0xfee071+_0x487d17>_0x410e07?_0xfee071+_0x487d17:_0x410e07,_0x56a083=_0x15cccf<_0x56a083?_0x15cccf:_0x56a083,_0x2a3984=_0x15cccf+_0x1a4917>_0x2a3984?_0x15cccf+_0x1a4917:_0x2a3984;}return{'minRow':_0x192483,'maxRow':_0x410e07,'minColumn':_0x56a083,'maxColumn':_0x2a3984};}['_setupColumnsRowsFixing'](){const _0x412dc4=this['editor'],_0x1506cf=_0x412dc4['plugins']['get']('TrackChangesEditing'),_0x34bb83=_0x412dc4['plugins']['get']('TableUtils');_0x412dc4['model']['document']['on']('change:data',()=>{const _0x10962d=Array['from'](_0x412dc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4035f2,data:_0x54ba93}of _0x10962d){const {group:_0x46963e,id:_0x4fb216,subType:_0x290cae}=_0x1506cf['_splitMarkerName'](_0x4035f2);if('suggestion'!=_0x46963e)continue;if(null!=_0x54ba93['oldRange'])continue;const _0x568231=_0x1506cf['getSuggestion'](_0x4fb216);this['_tablePostFixingSubtypes']['includes'](_0x290cae)&&this['_tableSuggestions']['add'](_0x568231);}},{'priority':'low'});const _0x49daa1=(_0xe3150c,_0x58cbb9)=>{let _0x4f5b03=!0x1;const _0x2b8b84=_0x58cbb9['createRangeOn'](_0xe3150c),_0x3920b9=_0xe3150c['findAncestor']('table'),_0x3edba0=_0x34bb83['getCellLocation'](_0xe3150c);for(const _0x48ae8f of this['_tableSuggestions']){const _0x252f10=_0x48ae8f['subType'],_0x3a7221=_0x252f10['startsWith']('tablePaste'),_0x45b0eb=_0x252f10['substr'](_0x3a7221?0xa:0x5),_0x2c86f8=_0x45b0eb['toLowerCase'](),_0x4306a9=_0x2c86f8['substr'](0x0,0x3)+'span',_0x3b2cc5='min'+_0x45b0eb,_0x155457='max'+_0x45b0eb;if(!_0x48ae8f['isInContent'])continue;if(_0x3920b9!=_0x48ae8f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x48ae8f['isIntersectingWithRange'](_0x2b8b84))continue;const _0x27d5f9=_0xe3150c['hasAttribute'](_0x4306a9)?_0xe3150c['getAttribute'](_0x4306a9)-0x1:0x0,_0x144afd=this['_getSuggestionCoords'](_0x48ae8f),_0x1c4a12=_0x144afd[_0x3b2cc5],_0x786444=_0x144afd[_0x155457];_0x1c4a12<=_0x3edba0[_0x2c86f8]&&_0x3edba0[_0x2c86f8]+_0x27d5f9<=_0x786444&&(_0x48ae8f['addRange'](_0x2b8b84),_0x4f5b03=!0x0);}return _0x4f5b03;};_0x412dc4['model']['document']['registerPostFixer'](_0x4c0aa1=>{let _0x326c91=!0x1;for(const _0x2d0e44 of _0x412dc4['model']['document']['differ']['getChanges']())if('insert'==_0x2d0e44['type']){if('tableRow'==_0x2d0e44['name']){for(const _0x18fd30 of _0x2d0e44['position']['nodeAfter']['getChildren']())_0x326c91=_0x326c91||_0x49daa1(_0x18fd30,_0x4c0aa1);}else'tableCell'==_0x2d0e44['name']&&(_0x326c91=_0x326c91||_0x49daa1(_0x2d0e44['position']['nodeAfter'],_0x4c0aa1));}return _0x326c91;});}['_getSuggestionCoords'](_0x4ceba9){return this['_getCoordsForCells'](_0x4ceba9['getRanges']()['map'](_0x59967b=>_0x59967b['start']['nodeAfter']));}}function Ne(_0x263732){return Array['from'](new Set(_0x263732)['values']());}class _t extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x4c3f5d=this['editor'],_0x57fe61=_0x4c3f5d['model']['document']['selection'],_0x33ee10=_0x4c3f5d['locale'];if(!_0x4c3f5d['plugins']['has']('TableEditing'))return;const _0x2cf4ed=_0x4c3f5d['plugins']['get']('TrackChangesEditing'),_0x4a32a0=_0x4c3f5d['plugins']['get']('TableUtils'),_0xdc75a=_0x4c3f5d['plugins']['get'](At);_0xdc75a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2cf4ed['enableCommand']('mergeTableCells',()=>{const _0x304dd4=_0x4a32a0['getSelectionAffectedTableCells'](_0x4c3f5d['model']['document']['selection']);_0x4c3f5d['model']['change'](()=>{_0x2cf4ed['markMultiRangeBlockFormat'](_0x304dd4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c3f5d['commands']['get']('mergeTableCells')['on']('execute',(_0x361d15,_0x16c6de)=>{_0x4c3f5d['commands']['get']('trackChanges')['value']&&(_0x16c6de['length']>0x0&&_0x16c6de[_0x16c6de['length']-0x1]&&_0x16c6de[_0x16c6de['length']-0x1]['forceDefaultExecution']||_0x2cf4ed['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x361d15['stop']());},{'priority':'highest'});for(const _0x496110 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ed259=_0x4c3f5d['commands']['get'](_0x496110);_0x2cf4ed['enableCommand'](_0x496110,()=>{const _0x9fba9f=_0x4c3f5d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17255a=>_0x17255a['is']('element','tableCell')),_0x338059=_0x1ed259['value'];_0x4c3f5d['model']['change'](()=>{_0x2cf4ed['markMultiRangeBlockFormat']([_0x9fba9f,_0x338059],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bab72 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1aa3f3=_0x4c3f5d['commands']['get'](_0x5bab72);_0x2cf4ed['enableCommand'](_0x5bab72,()=>{const _0x14f943=_0x4a32a0['getSelectionAffectedTableCells'](_0x4c3f5d['model']['document']['selection'])[0x0],_0xbe4687=_0x14f943['findAncestor']('table'),{column:_0x3abea2,row:_0x1f5450}=_0x4a32a0['getCellLocation'](_0x14f943);let _0x53d232=[];if('horizontally'==_0x1aa3f3['direction']){const _0x1eb26a=_0x4a32a0['createTableWalker'](_0xbe4687,{'startRow':_0x1f5450,'endRow':_0x1f5450,'includeAllSlots':!0x0});_0x53d232=Array['from'](_0x1eb26a)['map'](_0x197fbc=>_0x197fbc['cell']);}else{const _0x2431ff=_0x4a32a0['createTableWalker'](_0xbe4687,{'column':_0x3abea2,'includeAllSlots':!0x0});_0x53d232=Array['from'](_0x2431ff)['map'](_0x4a4812=>_0x4a4812['cell']);}_0x4c3f5d['model']['change'](_0x39a52e=>{_0x2cf4ed['markBlockFormat'](_0x39a52e['createRangeOn'](_0x14f943),{'commandName':_0x5bab72,'commandParams':[]},_0x53d232,_0x5bab72);});});}_0x2cf4ed['descriptionFactory']['registerDescriptionCallback'](_0x5dafb1=>{if('formatBlock'!=_0x5dafb1['type']&&'formatInline'!=_0x5dafb1['type'])return;const {data:_0x2f65cd}=_0x5dafb1;return _0x2f65cd&&'mergeTableCells'==_0x2f65cd['commandName']?{'type':'format','content':o(_0x33ee10,'*Merge\x20cells*')}:void 0x0;}),_0x2cf4ed['descriptionFactory']['registerDescriptionCallback'](_0x38ed5a=>{if('formatBlock'!=_0x38ed5a['type']&&'formatInline'!=_0x38ed5a['type'])return;const {data:_0x2645f4}=_0x38ed5a;return _0x2645f4?'splitTableCellVertically'==_0x2645f4['commandName']?{'type':'format','content':o(_0x33ee10,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2645f4['commandName']?{'type':'format','content':o(_0x33ee10,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a9899=_0xdc75a['_acceptFormatSuggestionCallbackFactory']();for(const _0x18252c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2cf4ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18252c,'accept',_0x5a9899);for(const _0xa1a9ec of['splitTableCellVertically','splitTableCellHorizontally'])_0x2cf4ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa1a9ec,'accept',_0x5a9899);_0x2cf4ed['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5d73af=>{_0x4c3f5d['model']['change'](_0x3bc3c7=>{const _0xaab99=Array['from'](_0x57fe61['getRanges']())['map'](_0x3f43c4=>_0x4ef168['fromRange'](_0x3f43c4));_0x3bc3c7['setSelection'](_0x5d73af),_0x4c3f5d['commands']['get']('mergeTableCells')['refresh'](),_0x4c3f5d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x565640=_0xaab99['filter'](_0x5987c6=>'$graveyard'!=_0x5987c6['root']['rootName']);_0x565640['length']>0x0&&_0x3bc3c7['setSelection'](_0x565640);for(const _0x5b4bd1 of _0xaab99)_0x5b4bd1['detach']();});});for(const _0x229e91 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5e8e0e=_0x4c3f5d['commands']['get'](_0x229e91);_0x5e8e0e['on']('set:isEnabled',(_0x51e0e9,_0x1520c6,_0x1af702)=>{if(_0x1af702){const _0x3d8407=_0x4c3f5d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13a480=>_0x13a480['is']('element','tableCell'));this['_areMergableCells'](_0x5e8e0e['value'],_0x3d8407)||(_0x51e0e9['return']=!0x1,_0x51e0e9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x27ed51=this['editor']['commands']['get']('mergeTableCells'),_0x289a75=this['editor']['plugins']['get']('TableUtils');if(!_0x27ed51['isEnabled'])return!0x1;const _0x4d71a8=_0x289a75['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b89ae of _0x4d71a8)for(const _0x7d16d4 of _0x4d71a8)if(_0x1b89ae!=_0x7d16d4&&!this['_areMergableCells'](_0x1b89ae,_0x7d16d4))return!0x1;return!0x0;}['_areMergableCells'](_0xda88a8,_0x4ae07a){const _0x36baaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfd9a53=this['editor']['model']['createRangeOn'](_0xda88a8),_0x31d5b1=this['editor']['model']['createRangeOn'](_0x4ae07a),_0x303db4=new Set(),_0x148f60=new Set();for(const _0x3782b0 of _0x36baaa['getSuggestions']())if(('insertion'==_0x3782b0['type']||'deletion'==_0x3782b0['type']||'mergeTableCells'==_0x3782b0['subType'])&&_0x3782b0['isInContent']){for(const _0x187ae2 of _0x3782b0['getRanges']())_0x187ae2['containsRange'](_0xfd9a53,!0x0)&&_0x303db4['add'](_0x3782b0['type']+':'+_0x3782b0['author']['id']),_0x187ae2['containsRange'](_0x31d5b1,!0x0)&&_0x148f60['add'](_0x3782b0['type']+':'+_0x3782b0['author']['id']);}if(_0x303db4['size']!=_0x148f60['size'])return!0x1;for(const _0x21cc92 of _0x303db4)if(!_0x148f60['has'](_0x21cc92))return!0x1;return!0x0;}}class Ct extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x2d39e8=this['editor'];if(!_0x2d39e8['plugins']['has']('TableEditing'))return;const _0x3a1766=_0x2d39e8['locale'],_0x22f105=_0x2d39e8['plugins']['get']('TrackChangesEditing');_0x22f105['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x22f105['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x22f105['registerBlockAttribute']('headingRows'),_0x22f105['registerBlockAttribute']('headingColumns'),_0x22f105['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3a1766,'FORMAT_HEADER_ROW')),_0x22f105['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3a1766,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1079f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32e43c=this['editor']['plugins']['get']('TableUtils'),_0x249ed8=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x33e747({showActiveMarker:_0x1dd51e=!0x0,setDataAttribute:_0x232879=!0x0}={}){return(_0x480d57,_0x359bbb,_0x46b745)=>{const {type:_0x1cf67d,id:_0x7e0d4b}=_0x1079f5['_splitMarkerName'](_0x359bbb['markerName']),_0x2cde39=_0x1079f5['getSuggestion'](_0x7e0d4b),_0x25d79b=_0x2cde39['data'];if('formatBlock'!=_0x2cde39['type']||!_0x25d79b||'setTableColumnHeader'!=_0x25d79b['commandName'])return;if(_0x359bbb['item'])return void _0x480d57['stop']();if(!_0x46b745['consumable']['consume'](_0x359bbb['markerRange'],_0x480d57['name']))return;const _0x4bb48f=_0x359bbb['markerRange']['start']['nodeAfter'],_0x7c4979=_0x359bbb['markerRange']['end']['nodeBefore'],_0x217395=_0x4bb48f['parent']['parent'],{column:_0x355734}=_0x32e43c['getCellLocation'](_0x4bb48f),{column:_0x282f1a}=_0x32e43c['getCellLocation'](_0x7c4979);for(let _0x1b5b44=_0x355734;_0x1b5b44<=_0x282f1a;_0x1b5b44++){const _0x53b3b1=_0x32e43c['createTableWalker'](_0x217395,{'column':_0x1b5b44,'includeAllSlots':!0x1});for(const _0x323baa of _0x53b3b1){const _0x30dcef=_0x323baa['cell'],_0x74141b=_0x46b745['mapper']['toViewElement'](_0x30dcef);_0x46b745['writer']['addClass']('ck-suggestion-marker-'+_0x1cf67d,_0x74141b),_0x232879&&_0x46b745['writer']['setAttribute']('data-suggestion',_0x7e0d4b,_0x74141b),_0x46b745['mapper']['bindElementToMarker'](_0x74141b,_0x359bbb['markerName']),_0x1dd51e&&(_0x1079f5['activeMarkers']['includes'](_0x359bbb['markerName'])?_0x46b745['writer']['addClass']('ck-suggestion-marker--active',_0x74141b):_0x46b745['writer']['removeClass']('ck-suggestion-marker--active',_0x74141b));}}};}_0x1079f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x249ed8),_0x1079f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x249ed8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x33e747(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29caa6,_0xced3a7,_0x5590c9)=>{_0x5590c9['options']['showSuggestionHighlights']&&_0x33e747({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29caa6,_0xced3a7,_0x5590c9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb92f14,_0x283a30,_0x3dd956)=>{const {type:_0x1312c8,id:_0x1a5b71}=_0x1079f5['_splitMarkerName'](_0x283a30['markerName']),_0x143ea4=_0x1079f5['getSuggestion'](_0x1a5b71),_0x4b0453=_0x143ea4['data'];if('formatBlock'!=_0x143ea4['type']||!_0x4b0453||'setTableColumnHeader'!=_0x4b0453['commandName'])return;const _0x6bc84d=_0x3dd956['mapper']['markerNameToElements'](_0x283a30['markerName']);if(_0x6bc84d){for(const _0x207366 of _0x6bc84d)_0x3dd956['writer']['removeClass']('ck-suggestion-marker-'+_0x1312c8,_0x207366),_0x3dd956['writer']['removeClass']('ck-suggestion-marker--active',_0x207366),_0x3dd956['writer']['removeAttribute']('data-suggestion',_0x207366),_0x3dd956['mapper']['unbindElementFromMarkerName'](_0x207366,_0x283a30['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190ea3=this['editor'],_0x11da0c=_0x190ea3['locale'];function _0x22eb8f(_0x138850){return{'type':'format','content':o(_0x11da0c,'*Format:*\x20%0',_0x138850)};}_0x190ea3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3045c8=>{if('formatBlock'!=_0x3045c8['type'])return;const {data:_0x20cb4a}=_0x3045c8;if(_0x20cb4a){if('setTableRowHeader'==_0x20cb4a['commandName']){const _0x3b929e=_0x20cb4a['commandParams'][0x0]['forceValue'];return _0x22eb8f(o(_0x11da0c,_0x3b929e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x20cb4a['commandName']){const _0x2ace03=_0x20cb4a['commandParams'][0x0]['forceValue'];return _0x22eb8f(o(_0x11da0c,_0x2ace03?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x185c8e{['afterInit'](){const _0x1aea3d=this['editor'],_0x5def27=_0x1aea3d['locale'],_0x14702f=_0x1aea3d['plugins']['get']('TrackChangesEditing');function _0x34baa9(_0x238695){return{'type':'format','content':''+o(_0x5def27,'*Set\x20table\x20type:*\x20%0',_0x238695)};}_0x1aea3d['plugins']['has']('TableLayout')&&(_0x14702f['enableCommand']('insertTableLayout'),_0x14702f['enableDefaultAttributesIntegration']('tableType'),_0x14702f['registerBlockAttribute']('tableType'),_0x14702f['descriptionFactory']['registerElementLabel'](_0x464655=>_0x464655['is']('element','table')&&'layout'===_0x464655['getAttribute']('tableType'),_0x5e5a61=>o(_0x5def27,'ELEMENT_LAYOUT_TABLE',_0x5e5a61)),_0x14702f['descriptionFactory']['registerDescriptionCallback'](_0xac8bda=>{const {data:_0x3b4024}=_0xac8bda;if(_0x3b4024&&'tableType'==_0x3b4024['key'])switch(_0x3b4024['newValue']){case'layout':return _0x34baa9(o(_0x5def27,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x34baa9(o(_0x5def27,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0xa9cd85=>[_0xa9cd85,null]));class Nt extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x114940=this['editor'];if(!_0x114940['plugins']['has']('TableClipboard'))return;const _0x22e779=_0x114940['plugins']['get']('TrackChangesEditing'),_0x1b2feb=_0x114940['plugins']['get']('TableUtils'),_0x52bc0e=_0x114940['plugins']['get'](At),_0x1fd4e5=_0x114940['plugins']['get']('TableClipboard'),_0x302057=_0x114940['plugins']['get']('TableSelection'),_0xdab53b=_0x114940['plugins']['get'](_0x1ee166);_0x52bc0e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x114940['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x114940['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x10e7a0=null,_0x44dc17=!0x1;_0xdab53b['on']('contentInsertion',(_0x326bfd,_0x193656)=>{_0x44dc17='paste'===_0x193656['method'];}),_0x114940['model']['on']('insertContent',(_0x1d99e4,_0x5e5a91)=>{if(!_0x44dc17&&null===_0x302057['getSelectedTableCells']())return;const [_0x30211f,_0x135486]=_0x5e5a91,_0x25d213=_0x5e5a91[_0x5e5a91['length']-0x1];_0x25d213&&_0x25d213['forceDefaultExecution']||_0x22e779['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1be4cd,_0x186978,_0x2ec821,_0x3274ea,_0x5d8589){if(_0x186978&&!_0x186978['is']('documentSelection'))return!0x1;const _0x12c9e0=_0x5d8589['getTableIfOnlyTableInContent'](_0x1be4cd,_0x2ec821);if(!_0x12c9e0||!Ue(_0x12c9e0,void 0x0,_0x3274ea))return!0x1;const _0x301859=_0x3274ea['getSelectionAffectedTableCells'](_0x2ec821['document']['selection']);if(!_0x301859['length'])return!0x1;const _0x626bd3=_0x301859[0x0]['findAncestor']('table'),_0xd2f411=_0x3274ea['getRowIndexes'](_0x301859),_0x1d319b=_0x3274ea['getColumnIndexes'](_0x301859),_0xb6797={'startRow':_0xd2f411['first'],'endRow':_0xd2f411['last'],'startColumn':_0x1d319b['first'],'endColumn':_0x1d319b['last']};return 0x1==_0x301859['length']&&(_0xb6797['endRow']+=_0x3274ea['getRows'](_0x12c9e0)-0x1,_0xb6797['endColumn']+=_0x3274ea['getColumns'](_0x12c9e0)-0x1),Ue(_0x626bd3,_0xb6797,_0x3274ea);}(_0x30211f,_0x135486,_0x114940['model'],_0x1b2feb,_0x1fd4e5)&&(_0x1d99e4['stop'](),_0x10e7a0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x114940['model']['change'](()=>{_0x114940['model']['insertContent'](_0x5e5a91[0x0],_0x5e5a91[0x1],_0x5e5a91[0x2],{'forceDefaultExecution':!0x0});const _0x239b11=_0x510ab3(),{rowInsertionRanges:_0x44c4cc,columnInsertionRanges:_0x15da99,insertionRanges:_0x16944c,deletionRanges:_0x8ed6f3,cells:_0x38fc31}=_0x10e7a0;_0x44c4cc['length']&&_0x22e779['markMultiRangeInsertion'](_0x44c4cc,'tablePasteRow',{'tablePasteChainId':_0x239b11}),_0x15da99['length']&&_0x22e779['markMultiRangeInsertion'](_0x15da99,'tablePasteColumn',{'tablePasteChainId':_0x239b11}),_0x16944c['length']&&(_0x22e779['markMultiRangeInsertion'](_0x16944c,'tablePaste',{'tablePasteChainId':_0x239b11,'skipNestingCheck':!0x0}),_0x16944c['forEach'](_0x16029c=>_0x16029c['detach']?.())),_0x8ed6f3['length']&&(_0x22e779['markMultiRangeDeletion'](_0x8ed6f3,'tablePaste',{'tablePasteChainId':_0x239b11,'skipNestingCheck':!0x0}),_0x8ed6f3['forEach'](_0x1750c5=>_0x1750c5['detach']?.()));const _0x5594e9=_0x22e779['markMultiRangeBlockFormat'](_0x38fc31['map'](({element:_0x58dbd4})=>_0x58dbd4),{'formatGroupId':_0x510ab3()},[],'tablePasteCell',{'tablePasteChainId':_0x239b11});if(_0x5594e9){const _0x25dd4d=_0x5594e9['getMarkers'](),_0x253e5d=[];for(const {element:_0x1aaaea,attributes:_0x40545a}of _0x38fc31){if(!_0x40545a)continue;const _0xcfeac1=_0x114940['model']['createRangeOn'](_0x1aaaea),_0x55bda4=_0x25dd4d['find'](_0x78026=>_0x78026['getRange']()['isEqual'](_0xcfeac1));_0x55bda4&&_0x253e5d['push']([_0x55bda4['name'],_0x40545a]);}_0x253e5d['length']&&_0x5594e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x253e5d));}_0x10e7a0=null;}));},{'priority':_0xa6a0c5['high']+0xa}),_0xdab53b['on']('contentInsertion',()=>{_0x44dc17=!0x1;},{'priority':'lowest'}),_0x114940['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x255534,_0x4d6702)=>{const [_0x3cf427,_0x197989,,_0x441d52]=_0x4d6702;if(!_0x10e7a0)return;_0x255534['stop']();const _0x5aea5a=_0x3cf427['cell'],_0x2ebf91=_0x197989,_0x3b5423=Oe(_0x5aea5a),_0x864785=Oe(_0x2ebf91);_0x255534['return']=_0x5aea5a;let _0x4cf5cf=null,_0x163193=null;if(_0x864785||_0x3b5423){if(_0x3b5423&&!_0x864785){_0x441d52['remove'](_0x5aea5a['getChild'](0x0));for(const _0x8ac824 of Array['from'](_0x2ebf91['getChildren']()))_0x441d52['insert'](_0x8ac824,_0x5aea5a,'end');const _0x316328=_0x10e7a0['rowInsertionIndexes']['includes'](_0x3cf427['row']),_0x52ea61=_0x10e7a0['columnInsertionIndexes']['includes'](_0x3cf427['column']);_0x316328||_0x52ea61||(_0x4cf5cf=_0x4ef168['fromRange'](_0x441d52['createRangeIn'](_0x5aea5a)));}else _0x864785&&!_0x3b5423&&(_0x163193=_0x441d52['createRangeIn'](_0x5aea5a));}else{const _0x199398=_0x441d52['createElement']('tableCellSuggestion'),_0x1056de=_0x441d52['createElement']('tableCellSuggestion');_0x441d52['wrap'](_0x441d52['createRangeIn'](_0x5aea5a),_0x1056de),_0x441d52['insert'](_0x199398,_0x5aea5a,0x0);for(const _0x49a6e0 of Array['from'](_0x2ebf91['getChildren']()))_0x441d52['insert'](_0x49a6e0,_0x199398,'end');_0x4cf5cf=_0x4ef168['fromRange'](_0x441d52['createRangeOn'](_0x199398)),_0x163193=_0x4ef168['fromRange'](_0x441d52['createRangeOn'](_0x1056de));}const _0x280005=Array['from'](_0x2ebf91['getAttributes']())['filter'](([_0x16526d])=>Be['includes'](_0x16526d));_0x10e7a0['cells']['push']({'element':_0x5aea5a,'attributes':_0x280005['length']?Object['fromEntries'](_0x280005):null}),_0x4cf5cf&&_0x10e7a0['insertionRanges']['push'](_0x4cf5cf),_0x163193&&_0x10e7a0['deletionRanges']['push'](_0x163193);},{'priority':'high'}),_0x1b2feb['on']('insertColumns',(_0x541f42,_0x304864)=>{const [_0x50314e,_0x2f9294={}]=_0x304864;if(!_0x10e7a0)return;const _0x55e3d8=_0x2f9294['at']||0x0,_0x10d1ed=_0x2f9294['columns']||0x1;_0x10e7a0['columnInsertionIndexes']=new Array(_0x10d1ed)['fill'](_0x55e3d8)['map']((_0x31f3d5,_0xfc0350)=>_0x31f3d5+_0xfc0350);for(const {cell:_0x542af6}of _0x1b2feb['createTableWalker'](_0x50314e,{'startColumn':_0x55e3d8,'endColumn':_0x55e3d8+_0x10d1ed-0x1}))_0x10e7a0['columnInsertionRanges']['push'](_0x114940['model']['createRangeOn'](_0x542af6));},{'priority':'low'}),_0x1b2feb['on']('insertRows',(_0x30ef54,_0x457e30)=>{const [_0x480d8a,_0xfc1535={}]=_0x457e30;if(!_0x10e7a0)return;const _0xb02a47=_0xfc1535['at']||0x0,_0x2e52ad=_0xfc1535['rows']||0x1;_0x10e7a0['rowInsertionIndexes']=new Array(_0x2e52ad)['fill'](_0xb02a47)['map']((_0x2b97f1,_0x5af060)=>_0x2b97f1+_0x5af060);for(const {cell:_0x447bce}of _0x1b2feb['createTableWalker'](_0x480d8a,{'startRow':_0xb02a47,'endRow':_0xb02a47+_0x2e52ad-0x1}))_0x10e7a0['rowInsertionRanges']['push'](_0x114940['model']['createRangeOn'](_0x447bce));},{'priority':'low'}),_0x22e779['descriptionFactory']['registerDescriptionCallback'](_0x32a396=>{if(_0x32a396['subType']&&_0x32a396['subType']['startsWith']('tablePaste'))return _0x32a396['previous']?{}:{'type':'insertion','content':o(_0x114940['locale'],'*Replace\x20table\x20cells*')};});const _0x369f50=()=>!0x1;for(const _0x14da68 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22e779['_suggestionFactory']['registerCustomCallback']('insertion',_0x14da68,'join',_0x369f50),_0x22e779['_suggestionFactory']['registerCustomCallback']('deletion',_0x14da68,'join',_0x369f50),_0x22e779['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14da68,'join',_0x369f50);_0x22e779['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x369f50),_0x22e779['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3af4c8,_0xb47801,_0x472ff8)=>{const _0x3954c1=_0x3af4c8['map'](_0x5165c9=>_0x5165c9['getContainedElement']())['filter'](_0x205a16=>_0x205a16),_0x342e67=new Map(_0x3954c1['map'](_0x2037db=>[_0x2037db,null]));if(_0x10e7a0){for(const {element:_0x35e9f6,attributes:_0x180600}of _0x10e7a0['cells'])_0x180600&&_0x342e67['set'](_0x35e9f6,_0x180600);}else{if(_0x472ff8&&_0x472ff8['markerAttributes'])for(const [_0xb39c08,_0x2d29f1]of Object['entries'](_0x472ff8['markerAttributes'])){const _0x10e2c3=_0x114940['model']['markers']['get'](_0xb39c08),_0x5e0d9d=_0x10e2c3?_0x10e2c3['getRange']()['getContainedElement']():null;_0x5e0d9d&&_0x342e67['set'](_0x5e0d9d,_0x2d29f1);}}_0x114940['model']['change'](_0x5ba144=>{for(const [_0xe60b4,_0x4b135f]of _0x342e67)_0x5ba144['setAttributes']({...xe,..._0x4b135f},_0xe60b4);});});const _0x226f3e=(_0x5285b0,_0x30b711)=>{_0x22e779['_suggestionFactory']['registerCustomCallback'](_0x5285b0,'tablePaste',_0x30b711,(_0x109572,_0x22e70c,_0x5c0cce)=>{_0x114940['model']['change'](_0x46e396=>{const _0x841310=[];for(const _0x481375 of _0x109572){const _0x92b467=_0x481375['start']['nodeAfter'];_0x92b467['is']('element','tableCellSuggestion')&&_0x841310['push'](_0x92b467);}_0x22e779['_suggestionFactory']['getSuggestionCallback'](_0x5285b0,null,_0x30b711)(_0x109572,_0x22e70c,_0x5c0cce);for(const _0x156640 of _0x841310)'$graveyard'!=_0x156640['root']['rootName']&&_0x46e396['unwrap'](_0x156640);});});};_0x226f3e('insertion','accept'),_0x226f3e('insertion','discard'),_0x226f3e('deletion','accept'),_0x226f3e('deletion','discard'),_0x22e779['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x14a8d7=>{const _0x48b6a3=_0x14a8d7['map'](_0x3bc2fa=>_0x3bc2fa['getContainedElement']()),_0x538250=_0x48b6a3[0x0]['findAncestor']('table'),{minRow:_0x127d17,maxRow:_0x37255d}=_0x52bc0e['_getCoordsForCells'](_0x48b6a3);_0x1b2feb['removeRows'](_0x538250,{'at':_0x127d17,'rows':_0x37255d-_0x127d17+0x1});}),_0x22e779['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b9417=>{const _0x468567=_0x1b9417['map'](_0xbb1556=>_0xbb1556['getContainedElement']()),_0x3d46a1=_0x468567[0x0]['findAncestor']('table'),{minColumn:_0x7da58c,maxColumn:_0x5193f2}=_0x52bc0e['_getCoordsForCells'](_0x468567);_0x1b2feb['removeColumns'](_0x3d46a1,{'at':_0x7da58c,'columns':_0x5193f2-_0x7da58c+0x1});});const _0xc76d65=(_0x57b0c5,_0x5a27e4)=>{if(!_0x5a27e4['subType']||!_0x5a27e4['subType']['startsWith']('tablePaste'))return;const _0xe70656=_0x5a27e4['attributes']['tablePasteChainId'],_0x28ff8e=_0x22e779['getSuggestions']()['filter'](_0x257bbd=>_0x257bbd['isInContent']&&_0x257bbd['attributes']&&_0x257bbd['attributes']['tablePasteChainId']==_0xe70656);_0x28ff8e['length']&&_0x5a27e4['getAllAdjacentSuggestions']()['length']!=_0x28ff8e['length']&&_0x28ff8e['reduce']((_0x57428c,_0x243eb6)=>(_0x57428c['next']=_0x243eb6,_0x243eb6['previous']=_0x57428c,_0x243eb6));};function _0xa489ed(_0x4c79c2,_0x5e07e9=!0x0){const {id:_0x3ef5b7,authorId:_0x23d14}=_0x22e779['_splitMarkerName'](_0x4c79c2['markerName']),_0x478e0e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21c788=_0x22e779['activeMarkers']['includes'](_0x4c79c2['markerName']);return _0x21c788&&_0x478e0e['push']('ck-suggestion-marker--active'),{'classes':_0x478e0e,'attributes':{'data-suggestion':_0x3ef5b7,'data-author-id':_0x23d14},'priority':_0x21c788&&_0x5e07e9?0xbc2:0xbb8};}_0x22e779['on']('suggestionLoaded',_0xc76d65,{'priority':'high'}),_0x22e779['on']('suggestionUnloaded',_0xc76d65,{'priority':'high'}),_0x114940['model']['document']['registerPostFixer'](()=>{let _0x1d3b61=!0x1;const _0x168668=Array['from'](_0x114940['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cac1d,data:_0x81640a}of _0x168668){const {group:_0x3f1ebf,type:_0x36e932,id:_0x219d9d}=_0x22e779['_splitMarkerName'](_0x1cac1d);if('suggestion'!=_0x3f1ebf||'deletion'!=_0x36e932||_0x81640a['oldRange'])continue;if(!_0x22e779['hasSuggestion'](_0x219d9d))continue;const _0xdd4f1f=_0x22e779['getSuggestion'](_0x219d9d)['getRanges'](),_0x58a874=_0x114940['plugins']['get']('Users')['me'];for(const _0x3d4064 of _0x22e779['getSuggestions']()){if(!_0x3d4064['isInContent']||_0x3d4064['author']!=_0x58a874)continue;if('formatBlock'!=_0x3d4064['type']||'tablePasteCell'!=_0x3d4064['subType'])continue;if(_0x3d4064['getRanges']()['every'](_0x56071a=>_0xdd4f1f['some'](_0x1c3430=>_0x1c3430['containsRange'](_0x56071a,!0x0)))){for(const _0x566817 of _0x3d4064['getAllAdjacentSuggestions']())_0x566817['isInContent']&&(_0x566817['discard'](),_0x1d3b61=!0x0);}}}return _0x1d3b61;}),_0x114940['model']['document']['registerPostFixer'](_0x40e90f=>{const _0x597751=_0x114940['commands']['get']('redo');if(!_0x597751||!_0x597751['_createdBatches']['has'](_0x40e90f['batch']))return!0x1;let _0x4f17a5=!0x1;const _0x352a38=_0x114940['plugins']['get']('Users')['me'],_0x294de2=_0x114940['model']['document']['differ']['getChanges'](),_0x4b0091=Array['from'](_0x114940['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x483768,data:_0x2f7398})=>{const {group:_0x56b106,subType:_0x2bc5b7,authorId:_0x5df09c}=_0x22e779['_splitMarkerName'](_0x483768);return'suggestion'==_0x56b106&&'tablePaste'==_0x2bc5b7&&_0x5df09c==_0x352a38['id']&&!_0x2f7398['oldRange'];});for(const _0x3e9ed8 of _0x294de2){if('insert'!=_0x3e9ed8['type']||'tableCellSuggestion'!=_0x3e9ed8['name']||0x1!=_0x3e9ed8['length'])continue;const _0x53a4c1=_0x40e90f['createRange'](_0x3e9ed8['position'],_0x3e9ed8['position']['getShiftedBy'](0x1));if(!_0x4b0091['find'](({data:_0x38343b})=>_0x38343b['newRange']['isEqual'](_0x53a4c1))){for(const {name:_0x3a47c9,data:_0x16611a}of _0x4b0091)if(_0x53a4c1['containsRange'](_0x16611a['newRange'])){_0x40e90f['updateMarker'](_0x3a47c9,{'range':_0x53a4c1}),_0x4f17a5=!0x0;break;}}}return _0x4f17a5;}),_0x114940['model']['document']['registerPostFixer'](_0x242b24=>{let _0x420ea3=!0x1;const _0x3d563d=_0x114940['plugins']['get']('Users')['me'],_0x5dbbb1=_0x22e779['getSuggestions']()['filter'](_0x38ef1b=>_0x38ef1b['isInContent']&&_0x38ef1b['author']==_0x3d563d),_0x325583=new Set(),_0x3dcd65=new Set();for(const _0x373940 of _0x5dbbb1)if('tablePaste'==_0x373940['subType'])for(const _0x5a301e of _0x373940['getMarkers']()){const _0x58dfe8=_0x5a301e['getRange']()['getContainedElement']();if(_0x58dfe8){if(_0x58dfe8['is']('element','tableCellSuggestion')&&Oe(_0x58dfe8)){_0x373940['removeMarker'](_0x5a301e['name']),_0x325583['add'](_0x58dfe8),_0x420ea3=!0x0;const _0x162f06=_0x58dfe8['nextSibling'],_0x284177=_0x58dfe8['previousSibling'],_0x174ba8=_0x162f06&&_0x162f06['is']('element','tableCellSuggestion'),_0x5233fe=_0x284177&&_0x284177['is']('element','tableCellSuggestion');_0x174ba8&&!_0x325583['has'](_0x162f06)&&_0x3dcd65['add'](_0x162f06),_0x5233fe&&!_0x325583['has'](_0x284177)&&_0x3dcd65['add'](_0x284177);}else _0x58dfe8['is']('element','paragraph')&&_0x58dfe8['isEmpty']&&(_0x373940['removeMarker'](_0x5a301e['name']),_0x420ea3=!0x0);}}else{if('tablePasteCell'==_0x373940['subType']){if(!_0x373940['attributes']||!_0x373940['attributes']['tablePasteChainId'])continue;const _0x24ade0=_0x373940['attributes']['markerAttributes'];if(_0x24ade0&&Object['keys'](_0x24ade0)['length'])continue;const _0x53b318=_0x373940['attributes']['tablePasteChainId'];let _0x2dfa0d=!0x0,_0x2a572b=!0x0;for(const _0x497def of _0x5dbbb1)if(_0x497def['subType']&&_0x497def['subType']['startsWith']('tablePaste')){if(!_0x497def['attributes']['tablePasteChainId']){_0x2a572b=!0x1;break;}if(_0x497def['id']!=_0x373940['id']&&_0x497def['attributes']['tablePasteChainId']==_0x53b318){_0x2dfa0d=!0x1;break;}}_0x2a572b&&_0x2dfa0d&&(_0x373940['removeMarkers'](),_0x420ea3=!0x0);}}for(const _0x1ec591 of _0x325583)_0x242b24['remove'](_0x1ec591);for(const _0x26ba73 of _0x3dcd65)_0x242b24['unwrap'](_0x26ba73);return _0x420ea3;}),_0x114940['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x561f0d=>_0xa489ed(_0x561f0d),'converterPriority':'high'}),_0x114940['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e217d,_0x22e866)=>_0x22e866['options']['showSuggestionHighlights']?_0xa489ed(_0x1e217d,!0x1):null,'converterPriority':'high'});const _0x3cdcc4=_0x114940['editing']['view'];this['listenTo'](_0x3cdcc4['document'],'clipboardOutput',(_0x412f12,_0x39f8f1)=>{const _0x2bd66b=[];for(const _0x220be0 of _0x3cdcc4['createRangeIn'](_0x39f8f1['content'])['getItems']())_0x220be0['is']('element','suggestion-td')&&_0x2bd66b['push'](_0x220be0);_0x3cdcc4['change'](_0x375151=>{for(const _0x218cb2 of _0x2bd66b)_0x375151['move'](_0x375151['createRangeIn'](_0x218cb2),_0x375151['createPositionBefore'](_0x218cb2)),_0x375151['remove'](_0x218cb2);});});}}function Oe(_0x2b5f6d){if(_0x2b5f6d['isEmpty'])return!0x0;const _0x73eaf6=_0x2b5f6d['getChild'](0x0);return _0x73eaf6['is']('element','paragraph')&&_0x73eaf6['isEmpty'];}function Ue(_0x35af1a,_0x2fe63c={},_0x41ad0b){for(const {isAnchor:_0x32da2d,cellHeight:_0x4e28f1,cellWidth:_0x1ed948}of _0x41ad0b['createTableWalker'](_0x35af1a,{'includeAllSlots':!0x0,..._0x2fe63c}))if(!_0x32da2d||0x1!=_0x4e28f1||0x1!=_0x1ed948)return!0x1;return!0x0;}class Dt extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x244c02=this['editor']['plugins']['get']('TrackChangesEditing');_0x244c02['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x244c02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x244c02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x244c02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x244c02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x244c02['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10e4b9,_0x3d42ff){const _0x1e68ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3cce=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x19ee7b=_0x3d42ff['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x267dfc=_0x1b3cce['getColumnGroupElement'](_0x19ee7b);let _0x5cc8e3=_0x267dfc?_0x1b3cce['getTableColumnsWidths'](_0x267dfc):null,_0x41694c=_0x19ee7b['getAttribute']('tableWidth')||null;const _0x4ccfeb=_0x3d42ff['tableWidth']||_0x41694c,_0x2550ed=_0x3d42ff['columnWidths']||_0x5cc8e3,_0x5ebf3a=this['editor']['plugins']['get']('Users')['me'];for(const _0x12441c of _0x1e68ad['getSuggestions']()){const _0x398e12=_0x12441c['getContainedElement']();if('resizeTable'===_0x12441c['subType']&&_0x398e12===_0x19ee7b){_0x12441c['author']!==_0x5ebf3a&&_0x12441c['discard']();const _0x36e109=_0x12441c['data']['commandParams'];_0x41694c=_0x36e109[0x0]['tableWidth'],_0x5cc8e3=_0x36e109[0x0]['columnWidths'];break;}}_0x10e4b9({'table':_0x19ee7b,'tableWidth':_0x4ccfeb,'columnWidths':_0x2550ed}),_0x1e68ad['markBlockFormat'](_0x19ee7b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x41694c,'columnWidths':_0x5cc8e3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x473334){if('formatBlock'!=_0x473334['type']&&'formatInline'!=_0x473334['type'])return;const {data:_0x86db6e}=_0x473334;if(_0x86db6e&&'resizeTable'===_0x86db6e['formatGroupId']){const _0x7bbb8a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x7bbb8a)};}}}class Mt extends _0x185c8e{['afterInit'](){const _0x18190c=this['editor'];_0x18190c['plugins']['has']('Template')&&_0x18190c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x185c8e{['afterInit'](){const _0x1e72ff=this['editor'];if(!_0x1e72ff['commands']['get']('insertTableOfContents'))return;_0x1e72ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe2d2d3=_0x1e72ff['plugins']['get']('TrackChangesEditing'),_0x3d1314=_0x1e72ff['locale'];_0xe2d2d3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1fe658=>o(_0x3d1314,'ELEMENT_TABLE_OF_CONTENTS',_0x1fe658));}}class Bt extends _0x185c8e{['afterInit'](){const _0x332eac=this['editor'];if(!_0x332eac['plugins']['has']('Title'))return;const _0x439d3c=_0x332eac['plugins']['get']('TrackChangesEditing');_0x439d3c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x332eac['locale'],'ELEMENT_TITLE')),_0x332eac['model']['document']['registerPostFixer'](_0xb1e1aa=>{let _0x2b1f52=!0x1;const _0x4829b4=Array['from'](_0x332eac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502e30,data:_0x3a1386}of _0x4829b4){const {group:_0x31a7d1}=_0x439d3c['_splitMarkerName'](_0x502e30);if('suggestion'!==_0x31a7d1||!_0x3a1386['newRange'])continue;const _0x4870f1=_0x3a1386['newRange'],_0x199df4=_0x4870f1['end']['nodeBefore'];if(!_0x199df4||!_0x199df4['is']('element','title-content'))continue;if(!_0x4870f1['start']['isTouching'](_0x4870f1['end']))continue;const _0x55a980=_0x332eac['model']['schema']['getNearestSelectionRange'](_0x4870f1['end'],'forward');if(_0x55a980&&_0x55a980['isCollapsed']){const _0x58f083=_0xb1e1aa['createRange'](_0x4870f1['start'],_0x55a980['start']);_0x58f083['isEqual'](_0x4870f1)||(_0xb1e1aa['updateMarker'](_0x502e30,{'range':_0x58f083}),_0x2b1f52=!0x0);}_0x2b1f52||(_0xb1e1aa['removeMarker'](_0x502e30),_0x2b1f52=!0x0);}return _0x2b1f52;});}}class Tt extends _0x185c8e{['afterInit'](){const _0x4fe90c=this['editor'],_0x4f3a6b=_0x4fe90c['plugins']['get']('TrackChangesEditing');_0x4fe90c['plugins']['has']('Uploadcare')&&(_0x4f3a6b['enableCommand']('uploadcare'),_0x4fe90c['plugins']['has']('UploadcareImageEdit')&&(_0x4f3a6b['enableCommand']('uploadcareImageEdit'),_0x4f3a6b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f3a6b['registerBlockAttribute']('uploadcareImageId'),_0x4f3a6b['descriptionFactory']['registerDescriptionCallback'](_0x604c31=>{if('attribute'!=_0x604c31['type'])return;const {data:_0x12a37e}=_0x604c31;return _0x12a37e&&'uploadcareImageId'==_0x12a37e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x185c8e{['afterInit'](){const _0x57af5e=this['editor'],_0x55785c=_0x57af5e['plugins']['get']('TrackChangesEditing');_0x57af5e['plugins']['has']('UndoEditing')&&(_0x55785c['enableCommand']('undo'),_0x55785c['enableCommand']('redo'));}}class Ot extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x282bd8=this['editor'];if(!_0x282bd8['plugins']['has']('TableCaptionEditing'))return;_0x282bd8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x185c8e{['tableProperties'];['tableCellProperties'];constructor(_0x4d12d3){super(_0x4d12d3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1ba34c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4c9e8b of this['tableProperties'])_0x1ba34c['enableCommand'](_0x4c9e8b,(_0x27bd6e,_0x387e66)=>{const _0x37b5be=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4c9e8b,[_0x37b5be],this['tableProperties'],'tableProperties',_0x27bd6e,_0x387e66);});_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ba34c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x241df9,_0x661feb)=>this['handleDiscardAction'](this['tableProperties'],_0x241df9,_0x661feb)),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5113dc of this['tableCellProperties'])_0x1ba34c['enableCommand'](_0x5113dc,(_0x336851,_0x2822b1)=>{const _0x218c2f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5113dc,_0x218c2f,this['tableCellProperties'],'tableCellProperties',_0x336851,_0x2822b1);});_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ba34c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4822d4,_0x420ffa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4822d4,_0x420ffa)),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ba34c['descriptionFactory']['registerDescriptionCallback'](_0x1e92d8=>this['handleSuggestionDescription'](_0x1e92d8));}['_handlePropertyChange'](_0x2659b1,_0x50e649,_0x1dc7fb,_0x5e0294,_0x56c7e7,_0xc11cbf){const _0x227613=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc11cbf['batch'],()=>{for(const _0x56fec1 of _0x50e649){if(this['_getSuggestion'](_0x56fec1,_0x5e0294))_0x56c7e7(_0xc11cbf);else{const _0x424517={};for(const _0x218a38 of _0x1dc7fb){const _0x40d4a6=_0x56fec1['getAttribute'](_0x218a38);void 0x0!==_0x40d4a6&&(_0x424517[_0x218a38]=_0x40d4a6);}_0x56c7e7(_0xc11cbf),_0x227613['markBlockFormat'](_0x56fec1,{'commandParams':[_0x424517]},[],_0x5e0294);}}});}['handleDiscardAction'](_0x2a4454,_0x5dee30,_0x589d9a){const _0x5f305e=_0x5dee30[0x0]['start']['nodeAfter'],_0x9b7afb=_0x589d9a['commandParams'][0x0];this['editor']['model']['change'](_0x3444f0=>{for(const _0x2aefd3 of _0x2a4454)void 0x0!==_0x9b7afb[_0x2aefd3]?_0x3444f0['setAttribute'](_0x2aefd3,_0x9b7afb[_0x2aefd3],_0x5f305e):_0x3444f0['removeAttribute'](_0x2aefd3,_0x5f305e);});}['handleSuggestionDescription'](_0x560909){if(_0x560909['data'])switch(_0x560909['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x435efd,_0x483de1){const _0xacd793=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x238d70 of _0xacd793['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f2114=_0x238d70['getContainedElement']();if(_0x238d70['subType']===_0x483de1&&_0x3f2114===_0x435efd)return _0x238d70;}return null;}}class Rt extends _0x185c8e{['afterInit'](){const _0x202b4b=this['editor'];if(!_0x202b4b['plugins']['has']('LineHeight'))return;const _0x19e127=_0x202b4b['plugins']['get']('TrackChangesEditing'),_0x23bbed=_0x202b4b['locale'];_0x19e127['enableDefaultAttributesIntegration']('lineHeight'),_0x19e127['registerBlockAttribute']('lineHeight'),_0x19e127['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x23bbed,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x185c8e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x7e9419,_0x29dc66,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1aa35f){super(_0x1aa35f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2ec290,_0x4f8bdb,_0x54caf7,_0x597a1a)=>{this['_model']['change'](()=>{for(const _0x451246 of[..._0x597a1a,..._0x54caf7])this['_model']['markers']['has'](_0x451246)&&_0x1aa35f['editing']['reconvertMarker'](_0x451246);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1aa35f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1aa35f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1aa35f['config']['get']('trackChanges.trackFormatChanges'),_0x1aa35f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1aa35f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x1aa35f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x120b69=this['editor'],_0x31989c=(_0x3c3451,_0xbecb71)=>{if('attribute'!=_0x3c3451)return'ck-suggestion-marker-'+_0x3c3451;const _0x31ce70=_0xbecb71['split']('|')[0x0];return this['_isBlockAttribute'](_0x31ce70)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x120b69['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x37b749=>{const {id:_0x20a352,authorId:_0x1d9bf3,type:_0x54e96f,subType:_0x431648}=this['_splitMarkerName'](_0x37b749['markerName']),_0x21d553=['ck-suggestion-marker',_0x31989c(_0x54e96f,_0x431648)];let _0x45100a=0xbb8;return this['activeMarkers']['includes'](_0x37b749['markerName'])&&(_0x21d553['push']('ck-suggestion-marker--active'),_0x45100a=0xbc2),'deletion'==_0x54e96f&&(_0x45100a+=0x5),{'classes':_0x21d553,'attributes':{'data-suggestion':_0x20a352,'data-author-id':_0x1d9bf3},'priority':_0x45100a};}}),_0x120b69['conversion']['for']('dataDowncast')['add'](_0x404e5b=>{_0x404e5b['on']('addMarker:suggestion',(_0x237153,_0xee4bc2,_0x552e45)=>{if(!_0x552e45['options']['showSuggestionHighlights'])return;const _0x1f83bb=_0xee4bc2['item'];if(!_0x1f83bb)return;const _0x3b08f9=_0x552e45['mapper']['toViewElement'](_0x1f83bb);_0x120b69['model']['schema']['isObject'](_0x1f83bb)&&_0x3b08f9&&!_0x3b08f9['getCustomProperty']('widget')&&_0x3b08f9['is']('containerElement')&&_0xdc8a31(_0x3b08f9,_0x552e45['writer']);},{'priority':'high'});}),_0x120b69['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1cf25e,_0x3bcbc9)=>{if(!_0x3bcbc9['options']['showSuggestionHighlights'])return null;const {id:_0x22515c,authorId:_0x2dae40,type:_0x493a43,subType:_0x52363a}=this['_splitMarkerName'](_0x1cf25e['markerName']);return{'classes':['ck-suggestion-marker',_0x31989c(_0x493a43,_0x52363a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x22515c,'data-author-id':_0x2dae40}};}});const _0x241ec5=({showActiveMarkers:_0x51db2b=!0x0,isAttributeSuggestion:_0x43a928=!0x1}={})=>(_0x40112e,_0x566a48,_0x8ffcb4)=>{if(!_0x566a48['item'])return;const {id:_0xcb99ae,authorId:_0x7f26af}=this['_splitMarkerName'](_0x566a48['markerName']);if(_0x43a928){const _0x46dec6=this['_suggestions']['get'](_0xcb99ae),_0x4aa33b=this['_getAttributeKey'](_0x46dec6);if(!this['_isBlockAttribute'](_0x4aa33b))return;}if(_0x566a48['item']['is']('selection'))return void _0x8ffcb4['consumable']['consume'](_0x566a48['item'],_0x40112e['name']);const _0x4f95ec=_0x8ffcb4['mapper']['toViewElement'](_0x566a48['item']);if(_0x566a48['item']['is']('element')&&_0x120b69['model']['schema']['isBlock'](_0x566a48['item'])&&!_0x4f95ec['getCustomProperty']('addHighlight')){_0x8ffcb4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f95ec),_0x8ffcb4['writer']['setAttribute']('data-suggestion',_0xcb99ae,_0x4f95ec),_0x8ffcb4['writer']['setAttribute']('data-author-id',_0x7f26af,_0x4f95ec),_0x8ffcb4['mapper']['bindElementToMarker'](_0x4f95ec,_0x566a48['markerName']),_0x51db2b&&(this['activeMarkers']['includes'](_0x566a48['markerName'])?_0x8ffcb4['writer']['addClass']('ck-suggestion-marker--active',_0x4f95ec):_0x8ffcb4['writer']['removeClass']('ck-suggestion-marker--active',_0x4f95ec));for(const _0x2cb18e of _0x120b69['model']['createRangeIn'](_0x566a48['item'])['getItems']())_0x8ffcb4['consumable']['consume'](_0x2cb18e,_0x40112e['name']);_0x8ffcb4['consumable']['consume'](_0x566a48['item'],_0x40112e['name']);}};_0x120b69['conversion']['for']('dataDowncast')['add'](_0x595b12=>{_0x595b12['on']('addMarker:suggestion:formatBlock',(_0x514594,_0x30cf74,_0x490bdf)=>{_0x490bdf['options']['showSuggestionHighlights']&&_0x241ec5({'showActiveMarkers':!0x1})(_0x514594,_0x30cf74,_0x490bdf);},{'priority':'highest'});}),_0x120b69['conversion']['for']('dataDowncast')['add'](_0xe71a6c=>{_0xe71a6c['on']('addMarker:suggestion:attribute',(_0x45516d,_0x5c0264,_0x22b486)=>{_0x22b486['options']['showSuggestionHighlights']&&_0x241ec5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x45516d,_0x5c0264,_0x22b486);},{'priority':'highest'});}),_0x120b69['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x318f8b,_0x56ee9d)=>{if(_0x56ee9d['options']['showSuggestionHighlights']){const {id:_0x565673,authorId:_0x55bb1c}=this['_splitMarkerName'](_0x318f8b);return _0x318f8b['includes'](':split')||_0x318f8b['includes'](':merge')?{'group':'suggestion','name':_0x318f8b['substr'](0xb),'attributes':{'data-suggestion':_0x565673,'data-author-id':_0x55bb1c}}:null;}return{'group':'suggestion','name':_0x318f8b['substr'](0xb)};}}),_0x120b69['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e2f33,{writer:_0x1d4b26})=>{let _0x52dd8d='suggestion:'+_0x4e2f33['getAttribute']('suggestion-type')+':'+_0x4e2f33['getAttribute']('id');return _0x4e2f33['getAttribute']('marker-count')&&(_0x52dd8d+=':'+_0x4e2f33['getAttribute']('marker-count')),_0x1d4b26['createElement']('$marker',{'data-name':_0x52dd8d});}}),_0x120b69['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0x208365=>{_0x208365['on']('addMarker:suggestion:formatBlock',_0x241ec5(),{'priority':'high'});}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0x2e71ac=>{_0x2e71ac['on']('addMarker:suggestion:attribute',_0x241ec5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0xfd1b71=>{_0xfd1b71['on']('removeMarker:suggestion:formatBlock',(_0x2cb9df,_0x5544f5,_0x4fabfd)=>{const _0x5c5886=_0x4fabfd['mapper']['markerNameToElements'](_0x5544f5['markerName']);if(_0x5c5886){for(const _0x2c9bff of _0x5c5886)_0x2c9bff['getCustomProperty']('addHighlight')||(_0x4fabfd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c9bff),_0x4fabfd['writer']['removeAttribute']('data-suggestion',_0x2c9bff),_0x4fabfd['writer']['removeAttribute']('data-author-id',_0x2c9bff),_0x4fabfd['mapper']['unbindElementFromMarkerName'](_0x2c9bff,_0x5544f5['markerName']));}},{'priority':'high'});}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0x389638=>{_0x389638['on']('removeMarker:suggestion:attribute',(_0x4a4407,_0x176dcb,_0x2a9cf9)=>{const _0x1454a6=_0x2a9cf9['mapper']['markerNameToElements'](_0x176dcb['markerName']);if(!_0x1454a6)return;const {id:_0x5d9dc8}=this['_splitMarkerName'](_0x176dcb['markerName']),_0x4bd366=this['_suggestions']['get'](_0x5d9dc8),_0xe6b2e6=this['_getAttributeKey'](_0x4bd366);if(this['_isBlockAttribute'](_0xe6b2e6)){for(const _0x691100 of _0x1454a6)_0x691100['getCustomProperty']('addHighlight')||(_0x2a9cf9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x691100),_0x2a9cf9['writer']['removeAttribute']('data-suggestion',_0x691100),_0x2a9cf9['writer']['removeAttribute']('data-author-id',_0x691100),_0x2a9cf9['mapper']['unbindElementFromMarkerName'](_0x691100,_0x176dcb['markerName']));}},{'priority':'high'});}),_0x120b69['model']['document']['registerPostFixer'](_0x54daa7=>{let _0x41f806=!0x1;const _0x3621c2=Array['from'](_0x120b69['model']['document']['differ']['getChangedMarkers']()),_0x1d3244=new Set();for(const {name:_0x41fe02,data:_0x31918b}of _0x3621c2){const {group:_0x52f565,type:_0x371861,subType:_0x101710,id:_0x4fa5fa}=this['_splitMarkerName'](_0x41fe02);if('suggestion'!==_0x52f565)continue;const _0x3ebd57=this['_suggestions']['get'](_0x4fa5fa);if(null!=_0x31918b['newRange']){'formatInline'==_0x371861&&(_0x41f806=_0x41f806||Gt(_0x31918b['newRange'],_0x41fe02,_0x54daa7,_0x120b69['model']['schema']));const _0xae3152='attribute'==_0x371861&&this['_isBlockAttribute'](_0x101710['split']('|')[0x0]);if(_0x31918b['newRange']['isCollapsed']||'$graveyard'==_0x31918b['newRange']['root']['rootName']||'formatBlock'==_0x371861&&!Jt(_0x31918b['newRange'])||_0xae3152&&!Jt(_0x31918b['newRange'])||'deletion'==_0x371861&&!Kt(_0x31918b['newRange']))_0x54daa7['removeMarker'](_0x41fe02),_0x41f806=!0x0;else{if(!_0x3ebd57||!_0x3ebd57['isInContent'])continue;if(_0x31918b['newRange']&&_0x31918b['oldRange']&&_0x31918b['newRange']['isEqual'](_0x31918b['oldRange']))continue;_0x1d3244['add'](_0x3ebd57);}}}return _0x1d3244['size']>0x0&&(_0x41f806=!!this['_joinWithAdjacentSuggestions'](_0x1d3244)||_0x41f806),_0x41f806;}),_0x120b69['model']['document']['registerPostFixer'](_0x1acac0=>{let _0x50e502=!0x1;for(const _0x27f52a of _0x120b69['model']['document']['differ']['getChanges']())if('insert'==_0x27f52a['type'])for(const _0x38fbf3 of this['_suggestions']['values']()){if(_0x38fbf3['isMultiRange']||!_0x38fbf3['isInContent'])continue;const _0x1672f3='formatBlock'==_0x38fbf3['type'],_0xa0af1=this['_getAttributeKey'](_0x38fbf3),_0x66921a=_0xa0af1&&this['_isBlockAttribute'](_0xa0af1);if(!_0x1672f3&&!_0x66921a)continue;const _0x2bb50e=_0x38fbf3['getFirstRange']();if(_0x2bb50e['start']['parent']!=_0x2bb50e['end']['parent']&&!_0x2bb50e['end']['isAtEnd']){const _0x559607=_0x120b69['model']['createPositionAt'](_0x2bb50e['start']['nodeAfter'],'end'),_0x1229cb=_0x120b69['model']['createRange'](_0x2bb50e['start'],_0x559607);_0x1acac0['updateMarker'](_0x38fbf3['getFirstMarker'](),{'range':_0x1229cb}),_0x50e502=!0x0;}}return _0x50e502;}),_0x120b69['model']['document']['registerPostFixer'](_0xd4c938=>this['_processAttributeChanges'](_0xd4c938)),_0x120b69['model']['document']['registerPostFixer'](_0x367901=>!_0x367901['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x367901)),_0x120b69['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x120b69['model']['document']['on']('change:data',(_0x123f3,_0x365bc3)=>{if(!_0x365bc3['isLocal']||_0x365bc3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x520566=_0x120b69['model']['document']['differ']['getChanges']();if(0x0==_0x520566['length'])return;const _0x53cbde=[],_0x14f947=_0x520566['filter'](_0x1b791f=>'attribute'==_0x1b791f['type']),_0x4c87ef=_0x520566['filter'](_0x35ed27=>'insert'==_0x35ed27['type']&&'$text'!=_0x35ed27['name']);for(const _0xbcacaf of _0x14f947)this['_isRegisteredAttribute'](_0xbcacaf['attributeKey'])&&_0x53cbde['push']({'key':_0xbcacaf['attributeKey'],'newValue':_0xbcacaf['attributeNewValue'],'oldValue':_0xbcacaf['attributeOldValue'],'range':Ht(_0xbcacaf['range'],_0x120b69['model'])});for(const _0x429c14 of _0x4c87ef){if('rename'!=_0x429c14['action']&&'refresh'!=_0x429c14['action'])continue;const _0x5c3163=qt(_0x429c14['position']['nodeAfter'],_0x120b69['model']),_0x43c8fc=_0x429c14['before'];'rename'==_0x429c14['action']&&_0x53cbde['push']({'key':m,'newValue':_0x429c14['name'],'oldValue':_0x43c8fc['name'],'range':_0x5c3163});for(const [_0x195bd1,_0x46c890]of _0x43c8fc['attributes']){if(!this['_isRegisteredAttribute'](_0x195bd1))continue;const _0x534f4d=_0x429c14['attributes']['get'](_0x195bd1);_0x46c890!==_0x534f4d&&_0x53cbde['push']({'key':_0x195bd1,'newValue':_0x534f4d,'oldValue':_0x46c890,'range':_0x5c3163});}for(const [_0x1a3542,_0x57682d]of _0x429c14['attributes'])this['_isRegisteredAttribute'](_0x1a3542)&&(_0x43c8fc['attributes']['has'](_0x1a3542)||_0x53cbde['push']({'key':_0x1a3542,'newValue':_0x57682d,'oldValue':null,'range':_0x5c3163}));}0x0!=_0x53cbde['length']&&_0x120b69['model']['enqueueChange'](_0x365bc3,_0x4cac4=>{const _0x1c3f9f=_0x510ab3();for(const {range:_0x1f753c,key:_0x16823e,oldValue:_0x138b21,newValue:_0x40a73e}of _0x53cbde)this['markAttributeChange'](_0x1f753c,_0x16823e,_0x138b21,_0x40a73e,{'groupId':_0x1c3f9f});this['_reduceExistingSuggestions'](_0x4cac4,_0x53cbde);});},{'priority':'lowest'}),_0x120b69['model']['markers']['on']('update:suggestion',(_0x2bb908,_0x5a6fd9,_0x241155)=>{if(null==_0x241155){const {id:_0x4af19a}=this['_splitMarkerName'](_0x5a6fd9['name']),_0x22e6e2=this['_suggestions']['get'](_0x4af19a);_0x22e6e2&&_0x22e6e2['addMarkerName'](_0x5a6fd9['name']);}}),_0x120b69['model']['document']['on']('change:data',()=>{const _0xb91677=Array['from'](_0x120b69['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3b8fa2=>'suggestion'===this['_splitMarkerName'](_0x3b8fa2['name'])['group']);if(0x0===_0xb91677['length'])return;_0xb91677['sort']((_0x587219,_0x375720)=>{const _0x55b9ad=_0x587219['data']['oldRange'],_0x29f001=_0x375720['data']['oldRange'];return null===_0x55b9ad&&null===_0x29f001?0x0:null===_0x55b9ad&&null!==_0x29f001?-0x1:null!==_0x55b9ad&&null===_0x29f001?0x1:_0x55b9ad['start']['isBefore'](_0x29f001['start'])?-0x1:0x1;});const _0x88b0e8=new Set(),_0x5b70c0=new Set();for(const {name:_0x7bcc41,data:_0x430330}of _0xb91677){const {id:_0x7c1022}=this['_splitMarkerName'](_0x7bcc41);if(null===_0x430330['oldRange']){const _0x34b371=this['_handleNewSuggestionMarker'](_0x7bcc41);_0x5b70c0['add'](_0x34b371);}else{const _0x4a29a5=this['_suggestions']['get'](_0x7c1022);null!==_0x430330['newRange']||_0x4a29a5['isInContent']?(_0x88b0e8['add'](_0x4a29a5['head']),_0x5b70c0['add'](_0x4a29a5)):this['_removeSuggestion'](_0x4a29a5);}}_0x5b70c0['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b70c0);for(const _0x56002b of _0x88b0e8)this['fire']('suggestionChanged',_0x56002b);}),_0x120b69['model']['on']('applyOperation',(_0x3fdc6d,_0x3660a5)=>{const _0x42f8ee=_0x3660a5[0x0];if(!this['_suggestions']['size'])return;if(!_0x42f8ee['isDocumentOperation'])return;if(_0x42f8ee['batch']['isUndo']||!_0x42f8ee['batch']['isLocal'])return;let _0x331dd3,_0x571792;switch(_0x42f8ee['type']){case'insert':_0x331dd3=_0x120b69['model']['createPositionAt'](_0x42f8ee['position']),_0x571792=_0x331dd3['getShiftedBy'](_0x42f8ee['howMany']);break;case'split':_0x331dd3=_0x120b69['model']['createPositionAt'](_0x42f8ee['splitPosition']),_0x571792=_0x120b69['model']['createPositionAt'](_0x42f8ee['moveTargetPosition']);break;case'move':_0x331dd3=_0x120b69['model']['createPositionAt'](_0x42f8ee['targetPosition']),_0x571792=_0x331dd3['getShiftedBy'](_0x42f8ee['howMany']);break;default:return;}const _0x213729=_0x120b69['model']['createRange'](_0x331dd3,_0x571792);_0x120b69['model']['change'](()=>{for(const {suggestion:_0x4e9924,meta:_0x13a450}of this['_findSuggestions'](_0x213729)){if(_0x4e9924['isMultiRange'])continue;if('formatInline'==_0x4e9924['type'])continue;const _0x11de70=this['_getAttributeKey'](_0x4e9924);if(_0x11de70&&this['_isBlockAttribute'](_0x11de70)&&'split'!=_0x42f8ee['type'])continue;const _0x376467=_0x4e9924['data']&&_0x4e9924['data']['multipleBlocks'];('formatBlock'!=_0x4e9924['type']||'split'==_0x42f8ee['type']&&!_0x376467)&&(_0x13a450['containsRangeInObject']||'insertion'==_0x4e9924['type']&&_0x13a450['isOwn']||_0x4e9924['getFirstRange']()['containsRange'](_0x213729)&&this['_breakSuggestionMarker'](_0x4e9924,_0x331dd3,_0x571792));}});},{'priority':'lowest'}),_0x120b69['model']['on']('deleteContent',(_0x57bdac,_0x5ef01d)=>{const _0x5eb4e5=_0x5ef01d[0x0],_0x15c62e=_0x5ef01d[0x1];if(_0x15c62e&&_0x15c62e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eb4e5['isCollapsed'])return;const _0x5784cc=_0x120b69['model']['schema'],{start:_0x2bf675,end:_0xa8902c}=_0x5eb4e5['getFirstRange'](),_0x124f26=_0x2bf675['nodeAfter']&&_0x5784cc['isLimit'](_0x2bf675['nodeAfter'])?null:_0x5784cc['getNearestSelectionRange'](_0x2bf675,'forward'),_0x1170ec=_0xa8902c['nodeBefore']&&_0x5784cc['isLimit'](_0xa8902c['nodeBefore'])?null:_0x5784cc['getNearestSelectionRange'](_0xa8902c,'backward'),_0x34c9ae=_0x120b69['model']['createRange'](_0x124f26?_0x124f26['start']:_0x2bf675,_0x1170ec?_0x1170ec['end']:_0xa8902c);_0x120b69['model']['change'](_0x35a8f3=>{this['markDeletion'](_0x34c9ae);const _0x28f07b=_0x120b69['model']['schema']['getNearestSelectionRange'](_0x34c9ae['start']);_0x5eb4e5['is']('documentSelection')?_0x35a8f3['setSelection'](_0x28f07b):_0x5eb4e5['setTo'](_0x28f07b);}),_0x57bdac['stop']();},{'priority':_0xa6a0c5['normal']+0xa}),_0x120b69['model']['on']('insertContent',(_0x505fd7,_0x3c4ea4)=>{const _0x26e4e3=_0x3c4ea4[_0x3c4ea4['length']-0x1];_0x26e4e3&&_0x26e4e3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x120b69['model']['change'](()=>{let _0x44bc49=_0x120b69['model']['insertContent'](_0x3c4ea4[0x0],_0x3c4ea4[0x1],_0x3c4ea4[0x2],{'forceDefaultExecution':!0x0});if(!_0x44bc49)return;_0x505fd7['return']=_0x44bc49['clone']();const _0x3e7301=_0x44bc49['end']['nodeBefore'],_0x418ec4=_0x120b69['model']['schema'];_0x3e7301&&_0x418ec4['isBlock'](_0x3e7301)&&!_0x418ec4['isObject'](_0x3e7301)&&(_0x44bc49=_0x120b69['model']['createRange'](_0x44bc49['start'],_0x120b69['model']['createPositionAt'](_0x3e7301,'end'))),this['markInsertion'](_0x44bc49);}),_0x505fd7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x12e70a=new D(_0x120b69,this['_suggestions']);_0x120b69['commands']['add']('acceptSuggestion',_0x12e70a),this['enableCommand']('acceptSuggestion');const _0x2842a3=new M(_0x120b69,this['_suggestions']);_0x120b69['commands']['add']('discardSuggestion',_0x2842a3),this['enableCommand']('discardSuggestion'),_0x120b69['commands']['add']('acceptAllSuggestions',new $(_0x120b69,_0x12e70a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x120b69['commands']['add']('discardAllSuggestions',new $(_0x120b69,_0x2842a3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x120b69['commands']['add']('acceptSelectedSuggestions',new B(_0x120b69,_0x12e70a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x120b69['commands']['add']('discardSelectedSuggestions',new B(_0x120b69,_0x2842a3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x14471b=_0x120b69['plugins']['get']('CommentsRepository');this['listenTo'](_0x14471b,'addComment',(_0x5679d6,{threadId:_0x37782c})=>{const _0x7cce0e=this['_suggestions']['get'](_0x37782c);_0x7cce0e&&_0x7cce0e['commentThread']&&0x1===_0x7cce0e['commentThread']['length']&&this['_updateSuggestionData'](_0x37782c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x14471b,'removeComment',(_0x1fabaf,{threadId:_0xa47387})=>{const _0x2542fa=this['_suggestions']['get'](_0xa47387);_0x2542fa&&_0x2542fa['commentThread']&&!_0x2542fa['commentThread']['length']&&this['_updateSuggestionData'](_0xa47387,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e5f50){const _0x59d647=_0x279d43([0x30,0x32,0x79,0x70,0x6d,0x39,0x54,0x6a,0x57,0x6e,0x47,0x72,0x66,0x52,0x59,0x4e,0x6f,0x5a,0x55,0x78,0x71,0x58,0x31,0x48,0x65,0x69,0x74,0x62,0x53,0x4a,0x75,0x4b,0x4d,0x46,0x43,0x45,0x38,0x76,0x34,0x49,0x41,0x35,0x7a,0x68,0x4c,0x61,0x56,0x64,0x6b,0x67,0x63,0x51,0x73,0x33,0x42,0x44,0x36,0x6c,0x77,0x4f,0x37,0x50]),_0x2a5a10=0x6881b87d,_0x107da4=0x6886d4fd^_0x2a5a10,_0x1e3210=window[_0x279d43([0x44,0x61,0x74,0x65])][_0x279d43([0x6e,0x6f,0x77])](),_0x4feacb=_0x2e5f50[_0x279d43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e2abd=new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234c02=>{_0x4feacb[_0x279d43([0x6f,0x6e,0x63,0x65])](_0x279d43([0x72,0x65,0x61,0x64,0x79]),_0x234c02);}),_0x10acbb={[_0x279d43([0x6b,0x74,0x79])]:_0x279d43([0x45,0x43]),[_0x279d43([0x75,0x73,0x65])]:_0x279d43([0x73,0x69,0x67]),[_0x279d43([0x63,0x72,0x76])]:_0x279d43([0x50,0x2d,0x32,0x35,0x36]),[_0x279d43([0x78])]:_0x279d43([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x279d43([0x79])]:_0x279d43([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x279d43([0x61,0x6c,0x67])]:_0x279d43([0x45,0x53,0x32,0x35,0x36])},_0xfa9ea5=_0x4feacb[_0x279d43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x279d43([0x67,0x65,0x74])](_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ee3de(){let _0x3b86bf,_0x138f02=null,_0x4a3aba=null;try{if(_0xfa9ea5==_0x279d43([0x47,0x50,0x4c]))return _0x279d43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b86bf=_0x37c1cc(),!_0x3b86bf)return _0x279d43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b86bf[_0x279d43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a3aba=_0x4dce0f(_0x3b86bf[_0x279d43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b86bf[_0x279d43([0x6a,0x74,0x69])])),await _0x4f274e()?_0x1f2002()?_0x35a699()?_0x279d43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28931e()?(_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x279d43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x138f02=_0x143b4b(_0x279d43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x279d43([0x74,0x72,0x69,0x61,0x6c])&&(_0x138f02=_0x143b4b(_0x279d43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x486e14()):_0x279d43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x279d43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x279d43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x279d43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35a699(){const _0xb41af6=[_0x279d43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x279d43([0x74,0x72,0x69,0x61,0x6c])][_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e3210/0x3e8:0xe10*_0x107da4;return _0x3b86bf[_0x279d43([0x65,0x78,0x70])]<_0xb41af6;}function _0x1f2002(){const _0x440b81=_0x3b86bf[_0x279d43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x440b81)return!0x1;if(_0x440b81[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x2a])))return!0x0;if(_0x440b81[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x54,0x43])))return!0x0;if(_0x440b81[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x52,0x54,0x43]))){if(_0x1058a5())return!0x0;if(_0x5da04c()||_0x594353())return!0x0;}return!0x1;}function _0x28931e(){const _0x16e03d=_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16e03d||0x0==_0x16e03d[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e4be2}=new URL(window[_0x279d43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16e03d[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4be2))return!0x0;const _0x43b754=_0x5e4be2[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e]));return _0x16e03d[_0x279d43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcbe300=>_0xcbe300[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x2a])))[_0x279d43([0x6d,0x61,0x70])](_0x4960ab=>_0x4960ab[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e])))[_0x279d43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37a47c=>_0x37a47c[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43b754[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x279d43([0x6d,0x61,0x70])](_0x140bd2=>Array(_0x43b754[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x140bd2[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x279d43([0x66,0x69,0x6c,0x6c])](_0x140bd2[0x0]===_0x279d43([0x2a])?_0x279d43([0x2a]):'')[_0x279d43([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x140bd2))[_0x279d43([0x73,0x6f,0x6d,0x65])](_0x50a921=>_0x43b754[_0x279d43([0x65,0x76,0x65,0x72,0x79])]((_0x2cfd27,_0x12bcf3)=>_0x50a921[_0x12bcf3]===_0x2cfd27||_0x50a921[_0x12bcf3]===_0x279d43([0x2a])));}function _0x486e14(){return _0x138f02&&_0x4a3aba?new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52cce4,_0x51f27a)=>{_0x138f02[_0x279d43([0x74,0x68,0x65,0x6e])](_0x52cce4,_0x51f27a),_0x4a3aba[_0x279d43([0x74,0x68,0x65,0x6e])](_0x58191e=>{_0x58191e!=_0x279d43([0x56,0x61,0x6c,0x69,0x64])&&_0x52cce4(_0x58191e);},_0x51f27a);}):_0x138f02||_0x4a3aba||_0x279d43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4dce0f(_0x1b6d58,_0x324118){return new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ccd66=>{if(_0x44caf6())return _0x3ccd66(_0x279d43([0x56,0x61,0x6c,0x69,0x64]));_0x134668(),_0x4feacb[_0x279d43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x279d43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x590178=!0x1;const _0x2d7a49=_0x510ab3();function _0xbccae9(_0x265605){return!!_0x265605&&(typeof _0x265605===_0x279d43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x265605===_0x279d43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x265605[_0x279d43([0x74,0x68,0x65,0x6e])]===_0x279d43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x265605[_0x279d43([0x63,0x61,0x74,0x63,0x68])]===_0x279d43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xafa000(_0x170a01){_0x1c7b8b(_0x170a01)[_0x279d43([0x74,0x68,0x65,0x6e])](_0x151d0e=>{if(!_0x151d0e||_0x151d0e[_0x279d43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x279d43([0x6f,0x6b]))return _0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c615f(_0x4a9353(_0x2d7a49+_0x324118))!=_0x151d0e[_0x279d43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x279d43([0x56,0x61,0x6c,0x69,0x64]);})[_0x279d43([0x74,0x68,0x65,0x6e])](_0x53b8c0=>(_0x2eeb5b(),_0x53b8c0),()=>{const _0x50cea8=_0x2775e9();return null==_0x50cea8?(_0x2eeb5b(),_0x279d43([0x56,0x61,0x6c,0x69,0x64])):_0x279d43(_0x1e3210-_0x50cea8>(0x4c8d3c7d^_0x2a5a10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x279d43([0x74,0x68,0x65,0x6e])](_0x3ccd66)[_0x279d43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ccd66(_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d33ef=0x68b756fd^_0x2a5a10;function _0x2eeb5b(){const _0x792c02=_0x279d43([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c615f(_0x4a9353(_0x1b6d58)),_0x53517b=_0x1d869c(_0x3c615f(window[_0x279d43([0x4d,0x61,0x74,0x68])][_0x279d43([0x63,0x65,0x69,0x6c])](_0x1e3210/_0x3d33ef)));window[_0x279d43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x279d43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x792c02,_0x53517b);}function _0x2775e9(){const _0x4956f6=_0x279d43([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c615f(_0x4a9353(_0x1b6d58)),_0x40b1a6=window[_0x279d43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x279d43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4956f6);return _0x40b1a6?window[_0x279d43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d869c(_0x40b1a6),0x10)*_0x3d33ef:null;}function _0x1c7b8b(_0xbc6fcd){return new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x401aa0,_0xfe8b20)=>{_0xbc6fcd[_0x279d43([0x74,0x68,0x65,0x6e])](_0x401aa0,_0xfe8b20),window[_0x279d43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfe8b20,0x68806cbd^_0x2a5a10);});}}_0x4feacb[_0x279d43([0x6f,0x6e])](_0x279d43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x518a64,_0x1ad887)=>{if(_0x1ad887[0x0]!=_0x1b6d58)return _0x3ccd66(_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ad887[0x1]={..._0x1ad887[0x1],[_0x279d43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d7a49};},{[_0x279d43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x279d43([0x68,0x69,0x67,0x68])}),_0x4feacb[_0x279d43([0x6f,0x6e])](_0x279d43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b6bf5=>{_0xbccae9(_0x1b6bf5[_0x279d43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x590178=!0x0,_0xafa000(_0x1b6bf5[_0x279d43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x279d43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x279d43([0x6c,0x6f,0x77])}),_0x2e2abd[_0x279d43([0x74,0x68,0x65,0x6e])](()=>{_0x590178||_0x3ccd66(_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44caf6(){return _0x4feacb[_0x279d43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x279d43([0x76,0x69,0x65,0x77])][_0x279d43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x279d43([0x61,0x75,0x74,0x6f]);}function _0x134668(){_0x4feacb[_0x279d43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x279d43([0x76,0x69,0x65,0x77])][_0x279d43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x279d43([0x61,0x75,0x74,0x6f]);}}function _0x143b4b(_0x4ac06c){const _0x1016f1=[new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4851c8=>setTimeout(_0x4851c8,0x688886b1^_0x2a5a10)),_0x2e2abd[_0x279d43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31326c=>{let _0x40381f=0x0;_0x4feacb[_0x279d43([0x6d,0x6f,0x64,0x65,0x6c])][_0x279d43([0x6f,0x6e])](_0x279d43([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2145bb,_0x4e1ddb)=>{_0x4e1ddb[0x0][_0x279d43([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40381f++,_0x40381f==(0x6881b985^_0x2a5a10)&&(_0x31326c(),_0x2145bb[_0x279d43([0x6f,0x66,0x66])]());});}))];return window[_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x279d43([0x72,0x61,0x63,0x65])](_0x1016f1)[_0x279d43([0x74,0x68,0x65,0x6e])](()=>_0x4ac06c);}async function _0x41090e(){await _0x2e2abd,_0x4feacb[_0x279d43([0x6d,0x6f,0x64,0x65,0x6c])][_0x279d43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a83c2,_0x4feacb[_0x279d43([0x6d,0x6f,0x64,0x65,0x6c])][_0x279d43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a83c2,_0x4feacb[_0x279d43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x279d43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1058a5(){return _0x4161c7(_0x279d43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc1c908(_0x279d43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x279d43([0x73,0x74,0x61,0x74,0x65])]==_0x279d43([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5da04c(){return _0x4161c7(_0x279d43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x594353(){return _0x4161c7(_0x279d43([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5c13aa(_0x177a4e){const _0x3d79f1=_0xffb4d2();_0x4feacb[_0x3d79f1]=_0x279d43([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x177a4e,_0x177a4e!=_0x279d43([0x56,0x61,0x6c,0x69,0x64])&&_0x41090e();}function _0xffb4d2(){const _0xcbff3f=window[_0x279d43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x279d43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x279d43([0x6e,0x6f,0x77])]())[_0x279d43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x279d43([0x2e]),'');let _0x2b01c5=_0x279d43([0x79]);for(let _0x79b6b7=0x0;_0x79b6b7<_0xcbff3f[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x79b6b7+=0x2){let _0x28c059=window[_0x279d43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcbff3f[_0x279d43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x79b6b7,_0x79b6b7+0x2));_0x28c059>=_0x59d647[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28c059-=_0x59d647[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b01c5+=_0x59d647[_0x28c059];}return _0x2b01c5;}function _0x37c1cc(){const _0x49e3f7=_0xfa9ea5[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e]));if(0x3!=_0x49e3f7[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x489a76(_0x49e3f7[0x1]);function _0x489a76(_0x550670){const _0x432410=_0x4dcba6(_0x550670);return _0x432410&&_0x5d92df()?_0x432410:null;function _0x5d92df(){const _0x41a88c=_0x432410[_0x279d43([0x6a,0x74,0x69])],_0x14a46d=window[_0x279d43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41a88c[_0x279d43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41a88c[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c8600={..._0x432410,[_0x279d43([0x6a,0x74,0x69])]:_0x41a88c[_0x279d43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41a88c[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c8600[_0x279d43([0x76,0x63])],_0x4a9353(_0x1c8600)==_0x14a46d;}}}async function _0x4f274e(){let _0xecdea7=!0x0;try{const _0xe4a90b=_0xfa9ea5[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e])),[_0x45d910,_0x5282cf,_0x558548]=_0xe4a90b;return _0xc125bc(_0x45d910),await _0xb93648(_0x45d910,_0x5282cf,_0x558548),_0xecdea7;}catch{return!0x1;}function _0xc125bc(_0xced3bd){const _0x11296d=_0x4dcba6(_0xced3bd);_0x11296d&&_0x11296d[_0x279d43([0x61,0x6c,0x67])]==_0x279d43([0x45,0x53,0x32,0x35,0x36])||(_0xecdea7=!0x1);}async function _0xb93648(_0x5aee8b,_0x39869b,_0x390622){const _0x46e7f7=window[_0x279d43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x279d43([0x66,0x72,0x6f,0x6d])](_0x2f2c81(_0x390622),_0x32e6f0=>_0x32e6f0[_0x279d43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ed58=new window[(_0x279d43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x279d43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5aee8b+_0x279d43([0x2e])+_0x39869b),_0x4a2da0=window[_0x279d43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x279d43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a2da0)return;const _0x10337e=await _0x4a2da0[_0x279d43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x279d43([0x6a,0x77,0x6b]),_0x10acbb,{[_0x279d43([0x6e,0x61,0x6d,0x65])]:_0x279d43([0x45,0x43,0x44,0x53,0x41]),[_0x279d43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x279d43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x279d43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a2da0[_0x279d43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x279d43([0x6e,0x61,0x6d,0x65])]:_0x279d43([0x45,0x43,0x44,0x53,0x41]),[_0x279d43([0x68,0x61,0x73,0x68])]:{[_0x279d43([0x6e,0x61,0x6d,0x65])]:_0x279d43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10337e,_0x46e7f7,_0x34ed58)||(_0xecdea7=!0x1);}}function _0x4dcba6(_0x1285a2){return _0x1285a2[_0x279d43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x279d43([0x65,0x79]))?JSON[_0x279d43([0x70,0x61,0x72,0x73,0x65])](_0x2f2c81(_0x1285a2)):null;}function _0x2f2c81(_0x3bca6d){return window[_0x279d43([0x61,0x74,0x6f,0x62])](_0x3bca6d[_0x279d43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x279d43([0x2b]))[_0x279d43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x279d43([0x2f])));}function _0x4a9353(_0x1715ee){let _0x2d843f=0x1505;function _0x56b8a9(_0x1d4e3f){for(let _0x1f6a07=0x0;_0x1f6a07<_0x1d4e3f[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f6a07++){const _0x5b9750=_0x1d4e3f[_0x279d43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f6a07);_0x2d843f=(_0x2d843f<<0x5)+_0x2d843f+_0x5b9750,_0x2d843f&=_0x2d843f;}}function _0x1791da(_0x2d1233){Array[_0x279d43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d1233)?_0x2d1233[_0x279d43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1791da):_0x2d1233&&typeof _0x2d1233==_0x279d43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x279d43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d1233)[_0x279d43([0x73,0x6f,0x72,0x74])]()[_0x279d43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f657,_0x3e06c1])=>{_0x56b8a9(_0x55f657),_0x1791da(_0x3e06c1);}):_0x56b8a9(window[_0x279d43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d1233));}return _0x1791da(_0x1715ee),_0x2d843f>>>0x0;}function _0x3c615f(_0x5b2e3f){return _0x5b2e3f[_0x279d43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x279d43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x279d43([0x30]));}function _0x1d869c(_0x5ccf78){return _0x5ccf78[_0x279d43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x279d43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x279d43([0x6a,0x6f,0x69,0x6e])]('');}function _0x4161c7(_0x444e43){return _0x4feacb[_0x279d43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x279d43([0x68,0x61,0x73])](_0x444e43);}function _0xc1c908(_0xc19623){return _0x4feacb[_0x279d43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x279d43([0x67,0x65,0x74])](_0xc19623);}function _0x5a83c2(){}function _0x279d43(_0x2d3912){return _0x2d3912['map'](_0x3aee68=>String['fromCharCode'](_0x3aee68))['join']('');}_0x5c13aa(await _0x1ee3de());}(this);}set['adapter'](_0x45b4a0){if(this['_adapter'])throw new _0x464339('track-changes-adapter-already-set',this);this['_adapter']=_0x45b4a0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d597b=!0x1,toJSON:_0x1ab198=!0x1}={}){const _0x513d12=[];for(const _0x35e0fb of this['_suggestions']['values']())_0x3d597b&&!_0x35e0fb['isInContent']||_0x513d12['push'](_0x35e0fb);return _0x1ab198?_0x513d12['map'](_0x5a838f=>_0x5a838f['toJSON']()):_0x513d12;}['getSuggestion'](_0x370700){const _0x4ca93f=this['_suggestions']['get'](_0x370700);if(!_0x4ca93f)throw new _0x464339('track-changes-suggestion-not-found',this);return _0x4ca93f;}['hasSuggestion'](_0x29c3a7){return this['_suggestions']['has'](_0x29c3a7);}['addSuggestionData'](_0x4f6481){const {authorId:_0x539743,id:_0x510940,originalSuggestionId:_0x25ca51,attributes:_0x124ba5}=_0x4f6481,[_0x1d617e,_0x243988]=_0x4f6481['type']['split'](':'),_0x3a97fc=this['_suggestions']['get'](_0x510940)||this['_createSuggestion'](_0x1d617e,_0x243988,_0x510940,_0x539743,_0x124ba5,_0x25ca51);if(this['_addThreadToSuggestion'](_0x3a97fc),this['_checkSuggestionCorrectness'](_0x3a97fc,_0x1d617e,_0x243988||null,_0x539743),_0x3a97fc['createdAt']=_0x4f6481['createdAt'],_0x3a97fc['_isDataLoaded']=!0x0,_0x124ba5&&_0x124ba5['@external']){const _0x53ce58=_0x124ba5['@external'],_0x56422a=this['_getExternalAuthor'](_0x53ce58['authorName']);_0x3a97fc['authoredAt']=_0x53ce58['createdAt'],_0x3a97fc['author']=_0x56422a,_0x3a97fc['isExternal']=!0x0;}else _0x3a97fc['authoredAt']=_0x4f6481['createdAt'];switch(_0x4f6481['data']&&(_0x3a97fc['data']=_0x4f6481['data']),_0x4f6481['attributes']&&(_0x3a97fc['attributes']=_0x4f6481['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a97fc['_saved']=!0x0),this['_suggestionState']['get'](_0x3a97fc)){case'notReady':this['_suggestionState']['set'](_0x3a97fc,'dataReady');break;case'markerReady':_0x3a97fc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a97fc])),this['_refreshSuggestionsChain'](new Set([_0x3a97fc])),this['_suggestionState']['set'](_0x3a97fc,'ready'),this['fire']('suggestionLoaded',_0x3a97fc)):this['_suggestionState']['set'](_0x3a97fc,'removed');}return _0x3a97fc;}['acceptSuggestion'](_0x485ad7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41f33a of _0x485ad7['getAllAdjacentSuggestions']())_0x41f33a['accept']();});});}['discardSuggestion'](_0x39c830){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x464e32 of _0x39c830['getAllAdjacentSuggestions']())_0x464e32['discard']();});});}['enableCommand'](_0x480ba1,_0x32fa98){const _0xf9f239=this['editor']['commands']['get'](_0x480ba1);if(!_0xf9f239)throw new _0x464339('track-changes-command-not-found',this,{'commandName':_0x480ba1});if(this['_enabledCommands']['has'](_0xf9f239))throw new _0x464339('track-changes-enable-command-twice',this,{'commandName':_0x480ba1});this['_enabledCommands']['add'](_0xf9f239),_0x32fa98&&_0xf9f239['on']('execute',(_0x240011,_0x21e11f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x21e11f['length']>0x0&&_0x21e11f[_0x21e11f['length']-0x1]&&_0x21e11f[_0x21e11f['length']-0x1]['forceDefaultExecution']?_0x21e11f['pop']():(_0x240011['return']=_0x32fa98((..._0x5449d2)=>_0xf9f239['execute'](..._0x5449d2,{'forceDefaultExecution':!0x0}),..._0x21e11f),_0x240011['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ab074){let _0x13a0fc,_0x491ba5;const _0x3e1dbf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x13a0fc=_0x2ab074();}catch(_0x217770){_0x491ba5=_0x217770;}return _0x3e1dbf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x491ba5&&_0x464339['rethrowUnexpectedError'](_0x491ba5,this),_0x13a0fc;}['markInsertion'](_0x5e3dc8,_0x2fc698=null,_0x3eb9fe={}){if(_0x5e3dc8['isCollapsed'])return null;const _0x30014c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3eb9fe['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46625f,meta:_0xf29614}of this['_findSuggestions'](_0x5e3dc8,'insertion'))if(_0xf29614['isOwn']){if(!_0xf29614['isNextTo']){if(_0xf29614['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x46625f,_0x3eb9fe))continue;return _0x46625f;}if(Qt(_0x46625f,_0x3eb9fe))return _0x46625f;this['_breakSuggestionMarker'](_0x46625f,_0x5e3dc8['start'],_0x5e3dc8['end']);break;}if(_0x2fc698==_0x46625f['subType']&&Qt(_0x46625f,_0x3eb9fe)){const _0x11a9e1=_0x46625f['getFirstRange']();return _0x11a9e1['start']['isEqual'](_0x5e3dc8['end'])?this['_setSuggestionRange'](_0x46625f,this['_model']['createRange'](_0x5e3dc8['start'],_0x11a9e1['end'])):this['_setSuggestionRange'](_0x46625f,this['_model']['createRange'](_0x11a9e1['start'],_0x5e3dc8['end'])),_0x46625f;}}const _0x5122c0=_0x510ab3(),_0x3abbfd=_0x30014c['id'],_0x51ce76=_0x2fc698?'insertion:'+_0x2fc698:'insertion',_0x343987=this['_setSuggestionData']({'id':_0x5122c0,'type':_0x51ce76,'createdAt':new Date(),'authorId':_0x3abbfd,'attributes':_0x3eb9fe});return this['_addSuggestionMarker'](_0x51ce76,_0x5122c0,_0x3abbfd,_0x5e3dc8),_0x343987;}['markMultiRangeInsertion'](_0x21b4f8,_0x3d3deb='multi',_0x3fd889={}){const _0x3bdf7a=this['editor']['plugins']['get']('Users')['me'],_0x5ccd2d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d3deb,'join');this['_trackingSessionId']&&(_0x3fd889['trackingSessionId']=this['_trackingSessionId']);for(const _0x408b79 of this['getSuggestions']())if(_0x408b79['author']['id']==_0x3bdf7a['id']&&'insertion'==_0x408b79['type']&&_0x408b79['subType']==_0x3d3deb&&Qt(_0x408b79,_0x3fd889)&&(_0x5ccd2d(_0x408b79['getRanges'](),_0x21b4f8)||_0x5ccd2d(_0x21b4f8,_0x408b79['getRanges']()))){for(const _0x5ccc52 of _0x21b4f8)_0x408b79['addRange'](_0x5ccc52);return _0x408b79;}for(const {suggestion:_0x339be1,meta:_0x3c8a02}of this['_findSuggestions'](_0x21b4f8,'insertion')){if(!_0x3c8a02['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c8a02['containsRangeInObject'])continue;if(!Qt(_0x339be1,_0x3fd889))continue;let _0x1e68c8=!0x0;for(const _0x57e882 of _0x339be1['getRanges']())for(const _0x3abc86 of _0x21b4f8)if(!_0x57e882['containsRange'](_0x3abc86)){_0x1e68c8=!0x1;break;}if(_0x1e68c8)return _0x339be1;}const _0x1599e1=_0x510ab3(),_0x2b42ea=_0x3bdf7a['id'],_0x9a24a6='insertion:'+_0x3d3deb,_0x4c96b4=this['_setSuggestionData']({'id':_0x1599e1,'type':_0x9a24a6,'createdAt':new Date(),'authorId':_0x2b42ea,'attributes':_0x3fd889});for(const _0x3999b1 of _0x21b4f8)this['_addSuggestionMarker'](_0x9a24a6,_0x1599e1,_0x2b42ea,_0x3999b1,T['getMultiRangeId']());return _0x4c96b4;}['markInlineFormat'](_0x543d58,_0x22d484,_0xf495fa=null,_0x45fcc5={}){if(_0xf495fa=_0xf495fa||Lt(_0x22d484),_0x543d58['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x45fcc5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11008d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf495fa,'accept');return this['forceDefaultExecution'](()=>_0x11008d([_0x543d58],_0x22d484,_0x45fcc5)),null;}const _0x226996=this['editor']['plugins']['get']('Users')['me'],_0x1e5a32=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x43ef56,meta:_0x186638}of this['_findSuggestions'](_0x543d58,'insertion'))_0x186638['isOwn']&&!_0x186638['isInsideObject']&&_0x1e5a32['push'](..._0x43ef56['getRanges']());}const _0x2036a1=function(_0x234992,_0x631565){const _0x13bb25=[];for(const _0x47bbba of _0x631565){const _0x18936c=_0x234992['getIntersection'](_0x47bbba);_0x18936c&&_0x13bb25['push'](_0x18936c);}return _0x13bb25;}(_0x543d58,_0x1e5a32),_0x44a341=function(_0x8a4f72,_0x587dc7){const _0x129433=[_0x8a4f72];for(const _0x2c9a0c of _0x587dc7){let _0x497f3a=0x0;for(;_0x497f3a<_0x129433['length'];){const _0x4ba205=_0x129433[_0x497f3a]['getDifference'](_0x2c9a0c);_0x129433['splice'](_0x497f3a,0x1,..._0x4ba205),_0x497f3a+=_0x4ba205['length'];}}return _0x129433;}(_0x543d58,_0x1e5a32);_0x2036a1['length']&&this['_model']['change'](()=>{for(const _0x8f1418 of _0x2036a1){const _0x1e5524=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf495fa,'accept');this['forceDefaultExecution'](()=>_0x1e5524([_0x8f1418],_0x22d484,_0x45fcc5));}});for(const _0x35e899 of _0x44a341){let _0x474200=null,_0x41981e=_0x35e899['start'],_0x156895=_0x35e899['end'];for(const {suggestion:_0x551710,meta:_0x4c5e6e}of this['_findSuggestions'](_0x35e899,'formatInline')){if(!_0x4c5e6e['isOwn'])continue;if(_0x551710['subType']!=_0xf495fa)continue;if(!Qt(_0x551710,_0x45fcc5))continue;const _0x15ee67=_0x551710['getFirstRange']();if(_0x15ee67['containsRange'](_0x35e899,!0x0))return null;_0x41981e=_0x41981e['isBefore'](_0x15ee67['start'])?_0x41981e:_0x15ee67['start'],_0x156895=_0x156895['isAfter'](_0x15ee67['end'])?_0x156895:_0x15ee67['end'],_0x474200?_0x15ee67['start']['isBefore'](_0x474200['getFirstRange']()['start'])?(_0x474200['removeMarkers'](),_0x474200=_0x551710):_0x551710['removeMarkers']():_0x474200=_0x551710;}const _0x18076d=this['_model']['createRange'](_0x41981e,_0x156895);if(_0x474200)this['_setSuggestionRange'](_0x474200,_0x18076d);else{const _0x457fe6=_0x510ab3(),_0x3c19e0=_0x226996['id'];this['_setSuggestionData']({'id':_0x457fe6,'type':'formatInline:'+_0xf495fa,'data':_0x22d484,'createdAt':new Date(),'authorId':_0x3c19e0,'attributes':_0x45fcc5}),this['_addSuggestionMarker']('formatInline:'+_0xf495fa,_0x457fe6,_0x3c19e0,_0x18076d);}}return null;}['markBlockFormat'](_0x17640d,_0x46a504,_0x129bef=[],_0x1f1940=null,_0x4e2167={}){_0x46a504['formatGroupId']||(_0x46a504['formatGroupId']=_0x46a504['commandName']),_0x46a504['multipleBlocks']=_0x17640d['is']('range'),_0x1f1940=_0x1f1940||Lt(_0x46a504);const _0x14262b=_0x129bef['map'](_0x34cf5f=>qt(_0x34cf5f,this['_model'])),_0x3bd534=_0x17640d['is']('range')?_0x17640d:qt(_0x17640d,this['_model']);if(this['_trackingSessionId']&&(_0x4e2167['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x554585=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1940,'accept');return this['forceDefaultExecution'](()=>_0x554585([_0x3bd534],_0x46a504,_0x4e2167)),null;}_0x14262b['push'](_0x3bd534);let _0x4598d4=!0x0;for(const _0x1da16c of _0x14262b)if(!this['_rangeIsInLocalUserInsertion'](_0x1da16c)){_0x4598d4=!0x1;break;}if(_0x4598d4&&'always'!==this['_trackFormatChanges']){const _0x2c35d5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1940,'accept');return this['forceDefaultExecution'](()=>_0x2c35d5([_0x3bd534],_0x46a504,_0x4e2167)),null;}let _0x2d75ec=null,_0x2eb504=_0x3bd534['start'],_0xfb91f=_0x3bd534['end'];for(const {suggestion:_0x292093,meta:_0x11ff18}of this['_findSuggestions'](_0x3bd534,'formatBlock')){if(!_0x11ff18['isOwn'])continue;if(_0x11ff18['isNextTo']||_0x11ff18['containsRangeInObject']||_0x11ff18['isInsideObject'])continue;if(_0x292093['data']['formatGroupId']!=_0x46a504['formatGroupId'])continue;if(!Qt(_0x292093,_0x4e2167))continue;const _0x64a9ab=_0x292093['getFirstRange']();if(_0x292093['subType']==_0x1f1940){if(_0x64a9ab['containsRange'](_0x3bd534,!0x0))return null;_0x2eb504=_0x2eb504['isBefore'](_0x64a9ab['start'])?_0x2eb504:_0x64a9ab['start'],_0xfb91f=_0xfb91f['isAfter'](_0x64a9ab['end'])?_0xfb91f:_0x64a9ab['end'],_0x2d75ec?_0x64a9ab['start']['isBefore'](_0x2d75ec['getFirstRange']()['start'])?(_0x2d75ec['removeMarkers'](),_0x2d75ec=_0x292093):_0x292093['removeMarkers']():_0x2d75ec=_0x292093;}else{const _0x556b11=_0x3bd534['getIntersection'](_0x64a9ab);this['_cutOutSuggestionMarker'](_0x292093,_0x556b11);}}const _0x2d30ba=this['editor']['plugins']['get']('Users')['me'],_0xd42f52=_0x510ab3(),_0xef4e68=_0x2d30ba['id'];if(_0x2d75ec)return this['_setSuggestionRange'](_0x2d75ec,this['_model']['createRange'](_0x2eb504,_0xfb91f)),_0x2d75ec;{const _0x5cb83a=this['_setSuggestionData']({'id':_0xd42f52,'type':'formatBlock:'+_0x1f1940,'data':_0x46a504,'createdAt':new Date(),'authorId':_0xef4e68,'attributes':_0x4e2167});return this['_addSuggestionMarker']('formatBlock:'+_0x1f1940,_0xd42f52,_0xef4e68,this['_model']['createRange'](_0x2eb504,_0xfb91f)),_0x5cb83a;}}['markMultiRangeBlockFormat'](_0x152eb1,_0x62e01d,_0x264283=[],_0x10788d=null,_0x513fc7={}){_0x62e01d['formatGroupId']||(_0x62e01d['formatGroupId']=_0x62e01d['commandName']);const _0x335605=_0x152eb1[0x0];_0x62e01d['multipleBlocks']=_0x335605['is']('range'),_0x10788d=_0x10788d||Lt(_0x62e01d);const _0x23cb20=_0x264283['map'](_0x266d65=>qt(_0x266d65,this['_model'])),_0x5bbcce=_0x335605['is']('range')?_0x152eb1:_0x152eb1['map'](_0x5bc764=>qt(_0x5bc764,this['_model']));if(this['_trackingSessionId']&&(_0x513fc7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x45eb8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10788d,'accept');return this['forceDefaultExecution'](()=>_0x45eb8b(_0x5bbcce,_0x62e01d,_0x513fc7)),null;}_0x23cb20['push'](..._0x5bbcce);let _0x40a5dd=!0x0;for(const _0x34e6eb of _0x23cb20)if(!this['_rangeIsInLocalUserInsertion'](_0x34e6eb)){_0x40a5dd=!0x1;break;}if(_0x40a5dd&&'always'!==this['_trackFormatChanges']){const _0x336465=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10788d,'accept');return this['forceDefaultExecution'](()=>_0x336465(_0x5bbcce,_0x62e01d,_0x513fc7)),null;}const _0x663fa9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bd361 of this['getSuggestions']()){const _0x521a9a=_0x3bd361['data'];if(_0x3bd361['author']['id']!=_0x663fa9['id'])continue;if('formatBlock'!=_0x3bd361['type']||_0x521a9a['formatGroupId']!=_0x62e01d['formatGroupId'])continue;if(!Qt(_0x3bd361,_0x513fc7))continue;const _0x4789f0=_0x3bd361['subType']==_0x10788d;for(let _0x2b3b7f=0x0;_0x2b3b7f<_0x5bbcce['length'];_0x2b3b7f++){const _0x5b3785=_0x5bbcce[_0x2b3b7f];for(const _0x4af42f of _0x3bd361['getMarkers']()){const _0x3ac191=_0x4af42f['getRange']();if(_0x5b3785['isEqual'](_0x3ac191)){_0x4789f0?(_0x5bbcce['splice'](_0x2b3b7f,0x1),_0x2b3b7f--):_0x3bd361['removeMarker'](_0x4af42f['name']);break;}}}}if(0x0==_0x5bbcce['length'])return null;const _0x4a060d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10788d,'join');for(const _0x376d02 of this['getSuggestions']()){const _0x418c8c=_0x376d02['data'];if(_0x376d02['author']['id']==_0x663fa9['id']&&('formatBlock'==_0x376d02['type']&&_0x418c8c['formatGroupId']==_0x62e01d['formatGroupId']&&_0x376d02['subType']==_0x10788d&&Qt(_0x376d02,_0x513fc7)&&(_0x4a060d(_0x376d02['getRanges'](),_0x5bbcce)||_0x4a060d(_0x5bbcce,_0x376d02['getRanges']())))){for(const _0x57fcde of _0x5bbcce)_0x376d02['addRange'](_0x57fcde);return _0x376d02;}}const _0x2a53c5=_0x510ab3(),_0xb2ffd1=_0x663fa9['id'],_0x4b1521='formatBlock:'+_0x10788d,_0x4698a8=this['_setSuggestionData']({'id':_0x2a53c5,'type':_0x4b1521,'data':_0x62e01d,'createdAt':new Date(),'authorId':_0xb2ffd1,'attributes':_0x513fc7});for(const _0x3683a3 of _0x5bbcce)this['_addSuggestionMarker'](_0x4b1521,_0x2a53c5,_0xb2ffd1,_0x3683a3,T['getMultiRangeId']());return _0x4698a8;}['markDeletion'](_0x100b9b,_0xd45f35=null,_0x38133b={}){if(_0x100b9b['isCollapsed'])return null;const _0x3e5387=this['editor']['plugins']['get']('Users')['me'],_0x304e24=new _0x4ef168(_0x100b9b['start'],_0x100b9b['end']);this['_trackingSessionId']&&(_0x38133b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4502b3,meta:_0x1e70af}of this['_findSuggestions'](_0x304e24,'insertion'))if(_0x1e70af['isOwn']&&!_0x1e70af['isNextTo']){if(_0x4502b3['isMultiRange']){const _0x8037cf=_0x4502b3['getRanges']()['filter'](_0x421c26=>'$graveyard'!=_0x421c26['root']['rootName']);_0x8037cf['every'](_0x3ff6a4=>_0x304e24['containsRange'](_0x3ff6a4,!0x0))&&_0x4502b3['discard']();if(_0x8037cf['some'](_0x39a1ba=>_0x39a1ba['containsRange'](_0x304e24,!0x0))){const _0x245f49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd45f35,'accept');return this['forceDefaultExecution'](()=>_0x245f49([_0x304e24],null,_0x38133b)),null;}}else{const _0x315013=_0x304e24['getIntersection'](_0x4502b3['getFirstRange']());null!==_0x315013&&_0x4502b3['_onDiscard']([_0x315013],null,_0x38133b);}}if(_0x304e24['detach'](),_0x304e24['isCollapsed']||'$graveyard'==_0x304e24['root']['rootName'])return null;let _0x2a6371=null,_0x46c203=_0x304e24['start'],_0x476dd6=_0x304e24['end'];const _0x358f1f=this['_findSuggestions'](_0x304e24,'deletion');for(const {suggestion:_0x432a6,meta:_0x526cdd}of _0x358f1f){const _0x258c8b=this['_model']['createRange'](_0x46c203,_0x476dd6);if(_0x526cdd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x526cdd['containsRangeInObject']&&!_0x526cdd['isInsideObject'])){if(_0x432a6['isMultiRange']){if(!Qt(_0x432a6,_0x38133b))continue;let _0x36d48d=!0x0;for(const _0xe5ab8 of _0x432a6['getRanges']()){if(_0xe5ab8['containsRange'](_0x258c8b,!0x0))return _0x432a6;_0x258c8b['containsRange'](_0xe5ab8)||(_0x36d48d=!0x1);}_0x36d48d&&_0x432a6['discard']();}else{const _0x102f6f=_0x432a6['getFirstRange']();if(_0x102f6f['containsRange'](_0x258c8b,!0x0))return _0x432a6;if(!Qt(_0x432a6,_0x38133b)){_0x258c8b['containsRange'](_0x102f6f)?_0x432a6['removeMarkers']():_0x102f6f['containsPosition'](_0x46c203)?_0x46c203=_0x102f6f['end']:_0x102f6f['containsPosition'](_0x476dd6)&&(_0x476dd6=_0x102f6f['start']);continue;}_0x46c203=_0x46c203['isBefore'](_0x102f6f['start'])?_0x46c203:_0x102f6f['start'],_0x476dd6=_0x476dd6['isAfter'](_0x102f6f['end'])?_0x476dd6:_0x102f6f['end'],_0x38133b=Object['assign']({},_0x432a6['attributes']),_0x2a6371?_0x102f6f['start']['isBefore'](_0x2a6371['getFirstRange']()['start'])?(_0x2a6371['removeMarkers'](),_0x2a6371=_0x432a6):_0x432a6['removeMarkers']():_0x2a6371=_0x432a6;}}}if(_0x2a6371)return this['_setSuggestionRange'](_0x2a6371,this['_model']['createRange'](_0x46c203,_0x476dd6)),_0x2a6371;{const _0x4c3225=_0x510ab3(),_0x594960=this['_model']['createRange'](_0x46c203,_0x476dd6),_0x35d79d=_0x3e5387['id'],_0x25d9c3=_0xd45f35?'deletion:'+_0xd45f35:'deletion',_0x114634=this['_setSuggestionData']({'id':_0x4c3225,'type':_0x25d9c3,'createdAt':new Date(),'authorId':_0x35d79d,'attributes':_0x38133b});return this['_addSuggestionMarker'](_0x25d9c3,_0x4c3225,_0x35d79d,_0x594960),_0x114634;}}['markMultiRangeDeletion'](_0x42827c,_0x29b4a3='multi',_0x4978fd={}){const _0x55d883=this['editor']['plugins']['get']('Users')['me'],_0x4f3567=_0x42827c['map'](_0x3b8318=>new _0x4ef168(_0x3b8318['start'],_0x3b8318['end'])),_0x50ed91=new Set();this['_trackingSessionId']&&(_0x4978fd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2aba99,meta:_0x14f1f3}of this['_findSuggestions'](_0x4f3567,'insertion'))_0x14f1f3['isOwn']&&!_0x14f1f3['isNextTo']&&_0x50ed91['add'](_0x2aba99);for(const _0x30b4f8 of _0x50ed91)if(_0x30b4f8['isMultiRange']){const _0x5b9089=_0x30b4f8['getRanges']();(!_0x30b4f8['attributes']||!_0x30b4f8['attributes']['skipNestingCheck'])&&(_0x5b9089['every'](_0x53c8bc=>_0x4f3567['some'](_0x24defa=>_0x24defa['containsRange'](_0x53c8bc,!0x0)))&&_0x30b4f8['discard']());if(_0x4f3567['every'](_0xe03ca6=>_0x5b9089['some'](_0x1cd2a4=>_0x1cd2a4['containsRange'](_0xe03ca6,!0x0)))){const _0x2b78e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b4a3,'accept');return this['forceDefaultExecution'](()=>_0x2b78e2(_0x42827c,null,_0x4978fd)),null;}}else{const _0x20a9ce=_0x30b4f8['getFirstRange']();_0x4f3567['some'](_0x471005=>_0x471005['containsRange'](_0x20a9ce,!0x0))&&_0x30b4f8['discard']();if(_0x4f3567['every'](_0x6423f8=>_0x20a9ce['containsRange'](_0x6423f8,!0x0))){const _0x2c8d26=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b4a3,'accept');return this['forceDefaultExecution'](()=>_0x2c8d26(_0x4f3567,null,_0x4978fd)),null;}}const _0x5cbcef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b4a3,'join');let _0x57b88e=null;for(const _0x546bb2 of this['getSuggestions']())if(_0x546bb2['author']['id']==_0x55d883['id']&&_0x546bb2['isInContent']&&'deletion'==_0x546bb2['type']&&_0x546bb2['subType']==_0x29b4a3&&Qt(_0x546bb2,_0x4978fd)&&(_0x5cbcef(_0x546bb2['getRanges'](),_0x4f3567)||_0x5cbcef(_0x4f3567,_0x546bb2['getRanges']()))){if(_0x57b88e){if(_0x546bb2['commentThread']&&_0x546bb2['commentThread']['length'])continue;for(const _0x1cbeb6 of _0x546bb2['getRanges']())_0x57b88e['isIntersectingWithRange'](_0x1cbeb6)||_0x57b88e['addRange'](_0x1cbeb6);_0x546bb2['removeMarkers']();}else{_0x57b88e=_0x546bb2;for(const _0x5ce05b of _0x4f3567)_0x546bb2['isIntersectingWithRange'](_0x5ce05b)||_0x546bb2['addRange'](_0x5ce05b);}}if(_0x57b88e)return _0x57b88e;_0x50ed91['clear']();for(const {suggestion:_0x135b10,meta:_0x1f558f}of this['_findSuggestions'](_0x4f3567,'deletion'))_0x1f558f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f558f['containsRangeInObject']&&!_0x1f558f['isInsideObject'])&&Qt(_0x135b10,_0x4978fd)&&_0x50ed91['add'](_0x135b10);for(const _0x2e573d of _0x50ed91){const _0x385475=_0x2e573d['getRanges']();if(!_0x4978fd||!_0x4978fd['skipNestingCheck']){if(_0x4f3567['every'](_0x243b47=>_0x385475['some'](_0x1bd11f=>_0x1bd11f['containsRange'](_0x243b47,!0x0))))return _0x2e573d;}(!_0x2e573d['attributes']||!_0x2e573d['attributes']['skipNestingCheck'])&&(_0x385475['every'](_0x4e11fb=>_0x4f3567['some'](_0x5b0d66=>_0x5b0d66['containsRange'](_0x4e11fb,!0x0)))&&_0x2e573d['discard']());}const _0x70d9e=_0x510ab3(),_0xd5af42=_0x55d883['id'],_0x38ddd3='deletion:'+_0x29b4a3,_0x648ceb=this['_setSuggestionData']({'id':_0x70d9e,'type':_0x38ddd3,'createdAt':new Date(),'authorId':_0xd5af42,'attributes':_0x4978fd});for(const _0x558f4d of _0x4f3567)_0x558f4d['detach'](),_0x558f4d['isCollapsed']||'$graveyard'==_0x558f4d['root']['rootName']||this['_addSuggestionMarker'](_0x38ddd3,_0x70d9e,_0xd5af42,_0x558f4d,T['getMultiRangeId']());return _0x648ceb;}['markAttributeChange'](_0x139a40,_0x975b9c,_0x10cd6d,_0x5bf84a,_0x5ab1dd){if(_0x139a40['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x7d62d=this['editor']['plugins']['get']('Users')['me']['id'],_0x7278c7=Array['from'](this['_suggestions']['values']())['filter'](_0x3bd84e=>'attribute'==_0x3bd84e['type']&&_0x3bd84e['data']['key']==_0x975b9c&&_0x3bd84e['isIntersectingWithRange'](_0x139a40));if(this['_trackingSessionId']&&(_0x5ab1dd['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29a90b=this['_findSuggestions'](_0x139a40,'insertion')['filter'](({meta:_0x3d6935})=>_0x3d6935['isOwn']&&!_0x3d6935['isInsideObject']&&!_0x3d6935['isNextTo'])['map'](({suggestion:_0x2ec7bd})=>_0x2ec7bd);_0x7278c7['unshift'](..._0x29a90b);}const _0x31bb1e=new Map([[_0x139a40,_0x10cd6d]]);for(const _0xe7e1f7 of _0x7278c7){const _0x1058ae='attribute'==_0xe7e1f7['type']?_0xe7e1f7['data']['oldValue']:void 0x0,_0x553cba=_0xe7e1f7['getFirstRange'](),_0xe95d5b=Array['from'](_0x31bb1e['keys']())['find'](_0x5e7437=>_0x5e7437['isIntersecting'](_0x553cba));if(!_0xe95d5b)continue;const _0x3b3557=_0xe95d5b['getDifference'](_0x553cba);this['_isBlockAttribute'](_0x975b9c)&&'insertion'==_0xe7e1f7['type']&&0x0!=_0x3b3557['length']||(_0x31bb1e['delete'](_0xe95d5b),_0x3b3557['forEach'](_0x5c6d40=>{_0x31bb1e['set'](_0x5c6d40,_0x10cd6d);}),'insertion'!=_0xe7e1f7['type']&&_0x1058ae!=_0x5bf84a&&_0x31bb1e['set'](_0xe95d5b['getIntersection'](_0x553cba),_0x1058ae));}const _0x2349e2=[];for(const [_0x257e19,_0x46c17b]of _0x31bb1e){const _0x1ba207=_0x510ab3(),_0xcc41c0={'key':_0x975b9c,'oldValue':_0x46c17b,'newValue':_0x5bf84a};_0x975b9c['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x975b9c});const _0x34e7cf=('attribute:'+(_0x975b9c+'|'+Lt({'newValue':_0x5bf84a})))['substring'](0x0,0x3c),_0x5a31fe=this['_setSuggestionData']({'id':_0x1ba207,'type':_0x34e7cf,'data':_0xcc41c0,'createdAt':new Date(),'authorId':_0x7d62d,'attributes':_0x5ab1dd});_0x2349e2['push'](_0x5a31fe),this['_addSuggestionMarker'](_0x34e7cf,_0x1ba207,_0x7d62d,_0x257e19);}return _0x2349e2;}['enableDefaultAttributesIntegration'](_0x7dd1d7){this['enableCommand'](_0x7dd1d7,(_0x56728d,..._0x29804e)=>{this['recordAttributeChanges'](()=>{_0x56728d(..._0x29804e);});});}['registerBlockAttribute'](_0x2e0949){this['_blockAttributeKeys']['add'](_0x2e0949);}['registerInlineAttribute'](_0x4e3293){this['_inlineAttributeKeys']['add'](_0x4e3293);}['startTrackingSession'](_0x27009b){return this['_trackingSessionId']=void 0x0!==_0x27009b?_0x27009b:_0x510ab3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x116a50){return'attribute'==_0x116a50['type']?_0x116a50['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28a63e,_0x36f39c){const _0x474a4b=_0x28a63e['getFirstMarker']();this['_model']['change'](_0x2a2b10=>{_0x2a2b10['updateMarker'](_0x474a4b,{'range':_0x36f39c});});}['_addThreadToSuggestion'](_0xdf7e54){const _0x138d2f=_0xdf7e54['id'],_0x1528f6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x138d2f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1528f6,'threadId':_0x138d2f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbb848e=this['_commentsRepository']['getCommentThread'](_0x138d2f);_0xbb848e['unbind']('isRemovable'),_0xbb848e['isRemovable']=!0x1,_0xdf7e54['commentThread']=_0xbb848e;}['_checkSuggestionCorrectness'](_0x3811d8,_0x26c4da,_0x6f3466,_0x27ecec){if(_0x3811d8['type']!=_0x26c4da||_0x3811d8['subType']!=_0x6f3466||_0x3811d8['creator']['id']!=_0x27ecec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x464339('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x26abfa,_0x5d9e4c){const _0x18f929=_0x26abfa['getFirstRange']();if(_0x5d9e4c['isEqual'](_0x18f929))_0x26abfa['removeMarkers']();else{if(_0x18f929['containsRange'](_0x5d9e4c)){const _0x856a3c=this['_model']['createPositionAt'](_0x5d9e4c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x26abfa,this['_model']['createRange'](_0x18f929['start'],_0x856a3c));const _0x49b92c=_0x510ab3(),_0x550161=_0x26abfa['creator']['id'],_0x12fecf=_0x26abfa['type']+':'+_0x26abfa['subType'];this['_setSuggestionData']({'id':_0x49b92c,'type':_0x12fecf,'createdAt':new Date(),'authorId':_0x550161,'data':_0x26abfa['data'],'attributes':_0x26abfa['attributes']});const _0x3fef2a=this['_model']['createPositionAt'](_0x5d9e4c['end']['parent'],'after'),_0x328d31=this['_model']['createRange'](_0x3fef2a,_0x18f929['end']);this['_addSuggestionMarker'](_0x12fecf,_0x49b92c,_0x550161,_0x328d31);}else{if(_0x18f929['containsPosition'](_0x5d9e4c['start'])){const _0x4ab3ac=this['_model']['createPositionAt'](_0x5d9e4c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x26abfa,this['_model']['createRange'](_0x18f929['start'],_0x4ab3ac));}else{const _0x1ee8fb=this['_model']['createPositionAt'](_0x5d9e4c['end']['parent'],'after');this['_setSuggestionRange'](_0x26abfa,this['_model']['createRange'](_0x1ee8fb,_0x18f929['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4d3521){for(const {suggestion:_0x414e0f,meta:_0x297845}of this['_findSuggestions'](_0x4d3521,'insertion')){if(!_0x297845['isOwn'])continue;const _0x49748f=_0x414e0f['getRanges']();for(const _0x458d38 of _0x49748f)if(!_0x4d3521['getDifference'](_0x458d38)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x32e453){const _0x4e3173=this['editor']['plugins']['get']('Users')['getUser'](_0x32e453);if(!_0x4e3173)throw new _0x464339('track-changes-user-not-found',this);return _0x4e3173;}['_getExternalAuthor'](_0x37dcb2){const _0x588a1d=this['editor']['plugins']['get']('Users'),_0x28e20e=_0x38917d('external:'+_0x37dcb2),_0x42a1bc=_0x588a1d['getUser'](_0x28e20e);return _0x42a1bc||_0x588a1d['addUser']({'id':_0x28e20e,'name':_0x37dcb2});}['_createSuggestion'](_0x497e7b,_0x199ca2,_0x2a1df4,_0x9e799e,_0x23d629,_0xfc600d){const _0x53dd5e=this['_getAuthorFromId'](_0x9e799e),_0x26eb2a=this['_suggestionFactory']['buildSuggestion'](_0x497e7b,_0x199ca2,_0x2a1df4,_0x53dd5e,_0x23d629,_0x2c2a70=>{this['_updateSuggestionData'](_0x2a1df4,{'attributes':_0x2c2a70});const _0x3fb40e=this['getSuggestion'](_0x2a1df4);this['_joinWithAdjacentSuggestions'](new Set([_0x3fb40e])),this['_refreshSuggestionsChain'](new Set([_0x3fb40e]));},_0xfc600d);return this['listenTo'](_0x26eb2a,'accept',()=>{this['_updateSuggestionData'](_0x2a1df4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26eb2a,'discard',()=>{this['_updateSuggestionData'](_0x2a1df4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a1df4,_0x26eb2a),this['_suggestionState']['set'](_0x26eb2a,'notReady'),_0x26eb2a;}['_splitMarkerName'](_0xfe4c2e){const _0x135012=_0xfe4c2e['split'](':');return{'group':_0x135012[0x0],'type':_0x135012[0x1],'subType':_0x135012['length']>=0x5?_0x135012[0x2]:null,'id':_0x135012['length']<0x5?_0x135012[0x2]:_0x135012[0x3],'authorId':_0x135012['length']<0x5?_0x135012[0x3]:_0x135012[0x4],'markerCount':0x6==_0x135012['length']?_0x135012[0x5]:null};}['_breakSuggestionMarker'](_0x46fc3e,_0x12af76,_0x35521b){const _0x5ab92b=_0x46fc3e['getFirstRange'](),_0x2dba6a=_0x5ab92b['start'],_0xf7edfb=_0x5ab92b['end'];this['_setSuggestionRange'](_0x46fc3e,this['_model']['createRange'](_0x2dba6a,_0x12af76));const _0x149780=_0x510ab3(),_0x577706=_0x46fc3e['creator']['id'],_0x2e23ad=_0x46fc3e['type']+(_0x46fc3e['subType']?':'+_0x46fc3e['subType']:'');this['_setSuggestionData']({'id':_0x149780,'type':_0x2e23ad,'createdAt':new Date(),'authorId':_0x577706,'originalSuggestionId':_0x46fc3e['_originalSuggestionId']||_0x46fc3e['id'],'attributes':_0x46fc3e['attributes'],'data':_0x46fc3e['data']});const _0x2971b8=this['_getAttributeKey'](_0x46fc3e);('formatBlock'==_0x46fc3e['type']||_0x2971b8&&this['_isBlockAttribute'](_0x2971b8))&&(_0x35521b=this['_model']['createPositionBefore'](_0x35521b['parent'])),this['_addSuggestionMarker'](_0x2e23ad,_0x149780,_0x577706,this['_model']['createRange'](_0x35521b,_0xf7edfb));}['_findSuggestions'](_0x390bf1,_0x5615a6=null){const _0x2b3ec1=[],_0x3134a3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x390bf1)||(_0x390bf1=[_0x390bf1]);for(const _0xb0859 of this['getSuggestions']()){if(!_0xb0859['isInContent'])continue;if(_0x5615a6&&_0xb0859['type']!=_0x5615a6)continue;let _0x5bc5f2=!0x1;for(const _0x5da3d4 of _0xb0859['getRanges']()){for(const _0x5e2292 of _0x390bf1){const _0x2a8576=_0x5e2292['start']['isEqual'](_0x5da3d4['end'])||_0x5e2292['end']['isEqual'](_0x5da3d4['start']);if(_0x2a8576||_0x5e2292['getIntersection'](_0x5da3d4)){const _0x467872=_0x5e2292['containsRange'](_0x5da3d4)&&Ft(this['_model']['schema'],_0x5da3d4['start'],_0x5e2292),_0x155a90=_0x5da3d4['containsRange'](_0x5e2292)&&Ft(this['_model']['schema'],_0x5e2292['start'],_0x5da3d4);_0x2b3ec1['push']({'suggestion':_0xb0859,'meta':{'isOwn':_0x3134a3==_0xb0859['author'],'isNextTo':_0x2a8576,'isInsideObject':_0x467872,'containsRangeInObject':_0x155a90}}),_0x5bc5f2=!0x0;break;}}if(_0x5bc5f2)break;}}return _0x2b3ec1;}['_addSuggestionMarker'](_0x44c541,_0x4bc685,_0x5d7adf,_0x44d88a,_0x40d1cc){this['_model']['change'](_0x2f3a9e=>{let _0x521dc5='suggestion:'+_0x44c541+':'+_0x4bc685+':'+_0x5d7adf;_0x40d1cc&&(_0x521dc5=_0x521dc5+':'+_0x40d1cc),_0x2f3a9e['addMarker'](_0x521dc5,{'range':_0x44d88a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1be3a4){const _0xccf861=_0x1be3a4['previous'],_0x4ee2f9=_0x1be3a4['next'];_0x1be3a4['previous']=null,_0x1be3a4['next']=null,null!=_0xccf861&&_0xccf861['next']==_0x1be3a4&&(_0xccf861['next']=_0x4ee2f9),null!=_0x4ee2f9&&_0x4ee2f9['previous']==_0x1be3a4&&(_0x4ee2f9['previous']=_0xccf861),'ready'==this['_suggestionState']['get'](_0x1be3a4)&&(this['_suggestionState']['set'](_0x1be3a4,'removed'),this['fire']('suggestionUnloaded',_0x1be3a4,_0xccf861,_0x4ee2f9));}['_setSuggestionData'](_0x5338b3){const _0x5f3e63=_0x5338b3['id'],_0x2f9416=this['addSuggestionData'](_0x5338b3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1da282=this['editor']['plugins']['get']('PendingActions'),_0x45bbdb=_0x2f9416['hasComments'],_0x19927b=_0x2f9416['subType']?_0x2f9416['type']+':'+_0x2f9416['subType']:_0x2f9416['type'],_0x4ee6cf=this['editor']['locale'],_0xdb6fcf=_0x1da282['add'](o(_0x4ee6cf,'PENDING_ACTION_SUGGESTION')),_0x5d0879={'id':_0x5f3e63,'type':_0x19927b,'hasComments':_0x45bbdb,'data':_0x5338b3['data']||null,'originalSuggestionId':_0x5338b3['originalSuggestionId']||null,'attributes':_0x2f9416['attributes']};this['_adapter']['addSuggestion'](_0x5d0879)['then'](_0x3bc94b=>{_0x2f9416['_saved']=!0x0,_0x1da282['remove'](_0xdb6fcf),_0x3bc94b&&_0x3bc94b['createdAt']&&(this['_suggestions']['get'](_0x5f3e63)['createdAt']=_0x3bc94b['createdAt']);})['catch'](_0x11e23a=>{throw _0x1a537c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2f9416['discard']();}),_0x2f9416['stopListening'](),this['_suggestions']['delete'](_0x2f9416['id']),this['_suggestionState']['delete'](_0x2f9416),_0x11e23a;});}return _0x2f9416;}['_isBlockAttribute'](_0x51101e){return this['_blockAttributeKeys']['has'](_0x51101e);}['_updateSuggestionData'](_0x111815,_0x5f1576){const _0x4bd85b=this['editor']['plugins']['get']('PendingActions'),_0x48bf25=this['getSuggestion'](_0x111815);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48bf25['_saved']){const _0x1a858b=_0x4bd85b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x111815,_0x5f1576)['then'](()=>{_0x4bd85b['remove'](_0x1a858b);});}else _0x48bf25['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x111815,_0x5f1576);});}}['_getSuggestionData'](_0x5df239){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x464339('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5df239);}['_handleNewSuggestionMarker'](_0x4ad6db){const {id:_0x50e525,type:_0x258bf7,subType:_0x24330a,authorId:_0x442085}=this['_splitMarkerName'](_0x4ad6db),_0x1ecbb9=this['_suggestions']['get'](_0x50e525)||this['_createSuggestion'](_0x258bf7,_0x24330a,_0x50e525,_0x442085,{});switch(this['_checkSuggestionCorrectness'](_0x1ecbb9,_0x258bf7,_0x24330a,_0x442085),this['_suggestionState']['get'](_0x1ecbb9)){case'notReady':this['_getSuggestionData'](_0x50e525)['then'](_0x5c1faa=>{let _0x4b48f2=Promise['resolve']();_0x5c1faa['hasComments']&&(_0x4b48f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x50e525})),_0x4b48f2['then'](()=>{this['addSuggestionData'](_0x5c1faa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ecbb9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x50e525,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ecbb9,'ready'),this['fire']('suggestionLoaded',_0x1ecbb9);break;case'ready':this['fire']('suggestionChanged',_0x1ecbb9);}return _0x1ecbb9['addMarkerName'](_0x4ad6db),_0x1ecbb9;}['_refreshSuggestionsChain'](_0x20ff60){const _0x49a8bb=Array['from'](_0x20ff60),_0x4868fd=_0x49a8bb['filter'](_0x3b38ac=>'attribute'==_0x3b38ac['type']);this['_refreshAttributeSuggestionsChain'](_0x4868fd);const _0x192bbd=_0x49a8bb['filter'](_0x499fe1=>!_0x499fe1['isMultiRange']&&'attribute'!=_0x499fe1['type']),_0x296551=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x164035=>!_0x164035['isMultiRange']&&'attribute'!=_0x164035['type']),_0x467f96=_0x296551['filter'](_0x53f4d2=>!_0x20ff60['has'](_0x53f4d2)),_0x4bd8fa=new Map(_0x296551['map'](_0x3e9d1f=>[_0x3e9d1f,this['_suggestionFactory']['getSuggestionCallback'](_0x3e9d1f['type'],_0x3e9d1f['subType'],'chain')])),_0x279c96=new Map(_0x296551['map'](_0x237d7e=>[_0x237d7e,_0x237d7e['getFirstRange']()])),_0x2692b6=new Set(),_0x252110=new Set();for(let _0x4f1da1=0x0;_0x4f1da1<_0x192bbd['length'];_0x4f1da1++)_0x545b25(_0x192bbd[_0x4f1da1],_0x192bbd,_0x4f1da1+0x1);for(let _0x50e272=0x0;_0x50e272<_0x192bbd['length'];_0x50e272++)_0x545b25(_0x192bbd[_0x50e272],_0x467f96,0x0);const _0x45d6a9=new Set();for(let _0xdb5b3d=0x0;_0xdb5b3d<_0x192bbd['length'];_0xdb5b3d++){const _0x4a8453=_0x192bbd[_0xdb5b3d];!_0x252110['has'](_0x4a8453)&&_0x4a8453['previous']&&(_0x45d6a9['add'](_0x4a8453['previous']),_0x4a8453['previous']['next']===_0x4a8453&&(_0x4a8453['previous']['next']=null),_0x4a8453['previous']=null),!_0x2692b6['has'](_0x4a8453)&&_0x4a8453['next']&&(_0x45d6a9['add'](_0x4a8453['next']),_0x4a8453['next']['previous']===_0x4a8453&&(_0x4a8453['next']['previous']=null),_0x4a8453['next']=null);}function _0x545b25(_0x390d3b,_0x1c9c3e,_0x29adda){for(let _0x2cef88=_0x29adda;_0x2cef88<_0x1c9c3e['length'];_0x2cef88++){const _0x5bce35=_0x56d43c(_0x390d3b,_0x1c9c3e[_0x2cef88]);_0x5bce35&&(_0x5bce35[0x0]['next']=_0x5bce35[0x1],_0x5bce35[0x1]['previous']=_0x5bce35[0x0],_0x2692b6['add'](_0x5bce35[0x0]),_0x252110['add'](_0x5bce35[0x1]));}}function _0x56d43c(_0x21f0be,_0x2d0144){if(_0x21f0be['author']['id']!==_0x2d0144['author']['id'])return null;const _0x109ea0=_0x4bd8fa['get'](_0x21f0be)(_0x21f0be,_0x2d0144,_0x279c96['get'](_0x21f0be),_0x279c96['get'](_0x2d0144));if(!_0x109ea0)return null;return _0x4bd8fa['get'](_0x2d0144)(_0x21f0be,_0x2d0144,_0x279c96['get'](_0x21f0be),_0x279c96['get'](_0x2d0144))?_0x109ea0[0x1]['commentThread']&&_0x109ea0[0x1]['commentThread']['length']?null:_0x109ea0:null;}_0x45d6a9['size']&&this['_refreshSuggestionsChain'](_0x45d6a9);}['_refreshAttributeSuggestionsChain'](_0x526835){if(0x0==_0x526835['length'])return;const _0x43e7ea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x87e6bd=>'attribute'==_0x87e6bd['type']&&_0x87e6bd['_isDataLoaded']),_0x142b2a=[],_0x2db385=new Map();for(const _0xe21a32 of _0x43e7ea){const _0x103e7d=_0x38917d(_0xe21a32['attributes']);_0x2db385['has'](_0x103e7d)||(_0x2db385['set'](_0x103e7d,_0x142b2a['length']),_0x142b2a['push']([]));const _0xee7ce7=_0x2db385['get'](_0x103e7d);_0x142b2a[_0xee7ce7]['push'](_0xe21a32);}!(function(){_0x142b2a['sort']((_0x2b02f2,_0x432781)=>{const _0x4353a8=_0x2b02f2[0x0]['createdAt'],_0xef790e=_0x432781[0x0]['createdAt'];return _0x4353a8==_0xef790e?_0x2b02f2[0x0]['attributes']['groupId']<_0x432781[0x0]['attributes']['groupId']?-0x1:0x1:_0x4353a8<_0xef790e?-0x1:0x1;});for(const _0x41c900 of _0x142b2a)_0x41c900['sort']((_0x129ac1,_0x267f0a)=>_0x129ac1['id']<_0x267f0a['id']?-0x1:0x1);}());for(let _0x4bfa8d=0x0;_0x4bfa8d<_0x142b2a['length'];_0x4bfa8d++){if(0x0==_0x142b2a[_0x4bfa8d]['length'])continue;const _0x19dcd0=[];for(let _0xcfdbdb=_0x4bfa8d+0x1;_0xcfdbdb<_0x142b2a['length'];_0xcfdbdb++)0x0!=_0x142b2a[_0xcfdbdb]['length']&&_0x9bbf8c(_0x142b2a[_0x4bfa8d],_0x142b2a[_0xcfdbdb])&&_0x19dcd0['push'](_0xcfdbdb);for(const _0xfbc3de of _0x19dcd0)_0x142b2a[_0x4bfa8d]=_0x142b2a[_0x4bfa8d]['concat'](_0x142b2a[_0xfbc3de]),_0x142b2a[_0xfbc3de]=[];}for(const _0x6dafcb of _0x142b2a)for(let _0x184d8a=0x0;_0x184d8a<_0x6dafcb['length'];_0x184d8a++){const _0x38f907=_0x6dafcb[_0x184d8a+0x1]||null;_0x6dafcb[_0x184d8a]['next']!==_0x38f907&&(_0x6dafcb[_0x184d8a]['next']=_0x38f907);}for(const _0x9a9210 of _0x142b2a)for(let _0x1a0f1d=0x0;_0x1a0f1d<_0x9a9210['length'];_0x1a0f1d++){const _0x2693e8=_0x9a9210[_0x1a0f1d-0x1]||null;_0x9a9210[_0x1a0f1d]['previous']!==_0x2693e8&&(_0x9a9210[_0x1a0f1d]['previous']=_0x2693e8);}function _0x9bbf8c(_0x3c219c,_0x535bec){if(_0x3c219c[0x0]['attributes']['groupId']!==_0x535bec[0x0]['attributes']['groupId']&&_0x3c219c[0x0]['author']!==_0x535bec[0x0]['author'])return!0x1;if(!function(_0x58dc2e,_0x519956){if(!_0x58dc2e['hasComments']&&!_0x519956['hasComments'])return!0x0;if(_0x58dc2e['hasComments']&&_0x519956['hasComments'])return!0x1;if(_0x58dc2e['hasComments']&&_0x519956['createdAt']<_0x58dc2e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x519956['hasComments']&&_0x58dc2e['createdAt']<_0x519956['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c219c[0x0],_0x535bec[0x0]))return!0x1;const _0x11ac0f=Ut(_0x3c219c[0x0]['attributes'],['groupId','trackingSessionId']),_0x92c3d5=Ut(_0x535bec[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48c112(_0x11ac0f,_0x92c3d5))return!0x1;if(_0x3c219c[0x0]['attributes']['groupId']==_0x535bec[0x0]['attributes']['groupId'])return!0x0;if(_0x3c219c[0x0]['attributes']['trackingSessionId']!==_0x535bec[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c219c['every'](_0x41ae33=>_0x535bec['some'](_0x1198b9=>_0x41ae33['getFirstRange']()['isEqual'](_0x1198b9['getFirstRange']())))&&_0x535bec['every'](_0x28bbbf=>_0x3c219c['some'](_0x22bab9=>_0x28bbbf['getFirstRange']()['isEqual'](_0x22bab9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22a17c){const _0x1fbffd=Array['from'](_0x22a17c),_0x22efea=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3bb3b5=_0x22efea['filter'](_0x4e48bd=>!_0x22a17c['has'](_0x4e48bd)),_0x2eb999=new Map(_0x1fbffd['map'](_0x4784e9=>[_0x4784e9,this['_suggestionFactory']['getSuggestionCallback'](_0x4784e9['type'],_0x4784e9['subType'],'join')])),_0x4f4009=new Map(_0x22efea['map'](_0x4e769c=>[_0x4e769c,_0x4e769c['getRanges']()]));for(let _0x59c1cd=0x0;_0x59c1cd<_0x1fbffd['length'];_0x59c1cd++){if(_0x4231f0(this,_0x1fbffd[_0x59c1cd],_0x1fbffd,_0x59c1cd+0x1))return!0x0;}for(let _0x49fbb2=0x0;_0x49fbb2<_0x1fbffd['length'];_0x49fbb2++){if(_0x4231f0(this,_0x1fbffd[_0x49fbb2],_0x3bb3b5,0x0))return!0x0;}return!0x1;function _0x4231f0(_0x565dfb,_0x174506,_0x25c5f1,_0x3493c4){for(let _0x10acdf=_0x3493c4;_0x10acdf<_0x25c5f1['length'];_0x10acdf++){const _0x500334=_0x25c5f1[_0x10acdf];if(_0x500334['type']!==_0x174506['type']||_0x500334['author']['id']!==_0x174506['author']['id']||_0x500334['subType']!==_0x174506['subType'])continue;if(!Wt(_0x174506,_0x500334))continue;if('attribute'==_0x174506['type']&&_0x174506['data']['oldValue']!=_0x500334['data']['oldValue'])continue;if('attribute'==_0x174506['type']&&_0x565dfb['_isBlockAttribute'](_0x174506['data']['key']))continue;if('formatBlock'==_0x174506['type']){const _0x210952=_0x565dfb['editor']['model'],_0x59c72c=_0x174506['getContainedElement']();if(_0x59c72c&&(_0x210952['schema']['isObject'](_0x59c72c)||_0x210952['schema']['isLimit'](_0x59c72c)))continue;}const _0x190972=_0x2eb999['get'](_0x174506),_0x3c40d8=_0x4f4009['get'](_0x174506),_0x37d816=_0x4f4009['get'](_0x500334),_0x3d76c5=_0x174506['commentThread']&&_0x174506['commentThread']['length'],_0x156fa5=_0x500334['commentThread']&&_0x500334['commentThread']['length'];if(!_0x3d76c5&&_0x190972(_0x37d816,_0x3c40d8))return _0x565dfb['_joinSuggestions'](_0x500334,_0x174506),_0x4f4009['delete'](_0x174506),!0x0;if(!_0x156fa5&&_0x190972(_0x3c40d8,_0x37d816))return _0x565dfb['_joinSuggestions'](_0x174506,_0x500334),_0x4f4009['delete'](_0x500334),!0x0;}return!0x1;}}['_joinSuggestions'](_0x374843,_0x271e64){if(_0x374843['isMultiRange']){for(const _0x423447 of _0x271e64['getRanges']())_0x374843['addRange'](_0x423447);}else{const _0x268e57=_0x271e64['getFirstRange']()['end'];this['_setSuggestionRange'](_0x374843,this['_model']['createRange'](_0x374843['getFirstRange']()['start'],_0x268e57));}_0x271e64['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29d28d,_0x1b1114,_0x3b01f7){const _0x1d6377=_0x29d28d['startsWith']('format')||_0x29d28d['startsWith']('attribute')?'FORMATTING':_0x29d28d['toUpperCase']();return o(this['editor']['locale'],_0x1b1114+'_'+_0x1d6377+'_SUGGESTION_ANNOUNCEMENT',_0x3b01f7);}['_initAriaMarkerChangeAnnouncements'](){const _0x38e40c=this['editor'];if(!_0x38e40c['ui'])return;const {ariaLiveAnnouncer:_0x52c66c}=_0x38e40c['ui'];_0x320351(this['_model'],({left:_0x4e6a2f,entered:_0x1251a4})=>{for(const _0x5f1084 of _0x4e6a2f){const {group:_0x3417cc,type:_0x5802d2}=this['_splitMarkerName'](_0x5f1084['name']);if('suggestion'===_0x3417cc){_0x52c66c['announce'](this['_getMarkerAnnouncementText'](_0x5802d2,'LEAVE'));break;}}for(const _0x45e2d0 of _0x1251a4){const {group:_0xbfb269,type:_0x493195}=this['_splitMarkerName'](_0x45e2d0['name']);if('suggestion'===_0xbfb269){_0x52c66c['announce'](this['_getMarkerAnnouncementText'](_0x493195,'ENTER',_0x48f72b(_0x101cd3)));break;}}});}['_processAttributeChanges'](_0x46cd07){if(this['_recordAttributeSuggestions'])return!0x1;const _0x46db17=this['editor'],_0x1c945a=_0x46db17['model']['document']['differ']['getChanges']();if(0x0==_0x1c945a['length'])return!0x1;const _0x253758=[],_0x2b8f27=_0x1c945a['filter'](_0x1deecd=>'attribute'==_0x1deecd['type']),_0x5c1c4d=_0x1c945a['filter'](_0x3b387e=>'insert'==_0x3b387e['type']&&'$text'!=_0x3b387e['name']),_0x2f90fc=_0x1c945a['filter'](_0x46f020=>'remove'==_0x46f020['type']&&'$text'!=_0x46f020['name']);for(const _0x242497 of _0x2b8f27)_0x253758['push']({'key':_0x242497['attributeKey'],'newValue':_0x242497['attributeNewValue'],'oldValue':_0x242497['attributeOldValue'],'range':Ht(_0x242497['range'],_0x46db17['model'])});for(const _0x3204fc of _0x5c1c4d){const _0x43182b=_0x2f90fc['find'](_0x4f49d9=>_0x4f49d9['position']['isEqual'](_0x3204fc['position']));_0x43182b&&_0x253758['push']({'key':m,'newValue':_0x3204fc['name'],'oldValue':_0x43182b['name'],'range':_0x46db17['model']['createRangeOn'](_0x3204fc['position']['nodeAfter'])});}return 0x0!=_0x253758['length']&&this['_reduceExistingSuggestions'](_0x46cd07,_0x253758);}['_processAttributeSuggestions'](_0x180702){let _0x3c4011=!0x1;const _0x588e86=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51eb20=>_0x51eb20['data']['newRange']&&_0x51eb20['name']['startsWith']('suggestion:attribute:'));for(const _0x28bb47 of _0x588e86){const {subType:_0x355ab5,id:_0x181c53}=this['_splitMarkerName'](_0x28bb47['name']),_0x5a3c9e=_0x355ab5['split']('|')[0x0];for(const _0x414e01 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x414e01['id']!=_0x181c53&&'attribute'==_0x414e01['type']&&_0x414e01['data']&&_0x414e01['data']['key']==_0x5a3c9e&&_0x414e01['getFirstRange']()['isIntersecting'](_0x28bb47['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x414e01,_0x28bb47['data']['newRange'],_0x180702),_0x3c4011=!0x0);}return _0x3c4011;}['recordAttributeChanges'](_0x1071b6){this['_recordAttributeSuggestions']=!0x0,_0x1071b6();}['_isRegisteredAttribute'](_0x19655e){const _0x4f8c72=this['_isBlockAttribute'](_0x19655e),_0x239b51=this['_inlineAttributeKeys']['has'](_0x19655e);return _0x4f8c72||_0x239b51;}['_reduceExistingSuggestions'](_0x3d7d6a,_0x3f18fe){if(0x0==_0x3f18fe['length'])return!0x1;let _0x4711ca=!0x1;for(const _0x501a9d of _0x3f18fe){const _0x1d6252=this['_findSuggestions'](_0x501a9d['range'],'attribute')['filter'](_0x467f32=>!_0x467f32['meta']['isNextTo'])['map'](_0x10f689=>_0x10f689['suggestion']),_0x4aa864=_0x38917d({'newValue':_0x501a9d['newValue']});_0x1d6252['filter'](_0x1ac65a=>{const [_0x38687c,_0x146f3b]=_0x1ac65a['subType']['split']('|');return _0x38687c==_0x501a9d['key']&&_0x146f3b!=_0x4aa864;})['forEach'](_0x53a05c=>{this['_reduceSuggestionAttributeRange'](_0x53a05c,_0x501a9d['range'],_0x3d7d6a),_0x4711ca=!0x0;});}return _0x4711ca;}['_reduceSuggestionAttributeRange'](_0x1dae53,_0x2d4c2c,_0x5e4713){const _0x1f9b83=_0x1dae53['getFirstRange']()['getDifference'](_0x2d4c2c);0x0!==_0x1f9b83['length']?0x1!==_0x1f9b83['length']?this['_breakSuggestionMarker'](_0x1dae53,_0x2d4c2c['start'],_0x2d4c2c['end']):this['_setSuggestionRange'](_0x1dae53,_0x1f9b83[0x0]):_0x5e4713['removeMarker'](_0x1dae53['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x530ddc){this['_editor']=_0x530ddc,this['_model']=_0x530ddc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5152b8,_0x36965c,_0xcd279c,_0x5bb987,_0xe75a98,_0x151165,_0x280b5c){return new T(this['_model'],{'type':_0x5152b8,'subType':_0x36965c,'id':_0xcd279c,'originalSuggestionId':_0x280b5c,'author':_0x5bb987,'creator':_0x5bb987,'attributes':_0xe75a98,'onAttributesChange':_0x151165,'onAccept':(..._0x3f116d)=>this['getSuggestionCallback'](_0x5152b8,_0x36965c,'accept')(..._0x3f116d),'onDiscard':(..._0x4fca16)=>this['getSuggestionCallback'](_0x5152b8,_0x36965c,'discard')(..._0x4fca16)});}['registerCustomCallback'](_0x469595,_0x1c3755,_0xd47d3f,_0x2ba128){const _0x2b28a5=_0x469595+':'+_0x1c3755+':'+_0xd47d3f;this['_customCallbacks']['set'](_0x2b28a5,_0x2ba128);}['getSuggestionCallback'](_0x40263e,_0x423815,_0xe1e5b3){const _0x1ae467=_0x40263e+':'+_0x423815+':'+_0xe1e5b3;return this['_customCallbacks']['get'](_0x1ae467)||this['_defaultCallbacks']['get'](_0x40263e+':'+_0xe1e5b3);}['_registerDefaultCallbacks'](){const _0x52bec8=()=>!0x1,_0x34be90=_0x34d0cf=>{_0x34d0cf['sort']((_0x2676e6,_0x4b3604)=>_0x2676e6['start']['isBefore'](_0x4b3604['start'])?0x1:-0x1),this['_model']['change'](_0x3bab4e=>{for(const _0x26f594 of _0x34d0cf){let _0x466200;_0x466200=_0x26f594['end']['isAtEnd']&&_0x26f594['end']['parent']==_0x26f594['start']['nodeAfter']?_0x3bab4e['createSelection'](_0x26f594['start']['nodeAfter'],'on'):_0x3bab4e['createSelection'](_0x26f594),this['_model']['deleteContent'](_0x466200,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1a38b3=(_0x3a7f5a,_0x473d65)=>{_0x473d65&&this['_model']['change'](_0x55a186=>{const {commandName:_0x24018e,commandParams:_0x40a89e=[]}=_0x473d65,_0x1fbf1a=_0x3a7f5a['map'](_0x200ca2=>(Pt(_0x200ca2)&&(_0x200ca2=this['_model']['createRange'](_0x200ca2['end'])),_0x200ca2))['filter'](_0x1eecfc=>'$graveyard'!==_0x1eecfc['root']['rootName']);if(_0x1fbf1a['length']<0x1)return;const _0x42d0c5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3ca89e=>_0x4ef168['fromRange'](_0x3ca89e));_0x55a186['setSelection'](_0x1fbf1a);for(const _0x14a304 of this['_editor']['commands']['commands']())_0x14a304['refresh']();_0x40a89e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x24018e,..._0x40a89e);const _0x3f823a=_0x42d0c5['filter'](_0x19c5f2=>'$graveyard'!=_0x19c5f2['root']['rootName']);_0x3f823a['length']>0x0&&_0x55a186['setSelection'](_0x3f823a);for(const _0x504880 of _0x42d0c5)_0x504880['detach']();});},_0xcaa92d=(_0x1d13cd,_0x57c109)=>0x1==_0x1d13cd['length']&&0x1==_0x57c109['length']&&_0x1d13cd[0x0]['end']['isEqual'](_0x57c109[0x0]['start']),_0x1896f9=(_0x4e64fb,_0x27a803,_0x94b1f8,_0x6af590)=>zt(_0x4e64fb,_0x27a803,_0x94b1f8,_0x6af590)?[_0x4e64fb,_0x27a803]:zt(_0x27a803,_0x4e64fb,_0x6af590,_0x94b1f8)?[_0x27a803,_0x4e64fb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52bec8),this['_defaultCallbacks']['set']('insertion:discard',_0x34be90),this['_defaultCallbacks']['set']('insertion:join',_0xcaa92d),this['_defaultCallbacks']['set']('insertion:chain',_0x1896f9),this['_defaultCallbacks']['set']('deletion:accept',_0x34be90),this['_defaultCallbacks']['set']('deletion:discard',_0x52bec8),this['_defaultCallbacks']['set']('deletion:join',_0xcaa92d),this['_defaultCallbacks']['set']('deletion:chain',_0x1896f9),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a38b3),this['_defaultCallbacks']['set']('formatInline:discard',_0x52bec8),this['_defaultCallbacks']['set']('formatInline:join',_0xcaa92d),this['_defaultCallbacks']['set']('formatInline:chain',_0x52bec8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a38b3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52bec8),this['_defaultCallbacks']['set']('formatBlock:join',_0xcaa92d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52bec8),this['_defaultCallbacks']['set']('attribute:accept',_0x52bec8),this['_defaultCallbacks']['set']('attribute:discard',(_0x300ae9,_0x57d898)=>{if(!_0x57d898)return;const _0x5d8e70=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2466c7=>{if(_0x57d898['key']==m)for(const _0x2449d9 of _0x300ae9){const _0x164f26=_0x2449d9['start']['nodeAfter'],_0x4e112c=_0x57d898['oldValue'];_0x2466c7['rename'](_0x164f26,_0x4e112c);}else{if(_0x5d8e70['_isBlockAttribute'](_0x57d898['key'])){for(const _0x597833 of _0x300ae9)void 0x0!==_0x57d898['oldValue']?_0x2466c7['setAttribute'](_0x57d898['key'],_0x57d898['oldValue'],_0x597833['start']['nodeAfter']):_0x2466c7['removeAttribute'](_0x57d898['key'],_0x597833['start']['nodeAfter']);}else{for(const _0x133663 of _0x300ae9)_0x57d898['oldValue']?_0x2466c7['setAttribute'](_0x57d898['key'],_0x57d898['oldValue'],_0x133663):_0x2466c7['removeAttribute'](_0x57d898['key'],_0x133663);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcaa92d);}}function Ft(_0x47de8b,_0x596920,_0x238314){for(const _0x13ee7c of _0x596920['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x13ee7c['root']==_0x13ee7c)return!0x1;if(!_0x238314['containsItem'](_0x13ee7c))return!0x1;if(_0x47de8b['isObject'](_0x13ee7c)||_0x47de8b['isLimit'](_0x13ee7c))return!0x0;}return!0x1;}function Pt(_0x5bba35){return _0x5bba35['end']['parent']==_0x5bba35['start']['nodeAfter']&&_0x5bba35['end']['isAtStart'];}function Gt(_0x27383b,_0x34d8f8,_0xcc193a,_0x4c229d){const _0x4aec21=_0x1db8bf=>!_0x1db8bf['item']['is']('$textProxy')&&!_0x4c229d['isObject'](_0x1db8bf['item']),_0x55282b=_0x27383b['start']['getLastMatchingPosition'](_0x4aec21),_0xc7c88a=_0x27383b['end']['getLastMatchingPosition'](_0x4aec21,{'direction':'backward'});return(!_0x27383b['start']['isEqual'](_0x55282b)||!_0x27383b['end']['isEqual'](_0xc7c88a))&&(_0x55282b['isBefore'](_0xc7c88a)?_0xcc193a['updateMarker'](_0x34d8f8,{'range':_0xcc193a['createRange'](_0x55282b,_0xc7c88a)}):_0xcc193a['removeMarker'](_0x34d8f8),!0x0);}function Lt(_0x1ee4fd){return _0x38917d(_0x1ee4fd);}function Jt(_0xc5d2b2){const _0x93c16=_0xc5d2b2['start']['nodeAfter'];return _0x93c16&&_0x93c16['is']('element');}function Kt(_0x19b9e8){return!Pt(_0x19b9e8)&&!function(_0x3e8a45){return _0x3e8a45['start']['parent']==_0x3e8a45['end']['nodeBefore']&&_0x3e8a45['start']['isAtEnd'];}(_0x19b9e8);}function Ht(_0x4a466b,_0x298db7){return null==_0x4a466b['end']['nodeBefore']&&_0x4a466b['end']['parent']==_0x4a466b['start']['nodeAfter']?qt(_0x4a466b['start']['nodeAfter'],_0x298db7):_0x4a466b;}function qt(_0x315d56,_0x217ea5){const _0x308ad5=_0x217ea5['schema']['isObject'](_0x315d56)||_0x217ea5['schema']['isSelectable'](_0x315d56);return _0x217ea5['createRange'](_0x217ea5['createPositionAt'](_0x315d56,'before'),_0x308ad5?_0x217ea5['createPositionAfter'](_0x315d56):_0x217ea5['createPositionAt'](_0x315d56,'end'));}function zt(_0x52a7ec,_0x1bcb51,_0x1d5ee6,_0xc437c9){return!!Wt(_0x52a7ec,_0x1bcb51)&&_0x1d5ee6['end']['isEqual'](_0xc437c9['start']);}function Wt(_0x39ffc2,_0x30c506){if(!_0x39ffc2['_isDataLoaded']||!_0x30c506['_isDataLoaded'])return!0x1;const _0x3f568d=new Set(Object['keys'](_0x39ffc2['attributes'])),_0x5ab4dd=new Set(Object['keys'](_0x30c506['attributes']));if(_0x3f568d['delete']('groupId'),_0x5ab4dd['delete']('groupId'),0x0==_0x3f568d['size']&&0x0==_0x5ab4dd['size'])return!0x0;if(_0x3f568d['size']!=_0x5ab4dd['size'])return!0x1;const _0x1b56b1={..._0x39ffc2['attributes']},_0x7d9b57={..._0x30c506['attributes']};return delete _0x1b56b1['groupId'],delete _0x7d9b57['groupId'],JSON['stringify'](_0x1b56b1)==JSON['stringify'](_0x7d9b57);}function Qt(_0x3faecd,_0x545804){const _0x1a6dbe=Xt(_0x3faecd['attributes']),_0x5cdf09=Xt(_0x545804);if(!_0x3faecd['_isDataLoaded'])return!0x1;for(const _0x710e08 of Object['keys'](_0x5cdf09))if(!_0x48c112(_0x1a6dbe[_0x710e08],_0x5cdf09[_0x710e08]))return!0x1;return!0x0;}function Xt(_0x516f77){const _0x5996a6=Object['assign']({},_0x516f77);return delete _0x5996a6['skipNestingCheck'],delete _0x5996a6['tablePasteChainId'],_0x5996a6;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4ab215(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4e7253,_0x22e373,_0x238d4b,_0x27f14a){super(),this['model']=_0x22e373,this['view']=_0x238d4b,this['commentThreadController']=_0x27f14a,this['_editor']=_0x4e7253,this['_acceptCommand']=_0x4e7253['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4e7253['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5624f5,_0x2271d1)=>_0x5624f5||_0x2271d1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x31f6f8=>_0x31f6f8&&this['_editor']['model']['canEditAt'](_0x22e373['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xfb0319=>_0xfb0319&&this['_editor']['model']['canEditAt'](_0x22e373['getRanges']())),this['_pendingAction']=null,_0x238d4b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x238d4b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x238d4b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x238d4b,'change:isDirty',()=>{_0x238d4b['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x5d669b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d669b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x51fa9e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x578cd8,_0x16962d,_0xe1db28,_0x2f10de){super(_0x578cd8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1fbb41(_0x578cd8,o(_0x578cd8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x16962d['authoredAt']),this['bind']('authoredAt')['to'](_0x16962d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x16962d,'authoredAt',this,'descriptionParts',(_0x29ea01,_0x1e1b23,_0x294892)=>{const _0x15cafe=_0x294892['map'](_0x42e3d7=>ls(_0x42e3d7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x29ea01-0x1,_0x16962d['author']['name'],_0x1e1b23?_0x2f10de['formatDateTime'](_0x1e1b23):'',new DOMParser()['parseFromString'](_0x15cafe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x13b940(),this['focusTracker']=new _0x4ba80c(),this['keystrokes']=new _0xea4328(),this['focusCycler']=new _0x50f93b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb01572=>_0xb01572['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x16962d,this['_localUser']=_0xe1db28,this['_config']=_0x2f10de,_0x2f10de['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x390368(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d5157}=this['_config'];this['commentsListView']=new _0x5d5157(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0xa646e9=>_0xa646e9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4c5fa5,_0xfcf386)=>_0x4c5fa5||!!_0xfcf386);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5456f4}=this['_config'],_0x947248=new _0x5456f4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x51e4bf=_0x947248['commentInputView'];return _0x947248['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x51e4bf,'value',(_0x5e06a3,_0x4e7b6e,_0x2a4eb7)=>!!_0x2a4eb7||_0x5e06a3&&!_0x4e7b6e),_0x51e4bf['on']('submit',(_0x162cbd,_0x1be184)=>{this['fire']('addComment',_0x1be184),_0x51e4bf['editor']['setData']('');}),_0x51e4bf['on']('cancel',()=>this['focus']()),_0x51e4bf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x947248;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4f4d95,_0x15f547,_0x1b4bd1,_0x3c79cf){super(_0x4f4d95,_0x15f547,_0x1b4bd1,_0x3c79cf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5cb20f=>_0x5cb20f&&_0x5cb20f[0x0]?_0x5cb20f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x30716a,_0x23894b)=>{let _0x1b2e41='';for(const _0x50e407 of _0x30716a)_0x1b2e41+='<p>'+ls(_0x50e407['content'],_0x50e407['color'])+'</p>';return _0x23894b?_0x1b2e41:_0x5039b0(_0x1b2e41,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3c79cf['SuggestionView'](_0x4f4d95,_0x15f547,{'formatDateTime':_0x3c79cf['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x26709c=this['bindTemplate'],_0x3c00e2=[this['suggestionView']];return this['commentsListView']&&_0x3c00e2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3c00e2['push'](this['commentThreadInputView']),_0x3c00e2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x26709c['if']('isActive','ck-suggestion-wrapper--active'),_0x26709c['to']('type',_0x5cef15=>'ck-suggestion-'+_0x5cef15),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':0x0,'role':'listitem','aria-label':_0x26709c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3c00e2};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x51fa9e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49532f,_0x1e39dc,_0x45db68){super(_0x49532f),this['_model']=_0x1e39dc,this['_config']=_0x45db68,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e39dc),this['acceptButton']=this['_createButton'](o(_0x49532f,'Accept\x20suggestion'),_0x3bab8d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x49532f,'Discard\x20suggestion'),_0x2bbfac,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x581262(_0x49532f,_0x1e39dc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x13b940([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ba80c(),this['keystrokes']=new _0xea4328(),this['focusCycler']=new _0x50f93b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x540380=>_0x540380['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xf04cb1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xf04cb1['innerHTML']=this['description'],this['on']('change:description',(_0x3c97c6,_0x496fb2,_0x3449d5)=>{_0xf04cb1['innerHTML']=_0x3449d5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5dc327=this['bindTemplate'],_0x29ea36=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5dc327['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5dc327['to']('authoredAt',_0x525741=>this['_config']['formatDateTime'](_0x525741))}]}]},{'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['_model']['isExternal']&&_0x29ea36['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x29ea36}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x20d80b,_0x7e5ebc,_0x57f454,_0x3ab0dd,_0x4362d2){const _0x12a226=new _0xf2ab3a(this['locale']);return _0x12a226['set']({'label':_0x20d80b,'icon':_0x7e5ebc,'tooltip':!0x0,'tooltipPosition':_0x4362d2}),_0x12a226['extendTemplate']({'attributes':{'class':_0x57f454}}),_0x12a226['on']('execute',()=>{this['fire'](_0x3ab0dd,this['_model']['id']);}),_0x12a226;}['_setupKeyboardNavigation'](){const _0x2f19c0=this['element'];this['keystrokes']['listenTo'](_0x2f19c0);for(const _0x3d4bfe of this['focusables'])this['focusTracker']['add'](_0x3d4bfe['element']),this['keystrokes']['listenTo'](_0x3d4bfe['element']);this['keystrokes']['set']('enter',(_0x5c7b27,_0x25fa82)=>{_0x2f19c0===_0x5c7b27['target']&&(this['focusCycler']['focusFirst'](),_0x25fa82());}),this['keystrokes']['set']('esc',(_0x2d19ce,_0x139f1e)=>{_0x2f19c0!==_0x2d19ce['target']&&(this['focus'](),_0x139f1e());});}}class u extends _0x185c8e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x7e9419,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x334ab7){super(_0x334ab7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5c615a=this['editor']['config'];_0x5c615a['define']('trackChanges.SuggestionThreadView',fe),_0x5c615a['define']('trackChanges.SuggestionView',we),_0x5c615a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5c615a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x42c9b1,_0x41d268){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x119232,_0x380cc7]of this['_handleControllerBuffer']){const _0x29f405=this['_suggestionToController']['has'](_0x119232);_0x29f405||_0x380cc7?_0x29f405&&_0x380cc7&&this['_destroyController'](_0x119232):this['_initializeController'](_0x119232);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x42c9b1,_0x41d268);}['init'](){const _0x29acdd=this['editor'],_0x431bc4=_0x29acdd['plugins']['get']('TrackChangesEditing'),_0x178055=_0x29acdd['plugins']['get']('Annotations'),_0x2c490e=_0x29acdd['plugins']['get']('EditorAnnotations'),_0x40f2b8=_0x29acdd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2c490e['addSourceCollector'](()=>{const _0x53e629=[];for(const [_0x456d41,_0x2505fc]of Array['from'](this['_suggestionToController'])){const _0x27881f=_0x456d41['getAllAdjacentSuggestions'](),_0x186b53=[];for(const _0x37d71a of _0x27881f){if(!_0x37d71a['isInContent'])continue;if(_0x37d71a['isMultiRange']){_0x186b53['push'](..._0x37d71a['getRanges']());continue;}const _0xc0c3ef=_0x37d71a['getFirstRange']();if(_0x186b53['length']>0x0){const _0x1cf5d8=_0x186b53[0x0]['getJoined'](_0xc0c3ef);if(_0x1cf5d8){_0x186b53[0x0]=_0x1cf5d8;continue;}}_0x186b53['push'](_0xc0c3ef);}_0x53e629['push']([_0x2505fc['view'],_0x186b53]);}return _0x53e629;}),this['listenTo'](_0x431bc4,'suggestionLoaded',(_0x2caf30,_0x28581a)=>{this['listenTo'](_0x28581a,'change:previous',(_0x4cae41,_0x43397e,_0x30b863,_0x5d649c)=>{_0x28581a['isInContent']&&(null==_0x30b863?(this['_updateController'](_0x5d649c['head']),this['_handleSuggestionControllerDelayed'](_0x28581a,!0x1)):(this['_updateController'](_0x30b863['head']),null==_0x5d649c&&this['_handleSuggestionControllerDelayed'](_0x28581a,!0x0)));}),null!==_0x28581a['previous']?this['_updateController'](_0x28581a['head']):this['_handleSuggestionControllerDelayed'](_0x28581a,!0x1);}),this['listenTo'](_0x431bc4,'suggestionUnloaded',(_0x173036,_0x182a65,_0x32660b)=>{this['stopListening'](_0x182a65,'change:previous'),this['_handleControllerBuffer']['delete'](_0x182a65),this['_suggestionToController']['has'](_0x182a65)&&this['_destroyController'](_0x182a65),_0x32660b&&this['_updateController'](_0x32660b['head']);}),this['listenTo'](_0x431bc4,'suggestionChanged',(_0x50f51b,_0x1e9b6b)=>{this['_updateController'](_0x1e9b6b);}),this['listenTo'](_0x178055,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x40f2b8,'addComment',(_0x3f929f,{threadId:_0x18f9e5,isFromAdapter:_0x2d20fc})=>{if(_0x2d20fc||!_0x431bc4['hasSuggestion'](_0x18f9e5))return;const _0x1b0f87=_0x431bc4['getSuggestion'](_0x18f9e5);this['_suggestionToController']['get'](_0x1b0f87)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10fcf8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x528191;for(const _0x1e41d5 in _0x10fcf8){const _0x1e1628=_0x1e41d5,_0x2fd79c=_0x10fcf8[_0x1e1628];if('trackChangesLicenseKeyValid'==_0x2fd79c||'trackChangesLicenseKeyInvalid'==_0x2fd79c||'trackChangesLicenseKeyExpired'==_0x2fd79c||'trackChangesLicenseKeyDomainLimit'==_0x2fd79c||'trackChangesLicenseKeyNotAllowed'==_0x2fd79c||'trackChangesLicenseKeyEvaluationLimit'==_0x2fd79c||'trackChangesLicenseKeyTrialLimit'==_0x2fd79c||'trackChangesLicenseKeyUsageLimit'==_0x2fd79c){delete _0x10fcf8[_0x1e1628],_0x528191=_0x2fd79c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x528191&&_0x10fcf8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x528191&&_0x10fcf8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x528191&&_0x10fcf8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x358489){const _0x3e252d=this['_suggestionToController']['get'](_0x358489);if(!_0x3e252d)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3e252d['view'])||null;}['getSuggestionForAnnotation'](_0x24ee3f){const _0x3cef9c=this['_viewToController']['get'](_0x24ee3f['innerView']);return _0x3cef9c?_0x3cef9c['model']:null;}['_refreshActiveMarkers'](){const _0x1a5ddc=this['editor']['plugins']['get']('Annotations'),_0xcfe537=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2151dd=Array['from'](_0x1a5ddc['activeAnnotations'],_0x1568b3=>_0x1568b3['innerView'])['filter'](_0x516c78=>this['_viewToController']['has'](_0x516c78)),_0x1796aa=[];for(const _0x476576 of _0x2151dd){const _0x535c94=this['_viewToController']['get'](_0x476576)['model']['getAllAdjacentSuggestions']();_0x1796aa['push'](..._0x535c94['reduce']((_0x212b56,_0xdb7239)=>[..._0x212b56,..._0xdb7239['getMarkerNames']()],[]));}_0xcfe537['activeMarkers']=_0x1796aa;}['_addUIComponentsToFactory'](){const _0x8b0c26=this['editor'],_0x3e3b88=_0x8b0c26['locale'],_0x54a503=o(_0x3e3b88,'Track\x20changes'),_0xed6a80=new _0x418873([{'type':'switchbutton','model':new _0x2a146f({'withText':!0x0,'isToggleable':!0x0,'label':_0x54a503,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x8b0c26['plugins']['has']('TrackChangesPreview')&&_0xed6a80['addMany']([{'type':'separator'},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2cb8aa of _0xed6a80)if(ke(_0x2cb8aa)){const _0x21d19f=_0x8b0c26['commands']['get'](_0x2cb8aa['model']['commandName']);_0x2cb8aa['model']['bind']('isOn','isEnabled')['to'](_0x21d19f,'value','isEnabled');}_0x8b0c26['ui']['componentFactory']['add']('trackChanges',_0x255c99=>this['_createToolbarButton'](_0x255c99,_0xed6a80,_0x54a503)),_0x8b0c26['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1935fb=>this['_createMenuBarMenu'](_0x1935fb,_0xed6a80,_0x54a503));}['_createToolbarButton'](_0x7a011f,_0x2069ab,_0x1999b5){const _0x4ad3a5=_0x3413fc(_0x7a011f,_0x3f091f),_0x2aaf5a=this['editor']['commands']['get']('trackChanges');_0x4ad3a5['buttonView']['set']({'tooltip':_0x1999b5,'label':_0x1999b5,'icon':_0x214e3f}),_0x4ad3a5['buttonView']['bind']('isOn')['to'](_0x2aaf5a,'value'),_0x4ad3a5['buttonView']['on']('execute',()=>{_0x2aaf5a['execute'](),this['editor']['editing']['view']['focus']();}),_0x300a82(_0x4ad3a5,_0x2069ab,{'role':'menu'});const _0x16aee2=[];for(const _0x374cff of _0x2069ab)ke(_0x374cff)&&_0x16aee2['push'](this['editor']['commands']['get'](_0x374cff['model']['commandName']));const _0x135fe4=_0x4ad3a5['buttonView'];return _0x135fe4['actionView']['unbind']('isEnabled'),_0x135fe4['arrowView']['unbind']('isEnabled'),_0x135fe4['actionView']['bind']('isEnabled')['to'](_0x2aaf5a,'isEnabled'),_0x135fe4['arrowView']['bind']('isEnabled')['toMany'](_0x16aee2,'isEnabled',(..._0x8df082)=>_0x8df082['some'](_0xb77836=>_0xb77836)),_0x4ad3a5['on']('execute',_0x5954e6=>{this['editor']['execute'](_0x5954e6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ad3a5;}['_createMenuBarMenu'](_0x30f5af,_0x39646c,_0x38e2cb){const _0x100d03=new _0x53e884(_0x30f5af),_0x58dc79=this['editor']['commands']['get']('trackChanges');_0x100d03['buttonView']['set']({'label':_0x38e2cb,'icon':_0x214e3f});const _0xaf8a71=new _0x2c5f59(_0x30f5af);for(const _0x3ec251 of _0x39646c){if('separator'==_0x3ec251['type']){_0xaf8a71['items']['add'](new _0x4ca5df(_0x30f5af));continue;}const _0x305c6f=new _0x441c3f(_0x30f5af,_0x100d03),_0x2804a0=new _0x3a5579(_0x30f5af),_0x5ab82e=_0x3ec251['model'];_0x2804a0['bind'](...Object['keys'](_0x5ab82e))['to'](_0x5ab82e),_0x2804a0['delegate']('execute')['to'](_0x100d03),_0x2804a0['on']('execute',()=>{this['editor']['execute'](_0x5ab82e['commandName']),this['editor']['editing']['view']['focus']();}),_0x305c6f['children']['add'](_0x2804a0),_0xaf8a71['items']['add'](_0x305c6f);}return _0x100d03['bind']('isEnabled')['to'](_0x58dc79,'isEnabled'),_0x100d03['panelView']['children']['add'](_0xaf8a71),_0x100d03;}['_initializeController'](_0x594bd8){const _0x2adc32=this['editor'],_0x19c040=_0x2adc32['config'],_0x437236=_0x2adc32['plugins']['get']('Annotations'),_0x599ea2=_0x2adc32['plugins']['get']('CommentsRepository'),_0x23e02a=_0x2adc32['plugins']['get']('EditorAnnotations'),_0x1a7c19=_0x2adc32['plugins']['get'](_0x7e9419)['me'],_0x15e458=_0x19c040['get']('trackChanges')['SuggestionThreadView'],_0x1cfc11=_0x19c040['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1701f7,CommentThreadInputView:_0x552978}=_0x2adc32['plugins']['get']('CommentsUI');let _0x124577,_0x2c2c8f,_0x5bf10c;this['_annotationViews']['has'](_0x594bd8['id'])?(_0x2c2c8f=this['_annotationViews']['get'](_0x594bd8['id']),_0x124577=_0x2c2c8f['mainView']):(_0x124577=new _0x15e458(_0x2adc32['locale'],_0x594bd8,_0x1a7c19,{'disableComments':this['_disableComments'],'editorConfig':{..._0x19c040['get']('comments.editorConfig'),'licenseKey':_0x19c040['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x19c040['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x19c040['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x19c040['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25adc9(_0x19c040['get']('locale'),_0x2adc32['locale']),'CommentView':_0x19c040['get']('comments')['CommentView'],'CommentsListView':_0x1701f7,'CommentThreadInputView':_0x552978,'SuggestionView':_0x1cfc11}),_0x124577['suggestionView']['acceptButton']['on']('execute',()=>{_0x2adc32['editing']['view']['focus']();}),_0x124577['suggestionView']['discardButton']['on']('execute',()=>{_0x2adc32['editing']['view']['focus']();}),_0x2c2c8f=_0x437236['createAnnotationView'](this['editor']['locale'],_0x124577),_0x2c2c8f['bind']('isDirty')['to'](_0x124577,'isDirty'),_0x2c2c8f['bind']('length')['to'](_0x124577),_0x2c2c8f['bind']('type')['to'](_0x124577,'type',_0x5949f4=>'suggestion-'+_0x5949f4),_0x124577['on']('escape',()=>{_0x5bf10c['fire']('escape');}),this['_annotationViews']['set'](_0x594bd8['id'],_0x2c2c8f));const _0x53f948=_0x599ea2['createCommentThreadController'](_0x594bd8['commentThread'],_0x124577),_0x18f50f=new pe(_0x2adc32,_0x594bd8,_0x124577,_0x53f948),_0x4aaeba=_0x594bd8['getAllAdjacentSuggestions']()['filter'](_0x48a9d5=>_0x48a9d5['isInContent']);_0x124577['descriptionParts']=_0x2adc32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4aaeba),this['_suggestionToController']['set'](_0x594bd8,_0x18f50f),this['_viewToController']['set'](_0x124577,_0x18f50f),_0x5bf10c=_0x437236['createAnnotation']({'view':_0x2c2c8f,'target':()=>{const _0x1f59f7=[],_0x1d54c5=_0x594bd8['getAllAdjacentSuggestions']()['filter'](_0xf0e006=>_0xf0e006['isInContent']);for(const _0x57b9ec of _0x1d54c5)_0x1f59f7['push'](..._0x57b9ec['getMarkers']());return _0x331e1e(_0x2adc32['editing'],_0x1f59f7);},'type':()=>'suggestion-'+_0x18f50f['view']['type']}),_0x599ea2['_bindAnnotationToEditors'](_0x124577,_0x5bf10c),_0x437236['add'](_0x5bf10c),_0x23e02a['registerAnnotation'](_0x5bf10c);}['_destroyController'](_0x3a0b12){const _0x286370=this['editor']['plugins']['get']('CommentsRepository'),_0x565a4c=this['editor']['plugins']['get']('Annotations'),_0x37050a=this['_suggestionToController']['get'](_0x3a0b12),_0x350b2b=_0x37050a['view'],_0x5068b2=_0x565a4c['getByInnerView'](_0x350b2b);_0x286370['_unbindEditors'](_0x350b2b),_0x5068b2&&_0x565a4c['remove'](_0x5068b2),this['_suggestionToController']['delete'](_0x3a0b12),this['_viewToController']['delete'](_0x350b2b),_0x37050a['destroy']();}['_updateController'](_0x2317ce){if(!_0x2317ce['isInContent']||!this['_suggestionToController']['has'](_0x2317ce))return;const _0x4519f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b516c=this['_suggestionToController']['get'](_0x2317ce),_0x1f4d12=_0x2317ce['getAllAdjacentSuggestions']();_0x4b516c['view']['descriptionParts']=_0x4519f5['descriptionFactory']['getDescriptions'](_0x1f4d12);}['destroy'](){for(const _0x507397 of this['_suggestionToController']['keys']())this['_destroyController'](_0x507397);for(const _0x1305ba of this['_annotationViews']['values']())_0x1305ba['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4e60bf){return'model'in _0x4e60bf;}class Fe extends _0x185c8e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54b921){this['editor']['plugins']['get'](d)['adapter']=_0x54b921;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x599529){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x599529);}['getSuggestions']({skipNotAttached:_0x5ccfa3=!0x1,toJSON:_0x350240=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5ccfa3,'toJSON':_0x350240});}['getSuggestion'](_0x2f9677){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2f9677);}}const p=['Pagination'];class re extends _0x185c8e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x136bf2=this['editor'];if(_0x136bf2['config']['define']('trackChangesData.editorCreator',_0xa98bbe=>{const _0x3030a3=_0x136bf2['model']['document']['getRootNames']()['reduce']((_0x4647aa,_0x3a50ff)=>(_0x4647aa[_0x3a50ff]='',_0x4647aa),{});return _0x136bf2['constructor']['create'](_0x3030a3,_0xa98bbe);}),'function'!=typeof _0x136bf2['config']['get']('trackChangesData')['editorCreator'])throw new _0x464339('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48192b){return P(this['editor'],!0x0,_0x48192b);}['getDataWithDiscardedSuggestions'](_0x1df884){return P(this['editor'],!0x1,_0x1df884);}}class Ge extends _0x185c8e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x206ffa){function _0x20274a(_0x53a01b){return _0x53a01b['map'](_0x203db1=>String['fromCharCode'](_0x203db1))['join']('');}super(_0x206ffa),this['result']='end',_0x206ffa[_0x20274a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20274a([0x76,0x69,0x65,0x77])][_0x20274a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20274a([0x61,0x75,0x74,0x6f]),_0x206ffa[_0x20274a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20274a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20274a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20274a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20274a([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'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['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x55ff3a){return void 0x0!==_0x55ff3a['getRootsAttributes'];}async function P(_0x43c9aa,_0x44adf4,_0x136c35){const _0x44f8b8=_0x32f147(_0x43c9aa,p);_0x44f8b8['plugins']['push'](d,Ge),_0x44f8b8['rootsAttributes']=$e(_0x43c9aa)?_0x43c9aa['getRootsAttributes']():void 0x0;const _0x3f7687=document['createDocumentFragment'](),_0x27d437=_0x43c9aa['config']['get']('trackChangesData')['editorCreator'],_0x1a7002=await _0x27d437(_0x44f8b8,()=>function(_0x2bb36d){const _0x5b84d7=document['createElement']('div');return _0x2bb36d['appendChild'](_0x5b84d7),_0x5b84d7;}(_0x3f7687));!function(_0x5ed072,_0x26a753){const _0x531d9b=_0x5ed072['model']['document']['getRootNames']()['reduce']((_0x18563e,_0x3c048d)=>(_0x18563e[_0x3c048d]=_0x5ed072['data']['get']({'rootName':_0x3c048d}),_0x18563e),{}),_0x5dca9f=_0x5ed072['plugins']['get']('Users')['users']['map'](_0x1a4c74=>({'id':_0x1a4c74['id'],'name':_0x1a4c74['name']})),_0x1229a3=_0x5ed072['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf76fc6=_0x5ed072['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a84f4=_0x26a753['plugins']['get']('Users'),_0x5811ea=_0x26a753['plugins']['get']('TrackChangesEditing'),_0x52b955=_0x26a753['plugins']['get']('CommentsRepository');for(const _0x1d9064 of _0x52b955['getCommentThreads']())_0x1d9064['remove']();for(const _0x6d871 of _0x5dca9f)_0x3a84f4['getUser'](_0x6d871['id'])||_0x3a84f4['addUser'](_0x6d871);_0x3a84f4['me']||_0x3a84f4['useAnonymousUser']();for(const _0x56940f of _0xf76fc6)_0x52b955['addCommentThread'](_0x56940f);for(const _0x3ecaa7 of _0x1229a3)_0x5811ea['addSuggestionData'](_0x3ecaa7);_0x26a753['data']['set'](_0x531d9b);}(_0x43c9aa,_0x1a7002),_0x1a7002['execute'](_0x44adf4?'acceptAllSuggestions':'discardAllSuggestions');const _0x2753ae=$e(_0x1a7002)?_0x1a7002['getFullData'](_0x136c35):_0x1a7002['data']['get'](_0x136c35);return await _0x1a7002['destroy'](),_0x2753ae;}class Me extends _0x51fa9e{['options'];constructor(_0x1016e4,_0x3fc2d3){super(_0x1016e4),this['options']=_0x3fc2d3,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x413bb4,_0x2019fa){if(!this['element'])return;const _0x5af705=[];for(const [_0x1722af,_0x43b7c6]of _0x413bb4){const _0x499ce5=document['createElement']('div');_0x499ce5['setAttribute']('data-ck-root-name',_0x1722af),_0x499ce5['className']=_0x43b7c6['classes']+'\x20ck-track-changes-preview__root-container',_0x499ce5['innerHTML']=_0x43b7c6['content'],_0x5af705['push'](_0x499ce5);}_0x2019fa(this['element'],_0x5af705),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5a8212{constructor(_0x4f6fc8){super(_0x4f6fc8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x36fba0=this['editor'],_0x5c349f=_0x36fba0['locale'],_0x15b0cc=_0x36fba0['plugins']['get']('Dialog');let _0x2f890c;const _0x125d0a=function(_0x1118fa){const _0x5e9802={};if('editables'in _0x1118fa['ui']['view']){for(const [_0x2b49a3,_0x607cac]of Object['entries'](_0x1118fa['ui']['view']['editables']))_0x5e9802[_0x2b49a3]=_0x607cac['element'];}else _0x5e9802[_0x1118fa['model']['document']['getRootNames']()[0x0]]=_0x1118fa['ui']['view']['editable']['element'];return _0x5e9802;}(_0x36fba0),_0x15e5cc=function(_0x4a9243){let _0x3524de=0x0;for(const _0x825946 of Object['values'](_0x4a9243))_0x3524de=Math['max'](_0x3524de,_0x825946['getBoundingClientRect']()['width']);let _0xb98727=0x0;for(const _0x1fdaac of Object['values'](_0x4a9243))_0xb98727+=_0x1fdaac['getBoundingClientRect']()['height'];const _0xe7f61e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x38f1f4=Math['min'](_0xb98727,_0xe7f61e);return{'width':_0x3524de,'height':_0x38f1f4};}(_0x125d0a);_0x15b0cc['show']({'id':'finalContentPreview','title':o(_0x5c349f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c349f,{'dialogRects':_0x15e5cc}),'onHide':()=>{_0x2f890c['detachFromDom']();},'onShow':()=>{_0x36fba0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x284451=>{const _0xe98a8a=this['_standarizeRootsData'](_0x284451,_0x36fba0,_0x125d0a);_0x15b0cc['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xe98a8a,_0x36fba0['config']['get']('trackChanges.preview.renderFunction'));}),_0x2f890c=new _0x5a8715(_0x5c349f,[_0x15b0cc['view']]),_0x2f890c['attachToDom'](),_0x2f890c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x36fba0['once']('destroy',()=>{_0x2f890c['detachFromDom']();});const _0x1ef6ef=_0x15b0cc['view']['headerView']['class'];_0x15b0cc['view']['headerView']['class']=_0x1ef6ef?_0x1ef6ef+'\x20ck-reset_all':'ck-reset_all',_0x15b0cc['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x15b0cc['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1396ea=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x175515=_0x1396ea['previewMode'],_0x2a4f80={};if('$labels'===_0x175515){for(const _0x58ed16 of _0x1396ea['getMergeFieldsIds']())_0x2a4f80[_0x58ed16]=_0x1396ea['getLabel'](_0x58ed16)||_0x58ed16;}else{const _0x1cf9f1='$defaultValues'===_0x175515?_0x1396ea['getDefaultValues']():_0x1396ea['getDataSetValues'](_0x175515,!0x0);for(const _0x550cf9 of Object['entries'](_0x1cf9f1)){const [_0x242415,_0x376502]=_0x550cf9;_0x2a4f80[_0x242415]=null!==_0x376502?_0x376502:_0x1396ea['getLabel'](_0x242415)||_0x242415;}}return{'mergeFieldsData':_0x2a4f80};}['_standarizeRootsData'](_0x3ef7c6,_0x468335,_0x510ffe){let _0x4a8dc3;if('string'==typeof _0x3ef7c6){const _0xca2ef4=_0x468335['model']['document']['getRootNames']()[0x0];_0x4a8dc3={[_0xca2ef4]:_0x3ef7c6};}else _0x4a8dc3=_0x3ef7c6;const _0x349790=this['_fixMediaEmbeds'](_0x4a8dc3,_0x468335),_0x514467=function(_0x25d6ac,_0xee356b){for(const [_0x445a13,_0x19dbc1]of _0x25d6ac)_0x19dbc1['classes']=_0xee356b[_0x445a13]['classList']['value']['replace']('ck-focused','');return _0x25d6ac;}(this['_sortRoots'](_0x468335)['reduce']((_0x4ea8a3,_0x593346)=>(_0x4ea8a3['push']([_0x593346,{'content':_0x349790[_0x593346],'classes':''}]),_0x4ea8a3),[]),_0x510ffe);return _0x514467;}['_fixMediaEmbeds'](_0x5af4fa,_0x278819){if(!_0x278819['plugins']['has']('MediaEmbedEditing'))return _0x5af4fa;const _0x2222a1=_0x278819['plugins']['get']('MediaEmbedEditing');for(const [_0x590135,_0x10acf1]of Object['entries'](_0x5af4fa)){const _0x32ad68=document['createElement']('div');_0x32ad68['innerHTML']=_0x10acf1,(_0x32ad68['querySelectorAll']('figure.media')['forEach'](_0x2f2e6c=>{const _0x2c3004=_0x2f2e6c['querySelector']('oembed');if(_0x2c3004){const _0x1b63cd=_0x2c3004['getAttribute']('url');if(_0x1b63cd){const _0x3ed3c0=_0x2222a1['registry']['getMediaViewElement'](new _0x32df9f(_0x278819['editing']['view']['document']),_0x1b63cd,{'elementName':'','renderForEditingView':!0x0}),_0x174beb=document['createElement']('div');_0x174beb['classList']['add']('ck-media__wrapper'),_0x3ed3c0['render'](_0x174beb,_0x278819['editing']['view']['domConverter']),_0x2c3004['replaceWith'](_0x174beb);}}}),_0x5af4fa[_0x590135]=_0x32ad68['innerHTML']);}return _0x5af4fa;}['_sortRoots'](_0x183280){if(!function(_0x4c008a){return void 0x0!==_0x4c008a['getRootsAttributes'];}(_0x183280))return _0x183280['model']['document']['getRootNames']();const _0x17a5f5=[],_0x5abd15=new Map();for(const _0x35c21b of _0x183280['model']['document']['getRootNames']()){const _0x1985d2=_0x183280['editing']['view']['getDomRoot'](_0x35c21b)['getClientRects']()['item'](0x0);_0x17a5f5['push'](_0x35c21b),_0x5abd15['set'](_0x35c21b,_0x1985d2);}return _0x17a5f5['sort']((_0x2ee249,_0x306481)=>{const _0x2cdf66=_0x5abd15['get'](_0x2ee249),_0x9e93f8=_0x5abd15['get'](_0x306481);return _0x2cdf66['y']-_0x9e93f8['y']||_0x2cdf66['x']-_0x9e93f8['x'];}),_0x17a5f5;}}class He extends _0x185c8e{static get['requires'](){return[re,_0x5bfc98];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x207fee){super(_0x207fee),_0x207fee['commands']['add']('previewFinalContent',new te(this['editor'])),_0x207fee['config']['define']('trackChanges.preview.renderFunction',(_0x3374e0,_0x157626)=>{for(const _0xd955b3 of _0x157626)_0x3374e0['appendChild'](_0xd955b3);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|