@ckeditor/ckeditor5-track-changes 46.0.0-alpha.3 → 46.0.0-alpha.4
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/lang/contexts.json +16 -0
- 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
|
-
_0x4e3dd6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b7fb5,_0x2acecc){super(),this['id']=_0x2acecc['id'],this['type']=_0x2acecc['type'],this['subType']=_0x2acecc['subType']||null,this['author']=_0x2acecc['author'],this['creator']=_0x2acecc['creator']||_0x2acecc['author'],this['isExternal']=Boolean(_0x2acecc['attributes']&&_0x2acecc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2acecc['originalSuggestionId']||null,this['_model']=_0x3b7fb5,this['_onAccept']=_0x2acecc['onAccept'],this['_onDiscard']=_0x2acecc['onDiscard'],this['_onAttributesChange']=_0x2acecc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2acecc['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 _0x11664a=this;for(;_0x11664a['previous'];)_0x11664a=_0x11664a['previous'];return _0x11664a;}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'](_0x59b89b){this['_markerNames']['add'](_0x59b89b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a4848=>this['_model']['markers']['get'](_0x3a4848))['filter'](_0x43fe05=>_0x43fe05);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x252146=>{for(const _0x2762a8 of this['getMarkers']())_0x252146['removeMarker'](_0x2762a8);}),this['_markerNames']['clear']();}['removeMarker'](_0xa5f1e4){this['_model']['change'](_0x1fc1f6=>{_0x1fc1f6['removeMarker'](_0xa5f1e4);}),this['_markerNames']['delete'](_0xa5f1e4);}['addRange'](_0x531799){const _0x303043='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x303043),this['_model']['change'](_0x5de55b=>{_0x5de55b['addMarker'](_0x303043,{'range':_0x531799,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38a789){for(const _0xbd010c of this['getRanges']())if(_0xbd010c['isIntersecting'](_0x38a789))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3c2548=>_0x3c2548['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x254cb0,_0xf2bcdd)=>[..._0x254cb0,..._0xf2bcdd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3c1f59=this['getRanges']();if(0x1!=_0x3c1f59['length'])return null;const _0x22fe15=_0x3c1f59[0x0],_0x4dc6c5=_0x22fe15['start']['nodeAfter'],_0x61c2f2=_0x22fe15['end']['nodeBefore'];return _0x4dc6c5 instanceof _0x565d99?_0x4dc6c5!=_0x61c2f2?null:_0x4dc6c5: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 _0x1b71de=[];let _0x16ac99=this['head'];for(;_0x16ac99;)_0x1b71de['push'](_0x16ac99),_0x16ac99=_0x16ac99['next'];return _0x1b71de;}['setAttribute'](_0xbef5ef,_0x2714af){const _0x317e38=_0x200dfc(this['attributes']);_0x15027b(_0x317e38,_0xbef5ef,_0x2714af),_0x5eb148(_0x317e38,this['attributes'])||(this['attributes']=_0x317e38,this['_onAttributesChange'](_0x317e38));}['removeAttribute'](_0x2e2a29){const _0x1e7c24=_0x200dfc(this['attributes']);_0x24701b(_0x1e7c24,_0x2e2a29),_0x5eb148(_0x1e7c24,this['attributes'])||(this['attributes']=_0x1e7c24,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 _0x2e07c2()['substr'](0x1,0x5);}}function o(_0x41313b,_0x2f8cbf,_0x42e3b0){const _0x36a08e=_0x41313b['t'],t=_0x41313b['t'];switch(_0x2f8cbf){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',_0x42e3b0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x42e3b0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x42e3b0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x42e3b0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x42e3b0);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',_0x42e3b0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x42e3b0);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',_0x42e3b0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x42e3b0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x42e3b0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x42e3b0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x42e3b0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x42e3b0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x42e3b0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x42e3b0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x42e3b0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x42e3b0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x42e3b0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x42e3b0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x42e3b0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x42e3b0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x42e3b0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x42e3b0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x42e3b0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x42e3b0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x42e3b0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x42e3b0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x42e3b0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x42e3b0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x42e3b0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x42e3b0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x42e3b0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x42e3b0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x42e3b0);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'},_0x42e3b0);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x42e3b0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x42e3b0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x42e3b0);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 _0x36a08e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x42e3b0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x36a08e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x42e3b0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x42e3b0);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'},_0x42e3b0);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'},_0x42e3b0);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'},_0x42e3b0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2f8cbf;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xd4354d,_0x18af46){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xd4354d,this['_locale']=_0x18af46;}['getDescriptions'](_0x31b650){const _0x2cffb4=[],_0x46f79a=new Set(),_0x53256d=new Set();for(let _0x49bf55=0x0;_0x49bf55<_0x31b650['length'];_0x49bf55++){const _0x13cced=_0x31b650[_0x49bf55];if(!_0x13cced['isInContent'])continue;const _0x21e3c0=this['_handleCustomCallbackDescription'](_0x13cced);if(_0x21e3c0){if(null!=_0x13cced['subType']){if(_0x46f79a['has'](_0x13cced['subType']))continue;_0x46f79a['add'](_0x13cced['subType']);}_0x2cffb4['push'](_0x21e3c0);}else{if('attribute'==_0x13cced['type']){const _0x281e96=_0x13cced['data']['key'];if(_0x53256d['has'](_0x281e96))continue;_0x53256d['add'](_0x13cced['data']['key']),_0x281e96==m?this['_handleRenameSuggestionDescription'](_0x2cffb4,_0x13cced):this['_handleAttributeSuggestionDescription'](_0x2cffb4,_0x13cced);continue;}'insertion'!=_0x13cced['type']&&'deletion'!=_0x13cced['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cffb4,_0x13cced,_0x31b650[_0x49bf55+0x1]);}}return this['_resolveDescriptionItems'](_0x2cffb4);}['registerDescriptionCallback'](_0x22eebb){this['_customCallbacks']['push'](_0x22eebb);}['registerElementLabel'](_0x1fac73,_0x544d15,_0x4195af=_0x5a860b['normal']){'function'==typeof _0x1fac73?_0x3da967(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1fac73,'label':_0x544d15,'priority':_0x4195af}):this['_itemLabels']['set'](_0x1fac73,_0x544d15);}['registerAttributeLabel'](_0x2452f6,_0x3934f3){this['_attributeLabels']['set'](_0x2452f6,_0x3934f3);}['getItemLabel'](_0x3875fe,_0x47b001=0x1){let _0xc635e1;for(const _0x264662 of this['_itemLabelsCallbacks'])if(_0x264662['matchingCallback'](_0x3875fe)){_0xc635e1=_0x264662['label'];break;}return _0xc635e1||(_0xc635e1=this['_itemLabels']['get'](_0x3875fe['name'])),_0xc635e1?_0xc635e1(_0x47b001):0x1!==_0x47b001?_0x47b001+'\x20'+_0x3875fe['name']+'s':''+_0x3875fe['name'];}['_addDescriptionItems'](_0x1928a3,_0x267115){const _0x24b997=_0x267115['getFirstRange']()['getWalker'](),_0x2cd166='insertion'==_0x267115['type']?'add':'remove';for(const _0x539bb5 of _0x24b997){const _0x20e792=_0x539bb5['item'],_0x45d5f9=_0x1928a3[_0x1928a3['length']-0x1];if(_0x20e792['is']('$textProxy'))_0x45d5f9&&_0x45d5f9['type']['indexOf']('Container')>-0x1&&_0x1928a3['pop'](),_0x45d5f9&&'text'==_0x45d5f9['type']?_0x45d5f9[_0x2cd166]+=_0x20e792['data']:_0x1928a3['push']({'type':'text','add':'add'==_0x2cd166?_0x20e792['data']:'','remove':'remove'==_0x2cd166?_0x20e792['data']:''});else{if(this['_schema']['isObject'](_0x20e792)){const _0x4e74a5=_0x20e792;if(_0x45d5f9&&_0x45d5f9['type']['indexOf']('Container')>-0x1&&_0x1928a3['pop'](),'elementEnd'==_0x539bb5['type'])continue;_0x45d5f9&&_0x45d5f9['type']==_0x2cd166+'Object'&&_0x45d5f9['element']['name']==_0x4e74a5['name']?_0x45d5f9['quantity']++:_0x1928a3['push']({'type':_0x2cd166+'Object','element':_0x4e74a5,'quantity':0x1}),_0x24b997['skip'](_0x1ced44=>!('elementEnd'==_0x1ced44['type']&&_0x1ced44['item']==_0x20e792));}else{if(this['_schema']['checkChild'](_0x20e792,'$text')||_0x20e792['is']('element','softBreak')){const _0x1c4332=_0x20e792;if('add'==_0x2cd166&&'elementStart'==_0x539bb5['type']||'remove'==_0x2cd166&&'elementEnd'==_0x539bb5['type'])continue;if(_0x45d5f9&&-0x1==_0x45d5f9['type']['indexOf']('Container')){'text'==_0x45d5f9['type']&&(_0x45d5f9[_0x2cd166]+='\x0a');continue;}let _0x2d214e;if(_0x2d214e='add'==_0x2cd166?_0x1c4332['nextSibling']&&!this['_schema']['isObject'](_0x1c4332['nextSibling'])?_0x1c4332['nextSibling']:null:_0x1c4332['previousSibling']&&!this['_schema']['isObject'](_0x1c4332['previousSibling'])?_0x1c4332['previousSibling']:null,_0x1c4332['isEmpty']||_0x2d214e&&_0x2d214e['isEmpty']){const _0x4e8e2e=_0x2d214e&&_0x2d214e['isEmpty']?_0x2d214e:_0x1c4332;_0x45d5f9&&_0x45d5f9['type']==_0x2cd166+'EmptyContainer'&&_0x45d5f9['element']['name']==_0x4e8e2e['name']?_0x45d5f9['quantity']++:_0x1928a3['push']({'type':_0x2cd166+'EmptyContainer','element':_0x4e8e2e,'quantity':0x1});}else _0x1928a3['push']({'type':_0x2cd166+'Container','element':_0x1c4332});}}}}}['_resolveDescriptionItems'](_0x10c697){const _0x404748=this['_locale'],_0x21dc66=[],_0x624fa7=[],_0x30d4db=[];for(const _0x507f7b of _0x10c697)switch(_0x507f7b['type']){case'text':if(_0x507f7b['add']=_0x507f7b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x507f7b['remove']=_0x507f7b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x507f7b['add']&&''!=_0x507f7b['remove']){_0x21dc66['push']({'type':'replace','content':o(_0x404748,'REPLACE_TEXT',['\x22'+_0x507f7b['remove']+'\x22','\x22'+_0x507f7b['add']+'\x22'])});continue;}if(null!=_0x507f7b['add']['match'](/^ +$/)){_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Insert:*\x20%0',o(_0x404748,'ELEMENT_SPACE',_0x507f7b['add']['length']))});continue;}if(null!=_0x507f7b['remove']['match'](/^ +$/)){_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Remove:*\x20%0',o(_0x404748,'ELEMENT_SPACE',_0x507f7b['remove']['length']))});continue;}if(''!=_0x507f7b['add']){_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Insert:*\x20%0','\x22'+_0x507f7b['add']+'\x22')});continue;}_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Remove:*\x20%0','\x22'+_0x507f7b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Insert:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Remove:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'addContainer':_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Split:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'removeContainer':_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Merge:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'addFormat':_0x624fa7['push'](_0x507f7b['key']);continue;case'removeFormat':_0x30d4db['push'](_0x507f7b['key']);continue;default:_0x21dc66['push'](_0x507f7b);}if(_0x624fa7['length']){const _0x39c61b=_0x624fa7['map'](_0x5ac03c=>this['_attributeLabels']['has'](_0x5ac03c)?this['_attributeLabels']['get'](_0x5ac03c):_0x5ac03c)['join'](',\x20');_0x21dc66['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39c61b)});}if(_0x30d4db['length']){const _0xdd20cd=_0x30d4db['map'](_0x250cc5=>this['_attributeLabels']['has'](_0x250cc5)?this['_attributeLabels']['get'](_0x250cc5):_0x250cc5)['join'](',\x20');_0x21dc66['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xdd20cd)});}return _0x21dc66;}['_handleCustomCallbackDescription'](_0xd75318){for(const _0x928244 of this['_customCallbacks']){const _0x244ced=_0x928244(_0xd75318);if(_0x244ced&&'type'in _0x244ced)return _0x244ced;}}['_handleAttributeSuggestionDescription'](_0x2a61c3,_0x5f097c){const _0x591b9c=_0x5f097c['data'],_0x2234fe=void 0x0===_0x591b9c['newValue']?'removeFormat':'addFormat';_0x2a61c3['push']({'type':_0x2234fe,'key':_0x591b9c['key']});}['_handleRenameSuggestionDescription'](_0x4a0487,_0xddd2ac){_0x4a0487['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xddd2ac['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x17f3ba,_0x3017fd,_0x1dd9e4){if(this['_addDescriptionItems'](_0x17f3ba,_0x3017fd),_0x1dd9e4&&_0x1dd9e4['getFirstRange']()&&!_0x3017fd['getFirstRange']()['end']['isEqual'](_0x1dd9e4['getFirstRange']()['start'])){const _0x3ab138=_0x17f3ba[_0x17f3ba['length']-0x1],_0x29ed9b='insertion'==_0x3017fd['type']?'add':'remove';_0x3ab138&&'text'==_0x3ab138['type']&&(_0x3ab138[_0x29ed9b]+='\x0a');}}}class O extends _0x96746a{['afterInit'](){const _0x6d9fd9=this['editor'],_0x522070=_0x6d9fd9['plugins']['get']('TrackChangesEditing');_0x6d9fd9['commands']['get']('showAIAssistant')&&_0x522070['enableCommand']('showAIAssistant');}}class E extends _0x96746a{['afterInit'](){const _0x996f5f=this['editor'],_0x3769e1=_0x996f5f['locale'];if(!_0x996f5f['plugins']['has']('AlignmentEditing'))return;const _0xe3ca86=_0x996f5f['plugins']['get']('TrackChangesEditing');_0xe3ca86['enableDefaultAttributesIntegration']('alignment'),_0xe3ca86['registerBlockAttribute']('alignment'),_0xe3ca86['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3769e1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c6bfb=this['editor'],_0x487ca8=_0x4c6bfb['locale'];_0x4c6bfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c238a=>{if('formatBlock'!=_0x5c238a['type'])return;const {data:_0x14d098}=_0x5c238a;if(_0x14d098&&'alignment'==_0x14d098['commandName']){const _0xb60359=_0x14d098['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x487ca8,'*Format:*\x20%0',function(_0x3a4ecf){switch(_0x3a4ecf){case'left':return o(_0x487ca8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x487ca8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x487ca8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x487ca8,'FORMAT_JUSTIFY_TEXT');}}(_0xb60359))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x96746a{['afterInit'](){const _0x1da7f0=this['editor'],_0x5572c9=_0x1da7f0['plugins']['get']('TrackChangesEditing'),_0x59bd0c=_0x1da7f0['locale'];for(const _0x1eb15d of ti){if(!_0x1da7f0['plugins']['has'](_0x1eb15d))continue;const _0x494645=_0x1eb15d['slice'](0x0,-0x7)['toLowerCase'](),_0x1b38a2='FORMAT_'+_0x494645['toUpperCase']();_0x5572c9['enableDefaultAttributesIntegration'](_0x494645),_0x5572c9['registerInlineAttribute'](_0x494645),_0x5572c9['descriptionFactory']['registerAttributeLabel'](_0x494645,o(_0x59bd0c,_0x1b38a2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdc9fb6=this['editor'],_0x331f7c=_0xdc9fb6['locale'],_0x2ff644=_0xdc9fb6['plugins']['get']('TrackChangesEditing');function _0x33c7c8(_0x442437,_0x1ce93f){_0x2ff644['descriptionFactory']['registerDescriptionCallback'](_0x2cb599=>{if('formatInline'!=_0x2cb599['type'])return;const {data:_0x398696}=_0x2cb599;return _0x398696&&_0x398696['commandName']===_0x442437?_0x398696['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x331f7c,'*Format:*\x20%0',_0x1ce93f)}:{'type':'format','content':o(_0x331f7c,'*Remove\x20format:*\x20%0',_0x1ce93f)}:void 0x0;});}_0x33c7c8('bold',o(_0x331f7c,'FORMAT_BOLD')),_0x33c7c8('italic',o(_0x331f7c,'FORMAT_ITALIC')),_0x33c7c8('underline',o(_0x331f7c,'FORMAT_UNDERLINE')),_0x33c7c8('code',o(_0x331f7c,'FORMAT_CODE')),_0x33c7c8('strikethrough',o(_0x331f7c,'FORMAT_STRIKETHROUGH')),_0x33c7c8('subscript',o(_0x331f7c,'FORMAT_SUBSCRIPT')),_0x33c7c8('superscript',o(_0x331f7c,'FORMAT_SUPERSCRIPT'));}}class U extends _0x96746a{['afterInit'](){const _0x513383=this['editor'],_0x376702=_0x513383['locale'];if(!_0x513383['plugins']['has']('BlockQuoteEditing'))return;const _0x4ecc05=_0x513383['plugins']['get']('TrackChangesEditing'),_0x348293=this['editor']['commands']['get']('blockQuote');_0x4ecc05['enableCommand']('blockQuote',(_0x3d1040,_0x4ee29c={})=>{const _0x1f444c=this['editor']['model']['document']['selection'],_0x14a28c=_0x4ee29c&&void 0x0!==_0x4ee29c['forceValue']?_0x4ee29c['forceValue']:!_0x348293['value'];let _0x31b32d=[];if(_0x14a28c){const _0x2f64a7=Array['from'](_0x1f444c['getSelectedBlocks']())['filter'](_0x1959e2=>oo(_0x1959e2)||function(_0x2da8a3,_0x3ca2a2){const _0x1067e9=_0x3ca2a2['checkChild'](_0x2da8a3['parent'],'blockQuote'),_0x4a7bd2=_0x3ca2a2['checkChild'](['$root','blockQuote'],_0x2da8a3);return _0x1067e9&&_0x4a7bd2;}(_0x1959e2,this['editor']['model']['schema']));_0x31b32d=to(_0x2f64a7,_0x513383['model']);}else{const _0x4e2960=Array['from'](_0x1f444c['getSelectedBlocks']())['filter'](_0x352885=>oo(_0x352885));_0x31b32d=to(_0x4e2960,_0x513383['model']);}_0x513383['model']['change'](()=>{for(const _0x243209 of _0x31b32d)_0x4ecc05['markBlockFormat'](_0x243209,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14a28c}]});});}),_0x4ecc05['descriptionFactory']['registerDescriptionCallback'](_0x3569ed=>{const {data:_0x5a2343}=_0x3569ed;if(_0x5a2343&&'blockQuote'==_0x5a2343['commandName']){const _0x36ce23=o(_0x376702,'ELEMENT_BLOCK_QUOTE');return _0x5a2343['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x376702,'*Set\x20format:*\x20%0',_0x36ce23)}:{'type':'format','content':o(_0x376702,'*Remove\x20format:*\x20%0',_0x36ce23)};}});}}function oo(_0x5ddf87){return'blockQuote'==_0x5ddf87['parent']['name'];}class V extends _0x96746a{['afterInit'](){const _0x411096=this['editor'],_0x1d0847=_0x411096['locale'],_0x4c4631=_0x411096['plugins']['get']('TrackChangesEditing');_0x411096['plugins']['has']('BookmarkEditing')&&(_0x4c4631['enableCommand']('insertBookmark'),_0x4c4631['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c4631['registerBlockAttribute']('bookmarkId'),_0x4c4631['descriptionFactory']['registerDescriptionCallback'](_0x29b558=>{if('insertion'!=_0x29b558['type']&&'deletion'!=_0x29b558['type']&&'attribute'!=_0x29b558['type'])return;const _0x45ee10=_0x29b558['getContainedElement']();if(null==_0x45ee10)return;if(!_0x45ee10['is']('element','bookmark'))return;const _0x5ad1d2=_0x45ee10['getAttribute']('bookmarkId');if('insertion'==_0x29b558['type'])return{'type':'insertion','content':o(_0x1d0847,'*Insert:*\x20%0','\x22'+_0x5ad1d2+'\x22\x20'+o(_0x1d0847,'ELEMENT_BOOKMARK'))};if('deletion'==_0x29b558['type'])return{'type':'deletion','content':o(_0x1d0847,'*Remove:*\x20%0','\x22'+_0x5ad1d2+'\x22\x20'+o(_0x1d0847,'ELEMENT_BOOKMARK'))};const {data:_0x3b0422}=_0x29b558;if(!_0x3b0422||'bookmarkId'!=_0x3b0422['key'])return;return{'type':'format','content':o(_0x1d0847,'*Set\x20bookmark:*\x20%0','\x22'+_0x3b0422['newValue']+'\x22')};}));}}class F extends _0x96746a{['afterInit'](){const _0x2738a7=this['editor'];_0x2738a7['plugins']['has']('CaseChange')&&(_0x2738a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2738a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2738a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x96746a{['afterInit'](){const _0x4c4602=this['editor'];_0x4c4602['commands']['get']('ckbox')&&_0x4c4602['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x96746a{['afterInit'](){const _0x3e5299=this['editor'];if(!_0x3e5299['plugins']['has']('CodeBlock'))return;const _0x2a4033=_0x3e5299['plugins']['get']('TrackChangesEditing'),_0x5261c2=_0x3e5299['locale'],_0xc70a98=_0x3e5299['config']['get']('codeBlock')['languages'],_0x3ea332=_0x3e5299['commands']['get']('codeBlock');_0x2a4033['enableCommand']('indentCodeBlock'),_0x2a4033['enableCommand']('outdentCodeBlock'),_0x2a4033['enableCommand']('codeBlock',(_0x25fe65,_0x57e10a={})=>{const _0x597602=_0x3e5299['model'],_0x5db262=_0x3e5299['model']['document']['selection'],_0x11c99c=_0x57e10a&&void 0x0!==_0x57e10a['forceValue']?_0x57e10a['forceValue']:!_0x3ea332['value'];let _0x20eed3;_0x57e10a['language']||(_0x57e10a['language']=_0xc70a98[0x0]['language']),_0x20eed3=_0x11c99c?Array['from'](_0x5db262['getSelectedBlocks']())['filter'](_0x2ef039=>co(_0x2ef039)||function(_0xbfce27,_0x3cad6c){if(_0xbfce27['is']('rootElement')||_0x3cad6c['isLimit'](_0xbfce27))return!0x1;return _0x3cad6c['checkChild'](_0xbfce27['parent'],'codeBlock');}(_0x2ef039,_0x597602['schema'])):Array['from'](_0x5db262['getSelectedBlocks']())['filter'](_0x3bc65c=>co(_0x3bc65c));const _0x164ea7=to(_0x20eed3,_0x597602);_0x597602['change'](()=>{for(const _0x176f85 of _0x164ea7)_0x2a4033['markBlockFormat'](_0x176f85,{'commandName':'codeBlock','commandParams':[{..._0x57e10a,'forceValue':_0x11c99c}],'formatGroupId':'blockName'});});}),(_0x2a4033['descriptionFactory']['registerElementLabel']('codeBlock',_0x54409f=>o(_0x5261c2,'ELEMENT_CODE_BLOCK',_0x54409f)),_0x2a4033['descriptionFactory']['registerDescriptionCallback'](_0x51e259=>{if('formatBlock'!=_0x51e259['type'])return;const _0x1263a2=_0x5261c2['t'],{data:_0x31c67b}=_0x51e259;if(!_0x31c67b||'codeBlock'!=_0x31c67b['commandName'])return;const _0x59f65b=_0x31c67b['commandParams'][0x0]['language'],_0x543004=_0x1263a2(_0xc70a98['find'](_0x2db854=>_0x2db854['language']===_0x59f65b)['label'])['toLowerCase']();return _0x31c67b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5261c2,'*Set\x20format:*\x20%0',o(_0x5261c2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x543004+')')}:{'type':'format','content':o(_0x5261c2,'*Remove\x20format:*\x20%0',o(_0x5261c2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3d1384){return'codeBlock'==_0x3d1384['name'];}class J extends _0x96746a{['afterInit'](){const _0x50dba5=this['editor'];if(!_0x50dba5['plugins']['has']('CommentsEditing'))return;_0x50dba5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x46b8f7,_0x2cd84a,_0x54df8f){const _0x397b21=[];for(const _0x28cdcd of _0x2cd84a['getItems']())_0x28cdcd['hasAttribute'](_0x46b8f7)&&_0x397b21['push'](_0x54df8f['createRangeOn'](_0x28cdcd));return _0x397b21;}function De(_0xd36e1d,_0x249c0e,{showActiveMarker:_0x14737d=!0x0}={}){const _0x7d4fb=_0xd36e1d['plugins']['get']('TrackChangesEditing');return(_0x796316,_0x230190,_0x28adc3)=>{if(!_0x28adc3['consumable']['test'](_0x230190['markerRange'],_0x796316['name']))return;const _0x3b1f6d=_0x230190['markerRange']['getWalker'](),_0x41b7a7=_0x230190['markerRange']['start'],_0x3bb35d=_0xd36e1d['model']['schema'];let _0x44fa52=null,_0x5129fa=null,_0x33883d=!0x1,_0x4aa267=!0x1;for(const _0x4265a0 of _0x3b1f6d){const _0x18c122=_0x4265a0['item'];_0x33883d=_0x33883d||_0x3bb35d['isContent'](_0x18c122);const _0x4a3d52=_0x28adc3['mapper']['toViewElement'](_0x18c122);if(_0x4a3d52&&_0x4a3d52['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4265a0['type']&&(_0x3bb35d['isBlock'](_0x18c122)&&!_0x3bb35d['isLimit'](_0x18c122)&&(_0x18c122['nextSibling']||_0x41b7a7['isAtEnd']?_0x44fa52&&_0x44fa52['parent']==_0x18c122||(_0x44fa52=_0x18c122,_0x503b6f(_0x4265a0['previousPosition']),_0x4aa267=!0x0):_0x5129fa=_0x5129fa||_0x4265a0['previousPosition']));}function _0x503b6f(_0xbeb309){const {id:_0x14ea01,authorId:_0x164855}=_0x7d4fb['_splitMarkerName'](_0x230190['markerName']),_0x4acc46=_0x28adc3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x249c0e,'data-suggestion':_0x14ea01,'data-author-id':_0x164855}),_0x22bd36=_0x28adc3['mapper']['toViewPosition'](_0xbeb309);_0x14737d&&_0x7d4fb['activeMarkers']['includes'](_0x230190['markerName'])&&_0x28adc3['writer']['addClass']('ck-suggestion-marker--active',_0x4acc46),_0x28adc3['writer']['insert'](_0x22bd36,_0x4acc46),_0x28adc3['mapper']['bindElementToMarker'](_0x4acc46,_0x230190['markerName']);}_0x33883d||_0x4aa267||!_0x5129fa||_0x503b6f(_0x5129fa);};}class K extends _0x96746a{static get['requires'](){return[_0x22d575];}['init'](){const _0x1cbea7=this['editor'],_0x107dde=_0x1cbea7['plugins']['get']('TrackChangesEditing');_0x107dde['enableCommand']('delete');const _0x5e7425=_0x1cbea7['commands']['get']('deleteForward');_0x107dde['enableCommand']('deleteForward',(_0x4962ac,_0x154181={})=>{const _0x3a3d55=_0x1cbea7['model']['createSelection'](_0x1cbea7['model']['document']['selection']);_0x3a3d55['isCollapsed']&&_0x1cbea7['model']['modifySelection'](_0x3a3d55,{'direction':'forward','unit':_0x154181['unit']});const _0x16d52b=_0x3a3d55['getFirstRange'](),_0x25f7d0=_0x25dfb1['fromRange'](_0x16d52b);let _0x68bc47;_0x4962ac(_0x154181),_0x68bc47='$graveyard'==_0x25f7d0['root']['rootName']?_0x1cbea7['model']['createRange'](_0x16d52b['start']):_0x1cbea7['model']['createRange'](_0x25f7d0['start'],_0x25f7d0['end']),_0x25f7d0['detach'](),_0x1cbea7['model']['enqueueChange'](_0x5e7425['buffer']['batch'],_0x5d8506=>{_0x5e7425['buffer']['lock'](),_0x5d8506['setSelection'](_0x5d8506['createRange'](_0x68bc47['end'])),_0x5e7425['buffer']['unlock']();});}),_0x1cbea7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1cbea7,'merge'),{'priority':'high'}),_0x1cbea7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51dbb0,_0x1105db,_0x36a4c1)=>{_0x36a4c1['options']['showSuggestionHighlights']&&De(_0x1cbea7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51dbb0,_0x1105db,_0x36a4c1);},{'priority':'high'}),_0x1cbea7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33ff96,_0x58e331,_0x302ab3)=>{const _0x13d253=_0x302ab3['mapper']['markerNameToElements'](_0x58e331['markerName']);if(_0x13d253){for(const _0x13c274 of _0x13d253)_0x13c274['is']('uiElement')&&(_0x302ab3['mapper']['unbindElementFromMarkerName'](_0x13c274,_0x58e331['markerName']),_0x302ab3['writer']['remove'](_0x13c274));}},{'priority':'high'});}}class H extends _0x96746a{['afterInit'](){const _0xfd2c91=this['editor'];if(!_0xfd2c91['plugins']['has']('ListEditing'))return;const _0x192b69=_0xfd2c91['locale'],_0x5297d3=_0xfd2c91['plugins']['get']('TrackChangesEditing'),_0x410fa0=_0xfd2c91['plugins']['has']('TodoListEditing'),_0x4d0c48=!!_0xfd2c91['config']['get']('list.multiBlock');function _0x15fbd2(_0x1bea83){return{'type':'format','content':''+o(_0x192b69,'*Set\x20format:*\x20%0',_0x1bea83)};}function _0xc6107(_0x4f183a){return{'type':'format','content':''+o(_0x192b69,'*Remove\x20format:*\x20%0',_0x4f183a)};}_0x5297d3['enableDefaultAttributesIntegration']('numberedList'),_0x5297d3['enableDefaultAttributesIntegration']('bulletedList'),_0x5297d3['enableDefaultAttributesIntegration']('customNumberedList'),_0x5297d3['enableDefaultAttributesIntegration']('customBulletedList'),_0x5297d3['enableDefaultAttributesIntegration']('indentList'),_0x5297d3['enableDefaultAttributesIntegration']('outdentList'),_0x5297d3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5297d3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5297d3['registerBlockAttribute']('listItemId'),_0x5297d3['registerBlockAttribute']('listType'),_0x5297d3['registerBlockAttribute']('listIndent'),_0x4d0c48&&(_0x5297d3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5297d3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x410fa0&&(_0x5297d3['enableDefaultAttributesIntegration']('todoList'),_0x5297d3['enableDefaultAttributesIntegration']('checkTodoList'),_0x5297d3['registerBlockAttribute']('todoListChecked'),_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x4115c1=>{const {data:_0x53a5b1}=_0x4115c1;if(_0x53a5b1&&'todoListChecked'==_0x53a5b1['key'])return{'type':'format','content':_0x53a5b1['newValue']?o(_0x192b69,'*Check\x20item*'):o(_0x192b69,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2596e7=>{if(_0x2596e7['batch']['isUndo'])return!0x1;let _0x4f098c=!0x1;const _0x3aac32=_0x5297d3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x378e7f=>'todoListChecked'===_0x5297d3['_getAttributeKey'](_0x378e7f));for(const _0x21eac1 of _0x3aac32){'todo'!=_0x21eac1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5297d3['_findSuggestions'](_0x21eac1['getFirstRange'](),'attribute')['find'](_0x4742d1=>'listType'===_0x5297d3['_getAttributeKey'](_0x4742d1['suggestion']))||(_0x2596e7['removeMarker'](_0x21eac1['getFirstMarker']()),_0x4f098c=!0x0));}return _0x4f098c;})),_0x5297d3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x192b69,'FORMAT_INDENT'));const _0x34bebf={'type':'format','content':''};_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x61c7bb=>{const {data:_0x433b71}=_0x61c7bb;if(!_0x433b71||'listType'!=_0x433b71['key'])return;let _0x439389=_0x61c7bb['head'];for(;_0x439389;){if(_0x439389['data']&&(('listStyle'==_0x439389['data']['key']||'listMarkerStyle'==_0x439389['data']['key'])&&(_0x439389['data']['newValue']&&'default'!=_0x439389['data']['newValue']||'default'!=_0x439389['data']['oldValue']&&!_0x433b71['newValue'])||!_0x4d0c48&&_0x439389['data']['key']==m))return _0x34bebf;_0x439389=_0x439389['next'];}if(null==_0x433b71['newValue'])switch(_0x433b71['oldValue']){case'bulleted':return _0xc6107(o(_0x192b69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc6107(o(_0x192b69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc6107(o(_0x192b69,'ELEMENT_TODO_LIST'));}switch(_0x433b71['newValue']){case'bulleted':return _0x15fbd2(o(_0x192b69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15fbd2(o(_0x192b69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15fbd2(o(_0x192b69,'ELEMENT_TODO_LIST'));}}),_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x4b22d1=>{const {data:_0x1120a6}=_0x4b22d1;if(_0x1120a6&&'listIndent'==_0x1120a6['key'])return null==_0x1120a6['newValue']||null==_0x1120a6['oldValue']&&0x0==_0x1120a6['newValue']?_0x34bebf:void 0x0;}),_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x16bc11=>{if('attribute'!=_0x16bc11['type'])return;const {data:_0x13c13f}=_0x16bc11;if(!_0x13c13f||'listItemId'!=_0x13c13f['key'])return;const _0x420615=Te(_0x16bc11);return'newValue'==_0x420615?{'type':'format','content':o(_0x192b69,'*Merge:*\x20list\x20item')}:'oldValue'==_0x420615?{'type':'format','content':o(_0x192b69,'*Split:*\x20list\x20item')}:_0x34bebf;}),_0xfd2c91['model']['document']['registerPostFixer'](_0x1305ba=>this['listItemIdFixer'](_0x1305ba)),_0xfd2c91['model']['document']['registerPostFixer'](_0x870e9d=>this['noTrackChangesFixer'](_0x870e9d)),_0xfd2c91['model']['document']['on']('change:data',(_0x2bbde3,_0x433b66)=>{if(_0x433b66['isUndo']||!_0x433b66['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2dc7fc){if(_0x2dc7fc['batch']['isUndo']||!_0x2dc7fc['batch']['isLocal'])return!0x1;let _0xdaef35=!0x1;const _0x2acafe=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5690df=>_0x5690df['data']&&'listItemId'==_0x5690df['data']['key'])['filter'](_0xbf4d85=>_0xbf4d85['data']['newValue']&&_0xbf4d85['data']['oldValue']);for(const _0x18210b of _0x2acafe)Te(_0x18210b)||(_0x2dc7fc['removeMarker'](_0x18210b['getFirstMarker']()),_0xdaef35=!0x0);return _0xdaef35;}['noTrackChangesFixer'](_0x311c5b){if(_0x311c5b['batch']['isUndo']||!_0x311c5b['batch']['isLocal'])return!0x1;const _0xa4e508=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xa4e508['trackChangesCommand']['value'])return!0x1;let _0x406c25=!0x1;const _0x447c6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4fdbaa=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5387cf=>'attribute'==_0x5387cf['type'])['filter'](_0x5ce8e5=>_0x447c6d['includes'](_0x5ce8e5['attributeKey']));if(0x0==_0x4fdbaa['length'])return _0x406c25;for(const _0x586889 of _0x4fdbaa){const _0x4f801b=_0xa4e508['_findSuggestions'](_0x586889['range'],'attribute')['filter'](_0x3550c7=>!_0x3550c7['meta']['isNextTo'])['map'](_0x1b2249=>_0x1b2249['suggestion'])['filter'](_0x3372f9=>{const _0x49c83=_0xa4e508['_getAttributeKey'](_0x3372f9);return _0x447c6d['includes'](_0x49c83);});if(_0x4f801b['length']){for(const _0x32745e of _0x4f801b)_0x311c5b['removeMarker'](_0x32745e['getFirstMarker']());_0x406c25=!0x0;}}return _0x406c25;}['assureChains'](){const _0x520baa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f79c1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x38824a;const _0x108a46=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x390702=>{if(_0x390702['data']['oldRange']||!_0x390702['data']['newRange'])return null;if(!_0x390702['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3210ed}=_0x520baa['_splitMarkerName'](_0x390702['name']);if(!_0x520baa['hasSuggestion'](_0x3210ed))return null;const _0x5ee3c3=_0x520baa['getSuggestion'](_0x3210ed);return _0x2f79c1['includes'](_0x5ee3c3['data']['key']);})['map'](_0x53fcb0=>{const {id:_0x5456be}=_0x520baa['_splitMarkerName'](_0x53fcb0['name']),_0x4768bf=_0x520baa['getSuggestion'](_0x5456be);return _0x38824a=_0x4768bf['attributes']['groupId'],_0x4768bf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x108a46['size'])return;const _0x5db9f5=_0x520baa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d6d54=>'attribute'==_0x4d6d54['type']&&_0x4d6d54['data']&&_0x2f79c1['includes'](_0x4d6d54['data']['key'])&&_0x4d6d54['attributes']['groupId']!=_0x38824a)['map'](_0x468dad=>({'listItem':_0x468dad['getFirstRange']()['start']['nodeAfter'],'groupId':_0x468dad['attributes']['groupId']})),_0x3cbca3=new Set();for(const {groupId:_0x448111,listItem:_0x20845b}of _0x5db9f5)_0x108a46['has'](_0x20845b)&&_0x3cbca3['add'](_0x448111);for(const _0x466e71 of _0x520baa['getSuggestions']())_0x3cbca3['has'](_0x466e71['attributes']['groupId'])&&_0x466e71['setAttribute']('groupId',_0x38824a);}['_supportLegacySuggestions'](){const _0x1004a3=this['editor'],_0x3a7d03=_0x1004a3['locale'],_0x1a2dad=_0x1004a3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a2dad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7aa780,_0x2b92dd){const _0x4b2c2d=[];for(let _0x21ae8a of _0x7aa780)_0x21ae8a['start']['nodeAfter']===_0x21ae8a['end']['parent']&&(_0x21ae8a=_0x1004a3['model']['createRange'](_0x1004a3['model']['createPositionAt'](_0x21ae8a['start']['nodeAfter'],0x0))),_0x4b2c2d['push'](_0x21ae8a);_0x1004a3['model']['change'](_0x5f5178=>{const _0x3c2fa5=_0x1004a3['model']['document']['selection'],_0xa5eb99=Array['from'](_0x3c2fa5['getRanges']())['map'](_0x1191b7=>_0x25dfb1['fromRange'](_0x1191b7));_0x5f5178['setSelection'](_0x4b2c2d),_0x1004a3['commands']['get'](_0x2b92dd['commandName'])['refresh'](),_0x2b92dd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1004a3['execute'](_0x2b92dd['commandName'],..._0x2b92dd['commandParams']),_0x5f5178['setSelection'](_0xa5eb99);for(const _0x4a03f9 of _0xa5eb99)_0x4a03f9['detach']();});}),_0x1a2dad['descriptionFactory']['registerElementLabel'](function(_0x4e7b79){const _0x4a5cfa=!_0x1004a3['model']['schema']['isObject'](_0x4e7b79),_0x27f8f8=_0x4e7b79['previousSibling'],_0x1e3a07=_0x4e7b79['nextSibling'],_0x51015f=_0x4e7b79['getAttribute']('listItemId'),_0x304949=!_0x27f8f8||_0x27f8f8['getAttribute']('listItemId')!==_0x51015f,_0x2a93e3=!_0x1e3a07||_0x1e3a07['getAttribute']('listItemId')!==_0x51015f;return _0x4a5cfa&&Boolean(_0x51015f)&&_0x304949&&_0x2a93e3;},_0x21901f=>o(_0x3a7d03,'ELEMENT_LIST_ITEM',_0x21901f));}['_registerLegacyDescription'](){const _0x84e4a1=this['editor'],_0x5e184e=_0x84e4a1['locale'];function _0x339339(_0x4f23df){const _0x1592ca=_0x84e4a1['commands']['get']('bulletedList')['value'],_0x201c68=_0x84e4a1['commands']['get']('numberedList')['value'];return'numberedList'===_0x4f23df?_0x1592ca:_0x201c68;}_0x84e4a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3aedab){if('formatBlock'!=_0x3aedab['type'])return;const {data:_0x420671}=_0x3aedab;if(!_0x420671)return;let _0x2add32,_0x42f91f,_0x2a27d3,_0x353fe0;switch(_0x420671['commandName']){case'bulletedList':_0x2a27d3=_0x420671['commandParams'][0x0]['forceValue'],_0x353fe0=_0x339339(_0x420671['commandName']),_0x2add32=_0x2a27d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x353fe0&&_0x84e4a1['config']['get']('list.multiBlock')||(_0x2add32='*Change\x20to:*\x20%0'),_0x42f91f={'type':'format','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2a27d3=_0x420671['commandParams'][0x0]['forceValue'],_0x353fe0=_0x339339(_0x420671['commandName']),_0x2add32=_0x2a27d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x353fe0&&_0x84e4a1['config']['get']('list.multiBlock')||(_0x2add32='*Change\x20to:*\x20%0'),_0x42f91f={'type':'format','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2add32='*Indent:*\x20%0',_0x42f91f={'type':'format','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2add32=function(_0x1fbc30){const _0x113509=_0x1fbc30['getFirstRange']();let _0x4430f1=_0x113509['start']['nodeAfter'];for(;_0x4430f1&&_0x113509['containsItem'](_0x4430f1);){if(_0x4430f1['getAttribute']('listIndent')>0x0)return!0x1;_0x4430f1=_0x4430f1['nextSibling'];}return!0x0;}(_0x3aedab)?o(_0x5e184e,'*Format:*\x20remove\x20from\x20%0',o(_0x5e184e,function(_0x759f8c){return'ELEMENT_'+_0x759f8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3aedab))):o(_0x5e184e,'*Outdent:*\x20%0',o(_0x5e184e,'ELEMENT_LIST_ITEM')),_0x42f91f={'type':'format','content':_0x2add32};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x420671['multipleBlocks']&&(_0x2add32='*Merge:*\x20%0',_0x42f91f={'type':'deletion','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_LIST_ITEM'))});}return _0x42f91f;});}}function Te(_0x31baef){let _0x3ff0ee=_0x31baef['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ff0ee;){const _0x10dc85=_0x3ff0ee['getAttribute']('listItemId');if(!_0x10dc85)return!0x1;if(_0x10dc85==_0x31baef['data']['newValue'])return'newValue';if(_0x10dc85==_0x31baef['data']['oldValue'])return'oldValue';_0x3ff0ee=_0x3ff0ee['previousSibling'];}return!0x1;}class q extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f1ab2=this['editor']['config']['get']('list.properties'),_0x21b770=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f1ab2['styles']&&(_0x21b770['enableDefaultAttributesIntegration']('listStyle'),_0x21b770['registerBlockAttribute']('listStyle')),_0x5f1ab2['reversed']&&(_0x21b770['enableDefaultAttributesIntegration']('listReversed'),_0x21b770['registerBlockAttribute']('listReversed')),_0x5f1ab2['startIndex']&&(_0x21b770['enableDefaultAttributesIntegration']('listStart'),_0x21b770['registerBlockAttribute']('listStart'));const _0x28c780={'type':'format','content':''};_0x21b770['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x213250=this['editor']['locale'];_0x21b770['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x213250,'FORMAT_LIST_REVERSED')),_0x21b770['descriptionFactory']['registerDescriptionCallback'](_0x5733f2=>{const {data:_0x29f66c}=_0x5733f2;if(_0x29f66c&&'listReversed'==_0x29f66c['key'])return null==_0x29f66c['newValue']||0x0==_0x29f66c['newValue']&&null==_0x29f66c['oldValue']?_0x28c780:void 0x0;}),_0x21b770['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x213250,'FORMAT_LIST_START')),_0x21b770['descriptionFactory']['registerDescriptionCallback'](_0x1a993d=>{const {data:_0x2e05b2}=_0x1a993d;if(_0x2e05b2&&'listStart'==_0x2e05b2['key'])return null==_0x2e05b2['newValue']||0x1==_0x2e05b2['newValue']&&null==_0x2e05b2['oldValue']?_0x28c780:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x15e1ea=>{if(_0x15e1ea['batch']['isUndo'])return!0x1;let _0xf89653=!0x1;const _0x280ec4=_0x21b770['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44ddf8=>{const _0x2f9fba=_0x21b770['_getAttributeKey'](_0x44ddf8);return'listStart'==_0x2f9fba||'listReversed'==_0x2f9fba;});for(const _0x17bc32 of _0x280ec4){const _0x4c37d4=_0x17bc32['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4c37d4||'customNumbered'==_0x4c37d4)continue;_0x21b770['_findSuggestions'](_0x17bc32['getFirstRange'](),'attribute')['find'](_0x5d2e90=>'listType'==_0x21b770['_getAttributeKey'](_0x5d2e90['suggestion']))||(_0x15e1ea['removeMarker'](_0x17bc32['getFirstMarker']()),_0xf89653=!0x0);}return _0xf89653;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x348b0f){const _0x48ff8c=this['editor']['locale'],{data:_0x1016cc}=_0x348b0f,_0x4458fe={'type':'format','content':''};if(!_0x1016cc||'listStyle'!=_0x1016cc['key'])return;if(!_0x1016cc['oldValue'])return'default'==_0x1016cc['newValue']?_0x4458fe:{'type':'format','content':''+o(_0x48ff8c,'*Set\x20format:*\x20%0',o(_0x48ff8c,this['_getTranslationKeyForListStyle'](_0x1016cc['newValue'])))};if(!_0x1016cc['newValue']){if('default'==_0x1016cc['oldValue'])return _0x4458fe;let _0xe3b60f=_0x348b0f['head'];for(;_0xe3b60f;){if(_0xe3b60f['data']&&'listType'==_0xe3b60f['data']['key']&&_0xe3b60f['data']['newValue'])return _0x4458fe;_0xe3b60f=_0xe3b60f['next'];}return{'type':'format','content':''+o(_0x48ff8c,'*Remove\x20format:*\x20%0',o(_0x48ff8c,this['_getTranslationKeyForListStyle'](_0x1016cc['oldValue'])))};}if('default'!=_0x1016cc['newValue'])return{'type':'format','content':''+o(_0x48ff8c,'*Set\x20format:*\x20%0',o(_0x48ff8c,this['_getTranslationKeyForListStyle'](_0x1016cc['newValue'])))};let _0x33af26=_0x348b0f['head'];for(;_0x33af26;){if(_0x33af26['data']&&'listType'==_0x33af26['data']['key']&&_0x33af26['data']['newValue']&&_0x33af26['data']['oldValue'])return _0x4458fe;_0x33af26=_0x33af26['next'];}return{'type':'format','content':o(_0x48ff8c,'*Set\x20format:*\x20%0',o(_0x48ff8c,'ELEMENT_'+_0x348b0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ade00=this['editor'],_0x51cd9e=_0x1ade00['locale'];_0x1ade00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bcd3e=>{if('formatBlock'!=_0x2bcd3e['type'])return;const {data:_0x16da0f}=_0x2bcd3e;if(!_0x16da0f)return;let _0x55f14b,_0x121f92;switch(_0x16da0f['commandName']){case'listStyle':_0x55f14b='*Change\x20to:*\x20%0',_0x121f92={'type':'format','content':o(_0x51cd9e,_0x55f14b,o(_0x51cd9e,this['_getTranslationKeyForListStyle'](_0x16da0f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x55f14b=_0x16da0f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x121f92={'type':'format','content':o(_0x51cd9e,_0x55f14b)};break;case'listStart':_0x55f14b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x121f92={'type':'format','content':o(_0x51cd9e,_0x55f14b,_0x16da0f['commandParams'][0x0]['startIndex'])};}return _0x121f92;});}['_getTranslationKeyForListStyle'](_0x136e62){return'ELEMENT_'+function(_0x190571){if(Se['includes'](_0x190571))return'bulleted';if(_e['includes'](_0x190571))return'numbered';return null;}(_0x136e62)['toUpperCase']()+'_LIST_'+_0x136e62['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x96746a{['afterInit'](){const _0x1d2fd4=this['editor'];_0x1d2fd4['commands']['get']('emoji')&&_0x1d2fd4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x96746a{static get['requires'](){return[_0x4de75a];}['init'](){const _0xc5240d=this['editor'],_0x370b86=_0xc5240d['plugins']['get']('TrackChangesEditing'),_0x5a956b=_0xc5240d['commands']['get']('enter');_0x370b86['enableCommand']('enter',()=>{_0xc5240d['model']['change'](_0x27b3b9=>{const _0x20b817=_0xc5240d['model']['document']['selection'],_0x5460c8=_0x20b817['getFirstPosition'](),_0x2c0ccd=_0x25dfb1['fromRange'](_0x20b817['getFirstRange']());if(_0x5a956b['enterBlock'](_0x27b3b9)){const _0xb6175d=_0xc5240d['model']['createPositionAt'](_0x5460c8['parent']['nextSibling'],0x0),_0x12a0de=_0x27b3b9['createRange'](_0x5460c8,_0xb6175d);_0x370b86['markInsertion'](_0x12a0de);}else _0x27b3b9['setSelection'](_0x27b3b9['createRange'](_0x2c0ccd['end']));_0x2c0ccd['detach'](),_0x5a956b['fire']('afterExecute',{'writer':_0x27b3b9});});}),_0xc5240d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xc5240d,'split'),{'priority':'high'}),_0xc5240d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1d739c,_0x1d7d42,_0x56e1ea)=>{const _0x37ffa5=_0x56e1ea['mapper']['markerNameToElements'](_0x1d7d42['markerName']);if(_0x37ffa5){for(const _0x180f85 of _0x37ffa5)_0x180f85['hasClass']('ck-suggestion-marker-split')&&(_0x56e1ea['mapper']['unbindElementFromMarkerName'](_0x180f85,_0x1d7d42['markerName']),_0x56e1ea['writer']['remove'](_0x180f85));}},{'priority':'high'}),_0xc5240d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a6dfe,_0x12371e,_0x45e621)=>{_0x45e621['options']['showSuggestionHighlights']&&De(_0xc5240d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5a6dfe,_0x12371e,_0x45e621);},{'priority':'high'});}}class Q extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x242b09=this['editor']['plugins']['get']('TrackChangesEditing');_0x242b09['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x242b09['enableCommand']('findNext'),_0x242b09['enableCommand']('findPrevious'),_0x242b09['enableCommand']('replace'),_0x242b09['enableCommand']('replaceAll');}['handleFindCommand'](_0x55945e,_0x24b53f,_0x1fa053={}){const _0x26b0a6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x55945e(_0x25e7aa=>{let _0x5dd8a1=('string'==typeof _0x24b53f?_0x26b0a6['findByTextCallback'](_0x24b53f,_0x1fa053):_0x24b53f)(_0x25e7aa);Array['isArray'](_0x5dd8a1)&&(_0x5dd8a1={'results':_0x5dd8a1,'searchText':'string'==typeof _0x24b53f?_0x24b53f:''});const _0x312a3b=_0x5dd8a1['results']['filter'](_0x1a0276=>!0x1===this['_isInDeletionRange'](_0x1a0276,_0x25e7aa['item']));return{..._0x5dd8a1,'results':_0x312a3b};},_0x1fa053);}['_isInDeletionRange'](_0x2ad64d,_0x2a9d45){const _0x464c8a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a9d45,_0x2ad64d['start']),this['editor']['model']['createPositionAt'](_0x2a9d45,_0x2ad64d['end']));for(const _0x11b465 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x464c8a['getIntersection'](_0x11b465['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x96746a{['afterInit'](){const _0x4baefa=this['editor']['locale'],_0x30c8d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a6d77,commandName:_0x4ead9e}of eo)this['editor']['plugins']['has'](_0x4a6d77)&&(_0x30c8d8['enableDefaultAttributesIntegration'](_0x4ead9e),_0x30c8d8['registerInlineAttribute'](_0x4ead9e));_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4baefa,'FORMAT_FONT_SIZE')),_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4baefa,'FORMAT_FONT_FAMILY')),_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4baefa,'FORMAT_FONT_COLOR')),_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4baefa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x163b6d=this['editor'],_0x56b206=_0x163b6d['locale'];_0x163b6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ab861=>{const _0x482ef9=_0x56b206['t'];if('formatInline'!=_0x5ab861['type'])return;const {data:_0x12dc41}=_0x5ab861;if(null!=_0x12dc41){if('fontSize'==_0x12dc41['commandName']){const _0x34789=_0x12dc41['commandParams'][0x0]['value'];if(_0x34789){const _0xca9eb2=_0x482ef9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x36ff07=>_0x36ff07['model']==_0x34789)['title'])['toLowerCase']();return{'type':'format','content':o(_0x56b206,'*Set\x20font\x20size:*\x20%0',_0xca9eb2)};}return{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12dc41['commandName']){const _0x375778=_0x12dc41['commandParams'][0x0]['value'];return _0x375778?{'type':'format','content':o(_0x56b206,'*Set\x20font\x20family:*\x20%0',_0x375778)}:{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12dc41['commandName']){const _0x230cd7=_0x12dc41['commandParams'][0x0]['value'];if(_0x230cd7){const _0x3c7203=_0x49d89b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1856c5=>_0x1856c5['model']==_0x230cd7);let _0x26a966=_0x230cd7,_0x3ec845='';return _0x3c7203&&(_0x26a966=_0x3c7203['label'],_0x3ec845=_0x482ef9(_0x26a966)['toLowerCase']()),{'type':'format','content':o(_0x56b206,'*Set\x20font\x20color:*\x20%0',_0x3ec845)['trim'](),'color':{'value':_0x230cd7,'title':_0x3ec845||_0x26a966}};}return{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12dc41['commandName']){const _0x1976ca=_0x12dc41['commandParams'][0x0]['value'];if(_0x1976ca){const _0x2fc8bb=_0x49d89b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe0f165=>_0xe0f165['model']==_0x1976ca);let _0x5845f2=_0x1976ca,_0x17fbbb='';return _0x2fc8bb&&(_0x5845f2=_0x2fc8bb['label'],_0x17fbbb=_0x482ef9(_0x5845f2)['toLowerCase']()),{'type':'format','content':o(_0x56b206,'*Set\x20font\x20background\x20color:*\x20%0',_0x17fbbb)['trim'](),'color':{'value':_0x1976ca,'title':_0x17fbbb||_0x5845f2}};}return{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x96746a{['afterInit'](){const _0x4ffc27=this['editor'],_0x1c2c43=_0x4ffc27['plugins']['get']('TrackChangesEditing'),_0x1dc432=_0x4ffc27['commands']['get']('copyFormat'),_0x17c3e4=_0x4ffc27['commands']['get']('pasteFormat');_0x1dc432&&_0x17c3e4&&(_0x1c2c43['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c2c43['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b43b9=this['editor'],_0x2db976=_0x3b43b9['locale'];_0x3b43b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x199be8=>{if('formatBlock'!=_0x199be8['type']&&'formatInline'!=_0x199be8['type'])return;const {data:_0x390496}=_0x199be8;if(_0x390496&&'pasteFormat'===_0x390496['commandName']){const _0x19ee30=[],_0x4b165c=_0x390496['commandParams'][0x0];for(const [_0x5d7cd6,_0x5084b7]of Object['entries'](_0x4b165c))_0x19ee30['push'](ro(_0x3b43b9,_0x5d7cd6,_0x5084b7));return _0x19ee30['length']?{'type':'format','content':o(_0x2db976,'*Set\x20format\x20to:*\x20%0',_0x19ee30['join'](',\x20'))}:{'type':'format','content':o(_0x2db976,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x44829f,_0x24c147,_0x180192){const _0x56c8f2=_0x44829f['locale']['t'],_0x3258e1=_0x24c147['split'](/(?=[A-Z])/)['join']('\x20'),_0x56e081=_0x56c8f2(_0x3258e1['charAt'](0x0)['toUpperCase']()+_0x3258e1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x180192)return _0x56e081;if('fontColor'===_0x24c147||'fontBackgroundColor'===_0x24c147){const _0x3a7cb0=_0x49d89b(_0x44829f['config']['get']('fontColor.colors'))['find'](_0x2668f8=>_0x2668f8['model']==_0x180192);return _0x56e081+'\x20('+(_0x3a7cb0?_0x56c8f2(_0x3a7cb0['label'])['toLowerCase']():_0x180192)+')';}if('fontSize'===_0x24c147&&isNaN(parseFloat(_0x180192))){const _0x1b5d54=_0x44829f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44829f['config']['get']('fontSize.options'))['find'](_0x415cc8=>_0x415cc8['model']==_0x180192);return _0x56e081+'\x20('+(_0x1b5d54?_0x56c8f2(_0x1b5d54['title'])['toLowerCase']():_0x180192)+')';}return _0x56e081+'\x20('+_0x180192+')';}class Z extends _0x96746a{['_headingOptions'];['afterInit'](){const _0x1eae5a=this['editor'];if(!_0x1eae5a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1eae5a['config']['get']('heading.options');const _0x188169=_0x1eae5a['locale'],_0x1fe564=_0x1eae5a['plugins']['get']('TrackChangesEditing');_0x1fe564['enableDefaultAttributesIntegration']('heading');for(const _0x35296b of this['_headingOptions'])'paragraph'!=_0x35296b['model']&&_0x1fe564['descriptionFactory']['registerElementLabel'](_0x35296b['model'],_0x1c856c=>{const _0x55f461=this['_getHeadingLevel'](_0x35296b['model']);return null!==_0x55f461?_0x472ee9(_0x1c856c,_0x55f461):_0x41608c(_0x1c856c,_0x35296b['title']);});function _0x472ee9(_0x4ee65a,_0xcea820){return o(_0x188169,'ELEMENT_HEADING',[_0x4ee65a,_0xcea820]);}function _0x41608c(_0x4b5de9,_0x4445c2){return o(_0x188169,'ELEMENT_HEADING_CUSTOM',[_0x4b5de9,_0x4445c2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1667a6=this['editor'],_0x16bdaa=_0x1667a6['locale'];function _0xcd3742(_0x33e74f,_0x2dbc1f){return o(_0x16bdaa,'ELEMENT_HEADING_CUSTOM',[_0x33e74f,_0x2dbc1f]);}_0x1667a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd4a0=>{if('formatBlock'!=_0x2fd4a0['type'])return;const {data:_0x8a2da5}=_0x2fd4a0;if(_0x8a2da5&&'heading'==_0x8a2da5['commandName']){const _0x5ecaa1=_0x8a2da5['commandParams'][0x0]['value'],_0x424ef4=this['_getHeadingLevel'](_0x5ecaa1);if(null!==_0x424ef4)return{'type':'format','content':o(_0x16bdaa,'*Change\x20to:*\x20%0',(_0x5756fe=0x1,_0x69cb35=_0x424ef4,o(_0x16bdaa,'ELEMENT_HEADING',[_0x5756fe,_0x69cb35])))};const _0x67c487=this['_headingOptions']['find'](_0x591a08=>_0x591a08['model']===_0x5ecaa1)['title'];return{'type':'format','content':o(_0x16bdaa,'*Change\x20to:*\x20%0',_0xcd3742(0x1,_0x67c487))};}var _0x5756fe,_0x69cb35;});}['_getHeadingLevel'](_0x35cafe){const _0x4f4af1=_0x35cafe['match'](/^heading(\d+)/);if(_0x4f4af1)return _0x4f4af1[0x1];const _0x517757=this['_headingOptions']?.['find'](_0xc8057f=>_0xc8057f['model']==_0x35cafe);if(_0x517757&&_0x517757['view']){const _0x2b0be3=_0x517757['view'],_0x286aca=(_0x2b0be3['name']??_0x2b0be3)['match'](/^h(\d+)/);if(_0x286aca)return _0x286aca[0x1];}return null;}}class tt extends _0x96746a{['afterInit'](){const _0x16c5b9=this['editor'];if(!_0x16c5b9['plugins']['has']('HighlightEditing'))return;const _0x795b69=_0x16c5b9['plugins']['get']('TrackChangesEditing'),_0x2f244d=_0x16c5b9['locale'];_0x795b69['enableDefaultAttributesIntegration']('highlight'),_0x795b69['registerInlineAttribute']('highlight'),_0x795b69['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f244d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397e31=this['editor'],_0x2b3850=_0x397e31['locale'];_0x397e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a13af=>{if('formatInline'!=_0x3a13af['type'])return;const {data:_0x4fbc2b}=_0x3a13af;if(_0x4fbc2b&&'highlight'==_0x4fbc2b['commandName']){const _0x2abd17=_0x2b3850['t'],_0x15a928=_0x4fbc2b['commandParams'][0x0]['value'];if(_0x15a928){const _0x5a6d0d=_0x397e31['config']['get']('highlight.options')['find'](_0x3ed34c=>_0x3ed34c['model']==_0x15a928),_0x491219=_0x2abd17(_0x5a6d0d['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b3850,'*Set\x20highlight:*\x20%0',_0x491219),'color':{'value':_0x5a6d0d['color'],'title':_0x5a6d0d['title']}};}return{'type':'format','content':o(_0x2b3850,'*Remove\x20highlight*',o(_0x2b3850,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x96746a{['afterInit'](){const _0x1982e1=this['editor'];if(!_0x1982e1['plugins']['has']('HorizontalLineEditing'))return;_0x1982e1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x513cf0=_0x1982e1['plugins']['get']('TrackChangesEditing'),_0x14b48e=_0x1982e1['locale'];_0x513cf0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x49b616=>o(_0x14b48e,'ELEMENT_HORIZONTAL_LINE',_0x49b616)),_0x1982e1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xbefce4,{writer:_0x551819,options:_0x51382f})=>{if(!_0x51382f['showSuggestionHighlights'])return null;const _0x51ae61=_0x551819['createContainerElement']('div'),_0x26f0b3=_0x551819['createEmptyElement']('hr');return _0x551819['addClass']('ck-horizontal-line',_0x51ae61),_0x551819['insert'](_0x551819['createPositionAt'](_0x51ae61,0x0),_0x26f0b3),_0x51ae61;},'converterPriority':'high'});}}class nt extends _0x96746a{['afterInit'](){const _0x42c7e1=this['editor'];if(!_0x42c7e1['plugins']['has']('HtmlEmbed'))return;const _0x15a84c=_0x42c7e1['plugins']['get']('TrackChangesEditing'),_0x3488cb=_0x42c7e1['locale'];_0x15a84c['descriptionFactory']['registerElementLabel']('rawHtml',_0x543096=>o(_0x3488cb,'ELEMENT_HTML_EMBED',_0x543096)),_0x15a84c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x15a84c['registerBlockAttribute']('value'),_0x15a84c['descriptionFactory']['registerDescriptionCallback'](_0x581e79=>{if('attribute'!=_0x581e79['type'])return;const {data:_0x57bd68}=_0x581e79;if(_0x57bd68&&'value'==_0x57bd68['key']&&_0x581e79['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b4525=o(_0x3488cb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3488cb,'*Change\x20%0\x20content*',_0x2b4525)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55640f=this['editor'],_0x5c4227=_0x55640f['locale'];_0x55640f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1bf2=>{if('formatBlock'!=_0x1e1bf2['type'])return;const {data:_0x4cd4b5}=_0x1e1bf2;if(_0x4cd4b5&&'htmlEmbed'==_0x4cd4b5['commandName']){const _0x838622=o(_0x5c4227,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c4227,'*Change\x20%0\x20content*',_0x838622)};}});}}class et extends _0x96746a{['afterInit'](){const _0x491f6e=this['editor'];if(!_0x491f6e['plugins']['has']('ImageEditing'))return;const _0x25b62b=_0x491f6e['plugins']['get']('TrackChangesEditing'),_0x7cfbae=_0x491f6e['plugins']['get']('ImageUtils'),_0xe9eed0=_0x491f6e['locale'];_0x25b62b['enableCommand']('insertImage'),_0x25b62b['descriptionFactory']['registerElementLabel']('imageBlock',_0x308364=>o(_0xe9eed0,'ELEMENT_IMAGE',_0x308364)),_0x25b62b['descriptionFactory']['registerElementLabel']('imageInline',_0x31acc7=>o(_0xe9eed0,'ELEMENT_INLINE_IMAGE',_0x31acc7)),_0x25b62b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe9eed0,'ELEMENT_CAPTION')),_0x491f6e['plugins']['has']('ImageUploadEditing')&&_0x25b62b['enableCommand']('uploadImage'),_0x491f6e['plugins']['has']('ImageBlockEditing')&&_0x491f6e['plugins']['has']('ImageInlineEditing')&&(_0x25b62b['enableCommand']('imageTypeInline',(_0x227797,_0x2ebc1e)=>{const _0x582ebc=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']);_0x491f6e['model']['change'](()=>{_0x25b62b['markBlockFormat'](_0x582ebc,{'commandName':'imageTypeInline','commandParams':[_0x2ebc1e]},[],'convertBlockImageToInline');});}),_0x25b62b['enableCommand']('imageTypeBlock',(_0x4848f6,_0x37bd87)=>{_0x491f6e['model']['change'](_0x1d6f30=>{let _0x579e79=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x15bfaf=_0x1d6f30['createRangeOn'](_0x579e79);const _0xa0744d=_0x3450d7['fromPosition'](_0x15bfaf['start'],'toPrevious'),_0x3525b8=_0x3450d7['fromPosition'](_0x15bfaf['end'],'toNext');_0x25b62b['forceDefaultExecution'](()=>_0x4848f6(_0x37bd87)),_0x579e79=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x15bfaf=_0x1d6f30['createRangeOn'](_0x579e79);const _0x568f50=_0x1d6f30['createRange'](_0xa0744d,_0x3525b8);_0xa0744d['detach'](),_0x3525b8['detach'](),_0x25b62b['markBlockFormat'](_0x579e79,{'commandName':'imageTypeInline','commandParams':[_0x37bd87]},[],'convertInlineImageToBlock'),_0x568f50['start']['isBefore'](_0x15bfaf['start'])&&_0x25b62b['markInsertion'](_0x1d6f30['createRange'](_0x568f50['start'],_0x15bfaf['start']),'convertInlineImageToBlock'),_0x15bfaf['end']['isBefore'](_0x568f50['end'])&&_0x25b62b['markInsertion'](_0x1d6f30['createRange'](_0x15bfaf['end'],_0x568f50['end']),'convertInlineImageToBlock');});}),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25b62b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4e01db])=>{const _0x3582bc=_0x25b62b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x60b9e=_0x4e01db['start'],_0x15190a=_0x4e01db['end'];const _0x54f97c=_0x491f6e['model']['schema']['getNearestSelectionRange'](_0x60b9e,'backward'),_0x7645e8=_0x491f6e['model']['schema']['getNearestSelectionRange'](_0x15190a,'forward');_0x54f97c['isCollapsed']&&(_0x60b9e=_0x54f97c['start']),_0x7645e8['isCollapsed']&&(_0x15190a=_0x7645e8['end']),_0x3582bc([_0x491f6e['model']['createRange'](_0x60b9e,_0x15190a)]);}),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1644c0),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1644c0)),_0x491f6e['plugins']['has']('ImageCaptionEditing')&&(_0x25b62b['enableCommand']('toggleImageCaption',(_0x52038f,_0x17d358)=>{const _0x26ca36=_0x491f6e['plugins']['get']('ImageCaptionUtils');let _0x2a63f7=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x1f100e=_0x26ca36['getCaptionFromImageModelElement'](_0x2a63f7);_0x491f6e['model']['change'](()=>{if(_0x1f100e)return void _0x25b62b['markDeletion'](_0x491f6e['model']['createRangeOn'](_0x1f100e));const _0x3147d5=_0x7cfbae['isBlockImage'](_0x2a63f7);_0x52038f(_0x17d358),_0x2a63f7=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x1f100e=_0x26ca36['getCaptionFromImageModelElement'](_0x2a63f7),_0x25b62b['markInsertion'](_0x491f6e['model']['createRangeOn'](_0x1f100e),_0x3147d5?null:'imageCaption');});}),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1644c0));const _0x2d40eb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54f9ab(_0x50131a,_0x5c0acb){const _0x2ee98c=_0x2d40eb['findIndex'](({type:_0x514c4e,subType:_0x597bd1})=>_0x50131a['type']==_0x514c4e&&_0x50131a['subType']==_0x597bd1),_0x3d8312=_0x2d40eb['findIndex'](({type:_0x1915e0,subType:_0x56842e})=>_0x5c0acb['type']==_0x1915e0&&_0x5c0acb['subType']==_0x56842e);if(_0x2ee98c<0x0||_0x3d8312<0x0)return!0x1;const _0x94b78e=_0x50131a['getFirstRange'](),_0x1f6079=_0x5c0acb['getFirstRange']();if((0x0==_0x2ee98c||0x1==_0x2ee98c)&&0x2==_0x3d8312&&_0x94b78e['isIntersecting'](_0x1f6079))return!0x0;if(0x2==_0x2ee98c&&0x3==_0x3d8312){const _0x3a42bf=_0x25b62b['_findSuggestions'](_0x94b78e,'insertion')['filter'](({suggestion:_0x2dca4f,meta:_0x366f4a})=>_0x366f4a['isOwn']&&'convertInlineImageToBlock'==_0x2dca4f['subType']);if(_0x3a42bf['length']>0x1&&_0x1f6079['end']['isEqual'](_0x94b78e['start']))return!0x0;if(0x1==_0x3a42bf['length']&&(_0x94b78e['start']['isEqual'](_0x1f6079['end'])||_0x94b78e['end']['isEqual'](_0x1f6079['start'])))return!0x0;}if(0x3==_0x2ee98c&&0x3==_0x3d8312&&_0x94b78e['start']['isBefore'](_0x1f6079['start'])){const _0x185ba0=_0x94b78e['end']['nodeAfter'],_0x591292=_0x1f6079['start']['nodeBefore'];return _0x7cfbae['isBlockImage'](_0x185ba0)&&_0x185ba0===_0x591292;}return!0x1;}function _0x1644c0(_0x432df9,_0x6110eb){return _0x54f9ab(_0x432df9,_0x6110eb)?[_0x432df9,_0x6110eb]:_0x54f9ab(_0x6110eb,_0x432df9)?[_0x6110eb,_0x432df9]:null;}_0x491f6e['plugins']['has']('ImageResize')&&(_0x25b62b['enableDefaultAttributesIntegration']('resizeImage'),_0x25b62b['registerBlockAttribute']('resizedWidth'),_0x25b62b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe9eed0,'FORMAT_IMAGE_SIZE'))),_0x491f6e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25b62b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25b62b['registerBlockAttribute']('alt')),_0x491f6e['plugins']['has']('PictureEditing')&&(_0x25b62b['registerBlockAttribute']('sources'),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0xf48fb=>{if('attribute'!=_0xf48fb['type'])return;const {data:_0x5c62da}=_0xf48fb;return _0x5c62da&&'sources'==_0x5c62da['key']?{'type':'format','content':''}:void 0x0;})),_0x491f6e['plugins']['has']('ImageSizeAttributes')&&(_0x25b62b['registerBlockAttribute']('width'),_0x25b62b['registerBlockAttribute']('height'),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x135869=>{if('attribute'!=_0x135869['type'])return;const {data:_0x5c9e7c}=_0x135869;return!_0x5c9e7c||'width'!=_0x5c9e7c['key']&&'height'!=_0x5c9e7c['key']?void 0x0:{'type':'format','content':''};})),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x2db406=>{if(!!_0x2d40eb['find'](({type:_0x1bb954,subType:_0x2a0692})=>_0x2db406['type']==_0x1bb954&&_0x2db406['subType']==_0x2a0692))return _0x2db406['previous']?{}:void 0x0;}),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x4e4c80=>{if('insertion'==_0x4e4c80['type']||'deletion'==_0x4e4c80['type']){const _0x5a0be7=_0x4e4c80['getContainedElement']();if(_0x5a0be7&&_0x5a0be7['is']('element','caption'))return{'type':'insertion'==_0x4e4c80['type']?'addObject':'removeObject','element':_0x5a0be7,'quantity':0x1};}}),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x3b6a7b=>'formatBlock'==_0x3b6a7b['type']&&'convertInlineImageToBlock'==_0x3b6a7b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3b6a7b['type']&&'convertBlockImageToInline'==_0x3b6a7b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x52cef3=>{if('attribute'!=_0x52cef3['type'])return;const {data:_0x51a6b0}=_0x52cef3;if(!_0x51a6b0||'alt'!=_0x51a6b0['key'])return;const _0x58bb4d=_0x51a6b0['newValue'];return _0x58bb4d?{'type':'format','content':o(_0xe9eed0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58bb4d+'\x22')}:{'type':'format','content':o(_0xe9eed0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5215bb=this['editor'],_0x4d04fe=_0x5215bb['locale'];_0x5215bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59a0d8=>{if('formatBlock'!=_0x59a0d8['type']&&'formatInline'!=_0x59a0d8['type'])return;const {data:_0x3d5772}=_0x59a0d8;if(_0x3d5772){if('imageTextAlternative'==_0x3d5772['commandName']){const _0x4a384b=_0x3d5772['commandParams'][0x0]['newValue'];return _0x4a384b?{'type':'format','content':o(_0x4d04fe,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a384b+'\x22')}:{'type':'format','content':o(_0x4d04fe,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d5772['commandName']){const _0x249ae9=_0x3d5772['commandParams'][0x0]['width'];return _0x249ae9?{'type':'format','content':o(_0x4d04fe,'*Set\x20image\x20width:*\x20%0',_0x249ae9)}:{'type':'format','content':o(_0x4d04fe,'*Reset\x20image\x20width*')};}}});}}class st extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34e13d=this['editor']['locale'],_0x2de9bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2de9bd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2de9bd['registerBlockAttribute']('src'),_0x2de9bd['descriptionFactory']['registerDescriptionCallback'](_0x9b61fd=>{if('attribute'!=_0x9b61fd['type'])return;const {data:_0xeeb3b4}=_0x9b61fd;return _0xeeb3b4&&'src'==_0xeeb3b4['key']?_0xeeb3b4['newValue']&&_0xeeb3b4['oldValue']?{'type':'format','content':o(_0x34e13d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5f259a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f259a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5f259a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f259a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5f259a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x568d5f=this['editor'],_0x4338ae=_0x568d5f['locale'];_0x568d5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x293af8=>{if('formatBlock'!=_0x293af8['type']&&'formatInline'!=_0x293af8['type'])return;const {data:_0x2a6821}=_0x293af8;if(!_0x2a6821||'replaceImageSource'!=_0x2a6821['commandName'])return;return{'type':'format','content':o(_0x4338ae,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x96746a{['afterInit'](){const _0x2d7866=this['editor'];if(!_0x2d7866['plugins']['has']('ImageStyleEditing'))return;const _0x3fb8f3=_0x2d7866['plugins']['get']('TrackChangesEditing'),_0x28ec90=_0x2d7866['plugins']['get']('ImageUtils'),_0x56bd9d={};_0x3fb8f3['enableCommand']('imageStyle',(_0x8cdf8b,_0xc17b0a)=>{const _0x13deeb=_0x2d7866['plugins']['get']('Users')['me'],_0x303a7f=_0x2d7866['commands']['get']('imageStyle');let _0x100532=_0x28ec90['getClosestSelectedImageElement'](_0x2d7866['model']['document']['selection']),_0x34d3fa=_0x2d7866['model']['createRangeOn'](_0x100532),_0x417a4d=_0x303a7f['value'];if(_0x417a4d==_0xc17b0a['value'])return;const _0x1c7045={'commandName':'imageStyle','commandParams':[_0xc17b0a],'formatGroupId':_0x2e07c2()};_0x2d7866['model']['change'](()=>{if(_0x3fb8f3['getSuggestions']()['filter'](_0x575bf9=>_0x575bf9['isInContent']&&_0x13deeb==_0x575bf9['author']&&('formatBlock'==_0x575bf9['type']||'formatInline'==_0x575bf9['type'])&&('imageStylePreApply'==_0x575bf9['subType']||'imageStylePostApply'==_0x575bf9['subType'])&&_0x575bf9['getFirstRange']()['isEqual'](_0x34d3fa))['forEach'](_0x496a1f=>_0x3fb8f3['discardSuggestion'](_0x496a1f['head'])),_0x100532=_0x28ec90['getClosestSelectedImageElement'](_0x2d7866['model']['document']['selection']),_0x34d3fa=_0x2d7866['model']['createRangeOn'](_0x100532),_0x303a7f['refresh'](),_0x2d7866['commands']['get']('imageTypeInline')['refresh'](),_0x2d7866['commands']['get']('imageTypeBlock')['refresh'](),_0x417a4d=_0x303a7f['value'],_0x417a4d!=_0xc17b0a['value'])return _0x28ec90['isInlineImage'](_0x100532)&&_0x303a7f['shouldConvertImageType'](_0xc17b0a['value'],_0x100532)?(_0x8cdf8b({..._0xc17b0a,'setImageSizes':!0x1}),_0x100532=_0x28ec90['getClosestSelectedImageElement'](_0x2d7866['model']['document']['selection']),void _0x3fb8f3['markBlockFormat'](_0x100532,{..._0x1c7045,'commandReversedParams':[{'value':_0x417a4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28ec90['isBlockImage'](_0x100532)?_0x3fb8f3['markBlockFormat'](_0x100532,_0x1c7045,[],'imageStylePostApply'):_0x3fb8f3['markInlineFormat'](_0x34d3fa,_0x1c7045,'imageStylePostApply'));});});for(const _0xef907d of _0x2d7866['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x56bd9d[_0xef907d['name']]=_0xef907d['title']['toLowerCase']();_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3821a9])=>{_0x28ec90['setImageNaturalSizeAttributes'](_0x3821a9['getContainedElement']());}),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x46a9b7,_0x586637)=>{_0x3fb8f3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x46a9b7,{'commandName':_0x586637['commandName'],'commandParams':_0x586637['commandReversedParams']});}),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x10e6c5,_0x5e7e0d){if(_0x4eb624(_0x10e6c5,_0x5e7e0d))return[_0x10e6c5,_0x5e7e0d];if(_0x4eb624(_0x5e7e0d,_0x10e6c5))return[_0x5e7e0d,_0x10e6c5];return null;});const _0x5ac837=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4eb624(_0x1a14bc,_0x57c69d){const _0x144d05=_0x5ac837['findIndex'](({type:_0x130473,subType:_0xd2b397})=>_0x1a14bc['type']==_0x130473&&_0x1a14bc['subType']==_0xd2b397),_0x4a2f93=_0x5ac837['findIndex'](({type:_0x24e4d8,subType:_0x1eb206})=>_0x57c69d['type']==_0x24e4d8&&_0x57c69d['subType']==_0x1eb206);if(_0x144d05<0x0||_0x4a2f93<0x0)return!0x1;const _0x24fd80=_0x1a14bc['getFirstRange'](),_0x11c888=_0x57c69d['getFirstRange']();if((0x0==_0x144d05||0x1==_0x144d05)&&0x2==_0x4a2f93&&_0x24fd80['isIntersecting'](_0x11c888))return!0x0;if(0x2==_0x144d05&&0x3==_0x4a2f93){const _0x2a41bb=_0x3fb8f3['_findSuggestions'](_0x24fd80,'insertion')['filter'](({suggestion:_0x405389,meta:_0x211a8f})=>_0x211a8f['isOwn']&&'convertInlineImageToBlock'==_0x405389['subType']);if(_0x2a41bb['length']>0x1&&_0x11c888['end']['isEqual'](_0x24fd80['start']))return!0x0;if(0x1==_0x2a41bb['length']&&(_0x24fd80['start']['isEqual'](_0x11c888['end'])||_0x24fd80['end']['isEqual'](_0x11c888['start'])))return!0x0;}if(0x3==_0x144d05&&0x3==_0x4a2f93&&_0x24fd80['start']['isBefore'](_0x11c888['start'])){const _0x11991c=_0x24fd80['end']['nodeAfter'],_0x109ab2=_0x11c888['start']['nodeBefore'];return _0x28ec90['isBlockImage'](_0x11991c)&&_0x11991c===_0x109ab2;}return!0x1;}_0x2d7866['model']['document']['registerPostFixer'](()=>{let _0x3c9f41=!0x1;const _0x595d4f=Array['from'](_0x2d7866['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3867ed,data:_0xafd51b}of _0x595d4f){const {group:_0x32779c,type:_0x424301,subType:_0x1b3510,id:_0x553f9f}=_0x3fb8f3['_splitMarkerName'](_0x3867ed);if('suggestion'==_0x32779c&&_0x3fb8f3['hasSuggestion'](_0x553f9f)){if('formatBlock'==_0x424301&&('imageStylePreApply'==_0x1b3510||'imageStylePostApply'==_0x1b3510)){const _0x5d2ce2=_0x3fb8f3['getSuggestion'](_0x553f9f);if(_0xafd51b['newRange']){const _0x12bdc8=_0x5d2ce2['getFirstRange']()['getContainedElement']();if(_0x28ec90['isBlockImage'](_0x12bdc8))continue;_0x3fb8f3['discardSuggestion'](_0x5d2ce2),_0x3c9f41=!0x0;}}if('insertion'==_0x424301&&'imageCaption'==_0x1b3510&&!_0xafd51b['newRange']){const _0x554799=_0x3fb8f3['getSuggestion'](_0x553f9f);_0x554799['next']&&_0x554799['next']['isInContent']&&(_0x3fb8f3['discardSuggestion'](_0x554799['next']),_0x3c9f41=!0x0);}}}return _0x3c9f41;}),this['_registerLegacyDescription'](_0x56bd9d);}['_registerLegacyDescription'](_0x14682c){const _0x569d89=this['editor'],_0x1dcdc2=_0x569d89['locale'];_0x569d89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5179af=>{if('formatBlock'!=_0x5179af['type']&&'formatInline'!=_0x5179af['type'])return;const {data:_0x2bc3f5}=_0x5179af;if(!_0x2bc3f5||'imageStyle'!=_0x2bc3f5['commandName'])return;const _0x32227b=_0x2bc3f5['commandParams'][0x0]['value'];return _0x49f5ba('side'===_0x32227b?o(_0x1dcdc2,'FORMAT_SIDE_IMAGE'):_0x14682c[_0x32227b]||_0x32227b);function _0x49f5ba(_0x1e1f84){return{'type':'format','content':o(_0x1dcdc2,'*Format:*\x20%0',_0x1e1f84)};}});}}class rt extends _0x96746a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4111d0){super(_0x4111d0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3877b0=this['editor'],_0x2e02e6=_0x3877b0['commands']['get']('importWord'),_0x4df148=_0x3877b0['commands']['get']('trackChanges');_0x2e02e6&&(_0x2e02e6['on']('execute',(_0x12bfb5,[,_0x34462b])=>{this['_trackChangesValueDuringImport']=_0x4df148['value'],_0x34462b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2e02e6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2e02e6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4df148['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3877b0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x817a5c,_0x377b7d){const {suggestions:_0x3fb070}=_0x377b7d,_0x14c464=this['editor']['commands']['get']('trackChanges'),_0xe2b824=_0x14c464['value'];this['_trackChangesValueDuringImport']!==_0xe2b824&&(_0x14c464['execute'](),this['_trackChangesExecuted']=!0x0),_0x3fb070&&_0x3fb070['forEach'](({id:_0x3856dc,type:_0x3b60d3,author:_0x437f4d,created_at:_0x400f6c})=>{const _0x258497={'id':_0x3856dc,'type':_0x3b60d3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x437f4d,'createdAt':_0x400f6c?new Date(_0x400f6c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x258497);});}}class at extends _0x96746a{['afterInit'](){const _0x556f44=this['editor'],_0x2c982c=_0x556f44['plugins']['get']('TrackChangesEditing');if(_0x556f44['plugins']['has']('IndentEditing')&&(_0x2c982c['enableCommand']('indent'),_0x2c982c['enableCommand']('outdent')),_0x556f44['plugins']['has']('IndentBlock')){for(const _0x558020 of['indentBlock','outdentBlock'])_0x2c982c['enableDefaultAttributesIntegration'](_0x558020);}const _0x14b4dd=_0x556f44['locale'];_0x2c982c['registerBlockAttribute']('blockIndent'),_0x2c982c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x14b4dd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21c5b7=this['editor'],_0x32c8b6=_0x21c5b7['locale'],_0x5c65c6=_0x21c5b7['plugins']['get']('TrackChangesEditing');_0x5c65c6['descriptionFactory']['registerDescriptionCallback'](_0x1854cc=>{if('formatBlock'!=_0x1854cc['type'])return;const {data:_0x235994}=_0x1854cc;if(!_0x235994)return;if('indentBlock'!=_0x235994['commandName']&&'outdentBlock'!=_0x235994['commandName'])return;const _0x2a1dc9=_0x1854cc['getItems']()[0x0],_0x37449e=_0x5c65c6['descriptionFactory']['getItemLabel'](_0x2a1dc9);return'indentBlock'==_0x235994['commandName']?{'type':'format','content':o(_0x32c8b6,'*Indent:*\x20%0',_0x37449e)}:'outdentBlock'==_0x235994['commandName']?{'type':'format','content':o(_0x32c8b6,'*Outdent:*\x20%0',_0x37449e)}:void 0x0;});}}class ct extends _0x96746a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x96746a{['afterInit'](){const _0x2782b2=this['editor'];if(!_0x2782b2['plugins']['has']('LinkEditing'))return;const _0x5c5e8a=_0x2782b2['plugins']['get']('TrackChangesEditing'),_0x518c17=_0x2782b2['commands']['get']('link');_0x5c5e8a['enableDefaultAttributesIntegration']('link'),_0x5c5e8a['enableDefaultAttributesIntegration']('unlink'),_0x5c5e8a['registerInlineAttribute']('linkHref');for(const _0x5e2c6b of _0x518c17['manualDecorators'])_0x5c5e8a['registerInlineAttribute'](_0x5e2c6b['id']),_0x5c5e8a['descriptionFactory']['registerAttributeLabel'](_0x5e2c6b['id'],'link\x20('+_0x5e2c6b['label']['toLowerCase']()+')');_0x5c5e8a['descriptionFactory']['registerDescriptionCallback'](_0x19e862=>{if('attribute'!=_0x19e862['type'])return;const {data:_0x3d23db}=_0x19e862;if(!_0x3d23db||'linkHref'!=_0x3d23db['key'])return;const _0x543758=_0x3d23db['newValue'],_0x386baf=_0x2782b2['locale'];return{'type':'format','content':null==_0x543758?o(_0x386baf,'*Remove\x20link*'):o(_0x386baf,'*Set\x20link:*\x20%0','\x22'+_0x543758+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x456444=this['editor'],_0x33f27c=_0x456444['locale'];_0x456444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x547aef=>{if('formatInline'!=_0x547aef['type'])return;const {data:_0x3c40dd}=_0x547aef;if(_0x3c40dd){if('link'==_0x3c40dd['commandName']){const _0x42b984=_0x3c40dd['commandParams'][0x0];return{'type':'format','content':o(_0x33f27c,'*Set\x20link:*\x20%0','\x22'+_0x42b984+'\x22')};}return'unlink'==_0x3c40dd['commandName']?{'type':'format','content':o(_0x33f27c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x96746a{['afterInit'](){const _0x5e52b5=this['editor'],_0x5de258=_0x5e52b5['locale'];if(!_0x5e52b5['plugins']['has']('LegacyListEditing'))return;const _0x4ff1fe=_0x5e52b5['plugins']['get']('TrackChangesEditing'),_0x3d1f30=_0x5e52b5['plugins']['has']('LegacyTodoListEditing');function _0x500843(_0xf5769a){return()=>{const _0x399805=_0x5e52b5['model']['document']['selection'],_0x335f04=_0x5e52b5['commands']['get'](_0xf5769a);if(_0x335f04['value'])return void _0x5e52b5['execute']('paragraph',{});const _0x118eba=_0xf5769a['slice'](0x0,-0x4),_0x2276aa=function(_0x23c4f4,_0x25e813,_0x44939a){let _0x1395c4=Array['from'](_0x23c4f4)['filter'](_0x4b4414=>function(_0x14f445,_0x15d340){return _0x15d340['checkChild'](_0x14f445['parent'],'listItem')&&!_0x15d340['isObject'](_0x14f445);}(_0x4b4414,_0x44939a));_0x1395c4=_0x1395c4['filter'](_0x196385=>!_0x196385['is']('element','listItem')||_0x196385['getAttribute']('listType')!=_0x25e813);const _0x495c71=new Set();for(const _0x5ed85d of _0x1395c4)_0x5ed85d['is']('element','listItem')?_0x495c71['add'](Le(_0x5ed85d)):_0x495c71['add'](_0x5ed85d);return Array['from'](_0x495c71);}(_0x399805['getSelectedBlocks'](),_0x118eba,_0x5e52b5['model']['schema']);_0x5e52b5['model']['change'](()=>{for(const _0x6a0a16 of _0x2276aa)_0x4ff1fe['markBlockFormat'](_0x6a0a16,{'commandName':_0xf5769a,'commandParams':[{'forceValue':!_0x335f04['value']}],'formatGroupId':'blockName'},Ee(_0x6a0a16));});};}function _0x3f9402(_0x578452){return()=>{const _0x4881d5=function(_0x1fe00f){let _0x1c9c6f=Array['from'](_0x1fe00f);const _0x55dc3a=_0x1c9c6f['findIndex'](_0x13932c=>'listItem'!=_0x13932c['name']);return _0x55dc3a>-0x1&&(_0x1c9c6f=_0x1c9c6f['slice'](0x0,_0x55dc3a)),_0x1c9c6f;}(_0x5e52b5['model']['document']['selection']['getSelectedBlocks']()),_0x48d9f2=_0x5e52b5['model']['createRange'](_0x5e52b5['model']['createPositionAt'](_0x4881d5[0x0],'before'),_0x5e52b5['model']['createPositionAt'](_0x4881d5[_0x4881d5['length']-0x1],'end'));_0x5e52b5['model']['change'](()=>{_0x4ff1fe['markBlockFormat'](_0x48d9f2,{'commandName':_0x578452,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5cfc74){const _0x187abd=new Set();for(const _0x502e3c of _0x5cfc74){let _0x240941=_0x502e3c['nextSibling'];for(;_0x240941&&_0x240941['getAttribute']('listIndent')>_0x502e3c['getAttribute']('listIndent');)_0x187abd['add'](_0x240941),_0x240941=_0x240941['nextSibling'];}return Array['from'](_0x187abd);}(_0x4881d5));});};}_0x4ff1fe['enableCommand']('numberedList',_0x500843('numberedList')),_0x4ff1fe['enableCommand']('bulletedList',_0x500843('bulletedList')),_0x3d1f30&&_0x4ff1fe['enableCommand']('todoList',_0x500843('todoList')),_0x4ff1fe['enableCommand']('indentList',_0x3f9402('indentList')),_0x4ff1fe['enableCommand']('outdentList',_0x3f9402('outdentList')),_0x3d1f30&&_0x4ff1fe['enableCommand']('checkTodoList',()=>{const _0x57c325=_0x5e52b5['commands']['get']('checkTodoList'),_0xf8ee2e=Array['from'](_0x57c325['_selectedElements']);_0xf8ee2e['filter'](_0xfe16f5=>_0xfe16f5['getAttribute']('todoListChecked')!=_0x57c325['value']),_0x5e52b5['model']['change'](()=>{for(const _0x33a4c2 of _0xf8ee2e)_0x4ff1fe['markBlockFormat'](_0x33a4c2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57c325['value']}]});});}),_0x4ff1fe['descriptionFactory']['registerElementLabel']('listItem',_0x4aab0c=>o(_0x5de258,'ELEMENT_LIST_ITEM',_0x4aab0c)),_0x4ff1fe['descriptionFactory']['registerDescriptionCallback'](_0x20d8cd=>{if('formatBlock'!=_0x20d8cd['type']&&'formatInline'!=_0x20d8cd['type'])return;const {data:_0x16ae4d}=_0x20d8cd;if(_0x16ae4d){if('numberedList'==_0x16ae4d['commandName']||'bulletedList'==_0x16ae4d['commandName']||'todoList'==_0x16ae4d['commandName'])switch(_0x16ae4d['commandName']['replace']('List','')){case'bulleted':return _0x19b389(o(_0x5de258,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19b389(o(_0x5de258,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19b389(o(_0x5de258,'ELEMENT_TODO_LIST'));}if('indentList'==_0x16ae4d['commandName'])return{'type':'format','content':o(_0x5de258,'*Indent:*\x20%0',o(_0x5de258,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x16ae4d['commandName'])return{'type':'format','content':o(_0x5de258,'*Outdent:*\x20%0',o(_0x5de258,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x16ae4d['commandName'])return _0x16ae4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5de258,'*Check\x20item*')}:{'type':'format','content':o(_0x5de258,'*Uncheck\x20item*')};}function _0x19b389(_0x29ee53){return{'type':'format','content':o(_0x5de258,'*Change\x20to:*\x20%0',_0x29ee53)};}});}}function Le(_0x462eaa){const _0x3b95bb=_0x462eaa['getAttribute']('listIndent');if(0x0==_0x3b95bb)return _0x462eaa;let _0x585937=_0x462eaa;for(;_0x462eaa['previousSibling']&&_0x462eaa['previousSibling']['is']('element','listItem');){const _0x3ad4ae=_0x462eaa['previousSibling']['getAttribute']('listIndent');if(_0x3ad4ae==_0x3b95bb)_0x585937=_0x462eaa['previousSibling'];else{if(_0x3ad4ae<_0x3b95bb)break;}_0x462eaa=_0x462eaa['previousSibling'];}return _0x585937;}function Ee(_0x3aeb98){const _0x5464ff=[];if(_0x3aeb98['is']('element','listItem')&&_0x3aeb98['getAttribute']('listIndent')>0x0){let _0x403e15=_0x3aeb98['nextSibling'];for(;_0x403e15&&'listItem'==_0x403e15['name']&&_0x403e15['getAttribute']('listIndent')==_0x3aeb98['getAttribute']('listIndent');)_0x5464ff['push'](_0x403e15),_0x403e15=_0x403e15['nextSibling'];}return _0x5464ff;}class ht extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcf864a=this['editor']['config']['get']('list.properties'),_0x1a747c=this['editor']['plugins']['get']('TrackChangesEditing');_0xcf864a['styles']&&_0x1a747c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcf864a['reversed']&&_0x1a747c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcf864a['startIndex']&&_0x1a747c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1a747c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4b566e,_0x143416={}){const _0x3028e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24e6a8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3028e['markMultiRangeBlockFormat'](_0x24e6a8,{'commandName':'listStyle','commandParams':[{'type':_0x143416['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x44d05d,_0x18c4c1={}){const _0x3de826=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a70b5=this['_getSuggestionBlocks'](_0x461c77=>_0x461c77['is']('element','listItem')&&'numbered'===_0x461c77['getAttribute']('listType'));if(_0x4a70b5['length']<0x1)return;const _0x287c44=_0x4a70b5['map'](_0x37ade1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37ade1,'before'),this['editor']['model']['createPositionAt'](_0x37ade1,0x0)));this['editor']['model']['change'](()=>{_0x3de826['markMultiRangeBlockFormat'](_0x287c44,{'commandName':'listReversed','commandParams':[{'reversed':_0x18c4c1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2396e1,_0x1648c9={}){const _0x379229=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2da701=this['_getSuggestionBlocks'](_0x41b85a=>_0x41b85a['is']('element','listItem')&&'numbered'===_0x41b85a['getAttribute']('listType'));if(_0x2da701['length']<0x1)return;const _0x1f84ad=_0x2da701['map'](_0x1e5ab6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5ab6,'before'),this['editor']['model']['createPositionAt'](_0x1e5ab6,0x0)));this['editor']['model']['change'](()=>{_0x379229['markMultiRangeBlockFormat'](_0x1f84ad,{'commandName':'listStart','commandParams':[{'startIndex':_0x1648c9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x25d141){if('formatBlock'!=_0x25d141['type']&&'formatInline'!=_0x25d141['type'])return;const _0x161cfe=this['editor']['locale'],{data:_0x566f2f}=_0x25d141;if(!_0x566f2f)return;let _0x3cf1ce,_0x1929f6;switch(_0x566f2f['commandName']){case'listStyle':_0x3cf1ce='*Change\x20to:*\x20%0',_0x1929f6={'type':'format','content':o(_0x161cfe,_0x3cf1ce,o(_0x161cfe,this['_getTranslationKeyForListStyle'](_0x566f2f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cf1ce=_0x566f2f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1929f6={'type':'format','content':o(_0x161cfe,_0x3cf1ce)};break;case'listStart':_0x3cf1ce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1929f6={'type':'format','content':o(_0x161cfe,_0x3cf1ce,_0x566f2f['commandParams'][0x0]['startIndex'])};}return _0x1929f6;}['_getSuggestionBlocksForListStyle'](){const _0x1d7d90=this['editor']['plugins']['get']('LegacyListUtils');let _0x482bb8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x482bb8[0x0]?.['is']('element','listItem')&&_0x482bb8['unshift'](..._0x1d7d90['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x482bb8[_0x482bb8['length']-0x1]?.['is']('element','listItem')&&_0x482bb8['push'](..._0x1d7d90['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x482bb8=[...new Set(_0x482bb8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x482bb8=_0x482bb8['filter'](_0x111c31=>_0x111c31['is']('element','listItem'))),_0x482bb8;}['_getSuggestionBlocks'](_0x22073f){const _0x4f5781=this['editor']['plugins']['get']('LegacyListUtils');let _0x396415=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x22073f)['map'](_0x23ceb3=>{const _0x751685=this['editor']['model']['createPositionAt'](_0x23ceb3,0x0);return[..._0x4f5781['getSiblingNodes'](_0x751685,'backward'),..._0x4f5781['getSiblingNodes'](_0x751685,'forward')];})['flat']();return _0x396415=[...new Set(_0x396415)],_0x396415;}['_getTranslationKeyForListStyle'](_0x179d39){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x179d39)||'default')['toUpperCase']()+'_LIST_'+_0x179d39['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x96746a{['afterInit'](){const _0x4989ea=this['editor'];if(!_0x4989ea['plugins']['has']('MediaEmbedEditing'))return;const _0x45ad9b=_0x4989ea['plugins']['get']('TrackChangesEditing'),_0x55bbfb=_0x4989ea['locale'];_0x45ad9b['enableCommand']('mediaEmbed'),_0x45ad9b['descriptionFactory']['registerElementLabel']('media',_0x17970a=>o(_0x55bbfb,'ELEMENT_MEDIA',_0x17970a)),_0x4989ea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2bb5c6,{writer:_0x204120,options:_0xc8e458})=>{if(_0xc8e458['showSuggestionHighlights'])return _0x204120['createEmptyElement']('div');},'converterPriority':'high'}),_0x4989ea['data']['downcastDispatcher']['on']('attribute:url:media',(_0xeb2351,_0x2bf60f,_0x5b363b)=>{_0x5b363b['options']['showSuggestionHighlights']&&_0xeb2351['stop']();},{'priority':'high'});}}class lt extends _0x96746a{['afterInit'](){const _0x4e6c44=this['editor'];_0x4e6c44['plugins']['has']('MentionEditing')&&_0x4e6c44['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x96746a{['afterInit'](){const _0xbeaed7=this['editor'];if(!_0xbeaed7['plugins']['has']('MergeFieldsEditing'))return;const _0x3fe9d3=_0xbeaed7['plugins']['get']('TrackChangesEditing'),_0x245b6f=_0xbeaed7['locale'];_0x3fe9d3['enableCommand']('insertMergeField'),_0x3fe9d3['enableCommand']('insertMergeFieldBlock'),_0x3fe9d3['enableCommand']('insertMergeFieldImage'),_0x3fe9d3['descriptionFactory']['registerElementLabel']('mergeField',_0x27283c=>o(_0x245b6f,'ELEMENT_MERGE_FIELD',_0x27283c)),_0x3fe9d3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3bcc19=>o(_0x245b6f,'ELEMENT_MERGE_FIELD',_0x3bcc19)),_0x3fe9d3['descriptionFactory']['registerDescriptionCallback'](_0x455940=>{if('insertion'!=_0x455940['type']&&'deletion'!=_0x455940['type'])return;const _0x5bf137=_0x455940['getContainedElement']();if(null==_0x5bf137)return;const _0xb1ae81=_0xbeaed7['plugins']['get']('MergeFieldsEditing');let _0x27dc0d;switch(_0xb1ae81['getMergeFieldType'](_0x5bf137)){case null:return;case'image':{const _0x8e12e2=_0xb1ae81['unwrapAffixes'](_0x5bf137['getAttribute']('src'));_0x27dc0d=_0xb1ae81['getLabel'](_0x8e12e2)||_0x8e12e2;break;}default:{const _0x1fdd49=_0x5bf137['getAttribute']('id');_0x27dc0d=_0xb1ae81['getLabel'](_0x1fdd49)||_0x1fdd49;break;}}return'insertion'==_0x455940['type']?{'type':'insertion','content':o(_0x245b6f,'*Insert:*\x20%0','\x22'+_0x27dc0d+'\x22\x20'+o(_0x245b6f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x245b6f,'*Remove:*\x20%0','\x22'+_0x27dc0d+'\x22\x20'+o(_0x245b6f,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x96746a{['afterInit'](){const _0x19d2bb=this['editor'],_0x4eefd5=_0x19d2bb['plugins']['get']('TrackChangesEditing');_0x19d2bb['plugins']['has']('MultiLevelList')&&(_0x4eefd5['enableDefaultAttributesIntegration']('multiLevelList'),_0x4eefd5['registerBlockAttribute']('listMarkerStyle'),_0x4eefd5['descriptionFactory']['registerDescriptionCallback'](_0x212f47=>this['handleDescriptions'](_0x212f47)));}['handleDescriptions'](_0x3fafc5){const _0xd4a8d2=this['editor']['locale'],{data:_0xb76120}=_0x3fafc5,_0x295364={'type':'format','content':''};if(_0xb76120&&'listMarkerStyle'==_0xb76120['key']){if(!_0xb76120['oldValue'])return{'type':'format','content':o(_0xd4a8d2,'*Set\x20format:*\x20%0',o(_0xd4a8d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb76120['newValue']+')'};if(!_0xb76120['newValue']){let _0x3be4d4=_0x3fafc5['head'];for(;_0x3be4d4;){if(_0x3be4d4['data']&&'listType'==_0x3be4d4['data']['key']&&_0x3be4d4['data']['newValue'])return _0x295364;_0x3be4d4=_0x3be4d4['next'];}return{'type':'format','content':o(_0xd4a8d2,'*Remove\x20format:*\x20%0',o(_0xd4a8d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb76120['oldValue']+')'};}}}}class pt extends _0x96746a{['afterInit'](){const _0x143580=this['editor'];if(!_0x143580['plugins']['has']('PageBreakEditing'))return;_0x143580['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x337ef1=_0x143580['plugins']['get']('TrackChangesEditing'),_0x5614fb=_0x143580['locale'];_0x337ef1['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c6a09=>o(_0x5614fb,'ELEMENT_PAGE_BREAK',_0x3c6a09));}}class kt extends _0x96746a{['afterInit'](){const _0x2049c9=this['editor'];if(!_0x2049c9['plugins']['has']('Paragraph'))return;const _0xf1b1e6=_0x2049c9['locale'],_0x385ea6=_0x2049c9['plugins']['get']('TrackChangesEditing');_0x385ea6['descriptionFactory']['registerElementLabel']('paragraph',_0x220d51=>o(_0xf1b1e6,'ELEMENT_PARAGRAPH',_0x220d51)),_0x385ea6['enableDefaultAttributesIntegration']('paragraph'),_0x385ea6['enableCommand']('insertParagraph'),_0x2049c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2049c9),{'priority':'highest'}),_0x2049c9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25be4c,_0x4a149a,_0x3ddeb0)=>{_0x3ddeb0['options']['showSuggestionHighlights']&&nr(_0x2049c9,{'showActiveMarker':!0x1})(_0x25be4c,_0x4a149a,_0x3ddeb0);},{'priority':'highest'});const _0x3a619c=_0x385ea6['descriptionFactory'];_0x3a619c['registerDescriptionCallback'](_0x2b6437=>{if('insertion'!==_0x2b6437['type'])return;const {start:_0x30b405,end:_0x14293e}=_0x2b6437['getFirstRange']();if(!_0x30b405['isTouching'](_0x14293e)||!_0x30b405['nodeAfter'])return;const _0x387220=_0x2049c9['model']['schema'],_0x2bbc17=_0x30b405['nodeAfter'];return _0x387220['isBlock'](_0x2bbc17)&&!_0x387220['isLimit'](_0x2bbc17)&&_0x387220['checkChild'](_0x2bbc17,'$text')?{'type':'insertion','content':o(_0xf1b1e6,'*Insert:*\x20%0',_0x3a619c['getItemLabel'](_0x2bbc17,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d443=this['editor'],_0x1dca35=_0x32d443['locale'];_0x32d443['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598701=>{if('formatBlock'!=_0x598701['type'])return;const {data:_0x4ced3e}=_0x598701;return _0x4ced3e&&'paragraph'==_0x4ced3e['commandName']?{'type':'format','content':o(_0x1dca35,'*Change\x20to:*\x20%0',o(_0x1dca35,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x358403,{showActiveMarker:_0xbc9a59=!0x0}={}){return(_0x3a550e,_0xd6f7e5,_0x1cdbbf)=>{const _0x82ee2b=_0x358403['plugins']['get']('TrackChangesEditing'),_0x21ec5d=_0xd6f7e5['markerRange']['start'],_0x31211a=_0xd6f7e5['markerRange']['end'],_0x50e52f=_0x358403['model']['schema'];if(!_0x21ec5d['isTouching'](_0x31211a)||!_0x21ec5d['nodeAfter'])return;const _0x20eec4=_0x21ec5d['nodeAfter'];if(_0x50e52f['isBlock'](_0x20eec4)&&!_0x50e52f['isLimit'](_0x20eec4)&&_0x50e52f['checkChild'](_0x20eec4,'$text')){if(!_0x1cdbbf['consumable']['consume'](_0xd6f7e5['markerRange'],_0x3a550e['name']))return;const {id:_0x466a47,authorId:_0x242aee}=_0x82ee2b['_splitMarkerName'](_0xd6f7e5['markerName']),_0x12e9d4=_0x1cdbbf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x466a47,'data-author-id':_0x242aee}),_0x1a43df=_0x1cdbbf['mapper']['toViewPosition'](_0x31211a);_0xbc9a59&&_0x82ee2b['activeMarkers']['includes'](_0xd6f7e5['markerName'])&&_0x1cdbbf['writer']['addClass']('ck-suggestion-marker--active',_0x12e9d4),_0x1cdbbf['writer']['insert'](_0x1a43df,_0x12e9d4),_0x1cdbbf['mapper']['bindElementToMarker'](_0x12e9d4,_0xd6f7e5['markerName']);}};}class wt extends _0x96746a{['afterInit'](){const _0x5a4995=this['editor'];_0x5a4995['commands']['get']('replaceSource')&&_0x5a4995['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x96746a{['afterInit'](){const _0x275824=this['editor'];if(!_0x275824['plugins']['has']('RemoveFormatEditing'))return;_0x275824['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x251212=this['editor'];_0x251212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e3b83=>{if('formatBlock'!=_0x5e3b83['type']&&'formatInline'!=_0x5e3b83['type'])return;const {data:_0x29ae61}=_0x5e3b83;return _0x29ae61&&'removeFormat'==_0x29ae61['commandName']?{'type':'format','content':o(_0x251212['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x96746a{['afterInit'](){const _0x16f0f5=this['editor'];if(!_0x16f0f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5b9a5b=_0x16f0f5['plugins']['get']('TrackChangesEditing');_0x5b9a5b['enableCommand']('goToPreviousRestrictedEditingException'),_0x5b9a5b['enableCommand']('goToNextRestrictedEditingException');const _0x475782=_0x16f0f5['plugins']['get']('RestrictedEditingModeEditing');_0x475782['enableCommand']('trackChanges'),_0x475782['enableCommand']('acceptSuggestion'),_0x475782['enableCommand']('discardSuggestion'),_0x475782['enableCommand']('acceptAllSuggestions'),_0x475782['enableCommand']('discardAllSuggestions'),_0x475782['enableCommand']('acceptSelectedSuggestions'),_0x475782['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x96746a{['afterInit'](){const _0x4dbde4=this['editor'];if(!_0x4dbde4['plugins']['has']('ShiftEnter'))return;const _0x1ea62c=_0x4dbde4['plugins']['get']('TrackChangesEditing');_0x1ea62c['enableCommand']('shiftEnter'),_0x4dbde4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4dbde4),{'priority':'high'}),_0x4dbde4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4dbde4),{'priority':'high'}),_0x4dbde4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4da301,_0x2d61cf,_0x5f5b41)=>{_0x5f5b41['options']['showSuggestionHighlights']&&je(_0x4dbde4,{'showActiveMarker':!0x1})(_0x4da301,_0x2d61cf,_0x5f5b41);}),_0x1ea62c['descriptionFactory']['registerElementLabel']('softBreak',_0x56e5e4=>o(_0x4dbde4['locale'],'ELEMENT_LINE_BREAK',_0x56e5e4));}}function je(_0x36c7c8,{showActiveMarker:_0x326b27=!0x0}={}){return(_0x554201,_0x34bd41,_0x47e742)=>{const _0x18eccd=_0x36c7c8['plugins']['get']('TrackChangesEditing');if(!_0x47e742['consumable']['test'](_0x34bd41['markerRange'],_0x554201['name']))return;const _0x3e2419=_0x36c7c8['model'];for(const _0x4e8df2 of _0x34bd41['markerRange']['getItems']()){if(!_0x4e8df2['is']('element','softBreak'))continue;const _0x26954d='deletion'==_0x34bd41['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1636b9,authorId:_0x1c03d7}=_0x18eccd['_splitMarkerName'](_0x34bd41['markerName']),_0x2d18e9=_0x47e742['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26954d,'data-suggestion':_0x1636b9,'data-author-id':_0x1c03d7}),_0xfa7a65=_0x47e742['mapper']['toViewPosition'](_0x3e2419['createPositionBefore'](_0x4e8df2));_0x326b27&&_0x18eccd['activeMarkers']['includes'](_0x34bd41['markerName'])&&_0x47e742['writer']['addClass']('ck-suggestion-marker--active',_0x2d18e9),_0x47e742['writer']['insert'](_0xfa7a65,_0x2d18e9),_0x47e742['mapper']['bindElementToMarker'](_0x2d18e9,_0x34bd41['markerName']);}};}class St extends _0x96746a{['afterInit'](){const _0x2f6548=this['editor'],_0x1c8212=_0x2f6548['model'],_0x494575=_0x2f6548['locale'];if(!_0x2f6548['plugins']['has']('StandardEditingModeEditing'))return;const _0x2e8da2=_0x2f6548['plugins']['get']('TrackChangesEditing'),_0xcd16c0='restrictedEditingException',_0x45a50c=_0x2f6548['commands']['get'](_0xcd16c0);_0x2e8da2['enableCommand'](_0xcd16c0,(_0x61f730,_0x5e7866={})=>{const _0x4b8da2=_0x1c8212['document']['selection'];if(_0x4b8da2['isCollapsed'])return void _0x61f730(_0x5e7866);const _0x4ce834=void 0x0!==_0x5e7866['forceValue']?_0x5e7866['forceValue']:!_0x45a50c['value'];_0x1c8212['change'](()=>{const _0x5b1d42=Array['from'](_0x4b8da2['getRanges']());for(const _0x46028e of _0x5b1d42){const _0x33bf6f=_0x4ce834?[_0x46028e]:io(_0xcd16c0,_0x46028e,_0x1c8212);for(const _0x5d7274 of _0x33bf6f)_0x2e8da2['markInlineFormat'](_0x5d7274,{'commandName':_0xcd16c0,'commandParams':[{'forceValue':_0x4ce834}]});}});}),_0x2e8da2['descriptionFactory']['registerDescriptionCallback'](_0xed8e34=>{if('formatBlock'!=_0xed8e34['type']&&'formatInline'!=_0xed8e34['type'])return;const {data:_0x2c7420}=_0xed8e34;return _0x2c7420&&_0x2c7420['commandName']==_0xcd16c0?_0x2c7420['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x494575,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x494575,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x96746a{['afterInit'](){const _0x1411d8=this['editor'];if(!_0x1411d8['plugins']['has']('Style')||!_0x1411d8['plugins']['has']('DataSchema'))return;const _0x2ed1d5=_0x1411d8['plugins']['get']('TrackChangesEditing'),_0x49e2e0=_0x1411d8['locale'],_0x486bfb=_0x1411d8['config']['get']('style')||{},_0x38ab40=_0x1411d8['plugins']['get']('GeneralHtmlSupport'),_0x2c04b2=_0x1411d8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1411d8['plugins']['get']('DataSchema'),_0x486bfb['definitions']);_0x2ed1d5['enableDefaultAttributesIntegration']('style');const _0x17d8c5=new Set();for(const _0xabe0fd of _0x2c04b2['block']){const _0x294653=_0x38ab40['getGhsAttributeNameForElement'](_0xabe0fd['element']);_0x17d8c5['add'](_0x294653);}const _0x3c4b5d=new Set();for(const _0x496046 of _0x2c04b2['inline']){const _0x155503=_0x38ab40['getGhsAttributeNameForElement'](_0x496046['element']);_0x3c4b5d['add'](_0x155503);for(const _0x2ce106 of _0x496046['ghsAttributes'])_0x3c4b5d['add'](_0x2ce106);}for(const _0x232bf6 of _0x17d8c5)_0x2ed1d5['registerBlockAttribute'](_0x232bf6),_0x2ed1d5['descriptionFactory']['registerAttributeLabel'](_0x232bf6,o(_0x49e2e0,'FORMAT_STYLE'));for(const _0x2d9cc1 of _0x3c4b5d)_0x2ed1d5['registerInlineAttribute'](_0x2d9cc1),_0x2ed1d5['descriptionFactory']['registerAttributeLabel'](_0x2d9cc1,o(_0x49e2e0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27232e=this['editor'],_0x38c02e=_0x27232e['locale'];_0x27232e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c1ac3=>{if('formatBlock'!=_0x1c1ac3['type']&&'formatInline'!=_0x1c1ac3['type'])return;const {data:_0x478d70}=_0x1c1ac3;return _0x478d70&&'style'===_0x478d70['commandName']?_0x478d70['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38c02e,'*Set\x20format:*\x20%0',_0x478d70['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x38c02e,'*Remove\x20format:*\x20%0',_0x478d70['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x96746a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x55c9e1){super(_0x55c9e1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x521daa=this['editor'],_0x54a7cd=_0x521daa['model']['document']['selection'];if(!_0x521daa['plugins']['has']('TableEditing'))return;const _0x5b7f34=_0x521daa['locale'],_0x33e98a=_0x521daa['plugins']['get']('TrackChangesEditing'),_0x22d51c=_0x521daa['plugins']['get']('TableUtils');_0x33e98a['descriptionFactory']['registerElementLabel']('table',_0x3dc77f=>o(_0x5b7f34,'ELEMENT_TABLE',_0x3dc77f)),this['_setupColumnsRowsFixing'](),_0x33e98a['enableCommand']('insertTable'),_0x33e98a['enableCommand']('selectTableRow'),_0x33e98a['enableCommand']('selectTableColumn');for(const _0x5ef7ed of['insertTableRowAbove','insertTableRowBelow']){const _0x2fe607=_0x521daa['commands']['get'](_0x5ef7ed);_0x33e98a['enableCommand'](_0x5ef7ed,_0x1b8a76=>{_0x521daa['model']['change'](_0x13f962=>{_0x1b8a76();const _0x4bb063='above'===_0x2fe607['order'],_0xa5c722=_0x22d51c['getSelectionAffectedTableCells'](_0x54a7cd),_0x326241=_0x22d51c['getRowIndexes'](_0xa5c722),_0x5752b2=_0x4bb063?_0x326241['first']-0x1:_0x326241['last']+0x1,_0x3417da=_0xa5c722[0x0]['findAncestor']('table'),_0x220822=_0x22d51c['createTableWalker'](_0x3417da,{'startRow':_0x5752b2,'endRow':_0x5752b2}),_0x6d7e5e=Array['from'](_0x220822)['map'](_0x13e0be=>_0x13f962['createRangeOn'](_0x13e0be['cell']));_0x33e98a['markMultiRangeInsertion'](_0x6d7e5e,'tableRow');});});}for(const _0x4782e7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1838a8=_0x521daa['commands']['get'](_0x4782e7);_0x33e98a['enableCommand'](_0x4782e7,_0xab9d0c=>{_0x521daa['model']['change'](_0x54af07=>{_0xab9d0c();const _0x3d1ee8='left'===_0x1838a8['order'],_0x5f4f5e=_0x22d51c['getSelectionAffectedTableCells'](_0x54a7cd),_0x3daa28=_0x22d51c['getColumnIndexes'](_0x5f4f5e),_0x1aec08=_0x3d1ee8?_0x3daa28['first']-0x1:_0x3daa28['last']+0x1,_0x137093=_0x5f4f5e[0x0]['findAncestor']('table'),_0x4adcb4=_0x22d51c['createTableWalker'](_0x137093,{'startRow':0x0,'column':_0x1aec08,'includeAllSlots':!0x1}),_0x33c65a=Array['from'](_0x4adcb4)['map'](_0xc6f08b=>_0x54af07['createRangeOn'](_0xc6f08b['cell']));_0x33e98a['markMultiRangeInsertion'](_0x33c65a,'tableColumn');});});}for(const _0x395a58 of['removeTableRow','removeTableColumn']){const _0x1bb219=_0x395a58['substr'](0xb),_0x343f14=_0x1bb219['toLowerCase'](),_0xc3a01c=_0x343f14['substr'](0x0,0x3)+'span',_0x3b63f2='table'+_0x1bb219,_0x272414='min'+_0x1bb219,_0x4ee731='max'+_0x1bb219;_0x33e98a['enableCommand'](_0x395a58,()=>{_0x521daa['model']['change'](_0x4a8f14=>{const _0x29ff64=_0x22d51c['getSelectionAffectedTableCells'](_0x54a7cd),_0x27b3a7=_0x29ff64[0x0]['findAncestor']('table');let _0x5283d9;if('removeTableRow'==_0x395a58){const _0x4f7b87=_0x22d51c['getRowIndexes'](_0x29ff64);_0x5283d9={'startRow':_0x4f7b87['first'],'endRow':_0x4f7b87['last'],'includeAllSlots':!0x0};}else{const _0x4fb85a=_0x22d51c['getColumnIndexes'](_0x29ff64);_0x5283d9={'startColumn':_0x4fb85a['first'],'endColumn':_0x4fb85a['last'],'includeAllSlots':!0x0};}const _0x1befff=_0x22d51c['createTableWalker'](_0x27b3a7,_0x5283d9),_0x533853=Array['from'](_0x1befff)['map'](({cell:_0x9217de})=>_0x9217de),_0x5046eb=Ne(_0x533853['filter'](_0x3b46c7=>_0x3b46c7['hasAttribute'](_0xc3a01c))),_0x2049a3=Ne(_0x533853['filter'](_0x5a704e=>!_0x5a704e['hasAttribute'](_0xc3a01c)))['map'](_0xc5e890=>_0x4a8f14['createRangeOn'](_0xc5e890)),_0x294539=_0x33e98a['markMultiRangeDeletion'](_0x2049a3,_0x3b63f2);if(_0x294539&&('tableRow'==_0x294539['subType']||'tableColumn'==_0x294539['subType'])){const _0x47590b=this['_getSuggestionCoords'](_0x294539);for(const _0x255391 of _0x5046eb){const _0x2075f7=_0x4a8f14['createRangeOn'](_0x255391),_0x41fe02=_0x22d51c['getCellLocation'](_0x255391),_0x38173f=_0x255391['getAttribute'](_0xc3a01c)-0x1,_0x41f07a=_0x47590b[_0x272414],_0x257732=_0x47590b[_0x4ee731];_0x41f07a<=_0x41fe02[_0x343f14]&&_0x41fe02[_0x343f14]+_0x38173f<=_0x257732&&_0x294539['addRange'](_0x2075f7);}}});});}function _0x16c185(_0x341cfe){const _0x39d1df=Array['from'](_0x54a7cd['getRanges']())['map'](_0x1b7308=>_0x25dfb1['fromRange'](_0x1b7308));_0x521daa['model']['change'](_0x5b1182=>{const _0x4fc3fa=_0x5b1182['batch'];_0x341cfe=_0x341cfe['filter'](_0x4d2edd=>'$graveyard'!=_0x4d2edd['root']['rootName']),_0x5b1182['setSelection'](_0x341cfe),_0x521daa['commands']['get']('removeTableRow')['refresh'](),_0x521daa['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x521daa['model']['enqueueChange'](()=>{_0x521daa['model']['enqueueChange'](_0x4fc3fa,_0x55b4bf=>{const _0x49f28f=_0x39d1df['filter'](_0x2a6dbd=>'$graveyard'!=_0x2a6dbd['root']['rootName']);_0x49f28f['length']>0x0&&_0x55b4bf['setSelection'](_0x49f28f);for(const _0x51c11d of _0x39d1df)_0x51c11d['detach']();});});});}function _0x1545e7(_0x40549b){_0x521daa['model']['change'](_0x534294=>{const _0x75c683=Array['from'](_0x54a7cd['getRanges']())['map'](_0x18db2d=>_0x25dfb1['fromRange'](_0x18db2d)),_0xcd1f8e=[];for(const _0x5615c3 of _0x40549b)for(const _0x81c07e of _0x5615c3['getItems']({'shallow':!0x0}))_0xcd1f8e['push'](_0x81c07e);for(const _0x3064db of _0xcd1f8e)'$graveyard'!=_0x3064db['root']['rootName']&&(_0x534294['setSelection'](_0x534294['createPositionAt'](_0x3064db,0x0)),_0x521daa['commands']['get']('removeTableColumn')['refresh'](),_0x521daa['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x18db8c=_0x75c683['filter'](_0xf7d002=>'$graveyard'!=_0xf7d002['root']['rootName']);_0x18db8c['length']>0x0&&_0x534294['setSelection'](_0x18db8c);for(const _0x1c2e91 of _0x75c683)_0x1c2e91['detach']();});}function _0xa2f207(_0x579a77,_0x5130b5){return _0x5130b5['every'](_0x3f5547=>_0x579a77['some'](_0x2695b8=>_0x2695b8['end']['isEqual'](_0x3f5547['start'])||_0x3f5547['end']['isEqual'](_0x2695b8['start'])));}function _0x33f17f(_0x2a9406,_0x59529c){return!_0x2a9406['some'](_0x165f5b=>_0x59529c['some'](_0x24ece6=>_0x165f5b['isIntersecting'](_0x24ece6)))&&_0x2a9406['some'](_0xfce379=>_0x59529c['some'](_0x5ebf62=>_0xfce379['end']['isTouching'](_0x5ebf62['start'])));}_0x521daa['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a29c4,_0x3a090c,_0x5c7e60)=>{if(!_0x5c7e60['options']['showSuggestionHighlights'])return;const _0x3ba282=_0x3a090c['item'];if(!_0x3ba282||!_0x3ba282['is']('element','tableCell'))return;const _0x54c3c8=_0x5c7e60['mapper']['toViewElement'](_0x3ba282);if(_0x54c3c8){const {id:_0x92182a,authorId:_0xe9409a}=_0x33e98a['_splitMarkerName'](_0x3a090c['markerName']);_0xdb9447(_0x54c3c8,_0x5c7e60['writer'],(_0x3c01c3,_0x1a779b,_0x1f3cdc)=>{_0x1f3cdc['addClass'](_0x35449c(_0x1a779b['classes']),_0x3c01c3),_0x1f3cdc['setAttribute']('data-suggestion-id',_0x92182a,_0x3c01c3),_0x1f3cdc['setAttribute']('data-author-id',_0xe9409a,_0x3c01c3);},(_0x3470ed,_0x582194,_0x2df8a7)=>{_0x2df8a7['removeClass'](_0x35449c(_0x582194['classes']),_0x3470ed),_0x2df8a7['removeAttribute']('data-suggestion-id',_0x3470ed),_0x2df8a7['removeAttribute']('data-author-id',_0x3470ed);});}},{'priority':'highest'}),_0x33e98a['descriptionFactory']['registerDescriptionCallback'](_0x127db7=>{if('insertion'!=_0x127db7['type']&&'deletion'!=_0x127db7['type'])return;const _0x5dd06d=_0x127db7['getContainedElement']();if(null!=_0x5dd06d&&_0x5dd06d['is']('element','table')){if('insertion'==_0x127db7['type']){const _0x15a9e7=_0x127db7['getItems']()['filter'](_0x57547e=>_0x57547e['is']('$textProxy'))['map'](_0xd4daa1=>_0xd4daa1['data']);if(_0x15a9e7['length'])return{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15a9e7['join']('\x20')+'\x22'))};}if('deletion'==_0x127db7['type']){const _0xf75eaf=_0x127db7['getItems']()['filter'](_0x5dbfcc=>_0x5dbfcc['is']('$textProxy'))['map'](_0x5941ed=>_0x5941ed['data']);if(_0xf75eaf['length'])return{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf75eaf['join']('\x20')+'\x22'))};}}}),_0x33e98a['descriptionFactory']['registerDescriptionCallback'](_0x4b29a1=>{if('tableRow'==_0x4b29a1['subType']){const _0xdf6f28=_0x4b29a1['getItems']()['filter'](_0x1b38cf=>_0x1b38cf['is']('$textProxy'))['map'](_0x2622b8=>_0x2622b8['data']),_0x2ff1c6=this['_getSuggestionCoords'](_0x4b29a1),_0x47c761=_0x2ff1c6['maxRow']-_0x2ff1c6['minRow']+0x1;if('insertion'==_0x4b29a1['type'])return _0xdf6f28['length']?{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47c761,'\x22'+_0xdf6f28['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW',_0x47c761))};if('deletion'==_0x4b29a1['type'])return _0xdf6f28['length']?{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47c761,'\x22'+_0xdf6f28['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW',_0x47c761))};}if('tableColumn'==_0x4b29a1['subType']){const _0x491eb3=_0x4b29a1['getItems']()['filter'](_0x4fae91=>_0x4fae91['is']('$textProxy'))['map'](_0xe3ef69=>_0xe3ef69['data']),_0x59fe7c=this['_getSuggestionCoords'](_0x4b29a1),_0x4a6edd=_0x59fe7c['maxColumn']-_0x59fe7c['minColumn']+0x1;if('insertion'==_0x4b29a1['type'])return _0x491eb3['length']?{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6edd,'\x22'+_0x491eb3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN',_0x4a6edd))};if('deletion'==_0x4b29a1['type'])return _0x491eb3['length']?{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6edd,'\x22'+_0x491eb3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN',_0x4a6edd))};}}),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x16c185),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x16c185),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1545e7),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1545e7),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xa2f207),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xa2f207),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x33f17f),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x33f17f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x201e54=this['editor'],_0x11c578=_0x201e54['model']['document']['selection'];return(_0x12938a,_0x3447da)=>{_0x201e54['model']['change'](_0x579e4b=>{const {commandName:_0x5f21a6,commandParams:_0x1a8f60}=_0x3447da;let _0x437093=_0x12938a[0x0]['end']['nodeBefore'];_0x1a8f60&&_0x1a8f60[0x0]&&!0x1===_0x1a8f60[0x0]['forceValue']&&(_0x437093=_0x12938a[0x0]['start']['nodeAfter']);const _0x409afe=_0x579e4b['createRangeIn'](_0x437093);if('$graveyard'==_0x409afe['root']['rootName'])return;const _0x2aa5bb=Array['from'](_0x11c578['getRanges']())['map'](_0x525d8b=>_0x25dfb1['fromRange'](_0x525d8b));_0x579e4b['setSelection'](_0x409afe),_0x201e54['commands']['get'](_0x5f21a6)['refresh'](),_0x1a8f60['push']({'forceDefaultExecution':!0x0}),_0x201e54['execute'](_0x5f21a6,..._0x1a8f60);const _0x21aeb5=_0x2aa5bb['filter'](_0x3b1f37=>'$graveyard'!=_0x3b1f37['root']['rootName']);_0x21aeb5['length']>0x0&&_0x579e4b['setSelection'](_0x21aeb5);for(const _0xcdb9e8 of _0x2aa5bb)_0xcdb9e8['detach']();});};}['_getCoordsForCells'](_0x2c2dcd){const _0xff1b4e=this['editor']['plugins']['get']('TableUtils');let _0x4cca50=Number['MAX_SAFE_INTEGER'],_0x155968=Number['MIN_SAFE_INTEGER'],_0x87aefc=Number['MAX_SAFE_INTEGER'],_0x27e674=Number['MIN_SAFE_INTEGER'];for(const _0x410e04 of _0x2c2dcd){if('$graveyard'==_0x410e04['root']['rootName'])continue;const {row:_0x80b798,column:_0x495465}=_0xff1b4e['getCellLocation'](_0x410e04),_0x257981=_0x410e04['hasAttribute']('rowspan')?_0x410e04['getAttribute']('rowspan')-0x1:0x0,_0x521806=_0x410e04['hasAttribute']('colspan')?_0x410e04['getAttribute']('colspan')-0x1:0x0;_0x4cca50=_0x80b798<_0x4cca50?_0x80b798:_0x4cca50,_0x155968=_0x80b798+_0x257981>_0x155968?_0x80b798+_0x257981:_0x155968,_0x87aefc=_0x495465<_0x87aefc?_0x495465:_0x87aefc,_0x27e674=_0x495465+_0x521806>_0x27e674?_0x495465+_0x521806:_0x27e674;}return{'minRow':_0x4cca50,'maxRow':_0x155968,'minColumn':_0x87aefc,'maxColumn':_0x27e674};}['_setupColumnsRowsFixing'](){const _0x3b955a=this['editor'],_0x5df75e=_0x3b955a['plugins']['get']('TrackChangesEditing'),_0x1b1a0d=_0x3b955a['plugins']['get']('TableUtils');_0x3b955a['model']['document']['on']('change:data',()=>{const _0x360e8f=Array['from'](_0x3b955a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3329c1,data:_0x1cdd1c}of _0x360e8f){const {group:_0x3aec46,id:_0xed902b,subType:_0x298298}=_0x5df75e['_splitMarkerName'](_0x3329c1);if('suggestion'!=_0x3aec46)continue;if(null!=_0x1cdd1c['oldRange'])continue;const _0x335897=_0x5df75e['getSuggestion'](_0xed902b);this['_tablePostFixingSubtypes']['includes'](_0x298298)&&this['_tableSuggestions']['add'](_0x335897);}},{'priority':'low'});const _0x5b10b0=(_0x8d04fa,_0x444319)=>{let _0x2979c0=!0x1;const _0x91909a=_0x444319['createRangeOn'](_0x8d04fa),_0x5ec7fe=_0x8d04fa['findAncestor']('table'),_0x59f186=_0x1b1a0d['getCellLocation'](_0x8d04fa);for(const _0x345932 of this['_tableSuggestions']){const _0x1da521=_0x345932['subType'],_0x303c88=_0x1da521['startsWith']('tablePaste'),_0x20be4e=_0x1da521['substr'](_0x303c88?0xa:0x5),_0x2fbce4=_0x20be4e['toLowerCase'](),_0x2aa4c2=_0x2fbce4['substr'](0x0,0x3)+'span',_0x3d5568='min'+_0x20be4e,_0x2391e4='max'+_0x20be4e;if(!_0x345932['isInContent'])continue;if(_0x5ec7fe!=_0x345932['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x345932['isIntersectingWithRange'](_0x91909a))continue;const _0x45d618=_0x8d04fa['hasAttribute'](_0x2aa4c2)?_0x8d04fa['getAttribute'](_0x2aa4c2)-0x1:0x0,_0x2306a8=this['_getSuggestionCoords'](_0x345932),_0x4bf698=_0x2306a8[_0x3d5568],_0xa25db3=_0x2306a8[_0x2391e4];_0x4bf698<=_0x59f186[_0x2fbce4]&&_0x59f186[_0x2fbce4]+_0x45d618<=_0xa25db3&&(_0x345932['addRange'](_0x91909a),_0x2979c0=!0x0);}return _0x2979c0;};_0x3b955a['model']['document']['registerPostFixer'](_0x426225=>{let _0x544baa=!0x1;for(const _0x8056b2 of _0x3b955a['model']['document']['differ']['getChanges']())if('insert'==_0x8056b2['type']){if('tableRow'==_0x8056b2['name']){for(const _0x161bcb of _0x8056b2['position']['nodeAfter']['getChildren']())_0x544baa=_0x544baa||_0x5b10b0(_0x161bcb,_0x426225);}else'tableCell'==_0x8056b2['name']&&(_0x544baa=_0x544baa||_0x5b10b0(_0x8056b2['position']['nodeAfter'],_0x426225));}return _0x544baa;});}['_getSuggestionCoords'](_0x557e94){return this['_getCoordsForCells'](_0x557e94['getRanges']()['map'](_0x5c20c=>_0x5c20c['start']['nodeAfter']));}}function Ne(_0x47d1d4){return Array['from'](new Set(_0x47d1d4)['values']());}class _t extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x5cdabb=this['editor'],_0x3b8059=_0x5cdabb['model']['document']['selection'],_0x15dd28=_0x5cdabb['locale'];if(!_0x5cdabb['plugins']['has']('TableEditing'))return;const _0x39ba3d=_0x5cdabb['plugins']['get']('TrackChangesEditing'),_0x1caaeb=_0x5cdabb['plugins']['get']('TableUtils'),_0x554473=_0x5cdabb['plugins']['get'](At);_0x554473['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39ba3d['enableCommand']('mergeTableCells',()=>{const _0xf71666=_0x1caaeb['getSelectionAffectedTableCells'](_0x5cdabb['model']['document']['selection']);_0x5cdabb['model']['change'](()=>{_0x39ba3d['markMultiRangeBlockFormat'](_0xf71666,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5cdabb['commands']['get']('mergeTableCells')['on']('execute',(_0x304684,_0x28f210)=>{_0x5cdabb['commands']['get']('trackChanges')['value']&&(_0x28f210['length']>0x0&&_0x28f210[_0x28f210['length']-0x1]&&_0x28f210[_0x28f210['length']-0x1]['forceDefaultExecution']||_0x39ba3d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x304684['stop']());},{'priority':'highest'});for(const _0x139c6c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24b339=_0x5cdabb['commands']['get'](_0x139c6c);_0x39ba3d['enableCommand'](_0x139c6c,()=>{const _0x19deb2=_0x5cdabb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c0068=>_0x2c0068['is']('element','tableCell')),_0x2ef99d=_0x24b339['value'];_0x5cdabb['model']['change'](()=>{_0x39ba3d['markMultiRangeBlockFormat']([_0x19deb2,_0x2ef99d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x52c380 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1ca5d8=_0x5cdabb['commands']['get'](_0x52c380);_0x39ba3d['enableCommand'](_0x52c380,()=>{const _0x3c8d24=_0x1caaeb['getSelectionAffectedTableCells'](_0x5cdabb['model']['document']['selection'])[0x0],_0x13d561=_0x3c8d24['findAncestor']('table'),{column:_0x8d92a1,row:_0xe73e09}=_0x1caaeb['getCellLocation'](_0x3c8d24);let _0x13228e=[];if('horizontally'==_0x1ca5d8['direction']){const _0x3741ba=_0x1caaeb['createTableWalker'](_0x13d561,{'startRow':_0xe73e09,'endRow':_0xe73e09,'includeAllSlots':!0x0});_0x13228e=Array['from'](_0x3741ba)['map'](_0x9c12b5=>_0x9c12b5['cell']);}else{const _0x4a67d3=_0x1caaeb['createTableWalker'](_0x13d561,{'column':_0x8d92a1,'includeAllSlots':!0x0});_0x13228e=Array['from'](_0x4a67d3)['map'](_0x377a3f=>_0x377a3f['cell']);}_0x5cdabb['model']['change'](_0x23f29e=>{_0x39ba3d['markBlockFormat'](_0x23f29e['createRangeOn'](_0x3c8d24),{'commandName':_0x52c380,'commandParams':[]},_0x13228e,_0x52c380);});});}_0x39ba3d['descriptionFactory']['registerDescriptionCallback'](_0x4723cf=>{if('formatBlock'!=_0x4723cf['type']&&'formatInline'!=_0x4723cf['type'])return;const {data:_0x5cd7a5}=_0x4723cf;return _0x5cd7a5&&'mergeTableCells'==_0x5cd7a5['commandName']?{'type':'format','content':o(_0x15dd28,'*Merge\x20cells*')}:void 0x0;}),_0x39ba3d['descriptionFactory']['registerDescriptionCallback'](_0x215a24=>{if('formatBlock'!=_0x215a24['type']&&'formatInline'!=_0x215a24['type'])return;const {data:_0xb3fc68}=_0x215a24;return _0xb3fc68?'splitTableCellVertically'==_0xb3fc68['commandName']?{'type':'format','content':o(_0x15dd28,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb3fc68['commandName']?{'type':'format','content':o(_0x15dd28,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1b1f5e=_0x554473['_acceptFormatSuggestionCallbackFactory']();for(const _0x1127d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39ba3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1127d1,'accept',_0x1b1f5e);for(const _0x242161 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39ba3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x242161,'accept',_0x1b1f5e);_0x39ba3d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46a160=>{_0x5cdabb['model']['change'](_0x3a6ca8=>{const _0x5c86c8=Array['from'](_0x3b8059['getRanges']())['map'](_0x5b61be=>_0x25dfb1['fromRange'](_0x5b61be));_0x3a6ca8['setSelection'](_0x46a160),_0x5cdabb['commands']['get']('mergeTableCells')['refresh'](),_0x5cdabb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17e1ee=_0x5c86c8['filter'](_0x464b49=>'$graveyard'!=_0x464b49['root']['rootName']);_0x17e1ee['length']>0x0&&_0x3a6ca8['setSelection'](_0x17e1ee);for(const _0x288532 of _0x5c86c8)_0x288532['detach']();});});for(const _0x47a625 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3675b9=_0x5cdabb['commands']['get'](_0x47a625);_0x3675b9['on']('set:isEnabled',(_0x3b78e1,_0x384565,_0x487192)=>{if(_0x487192){const _0x403b71=_0x5cdabb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x118ccf=>_0x118ccf['is']('element','tableCell'));this['_areMergableCells'](_0x3675b9['value'],_0x403b71)||(_0x3b78e1['return']=!0x1,_0x3b78e1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54248f=this['editor']['commands']['get']('mergeTableCells'),_0xd907d3=this['editor']['plugins']['get']('TableUtils');if(!_0x54248f['isEnabled'])return!0x1;const _0x1924f0=_0xd907d3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4e5089 of _0x1924f0)for(const _0xd0b243 of _0x1924f0)if(_0x4e5089!=_0xd0b243&&!this['_areMergableCells'](_0x4e5089,_0xd0b243))return!0x1;return!0x0;}['_areMergableCells'](_0x43c046,_0x51ca77){const _0x5096d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29151e=this['editor']['model']['createRangeOn'](_0x43c046),_0x5a7b6c=this['editor']['model']['createRangeOn'](_0x51ca77),_0x118e4c=new Set(),_0xc4f591=new Set();for(const _0x31d39b of _0x5096d0['getSuggestions']())if(('insertion'==_0x31d39b['type']||'deletion'==_0x31d39b['type']||'mergeTableCells'==_0x31d39b['subType'])&&_0x31d39b['isInContent']){for(const _0x2ec314 of _0x31d39b['getRanges']())_0x2ec314['containsRange'](_0x29151e,!0x0)&&_0x118e4c['add'](_0x31d39b['type']+':'+_0x31d39b['author']['id']),_0x2ec314['containsRange'](_0x5a7b6c,!0x0)&&_0xc4f591['add'](_0x31d39b['type']+':'+_0x31d39b['author']['id']);}if(_0x118e4c['size']!=_0xc4f591['size'])return!0x1;for(const _0xabb3da of _0x118e4c)if(!_0xc4f591['has'](_0xabb3da))return!0x1;return!0x0;}}class Ct extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x38b36c=this['editor'];if(!_0x38b36c['plugins']['has']('TableEditing'))return;const _0x246c03=_0x38b36c['locale'],_0x33927b=_0x38b36c['plugins']['get']('TrackChangesEditing');_0x33927b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33927b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33927b['registerBlockAttribute']('headingRows'),_0x33927b['registerBlockAttribute']('headingColumns'),_0x33927b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x246c03,'FORMAT_HEADER_ROW')),_0x33927b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x246c03,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x15a20f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x130075=this['editor']['plugins']['get']('TableUtils'),_0x40a5dd=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x4c86a0({showActiveMarker:_0x32abe7=!0x0,setDataAttribute:_0x584fc5=!0x0}={}){return(_0x1084be,_0x429786,_0x10a8e1)=>{const {type:_0xd77621,id:_0x2ffc76}=_0x15a20f['_splitMarkerName'](_0x429786['markerName']),_0x3ceecf=_0x15a20f['getSuggestion'](_0x2ffc76),_0x24953e=_0x3ceecf['data'];if('formatBlock'!=_0x3ceecf['type']||!_0x24953e||'setTableColumnHeader'!=_0x24953e['commandName'])return;if(_0x429786['item'])return void _0x1084be['stop']();if(!_0x10a8e1['consumable']['consume'](_0x429786['markerRange'],_0x1084be['name']))return;const _0x3fbd7e=_0x429786['markerRange']['start']['nodeAfter'],_0x58b722=_0x429786['markerRange']['end']['nodeBefore'],_0x3abfb8=_0x3fbd7e['parent']['parent'],{column:_0x312c61}=_0x130075['getCellLocation'](_0x3fbd7e),{column:_0x2cb07d}=_0x130075['getCellLocation'](_0x58b722);for(let _0x3aac52=_0x312c61;_0x3aac52<=_0x2cb07d;_0x3aac52++){const _0x2964ca=_0x130075['createTableWalker'](_0x3abfb8,{'column':_0x3aac52,'includeAllSlots':!0x1});for(const _0x3d17e1 of _0x2964ca){const _0x64a319=_0x3d17e1['cell'],_0xb14a5e=_0x10a8e1['mapper']['toViewElement'](_0x64a319);_0x10a8e1['writer']['addClass']('ck-suggestion-marker-'+_0xd77621,_0xb14a5e),_0x584fc5&&_0x10a8e1['writer']['setAttribute']('data-suggestion',_0x2ffc76,_0xb14a5e),_0x10a8e1['mapper']['bindElementToMarker'](_0xb14a5e,_0x429786['markerName']),_0x32abe7&&(_0x15a20f['activeMarkers']['includes'](_0x429786['markerName'])?_0x10a8e1['writer']['addClass']('ck-suggestion-marker--active',_0xb14a5e):_0x10a8e1['writer']['removeClass']('ck-suggestion-marker--active',_0xb14a5e));}}};}_0x15a20f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x40a5dd),_0x15a20f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x40a5dd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c86a0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f411d,_0x1fbec5,_0xf7a3f2)=>{_0xf7a3f2['options']['showSuggestionHighlights']&&_0x4c86a0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f411d,_0x1fbec5,_0xf7a3f2);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1aa2fd,_0x4781b1,_0x243c25)=>{const {type:_0x420064,id:_0x391772}=_0x15a20f['_splitMarkerName'](_0x4781b1['markerName']),_0x16c34b=_0x15a20f['getSuggestion'](_0x391772),_0x4ba306=_0x16c34b['data'];if('formatBlock'!=_0x16c34b['type']||!_0x4ba306||'setTableColumnHeader'!=_0x4ba306['commandName'])return;const _0x2c79c5=_0x243c25['mapper']['markerNameToElements'](_0x4781b1['markerName']);if(_0x2c79c5){for(const _0x5be236 of _0x2c79c5)_0x243c25['writer']['removeClass']('ck-suggestion-marker-'+_0x420064,_0x5be236),_0x243c25['writer']['removeClass']('ck-suggestion-marker--active',_0x5be236),_0x243c25['writer']['removeAttribute']('data-suggestion',_0x5be236),_0x243c25['mapper']['unbindElementFromMarkerName'](_0x5be236,_0x4781b1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe51c72=this['editor'],_0x534c27=_0xe51c72['locale'];function _0x2df212(_0x49013f){return{'type':'format','content':o(_0x534c27,'*Format:*\x20%0',_0x49013f)};}_0xe51c72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2058b9=>{if('formatBlock'!=_0x2058b9['type'])return;const {data:_0x1462db}=_0x2058b9;if(_0x1462db){if('setTableRowHeader'==_0x1462db['commandName']){const _0x165092=_0x1462db['commandParams'][0x0]['forceValue'];return _0x2df212(o(_0x534c27,_0x165092?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1462db['commandName']){const _0x3f3a65=_0x1462db['commandParams'][0x0]['forceValue'];return _0x2df212(o(_0x534c27,_0x3f3a65?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x96746a{['afterInit'](){const _0x30d2f8=this['editor'],_0x2f46f9=_0x30d2f8['locale'],_0x1b6a36=_0x30d2f8['plugins']['get']('TrackChangesEditing');function _0x146f2f(_0x31f1b9){return{'type':'format','content':''+o(_0x2f46f9,'*Set\x20table\x20type:*\x20%0',_0x31f1b9)};}_0x30d2f8['plugins']['has']('TableLayout')&&(_0x1b6a36['enableCommand']('insertTableLayout'),_0x1b6a36['enableDefaultAttributesIntegration']('tableType'),_0x1b6a36['registerBlockAttribute']('tableType'),_0x1b6a36['descriptionFactory']['registerElementLabel'](_0x7dfad7=>_0x7dfad7['is']('element','table')&&'layout'===_0x7dfad7['getAttribute']('tableType'),_0x18378d=>o(_0x2f46f9,'ELEMENT_LAYOUT_TABLE',_0x18378d)),_0x1b6a36['descriptionFactory']['registerDescriptionCallback'](_0xd9c71=>{const {data:_0x283bf8}=_0xd9c71;if(_0x283bf8&&'tableType'==_0x283bf8['key'])switch(_0x283bf8['newValue']){case'layout':return _0x146f2f(o(_0x2f46f9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x146f2f(o(_0x2f46f9,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x2184a3=>[_0x2184a3,null]));class Nt extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x400816=this['editor'];if(!_0x400816['plugins']['has']('TableClipboard'))return;const _0x584b73=_0x400816['plugins']['get']('TrackChangesEditing'),_0x59a715=_0x400816['plugins']['get']('TableUtils'),_0x3b94cd=_0x400816['plugins']['get'](At),_0x4bfc0c=_0x400816['plugins']['get']('TableClipboard'),_0x44eb6e=_0x400816['plugins']['get']('TableSelection'),_0x385935=_0x400816['plugins']['get'](_0x21e098);_0x3b94cd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x400816['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x400816['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x56217a=null,_0x47e41a=!0x1;_0x385935['on']('contentInsertion',(_0x22c2bb,_0x36eb26)=>{_0x47e41a='paste'===_0x36eb26['method'];}),_0x400816['model']['on']('insertContent',(_0x5d90f1,_0xdcc3d7)=>{if(!_0x47e41a&&null===_0x44eb6e['getSelectedTableCells']())return;const [_0x4e13c0,_0x2f890a]=_0xdcc3d7,_0x4d2f2e=_0xdcc3d7[_0xdcc3d7['length']-0x1];_0x4d2f2e&&_0x4d2f2e['forceDefaultExecution']||_0x584b73['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eae06,_0x2fdb32,_0x4c67de,_0xe75192,_0x2fb517){if(_0x2fdb32&&!_0x2fdb32['is']('documentSelection'))return!0x1;const _0xd798df=_0x2fb517['getTableIfOnlyTableInContent'](_0x1eae06,_0x4c67de);if(!_0xd798df||!Ue(_0xd798df,void 0x0,_0xe75192))return!0x1;const _0x4d0241=_0xe75192['getSelectionAffectedTableCells'](_0x4c67de['document']['selection']);if(!_0x4d0241['length'])return!0x1;const _0x13fa5a=_0x4d0241[0x0]['findAncestor']('table'),_0x54ca5c=_0xe75192['getRowIndexes'](_0x4d0241),_0x1416ee=_0xe75192['getColumnIndexes'](_0x4d0241),_0x513bd9={'startRow':_0x54ca5c['first'],'endRow':_0x54ca5c['last'],'startColumn':_0x1416ee['first'],'endColumn':_0x1416ee['last']};return 0x1==_0x4d0241['length']&&(_0x513bd9['endRow']+=_0xe75192['getRows'](_0xd798df)-0x1,_0x513bd9['endColumn']+=_0xe75192['getColumns'](_0xd798df)-0x1),Ue(_0x13fa5a,_0x513bd9,_0xe75192);}(_0x4e13c0,_0x2f890a,_0x400816['model'],_0x59a715,_0x4bfc0c)&&(_0x5d90f1['stop'](),_0x56217a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x400816['model']['change'](()=>{_0x400816['model']['insertContent'](_0xdcc3d7[0x0],_0xdcc3d7[0x1],_0xdcc3d7[0x2],{'forceDefaultExecution':!0x0});const _0x5b8b5e=_0x2e07c2(),{rowInsertionRanges:_0xf33c86,columnInsertionRanges:_0x466223,insertionRanges:_0x5765a8,deletionRanges:_0x4dfe6f,cells:_0xa8b845}=_0x56217a;_0xf33c86['length']&&_0x584b73['markMultiRangeInsertion'](_0xf33c86,'tablePasteRow',{'tablePasteChainId':_0x5b8b5e}),_0x466223['length']&&_0x584b73['markMultiRangeInsertion'](_0x466223,'tablePasteColumn',{'tablePasteChainId':_0x5b8b5e}),_0x5765a8['length']&&(_0x584b73['markMultiRangeInsertion'](_0x5765a8,'tablePaste',{'tablePasteChainId':_0x5b8b5e,'skipNestingCheck':!0x0}),_0x5765a8['forEach'](_0xaa15c8=>_0xaa15c8['detach']?.())),_0x4dfe6f['length']&&(_0x584b73['markMultiRangeDeletion'](_0x4dfe6f,'tablePaste',{'tablePasteChainId':_0x5b8b5e,'skipNestingCheck':!0x0}),_0x4dfe6f['forEach'](_0x48bef1=>_0x48bef1['detach']?.()));const _0x2b95bc=_0x584b73['markMultiRangeBlockFormat'](_0xa8b845['map'](({element:_0x3bae68})=>_0x3bae68),{'formatGroupId':_0x2e07c2()},[],'tablePasteCell',{'tablePasteChainId':_0x5b8b5e});if(_0x2b95bc){const _0x7dc6a3=_0x2b95bc['getMarkers'](),_0x404368=[];for(const {element:_0x468a66,attributes:_0x2a8768}of _0xa8b845){if(!_0x2a8768)continue;const _0x5924e6=_0x400816['model']['createRangeOn'](_0x468a66),_0x480288=_0x7dc6a3['find'](_0x1f569b=>_0x1f569b['getRange']()['isEqual'](_0x5924e6));_0x480288&&_0x404368['push']([_0x480288['name'],_0x2a8768]);}_0x404368['length']&&_0x2b95bc['setAttribute']('markerAttributes',Object['fromEntries'](_0x404368));}_0x56217a=null;}));},{'priority':_0x5a860b['high']+0xa}),_0x385935['on']('contentInsertion',()=>{_0x47e41a=!0x1;},{'priority':'lowest'}),_0x400816['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2aa972,_0x30d759)=>{const [_0x31f268,_0x40467d,,_0x364df0]=_0x30d759;if(!_0x56217a)return;_0x2aa972['stop']();const _0x2805c8=_0x31f268['cell'],_0xeb937a=_0x40467d,_0x5f9339=Oe(_0x2805c8),_0x6edc47=Oe(_0xeb937a);_0x2aa972['return']=_0x2805c8;let _0x244439=null,_0x1b0b89=null;if(_0x6edc47||_0x5f9339){if(_0x5f9339&&!_0x6edc47){_0x364df0['remove'](_0x2805c8['getChild'](0x0));for(const _0x36536f of Array['from'](_0xeb937a['getChildren']()))_0x364df0['insert'](_0x36536f,_0x2805c8,'end');const _0x46687c=_0x56217a['rowInsertionIndexes']['includes'](_0x31f268['row']),_0x970ca6=_0x56217a['columnInsertionIndexes']['includes'](_0x31f268['column']);_0x46687c||_0x970ca6||(_0x244439=_0x25dfb1['fromRange'](_0x364df0['createRangeIn'](_0x2805c8)));}else _0x6edc47&&!_0x5f9339&&(_0x1b0b89=_0x364df0['createRangeIn'](_0x2805c8));}else{const _0x45c2af=_0x364df0['createElement']('tableCellSuggestion'),_0x4308e4=_0x364df0['createElement']('tableCellSuggestion');_0x364df0['wrap'](_0x364df0['createRangeIn'](_0x2805c8),_0x4308e4),_0x364df0['insert'](_0x45c2af,_0x2805c8,0x0);for(const _0x54d560 of Array['from'](_0xeb937a['getChildren']()))_0x364df0['insert'](_0x54d560,_0x45c2af,'end');_0x244439=_0x25dfb1['fromRange'](_0x364df0['createRangeOn'](_0x45c2af)),_0x1b0b89=_0x25dfb1['fromRange'](_0x364df0['createRangeOn'](_0x4308e4));}const _0x43de4a=Array['from'](_0xeb937a['getAttributes']())['filter'](([_0x3026bc])=>Be['includes'](_0x3026bc));_0x56217a['cells']['push']({'element':_0x2805c8,'attributes':_0x43de4a['length']?Object['fromEntries'](_0x43de4a):null}),_0x244439&&_0x56217a['insertionRanges']['push'](_0x244439),_0x1b0b89&&_0x56217a['deletionRanges']['push'](_0x1b0b89);},{'priority':'high'}),_0x59a715['on']('insertColumns',(_0x1660bf,_0x21f7b6)=>{const [_0xd30203,_0x28cb6f={}]=_0x21f7b6;if(!_0x56217a)return;const _0x2ec74e=_0x28cb6f['at']||0x0,_0x18092f=_0x28cb6f['columns']||0x1;_0x56217a['columnInsertionIndexes']=new Array(_0x18092f)['fill'](_0x2ec74e)['map']((_0x3822ec,_0x40f4ae)=>_0x3822ec+_0x40f4ae);for(const {cell:_0xaf63dc}of _0x59a715['createTableWalker'](_0xd30203,{'startColumn':_0x2ec74e,'endColumn':_0x2ec74e+_0x18092f-0x1}))_0x56217a['columnInsertionRanges']['push'](_0x400816['model']['createRangeOn'](_0xaf63dc));},{'priority':'low'}),_0x59a715['on']('insertRows',(_0x47fa85,_0x5235b1)=>{const [_0x41786d,_0x55c9fc={}]=_0x5235b1;if(!_0x56217a)return;const _0x2649b9=_0x55c9fc['at']||0x0,_0x5c0442=_0x55c9fc['rows']||0x1;_0x56217a['rowInsertionIndexes']=new Array(_0x5c0442)['fill'](_0x2649b9)['map']((_0x11c389,_0x119c29)=>_0x11c389+_0x119c29);for(const {cell:_0x136030}of _0x59a715['createTableWalker'](_0x41786d,{'startRow':_0x2649b9,'endRow':_0x2649b9+_0x5c0442-0x1}))_0x56217a['rowInsertionRanges']['push'](_0x400816['model']['createRangeOn'](_0x136030));},{'priority':'low'}),_0x584b73['descriptionFactory']['registerDescriptionCallback'](_0x569d6c=>{if(_0x569d6c['subType']&&_0x569d6c['subType']['startsWith']('tablePaste'))return _0x569d6c['previous']?{}:{'type':'insertion','content':o(_0x400816['locale'],'*Replace\x20table\x20cells*')};});const _0x432c68=()=>!0x1;for(const _0x5d18e3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x584b73['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d18e3,'join',_0x432c68),_0x584b73['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d18e3,'join',_0x432c68),_0x584b73['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d18e3,'join',_0x432c68);_0x584b73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x432c68),_0x584b73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35b4fb,_0x3b71af,_0x3f7709)=>{const _0xb60931=_0x35b4fb['map'](_0x546353=>_0x546353['getContainedElement']())['filter'](_0x15ca17=>_0x15ca17),_0x55bb53=new Map(_0xb60931['map'](_0x45f2d2=>[_0x45f2d2,null]));if(_0x56217a){for(const {element:_0x3c8418,attributes:_0x4efca0}of _0x56217a['cells'])_0x4efca0&&_0x55bb53['set'](_0x3c8418,_0x4efca0);}else{if(_0x3f7709&&_0x3f7709['markerAttributes'])for(const [_0x3cbaa5,_0x4cfc45]of Object['entries'](_0x3f7709['markerAttributes'])){const _0x53673e=_0x400816['model']['markers']['get'](_0x3cbaa5),_0x1c939c=_0x53673e?_0x53673e['getRange']()['getContainedElement']():null;_0x1c939c&&_0x55bb53['set'](_0x1c939c,_0x4cfc45);}}_0x400816['model']['change'](_0x3c06a8=>{for(const [_0x110325,_0x2aefcb]of _0x55bb53)_0x3c06a8['setAttributes']({...xe,..._0x2aefcb},_0x110325);});});const _0x3d1e2f=(_0x13c203,_0x17e45d)=>{_0x584b73['_suggestionFactory']['registerCustomCallback'](_0x13c203,'tablePaste',_0x17e45d,(_0x2fdbd9,_0x59e199,_0x39d820)=>{_0x400816['model']['change'](_0x3f3053=>{const _0x1d0db1=[];for(const _0x453f88 of _0x2fdbd9){const _0xde3015=_0x453f88['start']['nodeAfter'];_0xde3015['is']('element','tableCellSuggestion')&&_0x1d0db1['push'](_0xde3015);}_0x584b73['_suggestionFactory']['getSuggestionCallback'](_0x13c203,null,_0x17e45d)(_0x2fdbd9,_0x59e199,_0x39d820);for(const _0x57efde of _0x1d0db1)'$graveyard'!=_0x57efde['root']['rootName']&&_0x3f3053['unwrap'](_0x57efde);});});};_0x3d1e2f('insertion','accept'),_0x3d1e2f('insertion','discard'),_0x3d1e2f('deletion','accept'),_0x3d1e2f('deletion','discard'),_0x584b73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xa2c57c=>{const _0x477b99=_0xa2c57c['map'](_0x24651d=>_0x24651d['getContainedElement']()),_0x1d0f8b=_0x477b99[0x0]['findAncestor']('table'),{minRow:_0x5b5c45,maxRow:_0x336ba4}=_0x3b94cd['_getCoordsForCells'](_0x477b99);_0x59a715['removeRows'](_0x1d0f8b,{'at':_0x5b5c45,'rows':_0x336ba4-_0x5b5c45+0x1});}),_0x584b73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x593337=>{const _0x11e04b=_0x593337['map'](_0x34a7a5=>_0x34a7a5['getContainedElement']()),_0x2e9205=_0x11e04b[0x0]['findAncestor']('table'),{minColumn:_0x3ab9e4,maxColumn:_0x3f435f}=_0x3b94cd['_getCoordsForCells'](_0x11e04b);_0x59a715['removeColumns'](_0x2e9205,{'at':_0x3ab9e4,'columns':_0x3f435f-_0x3ab9e4+0x1});});const _0x4730aa=(_0x46074d,_0xe78cd3)=>{if(!_0xe78cd3['subType']||!_0xe78cd3['subType']['startsWith']('tablePaste'))return;const _0x434a8c=_0xe78cd3['attributes']['tablePasteChainId'],_0x3ce9b9=_0x584b73['getSuggestions']()['filter'](_0x1aae8a=>_0x1aae8a['isInContent']&&_0x1aae8a['attributes']&&_0x1aae8a['attributes']['tablePasteChainId']==_0x434a8c);_0x3ce9b9['length']&&_0xe78cd3['getAllAdjacentSuggestions']()['length']!=_0x3ce9b9['length']&&_0x3ce9b9['reduce']((_0x4c41a,_0x199538)=>(_0x4c41a['next']=_0x199538,_0x199538['previous']=_0x4c41a,_0x199538));};function _0x8debf1(_0x580210,_0x56d6ce=!0x0){const {id:_0x4d7fa1,authorId:_0x242b34}=_0x584b73['_splitMarkerName'](_0x580210['markerName']),_0x5aae0f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38daff=_0x584b73['activeMarkers']['includes'](_0x580210['markerName']);return _0x38daff&&_0x5aae0f['push']('ck-suggestion-marker--active'),{'classes':_0x5aae0f,'attributes':{'data-suggestion':_0x4d7fa1,'data-author-id':_0x242b34},'priority':_0x38daff&&_0x56d6ce?0xbc2:0xbb8};}_0x584b73['on']('suggestionLoaded',_0x4730aa,{'priority':'high'}),_0x584b73['on']('suggestionUnloaded',_0x4730aa,{'priority':'high'}),_0x400816['model']['document']['registerPostFixer'](()=>{let _0x2b8c2b=!0x1;const _0x42de91=Array['from'](_0x400816['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20ea92,data:_0x23109b}of _0x42de91){const {group:_0x2cefd3,type:_0x307b45,id:_0x47c8ea}=_0x584b73['_splitMarkerName'](_0x20ea92);if('suggestion'!=_0x2cefd3||'deletion'!=_0x307b45||_0x23109b['oldRange'])continue;if(!_0x584b73['hasSuggestion'](_0x47c8ea))continue;const _0x4781e7=_0x584b73['getSuggestion'](_0x47c8ea)['getRanges'](),_0x2d138c=_0x400816['plugins']['get']('Users')['me'];for(const _0x3018a1 of _0x584b73['getSuggestions']()){if(!_0x3018a1['isInContent']||_0x3018a1['author']!=_0x2d138c)continue;if('formatBlock'!=_0x3018a1['type']||'tablePasteCell'!=_0x3018a1['subType'])continue;if(_0x3018a1['getRanges']()['every'](_0x12dd11=>_0x4781e7['some'](_0x4741c0=>_0x4741c0['containsRange'](_0x12dd11,!0x0)))){for(const _0x3a7e4b of _0x3018a1['getAllAdjacentSuggestions']())_0x3a7e4b['isInContent']&&(_0x3a7e4b['discard'](),_0x2b8c2b=!0x0);}}}return _0x2b8c2b;}),_0x400816['model']['document']['registerPostFixer'](_0x2d4d95=>{const _0x3e8f78=_0x400816['commands']['get']('redo');if(!_0x3e8f78||!_0x3e8f78['_createdBatches']['has'](_0x2d4d95['batch']))return!0x1;let _0x3080c1=!0x1;const _0x59b19f=_0x400816['plugins']['get']('Users')['me'],_0x4fed4d=_0x400816['model']['document']['differ']['getChanges'](),_0x6a539=Array['from'](_0x400816['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x344cf6,data:_0x20b541})=>{const {group:_0x3b7fe8,subType:_0x300152,authorId:_0x3254d7}=_0x584b73['_splitMarkerName'](_0x344cf6);return'suggestion'==_0x3b7fe8&&'tablePaste'==_0x300152&&_0x3254d7==_0x59b19f['id']&&!_0x20b541['oldRange'];});for(const _0x86e99e of _0x4fed4d){if('insert'!=_0x86e99e['type']||'tableCellSuggestion'!=_0x86e99e['name']||0x1!=_0x86e99e['length'])continue;const _0x3ae6d1=_0x2d4d95['createRange'](_0x86e99e['position'],_0x86e99e['position']['getShiftedBy'](0x1));if(!_0x6a539['find'](({data:_0x16fdb3})=>_0x16fdb3['newRange']['isEqual'](_0x3ae6d1))){for(const {name:_0x3c1f98,data:_0x1ef1af}of _0x6a539)if(_0x3ae6d1['containsRange'](_0x1ef1af['newRange'])){_0x2d4d95['updateMarker'](_0x3c1f98,{'range':_0x3ae6d1}),_0x3080c1=!0x0;break;}}}return _0x3080c1;}),_0x400816['model']['document']['registerPostFixer'](_0x8e4b89=>{let _0x11e8c0=!0x1;const _0x15eb23=_0x400816['plugins']['get']('Users')['me'],_0x2c3de9=_0x584b73['getSuggestions']()['filter'](_0x125cb6=>_0x125cb6['isInContent']&&_0x125cb6['author']==_0x15eb23),_0x2cdbb9=new Set(),_0x58e1b2=new Set();for(const _0x4c3bf2 of _0x2c3de9)if('tablePaste'==_0x4c3bf2['subType'])for(const _0x48e479 of _0x4c3bf2['getMarkers']()){const _0x19b994=_0x48e479['getRange']()['getContainedElement']();if(_0x19b994){if(_0x19b994['is']('element','tableCellSuggestion')&&Oe(_0x19b994)){_0x4c3bf2['removeMarker'](_0x48e479['name']),_0x2cdbb9['add'](_0x19b994),_0x11e8c0=!0x0;const _0x2e21d7=_0x19b994['nextSibling'],_0x2e2e0e=_0x19b994['previousSibling'],_0x5cd8a4=_0x2e21d7&&_0x2e21d7['is']('element','tableCellSuggestion'),_0x2c34ef=_0x2e2e0e&&_0x2e2e0e['is']('element','tableCellSuggestion');_0x5cd8a4&&!_0x2cdbb9['has'](_0x2e21d7)&&_0x58e1b2['add'](_0x2e21d7),_0x2c34ef&&!_0x2cdbb9['has'](_0x2e2e0e)&&_0x58e1b2['add'](_0x2e2e0e);}else _0x19b994['is']('element','paragraph')&&_0x19b994['isEmpty']&&(_0x4c3bf2['removeMarker'](_0x48e479['name']),_0x11e8c0=!0x0);}}else{if('tablePasteCell'==_0x4c3bf2['subType']){if(!_0x4c3bf2['attributes']||!_0x4c3bf2['attributes']['tablePasteChainId'])continue;const _0x4e8632=_0x4c3bf2['attributes']['markerAttributes'];if(_0x4e8632&&Object['keys'](_0x4e8632)['length'])continue;const _0x4ab873=_0x4c3bf2['attributes']['tablePasteChainId'];let _0x78af2c=!0x0,_0x1be55d=!0x0;for(const _0x2f59e4 of _0x2c3de9)if(_0x2f59e4['subType']&&_0x2f59e4['subType']['startsWith']('tablePaste')){if(!_0x2f59e4['attributes']['tablePasteChainId']){_0x1be55d=!0x1;break;}if(_0x2f59e4['id']!=_0x4c3bf2['id']&&_0x2f59e4['attributes']['tablePasteChainId']==_0x4ab873){_0x78af2c=!0x1;break;}}_0x1be55d&&_0x78af2c&&(_0x4c3bf2['removeMarkers'](),_0x11e8c0=!0x0);}}for(const _0x5b6416 of _0x2cdbb9)_0x8e4b89['remove'](_0x5b6416);for(const _0x581bd0 of _0x58e1b2)_0x8e4b89['unwrap'](_0x581bd0);return _0x11e8c0;}),_0x400816['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d9204=>_0x8debf1(_0x2d9204),'converterPriority':'high'}),_0x400816['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ed625,_0x3e6dd8)=>_0x3e6dd8['options']['showSuggestionHighlights']?_0x8debf1(_0x1ed625,!0x1):null,'converterPriority':'high'});const _0x1d01c4=_0x400816['editing']['view'];this['listenTo'](_0x1d01c4['document'],'clipboardOutput',(_0xa26528,_0x170d2b)=>{const _0x1b6580=[];for(const _0x1b416f of _0x1d01c4['createRangeIn'](_0x170d2b['content'])['getItems']())_0x1b416f['is']('element','suggestion-td')&&_0x1b6580['push'](_0x1b416f);_0x1d01c4['change'](_0x2f47a8=>{for(const _0x34a062 of _0x1b6580)_0x2f47a8['move'](_0x2f47a8['createRangeIn'](_0x34a062),_0x2f47a8['createPositionBefore'](_0x34a062)),_0x2f47a8['remove'](_0x34a062);});});}}function Oe(_0x62b6d9){if(_0x62b6d9['isEmpty'])return!0x0;const _0x377fc8=_0x62b6d9['getChild'](0x0);return _0x377fc8['is']('element','paragraph')&&_0x377fc8['isEmpty'];}function Ue(_0x43f592,_0x43afab={},_0x44dfff){for(const {isAnchor:_0x4ffed6,cellHeight:_0x54cd5d,cellWidth:_0x51658c}of _0x44dfff['createTableWalker'](_0x43f592,{'includeAllSlots':!0x0,..._0x43afab}))if(!_0x4ffed6||0x1!=_0x54cd5d||0x1!=_0x51658c)return!0x1;return!0x0;}class Dt extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x9dffd2=this['editor']['plugins']['get']('TrackChangesEditing');_0x9dffd2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x9dffd2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x9dffd2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9dffd2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x9dffd2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x9dffd2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f967c,_0x537a6d){const _0x1b0787=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5e88=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2076f7=_0x537a6d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd976c0=_0x3e5e88['getColumnGroupElement'](_0x2076f7);let _0x1c3831=_0xd976c0?_0x3e5e88['getTableColumnsWidths'](_0xd976c0):null,_0x5e9d9b=_0x2076f7['getAttribute']('tableWidth')||null;const _0x57cf72=_0x537a6d['tableWidth']||_0x5e9d9b,_0x24e670=_0x537a6d['columnWidths']||_0x1c3831,_0xbe813f=this['editor']['plugins']['get']('Users')['me'];for(const _0x390215 of _0x1b0787['getSuggestions']()){const _0x17ebb7=_0x390215['getContainedElement']();if('resizeTable'===_0x390215['subType']&&_0x17ebb7===_0x2076f7){_0x390215['author']!==_0xbe813f&&_0x390215['discard']();const _0x321792=_0x390215['data']['commandParams'];_0x5e9d9b=_0x321792[0x0]['tableWidth'],_0x1c3831=_0x321792[0x0]['columnWidths'];break;}}_0x2f967c({'table':_0x2076f7,'tableWidth':_0x57cf72,'columnWidths':_0x24e670}),_0x1b0787['markBlockFormat'](_0x2076f7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5e9d9b,'columnWidths':_0x1c3831}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e94b3){if('formatBlock'!=_0x4e94b3['type']&&'formatInline'!=_0x4e94b3['type'])return;const {data:_0x5a2614}=_0x4e94b3;if(_0x5a2614&&'resizeTable'===_0x5a2614['formatGroupId']){const _0x129a1a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x129a1a)};}}}class Mt extends _0x96746a{['afterInit'](){const _0x1a74dd=this['editor'];_0x1a74dd['plugins']['has']('Template')&&_0x1a74dd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x96746a{['afterInit'](){const _0x24fd4e=this['editor'];if(!_0x24fd4e['commands']['get']('insertTableOfContents'))return;_0x24fd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1d2d49=_0x24fd4e['plugins']['get']('TrackChangesEditing'),_0x202ac9=_0x24fd4e['locale'];_0x1d2d49['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c1b97=>o(_0x202ac9,'ELEMENT_TABLE_OF_CONTENTS',_0x5c1b97));}}class Bt extends _0x96746a{['afterInit'](){const _0x56b787=this['editor'];if(!_0x56b787['plugins']['has']('Title'))return;const _0x2ab4e5=_0x56b787['plugins']['get']('TrackChangesEditing');_0x2ab4e5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56b787['locale'],'ELEMENT_TITLE')),_0x56b787['model']['document']['registerPostFixer'](_0x11bc15=>{let _0x529955=!0x1;const _0x594189=Array['from'](_0x56b787['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ca028,data:_0x1674a0}of _0x594189){const {group:_0x1a7fc9}=_0x2ab4e5['_splitMarkerName'](_0x5ca028);if('suggestion'!==_0x1a7fc9||!_0x1674a0['newRange'])continue;const _0x360948=_0x1674a0['newRange'],_0x580237=_0x360948['end']['nodeBefore'];if(!_0x580237||!_0x580237['is']('element','title-content'))continue;if(!_0x360948['start']['isTouching'](_0x360948['end']))continue;const _0x11ff89=_0x56b787['model']['schema']['getNearestSelectionRange'](_0x360948['end'],'forward');if(_0x11ff89&&_0x11ff89['isCollapsed']){const _0x1a198e=_0x11bc15['createRange'](_0x360948['start'],_0x11ff89['start']);_0x1a198e['isEqual'](_0x360948)||(_0x11bc15['updateMarker'](_0x5ca028,{'range':_0x1a198e}),_0x529955=!0x0);}_0x529955||(_0x11bc15['removeMarker'](_0x5ca028),_0x529955=!0x0);}return _0x529955;});}}class Tt extends _0x96746a{['afterInit'](){const _0x462723=this['editor'],_0x497367=_0x462723['plugins']['get']('TrackChangesEditing');_0x462723['plugins']['has']('Uploadcare')&&(_0x497367['enableCommand']('uploadcare'),_0x462723['plugins']['has']('UploadcareImageEdit')&&(_0x497367['enableCommand']('uploadcareImageEdit'),_0x497367['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x497367['registerBlockAttribute']('uploadcareImageId'),_0x497367['descriptionFactory']['registerDescriptionCallback'](_0x1fe28e=>{if('attribute'!=_0x1fe28e['type'])return;const {data:_0x162c60}=_0x1fe28e;return _0x162c60&&'uploadcareImageId'==_0x162c60['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x96746a{['afterInit'](){const _0x2d06d4=this['editor'],_0x29cbdb=_0x2d06d4['plugins']['get']('TrackChangesEditing');_0x2d06d4['plugins']['has']('UndoEditing')&&(_0x29cbdb['enableCommand']('undo'),_0x29cbdb['enableCommand']('redo'));}}class Ot extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x3db2bd=this['editor'];if(!_0x3db2bd['plugins']['has']('TableCaptionEditing'))return;_0x3db2bd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x96746a{['tableProperties'];['tableCellProperties'];constructor(_0x548a8a){super(_0x548a8a),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 _0x52f955=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x14f3e5 of this['tableProperties'])_0x52f955['enableCommand'](_0x14f3e5,(_0x3da4c0,_0x391694)=>{const _0x3b4509=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x14f3e5,[_0x3b4509],this['tableProperties'],'tableProperties',_0x3da4c0,_0x391694);});_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52f955['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39ebb9,_0x1cf1c5)=>this['handleDiscardAction'](this['tableProperties'],_0x39ebb9,_0x1cf1c5)),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5501a2 of this['tableCellProperties'])_0x52f955['enableCommand'](_0x5501a2,(_0x11189b,_0x266f30)=>{const _0x21f333=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5501a2,_0x21f333,this['tableCellProperties'],'tableCellProperties',_0x11189b,_0x266f30);});_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52f955['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x214c65,_0x40a473)=>this['handleDiscardAction'](this['tableCellProperties'],_0x214c65,_0x40a473)),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52f955['descriptionFactory']['registerDescriptionCallback'](_0x11e8d9=>this['handleSuggestionDescription'](_0x11e8d9));}['_handlePropertyChange'](_0x3df2ae,_0x5b61b4,_0x236062,_0x2bf229,_0x5e7fdb,_0x587425){const _0x2d74d7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x587425['batch'],()=>{for(const _0x5ce714 of _0x5b61b4){if(this['_getSuggestion'](_0x5ce714,_0x2bf229))_0x5e7fdb(_0x587425);else{const _0x445978={};for(const _0x3dcef4 of _0x236062){const _0x148d4b=_0x5ce714['getAttribute'](_0x3dcef4);void 0x0!==_0x148d4b&&(_0x445978[_0x3dcef4]=_0x148d4b);}_0x5e7fdb(_0x587425),_0x2d74d7['markBlockFormat'](_0x5ce714,{'commandParams':[_0x445978]},[],_0x2bf229);}}});}['handleDiscardAction'](_0x31ff85,_0xe6e66b,_0x1cf881){const _0x346aea=_0xe6e66b[0x0]['start']['nodeAfter'],_0x1faacd=_0x1cf881['commandParams'][0x0];this['editor']['model']['change'](_0x34ad59=>{for(const _0x30363 of _0x31ff85)void 0x0!==_0x1faacd[_0x30363]?_0x34ad59['setAttribute'](_0x30363,_0x1faacd[_0x30363],_0x346aea):_0x34ad59['removeAttribute'](_0x30363,_0x346aea);});}['handleSuggestionDescription'](_0x39a36d){if(_0x39a36d['data'])switch(_0x39a36d['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'](_0x1c0d86,_0x5a2c0d){const _0xa5e222=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x219cea of _0xa5e222['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c38f7=_0x219cea['getContainedElement']();if(_0x219cea['subType']===_0x5a2c0d&&_0x5c38f7===_0x1c0d86)return _0x219cea;}return null;}}class Rt extends _0x96746a{['afterInit'](){const _0xa97a65=this['editor'];if(!_0xa97a65['plugins']['has']('LineHeight'))return;const _0x7342c4=_0xa97a65['plugins']['get']('TrackChangesEditing'),_0xdd670a=_0xa97a65['locale'];_0x7342c4['enableDefaultAttributesIntegration']('lineHeight'),_0x7342c4['registerBlockAttribute']('lineHeight'),_0x7342c4['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xdd670a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x96746a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x31b51b,_0x46e04a,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2507d9){super(_0x2507d9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x113093,_0x3f51d5,_0x2ba15e,_0x568d68)=>{this['_model']['change'](()=>{for(const _0x200637 of[..._0x568d68,..._0x2ba15e])this['_model']['markers']['has'](_0x200637)&&_0x2507d9['editing']['reconvertMarker'](_0x200637);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2507d9['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(),_0x2507d9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2507d9['config']['get']('trackChanges.trackFormatChanges'),_0x2507d9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2507d9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2507d9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x175b19=this['editor'],_0xf987ee=(_0x627e79,_0x16c4ee)=>{if('attribute'!=_0x627e79)return'ck-suggestion-marker-'+_0x627e79;const _0x12f7db=_0x16c4ee['split']('|')[0x0];return this['_isBlockAttribute'](_0x12f7db)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x175b19['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x618449=>{const {id:_0x402969,authorId:_0x1006d7,type:_0x2a2a59,subType:_0x4210eb}=this['_splitMarkerName'](_0x618449['markerName']),_0x4025c4=['ck-suggestion-marker',_0xf987ee(_0x2a2a59,_0x4210eb)];let _0x504023=0xbb8;return this['activeMarkers']['includes'](_0x618449['markerName'])&&(_0x4025c4['push']('ck-suggestion-marker--active'),_0x504023=0xbc2),'deletion'==_0x2a2a59&&(_0x504023+=0x5),{'classes':_0x4025c4,'attributes':{'data-suggestion':_0x402969,'data-author-id':_0x1006d7},'priority':_0x504023};}}),_0x175b19['conversion']['for']('dataDowncast')['add'](_0x3525e8=>{_0x3525e8['on']('addMarker:suggestion',(_0x5236ff,_0x58efa6,_0x291815)=>{if(!_0x291815['options']['showSuggestionHighlights'])return;const _0x590ada=_0x58efa6['item'];if(!_0x590ada)return;const _0x35de02=_0x291815['mapper']['toViewElement'](_0x590ada);_0x175b19['model']['schema']['isObject'](_0x590ada)&&_0x35de02&&!_0x35de02['getCustomProperty']('widget')&&_0x35de02['is']('containerElement')&&_0x49cff7(_0x35de02,_0x291815['writer']);},{'priority':'high'});}),_0x175b19['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x643cb9,_0x31f2e7)=>{if(!_0x31f2e7['options']['showSuggestionHighlights'])return null;const {id:_0x36294e,authorId:_0x43c63,type:_0x2f4530,subType:_0x44435b}=this['_splitMarkerName'](_0x643cb9['markerName']);return{'classes':['ck-suggestion-marker',_0xf987ee(_0x2f4530,_0x44435b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x36294e,'data-author-id':_0x43c63}};}});const _0x39b93e=({showActiveMarkers:_0x2a2a21=!0x0,isAttributeSuggestion:_0x2e92e8=!0x1}={})=>(_0x2a9ad5,_0x192c86,_0x1f0b74)=>{if(!_0x192c86['item'])return;const {id:_0x2d4324,authorId:_0x100560}=this['_splitMarkerName'](_0x192c86['markerName']);if(_0x2e92e8){const _0x32822a=this['_suggestions']['get'](_0x2d4324),_0x320772=this['_getAttributeKey'](_0x32822a);if(!this['_isBlockAttribute'](_0x320772))return;}if(_0x192c86['item']['is']('selection'))return void _0x1f0b74['consumable']['consume'](_0x192c86['item'],_0x2a9ad5['name']);const _0x154dd7=_0x1f0b74['mapper']['toViewElement'](_0x192c86['item']);if(_0x192c86['item']['is']('element')&&_0x175b19['model']['schema']['isBlock'](_0x192c86['item'])&&!_0x154dd7['getCustomProperty']('addHighlight')){_0x1f0b74['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x154dd7),_0x1f0b74['writer']['setAttribute']('data-suggestion',_0x2d4324,_0x154dd7),_0x1f0b74['writer']['setAttribute']('data-author-id',_0x100560,_0x154dd7),_0x1f0b74['mapper']['bindElementToMarker'](_0x154dd7,_0x192c86['markerName']),_0x2a2a21&&(this['activeMarkers']['includes'](_0x192c86['markerName'])?_0x1f0b74['writer']['addClass']('ck-suggestion-marker--active',_0x154dd7):_0x1f0b74['writer']['removeClass']('ck-suggestion-marker--active',_0x154dd7));for(const _0x223469 of _0x175b19['model']['createRangeIn'](_0x192c86['item'])['getItems']())_0x1f0b74['consumable']['consume'](_0x223469,_0x2a9ad5['name']);_0x1f0b74['consumable']['consume'](_0x192c86['item'],_0x2a9ad5['name']);}};_0x175b19['conversion']['for']('dataDowncast')['add'](_0x259b66=>{_0x259b66['on']('addMarker:suggestion:formatBlock',(_0x412248,_0x175698,_0x26dad9)=>{_0x26dad9['options']['showSuggestionHighlights']&&_0x39b93e({'showActiveMarkers':!0x1})(_0x412248,_0x175698,_0x26dad9);},{'priority':'highest'});}),_0x175b19['conversion']['for']('dataDowncast')['add'](_0x11d1c2=>{_0x11d1c2['on']('addMarker:suggestion:attribute',(_0x52cdff,_0x222c7f,_0x50fe5e)=>{_0x50fe5e['options']['showSuggestionHighlights']&&_0x39b93e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x52cdff,_0x222c7f,_0x50fe5e);},{'priority':'highest'});}),_0x175b19['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4183ce,_0x6f65a3)=>{if(_0x6f65a3['options']['showSuggestionHighlights']){const {id:_0x526a27,authorId:_0x1d970c}=this['_splitMarkerName'](_0x4183ce);return _0x4183ce['includes'](':split')||_0x4183ce['includes'](':merge')?{'group':'suggestion','name':_0x4183ce['substr'](0xb),'attributes':{'data-suggestion':_0x526a27,'data-author-id':_0x1d970c}}:null;}return{'group':'suggestion','name':_0x4183ce['substr'](0xb)};}}),_0x175b19['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x104f29,{writer:_0x3bdc41})=>{let _0x275d72='suggestion:'+_0x104f29['getAttribute']('suggestion-type')+':'+_0x104f29['getAttribute']('id');return _0x104f29['getAttribute']('marker-count')&&(_0x275d72+=':'+_0x104f29['getAttribute']('marker-count')),_0x3bdc41['createElement']('$marker',{'data-name':_0x275d72});}}),_0x175b19['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x15db5d=>{_0x15db5d['on']('addMarker:suggestion:formatBlock',_0x39b93e(),{'priority':'high'});}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x4f5cbc=>{_0x4f5cbc['on']('addMarker:suggestion:attribute',_0x39b93e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x101172=>{_0x101172['on']('removeMarker:suggestion:formatBlock',(_0x15c6e8,_0x3059d3,_0x410f78)=>{const _0x314ef5=_0x410f78['mapper']['markerNameToElements'](_0x3059d3['markerName']);if(_0x314ef5){for(const _0x506324 of _0x314ef5)_0x506324['getCustomProperty']('addHighlight')||(_0x410f78['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x506324),_0x410f78['writer']['removeAttribute']('data-suggestion',_0x506324),_0x410f78['writer']['removeAttribute']('data-author-id',_0x506324),_0x410f78['mapper']['unbindElementFromMarkerName'](_0x506324,_0x3059d3['markerName']));}},{'priority':'high'});}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x365354=>{_0x365354['on']('removeMarker:suggestion:attribute',(_0x23dc06,_0x38975d,_0x1cd1ea)=>{const _0xdfca4e=_0x1cd1ea['mapper']['markerNameToElements'](_0x38975d['markerName']);if(!_0xdfca4e)return;const {id:_0x349a2b}=this['_splitMarkerName'](_0x38975d['markerName']),_0x42dd78=this['_suggestions']['get'](_0x349a2b),_0x1f7f9c=this['_getAttributeKey'](_0x42dd78);if(this['_isBlockAttribute'](_0x1f7f9c)){for(const _0x4cfe1d of _0xdfca4e)_0x4cfe1d['getCustomProperty']('addHighlight')||(_0x1cd1ea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4cfe1d),_0x1cd1ea['writer']['removeAttribute']('data-suggestion',_0x4cfe1d),_0x1cd1ea['writer']['removeAttribute']('data-author-id',_0x4cfe1d),_0x1cd1ea['mapper']['unbindElementFromMarkerName'](_0x4cfe1d,_0x38975d['markerName']));}},{'priority':'high'});}),_0x175b19['model']['document']['registerPostFixer'](_0x60f50a=>{let _0x4684e7=!0x1;const _0x8bc4c5=Array['from'](_0x175b19['model']['document']['differ']['getChangedMarkers']()),_0x415d35=new Set();for(const {name:_0xa78ab5,data:_0x48e164}of _0x8bc4c5){const {group:_0xc9a767,type:_0x4920ca,subType:_0x173ca4,id:_0x54af6b}=this['_splitMarkerName'](_0xa78ab5);if('suggestion'!==_0xc9a767)continue;const _0x58c0ac=this['_suggestions']['get'](_0x54af6b);if(null!=_0x48e164['newRange']){'formatInline'==_0x4920ca&&(_0x4684e7=_0x4684e7||Gt(_0x48e164['newRange'],_0xa78ab5,_0x60f50a,_0x175b19['model']['schema']));const _0x1ecc1e='attribute'==_0x4920ca&&this['_isBlockAttribute'](_0x173ca4['split']('|')[0x0]);if(_0x48e164['newRange']['isCollapsed']||'$graveyard'==_0x48e164['newRange']['root']['rootName']||'formatBlock'==_0x4920ca&&!Jt(_0x48e164['newRange'])||_0x1ecc1e&&!Jt(_0x48e164['newRange'])||'deletion'==_0x4920ca&&!Kt(_0x48e164['newRange']))_0x60f50a['removeMarker'](_0xa78ab5),_0x4684e7=!0x0;else{if(!_0x58c0ac||!_0x58c0ac['isInContent'])continue;if(_0x48e164['newRange']&&_0x48e164['oldRange']&&_0x48e164['newRange']['isEqual'](_0x48e164['oldRange']))continue;_0x415d35['add'](_0x58c0ac);}}}return _0x415d35['size']>0x0&&(_0x4684e7=!!this['_joinWithAdjacentSuggestions'](_0x415d35)||_0x4684e7),_0x4684e7;}),_0x175b19['model']['document']['registerPostFixer'](_0x38710d=>{let _0x1e2478=!0x1;for(const _0x57b4e2 of _0x175b19['model']['document']['differ']['getChanges']())if('insert'==_0x57b4e2['type'])for(const _0x217d5b of this['_suggestions']['values']()){if(_0x217d5b['isMultiRange']||!_0x217d5b['isInContent'])continue;const _0x166fc3='formatBlock'==_0x217d5b['type'],_0x26736e=this['_getAttributeKey'](_0x217d5b),_0x1187cd=_0x26736e&&this['_isBlockAttribute'](_0x26736e);if(!_0x166fc3&&!_0x1187cd)continue;const _0x351e17=_0x217d5b['getFirstRange']();if(_0x351e17['start']['parent']!=_0x351e17['end']['parent']&&!_0x351e17['end']['isAtEnd']){const _0x681574=_0x175b19['model']['createPositionAt'](_0x351e17['start']['nodeAfter'],'end'),_0x103ee7=_0x175b19['model']['createRange'](_0x351e17['start'],_0x681574);_0x38710d['updateMarker'](_0x217d5b['getFirstMarker'](),{'range':_0x103ee7}),_0x1e2478=!0x0;}}return _0x1e2478;}),_0x175b19['model']['document']['registerPostFixer'](_0x506d62=>this['_processAttributeChanges'](_0x506d62)),_0x175b19['model']['document']['registerPostFixer'](_0x2a42db=>!_0x2a42db['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a42db)),_0x175b19['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x175b19['model']['document']['on']('change:data',(_0x33efd0,_0x41ad2b)=>{if(!_0x41ad2b['isLocal']||_0x41ad2b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x548441=_0x175b19['model']['document']['differ']['getChanges']();if(0x0==_0x548441['length'])return;const _0x291fc2=[],_0x58cb3b=_0x548441['filter'](_0x5d49c1=>'attribute'==_0x5d49c1['type']),_0x33ae95=_0x548441['filter'](_0x5c8e32=>'insert'==_0x5c8e32['type']&&'$text'!=_0x5c8e32['name']);for(const _0x1c1129 of _0x58cb3b)this['_isRegisteredAttribute'](_0x1c1129['attributeKey'])&&_0x291fc2['push']({'key':_0x1c1129['attributeKey'],'newValue':_0x1c1129['attributeNewValue'],'oldValue':_0x1c1129['attributeOldValue'],'range':Ht(_0x1c1129['range'],_0x175b19['model'])});for(const _0x25c206 of _0x33ae95){if('rename'!=_0x25c206['action']&&'refresh'!=_0x25c206['action'])continue;const _0x4bef23=qt(_0x25c206['position']['nodeAfter'],_0x175b19['model']),_0x3bde3b=_0x25c206['before'];'rename'==_0x25c206['action']&&_0x291fc2['push']({'key':m,'newValue':_0x25c206['name'],'oldValue':_0x3bde3b['name'],'range':_0x4bef23});for(const [_0x562053,_0x4e0cd4]of _0x3bde3b['attributes']){if(!this['_isRegisteredAttribute'](_0x562053))continue;const _0x1ec0df=_0x25c206['attributes']['get'](_0x562053);_0x4e0cd4!==_0x1ec0df&&_0x291fc2['push']({'key':_0x562053,'newValue':_0x1ec0df,'oldValue':_0x4e0cd4,'range':_0x4bef23});}for(const [_0x567381,_0x2506cd]of _0x25c206['attributes'])this['_isRegisteredAttribute'](_0x567381)&&(_0x3bde3b['attributes']['has'](_0x567381)||_0x291fc2['push']({'key':_0x567381,'newValue':_0x2506cd,'oldValue':null,'range':_0x4bef23}));}0x0!=_0x291fc2['length']&&_0x175b19['model']['enqueueChange'](_0x41ad2b,_0x4771bb=>{const _0x10b476=_0x2e07c2();for(const {range:_0x49f0e5,key:_0x362414,oldValue:_0xa6a1d6,newValue:_0x1f7c86}of _0x291fc2)this['markAttributeChange'](_0x49f0e5,_0x362414,_0xa6a1d6,_0x1f7c86,{'groupId':_0x10b476});this['_reduceExistingSuggestions'](_0x4771bb,_0x291fc2);});},{'priority':'lowest'}),_0x175b19['model']['markers']['on']('update:suggestion',(_0x27c4cf,_0x1761de,_0x45e984)=>{if(null==_0x45e984){const {id:_0x1e316b}=this['_splitMarkerName'](_0x1761de['name']),_0xebc5b1=this['_suggestions']['get'](_0x1e316b);_0xebc5b1&&_0xebc5b1['addMarkerName'](_0x1761de['name']);}}),_0x175b19['model']['document']['on']('change:data',()=>{const _0x22646f=Array['from'](_0x175b19['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4bb122=>'suggestion'===this['_splitMarkerName'](_0x4bb122['name'])['group']);if(0x0===_0x22646f['length'])return;_0x22646f['sort']((_0x3e3233,_0x48966c)=>{const _0x48c941=_0x3e3233['data']['oldRange'],_0x49b1da=_0x48966c['data']['oldRange'];return null===_0x48c941&&null===_0x49b1da?0x0:null===_0x48c941&&null!==_0x49b1da?-0x1:null!==_0x48c941&&null===_0x49b1da?0x1:_0x48c941['start']['isBefore'](_0x49b1da['start'])?-0x1:0x1;});const _0x3df203=new Set(),_0x384bee=new Set();for(const {name:_0x349dfc,data:_0x4c9ded}of _0x22646f){const {id:_0x306f63}=this['_splitMarkerName'](_0x349dfc);if(null===_0x4c9ded['oldRange']){const _0x32ce4f=this['_handleNewSuggestionMarker'](_0x349dfc);_0x384bee['add'](_0x32ce4f);}else{const _0x4cfb29=this['_suggestions']['get'](_0x306f63);null!==_0x4c9ded['newRange']||_0x4cfb29['isInContent']?(_0x3df203['add'](_0x4cfb29['head']),_0x384bee['add'](_0x4cfb29)):this['_removeSuggestion'](_0x4cfb29);}}_0x384bee['size']>0x0&&this['_refreshSuggestionsChain'](_0x384bee);for(const _0x5ebf03 of _0x3df203)this['fire']('suggestionChanged',_0x5ebf03);}),_0x175b19['model']['on']('applyOperation',(_0x46092c,_0x356136)=>{const _0x22fb71=_0x356136[0x0];if(!this['_suggestions']['size'])return;if(!_0x22fb71['isDocumentOperation'])return;if(_0x22fb71['batch']['isUndo']||!_0x22fb71['batch']['isLocal'])return;let _0xfb46ae,_0x22e184;switch(_0x22fb71['type']){case'insert':_0xfb46ae=_0x175b19['model']['createPositionAt'](_0x22fb71['position']),_0x22e184=_0xfb46ae['getShiftedBy'](_0x22fb71['howMany']);break;case'split':_0xfb46ae=_0x175b19['model']['createPositionAt'](_0x22fb71['splitPosition']),_0x22e184=_0x175b19['model']['createPositionAt'](_0x22fb71['moveTargetPosition']);break;case'move':_0xfb46ae=_0x175b19['model']['createPositionAt'](_0x22fb71['targetPosition']),_0x22e184=_0xfb46ae['getShiftedBy'](_0x22fb71['howMany']);break;default:return;}const _0x3bd006=_0x175b19['model']['createRange'](_0xfb46ae,_0x22e184);_0x175b19['model']['change'](()=>{for(const {suggestion:_0x31958d,meta:_0x182f19}of this['_findSuggestions'](_0x3bd006)){if(_0x31958d['isMultiRange'])continue;if('formatInline'==_0x31958d['type'])continue;const _0xdf5ad8=this['_getAttributeKey'](_0x31958d);if(_0xdf5ad8&&this['_isBlockAttribute'](_0xdf5ad8)&&'split'!=_0x22fb71['type'])continue;const _0xdf03b2=_0x31958d['data']&&_0x31958d['data']['multipleBlocks'];('formatBlock'!=_0x31958d['type']||'split'==_0x22fb71['type']&&!_0xdf03b2)&&(_0x182f19['containsRangeInObject']||'insertion'==_0x31958d['type']&&_0x182f19['isOwn']||_0x31958d['getFirstRange']()['containsRange'](_0x3bd006)&&this['_breakSuggestionMarker'](_0x31958d,_0xfb46ae,_0x22e184));}});},{'priority':'lowest'}),_0x175b19['model']['on']('deleteContent',(_0x1fd750,_0x2be14e)=>{const _0x19c0d5=_0x2be14e[0x0],_0x459200=_0x2be14e[0x1];if(_0x459200&&_0x459200['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x19c0d5['isCollapsed'])return;const _0x4aafa0=_0x175b19['model']['schema'],{start:_0x489546,end:_0x160108}=_0x19c0d5['getFirstRange'](),_0x1ea663=_0x489546['nodeAfter']&&_0x4aafa0['isLimit'](_0x489546['nodeAfter'])?null:_0x4aafa0['getNearestSelectionRange'](_0x489546,'forward'),_0x244688=_0x160108['nodeBefore']&&_0x4aafa0['isLimit'](_0x160108['nodeBefore'])?null:_0x4aafa0['getNearestSelectionRange'](_0x160108,'backward'),_0xa7544c=_0x175b19['model']['createRange'](_0x1ea663?_0x1ea663['start']:_0x489546,_0x244688?_0x244688['end']:_0x160108);_0x175b19['model']['change'](_0x2d5870=>{this['markDeletion'](_0xa7544c);const _0x3443d7=_0x175b19['model']['schema']['getNearestSelectionRange'](_0xa7544c['start']);_0x19c0d5['is']('documentSelection')?_0x2d5870['setSelection'](_0x3443d7):_0x19c0d5['setTo'](_0x3443d7);}),_0x1fd750['stop']();},{'priority':_0x5a860b['normal']+0xa}),_0x175b19['model']['on']('insertContent',(_0x2a8308,_0x442a7c)=>{const _0x446790=_0x442a7c[_0x442a7c['length']-0x1];_0x446790&&_0x446790['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x175b19['model']['change'](()=>{let _0x10e735=_0x175b19['model']['insertContent'](_0x442a7c[0x0],_0x442a7c[0x1],_0x442a7c[0x2],{'forceDefaultExecution':!0x0});if(!_0x10e735)return;_0x2a8308['return']=_0x10e735['clone']();const _0x55a9d2=_0x10e735['end']['nodeBefore'],_0x20a0db=_0x175b19['model']['schema'];_0x55a9d2&&_0x20a0db['isBlock'](_0x55a9d2)&&!_0x20a0db['isObject'](_0x55a9d2)&&(_0x10e735=_0x175b19['model']['createRange'](_0x10e735['start'],_0x175b19['model']['createPositionAt'](_0x55a9d2,'end'))),this['markInsertion'](_0x10e735);}),_0x2a8308['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xdfe8d3=new D(_0x175b19,this['_suggestions']);_0x175b19['commands']['add']('acceptSuggestion',_0xdfe8d3),this['enableCommand']('acceptSuggestion');const _0x1e8840=new M(_0x175b19,this['_suggestions']);_0x175b19['commands']['add']('discardSuggestion',_0x1e8840),this['enableCommand']('discardSuggestion'),_0x175b19['commands']['add']('acceptAllSuggestions',new $(_0x175b19,_0xdfe8d3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x175b19['commands']['add']('discardAllSuggestions',new $(_0x175b19,_0x1e8840,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x175b19['commands']['add']('acceptSelectedSuggestions',new B(_0x175b19,_0xdfe8d3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x175b19['commands']['add']('discardSelectedSuggestions',new B(_0x175b19,_0x1e8840,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b767f=_0x175b19['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b767f,'addComment',(_0x1adb8d,{threadId:_0x1bdc16})=>{const _0x2892a1=this['_suggestions']['get'](_0x1bdc16);_0x2892a1&&_0x2892a1['commentThread']&&0x1===_0x2892a1['commentThread']['length']&&this['_updateSuggestionData'](_0x1bdc16,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b767f,'removeComment',(_0x3d12f7,{threadId:_0x1d0b6b})=>{const _0x837459=this['_suggestions']['get'](_0x1d0b6b);_0x837459&&_0x837459['commentThread']&&!_0x837459['commentThread']['length']&&this['_updateSuggestionData'](_0x1d0b6b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x21902c){const _0x44aecf=_0x241d78([0x75,0x50,0x47,0x36,0x46,0x65,0x58,0x64,0x48,0x74,0x70,0x71,0x34,0x59,0x6d,0x37,0x62,0x54,0x6c,0x49,0x6b,0x31,0x6e,0x39,0x4a,0x44,0x38,0x5a,0x73,0x41,0x42,0x61,0x79,0x51,0x57,0x4f,0x35,0x78,0x45,0x4d,0x32,0x63,0x53,0x66,0x55,0x6a,0x7a,0x30,0x68,0x4e,0x67,0x4b,0x77,0x52,0x6f,0x33,0x43,0x72,0x69,0x76,0x4c,0x56]),_0x3fd384=0x19085c21,_0x2fee01=0x190f30b9^_0x3fd384,_0x1ad7dd=window[_0x241d78([0x44,0x61,0x74,0x65])][_0x241d78([0x6e,0x6f,0x77])](),_0x2a7f1d=_0x21902c[_0x241d78([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x533344=new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d7620=>{_0x2a7f1d[_0x241d78([0x6f,0x6e,0x63,0x65])](_0x241d78([0x72,0x65,0x61,0x64,0x79]),_0x3d7620);}),_0x8a9a3a={[_0x241d78([0x6b,0x74,0x79])]:_0x241d78([0x45,0x43]),[_0x241d78([0x75,0x73,0x65])]:_0x241d78([0x73,0x69,0x67]),[_0x241d78([0x63,0x72,0x76])]:_0x241d78([0x50,0x2d,0x32,0x35,0x36]),[_0x241d78([0x78])]:_0x241d78([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]),[_0x241d78([0x79])]:_0x241d78([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]),[_0x241d78([0x61,0x6c,0x67])]:_0x241d78([0x45,0x53,0x32,0x35,0x36])},_0x427535=_0x2a7f1d[_0x241d78([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x241d78([0x67,0x65,0x74])](_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x376f16(){let _0x28bf2b,_0x3e8d1c=null,_0x4c7d46=null;try{if(_0x427535==_0x241d78([0x47,0x50,0x4c]))return _0x241d78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28bf2b=_0x236142(),!_0x28bf2b)return _0x241d78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28bf2b[_0x241d78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c7d46=_0x4de95d(_0x28bf2b[_0x241d78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28bf2b[_0x241d78([0x6a,0x74,0x69])])),await _0x295ce7()?_0x2db9a7()?_0x59a5e5()?_0x241d78([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1eb1a0()?(_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x241d78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e8d1c=_0x50583d(_0x241d78([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x241d78([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e8d1c=_0x50583d(_0x241d78([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ad858()):_0x241d78([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x241d78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x241d78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x241d78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59a5e5(){const _0x42bb8a=[_0x241d78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x241d78([0x74,0x72,0x69,0x61,0x6c])][_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ad7dd/0x3e8:0xe10*_0x2fee01;return _0x28bf2b[_0x241d78([0x65,0x78,0x70])]<_0x42bb8a;}function _0x2db9a7(){const _0x3311da=_0x28bf2b[_0x241d78([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3311da)return!0x1;if(_0x3311da[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x2a])))return!0x0;if(_0x3311da[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x54,0x43])))return!0x0;if(_0x3311da[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x52,0x54,0x43]))){if(_0xedac85())return!0x0;if(_0x470575()||_0x31a297())return!0x0;}return!0x1;}function _0x1eb1a0(){const _0x15e581=_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15e581||0x0==_0x15e581[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x282794}=new URL(window[_0x241d78([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15e581[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x282794))return!0x0;const _0x50f04f=_0x282794[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e]));return _0x15e581[_0x241d78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b3912=>_0x2b3912[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x2a])))[_0x241d78([0x6d,0x61,0x70])](_0x333f62=>_0x333f62[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e])))[_0x241d78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b2266=>_0x5b2266[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x50f04f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x241d78([0x6d,0x61,0x70])](_0x19f515=>Array(_0x50f04f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19f515[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x241d78([0x66,0x69,0x6c,0x6c])](_0x19f515[0x0]===_0x241d78([0x2a])?_0x241d78([0x2a]):'')[_0x241d78([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19f515))[_0x241d78([0x73,0x6f,0x6d,0x65])](_0x15cd27=>_0x50f04f[_0x241d78([0x65,0x76,0x65,0x72,0x79])]((_0x2107a7,_0x23e084)=>_0x15cd27[_0x23e084]===_0x2107a7||_0x15cd27[_0x23e084]===_0x241d78([0x2a])));}function _0x3ad858(){return _0x3e8d1c&&_0x4c7d46?new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e3252,_0x404966)=>{_0x3e8d1c[_0x241d78([0x74,0x68,0x65,0x6e])](_0x1e3252,_0x404966),_0x4c7d46[_0x241d78([0x74,0x68,0x65,0x6e])](_0x4da337=>{_0x4da337!=_0x241d78([0x56,0x61,0x6c,0x69,0x64])&&_0x1e3252(_0x4da337);},_0x404966);}):_0x3e8d1c||_0x4c7d46||_0x241d78([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4de95d(_0x244524,_0x51b952){return new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2720d2=>{if(_0x274a74())return _0x2720d2(_0x241d78([0x56,0x61,0x6c,0x69,0x64]));_0x16acd9(),_0x2a7f1d[_0x241d78([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x241d78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30386f=!0x1;const _0x1780f8=_0x2e07c2();function _0x5a14a8(_0x18ca99){return!!_0x18ca99&&(typeof _0x18ca99===_0x241d78([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18ca99===_0x241d78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18ca99[_0x241d78([0x74,0x68,0x65,0x6e])]===_0x241d78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18ca99[_0x241d78([0x63,0x61,0x74,0x63,0x68])]===_0x241d78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x308de6(_0x226f4f){_0x28d4c5(_0x226f4f)[_0x241d78([0x74,0x68,0x65,0x6e])](_0x197afb=>{if(!_0x197afb||_0x197afb[_0x241d78([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x241d78([0x6f,0x6b]))return _0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29a6aa(_0x2bb4bc(_0x1780f8+_0x51b952))!=_0x197afb[_0x241d78([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x241d78([0x56,0x61,0x6c,0x69,0x64]);})[_0x241d78([0x74,0x68,0x65,0x6e])](_0x368abf=>(_0x303c98(),_0x368abf),()=>{const _0x3861f2=_0x4cfaec();return null==_0x3861f2?(_0x303c98(),_0x241d78([0x56,0x61,0x6c,0x69,0x64])):_0x241d78(_0x1ad7dd-_0x3861f2>(0x3d04d821^_0x3fd384)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x241d78([0x74,0x68,0x65,0x6e])](_0x2720d2)[_0x241d78([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2720d2(_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fd5df=0x193eb2a1^_0x3fd384;function _0x303c98(){const _0x54d6f1=_0x241d78([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a6aa(_0x2bb4bc(_0x244524)),_0x2f3b9b=_0x538dee(_0x29a6aa(window[_0x241d78([0x4d,0x61,0x74,0x68])][_0x241d78([0x63,0x65,0x69,0x6c])](_0x1ad7dd/_0x2fd5df)));window[_0x241d78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x241d78([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d6f1,_0x2f3b9b);}function _0x4cfaec(){const _0x22dd6e=_0x241d78([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a6aa(_0x2bb4bc(_0x244524)),_0x2522c3=window[_0x241d78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x241d78([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22dd6e);return _0x2522c3?window[_0x241d78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x538dee(_0x2522c3),0x10)*_0x2fd5df:null;}function _0x28d4c5(_0xe805c1){return new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9ab175,_0x22d97f)=>{_0xe805c1[_0x241d78([0x74,0x68,0x65,0x6e])](_0x9ab175,_0x22d97f),window[_0x241d78([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22d97f,0x190988e1^_0x3fd384);});}}_0x2a7f1d[_0x241d78([0x6f,0x6e])](_0x241d78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e7748,_0x5e95e3)=>{if(_0x5e95e3[0x0]!=_0x244524)return _0x2720d2(_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e95e3[0x1]={..._0x5e95e3[0x1],[_0x241d78([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1780f8};},{[_0x241d78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x241d78([0x68,0x69,0x67,0x68])}),_0x2a7f1d[_0x241d78([0x6f,0x6e])](_0x241d78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a3084=>{_0x5a14a8(_0x4a3084[_0x241d78([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30386f=!0x0,_0x308de6(_0x4a3084[_0x241d78([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x241d78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x241d78([0x6c,0x6f,0x77])}),_0x533344[_0x241d78([0x74,0x68,0x65,0x6e])](()=>{_0x30386f||_0x2720d2(_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x274a74(){return _0x2a7f1d[_0x241d78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x241d78([0x76,0x69,0x65,0x77])][_0x241d78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x241d78([0x61,0x75,0x74,0x6f]);}function _0x16acd9(){_0x2a7f1d[_0x241d78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x241d78([0x76,0x69,0x65,0x77])][_0x241d78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x241d78([0x61,0x75,0x74,0x6f]);}}function _0x50583d(_0x21c578){const _0x416867=[new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1526e5=>setTimeout(_0x1526e5,0x190162ed^_0x3fd384)),_0x533344[_0x241d78([0x74,0x68,0x65,0x6e])](()=>new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149e8c=>{let _0x5ac980=0x0;_0x2a7f1d[_0x241d78([0x6d,0x6f,0x64,0x65,0x6c])][_0x241d78([0x6f,0x6e])](_0x241d78([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x575e8e,_0x1323b8)=>{_0x1323b8[0x0][_0x241d78([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ac980++,_0x5ac980==(0x19085dd9^_0x3fd384)&&(_0x149e8c(),_0x575e8e[_0x241d78([0x6f,0x66,0x66])]());});}))];return window[_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x241d78([0x72,0x61,0x63,0x65])](_0x416867)[_0x241d78([0x74,0x68,0x65,0x6e])](()=>_0x21c578);}async function _0x51fe3f(){await _0x533344,_0x2a7f1d[_0x241d78([0x6d,0x6f,0x64,0x65,0x6c])][_0x241d78([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf06005,_0x2a7f1d[_0x241d78([0x6d,0x6f,0x64,0x65,0x6c])][_0x241d78([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf06005,_0x2a7f1d[_0x241d78([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x241d78([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xedac85(){return _0x2e5acc(_0x241d78([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26be85(_0x241d78([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x241d78([0x73,0x74,0x61,0x74,0x65])]==_0x241d78([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x470575(){return _0x2e5acc(_0x241d78([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 _0x31a297(){return _0x2e5acc(_0x241d78([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x31877c(_0x4d4a5b){const _0x27d1f7=_0x5d0a31();_0x2a7f1d[_0x27d1f7]=_0x241d78([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d4a5b,_0x4d4a5b!=_0x241d78([0x56,0x61,0x6c,0x69,0x64])&&_0x51fe3f();}function _0x5d0a31(){const _0x13c03f=window[_0x241d78([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x241d78([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x241d78([0x6e,0x6f,0x77])]())[_0x241d78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x241d78([0x2e]),'');let _0x2c862f=_0x241d78([0x75]);for(let _0x56775e=0x0;_0x56775e<_0x13c03f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56775e+=0x2){let _0x3c8cd6=window[_0x241d78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13c03f[_0x241d78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56775e,_0x56775e+0x2));_0x3c8cd6>=_0x44aecf[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c8cd6-=_0x44aecf[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c862f+=_0x44aecf[_0x3c8cd6];}return _0x2c862f;}function _0x236142(){const _0xaf1019=_0x427535[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e]));if(0x3!=_0xaf1019[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27b1cf(_0xaf1019[0x1]);function _0x27b1cf(_0x51d783){const _0x533251=_0x266d2a(_0x51d783);return _0x533251&&_0xb8c08c()?_0x533251:null;function _0xb8c08c(){const _0x105ce8=_0x533251[_0x241d78([0x6a,0x74,0x69])],_0x3dc7c1=window[_0x241d78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x105ce8[_0x241d78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x105ce8[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xad3e3a={..._0x533251,[_0x241d78([0x6a,0x74,0x69])]:_0x105ce8[_0x241d78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x105ce8[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xad3e3a[_0x241d78([0x76,0x63])],_0x2bb4bc(_0xad3e3a)==_0x3dc7c1;}}}async function _0x295ce7(){let _0x3c6f2b=!0x0;try{const _0x3bcc0e=_0x427535[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e])),[_0x3ec32a,_0x168a35,_0x16d121]=_0x3bcc0e;return _0x1759a5(_0x3ec32a),await _0x294cb5(_0x3ec32a,_0x168a35,_0x16d121),_0x3c6f2b;}catch{return!0x1;}function _0x1759a5(_0x3e1f4b){const _0x3c1fad=_0x266d2a(_0x3e1f4b);_0x3c1fad&&_0x3c1fad[_0x241d78([0x61,0x6c,0x67])]==_0x241d78([0x45,0x53,0x32,0x35,0x36])||(_0x3c6f2b=!0x1);}async function _0x294cb5(_0x3c6d8b,_0x39b462,_0xc884ca){const _0x511f0c=window[_0x241d78([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x241d78([0x66,0x72,0x6f,0x6d])](_0x907c85(_0xc884ca),_0x17a967=>_0x17a967[_0x241d78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fd14c=new window[(_0x241d78([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x241d78([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c6d8b+_0x241d78([0x2e])+_0x39b462),_0x128d87=window[_0x241d78([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x241d78([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x128d87)return;const _0x2723ab=await _0x128d87[_0x241d78([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x241d78([0x6a,0x77,0x6b]),_0x8a9a3a,{[_0x241d78([0x6e,0x61,0x6d,0x65])]:_0x241d78([0x45,0x43,0x44,0x53,0x41]),[_0x241d78([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x241d78([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x241d78([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x128d87[_0x241d78([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x241d78([0x6e,0x61,0x6d,0x65])]:_0x241d78([0x45,0x43,0x44,0x53,0x41]),[_0x241d78([0x68,0x61,0x73,0x68])]:{[_0x241d78([0x6e,0x61,0x6d,0x65])]:_0x241d78([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2723ab,_0x511f0c,_0x2fd14c)||(_0x3c6f2b=!0x1);}}function _0x266d2a(_0x37d4f7){return _0x37d4f7[_0x241d78([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x241d78([0x65,0x79]))?JSON[_0x241d78([0x70,0x61,0x72,0x73,0x65])](_0x907c85(_0x37d4f7)):null;}function _0x907c85(_0x5b6d22){return window[_0x241d78([0x61,0x74,0x6f,0x62])](_0x5b6d22[_0x241d78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x241d78([0x2b]))[_0x241d78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x241d78([0x2f])));}function _0x2bb4bc(_0x41f215){let _0x51ccf0=0x1505;function _0x86a86b(_0xd96c2f){for(let _0x4f8a5f=0x0;_0x4f8a5f<_0xd96c2f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f8a5f++){const _0x5b6d83=_0xd96c2f[_0x241d78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f8a5f);_0x51ccf0=(_0x51ccf0<<0x5)+_0x51ccf0+_0x5b6d83,_0x51ccf0&=_0x51ccf0;}}function _0x1200ca(_0x179ee8){Array[_0x241d78([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x179ee8)?_0x179ee8[_0x241d78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1200ca):_0x179ee8&&typeof _0x179ee8==_0x241d78([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x241d78([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x179ee8)[_0x241d78([0x73,0x6f,0x72,0x74])]()[_0x241d78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22e836,_0x2a5815])=>{_0x86a86b(_0x22e836),_0x1200ca(_0x2a5815);}):_0x86a86b(window[_0x241d78([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x179ee8));}return _0x1200ca(_0x41f215),_0x51ccf0>>>0x0;}function _0x29a6aa(_0x3ddfbe){return _0x3ddfbe[_0x241d78([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x241d78([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x241d78([0x30]));}function _0x538dee(_0x19a1f3){return _0x19a1f3[_0x241d78([0x73,0x70,0x6c,0x69,0x74])]('')[_0x241d78([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x241d78([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e5acc(_0x3b2043){return _0x2a7f1d[_0x241d78([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x241d78([0x68,0x61,0x73])](_0x3b2043);}function _0x26be85(_0x1e9e78){return _0x2a7f1d[_0x241d78([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x241d78([0x67,0x65,0x74])](_0x1e9e78);}function _0xf06005(){}function _0x241d78(_0x423a73){return _0x423a73['map'](_0x361239=>String['fromCharCode'](_0x361239))['join']('');}_0x31877c(await _0x376f16());}(this);}set['adapter'](_0x397439){if(this['_adapter'])throw new _0x3ef735('track-changes-adapter-already-set',this);this['_adapter']=_0x397439;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x554a38=!0x1,toJSON:_0x556df2=!0x1}={}){const _0x5717c4=[];for(const _0x111005 of this['_suggestions']['values']())_0x554a38&&!_0x111005['isInContent']||_0x5717c4['push'](_0x111005);return _0x556df2?_0x5717c4['map'](_0x5a8d56=>_0x5a8d56['toJSON']()):_0x5717c4;}['getSuggestion'](_0x5bf659){const _0x4d56cb=this['_suggestions']['get'](_0x5bf659);if(!_0x4d56cb)throw new _0x3ef735('track-changes-suggestion-not-found',this);return _0x4d56cb;}['hasSuggestion'](_0x294011){return this['_suggestions']['has'](_0x294011);}['addSuggestionData'](_0xa36207){const {authorId:_0x4b655f,id:_0x21a68f,originalSuggestionId:_0x2b02f7,attributes:_0xa88ad6}=_0xa36207,[_0x5efdb0,_0x229bc5]=_0xa36207['type']['split'](':'),_0xdaa07a=this['_suggestions']['get'](_0x21a68f)||this['_createSuggestion'](_0x5efdb0,_0x229bc5,_0x21a68f,_0x4b655f,_0xa88ad6,_0x2b02f7);if(this['_addThreadToSuggestion'](_0xdaa07a),this['_checkSuggestionCorrectness'](_0xdaa07a,_0x5efdb0,_0x229bc5||null,_0x4b655f),_0xdaa07a['createdAt']=_0xa36207['createdAt'],_0xdaa07a['_isDataLoaded']=!0x0,_0xa88ad6&&_0xa88ad6['@external']){const _0x214174=_0xa88ad6['@external'],_0x9c6e=this['_getExternalAuthor'](_0x214174['authorName']);_0xdaa07a['authoredAt']=_0x214174['createdAt'],_0xdaa07a['author']=_0x9c6e,_0xdaa07a['isExternal']=!0x0;}else _0xdaa07a['authoredAt']=_0xa36207['createdAt'];switch(_0xa36207['data']&&(_0xdaa07a['data']=_0xa36207['data']),_0xa36207['attributes']&&(_0xdaa07a['attributes']=_0xa36207['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xdaa07a['_saved']=!0x0),this['_suggestionState']['get'](_0xdaa07a)){case'notReady':this['_suggestionState']['set'](_0xdaa07a,'dataReady');break;case'markerReady':_0xdaa07a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xdaa07a])),this['_refreshSuggestionsChain'](new Set([_0xdaa07a])),this['_suggestionState']['set'](_0xdaa07a,'ready'),this['fire']('suggestionLoaded',_0xdaa07a)):this['_suggestionState']['set'](_0xdaa07a,'removed');}return _0xdaa07a;}['acceptSuggestion'](_0x3993dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x344c9e of _0x3993dc['getAllAdjacentSuggestions']())_0x344c9e['accept']();});});}['discardSuggestion'](_0xba11be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3cf5be of _0xba11be['getAllAdjacentSuggestions']())_0x3cf5be['discard']();});});}['enableCommand'](_0x4def9c,_0xb0eae0){const _0x15e60f=this['editor']['commands']['get'](_0x4def9c);if(!_0x15e60f)throw new _0x3ef735('track-changes-command-not-found',this,{'commandName':_0x4def9c});if(this['_enabledCommands']['has'](_0x15e60f))throw new _0x3ef735('track-changes-enable-command-twice',this,{'commandName':_0x4def9c});this['_enabledCommands']['add'](_0x15e60f),_0xb0eae0&&_0x15e60f['on']('execute',(_0x20eb74,_0x48b00b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48b00b['length']>0x0&&_0x48b00b[_0x48b00b['length']-0x1]&&_0x48b00b[_0x48b00b['length']-0x1]['forceDefaultExecution']?_0x48b00b['pop']():(_0x20eb74['return']=_0xb0eae0((..._0x20ac3a)=>_0x15e60f['execute'](..._0x20ac3a,{'forceDefaultExecution':!0x0}),..._0x48b00b),_0x20eb74['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5348d4){let _0x27ae27,_0x507b46;const _0x129d03=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x27ae27=_0x5348d4();}catch(_0x8f4fba){_0x507b46=_0x8f4fba;}return _0x129d03||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x507b46&&_0x3ef735['rethrowUnexpectedError'](_0x507b46,this),_0x27ae27;}['markInsertion'](_0x2eb646,_0x495ed8=null,_0x4d9686={}){if(_0x2eb646['isCollapsed'])return null;const _0x58ce9c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4d9686['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x244fa1,meta:_0x2a58a0}of this['_findSuggestions'](_0x2eb646,'insertion'))if(_0x2a58a0['isOwn']){if(!_0x2a58a0['isNextTo']){if(_0x2a58a0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x244fa1,_0x4d9686))continue;return _0x244fa1;}if(Qt(_0x244fa1,_0x4d9686))return _0x244fa1;this['_breakSuggestionMarker'](_0x244fa1,_0x2eb646['start'],_0x2eb646['end']);break;}if(_0x495ed8==_0x244fa1['subType']&&Qt(_0x244fa1,_0x4d9686)){const _0x586660=_0x244fa1['getFirstRange']();return _0x586660['start']['isEqual'](_0x2eb646['end'])?this['_setSuggestionRange'](_0x244fa1,this['_model']['createRange'](_0x2eb646['start'],_0x586660['end'])):this['_setSuggestionRange'](_0x244fa1,this['_model']['createRange'](_0x586660['start'],_0x2eb646['end'])),_0x244fa1;}}const _0x5e556d=_0x2e07c2(),_0x563141=_0x58ce9c['id'],_0x5cdaf6=_0x495ed8?'insertion:'+_0x495ed8:'insertion',_0x36df54=this['_setSuggestionData']({'id':_0x5e556d,'type':_0x5cdaf6,'createdAt':new Date(),'authorId':_0x563141,'attributes':_0x4d9686});return this['_addSuggestionMarker'](_0x5cdaf6,_0x5e556d,_0x563141,_0x2eb646),_0x36df54;}['markMultiRangeInsertion'](_0x2bb994,_0xf8ecd0='multi',_0x197523={}){const _0x2fcc82=this['editor']['plugins']['get']('Users')['me'],_0x5ad616=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf8ecd0,'join');this['_trackingSessionId']&&(_0x197523['trackingSessionId']=this['_trackingSessionId']);for(const _0x59e340 of this['getSuggestions']())if(_0x59e340['author']['id']==_0x2fcc82['id']&&'insertion'==_0x59e340['type']&&_0x59e340['subType']==_0xf8ecd0&&Qt(_0x59e340,_0x197523)&&(_0x5ad616(_0x59e340['getRanges'](),_0x2bb994)||_0x5ad616(_0x2bb994,_0x59e340['getRanges']()))){for(const _0x3a7043 of _0x2bb994)_0x59e340['addRange'](_0x3a7043);return _0x59e340;}for(const {suggestion:_0x462f1e,meta:_0x89227a}of this['_findSuggestions'](_0x2bb994,'insertion')){if(!_0x89227a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x89227a['containsRangeInObject'])continue;if(!Qt(_0x462f1e,_0x197523))continue;let _0x197631=!0x0;for(const _0x5603ea of _0x462f1e['getRanges']())for(const _0x477e80 of _0x2bb994)if(!_0x5603ea['containsRange'](_0x477e80)){_0x197631=!0x1;break;}if(_0x197631)return _0x462f1e;}const _0x4705cc=_0x2e07c2(),_0xe0d5f6=_0x2fcc82['id'],_0x3e3b56='insertion:'+_0xf8ecd0,_0x33095e=this['_setSuggestionData']({'id':_0x4705cc,'type':_0x3e3b56,'createdAt':new Date(),'authorId':_0xe0d5f6,'attributes':_0x197523});for(const _0x3ee88a of _0x2bb994)this['_addSuggestionMarker'](_0x3e3b56,_0x4705cc,_0xe0d5f6,_0x3ee88a,T['getMultiRangeId']());return _0x33095e;}['markInlineFormat'](_0x3aedf3,_0xcf720a,_0x483d50=null,_0x457368={}){if(_0x483d50=_0x483d50||Lt(_0xcf720a),_0x3aedf3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x457368['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31b8c7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x483d50,'accept');return this['forceDefaultExecution'](()=>_0x31b8c7([_0x3aedf3],_0xcf720a,_0x457368)),null;}const _0x1e8c3e=this['editor']['plugins']['get']('Users')['me'],_0x6fa71c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1a2f35,meta:_0x5d7919}of this['_findSuggestions'](_0x3aedf3,'insertion'))_0x5d7919['isOwn']&&!_0x5d7919['isInsideObject']&&_0x6fa71c['push'](..._0x1a2f35['getRanges']());}const _0x5a9d72=function(_0x197a64,_0x267e67){const _0x4a9262=[];for(const _0xe188a9 of _0x267e67){const _0x471b0d=_0x197a64['getIntersection'](_0xe188a9);_0x471b0d&&_0x4a9262['push'](_0x471b0d);}return _0x4a9262;}(_0x3aedf3,_0x6fa71c),_0x167749=function(_0x525566,_0x1bd761){const _0x26070c=[_0x525566];for(const _0x217b69 of _0x1bd761){let _0x132e1a=0x0;for(;_0x132e1a<_0x26070c['length'];){const _0x271248=_0x26070c[_0x132e1a]['getDifference'](_0x217b69);_0x26070c['splice'](_0x132e1a,0x1,..._0x271248),_0x132e1a+=_0x271248['length'];}}return _0x26070c;}(_0x3aedf3,_0x6fa71c);_0x5a9d72['length']&&this['_model']['change'](()=>{for(const _0x37185f of _0x5a9d72){const _0x4ffc0c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x483d50,'accept');this['forceDefaultExecution'](()=>_0x4ffc0c([_0x37185f],_0xcf720a,_0x457368));}});for(const _0x1b312a of _0x167749){let _0x5b4b8f=null,_0x47a83a=_0x1b312a['start'],_0x201c0a=_0x1b312a['end'];for(const {suggestion:_0x120068,meta:_0x55baa1}of this['_findSuggestions'](_0x1b312a,'formatInline')){if(!_0x55baa1['isOwn'])continue;if(_0x120068['subType']!=_0x483d50)continue;if(!Qt(_0x120068,_0x457368))continue;const _0x3589a7=_0x120068['getFirstRange']();if(_0x3589a7['containsRange'](_0x1b312a,!0x0))return null;_0x47a83a=_0x47a83a['isBefore'](_0x3589a7['start'])?_0x47a83a:_0x3589a7['start'],_0x201c0a=_0x201c0a['isAfter'](_0x3589a7['end'])?_0x201c0a:_0x3589a7['end'],_0x5b4b8f?_0x3589a7['start']['isBefore'](_0x5b4b8f['getFirstRange']()['start'])?(_0x5b4b8f['removeMarkers'](),_0x5b4b8f=_0x120068):_0x120068['removeMarkers']():_0x5b4b8f=_0x120068;}const _0x1f3f7b=this['_model']['createRange'](_0x47a83a,_0x201c0a);if(_0x5b4b8f)this['_setSuggestionRange'](_0x5b4b8f,_0x1f3f7b);else{const _0x2662fb=_0x2e07c2(),_0x3cae1f=_0x1e8c3e['id'];this['_setSuggestionData']({'id':_0x2662fb,'type':'formatInline:'+_0x483d50,'data':_0xcf720a,'createdAt':new Date(),'authorId':_0x3cae1f,'attributes':_0x457368}),this['_addSuggestionMarker']('formatInline:'+_0x483d50,_0x2662fb,_0x3cae1f,_0x1f3f7b);}}return null;}['markBlockFormat'](_0x1e10a5,_0x2b5583,_0x1d2b94=[],_0xd7e6af=null,_0x25d069={}){_0x2b5583['formatGroupId']||(_0x2b5583['formatGroupId']=_0x2b5583['commandName']),_0x2b5583['multipleBlocks']=_0x1e10a5['is']('range'),_0xd7e6af=_0xd7e6af||Lt(_0x2b5583);const _0x4828b9=_0x1d2b94['map'](_0x519f05=>qt(_0x519f05,this['_model'])),_0xc20ab7=_0x1e10a5['is']('range')?_0x1e10a5:qt(_0x1e10a5,this['_model']);if(this['_trackingSessionId']&&(_0x25d069['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3002e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd7e6af,'accept');return this['forceDefaultExecution'](()=>_0x3002e0([_0xc20ab7],_0x2b5583,_0x25d069)),null;}_0x4828b9['push'](_0xc20ab7);let _0x1ea9b1=!0x0;for(const _0x4285fc of _0x4828b9)if(!this['_rangeIsInLocalUserInsertion'](_0x4285fc)){_0x1ea9b1=!0x1;break;}if(_0x1ea9b1&&'always'!==this['_trackFormatChanges']){const _0x54bf11=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd7e6af,'accept');return this['forceDefaultExecution'](()=>_0x54bf11([_0xc20ab7],_0x2b5583,_0x25d069)),null;}let _0x5f23c9=null,_0x549dca=_0xc20ab7['start'],_0x1f1bd8=_0xc20ab7['end'];for(const {suggestion:_0x9f214d,meta:_0x322b51}of this['_findSuggestions'](_0xc20ab7,'formatBlock')){if(!_0x322b51['isOwn'])continue;if(_0x322b51['isNextTo']||_0x322b51['containsRangeInObject']||_0x322b51['isInsideObject'])continue;if(_0x9f214d['data']['formatGroupId']!=_0x2b5583['formatGroupId'])continue;if(!Qt(_0x9f214d,_0x25d069))continue;const _0x38a1e5=_0x9f214d['getFirstRange']();if(_0x9f214d['subType']==_0xd7e6af){if(_0x38a1e5['containsRange'](_0xc20ab7,!0x0))return null;_0x549dca=_0x549dca['isBefore'](_0x38a1e5['start'])?_0x549dca:_0x38a1e5['start'],_0x1f1bd8=_0x1f1bd8['isAfter'](_0x38a1e5['end'])?_0x1f1bd8:_0x38a1e5['end'],_0x5f23c9?_0x38a1e5['start']['isBefore'](_0x5f23c9['getFirstRange']()['start'])?(_0x5f23c9['removeMarkers'](),_0x5f23c9=_0x9f214d):_0x9f214d['removeMarkers']():_0x5f23c9=_0x9f214d;}else{const _0x4f884e=_0xc20ab7['getIntersection'](_0x38a1e5);this['_cutOutSuggestionMarker'](_0x9f214d,_0x4f884e);}}const _0x3dfeed=this['editor']['plugins']['get']('Users')['me'],_0x504c05=_0x2e07c2(),_0x249bb4=_0x3dfeed['id'];if(_0x5f23c9)return this['_setSuggestionRange'](_0x5f23c9,this['_model']['createRange'](_0x549dca,_0x1f1bd8)),_0x5f23c9;{const _0x3cb1ce=this['_setSuggestionData']({'id':_0x504c05,'type':'formatBlock:'+_0xd7e6af,'data':_0x2b5583,'createdAt':new Date(),'authorId':_0x249bb4,'attributes':_0x25d069});return this['_addSuggestionMarker']('formatBlock:'+_0xd7e6af,_0x504c05,_0x249bb4,this['_model']['createRange'](_0x549dca,_0x1f1bd8)),_0x3cb1ce;}}['markMultiRangeBlockFormat'](_0x5cf49f,_0x29bc5a,_0x12a46d=[],_0x433a26=null,_0x4c5533={}){_0x29bc5a['formatGroupId']||(_0x29bc5a['formatGroupId']=_0x29bc5a['commandName']);const _0x502b77=_0x5cf49f[0x0];_0x29bc5a['multipleBlocks']=_0x502b77['is']('range'),_0x433a26=_0x433a26||Lt(_0x29bc5a);const _0x4ae8d0=_0x12a46d['map'](_0x1443dd=>qt(_0x1443dd,this['_model'])),_0x3f0057=_0x502b77['is']('range')?_0x5cf49f:_0x5cf49f['map'](_0x32e26d=>qt(_0x32e26d,this['_model']));if(this['_trackingSessionId']&&(_0x4c5533['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x192a44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x433a26,'accept');return this['forceDefaultExecution'](()=>_0x192a44(_0x3f0057,_0x29bc5a,_0x4c5533)),null;}_0x4ae8d0['push'](..._0x3f0057);let _0x5da58e=!0x0;for(const _0x2981b7 of _0x4ae8d0)if(!this['_rangeIsInLocalUserInsertion'](_0x2981b7)){_0x5da58e=!0x1;break;}if(_0x5da58e&&'always'!==this['_trackFormatChanges']){const _0x88cf6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x433a26,'accept');return this['forceDefaultExecution'](()=>_0x88cf6c(_0x3f0057,_0x29bc5a,_0x4c5533)),null;}const _0x37ffe0=this['editor']['plugins']['get']('Users')['me'];for(const _0x15c7b8 of this['getSuggestions']()){const _0x79c03e=_0x15c7b8['data'];if(_0x15c7b8['author']['id']!=_0x37ffe0['id'])continue;if('formatBlock'!=_0x15c7b8['type']||_0x79c03e['formatGroupId']!=_0x29bc5a['formatGroupId'])continue;if(!Qt(_0x15c7b8,_0x4c5533))continue;const _0x158fc7=_0x15c7b8['subType']==_0x433a26;for(let _0x1c808a=0x0;_0x1c808a<_0x3f0057['length'];_0x1c808a++){const _0x39b550=_0x3f0057[_0x1c808a];for(const _0x488d1b of _0x15c7b8['getMarkers']()){const _0xaaaaeb=_0x488d1b['getRange']();if(_0x39b550['isEqual'](_0xaaaaeb)){_0x158fc7?(_0x3f0057['splice'](_0x1c808a,0x1),_0x1c808a--):_0x15c7b8['removeMarker'](_0x488d1b['name']);break;}}}}if(0x0==_0x3f0057['length'])return null;const _0x46bc15=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x433a26,'join');for(const _0x4c284a of this['getSuggestions']()){const _0xe3c9d9=_0x4c284a['data'];if(_0x4c284a['author']['id']==_0x37ffe0['id']&&('formatBlock'==_0x4c284a['type']&&_0xe3c9d9['formatGroupId']==_0x29bc5a['formatGroupId']&&_0x4c284a['subType']==_0x433a26&&Qt(_0x4c284a,_0x4c5533)&&(_0x46bc15(_0x4c284a['getRanges'](),_0x3f0057)||_0x46bc15(_0x3f0057,_0x4c284a['getRanges']())))){for(const _0x250282 of _0x3f0057)_0x4c284a['addRange'](_0x250282);return _0x4c284a;}}const _0x404511=_0x2e07c2(),_0x3fe013=_0x37ffe0['id'],_0x3302ba='formatBlock:'+_0x433a26,_0xfdbd6c=this['_setSuggestionData']({'id':_0x404511,'type':_0x3302ba,'data':_0x29bc5a,'createdAt':new Date(),'authorId':_0x3fe013,'attributes':_0x4c5533});for(const _0x11944d of _0x3f0057)this['_addSuggestionMarker'](_0x3302ba,_0x404511,_0x3fe013,_0x11944d,T['getMultiRangeId']());return _0xfdbd6c;}['markDeletion'](_0x4e4871,_0x206572=null,_0x5355d2={}){if(_0x4e4871['isCollapsed'])return null;const _0x4242c2=this['editor']['plugins']['get']('Users')['me'],_0x183870=new _0x25dfb1(_0x4e4871['start'],_0x4e4871['end']);this['_trackingSessionId']&&(_0x5355d2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd75a83,meta:_0x378632}of this['_findSuggestions'](_0x183870,'insertion'))if(_0x378632['isOwn']&&!_0x378632['isNextTo']){if(_0xd75a83['isMultiRange']){const _0x16f546=_0xd75a83['getRanges']()['filter'](_0x1560e5=>'$graveyard'!=_0x1560e5['root']['rootName']);_0x16f546['every'](_0x2006b2=>_0x183870['containsRange'](_0x2006b2,!0x0))&&_0xd75a83['discard']();if(_0x16f546['some'](_0xc8beac=>_0xc8beac['containsRange'](_0x183870,!0x0))){const _0x39bfc5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x206572,'accept');return this['forceDefaultExecution'](()=>_0x39bfc5([_0x183870],null,_0x5355d2)),null;}}else{const _0x50b8ac=_0x183870['getIntersection'](_0xd75a83['getFirstRange']());null!==_0x50b8ac&&_0xd75a83['_onDiscard']([_0x50b8ac],null,_0x5355d2);}}if(_0x183870['detach'](),_0x183870['isCollapsed']||'$graveyard'==_0x183870['root']['rootName'])return null;let _0x54a81f=null,_0x14943=_0x183870['start'],_0x1dd2db=_0x183870['end'];const _0x25ae69=this['_findSuggestions'](_0x183870,'deletion');for(const {suggestion:_0x3fe00a,meta:_0x400fe5}of _0x25ae69){const _0x5a6623=this['_model']['createRange'](_0x14943,_0x1dd2db);if(_0x400fe5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x400fe5['containsRangeInObject']&&!_0x400fe5['isInsideObject'])){if(_0x3fe00a['isMultiRange']){if(!Qt(_0x3fe00a,_0x5355d2))continue;let _0x590f07=!0x0;for(const _0x29b809 of _0x3fe00a['getRanges']()){if(_0x29b809['containsRange'](_0x5a6623,!0x0))return _0x3fe00a;_0x5a6623['containsRange'](_0x29b809)||(_0x590f07=!0x1);}_0x590f07&&_0x3fe00a['discard']();}else{const _0x19aebd=_0x3fe00a['getFirstRange']();if(_0x19aebd['containsRange'](_0x5a6623,!0x0))return _0x3fe00a;if(!Qt(_0x3fe00a,_0x5355d2)){_0x5a6623['containsRange'](_0x19aebd)?_0x3fe00a['removeMarkers']():_0x19aebd['containsPosition'](_0x14943)?_0x14943=_0x19aebd['end']:_0x19aebd['containsPosition'](_0x1dd2db)&&(_0x1dd2db=_0x19aebd['start']);continue;}_0x14943=_0x14943['isBefore'](_0x19aebd['start'])?_0x14943:_0x19aebd['start'],_0x1dd2db=_0x1dd2db['isAfter'](_0x19aebd['end'])?_0x1dd2db:_0x19aebd['end'],_0x5355d2=Object['assign']({},_0x3fe00a['attributes']),_0x54a81f?_0x19aebd['start']['isBefore'](_0x54a81f['getFirstRange']()['start'])?(_0x54a81f['removeMarkers'](),_0x54a81f=_0x3fe00a):_0x3fe00a['removeMarkers']():_0x54a81f=_0x3fe00a;}}}if(_0x54a81f)return this['_setSuggestionRange'](_0x54a81f,this['_model']['createRange'](_0x14943,_0x1dd2db)),_0x54a81f;{const _0x181727=_0x2e07c2(),_0x23550c=this['_model']['createRange'](_0x14943,_0x1dd2db),_0x3a7593=_0x4242c2['id'],_0x1edcd6=_0x206572?'deletion:'+_0x206572:'deletion',_0x27a3b3=this['_setSuggestionData']({'id':_0x181727,'type':_0x1edcd6,'createdAt':new Date(),'authorId':_0x3a7593,'attributes':_0x5355d2});return this['_addSuggestionMarker'](_0x1edcd6,_0x181727,_0x3a7593,_0x23550c),_0x27a3b3;}}['markMultiRangeDeletion'](_0xb4c1bf,_0x541418='multi',_0x569267={}){const _0x54217f=this['editor']['plugins']['get']('Users')['me'],_0x1d09f8=_0xb4c1bf['map'](_0x8c7dd1=>new _0x25dfb1(_0x8c7dd1['start'],_0x8c7dd1['end'])),_0x320659=new Set();this['_trackingSessionId']&&(_0x569267['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48df5e,meta:_0x59856d}of this['_findSuggestions'](_0x1d09f8,'insertion'))_0x59856d['isOwn']&&!_0x59856d['isNextTo']&&_0x320659['add'](_0x48df5e);for(const _0x47c610 of _0x320659)if(_0x47c610['isMultiRange']){const _0x38b8f6=_0x47c610['getRanges']();(!_0x47c610['attributes']||!_0x47c610['attributes']['skipNestingCheck'])&&(_0x38b8f6['every'](_0x9560f9=>_0x1d09f8['some'](_0x2a4380=>_0x2a4380['containsRange'](_0x9560f9,!0x0)))&&_0x47c610['discard']());if(_0x1d09f8['every'](_0x151abe=>_0x38b8f6['some'](_0x5eb2a1=>_0x5eb2a1['containsRange'](_0x151abe,!0x0)))){const _0x35a715=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541418,'accept');return this['forceDefaultExecution'](()=>_0x35a715(_0xb4c1bf,null,_0x569267)),null;}}else{const _0x3fdb41=_0x47c610['getFirstRange']();_0x1d09f8['some'](_0x21a5d2=>_0x21a5d2['containsRange'](_0x3fdb41,!0x0))&&_0x47c610['discard']();if(_0x1d09f8['every'](_0x33e41d=>_0x3fdb41['containsRange'](_0x33e41d,!0x0))){const _0x1af5ec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541418,'accept');return this['forceDefaultExecution'](()=>_0x1af5ec(_0x1d09f8,null,_0x569267)),null;}}const _0x1248e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541418,'join');let _0x501774=null;for(const _0x10373a of this['getSuggestions']())if(_0x10373a['author']['id']==_0x54217f['id']&&_0x10373a['isInContent']&&'deletion'==_0x10373a['type']&&_0x10373a['subType']==_0x541418&&Qt(_0x10373a,_0x569267)&&(_0x1248e4(_0x10373a['getRanges'](),_0x1d09f8)||_0x1248e4(_0x1d09f8,_0x10373a['getRanges']()))){if(_0x501774){if(_0x10373a['commentThread']&&_0x10373a['commentThread']['length'])continue;for(const _0x40ff1b of _0x10373a['getRanges']())_0x501774['isIntersectingWithRange'](_0x40ff1b)||_0x501774['addRange'](_0x40ff1b);_0x10373a['removeMarkers']();}else{_0x501774=_0x10373a;for(const _0xca4bab of _0x1d09f8)_0x10373a['isIntersectingWithRange'](_0xca4bab)||_0x10373a['addRange'](_0xca4bab);}}if(_0x501774)return _0x501774;_0x320659['clear']();for(const {suggestion:_0x3a74db,meta:_0x2e130f}of this['_findSuggestions'](_0x1d09f8,'deletion'))_0x2e130f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e130f['containsRangeInObject']&&!_0x2e130f['isInsideObject'])&&Qt(_0x3a74db,_0x569267)&&_0x320659['add'](_0x3a74db);for(const _0x1258ac of _0x320659){const _0x7e735=_0x1258ac['getRanges']();if(!_0x569267||!_0x569267['skipNestingCheck']){if(_0x1d09f8['every'](_0x3b3d9a=>_0x7e735['some'](_0x386336=>_0x386336['containsRange'](_0x3b3d9a,!0x0))))return _0x1258ac;}(!_0x1258ac['attributes']||!_0x1258ac['attributes']['skipNestingCheck'])&&(_0x7e735['every'](_0x5764e4=>_0x1d09f8['some'](_0x50bb1f=>_0x50bb1f['containsRange'](_0x5764e4,!0x0)))&&_0x1258ac['discard']());}const _0x352713=_0x2e07c2(),_0x111f0b=_0x54217f['id'],_0x417ddd='deletion:'+_0x541418,_0x2ff8c8=this['_setSuggestionData']({'id':_0x352713,'type':_0x417ddd,'createdAt':new Date(),'authorId':_0x111f0b,'attributes':_0x569267});for(const _0x46b887 of _0x1d09f8)_0x46b887['detach'](),_0x46b887['isCollapsed']||'$graveyard'==_0x46b887['root']['rootName']||this['_addSuggestionMarker'](_0x417ddd,_0x352713,_0x111f0b,_0x46b887,T['getMultiRangeId']());return _0x2ff8c8;}['markAttributeChange'](_0xc10ef9,_0x30aea7,_0x220aeb,_0x291968,_0x528a71){if(_0xc10ef9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e7d0d=this['editor']['plugins']['get']('Users')['me']['id'],_0x27a066=Array['from'](this['_suggestions']['values']())['filter'](_0x32b04d=>'attribute'==_0x32b04d['type']&&_0x32b04d['data']['key']==_0x30aea7&&_0x32b04d['isIntersectingWithRange'](_0xc10ef9));if(this['_trackingSessionId']&&(_0x528a71['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2ce5f6=this['_findSuggestions'](_0xc10ef9,'insertion')['filter'](({meta:_0x4621a2})=>_0x4621a2['isOwn']&&!_0x4621a2['isInsideObject']&&!_0x4621a2['isNextTo'])['map'](({suggestion:_0x4ce651})=>_0x4ce651);_0x27a066['unshift'](..._0x2ce5f6);}const _0x1b656e=new Map([[_0xc10ef9,_0x220aeb]]);for(const _0x128fbd of _0x27a066){const _0x3cb3ee='attribute'==_0x128fbd['type']?_0x128fbd['data']['oldValue']:void 0x0,_0x5c5a7a=_0x128fbd['getFirstRange'](),_0x5a5f32=Array['from'](_0x1b656e['keys']())['find'](_0x83a8de=>_0x83a8de['isIntersecting'](_0x5c5a7a));if(!_0x5a5f32)continue;const _0x18c441=_0x5a5f32['getDifference'](_0x5c5a7a);this['_isBlockAttribute'](_0x30aea7)&&'insertion'==_0x128fbd['type']&&0x0!=_0x18c441['length']||(_0x1b656e['delete'](_0x5a5f32),_0x18c441['forEach'](_0x1ffdd2=>{_0x1b656e['set'](_0x1ffdd2,_0x220aeb);}),'insertion'!=_0x128fbd['type']&&_0x3cb3ee!=_0x291968&&_0x1b656e['set'](_0x5a5f32['getIntersection'](_0x5c5a7a),_0x3cb3ee));}const _0x507c89=[];for(const [_0x586043,_0x37a263]of _0x1b656e){const _0x26062e=_0x2e07c2(),_0x31fe53={'key':_0x30aea7,'oldValue':_0x37a263,'newValue':_0x291968};_0x30aea7['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':_0x30aea7});const _0x511d2b=('attribute:'+(_0x30aea7+'|'+Lt({'newValue':_0x291968})))['substring'](0x0,0x3c),_0xccebb0=this['_setSuggestionData']({'id':_0x26062e,'type':_0x511d2b,'data':_0x31fe53,'createdAt':new Date(),'authorId':_0x1e7d0d,'attributes':_0x528a71});_0x507c89['push'](_0xccebb0),this['_addSuggestionMarker'](_0x511d2b,_0x26062e,_0x1e7d0d,_0x586043);}return _0x507c89;}['enableDefaultAttributesIntegration'](_0x4d8916){this['enableCommand'](_0x4d8916,(_0x183b4b,..._0x162b3b)=>{this['recordAttributeChanges'](()=>{_0x183b4b(..._0x162b3b);});});}['registerBlockAttribute'](_0x20e49c){this['_blockAttributeKeys']['add'](_0x20e49c);}['registerInlineAttribute'](_0x3727a1){this['_inlineAttributeKeys']['add'](_0x3727a1);}['startTrackingSession'](_0x2ae7c0){return this['_trackingSessionId']=void 0x0!==_0x2ae7c0?_0x2ae7c0:_0x2e07c2(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1abf03){return'attribute'==_0x1abf03['type']?_0x1abf03['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x23f8d6,_0x909ec){const _0x56457a=_0x23f8d6['getFirstMarker']();this['_model']['change'](_0x1cb984=>{_0x1cb984['updateMarker'](_0x56457a,{'range':_0x909ec});});}['_addThreadToSuggestion'](_0x2c8a6d){const _0x256f1d=_0x2c8a6d['id'],_0x5f0ebb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x256f1d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f0ebb,'threadId':_0x256f1d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e3b87=this['_commentsRepository']['getCommentThread'](_0x256f1d);_0x1e3b87['unbind']('isRemovable'),_0x1e3b87['isRemovable']=!0x1,_0x2c8a6d['commentThread']=_0x1e3b87;}['_checkSuggestionCorrectness'](_0x411687,_0x4cfb60,_0x4cfff,_0x57265f){if(_0x411687['type']!=_0x4cfb60||_0x411687['subType']!=_0x4cfff||_0x411687['creator']['id']!=_0x57265f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ef735('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x7290c6,_0x1726e1){const _0x16b7fa=_0x7290c6['getFirstRange']();if(_0x1726e1['isEqual'](_0x16b7fa))_0x7290c6['removeMarkers']();else{if(_0x16b7fa['containsRange'](_0x1726e1)){const _0x484bb6=this['_model']['createPositionAt'](_0x1726e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7290c6,this['_model']['createRange'](_0x16b7fa['start'],_0x484bb6));const _0x569921=_0x2e07c2(),_0x594105=_0x7290c6['creator']['id'],_0x2c23d1=_0x7290c6['type']+':'+_0x7290c6['subType'];this['_setSuggestionData']({'id':_0x569921,'type':_0x2c23d1,'createdAt':new Date(),'authorId':_0x594105,'data':_0x7290c6['data'],'attributes':_0x7290c6['attributes']});const _0x3b0a72=this['_model']['createPositionAt'](_0x1726e1['end']['parent'],'after'),_0x3643c1=this['_model']['createRange'](_0x3b0a72,_0x16b7fa['end']);this['_addSuggestionMarker'](_0x2c23d1,_0x569921,_0x594105,_0x3643c1);}else{if(_0x16b7fa['containsPosition'](_0x1726e1['start'])){const _0x8153cb=this['_model']['createPositionAt'](_0x1726e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7290c6,this['_model']['createRange'](_0x16b7fa['start'],_0x8153cb));}else{const _0xfdbcef=this['_model']['createPositionAt'](_0x1726e1['end']['parent'],'after');this['_setSuggestionRange'](_0x7290c6,this['_model']['createRange'](_0xfdbcef,_0x16b7fa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x42a641){for(const {suggestion:_0x3f3fcf,meta:_0x16d1bd}of this['_findSuggestions'](_0x42a641,'insertion')){if(!_0x16d1bd['isOwn'])continue;const _0x4fd249=_0x3f3fcf['getRanges']();for(const _0x747c77 of _0x4fd249)if(!_0x42a641['getDifference'](_0x747c77)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x15b0c0){const _0x3b40f3=this['editor']['plugins']['get']('Users')['getUser'](_0x15b0c0);if(!_0x3b40f3)throw new _0x3ef735('track-changes-user-not-found',this);return _0x3b40f3;}['_getExternalAuthor'](_0xba1926){const _0x31d38c=this['editor']['plugins']['get']('Users'),_0x1956ba=_0x272e91('external:'+_0xba1926),_0x545056=_0x31d38c['getUser'](_0x1956ba);return _0x545056||_0x31d38c['addUser']({'id':_0x1956ba,'name':_0xba1926});}['_createSuggestion'](_0x2b9094,_0x4e6c7e,_0x39adca,_0x9100c2,_0xfbb6dc,_0x2f7d51){const _0xb517cf=this['_getAuthorFromId'](_0x9100c2),_0x8de3de=this['_suggestionFactory']['buildSuggestion'](_0x2b9094,_0x4e6c7e,_0x39adca,_0xb517cf,_0xfbb6dc,_0x427611=>{this['_updateSuggestionData'](_0x39adca,{'attributes':_0x427611});const _0x156db4=this['getSuggestion'](_0x39adca);this['_joinWithAdjacentSuggestions'](new Set([_0x156db4])),this['_refreshSuggestionsChain'](new Set([_0x156db4]));},_0x2f7d51);return this['listenTo'](_0x8de3de,'accept',()=>{this['_updateSuggestionData'](_0x39adca,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8de3de,'discard',()=>{this['_updateSuggestionData'](_0x39adca,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39adca,_0x8de3de),this['_suggestionState']['set'](_0x8de3de,'notReady'),_0x8de3de;}['_splitMarkerName'](_0x24c12d){const _0x97555d=_0x24c12d['split'](':');return{'group':_0x97555d[0x0],'type':_0x97555d[0x1],'subType':_0x97555d['length']>=0x5?_0x97555d[0x2]:null,'id':_0x97555d['length']<0x5?_0x97555d[0x2]:_0x97555d[0x3],'authorId':_0x97555d['length']<0x5?_0x97555d[0x3]:_0x97555d[0x4],'markerCount':0x6==_0x97555d['length']?_0x97555d[0x5]:null};}['_breakSuggestionMarker'](_0x4d48a5,_0x1b4143,_0x424084){const _0xf4fc56=_0x4d48a5['getFirstRange'](),_0x29bc22=_0xf4fc56['start'],_0x30658a=_0xf4fc56['end'];this['_setSuggestionRange'](_0x4d48a5,this['_model']['createRange'](_0x29bc22,_0x1b4143));const _0x513972=_0x2e07c2(),_0x3c652f=_0x4d48a5['creator']['id'],_0x2d55ec=_0x4d48a5['type']+(_0x4d48a5['subType']?':'+_0x4d48a5['subType']:'');this['_setSuggestionData']({'id':_0x513972,'type':_0x2d55ec,'createdAt':new Date(),'authorId':_0x3c652f,'originalSuggestionId':_0x4d48a5['_originalSuggestionId']||_0x4d48a5['id'],'attributes':_0x4d48a5['attributes'],'data':_0x4d48a5['data']});const _0x4c4038=this['_getAttributeKey'](_0x4d48a5);('formatBlock'==_0x4d48a5['type']||_0x4c4038&&this['_isBlockAttribute'](_0x4c4038))&&(_0x424084=this['_model']['createPositionBefore'](_0x424084['parent'])),this['_addSuggestionMarker'](_0x2d55ec,_0x513972,_0x3c652f,this['_model']['createRange'](_0x424084,_0x30658a));}['_findSuggestions'](_0x4c3574,_0x3f60d6=null){const _0x6cbee5=[],_0x1ddbde=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4c3574)||(_0x4c3574=[_0x4c3574]);for(const _0x35a42c of this['getSuggestions']()){if(!_0x35a42c['isInContent'])continue;if(_0x3f60d6&&_0x35a42c['type']!=_0x3f60d6)continue;let _0x4d9fe2=!0x1;for(const _0x43fd58 of _0x35a42c['getRanges']()){for(const _0x539d3b of _0x4c3574){const _0x1a410d=_0x539d3b['start']['isEqual'](_0x43fd58['end'])||_0x539d3b['end']['isEqual'](_0x43fd58['start']);if(_0x1a410d||_0x539d3b['getIntersection'](_0x43fd58)){const _0x693377=_0x539d3b['containsRange'](_0x43fd58)&&Ft(this['_model']['schema'],_0x43fd58['start'],_0x539d3b),_0x485cf4=_0x43fd58['containsRange'](_0x539d3b)&&Ft(this['_model']['schema'],_0x539d3b['start'],_0x43fd58);_0x6cbee5['push']({'suggestion':_0x35a42c,'meta':{'isOwn':_0x1ddbde==_0x35a42c['author'],'isNextTo':_0x1a410d,'isInsideObject':_0x693377,'containsRangeInObject':_0x485cf4}}),_0x4d9fe2=!0x0;break;}}if(_0x4d9fe2)break;}}return _0x6cbee5;}['_addSuggestionMarker'](_0x5d819a,_0x6f9de9,_0x31b74f,_0x397656,_0x177928){this['_model']['change'](_0x40dbb4=>{let _0x3bb5c7='suggestion:'+_0x5d819a+':'+_0x6f9de9+':'+_0x31b74f;_0x177928&&(_0x3bb5c7=_0x3bb5c7+':'+_0x177928),_0x40dbb4['addMarker'](_0x3bb5c7,{'range':_0x397656,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x571881){const _0x14c23f=_0x571881['previous'],_0x3379b0=_0x571881['next'];_0x571881['previous']=null,_0x571881['next']=null,null!=_0x14c23f&&_0x14c23f['next']==_0x571881&&(_0x14c23f['next']=_0x3379b0),null!=_0x3379b0&&_0x3379b0['previous']==_0x571881&&(_0x3379b0['previous']=_0x14c23f),'ready'==this['_suggestionState']['get'](_0x571881)&&(this['_suggestionState']['set'](_0x571881,'removed'),this['fire']('suggestionUnloaded',_0x571881,_0x14c23f,_0x3379b0));}['_setSuggestionData'](_0x257185){const _0x3908f2=_0x257185['id'],_0x42065d=this['addSuggestionData'](_0x257185);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3fca9d=this['editor']['plugins']['get']('PendingActions'),_0x2a04c4=_0x42065d['hasComments'],_0x133f3e=_0x42065d['subType']?_0x42065d['type']+':'+_0x42065d['subType']:_0x42065d['type'],_0x731e54=this['editor']['locale'],_0x1170c3=_0x3fca9d['add'](o(_0x731e54,'PENDING_ACTION_SUGGESTION')),_0x3fcf66={'id':_0x3908f2,'type':_0x133f3e,'hasComments':_0x2a04c4,'data':_0x257185['data']||null,'originalSuggestionId':_0x257185['originalSuggestionId']||null,'attributes':_0x42065d['attributes']};this['_adapter']['addSuggestion'](_0x3fcf66)['then'](_0x49e2af=>{_0x42065d['_saved']=!0x0,_0x3fca9d['remove'](_0x1170c3),_0x49e2af&&_0x49e2af['createdAt']&&(this['_suggestions']['get'](_0x3908f2)['createdAt']=_0x49e2af['createdAt']);})['catch'](_0x42016c=>{throw _0x478693('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42065d['discard']();}),_0x42065d['stopListening'](),this['_suggestions']['delete'](_0x42065d['id']),this['_suggestionState']['delete'](_0x42065d),_0x42016c;});}return _0x42065d;}['_isBlockAttribute'](_0x13bf98){return this['_blockAttributeKeys']['has'](_0x13bf98);}['_updateSuggestionData'](_0x3d72c6,_0x39fdab){const _0x16fd24=this['editor']['plugins']['get']('PendingActions'),_0x3979b4=this['getSuggestion'](_0x3d72c6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3979b4['_saved']){const _0x4dcd4e=_0x16fd24['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3d72c6,_0x39fdab)['then'](()=>{_0x16fd24['remove'](_0x4dcd4e);});}else _0x3979b4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3d72c6,_0x39fdab);});}}['_getSuggestionData'](_0x25518d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ef735('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25518d);}['_handleNewSuggestionMarker'](_0x45119e){const {id:_0x1b2d88,type:_0x32a8de,subType:_0x1da744,authorId:_0x577f5e}=this['_splitMarkerName'](_0x45119e),_0x50f53d=this['_suggestions']['get'](_0x1b2d88)||this['_createSuggestion'](_0x32a8de,_0x1da744,_0x1b2d88,_0x577f5e,{});switch(this['_checkSuggestionCorrectness'](_0x50f53d,_0x32a8de,_0x1da744,_0x577f5e),this['_suggestionState']['get'](_0x50f53d)){case'notReady':this['_getSuggestionData'](_0x1b2d88)['then'](_0x296827=>{let _0x54599b=Promise['resolve']();_0x296827['hasComments']&&(_0x54599b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1b2d88})),_0x54599b['then'](()=>{this['addSuggestionData'](_0x296827)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50f53d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1b2d88,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50f53d,'ready'),this['fire']('suggestionLoaded',_0x50f53d);break;case'ready':this['fire']('suggestionChanged',_0x50f53d);}return _0x50f53d['addMarkerName'](_0x45119e),_0x50f53d;}['_refreshSuggestionsChain'](_0xaab17e){const _0x45a58d=Array['from'](_0xaab17e),_0x3a96b2=_0x45a58d['filter'](_0x2e1665=>'attribute'==_0x2e1665['type']);this['_refreshAttributeSuggestionsChain'](_0x3a96b2);const _0x25458f=_0x45a58d['filter'](_0x2a87c5=>!_0x2a87c5['isMultiRange']&&'attribute'!=_0x2a87c5['type']),_0x8a22ac=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4d33=>!_0x4a4d33['isMultiRange']&&'attribute'!=_0x4a4d33['type']),_0x595f55=_0x8a22ac['filter'](_0x37f7f0=>!_0xaab17e['has'](_0x37f7f0)),_0x518537=new Map(_0x8a22ac['map'](_0x51b5a4=>[_0x51b5a4,this['_suggestionFactory']['getSuggestionCallback'](_0x51b5a4['type'],_0x51b5a4['subType'],'chain')])),_0x227360=new Map(_0x8a22ac['map'](_0x218608=>[_0x218608,_0x218608['getFirstRange']()])),_0xbdf62e=new Set(),_0x3c3f36=new Set();for(let _0x1f665c=0x0;_0x1f665c<_0x25458f['length'];_0x1f665c++)_0x103ce2(_0x25458f[_0x1f665c],_0x25458f,_0x1f665c+0x1);for(let _0x2a1dac=0x0;_0x2a1dac<_0x25458f['length'];_0x2a1dac++)_0x103ce2(_0x25458f[_0x2a1dac],_0x595f55,0x0);const _0x7810bb=new Set();for(let _0x571ffc=0x0;_0x571ffc<_0x25458f['length'];_0x571ffc++){const _0x21f279=_0x25458f[_0x571ffc];!_0x3c3f36['has'](_0x21f279)&&_0x21f279['previous']&&(_0x7810bb['add'](_0x21f279['previous']),_0x21f279['previous']['next']===_0x21f279&&(_0x21f279['previous']['next']=null),_0x21f279['previous']=null),!_0xbdf62e['has'](_0x21f279)&&_0x21f279['next']&&(_0x7810bb['add'](_0x21f279['next']),_0x21f279['next']['previous']===_0x21f279&&(_0x21f279['next']['previous']=null),_0x21f279['next']=null);}function _0x103ce2(_0x48fa2f,_0x2e6ee8,_0x57f11e){for(let _0x2ba332=_0x57f11e;_0x2ba332<_0x2e6ee8['length'];_0x2ba332++){const _0x55ab16=_0x6b0921(_0x48fa2f,_0x2e6ee8[_0x2ba332]);_0x55ab16&&(_0x55ab16[0x0]['next']=_0x55ab16[0x1],_0x55ab16[0x1]['previous']=_0x55ab16[0x0],_0xbdf62e['add'](_0x55ab16[0x0]),_0x3c3f36['add'](_0x55ab16[0x1]));}}function _0x6b0921(_0x37195f,_0x1218d6){if(_0x37195f['author']['id']!==_0x1218d6['author']['id'])return null;const _0x26fbc2=_0x518537['get'](_0x37195f)(_0x37195f,_0x1218d6,_0x227360['get'](_0x37195f),_0x227360['get'](_0x1218d6));if(!_0x26fbc2)return null;return _0x518537['get'](_0x1218d6)(_0x37195f,_0x1218d6,_0x227360['get'](_0x37195f),_0x227360['get'](_0x1218d6))?_0x26fbc2[0x1]['commentThread']&&_0x26fbc2[0x1]['commentThread']['length']?null:_0x26fbc2:null;}_0x7810bb['size']&&this['_refreshSuggestionsChain'](_0x7810bb);}['_refreshAttributeSuggestionsChain'](_0x1eff42){if(0x0==_0x1eff42['length'])return;const _0x2c56b7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x313657=>'attribute'==_0x313657['type']&&_0x313657['_isDataLoaded']),_0xf2708=[],_0x48eb6a=new Map();for(const _0x1e68e1 of _0x2c56b7){const _0x433f72=_0x272e91(_0x1e68e1['attributes']);_0x48eb6a['has'](_0x433f72)||(_0x48eb6a['set'](_0x433f72,_0xf2708['length']),_0xf2708['push']([]));const _0x2a1847=_0x48eb6a['get'](_0x433f72);_0xf2708[_0x2a1847]['push'](_0x1e68e1);}!(function(){_0xf2708['sort']((_0x43cd6b,_0x186d99)=>{const _0x29d7d0=_0x43cd6b[0x0]['createdAt'],_0x18a6a6=_0x186d99[0x0]['createdAt'];return _0x29d7d0==_0x18a6a6?_0x43cd6b[0x0]['attributes']['groupId']<_0x186d99[0x0]['attributes']['groupId']?-0x1:0x1:_0x29d7d0<_0x18a6a6?-0x1:0x1;});for(const _0xc3948b of _0xf2708)_0xc3948b['sort']((_0x3a0496,_0x2881a6)=>_0x3a0496['id']<_0x2881a6['id']?-0x1:0x1);}());for(let _0x82b4d3=0x0;_0x82b4d3<_0xf2708['length'];_0x82b4d3++){if(0x0==_0xf2708[_0x82b4d3]['length'])continue;const _0x4e5e7f=[];for(let _0x17cf2b=_0x82b4d3+0x1;_0x17cf2b<_0xf2708['length'];_0x17cf2b++)0x0!=_0xf2708[_0x17cf2b]['length']&&_0x561640(_0xf2708[_0x82b4d3],_0xf2708[_0x17cf2b])&&_0x4e5e7f['push'](_0x17cf2b);for(const _0x54ca13 of _0x4e5e7f)_0xf2708[_0x82b4d3]=_0xf2708[_0x82b4d3]['concat'](_0xf2708[_0x54ca13]),_0xf2708[_0x54ca13]=[];}for(const _0x34e6c4 of _0xf2708)for(let _0x953cc0=0x0;_0x953cc0<_0x34e6c4['length'];_0x953cc0++){const _0x5333c0=_0x34e6c4[_0x953cc0+0x1]||null;_0x34e6c4[_0x953cc0]['next']!==_0x5333c0&&(_0x34e6c4[_0x953cc0]['next']=_0x5333c0);}for(const _0xb997c2 of _0xf2708)for(let _0x7dd235=0x0;_0x7dd235<_0xb997c2['length'];_0x7dd235++){const _0x4f034d=_0xb997c2[_0x7dd235-0x1]||null;_0xb997c2[_0x7dd235]['previous']!==_0x4f034d&&(_0xb997c2[_0x7dd235]['previous']=_0x4f034d);}function _0x561640(_0x537122,_0x63dffb){if(_0x537122[0x0]['attributes']['groupId']!==_0x63dffb[0x0]['attributes']['groupId']&&_0x537122[0x0]['author']!==_0x63dffb[0x0]['author'])return!0x1;if(!function(_0x278ff8,_0x435926){if(!_0x278ff8['hasComments']&&!_0x435926['hasComments'])return!0x0;if(_0x278ff8['hasComments']&&_0x435926['hasComments'])return!0x1;if(_0x278ff8['hasComments']&&_0x435926['createdAt']<_0x278ff8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x435926['hasComments']&&_0x278ff8['createdAt']<_0x435926['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x537122[0x0],_0x63dffb[0x0]))return!0x1;const _0x35f1f5=Ut(_0x537122[0x0]['attributes'],['groupId','trackingSessionId']),_0x400a2d=Ut(_0x63dffb[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5eb148(_0x35f1f5,_0x400a2d))return!0x1;if(_0x537122[0x0]['attributes']['groupId']==_0x63dffb[0x0]['attributes']['groupId'])return!0x0;if(_0x537122[0x0]['attributes']['trackingSessionId']!==_0x63dffb[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x537122['every'](_0x1b0ba2=>_0x63dffb['some'](_0x534072=>_0x1b0ba2['getFirstRange']()['isEqual'](_0x534072['getFirstRange']())))&&_0x63dffb['every'](_0x34de99=>_0x537122['some'](_0x100083=>_0x34de99['getFirstRange']()['isEqual'](_0x100083['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4e55cd){const _0x292e9a=Array['from'](_0x4e55cd),_0x29750a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ef4cd=_0x29750a['filter'](_0x53f485=>!_0x4e55cd['has'](_0x53f485)),_0x2b26b5=new Map(_0x292e9a['map'](_0x50041c=>[_0x50041c,this['_suggestionFactory']['getSuggestionCallback'](_0x50041c['type'],_0x50041c['subType'],'join')])),_0x13af8e=new Map(_0x29750a['map'](_0x39d0f6=>[_0x39d0f6,_0x39d0f6['getRanges']()]));for(let _0x3c1625=0x0;_0x3c1625<_0x292e9a['length'];_0x3c1625++){if(_0x5c5310(this,_0x292e9a[_0x3c1625],_0x292e9a,_0x3c1625+0x1))return!0x0;}for(let _0x2ff1c4=0x0;_0x2ff1c4<_0x292e9a['length'];_0x2ff1c4++){if(_0x5c5310(this,_0x292e9a[_0x2ff1c4],_0x3ef4cd,0x0))return!0x0;}return!0x1;function _0x5c5310(_0x451e29,_0x3af4e9,_0x21167d,_0x5b173f){for(let _0x540d14=_0x5b173f;_0x540d14<_0x21167d['length'];_0x540d14++){const _0x5761c0=_0x21167d[_0x540d14];if(_0x5761c0['type']!==_0x3af4e9['type']||_0x5761c0['author']['id']!==_0x3af4e9['author']['id']||_0x5761c0['subType']!==_0x3af4e9['subType'])continue;if(!Wt(_0x3af4e9,_0x5761c0))continue;if('attribute'==_0x3af4e9['type']&&_0x3af4e9['data']['oldValue']!=_0x5761c0['data']['oldValue'])continue;if('attribute'==_0x3af4e9['type']&&_0x451e29['_isBlockAttribute'](_0x3af4e9['data']['key']))continue;if('formatBlock'==_0x3af4e9['type']){const _0x29b57d=_0x451e29['editor']['model'],_0x49fb90=_0x3af4e9['getContainedElement']();if(_0x49fb90&&(_0x29b57d['schema']['isObject'](_0x49fb90)||_0x29b57d['schema']['isLimit'](_0x49fb90)))continue;}const _0x2ece24=_0x2b26b5['get'](_0x3af4e9),_0x135c01=_0x13af8e['get'](_0x3af4e9),_0x1cd365=_0x13af8e['get'](_0x5761c0),_0x11b602=_0x3af4e9['commentThread']&&_0x3af4e9['commentThread']['length'],_0x25370e=_0x5761c0['commentThread']&&_0x5761c0['commentThread']['length'];if(!_0x11b602&&_0x2ece24(_0x1cd365,_0x135c01))return _0x451e29['_joinSuggestions'](_0x5761c0,_0x3af4e9),_0x13af8e['delete'](_0x3af4e9),!0x0;if(!_0x25370e&&_0x2ece24(_0x135c01,_0x1cd365))return _0x451e29['_joinSuggestions'](_0x3af4e9,_0x5761c0),_0x13af8e['delete'](_0x5761c0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1afc86,_0x3f207c){if(_0x1afc86['isMultiRange']){for(const _0xdf777b of _0x3f207c['getRanges']())_0x1afc86['addRange'](_0xdf777b);}else{const _0x4b4fd9=_0x3f207c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1afc86,this['_model']['createRange'](_0x1afc86['getFirstRange']()['start'],_0x4b4fd9));}_0x3f207c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x170da1,_0x3ce8a7,_0x3047ab){const _0x252e80=_0x170da1['startsWith']('format')||_0x170da1['startsWith']('attribute')?'FORMATTING':_0x170da1['toUpperCase']();return o(this['editor']['locale'],_0x3ce8a7+'_'+_0x252e80+'_SUGGESTION_ANNOUNCEMENT',_0x3047ab);}['_initAriaMarkerChangeAnnouncements'](){const _0x8ae7e2=this['editor'];if(!_0x8ae7e2['ui'])return;const {ariaLiveAnnouncer:_0x261ef2}=_0x8ae7e2['ui'];_0x245a5e(this['_model'],({left:_0x4dc484,entered:_0xaa41c8})=>{for(const _0x4f33de of _0x4dc484){const {group:_0x30b686,type:_0x3576fd}=this['_splitMarkerName'](_0x4f33de['name']);if('suggestion'===_0x30b686){_0x261ef2['announce'](this['_getMarkerAnnouncementText'](_0x3576fd,'LEAVE'));break;}}for(const _0x41517a of _0xaa41c8){const {group:_0x1ffe7a,type:_0x383b0c}=this['_splitMarkerName'](_0x41517a['name']);if('suggestion'===_0x1ffe7a){_0x261ef2['announce'](this['_getMarkerAnnouncementText'](_0x383b0c,'ENTER',_0x126f92(_0x1e0a49)));break;}}});}['_processAttributeChanges'](_0x4b7ca3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41f98b=this['editor'],_0x34c042=_0x41f98b['model']['document']['differ']['getChanges']();if(0x0==_0x34c042['length'])return!0x1;const _0x439a13=[],_0x2b1148=_0x34c042['filter'](_0x465779=>'attribute'==_0x465779['type']),_0x575719=_0x34c042['filter'](_0x5f017a=>'insert'==_0x5f017a['type']&&'$text'!=_0x5f017a['name']),_0x4fd090=_0x34c042['filter'](_0x2cf994=>'remove'==_0x2cf994['type']&&'$text'!=_0x2cf994['name']);for(const _0x337efe of _0x2b1148)_0x439a13['push']({'key':_0x337efe['attributeKey'],'newValue':_0x337efe['attributeNewValue'],'oldValue':_0x337efe['attributeOldValue'],'range':Ht(_0x337efe['range'],_0x41f98b['model'])});for(const _0x54f9cf of _0x575719){const _0x21432d=_0x4fd090['find'](_0x1025ce=>_0x1025ce['position']['isEqual'](_0x54f9cf['position']));_0x21432d&&_0x439a13['push']({'key':m,'newValue':_0x54f9cf['name'],'oldValue':_0x21432d['name'],'range':_0x41f98b['model']['createRangeOn'](_0x54f9cf['position']['nodeAfter'])});}return 0x0!=_0x439a13['length']&&this['_reduceExistingSuggestions'](_0x4b7ca3,_0x439a13);}['_processAttributeSuggestions'](_0x5b72c0){let _0x16ea84=!0x1;const _0x153b29=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7f619b=>_0x7f619b['data']['newRange']&&_0x7f619b['name']['startsWith']('suggestion:attribute:'));for(const _0x4a0a05 of _0x153b29){const {subType:_0x25b631,id:_0x3b0015}=this['_splitMarkerName'](_0x4a0a05['name']),_0xa25d3a=_0x25b631['split']('|')[0x0];for(const _0x572e82 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x572e82['id']!=_0x3b0015&&'attribute'==_0x572e82['type']&&_0x572e82['data']&&_0x572e82['data']['key']==_0xa25d3a&&_0x572e82['getFirstRange']()['isIntersecting'](_0x4a0a05['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x572e82,_0x4a0a05['data']['newRange'],_0x5b72c0),_0x16ea84=!0x0);}return _0x16ea84;}['recordAttributeChanges'](_0x538519){this['_recordAttributeSuggestions']=!0x0,_0x538519();}['_isRegisteredAttribute'](_0x534ade){const _0x141384=this['_isBlockAttribute'](_0x534ade),_0x4077fd=this['_inlineAttributeKeys']['has'](_0x534ade);return _0x141384||_0x4077fd;}['_reduceExistingSuggestions'](_0x27b8f3,_0x2fc0ba){if(0x0==_0x2fc0ba['length'])return!0x1;let _0x5b7755=!0x1;for(const _0x511d78 of _0x2fc0ba){const _0x488d0d=this['_findSuggestions'](_0x511d78['range'],'attribute')['filter'](_0x256b9b=>!_0x256b9b['meta']['isNextTo'])['map'](_0xdc4a34=>_0xdc4a34['suggestion']),_0x1d7268=_0x272e91({'newValue':_0x511d78['newValue']});_0x488d0d['filter'](_0x50f3bf=>{const [_0x5992be,_0x3f4982]=_0x50f3bf['subType']['split']('|');return _0x5992be==_0x511d78['key']&&_0x3f4982!=_0x1d7268;})['forEach'](_0x470843=>{this['_reduceSuggestionAttributeRange'](_0x470843,_0x511d78['range'],_0x27b8f3),_0x5b7755=!0x0;});}return _0x5b7755;}['_reduceSuggestionAttributeRange'](_0x4b0314,_0xb20592,_0x30c592){const _0x422d38=_0x4b0314['getFirstRange']()['getDifference'](_0xb20592);0x0!==_0x422d38['length']?0x1!==_0x422d38['length']?this['_breakSuggestionMarker'](_0x4b0314,_0xb20592['start'],_0xb20592['end']):this['_setSuggestionRange'](_0x4b0314,_0x422d38[0x0]):_0x30c592['removeMarker'](_0x4b0314['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x53a1eb){this['_editor']=_0x53a1eb,this['_model']=_0x53a1eb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b1e43,_0x2daef6,_0xa3402,_0x519258,_0x258dd1,_0x8433f2,_0x303ca7){return new T(this['_model'],{'type':_0x4b1e43,'subType':_0x2daef6,'id':_0xa3402,'originalSuggestionId':_0x303ca7,'author':_0x519258,'creator':_0x519258,'attributes':_0x258dd1,'onAttributesChange':_0x8433f2,'onAccept':(..._0x2f698d)=>this['getSuggestionCallback'](_0x4b1e43,_0x2daef6,'accept')(..._0x2f698d),'onDiscard':(..._0x548b17)=>this['getSuggestionCallback'](_0x4b1e43,_0x2daef6,'discard')(..._0x548b17)});}['registerCustomCallback'](_0x9e90ef,_0x1733cd,_0x221b8c,_0x173371){const _0x30f967=_0x9e90ef+':'+_0x1733cd+':'+_0x221b8c;this['_customCallbacks']['set'](_0x30f967,_0x173371);}['getSuggestionCallback'](_0x35673e,_0x514a61,_0xcdc390){const _0x383226=_0x35673e+':'+_0x514a61+':'+_0xcdc390;return this['_customCallbacks']['get'](_0x383226)||this['_defaultCallbacks']['get'](_0x35673e+':'+_0xcdc390);}['_registerDefaultCallbacks'](){const _0x5e8223=()=>!0x1,_0x27bc85=_0x5ace37=>{_0x5ace37['sort']((_0x4f04bf,_0x1de676)=>_0x4f04bf['start']['isBefore'](_0x1de676['start'])?0x1:-0x1),this['_model']['change'](_0x5c934b=>{for(const _0x3dfaf6 of _0x5ace37){let _0x1aa820;_0x1aa820=_0x3dfaf6['end']['isAtEnd']&&_0x3dfaf6['end']['parent']==_0x3dfaf6['start']['nodeAfter']?_0x5c934b['createSelection'](_0x3dfaf6['start']['nodeAfter'],'on'):_0x5c934b['createSelection'](_0x3dfaf6),this['_model']['deleteContent'](_0x1aa820,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x21aac6=(_0x356df1,_0x58d09b)=>{_0x58d09b&&this['_model']['change'](_0x2dbe4b=>{const {commandName:_0x579c4f,commandParams:_0x281bbf=[]}=_0x58d09b,_0x1df62f=_0x356df1['map'](_0x1989a7=>(Pt(_0x1989a7)&&(_0x1989a7=this['_model']['createRange'](_0x1989a7['end'])),_0x1989a7))['filter'](_0x4268ea=>'$graveyard'!==_0x4268ea['root']['rootName']);if(_0x1df62f['length']<0x1)return;const _0x183062=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x135c2d=>_0x25dfb1['fromRange'](_0x135c2d));_0x2dbe4b['setSelection'](_0x1df62f);for(const _0x530b4d of this['_editor']['commands']['commands']())_0x530b4d['refresh']();_0x281bbf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x579c4f,..._0x281bbf);const _0xe4e9f1=_0x183062['filter'](_0x4b4add=>'$graveyard'!=_0x4b4add['root']['rootName']);_0xe4e9f1['length']>0x0&&_0x2dbe4b['setSelection'](_0xe4e9f1);for(const _0x3028bc of _0x183062)_0x3028bc['detach']();});},_0x5c0a9b=(_0x3f6870,_0x5bbe2e)=>0x1==_0x3f6870['length']&&0x1==_0x5bbe2e['length']&&_0x3f6870[0x0]['end']['isEqual'](_0x5bbe2e[0x0]['start']),_0x23177c=(_0x56aea7,_0x4e63c5,_0x414c99,_0x5648c4)=>zt(_0x56aea7,_0x4e63c5,_0x414c99,_0x5648c4)?[_0x56aea7,_0x4e63c5]:zt(_0x4e63c5,_0x56aea7,_0x5648c4,_0x414c99)?[_0x4e63c5,_0x56aea7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e8223),this['_defaultCallbacks']['set']('insertion:discard',_0x27bc85),this['_defaultCallbacks']['set']('insertion:join',_0x5c0a9b),this['_defaultCallbacks']['set']('insertion:chain',_0x23177c),this['_defaultCallbacks']['set']('deletion:accept',_0x27bc85),this['_defaultCallbacks']['set']('deletion:discard',_0x5e8223),this['_defaultCallbacks']['set']('deletion:join',_0x5c0a9b),this['_defaultCallbacks']['set']('deletion:chain',_0x23177c),this['_defaultCallbacks']['set']('formatInline:accept',_0x21aac6),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e8223),this['_defaultCallbacks']['set']('formatInline:join',_0x5c0a9b),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e8223),this['_defaultCallbacks']['set']('formatBlock:accept',_0x21aac6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e8223),this['_defaultCallbacks']['set']('formatBlock:join',_0x5c0a9b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e8223),this['_defaultCallbacks']['set']('attribute:accept',_0x5e8223),this['_defaultCallbacks']['set']('attribute:discard',(_0x1ec996,_0x56f58c)=>{if(!_0x56f58c)return;const _0xbaa25f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1b5d0d=>{if(_0x56f58c['key']==m)for(const _0xb48995 of _0x1ec996){const _0x4d51d6=_0xb48995['start']['nodeAfter'],_0x520eb6=_0x56f58c['oldValue'];_0x1b5d0d['rename'](_0x4d51d6,_0x520eb6);}else{if(_0xbaa25f['_isBlockAttribute'](_0x56f58c['key'])){for(const _0x250607 of _0x1ec996)void 0x0!==_0x56f58c['oldValue']?_0x1b5d0d['setAttribute'](_0x56f58c['key'],_0x56f58c['oldValue'],_0x250607['start']['nodeAfter']):_0x1b5d0d['removeAttribute'](_0x56f58c['key'],_0x250607['start']['nodeAfter']);}else{for(const _0x45803e of _0x1ec996)_0x56f58c['oldValue']?_0x1b5d0d['setAttribute'](_0x56f58c['key'],_0x56f58c['oldValue'],_0x45803e):_0x1b5d0d['removeAttribute'](_0x56f58c['key'],_0x45803e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5c0a9b);}}function Ft(_0x513e17,_0xbe10,_0x121158){for(const _0x4fb724 of _0xbe10['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fb724['root']==_0x4fb724)return!0x1;if(!_0x121158['containsItem'](_0x4fb724))return!0x1;if(_0x513e17['isObject'](_0x4fb724)||_0x513e17['isLimit'](_0x4fb724))return!0x0;}return!0x1;}function Pt(_0x18726f){return _0x18726f['end']['parent']==_0x18726f['start']['nodeAfter']&&_0x18726f['end']['isAtStart'];}function Gt(_0x165c2d,_0x3d926f,_0x56ef1d,_0x28550c){const _0x47cc3d=_0x1f987f=>!_0x1f987f['item']['is']('$textProxy')&&!_0x28550c['isObject'](_0x1f987f['item']),_0x55fcd6=_0x165c2d['start']['getLastMatchingPosition'](_0x47cc3d),_0x54bbbd=_0x165c2d['end']['getLastMatchingPosition'](_0x47cc3d,{'direction':'backward'});return(!_0x165c2d['start']['isEqual'](_0x55fcd6)||!_0x165c2d['end']['isEqual'](_0x54bbbd))&&(_0x55fcd6['isBefore'](_0x54bbbd)?_0x56ef1d['updateMarker'](_0x3d926f,{'range':_0x56ef1d['createRange'](_0x55fcd6,_0x54bbbd)}):_0x56ef1d['removeMarker'](_0x3d926f),!0x0);}function Lt(_0x5caac8){return _0x272e91(_0x5caac8);}function Jt(_0x4df171){const _0x223e98=_0x4df171['start']['nodeAfter'];return _0x223e98&&_0x223e98['is']('element');}function Kt(_0xb1a7ac){return!Pt(_0xb1a7ac)&&!function(_0x2d97da){return _0x2d97da['start']['parent']==_0x2d97da['end']['nodeBefore']&&_0x2d97da['start']['isAtEnd'];}(_0xb1a7ac);}function Ht(_0x25040d,_0x3d2a64){return null==_0x25040d['end']['nodeBefore']&&_0x25040d['end']['parent']==_0x25040d['start']['nodeAfter']?qt(_0x25040d['start']['nodeAfter'],_0x3d2a64):_0x25040d;}function qt(_0x48d6d9,_0x3c8b75){const _0x4e2d31=_0x3c8b75['schema']['isObject'](_0x48d6d9)||_0x3c8b75['schema']['isSelectable'](_0x48d6d9);return _0x3c8b75['createRange'](_0x3c8b75['createPositionAt'](_0x48d6d9,'before'),_0x4e2d31?_0x3c8b75['createPositionAfter'](_0x48d6d9):_0x3c8b75['createPositionAt'](_0x48d6d9,'end'));}function zt(_0x373a0a,_0x57ba86,_0x469d99,_0x48a60e){return!!Wt(_0x373a0a,_0x57ba86)&&_0x469d99['end']['isEqual'](_0x48a60e['start']);}function Wt(_0x29199d,_0x2d879c){if(!_0x29199d['_isDataLoaded']||!_0x2d879c['_isDataLoaded'])return!0x1;const _0x266479=new Set(Object['keys'](_0x29199d['attributes'])),_0x5ea4a6=new Set(Object['keys'](_0x2d879c['attributes']));if(_0x266479['delete']('groupId'),_0x5ea4a6['delete']('groupId'),0x0==_0x266479['size']&&0x0==_0x5ea4a6['size'])return!0x0;if(_0x266479['size']!=_0x5ea4a6['size'])return!0x1;const _0x25610a={..._0x29199d['attributes']},_0x290aba={..._0x2d879c['attributes']};return delete _0x25610a['groupId'],delete _0x290aba['groupId'],JSON['stringify'](_0x25610a)==JSON['stringify'](_0x290aba);}function Qt(_0x18d86d,_0x4c8895){const _0x45ec36=Xt(_0x18d86d['attributes']),_0x55ec64=Xt(_0x4c8895);if(!_0x18d86d['_isDataLoaded'])return!0x1;for(const _0x12c68d of Object['keys'](_0x55ec64))if(!_0x5eb148(_0x45ec36[_0x12c68d],_0x55ec64[_0x12c68d]))return!0x1;return!0x0;}function Xt(_0x3e9ac7){const _0x55f56d=Object['assign']({},_0x3e9ac7);return delete _0x55f56d['skipNestingCheck'],delete _0x55f56d['tablePasteChainId'],_0x55f56d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4e3dd6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17df10,_0x4fdbda,_0x2e9e3e,_0x8534e6){super(),this['model']=_0x4fdbda,this['view']=_0x2e9e3e,this['commentThreadController']=_0x8534e6,this['_editor']=_0x17df10,this['_acceptCommand']=_0x17df10['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17df10['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x120b70,_0x5f4133)=>_0x120b70||_0x5f4133),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1e2c78=>_0x1e2c78&&this['_editor']['model']['canEditAt'](_0x4fdbda['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1f2aba=>_0x1f2aba&&this['_editor']['model']['canEditAt'](_0x4fdbda['getRanges']())),this['_pendingAction']=null,_0x2e9e3e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e9e3e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e9e3e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e9e3e,'change:isDirty',()=>{_0x2e9e3e['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 _0x33ac9f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x33ac9f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xb8166d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2189ca,_0x3c911f,_0x11f212,_0x3782bb){super(_0x2189ca),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x111aa7(_0x2189ca,o(_0x2189ca,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3c911f['authoredAt']),this['bind']('authoredAt')['to'](_0x3c911f),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',_0x3c911f,'authoredAt',this,'descriptionParts',(_0x172234,_0x360e9b,_0xc56569)=>{const _0x37c453=_0xc56569['map'](_0x5762b8=>ls(_0x5762b8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x172234-0x1,_0x3c911f['author']['name'],_0x360e9b?_0x3782bb['formatDateTime'](_0x360e9b):'',new DOMParser()['parseFromString'](_0x37c453,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3f2599(),this['focusTracker']=new _0xb3b525(),this['keystrokes']=new _0x94f6eb(),this['focusCycler']=new _0x94e2c4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5dce91=>_0x5dce91['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3c911f,this['_localUser']=_0x11f212,this['_config']=_0x3782bb,_0x3782bb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2a525b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a1585}=this['_config'];this['commentsListView']=new _0x2a1585(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',_0x7139c7=>_0x7139c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d4061,_0x19cbd0)=>_0x5d4061||!!_0x19cbd0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x100183}=this['_config'],_0x1822b8=new _0x100183(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x557546=_0x1822b8['commentInputView'];return _0x1822b8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x557546,'value',(_0x42f04e,_0x29366a,_0x16461c)=>!!_0x16461c||_0x42f04e&&!_0x29366a),_0x557546['on']('submit',(_0x20eafa,_0x3ed6c6)=>{this['fire']('addComment',_0x3ed6c6),_0x557546['editor']['setData']('');}),_0x557546['on']('cancel',()=>this['focus']()),_0x557546['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1822b8;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x22de1b,_0x399d41,_0x20e94b,_0x155d03){super(_0x22de1b,_0x399d41,_0x20e94b,_0x155d03),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x19b314=>_0x19b314&&_0x19b314[0x0]?_0x19b314[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa01359,_0x4f835c)=>{let _0x45843c='';for(const _0xa43958 of _0xa01359)_0x45843c+='<p>'+ls(_0xa43958['content'],_0xa43958['color'])+'</p>';return _0x4f835c?_0x45843c:_0x1922f1(_0x45843c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x155d03['SuggestionView'](_0x22de1b,_0x399d41,{'formatDateTime':_0x155d03['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 _0x23f3bd=this['bindTemplate'],_0x27e086=[this['suggestionView']];return this['commentsListView']&&_0x27e086['push'](this['commentsListView']),this['commentThreadInputView']&&_0x27e086['push'](this['commentThreadInputView']),_0x27e086['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x23f3bd['if']('isActive','ck-suggestion-wrapper--active'),_0x23f3bd['to']('type',_0x577bf9=>'ck-suggestion-'+_0x577bf9),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':_0x23f3bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x27e086};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0xb8166d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2dbe6e,_0x44e774,_0x24c064){super(_0x2dbe6e),this['_model']=_0x44e774,this['_config']=_0x24c064,this['set']('description',''),this['bind']('authoredAt')['to'](_0x44e774),this['acceptButton']=this['_createButton'](o(_0x2dbe6e,'Accept\x20suggestion'),_0x1a017b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2dbe6e,'Discard\x20suggestion'),_0x324055,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x100e70(_0x2dbe6e,_0x44e774['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3f2599([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xb3b525(),this['keystrokes']=new _0x94f6eb(),this['focusCycler']=new _0x94e2c4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ac3ed=>_0x3ac3ed['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x131616=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x131616['innerHTML']=this['description'],this['on']('change:description',(_0x118777,_0x126db8,_0x3fffe9)=>{_0x131616['innerHTML']=_0x3fffe9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3f1b4a=this['bindTemplate'],_0x4e66f0=[{'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':_0x3f1b4a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f1b4a['to']('authoredAt',_0x4201c3=>this['_config']['formatDateTime'](_0x4201c3))}]}]},{'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']&&_0x4e66f0['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':_0x4e66f0}]};}['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'](_0x117405,_0x4d2d42,_0x57b84d,_0x491831,_0x45eb7e){const _0x16ebff=new _0xdbe377(this['locale']);return _0x16ebff['set']({'label':_0x117405,'icon':_0x4d2d42,'tooltip':!0x0,'tooltipPosition':_0x45eb7e}),_0x16ebff['extendTemplate']({'attributes':{'class':_0x57b84d}}),_0x16ebff['on']('execute',()=>{this['fire'](_0x491831,this['_model']['id']);}),_0x16ebff;}['_setupKeyboardNavigation'](){const _0x502577=this['element'];this['keystrokes']['listenTo'](_0x502577);for(const _0x330344 of this['focusables'])this['focusTracker']['add'](_0x330344['element']),this['keystrokes']['listenTo'](_0x330344['element']);this['keystrokes']['set']('enter',(_0xcd58bf,_0x2c0ff8)=>{_0x502577===_0xcd58bf['target']&&(this['focusCycler']['focusFirst'](),_0x2c0ff8());}),this['keystrokes']['set']('esc',(_0x27c9d4,_0x2595ab)=>{_0x502577!==_0x27c9d4['target']&&(this['focus'](),_0x2595ab());});}}class u extends _0x96746a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x31b51b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x120a88){super(_0x120a88),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x420431=this['editor']['config'];_0x420431['define']('trackChanges.SuggestionThreadView',fe),_0x420431['define']('trackChanges.SuggestionView',we),_0x420431['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x420431['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x317e57,_0x52b800){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1fd781,_0x55d418]of this['_handleControllerBuffer']){const _0x2457db=this['_suggestionToController']['has'](_0x1fd781);_0x2457db||_0x55d418?_0x2457db&&_0x55d418&&this['_destroyController'](_0x1fd781):this['_initializeController'](_0x1fd781);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x317e57,_0x52b800);}['init'](){const _0x11b24b=this['editor'],_0x4cf03b=_0x11b24b['plugins']['get']('TrackChangesEditing'),_0x5d3ebb=_0x11b24b['plugins']['get']('Annotations'),_0x474a6e=_0x11b24b['plugins']['get']('EditorAnnotations'),_0xb91b94=_0x11b24b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x474a6e['addSourceCollector'](()=>{const _0x3030bb=[];for(const [_0xa590fb,_0x3911e5]of Array['from'](this['_suggestionToController'])){const _0x361eb6=_0xa590fb['getAllAdjacentSuggestions'](),_0x450def=[];for(const _0x19c217 of _0x361eb6){if(!_0x19c217['isInContent'])continue;if(_0x19c217['isMultiRange']){_0x450def['push'](..._0x19c217['getRanges']());continue;}const _0x2834ea=_0x19c217['getFirstRange']();if(_0x450def['length']>0x0){const _0x1c4e46=_0x450def[0x0]['getJoined'](_0x2834ea);if(_0x1c4e46){_0x450def[0x0]=_0x1c4e46;continue;}}_0x450def['push'](_0x2834ea);}_0x3030bb['push']([_0x3911e5['view'],_0x450def]);}return _0x3030bb;}),this['listenTo'](_0x4cf03b,'suggestionLoaded',(_0x3fc8a8,_0x46da64)=>{this['listenTo'](_0x46da64,'change:previous',(_0x3c1df6,_0x3cfe05,_0x13505b,_0x558a40)=>{_0x46da64['isInContent']&&(null==_0x13505b?(this['_updateController'](_0x558a40['head']),this['_handleSuggestionControllerDelayed'](_0x46da64,!0x1)):(this['_updateController'](_0x13505b['head']),null==_0x558a40&&this['_handleSuggestionControllerDelayed'](_0x46da64,!0x0)));}),null!==_0x46da64['previous']?this['_updateController'](_0x46da64['head']):this['_handleSuggestionControllerDelayed'](_0x46da64,!0x1);}),this['listenTo'](_0x4cf03b,'suggestionUnloaded',(_0x5c7d34,_0x2b69ea,_0x1f5dfb)=>{this['stopListening'](_0x2b69ea,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b69ea),this['_suggestionToController']['has'](_0x2b69ea)&&this['_destroyController'](_0x2b69ea),_0x1f5dfb&&this['_updateController'](_0x1f5dfb['head']);}),this['listenTo'](_0x4cf03b,'suggestionChanged',(_0x569724,_0x45d79e)=>{this['_updateController'](_0x45d79e);}),this['listenTo'](_0x5d3ebb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xb91b94,'addComment',(_0x479cde,{threadId:_0x85e21a,isFromAdapter:_0xd68eda})=>{if(_0xd68eda||!_0x4cf03b['hasSuggestion'](_0x85e21a))return;const _0xafe3ba=_0x4cf03b['getSuggestion'](_0x85e21a);this['_suggestionToController']['get'](_0xafe3ba)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c6470=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d5dee;for(const _0x3bd6d5 in _0x4c6470){const _0x50256f=_0x3bd6d5,_0x3f117c=_0x4c6470[_0x50256f];if('trackChangesLicenseKeyValid'==_0x3f117c||'trackChangesLicenseKeyInvalid'==_0x3f117c||'trackChangesLicenseKeyExpired'==_0x3f117c||'trackChangesLicenseKeyDomainLimit'==_0x3f117c||'trackChangesLicenseKeyNotAllowed'==_0x3f117c||'trackChangesLicenseKeyEvaluationLimit'==_0x3f117c||'trackChangesLicenseKeyTrialLimit'==_0x3f117c||'trackChangesLicenseKeyUsageLimit'==_0x3f117c){delete _0x4c6470[_0x50256f],_0x3d5dee=_0x3f117c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3d5dee&&_0x4c6470['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3d5dee&&_0x4c6470['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3d5dee&&_0x4c6470['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3140a7){const _0x2fec87=this['_suggestionToController']['get'](_0x3140a7);if(!_0x2fec87)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2fec87['view'])||null;}['getSuggestionForAnnotation'](_0x466f8d){const _0x485859=this['_viewToController']['get'](_0x466f8d['innerView']);return _0x485859?_0x485859['model']:null;}['_refreshActiveMarkers'](){const _0x303317=this['editor']['plugins']['get']('Annotations'),_0x392698=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdbdf83=Array['from'](_0x303317['activeAnnotations'],_0x331156=>_0x331156['innerView'])['filter'](_0x5957e3=>this['_viewToController']['has'](_0x5957e3)),_0x144e38=[];for(const _0x2758c9 of _0xdbdf83){const _0x3507a1=this['_viewToController']['get'](_0x2758c9)['model']['getAllAdjacentSuggestions']();_0x144e38['push'](..._0x3507a1['reduce']((_0x203638,_0x37c4e8)=>[..._0x203638,..._0x37c4e8['getMarkerNames']()],[]));}_0x392698['activeMarkers']=_0x144e38;}['_addUIComponentsToFactory'](){const _0x91cb01=this['editor'],_0x172f1d=_0x91cb01['locale'],_0x388643=o(_0x172f1d,'Track\x20changes'),_0xe747ab=new _0x227344([{'type':'switchbutton','model':new _0x46cb95({'withText':!0x0,'isToggleable':!0x0,'label':_0x388643,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x91cb01['plugins']['has']('TrackChangesPreview')&&_0xe747ab['addMany']([{'type':'separator'},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2fd1e5 of _0xe747ab)if(ke(_0x2fd1e5)){const _0x66b8cc=_0x91cb01['commands']['get'](_0x2fd1e5['model']['commandName']);_0x2fd1e5['model']['bind']('isOn','isEnabled')['to'](_0x66b8cc,'value','isEnabled');}_0x91cb01['ui']['componentFactory']['add']('trackChanges',_0x2ad26a=>this['_createToolbarButton'](_0x2ad26a,_0xe747ab,_0x388643)),_0x91cb01['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5cb588=>this['_createMenuBarMenu'](_0x5cb588,_0xe747ab,_0x388643));}['_createToolbarButton'](_0x7271fb,_0x23a9e1,_0x22f5e4){const _0x49c4f9=_0x196bac(_0x7271fb,_0xcdae04),_0xc697a1=this['editor']['commands']['get']('trackChanges');_0x49c4f9['buttonView']['set']({'tooltip':_0x22f5e4,'label':_0x22f5e4,'icon':_0x2c6346}),_0x49c4f9['buttonView']['bind']('isOn')['to'](_0xc697a1,'value'),_0x49c4f9['buttonView']['on']('execute',()=>{_0xc697a1['execute'](),this['editor']['editing']['view']['focus']();}),_0x342b32(_0x49c4f9,_0x23a9e1,{'role':'menu'});const _0x361c95=[];for(const _0x2c866c of _0x23a9e1)ke(_0x2c866c)&&_0x361c95['push'](this['editor']['commands']['get'](_0x2c866c['model']['commandName']));const _0x25c380=_0x49c4f9['buttonView'];return _0x25c380['actionView']['unbind']('isEnabled'),_0x25c380['arrowView']['unbind']('isEnabled'),_0x25c380['actionView']['bind']('isEnabled')['to'](_0xc697a1,'isEnabled'),_0x25c380['arrowView']['bind']('isEnabled')['toMany'](_0x361c95,'isEnabled',(..._0x61e962)=>_0x61e962['some'](_0x284f35=>_0x284f35)),_0x49c4f9['on']('execute',_0x40dd1c=>{this['editor']['execute'](_0x40dd1c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x49c4f9;}['_createMenuBarMenu'](_0x1636e0,_0x166c1c,_0xeec129){const _0x45dad8=new _0x53ad8c(_0x1636e0),_0x39aa63=this['editor']['commands']['get']('trackChanges');_0x45dad8['buttonView']['set']({'label':_0xeec129,'icon':_0x2c6346});const _0x431dfa=new _0x52e549(_0x1636e0);for(const _0x3ffbfa of _0x166c1c){if('separator'==_0x3ffbfa['type']){_0x431dfa['items']['add'](new _0x2b7c43(_0x1636e0));continue;}const _0x21dfa4=new _0x53d5f0(_0x1636e0,_0x45dad8),_0x3158ba=new _0x5cd0e7(_0x1636e0),_0xd42f56=_0x3ffbfa['model'];_0x3158ba['bind'](...Object['keys'](_0xd42f56))['to'](_0xd42f56),_0x3158ba['delegate']('execute')['to'](_0x45dad8),_0x3158ba['on']('execute',()=>{this['editor']['execute'](_0xd42f56['commandName']),this['editor']['editing']['view']['focus']();}),_0x21dfa4['children']['add'](_0x3158ba),_0x431dfa['items']['add'](_0x21dfa4);}return _0x45dad8['bind']('isEnabled')['to'](_0x39aa63,'isEnabled'),_0x45dad8['panelView']['children']['add'](_0x431dfa),_0x45dad8;}['_initializeController'](_0xef3cfd){const _0x1efff6=this['editor'],_0x3da10a=_0x1efff6['config'],_0xb0a97c=_0x1efff6['plugins']['get']('Annotations'),_0xd671ac=_0x1efff6['plugins']['get']('CommentsRepository'),_0x46649f=_0x1efff6['plugins']['get']('EditorAnnotations'),_0x3bf078=_0x1efff6['plugins']['get'](_0x31b51b)['me'],_0x2e9eb7=_0x3da10a['get']('trackChanges')['SuggestionThreadView'],_0x567c30=_0x3da10a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x49922f,CommentThreadInputView:_0x238986}=_0x1efff6['plugins']['get']('CommentsUI');let _0x1e9244,_0x18c63d,_0x43d4c2;this['_annotationViews']['has'](_0xef3cfd['id'])?(_0x18c63d=this['_annotationViews']['get'](_0xef3cfd['id']),_0x1e9244=_0x18c63d['mainView']):(_0x1e9244=new _0x2e9eb7(_0x1efff6['locale'],_0xef3cfd,_0x3bf078,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3da10a['get']('comments.editorConfig'),'licenseKey':_0x3da10a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3da10a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3da10a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3da10a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x17750a(_0x3da10a['get']('locale'),_0x1efff6['locale']),'CommentView':_0x3da10a['get']('comments')['CommentView'],'CommentsListView':_0x49922f,'CommentThreadInputView':_0x238986,'SuggestionView':_0x567c30}),_0x1e9244['suggestionView']['acceptButton']['on']('execute',()=>{_0x1efff6['editing']['view']['focus']();}),_0x1e9244['suggestionView']['discardButton']['on']('execute',()=>{_0x1efff6['editing']['view']['focus']();}),_0x18c63d=_0xb0a97c['createAnnotationView'](this['editor']['locale'],_0x1e9244),_0x18c63d['bind']('isDirty')['to'](_0x1e9244,'isDirty'),_0x18c63d['bind']('length')['to'](_0x1e9244),_0x18c63d['bind']('type')['to'](_0x1e9244,'type',_0x24fd29=>'suggestion-'+_0x24fd29),_0x1e9244['on']('escape',()=>{_0x43d4c2['fire']('escape');}),this['_annotationViews']['set'](_0xef3cfd['id'],_0x18c63d));const _0x12db09=_0xd671ac['createCommentThreadController'](_0xef3cfd['commentThread'],_0x1e9244),_0x42a6da=new pe(_0x1efff6,_0xef3cfd,_0x1e9244,_0x12db09),_0x261a78=_0xef3cfd['getAllAdjacentSuggestions']()['filter'](_0x28c7fa=>_0x28c7fa['isInContent']);_0x1e9244['descriptionParts']=_0x1efff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x261a78),this['_suggestionToController']['set'](_0xef3cfd,_0x42a6da),this['_viewToController']['set'](_0x1e9244,_0x42a6da),_0x43d4c2=_0xb0a97c['createAnnotation']({'view':_0x18c63d,'target':()=>{const _0x18d4c5=[],_0x33985b=_0xef3cfd['getAllAdjacentSuggestions']()['filter'](_0x3e0974=>_0x3e0974['isInContent']);for(const _0x3151ec of _0x33985b)_0x18d4c5['push'](..._0x3151ec['getMarkers']());return _0x558f14(_0x1efff6['editing'],_0x18d4c5);},'type':()=>'suggestion-'+_0x42a6da['view']['type']}),_0xd671ac['_bindAnnotationToEditors'](_0x1e9244,_0x43d4c2),_0xb0a97c['add'](_0x43d4c2),_0x46649f['registerAnnotation'](_0x43d4c2);}['_destroyController'](_0x7db88d){const _0x1ee63d=this['editor']['plugins']['get']('CommentsRepository'),_0x4046f2=this['editor']['plugins']['get']('Annotations'),_0x32e135=this['_suggestionToController']['get'](_0x7db88d),_0x144375=_0x32e135['view'],_0x52158c=_0x4046f2['getByInnerView'](_0x144375);_0x1ee63d['_unbindEditors'](_0x144375),_0x52158c&&_0x4046f2['remove'](_0x52158c),this['_suggestionToController']['delete'](_0x7db88d),this['_viewToController']['delete'](_0x144375),_0x32e135['destroy']();}['_updateController'](_0x556749){if(!_0x556749['isInContent']||!this['_suggestionToController']['has'](_0x556749))return;const _0xa3a1db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bd6f6=this['_suggestionToController']['get'](_0x556749),_0xb09e6f=_0x556749['getAllAdjacentSuggestions']();_0x4bd6f6['view']['descriptionParts']=_0xa3a1db['descriptionFactory']['getDescriptions'](_0xb09e6f);}['destroy'](){for(const _0xb319ab of this['_suggestionToController']['keys']())this['_destroyController'](_0xb319ab);for(const _0x7b8a24 of this['_annotationViews']['values']())_0x7b8a24['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x28b6e2){return'model'in _0x28b6e2;}class Fe extends _0x96746a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x445dbe){this['editor']['plugins']['get'](d)['adapter']=_0x445dbe;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2d6bf7){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2d6bf7);}['getSuggestions']({skipNotAttached:_0x1096b5=!0x1,toJSON:_0x5df629=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1096b5,'toJSON':_0x5df629});}['getSuggestion'](_0x45c122){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x45c122);}}const p=['Pagination'];class re extends _0x96746a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3a4cd9=this['editor'];if(_0x3a4cd9['config']['define']('trackChangesData.editorCreator',_0x1c8102=>{const _0x22c50d=_0x3a4cd9['model']['document']['getRootNames']()['reduce']((_0x1c8082,_0x4e8512)=>(_0x1c8082[_0x4e8512]='',_0x1c8082),{});return _0x3a4cd9['constructor']['create'](_0x22c50d,_0x1c8102);}),'function'!=typeof _0x3a4cd9['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ef735('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x30060c){return P(this['editor'],!0x0,_0x30060c);}['getDataWithDiscardedSuggestions'](_0x563100){return P(this['editor'],!0x1,_0x563100);}}class Ge extends _0x96746a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x981872){function _0x3f7887(_0x10ccd2){return _0x10ccd2['map'](_0xa4f7ac=>String['fromCharCode'](_0xa4f7ac))['join']('');}super(_0x981872),this['result']='end',_0x981872[_0x3f7887([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f7887([0x76,0x69,0x65,0x77])][_0x3f7887([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f7887([0x61,0x75,0x74,0x6f]),_0x981872[_0x3f7887([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f7887([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f7887([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f7887([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f7887([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x511223){return void 0x0!==_0x511223['getRootsAttributes'];}async function P(_0x599b4a,_0x51b6f9,_0x46b8a4){const _0x2fddb2=_0x5cb69a(_0x599b4a,p);_0x2fddb2['plugins']['push'](d,Ge),_0x2fddb2['rootsAttributes']=$e(_0x599b4a)?_0x599b4a['getRootsAttributes']():void 0x0;const _0x11f225=document['createDocumentFragment'](),_0x56fe57=_0x599b4a['config']['get']('trackChangesData')['editorCreator'],_0x404964=await _0x56fe57(_0x2fddb2,()=>function(_0xd96a4e){const _0x13ddcd=document['createElement']('div');return _0xd96a4e['appendChild'](_0x13ddcd),_0x13ddcd;}(_0x11f225));!function(_0x37a757,_0x3d6a38){const _0x1ca1f4=_0x37a757['model']['document']['getRootNames']()['reduce']((_0x327f8d,_0x7b263e)=>(_0x327f8d[_0x7b263e]=_0x37a757['data']['get']({'rootName':_0x7b263e}),_0x327f8d),{}),_0x94563e=_0x37a757['plugins']['get']('Users')['users']['map'](_0x5361ff=>({'id':_0x5361ff['id'],'name':_0x5361ff['name']})),_0x4bab82=_0x37a757['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17d516=_0x37a757['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x266ddc=_0x3d6a38['plugins']['get']('Users'),_0x33538d=_0x3d6a38['plugins']['get']('TrackChangesEditing'),_0x207e97=_0x3d6a38['plugins']['get']('CommentsRepository');for(const _0x7622d4 of _0x207e97['getCommentThreads']())_0x7622d4['remove']();for(const _0x2ae0db of _0x94563e)_0x266ddc['getUser'](_0x2ae0db['id'])||_0x266ddc['addUser'](_0x2ae0db);_0x266ddc['me']||_0x266ddc['useAnonymousUser']();for(const _0x47d1fe of _0x17d516)_0x207e97['addCommentThread'](_0x47d1fe);for(const _0x203a40 of _0x4bab82)_0x33538d['addSuggestionData'](_0x203a40);_0x3d6a38['data']['set'](_0x1ca1f4);}(_0x599b4a,_0x404964),_0x404964['execute'](_0x51b6f9?'acceptAllSuggestions':'discardAllSuggestions');const _0x33b3e0=$e(_0x404964)?_0x404964['getFullData'](_0x46b8a4):_0x404964['data']['get'](_0x46b8a4);return await _0x404964['destroy'](),_0x33b3e0;}class Me extends _0xb8166d{['options'];constructor(_0x4db26e,_0x3c9379){super(_0x4db26e),this['options']=_0x3c9379,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'](_0x15ad85,_0x3841ce){if(!this['element'])return;const _0x464248=[];for(const [_0x38618e,_0x30d14c]of _0x15ad85){const _0x4ff3d8=document['createElement']('div');_0x4ff3d8['setAttribute']('data-ck-root-name',_0x38618e),_0x4ff3d8['className']=_0x30d14c['classes']+'\x20ck-track-changes-preview__root-container',_0x4ff3d8['innerHTML']=_0x30d14c['content'],_0x464248['push'](_0x4ff3d8);}_0x3841ce(this['element'],_0x464248),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x33a692{constructor(_0x14accf){super(_0x14accf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1f2f4a=this['editor'],_0x134707=_0x1f2f4a['locale'],_0x351ee0=_0x1f2f4a['plugins']['get']('Dialog');let _0x102cb0;const _0x28edc2=function(_0x11127d){const _0x39dd37={};if('editables'in _0x11127d['ui']['view']){for(const [_0x4371e0,_0x3929d0]of Object['entries'](_0x11127d['ui']['view']['editables']))_0x39dd37[_0x4371e0]=_0x3929d0['element'];}else _0x39dd37[_0x11127d['model']['document']['getRootNames']()[0x0]]=_0x11127d['ui']['view']['editable']['element'];return _0x39dd37;}(_0x1f2f4a),_0xe0288a=function(_0x8c31a4){let _0x3a54b7=0x0;for(const _0x5cc302 of Object['values'](_0x8c31a4))_0x3a54b7=Math['max'](_0x3a54b7,_0x5cc302['getBoundingClientRect']()['width']);let _0x214669=0x0;for(const _0x30320a of Object['values'](_0x8c31a4))_0x214669+=_0x30320a['getBoundingClientRect']()['height'];const _0x4b8bc8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4f8056=Math['min'](_0x214669,_0x4b8bc8);return{'width':_0x3a54b7,'height':_0x4f8056};}(_0x28edc2);_0x351ee0['show']({'id':'finalContentPreview','title':o(_0x134707,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x134707,{'dialogRects':_0xe0288a}),'onHide':()=>{_0x102cb0['detachFromDom']();},'onShow':()=>{_0x1f2f4a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d1e48=>{const _0x539705=this['_standarizeRootsData'](_0x1d1e48,_0x1f2f4a,_0x28edc2);_0x351ee0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x539705,_0x1f2f4a['config']['get']('trackChanges.preview.renderFunction'));}),_0x102cb0=new _0x5dd9c9(_0x134707,[_0x351ee0['view']]),_0x102cb0['attachToDom'](),_0x102cb0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1f2f4a['once']('destroy',()=>{_0x102cb0['detachFromDom']();});const _0x39141e=_0x351ee0['view']['headerView']['class'];_0x351ee0['view']['headerView']['class']=_0x39141e?_0x39141e+'\x20ck-reset_all':'ck-reset_all',_0x351ee0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x351ee0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x108237=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3a4753=_0x108237['previewMode'],_0x3d1956={};if('$labels'===_0x3a4753){for(const _0x4a8759 of _0x108237['getMergeFieldsIds']())_0x3d1956[_0x4a8759]=_0x108237['getLabel'](_0x4a8759)||_0x4a8759;}else{const _0x2b0de0='$defaultValues'===_0x3a4753?_0x108237['getDefaultValues']():_0x108237['getDataSetValues'](_0x3a4753,!0x0);for(const _0x36f883 of Object['entries'](_0x2b0de0)){const [_0x22879e,_0x45bb5c]=_0x36f883;_0x3d1956[_0x22879e]=null!==_0x45bb5c?_0x45bb5c:_0x108237['getLabel'](_0x22879e)||_0x22879e;}}return{'mergeFieldsData':_0x3d1956};}['_standarizeRootsData'](_0xea2c8e,_0x1d3b05,_0x47bcd0){let _0x376ec9;if('string'==typeof _0xea2c8e){const _0x7138e3=_0x1d3b05['model']['document']['getRootNames']()[0x0];_0x376ec9={[_0x7138e3]:_0xea2c8e};}else _0x376ec9=_0xea2c8e;const _0x4390ce=this['_fixMediaEmbeds'](_0x376ec9,_0x1d3b05),_0x2a1f8e=function(_0x1c78cd,_0x26e8e0){for(const [_0x414895,_0x227920]of _0x1c78cd)_0x227920['classes']=_0x26e8e0[_0x414895]['classList']['value']['replace']('ck-focused','');return _0x1c78cd;}(this['_sortRoots'](_0x1d3b05)['reduce']((_0x354adc,_0x3ff0ca)=>(_0x354adc['push']([_0x3ff0ca,{'content':_0x4390ce[_0x3ff0ca],'classes':''}]),_0x354adc),[]),_0x47bcd0);return _0x2a1f8e;}['_fixMediaEmbeds'](_0xa8af61,_0x230ca7){if(!_0x230ca7['plugins']['has']('MediaEmbedEditing'))return _0xa8af61;const _0x37ec1a=_0x230ca7['plugins']['get']('MediaEmbedEditing');for(const [_0x371d93,_0x32757a]of Object['entries'](_0xa8af61)){const _0x4ddd27=document['createElement']('div');_0x4ddd27['innerHTML']=_0x32757a,(_0x4ddd27['querySelectorAll']('figure.media')['forEach'](_0x52e958=>{const _0x41d26f=_0x52e958['querySelector']('oembed');if(_0x41d26f){const _0x4c2f0b=_0x41d26f['getAttribute']('url');if(_0x4c2f0b){const _0x15bc0a=_0x37ec1a['registry']['getMediaViewElement'](new _0xbb7058(_0x230ca7['editing']['view']['document']),_0x4c2f0b,{'elementName':'','renderForEditingView':!0x0}),_0x36caad=document['createElement']('div');_0x36caad['classList']['add']('ck-media__wrapper'),_0x15bc0a['render'](_0x36caad,_0x230ca7['editing']['view']['domConverter']),_0x41d26f['replaceWith'](_0x36caad);}}}),_0xa8af61[_0x371d93]=_0x4ddd27['innerHTML']);}return _0xa8af61;}['_sortRoots'](_0x1fcb43){if(!function(_0x3df1c5){return void 0x0!==_0x3df1c5['getRootsAttributes'];}(_0x1fcb43))return _0x1fcb43['model']['document']['getRootNames']();const _0x4b1bfa=[],_0x3d87cc=new Map();for(const _0x1e1412 of _0x1fcb43['model']['document']['getRootNames']()){const _0x1c8556=_0x1fcb43['editing']['view']['getDomRoot'](_0x1e1412)['getClientRects']()['item'](0x0);_0x4b1bfa['push'](_0x1e1412),_0x3d87cc['set'](_0x1e1412,_0x1c8556);}return _0x4b1bfa['sort']((_0x3d808a,_0x2801ff)=>{const _0x567663=_0x3d87cc['get'](_0x3d808a),_0x552146=_0x3d87cc['get'](_0x2801ff);return _0x567663['y']-_0x552146['y']||_0x567663['x']-_0x552146['x'];}),_0x4b1bfa;}}class He extends _0x96746a{static get['requires'](){return[re,_0x3e3202];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xce711b){super(_0xce711b),_0xce711b['commands']['add']('previewFinalContent',new te(this['editor'])),_0xce711b['config']['define']('trackChanges.preview.renderFunction',(_0x5c3d50,_0x2218a9)=>{for(const _0x37bd4d of _0x2218a9)_0x5c3d50['appendChild'](_0x37bd4d);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|
|
23
|
+
import{Command as _0x1ae931,Plugin as _0xccd55c,PendingActions as _0x3bc0b2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59d332,ObservableMixin as _0x389d9b,uid as _0x427844,priorities as _0x850491,insertToPriorityArray as _0x2e014a,toArray as _0x1c6e8b,logWarning as _0x14c28e,getEnvKeystrokeText as _0x2a60c2,FocusTracker as _0x336cee,KeystrokeHandler as _0x1db80e,Collection as _0x52b0e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4d3828,IconCancel as _0x220b2c,IconTrackChanges as _0x2a8276}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x514438,View as _0x390189,ViewCollection as _0x164c10,FocusCycler as _0x435308,UIModel as _0xe74fc0,createDropdown as _0x3ec213,SplitButtonView as _0x23a6b0,addListToDropdown as _0x1ac0a4,MenuBarMenuView as _0x52984c,MenuBarMenuListView as _0x42add5,ListSeparatorView as _0x6bdc90,MenuBarMenuListItemView as _0x3d5b90,MenuBarMenuListItemButtonView as _0x51bfc9,BodyCollection as _0x49dc14,Dialog as _0xb00e44}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1c60de,hashObject as _0x17437d,surroundingMarkersDetector as _0xfb66d9,FOCUS_ANNOTATION_KEYSTROKE as _0x59a850,AriaDescriptionView as _0x2805ed,setupThreadKeyboardNavigation as _0x4d2696,trimHtml as _0x33cbe5,UserView as _0x924866,LateFocusButtonView as _0x5dfb91,getDateTimeFormatter as _0x142fa3,getAllMarkersDomElementsSorted as _0x17848e,sanitizeEditorConfig as _0x423a1d}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x48434c,ModelLiveRange as _0x20b456,ModelLivePosition as _0x26ff4e,ViewDowncastWriter as _0x278fb4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x117925,toWidget as _0xc4712e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x460771,set as _0x519ddd,isEqual as _0x23cad6,unset as _0x50ac6c,omit as Ut}from'es-toolkit/compat';import{Delete as _0x202975,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d2f33}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x6b813f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1ae931{['_enabledCommands'];constructor(_0x9e8eb9,_0x3579f8){super(_0x9e8eb9),this['_enabledCommands']=_0x3579f8,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 _0x2947b6 of this['editor']['commands']['commands']())_0x2947b6['affectsData']&&!this['_enabledCommands']['has'](_0x2947b6)&&_0x2947b6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d6ec3 of this['editor']['commands']['commands']())_0x1d6ec3['affectsData']&&!this['_enabledCommands']['has'](_0x1d6ec3)&&_0x1d6ec3['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1ae931{['_suggestions'];constructor(_0xb13e25,_0x315b09){super(_0xb13e25),this['_suggestions']=_0x315b09,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbddae7){const _0x4fb82b=this['_suggestions']['get'](_0xbddae7);if(!_0x4fb82b)throw new _0x59d332('track-changes-accept-suggestion-not-found',this);const _0x4b6dcc=_0x4fb82b['getRanges']();this['editor']['model']['canEditAt'](_0x4b6dcc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4fb82b);}}class M extends _0x1ae931{['_suggestions'];constructor(_0x2c6348,_0x51b69b){super(_0x2c6348),this['_suggestions']=_0x51b69b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x190e56){const _0x38dd99=this['_suggestions']['get'](_0x190e56);if(!_0x38dd99)throw new _0x59d332('track-changes-discard-suggestion-not-found',this);const _0x5d3f8c=_0x38dd99['getRanges']();this['editor']['model']['canEditAt'](_0x5d3f8c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x38dd99);}}function ls(_0xa106d2,_0x19fb7f){let _0x316a70='';return _0x316a70+=_0xa106d2['split']('*')['map']((_0x44c5eb,_0x59ad18)=>_0x59ad18%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x44c5eb)+'</span>':Yt(_0x44c5eb))['join'](''),_0x19fb7f&&(_0x316a70+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x19fb7f['value']+'\x22\x20title=\x22'+_0x19fb7f['title']+'\x22></span>'),_0x316a70;}function Yt(_0x195db6){const _0x46d0aa=document['createElement']('span');return _0x46d0aa['innerText']=_0x195db6,_0x46d0aa['innerHTML'];}function ts(_0x547150){return _0x547150['sort']((_0x187023,_0x277d0a)=>'attribute'===_0x187023['type']&&'attribute'!==_0x277d0a['type']?-0x1:'attribute'!==_0x187023['type']&&'attribute'===_0x277d0a['type']?0x1:'deletion'==_0x187023['type']&&'deletion'!=_0x277d0a['type']?-0x1:'deletion'!=_0x187023['type']&&'deletion'==_0x277d0a['type']?0x1:0x0);}function to(_0x258ae1,_0xd6e3a1){let _0x2b11e1,_0x2a4296=0x0;const _0x26f704=[],_0x1254e1=_0xd6e3a1['schema'];for(;_0x2a4296<_0x258ae1['length'];){const _0x1cbd2b=_0x258ae1[_0x2a4296],_0x213f96=_0x258ae1[_0x2a4296+0x1];_0x2b11e1||(_0x2b11e1=_0xd6e3a1['createPositionBefore'](_0x1cbd2b)),Zt(_0xd6e3a1,_0x1cbd2b,_0x213f96)||(_0x26f704['push'](_0xd6e3a1['createRange'](_0x2b11e1,_0x1254e1['isObject'](_0x1cbd2b)?_0xd6e3a1['createPositionAfter'](_0x1cbd2b):_0xd6e3a1['createPositionAt'](_0x1cbd2b,'end'))),_0x2b11e1=null),_0x2a4296++;}return _0x26f704;}function Zt(_0x1459d4,_0x583c7e,_0x541894){if(!_0x541894)return!0x1;const _0x2e176d=_0x1459d4['createPositionAfter'](_0x583c7e),_0xb53b2=_0x1459d4['createPositionBefore'](_0x541894);return _0x2e176d['isTouching'](_0xb53b2);}function rs(_0x41db03,_0x26d95b,_0x5aee2f){for(;_0x5aee2f['length'];){const _0x4d3ec4=_0x5aee2f['splice'](0x0,0x64);_0x41db03['change'](()=>{for(const _0x55fcbf of _0x4d3ec4)_0x55fcbf['isInContent']&&_0x26d95b['execute'](_0x55fcbf['id']);});}}class $ extends _0x1ae931{['_command'];['_suggestions'];constructor(_0xefa391,_0x5cad95,_0x3f3247){super(_0xefa391),this['_command']=_0x5cad95,this['_suggestions']=_0x3f3247,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f915e=Array['from'](this['_suggestions']['values']())['some'](_0x43d32b=>_0x43d32b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1f915e;}['execute'](){const _0x584a38=ts(Array['from'](this['_suggestions']['values']()));for(const _0x206785 of _0x584a38){const _0x6b9364=_0x206785['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6b9364))return;}rs(this['editor']['model'],this['_command'],_0x584a38);}}class B extends _0x1ae931{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xb7275e,_0x48626f,_0x41d855){super(_0xb7275e),this['_command']=_0x48626f,this['_suggestions']=_0x41d855,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x6e5fa8=this['editor']['model']['document']['selection'],_0x4e0f43=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x584bf1,_0x5518cf){const _0x545d65=Array['from'](_0x584bf1['getRanges']()),_0x5073e4=new Set();for(const _0x5c23f7 of _0x5518cf)if(_0x5c23f7['isInContent']){for(const _0x5c82ee of _0x545d65)for(const _0x224f1c of _0x5c23f7['getRanges']())(_0x5c82ee['isIntersecting'](_0x224f1c)||_0x584bf1['isCollapsed']&&!_0x5c23f7['isMultiRange']&&_0x5c23f7['next']&&_0x224f1c['end']['isTouching'](_0x5c82ee['start']))&&_0x5073e4['add'](_0x5c23f7);}return _0x5073e4;}(_0x6e5fa8,_0x4e0f43),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5df777=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5d83e3 of _0x5df777){const _0x401222=_0x5d83e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x401222))return;}rs(this['editor']['model'],this['_command'],_0x5df777);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x389d9b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35f46d,_0x370bfe){super(),this['id']=_0x370bfe['id'],this['type']=_0x370bfe['type'],this['subType']=_0x370bfe['subType']||null,this['author']=_0x370bfe['author'],this['creator']=_0x370bfe['creator']||_0x370bfe['author'],this['isExternal']=Boolean(_0x370bfe['attributes']&&_0x370bfe['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x370bfe['originalSuggestionId']||null,this['_model']=_0x35f46d,this['_onAccept']=_0x370bfe['onAccept'],this['_onDiscard']=_0x370bfe['onDiscard'],this['_onAttributesChange']=_0x370bfe['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x370bfe['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 _0x3d741b=this;for(;_0x3d741b['previous'];)_0x3d741b=_0x3d741b['previous'];return _0x3d741b;}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'](_0x1c04ef){this['_markerNames']['add'](_0x1c04ef);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c7907=>this['_model']['markers']['get'](_0x3c7907))['filter'](_0x3f86f7=>_0x3f86f7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3786a8=>{for(const _0x947723 of this['getMarkers']())_0x3786a8['removeMarker'](_0x947723);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c094a){this['_model']['change'](_0x18acac=>{_0x18acac['removeMarker'](_0x3c094a);}),this['_markerNames']['delete'](_0x3c094a);}['addRange'](_0x2d185e){const _0x382e70='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x382e70),this['_model']['change'](_0x80e9b1=>{_0x80e9b1['addMarker'](_0x382e70,{'range':_0x2d185e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1e866){for(const _0x1cd258 of this['getRanges']())if(_0x1cd258['isIntersecting'](_0x1e866))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f9f1b=>_0x4f9f1b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xa66347,_0x56e008)=>[..._0xa66347,..._0x56e008['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xb23a07=this['getRanges']();if(0x1!=_0xb23a07['length'])return null;const _0x2fa581=_0xb23a07[0x0],_0x458754=_0x2fa581['start']['nodeAfter'],_0x577e1f=_0x2fa581['end']['nodeBefore'];return _0x458754 instanceof _0x48434c?_0x458754!=_0x577e1f?null:_0x458754: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 _0x1f2af7=[];let _0x202a00=this['head'];for(;_0x202a00;)_0x1f2af7['push'](_0x202a00),_0x202a00=_0x202a00['next'];return _0x1f2af7;}['setAttribute'](_0x249f20,_0xf31dfb){const _0x597496=_0x460771(this['attributes']);_0x519ddd(_0x597496,_0x249f20,_0xf31dfb),_0x23cad6(_0x597496,this['attributes'])||(this['attributes']=_0x597496,this['_onAttributesChange'](_0x597496));}['removeAttribute'](_0x444311){const _0x42f08f=_0x460771(this['attributes']);_0x50ac6c(_0x42f08f,_0x444311),_0x23cad6(_0x42f08f,this['attributes'])||(this['attributes']=_0x42f08f,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 _0x427844()['substr'](0x1,0x5);}}function o(_0x13d150,_0x5c3668,_0x11f307){const _0x1ac777=_0x13d150['t'],t=_0x13d150['t'];switch(_0x5c3668){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',_0x11f307);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11f307);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11f307);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11f307);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11f307);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',_0x11f307);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11f307);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',_0x11f307);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11f307);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11f307);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11f307);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11f307);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11f307);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x11f307);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11f307);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11f307);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11f307);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11f307);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11f307);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11f307);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11f307);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11f307);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11f307);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11f307);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x11f307);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'},_0x11f307);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x11f307);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x11f307);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11f307);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11f307);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11f307);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11f307);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11f307);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'},_0x11f307);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11f307);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11f307);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11f307);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11f307);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'},_0x11f307);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11f307);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'},_0x11f307);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'},_0x11f307);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11f307);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'},_0x11f307);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11f307);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'},_0x11f307);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11f307);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11f307);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'},_0x11f307);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x11f307);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 _0x1ac777({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x11f307);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ac777({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x11f307);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x11f307);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'},_0x11f307);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'},_0x11f307);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'},_0x11f307);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5c3668;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1999b3,_0x2e6ffc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1999b3,this['_locale']=_0x2e6ffc;}['getDescriptions'](_0x1a3ee7){const _0x3011b8=[],_0x1f3ad1=new Set(),_0x47c0df=new Set();for(let _0x303337=0x0;_0x303337<_0x1a3ee7['length'];_0x303337++){const _0x5bcaca=_0x1a3ee7[_0x303337];if(!_0x5bcaca['isInContent'])continue;const _0x47e19f=this['_handleCustomCallbackDescription'](_0x5bcaca);if(_0x47e19f){if(null!=_0x5bcaca['subType']){if(_0x1f3ad1['has'](_0x5bcaca['subType']))continue;_0x1f3ad1['add'](_0x5bcaca['subType']);}_0x3011b8['push'](_0x47e19f);}else{if('attribute'==_0x5bcaca['type']){const _0x22622b=_0x5bcaca['data']['key'];if(_0x47c0df['has'](_0x22622b))continue;_0x47c0df['add'](_0x5bcaca['data']['key']),_0x22622b==m?this['_handleRenameSuggestionDescription'](_0x3011b8,_0x5bcaca):this['_handleAttributeSuggestionDescription'](_0x3011b8,_0x5bcaca);continue;}'insertion'!=_0x5bcaca['type']&&'deletion'!=_0x5bcaca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3011b8,_0x5bcaca,_0x1a3ee7[_0x303337+0x1]);}}return this['_resolveDescriptionItems'](_0x3011b8);}['registerDescriptionCallback'](_0x4edf25){this['_customCallbacks']['push'](_0x4edf25);}['registerElementLabel'](_0xee758a,_0x1d2b5e,_0x3618d3=_0x850491['normal']){'function'==typeof _0xee758a?_0x2e014a(this['_itemLabelsCallbacks'],{'matchingCallback':_0xee758a,'label':_0x1d2b5e,'priority':_0x3618d3}):this['_itemLabels']['set'](_0xee758a,_0x1d2b5e);}['registerAttributeLabel'](_0x2e7abe,_0x47ef82){this['_attributeLabels']['set'](_0x2e7abe,_0x47ef82);}['getItemLabel'](_0x412afe,_0x151e2e=0x1){let _0x563339;for(const _0x510a80 of this['_itemLabelsCallbacks'])if(_0x510a80['matchingCallback'](_0x412afe)){_0x563339=_0x510a80['label'];break;}return _0x563339||(_0x563339=this['_itemLabels']['get'](_0x412afe['name'])),_0x563339?_0x563339(_0x151e2e):0x1!==_0x151e2e?_0x151e2e+'\x20'+_0x412afe['name']+'s':''+_0x412afe['name'];}['_addDescriptionItems'](_0x183d20,_0x1d2250){const _0x556b61=_0x1d2250['getFirstRange']()['getWalker'](),_0x4c76bf='insertion'==_0x1d2250['type']?'add':'remove';for(const _0x14104e of _0x556b61){const _0x26c873=_0x14104e['item'],_0x358410=_0x183d20[_0x183d20['length']-0x1];if(_0x26c873['is']('$textProxy'))_0x358410&&_0x358410['type']['indexOf']('Container')>-0x1&&_0x183d20['pop'](),_0x358410&&'text'==_0x358410['type']?_0x358410[_0x4c76bf]+=_0x26c873['data']:_0x183d20['push']({'type':'text','add':'add'==_0x4c76bf?_0x26c873['data']:'','remove':'remove'==_0x4c76bf?_0x26c873['data']:''});else{if(this['_schema']['isObject'](_0x26c873)){const _0xde4380=_0x26c873;if(_0x358410&&_0x358410['type']['indexOf']('Container')>-0x1&&_0x183d20['pop'](),'elementEnd'==_0x14104e['type'])continue;_0x358410&&_0x358410['type']==_0x4c76bf+'Object'&&_0x358410['element']['name']==_0xde4380['name']?_0x358410['quantity']++:_0x183d20['push']({'type':_0x4c76bf+'Object','element':_0xde4380,'quantity':0x1}),_0x556b61['skip'](_0x5aecf3=>!('elementEnd'==_0x5aecf3['type']&&_0x5aecf3['item']==_0x26c873));}else{if(this['_schema']['checkChild'](_0x26c873,'$text')||_0x26c873['is']('element','softBreak')){const _0x310b7d=_0x26c873;if('add'==_0x4c76bf&&'elementStart'==_0x14104e['type']||'remove'==_0x4c76bf&&'elementEnd'==_0x14104e['type'])continue;if(_0x358410&&-0x1==_0x358410['type']['indexOf']('Container')){'text'==_0x358410['type']&&(_0x358410[_0x4c76bf]+='\x0a');continue;}let _0x4cb43d;if(_0x4cb43d='add'==_0x4c76bf?_0x310b7d['nextSibling']&&!this['_schema']['isObject'](_0x310b7d['nextSibling'])?_0x310b7d['nextSibling']:null:_0x310b7d['previousSibling']&&!this['_schema']['isObject'](_0x310b7d['previousSibling'])?_0x310b7d['previousSibling']:null,_0x310b7d['isEmpty']||_0x4cb43d&&_0x4cb43d['isEmpty']){const _0xdf822a=_0x4cb43d&&_0x4cb43d['isEmpty']?_0x4cb43d:_0x310b7d;_0x358410&&_0x358410['type']==_0x4c76bf+'EmptyContainer'&&_0x358410['element']['name']==_0xdf822a['name']?_0x358410['quantity']++:_0x183d20['push']({'type':_0x4c76bf+'EmptyContainer','element':_0xdf822a,'quantity':0x1});}else _0x183d20['push']({'type':_0x4c76bf+'Container','element':_0x310b7d});}}}}}['_resolveDescriptionItems'](_0x3c2aba){const _0x4f8678=this['_locale'],_0x55bfee=[],_0x237b57=[],_0x45615f=[];for(const _0x4c4f4e of _0x3c2aba)switch(_0x4c4f4e['type']){case'text':if(_0x4c4f4e['add']=_0x4c4f4e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c4f4e['remove']=_0x4c4f4e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c4f4e['add']&&''!=_0x4c4f4e['remove']){_0x55bfee['push']({'type':'replace','content':o(_0x4f8678,'REPLACE_TEXT',['\x22'+_0x4c4f4e['remove']+'\x22','\x22'+_0x4c4f4e['add']+'\x22'])});continue;}if(null!=_0x4c4f4e['add']['match'](/^ +$/)){_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0',o(_0x4f8678,'ELEMENT_SPACE',_0x4c4f4e['add']['length']))});continue;}if(null!=_0x4c4f4e['remove']['match'](/^ +$/)){_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0',o(_0x4f8678,'ELEMENT_SPACE',_0x4c4f4e['remove']['length']))});continue;}if(''!=_0x4c4f4e['add']){_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0','\x22'+_0x4c4f4e['add']+'\x22')});continue;}_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0','\x22'+_0x4c4f4e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'addContainer':_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Split:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'removeContainer':_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Merge:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'addFormat':_0x237b57['push'](_0x4c4f4e['key']);continue;case'removeFormat':_0x45615f['push'](_0x4c4f4e['key']);continue;default:_0x55bfee['push'](_0x4c4f4e);}if(_0x237b57['length']){const _0x54ec6f=_0x237b57['map'](_0x3dc695=>this['_attributeLabels']['has'](_0x3dc695)?this['_attributeLabels']['get'](_0x3dc695):_0x3dc695)['join'](',\x20');_0x55bfee['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x54ec6f)});}if(_0x45615f['length']){const _0x4aa5e8=_0x45615f['map'](_0x530f72=>this['_attributeLabels']['has'](_0x530f72)?this['_attributeLabels']['get'](_0x530f72):_0x530f72)['join'](',\x20');_0x55bfee['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4aa5e8)});}return _0x55bfee;}['_handleCustomCallbackDescription'](_0x345768){for(const _0x47cec9 of this['_customCallbacks']){const _0x37d750=_0x47cec9(_0x345768);if(_0x37d750&&'type'in _0x37d750)return _0x37d750;}}['_handleAttributeSuggestionDescription'](_0x298003,_0x5c0f4a){const _0x36d08e=_0x5c0f4a['data'],_0x20b9ef=void 0x0===_0x36d08e['newValue']?'removeFormat':'addFormat';_0x298003['push']({'type':_0x20b9ef,'key':_0x36d08e['key']});}['_handleRenameSuggestionDescription'](_0x3025e0,_0x4bde54){_0x3025e0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4bde54['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x34d143,_0x2d4c6b,_0xef237){if(this['_addDescriptionItems'](_0x34d143,_0x2d4c6b),_0xef237&&_0xef237['getFirstRange']()&&!_0x2d4c6b['getFirstRange']()['end']['isEqual'](_0xef237['getFirstRange']()['start'])){const _0x5e1a14=_0x34d143[_0x34d143['length']-0x1],_0x322991='insertion'==_0x2d4c6b['type']?'add':'remove';_0x5e1a14&&'text'==_0x5e1a14['type']&&(_0x5e1a14[_0x322991]+='\x0a');}}}class O extends _0xccd55c{['afterInit'](){const _0xe77c7b=this['editor'],_0x4066a7=_0xe77c7b['plugins']['get']('TrackChangesEditing');_0xe77c7b['commands']['get']('showAIAssistant')&&_0x4066a7['enableCommand']('showAIAssistant');}}class E extends _0xccd55c{['afterInit'](){const _0x33296a=this['editor'],_0x4c93f1=_0x33296a['locale'];if(!_0x33296a['plugins']['has']('AlignmentEditing'))return;const _0x1c6044=_0x33296a['plugins']['get']('TrackChangesEditing');_0x1c6044['enableDefaultAttributesIntegration']('alignment'),_0x1c6044['registerBlockAttribute']('alignment'),_0x1c6044['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c93f1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3c7be=this['editor'],_0x57745d=_0xd3c7be['locale'];_0xd3c7be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x450d72=>{if('formatBlock'!=_0x450d72['type'])return;const {data:_0x136703}=_0x450d72;if(_0x136703&&'alignment'==_0x136703['commandName']){const _0x4c03cd=_0x136703['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x57745d,'*Format:*\x20%0',function(_0x59a7ee){switch(_0x59a7ee){case'left':return o(_0x57745d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x57745d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x57745d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x57745d,'FORMAT_JUSTIFY_TEXT');}}(_0x4c03cd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xccd55c{['afterInit'](){const _0x3cc6c0=this['editor'],_0x23bad6=_0x3cc6c0['plugins']['get']('TrackChangesEditing'),_0x138fda=_0x3cc6c0['locale'];for(const _0x1a9c44 of ti){if(!_0x3cc6c0['plugins']['has'](_0x1a9c44))continue;const _0x3999f1=_0x1a9c44['slice'](0x0,-0x7)['toLowerCase'](),_0x46260a='FORMAT_'+_0x3999f1['toUpperCase']();_0x23bad6['enableDefaultAttributesIntegration'](_0x3999f1),_0x23bad6['registerInlineAttribute'](_0x3999f1),_0x23bad6['descriptionFactory']['registerAttributeLabel'](_0x3999f1,o(_0x138fda,_0x46260a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5964d2=this['editor'],_0x57e178=_0x5964d2['locale'],_0x200405=_0x5964d2['plugins']['get']('TrackChangesEditing');function _0x4bba08(_0xb644f8,_0x25e9ea){_0x200405['descriptionFactory']['registerDescriptionCallback'](_0x440051=>{if('formatInline'!=_0x440051['type'])return;const {data:_0x472513}=_0x440051;return _0x472513&&_0x472513['commandName']===_0xb644f8?_0x472513['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57e178,'*Format:*\x20%0',_0x25e9ea)}:{'type':'format','content':o(_0x57e178,'*Remove\x20format:*\x20%0',_0x25e9ea)}:void 0x0;});}_0x4bba08('bold',o(_0x57e178,'FORMAT_BOLD')),_0x4bba08('italic',o(_0x57e178,'FORMAT_ITALIC')),_0x4bba08('underline',o(_0x57e178,'FORMAT_UNDERLINE')),_0x4bba08('code',o(_0x57e178,'FORMAT_CODE')),_0x4bba08('strikethrough',o(_0x57e178,'FORMAT_STRIKETHROUGH')),_0x4bba08('subscript',o(_0x57e178,'FORMAT_SUBSCRIPT')),_0x4bba08('superscript',o(_0x57e178,'FORMAT_SUPERSCRIPT'));}}class U extends _0xccd55c{['afterInit'](){const _0x106b93=this['editor'],_0x160d36=_0x106b93['locale'];if(!_0x106b93['plugins']['has']('BlockQuoteEditing'))return;const _0x59c8e=_0x106b93['plugins']['get']('TrackChangesEditing'),_0xd087ee=this['editor']['commands']['get']('blockQuote');_0x59c8e['enableCommand']('blockQuote',(_0x1bfddb,_0x2b9e8e={})=>{const _0x1c911d=this['editor']['model']['document']['selection'],_0x1acf96=_0x2b9e8e&&void 0x0!==_0x2b9e8e['forceValue']?_0x2b9e8e['forceValue']:!_0xd087ee['value'];let _0x42c4d4=[];if(_0x1acf96){const _0x587a8f=Array['from'](_0x1c911d['getSelectedBlocks']())['filter'](_0x2a529a=>oo(_0x2a529a)||function(_0x5a1fac,_0x2263ff){const _0x31be9c=_0x2263ff['checkChild'](_0x5a1fac['parent'],'blockQuote'),_0x151381=_0x2263ff['checkChild'](['$root','blockQuote'],_0x5a1fac);return _0x31be9c&&_0x151381;}(_0x2a529a,this['editor']['model']['schema']));_0x42c4d4=to(_0x587a8f,_0x106b93['model']);}else{const _0x2a0f97=Array['from'](_0x1c911d['getSelectedBlocks']())['filter'](_0x13824c=>oo(_0x13824c));_0x42c4d4=to(_0x2a0f97,_0x106b93['model']);}_0x106b93['model']['change'](()=>{for(const _0x8f1781 of _0x42c4d4)_0x59c8e['markBlockFormat'](_0x8f1781,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1acf96}]});});}),_0x59c8e['descriptionFactory']['registerDescriptionCallback'](_0x5c8cfb=>{const {data:_0x5069f0}=_0x5c8cfb;if(_0x5069f0&&'blockQuote'==_0x5069f0['commandName']){const _0x2556a5=o(_0x160d36,'ELEMENT_BLOCK_QUOTE');return _0x5069f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x160d36,'*Set\x20format:*\x20%0',_0x2556a5)}:{'type':'format','content':o(_0x160d36,'*Remove\x20format:*\x20%0',_0x2556a5)};}});}}function oo(_0x524d6b){return'blockQuote'==_0x524d6b['parent']['name'];}class V extends _0xccd55c{['afterInit'](){const _0x934143=this['editor'],_0x331607=_0x934143['locale'],_0x4b2566=_0x934143['plugins']['get']('TrackChangesEditing');_0x934143['plugins']['has']('BookmarkEditing')&&(_0x4b2566['enableCommand']('insertBookmark'),_0x4b2566['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b2566['registerBlockAttribute']('bookmarkId'),_0x4b2566['descriptionFactory']['registerDescriptionCallback'](_0x34de75=>{if('insertion'!=_0x34de75['type']&&'deletion'!=_0x34de75['type']&&'attribute'!=_0x34de75['type'])return;const _0x58124a=_0x34de75['getContainedElement']();if(null==_0x58124a)return;if(!_0x58124a['is']('element','bookmark'))return;const _0x414f91=_0x58124a['getAttribute']('bookmarkId');if('insertion'==_0x34de75['type'])return{'type':'insertion','content':o(_0x331607,'*Insert:*\x20%0','\x22'+_0x414f91+'\x22\x20'+o(_0x331607,'ELEMENT_BOOKMARK'))};if('deletion'==_0x34de75['type'])return{'type':'deletion','content':o(_0x331607,'*Remove:*\x20%0','\x22'+_0x414f91+'\x22\x20'+o(_0x331607,'ELEMENT_BOOKMARK'))};const {data:_0x6dc2d}=_0x34de75;if(!_0x6dc2d||'bookmarkId'!=_0x6dc2d['key'])return;return{'type':'format','content':o(_0x331607,'*Set\x20bookmark:*\x20%0','\x22'+_0x6dc2d['newValue']+'\x22')};}));}}class F extends _0xccd55c{['afterInit'](){const _0x3285e4=this['editor'];_0x3285e4['plugins']['has']('CaseChange')&&(_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xccd55c{['afterInit'](){const _0x20661e=this['editor'];_0x20661e['commands']['get']('ckbox')&&_0x20661e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xccd55c{['afterInit'](){const _0x574182=this['editor'];if(!_0x574182['plugins']['has']('CodeBlock'))return;const _0xa7b000=_0x574182['plugins']['get']('TrackChangesEditing'),_0x334f8e=_0x574182['locale'],_0x40adba=_0x574182['config']['get']('codeBlock')['languages'],_0x30475f=_0x574182['commands']['get']('codeBlock');_0xa7b000['enableCommand']('indentCodeBlock'),_0xa7b000['enableCommand']('outdentCodeBlock'),_0xa7b000['enableCommand']('codeBlock',(_0x20fc38,_0x4826d6={})=>{const _0x2d5fa2=_0x574182['model'],_0xe81c3a=_0x574182['model']['document']['selection'],_0x32ea99=_0x4826d6&&void 0x0!==_0x4826d6['forceValue']?_0x4826d6['forceValue']:!_0x30475f['value'];let _0xaecb6b;_0x4826d6['language']||(_0x4826d6['language']=_0x40adba[0x0]['language']),_0xaecb6b=_0x32ea99?Array['from'](_0xe81c3a['getSelectedBlocks']())['filter'](_0x1458d4=>co(_0x1458d4)||function(_0x130b9c,_0x2f0aa8){if(_0x130b9c['is']('rootElement')||_0x2f0aa8['isLimit'](_0x130b9c))return!0x1;return _0x2f0aa8['checkChild'](_0x130b9c['parent'],'codeBlock');}(_0x1458d4,_0x2d5fa2['schema'])):Array['from'](_0xe81c3a['getSelectedBlocks']())['filter'](_0x27207a=>co(_0x27207a));const _0x36a9f4=to(_0xaecb6b,_0x2d5fa2);_0x2d5fa2['change'](()=>{for(const _0x535e65 of _0x36a9f4)_0xa7b000['markBlockFormat'](_0x535e65,{'commandName':'codeBlock','commandParams':[{..._0x4826d6,'forceValue':_0x32ea99}],'formatGroupId':'blockName'});});}),(_0xa7b000['descriptionFactory']['registerElementLabel']('codeBlock',_0x14e1c2=>o(_0x334f8e,'ELEMENT_CODE_BLOCK',_0x14e1c2)),_0xa7b000['descriptionFactory']['registerDescriptionCallback'](_0x45d3e1=>{if('formatBlock'!=_0x45d3e1['type'])return;const _0x52848a=_0x334f8e['t'],{data:_0x570a7e}=_0x45d3e1;if(!_0x570a7e||'codeBlock'!=_0x570a7e['commandName'])return;const _0x524101=_0x570a7e['commandParams'][0x0]['language'],_0x302de0=_0x52848a(_0x40adba['find'](_0x53a9bf=>_0x53a9bf['language']===_0x524101)['label'])['toLowerCase']();return _0x570a7e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x334f8e,'*Set\x20format:*\x20%0',o(_0x334f8e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x302de0+')')}:{'type':'format','content':o(_0x334f8e,'*Remove\x20format:*\x20%0',o(_0x334f8e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x19dfb1){return'codeBlock'==_0x19dfb1['name'];}class J extends _0xccd55c{['afterInit'](){const _0x3f82ee=this['editor'];if(!_0x3f82ee['plugins']['has']('CommentsEditing'))return;_0x3f82ee['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b1bf8,_0x49e7a4,_0x2e656c){const _0x33f307=[];for(const _0x3af8c4 of _0x49e7a4['getItems']())_0x3af8c4['hasAttribute'](_0x3b1bf8)&&_0x33f307['push'](_0x2e656c['createRangeOn'](_0x3af8c4));return _0x33f307;}function De(_0x4d8740,_0xff1297,{showActiveMarker:_0x55e57d=!0x0}={}){const _0x182dee=_0x4d8740['plugins']['get']('TrackChangesEditing');return(_0x179ba8,_0x51dc6b,_0x2ffe2f)=>{if(!_0x2ffe2f['consumable']['test'](_0x51dc6b['markerRange'],_0x179ba8['name']))return;const _0x56101c=_0x51dc6b['markerRange']['getWalker'](),_0x2f6784=_0x51dc6b['markerRange']['start'],_0x1e9ed6=_0x4d8740['model']['schema'];let _0x52584=null,_0x247212=null,_0x3a9ef7=!0x1,_0x19c5fa=!0x1;for(const _0x538c84 of _0x56101c){const _0x547b37=_0x538c84['item'];_0x3a9ef7=_0x3a9ef7||_0x1e9ed6['isContent'](_0x547b37);const _0x1c3646=_0x2ffe2f['mapper']['toViewElement'](_0x547b37);if(_0x1c3646&&_0x1c3646['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x538c84['type']&&(_0x1e9ed6['isBlock'](_0x547b37)&&!_0x1e9ed6['isLimit'](_0x547b37)&&(_0x547b37['nextSibling']||_0x2f6784['isAtEnd']?_0x52584&&_0x52584['parent']==_0x547b37||(_0x52584=_0x547b37,_0x581ff6(_0x538c84['previousPosition']),_0x19c5fa=!0x0):_0x247212=_0x247212||_0x538c84['previousPosition']));}function _0x581ff6(_0x46fa4a){const {id:_0x1c6287,authorId:_0x4aa2f2}=_0x182dee['_splitMarkerName'](_0x51dc6b['markerName']),_0x8e51b0=_0x2ffe2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xff1297,'data-suggestion':_0x1c6287,'data-author-id':_0x4aa2f2}),_0x1215b9=_0x2ffe2f['mapper']['toViewPosition'](_0x46fa4a);_0x55e57d&&_0x182dee['activeMarkers']['includes'](_0x51dc6b['markerName'])&&_0x2ffe2f['writer']['addClass']('ck-suggestion-marker--active',_0x8e51b0),_0x2ffe2f['writer']['insert'](_0x1215b9,_0x8e51b0),_0x2ffe2f['mapper']['bindElementToMarker'](_0x8e51b0,_0x51dc6b['markerName']);}_0x3a9ef7||_0x19c5fa||!_0x247212||_0x581ff6(_0x247212);};}class K extends _0xccd55c{static get['requires'](){return[_0x202975];}['init'](){const _0x27b082=this['editor'],_0x217f04=_0x27b082['plugins']['get']('TrackChangesEditing');_0x217f04['enableCommand']('delete');const _0x2e52ac=_0x27b082['commands']['get']('deleteForward');_0x217f04['enableCommand']('deleteForward',(_0x408eae,_0x277824={})=>{const _0x1495e0=_0x27b082['model']['createSelection'](_0x27b082['model']['document']['selection']);_0x1495e0['isCollapsed']&&_0x27b082['model']['modifySelection'](_0x1495e0,{'direction':'forward','unit':_0x277824['unit']});const _0x168c35=_0x1495e0['getFirstRange'](),_0x3f3b24=_0x20b456['fromRange'](_0x168c35);let _0x5aeedc;_0x408eae(_0x277824),_0x5aeedc='$graveyard'==_0x3f3b24['root']['rootName']?_0x27b082['model']['createRange'](_0x168c35['start']):_0x27b082['model']['createRange'](_0x3f3b24['start'],_0x3f3b24['end']),_0x3f3b24['detach'](),_0x27b082['model']['enqueueChange'](_0x2e52ac['buffer']['batch'],_0x13f802=>{_0x2e52ac['buffer']['lock'](),_0x13f802['setSelection'](_0x13f802['createRange'](_0x5aeedc['end'])),_0x2e52ac['buffer']['unlock']();});}),_0x27b082['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x27b082,'merge'),{'priority':'high'}),_0x27b082['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51832d,_0x5f0504,_0x33b597)=>{_0x33b597['options']['showSuggestionHighlights']&&De(_0x27b082,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51832d,_0x5f0504,_0x33b597);},{'priority':'high'}),_0x27b082['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ec6d9,_0x1d6da5,_0x1d6e30)=>{const _0x4208df=_0x1d6e30['mapper']['markerNameToElements'](_0x1d6da5['markerName']);if(_0x4208df){for(const _0x15387e of _0x4208df)_0x15387e['is']('uiElement')&&(_0x1d6e30['mapper']['unbindElementFromMarkerName'](_0x15387e,_0x1d6da5['markerName']),_0x1d6e30['writer']['remove'](_0x15387e));}},{'priority':'high'});}}class H extends _0xccd55c{['afterInit'](){const _0x408be1=this['editor'];if(!_0x408be1['plugins']['has']('ListEditing'))return;const _0x4a8700=_0x408be1['locale'],_0x57284c=_0x408be1['plugins']['get']('TrackChangesEditing'),_0xb1e3be=_0x408be1['plugins']['has']('TodoListEditing'),_0x3b72de=!!_0x408be1['config']['get']('list.multiBlock');function _0x781bb8(_0x24e5bc){return{'type':'format','content':''+o(_0x4a8700,'*Set\x20format:*\x20%0',_0x24e5bc)};}function _0x19c0bb(_0x51e3e8){return{'type':'format','content':''+o(_0x4a8700,'*Remove\x20format:*\x20%0',_0x51e3e8)};}_0x57284c['enableDefaultAttributesIntegration']('numberedList'),_0x57284c['enableDefaultAttributesIntegration']('bulletedList'),_0x57284c['enableDefaultAttributesIntegration']('customNumberedList'),_0x57284c['enableDefaultAttributesIntegration']('customBulletedList'),_0x57284c['enableDefaultAttributesIntegration']('indentList'),_0x57284c['enableDefaultAttributesIntegration']('outdentList'),_0x57284c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x57284c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x57284c['registerBlockAttribute']('listItemId'),_0x57284c['registerBlockAttribute']('listType'),_0x57284c['registerBlockAttribute']('listIndent'),_0x3b72de&&(_0x57284c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x57284c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb1e3be&&(_0x57284c['enableDefaultAttributesIntegration']('todoList'),_0x57284c['enableDefaultAttributesIntegration']('checkTodoList'),_0x57284c['registerBlockAttribute']('todoListChecked'),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x533983=>{const {data:_0x4253ac}=_0x533983;if(_0x4253ac&&'todoListChecked'==_0x4253ac['key'])return{'type':'format','content':_0x4253ac['newValue']?o(_0x4a8700,'*Check\x20item*'):o(_0x4a8700,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x225159=>{if(_0x225159['batch']['isUndo'])return!0x1;let _0x469b58=!0x1;const _0x2dcf4c=_0x57284c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13ed22=>'todoListChecked'===_0x57284c['_getAttributeKey'](_0x13ed22));for(const _0x1c0cec of _0x2dcf4c){'todo'!=_0x1c0cec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x57284c['_findSuggestions'](_0x1c0cec['getFirstRange'](),'attribute')['find'](_0x5c6634=>'listType'===_0x57284c['_getAttributeKey'](_0x5c6634['suggestion']))||(_0x225159['removeMarker'](_0x1c0cec['getFirstMarker']()),_0x469b58=!0x0));}return _0x469b58;})),_0x57284c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a8700,'FORMAT_INDENT'));const _0x47bc34={'type':'format','content':''};_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0xd50f81=>{const {data:_0x12e945}=_0xd50f81;if(!_0x12e945||'listType'!=_0x12e945['key'])return;let _0x490c9f=_0xd50f81['head'];for(;_0x490c9f;){if(_0x490c9f['data']&&(('listStyle'==_0x490c9f['data']['key']||'listMarkerStyle'==_0x490c9f['data']['key'])&&(_0x490c9f['data']['newValue']&&'default'!=_0x490c9f['data']['newValue']||'default'!=_0x490c9f['data']['oldValue']&&!_0x12e945['newValue'])||!_0x3b72de&&_0x490c9f['data']['key']==m))return _0x47bc34;_0x490c9f=_0x490c9f['next'];}if(null==_0x12e945['newValue'])switch(_0x12e945['oldValue']){case'bulleted':return _0x19c0bb(o(_0x4a8700,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19c0bb(o(_0x4a8700,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19c0bb(o(_0x4a8700,'ELEMENT_TODO_LIST'));}switch(_0x12e945['newValue']){case'bulleted':return _0x781bb8(o(_0x4a8700,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x781bb8(o(_0x4a8700,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x781bb8(o(_0x4a8700,'ELEMENT_TODO_LIST'));}}),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x40891c=>{const {data:_0x4feb1c}=_0x40891c;if(_0x4feb1c&&'listIndent'==_0x4feb1c['key'])return null==_0x4feb1c['newValue']||null==_0x4feb1c['oldValue']&&0x0==_0x4feb1c['newValue']?_0x47bc34:void 0x0;}),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x4fe9a2=>{if('attribute'!=_0x4fe9a2['type'])return;const {data:_0x5b4797}=_0x4fe9a2;if(!_0x5b4797||'listItemId'!=_0x5b4797['key'])return;const _0x54668c=Te(_0x4fe9a2);return'newValue'==_0x54668c?{'type':'format','content':o(_0x4a8700,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54668c?{'type':'format','content':o(_0x4a8700,'*Split:*\x20list\x20item')}:_0x47bc34;}),_0x408be1['model']['document']['registerPostFixer'](_0x3581e9=>this['listItemIdFixer'](_0x3581e9)),_0x408be1['model']['document']['registerPostFixer'](_0x6f13da=>this['noTrackChangesFixer'](_0x6f13da)),_0x408be1['model']['document']['on']('change:data',(_0x42b59c,_0x348b3f)=>{if(_0x348b3f['isUndo']||!_0x348b3f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x58e6e7){if(_0x58e6e7['batch']['isUndo']||!_0x58e6e7['batch']['isLocal'])return!0x1;let _0xa8bc3b=!0x1;const _0x2c2a80=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2992cb=>_0x2992cb['data']&&'listItemId'==_0x2992cb['data']['key'])['filter'](_0x1a1fc6=>_0x1a1fc6['data']['newValue']&&_0x1a1fc6['data']['oldValue']);for(const _0x645e95 of _0x2c2a80)Te(_0x645e95)||(_0x58e6e7['removeMarker'](_0x645e95['getFirstMarker']()),_0xa8bc3b=!0x0);return _0xa8bc3b;}['noTrackChangesFixer'](_0x13afb7){if(_0x13afb7['batch']['isUndo']||!_0x13afb7['batch']['isLocal'])return!0x1;const _0x30a072=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30a072['trackChangesCommand']['value'])return!0x1;let _0x13e8af=!0x1;const _0x44caa9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x473859=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2c3e20=>'attribute'==_0x2c3e20['type'])['filter'](_0x5c833c=>_0x44caa9['includes'](_0x5c833c['attributeKey']));if(0x0==_0x473859['length'])return _0x13e8af;for(const _0x5411a6 of _0x473859){const _0x5c2cee=_0x30a072['_findSuggestions'](_0x5411a6['range'],'attribute')['filter'](_0x289af6=>!_0x289af6['meta']['isNextTo'])['map'](_0x3ea849=>_0x3ea849['suggestion'])['filter'](_0x263095=>{const _0x4510e0=_0x30a072['_getAttributeKey'](_0x263095);return _0x44caa9['includes'](_0x4510e0);});if(_0x5c2cee['length']){for(const _0x593930 of _0x5c2cee)_0x13afb7['removeMarker'](_0x593930['getFirstMarker']());_0x13e8af=!0x0;}}return _0x13e8af;}['assureChains'](){const _0x4bb39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27f8a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xfb9ac3;const _0x52a03d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4f8dbf=>{if(_0x4f8dbf['data']['oldRange']||!_0x4f8dbf['data']['newRange'])return null;if(!_0x4f8dbf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ae766}=_0x4bb39['_splitMarkerName'](_0x4f8dbf['name']);if(!_0x4bb39['hasSuggestion'](_0x5ae766))return null;const _0x141c00=_0x4bb39['getSuggestion'](_0x5ae766);return _0x27f8a1['includes'](_0x141c00['data']['key']);})['map'](_0x97f286=>{const {id:_0x36d708}=_0x4bb39['_splitMarkerName'](_0x97f286['name']),_0x159f4a=_0x4bb39['getSuggestion'](_0x36d708);return _0xfb9ac3=_0x159f4a['attributes']['groupId'],_0x159f4a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x52a03d['size'])return;const _0x58b922=_0x4bb39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a06cd=>'attribute'==_0x3a06cd['type']&&_0x3a06cd['data']&&_0x27f8a1['includes'](_0x3a06cd['data']['key'])&&_0x3a06cd['attributes']['groupId']!=_0xfb9ac3)['map'](_0x576d81=>({'listItem':_0x576d81['getFirstRange']()['start']['nodeAfter'],'groupId':_0x576d81['attributes']['groupId']})),_0x2bab86=new Set();for(const {groupId:_0x45504b,listItem:_0x2e7f84}of _0x58b922)_0x52a03d['has'](_0x2e7f84)&&_0x2bab86['add'](_0x45504b);for(const _0x36e05c of _0x4bb39['getSuggestions']())_0x2bab86['has'](_0x36e05c['attributes']['groupId'])&&_0x36e05c['setAttribute']('groupId',_0xfb9ac3);}['_supportLegacySuggestions'](){const _0x525614=this['editor'],_0x5d797d=_0x525614['locale'],_0x4b87bb=_0x525614['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4b87bb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x32557d,_0x4b8196){const _0xd7c3f6=[];for(let _0x543e55 of _0x32557d)_0x543e55['start']['nodeAfter']===_0x543e55['end']['parent']&&(_0x543e55=_0x525614['model']['createRange'](_0x525614['model']['createPositionAt'](_0x543e55['start']['nodeAfter'],0x0))),_0xd7c3f6['push'](_0x543e55);_0x525614['model']['change'](_0x54107a=>{const _0x441bce=_0x525614['model']['document']['selection'],_0xf58306=Array['from'](_0x441bce['getRanges']())['map'](_0x10a6de=>_0x20b456['fromRange'](_0x10a6de));_0x54107a['setSelection'](_0xd7c3f6),_0x525614['commands']['get'](_0x4b8196['commandName'])['refresh'](),_0x4b8196['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x525614['execute'](_0x4b8196['commandName'],..._0x4b8196['commandParams']),_0x54107a['setSelection'](_0xf58306);for(const _0x2cb6c8 of _0xf58306)_0x2cb6c8['detach']();});}),_0x4b87bb['descriptionFactory']['registerElementLabel'](function(_0x5cee76){const _0x3c877c=!_0x525614['model']['schema']['isObject'](_0x5cee76),_0x572039=_0x5cee76['previousSibling'],_0x22e340=_0x5cee76['nextSibling'],_0x4370b2=_0x5cee76['getAttribute']('listItemId'),_0x51366b=!_0x572039||_0x572039['getAttribute']('listItemId')!==_0x4370b2,_0x5e744f=!_0x22e340||_0x22e340['getAttribute']('listItemId')!==_0x4370b2;return _0x3c877c&&Boolean(_0x4370b2)&&_0x51366b&&_0x5e744f;},_0x1da664=>o(_0x5d797d,'ELEMENT_LIST_ITEM',_0x1da664));}['_registerLegacyDescription'](){const _0x2861d5=this['editor'],_0x293471=_0x2861d5['locale'];function _0xa9c197(_0x4ee490){const _0x5def60=_0x2861d5['commands']['get']('bulletedList')['value'],_0x168154=_0x2861d5['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ee490?_0x5def60:_0x168154;}_0x2861d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1d7e4b){if('formatBlock'!=_0x1d7e4b['type'])return;const {data:_0x27a45a}=_0x1d7e4b;if(!_0x27a45a)return;let _0x1c2543,_0x318660,_0x92e914,_0x5397ea;switch(_0x27a45a['commandName']){case'bulletedList':_0x92e914=_0x27a45a['commandParams'][0x0]['forceValue'],_0x5397ea=_0xa9c197(_0x27a45a['commandName']),_0x1c2543=_0x92e914?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5397ea&&_0x2861d5['config']['get']('list.multiBlock')||(_0x1c2543='*Change\x20to:*\x20%0'),_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x92e914=_0x27a45a['commandParams'][0x0]['forceValue'],_0x5397ea=_0xa9c197(_0x27a45a['commandName']),_0x1c2543=_0x92e914?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5397ea&&_0x2861d5['config']['get']('list.multiBlock')||(_0x1c2543='*Change\x20to:*\x20%0'),_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c2543='*Indent:*\x20%0',_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c2543=function(_0x527de1){const _0x523878=_0x527de1['getFirstRange']();let _0x421611=_0x523878['start']['nodeAfter'];for(;_0x421611&&_0x523878['containsItem'](_0x421611);){if(_0x421611['getAttribute']('listIndent')>0x0)return!0x1;_0x421611=_0x421611['nextSibling'];}return!0x0;}(_0x1d7e4b)?o(_0x293471,'*Format:*\x20remove\x20from\x20%0',o(_0x293471,function(_0x3ef2b3){return'ELEMENT_'+_0x3ef2b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1d7e4b))):o(_0x293471,'*Outdent:*\x20%0',o(_0x293471,'ELEMENT_LIST_ITEM')),_0x318660={'type':'format','content':_0x1c2543};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x27a45a['multipleBlocks']&&(_0x1c2543='*Merge:*\x20%0',_0x318660={'type':'deletion','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_LIST_ITEM'))});}return _0x318660;});}}function Te(_0x267813){let _0x5dafcf=_0x267813['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5dafcf;){const _0x3affaa=_0x5dafcf['getAttribute']('listItemId');if(!_0x3affaa)return!0x1;if(_0x3affaa==_0x267813['data']['newValue'])return'newValue';if(_0x3affaa==_0x267813['data']['oldValue'])return'oldValue';_0x5dafcf=_0x5dafcf['previousSibling'];}return!0x1;}class q extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a00b1=this['editor']['config']['get']('list.properties'),_0x38326b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a00b1['styles']&&(_0x38326b['enableDefaultAttributesIntegration']('listStyle'),_0x38326b['registerBlockAttribute']('listStyle')),_0x4a00b1['reversed']&&(_0x38326b['enableDefaultAttributesIntegration']('listReversed'),_0x38326b['registerBlockAttribute']('listReversed')),_0x4a00b1['startIndex']&&(_0x38326b['enableDefaultAttributesIntegration']('listStart'),_0x38326b['registerBlockAttribute']('listStart'));const _0x4c0a26={'type':'format','content':''};_0x38326b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x262221=this['editor']['locale'];_0x38326b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x262221,'FORMAT_LIST_REVERSED')),_0x38326b['descriptionFactory']['registerDescriptionCallback'](_0x54ab7e=>{const {data:_0x2fffec}=_0x54ab7e;if(_0x2fffec&&'listReversed'==_0x2fffec['key'])return null==_0x2fffec['newValue']||0x0==_0x2fffec['newValue']&&null==_0x2fffec['oldValue']?_0x4c0a26:void 0x0;}),_0x38326b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x262221,'FORMAT_LIST_START')),_0x38326b['descriptionFactory']['registerDescriptionCallback'](_0x24db16=>{const {data:_0x347286}=_0x24db16;if(_0x347286&&'listStart'==_0x347286['key'])return null==_0x347286['newValue']||0x1==_0x347286['newValue']&&null==_0x347286['oldValue']?_0x4c0a26:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4bb68b=>{if(_0x4bb68b['batch']['isUndo'])return!0x1;let _0x3281ec=!0x1;const _0x338dd1=_0x38326b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4171e9=>{const _0x3eadc3=_0x38326b['_getAttributeKey'](_0x4171e9);return'listStart'==_0x3eadc3||'listReversed'==_0x3eadc3;});for(const _0x11caad of _0x338dd1){const _0x56c5c6=_0x11caad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56c5c6||'customNumbered'==_0x56c5c6)continue;_0x38326b['_findSuggestions'](_0x11caad['getFirstRange'](),'attribute')['find'](_0x1a4086=>'listType'==_0x38326b['_getAttributeKey'](_0x1a4086['suggestion']))||(_0x4bb68b['removeMarker'](_0x11caad['getFirstMarker']()),_0x3281ec=!0x0);}return _0x3281ec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x54bfcb){const _0xfdae30=this['editor']['locale'],{data:_0xcbca20}=_0x54bfcb,_0x2836ad={'type':'format','content':''};if(!_0xcbca20||'listStyle'!=_0xcbca20['key'])return;if(!_0xcbca20['oldValue'])return'default'==_0xcbca20['newValue']?_0x2836ad:{'type':'format','content':''+o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['newValue'])))};if(!_0xcbca20['newValue']){if('default'==_0xcbca20['oldValue'])return _0x2836ad;let _0x5f18c6=_0x54bfcb['head'];for(;_0x5f18c6;){if(_0x5f18c6['data']&&'listType'==_0x5f18c6['data']['key']&&_0x5f18c6['data']['newValue'])return _0x2836ad;_0x5f18c6=_0x5f18c6['next'];}return{'type':'format','content':''+o(_0xfdae30,'*Remove\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['oldValue'])))};}if('default'!=_0xcbca20['newValue'])return{'type':'format','content':''+o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['newValue'])))};let _0x5aae80=_0x54bfcb['head'];for(;_0x5aae80;){if(_0x5aae80['data']&&'listType'==_0x5aae80['data']['key']&&_0x5aae80['data']['newValue']&&_0x5aae80['data']['oldValue'])return _0x2836ad;_0x5aae80=_0x5aae80['next'];}return{'type':'format','content':o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,'ELEMENT_'+_0x54bfcb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a9697=this['editor'],_0x319b35=_0x4a9697['locale'];_0x4a9697['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32e90b=>{if('formatBlock'!=_0x32e90b['type'])return;const {data:_0x1f8057}=_0x32e90b;if(!_0x1f8057)return;let _0x1cbc8b,_0x3eab06;switch(_0x1f8057['commandName']){case'listStyle':_0x1cbc8b='*Change\x20to:*\x20%0',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b,o(_0x319b35,this['_getTranslationKeyForListStyle'](_0x1f8057['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cbc8b=_0x1f8057['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b)};break;case'listStart':_0x1cbc8b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b,_0x1f8057['commandParams'][0x0]['startIndex'])};}return _0x3eab06;});}['_getTranslationKeyForListStyle'](_0x21f677){return'ELEMENT_'+function(_0x72613d){if(Se['includes'](_0x72613d))return'bulleted';if(_e['includes'](_0x72613d))return'numbered';return null;}(_0x21f677)['toUpperCase']()+'_LIST_'+_0x21f677['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xccd55c{['afterInit'](){const _0x5bee76=this['editor'];_0x5bee76['commands']['get']('emoji')&&_0x5bee76['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xccd55c{static get['requires'](){return[_0x3d2f33];}['init'](){const _0x27b268=this['editor'],_0x3d238e=_0x27b268['plugins']['get']('TrackChangesEditing'),_0xd15ade=_0x27b268['commands']['get']('enter');_0x3d238e['enableCommand']('enter',()=>{_0x27b268['model']['change'](_0x4ae807=>{const _0xc8ab57=_0x27b268['model']['document']['selection'],_0x5f26a4=_0xc8ab57['getFirstPosition'](),_0x4d7928=_0x20b456['fromRange'](_0xc8ab57['getFirstRange']());if(_0xd15ade['enterBlock'](_0x4ae807)){const _0x35ce88=_0x27b268['model']['createPositionAt'](_0x5f26a4['parent']['nextSibling'],0x0),_0x2fecaf=_0x4ae807['createRange'](_0x5f26a4,_0x35ce88);_0x3d238e['markInsertion'](_0x2fecaf);}else _0x4ae807['setSelection'](_0x4ae807['createRange'](_0x4d7928['end']));_0x4d7928['detach'](),_0xd15ade['fire']('afterExecute',{'writer':_0x4ae807});});}),_0x27b268['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x27b268,'split'),{'priority':'high'}),_0x27b268['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2df25a,_0x51d8f2,_0x3e6136)=>{const _0x45ec9a=_0x3e6136['mapper']['markerNameToElements'](_0x51d8f2['markerName']);if(_0x45ec9a){for(const _0x190c3d of _0x45ec9a)_0x190c3d['hasClass']('ck-suggestion-marker-split')&&(_0x3e6136['mapper']['unbindElementFromMarkerName'](_0x190c3d,_0x51d8f2['markerName']),_0x3e6136['writer']['remove'](_0x190c3d));}},{'priority':'high'}),_0x27b268['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40f999,_0x24a004,_0x43c0c1)=>{_0x43c0c1['options']['showSuggestionHighlights']&&De(_0x27b268,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40f999,_0x24a004,_0x43c0c1);},{'priority':'high'});}}class Q extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d7391=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d7391['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d7391['enableCommand']('findNext'),_0x3d7391['enableCommand']('findPrevious'),_0x3d7391['enableCommand']('replace'),_0x3d7391['enableCommand']('replaceAll');}['handleFindCommand'](_0x34e6d2,_0x756ce1,_0x48a891={}){const _0x3aa309=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34e6d2(_0x374be3=>{let _0x42c507=('string'==typeof _0x756ce1?_0x3aa309['findByTextCallback'](_0x756ce1,_0x48a891):_0x756ce1)(_0x374be3);Array['isArray'](_0x42c507)&&(_0x42c507={'results':_0x42c507,'searchText':'string'==typeof _0x756ce1?_0x756ce1:''});const _0x109d2f=_0x42c507['results']['filter'](_0x4ff628=>!0x1===this['_isInDeletionRange'](_0x4ff628,_0x374be3['item']));return{..._0x42c507,'results':_0x109d2f};},_0x48a891);}['_isInDeletionRange'](_0x50dfae,_0x5baacc){const _0x1553ab=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5baacc,_0x50dfae['start']),this['editor']['model']['createPositionAt'](_0x5baacc,_0x50dfae['end']));for(const _0x445382 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1553ab['getIntersection'](_0x445382['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xccd55c{['afterInit'](){const _0x575731=this['editor']['locale'],_0x2c76fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4782f8,commandName:_0x26c394}of eo)this['editor']['plugins']['has'](_0x4782f8)&&(_0x2c76fb['enableDefaultAttributesIntegration'](_0x26c394),_0x2c76fb['registerInlineAttribute'](_0x26c394));_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x575731,'FORMAT_FONT_SIZE')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x575731,'FORMAT_FONT_FAMILY')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x575731,'FORMAT_FONT_COLOR')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x575731,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb8f761=this['editor'],_0x2bfe49=_0xb8f761['locale'];_0xb8f761['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1abfca=>{const _0x270f0f=_0x2bfe49['t'];if('formatInline'!=_0x1abfca['type'])return;const {data:_0x44d0d1}=_0x1abfca;if(null!=_0x44d0d1){if('fontSize'==_0x44d0d1['commandName']){const _0x1b69d6=_0x44d0d1['commandParams'][0x0]['value'];if(_0x1b69d6){const _0x4b1ead=_0x270f0f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x332d7f=>_0x332d7f['model']==_0x1b69d6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20size:*\x20%0',_0x4b1ead)};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x44d0d1['commandName']){const _0x54b651=_0x44d0d1['commandParams'][0x0]['value'];return _0x54b651?{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20family:*\x20%0',_0x54b651)}:{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20family*')};}if('fontColor'==_0x44d0d1['commandName']){const _0x537afb=_0x44d0d1['commandParams'][0x0]['value'];if(_0x537afb){const _0x56022f=_0x514438(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5d146e=>_0x5d146e['model']==_0x537afb);let _0x164519=_0x537afb,_0x3ca556='';return _0x56022f&&(_0x164519=_0x56022f['label'],_0x3ca556=_0x270f0f(_0x164519)['toLowerCase']()),{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20color:*\x20%0',_0x3ca556)['trim'](),'color':{'value':_0x537afb,'title':_0x3ca556||_0x164519}};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x44d0d1['commandName']){const _0x5e0471=_0x44d0d1['commandParams'][0x0]['value'];if(_0x5e0471){const _0x3cd9f0=_0x514438(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48c2e5=>_0x48c2e5['model']==_0x5e0471);let _0x5e2747=_0x5e0471,_0x2ee3a8='';return _0x3cd9f0&&(_0x5e2747=_0x3cd9f0['label'],_0x2ee3a8=_0x270f0f(_0x5e2747)['toLowerCase']()),{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20background\x20color:*\x20%0',_0x2ee3a8)['trim'](),'color':{'value':_0x5e0471,'title':_0x2ee3a8||_0x5e2747}};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xccd55c{['afterInit'](){const _0x7b35dd=this['editor'],_0x237107=_0x7b35dd['plugins']['get']('TrackChangesEditing'),_0x29d842=_0x7b35dd['commands']['get']('copyFormat'),_0x2e9bde=_0x7b35dd['commands']['get']('pasteFormat');_0x29d842&&_0x2e9bde&&(_0x237107['enableDefaultAttributesIntegration']('pasteFormat'),_0x237107['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e8f85=this['editor'],_0x1f7141=_0x2e8f85['locale'];_0x2e8f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2f70=>{if('formatBlock'!=_0x3b2f70['type']&&'formatInline'!=_0x3b2f70['type'])return;const {data:_0x227257}=_0x3b2f70;if(_0x227257&&'pasteFormat'===_0x227257['commandName']){const _0x4c240f=[],_0x183bca=_0x227257['commandParams'][0x0];for(const [_0x4b7c44,_0xc3cb24]of Object['entries'](_0x183bca))_0x4c240f['push'](ro(_0x2e8f85,_0x4b7c44,_0xc3cb24));return _0x4c240f['length']?{'type':'format','content':o(_0x1f7141,'*Set\x20format\x20to:*\x20%0',_0x4c240f['join'](',\x20'))}:{'type':'format','content':o(_0x1f7141,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x344f20,_0x3c49a7,_0x423806){const _0x6814df=_0x344f20['locale']['t'],_0x72c152=_0x3c49a7['split'](/(?=[A-Z])/)['join']('\x20'),_0xbb81c5=_0x6814df(_0x72c152['charAt'](0x0)['toUpperCase']()+_0x72c152['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x423806)return _0xbb81c5;if('fontColor'===_0x3c49a7||'fontBackgroundColor'===_0x3c49a7){const _0x1a1100=_0x514438(_0x344f20['config']['get']('fontColor.colors'))['find'](_0x5a7550=>_0x5a7550['model']==_0x423806);return _0xbb81c5+'\x20('+(_0x1a1100?_0x6814df(_0x1a1100['label'])['toLowerCase']():_0x423806)+')';}if('fontSize'===_0x3c49a7&&isNaN(parseFloat(_0x423806))){const _0x23a8d3=_0x344f20['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x344f20['config']['get']('fontSize.options'))['find'](_0xa8ee11=>_0xa8ee11['model']==_0x423806);return _0xbb81c5+'\x20('+(_0x23a8d3?_0x6814df(_0x23a8d3['title'])['toLowerCase']():_0x423806)+')';}return _0xbb81c5+'\x20('+_0x423806+')';}class Z extends _0xccd55c{['_headingOptions'];['afterInit'](){const _0x1e6cac=this['editor'];if(!_0x1e6cac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1e6cac['config']['get']('heading.options');const _0x1d5e75=_0x1e6cac['locale'],_0x518955=_0x1e6cac['plugins']['get']('TrackChangesEditing');_0x518955['enableDefaultAttributesIntegration']('heading');for(const _0x403bc5 of this['_headingOptions'])'paragraph'!=_0x403bc5['model']&&_0x518955['descriptionFactory']['registerElementLabel'](_0x403bc5['model'],_0x17ed1a=>{const _0x3a3a1e=this['_getHeadingLevel'](_0x403bc5['model']);return null!==_0x3a3a1e?_0x2d014d(_0x17ed1a,_0x3a3a1e):_0x55a1d8(_0x17ed1a,_0x403bc5['title']);});function _0x2d014d(_0x3fd294,_0x4de926){return o(_0x1d5e75,'ELEMENT_HEADING',[_0x3fd294,_0x4de926]);}function _0x55a1d8(_0x255b74,_0x513a67){return o(_0x1d5e75,'ELEMENT_HEADING_CUSTOM',[_0x255b74,_0x513a67]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d05d=this['editor'],_0x5a9eee=_0x11d05d['locale'];function _0x1750cf(_0x21e044,_0x295f86){return o(_0x5a9eee,'ELEMENT_HEADING_CUSTOM',[_0x21e044,_0x295f86]);}_0x11d05d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x247369=>{if('formatBlock'!=_0x247369['type'])return;const {data:_0x35d8d7}=_0x247369;if(_0x35d8d7&&'heading'==_0x35d8d7['commandName']){const _0x5532dc=_0x35d8d7['commandParams'][0x0]['value'],_0x452b10=this['_getHeadingLevel'](_0x5532dc);if(null!==_0x452b10)return{'type':'format','content':o(_0x5a9eee,'*Change\x20to:*\x20%0',(_0x2ecb34=0x1,_0x146c1a=_0x452b10,o(_0x5a9eee,'ELEMENT_HEADING',[_0x2ecb34,_0x146c1a])))};const _0x4f14a1=this['_headingOptions']['find'](_0x441238=>_0x441238['model']===_0x5532dc)['title'];return{'type':'format','content':o(_0x5a9eee,'*Change\x20to:*\x20%0',_0x1750cf(0x1,_0x4f14a1))};}var _0x2ecb34,_0x146c1a;});}['_getHeadingLevel'](_0x5c9345){const _0x5e85f6=_0x5c9345['match'](/^heading(\d+)/);if(_0x5e85f6)return _0x5e85f6[0x1];const _0x3bff3b=this['_headingOptions']?.['find'](_0x1e6507=>_0x1e6507['model']==_0x5c9345);if(_0x3bff3b&&_0x3bff3b['view']){const _0x30477c=_0x3bff3b['view'],_0x5aa033=(_0x30477c['name']??_0x30477c)['match'](/^h(\d+)/);if(_0x5aa033)return _0x5aa033[0x1];}return null;}}class tt extends _0xccd55c{['afterInit'](){const _0x419e8f=this['editor'];if(!_0x419e8f['plugins']['has']('HighlightEditing'))return;const _0x4e04cf=_0x419e8f['plugins']['get']('TrackChangesEditing'),_0x29f1b9=_0x419e8f['locale'];_0x4e04cf['enableDefaultAttributesIntegration']('highlight'),_0x4e04cf['registerInlineAttribute']('highlight'),_0x4e04cf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29f1b9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd034=this['editor'],_0x2fb304=_0x1dd034['locale'];_0x1dd034['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x202b98=>{if('formatInline'!=_0x202b98['type'])return;const {data:_0x3d8654}=_0x202b98;if(_0x3d8654&&'highlight'==_0x3d8654['commandName']){const _0xa358c4=_0x2fb304['t'],_0x267175=_0x3d8654['commandParams'][0x0]['value'];if(_0x267175){const _0x4bfdf8=_0x1dd034['config']['get']('highlight.options')['find'](_0x3a6b04=>_0x3a6b04['model']==_0x267175),_0x20b728=_0xa358c4(_0x4bfdf8['title'])['toLowerCase']();return{'type':'format','content':o(_0x2fb304,'*Set\x20highlight:*\x20%0',_0x20b728),'color':{'value':_0x4bfdf8['color'],'title':_0x4bfdf8['title']}};}return{'type':'format','content':o(_0x2fb304,'*Remove\x20highlight*',o(_0x2fb304,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xccd55c{['afterInit'](){const _0xd2149c=this['editor'];if(!_0xd2149c['plugins']['has']('HorizontalLineEditing'))return;_0xd2149c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x420234=_0xd2149c['plugins']['get']('TrackChangesEditing'),_0x36d8e5=_0xd2149c['locale'];_0x420234['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e8be8=>o(_0x36d8e5,'ELEMENT_HORIZONTAL_LINE',_0x5e8be8)),_0xd2149c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a6a8f,{writer:_0x5c9cbb,options:_0x2950f2})=>{if(!_0x2950f2['showSuggestionHighlights'])return null;const _0x48a7fb=_0x5c9cbb['createContainerElement']('div'),_0x5d889d=_0x5c9cbb['createEmptyElement']('hr');return _0x5c9cbb['addClass']('ck-horizontal-line',_0x48a7fb),_0x5c9cbb['insert'](_0x5c9cbb['createPositionAt'](_0x48a7fb,0x0),_0x5d889d),_0x48a7fb;},'converterPriority':'high'});}}class nt extends _0xccd55c{['afterInit'](){const _0x1b3cad=this['editor'];if(!_0x1b3cad['plugins']['has']('HtmlEmbed'))return;const _0xa30bbe=_0x1b3cad['plugins']['get']('TrackChangesEditing'),_0x180347=_0x1b3cad['locale'];_0xa30bbe['descriptionFactory']['registerElementLabel']('rawHtml',_0xd82d5d=>o(_0x180347,'ELEMENT_HTML_EMBED',_0xd82d5d)),_0xa30bbe['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa30bbe['registerBlockAttribute']('value'),_0xa30bbe['descriptionFactory']['registerDescriptionCallback'](_0x44a491=>{if('attribute'!=_0x44a491['type'])return;const {data:_0x2136a5}=_0x44a491;if(_0x2136a5&&'value'==_0x2136a5['key']&&_0x44a491['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3934d4=o(_0x180347,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x180347,'*Change\x20%0\x20content*',_0x3934d4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250078=this['editor'],_0x2a006d=_0x250078['locale'];_0x250078['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf96f8f=>{if('formatBlock'!=_0xf96f8f['type'])return;const {data:_0x5e4755}=_0xf96f8f;if(_0x5e4755&&'htmlEmbed'==_0x5e4755['commandName']){const _0x5d8bf6=o(_0x2a006d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2a006d,'*Change\x20%0\x20content*',_0x5d8bf6)};}});}}class et extends _0xccd55c{['afterInit'](){const _0x1e0138=this['editor'];if(!_0x1e0138['plugins']['has']('ImageEditing'))return;const _0x5e4100=_0x1e0138['plugins']['get']('TrackChangesEditing'),_0x3e43c1=_0x1e0138['plugins']['get']('ImageUtils'),_0x273294=_0x1e0138['locale'];_0x5e4100['enableCommand']('insertImage'),_0x5e4100['descriptionFactory']['registerElementLabel']('imageBlock',_0xeafc2c=>o(_0x273294,'ELEMENT_IMAGE',_0xeafc2c)),_0x5e4100['descriptionFactory']['registerElementLabel']('imageInline',_0x5612f9=>o(_0x273294,'ELEMENT_INLINE_IMAGE',_0x5612f9)),_0x5e4100['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x273294,'ELEMENT_CAPTION')),_0x1e0138['plugins']['has']('ImageUploadEditing')&&_0x5e4100['enableCommand']('uploadImage'),_0x1e0138['plugins']['has']('ImageBlockEditing')&&_0x1e0138['plugins']['has']('ImageInlineEditing')&&(_0x5e4100['enableCommand']('imageTypeInline',(_0x35e9be,_0x879ce4)=>{const _0x45ce03=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']);_0x1e0138['model']['change'](()=>{_0x5e4100['markBlockFormat'](_0x45ce03,{'commandName':'imageTypeInline','commandParams':[_0x879ce4]},[],'convertBlockImageToInline');});}),_0x5e4100['enableCommand']('imageTypeBlock',(_0x44c51a,_0x2c3b8b)=>{_0x1e0138['model']['change'](_0x3c0f86=>{let _0x1e6002=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x482056=_0x3c0f86['createRangeOn'](_0x1e6002);const _0x32360c=_0x26ff4e['fromPosition'](_0x482056['start'],'toPrevious'),_0x3396ad=_0x26ff4e['fromPosition'](_0x482056['end'],'toNext');_0x5e4100['forceDefaultExecution'](()=>_0x44c51a(_0x2c3b8b)),_0x1e6002=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x482056=_0x3c0f86['createRangeOn'](_0x1e6002);const _0x4349ce=_0x3c0f86['createRange'](_0x32360c,_0x3396ad);_0x32360c['detach'](),_0x3396ad['detach'](),_0x5e4100['markBlockFormat'](_0x1e6002,{'commandName':'imageTypeInline','commandParams':[_0x2c3b8b]},[],'convertInlineImageToBlock'),_0x4349ce['start']['isBefore'](_0x482056['start'])&&_0x5e4100['markInsertion'](_0x3c0f86['createRange'](_0x4349ce['start'],_0x482056['start']),'convertInlineImageToBlock'),_0x482056['end']['isBefore'](_0x4349ce['end'])&&_0x5e4100['markInsertion'](_0x3c0f86['createRange'](_0x482056['end'],_0x4349ce['end']),'convertInlineImageToBlock');});}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e4100['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x40d5b5])=>{const _0xf50a32=_0x5e4100['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x32c067=_0x40d5b5['start'],_0x2d80da=_0x40d5b5['end'];const _0x44bcd8=_0x1e0138['model']['schema']['getNearestSelectionRange'](_0x32c067,'backward'),_0x21400e=_0x1e0138['model']['schema']['getNearestSelectionRange'](_0x2d80da,'forward');_0x44bcd8['isCollapsed']&&(_0x32c067=_0x44bcd8['start']),_0x21400e['isCollapsed']&&(_0x2d80da=_0x21400e['end']),_0xf50a32([_0x1e0138['model']['createRange'](_0x32c067,_0x2d80da)]);}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15c4f2),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15c4f2)),_0x1e0138['plugins']['has']('ImageCaptionEditing')&&(_0x5e4100['enableCommand']('toggleImageCaption',(_0x40885f,_0x1508a7)=>{const _0x1a6d03=_0x1e0138['plugins']['get']('ImageCaptionUtils');let _0x41377c=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x3ebfbd=_0x1a6d03['getCaptionFromImageModelElement'](_0x41377c);_0x1e0138['model']['change'](()=>{if(_0x3ebfbd)return void _0x5e4100['markDeletion'](_0x1e0138['model']['createRangeOn'](_0x3ebfbd));const _0x441319=_0x3e43c1['isBlockImage'](_0x41377c);_0x40885f(_0x1508a7),_0x41377c=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x3ebfbd=_0x1a6d03['getCaptionFromImageModelElement'](_0x41377c),_0x5e4100['markInsertion'](_0x1e0138['model']['createRangeOn'](_0x3ebfbd),_0x441319?null:'imageCaption');});}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15c4f2));const _0x15ba66=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xcdc3a6(_0x3a94a8,_0x1257b5){const _0x5df363=_0x15ba66['findIndex'](({type:_0x2f4c3f,subType:_0x20fc20})=>_0x3a94a8['type']==_0x2f4c3f&&_0x3a94a8['subType']==_0x20fc20),_0x280d58=_0x15ba66['findIndex'](({type:_0x341b97,subType:_0x5438a5})=>_0x1257b5['type']==_0x341b97&&_0x1257b5['subType']==_0x5438a5);if(_0x5df363<0x0||_0x280d58<0x0)return!0x1;const _0x27cf33=_0x3a94a8['getFirstRange'](),_0x38bae3=_0x1257b5['getFirstRange']();if((0x0==_0x5df363||0x1==_0x5df363)&&0x2==_0x280d58&&_0x27cf33['isIntersecting'](_0x38bae3))return!0x0;if(0x2==_0x5df363&&0x3==_0x280d58){const _0x4bed51=_0x5e4100['_findSuggestions'](_0x27cf33,'insertion')['filter'](({suggestion:_0x9c0f47,meta:_0x59968a})=>_0x59968a['isOwn']&&'convertInlineImageToBlock'==_0x9c0f47['subType']);if(_0x4bed51['length']>0x1&&_0x38bae3['end']['isEqual'](_0x27cf33['start']))return!0x0;if(0x1==_0x4bed51['length']&&(_0x27cf33['start']['isEqual'](_0x38bae3['end'])||_0x27cf33['end']['isEqual'](_0x38bae3['start'])))return!0x0;}if(0x3==_0x5df363&&0x3==_0x280d58&&_0x27cf33['start']['isBefore'](_0x38bae3['start'])){const _0x3f481e=_0x27cf33['end']['nodeAfter'],_0x219f50=_0x38bae3['start']['nodeBefore'];return _0x3e43c1['isBlockImage'](_0x3f481e)&&_0x3f481e===_0x219f50;}return!0x1;}function _0x15c4f2(_0x5b2e11,_0x5a9691){return _0xcdc3a6(_0x5b2e11,_0x5a9691)?[_0x5b2e11,_0x5a9691]:_0xcdc3a6(_0x5a9691,_0x5b2e11)?[_0x5a9691,_0x5b2e11]:null;}_0x1e0138['plugins']['has']('ImageResize')&&(_0x5e4100['enableDefaultAttributesIntegration']('resizeImage'),_0x5e4100['registerBlockAttribute']('resizedWidth'),_0x5e4100['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x273294,'FORMAT_IMAGE_SIZE'))),_0x1e0138['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e4100['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e4100['registerBlockAttribute']('alt')),_0x1e0138['plugins']['has']('PictureEditing')&&(_0x5e4100['registerBlockAttribute']('sources'),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x51063b=>{if('attribute'!=_0x51063b['type'])return;const {data:_0x3038ff}=_0x51063b;return _0x3038ff&&'sources'==_0x3038ff['key']?{'type':'format','content':''}:void 0x0;})),_0x1e0138['plugins']['has']('ImageSizeAttributes')&&(_0x5e4100['registerBlockAttribute']('width'),_0x5e4100['registerBlockAttribute']('height'),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x3ae469=>{if('attribute'!=_0x3ae469['type'])return;const {data:_0x14696e}=_0x3ae469;return!_0x14696e||'width'!=_0x14696e['key']&&'height'!=_0x14696e['key']?void 0x0:{'type':'format','content':''};})),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x475905=>{if(!!_0x15ba66['find'](({type:_0x1d49f5,subType:_0x2bf5ea})=>_0x475905['type']==_0x1d49f5&&_0x475905['subType']==_0x2bf5ea))return _0x475905['previous']?{}:void 0x0;}),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x5a4298=>{if('insertion'==_0x5a4298['type']||'deletion'==_0x5a4298['type']){const _0x5673fa=_0x5a4298['getContainedElement']();if(_0x5673fa&&_0x5673fa['is']('element','caption'))return{'type':'insertion'==_0x5a4298['type']?'addObject':'removeObject','element':_0x5673fa,'quantity':0x1};}}),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x429aec=>'formatBlock'==_0x429aec['type']&&'convertInlineImageToBlock'==_0x429aec['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x429aec['type']&&'convertBlockImageToInline'==_0x429aec['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x5c8a7c=>{if('attribute'!=_0x5c8a7c['type'])return;const {data:_0x24efb3}=_0x5c8a7c;if(!_0x24efb3||'alt'!=_0x24efb3['key'])return;const _0x103720=_0x24efb3['newValue'];return _0x103720?{'type':'format','content':o(_0x273294,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x103720+'\x22')}:{'type':'format','content':o(_0x273294,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15bc64=this['editor'],_0xd17b72=_0x15bc64['locale'];_0x15bc64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb166=>{if('formatBlock'!=_0x2fb166['type']&&'formatInline'!=_0x2fb166['type'])return;const {data:_0x1a80e2}=_0x2fb166;if(_0x1a80e2){if('imageTextAlternative'==_0x1a80e2['commandName']){const _0x24a43b=_0x1a80e2['commandParams'][0x0]['newValue'];return _0x24a43b?{'type':'format','content':o(_0xd17b72,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24a43b+'\x22')}:{'type':'format','content':o(_0xd17b72,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1a80e2['commandName']){const _0x3ad958=_0x1a80e2['commandParams'][0x0]['width'];return _0x3ad958?{'type':'format','content':o(_0xd17b72,'*Set\x20image\x20width:*\x20%0',_0x3ad958)}:{'type':'format','content':o(_0xd17b72,'*Reset\x20image\x20width*')};}}});}}class st extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x347ad3=this['editor']['locale'],_0x5bd262=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bd262['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5bd262['registerBlockAttribute']('src'),_0x5bd262['descriptionFactory']['registerDescriptionCallback'](_0x5337c9=>{if('attribute'!=_0x5337c9['type'])return;const {data:_0xd636b}=_0x5337c9;return _0xd636b&&'src'==_0xd636b['key']?_0xd636b['newValue']&&_0xd636b['oldValue']?{'type':'format','content':o(_0x347ad3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x145f2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x145f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x145f2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x145f2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f328=this['editor'],_0x26921c=_0x2f328['locale'];_0x2f328['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd84d=>{if('formatBlock'!=_0x3cd84d['type']&&'formatInline'!=_0x3cd84d['type'])return;const {data:_0x2298d0}=_0x3cd84d;if(!_0x2298d0||'replaceImageSource'!=_0x2298d0['commandName'])return;return{'type':'format','content':o(_0x26921c,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xccd55c{['afterInit'](){const _0x1c26f3=this['editor'];if(!_0x1c26f3['plugins']['has']('ImageStyleEditing'))return;const _0x2aa3a4=_0x1c26f3['plugins']['get']('TrackChangesEditing'),_0x2c2662=_0x1c26f3['plugins']['get']('ImageUtils'),_0x408660={};_0x2aa3a4['enableCommand']('imageStyle',(_0x4a2ad8,_0x5e7c47)=>{const _0x4ade59=_0x1c26f3['plugins']['get']('Users')['me'],_0x2fcb51=_0x1c26f3['commands']['get']('imageStyle');let _0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),_0x3c41ec=_0x1c26f3['model']['createRangeOn'](_0x30f212),_0x2a6e84=_0x2fcb51['value'];if(_0x2a6e84==_0x5e7c47['value'])return;const _0x47a4a3={'commandName':'imageStyle','commandParams':[_0x5e7c47],'formatGroupId':_0x427844()};_0x1c26f3['model']['change'](()=>{if(_0x2aa3a4['getSuggestions']()['filter'](_0x5a7083=>_0x5a7083['isInContent']&&_0x4ade59==_0x5a7083['author']&&('formatBlock'==_0x5a7083['type']||'formatInline'==_0x5a7083['type'])&&('imageStylePreApply'==_0x5a7083['subType']||'imageStylePostApply'==_0x5a7083['subType'])&&_0x5a7083['getFirstRange']()['isEqual'](_0x3c41ec))['forEach'](_0x47f2fb=>_0x2aa3a4['discardSuggestion'](_0x47f2fb['head'])),_0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),_0x3c41ec=_0x1c26f3['model']['createRangeOn'](_0x30f212),_0x2fcb51['refresh'](),_0x1c26f3['commands']['get']('imageTypeInline')['refresh'](),_0x1c26f3['commands']['get']('imageTypeBlock')['refresh'](),_0x2a6e84=_0x2fcb51['value'],_0x2a6e84!=_0x5e7c47['value'])return _0x2c2662['isInlineImage'](_0x30f212)&&_0x2fcb51['shouldConvertImageType'](_0x5e7c47['value'],_0x30f212)?(_0x4a2ad8({..._0x5e7c47,'setImageSizes':!0x1}),_0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),void _0x2aa3a4['markBlockFormat'](_0x30f212,{..._0x47a4a3,'commandReversedParams':[{'value':_0x2a6e84||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c2662['isBlockImage'](_0x30f212)?_0x2aa3a4['markBlockFormat'](_0x30f212,_0x47a4a3,[],'imageStylePostApply'):_0x2aa3a4['markInlineFormat'](_0x3c41ec,_0x47a4a3,'imageStylePostApply'));});});for(const _0x17f4a6 of _0x1c26f3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x408660[_0x17f4a6['name']]=_0x17f4a6['title']['toLowerCase']();_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3865f3])=>{_0x2c2662['setImageNaturalSizeAttributes'](_0x3865f3['getContainedElement']());}),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15cfac,_0x2dfebf)=>{_0x2aa3a4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15cfac,{'commandName':_0x2dfebf['commandName'],'commandParams':_0x2dfebf['commandReversedParams']});}),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58e424,_0x35a947){if(_0x5883d2(_0x58e424,_0x35a947))return[_0x58e424,_0x35a947];if(_0x5883d2(_0x35a947,_0x58e424))return[_0x35a947,_0x58e424];return null;});const _0xc38196=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5883d2(_0x4aa3be,_0x16b173){const _0x149b2f=_0xc38196['findIndex'](({type:_0x3742d0,subType:_0x4d1681})=>_0x4aa3be['type']==_0x3742d0&&_0x4aa3be['subType']==_0x4d1681),_0x275627=_0xc38196['findIndex'](({type:_0x69a758,subType:_0x12bcab})=>_0x16b173['type']==_0x69a758&&_0x16b173['subType']==_0x12bcab);if(_0x149b2f<0x0||_0x275627<0x0)return!0x1;const _0x25d0f2=_0x4aa3be['getFirstRange'](),_0x3340a3=_0x16b173['getFirstRange']();if((0x0==_0x149b2f||0x1==_0x149b2f)&&0x2==_0x275627&&_0x25d0f2['isIntersecting'](_0x3340a3))return!0x0;if(0x2==_0x149b2f&&0x3==_0x275627){const _0x32d4fa=_0x2aa3a4['_findSuggestions'](_0x25d0f2,'insertion')['filter'](({suggestion:_0x4e4e77,meta:_0x1393d7})=>_0x1393d7['isOwn']&&'convertInlineImageToBlock'==_0x4e4e77['subType']);if(_0x32d4fa['length']>0x1&&_0x3340a3['end']['isEqual'](_0x25d0f2['start']))return!0x0;if(0x1==_0x32d4fa['length']&&(_0x25d0f2['start']['isEqual'](_0x3340a3['end'])||_0x25d0f2['end']['isEqual'](_0x3340a3['start'])))return!0x0;}if(0x3==_0x149b2f&&0x3==_0x275627&&_0x25d0f2['start']['isBefore'](_0x3340a3['start'])){const _0x3f8e19=_0x25d0f2['end']['nodeAfter'],_0xb3bd8b=_0x3340a3['start']['nodeBefore'];return _0x2c2662['isBlockImage'](_0x3f8e19)&&_0x3f8e19===_0xb3bd8b;}return!0x1;}_0x1c26f3['model']['document']['registerPostFixer'](()=>{let _0x55bc18=!0x1;const _0x609fbb=Array['from'](_0x1c26f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13e0a4,data:_0x356cb7}of _0x609fbb){const {group:_0x3f4743,type:_0x21c3f2,subType:_0x44b35f,id:_0x455ac7}=_0x2aa3a4['_splitMarkerName'](_0x13e0a4);if('suggestion'==_0x3f4743&&_0x2aa3a4['hasSuggestion'](_0x455ac7)){if('formatBlock'==_0x21c3f2&&('imageStylePreApply'==_0x44b35f||'imageStylePostApply'==_0x44b35f)){const _0x20d973=_0x2aa3a4['getSuggestion'](_0x455ac7);if(_0x356cb7['newRange']){const _0x536da1=_0x20d973['getFirstRange']()['getContainedElement']();if(_0x2c2662['isBlockImage'](_0x536da1))continue;_0x2aa3a4['discardSuggestion'](_0x20d973),_0x55bc18=!0x0;}}if('insertion'==_0x21c3f2&&'imageCaption'==_0x44b35f&&!_0x356cb7['newRange']){const _0x5786c4=_0x2aa3a4['getSuggestion'](_0x455ac7);_0x5786c4['next']&&_0x5786c4['next']['isInContent']&&(_0x2aa3a4['discardSuggestion'](_0x5786c4['next']),_0x55bc18=!0x0);}}}return _0x55bc18;}),this['_registerLegacyDescription'](_0x408660);}['_registerLegacyDescription'](_0x1adaf4){const _0x107a17=this['editor'],_0x3ed002=_0x107a17['locale'];_0x107a17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6600cd=>{if('formatBlock'!=_0x6600cd['type']&&'formatInline'!=_0x6600cd['type'])return;const {data:_0x4beaf2}=_0x6600cd;if(!_0x4beaf2||'imageStyle'!=_0x4beaf2['commandName'])return;const _0x1a9933=_0x4beaf2['commandParams'][0x0]['value'];return _0x24f63d('side'===_0x1a9933?o(_0x3ed002,'FORMAT_SIDE_IMAGE'):_0x1adaf4[_0x1a9933]||_0x1a9933);function _0x24f63d(_0x1dcada){return{'type':'format','content':o(_0x3ed002,'*Format:*\x20%0',_0x1dcada)};}});}}class rt extends _0xccd55c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5e0d5d){super(_0x5e0d5d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3f6c0e=this['editor'],_0x1a40f6=_0x3f6c0e['commands']['get']('importWord'),_0x9ce28e=_0x3f6c0e['commands']['get']('trackChanges');_0x1a40f6&&(_0x1a40f6['on']('execute',(_0x4dc8ff,[,_0x3031aa])=>{this['_trackChangesValueDuringImport']=_0x9ce28e['value'],_0x3031aa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1a40f6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1a40f6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9ce28e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3f6c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1cf512,_0x27437e){const {suggestions:_0x3f1edd}=_0x27437e,_0x58db6a=this['editor']['commands']['get']('trackChanges'),_0x53bce6=_0x58db6a['value'];this['_trackChangesValueDuringImport']!==_0x53bce6&&(_0x58db6a['execute'](),this['_trackChangesExecuted']=!0x0),_0x3f1edd&&_0x3f1edd['forEach'](({id:_0xa2de78,type:_0x3c648b,author:_0x2da383,created_at:_0x4eac44})=>{const _0x7583b5={'id':_0xa2de78,'type':_0x3c648b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2da383,'createdAt':_0x4eac44?new Date(_0x4eac44):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7583b5);});}}class at extends _0xccd55c{['afterInit'](){const _0x4a69df=this['editor'],_0x479708=_0x4a69df['plugins']['get']('TrackChangesEditing');if(_0x4a69df['plugins']['has']('IndentEditing')&&(_0x479708['enableCommand']('indent'),_0x479708['enableCommand']('outdent')),_0x4a69df['plugins']['has']('IndentBlock')){for(const _0x38d7ed of['indentBlock','outdentBlock'])_0x479708['enableDefaultAttributesIntegration'](_0x38d7ed);}const _0x2d515d=_0x4a69df['locale'];_0x479708['registerBlockAttribute']('blockIndent'),_0x479708['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2d515d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b18c=this['editor'],_0x57c6d0=_0x20b18c['locale'],_0x1ef728=_0x20b18c['plugins']['get']('TrackChangesEditing');_0x1ef728['descriptionFactory']['registerDescriptionCallback'](_0x1262b1=>{if('formatBlock'!=_0x1262b1['type'])return;const {data:_0x4b005e}=_0x1262b1;if(!_0x4b005e)return;if('indentBlock'!=_0x4b005e['commandName']&&'outdentBlock'!=_0x4b005e['commandName'])return;const _0x41bb01=_0x1262b1['getItems']()[0x0],_0x1c3d16=_0x1ef728['descriptionFactory']['getItemLabel'](_0x41bb01);return'indentBlock'==_0x4b005e['commandName']?{'type':'format','content':o(_0x57c6d0,'*Indent:*\x20%0',_0x1c3d16)}:'outdentBlock'==_0x4b005e['commandName']?{'type':'format','content':o(_0x57c6d0,'*Outdent:*\x20%0',_0x1c3d16)}:void 0x0;});}}class ct extends _0xccd55c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xccd55c{['afterInit'](){const _0x4b4cdc=this['editor'];if(!_0x4b4cdc['plugins']['has']('LinkEditing'))return;const _0xb70d91=_0x4b4cdc['plugins']['get']('TrackChangesEditing'),_0x203f60=_0x4b4cdc['commands']['get']('link');_0xb70d91['enableDefaultAttributesIntegration']('link'),_0xb70d91['enableDefaultAttributesIntegration']('unlink'),_0xb70d91['registerInlineAttribute']('linkHref');for(const _0x263655 of _0x203f60['manualDecorators'])_0xb70d91['registerInlineAttribute'](_0x263655['id']),_0xb70d91['descriptionFactory']['registerAttributeLabel'](_0x263655['id'],'link\x20('+_0x263655['label']['toLowerCase']()+')');_0xb70d91['descriptionFactory']['registerDescriptionCallback'](_0x51ab8c=>{if('attribute'!=_0x51ab8c['type'])return;const {data:_0x2b5431}=_0x51ab8c;if(!_0x2b5431||'linkHref'!=_0x2b5431['key'])return;const _0x46a52f=_0x2b5431['newValue'],_0x190830=_0x4b4cdc['locale'];return{'type':'format','content':null==_0x46a52f?o(_0x190830,'*Remove\x20link*'):o(_0x190830,'*Set\x20link:*\x20%0','\x22'+_0x46a52f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4695e2=this['editor'],_0x26a488=_0x4695e2['locale'];_0x4695e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f68fa=>{if('formatInline'!=_0x1f68fa['type'])return;const {data:_0x331cf2}=_0x1f68fa;if(_0x331cf2){if('link'==_0x331cf2['commandName']){const _0x4c4765=_0x331cf2['commandParams'][0x0];return{'type':'format','content':o(_0x26a488,'*Set\x20link:*\x20%0','\x22'+_0x4c4765+'\x22')};}return'unlink'==_0x331cf2['commandName']?{'type':'format','content':o(_0x26a488,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xccd55c{['afterInit'](){const _0x4a3897=this['editor'],_0x9bc8d9=_0x4a3897['locale'];if(!_0x4a3897['plugins']['has']('LegacyListEditing'))return;const _0x1d92f3=_0x4a3897['plugins']['get']('TrackChangesEditing'),_0x15b58f=_0x4a3897['plugins']['has']('LegacyTodoListEditing');function _0x1ff1dc(_0xfbd0c7){return()=>{const _0x175fda=_0x4a3897['model']['document']['selection'],_0x34ecb1=_0x4a3897['commands']['get'](_0xfbd0c7);if(_0x34ecb1['value'])return void _0x4a3897['execute']('paragraph',{});const _0xb7561e=_0xfbd0c7['slice'](0x0,-0x4),_0x14cfa5=function(_0x16494e,_0xaf4c4f,_0x440a2e){let _0x104236=Array['from'](_0x16494e)['filter'](_0x76bbe9=>function(_0x17748d,_0xf32583){return _0xf32583['checkChild'](_0x17748d['parent'],'listItem')&&!_0xf32583['isObject'](_0x17748d);}(_0x76bbe9,_0x440a2e));_0x104236=_0x104236['filter'](_0x5bb4ff=>!_0x5bb4ff['is']('element','listItem')||_0x5bb4ff['getAttribute']('listType')!=_0xaf4c4f);const _0x455435=new Set();for(const _0x230b50 of _0x104236)_0x230b50['is']('element','listItem')?_0x455435['add'](Le(_0x230b50)):_0x455435['add'](_0x230b50);return Array['from'](_0x455435);}(_0x175fda['getSelectedBlocks'](),_0xb7561e,_0x4a3897['model']['schema']);_0x4a3897['model']['change'](()=>{for(const _0x421323 of _0x14cfa5)_0x1d92f3['markBlockFormat'](_0x421323,{'commandName':_0xfbd0c7,'commandParams':[{'forceValue':!_0x34ecb1['value']}],'formatGroupId':'blockName'},Ee(_0x421323));});};}function _0x54cce8(_0x546273){return()=>{const _0x4a42a5=function(_0x2f4068){let _0x2e7b15=Array['from'](_0x2f4068);const _0x45c75b=_0x2e7b15['findIndex'](_0x526108=>'listItem'!=_0x526108['name']);return _0x45c75b>-0x1&&(_0x2e7b15=_0x2e7b15['slice'](0x0,_0x45c75b)),_0x2e7b15;}(_0x4a3897['model']['document']['selection']['getSelectedBlocks']()),_0x4ef77e=_0x4a3897['model']['createRange'](_0x4a3897['model']['createPositionAt'](_0x4a42a5[0x0],'before'),_0x4a3897['model']['createPositionAt'](_0x4a42a5[_0x4a42a5['length']-0x1],'end'));_0x4a3897['model']['change'](()=>{_0x1d92f3['markBlockFormat'](_0x4ef77e,{'commandName':_0x546273,'commandParams':[],'formatGroupId':'listIndent'},function(_0x12c764){const _0x3b9345=new Set();for(const _0x36f3c3 of _0x12c764){let _0x161a2d=_0x36f3c3['nextSibling'];for(;_0x161a2d&&_0x161a2d['getAttribute']('listIndent')>_0x36f3c3['getAttribute']('listIndent');)_0x3b9345['add'](_0x161a2d),_0x161a2d=_0x161a2d['nextSibling'];}return Array['from'](_0x3b9345);}(_0x4a42a5));});};}_0x1d92f3['enableCommand']('numberedList',_0x1ff1dc('numberedList')),_0x1d92f3['enableCommand']('bulletedList',_0x1ff1dc('bulletedList')),_0x15b58f&&_0x1d92f3['enableCommand']('todoList',_0x1ff1dc('todoList')),_0x1d92f3['enableCommand']('indentList',_0x54cce8('indentList')),_0x1d92f3['enableCommand']('outdentList',_0x54cce8('outdentList')),_0x15b58f&&_0x1d92f3['enableCommand']('checkTodoList',()=>{const _0x9f9815=_0x4a3897['commands']['get']('checkTodoList'),_0x10433d=Array['from'](_0x9f9815['_selectedElements']);_0x10433d['filter'](_0x581afc=>_0x581afc['getAttribute']('todoListChecked')!=_0x9f9815['value']),_0x4a3897['model']['change'](()=>{for(const _0x238bce of _0x10433d)_0x1d92f3['markBlockFormat'](_0x238bce,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x9f9815['value']}]});});}),_0x1d92f3['descriptionFactory']['registerElementLabel']('listItem',_0x4c44fa=>o(_0x9bc8d9,'ELEMENT_LIST_ITEM',_0x4c44fa)),_0x1d92f3['descriptionFactory']['registerDescriptionCallback'](_0x206827=>{if('formatBlock'!=_0x206827['type']&&'formatInline'!=_0x206827['type'])return;const {data:_0x4cfcc3}=_0x206827;if(_0x4cfcc3){if('numberedList'==_0x4cfcc3['commandName']||'bulletedList'==_0x4cfcc3['commandName']||'todoList'==_0x4cfcc3['commandName'])switch(_0x4cfcc3['commandName']['replace']('List','')){case'bulleted':return _0x211b36(o(_0x9bc8d9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x211b36(o(_0x9bc8d9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x211b36(o(_0x9bc8d9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4cfcc3['commandName'])return{'type':'format','content':o(_0x9bc8d9,'*Indent:*\x20%0',o(_0x9bc8d9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4cfcc3['commandName'])return{'type':'format','content':o(_0x9bc8d9,'*Outdent:*\x20%0',o(_0x9bc8d9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4cfcc3['commandName'])return _0x4cfcc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9bc8d9,'*Check\x20item*')}:{'type':'format','content':o(_0x9bc8d9,'*Uncheck\x20item*')};}function _0x211b36(_0xd2f27e){return{'type':'format','content':o(_0x9bc8d9,'*Change\x20to:*\x20%0',_0xd2f27e)};}});}}function Le(_0x34297b){const _0x5836ee=_0x34297b['getAttribute']('listIndent');if(0x0==_0x5836ee)return _0x34297b;let _0x245385=_0x34297b;for(;_0x34297b['previousSibling']&&_0x34297b['previousSibling']['is']('element','listItem');){const _0x487545=_0x34297b['previousSibling']['getAttribute']('listIndent');if(_0x487545==_0x5836ee)_0x245385=_0x34297b['previousSibling'];else{if(_0x487545<_0x5836ee)break;}_0x34297b=_0x34297b['previousSibling'];}return _0x245385;}function Ee(_0x22027f){const _0x384c3=[];if(_0x22027f['is']('element','listItem')&&_0x22027f['getAttribute']('listIndent')>0x0){let _0x220af4=_0x22027f['nextSibling'];for(;_0x220af4&&'listItem'==_0x220af4['name']&&_0x220af4['getAttribute']('listIndent')==_0x22027f['getAttribute']('listIndent');)_0x384c3['push'](_0x220af4),_0x220af4=_0x220af4['nextSibling'];}return _0x384c3;}class ht extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcdd520=this['editor']['config']['get']('list.properties'),_0x4d82e7=this['editor']['plugins']['get']('TrackChangesEditing');_0xcdd520['styles']&&_0x4d82e7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcdd520['reversed']&&_0x4d82e7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcdd520['startIndex']&&_0x4d82e7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d82e7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x17e576,_0x79c84c={}){const _0x598558=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22b0d4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x598558['markMultiRangeBlockFormat'](_0x22b0d4,{'commandName':'listStyle','commandParams':[{'type':_0x79c84c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x180f20,_0x3fd7a9={}){const _0x4a9cb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13bdad=this['_getSuggestionBlocks'](_0x30000f=>_0x30000f['is']('element','listItem')&&'numbered'===_0x30000f['getAttribute']('listType'));if(_0x13bdad['length']<0x1)return;const _0x16d740=_0x13bdad['map'](_0x10111a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10111a,'before'),this['editor']['model']['createPositionAt'](_0x10111a,0x0)));this['editor']['model']['change'](()=>{_0x4a9cb7['markMultiRangeBlockFormat'](_0x16d740,{'commandName':'listReversed','commandParams':[{'reversed':_0x3fd7a9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x501a63,_0x33f938={}){const _0x38e598=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59c98f=this['_getSuggestionBlocks'](_0x48985e=>_0x48985e['is']('element','listItem')&&'numbered'===_0x48985e['getAttribute']('listType'));if(_0x59c98f['length']<0x1)return;const _0x36ae65=_0x59c98f['map'](_0x39cee1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39cee1,'before'),this['editor']['model']['createPositionAt'](_0x39cee1,0x0)));this['editor']['model']['change'](()=>{_0x38e598['markMultiRangeBlockFormat'](_0x36ae65,{'commandName':'listStart','commandParams':[{'startIndex':_0x33f938['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x529038){if('formatBlock'!=_0x529038['type']&&'formatInline'!=_0x529038['type'])return;const _0x718d3d=this['editor']['locale'],{data:_0x37936f}=_0x529038;if(!_0x37936f)return;let _0x486809,_0x17e2d1;switch(_0x37936f['commandName']){case'listStyle':_0x486809='*Change\x20to:*\x20%0',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809,o(_0x718d3d,this['_getTranslationKeyForListStyle'](_0x37936f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x486809=_0x37936f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809)};break;case'listStart':_0x486809='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809,_0x37936f['commandParams'][0x0]['startIndex'])};}return _0x17e2d1;}['_getSuggestionBlocksForListStyle'](){const _0x56bc28=this['editor']['plugins']['get']('LegacyListUtils');let _0x3fbf17=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3fbf17[0x0]?.['is']('element','listItem')&&_0x3fbf17['unshift'](..._0x56bc28['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3fbf17[_0x3fbf17['length']-0x1]?.['is']('element','listItem')&&_0x3fbf17['push'](..._0x56bc28['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3fbf17=[...new Set(_0x3fbf17)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3fbf17=_0x3fbf17['filter'](_0x3fdfcd=>_0x3fdfcd['is']('element','listItem'))),_0x3fbf17;}['_getSuggestionBlocks'](_0x37f564){const _0x5afdbe=this['editor']['plugins']['get']('LegacyListUtils');let _0x41ea6a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37f564)['map'](_0x2e6922=>{const _0x9b8460=this['editor']['model']['createPositionAt'](_0x2e6922,0x0);return[..._0x5afdbe['getSiblingNodes'](_0x9b8460,'backward'),..._0x5afdbe['getSiblingNodes'](_0x9b8460,'forward')];})['flat']();return _0x41ea6a=[...new Set(_0x41ea6a)],_0x41ea6a;}['_getTranslationKeyForListStyle'](_0x17d4cd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x17d4cd)||'default')['toUpperCase']()+'_LIST_'+_0x17d4cd['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xccd55c{['afterInit'](){const _0x5f3519=this['editor'];if(!_0x5f3519['plugins']['has']('MediaEmbedEditing'))return;const _0x44d6ce=_0x5f3519['plugins']['get']('TrackChangesEditing'),_0x1f20a9=_0x5f3519['locale'];_0x44d6ce['enableCommand']('mediaEmbed'),_0x44d6ce['descriptionFactory']['registerElementLabel']('media',_0x302a45=>o(_0x1f20a9,'ELEMENT_MEDIA',_0x302a45)),_0x5f3519['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x859b36,{writer:_0x36d672,options:_0x2bc38b})=>{if(_0x2bc38b['showSuggestionHighlights'])return _0x36d672['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f3519['data']['downcastDispatcher']['on']('attribute:url:media',(_0x196fb4,_0x552228,_0x51ee19)=>{_0x51ee19['options']['showSuggestionHighlights']&&_0x196fb4['stop']();},{'priority':'high'});}}class lt extends _0xccd55c{['afterInit'](){const _0x18ddd9=this['editor'];_0x18ddd9['plugins']['has']('MentionEditing')&&_0x18ddd9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xccd55c{['afterInit'](){const _0x592b3b=this['editor'];if(!_0x592b3b['plugins']['has']('MergeFieldsEditing'))return;const _0x2ae2e5=_0x592b3b['plugins']['get']('TrackChangesEditing'),_0x48d8eb=_0x592b3b['locale'];_0x2ae2e5['enableCommand']('insertMergeField'),_0x2ae2e5['enableCommand']('insertMergeFieldBlock'),_0x2ae2e5['enableCommand']('insertMergeFieldImage'),_0x2ae2e5['descriptionFactory']['registerElementLabel']('mergeField',_0x147f51=>o(_0x48d8eb,'ELEMENT_MERGE_FIELD',_0x147f51)),_0x2ae2e5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12e490=>o(_0x48d8eb,'ELEMENT_MERGE_FIELD',_0x12e490)),_0x2ae2e5['descriptionFactory']['registerDescriptionCallback'](_0x4a0565=>{if('insertion'!=_0x4a0565['type']&&'deletion'!=_0x4a0565['type'])return;const _0x2d1fa2=_0x4a0565['getContainedElement']();if(null==_0x2d1fa2)return;const _0x2e9f32=_0x592b3b['plugins']['get']('MergeFieldsEditing');let _0x13e0a8;switch(_0x2e9f32['getMergeFieldType'](_0x2d1fa2)){case null:return;case'image':{const _0x5507ca=_0x2e9f32['unwrapAffixes'](_0x2d1fa2['getAttribute']('src'));_0x13e0a8=_0x2e9f32['getLabel'](_0x5507ca)||_0x5507ca;break;}default:{const _0x42f0b0=_0x2d1fa2['getAttribute']('id');_0x13e0a8=_0x2e9f32['getLabel'](_0x42f0b0)||_0x42f0b0;break;}}return'insertion'==_0x4a0565['type']?{'type':'insertion','content':o(_0x48d8eb,'*Insert:*\x20%0','\x22'+_0x13e0a8+'\x22\x20'+o(_0x48d8eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x48d8eb,'*Remove:*\x20%0','\x22'+_0x13e0a8+'\x22\x20'+o(_0x48d8eb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xccd55c{['afterInit'](){const _0x16a661=this['editor'],_0x5ea1aa=_0x16a661['plugins']['get']('TrackChangesEditing');_0x16a661['plugins']['has']('MultiLevelList')&&(_0x5ea1aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ea1aa['registerBlockAttribute']('listMarkerStyle'),_0x5ea1aa['descriptionFactory']['registerDescriptionCallback'](_0x558189=>this['handleDescriptions'](_0x558189)));}['handleDescriptions'](_0x337e38){const _0x9b23ae=this['editor']['locale'],{data:_0xfc7652}=_0x337e38,_0x57c812={'type':'format','content':''};if(_0xfc7652&&'listMarkerStyle'==_0xfc7652['key']){if(!_0xfc7652['oldValue'])return{'type':'format','content':o(_0x9b23ae,'*Set\x20format:*\x20%0',o(_0x9b23ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc7652['newValue']+')'};if(!_0xfc7652['newValue']){let _0x8e5d07=_0x337e38['head'];for(;_0x8e5d07;){if(_0x8e5d07['data']&&'listType'==_0x8e5d07['data']['key']&&_0x8e5d07['data']['newValue'])return _0x57c812;_0x8e5d07=_0x8e5d07['next'];}return{'type':'format','content':o(_0x9b23ae,'*Remove\x20format:*\x20%0',o(_0x9b23ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc7652['oldValue']+')'};}}}}class pt extends _0xccd55c{['afterInit'](){const _0x2a02d1=this['editor'];if(!_0x2a02d1['plugins']['has']('PageBreakEditing'))return;_0x2a02d1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4219b9=_0x2a02d1['plugins']['get']('TrackChangesEditing'),_0x110113=_0x2a02d1['locale'];_0x4219b9['descriptionFactory']['registerElementLabel']('pageBreak',_0x482605=>o(_0x110113,'ELEMENT_PAGE_BREAK',_0x482605));}}class kt extends _0xccd55c{['afterInit'](){const _0x22c155=this['editor'];if(!_0x22c155['plugins']['has']('Paragraph'))return;const _0x2e6455=_0x22c155['locale'],_0x3ffaa6=_0x22c155['plugins']['get']('TrackChangesEditing');_0x3ffaa6['descriptionFactory']['registerElementLabel']('paragraph',_0x361a45=>o(_0x2e6455,'ELEMENT_PARAGRAPH',_0x361a45)),_0x3ffaa6['enableDefaultAttributesIntegration']('paragraph'),_0x3ffaa6['enableCommand']('insertParagraph'),_0x22c155['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x22c155),{'priority':'highest'}),_0x22c155['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16a888,_0x4fa534,_0xb1bb00)=>{_0xb1bb00['options']['showSuggestionHighlights']&&nr(_0x22c155,{'showActiveMarker':!0x1})(_0x16a888,_0x4fa534,_0xb1bb00);},{'priority':'highest'});const _0x4f0ff1=_0x3ffaa6['descriptionFactory'];_0x4f0ff1['registerDescriptionCallback'](_0x232c0c=>{if('insertion'!==_0x232c0c['type'])return;const {start:_0x522714,end:_0x24ab7}=_0x232c0c['getFirstRange']();if(!_0x522714['isTouching'](_0x24ab7)||!_0x522714['nodeAfter'])return;const _0x43770d=_0x22c155['model']['schema'],_0x434b23=_0x522714['nodeAfter'];return _0x43770d['isBlock'](_0x434b23)&&!_0x43770d['isLimit'](_0x434b23)&&_0x43770d['checkChild'](_0x434b23,'$text')?{'type':'insertion','content':o(_0x2e6455,'*Insert:*\x20%0',_0x4f0ff1['getItemLabel'](_0x434b23,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a4c75=this['editor'],_0x59e8e4=_0x5a4c75['locale'];_0x5a4c75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d80ec=>{if('formatBlock'!=_0x3d80ec['type'])return;const {data:_0x3c6fde}=_0x3d80ec;return _0x3c6fde&&'paragraph'==_0x3c6fde['commandName']?{'type':'format','content':o(_0x59e8e4,'*Change\x20to:*\x20%0',o(_0x59e8e4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x36ed47,{showActiveMarker:_0x52b2b5=!0x0}={}){return(_0x54d2f0,_0xfc5239,_0x41f915)=>{const _0x10a2ec=_0x36ed47['plugins']['get']('TrackChangesEditing'),_0x1b45ba=_0xfc5239['markerRange']['start'],_0x1abe8c=_0xfc5239['markerRange']['end'],_0xa61cce=_0x36ed47['model']['schema'];if(!_0x1b45ba['isTouching'](_0x1abe8c)||!_0x1b45ba['nodeAfter'])return;const _0x43d52b=_0x1b45ba['nodeAfter'];if(_0xa61cce['isBlock'](_0x43d52b)&&!_0xa61cce['isLimit'](_0x43d52b)&&_0xa61cce['checkChild'](_0x43d52b,'$text')){if(!_0x41f915['consumable']['consume'](_0xfc5239['markerRange'],_0x54d2f0['name']))return;const {id:_0x3a0dcc,authorId:_0x562d3a}=_0x10a2ec['_splitMarkerName'](_0xfc5239['markerName']),_0x108a27=_0x41f915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3a0dcc,'data-author-id':_0x562d3a}),_0x18624b=_0x41f915['mapper']['toViewPosition'](_0x1abe8c);_0x52b2b5&&_0x10a2ec['activeMarkers']['includes'](_0xfc5239['markerName'])&&_0x41f915['writer']['addClass']('ck-suggestion-marker--active',_0x108a27),_0x41f915['writer']['insert'](_0x18624b,_0x108a27),_0x41f915['mapper']['bindElementToMarker'](_0x108a27,_0xfc5239['markerName']);}};}class wt extends _0xccd55c{['afterInit'](){const _0x36345e=this['editor'];_0x36345e['commands']['get']('replaceSource')&&_0x36345e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xccd55c{['afterInit'](){const _0x8d0775=this['editor'];if(!_0x8d0775['plugins']['has']('RemoveFormatEditing'))return;_0x8d0775['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b476e=this['editor'];_0x1b476e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a2165=>{if('formatBlock'!=_0x4a2165['type']&&'formatInline'!=_0x4a2165['type'])return;const {data:_0x5628b8}=_0x4a2165;return _0x5628b8&&'removeFormat'==_0x5628b8['commandName']?{'type':'format','content':o(_0x1b476e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xccd55c{['afterInit'](){const _0x51efbf=this['editor'];if(!_0x51efbf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8a413d=_0x51efbf['plugins']['get']('TrackChangesEditing');_0x8a413d['enableCommand']('goToPreviousRestrictedEditingException'),_0x8a413d['enableCommand']('goToNextRestrictedEditingException');const _0x559692=_0x51efbf['plugins']['get']('RestrictedEditingModeEditing');_0x559692['enableCommand']('trackChanges'),_0x559692['enableCommand']('acceptSuggestion'),_0x559692['enableCommand']('discardSuggestion'),_0x559692['enableCommand']('acceptAllSuggestions'),_0x559692['enableCommand']('discardAllSuggestions'),_0x559692['enableCommand']('acceptSelectedSuggestions'),_0x559692['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xccd55c{['afterInit'](){const _0xd6cdd1=this['editor'];if(!_0xd6cdd1['plugins']['has']('ShiftEnter'))return;const _0x419c60=_0xd6cdd1['plugins']['get']('TrackChangesEditing');_0x419c60['enableCommand']('shiftEnter'),_0xd6cdd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xd6cdd1),{'priority':'high'}),_0xd6cdd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xd6cdd1),{'priority':'high'}),_0xd6cdd1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f576b,_0x1e21bf,_0x3b2534)=>{_0x3b2534['options']['showSuggestionHighlights']&&je(_0xd6cdd1,{'showActiveMarker':!0x1})(_0x4f576b,_0x1e21bf,_0x3b2534);}),_0x419c60['descriptionFactory']['registerElementLabel']('softBreak',_0x2b1c61=>o(_0xd6cdd1['locale'],'ELEMENT_LINE_BREAK',_0x2b1c61));}}function je(_0x2bb9b5,{showActiveMarker:_0x1abdaf=!0x0}={}){return(_0x249ddc,_0x5ef69f,_0x1c2931)=>{const _0x3547f6=_0x2bb9b5['plugins']['get']('TrackChangesEditing');if(!_0x1c2931['consumable']['test'](_0x5ef69f['markerRange'],_0x249ddc['name']))return;const _0x4001d9=_0x2bb9b5['model'];for(const _0xcc8a7b of _0x5ef69f['markerRange']['getItems']()){if(!_0xcc8a7b['is']('element','softBreak'))continue;const _0x24852f='deletion'==_0x5ef69f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x554d5c,authorId:_0x1766df}=_0x3547f6['_splitMarkerName'](_0x5ef69f['markerName']),_0x2dbdbd=_0x1c2931['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24852f,'data-suggestion':_0x554d5c,'data-author-id':_0x1766df}),_0x4e7275=_0x1c2931['mapper']['toViewPosition'](_0x4001d9['createPositionBefore'](_0xcc8a7b));_0x1abdaf&&_0x3547f6['activeMarkers']['includes'](_0x5ef69f['markerName'])&&_0x1c2931['writer']['addClass']('ck-suggestion-marker--active',_0x2dbdbd),_0x1c2931['writer']['insert'](_0x4e7275,_0x2dbdbd),_0x1c2931['mapper']['bindElementToMarker'](_0x2dbdbd,_0x5ef69f['markerName']);}};}class St extends _0xccd55c{['afterInit'](){const _0x1d1d5c=this['editor'],_0x292462=_0x1d1d5c['model'],_0x32aba3=_0x1d1d5c['locale'];if(!_0x1d1d5c['plugins']['has']('StandardEditingModeEditing'))return;const _0x26ec40=_0x1d1d5c['plugins']['get']('TrackChangesEditing'),_0x1abe97='restrictedEditingException',_0xef54dd=_0x1d1d5c['commands']['get'](_0x1abe97);_0x26ec40['enableCommand'](_0x1abe97,(_0x54a678,_0xada6af={})=>{const _0x5f062a=_0x292462['document']['selection'];if(_0x5f062a['isCollapsed'])return void _0x54a678(_0xada6af);const _0x482408=void 0x0!==_0xada6af['forceValue']?_0xada6af['forceValue']:!_0xef54dd['value'];_0x292462['change'](()=>{const _0x343f1d=Array['from'](_0x5f062a['getRanges']());for(const _0x12c618 of _0x343f1d){const _0x43709e=_0x482408?[_0x12c618]:io(_0x1abe97,_0x12c618,_0x292462);for(const _0x55ad27 of _0x43709e)_0x26ec40['markInlineFormat'](_0x55ad27,{'commandName':_0x1abe97,'commandParams':[{'forceValue':_0x482408}]});}});}),_0x26ec40['descriptionFactory']['registerDescriptionCallback'](_0x268787=>{if('formatBlock'!=_0x268787['type']&&'formatInline'!=_0x268787['type'])return;const {data:_0x240661}=_0x268787;return _0x240661&&_0x240661['commandName']==_0x1abe97?_0x240661['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32aba3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x32aba3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xccd55c{['afterInit'](){const _0x34fcb0=this['editor'];if(!_0x34fcb0['plugins']['has']('Style')||!_0x34fcb0['plugins']['has']('DataSchema'))return;const _0x5cd059=_0x34fcb0['plugins']['get']('TrackChangesEditing'),_0x3b3a26=_0x34fcb0['locale'],_0x4052ee=_0x34fcb0['config']['get']('style')||{},_0x5333ad=_0x34fcb0['plugins']['get']('GeneralHtmlSupport'),_0x1aad79=_0x34fcb0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x34fcb0['plugins']['get']('DataSchema'),_0x4052ee['definitions']);_0x5cd059['enableDefaultAttributesIntegration']('style');const _0x3f29e3=new Set();for(const _0x381a28 of _0x1aad79['block']){const _0x4170d2=_0x5333ad['getGhsAttributeNameForElement'](_0x381a28['element']);_0x3f29e3['add'](_0x4170d2);}const _0xaafc1e=new Set();for(const _0x236f93 of _0x1aad79['inline']){const _0x332de1=_0x5333ad['getGhsAttributeNameForElement'](_0x236f93['element']);_0xaafc1e['add'](_0x332de1);for(const _0x3a6438 of _0x236f93['ghsAttributes'])_0xaafc1e['add'](_0x3a6438);}for(const _0x1521c3 of _0x3f29e3)_0x5cd059['registerBlockAttribute'](_0x1521c3),_0x5cd059['descriptionFactory']['registerAttributeLabel'](_0x1521c3,o(_0x3b3a26,'FORMAT_STYLE'));for(const _0x526774 of _0xaafc1e)_0x5cd059['registerInlineAttribute'](_0x526774),_0x5cd059['descriptionFactory']['registerAttributeLabel'](_0x526774,o(_0x3b3a26,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88977b=this['editor'],_0x1ad310=_0x88977b['locale'];_0x88977b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3144=>{if('formatBlock'!=_0x3b3144['type']&&'formatInline'!=_0x3b3144['type'])return;const {data:_0x3c1760}=_0x3b3144;return _0x3c1760&&'style'===_0x3c1760['commandName']?_0x3c1760['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ad310,'*Set\x20format:*\x20%0',_0x3c1760['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ad310,'*Remove\x20format:*\x20%0',_0x3c1760['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xccd55c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3b3949){super(_0x3b3949),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5b762d=this['editor'],_0x5a937b=_0x5b762d['model']['document']['selection'];if(!_0x5b762d['plugins']['has']('TableEditing'))return;const _0x2d3acc=_0x5b762d['locale'],_0x36343a=_0x5b762d['plugins']['get']('TrackChangesEditing'),_0x50d772=_0x5b762d['plugins']['get']('TableUtils');_0x36343a['descriptionFactory']['registerElementLabel']('table',_0x253b9c=>o(_0x2d3acc,'ELEMENT_TABLE',_0x253b9c)),this['_setupColumnsRowsFixing'](),_0x36343a['enableCommand']('insertTable'),_0x36343a['enableCommand']('selectTableRow'),_0x36343a['enableCommand']('selectTableColumn');for(const _0x5350f0 of['insertTableRowAbove','insertTableRowBelow']){const _0xb2965d=_0x5b762d['commands']['get'](_0x5350f0);_0x36343a['enableCommand'](_0x5350f0,_0x591a77=>{_0x5b762d['model']['change'](_0x1ddfea=>{_0x591a77();const _0x4e36b5='above'===_0xb2965d['order'],_0x264179=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x1799cc=_0x50d772['getRowIndexes'](_0x264179),_0x9ba8f0=_0x4e36b5?_0x1799cc['first']-0x1:_0x1799cc['last']+0x1,_0x232cbb=_0x264179[0x0]['findAncestor']('table'),_0x3ec7eb=_0x50d772['createTableWalker'](_0x232cbb,{'startRow':_0x9ba8f0,'endRow':_0x9ba8f0}),_0xd442eb=Array['from'](_0x3ec7eb)['map'](_0x29994c=>_0x1ddfea['createRangeOn'](_0x29994c['cell']));_0x36343a['markMultiRangeInsertion'](_0xd442eb,'tableRow');});});}for(const _0x1c74b6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d9a4f=_0x5b762d['commands']['get'](_0x1c74b6);_0x36343a['enableCommand'](_0x1c74b6,_0x39acb1=>{_0x5b762d['model']['change'](_0x300564=>{_0x39acb1();const _0x37c5d2='left'===_0x1d9a4f['order'],_0x2cffc2=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x2f4b7b=_0x50d772['getColumnIndexes'](_0x2cffc2),_0x40dbde=_0x37c5d2?_0x2f4b7b['first']-0x1:_0x2f4b7b['last']+0x1,_0x475605=_0x2cffc2[0x0]['findAncestor']('table'),_0x46d2d6=_0x50d772['createTableWalker'](_0x475605,{'startRow':0x0,'column':_0x40dbde,'includeAllSlots':!0x1}),_0x1f53ce=Array['from'](_0x46d2d6)['map'](_0x3da829=>_0x300564['createRangeOn'](_0x3da829['cell']));_0x36343a['markMultiRangeInsertion'](_0x1f53ce,'tableColumn');});});}for(const _0x5e68e8 of['removeTableRow','removeTableColumn']){const _0x24e56e=_0x5e68e8['substr'](0xb),_0x2508ce=_0x24e56e['toLowerCase'](),_0xf895cd=_0x2508ce['substr'](0x0,0x3)+'span',_0x511551='table'+_0x24e56e,_0x2c5ea0='min'+_0x24e56e,_0x1ba88e='max'+_0x24e56e;_0x36343a['enableCommand'](_0x5e68e8,()=>{_0x5b762d['model']['change'](_0x4b0bf3=>{const _0x5e9318=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x116740=_0x5e9318[0x0]['findAncestor']('table');let _0x4af3b2;if('removeTableRow'==_0x5e68e8){const _0x26d31c=_0x50d772['getRowIndexes'](_0x5e9318);_0x4af3b2={'startRow':_0x26d31c['first'],'endRow':_0x26d31c['last'],'includeAllSlots':!0x0};}else{const _0x136fe2=_0x50d772['getColumnIndexes'](_0x5e9318);_0x4af3b2={'startColumn':_0x136fe2['first'],'endColumn':_0x136fe2['last'],'includeAllSlots':!0x0};}const _0x1d4a62=_0x50d772['createTableWalker'](_0x116740,_0x4af3b2),_0x2b5b51=Array['from'](_0x1d4a62)['map'](({cell:_0x56d01d})=>_0x56d01d),_0x5a60bb=Ne(_0x2b5b51['filter'](_0x4e8ca2=>_0x4e8ca2['hasAttribute'](_0xf895cd))),_0x3960ee=Ne(_0x2b5b51['filter'](_0x40d1fb=>!_0x40d1fb['hasAttribute'](_0xf895cd)))['map'](_0x22ee49=>_0x4b0bf3['createRangeOn'](_0x22ee49)),_0x25e31b=_0x36343a['markMultiRangeDeletion'](_0x3960ee,_0x511551);if(_0x25e31b&&('tableRow'==_0x25e31b['subType']||'tableColumn'==_0x25e31b['subType'])){const _0x5041e5=this['_getSuggestionCoords'](_0x25e31b);for(const _0x4ab7b3 of _0x5a60bb){const _0xfb9173=_0x4b0bf3['createRangeOn'](_0x4ab7b3),_0x127b11=_0x50d772['getCellLocation'](_0x4ab7b3),_0x81d0de=_0x4ab7b3['getAttribute'](_0xf895cd)-0x1,_0x58c252=_0x5041e5[_0x2c5ea0],_0x22e2e4=_0x5041e5[_0x1ba88e];_0x58c252<=_0x127b11[_0x2508ce]&&_0x127b11[_0x2508ce]+_0x81d0de<=_0x22e2e4&&_0x25e31b['addRange'](_0xfb9173);}}});});}function _0x8452c4(_0x4cffea){const _0x615c19=Array['from'](_0x5a937b['getRanges']())['map'](_0x4e2406=>_0x20b456['fromRange'](_0x4e2406));_0x5b762d['model']['change'](_0x1bf57e=>{const _0x304c82=_0x1bf57e['batch'];_0x4cffea=_0x4cffea['filter'](_0x3b4a71=>'$graveyard'!=_0x3b4a71['root']['rootName']),_0x1bf57e['setSelection'](_0x4cffea),_0x5b762d['commands']['get']('removeTableRow')['refresh'](),_0x5b762d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5b762d['model']['enqueueChange'](()=>{_0x5b762d['model']['enqueueChange'](_0x304c82,_0x391453=>{const _0x5efd11=_0x615c19['filter'](_0x4188ec=>'$graveyard'!=_0x4188ec['root']['rootName']);_0x5efd11['length']>0x0&&_0x391453['setSelection'](_0x5efd11);for(const _0x29372c of _0x615c19)_0x29372c['detach']();});});});}function _0x225a3e(_0x5e3697){_0x5b762d['model']['change'](_0x114eef=>{const _0x553a79=Array['from'](_0x5a937b['getRanges']())['map'](_0x2f55bf=>_0x20b456['fromRange'](_0x2f55bf)),_0x5ccc5a=[];for(const _0xc30dbc of _0x5e3697)for(const _0x3bce1b of _0xc30dbc['getItems']({'shallow':!0x0}))_0x5ccc5a['push'](_0x3bce1b);for(const _0x11a659 of _0x5ccc5a)'$graveyard'!=_0x11a659['root']['rootName']&&(_0x114eef['setSelection'](_0x114eef['createPositionAt'](_0x11a659,0x0)),_0x5b762d['commands']['get']('removeTableColumn')['refresh'](),_0x5b762d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x8a82b6=_0x553a79['filter'](_0x5b7dff=>'$graveyard'!=_0x5b7dff['root']['rootName']);_0x8a82b6['length']>0x0&&_0x114eef['setSelection'](_0x8a82b6);for(const _0x2de009 of _0x553a79)_0x2de009['detach']();});}function _0x33c1a4(_0x377048,_0x594449){return _0x594449['every'](_0x5aee56=>_0x377048['some'](_0x3f1291=>_0x3f1291['end']['isEqual'](_0x5aee56['start'])||_0x5aee56['end']['isEqual'](_0x3f1291['start'])));}function _0x14aa31(_0x493120,_0x3a6a6f){return!_0x493120['some'](_0x1a84eb=>_0x3a6a6f['some'](_0x5319f1=>_0x1a84eb['isIntersecting'](_0x5319f1)))&&_0x493120['some'](_0x5ac9f6=>_0x3a6a6f['some'](_0x5c51f8=>_0x5ac9f6['end']['isTouching'](_0x5c51f8['start'])));}_0x5b762d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d4c0d,_0x3cc62d,_0x574f6a)=>{if(!_0x574f6a['options']['showSuggestionHighlights'])return;const _0x35a994=_0x3cc62d['item'];if(!_0x35a994||!_0x35a994['is']('element','tableCell'))return;const _0x397873=_0x574f6a['mapper']['toViewElement'](_0x35a994);if(_0x397873){const {id:_0xe71cf4,authorId:_0x5d8479}=_0x36343a['_splitMarkerName'](_0x3cc62d['markerName']);_0x117925(_0x397873,_0x574f6a['writer'],(_0xf9cc77,_0x466577,_0x1d4593)=>{_0x1d4593['addClass'](_0x1c6e8b(_0x466577['classes']),_0xf9cc77),_0x1d4593['setAttribute']('data-suggestion-id',_0xe71cf4,_0xf9cc77),_0x1d4593['setAttribute']('data-author-id',_0x5d8479,_0xf9cc77);},(_0x29f46d,_0x2c7927,_0x445a2b)=>{_0x445a2b['removeClass'](_0x1c6e8b(_0x2c7927['classes']),_0x29f46d),_0x445a2b['removeAttribute']('data-suggestion-id',_0x29f46d),_0x445a2b['removeAttribute']('data-author-id',_0x29f46d);});}},{'priority':'highest'}),_0x36343a['descriptionFactory']['registerDescriptionCallback'](_0x278ad4=>{if('insertion'!=_0x278ad4['type']&&'deletion'!=_0x278ad4['type'])return;const _0x25f55b=_0x278ad4['getContainedElement']();if(null!=_0x25f55b&&_0x25f55b['is']('element','table')){if('insertion'==_0x278ad4['type']){const _0x46e9c9=_0x278ad4['getItems']()['filter'](_0x3bc03a=>_0x3bc03a['is']('$textProxy'))['map'](_0x22ed57=>_0x22ed57['data']);if(_0x46e9c9['length'])return{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46e9c9['join']('\x20')+'\x22'))};}if('deletion'==_0x278ad4['type']){const _0x4e7e2b=_0x278ad4['getItems']()['filter'](_0x27afc0=>_0x27afc0['is']('$textProxy'))['map'](_0x2ac062=>_0x2ac062['data']);if(_0x4e7e2b['length'])return{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e7e2b['join']('\x20')+'\x22'))};}}}),_0x36343a['descriptionFactory']['registerDescriptionCallback'](_0x57282a=>{if('tableRow'==_0x57282a['subType']){const _0x2bc6bd=_0x57282a['getItems']()['filter'](_0x7e0c0d=>_0x7e0c0d['is']('$textProxy'))['map'](_0x40b80d=>_0x40b80d['data']),_0x4807b8=this['_getSuggestionCoords'](_0x57282a),_0xf78afb=_0x4807b8['maxRow']-_0x4807b8['minRow']+0x1;if('insertion'==_0x57282a['type'])return _0x2bc6bd['length']?{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf78afb,'\x22'+_0x2bc6bd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW',_0xf78afb))};if('deletion'==_0x57282a['type'])return _0x2bc6bd['length']?{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf78afb,'\x22'+_0x2bc6bd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW',_0xf78afb))};}if('tableColumn'==_0x57282a['subType']){const _0x46b11b=_0x57282a['getItems']()['filter'](_0xda0a5=>_0xda0a5['is']('$textProxy'))['map'](_0x429f90=>_0x429f90['data']),_0x52ed13=this['_getSuggestionCoords'](_0x57282a),_0x419259=_0x52ed13['maxColumn']-_0x52ed13['minColumn']+0x1;if('insertion'==_0x57282a['type'])return _0x46b11b['length']?{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x419259,'\x22'+_0x46b11b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN',_0x419259))};if('deletion'==_0x57282a['type'])return _0x46b11b['length']?{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x419259,'\x22'+_0x46b11b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN',_0x419259))};}}),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x8452c4),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x8452c4),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x225a3e),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x225a3e),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33c1a4),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33c1a4),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14aa31),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14aa31);}['_acceptFormatSuggestionCallbackFactory'](){const _0x6ed1b6=this['editor'],_0x448d5c=_0x6ed1b6['model']['document']['selection'];return(_0x209de8,_0x346751)=>{_0x6ed1b6['model']['change'](_0x4e9345=>{const {commandName:_0x43fff1,commandParams:_0x1cb230}=_0x346751;let _0x26e04e=_0x209de8[0x0]['end']['nodeBefore'];_0x1cb230&&_0x1cb230[0x0]&&!0x1===_0x1cb230[0x0]['forceValue']&&(_0x26e04e=_0x209de8[0x0]['start']['nodeAfter']);const _0x4f170e=_0x4e9345['createRangeIn'](_0x26e04e);if('$graveyard'==_0x4f170e['root']['rootName'])return;const _0x172929=Array['from'](_0x448d5c['getRanges']())['map'](_0x3f0447=>_0x20b456['fromRange'](_0x3f0447));_0x4e9345['setSelection'](_0x4f170e),_0x6ed1b6['commands']['get'](_0x43fff1)['refresh'](),_0x1cb230['push']({'forceDefaultExecution':!0x0}),_0x6ed1b6['execute'](_0x43fff1,..._0x1cb230);const _0x389e2e=_0x172929['filter'](_0x239410=>'$graveyard'!=_0x239410['root']['rootName']);_0x389e2e['length']>0x0&&_0x4e9345['setSelection'](_0x389e2e);for(const _0x369637 of _0x172929)_0x369637['detach']();});};}['_getCoordsForCells'](_0x5f383f){const _0x530358=this['editor']['plugins']['get']('TableUtils');let _0x202196=Number['MAX_SAFE_INTEGER'],_0x114ced=Number['MIN_SAFE_INTEGER'],_0x43d77d=Number['MAX_SAFE_INTEGER'],_0x3fb18e=Number['MIN_SAFE_INTEGER'];for(const _0x5c4946 of _0x5f383f){if('$graveyard'==_0x5c4946['root']['rootName'])continue;const {row:_0x420591,column:_0x151622}=_0x530358['getCellLocation'](_0x5c4946),_0x148253=_0x5c4946['hasAttribute']('rowspan')?_0x5c4946['getAttribute']('rowspan')-0x1:0x0,_0x51c475=_0x5c4946['hasAttribute']('colspan')?_0x5c4946['getAttribute']('colspan')-0x1:0x0;_0x202196=_0x420591<_0x202196?_0x420591:_0x202196,_0x114ced=_0x420591+_0x148253>_0x114ced?_0x420591+_0x148253:_0x114ced,_0x43d77d=_0x151622<_0x43d77d?_0x151622:_0x43d77d,_0x3fb18e=_0x151622+_0x51c475>_0x3fb18e?_0x151622+_0x51c475:_0x3fb18e;}return{'minRow':_0x202196,'maxRow':_0x114ced,'minColumn':_0x43d77d,'maxColumn':_0x3fb18e};}['_setupColumnsRowsFixing'](){const _0x5c0919=this['editor'],_0x58f209=_0x5c0919['plugins']['get']('TrackChangesEditing'),_0x39e323=_0x5c0919['plugins']['get']('TableUtils');_0x5c0919['model']['document']['on']('change:data',()=>{const _0x2b2917=Array['from'](_0x5c0919['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x99bc64,data:_0x369dae}of _0x2b2917){const {group:_0x2a9e7a,id:_0x37ee46,subType:_0x37f8e7}=_0x58f209['_splitMarkerName'](_0x99bc64);if('suggestion'!=_0x2a9e7a)continue;if(null!=_0x369dae['oldRange'])continue;const _0x515ec8=_0x58f209['getSuggestion'](_0x37ee46);this['_tablePostFixingSubtypes']['includes'](_0x37f8e7)&&this['_tableSuggestions']['add'](_0x515ec8);}},{'priority':'low'});const _0x191db5=(_0x3e1a97,_0x2b643c)=>{let _0x4049a2=!0x1;const _0x1c01df=_0x2b643c['createRangeOn'](_0x3e1a97),_0x399801=_0x3e1a97['findAncestor']('table'),_0x35a93c=_0x39e323['getCellLocation'](_0x3e1a97);for(const _0x51d772 of this['_tableSuggestions']){const _0x5108bc=_0x51d772['subType'],_0x25b882=_0x5108bc['startsWith']('tablePaste'),_0x2c64f8=_0x5108bc['substr'](_0x25b882?0xa:0x5),_0x80c21c=_0x2c64f8['toLowerCase'](),_0x5d9680=_0x80c21c['substr'](0x0,0x3)+'span',_0x1ea047='min'+_0x2c64f8,_0x240675='max'+_0x2c64f8;if(!_0x51d772['isInContent'])continue;if(_0x399801!=_0x51d772['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51d772['isIntersectingWithRange'](_0x1c01df))continue;const _0x96a8b2=_0x3e1a97['hasAttribute'](_0x5d9680)?_0x3e1a97['getAttribute'](_0x5d9680)-0x1:0x0,_0x5a2a46=this['_getSuggestionCoords'](_0x51d772),_0x3b465=_0x5a2a46[_0x1ea047],_0x469867=_0x5a2a46[_0x240675];_0x3b465<=_0x35a93c[_0x80c21c]&&_0x35a93c[_0x80c21c]+_0x96a8b2<=_0x469867&&(_0x51d772['addRange'](_0x1c01df),_0x4049a2=!0x0);}return _0x4049a2;};_0x5c0919['model']['document']['registerPostFixer'](_0x341ce3=>{let _0x1a21f5=!0x1;for(const _0x5a537a of _0x5c0919['model']['document']['differ']['getChanges']())if('insert'==_0x5a537a['type']){if('tableRow'==_0x5a537a['name']){for(const _0x367cf8 of _0x5a537a['position']['nodeAfter']['getChildren']())_0x1a21f5=_0x1a21f5||_0x191db5(_0x367cf8,_0x341ce3);}else'tableCell'==_0x5a537a['name']&&(_0x1a21f5=_0x1a21f5||_0x191db5(_0x5a537a['position']['nodeAfter'],_0x341ce3));}return _0x1a21f5;});}['_getSuggestionCoords'](_0x50c3c9){return this['_getCoordsForCells'](_0x50c3c9['getRanges']()['map'](_0xd81a5d=>_0xd81a5d['start']['nodeAfter']));}}function Ne(_0x1ea1bc){return Array['from'](new Set(_0x1ea1bc)['values']());}class _t extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x34dac2=this['editor'],_0x3e90cb=_0x34dac2['model']['document']['selection'],_0x364f34=_0x34dac2['locale'];if(!_0x34dac2['plugins']['has']('TableEditing'))return;const _0x1b85ef=_0x34dac2['plugins']['get']('TrackChangesEditing'),_0x18d226=_0x34dac2['plugins']['get']('TableUtils'),_0x1ed2eb=_0x34dac2['plugins']['get'](At);_0x1ed2eb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b85ef['enableCommand']('mergeTableCells',()=>{const _0x27a398=_0x18d226['getSelectionAffectedTableCells'](_0x34dac2['model']['document']['selection']);_0x34dac2['model']['change'](()=>{_0x1b85ef['markMultiRangeBlockFormat'](_0x27a398,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x34dac2['commands']['get']('mergeTableCells')['on']('execute',(_0x1b95ef,_0x4e0aa9)=>{_0x34dac2['commands']['get']('trackChanges')['value']&&(_0x4e0aa9['length']>0x0&&_0x4e0aa9[_0x4e0aa9['length']-0x1]&&_0x4e0aa9[_0x4e0aa9['length']-0x1]['forceDefaultExecution']||_0x1b85ef['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1b95ef['stop']());},{'priority':'highest'});for(const _0x1a2afb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3e5b8d=_0x34dac2['commands']['get'](_0x1a2afb);_0x1b85ef['enableCommand'](_0x1a2afb,()=>{const _0x3d0836=_0x34dac2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33224d=>_0x33224d['is']('element','tableCell')),_0xbceeb2=_0x3e5b8d['value'];_0x34dac2['model']['change'](()=>{_0x1b85ef['markMultiRangeBlockFormat']([_0x3d0836,_0xbceeb2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x421930 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17f3cb=_0x34dac2['commands']['get'](_0x421930);_0x1b85ef['enableCommand'](_0x421930,()=>{const _0x4f8d06=_0x18d226['getSelectionAffectedTableCells'](_0x34dac2['model']['document']['selection'])[0x0],_0x426fdd=_0x4f8d06['findAncestor']('table'),{column:_0x3cd23b,row:_0x1514cc}=_0x18d226['getCellLocation'](_0x4f8d06);let _0x458407=[];if('horizontally'==_0x17f3cb['direction']){const _0x290081=_0x18d226['createTableWalker'](_0x426fdd,{'startRow':_0x1514cc,'endRow':_0x1514cc,'includeAllSlots':!0x0});_0x458407=Array['from'](_0x290081)['map'](_0x3f35ee=>_0x3f35ee['cell']);}else{const _0x84082d=_0x18d226['createTableWalker'](_0x426fdd,{'column':_0x3cd23b,'includeAllSlots':!0x0});_0x458407=Array['from'](_0x84082d)['map'](_0x4e3969=>_0x4e3969['cell']);}_0x34dac2['model']['change'](_0x2b4f9a=>{_0x1b85ef['markBlockFormat'](_0x2b4f9a['createRangeOn'](_0x4f8d06),{'commandName':_0x421930,'commandParams':[]},_0x458407,_0x421930);});});}_0x1b85ef['descriptionFactory']['registerDescriptionCallback'](_0x44681c=>{if('formatBlock'!=_0x44681c['type']&&'formatInline'!=_0x44681c['type'])return;const {data:_0x19a715}=_0x44681c;return _0x19a715&&'mergeTableCells'==_0x19a715['commandName']?{'type':'format','content':o(_0x364f34,'*Merge\x20cells*')}:void 0x0;}),_0x1b85ef['descriptionFactory']['registerDescriptionCallback'](_0x3d7313=>{if('formatBlock'!=_0x3d7313['type']&&'formatInline'!=_0x3d7313['type'])return;const {data:_0x598ea4}=_0x3d7313;return _0x598ea4?'splitTableCellVertically'==_0x598ea4['commandName']?{'type':'format','content':o(_0x364f34,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x598ea4['commandName']?{'type':'format','content':o(_0x364f34,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x328204=_0x1ed2eb['_acceptFormatSuggestionCallbackFactory']();for(const _0x2736ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2736ff,'accept',_0x328204);for(const _0xa1bb6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa1bb6,'accept',_0x328204);_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x888d1d=>{_0x34dac2['model']['change'](_0x21c55c=>{const _0xbb0322=Array['from'](_0x3e90cb['getRanges']())['map'](_0x3d3f57=>_0x20b456['fromRange'](_0x3d3f57));_0x21c55c['setSelection'](_0x888d1d),_0x34dac2['commands']['get']('mergeTableCells')['refresh'](),_0x34dac2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a8609=_0xbb0322['filter'](_0x288be3=>'$graveyard'!=_0x288be3['root']['rootName']);_0x3a8609['length']>0x0&&_0x21c55c['setSelection'](_0x3a8609);for(const _0x1d5b53 of _0xbb0322)_0x1d5b53['detach']();});});for(const _0x5d59ad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56995c=_0x34dac2['commands']['get'](_0x5d59ad);_0x56995c['on']('set:isEnabled',(_0x246d71,_0x144424,_0x3b0a29)=>{if(_0x3b0a29){const _0x239fb8=_0x34dac2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b6edb=>_0x2b6edb['is']('element','tableCell'));this['_areMergableCells'](_0x56995c['value'],_0x239fb8)||(_0x246d71['return']=!0x1,_0x246d71['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5653cd=this['editor']['commands']['get']('mergeTableCells'),_0x123ac8=this['editor']['plugins']['get']('TableUtils');if(!_0x5653cd['isEnabled'])return!0x1;const _0xbc1793=_0x123ac8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x184c57 of _0xbc1793)for(const _0x17daee of _0xbc1793)if(_0x184c57!=_0x17daee&&!this['_areMergableCells'](_0x184c57,_0x17daee))return!0x1;return!0x0;}['_areMergableCells'](_0x5ee01e,_0x4db436){const _0x198e08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cedbe=this['editor']['model']['createRangeOn'](_0x5ee01e),_0x30d122=this['editor']['model']['createRangeOn'](_0x4db436),_0x4f9d9b=new Set(),_0x56e172=new Set();for(const _0x244415 of _0x198e08['getSuggestions']())if(('insertion'==_0x244415['type']||'deletion'==_0x244415['type']||'mergeTableCells'==_0x244415['subType'])&&_0x244415['isInContent']){for(const _0x374152 of _0x244415['getRanges']())_0x374152['containsRange'](_0x3cedbe,!0x0)&&_0x4f9d9b['add'](_0x244415['type']+':'+_0x244415['author']['id']),_0x374152['containsRange'](_0x30d122,!0x0)&&_0x56e172['add'](_0x244415['type']+':'+_0x244415['author']['id']);}if(_0x4f9d9b['size']!=_0x56e172['size'])return!0x1;for(const _0x2a2d7f of _0x4f9d9b)if(!_0x56e172['has'](_0x2a2d7f))return!0x1;return!0x0;}}class Ct extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x484fd9=this['editor'];if(!_0x484fd9['plugins']['has']('TableEditing'))return;const _0x4dc352=_0x484fd9['locale'],_0x12da2d=_0x484fd9['plugins']['get']('TrackChangesEditing');_0x12da2d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12da2d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12da2d['registerBlockAttribute']('headingRows'),_0x12da2d['registerBlockAttribute']('headingColumns'),_0x12da2d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4dc352,'FORMAT_HEADER_ROW')),_0x12da2d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4dc352,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x562504=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149141=this['editor']['plugins']['get']('TableUtils'),_0x329472=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x10b37e({showActiveMarker:_0x44746a=!0x0,setDataAttribute:_0x468273=!0x0}={}){return(_0x40cb2e,_0x407c48,_0x14f14d)=>{const {type:_0x2201c0,id:_0x106c36}=_0x562504['_splitMarkerName'](_0x407c48['markerName']),_0x59d832=_0x562504['getSuggestion'](_0x106c36),_0x2829dd=_0x59d832['data'];if('formatBlock'!=_0x59d832['type']||!_0x2829dd||'setTableColumnHeader'!=_0x2829dd['commandName'])return;if(_0x407c48['item'])return void _0x40cb2e['stop']();if(!_0x14f14d['consumable']['consume'](_0x407c48['markerRange'],_0x40cb2e['name']))return;const _0x1d8681=_0x407c48['markerRange']['start']['nodeAfter'],_0x2bcb24=_0x407c48['markerRange']['end']['nodeBefore'],_0x133536=_0x1d8681['parent']['parent'],{column:_0x58e96e}=_0x149141['getCellLocation'](_0x1d8681),{column:_0x582379}=_0x149141['getCellLocation'](_0x2bcb24);for(let _0x267255=_0x58e96e;_0x267255<=_0x582379;_0x267255++){const _0xe29ef9=_0x149141['createTableWalker'](_0x133536,{'column':_0x267255,'includeAllSlots':!0x1});for(const _0x3e7c9e of _0xe29ef9){const _0x54f121=_0x3e7c9e['cell'],_0x3ac1e0=_0x14f14d['mapper']['toViewElement'](_0x54f121);_0x14f14d['writer']['addClass']('ck-suggestion-marker-'+_0x2201c0,_0x3ac1e0),_0x468273&&_0x14f14d['writer']['setAttribute']('data-suggestion',_0x106c36,_0x3ac1e0),_0x14f14d['mapper']['bindElementToMarker'](_0x3ac1e0,_0x407c48['markerName']),_0x44746a&&(_0x562504['activeMarkers']['includes'](_0x407c48['markerName'])?_0x14f14d['writer']['addClass']('ck-suggestion-marker--active',_0x3ac1e0):_0x14f14d['writer']['removeClass']('ck-suggestion-marker--active',_0x3ac1e0));}}};}_0x562504['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x329472),_0x562504['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x329472),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10b37e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x348a67,_0x3d157a,_0x3eae7c)=>{_0x3eae7c['options']['showSuggestionHighlights']&&_0x10b37e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x348a67,_0x3d157a,_0x3eae7c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c2264,_0x3562d8,_0x45eb1b)=>{const {type:_0x57de2d,id:_0x2914f9}=_0x562504['_splitMarkerName'](_0x3562d8['markerName']),_0xcb6c9b=_0x562504['getSuggestion'](_0x2914f9),_0x421f64=_0xcb6c9b['data'];if('formatBlock'!=_0xcb6c9b['type']||!_0x421f64||'setTableColumnHeader'!=_0x421f64['commandName'])return;const _0x28c05d=_0x45eb1b['mapper']['markerNameToElements'](_0x3562d8['markerName']);if(_0x28c05d){for(const _0x3b83ef of _0x28c05d)_0x45eb1b['writer']['removeClass']('ck-suggestion-marker-'+_0x57de2d,_0x3b83ef),_0x45eb1b['writer']['removeClass']('ck-suggestion-marker--active',_0x3b83ef),_0x45eb1b['writer']['removeAttribute']('data-suggestion',_0x3b83ef),_0x45eb1b['mapper']['unbindElementFromMarkerName'](_0x3b83ef,_0x3562d8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4cbe=this['editor'],_0x367f93=_0x3a4cbe['locale'];function _0x2a99a4(_0x273335){return{'type':'format','content':o(_0x367f93,'*Format:*\x20%0',_0x273335)};}_0x3a4cbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a438=>{if('formatBlock'!=_0x12a438['type'])return;const {data:_0x45e55e}=_0x12a438;if(_0x45e55e){if('setTableRowHeader'==_0x45e55e['commandName']){const _0x4f21d1=_0x45e55e['commandParams'][0x0]['forceValue'];return _0x2a99a4(o(_0x367f93,_0x4f21d1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x45e55e['commandName']){const _0x29ea3e=_0x45e55e['commandParams'][0x0]['forceValue'];return _0x2a99a4(o(_0x367f93,_0x29ea3e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xccd55c{['afterInit'](){const _0x5b4139=this['editor'],_0x3b1e7a=_0x5b4139['locale'],_0x2d563b=_0x5b4139['plugins']['get']('TrackChangesEditing');function _0x281be7(_0x4c6f23){return{'type':'format','content':''+o(_0x3b1e7a,'*Set\x20table\x20type:*\x20%0',_0x4c6f23)};}_0x5b4139['plugins']['has']('TableLayout')&&(_0x2d563b['enableCommand']('insertTableLayout'),_0x2d563b['enableDefaultAttributesIntegration']('tableType'),_0x2d563b['registerBlockAttribute']('tableType'),_0x2d563b['descriptionFactory']['registerElementLabel'](_0x6225ca=>_0x6225ca['is']('element','table')&&'layout'===_0x6225ca['getAttribute']('tableType'),_0x1f46d2=>o(_0x3b1e7a,'ELEMENT_LAYOUT_TABLE',_0x1f46d2)),_0x2d563b['descriptionFactory']['registerDescriptionCallback'](_0x23e9e6=>{const {data:_0x482ae8}=_0x23e9e6;if(_0x482ae8&&'tableType'==_0x482ae8['key'])switch(_0x482ae8['newValue']){case'layout':return _0x281be7(o(_0x3b1e7a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x281be7(o(_0x3b1e7a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x18186d=>[_0x18186d,null]));class Nt extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x26ea85=this['editor'];if(!_0x26ea85['plugins']['has']('TableClipboard'))return;const _0x3ed86c=_0x26ea85['plugins']['get']('TrackChangesEditing'),_0x2000f9=_0x26ea85['plugins']['get']('TableUtils'),_0x1554e2=_0x26ea85['plugins']['get'](At),_0x1cbab3=_0x26ea85['plugins']['get']('TableClipboard'),_0x184b43=_0x26ea85['plugins']['get']('TableSelection'),_0x3f35de=_0x26ea85['plugins']['get'](_0x6b813f);_0x1554e2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x26ea85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x26ea85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4f9f11=null,_0x3935cd=!0x1;_0x3f35de['on']('contentInsertion',(_0x580c28,_0x8283f4)=>{_0x3935cd='paste'===_0x8283f4['method'];}),_0x26ea85['model']['on']('insertContent',(_0x100aee,_0x1495a1)=>{if(!_0x3935cd&&null===_0x184b43['getSelectedTableCells']())return;const [_0x20f5dd,_0x408c4b]=_0x1495a1,_0x17f34f=_0x1495a1[_0x1495a1['length']-0x1];_0x17f34f&&_0x17f34f['forceDefaultExecution']||_0x3ed86c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a9bcf,_0x57f5c6,_0x3d537a,_0x59a976,_0x15ae51){if(_0x57f5c6&&!_0x57f5c6['is']('documentSelection'))return!0x1;const _0x363a5e=_0x15ae51['getTableIfOnlyTableInContent'](_0x1a9bcf,_0x3d537a);if(!_0x363a5e||!Ue(_0x363a5e,void 0x0,_0x59a976))return!0x1;const _0x42f957=_0x59a976['getSelectionAffectedTableCells'](_0x3d537a['document']['selection']);if(!_0x42f957['length'])return!0x1;const _0x2becce=_0x42f957[0x0]['findAncestor']('table'),_0x2ecb63=_0x59a976['getRowIndexes'](_0x42f957),_0x4804a3=_0x59a976['getColumnIndexes'](_0x42f957),_0x2f7e84={'startRow':_0x2ecb63['first'],'endRow':_0x2ecb63['last'],'startColumn':_0x4804a3['first'],'endColumn':_0x4804a3['last']};return 0x1==_0x42f957['length']&&(_0x2f7e84['endRow']+=_0x59a976['getRows'](_0x363a5e)-0x1,_0x2f7e84['endColumn']+=_0x59a976['getColumns'](_0x363a5e)-0x1),Ue(_0x2becce,_0x2f7e84,_0x59a976);}(_0x20f5dd,_0x408c4b,_0x26ea85['model'],_0x2000f9,_0x1cbab3)&&(_0x100aee['stop'](),_0x4f9f11={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x26ea85['model']['change'](()=>{_0x26ea85['model']['insertContent'](_0x1495a1[0x0],_0x1495a1[0x1],_0x1495a1[0x2],{'forceDefaultExecution':!0x0});const _0x518f60=_0x427844(),{rowInsertionRanges:_0xcf67cb,columnInsertionRanges:_0xb4a573,insertionRanges:_0x2fab7f,deletionRanges:_0x5b80c4,cells:_0x5e346b}=_0x4f9f11;_0xcf67cb['length']&&_0x3ed86c['markMultiRangeInsertion'](_0xcf67cb,'tablePasteRow',{'tablePasteChainId':_0x518f60}),_0xb4a573['length']&&_0x3ed86c['markMultiRangeInsertion'](_0xb4a573,'tablePasteColumn',{'tablePasteChainId':_0x518f60}),_0x2fab7f['length']&&(_0x3ed86c['markMultiRangeInsertion'](_0x2fab7f,'tablePaste',{'tablePasteChainId':_0x518f60,'skipNestingCheck':!0x0}),_0x2fab7f['forEach'](_0x19a4ff=>_0x19a4ff['detach']?.())),_0x5b80c4['length']&&(_0x3ed86c['markMultiRangeDeletion'](_0x5b80c4,'tablePaste',{'tablePasteChainId':_0x518f60,'skipNestingCheck':!0x0}),_0x5b80c4['forEach'](_0x35e3cd=>_0x35e3cd['detach']?.()));const _0x4035a9=_0x3ed86c['markMultiRangeBlockFormat'](_0x5e346b['map'](({element:_0x18d3f4})=>_0x18d3f4),{'formatGroupId':_0x427844()},[],'tablePasteCell',{'tablePasteChainId':_0x518f60});if(_0x4035a9){const _0x4dc100=_0x4035a9['getMarkers'](),_0x3943aa=[];for(const {element:_0x59c655,attributes:_0x20b3eb}of _0x5e346b){if(!_0x20b3eb)continue;const _0xd8c73b=_0x26ea85['model']['createRangeOn'](_0x59c655),_0x4706e0=_0x4dc100['find'](_0x16e87f=>_0x16e87f['getRange']()['isEqual'](_0xd8c73b));_0x4706e0&&_0x3943aa['push']([_0x4706e0['name'],_0x20b3eb]);}_0x3943aa['length']&&_0x4035a9['setAttribute']('markerAttributes',Object['fromEntries'](_0x3943aa));}_0x4f9f11=null;}));},{'priority':_0x850491['high']+0xa}),_0x3f35de['on']('contentInsertion',()=>{_0x3935cd=!0x1;},{'priority':'lowest'}),_0x26ea85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x238aaf,_0x5ceba4)=>{const [_0x4f62ab,_0x47966a,,_0x2a5960]=_0x5ceba4;if(!_0x4f9f11)return;_0x238aaf['stop']();const _0x503be6=_0x4f62ab['cell'],_0x16b615=_0x47966a,_0x33c8d7=Oe(_0x503be6),_0x3e5eb1=Oe(_0x16b615);_0x238aaf['return']=_0x503be6;let _0xb2f0d9=null,_0x2299eb=null;if(_0x3e5eb1||_0x33c8d7){if(_0x33c8d7&&!_0x3e5eb1){_0x2a5960['remove'](_0x503be6['getChild'](0x0));for(const _0x33a0f0 of Array['from'](_0x16b615['getChildren']()))_0x2a5960['insert'](_0x33a0f0,_0x503be6,'end');const _0x1494fe=_0x4f9f11['rowInsertionIndexes']['includes'](_0x4f62ab['row']),_0x2a4c9e=_0x4f9f11['columnInsertionIndexes']['includes'](_0x4f62ab['column']);_0x1494fe||_0x2a4c9e||(_0xb2f0d9=_0x20b456['fromRange'](_0x2a5960['createRangeIn'](_0x503be6)));}else _0x3e5eb1&&!_0x33c8d7&&(_0x2299eb=_0x2a5960['createRangeIn'](_0x503be6));}else{const _0x7509b5=_0x2a5960['createElement']('tableCellSuggestion'),_0x44e03a=_0x2a5960['createElement']('tableCellSuggestion');_0x2a5960['wrap'](_0x2a5960['createRangeIn'](_0x503be6),_0x44e03a),_0x2a5960['insert'](_0x7509b5,_0x503be6,0x0);for(const _0x6ceda6 of Array['from'](_0x16b615['getChildren']()))_0x2a5960['insert'](_0x6ceda6,_0x7509b5,'end');_0xb2f0d9=_0x20b456['fromRange'](_0x2a5960['createRangeOn'](_0x7509b5)),_0x2299eb=_0x20b456['fromRange'](_0x2a5960['createRangeOn'](_0x44e03a));}const _0x1fd80a=Array['from'](_0x16b615['getAttributes']())['filter'](([_0x40657f])=>Be['includes'](_0x40657f));_0x4f9f11['cells']['push']({'element':_0x503be6,'attributes':_0x1fd80a['length']?Object['fromEntries'](_0x1fd80a):null}),_0xb2f0d9&&_0x4f9f11['insertionRanges']['push'](_0xb2f0d9),_0x2299eb&&_0x4f9f11['deletionRanges']['push'](_0x2299eb);},{'priority':'high'}),_0x2000f9['on']('insertColumns',(_0x37afeb,_0x28d7d4)=>{const [_0x426ea6,_0x2cc6cf={}]=_0x28d7d4;if(!_0x4f9f11)return;const _0x1c81b7=_0x2cc6cf['at']||0x0,_0x12ee8f=_0x2cc6cf['columns']||0x1;_0x4f9f11['columnInsertionIndexes']=new Array(_0x12ee8f)['fill'](_0x1c81b7)['map']((_0x3aa0e7,_0x1e70aa)=>_0x3aa0e7+_0x1e70aa);for(const {cell:_0x179357}of _0x2000f9['createTableWalker'](_0x426ea6,{'startColumn':_0x1c81b7,'endColumn':_0x1c81b7+_0x12ee8f-0x1}))_0x4f9f11['columnInsertionRanges']['push'](_0x26ea85['model']['createRangeOn'](_0x179357));},{'priority':'low'}),_0x2000f9['on']('insertRows',(_0x4c9422,_0x62847e)=>{const [_0x4c7cc8,_0x4e5890={}]=_0x62847e;if(!_0x4f9f11)return;const _0x3ae346=_0x4e5890['at']||0x0,_0x3f67ad=_0x4e5890['rows']||0x1;_0x4f9f11['rowInsertionIndexes']=new Array(_0x3f67ad)['fill'](_0x3ae346)['map']((_0x1f1499,_0x56b47d)=>_0x1f1499+_0x56b47d);for(const {cell:_0x33491f}of _0x2000f9['createTableWalker'](_0x4c7cc8,{'startRow':_0x3ae346,'endRow':_0x3ae346+_0x3f67ad-0x1}))_0x4f9f11['rowInsertionRanges']['push'](_0x26ea85['model']['createRangeOn'](_0x33491f));},{'priority':'low'}),_0x3ed86c['descriptionFactory']['registerDescriptionCallback'](_0xd511a8=>{if(_0xd511a8['subType']&&_0xd511a8['subType']['startsWith']('tablePaste'))return _0xd511a8['previous']?{}:{'type':'insertion','content':o(_0x26ea85['locale'],'*Replace\x20table\x20cells*')};});const _0x4036e2=()=>!0x1;for(const _0x32cd62 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion',_0x32cd62,'join',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('deletion',_0x32cd62,'join',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32cd62,'join',_0x4036e2);_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13e10b,_0x414446,_0x44ceb4)=>{const _0x326ada=_0x13e10b['map'](_0x3783d0=>_0x3783d0['getContainedElement']())['filter'](_0x298e9b=>_0x298e9b),_0x3cb4aa=new Map(_0x326ada['map'](_0x485330=>[_0x485330,null]));if(_0x4f9f11){for(const {element:_0x4808b8,attributes:_0x208a86}of _0x4f9f11['cells'])_0x208a86&&_0x3cb4aa['set'](_0x4808b8,_0x208a86);}else{if(_0x44ceb4&&_0x44ceb4['markerAttributes'])for(const [_0x560fe5,_0xa89c72]of Object['entries'](_0x44ceb4['markerAttributes'])){const _0x13b2ea=_0x26ea85['model']['markers']['get'](_0x560fe5),_0x813cdf=_0x13b2ea?_0x13b2ea['getRange']()['getContainedElement']():null;_0x813cdf&&_0x3cb4aa['set'](_0x813cdf,_0xa89c72);}}_0x26ea85['model']['change'](_0xed16a6=>{for(const [_0x220cc9,_0x4e2066]of _0x3cb4aa)_0xed16a6['setAttributes']({...xe,..._0x4e2066},_0x220cc9);});});const _0x3769ab=(_0x4ff79f,_0x484e9a)=>{_0x3ed86c['_suggestionFactory']['registerCustomCallback'](_0x4ff79f,'tablePaste',_0x484e9a,(_0x69441d,_0x57102e,_0x4960bd)=>{_0x26ea85['model']['change'](_0x26c2eb=>{const _0x3950f8=[];for(const _0x414bb5 of _0x69441d){const _0x233e59=_0x414bb5['start']['nodeAfter'];_0x233e59['is']('element','tableCellSuggestion')&&_0x3950f8['push'](_0x233e59);}_0x3ed86c['_suggestionFactory']['getSuggestionCallback'](_0x4ff79f,null,_0x484e9a)(_0x69441d,_0x57102e,_0x4960bd);for(const _0x4fc71c of _0x3950f8)'$graveyard'!=_0x4fc71c['root']['rootName']&&_0x26c2eb['unwrap'](_0x4fc71c);});});};_0x3769ab('insertion','accept'),_0x3769ab('insertion','discard'),_0x3769ab('deletion','accept'),_0x3769ab('deletion','discard'),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4ad176=>{const _0x27dcc1=_0x4ad176['map'](_0x2679cd=>_0x2679cd['getContainedElement']()),_0x3f7788=_0x27dcc1[0x0]['findAncestor']('table'),{minRow:_0x5eb9b4,maxRow:_0x1ae917}=_0x1554e2['_getCoordsForCells'](_0x27dcc1);_0x2000f9['removeRows'](_0x3f7788,{'at':_0x5eb9b4,'rows':_0x1ae917-_0x5eb9b4+0x1});}),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x408099=>{const _0x424d1b=_0x408099['map'](_0x39d4ec=>_0x39d4ec['getContainedElement']()),_0x5f9edc=_0x424d1b[0x0]['findAncestor']('table'),{minColumn:_0x4f8e44,maxColumn:_0x306bc7}=_0x1554e2['_getCoordsForCells'](_0x424d1b);_0x2000f9['removeColumns'](_0x5f9edc,{'at':_0x4f8e44,'columns':_0x306bc7-_0x4f8e44+0x1});});const _0x4df38c=(_0x41b6ab,_0x39123a)=>{if(!_0x39123a['subType']||!_0x39123a['subType']['startsWith']('tablePaste'))return;const _0x5af8f0=_0x39123a['attributes']['tablePasteChainId'],_0x116d40=_0x3ed86c['getSuggestions']()['filter'](_0x3b1217=>_0x3b1217['isInContent']&&_0x3b1217['attributes']&&_0x3b1217['attributes']['tablePasteChainId']==_0x5af8f0);_0x116d40['length']&&_0x39123a['getAllAdjacentSuggestions']()['length']!=_0x116d40['length']&&_0x116d40['reduce']((_0x365ef2,_0x4cb34a)=>(_0x365ef2['next']=_0x4cb34a,_0x4cb34a['previous']=_0x365ef2,_0x4cb34a));};function _0x3d1b7d(_0x3ec34e,_0x40955e=!0x0){const {id:_0x41d05a,authorId:_0x82f522}=_0x3ed86c['_splitMarkerName'](_0x3ec34e['markerName']),_0x26af44=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3790e4=_0x3ed86c['activeMarkers']['includes'](_0x3ec34e['markerName']);return _0x3790e4&&_0x26af44['push']('ck-suggestion-marker--active'),{'classes':_0x26af44,'attributes':{'data-suggestion':_0x41d05a,'data-author-id':_0x82f522},'priority':_0x3790e4&&_0x40955e?0xbc2:0xbb8};}_0x3ed86c['on']('suggestionLoaded',_0x4df38c,{'priority':'high'}),_0x3ed86c['on']('suggestionUnloaded',_0x4df38c,{'priority':'high'}),_0x26ea85['model']['document']['registerPostFixer'](()=>{let _0x33de2e=!0x1;const _0x15be7a=Array['from'](_0x26ea85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bd159,data:_0x50d014}of _0x15be7a){const {group:_0x5a881e,type:_0x3cb6a8,id:_0xfb589f}=_0x3ed86c['_splitMarkerName'](_0x2bd159);if('suggestion'!=_0x5a881e||'deletion'!=_0x3cb6a8||_0x50d014['oldRange'])continue;if(!_0x3ed86c['hasSuggestion'](_0xfb589f))continue;const _0x588665=_0x3ed86c['getSuggestion'](_0xfb589f)['getRanges'](),_0x232843=_0x26ea85['plugins']['get']('Users')['me'];for(const _0x38569c of _0x3ed86c['getSuggestions']()){if(!_0x38569c['isInContent']||_0x38569c['author']!=_0x232843)continue;if('formatBlock'!=_0x38569c['type']||'tablePasteCell'!=_0x38569c['subType'])continue;if(_0x38569c['getRanges']()['every'](_0x553080=>_0x588665['some'](_0xd6ba98=>_0xd6ba98['containsRange'](_0x553080,!0x0)))){for(const _0x2b64f9 of _0x38569c['getAllAdjacentSuggestions']())_0x2b64f9['isInContent']&&(_0x2b64f9['discard'](),_0x33de2e=!0x0);}}}return _0x33de2e;}),_0x26ea85['model']['document']['registerPostFixer'](_0x1d75ea=>{const _0x41ef6c=_0x26ea85['commands']['get']('redo');if(!_0x41ef6c||!_0x41ef6c['_createdBatches']['has'](_0x1d75ea['batch']))return!0x1;let _0x3fcb4d=!0x1;const _0x4e0958=_0x26ea85['plugins']['get']('Users')['me'],_0x4fbffa=_0x26ea85['model']['document']['differ']['getChanges'](),_0x26a54a=Array['from'](_0x26ea85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x533df9,data:_0x4aa73c})=>{const {group:_0x42474b,subType:_0x23f50d,authorId:_0x4edb49}=_0x3ed86c['_splitMarkerName'](_0x533df9);return'suggestion'==_0x42474b&&'tablePaste'==_0x23f50d&&_0x4edb49==_0x4e0958['id']&&!_0x4aa73c['oldRange'];});for(const _0x58dce5 of _0x4fbffa){if('insert'!=_0x58dce5['type']||'tableCellSuggestion'!=_0x58dce5['name']||0x1!=_0x58dce5['length'])continue;const _0x304fd0=_0x1d75ea['createRange'](_0x58dce5['position'],_0x58dce5['position']['getShiftedBy'](0x1));if(!_0x26a54a['find'](({data:_0x2f61ad})=>_0x2f61ad['newRange']['isEqual'](_0x304fd0))){for(const {name:_0x3c342e,data:_0x4c5374}of _0x26a54a)if(_0x304fd0['containsRange'](_0x4c5374['newRange'])){_0x1d75ea['updateMarker'](_0x3c342e,{'range':_0x304fd0}),_0x3fcb4d=!0x0;break;}}}return _0x3fcb4d;}),_0x26ea85['model']['document']['registerPostFixer'](_0x995b01=>{let _0x30de04=!0x1;const _0x292d76=_0x26ea85['plugins']['get']('Users')['me'],_0x2c95c6=_0x3ed86c['getSuggestions']()['filter'](_0xd29c06=>_0xd29c06['isInContent']&&_0xd29c06['author']==_0x292d76),_0x4a866e=new Set(),_0x328cb6=new Set();for(const _0x34c999 of _0x2c95c6)if('tablePaste'==_0x34c999['subType'])for(const _0x5b4ef9 of _0x34c999['getMarkers']()){const _0x2a9986=_0x5b4ef9['getRange']()['getContainedElement']();if(_0x2a9986){if(_0x2a9986['is']('element','tableCellSuggestion')&&Oe(_0x2a9986)){_0x34c999['removeMarker'](_0x5b4ef9['name']),_0x4a866e['add'](_0x2a9986),_0x30de04=!0x0;const _0x5b3f6c=_0x2a9986['nextSibling'],_0x176c3d=_0x2a9986['previousSibling'],_0x16bd10=_0x5b3f6c&&_0x5b3f6c['is']('element','tableCellSuggestion'),_0xdb1940=_0x176c3d&&_0x176c3d['is']('element','tableCellSuggestion');_0x16bd10&&!_0x4a866e['has'](_0x5b3f6c)&&_0x328cb6['add'](_0x5b3f6c),_0xdb1940&&!_0x4a866e['has'](_0x176c3d)&&_0x328cb6['add'](_0x176c3d);}else _0x2a9986['is']('element','paragraph')&&_0x2a9986['isEmpty']&&(_0x34c999['removeMarker'](_0x5b4ef9['name']),_0x30de04=!0x0);}}else{if('tablePasteCell'==_0x34c999['subType']){if(!_0x34c999['attributes']||!_0x34c999['attributes']['tablePasteChainId'])continue;const _0x1577a1=_0x34c999['attributes']['markerAttributes'];if(_0x1577a1&&Object['keys'](_0x1577a1)['length'])continue;const _0x1c4f99=_0x34c999['attributes']['tablePasteChainId'];let _0x5432d9=!0x0,_0x146137=!0x0;for(const _0x12a2a7 of _0x2c95c6)if(_0x12a2a7['subType']&&_0x12a2a7['subType']['startsWith']('tablePaste')){if(!_0x12a2a7['attributes']['tablePasteChainId']){_0x146137=!0x1;break;}if(_0x12a2a7['id']!=_0x34c999['id']&&_0x12a2a7['attributes']['tablePasteChainId']==_0x1c4f99){_0x5432d9=!0x1;break;}}_0x146137&&_0x5432d9&&(_0x34c999['removeMarkers'](),_0x30de04=!0x0);}}for(const _0x23ea2e of _0x4a866e)_0x995b01['remove'](_0x23ea2e);for(const _0x46a9aa of _0x328cb6)_0x995b01['unwrap'](_0x46a9aa);return _0x30de04;}),_0x26ea85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x134c92=>_0x3d1b7d(_0x134c92),'converterPriority':'high'}),_0x26ea85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x183c25,_0x26a273)=>_0x26a273['options']['showSuggestionHighlights']?_0x3d1b7d(_0x183c25,!0x1):null,'converterPriority':'high'});const _0xea5ab0=_0x26ea85['editing']['view'];this['listenTo'](_0xea5ab0['document'],'clipboardOutput',(_0x452942,_0x1234ed)=>{const _0x578be0=[];for(const _0x21e699 of _0xea5ab0['createRangeIn'](_0x1234ed['content'])['getItems']())_0x21e699['is']('element','suggestion-td')&&_0x578be0['push'](_0x21e699);_0xea5ab0['change'](_0xb2622a=>{for(const _0x24b21c of _0x578be0)_0xb2622a['move'](_0xb2622a['createRangeIn'](_0x24b21c),_0xb2622a['createPositionBefore'](_0x24b21c)),_0xb2622a['remove'](_0x24b21c);});});}}function Oe(_0x444aa0){if(_0x444aa0['isEmpty'])return!0x0;const _0x1a307f=_0x444aa0['getChild'](0x0);return _0x1a307f['is']('element','paragraph')&&_0x1a307f['isEmpty'];}function Ue(_0xc9d39d,_0x257c1a={},_0x137b4e){for(const {isAnchor:_0x8575ac,cellHeight:_0x5b89c0,cellWidth:_0x19c309}of _0x137b4e['createTableWalker'](_0xc9d39d,{'includeAllSlots':!0x0,..._0x257c1a}))if(!_0x8575ac||0x1!=_0x5b89c0||0x1!=_0x19c309)return!0x1;return!0x0;}class Dt extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d1e41=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d1e41['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1d1e41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d1e41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d1e41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1d1e41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1d1e41['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xda1d68,_0x127af3){const _0x5502ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4850a1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8e208=_0x127af3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x12e229=_0x4850a1['getColumnGroupElement'](_0x8e208);let _0x5bc6f4=_0x12e229?_0x4850a1['getTableColumnsWidths'](_0x12e229):null,_0x414e92=_0x8e208['getAttribute']('tableWidth')||null;const _0x2d6b01=_0x127af3['tableWidth']||_0x414e92,_0x54fa0f=_0x127af3['columnWidths']||_0x5bc6f4,_0x56962d=this['editor']['plugins']['get']('Users')['me'];for(const _0x17bf47 of _0x5502ca['getSuggestions']()){const _0xa8013a=_0x17bf47['getContainedElement']();if('resizeTable'===_0x17bf47['subType']&&_0xa8013a===_0x8e208){_0x17bf47['author']!==_0x56962d&&_0x17bf47['discard']();const _0x364696=_0x17bf47['data']['commandParams'];_0x414e92=_0x364696[0x0]['tableWidth'],_0x5bc6f4=_0x364696[0x0]['columnWidths'];break;}}_0xda1d68({'table':_0x8e208,'tableWidth':_0x2d6b01,'columnWidths':_0x54fa0f}),_0x5502ca['markBlockFormat'](_0x8e208,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x414e92,'columnWidths':_0x5bc6f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1d22cc){if('formatBlock'!=_0x1d22cc['type']&&'formatInline'!=_0x1d22cc['type'])return;const {data:_0x5dee17}=_0x1d22cc;if(_0x5dee17&&'resizeTable'===_0x5dee17['formatGroupId']){const _0xe6f469='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xe6f469)};}}}class Mt extends _0xccd55c{['afterInit'](){const _0x3e0b3e=this['editor'];_0x3e0b3e['plugins']['has']('Template')&&_0x3e0b3e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xccd55c{['afterInit'](){const _0x3afcb0=this['editor'];if(!_0x3afcb0['commands']['get']('insertTableOfContents'))return;_0x3afcb0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5855cd=_0x3afcb0['plugins']['get']('TrackChangesEditing'),_0xfcd76a=_0x3afcb0['locale'];_0x5855cd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a4f0c=>o(_0xfcd76a,'ELEMENT_TABLE_OF_CONTENTS',_0x1a4f0c));}}class Bt extends _0xccd55c{['afterInit'](){const _0x393697=this['editor'];if(!_0x393697['plugins']['has']('Title'))return;const _0x55665c=_0x393697['plugins']['get']('TrackChangesEditing');_0x55665c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x393697['locale'],'ELEMENT_TITLE')),_0x393697['model']['document']['registerPostFixer'](_0x5190f5=>{let _0x342314=!0x1;const _0xccd604=Array['from'](_0x393697['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x428700,data:_0x270add}of _0xccd604){const {group:_0x23eb95}=_0x55665c['_splitMarkerName'](_0x428700);if('suggestion'!==_0x23eb95||!_0x270add['newRange'])continue;const _0x3997de=_0x270add['newRange'],_0x382d99=_0x3997de['end']['nodeBefore'];if(!_0x382d99||!_0x382d99['is']('element','title-content'))continue;if(!_0x3997de['start']['isTouching'](_0x3997de['end']))continue;const _0x382daa=_0x393697['model']['schema']['getNearestSelectionRange'](_0x3997de['end'],'forward');if(_0x382daa&&_0x382daa['isCollapsed']){const _0x2ffa5a=_0x5190f5['createRange'](_0x3997de['start'],_0x382daa['start']);_0x2ffa5a['isEqual'](_0x3997de)||(_0x5190f5['updateMarker'](_0x428700,{'range':_0x2ffa5a}),_0x342314=!0x0);}_0x342314||(_0x5190f5['removeMarker'](_0x428700),_0x342314=!0x0);}return _0x342314;});}}class Tt extends _0xccd55c{['afterInit'](){const _0x48526d=this['editor'],_0x5bd51a=_0x48526d['plugins']['get']('TrackChangesEditing');_0x48526d['plugins']['has']('Uploadcare')&&(_0x5bd51a['enableCommand']('uploadcare'),_0x48526d['plugins']['has']('UploadcareImageEdit')&&(_0x5bd51a['enableCommand']('uploadcareImageEdit'),_0x5bd51a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5bd51a['registerBlockAttribute']('uploadcareImageId'),_0x5bd51a['descriptionFactory']['registerDescriptionCallback'](_0xc9f70a=>{if('attribute'!=_0xc9f70a['type'])return;const {data:_0x10037f}=_0xc9f70a;return _0x10037f&&'uploadcareImageId'==_0x10037f['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xccd55c{['afterInit'](){const _0x58912f=this['editor'],_0x59ca0e=_0x58912f['plugins']['get']('TrackChangesEditing');_0x58912f['plugins']['has']('UndoEditing')&&(_0x59ca0e['enableCommand']('undo'),_0x59ca0e['enableCommand']('redo'));}}class Ot extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x2a8c8c=this['editor'];if(!_0x2a8c8c['plugins']['has']('TableCaptionEditing'))return;_0x2a8c8c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xccd55c{['tableProperties'];['tableCellProperties'];constructor(_0x56e5aa){super(_0x56e5aa),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 _0x1ddac3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x528528 of this['tableProperties'])_0x1ddac3['enableCommand'](_0x528528,(_0x2834ce,_0x512d35)=>{const _0x1d5f45=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x528528,[_0x1d5f45],this['tableProperties'],'tableProperties',_0x2834ce,_0x512d35);});_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ddac3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cc8d0,_0x3bfc61)=>this['handleDiscardAction'](this['tableProperties'],_0x2cc8d0,_0x3bfc61)),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5125c3 of this['tableCellProperties'])_0x1ddac3['enableCommand'](_0x5125c3,(_0xa51bdf,_0x4e9f56)=>{const _0xdb6f29=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5125c3,_0xdb6f29,this['tableCellProperties'],'tableCellProperties',_0xa51bdf,_0x4e9f56);});_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ddac3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5087de,_0x2ea797)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5087de,_0x2ea797)),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ddac3['descriptionFactory']['registerDescriptionCallback'](_0x1169dc=>this['handleSuggestionDescription'](_0x1169dc)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1f2bc0,_0x380bb2,_0x16a2bf,_0x3a1d92,_0xa02314,_0x27bc01){const _0x55c234=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x27bc01['batch'],()=>{for(const _0x14883f of _0x380bb2){if(this['_getSuggestion'](_0x14883f,_0x3a1d92))_0xa02314(_0x27bc01);else{const _0x4afb11={};for(const _0x390b81 of _0x16a2bf){const _0x533de8=_0x14883f['getAttribute'](_0x390b81);void 0x0!==_0x533de8&&(_0x4afb11[_0x390b81]=_0x533de8);}_0xa02314(_0x27bc01),_0x55c234['markBlockFormat'](_0x14883f,{'commandParams':[_0x4afb11]},[],_0x3a1d92);}}});}['handleDiscardAction'](_0x2840c5,_0x1c83bd,_0x35e433){const _0x5945dd=_0x1c83bd[0x0]['start']['nodeAfter'],_0x505d5b=_0x35e433['commandParams'][0x0];this['editor']['model']['change'](_0x18ab1b=>{for(const _0xf22e5 of _0x2840c5)void 0x0!==_0x505d5b[_0xf22e5]?_0x18ab1b['setAttribute'](_0xf22e5,_0x505d5b[_0xf22e5],_0x5945dd):_0x18ab1b['removeAttribute'](_0xf22e5,_0x5945dd);});}['handleSuggestionDescription'](_0x2390a3){if(_0x2390a3['data'])switch(_0x2390a3['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'](_0x595275,_0x2a5298){const _0x348a87=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c2732 of _0x348a87['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ebe35=_0x3c2732['getContainedElement']();if(_0x3c2732['subType']===_0x2a5298&&_0x1ebe35===_0x595275)return _0x3c2732;}return null;}['_registerTablePropertiesAttributes'](){const _0x4d2954=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37d50a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x48d4f9 of _0x37d50a){const _0x323cc9=_0x48d4f9['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4d2954['registerBlockAttribute'](_0x48d4f9),_0x4d2954['descriptionFactory']['registerAttributeLabel'](_0x48d4f9,o(this['editor']['locale'],'FORMAT_'+_0x323cc9));}}}class Rt extends _0xccd55c{['afterInit'](){const _0x2d4d0c=this['editor'];if(!_0x2d4d0c['plugins']['has']('LineHeight'))return;const _0x405f9b=_0x2d4d0c['plugins']['get']('TrackChangesEditing'),_0x218b52=_0x2d4d0c['locale'];_0x405f9b['enableDefaultAttributesIntegration']('lineHeight'),_0x405f9b['registerBlockAttribute']('lineHeight'),_0x405f9b['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x218b52,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xccd55c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1c60de,_0x3bc0b2,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4881d9){super(_0x4881d9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x54f101,_0x4217c8,_0x3c25f2,_0x2c616d)=>{this['_model']['change'](()=>{for(const _0x1a8c47 of[..._0x2c616d,..._0x3c25f2])this['_model']['markers']['has'](_0x1a8c47)&&_0x4881d9['editing']['reconvertMarker'](_0x1a8c47);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4881d9['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(),_0x4881d9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4881d9['config']['get']('trackChanges.trackFormatChanges'),_0x4881d9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4881d9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4881d9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xa46894=this['editor'],_0x2d1068=(_0x4cbb20,_0x294d56)=>{if('attribute'!=_0x4cbb20)return'ck-suggestion-marker-'+_0x4cbb20;const _0x298a0c=_0x294d56['split']('|')[0x0];return this['_isBlockAttribute'](_0x298a0c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xa46894['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1194a4=>{const {id:_0x3a7a38,authorId:_0x43faf6,type:_0x449026,subType:_0x167cbb}=this['_splitMarkerName'](_0x1194a4['markerName']),_0x1f467b=['ck-suggestion-marker',_0x2d1068(_0x449026,_0x167cbb)];let _0xc5b771=0xbb8;return this['activeMarkers']['includes'](_0x1194a4['markerName'])&&(_0x1f467b['push']('ck-suggestion-marker--active'),_0xc5b771=0xbc2),'deletion'==_0x449026&&(_0xc5b771+=0x5),{'classes':_0x1f467b,'attributes':{'data-suggestion':_0x3a7a38,'data-author-id':_0x43faf6},'priority':_0xc5b771};}}),_0xa46894['conversion']['for']('dataDowncast')['add'](_0x31f36f=>{_0x31f36f['on']('addMarker:suggestion',(_0x4f8fd0,_0x4666ba,_0x572fe7)=>{if(!_0x572fe7['options']['showSuggestionHighlights'])return;const _0x580c63=_0x4666ba['item'];if(!_0x580c63)return;const _0x33cbcd=_0x572fe7['mapper']['toViewElement'](_0x580c63);_0xa46894['model']['schema']['isObject'](_0x580c63)&&_0x33cbcd&&!_0x33cbcd['getCustomProperty']('widget')&&_0x33cbcd['is']('containerElement')&&_0xc4712e(_0x33cbcd,_0x572fe7['writer']);},{'priority':'high'});}),_0xa46894['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x288b92,_0x3ed205)=>{if(!_0x3ed205['options']['showSuggestionHighlights'])return null;const {id:_0x5dacbd,authorId:_0x20cf2d,type:_0x1539a6,subType:_0x298200}=this['_splitMarkerName'](_0x288b92['markerName']);return{'classes':['ck-suggestion-marker',_0x2d1068(_0x1539a6,_0x298200)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5dacbd,'data-author-id':_0x20cf2d}};}});const _0x2b0bbd=({showActiveMarkers:_0x24f42d=!0x0,isAttributeSuggestion:_0x5cc811=!0x1}={})=>(_0x569d55,_0x22fa7a,_0x1e848c)=>{if(!_0x22fa7a['item'])return;const {id:_0x7ead43,authorId:_0x47c6c8}=this['_splitMarkerName'](_0x22fa7a['markerName']);if(_0x5cc811){const _0x2fd0a7=this['_suggestions']['get'](_0x7ead43),_0x5f03a8=this['_getAttributeKey'](_0x2fd0a7);if(!this['_isBlockAttribute'](_0x5f03a8))return;}if(_0x22fa7a['item']['is']('selection'))return void _0x1e848c['consumable']['consume'](_0x22fa7a['item'],_0x569d55['name']);const _0x4b6534=_0x1e848c['mapper']['toViewElement'](_0x22fa7a['item']);if(_0x22fa7a['item']['is']('element')&&_0xa46894['model']['schema']['isBlock'](_0x22fa7a['item'])&&!_0x4b6534['getCustomProperty']('addHighlight')){_0x1e848c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b6534),_0x1e848c['writer']['setAttribute']('data-suggestion',_0x7ead43,_0x4b6534),_0x1e848c['writer']['setAttribute']('data-author-id',_0x47c6c8,_0x4b6534),_0x1e848c['mapper']['bindElementToMarker'](_0x4b6534,_0x22fa7a['markerName']),_0x24f42d&&(this['activeMarkers']['includes'](_0x22fa7a['markerName'])?_0x1e848c['writer']['addClass']('ck-suggestion-marker--active',_0x4b6534):_0x1e848c['writer']['removeClass']('ck-suggestion-marker--active',_0x4b6534));for(const _0x45c4cf of _0xa46894['model']['createRangeIn'](_0x22fa7a['item'])['getItems']())_0x1e848c['consumable']['consume'](_0x45c4cf,_0x569d55['name']);_0x1e848c['consumable']['consume'](_0x22fa7a['item'],_0x569d55['name']);}};_0xa46894['conversion']['for']('dataDowncast')['add'](_0x290c44=>{_0x290c44['on']('addMarker:suggestion:formatBlock',(_0x56a043,_0x7553d9,_0x603492)=>{_0x603492['options']['showSuggestionHighlights']&&_0x2b0bbd({'showActiveMarkers':!0x1})(_0x56a043,_0x7553d9,_0x603492);},{'priority':'highest'});}),_0xa46894['conversion']['for']('dataDowncast')['add'](_0x263445=>{_0x263445['on']('addMarker:suggestion:attribute',(_0x372f9b,_0x3ba9bc,_0x57726a)=>{_0x57726a['options']['showSuggestionHighlights']&&_0x2b0bbd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x372f9b,_0x3ba9bc,_0x57726a);},{'priority':'highest'});}),_0xa46894['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x7133c7,_0x40aecf)=>{if(_0x40aecf['options']['showSuggestionHighlights']){const {id:_0x1b4a86,authorId:_0x2e784d}=this['_splitMarkerName'](_0x7133c7);return _0x7133c7['includes'](':split')||_0x7133c7['includes'](':merge')?{'group':'suggestion','name':_0x7133c7['substr'](0xb),'attributes':{'data-suggestion':_0x1b4a86,'data-author-id':_0x2e784d}}:null;}return{'group':'suggestion','name':_0x7133c7['substr'](0xb)};}}),_0xa46894['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5568fe,{writer:_0x5c62be})=>{let _0x4342c7='suggestion:'+_0x5568fe['getAttribute']('suggestion-type')+':'+_0x5568fe['getAttribute']('id');return _0x5568fe['getAttribute']('marker-count')&&(_0x4342c7+=':'+_0x5568fe['getAttribute']('marker-count')),_0x5c62be['createElement']('$marker',{'data-name':_0x4342c7});}}),_0xa46894['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x45fdcf=>{_0x45fdcf['on']('addMarker:suggestion:formatBlock',_0x2b0bbd(),{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x29007e=>{_0x29007e['on']('addMarker:suggestion:attribute',_0x2b0bbd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x4807ac=>{_0x4807ac['on']('removeMarker:suggestion:formatBlock',(_0x20d0f8,_0x217833,_0x5c4887)=>{const _0x2f9848=_0x5c4887['mapper']['markerNameToElements'](_0x217833['markerName']);if(_0x2f9848){for(const _0x4d6cda of _0x2f9848)_0x4d6cda['getCustomProperty']('addHighlight')||(_0x5c4887['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d6cda),_0x5c4887['writer']['removeAttribute']('data-suggestion',_0x4d6cda),_0x5c4887['writer']['removeAttribute']('data-author-id',_0x4d6cda),_0x5c4887['mapper']['unbindElementFromMarkerName'](_0x4d6cda,_0x217833['markerName']));}},{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x40699d=>{_0x40699d['on']('removeMarker:suggestion:attribute',(_0x5e3e38,_0x52902c,_0x2d3b18)=>{const _0x451120=_0x2d3b18['mapper']['markerNameToElements'](_0x52902c['markerName']);if(!_0x451120)return;const {id:_0x8ca5a5}=this['_splitMarkerName'](_0x52902c['markerName']),_0x4b3613=this['_suggestions']['get'](_0x8ca5a5),_0x38f65b=this['_getAttributeKey'](_0x4b3613);if(this['_isBlockAttribute'](_0x38f65b)){for(const _0x362d52 of _0x451120)_0x362d52['getCustomProperty']('addHighlight')||(_0x2d3b18['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x362d52),_0x2d3b18['writer']['removeAttribute']('data-suggestion',_0x362d52),_0x2d3b18['writer']['removeAttribute']('data-author-id',_0x362d52),_0x2d3b18['mapper']['unbindElementFromMarkerName'](_0x362d52,_0x52902c['markerName']));}},{'priority':'high'});}),_0xa46894['model']['document']['registerPostFixer'](_0x4fb545=>{let _0x3aa184=!0x1;const _0x36806b=Array['from'](_0xa46894['model']['document']['differ']['getChangedMarkers']()),_0x54b81d=new Set();for(const {name:_0x5e266c,data:_0x3eb5cc}of _0x36806b){const {group:_0x67e938,type:_0x393fd8,subType:_0x4a2409,id:_0x537889}=this['_splitMarkerName'](_0x5e266c);if('suggestion'!==_0x67e938)continue;const _0x426d81=this['_suggestions']['get'](_0x537889);if(null!=_0x3eb5cc['newRange']){'formatInline'==_0x393fd8&&(_0x3aa184=_0x3aa184||Gt(_0x3eb5cc['newRange'],_0x5e266c,_0x4fb545,_0xa46894['model']['schema']));const _0x183e2c='attribute'==_0x393fd8&&this['_isBlockAttribute'](_0x4a2409['split']('|')[0x0]);if(_0x3eb5cc['newRange']['isCollapsed']||'$graveyard'==_0x3eb5cc['newRange']['root']['rootName']||'formatBlock'==_0x393fd8&&!Jt(_0x3eb5cc['newRange'])||_0x183e2c&&!Jt(_0x3eb5cc['newRange'])||'deletion'==_0x393fd8&&!Kt(_0x3eb5cc['newRange']))_0x4fb545['removeMarker'](_0x5e266c),_0x3aa184=!0x0;else{if(!_0x426d81||!_0x426d81['isInContent'])continue;if(_0x3eb5cc['newRange']&&_0x3eb5cc['oldRange']&&_0x3eb5cc['newRange']['isEqual'](_0x3eb5cc['oldRange']))continue;_0x54b81d['add'](_0x426d81);}}}return _0x54b81d['size']>0x0&&(_0x3aa184=!!this['_joinWithAdjacentSuggestions'](_0x54b81d)||_0x3aa184),_0x3aa184;}),_0xa46894['model']['document']['registerPostFixer'](_0x9323ce=>{let _0x551441=!0x1;for(const _0x19a768 of _0xa46894['model']['document']['differ']['getChanges']())if('insert'==_0x19a768['type'])for(const _0x391745 of this['_suggestions']['values']()){if(_0x391745['isMultiRange']||!_0x391745['isInContent'])continue;const _0x3ef803='formatBlock'==_0x391745['type'],_0x1d5a6d=this['_getAttributeKey'](_0x391745),_0x9ad2=_0x1d5a6d&&this['_isBlockAttribute'](_0x1d5a6d);if(!_0x3ef803&&!_0x9ad2)continue;const _0x3b7936=_0x391745['getFirstRange']();if(_0x3b7936['start']['parent']!=_0x3b7936['end']['parent']&&!_0x3b7936['end']['isAtEnd']){const _0x154530=_0xa46894['model']['createPositionAt'](_0x3b7936['start']['nodeAfter'],'end'),_0x3312d7=_0xa46894['model']['createRange'](_0x3b7936['start'],_0x154530);_0x9323ce['updateMarker'](_0x391745['getFirstMarker'](),{'range':_0x3312d7}),_0x551441=!0x0;}}return _0x551441;}),_0xa46894['model']['document']['registerPostFixer'](_0x2c9329=>this['_processAttributeChanges'](_0x2c9329)),_0xa46894['model']['document']['registerPostFixer'](_0x42ea7a=>!_0x42ea7a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x42ea7a)),_0xa46894['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa46894['model']['document']['on']('change:data',(_0x190d30,_0x2af8a5)=>{if(!_0x2af8a5['isLocal']||_0x2af8a5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2f63d8=_0xa46894['model']['document']['differ']['getChanges']();if(0x0==_0x2f63d8['length'])return;const _0x36a262=[],_0x5a04a0=_0x2f63d8['filter'](_0x3b4af3=>'attribute'==_0x3b4af3['type']),_0x3d5b79=_0x2f63d8['filter'](_0x2dcb2d=>'insert'==_0x2dcb2d['type']&&'$text'!=_0x2dcb2d['name']);for(const _0x206dac of _0x5a04a0)this['_isRegisteredAttribute'](_0x206dac['attributeKey'])&&_0x36a262['push']({'key':_0x206dac['attributeKey'],'newValue':_0x206dac['attributeNewValue'],'oldValue':_0x206dac['attributeOldValue'],'range':Ht(_0x206dac['range'],_0xa46894['model'])});for(const _0x4e7d06 of _0x3d5b79){if('rename'!=_0x4e7d06['action']&&'refresh'!=_0x4e7d06['action'])continue;const _0x40a946=qt(_0x4e7d06['position']['nodeAfter'],_0xa46894['model']),_0x618f0b=_0x4e7d06['before'];'rename'==_0x4e7d06['action']&&_0x36a262['push']({'key':m,'newValue':_0x4e7d06['name'],'oldValue':_0x618f0b['name'],'range':_0x40a946});for(const [_0x381b98,_0x8eb814]of _0x618f0b['attributes']){if(!this['_isRegisteredAttribute'](_0x381b98))continue;const _0x124c93=_0x4e7d06['attributes']['get'](_0x381b98);_0x8eb814!==_0x124c93&&_0x36a262['push']({'key':_0x381b98,'newValue':_0x124c93,'oldValue':_0x8eb814,'range':_0x40a946});}for(const [_0x49c3b0,_0x1ac1a2]of _0x4e7d06['attributes'])this['_isRegisteredAttribute'](_0x49c3b0)&&(_0x618f0b['attributes']['has'](_0x49c3b0)||_0x36a262['push']({'key':_0x49c3b0,'newValue':_0x1ac1a2,'oldValue':null,'range':_0x40a946}));}0x0!=_0x36a262['length']&&_0xa46894['model']['enqueueChange'](_0x2af8a5,_0x462ea7=>{const _0x594965=_0x427844();for(const {range:_0x4bfb29,key:_0x203ddc,oldValue:_0x424337,newValue:_0x8174c6}of _0x36a262)this['markAttributeChange'](_0x4bfb29,_0x203ddc,_0x424337,_0x8174c6,{'groupId':_0x594965});this['_reduceExistingSuggestions'](_0x462ea7,_0x36a262);});},{'priority':'lowest'}),_0xa46894['model']['markers']['on']('update:suggestion',(_0x271679,_0x2e8280,_0x5d671d)=>{if(null==_0x5d671d){const {id:_0x5094be}=this['_splitMarkerName'](_0x2e8280['name']),_0x557e3d=this['_suggestions']['get'](_0x5094be);_0x557e3d&&_0x557e3d['addMarkerName'](_0x2e8280['name']);}}),_0xa46894['model']['document']['on']('change:data',()=>{const _0x55598f=Array['from'](_0xa46894['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f0ba5=>'suggestion'===this['_splitMarkerName'](_0x4f0ba5['name'])['group']);if(0x0===_0x55598f['length'])return;_0x55598f['sort']((_0x329c59,_0x59e2d9)=>{const _0x4ea2ae=_0x329c59['data']['oldRange'],_0xe016e6=_0x59e2d9['data']['oldRange'];return null===_0x4ea2ae&&null===_0xe016e6?0x0:null===_0x4ea2ae&&null!==_0xe016e6?-0x1:null!==_0x4ea2ae&&null===_0xe016e6?0x1:_0x4ea2ae['start']['isBefore'](_0xe016e6['start'])?-0x1:0x1;});const _0xe9bfd7=new Set(),_0x1111c6=new Set();for(const {name:_0x1117af,data:_0x1d9e35}of _0x55598f){const {id:_0x5c40bb}=this['_splitMarkerName'](_0x1117af);if(null===_0x1d9e35['oldRange']){const _0x1c285d=this['_handleNewSuggestionMarker'](_0x1117af);_0x1111c6['add'](_0x1c285d);}else{const _0x39f918=this['_suggestions']['get'](_0x5c40bb);null!==_0x1d9e35['newRange']||_0x39f918['isInContent']?(_0xe9bfd7['add'](_0x39f918['head']),_0x1111c6['add'](_0x39f918)):this['_removeSuggestion'](_0x39f918);}}_0x1111c6['size']>0x0&&this['_refreshSuggestionsChain'](_0x1111c6);for(const _0x7e4e79 of _0xe9bfd7)this['fire']('suggestionChanged',_0x7e4e79);}),_0xa46894['model']['on']('applyOperation',(_0x17ef6f,_0x1627ed)=>{const _0x4f7f55=_0x1627ed[0x0];if(!this['_suggestions']['size'])return;if(!_0x4f7f55['isDocumentOperation'])return;if(_0x4f7f55['batch']['isUndo']||!_0x4f7f55['batch']['isLocal'])return;let _0x774b74,_0x384101;switch(_0x4f7f55['type']){case'insert':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['position']),_0x384101=_0x774b74['getShiftedBy'](_0x4f7f55['howMany']);break;case'split':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['splitPosition']),_0x384101=_0xa46894['model']['createPositionAt'](_0x4f7f55['moveTargetPosition']);break;case'move':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['targetPosition']),_0x384101=_0x774b74['getShiftedBy'](_0x4f7f55['howMany']);break;default:return;}const _0x2945c0=_0xa46894['model']['createRange'](_0x774b74,_0x384101);_0xa46894['model']['change'](()=>{for(const {suggestion:_0x4f911d,meta:_0x3feab3}of this['_findSuggestions'](_0x2945c0)){if(_0x4f911d['isMultiRange'])continue;if('formatInline'==_0x4f911d['type'])continue;const _0x1b7adc=this['_getAttributeKey'](_0x4f911d);if(_0x1b7adc&&this['_isBlockAttribute'](_0x1b7adc)&&'split'!=_0x4f7f55['type'])continue;const _0x16b926=_0x4f911d['data']&&_0x4f911d['data']['multipleBlocks'];('formatBlock'!=_0x4f911d['type']||'split'==_0x4f7f55['type']&&!_0x16b926)&&(_0x3feab3['containsRangeInObject']||'insertion'==_0x4f911d['type']&&_0x3feab3['isOwn']||_0x4f911d['getFirstRange']()['containsRange'](_0x2945c0)&&this['_breakSuggestionMarker'](_0x4f911d,_0x774b74,_0x384101));}});},{'priority':'lowest'}),_0xa46894['model']['on']('deleteContent',(_0x2b3893,_0x5ae73a)=>{const _0x2fc9d2=_0x5ae73a[0x0],_0x1f4966=_0x5ae73a[0x1];if(_0x1f4966&&_0x1f4966['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2fc9d2['isCollapsed'])return;const _0x4491b8=_0xa46894['model']['schema'],{start:_0x47bee7,end:_0x4497eb}=_0x2fc9d2['getFirstRange'](),_0x5dbdfe=_0x47bee7['nodeAfter']&&_0x4491b8['isLimit'](_0x47bee7['nodeAfter'])?null:_0x4491b8['getNearestSelectionRange'](_0x47bee7,'forward'),_0x56ea50=_0x4497eb['nodeBefore']&&_0x4491b8['isLimit'](_0x4497eb['nodeBefore'])?null:_0x4491b8['getNearestSelectionRange'](_0x4497eb,'backward'),_0xd8781f=_0xa46894['model']['createRange'](_0x5dbdfe?_0x5dbdfe['start']:_0x47bee7,_0x56ea50?_0x56ea50['end']:_0x4497eb);_0xa46894['model']['change'](_0x26716a=>{this['markDeletion'](_0xd8781f);const _0x15058b=_0xa46894['model']['schema']['getNearestSelectionRange'](_0xd8781f['start']);_0x2fc9d2['is']('documentSelection')?_0x26716a['setSelection'](_0x15058b):_0x2fc9d2['setTo'](_0x15058b);}),_0x2b3893['stop']();},{'priority':_0x850491['normal']+0xa}),_0xa46894['model']['on']('insertContent',(_0xf8e3e4,_0x372801)=>{const _0x351353=_0x372801[_0x372801['length']-0x1];_0x351353&&_0x351353['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa46894['model']['change'](()=>{let _0x669ef8=_0xa46894['model']['insertContent'](_0x372801[0x0],_0x372801[0x1],_0x372801[0x2],{'forceDefaultExecution':!0x0});if(!_0x669ef8)return;_0xf8e3e4['return']=_0x669ef8['clone']();const _0x1523b8=_0x669ef8['end']['nodeBefore'],_0x28025b=_0xa46894['model']['schema'];_0x1523b8&&_0x28025b['isBlock'](_0x1523b8)&&!_0x28025b['isObject'](_0x1523b8)&&(_0x669ef8=_0xa46894['model']['createRange'](_0x669ef8['start'],_0xa46894['model']['createPositionAt'](_0x1523b8,'end'))),this['markInsertion'](_0x669ef8);}),_0xf8e3e4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36e49c=new D(_0xa46894,this['_suggestions']);_0xa46894['commands']['add']('acceptSuggestion',_0x36e49c),this['enableCommand']('acceptSuggestion');const _0x3ffb9d=new M(_0xa46894,this['_suggestions']);_0xa46894['commands']['add']('discardSuggestion',_0x3ffb9d),this['enableCommand']('discardSuggestion'),_0xa46894['commands']['add']('acceptAllSuggestions',new $(_0xa46894,_0x36e49c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa46894['commands']['add']('discardAllSuggestions',new $(_0xa46894,_0x3ffb9d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa46894['commands']['add']('acceptSelectedSuggestions',new B(_0xa46894,_0x36e49c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa46894['commands']['add']('discardSelectedSuggestions',new B(_0xa46894,_0x3ffb9d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20f4bf=_0xa46894['plugins']['get']('CommentsRepository');this['listenTo'](_0x20f4bf,'addComment',(_0x1f15f7,{threadId:_0x31dd27})=>{const _0xf25c72=this['_suggestions']['get'](_0x31dd27);_0xf25c72&&_0xf25c72['commentThread']&&0x1===_0xf25c72['commentThread']['length']&&this['_updateSuggestionData'](_0x31dd27,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20f4bf,'removeComment',(_0x2521df,{threadId:_0x3adfcc})=>{const _0x5e6ff0=this['_suggestions']['get'](_0x3adfcc);_0x5e6ff0&&_0x5e6ff0['commentThread']&&!_0x5e6ff0['commentThread']['length']&&this['_updateSuggestionData'](_0x3adfcc,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39966b){const _0x3b1585=_0x490000([0x4a,0x79,0x51,0x44,0x74,0x35,0x56,0x58,0x6b,0x49,0x57,0x30,0x6f,0x6c,0x63,0x33,0x53,0x32,0x6e,0x65,0x52,0x37,0x4e,0x42,0x62,0x39,0x41,0x6a,0x46,0x55,0x69,0x76,0x48,0x54,0x4b,0x59,0x73,0x31,0x68,0x77,0x75,0x4c,0x4d,0x61,0x64,0x45,0x50,0x72,0x71,0x34,0x7a,0x43,0x47,0x66,0x38,0x78,0x5a,0x67,0x70,0x6d,0x36,0x4f]),_0x2a4779=0x20d32aad,_0x4a0a8c=0x20d4461d^_0x2a4779,_0x362a8f=window[_0x490000([0x44,0x61,0x74,0x65])][_0x490000([0x6e,0x6f,0x77])](),_0x2aef16=_0x39966b[_0x490000([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cc430=new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5220ca=>{_0x2aef16[_0x490000([0x6f,0x6e,0x63,0x65])](_0x490000([0x72,0x65,0x61,0x64,0x79]),_0x5220ca);}),_0x5b1219={[_0x490000([0x6b,0x74,0x79])]:_0x490000([0x45,0x43]),[_0x490000([0x75,0x73,0x65])]:_0x490000([0x73,0x69,0x67]),[_0x490000([0x63,0x72,0x76])]:_0x490000([0x50,0x2d,0x32,0x35,0x36]),[_0x490000([0x78])]:_0x490000([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]),[_0x490000([0x79])]:_0x490000([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]),[_0x490000([0x61,0x6c,0x67])]:_0x490000([0x45,0x53,0x32,0x35,0x36])},_0xfba685=_0x2aef16[_0x490000([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x490000([0x67,0x65,0x74])](_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3969ea(){let _0x283bff,_0x4600e4=null,_0x5f30fc=null;try{if(_0xfba685==_0x490000([0x47,0x50,0x4c]))return _0x490000([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x283bff=_0x45ad5b(),!_0x283bff)return _0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x283bff[_0x490000([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f30fc=_0x57901e(_0x283bff[_0x490000([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x283bff[_0x490000([0x6a,0x74,0x69])])),await _0x4a1e8d()?_0x52e3d0()?_0x5214bc()?_0x490000([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x308d24()?(_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490000([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4600e4=_0x3a5ff5(_0x490000([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490000([0x74,0x72,0x69,0x61,0x6c])&&(_0x4600e4=_0x3a5ff5(_0x490000([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b6edd()):_0x490000([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x490000([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5214bc(){const _0x3a50a3=[_0x490000([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x490000([0x74,0x72,0x69,0x61,0x6c])][_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x362a8f/0x3e8:0xe10*_0x4a0a8c;return _0x283bff[_0x490000([0x65,0x78,0x70])]<_0x3a50a3;}function _0x52e3d0(){const _0x3ac7fe=_0x283bff[_0x490000([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ac7fe)return!0x1;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x2a])))return!0x0;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x54,0x43])))return!0x0;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x52,0x54,0x43]))){if(_0x48ead5())return!0x0;if(_0xa5db03()||_0x4cc811())return!0x0;}return!0x1;}function _0x308d24(){const _0x47a35e=_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47a35e||0x0==_0x47a35e[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f30e2}=new URL(window[_0x490000([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47a35e[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f30e2))return!0x0;const _0x14c2cd=_0x4f30e2[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e]));return _0x47a35e[_0x490000([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x437b87=>_0x437b87[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x2a])))[_0x490000([0x6d,0x61,0x70])](_0x5cfe77=>_0x5cfe77[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e])))[_0x490000([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x483023=>_0x483023[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14c2cd[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490000([0x6d,0x61,0x70])](_0xa4f096=>Array(_0x14c2cd[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa4f096[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490000([0x66,0x69,0x6c,0x6c])](_0xa4f096[0x0]===_0x490000([0x2a])?_0x490000([0x2a]):'')[_0x490000([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa4f096))[_0x490000([0x73,0x6f,0x6d,0x65])](_0x40cd9f=>_0x14c2cd[_0x490000([0x65,0x76,0x65,0x72,0x79])]((_0xbb4310,_0x4b3960)=>_0x40cd9f[_0x4b3960]===_0xbb4310||_0x40cd9f[_0x4b3960]===_0x490000([0x2a])));}function _0x5b6edd(){return _0x4600e4&&_0x5f30fc?new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x407222,_0x43cbe5)=>{_0x4600e4[_0x490000([0x74,0x68,0x65,0x6e])](_0x407222,_0x43cbe5),_0x5f30fc[_0x490000([0x74,0x68,0x65,0x6e])](_0xa8aad5=>{_0xa8aad5!=_0x490000([0x56,0x61,0x6c,0x69,0x64])&&_0x407222(_0xa8aad5);},_0x43cbe5);}):_0x4600e4||_0x5f30fc||_0x490000([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57901e(_0x428ca1,_0xd6823e){return new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cc81d=>{if(_0x33beb9())return _0x1cc81d(_0x490000([0x56,0x61,0x6c,0x69,0x64]));_0x1c1dda(),_0x2aef16[_0x490000([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5693=!0x1;const _0x7828f8=_0x427844();function _0x47e3bc(_0x2c4312){return!!_0x2c4312&&(typeof _0x2c4312===_0x490000([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c4312===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c4312[_0x490000([0x74,0x68,0x65,0x6e])]===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c4312[_0x490000([0x63,0x61,0x74,0x63,0x68])]===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x177f5e(_0x1bec76){_0x17b204(_0x1bec76)[_0x490000([0x74,0x68,0x65,0x6e])](_0x559cd4=>{if(!_0x559cd4||_0x559cd4[_0x490000([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x490000([0x6f,0x6b]))return _0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x516357(_0x42f9d8(_0x7828f8+_0xd6823e))!=_0x559cd4[_0x490000([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x490000([0x56,0x61,0x6c,0x69,0x64]);})[_0x490000([0x74,0x68,0x65,0x6e])](_0x4f32c1=>(_0x3bdf63(),_0x4f32c1),()=>{const _0x3e5768=_0x323146();return null==_0x3e5768?(_0x3bdf63(),_0x490000([0x56,0x61,0x6c,0x69,0x64])):_0x490000(_0x362a8f-_0x3e5768>(0x4dfaead^_0x2a4779)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x490000([0x74,0x68,0x65,0x6e])](_0x1cc81d)[_0x490000([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f225f=0x20e5c42d^_0x2a4779;function _0x3bdf63(){const _0x4b3dc4=_0x490000([0x6c,0x6c,0x63,0x74,0x2d])+_0x516357(_0x42f9d8(_0x428ca1)),_0x1f8164=_0x260fab(_0x516357(window[_0x490000([0x4d,0x61,0x74,0x68])][_0x490000([0x63,0x65,0x69,0x6c])](_0x362a8f/_0x5f225f)));window[_0x490000([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490000([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b3dc4,_0x1f8164);}function _0x323146(){const _0x18668d=_0x490000([0x6c,0x6c,0x63,0x74,0x2d])+_0x516357(_0x42f9d8(_0x428ca1)),_0x5e286a=window[_0x490000([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490000([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18668d);return _0x5e286a?window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260fab(_0x5e286a),0x10)*_0x5f225f:null;}function _0x17b204(_0x125a4b){return new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x349b54,_0x2fb5a6)=>{_0x125a4b[_0x490000([0x74,0x68,0x65,0x6e])](_0x349b54,_0x2fb5a6),window[_0x490000([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fb5a6,0x20d2fe6d^_0x2a4779);});}}_0x2aef16[_0x490000([0x6f,0x6e])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47d7b5,_0x5cdc38)=>{if(_0x5cdc38[0x0]!=_0x428ca1)return _0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5cdc38[0x1]={..._0x5cdc38[0x1],[_0x490000([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7828f8};},{[_0x490000([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490000([0x68,0x69,0x67,0x68])}),_0x2aef16[_0x490000([0x6f,0x6e])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3249cc=>{_0x47e3bc(_0x3249cc[_0x490000([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5693=!0x0,_0x177f5e(_0x3249cc[_0x490000([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x490000([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490000([0x6c,0x6f,0x77])}),_0x3cc430[_0x490000([0x74,0x68,0x65,0x6e])](()=>{_0x5c5693||_0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33beb9(){return _0x2aef16[_0x490000([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490000([0x76,0x69,0x65,0x77])][_0x490000([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x490000([0x61,0x75,0x74,0x6f]);}function _0x1c1dda(){_0x2aef16[_0x490000([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490000([0x76,0x69,0x65,0x77])][_0x490000([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x490000([0x61,0x75,0x74,0x6f]);}}function _0x3a5ff5(_0xd96578){const _0x535956=[new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x505877=>setTimeout(_0x505877,0x20da1461^_0x2a4779)),_0x3cc430[_0x490000([0x74,0x68,0x65,0x6e])](()=>new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11365a=>{let _0xc92c53=0x0;_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x6f,0x6e])](_0x490000([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x132c53,_0x3b1484)=>{_0x3b1484[0x0][_0x490000([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc92c53++,_0xc92c53==(0x20d32b55^_0x2a4779)&&(_0x11365a(),_0x132c53[_0x490000([0x6f,0x66,0x66])]());});}))];return window[_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x490000([0x72,0x61,0x63,0x65])](_0x535956)[_0x490000([0x74,0x68,0x65,0x6e])](()=>_0xd96578);}async function _0x3db60b(){await _0x3cc430,_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44eebe,_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44eebe,_0x2aef16[_0x490000([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x490000([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48ead5(){return _0x18040d(_0x490000([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52f77e(_0x490000([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x490000([0x73,0x74,0x61,0x74,0x65])]==_0x490000([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa5db03(){return _0x18040d(_0x490000([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 _0x4cc811(){return _0x18040d(_0x490000([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x411b3e(_0x58c951){const _0x4bcf83=_0x3c185d();_0x2aef16[_0x4bcf83]=_0x490000([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58c951,_0x58c951!=_0x490000([0x56,0x61,0x6c,0x69,0x64])&&_0x3db60b();}function _0x3c185d(){const _0x230a4f=window[_0x490000([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x490000([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x490000([0x6e,0x6f,0x77])]())[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x490000([0x2e]),'');let _0x32f346=_0x490000([0x4a]);for(let _0xf9a101=0x0;_0xf9a101<_0x230a4f[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf9a101+=0x2){let _0x4b1b47=window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230a4f[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf9a101,_0xf9a101+0x2));_0x4b1b47>=_0x3b1585[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b1b47-=_0x3b1585[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32f346+=_0x3b1585[_0x4b1b47];}return _0x32f346;}function _0x45ad5b(){const _0x2406b0=_0xfba685[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e]));if(0x3!=_0x2406b0[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d39e9(_0x2406b0[0x1]);function _0x4d39e9(_0x21c16a){const _0x32de7f=_0x478190(_0x21c16a);return _0x32de7f&&_0x5b7eba()?_0x32de7f:null;function _0x5b7eba(){const _0x5bdb58=_0x32de7f[_0x490000([0x6a,0x74,0x69])],_0x311593=window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bdb58[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bdb58[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x202e4d={..._0x32de7f,[_0x490000([0x6a,0x74,0x69])]:_0x5bdb58[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bdb58[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x202e4d[_0x490000([0x76,0x63])],_0x42f9d8(_0x202e4d)==_0x311593;}}}async function _0x4a1e8d(){let _0x3449f7=!0x0;try{const _0x3c37b0=_0xfba685[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e])),[_0x59d9fe,_0xbf8aeb,_0x16b44c]=_0x3c37b0;return _0x3842dc(_0x59d9fe),await _0x4706ab(_0x59d9fe,_0xbf8aeb,_0x16b44c),_0x3449f7;}catch{return!0x1;}function _0x3842dc(_0x28438c){const _0x171f24=_0x478190(_0x28438c);_0x171f24&&_0x171f24[_0x490000([0x61,0x6c,0x67])]==_0x490000([0x45,0x53,0x32,0x35,0x36])||(_0x3449f7=!0x1);}async function _0x4706ab(_0x2f0389,_0xf12f52,_0x1f411f){const _0x41d8a7=window[_0x490000([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x490000([0x66,0x72,0x6f,0x6d])](_0x28e483(_0x1f411f),_0x315dd1=>_0x315dd1[_0x490000([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13a7c6=new window[(_0x490000([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x490000([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f0389+_0x490000([0x2e])+_0xf12f52),_0x4365d2=window[_0x490000([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x490000([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4365d2)return;const _0x37ee40=await _0x4365d2[_0x490000([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x490000([0x6a,0x77,0x6b]),_0x5b1219,{[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x45,0x43,0x44,0x53,0x41]),[_0x490000([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x490000([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x490000([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4365d2[_0x490000([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x45,0x43,0x44,0x53,0x41]),[_0x490000([0x68,0x61,0x73,0x68])]:{[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37ee40,_0x41d8a7,_0x13a7c6)||(_0x3449f7=!0x1);}}function _0x478190(_0xa29aae){return _0xa29aae[_0x490000([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x490000([0x65,0x79]))?JSON[_0x490000([0x70,0x61,0x72,0x73,0x65])](_0x28e483(_0xa29aae)):null;}function _0x28e483(_0x34f463){return window[_0x490000([0x61,0x74,0x6f,0x62])](_0x34f463[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x490000([0x2b]))[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x490000([0x2f])));}function _0x42f9d8(_0x28096d){let _0x415607=0x1505;function _0x4f7599(_0xeab788){for(let _0x351be9=0x0;_0x351be9<_0xeab788[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x351be9++){const _0x4bb656=_0xeab788[_0x490000([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x351be9);_0x415607=(_0x415607<<0x5)+_0x415607+_0x4bb656,_0x415607&=_0x415607;}}function _0xe566ed(_0x1558b6){Array[_0x490000([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1558b6)?_0x1558b6[_0x490000([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe566ed):_0x1558b6&&typeof _0x1558b6==_0x490000([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x490000([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1558b6)[_0x490000([0x73,0x6f,0x72,0x74])]()[_0x490000([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b682d,_0xa3a3e2])=>{_0x4f7599(_0x5b682d),_0xe566ed(_0xa3a3e2);}):_0x4f7599(window[_0x490000([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1558b6));}return _0xe566ed(_0x28096d),_0x415607>>>0x0;}function _0x516357(_0x4623ba){return _0x4623ba[_0x490000([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x490000([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x490000([0x30]));}function _0x260fab(_0x1c0c8a){return _0x1c0c8a[_0x490000([0x73,0x70,0x6c,0x69,0x74])]('')[_0x490000([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x490000([0x6a,0x6f,0x69,0x6e])]('');}function _0x18040d(_0x224a6b){return _0x2aef16[_0x490000([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x490000([0x68,0x61,0x73])](_0x224a6b);}function _0x52f77e(_0x1398b6){return _0x2aef16[_0x490000([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x490000([0x67,0x65,0x74])](_0x1398b6);}function _0x44eebe(){}function _0x490000(_0x452a6d){return _0x452a6d['map'](_0x125c75=>String['fromCharCode'](_0x125c75))['join']('');}_0x411b3e(await _0x3969ea());}(this);}set['adapter'](_0x211d83){if(this['_adapter'])throw new _0x59d332('track-changes-adapter-already-set',this);this['_adapter']=_0x211d83;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x18521c=!0x1,toJSON:_0x3616ac=!0x1}={}){const _0xe35d74=[];for(const _0x443c01 of this['_suggestions']['values']())_0x18521c&&!_0x443c01['isInContent']||_0xe35d74['push'](_0x443c01);return _0x3616ac?_0xe35d74['map'](_0x411f44=>_0x411f44['toJSON']()):_0xe35d74;}['getSuggestion'](_0x4a9206){const _0x57d6a4=this['_suggestions']['get'](_0x4a9206);if(!_0x57d6a4)throw new _0x59d332('track-changes-suggestion-not-found',this);return _0x57d6a4;}['hasSuggestion'](_0x1e220b){return this['_suggestions']['has'](_0x1e220b);}['addSuggestionData'](_0x5bd114){const {authorId:_0x2ea59c,id:_0x1ca493,originalSuggestionId:_0x5958e3,attributes:_0x15281e}=_0x5bd114,[_0x1c8685,_0x12e550]=_0x5bd114['type']['split'](':'),_0x2848cf=this['_suggestions']['get'](_0x1ca493)||this['_createSuggestion'](_0x1c8685,_0x12e550,_0x1ca493,_0x2ea59c,_0x15281e,_0x5958e3);if(this['_addThreadToSuggestion'](_0x2848cf),this['_checkSuggestionCorrectness'](_0x2848cf,_0x1c8685,_0x12e550||null,_0x2ea59c),_0x2848cf['createdAt']=_0x5bd114['createdAt'],_0x2848cf['_isDataLoaded']=!0x0,_0x15281e&&_0x15281e['@external']){const _0x47a6ec=_0x15281e['@external'],_0x175682=this['_getExternalAuthor'](_0x47a6ec['authorName']);_0x2848cf['authoredAt']=_0x47a6ec['createdAt'],_0x2848cf['author']=_0x175682,_0x2848cf['isExternal']=!0x0;}else _0x2848cf['authoredAt']=_0x5bd114['createdAt'];switch(_0x5bd114['data']&&(_0x2848cf['data']=_0x5bd114['data']),_0x5bd114['attributes']&&(_0x2848cf['attributes']=_0x5bd114['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2848cf['_saved']=!0x0),this['_suggestionState']['get'](_0x2848cf)){case'notReady':this['_suggestionState']['set'](_0x2848cf,'dataReady');break;case'markerReady':_0x2848cf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2848cf])),this['_refreshSuggestionsChain'](new Set([_0x2848cf])),this['_suggestionState']['set'](_0x2848cf,'ready'),this['fire']('suggestionLoaded',_0x2848cf)):this['_suggestionState']['set'](_0x2848cf,'removed');}return _0x2848cf;}['acceptSuggestion'](_0x2a3b97){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26f8bd of _0x2a3b97['getAllAdjacentSuggestions']())_0x26f8bd['accept']();});});}['discardSuggestion'](_0x2aaef5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56ec88 of _0x2aaef5['getAllAdjacentSuggestions']())_0x56ec88['discard']();});});}['enableCommand'](_0x46ec26,_0x64cdb1){const _0x283c31=this['editor']['commands']['get'](_0x46ec26);if(!_0x283c31)throw new _0x59d332('track-changes-command-not-found',this,{'commandName':_0x46ec26});if(this['_enabledCommands']['has'](_0x283c31))throw new _0x59d332('track-changes-enable-command-twice',this,{'commandName':_0x46ec26});this['_enabledCommands']['add'](_0x283c31),_0x64cdb1&&_0x283c31['on']('execute',(_0x3c3c4b,_0x5ae015)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ae015['length']>0x0&&_0x5ae015[_0x5ae015['length']-0x1]&&_0x5ae015[_0x5ae015['length']-0x1]['forceDefaultExecution']?_0x5ae015['pop']():(_0x3c3c4b['return']=_0x64cdb1((..._0x3686c8)=>_0x283c31['execute'](..._0x3686c8,{'forceDefaultExecution':!0x0}),..._0x5ae015),_0x3c3c4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4099c1){let _0x4c495a,_0x4f4c84;const _0xd294b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c495a=_0x4099c1();}catch(_0x16ecfd){_0x4f4c84=_0x16ecfd;}return _0xd294b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4c84&&_0x59d332['rethrowUnexpectedError'](_0x4f4c84,this),_0x4c495a;}['markInsertion'](_0x145e26,_0x303c3c=null,_0x5edade={}){if(_0x145e26['isCollapsed'])return null;const _0x4180b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5edade['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1e5347,meta:_0xa1185a}of this['_findSuggestions'](_0x145e26,'insertion'))if(_0xa1185a['isOwn']){if(!_0xa1185a['isNextTo']){if(_0xa1185a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1e5347,_0x5edade))continue;return _0x1e5347;}if(Qt(_0x1e5347,_0x5edade))return _0x1e5347;this['_breakSuggestionMarker'](_0x1e5347,_0x145e26['start'],_0x145e26['end']);break;}if(_0x303c3c==_0x1e5347['subType']&&Qt(_0x1e5347,_0x5edade)){const _0x368ba9=_0x1e5347['getFirstRange']();return _0x368ba9['start']['isEqual'](_0x145e26['end'])?this['_setSuggestionRange'](_0x1e5347,this['_model']['createRange'](_0x145e26['start'],_0x368ba9['end'])):this['_setSuggestionRange'](_0x1e5347,this['_model']['createRange'](_0x368ba9['start'],_0x145e26['end'])),_0x1e5347;}}const _0x483846=_0x427844(),_0xc25c57=_0x4180b8['id'],_0x4908a4=_0x303c3c?'insertion:'+_0x303c3c:'insertion',_0x60b720=this['_setSuggestionData']({'id':_0x483846,'type':_0x4908a4,'createdAt':new Date(),'authorId':_0xc25c57,'attributes':_0x5edade});return this['_addSuggestionMarker'](_0x4908a4,_0x483846,_0xc25c57,_0x145e26),_0x60b720;}['markMultiRangeInsertion'](_0x32544e,_0x426770='multi',_0x268aca={}){const _0x1ffb71=this['editor']['plugins']['get']('Users')['me'],_0x282727=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x426770,'join');this['_trackingSessionId']&&(_0x268aca['trackingSessionId']=this['_trackingSessionId']);for(const _0x4ae562 of this['getSuggestions']())if(_0x4ae562['author']['id']==_0x1ffb71['id']&&'insertion'==_0x4ae562['type']&&_0x4ae562['subType']==_0x426770&&Qt(_0x4ae562,_0x268aca)&&(_0x282727(_0x4ae562['getRanges'](),_0x32544e)||_0x282727(_0x32544e,_0x4ae562['getRanges']()))){for(const _0xb76fe5 of _0x32544e)_0x4ae562['addRange'](_0xb76fe5);return _0x4ae562;}for(const {suggestion:_0x3856b6,meta:_0x148baa}of this['_findSuggestions'](_0x32544e,'insertion')){if(!_0x148baa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x148baa['containsRangeInObject'])continue;if(!Qt(_0x3856b6,_0x268aca))continue;let _0xcfbe12=!0x0;for(const _0x5a56f5 of _0x3856b6['getRanges']())for(const _0x33b48c of _0x32544e)if(!_0x5a56f5['containsRange'](_0x33b48c)){_0xcfbe12=!0x1;break;}if(_0xcfbe12)return _0x3856b6;}const _0x277b0b=_0x427844(),_0x3c8359=_0x1ffb71['id'],_0x41a43f='insertion:'+_0x426770,_0x50e551=this['_setSuggestionData']({'id':_0x277b0b,'type':_0x41a43f,'createdAt':new Date(),'authorId':_0x3c8359,'attributes':_0x268aca});for(const _0x459e54 of _0x32544e)this['_addSuggestionMarker'](_0x41a43f,_0x277b0b,_0x3c8359,_0x459e54,T['getMultiRangeId']());return _0x50e551;}['markInlineFormat'](_0x1a42c2,_0x154260,_0x24f4cb=null,_0x5db114={}){if(_0x24f4cb=_0x24f4cb||Lt(_0x154260),_0x1a42c2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5db114['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3088aa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24f4cb,'accept');return this['forceDefaultExecution'](()=>_0x3088aa([_0x1a42c2],_0x154260,_0x5db114)),null;}const _0x156508=this['editor']['plugins']['get']('Users')['me'],_0x14e029=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e04fe,meta:_0x146a34}of this['_findSuggestions'](_0x1a42c2,'insertion'))_0x146a34['isOwn']&&!_0x146a34['isInsideObject']&&_0x14e029['push'](..._0x1e04fe['getRanges']());}const _0x462b25=function(_0x2d9ac7,_0x56aee2){const _0x3fe0a4=[];for(const _0x39327d of _0x56aee2){const _0x303dea=_0x2d9ac7['getIntersection'](_0x39327d);_0x303dea&&_0x3fe0a4['push'](_0x303dea);}return _0x3fe0a4;}(_0x1a42c2,_0x14e029),_0x4dbaa4=function(_0x175ca4,_0x5eb3e6){const _0x36c3df=[_0x175ca4];for(const _0x2df915 of _0x5eb3e6){let _0x588f49=0x0;for(;_0x588f49<_0x36c3df['length'];){const _0x207cdf=_0x36c3df[_0x588f49]['getDifference'](_0x2df915);_0x36c3df['splice'](_0x588f49,0x1,..._0x207cdf),_0x588f49+=_0x207cdf['length'];}}return _0x36c3df;}(_0x1a42c2,_0x14e029);_0x462b25['length']&&this['_model']['change'](()=>{for(const _0x27ae7c of _0x462b25){const _0x456b6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24f4cb,'accept');this['forceDefaultExecution'](()=>_0x456b6e([_0x27ae7c],_0x154260,_0x5db114));}});for(const _0x137b49 of _0x4dbaa4){let _0x19951f=null,_0x55a2f8=_0x137b49['start'],_0x7ff54e=_0x137b49['end'];for(const {suggestion:_0x105ea4,meta:_0x1bea1d}of this['_findSuggestions'](_0x137b49,'formatInline')){if(!_0x1bea1d['isOwn'])continue;if(_0x105ea4['subType']!=_0x24f4cb)continue;if(!Qt(_0x105ea4,_0x5db114))continue;const _0x179996=_0x105ea4['getFirstRange']();if(_0x179996['containsRange'](_0x137b49,!0x0))return null;_0x55a2f8=_0x55a2f8['isBefore'](_0x179996['start'])?_0x55a2f8:_0x179996['start'],_0x7ff54e=_0x7ff54e['isAfter'](_0x179996['end'])?_0x7ff54e:_0x179996['end'],_0x19951f?_0x179996['start']['isBefore'](_0x19951f['getFirstRange']()['start'])?(_0x19951f['removeMarkers'](),_0x19951f=_0x105ea4):_0x105ea4['removeMarkers']():_0x19951f=_0x105ea4;}const _0x171424=this['_model']['createRange'](_0x55a2f8,_0x7ff54e);if(_0x19951f)this['_setSuggestionRange'](_0x19951f,_0x171424);else{const _0x16f48c=_0x427844(),_0x42d6ac=_0x156508['id'];this['_setSuggestionData']({'id':_0x16f48c,'type':'formatInline:'+_0x24f4cb,'data':_0x154260,'createdAt':new Date(),'authorId':_0x42d6ac,'attributes':_0x5db114}),this['_addSuggestionMarker']('formatInline:'+_0x24f4cb,_0x16f48c,_0x42d6ac,_0x171424);}}return null;}['markBlockFormat'](_0x1ad1ef,_0x4d158f,_0x111e81=[],_0x57913f=null,_0x334781={}){_0x4d158f['formatGroupId']||(_0x4d158f['formatGroupId']=_0x4d158f['commandName']),_0x4d158f['multipleBlocks']=_0x1ad1ef['is']('range'),_0x57913f=_0x57913f||Lt(_0x4d158f);const _0x373dfe=_0x111e81['map'](_0x4e92ff=>qt(_0x4e92ff,this['_model'])),_0x48bff1=_0x1ad1ef['is']('range')?_0x1ad1ef:qt(_0x1ad1ef,this['_model']);if(this['_trackingSessionId']&&(_0x334781['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f84e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57913f,'accept');return this['forceDefaultExecution'](()=>_0x3f84e5([_0x48bff1],_0x4d158f,_0x334781)),null;}_0x373dfe['push'](_0x48bff1);let _0x2549ce=!0x0;for(const _0x22ce71 of _0x373dfe)if(!this['_rangeIsInLocalUserInsertion'](_0x22ce71)){_0x2549ce=!0x1;break;}if(_0x2549ce&&'always'!==this['_trackFormatChanges']){const _0x1fb8da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57913f,'accept');return this['forceDefaultExecution'](()=>_0x1fb8da([_0x48bff1],_0x4d158f,_0x334781)),null;}let _0x30c9df=null,_0x5cdf8e=_0x48bff1['start'],_0x59c7d9=_0x48bff1['end'];for(const {suggestion:_0x1225d7,meta:_0x103d01}of this['_findSuggestions'](_0x48bff1,'formatBlock')){if(!_0x103d01['isOwn'])continue;if(_0x103d01['isNextTo']||_0x103d01['containsRangeInObject']||_0x103d01['isInsideObject'])continue;if(_0x1225d7['data']['formatGroupId']!=_0x4d158f['formatGroupId'])continue;if(!Qt(_0x1225d7,_0x334781))continue;const _0x45a924=_0x1225d7['getFirstRange']();if(_0x1225d7['subType']==_0x57913f){if(_0x45a924['containsRange'](_0x48bff1,!0x0))return null;_0x5cdf8e=_0x5cdf8e['isBefore'](_0x45a924['start'])?_0x5cdf8e:_0x45a924['start'],_0x59c7d9=_0x59c7d9['isAfter'](_0x45a924['end'])?_0x59c7d9:_0x45a924['end'],_0x30c9df?_0x45a924['start']['isBefore'](_0x30c9df['getFirstRange']()['start'])?(_0x30c9df['removeMarkers'](),_0x30c9df=_0x1225d7):_0x1225d7['removeMarkers']():_0x30c9df=_0x1225d7;}else{const _0x5c1293=_0x48bff1['getIntersection'](_0x45a924);this['_cutOutSuggestionMarker'](_0x1225d7,_0x5c1293);}}const _0x12ef75=this['editor']['plugins']['get']('Users')['me'],_0x2fccd6=_0x427844(),_0x266076=_0x12ef75['id'];if(_0x30c9df)return this['_setSuggestionRange'](_0x30c9df,this['_model']['createRange'](_0x5cdf8e,_0x59c7d9)),_0x30c9df;{const _0x16882a=this['_setSuggestionData']({'id':_0x2fccd6,'type':'formatBlock:'+_0x57913f,'data':_0x4d158f,'createdAt':new Date(),'authorId':_0x266076,'attributes':_0x334781});return this['_addSuggestionMarker']('formatBlock:'+_0x57913f,_0x2fccd6,_0x266076,this['_model']['createRange'](_0x5cdf8e,_0x59c7d9)),_0x16882a;}}['markMultiRangeBlockFormat'](_0x190fb7,_0x235513,_0x283145=[],_0x270835=null,_0x126a14={}){_0x235513['formatGroupId']||(_0x235513['formatGroupId']=_0x235513['commandName']);const _0x5d84d6=_0x190fb7[0x0];_0x235513['multipleBlocks']=_0x5d84d6['is']('range'),_0x270835=_0x270835||Lt(_0x235513);const _0x19b9f4=_0x283145['map'](_0x107931=>qt(_0x107931,this['_model'])),_0x1f0d7b=_0x5d84d6['is']('range')?_0x190fb7:_0x190fb7['map'](_0x4b23d9=>qt(_0x4b23d9,this['_model']));if(this['_trackingSessionId']&&(_0x126a14['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4880fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'accept');return this['forceDefaultExecution'](()=>_0x4880fb(_0x1f0d7b,_0x235513,_0x126a14)),null;}_0x19b9f4['push'](..._0x1f0d7b);let _0x342cd9=!0x0;for(const _0x2170c0 of _0x19b9f4)if(!this['_rangeIsInLocalUserInsertion'](_0x2170c0)){_0x342cd9=!0x1;break;}if(_0x342cd9&&'always'!==this['_trackFormatChanges']){const _0x10ff1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'accept');return this['forceDefaultExecution'](()=>_0x10ff1c(_0x1f0d7b,_0x235513,_0x126a14)),null;}const _0x8274a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a330a of this['getSuggestions']()){const _0x1b53c8=_0x4a330a['data'];if(_0x4a330a['author']['id']!=_0x8274a5['id'])continue;if('formatBlock'!=_0x4a330a['type']||_0x1b53c8['formatGroupId']!=_0x235513['formatGroupId'])continue;if(!Qt(_0x4a330a,_0x126a14))continue;const _0x2c76b0=_0x4a330a['subType']==_0x270835;for(let _0x3b81d9=0x0;_0x3b81d9<_0x1f0d7b['length'];_0x3b81d9++){const _0x583444=_0x1f0d7b[_0x3b81d9];for(const _0x731c7c of _0x4a330a['getMarkers']()){const _0x260b40=_0x731c7c['getRange']();if(_0x583444['isEqual'](_0x260b40)){_0x2c76b0?(_0x1f0d7b['splice'](_0x3b81d9,0x1),_0x3b81d9--):_0x4a330a['removeMarker'](_0x731c7c['name']);break;}}}}if(0x0==_0x1f0d7b['length'])return null;const _0x2dc749=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'join');for(const _0x3d6b00 of this['getSuggestions']()){const _0x21ab98=_0x3d6b00['data'];if(_0x3d6b00['author']['id']==_0x8274a5['id']&&('formatBlock'==_0x3d6b00['type']&&_0x21ab98['formatGroupId']==_0x235513['formatGroupId']&&_0x3d6b00['subType']==_0x270835&&Qt(_0x3d6b00,_0x126a14)&&(_0x2dc749(_0x3d6b00['getRanges'](),_0x1f0d7b)||_0x2dc749(_0x1f0d7b,_0x3d6b00['getRanges']())))){for(const _0x312b38 of _0x1f0d7b)_0x3d6b00['addRange'](_0x312b38);return _0x3d6b00;}}const _0x9b23cd=_0x427844(),_0x26fd33=_0x8274a5['id'],_0x53fb79='formatBlock:'+_0x270835,_0x1294cb=this['_setSuggestionData']({'id':_0x9b23cd,'type':_0x53fb79,'data':_0x235513,'createdAt':new Date(),'authorId':_0x26fd33,'attributes':_0x126a14});for(const _0x151f91 of _0x1f0d7b)this['_addSuggestionMarker'](_0x53fb79,_0x9b23cd,_0x26fd33,_0x151f91,T['getMultiRangeId']());return _0x1294cb;}['markDeletion'](_0x5b7b3f,_0x2f24d6=null,_0x2cab79={}){if(_0x5b7b3f['isCollapsed'])return null;const _0x236faa=this['editor']['plugins']['get']('Users')['me'],_0x5ad32a=new _0x20b456(_0x5b7b3f['start'],_0x5b7b3f['end']);this['_trackingSessionId']&&(_0x2cab79['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d2bef,meta:_0x520085}of this['_findSuggestions'](_0x5ad32a,'insertion'))if(_0x520085['isOwn']&&!_0x520085['isNextTo']){if(_0x4d2bef['isMultiRange']){const _0x18487c=_0x4d2bef['getRanges']()['filter'](_0x32bf40=>'$graveyard'!=_0x32bf40['root']['rootName']);_0x18487c['every'](_0x52a77c=>_0x5ad32a['containsRange'](_0x52a77c,!0x0))&&_0x4d2bef['discard']();if(_0x18487c['some'](_0xf9f08a=>_0xf9f08a['containsRange'](_0x5ad32a,!0x0))){const _0x2865d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f24d6,'accept');return this['forceDefaultExecution'](()=>_0x2865d5([_0x5ad32a],null,_0x2cab79)),null;}}else{const _0x1d337d=_0x5ad32a['getIntersection'](_0x4d2bef['getFirstRange']());null!==_0x1d337d&&_0x4d2bef['_onDiscard']([_0x1d337d],null,_0x2cab79);}}if(_0x5ad32a['detach'](),_0x5ad32a['isCollapsed']||'$graveyard'==_0x5ad32a['root']['rootName'])return null;let _0x31253f=null,_0x5662b1=_0x5ad32a['start'],_0xb91a9b=_0x5ad32a['end'];const _0x575446=this['_findSuggestions'](_0x5ad32a,'deletion');for(const {suggestion:_0x531ef6,meta:_0xc87558}of _0x575446){const _0x3be59f=this['_model']['createRange'](_0x5662b1,_0xb91a9b);if(_0xc87558['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc87558['containsRangeInObject']&&!_0xc87558['isInsideObject'])){if(_0x531ef6['isMultiRange']){if(!Qt(_0x531ef6,_0x2cab79))continue;let _0x3c5fe7=!0x0;for(const _0x439970 of _0x531ef6['getRanges']()){if(_0x439970['containsRange'](_0x3be59f,!0x0))return _0x531ef6;_0x3be59f['containsRange'](_0x439970)||(_0x3c5fe7=!0x1);}_0x3c5fe7&&_0x531ef6['discard']();}else{const _0x5badf2=_0x531ef6['getFirstRange']();if(_0x5badf2['containsRange'](_0x3be59f,!0x0))return _0x531ef6;if(!Qt(_0x531ef6,_0x2cab79)){_0x3be59f['containsRange'](_0x5badf2)?_0x531ef6['removeMarkers']():_0x5badf2['containsPosition'](_0x5662b1)?_0x5662b1=_0x5badf2['end']:_0x5badf2['containsPosition'](_0xb91a9b)&&(_0xb91a9b=_0x5badf2['start']);continue;}_0x5662b1=_0x5662b1['isBefore'](_0x5badf2['start'])?_0x5662b1:_0x5badf2['start'],_0xb91a9b=_0xb91a9b['isAfter'](_0x5badf2['end'])?_0xb91a9b:_0x5badf2['end'],_0x2cab79=Object['assign']({},_0x531ef6['attributes']),_0x31253f?_0x5badf2['start']['isBefore'](_0x31253f['getFirstRange']()['start'])?(_0x31253f['removeMarkers'](),_0x31253f=_0x531ef6):_0x531ef6['removeMarkers']():_0x31253f=_0x531ef6;}}}if(_0x31253f)return this['_setSuggestionRange'](_0x31253f,this['_model']['createRange'](_0x5662b1,_0xb91a9b)),_0x31253f;{const _0x4f7299=_0x427844(),_0x1d63d4=this['_model']['createRange'](_0x5662b1,_0xb91a9b),_0x4992ac=_0x236faa['id'],_0x1a1eb4=_0x2f24d6?'deletion:'+_0x2f24d6:'deletion',_0x4e08a6=this['_setSuggestionData']({'id':_0x4f7299,'type':_0x1a1eb4,'createdAt':new Date(),'authorId':_0x4992ac,'attributes':_0x2cab79});return this['_addSuggestionMarker'](_0x1a1eb4,_0x4f7299,_0x4992ac,_0x1d63d4),_0x4e08a6;}}['markMultiRangeDeletion'](_0x2c7a04,_0x244c9b='multi',_0x4007c5={}){const _0x3766c3=this['editor']['plugins']['get']('Users')['me'],_0x4d3aa3=_0x2c7a04['map'](_0x1dd3a0=>new _0x20b456(_0x1dd3a0['start'],_0x1dd3a0['end'])),_0x44c4bd=new Set();this['_trackingSessionId']&&(_0x4007c5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xe93da,meta:_0x4b248b}of this['_findSuggestions'](_0x4d3aa3,'insertion'))_0x4b248b['isOwn']&&!_0x4b248b['isNextTo']&&_0x44c4bd['add'](_0xe93da);for(const _0x219ea1 of _0x44c4bd)if(_0x219ea1['isMultiRange']){const _0xc18ec2=_0x219ea1['getRanges']();(!_0x219ea1['attributes']||!_0x219ea1['attributes']['skipNestingCheck'])&&(_0xc18ec2['every'](_0x22bb41=>_0x4d3aa3['some'](_0x5b90f6=>_0x5b90f6['containsRange'](_0x22bb41,!0x0)))&&_0x219ea1['discard']());if(_0x4d3aa3['every'](_0x117cd0=>_0xc18ec2['some'](_0x59a380=>_0x59a380['containsRange'](_0x117cd0,!0x0)))){const _0x436dd8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'accept');return this['forceDefaultExecution'](()=>_0x436dd8(_0x2c7a04,null,_0x4007c5)),null;}}else{const _0x281d05=_0x219ea1['getFirstRange']();_0x4d3aa3['some'](_0x8feb49=>_0x8feb49['containsRange'](_0x281d05,!0x0))&&_0x219ea1['discard']();if(_0x4d3aa3['every'](_0x261abd=>_0x281d05['containsRange'](_0x261abd,!0x0))){const _0x479950=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'accept');return this['forceDefaultExecution'](()=>_0x479950(_0x4d3aa3,null,_0x4007c5)),null;}}const _0x37143e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'join');let _0x28fd18=null;for(const _0x4fea56 of this['getSuggestions']())if(_0x4fea56['author']['id']==_0x3766c3['id']&&_0x4fea56['isInContent']&&'deletion'==_0x4fea56['type']&&_0x4fea56['subType']==_0x244c9b&&Qt(_0x4fea56,_0x4007c5)&&(_0x37143e(_0x4fea56['getRanges'](),_0x4d3aa3)||_0x37143e(_0x4d3aa3,_0x4fea56['getRanges']()))){if(_0x28fd18){if(_0x4fea56['commentThread']&&_0x4fea56['commentThread']['length'])continue;for(const _0x38e2ff of _0x4fea56['getRanges']())_0x28fd18['isIntersectingWithRange'](_0x38e2ff)||_0x28fd18['addRange'](_0x38e2ff);_0x4fea56['removeMarkers']();}else{_0x28fd18=_0x4fea56;for(const _0x4ca386 of _0x4d3aa3)_0x4fea56['isIntersectingWithRange'](_0x4ca386)||_0x4fea56['addRange'](_0x4ca386);}}if(_0x28fd18)return _0x28fd18;_0x44c4bd['clear']();for(const {suggestion:_0x2fbdd9,meta:_0x1b794a}of this['_findSuggestions'](_0x4d3aa3,'deletion'))_0x1b794a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b794a['containsRangeInObject']&&!_0x1b794a['isInsideObject'])&&Qt(_0x2fbdd9,_0x4007c5)&&_0x44c4bd['add'](_0x2fbdd9);for(const _0x17e2d2 of _0x44c4bd){const _0x29befe=_0x17e2d2['getRanges']();if(!_0x4007c5||!_0x4007c5['skipNestingCheck']){if(_0x4d3aa3['every'](_0x5763f7=>_0x29befe['some'](_0x1316b2=>_0x1316b2['containsRange'](_0x5763f7,!0x0))))return _0x17e2d2;}(!_0x17e2d2['attributes']||!_0x17e2d2['attributes']['skipNestingCheck'])&&(_0x29befe['every'](_0x2e45e9=>_0x4d3aa3['some'](_0x89d9ee=>_0x89d9ee['containsRange'](_0x2e45e9,!0x0)))&&_0x17e2d2['discard']());}const _0x548e70=_0x427844(),_0x234fb5=_0x3766c3['id'],_0x33eba='deletion:'+_0x244c9b,_0x2ed518=this['_setSuggestionData']({'id':_0x548e70,'type':_0x33eba,'createdAt':new Date(),'authorId':_0x234fb5,'attributes':_0x4007c5});for(const _0x33180a of _0x4d3aa3)_0x33180a['detach'](),_0x33180a['isCollapsed']||'$graveyard'==_0x33180a['root']['rootName']||this['_addSuggestionMarker'](_0x33eba,_0x548e70,_0x234fb5,_0x33180a,T['getMultiRangeId']());return _0x2ed518;}['markAttributeChange'](_0x1f08ef,_0x12857b,_0xf3d088,_0x2b2378,_0x2044a2){if(_0x1f08ef['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x45c163=this['editor']['plugins']['get']('Users')['me']['id'],_0x576138=Array['from'](this['_suggestions']['values']())['filter'](_0xb09f2e=>'attribute'==_0xb09f2e['type']&&_0xb09f2e['data']['key']==_0x12857b&&_0xb09f2e['isIntersectingWithRange'](_0x1f08ef));if(this['_trackingSessionId']&&(_0x2044a2['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x38308d=this['_findSuggestions'](_0x1f08ef,'insertion')['filter'](({meta:_0x52adde})=>_0x52adde['isOwn']&&!_0x52adde['isInsideObject']&&!_0x52adde['isNextTo'])['map'](({suggestion:_0x114b0a})=>_0x114b0a);_0x576138['unshift'](..._0x38308d);}const _0x422879=new Map([[_0x1f08ef,_0xf3d088]]);for(const _0x314313 of _0x576138){const _0x36cd6b='attribute'==_0x314313['type']?_0x314313['data']['oldValue']:void 0x0,_0x59141e=_0x314313['getFirstRange'](),_0x59e36b=Array['from'](_0x422879['keys']())['find'](_0x4c409d=>_0x4c409d['isIntersecting'](_0x59141e));if(!_0x59e36b)continue;const _0x26b213=_0x59e36b['getDifference'](_0x59141e);this['_isBlockAttribute'](_0x12857b)&&'insertion'==_0x314313['type']&&0x0!=_0x26b213['length']||(_0x422879['delete'](_0x59e36b),_0x26b213['forEach'](_0x1ab3d7=>{_0x422879['set'](_0x1ab3d7,_0xf3d088);}),'insertion'!=_0x314313['type']&&_0x36cd6b!=_0x2b2378&&_0x422879['set'](_0x59e36b['getIntersection'](_0x59141e),_0x36cd6b));}const _0x29f3aa=[];for(const [_0x27daf7,_0x480a93]of _0x422879){const _0x4cbacf=_0x427844(),_0x235927={'key':_0x12857b,'oldValue':_0x480a93,'newValue':_0x2b2378};_0x12857b['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':_0x12857b});const _0x207607=('attribute:'+(_0x12857b+'|'+Lt({'newValue':_0x2b2378})))['substring'](0x0,0x3c),_0x2bb07f=this['_setSuggestionData']({'id':_0x4cbacf,'type':_0x207607,'data':_0x235927,'createdAt':new Date(),'authorId':_0x45c163,'attributes':_0x2044a2});_0x29f3aa['push'](_0x2bb07f),this['_addSuggestionMarker'](_0x207607,_0x4cbacf,_0x45c163,_0x27daf7);}return _0x29f3aa;}['enableDefaultAttributesIntegration'](_0x5e2b6b){this['enableCommand'](_0x5e2b6b,(_0x11ce69,..._0x2b4b27)=>{this['recordAttributeChanges'](()=>{_0x11ce69(..._0x2b4b27);});});}['registerBlockAttribute'](_0x2adad5){this['_blockAttributeKeys']['add'](_0x2adad5);}['registerInlineAttribute'](_0x44c782){this['_inlineAttributeKeys']['add'](_0x44c782);}['startTrackingSession'](_0x1dc907){return this['_trackingSessionId']=void 0x0!==_0x1dc907?_0x1dc907:_0x427844(),this['_trackingSessionId'];}['_getAttributeKey'](_0x455b9e){return'attribute'==_0x455b9e['type']?_0x455b9e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x166d33,_0x2a6c59){const _0x18d9f4=_0x166d33['getFirstMarker']();this['_model']['change'](_0x198cb6=>{_0x198cb6['updateMarker'](_0x18d9f4,{'range':_0x2a6c59});});}['_addThreadToSuggestion'](_0x173e19){const _0x316834=_0x173e19['id'],_0xb6b7cc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x316834)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb6b7cc,'threadId':_0x316834,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f3501=this['_commentsRepository']['getCommentThread'](_0x316834);_0x3f3501['unbind']('isRemovable'),_0x3f3501['isRemovable']=!0x1,_0x173e19['commentThread']=_0x3f3501;}['_checkSuggestionCorrectness'](_0x22f718,_0x53689d,_0x3cd338,_0x19d24b){if(_0x22f718['type']!=_0x53689d||_0x22f718['subType']!=_0x3cd338||_0x22f718['creator']['id']!=_0x19d24b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59d332('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54bc81,_0x596d23){const _0x4653ce=_0x54bc81['getFirstRange']();if(_0x596d23['isEqual'](_0x4653ce))_0x54bc81['removeMarkers']();else{if(_0x4653ce['containsRange'](_0x596d23)){const _0x5ee093=this['_model']['createPositionAt'](_0x596d23['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x4653ce['start'],_0x5ee093));const _0x3e3d10=_0x427844(),_0x67b27=_0x54bc81['creator']['id'],_0x919526=_0x54bc81['type']+':'+_0x54bc81['subType'];this['_setSuggestionData']({'id':_0x3e3d10,'type':_0x919526,'createdAt':new Date(),'authorId':_0x67b27,'data':_0x54bc81['data'],'attributes':_0x54bc81['attributes']});const _0x43a96e=this['_model']['createPositionAt'](_0x596d23['end']['parent'],'after'),_0x1323d9=this['_model']['createRange'](_0x43a96e,_0x4653ce['end']);this['_addSuggestionMarker'](_0x919526,_0x3e3d10,_0x67b27,_0x1323d9);}else{if(_0x4653ce['containsPosition'](_0x596d23['start'])){const _0x566efd=this['_model']['createPositionAt'](_0x596d23['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x4653ce['start'],_0x566efd));}else{const _0x3a4222=this['_model']['createPositionAt'](_0x596d23['end']['parent'],'after');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x3a4222,_0x4653ce['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x506a31){for(const {suggestion:_0x497d24,meta:_0x42ca2e}of this['_findSuggestions'](_0x506a31,'insertion')){if(!_0x42ca2e['isOwn'])continue;const _0x3545bc=_0x497d24['getRanges']();for(const _0x378a14 of _0x3545bc)if(!_0x506a31['getDifference'](_0x378a14)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2987db){const _0x3d1fa0=this['editor']['plugins']['get']('Users')['getUser'](_0x2987db);if(!_0x3d1fa0)throw new _0x59d332('track-changes-user-not-found',this);return _0x3d1fa0;}['_getExternalAuthor'](_0x350e0e){const _0x52e0b8=this['editor']['plugins']['get']('Users'),_0x155c52=_0x17437d('external:'+_0x350e0e),_0x55b88e=_0x52e0b8['getUser'](_0x155c52);return _0x55b88e||_0x52e0b8['addUser']({'id':_0x155c52,'name':_0x350e0e});}['_createSuggestion'](_0x35ac81,_0x1bd56a,_0x4cf8b7,_0x497b04,_0x5b6ecb,_0x505c8a){const _0x50a206=this['_getAuthorFromId'](_0x497b04),_0x2d070e=this['_suggestionFactory']['buildSuggestion'](_0x35ac81,_0x1bd56a,_0x4cf8b7,_0x50a206,_0x5b6ecb,_0x43c93f=>{this['_updateSuggestionData'](_0x4cf8b7,{'attributes':_0x43c93f});const _0x246f90=this['getSuggestion'](_0x4cf8b7);this['_joinWithAdjacentSuggestions'](new Set([_0x246f90])),this['_refreshSuggestionsChain'](new Set([_0x246f90]));},_0x505c8a);return this['listenTo'](_0x2d070e,'accept',()=>{this['_updateSuggestionData'](_0x4cf8b7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2d070e,'discard',()=>{this['_updateSuggestionData'](_0x4cf8b7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4cf8b7,_0x2d070e),this['_suggestionState']['set'](_0x2d070e,'notReady'),_0x2d070e;}['_splitMarkerName'](_0x484cce){const _0x3245da=_0x484cce['split'](':');return{'group':_0x3245da[0x0],'type':_0x3245da[0x1],'subType':_0x3245da['length']>=0x5?_0x3245da[0x2]:null,'id':_0x3245da['length']<0x5?_0x3245da[0x2]:_0x3245da[0x3],'authorId':_0x3245da['length']<0x5?_0x3245da[0x3]:_0x3245da[0x4],'markerCount':0x6==_0x3245da['length']?_0x3245da[0x5]:null};}['_breakSuggestionMarker'](_0x496efd,_0x3339d8,_0xd7447a){const _0x4aba52=_0x496efd['getFirstRange'](),_0x5d2ed5=_0x4aba52['start'],_0x23cf03=_0x4aba52['end'];this['_setSuggestionRange'](_0x496efd,this['_model']['createRange'](_0x5d2ed5,_0x3339d8));const _0x29cea8=_0x427844(),_0x2cf7bf=_0x496efd['creator']['id'],_0x1c9cc7=_0x496efd['type']+(_0x496efd['subType']?':'+_0x496efd['subType']:'');this['_setSuggestionData']({'id':_0x29cea8,'type':_0x1c9cc7,'createdAt':new Date(),'authorId':_0x2cf7bf,'originalSuggestionId':_0x496efd['_originalSuggestionId']||_0x496efd['id'],'attributes':_0x496efd['attributes'],'data':_0x496efd['data']});const _0x49df18=this['_getAttributeKey'](_0x496efd);('formatBlock'==_0x496efd['type']||_0x49df18&&this['_isBlockAttribute'](_0x49df18))&&(_0xd7447a=this['_model']['createPositionBefore'](_0xd7447a['parent'])),this['_addSuggestionMarker'](_0x1c9cc7,_0x29cea8,_0x2cf7bf,this['_model']['createRange'](_0xd7447a,_0x23cf03));}['_findSuggestions'](_0xde3c16,_0x34c245=null){const _0x27e0bc=[],_0x52defb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xde3c16)||(_0xde3c16=[_0xde3c16]);for(const _0xd3e582 of this['getSuggestions']()){if(!_0xd3e582['isInContent'])continue;if(_0x34c245&&_0xd3e582['type']!=_0x34c245)continue;let _0x4cdb2f=!0x1;for(const _0x38cd56 of _0xd3e582['getRanges']()){for(const _0xa41cf of _0xde3c16){const _0xe70eb4=_0xa41cf['start']['isEqual'](_0x38cd56['end'])||_0xa41cf['end']['isEqual'](_0x38cd56['start']);if(_0xe70eb4||_0xa41cf['getIntersection'](_0x38cd56)){const _0x5ab920=_0xa41cf['containsRange'](_0x38cd56)&&Ft(this['_model']['schema'],_0x38cd56['start'],_0xa41cf),_0x37905e=_0x38cd56['containsRange'](_0xa41cf)&&Ft(this['_model']['schema'],_0xa41cf['start'],_0x38cd56);_0x27e0bc['push']({'suggestion':_0xd3e582,'meta':{'isOwn':_0x52defb==_0xd3e582['author'],'isNextTo':_0xe70eb4,'isInsideObject':_0x5ab920,'containsRangeInObject':_0x37905e}}),_0x4cdb2f=!0x0;break;}}if(_0x4cdb2f)break;}}return _0x27e0bc;}['_addSuggestionMarker'](_0x70f780,_0x14c457,_0x275502,_0x3f3f4e,_0x55b915){this['_model']['change'](_0x89f79a=>{let _0x26679a='suggestion:'+_0x70f780+':'+_0x14c457+':'+_0x275502;_0x55b915&&(_0x26679a=_0x26679a+':'+_0x55b915),_0x89f79a['addMarker'](_0x26679a,{'range':_0x3f3f4e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4eedcb){const _0x54eb2a=_0x4eedcb['previous'],_0xe4be8=_0x4eedcb['next'];_0x4eedcb['previous']=null,_0x4eedcb['next']=null,null!=_0x54eb2a&&_0x54eb2a['next']==_0x4eedcb&&(_0x54eb2a['next']=_0xe4be8),null!=_0xe4be8&&_0xe4be8['previous']==_0x4eedcb&&(_0xe4be8['previous']=_0x54eb2a),'ready'==this['_suggestionState']['get'](_0x4eedcb)&&(this['_suggestionState']['set'](_0x4eedcb,'removed'),this['fire']('suggestionUnloaded',_0x4eedcb,_0x54eb2a,_0xe4be8));}['_setSuggestionData'](_0x21abfb){const _0x213272=_0x21abfb['id'],_0x2d9b72=this['addSuggestionData'](_0x21abfb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b0bbc=this['editor']['plugins']['get']('PendingActions'),_0x7845bf=_0x2d9b72['hasComments'],_0x56dd8f=_0x2d9b72['subType']?_0x2d9b72['type']+':'+_0x2d9b72['subType']:_0x2d9b72['type'],_0x121186=this['editor']['locale'],_0x5dda89=_0x1b0bbc['add'](o(_0x121186,'PENDING_ACTION_SUGGESTION')),_0xd9670={'id':_0x213272,'type':_0x56dd8f,'hasComments':_0x7845bf,'data':_0x21abfb['data']||null,'originalSuggestionId':_0x21abfb['originalSuggestionId']||null,'attributes':_0x2d9b72['attributes']};this['_adapter']['addSuggestion'](_0xd9670)['then'](_0x22f2a6=>{_0x2d9b72['_saved']=!0x0,_0x1b0bbc['remove'](_0x5dda89),_0x22f2a6&&_0x22f2a6['createdAt']&&(this['_suggestions']['get'](_0x213272)['createdAt']=_0x22f2a6['createdAt']);})['catch'](_0x196b77=>{throw _0x14c28e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d9b72['discard']();}),_0x2d9b72['stopListening'](),this['_suggestions']['delete'](_0x2d9b72['id']),this['_suggestionState']['delete'](_0x2d9b72),_0x196b77;});}return _0x2d9b72;}['_isBlockAttribute'](_0x44e6bc){return this['_blockAttributeKeys']['has'](_0x44e6bc);}['_updateSuggestionData'](_0x3b4f6f,_0x2320d0){const _0x232872=this['editor']['plugins']['get']('PendingActions'),_0x1471cb=this['getSuggestion'](_0x3b4f6f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1471cb['_saved']){const _0x429701=_0x232872['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3b4f6f,_0x2320d0)['then'](()=>{_0x232872['remove'](_0x429701);});}else _0x1471cb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3b4f6f,_0x2320d0);});}}['_getSuggestionData'](_0x22545a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59d332('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22545a);}['_handleNewSuggestionMarker'](_0x2cee23){const {id:_0xcf674f,type:_0x4804da,subType:_0x266f56,authorId:_0x33e5a4}=this['_splitMarkerName'](_0x2cee23),_0x1af3ad=this['_suggestions']['get'](_0xcf674f)||this['_createSuggestion'](_0x4804da,_0x266f56,_0xcf674f,_0x33e5a4,{});switch(this['_checkSuggestionCorrectness'](_0x1af3ad,_0x4804da,_0x266f56,_0x33e5a4),this['_suggestionState']['get'](_0x1af3ad)){case'notReady':this['_getSuggestionData'](_0xcf674f)['then'](_0x263989=>{let _0xe73b2f=Promise['resolve']();_0x263989['hasComments']&&(_0xe73b2f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcf674f})),_0xe73b2f['then'](()=>{this['addSuggestionData'](_0x263989)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1af3ad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcf674f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1af3ad,'ready'),this['fire']('suggestionLoaded',_0x1af3ad);break;case'ready':this['fire']('suggestionChanged',_0x1af3ad);}return _0x1af3ad['addMarkerName'](_0x2cee23),_0x1af3ad;}['_refreshSuggestionsChain'](_0x2d0fb6){const _0x497d29=Array['from'](_0x2d0fb6),_0x12df11=_0x497d29['filter'](_0x464b1a=>'attribute'==_0x464b1a['type']);this['_refreshAttributeSuggestionsChain'](_0x12df11);const _0x1037ab=_0x497d29['filter'](_0x44ba7c=>!_0x44ba7c['isMultiRange']&&'attribute'!=_0x44ba7c['type']),_0x3fcfb8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44d5e3=>!_0x44d5e3['isMultiRange']&&'attribute'!=_0x44d5e3['type']),_0x213f74=_0x3fcfb8['filter'](_0x5b6d94=>!_0x2d0fb6['has'](_0x5b6d94)),_0x112a41=new Map(_0x3fcfb8['map'](_0x183ffe=>[_0x183ffe,this['_suggestionFactory']['getSuggestionCallback'](_0x183ffe['type'],_0x183ffe['subType'],'chain')])),_0x23e40f=new Map(_0x3fcfb8['map'](_0x5aa84a=>[_0x5aa84a,_0x5aa84a['getFirstRange']()])),_0x17ec66=new Set(),_0x4fafba=new Set();for(let _0x547f95=0x0;_0x547f95<_0x1037ab['length'];_0x547f95++)_0x44da66(_0x1037ab[_0x547f95],_0x1037ab,_0x547f95+0x1);for(let _0x19ffe4=0x0;_0x19ffe4<_0x1037ab['length'];_0x19ffe4++)_0x44da66(_0x1037ab[_0x19ffe4],_0x213f74,0x0);const _0x1cc9ef=new Set();for(let _0x4e2543=0x0;_0x4e2543<_0x1037ab['length'];_0x4e2543++){const _0x236d5c=_0x1037ab[_0x4e2543];!_0x4fafba['has'](_0x236d5c)&&_0x236d5c['previous']&&(_0x1cc9ef['add'](_0x236d5c['previous']),_0x236d5c['previous']['next']===_0x236d5c&&(_0x236d5c['previous']['next']=null),_0x236d5c['previous']=null),!_0x17ec66['has'](_0x236d5c)&&_0x236d5c['next']&&(_0x1cc9ef['add'](_0x236d5c['next']),_0x236d5c['next']['previous']===_0x236d5c&&(_0x236d5c['next']['previous']=null),_0x236d5c['next']=null);}function _0x44da66(_0x96996,_0x517771,_0x1fcd72){for(let _0x49f1ba=_0x1fcd72;_0x49f1ba<_0x517771['length'];_0x49f1ba++){const _0xb6083d=_0x624875(_0x96996,_0x517771[_0x49f1ba]);_0xb6083d&&(_0xb6083d[0x0]['next']=_0xb6083d[0x1],_0xb6083d[0x1]['previous']=_0xb6083d[0x0],_0x17ec66['add'](_0xb6083d[0x0]),_0x4fafba['add'](_0xb6083d[0x1]));}}function _0x624875(_0x19c196,_0x558047){if(_0x19c196['author']['id']!==_0x558047['author']['id'])return null;const _0x5a1bd4=_0x112a41['get'](_0x19c196)(_0x19c196,_0x558047,_0x23e40f['get'](_0x19c196),_0x23e40f['get'](_0x558047));if(!_0x5a1bd4)return null;return _0x112a41['get'](_0x558047)(_0x19c196,_0x558047,_0x23e40f['get'](_0x19c196),_0x23e40f['get'](_0x558047))?_0x5a1bd4[0x1]['commentThread']&&_0x5a1bd4[0x1]['commentThread']['length']?null:_0x5a1bd4:null;}_0x1cc9ef['size']&&this['_refreshSuggestionsChain'](_0x1cc9ef);}['_refreshAttributeSuggestionsChain'](_0x374886){if(0x0==_0x374886['length'])return;const _0x1a57cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x179c82=>'attribute'==_0x179c82['type']&&_0x179c82['_isDataLoaded']),_0x3a2f1c=[],_0x4655ac=new Map();for(const _0x3c6ac3 of _0x1a57cd){const _0xf60cc7=_0x17437d(_0x3c6ac3['attributes']);_0x4655ac['has'](_0xf60cc7)||(_0x4655ac['set'](_0xf60cc7,_0x3a2f1c['length']),_0x3a2f1c['push']([]));const _0x3280d4=_0x4655ac['get'](_0xf60cc7);_0x3a2f1c[_0x3280d4]['push'](_0x3c6ac3);}!(function(){_0x3a2f1c['sort']((_0x41247e,_0x426ba0)=>{const _0x2dd398=_0x41247e[0x0]['createdAt'],_0x179f3b=_0x426ba0[0x0]['createdAt'];return _0x2dd398==_0x179f3b?_0x41247e[0x0]['attributes']['groupId']<_0x426ba0[0x0]['attributes']['groupId']?-0x1:0x1:_0x2dd398<_0x179f3b?-0x1:0x1;});for(const _0x142675 of _0x3a2f1c)_0x142675['sort']((_0xdea70f,_0x4bc75e)=>_0xdea70f['id']<_0x4bc75e['id']?-0x1:0x1);}());for(let _0x4a8ae2=0x0;_0x4a8ae2<_0x3a2f1c['length'];_0x4a8ae2++){if(0x0==_0x3a2f1c[_0x4a8ae2]['length'])continue;const _0x503ce8=[];for(let _0x5cdfd2=_0x4a8ae2+0x1;_0x5cdfd2<_0x3a2f1c['length'];_0x5cdfd2++)0x0!=_0x3a2f1c[_0x5cdfd2]['length']&&_0x5b780e(_0x3a2f1c[_0x4a8ae2],_0x3a2f1c[_0x5cdfd2])&&_0x503ce8['push'](_0x5cdfd2);for(const _0x32aa9a of _0x503ce8)_0x3a2f1c[_0x4a8ae2]=_0x3a2f1c[_0x4a8ae2]['concat'](_0x3a2f1c[_0x32aa9a]),_0x3a2f1c[_0x32aa9a]=[];}for(const _0x3ae529 of _0x3a2f1c)for(let _0x45eb4e=0x0;_0x45eb4e<_0x3ae529['length'];_0x45eb4e++){const _0x21f91d=_0x3ae529[_0x45eb4e+0x1]||null;_0x3ae529[_0x45eb4e]['next']!==_0x21f91d&&(_0x3ae529[_0x45eb4e]['next']=_0x21f91d);}for(const _0x47126e of _0x3a2f1c)for(let _0x3a4105=0x0;_0x3a4105<_0x47126e['length'];_0x3a4105++){const _0x19b7c6=_0x47126e[_0x3a4105-0x1]||null;_0x47126e[_0x3a4105]['previous']!==_0x19b7c6&&(_0x47126e[_0x3a4105]['previous']=_0x19b7c6);}function _0x5b780e(_0x1f1970,_0x27267c){if(_0x1f1970[0x0]['attributes']['groupId']!==_0x27267c[0x0]['attributes']['groupId']&&_0x1f1970[0x0]['author']!==_0x27267c[0x0]['author'])return!0x1;if(!function(_0x4b67e3,_0x5c1eb2){if(!_0x4b67e3['hasComments']&&!_0x5c1eb2['hasComments'])return!0x0;if(_0x4b67e3['hasComments']&&_0x5c1eb2['hasComments'])return!0x1;if(_0x4b67e3['hasComments']&&_0x5c1eb2['createdAt']<_0x4b67e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c1eb2['hasComments']&&_0x4b67e3['createdAt']<_0x5c1eb2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1f1970[0x0],_0x27267c[0x0]))return!0x1;const _0x298714=Ut(_0x1f1970[0x0]['attributes'],['groupId','trackingSessionId']),_0x39ba05=Ut(_0x27267c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x23cad6(_0x298714,_0x39ba05))return!0x1;if(_0x1f1970[0x0]['attributes']['groupId']==_0x27267c[0x0]['attributes']['groupId'])return!0x0;if(_0x1f1970[0x0]['attributes']['trackingSessionId']!==_0x27267c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1f1970['every'](_0x82c462=>_0x27267c['some'](_0x53f8d9=>_0x82c462['getFirstRange']()['isEqual'](_0x53f8d9['getFirstRange']())))&&_0x27267c['every'](_0x1f27f9=>_0x1f1970['some'](_0x199a40=>_0x1f27f9['getFirstRange']()['isEqual'](_0x199a40['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fc010){const _0x449de8=Array['from'](_0x2fc010),_0x1abbd7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a6875=_0x1abbd7['filter'](_0x2d506f=>!_0x2fc010['has'](_0x2d506f)),_0x110364=new Map(_0x449de8['map'](_0x1b184a=>[_0x1b184a,this['_suggestionFactory']['getSuggestionCallback'](_0x1b184a['type'],_0x1b184a['subType'],'join')])),_0x520480=new Map(_0x1abbd7['map'](_0x1b7b64=>[_0x1b7b64,_0x1b7b64['getRanges']()]));for(let _0x377160=0x0;_0x377160<_0x449de8['length'];_0x377160++){if(_0xaaa7bb(this,_0x449de8[_0x377160],_0x449de8,_0x377160+0x1))return!0x0;}for(let _0x58d600=0x0;_0x58d600<_0x449de8['length'];_0x58d600++){if(_0xaaa7bb(this,_0x449de8[_0x58d600],_0x5a6875,0x0))return!0x0;}return!0x1;function _0xaaa7bb(_0x55e467,_0xfb02fc,_0x365701,_0x406bbf){for(let _0x31a497=_0x406bbf;_0x31a497<_0x365701['length'];_0x31a497++){const _0x40a676=_0x365701[_0x31a497];if(_0x40a676['type']!==_0xfb02fc['type']||_0x40a676['author']['id']!==_0xfb02fc['author']['id']||_0x40a676['subType']!==_0xfb02fc['subType'])continue;if(!Wt(_0xfb02fc,_0x40a676))continue;if('attribute'==_0xfb02fc['type']&&_0xfb02fc['data']['oldValue']!=_0x40a676['data']['oldValue'])continue;if('attribute'==_0xfb02fc['type']&&_0x55e467['_isBlockAttribute'](_0xfb02fc['data']['key']))continue;if('formatBlock'==_0xfb02fc['type']){const _0x3b3bc8=_0x55e467['editor']['model'],_0x5e83b5=_0xfb02fc['getContainedElement']();if(_0x5e83b5&&(_0x3b3bc8['schema']['isObject'](_0x5e83b5)||_0x3b3bc8['schema']['isLimit'](_0x5e83b5)))continue;}const _0x29295f=_0x110364['get'](_0xfb02fc),_0x48433d=_0x520480['get'](_0xfb02fc),_0x2e478f=_0x520480['get'](_0x40a676),_0x3d3760=_0xfb02fc['commentThread']&&_0xfb02fc['commentThread']['length'],_0x3aabf8=_0x40a676['commentThread']&&_0x40a676['commentThread']['length'];if(!_0x3d3760&&_0x29295f(_0x2e478f,_0x48433d))return _0x55e467['_joinSuggestions'](_0x40a676,_0xfb02fc),_0x520480['delete'](_0xfb02fc),!0x0;if(!_0x3aabf8&&_0x29295f(_0x48433d,_0x2e478f))return _0x55e467['_joinSuggestions'](_0xfb02fc,_0x40a676),_0x520480['delete'](_0x40a676),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d26fc,_0x8c01e3){if(_0x5d26fc['isMultiRange']){for(const _0x5815ba of _0x8c01e3['getRanges']())_0x5d26fc['addRange'](_0x5815ba);}else{const _0x3a1d7d=_0x8c01e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d26fc,this['_model']['createRange'](_0x5d26fc['getFirstRange']()['start'],_0x3a1d7d));}_0x8c01e3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5a0453,_0x3ba922,_0xc3e110){const _0x2f1512=_0x5a0453['startsWith']('format')||_0x5a0453['startsWith']('attribute')?'FORMATTING':_0x5a0453['toUpperCase']();return o(this['editor']['locale'],_0x3ba922+'_'+_0x2f1512+'_SUGGESTION_ANNOUNCEMENT',_0xc3e110);}['_initAriaMarkerChangeAnnouncements'](){const _0x74457d=this['editor'];if(!_0x74457d['ui'])return;const {ariaLiveAnnouncer:_0x3a2bd0}=_0x74457d['ui'];_0xfb66d9(this['_model'],({left:_0x395195,entered:_0x49c023})=>{for(const _0x1e70fc of _0x395195){const {group:_0x2cf402,type:_0x5d0e20}=this['_splitMarkerName'](_0x1e70fc['name']);if('suggestion'===_0x2cf402){_0x3a2bd0['announce'](this['_getMarkerAnnouncementText'](_0x5d0e20,'LEAVE'));break;}}for(const _0x2d49c1 of _0x49c023){const {group:_0x10e95d,type:_0x2cd2ba}=this['_splitMarkerName'](_0x2d49c1['name']);if('suggestion'===_0x10e95d){_0x3a2bd0['announce'](this['_getMarkerAnnouncementText'](_0x2cd2ba,'ENTER',_0x2a60c2(_0x59a850)));break;}}});}['_processAttributeChanges'](_0x3d544f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x495e29=this['editor'],_0x37eb02=_0x495e29['model']['document']['differ']['getChanges']();if(0x0==_0x37eb02['length'])return!0x1;const _0x14bb14=[],_0x5d7674=_0x37eb02['filter'](_0x86fceb=>'attribute'==_0x86fceb['type']),_0x330f0a=_0x37eb02['filter'](_0x11a052=>'insert'==_0x11a052['type']&&'$text'!=_0x11a052['name']),_0x213f6b=_0x37eb02['filter'](_0x5ba0ac=>'remove'==_0x5ba0ac['type']&&'$text'!=_0x5ba0ac['name']);for(const _0x5a5148 of _0x5d7674)_0x14bb14['push']({'key':_0x5a5148['attributeKey'],'newValue':_0x5a5148['attributeNewValue'],'oldValue':_0x5a5148['attributeOldValue'],'range':Ht(_0x5a5148['range'],_0x495e29['model'])});for(const _0x209c01 of _0x330f0a){const _0x2d1e3c=_0x213f6b['find'](_0x542186=>_0x542186['position']['isEqual'](_0x209c01['position']));_0x2d1e3c&&_0x14bb14['push']({'key':m,'newValue':_0x209c01['name'],'oldValue':_0x2d1e3c['name'],'range':_0x495e29['model']['createRangeOn'](_0x209c01['position']['nodeAfter'])});}return 0x0!=_0x14bb14['length']&&this['_reduceExistingSuggestions'](_0x3d544f,_0x14bb14);}['_processAttributeSuggestions'](_0x5973e7){let _0x1254fa=!0x1;const _0x32c72e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43db44=>_0x43db44['data']['newRange']&&_0x43db44['name']['startsWith']('suggestion:attribute:'));for(const _0x2730ad of _0x32c72e){const {subType:_0x313803,id:_0x2bfebc}=this['_splitMarkerName'](_0x2730ad['name']),_0x31ac3f=_0x313803['split']('|')[0x0];for(const _0x233fa5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x233fa5['id']!=_0x2bfebc&&'attribute'==_0x233fa5['type']&&_0x233fa5['data']&&_0x233fa5['data']['key']==_0x31ac3f&&_0x233fa5['getFirstRange']()['isIntersecting'](_0x2730ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x233fa5,_0x2730ad['data']['newRange'],_0x5973e7),_0x1254fa=!0x0);}return _0x1254fa;}['recordAttributeChanges'](_0x517950){this['_recordAttributeSuggestions']=!0x0,_0x517950();}['_isRegisteredAttribute'](_0x13d94e){const _0x5cac63=this['_isBlockAttribute'](_0x13d94e),_0x4758b8=this['_inlineAttributeKeys']['has'](_0x13d94e);return _0x5cac63||_0x4758b8;}['_reduceExistingSuggestions'](_0x4b5228,_0x7a6b5f){if(0x0==_0x7a6b5f['length'])return!0x1;let _0x1344b2=!0x1;for(const _0x5c5914 of _0x7a6b5f){const _0x44a921=this['_findSuggestions'](_0x5c5914['range'],'attribute')['filter'](_0x479f53=>!_0x479f53['meta']['isNextTo'])['map'](_0x16a7aa=>_0x16a7aa['suggestion']),_0x56b2e7=_0x17437d({'newValue':_0x5c5914['newValue']});_0x44a921['filter'](_0xc7d7d4=>{const [_0x438917,_0x2cc353]=_0xc7d7d4['subType']['split']('|');return _0x438917==_0x5c5914['key']&&_0x2cc353!=_0x56b2e7;})['forEach'](_0x5b1033=>{this['_reduceSuggestionAttributeRange'](_0x5b1033,_0x5c5914['range'],_0x4b5228),_0x1344b2=!0x0;});}return _0x1344b2;}['_reduceSuggestionAttributeRange'](_0x1076e2,_0x764eaf,_0x2f7e67){const _0xa8d701=_0x1076e2['getFirstRange']()['getDifference'](_0x764eaf);0x0!==_0xa8d701['length']?0x1!==_0xa8d701['length']?this['_breakSuggestionMarker'](_0x1076e2,_0x764eaf['start'],_0x764eaf['end']):this['_setSuggestionRange'](_0x1076e2,_0xa8d701[0x0]):_0x2f7e67['removeMarker'](_0x1076e2['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1a8d44){this['_editor']=_0x1a8d44,this['_model']=_0x1a8d44['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1606e5,_0x22936b,_0x25bca3,_0x43f9d9,_0x3b8b69,_0x1b0e85,_0x218403){return new T(this['_model'],{'type':_0x1606e5,'subType':_0x22936b,'id':_0x25bca3,'originalSuggestionId':_0x218403,'author':_0x43f9d9,'creator':_0x43f9d9,'attributes':_0x3b8b69,'onAttributesChange':_0x1b0e85,'onAccept':(..._0x66453)=>this['getSuggestionCallback'](_0x1606e5,_0x22936b,'accept')(..._0x66453),'onDiscard':(..._0x23eea9)=>this['getSuggestionCallback'](_0x1606e5,_0x22936b,'discard')(..._0x23eea9)});}['registerCustomCallback'](_0x51086c,_0x3cc3ed,_0x387ae3,_0x1a53ef){const _0xee4cb8=_0x51086c+':'+_0x3cc3ed+':'+_0x387ae3;this['_customCallbacks']['set'](_0xee4cb8,_0x1a53ef);}['getSuggestionCallback'](_0x3b3427,_0x43c445,_0xb41d6d){const _0x16ff26=_0x3b3427+':'+_0x43c445+':'+_0xb41d6d;return this['_customCallbacks']['get'](_0x16ff26)||this['_defaultCallbacks']['get'](_0x3b3427+':'+_0xb41d6d);}['_registerDefaultCallbacks'](){const _0x25aeb7=()=>!0x1,_0x490875=_0x440a3b=>{_0x440a3b['sort']((_0x360268,_0x5ef1d3)=>_0x360268['start']['isBefore'](_0x5ef1d3['start'])?0x1:-0x1),this['_model']['change'](_0x10543b=>{for(const _0x394732 of _0x440a3b){let _0x157d91;_0x157d91=_0x394732['end']['isAtEnd']&&_0x394732['end']['parent']==_0x394732['start']['nodeAfter']?_0x10543b['createSelection'](_0x394732['start']['nodeAfter'],'on'):_0x10543b['createSelection'](_0x394732),this['_model']['deleteContent'](_0x157d91,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1327ec=(_0x45b247,_0x2a34ad)=>{_0x2a34ad&&this['_model']['change'](_0x544f31=>{const {commandName:_0x422cb7,commandParams:_0x3377ab=[]}=_0x2a34ad,_0x7ffe5=_0x45b247['map'](_0x436776=>(Pt(_0x436776)&&(_0x436776=this['_model']['createRange'](_0x436776['end'])),_0x436776))['filter'](_0x271892=>'$graveyard'!==_0x271892['root']['rootName']);if(_0x7ffe5['length']<0x1)return;const _0x411f39=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f6e16=>_0x20b456['fromRange'](_0x3f6e16));_0x544f31['setSelection'](_0x7ffe5);for(const _0x1cf6db of this['_editor']['commands']['commands']())_0x1cf6db['refresh']();_0x3377ab['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x422cb7,..._0x3377ab);const _0x28e8be=_0x411f39['filter'](_0x1a7ed4=>'$graveyard'!=_0x1a7ed4['root']['rootName']);_0x28e8be['length']>0x0&&_0x544f31['setSelection'](_0x28e8be);for(const _0x5b8f11 of _0x411f39)_0x5b8f11['detach']();});},_0x40baa4=(_0x8d7dc8,_0x43cf1f)=>0x1==_0x8d7dc8['length']&&0x1==_0x43cf1f['length']&&_0x8d7dc8[0x0]['end']['isEqual'](_0x43cf1f[0x0]['start']),_0x1a091b=(_0x15d81b,_0x68431a,_0x3ef8e9,_0x41a5b9)=>zt(_0x15d81b,_0x68431a,_0x3ef8e9,_0x41a5b9)?[_0x15d81b,_0x68431a]:zt(_0x68431a,_0x15d81b,_0x41a5b9,_0x3ef8e9)?[_0x68431a,_0x15d81b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x25aeb7),this['_defaultCallbacks']['set']('insertion:discard',_0x490875),this['_defaultCallbacks']['set']('insertion:join',_0x40baa4),this['_defaultCallbacks']['set']('insertion:chain',_0x1a091b),this['_defaultCallbacks']['set']('deletion:accept',_0x490875),this['_defaultCallbacks']['set']('deletion:discard',_0x25aeb7),this['_defaultCallbacks']['set']('deletion:join',_0x40baa4),this['_defaultCallbacks']['set']('deletion:chain',_0x1a091b),this['_defaultCallbacks']['set']('formatInline:accept',_0x1327ec),this['_defaultCallbacks']['set']('formatInline:discard',_0x25aeb7),this['_defaultCallbacks']['set']('formatInline:join',_0x40baa4),this['_defaultCallbacks']['set']('formatInline:chain',_0x25aeb7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1327ec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x25aeb7),this['_defaultCallbacks']['set']('formatBlock:join',_0x40baa4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x25aeb7),this['_defaultCallbacks']['set']('attribute:accept',_0x25aeb7),this['_defaultCallbacks']['set']('attribute:discard',(_0x12d61e,_0x540697)=>{if(!_0x540697)return;const _0x5ec0e5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x18491b=>{if(_0x540697['key']==m)for(const _0x3114c1 of _0x12d61e){const _0x51b064=_0x3114c1['start']['nodeAfter'],_0x3ef773=_0x540697['oldValue'];_0x18491b['rename'](_0x51b064,_0x3ef773);}else{if(_0x5ec0e5['_isBlockAttribute'](_0x540697['key'])){for(const _0x3f4a35 of _0x12d61e)void 0x0!==_0x540697['oldValue']?_0x18491b['setAttribute'](_0x540697['key'],_0x540697['oldValue'],_0x3f4a35['start']['nodeAfter']):_0x18491b['removeAttribute'](_0x540697['key'],_0x3f4a35['start']['nodeAfter']);}else{for(const _0x48f413 of _0x12d61e)_0x540697['oldValue']?_0x18491b['setAttribute'](_0x540697['key'],_0x540697['oldValue'],_0x48f413):_0x18491b['removeAttribute'](_0x540697['key'],_0x48f413);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x40baa4);}}function Ft(_0x30ff4b,_0xc89c6d,_0x119a6a){for(const _0x28fe19 of _0xc89c6d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28fe19['root']==_0x28fe19)return!0x1;if(!_0x119a6a['containsItem'](_0x28fe19))return!0x1;if(_0x30ff4b['isObject'](_0x28fe19)||_0x30ff4b['isLimit'](_0x28fe19))return!0x0;}return!0x1;}function Pt(_0x5d8ab9){return _0x5d8ab9['end']['parent']==_0x5d8ab9['start']['nodeAfter']&&_0x5d8ab9['end']['isAtStart'];}function Gt(_0x79a8e,_0x118fe4,_0x52308b,_0x3a5b92){const _0x44a107=_0x324a17=>!_0x324a17['item']['is']('$textProxy')&&!_0x3a5b92['isObject'](_0x324a17['item']),_0x306faf=_0x79a8e['start']['getLastMatchingPosition'](_0x44a107),_0xbfc081=_0x79a8e['end']['getLastMatchingPosition'](_0x44a107,{'direction':'backward'});return(!_0x79a8e['start']['isEqual'](_0x306faf)||!_0x79a8e['end']['isEqual'](_0xbfc081))&&(_0x306faf['isBefore'](_0xbfc081)?_0x52308b['updateMarker'](_0x118fe4,{'range':_0x52308b['createRange'](_0x306faf,_0xbfc081)}):_0x52308b['removeMarker'](_0x118fe4),!0x0);}function Lt(_0x41b5c9){return _0x17437d(_0x41b5c9);}function Jt(_0xb6cfa){const _0xeea4d9=_0xb6cfa['start']['nodeAfter'];return _0xeea4d9&&_0xeea4d9['is']('element');}function Kt(_0x2c5cab){return!Pt(_0x2c5cab)&&!function(_0x5187eb){return _0x5187eb['start']['parent']==_0x5187eb['end']['nodeBefore']&&_0x5187eb['start']['isAtEnd'];}(_0x2c5cab);}function Ht(_0x17ac8c,_0x98addb){return null==_0x17ac8c['end']['nodeBefore']&&_0x17ac8c['end']['parent']==_0x17ac8c['start']['nodeAfter']?qt(_0x17ac8c['start']['nodeAfter'],_0x98addb):_0x17ac8c;}function qt(_0x182f63,_0x34d9c5){const _0xe01cde=_0x34d9c5['schema']['isObject'](_0x182f63)||_0x34d9c5['schema']['isSelectable'](_0x182f63);return _0x34d9c5['createRange'](_0x34d9c5['createPositionAt'](_0x182f63,'before'),_0xe01cde?_0x34d9c5['createPositionAfter'](_0x182f63):_0x34d9c5['createPositionAt'](_0x182f63,'end'));}function zt(_0x42a1bc,_0x549b22,_0xa714c4,_0x4ebf9d){return!!Wt(_0x42a1bc,_0x549b22)&&_0xa714c4['end']['isEqual'](_0x4ebf9d['start']);}function Wt(_0x36b930,_0x5aa9ef){if(!_0x36b930['_isDataLoaded']||!_0x5aa9ef['_isDataLoaded'])return!0x1;const _0xd7d62b=new Set(Object['keys'](_0x36b930['attributes'])),_0x13953c=new Set(Object['keys'](_0x5aa9ef['attributes']));if(_0xd7d62b['delete']('groupId'),_0x13953c['delete']('groupId'),0x0==_0xd7d62b['size']&&0x0==_0x13953c['size'])return!0x0;if(_0xd7d62b['size']!=_0x13953c['size'])return!0x1;const _0x1232c7={..._0x36b930['attributes']},_0x4c92ca={..._0x5aa9ef['attributes']};return delete _0x1232c7['groupId'],delete _0x4c92ca['groupId'],JSON['stringify'](_0x1232c7)==JSON['stringify'](_0x4c92ca);}function Qt(_0x5a86a7,_0x200bb7){const _0x38ff34=Xt(_0x5a86a7['attributes']),_0x7bfc9d=Xt(_0x200bb7);if(!_0x5a86a7['_isDataLoaded'])return!0x1;for(const _0x2ca6f8 of Object['keys'](_0x7bfc9d))if(!_0x23cad6(_0x38ff34[_0x2ca6f8],_0x7bfc9d[_0x2ca6f8]))return!0x1;return!0x0;}function Xt(_0x6b77ff){const _0xcecd20=Object['assign']({},_0x6b77ff);return delete _0xcecd20['skipNestingCheck'],delete _0xcecd20['tablePasteChainId'],_0xcecd20;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x389d9b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x12a5a0,_0x127a7d,_0x2864c5,_0x2bd4da){super(),this['model']=_0x127a7d,this['view']=_0x2864c5,this['commentThreadController']=_0x2bd4da,this['_editor']=_0x12a5a0,this['_acceptCommand']=_0x12a5a0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x12a5a0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b08f8,_0x3badb3)=>_0x2b08f8||_0x3badb3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2da56a=>_0x2da56a&&this['_editor']['model']['canEditAt'](_0x127a7d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x520b91=>_0x520b91&&this['_editor']['model']['canEditAt'](_0x127a7d['getRanges']())),this['_pendingAction']=null,_0x2864c5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2864c5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2864c5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2864c5,'change:isDirty',()=>{_0x2864c5['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 _0x55e4ef=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55e4ef);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x390189{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5877ef,_0x2338ec,_0x51c87d,_0xbf7293){super(_0x5877ef),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2805ed(_0x5877ef,o(_0x5877ef,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2338ec['authoredAt']),this['bind']('authoredAt')['to'](_0x2338ec),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',_0x2338ec,'authoredAt',this,'descriptionParts',(_0x101771,_0x39ed5a,_0x557dc1)=>{const _0x222cd0=_0x557dc1['map'](_0x4d8989=>ls(_0x4d8989['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x101771-0x1,_0x2338ec['author']['name'],_0x39ed5a?_0xbf7293['formatDateTime'](_0x39ed5a):'',new DOMParser()['parseFromString'](_0x222cd0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x164c10(),this['focusTracker']=new _0x336cee(),this['keystrokes']=new _0x1db80e(),this['focusCycler']=new _0x435308({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54890b=>_0x54890b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2338ec,this['_localUser']=_0x51c87d,this['_config']=_0xbf7293,_0xbf7293['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d2696(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x82802}=this['_config'];this['commentsListView']=new _0x82802(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',_0x218a6d=>_0x218a6d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xbefecc,_0x124b78)=>_0xbefecc||!!_0x124b78);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x207300}=this['_config'],_0x18a9a2=new _0x207300(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4765d5=_0x18a9a2['commentInputView'];return _0x18a9a2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4765d5,'value',(_0x13891c,_0x7223da,_0x596cff)=>!!_0x596cff||_0x13891c&&!_0x7223da),_0x4765d5['on']('submit',(_0x2cc791,_0x374007)=>{this['fire']('addComment',_0x374007),_0x4765d5['editor']['setData']('');}),_0x4765d5['on']('cancel',()=>this['focus']()),_0x4765d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x18a9a2;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x29eb26,_0x504462,_0x2bbb34,_0x27f517){super(_0x29eb26,_0x504462,_0x2bbb34,_0x27f517),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10042b=>_0x10042b&&_0x10042b[0x0]?_0x10042b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x15e69a,_0x37df0c)=>{let _0x249431='';for(const _0x23afc0 of _0x15e69a)_0x249431+='<p>'+ls(_0x23afc0['content'],_0x23afc0['color'])+'</p>';return _0x37df0c?_0x249431:_0x33cbe5(_0x249431,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x27f517['SuggestionView'](_0x29eb26,_0x504462,{'formatDateTime':_0x27f517['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 _0x2f00a3=this['bindTemplate'],_0x1cf872=[this['suggestionView']];return this['commentsListView']&&_0x1cf872['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1cf872['push'](this['commentThreadInputView']),_0x1cf872['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2f00a3['if']('isActive','ck-suggestion-wrapper--active'),_0x2f00a3['to']('type',_0x349339=>'ck-suggestion-'+_0x349339),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':_0x2f00a3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1cf872};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x390189{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27e1fe,_0x34399c,_0x120c15){super(_0x27e1fe),this['_model']=_0x34399c,this['_config']=_0x120c15,this['set']('description',''),this['bind']('authoredAt')['to'](_0x34399c),this['acceptButton']=this['_createButton'](o(_0x27e1fe,'Accept\x20suggestion'),_0x4d3828,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27e1fe,'Discard\x20suggestion'),_0x220b2c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x924866(_0x27e1fe,_0x34399c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x164c10([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x336cee(),this['keystrokes']=new _0x1db80e(),this['focusCycler']=new _0x435308({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4b6557=>_0x4b6557['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1aa4b5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1aa4b5['innerHTML']=this['description'],this['on']('change:description',(_0x1244bd,_0x1c1bb8,_0x21a6a1)=>{_0x1aa4b5['innerHTML']=_0x21a6a1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x110142=this['bindTemplate'],_0x1e8f34=[{'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':_0x110142['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x110142['to']('authoredAt',_0x22de38=>this['_config']['formatDateTime'](_0x22de38))}]}]},{'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']&&_0x1e8f34['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':_0x1e8f34}]};}['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'](_0x34604c,_0x2b7fcb,_0x28ed24,_0x594900,_0x55bce2){const _0x5f5085=new _0x5dfb91(this['locale']);return _0x5f5085['set']({'label':_0x34604c,'icon':_0x2b7fcb,'tooltip':!0x0,'tooltipPosition':_0x55bce2}),_0x5f5085['extendTemplate']({'attributes':{'class':_0x28ed24}}),_0x5f5085['on']('execute',()=>{this['fire'](_0x594900,this['_model']['id']);}),_0x5f5085;}['_setupKeyboardNavigation'](){const _0xf438ad=this['element'];this['keystrokes']['listenTo'](_0xf438ad);for(const _0x3e3d3b of this['focusables'])this['focusTracker']['add'](_0x3e3d3b['element']),this['keystrokes']['listenTo'](_0x3e3d3b['element']);this['keystrokes']['set']('enter',(_0x44217b,_0x228693)=>{_0xf438ad===_0x44217b['target']&&(this['focusCycler']['focusFirst'](),_0x228693());}),this['keystrokes']['set']('esc',(_0x2eda01,_0x68026f)=>{_0xf438ad!==_0x2eda01['target']&&(this['focus'](),_0x68026f());});}}class u extends _0xccd55c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1c60de,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25988a){super(_0x25988a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5cbf44=this['editor']['config'];_0x5cbf44['define']('trackChanges.SuggestionThreadView',fe),_0x5cbf44['define']('trackChanges.SuggestionView',we),_0x5cbf44['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5cbf44['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x401545,_0x26bda2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x510e46,_0x40751d]of this['_handleControllerBuffer']){const _0x14d822=this['_suggestionToController']['has'](_0x510e46);_0x14d822||_0x40751d?_0x14d822&&_0x40751d&&this['_destroyController'](_0x510e46):this['_initializeController'](_0x510e46);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x401545,_0x26bda2);}['init'](){const _0x3bc827=this['editor'],_0x5e418d=_0x3bc827['plugins']['get']('TrackChangesEditing'),_0x378569=_0x3bc827['plugins']['get']('Annotations'),_0x18c763=_0x3bc827['plugins']['get']('EditorAnnotations'),_0x30256b=_0x3bc827['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x18c763['addSourceCollector'](()=>{const _0x1bcf94=[];for(const [_0x22d648,_0x40bd3c]of Array['from'](this['_suggestionToController'])){const _0x271f24=_0x22d648['getAllAdjacentSuggestions'](),_0x317d10=[];for(const _0x2d8a7f of _0x271f24){if(!_0x2d8a7f['isInContent'])continue;if(_0x2d8a7f['isMultiRange']){_0x317d10['push'](..._0x2d8a7f['getRanges']());continue;}const _0x3c2ecd=_0x2d8a7f['getFirstRange']();if(_0x317d10['length']>0x0){const _0x6e824d=_0x317d10[0x0]['getJoined'](_0x3c2ecd);if(_0x6e824d){_0x317d10[0x0]=_0x6e824d;continue;}}_0x317d10['push'](_0x3c2ecd);}_0x1bcf94['push']([_0x40bd3c['view'],_0x317d10]);}return _0x1bcf94;}),this['listenTo'](_0x5e418d,'suggestionLoaded',(_0x50b806,_0x4b0df4)=>{this['listenTo'](_0x4b0df4,'change:previous',(_0x23c051,_0x54d3a5,_0x11022d,_0x3c61a4)=>{_0x4b0df4['isInContent']&&(null==_0x11022d?(this['_updateController'](_0x3c61a4['head']),this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x1)):(this['_updateController'](_0x11022d['head']),null==_0x3c61a4&&this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x0)));}),null!==_0x4b0df4['previous']?this['_updateController'](_0x4b0df4['head']):this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x1);}),this['listenTo'](_0x5e418d,'suggestionUnloaded',(_0x3c867d,_0x528769,_0x1837ac)=>{this['stopListening'](_0x528769,'change:previous'),this['_handleControllerBuffer']['delete'](_0x528769),this['_suggestionToController']['has'](_0x528769)&&this['_destroyController'](_0x528769),_0x1837ac&&this['_updateController'](_0x1837ac['head']);}),this['listenTo'](_0x5e418d,'suggestionChanged',(_0x3dba96,_0x19390d)=>{this['_updateController'](_0x19390d);}),this['listenTo'](_0x378569,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x30256b,'addComment',(_0x5cd89b,{threadId:_0x38910e,isFromAdapter:_0xb9cdef})=>{if(_0xb9cdef||!_0x5e418d['hasSuggestion'](_0x38910e))return;const _0x5be12e=_0x5e418d['getSuggestion'](_0x38910e);this['_suggestionToController']['get'](_0x5be12e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8bf601=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10b2ed;for(const _0x318ae8 in _0x8bf601){const _0x35a87d=_0x318ae8,_0x5cf0cc=_0x8bf601[_0x35a87d];if('trackChangesLicenseKeyValid'==_0x5cf0cc||'trackChangesLicenseKeyInvalid'==_0x5cf0cc||'trackChangesLicenseKeyExpired'==_0x5cf0cc||'trackChangesLicenseKeyDomainLimit'==_0x5cf0cc||'trackChangesLicenseKeyNotAllowed'==_0x5cf0cc||'trackChangesLicenseKeyEvaluationLimit'==_0x5cf0cc||'trackChangesLicenseKeyTrialLimit'==_0x5cf0cc||'trackChangesLicenseKeyUsageLimit'==_0x5cf0cc){delete _0x8bf601[_0x35a87d],_0x10b2ed=_0x5cf0cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10b2ed&&_0x8bf601['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10b2ed&&_0x8bf601['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10b2ed&&_0x8bf601['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1046b5){const _0xaadbac=this['_suggestionToController']['get'](_0x1046b5);if(!_0xaadbac)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xaadbac['view'])||null;}['getSuggestionForAnnotation'](_0x4b7dd7){const _0x27942b=this['_viewToController']['get'](_0x4b7dd7['innerView']);return _0x27942b?_0x27942b['model']:null;}['_refreshActiveMarkers'](){const _0x2cc3f4=this['editor']['plugins']['get']('Annotations'),_0x2e5041=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fad77=Array['from'](_0x2cc3f4['activeAnnotations'],_0x587ce7=>_0x587ce7['innerView'])['filter'](_0x534057=>this['_viewToController']['has'](_0x534057)),_0x1129e1=[];for(const _0x231f84 of _0x2fad77){const _0x465326=this['_viewToController']['get'](_0x231f84)['model']['getAllAdjacentSuggestions']();_0x1129e1['push'](..._0x465326['reduce']((_0x5868f2,_0x12b85d)=>[..._0x5868f2,..._0x12b85d['getMarkerNames']()],[]));}_0x2e5041['activeMarkers']=_0x1129e1;}['_addUIComponentsToFactory'](){const _0x54e97f=this['editor'],_0x4ff1d2=_0x54e97f['locale'],_0x1a6e73=o(_0x4ff1d2,'Track\x20changes'),_0x221a5e=new _0x52b0e2([{'type':'switchbutton','model':new _0xe74fc0({'withText':!0x0,'isToggleable':!0x0,'label':_0x1a6e73,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x54e97f['plugins']['has']('TrackChangesPreview')&&_0x221a5e['addMany']([{'type':'separator'},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2f6976 of _0x221a5e)if(ke(_0x2f6976)){const _0x19072e=_0x54e97f['commands']['get'](_0x2f6976['model']['commandName']);_0x2f6976['model']['bind']('isOn','isEnabled')['to'](_0x19072e,'value','isEnabled');}_0x54e97f['ui']['componentFactory']['add']('trackChanges',_0x1d815a=>this['_createToolbarButton'](_0x1d815a,_0x221a5e,_0x1a6e73)),_0x54e97f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xcafe4f=>this['_createMenuBarMenu'](_0xcafe4f,_0x221a5e,_0x1a6e73));}['_createToolbarButton'](_0x3afbae,_0x204fa4,_0x35cd0c){const _0x256994=_0x3ec213(_0x3afbae,_0x23a6b0),_0x24a55a=this['editor']['commands']['get']('trackChanges');_0x256994['buttonView']['set']({'tooltip':_0x35cd0c,'label':_0x35cd0c,'icon':_0x2a8276}),_0x256994['buttonView']['bind']('isOn')['to'](_0x24a55a,'value'),_0x256994['buttonView']['on']('execute',()=>{_0x24a55a['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ac0a4(_0x256994,_0x204fa4,{'role':'menu'});const _0x2debc5=[];for(const _0x5c1c13 of _0x204fa4)ke(_0x5c1c13)&&_0x2debc5['push'](this['editor']['commands']['get'](_0x5c1c13['model']['commandName']));const _0x19f852=_0x256994['buttonView'];return _0x19f852['actionView']['unbind']('isEnabled'),_0x19f852['arrowView']['unbind']('isEnabled'),_0x19f852['actionView']['bind']('isEnabled')['to'](_0x24a55a,'isEnabled'),_0x19f852['arrowView']['bind']('isEnabled')['toMany'](_0x2debc5,'isEnabled',(..._0x2860c9)=>_0x2860c9['some'](_0x3c2cfb=>_0x3c2cfb)),_0x256994['on']('execute',_0x2e270a=>{this['editor']['execute'](_0x2e270a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x256994;}['_createMenuBarMenu'](_0x5c2998,_0x3fee90,_0x42c1be){const _0x1c51be=new _0x52984c(_0x5c2998),_0x35f8ad=this['editor']['commands']['get']('trackChanges');_0x1c51be['buttonView']['set']({'label':_0x42c1be,'icon':_0x2a8276});const _0x3492ed=new _0x42add5(_0x5c2998);for(const _0x58feea of _0x3fee90){if('separator'==_0x58feea['type']){_0x3492ed['items']['add'](new _0x6bdc90(_0x5c2998));continue;}const _0x28875e=new _0x3d5b90(_0x5c2998,_0x1c51be),_0x5d479d=new _0x51bfc9(_0x5c2998),_0x3d871e=_0x58feea['model'];_0x5d479d['bind'](...Object['keys'](_0x3d871e))['to'](_0x3d871e),_0x5d479d['delegate']('execute')['to'](_0x1c51be),_0x5d479d['on']('execute',()=>{this['editor']['execute'](_0x3d871e['commandName']),this['editor']['editing']['view']['focus']();}),_0x28875e['children']['add'](_0x5d479d),_0x3492ed['items']['add'](_0x28875e);}return _0x1c51be['bind']('isEnabled')['to'](_0x35f8ad,'isEnabled'),_0x1c51be['panelView']['children']['add'](_0x3492ed),_0x1c51be;}['_initializeController'](_0x35ad3d){const _0x2f0fc4=this['editor'],_0x24544c=_0x2f0fc4['config'],_0x3a7ebc=_0x2f0fc4['plugins']['get']('Annotations'),_0x190bce=_0x2f0fc4['plugins']['get']('CommentsRepository'),_0x50128f=_0x2f0fc4['plugins']['get']('EditorAnnotations'),_0xc02bc4=_0x2f0fc4['plugins']['get'](_0x1c60de)['me'],_0xc02bb2=_0x24544c['get']('trackChanges')['SuggestionThreadView'],_0x20860a=_0x24544c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24d4c2,CommentThreadInputView:_0x27355c}=_0x2f0fc4['plugins']['get']('CommentsUI');let _0x4c00db,_0x51b1f1,_0x18f6df;this['_annotationViews']['has'](_0x35ad3d['id'])?(_0x51b1f1=this['_annotationViews']['get'](_0x35ad3d['id']),_0x4c00db=_0x51b1f1['mainView']):(_0x4c00db=new _0xc02bb2(_0x2f0fc4['locale'],_0x35ad3d,_0xc02bc4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24544c['get']('comments.editorConfig'),'licenseKey':_0x24544c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24544c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24544c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24544c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x142fa3(_0x24544c['get']('locale'),_0x2f0fc4['locale']),'CommentView':_0x24544c['get']('comments')['CommentView'],'CommentsListView':_0x24d4c2,'CommentThreadInputView':_0x27355c,'SuggestionView':_0x20860a}),_0x4c00db['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f0fc4['editing']['view']['focus']();}),_0x4c00db['suggestionView']['discardButton']['on']('execute',()=>{_0x2f0fc4['editing']['view']['focus']();}),_0x51b1f1=_0x3a7ebc['createAnnotationView'](this['editor']['locale'],_0x4c00db),_0x51b1f1['bind']('isDirty')['to'](_0x4c00db,'isDirty'),_0x51b1f1['bind']('length')['to'](_0x4c00db),_0x51b1f1['bind']('type')['to'](_0x4c00db,'type',_0x47d14e=>'suggestion-'+_0x47d14e),_0x4c00db['on']('escape',()=>{_0x18f6df['fire']('escape');}),this['_annotationViews']['set'](_0x35ad3d['id'],_0x51b1f1));const _0x2b3af0=_0x190bce['createCommentThreadController'](_0x35ad3d['commentThread'],_0x4c00db),_0x3f5899=new pe(_0x2f0fc4,_0x35ad3d,_0x4c00db,_0x2b3af0),_0x1a3963=_0x35ad3d['getAllAdjacentSuggestions']()['filter'](_0xdd64a3=>_0xdd64a3['isInContent']);_0x4c00db['descriptionParts']=_0x2f0fc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a3963),this['_suggestionToController']['set'](_0x35ad3d,_0x3f5899),this['_viewToController']['set'](_0x4c00db,_0x3f5899),_0x18f6df=_0x3a7ebc['createAnnotation']({'view':_0x51b1f1,'target':()=>{const _0x21cbf5=[],_0x1abfa5=_0x35ad3d['getAllAdjacentSuggestions']()['filter'](_0x2896bc=>_0x2896bc['isInContent']);for(const _0xfd0eff of _0x1abfa5)_0x21cbf5['push'](..._0xfd0eff['getMarkers']());return _0x17848e(_0x2f0fc4['editing'],_0x21cbf5);},'type':()=>'suggestion-'+_0x3f5899['view']['type']}),_0x190bce['_bindAnnotationToEditors'](_0x4c00db,_0x18f6df),_0x3a7ebc['add'](_0x18f6df),_0x50128f['registerAnnotation'](_0x18f6df);}['_destroyController'](_0x263f67){const _0x433e4d=this['editor']['plugins']['get']('CommentsRepository'),_0x1a7e73=this['editor']['plugins']['get']('Annotations'),_0xa19b5e=this['_suggestionToController']['get'](_0x263f67),_0x1724c0=_0xa19b5e['view'],_0x1cc646=_0x1a7e73['getByInnerView'](_0x1724c0);_0x433e4d['_unbindEditors'](_0x1724c0),_0x1cc646&&_0x1a7e73['remove'](_0x1cc646),this['_suggestionToController']['delete'](_0x263f67),this['_viewToController']['delete'](_0x1724c0),_0xa19b5e['destroy']();}['_updateController'](_0x1a5fcc){if(!_0x1a5fcc['isInContent']||!this['_suggestionToController']['has'](_0x1a5fcc))return;const _0x35ecaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106659=this['_suggestionToController']['get'](_0x1a5fcc),_0x2340f8=_0x1a5fcc['getAllAdjacentSuggestions']();_0x106659['view']['descriptionParts']=_0x35ecaa['descriptionFactory']['getDescriptions'](_0x2340f8);}['destroy'](){for(const _0xa50d5c of this['_suggestionToController']['keys']())this['_destroyController'](_0xa50d5c);for(const _0x490185 of this['_annotationViews']['values']())_0x490185['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5533a2){return'model'in _0x5533a2;}class Fe extends _0xccd55c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x261a57){this['editor']['plugins']['get'](d)['adapter']=_0x261a57;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1c7324){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1c7324);}['getSuggestions']({skipNotAttached:_0x5bde25=!0x1,toJSON:_0x59710b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5bde25,'toJSON':_0x59710b});}['getSuggestion'](_0x56af69){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x56af69);}}const p=['Pagination'];class re extends _0xccd55c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x498d2d=this['editor'];if(_0x498d2d['config']['define']('trackChangesData.editorCreator',_0x372a7b=>{const _0x51e393=_0x498d2d['model']['document']['getRootNames']()['reduce']((_0x1ad061,_0x2c7d1d)=>(_0x1ad061[_0x2c7d1d]='',_0x1ad061),{});return _0x498d2d['constructor']['create'](_0x51e393,_0x372a7b);}),'function'!=typeof _0x498d2d['config']['get']('trackChangesData')['editorCreator'])throw new _0x59d332('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x387c69){return P(this['editor'],!0x0,_0x387c69);}['getDataWithDiscardedSuggestions'](_0x54e8e6){return P(this['editor'],!0x1,_0x54e8e6);}}class Ge extends _0xccd55c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c447a){function _0x469f64(_0x36689d){return _0x36689d['map'](_0x68a9e7=>String['fromCharCode'](_0x68a9e7))['join']('');}super(_0x5c447a),this['result']='end',_0x5c447a[_0x469f64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x469f64([0x76,0x69,0x65,0x77])][_0x469f64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x469f64([0x61,0x75,0x74,0x6f]),_0x5c447a[_0x469f64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x469f64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x469f64([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x469f64([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x469f64([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 He(_0x1ebc51){return void 0x0!==_0x1ebc51['getRootsAttributes'];}async function P(_0x1a3ca5,_0xd86b14,_0x2e38c8){const _0x2ef92f=_0x423a1d(_0x1a3ca5,p);_0x2ef92f['plugins']['push'](d,Ge),_0x2ef92f['rootsAttributes']=He(_0x1a3ca5)?_0x1a3ca5['getRootsAttributes']():void 0x0;const _0x2d9eac=document['createDocumentFragment'](),_0x45261d=_0x1a3ca5['config']['get']('trackChangesData')['editorCreator'],_0x1c0eb7=await _0x45261d(_0x2ef92f,()=>function(_0x4a83b3){const _0x26226d=document['createElement']('div');return _0x4a83b3['appendChild'](_0x26226d),_0x26226d;}(_0x2d9eac));!function(_0x2ec068,_0x794988){const _0x2695b4=_0x2ec068['model']['document']['getRootNames']()['reduce']((_0x164f01,_0x252a0c)=>(_0x164f01[_0x252a0c]=_0x2ec068['data']['get']({'rootName':_0x252a0c}),_0x164f01),{}),_0x4d698f=_0x2ec068['plugins']['get']('Users')['users']['map'](_0xb25a41=>({'id':_0xb25a41['id'],'name':_0xb25a41['name']})),_0x44d95d=_0x2ec068['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f38be=_0x2ec068['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2214a7=_0x794988['plugins']['get']('Users'),_0x830c81=_0x794988['plugins']['get']('TrackChangesEditing'),_0x52fac6=_0x794988['plugins']['get']('CommentsRepository');for(const _0x327a7a of _0x52fac6['getCommentThreads']())_0x327a7a['remove']();for(const _0x5ee1d7 of _0x4d698f)_0x2214a7['getUser'](_0x5ee1d7['id'])||_0x2214a7['addUser'](_0x5ee1d7);_0x2214a7['me']||_0x2214a7['useAnonymousUser']();for(const _0x4cc1f7 of _0x1f38be)_0x52fac6['addCommentThread'](_0x4cc1f7);for(const _0x443230 of _0x44d95d)_0x830c81['addSuggestionData'](_0x443230);_0x794988['data']['set'](_0x2695b4);}(_0x1a3ca5,_0x1c0eb7),_0x1c0eb7['execute'](_0xd86b14?'acceptAllSuggestions':'discardAllSuggestions');const _0x5adcb9=He(_0x1c0eb7)?_0x1c0eb7['getFullData'](_0x2e38c8):_0x1c0eb7['data']['get'](_0x2e38c8);return await _0x1c0eb7['destroy'](),_0x5adcb9;}class Me extends _0x390189{['options'];constructor(_0x111590,_0x3afff8){super(_0x111590),this['options']=_0x3afff8,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'](_0x332f0d,_0xff6f5a){if(!this['element'])return;const _0x227b19=[];for(const [_0x217d45,_0x39e40c]of _0x332f0d){const _0x4bab1d=document['createElement']('div');_0x4bab1d['setAttribute']('data-ck-root-name',_0x217d45),_0x4bab1d['className']=_0x39e40c['classes']+'\x20ck-track-changes-preview__root-container',_0x4bab1d['innerHTML']=_0x39e40c['content'],_0x227b19['push'](_0x4bab1d);}_0xff6f5a(this['element'],_0x227b19),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1ae931{constructor(_0x30ffea){super(_0x30ffea),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x58a9b2=this['editor'],_0x31f06e=_0x58a9b2['locale'],_0x82eb5a=_0x58a9b2['plugins']['get']('Dialog');let _0x169bc4;const _0xd7925a=function(_0x1f3418){const _0x5e4a21={};if('editables'in _0x1f3418['ui']['view']){for(const [_0x119f74,_0x4d5c0e]of Object['entries'](_0x1f3418['ui']['view']['editables']))_0x5e4a21[_0x119f74]=_0x4d5c0e['element'];}else _0x5e4a21[_0x1f3418['model']['document']['getRootNames']()[0x0]]=_0x1f3418['ui']['view']['editable']['element'];return _0x5e4a21;}(_0x58a9b2),_0x2f242f=function(_0x35cf19){let _0x4e5ab3=0x0;for(const _0x48164c of Object['values'](_0x35cf19))_0x4e5ab3=Math['max'](_0x4e5ab3,_0x48164c['getBoundingClientRect']()['width']);let _0xbc59f=0x0;for(const _0x1870e1 of Object['values'](_0x35cf19))_0xbc59f+=_0x1870e1['getBoundingClientRect']()['height'];const _0x520f7f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2343d8=Math['min'](_0xbc59f,_0x520f7f);return{'width':_0x4e5ab3,'height':_0x2343d8};}(_0xd7925a);_0x82eb5a['show']({'id':'finalContentPreview','title':o(_0x31f06e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x31f06e,{'dialogRects':_0x2f242f}),'onHide':()=>{_0x169bc4['detachFromDom']();},'onShow':()=>{_0x58a9b2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x53e52a=>{const _0x108c5b=this['_standarizeRootsData'](_0x53e52a,_0x58a9b2,_0xd7925a);_0x82eb5a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x108c5b,_0x58a9b2['config']['get']('trackChanges.preview.renderFunction'));}),_0x169bc4=new _0x49dc14(_0x31f06e,[_0x82eb5a['view']]),_0x169bc4['attachToDom'](),_0x169bc4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x58a9b2['once']('destroy',()=>{_0x169bc4['detachFromDom']();});const _0x1b1d26=_0x82eb5a['view']['headerView']['class'];_0x82eb5a['view']['headerView']['class']=_0x1b1d26?_0x1b1d26+'\x20ck-reset_all':'ck-reset_all',_0x82eb5a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x82eb5a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3a1336=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x389ed9=_0x3a1336['previewMode'],_0x36c6bd={};if('$labels'===_0x389ed9){for(const _0x407ef6 of _0x3a1336['getMergeFieldsIds']())_0x36c6bd[_0x407ef6]=_0x3a1336['getLabel'](_0x407ef6)||_0x407ef6;}else{const _0x1f3e1d='$defaultValues'===_0x389ed9?_0x3a1336['getDefaultValues']():_0x3a1336['getDataSetValues'](_0x389ed9,!0x0);for(const _0x3a3b39 of Object['entries'](_0x1f3e1d)){const [_0x2af69f,_0x552cfb]=_0x3a3b39;_0x36c6bd[_0x2af69f]=null!==_0x552cfb?_0x552cfb:_0x3a1336['getLabel'](_0x2af69f)||_0x2af69f;}}return{'mergeFieldsData':_0x36c6bd};}['_standarizeRootsData'](_0x249a43,_0x459a2d,_0x30c8c3){let _0x43519c;if('string'==typeof _0x249a43){const _0xe73120=_0x459a2d['model']['document']['getRootNames']()[0x0];_0x43519c={[_0xe73120]:_0x249a43};}else _0x43519c=_0x249a43;const _0x3e5cfa=this['_fixMediaEmbeds'](_0x43519c,_0x459a2d),_0x3c16c6=function(_0x5c8d80,_0x206941){for(const [_0x269881,_0x437ff5]of _0x5c8d80)_0x437ff5['classes']=_0x206941[_0x269881]['classList']['value']['replace']('ck-focused','');return _0x5c8d80;}(this['_sortRoots'](_0x459a2d)['reduce']((_0x5f57e1,_0x29aef4)=>(_0x5f57e1['push']([_0x29aef4,{'content':_0x3e5cfa[_0x29aef4],'classes':''}]),_0x5f57e1),[]),_0x30c8c3);return _0x3c16c6;}['_fixMediaEmbeds'](_0xf5912,_0x2f45c6){if(!_0x2f45c6['plugins']['has']('MediaEmbedEditing'))return _0xf5912;const _0x932a2a=_0x2f45c6['plugins']['get']('MediaEmbedEditing');for(const [_0x401dd0,_0x42a170]of Object['entries'](_0xf5912)){const _0x121fe8=document['createElement']('div');_0x121fe8['innerHTML']=_0x42a170,(_0x121fe8['querySelectorAll']('figure.media')['forEach'](_0x1e7fd0=>{const _0x4f02a0=_0x1e7fd0['querySelector']('oembed');if(_0x4f02a0){const _0x34b58b=_0x4f02a0['getAttribute']('url');if(_0x34b58b){const _0x448734=_0x932a2a['registry']['getMediaViewElement'](new _0x278fb4(_0x2f45c6['editing']['view']['document']),_0x34b58b,{'elementName':'','renderForEditingView':!0x0}),_0x553333=document['createElement']('div');_0x553333['classList']['add']('ck-media__wrapper'),_0x448734['render'](_0x553333,_0x2f45c6['editing']['view']['domConverter']),_0x4f02a0['replaceWith'](_0x553333);}}}),_0xf5912[_0x401dd0]=_0x121fe8['innerHTML']);}return _0xf5912;}['_sortRoots'](_0x247db4){if(!function(_0x3a3f9e){return void 0x0!==_0x3a3f9e['getRootsAttributes'];}(_0x247db4))return _0x247db4['model']['document']['getRootNames']();const _0x58ecf2=[],_0x323930=new Map();for(const _0x27652b of _0x247db4['model']['document']['getRootNames']()){const _0x2dad6e=_0x247db4['editing']['view']['getDomRoot'](_0x27652b)['getClientRects']()['item'](0x0);_0x58ecf2['push'](_0x27652b),_0x323930['set'](_0x27652b,_0x2dad6e);}return _0x58ecf2['sort']((_0x3b56c8,_0x15dda9)=>{const _0x33bd82=_0x323930['get'](_0x3b56c8),_0x550b15=_0x323930['get'](_0x15dda9);return _0x33bd82['y']-_0x550b15['y']||_0x33bd82['x']-_0x550b15['x'];}),_0x58ecf2;}}class $e extends _0xccd55c{static get['requires'](){return[re,_0xb00e44];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a2cc){super(_0x28a2cc),_0x28a2cc['commands']['add']('previewFinalContent',new te(this['editor'])),_0x28a2cc['config']['define']('trackChanges.preview.renderFunction',(_0x4e3cd8,_0x17d63a)=>{for(const _0x5ccfcd of _0x17d63a)_0x4e3cd8['appendChild'](_0x5ccfcd);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|