@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250924.0 → 0.0.0-nightly-20250925.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/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
|
-
_0x4426f7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4385c2,_0x1b91a2){super(),this['id']=_0x1b91a2['id'],this['type']=_0x1b91a2['type'],this['subType']=_0x1b91a2['subType']||null,this['author']=_0x1b91a2['author'],this['creator']=_0x1b91a2['creator']||_0x1b91a2['author'],this['isExternal']=Boolean(_0x1b91a2['attributes']&&_0x1b91a2['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1b91a2['originalSuggestionId']||null,this['_model']=_0x4385c2,this['_onAccept']=_0x1b91a2['onAccept'],this['_onDiscard']=_0x1b91a2['onDiscard'],this['_onAttributesChange']=_0x1b91a2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1b91a2['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 _0x332607=this;for(;_0x332607['previous'];)_0x332607=_0x332607['previous'];return _0x332607;}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'](_0x1295cd){this['_markerNames']['add'](_0x1295cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1ce04c=>this['_model']['markers']['get'](_0x1ce04c))['filter'](_0x1dba42=>_0x1dba42);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x9f478b=>{for(const _0x7fdea8 of this['getMarkers']())_0x9f478b['removeMarker'](_0x7fdea8);}),this['_markerNames']['clear']();}['removeMarker'](_0x7d9885){this['_model']['change'](_0xb4a5f4=>{_0xb4a5f4['removeMarker'](_0x7d9885);}),this['_markerNames']['delete'](_0x7d9885);}['addRange'](_0x2e8926){const _0x2e1e41='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x2e1e41),this['_model']['change'](_0x3f2fcf=>{_0x3f2fcf['addMarker'](_0x2e1e41,{'range':_0x2e8926,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x131908){for(const _0x5e8676 of this['getRanges']())if(_0x5e8676['isIntersecting'](_0x131908))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x53be99=>_0x53be99['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f9fcf,_0x1d89c3)=>[..._0x2f9fcf,..._0x1d89c3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x40a1f7=this['getRanges']();if(0x1!=_0x40a1f7['length'])return null;const _0x45c916=_0x40a1f7[0x0],_0x508d50=_0x45c916['start']['nodeAfter'],_0x39308a=_0x45c916['end']['nodeBefore'];return _0x508d50 instanceof _0x3c58d7?_0x508d50!=_0x39308a?null:_0x508d50: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 _0x5ee6d1=[];let _0x439f2a=this['head'];for(;_0x439f2a;)_0x5ee6d1['push'](_0x439f2a),_0x439f2a=_0x439f2a['next'];return _0x5ee6d1;}['setAttribute'](_0x8609e0,_0x19e4cb){const _0x537c6c=_0x29a6cc(this['attributes']);_0x143f09(_0x537c6c,_0x8609e0,_0x19e4cb),_0x313a6c(_0x537c6c,this['attributes'])||(this['attributes']=_0x537c6c,this['_onAttributesChange'](_0x537c6c));}['removeAttribute'](_0x1e25ef){const _0xb692b2=_0x29a6cc(this['attributes']);_0x4ffa4b(_0xb692b2,_0x1e25ef),_0x313a6c(_0xb692b2,this['attributes'])||(this['attributes']=_0xb692b2,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 _0x337574()['substr'](0x1,0x5);}}function o(_0x3f7050,_0x4e8eb0,_0x2abd29){const _0x1de2ae=_0x3f7050['t'],t=_0x3f7050['t'];switch(_0x4e8eb0){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',_0x2abd29);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2abd29);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2abd29);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2abd29);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2abd29);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',_0x2abd29);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2abd29);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',_0x2abd29);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2abd29);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2abd29);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2abd29);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2abd29);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2abd29);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2abd29);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2abd29);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2abd29);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2abd29);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2abd29);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2abd29);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2abd29);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2abd29);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2abd29);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2abd29);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2abd29);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2abd29);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'},_0x2abd29);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2abd29);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2abd29);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2abd29);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2abd29);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2abd29);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2abd29);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2abd29);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2abd29);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2abd29);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2abd29);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'},_0x2abd29);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'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x2abd29);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2abd29);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2abd29);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'},_0x2abd29);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2abd29);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 _0x1de2ae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2abd29);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1de2ae({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2abd29);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2abd29);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'},_0x2abd29);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'},_0x2abd29);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'},_0x2abd29);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4e8eb0;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xdceba9,_0x58cea8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xdceba9,this['_locale']=_0x58cea8;}['getDescriptions'](_0xd351f){const _0x19c044=[],_0x393c9e=new Set(),_0x3d533c=new Set();for(let _0x2ff4ea=0x0;_0x2ff4ea<_0xd351f['length'];_0x2ff4ea++){const _0x2ddd3b=_0xd351f[_0x2ff4ea];if(!_0x2ddd3b['isInContent'])continue;const _0x39a5c5=this['_handleCustomCallbackDescription'](_0x2ddd3b);if(_0x39a5c5){if(null!=_0x2ddd3b['subType']){if(_0x393c9e['has'](_0x2ddd3b['subType']))continue;_0x393c9e['add'](_0x2ddd3b['subType']);}_0x19c044['push'](_0x39a5c5);}else{if('attribute'==_0x2ddd3b['type']){const _0x228c21=_0x2ddd3b['data']['key'];if(_0x3d533c['has'](_0x228c21))continue;_0x3d533c['add'](_0x2ddd3b['data']['key']),_0x228c21==m?this['_handleRenameSuggestionDescription'](_0x19c044,_0x2ddd3b):this['_handleAttributeSuggestionDescription'](_0x19c044,_0x2ddd3b);continue;}'insertion'!=_0x2ddd3b['type']&&'deletion'!=_0x2ddd3b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19c044,_0x2ddd3b,_0xd351f[_0x2ff4ea+0x1]);}}return this['_resolveDescriptionItems'](_0x19c044);}['registerDescriptionCallback'](_0x2b019e){this['_customCallbacks']['push'](_0x2b019e);}['registerElementLabel'](_0x368b07,_0x2ae975,_0x4e0c05=_0x36d8eb['normal']){'function'==typeof _0x368b07?_0x3e47f3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x368b07,'label':_0x2ae975,'priority':_0x4e0c05}):this['_itemLabels']['set'](_0x368b07,_0x2ae975);}['registerAttributeLabel'](_0x30318c,_0x31e38c){this['_attributeLabels']['set'](_0x30318c,_0x31e38c);}['getItemLabel'](_0x1bead3,_0x3dc9c5=0x1){let _0x52865e;for(const _0x3f5618 of this['_itemLabelsCallbacks'])if(_0x3f5618['matchingCallback'](_0x1bead3)){_0x52865e=_0x3f5618['label'];break;}return _0x52865e||(_0x52865e=this['_itemLabels']['get'](_0x1bead3['name'])),_0x52865e?_0x52865e(_0x3dc9c5):0x1!==_0x3dc9c5?_0x3dc9c5+'\x20'+_0x1bead3['name']+'s':''+_0x1bead3['name'];}['_addDescriptionItems'](_0x3559cb,_0x9ef1ef){const _0x44bfba=_0x9ef1ef['getFirstRange']()['getWalker'](),_0x164183='insertion'==_0x9ef1ef['type']?'add':'remove';for(const _0x511e8a of _0x44bfba){const _0x407683=_0x511e8a['item'],_0xaadfb6=_0x3559cb[_0x3559cb['length']-0x1];if(_0x407683['is']('$textProxy'))_0xaadfb6&&_0xaadfb6['type']['indexOf']('Container')>-0x1&&_0x3559cb['pop'](),_0xaadfb6&&'text'==_0xaadfb6['type']?_0xaadfb6[_0x164183]+=_0x407683['data']:_0x3559cb['push']({'type':'text','add':'add'==_0x164183?_0x407683['data']:'','remove':'remove'==_0x164183?_0x407683['data']:''});else{if(this['_schema']['isObject'](_0x407683)){const _0x45c740=_0x407683;if(_0xaadfb6&&_0xaadfb6['type']['indexOf']('Container')>-0x1&&_0x3559cb['pop'](),'elementEnd'==_0x511e8a['type'])continue;_0xaadfb6&&_0xaadfb6['type']==_0x164183+'Object'&&_0xaadfb6['element']['name']==_0x45c740['name']?_0xaadfb6['quantity']++:_0x3559cb['push']({'type':_0x164183+'Object','element':_0x45c740,'quantity':0x1}),_0x44bfba['skip'](_0x2159b9=>!('elementEnd'==_0x2159b9['type']&&_0x2159b9['item']==_0x407683));}else{if(this['_schema']['checkChild'](_0x407683,'$text')||_0x407683['is']('element','softBreak')){const _0x1b65b8=_0x407683;if('add'==_0x164183&&'elementStart'==_0x511e8a['type']||'remove'==_0x164183&&'elementEnd'==_0x511e8a['type'])continue;if(_0xaadfb6&&-0x1==_0xaadfb6['type']['indexOf']('Container')){'text'==_0xaadfb6['type']&&(_0xaadfb6[_0x164183]+='\x0a');continue;}let _0x47b987;if(_0x47b987='add'==_0x164183?_0x1b65b8['nextSibling']&&!this['_schema']['isObject'](_0x1b65b8['nextSibling'])?_0x1b65b8['nextSibling']:null:_0x1b65b8['previousSibling']&&!this['_schema']['isObject'](_0x1b65b8['previousSibling'])?_0x1b65b8['previousSibling']:null,_0x1b65b8['isEmpty']||_0x47b987&&_0x47b987['isEmpty']){const _0x3c3aa7=_0x47b987&&_0x47b987['isEmpty']?_0x47b987:_0x1b65b8;_0xaadfb6&&_0xaadfb6['type']==_0x164183+'EmptyContainer'&&_0xaadfb6['element']['name']==_0x3c3aa7['name']?_0xaadfb6['quantity']++:_0x3559cb['push']({'type':_0x164183+'EmptyContainer','element':_0x3c3aa7,'quantity':0x1});}else _0x3559cb['push']({'type':_0x164183+'Container','element':_0x1b65b8});}}}}}['_resolveDescriptionItems'](_0x1590f8){const _0x32c99b=this['_locale'],_0x558c86=[],_0x2ea38b=[],_0x5049f2=[];for(const _0x5a2fd6 of _0x1590f8)switch(_0x5a2fd6['type']){case'text':if(_0x5a2fd6['add']=_0x5a2fd6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5a2fd6['remove']=_0x5a2fd6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5a2fd6['add']&&''!=_0x5a2fd6['remove']){_0x558c86['push']({'type':'replace','content':o(_0x32c99b,'REPLACE_TEXT',['\x22'+_0x5a2fd6['remove']+'\x22','\x22'+_0x5a2fd6['add']+'\x22'])});continue;}if(null!=_0x5a2fd6['add']['match'](/^ +$/)){_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Insert:*\x20%0',o(_0x32c99b,'ELEMENT_SPACE',_0x5a2fd6['add']['length']))});continue;}if(null!=_0x5a2fd6['remove']['match'](/^ +$/)){_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Remove:*\x20%0',o(_0x32c99b,'ELEMENT_SPACE',_0x5a2fd6['remove']['length']))});continue;}if(''!=_0x5a2fd6['add']){_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Insert:*\x20%0','\x22'+_0x5a2fd6['add']+'\x22')});continue;}_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Remove:*\x20%0','\x22'+_0x5a2fd6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Insert:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Remove:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'addContainer':_0x558c86['push']({'type':'insertion','content':o(_0x32c99b,'*Split:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'removeContainer':_0x558c86['push']({'type':'deletion','content':o(_0x32c99b,'*Merge:*\x20%0',this['getItemLabel'](_0x5a2fd6['element'],_0x5a2fd6['quantity']))});continue;case'addFormat':_0x2ea38b['push'](_0x5a2fd6['key']);continue;case'removeFormat':_0x5049f2['push'](_0x5a2fd6['key']);continue;default:_0x558c86['push'](_0x5a2fd6);}if(_0x2ea38b['length']){const _0xe7659c=_0x2ea38b['map'](_0x30ad9d=>this['_attributeLabels']['has'](_0x30ad9d)?this['_attributeLabels']['get'](_0x30ad9d):_0x30ad9d)['join'](',\x20');_0x558c86['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xe7659c)});}if(_0x5049f2['length']){const _0x2709db=_0x5049f2['map'](_0x472b09=>this['_attributeLabels']['has'](_0x472b09)?this['_attributeLabels']['get'](_0x472b09):_0x472b09)['join'](',\x20');_0x558c86['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2709db)});}return _0x558c86;}['_handleCustomCallbackDescription'](_0x1a2c74){for(const _0x584de6 of this['_customCallbacks']){const _0x1e7312=_0x584de6(_0x1a2c74);if(_0x1e7312&&'type'in _0x1e7312)return _0x1e7312;}}['_handleAttributeSuggestionDescription'](_0x367b09,_0x148a17){const _0x7c0e8a=_0x148a17['data'],_0x2ba956=void 0x0===_0x7c0e8a['newValue']?'removeFormat':'addFormat';_0x367b09['push']({'type':_0x2ba956,'key':_0x7c0e8a['key']});}['_handleRenameSuggestionDescription'](_0x14c27e,_0x1edbf7){_0x14c27e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1edbf7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51d033,_0x19c0c9,_0x2c4fa1){if(this['_addDescriptionItems'](_0x51d033,_0x19c0c9),_0x2c4fa1&&_0x2c4fa1['getFirstRange']()&&!_0x19c0c9['getFirstRange']()['end']['isEqual'](_0x2c4fa1['getFirstRange']()['start'])){const _0x543b9b=_0x51d033[_0x51d033['length']-0x1],_0x5dd4fd='insertion'==_0x19c0c9['type']?'add':'remove';_0x543b9b&&'text'==_0x543b9b['type']&&(_0x543b9b[_0x5dd4fd]+='\x0a');}}}class V extends _0x391ea2{['afterInit'](){const _0x3acb47=this['editor'],_0x3cbfd9=_0x3acb47['plugins']['get']('TrackChangesEditing');_0x3acb47['commands']['get']('showAIAssistant')&&_0x3cbfd9['enableCommand']('showAIAssistant');}}class F extends _0x391ea2{['afterInit'](){const _0x17e179=this['editor'],_0x15e5da=_0x17e179['locale'];if(!_0x17e179['plugins']['has']('AlignmentEditing'))return;const _0x5c23bc=_0x17e179['plugins']['get']('TrackChangesEditing');_0x5c23bc['enableDefaultAttributesIntegration']('alignment'),_0x5c23bc['registerBlockAttribute']('alignment'),_0x5c23bc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x15e5da,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f28ca=this['editor'],_0x5d8bbc=_0x5f28ca['locale'];_0x5f28ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc4259a=>{if('formatBlock'!=_0xc4259a['type'])return;const {data:_0x426c71}=_0xc4259a;if(_0x426c71&&'alignment'==_0x426c71['commandName']){const _0x5e8091=_0x426c71['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5d8bbc,'*Format:*\x20%0',function(_0x37147e){switch(_0x37147e){case'left':return o(_0x5d8bbc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5d8bbc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5d8bbc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5d8bbc,'FORMAT_JUSTIFY_TEXT');}}(_0x5e8091))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x391ea2{['afterInit'](){const _0x31f261=this['editor'],_0x36ea74=_0x31f261['plugins']['get']('TrackChangesEditing'),_0x246471=_0x31f261['locale'];for(const _0x425f26 of ti){if(!_0x31f261['plugins']['has'](_0x425f26))continue;const _0x326732=_0x425f26['slice'](0x0,-0x7)['toLowerCase'](),_0x3715dd='FORMAT_'+_0x326732['toUpperCase']();_0x36ea74['enableDefaultAttributesIntegration'](_0x326732),_0x36ea74['registerInlineAttribute'](_0x326732),_0x36ea74['descriptionFactory']['registerAttributeLabel'](_0x326732,o(_0x246471,_0x3715dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4047d5=this['editor'],_0x2fd856=_0x4047d5['locale'],_0x1e317f=_0x4047d5['plugins']['get']('TrackChangesEditing');function _0x3e7e21(_0x56d624,_0x920d38){_0x1e317f['descriptionFactory']['registerDescriptionCallback'](_0x18d76f=>{if('formatInline'!=_0x18d76f['type'])return;const {data:_0x7248ba}=_0x18d76f;return _0x7248ba&&_0x7248ba['commandName']===_0x56d624?_0x7248ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fd856,'*Format:*\x20%0',_0x920d38)}:{'type':'format','content':o(_0x2fd856,'*Remove\x20format:*\x20%0',_0x920d38)}:void 0x0;});}_0x3e7e21('bold',o(_0x2fd856,'FORMAT_BOLD')),_0x3e7e21('italic',o(_0x2fd856,'FORMAT_ITALIC')),_0x3e7e21('underline',o(_0x2fd856,'FORMAT_UNDERLINE')),_0x3e7e21('code',o(_0x2fd856,'FORMAT_CODE')),_0x3e7e21('strikethrough',o(_0x2fd856,'FORMAT_STRIKETHROUGH')),_0x3e7e21('subscript',o(_0x2fd856,'FORMAT_SUBSCRIPT')),_0x3e7e21('superscript',o(_0x2fd856,'FORMAT_SUPERSCRIPT'));}}class L extends _0x391ea2{['afterInit'](){const _0x512984=this['editor'],_0x96ca03=_0x512984['locale'];if(!_0x512984['plugins']['has']('BlockQuoteEditing'))return;const _0x50a81f=_0x512984['plugins']['get']('TrackChangesEditing'),_0x5ce89=this['editor']['commands']['get']('blockQuote');_0x50a81f['enableCommand']('blockQuote',(_0x7d412a,_0x2e9032={})=>{const _0x1dd7d2=this['editor']['model']['document']['selection'],_0x2781fa=_0x2e9032&&void 0x0!==_0x2e9032['forceValue']?_0x2e9032['forceValue']:!_0x5ce89['value'];let _0x163df5=[];if(_0x2781fa){const _0x34a20b=Array['from'](_0x1dd7d2['getSelectedBlocks']())['filter'](_0x14ddca=>oo(_0x14ddca)||function(_0x50539d,_0x1dd742){const _0x3858de=_0x1dd742['checkChild'](_0x50539d['parent'],'blockQuote'),_0xd520fb=_0x1dd742['checkChild'](['$root','blockQuote'],_0x50539d);return _0x3858de&&_0xd520fb;}(_0x14ddca,this['editor']['model']['schema']));_0x163df5=to(_0x34a20b,_0x512984['model']);}else{const _0x32b705=Array['from'](_0x1dd7d2['getSelectedBlocks']())['filter'](_0x79b20b=>oo(_0x79b20b));_0x163df5=to(_0x32b705,_0x512984['model']);}_0x512984['model']['change'](()=>{for(const _0x3f3dd1 of _0x163df5)_0x50a81f['markBlockFormat'](_0x3f3dd1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2781fa}]});});}),_0x50a81f['descriptionFactory']['registerDescriptionCallback'](_0x362ff6=>{const {data:_0x374574}=_0x362ff6;if(_0x374574&&'blockQuote'==_0x374574['commandName']){const _0x2a82cd=o(_0x96ca03,'ELEMENT_BLOCK_QUOTE');return _0x374574['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x96ca03,'*Set\x20format:*\x20%0',_0x2a82cd)}:{'type':'format','content':o(_0x96ca03,'*Remove\x20format:*\x20%0',_0x2a82cd)};}});}}function oo(_0x427954){return'blockQuote'==_0x427954['parent']['name'];}class J extends _0x391ea2{['afterInit'](){const _0x1743fa=this['editor'],_0x3eadcb=_0x1743fa['locale'],_0x56f478=_0x1743fa['plugins']['get']('TrackChangesEditing');_0x1743fa['plugins']['has']('BookmarkEditing')&&(_0x56f478['enableCommand']('insertBookmark'),_0x56f478['enableDefaultAttributesIntegration']('updateBookmark'),_0x56f478['registerBlockAttribute']('bookmarkId'),_0x56f478['descriptionFactory']['registerDescriptionCallback'](_0x5af732=>{if('insertion'!=_0x5af732['type']&&'deletion'!=_0x5af732['type']&&'attribute'!=_0x5af732['type'])return;const _0x5b3d61=_0x5af732['getContainedElement']();if(null==_0x5b3d61)return;if(!_0x5b3d61['is']('element','bookmark'))return;const _0xf6f910=_0x5b3d61['getAttribute']('bookmarkId');if('insertion'==_0x5af732['type'])return{'type':'insertion','content':o(_0x3eadcb,'*Insert:*\x20%0','\x22'+_0xf6f910+'\x22\x20'+o(_0x3eadcb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5af732['type'])return{'type':'deletion','content':o(_0x3eadcb,'*Remove:*\x20%0','\x22'+_0xf6f910+'\x22\x20'+o(_0x3eadcb,'ELEMENT_BOOKMARK'))};const {data:_0x47587d}=_0x5af732;if(!_0x47587d||'bookmarkId'!=_0x47587d['key'])return;return{'type':'format','content':o(_0x3eadcb,'*Set\x20bookmark:*\x20%0','\x22'+_0x47587d['newValue']+'\x22')};}));}}class K extends _0x391ea2{['afterInit'](){const _0x3a6d4c=this['editor'];_0x3a6d4c['plugins']['has']('CaseChange')&&(_0x3a6d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a6d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a6d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x391ea2{['afterInit'](){const _0x8f8042=this['editor'];_0x8f8042['commands']['get']('ckbox')&&_0x8f8042['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x391ea2{['afterInit'](){const _0x5f18c6=this['editor'];if(!_0x5f18c6['plugins']['has']('CodeBlock'))return;const _0x4d960f=_0x5f18c6['plugins']['get']('TrackChangesEditing'),_0x2094bc=_0x5f18c6['locale'],_0x3d4831=_0x5f18c6['config']['get']('codeBlock')['languages'],_0x7323b7=_0x5f18c6['commands']['get']('codeBlock');_0x4d960f['enableCommand']('indentCodeBlock'),_0x4d960f['enableCommand']('outdentCodeBlock'),_0x4d960f['enableCommand']('codeBlock',(_0x4052a8,_0x67ed83={})=>{const _0x312449=_0x5f18c6['model'],_0x2cd3b0=_0x5f18c6['model']['document']['selection'],_0x402dfd=_0x67ed83&&void 0x0!==_0x67ed83['forceValue']?_0x67ed83['forceValue']:!_0x7323b7['value'];let _0x247c65;_0x67ed83['language']||(_0x67ed83['language']=_0x3d4831[0x0]['language']),_0x247c65=_0x402dfd?Array['from'](_0x2cd3b0['getSelectedBlocks']())['filter'](_0x3e2661=>co(_0x3e2661)||function(_0xc2d974,_0x5ef623){if(_0xc2d974['is']('rootElement')||_0x5ef623['isLimit'](_0xc2d974))return!0x1;return _0x5ef623['checkChild'](_0xc2d974['parent'],'codeBlock');}(_0x3e2661,_0x312449['schema'])):Array['from'](_0x2cd3b0['getSelectedBlocks']())['filter'](_0x5653b7=>co(_0x5653b7));const _0x4e5027=to(_0x247c65,_0x312449);_0x312449['change'](()=>{for(const _0xf996b5 of _0x4e5027)_0x4d960f['markBlockFormat'](_0xf996b5,{'commandName':'codeBlock','commandParams':[{..._0x67ed83,'forceValue':_0x402dfd}],'formatGroupId':'blockName'});});}),(_0x4d960f['descriptionFactory']['registerElementLabel']('codeBlock',_0x3dd55b=>o(_0x2094bc,'ELEMENT_CODE_BLOCK',_0x3dd55b)),_0x4d960f['descriptionFactory']['registerDescriptionCallback'](_0xafa4f4=>{if('formatBlock'!=_0xafa4f4['type'])return;const _0x49af43=_0x2094bc['t'],{data:_0x41793c}=_0xafa4f4;if(!_0x41793c||'codeBlock'!=_0x41793c['commandName'])return;const _0x4af7b2=_0x41793c['commandParams'][0x0]['language'],_0x4b92be=_0x49af43(_0x3d4831['find'](_0x819e90=>_0x819e90['language']===_0x4af7b2)['label'])['toLowerCase']();return _0x41793c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2094bc,'*Set\x20format:*\x20%0',o(_0x2094bc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4b92be+')')}:{'type':'format','content':o(_0x2094bc,'*Remove\x20format:*\x20%0',o(_0x2094bc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4056dd){return'codeBlock'==_0x4056dd['name'];}class q extends _0x391ea2{['afterInit'](){const _0x4c5959=this['editor'];if(!_0x4c5959['plugins']['has']('CommentsEditing'))return;_0x4c5959['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x170250,_0x10c4b3,_0x22e358){const _0x223794=[];for(const _0x4db1cb of _0x10c4b3['getItems']())_0x4db1cb['hasAttribute'](_0x170250)&&_0x223794['push'](_0x22e358['createRangeOn'](_0x4db1cb));return _0x223794;}function Ge(_0x9d740b,_0x2bcc8a,{showActiveMarker:_0x7b86b1=!0x0}={}){const _0x2db56b=_0x9d740b['plugins']['get']('TrackChangesEditing');return(_0x568e98,_0x551121,_0x281abd)=>{if(!_0x281abd['consumable']['test'](_0x551121['markerRange'],_0x568e98['name']))return;const _0x40ed09=_0x551121['markerRange']['getWalker'](),_0x16b3b1=_0x551121['markerRange']['start'],_0x272485=_0x9d740b['model']['schema'];let _0x3ccdbd=null,_0x3f5044=null,_0x3e8202=!0x1,_0x339c56=!0x1;for(const _0x469c48 of _0x40ed09){const _0x111795=_0x469c48['item'];_0x3e8202=_0x3e8202||_0x272485['isContent'](_0x111795);const _0x3cd6b8=_0x281abd['mapper']['toViewElement'](_0x111795);if(_0x3cd6b8&&_0x3cd6b8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x469c48['type']&&(_0x272485['isBlock'](_0x111795)&&!_0x272485['isLimit'](_0x111795)&&(_0x111795['nextSibling']||_0x16b3b1['isAtEnd']?_0x3ccdbd&&_0x3ccdbd['parent']==_0x111795||(_0x3ccdbd=_0x111795,_0x217c26(_0x469c48['previousPosition']),_0x339c56=!0x0):_0x3f5044=_0x3f5044||_0x469c48['previousPosition']));}function _0x217c26(_0x1dd7c4){const {id:_0x2321d9,authorId:_0x1f89a7}=_0x2db56b['_splitMarkerName'](_0x551121['markerName']),_0x16b70b=_0x281abd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bcc8a,'data-suggestion':_0x2321d9,'data-author-id':_0x1f89a7}),_0x1bfa32=_0x281abd['mapper']['toViewPosition'](_0x1dd7c4);_0x7b86b1&&_0x2db56b['activeMarkers']['includes'](_0x551121['markerName'])&&_0x281abd['writer']['addClass']('ck-suggestion-marker--active',_0x16b70b),_0x281abd['writer']['insert'](_0x1bfa32,_0x16b70b),_0x281abd['mapper']['bindElementToMarker'](_0x16b70b,_0x551121['markerName']);}_0x3e8202||_0x339c56||!_0x3f5044||_0x217c26(_0x3f5044);};}class z extends _0x391ea2{static get['requires'](){return[_0x4bb6d0];}['init'](){const _0x57587d=this['editor'],_0x1b6248=_0x57587d['plugins']['get']('TrackChangesEditing');_0x1b6248['enableCommand']('delete');const _0x16ef52=_0x57587d['commands']['get']('deleteForward');_0x1b6248['enableCommand']('deleteForward',(_0x41446b,_0x1d571f={})=>{const _0x489f24=_0x57587d['model']['createSelection'](_0x57587d['model']['document']['selection']);_0x489f24['isCollapsed']&&_0x57587d['model']['modifySelection'](_0x489f24,{'direction':'forward','unit':_0x1d571f['unit']});const _0x4b6b3d=_0x489f24['getFirstRange'](),_0x1e7478=_0x4c47d7['fromRange'](_0x4b6b3d);let _0x16887f;_0x41446b(_0x1d571f),_0x16887f='$graveyard'==_0x1e7478['root']['rootName']?_0x57587d['model']['createRange'](_0x4b6b3d['start']):_0x57587d['model']['createRange'](_0x1e7478['start'],_0x1e7478['end']),_0x1e7478['detach'](),_0x57587d['model']['enqueueChange'](_0x16ef52['buffer']['batch'],_0x546b15=>{_0x16ef52['buffer']['lock'](),_0x546b15['setSelection'](_0x546b15['createRange'](_0x16887f['end'])),_0x16ef52['buffer']['unlock']();});}),_0x57587d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x57587d,'merge'),{'priority':'high'}),_0x57587d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e506c,_0x14a30e,_0x5d6897)=>{_0x5d6897['options']['showSuggestionHighlights']&&Ge(_0x57587d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4e506c,_0x14a30e,_0x5d6897);},{'priority':'high'}),_0x57587d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e86ba,_0x5d33c7,_0x4938a9)=>{const _0xfe5b4b=_0x4938a9['mapper']['markerNameToElements'](_0x5d33c7['markerName']);if(_0xfe5b4b){for(const _0x4caf9e of _0xfe5b4b)_0x4caf9e['is']('uiElement')&&(_0x4938a9['mapper']['unbindElementFromMarkerName'](_0x4caf9e,_0x5d33c7['markerName']),_0x4938a9['writer']['remove'](_0x4caf9e));}},{'priority':'high'});}}class Q extends _0x391ea2{['afterInit'](){const _0x22e43f=this['editor'];if(!_0x22e43f['plugins']['has']('ListEditing'))return;const _0x16b321=_0x22e43f['locale'],_0x38bf63=_0x22e43f['plugins']['get']('TrackChangesEditing'),_0x359e3e=_0x22e43f['plugins']['has']('TodoListEditing'),_0x3356df=!!_0x22e43f['config']['get']('list.multiBlock');function _0x13c09e(_0x34dc5a){return{'type':'format','content':''+o(_0x16b321,'*Set\x20format:*\x20%0',_0x34dc5a)};}function _0x2f584c(_0x4a67b1){return{'type':'format','content':''+o(_0x16b321,'*Remove\x20format:*\x20%0',_0x4a67b1)};}_0x38bf63['enableDefaultAttributesIntegration']('numberedList'),_0x38bf63['enableDefaultAttributesIntegration']('bulletedList'),_0x38bf63['enableDefaultAttributesIntegration']('customNumberedList'),_0x38bf63['enableDefaultAttributesIntegration']('customBulletedList'),_0x38bf63['enableDefaultAttributesIntegration']('indentList'),_0x38bf63['enableDefaultAttributesIntegration']('outdentList'),_0x38bf63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x38bf63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38bf63['registerBlockAttribute']('listItemId'),_0x38bf63['registerBlockAttribute']('listType'),_0x38bf63['registerBlockAttribute']('listIndent'),_0x3356df&&(_0x38bf63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x38bf63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x359e3e&&(_0x38bf63['enableDefaultAttributesIntegration']('todoList'),_0x38bf63['enableDefaultAttributesIntegration']('checkTodoList'),_0x38bf63['registerBlockAttribute']('todoListChecked'),_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x2d6c84=>{const {data:_0x511496}=_0x2d6c84;if(_0x511496&&'todoListChecked'==_0x511496['key'])return{'type':'format','content':_0x511496['newValue']?o(_0x16b321,'*Check\x20item*'):o(_0x16b321,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1123d0=>{if(_0x1123d0['batch']['isUndo'])return!0x1;let _0x2243ac=!0x1;const _0x33dd72=_0x38bf63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d2cc3=>'todoListChecked'===_0x38bf63['_getAttributeKey'](_0x4d2cc3));for(const _0x3358d4 of _0x33dd72){'todo'!=_0x3358d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x38bf63['_findSuggestions'](_0x3358d4['getFirstRange'](),'attribute')['find'](_0x353e18=>'listType'===_0x38bf63['_getAttributeKey'](_0x353e18['suggestion']))||(_0x1123d0['removeMarker'](_0x3358d4['getFirstMarker']()),_0x2243ac=!0x0));}return _0x2243ac;})),_0x38bf63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x16b321,'FORMAT_INDENT'));const _0x5bd1f2={'type':'format','content':''};_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x50a697=>{const {data:_0x37b51b}=_0x50a697;if(!_0x37b51b||'listType'!=_0x37b51b['key'])return;let _0x4731ef=_0x50a697['head'];for(;_0x4731ef;){if(_0x4731ef['data']&&(('listStyle'==_0x4731ef['data']['key']||'listMarkerStyle'==_0x4731ef['data']['key'])&&(_0x4731ef['data']['newValue']&&'default'!=_0x4731ef['data']['newValue']||'default'!=_0x4731ef['data']['oldValue']&&!_0x37b51b['newValue'])||!_0x3356df&&_0x4731ef['data']['key']==m))return _0x5bd1f2;_0x4731ef=_0x4731ef['next'];}if(null==_0x37b51b['newValue'])switch(_0x37b51b['oldValue']){case'bulleted':return _0x2f584c(o(_0x16b321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f584c(o(_0x16b321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f584c(o(_0x16b321,'ELEMENT_TODO_LIST'));}switch(_0x37b51b['newValue']){case'bulleted':return _0x13c09e(o(_0x16b321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13c09e(o(_0x16b321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13c09e(o(_0x16b321,'ELEMENT_TODO_LIST'));}}),_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x12b5f4=>{const {data:_0x148c6d}=_0x12b5f4;if(_0x148c6d&&'listIndent'==_0x148c6d['key'])return null==_0x148c6d['newValue']||null==_0x148c6d['oldValue']&&0x0==_0x148c6d['newValue']?_0x5bd1f2:void 0x0;}),_0x38bf63['descriptionFactory']['registerDescriptionCallback'](_0x555d1a=>{if('attribute'!=_0x555d1a['type'])return;const {data:_0x18d1e8}=_0x555d1a;if(!_0x18d1e8||'listItemId'!=_0x18d1e8['key'])return;const _0x3910af=Be(_0x555d1a);return'newValue'==_0x3910af?{'type':'format','content':o(_0x16b321,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3910af?{'type':'format','content':o(_0x16b321,'*Split:*\x20list\x20item')}:_0x5bd1f2;}),_0x22e43f['model']['document']['registerPostFixer'](_0x213523=>this['listItemIdFixer'](_0x213523)),_0x22e43f['model']['document']['registerPostFixer'](_0x4caefc=>this['noTrackChangesFixer'](_0x4caefc)),_0x22e43f['model']['document']['on']('change:data',(_0x1cdb01,_0x51f105)=>{if(_0x51f105['isUndo']||!_0x51f105['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x6d2e97){if(_0x6d2e97['batch']['isUndo']||!_0x6d2e97['batch']['isLocal'])return!0x1;let _0x5b0195=!0x1;const _0x25ae4e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x445f9c=>_0x445f9c['data']&&'listItemId'==_0x445f9c['data']['key'])['filter'](_0x3ec52d=>_0x3ec52d['data']['newValue']&&_0x3ec52d['data']['oldValue']);for(const _0x489572 of _0x25ae4e)Be(_0x489572)||(_0x6d2e97['removeMarker'](_0x489572['getFirstMarker']()),_0x5b0195=!0x0);return _0x5b0195;}['noTrackChangesFixer'](_0x4d1a34){if(_0x4d1a34['batch']['isUndo']||!_0x4d1a34['batch']['isLocal'])return!0x1;const _0x44c52d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x44c52d['trackChangesCommand']['value'])return!0x1;let _0x1717d7=!0x1;const _0x1c3f83=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf51a8b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x108bc7=>'attribute'==_0x108bc7['type'])['filter'](_0x2d2537=>_0x1c3f83['includes'](_0x2d2537['attributeKey']));if(0x0==_0xf51a8b['length'])return _0x1717d7;for(const _0x58c917 of _0xf51a8b){const _0x21716e=_0x44c52d['_findSuggestions'](_0x58c917['range'],'attribute')['filter'](_0x189dc8=>!_0x189dc8['meta']['isNextTo'])['map'](_0x272474=>_0x272474['suggestion'])['filter'](_0x3c3023=>{const _0x42e2e1=_0x44c52d['_getAttributeKey'](_0x3c3023);return _0x1c3f83['includes'](_0x42e2e1);});if(_0x21716e['length']){for(const _0x355e51 of _0x21716e)_0x4d1a34['removeMarker'](_0x355e51['getFirstMarker']());_0x1717d7=!0x0;}}return _0x1717d7;}['assureChains'](){const _0x77ed32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50e112=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x25ef44;const _0x3ef159=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cce81=>{if(_0x2cce81['data']['oldRange']||!_0x2cce81['data']['newRange'])return null;if(!_0x2cce81['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x246302}=_0x77ed32['_splitMarkerName'](_0x2cce81['name']);if(!_0x77ed32['hasSuggestion'](_0x246302))return null;const _0x536d83=_0x77ed32['getSuggestion'](_0x246302);return _0x50e112['includes'](_0x536d83['data']['key']);})['map'](_0x40803c=>{const {id:_0x567ea2}=_0x77ed32['_splitMarkerName'](_0x40803c['name']),_0x5861b0=_0x77ed32['getSuggestion'](_0x567ea2);return _0x25ef44=_0x5861b0['attributes']['groupId'],_0x5861b0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ef159['size'])return;const _0x2d2685=_0x77ed32['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4988bc=>'attribute'==_0x4988bc['type']&&_0x4988bc['data']&&_0x50e112['includes'](_0x4988bc['data']['key'])&&_0x4988bc['attributes']['groupId']!=_0x25ef44)['map'](_0x4531cc=>({'listItem':_0x4531cc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4531cc['attributes']['groupId']})),_0x54c913=new Set();for(const {groupId:_0x196ff9,listItem:_0x4524e1}of _0x2d2685)_0x3ef159['has'](_0x4524e1)&&_0x54c913['add'](_0x196ff9);for(const _0x4c8b10 of _0x77ed32['getSuggestions']())_0x54c913['has'](_0x4c8b10['attributes']['groupId'])&&_0x4c8b10['setAttribute']('groupId',_0x25ef44);}['_supportLegacySuggestions'](){const _0x5db998=this['editor'],_0xfa4dc4=_0x5db998['locale'],_0x50bd04=_0x5db998['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x50bd04['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x53f8fd,_0x300f6b){const _0x563f28=[];for(let _0x3936fd of _0x53f8fd)_0x3936fd['start']['nodeAfter']===_0x3936fd['end']['parent']&&(_0x3936fd=_0x5db998['model']['createRange'](_0x5db998['model']['createPositionAt'](_0x3936fd['start']['nodeAfter'],0x0))),_0x563f28['push'](_0x3936fd);_0x5db998['model']['change'](_0x47631e=>{const _0x1d4422=_0x5db998['model']['document']['selection'],_0x4f1949=Array['from'](_0x1d4422['getRanges']())['map'](_0x3341dd=>_0x4c47d7['fromRange'](_0x3341dd));_0x47631e['setSelection'](_0x563f28),_0x5db998['commands']['get'](_0x300f6b['commandName'])['refresh'](),_0x300f6b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5db998['execute'](_0x300f6b['commandName'],..._0x300f6b['commandParams']),_0x47631e['setSelection'](_0x4f1949);for(const _0x26c305 of _0x4f1949)_0x26c305['detach']();});}),_0x50bd04['descriptionFactory']['registerElementLabel'](function(_0x2e1dba){const _0x86bf20=!_0x5db998['model']['schema']['isObject'](_0x2e1dba),_0x203d5d=_0x2e1dba['previousSibling'],_0x45c10b=_0x2e1dba['nextSibling'],_0x45ff87=_0x2e1dba['getAttribute']('listItemId'),_0x13aaf7=!_0x203d5d||_0x203d5d['getAttribute']('listItemId')!==_0x45ff87,_0x5a88bf=!_0x45c10b||_0x45c10b['getAttribute']('listItemId')!==_0x45ff87;return _0x86bf20&&Boolean(_0x45ff87)&&_0x13aaf7&&_0x5a88bf;},_0x424abd=>o(_0xfa4dc4,'ELEMENT_LIST_ITEM',_0x424abd));}['_registerLegacyDescription'](){const _0xfaaf72=this['editor'],_0xf52096=_0xfaaf72['locale'];function _0x258999(_0x2c3266){const _0xa8e0a8=_0xfaaf72['commands']['get']('bulletedList')['value'],_0x323600=_0xfaaf72['commands']['get']('numberedList')['value'];return'numberedList'===_0x2c3266?_0xa8e0a8:_0x323600;}_0xfaaf72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3cdba9){if('formatBlock'!=_0x3cdba9['type'])return;const {data:_0x16be98}=_0x3cdba9;if(!_0x16be98)return;let _0x20bb4d,_0x11b657,_0x2161b4,_0x49551a;switch(_0x16be98['commandName']){case'bulletedList':_0x2161b4=_0x16be98['commandParams'][0x0]['forceValue'],_0x49551a=_0x258999(_0x16be98['commandName']),_0x20bb4d=_0x2161b4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49551a&&_0xfaaf72['config']['get']('list.multiBlock')||(_0x20bb4d='*Change\x20to:*\x20%0'),_0x11b657={'type':'format','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2161b4=_0x16be98['commandParams'][0x0]['forceValue'],_0x49551a=_0x258999(_0x16be98['commandName']),_0x20bb4d=_0x2161b4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49551a&&_0xfaaf72['config']['get']('list.multiBlock')||(_0x20bb4d='*Change\x20to:*\x20%0'),_0x11b657={'type':'format','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20bb4d='*Indent:*\x20%0',_0x11b657={'type':'format','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20bb4d=function(_0x2225b2){const _0x268567=_0x2225b2['getFirstRange']();let _0x3a70fa=_0x268567['start']['nodeAfter'];for(;_0x3a70fa&&_0x268567['containsItem'](_0x3a70fa);){if(_0x3a70fa['getAttribute']('listIndent')>0x0)return!0x1;_0x3a70fa=_0x3a70fa['nextSibling'];}return!0x0;}(_0x3cdba9)?o(_0xf52096,'*Format:*\x20remove\x20from\x20%0',o(_0xf52096,function(_0xa9d809){return'ELEMENT_'+_0xa9d809['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3cdba9))):o(_0xf52096,'*Outdent:*\x20%0',o(_0xf52096,'ELEMENT_LIST_ITEM')),_0x11b657={'type':'format','content':_0x20bb4d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x16be98['multipleBlocks']&&(_0x20bb4d='*Merge:*\x20%0',_0x11b657={'type':'deletion','content':o(_0xf52096,_0x20bb4d,o(_0xf52096,'ELEMENT_LIST_ITEM'))});}return _0x11b657;});}}function Be(_0x2895a4){let _0x32183e=_0x2895a4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x32183e;){const _0xde03fe=_0x32183e['getAttribute']('listItemId');if(!_0xde03fe)return!0x1;if(_0xde03fe==_0x2895a4['data']['newValue'])return'newValue';if(_0xde03fe==_0x2895a4['data']['oldValue'])return'oldValue';_0x32183e=_0x32183e['previousSibling'];}return!0x1;}class X extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f257e=this['editor']['config']['get']('list.properties'),_0x4a801e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f257e['styles']&&(_0x4a801e['enableDefaultAttributesIntegration']('listStyle'),_0x4a801e['registerBlockAttribute']('listStyle')),_0x5f257e['reversed']&&(_0x4a801e['enableDefaultAttributesIntegration']('listReversed'),_0x4a801e['registerBlockAttribute']('listReversed')),_0x5f257e['startIndex']&&(_0x4a801e['enableDefaultAttributesIntegration']('listStart'),_0x4a801e['registerBlockAttribute']('listStart'));const _0x89287c={'type':'format','content':''};_0x4a801e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x305f66=this['editor']['locale'];_0x4a801e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x305f66,'FORMAT_LIST_REVERSED')),_0x4a801e['descriptionFactory']['registerDescriptionCallback'](_0x23fd58=>{const {data:_0xa539a5}=_0x23fd58;if(_0xa539a5&&'listReversed'==_0xa539a5['key'])return null==_0xa539a5['newValue']||0x0==_0xa539a5['newValue']&&null==_0xa539a5['oldValue']?_0x89287c:void 0x0;}),_0x4a801e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x305f66,'FORMAT_LIST_START')),_0x4a801e['descriptionFactory']['registerDescriptionCallback'](_0x2915ff=>{const {data:_0x3ab7aa}=_0x2915ff;if(_0x3ab7aa&&'listStart'==_0x3ab7aa['key'])return null==_0x3ab7aa['newValue']||0x1==_0x3ab7aa['newValue']&&null==_0x3ab7aa['oldValue']?_0x89287c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3143cc=>{if(_0x3143cc['batch']['isUndo'])return!0x1;let _0x473cef=!0x1;const _0x2760cc=_0x4a801e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4af17e=>{const _0x212178=_0x4a801e['_getAttributeKey'](_0x4af17e);return'listStart'==_0x212178||'listReversed'==_0x212178;});for(const _0x3d8c34 of _0x2760cc){const _0xdfb603=_0x3d8c34['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xdfb603||'customNumbered'==_0xdfb603)continue;_0x4a801e['_findSuggestions'](_0x3d8c34['getFirstRange'](),'attribute')['find'](_0x21aaba=>'listType'==_0x4a801e['_getAttributeKey'](_0x21aaba['suggestion']))||(_0x3143cc['removeMarker'](_0x3d8c34['getFirstMarker']()),_0x473cef=!0x0);}return _0x473cef;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3215be){const _0x5aeaa5=this['editor']['locale'],{data:_0xcbe279}=_0x3215be,_0xd7cd64={'type':'format','content':''};if(!_0xcbe279||'listStyle'!=_0xcbe279['key'])return;if(!_0xcbe279['oldValue'])return'default'==_0xcbe279['newValue']?_0xd7cd64:{'type':'format','content':''+o(_0x5aeaa5,'*Set\x20format:*\x20%0',o(_0x5aeaa5,this['_getTranslationKeyForListStyle'](_0xcbe279['newValue'])))};if(!_0xcbe279['newValue']){if('default'==_0xcbe279['oldValue'])return _0xd7cd64;let _0x5e8ca1=_0x3215be['head'];for(;_0x5e8ca1;){if(_0x5e8ca1['data']&&'listType'==_0x5e8ca1['data']['key']&&_0x5e8ca1['data']['newValue'])return _0xd7cd64;_0x5e8ca1=_0x5e8ca1['next'];}return{'type':'format','content':''+o(_0x5aeaa5,'*Remove\x20format:*\x20%0',o(_0x5aeaa5,this['_getTranslationKeyForListStyle'](_0xcbe279['oldValue'])))};}if('default'!=_0xcbe279['newValue'])return{'type':'format','content':''+o(_0x5aeaa5,'*Set\x20format:*\x20%0',o(_0x5aeaa5,this['_getTranslationKeyForListStyle'](_0xcbe279['newValue'])))};let _0x54b530=_0x3215be['head'];for(;_0x54b530;){if(_0x54b530['data']&&'listType'==_0x54b530['data']['key']&&_0x54b530['data']['newValue']&&_0x54b530['data']['oldValue'])return _0xd7cd64;_0x54b530=_0x54b530['next'];}return{'type':'format','content':o(_0x5aeaa5,'*Set\x20format:*\x20%0',o(_0x5aeaa5,'ELEMENT_'+_0x3215be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e9eff=this['editor'],_0x3bcd7b=_0x1e9eff['locale'];_0x1e9eff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb84044=>{if('formatBlock'!=_0xb84044['type'])return;const {data:_0x4f24c6}=_0xb84044;if(!_0x4f24c6)return;let _0x35aec3,_0x5e60fa;switch(_0x4f24c6['commandName']){case'listStyle':_0x35aec3='*Change\x20to:*\x20%0',_0x5e60fa={'type':'format','content':o(_0x3bcd7b,_0x35aec3,o(_0x3bcd7b,this['_getTranslationKeyForListStyle'](_0x4f24c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35aec3=_0x4f24c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e60fa={'type':'format','content':o(_0x3bcd7b,_0x35aec3)};break;case'listStart':_0x35aec3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e60fa={'type':'format','content':o(_0x3bcd7b,_0x35aec3,_0x4f24c6['commandParams'][0x0]['startIndex'])};}return _0x5e60fa;});}['_getTranslationKeyForListStyle'](_0x2c1172){return'ELEMENT_'+function(_0x23bbac){if(Re['includes'](_0x23bbac))return'bulleted';if(Fe['includes'](_0x23bbac))return'numbered';return null;}(_0x2c1172)['toUpperCase']()+'_LIST_'+_0x2c1172['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x391ea2{['afterInit'](){const _0x15625f=this['editor'];_0x15625f['commands']['get']('emoji')&&_0x15625f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x391ea2{static get['requires'](){return[_0x28e4c7];}['init'](){const _0x47393f=this['editor'],_0x575ed3=_0x47393f['plugins']['get']('TrackChangesEditing'),_0x3f69d8=_0x47393f['commands']['get']('enter');_0x575ed3['enableCommand']('enter',()=>{_0x47393f['model']['change'](_0x478ca3=>{const _0x2376e0=_0x47393f['model']['document']['selection'],_0x31d7d1=_0x2376e0['getFirstPosition'](),_0x3df913=_0x4c47d7['fromRange'](_0x2376e0['getFirstRange']());if(_0x3f69d8['enterBlock'](_0x478ca3)){const _0x2c388=_0x47393f['model']['createPositionAt'](_0x31d7d1['parent']['nextSibling'],0x0),_0x391117=_0x478ca3['createRange'](_0x31d7d1,_0x2c388);_0x575ed3['markInsertion'](_0x391117);}else _0x478ca3['setSelection'](_0x478ca3['createRange'](_0x3df913['end']));_0x3df913['detach'](),_0x3f69d8['fire']('afterExecute',{'writer':_0x478ca3});});}),_0x47393f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x47393f,'split'),{'priority':'high'}),_0x47393f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27c859,_0xd5175e,_0x5c2ef2)=>{const _0x38e191=_0x5c2ef2['mapper']['markerNameToElements'](_0xd5175e['markerName']);if(_0x38e191){for(const _0x31f51e of _0x38e191)_0x31f51e['hasClass']('ck-suggestion-marker-split')&&(_0x5c2ef2['mapper']['unbindElementFromMarkerName'](_0x31f51e,_0xd5175e['markerName']),_0x5c2ef2['writer']['remove'](_0x31f51e));}},{'priority':'high'}),_0x47393f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x206584,_0x4ea229,_0x46a27e)=>{_0x46a27e['options']['showSuggestionHighlights']&&Ge(_0x47393f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x206584,_0x4ea229,_0x46a27e);},{'priority':'high'});}}class tt extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x95f7de=this['editor']['plugins']['get']('TrackChangesEditing');_0x95f7de['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x95f7de['enableCommand']('findNext'),_0x95f7de['enableCommand']('findPrevious'),_0x95f7de['enableCommand']('replace'),_0x95f7de['enableCommand']('replaceAll');}['handleFindCommand'](_0x241c1d,_0x215512,_0x5ec723={}){const _0x33e064=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x241c1d(_0x3d049c=>{let _0x510e56=('string'==typeof _0x215512?_0x33e064['findByTextCallback'](_0x215512,_0x5ec723):_0x215512)(_0x3d049c);Array['isArray'](_0x510e56)&&(_0x510e56={'results':_0x510e56,'searchText':'string'==typeof _0x215512?_0x215512:''});const _0x41b165=_0x510e56['results']['filter'](_0x5b4c1e=>!0x1===this['_isInDeletionRange'](_0x5b4c1e,_0x3d049c['item']));return{..._0x510e56,'results':_0x41b165};},_0x5ec723);}['_isInDeletionRange'](_0xfc5361,_0x1482a5){const _0x4cd6ac=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1482a5,_0xfc5361['start']),this['editor']['model']['createPositionAt'](_0x1482a5,_0xfc5361['end']));for(const _0x784884 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4cd6ac['getIntersection'](_0x784884['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x391ea2{['afterInit'](){const _0x1e2ac7=this['editor']['locale'],_0x4ad3c6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2cc642,commandName:_0x301378}of eo)this['editor']['plugins']['has'](_0x2cc642)&&(_0x4ad3c6['enableDefaultAttributesIntegration'](_0x301378),_0x4ad3c6['registerInlineAttribute'](_0x301378));_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1e2ac7,'FORMAT_FONT_SIZE')),_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1e2ac7,'FORMAT_FONT_FAMILY')),_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1e2ac7,'FORMAT_FONT_COLOR')),_0x4ad3c6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1e2ac7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d3325=this['editor'],_0x5ae156=_0x5d3325['locale'];_0x5d3325['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaa8025=>{const _0x27216b=_0x5ae156['t'];if('formatInline'!=_0xaa8025['type'])return;const {data:_0x3b8e8d}=_0xaa8025;if(null!=_0x3b8e8d){if('fontSize'==_0x3b8e8d['commandName']){const _0x27da0f=_0x3b8e8d['commandParams'][0x0]['value'];if(_0x27da0f){const _0x38f96d=_0x27216b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xedd216=>_0xedd216['model']==_0x27da0f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20size:*\x20%0',_0x38f96d)};}return{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3b8e8d['commandName']){const _0x54de0c=_0x3b8e8d['commandParams'][0x0]['value'];return _0x54de0c?{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20family:*\x20%0',_0x54de0c)}:{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3b8e8d['commandName']){const _0x19874c=_0x3b8e8d['commandParams'][0x0]['value'];if(_0x19874c){const _0x366733=_0xe51466(this['editor']['config']['get']('fontColor.colors'))['find'](_0x19c37a=>_0x19c37a['model']==_0x19874c);let _0x1badb0=_0x19874c,_0x3f1098='';return _0x366733&&(_0x1badb0=_0x366733['label'],_0x3f1098=_0x27216b(_0x1badb0)['toLowerCase']()),{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20color:*\x20%0',_0x3f1098)['trim'](),'color':{'value':_0x19874c,'title':_0x3f1098||_0x1badb0}};}return{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3b8e8d['commandName']){const _0x4cbfb7=_0x3b8e8d['commandParams'][0x0]['value'];if(_0x4cbfb7){const _0x3cf18a=_0xe51466(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1440f1=>_0x1440f1['model']==_0x4cbfb7);let _0xb54eab=_0x4cbfb7,_0x159cc6='';return _0x3cf18a&&(_0xb54eab=_0x3cf18a['label'],_0x159cc6=_0x27216b(_0xb54eab)['toLowerCase']()),{'type':'format','content':o(_0x5ae156,'*Set\x20font\x20background\x20color:*\x20%0',_0x159cc6)['trim'](),'color':{'value':_0x4cbfb7,'title':_0x159cc6||_0xb54eab}};}return{'type':'format','content':o(_0x5ae156,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x391ea2{['afterInit'](){const _0x19733e=this['editor'],_0x44e4cf=_0x19733e['plugins']['get']('TrackChangesEditing'),_0x5c7c26=_0x19733e['commands']['get']('copyFormat'),_0x23668b=_0x19733e['commands']['get']('pasteFormat');_0x5c7c26&&_0x23668b&&(_0x44e4cf['enableDefaultAttributesIntegration']('pasteFormat'),_0x44e4cf['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x207d36=this['editor'],_0x1ddf17=_0x207d36['locale'];_0x207d36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fb2eb=>{if('formatBlock'!=_0x1fb2eb['type']&&'formatInline'!=_0x1fb2eb['type'])return;const {data:_0x241af3}=_0x1fb2eb;if(_0x241af3&&'pasteFormat'===_0x241af3['commandName']){const _0x2a9faf=[],_0x5cce27=_0x241af3['commandParams'][0x0];for(const [_0x26ea3a,_0x20d4ef]of Object['entries'](_0x5cce27))_0x2a9faf['push'](ro(_0x207d36,_0x26ea3a,_0x20d4ef));return _0x2a9faf['length']?{'type':'format','content':o(_0x1ddf17,'*Set\x20format\x20to:*\x20%0',_0x2a9faf['join'](',\x20'))}:{'type':'format','content':o(_0x1ddf17,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x116080,_0x1d5324,_0x15d895){const _0x59a6dd=_0x116080['locale']['t'],_0x16d7e7=_0x1d5324['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e6cfa=_0x59a6dd(_0x16d7e7['charAt'](0x0)['toUpperCase']()+_0x16d7e7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x15d895)return _0x5e6cfa;if('fontColor'===_0x1d5324||'fontBackgroundColor'===_0x1d5324){const _0x7cd69b=_0xe51466(_0x116080['config']['get']('fontColor.colors'))['find'](_0xa81d5f=>_0xa81d5f['model']==_0x15d895);return _0x5e6cfa+'\x20('+(_0x7cd69b?_0x59a6dd(_0x7cd69b['label'])['toLowerCase']():_0x15d895)+')';}if('fontSize'===_0x1d5324&&isNaN(parseFloat(_0x15d895))){const _0x5cb917=_0x116080['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x116080['config']['get']('fontSize.options'))['find'](_0xe29721=>_0xe29721['model']==_0x15d895);return _0x5e6cfa+'\x20('+(_0x5cb917?_0x59a6dd(_0x5cb917['title'])['toLowerCase']():_0x15d895)+')';}return _0x5e6cfa+'\x20('+_0x15d895+')';}class nt extends _0x391ea2{['_headingOptions'];['afterInit'](){const _0x680a04=this['editor'];if(!_0x680a04['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x680a04['config']['get']('heading.options');const _0x47344b=_0x680a04['locale'],_0x55b632=_0x680a04['plugins']['get']('TrackChangesEditing');_0x55b632['enableDefaultAttributesIntegration']('heading');for(const _0x58d072 of this['_headingOptions'])'paragraph'!=_0x58d072['model']&&_0x55b632['descriptionFactory']['registerElementLabel'](_0x58d072['model'],_0x21ee12=>{const _0x2080a3=this['_getHeadingLevel'](_0x58d072['model']);return null!==_0x2080a3?_0x9d35ab(_0x21ee12,_0x2080a3):_0x134f56(_0x21ee12,_0x58d072['title']);});function _0x9d35ab(_0x597723,_0x425e12){return o(_0x47344b,'ELEMENT_HEADING',[_0x597723,_0x425e12]);}function _0x134f56(_0x5d0712,_0x4da698){return o(_0x47344b,'ELEMENT_HEADING_CUSTOM',[_0x5d0712,_0x4da698]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd4fcb=this['editor'],_0x32157=_0xbd4fcb['locale'];function _0xe8c58(_0x2954e8,_0x486e25){return o(_0x32157,'ELEMENT_HEADING_CUSTOM',[_0x2954e8,_0x486e25]);}_0xbd4fcb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55a1cc=>{if('formatBlock'!=_0x55a1cc['type'])return;const {data:_0x1ff205}=_0x55a1cc;if(_0x1ff205&&'heading'==_0x1ff205['commandName']){const _0x18891b=_0x1ff205['commandParams'][0x0]['value'],_0x3d4036=this['_getHeadingLevel'](_0x18891b);if(null!==_0x3d4036)return{'type':'format','content':o(_0x32157,'*Change\x20to:*\x20%0',(_0x16a147=0x1,_0x5bef95=_0x3d4036,o(_0x32157,'ELEMENT_HEADING',[_0x16a147,_0x5bef95])))};const _0x1fd2c9=this['_headingOptions']['find'](_0x2828cc=>_0x2828cc['model']===_0x18891b)['title'];return{'type':'format','content':o(_0x32157,'*Change\x20to:*\x20%0',_0xe8c58(0x1,_0x1fd2c9))};}var _0x16a147,_0x5bef95;});}['_getHeadingLevel'](_0x46660d){const _0x4a3db1=_0x46660d['match'](/^heading(\d+)/);if(_0x4a3db1)return _0x4a3db1[0x1];const _0x14b933=this['_headingOptions']?.['find'](_0x34fc26=>_0x34fc26['model']==_0x46660d);if(_0x14b933&&_0x14b933['view']){const _0x5de756=_0x14b933['view'],_0x1d986a=(_0x5de756['name']??_0x5de756)['match'](/^h(\d+)/);if(_0x1d986a)return _0x1d986a[0x1];}return null;}}class st extends _0x391ea2{['afterInit'](){const _0x730d9e=this['editor'];if(!_0x730d9e['plugins']['has']('HighlightEditing'))return;const _0x2b32ff=_0x730d9e['plugins']['get']('TrackChangesEditing'),_0x4027d3=_0x730d9e['locale'];_0x2b32ff['enableDefaultAttributesIntegration']('highlight'),_0x2b32ff['registerInlineAttribute']('highlight'),_0x2b32ff['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4027d3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198c9a=this['editor'],_0x27f652=_0x198c9a['locale'];_0x198c9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ccd47=>{if('formatInline'!=_0x1ccd47['type'])return;const {data:_0x160e68}=_0x1ccd47;if(_0x160e68&&'highlight'==_0x160e68['commandName']){const _0x37e161=_0x27f652['t'],_0x39823e=_0x160e68['commandParams'][0x0]['value'];if(_0x39823e){const _0x57b108=_0x198c9a['config']['get']('highlight.options')['find'](_0x5a34e5=>_0x5a34e5['model']==_0x39823e),_0x172158=_0x37e161(_0x57b108['title'])['toLowerCase']();return{'type':'format','content':o(_0x27f652,'*Set\x20highlight:*\x20%0',_0x172158),'color':{'value':_0x57b108['color'],'title':_0x57b108['title']}};}return{'type':'format','content':o(_0x27f652,'*Remove\x20highlight*',o(_0x27f652,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x391ea2{['afterInit'](){const _0x3d456a=this['editor'];if(!_0x3d456a['plugins']['has']('HorizontalLineEditing'))return;_0x3d456a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a34cb=_0x3d456a['plugins']['get']('TrackChangesEditing'),_0x19a025=_0x3d456a['locale'];_0x4a34cb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50753f=>o(_0x19a025,'ELEMENT_HORIZONTAL_LINE',_0x50753f)),_0x3d456a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xea2c91,{writer:_0xca48a1,options:_0xa2741a})=>{if(!_0xa2741a['showSuggestionHighlights'])return null;const _0x55519c=_0xca48a1['createContainerElement']('div'),_0xeeda0c=_0xca48a1['createEmptyElement']('hr');return _0xca48a1['addClass']('ck-horizontal-line',_0x55519c),_0xca48a1['insert'](_0xca48a1['createPositionAt'](_0x55519c,0x0),_0xeeda0c),_0x55519c;},'converterPriority':'high'});}}class rt extends _0x391ea2{['afterInit'](){const _0x4aa384=this['editor'];if(!_0x4aa384['plugins']['has']('HtmlEmbed'))return;const _0x3d22db=_0x4aa384['plugins']['get']('TrackChangesEditing'),_0x1973d6=_0x4aa384['locale'];_0x3d22db['descriptionFactory']['registerElementLabel']('rawHtml',_0x16f9f0=>o(_0x1973d6,'ELEMENT_HTML_EMBED',_0x16f9f0)),_0x3d22db['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3d22db['registerBlockAttribute']('value'),_0x3d22db['descriptionFactory']['registerDescriptionCallback'](_0x1da2f4=>{if('attribute'!=_0x1da2f4['type'])return;const {data:_0x444fff}=_0x1da2f4;if(_0x444fff&&'value'==_0x444fff['key']&&_0x1da2f4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x65a49c=o(_0x1973d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1973d6,'*Change\x20%0\x20content*',_0x65a49c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56c423=this['editor'],_0x192a06=_0x56c423['locale'];_0x56c423['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x493a9c=>{if('formatBlock'!=_0x493a9c['type'])return;const {data:_0x19dd0d}=_0x493a9c;if(_0x19dd0d&&'htmlEmbed'==_0x19dd0d['commandName']){const _0x22a692=o(_0x192a06,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x192a06,'*Change\x20%0\x20content*',_0x22a692)};}});}}class at extends _0x391ea2{['afterInit'](){const _0x3e6762=this['editor'];if(!_0x3e6762['plugins']['has']('ImageEditing'))return;const _0x88b009=_0x3e6762['plugins']['get']('TrackChangesEditing'),_0x1e2f38=_0x3e6762['plugins']['get']('ImageUtils'),_0x5a2aad=_0x3e6762['locale'];_0x88b009['enableCommand']('insertImage'),_0x88b009['descriptionFactory']['registerElementLabel']('imageBlock',_0x2137ce=>o(_0x5a2aad,'ELEMENT_IMAGE',_0x2137ce)),_0x88b009['descriptionFactory']['registerElementLabel']('imageInline',_0x2a6c20=>o(_0x5a2aad,'ELEMENT_INLINE_IMAGE',_0x2a6c20)),_0x88b009['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a2aad,'ELEMENT_CAPTION')),_0x3e6762['plugins']['has']('ImageUploadEditing')&&_0x88b009['enableCommand']('uploadImage'),_0x3e6762['plugins']['has']('ImageBlockEditing')&&_0x3e6762['plugins']['has']('ImageInlineEditing')&&(_0x88b009['enableCommand']('imageTypeInline',(_0x44b813,_0x3fbc83)=>{const _0x36480d=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']);_0x3e6762['model']['change'](()=>{_0x88b009['markBlockFormat'](_0x36480d,{'commandName':'imageTypeInline','commandParams':[_0x3fbc83]},[],'convertBlockImageToInline');});}),_0x88b009['enableCommand']('imageTypeBlock',(_0x4e5479,_0x294c95)=>{_0x3e6762['model']['change'](_0xf0c133=>{let _0x400713=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5337dd=_0xf0c133['createRangeOn'](_0x400713);const _0x30cc94=_0x575139['fromPosition'](_0x5337dd['start'],'toPrevious'),_0x1f68ea=_0x575139['fromPosition'](_0x5337dd['end'],'toNext');_0x88b009['forceDefaultExecution'](()=>_0x4e5479(_0x294c95)),_0x400713=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5337dd=_0xf0c133['createRangeOn'](_0x400713);const _0x161331=_0xf0c133['createRange'](_0x30cc94,_0x1f68ea);_0x30cc94['detach'](),_0x1f68ea['detach'](),_0x88b009['markBlockFormat'](_0x400713,{'commandName':'imageTypeInline','commandParams':[_0x294c95]},[],'convertInlineImageToBlock'),_0x161331['start']['isBefore'](_0x5337dd['start'])&&_0x88b009['markInsertion'](_0xf0c133['createRange'](_0x161331['start'],_0x5337dd['start']),'convertInlineImageToBlock'),_0x5337dd['end']['isBefore'](_0x161331['end'])&&_0x88b009['markInsertion'](_0xf0c133['createRange'](_0x5337dd['end'],_0x161331['end']),'convertInlineImageToBlock');});}),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x88b009['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x242968])=>{const _0x17364b=_0x88b009['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33607f=_0x242968['start'],_0x1e32b6=_0x242968['end'];const _0x28e9d4=_0x3e6762['model']['schema']['getNearestSelectionRange'](_0x33607f,'backward'),_0x1eb4d9=_0x3e6762['model']['schema']['getNearestSelectionRange'](_0x1e32b6,'forward');_0x28e9d4['isCollapsed']&&(_0x33607f=_0x28e9d4['start']),_0x1eb4d9['isCollapsed']&&(_0x1e32b6=_0x1eb4d9['end']),_0x17364b([_0x3e6762['model']['createRange'](_0x33607f,_0x1e32b6)]);}),_0x88b009['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3c7bcf),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3c7bcf)),_0x3e6762['plugins']['has']('ImageCaptionEditing')&&(_0x88b009['enableCommand']('toggleImageCaption',(_0x21210c,_0x10d778)=>{const _0xa556e5=_0x3e6762['plugins']['get']('ImageCaptionUtils');let _0x15dc82=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5bda7e=_0xa556e5['getCaptionFromImageModelElement'](_0x15dc82);_0x3e6762['model']['change'](()=>{if(_0x5bda7e)return void _0x88b009['markDeletion'](_0x3e6762['model']['createRangeOn'](_0x5bda7e));const _0x4e11ce=_0x1e2f38['isBlockImage'](_0x15dc82);_0x21210c(_0x10d778),_0x15dc82=_0x1e2f38['getClosestSelectedImageElement'](_0x3e6762['model']['document']['selection']),_0x5bda7e=_0xa556e5['getCaptionFromImageModelElement'](_0x15dc82),_0x88b009['markInsertion'](_0x3e6762['model']['createRangeOn'](_0x5bda7e),_0x4e11ce?null:'imageCaption');});}),_0x88b009['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3c7bcf));const _0xb49169=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56618d(_0x505013,_0x1b2ac2){const _0xfba689=_0xb49169['findIndex'](({type:_0x49bc33,subType:_0x515165})=>_0x505013['type']==_0x49bc33&&_0x505013['subType']==_0x515165),_0x1ee1f9=_0xb49169['findIndex'](({type:_0x411a41,subType:_0x4b3852})=>_0x1b2ac2['type']==_0x411a41&&_0x1b2ac2['subType']==_0x4b3852);if(_0xfba689<0x0||_0x1ee1f9<0x0)return!0x1;const _0x4e056b=_0x505013['getFirstRange'](),_0x1b16d9=_0x1b2ac2['getFirstRange']();if((0x0==_0xfba689||0x1==_0xfba689)&&0x2==_0x1ee1f9&&_0x4e056b['isIntersecting'](_0x1b16d9))return!0x0;if(0x2==_0xfba689&&0x3==_0x1ee1f9){const _0x2b10d1=_0x88b009['_findSuggestions'](_0x4e056b,'insertion')['filter'](({suggestion:_0x14992e,meta:_0x5b0053})=>_0x5b0053['isOwn']&&'convertInlineImageToBlock'==_0x14992e['subType']);if(_0x2b10d1['length']>0x1&&_0x1b16d9['end']['isEqual'](_0x4e056b['start']))return!0x0;if(0x1==_0x2b10d1['length']&&(_0x4e056b['start']['isEqual'](_0x1b16d9['end'])||_0x4e056b['end']['isEqual'](_0x1b16d9['start'])))return!0x0;}if(0x3==_0xfba689&&0x3==_0x1ee1f9&&_0x4e056b['start']['isBefore'](_0x1b16d9['start'])){const _0x233983=_0x4e056b['end']['nodeAfter'],_0x53ed04=_0x1b16d9['start']['nodeBefore'];return _0x1e2f38['isBlockImage'](_0x233983)&&_0x233983===_0x53ed04;}return!0x1;}function _0x3c7bcf(_0x2e5529,_0x516205){return _0x56618d(_0x2e5529,_0x516205)?[_0x2e5529,_0x516205]:_0x56618d(_0x516205,_0x2e5529)?[_0x516205,_0x2e5529]:null;}_0x3e6762['plugins']['has']('ImageResize')&&(_0x88b009['enableDefaultAttributesIntegration']('resizeImage'),_0x88b009['registerBlockAttribute']('resizedWidth'),_0x88b009['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a2aad,'FORMAT_IMAGE_SIZE'))),_0x3e6762['plugins']['has']('ImageTextAlternativeEditing')&&(_0x88b009['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x88b009['registerBlockAttribute']('alt')),_0x3e6762['plugins']['has']('PictureEditing')&&(_0x88b009['registerBlockAttribute']('sources'),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x217cbb=>{if('attribute'!=_0x217cbb['type'])return;const {data:_0x2b7759}=_0x217cbb;return _0x2b7759&&'sources'==_0x2b7759['key']?{'type':'format','content':''}:void 0x0;})),_0x3e6762['plugins']['has']('ImageSizeAttributes')&&(_0x88b009['registerBlockAttribute']('width'),_0x88b009['registerBlockAttribute']('height'),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x16865d=>{if('attribute'!=_0x16865d['type'])return;const {data:_0xbc9158}=_0x16865d;return!_0xbc9158||'width'!=_0xbc9158['key']&&'height'!=_0xbc9158['key']?void 0x0:{'type':'format','content':''};})),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x254990=>{if(!!_0xb49169['find'](({type:_0x2fb7b7,subType:_0x184c3e})=>_0x254990['type']==_0x2fb7b7&&_0x254990['subType']==_0x184c3e))return _0x254990['previous']?{}:void 0x0;}),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x587a80=>{if('insertion'==_0x587a80['type']||'deletion'==_0x587a80['type']){const _0x66ad05=_0x587a80['getContainedElement']();if(_0x66ad05&&_0x66ad05['is']('element','caption'))return{'type':'insertion'==_0x587a80['type']?'addObject':'removeObject','element':_0x66ad05,'quantity':0x1};}}),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x58df06=>'formatBlock'==_0x58df06['type']&&'convertInlineImageToBlock'==_0x58df06['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58df06['type']&&'convertBlockImageToInline'==_0x58df06['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x88b009['descriptionFactory']['registerDescriptionCallback'](_0x3941e3=>{if('attribute'!=_0x3941e3['type'])return;const {data:_0x5e09c5}=_0x3941e3;if(!_0x5e09c5||'alt'!=_0x5e09c5['key'])return;const _0x203efd=_0x5e09c5['newValue'];return _0x203efd?{'type':'format','content':o(_0x5a2aad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x203efd+'\x22')}:{'type':'format','content':o(_0x5a2aad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x434088=this['editor'],_0x2eb127=_0x434088['locale'];_0x434088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a77aa=>{if('formatBlock'!=_0x5a77aa['type']&&'formatInline'!=_0x5a77aa['type'])return;const {data:_0x336f5d}=_0x5a77aa;if(_0x336f5d){if('imageTextAlternative'==_0x336f5d['commandName']){const _0x5a6eeb=_0x336f5d['commandParams'][0x0]['newValue'];return _0x5a6eeb?{'type':'format','content':o(_0x2eb127,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a6eeb+'\x22')}:{'type':'format','content':o(_0x2eb127,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x336f5d['commandName']){const _0x4aad98=_0x336f5d['commandParams'][0x0]['width'];return _0x4aad98?{'type':'format','content':o(_0x2eb127,'*Set\x20image\x20width:*\x20%0',_0x4aad98)}:{'type':'format','content':o(_0x2eb127,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x486d16=this['editor']['locale'],_0x5a5669=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a5669['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5a5669['registerBlockAttribute']('src'),_0x5a5669['descriptionFactory']['registerDescriptionCallback'](_0x5f206e=>{if('attribute'!=_0x5f206e['type'])return;const {data:_0x507c2d}=_0x5f206e;return _0x507c2d&&'src'==_0x507c2d['key']?_0x507c2d['newValue']&&_0x507c2d['oldValue']?{'type':'format','content':o(_0x486d16,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a15fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a15fe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a15fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a15fe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a15fe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fc881=this['editor'],_0xcef2e7=_0x3fc881['locale'];_0x3fc881['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a800c=>{if('formatBlock'!=_0x1a800c['type']&&'formatInline'!=_0x1a800c['type'])return;const {data:_0xb7e0f5}=_0x1a800c;if(!_0xb7e0f5||'replaceImageSource'!=_0xb7e0f5['commandName'])return;return{'type':'format','content':o(_0xcef2e7,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x391ea2{['afterInit'](){const _0x3a14d9=this['editor'];if(!_0x3a14d9['plugins']['has']('ImageStyleEditing'))return;const _0x2c9a01=_0x3a14d9['plugins']['get']('TrackChangesEditing'),_0x3e8d8e=_0x3a14d9['plugins']['get']('ImageUtils'),_0x390218={};_0x2c9a01['enableCommand']('imageStyle',(_0x2ef96d,_0x7da81a)=>{const _0x2d81bc=_0x3a14d9['plugins']['get']('Users')['me'],_0x27e78f=_0x3a14d9['commands']['get']('imageStyle');let _0x537174=_0x3e8d8e['getClosestSelectedImageElement'](_0x3a14d9['model']['document']['selection']),_0x21df19=_0x3a14d9['model']['createRangeOn'](_0x537174),_0x11c7fd=_0x27e78f['value'];if(_0x11c7fd==_0x7da81a['value'])return;const _0x519e1a={'commandName':'imageStyle','commandParams':[_0x7da81a],'formatGroupId':_0x337574()};_0x3a14d9['model']['change'](()=>{if(_0x2c9a01['getSuggestions']()['filter'](_0x1217be=>_0x1217be['isInContent']&&_0x2d81bc==_0x1217be['author']&&('formatBlock'==_0x1217be['type']||'formatInline'==_0x1217be['type'])&&('imageStylePreApply'==_0x1217be['subType']||'imageStylePostApply'==_0x1217be['subType'])&&_0x1217be['getFirstRange']()['isEqual'](_0x21df19))['forEach'](_0x2dcc37=>_0x2c9a01['discardSuggestion'](_0x2dcc37['head'])),_0x537174=_0x3e8d8e['getClosestSelectedImageElement'](_0x3a14d9['model']['document']['selection']),_0x21df19=_0x3a14d9['model']['createRangeOn'](_0x537174),_0x27e78f['refresh'](),_0x3a14d9['commands']['get']('imageTypeInline')['refresh'](),_0x3a14d9['commands']['get']('imageTypeBlock')['refresh'](),_0x11c7fd=_0x27e78f['value'],_0x11c7fd!=_0x7da81a['value'])return _0x3e8d8e['isInlineImage'](_0x537174)&&_0x27e78f['shouldConvertImageType'](_0x7da81a['value'],_0x537174)?(_0x2ef96d({..._0x7da81a,'setImageSizes':!0x1}),_0x537174=_0x3e8d8e['getClosestSelectedImageElement'](_0x3a14d9['model']['document']['selection']),void _0x2c9a01['markBlockFormat'](_0x537174,{..._0x519e1a,'commandReversedParams':[{'value':_0x11c7fd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3e8d8e['isBlockImage'](_0x537174)?_0x2c9a01['markBlockFormat'](_0x537174,_0x519e1a,[],'imageStylePostApply'):_0x2c9a01['markInlineFormat'](_0x21df19,_0x519e1a,'imageStylePostApply'));});});for(const _0x38a277 of _0x3a14d9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x390218[_0x38a277['name']]=_0x38a277['title']['toLowerCase']();_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x24595f])=>{_0x3e8d8e['setImageNaturalSizeAttributes'](_0x24595f['getContainedElement']());}),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b88a7,_0x5252f1)=>{_0x2c9a01['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b88a7,{'commandName':_0x5252f1['commandName'],'commandParams':_0x5252f1['commandReversedParams']});}),_0x2c9a01['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2996ea,_0x42dfb3){if(_0x343ac0(_0x2996ea,_0x42dfb3))return[_0x2996ea,_0x42dfb3];if(_0x343ac0(_0x42dfb3,_0x2996ea))return[_0x42dfb3,_0x2996ea];return null;});const _0x595dd7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x343ac0(_0xd2ff95,_0x3940a7){const _0x2cc318=_0x595dd7['findIndex'](({type:_0x571123,subType:_0x474120})=>_0xd2ff95['type']==_0x571123&&_0xd2ff95['subType']==_0x474120),_0x49401a=_0x595dd7['findIndex'](({type:_0xeb4689,subType:_0x3498a7})=>_0x3940a7['type']==_0xeb4689&&_0x3940a7['subType']==_0x3498a7);if(_0x2cc318<0x0||_0x49401a<0x0)return!0x1;const _0x25835a=_0xd2ff95['getFirstRange'](),_0xb425d9=_0x3940a7['getFirstRange']();if((0x0==_0x2cc318||0x1==_0x2cc318)&&0x2==_0x49401a&&_0x25835a['isIntersecting'](_0xb425d9))return!0x0;if(0x2==_0x2cc318&&0x3==_0x49401a){const _0x304658=_0x2c9a01['_findSuggestions'](_0x25835a,'insertion')['filter'](({suggestion:_0xe45365,meta:_0x73646b})=>_0x73646b['isOwn']&&'convertInlineImageToBlock'==_0xe45365['subType']);if(_0x304658['length']>0x1&&_0xb425d9['end']['isEqual'](_0x25835a['start']))return!0x0;if(0x1==_0x304658['length']&&(_0x25835a['start']['isEqual'](_0xb425d9['end'])||_0x25835a['end']['isEqual'](_0xb425d9['start'])))return!0x0;}if(0x3==_0x2cc318&&0x3==_0x49401a&&_0x25835a['start']['isBefore'](_0xb425d9['start'])){const _0x37f5a3=_0x25835a['end']['nodeAfter'],_0x27303b=_0xb425d9['start']['nodeBefore'];return _0x3e8d8e['isBlockImage'](_0x37f5a3)&&_0x37f5a3===_0x27303b;}return!0x1;}_0x3a14d9['model']['document']['registerPostFixer'](()=>{let _0x46df11=!0x1;const _0x222249=Array['from'](_0x3a14d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2991e7,data:_0xb35d77}of _0x222249){const {group:_0x34b300,type:_0x5502d5,subType:_0x842981,id:_0x26b72a}=_0x2c9a01['_splitMarkerName'](_0x2991e7);if('suggestion'==_0x34b300&&_0x2c9a01['hasSuggestion'](_0x26b72a)){if('formatBlock'==_0x5502d5&&('imageStylePreApply'==_0x842981||'imageStylePostApply'==_0x842981)){const _0x3328a5=_0x2c9a01['getSuggestion'](_0x26b72a);if(_0xb35d77['newRange']){const _0x276841=_0x3328a5['getFirstRange']()['getContainedElement']();if(_0x3e8d8e['isBlockImage'](_0x276841))continue;_0x2c9a01['discardSuggestion'](_0x3328a5),_0x46df11=!0x0;}}if('insertion'==_0x5502d5&&'imageCaption'==_0x842981&&!_0xb35d77['newRange']){const _0x1c7c06=_0x2c9a01['getSuggestion'](_0x26b72a);_0x1c7c06['next']&&_0x1c7c06['next']['isInContent']&&(_0x2c9a01['discardSuggestion'](_0x1c7c06['next']),_0x46df11=!0x0);}}}return _0x46df11;}),this['_registerLegacyDescription'](_0x390218);}['_registerLegacyDescription'](_0x2bf8d6){const _0x2316bc=this['editor'],_0x354fea=_0x2316bc['locale'];_0x2316bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x264a97=>{if('formatBlock'!=_0x264a97['type']&&'formatInline'!=_0x264a97['type'])return;const {data:_0x1218b4}=_0x264a97;if(!_0x1218b4||'imageStyle'!=_0x1218b4['commandName'])return;const _0x43a02a=_0x1218b4['commandParams'][0x0]['value'];return _0x48b2bc('side'===_0x43a02a?o(_0x354fea,'FORMAT_SIDE_IMAGE'):_0x2bf8d6[_0x43a02a]||_0x43a02a);function _0x48b2bc(_0x4d3f66){return{'type':'format','content':o(_0x354fea,'*Format:*\x20%0',_0x4d3f66)};}});}}class ft extends _0x391ea2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3f9209){super(_0x3f9209),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x221145=this['editor'],_0x3c7a39=_0x221145['commands']['get']('importWord'),_0x36cac8=_0x221145['commands']['get']('trackChanges');_0x3c7a39&&(_0x3c7a39['on']('execute',(_0x2842b7,[,_0x5486ae])=>{this['_trackChangesValueDuringImport']=_0x36cac8['value'],_0x5486ae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c7a39,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c7a39,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x36cac8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x221145['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2f0db1,_0x50dfd0){const {suggestions:_0xcb0881}=_0x50dfd0,_0xd18853=this['editor']['commands']['get']('trackChanges'),_0x5adb32=_0xd18853['value'];this['_trackChangesValueDuringImport']!==_0x5adb32&&(_0xd18853['execute'](),this['_trackChangesExecuted']=!0x0),_0xcb0881&&_0xcb0881['forEach'](({id:_0x506e22,type:_0x1e7b2f,author:_0x5981a4,created_at:_0x2b84ba})=>{const _0x322c2e={'id':_0x506e22,'type':_0x1e7b2f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5981a4,'createdAt':_0x2b84ba?new Date(_0x2b84ba):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x322c2e);});}}class ht extends _0x391ea2{['afterInit'](){const _0x2cdbd7=this['editor'],_0x3a61db=_0x2cdbd7['plugins']['get']('TrackChangesEditing');if(_0x2cdbd7['plugins']['has']('IndentEditing')&&(_0x3a61db['enableCommand']('indent'),_0x3a61db['enableCommand']('outdent')),_0x2cdbd7['plugins']['has']('IndentBlock')){for(const _0x1f0f9a of['indentBlock','outdentBlock'])_0x3a61db['enableDefaultAttributesIntegration'](_0x1f0f9a);}const _0x13cc5b=_0x2cdbd7['locale'];_0x3a61db['registerBlockAttribute']('blockIndent'),_0x3a61db['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x13cc5b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29ff94=this['editor'],_0x1f5344=_0x29ff94['locale'],_0x3a84de=_0x29ff94['plugins']['get']('TrackChangesEditing');_0x3a84de['descriptionFactory']['registerDescriptionCallback'](_0x36d762=>{if('formatBlock'!=_0x36d762['type'])return;const {data:_0x2cf3d0}=_0x36d762;if(!_0x2cf3d0)return;if('indentBlock'!=_0x2cf3d0['commandName']&&'outdentBlock'!=_0x2cf3d0['commandName'])return;const _0x223363=_0x36d762['getItems']()[0x0],_0x530982=_0x3a84de['descriptionFactory']['getItemLabel'](_0x223363);return'indentBlock'==_0x2cf3d0['commandName']?{'type':'format','content':o(_0x1f5344,'*Indent:*\x20%0',_0x530982)}:'outdentBlock'==_0x2cf3d0['commandName']?{'type':'format','content':o(_0x1f5344,'*Outdent:*\x20%0',_0x530982)}:void 0x0;});}}class gt extends _0x391ea2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x391ea2{['afterInit'](){const _0x36c316=this['editor'];if(!_0x36c316['plugins']['has']('LinkEditing'))return;const _0x4b2656=_0x36c316['plugins']['get']('TrackChangesEditing'),_0x3c21c9=_0x36c316['commands']['get']('link');_0x4b2656['enableDefaultAttributesIntegration']('link'),_0x4b2656['enableDefaultAttributesIntegration']('unlink'),_0x4b2656['registerInlineAttribute']('linkHref');for(const _0x172655 of _0x3c21c9['manualDecorators'])_0x4b2656['registerInlineAttribute'](_0x172655['id']),_0x4b2656['descriptionFactory']['registerAttributeLabel'](_0x172655['id'],'link\x20('+_0x172655['label']['toLowerCase']()+')');_0x4b2656['descriptionFactory']['registerDescriptionCallback'](_0x1da6ec=>{if('attribute'!=_0x1da6ec['type'])return;const {data:_0x5a9db7}=_0x1da6ec;if(!_0x5a9db7||'linkHref'!=_0x5a9db7['key'])return;const _0x1c1d13=_0x5a9db7['newValue'],_0x50c23e=_0x36c316['locale'];return{'type':'format','content':null==_0x1c1d13?o(_0x50c23e,'*Remove\x20link*'):o(_0x50c23e,'*Set\x20link:*\x20%0','\x22'+_0x1c1d13+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc3c1d0=this['editor'],_0x323088=_0xc3c1d0['locale'];_0xc3c1d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d3fd5=>{if('formatInline'!=_0x1d3fd5['type'])return;const {data:_0x5ce116}=_0x1d3fd5;if(_0x5ce116){if('link'==_0x5ce116['commandName']){const _0x172897=_0x5ce116['commandParams'][0x0];return{'type':'format','content':o(_0x323088,'*Set\x20link:*\x20%0','\x22'+_0x172897+'\x22')};}return'unlink'==_0x5ce116['commandName']?{'type':'format','content':o(_0x323088,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x391ea2{['afterInit'](){const _0x2d3f9d=this['editor'],_0x459920=_0x2d3f9d['locale'];if(!_0x2d3f9d['plugins']['has']('LegacyListEditing'))return;const _0x4730ae=_0x2d3f9d['plugins']['get']('TrackChangesEditing'),_0x4fba89=_0x2d3f9d['plugins']['has']('LegacyTodoListEditing');function _0x2c120f(_0x4a629e){return()=>{const _0x6cd92a=_0x2d3f9d['model']['document']['selection'],_0x760dcf=_0x2d3f9d['commands']['get'](_0x4a629e);if(_0x760dcf['value'])return void _0x2d3f9d['execute']('paragraph',{});const _0x56a3b8=_0x4a629e['slice'](0x0,-0x4),_0x188a74=function(_0x493dc6,_0x32d95f,_0x2b4aed){let _0x4a1150=Array['from'](_0x493dc6)['filter'](_0x55693f=>function(_0x56ba6f,_0x5d0520){return _0x5d0520['checkChild'](_0x56ba6f['parent'],'listItem')&&!_0x5d0520['isObject'](_0x56ba6f);}(_0x55693f,_0x2b4aed));_0x4a1150=_0x4a1150['filter'](_0x461efc=>!_0x461efc['is']('element','listItem')||_0x461efc['getAttribute']('listType')!=_0x32d95f);const _0x330ed4=new Set();for(const _0x55dfc7 of _0x4a1150)_0x55dfc7['is']('element','listItem')?_0x330ed4['add'](Ne(_0x55dfc7)):_0x330ed4['add'](_0x55dfc7);return Array['from'](_0x330ed4);}(_0x6cd92a['getSelectedBlocks'](),_0x56a3b8,_0x2d3f9d['model']['schema']);_0x2d3f9d['model']['change'](()=>{for(const _0x4a36d2 of _0x188a74)_0x4730ae['markBlockFormat'](_0x4a36d2,{'commandName':_0x4a629e,'commandParams':[{'forceValue':!_0x760dcf['value']}],'formatGroupId':'blockName'},Se(_0x4a36d2));});};}function _0x46c3d9(_0x5a5a2b){return()=>{const _0x151bb3=function(_0x3ab654){let _0x188a4a=Array['from'](_0x3ab654);const _0x2fc72c=_0x188a4a['findIndex'](_0x532589=>'listItem'!=_0x532589['name']);return _0x2fc72c>-0x1&&(_0x188a4a=_0x188a4a['slice'](0x0,_0x2fc72c)),_0x188a4a;}(_0x2d3f9d['model']['document']['selection']['getSelectedBlocks']()),_0x23d576=_0x2d3f9d['model']['createRange'](_0x2d3f9d['model']['createPositionAt'](_0x151bb3[0x0],'before'),_0x2d3f9d['model']['createPositionAt'](_0x151bb3[_0x151bb3['length']-0x1],'end'));_0x2d3f9d['model']['change'](()=>{_0x4730ae['markBlockFormat'](_0x23d576,{'commandName':_0x5a5a2b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1eb0d8){const _0xa8ff70=new Set();for(const _0xf3f57f of _0x1eb0d8){let _0x50de8b=_0xf3f57f['nextSibling'];for(;_0x50de8b&&_0x50de8b['getAttribute']('listIndent')>_0xf3f57f['getAttribute']('listIndent');)_0xa8ff70['add'](_0x50de8b),_0x50de8b=_0x50de8b['nextSibling'];}return Array['from'](_0xa8ff70);}(_0x151bb3));});};}_0x4730ae['enableCommand']('numberedList',_0x2c120f('numberedList')),_0x4730ae['enableCommand']('bulletedList',_0x2c120f('bulletedList')),_0x4fba89&&_0x4730ae['enableCommand']('todoList',_0x2c120f('todoList')),_0x4730ae['enableCommand']('indentList',_0x46c3d9('indentList')),_0x4730ae['enableCommand']('outdentList',_0x46c3d9('outdentList')),_0x4fba89&&_0x4730ae['enableCommand']('checkTodoList',()=>{const _0x177428=_0x2d3f9d['commands']['get']('checkTodoList'),_0x1a682b=Array['from'](_0x177428['_selectedElements']);_0x1a682b['filter'](_0x271cb7=>_0x271cb7['getAttribute']('todoListChecked')!=_0x177428['value']),_0x2d3f9d['model']['change'](()=>{for(const _0x3af287 of _0x1a682b)_0x4730ae['markBlockFormat'](_0x3af287,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x177428['value']}]});});}),_0x4730ae['descriptionFactory']['registerElementLabel']('listItem',_0x45feee=>o(_0x459920,'ELEMENT_LIST_ITEM',_0x45feee)),_0x4730ae['descriptionFactory']['registerDescriptionCallback'](_0x3db20f=>{if('formatBlock'!=_0x3db20f['type']&&'formatInline'!=_0x3db20f['type'])return;const {data:_0x2cee20}=_0x3db20f;if(_0x2cee20){if('numberedList'==_0x2cee20['commandName']||'bulletedList'==_0x2cee20['commandName']||'todoList'==_0x2cee20['commandName'])switch(_0x2cee20['commandName']['replace']('List','')){case'bulleted':return _0x23b26f(o(_0x459920,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23b26f(o(_0x459920,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23b26f(o(_0x459920,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2cee20['commandName'])return{'type':'format','content':o(_0x459920,'*Indent:*\x20%0',o(_0x459920,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2cee20['commandName'])return{'type':'format','content':o(_0x459920,'*Outdent:*\x20%0',o(_0x459920,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2cee20['commandName'])return _0x2cee20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x459920,'*Check\x20item*')}:{'type':'format','content':o(_0x459920,'*Uncheck\x20item*')};}function _0x23b26f(_0x3fc00f){return{'type':'format','content':o(_0x459920,'*Change\x20to:*\x20%0',_0x3fc00f)};}});}}function Ne(_0x541126){const _0x4d794d=_0x541126['getAttribute']('listIndent');if(0x0==_0x4d794d)return _0x541126;let _0x339a7f=_0x541126;for(;_0x541126['previousSibling']&&_0x541126['previousSibling']['is']('element','listItem');){const _0x1595fd=_0x541126['previousSibling']['getAttribute']('listIndent');if(_0x1595fd==_0x4d794d)_0x339a7f=_0x541126['previousSibling'];else{if(_0x1595fd<_0x4d794d)break;}_0x541126=_0x541126['previousSibling'];}return _0x339a7f;}function Se(_0x31d853){const _0x331078=[];if(_0x31d853['is']('element','listItem')&&_0x31d853['getAttribute']('listIndent')>0x0){let _0x2ddb7b=_0x31d853['nextSibling'];for(;_0x2ddb7b&&'listItem'==_0x2ddb7b['name']&&_0x2ddb7b['getAttribute']('listIndent')==_0x31d853['getAttribute']('listIndent');)_0x331078['push'](_0x2ddb7b),_0x2ddb7b=_0x2ddb7b['nextSibling'];}return _0x331078;}class mt extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14d08c=this['editor']['config']['get']('list.properties'),_0x5026af=this['editor']['plugins']['get']('TrackChangesEditing');_0x14d08c['styles']&&_0x5026af['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14d08c['reversed']&&_0x5026af['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14d08c['startIndex']&&_0x5026af['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5026af['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4765ff,_0x368f0e={}){const _0x51859d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ca6dc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x51859d['markMultiRangeBlockFormat'](_0x2ca6dc,{'commandName':'listStyle','commandParams':[{'type':_0x368f0e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x8a06fd,_0xe75bd4={}){const _0x38c192=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1173dc=this['_getSuggestionBlocks'](_0x39536d=>_0x39536d['is']('element','listItem')&&'numbered'===_0x39536d['getAttribute']('listType'));if(_0x1173dc['length']<0x1)return;const _0x573643=_0x1173dc['map'](_0x3faa52=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3faa52,'before'),this['editor']['model']['createPositionAt'](_0x3faa52,0x0)));this['editor']['model']['change'](()=>{_0x38c192['markMultiRangeBlockFormat'](_0x573643,{'commandName':'listReversed','commandParams':[{'reversed':_0xe75bd4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5c648e,_0x299e4c={}){const _0x35b36c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x92847f=this['_getSuggestionBlocks'](_0x113304=>_0x113304['is']('element','listItem')&&'numbered'===_0x113304['getAttribute']('listType'));if(_0x92847f['length']<0x1)return;const _0x5878f5=_0x92847f['map'](_0x3d3cee=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d3cee,'before'),this['editor']['model']['createPositionAt'](_0x3d3cee,0x0)));this['editor']['model']['change'](()=>{_0x35b36c['markMultiRangeBlockFormat'](_0x5878f5,{'commandName':'listStart','commandParams':[{'startIndex':_0x299e4c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d8d86){if('formatBlock'!=_0x3d8d86['type']&&'formatInline'!=_0x3d8d86['type'])return;const _0x1f425b=this['editor']['locale'],{data:_0xccc9a0}=_0x3d8d86;if(!_0xccc9a0)return;let _0xb7db6b,_0x5025d7;switch(_0xccc9a0['commandName']){case'listStyle':_0xb7db6b='*Change\x20to:*\x20%0',_0x5025d7={'type':'format','content':o(_0x1f425b,_0xb7db6b,o(_0x1f425b,this['_getTranslationKeyForListStyle'](_0xccc9a0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb7db6b=_0xccc9a0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5025d7={'type':'format','content':o(_0x1f425b,_0xb7db6b)};break;case'listStart':_0xb7db6b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5025d7={'type':'format','content':o(_0x1f425b,_0xb7db6b,_0xccc9a0['commandParams'][0x0]['startIndex'])};}return _0x5025d7;}['_getSuggestionBlocksForListStyle'](){const _0x15f42b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a22f8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4a22f8[0x0]?.['is']('element','listItem')&&_0x4a22f8['unshift'](..._0x15f42b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4a22f8[_0x4a22f8['length']-0x1]?.['is']('element','listItem')&&_0x4a22f8['push'](..._0x15f42b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4a22f8=[...new Set(_0x4a22f8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4a22f8=_0x4a22f8['filter'](_0x32966e=>_0x32966e['is']('element','listItem'))),_0x4a22f8;}['_getSuggestionBlocks'](_0x35920e){const _0x411fd4=this['editor']['plugins']['get']('LegacyListUtils');let _0x7aab81=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x35920e)['map'](_0x236ad4=>{const _0x2ba696=this['editor']['model']['createPositionAt'](_0x236ad4,0x0);return[..._0x411fd4['getSiblingNodes'](_0x2ba696,'backward'),..._0x411fd4['getSiblingNodes'](_0x2ba696,'forward')];})['flat']();return _0x7aab81=[...new Set(_0x7aab81)],_0x7aab81;}['_getTranslationKeyForListStyle'](_0x4e5e98){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e5e98)||'default')['toUpperCase']()+'_LIST_'+_0x4e5e98['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x391ea2{['afterInit'](){const _0x25d468=this['editor'];if(!_0x25d468['plugins']['has']('MediaEmbedEditing'))return;const _0x49b7b6=_0x25d468['plugins']['get']('TrackChangesEditing'),_0x86746a=_0x25d468['locale'];_0x49b7b6['enableCommand']('mediaEmbed'),_0x49b7b6['descriptionFactory']['registerElementLabel']('media',_0x2dd61c=>o(_0x86746a,'ELEMENT_MEDIA',_0x2dd61c)),_0x25d468['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x154664,{writer:_0x360c9c,options:_0x5b56fe})=>{if(_0x5b56fe['showSuggestionHighlights'])return _0x360c9c['createEmptyElement']('div');},'converterPriority':'high'}),_0x25d468['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b17d1,_0x3d6105,_0x1be310)=>{_0x1be310['options']['showSuggestionHighlights']&&_0x5b17d1['stop']();},{'priority':'high'});}}class kt extends _0x391ea2{['afterInit'](){const _0x11b098=this['editor'];_0x11b098['plugins']['has']('MentionEditing')&&_0x11b098['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x391ea2{['afterInit'](){const _0x2e2015=this['editor'];if(!_0x2e2015['plugins']['has']('MergeFieldsEditing'))return;const _0x48af81=_0x2e2015['plugins']['get']('TrackChangesEditing'),_0x155362=_0x2e2015['locale'];_0x48af81['enableCommand']('insertMergeField'),_0x48af81['enableCommand']('insertMergeFieldBlock'),_0x48af81['enableCommand']('insertMergeFieldImage'),_0x48af81['descriptionFactory']['registerElementLabel']('mergeField',_0x5f07e2=>o(_0x155362,'ELEMENT_MERGE_FIELD',_0x5f07e2)),_0x48af81['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x37df13=>o(_0x155362,'ELEMENT_MERGE_FIELD',_0x37df13)),_0x48af81['descriptionFactory']['registerDescriptionCallback'](_0x35bb9f=>{if('insertion'!=_0x35bb9f['type']&&'deletion'!=_0x35bb9f['type'])return;const _0x38054f=_0x35bb9f['getContainedElement']();if(null==_0x38054f)return;const _0x113f93=_0x2e2015['plugins']['get']('MergeFieldsEditing');let _0x2b4a15;switch(_0x113f93['getMergeFieldType'](_0x38054f)){case null:return;case'image':{const _0x844701=_0x113f93['unwrapAffixes'](_0x38054f['getAttribute']('src'));_0x2b4a15=_0x113f93['getLabel'](_0x844701)||_0x844701;break;}default:{const _0x3a710a=_0x38054f['getAttribute']('id');_0x2b4a15=_0x113f93['getLabel'](_0x3a710a)||_0x3a710a;break;}}return'insertion'==_0x35bb9f['type']?{'type':'insertion','content':o(_0x155362,'*Insert:*\x20%0','\x22'+_0x2b4a15+'\x22\x20'+o(_0x155362,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x155362,'*Remove:*\x20%0','\x22'+_0x2b4a15+'\x22\x20'+o(_0x155362,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x391ea2{['afterInit'](){const _0x506837=this['editor'],_0x13a8dc=_0x506837['plugins']['get']('TrackChangesEditing');_0x506837['plugins']['has']('MultiLevelList')&&(_0x13a8dc['enableDefaultAttributesIntegration']('multiLevelList'),_0x13a8dc['registerBlockAttribute']('listMarkerStyle'),_0x13a8dc['descriptionFactory']['registerDescriptionCallback'](_0x1a5d89=>this['handleDescriptions'](_0x1a5d89)));}['handleDescriptions'](_0x5c8b81){const _0xab00f=this['editor']['locale'],{data:_0x44ecbb}=_0x5c8b81,_0x3910a6={'type':'format','content':''};if(_0x44ecbb&&'listMarkerStyle'==_0x44ecbb['key']){if(!_0x44ecbb['oldValue'])return{'type':'format','content':o(_0xab00f,'*Set\x20format:*\x20%0',o(_0xab00f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44ecbb['newValue']+')'};if(!_0x44ecbb['newValue']){let _0x3ad61d=_0x5c8b81['head'];for(;_0x3ad61d;){if(_0x3ad61d['data']&&'listType'==_0x3ad61d['data']['key']&&_0x3ad61d['data']['newValue'])return _0x3910a6;_0x3ad61d=_0x3ad61d['next'];}return{'type':'format','content':o(_0xab00f,'*Remove\x20format:*\x20%0',o(_0xab00f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44ecbb['oldValue']+')'};}}}}class yt extends _0x391ea2{['afterInit'](){const _0x577375=this['editor'];if(!_0x577375['plugins']['has']('PageBreakEditing'))return;_0x577375['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2c68da=_0x577375['plugins']['get']('TrackChangesEditing'),_0x299c3a=_0x577375['locale'];_0x2c68da['descriptionFactory']['registerElementLabel']('pageBreak',_0x601364=>o(_0x299c3a,'ELEMENT_PAGE_BREAK',_0x601364));}}class St extends _0x391ea2{['afterInit'](){const _0x2b0ce2=this['editor'];if(!_0x2b0ce2['plugins']['has']('Paragraph'))return;const _0x161a5c=_0x2b0ce2['locale'],_0x1cdf7c=_0x2b0ce2['plugins']['get']('TrackChangesEditing');_0x1cdf7c['descriptionFactory']['registerElementLabel']('paragraph',_0xebd4e1=>o(_0x161a5c,'ELEMENT_PARAGRAPH',_0xebd4e1)),_0x1cdf7c['enableDefaultAttributesIntegration']('paragraph'),_0x1cdf7c['enableCommand']('insertParagraph'),_0x2b0ce2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b0ce2),{'priority':'highest'}),_0x2b0ce2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e17e9,_0x53a1c3,_0x4fd828)=>{_0x4fd828['options']['showSuggestionHighlights']&&nr(_0x2b0ce2,{'showActiveMarker':!0x1})(_0x2e17e9,_0x53a1c3,_0x4fd828);},{'priority':'highest'});const _0x4f5a66=_0x1cdf7c['descriptionFactory'];_0x4f5a66['registerDescriptionCallback'](_0x23148e=>{if('insertion'!==_0x23148e['type'])return;const {start:_0x576e74,end:_0x2d7c4f}=_0x23148e['getFirstRange']();if(!_0x576e74['isTouching'](_0x2d7c4f)||!_0x576e74['nodeAfter'])return;const _0xe88f3a=_0x2b0ce2['model']['schema'],_0x3dd609=_0x576e74['nodeAfter'];return _0xe88f3a['isBlock'](_0x3dd609)&&!_0xe88f3a['isLimit'](_0x3dd609)&&_0xe88f3a['checkChild'](_0x3dd609,'$text')?{'type':'insertion','content':o(_0x161a5c,'*Insert:*\x20%0',_0x4f5a66['getItemLabel'](_0x3dd609,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206856=this['editor'],_0x65cc8a=_0x206856['locale'];_0x206856['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40ecd9=>{if('formatBlock'!=_0x40ecd9['type'])return;const {data:_0x4d4583}=_0x40ecd9;return _0x4d4583&&'paragraph'==_0x4d4583['commandName']?{'type':'format','content':o(_0x65cc8a,'*Change\x20to:*\x20%0',o(_0x65cc8a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x149012,{showActiveMarker:_0x58fd59=!0x0}={}){return(_0x36daa4,_0x5364cd,_0x1ba6f3)=>{const _0x4bdffe=_0x149012['plugins']['get']('TrackChangesEditing'),_0x553a8e=_0x5364cd['markerRange']['start'],_0x1b8c1b=_0x5364cd['markerRange']['end'],_0x5265e2=_0x149012['model']['schema'];if(!_0x553a8e['isTouching'](_0x1b8c1b)||!_0x553a8e['nodeAfter'])return;const _0x71fb40=_0x553a8e['nodeAfter'];if(_0x5265e2['isBlock'](_0x71fb40)&&!_0x5265e2['isLimit'](_0x71fb40)&&_0x5265e2['checkChild'](_0x71fb40,'$text')){if(!_0x1ba6f3['consumable']['consume'](_0x5364cd['markerRange'],_0x36daa4['name']))return;const {id:_0x17ac4e,authorId:_0x52dba8}=_0x4bdffe['_splitMarkerName'](_0x5364cd['markerName']),_0x1fec34=_0x1ba6f3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x17ac4e,'data-author-id':_0x52dba8}),_0x251a8a=_0x1ba6f3['mapper']['toViewPosition'](_0x1b8c1b);_0x58fd59&&_0x4bdffe['activeMarkers']['includes'](_0x5364cd['markerName'])&&_0x1ba6f3['writer']['addClass']('ck-suggestion-marker--active',_0x1fec34),_0x1ba6f3['writer']['insert'](_0x251a8a,_0x1fec34),_0x1ba6f3['mapper']['bindElementToMarker'](_0x1fec34,_0x5364cd['markerName']);}};}class jt extends _0x391ea2{['afterInit'](){const _0x184631=this['editor'];_0x184631['commands']['get']('replaceSource')&&_0x184631['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x391ea2{['afterInit'](){const _0x1896c0=this['editor'];if(!_0x1896c0['plugins']['has']('RemoveFormatEditing'))return;_0x1896c0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fe3b2=this['editor'];_0x1fe3b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x254923=>{if('formatBlock'!=_0x254923['type']&&'formatInline'!=_0x254923['type'])return;const {data:_0x59b37c}=_0x254923;return _0x59b37c&&'removeFormat'==_0x59b37c['commandName']?{'type':'format','content':o(_0x1fe3b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x391ea2{['afterInit'](){const _0x357889=this['editor'];if(!_0x357889['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56f967=_0x357889['plugins']['get']('TrackChangesEditing');_0x56f967['enableCommand']('goToPreviousRestrictedEditingException'),_0x56f967['enableCommand']('goToNextRestrictedEditingException');const _0x49224e=_0x357889['plugins']['get']('RestrictedEditingModeEditing');_0x49224e['enableCommand']('trackChanges'),_0x49224e['enableCommand']('acceptSuggestion'),_0x49224e['enableCommand']('discardSuggestion'),_0x49224e['enableCommand']('acceptAllSuggestions'),_0x49224e['enableCommand']('discardAllSuggestions'),_0x49224e['enableCommand']('acceptSelectedSuggestions'),_0x49224e['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x391ea2{['afterInit'](){const _0x4c659d=this['editor'];if(!_0x4c659d['plugins']['has']('ShiftEnter'))return;const _0xec9aba=_0x4c659d['plugins']['get']('TrackChangesEditing');_0xec9aba['enableCommand']('shiftEnter'),_0x4c659d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x4c659d),{'priority':'high'}),_0x4c659d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x4c659d),{'priority':'high'}),_0x4c659d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e927f,_0x220069,_0x627022)=>{_0x627022['options']['showSuggestionHighlights']&&Ee(_0x4c659d,{'showActiveMarker':!0x1})(_0x5e927f,_0x220069,_0x627022);}),_0xec9aba['descriptionFactory']['registerElementLabel']('softBreak',_0x4b54e1=>o(_0x4c659d['locale'],'ELEMENT_LINE_BREAK',_0x4b54e1));}}function Ee(_0x222193,{showActiveMarker:_0x57c87b=!0x0}={}){return(_0x5882e3,_0x5a69fd,_0x495671)=>{const _0x19150f=_0x222193['plugins']['get']('TrackChangesEditing');if(!_0x495671['consumable']['test'](_0x5a69fd['markerRange'],_0x5882e3['name']))return;const _0x4b5cd9=_0x222193['model'];for(const _0x320bb4 of _0x5a69fd['markerRange']['getItems']()){if(!_0x320bb4['is']('element','softBreak'))continue;const _0x2169ef='deletion'==_0x5a69fd['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xcaad5b,authorId:_0x5ebd7a}=_0x19150f['_splitMarkerName'](_0x5a69fd['markerName']),_0x2ff716=_0x495671['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2169ef,'data-suggestion':_0xcaad5b,'data-author-id':_0x5ebd7a}),_0x446c8f=_0x495671['mapper']['toViewPosition'](_0x4b5cd9['createPositionBefore'](_0x320bb4));_0x57c87b&&_0x19150f['activeMarkers']['includes'](_0x5a69fd['markerName'])&&_0x495671['writer']['addClass']('ck-suggestion-marker--active',_0x2ff716),_0x495671['writer']['insert'](_0x446c8f,_0x2ff716),_0x495671['mapper']['bindElementToMarker'](_0x2ff716,_0x5a69fd['markerName']);}};}class vt extends _0x391ea2{['afterInit'](){const _0x456101=this['editor'],_0x5b47aa=_0x456101['model'],_0x2c17b0=_0x456101['locale'];if(!_0x456101['plugins']['has']('StandardEditingModeEditing'))return;const _0x490048=_0x456101['plugins']['get']('TrackChangesEditing'),_0x25f71d='restrictedEditingException',_0x42c9af=_0x456101['commands']['get'](_0x25f71d);_0x490048['enableCommand'](_0x25f71d,(_0x4117e8,_0x30d3ec={})=>{const _0x354a60=_0x5b47aa['document']['selection'];if(_0x354a60['isCollapsed'])return void _0x4117e8(_0x30d3ec);const _0x18b9b9=void 0x0!==_0x30d3ec['forceValue']?_0x30d3ec['forceValue']:!_0x42c9af['value'];_0x5b47aa['change'](()=>{const _0x53d1e6=Array['from'](_0x354a60['getRanges']());for(const _0x9d9344 of _0x53d1e6){const _0x35853f=_0x18b9b9?[_0x9d9344]:io(_0x25f71d,_0x9d9344,_0x5b47aa);for(const _0x3b35d0 of _0x35853f)_0x490048['markInlineFormat'](_0x3b35d0,{'commandName':_0x25f71d,'commandParams':[{'forceValue':_0x18b9b9}]});}});}),_0x490048['descriptionFactory']['registerDescriptionCallback'](_0x30dbec=>{if('formatBlock'!=_0x30dbec['type']&&'formatInline'!=_0x30dbec['type'])return;const {data:_0x472c6a}=_0x30dbec;return _0x472c6a&&_0x472c6a['commandName']==_0x25f71d?_0x472c6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c17b0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c17b0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x391ea2{['afterInit'](){const _0x265b86=this['editor'];if(!_0x265b86['plugins']['has']('Style')||!_0x265b86['plugins']['has']('DataSchema'))return;const _0x2e499b=_0x265b86['plugins']['get']('TrackChangesEditing'),_0xa4e2e8=_0x265b86['locale'],_0x782403=_0x265b86['config']['get']('style')||{},_0x2aa698=_0x265b86['plugins']['get']('GeneralHtmlSupport'),_0xe4ea95=_0x265b86['plugins']['get']('StyleUtils')['normalizeConfig'](_0x265b86['plugins']['get']('DataSchema'),_0x782403['definitions']);_0x2e499b['enableDefaultAttributesIntegration']('style');const _0x270d59=new Set();for(const _0xdae96 of _0xe4ea95['block']){const _0xa0866f=_0x2aa698['getGhsAttributeNameForElement'](_0xdae96['element']);_0x270d59['add'](_0xa0866f);}const _0x586ba2=new Set();for(const _0xc1989 of _0xe4ea95['inline']){const _0x492f1c=_0x2aa698['getGhsAttributeNameForElement'](_0xc1989['element']);_0x586ba2['add'](_0x492f1c);for(const _0x711ec6 of _0xc1989['ghsAttributes'])_0x586ba2['add'](_0x711ec6);}for(const _0x1a092b of _0x270d59)_0x2e499b['registerBlockAttribute'](_0x1a092b),_0x2e499b['descriptionFactory']['registerAttributeLabel'](_0x1a092b,o(_0xa4e2e8,'FORMAT_STYLE'));for(const _0x4e5dde of _0x586ba2)_0x2e499b['registerInlineAttribute'](_0x4e5dde),_0x2e499b['descriptionFactory']['registerAttributeLabel'](_0x4e5dde,o(_0xa4e2e8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22dcdd=this['editor'],_0x2360cd=_0x22dcdd['locale'];_0x22dcdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x406974=>{if('formatBlock'!=_0x406974['type']&&'formatInline'!=_0x406974['type'])return;const {data:_0x28dd1c}=_0x406974;return _0x28dd1c&&'style'===_0x28dd1c['commandName']?_0x28dd1c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2360cd,'*Set\x20format:*\x20%0',_0x28dd1c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2360cd,'*Remove\x20format:*\x20%0',_0x28dd1c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x391ea2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2f34bd){super(_0x2f34bd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51918c=this['editor'],_0x355a14=_0x51918c['model']['document']['selection'];if(!_0x51918c['plugins']['has']('TableEditing'))return;const _0x362cb7=_0x51918c['locale'],_0x389138=_0x51918c['plugins']['get']('TrackChangesEditing'),_0x5430af=_0x51918c['plugins']['get']('TableUtils');_0x389138['descriptionFactory']['registerElementLabel']('table',_0x3e2b5d=>o(_0x362cb7,'ELEMENT_TABLE',_0x3e2b5d)),this['_setupColumnsRowsFixing'](),_0x389138['enableCommand']('insertTable'),_0x389138['enableCommand']('selectTableRow'),_0x389138['enableCommand']('selectTableColumn');for(const _0x5c78bb of['insertTableRowAbove','insertTableRowBelow']){const _0x4d501a=_0x51918c['commands']['get'](_0x5c78bb);_0x389138['enableCommand'](_0x5c78bb,_0x4a971e=>{_0x51918c['model']['change'](_0x31160a=>{_0x4a971e();const _0x2deeff='above'===_0x4d501a['order'],_0x2c38bd=_0x5430af['getSelectionAffectedTableCells'](_0x355a14),_0x31d9a9=_0x5430af['getRowIndexes'](_0x2c38bd),_0x325a7c=_0x2deeff?_0x31d9a9['first']-0x1:_0x31d9a9['last']+0x1,_0x474ea9=_0x2c38bd[0x0]['findAncestor']('table'),_0x48226e=_0x5430af['createTableWalker'](_0x474ea9,{'startRow':_0x325a7c,'endRow':_0x325a7c}),_0x2058fe=Array['from'](_0x48226e)['map'](_0x99c5be=>_0x31160a['createRangeOn'](_0x99c5be['cell']));_0x389138['markMultiRangeInsertion'](_0x2058fe,'tableRow');});});}for(const _0x3eb410 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47e2ae=_0x51918c['commands']['get'](_0x3eb410);_0x389138['enableCommand'](_0x3eb410,_0x1dc228=>{_0x51918c['model']['change'](_0x177acf=>{_0x1dc228();const _0x20b6da='left'===_0x47e2ae['order'],_0x2a1bdb=_0x5430af['getSelectionAffectedTableCells'](_0x355a14),_0x25a617=_0x5430af['getColumnIndexes'](_0x2a1bdb),_0xabe602=_0x20b6da?_0x25a617['first']-0x1:_0x25a617['last']+0x1,_0x1d6e5e=_0x2a1bdb[0x0]['findAncestor']('table'),_0x574cfa=_0x5430af['createTableWalker'](_0x1d6e5e,{'startRow':0x0,'column':_0xabe602,'includeAllSlots':!0x1}),_0x20fd59=Array['from'](_0x574cfa)['map'](_0x436314=>_0x177acf['createRangeOn'](_0x436314['cell']));_0x389138['markMultiRangeInsertion'](_0x20fd59,'tableColumn');});});}for(const _0x4b64c2 of['removeTableRow','removeTableColumn']){const _0x4b49fa=_0x4b64c2['substr'](0xb),_0x33fd0f=_0x4b49fa['toLowerCase'](),_0x231b36=_0x33fd0f['substr'](0x0,0x3)+'span',_0x345212='table'+_0x4b49fa,_0x3dbfb8='min'+_0x4b49fa,_0x1bd911='max'+_0x4b49fa;_0x389138['enableCommand'](_0x4b64c2,()=>{_0x51918c['model']['change'](_0x382338=>{const _0x1f3201=_0x5430af['getSelectionAffectedTableCells'](_0x355a14),_0x4c5d37=_0x1f3201[0x0]['findAncestor']('table');let _0x57383a;if('removeTableRow'==_0x4b64c2){const _0x50bf00=_0x5430af['getRowIndexes'](_0x1f3201);_0x57383a={'startRow':_0x50bf00['first'],'endRow':_0x50bf00['last'],'includeAllSlots':!0x0};}else{const _0x3a4231=_0x5430af['getColumnIndexes'](_0x1f3201);_0x57383a={'startColumn':_0x3a4231['first'],'endColumn':_0x3a4231['last'],'includeAllSlots':!0x0};}const _0x34977a=_0x5430af['createTableWalker'](_0x4c5d37,_0x57383a),_0x3e97b1=Array['from'](_0x34977a)['map'](({cell:_0x130098})=>_0x130098),_0x1faca9=We(_0x3e97b1['filter'](_0x5af150=>_0x5af150['hasAttribute'](_0x231b36))),_0xa91152=We(_0x3e97b1['filter'](_0x34acef=>!_0x34acef['hasAttribute'](_0x231b36)))['map'](_0x8f61b6=>_0x382338['createRangeOn'](_0x8f61b6)),_0x295b7d=_0x389138['markMultiRangeDeletion'](_0xa91152,_0x345212);if(_0x295b7d&&('tableRow'==_0x295b7d['subType']||'tableColumn'==_0x295b7d['subType'])){const _0x456e6a=this['_getSuggestionCoords'](_0x295b7d);for(const _0x3a8a03 of _0x1faca9){const _0x2bea71=_0x382338['createRangeOn'](_0x3a8a03),_0x1e5884=_0x5430af['getCellLocation'](_0x3a8a03),_0x41a7a4=_0x3a8a03['getAttribute'](_0x231b36)-0x1,_0x119769=_0x456e6a[_0x3dbfb8],_0x5ef759=_0x456e6a[_0x1bd911];_0x119769<=_0x1e5884[_0x33fd0f]&&_0x1e5884[_0x33fd0f]+_0x41a7a4<=_0x5ef759&&_0x295b7d['addRange'](_0x2bea71);}}});});}function _0x21cae1(_0x27c3ce){const _0xa27db7=Array['from'](_0x355a14['getRanges']())['map'](_0x647bf1=>_0x4c47d7['fromRange'](_0x647bf1));_0x51918c['model']['change'](_0x2c6d50=>{const _0xe09afb=_0x2c6d50['batch'];_0x27c3ce=_0x27c3ce['filter'](_0x2f5ef0=>'$graveyard'!=_0x2f5ef0['root']['rootName']),_0x2c6d50['setSelection'](_0x27c3ce),_0x51918c['commands']['get']('removeTableRow')['refresh'](),_0x51918c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51918c['model']['enqueueChange'](()=>{_0x51918c['model']['enqueueChange'](_0xe09afb,_0x189142=>{const _0x52e837=_0xa27db7['filter'](_0x2f78ec=>'$graveyard'!=_0x2f78ec['root']['rootName']);_0x52e837['length']>0x0&&_0x189142['setSelection'](_0x52e837);for(const _0x5a3151 of _0xa27db7)_0x5a3151['detach']();});});});}function _0x2f50bb(_0x47abf8){_0x51918c['model']['change'](_0x2cc451=>{const _0x3d059f=Array['from'](_0x355a14['getRanges']())['map'](_0x1433bb=>_0x4c47d7['fromRange'](_0x1433bb)),_0x2d40dc=[];for(const _0x202632 of _0x47abf8)for(const _0x32fbd3 of _0x202632['getItems']({'shallow':!0x0}))_0x2d40dc['push'](_0x32fbd3);for(const _0x168f3a of _0x2d40dc)'$graveyard'!=_0x168f3a['root']['rootName']&&(_0x2cc451['setSelection'](_0x2cc451['createPositionAt'](_0x168f3a,0x0)),_0x51918c['commands']['get']('removeTableColumn')['refresh'](),_0x51918c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x129215=_0x3d059f['filter'](_0x184aea=>'$graveyard'!=_0x184aea['root']['rootName']);_0x129215['length']>0x0&&_0x2cc451['setSelection'](_0x129215);for(const _0x3fa214 of _0x3d059f)_0x3fa214['detach']();});}function _0x3b3972(_0x5c8417,_0x20f537){return _0x20f537['every'](_0x162584=>_0x5c8417['some'](_0x3b8681=>_0x3b8681['end']['isEqual'](_0x162584['start'])||_0x162584['end']['isEqual'](_0x3b8681['start'])));}function _0x14adf8(_0x2a4fc0,_0x588203){return!_0x2a4fc0['some'](_0x4fbf9d=>_0x588203['some'](_0x71e1a5=>_0x4fbf9d['isIntersecting'](_0x71e1a5)))&&_0x2a4fc0['some'](_0x423426=>_0x588203['some'](_0x2d8ba3=>_0x423426['end']['isTouching'](_0x2d8ba3['start'])));}_0x51918c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x167495,_0x410912,_0xca8e76)=>{if(!_0xca8e76['options']['showSuggestionHighlights'])return;const _0x2d889a=_0x410912['item'];if(!_0x2d889a||!_0x2d889a['is']('element','tableCell'))return;const _0x23b4bb=_0xca8e76['mapper']['toViewElement'](_0x2d889a);if(_0x23b4bb){const {id:_0x422bbc,authorId:_0x9eeb8a}=_0x389138['_splitMarkerName'](_0x410912['markerName']);_0x23e323(_0x23b4bb,_0xca8e76['writer'],(_0x477341,_0x1e3361,_0x487366)=>{_0x487366['addClass'](_0x827f38(_0x1e3361['classes']),_0x477341),_0x487366['setAttribute']('data-suggestion-id',_0x422bbc,_0x477341),_0x487366['setAttribute']('data-author-id',_0x9eeb8a,_0x477341);},(_0x1afad7,_0x985bb1,_0x26a9ad)=>{_0x26a9ad['removeClass'](_0x827f38(_0x985bb1['classes']),_0x1afad7),_0x26a9ad['removeAttribute']('data-suggestion-id',_0x1afad7),_0x26a9ad['removeAttribute']('data-author-id',_0x1afad7);});}},{'priority':'highest'}),_0x389138['descriptionFactory']['registerDescriptionCallback'](_0x8342c2=>{if('insertion'!=_0x8342c2['type']&&'deletion'!=_0x8342c2['type'])return;const _0x5c661d=_0x8342c2['getContainedElement']();if(null!=_0x5c661d&&_0x5c661d['is']('element','table')){if('insertion'==_0x8342c2['type']){const _0xafd0b=_0x8342c2['getItems']()['filter'](_0x4ae019=>_0x4ae019['is']('$textProxy'))['map'](_0x9ff78d=>_0x9ff78d['data']);if(_0xafd0b['length'])return{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xafd0b['join']('\x20')+'\x22'))};}if('deletion'==_0x8342c2['type']){const _0x344ba8=_0x8342c2['getItems']()['filter'](_0x3b386e=>_0x3b386e['is']('$textProxy'))['map'](_0x20f77f=>_0x20f77f['data']);if(_0x344ba8['length'])return{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x344ba8['join']('\x20')+'\x22'))};}}}),_0x389138['descriptionFactory']['registerDescriptionCallback'](_0x28c121=>{if('tableRow'==_0x28c121['subType']){const _0x391bb1=_0x28c121['getItems']()['filter'](_0xa5c517=>_0xa5c517['is']('$textProxy'))['map'](_0x29599d=>_0x29599d['data']),_0x2e7d28=this['_getSuggestionCoords'](_0x28c121),_0x5b8165=_0x2e7d28['maxRow']-_0x2e7d28['minRow']+0x1;if('insertion'==_0x28c121['type'])return _0x391bb1['length']?{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5b8165,'\x22'+_0x391bb1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW',_0x5b8165))};if('deletion'==_0x28c121['type'])return _0x391bb1['length']?{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5b8165,'\x22'+_0x391bb1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_ROW',_0x5b8165))};}if('tableColumn'==_0x28c121['subType']){const _0x5b0f3b=_0x28c121['getItems']()['filter'](_0x615ccb=>_0x615ccb['is']('$textProxy'))['map'](_0x2d38ae=>_0x2d38ae['data']),_0x14f45a=this['_getSuggestionCoords'](_0x28c121),_0xdf195c=_0x14f45a['maxColumn']-_0x14f45a['minColumn']+0x1;if('insertion'==_0x28c121['type'])return _0x5b0f3b['length']?{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdf195c,'\x22'+_0x5b0f3b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x362cb7,'*Insert:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN',_0xdf195c))};if('deletion'==_0x28c121['type'])return _0x5b0f3b['length']?{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdf195c,'\x22'+_0x5b0f3b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x362cb7,'*Remove:*\x20%0',o(_0x362cb7,'ELEMENT_TABLE_COLUMN',_0xdf195c))};}}),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x21cae1),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x21cae1),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2f50bb),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2f50bb),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b3972),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b3972),_0x389138['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14adf8),_0x389138['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14adf8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x303b2d=this['editor'],_0x572d1c=_0x303b2d['model']['document']['selection'];return(_0x2c9bcb,_0xb612b6)=>{_0x303b2d['model']['change'](_0xd3b5f4=>{const {commandName:_0x56eb28,commandParams:_0x2e77dd}=_0xb612b6;let _0x1f501e=_0x2c9bcb[0x0]['end']['nodeBefore'];_0x2e77dd&&_0x2e77dd[0x0]&&!0x1===_0x2e77dd[0x0]['forceValue']&&(_0x1f501e=_0x2c9bcb[0x0]['start']['nodeAfter']);const _0x32eba3=_0xd3b5f4['createRangeIn'](_0x1f501e);if('$graveyard'==_0x32eba3['root']['rootName'])return;const _0x219c50=Array['from'](_0x572d1c['getRanges']())['map'](_0x15564a=>_0x4c47d7['fromRange'](_0x15564a));_0xd3b5f4['setSelection'](_0x32eba3),_0x303b2d['commands']['get'](_0x56eb28)['refresh'](),_0x2e77dd['push']({'forceDefaultExecution':!0x0}),_0x303b2d['execute'](_0x56eb28,..._0x2e77dd);const _0x3ae4ea=_0x219c50['filter'](_0x3b8420=>'$graveyard'!=_0x3b8420['root']['rootName']);_0x3ae4ea['length']>0x0&&_0xd3b5f4['setSelection'](_0x3ae4ea);for(const _0x1e54f5 of _0x219c50)_0x1e54f5['detach']();});};}['_getCoordsForCells'](_0x573c3a){const _0xb09c11=this['editor']['plugins']['get']('TableUtils');let _0xabe576=Number['MAX_SAFE_INTEGER'],_0x42b4b1=Number['MIN_SAFE_INTEGER'],_0x267aa0=Number['MAX_SAFE_INTEGER'],_0x133f29=Number['MIN_SAFE_INTEGER'];for(const _0x390364 of _0x573c3a){if('$graveyard'==_0x390364['root']['rootName'])continue;const {row:_0x3ca3f6,column:_0x7ab787}=_0xb09c11['getCellLocation'](_0x390364),_0x10279c=_0x390364['hasAttribute']('rowspan')?_0x390364['getAttribute']('rowspan')-0x1:0x0,_0x2db91f=_0x390364['hasAttribute']('colspan')?_0x390364['getAttribute']('colspan')-0x1:0x0;_0xabe576=_0x3ca3f6<_0xabe576?_0x3ca3f6:_0xabe576,_0x42b4b1=_0x3ca3f6+_0x10279c>_0x42b4b1?_0x3ca3f6+_0x10279c:_0x42b4b1,_0x267aa0=_0x7ab787<_0x267aa0?_0x7ab787:_0x267aa0,_0x133f29=_0x7ab787+_0x2db91f>_0x133f29?_0x7ab787+_0x2db91f:_0x133f29;}return{'minRow':_0xabe576,'maxRow':_0x42b4b1,'minColumn':_0x267aa0,'maxColumn':_0x133f29};}['_setupColumnsRowsFixing'](){const _0x1caaad=this['editor'],_0x198d0a=_0x1caaad['plugins']['get']('TrackChangesEditing'),_0x5399e3=_0x1caaad['plugins']['get']('TableUtils');_0x1caaad['model']['document']['on']('change:data',()=>{const _0x48acc4=Array['from'](_0x1caaad['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bfda5,data:_0x7161d}of _0x48acc4){const {group:_0x1b0135,id:_0x3c7e9f,subType:_0x487c49}=_0x198d0a['_splitMarkerName'](_0x2bfda5);if('suggestion'!=_0x1b0135)continue;if(null!=_0x7161d['oldRange'])continue;const _0x1e05e4=_0x198d0a['getSuggestion'](_0x3c7e9f);this['_tablePostFixingSubtypes']['includes'](_0x487c49)&&this['_tableSuggestions']['add'](_0x1e05e4);}},{'priority':'low'});const _0x5ee0da=(_0x2fa341,_0x58b23e)=>{let _0x1616f4=!0x1;const _0x27a3c3=_0x58b23e['createRangeOn'](_0x2fa341),_0x1c8d73=_0x2fa341['findAncestor']('table'),_0x14e2cf=_0x5399e3['getCellLocation'](_0x2fa341);for(const _0x546d9e of this['_tableSuggestions']){const _0x493560=_0x546d9e['subType'],_0x3b468e=_0x493560['startsWith']('tablePaste'),_0x266ece=_0x493560['substr'](_0x3b468e?0xa:0x5),_0x3ed6bf=_0x266ece['toLowerCase'](),_0x261304=_0x3ed6bf['substr'](0x0,0x3)+'span',_0x38f324='min'+_0x266ece,_0x30776f='max'+_0x266ece;if(!_0x546d9e['isInContent'])continue;if(_0x1c8d73!=_0x546d9e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x546d9e['isIntersectingWithRange'](_0x27a3c3))continue;const _0xbcbce5=_0x2fa341['hasAttribute'](_0x261304)?_0x2fa341['getAttribute'](_0x261304)-0x1:0x0,_0x102f35=this['_getSuggestionCoords'](_0x546d9e),_0x1cff4c=_0x102f35[_0x38f324],_0x18228e=_0x102f35[_0x30776f];_0x1cff4c<=_0x14e2cf[_0x3ed6bf]&&_0x14e2cf[_0x3ed6bf]+_0xbcbce5<=_0x18228e&&(_0x546d9e['addRange'](_0x27a3c3),_0x1616f4=!0x0);}return _0x1616f4;};_0x1caaad['model']['document']['registerPostFixer'](_0x1f244d=>{let _0x3d40f1=!0x1;for(const _0x34b60e of _0x1caaad['model']['document']['differ']['getChanges']())if('insert'==_0x34b60e['type']){if('tableRow'==_0x34b60e['name']){for(const _0x916ab7 of _0x34b60e['position']['nodeAfter']['getChildren']())_0x3d40f1=_0x3d40f1||_0x5ee0da(_0x916ab7,_0x1f244d);}else'tableCell'==_0x34b60e['name']&&(_0x3d40f1=_0x3d40f1||_0x5ee0da(_0x34b60e['position']['nodeAfter'],_0x1f244d));}return _0x3d40f1;});}['_getSuggestionCoords'](_0x3c3e7c){return this['_getCoordsForCells'](_0x3c3e7c['getRanges']()['map'](_0xe00de8=>_0xe00de8['start']['nodeAfter']));}}function We(_0x30c36c){return Array['from'](new Set(_0x30c36c)['values']());}class Nt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0x4f71d5=this['editor'],_0x799af6=_0x4f71d5['model']['document']['selection'],_0x267fc5=_0x4f71d5['locale'];if(!_0x4f71d5['plugins']['has']('TableEditing'))return;const _0x12285e=_0x4f71d5['plugins']['get']('TrackChangesEditing'),_0x5cea8a=_0x4f71d5['plugins']['get']('TableUtils'),_0x5738ba=_0x4f71d5['plugins']['get']($t);_0x5738ba['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x12285e['enableCommand']('mergeTableCells',()=>{const _0x401f30=_0x5cea8a['getSelectionAffectedTableCells'](_0x4f71d5['model']['document']['selection']);_0x4f71d5['model']['change'](()=>{_0x12285e['markMultiRangeBlockFormat'](_0x401f30,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f71d5['commands']['get']('mergeTableCells')['on']('execute',(_0x1410f5,_0x468eff)=>{_0x4f71d5['commands']['get']('trackChanges')['value']&&(_0x468eff['length']>0x0&&_0x468eff[_0x468eff['length']-0x1]&&_0x468eff[_0x468eff['length']-0x1]['forceDefaultExecution']||_0x12285e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1410f5['stop']());},{'priority':'highest'});for(const _0x59cbd7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4cf505=_0x4f71d5['commands']['get'](_0x59cbd7);_0x12285e['enableCommand'](_0x59cbd7,()=>{const _0x153427=_0x4f71d5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d7105=>_0x1d7105['is']('element','tableCell')),_0x3874c6=_0x4cf505['value'];_0x4f71d5['model']['change'](()=>{_0x12285e['markMultiRangeBlockFormat']([_0x153427,_0x3874c6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x170d8a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14939b=_0x4f71d5['commands']['get'](_0x170d8a);_0x12285e['enableCommand'](_0x170d8a,()=>{const _0x49b5c4=_0x5cea8a['getSelectionAffectedTableCells'](_0x4f71d5['model']['document']['selection'])[0x0],_0x276095=_0x49b5c4['findAncestor']('table'),{column:_0x8b6921,row:_0x312d79}=_0x5cea8a['getCellLocation'](_0x49b5c4);let _0x10d74f=[];if('horizontally'==_0x14939b['direction']){const _0x572d3b=_0x5cea8a['createTableWalker'](_0x276095,{'startRow':_0x312d79,'endRow':_0x312d79,'includeAllSlots':!0x0});_0x10d74f=Array['from'](_0x572d3b)['map'](_0x1d0976=>_0x1d0976['cell']);}else{const _0x269f8e=_0x5cea8a['createTableWalker'](_0x276095,{'column':_0x8b6921,'includeAllSlots':!0x0});_0x10d74f=Array['from'](_0x269f8e)['map'](_0x59923d=>_0x59923d['cell']);}_0x4f71d5['model']['change'](_0x5848c2=>{_0x12285e['markBlockFormat'](_0x5848c2['createRangeOn'](_0x49b5c4),{'commandName':_0x170d8a,'commandParams':[]},_0x10d74f,_0x170d8a);});});}_0x12285e['descriptionFactory']['registerDescriptionCallback'](_0x3cddfb=>{if('formatBlock'!=_0x3cddfb['type']&&'formatInline'!=_0x3cddfb['type'])return;const {data:_0x30f90b}=_0x3cddfb;return _0x30f90b&&'mergeTableCells'==_0x30f90b['commandName']?{'type':'format','content':o(_0x267fc5,'*Merge\x20cells*')}:void 0x0;}),_0x12285e['descriptionFactory']['registerDescriptionCallback'](_0x4a9663=>{if('formatBlock'!=_0x4a9663['type']&&'formatInline'!=_0x4a9663['type'])return;const {data:_0xeb480a}=_0x4a9663;return _0xeb480a?'splitTableCellVertically'==_0xeb480a['commandName']?{'type':'format','content':o(_0x267fc5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xeb480a['commandName']?{'type':'format','content':o(_0x267fc5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x34704c=_0x5738ba['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b6272 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x12285e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b6272,'accept',_0x34704c);for(const _0x2dda2b of['splitTableCellVertically','splitTableCellHorizontally'])_0x12285e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2dda2b,'accept',_0x34704c);_0x12285e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16e82e=>{_0x4f71d5['model']['change'](_0x447374=>{const _0x1c746b=Array['from'](_0x799af6['getRanges']())['map'](_0x24bbb2=>_0x4c47d7['fromRange'](_0x24bbb2));_0x447374['setSelection'](_0x16e82e),_0x4f71d5['commands']['get']('mergeTableCells')['refresh'](),_0x4f71d5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x35c4f2=_0x1c746b['filter'](_0x5ed179=>'$graveyard'!=_0x5ed179['root']['rootName']);_0x35c4f2['length']>0x0&&_0x447374['setSelection'](_0x35c4f2);for(const _0x3dd910 of _0x1c746b)_0x3dd910['detach']();});});for(const _0x1b7ed3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x14200e=_0x4f71d5['commands']['get'](_0x1b7ed3);_0x14200e['on']('set:isEnabled',(_0x16dc71,_0x31845c,_0x4c76da)=>{if(_0x4c76da){const _0x15e6b7=_0x4f71d5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a6b1c=>_0x2a6b1c['is']('element','tableCell'));this['_areMergableCells'](_0x14200e['value'],_0x15e6b7)||(_0x16dc71['return']=!0x1,_0x16dc71['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ab134=this['editor']['commands']['get']('mergeTableCells'),_0x11e03f=this['editor']['plugins']['get']('TableUtils');if(!_0x4ab134['isEnabled'])return!0x1;const _0x32bf39=_0x11e03f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x49ed9b of _0x32bf39)for(const _0x4ccf1b of _0x32bf39)if(_0x49ed9b!=_0x4ccf1b&&!this['_areMergableCells'](_0x49ed9b,_0x4ccf1b))return!0x1;return!0x0;}['_areMergableCells'](_0x40dbf9,_0x484bfd){const _0x3da4b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x371f96=this['editor']['model']['createRangeOn'](_0x40dbf9),_0x41b624=this['editor']['model']['createRangeOn'](_0x484bfd),_0xdd855=new Set(),_0x589e24=new Set();for(const _0x207a00 of _0x3da4b9['getSuggestions']())if(('insertion'==_0x207a00['type']||'deletion'==_0x207a00['type']||'mergeTableCells'==_0x207a00['subType'])&&_0x207a00['isInContent']){for(const _0x4e2cd3 of _0x207a00['getRanges']())_0x4e2cd3['containsRange'](_0x371f96,!0x0)&&_0xdd855['add'](_0x207a00['type']+':'+_0x207a00['author']['id']),_0x4e2cd3['containsRange'](_0x41b624,!0x0)&&_0x589e24['add'](_0x207a00['type']+':'+_0x207a00['author']['id']);}if(_0xdd855['size']!=_0x589e24['size'])return!0x1;for(const _0x5c13bb of _0xdd855)if(!_0x589e24['has'](_0x5c13bb))return!0x1;return!0x0;}}class Dt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0xae2323=this['editor'];if(!_0xae2323['plugins']['has']('TableEditing'))return;const _0x1b3d1b=_0xae2323['locale'],_0x2daf33=_0xae2323['plugins']['get']('TrackChangesEditing');_0x2daf33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2daf33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2daf33['registerBlockAttribute']('headingRows'),_0x2daf33['registerBlockAttribute']('headingColumns'),_0x2daf33['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1b3d1b,'FORMAT_HEADER_ROW')),_0x2daf33['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1b3d1b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32ad78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x577088=this['editor']['plugins']['get']('TableUtils'),_0x55a6e4=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x425c5d({showActiveMarker:_0x93cca1=!0x0,setDataAttribute:_0x4704fc=!0x0}={}){return(_0x17624a,_0x408206,_0x10c395)=>{const {type:_0x998f0a,id:_0x4eb983}=_0x32ad78['_splitMarkerName'](_0x408206['markerName']);if(!_0x32ad78['hasSuggestion'](_0x4eb983))return;const _0xa0b6fe=_0x32ad78['getSuggestion'](_0x4eb983),_0x2e22f6=_0xa0b6fe['data'];if('formatBlock'!=_0xa0b6fe['type']||!_0x2e22f6||'setTableColumnHeader'!=_0x2e22f6['commandName'])return;if(_0x408206['item'])return void _0x17624a['stop']();if(!_0x10c395['consumable']['consume'](_0x408206['markerRange'],_0x17624a['name']))return;const _0x408d99=_0x408206['markerRange']['start']['nodeAfter'],_0x4884bb=_0x408206['markerRange']['end']['nodeBefore'],_0x12a38a=_0x408d99['parent']['parent'],{column:_0x60b029}=_0x577088['getCellLocation'](_0x408d99),{column:_0x473781}=_0x577088['getCellLocation'](_0x4884bb);for(let _0x2a4103=_0x60b029;_0x2a4103<=_0x473781;_0x2a4103++){const _0xcddbe7=_0x577088['createTableWalker'](_0x12a38a,{'column':_0x2a4103,'includeAllSlots':!0x1});for(const _0x664f of _0xcddbe7){const _0x35a1e6=_0x664f['cell'],_0x5495c2=_0x10c395['mapper']['toViewElement'](_0x35a1e6);_0x10c395['writer']['addClass']('ck-suggestion-marker-'+_0x998f0a,_0x5495c2),_0x4704fc&&_0x10c395['writer']['setAttribute']('data-suggestion',_0x4eb983,_0x5495c2),_0x10c395['mapper']['bindElementToMarker'](_0x5495c2,_0x408206['markerName']),_0x93cca1&&(_0x32ad78['activeMarkers']['includes'](_0x408206['markerName'])?_0x10c395['writer']['addClass']('ck-suggestion-marker--active',_0x5495c2):_0x10c395['writer']['removeClass']('ck-suggestion-marker--active',_0x5495c2));}}};}_0x32ad78['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55a6e4),_0x32ad78['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55a6e4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x425c5d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x584351,_0x222018,_0x34e614)=>{_0x34e614['options']['showSuggestionHighlights']&&_0x425c5d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x584351,_0x222018,_0x34e614);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c8767,_0x4b9742,_0x94ff51)=>{const {type:_0x4a7eaa,id:_0x36274c}=_0x32ad78['_splitMarkerName'](_0x4b9742['markerName']);if(!_0x32ad78['hasSuggestion'](_0x36274c))return;const _0x23ce9b=_0x32ad78['getSuggestion'](_0x36274c),_0x1095e3=_0x23ce9b['data'];if('formatBlock'!=_0x23ce9b['type']||!_0x1095e3||'setTableColumnHeader'!=_0x1095e3['commandName'])return;const _0x311b00=_0x94ff51['mapper']['markerNameToElements'](_0x4b9742['markerName']);if(_0x311b00){for(const _0x43d3d9 of _0x311b00)_0x94ff51['writer']['removeClass']('ck-suggestion-marker-'+_0x4a7eaa,_0x43d3d9),_0x94ff51['writer']['removeClass']('ck-suggestion-marker--active',_0x43d3d9),_0x94ff51['writer']['removeAttribute']('data-suggestion',_0x43d3d9),_0x94ff51['mapper']['unbindElementFromMarkerName'](_0x43d3d9,_0x4b9742['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6f17ef=this['editor'],_0x5578be=_0x6f17ef['locale'];function _0x10dc50(_0x501f8f){return{'type':'format','content':o(_0x5578be,'*Format:*\x20%0',_0x501f8f)};}_0x6f17ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268960=>{if('formatBlock'!=_0x268960['type'])return;const {data:_0x4dd7a9}=_0x268960;if(_0x4dd7a9){if('setTableRowHeader'==_0x4dd7a9['commandName']){const _0x34e8aa=_0x4dd7a9['commandParams'][0x0]['forceValue'];return _0x10dc50(o(_0x5578be,_0x34e8aa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4dd7a9['commandName']){const _0x1a52db=_0x4dd7a9['commandParams'][0x0]['forceValue'];return _0x10dc50(o(_0x5578be,_0x1a52db?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x391ea2{['afterInit'](){const _0x21e34d=this['editor'],_0x36b36c=_0x21e34d['locale'],_0x4b9149=_0x21e34d['plugins']['get']('TrackChangesEditing');function _0x57ac4a(_0x3b6795){return{'type':'format','content':''+o(_0x36b36c,'*Set\x20table\x20type:*\x20%0',_0x3b6795)};}_0x21e34d['plugins']['has']('TableLayout')&&(_0x4b9149['enableCommand']('insertTableLayout'),_0x4b9149['enableDefaultAttributesIntegration']('tableType'),_0x4b9149['registerBlockAttribute']('tableType'),_0x4b9149['descriptionFactory']['registerElementLabel'](_0x36f704=>_0x36f704['is']('element','table')&&'layout'===_0x36f704['getAttribute']('tableType'),_0x39ad38=>o(_0x36b36c,'ELEMENT_LAYOUT_TABLE',_0x39ad38)),_0x4b9149['descriptionFactory']['registerDescriptionCallback'](_0x1e05cc=>{const {data:_0x75d713}=_0x1e05cc;if(_0x75d713&&'tableType'==_0x75d713['key'])switch(_0x75d713['newValue']){case'layout':return _0x57ac4a(o(_0x36b36c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x57ac4a(o(_0x36b36c,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Oe['map'](_0x3601ec=>[_0x3601ec,null]));class Bt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0x55399f=this['editor'];if(!_0x55399f['plugins']['has']('TableClipboard'))return;const _0x28655a=_0x55399f['plugins']['get']('TrackChangesEditing'),_0x462c5d=_0x55399f['plugins']['get']('TableUtils'),_0x5beaaf=_0x55399f['plugins']['get']($t),_0x4669b7=_0x55399f['plugins']['get']('TableClipboard'),_0x29b4f1=_0x55399f['plugins']['get']('TableSelection'),_0x46e21f=_0x55399f['plugins']['get'](_0x267f27);_0x5beaaf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55399f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55399f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1f3124=null,_0x345804=!0x1;_0x46e21f['on']('contentInsertion',(_0x40d193,_0x43d89d)=>{_0x345804='paste'===_0x43d89d['method'];}),_0x55399f['model']['on']('insertContent',(_0x297fc9,_0x2a5601)=>{if(!_0x345804&&null===_0x29b4f1['getSelectedTableCells']())return;const [_0x22573a,_0x3d46c6]=_0x2a5601,_0x2737b9=_0x2a5601[_0x2a5601['length']-0x1];_0x2737b9&&_0x2737b9['forceDefaultExecution']||_0x28655a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x38465e,_0x408423,_0x46596d,_0x20a7c6,_0x18020d){if(_0x408423&&!_0x408423['is']('documentSelection'))return!0x1;const _0x52f519=_0x18020d['getTableIfOnlyTableInContent'](_0x38465e,_0x46596d);if(!_0x52f519||!He(_0x52f519,void 0x0,_0x20a7c6))return!0x1;const _0xfd9368=_0x20a7c6['getSelectionAffectedTableCells'](_0x46596d['document']['selection']);if(!_0xfd9368['length'])return!0x1;const _0x16107a=_0xfd9368[0x0]['findAncestor']('table'),_0x314b05=_0x20a7c6['getRowIndexes'](_0xfd9368),_0x1b0ebe=_0x20a7c6['getColumnIndexes'](_0xfd9368),_0x12157c={'startRow':_0x314b05['first'],'endRow':_0x314b05['last'],'startColumn':_0x1b0ebe['first'],'endColumn':_0x1b0ebe['last']};return 0x1==_0xfd9368['length']&&(_0x12157c['endRow']+=_0x20a7c6['getRows'](_0x52f519)-0x1,_0x12157c['endColumn']+=_0x20a7c6['getColumns'](_0x52f519)-0x1),He(_0x16107a,_0x12157c,_0x20a7c6);}(_0x22573a,_0x3d46c6,_0x55399f['model'],_0x462c5d,_0x4669b7)&&(_0x297fc9['stop'](),_0x1f3124={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55399f['model']['change'](()=>{_0x55399f['model']['insertContent'](_0x2a5601[0x0],_0x2a5601[0x1],_0x2a5601[0x2],{'forceDefaultExecution':!0x0});const _0x18d2c5=_0x337574(),{rowInsertionRanges:_0x48e02e,columnInsertionRanges:_0x2abbc5,insertionRanges:_0x24ec05,deletionRanges:_0x1f90de,cells:_0xd7d82e}=_0x1f3124;_0x48e02e['length']&&_0x28655a['markMultiRangeInsertion'](_0x48e02e,'tablePasteRow',{'tablePasteChainId':_0x18d2c5}),_0x2abbc5['length']&&_0x28655a['markMultiRangeInsertion'](_0x2abbc5,'tablePasteColumn',{'tablePasteChainId':_0x18d2c5}),_0x24ec05['length']&&(_0x28655a['markMultiRangeInsertion'](_0x24ec05,'tablePaste',{'tablePasteChainId':_0x18d2c5,'skipNestingCheck':!0x0}),_0x24ec05['forEach'](_0x4c1e5b=>_0x4c1e5b['detach']?.())),_0x1f90de['length']&&(_0x28655a['markMultiRangeDeletion'](_0x1f90de,'tablePaste',{'tablePasteChainId':_0x18d2c5,'skipNestingCheck':!0x0}),_0x1f90de['forEach'](_0x442545=>_0x442545['detach']?.()));const _0x303c31=_0x28655a['markMultiRangeBlockFormat'](_0xd7d82e['map'](({element:_0x7e6125})=>_0x7e6125),{'formatGroupId':_0x337574()},[],'tablePasteCell',{'tablePasteChainId':_0x18d2c5});if(_0x303c31){const _0x226220=_0x303c31['getMarkers'](),_0x2e242a=[];for(const {element:_0x19284c,attributes:_0xf16512}of _0xd7d82e){if(!_0xf16512)continue;const _0x508f16=_0x55399f['model']['createRangeOn'](_0x19284c),_0x4f08a5=_0x226220['find'](_0x56942a=>_0x56942a['getRange']()['isEqual'](_0x508f16));_0x4f08a5&&_0x2e242a['push']([_0x4f08a5['name'],_0xf16512]);}_0x2e242a['length']&&_0x303c31['setAttribute']('markerAttributes',Object['fromEntries'](_0x2e242a));}_0x1f3124=null;}));},{'priority':_0x36d8eb['high']+0xa}),_0x46e21f['on']('contentInsertion',()=>{_0x345804=!0x1;},{'priority':'lowest'}),_0x55399f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3cd893,_0x3d39da)=>{const [_0x2a8e28,_0x504506,,_0x5d7983]=_0x3d39da;if(!_0x1f3124)return;_0x3cd893['stop']();const _0x311c6a=_0x2a8e28['cell'],_0x4ee0bb=_0x504506,_0x4b4215=De(_0x311c6a),_0x57172a=De(_0x4ee0bb);_0x3cd893['return']=_0x311c6a;let _0xa50eab=null,_0xe0c7e1=null;if(_0x57172a||_0x4b4215){if(_0x4b4215&&!_0x57172a){_0x5d7983['remove'](_0x311c6a['getChild'](0x0));for(const _0x2accb6 of Array['from'](_0x4ee0bb['getChildren']()))_0x5d7983['insert'](_0x2accb6,_0x311c6a,'end');const _0x2f6f6f=_0x1f3124['rowInsertionIndexes']['includes'](_0x2a8e28['row']),_0xd79b8c=_0x1f3124['columnInsertionIndexes']['includes'](_0x2a8e28['column']);_0x2f6f6f||_0xd79b8c||(_0xa50eab=_0x4c47d7['fromRange'](_0x5d7983['createRangeIn'](_0x311c6a)));}else _0x57172a&&!_0x4b4215&&(_0xe0c7e1=_0x5d7983['createRangeIn'](_0x311c6a));}else{const _0x46cb01=_0x5d7983['createElement']('tableCellSuggestion'),_0x317ab5=_0x5d7983['createElement']('tableCellSuggestion');_0x5d7983['wrap'](_0x5d7983['createRangeIn'](_0x311c6a),_0x317ab5),_0x5d7983['insert'](_0x46cb01,_0x311c6a,0x0);for(const _0x342c90 of Array['from'](_0x4ee0bb['getChildren']()))_0x5d7983['insert'](_0x342c90,_0x46cb01,'end');_0xa50eab=_0x4c47d7['fromRange'](_0x5d7983['createRangeOn'](_0x46cb01)),_0xe0c7e1=_0x4c47d7['fromRange'](_0x5d7983['createRangeOn'](_0x317ab5));}const _0x4eba9f=Array['from'](_0x4ee0bb['getAttributes']())['filter'](([_0x3f09f0])=>Oe['includes'](_0x3f09f0));_0x1f3124['cells']['push']({'element':_0x311c6a,'attributes':_0x4eba9f['length']?Object['fromEntries'](_0x4eba9f):null}),_0xa50eab&&_0x1f3124['insertionRanges']['push'](_0xa50eab),_0xe0c7e1&&_0x1f3124['deletionRanges']['push'](_0xe0c7e1);},{'priority':'high'}),_0x462c5d['on']('insertColumns',(_0x5c02e1,_0x568c76)=>{const [_0x140fab,_0x455c49={}]=_0x568c76;if(!_0x1f3124)return;const _0x1a8dfa=_0x455c49['at']||0x0,_0x85e35e=_0x455c49['columns']||0x1;_0x1f3124['columnInsertionIndexes']=new Array(_0x85e35e)['fill'](_0x1a8dfa)['map']((_0x1e3db1,_0x48e805)=>_0x1e3db1+_0x48e805);for(const {cell:_0x50a027}of _0x462c5d['createTableWalker'](_0x140fab,{'startColumn':_0x1a8dfa,'endColumn':_0x1a8dfa+_0x85e35e-0x1}))_0x1f3124['columnInsertionRanges']['push'](_0x55399f['model']['createRangeOn'](_0x50a027));},{'priority':'low'}),_0x462c5d['on']('insertRows',(_0x5e79e3,_0x81a50a)=>{const [_0x12fb85,_0x1a5ce4={}]=_0x81a50a;if(!_0x1f3124)return;const _0x48d3b0=_0x1a5ce4['at']||0x0,_0x580de0=_0x1a5ce4['rows']||0x1;_0x1f3124['rowInsertionIndexes']=new Array(_0x580de0)['fill'](_0x48d3b0)['map']((_0x270385,_0x53a40e)=>_0x270385+_0x53a40e);for(const {cell:_0x54b273}of _0x462c5d['createTableWalker'](_0x12fb85,{'startRow':_0x48d3b0,'endRow':_0x48d3b0+_0x580de0-0x1}))_0x1f3124['rowInsertionRanges']['push'](_0x55399f['model']['createRangeOn'](_0x54b273));},{'priority':'low'}),_0x28655a['descriptionFactory']['registerDescriptionCallback'](_0x360470=>{if(_0x360470['subType']&&_0x360470['subType']['startsWith']('tablePaste'))return _0x360470['previous']?{}:{'type':'insertion','content':o(_0x55399f['locale'],'*Replace\x20table\x20cells*')};});const _0x449db1=()=>!0x1;for(const _0x1db440 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x28655a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1db440,'join',_0x449db1),_0x28655a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1db440,'join',_0x449db1),_0x28655a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1db440,'join',_0x449db1);_0x28655a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x449db1),_0x28655a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e29d9,_0x516731,_0x3f6e13)=>{const _0x1a72f2=_0x3e29d9['map'](_0x458bc2=>_0x458bc2['getContainedElement']())['filter'](_0x53973b=>_0x53973b),_0x24fe3c=new Map(_0x1a72f2['map'](_0x50c137=>[_0x50c137,null]));if(_0x1f3124){for(const {element:_0x4089b1,attributes:_0x507052}of _0x1f3124['cells'])_0x507052&&_0x24fe3c['set'](_0x4089b1,_0x507052);}else{if(_0x3f6e13&&_0x3f6e13['markerAttributes'])for(const [_0x1898e5,_0x563567]of Object['entries'](_0x3f6e13['markerAttributes'])){const _0x2bb2cd=_0x55399f['model']['markers']['get'](_0x1898e5),_0x32b3d5=_0x2bb2cd?_0x2bb2cd['getRange']()['getContainedElement']():null;_0x32b3d5&&_0x24fe3c['set'](_0x32b3d5,_0x563567);}}_0x55399f['model']['change'](_0x3e87e7=>{for(const [_0xcb712a,_0x2c3262]of _0x24fe3c)_0x3e87e7['setAttributes']({...Ue,..._0x2c3262},_0xcb712a);});});const _0xce5360=(_0x25081a,_0x422ac8)=>{_0x28655a['_suggestionFactory']['registerCustomCallback'](_0x25081a,'tablePaste',_0x422ac8,(_0xc2c5ae,_0x2d0162,_0x25203a)=>{_0x55399f['model']['change'](_0x49bb72=>{const _0x19f98f=[];for(const _0x270dae of _0xc2c5ae){const _0x4d0eb8=_0x270dae['start']['nodeAfter'];_0x4d0eb8['is']('element','tableCellSuggestion')&&_0x19f98f['push'](_0x4d0eb8);}_0x28655a['_suggestionFactory']['getSuggestionCallback'](_0x25081a,null,_0x422ac8)(_0xc2c5ae,_0x2d0162,_0x25203a);for(const _0xebff5a of _0x19f98f)'$graveyard'!=_0xebff5a['root']['rootName']&&_0x49bb72['unwrap'](_0xebff5a);});});};_0xce5360('insertion','accept'),_0xce5360('insertion','discard'),_0xce5360('deletion','accept'),_0xce5360('deletion','discard'),_0x28655a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2f2f7d=>{const _0x5b5443=_0x2f2f7d['map'](_0x4e03c0=>_0x4e03c0['getContainedElement']()),_0x4cd25b=_0x5b5443[0x0]['findAncestor']('table'),{minRow:_0x3d217b,maxRow:_0x376843}=_0x5beaaf['_getCoordsForCells'](_0x5b5443);_0x462c5d['removeRows'](_0x4cd25b,{'at':_0x3d217b,'rows':_0x376843-_0x3d217b+0x1});}),_0x28655a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1edf80=>{const _0x5a06b3=_0x1edf80['map'](_0x24dd74=>_0x24dd74['getContainedElement']()),_0xce4eb3=_0x5a06b3[0x0]['findAncestor']('table'),{minColumn:_0x320956,maxColumn:_0x30ecbe}=_0x5beaaf['_getCoordsForCells'](_0x5a06b3);_0x462c5d['removeColumns'](_0xce4eb3,{'at':_0x320956,'columns':_0x30ecbe-_0x320956+0x1});});const _0x2ca90c=(_0x2242af,_0x20eb60)=>{if(!_0x20eb60['subType']||!_0x20eb60['subType']['startsWith']('tablePaste'))return;const _0x56f70c=_0x20eb60['attributes']['tablePasteChainId'],_0x6134a5=_0x28655a['getSuggestions']()['filter'](_0x43931d=>_0x43931d['isInContent']&&_0x43931d['attributes']&&_0x43931d['attributes']['tablePasteChainId']==_0x56f70c);_0x6134a5['length']&&_0x20eb60['getAllAdjacentSuggestions']()['length']!=_0x6134a5['length']&&_0x6134a5['reduce']((_0xab079c,_0x2a4f4a)=>(_0xab079c['next']=_0x2a4f4a,_0x2a4f4a['previous']=_0xab079c,_0x2a4f4a));};function _0x2816be(_0x1bdb73,_0x3ad5dc=!0x0){const {id:_0x45bbd1,authorId:_0x27967e}=_0x28655a['_splitMarkerName'](_0x1bdb73['markerName']),_0x3b20db=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e1a6f=_0x28655a['activeMarkers']['includes'](_0x1bdb73['markerName']);return _0x2e1a6f&&_0x3b20db['push']('ck-suggestion-marker--active'),{'classes':_0x3b20db,'attributes':{'data-suggestion':_0x45bbd1,'data-author-id':_0x27967e},'priority':_0x2e1a6f&&_0x3ad5dc?0xbc2:0xbb8};}_0x28655a['on']('suggestionLoaded',_0x2ca90c,{'priority':'high'}),_0x28655a['on']('suggestionUnloaded',_0x2ca90c,{'priority':'high'}),_0x55399f['model']['document']['registerPostFixer'](()=>{let _0x5ac2ca=!0x1;const _0x715a60=Array['from'](_0x55399f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e45c6,data:_0x464bed}of _0x715a60){const {group:_0x3152e4,type:_0x36cfc1,id:_0x4b0d73}=_0x28655a['_splitMarkerName'](_0x4e45c6);if('suggestion'!=_0x3152e4||'deletion'!=_0x36cfc1||_0x464bed['oldRange'])continue;if(!_0x28655a['hasSuggestion'](_0x4b0d73))continue;const _0x3279af=_0x28655a['getSuggestion'](_0x4b0d73)['getRanges'](),_0x1ab4de=_0x55399f['plugins']['get']('Users')['me'];for(const _0xa86a97 of _0x28655a['getSuggestions']()){if(!_0xa86a97['isInContent']||_0xa86a97['author']!=_0x1ab4de)continue;if('formatBlock'!=_0xa86a97['type']||'tablePasteCell'!=_0xa86a97['subType'])continue;if(_0xa86a97['getRanges']()['every'](_0x369ee8=>_0x3279af['some'](_0x3e6677=>_0x3e6677['containsRange'](_0x369ee8,!0x0)))){for(const _0x219243 of _0xa86a97['getAllAdjacentSuggestions']())_0x219243['isInContent']&&(_0x219243['discard'](),_0x5ac2ca=!0x0);}}}return _0x5ac2ca;}),_0x55399f['model']['document']['registerPostFixer'](_0x4de97d=>{const _0x388646=_0x55399f['commands']['get']('redo');if(!_0x388646||!_0x388646['_createdBatches']['has'](_0x4de97d['batch']))return!0x1;let _0x294b98=!0x1;const _0x1a427a=_0x55399f['plugins']['get']('Users')['me'],_0x4a6d84=_0x55399f['model']['document']['differ']['getChanges'](),_0x35bdfa=Array['from'](_0x55399f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x584ce8,data:_0x3b8e36})=>{const {group:_0x57e738,subType:_0x2676ba,authorId:_0x57b2ec}=_0x28655a['_splitMarkerName'](_0x584ce8);return'suggestion'==_0x57e738&&'tablePaste'==_0x2676ba&&_0x57b2ec==_0x1a427a['id']&&!_0x3b8e36['oldRange'];});for(const _0x516c12 of _0x4a6d84){if('insert'!=_0x516c12['type']||'tableCellSuggestion'!=_0x516c12['name']||0x1!=_0x516c12['length'])continue;const _0x312fc9=_0x4de97d['createRange'](_0x516c12['position'],_0x516c12['position']['getShiftedBy'](0x1));if(!_0x35bdfa['find'](({data:_0x1311b6})=>_0x1311b6['newRange']['isEqual'](_0x312fc9))){for(const {name:_0x52c62b,data:_0x536c3f}of _0x35bdfa)if(_0x312fc9['containsRange'](_0x536c3f['newRange'])){_0x4de97d['updateMarker'](_0x52c62b,{'range':_0x312fc9}),_0x294b98=!0x0;break;}}}return _0x294b98;}),_0x55399f['model']['document']['registerPostFixer'](_0x3ede7b=>{let _0x2d4daf=!0x1;const _0x22d8a0=_0x55399f['plugins']['get']('Users')['me'],_0x2e4f84=_0x28655a['getSuggestions']()['filter'](_0xf97fbf=>_0xf97fbf['isInContent']&&_0xf97fbf['author']==_0x22d8a0),_0x431371=new Set(),_0x3943b3=new Set();for(const _0x41cd91 of _0x2e4f84)if('tablePaste'==_0x41cd91['subType'])for(const _0x519bdb of _0x41cd91['getMarkers']()){const _0x4b776e=_0x519bdb['getRange']()['getContainedElement']();if(_0x4b776e){if(_0x4b776e['is']('element','tableCellSuggestion')&&De(_0x4b776e)){_0x41cd91['removeMarker'](_0x519bdb['name']),_0x431371['add'](_0x4b776e),_0x2d4daf=!0x0;const _0x8a50c5=_0x4b776e['nextSibling'],_0x41a952=_0x4b776e['previousSibling'],_0x5579e1=_0x8a50c5&&_0x8a50c5['is']('element','tableCellSuggestion'),_0x29d7cd=_0x41a952&&_0x41a952['is']('element','tableCellSuggestion');_0x5579e1&&!_0x431371['has'](_0x8a50c5)&&_0x3943b3['add'](_0x8a50c5),_0x29d7cd&&!_0x431371['has'](_0x41a952)&&_0x3943b3['add'](_0x41a952);}else _0x4b776e['is']('element','paragraph')&&_0x4b776e['isEmpty']&&(_0x41cd91['removeMarker'](_0x519bdb['name']),_0x2d4daf=!0x0);}}else{if('tablePasteCell'==_0x41cd91['subType']){if(!_0x41cd91['attributes']||!_0x41cd91['attributes']['tablePasteChainId'])continue;const _0x4ef385=_0x41cd91['attributes']['markerAttributes'];if(_0x4ef385&&Object['keys'](_0x4ef385)['length'])continue;const _0x6ff222=_0x41cd91['attributes']['tablePasteChainId'];let _0x461317=!0x0,_0x46eca2=!0x0;for(const _0x12cd78 of _0x2e4f84)if(_0x12cd78['subType']&&_0x12cd78['subType']['startsWith']('tablePaste')){if(!_0x12cd78['attributes']['tablePasteChainId']){_0x46eca2=!0x1;break;}if(_0x12cd78['id']!=_0x41cd91['id']&&_0x12cd78['attributes']['tablePasteChainId']==_0x6ff222){_0x461317=!0x1;break;}}_0x46eca2&&_0x461317&&(_0x41cd91['removeMarkers'](),_0x2d4daf=!0x0);}}for(const _0x5553ac of _0x431371)_0x3ede7b['remove'](_0x5553ac);for(const _0xe839f of _0x3943b3)_0x3ede7b['unwrap'](_0xe839f);return _0x2d4daf;}),_0x55399f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26b65=>_0x2816be(_0x26b65),'converterPriority':'high'}),_0x55399f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59e5b1,_0x10c7eb)=>_0x10c7eb['options']['showSuggestionHighlights']?_0x2816be(_0x59e5b1,!0x1):null,'converterPriority':'high'});const _0x42237d=_0x55399f['editing']['view'];this['listenTo'](_0x42237d['document'],'clipboardOutput',(_0x46765d,_0x3a7f1e)=>{const _0x39a647=[];for(const _0x5be1c3 of _0x42237d['createRangeIn'](_0x3a7f1e['content'])['getItems']())_0x5be1c3['is']('element','suggestion-td')&&_0x39a647['push'](_0x5be1c3);_0x42237d['change'](_0x44ae47=>{for(const _0x409d73 of _0x39a647)_0x44ae47['move'](_0x44ae47['createRangeIn'](_0x409d73),_0x44ae47['createPositionBefore'](_0x409d73)),_0x44ae47['remove'](_0x409d73);});});}}function De(_0x2981a3){if(_0x2981a3['isEmpty'])return!0x0;const _0x245fe4=_0x2981a3['getChild'](0x0);return _0x245fe4['is']('element','paragraph')&&_0x245fe4['isEmpty'];}function He(_0x5b26a6,_0x5e6d7d={},_0x62ab63){for(const {isAnchor:_0x2bbdf7,cellHeight:_0x59c763,cellWidth:_0x5ab647}of _0x62ab63['createTableWalker'](_0x5b26a6,{'includeAllSlots':!0x0,..._0x5e6d7d}))if(!_0x2bbdf7||0x1!=_0x59c763||0x1!=_0x5ab647)return!0x1;return!0x0;}class Tt extends _0x391ea2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1da331=this['editor']['plugins']['get']('TrackChangesEditing');_0x1da331['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1da331['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1da331['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1da331['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1da331['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1da331['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57ecfe,_0x3df57b){const _0x517b17=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfa9996=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2369e8=_0x3df57b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3589a8=_0xfa9996['getColumnGroupElement'](_0x2369e8);let _0x5e2827=_0x3589a8?_0xfa9996['getTableColumnsWidths'](_0x3589a8):null,_0x3e05f8=_0x2369e8['getAttribute']('tableWidth')||null;const _0x33ec92=_0x3df57b['tableWidth']||_0x3e05f8,_0x156c05=_0x3df57b['columnWidths']||_0x5e2827,_0x578c74=this['editor']['plugins']['get']('Users')['me'];for(const _0x8ec7d2 of _0x517b17['getSuggestions']()){const _0x2e360c=_0x8ec7d2['getContainedElement']();if('resizeTable'===_0x8ec7d2['subType']&&_0x2e360c===_0x2369e8){_0x8ec7d2['author']!==_0x578c74&&_0x8ec7d2['discard']();const _0x2fee5a=_0x8ec7d2['data']['commandParams'];_0x3e05f8=_0x2fee5a[0x0]['tableWidth'],_0x5e2827=_0x2fee5a[0x0]['columnWidths'];break;}}_0x57ecfe({'table':_0x2369e8,'tableWidth':_0x33ec92,'columnWidths':_0x156c05}),_0x517b17['markBlockFormat'](_0x2369e8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3e05f8,'columnWidths':_0x5e2827}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13b106){if('formatBlock'!=_0x13b106['type']&&'formatInline'!=_0x13b106['type'])return;const {data:_0x4a4a7d}=_0x13b106;if(_0x4a4a7d&&'resizeTable'===_0x4a4a7d['formatGroupId']){const _0x32362c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x32362c)};}}}class Ot extends _0x391ea2{['afterInit'](){const _0xd3ab70=this['editor'];_0xd3ab70['plugins']['has']('Template')&&_0xd3ab70['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x391ea2{['afterInit'](){const _0x4aebcb=this['editor'];if(!_0x4aebcb['commands']['get']('insertTableOfContents'))return;_0x4aebcb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x37bc6a=_0x4aebcb['plugins']['get']('TrackChangesEditing'),_0x35739a=_0x4aebcb['locale'];_0x37bc6a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x17ca6b=>o(_0x35739a,'ELEMENT_TABLE_OF_CONTENTS',_0x17ca6b));}}class Et extends _0x391ea2{['afterInit'](){const _0x561c5a=this['editor'];if(!_0x561c5a['plugins']['has']('Title'))return;const _0xc3b76d=_0x561c5a['plugins']['get']('TrackChangesEditing');_0xc3b76d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x561c5a['locale'],'ELEMENT_TITLE')),_0x561c5a['model']['document']['registerPostFixer'](_0x45c3c0=>{let _0x6277bd=!0x1;const _0x24ccec=Array['from'](_0x561c5a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc20a86,data:_0x107b73}of _0x24ccec){const {group:_0x43ec69}=_0xc3b76d['_splitMarkerName'](_0xc20a86);if('suggestion'!==_0x43ec69||!_0x107b73['newRange'])continue;const _0x44512d=_0x107b73['newRange'],_0x298c8b=_0x44512d['end']['nodeBefore'];if(!_0x298c8b||!_0x298c8b['is']('element','title-content'))continue;if(!_0x44512d['start']['isTouching'](_0x44512d['end']))continue;const _0x32ba67=_0x561c5a['model']['schema']['getNearestSelectionRange'](_0x44512d['end'],'forward');if(_0x32ba67&&_0x32ba67['isCollapsed']){const _0x28eeb8=_0x45c3c0['createRange'](_0x44512d['start'],_0x32ba67['start']);_0x28eeb8['isEqual'](_0x44512d)||(_0x45c3c0['updateMarker'](_0xc20a86,{'range':_0x28eeb8}),_0x6277bd=!0x0);}_0x6277bd||(_0x45c3c0['removeMarker'](_0xc20a86),_0x6277bd=!0x0);}return _0x6277bd;});}}class Rt extends _0x391ea2{['afterInit'](){const _0x5663d4=this['editor'],_0x32d5df=_0x5663d4['plugins']['get']('TrackChangesEditing');_0x5663d4['plugins']['has']('Uploadcare')&&(_0x32d5df['enableCommand']('uploadcare'),_0x5663d4['plugins']['has']('UploadcareImageEdit')&&(_0x32d5df['enableCommand']('uploadcareImageEdit'),_0x32d5df['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x32d5df['registerBlockAttribute']('uploadcareImageId'),_0x32d5df['descriptionFactory']['registerDescriptionCallback'](_0x176188=>{if('attribute'!=_0x176188['type'])return;const {data:_0x156eee}=_0x176188;return _0x156eee&&'uploadcareImageId'==_0x156eee['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x391ea2{['afterInit'](){const _0x5b7d3b=this['editor'],_0x12c153=_0x5b7d3b['plugins']['get']('TrackChangesEditing');_0x5b7d3b['plugins']['has']('UndoEditing')&&(_0x12c153['enableCommand']('undo'),_0x12c153['enableCommand']('redo'));}}class Vt extends _0x391ea2{static get['requires'](){return[$t];}['afterInit'](){const _0x54db24=this['editor'];if(!_0x54db24['plugins']['has']('TableCaptionEditing'))return;_0x54db24['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x391ea2{['tableProperties'];['tableCellProperties'];constructor(_0x2299fd){super(_0x2299fd),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 _0x1f81f7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x429f52 of this['tableProperties'])_0x1f81f7['enableCommand'](_0x429f52,(_0x1748b9,_0x38b9d8)=>{const _0x1b1251=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x429f52,[_0x1b1251],this['tableProperties'],'tableProperties',_0x1748b9,_0x38b9d8);});_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f81f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40b4dd,_0x422485)=>this['handleDiscardAction'](this['tableProperties'],_0x40b4dd,_0x422485)),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x374b28 of this['tableCellProperties'])_0x1f81f7['enableCommand'](_0x374b28,(_0x1c3f17,_0x49e03d)=>{const _0x94c94f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x374b28,_0x94c94f,this['tableCellProperties'],'tableCellProperties',_0x1c3f17,_0x49e03d);});_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f81f7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x8b57b7,_0x230f71)=>this['handleDiscardAction'](this['tableCellProperties'],_0x8b57b7,_0x230f71)),_0x1f81f7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f81f7['descriptionFactory']['registerDescriptionCallback'](_0x5e161e=>this['handleSuggestionDescription'](_0x5e161e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3a2a49,_0x3ed90d,_0x4e6d37,_0x530753,_0x4ea0f8,_0x512a51){const _0x1be0b3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x512a51['batch'],()=>{for(const _0x130aa7 of _0x3ed90d){if(this['_getSuggestion'](_0x130aa7,_0x530753))_0x4ea0f8(_0x512a51);else{const _0x2527c4={};for(const _0x4152ca of _0x4e6d37){const _0x41b921=_0x130aa7['getAttribute'](_0x4152ca);void 0x0!==_0x41b921&&(_0x2527c4[_0x4152ca]=_0x41b921);}_0x4ea0f8(_0x512a51),_0x1be0b3['markBlockFormat'](_0x130aa7,{'commandParams':[_0x2527c4]},[],_0x530753);}}});}['handleDiscardAction'](_0x22ebc6,_0x45c09c,_0x1cd3e4){const _0x419aa3=_0x45c09c[0x0]['start']['nodeAfter'],_0x4dde0f=_0x1cd3e4['commandParams'][0x0];this['editor']['model']['change'](_0x432063=>{for(const _0x52de8b of _0x22ebc6)void 0x0!==_0x4dde0f[_0x52de8b]?_0x432063['setAttribute'](_0x52de8b,_0x4dde0f[_0x52de8b],_0x419aa3):_0x432063['removeAttribute'](_0x52de8b,_0x419aa3);});}['handleSuggestionDescription'](_0x4ccca4){if(_0x4ccca4['data'])switch(_0x4ccca4['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'](_0x14d24f,_0x2508e3){const _0x109fe5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5d2a8a of _0x109fe5['getSuggestions']({'skipNotAttached':!0x0})){const _0x57014d=_0x5d2a8a['getContainedElement']();if(_0x5d2a8a['subType']===_0x2508e3&&_0x57014d===_0x14d24f)return _0x5d2a8a;}return null;}['_registerTablePropertiesAttributes'](){const _0x2ea1e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbe3097=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xc3866a of _0xbe3097){const _0x53aced=_0xc3866a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2ea1e9['registerBlockAttribute'](_0xc3866a),_0x2ea1e9['descriptionFactory']['registerAttributeLabel'](_0xc3866a,o(this['editor']['locale'],'FORMAT_'+_0x53aced));}}}class Pt extends _0x391ea2{['afterInit'](){const _0x43737d=this['editor'];if(!_0x43737d['plugins']['has']('LineHeight'))return;const _0x5122ec=_0x43737d['plugins']['get']('TrackChangesEditing'),_0x1331f0=_0x43737d['locale'];_0x5122ec['enableDefaultAttributesIntegration']('lineHeight'),_0x5122ec['registerBlockAttribute']('lineHeight'),_0x5122ec['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1331f0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x391ea2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5616f9,_0x4fc19a,_0x371209,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a4d3f){super(_0x3a4d3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x137b65,_0x3c8967,_0x17f5c4,_0x1b4910)=>{this['_model']['change'](()=>{for(const _0x3cf766 of[..._0x1b4910,..._0x17f5c4])this['_model']['markers']['has'](_0x3cf766)&&_0x3a4d3f['editing']['reconvertMarker'](_0x3cf766);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3a4d3f['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(),_0x3a4d3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a4d3f['config']['get']('trackChanges.trackFormatChanges'),_0x3a4d3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a4d3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3a4d3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x31e64a=this['editor'],_0x49192d=(_0x54abd3,_0x3838c8)=>{if('attribute'!=_0x54abd3)return'ck-suggestion-marker-'+_0x54abd3;const _0x2f8d72=_0x3838c8['split']('|')[0x0];return this['_isBlockAttribute'](_0x2f8d72)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x31e64a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5bea32=>{const {id:_0x35c82d,authorId:_0x2884ad,type:_0x52afc1,subType:_0x21b107}=this['_splitMarkerName'](_0x5bea32['markerName']),_0x4421ff=['ck-suggestion-marker',_0x49192d(_0x52afc1,_0x21b107)];let _0x166122=0xbb8;return this['activeMarkers']['includes'](_0x5bea32['markerName'])&&(_0x4421ff['push']('ck-suggestion-marker--active'),_0x166122=0xbc2),'deletion'==_0x52afc1&&(_0x166122+=0x5),{'classes':_0x4421ff,'attributes':{'data-suggestion':_0x35c82d,'data-author-id':_0x2884ad},'priority':_0x166122};}}),_0x31e64a['conversion']['for']('dataDowncast')['add'](_0xe81ba2=>{_0xe81ba2['on']('addMarker:suggestion',(_0x59534a,_0x4c2428,_0x45ca69)=>{if(!_0x45ca69['options']['showSuggestionHighlights'])return;const _0x2109fb=_0x4c2428['item'];if(!_0x2109fb)return;const _0x29c377=_0x45ca69['mapper']['toViewElement'](_0x2109fb);_0x31e64a['model']['schema']['isObject'](_0x2109fb)&&_0x29c377&&!_0x29c377['getCustomProperty']('widget')&&_0x29c377['is']('containerElement')&&_0x28f42d(_0x29c377,_0x45ca69['writer']);},{'priority':'high'});}),_0x31e64a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x14e191,_0x28e0c0)=>{if(!_0x28e0c0['options']['showSuggestionHighlights'])return null;const {id:_0x383577,authorId:_0xb6c98d,type:_0x2211aa,subType:_0x1290de}=this['_splitMarkerName'](_0x14e191['markerName']);return{'classes':['ck-suggestion-marker',_0x49192d(_0x2211aa,_0x1290de)],'priority':0xbb8,'attributes':{'data-suggestion':_0x383577,'data-author-id':_0xb6c98d}};}});const _0x5d06d5=({showActiveMarkers:_0x76f6c0=!0x0,isAttributeSuggestion:_0x719b61=!0x1}={})=>(_0x34fb1e,_0x19c29f,_0x528000)=>{if(!_0x19c29f['item'])return;const {id:_0x1672c3,authorId:_0x42ece0,subType:_0x5e1f77}=this['_splitMarkerName'](_0x19c29f['markerName']);if(_0x719b61){const _0x368baf=se(_0x5e1f77);if(!this['_isBlockAttribute'](_0x368baf))return;}if(_0x19c29f['item']['is']('selection'))return void _0x528000['consumable']['consume'](_0x19c29f['item'],_0x34fb1e['name']);const _0x10ec6e=_0x528000['mapper']['toViewElement'](_0x19c29f['item']);if(_0x19c29f['item']['is']('element')&&_0x31e64a['model']['schema']['isBlock'](_0x19c29f['item'])&&!_0x10ec6e['getCustomProperty']('addHighlight')){_0x528000['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x10ec6e),_0x528000['writer']['setAttribute']('data-suggestion',_0x1672c3,_0x10ec6e),_0x528000['writer']['setAttribute']('data-author-id',_0x42ece0,_0x10ec6e),_0x528000['mapper']['bindElementToMarker'](_0x10ec6e,_0x19c29f['markerName']),_0x76f6c0&&(this['activeMarkers']['includes'](_0x19c29f['markerName'])?_0x528000['writer']['addClass']('ck-suggestion-marker--active',_0x10ec6e):_0x528000['writer']['removeClass']('ck-suggestion-marker--active',_0x10ec6e));for(const _0x20fad9 of _0x31e64a['model']['createRangeIn'](_0x19c29f['item'])['getItems']())_0x528000['consumable']['consume'](_0x20fad9,_0x34fb1e['name']);_0x528000['consumable']['consume'](_0x19c29f['item'],_0x34fb1e['name']);}};_0x31e64a['conversion']['for']('dataDowncast')['add'](_0x3907e7=>{_0x3907e7['on']('addMarker:suggestion:formatBlock',(_0x3b8b8f,_0x3ce127,_0x3b7ff0)=>{_0x3b7ff0['options']['showSuggestionHighlights']&&_0x5d06d5({'showActiveMarkers':!0x1})(_0x3b8b8f,_0x3ce127,_0x3b7ff0);},{'priority':'highest'});}),_0x31e64a['conversion']['for']('dataDowncast')['add'](_0x451b46=>{_0x451b46['on']('addMarker:suggestion:attribute',(_0x250abc,_0x524cbc,_0x16df5d)=>{_0x16df5d['options']['showSuggestionHighlights']&&_0x5d06d5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x250abc,_0x524cbc,_0x16df5d);},{'priority':'highest'});}),_0x31e64a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4abd0f,_0x47c77f)=>{if(_0x47c77f['options']['showSuggestionHighlights']){const {id:_0x267f5d,authorId:_0x1c34d1}=this['_splitMarkerName'](_0x4abd0f);return _0x4abd0f['includes'](':split')||_0x4abd0f['includes'](':merge')?{'group':'suggestion','name':_0x4abd0f['substr'](0xb),'attributes':{'data-suggestion':_0x267f5d,'data-author-id':_0x1c34d1}}:null;}return{'group':'suggestion','name':_0x4abd0f['substr'](0xb)};}}),_0x31e64a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3827d9,{writer:_0x5cb302})=>{let _0x8ddb63='suggestion:'+_0x3827d9['getAttribute']('suggestion-type')+':'+_0x3827d9['getAttribute']('id');return _0x3827d9['getAttribute']('marker-count')&&(_0x8ddb63+=':'+_0x3827d9['getAttribute']('marker-count')),_0x5cb302['createElement']('$marker',{'data-name':_0x8ddb63});}}),_0x31e64a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0xfb342e=>{_0xfb342e['on']('addMarker:suggestion:formatBlock',_0x5d06d5(),{'priority':'high'});}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0x797321=>{_0x797321['on']('addMarker:suggestion:attribute',_0x5d06d5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0x2d9b4c=>{_0x2d9b4c['on']('removeMarker:suggestion:formatBlock',(_0x890e65,_0x2bbd44,_0x4d50e2)=>{const _0x501ebd=_0x4d50e2['mapper']['markerNameToElements'](_0x2bbd44['markerName']);if(_0x501ebd){for(const _0x2d371c of _0x501ebd)_0x2d371c['getCustomProperty']('addHighlight')||(_0x4d50e2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d371c),_0x4d50e2['writer']['removeAttribute']('data-suggestion',_0x2d371c),_0x4d50e2['writer']['removeAttribute']('data-author-id',_0x2d371c),_0x4d50e2['mapper']['unbindElementFromMarkerName'](_0x2d371c,_0x2bbd44['markerName']));}},{'priority':'high'});}),_0x31e64a['conversion']['for']('editingDowncast')['add'](_0x424f0b=>{_0x424f0b['on']('removeMarker:suggestion:attribute',(_0x2f1be6,_0x4ee062,_0x4d7e60)=>{const _0x7664b=_0x4d7e60['mapper']['markerNameToElements'](_0x4ee062['markerName']);if(!_0x7664b)return;const {subType:_0x2284da}=this['_splitMarkerName'](_0x4ee062['markerName']),_0x14713c=se(_0x2284da);if(this['_isBlockAttribute'](_0x14713c)){for(const _0x3af231 of _0x7664b)_0x3af231['getCustomProperty']('addHighlight')||(_0x4d7e60['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3af231),_0x4d7e60['writer']['removeAttribute']('data-suggestion',_0x3af231),_0x4d7e60['writer']['removeAttribute']('data-author-id',_0x3af231),_0x4d7e60['mapper']['unbindElementFromMarkerName'](_0x3af231,_0x4ee062['markerName']));}},{'priority':'high'});}),_0x31e64a['model']['document']['registerPostFixer'](_0x4fc041=>{let _0x1e0a0e=!0x1;const _0x29987f=Array['from'](_0x31e64a['model']['document']['differ']['getChangedMarkers']()),_0x3881e9=new Set();for(const {name:_0x393fde,data:_0x171ab0}of _0x29987f){const {group:_0xcdbf0c,type:_0x5f4e1b,subType:_0x22e953,id:_0x40d415}=this['_splitMarkerName'](_0x393fde);if('suggestion'!==_0xcdbf0c)continue;const _0x1ab0a1=_0x22e953?'suggestion:'+_0x5f4e1b+':'+_0x22e953+':'+_0x40d415:'suggestion:'+_0x5f4e1b+':'+_0x40d415,_0x22b4d5=_0x31e64a['model']['markers']['getMarkersGroup'](_0x1ab0a1),_0xc50045=_0x31e64a['model']['markers']['get'](_0x393fde),_0x4a50a7=this['_suggestions']['get'](_0x40d415);if(null!=_0x171ab0['newRange']){'formatInline'==_0x5f4e1b&&(_0x1e0a0e=_0x1e0a0e||Ht(_0x171ab0['newRange'],_0x393fde,_0x4fc041,_0x31e64a['model']['schema']));const _0x483691='attribute'==_0x5f4e1b&&this['_isBlockAttribute'](_0x22e953['split']('|')[0x0]),_0x2a59cf='attribute'==_0x5f4e1b&&this['_isInlineAttribute'](_0x22e953['split']('|')[0x0]);if(_0x171ab0['newRange']['isCollapsed']||'$graveyard'==_0x171ab0['newRange']['root']['rootName']||'formatBlock'==_0x5f4e1b&&!qt(_0x171ab0['newRange'])||_0x483691&&!qt(_0x171ab0['newRange'])||_0x2a59cf&&zt(_0x171ab0['newRange'])||'deletion'==_0x5f4e1b&&zt(_0x171ab0['newRange'])||_0xc50045&&Qt(_0xc50045,_0x22b4d5))_0x4fc041['removeMarker'](_0x393fde),_0x1e0a0e=!0x0;else{if(!_0x4a50a7||!_0x4a50a7['isInContent'])continue;if(_0x171ab0['newRange']&&_0x171ab0['oldRange']&&_0x171ab0['newRange']['isEqual'](_0x171ab0['oldRange']))continue;_0x3881e9['add'](_0x4a50a7);}}}return _0x3881e9['size']>0x0&&(_0x1e0a0e=!!this['_joinWithAdjacentSuggestions'](_0x3881e9)||_0x1e0a0e),_0x1e0a0e;}),_0x31e64a['model']['document']['registerPostFixer'](_0xc5413=>{let _0x1d8523=!0x1;for(const _0x4a1540 of _0x31e64a['model']['document']['differ']['getChanges']())if('insert'==_0x4a1540['type'])for(const _0x51086d of this['_suggestions']['values']()){if(_0x51086d['isMultiRange']||!_0x51086d['isInContent'])continue;const _0x3462c7='formatBlock'==_0x51086d['type'],_0xc35707=this['_getAttributeKey'](_0x51086d),_0x313614=_0xc35707&&this['_isBlockAttribute'](_0xc35707);if(!_0x3462c7&&!_0x313614)continue;const _0x276a9c=_0x51086d['getFirstRange']();if(_0x276a9c['start']['parent']!=_0x276a9c['end']['parent']&&!_0x276a9c['end']['isAtEnd']){const _0x34c282=_0x31e64a['model']['createPositionAt'](_0x276a9c['start']['nodeAfter'],'end'),_0x2f075b=_0x31e64a['model']['createRange'](_0x276a9c['start'],_0x34c282);_0xc5413['updateMarker'](_0x51086d['getFirstMarker'](),{'range':_0x2f075b}),_0x1d8523=!0x0;}}return _0x1d8523;}),_0x31e64a['model']['document']['registerPostFixer'](_0x33b5c1=>this['_processAttributeChanges'](_0x33b5c1)),_0x31e64a['model']['document']['registerPostFixer'](_0x461fc5=>!_0x461fc5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x461fc5)),_0x31e64a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x31e64a['model']['document']['on']('change:data',(_0x14b4a0,_0x287c25)=>{if(!_0x287c25['isLocal']||_0x287c25['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x696aae=_0x31e64a['model']['document']['differ']['getChanges']();if(0x0==_0x696aae['length'])return;const _0x1b4a34=[],_0x38cffa=_0x696aae['filter'](_0xa31123=>'attribute'==_0xa31123['type']),_0xdba8cc=_0x696aae['filter'](_0x873e87=>'insert'==_0x873e87['type']&&'$text'!=_0x873e87['name']);for(const _0x47a0ff of _0x38cffa)this['_isRegisteredAttribute'](_0x47a0ff['attributeKey'])&&_0x1b4a34['push']({'key':_0x47a0ff['attributeKey'],'newValue':_0x47a0ff['attributeNewValue'],'oldValue':_0x47a0ff['attributeOldValue'],'range':Yt(_0x47a0ff['range'],_0x31e64a['model'])});for(const _0x1f7d1b of _0xdba8cc){if('rename'!=_0x1f7d1b['action']&&'refresh'!=_0x1f7d1b['action'])continue;const _0x2e6ac8=Zt(_0x1f7d1b['position']['nodeAfter'],_0x31e64a['model']),_0x493b6a=_0x1f7d1b['before'];'rename'==_0x1f7d1b['action']&&_0x1b4a34['push']({'key':m,'newValue':_0x1f7d1b['name'],'oldValue':_0x493b6a['name'],'range':_0x2e6ac8});for(const [_0xe0f831,_0x2b76fe]of _0x493b6a['attributes']){if(!this['_isRegisteredAttribute'](_0xe0f831))continue;const _0x24aaeb=_0x1f7d1b['attributes']['get'](_0xe0f831);_0x2b76fe!==_0x24aaeb&&_0x1b4a34['push']({'key':_0xe0f831,'newValue':_0x24aaeb,'oldValue':_0x2b76fe,'range':_0x2e6ac8});}for(const [_0x38a767,_0x5477fa]of _0x1f7d1b['attributes'])this['_isRegisteredAttribute'](_0x38a767)&&(_0x493b6a['attributes']['has'](_0x38a767)||_0x1b4a34['push']({'key':_0x38a767,'newValue':_0x5477fa,'oldValue':null,'range':_0x2e6ac8}));}0x0!=_0x1b4a34['length']&&_0x31e64a['model']['enqueueChange'](_0x287c25,_0x334ddc=>{const _0x3d9e2d=_0x337574();for(const {range:_0x75245e,key:_0x34e13a,oldValue:_0x28fe01,newValue:_0x3c32bc}of _0x1b4a34)this['markAttributeChange'](_0x75245e,_0x34e13a,_0x28fe01,_0x3c32bc,{'groupId':_0x3d9e2d});this['_reduceExistingSuggestions'](_0x334ddc,_0x1b4a34);});},{'priority':'lowest'}),_0x31e64a['model']['markers']['on']('update:suggestion',(_0x224e8e,_0x344ae5,_0x38c429)=>{if(null==_0x38c429){const {id:_0x3d724f}=this['_splitMarkerName'](_0x344ae5['name']),_0x479378=this['_suggestions']['get'](_0x3d724f);_0x479378&&_0x479378['addMarkerName'](_0x344ae5['name']);}}),_0x31e64a['model']['document']['on']('change:data',()=>{const _0x418b3b=Array['from'](_0x31e64a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4133db=>'suggestion'===this['_splitMarkerName'](_0x4133db['name'])['group']);if(0x0===_0x418b3b['length'])return;_0x418b3b['sort']((_0x4bd4dc,_0x3c3ed1)=>{const _0x361987=_0x4bd4dc['data']['oldRange'],_0x219786=_0x3c3ed1['data']['oldRange'];return null===_0x361987&&null===_0x219786?0x0:null===_0x361987&&null!==_0x219786?-0x1:null!==_0x361987&&null===_0x219786?0x1:_0x361987['start']['isBefore'](_0x219786['start'])?-0x1:0x1;});const _0x42170d=new Set(),_0x8d68d=new Set();for(const {name:_0x5d7856,data:_0x5b924a}of _0x418b3b){const {id:_0x2a2732}=this['_splitMarkerName'](_0x5d7856);if(null===_0x5b924a['oldRange']){const _0x3eec52=this['_handleNewSuggestionMarker'](_0x5d7856);_0x8d68d['add'](_0x3eec52);}else{const _0x2cd97b=this['_suggestions']['get'](_0x2a2732);null!==_0x5b924a['newRange']||_0x2cd97b['isInContent']?(_0x42170d['add'](_0x2cd97b['head']),_0x8d68d['add'](_0x2cd97b)):this['_removeSuggestion'](_0x2cd97b);}}_0x8d68d['size']>0x0&&this['_refreshSuggestionsChain'](_0x8d68d);for(const _0x11ee67 of _0x42170d)this['fire']('suggestionChanged',_0x11ee67);}),_0x31e64a['model']['on']('applyOperation',(_0x4a1244,_0x9d1555)=>{const _0x5e358b=_0x9d1555[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e358b['isDocumentOperation'])return;if(_0x5e358b['batch']['isUndo']||!_0x5e358b['batch']['isLocal'])return;let _0x21e0e5,_0x59443e;switch(_0x5e358b['type']){case'insert':_0x21e0e5=_0x31e64a['model']['createPositionAt'](_0x5e358b['position']),_0x59443e=_0x21e0e5['getShiftedBy'](_0x5e358b['howMany']);break;case'split':_0x21e0e5=_0x31e64a['model']['createPositionAt'](_0x5e358b['splitPosition']),_0x59443e=_0x31e64a['model']['createPositionAt'](_0x5e358b['moveTargetPosition']);break;case'move':_0x21e0e5=_0x31e64a['model']['createPositionAt'](_0x5e358b['targetPosition']),_0x59443e=_0x21e0e5['getShiftedBy'](_0x5e358b['howMany']);break;default:return;}const _0x492bb3=_0x31e64a['model']['createRange'](_0x21e0e5,_0x59443e);_0x31e64a['model']['change'](()=>{for(const {suggestion:_0x8a3102,meta:_0xcec1cf}of this['_findSuggestions'](_0x492bb3)){if(_0x8a3102['isMultiRange'])continue;if('formatInline'==_0x8a3102['type'])continue;const _0x357295=this['_getAttributeKey'](_0x8a3102);if(_0x357295&&this['_isBlockAttribute'](_0x357295)&&'split'!=_0x5e358b['type'])continue;const _0x529536=_0x8a3102['data']&&_0x8a3102['data']['multipleBlocks'];('formatBlock'!=_0x8a3102['type']||'split'==_0x5e358b['type']&&!_0x529536)&&(_0xcec1cf['containsRangeInObject']||'insertion'==_0x8a3102['type']&&_0xcec1cf['isOwn']||_0x8a3102['getFirstRange']()['containsRange'](_0x492bb3)&&this['_breakSuggestionMarker'](_0x8a3102,_0x21e0e5,_0x59443e));}});},{'priority':'lowest'}),_0x31e64a['model']['on']('deleteContent',(_0x4112b3,_0x5dde85)=>{const _0x2338e6=_0x5dde85[0x0],_0x27d009=_0x5dde85[0x1];if(_0x27d009&&_0x27d009['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2338e6['isCollapsed'])return;const _0x483e6a=_0x31e64a['model']['schema'],{start:_0x49072d,end:_0x3586be}=_0x2338e6['getFirstRange'](),_0x9c9d71=_0x49072d['nodeAfter']&&_0x483e6a['isLimit'](_0x49072d['nodeAfter'])?null:_0x483e6a['getNearestSelectionRange'](_0x49072d,'forward'),_0x3ac76b=_0x3586be['nodeBefore']&&_0x483e6a['isLimit'](_0x3586be['nodeBefore'])?null:_0x483e6a['getNearestSelectionRange'](_0x3586be,'backward'),_0x324d1a=_0x31e64a['model']['createRange'](_0x9c9d71?_0x9c9d71['start']:_0x49072d,_0x3ac76b?_0x3ac76b['end']:_0x3586be);_0x31e64a['model']['change'](_0x710505=>{this['markDeletion'](_0x324d1a);const _0x2e8efb=_0x31e64a['model']['schema']['getNearestSelectionRange'](_0x324d1a['start']);_0x2338e6['is']('documentSelection')?_0x710505['setSelection'](_0x2e8efb):_0x2338e6['setTo'](_0x2e8efb);}),_0x4112b3['stop']();},{'priority':_0x36d8eb['normal']+0xa}),_0x31e64a['model']['on']('insertContent',(_0x134682,_0x3ead57)=>{const _0x138fe9=_0x3ead57[_0x3ead57['length']-0x1];_0x138fe9&&_0x138fe9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x31e64a['model']['change'](()=>{let _0x348e4d=_0x31e64a['model']['insertContent'](_0x3ead57[0x0],_0x3ead57[0x1],_0x3ead57[0x2],{'forceDefaultExecution':!0x0});if(!_0x348e4d)return;_0x134682['return']=_0x348e4d['clone']();const _0x26ac12=_0x348e4d['end']['nodeBefore'],_0x5f20d9=_0x31e64a['model']['schema'];_0x26ac12&&_0x5f20d9['isBlock'](_0x26ac12)&&!_0x5f20d9['isObject'](_0x26ac12)&&(_0x348e4d=_0x31e64a['model']['createRange'](_0x348e4d['start'],_0x31e64a['model']['createPositionAt'](_0x26ac12,'end'))),this['markInsertion'](_0x348e4d);}),_0x134682['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x408d07=new T(_0x31e64a,this['_suggestions']);_0x31e64a['commands']['add']('acceptSuggestion',_0x408d07),this['enableCommand']('acceptSuggestion');const _0x250e6a=new O(_0x31e64a,this['_suggestions']);_0x31e64a['commands']['add']('discardSuggestion',_0x250e6a),this['enableCommand']('discardSuggestion'),_0x31e64a['commands']['add']('acceptAllSuggestions',new x(_0x31e64a,_0x408d07,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x31e64a['commands']['add']('discardAllSuggestions',new x(_0x31e64a,_0x250e6a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x31e64a['commands']['add']('acceptSelectedSuggestions',new E(_0x31e64a,_0x408d07,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x31e64a['commands']['add']('discardSelectedSuggestions',new E(_0x31e64a,_0x250e6a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2cfc13=_0x31e64a['plugins']['get']('CommentsRepository');this['listenTo'](_0x2cfc13,'addComment',(_0x1e5b03,{threadId:_0xc4462})=>{const _0x5135a2=this['_suggestions']['get'](_0xc4462);_0x5135a2&&_0x5135a2['commentThread']&&0x1===_0x5135a2['commentThread']['length']&&this['_updateSuggestionData'](_0xc4462,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2cfc13,'removeComment',(_0x24274c,{threadId:_0x1595ed})=>{const _0x3e1ea0=this['_suggestions']['get'](_0x1595ed);_0x3e1ea0&&_0x3e1ea0['commentThread']&&!_0x3e1ea0['commentThread']['length']&&this['_updateSuggestionData'](_0x1595ed,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x41ddb2){const _0x26a2df=_0x22669f([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x21f374=0x6b0f5e6f,_0x1e2c97=0x6b082a27^_0x21f374,_0x9f0b35=window[_0x22669f([0x44,0x61,0x74,0x65])][_0x22669f([0x6e,0x6f,0x77])](),_0x4563a6=_0x41ddb2[_0x22669f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x520cd1=new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x342916=>{_0x4563a6[_0x22669f([0x6f,0x6e,0x63,0x65])](_0x22669f([0x72,0x65,0x61,0x64,0x79]),_0x342916);}),_0x43ce6a={[_0x22669f([0x6b,0x74,0x79])]:_0x22669f([0x45,0x43]),[_0x22669f([0x75,0x73,0x65])]:_0x22669f([0x73,0x69,0x67]),[_0x22669f([0x63,0x72,0x76])]:_0x22669f([0x50,0x2d,0x32,0x35,0x36]),[_0x22669f([0x78])]:_0x22669f([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]),[_0x22669f([0x79])]:_0x22669f([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]),[_0x22669f([0x61,0x6c,0x67])]:_0x22669f([0x45,0x53,0x32,0x35,0x36])},_0x365725=_0x4563a6[_0x22669f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22669f([0x67,0x65,0x74])](_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15fb94(){let _0x2f258b,_0x23f1d1=null,_0x50f2e8=null;try{if(_0x365725==_0x22669f([0x47,0x50,0x4c]))return _0x22669f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f258b=_0x4ac629(),!_0x2f258b)return _0x22669f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f258b[_0x22669f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50f2e8=_0x46b40b(_0x2f258b[_0x22669f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f258b[_0x22669f([0x6a,0x74,0x69])])),await _0x3a0691()?_0x581e97()?_0x2b0214()?_0x22669f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x299c4b()?(_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22669f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23f1d1=_0x5381f9(_0x22669f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22669f([0x74,0x72,0x69,0x61,0x6c])&&(_0x23f1d1=_0x5381f9(_0x22669f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x458560()):_0x22669f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22669f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22669f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22669f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b0214(){const _0xa5369d=[_0x22669f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22669f([0x74,0x72,0x69,0x61,0x6c])][_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9f0b35/0x3e8:0xe10*_0x1e2c97;return _0x2f258b[_0x22669f([0x65,0x78,0x70])]<_0xa5369d;}function _0x581e97(){const _0x12ba64=_0x2f258b[_0x22669f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x12ba64)return!0x1;if(_0x12ba64[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x2a])))return!0x0;if(_0x12ba64[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x54,0x43])))return!0x0;if(_0x12ba64[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x52,0x54,0x43]))){if(_0x35a2e8())return!0x0;if(_0x2a3181()||_0x1cb3c9())return!0x0;}return!0x1;}function _0x299c4b(){const _0x46d5d0=_0x2f258b[_0x22669f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46d5d0||0x0==_0x46d5d0[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7349e9}=new URL(window[_0x22669f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46d5d0[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7349e9))return!0x0;const _0x33e8a8=_0x7349e9[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e]));return _0x46d5d0[_0x22669f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fe4a1=>_0x4fe4a1[_0x22669f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22669f([0x2a])))[_0x22669f([0x6d,0x61,0x70])](_0x2f73b2=>_0x2f73b2[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e])))[_0x22669f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x674be=>_0x674be[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33e8a8[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22669f([0x6d,0x61,0x70])](_0x149c01=>Array(_0x33e8a8[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x149c01[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22669f([0x66,0x69,0x6c,0x6c])](_0x149c01[0x0]===_0x22669f([0x2a])?_0x22669f([0x2a]):'')[_0x22669f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x149c01))[_0x22669f([0x73,0x6f,0x6d,0x65])](_0x834585=>_0x33e8a8[_0x22669f([0x65,0x76,0x65,0x72,0x79])]((_0x2485b2,_0x197e53)=>_0x834585[_0x197e53]===_0x2485b2||_0x834585[_0x197e53]===_0x22669f([0x2a])));}function _0x458560(){return _0x23f1d1&&_0x50f2e8?new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c03d0,_0x42cc69)=>{_0x23f1d1[_0x22669f([0x74,0x68,0x65,0x6e])](_0x5c03d0,_0x42cc69),_0x50f2e8[_0x22669f([0x74,0x68,0x65,0x6e])](_0x1242e2=>{_0x1242e2!=_0x22669f([0x56,0x61,0x6c,0x69,0x64])&&_0x5c03d0(_0x1242e2);},_0x42cc69);}):_0x23f1d1||_0x50f2e8||_0x22669f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46b40b(_0x4ed376,_0x91c79f){return new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8a79=>{if(_0x7722f6())return _0x4f8a79(_0x22669f([0x56,0x61,0x6c,0x69,0x64]));_0x148fb0(),_0x4563a6[_0x22669f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22669f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x216794=!0x1;const _0x46b613=_0x337574();function _0x28954d(_0x40d3de){return!!_0x40d3de&&(typeof _0x40d3de===_0x22669f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40d3de===_0x22669f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40d3de[_0x22669f([0x74,0x68,0x65,0x6e])]===_0x22669f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40d3de[_0x22669f([0x63,0x61,0x74,0x63,0x68])]===_0x22669f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ace0d(_0x598f11){_0x41b35e(_0x598f11)[_0x22669f([0x74,0x68,0x65,0x6e])](_0x3fde44=>{if(!_0x3fde44||_0x3fde44[_0x22669f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22669f([0x6f,0x6b]))return _0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54396f(_0xb0c870(_0x46b613+_0x91c79f))!=_0x3fde44[_0x22669f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22669f([0x56,0x61,0x6c,0x69,0x64]);})[_0x22669f([0x74,0x68,0x65,0x6e])](_0x1cb79f=>(_0x38190b(),_0x1cb79f),()=>{const _0x18a8ba=_0x18d833();return null==_0x18a8ba?(_0x38190b(),_0x22669f([0x56,0x61,0x6c,0x69,0x64])):_0x22669f(_0x9f0b35-_0x18a8ba>(0x4f03da6f^_0x21f374)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22669f([0x74,0x68,0x65,0x6e])](_0x4f8a79)[_0x22669f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f8a79(_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x436371=0x6b39b0ef^_0x21f374;function _0x38190b(){const _0x1c77a3=_0x22669f([0x6c,0x6c,0x63,0x74,0x2d])+_0x54396f(_0xb0c870(_0x4ed376)),_0x9d8d3b=_0x429b73(_0x54396f(window[_0x22669f([0x4d,0x61,0x74,0x68])][_0x22669f([0x63,0x65,0x69,0x6c])](_0x9f0b35/_0x436371)));window[_0x22669f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22669f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c77a3,_0x9d8d3b);}function _0x18d833(){const _0xef522c=_0x22669f([0x6c,0x6c,0x63,0x74,0x2d])+_0x54396f(_0xb0c870(_0x4ed376)),_0x5cf2d3=window[_0x22669f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22669f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef522c);return _0x5cf2d3?window[_0x22669f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x429b73(_0x5cf2d3),0x10)*_0x436371:null;}function _0x41b35e(_0x49f1c8){return new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x129b69,_0x46ec0a)=>{_0x49f1c8[_0x22669f([0x74,0x68,0x65,0x6e])](_0x129b69,_0x46ec0a),window[_0x22669f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46ec0a,0x6b0e8aaf^_0x21f374);});}}_0x4563a6[_0x22669f([0x6f,0x6e])](_0x22669f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34eb3b,_0x3d9133)=>{if(_0x3d9133[0x0]!=_0x4ed376)return _0x4f8a79(_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d9133[0x1]={..._0x3d9133[0x1],[_0x22669f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46b613};},{[_0x22669f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22669f([0x68,0x69,0x67,0x68])}),_0x4563a6[_0x22669f([0x6f,0x6e])](_0x22669f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50a3e2=>{_0x28954d(_0x50a3e2[_0x22669f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x216794=!0x0,_0x3ace0d(_0x50a3e2[_0x22669f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22669f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22669f([0x6c,0x6f,0x77])}),_0x520cd1[_0x22669f([0x74,0x68,0x65,0x6e])](()=>{_0x216794||_0x4f8a79(_0x22669f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7722f6(){return _0x4563a6[_0x22669f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22669f([0x76,0x69,0x65,0x77])][_0x22669f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22669f([0x61,0x75,0x74,0x6f]);}function _0x148fb0(){_0x4563a6[_0x22669f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22669f([0x76,0x69,0x65,0x77])][_0x22669f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22669f([0x61,0x75,0x74,0x6f]);}}function _0x5381f9(_0x474b3d){const _0x31290a=[new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572c2c=>setTimeout(_0x572c2c,0x6b0660a3^_0x21f374)),_0x520cd1[_0x22669f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3370ea=>{let _0x137ce0=0x0;_0x4563a6[_0x22669f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22669f([0x6f,0x6e])](_0x22669f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x379496,_0xf15455)=>{_0xf15455[0x0][_0x22669f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x137ce0++,_0x137ce0==(0x6b0f5f97^_0x21f374)&&(_0x3370ea(),_0x379496[_0x22669f([0x6f,0x66,0x66])]());});}))];return window[_0x22669f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22669f([0x72,0x61,0x63,0x65])](_0x31290a)[_0x22669f([0x74,0x68,0x65,0x6e])](()=>_0x474b3d);}async function _0x53021d(){await _0x520cd1,_0x4563a6[_0x22669f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22669f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1fea,_0x4563a6[_0x22669f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22669f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f1fea,_0x4563a6[_0x22669f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22669f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35a2e8(){return _0x18ec31(_0x22669f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c9e26(_0x22669f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22669f([0x73,0x74,0x61,0x74,0x65])]==_0x22669f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2a3181(){return _0x18ec31(_0x22669f([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 _0x1cb3c9(){return _0x18ec31(_0x22669f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e7663(_0xf13059){const _0x2f0a12=_0x1dcc39();_0x4563a6[_0x2f0a12]=_0x22669f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf13059,_0xf13059!=_0x22669f([0x56,0x61,0x6c,0x69,0x64])&&_0x53021d();}function _0x1dcc39(){const _0xe92b7=window[_0x22669f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22669f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22669f([0x6e,0x6f,0x77])]())[_0x22669f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22669f([0x2e]),'');let _0x1447b2=_0x22669f([0x67]);for(let _0x43be03=0x0;_0x43be03<_0xe92b7[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43be03+=0x2){let _0x5b4db0=window[_0x22669f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe92b7[_0x22669f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43be03,_0x43be03+0x2));_0x5b4db0>=_0x26a2df[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b4db0-=_0x26a2df[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1447b2+=_0x26a2df[_0x5b4db0];}return _0x1447b2;}function _0x4ac629(){const _0x26d9ec=_0x365725[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e]));if(0x3!=_0x26d9ec[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x168437(_0x26d9ec[0x1]);function _0x168437(_0x5ea078){const _0x444d28=_0x31f7d9(_0x5ea078);return _0x444d28&&_0x7ab2c2()?_0x444d28:null;function _0x7ab2c2(){const _0x589e83=_0x444d28[_0x22669f([0x6a,0x74,0x69])],_0x2732ec=window[_0x22669f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x589e83[_0x22669f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x589e83[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a4f9a={..._0x444d28,[_0x22669f([0x6a,0x74,0x69])]:_0x589e83[_0x22669f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x589e83[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a4f9a[_0x22669f([0x76,0x63])],_0xb0c870(_0x3a4f9a)==_0x2732ec;}}}async function _0x3a0691(){let _0x19b1c0=!0x0;try{const _0x24af11=_0x365725[_0x22669f([0x73,0x70,0x6c,0x69,0x74])](_0x22669f([0x2e])),[_0x3e7d46,_0x57a62d,_0x109bfd]=_0x24af11;return _0x3f80f8(_0x3e7d46),await _0x26516b(_0x3e7d46,_0x57a62d,_0x109bfd),_0x19b1c0;}catch{return!0x1;}function _0x3f80f8(_0x5d2a79){const _0xa97509=_0x31f7d9(_0x5d2a79);_0xa97509&&_0xa97509[_0x22669f([0x61,0x6c,0x67])]==_0x22669f([0x45,0x53,0x32,0x35,0x36])||(_0x19b1c0=!0x1);}async function _0x26516b(_0x32f9e6,_0x1bd82d,_0x4560fd){const _0x14c3d9=window[_0x22669f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22669f([0x66,0x72,0x6f,0x6d])](_0x3325ee(_0x4560fd),_0x4bc2b9=>_0x4bc2b9[_0x22669f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9cc502=new window[(_0x22669f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22669f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32f9e6+_0x22669f([0x2e])+_0x1bd82d),_0x3b30a4=window[_0x22669f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22669f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b30a4)return;const _0x54b9e7=await _0x3b30a4[_0x22669f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22669f([0x6a,0x77,0x6b]),_0x43ce6a,{[_0x22669f([0x6e,0x61,0x6d,0x65])]:_0x22669f([0x45,0x43,0x44,0x53,0x41]),[_0x22669f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22669f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22669f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b30a4[_0x22669f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22669f([0x6e,0x61,0x6d,0x65])]:_0x22669f([0x45,0x43,0x44,0x53,0x41]),[_0x22669f([0x68,0x61,0x73,0x68])]:{[_0x22669f([0x6e,0x61,0x6d,0x65])]:_0x22669f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54b9e7,_0x14c3d9,_0x9cc502)||(_0x19b1c0=!0x1);}}function _0x31f7d9(_0x3516da){return _0x3516da[_0x22669f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22669f([0x65,0x79]))?JSON[_0x22669f([0x70,0x61,0x72,0x73,0x65])](_0x3325ee(_0x3516da)):null;}function _0x3325ee(_0x511247){return window[_0x22669f([0x61,0x74,0x6f,0x62])](_0x511247[_0x22669f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22669f([0x2b]))[_0x22669f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22669f([0x2f])));}function _0xb0c870(_0x599636){let _0x7e764a=0x1505;function _0x4a08f1(_0x17558f){for(let _0x4c1c7d=0x0;_0x4c1c7d<_0x17558f[_0x22669f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1c7d++){const _0x49a16c=_0x17558f[_0x22669f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c1c7d);_0x7e764a=(_0x7e764a<<0x5)+_0x7e764a+_0x49a16c,_0x7e764a&=_0x7e764a;}}function _0x1d6df2(_0x75ed46){Array[_0x22669f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x75ed46)?_0x75ed46[_0x22669f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d6df2):_0x75ed46&&typeof _0x75ed46==_0x22669f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22669f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x75ed46)[_0x22669f([0x73,0x6f,0x72,0x74])]()[_0x22669f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x209875,_0x15153c])=>{_0x4a08f1(_0x209875),_0x1d6df2(_0x15153c);}):_0x4a08f1(window[_0x22669f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x75ed46));}return _0x1d6df2(_0x599636),_0x7e764a>>>0x0;}function _0x54396f(_0x12fbf3){return _0x12fbf3[_0x22669f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22669f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22669f([0x30]));}function _0x429b73(_0x2c054a){return _0x2c054a[_0x22669f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22669f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22669f([0x6a,0x6f,0x69,0x6e])]('');}function _0x18ec31(_0x3b5779){return _0x4563a6[_0x22669f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22669f([0x68,0x61,0x73])](_0x3b5779);}function _0x4c9e26(_0x2927f0){return _0x4563a6[_0x22669f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22669f([0x67,0x65,0x74])](_0x2927f0);}function _0x3f1fea(){}function _0x22669f(_0x3d7243){return _0x3d7243['map'](_0x4e5f5d=>String['fromCharCode'](_0x4e5f5d))['join']('');}_0x3e7663(await _0x15fb94());}(this);}set['adapter'](_0x3876f1){if(this['_adapter'])throw new _0x4fb79c('track-changes-adapter-already-set',this);this['_adapter']=_0x3876f1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d9ab8=!0x1,toJSON:_0x541f67=!0x1}={}){const _0xb6808f=[];for(const _0x4953ae of this['_suggestions']['values']())_0x1d9ab8&&!_0x4953ae['isInContent']||_0xb6808f['push'](_0x4953ae);return _0x541f67?_0xb6808f['map'](_0x2b8afb=>_0x2b8afb['toJSON']()):_0xb6808f;}['getSuggestion'](_0x440c6f){const _0x174bc4=this['_suggestions']['get'](_0x440c6f);if(!_0x174bc4)throw new _0x4fb79c('track-changes-suggestion-not-found',this);return _0x174bc4;}['hasSuggestion'](_0x4381d8){return this['_suggestions']['has'](_0x4381d8);}['addSuggestionData'](_0x268add){const {authorId:_0x3537bc,id:_0x1b1cb,originalSuggestionId:_0x16ebe4,attributes:_0x5c99e1}=_0x268add,[_0x29c4ed,_0x2d9df3]=_0x268add['type']['split'](':'),_0x263697=this['_suggestions']['get'](_0x1b1cb)||this['_createSuggestion'](_0x29c4ed,_0x2d9df3,_0x1b1cb,_0x3537bc,_0x5c99e1,_0x16ebe4);if(this['_addThreadToSuggestion'](_0x263697),this['_checkSuggestionCorrectness'](_0x263697,_0x29c4ed,_0x2d9df3||null,_0x3537bc),_0x263697['createdAt']=_0x268add['createdAt'],_0x263697['_isDataLoaded']=!0x0,_0x5c99e1&&_0x5c99e1['@external']){const _0x5f58ad=_0x5c99e1['@external'],_0x4a1c61=this['_getExternalAuthor'](_0x5f58ad['authorName']);_0x263697['authoredAt']=_0x5f58ad['createdAt'],_0x263697['author']=_0x4a1c61,_0x263697['isExternal']=!0x0;}else _0x263697['authoredAt']=_0x268add['createdAt'];switch(_0x268add['data']&&(_0x263697['data']=_0x268add['data']),_0x268add['attributes']&&(_0x263697['attributes']=_0x268add['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x263697['_saved']=!0x0),this['_suggestionState']['get'](_0x263697)){case'notReady':this['_suggestionState']['set'](_0x263697,'dataReady');break;case'markerReady':_0x263697['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x263697])),this['_refreshSuggestionsChain'](new Set([_0x263697])),this['_suggestionState']['set'](_0x263697,'ready'),this['fire']('suggestionLoaded',_0x263697)):this['_suggestionState']['set'](_0x263697,'removed');}return _0x263697;}['acceptSuggestion'](_0x4ced56){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e4419 of _0x4ced56['getAllAdjacentSuggestions']())_0x5e4419['accept']();});});}['discardSuggestion'](_0x4583ea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a6f00 of _0x4583ea['getAllAdjacentSuggestions']())_0x2a6f00['discard']();});});}['enableCommand'](_0x45a734,_0x3ba138){const _0x1dfe2c=this['editor']['commands']['get'](_0x45a734);if(!_0x1dfe2c)throw new _0x4fb79c('track-changes-command-not-found',this,{'commandName':_0x45a734});if(this['_enabledCommands']['has'](_0x1dfe2c))throw new _0x4fb79c('track-changes-enable-command-twice',this,{'commandName':_0x45a734});this['_enabledCommands']['add'](_0x1dfe2c),_0x3ba138&&_0x1dfe2c['on']('execute',(_0x5d885f,_0x2137c5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2137c5['length']>0x0&&_0x2137c5[_0x2137c5['length']-0x1]&&_0x2137c5[_0x2137c5['length']-0x1]['forceDefaultExecution']?_0x2137c5['pop']():(_0x5d885f['return']=_0x3ba138((..._0x40a91f)=>_0x1dfe2c['execute'](..._0x40a91f,{'forceDefaultExecution':!0x0}),..._0x2137c5),_0x5d885f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3936c3){let _0x1038b6,_0x260e47;const _0x58e644=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1038b6=_0x3936c3();}catch(_0x44db75){_0x260e47=_0x44db75;}return _0x58e644||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x260e47&&_0x4fb79c['rethrowUnexpectedError'](_0x260e47,this),_0x1038b6;}['markInsertion'](_0x4a5233,_0x563f68=null,_0x443fa2={}){if(_0x4a5233['isCollapsed'])return null;const _0x335b10=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x443fa2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34afae,meta:_0xb2915}of this['_findSuggestions'](_0x4a5233,'insertion'))if(_0xb2915['isOwn']){if(!_0xb2915['isNextTo']){if(_0xb2915['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x34afae,_0x443fa2))continue;return _0x34afae;}if(ie(_0x34afae,_0x443fa2))return _0x34afae;this['_breakSuggestionMarker'](_0x34afae,_0x4a5233['start'],_0x4a5233['end']);break;}if(_0x563f68==_0x34afae['subType']&&ie(_0x34afae,_0x443fa2)){const _0x5b2791=_0x34afae['getFirstRange']();return _0x5b2791['start']['isEqual'](_0x4a5233['end'])?this['_setSuggestionRange'](_0x34afae,this['_model']['createRange'](_0x4a5233['start'],_0x5b2791['end'])):this['_setSuggestionRange'](_0x34afae,this['_model']['createRange'](_0x5b2791['start'],_0x4a5233['end'])),_0x34afae;}}const _0x8aa0d1=_0x337574(),_0x2f8994=_0x335b10['id'],_0x53f3ae=_0x563f68?'insertion:'+_0x563f68:'insertion',_0x2bb3ab=this['_setSuggestionData']({'id':_0x8aa0d1,'type':_0x53f3ae,'createdAt':new Date(),'authorId':_0x2f8994,'attributes':_0x443fa2});return this['_addSuggestionMarker'](_0x53f3ae,_0x8aa0d1,_0x2f8994,_0x4a5233),_0x2bb3ab;}['markMultiRangeInsertion'](_0x3a2e66,_0x236019='multi',_0x33a98e={}){const _0x29b074=this['editor']['plugins']['get']('Users')['me'],_0x16bea5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x236019,'join');this['_trackingSessionId']&&(_0x33a98e['trackingSessionId']=this['_trackingSessionId']);for(const _0x1cd572 of this['getSuggestions']())if(_0x1cd572['author']['id']==_0x29b074['id']&&'insertion'==_0x1cd572['type']&&_0x1cd572['subType']==_0x236019&&ie(_0x1cd572,_0x33a98e)&&(_0x16bea5(_0x1cd572['getRanges'](),_0x3a2e66)||_0x16bea5(_0x3a2e66,_0x1cd572['getRanges']()))){for(const _0x48b820 of _0x3a2e66)_0x1cd572['addRange'](_0x48b820);return _0x1cd572;}for(const {suggestion:_0x276ba3,meta:_0x3b0fc7}of this['_findSuggestions'](_0x3a2e66,'insertion')){if(!_0x3b0fc7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3b0fc7['containsRangeInObject'])continue;if(!ie(_0x276ba3,_0x33a98e))continue;let _0xe1d405=!0x0;for(const _0x4e557e of _0x276ba3['getRanges']())for(const _0x5e406e of _0x3a2e66)if(!_0x4e557e['containsRange'](_0x5e406e)){_0xe1d405=!0x1;break;}if(_0xe1d405)return _0x276ba3;}const _0x4142a0=_0x337574(),_0x5becc8=_0x29b074['id'],_0x48dfd4='insertion:'+_0x236019,_0x347d33=this['_setSuggestionData']({'id':_0x4142a0,'type':_0x48dfd4,'createdAt':new Date(),'authorId':_0x5becc8,'attributes':_0x33a98e});for(const _0x4b8975 of _0x3a2e66)this['_addSuggestionMarker'](_0x48dfd4,_0x4142a0,_0x5becc8,_0x4b8975,R['getMultiRangeId']());return _0x347d33;}['markInlineFormat'](_0x364742,_0x2bfd24,_0x58a3f4=null,_0x1b61e9={}){if(_0x58a3f4=_0x58a3f4||Wt(_0x2bfd24),_0x364742['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1b61e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x578e36=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x58a3f4,'accept');return this['forceDefaultExecution'](()=>_0x578e36([_0x364742],_0x2bfd24,_0x1b61e9)),null;}const _0x4b8fa9=this['editor']['plugins']['get']('Users')['me'],_0x3ea315=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2cf309,meta:_0x58bc9d}of this['_findSuggestions'](_0x364742,'insertion'))_0x58bc9d['isOwn']&&!_0x58bc9d['isInsideObject']&&_0x3ea315['push'](..._0x2cf309['getRanges']());}const _0x2fd3a9=function(_0x703ad6,_0xc2d10c){const _0x32e139=[];for(const _0x5a4b46 of _0xc2d10c){const _0x4e860d=_0x703ad6['getIntersection'](_0x5a4b46);_0x4e860d&&_0x32e139['push'](_0x4e860d);}return _0x32e139;}(_0x364742,_0x3ea315),_0x5c173f=function(_0x332b5f,_0x5828bb){const _0xb4af5c=[_0x332b5f];for(const _0x4159dd of _0x5828bb){let _0x265e79=0x0;for(;_0x265e79<_0xb4af5c['length'];){const _0x1612b7=_0xb4af5c[_0x265e79]['getDifference'](_0x4159dd);_0xb4af5c['splice'](_0x265e79,0x1,..._0x1612b7),_0x265e79+=_0x1612b7['length'];}}return _0xb4af5c;}(_0x364742,_0x3ea315);_0x2fd3a9['length']&&this['_model']['change'](()=>{for(const _0x4a4446 of _0x2fd3a9){const _0x48d3a8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x58a3f4,'accept');this['forceDefaultExecution'](()=>_0x48d3a8([_0x4a4446],_0x2bfd24,_0x1b61e9));}});for(const _0x3e7f4e of _0x5c173f){let _0x1e68b4=null,_0x15626a=_0x3e7f4e['start'],_0x37268f=_0x3e7f4e['end'];for(const {suggestion:_0x1cc831,meta:_0x5e7145}of this['_findSuggestions'](_0x3e7f4e,'formatInline')){if(!_0x5e7145['isOwn'])continue;if(_0x1cc831['subType']!=_0x58a3f4)continue;if(!ie(_0x1cc831,_0x1b61e9))continue;const _0x1cd52a=_0x1cc831['getFirstRange']();if(_0x1cd52a['containsRange'](_0x3e7f4e,!0x0))return null;_0x15626a=_0x15626a['isBefore'](_0x1cd52a['start'])?_0x15626a:_0x1cd52a['start'],_0x37268f=_0x37268f['isAfter'](_0x1cd52a['end'])?_0x37268f:_0x1cd52a['end'],_0x1e68b4?_0x1cd52a['start']['isBefore'](_0x1e68b4['getFirstRange']()['start'])?(_0x1e68b4['removeMarkers'](),_0x1e68b4=_0x1cc831):_0x1cc831['removeMarkers']():_0x1e68b4=_0x1cc831;}const _0x281ba8=this['_model']['createRange'](_0x15626a,_0x37268f);if(_0x1e68b4)this['_setSuggestionRange'](_0x1e68b4,_0x281ba8);else{const _0x570af5=_0x337574(),_0x3104a5=_0x4b8fa9['id'];this['_setSuggestionData']({'id':_0x570af5,'type':'formatInline:'+_0x58a3f4,'data':_0x2bfd24,'createdAt':new Date(),'authorId':_0x3104a5,'attributes':_0x1b61e9}),this['_addSuggestionMarker']('formatInline:'+_0x58a3f4,_0x570af5,_0x3104a5,_0x281ba8);}}return null;}['markBlockFormat'](_0x501ee4,_0x577212,_0x29cef4=[],_0x57e041=null,_0x3b0c87={}){_0x577212['formatGroupId']||(_0x577212['formatGroupId']=_0x577212['commandName']),_0x577212['multipleBlocks']=_0x501ee4['is']('range'),_0x57e041=_0x57e041||Wt(_0x577212);const _0x795112=_0x29cef4['map'](_0x3a2808=>Zt(_0x3a2808,this['_model'])),_0x15cae4=_0x501ee4['is']('range')?_0x501ee4:Zt(_0x501ee4,this['_model']);if(this['_trackingSessionId']&&(_0x3b0c87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3c0c0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e041,'accept');return this['forceDefaultExecution'](()=>_0x3c0c0a([_0x15cae4],_0x577212,_0x3b0c87)),null;}_0x795112['push'](_0x15cae4);let _0x46234e=!0x0;for(const _0x3d9343 of _0x795112)if(!this['_rangeIsInLocalUserInsertion'](_0x3d9343)){_0x46234e=!0x1;break;}if(_0x46234e&&'always'!==this['_trackFormatChanges']){const _0x3f8322=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e041,'accept');return this['forceDefaultExecution'](()=>_0x3f8322([_0x15cae4],_0x577212,_0x3b0c87)),null;}let _0xfb4fd7=null,_0xdef6c8=_0x15cae4['start'],_0xb3501c=_0x15cae4['end'];for(const {suggestion:_0x175d8c,meta:_0x4de40c}of this['_findSuggestions'](_0x15cae4,'formatBlock')){if(!_0x4de40c['isOwn'])continue;if(_0x4de40c['isNextTo']||_0x4de40c['containsRangeInObject']||_0x4de40c['isInsideObject'])continue;if(_0x175d8c['data']['formatGroupId']!=_0x577212['formatGroupId'])continue;if(!ie(_0x175d8c,_0x3b0c87))continue;const _0x187606=_0x175d8c['getFirstRange']();if(_0x175d8c['subType']==_0x57e041){if(_0x187606['containsRange'](_0x15cae4,!0x0))return null;_0xdef6c8=_0xdef6c8['isBefore'](_0x187606['start'])?_0xdef6c8:_0x187606['start'],_0xb3501c=_0xb3501c['isAfter'](_0x187606['end'])?_0xb3501c:_0x187606['end'],_0xfb4fd7?_0x187606['start']['isBefore'](_0xfb4fd7['getFirstRange']()['start'])?(_0xfb4fd7['removeMarkers'](),_0xfb4fd7=_0x175d8c):_0x175d8c['removeMarkers']():_0xfb4fd7=_0x175d8c;}else{const _0x10fa03=_0x15cae4['getIntersection'](_0x187606);this['_cutOutSuggestionMarker'](_0x175d8c,_0x10fa03);}}const _0x4cfa25=this['editor']['plugins']['get']('Users')['me'],_0x11952c=_0x337574(),_0x87b81b=_0x4cfa25['id'];if(_0xfb4fd7)return this['_setSuggestionRange'](_0xfb4fd7,this['_model']['createRange'](_0xdef6c8,_0xb3501c)),_0xfb4fd7;{const _0xa14e5c=this['_setSuggestionData']({'id':_0x11952c,'type':'formatBlock:'+_0x57e041,'data':_0x577212,'createdAt':new Date(),'authorId':_0x87b81b,'attributes':_0x3b0c87});return this['_addSuggestionMarker']('formatBlock:'+_0x57e041,_0x11952c,_0x87b81b,this['_model']['createRange'](_0xdef6c8,_0xb3501c)),_0xa14e5c;}}['markMultiRangeBlockFormat'](_0xb55672,_0x350e70,_0x3f7b8e=[],_0x461ff7=null,_0x38343a={}){_0x350e70['formatGroupId']||(_0x350e70['formatGroupId']=_0x350e70['commandName']);const _0x5c2dc6=_0xb55672[0x0];_0x350e70['multipleBlocks']=_0x5c2dc6['is']('range'),_0x461ff7=_0x461ff7||Wt(_0x350e70);const _0x113674=_0x3f7b8e['map'](_0x48f840=>Zt(_0x48f840,this['_model'])),_0x41cc96=_0x5c2dc6['is']('range')?_0xb55672:_0xb55672['map'](_0x111c5f=>Zt(_0x111c5f,this['_model']));if(this['_trackingSessionId']&&(_0x38343a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc0932f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461ff7,'accept');return this['forceDefaultExecution'](()=>_0xc0932f(_0x41cc96,_0x350e70,_0x38343a)),null;}_0x113674['push'](..._0x41cc96);let _0x3a03a2=!0x0;for(const _0x290ca5 of _0x113674)if(!this['_rangeIsInLocalUserInsertion'](_0x290ca5)){_0x3a03a2=!0x1;break;}if(_0x3a03a2&&'always'!==this['_trackFormatChanges']){const _0x562b96=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461ff7,'accept');return this['forceDefaultExecution'](()=>_0x562b96(_0x41cc96,_0x350e70,_0x38343a)),null;}const _0x541502=this['editor']['plugins']['get']('Users')['me'];for(const _0x1184db of this['getSuggestions']()){const _0x1812bb=_0x1184db['data'];if(_0x1184db['author']['id']!=_0x541502['id'])continue;if('formatBlock'!=_0x1184db['type']||_0x1812bb['formatGroupId']!=_0x350e70['formatGroupId'])continue;if(!ie(_0x1184db,_0x38343a))continue;const _0x52407f=_0x1184db['subType']==_0x461ff7;for(let _0x436e23=0x0;_0x436e23<_0x41cc96['length'];_0x436e23++){const _0x104059=_0x41cc96[_0x436e23];for(const _0x9ba053 of _0x1184db['getMarkers']()){const _0x51d6dd=_0x9ba053['getRange']();if(_0x104059['isEqual'](_0x51d6dd)){_0x52407f?(_0x41cc96['splice'](_0x436e23,0x1),_0x436e23--):_0x1184db['removeMarker'](_0x9ba053['name']);break;}}}}if(0x0==_0x41cc96['length'])return null;const _0x459b0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x461ff7,'join');for(const _0x397263 of this['getSuggestions']()){const _0x3f1c5f=_0x397263['data'];if(_0x397263['author']['id']==_0x541502['id']&&('formatBlock'==_0x397263['type']&&_0x3f1c5f['formatGroupId']==_0x350e70['formatGroupId']&&_0x397263['subType']==_0x461ff7&&ie(_0x397263,_0x38343a)&&(_0x459b0d(_0x397263['getRanges'](),_0x41cc96)||_0x459b0d(_0x41cc96,_0x397263['getRanges']())))){for(const _0x1188a1 of _0x41cc96)_0x397263['addRange'](_0x1188a1);return _0x397263;}}const _0x558323=_0x337574(),_0x3533bc=_0x541502['id'],_0x32b2f0='formatBlock:'+_0x461ff7,_0x5b3144=this['_setSuggestionData']({'id':_0x558323,'type':_0x32b2f0,'data':_0x350e70,'createdAt':new Date(),'authorId':_0x3533bc,'attributes':_0x38343a});for(const _0x393863 of _0x41cc96)this['_addSuggestionMarker'](_0x32b2f0,_0x558323,_0x3533bc,_0x393863,R['getMultiRangeId']());return _0x5b3144;}['markDeletion'](_0x12fd67,_0x480ccf=null,_0x395a38={}){if(_0x12fd67['isCollapsed'])return null;const _0x57c894=this['editor']['plugins']['get']('Users')['me'],_0x140519=new _0x4c47d7(_0x12fd67['start'],_0x12fd67['end']);this['_trackingSessionId']&&(_0x395a38['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x19ca6f,meta:_0x3daed8}of this['_findSuggestions'](_0x140519,'insertion'))if(_0x3daed8['isOwn']&&!_0x3daed8['isNextTo']){if(_0x19ca6f['isMultiRange']){const _0x49e970=_0x19ca6f['getRanges']()['filter'](_0x2e360b=>'$graveyard'!=_0x2e360b['root']['rootName']);_0x49e970['every'](_0x405a63=>_0x140519['containsRange'](_0x405a63,!0x0))&&_0x19ca6f['discard']();if(_0x49e970['some'](_0x33a64b=>_0x33a64b['containsRange'](_0x140519,!0x0))){const _0x10a5bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x480ccf,'accept');return this['forceDefaultExecution'](()=>_0x10a5bc([_0x140519],null,_0x395a38)),null;}}else{const _0x3fc4b5=_0x140519['getIntersection'](_0x19ca6f['getFirstRange']());null!==_0x3fc4b5&&_0x19ca6f['_onDiscard']([_0x3fc4b5],null,_0x395a38);}}if(_0x140519['detach'](),_0x140519['isCollapsed']||'$graveyard'==_0x140519['root']['rootName'])return null;let _0x473248=null,_0x35eb6b=_0x140519['start'],_0x22e151=_0x140519['end'];const _0x13fffc=this['_findSuggestions'](_0x140519,'deletion');for(const {suggestion:_0x2ad716,meta:_0x340b22}of _0x13fffc){const _0x162401=this['_model']['createRange'](_0x35eb6b,_0x22e151);if(_0x340b22['isOwn']&&(this['_mergeNestedSuggestions']||!_0x340b22['containsRangeInObject']&&!_0x340b22['isInsideObject'])){if(_0x2ad716['isMultiRange']){if(!ie(_0x2ad716,_0x395a38))continue;let _0x4fec74=!0x0;for(const _0x5a7741 of _0x2ad716['getRanges']()){if(_0x5a7741['containsRange'](_0x162401,!0x0))return _0x2ad716;_0x162401['containsRange'](_0x5a7741)||(_0x4fec74=!0x1);}_0x4fec74&&_0x2ad716['discard']();}else{const _0x1b61b7=_0x2ad716['getFirstRange']();if(_0x1b61b7['containsRange'](_0x162401,!0x0))return _0x2ad716;if(!ie(_0x2ad716,_0x395a38)){_0x162401['containsRange'](_0x1b61b7)?_0x2ad716['removeMarkers']():_0x1b61b7['containsPosition'](_0x35eb6b)?_0x35eb6b=_0x1b61b7['end']:_0x1b61b7['containsPosition'](_0x22e151)&&(_0x22e151=_0x1b61b7['start']);continue;}_0x35eb6b=_0x35eb6b['isBefore'](_0x1b61b7['start'])?_0x35eb6b:_0x1b61b7['start'],_0x22e151=_0x22e151['isAfter'](_0x1b61b7['end'])?_0x22e151:_0x1b61b7['end'],_0x395a38=Object['assign']({},_0x2ad716['attributes']),_0x473248?_0x1b61b7['start']['isBefore'](_0x473248['getFirstRange']()['start'])?(_0x473248['removeMarkers'](),_0x473248=_0x2ad716):_0x2ad716['removeMarkers']():_0x473248=_0x2ad716;}}}if(_0x473248)return this['_setSuggestionRange'](_0x473248,this['_model']['createRange'](_0x35eb6b,_0x22e151)),_0x473248;{const _0x539d82=_0x337574(),_0x4c2209=this['_model']['createRange'](_0x35eb6b,_0x22e151),_0x2035f7=_0x57c894['id'],_0x4a6e69=_0x480ccf?'deletion:'+_0x480ccf:'deletion',_0x37723a=this['_setSuggestionData']({'id':_0x539d82,'type':_0x4a6e69,'createdAt':new Date(),'authorId':_0x2035f7,'attributes':_0x395a38});return this['_addSuggestionMarker'](_0x4a6e69,_0x539d82,_0x2035f7,_0x4c2209),_0x37723a;}}['markMultiRangeDeletion'](_0x135430,_0x3e954e='multi',_0x54933b={}){const _0xc23a02=this['editor']['plugins']['get']('Users')['me'],_0x50621e=_0x135430['map'](_0x35f204=>new _0x4c47d7(_0x35f204['start'],_0x35f204['end'])),_0x2f2b06=new Set();this['_trackingSessionId']&&(_0x54933b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x33a3a4,meta:_0x1f4a56}of this['_findSuggestions'](_0x50621e,'insertion'))_0x1f4a56['isOwn']&&!_0x1f4a56['isNextTo']&&_0x2f2b06['add'](_0x33a3a4);for(const _0x342877 of _0x2f2b06)if(_0x342877['isMultiRange']){const _0x49811e=_0x342877['getRanges']();(!_0x342877['attributes']||!_0x342877['attributes']['skipNestingCheck'])&&(_0x49811e['every'](_0x5688a1=>_0x50621e['some'](_0xa9f706=>_0xa9f706['containsRange'](_0x5688a1,!0x0)))&&_0x342877['discard']());if(_0x50621e['every'](_0x81aa1c=>_0x49811e['some'](_0x5dd8cb=>_0x5dd8cb['containsRange'](_0x81aa1c,!0x0)))){const _0x238215=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e954e,'accept');return this['forceDefaultExecution'](()=>_0x238215(_0x135430,null,_0x54933b)),null;}}else{const _0x1bb573=_0x342877['getFirstRange']();_0x50621e['some'](_0x357a53=>_0x357a53['containsRange'](_0x1bb573,!0x0))&&_0x342877['discard']();if(_0x50621e['every'](_0x4a4d13=>_0x1bb573['containsRange'](_0x4a4d13,!0x0))){const _0x45660a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e954e,'accept');return this['forceDefaultExecution'](()=>_0x45660a(_0x50621e,null,_0x54933b)),null;}}const _0x11d5ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e954e,'join');let _0x7ec2c9=null;for(const _0x3248d3 of this['getSuggestions']())if(_0x3248d3['author']['id']==_0xc23a02['id']&&_0x3248d3['isInContent']&&'deletion'==_0x3248d3['type']&&_0x3248d3['subType']==_0x3e954e&&ie(_0x3248d3,_0x54933b)&&(_0x11d5ea(_0x3248d3['getRanges'](),_0x50621e)||_0x11d5ea(_0x50621e,_0x3248d3['getRanges']()))){if(_0x7ec2c9){if(_0x3248d3['commentThread']&&_0x3248d3['commentThread']['length'])continue;for(const _0x298f14 of _0x3248d3['getRanges']())_0x7ec2c9['isIntersectingWithRange'](_0x298f14)||_0x7ec2c9['addRange'](_0x298f14);_0x3248d3['removeMarkers']();}else{_0x7ec2c9=_0x3248d3;for(const _0x31b2a8 of _0x50621e)_0x3248d3['isIntersectingWithRange'](_0x31b2a8)||_0x3248d3['addRange'](_0x31b2a8);}}if(_0x7ec2c9)return _0x7ec2c9;_0x2f2b06['clear']();for(const {suggestion:_0x9b8dc8,meta:_0xba0c89}of this['_findSuggestions'](_0x50621e,'deletion'))_0xba0c89['isOwn']&&(this['_mergeNestedSuggestions']||!_0xba0c89['containsRangeInObject']&&!_0xba0c89['isInsideObject'])&&ie(_0x9b8dc8,_0x54933b)&&_0x2f2b06['add'](_0x9b8dc8);for(const _0x513a1d of _0x2f2b06){const _0x8b7fa5=_0x513a1d['getRanges']();if(!_0x54933b||!_0x54933b['skipNestingCheck']){if(_0x50621e['every'](_0x3cb8d5=>_0x8b7fa5['some'](_0xb957c0=>_0xb957c0['containsRange'](_0x3cb8d5,!0x0))))return _0x513a1d;}(!_0x513a1d['attributes']||!_0x513a1d['attributes']['skipNestingCheck'])&&(_0x8b7fa5['every'](_0xe55ad1=>_0x50621e['some'](_0x585a39=>_0x585a39['containsRange'](_0xe55ad1,!0x0)))&&_0x513a1d['discard']());}const _0x55647c=_0x337574(),_0x1a2c95=_0xc23a02['id'],_0x21c15e='deletion:'+_0x3e954e,_0x2cb7bf=this['_setSuggestionData']({'id':_0x55647c,'type':_0x21c15e,'createdAt':new Date(),'authorId':_0x1a2c95,'attributes':_0x54933b});for(const _0x50edac of _0x50621e)_0x50edac['detach'](),_0x50edac['isCollapsed']||'$graveyard'==_0x50edac['root']['rootName']||this['_addSuggestionMarker'](_0x21c15e,_0x55647c,_0x1a2c95,_0x50edac,R['getMultiRangeId']());return _0x2cb7bf;}['markAttributeChange'](_0x44267b,_0x2010c8,_0x2abd14,_0x1a58d5,_0x470131){if(_0x44267b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf02fc5=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e47f3=Array['from'](this['_suggestions']['values']())['filter'](_0x45162f=>'attribute'==_0x45162f['type']&&_0x45162f['data']['key']==_0x2010c8&&_0x45162f['isIntersectingWithRange'](_0x44267b));if(this['_trackingSessionId']&&(_0x470131['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5bc072=this['_findSuggestions'](_0x44267b,'insertion')['filter'](({meta:_0x117e86})=>_0x117e86['isOwn']&&!_0x117e86['isInsideObject']&&!_0x117e86['isNextTo'])['map'](({suggestion:_0x2acedf})=>_0x2acedf);_0x4e47f3['unshift'](..._0x5bc072);}const _0x3c9d72=new Map([[_0x44267b,_0x2abd14]]);for(const _0x2681b6 of _0x4e47f3){const _0x46a128='attribute'==_0x2681b6['type']?_0x2681b6['data']['oldValue']:void 0x0,_0x5e0bb2=_0x2681b6['getFirstRange'](),_0x2941ce=Array['from'](_0x3c9d72['keys']())['find'](_0x23bbf8=>_0x23bbf8['isIntersecting'](_0x5e0bb2));if(!_0x2941ce)continue;const _0x45a4e5=_0x2941ce['getDifference'](_0x5e0bb2);this['_isBlockAttribute'](_0x2010c8)&&'insertion'==_0x2681b6['type']&&0x0!=_0x45a4e5['length']||(_0x3c9d72['delete'](_0x2941ce),_0x45a4e5['forEach'](_0x4776db=>{_0x3c9d72['set'](_0x4776db,_0x2abd14);}),'insertion'!=_0x2681b6['type']&&_0x46a128!=_0x1a58d5&&_0x3c9d72['set'](_0x2941ce['getIntersection'](_0x5e0bb2),_0x46a128));}const _0x20e859=[];for(const [_0x285fb9,_0x125061]of _0x3c9d72){const _0x5df51e=_0x337574(),_0x2e6ce5={'key':_0x2010c8,'oldValue':_0x125061,'newValue':_0x1a58d5};_0x2010c8['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':_0x2010c8});const _0x1a823e=('attribute:'+(_0x2010c8+'|'+Wt({'newValue':_0x1a58d5})))['substring'](0x0,0x3c),_0x2d632a=this['_setSuggestionData']({'id':_0x5df51e,'type':_0x1a823e,'data':_0x2e6ce5,'createdAt':new Date(),'authorId':_0xf02fc5,'attributes':_0x470131});_0x20e859['push'](_0x2d632a),this['_addSuggestionMarker'](_0x1a823e,_0x5df51e,_0xf02fc5,_0x285fb9);}return _0x20e859;}['enableDefaultAttributesIntegration'](_0xe371da){this['enableCommand'](_0xe371da,(_0x34db70,..._0x97261f)=>{this['recordAttributeChanges'](()=>{_0x34db70(..._0x97261f);});});}['registerBlockAttribute'](_0x1d9534){this['_blockAttributeKeys']['add'](_0x1d9534);}['registerInlineAttribute'](_0xcf2e4c){this['_inlineAttributeKeys']['add'](_0xcf2e4c);}['startTrackingSession'](_0x45b304){return this['_trackingSessionId']=void 0x0!==_0x45b304?_0x45b304:_0x337574(),this['_trackingSessionId'];}['_getAttributeKey'](_0x47da46){return'attribute'==_0x47da46['type']?se(_0x47da46['subType']):null;}['_applyOperationsAsSuggestions'](_0x4cac5a){if(0x0==_0x4cac5a['length'])return;const _0x25c297=this['editor'],_0x57787a=_0x25c297['plugins']['get'](_0x371209);let _0x34144d=!0x0;for(const _0x58d5d2 in _0x4cac5a[0x0]){const _0x23ebdf=_0x4cac5a[0x0][_0x58d5d2];if((_0x23ebdf instanceof _0x8cdcc2||_0x23ebdf instanceof _0x349021)&&_0x23ebdf['root']['is']('documentFragment')){_0x34144d=!0x1;break;}}_0x25c297['model']['change'](_0x3569d1=>{const _0x1c1e09=new Set();for(const _0x1b30af of _0x4cac5a)if(_0x1b30af['baseVersion']=_0x34144d?_0x25c297['model']['document']['version']:null,_0x1b30af['isDocumentOperation']=_0x34144d,_0x57787a['isMarkedRemoveOperation'](_0x1b30af)){const _0x294913=Xt(_0x1b30af['newRange'],_0x25c297['model']);if(_0x34144d)this['markDeletion'](_0x294913);else{const _0x5961f9='suggestion:deletion:id:authorId:'+_0x337574();_0x294913['root']['markers']['set'](_0x5961f9,_0x294913);}}else switch(_0x1b30af['type']){case'rename':{const _0x55015f=_0x1b30af['oldName'],_0x30390c=_0x1b30af['newName'];if(_0x55015f==_0x30390c)break;_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x1ba03d='$elementName',_0x1f13f8=_0x1b30af['position'],_0x1d7a5b=_0x25c297['model']['createRange'](_0x1f13f8,_0x25c297['model']['createPositionAt'](_0x1f13f8['nodeAfter'],'end'));if(_0x34144d)this['markAttributeChange'](_0x1d7a5b,_0x1ba03d,_0x55015f,_0x30390c,{'groupId':_0x337574()});else{const _0x4a6be3='suggestion:attribute:'+_0x1ba03d+':id:authorId:'+_0x337574();_0x1d7a5b['root']['markers']['set'](_0x4a6be3,_0x1d7a5b);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1a29d0=_0x1b30af['oldValue'],_0x583b4b=_0x1b30af['newValue'];if(_0x1a29d0==_0x583b4b)break;_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x49c714=_0x1b30af['key'];if(!this['_isRegisteredAttribute'](_0x49c714))break;const _0xcdf304=Xt(_0x1b30af['range'],_0x25c297['model']);if(_0x34144d)this['markAttributeChange'](_0xcdf304,_0x49c714,_0x1a29d0,_0x583b4b,{'groupId':_0x337574()});else{const _0x3c697b='suggestion:attribute:'+_0x49c714+':id:authorId:'+_0x337574();_0xcdf304['root']['markers']['set'](_0x3c697b,_0xcdf304);}break;}case'insert':{_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x256460=_0x1b30af['position'],_0x2dd850=_0x1b30af['howMany'],_0x274cdd=Xt(_0x25c297['model']['createRange'](_0x256460,_0x256460['getShiftedBy'](_0x2dd850)),_0x25c297['model']);if(_0x34144d)this['markInsertion'](_0x274cdd);else{const _0x209a06='suggestion:insertion:id:authorId:'+_0x337574();_0x274cdd['root']['markers']['set'](_0x209a06,_0x274cdd);}break;}case'split':{_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);const _0x26cc89=_0x1b30af['splitPosition'],_0x1269c6=_0x1b30af['moveTargetPosition'],_0x4202a4=_0x25c297['model']['createRange'](_0x26cc89,_0x1269c6);if(_0x34144d)this['markInsertion'](_0x25c297['model']['createRange'](_0x26cc89,_0x1269c6));else{const _0x2e4417='suggestion:insertion:id:authorId:'+_0x337574();_0x4202a4['root']['markers']['set'](_0x2e4417,_0x4202a4);}break;}case'move':if(_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af),!_0x34144d){const _0x134ee1=_0x1b30af['getMovedRangeStart'](),_0x5a7284=_0x1b30af['howMany'];for(let _0x35856b=0x0;_0x35856b<_0x5a7284;_0x35856b++){const _0x4b956b=_0x134ee1['getShiftedBy'](_0x35856b)['nodeAfter'];_0x1c1e09['add'](_0x4b956b);}}break;case'remove':if(_0x34144d)_0x3569d1['batch']['addOperation'](_0x1b30af),_0x25c297['model']['applyOperation'](_0x1b30af);else{const _0x3c6b63=_0x1b30af['sourcePosition'],_0xb5cccd=_0x1b30af['howMany'],_0xe2cff3=new _0x126049(_0x3c6b63,_0xb5cccd);_0x3569d1['batch']['addOperation'](_0xe2cff3),_0x25c297['model']['applyOperation'](_0xe2cff3);}}for(const _0x41ccda of _0x1c1e09){const _0x56b9c6=_0x25c297['model']['createRangeOn'](_0x41ccda),_0x3be7e2='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x337574();_0x56b9c6['root']['markers']['set'](_0x3be7e2,Xt(_0x56b9c6,_0x25c297['model']));}});}['_setSuggestionRange'](_0x4bb287,_0x45a326){const _0x5f1c7e=_0x4bb287['getFirstMarker']();this['_model']['change'](_0x19435d=>{_0x19435d['updateMarker'](_0x5f1c7e,{'range':_0x45a326});});}['_addThreadToSuggestion'](_0x2ddba7){const _0x2e8505=_0x2ddba7['id'],_0x45d415=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2e8505)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45d415,'threadId':_0x2e8505,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27ac4a=this['_commentsRepository']['getCommentThread'](_0x2e8505);_0x27ac4a['unbind']('isRemovable'),_0x27ac4a['isRemovable']=!0x1,_0x2ddba7['commentThread']=_0x27ac4a;}['_checkSuggestionCorrectness'](_0x3fb2e7,_0x3bb28c,_0x4255d2,_0x2d7370){if(_0x3fb2e7['type']!=_0x3bb28c||_0x3fb2e7['subType']!=_0x4255d2||_0x3fb2e7['creator']['id']!=_0x2d7370)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4fb79c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xb60410,_0x2c9152){const _0x3d54ed=_0xb60410['getFirstRange']();if(_0x2c9152['isEqual'](_0x3d54ed))_0xb60410['removeMarkers']();else{if(_0x3d54ed['containsRange'](_0x2c9152)){const _0x2e324f=this['_model']['createPositionAt'](_0x2c9152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb60410,this['_model']['createRange'](_0x3d54ed['start'],_0x2e324f));const _0x27580d=_0x337574(),_0x368650=_0xb60410['creator']['id'],_0x387d38=_0xb60410['type']+':'+_0xb60410['subType'];this['_setSuggestionData']({'id':_0x27580d,'type':_0x387d38,'createdAt':new Date(),'authorId':_0x368650,'data':_0xb60410['data'],'attributes':_0xb60410['attributes']});const _0x3d3c8f=this['_model']['createPositionAt'](_0x2c9152['end']['parent'],'after'),_0x3bf131=this['_model']['createRange'](_0x3d3c8f,_0x3d54ed['end']);this['_addSuggestionMarker'](_0x387d38,_0x27580d,_0x368650,_0x3bf131);}else{if(_0x3d54ed['containsPosition'](_0x2c9152['start'])){const _0x27c91f=this['_model']['createPositionAt'](_0x2c9152['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb60410,this['_model']['createRange'](_0x3d54ed['start'],_0x27c91f));}else{const _0x3a0ace=this['_model']['createPositionAt'](_0x2c9152['end']['parent'],'after');this['_setSuggestionRange'](_0xb60410,this['_model']['createRange'](_0x3a0ace,_0x3d54ed['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x19781f){for(const {suggestion:_0x4da3a9,meta:_0x49c25b}of this['_findSuggestions'](_0x19781f,'insertion')){if(!_0x49c25b['isOwn'])continue;const _0x9cdd68=_0x4da3a9['getRanges']();for(const _0x382305 of _0x9cdd68)if(!_0x19781f['getDifference'](_0x382305)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x162dfb){return this['editor']['plugins']['get']('Users')['getUser'](_0x162dfb);}['_getExternalAuthor'](_0x374ba3){const _0x1c4a01=this['editor']['plugins']['get']('Users'),_0x608b7c=_0x250706('external:'+_0x374ba3),_0x3ba532=_0x1c4a01['getUser'](_0x608b7c);return _0x3ba532||_0x1c4a01['addUser']({'id':_0x608b7c,'name':_0x374ba3});}['_createSuggestion'](_0x27690f,_0x323781,_0x2abcc9,_0x1f28f3,_0x49d933,_0x3ebb7a){const _0x1dd1a9=this['_getAuthorFromId'](_0x1f28f3);if(!_0x1dd1a9)throw new _0x4fb79c('track-changes-user-not-found',this,{'authorId':_0x1f28f3,'suggestionId':_0x2abcc9});const _0x303c42=this['_suggestionFactory']['buildSuggestion'](_0x27690f,_0x323781,_0x2abcc9,_0x1dd1a9,_0x49d933,_0x13fd08=>{this['_updateSuggestionData'](_0x2abcc9,{'attributes':_0x13fd08});const _0x44adbb=this['getSuggestion'](_0x2abcc9);this['_joinWithAdjacentSuggestions'](new Set([_0x44adbb])),this['_refreshSuggestionsChain'](new Set([_0x44adbb]));},_0x3ebb7a);return this['listenTo'](_0x303c42,'accept',()=>{this['_updateSuggestionData'](_0x2abcc9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x303c42,'discard',()=>{this['_updateSuggestionData'](_0x2abcc9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2abcc9,_0x303c42),this['_suggestionState']['set'](_0x303c42,'notReady'),_0x303c42;}['_splitMarkerName'](_0x174dac){const _0x5c2322=_0x174dac['split'](':');return{'group':_0x5c2322[0x0],'type':_0x5c2322[0x1],'subType':_0x5c2322['length']>=0x5?_0x5c2322[0x2]:null,'id':_0x5c2322['length']<0x5?_0x5c2322[0x2]:_0x5c2322[0x3],'authorId':_0x5c2322['length']<0x5?_0x5c2322[0x3]:_0x5c2322[0x4],'markerCount':0x6==_0x5c2322['length']?_0x5c2322[0x5]:null};}['_breakSuggestionMarker'](_0xb89ca5,_0x65bb0d,_0x4e9a20){const _0x49186c=_0xb89ca5['getFirstRange'](),_0xdfd7d6=_0x49186c['start'],_0x49226e=_0x49186c['end'];this['_setSuggestionRange'](_0xb89ca5,this['_model']['createRange'](_0xdfd7d6,_0x65bb0d));const _0x47b7eb=_0x337574(),_0x59a1ca=_0xb89ca5['creator']['id'],_0x315efa=_0xb89ca5['type']+(_0xb89ca5['subType']?':'+_0xb89ca5['subType']:'');this['_setSuggestionData']({'id':_0x47b7eb,'type':_0x315efa,'createdAt':new Date(),'authorId':_0x59a1ca,'originalSuggestionId':_0xb89ca5['_originalSuggestionId']||_0xb89ca5['id'],'attributes':_0xb89ca5['attributes'],'data':_0xb89ca5['data']});const _0x17d507=this['_getAttributeKey'](_0xb89ca5);('formatBlock'==_0xb89ca5['type']||_0x17d507&&this['_isBlockAttribute'](_0x17d507))&&(_0x4e9a20=this['_model']['createPositionBefore'](_0x4e9a20['parent'])),this['_addSuggestionMarker'](_0x315efa,_0x47b7eb,_0x59a1ca,this['_model']['createRange'](_0x4e9a20,_0x49226e));}['_findSuggestions'](_0x52d4bb,_0x497679=null){const _0x1d1a16=[],_0x1aa2a8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x52d4bb)||(_0x52d4bb=[_0x52d4bb]);for(const _0x3c806d of this['getSuggestions']()){if(!_0x3c806d['isInContent'])continue;if(_0x497679&&_0x3c806d['type']!=_0x497679)continue;let _0x2fe926=!0x1;for(const _0x16bb9a of _0x3c806d['getRanges']()){for(const _0xf8af40 of _0x52d4bb){const _0x44d32b=_0xf8af40['start']['isEqual'](_0x16bb9a['end'])||_0xf8af40['end']['isEqual'](_0x16bb9a['start']);if(_0x44d32b||_0xf8af40['getIntersection'](_0x16bb9a)){const _0x5af89a=_0xf8af40['containsRange'](_0x16bb9a)&&Jt(this['_model']['schema'],_0x16bb9a['start'],_0xf8af40),_0x2da5cd=_0x16bb9a['containsRange'](_0xf8af40)&&Jt(this['_model']['schema'],_0xf8af40['start'],_0x16bb9a);_0x1d1a16['push']({'suggestion':_0x3c806d,'meta':{'isOwn':_0x1aa2a8==_0x3c806d['author'],'isNextTo':_0x44d32b,'isInsideObject':_0x5af89a,'containsRangeInObject':_0x2da5cd}}),_0x2fe926=!0x0;break;}}if(_0x2fe926)break;}}return _0x1d1a16;}['_addSuggestionMarker'](_0x4e145b,_0x19801a,_0x41770c,_0x1e55c1,_0x295a72){this['_model']['change'](_0x160c0f=>{let _0x496f7f='suggestion:'+_0x4e145b+':'+_0x19801a+':'+_0x41770c;_0x295a72&&(_0x496f7f=_0x496f7f+':'+_0x295a72),_0x160c0f['addMarker'](_0x496f7f,{'range':_0x1e55c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4e014a){const _0x98e93d=_0x4e014a['previous'],_0x373449=_0x4e014a['next'];_0x4e014a['previous']=null,_0x4e014a['next']=null,null!=_0x98e93d&&_0x98e93d['next']==_0x4e014a&&(_0x98e93d['next']=_0x373449),null!=_0x373449&&_0x373449['previous']==_0x4e014a&&(_0x373449['previous']=_0x98e93d),'ready'==this['_suggestionState']['get'](_0x4e014a)&&(this['_suggestionState']['set'](_0x4e014a,'removed'),this['fire']('suggestionUnloaded',_0x4e014a,_0x98e93d,_0x373449));}['_setSuggestionData'](_0x109514){const _0x2598cc=_0x109514['id'],_0x2f75a3=this['addSuggestionData'](_0x109514);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50de33=this['editor']['plugins']['get']('PendingActions'),_0x1af6d4=_0x2f75a3['hasComments'],_0x2e5c5b=_0x2f75a3['subType']?_0x2f75a3['type']+':'+_0x2f75a3['subType']:_0x2f75a3['type'],_0x19e345=this['editor']['locale'],_0x11f4a0=_0x50de33['add'](o(_0x19e345,'PENDING_ACTION_SUGGESTION')),_0xc9645a={'id':_0x2598cc,'type':_0x2e5c5b,'hasComments':_0x1af6d4,'data':_0x109514['data']||null,'originalSuggestionId':_0x109514['originalSuggestionId']||null,'attributes':_0x2f75a3['attributes']};this['_adapter']['addSuggestion'](_0xc9645a)['then'](_0x1f26ee=>{_0x2f75a3['_saved']=!0x0,_0x50de33['remove'](_0x11f4a0),_0x1f26ee&&_0x1f26ee['createdAt']&&(this['_suggestions']['get'](_0x2598cc)['createdAt']=_0x1f26ee['createdAt']);})['catch'](_0xaff9b9=>{throw _0xe7b98c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2f75a3['discard']();}),_0x2f75a3['stopListening'](),this['_suggestions']['delete'](_0x2f75a3['id']),this['_suggestionState']['delete'](_0x2f75a3),_0xaff9b9;});}return _0x2f75a3;}['_isBlockAttribute'](_0x4be76b){return this['_blockAttributeKeys']['has'](_0x4be76b);}['_isInlineAttribute'](_0x4feed9){return this['_inlineAttributeKeys']['has'](_0x4feed9);}['_updateSuggestionData'](_0x4e540b,_0x428060){const _0x2966eb=this['editor']['plugins']['get']('PendingActions'),_0x27262e=this['getSuggestion'](_0x4e540b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x27262e['_saved']){const _0x34e205=_0x2966eb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e540b,_0x428060)['then'](()=>{_0x2966eb['remove'](_0x34e205);});}else _0x27262e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e540b,_0x428060);});}}['_getSuggestionData'](_0x3ec840){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4fb79c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ec840);}['_handleNewSuggestionMarker'](_0x32a97b){const {id:_0x380299,type:_0x48446e,subType:_0x378343,authorId:_0x27dd2f}=this['_splitMarkerName'](_0x32a97b),_0x26b330=this['_suggestions']['get'](_0x380299)||this['_createSuggestion'](_0x48446e,_0x378343,_0x380299,_0x27dd2f,{});switch(this['_checkSuggestionCorrectness'](_0x26b330,_0x48446e,_0x378343,_0x27dd2f),this['_suggestionState']['get'](_0x26b330)){case'notReady':this['_getSuggestionData'](_0x380299)['then'](_0x2ca298=>{let _0x346eaf=Promise['resolve']();_0x2ca298['hasComments']&&(_0x346eaf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x380299})),_0x346eaf['then'](()=>{this['addSuggestionData'](_0x2ca298)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x26b330,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x380299,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x26b330,'ready'),this['fire']('suggestionLoaded',_0x26b330);break;case'ready':this['fire']('suggestionChanged',_0x26b330);}return _0x26b330['addMarkerName'](_0x32a97b),_0x26b330;}['_refreshSuggestionsChain'](_0x4d309){const _0x487087=Array['from'](_0x4d309),_0x217ac4=_0x487087['filter'](_0x24e4c1=>'attribute'==_0x24e4c1['type']);this['_refreshAttributeSuggestionsChain'](_0x217ac4);const _0x2ebaf1=_0x487087['filter'](_0x22af0f=>!_0x22af0f['isMultiRange']&&'attribute'!=_0x22af0f['type']),_0x5a85e8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19d7ec=>!_0x19d7ec['isMultiRange']&&'attribute'!=_0x19d7ec['type']),_0x582b26=_0x5a85e8['filter'](_0x46b847=>!_0x4d309['has'](_0x46b847)),_0x5db3da=new Map(_0x5a85e8['map'](_0x45ac69=>[_0x45ac69,this['_suggestionFactory']['getSuggestionCallback'](_0x45ac69['type'],_0x45ac69['subType'],'chain')])),_0xe94072=new Map(_0x5a85e8['map'](_0x51453d=>[_0x51453d,_0x51453d['getFirstRange']()])),_0x47bc61=new Set(),_0x289234=new Set();for(let _0x1c5f7f=0x0;_0x1c5f7f<_0x2ebaf1['length'];_0x1c5f7f++)_0x5d1016(_0x2ebaf1[_0x1c5f7f],_0x2ebaf1,_0x1c5f7f+0x1);for(let _0x356329=0x0;_0x356329<_0x2ebaf1['length'];_0x356329++)_0x5d1016(_0x2ebaf1[_0x356329],_0x582b26,0x0);const _0x553434=new Set();for(let _0xfeae31=0x0;_0xfeae31<_0x2ebaf1['length'];_0xfeae31++){const _0x49bb25=_0x2ebaf1[_0xfeae31];!_0x289234['has'](_0x49bb25)&&_0x49bb25['previous']&&(_0x553434['add'](_0x49bb25['previous']),_0x49bb25['previous']['next']===_0x49bb25&&(_0x49bb25['previous']['next']=null),_0x49bb25['previous']=null),!_0x47bc61['has'](_0x49bb25)&&_0x49bb25['next']&&(_0x553434['add'](_0x49bb25['next']),_0x49bb25['next']['previous']===_0x49bb25&&(_0x49bb25['next']['previous']=null),_0x49bb25['next']=null);}function _0x5d1016(_0x605fbc,_0x591f5b,_0x1fe976){for(let _0x533489=_0x1fe976;_0x533489<_0x591f5b['length'];_0x533489++){const _0xdc01bc=_0xcbf5d3(_0x605fbc,_0x591f5b[_0x533489]);_0xdc01bc&&(_0xdc01bc[0x0]['next']=_0xdc01bc[0x1],_0xdc01bc[0x1]['previous']=_0xdc01bc[0x0],_0x47bc61['add'](_0xdc01bc[0x0]),_0x289234['add'](_0xdc01bc[0x1]));}}function _0xcbf5d3(_0x5d1565,_0x5d3070){if(_0x5d1565['author']['id']!==_0x5d3070['author']['id'])return null;const _0xebc721=_0x5db3da['get'](_0x5d1565)(_0x5d1565,_0x5d3070,_0xe94072['get'](_0x5d1565),_0xe94072['get'](_0x5d3070));if(!_0xebc721)return null;return _0x5db3da['get'](_0x5d3070)(_0x5d1565,_0x5d3070,_0xe94072['get'](_0x5d1565),_0xe94072['get'](_0x5d3070))?_0xebc721[0x1]['commentThread']&&_0xebc721[0x1]['commentThread']['length']?null:_0xebc721:null;}_0x553434['size']&&this['_refreshSuggestionsChain'](_0x553434);}['_refreshAttributeSuggestionsChain'](_0xcc8cc1){if(0x0==_0xcc8cc1['length'])return;const _0x1ed954=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x516daa=>'attribute'==_0x516daa['type']&&_0x516daa['_isDataLoaded']),_0x36a35b=[],_0x5451e2=new Map();for(const _0x23f342 of _0x1ed954){const _0x87e8ee=_0x250706(_0x23f342['attributes']);_0x5451e2['has'](_0x87e8ee)||(_0x5451e2['set'](_0x87e8ee,_0x36a35b['length']),_0x36a35b['push']([]));const _0x3cc956=_0x5451e2['get'](_0x87e8ee);_0x36a35b[_0x3cc956]['push'](_0x23f342);}!(function(){_0x36a35b['sort']((_0x3a5369,_0x56e77c)=>{const _0x292b31=_0x3a5369[0x0]['createdAt'],_0xced195=_0x56e77c[0x0]['createdAt'];return _0x292b31==_0xced195?_0x3a5369[0x0]['attributes']['groupId']<_0x56e77c[0x0]['attributes']['groupId']?-0x1:0x1:_0x292b31<_0xced195?-0x1:0x1;});for(const _0x1bafa2 of _0x36a35b)_0x1bafa2['sort']((_0x10d74e,_0x5d1280)=>_0x10d74e['id']<_0x5d1280['id']?-0x1:0x1);}());for(let _0x26d097=0x0;_0x26d097<_0x36a35b['length'];_0x26d097++){if(0x0==_0x36a35b[_0x26d097]['length'])continue;const _0x4fb3a6=[];for(let _0x5a935d=_0x26d097+0x1;_0x5a935d<_0x36a35b['length'];_0x5a935d++)0x0!=_0x36a35b[_0x5a935d]['length']&&_0x566240(_0x36a35b[_0x26d097],_0x36a35b[_0x5a935d])&&_0x4fb3a6['push'](_0x5a935d);for(const _0x79c80d of _0x4fb3a6)_0x36a35b[_0x26d097]=_0x36a35b[_0x26d097]['concat'](_0x36a35b[_0x79c80d]),_0x36a35b[_0x79c80d]=[];}for(const _0x5a2337 of _0x36a35b)for(let _0x16fe19=0x0;_0x16fe19<_0x5a2337['length'];_0x16fe19++){const _0x1c2514=_0x5a2337[_0x16fe19+0x1]||null;_0x5a2337[_0x16fe19]['next']!==_0x1c2514&&(_0x5a2337[_0x16fe19]['next']=_0x1c2514);}for(const _0x17923f of _0x36a35b)for(let _0x323370=0x0;_0x323370<_0x17923f['length'];_0x323370++){const _0x5883a4=_0x17923f[_0x323370-0x1]||null;_0x17923f[_0x323370]['previous']!==_0x5883a4&&(_0x17923f[_0x323370]['previous']=_0x5883a4);}function _0x566240(_0x348fff,_0x183b83){if(_0x348fff[0x0]['attributes']['groupId']!==_0x183b83[0x0]['attributes']['groupId']&&_0x348fff[0x0]['author']!==_0x183b83[0x0]['author'])return!0x1;if(!function(_0x5395ab,_0x3265ea){if(!_0x5395ab['hasComments']&&!_0x3265ea['hasComments'])return!0x0;if(_0x5395ab['hasComments']&&_0x3265ea['hasComments'])return!0x1;if(_0x5395ab['hasComments']&&_0x3265ea['createdAt']<_0x5395ab['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3265ea['hasComments']&&_0x5395ab['createdAt']<_0x3265ea['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x348fff[0x0],_0x183b83[0x0]))return!0x1;const _0x1e099e=Gt(_0x348fff[0x0]['attributes'],['groupId','trackingSessionId']),_0x4fc323=Gt(_0x183b83[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x313a6c(_0x1e099e,_0x4fc323))return!0x1;if(_0x348fff[0x0]['attributes']['groupId']==_0x183b83[0x0]['attributes']['groupId'])return!0x0;if(_0x348fff[0x0]['attributes']['trackingSessionId']!==_0x183b83[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x348fff['every'](_0x5cb869=>_0x183b83['some'](_0x5b0c53=>_0x5cb869['getFirstRange']()['isEqual'](_0x5b0c53['getFirstRange']())))&&_0x183b83['every'](_0x2bf438=>_0x348fff['some'](_0x401329=>_0x2bf438['getFirstRange']()['isEqual'](_0x401329['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37ba1f){const _0x380ee5=Array['from'](_0x37ba1f),_0x59be6a=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe47511=_0x59be6a['filter'](_0x318fdb=>!_0x37ba1f['has'](_0x318fdb)),_0x3a5225=new Map(_0x380ee5['map'](_0x5a52a0=>[_0x5a52a0,this['_suggestionFactory']['getSuggestionCallback'](_0x5a52a0['type'],_0x5a52a0['subType'],'join')])),_0x6e8f28=new Map(_0x59be6a['map'](_0x57bde6=>[_0x57bde6,_0x57bde6['getRanges']()]));for(let _0x2dad1e=0x0;_0x2dad1e<_0x380ee5['length'];_0x2dad1e++){if(_0x3ea918(this,_0x380ee5[_0x2dad1e],_0x380ee5,_0x2dad1e+0x1))return!0x0;}for(let _0x24f099=0x0;_0x24f099<_0x380ee5['length'];_0x24f099++){if(_0x3ea918(this,_0x380ee5[_0x24f099],_0xe47511,0x0))return!0x0;}return!0x1;function _0x3ea918(_0x40abaf,_0xb59c33,_0x369246,_0x558b53){for(let _0x150ecb=_0x558b53;_0x150ecb<_0x369246['length'];_0x150ecb++){const _0x4cb869=_0x369246[_0x150ecb];if(_0x4cb869['type']!==_0xb59c33['type']||_0x4cb869['author']['id']!==_0xb59c33['author']['id']||_0x4cb869['subType']!==_0xb59c33['subType'])continue;if(!ee(_0xb59c33,_0x4cb869))continue;if('attribute'==_0xb59c33['type']&&_0xb59c33['data']['oldValue']!=_0x4cb869['data']['oldValue'])continue;if('attribute'==_0xb59c33['type']&&_0x40abaf['_isBlockAttribute'](_0xb59c33['data']['key']))continue;if('formatBlock'==_0xb59c33['type']){const _0x4cd32a=_0x40abaf['editor']['model'],_0x53d11d=_0xb59c33['getContainedElement']();if(_0x53d11d&&(_0x4cd32a['schema']['isObject'](_0x53d11d)||_0x4cd32a['schema']['isLimit'](_0x53d11d)))continue;}const _0x268f31=_0x3a5225['get'](_0xb59c33),_0x4ce19d=_0x6e8f28['get'](_0xb59c33),_0x2e0c0d=_0x6e8f28['get'](_0x4cb869),_0x56f457=_0xb59c33['commentThread']&&_0xb59c33['commentThread']['length'],_0x400b62=_0x4cb869['commentThread']&&_0x4cb869['commentThread']['length'];if(!_0x56f457&&_0x268f31(_0x2e0c0d,_0x4ce19d))return _0x40abaf['_joinSuggestions'](_0x4cb869,_0xb59c33),_0x6e8f28['delete'](_0xb59c33),!0x0;if(!_0x400b62&&_0x268f31(_0x4ce19d,_0x2e0c0d))return _0x40abaf['_joinSuggestions'](_0xb59c33,_0x4cb869),_0x6e8f28['delete'](_0x4cb869),!0x0;}return!0x1;}}['_joinSuggestions'](_0x274e0c,_0x5e3113){if(_0x274e0c['isMultiRange']){for(const _0x59b4e0 of _0x5e3113['getRanges']())_0x274e0c['addRange'](_0x59b4e0);}else{const _0x5c7954=_0x5e3113['getFirstRange']()['end'];this['_setSuggestionRange'](_0x274e0c,this['_model']['createRange'](_0x274e0c['getFirstRange']()['start'],_0x5c7954));}_0x5e3113['removeMarkers']();}['_getMarkerAnnouncementText'](_0x46a91c,_0x542e7c,_0x3474e1){const _0x364e2b=_0x46a91c['startsWith']('format')||_0x46a91c['startsWith']('attribute')?'FORMATTING':_0x46a91c['toUpperCase']();return o(this['editor']['locale'],_0x542e7c+'_'+_0x364e2b+'_SUGGESTION_ANNOUNCEMENT',_0x3474e1);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f986f=this['editor'];if(!_0x1f986f['ui'])return;const {ariaLiveAnnouncer:_0x147332}=_0x1f986f['ui'];_0x2f4d24(this['_model'],({left:_0x58a508,entered:_0xfe19ca})=>{for(const _0x44ebfd of _0x58a508){const {group:_0x4c94a8,type:_0x4ea85f}=this['_splitMarkerName'](_0x44ebfd['name']);if('suggestion'===_0x4c94a8){_0x147332['announce'](this['_getMarkerAnnouncementText'](_0x4ea85f,'LEAVE'));break;}}for(const _0x430dd4 of _0xfe19ca){const {group:_0x565b54,type:_0xa9ee18}=this['_splitMarkerName'](_0x430dd4['name']);if('suggestion'===_0x565b54){_0x147332['announce'](this['_getMarkerAnnouncementText'](_0xa9ee18,'ENTER',_0x54ef2c(_0x1750a5)));break;}}});}['_processAttributeChanges'](_0x1183f6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3fa60d=this['editor'],_0x3ed3de=_0x3fa60d['model']['document']['differ']['getChanges']();if(0x0==_0x3ed3de['length'])return!0x1;const _0x27b6bf=[],_0x25e8a4=_0x3ed3de['filter'](_0x482996=>'attribute'==_0x482996['type']),_0x3433fd=_0x3ed3de['filter'](_0x555edb=>'insert'==_0x555edb['type']&&'$text'!=_0x555edb['name']),_0x5a9d34=_0x3ed3de['filter'](_0x2c2a16=>'remove'==_0x2c2a16['type']&&'$text'!=_0x2c2a16['name']);for(const _0x34ea55 of _0x25e8a4)_0x27b6bf['push']({'key':_0x34ea55['attributeKey'],'newValue':_0x34ea55['attributeNewValue'],'oldValue':_0x34ea55['attributeOldValue'],'range':Yt(_0x34ea55['range'],_0x3fa60d['model'])});for(const _0x17cc3f of _0x3433fd){const _0x727539=_0x5a9d34['find'](_0x5267b5=>_0x5267b5['position']['isEqual'](_0x17cc3f['position']));_0x727539&&_0x27b6bf['push']({'key':m,'newValue':_0x17cc3f['name'],'oldValue':_0x727539['name'],'range':_0x3fa60d['model']['createRangeOn'](_0x17cc3f['position']['nodeAfter'])});}return 0x0!=_0x27b6bf['length']&&this['_reduceExistingSuggestions'](_0x1183f6,_0x27b6bf);}['_processAttributeSuggestions'](_0x283f39){let _0x438551=!0x1;const _0x586e00=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e0912=>_0x4e0912['data']['newRange']&&_0x4e0912['name']['startsWith']('suggestion:attribute:'));for(const _0x20cad4 of _0x586e00){const {subType:_0x3df632,id:_0x1724a2}=this['_splitMarkerName'](_0x20cad4['name']),_0x1562f2=_0x3df632['split']('|')[0x0];for(const _0x2ba7fe of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2ba7fe['id']!=_0x1724a2&&'attribute'==_0x2ba7fe['type']&&_0x2ba7fe['data']&&_0x2ba7fe['data']['key']==_0x1562f2&&_0x2ba7fe['getFirstRange']()['isIntersecting'](_0x20cad4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2ba7fe,_0x20cad4['data']['newRange'],_0x283f39),_0x438551=!0x0);}return _0x438551;}['recordAttributeChanges'](_0xf82d05){this['_recordAttributeSuggestions']=!0x0,_0xf82d05();}['_isRegisteredAttribute'](_0x44d12e){const _0x4a4f95=this['_isBlockAttribute'](_0x44d12e),_0x9c4f7b=this['_isInlineAttribute'](_0x44d12e);return _0x4a4f95||_0x9c4f7b;}['_reduceExistingSuggestions'](_0x4691dd,_0x1a76da){if(0x0==_0x1a76da['length'])return!0x1;let _0x3e445c=!0x1;for(const _0x5c7a43 of _0x1a76da){const _0x2ddbbe=this['_findSuggestions'](_0x5c7a43['range'],'attribute')['filter'](_0x3d4bee=>!_0x3d4bee['meta']['isNextTo'])['map'](_0xe490b3=>_0xe490b3['suggestion']),_0x1e652c=_0x250706({'newValue':_0x5c7a43['newValue']});_0x2ddbbe['filter'](_0x5c9b05=>{const [_0x29bc12,_0x45455d]=_0x5c9b05['subType']['split']('|');return _0x29bc12==_0x5c7a43['key']&&_0x45455d!=_0x1e652c;})['forEach'](_0x50ae5c=>{this['_reduceSuggestionAttributeRange'](_0x50ae5c,_0x5c7a43['range'],_0x4691dd),_0x3e445c=!0x0;});}return _0x3e445c;}['_reduceSuggestionAttributeRange'](_0x25e2e3,_0x553033,_0x39d8bc){const _0x1cf657=_0x25e2e3['getFirstRange']()['getDifference'](_0x553033);0x0!==_0x1cf657['length']?0x1!==_0x1cf657['length']?this['_breakSuggestionMarker'](_0x25e2e3,_0x553033['start'],_0x553033['end']):this['_setSuggestionRange'](_0x25e2e3,_0x1cf657[0x0]):_0x39d8bc['removeMarker'](_0x25e2e3['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x24604e){this['_editor']=_0x24604e,this['_model']=_0x24604e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x12e8a9,_0x1d0258,_0x4a0815,_0xb89f2d,_0x212578,_0x2b43b0,_0x13a6ee){return new R(this['_model'],{'type':_0x12e8a9,'subType':_0x1d0258,'id':_0x4a0815,'originalSuggestionId':_0x13a6ee,'author':_0xb89f2d,'creator':_0xb89f2d,'attributes':_0x212578,'onAttributesChange':_0x2b43b0,'onAccept':(..._0x5d602c)=>this['getSuggestionCallback'](_0x12e8a9,_0x1d0258,'accept')(..._0x5d602c),'onDiscard':(..._0x4529fd)=>this['getSuggestionCallback'](_0x12e8a9,_0x1d0258,'discard')(..._0x4529fd)});}['registerCustomCallback'](_0x4fc66e,_0x30b107,_0x392495,_0x51dad5){const _0x598864=_0x4fc66e+':'+_0x30b107+':'+_0x392495;this['_customCallbacks']['set'](_0x598864,_0x51dad5);}['getSuggestionCallback'](_0x52a19a,_0x5cb6ba,_0x10c16a){const _0x10614b=_0x52a19a+':'+_0x5cb6ba+':'+_0x10c16a;return this['_customCallbacks']['get'](_0x10614b)||this['_defaultCallbacks']['get'](_0x52a19a+':'+_0x10c16a);}['_registerDefaultCallbacks'](){const _0x531228=()=>!0x1,_0x1f47b4=_0x3671db=>{_0x3671db['sort']((_0x34f242,_0x14f21b)=>_0x34f242['start']['isBefore'](_0x14f21b['start'])?0x1:-0x1),this['_model']['change'](_0x15fe6f=>{for(const _0xd90a71 of _0x3671db){let _0x17ed38;_0x17ed38=_0xd90a71['end']['isAtEnd']&&_0xd90a71['end']['parent']==_0xd90a71['start']['nodeAfter']?_0x15fe6f['createSelection'](_0xd90a71['start']['nodeAfter'],'on'):_0x15fe6f['createSelection'](_0xd90a71),this['_model']['deleteContent'](_0x17ed38,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2d88da=(_0x3d6d08,_0x2e3b04)=>{_0x2e3b04&&this['_model']['change'](_0x303b71=>{const {commandName:_0xf13282,commandParams:_0x4009bc=[]}=_0x2e3b04,_0x14c7b5=_0x3d6d08['map'](_0x2db44d=>(Kt(_0x2db44d)&&(_0x2db44d=this['_model']['createRange'](_0x2db44d['end'])),_0x2db44d))['filter'](_0x32d2d0=>'$graveyard'!==_0x32d2d0['root']['rootName']);if(_0x14c7b5['length']<0x1)return;const _0x8316d0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f8d71=>_0x4c47d7['fromRange'](_0x1f8d71));_0x303b71['setSelection'](_0x14c7b5);for(const _0x5932fa of this['_editor']['commands']['commands']())_0x5932fa['refresh']();_0x4009bc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf13282,..._0x4009bc);const _0x399354=_0x8316d0['filter'](_0x22ffef=>'$graveyard'!=_0x22ffef['root']['rootName']);_0x399354['length']>0x0&&_0x303b71['setSelection'](_0x399354);for(const _0xdbefd4 of _0x8316d0)_0xdbefd4['detach']();});},_0x3d6dc0=(_0x34a241,_0x1edb9f)=>0x1==_0x34a241['length']&&0x1==_0x1edb9f['length']&&_0x34a241[0x0]['end']['isEqual'](_0x1edb9f[0x0]['start']),_0x3258d1=(_0x372d30,_0x757532,_0x17083d,_0xd49ce7)=>te(_0x372d30,_0x757532,_0x17083d,_0xd49ce7)?[_0x372d30,_0x757532]:te(_0x757532,_0x372d30,_0xd49ce7,_0x17083d)?[_0x757532,_0x372d30]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x531228),this['_defaultCallbacks']['set']('insertion:discard',_0x1f47b4),this['_defaultCallbacks']['set']('insertion:join',_0x3d6dc0),this['_defaultCallbacks']['set']('insertion:chain',_0x3258d1),this['_defaultCallbacks']['set']('deletion:accept',_0x1f47b4),this['_defaultCallbacks']['set']('deletion:discard',_0x531228),this['_defaultCallbacks']['set']('deletion:join',_0x3d6dc0),this['_defaultCallbacks']['set']('deletion:chain',_0x3258d1),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d88da),this['_defaultCallbacks']['set']('formatInline:discard',_0x531228),this['_defaultCallbacks']['set']('formatInline:join',_0x3d6dc0),this['_defaultCallbacks']['set']('formatInline:chain',_0x531228),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d88da),this['_defaultCallbacks']['set']('formatBlock:discard',_0x531228),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d6dc0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x531228),this['_defaultCallbacks']['set']('attribute:accept',_0x531228),this['_defaultCallbacks']['set']('attribute:discard',(_0x1d5c64,_0x4ea561)=>{if(!_0x4ea561)return;const _0xe28551=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5a054f=>{if(_0x4ea561['key']==m)for(const _0x5e8e23 of _0x1d5c64){const _0x41c300=_0x5e8e23['start']['nodeAfter'],_0x4c6672=_0x4ea561['oldValue'];_0x5a054f['rename'](_0x41c300,_0x4c6672);}else{if(_0xe28551['_isBlockAttribute'](_0x4ea561['key'])){for(const _0x4c850d of _0x1d5c64)void 0x0!==_0x4ea561['oldValue']?_0x5a054f['setAttribute'](_0x4ea561['key'],_0x4ea561['oldValue'],_0x4c850d['start']['nodeAfter']):_0x5a054f['removeAttribute'](_0x4ea561['key'],_0x4c850d['start']['nodeAfter']);}else{for(const _0x1573e6 of _0x1d5c64)_0x4ea561['oldValue']?_0x5a054f['setAttribute'](_0x4ea561['key'],_0x4ea561['oldValue'],_0x1573e6):_0x5a054f['removeAttribute'](_0x4ea561['key'],_0x1573e6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d6dc0);}}function Jt(_0x13a20f,_0x446650,_0x13268a){for(const _0x368f0d of _0x446650['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x368f0d['root']==_0x368f0d)return!0x1;if(!_0x13268a['containsItem'](_0x368f0d))return!0x1;if(_0x13a20f['isObject'](_0x368f0d)||_0x13a20f['isLimit'](_0x368f0d))return!0x0;}return!0x1;}function Kt(_0x21ba89){return _0x21ba89['end']['parent']==_0x21ba89['start']['nodeAfter']&&_0x21ba89['end']['isAtStart'];}function Ht(_0x157c88,_0x4a3661,_0x30c6e3,_0x6d5428){const _0x2d9704=_0x5a408a=>!_0x5a408a['item']['is']('$textProxy')&&!_0x6d5428['isObject'](_0x5a408a['item']),_0x4029c9=_0x157c88['start']['getLastMatchingPosition'](_0x2d9704),_0x13b396=_0x157c88['end']['getLastMatchingPosition'](_0x2d9704,{'direction':'backward'});return(!_0x157c88['start']['isEqual'](_0x4029c9)||!_0x157c88['end']['isEqual'](_0x13b396))&&(_0x4029c9['isBefore'](_0x13b396)?_0x30c6e3['updateMarker'](_0x4a3661,{'range':_0x30c6e3['createRange'](_0x4029c9,_0x13b396)}):_0x30c6e3['removeMarker'](_0x4a3661),!0x0);}function Wt(_0x56c854){return _0x250706(_0x56c854);}function qt(_0x31cc0f){const _0x1937b8=_0x31cc0f['start']['nodeAfter'];return _0x1937b8&&_0x1937b8['is']('element');}function zt(_0x2ca7cd){return Kt(_0x2ca7cd)||function(_0x3b2336){return _0x3b2336['start']['parent']==_0x3b2336['end']['nodeBefore']&&_0x3b2336['start']['isAtEnd'];}(_0x2ca7cd);}function Qt(_0x203097,_0x447c6f){try{const _0x345ee4=_0x203097['getRange']();for(const _0x903dd of _0x447c6f)if(_0x203097!==_0x903dd&&_0x345ee4&&_0x345ee4['isIntersecting'](_0x903dd['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x23a951,_0x33a985){const _0x2c08ad=_0x23a951['end']['nodeBefore'];if(_0x2c08ad&&_0x2c08ad['is']('element')&&_0x33a985['schema']['isBlock'](_0x2c08ad)&&!_0x33a985['schema']['isObject'](_0x2c08ad)){const _0x5ed4e3=_0x33a985['createPositionAt'](_0x2c08ad,'end');return _0x33a985['createRange'](_0x23a951['start'],_0x5ed4e3);}return _0x23a951;}function Yt(_0x43b825,_0x22ce8b){return null==_0x43b825['end']['nodeBefore']&&_0x43b825['end']['parent']==_0x43b825['start']['nodeAfter']?Zt(_0x43b825['start']['nodeAfter'],_0x22ce8b):_0x43b825;}function Zt(_0xffcaee,_0x53ac2a){const _0x32d901=_0x53ac2a['schema']['isObject'](_0xffcaee)||_0x53ac2a['schema']['isSelectable'](_0xffcaee);return _0x53ac2a['createRange'](_0x53ac2a['createPositionAt'](_0xffcaee,'before'),_0x32d901?_0x53ac2a['createPositionAfter'](_0xffcaee):_0x53ac2a['createPositionAt'](_0xffcaee,'end'));}function te(_0x252161,_0x3849f1,_0x5dd001,_0x1b05b7){return!!ee(_0x252161,_0x3849f1)&&_0x5dd001['end']['isEqual'](_0x1b05b7['start']);}function ee(_0x46d132,_0x34c17a){if(!_0x46d132['_isDataLoaded']||!_0x34c17a['_isDataLoaded'])return!0x1;const _0xa6d521=new Set(Object['keys'](_0x46d132['attributes'])),_0x41dd2f=new Set(Object['keys'](_0x34c17a['attributes']));if(_0xa6d521['delete']('groupId'),_0x41dd2f['delete']('groupId'),0x0==_0xa6d521['size']&&0x0==_0x41dd2f['size'])return!0x0;if(_0xa6d521['size']!=_0x41dd2f['size'])return!0x1;const _0x1ad203={..._0x46d132['attributes']},_0x33b382={..._0x34c17a['attributes']};return delete _0x1ad203['groupId'],delete _0x33b382['groupId'],JSON['stringify'](_0x1ad203)==JSON['stringify'](_0x33b382);}function ie(_0x34c69b,_0x3a85e8){const _0x390e1d=ne(_0x34c69b['attributes']),_0x196223=ne(_0x3a85e8);if(!_0x34c69b['_isDataLoaded'])return!0x1;for(const _0xe2af6c of Object['keys'](_0x196223))if(!_0x313a6c(_0x390e1d[_0xe2af6c],_0x196223[_0xe2af6c]))return!0x1;return!0x0;}function ne(_0x1fdb7e){const _0x12a763=Object['assign']({},_0x1fdb7e);return delete _0x12a763['skipNestingCheck'],delete _0x12a763['tablePasteChainId'],_0x12a763;}function se(_0x594757){return _0x594757['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4426f7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x35017b,_0x5e889c,_0x376e81,_0x1e4df4){super(),this['model']=_0x5e889c,this['view']=_0x376e81,this['commentThreadController']=_0x1e4df4,this['_editor']=_0x35017b,this['_acceptCommand']=_0x35017b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x35017b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1c04b3,_0x5b7860)=>_0x1c04b3||_0x5b7860),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e9364=>_0x2e9364&&this['_editor']['model']['canEditAt'](_0x5e889c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4d01f0=>_0x4d01f0&&this['_editor']['model']['canEditAt'](_0x5e889c['getRanges']())),this['_pendingAction']=null,_0x376e81['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x376e81,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x376e81,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x376e81,'change:isDirty',()=>{_0x376e81['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 _0x37a91b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x37a91b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1a9b8b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50abc9,_0x4477bd,_0x511c14,_0x5052bc){super(_0x50abc9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x564bb6(_0x50abc9,o(_0x50abc9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4477bd['authoredAt']),this['bind']('authoredAt')['to'](_0x4477bd),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',_0x4477bd,'authoredAt',this,'descriptionParts',(_0x462eda,_0x5481c6,_0x18928f)=>{const _0x28c29e=_0x18928f['map'](_0x169171=>ls(_0x169171['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x462eda-0x1,_0x4477bd['author']['name'],_0x5481c6?_0x5052bc['formatDateTime'](_0x5481c6):'',new DOMParser()['parseFromString'](_0x28c29e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x124ccd(),this['focusTracker']=new _0x57db96(),this['keystrokes']=new _0x23845a(),this['focusCycler']=new _0x3897c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1cded8=>_0x1cded8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4477bd,this['_localUser']=_0x511c14,this['_config']=_0x5052bc,_0x5052bc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3c22e6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30b7b2}=this['_config'];this['commentsListView']=new _0x30b7b2(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',_0x1ea3c2=>_0x1ea3c2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x56a4e3,_0x2a105e)=>_0x56a4e3||!!_0x2a105e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x33f4fc}=this['_config'],_0x4c4701=new _0x33f4fc(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x38c683=_0x4c4701['commentInputView'];return _0x4c4701['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x38c683,'value',(_0x395206,_0x13c9cf,_0x5118f9)=>!!_0x5118f9||_0x395206&&!_0x13c9cf),_0x38c683['on']('submit',(_0x57952b,_0x5a3530)=>{this['fire']('addComment',_0x5a3530),_0x38c683['editor']['setData']('');}),_0x38c683['on']('cancel',()=>this['focus']()),_0x38c683['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c4701;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x53cc71,_0x33fa8a,_0x5261de,_0xc8dcf7){super(_0x53cc71,_0x33fa8a,_0x5261de,_0xc8dcf7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x29d4bb=>_0x29d4bb&&_0x29d4bb[0x0]?_0x29d4bb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x37e6e9,_0x104df2)=>{let _0x16b920='';for(const _0x409915 of _0x37e6e9)_0x16b920+='<p>'+ls(_0x409915['content'],_0x409915['color'])+'</p>';return _0x104df2?_0x16b920:_0x4146b1(_0x16b920,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xc8dcf7['SuggestionView'](_0x53cc71,_0x33fa8a,{'formatDateTime':_0xc8dcf7['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 _0xb50f8f=this['bindTemplate'],_0xd4e94f=[this['suggestionView']];return this['commentsListView']&&_0xd4e94f['push'](this['commentsListView']),this['commentThreadInputView']&&_0xd4e94f['push'](this['commentThreadInputView']),_0xd4e94f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xb50f8f['if']('isActive','ck-suggestion-wrapper--active'),_0xb50f8f['to']('type',_0x2ab68b=>'ck-suggestion-'+_0x2ab68b),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':_0xb50f8f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xd4e94f};}['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 Le extends _0x1a9b8b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x141e26,_0x3d4a8a,_0x458020){super(_0x141e26),this['_model']=_0x3d4a8a,this['_config']=_0x458020,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3d4a8a),this['acceptButton']=this['_createButton'](o(_0x141e26,'Accept\x20suggestion'),_0x4b5f2c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x141e26,'Discard\x20suggestion'),_0x531dac,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x199c5c(_0x141e26,_0x3d4a8a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x124ccd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x57db96(),this['keystrokes']=new _0x23845a(),this['focusCycler']=new _0x3897c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4121d3=>_0x4121d3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x736be5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x736be5['innerHTML']=this['description'],this['on']('change:description',(_0x1a6e94,_0x303586,_0x4cbee7)=>{_0x736be5['innerHTML']=_0x4cbee7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xf8b95c=this['bindTemplate'],_0x3635b7=[{'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':_0xf8b95c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xf8b95c['to']('authoredAt',_0x2a2f17=>this['_config']['formatDateTime'](_0x2a2f17))}]}]},{'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']&&_0x3635b7['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':_0x3635b7}]};}['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'](_0x55997d,_0x310a4c,_0x6ab086,_0x2ef896,_0x574269){const _0x186965=new _0x410860(this['locale']);return _0x186965['set']({'label':_0x55997d,'icon':_0x310a4c,'tooltip':!0x0,'tooltipPosition':_0x574269}),_0x186965['extendTemplate']({'attributes':{'class':_0x6ab086}}),_0x186965['on']('execute',()=>{this['fire'](_0x2ef896,this['_model']['id']);}),_0x186965;}['_setupKeyboardNavigation'](){const _0x269b2f=this['element'];this['keystrokes']['listenTo'](_0x269b2f);for(const _0x25aa0e of this['focusables'])this['focusTracker']['add'](_0x25aa0e['element']),this['keystrokes']['listenTo'](_0x25aa0e['element']);this['keystrokes']['set']('enter',(_0x297935,_0x331f32)=>{_0x269b2f===_0x297935['target']&&(this['focusCycler']['focusFirst'](),_0x331f32());}),this['keystrokes']['set']('esc',(_0x32acc3,_0x43755c)=>{_0x269b2f!==_0x32acc3['target']&&(this['focus'](),_0x43755c());});}}class u extends _0x391ea2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5616f9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36b749){super(_0x36b749),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1e8ef7=this['editor']['config'];_0x1e8ef7['define']('trackChanges.SuggestionThreadView',Te),_0x1e8ef7['define']('trackChanges.SuggestionView',Le),_0x1e8ef7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1e8ef7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33b7ed,_0x2af337){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14df13,_0x48bfaf]of this['_handleControllerBuffer']){const _0x30a3a2=this['_suggestionToController']['has'](_0x14df13);_0x30a3a2||_0x48bfaf?_0x30a3a2&&_0x48bfaf&&this['_destroyController'](_0x14df13):this['_initializeController'](_0x14df13);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33b7ed,_0x2af337);}['init'](){const _0x47201d=this['editor'],_0x4b8cce=_0x47201d['plugins']['get']('TrackChangesEditing'),_0x13cd45=_0x47201d['plugins']['get']('Annotations'),_0xa01767=_0x47201d['plugins']['get']('EditorAnnotations'),_0x2b2df9=_0x47201d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xa01767['addSourceCollector'](()=>{const _0x3232db=[];for(const [_0x409e07,_0x12fce7]of Array['from'](this['_suggestionToController'])){const _0x232535=_0x409e07['getAllAdjacentSuggestions'](),_0x30524c=[];for(const _0x335772 of _0x232535){if(!_0x335772['isInContent'])continue;if(_0x335772['isMultiRange']){_0x30524c['push'](..._0x335772['getRanges']());continue;}const _0x3744aa=_0x335772['getFirstRange']();if(_0x30524c['length']>0x0){const _0x47a52c=_0x30524c[0x0]['getJoined'](_0x3744aa);if(_0x47a52c){_0x30524c[0x0]=_0x47a52c;continue;}}_0x30524c['push'](_0x3744aa);}_0x3232db['push']([_0x12fce7['view'],_0x30524c]);}return _0x3232db;}),this['listenTo'](_0x4b8cce,'suggestionLoaded',(_0x54e612,_0x3f3c69)=>{this['listenTo'](_0x3f3c69,'change:previous',(_0x2ec48f,_0x4a082f,_0x3f20b4,_0x3284d9)=>{_0x3f3c69['isInContent']&&(null==_0x3f20b4?(this['_updateController'](_0x3284d9['head']),this['_handleSuggestionControllerDelayed'](_0x3f3c69,!0x1)):(this['_updateController'](_0x3f20b4['head']),null==_0x3284d9&&this['_handleSuggestionControllerDelayed'](_0x3f3c69,!0x0)));}),null!==_0x3f3c69['previous']?this['_updateController'](_0x3f3c69['head']):this['_handleSuggestionControllerDelayed'](_0x3f3c69,!0x1);}),this['listenTo'](_0x4b8cce,'suggestionUnloaded',(_0x4e18dd,_0x29a062,_0x13f31f)=>{this['stopListening'](_0x29a062,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29a062),this['_suggestionToController']['has'](_0x29a062)&&this['_destroyController'](_0x29a062),_0x13f31f&&this['_updateController'](_0x13f31f['head']);}),this['listenTo'](_0x4b8cce,'suggestionChanged',(_0x26f6a2,_0x3dbab1)=>{this['_updateController'](_0x3dbab1);}),this['listenTo'](_0x13cd45,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2b2df9,'addComment',(_0x45a402,{threadId:_0x15a0e1,isFromAdapter:_0x2a6b67})=>{if(_0x2a6b67||!_0x4b8cce['hasSuggestion'](_0x15a0e1))return;const _0x544ad3=_0x4b8cce['getSuggestion'](_0x15a0e1);this['_suggestionToController']['get'](_0x544ad3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x538486=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25e4a2;for(const _0x391b36 in _0x538486){const _0x56dd57=_0x391b36,_0x546bc0=_0x538486[_0x56dd57];if('trackChangesLicenseKeyValid'==_0x546bc0||'trackChangesLicenseKeyInvalid'==_0x546bc0||'trackChangesLicenseKeyExpired'==_0x546bc0||'trackChangesLicenseKeyDomainLimit'==_0x546bc0||'trackChangesLicenseKeyNotAllowed'==_0x546bc0||'trackChangesLicenseKeyEvaluationLimit'==_0x546bc0||'trackChangesLicenseKeyTrialLimit'==_0x546bc0||'trackChangesLicenseKeyUsageLimit'==_0x546bc0){delete _0x538486[_0x56dd57],_0x25e4a2=_0x546bc0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x25e4a2&&_0x538486['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x25e4a2&&_0x538486['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x25e4a2&&_0x538486['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x25e4a2&&_0x538486['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x411851){const _0x48084b=this['_suggestionToController']['get'](_0x411851);if(!_0x48084b)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x48084b['view'])||null;}['getSuggestionForAnnotation'](_0x28cdb8){const _0x4c17fc=this['_viewToController']['get'](_0x28cdb8['innerView']);return _0x4c17fc?_0x4c17fc['model']:null;}['_refreshActiveMarkers'](){const _0x4552cb=this['editor']['plugins']['get']('Annotations'),_0x14d3bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x291e7a=Array['from'](_0x4552cb['activeAnnotations'],_0x2cf94a=>_0x2cf94a['innerView'])['filter'](_0x9ee2b9=>this['_viewToController']['has'](_0x9ee2b9)),_0x18dfce=[];for(const _0x4bf8a5 of _0x291e7a){const _0x247aa9=this['_viewToController']['get'](_0x4bf8a5)['model']['getAllAdjacentSuggestions']();_0x18dfce['push'](..._0x247aa9['reduce']((_0x2f7dfc,_0x3eea65)=>[..._0x2f7dfc,..._0x3eea65['getMarkerNames']()],[]));}_0x14d3bc['activeMarkers']=_0x18dfce;}['_addUIComponentsToFactory'](){const _0x4d0714=this['editor'],_0x20b1d9=_0x4d0714['locale'],_0x5b0ed2=o(_0x20b1d9,'Track\x20changes'),_0x542ca2=new _0x2354f7([{'type':'switchbutton','model':new _0xeebd88({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b0ed2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4d0714['plugins']['has']('TrackChangesPreview')&&_0x542ca2['addMany']([{'type':'separator'},{'type':'button','model':new _0xeebd88({'withText':!0x0,'label':o(_0x20b1d9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5b7975 of _0x542ca2)if(ve(_0x5b7975)){const _0x58e608=_0x4d0714['commands']['get'](_0x5b7975['model']['commandName']);_0x5b7975['model']['bind']('isOn','isEnabled')['to'](_0x58e608,'value','isEnabled');}_0x4d0714['ui']['componentFactory']['add']('trackChanges',_0xdfe27d=>this['_createToolbarButton'](_0xdfe27d,_0x542ca2,_0x5b0ed2)),_0x4d0714['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2dc7b7=>this['_createMenuBarMenu'](_0x2dc7b7,_0x542ca2,_0x5b0ed2));}['_createToolbarButton'](_0x41eda2,_0x17c08e,_0x3b0457){const _0x2ecaa2=_0x3d2fa5(_0x41eda2,_0x126eeb),_0xf9607d=this['editor']['commands']['get']('trackChanges');_0x2ecaa2['buttonView']['set']({'tooltip':_0x3b0457,'label':_0x3b0457,'icon':_0x46ba60}),_0x2ecaa2['buttonView']['bind']('isOn')['to'](_0xf9607d,'value'),_0x2ecaa2['buttonView']['on']('execute',()=>{_0xf9607d['execute'](),this['editor']['editing']['view']['focus']();}),_0x5c8048(_0x2ecaa2,_0x17c08e,{'role':'menu'});const _0x2d4bde=[];for(const _0x2d5057 of _0x17c08e)ve(_0x2d5057)&&_0x2d4bde['push'](this['editor']['commands']['get'](_0x2d5057['model']['commandName']));const _0x3ed598=_0x2ecaa2['buttonView'];return _0x3ed598['actionView']['unbind']('isEnabled'),_0x3ed598['arrowView']['unbind']('isEnabled'),_0x3ed598['actionView']['bind']('isEnabled')['to'](_0xf9607d,'isEnabled'),_0x3ed598['arrowView']['bind']('isEnabled')['toMany'](_0x2d4bde,'isEnabled',(..._0x5d80b3)=>_0x5d80b3['some'](_0x38cded=>_0x38cded)),_0x2ecaa2['on']('execute',_0x320e33=>{this['editor']['execute'](_0x320e33['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ecaa2;}['_createMenuBarMenu'](_0x462c8e,_0x1bdaa5,_0x45c586){const _0x1eaf97=new _0x283ea5(_0x462c8e),_0x4c788b=this['editor']['commands']['get']('trackChanges');_0x1eaf97['buttonView']['set']({'label':_0x45c586,'icon':_0x46ba60});const _0x517f21=new _0x8587c7(_0x462c8e);for(const _0x5353fa of _0x1bdaa5){if('separator'==_0x5353fa['type']){_0x517f21['items']['add'](new _0x5bc23c(_0x462c8e));continue;}const _0x2a9649=new _0x1e5e87(_0x462c8e,_0x1eaf97),_0x2fe556=new _0x57ad30(_0x462c8e),_0x4461b0=_0x5353fa['model'];_0x2fe556['bind'](...Object['keys'](_0x4461b0))['to'](_0x4461b0),_0x2fe556['delegate']('execute')['to'](_0x1eaf97),_0x2fe556['on']('execute',()=>{this['editor']['execute'](_0x4461b0['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a9649['children']['add'](_0x2fe556),_0x517f21['items']['add'](_0x2a9649);}return _0x1eaf97['bind']('isEnabled')['to'](_0x4c788b,'isEnabled'),_0x1eaf97['panelView']['children']['add'](_0x517f21),_0x1eaf97;}['_initializeController'](_0x3d0504){const _0x242c61=this['editor'],_0xbe0337=_0x242c61['config'],_0x2044fa=_0x242c61['plugins']['get']('Annotations'),_0x4fd3a0=_0x242c61['plugins']['get']('CommentsRepository'),_0x47714f=_0x242c61['plugins']['get']('EditorAnnotations'),_0x508eac=_0x242c61['plugins']['get'](_0x5616f9)['me'],_0x45a2ff=_0xbe0337['get']('trackChanges')['SuggestionThreadView'],_0x551af9=_0xbe0337['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1eba67,CommentThreadInputView:_0xc4e89}=_0x242c61['plugins']['get']('CommentsUI');let _0x5524a8,_0x3a2d18,_0x4a8af6;this['_annotationViews']['has'](_0x3d0504['id'])?(_0x3a2d18=this['_annotationViews']['get'](_0x3d0504['id']),_0x5524a8=_0x3a2d18['mainView']):(_0x5524a8=new _0x45a2ff(_0x242c61['locale'],_0x3d0504,_0x508eac,{'disableComments':this['_disableComments'],'editorConfig':{..._0xbe0337['get']('comments.editorConfig'),'licenseKey':_0xbe0337['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xbe0337['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbe0337['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbe0337['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4cb554(_0xbe0337['get']('locale'),_0x242c61['locale']),'CommentView':_0xbe0337['get']('comments')['CommentView'],'CommentsListView':_0x1eba67,'CommentThreadInputView':_0xc4e89,'SuggestionView':_0x551af9}),_0x5524a8['suggestionView']['acceptButton']['on']('execute',()=>{_0x242c61['editing']['view']['focus']();}),_0x5524a8['suggestionView']['discardButton']['on']('execute',()=>{_0x242c61['editing']['view']['focus']();}),_0x3a2d18=_0x2044fa['createAnnotationView'](this['editor']['locale'],_0x5524a8),_0x3a2d18['bind']('isDirty')['to'](_0x5524a8,'isDirty'),_0x3a2d18['bind']('length')['to'](_0x5524a8),_0x3a2d18['bind']('type')['to'](_0x5524a8,'type',_0x2df9b0=>'suggestion-'+_0x2df9b0),_0x5524a8['on']('escape',()=>{_0x4a8af6['fire']('escape');}),this['_annotationViews']['set'](_0x3d0504['id'],_0x3a2d18));const _0x5e2bc1=_0x4fd3a0['createCommentThreadController'](_0x3d0504['commentThread'],_0x5524a8),_0x2d5a5f=new be(_0x242c61,_0x3d0504,_0x5524a8,_0x5e2bc1),_0x5d6fa3=_0x3d0504['getAllAdjacentSuggestions']()['filter'](_0x1eb201=>_0x1eb201['isInContent']);_0x5524a8['descriptionParts']=_0x242c61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5d6fa3),this['_suggestionToController']['set'](_0x3d0504,_0x2d5a5f),this['_viewToController']['set'](_0x5524a8,_0x2d5a5f);const _0x471677=()=>{const _0x29607d=[],_0x407394=_0x3d0504['getAllAdjacentSuggestions']()['filter'](_0xc90be2=>_0xc90be2['isInContent']);for(const _0x435b08 of _0x407394)_0x29607d['push'](..._0x435b08['getMarkers']());return _0x1487e7(_0x242c61['editing'],_0x29607d);};_0x4a8af6=_0x2044fa['createAnnotation']({'view':_0x3a2d18,'target':_0x471677,'type':()=>'suggestion-'+_0x2d5a5f['view']['type'],'isVisible':!!_0x471677()}),_0x4fd3a0['_bindAnnotationToEditors'](_0x5524a8,_0x4a8af6),_0x2044fa['add'](_0x4a8af6),_0x47714f['registerAnnotation'](_0x4a8af6);}['_destroyController'](_0x3446dd){const _0x40f9c9=this['editor']['plugins']['get']('CommentsRepository'),_0x7e978=this['editor']['plugins']['get']('Annotations'),_0x3b60be=this['_suggestionToController']['get'](_0x3446dd),_0x3c4711=_0x3b60be['view'],_0x2f2b74=_0x7e978['getByInnerView'](_0x3c4711);_0x40f9c9['_unbindEditors'](_0x3c4711),_0x2f2b74&&_0x7e978['remove'](_0x2f2b74),this['_suggestionToController']['delete'](_0x3446dd),this['_viewToController']['delete'](_0x3c4711),_0x3b60be['destroy']();}['_updateController'](_0x265a99){if(!_0x265a99['isInContent']||!this['_suggestionToController']['has'](_0x265a99))return;const _0x6c95c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b958b=this['_suggestionToController']['get'](_0x265a99),_0x1ce270=_0x265a99['getAllAdjacentSuggestions']();_0x5b958b['view']['descriptionParts']=_0x6c95c8['descriptionFactory']['getDescriptions'](_0x1ce270);}['destroy'](){for(const _0x1ffb06 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ffb06);for(const _0x52ebf0 of this['_annotationViews']['values']())_0x52ebf0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x4ee8ac){return'model'in _0x4ee8ac;}class Ve extends _0x391ea2{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1c4fc3){this['editor']['plugins']['get'](d)['adapter']=_0x1c4fc3;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x20b86a){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x20b86a);}['getSuggestions']({skipNotAttached:_0x16af5e=!0x1,toJSON:_0x5726c6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x16af5e,'toJSON':_0x5726c6});}['getSuggestion'](_0x449a84){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x449a84);}}const p=['Pagination'];class ce extends _0x391ea2{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x436df1=this['editor'];if(_0x436df1['config']['define']('trackChangesData.editorCreator',_0x2c28d2=>{const _0x4a2c85=_0x436df1['model']['document']['getRootNames']()['reduce']((_0x532b6f,_0x3c136e)=>(_0x532b6f[_0x3c136e]='',_0x532b6f),{});return _0x436df1['constructor']['create'](_0x4a2c85,_0x2c28d2);}),'function'!=typeof _0x436df1['config']['get']('trackChangesData')['editorCreator'])throw new _0x4fb79c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xd6cff8){return P(this['editor'],!0x0,_0xd6cff8);}['getDataWithDiscardedSuggestions'](_0x51c335){return P(this['editor'],!0x1,_0x51c335);}}class ze extends _0x391ea2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41e0c6){function _0x4751e3(_0x5c81ff){return _0x5c81ff['map'](_0x4a53b8=>String['fromCharCode'](_0x4a53b8))['join']('');}super(_0x41e0c6),this['result']='end',_0x41e0c6[_0x4751e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4751e3([0x76,0x69,0x65,0x77])][_0x4751e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4751e3([0x61,0x75,0x74,0x6f]),_0x41e0c6[_0x4751e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4751e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4751e3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4751e3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4751e3([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 Ke(_0x10cfba){return void 0x0!==_0x10cfba['getRootsAttributes'];}async function P(_0x545253,_0x32ae9a,_0x49e373){const _0x4f999c=_0x730548(_0x545253,p);_0x4f999c['plugins']['push'](d,ze),_0x4f999c['rootsAttributes']=Ke(_0x545253)?_0x545253['getRootsAttributes']():void 0x0;const _0x41c9d6=document['createDocumentFragment'](),_0x19cd6c=_0x545253['config']['get']('trackChangesData')['editorCreator'],_0x3b64a9=await _0x19cd6c(_0x4f999c,()=>function(_0x104a0b){const _0xb96866=document['createElement']('div');return _0x104a0b['appendChild'](_0xb96866),_0xb96866;}(_0x41c9d6));!function(_0x2c70dc,_0x48c327){const _0x27f1d0=_0x2c70dc['model']['document']['getRootNames']()['reduce']((_0x42e9ac,_0x159ea6)=>(_0x42e9ac[_0x159ea6]=_0x2c70dc['data']['get']({'rootName':_0x159ea6}),_0x42e9ac),{}),_0x2c097c=_0x2c70dc['plugins']['get']('Users')['users']['map'](_0x13a66a=>({'id':_0x13a66a['id'],'name':_0x13a66a['name']})),_0x71d08f=_0x2c70dc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e98d7=_0x2c70dc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1654c4=_0x48c327['plugins']['get']('Users'),_0x5a099a=_0x48c327['plugins']['get']('TrackChangesEditing'),_0x513aac=_0x48c327['plugins']['get']('CommentsRepository');for(const _0x5f2a23 of _0x513aac['getCommentThreads']())_0x5f2a23['remove']();for(const _0x4a4132 of _0x2c097c)_0x1654c4['getUser'](_0x4a4132['id'])||_0x1654c4['addUser'](_0x4a4132);_0x1654c4['me']||_0x1654c4['useAnonymousUser']();for(const _0xb2975a of _0x4e98d7)_0x513aac['addCommentThread'](_0xb2975a);for(const _0x5e7e0a of _0x71d08f)_0x5a099a['addSuggestionData'](_0x5e7e0a);_0x48c327['data']['set'](_0x27f1d0);}(_0x545253,_0x3b64a9),_0x3b64a9['execute'](_0x32ae9a?'acceptAllSuggestions':'discardAllSuggestions');const _0x777e0=Ke(_0x3b64a9)?_0x3b64a9['getFullData'](_0x49e373):_0x3b64a9['data']['get'](_0x49e373);return await _0x3b64a9['destroy'](),_0x777e0;}class _e extends _0x1a9b8b{['options'];constructor(_0x1f47cc,_0x46412e){super(_0x1f47cc),this['options']=_0x46412e,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'](_0x2b069,_0x203454){if(!this['element'])return;const _0x543d77=[];for(const [_0x50a708,_0x471a9a]of _0x2b069){const _0x31164b=document['createElement']('div');_0x31164b['setAttribute']('data-ck-root-name',_0x50a708),_0x31164b['className']=_0x471a9a['classes']+'\x20ck-track-changes-preview__root-container',_0x31164b['innerHTML']=_0x471a9a['content'],_0x543d77['push'](_0x31164b);}_0x203454(this['element'],_0x543d77),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x6d5462{constructor(_0x170bb2){super(_0x170bb2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5a5f85=this['editor'],_0x24c3c8=_0x5a5f85['locale'],_0x5069b4=_0x5a5f85['plugins']['get']('Dialog');let _0x11c328;const _0x181754=function(_0x2fdf72){const _0x81c504={};if('editables'in _0x2fdf72['ui']['view']){for(const [_0x52771,_0x3f0cca]of Object['entries'](_0x2fdf72['ui']['view']['editables']))_0x81c504[_0x52771]=_0x3f0cca['element'];}else _0x81c504[_0x2fdf72['model']['document']['getRootNames']()[0x0]]=_0x2fdf72['ui']['view']['editable']['element'];return _0x81c504;}(_0x5a5f85),_0x2b6bac=function(_0x185ae7){let _0x318e9d=0x0;for(const _0x4e28bf of Object['values'](_0x185ae7))_0x318e9d=Math['max'](_0x318e9d,_0x4e28bf['getBoundingClientRect']()['width']);let _0x36203b=0x0;for(const _0x1da813 of Object['values'](_0x185ae7))_0x36203b+=_0x1da813['getBoundingClientRect']()['height'];const _0xb769cc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x14ef43=Math['min'](_0x36203b,_0xb769cc);return{'width':_0x318e9d,'height':_0x14ef43};}(_0x181754);_0x5069b4['show']({'id':'finalContentPreview','title':o(_0x24c3c8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x24c3c8,{'dialogRects':_0x2b6bac}),'onHide':()=>{_0x11c328['detachFromDom']();},'onShow':()=>{_0x5a5f85['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x48eec7=>{const _0xe16d47=this['_standarizeRootsData'](_0x48eec7,_0x5a5f85,_0x181754);_0x5069b4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xe16d47,_0x5a5f85['config']['get']('trackChanges.preview.renderFunction'));}),_0x11c328=new _0x382327(_0x24c3c8,[_0x5069b4['view']]),_0x11c328['attachToDom'](),_0x11c328['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5a5f85['once']('destroy',()=>{_0x11c328['detachFromDom']();});const _0x5e1c8b=_0x5069b4['view']['headerView']['class'];_0x5069b4['view']['headerView']['class']=_0x5e1c8b?_0x5e1c8b+'\x20ck-reset_all':'ck-reset_all',_0x5069b4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5069b4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x29b691=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f2538=_0x29b691['previewMode'],_0x5dcf4c={};if('$labels'===_0x3f2538){for(const _0x21430b of _0x29b691['getMergeFieldsIds']())_0x5dcf4c[_0x21430b]=_0x29b691['getLabel'](_0x21430b)||_0x21430b;}else{const _0x593d39='$defaultValues'===_0x3f2538?_0x29b691['getDefaultValues']():_0x29b691['getDataSetValues'](_0x3f2538,!0x0);for(const _0x58398c of Object['entries'](_0x593d39)){const [_0x1be80f,_0x1be87b]=_0x58398c;_0x5dcf4c[_0x1be80f]=null!==_0x1be87b?_0x1be87b:_0x29b691['getLabel'](_0x1be80f)||_0x1be80f;}}return{'mergeFieldsData':_0x5dcf4c};}['_standarizeRootsData'](_0x475b72,_0x2e013c,_0x56a76){let _0x477bcf;if('string'==typeof _0x475b72){const _0x5d843c=_0x2e013c['model']['document']['getRootNames']()[0x0];_0x477bcf={[_0x5d843c]:_0x475b72};}else _0x477bcf=_0x475b72;const _0x34436b=this['_fixMediaEmbeds'](_0x477bcf,_0x2e013c),_0xfd5122=function(_0x8d7a29,_0x1096a1){for(const [_0x4d89d8,_0xc5e6af]of _0x8d7a29)_0xc5e6af['classes']=_0x1096a1[_0x4d89d8]['classList']['value']['replace']('ck-focused','');return _0x8d7a29;}(this['_sortRoots'](_0x2e013c)['reduce']((_0x7e3347,_0x4dec3b)=>(_0x7e3347['push']([_0x4dec3b,{'content':_0x34436b[_0x4dec3b],'classes':''}]),_0x7e3347),[]),_0x56a76);return _0xfd5122;}['_fixMediaEmbeds'](_0x35f6dd,_0x2658a1){if(!_0x2658a1['plugins']['has']('MediaEmbedEditing'))return _0x35f6dd;const _0x412b15=_0x2658a1['plugins']['get']('MediaEmbedEditing');for(const [_0x27a95c,_0x99834a]of Object['entries'](_0x35f6dd)){const _0x1d3701=document['createElement']('div');_0x1d3701['innerHTML']=_0x99834a,(_0x1d3701['querySelectorAll']('figure.media')['forEach'](_0x325c25=>{const _0x924427=_0x325c25['querySelector']('oembed');if(_0x924427){const _0x3bdfd1=_0x924427['getAttribute']('url');if(_0x3bdfd1){const _0x4de67d=_0x412b15['registry']['getMediaViewElement'](new _0x46bdde(_0x2658a1['editing']['view']['document']),_0x3bdfd1,{'elementName':'','renderForEditingView':!0x0}),_0x3b81f4=document['createElement']('div');_0x3b81f4['classList']['add']('ck-media__wrapper'),_0x4de67d['render'](_0x3b81f4,_0x2658a1['editing']['view']['domConverter']),_0x924427['replaceWith'](_0x3b81f4);}}}),_0x35f6dd[_0x27a95c]=_0x1d3701['innerHTML']);}return _0x35f6dd;}['_sortRoots'](_0x86d6f2){if(!function(_0x1ac15b){return void 0x0!==_0x1ac15b['getRootsAttributes'];}(_0x86d6f2))return _0x86d6f2['model']['document']['getRootNames']();const _0x498ded=[],_0xfa8aaf=new Map();for(const _0x3ef51a of _0x86d6f2['model']['document']['getRootNames']()){const _0x31509e=_0x86d6f2['editing']['view']['getDomRoot'](_0x3ef51a)['getClientRects']()['item'](0x0);_0x498ded['push'](_0x3ef51a),_0xfa8aaf['set'](_0x3ef51a,_0x31509e);}return _0x498ded['sort']((_0x3889ce,_0x212f98)=>{const _0x148b03=_0xfa8aaf['get'](_0x3889ce),_0x27c81b=_0xfa8aaf['get'](_0x212f98);return _0x148b03['y']-_0x27c81b['y']||_0x148b03['x']-_0x27c81b['x'];}),_0x498ded;}}class Xe extends _0x391ea2{static get['requires'](){return[ce,_0x134b2e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27557d){super(_0x27557d),_0x27557d['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x27557d['config']['define']('trackChanges.preview.renderFunction',(_0xa27f2b,_0x32d1a2)=>{for(const _0x22d2c8 of _0x32d1a2)_0xa27f2b['appendChild'](_0x22d2c8);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x5402ef,Plugin as _0x5a00b1,PendingActions as _0x54f762}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xb683c3,ObservableMixin as _0x38bbe6,uid as _0x220d6b,priorities as _0x4b28bd,insertToPriorityArray as _0x514c21,toArray as _0x437887,logWarning as _0x19ddb9,getEnvKeystrokeText as _0x3332a6,FocusTracker as _0x3f5458,KeystrokeHandler as _0x5b2353,Collection as _0x2613ad}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e14dc,IconCancel as _0x99e388,IconTrackChanges as _0x54c16d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x140e92,View as _0x188aaa,ViewCollection as _0x2dec14,FocusCycler as _0x4f217e,UIModel as _0x5223fc,createDropdown as _0x403fac,SplitButtonView as _0x4cb093,addListToDropdown as _0x30cec3,MenuBarMenuView as _0x1b3c56,MenuBarMenuListView as _0x2db466,ListSeparatorView as _0x23663d,MenuBarMenuListItemView as _0x54232d,MenuBarMenuListItemButtonView as _0x367afd,BodyCollection as _0x33b8ef,Dialog as _0x3c17a0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xee2af6,DocumentCompare as _0x2d26dc,hashObject as _0x549bb6,surroundingMarkersDetector as _0x456507,FOCUS_ANNOTATION_KEYSTROKE as _0x348803,AriaDescriptionView as _0x54b7d2,setupThreadKeyboardNavigation as _0x4c2d2b,trimHtml as _0x5f195b,UserView as _0x274cfd,LateFocusButtonView as _0x4122ec,getDateTimeFormatter as _0x5819d1,getAllMarkersDomElementsSorted as _0x13055d,sanitizeEditorConfig as _0x3bc754}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2218f5,ModelLiveRange as _0x54a592,ModelLivePosition as _0x11f786,ModelPosition as _0x1ef9b1,ModelRange as _0x590a40,_DetachOperation as _0x147602,ViewDowncastWriter as _0x3c9855}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x27f181,toWidget as _0x4b8bcb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x557eb7,set as _0x2f69bd,isEqual as _0x48a610,unset as _0x94c24,omit as Gt}from'es-toolkit/compat';import{Delete as _0x4fad7e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x287cf5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5d352b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5402ef{['_enabledCommands'];constructor(_0x2927f9,_0xb26b68){super(_0x2927f9),this['_enabledCommands']=_0xb26b68,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 _0xe8bb6d of this['editor']['commands']['commands']())_0xe8bb6d['affectsData']&&!this['_enabledCommands']['has'](_0xe8bb6d)&&_0xe8bb6d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x22c579 of this['editor']['commands']['commands']())_0x22c579['affectsData']&&!this['_enabledCommands']['has'](_0x22c579)&&_0x22c579['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x5402ef{['_suggestions'];constructor(_0x5bdba1,_0x24bc69){super(_0x5bdba1),this['_suggestions']=_0x24bc69,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x21a41f){const _0xa85809=this['_suggestions']['get'](_0x21a41f);if(!_0xa85809)throw new _0xb683c3('track-changes-accept-suggestion-not-found',this);const _0x53a5c1=_0xa85809['getRanges']();this['editor']['model']['canEditAt'](_0x53a5c1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa85809);}}class O extends _0x5402ef{['_suggestions'];constructor(_0x46646e,_0x4d1cf0){super(_0x46646e),this['_suggestions']=_0x4d1cf0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x978313){const _0x196c86=this['_suggestions']['get'](_0x978313);if(!_0x196c86)throw new _0xb683c3('track-changes-discard-suggestion-not-found',this);const _0x301c5b=_0x196c86['getRanges']();this['editor']['model']['canEditAt'](_0x301c5b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x196c86);}}function ls(_0x35d324,_0x4de299){let _0x2d62dc='';return _0x2d62dc+=_0x35d324['split']('*')['map']((_0x1ae1d5,_0x31665a)=>_0x31665a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x1ae1d5)+'</span>':tn(_0x1ae1d5))['join'](''),_0x4de299&&(_0x2d62dc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4de299['value']+'\x22\x20title=\x22'+_0x4de299['title']+'\x22></span>'),_0x2d62dc;}function tn(_0x1d816d){const _0x23d2d3=document['createElement']('span');return _0x23d2d3['innerText']=_0x1d816d,_0x23d2d3['innerHTML'];}function ts(_0x21613f){return _0x21613f['sort']((_0x5c005b,_0x3c2943)=>'attribute'===_0x5c005b['type']&&'attribute'!==_0x3c2943['type']?-0x1:'attribute'!==_0x5c005b['type']&&'attribute'===_0x3c2943['type']?0x1:'deletion'==_0x5c005b['type']&&'deletion'!=_0x3c2943['type']?-0x1:'deletion'!=_0x5c005b['type']&&'deletion'==_0x3c2943['type']?0x1:0x0);}function to(_0x1b17ed,_0xe642e7){let _0x20227f,_0x1a13d9=0x0;const _0x1a8703=[],_0x57dc1b=_0xe642e7['schema'];for(;_0x1a13d9<_0x1b17ed['length'];){const _0x5d9ceb=_0x1b17ed[_0x1a13d9],_0x250876=_0x1b17ed[_0x1a13d9+0x1];_0x20227f||(_0x20227f=_0xe642e7['createPositionBefore'](_0x5d9ceb)),nn(_0xe642e7,_0x5d9ceb,_0x250876)||(_0x1a8703['push'](_0xe642e7['createRange'](_0x20227f,_0x57dc1b['isObject'](_0x5d9ceb)?_0xe642e7['createPositionAfter'](_0x5d9ceb):_0xe642e7['createPositionAt'](_0x5d9ceb,'end'))),_0x20227f=null),_0x1a13d9++;}return _0x1a8703;}function nn(_0x2d6e0f,_0x17bf87,_0x7c5635){if(!_0x7c5635)return!0x1;const _0xa1922c=_0x2d6e0f['createPositionAfter'](_0x17bf87),_0x27a33e=_0x2d6e0f['createPositionBefore'](_0x7c5635);return _0xa1922c['isTouching'](_0x27a33e);}function rs(_0x5a6b9c,_0x3cee87,_0x5ccf8f){for(;_0x5ccf8f['length'];){const _0x5461c8=_0x5ccf8f['splice'](0x0,0x64);_0x5a6b9c['change'](()=>{for(const _0x41deae of _0x5461c8)_0x41deae['isInContent']&&_0x3cee87['execute'](_0x41deae['id']);});}}class x extends _0x5402ef{['_command'];['_suggestions'];constructor(_0x21f108,_0x49f3f3,_0xe3575f){super(_0x21f108),this['_command']=_0x49f3f3,this['_suggestions']=_0xe3575f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x444186=Array['from'](this['_suggestions']['values']())['some'](_0x3f8624=>_0x3f8624['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x444186;}['execute'](){const _0x5d658d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x310784 of _0x5d658d){const _0x1d2a2f=_0x310784['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1d2a2f))return;}rs(this['editor']['model'],this['_command'],_0x5d658d);}}class E extends _0x5402ef{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x40bae9,_0x53c885,_0xe3d2be){super(_0x40bae9),this['_command']=_0x53c885,this['_suggestions']=_0xe3d2be,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x124fd6=this['editor']['model']['document']['selection'],_0x4a164b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x550dc5,_0x4bd7c6){const _0x2f92f9=Array['from'](_0x550dc5['getRanges']()),_0xdb6f2a=new Set();for(const _0x3caa3c of _0x4bd7c6)if(_0x3caa3c['isInContent']){for(const _0x19c192 of _0x2f92f9)for(const _0x5c917a of _0x3caa3c['getRanges']())(_0x19c192['isIntersecting'](_0x5c917a)||_0x550dc5['isCollapsed']&&!_0x3caa3c['isMultiRange']&&_0x3caa3c['next']&&_0x5c917a['end']['isTouching'](_0x19c192['start']))&&_0xdb6f2a['add'](_0x3caa3c);}return _0xdb6f2a;}(_0x124fd6,_0x4a164b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x436646=ts(Array['from'](this['_selectedSuggestions']));for(const _0x749523 of _0x436646){const _0x3fc60d=_0x749523['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3fc60d))return;}rs(this['editor']['model'],this['_command'],_0x436646);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x38bbe6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x573ba4,_0x48ec46){super(),this['id']=_0x48ec46['id'],this['type']=_0x48ec46['type'],this['subType']=_0x48ec46['subType']||null,this['author']=_0x48ec46['author'],this['creator']=_0x48ec46['creator']||_0x48ec46['author'],this['isExternal']=Boolean(_0x48ec46['attributes']&&_0x48ec46['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x48ec46['originalSuggestionId']||null,this['_model']=_0x573ba4,this['_onAccept']=_0x48ec46['onAccept'],this['_onDiscard']=_0x48ec46['onDiscard'],this['_onAttributesChange']=_0x48ec46['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x48ec46['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 _0x389b7a=this;for(;_0x389b7a['previous'];)_0x389b7a=_0x389b7a['previous'];return _0x389b7a;}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'](_0x31a80f){this['_markerNames']['add'](_0x31a80f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x505362=>this['_model']['markers']['get'](_0x505362))['filter'](_0x3ebd4b=>_0x3ebd4b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3396f9=>{for(const _0x4587af of this['getMarkers']())_0x3396f9['removeMarker'](_0x4587af);}),this['_markerNames']['clear']();}['removeMarker'](_0x22ccda){this['_model']['change'](_0x444ca1=>{_0x444ca1['removeMarker'](_0x22ccda);}),this['_markerNames']['delete'](_0x22ccda);}['addRange'](_0x6c9de0){const _0x40a7a1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x40a7a1),this['_model']['change'](_0x5c2a13=>{_0x5c2a13['addMarker'](_0x40a7a1,{'range':_0x6c9de0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x137764){for(const _0x556c00 of this['getRanges']())if(_0x556c00['isIntersecting'](_0x137764))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1c9b10=>_0x1c9b10['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x52550d,_0x69795c)=>[..._0x52550d,..._0x69795c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ec96e=this['getRanges']();if(0x1!=_0x2ec96e['length'])return null;const _0x1dc192=_0x2ec96e[0x0],_0x3bc42f=_0x1dc192['start']['nodeAfter'],_0x562ba9=_0x1dc192['end']['nodeBefore'];return _0x3bc42f instanceof _0x2218f5?_0x3bc42f!=_0x562ba9?null:_0x3bc42f: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 _0x4d6880=[];let _0x5c8335=this['head'];for(;_0x5c8335;)_0x4d6880['push'](_0x5c8335),_0x5c8335=_0x5c8335['next'];return _0x4d6880;}['setAttribute'](_0x13c3fa,_0x14c699){const _0x13c86b=_0x557eb7(this['attributes']);_0x2f69bd(_0x13c86b,_0x13c3fa,_0x14c699),_0x48a610(_0x13c86b,this['attributes'])||(this['attributes']=_0x13c86b,this['_onAttributesChange'](_0x13c86b));}['removeAttribute'](_0x10bc02){const _0x267b58=_0x557eb7(this['attributes']);_0x94c24(_0x267b58,_0x10bc02),_0x48a610(_0x267b58,this['attributes'])||(this['attributes']=_0x267b58,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 _0x220d6b()['substr'](0x1,0x5);}}function o(_0x271c75,_0x57c8d4,_0x133a98){const _0x56b18e=_0x271c75['t'],t=_0x271c75['t'];switch(_0x57c8d4){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',_0x133a98);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x133a98);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x133a98);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x133a98);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x133a98);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',_0x133a98);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x133a98);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',_0x133a98);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x133a98);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x133a98);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x133a98);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x133a98);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x133a98);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x133a98);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x133a98);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x133a98);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x133a98);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x133a98);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x133a98);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x133a98);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x133a98);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x133a98);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x133a98);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x133a98);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x133a98);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'},_0x133a98);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x133a98);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x133a98);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x133a98);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x133a98);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x133a98);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x133a98);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x133a98);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'},_0x133a98);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x133a98);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x133a98);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x133a98);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x133a98);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'},_0x133a98);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x133a98);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'},_0x133a98);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'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x133a98);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x133a98);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'},_0x133a98);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x133a98);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'},_0x133a98);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x133a98);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x133a98);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'},_0x133a98);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x133a98);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 _0x56b18e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x133a98);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56b18e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x133a98);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x133a98);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'},_0x133a98);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'},_0x133a98);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'},_0x133a98);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x57c8d4;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x57e41f,_0x167bf0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x57e41f,this['_locale']=_0x167bf0;}['getDescriptions'](_0x4e5acc){const _0x22f933=[],_0x9c4d6e=new Set(),_0x5c1144=new Set();for(let _0x48a36f=0x0;_0x48a36f<_0x4e5acc['length'];_0x48a36f++){const _0x3071cf=_0x4e5acc[_0x48a36f];if(!_0x3071cf['isInContent'])continue;const _0x2032e2=this['_handleCustomCallbackDescription'](_0x3071cf);if(_0x2032e2){if(null!=_0x3071cf['subType']){if(_0x9c4d6e['has'](_0x3071cf['subType']))continue;_0x9c4d6e['add'](_0x3071cf['subType']);}_0x22f933['push'](_0x2032e2);}else{if('attribute'==_0x3071cf['type']){const _0x3d82ad=_0x3071cf['data']['key'];if(_0x5c1144['has'](_0x3d82ad))continue;_0x5c1144['add'](_0x3071cf['data']['key']),_0x3d82ad==m?this['_handleRenameSuggestionDescription'](_0x22f933,_0x3071cf):this['_handleAttributeSuggestionDescription'](_0x22f933,_0x3071cf);continue;}'insertion'!=_0x3071cf['type']&&'deletion'!=_0x3071cf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22f933,_0x3071cf,_0x4e5acc[_0x48a36f+0x1]);}}return this['_resolveDescriptionItems'](_0x22f933);}['registerDescriptionCallback'](_0x1ffb3f){this['_customCallbacks']['push'](_0x1ffb3f);}['registerElementLabel'](_0x12c42e,_0x2c858a,_0xa9fa8a=_0x4b28bd['normal']){'function'==typeof _0x12c42e?_0x514c21(this['_itemLabelsCallbacks'],{'matchingCallback':_0x12c42e,'label':_0x2c858a,'priority':_0xa9fa8a}):this['_itemLabels']['set'](_0x12c42e,_0x2c858a);}['registerAttributeLabel'](_0x4c46bf,_0x594708){this['_attributeLabels']['set'](_0x4c46bf,_0x594708);}['getItemLabel'](_0x4eb942,_0x32ae36=0x1){let _0x484ea7;for(const _0x45ddd4 of this['_itemLabelsCallbacks'])if(_0x45ddd4['matchingCallback'](_0x4eb942)){_0x484ea7=_0x45ddd4['label'];break;}return _0x484ea7||(_0x484ea7=this['_itemLabels']['get'](_0x4eb942['name'])),_0x484ea7?_0x484ea7(_0x32ae36):0x1!==_0x32ae36?_0x32ae36+'\x20'+_0x4eb942['name']+'s':''+_0x4eb942['name'];}['_addDescriptionItems'](_0x36b647,_0x51c88f){const _0x55cca7=_0x51c88f['getFirstRange']()['getWalker'](),_0x4e6540='insertion'==_0x51c88f['type']?'add':'remove';for(const _0x535796 of _0x55cca7){const _0x36275e=_0x535796['item'],_0x5e0093=_0x36b647[_0x36b647['length']-0x1];if(_0x36275e['is']('$textProxy'))_0x5e0093&&_0x5e0093['type']['indexOf']('Container')>-0x1&&_0x36b647['pop'](),_0x5e0093&&'text'==_0x5e0093['type']?_0x5e0093[_0x4e6540]+=_0x36275e['data']:_0x36b647['push']({'type':'text','add':'add'==_0x4e6540?_0x36275e['data']:'','remove':'remove'==_0x4e6540?_0x36275e['data']:''});else{if(this['_schema']['isObject'](_0x36275e)){const _0x3db43f=_0x36275e;if(_0x5e0093&&_0x5e0093['type']['indexOf']('Container')>-0x1&&_0x36b647['pop'](),'elementEnd'==_0x535796['type'])continue;_0x5e0093&&_0x5e0093['type']==_0x4e6540+'Object'&&_0x5e0093['element']['name']==_0x3db43f['name']?_0x5e0093['quantity']++:_0x36b647['push']({'type':_0x4e6540+'Object','element':_0x3db43f,'quantity':0x1}),_0x55cca7['skip'](_0x3f97ae=>!('elementEnd'==_0x3f97ae['type']&&_0x3f97ae['item']==_0x36275e));}else{if(this['_schema']['checkChild'](_0x36275e,'$text')||_0x36275e['is']('element','softBreak')){const _0x3ff71c=_0x36275e;if('add'==_0x4e6540&&'elementStart'==_0x535796['type']||'remove'==_0x4e6540&&'elementEnd'==_0x535796['type'])continue;if(_0x5e0093&&-0x1==_0x5e0093['type']['indexOf']('Container')){'text'==_0x5e0093['type']&&(_0x5e0093[_0x4e6540]+='\x0a');continue;}let _0x405366;if(_0x405366='add'==_0x4e6540?_0x3ff71c['nextSibling']&&!this['_schema']['isObject'](_0x3ff71c['nextSibling'])?_0x3ff71c['nextSibling']:null:_0x3ff71c['previousSibling']&&!this['_schema']['isObject'](_0x3ff71c['previousSibling'])?_0x3ff71c['previousSibling']:null,_0x3ff71c['isEmpty']||_0x405366&&_0x405366['isEmpty']){const _0x527914=_0x405366&&_0x405366['isEmpty']?_0x405366:_0x3ff71c;_0x5e0093&&_0x5e0093['type']==_0x4e6540+'EmptyContainer'&&_0x5e0093['element']['name']==_0x527914['name']?_0x5e0093['quantity']++:_0x36b647['push']({'type':_0x4e6540+'EmptyContainer','element':_0x527914,'quantity':0x1});}else _0x36b647['push']({'type':_0x4e6540+'Container','element':_0x3ff71c});}}}}}['_resolveDescriptionItems'](_0x24f061){const _0x5bc7cf=this['_locale'],_0x58eb5b=[],_0x477605=[],_0x420e14=[];for(const _0x3e8671 of _0x24f061)switch(_0x3e8671['type']){case'text':if(_0x3e8671['add']=_0x3e8671['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3e8671['remove']=_0x3e8671['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3e8671['add']&&''!=_0x3e8671['remove']){_0x58eb5b['push']({'type':'replace','content':o(_0x5bc7cf,'REPLACE_TEXT',['\x22'+_0x3e8671['remove']+'\x22','\x22'+_0x3e8671['add']+'\x22'])});continue;}if(null!=_0x3e8671['add']['match'](/^ +$/)){_0x58eb5b['push']({'type':'insertion','content':o(_0x5bc7cf,'*Insert:*\x20%0',o(_0x5bc7cf,'ELEMENT_SPACE',_0x3e8671['add']['length']))});continue;}if(null!=_0x3e8671['remove']['match'](/^ +$/)){_0x58eb5b['push']({'type':'deletion','content':o(_0x5bc7cf,'*Remove:*\x20%0',o(_0x5bc7cf,'ELEMENT_SPACE',_0x3e8671['remove']['length']))});continue;}if(''!=_0x3e8671['add']){_0x58eb5b['push']({'type':'insertion','content':o(_0x5bc7cf,'*Insert:*\x20%0','\x22'+_0x3e8671['add']+'\x22')});continue;}_0x58eb5b['push']({'type':'deletion','content':o(_0x5bc7cf,'*Remove:*\x20%0','\x22'+_0x3e8671['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x58eb5b['push']({'type':'insertion','content':o(_0x5bc7cf,'*Insert:*\x20%0',this['getItemLabel'](_0x3e8671['element'],_0x3e8671['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x58eb5b['push']({'type':'deletion','content':o(_0x5bc7cf,'*Remove:*\x20%0',this['getItemLabel'](_0x3e8671['element'],_0x3e8671['quantity']))});continue;case'addContainer':_0x58eb5b['push']({'type':'insertion','content':o(_0x5bc7cf,'*Split:*\x20%0',this['getItemLabel'](_0x3e8671['element'],_0x3e8671['quantity']))});continue;case'removeContainer':_0x58eb5b['push']({'type':'deletion','content':o(_0x5bc7cf,'*Merge:*\x20%0',this['getItemLabel'](_0x3e8671['element'],_0x3e8671['quantity']))});continue;case'addFormat':_0x477605['push'](_0x3e8671['key']);continue;case'removeFormat':_0x420e14['push'](_0x3e8671['key']);continue;default:_0x58eb5b['push'](_0x3e8671);}if(_0x477605['length']){const _0x2ea81d=_0x477605['map'](_0xafab39=>this['_attributeLabels']['has'](_0xafab39)?this['_attributeLabels']['get'](_0xafab39):_0xafab39)['join'](',\x20');_0x58eb5b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ea81d)});}if(_0x420e14['length']){const _0x314b39=_0x420e14['map'](_0x4dd0de=>this['_attributeLabels']['has'](_0x4dd0de)?this['_attributeLabels']['get'](_0x4dd0de):_0x4dd0de)['join'](',\x20');_0x58eb5b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x314b39)});}return _0x58eb5b;}['_handleCustomCallbackDescription'](_0x23ce54){for(const _0x5df6fb of this['_customCallbacks']){const _0x416ead=_0x5df6fb(_0x23ce54);if(_0x416ead&&'type'in _0x416ead)return _0x416ead;}}['_handleAttributeSuggestionDescription'](_0x3af126,_0x516fd9){const _0x3b56bc=_0x516fd9['data'],_0x58f11d=void 0x0===_0x3b56bc['newValue']?'removeFormat':'addFormat';_0x3af126['push']({'type':_0x58f11d,'key':_0x3b56bc['key']});}['_handleRenameSuggestionDescription'](_0x3eadf3,_0x500a7e){_0x3eadf3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x500a7e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x21cd15,_0x5c9cff,_0xa979ec){if(this['_addDescriptionItems'](_0x21cd15,_0x5c9cff),_0xa979ec&&_0xa979ec['getFirstRange']()&&!_0x5c9cff['getFirstRange']()['end']['isEqual'](_0xa979ec['getFirstRange']()['start'])){const _0x2c46c5=_0x21cd15[_0x21cd15['length']-0x1],_0x36733a='insertion'==_0x5c9cff['type']?'add':'remove';_0x2c46c5&&'text'==_0x2c46c5['type']&&(_0x2c46c5[_0x36733a]+='\x0a');}}}class V extends _0x5a00b1{['afterInit'](){const _0x536c67=this['editor'],_0x273bd7=_0x536c67['plugins']['get']('TrackChangesEditing');_0x536c67['commands']['get']('showAIAssistant')&&_0x273bd7['enableCommand']('showAIAssistant');}}class F extends _0x5a00b1{['afterInit'](){const _0x117368=this['editor'],_0x245a63=_0x117368['locale'];if(!_0x117368['plugins']['has']('AlignmentEditing'))return;const _0x5d7b50=_0x117368['plugins']['get']('TrackChangesEditing');_0x5d7b50['enableDefaultAttributesIntegration']('alignment'),_0x5d7b50['registerBlockAttribute']('alignment'),_0x5d7b50['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x245a63,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d55a=this['editor'],_0x176872=_0x30d55a['locale'];_0x30d55a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d1c97=>{if('formatBlock'!=_0x1d1c97['type'])return;const {data:_0xf98510}=_0x1d1c97;if(_0xf98510&&'alignment'==_0xf98510['commandName']){const _0x2bcf97=_0xf98510['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x176872,'*Format:*\x20%0',function(_0x188701){switch(_0x188701){case'left':return o(_0x176872,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x176872,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x176872,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x176872,'FORMAT_JUSTIFY_TEXT');}}(_0x2bcf97))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5a00b1{['afterInit'](){const _0x445efb=this['editor'],_0x4bbf6c=_0x445efb['plugins']['get']('TrackChangesEditing'),_0x432932=_0x445efb['locale'];for(const _0x554eb7 of ti){if(!_0x445efb['plugins']['has'](_0x554eb7))continue;const _0x58ba1=_0x554eb7['slice'](0x0,-0x7)['toLowerCase'](),_0xe3a9d6='FORMAT_'+_0x58ba1['toUpperCase']();_0x4bbf6c['enableDefaultAttributesIntegration'](_0x58ba1),_0x4bbf6c['registerInlineAttribute'](_0x58ba1),_0x4bbf6c['descriptionFactory']['registerAttributeLabel'](_0x58ba1,o(_0x432932,_0xe3a9d6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2214e3=this['editor'],_0x1bb2bf=_0x2214e3['locale'],_0x3d6bce=_0x2214e3['plugins']['get']('TrackChangesEditing');function _0x42ba89(_0x51a8ee,_0x4ec041){_0x3d6bce['descriptionFactory']['registerDescriptionCallback'](_0x145186=>{if('formatInline'!=_0x145186['type'])return;const {data:_0x203d66}=_0x145186;return _0x203d66&&_0x203d66['commandName']===_0x51a8ee?_0x203d66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bb2bf,'*Format:*\x20%0',_0x4ec041)}:{'type':'format','content':o(_0x1bb2bf,'*Remove\x20format:*\x20%0',_0x4ec041)}:void 0x0;});}_0x42ba89('bold',o(_0x1bb2bf,'FORMAT_BOLD')),_0x42ba89('italic',o(_0x1bb2bf,'FORMAT_ITALIC')),_0x42ba89('underline',o(_0x1bb2bf,'FORMAT_UNDERLINE')),_0x42ba89('code',o(_0x1bb2bf,'FORMAT_CODE')),_0x42ba89('strikethrough',o(_0x1bb2bf,'FORMAT_STRIKETHROUGH')),_0x42ba89('subscript',o(_0x1bb2bf,'FORMAT_SUBSCRIPT')),_0x42ba89('superscript',o(_0x1bb2bf,'FORMAT_SUPERSCRIPT'));}}class L extends _0x5a00b1{['afterInit'](){const _0x3e8ef1=this['editor'],_0x598ec6=_0x3e8ef1['locale'];if(!_0x3e8ef1['plugins']['has']('BlockQuoteEditing'))return;const _0x1b28f5=_0x3e8ef1['plugins']['get']('TrackChangesEditing'),_0x4e7a71=this['editor']['commands']['get']('blockQuote');_0x1b28f5['enableCommand']('blockQuote',(_0x2700e7,_0x39cb36={})=>{const _0x48fb31=this['editor']['model']['document']['selection'],_0x14e5cd=_0x39cb36&&void 0x0!==_0x39cb36['forceValue']?_0x39cb36['forceValue']:!_0x4e7a71['value'];let _0x103c97=[];if(_0x14e5cd){const _0x4739b3=Array['from'](_0x48fb31['getSelectedBlocks']())['filter'](_0x308cc1=>oo(_0x308cc1)||function(_0x21cd6d,_0x1ceeb3){const _0x3b288f=_0x1ceeb3['checkChild'](_0x21cd6d['parent'],'blockQuote'),_0x1eebd5=_0x1ceeb3['checkChild'](['$root','blockQuote'],_0x21cd6d);return _0x3b288f&&_0x1eebd5;}(_0x308cc1,this['editor']['model']['schema']));_0x103c97=to(_0x4739b3,_0x3e8ef1['model']);}else{const _0x1560af=Array['from'](_0x48fb31['getSelectedBlocks']())['filter'](_0x563e61=>oo(_0x563e61));_0x103c97=to(_0x1560af,_0x3e8ef1['model']);}_0x3e8ef1['model']['change'](()=>{for(const _0x2e6d9c of _0x103c97)_0x1b28f5['markBlockFormat'](_0x2e6d9c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14e5cd}]});});}),_0x1b28f5['descriptionFactory']['registerDescriptionCallback'](_0x12975e=>{const {data:_0x3b0091}=_0x12975e;if(_0x3b0091&&'blockQuote'==_0x3b0091['commandName']){const _0x1e227b=o(_0x598ec6,'ELEMENT_BLOCK_QUOTE');return _0x3b0091['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x598ec6,'*Set\x20format:*\x20%0',_0x1e227b)}:{'type':'format','content':o(_0x598ec6,'*Remove\x20format:*\x20%0',_0x1e227b)};}});}}function oo(_0x46a2ef){return'blockQuote'==_0x46a2ef['parent']['name'];}class J extends _0x5a00b1{['afterInit'](){const _0x3ba9b0=this['editor'],_0x10241e=_0x3ba9b0['locale'],_0x4f7645=_0x3ba9b0['plugins']['get']('TrackChangesEditing');_0x3ba9b0['plugins']['has']('BookmarkEditing')&&(_0x4f7645['enableCommand']('insertBookmark'),_0x4f7645['enableDefaultAttributesIntegration']('updateBookmark'),_0x4f7645['registerBlockAttribute']('bookmarkId'),_0x4f7645['descriptionFactory']['registerDescriptionCallback'](_0x34bb51=>{if('insertion'!=_0x34bb51['type']&&'deletion'!=_0x34bb51['type']&&'attribute'!=_0x34bb51['type'])return;const _0x257913=_0x34bb51['getContainedElement']();if(null==_0x257913)return;if(!_0x257913['is']('element','bookmark'))return;const _0x357333=_0x257913['getAttribute']('bookmarkId');if('insertion'==_0x34bb51['type'])return{'type':'insertion','content':o(_0x10241e,'*Insert:*\x20%0','\x22'+_0x357333+'\x22\x20'+o(_0x10241e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x34bb51['type'])return{'type':'deletion','content':o(_0x10241e,'*Remove:*\x20%0','\x22'+_0x357333+'\x22\x20'+o(_0x10241e,'ELEMENT_BOOKMARK'))};const {data:_0x41e157}=_0x34bb51;if(!_0x41e157||'bookmarkId'!=_0x41e157['key'])return;return{'type':'format','content':o(_0x10241e,'*Set\x20bookmark:*\x20%0','\x22'+_0x41e157['newValue']+'\x22')};}));}}class K extends _0x5a00b1{['afterInit'](){const _0x17cfdd=this['editor'];_0x17cfdd['plugins']['has']('CaseChange')&&(_0x17cfdd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x17cfdd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x17cfdd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5a00b1{['afterInit'](){const _0x4fdb6d=this['editor'];_0x4fdb6d['commands']['get']('ckbox')&&_0x4fdb6d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x5a00b1{['afterInit'](){const _0x4e7366=this['editor'];if(!_0x4e7366['plugins']['has']('CodeBlock'))return;const _0x24ba74=_0x4e7366['plugins']['get']('TrackChangesEditing'),_0x451077=_0x4e7366['locale'],_0x17af6a=_0x4e7366['config']['get']('codeBlock')['languages'],_0x177057=_0x4e7366['commands']['get']('codeBlock');_0x24ba74['enableCommand']('indentCodeBlock'),_0x24ba74['enableCommand']('outdentCodeBlock'),_0x24ba74['enableCommand']('codeBlock',(_0x4ea14c,_0x550660={})=>{const _0xc57b8a=_0x4e7366['model'],_0x42e5b5=_0x4e7366['model']['document']['selection'],_0x1912a6=_0x550660&&void 0x0!==_0x550660['forceValue']?_0x550660['forceValue']:!_0x177057['value'];let _0x262744;_0x550660['language']||(_0x550660['language']=_0x17af6a[0x0]['language']),_0x262744=_0x1912a6?Array['from'](_0x42e5b5['getSelectedBlocks']())['filter'](_0x427d5d=>co(_0x427d5d)||function(_0x4de8cf,_0x12a543){if(_0x4de8cf['is']('rootElement')||_0x12a543['isLimit'](_0x4de8cf))return!0x1;return _0x12a543['checkChild'](_0x4de8cf['parent'],'codeBlock');}(_0x427d5d,_0xc57b8a['schema'])):Array['from'](_0x42e5b5['getSelectedBlocks']())['filter'](_0x3f9019=>co(_0x3f9019));const _0x37f676=to(_0x262744,_0xc57b8a);_0xc57b8a['change'](()=>{for(const _0xe26d39 of _0x37f676)_0x24ba74['markBlockFormat'](_0xe26d39,{'commandName':'codeBlock','commandParams':[{..._0x550660,'forceValue':_0x1912a6}],'formatGroupId':'blockName'});});}),(_0x24ba74['descriptionFactory']['registerElementLabel']('codeBlock',_0x1f55f7=>o(_0x451077,'ELEMENT_CODE_BLOCK',_0x1f55f7)),_0x24ba74['descriptionFactory']['registerDescriptionCallback'](_0x2b079b=>{if('formatBlock'!=_0x2b079b['type'])return;const _0x49f42e=_0x451077['t'],{data:_0x128875}=_0x2b079b;if(!_0x128875||'codeBlock'!=_0x128875['commandName'])return;const _0x414b2f=_0x128875['commandParams'][0x0]['language'],_0x40f7de=_0x49f42e(_0x17af6a['find'](_0x17287f=>_0x17287f['language']===_0x414b2f)['label'])['toLowerCase']();return _0x128875['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x451077,'*Set\x20format:*\x20%0',o(_0x451077,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40f7de+')')}:{'type':'format','content':o(_0x451077,'*Remove\x20format:*\x20%0',o(_0x451077,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1a7f47){return'codeBlock'==_0x1a7f47['name'];}class q extends _0x5a00b1{['afterInit'](){const _0x398778=this['editor'];if(!_0x398778['plugins']['has']('CommentsEditing'))return;_0x398778['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3221c6,_0x3a7a79,_0x536bd4){const _0x2a1388=[];for(const _0x2b8c3b of _0x3a7a79['getItems']())_0x2b8c3b['hasAttribute'](_0x3221c6)&&_0x2a1388['push'](_0x536bd4['createRangeOn'](_0x2b8c3b));return _0x2a1388;}function Ge(_0x4567f9,_0x10d5b5,{showActiveMarker:_0xd11123=!0x0}={}){const _0x38a878=_0x4567f9['plugins']['get']('TrackChangesEditing');return(_0x32bd75,_0x3b8300,_0x220e45)=>{if(!_0x220e45['consumable']['test'](_0x3b8300['markerRange'],_0x32bd75['name']))return;const _0x552014=_0x3b8300['markerRange']['getWalker'](),_0x18884b=_0x3b8300['markerRange']['start'],_0x4ee21a=_0x4567f9['model']['schema'];let _0x5332dd=null,_0x438ef3=null,_0xdb7117=!0x1,_0x72c564=!0x1;for(const _0x2fcdbe of _0x552014){const _0x11c802=_0x2fcdbe['item'];_0xdb7117=_0xdb7117||_0x4ee21a['isContent'](_0x11c802);const _0x1e2314=_0x220e45['mapper']['toViewElement'](_0x11c802);if(_0x1e2314&&_0x1e2314['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fcdbe['type']&&(_0x4ee21a['isBlock'](_0x11c802)&&!_0x4ee21a['isLimit'](_0x11c802)&&(_0x11c802['nextSibling']||_0x18884b['isAtEnd']?_0x5332dd&&_0x5332dd['parent']==_0x11c802||(_0x5332dd=_0x11c802,_0x10ee07(_0x2fcdbe['previousPosition']),_0x72c564=!0x0):_0x438ef3=_0x438ef3||_0x2fcdbe['previousPosition']));}function _0x10ee07(_0x311ec0){const {id:_0x480a73,authorId:_0x49ff03}=_0x38a878['_splitMarkerName'](_0x3b8300['markerName']),_0x5b8fa4=_0x220e45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x10d5b5,'data-suggestion':_0x480a73,'data-author-id':_0x49ff03}),_0x1c5003=_0x220e45['mapper']['toViewPosition'](_0x311ec0);_0xd11123&&_0x38a878['activeMarkers']['includes'](_0x3b8300['markerName'])&&_0x220e45['writer']['addClass']('ck-suggestion-marker--active',_0x5b8fa4),_0x220e45['writer']['insert'](_0x1c5003,_0x5b8fa4),_0x220e45['mapper']['bindElementToMarker'](_0x5b8fa4,_0x3b8300['markerName']);}_0xdb7117||_0x72c564||!_0x438ef3||_0x10ee07(_0x438ef3);};}class z extends _0x5a00b1{static get['requires'](){return[_0x4fad7e];}['init'](){const _0x42b85f=this['editor'],_0x57ec74=_0x42b85f['plugins']['get']('TrackChangesEditing');_0x57ec74['enableCommand']('delete');const _0x887d41=_0x42b85f['commands']['get']('deleteForward');_0x57ec74['enableCommand']('deleteForward',(_0x7a44cb,_0x3827ee={})=>{const _0xafe67c=_0x42b85f['model']['createSelection'](_0x42b85f['model']['document']['selection']);_0xafe67c['isCollapsed']&&_0x42b85f['model']['modifySelection'](_0xafe67c,{'direction':'forward','unit':_0x3827ee['unit']});const _0x1ea75d=_0xafe67c['getFirstRange'](),_0x2ac57b=_0x54a592['fromRange'](_0x1ea75d);let _0x41c6c8;_0x7a44cb(_0x3827ee),_0x41c6c8='$graveyard'==_0x2ac57b['root']['rootName']?_0x42b85f['model']['createRange'](_0x1ea75d['start']):_0x42b85f['model']['createRange'](_0x2ac57b['start'],_0x2ac57b['end']),_0x2ac57b['detach'](),_0x42b85f['model']['enqueueChange'](_0x887d41['buffer']['batch'],_0x229475=>{_0x887d41['buffer']['lock'](),_0x229475['setSelection'](_0x229475['createRange'](_0x41c6c8['end'])),_0x887d41['buffer']['unlock']();});}),_0x42b85f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x42b85f,'merge'),{'priority':'high'}),_0x42b85f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x521d63,_0x28686f,_0x542eb5)=>{_0x542eb5['options']['showSuggestionHighlights']&&Ge(_0x42b85f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x521d63,_0x28686f,_0x542eb5);},{'priority':'high'}),_0x42b85f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3a3ce4,_0xe8d445,_0x19adca)=>{const _0x52a8a0=_0x19adca['mapper']['markerNameToElements'](_0xe8d445['markerName']);if(_0x52a8a0){for(const _0x2aade0 of _0x52a8a0)_0x2aade0['is']('uiElement')&&(_0x19adca['mapper']['unbindElementFromMarkerName'](_0x2aade0,_0xe8d445['markerName']),_0x19adca['writer']['remove'](_0x2aade0));}},{'priority':'high'});}}class Q extends _0x5a00b1{['afterInit'](){const _0x125e93=this['editor'];if(!_0x125e93['plugins']['has']('ListEditing'))return;const _0x2df43b=_0x125e93['locale'],_0x4ef594=_0x125e93['plugins']['get']('TrackChangesEditing'),_0x49a027=_0x125e93['plugins']['has']('TodoListEditing'),_0x23eecd=!!_0x125e93['config']['get']('list.multiBlock');function _0x2550e5(_0x53a7b0){return{'type':'format','content':''+o(_0x2df43b,'*Set\x20format:*\x20%0',_0x53a7b0)};}function _0x449d4b(_0x34190e){return{'type':'format','content':''+o(_0x2df43b,'*Remove\x20format:*\x20%0',_0x34190e)};}_0x4ef594['enableDefaultAttributesIntegration']('numberedList'),_0x4ef594['enableDefaultAttributesIntegration']('bulletedList'),_0x4ef594['enableDefaultAttributesIntegration']('customNumberedList'),_0x4ef594['enableDefaultAttributesIntegration']('customBulletedList'),_0x4ef594['enableDefaultAttributesIntegration']('indentList'),_0x4ef594['enableDefaultAttributesIntegration']('outdentList'),_0x4ef594['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4ef594['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4ef594['registerBlockAttribute']('listItemId'),_0x4ef594['registerBlockAttribute']('listType'),_0x4ef594['registerBlockAttribute']('listIndent'),_0x23eecd&&(_0x4ef594['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4ef594['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x49a027&&(_0x4ef594['enableDefaultAttributesIntegration']('todoList'),_0x4ef594['enableDefaultAttributesIntegration']('checkTodoList'),_0x4ef594['registerBlockAttribute']('todoListChecked'),_0x4ef594['descriptionFactory']['registerDescriptionCallback'](_0x2c3da3=>{const {data:_0x4767f5}=_0x2c3da3;if(_0x4767f5&&'todoListChecked'==_0x4767f5['key'])return{'type':'format','content':_0x4767f5['newValue']?o(_0x2df43b,'*Check\x20item*'):o(_0x2df43b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4d3bd2=>{if(_0x4d3bd2['batch']['isUndo'])return!0x1;let _0x282d59=!0x1;const _0x461f25=_0x4ef594['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40fe61=>'todoListChecked'===_0x4ef594['_getAttributeKey'](_0x40fe61));for(const _0x406f37 of _0x461f25){'todo'!=_0x406f37['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4ef594['_findSuggestions'](_0x406f37['getFirstRange'](),'attribute')['find'](_0x55d3b9=>'listType'===_0x4ef594['_getAttributeKey'](_0x55d3b9['suggestion']))||(_0x4d3bd2['removeMarker'](_0x406f37['getFirstMarker']()),_0x282d59=!0x0));}return _0x282d59;})),_0x4ef594['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2df43b,'FORMAT_INDENT'));const _0x45c897={'type':'format','content':''};_0x4ef594['descriptionFactory']['registerDescriptionCallback'](_0x2654da=>{const {data:_0x4a0843}=_0x2654da;if(!_0x4a0843||'listType'!=_0x4a0843['key'])return;let _0x100837=_0x2654da['head'];for(;_0x100837;){if(_0x100837['data']&&(('listStyle'==_0x100837['data']['key']||'listMarkerStyle'==_0x100837['data']['key'])&&(_0x100837['data']['newValue']&&'default'!=_0x100837['data']['newValue']||'default'!=_0x100837['data']['oldValue']&&!_0x4a0843['newValue'])||!_0x23eecd&&_0x100837['data']['key']==m))return _0x45c897;_0x100837=_0x100837['next'];}if(null==_0x4a0843['newValue'])switch(_0x4a0843['oldValue']){case'bulleted':return _0x449d4b(o(_0x2df43b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x449d4b(o(_0x2df43b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x449d4b(o(_0x2df43b,'ELEMENT_TODO_LIST'));}switch(_0x4a0843['newValue']){case'bulleted':return _0x2550e5(o(_0x2df43b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2550e5(o(_0x2df43b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2550e5(o(_0x2df43b,'ELEMENT_TODO_LIST'));}}),_0x4ef594['descriptionFactory']['registerDescriptionCallback'](_0x2868bd=>{const {data:_0x44bd72}=_0x2868bd;if(_0x44bd72&&'listIndent'==_0x44bd72['key'])return null==_0x44bd72['newValue']||null==_0x44bd72['oldValue']&&0x0==_0x44bd72['newValue']?_0x45c897:void 0x0;}),_0x4ef594['descriptionFactory']['registerDescriptionCallback'](_0x410347=>{if('attribute'!=_0x410347['type'])return;const {data:_0x13a690}=_0x410347;if(!_0x13a690||'listItemId'!=_0x13a690['key'])return;const _0xf32e4f=Be(_0x410347);return'newValue'==_0xf32e4f?{'type':'format','content':o(_0x2df43b,'*Merge:*\x20list\x20item')}:'oldValue'==_0xf32e4f?{'type':'format','content':o(_0x2df43b,'*Split:*\x20list\x20item')}:_0x45c897;}),_0x125e93['model']['document']['registerPostFixer'](_0x2f66aa=>this['listItemIdFixer'](_0x2f66aa)),_0x125e93['model']['document']['registerPostFixer'](_0x299096=>this['noTrackChangesFixer'](_0x299096)),_0x125e93['model']['document']['on']('change:data',(_0x420fa4,_0x4f3c43)=>{if(_0x4f3c43['isUndo']||!_0x4f3c43['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x347b83){if(_0x347b83['batch']['isUndo']||!_0x347b83['batch']['isLocal'])return!0x1;let _0x26b714=!0x1;const _0x101cf0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x332205=>_0x332205['data']&&'listItemId'==_0x332205['data']['key'])['filter'](_0x25483d=>_0x25483d['data']['newValue']&&_0x25483d['data']['oldValue']);for(const _0x1d9567 of _0x101cf0)Be(_0x1d9567)||(_0x347b83['removeMarker'](_0x1d9567['getFirstMarker']()),_0x26b714=!0x0);return _0x26b714;}['noTrackChangesFixer'](_0x8e99b9){if(_0x8e99b9['batch']['isUndo']||!_0x8e99b9['batch']['isLocal'])return!0x1;const _0x5e10bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5e10bb['trackChangesCommand']['value'])return!0x1;let _0x105ea6=!0x1;const _0x27f924=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ca007=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x58e31f=>'attribute'==_0x58e31f['type'])['filter'](_0x104adf=>_0x27f924['includes'](_0x104adf['attributeKey']));if(0x0==_0x3ca007['length'])return _0x105ea6;for(const _0x52967f of _0x3ca007){const _0x21e09f=_0x5e10bb['_findSuggestions'](_0x52967f['range'],'attribute')['filter'](_0x3a3c3d=>!_0x3a3c3d['meta']['isNextTo'])['map'](_0x250c3c=>_0x250c3c['suggestion'])['filter'](_0x4a59e6=>{const _0x304274=_0x5e10bb['_getAttributeKey'](_0x4a59e6);return _0x27f924['includes'](_0x304274);});if(_0x21e09f['length']){for(const _0x2e68cd of _0x21e09f)_0x8e99b9['removeMarker'](_0x2e68cd['getFirstMarker']());_0x105ea6=!0x0;}}return _0x105ea6;}['assureChains'](){const _0x4dde3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x326890=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2fb24a;const _0x2907d8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4dc541=>{if(_0x4dc541['data']['oldRange']||!_0x4dc541['data']['newRange'])return null;if(!_0x4dc541['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x885be9}=_0x4dde3a['_splitMarkerName'](_0x4dc541['name']);if(!_0x4dde3a['hasSuggestion'](_0x885be9))return null;const _0x43bae9=_0x4dde3a['getSuggestion'](_0x885be9);return _0x326890['includes'](_0x43bae9['data']['key']);})['map'](_0x15a11c=>{const {id:_0x4d2ebb}=_0x4dde3a['_splitMarkerName'](_0x15a11c['name']),_0x3e1229=_0x4dde3a['getSuggestion'](_0x4d2ebb);return _0x2fb24a=_0x3e1229['attributes']['groupId'],_0x3e1229['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2907d8['size'])return;const _0x1b1a49=_0x4dde3a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x179632=>'attribute'==_0x179632['type']&&_0x179632['data']&&_0x326890['includes'](_0x179632['data']['key'])&&_0x179632['attributes']['groupId']!=_0x2fb24a)['map'](_0x54dd32=>({'listItem':_0x54dd32['getFirstRange']()['start']['nodeAfter'],'groupId':_0x54dd32['attributes']['groupId']})),_0x15b58e=new Set();for(const {groupId:_0x7596b6,listItem:_0x3a486b}of _0x1b1a49)_0x2907d8['has'](_0x3a486b)&&_0x15b58e['add'](_0x7596b6);for(const _0x34d676 of _0x4dde3a['getSuggestions']())_0x15b58e['has'](_0x34d676['attributes']['groupId'])&&_0x34d676['setAttribute']('groupId',_0x2fb24a);}['_supportLegacySuggestions'](){const _0x15133a=this['editor'],_0x5018ff=_0x15133a['locale'],_0x2148c7=_0x15133a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2148c7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42af95,_0x5720f2){const _0x3fe3c0=[];for(let _0x357792 of _0x42af95)_0x357792['start']['nodeAfter']===_0x357792['end']['parent']&&(_0x357792=_0x15133a['model']['createRange'](_0x15133a['model']['createPositionAt'](_0x357792['start']['nodeAfter'],0x0))),_0x3fe3c0['push'](_0x357792);_0x15133a['model']['change'](_0x14f7e2=>{const _0x168fb8=_0x15133a['model']['document']['selection'],_0x3220cd=Array['from'](_0x168fb8['getRanges']())['map'](_0x220283=>_0x54a592['fromRange'](_0x220283));_0x14f7e2['setSelection'](_0x3fe3c0),_0x15133a['commands']['get'](_0x5720f2['commandName'])['refresh'](),_0x5720f2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x15133a['execute'](_0x5720f2['commandName'],..._0x5720f2['commandParams']),_0x14f7e2['setSelection'](_0x3220cd);for(const _0x4ff678 of _0x3220cd)_0x4ff678['detach']();});}),_0x2148c7['descriptionFactory']['registerElementLabel'](function(_0x596d72){const _0x2d9176=!_0x15133a['model']['schema']['isObject'](_0x596d72),_0x5a1f74=_0x596d72['previousSibling'],_0x6827e1=_0x596d72['nextSibling'],_0x3cc410=_0x596d72['getAttribute']('listItemId'),_0x339e46=!_0x5a1f74||_0x5a1f74['getAttribute']('listItemId')!==_0x3cc410,_0x38c3d0=!_0x6827e1||_0x6827e1['getAttribute']('listItemId')!==_0x3cc410;return _0x2d9176&&Boolean(_0x3cc410)&&_0x339e46&&_0x38c3d0;},_0x1875a6=>o(_0x5018ff,'ELEMENT_LIST_ITEM',_0x1875a6));}['_registerLegacyDescription'](){const _0x33c764=this['editor'],_0xe65d0=_0x33c764['locale'];function _0x4c0f69(_0xfd3bc1){const _0x3e1cd1=_0x33c764['commands']['get']('bulletedList')['value'],_0x43356c=_0x33c764['commands']['get']('numberedList')['value'];return'numberedList'===_0xfd3bc1?_0x3e1cd1:_0x43356c;}_0x33c764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x36f9e0){if('formatBlock'!=_0x36f9e0['type'])return;const {data:_0x191901}=_0x36f9e0;if(!_0x191901)return;let _0xe3ef64,_0x34bb31,_0x43745d,_0x472286;switch(_0x191901['commandName']){case'bulletedList':_0x43745d=_0x191901['commandParams'][0x0]['forceValue'],_0x472286=_0x4c0f69(_0x191901['commandName']),_0xe3ef64=_0x43745d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x472286&&_0x33c764['config']['get']('list.multiBlock')||(_0xe3ef64='*Change\x20to:*\x20%0'),_0x34bb31={'type':'format','content':o(_0xe65d0,_0xe3ef64,o(_0xe65d0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43745d=_0x191901['commandParams'][0x0]['forceValue'],_0x472286=_0x4c0f69(_0x191901['commandName']),_0xe3ef64=_0x43745d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x472286&&_0x33c764['config']['get']('list.multiBlock')||(_0xe3ef64='*Change\x20to:*\x20%0'),_0x34bb31={'type':'format','content':o(_0xe65d0,_0xe3ef64,o(_0xe65d0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xe3ef64='*Indent:*\x20%0',_0x34bb31={'type':'format','content':o(_0xe65d0,_0xe3ef64,o(_0xe65d0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xe3ef64=function(_0x39ea82){const _0x2d86e8=_0x39ea82['getFirstRange']();let _0x5bf93e=_0x2d86e8['start']['nodeAfter'];for(;_0x5bf93e&&_0x2d86e8['containsItem'](_0x5bf93e);){if(_0x5bf93e['getAttribute']('listIndent')>0x0)return!0x1;_0x5bf93e=_0x5bf93e['nextSibling'];}return!0x0;}(_0x36f9e0)?o(_0xe65d0,'*Format:*\x20remove\x20from\x20%0',o(_0xe65d0,function(_0x396dcc){return'ELEMENT_'+_0x396dcc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x36f9e0))):o(_0xe65d0,'*Outdent:*\x20%0',o(_0xe65d0,'ELEMENT_LIST_ITEM')),_0x34bb31={'type':'format','content':_0xe3ef64};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x191901['multipleBlocks']&&(_0xe3ef64='*Merge:*\x20%0',_0x34bb31={'type':'deletion','content':o(_0xe65d0,_0xe3ef64,o(_0xe65d0,'ELEMENT_LIST_ITEM'))});}return _0x34bb31;});}}function Be(_0x4fcf4a){let _0x8ec1f9=_0x4fcf4a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x8ec1f9;){const _0x1184ef=_0x8ec1f9['getAttribute']('listItemId');if(!_0x1184ef)return!0x1;if(_0x1184ef==_0x4fcf4a['data']['newValue'])return'newValue';if(_0x1184ef==_0x4fcf4a['data']['oldValue'])return'oldValue';_0x8ec1f9=_0x8ec1f9['previousSibling'];}return!0x1;}class X extends _0x5a00b1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x49acd3=this['editor']['config']['get']('list.properties'),_0x1433b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x49acd3['styles']&&(_0x1433b2['enableDefaultAttributesIntegration']('listStyle'),_0x1433b2['registerBlockAttribute']('listStyle')),_0x49acd3['reversed']&&(_0x1433b2['enableDefaultAttributesIntegration']('listReversed'),_0x1433b2['registerBlockAttribute']('listReversed')),_0x49acd3['startIndex']&&(_0x1433b2['enableDefaultAttributesIntegration']('listStart'),_0x1433b2['registerBlockAttribute']('listStart'));const _0x916216={'type':'format','content':''};_0x1433b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x584e61=this['editor']['locale'];_0x1433b2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x584e61,'FORMAT_LIST_REVERSED')),_0x1433b2['descriptionFactory']['registerDescriptionCallback'](_0x123a90=>{const {data:_0x362e54}=_0x123a90;if(_0x362e54&&'listReversed'==_0x362e54['key'])return null==_0x362e54['newValue']||0x0==_0x362e54['newValue']&&null==_0x362e54['oldValue']?_0x916216:void 0x0;}),_0x1433b2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x584e61,'FORMAT_LIST_START')),_0x1433b2['descriptionFactory']['registerDescriptionCallback'](_0x4a29b4=>{const {data:_0x52af8d}=_0x4a29b4;if(_0x52af8d&&'listStart'==_0x52af8d['key'])return null==_0x52af8d['newValue']||0x1==_0x52af8d['newValue']&&null==_0x52af8d['oldValue']?_0x916216:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5345d0=>{if(_0x5345d0['batch']['isUndo'])return!0x1;let _0x1d1cd0=!0x1;const _0x446ea3=_0x1433b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31b9c3=>{const _0x5e1a32=_0x1433b2['_getAttributeKey'](_0x31b9c3);return'listStart'==_0x5e1a32||'listReversed'==_0x5e1a32;});for(const _0x4e0225 of _0x446ea3){const _0x8ac489=_0x4e0225['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8ac489||'customNumbered'==_0x8ac489)continue;_0x1433b2['_findSuggestions'](_0x4e0225['getFirstRange'](),'attribute')['find'](_0x1d53a6=>'listType'==_0x1433b2['_getAttributeKey'](_0x1d53a6['suggestion']))||(_0x5345d0['removeMarker'](_0x4e0225['getFirstMarker']()),_0x1d1cd0=!0x0);}return _0x1d1cd0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xcc0ac5){const _0x4e4c64=this['editor']['locale'],{data:_0x3d4314}=_0xcc0ac5,_0x159311={'type':'format','content':''};if(!_0x3d4314||'listStyle'!=_0x3d4314['key'])return;if(!_0x3d4314['oldValue'])return'default'==_0x3d4314['newValue']?_0x159311:{'type':'format','content':''+o(_0x4e4c64,'*Set\x20format:*\x20%0',o(_0x4e4c64,this['_getTranslationKeyForListStyle'](_0x3d4314['newValue'])))};if(!_0x3d4314['newValue']){if('default'==_0x3d4314['oldValue'])return _0x159311;let _0x42eabb=_0xcc0ac5['head'];for(;_0x42eabb;){if(_0x42eabb['data']&&'listType'==_0x42eabb['data']['key']&&_0x42eabb['data']['newValue'])return _0x159311;_0x42eabb=_0x42eabb['next'];}return{'type':'format','content':''+o(_0x4e4c64,'*Remove\x20format:*\x20%0',o(_0x4e4c64,this['_getTranslationKeyForListStyle'](_0x3d4314['oldValue'])))};}if('default'!=_0x3d4314['newValue'])return{'type':'format','content':''+o(_0x4e4c64,'*Set\x20format:*\x20%0',o(_0x4e4c64,this['_getTranslationKeyForListStyle'](_0x3d4314['newValue'])))};let _0x342fad=_0xcc0ac5['head'];for(;_0x342fad;){if(_0x342fad['data']&&'listType'==_0x342fad['data']['key']&&_0x342fad['data']['newValue']&&_0x342fad['data']['oldValue'])return _0x159311;_0x342fad=_0x342fad['next'];}return{'type':'format','content':o(_0x4e4c64,'*Set\x20format:*\x20%0',o(_0x4e4c64,'ELEMENT_'+_0xcc0ac5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1335ef=this['editor'],_0x5701d9=_0x1335ef['locale'];_0x1335ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c040d=>{if('formatBlock'!=_0x3c040d['type'])return;const {data:_0x712ec2}=_0x3c040d;if(!_0x712ec2)return;let _0x37605d,_0x430c92;switch(_0x712ec2['commandName']){case'listStyle':_0x37605d='*Change\x20to:*\x20%0',_0x430c92={'type':'format','content':o(_0x5701d9,_0x37605d,o(_0x5701d9,this['_getTranslationKeyForListStyle'](_0x712ec2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x37605d=_0x712ec2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x430c92={'type':'format','content':o(_0x5701d9,_0x37605d)};break;case'listStart':_0x37605d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x430c92={'type':'format','content':o(_0x5701d9,_0x37605d,_0x712ec2['commandParams'][0x0]['startIndex'])};}return _0x430c92;});}['_getTranslationKeyForListStyle'](_0x51971c){return'ELEMENT_'+function(_0xfdd646){if(Re['includes'](_0xfdd646))return'bulleted';if(Fe['includes'](_0xfdd646))return'numbered';return null;}(_0x51971c)['toUpperCase']()+'_LIST_'+_0x51971c['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x5a00b1{['afterInit'](){const _0x553338=this['editor'];_0x553338['commands']['get']('emoji')&&_0x553338['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x5a00b1{static get['requires'](){return[_0x287cf5];}['init'](){const _0x2f182a=this['editor'],_0x40fc79=_0x2f182a['plugins']['get']('TrackChangesEditing'),_0x25d9a8=_0x2f182a['commands']['get']('enter');_0x40fc79['enableCommand']('enter',()=>{_0x2f182a['model']['change'](_0x226130=>{const _0x27f65a=_0x2f182a['model']['document']['selection'],_0x44cb47=_0x27f65a['getFirstPosition'](),_0x58949b=_0x54a592['fromRange'](_0x27f65a['getFirstRange']());if(_0x25d9a8['enterBlock'](_0x226130)){const _0x2c6bd3=_0x2f182a['model']['createPositionAt'](_0x44cb47['parent']['nextSibling'],0x0),_0x555e9f=_0x226130['createRange'](_0x44cb47,_0x2c6bd3);_0x40fc79['markInsertion'](_0x555e9f);}else _0x226130['setSelection'](_0x226130['createRange'](_0x58949b['end']));_0x58949b['detach'](),_0x25d9a8['fire']('afterExecute',{'writer':_0x226130});});}),_0x2f182a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x2f182a,'split'),{'priority':'high'}),_0x2f182a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4e26c0,_0x339a57,_0x3a0e9a)=>{const _0x2190e4=_0x3a0e9a['mapper']['markerNameToElements'](_0x339a57['markerName']);if(_0x2190e4){for(const _0x4e1b7c of _0x2190e4)_0x4e1b7c['hasClass']('ck-suggestion-marker-split')&&(_0x3a0e9a['mapper']['unbindElementFromMarkerName'](_0x4e1b7c,_0x339a57['markerName']),_0x3a0e9a['writer']['remove'](_0x4e1b7c));}},{'priority':'high'}),_0x2f182a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41c9fd,_0x3cf0b5,_0x2d3860)=>{_0x2d3860['options']['showSuggestionHighlights']&&Ge(_0x2f182a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41c9fd,_0x3cf0b5,_0x2d3860);},{'priority':'high'});}}class tt extends _0x5a00b1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x393ad3=this['editor']['plugins']['get']('TrackChangesEditing');_0x393ad3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x393ad3['enableCommand']('findNext'),_0x393ad3['enableCommand']('findPrevious'),_0x393ad3['enableCommand']('replace'),_0x393ad3['enableCommand']('replaceAll');}['handleFindCommand'](_0x3d7ff7,_0x256a48,_0x35ba87={}){const _0x20974c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3d7ff7(_0x3eed18=>{let _0x14310c=('string'==typeof _0x256a48?_0x20974c['findByTextCallback'](_0x256a48,_0x35ba87):_0x256a48)(_0x3eed18);Array['isArray'](_0x14310c)&&(_0x14310c={'results':_0x14310c,'searchText':'string'==typeof _0x256a48?_0x256a48:''});const _0x12845d=_0x14310c['results']['filter'](_0x16377b=>!0x1===this['_isInDeletionRange'](_0x16377b,_0x3eed18['item']));return{..._0x14310c,'results':_0x12845d};},_0x35ba87);}['_isInDeletionRange'](_0x8c5f1,_0x5d1bf0){const _0x174773=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d1bf0,_0x8c5f1['start']),this['editor']['model']['createPositionAt'](_0x5d1bf0,_0x8c5f1['end']));for(const _0x1261e7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x174773['getIntersection'](_0x1261e7['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x5a00b1{['afterInit'](){const _0xd9402a=this['editor']['locale'],_0x3479a9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x379d1b,commandName:_0xe0026f}of eo)this['editor']['plugins']['has'](_0x379d1b)&&(_0x3479a9['enableDefaultAttributesIntegration'](_0xe0026f),_0x3479a9['registerInlineAttribute'](_0xe0026f));_0x3479a9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xd9402a,'FORMAT_FONT_SIZE')),_0x3479a9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xd9402a,'FORMAT_FONT_FAMILY')),_0x3479a9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xd9402a,'FORMAT_FONT_COLOR')),_0x3479a9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xd9402a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x220fe5=this['editor'],_0x35de22=_0x220fe5['locale'];_0x220fe5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1313a4=>{const _0x4506b8=_0x35de22['t'];if('formatInline'!=_0x1313a4['type'])return;const {data:_0x52b186}=_0x1313a4;if(null!=_0x52b186){if('fontSize'==_0x52b186['commandName']){const _0x5ec9a6=_0x52b186['commandParams'][0x0]['value'];if(_0x5ec9a6){const _0x16c594=_0x4506b8(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1914e5=>_0x1914e5['model']==_0x5ec9a6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35de22,'*Set\x20font\x20size:*\x20%0',_0x16c594)};}return{'type':'format','content':o(_0x35de22,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x52b186['commandName']){const _0x5d28c6=_0x52b186['commandParams'][0x0]['value'];return _0x5d28c6?{'type':'format','content':o(_0x35de22,'*Set\x20font\x20family:*\x20%0',_0x5d28c6)}:{'type':'format','content':o(_0x35de22,'*Reset\x20font\x20family*')};}if('fontColor'==_0x52b186['commandName']){const _0x267dc8=_0x52b186['commandParams'][0x0]['value'];if(_0x267dc8){const _0x36b1d5=_0x140e92(this['editor']['config']['get']('fontColor.colors'))['find'](_0x41b076=>_0x41b076['model']==_0x267dc8);let _0x3b2d80=_0x267dc8,_0xa2179d='';return _0x36b1d5&&(_0x3b2d80=_0x36b1d5['label'],_0xa2179d=_0x4506b8(_0x3b2d80)['toLowerCase']()),{'type':'format','content':o(_0x35de22,'*Set\x20font\x20color:*\x20%0',_0xa2179d)['trim'](),'color':{'value':_0x267dc8,'title':_0xa2179d||_0x3b2d80}};}return{'type':'format','content':o(_0x35de22,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x52b186['commandName']){const _0x407797=_0x52b186['commandParams'][0x0]['value'];if(_0x407797){const _0x2b6ad7=_0x140e92(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x67f804=>_0x67f804['model']==_0x407797);let _0x25f70e=_0x407797,_0xdc5f8d='';return _0x2b6ad7&&(_0x25f70e=_0x2b6ad7['label'],_0xdc5f8d=_0x4506b8(_0x25f70e)['toLowerCase']()),{'type':'format','content':o(_0x35de22,'*Set\x20font\x20background\x20color:*\x20%0',_0xdc5f8d)['trim'](),'color':{'value':_0x407797,'title':_0xdc5f8d||_0x25f70e}};}return{'type':'format','content':o(_0x35de22,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5a00b1{['afterInit'](){const _0x47b2de=this['editor'],_0x43fd82=_0x47b2de['plugins']['get']('TrackChangesEditing'),_0x3b725a=_0x47b2de['commands']['get']('copyFormat'),_0x126b6d=_0x47b2de['commands']['get']('pasteFormat');_0x3b725a&&_0x126b6d&&(_0x43fd82['enableDefaultAttributesIntegration']('pasteFormat'),_0x43fd82['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f85b4=this['editor'],_0x379466=_0x4f85b4['locale'];_0x4f85b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52eb5b=>{if('formatBlock'!=_0x52eb5b['type']&&'formatInline'!=_0x52eb5b['type'])return;const {data:_0x49d635}=_0x52eb5b;if(_0x49d635&&'pasteFormat'===_0x49d635['commandName']){const _0x65862f=[],_0x53c2fe=_0x49d635['commandParams'][0x0];for(const [_0x445498,_0x10353b]of Object['entries'](_0x53c2fe))_0x65862f['push'](ro(_0x4f85b4,_0x445498,_0x10353b));return _0x65862f['length']?{'type':'format','content':o(_0x379466,'*Set\x20format\x20to:*\x20%0',_0x65862f['join'](',\x20'))}:{'type':'format','content':o(_0x379466,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x16a802,_0x2208fa,_0x3bc7c5){const _0x44b4f1=_0x16a802['locale']['t'],_0x51b2b7=_0x2208fa['split'](/(?=[A-Z])/)['join']('\x20'),_0x2851a0=_0x44b4f1(_0x51b2b7['charAt'](0x0)['toUpperCase']()+_0x51b2b7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3bc7c5)return _0x2851a0;if('fontColor'===_0x2208fa||'fontBackgroundColor'===_0x2208fa){const _0x54c215=_0x140e92(_0x16a802['config']['get']('fontColor.colors'))['find'](_0x3d4ef1=>_0x3d4ef1['model']==_0x3bc7c5);return _0x2851a0+'\x20('+(_0x54c215?_0x44b4f1(_0x54c215['label'])['toLowerCase']():_0x3bc7c5)+')';}if('fontSize'===_0x2208fa&&isNaN(parseFloat(_0x3bc7c5))){const _0x58370f=_0x16a802['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x16a802['config']['get']('fontSize.options'))['find'](_0x36c0b4=>_0x36c0b4['model']==_0x3bc7c5);return _0x2851a0+'\x20('+(_0x58370f?_0x44b4f1(_0x58370f['title'])['toLowerCase']():_0x3bc7c5)+')';}return _0x2851a0+'\x20('+_0x3bc7c5+')';}class nt extends _0x5a00b1{['_headingOptions'];['afterInit'](){const _0x6f15ba=this['editor'];if(!_0x6f15ba['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x6f15ba['config']['get']('heading.options');const _0xcfaf77=_0x6f15ba['locale'],_0x153d4c=_0x6f15ba['plugins']['get']('TrackChangesEditing');_0x153d4c['enableDefaultAttributesIntegration']('heading');for(const _0x5f48e3 of this['_headingOptions'])'paragraph'!=_0x5f48e3['model']&&_0x153d4c['descriptionFactory']['registerElementLabel'](_0x5f48e3['model'],_0x115600=>{const _0x5ec2ed=this['_getHeadingLevel'](_0x5f48e3['model']);return null!==_0x5ec2ed?_0x1affd4(_0x115600,_0x5ec2ed):_0x339f20(_0x115600,_0x5f48e3['title']);});function _0x1affd4(_0x1d3db9,_0x43d563){return o(_0xcfaf77,'ELEMENT_HEADING',[_0x1d3db9,_0x43d563]);}function _0x339f20(_0x319064,_0x4e0398){return o(_0xcfaf77,'ELEMENT_HEADING_CUSTOM',[_0x319064,_0x4e0398]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f360d=this['editor'],_0x766b01=_0x8f360d['locale'];function _0x3f4333(_0x5544e1,_0x461332){return o(_0x766b01,'ELEMENT_HEADING_CUSTOM',[_0x5544e1,_0x461332]);}_0x8f360d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x91301c=>{if('formatBlock'!=_0x91301c['type'])return;const {data:_0x23e6a5}=_0x91301c;if(_0x23e6a5&&'heading'==_0x23e6a5['commandName']){const _0x486620=_0x23e6a5['commandParams'][0x0]['value'],_0x3d7a08=this['_getHeadingLevel'](_0x486620);if(null!==_0x3d7a08)return{'type':'format','content':o(_0x766b01,'*Change\x20to:*\x20%0',(_0x1e1a9a=0x1,_0x56fd60=_0x3d7a08,o(_0x766b01,'ELEMENT_HEADING',[_0x1e1a9a,_0x56fd60])))};const _0x484514=this['_headingOptions']['find'](_0x4729f0=>_0x4729f0['model']===_0x486620)['title'];return{'type':'format','content':o(_0x766b01,'*Change\x20to:*\x20%0',_0x3f4333(0x1,_0x484514))};}var _0x1e1a9a,_0x56fd60;});}['_getHeadingLevel'](_0xc36112){const _0x24acfb=_0xc36112['match'](/^heading(\d+)/);if(_0x24acfb)return _0x24acfb[0x1];const _0x3038ea=this['_headingOptions']?.['find'](_0x5f61ce=>_0x5f61ce['model']==_0xc36112);if(_0x3038ea&&_0x3038ea['view']){const _0x1c1ea1=_0x3038ea['view'],_0x532324=(_0x1c1ea1['name']??_0x1c1ea1)['match'](/^h(\d+)/);if(_0x532324)return _0x532324[0x1];}return null;}}class st extends _0x5a00b1{['afterInit'](){const _0x5818dd=this['editor'];if(!_0x5818dd['plugins']['has']('HighlightEditing'))return;const _0x4dfb66=_0x5818dd['plugins']['get']('TrackChangesEditing'),_0x49f73b=_0x5818dd['locale'];_0x4dfb66['enableDefaultAttributesIntegration']('highlight'),_0x4dfb66['registerInlineAttribute']('highlight'),_0x4dfb66['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x49f73b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329a01=this['editor'],_0x285555=_0x329a01['locale'];_0x329a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5518f8=>{if('formatInline'!=_0x5518f8['type'])return;const {data:_0x234844}=_0x5518f8;if(_0x234844&&'highlight'==_0x234844['commandName']){const _0xfacaa9=_0x285555['t'],_0xb888ad=_0x234844['commandParams'][0x0]['value'];if(_0xb888ad){const _0x5b46f6=_0x329a01['config']['get']('highlight.options')['find'](_0xa0b623=>_0xa0b623['model']==_0xb888ad),_0x4b8c49=_0xfacaa9(_0x5b46f6['title'])['toLowerCase']();return{'type':'format','content':o(_0x285555,'*Set\x20highlight:*\x20%0',_0x4b8c49),'color':{'value':_0x5b46f6['color'],'title':_0x5b46f6['title']}};}return{'type':'format','content':o(_0x285555,'*Remove\x20highlight*',o(_0x285555,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x5a00b1{['afterInit'](){const _0x31f6e0=this['editor'];if(!_0x31f6e0['plugins']['has']('HorizontalLineEditing'))return;_0x31f6e0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x151bd6=_0x31f6e0['plugins']['get']('TrackChangesEditing'),_0x58aeb2=_0x31f6e0['locale'];_0x151bd6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x587620=>o(_0x58aeb2,'ELEMENT_HORIZONTAL_LINE',_0x587620)),_0x31f6e0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x7ab349,{writer:_0x1ddcf0,options:_0x41696f})=>{if(!_0x41696f['showSuggestionHighlights'])return null;const _0x1603fc=_0x1ddcf0['createContainerElement']('div'),_0x1b6e20=_0x1ddcf0['createEmptyElement']('hr');return _0x1ddcf0['addClass']('ck-horizontal-line',_0x1603fc),_0x1ddcf0['insert'](_0x1ddcf0['createPositionAt'](_0x1603fc,0x0),_0x1b6e20),_0x1603fc;},'converterPriority':'high'});}}class rt extends _0x5a00b1{['afterInit'](){const _0x2913ff=this['editor'];if(!_0x2913ff['plugins']['has']('HtmlEmbed'))return;const _0x1c15e9=_0x2913ff['plugins']['get']('TrackChangesEditing'),_0x456cbd=_0x2913ff['locale'];_0x1c15e9['descriptionFactory']['registerElementLabel']('rawHtml',_0x4a2f05=>o(_0x456cbd,'ELEMENT_HTML_EMBED',_0x4a2f05)),_0x1c15e9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1c15e9['registerBlockAttribute']('value'),_0x1c15e9['descriptionFactory']['registerDescriptionCallback'](_0x1bdf41=>{if('attribute'!=_0x1bdf41['type'])return;const {data:_0x12fea1}=_0x1bdf41;if(_0x12fea1&&'value'==_0x12fea1['key']&&_0x1bdf41['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x22f6a8=o(_0x456cbd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x456cbd,'*Change\x20%0\x20content*',_0x22f6a8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91197b=this['editor'],_0x53ca8a=_0x91197b['locale'];_0x91197b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22d0ad=>{if('formatBlock'!=_0x22d0ad['type'])return;const {data:_0x3ca9a5}=_0x22d0ad;if(_0x3ca9a5&&'htmlEmbed'==_0x3ca9a5['commandName']){const _0x280c40=o(_0x53ca8a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53ca8a,'*Change\x20%0\x20content*',_0x280c40)};}});}}class at extends _0x5a00b1{['afterInit'](){const _0xb3ad8=this['editor'];if(!_0xb3ad8['plugins']['has']('ImageEditing'))return;const _0x35fb96=_0xb3ad8['plugins']['get']('TrackChangesEditing'),_0x5049d6=_0xb3ad8['plugins']['get']('ImageUtils'),_0x297289=_0xb3ad8['locale'];_0x35fb96['enableCommand']('insertImage'),_0x35fb96['descriptionFactory']['registerElementLabel']('imageBlock',_0x1a12d3=>o(_0x297289,'ELEMENT_IMAGE',_0x1a12d3)),_0x35fb96['descriptionFactory']['registerElementLabel']('imageInline',_0x4f172d=>o(_0x297289,'ELEMENT_INLINE_IMAGE',_0x4f172d)),_0x35fb96['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x297289,'ELEMENT_CAPTION')),_0xb3ad8['plugins']['has']('ImageUploadEditing')&&_0x35fb96['enableCommand']('uploadImage'),_0xb3ad8['plugins']['has']('ImageBlockEditing')&&_0xb3ad8['plugins']['has']('ImageInlineEditing')&&(_0x35fb96['enableCommand']('imageTypeInline',(_0x5c1a31,_0x4c696c)=>{const _0x5e7484=_0x5049d6['getClosestSelectedImageElement'](_0xb3ad8['model']['document']['selection']);_0xb3ad8['model']['change'](()=>{_0x35fb96['markBlockFormat'](_0x5e7484,{'commandName':'imageTypeInline','commandParams':[_0x4c696c]},[],'convertBlockImageToInline');});}),_0x35fb96['enableCommand']('imageTypeBlock',(_0x1dd7d3,_0x3cfed4)=>{_0xb3ad8['model']['change'](_0x536820=>{let _0x4b97a7=_0x5049d6['getClosestSelectedImageElement'](_0xb3ad8['model']['document']['selection']),_0x3c757e=_0x536820['createRangeOn'](_0x4b97a7);const _0xa6312d=_0x11f786['fromPosition'](_0x3c757e['start'],'toPrevious'),_0x4712f5=_0x11f786['fromPosition'](_0x3c757e['end'],'toNext');_0x35fb96['forceDefaultExecution'](()=>_0x1dd7d3(_0x3cfed4)),_0x4b97a7=_0x5049d6['getClosestSelectedImageElement'](_0xb3ad8['model']['document']['selection']),_0x3c757e=_0x536820['createRangeOn'](_0x4b97a7);const _0x4f8560=_0x536820['createRange'](_0xa6312d,_0x4712f5);_0xa6312d['detach'](),_0x4712f5['detach'](),_0x35fb96['markBlockFormat'](_0x4b97a7,{'commandName':'imageTypeInline','commandParams':[_0x3cfed4]},[],'convertInlineImageToBlock'),_0x4f8560['start']['isBefore'](_0x3c757e['start'])&&_0x35fb96['markInsertion'](_0x536820['createRange'](_0x4f8560['start'],_0x3c757e['start']),'convertInlineImageToBlock'),_0x3c757e['end']['isBefore'](_0x4f8560['end'])&&_0x35fb96['markInsertion'](_0x536820['createRange'](_0x3c757e['end'],_0x4f8560['end']),'convertInlineImageToBlock');});}),_0x35fb96['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35fb96['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35fb96['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35fb96['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35fb96['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35fb96['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x281f04])=>{const _0x140665=_0x35fb96['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x589776=_0x281f04['start'],_0x465cfa=_0x281f04['end'];const _0x479d2c=_0xb3ad8['model']['schema']['getNearestSelectionRange'](_0x589776,'backward'),_0x21b793=_0xb3ad8['model']['schema']['getNearestSelectionRange'](_0x465cfa,'forward');_0x479d2c['isCollapsed']&&(_0x589776=_0x479d2c['start']),_0x21b793['isCollapsed']&&(_0x465cfa=_0x21b793['end']),_0x140665([_0xb3ad8['model']['createRange'](_0x589776,_0x465cfa)]);}),_0x35fb96['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3f4ca2),_0x35fb96['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3f4ca2)),_0xb3ad8['plugins']['has']('ImageCaptionEditing')&&(_0x35fb96['enableCommand']('toggleImageCaption',(_0x22f132,_0x477860)=>{const _0x14f327=_0xb3ad8['plugins']['get']('ImageCaptionUtils');let _0x3ea087=_0x5049d6['getClosestSelectedImageElement'](_0xb3ad8['model']['document']['selection']),_0x3218b7=_0x14f327['getCaptionFromImageModelElement'](_0x3ea087);_0xb3ad8['model']['change'](()=>{if(_0x3218b7)return void _0x35fb96['markDeletion'](_0xb3ad8['model']['createRangeOn'](_0x3218b7));const _0x32f995=_0x5049d6['isBlockImage'](_0x3ea087);_0x22f132(_0x477860),_0x3ea087=_0x5049d6['getClosestSelectedImageElement'](_0xb3ad8['model']['document']['selection']),_0x3218b7=_0x14f327['getCaptionFromImageModelElement'](_0x3ea087),_0x35fb96['markInsertion'](_0xb3ad8['model']['createRangeOn'](_0x3218b7),_0x32f995?null:'imageCaption');});}),_0x35fb96['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3f4ca2));const _0x384290=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa1e0d0(_0x2fcbdf,_0xd1aa3d){const _0x55f826=_0x384290['findIndex'](({type:_0x1321ac,subType:_0x273766})=>_0x2fcbdf['type']==_0x1321ac&&_0x2fcbdf['subType']==_0x273766),_0x203412=_0x384290['findIndex'](({type:_0x2def6c,subType:_0x24cfe6})=>_0xd1aa3d['type']==_0x2def6c&&_0xd1aa3d['subType']==_0x24cfe6);if(_0x55f826<0x0||_0x203412<0x0)return!0x1;const _0x4447ec=_0x2fcbdf['getFirstRange'](),_0x3b93ef=_0xd1aa3d['getFirstRange']();if((0x0==_0x55f826||0x1==_0x55f826)&&0x2==_0x203412&&_0x4447ec['isIntersecting'](_0x3b93ef))return!0x0;if(0x2==_0x55f826&&0x3==_0x203412){const _0x432919=_0x35fb96['_findSuggestions'](_0x4447ec,'insertion')['filter'](({suggestion:_0x43f761,meta:_0x4d740a})=>_0x4d740a['isOwn']&&'convertInlineImageToBlock'==_0x43f761['subType']);if(_0x432919['length']>0x1&&_0x3b93ef['end']['isEqual'](_0x4447ec['start']))return!0x0;if(0x1==_0x432919['length']&&(_0x4447ec['start']['isEqual'](_0x3b93ef['end'])||_0x4447ec['end']['isEqual'](_0x3b93ef['start'])))return!0x0;}if(0x3==_0x55f826&&0x3==_0x203412&&_0x4447ec['start']['isBefore'](_0x3b93ef['start'])){const _0x39c244=_0x4447ec['end']['nodeAfter'],_0x594d2a=_0x3b93ef['start']['nodeBefore'];return _0x5049d6['isBlockImage'](_0x39c244)&&_0x39c244===_0x594d2a;}return!0x1;}function _0x3f4ca2(_0x5cbdfc,_0x480a1b){return _0xa1e0d0(_0x5cbdfc,_0x480a1b)?[_0x5cbdfc,_0x480a1b]:_0xa1e0d0(_0x480a1b,_0x5cbdfc)?[_0x480a1b,_0x5cbdfc]:null;}_0xb3ad8['plugins']['has']('ImageResize')&&(_0x35fb96['enableDefaultAttributesIntegration']('resizeImage'),_0x35fb96['registerBlockAttribute']('resizedWidth'),_0x35fb96['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x297289,'FORMAT_IMAGE_SIZE'))),_0xb3ad8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x35fb96['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x35fb96['registerBlockAttribute']('alt')),_0xb3ad8['plugins']['has']('PictureEditing')&&(_0x35fb96['registerBlockAttribute']('sources'),_0x35fb96['descriptionFactory']['registerDescriptionCallback'](_0xb7f099=>{if('attribute'!=_0xb7f099['type'])return;const {data:_0x2f64e5}=_0xb7f099;return _0x2f64e5&&'sources'==_0x2f64e5['key']?{'type':'format','content':''}:void 0x0;})),_0xb3ad8['plugins']['has']('ImageSizeAttributes')&&(_0x35fb96['registerBlockAttribute']('width'),_0x35fb96['registerBlockAttribute']('height'),_0x35fb96['descriptionFactory']['registerDescriptionCallback'](_0x407762=>{if('attribute'!=_0x407762['type'])return;const {data:_0x24f230}=_0x407762;return!_0x24f230||'width'!=_0x24f230['key']&&'height'!=_0x24f230['key']?void 0x0:{'type':'format','content':''};})),_0x35fb96['descriptionFactory']['registerDescriptionCallback'](_0x1b322f=>{if(!!_0x384290['find'](({type:_0x134189,subType:_0x602046})=>_0x1b322f['type']==_0x134189&&_0x1b322f['subType']==_0x602046))return _0x1b322f['previous']?{}:void 0x0;}),_0x35fb96['descriptionFactory']['registerDescriptionCallback'](_0xc2354=>{if('insertion'==_0xc2354['type']||'deletion'==_0xc2354['type']){const _0x37358d=_0xc2354['getContainedElement']();if(_0x37358d&&_0x37358d['is']('element','caption'))return{'type':'insertion'==_0xc2354['type']?'addObject':'removeObject','element':_0x37358d,'quantity':0x1};}}),_0x35fb96['descriptionFactory']['registerDescriptionCallback'](_0x21ec7b=>'formatBlock'==_0x21ec7b['type']&&'convertInlineImageToBlock'==_0x21ec7b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x21ec7b['type']&&'convertBlockImageToInline'==_0x21ec7b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35fb96['descriptionFactory']['registerDescriptionCallback'](_0x13a702=>{if('attribute'!=_0x13a702['type'])return;const {data:_0x38798b}=_0x13a702;if(!_0x38798b||'alt'!=_0x38798b['key'])return;const _0x5f2517=_0x38798b['newValue'];return _0x5f2517?{'type':'format','content':o(_0x297289,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5f2517+'\x22')}:{'type':'format','content':o(_0x297289,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a289e=this['editor'],_0xbcd1f3=_0x3a289e['locale'];_0x3a289e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b531=>{if('formatBlock'!=_0x19b531['type']&&'formatInline'!=_0x19b531['type'])return;const {data:_0x20d13b}=_0x19b531;if(_0x20d13b){if('imageTextAlternative'==_0x20d13b['commandName']){const _0x37ebf6=_0x20d13b['commandParams'][0x0]['newValue'];return _0x37ebf6?{'type':'format','content':o(_0xbcd1f3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37ebf6+'\x22')}:{'type':'format','content':o(_0xbcd1f3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20d13b['commandName']){const _0x5a94ea=_0x20d13b['commandParams'][0x0]['width'];return _0x5a94ea?{'type':'format','content':o(_0xbcd1f3,'*Set\x20image\x20width:*\x20%0',_0x5a94ea)}:{'type':'format','content':o(_0xbcd1f3,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x5a00b1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xb68628=this['editor']['locale'],_0x48212e=this['editor']['plugins']['get']('TrackChangesEditing');_0x48212e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x48212e['registerBlockAttribute']('src'),_0x48212e['descriptionFactory']['registerDescriptionCallback'](_0x45f48a=>{if('attribute'!=_0x45f48a['type'])return;const {data:_0x5e3610}=_0x45f48a;return _0x5e3610&&'src'==_0x5e3610['key']?_0x5e3610['newValue']&&_0x5e3610['oldValue']?{'type':'format','content':o(_0xb68628,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1ca441=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ca441['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1ca441['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ca441['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1ca441['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2aa0d3=this['editor'],_0x175fda=_0x2aa0d3['locale'];_0x2aa0d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36c2d4=>{if('formatBlock'!=_0x36c2d4['type']&&'formatInline'!=_0x36c2d4['type'])return;const {data:_0x35fc41}=_0x36c2d4;if(!_0x35fc41||'replaceImageSource'!=_0x35fc41['commandName'])return;return{'type':'format','content':o(_0x175fda,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x5a00b1{['afterInit'](){const _0x18f6d4=this['editor'];if(!_0x18f6d4['plugins']['has']('ImageStyleEditing'))return;const _0x47f0e4=_0x18f6d4['plugins']['get']('TrackChangesEditing'),_0x975e83=_0x18f6d4['plugins']['get']('ImageUtils'),_0x4a604b={};_0x47f0e4['enableCommand']('imageStyle',(_0x25d6cc,_0x27678d)=>{const _0x13838b=_0x18f6d4['plugins']['get']('Users')['me'],_0x5b6241=_0x18f6d4['commands']['get']('imageStyle');let _0x4cef3c=_0x975e83['getClosestSelectedImageElement'](_0x18f6d4['model']['document']['selection']),_0x16d022=_0x18f6d4['model']['createRangeOn'](_0x4cef3c),_0x29a7e6=_0x5b6241['value'];if(_0x29a7e6==_0x27678d['value'])return;const _0x1d14f6={'commandName':'imageStyle','commandParams':[_0x27678d],'formatGroupId':_0x220d6b()};_0x18f6d4['model']['change'](()=>{if(_0x47f0e4['getSuggestions']()['filter'](_0x2cd8bb=>_0x2cd8bb['isInContent']&&_0x13838b==_0x2cd8bb['author']&&('formatBlock'==_0x2cd8bb['type']||'formatInline'==_0x2cd8bb['type'])&&('imageStylePreApply'==_0x2cd8bb['subType']||'imageStylePostApply'==_0x2cd8bb['subType'])&&_0x2cd8bb['getFirstRange']()['isEqual'](_0x16d022))['forEach'](_0x51ec68=>_0x47f0e4['discardSuggestion'](_0x51ec68['head'])),_0x4cef3c=_0x975e83['getClosestSelectedImageElement'](_0x18f6d4['model']['document']['selection']),_0x16d022=_0x18f6d4['model']['createRangeOn'](_0x4cef3c),_0x5b6241['refresh'](),_0x18f6d4['commands']['get']('imageTypeInline')['refresh'](),_0x18f6d4['commands']['get']('imageTypeBlock')['refresh'](),_0x29a7e6=_0x5b6241['value'],_0x29a7e6!=_0x27678d['value'])return _0x975e83['isInlineImage'](_0x4cef3c)&&_0x5b6241['shouldConvertImageType'](_0x27678d['value'],_0x4cef3c)?(_0x25d6cc({..._0x27678d,'setImageSizes':!0x1}),_0x4cef3c=_0x975e83['getClosestSelectedImageElement'](_0x18f6d4['model']['document']['selection']),void _0x47f0e4['markBlockFormat'](_0x4cef3c,{..._0x1d14f6,'commandReversedParams':[{'value':_0x29a7e6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x975e83['isBlockImage'](_0x4cef3c)?_0x47f0e4['markBlockFormat'](_0x4cef3c,_0x1d14f6,[],'imageStylePostApply'):_0x47f0e4['markInlineFormat'](_0x16d022,_0x1d14f6,'imageStylePostApply'));});});for(const _0x58ff80 of _0x18f6d4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4a604b[_0x58ff80['name']]=_0x58ff80['title']['toLowerCase']();_0x47f0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47f0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47f0e4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47f0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x25634e])=>{_0x975e83['setImageNaturalSizeAttributes'](_0x25634e['getContainedElement']());}),_0x47f0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x131d97,_0x441506)=>{_0x47f0e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x131d97,{'commandName':_0x441506['commandName'],'commandParams':_0x441506['commandReversedParams']});}),_0x47f0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x224b87,_0x34124e){if(_0x5c352b(_0x224b87,_0x34124e))return[_0x224b87,_0x34124e];if(_0x5c352b(_0x34124e,_0x224b87))return[_0x34124e,_0x224b87];return null;});const _0x5e02f1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c352b(_0x57bfc1,_0x5d1702){const _0x169911=_0x5e02f1['findIndex'](({type:_0x63f9,subType:_0x1cda25})=>_0x57bfc1['type']==_0x63f9&&_0x57bfc1['subType']==_0x1cda25),_0x2cf15b=_0x5e02f1['findIndex'](({type:_0x1dccb5,subType:_0x5a966c})=>_0x5d1702['type']==_0x1dccb5&&_0x5d1702['subType']==_0x5a966c);if(_0x169911<0x0||_0x2cf15b<0x0)return!0x1;const _0x164c53=_0x57bfc1['getFirstRange'](),_0xf077e2=_0x5d1702['getFirstRange']();if((0x0==_0x169911||0x1==_0x169911)&&0x2==_0x2cf15b&&_0x164c53['isIntersecting'](_0xf077e2))return!0x0;if(0x2==_0x169911&&0x3==_0x2cf15b){const _0x2ed662=_0x47f0e4['_findSuggestions'](_0x164c53,'insertion')['filter'](({suggestion:_0x2aefd0,meta:_0x330100})=>_0x330100['isOwn']&&'convertInlineImageToBlock'==_0x2aefd0['subType']);if(_0x2ed662['length']>0x1&&_0xf077e2['end']['isEqual'](_0x164c53['start']))return!0x0;if(0x1==_0x2ed662['length']&&(_0x164c53['start']['isEqual'](_0xf077e2['end'])||_0x164c53['end']['isEqual'](_0xf077e2['start'])))return!0x0;}if(0x3==_0x169911&&0x3==_0x2cf15b&&_0x164c53['start']['isBefore'](_0xf077e2['start'])){const _0x2c956a=_0x164c53['end']['nodeAfter'],_0x5ead15=_0xf077e2['start']['nodeBefore'];return _0x975e83['isBlockImage'](_0x2c956a)&&_0x2c956a===_0x5ead15;}return!0x1;}_0x18f6d4['model']['document']['registerPostFixer'](()=>{let _0x53bfd5=!0x1;const _0x5d07a1=Array['from'](_0x18f6d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x244ae2,data:_0x10065d}of _0x5d07a1){const {group:_0x4d9707,type:_0x1d4e5f,subType:_0x4bdd7e,id:_0xac727b}=_0x47f0e4['_splitMarkerName'](_0x244ae2);if('suggestion'==_0x4d9707&&_0x47f0e4['hasSuggestion'](_0xac727b)){if('formatBlock'==_0x1d4e5f&&('imageStylePreApply'==_0x4bdd7e||'imageStylePostApply'==_0x4bdd7e)){const _0x38059b=_0x47f0e4['getSuggestion'](_0xac727b);if(_0x10065d['newRange']){const _0x161003=_0x38059b['getFirstRange']()['getContainedElement']();if(_0x975e83['isBlockImage'](_0x161003))continue;_0x47f0e4['discardSuggestion'](_0x38059b),_0x53bfd5=!0x0;}}if('insertion'==_0x1d4e5f&&'imageCaption'==_0x4bdd7e&&!_0x10065d['newRange']){const _0x432983=_0x47f0e4['getSuggestion'](_0xac727b);_0x432983['next']&&_0x432983['next']['isInContent']&&(_0x47f0e4['discardSuggestion'](_0x432983['next']),_0x53bfd5=!0x0);}}}return _0x53bfd5;}),this['_registerLegacyDescription'](_0x4a604b);}['_registerLegacyDescription'](_0x8dcdc1){const _0x21da37=this['editor'],_0x3ad7ac=_0x21da37['locale'];_0x21da37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32ef0a=>{if('formatBlock'!=_0x32ef0a['type']&&'formatInline'!=_0x32ef0a['type'])return;const {data:_0x2f2cfc}=_0x32ef0a;if(!_0x2f2cfc||'imageStyle'!=_0x2f2cfc['commandName'])return;const _0x1deed6=_0x2f2cfc['commandParams'][0x0]['value'];return _0x2eaacb('side'===_0x1deed6?o(_0x3ad7ac,'FORMAT_SIDE_IMAGE'):_0x8dcdc1[_0x1deed6]||_0x1deed6);function _0x2eaacb(_0x430125){return{'type':'format','content':o(_0x3ad7ac,'*Format:*\x20%0',_0x430125)};}});}}class ft extends _0x5a00b1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3fd7b9){super(_0x3fd7b9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x25b899=this['editor'],_0x455ffc=_0x25b899['commands']['get']('importWord'),_0x42619f=_0x25b899['commands']['get']('trackChanges');_0x455ffc&&(_0x455ffc['on']('execute',(_0x1c58ed,[,_0x26fe29])=>{this['_trackChangesValueDuringImport']=_0x42619f['value'],_0x26fe29['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x455ffc,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x455ffc,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x42619f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x25b899['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x400a27,_0x148263){const {suggestions:_0x3e7bc4}=_0x148263,_0x3cc55d=this['editor']['commands']['get']('trackChanges'),_0x580c2e=_0x3cc55d['value'];this['_trackChangesValueDuringImport']!==_0x580c2e&&(_0x3cc55d['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e7bc4&&_0x3e7bc4['forEach'](({id:_0x4a6137,type:_0x237cd2,author:_0x1c4e7b,created_at:_0x2eda92})=>{const _0x7d0f8f={'id':_0x4a6137,'type':_0x237cd2,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c4e7b,'createdAt':_0x2eda92?new Date(_0x2eda92):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7d0f8f);});}}class ht extends _0x5a00b1{['afterInit'](){const _0x3d6520=this['editor'],_0x565d52=_0x3d6520['plugins']['get']('TrackChangesEditing');if(_0x3d6520['plugins']['has']('IndentEditing')&&(_0x565d52['enableCommand']('indent'),_0x565d52['enableCommand']('outdent')),_0x3d6520['plugins']['has']('IndentBlock')){for(const _0xa2b069 of['indentBlock','outdentBlock'])_0x565d52['enableDefaultAttributesIntegration'](_0xa2b069);}const _0x2b4ad3=_0x3d6520['locale'];_0x565d52['registerBlockAttribute']('blockIndent'),_0x565d52['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2b4ad3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47419e=this['editor'],_0x285588=_0x47419e['locale'],_0x534496=_0x47419e['plugins']['get']('TrackChangesEditing');_0x534496['descriptionFactory']['registerDescriptionCallback'](_0x392f37=>{if('formatBlock'!=_0x392f37['type'])return;const {data:_0x4185db}=_0x392f37;if(!_0x4185db)return;if('indentBlock'!=_0x4185db['commandName']&&'outdentBlock'!=_0x4185db['commandName'])return;const _0x2553f9=_0x392f37['getItems']()[0x0],_0x6c3cb9=_0x534496['descriptionFactory']['getItemLabel'](_0x2553f9);return'indentBlock'==_0x4185db['commandName']?{'type':'format','content':o(_0x285588,'*Indent:*\x20%0',_0x6c3cb9)}:'outdentBlock'==_0x4185db['commandName']?{'type':'format','content':o(_0x285588,'*Outdent:*\x20%0',_0x6c3cb9)}:void 0x0;});}}class gt extends _0x5a00b1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5a00b1{['afterInit'](){const _0xae51d9=this['editor'];if(!_0xae51d9['plugins']['has']('LinkEditing'))return;const _0x1ea85a=_0xae51d9['plugins']['get']('TrackChangesEditing'),_0x234dcc=_0xae51d9['commands']['get']('link');_0x1ea85a['enableDefaultAttributesIntegration']('link'),_0x1ea85a['enableDefaultAttributesIntegration']('unlink'),_0x1ea85a['registerInlineAttribute']('linkHref');for(const _0x39eeec of _0x234dcc['manualDecorators'])_0x1ea85a['registerInlineAttribute'](_0x39eeec['id']),_0x1ea85a['descriptionFactory']['registerAttributeLabel'](_0x39eeec['id'],'link\x20('+_0x39eeec['label']['toLowerCase']()+')');_0x1ea85a['descriptionFactory']['registerDescriptionCallback'](_0x1686d7=>{if('attribute'!=_0x1686d7['type'])return;const {data:_0x539494}=_0x1686d7;if(!_0x539494||'linkHref'!=_0x539494['key'])return;const _0x3e081c=_0x539494['newValue'],_0x5a87dc=_0xae51d9['locale'];return{'type':'format','content':null==_0x3e081c?o(_0x5a87dc,'*Remove\x20link*'):o(_0x5a87dc,'*Set\x20link:*\x20%0','\x22'+_0x3e081c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe0d564=this['editor'],_0x53b81d=_0xe0d564['locale'];_0xe0d564['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593ebb=>{if('formatInline'!=_0x593ebb['type'])return;const {data:_0x4bee87}=_0x593ebb;if(_0x4bee87){if('link'==_0x4bee87['commandName']){const _0x71387b=_0x4bee87['commandParams'][0x0];return{'type':'format','content':o(_0x53b81d,'*Set\x20link:*\x20%0','\x22'+_0x71387b+'\x22')};}return'unlink'==_0x4bee87['commandName']?{'type':'format','content':o(_0x53b81d,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x5a00b1{['afterInit'](){const _0x2bf9a4=this['editor'],_0x1eb453=_0x2bf9a4['locale'];if(!_0x2bf9a4['plugins']['has']('LegacyListEditing'))return;const _0x20a6e9=_0x2bf9a4['plugins']['get']('TrackChangesEditing'),_0x4faaec=_0x2bf9a4['plugins']['has']('LegacyTodoListEditing');function _0x1aa744(_0x3a26f0){return()=>{const _0x66f94=_0x2bf9a4['model']['document']['selection'],_0x5963f8=_0x2bf9a4['commands']['get'](_0x3a26f0);if(_0x5963f8['value'])return void _0x2bf9a4['execute']('paragraph',{});const _0x5c61ee=_0x3a26f0['slice'](0x0,-0x4),_0x2b45cd=function(_0x3979ba,_0x2ab3a8,_0x45abcd){let _0xca2de9=Array['from'](_0x3979ba)['filter'](_0x1c1759=>function(_0x82266e,_0x14f6c8){return _0x14f6c8['checkChild'](_0x82266e['parent'],'listItem')&&!_0x14f6c8['isObject'](_0x82266e);}(_0x1c1759,_0x45abcd));_0xca2de9=_0xca2de9['filter'](_0x29333=>!_0x29333['is']('element','listItem')||_0x29333['getAttribute']('listType')!=_0x2ab3a8);const _0x7ac720=new Set();for(const _0x1ddd42 of _0xca2de9)_0x1ddd42['is']('element','listItem')?_0x7ac720['add'](Ne(_0x1ddd42)):_0x7ac720['add'](_0x1ddd42);return Array['from'](_0x7ac720);}(_0x66f94['getSelectedBlocks'](),_0x5c61ee,_0x2bf9a4['model']['schema']);_0x2bf9a4['model']['change'](()=>{for(const _0x20cbee of _0x2b45cd)_0x20a6e9['markBlockFormat'](_0x20cbee,{'commandName':_0x3a26f0,'commandParams':[{'forceValue':!_0x5963f8['value']}],'formatGroupId':'blockName'},Se(_0x20cbee));});};}function _0x2f7d59(_0x485c0a){return()=>{const _0x959a15=function(_0x194b14){let _0x3517d3=Array['from'](_0x194b14);const _0x160f13=_0x3517d3['findIndex'](_0x21253d=>'listItem'!=_0x21253d['name']);return _0x160f13>-0x1&&(_0x3517d3=_0x3517d3['slice'](0x0,_0x160f13)),_0x3517d3;}(_0x2bf9a4['model']['document']['selection']['getSelectedBlocks']()),_0x4af3f0=_0x2bf9a4['model']['createRange'](_0x2bf9a4['model']['createPositionAt'](_0x959a15[0x0],'before'),_0x2bf9a4['model']['createPositionAt'](_0x959a15[_0x959a15['length']-0x1],'end'));_0x2bf9a4['model']['change'](()=>{_0x20a6e9['markBlockFormat'](_0x4af3f0,{'commandName':_0x485c0a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x49933e){const _0x3bd1d9=new Set();for(const _0x2100c3 of _0x49933e){let _0x5bf8d3=_0x2100c3['nextSibling'];for(;_0x5bf8d3&&_0x5bf8d3['getAttribute']('listIndent')>_0x2100c3['getAttribute']('listIndent');)_0x3bd1d9['add'](_0x5bf8d3),_0x5bf8d3=_0x5bf8d3['nextSibling'];}return Array['from'](_0x3bd1d9);}(_0x959a15));});};}_0x20a6e9['enableCommand']('numberedList',_0x1aa744('numberedList')),_0x20a6e9['enableCommand']('bulletedList',_0x1aa744('bulletedList')),_0x4faaec&&_0x20a6e9['enableCommand']('todoList',_0x1aa744('todoList')),_0x20a6e9['enableCommand']('indentList',_0x2f7d59('indentList')),_0x20a6e9['enableCommand']('outdentList',_0x2f7d59('outdentList')),_0x4faaec&&_0x20a6e9['enableCommand']('checkTodoList',()=>{const _0x5a49b4=_0x2bf9a4['commands']['get']('checkTodoList'),_0x177d86=Array['from'](_0x5a49b4['_selectedElements']);_0x177d86['filter'](_0x5b9fe3=>_0x5b9fe3['getAttribute']('todoListChecked')!=_0x5a49b4['value']),_0x2bf9a4['model']['change'](()=>{for(const _0x30eac1 of _0x177d86)_0x20a6e9['markBlockFormat'](_0x30eac1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5a49b4['value']}]});});}),_0x20a6e9['descriptionFactory']['registerElementLabel']('listItem',_0x22d6ae=>o(_0x1eb453,'ELEMENT_LIST_ITEM',_0x22d6ae)),_0x20a6e9['descriptionFactory']['registerDescriptionCallback'](_0x155392=>{if('formatBlock'!=_0x155392['type']&&'formatInline'!=_0x155392['type'])return;const {data:_0x63792f}=_0x155392;if(_0x63792f){if('numberedList'==_0x63792f['commandName']||'bulletedList'==_0x63792f['commandName']||'todoList'==_0x63792f['commandName'])switch(_0x63792f['commandName']['replace']('List','')){case'bulleted':return _0x4972db(o(_0x1eb453,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4972db(o(_0x1eb453,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4972db(o(_0x1eb453,'ELEMENT_TODO_LIST'));}if('indentList'==_0x63792f['commandName'])return{'type':'format','content':o(_0x1eb453,'*Indent:*\x20%0',o(_0x1eb453,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x63792f['commandName'])return{'type':'format','content':o(_0x1eb453,'*Outdent:*\x20%0',o(_0x1eb453,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x63792f['commandName'])return _0x63792f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1eb453,'*Check\x20item*')}:{'type':'format','content':o(_0x1eb453,'*Uncheck\x20item*')};}function _0x4972db(_0x6bc57e){return{'type':'format','content':o(_0x1eb453,'*Change\x20to:*\x20%0',_0x6bc57e)};}});}}function Ne(_0x4f69aa){const _0x3d5ca8=_0x4f69aa['getAttribute']('listIndent');if(0x0==_0x3d5ca8)return _0x4f69aa;let _0x32dc60=_0x4f69aa;for(;_0x4f69aa['previousSibling']&&_0x4f69aa['previousSibling']['is']('element','listItem');){const _0xbf8d6f=_0x4f69aa['previousSibling']['getAttribute']('listIndent');if(_0xbf8d6f==_0x3d5ca8)_0x32dc60=_0x4f69aa['previousSibling'];else{if(_0xbf8d6f<_0x3d5ca8)break;}_0x4f69aa=_0x4f69aa['previousSibling'];}return _0x32dc60;}function Se(_0x4e8b50){const _0x240bd8=[];if(_0x4e8b50['is']('element','listItem')&&_0x4e8b50['getAttribute']('listIndent')>0x0){let _0x1a788b=_0x4e8b50['nextSibling'];for(;_0x1a788b&&'listItem'==_0x1a788b['name']&&_0x1a788b['getAttribute']('listIndent')==_0x4e8b50['getAttribute']('listIndent');)_0x240bd8['push'](_0x1a788b),_0x1a788b=_0x1a788b['nextSibling'];}return _0x240bd8;}class mt extends _0x5a00b1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53c7d4=this['editor']['config']['get']('list.properties'),_0x55dbd3=this['editor']['plugins']['get']('TrackChangesEditing');_0x53c7d4['styles']&&_0x55dbd3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53c7d4['reversed']&&_0x55dbd3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53c7d4['startIndex']&&_0x55dbd3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x55dbd3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6e3293,_0x29f717={}){const _0x2a0178=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bb4e4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2a0178['markMultiRangeBlockFormat'](_0x4bb4e4,{'commandName':'listStyle','commandParams':[{'type':_0x29f717['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b2c68,_0x303322={}){const _0x3ae0b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2781e4=this['_getSuggestionBlocks'](_0xf9d791=>_0xf9d791['is']('element','listItem')&&'numbered'===_0xf9d791['getAttribute']('listType'));if(_0x2781e4['length']<0x1)return;const _0x21202f=_0x2781e4['map'](_0x15742b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15742b,'before'),this['editor']['model']['createPositionAt'](_0x15742b,0x0)));this['editor']['model']['change'](()=>{_0x3ae0b3['markMultiRangeBlockFormat'](_0x21202f,{'commandName':'listReversed','commandParams':[{'reversed':_0x303322['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3d27ac,_0x514a08={}){const _0x587dd8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eafad=this['_getSuggestionBlocks'](_0x333b3b=>_0x333b3b['is']('element','listItem')&&'numbered'===_0x333b3b['getAttribute']('listType'));if(_0x5eafad['length']<0x1)return;const _0x590375=_0x5eafad['map'](_0x1526ec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1526ec,'before'),this['editor']['model']['createPositionAt'](_0x1526ec,0x0)));this['editor']['model']['change'](()=>{_0x587dd8['markMultiRangeBlockFormat'](_0x590375,{'commandName':'listStart','commandParams':[{'startIndex':_0x514a08['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2e6245){if('formatBlock'!=_0x2e6245['type']&&'formatInline'!=_0x2e6245['type'])return;const _0x5375fa=this['editor']['locale'],{data:_0x14b2be}=_0x2e6245;if(!_0x14b2be)return;let _0x13f866,_0x37b1cb;switch(_0x14b2be['commandName']){case'listStyle':_0x13f866='*Change\x20to:*\x20%0',_0x37b1cb={'type':'format','content':o(_0x5375fa,_0x13f866,o(_0x5375fa,this['_getTranslationKeyForListStyle'](_0x14b2be['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13f866=_0x14b2be['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x37b1cb={'type':'format','content':o(_0x5375fa,_0x13f866)};break;case'listStart':_0x13f866='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x37b1cb={'type':'format','content':o(_0x5375fa,_0x13f866,_0x14b2be['commandParams'][0x0]['startIndex'])};}return _0x37b1cb;}['_getSuggestionBlocksForListStyle'](){const _0x2fc730=this['editor']['plugins']['get']('LegacyListUtils');let _0x16b88d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x16b88d[0x0]?.['is']('element','listItem')&&_0x16b88d['unshift'](..._0x2fc730['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x16b88d[_0x16b88d['length']-0x1]?.['is']('element','listItem')&&_0x16b88d['push'](..._0x2fc730['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x16b88d=[...new Set(_0x16b88d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x16b88d=_0x16b88d['filter'](_0x286050=>_0x286050['is']('element','listItem'))),_0x16b88d;}['_getSuggestionBlocks'](_0x2e5a59){const _0x1dc376=this['editor']['plugins']['get']('LegacyListUtils');let _0x36252a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e5a59)['map'](_0x3290d7=>{const _0x18cd1f=this['editor']['model']['createPositionAt'](_0x3290d7,0x0);return[..._0x1dc376['getSiblingNodes'](_0x18cd1f,'backward'),..._0x1dc376['getSiblingNodes'](_0x18cd1f,'forward')];})['flat']();return _0x36252a=[...new Set(_0x36252a)],_0x36252a;}['_getTranslationKeyForListStyle'](_0x1ef2cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ef2cb)||'default')['toUpperCase']()+'_LIST_'+_0x1ef2cb['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x5a00b1{['afterInit'](){const _0x785960=this['editor'];if(!_0x785960['plugins']['has']('MediaEmbedEditing'))return;const _0xe4cd81=_0x785960['plugins']['get']('TrackChangesEditing'),_0x598cec=_0x785960['locale'];_0xe4cd81['enableCommand']('mediaEmbed'),_0xe4cd81['descriptionFactory']['registerElementLabel']('media',_0x5b4f40=>o(_0x598cec,'ELEMENT_MEDIA',_0x5b4f40)),_0x785960['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1b7550,{writer:_0x4f2c2c,options:_0x5ada83})=>{if(_0x5ada83['showSuggestionHighlights'])return _0x4f2c2c['createEmptyElement']('div');},'converterPriority':'high'}),_0x785960['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5d1fde,_0x116813,_0x3378c3)=>{_0x3378c3['options']['showSuggestionHighlights']&&_0x5d1fde['stop']();},{'priority':'high'});}}class kt extends _0x5a00b1{['afterInit'](){const _0x484011=this['editor'];_0x484011['plugins']['has']('MentionEditing')&&_0x484011['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5a00b1{['afterInit'](){const _0x4b7104=this['editor'];if(!_0x4b7104['plugins']['has']('MergeFieldsEditing'))return;const _0x4690a2=_0x4b7104['plugins']['get']('TrackChangesEditing'),_0xf6e3c7=_0x4b7104['locale'];_0x4690a2['enableCommand']('insertMergeField'),_0x4690a2['enableCommand']('insertMergeFieldBlock'),_0x4690a2['enableCommand']('insertMergeFieldImage'),_0x4690a2['descriptionFactory']['registerElementLabel']('mergeField',_0x22d2c5=>o(_0xf6e3c7,'ELEMENT_MERGE_FIELD',_0x22d2c5)),_0x4690a2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2936a1=>o(_0xf6e3c7,'ELEMENT_MERGE_FIELD',_0x2936a1)),_0x4690a2['descriptionFactory']['registerDescriptionCallback'](_0x5af312=>{if('insertion'!=_0x5af312['type']&&'deletion'!=_0x5af312['type'])return;const _0x585440=_0x5af312['getContainedElement']();if(null==_0x585440)return;const _0x378ff1=_0x4b7104['plugins']['get']('MergeFieldsEditing');let _0x5e572f;switch(_0x378ff1['getMergeFieldType'](_0x585440)){case null:return;case'image':{const _0x454c74=_0x378ff1['unwrapAffixes'](_0x585440['getAttribute']('src'));_0x5e572f=_0x378ff1['getLabel'](_0x454c74)||_0x454c74;break;}default:{const _0x3fe0f2=_0x585440['getAttribute']('id');_0x5e572f=_0x378ff1['getLabel'](_0x3fe0f2)||_0x3fe0f2;break;}}return'insertion'==_0x5af312['type']?{'type':'insertion','content':o(_0xf6e3c7,'*Insert:*\x20%0','\x22'+_0x5e572f+'\x22\x20'+o(_0xf6e3c7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xf6e3c7,'*Remove:*\x20%0','\x22'+_0x5e572f+'\x22\x20'+o(_0xf6e3c7,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x5a00b1{['afterInit'](){const _0x5b73d6=this['editor'],_0x17ea67=_0x5b73d6['plugins']['get']('TrackChangesEditing');_0x5b73d6['plugins']['has']('MultiLevelList')&&(_0x17ea67['enableDefaultAttributesIntegration']('multiLevelList'),_0x17ea67['registerBlockAttribute']('listMarkerStyle'),_0x17ea67['descriptionFactory']['registerDescriptionCallback'](_0x59701e=>this['handleDescriptions'](_0x59701e)));}['handleDescriptions'](_0x274912){const _0x4dfb7d=this['editor']['locale'],{data:_0x113cac}=_0x274912,_0x1174a3={'type':'format','content':''};if(_0x113cac&&'listMarkerStyle'==_0x113cac['key']){if(!_0x113cac['oldValue'])return{'type':'format','content':o(_0x4dfb7d,'*Set\x20format:*\x20%0',o(_0x4dfb7d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x113cac['newValue']+')'};if(!_0x113cac['newValue']){let _0x2fe467=_0x274912['head'];for(;_0x2fe467;){if(_0x2fe467['data']&&'listType'==_0x2fe467['data']['key']&&_0x2fe467['data']['newValue'])return _0x1174a3;_0x2fe467=_0x2fe467['next'];}return{'type':'format','content':o(_0x4dfb7d,'*Remove\x20format:*\x20%0',o(_0x4dfb7d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x113cac['oldValue']+')'};}}}}class yt extends _0x5a00b1{['afterInit'](){const _0x12ab26=this['editor'];if(!_0x12ab26['plugins']['has']('PageBreakEditing'))return;_0x12ab26['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x545502=_0x12ab26['plugins']['get']('TrackChangesEditing'),_0x449959=_0x12ab26['locale'];_0x545502['descriptionFactory']['registerElementLabel']('pageBreak',_0x1dd015=>o(_0x449959,'ELEMENT_PAGE_BREAK',_0x1dd015));}}class St extends _0x5a00b1{['afterInit'](){const _0x380b99=this['editor'];if(!_0x380b99['plugins']['has']('Paragraph'))return;const _0x7819e5=_0x380b99['locale'],_0x21b0a6=_0x380b99['plugins']['get']('TrackChangesEditing');_0x21b0a6['descriptionFactory']['registerElementLabel']('paragraph',_0x616fef=>o(_0x7819e5,'ELEMENT_PARAGRAPH',_0x616fef)),_0x21b0a6['enableDefaultAttributesIntegration']('paragraph'),_0x21b0a6['enableCommand']('insertParagraph'),_0x380b99['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x380b99),{'priority':'highest'}),_0x380b99['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x588e47,_0xeb786b,_0x4025cc)=>{_0x4025cc['options']['showSuggestionHighlights']&&nr(_0x380b99,{'showActiveMarker':!0x1})(_0x588e47,_0xeb786b,_0x4025cc);},{'priority':'highest'});const _0x8a23bb=_0x21b0a6['descriptionFactory'];_0x8a23bb['registerDescriptionCallback'](_0xa247ac=>{if('insertion'!==_0xa247ac['type'])return;const {start:_0x14f7bd,end:_0x1267ec}=_0xa247ac['getFirstRange']();if(!_0x14f7bd['isTouching'](_0x1267ec)||!_0x14f7bd['nodeAfter'])return;const _0x304690=_0x380b99['model']['schema'],_0x23877f=_0x14f7bd['nodeAfter'];return _0x304690['isBlock'](_0x23877f)&&!_0x304690['isLimit'](_0x23877f)&&_0x304690['checkChild'](_0x23877f,'$text')?{'type':'insertion','content':o(_0x7819e5,'*Insert:*\x20%0',_0x8a23bb['getItemLabel'](_0x23877f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411321=this['editor'],_0x297a1a=_0x411321['locale'];_0x411321['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf6a877=>{if('formatBlock'!=_0xf6a877['type'])return;const {data:_0x437cae}=_0xf6a877;return _0x437cae&&'paragraph'==_0x437cae['commandName']?{'type':'format','content':o(_0x297a1a,'*Change\x20to:*\x20%0',o(_0x297a1a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3de12d,{showActiveMarker:_0x4ee791=!0x0}={}){return(_0xad54ea,_0x2025e4,_0x302016)=>{const _0x5c519=_0x3de12d['plugins']['get']('TrackChangesEditing'),_0x35ceb9=_0x2025e4['markerRange']['start'],_0x3edcbf=_0x2025e4['markerRange']['end'],_0x11884d=_0x3de12d['model']['schema'];if(!_0x35ceb9['isTouching'](_0x3edcbf)||!_0x35ceb9['nodeAfter'])return;const _0x1028c6=_0x35ceb9['nodeAfter'];if(_0x11884d['isBlock'](_0x1028c6)&&!_0x11884d['isLimit'](_0x1028c6)&&_0x11884d['checkChild'](_0x1028c6,'$text')){if(!_0x302016['consumable']['consume'](_0x2025e4['markerRange'],_0xad54ea['name']))return;const {id:_0x14d5b0,authorId:_0x723859}=_0x5c519['_splitMarkerName'](_0x2025e4['markerName']),_0x4dec0f=_0x302016['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x14d5b0,'data-author-id':_0x723859}),_0x5177aa=_0x302016['mapper']['toViewPosition'](_0x3edcbf);_0x4ee791&&_0x5c519['activeMarkers']['includes'](_0x2025e4['markerName'])&&_0x302016['writer']['addClass']('ck-suggestion-marker--active',_0x4dec0f),_0x302016['writer']['insert'](_0x5177aa,_0x4dec0f),_0x302016['mapper']['bindElementToMarker'](_0x4dec0f,_0x2025e4['markerName']);}};}class jt extends _0x5a00b1{['afterInit'](){const _0x2b2b2a=this['editor'];_0x2b2b2a['commands']['get']('replaceSource')&&_0x2b2b2a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x5a00b1{['afterInit'](){const _0x556228=this['editor'];if(!_0x556228['plugins']['has']('RemoveFormatEditing'))return;_0x556228['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11e17c=this['editor'];_0x11e17c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9f6758=>{if('formatBlock'!=_0x9f6758['type']&&'formatInline'!=_0x9f6758['type'])return;const {data:_0x5717a2}=_0x9f6758;return _0x5717a2&&'removeFormat'==_0x5717a2['commandName']?{'type':'format','content':o(_0x11e17c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5a00b1{['afterInit'](){const _0x262098=this['editor'];if(!_0x262098['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xb397f7=_0x262098['plugins']['get']('TrackChangesEditing');_0xb397f7['enableCommand']('goToPreviousRestrictedEditingException'),_0xb397f7['enableCommand']('goToNextRestrictedEditingException');const _0x923606=_0x262098['plugins']['get']('RestrictedEditingModeEditing');_0x923606['enableCommand']('trackChanges'),_0x923606['enableCommand']('acceptSuggestion'),_0x923606['enableCommand']('discardSuggestion'),_0x923606['enableCommand']('acceptAllSuggestions'),_0x923606['enableCommand']('discardAllSuggestions'),_0x923606['enableCommand']('acceptSelectedSuggestions'),_0x923606['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x5a00b1{['afterInit'](){const _0x55cf76=this['editor'];if(!_0x55cf76['plugins']['has']('ShiftEnter'))return;const _0x1da86c=_0x55cf76['plugins']['get']('TrackChangesEditing');_0x1da86c['enableCommand']('shiftEnter'),_0x55cf76['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x55cf76),{'priority':'high'}),_0x55cf76['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x55cf76),{'priority':'high'}),_0x55cf76['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1746da,_0x39196b,_0x3981a2)=>{_0x3981a2['options']['showSuggestionHighlights']&&Ee(_0x55cf76,{'showActiveMarker':!0x1})(_0x1746da,_0x39196b,_0x3981a2);}),_0x1da86c['descriptionFactory']['registerElementLabel']('softBreak',_0x179a21=>o(_0x55cf76['locale'],'ELEMENT_LINE_BREAK',_0x179a21));}}function Ee(_0x53f6ce,{showActiveMarker:_0x5e7ef2=!0x0}={}){return(_0x5796d7,_0xd914db,_0x40cfd1)=>{const _0xcb67b6=_0x53f6ce['plugins']['get']('TrackChangesEditing');if(!_0x40cfd1['consumable']['test'](_0xd914db['markerRange'],_0x5796d7['name']))return;const _0x3091b6=_0x53f6ce['model'];for(const _0x4eb6cd of _0xd914db['markerRange']['getItems']()){if(!_0x4eb6cd['is']('element','softBreak'))continue;const _0x373bd4='deletion'==_0xd914db['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3535cb,authorId:_0x16b5fa}=_0xcb67b6['_splitMarkerName'](_0xd914db['markerName']),_0x2860a2=_0x40cfd1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x373bd4,'data-suggestion':_0x3535cb,'data-author-id':_0x16b5fa}),_0x56f0a6=_0x40cfd1['mapper']['toViewPosition'](_0x3091b6['createPositionBefore'](_0x4eb6cd));_0x5e7ef2&&_0xcb67b6['activeMarkers']['includes'](_0xd914db['markerName'])&&_0x40cfd1['writer']['addClass']('ck-suggestion-marker--active',_0x2860a2),_0x40cfd1['writer']['insert'](_0x56f0a6,_0x2860a2),_0x40cfd1['mapper']['bindElementToMarker'](_0x2860a2,_0xd914db['markerName']);}};}class vt extends _0x5a00b1{['afterInit'](){const _0x469e75=this['editor'],_0x19531a=_0x469e75['model'],_0x2c9dd2=_0x469e75['locale'];if(!_0x469e75['plugins']['has']('StandardEditingModeEditing'))return;const _0x181759=_0x469e75['plugins']['get']('TrackChangesEditing'),_0xd32a7d='restrictedEditingException',_0xc53edc=_0x469e75['commands']['get'](_0xd32a7d);_0x181759['enableCommand'](_0xd32a7d,(_0x4e42b9,_0x53dfec={})=>{const _0x3fe89d=_0x19531a['document']['selection'];if(_0x3fe89d['isCollapsed'])return void _0x4e42b9(_0x53dfec);const _0x316da4=void 0x0!==_0x53dfec['forceValue']?_0x53dfec['forceValue']:!_0xc53edc['value'];_0x19531a['change'](()=>{const _0x53e64a=Array['from'](_0x3fe89d['getRanges']());for(const _0x37af57 of _0x53e64a){const _0x5a1bb5=_0x316da4?[_0x37af57]:io(_0xd32a7d,_0x37af57,_0x19531a);for(const _0x3c4da2 of _0x5a1bb5)_0x181759['markInlineFormat'](_0x3c4da2,{'commandName':_0xd32a7d,'commandParams':[{'forceValue':_0x316da4}]});}});}),_0x181759['descriptionFactory']['registerDescriptionCallback'](_0x20adb7=>{if('formatBlock'!=_0x20adb7['type']&&'formatInline'!=_0x20adb7['type'])return;const {data:_0x429045}=_0x20adb7;return _0x429045&&_0x429045['commandName']==_0xd32a7d?_0x429045['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c9dd2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c9dd2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x5a00b1{['afterInit'](){const _0x2ebc7d=this['editor'];if(!_0x2ebc7d['plugins']['has']('Style')||!_0x2ebc7d['plugins']['has']('DataSchema'))return;const _0x42980b=_0x2ebc7d['plugins']['get']('TrackChangesEditing'),_0x20b5d1=_0x2ebc7d['locale'],_0x4efdcd=_0x2ebc7d['config']['get']('style')||{},_0xcbf02d=_0x2ebc7d['plugins']['get']('GeneralHtmlSupport'),_0x312cc3=_0x2ebc7d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2ebc7d['plugins']['get']('DataSchema'),_0x4efdcd['definitions']);_0x42980b['enableDefaultAttributesIntegration']('style');const _0xbd1478=new Set();for(const _0x3c56bf of _0x312cc3['block']){const _0x568795=_0xcbf02d['getGhsAttributeNameForElement'](_0x3c56bf['element']);_0xbd1478['add'](_0x568795);}const _0x2b41f5=new Set();for(const _0x259c3c of _0x312cc3['inline']){const _0x3d71e9=_0xcbf02d['getGhsAttributeNameForElement'](_0x259c3c['element']);_0x2b41f5['add'](_0x3d71e9);for(const _0x19c399 of _0x259c3c['ghsAttributes'])_0x2b41f5['add'](_0x19c399);}for(const _0x5e71a3 of _0xbd1478)_0x42980b['registerBlockAttribute'](_0x5e71a3),_0x42980b['descriptionFactory']['registerAttributeLabel'](_0x5e71a3,o(_0x20b5d1,'FORMAT_STYLE'));for(const _0x10ac6a of _0x2b41f5)_0x42980b['registerInlineAttribute'](_0x10ac6a),_0x42980b['descriptionFactory']['registerAttributeLabel'](_0x10ac6a,o(_0x20b5d1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d61f2=this['editor'],_0xb3b00d=_0x5d61f2['locale'];_0x5d61f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40433a=>{if('formatBlock'!=_0x40433a['type']&&'formatInline'!=_0x40433a['type'])return;const {data:_0x854346}=_0x40433a;return _0x854346&&'style'===_0x854346['commandName']?_0x854346['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb3b00d,'*Set\x20format:*\x20%0',_0x854346['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xb3b00d,'*Remove\x20format:*\x20%0',_0x854346['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x5a00b1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x52ed9e){super(_0x52ed9e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5aa657=this['editor'],_0x538a9b=_0x5aa657['model']['document']['selection'];if(!_0x5aa657['plugins']['has']('TableEditing'))return;const _0x4c4879=_0x5aa657['locale'],_0x213ca8=_0x5aa657['plugins']['get']('TrackChangesEditing'),_0x2e61ad=_0x5aa657['plugins']['get']('TableUtils');_0x213ca8['descriptionFactory']['registerElementLabel']('table',_0x58e799=>o(_0x4c4879,'ELEMENT_TABLE',_0x58e799)),this['_setupColumnsRowsFixing'](),_0x213ca8['enableCommand']('insertTable'),_0x213ca8['enableCommand']('selectTableRow'),_0x213ca8['enableCommand']('selectTableColumn');for(const _0x517328 of['insertTableRowAbove','insertTableRowBelow']){const _0x2350a9=_0x5aa657['commands']['get'](_0x517328);_0x213ca8['enableCommand'](_0x517328,_0x19de84=>{_0x5aa657['model']['change'](_0x14bfa4=>{_0x19de84();const _0x40ad35='above'===_0x2350a9['order'],_0x4d6279=_0x2e61ad['getSelectionAffectedTableCells'](_0x538a9b),_0x22c174=_0x2e61ad['getRowIndexes'](_0x4d6279),_0x52c5cb=_0x40ad35?_0x22c174['first']-0x1:_0x22c174['last']+0x1,_0x40c49e=_0x4d6279[0x0]['findAncestor']('table'),_0x3e2e1b=_0x2e61ad['createTableWalker'](_0x40c49e,{'startRow':_0x52c5cb,'endRow':_0x52c5cb}),_0x471e69=Array['from'](_0x3e2e1b)['map'](_0x6bdb89=>_0x14bfa4['createRangeOn'](_0x6bdb89['cell']));_0x213ca8['markMultiRangeInsertion'](_0x471e69,'tableRow');});});}for(const _0x589e39 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4f6fdc=_0x5aa657['commands']['get'](_0x589e39);_0x213ca8['enableCommand'](_0x589e39,_0x1dc9f4=>{_0x5aa657['model']['change'](_0x4ce462=>{_0x1dc9f4();const _0x15f1b8='left'===_0x4f6fdc['order'],_0x45ee34=_0x2e61ad['getSelectionAffectedTableCells'](_0x538a9b),_0x59a2e9=_0x2e61ad['getColumnIndexes'](_0x45ee34),_0x2c342d=_0x15f1b8?_0x59a2e9['first']-0x1:_0x59a2e9['last']+0x1,_0x9846bc=_0x45ee34[0x0]['findAncestor']('table'),_0x4eeb81=_0x2e61ad['createTableWalker'](_0x9846bc,{'startRow':0x0,'column':_0x2c342d,'includeAllSlots':!0x1}),_0xaf5e5c=Array['from'](_0x4eeb81)['map'](_0x395066=>_0x4ce462['createRangeOn'](_0x395066['cell']));_0x213ca8['markMultiRangeInsertion'](_0xaf5e5c,'tableColumn');});});}for(const _0x38a276 of['removeTableRow','removeTableColumn']){const _0x5f1d68=_0x38a276['substr'](0xb),_0x4ccd50=_0x5f1d68['toLowerCase'](),_0x127522=_0x4ccd50['substr'](0x0,0x3)+'span',_0x595284='table'+_0x5f1d68,_0x3809a8='min'+_0x5f1d68,_0x38250c='max'+_0x5f1d68;_0x213ca8['enableCommand'](_0x38a276,()=>{_0x5aa657['model']['change'](_0x154b5b=>{const _0x571968=_0x2e61ad['getSelectionAffectedTableCells'](_0x538a9b),_0x283e81=_0x571968[0x0]['findAncestor']('table');let _0x2f7285;if('removeTableRow'==_0x38a276){const _0x2094b3=_0x2e61ad['getRowIndexes'](_0x571968);_0x2f7285={'startRow':_0x2094b3['first'],'endRow':_0x2094b3['last'],'includeAllSlots':!0x0};}else{const _0xb0497c=_0x2e61ad['getColumnIndexes'](_0x571968);_0x2f7285={'startColumn':_0xb0497c['first'],'endColumn':_0xb0497c['last'],'includeAllSlots':!0x0};}const _0x12b44a=_0x2e61ad['createTableWalker'](_0x283e81,_0x2f7285),_0x1093a5=Array['from'](_0x12b44a)['map'](({cell:_0x5660d0})=>_0x5660d0),_0x537a56=We(_0x1093a5['filter'](_0x285705=>_0x285705['hasAttribute'](_0x127522))),_0x532f48=We(_0x1093a5['filter'](_0x3eaa9f=>!_0x3eaa9f['hasAttribute'](_0x127522)))['map'](_0xf686a5=>_0x154b5b['createRangeOn'](_0xf686a5)),_0x33e80f=_0x213ca8['markMultiRangeDeletion'](_0x532f48,_0x595284);if(_0x33e80f&&('tableRow'==_0x33e80f['subType']||'tableColumn'==_0x33e80f['subType'])){const _0x59cbaf=this['_getSuggestionCoords'](_0x33e80f);for(const _0x458772 of _0x537a56){const _0x15201f=_0x154b5b['createRangeOn'](_0x458772),_0x3aad97=_0x2e61ad['getCellLocation'](_0x458772),_0x3a54e9=_0x458772['getAttribute'](_0x127522)-0x1,_0x5972a2=_0x59cbaf[_0x3809a8],_0x507060=_0x59cbaf[_0x38250c];_0x5972a2<=_0x3aad97[_0x4ccd50]&&_0x3aad97[_0x4ccd50]+_0x3a54e9<=_0x507060&&_0x33e80f['addRange'](_0x15201f);}}});});}function _0x1b18aa(_0x149f77){const _0x4a9254=Array['from'](_0x538a9b['getRanges']())['map'](_0x2165b4=>_0x54a592['fromRange'](_0x2165b4));_0x5aa657['model']['change'](_0x4b25f0=>{const _0x4bbbf3=_0x4b25f0['batch'];_0x149f77=_0x149f77['filter'](_0x5f299a=>'$graveyard'!=_0x5f299a['root']['rootName']),_0x4b25f0['setSelection'](_0x149f77),_0x5aa657['commands']['get']('removeTableRow')['refresh'](),_0x5aa657['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5aa657['model']['enqueueChange'](()=>{_0x5aa657['model']['enqueueChange'](_0x4bbbf3,_0x120967=>{const _0x1bc8ce=_0x4a9254['filter'](_0xcfd0f1=>'$graveyard'!=_0xcfd0f1['root']['rootName']);_0x1bc8ce['length']>0x0&&_0x120967['setSelection'](_0x1bc8ce);for(const _0x309ca8 of _0x4a9254)_0x309ca8['detach']();});});});}function _0x3d0b45(_0xacb513){_0x5aa657['model']['change'](_0x4fab0e=>{const _0x47d3c6=Array['from'](_0x538a9b['getRanges']())['map'](_0x1e1709=>_0x54a592['fromRange'](_0x1e1709)),_0x29a1db=[];for(const _0x114c1e of _0xacb513)for(const _0x428032 of _0x114c1e['getItems']({'shallow':!0x0}))_0x29a1db['push'](_0x428032);for(const _0x480786 of _0x29a1db)'$graveyard'!=_0x480786['root']['rootName']&&(_0x4fab0e['setSelection'](_0x4fab0e['createPositionAt'](_0x480786,0x0)),_0x5aa657['commands']['get']('removeTableColumn')['refresh'](),_0x5aa657['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46be7e=_0x47d3c6['filter'](_0x1905de=>'$graveyard'!=_0x1905de['root']['rootName']);_0x46be7e['length']>0x0&&_0x4fab0e['setSelection'](_0x46be7e);for(const _0x573e22 of _0x47d3c6)_0x573e22['detach']();});}function _0x556993(_0x1a2ccf,_0x2b565c){return _0x2b565c['every'](_0x31d322=>_0x1a2ccf['some'](_0x22b42a=>_0x22b42a['end']['isEqual'](_0x31d322['start'])||_0x31d322['end']['isEqual'](_0x22b42a['start'])));}function _0xcfbdad(_0x537605,_0x4ad086){return!_0x537605['some'](_0x4965e3=>_0x4ad086['some'](_0x1cddaf=>_0x4965e3['isIntersecting'](_0x1cddaf)))&&_0x537605['some'](_0x534d60=>_0x4ad086['some'](_0x1b8ea3=>_0x534d60['end']['isTouching'](_0x1b8ea3['start'])));}_0x5aa657['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24b83f,_0x40e2db,_0x407597)=>{if(!_0x407597['options']['showSuggestionHighlights'])return;const _0x19bc86=_0x40e2db['item'];if(!_0x19bc86||!_0x19bc86['is']('element','tableCell'))return;const _0x58eb10=_0x407597['mapper']['toViewElement'](_0x19bc86);if(_0x58eb10){const {id:_0x4b35f1,authorId:_0x110d66}=_0x213ca8['_splitMarkerName'](_0x40e2db['markerName']);_0x27f181(_0x58eb10,_0x407597['writer'],(_0x22a1cd,_0x2e935e,_0xda39d7)=>{_0xda39d7['addClass'](_0x437887(_0x2e935e['classes']),_0x22a1cd),_0xda39d7['setAttribute']('data-suggestion-id',_0x4b35f1,_0x22a1cd),_0xda39d7['setAttribute']('data-author-id',_0x110d66,_0x22a1cd);},(_0xf70775,_0x2bcad6,_0x58e4de)=>{_0x58e4de['removeClass'](_0x437887(_0x2bcad6['classes']),_0xf70775),_0x58e4de['removeAttribute']('data-suggestion-id',_0xf70775),_0x58e4de['removeAttribute']('data-author-id',_0xf70775);});}},{'priority':'highest'}),_0x213ca8['descriptionFactory']['registerDescriptionCallback'](_0x1bf878=>{if('insertion'!=_0x1bf878['type']&&'deletion'!=_0x1bf878['type'])return;const _0x286e5d=_0x1bf878['getContainedElement']();if(null!=_0x286e5d&&_0x286e5d['is']('element','table')){if('insertion'==_0x1bf878['type']){const _0x41b4f9=_0x1bf878['getItems']()['filter'](_0x2586ec=>_0x2586ec['is']('$textProxy'))['map'](_0x1307bf=>_0x1307bf['data']);if(_0x41b4f9['length'])return{'type':'insertion','content':o(_0x4c4879,'*Insert:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41b4f9['join']('\x20')+'\x22'))};}if('deletion'==_0x1bf878['type']){const _0x8c6780=_0x1bf878['getItems']()['filter'](_0x39c434=>_0x39c434['is']('$textProxy'))['map'](_0x30c089=>_0x30c089['data']);if(_0x8c6780['length'])return{'type':'deletion','content':o(_0x4c4879,'*Remove:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8c6780['join']('\x20')+'\x22'))};}}}),_0x213ca8['descriptionFactory']['registerDescriptionCallback'](_0x2b6759=>{if('tableRow'==_0x2b6759['subType']){const _0x412a92=_0x2b6759['getItems']()['filter'](_0x271b0d=>_0x271b0d['is']('$textProxy'))['map'](_0x3a49b7=>_0x3a49b7['data']),_0x1adbb0=this['_getSuggestionCoords'](_0x2b6759),_0x4775c7=_0x1adbb0['maxRow']-_0x1adbb0['minRow']+0x1;if('insertion'==_0x2b6759['type'])return _0x412a92['length']?{'type':'insertion','content':o(_0x4c4879,'*Insert:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4775c7,'\x22'+_0x412a92['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c4879,'*Insert:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_ROW',_0x4775c7))};if('deletion'==_0x2b6759['type'])return _0x412a92['length']?{'type':'deletion','content':o(_0x4c4879,'*Remove:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4775c7,'\x22'+_0x412a92['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c4879,'*Remove:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_ROW',_0x4775c7))};}if('tableColumn'==_0x2b6759['subType']){const _0xc9a5f5=_0x2b6759['getItems']()['filter'](_0x11a934=>_0x11a934['is']('$textProxy'))['map'](_0x35f0ff=>_0x35f0ff['data']),_0xf3886c=this['_getSuggestionCoords'](_0x2b6759),_0x24c3e4=_0xf3886c['maxColumn']-_0xf3886c['minColumn']+0x1;if('insertion'==_0x2b6759['type'])return _0xc9a5f5['length']?{'type':'insertion','content':o(_0x4c4879,'*Insert:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24c3e4,'\x22'+_0xc9a5f5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c4879,'*Insert:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_COLUMN',_0x24c3e4))};if('deletion'==_0x2b6759['type'])return _0xc9a5f5['length']?{'type':'deletion','content':o(_0x4c4879,'*Remove:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24c3e4,'\x22'+_0xc9a5f5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c4879,'*Remove:*\x20%0',o(_0x4c4879,'ELEMENT_TABLE_COLUMN',_0x24c3e4))};}}),_0x213ca8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1b18aa),_0x213ca8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1b18aa),_0x213ca8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d0b45),_0x213ca8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d0b45),_0x213ca8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x556993),_0x213ca8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x556993),_0x213ca8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xcfbdad),_0x213ca8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xcfbdad);}['_acceptFormatSuggestionCallbackFactory'](){const _0x25c499=this['editor'],_0xcbb08=_0x25c499['model']['document']['selection'];return(_0xc5ce45,_0x1ebc80)=>{_0x25c499['model']['change'](_0x10d906=>{const {commandName:_0x46b59a,commandParams:_0x52ec44}=_0x1ebc80;let _0x354a2d=_0xc5ce45[0x0]['end']['nodeBefore'];_0x52ec44&&_0x52ec44[0x0]&&!0x1===_0x52ec44[0x0]['forceValue']&&(_0x354a2d=_0xc5ce45[0x0]['start']['nodeAfter']);const _0x34a1ce=_0x10d906['createRangeIn'](_0x354a2d);if('$graveyard'==_0x34a1ce['root']['rootName'])return;const _0xf9a2ba=Array['from'](_0xcbb08['getRanges']())['map'](_0x489eb8=>_0x54a592['fromRange'](_0x489eb8));_0x10d906['setSelection'](_0x34a1ce),_0x25c499['commands']['get'](_0x46b59a)['refresh'](),_0x52ec44['push']({'forceDefaultExecution':!0x0}),_0x25c499['execute'](_0x46b59a,..._0x52ec44);const _0x1e1ed5=_0xf9a2ba['filter'](_0x4fa776=>'$graveyard'!=_0x4fa776['root']['rootName']);_0x1e1ed5['length']>0x0&&_0x10d906['setSelection'](_0x1e1ed5);for(const _0x2db2a3 of _0xf9a2ba)_0x2db2a3['detach']();});};}['_getCoordsForCells'](_0x18605f){const _0x27f9f0=this['editor']['plugins']['get']('TableUtils');let _0x2c71b3=Number['MAX_SAFE_INTEGER'],_0x2d3105=Number['MIN_SAFE_INTEGER'],_0x3a4ee6=Number['MAX_SAFE_INTEGER'],_0xe3b33b=Number['MIN_SAFE_INTEGER'];for(const _0x4b1e92 of _0x18605f){if('$graveyard'==_0x4b1e92['root']['rootName'])continue;const {row:_0x2f154e,column:_0x119cc4}=_0x27f9f0['getCellLocation'](_0x4b1e92),_0x4b4686=_0x4b1e92['hasAttribute']('rowspan')?_0x4b1e92['getAttribute']('rowspan')-0x1:0x0,_0x2518d2=_0x4b1e92['hasAttribute']('colspan')?_0x4b1e92['getAttribute']('colspan')-0x1:0x0;_0x2c71b3=_0x2f154e<_0x2c71b3?_0x2f154e:_0x2c71b3,_0x2d3105=_0x2f154e+_0x4b4686>_0x2d3105?_0x2f154e+_0x4b4686:_0x2d3105,_0x3a4ee6=_0x119cc4<_0x3a4ee6?_0x119cc4:_0x3a4ee6,_0xe3b33b=_0x119cc4+_0x2518d2>_0xe3b33b?_0x119cc4+_0x2518d2:_0xe3b33b;}return{'minRow':_0x2c71b3,'maxRow':_0x2d3105,'minColumn':_0x3a4ee6,'maxColumn':_0xe3b33b};}['_setupColumnsRowsFixing'](){const _0xcc197a=this['editor'],_0x4f34ad=_0xcc197a['plugins']['get']('TrackChangesEditing'),_0x29e275=_0xcc197a['plugins']['get']('TableUtils');_0xcc197a['model']['document']['on']('change:data',()=>{const _0x4002c7=Array['from'](_0xcc197a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x531a8b,data:_0x420b9c}of _0x4002c7){const {group:_0x390092,id:_0x9254ba,subType:_0x250d26}=_0x4f34ad['_splitMarkerName'](_0x531a8b);if('suggestion'!=_0x390092)continue;if(null!=_0x420b9c['oldRange'])continue;const _0x2ef540=_0x4f34ad['getSuggestion'](_0x9254ba);this['_tablePostFixingSubtypes']['includes'](_0x250d26)&&this['_tableSuggestions']['add'](_0x2ef540);}},{'priority':'low'});const _0x1abd77=(_0x261b18,_0x4604fc)=>{let _0x31cb91=!0x1;const _0x39c9bb=_0x4604fc['createRangeOn'](_0x261b18),_0x234f48=_0x261b18['findAncestor']('table'),_0xf65a18=_0x29e275['getCellLocation'](_0x261b18);for(const _0x5851aa of this['_tableSuggestions']){const _0x330f81=_0x5851aa['subType'],_0x579d4e=_0x330f81['startsWith']('tablePaste'),_0x5e7d1e=_0x330f81['substr'](_0x579d4e?0xa:0x5),_0x15b265=_0x5e7d1e['toLowerCase'](),_0x26e4ce=_0x15b265['substr'](0x0,0x3)+'span',_0xbad6dd='min'+_0x5e7d1e,_0x4195ce='max'+_0x5e7d1e;if(!_0x5851aa['isInContent'])continue;if(_0x234f48!=_0x5851aa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5851aa['isIntersectingWithRange'](_0x39c9bb))continue;const _0xb5c9e5=_0x261b18['hasAttribute'](_0x26e4ce)?_0x261b18['getAttribute'](_0x26e4ce)-0x1:0x0,_0x2de9a0=this['_getSuggestionCoords'](_0x5851aa),_0x2473c0=_0x2de9a0[_0xbad6dd],_0x359f14=_0x2de9a0[_0x4195ce];_0x2473c0<=_0xf65a18[_0x15b265]&&_0xf65a18[_0x15b265]+_0xb5c9e5<=_0x359f14&&(_0x5851aa['addRange'](_0x39c9bb),_0x31cb91=!0x0);}return _0x31cb91;};_0xcc197a['model']['document']['registerPostFixer'](_0x4cf02d=>{let _0x695875=!0x1;for(const _0x425b35 of _0xcc197a['model']['document']['differ']['getChanges']())if('insert'==_0x425b35['type']){if('tableRow'==_0x425b35['name']){for(const _0x141cee of _0x425b35['position']['nodeAfter']['getChildren']())_0x695875=_0x695875||_0x1abd77(_0x141cee,_0x4cf02d);}else'tableCell'==_0x425b35['name']&&(_0x695875=_0x695875||_0x1abd77(_0x425b35['position']['nodeAfter'],_0x4cf02d));}return _0x695875;});}['_getSuggestionCoords'](_0x6becc0){return this['_getCoordsForCells'](_0x6becc0['getRanges']()['map'](_0x2a49e7=>_0x2a49e7['start']['nodeAfter']));}}function We(_0x5cc57c){return Array['from'](new Set(_0x5cc57c)['values']());}class Nt extends _0x5a00b1{static get['requires'](){return[$t];}['afterInit'](){const _0x41b320=this['editor'],_0xacdb4d=_0x41b320['model']['document']['selection'],_0x489b35=_0x41b320['locale'];if(!_0x41b320['plugins']['has']('TableEditing'))return;const _0x1fe8f0=_0x41b320['plugins']['get']('TrackChangesEditing'),_0x72ca54=_0x41b320['plugins']['get']('TableUtils'),_0x5c5369=_0x41b320['plugins']['get']($t);_0x5c5369['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1fe8f0['enableCommand']('mergeTableCells',()=>{const _0x4b0ad8=_0x72ca54['getSelectionAffectedTableCells'](_0x41b320['model']['document']['selection']);_0x41b320['model']['change'](()=>{_0x1fe8f0['markMultiRangeBlockFormat'](_0x4b0ad8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x41b320['commands']['get']('mergeTableCells')['on']('execute',(_0x50dc50,_0x4bf600)=>{_0x41b320['commands']['get']('trackChanges')['value']&&(_0x4bf600['length']>0x0&&_0x4bf600[_0x4bf600['length']-0x1]&&_0x4bf600[_0x4bf600['length']-0x1]['forceDefaultExecution']||_0x1fe8f0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x50dc50['stop']());},{'priority':'highest'});for(const _0x3be478 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2e7b0f=_0x41b320['commands']['get'](_0x3be478);_0x1fe8f0['enableCommand'](_0x3be478,()=>{const _0x2b9317=_0x41b320['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b864f=>_0x2b864f['is']('element','tableCell')),_0x202d0a=_0x2e7b0f['value'];_0x41b320['model']['change'](()=>{_0x1fe8f0['markMultiRangeBlockFormat']([_0x2b9317,_0x202d0a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2ae815 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f9cbd=_0x41b320['commands']['get'](_0x2ae815);_0x1fe8f0['enableCommand'](_0x2ae815,()=>{const _0xd53998=_0x72ca54['getSelectionAffectedTableCells'](_0x41b320['model']['document']['selection'])[0x0],_0x4408fc=_0xd53998['findAncestor']('table'),{column:_0x982185,row:_0x414102}=_0x72ca54['getCellLocation'](_0xd53998);let _0x45e2bd=[];if('horizontally'==_0x2f9cbd['direction']){const _0x449f52=_0x72ca54['createTableWalker'](_0x4408fc,{'startRow':_0x414102,'endRow':_0x414102,'includeAllSlots':!0x0});_0x45e2bd=Array['from'](_0x449f52)['map'](_0x35d045=>_0x35d045['cell']);}else{const _0x4bef8f=_0x72ca54['createTableWalker'](_0x4408fc,{'column':_0x982185,'includeAllSlots':!0x0});_0x45e2bd=Array['from'](_0x4bef8f)['map'](_0x59c71c=>_0x59c71c['cell']);}_0x41b320['model']['change'](_0x55f49a=>{_0x1fe8f0['markBlockFormat'](_0x55f49a['createRangeOn'](_0xd53998),{'commandName':_0x2ae815,'commandParams':[]},_0x45e2bd,_0x2ae815);});});}_0x1fe8f0['descriptionFactory']['registerDescriptionCallback'](_0x56d36d=>{if('formatBlock'!=_0x56d36d['type']&&'formatInline'!=_0x56d36d['type'])return;const {data:_0x5998ff}=_0x56d36d;return _0x5998ff&&'mergeTableCells'==_0x5998ff['commandName']?{'type':'format','content':o(_0x489b35,'*Merge\x20cells*')}:void 0x0;}),_0x1fe8f0['descriptionFactory']['registerDescriptionCallback'](_0x7d8432=>{if('formatBlock'!=_0x7d8432['type']&&'formatInline'!=_0x7d8432['type'])return;const {data:_0x5588be}=_0x7d8432;return _0x5588be?'splitTableCellVertically'==_0x5588be['commandName']?{'type':'format','content':o(_0x489b35,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5588be['commandName']?{'type':'format','content':o(_0x489b35,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5eae72=_0x5c5369['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d5690 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1fe8f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d5690,'accept',_0x5eae72);for(const _0x157a71 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1fe8f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x157a71,'accept',_0x5eae72);_0x1fe8f0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5cb4c5=>{_0x41b320['model']['change'](_0x2b13a7=>{const _0x2f75d0=Array['from'](_0xacdb4d['getRanges']())['map'](_0x5c131d=>_0x54a592['fromRange'](_0x5c131d));_0x2b13a7['setSelection'](_0x5cb4c5),_0x41b320['commands']['get']('mergeTableCells')['refresh'](),_0x41b320['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b2683=_0x2f75d0['filter'](_0x271e27=>'$graveyard'!=_0x271e27['root']['rootName']);_0x1b2683['length']>0x0&&_0x2b13a7['setSelection'](_0x1b2683);for(const _0x11b290 of _0x2f75d0)_0x11b290['detach']();});});for(const _0x59d78c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x511bb8=_0x41b320['commands']['get'](_0x59d78c);_0x511bb8['on']('set:isEnabled',(_0x342f06,_0x4d5341,_0x6dc62d)=>{if(_0x6dc62d){const _0x3ad031=_0x41b320['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a7953=>_0x4a7953['is']('element','tableCell'));this['_areMergableCells'](_0x511bb8['value'],_0x3ad031)||(_0x342f06['return']=!0x1,_0x342f06['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x112b5=this['editor']['commands']['get']('mergeTableCells'),_0x37c62e=this['editor']['plugins']['get']('TableUtils');if(!_0x112b5['isEnabled'])return!0x1;const _0x4a4087=_0x37c62e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4bc73b of _0x4a4087)for(const _0x7fd958 of _0x4a4087)if(_0x4bc73b!=_0x7fd958&&!this['_areMergableCells'](_0x4bc73b,_0x7fd958))return!0x1;return!0x0;}['_areMergableCells'](_0x1bbb6c,_0xf5d194){const _0x37048d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x431d04=this['editor']['model']['createRangeOn'](_0x1bbb6c),_0x6da279=this['editor']['model']['createRangeOn'](_0xf5d194),_0x86b702=new Set(),_0x5a81e6=new Set();for(const _0x739fb4 of _0x37048d['getSuggestions']())if(('insertion'==_0x739fb4['type']||'deletion'==_0x739fb4['type']||'mergeTableCells'==_0x739fb4['subType'])&&_0x739fb4['isInContent']){for(const _0xf67ad8 of _0x739fb4['getRanges']())_0xf67ad8['containsRange'](_0x431d04,!0x0)&&_0x86b702['add'](_0x739fb4['type']+':'+_0x739fb4['author']['id']),_0xf67ad8['containsRange'](_0x6da279,!0x0)&&_0x5a81e6['add'](_0x739fb4['type']+':'+_0x739fb4['author']['id']);}if(_0x86b702['size']!=_0x5a81e6['size'])return!0x1;for(const _0x296d59 of _0x86b702)if(!_0x5a81e6['has'](_0x296d59))return!0x1;return!0x0;}}class Dt extends _0x5a00b1{static get['requires'](){return[$t];}['afterInit'](){const _0x550971=this['editor'];if(!_0x550971['plugins']['has']('TableEditing'))return;const _0x30877d=_0x550971['locale'],_0x29c406=_0x550971['plugins']['get']('TrackChangesEditing');_0x29c406['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x29c406['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x29c406['registerBlockAttribute']('headingRows'),_0x29c406['registerBlockAttribute']('headingColumns'),_0x29c406['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x30877d,'FORMAT_HEADER_ROW')),_0x29c406['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x30877d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1fe48b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x383600=this['editor']['plugins']['get']('TableUtils'),_0x4e8712=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x20b6aa({showActiveMarker:_0x30511d=!0x0,setDataAttribute:_0x3d0987=!0x0}={}){return(_0x2855e4,_0x567460,_0x173533)=>{const {type:_0x6ee14e,id:_0x36b521}=_0x1fe48b['_splitMarkerName'](_0x567460['markerName']);if(!_0x1fe48b['hasSuggestion'](_0x36b521))return;const _0x2c032e=_0x1fe48b['getSuggestion'](_0x36b521),_0x5c890a=_0x2c032e['data'];if('formatBlock'!=_0x2c032e['type']||!_0x5c890a||'setTableColumnHeader'!=_0x5c890a['commandName'])return;if(_0x567460['item'])return void _0x2855e4['stop']();if(!_0x173533['consumable']['consume'](_0x567460['markerRange'],_0x2855e4['name']))return;const _0x234968=_0x567460['markerRange']['start']['nodeAfter'],_0x21a7ca=_0x567460['markerRange']['end']['nodeBefore'],_0x4751fc=_0x234968['parent']['parent'],{column:_0x838c39}=_0x383600['getCellLocation'](_0x234968),{column:_0x13e4d9}=_0x383600['getCellLocation'](_0x21a7ca);for(let _0x4a3b61=_0x838c39;_0x4a3b61<=_0x13e4d9;_0x4a3b61++){const _0x119cc9=_0x383600['createTableWalker'](_0x4751fc,{'column':_0x4a3b61,'includeAllSlots':!0x1});for(const _0x39e5f2 of _0x119cc9){const _0x246a56=_0x39e5f2['cell'],_0x45ad67=_0x173533['mapper']['toViewElement'](_0x246a56);_0x173533['writer']['addClass']('ck-suggestion-marker-'+_0x6ee14e,_0x45ad67),_0x3d0987&&_0x173533['writer']['setAttribute']('data-suggestion',_0x36b521,_0x45ad67),_0x173533['mapper']['bindElementToMarker'](_0x45ad67,_0x567460['markerName']),_0x30511d&&(_0x1fe48b['activeMarkers']['includes'](_0x567460['markerName'])?_0x173533['writer']['addClass']('ck-suggestion-marker--active',_0x45ad67):_0x173533['writer']['removeClass']('ck-suggestion-marker--active',_0x45ad67));}}};}_0x1fe48b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4e8712),_0x1fe48b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4e8712),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x20b6aa(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30f02c,_0x346c54,_0x401084)=>{_0x401084['options']['showSuggestionHighlights']&&_0x20b6aa({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30f02c,_0x346c54,_0x401084);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2faaed,_0x584911,_0xcdd670)=>{const {type:_0x4bfdcd,id:_0x31ffc0}=_0x1fe48b['_splitMarkerName'](_0x584911['markerName']);if(!_0x1fe48b['hasSuggestion'](_0x31ffc0))return;const _0x23eeb4=_0x1fe48b['getSuggestion'](_0x31ffc0),_0x535f60=_0x23eeb4['data'];if('formatBlock'!=_0x23eeb4['type']||!_0x535f60||'setTableColumnHeader'!=_0x535f60['commandName'])return;const _0x353f05=_0xcdd670['mapper']['markerNameToElements'](_0x584911['markerName']);if(_0x353f05){for(const _0x1ef1bd of _0x353f05)_0xcdd670['writer']['removeClass']('ck-suggestion-marker-'+_0x4bfdcd,_0x1ef1bd),_0xcdd670['writer']['removeClass']('ck-suggestion-marker--active',_0x1ef1bd),_0xcdd670['writer']['removeAttribute']('data-suggestion',_0x1ef1bd),_0xcdd670['mapper']['unbindElementFromMarkerName'](_0x1ef1bd,_0x584911['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x589a87=this['editor'],_0x13ca89=_0x589a87['locale'];function _0xd0faea(_0x2cf050){return{'type':'format','content':o(_0x13ca89,'*Format:*\x20%0',_0x2cf050)};}_0x589a87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f1d38=>{if('formatBlock'!=_0x5f1d38['type'])return;const {data:_0x2de11b}=_0x5f1d38;if(_0x2de11b){if('setTableRowHeader'==_0x2de11b['commandName']){const _0x8e0a4d=_0x2de11b['commandParams'][0x0]['forceValue'];return _0xd0faea(o(_0x13ca89,_0x8e0a4d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2de11b['commandName']){const _0x46a48d=_0x2de11b['commandParams'][0x0]['forceValue'];return _0xd0faea(o(_0x13ca89,_0x46a48d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x5a00b1{['afterInit'](){const _0x1d80ae=this['editor'],_0x2531aa=_0x1d80ae['locale'],_0x3e3fff=_0x1d80ae['plugins']['get']('TrackChangesEditing');function _0x9c9c06(_0x19e5c5){return{'type':'format','content':''+o(_0x2531aa,'*Set\x20table\x20type:*\x20%0',_0x19e5c5)};}_0x1d80ae['plugins']['has']('TableLayout')&&(_0x3e3fff['enableCommand']('insertTableLayout'),_0x3e3fff['enableDefaultAttributesIntegration']('tableType'),_0x3e3fff['registerBlockAttribute']('tableType'),_0x3e3fff['descriptionFactory']['registerElementLabel'](_0x1eba02=>_0x1eba02['is']('element','table')&&'layout'===_0x1eba02['getAttribute']('tableType'),_0x1015b3=>o(_0x2531aa,'ELEMENT_LAYOUT_TABLE',_0x1015b3)),_0x3e3fff['descriptionFactory']['registerDescriptionCallback'](_0xfc76f7=>{const {data:_0x370563}=_0xfc76f7;if(_0x370563&&'tableType'==_0x370563['key'])switch(_0x370563['newValue']){case'layout':return _0x9c9c06(o(_0x2531aa,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x9c9c06(o(_0x2531aa,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Oe['map'](_0x585858=>[_0x585858,null]));class Bt extends _0x5a00b1{static get['requires'](){return[$t];}['afterInit'](){const _0x785b41=this['editor'];if(!_0x785b41['plugins']['has']('TableClipboard'))return;const _0x3cb7d3=_0x785b41['plugins']['get']('TrackChangesEditing'),_0x4c0de6=_0x785b41['plugins']['get']('TableUtils'),_0x3c3d8b=_0x785b41['plugins']['get']($t),_0xbd6690=_0x785b41['plugins']['get']('TableClipboard'),_0x3a52ec=_0x785b41['plugins']['get']('TableSelection'),_0x1bc322=_0x785b41['plugins']['get'](_0x5d352b);_0x3c3d8b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x785b41['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x785b41['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d1fc7=null,_0x18bef1=!0x1;_0x1bc322['on']('contentInsertion',(_0x463476,_0x5c0487)=>{_0x18bef1='paste'===_0x5c0487['method'];}),_0x785b41['model']['on']('insertContent',(_0x14939c,_0x31358f)=>{if(!_0x18bef1&&null===_0x3a52ec['getSelectedTableCells']())return;const [_0x562c9a,_0x2d3943]=_0x31358f,_0x5a425d=_0x31358f[_0x31358f['length']-0x1];_0x5a425d&&_0x5a425d['forceDefaultExecution']||_0x3cb7d3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17fc35,_0x547d71,_0x2239c8,_0x1fdd9c,_0x424656){if(_0x547d71&&!_0x547d71['is']('documentSelection'))return!0x1;const _0x288afb=_0x424656['getTableIfOnlyTableInContent'](_0x17fc35,_0x2239c8);if(!_0x288afb||!He(_0x288afb,void 0x0,_0x1fdd9c))return!0x1;const _0xd54844=_0x1fdd9c['getSelectionAffectedTableCells'](_0x2239c8['document']['selection']);if(!_0xd54844['length'])return!0x1;const _0x189480=_0xd54844[0x0]['findAncestor']('table'),_0x3a62e8=_0x1fdd9c['getRowIndexes'](_0xd54844),_0xc7d569=_0x1fdd9c['getColumnIndexes'](_0xd54844),_0x382e6b={'startRow':_0x3a62e8['first'],'endRow':_0x3a62e8['last'],'startColumn':_0xc7d569['first'],'endColumn':_0xc7d569['last']};return 0x1==_0xd54844['length']&&(_0x382e6b['endRow']+=_0x1fdd9c['getRows'](_0x288afb)-0x1,_0x382e6b['endColumn']+=_0x1fdd9c['getColumns'](_0x288afb)-0x1),He(_0x189480,_0x382e6b,_0x1fdd9c);}(_0x562c9a,_0x2d3943,_0x785b41['model'],_0x4c0de6,_0xbd6690)&&(_0x14939c['stop'](),_0x1d1fc7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x785b41['model']['change'](()=>{_0x785b41['model']['insertContent'](_0x31358f[0x0],_0x31358f[0x1],_0x31358f[0x2],{'forceDefaultExecution':!0x0});const _0x59eb9a=_0x220d6b(),{rowInsertionRanges:_0x35eb68,columnInsertionRanges:_0x56ad8d,insertionRanges:_0x1f6160,deletionRanges:_0x2fc675,cells:_0x2fc363}=_0x1d1fc7;_0x35eb68['length']&&_0x3cb7d3['markMultiRangeInsertion'](_0x35eb68,'tablePasteRow',{'tablePasteChainId':_0x59eb9a}),_0x56ad8d['length']&&_0x3cb7d3['markMultiRangeInsertion'](_0x56ad8d,'tablePasteColumn',{'tablePasteChainId':_0x59eb9a}),_0x1f6160['length']&&(_0x3cb7d3['markMultiRangeInsertion'](_0x1f6160,'tablePaste',{'tablePasteChainId':_0x59eb9a,'skipNestingCheck':!0x0}),_0x1f6160['forEach'](_0x2b3b3a=>_0x2b3b3a['detach']?.())),_0x2fc675['length']&&(_0x3cb7d3['markMultiRangeDeletion'](_0x2fc675,'tablePaste',{'tablePasteChainId':_0x59eb9a,'skipNestingCheck':!0x0}),_0x2fc675['forEach'](_0x1b0821=>_0x1b0821['detach']?.()));const _0x5ee094=_0x3cb7d3['markMultiRangeBlockFormat'](_0x2fc363['map'](({element:_0x42422c})=>_0x42422c),{'formatGroupId':_0x220d6b()},[],'tablePasteCell',{'tablePasteChainId':_0x59eb9a});if(_0x5ee094){const _0x9589e6=_0x5ee094['getMarkers'](),_0x3046f7=[];for(const {element:_0x2d8c3a,attributes:_0x240369}of _0x2fc363){if(!_0x240369)continue;const _0x5bdef4=_0x785b41['model']['createRangeOn'](_0x2d8c3a),_0x5bad3e=_0x9589e6['find'](_0x304539=>_0x304539['getRange']()['isEqual'](_0x5bdef4));_0x5bad3e&&_0x3046f7['push']([_0x5bad3e['name'],_0x240369]);}_0x3046f7['length']&&_0x5ee094['setAttribute']('markerAttributes',Object['fromEntries'](_0x3046f7));}_0x1d1fc7=null;}));},{'priority':_0x4b28bd['high']+0xa}),_0x1bc322['on']('contentInsertion',()=>{_0x18bef1=!0x1;},{'priority':'lowest'}),_0x785b41['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x458c2a,_0x4bbb5e)=>{const [_0x5757b9,_0x598ddc,,_0x126cbd]=_0x4bbb5e;if(!_0x1d1fc7)return;_0x458c2a['stop']();const _0x2d7a1b=_0x5757b9['cell'],_0x2988dd=_0x598ddc,_0x551812=De(_0x2d7a1b),_0x47d0bf=De(_0x2988dd);_0x458c2a['return']=_0x2d7a1b;let _0x411b6a=null,_0x37bce3=null;if(_0x47d0bf||_0x551812){if(_0x551812&&!_0x47d0bf){_0x126cbd['remove'](_0x2d7a1b['getChild'](0x0));for(const _0xf33b33 of Array['from'](_0x2988dd['getChildren']()))_0x126cbd['insert'](_0xf33b33,_0x2d7a1b,'end');const _0x1cdcc2=_0x1d1fc7['rowInsertionIndexes']['includes'](_0x5757b9['row']),_0x493ff0=_0x1d1fc7['columnInsertionIndexes']['includes'](_0x5757b9['column']);_0x1cdcc2||_0x493ff0||(_0x411b6a=_0x54a592['fromRange'](_0x126cbd['createRangeIn'](_0x2d7a1b)));}else _0x47d0bf&&!_0x551812&&(_0x37bce3=_0x126cbd['createRangeIn'](_0x2d7a1b));}else{const _0x261a7c=_0x126cbd['createElement']('tableCellSuggestion'),_0x2478bb=_0x126cbd['createElement']('tableCellSuggestion');_0x126cbd['wrap'](_0x126cbd['createRangeIn'](_0x2d7a1b),_0x2478bb),_0x126cbd['insert'](_0x261a7c,_0x2d7a1b,0x0);for(const _0x5ba2ca of Array['from'](_0x2988dd['getChildren']()))_0x126cbd['insert'](_0x5ba2ca,_0x261a7c,'end');_0x411b6a=_0x54a592['fromRange'](_0x126cbd['createRangeOn'](_0x261a7c)),_0x37bce3=_0x54a592['fromRange'](_0x126cbd['createRangeOn'](_0x2478bb));}const _0x288511=Array['from'](_0x2988dd['getAttributes']())['filter'](([_0x4ac68a])=>Oe['includes'](_0x4ac68a));_0x1d1fc7['cells']['push']({'element':_0x2d7a1b,'attributes':_0x288511['length']?Object['fromEntries'](_0x288511):null}),_0x411b6a&&_0x1d1fc7['insertionRanges']['push'](_0x411b6a),_0x37bce3&&_0x1d1fc7['deletionRanges']['push'](_0x37bce3);},{'priority':'high'}),_0x4c0de6['on']('insertColumns',(_0x20bbe6,_0x37c030)=>{const [_0x540e87,_0x16e3d0={}]=_0x37c030;if(!_0x1d1fc7)return;const _0x3da7e5=_0x16e3d0['at']||0x0,_0x5dfa7f=_0x16e3d0['columns']||0x1;_0x1d1fc7['columnInsertionIndexes']=new Array(_0x5dfa7f)['fill'](_0x3da7e5)['map']((_0x1fd9fe,_0xd2ed05)=>_0x1fd9fe+_0xd2ed05);for(const {cell:_0x45da16}of _0x4c0de6['createTableWalker'](_0x540e87,{'startColumn':_0x3da7e5,'endColumn':_0x3da7e5+_0x5dfa7f-0x1}))_0x1d1fc7['columnInsertionRanges']['push'](_0x785b41['model']['createRangeOn'](_0x45da16));},{'priority':'low'}),_0x4c0de6['on']('insertRows',(_0x31f8a1,_0xfcf1b2)=>{const [_0x157a10,_0x32c6eb={}]=_0xfcf1b2;if(!_0x1d1fc7)return;const _0x36d188=_0x32c6eb['at']||0x0,_0x30b44a=_0x32c6eb['rows']||0x1;_0x1d1fc7['rowInsertionIndexes']=new Array(_0x30b44a)['fill'](_0x36d188)['map']((_0x25985f,_0x39b6da)=>_0x25985f+_0x39b6da);for(const {cell:_0x2c1eb6}of _0x4c0de6['createTableWalker'](_0x157a10,{'startRow':_0x36d188,'endRow':_0x36d188+_0x30b44a-0x1}))_0x1d1fc7['rowInsertionRanges']['push'](_0x785b41['model']['createRangeOn'](_0x2c1eb6));},{'priority':'low'}),_0x3cb7d3['descriptionFactory']['registerDescriptionCallback'](_0x3e7b4d=>{if(_0x3e7b4d['subType']&&_0x3e7b4d['subType']['startsWith']('tablePaste'))return _0x3e7b4d['previous']?{}:{'type':'insertion','content':o(_0x785b41['locale'],'*Replace\x20table\x20cells*')};});const _0x1ae634=()=>!0x1;for(const _0x1a0e44 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3cb7d3['_suggestionFactory']['registerCustomCallback']('insertion',_0x1a0e44,'join',_0x1ae634),_0x3cb7d3['_suggestionFactory']['registerCustomCallback']('deletion',_0x1a0e44,'join',_0x1ae634),_0x3cb7d3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a0e44,'join',_0x1ae634);_0x3cb7d3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1ae634),_0x3cb7d3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x18940b,_0x1f9d58,_0x12369f)=>{const _0x5eda0e=_0x18940b['map'](_0x36657e=>_0x36657e['getContainedElement']())['filter'](_0x2e8eed=>_0x2e8eed),_0x1f7e94=new Map(_0x5eda0e['map'](_0x14e2e2=>[_0x14e2e2,null]));if(_0x1d1fc7){for(const {element:_0x257fc7,attributes:_0x5dfd96}of _0x1d1fc7['cells'])_0x5dfd96&&_0x1f7e94['set'](_0x257fc7,_0x5dfd96);}else{if(_0x12369f&&_0x12369f['markerAttributes'])for(const [_0x3855ea,_0xef4a86]of Object['entries'](_0x12369f['markerAttributes'])){const _0x4a94e7=_0x785b41['model']['markers']['get'](_0x3855ea),_0x1ae0ae=_0x4a94e7?_0x4a94e7['getRange']()['getContainedElement']():null;_0x1ae0ae&&_0x1f7e94['set'](_0x1ae0ae,_0xef4a86);}}_0x785b41['model']['change'](_0x25e3b0=>{for(const [_0x3fbbbb,_0x6281ce]of _0x1f7e94)_0x25e3b0['setAttributes']({...Ue,..._0x6281ce},_0x3fbbbb);});});const _0x361880=(_0x1bb6c7,_0x319259)=>{_0x3cb7d3['_suggestionFactory']['registerCustomCallback'](_0x1bb6c7,'tablePaste',_0x319259,(_0x3b8beb,_0x5bc647,_0x517e3a)=>{_0x785b41['model']['change'](_0x4d30be=>{const _0x1a60b9=[];for(const _0x164023 of _0x3b8beb){const _0x354ad5=_0x164023['start']['nodeAfter'];_0x354ad5['is']('element','tableCellSuggestion')&&_0x1a60b9['push'](_0x354ad5);}_0x3cb7d3['_suggestionFactory']['getSuggestionCallback'](_0x1bb6c7,null,_0x319259)(_0x3b8beb,_0x5bc647,_0x517e3a);for(const _0x39b339 of _0x1a60b9)'$graveyard'!=_0x39b339['root']['rootName']&&_0x4d30be['unwrap'](_0x39b339);});});};_0x361880('insertion','accept'),_0x361880('insertion','discard'),_0x361880('deletion','accept'),_0x361880('deletion','discard'),_0x3cb7d3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4d5f6e=>{const _0x38c606=_0x4d5f6e['map'](_0x50f774=>_0x50f774['getContainedElement']()),_0x3b2f2b=_0x38c606[0x0]['findAncestor']('table'),{minRow:_0x3a6b07,maxRow:_0x5c14f7}=_0x3c3d8b['_getCoordsForCells'](_0x38c606);_0x4c0de6['removeRows'](_0x3b2f2b,{'at':_0x3a6b07,'rows':_0x5c14f7-_0x3a6b07+0x1});}),_0x3cb7d3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe84cf4=>{const _0x5aad0a=_0xe84cf4['map'](_0x2125f3=>_0x2125f3['getContainedElement']()),_0x423990=_0x5aad0a[0x0]['findAncestor']('table'),{minColumn:_0x2f418e,maxColumn:_0x37c88a}=_0x3c3d8b['_getCoordsForCells'](_0x5aad0a);_0x4c0de6['removeColumns'](_0x423990,{'at':_0x2f418e,'columns':_0x37c88a-_0x2f418e+0x1});});const _0x53ad36=(_0x30a483,_0x12fad7)=>{if(!_0x12fad7['subType']||!_0x12fad7['subType']['startsWith']('tablePaste'))return;const _0x1035ca=_0x12fad7['attributes']['tablePasteChainId'],_0x5ef3e4=_0x3cb7d3['getSuggestions']()['filter'](_0x37e88f=>_0x37e88f['isInContent']&&_0x37e88f['attributes']&&_0x37e88f['attributes']['tablePasteChainId']==_0x1035ca);_0x5ef3e4['length']&&_0x12fad7['getAllAdjacentSuggestions']()['length']!=_0x5ef3e4['length']&&_0x5ef3e4['reduce']((_0x1b934c,_0x5ed78f)=>(_0x1b934c['next']=_0x5ed78f,_0x5ed78f['previous']=_0x1b934c,_0x5ed78f));};function _0x23aee2(_0x2b46b6,_0x50fff6=!0x0){const {id:_0x19fd03,authorId:_0x2fbb67}=_0x3cb7d3['_splitMarkerName'](_0x2b46b6['markerName']),_0x488b8f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1a8d5b=_0x3cb7d3['activeMarkers']['includes'](_0x2b46b6['markerName']);return _0x1a8d5b&&_0x488b8f['push']('ck-suggestion-marker--active'),{'classes':_0x488b8f,'attributes':{'data-suggestion':_0x19fd03,'data-author-id':_0x2fbb67},'priority':_0x1a8d5b&&_0x50fff6?0xbc2:0xbb8};}_0x3cb7d3['on']('suggestionLoaded',_0x53ad36,{'priority':'high'}),_0x3cb7d3['on']('suggestionUnloaded',_0x53ad36,{'priority':'high'}),_0x785b41['model']['document']['registerPostFixer'](()=>{let _0x52328e=!0x1;const _0x53dd31=Array['from'](_0x785b41['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1abd35,data:_0x1029ac}of _0x53dd31){const {group:_0x1998e2,type:_0x237d61,id:_0xff49df}=_0x3cb7d3['_splitMarkerName'](_0x1abd35);if('suggestion'!=_0x1998e2||'deletion'!=_0x237d61||_0x1029ac['oldRange'])continue;if(!_0x3cb7d3['hasSuggestion'](_0xff49df))continue;const _0x7ba90c=_0x3cb7d3['getSuggestion'](_0xff49df)['getRanges'](),_0x2ad13c=_0x785b41['plugins']['get']('Users')['me'];for(const _0x55c7f3 of _0x3cb7d3['getSuggestions']()){if(!_0x55c7f3['isInContent']||_0x55c7f3['author']!=_0x2ad13c)continue;if('formatBlock'!=_0x55c7f3['type']||'tablePasteCell'!=_0x55c7f3['subType'])continue;if(_0x55c7f3['getRanges']()['every'](_0x5e3a65=>_0x7ba90c['some'](_0x249bc8=>_0x249bc8['containsRange'](_0x5e3a65,!0x0)))){for(const _0x113b08 of _0x55c7f3['getAllAdjacentSuggestions']())_0x113b08['isInContent']&&(_0x113b08['discard'](),_0x52328e=!0x0);}}}return _0x52328e;}),_0x785b41['model']['document']['registerPostFixer'](_0x3f72bb=>{const _0x28a9cb=_0x785b41['commands']['get']('redo');if(!_0x28a9cb||!_0x28a9cb['_createdBatches']['has'](_0x3f72bb['batch']))return!0x1;let _0x3258e3=!0x1;const _0xa771=_0x785b41['plugins']['get']('Users')['me'],_0x2bb427=_0x785b41['model']['document']['differ']['getChanges'](),_0x8317bf=Array['from'](_0x785b41['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xe0734f,data:_0x6b4636})=>{const {group:_0x2f2efb,subType:_0x4563e0,authorId:_0x36af12}=_0x3cb7d3['_splitMarkerName'](_0xe0734f);return'suggestion'==_0x2f2efb&&'tablePaste'==_0x4563e0&&_0x36af12==_0xa771['id']&&!_0x6b4636['oldRange'];});for(const _0x43801e of _0x2bb427){if('insert'!=_0x43801e['type']||'tableCellSuggestion'!=_0x43801e['name']||0x1!=_0x43801e['length'])continue;const _0x155670=_0x3f72bb['createRange'](_0x43801e['position'],_0x43801e['position']['getShiftedBy'](0x1));if(!_0x8317bf['find'](({data:_0x4d154d})=>_0x4d154d['newRange']['isEqual'](_0x155670))){for(const {name:_0x38a324,data:_0x26f067}of _0x8317bf)if(_0x155670['containsRange'](_0x26f067['newRange'])){_0x3f72bb['updateMarker'](_0x38a324,{'range':_0x155670}),_0x3258e3=!0x0;break;}}}return _0x3258e3;}),_0x785b41['model']['document']['registerPostFixer'](_0x642141=>{let _0x371734=!0x1;const _0x1ee0b4=_0x785b41['plugins']['get']('Users')['me'],_0x1911de=_0x3cb7d3['getSuggestions']()['filter'](_0x3303f8=>_0x3303f8['isInContent']&&_0x3303f8['author']==_0x1ee0b4),_0x19c9f1=new Set(),_0x568ac0=new Set();for(const _0x2dd8b3 of _0x1911de)if('tablePaste'==_0x2dd8b3['subType'])for(const _0x28e624 of _0x2dd8b3['getMarkers']()){const _0xea9935=_0x28e624['getRange']()['getContainedElement']();if(_0xea9935){if(_0xea9935['is']('element','tableCellSuggestion')&&De(_0xea9935)){_0x2dd8b3['removeMarker'](_0x28e624['name']),_0x19c9f1['add'](_0xea9935),_0x371734=!0x0;const _0x3d4bd9=_0xea9935['nextSibling'],_0x42f64c=_0xea9935['previousSibling'],_0x405fce=_0x3d4bd9&&_0x3d4bd9['is']('element','tableCellSuggestion'),_0x36a7af=_0x42f64c&&_0x42f64c['is']('element','tableCellSuggestion');_0x405fce&&!_0x19c9f1['has'](_0x3d4bd9)&&_0x568ac0['add'](_0x3d4bd9),_0x36a7af&&!_0x19c9f1['has'](_0x42f64c)&&_0x568ac0['add'](_0x42f64c);}else _0xea9935['is']('element','paragraph')&&_0xea9935['isEmpty']&&(_0x2dd8b3['removeMarker'](_0x28e624['name']),_0x371734=!0x0);}}else{if('tablePasteCell'==_0x2dd8b3['subType']){if(!_0x2dd8b3['attributes']||!_0x2dd8b3['attributes']['tablePasteChainId'])continue;const _0x4705d9=_0x2dd8b3['attributes']['markerAttributes'];if(_0x4705d9&&Object['keys'](_0x4705d9)['length'])continue;const _0xfc95d4=_0x2dd8b3['attributes']['tablePasteChainId'];let _0x21a7b7=!0x0,_0x29b0e7=!0x0;for(const _0x39c6c9 of _0x1911de)if(_0x39c6c9['subType']&&_0x39c6c9['subType']['startsWith']('tablePaste')){if(!_0x39c6c9['attributes']['tablePasteChainId']){_0x29b0e7=!0x1;break;}if(_0x39c6c9['id']!=_0x2dd8b3['id']&&_0x39c6c9['attributes']['tablePasteChainId']==_0xfc95d4){_0x21a7b7=!0x1;break;}}_0x29b0e7&&_0x21a7b7&&(_0x2dd8b3['removeMarkers'](),_0x371734=!0x0);}}for(const _0x13b63d of _0x19c9f1)_0x642141['remove'](_0x13b63d);for(const _0xb00691 of _0x568ac0)_0x642141['unwrap'](_0xb00691);return _0x371734;}),_0x785b41['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1835fe=>_0x23aee2(_0x1835fe),'converterPriority':'high'}),_0x785b41['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1bf4ec,_0x10af22)=>_0x10af22['options']['showSuggestionHighlights']?_0x23aee2(_0x1bf4ec,!0x1):null,'converterPriority':'high'});const _0x25e06d=_0x785b41['editing']['view'];this['listenTo'](_0x25e06d['document'],'clipboardOutput',(_0x3fa0ba,_0x5df651)=>{const _0x265f8e=[];for(const _0x4e96d7 of _0x25e06d['createRangeIn'](_0x5df651['content'])['getItems']())_0x4e96d7['is']('element','suggestion-td')&&_0x265f8e['push'](_0x4e96d7);_0x25e06d['change'](_0x1dc6fe=>{for(const _0x183b1c of _0x265f8e)_0x1dc6fe['move'](_0x1dc6fe['createRangeIn'](_0x183b1c),_0x1dc6fe['createPositionBefore'](_0x183b1c)),_0x1dc6fe['remove'](_0x183b1c);});});}}function De(_0x4e88ad){if(_0x4e88ad['isEmpty'])return!0x0;const _0x17992f=_0x4e88ad['getChild'](0x0);return _0x17992f['is']('element','paragraph')&&_0x17992f['isEmpty'];}function He(_0x139ddf,_0x215195={},_0x1af3f1){for(const {isAnchor:_0x57164e,cellHeight:_0x5b77e9,cellWidth:_0x35e1ad}of _0x1af3f1['createTableWalker'](_0x139ddf,{'includeAllSlots':!0x0,..._0x215195}))if(!_0x57164e||0x1!=_0x5b77e9||0x1!=_0x35e1ad)return!0x1;return!0x0;}class Tt extends _0x5a00b1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5de364=this['editor']['plugins']['get']('TrackChangesEditing');_0x5de364['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5de364['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5de364['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5de364['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5de364['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5de364['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x36b7db,_0x1f67af){const _0x3b5f6b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd75a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x15bc10=_0x1f67af['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2c3361=_0x5dd75a['getColumnGroupElement'](_0x15bc10);let _0x2145f6=_0x2c3361?_0x5dd75a['getTableColumnsWidths'](_0x2c3361):null,_0xa36920=_0x15bc10['getAttribute']('tableWidth')||null;const _0x4ce117=_0x1f67af['tableWidth']||_0xa36920,_0x4d9f17=_0x1f67af['columnWidths']||_0x2145f6,_0x12a5f5=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c40cc of _0x3b5f6b['getSuggestions']()){const _0x58c678=_0x3c40cc['getContainedElement']();if('resizeTable'===_0x3c40cc['subType']&&_0x58c678===_0x15bc10){_0x3c40cc['author']!==_0x12a5f5&&_0x3c40cc['discard']();const _0x28e0a7=_0x3c40cc['data']['commandParams'];_0xa36920=_0x28e0a7[0x0]['tableWidth'],_0x2145f6=_0x28e0a7[0x0]['columnWidths'];break;}}_0x36b7db({'table':_0x15bc10,'tableWidth':_0x4ce117,'columnWidths':_0x4d9f17}),_0x3b5f6b['markBlockFormat'](_0x15bc10,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa36920,'columnWidths':_0x2145f6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f6633){if('formatBlock'!=_0x4f6633['type']&&'formatInline'!=_0x4f6633['type'])return;const {data:_0x4f963a}=_0x4f6633;if(_0x4f963a&&'resizeTable'===_0x4f963a['formatGroupId']){const _0x4f2fff='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4f2fff)};}}}class Ot extends _0x5a00b1{['afterInit'](){const _0x3b4bf2=this['editor'];_0x3b4bf2['plugins']['has']('Template')&&_0x3b4bf2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x5a00b1{['afterInit'](){const _0x4ef950=this['editor'];if(!_0x4ef950['commands']['get']('insertTableOfContents'))return;_0x4ef950['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x427d80=_0x4ef950['plugins']['get']('TrackChangesEditing'),_0x147dac=_0x4ef950['locale'];_0x427d80['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4fbf4b=>o(_0x147dac,'ELEMENT_TABLE_OF_CONTENTS',_0x4fbf4b));}}class Et extends _0x5a00b1{['afterInit'](){const _0xad9fbe=this['editor'];if(!_0xad9fbe['plugins']['has']('Title'))return;const _0x189e7a=_0xad9fbe['plugins']['get']('TrackChangesEditing');_0x189e7a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xad9fbe['locale'],'ELEMENT_TITLE')),_0xad9fbe['model']['document']['registerPostFixer'](_0x32273c=>{let _0x3a972a=!0x1;const _0x330ad1=Array['from'](_0xad9fbe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd14773,data:_0x214ff0}of _0x330ad1){const {group:_0x4efcae}=_0x189e7a['_splitMarkerName'](_0xd14773);if('suggestion'!==_0x4efcae||!_0x214ff0['newRange'])continue;const _0x3f96e5=_0x214ff0['newRange'],_0x251012=_0x3f96e5['end']['nodeBefore'];if(!_0x251012||!_0x251012['is']('element','title-content'))continue;if(!_0x3f96e5['start']['isTouching'](_0x3f96e5['end']))continue;const _0x544713=_0xad9fbe['model']['schema']['getNearestSelectionRange'](_0x3f96e5['end'],'forward');if(_0x544713&&_0x544713['isCollapsed']){const _0x3e2762=_0x32273c['createRange'](_0x3f96e5['start'],_0x544713['start']);_0x3e2762['isEqual'](_0x3f96e5)||(_0x32273c['updateMarker'](_0xd14773,{'range':_0x3e2762}),_0x3a972a=!0x0);}_0x3a972a||(_0x32273c['removeMarker'](_0xd14773),_0x3a972a=!0x0);}return _0x3a972a;});}}class Rt extends _0x5a00b1{['afterInit'](){const _0x4aab41=this['editor'],_0x49d34e=_0x4aab41['plugins']['get']('TrackChangesEditing');_0x4aab41['plugins']['has']('Uploadcare')&&(_0x49d34e['enableCommand']('uploadcare'),_0x4aab41['plugins']['has']('UploadcareImageEdit')&&(_0x49d34e['enableCommand']('uploadcareImageEdit'),_0x49d34e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x49d34e['registerBlockAttribute']('uploadcareImageId'),_0x49d34e['descriptionFactory']['registerDescriptionCallback'](_0x2b658e=>{if('attribute'!=_0x2b658e['type'])return;const {data:_0x309af1}=_0x2b658e;return _0x309af1&&'uploadcareImageId'==_0x309af1['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x5a00b1{['afterInit'](){const _0x26f492=this['editor'],_0x10e64a=_0x26f492['plugins']['get']('TrackChangesEditing');_0x26f492['plugins']['has']('UndoEditing')&&(_0x10e64a['enableCommand']('undo'),_0x10e64a['enableCommand']('redo'));}}class Vt extends _0x5a00b1{static get['requires'](){return[$t];}['afterInit'](){const _0x2bfd6c=this['editor'];if(!_0x2bfd6c['plugins']['has']('TableCaptionEditing'))return;_0x2bfd6c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x5a00b1{['tableProperties'];['tableCellProperties'];constructor(_0x4e4ee8){super(_0x4e4ee8),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 _0x2d9478=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4a6c21 of this['tableProperties'])_0x2d9478['enableCommand'](_0x4a6c21,(_0x4d7b7b,_0x21bd8c)=>{const _0x44fccb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4a6c21,[_0x44fccb],this['tableProperties'],'tableProperties',_0x4d7b7b,_0x21bd8c);});_0x2d9478['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2d9478['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d9478['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x488dfe,_0x41f3bc)=>this['handleDiscardAction'](this['tableProperties'],_0x488dfe,_0x41f3bc)),_0x2d9478['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x536a8c of this['tableCellProperties'])_0x2d9478['enableCommand'](_0x536a8c,(_0xa8db3f,_0xc0de5)=>{const _0x401443=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x536a8c,_0x401443,this['tableCellProperties'],'tableCellProperties',_0xa8db3f,_0xc0de5);});_0x2d9478['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2d9478['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d9478['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x28da6a,_0x42266f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x28da6a,_0x42266f)),_0x2d9478['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2d9478['descriptionFactory']['registerDescriptionCallback'](_0x1f713e=>this['handleSuggestionDescription'](_0x1f713e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x56874d,_0x35451b,_0x410c74,_0x418ba5,_0x5d70fb,_0x3c1c98){const _0x110e44=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c1c98['batch'],()=>{for(const _0x10ac78 of _0x35451b){if(this['_getSuggestion'](_0x10ac78,_0x418ba5))_0x5d70fb(_0x3c1c98);else{const _0x3c5855={};for(const _0x3fac0c of _0x410c74){const _0x146749=_0x10ac78['getAttribute'](_0x3fac0c);void 0x0!==_0x146749&&(_0x3c5855[_0x3fac0c]=_0x146749);}_0x5d70fb(_0x3c1c98),_0x110e44['markBlockFormat'](_0x10ac78,{'commandParams':[_0x3c5855]},[],_0x418ba5);}}});}['handleDiscardAction'](_0x5e4313,_0x116dfc,_0x424177){const _0x2e1a9b=_0x116dfc[0x0]['start']['nodeAfter'],_0x4abc08=_0x424177['commandParams'][0x0];this['editor']['model']['change'](_0x890c57=>{for(const _0xcf110 of _0x5e4313)void 0x0!==_0x4abc08[_0xcf110]?_0x890c57['setAttribute'](_0xcf110,_0x4abc08[_0xcf110],_0x2e1a9b):_0x890c57['removeAttribute'](_0xcf110,_0x2e1a9b);});}['handleSuggestionDescription'](_0x1565f6){if(_0x1565f6['data'])switch(_0x1565f6['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'](_0x588fae,_0x4efeca){const _0x392483=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5debc9 of _0x392483['getSuggestions']({'skipNotAttached':!0x0})){const _0xa02d9b=_0x5debc9['getContainedElement']();if(_0x5debc9['subType']===_0x4efeca&&_0xa02d9b===_0x588fae)return _0x5debc9;}return null;}['_registerTablePropertiesAttributes'](){const _0x301acf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31428e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x39130a of _0x31428e){const _0x2fecb6=_0x39130a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x301acf['registerBlockAttribute'](_0x39130a),_0x301acf['descriptionFactory']['registerAttributeLabel'](_0x39130a,o(this['editor']['locale'],'FORMAT_'+_0x2fecb6));}}}class Pt extends _0x5a00b1{['afterInit'](){const _0x3987e3=this['editor'];if(!_0x3987e3['plugins']['has']('LineHeight'))return;const _0x7e0464=_0x3987e3['plugins']['get']('TrackChangesEditing'),_0x24580e=_0x3987e3['locale'];_0x7e0464['enableDefaultAttributesIntegration']('lineHeight'),_0x7e0464['registerBlockAttribute']('lineHeight'),_0x7e0464['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x24580e,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5a00b1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xee2af6,_0x54f762,_0x2d26dc,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37ce76){super(_0x37ce76),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3151f3,_0x5ade84,_0x4b2543,_0x25e459)=>{this['_model']['change'](()=>{for(const _0x2d97bd of[..._0x25e459,..._0x4b2543])this['_model']['markers']['has'](_0x2d97bd)&&_0x37ce76['editing']['reconvertMarker'](_0x2d97bd);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x37ce76['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(),_0x37ce76['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x37ce76['config']['get']('trackChanges.trackFormatChanges'),_0x37ce76['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x37ce76['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x37ce76,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x517ea9=this['editor'],_0x3aa6dd=(_0x3f9b68,_0x238584)=>{if('attribute'!=_0x3f9b68)return'ck-suggestion-marker-'+_0x3f9b68;const _0x5587d8=_0x238584['split']('|')[0x0];return this['_isBlockAttribute'](_0x5587d8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x517ea9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b6274=>{const {id:_0xdae35f,authorId:_0x5daa01,type:_0x58cbeb,subType:_0x49ffa4}=this['_splitMarkerName'](_0x5b6274['markerName']),_0x616dd9=['ck-suggestion-marker',_0x3aa6dd(_0x58cbeb,_0x49ffa4)];let _0xd7b6f8=0xbb8;return this['activeMarkers']['includes'](_0x5b6274['markerName'])&&(_0x616dd9['push']('ck-suggestion-marker--active'),_0xd7b6f8=0xbc2),'deletion'==_0x58cbeb&&(_0xd7b6f8+=0x5),{'classes':_0x616dd9,'attributes':{'data-suggestion':_0xdae35f,'data-author-id':_0x5daa01},'priority':_0xd7b6f8};}}),_0x517ea9['conversion']['for']('dataDowncast')['add'](_0x365dea=>{_0x365dea['on']('addMarker:suggestion',(_0x49a4cb,_0x1a9b56,_0x34b7d1)=>{if(!_0x34b7d1['options']['showSuggestionHighlights'])return;const _0x946575=_0x1a9b56['item'];if(!_0x946575)return;const _0x26e5dc=_0x34b7d1['mapper']['toViewElement'](_0x946575);_0x517ea9['model']['schema']['isObject'](_0x946575)&&_0x26e5dc&&!_0x26e5dc['getCustomProperty']('widget')&&_0x26e5dc['is']('containerElement')&&_0x4b8bcb(_0x26e5dc,_0x34b7d1['writer']);},{'priority':'high'});}),_0x517ea9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xa99a1,_0x3bdaca)=>{if(!_0x3bdaca['options']['showSuggestionHighlights'])return null;const {id:_0x2a4138,authorId:_0x5568bf,type:_0x471307,subType:_0x4616f6}=this['_splitMarkerName'](_0xa99a1['markerName']);return{'classes':['ck-suggestion-marker',_0x3aa6dd(_0x471307,_0x4616f6)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2a4138,'data-author-id':_0x5568bf}};}});const _0x32f4d1=({showActiveMarkers:_0x100cb5=!0x0,isAttributeSuggestion:_0x4133bb=!0x1}={})=>(_0x4c846f,_0x4aab61,_0x7af68d)=>{if(!_0x4aab61['item'])return;const {id:_0x1f0e2e,authorId:_0x3a2985,subType:_0x496740}=this['_splitMarkerName'](_0x4aab61['markerName']);if(_0x4133bb){const _0x3f8fc3=se(_0x496740);if(!this['_isBlockAttribute'](_0x3f8fc3))return;}if(_0x4aab61['item']['is']('selection'))return void _0x7af68d['consumable']['consume'](_0x4aab61['item'],_0x4c846f['name']);const _0x470d83=_0x7af68d['mapper']['toViewElement'](_0x4aab61['item']);if(_0x4aab61['item']['is']('element')&&_0x517ea9['model']['schema']['isBlock'](_0x4aab61['item'])&&!_0x470d83['getCustomProperty']('addHighlight')){_0x7af68d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x470d83),_0x7af68d['writer']['setAttribute']('data-suggestion',_0x1f0e2e,_0x470d83),_0x7af68d['writer']['setAttribute']('data-author-id',_0x3a2985,_0x470d83),_0x7af68d['mapper']['bindElementToMarker'](_0x470d83,_0x4aab61['markerName']),_0x100cb5&&(this['activeMarkers']['includes'](_0x4aab61['markerName'])?_0x7af68d['writer']['addClass']('ck-suggestion-marker--active',_0x470d83):_0x7af68d['writer']['removeClass']('ck-suggestion-marker--active',_0x470d83));for(const _0x192cf9 of _0x517ea9['model']['createRangeIn'](_0x4aab61['item'])['getItems']())_0x7af68d['consumable']['consume'](_0x192cf9,_0x4c846f['name']);_0x7af68d['consumable']['consume'](_0x4aab61['item'],_0x4c846f['name']);}};_0x517ea9['conversion']['for']('dataDowncast')['add'](_0x3c9f78=>{_0x3c9f78['on']('addMarker:suggestion:formatBlock',(_0x4a0fef,_0x51aad2,_0x49a073)=>{_0x49a073['options']['showSuggestionHighlights']&&_0x32f4d1({'showActiveMarkers':!0x1})(_0x4a0fef,_0x51aad2,_0x49a073);},{'priority':'highest'});}),_0x517ea9['conversion']['for']('dataDowncast')['add'](_0x19cbf5=>{_0x19cbf5['on']('addMarker:suggestion:attribute',(_0x25e188,_0x5827f2,_0x3a5c11)=>{_0x3a5c11['options']['showSuggestionHighlights']&&_0x32f4d1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x25e188,_0x5827f2,_0x3a5c11);},{'priority':'highest'});}),_0x517ea9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1618a6,_0x4eb17f)=>{if(_0x4eb17f['options']['showSuggestionHighlights']){const {id:_0x4d44df,authorId:_0x5247ff}=this['_splitMarkerName'](_0x1618a6);return _0x1618a6['includes'](':split')||_0x1618a6['includes'](':merge')?{'group':'suggestion','name':_0x1618a6['substr'](0xb),'attributes':{'data-suggestion':_0x4d44df,'data-author-id':_0x5247ff}}:null;}return{'group':'suggestion','name':_0x1618a6['substr'](0xb)};}}),_0x517ea9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x204f1d,{writer:_0x21d3ce})=>{let _0x504f60='suggestion:'+_0x204f1d['getAttribute']('suggestion-type')+':'+_0x204f1d['getAttribute']('id');return _0x204f1d['getAttribute']('marker-count')&&(_0x504f60+=':'+_0x204f1d['getAttribute']('marker-count')),_0x21d3ce['createElement']('$marker',{'data-name':_0x504f60});}}),_0x517ea9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x517ea9['conversion']['for']('editingDowncast')['add'](_0x57f217=>{_0x57f217['on']('addMarker:suggestion:formatBlock',_0x32f4d1(),{'priority':'high'});}),_0x517ea9['conversion']['for']('editingDowncast')['add'](_0x31e208=>{_0x31e208['on']('addMarker:suggestion:attribute',_0x32f4d1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x517ea9['conversion']['for']('editingDowncast')['add'](_0x3e5cf0=>{_0x3e5cf0['on']('removeMarker:suggestion:formatBlock',(_0x5c7d44,_0x5a4a9e,_0x4e7693)=>{const _0x57cfbb=_0x4e7693['mapper']['markerNameToElements'](_0x5a4a9e['markerName']);if(_0x57cfbb){for(const _0x4569d2 of _0x57cfbb)_0x4569d2['getCustomProperty']('addHighlight')||(_0x4e7693['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4569d2),_0x4e7693['writer']['removeAttribute']('data-suggestion',_0x4569d2),_0x4e7693['writer']['removeAttribute']('data-author-id',_0x4569d2),_0x4e7693['mapper']['unbindElementFromMarkerName'](_0x4569d2,_0x5a4a9e['markerName']));}},{'priority':'high'});}),_0x517ea9['conversion']['for']('editingDowncast')['add'](_0x482a3c=>{_0x482a3c['on']('removeMarker:suggestion:attribute',(_0x3b8b5c,_0x3f9dde,_0x44efea)=>{const _0xc2917f=_0x44efea['mapper']['markerNameToElements'](_0x3f9dde['markerName']);if(!_0xc2917f)return;const {subType:_0x3843e}=this['_splitMarkerName'](_0x3f9dde['markerName']),_0x564970=se(_0x3843e);if(this['_isBlockAttribute'](_0x564970)){for(const _0x478bbf of _0xc2917f)_0x478bbf['getCustomProperty']('addHighlight')||(_0x44efea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x478bbf),_0x44efea['writer']['removeAttribute']('data-suggestion',_0x478bbf),_0x44efea['writer']['removeAttribute']('data-author-id',_0x478bbf),_0x44efea['mapper']['unbindElementFromMarkerName'](_0x478bbf,_0x3f9dde['markerName']));}},{'priority':'high'});}),_0x517ea9['model']['document']['registerPostFixer'](_0x42e5fe=>{let _0x2f8ed5=!0x1;const _0x3762d0=Array['from'](_0x517ea9['model']['document']['differ']['getChangedMarkers']()),_0x1640eb=new Set();for(const {name:_0x39c295,data:_0x4fc5a1}of _0x3762d0){const {group:_0x42a000,type:_0x10099d,subType:_0xfb1239,id:_0x3e93a4}=this['_splitMarkerName'](_0x39c295);if('suggestion'!==_0x42a000)continue;const _0x21111=_0xfb1239?'suggestion:'+_0x10099d+':'+_0xfb1239+':'+_0x3e93a4:'suggestion:'+_0x10099d+':'+_0x3e93a4,_0x16f14d=_0x517ea9['model']['markers']['getMarkersGroup'](_0x21111),_0x4517db=_0x517ea9['model']['markers']['get'](_0x39c295),_0x292f96=this['_suggestions']['get'](_0x3e93a4);if(null!=_0x4fc5a1['newRange']){'formatInline'==_0x10099d&&(_0x2f8ed5=_0x2f8ed5||Ht(_0x4fc5a1['newRange'],_0x39c295,_0x42e5fe,_0x517ea9['model']['schema']));const _0x2bec17='attribute'==_0x10099d&&this['_isBlockAttribute'](_0xfb1239['split']('|')[0x0]),_0x2c106c='attribute'==_0x10099d&&this['_isInlineAttribute'](_0xfb1239['split']('|')[0x0]);if(_0x4fc5a1['newRange']['isCollapsed']||'$graveyard'==_0x4fc5a1['newRange']['root']['rootName']||'formatBlock'==_0x10099d&&!qt(_0x4fc5a1['newRange'])||_0x2bec17&&!qt(_0x4fc5a1['newRange'])||_0x2c106c&&zt(_0x4fc5a1['newRange'])||'deletion'==_0x10099d&&zt(_0x4fc5a1['newRange'])||_0x4517db&&Qt(_0x4517db,_0x16f14d))_0x42e5fe['removeMarker'](_0x39c295),_0x2f8ed5=!0x0;else{if(!_0x292f96||!_0x292f96['isInContent'])continue;if(_0x4fc5a1['newRange']&&_0x4fc5a1['oldRange']&&_0x4fc5a1['newRange']['isEqual'](_0x4fc5a1['oldRange']))continue;_0x1640eb['add'](_0x292f96);}}}return _0x1640eb['size']>0x0&&(_0x2f8ed5=!!this['_joinWithAdjacentSuggestions'](_0x1640eb)||_0x2f8ed5),_0x2f8ed5;}),_0x517ea9['model']['document']['registerPostFixer'](_0x53785a=>{let _0x12a34b=!0x1;for(const _0x35b9ae of _0x517ea9['model']['document']['differ']['getChanges']())if('insert'==_0x35b9ae['type'])for(const _0x140781 of this['_suggestions']['values']()){if(_0x140781['isMultiRange']||!_0x140781['isInContent'])continue;const _0x19b126='formatBlock'==_0x140781['type'],_0xdf6169=this['_getAttributeKey'](_0x140781),_0x4ee1fb=_0xdf6169&&this['_isBlockAttribute'](_0xdf6169);if(!_0x19b126&&!_0x4ee1fb)continue;const _0x59db67=_0x140781['getFirstRange']();if(_0x59db67['start']['parent']!=_0x59db67['end']['parent']&&!_0x59db67['end']['isAtEnd']){const _0x2d41fe=_0x517ea9['model']['createPositionAt'](_0x59db67['start']['nodeAfter'],'end'),_0x2bab86=_0x517ea9['model']['createRange'](_0x59db67['start'],_0x2d41fe);_0x53785a['updateMarker'](_0x140781['getFirstMarker'](),{'range':_0x2bab86}),_0x12a34b=!0x0;}}return _0x12a34b;}),_0x517ea9['model']['document']['registerPostFixer'](_0x37e3ca=>this['_processAttributeChanges'](_0x37e3ca)),_0x517ea9['model']['document']['registerPostFixer'](_0x1a9633=>!_0x1a9633['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1a9633)),_0x517ea9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x517ea9['model']['document']['on']('change:data',(_0x29a3be,_0x3e059e)=>{if(!_0x3e059e['isLocal']||_0x3e059e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5bedf6=_0x517ea9['model']['document']['differ']['getChanges']();if(0x0==_0x5bedf6['length'])return;const _0x2b3502=[],_0x24621a=_0x5bedf6['filter'](_0x232fce=>'attribute'==_0x232fce['type']),_0x21ec0d=_0x5bedf6['filter'](_0x259db4=>'insert'==_0x259db4['type']&&'$text'!=_0x259db4['name']);for(const _0x5dcb38 of _0x24621a)this['_isRegisteredAttribute'](_0x5dcb38['attributeKey'])&&_0x2b3502['push']({'key':_0x5dcb38['attributeKey'],'newValue':_0x5dcb38['attributeNewValue'],'oldValue':_0x5dcb38['attributeOldValue'],'range':Yt(_0x5dcb38['range'],_0x517ea9['model'])});for(const _0x202475 of _0x21ec0d){if('rename'!=_0x202475['action']&&'refresh'!=_0x202475['action'])continue;const _0x34e227=Zt(_0x202475['position']['nodeAfter'],_0x517ea9['model']),_0x4c4690=_0x202475['before'];'rename'==_0x202475['action']&&_0x2b3502['push']({'key':m,'newValue':_0x202475['name'],'oldValue':_0x4c4690['name'],'range':_0x34e227});for(const [_0x5c200e,_0x264f36]of _0x4c4690['attributes']){if(!this['_isRegisteredAttribute'](_0x5c200e))continue;const _0x52cbe7=_0x202475['attributes']['get'](_0x5c200e);_0x264f36!==_0x52cbe7&&_0x2b3502['push']({'key':_0x5c200e,'newValue':_0x52cbe7,'oldValue':_0x264f36,'range':_0x34e227});}for(const [_0x2b2188,_0x10ef1e]of _0x202475['attributes'])this['_isRegisteredAttribute'](_0x2b2188)&&(_0x4c4690['attributes']['has'](_0x2b2188)||_0x2b3502['push']({'key':_0x2b2188,'newValue':_0x10ef1e,'oldValue':null,'range':_0x34e227}));}0x0!=_0x2b3502['length']&&_0x517ea9['model']['enqueueChange'](_0x3e059e,_0x54b3eb=>{const _0x311061=_0x220d6b();for(const {range:_0x5b7dda,key:_0x401cdf,oldValue:_0x496e1e,newValue:_0x5e86db}of _0x2b3502)this['markAttributeChange'](_0x5b7dda,_0x401cdf,_0x496e1e,_0x5e86db,{'groupId':_0x311061});this['_reduceExistingSuggestions'](_0x54b3eb,_0x2b3502);});},{'priority':'lowest'}),_0x517ea9['model']['markers']['on']('update:suggestion',(_0x4cda01,_0x1328bc,_0x42dd26)=>{if(null==_0x42dd26){const {id:_0x3a2a93}=this['_splitMarkerName'](_0x1328bc['name']),_0x4b007c=this['_suggestions']['get'](_0x3a2a93);_0x4b007c&&_0x4b007c['addMarkerName'](_0x1328bc['name']);}}),_0x517ea9['model']['document']['on']('change:data',()=>{const _0x38218e=Array['from'](_0x517ea9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x276ad0=>'suggestion'===this['_splitMarkerName'](_0x276ad0['name'])['group']);if(0x0===_0x38218e['length'])return;_0x38218e['sort']((_0x95dae6,_0x3bcbe1)=>{const _0x159cac=_0x95dae6['data']['oldRange'],_0x285dca=_0x3bcbe1['data']['oldRange'];return null===_0x159cac&&null===_0x285dca?0x0:null===_0x159cac&&null!==_0x285dca?-0x1:null!==_0x159cac&&null===_0x285dca?0x1:_0x159cac['start']['isBefore'](_0x285dca['start'])?-0x1:0x1;});const _0x2a9458=new Set(),_0x56c992=new Set();for(const {name:_0x4d3b52,data:_0x5a28cb}of _0x38218e){const {id:_0x1e2162}=this['_splitMarkerName'](_0x4d3b52);if(null===_0x5a28cb['oldRange']){const _0x4278da=this['_handleNewSuggestionMarker'](_0x4d3b52);_0x56c992['add'](_0x4278da);}else{const _0x32df57=this['_suggestions']['get'](_0x1e2162);null!==_0x5a28cb['newRange']||_0x32df57['isInContent']?(_0x2a9458['add'](_0x32df57['head']),_0x56c992['add'](_0x32df57)):this['_removeSuggestion'](_0x32df57);}}_0x56c992['size']>0x0&&this['_refreshSuggestionsChain'](_0x56c992);for(const _0xba11e4 of _0x2a9458)this['fire']('suggestionChanged',_0xba11e4);}),_0x517ea9['model']['on']('applyOperation',(_0x405e7d,_0x7d486f)=>{const _0x3c28bf=_0x7d486f[0x0];if(!this['_suggestions']['size'])return;if(!_0x3c28bf['isDocumentOperation'])return;if(_0x3c28bf['batch']['isUndo']||!_0x3c28bf['batch']['isLocal'])return;let _0x9eae23,_0x2ce214;switch(_0x3c28bf['type']){case'insert':_0x9eae23=_0x517ea9['model']['createPositionAt'](_0x3c28bf['position']),_0x2ce214=_0x9eae23['getShiftedBy'](_0x3c28bf['howMany']);break;case'split':_0x9eae23=_0x517ea9['model']['createPositionAt'](_0x3c28bf['splitPosition']),_0x2ce214=_0x517ea9['model']['createPositionAt'](_0x3c28bf['moveTargetPosition']);break;case'move':_0x9eae23=_0x517ea9['model']['createPositionAt'](_0x3c28bf['targetPosition']),_0x2ce214=_0x9eae23['getShiftedBy'](_0x3c28bf['howMany']);break;default:return;}const _0x4abc3b=_0x517ea9['model']['createRange'](_0x9eae23,_0x2ce214);_0x517ea9['model']['change'](()=>{for(const {suggestion:_0x1761fb,meta:_0x4541df}of this['_findSuggestions'](_0x4abc3b)){if(_0x1761fb['isMultiRange'])continue;if('formatInline'==_0x1761fb['type'])continue;const _0x2ed158=this['_getAttributeKey'](_0x1761fb);if(_0x2ed158&&this['_isBlockAttribute'](_0x2ed158)&&'split'!=_0x3c28bf['type'])continue;const _0x985982=_0x1761fb['data']&&_0x1761fb['data']['multipleBlocks'];('formatBlock'!=_0x1761fb['type']||'split'==_0x3c28bf['type']&&!_0x985982)&&(_0x4541df['containsRangeInObject']||'insertion'==_0x1761fb['type']&&_0x4541df['isOwn']||_0x1761fb['getFirstRange']()['containsRange'](_0x4abc3b)&&this['_breakSuggestionMarker'](_0x1761fb,_0x9eae23,_0x2ce214));}});},{'priority':'lowest'}),_0x517ea9['model']['on']('deleteContent',(_0xd49319,_0x47e144)=>{const _0x5be81b=_0x47e144[0x0],_0xab6cad=_0x47e144[0x1];if(_0xab6cad&&_0xab6cad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5be81b['isCollapsed'])return;const _0x387096=_0x517ea9['model']['schema'],{start:_0x25af75,end:_0x17ee89}=_0x5be81b['getFirstRange'](),_0x9b3f95=_0x25af75['nodeAfter']&&_0x387096['isLimit'](_0x25af75['nodeAfter'])?null:_0x387096['getNearestSelectionRange'](_0x25af75,'forward'),_0x4b6fc7=_0x17ee89['nodeBefore']&&_0x387096['isLimit'](_0x17ee89['nodeBefore'])?null:_0x387096['getNearestSelectionRange'](_0x17ee89,'backward'),_0xd4ca9b=_0x517ea9['model']['createRange'](_0x9b3f95?_0x9b3f95['start']:_0x25af75,_0x4b6fc7?_0x4b6fc7['end']:_0x17ee89);_0x517ea9['model']['change'](_0x189012=>{this['markDeletion'](_0xd4ca9b);const _0x10fd27=_0x517ea9['model']['schema']['getNearestSelectionRange'](_0xd4ca9b['start']);_0x5be81b['is']('documentSelection')?_0x189012['setSelection'](_0x10fd27):_0x5be81b['setTo'](_0x10fd27);}),_0xd49319['stop']();},{'priority':_0x4b28bd['normal']+0xa}),_0x517ea9['model']['on']('insertContent',(_0x222289,_0x1d3c76)=>{const _0x391cf3=_0x1d3c76[_0x1d3c76['length']-0x1];_0x391cf3&&_0x391cf3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x517ea9['model']['change'](()=>{let _0x483785=_0x517ea9['model']['insertContent'](_0x1d3c76[0x0],_0x1d3c76[0x1],_0x1d3c76[0x2],{'forceDefaultExecution':!0x0});if(!_0x483785)return;_0x222289['return']=_0x483785['clone']();const _0x43ccf8=_0x483785['end']['nodeBefore'],_0x3c7c29=_0x517ea9['model']['schema'];_0x43ccf8&&_0x3c7c29['isBlock'](_0x43ccf8)&&!_0x3c7c29['isObject'](_0x43ccf8)&&(_0x483785=_0x517ea9['model']['createRange'](_0x483785['start'],_0x517ea9['model']['createPositionAt'](_0x43ccf8,'end'))),this['markInsertion'](_0x483785);}),_0x222289['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3bee8e=new T(_0x517ea9,this['_suggestions']);_0x517ea9['commands']['add']('acceptSuggestion',_0x3bee8e),this['enableCommand']('acceptSuggestion');const _0x1a14b7=new O(_0x517ea9,this['_suggestions']);_0x517ea9['commands']['add']('discardSuggestion',_0x1a14b7),this['enableCommand']('discardSuggestion'),_0x517ea9['commands']['add']('acceptAllSuggestions',new x(_0x517ea9,_0x3bee8e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x517ea9['commands']['add']('discardAllSuggestions',new x(_0x517ea9,_0x1a14b7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x517ea9['commands']['add']('acceptSelectedSuggestions',new E(_0x517ea9,_0x3bee8e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x517ea9['commands']['add']('discardSelectedSuggestions',new E(_0x517ea9,_0x1a14b7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x511007=_0x517ea9['plugins']['get']('CommentsRepository');this['listenTo'](_0x511007,'addComment',(_0x237296,{threadId:_0x5ddb60})=>{const _0x26162b=this['_suggestions']['get'](_0x5ddb60);_0x26162b&&_0x26162b['commentThread']&&0x1===_0x26162b['commentThread']['length']&&this['_updateSuggestionData'](_0x5ddb60,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x511007,'removeComment',(_0x19911a,{threadId:_0x24d5d7})=>{const _0xf3a617=this['_suggestions']['get'](_0x24d5d7);_0xf3a617&&_0xf3a617['commentThread']&&!_0xf3a617['commentThread']['length']&&this['_updateSuggestionData'](_0x24d5d7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x443e19){const _0x475524=_0x137eae([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x1484d3=0x6b0f5e6f,_0x46b251=0x6b082a0f^_0x1484d3,_0x2d8038=window[_0x137eae([0x44,0x61,0x74,0x65])][_0x137eae([0x6e,0x6f,0x77])](),_0x40e897=_0x443e19[_0x137eae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58b1cc=new window[(_0x137eae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41ad48=>{_0x40e897[_0x137eae([0x6f,0x6e,0x63,0x65])](_0x137eae([0x72,0x65,0x61,0x64,0x79]),_0x41ad48);}),_0x27fce7={[_0x137eae([0x6b,0x74,0x79])]:_0x137eae([0x45,0x43]),[_0x137eae([0x75,0x73,0x65])]:_0x137eae([0x73,0x69,0x67]),[_0x137eae([0x63,0x72,0x76])]:_0x137eae([0x50,0x2d,0x32,0x35,0x36]),[_0x137eae([0x78])]:_0x137eae([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]),[_0x137eae([0x79])]:_0x137eae([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]),[_0x137eae([0x61,0x6c,0x67])]:_0x137eae([0x45,0x53,0x32,0x35,0x36])},_0x22689c=_0x40e897[_0x137eae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x137eae([0x67,0x65,0x74])](_0x137eae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d86a1(){let _0xcdeed4,_0x4be890=null,_0x1fc295=null;try{if(_0x22689c==_0x137eae([0x47,0x50,0x4c]))return _0x137eae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcdeed4=_0x3a2919(),!_0xcdeed4)return _0x137eae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcdeed4[_0x137eae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fc295=_0x599704(_0xcdeed4[_0x137eae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcdeed4[_0x137eae([0x6a,0x74,0x69])])),await _0x3d62a1()?_0x5da560()?_0x4d873a()?_0x137eae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x549796()?(_0xcdeed4[_0x137eae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x137eae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4be890=_0x107185(_0x137eae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcdeed4[_0x137eae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x137eae([0x74,0x72,0x69,0x61,0x6c])&&(_0x4be890=_0x107185(_0x137eae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42d882()):_0x137eae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x137eae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x137eae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x137eae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d873a(){const _0x1fe360=[_0x137eae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x137eae([0x74,0x72,0x69,0x61,0x6c])][_0x137eae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcdeed4[_0x137eae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d8038/0x3e8:0xe10*_0x46b251;return _0xcdeed4[_0x137eae([0x65,0x78,0x70])]<_0x1fe360;}function _0x5da560(){const _0x1f546a=_0xcdeed4[_0x137eae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1f546a)return!0x1;if(_0x1f546a[_0x137eae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x137eae([0x2a])))return!0x0;if(_0x1f546a[_0x137eae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x137eae([0x54,0x43])))return!0x0;if(_0x1f546a[_0x137eae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x137eae([0x52,0x54,0x43]))){if(_0x1af496())return!0x0;if(_0x406195()||_0x3c04cd())return!0x0;}return!0x1;}function _0x549796(){const _0x16b180=_0xcdeed4[_0x137eae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16b180||0x0==_0x16b180[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e632e}=new URL(window[_0x137eae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16b180[_0x137eae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e632e))return!0x0;const _0x46c9ab=_0x1e632e[_0x137eae([0x73,0x70,0x6c,0x69,0x74])](_0x137eae([0x2e]));return _0x16b180[_0x137eae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e2733=>_0x2e2733[_0x137eae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x137eae([0x2a])))[_0x137eae([0x6d,0x61,0x70])](_0x2e9419=>_0x2e9419[_0x137eae([0x73,0x70,0x6c,0x69,0x74])](_0x137eae([0x2e])))[_0x137eae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b0310=>_0x5b0310[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46c9ab[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x137eae([0x6d,0x61,0x70])](_0x5687b5=>Array(_0x46c9ab[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5687b5[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x137eae([0x66,0x69,0x6c,0x6c])](_0x5687b5[0x0]===_0x137eae([0x2a])?_0x137eae([0x2a]):'')[_0x137eae([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5687b5))[_0x137eae([0x73,0x6f,0x6d,0x65])](_0x10dca2=>_0x46c9ab[_0x137eae([0x65,0x76,0x65,0x72,0x79])]((_0xb625f8,_0x2d6a68)=>_0x10dca2[_0x2d6a68]===_0xb625f8||_0x10dca2[_0x2d6a68]===_0x137eae([0x2a])));}function _0x42d882(){return _0x4be890&&_0x1fc295?new window[(_0x137eae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd8c431,_0x3e41ce)=>{_0x4be890[_0x137eae([0x74,0x68,0x65,0x6e])](_0xd8c431,_0x3e41ce),_0x1fc295[_0x137eae([0x74,0x68,0x65,0x6e])](_0x316c29=>{_0x316c29!=_0x137eae([0x56,0x61,0x6c,0x69,0x64])&&_0xd8c431(_0x316c29);},_0x3e41ce);}):_0x4be890||_0x1fc295||_0x137eae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x599704(_0x2867fb,_0x3e2714){return new window[(_0x137eae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e561=>{if(_0x2f5f6c())return _0x59e561(_0x137eae([0x56,0x61,0x6c,0x69,0x64]));_0x1162db(),_0x40e897[_0x137eae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x137eae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18c32a=!0x1;const _0x3657a5=_0x220d6b();function _0x442b72(_0x40b722){return!!_0x40b722&&(typeof _0x40b722===_0x137eae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40b722===_0x137eae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40b722[_0x137eae([0x74,0x68,0x65,0x6e])]===_0x137eae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40b722[_0x137eae([0x63,0x61,0x74,0x63,0x68])]===_0x137eae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a51a4(_0x31cef3){_0xf2117d(_0x31cef3)[_0x137eae([0x74,0x68,0x65,0x6e])](_0x57ad57=>{if(!_0x57ad57||_0x57ad57[_0x137eae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x137eae([0x6f,0x6b]))return _0x137eae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e7a63(_0xf61f76(_0x3657a5+_0x3e2714))!=_0x57ad57[_0x137eae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x137eae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x137eae([0x56,0x61,0x6c,0x69,0x64]);})[_0x137eae([0x74,0x68,0x65,0x6e])](_0x235def=>(_0x1c35a7(),_0x235def),()=>{const _0x3b9612=_0x2be218();return null==_0x3b9612?(_0x1c35a7(),_0x137eae([0x56,0x61,0x6c,0x69,0x64])):_0x137eae(_0x2d8038-_0x3b9612>(0x4f03da6f^_0x1484d3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x137eae([0x74,0x68,0x65,0x6e])](_0x59e561)[_0x137eae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59e561(_0x137eae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c0359=0x6b39b0ef^_0x1484d3;function _0x1c35a7(){const _0x26250d=_0x137eae([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e7a63(_0xf61f76(_0x2867fb)),_0x1c50a7=_0x3b05a7(_0x1e7a63(window[_0x137eae([0x4d,0x61,0x74,0x68])][_0x137eae([0x63,0x65,0x69,0x6c])](_0x2d8038/_0x1c0359)));window[_0x137eae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x137eae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26250d,_0x1c50a7);}function _0x2be218(){const _0x39580a=_0x137eae([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e7a63(_0xf61f76(_0x2867fb)),_0x3d30f5=window[_0x137eae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x137eae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39580a);return _0x3d30f5?window[_0x137eae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b05a7(_0x3d30f5),0x10)*_0x1c0359:null;}function _0xf2117d(_0x2ffa85){return new window[(_0x137eae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2231ed,_0x4d454d)=>{_0x2ffa85[_0x137eae([0x74,0x68,0x65,0x6e])](_0x2231ed,_0x4d454d),window[_0x137eae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d454d,0x6b0e8aaf^_0x1484d3);});}}_0x40e897[_0x137eae([0x6f,0x6e])](_0x137eae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bfa43,_0x494ec9)=>{if(_0x494ec9[0x0]!=_0x2867fb)return _0x59e561(_0x137eae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x494ec9[0x1]={..._0x494ec9[0x1],[_0x137eae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3657a5};},{[_0x137eae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x137eae([0x68,0x69,0x67,0x68])}),_0x40e897[_0x137eae([0x6f,0x6e])](_0x137eae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ce984=>{_0x442b72(_0x3ce984[_0x137eae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18c32a=!0x0,_0x4a51a4(_0x3ce984[_0x137eae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x137eae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x137eae([0x6c,0x6f,0x77])}),_0x58b1cc[_0x137eae([0x74,0x68,0x65,0x6e])](()=>{_0x18c32a||_0x59e561(_0x137eae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f5f6c(){return _0x40e897[_0x137eae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x137eae([0x76,0x69,0x65,0x77])][_0x137eae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x137eae([0x61,0x75,0x74,0x6f]);}function _0x1162db(){_0x40e897[_0x137eae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x137eae([0x76,0x69,0x65,0x77])][_0x137eae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x137eae([0x61,0x75,0x74,0x6f]);}}function _0x107185(_0x5ec01f){const _0x4b3480=[new window[(_0x137eae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x455c9e=>setTimeout(_0x455c9e,0x6b0660a3^_0x1484d3)),_0x58b1cc[_0x137eae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x137eae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d720e=>{let _0x259e34=0x0;_0x40e897[_0x137eae([0x6d,0x6f,0x64,0x65,0x6c])][_0x137eae([0x6f,0x6e])](_0x137eae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41dfa8,_0x478359)=>{_0x478359[0x0][_0x137eae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x259e34++,_0x259e34==(0x6b0f5f97^_0x1484d3)&&(_0x3d720e(),_0x41dfa8[_0x137eae([0x6f,0x66,0x66])]());});}))];return window[_0x137eae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x137eae([0x72,0x61,0x63,0x65])](_0x4b3480)[_0x137eae([0x74,0x68,0x65,0x6e])](()=>_0x5ec01f);}async function _0x30cf1c(){await _0x58b1cc,_0x40e897[_0x137eae([0x6d,0x6f,0x64,0x65,0x6c])][_0x137eae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x502abc,_0x40e897[_0x137eae([0x6d,0x6f,0x64,0x65,0x6c])][_0x137eae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x502abc,_0x40e897[_0x137eae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x137eae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1af496(){return _0x44066a(_0x137eae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x6da298(_0x137eae([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x137eae([0x73,0x74,0x61,0x74,0x65])]==_0x137eae([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x406195(){return _0x44066a(_0x137eae([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 _0x3c04cd(){return _0x44066a(_0x137eae([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x45141e(_0x1a8f53){const _0x19d194=_0x1baa76();_0x40e897[_0x19d194]=_0x137eae([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a8f53,_0x1a8f53!=_0x137eae([0x56,0x61,0x6c,0x69,0x64])&&_0x30cf1c();}function _0x1baa76(){const _0x14ad83=window[_0x137eae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x137eae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x137eae([0x6e,0x6f,0x77])]())[_0x137eae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x137eae([0x2e]),'');let _0x51dfd8=_0x137eae([0x67]);for(let _0x929034=0x0;_0x929034<_0x14ad83[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x929034+=0x2){let _0xa70596=window[_0x137eae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14ad83[_0x137eae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x929034,_0x929034+0x2));_0xa70596>=_0x475524[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa70596-=_0x475524[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51dfd8+=_0x475524[_0xa70596];}return _0x51dfd8;}function _0x3a2919(){const _0x122023=_0x22689c[_0x137eae([0x73,0x70,0x6c,0x69,0x74])](_0x137eae([0x2e]));if(0x3!=_0x122023[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x164bbf(_0x122023[0x1]);function _0x164bbf(_0x427051){const _0x26dc50=_0x5d38a7(_0x427051);return _0x26dc50&&_0x57f2ee()?_0x26dc50:null;function _0x57f2ee(){const _0x56cad0=_0x26dc50[_0x137eae([0x6a,0x74,0x69])],_0x478b1d=window[_0x137eae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cad0[_0x137eae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56cad0[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x130be1={..._0x26dc50,[_0x137eae([0x6a,0x74,0x69])]:_0x56cad0[_0x137eae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56cad0[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x130be1[_0x137eae([0x76,0x63])],_0xf61f76(_0x130be1)==_0x478b1d;}}}async function _0x3d62a1(){let _0x106290=!0x0;try{const _0x25f5d4=_0x22689c[_0x137eae([0x73,0x70,0x6c,0x69,0x74])](_0x137eae([0x2e])),[_0x446d23,_0xacbf53,_0x23de0e]=_0x25f5d4;return _0x31a707(_0x446d23),await _0x42e956(_0x446d23,_0xacbf53,_0x23de0e),_0x106290;}catch{return!0x1;}function _0x31a707(_0x2785f9){const _0x289807=_0x5d38a7(_0x2785f9);_0x289807&&_0x289807[_0x137eae([0x61,0x6c,0x67])]==_0x137eae([0x45,0x53,0x32,0x35,0x36])||(_0x106290=!0x1);}async function _0x42e956(_0xf2081b,_0x5457a1,_0x5826ae){const _0x3aab20=window[_0x137eae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x137eae([0x66,0x72,0x6f,0x6d])](_0x236e63(_0x5826ae),_0x5c45cd=>_0x5c45cd[_0x137eae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49089c=new window[(_0x137eae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x137eae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf2081b+_0x137eae([0x2e])+_0x5457a1),_0x3b4deb=window[_0x137eae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x137eae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b4deb)return;const _0x559ea4=await _0x3b4deb[_0x137eae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x137eae([0x6a,0x77,0x6b]),_0x27fce7,{[_0x137eae([0x6e,0x61,0x6d,0x65])]:_0x137eae([0x45,0x43,0x44,0x53,0x41]),[_0x137eae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x137eae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x137eae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b4deb[_0x137eae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x137eae([0x6e,0x61,0x6d,0x65])]:_0x137eae([0x45,0x43,0x44,0x53,0x41]),[_0x137eae([0x68,0x61,0x73,0x68])]:{[_0x137eae([0x6e,0x61,0x6d,0x65])]:_0x137eae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x559ea4,_0x3aab20,_0x49089c)||(_0x106290=!0x1);}}function _0x5d38a7(_0x5463d3){return _0x5463d3[_0x137eae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x137eae([0x65,0x79]))?JSON[_0x137eae([0x70,0x61,0x72,0x73,0x65])](_0x236e63(_0x5463d3)):null;}function _0x236e63(_0x3ae9f9){return window[_0x137eae([0x61,0x74,0x6f,0x62])](_0x3ae9f9[_0x137eae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x137eae([0x2b]))[_0x137eae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x137eae([0x2f])));}function _0xf61f76(_0x566ef3){let _0x499ee0=0x1505;function _0x218818(_0x551a55){for(let _0x18a4fc=0x0;_0x18a4fc<_0x551a55[_0x137eae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18a4fc++){const _0x677629=_0x551a55[_0x137eae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18a4fc);_0x499ee0=(_0x499ee0<<0x5)+_0x499ee0+_0x677629,_0x499ee0&=_0x499ee0;}}function _0x30aab5(_0x2bf2c6){Array[_0x137eae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bf2c6)?_0x2bf2c6[_0x137eae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30aab5):_0x2bf2c6&&typeof _0x2bf2c6==_0x137eae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x137eae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bf2c6)[_0x137eae([0x73,0x6f,0x72,0x74])]()[_0x137eae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d4711,_0x2a1e50])=>{_0x218818(_0x4d4711),_0x30aab5(_0x2a1e50);}):_0x218818(window[_0x137eae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bf2c6));}return _0x30aab5(_0x566ef3),_0x499ee0>>>0x0;}function _0x1e7a63(_0x20d9e9){return _0x20d9e9[_0x137eae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x137eae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x137eae([0x30]));}function _0x3b05a7(_0x13e5d4){return _0x13e5d4[_0x137eae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x137eae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x137eae([0x6a,0x6f,0x69,0x6e])]('');}function _0x44066a(_0x18b5e4){return _0x40e897[_0x137eae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x137eae([0x68,0x61,0x73])](_0x18b5e4);}function _0x6da298(_0x5b2857){return _0x40e897[_0x137eae([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x137eae([0x67,0x65,0x74])](_0x5b2857);}function _0x502abc(){}function _0x137eae(_0x2f5495){return _0x2f5495['map'](_0x564942=>String['fromCharCode'](_0x564942))['join']('');}_0x45141e(await _0x4d86a1());}(this);}set['adapter'](_0x18c86d){if(this['_adapter'])throw new _0xb683c3('track-changes-adapter-already-set',this);this['_adapter']=_0x18c86d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x409c87=!0x1,toJSON:_0x426656=!0x1}={}){const _0x36d468=[];for(const _0x4e00c6 of this['_suggestions']['values']())_0x409c87&&!_0x4e00c6['isInContent']||_0x36d468['push'](_0x4e00c6);return _0x426656?_0x36d468['map'](_0x591e23=>_0x591e23['toJSON']()):_0x36d468;}['getSuggestion'](_0x24be12){const _0x43e0b9=this['_suggestions']['get'](_0x24be12);if(!_0x43e0b9)throw new _0xb683c3('track-changes-suggestion-not-found',this);return _0x43e0b9;}['hasSuggestion'](_0x537e86){return this['_suggestions']['has'](_0x537e86);}['addSuggestionData'](_0x9e8334){const {authorId:_0x3afcb1,id:_0x3363f7,originalSuggestionId:_0x42dbb0,attributes:_0x1d1991}=_0x9e8334,[_0x24d76a,_0x48c430]=_0x9e8334['type']['split'](':'),_0x284d86=this['_suggestions']['get'](_0x3363f7)||this['_createSuggestion'](_0x24d76a,_0x48c430,_0x3363f7,_0x3afcb1,_0x1d1991,_0x42dbb0);if(this['_addThreadToSuggestion'](_0x284d86),this['_checkSuggestionCorrectness'](_0x284d86,_0x24d76a,_0x48c430||null,_0x3afcb1),_0x284d86['createdAt']=_0x9e8334['createdAt'],_0x284d86['_isDataLoaded']=!0x0,_0x1d1991&&_0x1d1991['@external']){const _0x203737=_0x1d1991['@external'],_0x3a3dd9=this['_getExternalAuthor'](_0x203737['authorName']);_0x284d86['authoredAt']=_0x203737['createdAt'],_0x284d86['author']=_0x3a3dd9,_0x284d86['isExternal']=!0x0;}else _0x284d86['authoredAt']=_0x9e8334['createdAt'];switch(_0x9e8334['data']&&(_0x284d86['data']=_0x9e8334['data']),_0x9e8334['attributes']&&(_0x284d86['attributes']=_0x9e8334['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x284d86['_saved']=!0x0),this['_suggestionState']['get'](_0x284d86)){case'notReady':this['_suggestionState']['set'](_0x284d86,'dataReady');break;case'markerReady':_0x284d86['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x284d86])),this['_refreshSuggestionsChain'](new Set([_0x284d86])),this['_suggestionState']['set'](_0x284d86,'ready'),this['fire']('suggestionLoaded',_0x284d86)):this['_suggestionState']['set'](_0x284d86,'removed');}return _0x284d86;}['acceptSuggestion'](_0x740906){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf5bab2 of _0x740906['getAllAdjacentSuggestions']())_0xf5bab2['accept']();});});}['discardSuggestion'](_0xc6f1f2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b4191 of _0xc6f1f2['getAllAdjacentSuggestions']())_0x3b4191['discard']();});});}['enableCommand'](_0x287c52,_0x4e96b3){const _0x1bf80a=this['editor']['commands']['get'](_0x287c52);if(!_0x1bf80a)throw new _0xb683c3('track-changes-command-not-found',this,{'commandName':_0x287c52});if(this['_enabledCommands']['has'](_0x1bf80a))throw new _0xb683c3('track-changes-enable-command-twice',this,{'commandName':_0x287c52});this['_enabledCommands']['add'](_0x1bf80a),_0x4e96b3&&_0x1bf80a['on']('execute',(_0x27fac9,_0xf1effa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xf1effa['length']>0x0&&_0xf1effa[_0xf1effa['length']-0x1]&&_0xf1effa[_0xf1effa['length']-0x1]['forceDefaultExecution']?_0xf1effa['pop']():(_0x27fac9['return']=_0x4e96b3((..._0x46242c)=>_0x1bf80a['execute'](..._0x46242c,{'forceDefaultExecution':!0x0}),..._0xf1effa),_0x27fac9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xda187f){let _0xf12ff3,_0x50901b;const _0x32cc24=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xf12ff3=_0xda187f();}catch(_0x258e88){_0x50901b=_0x258e88;}return _0x32cc24||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x50901b&&_0xb683c3['rethrowUnexpectedError'](_0x50901b,this),_0xf12ff3;}['markInsertion'](_0xf63441,_0x360d8a=null,_0x22701b={}){if(_0xf63441['isCollapsed'])return null;const _0x1a0e5f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x22701b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22950f,meta:_0x31626a}of this['_findSuggestions'](_0xf63441,'insertion'))if(_0x31626a['isOwn']){if(!_0x31626a['isNextTo']){if(_0x31626a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x22950f,_0x22701b))continue;return _0x22950f;}if(ie(_0x22950f,_0x22701b))return _0x22950f;this['_breakSuggestionMarker'](_0x22950f,_0xf63441['start'],_0xf63441['end']);break;}if(_0x360d8a==_0x22950f['subType']&&ie(_0x22950f,_0x22701b)){const _0x5c4ab3=_0x22950f['getFirstRange']();return _0x5c4ab3['start']['isEqual'](_0xf63441['end'])?this['_setSuggestionRange'](_0x22950f,this['_model']['createRange'](_0xf63441['start'],_0x5c4ab3['end'])):this['_setSuggestionRange'](_0x22950f,this['_model']['createRange'](_0x5c4ab3['start'],_0xf63441['end'])),_0x22950f;}}const _0x17bd1c=_0x220d6b(),_0x534432=_0x1a0e5f['id'],_0x19c100=_0x360d8a?'insertion:'+_0x360d8a:'insertion',_0x3f3d21=this['_setSuggestionData']({'id':_0x17bd1c,'type':_0x19c100,'createdAt':new Date(),'authorId':_0x534432,'attributes':_0x22701b});return this['_addSuggestionMarker'](_0x19c100,_0x17bd1c,_0x534432,_0xf63441),_0x3f3d21;}['markMultiRangeInsertion'](_0x3da20b,_0x2efd2e='multi',_0x30fd7d={}){const _0x2e990c=this['editor']['plugins']['get']('Users')['me'],_0x5a814e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2efd2e,'join');this['_trackingSessionId']&&(_0x30fd7d['trackingSessionId']=this['_trackingSessionId']);for(const _0x5a773d of this['getSuggestions']())if(_0x5a773d['author']['id']==_0x2e990c['id']&&'insertion'==_0x5a773d['type']&&_0x5a773d['subType']==_0x2efd2e&&ie(_0x5a773d,_0x30fd7d)&&(_0x5a814e(_0x5a773d['getRanges'](),_0x3da20b)||_0x5a814e(_0x3da20b,_0x5a773d['getRanges']()))){for(const _0x3c889b of _0x3da20b)_0x5a773d['addRange'](_0x3c889b);return _0x5a773d;}for(const {suggestion:_0x3b095c,meta:_0xabba6d}of this['_findSuggestions'](_0x3da20b,'insertion')){if(!_0xabba6d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xabba6d['containsRangeInObject'])continue;if(!ie(_0x3b095c,_0x30fd7d))continue;let _0x4812ea=!0x0;for(const _0x8e1c1f of _0x3b095c['getRanges']())for(const _0x34d759 of _0x3da20b)if(!_0x8e1c1f['containsRange'](_0x34d759)){_0x4812ea=!0x1;break;}if(_0x4812ea)return _0x3b095c;}const _0x2ceeeb=_0x220d6b(),_0x436310=_0x2e990c['id'],_0x2ec985='insertion:'+_0x2efd2e,_0x20ce0c=this['_setSuggestionData']({'id':_0x2ceeeb,'type':_0x2ec985,'createdAt':new Date(),'authorId':_0x436310,'attributes':_0x30fd7d});for(const _0x4f8a3c of _0x3da20b)this['_addSuggestionMarker'](_0x2ec985,_0x2ceeeb,_0x436310,_0x4f8a3c,R['getMultiRangeId']());return _0x20ce0c;}['markInlineFormat'](_0x16c6d9,_0x36596c,_0x1f7f65=null,_0x211665={}){if(_0x1f7f65=_0x1f7f65||Wt(_0x36596c),_0x16c6d9['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x211665['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2e2a62=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7f65,'accept');return this['forceDefaultExecution'](()=>_0x2e2a62([_0x16c6d9],_0x36596c,_0x211665)),null;}const _0x12c476=this['editor']['plugins']['get']('Users')['me'],_0x3c46b4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x551922,meta:_0x3b92fa}of this['_findSuggestions'](_0x16c6d9,'insertion'))_0x3b92fa['isOwn']&&!_0x3b92fa['isInsideObject']&&_0x3c46b4['push'](..._0x551922['getRanges']());}const _0x24c221=function(_0x2e4883,_0x397816){const _0x46f3a3=[];for(const _0x2fefa9 of _0x397816){const _0x11fd81=_0x2e4883['getIntersection'](_0x2fefa9);_0x11fd81&&_0x46f3a3['push'](_0x11fd81);}return _0x46f3a3;}(_0x16c6d9,_0x3c46b4),_0x1e7b65=function(_0x498391,_0x5c3bdf){const _0x470c76=[_0x498391];for(const _0x4cab44 of _0x5c3bdf){let _0x3f0a7e=0x0;for(;_0x3f0a7e<_0x470c76['length'];){const _0x1bc3a5=_0x470c76[_0x3f0a7e]['getDifference'](_0x4cab44);_0x470c76['splice'](_0x3f0a7e,0x1,..._0x1bc3a5),_0x3f0a7e+=_0x1bc3a5['length'];}}return _0x470c76;}(_0x16c6d9,_0x3c46b4);_0x24c221['length']&&this['_model']['change'](()=>{for(const _0x49ab66 of _0x24c221){const _0x34bdc0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f7f65,'accept');this['forceDefaultExecution'](()=>_0x34bdc0([_0x49ab66],_0x36596c,_0x211665));}});for(const _0x5d0859 of _0x1e7b65){let _0x4a7be5=null,_0x44da50=_0x5d0859['start'],_0x1c9166=_0x5d0859['end'];for(const {suggestion:_0x156ab1,meta:_0x3f6740}of this['_findSuggestions'](_0x5d0859,'formatInline')){if(!_0x3f6740['isOwn'])continue;if(_0x156ab1['subType']!=_0x1f7f65)continue;if(!ie(_0x156ab1,_0x211665))continue;const _0x113ea3=_0x156ab1['getFirstRange']();if(_0x113ea3['containsRange'](_0x5d0859,!0x0))return null;_0x44da50=_0x44da50['isBefore'](_0x113ea3['start'])?_0x44da50:_0x113ea3['start'],_0x1c9166=_0x1c9166['isAfter'](_0x113ea3['end'])?_0x1c9166:_0x113ea3['end'],_0x4a7be5?_0x113ea3['start']['isBefore'](_0x4a7be5['getFirstRange']()['start'])?(_0x4a7be5['removeMarkers'](),_0x4a7be5=_0x156ab1):_0x156ab1['removeMarkers']():_0x4a7be5=_0x156ab1;}const _0x52b516=this['_model']['createRange'](_0x44da50,_0x1c9166);if(_0x4a7be5)this['_setSuggestionRange'](_0x4a7be5,_0x52b516);else{const _0x31831b=_0x220d6b(),_0xfdd995=_0x12c476['id'];this['_setSuggestionData']({'id':_0x31831b,'type':'formatInline:'+_0x1f7f65,'data':_0x36596c,'createdAt':new Date(),'authorId':_0xfdd995,'attributes':_0x211665}),this['_addSuggestionMarker']('formatInline:'+_0x1f7f65,_0x31831b,_0xfdd995,_0x52b516);}}return null;}['markBlockFormat'](_0x16aaa5,_0x56ae46,_0x2dba3c=[],_0x396ff7=null,_0x4e477d={}){_0x56ae46['formatGroupId']||(_0x56ae46['formatGroupId']=_0x56ae46['commandName']),_0x56ae46['multipleBlocks']=_0x16aaa5['is']('range'),_0x396ff7=_0x396ff7||Wt(_0x56ae46);const _0x31a787=_0x2dba3c['map'](_0x5a6e8c=>Zt(_0x5a6e8c,this['_model'])),_0x7f91e=_0x16aaa5['is']('range')?_0x16aaa5:Zt(_0x16aaa5,this['_model']);if(this['_trackingSessionId']&&(_0x4e477d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53a2d7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x396ff7,'accept');return this['forceDefaultExecution'](()=>_0x53a2d7([_0x7f91e],_0x56ae46,_0x4e477d)),null;}_0x31a787['push'](_0x7f91e);let _0x4ccf2b=!0x0;for(const _0x14c794 of _0x31a787)if(!this['_rangeIsInLocalUserInsertion'](_0x14c794)){_0x4ccf2b=!0x1;break;}if(_0x4ccf2b&&'always'!==this['_trackFormatChanges']){const _0x523672=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x396ff7,'accept');return this['forceDefaultExecution'](()=>_0x523672([_0x7f91e],_0x56ae46,_0x4e477d)),null;}let _0x54b925=null,_0x1b0082=_0x7f91e['start'],_0x278f0f=_0x7f91e['end'];for(const {suggestion:_0x42ca7a,meta:_0x656081}of this['_findSuggestions'](_0x7f91e,'formatBlock')){if(!_0x656081['isOwn'])continue;if(_0x656081['isNextTo']||_0x656081['containsRangeInObject']||_0x656081['isInsideObject'])continue;if(_0x42ca7a['data']['formatGroupId']!=_0x56ae46['formatGroupId'])continue;if(!ie(_0x42ca7a,_0x4e477d))continue;const _0xd1b53d=_0x42ca7a['getFirstRange']();if(_0x42ca7a['subType']==_0x396ff7){if(_0xd1b53d['containsRange'](_0x7f91e,!0x0))return null;_0x1b0082=_0x1b0082['isBefore'](_0xd1b53d['start'])?_0x1b0082:_0xd1b53d['start'],_0x278f0f=_0x278f0f['isAfter'](_0xd1b53d['end'])?_0x278f0f:_0xd1b53d['end'],_0x54b925?_0xd1b53d['start']['isBefore'](_0x54b925['getFirstRange']()['start'])?(_0x54b925['removeMarkers'](),_0x54b925=_0x42ca7a):_0x42ca7a['removeMarkers']():_0x54b925=_0x42ca7a;}else{const _0x40a1d2=_0x7f91e['getIntersection'](_0xd1b53d);this['_cutOutSuggestionMarker'](_0x42ca7a,_0x40a1d2);}}const _0x2538cc=this['editor']['plugins']['get']('Users')['me'],_0x32d137=_0x220d6b(),_0xee7db7=_0x2538cc['id'];if(_0x54b925)return this['_setSuggestionRange'](_0x54b925,this['_model']['createRange'](_0x1b0082,_0x278f0f)),_0x54b925;{const _0x39c05b=this['_setSuggestionData']({'id':_0x32d137,'type':'formatBlock:'+_0x396ff7,'data':_0x56ae46,'createdAt':new Date(),'authorId':_0xee7db7,'attributes':_0x4e477d});return this['_addSuggestionMarker']('formatBlock:'+_0x396ff7,_0x32d137,_0xee7db7,this['_model']['createRange'](_0x1b0082,_0x278f0f)),_0x39c05b;}}['markMultiRangeBlockFormat'](_0x1c56ca,_0x450164,_0x4b6bc0=[],_0x1f7d2a=null,_0x306f08={}){_0x450164['formatGroupId']||(_0x450164['formatGroupId']=_0x450164['commandName']);const _0x28f593=_0x1c56ca[0x0];_0x450164['multipleBlocks']=_0x28f593['is']('range'),_0x1f7d2a=_0x1f7d2a||Wt(_0x450164);const _0x1548d1=_0x4b6bc0['map'](_0x43cc8b=>Zt(_0x43cc8b,this['_model'])),_0x527115=_0x28f593['is']('range')?_0x1c56ca:_0x1c56ca['map'](_0xb06f00=>Zt(_0xb06f00,this['_model']));if(this['_trackingSessionId']&&(_0x306f08['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a9b54=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f7d2a,'accept');return this['forceDefaultExecution'](()=>_0x1a9b54(_0x527115,_0x450164,_0x306f08)),null;}_0x1548d1['push'](..._0x527115);let _0x432ae7=!0x0;for(const _0x128b40 of _0x1548d1)if(!this['_rangeIsInLocalUserInsertion'](_0x128b40)){_0x432ae7=!0x1;break;}if(_0x432ae7&&'always'!==this['_trackFormatChanges']){const _0x183c1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f7d2a,'accept');return this['forceDefaultExecution'](()=>_0x183c1d(_0x527115,_0x450164,_0x306f08)),null;}const _0x224db9=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f1360 of this['getSuggestions']()){const _0x490a6a=_0x5f1360['data'];if(_0x5f1360['author']['id']!=_0x224db9['id'])continue;if('formatBlock'!=_0x5f1360['type']||_0x490a6a['formatGroupId']!=_0x450164['formatGroupId'])continue;if(!ie(_0x5f1360,_0x306f08))continue;const _0x57fbf2=_0x5f1360['subType']==_0x1f7d2a;for(let _0x599d49=0x0;_0x599d49<_0x527115['length'];_0x599d49++){const _0x4aab50=_0x527115[_0x599d49];for(const _0x5c4e8d of _0x5f1360['getMarkers']()){const _0x48c61b=_0x5c4e8d['getRange']();if(_0x4aab50['isEqual'](_0x48c61b)){_0x57fbf2?(_0x527115['splice'](_0x599d49,0x1),_0x599d49--):_0x5f1360['removeMarker'](_0x5c4e8d['name']);break;}}}}if(0x0==_0x527115['length'])return null;const _0x47d71c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f7d2a,'join');for(const _0x3862ed of this['getSuggestions']()){const _0x230c1a=_0x3862ed['data'];if(_0x3862ed['author']['id']==_0x224db9['id']&&('formatBlock'==_0x3862ed['type']&&_0x230c1a['formatGroupId']==_0x450164['formatGroupId']&&_0x3862ed['subType']==_0x1f7d2a&&ie(_0x3862ed,_0x306f08)&&(_0x47d71c(_0x3862ed['getRanges'](),_0x527115)||_0x47d71c(_0x527115,_0x3862ed['getRanges']())))){for(const _0x25f636 of _0x527115)_0x3862ed['addRange'](_0x25f636);return _0x3862ed;}}const _0xb9548e=_0x220d6b(),_0x3e24d1=_0x224db9['id'],_0x16dc0c='formatBlock:'+_0x1f7d2a,_0x4b311e=this['_setSuggestionData']({'id':_0xb9548e,'type':_0x16dc0c,'data':_0x450164,'createdAt':new Date(),'authorId':_0x3e24d1,'attributes':_0x306f08});for(const _0x2d15d9 of _0x527115)this['_addSuggestionMarker'](_0x16dc0c,_0xb9548e,_0x3e24d1,_0x2d15d9,R['getMultiRangeId']());return _0x4b311e;}['markDeletion'](_0x5a6ae7,_0x1a6aca=null,_0x132b79={}){if(_0x5a6ae7['isCollapsed'])return null;const _0x476419=this['editor']['plugins']['get']('Users')['me'],_0x3b110a=new _0x54a592(_0x5a6ae7['start'],_0x5a6ae7['end']);this['_trackingSessionId']&&(_0x132b79['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x19ce15,meta:_0x1efcf7}of this['_findSuggestions'](_0x3b110a,'insertion'))if(_0x1efcf7['isOwn']&&!_0x1efcf7['isNextTo']){if(_0x19ce15['isMultiRange']){const _0x3a1952=_0x19ce15['getRanges']()['filter'](_0x78edc3=>'$graveyard'!=_0x78edc3['root']['rootName']);_0x3a1952['every'](_0x55c926=>_0x3b110a['containsRange'](_0x55c926,!0x0))&&_0x19ce15['discard']();if(_0x3a1952['some'](_0x2c43bc=>_0x2c43bc['containsRange'](_0x3b110a,!0x0))){const _0x1685fe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a6aca,'accept');return this['forceDefaultExecution'](()=>_0x1685fe([_0x3b110a],null,_0x132b79)),null;}}else{const _0x1ed04a=_0x3b110a['getIntersection'](_0x19ce15['getFirstRange']());null!==_0x1ed04a&&_0x19ce15['_onDiscard']([_0x1ed04a],null,_0x132b79);}}if(_0x3b110a['detach'](),_0x3b110a['isCollapsed']||'$graveyard'==_0x3b110a['root']['rootName'])return null;let _0x5a5f0e=null,_0x39956f=_0x3b110a['start'],_0x4bd3d1=_0x3b110a['end'];const _0x2d5784=this['_findSuggestions'](_0x3b110a,'deletion');for(const {suggestion:_0x40c8c4,meta:_0x40c5ab}of _0x2d5784){const _0x5931eb=this['_model']['createRange'](_0x39956f,_0x4bd3d1);if(_0x40c5ab['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40c5ab['containsRangeInObject']&&!_0x40c5ab['isInsideObject'])){if(_0x40c8c4['isMultiRange']){if(!ie(_0x40c8c4,_0x132b79))continue;let _0x25076d=!0x0;for(const _0x4b3650 of _0x40c8c4['getRanges']()){if(_0x4b3650['containsRange'](_0x5931eb,!0x0))return _0x40c8c4;_0x5931eb['containsRange'](_0x4b3650)||(_0x25076d=!0x1);}_0x25076d&&_0x40c8c4['discard']();}else{const _0x3eca95=_0x40c8c4['getFirstRange']();if(_0x3eca95['containsRange'](_0x5931eb,!0x0))return _0x40c8c4;if(!ie(_0x40c8c4,_0x132b79)){_0x5931eb['containsRange'](_0x3eca95)?_0x40c8c4['removeMarkers']():_0x3eca95['containsPosition'](_0x39956f)?_0x39956f=_0x3eca95['end']:_0x3eca95['containsPosition'](_0x4bd3d1)&&(_0x4bd3d1=_0x3eca95['start']);continue;}_0x39956f=_0x39956f['isBefore'](_0x3eca95['start'])?_0x39956f:_0x3eca95['start'],_0x4bd3d1=_0x4bd3d1['isAfter'](_0x3eca95['end'])?_0x4bd3d1:_0x3eca95['end'],_0x132b79=Object['assign']({},_0x40c8c4['attributes']),_0x5a5f0e?_0x3eca95['start']['isBefore'](_0x5a5f0e['getFirstRange']()['start'])?(_0x5a5f0e['removeMarkers'](),_0x5a5f0e=_0x40c8c4):_0x40c8c4['removeMarkers']():_0x5a5f0e=_0x40c8c4;}}}if(_0x5a5f0e)return this['_setSuggestionRange'](_0x5a5f0e,this['_model']['createRange'](_0x39956f,_0x4bd3d1)),_0x5a5f0e;{const _0x925ac0=_0x220d6b(),_0x446629=this['_model']['createRange'](_0x39956f,_0x4bd3d1),_0x337f2b=_0x476419['id'],_0x1a1037=_0x1a6aca?'deletion:'+_0x1a6aca:'deletion',_0xb9f268=this['_setSuggestionData']({'id':_0x925ac0,'type':_0x1a1037,'createdAt':new Date(),'authorId':_0x337f2b,'attributes':_0x132b79});return this['_addSuggestionMarker'](_0x1a1037,_0x925ac0,_0x337f2b,_0x446629),_0xb9f268;}}['markMultiRangeDeletion'](_0x3bd64d,_0x1646a3='multi',_0x5d9f35={}){const _0x3aa268=this['editor']['plugins']['get']('Users')['me'],_0x5f48a1=_0x3bd64d['map'](_0x3bd292=>new _0x54a592(_0x3bd292['start'],_0x3bd292['end'])),_0x4f29cb=new Set();this['_trackingSessionId']&&(_0x5d9f35['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3f0630,meta:_0x30983a}of this['_findSuggestions'](_0x5f48a1,'insertion'))_0x30983a['isOwn']&&!_0x30983a['isNextTo']&&_0x4f29cb['add'](_0x3f0630);for(const _0x2f0a6e of _0x4f29cb)if(_0x2f0a6e['isMultiRange']){const _0x1d0aae=_0x2f0a6e['getRanges']();(!_0x2f0a6e['attributes']||!_0x2f0a6e['attributes']['skipNestingCheck'])&&(_0x1d0aae['every'](_0x2d239a=>_0x5f48a1['some'](_0x4e297d=>_0x4e297d['containsRange'](_0x2d239a,!0x0)))&&_0x2f0a6e['discard']());if(_0x5f48a1['every'](_0x5678c3=>_0x1d0aae['some'](_0x4aea48=>_0x4aea48['containsRange'](_0x5678c3,!0x0)))){const _0x54d93a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1646a3,'accept');return this['forceDefaultExecution'](()=>_0x54d93a(_0x3bd64d,null,_0x5d9f35)),null;}}else{const _0x366bb2=_0x2f0a6e['getFirstRange']();_0x5f48a1['some'](_0xa33f3b=>_0xa33f3b['containsRange'](_0x366bb2,!0x0))&&_0x2f0a6e['discard']();if(_0x5f48a1['every'](_0x4dd853=>_0x366bb2['containsRange'](_0x4dd853,!0x0))){const _0x59ab42=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1646a3,'accept');return this['forceDefaultExecution'](()=>_0x59ab42(_0x5f48a1,null,_0x5d9f35)),null;}}const _0x4b9b7a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1646a3,'join');let _0x2799da=null;for(const _0x2c02dd of this['getSuggestions']())if(_0x2c02dd['author']['id']==_0x3aa268['id']&&_0x2c02dd['isInContent']&&'deletion'==_0x2c02dd['type']&&_0x2c02dd['subType']==_0x1646a3&&ie(_0x2c02dd,_0x5d9f35)&&(_0x4b9b7a(_0x2c02dd['getRanges'](),_0x5f48a1)||_0x4b9b7a(_0x5f48a1,_0x2c02dd['getRanges']()))){if(_0x2799da){if(_0x2c02dd['commentThread']&&_0x2c02dd['commentThread']['length'])continue;for(const _0x1c6dfa of _0x2c02dd['getRanges']())_0x2799da['isIntersectingWithRange'](_0x1c6dfa)||_0x2799da['addRange'](_0x1c6dfa);_0x2c02dd['removeMarkers']();}else{_0x2799da=_0x2c02dd;for(const _0x24789b of _0x5f48a1)_0x2c02dd['isIntersectingWithRange'](_0x24789b)||_0x2c02dd['addRange'](_0x24789b);}}if(_0x2799da)return _0x2799da;_0x4f29cb['clear']();for(const {suggestion:_0x58535d,meta:_0x24dcad}of this['_findSuggestions'](_0x5f48a1,'deletion'))_0x24dcad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x24dcad['containsRangeInObject']&&!_0x24dcad['isInsideObject'])&&ie(_0x58535d,_0x5d9f35)&&_0x4f29cb['add'](_0x58535d);for(const _0xe0faca of _0x4f29cb){const _0x19a89a=_0xe0faca['getRanges']();if(!_0x5d9f35||!_0x5d9f35['skipNestingCheck']){if(_0x5f48a1['every'](_0x5c0169=>_0x19a89a['some'](_0x454065=>_0x454065['containsRange'](_0x5c0169,!0x0))))return _0xe0faca;}(!_0xe0faca['attributes']||!_0xe0faca['attributes']['skipNestingCheck'])&&(_0x19a89a['every'](_0x199e78=>_0x5f48a1['some'](_0x4309cd=>_0x4309cd['containsRange'](_0x199e78,!0x0)))&&_0xe0faca['discard']());}const _0x49c736=_0x220d6b(),_0x55d096=_0x3aa268['id'],_0x3f4e5='deletion:'+_0x1646a3,_0x1a61c3=this['_setSuggestionData']({'id':_0x49c736,'type':_0x3f4e5,'createdAt':new Date(),'authorId':_0x55d096,'attributes':_0x5d9f35});for(const _0x6ed81a of _0x5f48a1)_0x6ed81a['detach'](),_0x6ed81a['isCollapsed']||'$graveyard'==_0x6ed81a['root']['rootName']||this['_addSuggestionMarker'](_0x3f4e5,_0x49c736,_0x55d096,_0x6ed81a,R['getMultiRangeId']());return _0x1a61c3;}['markAttributeChange'](_0x110149,_0x18b032,_0x5debbb,_0x2e25a1,_0x44af4b){if(_0x110149['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1ac75d=this['editor']['plugins']['get']('Users')['me']['id'],_0x6c731f=Array['from'](this['_suggestions']['values']())['filter'](_0x51994f=>'attribute'==_0x51994f['type']&&_0x51994f['data']['key']==_0x18b032&&_0x51994f['isIntersectingWithRange'](_0x110149));if(this['_trackingSessionId']&&(_0x44af4b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x59c532=this['_findSuggestions'](_0x110149,'insertion')['filter'](({meta:_0x44d4c2})=>_0x44d4c2['isOwn']&&!_0x44d4c2['isInsideObject']&&!_0x44d4c2['isNextTo'])['map'](({suggestion:_0x444d0d})=>_0x444d0d);_0x6c731f['unshift'](..._0x59c532);}const _0x184414=new Map([[_0x110149,_0x5debbb]]);for(const _0x4c1479 of _0x6c731f){const _0x3d9a1e='attribute'==_0x4c1479['type']?_0x4c1479['data']['oldValue']:void 0x0,_0x51412f=_0x4c1479['getFirstRange'](),_0x41aac1=Array['from'](_0x184414['keys']())['find'](_0xfe700f=>_0xfe700f['isIntersecting'](_0x51412f));if(!_0x41aac1)continue;const _0x1b7252=_0x41aac1['getDifference'](_0x51412f);this['_isBlockAttribute'](_0x18b032)&&'insertion'==_0x4c1479['type']&&0x0!=_0x1b7252['length']||(_0x184414['delete'](_0x41aac1),_0x1b7252['forEach'](_0x4a36bb=>{_0x184414['set'](_0x4a36bb,_0x5debbb);}),'insertion'!=_0x4c1479['type']&&_0x3d9a1e!=_0x2e25a1&&_0x184414['set'](_0x41aac1['getIntersection'](_0x51412f),_0x3d9a1e));}const _0x20a5f1=[];for(const [_0x245f55,_0x288039]of _0x184414){const _0x314156=_0x220d6b(),_0x5ee6e0={'key':_0x18b032,'oldValue':_0x288039,'newValue':_0x2e25a1};_0x18b032['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':_0x18b032});const _0xaf04ce=('attribute:'+(_0x18b032+'|'+Wt({'newValue':_0x2e25a1})))['substring'](0x0,0x3c),_0x526848=this['_setSuggestionData']({'id':_0x314156,'type':_0xaf04ce,'data':_0x5ee6e0,'createdAt':new Date(),'authorId':_0x1ac75d,'attributes':_0x44af4b});_0x20a5f1['push'](_0x526848),this['_addSuggestionMarker'](_0xaf04ce,_0x314156,_0x1ac75d,_0x245f55);}return _0x20a5f1;}['enableDefaultAttributesIntegration'](_0x4c3c46){this['enableCommand'](_0x4c3c46,(_0x45e97d,..._0x4cadec)=>{this['recordAttributeChanges'](()=>{_0x45e97d(..._0x4cadec);});});}['registerBlockAttribute'](_0x31b5a3){this['_blockAttributeKeys']['add'](_0x31b5a3);}['registerInlineAttribute'](_0x39641a){this['_inlineAttributeKeys']['add'](_0x39641a);}['startTrackingSession'](_0x24be0f){return this['_trackingSessionId']=void 0x0!==_0x24be0f?_0x24be0f:_0x220d6b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x14096c){return'attribute'==_0x14096c['type']?se(_0x14096c['subType']):null;}['_applyOperationsAsSuggestions'](_0x299f3b){if(0x0==_0x299f3b['length'])return;const _0x20765d=this['editor'],_0x47c049=_0x20765d['plugins']['get'](_0x2d26dc);let _0x3671ad=!0x0;for(const _0x1a2414 in _0x299f3b[0x0]){const _0x4c3c34=_0x299f3b[0x0][_0x1a2414];if((_0x4c3c34 instanceof _0x1ef9b1||_0x4c3c34 instanceof _0x590a40)&&_0x4c3c34['root']['is']('documentFragment')){_0x3671ad=!0x1;break;}}_0x20765d['model']['change'](_0x1eb7cc=>{const _0x167b25=new Set();for(const _0x28b77f of _0x299f3b)if(_0x28b77f['baseVersion']=_0x3671ad?_0x20765d['model']['document']['version']:null,_0x28b77f['isDocumentOperation']=_0x3671ad,_0x47c049['isMarkedRemoveOperation'](_0x28b77f)){const _0x169af7=Xt(_0x28b77f['newRange'],_0x20765d['model']);if(_0x3671ad)this['markDeletion'](_0x169af7);else{const _0x5c6a9c='suggestion:deletion:id:authorId:'+_0x220d6b();_0x169af7['root']['markers']['set'](_0x5c6a9c,_0x169af7);}}else switch(_0x28b77f['type']){case'rename':{const _0x525b15=_0x28b77f['oldName'],_0x3b3089=_0x28b77f['newName'];if(_0x525b15==_0x3b3089)break;_0x1eb7cc['batch']['addOperation'](_0x28b77f),_0x20765d['model']['applyOperation'](_0x28b77f);const _0x4ae4b0='$elementName',_0x20a8d9=_0x28b77f['position'],_0x3837c6=_0x20765d['model']['createRange'](_0x20a8d9,_0x20765d['model']['createPositionAt'](_0x20a8d9['nodeAfter'],'end'));if(_0x3671ad)this['markAttributeChange'](_0x3837c6,_0x4ae4b0,_0x525b15,_0x3b3089,{'groupId':_0x220d6b()});else{const _0x3a0f53='suggestion:attribute:'+_0x4ae4b0+':id:authorId:'+_0x220d6b();_0x3837c6['root']['markers']['set'](_0x3a0f53,_0x3837c6);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xab41e6=_0x28b77f['oldValue'],_0x38e433=_0x28b77f['newValue'];if(_0xab41e6==_0x38e433)break;_0x1eb7cc['batch']['addOperation'](_0x28b77f),_0x20765d['model']['applyOperation'](_0x28b77f);const _0x1448cf=_0x28b77f['key'];if(!this['_isRegisteredAttribute'](_0x1448cf))break;const _0x5d53a4=Xt(_0x28b77f['range'],_0x20765d['model']);if(_0x3671ad)this['markAttributeChange'](_0x5d53a4,_0x1448cf,_0xab41e6,_0x38e433,{'groupId':_0x220d6b()});else{const _0x132464='suggestion:attribute:'+_0x1448cf+':id:authorId:'+_0x220d6b();_0x5d53a4['root']['markers']['set'](_0x132464,_0x5d53a4);}break;}case'insert':{_0x1eb7cc['batch']['addOperation'](_0x28b77f),_0x20765d['model']['applyOperation'](_0x28b77f);const _0x21ac3f=_0x28b77f['position'],_0x2bf0e6=_0x28b77f['howMany'],_0x2e7c3f=Xt(_0x20765d['model']['createRange'](_0x21ac3f,_0x21ac3f['getShiftedBy'](_0x2bf0e6)),_0x20765d['model']);if(_0x3671ad)this['markInsertion'](_0x2e7c3f);else{const _0x15a355='suggestion:insertion:id:authorId:'+_0x220d6b();_0x2e7c3f['root']['markers']['set'](_0x15a355,_0x2e7c3f);}break;}case'split':{_0x1eb7cc['batch']['addOperation'](_0x28b77f),_0x20765d['model']['applyOperation'](_0x28b77f);const _0x39b614=_0x28b77f['splitPosition'],_0x550934=_0x28b77f['moveTargetPosition'],_0x113ee6=_0x20765d['model']['createRange'](_0x39b614,_0x550934);if(_0x3671ad)this['markInsertion'](_0x20765d['model']['createRange'](_0x39b614,_0x550934));else{const _0x430096='suggestion:insertion:id:authorId:'+_0x220d6b();_0x113ee6['root']['markers']['set'](_0x430096,_0x113ee6);}break;}case'move':if(_0x1eb7cc['batch']['addOperation'](_0x28b77f),_0x20765d['model']['applyOperation'](_0x28b77f),!_0x3671ad){const _0x1baffb=_0x28b77f['getMovedRangeStart'](),_0x406bd8=_0x28b77f['howMany'];for(let _0x422ddf=0x0;_0x422ddf<_0x406bd8;_0x422ddf++){const _0x27736c=_0x1baffb['getShiftedBy'](_0x422ddf)['nodeAfter'];_0x167b25['add'](_0x27736c);}}break;case'remove':if(_0x3671ad)_0x1eb7cc['batch']['addOperation'](_0x28b77f),_0x20765d['model']['applyOperation'](_0x28b77f);else{const _0x52172f=_0x28b77f['sourcePosition'],_0xfbc215=_0x28b77f['howMany'],_0x2c6c7c=new _0x147602(_0x52172f,_0xfbc215);_0x1eb7cc['batch']['addOperation'](_0x2c6c7c),_0x20765d['model']['applyOperation'](_0x2c6c7c);}}for(const _0x551766 of _0x167b25){const _0x45625b=_0x20765d['model']['createRangeOn'](_0x551766),_0x2049a1='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x220d6b();_0x45625b['root']['markers']['set'](_0x2049a1,Xt(_0x45625b,_0x20765d['model']));}});}['_setSuggestionRange'](_0x1fbf63,_0x3f2ee0){const _0x4216f4=_0x1fbf63['getFirstMarker']();this['_model']['change'](_0x5a6814=>{_0x5a6814['updateMarker'](_0x4216f4,{'range':_0x3f2ee0});});}['_addThreadToSuggestion'](_0x1306a2){const _0x2023ad=_0x1306a2['id'],_0xf917a4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2023ad)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf917a4,'threadId':_0x2023ad,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bffd8=this['_commentsRepository']['getCommentThread'](_0x2023ad);_0x4bffd8['unbind']('isRemovable'),_0x4bffd8['isRemovable']=!0x1,_0x1306a2['commentThread']=_0x4bffd8;}['_checkSuggestionCorrectness'](_0x7b83,_0x372fa3,_0x36ccc8,_0x5a1d82){if(_0x7b83['type']!=_0x372fa3||_0x7b83['subType']!=_0x36ccc8||_0x7b83['creator']['id']!=_0x5a1d82)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xb683c3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xc8fb11,_0x861049){const _0x5e820f=_0xc8fb11['getFirstRange']();if(_0x861049['isEqual'](_0x5e820f))_0xc8fb11['removeMarkers']();else{if(_0x5e820f['containsRange'](_0x861049)){const _0x1353fb=this['_model']['createPositionAt'](_0x861049['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc8fb11,this['_model']['createRange'](_0x5e820f['start'],_0x1353fb));const _0xbb9622=_0x220d6b(),_0x1fb050=_0xc8fb11['creator']['id'],_0x5c188a=_0xc8fb11['type']+':'+_0xc8fb11['subType'];this['_setSuggestionData']({'id':_0xbb9622,'type':_0x5c188a,'createdAt':new Date(),'authorId':_0x1fb050,'data':_0xc8fb11['data'],'attributes':_0xc8fb11['attributes']});const _0x4af63e=this['_model']['createPositionAt'](_0x861049['end']['parent'],'after'),_0x2ed5e3=this['_model']['createRange'](_0x4af63e,_0x5e820f['end']);this['_addSuggestionMarker'](_0x5c188a,_0xbb9622,_0x1fb050,_0x2ed5e3);}else{if(_0x5e820f['containsPosition'](_0x861049['start'])){const _0x2d5299=this['_model']['createPositionAt'](_0x861049['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xc8fb11,this['_model']['createRange'](_0x5e820f['start'],_0x2d5299));}else{const _0x5dc133=this['_model']['createPositionAt'](_0x861049['end']['parent'],'after');this['_setSuggestionRange'](_0xc8fb11,this['_model']['createRange'](_0x5dc133,_0x5e820f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x328ce9){for(const {suggestion:_0x3312f9,meta:_0x40e041}of this['_findSuggestions'](_0x328ce9,'insertion')){if(!_0x40e041['isOwn'])continue;const _0x3b7e1e=_0x3312f9['getRanges']();for(const _0x442e03 of _0x3b7e1e)if(!_0x328ce9['getDifference'](_0x442e03)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x324987){return this['editor']['plugins']['get']('Users')['getUser'](_0x324987);}['_getExternalAuthor'](_0x58b863){const _0x61ad8e=this['editor']['plugins']['get']('Users'),_0x4f1f2d=_0x549bb6('external:'+_0x58b863),_0x5558ef=_0x61ad8e['getUser'](_0x4f1f2d);return _0x5558ef||_0x61ad8e['addUser']({'id':_0x4f1f2d,'name':_0x58b863});}['_createSuggestion'](_0x1dffa4,_0x525dc5,_0x4193b3,_0x58f712,_0x2a0a5e,_0x59169d){const _0x2bf02f=this['_getAuthorFromId'](_0x58f712);if(!_0x2bf02f)throw new _0xb683c3('track-changes-user-not-found',this,{'authorId':_0x58f712,'suggestionId':_0x4193b3});const _0x8466e3=this['_suggestionFactory']['buildSuggestion'](_0x1dffa4,_0x525dc5,_0x4193b3,_0x2bf02f,_0x2a0a5e,_0x22f665=>{this['_updateSuggestionData'](_0x4193b3,{'attributes':_0x22f665});const _0x33386f=this['getSuggestion'](_0x4193b3);this['_joinWithAdjacentSuggestions'](new Set([_0x33386f])),this['_refreshSuggestionsChain'](new Set([_0x33386f]));},_0x59169d);return this['listenTo'](_0x8466e3,'accept',()=>{this['_updateSuggestionData'](_0x4193b3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8466e3,'discard',()=>{this['_updateSuggestionData'](_0x4193b3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4193b3,_0x8466e3),this['_suggestionState']['set'](_0x8466e3,'notReady'),_0x8466e3;}['_splitMarkerName'](_0x563b25){const _0x40cc51=_0x563b25['split'](':');return{'group':_0x40cc51[0x0],'type':_0x40cc51[0x1],'subType':_0x40cc51['length']>=0x5?_0x40cc51[0x2]:null,'id':_0x40cc51['length']<0x5?_0x40cc51[0x2]:_0x40cc51[0x3],'authorId':_0x40cc51['length']<0x5?_0x40cc51[0x3]:_0x40cc51[0x4],'markerCount':0x6==_0x40cc51['length']?_0x40cc51[0x5]:null};}['_breakSuggestionMarker'](_0x2e2707,_0x210a2e,_0x487cfd){const _0x4aaaeb=_0x2e2707['getFirstRange'](),_0x4aa54a=_0x4aaaeb['start'],_0x2e9ddd=_0x4aaaeb['end'];this['_setSuggestionRange'](_0x2e2707,this['_model']['createRange'](_0x4aa54a,_0x210a2e));const _0xe6c3c2=_0x220d6b(),_0xa80bf1=_0x2e2707['creator']['id'],_0x4a69a0=_0x2e2707['type']+(_0x2e2707['subType']?':'+_0x2e2707['subType']:'');this['_setSuggestionData']({'id':_0xe6c3c2,'type':_0x4a69a0,'createdAt':new Date(),'authorId':_0xa80bf1,'originalSuggestionId':_0x2e2707['_originalSuggestionId']||_0x2e2707['id'],'attributes':_0x2e2707['attributes'],'data':_0x2e2707['data']});const _0x47cbe6=this['_getAttributeKey'](_0x2e2707);('formatBlock'==_0x2e2707['type']||_0x47cbe6&&this['_isBlockAttribute'](_0x47cbe6))&&(_0x487cfd=this['_model']['createPositionBefore'](_0x487cfd['parent'])),this['_addSuggestionMarker'](_0x4a69a0,_0xe6c3c2,_0xa80bf1,this['_model']['createRange'](_0x487cfd,_0x2e9ddd));}['_findSuggestions'](_0x86b91e,_0x38e134=null){const _0xb10f34=[],_0x3f2980=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x86b91e)||(_0x86b91e=[_0x86b91e]);for(const _0x42b7e4 of this['getSuggestions']()){if(!_0x42b7e4['isInContent'])continue;if(_0x38e134&&_0x42b7e4['type']!=_0x38e134)continue;let _0x59d1c5=!0x1;for(const _0x10cff7 of _0x42b7e4['getRanges']()){for(const _0x231560 of _0x86b91e){const _0xd69339=_0x231560['start']['isEqual'](_0x10cff7['end'])||_0x231560['end']['isEqual'](_0x10cff7['start']);if(_0xd69339||_0x231560['getIntersection'](_0x10cff7)){const _0x108f8c=_0x231560['containsRange'](_0x10cff7)&&Jt(this['_model']['schema'],_0x10cff7['start'],_0x231560),_0x42a313=_0x10cff7['containsRange'](_0x231560)&&Jt(this['_model']['schema'],_0x231560['start'],_0x10cff7);_0xb10f34['push']({'suggestion':_0x42b7e4,'meta':{'isOwn':_0x3f2980==_0x42b7e4['author'],'isNextTo':_0xd69339,'isInsideObject':_0x108f8c,'containsRangeInObject':_0x42a313}}),_0x59d1c5=!0x0;break;}}if(_0x59d1c5)break;}}return _0xb10f34;}['_addSuggestionMarker'](_0x1208f8,_0x1967ca,_0x4e77d3,_0x6d0101,_0x1202b5){this['_model']['change'](_0x3411b5=>{let _0x23dbc1='suggestion:'+_0x1208f8+':'+_0x1967ca+':'+_0x4e77d3;_0x1202b5&&(_0x23dbc1=_0x23dbc1+':'+_0x1202b5),_0x3411b5['addMarker'](_0x23dbc1,{'range':_0x6d0101,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2e0bd6){const _0x3d9db5=_0x2e0bd6['previous'],_0x8650b9=_0x2e0bd6['next'];_0x2e0bd6['previous']=null,_0x2e0bd6['next']=null,null!=_0x3d9db5&&_0x3d9db5['next']==_0x2e0bd6&&(_0x3d9db5['next']=_0x8650b9),null!=_0x8650b9&&_0x8650b9['previous']==_0x2e0bd6&&(_0x8650b9['previous']=_0x3d9db5),'ready'==this['_suggestionState']['get'](_0x2e0bd6)&&(this['_suggestionState']['set'](_0x2e0bd6,'removed'),this['fire']('suggestionUnloaded',_0x2e0bd6,_0x3d9db5,_0x8650b9));}['_setSuggestionData'](_0x243f45){const _0xc9aa0e=_0x243f45['id'],_0x25d04c=this['addSuggestionData'](_0x243f45);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x7975d1=this['editor']['plugins']['get']('PendingActions'),_0x29a460=_0x25d04c['hasComments'],_0x2978e4=_0x25d04c['subType']?_0x25d04c['type']+':'+_0x25d04c['subType']:_0x25d04c['type'],_0x28dfab=this['editor']['locale'],_0x252ca4=_0x7975d1['add'](o(_0x28dfab,'PENDING_ACTION_SUGGESTION')),_0x1b3b6f={'id':_0xc9aa0e,'type':_0x2978e4,'hasComments':_0x29a460,'data':_0x243f45['data']||null,'originalSuggestionId':_0x243f45['originalSuggestionId']||null,'attributes':_0x25d04c['attributes']};this['_adapter']['addSuggestion'](_0x1b3b6f)['then'](_0x27f9c5=>{_0x25d04c['_saved']=!0x0,_0x7975d1['remove'](_0x252ca4),_0x27f9c5&&_0x27f9c5['createdAt']&&(this['_suggestions']['get'](_0xc9aa0e)['createdAt']=_0x27f9c5['createdAt']);})['catch'](_0x4a5487=>{throw _0x19ddb9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25d04c['discard']();}),_0x25d04c['stopListening'](),this['_suggestions']['delete'](_0x25d04c['id']),this['_suggestionState']['delete'](_0x25d04c),_0x4a5487;});}return _0x25d04c;}['_isBlockAttribute'](_0x43ab28){return this['_blockAttributeKeys']['has'](_0x43ab28);}['_isInlineAttribute'](_0x311e00){return this['_inlineAttributeKeys']['has'](_0x311e00);}['_updateSuggestionData'](_0x31723e,_0x4b0bf3){const _0x6afee2=this['editor']['plugins']['get']('PendingActions'),_0x3a1a7c=this['getSuggestion'](_0x31723e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a1a7c['_saved']){const _0x16092f=_0x6afee2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x31723e,_0x4b0bf3)['then'](()=>{_0x6afee2['remove'](_0x16092f);});}else _0x3a1a7c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x31723e,_0x4b0bf3);});}}['_getSuggestionData'](_0x42ff6a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xb683c3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x42ff6a);}['_handleNewSuggestionMarker'](_0x3cfb66){const {id:_0x5dbea0,type:_0x12f9cc,subType:_0x2595b9,authorId:_0x27bef0}=this['_splitMarkerName'](_0x3cfb66),_0x49911e=this['_suggestions']['get'](_0x5dbea0)||this['_createSuggestion'](_0x12f9cc,_0x2595b9,_0x5dbea0,_0x27bef0,{});switch(this['_checkSuggestionCorrectness'](_0x49911e,_0x12f9cc,_0x2595b9,_0x27bef0),this['_suggestionState']['get'](_0x49911e)){case'notReady':this['_getSuggestionData'](_0x5dbea0)['then'](_0x90e03f=>{let _0xae4ec3=Promise['resolve']();_0x90e03f['hasComments']&&(_0xae4ec3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5dbea0})),_0xae4ec3['then'](()=>{this['addSuggestionData'](_0x90e03f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x49911e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5dbea0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x49911e,'ready'),this['fire']('suggestionLoaded',_0x49911e);break;case'ready':this['fire']('suggestionChanged',_0x49911e);}return _0x49911e['addMarkerName'](_0x3cfb66),_0x49911e;}['_refreshSuggestionsChain'](_0x528b06){const _0x4e7dbe=Array['from'](_0x528b06),_0x91a22d=_0x4e7dbe['filter'](_0x556525=>'attribute'==_0x556525['type']);this['_refreshAttributeSuggestionsChain'](_0x91a22d);const _0x2bef70=_0x4e7dbe['filter'](_0xd3f2de=>!_0xd3f2de['isMultiRange']&&'attribute'!=_0xd3f2de['type']),_0x5c25e6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8647=>!_0x3d8647['isMultiRange']&&'attribute'!=_0x3d8647['type']),_0x227a96=_0x5c25e6['filter'](_0x2bee44=>!_0x528b06['has'](_0x2bee44)),_0x1d497f=new Map(_0x5c25e6['map'](_0x4fe1df=>[_0x4fe1df,this['_suggestionFactory']['getSuggestionCallback'](_0x4fe1df['type'],_0x4fe1df['subType'],'chain')])),_0x19d5b0=new Map(_0x5c25e6['map'](_0x2a1363=>[_0x2a1363,_0x2a1363['getFirstRange']()])),_0x34de92=new Set(),_0x111252=new Set();for(let _0x41c74d=0x0;_0x41c74d<_0x2bef70['length'];_0x41c74d++)_0x1660b3(_0x2bef70[_0x41c74d],_0x2bef70,_0x41c74d+0x1);for(let _0x4aea74=0x0;_0x4aea74<_0x2bef70['length'];_0x4aea74++)_0x1660b3(_0x2bef70[_0x4aea74],_0x227a96,0x0);const _0x55bde8=new Set();for(let _0x50ca28=0x0;_0x50ca28<_0x2bef70['length'];_0x50ca28++){const _0x4a20ee=_0x2bef70[_0x50ca28];!_0x111252['has'](_0x4a20ee)&&_0x4a20ee['previous']&&(_0x55bde8['add'](_0x4a20ee['previous']),_0x4a20ee['previous']['next']===_0x4a20ee&&(_0x4a20ee['previous']['next']=null),_0x4a20ee['previous']=null),!_0x34de92['has'](_0x4a20ee)&&_0x4a20ee['next']&&(_0x55bde8['add'](_0x4a20ee['next']),_0x4a20ee['next']['previous']===_0x4a20ee&&(_0x4a20ee['next']['previous']=null),_0x4a20ee['next']=null);}function _0x1660b3(_0x1e189c,_0x40bd0d,_0x323539){for(let _0x32cff9=_0x323539;_0x32cff9<_0x40bd0d['length'];_0x32cff9++){const _0x16e294=_0x40a3ed(_0x1e189c,_0x40bd0d[_0x32cff9]);_0x16e294&&(_0x16e294[0x0]['next']=_0x16e294[0x1],_0x16e294[0x1]['previous']=_0x16e294[0x0],_0x34de92['add'](_0x16e294[0x0]),_0x111252['add'](_0x16e294[0x1]));}}function _0x40a3ed(_0x1ddfb4,_0x3d4845){if(_0x1ddfb4['author']['id']!==_0x3d4845['author']['id'])return null;const _0x1f7877=_0x1d497f['get'](_0x1ddfb4)(_0x1ddfb4,_0x3d4845,_0x19d5b0['get'](_0x1ddfb4),_0x19d5b0['get'](_0x3d4845));if(!_0x1f7877)return null;return _0x1d497f['get'](_0x3d4845)(_0x1ddfb4,_0x3d4845,_0x19d5b0['get'](_0x1ddfb4),_0x19d5b0['get'](_0x3d4845))?_0x1f7877[0x1]['commentThread']&&_0x1f7877[0x1]['commentThread']['length']?null:_0x1f7877:null;}_0x55bde8['size']&&this['_refreshSuggestionsChain'](_0x55bde8);}['_refreshAttributeSuggestionsChain'](_0x2fb75a){if(0x0==_0x2fb75a['length'])return;const _0x25945f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24b31a=>'attribute'==_0x24b31a['type']&&_0x24b31a['_isDataLoaded']),_0x21aaad=[],_0x3ffdb3=new Map();for(const _0x2465a5 of _0x25945f){const _0x491d67=_0x549bb6(_0x2465a5['attributes']);_0x3ffdb3['has'](_0x491d67)||(_0x3ffdb3['set'](_0x491d67,_0x21aaad['length']),_0x21aaad['push']([]));const _0x3399c8=_0x3ffdb3['get'](_0x491d67);_0x21aaad[_0x3399c8]['push'](_0x2465a5);}!(function(){_0x21aaad['sort']((_0x42c46b,_0x362aec)=>{const _0x8db53a=_0x42c46b[0x0]['createdAt'],_0x44b04d=_0x362aec[0x0]['createdAt'];return _0x8db53a==_0x44b04d?_0x42c46b[0x0]['attributes']['groupId']<_0x362aec[0x0]['attributes']['groupId']?-0x1:0x1:_0x8db53a<_0x44b04d?-0x1:0x1;});for(const _0x15e9d6 of _0x21aaad)_0x15e9d6['sort']((_0x2ba86c,_0x486ad0)=>_0x2ba86c['id']<_0x486ad0['id']?-0x1:0x1);}());for(let _0x5b59a7=0x0;_0x5b59a7<_0x21aaad['length'];_0x5b59a7++){if(0x0==_0x21aaad[_0x5b59a7]['length'])continue;const _0x41feea=[];for(let _0x5d7c4f=_0x5b59a7+0x1;_0x5d7c4f<_0x21aaad['length'];_0x5d7c4f++)0x0!=_0x21aaad[_0x5d7c4f]['length']&&_0x2b17fe(_0x21aaad[_0x5b59a7],_0x21aaad[_0x5d7c4f])&&_0x41feea['push'](_0x5d7c4f);for(const _0x530797 of _0x41feea)_0x21aaad[_0x5b59a7]=_0x21aaad[_0x5b59a7]['concat'](_0x21aaad[_0x530797]),_0x21aaad[_0x530797]=[];}for(const _0x52ff59 of _0x21aaad)for(let _0x39f5b5=0x0;_0x39f5b5<_0x52ff59['length'];_0x39f5b5++){const _0x5d0f33=_0x52ff59[_0x39f5b5+0x1]||null;_0x52ff59[_0x39f5b5]['next']!==_0x5d0f33&&(_0x52ff59[_0x39f5b5]['next']=_0x5d0f33);}for(const _0x2f1abd of _0x21aaad)for(let _0x19307a=0x0;_0x19307a<_0x2f1abd['length'];_0x19307a++){const _0x1cb271=_0x2f1abd[_0x19307a-0x1]||null;_0x2f1abd[_0x19307a]['previous']!==_0x1cb271&&(_0x2f1abd[_0x19307a]['previous']=_0x1cb271);}function _0x2b17fe(_0x5f2695,_0x3f1411){if(_0x5f2695[0x0]['attributes']['groupId']!==_0x3f1411[0x0]['attributes']['groupId']&&_0x5f2695[0x0]['author']!==_0x3f1411[0x0]['author'])return!0x1;if(!function(_0x41e159,_0x28367c){if(!_0x41e159['hasComments']&&!_0x28367c['hasComments'])return!0x0;if(_0x41e159['hasComments']&&_0x28367c['hasComments'])return!0x1;if(_0x41e159['hasComments']&&_0x28367c['createdAt']<_0x41e159['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28367c['hasComments']&&_0x41e159['createdAt']<_0x28367c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5f2695[0x0],_0x3f1411[0x0]))return!0x1;const _0x21253e=Gt(_0x5f2695[0x0]['attributes'],['groupId','trackingSessionId']),_0x55e154=Gt(_0x3f1411[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48a610(_0x21253e,_0x55e154))return!0x1;if(_0x5f2695[0x0]['attributes']['groupId']==_0x3f1411[0x0]['attributes']['groupId'])return!0x0;if(_0x5f2695[0x0]['attributes']['trackingSessionId']!==_0x3f1411[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5f2695['every'](_0x435cd4=>_0x3f1411['some'](_0x18e51a=>_0x435cd4['getFirstRange']()['isEqual'](_0x18e51a['getFirstRange']())))&&_0x3f1411['every'](_0x4d9547=>_0x5f2695['some'](_0x10a42a=>_0x4d9547['getFirstRange']()['isEqual'](_0x10a42a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3d67a8){const _0x28e701=Array['from'](_0x3d67a8),_0x48518e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7add6f=_0x48518e['filter'](_0x19cb47=>!_0x3d67a8['has'](_0x19cb47)),_0x427b60=new Map(_0x28e701['map'](_0x531781=>[_0x531781,this['_suggestionFactory']['getSuggestionCallback'](_0x531781['type'],_0x531781['subType'],'join')])),_0x761d2a=new Map(_0x48518e['map'](_0xd0e005=>[_0xd0e005,_0xd0e005['getRanges']()]));for(let _0x1f3709=0x0;_0x1f3709<_0x28e701['length'];_0x1f3709++){if(_0x3d6490(this,_0x28e701[_0x1f3709],_0x28e701,_0x1f3709+0x1))return!0x0;}for(let _0x25721e=0x0;_0x25721e<_0x28e701['length'];_0x25721e++){if(_0x3d6490(this,_0x28e701[_0x25721e],_0x7add6f,0x0))return!0x0;}return!0x1;function _0x3d6490(_0x4c1333,_0x3c079e,_0x219e45,_0x52c9d2){for(let _0x3a99ce=_0x52c9d2;_0x3a99ce<_0x219e45['length'];_0x3a99ce++){const _0x1336b7=_0x219e45[_0x3a99ce];if(_0x1336b7['type']!==_0x3c079e['type']||_0x1336b7['author']['id']!==_0x3c079e['author']['id']||_0x1336b7['subType']!==_0x3c079e['subType'])continue;if(!ee(_0x3c079e,_0x1336b7))continue;if('attribute'==_0x3c079e['type']&&_0x3c079e['data']['oldValue']!=_0x1336b7['data']['oldValue'])continue;if('attribute'==_0x3c079e['type']&&_0x4c1333['_isBlockAttribute'](_0x3c079e['data']['key']))continue;if('formatBlock'==_0x3c079e['type']){const _0x3751ef=_0x4c1333['editor']['model'],_0x28be52=_0x3c079e['getContainedElement']();if(_0x28be52&&(_0x3751ef['schema']['isObject'](_0x28be52)||_0x3751ef['schema']['isLimit'](_0x28be52)))continue;}const _0xc0c5d9=_0x427b60['get'](_0x3c079e),_0x4372a5=_0x761d2a['get'](_0x3c079e),_0x219fb6=_0x761d2a['get'](_0x1336b7),_0x156469=_0x3c079e['commentThread']&&_0x3c079e['commentThread']['length'],_0x481480=_0x1336b7['commentThread']&&_0x1336b7['commentThread']['length'];if(!_0x156469&&_0xc0c5d9(_0x219fb6,_0x4372a5))return _0x4c1333['_joinSuggestions'](_0x1336b7,_0x3c079e),_0x761d2a['delete'](_0x3c079e),!0x0;if(!_0x481480&&_0xc0c5d9(_0x4372a5,_0x219fb6))return _0x4c1333['_joinSuggestions'](_0x3c079e,_0x1336b7),_0x761d2a['delete'](_0x1336b7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x59e084,_0x1f97ac){if(_0x59e084['isMultiRange']){for(const _0x58258b of _0x1f97ac['getRanges']())_0x59e084['addRange'](_0x58258b);}else{const _0x3ef42f=_0x1f97ac['getFirstRange']()['end'];this['_setSuggestionRange'](_0x59e084,this['_model']['createRange'](_0x59e084['getFirstRange']()['start'],_0x3ef42f));}_0x1f97ac['removeMarkers']();}['_getMarkerAnnouncementText'](_0x316e81,_0x28375b,_0x1c4e9e){const _0x38e076=_0x316e81['startsWith']('format')||_0x316e81['startsWith']('attribute')?'FORMATTING':_0x316e81['toUpperCase']();return o(this['editor']['locale'],_0x28375b+'_'+_0x38e076+'_SUGGESTION_ANNOUNCEMENT',_0x1c4e9e);}['_initAriaMarkerChangeAnnouncements'](){const _0x3d4d6e=this['editor'];if(!_0x3d4d6e['ui'])return;const {ariaLiveAnnouncer:_0x2b6611}=_0x3d4d6e['ui'];_0x456507(this['_model'],({left:_0x38f5f0,entered:_0x552740})=>{for(const _0x1df245 of _0x38f5f0){const {group:_0x472f0b,type:_0x1a6c2f}=this['_splitMarkerName'](_0x1df245['name']);if('suggestion'===_0x472f0b){_0x2b6611['announce'](this['_getMarkerAnnouncementText'](_0x1a6c2f,'LEAVE'));break;}}for(const _0x1bc890 of _0x552740){const {group:_0x3bd423,type:_0x1b8675}=this['_splitMarkerName'](_0x1bc890['name']);if('suggestion'===_0x3bd423){_0x2b6611['announce'](this['_getMarkerAnnouncementText'](_0x1b8675,'ENTER',_0x3332a6(_0x348803)));break;}}});}['_processAttributeChanges'](_0x5db81e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53d3f9=this['editor'],_0x1ef18a=_0x53d3f9['model']['document']['differ']['getChanges']();if(0x0==_0x1ef18a['length'])return!0x1;const _0x438e38=[],_0x459abc=_0x1ef18a['filter'](_0x6f9204=>'attribute'==_0x6f9204['type']),_0x502268=_0x1ef18a['filter'](_0x57cc19=>'insert'==_0x57cc19['type']&&'$text'!=_0x57cc19['name']),_0x5d7ed3=_0x1ef18a['filter'](_0x57785c=>'remove'==_0x57785c['type']&&'$text'!=_0x57785c['name']);for(const _0xb18093 of _0x459abc)_0x438e38['push']({'key':_0xb18093['attributeKey'],'newValue':_0xb18093['attributeNewValue'],'oldValue':_0xb18093['attributeOldValue'],'range':Yt(_0xb18093['range'],_0x53d3f9['model'])});for(const _0x567f82 of _0x502268){const _0x6e4250=_0x5d7ed3['find'](_0x8438b=>_0x8438b['position']['isEqual'](_0x567f82['position']));_0x6e4250&&_0x438e38['push']({'key':m,'newValue':_0x567f82['name'],'oldValue':_0x6e4250['name'],'range':_0x53d3f9['model']['createRangeOn'](_0x567f82['position']['nodeAfter'])});}return 0x0!=_0x438e38['length']&&this['_reduceExistingSuggestions'](_0x5db81e,_0x438e38);}['_processAttributeSuggestions'](_0xc2bd46){let _0x4367e3=!0x1;const _0x2000a8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2be52d=>_0x2be52d['data']['newRange']&&_0x2be52d['name']['startsWith']('suggestion:attribute:'));for(const _0x5e7770 of _0x2000a8){const {subType:_0x4a5091,id:_0x2b510a}=this['_splitMarkerName'](_0x5e7770['name']),_0x4857c2=_0x4a5091['split']('|')[0x0];for(const _0x59cda9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59cda9['id']!=_0x2b510a&&'attribute'==_0x59cda9['type']&&_0x59cda9['data']&&_0x59cda9['data']['key']==_0x4857c2&&_0x59cda9['getFirstRange']()['isIntersecting'](_0x5e7770['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59cda9,_0x5e7770['data']['newRange'],_0xc2bd46),_0x4367e3=!0x0);}return _0x4367e3;}['recordAttributeChanges'](_0x195232){this['_recordAttributeSuggestions']=!0x0,_0x195232();}['_isRegisteredAttribute'](_0x283bbd){const _0x2bc742=this['_isBlockAttribute'](_0x283bbd),_0x4c30ab=this['_isInlineAttribute'](_0x283bbd);return _0x2bc742||_0x4c30ab;}['_reduceExistingSuggestions'](_0x3a0af7,_0x3903d6){if(0x0==_0x3903d6['length'])return!0x1;let _0x546b36=!0x1;for(const _0xacb721 of _0x3903d6){const _0x3edfc1=this['_findSuggestions'](_0xacb721['range'],'attribute')['filter'](_0x286996=>!_0x286996['meta']['isNextTo'])['map'](_0x4a12eb=>_0x4a12eb['suggestion']),_0xc35b09=_0x549bb6({'newValue':_0xacb721['newValue']});_0x3edfc1['filter'](_0x55c76b=>{const [_0x585a76,_0x588eb7]=_0x55c76b['subType']['split']('|');return _0x585a76==_0xacb721['key']&&_0x588eb7!=_0xc35b09;})['forEach'](_0x2fb785=>{this['_reduceSuggestionAttributeRange'](_0x2fb785,_0xacb721['range'],_0x3a0af7),_0x546b36=!0x0;});}return _0x546b36;}['_reduceSuggestionAttributeRange'](_0x2891b9,_0x4cc03a,_0x37261a){const _0x2b6fa2=_0x2891b9['getFirstRange']()['getDifference'](_0x4cc03a);0x0!==_0x2b6fa2['length']?0x1!==_0x2b6fa2['length']?this['_breakSuggestionMarker'](_0x2891b9,_0x4cc03a['start'],_0x4cc03a['end']):this['_setSuggestionRange'](_0x2891b9,_0x2b6fa2[0x0]):_0x37261a['removeMarker'](_0x2891b9['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21609e){this['_editor']=_0x21609e,this['_model']=_0x21609e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x96032a,_0x23557b,_0x132b54,_0x3940d5,_0x3cffe4,_0x42ea64,_0x2fe9b2){return new R(this['_model'],{'type':_0x96032a,'subType':_0x23557b,'id':_0x132b54,'originalSuggestionId':_0x2fe9b2,'author':_0x3940d5,'creator':_0x3940d5,'attributes':_0x3cffe4,'onAttributesChange':_0x42ea64,'onAccept':(..._0x9e087c)=>this['getSuggestionCallback'](_0x96032a,_0x23557b,'accept')(..._0x9e087c),'onDiscard':(..._0x4495da)=>this['getSuggestionCallback'](_0x96032a,_0x23557b,'discard')(..._0x4495da)});}['registerCustomCallback'](_0x416f0b,_0x20f443,_0x5254f6,_0x1522fb){const _0x48cb04=_0x416f0b+':'+_0x20f443+':'+_0x5254f6;this['_customCallbacks']['set'](_0x48cb04,_0x1522fb);}['getSuggestionCallback'](_0x14374a,_0x28a9a,_0xadbf4d){const _0x327662=_0x14374a+':'+_0x28a9a+':'+_0xadbf4d;return this['_customCallbacks']['get'](_0x327662)||this['_defaultCallbacks']['get'](_0x14374a+':'+_0xadbf4d);}['_registerDefaultCallbacks'](){const _0x250243=()=>!0x1,_0xe3bc67=_0x51986e=>{_0x51986e['sort']((_0x55727b,_0x88db63)=>_0x55727b['start']['isBefore'](_0x88db63['start'])?0x1:-0x1),this['_model']['change'](_0x2f2ea4=>{for(const _0x6cfea3 of _0x51986e){let _0x16c67b;_0x16c67b=_0x6cfea3['end']['isAtEnd']&&_0x6cfea3['end']['parent']==_0x6cfea3['start']['nodeAfter']?_0x2f2ea4['createSelection'](_0x6cfea3['start']['nodeAfter'],'on'):_0x2f2ea4['createSelection'](_0x6cfea3),this['_model']['deleteContent'](_0x16c67b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3b986b=(_0x3e86c2,_0x18d37b)=>{_0x18d37b&&this['_model']['change'](_0x43c9a7=>{const {commandName:_0x39b941,commandParams:_0x57030d=[]}=_0x18d37b,_0x39cd11=_0x3e86c2['map'](_0x5d0d3c=>(Kt(_0x5d0d3c)&&(_0x5d0d3c=this['_model']['createRange'](_0x5d0d3c['end'])),_0x5d0d3c))['filter'](_0x5b61bf=>'$graveyard'!==_0x5b61bf['root']['rootName']);if(_0x39cd11['length']<0x1)return;const _0x26256a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f3c4f=>_0x54a592['fromRange'](_0x1f3c4f));_0x43c9a7['setSelection'](_0x39cd11);for(const _0x4197bd of this['_editor']['commands']['commands']())_0x4197bd['refresh']();_0x57030d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x39b941,..._0x57030d);const _0xcb942e=_0x26256a['filter'](_0x1157ab=>'$graveyard'!=_0x1157ab['root']['rootName']);_0xcb942e['length']>0x0&&_0x43c9a7['setSelection'](_0xcb942e);for(const _0x23269d of _0x26256a)_0x23269d['detach']();});},_0x48ac6e=(_0x2fac99,_0x198a6b)=>0x1==_0x2fac99['length']&&0x1==_0x198a6b['length']&&_0x2fac99[0x0]['end']['isEqual'](_0x198a6b[0x0]['start']),_0x433903=(_0x9311da,_0x4c23a6,_0x19b725,_0x1657c9)=>te(_0x9311da,_0x4c23a6,_0x19b725,_0x1657c9)?[_0x9311da,_0x4c23a6]:te(_0x4c23a6,_0x9311da,_0x1657c9,_0x19b725)?[_0x4c23a6,_0x9311da]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x250243),this['_defaultCallbacks']['set']('insertion:discard',_0xe3bc67),this['_defaultCallbacks']['set']('insertion:join',_0x48ac6e),this['_defaultCallbacks']['set']('insertion:chain',_0x433903),this['_defaultCallbacks']['set']('deletion:accept',_0xe3bc67),this['_defaultCallbacks']['set']('deletion:discard',_0x250243),this['_defaultCallbacks']['set']('deletion:join',_0x48ac6e),this['_defaultCallbacks']['set']('deletion:chain',_0x433903),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b986b),this['_defaultCallbacks']['set']('formatInline:discard',_0x250243),this['_defaultCallbacks']['set']('formatInline:join',_0x48ac6e),this['_defaultCallbacks']['set']('formatInline:chain',_0x250243),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b986b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x250243),this['_defaultCallbacks']['set']('formatBlock:join',_0x48ac6e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x250243),this['_defaultCallbacks']['set']('attribute:accept',_0x250243),this['_defaultCallbacks']['set']('attribute:discard',(_0x58176b,_0x9dc4a9)=>{if(!_0x9dc4a9)return;const _0xd0c582=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x21c249=>{if(_0x9dc4a9['key']==m)for(const _0x2baf70 of _0x58176b){const _0x47ccb7=_0x2baf70['start']['nodeAfter'],_0x490cb7=_0x9dc4a9['oldValue'];_0x21c249['rename'](_0x47ccb7,_0x490cb7);}else{if(_0xd0c582['_isBlockAttribute'](_0x9dc4a9['key'])){for(const _0x2e86ae of _0x58176b)void 0x0!==_0x9dc4a9['oldValue']?_0x21c249['setAttribute'](_0x9dc4a9['key'],_0x9dc4a9['oldValue'],_0x2e86ae['start']['nodeAfter']):_0x21c249['removeAttribute'](_0x9dc4a9['key'],_0x2e86ae['start']['nodeAfter']);}else{for(const _0x1a946e of _0x58176b)_0x9dc4a9['oldValue']?_0x21c249['setAttribute'](_0x9dc4a9['key'],_0x9dc4a9['oldValue'],_0x1a946e):_0x21c249['removeAttribute'](_0x9dc4a9['key'],_0x1a946e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x48ac6e);}}function Jt(_0x190ef3,_0xa8887e,_0x2547b9){for(const _0xfbe6ea of _0xa8887e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xfbe6ea['root']==_0xfbe6ea)return!0x1;if(!_0x2547b9['containsItem'](_0xfbe6ea))return!0x1;if(_0x190ef3['isObject'](_0xfbe6ea)||_0x190ef3['isLimit'](_0xfbe6ea))return!0x0;}return!0x1;}function Kt(_0x11b0c3){return _0x11b0c3['end']['parent']==_0x11b0c3['start']['nodeAfter']&&_0x11b0c3['end']['isAtStart'];}function Ht(_0x2261a5,_0x230f2f,_0x3b8d20,_0x52bd8f){const _0x21ab19=_0x187be1=>!_0x187be1['item']['is']('$textProxy')&&!_0x52bd8f['isObject'](_0x187be1['item']),_0x40c40e=_0x2261a5['start']['getLastMatchingPosition'](_0x21ab19),_0xc9234d=_0x2261a5['end']['getLastMatchingPosition'](_0x21ab19,{'direction':'backward'});return(!_0x2261a5['start']['isEqual'](_0x40c40e)||!_0x2261a5['end']['isEqual'](_0xc9234d))&&(_0x40c40e['isBefore'](_0xc9234d)?_0x3b8d20['updateMarker'](_0x230f2f,{'range':_0x3b8d20['createRange'](_0x40c40e,_0xc9234d)}):_0x3b8d20['removeMarker'](_0x230f2f),!0x0);}function Wt(_0x45f370){return _0x549bb6(_0x45f370);}function qt(_0x4f1ac0){const _0x20fabd=_0x4f1ac0['start']['nodeAfter'];return _0x20fabd&&_0x20fabd['is']('element');}function zt(_0x3c5abb){return Kt(_0x3c5abb)||function(_0x3eb31d){return _0x3eb31d['start']['parent']==_0x3eb31d['end']['nodeBefore']&&_0x3eb31d['start']['isAtEnd'];}(_0x3c5abb);}function Qt(_0x568ae9,_0xd4461b){try{const _0x2fdce3=_0x568ae9['getRange']();for(const _0x363924 of _0xd4461b)if(_0x568ae9!==_0x363924&&_0x2fdce3&&_0x2fdce3['isIntersecting'](_0x363924['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x4d2ee9,_0x2255fe){const _0x5a6a96=_0x4d2ee9['end']['nodeBefore'];if(_0x5a6a96&&_0x5a6a96['is']('element')&&_0x2255fe['schema']['isBlock'](_0x5a6a96)&&!_0x2255fe['schema']['isObject'](_0x5a6a96)){const _0x19fa1e=_0x2255fe['createPositionAt'](_0x5a6a96,'end');return _0x2255fe['createRange'](_0x4d2ee9['start'],_0x19fa1e);}return _0x4d2ee9;}function Yt(_0x4b4865,_0x54683e){return null==_0x4b4865['end']['nodeBefore']&&_0x4b4865['end']['parent']==_0x4b4865['start']['nodeAfter']?Zt(_0x4b4865['start']['nodeAfter'],_0x54683e):_0x4b4865;}function Zt(_0x43370b,_0xfb73d7){const _0x208970=_0xfb73d7['schema']['isObject'](_0x43370b)||_0xfb73d7['schema']['isSelectable'](_0x43370b);return _0xfb73d7['createRange'](_0xfb73d7['createPositionAt'](_0x43370b,'before'),_0x208970?_0xfb73d7['createPositionAfter'](_0x43370b):_0xfb73d7['createPositionAt'](_0x43370b,'end'));}function te(_0xfce783,_0x3b974d,_0x5d0e49,_0x2546dc){return!!ee(_0xfce783,_0x3b974d)&&_0x5d0e49['end']['isEqual'](_0x2546dc['start']);}function ee(_0x517551,_0x1ee9d0){if(!_0x517551['_isDataLoaded']||!_0x1ee9d0['_isDataLoaded'])return!0x1;const _0x2a6a7d=new Set(Object['keys'](_0x517551['attributes'])),_0x3447ad=new Set(Object['keys'](_0x1ee9d0['attributes']));if(_0x2a6a7d['delete']('groupId'),_0x3447ad['delete']('groupId'),0x0==_0x2a6a7d['size']&&0x0==_0x3447ad['size'])return!0x0;if(_0x2a6a7d['size']!=_0x3447ad['size'])return!0x1;const _0x54f41f={..._0x517551['attributes']},_0xd04667={..._0x1ee9d0['attributes']};return delete _0x54f41f['groupId'],delete _0xd04667['groupId'],JSON['stringify'](_0x54f41f)==JSON['stringify'](_0xd04667);}function ie(_0x4ce3c9,_0x478f21){const _0x3d659a=ne(_0x4ce3c9['attributes']),_0x592c13=ne(_0x478f21);if(!_0x4ce3c9['_isDataLoaded'])return!0x1;for(const _0x283a6d of Object['keys'](_0x592c13))if(!_0x48a610(_0x3d659a[_0x283a6d],_0x592c13[_0x283a6d]))return!0x1;return!0x0;}function ne(_0x582f86){const _0x17f030=Object['assign']({},_0x582f86);return delete _0x17f030['skipNestingCheck'],delete _0x17f030['tablePasteChainId'],_0x17f030;}function se(_0x5e94b8){return _0x5e94b8['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x38bbe6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c3ae5,_0x509d75,_0xc135,_0x1a4f1a){super(),this['model']=_0x509d75,this['view']=_0xc135,this['commentThreadController']=_0x1a4f1a,this['_editor']=_0x1c3ae5,this['_acceptCommand']=_0x1c3ae5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c3ae5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40440d,_0x4529d1)=>_0x40440d||_0x4529d1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a1ae9=>_0x2a1ae9&&this['_editor']['model']['canEditAt'](_0x509d75['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4b6a8f=>_0x4b6a8f&&this['_editor']['model']['canEditAt'](_0x509d75['getRanges']())),this['_pendingAction']=null,_0xc135['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc135,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc135,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc135,'change:isDirty',()=>{_0xc135['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 _0x13ab03=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x13ab03);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x188aaa{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x583b55,_0x5193c6,_0xc9b67f,_0x2ceea8){super(_0x583b55),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x54b7d2(_0x583b55,o(_0x583b55,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5193c6['authoredAt']),this['bind']('authoredAt')['to'](_0x5193c6),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',_0x5193c6,'authoredAt',this,'descriptionParts',(_0xa4d28f,_0x499ca9,_0x2a9b11)=>{const _0x33227c=_0x2a9b11['map'](_0x88f2f6=>ls(_0x88f2f6['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xa4d28f-0x1,_0x5193c6['author']['name'],_0x499ca9?_0x2ceea8['formatDateTime'](_0x499ca9):'',new DOMParser()['parseFromString'](_0x33227c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2dec14(),this['focusTracker']=new _0x3f5458(),this['keystrokes']=new _0x5b2353(),this['focusCycler']=new _0x4f217e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bc554=>_0x2bc554['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5193c6,this['_localUser']=_0xc9b67f,this['_config']=_0x2ceea8,_0x2ceea8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4c2d2b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x48973b}=this['_config'];this['commentsListView']=new _0x48973b(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',_0x327d28=>_0x327d28+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x17f017,_0x830ee6)=>_0x17f017||!!_0x830ee6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x476cb0}=this['_config'],_0x54d89a=new _0x476cb0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x108d3=_0x54d89a['commentInputView'];return _0x54d89a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x108d3,'value',(_0x4f6906,_0x3e131,_0xdc87e8)=>!!_0xdc87e8||_0x4f6906&&!_0x3e131),_0x108d3['on']('submit',(_0x485fee,_0x36dc0a)=>{this['fire']('addComment',_0x36dc0a),_0x108d3['editor']['setData']('');}),_0x108d3['on']('cancel',()=>this['focus']()),_0x108d3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54d89a;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x120841,_0x2c394b,_0x5dbde2,_0x2d3ebd){super(_0x120841,_0x2c394b,_0x5dbde2,_0x2d3ebd),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17999d=>_0x17999d&&_0x17999d[0x0]?_0x17999d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x223c13,_0x5bafe2)=>{let _0x3e8601='';for(const _0x1826fb of _0x223c13)_0x3e8601+='<p>'+ls(_0x1826fb['content'],_0x1826fb['color'])+'</p>';return _0x5bafe2?_0x3e8601:_0x5f195b(_0x3e8601,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d3ebd['SuggestionView'](_0x120841,_0x2c394b,{'formatDateTime':_0x2d3ebd['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 _0x2fb190=this['bindTemplate'],_0x2ac1b0=[this['suggestionView']];return this['commentsListView']&&_0x2ac1b0['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2ac1b0['push'](this['commentThreadInputView']),_0x2ac1b0['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2fb190['if']('isActive','ck-suggestion-wrapper--active'),_0x2fb190['to']('type',_0x4a3e8d=>'ck-suggestion-'+_0x4a3e8d),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':_0x2fb190['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2ac1b0};}['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 Le extends _0x188aaa{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xb05b35,_0x10405c,_0x51540e){super(_0xb05b35),this['_model']=_0x10405c,this['_config']=_0x51540e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10405c),this['acceptButton']=this['_createButton'](o(_0xb05b35,'Accept\x20suggestion'),_0x2e14dc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xb05b35,'Discard\x20suggestion'),_0x99e388,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x274cfd(_0xb05b35,_0x10405c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2dec14([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3f5458(),this['keystrokes']=new _0x5b2353(),this['focusCycler']=new _0x4f217e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x158952=>_0x158952['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x140ecf=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x140ecf['innerHTML']=this['description'],this['on']('change:description',(_0x218372,_0x104a94,_0x37a3b0)=>{_0x140ecf['innerHTML']=_0x37a3b0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x51e72c=this['bindTemplate'],_0x4a3cc7=[{'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':_0x51e72c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x51e72c['to']('authoredAt',_0x47c138=>this['_config']['formatDateTime'](_0x47c138))}]}]},{'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']&&_0x4a3cc7['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':_0x4a3cc7}]};}['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'](_0x1276fc,_0x40ad44,_0x50afe5,_0x2bbd93,_0x2ed68a){const _0x5aa213=new _0x4122ec(this['locale']);return _0x5aa213['set']({'label':_0x1276fc,'icon':_0x40ad44,'tooltip':!0x0,'tooltipPosition':_0x2ed68a}),_0x5aa213['extendTemplate']({'attributes':{'class':_0x50afe5}}),_0x5aa213['on']('execute',()=>{this['fire'](_0x2bbd93,this['_model']['id']);}),_0x5aa213;}['_setupKeyboardNavigation'](){const _0x2765df=this['element'];this['keystrokes']['listenTo'](_0x2765df);for(const _0x3bdbe2 of this['focusables'])this['focusTracker']['add'](_0x3bdbe2['element']),this['keystrokes']['listenTo'](_0x3bdbe2['element']);this['keystrokes']['set']('enter',(_0x3286a1,_0x5d66e6)=>{_0x2765df===_0x3286a1['target']&&(this['focusCycler']['focusFirst'](),_0x5d66e6());}),this['keystrokes']['set']('esc',(_0x889c5d,_0x36a72b)=>{_0x2765df!==_0x889c5d['target']&&(this['focus'](),_0x36a72b());});}}class u extends _0x5a00b1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xee2af6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x457391){super(_0x457391),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xe502aa=this['editor']['config'];_0xe502aa['define']('trackChanges.SuggestionThreadView',Te),_0xe502aa['define']('trackChanges.SuggestionView',Le),_0xe502aa['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xe502aa['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1547da,_0x410d33){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x565516,_0x581a8f]of this['_handleControllerBuffer']){const _0x4606bb=this['_suggestionToController']['has'](_0x565516);_0x4606bb||_0x581a8f?_0x4606bb&&_0x581a8f&&this['_destroyController'](_0x565516):this['_initializeController'](_0x565516);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1547da,_0x410d33);}['init'](){const _0x426784=this['editor'],_0x489aa5=_0x426784['plugins']['get']('TrackChangesEditing'),_0x4db596=_0x426784['plugins']['get']('Annotations'),_0x11744b=_0x426784['plugins']['get']('EditorAnnotations'),_0x2a4e51=_0x426784['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x11744b['addSourceCollector'](()=>{const _0x2bb567=[];for(const [_0x599610,_0x384942]of Array['from'](this['_suggestionToController'])){const _0x2d988a=_0x599610['getAllAdjacentSuggestions'](),_0x588ec3=[];for(const _0xc72aa4 of _0x2d988a){if(!_0xc72aa4['isInContent'])continue;if(_0xc72aa4['isMultiRange']){_0x588ec3['push'](..._0xc72aa4['getRanges']());continue;}const _0x30d0d9=_0xc72aa4['getFirstRange']();if(_0x588ec3['length']>0x0){const _0x66b5ec=_0x588ec3[0x0]['getJoined'](_0x30d0d9);if(_0x66b5ec){_0x588ec3[0x0]=_0x66b5ec;continue;}}_0x588ec3['push'](_0x30d0d9);}_0x2bb567['push']([_0x384942['view'],_0x588ec3]);}return _0x2bb567;}),this['listenTo'](_0x489aa5,'suggestionLoaded',(_0x534a1c,_0x1e050f)=>{this['listenTo'](_0x1e050f,'change:previous',(_0x4e703f,_0x3b05d4,_0x5a2be5,_0x529092)=>{_0x1e050f['isInContent']&&(null==_0x5a2be5?(this['_updateController'](_0x529092['head']),this['_handleSuggestionControllerDelayed'](_0x1e050f,!0x1)):(this['_updateController'](_0x5a2be5['head']),null==_0x529092&&this['_handleSuggestionControllerDelayed'](_0x1e050f,!0x0)));}),null!==_0x1e050f['previous']?this['_updateController'](_0x1e050f['head']):this['_handleSuggestionControllerDelayed'](_0x1e050f,!0x1);}),this['listenTo'](_0x489aa5,'suggestionUnloaded',(_0x3d1c63,_0x3c66bf,_0x16aa6f)=>{this['stopListening'](_0x3c66bf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c66bf),this['_suggestionToController']['has'](_0x3c66bf)&&this['_destroyController'](_0x3c66bf),_0x16aa6f&&this['_updateController'](_0x16aa6f['head']);}),this['listenTo'](_0x489aa5,'suggestionChanged',(_0x5bc538,_0x8c29cc)=>{this['_updateController'](_0x8c29cc);}),this['listenTo'](_0x4db596,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a4e51,'addComment',(_0x13424b,{threadId:_0x1729da,isFromAdapter:_0x3a4ebc})=>{if(_0x3a4ebc||!_0x489aa5['hasSuggestion'](_0x1729da))return;const _0x108da9=_0x489aa5['getSuggestion'](_0x1729da);this['_suggestionToController']['get'](_0x108da9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x467558=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4da0bc;for(const _0x1cbc1b in _0x467558){const _0x1132f2=_0x1cbc1b,_0x539d1e=_0x467558[_0x1132f2];if('trackChangesLicenseKeyValid'==_0x539d1e||'trackChangesLicenseKeyInvalid'==_0x539d1e||'trackChangesLicenseKeyExpired'==_0x539d1e||'trackChangesLicenseKeyDomainLimit'==_0x539d1e||'trackChangesLicenseKeyNotAllowed'==_0x539d1e||'trackChangesLicenseKeyEvaluationLimit'==_0x539d1e||'trackChangesLicenseKeyTrialLimit'==_0x539d1e||'trackChangesLicenseKeyUsageLimit'==_0x539d1e){delete _0x467558[_0x1132f2],_0x4da0bc=_0x539d1e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4da0bc&&_0x467558['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4da0bc&&_0x467558['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4da0bc&&_0x467558['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4da0bc&&_0x467558['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4da0bc&&_0x467558['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4da0bc&&_0x467558['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4da0bc&&_0x467558['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2d28fc){const _0x4fa1ff=this['_suggestionToController']['get'](_0x2d28fc);if(!_0x4fa1ff)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4fa1ff['view'])||null;}['getSuggestionForAnnotation'](_0x3a344c){const _0x13be39=this['_viewToController']['get'](_0x3a344c['innerView']);return _0x13be39?_0x13be39['model']:null;}['_refreshActiveMarkers'](){const _0xaf84d=this['editor']['plugins']['get']('Annotations'),_0x4fdc6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb3260=Array['from'](_0xaf84d['activeAnnotations'],_0x4435ab=>_0x4435ab['innerView'])['filter'](_0x3a4e92=>this['_viewToController']['has'](_0x3a4e92)),_0x194972=[];for(const _0x5ea761 of _0xb3260){const _0x39217c=this['_viewToController']['get'](_0x5ea761)['model']['getAllAdjacentSuggestions']();_0x194972['push'](..._0x39217c['reduce']((_0x2fa5af,_0x37e87c)=>[..._0x2fa5af,..._0x37e87c['getMarkerNames']()],[]));}_0x4fdc6a['activeMarkers']=_0x194972;}['_addUIComponentsToFactory'](){const _0x303230=this['editor'],_0x68f0c0=_0x303230['locale'],_0x45db15=o(_0x68f0c0,'Track\x20changes'),_0x19f090=new _0x2613ad([{'type':'switchbutton','model':new _0x5223fc({'withText':!0x0,'isToggleable':!0x0,'label':_0x45db15,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5223fc({'withText':!0x0,'label':o(_0x68f0c0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5223fc({'withText':!0x0,'label':o(_0x68f0c0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5223fc({'withText':!0x0,'label':o(_0x68f0c0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5223fc({'withText':!0x0,'label':o(_0x68f0c0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x303230['plugins']['has']('TrackChangesPreview')&&_0x19f090['addMany']([{'type':'separator'},{'type':'button','model':new _0x5223fc({'withText':!0x0,'label':o(_0x68f0c0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x15672f of _0x19f090)if(ve(_0x15672f)){const _0x3dc406=_0x303230['commands']['get'](_0x15672f['model']['commandName']);_0x15672f['model']['bind']('isOn','isEnabled')['to'](_0x3dc406,'value','isEnabled');}_0x303230['ui']['componentFactory']['add']('trackChanges',_0x4d79b1=>this['_createToolbarButton'](_0x4d79b1,_0x19f090,_0x45db15)),_0x303230['ui']['componentFactory']['add']('menuBar:trackChanges',_0x207f49=>this['_createMenuBarMenu'](_0x207f49,_0x19f090,_0x45db15));}['_createToolbarButton'](_0x1e2620,_0x43e023,_0x22bd17){const _0x4c028c=_0x403fac(_0x1e2620,_0x4cb093),_0x1471e8=this['editor']['commands']['get']('trackChanges');_0x4c028c['buttonView']['set']({'tooltip':_0x22bd17,'label':_0x22bd17,'icon':_0x54c16d}),_0x4c028c['buttonView']['bind']('isOn')['to'](_0x1471e8,'value'),_0x4c028c['buttonView']['on']('execute',()=>{_0x1471e8['execute'](),this['editor']['editing']['view']['focus']();}),_0x30cec3(_0x4c028c,_0x43e023,{'role':'menu'});const _0x272e89=[];for(const _0xc6daee of _0x43e023)ve(_0xc6daee)&&_0x272e89['push'](this['editor']['commands']['get'](_0xc6daee['model']['commandName']));const _0x265702=_0x4c028c['buttonView'];return _0x265702['actionView']['unbind']('isEnabled'),_0x265702['arrowView']['unbind']('isEnabled'),_0x265702['actionView']['bind']('isEnabled')['to'](_0x1471e8,'isEnabled'),_0x265702['arrowView']['bind']('isEnabled')['toMany'](_0x272e89,'isEnabled',(..._0x578f12)=>_0x578f12['some'](_0x499fea=>_0x499fea)),_0x4c028c['on']('execute',_0x484c80=>{this['editor']['execute'](_0x484c80['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c028c;}['_createMenuBarMenu'](_0x56472b,_0x207c00,_0x4caf55){const _0x7d5547=new _0x1b3c56(_0x56472b),_0x14b6da=this['editor']['commands']['get']('trackChanges');_0x7d5547['buttonView']['set']({'label':_0x4caf55,'icon':_0x54c16d});const _0x557f64=new _0x2db466(_0x56472b);for(const _0x58c8cf of _0x207c00){if('separator'==_0x58c8cf['type']){_0x557f64['items']['add'](new _0x23663d(_0x56472b));continue;}const _0x79ffbc=new _0x54232d(_0x56472b,_0x7d5547),_0x57d6d8=new _0x367afd(_0x56472b),_0x3ecb8a=_0x58c8cf['model'];_0x57d6d8['bind'](...Object['keys'](_0x3ecb8a))['to'](_0x3ecb8a),_0x57d6d8['delegate']('execute')['to'](_0x7d5547),_0x57d6d8['on']('execute',()=>{this['editor']['execute'](_0x3ecb8a['commandName']),this['editor']['editing']['view']['focus']();}),_0x79ffbc['children']['add'](_0x57d6d8),_0x557f64['items']['add'](_0x79ffbc);}return _0x7d5547['bind']('isEnabled')['to'](_0x14b6da,'isEnabled'),_0x7d5547['panelView']['children']['add'](_0x557f64),_0x7d5547;}['_initializeController'](_0x45930c){const _0x47cc2f=this['editor'],_0x1fe13e=_0x47cc2f['config'],_0x424194=_0x47cc2f['plugins']['get']('Annotations'),_0x2daffc=_0x47cc2f['plugins']['get']('CommentsRepository'),_0x51aaf8=_0x47cc2f['plugins']['get']('EditorAnnotations'),_0x1a5a44=_0x47cc2f['plugins']['get'](_0xee2af6)['me'],_0x54757e=_0x1fe13e['get']('trackChanges')['SuggestionThreadView'],_0x2c476e=_0x1fe13e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2947e8,CommentThreadInputView:_0x2ca961}=_0x47cc2f['plugins']['get']('CommentsUI');let _0x81f8a7,_0x30fdc3,_0x596112;this['_annotationViews']['has'](_0x45930c['id'])?(_0x30fdc3=this['_annotationViews']['get'](_0x45930c['id']),_0x81f8a7=_0x30fdc3['mainView']):(_0x81f8a7=new _0x54757e(_0x47cc2f['locale'],_0x45930c,_0x1a5a44,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1fe13e['get']('comments.editorConfig'),'licenseKey':_0x1fe13e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1fe13e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1fe13e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1fe13e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5819d1(_0x1fe13e['get']('locale'),_0x47cc2f['locale']),'CommentView':_0x1fe13e['get']('comments')['CommentView'],'CommentsListView':_0x2947e8,'CommentThreadInputView':_0x2ca961,'SuggestionView':_0x2c476e}),_0x81f8a7['suggestionView']['acceptButton']['on']('execute',()=>{_0x47cc2f['editing']['view']['focus']();}),_0x81f8a7['suggestionView']['discardButton']['on']('execute',()=>{_0x47cc2f['editing']['view']['focus']();}),_0x30fdc3=_0x424194['createAnnotationView'](this['editor']['locale'],_0x81f8a7),_0x30fdc3['bind']('isDirty')['to'](_0x81f8a7,'isDirty'),_0x30fdc3['bind']('length')['to'](_0x81f8a7),_0x30fdc3['bind']('type')['to'](_0x81f8a7,'type',_0x5e6187=>'suggestion-'+_0x5e6187),_0x81f8a7['on']('escape',()=>{_0x596112['fire']('escape');}),this['_annotationViews']['set'](_0x45930c['id'],_0x30fdc3));const _0xf957ae=_0x2daffc['createCommentThreadController'](_0x45930c['commentThread'],_0x81f8a7),_0x2458d9=new be(_0x47cc2f,_0x45930c,_0x81f8a7,_0xf957ae),_0x4c8155=_0x45930c['getAllAdjacentSuggestions']()['filter'](_0x4fade9=>_0x4fade9['isInContent']);_0x81f8a7['descriptionParts']=_0x47cc2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c8155),this['_suggestionToController']['set'](_0x45930c,_0x2458d9),this['_viewToController']['set'](_0x81f8a7,_0x2458d9);const _0x5c87f7=()=>{const _0x1b140b=[],_0x4ef472=_0x45930c['getAllAdjacentSuggestions']()['filter'](_0x399f4b=>_0x399f4b['isInContent']);for(const _0x3d6c41 of _0x4ef472)_0x1b140b['push'](..._0x3d6c41['getMarkers']());return _0x13055d(_0x47cc2f['editing'],_0x1b140b);};_0x596112=_0x424194['createAnnotation']({'view':_0x30fdc3,'target':_0x5c87f7,'type':()=>'suggestion-'+_0x2458d9['view']['type'],'isVisible':!!_0x5c87f7()}),_0x2daffc['_bindAnnotationToEditors'](_0x81f8a7,_0x596112),_0x424194['add'](_0x596112),_0x51aaf8['registerAnnotation'](_0x596112);}['_destroyController'](_0x3737b8){const _0x5f30fc=this['editor']['plugins']['get']('CommentsRepository'),_0x3bf23a=this['editor']['plugins']['get']('Annotations'),_0x4d751=this['_suggestionToController']['get'](_0x3737b8),_0x88b5ca=_0x4d751['view'],_0x166bf1=_0x3bf23a['getByInnerView'](_0x88b5ca);_0x5f30fc['_unbindEditors'](_0x88b5ca),_0x166bf1&&_0x3bf23a['remove'](_0x166bf1),this['_suggestionToController']['delete'](_0x3737b8),this['_viewToController']['delete'](_0x88b5ca),_0x4d751['destroy']();}['_updateController'](_0x4ccecc){if(!_0x4ccecc['isInContent']||!this['_suggestionToController']['has'](_0x4ccecc))return;const _0x17659b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x472174=this['_suggestionToController']['get'](_0x4ccecc),_0x11b67=_0x4ccecc['getAllAdjacentSuggestions']();_0x472174['view']['descriptionParts']=_0x17659b['descriptionFactory']['getDescriptions'](_0x11b67);}['destroy'](){for(const _0x84687f of this['_suggestionToController']['keys']())this['_destroyController'](_0x84687f);for(const _0x5a8849 of this['_annotationViews']['values']())_0x5a8849['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x5cfdf2){return'model'in _0x5cfdf2;}class Ve extends _0x5a00b1{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x281d46){this['editor']['plugins']['get'](d)['adapter']=_0x281d46;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xef56df){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xef56df);}['getSuggestions']({skipNotAttached:_0x49bcc9=!0x1,toJSON:_0x37c8b4=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x49bcc9,'toJSON':_0x37c8b4});}['getSuggestion'](_0x175b0c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x175b0c);}}const p=['Pagination'];class ce extends _0x5a00b1{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x221332=this['editor'];if(_0x221332['config']['define']('trackChangesData.editorCreator',_0x402d02=>{const _0x502019=_0x221332['model']['document']['getRootNames']()['reduce']((_0x2559bd,_0x3a521f)=>(_0x2559bd[_0x3a521f]='',_0x2559bd),{});return _0x221332['constructor']['create'](_0x502019,_0x402d02);}),'function'!=typeof _0x221332['config']['get']('trackChangesData')['editorCreator'])throw new _0xb683c3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15b08a){return P(this['editor'],!0x0,_0x15b08a);}['getDataWithDiscardedSuggestions'](_0x10a687){return P(this['editor'],!0x1,_0x10a687);}}class ze extends _0x5a00b1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d10ca){function _0x31a058(_0x4b23fd){return _0x4b23fd['map'](_0x5492f9=>String['fromCharCode'](_0x5492f9))['join']('');}super(_0x5d10ca),this['result']='end',_0x5d10ca[_0x31a058([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31a058([0x76,0x69,0x65,0x77])][_0x31a058([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31a058([0x61,0x75,0x74,0x6f]),_0x5d10ca[_0x31a058([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x31a058([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31a058([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x31a058([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x31a058([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 Ke(_0x5660e4){return void 0x0!==_0x5660e4['getRootsAttributes'];}async function P(_0x343286,_0x2f6e5c,_0x3c192f){const _0x345b5f=_0x3bc754(_0x343286,p);_0x345b5f['plugins']['push'](d,ze),_0x345b5f['rootsAttributes']=Ke(_0x343286)?_0x343286['getRootsAttributes']():void 0x0;const _0xe47dcb=document['createDocumentFragment'](),_0x41998e=_0x343286['config']['get']('trackChangesData')['editorCreator'],_0x586a4b=await _0x41998e(_0x345b5f,()=>function(_0x335bd4){const _0xd14f01=document['createElement']('div');return _0x335bd4['appendChild'](_0xd14f01),_0xd14f01;}(_0xe47dcb));!function(_0x36364b,_0x4313fc){const _0x33e040=_0x36364b['model']['document']['getRootNames']()['reduce']((_0x49fb55,_0xc198c7)=>(_0x49fb55[_0xc198c7]=_0x36364b['data']['get']({'rootName':_0xc198c7}),_0x49fb55),{}),_0x2ee3e2=_0x36364b['plugins']['get']('Users')['users']['map'](_0x8fbd65=>({'id':_0x8fbd65['id'],'name':_0x8fbd65['name']})),_0x399e14=_0x36364b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x194df2=_0x36364b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5f078b=_0x4313fc['plugins']['get']('Users'),_0x5c5764=_0x4313fc['plugins']['get']('TrackChangesEditing'),_0xb57e9e=_0x4313fc['plugins']['get']('CommentsRepository');for(const _0x69cc26 of _0xb57e9e['getCommentThreads']())_0x69cc26['remove']();for(const _0x3dc8a6 of _0x2ee3e2)_0x5f078b['getUser'](_0x3dc8a6['id'])||_0x5f078b['addUser'](_0x3dc8a6);_0x5f078b['me']||_0x5f078b['useAnonymousUser']();for(const _0xf42388 of _0x194df2)_0xb57e9e['addCommentThread'](_0xf42388);for(const _0x49498b of _0x399e14)_0x5c5764['addSuggestionData'](_0x49498b);_0x4313fc['data']['set'](_0x33e040);}(_0x343286,_0x586a4b),_0x586a4b['execute'](_0x2f6e5c?'acceptAllSuggestions':'discardAllSuggestions');const _0x2083f1=Ke(_0x586a4b)?_0x586a4b['getFullData'](_0x3c192f):_0x586a4b['data']['get'](_0x3c192f);return await _0x586a4b['destroy'](),_0x2083f1;}class _e extends _0x188aaa{['options'];constructor(_0x55b66c,_0x256d3c){super(_0x55b66c),this['options']=_0x256d3c,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'](_0xe21dd4,_0x5b961d){if(!this['element'])return;const _0xb6b789=[];for(const [_0x1acc89,_0x46a110]of _0xe21dd4){const _0x1e0b50=document['createElement']('div');_0x1e0b50['setAttribute']('data-ck-root-name',_0x1acc89),_0x1e0b50['className']=_0x46a110['classes']+'\x20ck-track-changes-preview__root-container',_0x1e0b50['innerHTML']=_0x46a110['content'],_0xb6b789['push'](_0x1e0b50);}_0x5b961d(this['element'],_0xb6b789),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x5402ef{constructor(_0x4d9d05){super(_0x4d9d05),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x34b475=this['editor'],_0x314ab8=_0x34b475['locale'],_0x49f42b=_0x34b475['plugins']['get']('Dialog');let _0x3e0ea8;const _0x164933=function(_0x35c687){const _0x5d0182={};if('editables'in _0x35c687['ui']['view']){for(const [_0x22d986,_0x310faa]of Object['entries'](_0x35c687['ui']['view']['editables']))_0x5d0182[_0x22d986]=_0x310faa['element'];}else _0x5d0182[_0x35c687['model']['document']['getRootNames']()[0x0]]=_0x35c687['ui']['view']['editable']['element'];return _0x5d0182;}(_0x34b475),_0x4b4ecb=function(_0xfd1b8){let _0x3615fa=0x0;for(const _0x382a49 of Object['values'](_0xfd1b8))_0x3615fa=Math['max'](_0x3615fa,_0x382a49['getBoundingClientRect']()['width']);let _0xa7757c=0x0;for(const _0x2f0fa5 of Object['values'](_0xfd1b8))_0xa7757c+=_0x2f0fa5['getBoundingClientRect']()['height'];const _0x221b43=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5d63e9=Math['min'](_0xa7757c,_0x221b43);return{'width':_0x3615fa,'height':_0x5d63e9};}(_0x164933);_0x49f42b['show']({'id':'finalContentPreview','title':o(_0x314ab8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x314ab8,{'dialogRects':_0x4b4ecb}),'onHide':()=>{_0x3e0ea8['detachFromDom']();},'onShow':()=>{_0x34b475['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xe2a1a4=>{const _0x37be13=this['_standarizeRootsData'](_0xe2a1a4,_0x34b475,_0x164933);_0x49f42b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x37be13,_0x34b475['config']['get']('trackChanges.preview.renderFunction'));}),_0x3e0ea8=new _0x33b8ef(_0x314ab8,[_0x49f42b['view']]),_0x3e0ea8['attachToDom'](),_0x3e0ea8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x34b475['once']('destroy',()=>{_0x3e0ea8['detachFromDom']();});const _0x415dc7=_0x49f42b['view']['headerView']['class'];_0x49f42b['view']['headerView']['class']=_0x415dc7?_0x415dc7+'\x20ck-reset_all':'ck-reset_all',_0x49f42b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x49f42b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4d1766=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x658f46=_0x4d1766['previewMode'],_0x39bf2b={};if('$labels'===_0x658f46){for(const _0x36b661 of _0x4d1766['getMergeFieldsIds']())_0x39bf2b[_0x36b661]=_0x4d1766['getLabel'](_0x36b661)||_0x36b661;}else{const _0xc0ff03='$defaultValues'===_0x658f46?_0x4d1766['getDefaultValues']():_0x4d1766['getDataSetValues'](_0x658f46,!0x0);for(const _0xe83640 of Object['entries'](_0xc0ff03)){const [_0x40dbaa,_0x3c430e]=_0xe83640;_0x39bf2b[_0x40dbaa]=null!==_0x3c430e?_0x3c430e:_0x4d1766['getLabel'](_0x40dbaa)||_0x40dbaa;}}return{'mergeFieldsData':_0x39bf2b};}['_standarizeRootsData'](_0x5981c3,_0x915640,_0x22b360){let _0x4fadd1;if('string'==typeof _0x5981c3){const _0x3c7f51=_0x915640['model']['document']['getRootNames']()[0x0];_0x4fadd1={[_0x3c7f51]:_0x5981c3};}else _0x4fadd1=_0x5981c3;const _0x36eb0d=this['_fixMediaEmbeds'](_0x4fadd1,_0x915640),_0x279572=function(_0x56bc09,_0xf2fbef){for(const [_0x1369db,_0x2f8526]of _0x56bc09)_0x2f8526['classes']=_0xf2fbef[_0x1369db]['classList']['value']['replace']('ck-focused','');return _0x56bc09;}(this['_sortRoots'](_0x915640)['reduce']((_0x94da9a,_0x29a4e0)=>(_0x94da9a['push']([_0x29a4e0,{'content':_0x36eb0d[_0x29a4e0],'classes':''}]),_0x94da9a),[]),_0x22b360);return _0x279572;}['_fixMediaEmbeds'](_0x1c11f9,_0x3d556b){if(!_0x3d556b['plugins']['has']('MediaEmbedEditing'))return _0x1c11f9;const _0x3328f4=_0x3d556b['plugins']['get']('MediaEmbedEditing');for(const [_0x1cc09b,_0x5d0d47]of Object['entries'](_0x1c11f9)){const _0x38063a=document['createElement']('div');_0x38063a['innerHTML']=_0x5d0d47,(_0x38063a['querySelectorAll']('figure.media')['forEach'](_0x2e3443=>{const _0x1a307c=_0x2e3443['querySelector']('oembed');if(_0x1a307c){const _0x5136f1=_0x1a307c['getAttribute']('url');if(_0x5136f1){const _0x3a73fc=_0x3328f4['registry']['getMediaViewElement'](new _0x3c9855(_0x3d556b['editing']['view']['document']),_0x5136f1,{'elementName':'','renderForEditingView':!0x0}),_0x3a62a0=document['createElement']('div');_0x3a62a0['classList']['add']('ck-media__wrapper'),_0x3a73fc['render'](_0x3a62a0,_0x3d556b['editing']['view']['domConverter']),_0x1a307c['replaceWith'](_0x3a62a0);}}}),_0x1c11f9[_0x1cc09b]=_0x38063a['innerHTML']);}return _0x1c11f9;}['_sortRoots'](_0x57e1c8){if(!function(_0x57b2d3){return void 0x0!==_0x57b2d3['getRootsAttributes'];}(_0x57e1c8))return _0x57e1c8['model']['document']['getRootNames']();const _0x3ed47b=[],_0x247078=new Map();for(const _0x25726a of _0x57e1c8['model']['document']['getRootNames']()){const _0x192e9a=_0x57e1c8['editing']['view']['getDomRoot'](_0x25726a)['getClientRects']()['item'](0x0);_0x3ed47b['push'](_0x25726a),_0x247078['set'](_0x25726a,_0x192e9a);}return _0x3ed47b['sort']((_0x44948,_0x430f13)=>{const _0x1f8827=_0x247078['get'](_0x44948),_0x498a23=_0x247078['get'](_0x430f13);return _0x1f8827['y']-_0x498a23['y']||_0x1f8827['x']-_0x498a23['x'];}),_0x3ed47b;}}class Xe extends _0x5a00b1{static get['requires'](){return[ce,_0x3c17a0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2af769){super(_0x2af769),_0x2af769['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x2af769['config']['define']('trackChanges.preview.renderFunction',(_0x53e8af,_0x5dadb6)=>{for(const _0x2aed6f of _0x5dadb6)_0x53e8af['appendChild'](_0x2aed6f);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
|