@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20251017.0 → 0.0.0-nightly-20251018.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/ai.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/aiquickactions.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/footnotes.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
|
-
_0x146c2f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x51764c,_0x58aa0c){super(),this['id']=_0x58aa0c['id'],this['type']=_0x58aa0c['type'],this['subType']=_0x58aa0c['subType']||null,this['author']=_0x58aa0c['author'],this['creator']=_0x58aa0c['creator']||_0x58aa0c['author'],this['isExternal']=Boolean(_0x58aa0c['attributes']&&_0x58aa0c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x58aa0c['originalSuggestionId']||null,this['_model']=_0x51764c,this['_onAccept']=_0x58aa0c['onAccept'],this['_onDiscard']=_0x58aa0c['onDiscard'],this['_onAttributesChange']=_0x58aa0c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x58aa0c['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 _0x1b999c=this;for(;_0x1b999c['previous'];)_0x1b999c=_0x1b999c['previous'];return _0x1b999c;}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'](_0x3a4775){this['_markerNames']['add'](_0x3a4775);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xb45f16=>this['_model']['markers']['get'](_0xb45f16))['filter'](_0x2cdd2e=>_0x2cdd2e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x40dfcd=>{for(const _0x58468f of this['getMarkers']())_0x40dfcd['removeMarker'](_0x58468f);}),this['_markerNames']['clear']();}['removeMarker'](_0x26fe3f){this['_model']['change'](_0x47ac3c=>{_0x47ac3c['removeMarker'](_0x26fe3f);}),this['_markerNames']['delete'](_0x26fe3f);}['addRange'](_0x1fd796){const _0x151927='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x151927),this['_model']['change'](_0x4bcacf=>{_0x4bcacf['addMarker'](_0x151927,{'range':_0x1fd796,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5afa9a){for(const _0x5c5c86 of this['getRanges']())if(_0x5c5c86['isIntersecting'](_0x5afa9a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xf835d5=>_0xf835d5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3bcd63,_0x593b93)=>[..._0x3bcd63,..._0x593b93['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x8f3296=this['getRanges']();if(0x1!=_0x8f3296['length'])return null;const _0x33ac2e=_0x8f3296[0x0],_0x446e0c=_0x33ac2e['start']['nodeAfter'],_0x101e5b=_0x33ac2e['end']['nodeBefore'];return _0x446e0c instanceof _0xbf84b7?_0x446e0c!=_0x101e5b?null:_0x446e0c: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 _0x2d9fa5=[];let _0x3d3fbb=this['head'];for(;_0x3d3fbb;)_0x2d9fa5['push'](_0x3d3fbb),_0x3d3fbb=_0x3d3fbb['next'];return _0x2d9fa5;}['setAttribute'](_0x5a56a0,_0x2e5437){const _0x1e0398=_0x7b09fe(this['attributes']);_0x670430(_0x1e0398,_0x5a56a0,_0x2e5437),_0x312e49(_0x1e0398,this['attributes'])||(this['attributes']=_0x1e0398,this['_onAttributesChange'](_0x1e0398));}['removeAttribute'](_0x355dcb){const _0x437a30=_0x7b09fe(this['attributes']);_0x4d1cea(_0x437a30,_0x355dcb),_0x312e49(_0x437a30,this['attributes'])||(this['attributes']=_0x437a30,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 _0x223174()['substr'](0x1,0x5);}}function o(_0x22e4c6,_0x44ac0d,_0x40f4d5){const _0x2f6b5b=_0x22e4c6['t'],t=_0x22e4c6['t'];switch(_0x44ac0d){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',_0x40f4d5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x40f4d5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x40f4d5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x40f4d5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x40f4d5);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',_0x40f4d5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x40f4d5);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',_0x40f4d5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x40f4d5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x40f4d5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x40f4d5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x40f4d5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x40f4d5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x40f4d5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x40f4d5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x40f4d5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x40f4d5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x40f4d5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x40f4d5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x40f4d5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x40f4d5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x40f4d5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x40f4d5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x40f4d5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x40f4d5);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'},_0x40f4d5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x40f4d5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x40f4d5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x40f4d5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x40f4d5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x40f4d5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x40f4d5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x40f4d5);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'},_0x40f4d5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x40f4d5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x40f4d5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x40f4d5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x40f4d5);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'},_0x40f4d5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x40f4d5);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'},_0x40f4d5);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x40f4d5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x40f4d5);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'},_0x40f4d5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x40f4d5);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'},_0x40f4d5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x40f4d5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x40f4d5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x40f4d5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x40f4d5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x40f4d5);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'},_0x40f4d5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x40f4d5);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 _0x2f6b5b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x40f4d5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2f6b5b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x40f4d5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x40f4d5);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'},_0x40f4d5);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'},_0x40f4d5);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'},_0x40f4d5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x44ac0d;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4915f2,_0x4c2add){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4915f2,this['_locale']=_0x4c2add;}['getDescriptions'](_0x3d3455){const _0x27b070=[],_0x3d6260=new Set(),_0x5903c1=new Set();for(let _0x385344=0x0;_0x385344<_0x3d3455['length'];_0x385344++){const _0x362e0a=_0x3d3455[_0x385344];if(!_0x362e0a['isInContent'])continue;const _0x425425=this['_handleCustomCallbackDescription'](_0x362e0a);if(_0x425425){if(null!=_0x362e0a['subType']){if(_0x3d6260['has'](_0x362e0a['subType']))continue;_0x3d6260['add'](_0x362e0a['subType']);}_0x27b070['push'](_0x425425);}else{if('attribute'==_0x362e0a['type']){const _0x1ab158=_0x362e0a['data']['key'];if(_0x5903c1['has'](_0x1ab158))continue;_0x5903c1['add'](_0x362e0a['data']['key']),_0x1ab158==m?this['_handleRenameSuggestionDescription'](_0x27b070,_0x362e0a):this['_handleAttributeSuggestionDescription'](_0x27b070,_0x362e0a);continue;}'insertion'!=_0x362e0a['type']&&'deletion'!=_0x362e0a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x27b070,_0x362e0a,_0x3d3455[_0x385344+0x1]);}}return this['_resolveDescriptionItems'](_0x27b070);}['registerDescriptionCallback'](_0x51145c){this['_customCallbacks']['push'](_0x51145c);}['registerElementLabel'](_0x1ca90c,_0x48bdb8,_0x2af536=_0x3af1ec['normal']){'function'==typeof _0x1ca90c?_0x2928d0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ca90c,'label':_0x48bdb8,'priority':_0x2af536}):this['_itemLabels']['set'](_0x1ca90c,_0x48bdb8);}['registerAttributeLabel'](_0x279a27,_0x5185d3){this['_attributeLabels']['set'](_0x279a27,_0x5185d3);}['getItemLabel'](_0x4d5a3d,_0x47d07c=0x1){let _0x3df0d8;for(const _0x3a8475 of this['_itemLabelsCallbacks'])if(_0x3a8475['matchingCallback'](_0x4d5a3d)){_0x3df0d8=_0x3a8475['label'];break;}return _0x3df0d8||(_0x3df0d8=this['_itemLabels']['get'](_0x4d5a3d['name'])),_0x3df0d8?_0x3df0d8(_0x47d07c):0x1!==_0x47d07c?_0x47d07c+'\x20'+_0x4d5a3d['name']+'s':''+_0x4d5a3d['name'];}['_addDescriptionItems'](_0x16efae,_0xb94423){const _0x90f5c1=_0xb94423['getFirstRange']()['getWalker'](),_0x2945d6='insertion'==_0xb94423['type']?'add':'remove';for(const _0x1664eb of _0x90f5c1){const _0x102f78=_0x1664eb['item'],_0x326c05=_0x16efae[_0x16efae['length']-0x1];if(_0x102f78['is']('$textProxy'))_0x326c05&&_0x326c05['type']['indexOf']('Container')>-0x1&&_0x16efae['pop'](),_0x326c05&&'text'==_0x326c05['type']?_0x326c05[_0x2945d6]+=_0x102f78['data']:_0x16efae['push']({'type':'text','add':'add'==_0x2945d6?_0x102f78['data']:'','remove':'remove'==_0x2945d6?_0x102f78['data']:''});else{if(this['_schema']['isObject'](_0x102f78)){const _0x3973ab=_0x102f78;if(_0x326c05&&_0x326c05['type']['indexOf']('Container')>-0x1&&_0x16efae['pop'](),'elementEnd'==_0x1664eb['type'])continue;_0x326c05&&_0x326c05['type']==_0x2945d6+'Object'&&_0x326c05['element']['name']==_0x3973ab['name']?_0x326c05['quantity']++:_0x16efae['push']({'type':_0x2945d6+'Object','element':_0x3973ab,'quantity':0x1}),_0x90f5c1['skip'](_0x17267d=>!('elementEnd'==_0x17267d['type']&&_0x17267d['item']==_0x102f78));}else{if(this['_schema']['checkChild'](_0x102f78,'$text')||_0x102f78['is']('element','softBreak')){const _0x32b218=_0x102f78;if('add'==_0x2945d6&&'elementStart'==_0x1664eb['type']||'remove'==_0x2945d6&&'elementEnd'==_0x1664eb['type'])continue;if(_0x326c05&&-0x1==_0x326c05['type']['indexOf']('Container')){'text'==_0x326c05['type']&&(_0x326c05[_0x2945d6]+='\x0a');continue;}let _0x2c65e5;if(_0x2c65e5='add'==_0x2945d6?_0x32b218['nextSibling']&&!this['_schema']['isObject'](_0x32b218['nextSibling'])?_0x32b218['nextSibling']:null:_0x32b218['previousSibling']&&!this['_schema']['isObject'](_0x32b218['previousSibling'])?_0x32b218['previousSibling']:null,_0x32b218['isEmpty']||_0x2c65e5&&_0x2c65e5['isEmpty']){const _0x2e745d=_0x2c65e5&&_0x2c65e5['isEmpty']?_0x2c65e5:_0x32b218;_0x326c05&&_0x326c05['type']==_0x2945d6+'EmptyContainer'&&_0x326c05['element']['name']==_0x2e745d['name']?_0x326c05['quantity']++:_0x16efae['push']({'type':_0x2945d6+'EmptyContainer','element':_0x2e745d,'quantity':0x1});}else _0x16efae['push']({'type':_0x2945d6+'Container','element':_0x32b218});}}}}}['_resolveDescriptionItems'](_0x1c32e6){const _0x1e880b=this['_locale'],_0x4bc5bc=[],_0x29ecd7=[],_0x104678=[];for(const _0x4cf42e of _0x1c32e6)switch(_0x4cf42e['type']){case'text':if(_0x4cf42e['add']=_0x4cf42e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4cf42e['remove']=_0x4cf42e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4cf42e['add']&&''!=_0x4cf42e['remove']){_0x4bc5bc['push']({'type':'replace','content':o(_0x1e880b,'REPLACE_TEXT',['\x22'+_0x4cf42e['remove']+'\x22','\x22'+_0x4cf42e['add']+'\x22'])});continue;}if(null!=_0x4cf42e['add']['match'](/^ +$/)){_0x4bc5bc['push']({'type':'insertion','content':o(_0x1e880b,'*Insert:*\x20%0',o(_0x1e880b,'ELEMENT_SPACE',_0x4cf42e['add']['length']))});continue;}if(null!=_0x4cf42e['remove']['match'](/^ +$/)){_0x4bc5bc['push']({'type':'deletion','content':o(_0x1e880b,'*Remove:*\x20%0',o(_0x1e880b,'ELEMENT_SPACE',_0x4cf42e['remove']['length']))});continue;}if(''!=_0x4cf42e['add']){_0x4bc5bc['push']({'type':'insertion','content':o(_0x1e880b,'*Insert:*\x20%0','\x22'+_0x4cf42e['add']+'\x22')});continue;}_0x4bc5bc['push']({'type':'deletion','content':o(_0x1e880b,'*Remove:*\x20%0','\x22'+_0x4cf42e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4bc5bc['push']({'type':'insertion','content':o(_0x1e880b,'*Insert:*\x20%0',this['getItemLabel'](_0x4cf42e['element'],_0x4cf42e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4bc5bc['push']({'type':'deletion','content':o(_0x1e880b,'*Remove:*\x20%0',this['getItemLabel'](_0x4cf42e['element'],_0x4cf42e['quantity']))});continue;case'addContainer':_0x4bc5bc['push']({'type':'insertion','content':o(_0x1e880b,'*Split:*\x20%0',this['getItemLabel'](_0x4cf42e['element'],_0x4cf42e['quantity']))});continue;case'removeContainer':_0x4bc5bc['push']({'type':'deletion','content':o(_0x1e880b,'*Merge:*\x20%0',this['getItemLabel'](_0x4cf42e['element'],_0x4cf42e['quantity']))});continue;case'addFormat':_0x29ecd7['push'](_0x4cf42e['key']);continue;case'removeFormat':_0x104678['push'](_0x4cf42e['key']);continue;default:_0x4bc5bc['push'](_0x4cf42e);}if(_0x29ecd7['length']){const _0x25054c=_0x29ecd7['map'](_0x43593=>this['_attributeLabels']['has'](_0x43593)?this['_attributeLabels']['get'](_0x43593):_0x43593)['join'](',\x20');_0x4bc5bc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x25054c)});}if(_0x104678['length']){const _0x2c4fbe=_0x104678['map'](_0x1796a2=>this['_attributeLabels']['has'](_0x1796a2)?this['_attributeLabels']['get'](_0x1796a2):_0x1796a2)['join'](',\x20');_0x4bc5bc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2c4fbe)});}return _0x4bc5bc;}['_handleCustomCallbackDescription'](_0x255192){for(const _0xab2bd of this['_customCallbacks']){const _0x635af6=_0xab2bd(_0x255192);if(_0x635af6&&'type'in _0x635af6)return _0x635af6;}}['_handleAttributeSuggestionDescription'](_0x4b7742,_0x462452){const _0x264eda=_0x462452['data'],_0x28c4f2=void 0x0===_0x264eda['newValue']?'removeFormat':'addFormat';_0x4b7742['push']({'type':_0x28c4f2,'key':_0x264eda['key']});}['_handleRenameSuggestionDescription'](_0xcbb741,_0x145f9f){_0xcbb741['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x145f9f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc2237d,_0x40f61c,_0x594f62){if(this['_addDescriptionItems'](_0xc2237d,_0x40f61c),_0x594f62&&_0x594f62['getFirstRange']()&&!_0x40f61c['getFirstRange']()['end']['isEqual'](_0x594f62['getFirstRange']()['start'])){const _0x4ce423=_0xc2237d[_0xc2237d['length']-0x1],_0x3fb418='insertion'==_0x40f61c['type']?'add':'remove';_0x4ce423&&'text'==_0x4ce423['type']&&(_0x4ce423[_0x3fb418]+='\x0a');}}}class V extends _0x3425bc{['afterInit'](){const _0x1438e5=this['editor'],_0x2c2c84=_0x1438e5['plugins']['get']('TrackChangesEditing');_0x1438e5['commands']['get']('showAIAssistant')&&_0x2c2c84['enableCommand']('showAIAssistant');}}class F extends _0x3425bc{['afterInit'](){const _0x10f253=this['editor'],_0x3583bd=_0x10f253['plugins']['get']('TrackChangesEditing');_0x10f253['commands']['get']('toggleAi')&&_0x3583bd['enableCommand']('toggleAi');}}class G extends _0x3425bc{['afterInit'](){const _0x589aa0=this['editor'],_0x41d9cc=_0x589aa0['plugins']['get']('TrackChangesEditing');_0x589aa0['commands']['get']('aiQuickAction')&&_0x41d9cc['enableCommand']('aiQuickAction');}}class L extends _0x3425bc{['afterInit'](){const _0x1d6dbd=this['editor'],_0x214324=_0x1d6dbd['locale'];if(!_0x1d6dbd['plugins']['has']('AlignmentEditing'))return;const _0x406c17=_0x1d6dbd['plugins']['get']('TrackChangesEditing');_0x406c17['enableDefaultAttributesIntegration']('alignment'),_0x406c17['registerBlockAttribute']('alignment'),_0x406c17['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x214324,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44693d=this['editor'],_0x12259a=_0x44693d['locale'];_0x44693d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x563c55=>{if('formatBlock'!=_0x563c55['type'])return;const {data:_0x4f6c3f}=_0x563c55;if(_0x4f6c3f&&'alignment'==_0x4f6c3f['commandName']){const _0x3cbabe=_0x4f6c3f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x12259a,'*Format:*\x20%0',function(_0x2a0338){switch(_0x2a0338){case'left':return o(_0x12259a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x12259a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x12259a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x12259a,'FORMAT_JUSTIFY_TEXT');}}(_0x3cbabe))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x3425bc{['afterInit'](){const _0x22ffaa=this['editor'],_0x10b481=_0x22ffaa['plugins']['get']('TrackChangesEditing'),_0x2d9d39=_0x22ffaa['locale'];for(const _0x40c5f8 of ti){if(!_0x22ffaa['plugins']['has'](_0x40c5f8))continue;const _0x43fa47=_0x40c5f8['slice'](0x0,-0x7)['toLowerCase'](),_0x243bcc='FORMAT_'+_0x43fa47['toUpperCase']();_0x10b481['enableDefaultAttributesIntegration'](_0x43fa47),_0x10b481['registerInlineAttribute'](_0x43fa47),_0x10b481['descriptionFactory']['registerAttributeLabel'](_0x43fa47,o(_0x2d9d39,_0x243bcc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd304e2=this['editor'],_0x340c6a=_0xd304e2['locale'],_0x3113dc=_0xd304e2['plugins']['get']('TrackChangesEditing');function _0x1a498c(_0x542540,_0x73dfe6){_0x3113dc['descriptionFactory']['registerDescriptionCallback'](_0xb481c1=>{if('formatInline'!=_0xb481c1['type'])return;const {data:_0x674186}=_0xb481c1;return _0x674186&&_0x674186['commandName']===_0x542540?_0x674186['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x340c6a,'*Format:*\x20%0',_0x73dfe6)}:{'type':'format','content':o(_0x340c6a,'*Remove\x20format:*\x20%0',_0x73dfe6)}:void 0x0;});}_0x1a498c('bold',o(_0x340c6a,'FORMAT_BOLD')),_0x1a498c('italic',o(_0x340c6a,'FORMAT_ITALIC')),_0x1a498c('underline',o(_0x340c6a,'FORMAT_UNDERLINE')),_0x1a498c('code',o(_0x340c6a,'FORMAT_CODE')),_0x1a498c('strikethrough',o(_0x340c6a,'FORMAT_STRIKETHROUGH')),_0x1a498c('subscript',o(_0x340c6a,'FORMAT_SUBSCRIPT')),_0x1a498c('superscript',o(_0x340c6a,'FORMAT_SUPERSCRIPT'));}}class K extends _0x3425bc{['afterInit'](){const _0x4ba12c=this['editor'],_0x4d9873=_0x4ba12c['locale'];if(!_0x4ba12c['plugins']['has']('BlockQuoteEditing'))return;const _0x2b1fb0=_0x4ba12c['plugins']['get']('TrackChangesEditing'),_0x3a9109=this['editor']['commands']['get']('blockQuote');_0x2b1fb0['enableCommand']('blockQuote',(_0x1c6a80,_0x36ebeb={})=>{const _0x38c81a=this['editor']['model']['document']['selection'],_0x1c234f=_0x36ebeb&&void 0x0!==_0x36ebeb['forceValue']?_0x36ebeb['forceValue']:!_0x3a9109['value'];let _0x463671=[];if(_0x1c234f){const _0xe887af=Array['from'](_0x38c81a['getSelectedBlocks']())['filter'](_0x3f67eb=>oo(_0x3f67eb)||function(_0x38633e,_0x32e33a){const _0x38eaf6=_0x32e33a['checkChild'](_0x38633e['parent'],'blockQuote'),_0x41d2fc=_0x32e33a['checkChild'](['$root','blockQuote'],_0x38633e);return _0x38eaf6&&_0x41d2fc;}(_0x3f67eb,this['editor']['model']['schema']));_0x463671=to(_0xe887af,_0x4ba12c['model']);}else{const _0x16d91b=Array['from'](_0x38c81a['getSelectedBlocks']())['filter'](_0x4cf4ab=>oo(_0x4cf4ab));_0x463671=to(_0x16d91b,_0x4ba12c['model']);}_0x4ba12c['model']['change'](()=>{for(const _0x571f8e of _0x463671)_0x2b1fb0['markBlockFormat'](_0x571f8e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1c234f}]});});}),_0x2b1fb0['descriptionFactory']['registerDescriptionCallback'](_0x2d4ea1=>{const {data:_0x4a2d18}=_0x2d4ea1;if(_0x4a2d18&&'blockQuote'==_0x4a2d18['commandName']){const _0x32b104=o(_0x4d9873,'ELEMENT_BLOCK_QUOTE');return _0x4a2d18['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d9873,'*Set\x20format:*\x20%0',_0x32b104)}:{'type':'format','content':o(_0x4d9873,'*Remove\x20format:*\x20%0',_0x32b104)};}});}}function oo(_0x4c0ab3){return'blockQuote'==_0x4c0ab3['parent']['name'];}class q extends _0x3425bc{['afterInit'](){const _0x4f10b4=this['editor'],_0x20bc88=_0x4f10b4['locale'],_0xf3837d=_0x4f10b4['plugins']['get']('TrackChangesEditing');_0x4f10b4['plugins']['has']('BookmarkEditing')&&(_0xf3837d['enableCommand']('insertBookmark'),_0xf3837d['enableDefaultAttributesIntegration']('updateBookmark'),_0xf3837d['registerBlockAttribute']('bookmarkId'),_0xf3837d['descriptionFactory']['registerDescriptionCallback'](_0x2d018b=>{if('insertion'!=_0x2d018b['type']&&'deletion'!=_0x2d018b['type']&&'attribute'!=_0x2d018b['type'])return;const _0x5a8ec5=_0x2d018b['getContainedElement']();if(null==_0x5a8ec5)return;if(!_0x5a8ec5['is']('element','bookmark'))return;const _0x1f759d=_0x5a8ec5['getAttribute']('bookmarkId');if('insertion'==_0x2d018b['type'])return{'type':'insertion','content':o(_0x20bc88,'*Insert:*\x20%0','\x22'+_0x1f759d+'\x22\x20'+o(_0x20bc88,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2d018b['type'])return{'type':'deletion','content':o(_0x20bc88,'*Remove:*\x20%0','\x22'+_0x1f759d+'\x22\x20'+o(_0x20bc88,'ELEMENT_BOOKMARK'))};const {data:_0x43f74d}=_0x2d018b;if(!_0x43f74d||'bookmarkId'!=_0x43f74d['key'])return;return{'type':'format','content':o(_0x20bc88,'*Set\x20bookmark:*\x20%0','\x22'+_0x43f74d['newValue']+'\x22')};}));}}class H extends _0x3425bc{['afterInit'](){const _0x4a063c=this['editor'];_0x4a063c['plugins']['has']('CaseChange')&&(_0x4a063c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4a063c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4a063c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x3425bc{['afterInit'](){const _0x5472e1=this['editor'];_0x5472e1['commands']['get']('ckbox')&&_0x5472e1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x3425bc{['afterInit'](){const _0x3b1064=this['editor'];if(!_0x3b1064['plugins']['has']('CodeBlock'))return;const _0x264e19=_0x3b1064['plugins']['get']('TrackChangesEditing'),_0x13ba91=_0x3b1064['locale'],_0x56240d=_0x3b1064['config']['get']('codeBlock')['languages'],_0x2cae0e=_0x3b1064['commands']['get']('codeBlock');_0x264e19['enableCommand']('indentCodeBlock'),_0x264e19['enableCommand']('outdentCodeBlock'),_0x264e19['enableCommand']('codeBlock',(_0x553794,_0x8d3ab0={})=>{const _0x3478ae=_0x3b1064['model'],_0x426d5d=_0x3b1064['model']['document']['selection'],_0x40b876=_0x8d3ab0&&void 0x0!==_0x8d3ab0['forceValue']?_0x8d3ab0['forceValue']:!_0x2cae0e['value'];let _0x326b2b;_0x8d3ab0['language']||(_0x8d3ab0['language']=_0x56240d[0x0]['language']),_0x326b2b=_0x40b876?Array['from'](_0x426d5d['getSelectedBlocks']())['filter'](_0x5f330e=>co(_0x5f330e)||function(_0x5eae92,_0x464b3f){if(_0x5eae92['is']('rootElement')||_0x464b3f['isLimit'](_0x5eae92))return!0x1;return _0x464b3f['checkChild'](_0x5eae92['parent'],'codeBlock');}(_0x5f330e,_0x3478ae['schema'])):Array['from'](_0x426d5d['getSelectedBlocks']())['filter'](_0x55c18a=>co(_0x55c18a));const _0x53ca67=to(_0x326b2b,_0x3478ae);_0x3478ae['change'](()=>{for(const _0x32826e of _0x53ca67)_0x264e19['markBlockFormat'](_0x32826e,{'commandName':'codeBlock','commandParams':[{..._0x8d3ab0,'forceValue':_0x40b876}],'formatGroupId':'blockName'});});}),(_0x264e19['descriptionFactory']['registerElementLabel']('codeBlock',_0x4033bc=>o(_0x13ba91,'ELEMENT_CODE_BLOCK',_0x4033bc)),_0x264e19['descriptionFactory']['registerDescriptionCallback'](_0x2d6276=>{if('formatBlock'!=_0x2d6276['type'])return;const _0x14db47=_0x13ba91['t'],{data:_0x519c7c}=_0x2d6276;if(!_0x519c7c||'codeBlock'!=_0x519c7c['commandName'])return;const _0x1855d6=_0x519c7c['commandParams'][0x0]['language'],_0x5669f5=_0x14db47(_0x56240d['find'](_0x4f668a=>_0x4f668a['language']===_0x1855d6)['label'])['toLowerCase']();return _0x519c7c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13ba91,'*Set\x20format:*\x20%0',o(_0x13ba91,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5669f5+')')}:{'type':'format','content':o(_0x13ba91,'*Remove\x20format:*\x20%0',o(_0x13ba91,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3170c7){return'codeBlock'==_0x3170c7['name'];}class Q extends _0x3425bc{['afterInit'](){const _0xb850e5=this['editor'];if(!_0xb850e5['plugins']['has']('CommentsEditing'))return;_0xb850e5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe74e62,_0x1c900d,_0x4cb7cb){const _0x1357f8=[];for(const _0x4ff229 of _0x1c900d['getItems']())_0x4ff229['hasAttribute'](_0xe74e62)&&_0x1357f8['push'](_0x4cb7cb['createRangeOn'](_0x4ff229));return _0x1357f8;}function Ve(_0x473898,_0x2c5e06,{showActiveMarker:_0x41b3ac=!0x0}={}){const _0x4f4012=_0x473898['plugins']['get']('TrackChangesEditing');return(_0x19e6b9,_0x397b1b,_0x2e4d1c)=>{if(!_0x2e4d1c['consumable']['test'](_0x397b1b['markerRange'],_0x19e6b9['name']))return;const _0x338ced=_0x397b1b['markerRange']['getWalker'](),_0x2879cb=_0x397b1b['markerRange']['start'],_0x51cb60=_0x473898['model']['schema'];let _0x2d3217=null,_0x12d23f=null,_0x12b91d=!0x1,_0x13f95e=!0x1;for(const _0x177db9 of _0x338ced){const _0x1afe25=_0x177db9['item'];_0x12b91d=_0x12b91d||_0x51cb60['isContent'](_0x1afe25);const _0x20984c=_0x2e4d1c['mapper']['toViewElement'](_0x1afe25);if(_0x20984c&&_0x20984c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x177db9['type']&&(_0x51cb60['isBlock'](_0x1afe25)&&!_0x51cb60['isLimit'](_0x1afe25)&&(_0x1afe25['nextSibling']||_0x2879cb['isAtEnd']?_0x2d3217&&_0x2d3217['parent']==_0x1afe25||(_0x2d3217=_0x1afe25,_0x7d7358(_0x177db9['previousPosition']),_0x13f95e=!0x0):_0x12d23f=_0x12d23f||_0x177db9['previousPosition']));}function _0x7d7358(_0x5b975e){const {id:_0x3529e7,authorId:_0x5442e9}=_0x4f4012['_splitMarkerName'](_0x397b1b['markerName']),_0x2d7ffa=_0x2e4d1c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c5e06,'data-suggestion':_0x3529e7,'data-author-id':_0x5442e9}),_0x5b72a2=_0x2e4d1c['mapper']['toViewPosition'](_0x5b975e);_0x41b3ac&&_0x4f4012['activeMarkers']['includes'](_0x397b1b['markerName'])&&_0x2e4d1c['writer']['addClass']('ck-suggestion-marker--active',_0x2d7ffa),_0x2e4d1c['writer']['insert'](_0x5b72a2,_0x2d7ffa),_0x2e4d1c['mapper']['bindElementToMarker'](_0x2d7ffa,_0x397b1b['markerName']);}_0x12b91d||_0x13f95e||!_0x12d23f||_0x7d7358(_0x12d23f);};}class X extends _0x3425bc{static get['requires'](){return[_0x320b04];}['init'](){const _0x5b5410=this['editor'],_0x1de90a=_0x5b5410['plugins']['get']('TrackChangesEditing');_0x1de90a['enableCommand']('delete');const _0x184af6=_0x5b5410['commands']['get']('deleteForward');_0x1de90a['enableCommand']('deleteForward',(_0x309f49,_0x34c819={})=>{const _0x251eba=_0x5b5410['model']['createSelection'](_0x5b5410['model']['document']['selection']);_0x251eba['isCollapsed']&&_0x5b5410['model']['modifySelection'](_0x251eba,{'direction':'forward','unit':_0x34c819['unit']});const _0x5eb47d=_0x251eba['getFirstRange'](),_0x12f6c4=_0x5e0301['fromRange'](_0x5eb47d);let _0x5ac467;_0x309f49(_0x34c819),_0x5ac467='$graveyard'==_0x12f6c4['root']['rootName']?_0x5b5410['model']['createRange'](_0x5eb47d['start']):_0x5b5410['model']['createRange'](_0x12f6c4['start'],_0x12f6c4['end']),_0x12f6c4['detach'](),_0x5b5410['model']['enqueueChange'](_0x184af6['buffer']['batch'],_0x5e99ec=>{_0x184af6['buffer']['lock'](),_0x5e99ec['setSelection'](_0x5e99ec['createRange'](_0x5ac467['end'])),_0x184af6['buffer']['unlock']();});}),_0x5b5410['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x5b5410,'merge'),{'priority':'high'}),_0x5b5410['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5184a2,_0x590fa9,_0x27236a)=>{_0x27236a['options']['showSuggestionHighlights']&&Ve(_0x5b5410,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5184a2,_0x590fa9,_0x27236a);},{'priority':'high'}),_0x5b5410['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x421976,_0x50e4d2,_0x53c780)=>{const _0x54dd82=_0x53c780['mapper']['markerNameToElements'](_0x50e4d2['markerName']);if(_0x54dd82){for(const _0x3ae110 of _0x54dd82)_0x3ae110['is']('uiElement')&&(_0x53c780['mapper']['unbindElementFromMarkerName'](_0x3ae110,_0x50e4d2['markerName']),_0x53c780['writer']['remove'](_0x3ae110));}},{'priority':'high'});}}class Y extends _0x3425bc{['afterInit'](){const _0x45de7b=this['editor'];if(!_0x45de7b['plugins']['has']('ListEditing'))return;const _0x10ea64=_0x45de7b['locale'],_0x2a9a65=_0x45de7b['plugins']['get']('TrackChangesEditing'),_0x43f497=_0x45de7b['plugins']['has']('TodoListEditing'),_0x5aff03=!!_0x45de7b['config']['get']('list.multiBlock');function _0x4e9d20(_0x333aea){return{'type':'format','content':''+o(_0x10ea64,'*Set\x20format:*\x20%0',_0x333aea)};}function _0x2914db(_0x2424e9){return{'type':'format','content':''+o(_0x10ea64,'*Remove\x20format:*\x20%0',_0x2424e9)};}_0x2a9a65['enableDefaultAttributesIntegration']('numberedList'),_0x2a9a65['enableDefaultAttributesIntegration']('bulletedList'),_0x2a9a65['enableDefaultAttributesIntegration']('customNumberedList'),_0x2a9a65['enableDefaultAttributesIntegration']('customBulletedList'),_0x2a9a65['enableDefaultAttributesIntegration']('indentList'),_0x2a9a65['enableDefaultAttributesIntegration']('outdentList'),_0x2a9a65['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2a9a65['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a9a65['registerBlockAttribute']('listItemId'),_0x2a9a65['registerBlockAttribute']('listType'),_0x2a9a65['registerBlockAttribute']('listIndent'),_0x5aff03&&(_0x2a9a65['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2a9a65['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x43f497&&(_0x2a9a65['enableDefaultAttributesIntegration']('todoList'),_0x2a9a65['enableDefaultAttributesIntegration']('checkTodoList'),_0x2a9a65['registerBlockAttribute']('todoListChecked'),_0x2a9a65['descriptionFactory']['registerDescriptionCallback'](_0x240e53=>{const {data:_0xcd08f7}=_0x240e53;if(_0xcd08f7&&'todoListChecked'==_0xcd08f7['key'])return{'type':'format','content':_0xcd08f7['newValue']?o(_0x10ea64,'*Check\x20item*'):o(_0x10ea64,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4920dc=>{if(_0x4920dc['batch']['isUndo'])return!0x1;let _0x1bede1=!0x1;const _0x17b0db=_0x2a9a65['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10a197=>'todoListChecked'===_0x2a9a65['_getAttributeKey'](_0x10a197));for(const _0x406f3b of _0x17b0db){'todo'!=_0x406f3b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2a9a65['_findSuggestions'](_0x406f3b['getFirstRange'](),'attribute')['find'](_0xaa4cc9=>'listType'===_0x2a9a65['_getAttributeKey'](_0xaa4cc9['suggestion']))||(_0x4920dc['removeMarker'](_0x406f3b['getFirstMarker']()),_0x1bede1=!0x0));}return _0x1bede1;})),_0x2a9a65['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x10ea64,'FORMAT_INDENT'));const _0x2b6780={'type':'format','content':''};_0x2a9a65['descriptionFactory']['registerDescriptionCallback'](_0x345bf7=>{const {data:_0xa852b8}=_0x345bf7;if(!_0xa852b8||'listType'!=_0xa852b8['key'])return;let _0x2b0c82=_0x345bf7['head'];for(;_0x2b0c82;){if(_0x2b0c82['data']&&(('listStyle'==_0x2b0c82['data']['key']||'listMarkerStyle'==_0x2b0c82['data']['key'])&&(_0x2b0c82['data']['newValue']&&'default'!=_0x2b0c82['data']['newValue']||'default'!=_0x2b0c82['data']['oldValue']&&!_0xa852b8['newValue'])||!_0x5aff03&&_0x2b0c82['data']['key']==m))return _0x2b6780;_0x2b0c82=_0x2b0c82['next'];}if(null==_0xa852b8['newValue'])switch(_0xa852b8['oldValue']){case'bulleted':return _0x2914db(o(_0x10ea64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2914db(o(_0x10ea64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2914db(o(_0x10ea64,'ELEMENT_TODO_LIST'));}switch(_0xa852b8['newValue']){case'bulleted':return _0x4e9d20(o(_0x10ea64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e9d20(o(_0x10ea64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e9d20(o(_0x10ea64,'ELEMENT_TODO_LIST'));}}),_0x2a9a65['descriptionFactory']['registerDescriptionCallback'](_0x2f3bd0=>{const {data:_0x5748af}=_0x2f3bd0;if(_0x5748af&&'listIndent'==_0x5748af['key'])return null==_0x5748af['newValue']||null==_0x5748af['oldValue']&&0x0==_0x5748af['newValue']?_0x2b6780:void 0x0;}),_0x2a9a65['descriptionFactory']['registerDescriptionCallback'](_0x3cce58=>{if('attribute'!=_0x3cce58['type'])return;const {data:_0x275c12}=_0x3cce58;if(!_0x275c12||'listItemId'!=_0x275c12['key'])return;const _0xa26c85=Be(_0x3cce58);return'newValue'==_0xa26c85?{'type':'format','content':o(_0x10ea64,'*Merge:*\x20list\x20item')}:'oldValue'==_0xa26c85?{'type':'format','content':o(_0x10ea64,'*Split:*\x20list\x20item')}:_0x2b6780;}),_0x45de7b['model']['document']['registerPostFixer'](_0x1dab16=>this['listItemIdFixer'](_0x1dab16)),_0x45de7b['model']['document']['registerPostFixer'](_0x47d3d5=>this['noTrackChangesFixer'](_0x47d3d5)),_0x45de7b['model']['document']['on']('change:data',(_0x347150,_0xce096c)=>{if(_0xce096c['isUndo']||!_0xce096c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3dd2a7){if(_0x3dd2a7['batch']['isUndo']||!_0x3dd2a7['batch']['isLocal'])return!0x1;let _0x3983b9=!0x1;const _0x323fe9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x142d42=>_0x142d42['data']&&'listItemId'==_0x142d42['data']['key'])['filter'](_0xa5d5f4=>_0xa5d5f4['data']['newValue']&&_0xa5d5f4['data']['oldValue']);for(const _0x2a8241 of _0x323fe9)Be(_0x2a8241)||(_0x3dd2a7['removeMarker'](_0x2a8241['getFirstMarker']()),_0x3983b9=!0x0);return _0x3983b9;}['noTrackChangesFixer'](_0x1fb21e){if(_0x1fb21e['batch']['isUndo']||!_0x1fb21e['batch']['isLocal'])return!0x1;const _0x59c953=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x59c953['trackChangesCommand']['value'])return!0x1;let _0x1d1f4f=!0x1;const _0x27f292=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x244b89=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x32309f=>'attribute'==_0x32309f['type'])['filter'](_0x42ebc9=>_0x27f292['includes'](_0x42ebc9['attributeKey']));if(0x0==_0x244b89['length'])return _0x1d1f4f;for(const _0x5d488e of _0x244b89){const _0x84405f=_0x59c953['_findSuggestions'](_0x5d488e['range'],'attribute')['filter'](_0x2d86a8=>!_0x2d86a8['meta']['isNextTo'])['map'](_0x3ded5f=>_0x3ded5f['suggestion'])['filter'](_0x1c665b=>{const _0x12c4d6=_0x59c953['_getAttributeKey'](_0x1c665b);return _0x27f292['includes'](_0x12c4d6);});if(_0x84405f['length']){for(const _0x3c5580 of _0x84405f)_0x1fb21e['removeMarker'](_0x3c5580['getFirstMarker']());_0x1d1f4f=!0x0;}}return _0x1d1f4f;}['assureChains'](){const _0x45fa20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5146bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4fd298;const _0x4bc374=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x389013=>{if(_0x389013['data']['oldRange']||!_0x389013['data']['newRange'])return null;if(!_0x389013['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x533102}=_0x45fa20['_splitMarkerName'](_0x389013['name']);if(!_0x45fa20['hasSuggestion'](_0x533102))return null;const _0x276fb3=_0x45fa20['getSuggestion'](_0x533102);return _0x5146bc['includes'](_0x276fb3['data']['key']);})['map'](_0x5ff101=>{const {id:_0x510502}=_0x45fa20['_splitMarkerName'](_0x5ff101['name']),_0x4ba265=_0x45fa20['getSuggestion'](_0x510502);return _0x4fd298=_0x4ba265['attributes']['groupId'],_0x4ba265['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4bc374['size'])return;const _0x173971=_0x45fa20['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2db132=>'attribute'==_0x2db132['type']&&_0x2db132['data']&&_0x5146bc['includes'](_0x2db132['data']['key'])&&_0x2db132['attributes']['groupId']!=_0x4fd298)['map'](_0x1ef9a6=>({'listItem':_0x1ef9a6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ef9a6['attributes']['groupId']})),_0x21cab8=new Set();for(const {groupId:_0x437020,listItem:_0x2210a1}of _0x173971)_0x4bc374['has'](_0x2210a1)&&_0x21cab8['add'](_0x437020);for(const _0x3ae273 of _0x45fa20['getSuggestions']())_0x21cab8['has'](_0x3ae273['attributes']['groupId'])&&_0x3ae273['setAttribute']('groupId',_0x4fd298);}['_supportLegacySuggestions'](){const _0x169c26=this['editor'],_0x1dd657=_0x169c26['locale'],_0x520e37=_0x169c26['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x520e37['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1092bc,_0x666b06){const _0x4ec8cc=[];for(let _0x2d6adb of _0x1092bc)_0x2d6adb['start']['nodeAfter']===_0x2d6adb['end']['parent']&&(_0x2d6adb=_0x169c26['model']['createRange'](_0x169c26['model']['createPositionAt'](_0x2d6adb['start']['nodeAfter'],0x0))),_0x4ec8cc['push'](_0x2d6adb);_0x169c26['model']['change'](_0x31a46b=>{const _0x552c82=_0x169c26['model']['document']['selection'],_0x5f24e3=Array['from'](_0x552c82['getRanges']())['map'](_0x50b056=>_0x5e0301['fromRange'](_0x50b056));_0x31a46b['setSelection'](_0x4ec8cc),_0x169c26['commands']['get'](_0x666b06['commandName'])['refresh'](),_0x666b06['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x169c26['execute'](_0x666b06['commandName'],..._0x666b06['commandParams']),_0x31a46b['setSelection'](_0x5f24e3);for(const _0x6937f8 of _0x5f24e3)_0x6937f8['detach']();});}),_0x520e37['descriptionFactory']['registerElementLabel'](function(_0xd85c74){const _0x2e79fe=!_0x169c26['model']['schema']['isObject'](_0xd85c74),_0x371a05=_0xd85c74['previousSibling'],_0x25c5a6=_0xd85c74['nextSibling'],_0x37f41a=_0xd85c74['getAttribute']('listItemId'),_0x278b7b=!_0x371a05||_0x371a05['getAttribute']('listItemId')!==_0x37f41a,_0x41090c=!_0x25c5a6||_0x25c5a6['getAttribute']('listItemId')!==_0x37f41a;return _0x2e79fe&&Boolean(_0x37f41a)&&_0x278b7b&&_0x41090c;},_0x69ef1d=>o(_0x1dd657,'ELEMENT_LIST_ITEM',_0x69ef1d));}['_registerLegacyDescription'](){const _0x529fd6=this['editor'],_0x22c660=_0x529fd6['locale'];function _0x29d672(_0x31978e){const _0x2ba1a6=_0x529fd6['commands']['get']('bulletedList')['value'],_0xadaaa7=_0x529fd6['commands']['get']('numberedList')['value'];return'numberedList'===_0x31978e?_0x2ba1a6:_0xadaaa7;}_0x529fd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x106c8b){if('formatBlock'!=_0x106c8b['type'])return;const {data:_0x401a9d}=_0x106c8b;if(!_0x401a9d)return;let _0x5740bf,_0x243a7c,_0x241d75,_0x43c615;switch(_0x401a9d['commandName']){case'bulletedList':_0x241d75=_0x401a9d['commandParams'][0x0]['forceValue'],_0x43c615=_0x29d672(_0x401a9d['commandName']),_0x5740bf=_0x241d75?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43c615&&_0x529fd6['config']['get']('list.multiBlock')||(_0x5740bf='*Change\x20to:*\x20%0'),_0x243a7c={'type':'format','content':o(_0x22c660,_0x5740bf,o(_0x22c660,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x241d75=_0x401a9d['commandParams'][0x0]['forceValue'],_0x43c615=_0x29d672(_0x401a9d['commandName']),_0x5740bf=_0x241d75?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43c615&&_0x529fd6['config']['get']('list.multiBlock')||(_0x5740bf='*Change\x20to:*\x20%0'),_0x243a7c={'type':'format','content':o(_0x22c660,_0x5740bf,o(_0x22c660,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5740bf='*Indent:*\x20%0',_0x243a7c={'type':'format','content':o(_0x22c660,_0x5740bf,o(_0x22c660,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5740bf=function(_0x4a1f6a){const _0x5e38bd=_0x4a1f6a['getFirstRange']();let _0x154ca1=_0x5e38bd['start']['nodeAfter'];for(;_0x154ca1&&_0x5e38bd['containsItem'](_0x154ca1);){if(_0x154ca1['getAttribute']('listIndent')>0x0)return!0x1;_0x154ca1=_0x154ca1['nextSibling'];}return!0x0;}(_0x106c8b)?o(_0x22c660,'*Format:*\x20remove\x20from\x20%0',o(_0x22c660,function(_0x392d64){return'ELEMENT_'+_0x392d64['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x106c8b))):o(_0x22c660,'*Outdent:*\x20%0',o(_0x22c660,'ELEMENT_LIST_ITEM')),_0x243a7c={'type':'format','content':_0x5740bf};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x401a9d['multipleBlocks']&&(_0x5740bf='*Merge:*\x20%0',_0x243a7c={'type':'deletion','content':o(_0x22c660,_0x5740bf,o(_0x22c660,'ELEMENT_LIST_ITEM'))});}return _0x243a7c;});}}function Be(_0x4e5398){let _0x477bf8=_0x4e5398['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x477bf8;){const _0x1a827a=_0x477bf8['getAttribute']('listItemId');if(!_0x1a827a)return!0x1;if(_0x1a827a==_0x4e5398['data']['newValue'])return'newValue';if(_0x1a827a==_0x4e5398['data']['oldValue'])return'oldValue';_0x477bf8=_0x477bf8['previousSibling'];}return!0x1;}class Z extends _0x3425bc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b60c7=this['editor']['config']['get']('list.properties'),_0x51dcf0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b60c7['styles']&&(_0x51dcf0['enableDefaultAttributesIntegration']('listStyle'),_0x51dcf0['registerBlockAttribute']('listStyle')),_0x3b60c7['reversed']&&(_0x51dcf0['enableDefaultAttributesIntegration']('listReversed'),_0x51dcf0['registerBlockAttribute']('listReversed')),_0x3b60c7['startIndex']&&(_0x51dcf0['enableDefaultAttributesIntegration']('listStart'),_0x51dcf0['registerBlockAttribute']('listStart'));const _0x36af34={'type':'format','content':''};_0x51dcf0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x14c192=this['editor']['locale'];_0x51dcf0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x14c192,'FORMAT_LIST_REVERSED')),_0x51dcf0['descriptionFactory']['registerDescriptionCallback'](_0x13e2bb=>{const {data:_0xe32001}=_0x13e2bb;if(_0xe32001&&'listReversed'==_0xe32001['key'])return null==_0xe32001['newValue']||0x0==_0xe32001['newValue']&&null==_0xe32001['oldValue']?_0x36af34:void 0x0;}),_0x51dcf0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x14c192,'FORMAT_LIST_START')),_0x51dcf0['descriptionFactory']['registerDescriptionCallback'](_0x32be7a=>{const {data:_0x183be3}=_0x32be7a;if(_0x183be3&&'listStart'==_0x183be3['key'])return null==_0x183be3['newValue']||0x1==_0x183be3['newValue']&&null==_0x183be3['oldValue']?_0x36af34:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xddff1=>{if(_0xddff1['batch']['isUndo'])return!0x1;let _0x197fe8=!0x1;const _0x53c619=_0x51dcf0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x152228=>{const _0x3131b5=_0x51dcf0['_getAttributeKey'](_0x152228);return'listStart'==_0x3131b5||'listReversed'==_0x3131b5;});for(const _0x34ef11 of _0x53c619){const _0x3677ce=_0x34ef11['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3677ce||'customNumbered'==_0x3677ce)continue;_0x51dcf0['_findSuggestions'](_0x34ef11['getFirstRange'](),'attribute')['find'](_0x2af970=>'listType'==_0x51dcf0['_getAttributeKey'](_0x2af970['suggestion']))||(_0xddff1['removeMarker'](_0x34ef11['getFirstMarker']()),_0x197fe8=!0x0);}return _0x197fe8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x38eb57){const _0x321b03=this['editor']['locale'],{data:_0xafb7f9}=_0x38eb57,_0x511a63={'type':'format','content':''};if(!_0xafb7f9||'listStyle'!=_0xafb7f9['key'])return;if(!_0xafb7f9['oldValue'])return'default'==_0xafb7f9['newValue']?_0x511a63:{'type':'format','content':''+o(_0x321b03,'*Set\x20format:*\x20%0',o(_0x321b03,this['_getTranslationKeyForListStyle'](_0xafb7f9['newValue'])))};if(!_0xafb7f9['newValue']){if('default'==_0xafb7f9['oldValue'])return _0x511a63;let _0x474284=_0x38eb57['head'];for(;_0x474284;){if(_0x474284['data']&&'listType'==_0x474284['data']['key']&&_0x474284['data']['newValue'])return _0x511a63;_0x474284=_0x474284['next'];}return{'type':'format','content':''+o(_0x321b03,'*Remove\x20format:*\x20%0',o(_0x321b03,this['_getTranslationKeyForListStyle'](_0xafb7f9['oldValue'])))};}if('default'!=_0xafb7f9['newValue'])return{'type':'format','content':''+o(_0x321b03,'*Set\x20format:*\x20%0',o(_0x321b03,this['_getTranslationKeyForListStyle'](_0xafb7f9['newValue'])))};let _0x3d4372=_0x38eb57['head'];for(;_0x3d4372;){if(_0x3d4372['data']&&'listType'==_0x3d4372['data']['key']&&_0x3d4372['data']['newValue']&&_0x3d4372['data']['oldValue'])return _0x511a63;_0x3d4372=_0x3d4372['next'];}return{'type':'format','content':o(_0x321b03,'*Set\x20format:*\x20%0',o(_0x321b03,'ELEMENT_'+_0x38eb57['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x42cb17=this['editor'],_0xcd0a21=_0x42cb17['locale'];_0x42cb17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x444fc8=>{if('formatBlock'!=_0x444fc8['type'])return;const {data:_0x632bfb}=_0x444fc8;if(!_0x632bfb)return;let _0x2a00b3,_0x559b74;switch(_0x632bfb['commandName']){case'listStyle':_0x2a00b3='*Change\x20to:*\x20%0',_0x559b74={'type':'format','content':o(_0xcd0a21,_0x2a00b3,o(_0xcd0a21,this['_getTranslationKeyForListStyle'](_0x632bfb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a00b3=_0x632bfb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x559b74={'type':'format','content':o(_0xcd0a21,_0x2a00b3)};break;case'listStart':_0x2a00b3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x559b74={'type':'format','content':o(_0xcd0a21,_0x2a00b3,_0x632bfb['commandParams'][0x0]['startIndex'])};}return _0x559b74;});}['_getTranslationKeyForListStyle'](_0x5b4abb){return'ELEMENT_'+function(_0x5b410d){if(Re['includes'](_0x5b410d))return'bulleted';if(De['includes'](_0x5b410d))return'numbered';return null;}(_0x5b4abb)['toUpperCase']()+'_LIST_'+_0x5b4abb['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x3425bc{['afterInit'](){const _0x4c3557=this['editor'];_0x4c3557['commands']['get']('emoji')&&_0x4c3557['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x3425bc{static get['requires'](){return[_0x505477];}['init'](){const _0x53a386=this['editor'],_0x143ea1=_0x53a386['plugins']['get']('TrackChangesEditing'),_0x1e3375=_0x53a386['commands']['get']('enter');_0x143ea1['enableCommand']('enter',()=>{_0x53a386['model']['change'](_0x401f65=>{const _0x35dd1f=_0x53a386['model']['document']['selection'],_0x2644cc=_0x35dd1f['getFirstPosition'](),_0x49b2f0=_0x5e0301['fromRange'](_0x35dd1f['getFirstRange']());if(_0x1e3375['enterBlock'](_0x401f65)){const _0x56b0ca=_0x53a386['model']['createPositionAt'](_0x2644cc['parent']['nextSibling'],0x0),_0x3330ed=_0x401f65['createRange'](_0x2644cc,_0x56b0ca);_0x143ea1['markInsertion'](_0x3330ed);}else _0x401f65['setSelection'](_0x401f65['createRange'](_0x49b2f0['end']));_0x49b2f0['detach'](),_0x1e3375['fire']('afterExecute',{'writer':_0x401f65});});}),_0x53a386['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x53a386,'split'),{'priority':'high'}),_0x53a386['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3aced9,_0x2a5fba,_0x27d55b)=>{const _0x15774e=_0x27d55b['mapper']['markerNameToElements'](_0x2a5fba['markerName']);if(_0x15774e){for(const _0x521231 of _0x15774e)_0x521231['hasClass']('ck-suggestion-marker-split')&&(_0x27d55b['mapper']['unbindElementFromMarkerName'](_0x521231,_0x2a5fba['markerName']),_0x27d55b['writer']['remove'](_0x521231));}},{'priority':'high'}),_0x53a386['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f9963,_0x245e36,_0xcd31bb)=>{_0xcd31bb['options']['showSuggestionHighlights']&&Ve(_0x53a386,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3f9963,_0x245e36,_0xcd31bb);},{'priority':'high'});}}class it extends _0x3425bc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1c7c47=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c7c47['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1c7c47['enableCommand']('findNext'),_0x1c7c47['enableCommand']('findPrevious'),_0x1c7c47['enableCommand']('replace'),_0x1c7c47['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b2d49,_0x314d5a,_0x193779={}){const _0x54e012=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b2d49(_0x37a7cc=>{let _0xef6e7c=('string'==typeof _0x314d5a?_0x54e012['findByTextCallback'](_0x314d5a,_0x193779):_0x314d5a)(_0x37a7cc);Array['isArray'](_0xef6e7c)&&(_0xef6e7c={'results':_0xef6e7c,'searchText':'string'==typeof _0x314d5a?_0x314d5a:''});const _0x5446a0=_0xef6e7c['results']['filter'](_0x14c856=>!0x1===this['_isInDeletionRange'](_0x14c856,_0x37a7cc['item']));return{..._0xef6e7c,'results':_0x5446a0};},_0x193779);}['_isInDeletionRange'](_0x2f234e,_0x50fb0e){const _0x1e25ef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50fb0e,_0x2f234e['start']),this['editor']['model']['createPositionAt'](_0x50fb0e,_0x2f234e['end']));for(const _0x34046c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e25ef['getIntersection'](_0x34046c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x3425bc{['afterInit'](){const _0x594b78=this['editor']['locale'],_0x8634f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x115476,commandName:_0xc82efd}of eo)this['editor']['plugins']['has'](_0x115476)&&(_0x8634f2['enableDefaultAttributesIntegration'](_0xc82efd),_0x8634f2['registerInlineAttribute'](_0xc82efd));_0x8634f2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x594b78,'FORMAT_FONT_SIZE')),_0x8634f2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x594b78,'FORMAT_FONT_FAMILY')),_0x8634f2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x594b78,'FORMAT_FONT_COLOR')),_0x8634f2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x594b78,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207798=this['editor'],_0x525879=_0x207798['locale'];_0x207798['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323f16=>{const _0x8f8e3d=_0x525879['t'];if('formatInline'!=_0x323f16['type'])return;const {data:_0x128552}=_0x323f16;if(null!=_0x128552){if('fontSize'==_0x128552['commandName']){const _0x13a239=_0x128552['commandParams'][0x0]['value'];if(_0x13a239){const _0x5b3bc6=_0x8f8e3d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x14e484=>_0x14e484['model']==_0x13a239)['title'])['toLowerCase']();return{'type':'format','content':o(_0x525879,'*Set\x20font\x20size:*\x20%0',_0x5b3bc6)};}return{'type':'format','content':o(_0x525879,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x128552['commandName']){const _0x1f8220=_0x128552['commandParams'][0x0]['value'];return _0x1f8220?{'type':'format','content':o(_0x525879,'*Set\x20font\x20family:*\x20%0',_0x1f8220)}:{'type':'format','content':o(_0x525879,'*Reset\x20font\x20family*')};}if('fontColor'==_0x128552['commandName']){const _0x2e65c4=_0x128552['commandParams'][0x0]['value'];if(_0x2e65c4){const _0x5755b1=_0x127ede(this['editor']['config']['get']('fontColor.colors'))['find'](_0x198fa1=>_0x198fa1['model']==_0x2e65c4);let _0x5793dc=_0x2e65c4,_0x1774eb='';return _0x5755b1&&(_0x5793dc=_0x5755b1['label'],_0x1774eb=_0x8f8e3d(_0x5793dc)['toLowerCase']()),{'type':'format','content':o(_0x525879,'*Set\x20font\x20color:*\x20%0',_0x1774eb)['trim'](),'color':{'value':_0x2e65c4,'title':_0x1774eb||_0x5793dc}};}return{'type':'format','content':o(_0x525879,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x128552['commandName']){const _0x3d7a57=_0x128552['commandParams'][0x0]['value'];if(_0x3d7a57){const _0x40ebe4=_0x127ede(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5d9ecb=>_0x5d9ecb['model']==_0x3d7a57);let _0x5a41aa=_0x3d7a57,_0x4e2ce6='';return _0x40ebe4&&(_0x5a41aa=_0x40ebe4['label'],_0x4e2ce6=_0x8f8e3d(_0x5a41aa)['toLowerCase']()),{'type':'format','content':o(_0x525879,'*Set\x20font\x20background\x20color:*\x20%0',_0x4e2ce6)['trim'](),'color':{'value':_0x3d7a57,'title':_0x4e2ce6||_0x5a41aa}};}return{'type':'format','content':o(_0x525879,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x3425bc{['afterInit'](){const {plugins:_0x138a44}=this['editor'];_0x138a44['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x138a44['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4e4169,plugins:_0x1c5b33,commands:_0x3d9cfa}=this['editor'],_0x4ff465=_0x1c5b33['get']('TrackChangesEditing');_0x3d9cfa['get']('footnotesStyle')&&_0x4ff465['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3d9cfa['get']('footnotesStart')&&_0x4ff465['enableDefaultAttributesIntegration']('footnotesStart'),_0x4ff465['registerBlockAttribute']('footnotesListStyle'),_0x4ff465['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x4e4169,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4ff465['registerBlockAttribute']('footnotesListStart'),_0x4ff465['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x4e4169,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2b72aa=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x306966,commands:_0x2de392}=this['editor'];_0x2de392['get']('insertFootnote')&&_0x2b72aa['enableCommand']('insertFootnote'),_0x2b72aa['descriptionFactory']['registerElementLabel']('footnoteRef',_0xd885bc=>o(_0x306966,'ELEMENT_FOOTNOTE_REF',_0xd885bc)),_0x2b72aa['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x585395=>o(_0x306966,'ELEMENT_FOOTNOTE_DEFINITION',_0x585395)),_0x2b72aa['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x53cf5f=>o(_0x306966,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x53cf5f));}}class ot extends _0x3425bc{['afterInit'](){const _0x4ee127=this['editor'],_0x39f369=_0x4ee127['plugins']['get']('TrackChangesEditing'),_0x5a92d3=_0x4ee127['commands']['get']('copyFormat'),_0x3dbd8a=_0x4ee127['commands']['get']('pasteFormat');_0x5a92d3&&_0x3dbd8a&&(_0x39f369['enableDefaultAttributesIntegration']('pasteFormat'),_0x39f369['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3643ba=this['editor'],_0x4c8213=_0x3643ba['locale'];_0x3643ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c91a8=>{if('formatBlock'!=_0x4c91a8['type']&&'formatInline'!=_0x4c91a8['type'])return;const {data:_0x28fcf9}=_0x4c91a8;if(_0x28fcf9&&'pasteFormat'===_0x28fcf9['commandName']){const _0x4ebc9e=[],_0x1ff719=_0x28fcf9['commandParams'][0x0];for(const [_0x36af90,_0x49517c]of Object['entries'](_0x1ff719))_0x4ebc9e['push'](ro(_0x3643ba,_0x36af90,_0x49517c));return _0x4ebc9e['length']?{'type':'format','content':o(_0x4c8213,'*Set\x20format\x20to:*\x20%0',_0x4ebc9e['join'](',\x20'))}:{'type':'format','content':o(_0x4c8213,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b5787,_0x27cf33,_0x58db49){const _0x5f5798=_0x1b5787['locale']['t'],_0xa087c8=_0x27cf33['split'](/(?=[A-Z])/)['join']('\x20'),_0x126315=_0x5f5798(_0xa087c8['charAt'](0x0)['toUpperCase']()+_0xa087c8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58db49)return _0x126315;if('fontColor'===_0x27cf33||'fontBackgroundColor'===_0x27cf33){const _0x34cf92=_0x127ede(_0x1b5787['config']['get']('fontColor.colors'))['find'](_0x377d2a=>_0x377d2a['model']==_0x58db49);return _0x126315+'\x20('+(_0x34cf92?_0x5f5798(_0x34cf92['label'])['toLowerCase']():_0x58db49)+')';}if('fontSize'===_0x27cf33&&isNaN(parseFloat(_0x58db49))){const _0x1b706f=_0x1b5787['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b5787['config']['get']('fontSize.options'))['find'](_0x1b4036=>_0x1b4036['model']==_0x58db49);return _0x126315+'\x20('+(_0x1b706f?_0x5f5798(_0x1b706f['title'])['toLowerCase']():_0x58db49)+')';}return _0x126315+'\x20('+_0x58db49+')';}class rt extends _0x3425bc{['_headingOptions'];['afterInit'](){const _0x381b7b=this['editor'];if(!_0x381b7b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x381b7b['config']['get']('heading.options');const _0x453563=_0x381b7b['locale'],_0x38160a=_0x381b7b['plugins']['get']('TrackChangesEditing');_0x38160a['enableDefaultAttributesIntegration']('heading');for(const _0x365c4a of this['_headingOptions'])'paragraph'!=_0x365c4a['model']&&_0x38160a['descriptionFactory']['registerElementLabel'](_0x365c4a['model'],_0x3318b6=>{const _0x2f815f=this['_getHeadingLevel'](_0x365c4a['model']);return null!==_0x2f815f?_0x3abe1f(_0x3318b6,_0x2f815f):_0x1fab31(_0x3318b6,_0x365c4a['title']);});function _0x3abe1f(_0x51be0a,_0x3f446a){return o(_0x453563,'ELEMENT_HEADING',[_0x51be0a,_0x3f446a]);}function _0x1fab31(_0x8f496d,_0x3ca633){return o(_0x453563,'ELEMENT_HEADING_CUSTOM',[_0x8f496d,_0x3ca633]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x116501=this['editor'],_0x4294da=_0x116501['locale'];function _0x1b0150(_0x3cd61c,_0x225a9c){return o(_0x4294da,'ELEMENT_HEADING_CUSTOM',[_0x3cd61c,_0x225a9c]);}_0x116501['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1df343=>{if('formatBlock'!=_0x1df343['type'])return;const {data:_0x3539f6}=_0x1df343;if(_0x3539f6&&'heading'==_0x3539f6['commandName']){const _0x426275=_0x3539f6['commandParams'][0x0]['value'],_0x334066=this['_getHeadingLevel'](_0x426275);if(null!==_0x334066)return{'type':'format','content':o(_0x4294da,'*Change\x20to:*\x20%0',(_0x273813=0x1,_0x1da116=_0x334066,o(_0x4294da,'ELEMENT_HEADING',[_0x273813,_0x1da116])))};const _0x2ae0e7=this['_headingOptions']['find'](_0x5dc8d9=>_0x5dc8d9['model']===_0x426275)['title'];return{'type':'format','content':o(_0x4294da,'*Change\x20to:*\x20%0',_0x1b0150(0x1,_0x2ae0e7))};}var _0x273813,_0x1da116;});}['_getHeadingLevel'](_0x38bb9f){const _0x327c7b=_0x38bb9f['match'](/^heading(\d+)/);if(_0x327c7b)return _0x327c7b[0x1];const _0x1aa07a=this['_headingOptions']?.['find'](_0x36adef=>_0x36adef['model']==_0x38bb9f);if(_0x1aa07a&&_0x1aa07a['view']){const _0x16b9c8=_0x1aa07a['view'],_0x4b7186=(_0x16b9c8['name']??_0x16b9c8)['match'](/^h(\d+)/);if(_0x4b7186)return _0x4b7186[0x1];}return null;}}class at extends _0x3425bc{['afterInit'](){const _0x2cf1f4=this['editor'];if(!_0x2cf1f4['plugins']['has']('HighlightEditing'))return;const _0x5b979b=_0x2cf1f4['plugins']['get']('TrackChangesEditing'),_0x133bd7=_0x2cf1f4['locale'];_0x5b979b['enableDefaultAttributesIntegration']('highlight'),_0x5b979b['registerInlineAttribute']('highlight'),_0x5b979b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x133bd7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x455281=this['editor'],_0x21d76b=_0x455281['locale'];_0x455281['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1710b0=>{if('formatInline'!=_0x1710b0['type'])return;const {data:_0x19f15b}=_0x1710b0;if(_0x19f15b&&'highlight'==_0x19f15b['commandName']){const _0x29b5ab=_0x21d76b['t'],_0x47d568=_0x19f15b['commandParams'][0x0]['value'];if(_0x47d568){const _0x1e04fa=_0x455281['config']['get']('highlight.options')['find'](_0xb71e88=>_0xb71e88['model']==_0x47d568),_0x1900c2=_0x29b5ab(_0x1e04fa['title'])['toLowerCase']();return{'type':'format','content':o(_0x21d76b,'*Set\x20highlight:*\x20%0',_0x1900c2),'color':{'value':_0x1e04fa['color'],'title':_0x1e04fa['title']}};}return{'type':'format','content':o(_0x21d76b,'*Remove\x20highlight*',o(_0x21d76b,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x3425bc{['afterInit'](){const _0x248c4f=this['editor'];if(!_0x248c4f['plugins']['has']('HorizontalLineEditing'))return;_0x248c4f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x53386b=_0x248c4f['plugins']['get']('TrackChangesEditing'),_0x17703b=_0x248c4f['locale'];_0x53386b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18b729=>o(_0x17703b,'ELEMENT_HORIZONTAL_LINE',_0x18b729)),_0x248c4f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x237190,{writer:_0xb50f65,options:_0x346467})=>{if(!_0x346467['showSuggestionHighlights'])return null;const _0x5c6cd2=_0xb50f65['createContainerElement']('div'),_0x557c6d=_0xb50f65['createEmptyElement']('hr');return _0xb50f65['addClass']('ck-horizontal-line',_0x5c6cd2),_0xb50f65['insert'](_0xb50f65['createPositionAt'](_0x5c6cd2,0x0),_0x557c6d),_0x5c6cd2;},'converterPriority':'high'});}}class ut extends _0x3425bc{['afterInit'](){const _0x517f82=this['editor'];if(!_0x517f82['plugins']['has']('HtmlEmbed'))return;const _0x1cd0d2=_0x517f82['plugins']['get']('TrackChangesEditing'),_0x4dfea4=_0x517f82['locale'];_0x1cd0d2['descriptionFactory']['registerElementLabel']('rawHtml',_0x5bf4e8=>o(_0x4dfea4,'ELEMENT_HTML_EMBED',_0x5bf4e8)),_0x1cd0d2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1cd0d2['registerBlockAttribute']('value'),_0x1cd0d2['descriptionFactory']['registerDescriptionCallback'](_0x340fa8=>{if('attribute'!=_0x340fa8['type'])return;const {data:_0x216ba7}=_0x340fa8;if(_0x216ba7&&'value'==_0x216ba7['key']&&_0x340fa8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d7a60=o(_0x4dfea4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4dfea4,'*Change\x20%0\x20content*',_0x1d7a60)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x434a82=this['editor'],_0x3f2f1a=_0x434a82['locale'];_0x434a82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x638fe5=>{if('formatBlock'!=_0x638fe5['type'])return;const {data:_0x38954a}=_0x638fe5;if(_0x38954a&&'htmlEmbed'==_0x38954a['commandName']){const _0x1c21aa=o(_0x3f2f1a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f2f1a,'*Change\x20%0\x20content*',_0x1c21aa)};}});}}class ft extends _0x3425bc{['afterInit'](){const _0x35a1bb=this['editor'];if(!_0x35a1bb['plugins']['has']('ImageEditing'))return;const _0x39674e=_0x35a1bb['plugins']['get']('TrackChangesEditing'),_0x59b4c3=_0x35a1bb['plugins']['get']('ImageUtils'),_0x35dd8c=_0x35a1bb['locale'];_0x39674e['enableCommand']('insertImage'),_0x39674e['descriptionFactory']['registerElementLabel']('imageBlock',_0x9497d9=>o(_0x35dd8c,'ELEMENT_IMAGE',_0x9497d9)),_0x39674e['descriptionFactory']['registerElementLabel']('imageInline',_0x13f92a=>o(_0x35dd8c,'ELEMENT_INLINE_IMAGE',_0x13f92a)),_0x39674e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x35dd8c,'ELEMENT_CAPTION')),_0x35a1bb['plugins']['has']('ImageUploadEditing')&&_0x39674e['enableCommand']('uploadImage'),_0x35a1bb['plugins']['has']('ImageBlockEditing')&&_0x35a1bb['plugins']['has']('ImageInlineEditing')&&(_0x39674e['enableCommand']('imageTypeInline',(_0xcc61fe,_0x47c405)=>{const _0x55210f=_0x59b4c3['getClosestSelectedImageElement'](_0x35a1bb['model']['document']['selection']);_0x35a1bb['model']['change'](()=>{_0x39674e['markBlockFormat'](_0x55210f,{'commandName':'imageTypeInline','commandParams':[_0x47c405]},[],'convertBlockImageToInline');});}),_0x39674e['enableCommand']('imageTypeBlock',(_0x5cd77e,_0x5a104b)=>{_0x35a1bb['model']['change'](_0x502a98=>{let _0x282ac5=_0x59b4c3['getClosestSelectedImageElement'](_0x35a1bb['model']['document']['selection']),_0x4933a5=_0x502a98['createRangeOn'](_0x282ac5);const _0x3e87d7=_0xc5980f['fromPosition'](_0x4933a5['start'],'toPrevious'),_0x32b619=_0xc5980f['fromPosition'](_0x4933a5['end'],'toNext');_0x39674e['forceDefaultExecution'](()=>_0x5cd77e(_0x5a104b)),_0x282ac5=_0x59b4c3['getClosestSelectedImageElement'](_0x35a1bb['model']['document']['selection']),_0x4933a5=_0x502a98['createRangeOn'](_0x282ac5);const _0x4e2638=_0x502a98['createRange'](_0x3e87d7,_0x32b619);_0x3e87d7['detach'](),_0x32b619['detach'](),_0x39674e['markBlockFormat'](_0x282ac5,{'commandName':'imageTypeInline','commandParams':[_0x5a104b]},[],'convertInlineImageToBlock'),_0x4e2638['start']['isBefore'](_0x4933a5['start'])&&_0x39674e['markInsertion'](_0x502a98['createRange'](_0x4e2638['start'],_0x4933a5['start']),'convertInlineImageToBlock'),_0x4933a5['end']['isBefore'](_0x4e2638['end'])&&_0x39674e['markInsertion'](_0x502a98['createRange'](_0x4933a5['end'],_0x4e2638['end']),'convertInlineImageToBlock');});}),_0x39674e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x39674e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x39674e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x39674e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x39674e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x39674e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x197c52])=>{const _0x50c882=_0x39674e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x58e8a9=_0x197c52['start'],_0x4a9d8a=_0x197c52['end'];const _0x1618f2=_0x35a1bb['model']['schema']['getNearestSelectionRange'](_0x58e8a9,'backward'),_0x4e18b1=_0x35a1bb['model']['schema']['getNearestSelectionRange'](_0x4a9d8a,'forward');_0x1618f2['isCollapsed']&&(_0x58e8a9=_0x1618f2['start']),_0x4e18b1['isCollapsed']&&(_0x4a9d8a=_0x4e18b1['end']),_0x50c882([_0x35a1bb['model']['createRange'](_0x58e8a9,_0x4a9d8a)]);}),_0x39674e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x45a2c5),_0x39674e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x45a2c5)),_0x35a1bb['plugins']['has']('ImageCaptionEditing')&&(_0x39674e['enableCommand']('toggleImageCaption',(_0x1c5e09,_0x4b36a7)=>{const _0x2729ca=_0x35a1bb['plugins']['get']('ImageCaptionUtils');let _0x37da3d=_0x59b4c3['getClosestSelectedImageElement'](_0x35a1bb['model']['document']['selection']),_0x461226=_0x2729ca['getCaptionFromImageModelElement'](_0x37da3d);_0x35a1bb['model']['change'](()=>{if(_0x461226)return void _0x39674e['markDeletion'](_0x35a1bb['model']['createRangeOn'](_0x461226));const _0x3b08fb=_0x59b4c3['isBlockImage'](_0x37da3d);_0x1c5e09(_0x4b36a7),_0x37da3d=_0x59b4c3['getClosestSelectedImageElement'](_0x35a1bb['model']['document']['selection']),_0x461226=_0x2729ca['getCaptionFromImageModelElement'](_0x37da3d),_0x39674e['markInsertion'](_0x35a1bb['model']['createRangeOn'](_0x461226),_0x3b08fb?null:'imageCaption');});}),_0x39674e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x45a2c5));const _0x177d6f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54e199(_0x140811,_0x5991b2){const _0x53c799=_0x177d6f['findIndex'](({type:_0x42e107,subType:_0x190333})=>_0x140811['type']==_0x42e107&&_0x140811['subType']==_0x190333),_0x2f70aa=_0x177d6f['findIndex'](({type:_0x3935bf,subType:_0x58f0b6})=>_0x5991b2['type']==_0x3935bf&&_0x5991b2['subType']==_0x58f0b6);if(_0x53c799<0x0||_0x2f70aa<0x0)return!0x1;const _0x673327=_0x140811['getFirstRange'](),_0x340293=_0x5991b2['getFirstRange']();if((0x0==_0x53c799||0x1==_0x53c799)&&0x2==_0x2f70aa&&_0x673327['isIntersecting'](_0x340293))return!0x0;if(0x2==_0x53c799&&0x3==_0x2f70aa){const _0x2d14f4=_0x39674e['_findSuggestions'](_0x673327,'insertion')['filter'](({suggestion:_0x56381b,meta:_0x2a6bca})=>_0x2a6bca['isOwn']&&'convertInlineImageToBlock'==_0x56381b['subType']);if(_0x2d14f4['length']>0x1&&_0x340293['end']['isEqual'](_0x673327['start']))return!0x0;if(0x1==_0x2d14f4['length']&&(_0x673327['start']['isEqual'](_0x340293['end'])||_0x673327['end']['isEqual'](_0x340293['start'])))return!0x0;}if(0x3==_0x53c799&&0x3==_0x2f70aa&&_0x673327['start']['isBefore'](_0x340293['start'])){const _0xfe9a22=_0x673327['end']['nodeAfter'],_0x538ea4=_0x340293['start']['nodeBefore'];return _0x59b4c3['isBlockImage'](_0xfe9a22)&&_0xfe9a22===_0x538ea4;}return!0x1;}function _0x45a2c5(_0x1ac9e6,_0x2585ab){return _0x54e199(_0x1ac9e6,_0x2585ab)?[_0x1ac9e6,_0x2585ab]:_0x54e199(_0x2585ab,_0x1ac9e6)?[_0x2585ab,_0x1ac9e6]:null;}_0x35a1bb['plugins']['has']('ImageResize')&&(_0x39674e['enableDefaultAttributesIntegration']('resizeImage'),_0x39674e['registerBlockAttribute']('resizedWidth'),_0x39674e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x35dd8c,'FORMAT_IMAGE_SIZE'))),_0x35a1bb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x39674e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x39674e['registerBlockAttribute']('alt')),_0x35a1bb['plugins']['has']('PictureEditing')&&(_0x39674e['registerBlockAttribute']('sources'),_0x39674e['descriptionFactory']['registerDescriptionCallback'](_0x22c274=>{if('attribute'!=_0x22c274['type'])return;const {data:_0xa2c871}=_0x22c274;return _0xa2c871&&'sources'==_0xa2c871['key']?{'type':'format','content':''}:void 0x0;})),_0x35a1bb['plugins']['has']('ImageSizeAttributes')&&(_0x39674e['registerBlockAttribute']('width'),_0x39674e['registerBlockAttribute']('height'),_0x39674e['descriptionFactory']['registerDescriptionCallback'](_0x3b1b27=>{if('attribute'!=_0x3b1b27['type'])return;const {data:_0xbe7988}=_0x3b1b27;return!_0xbe7988||'width'!=_0xbe7988['key']&&'height'!=_0xbe7988['key']?void 0x0:{'type':'format','content':''};})),_0x39674e['descriptionFactory']['registerDescriptionCallback'](_0x1ac9b7=>{if(!!_0x177d6f['find'](({type:_0x319e7f,subType:_0x55128f})=>_0x1ac9b7['type']==_0x319e7f&&_0x1ac9b7['subType']==_0x55128f))return _0x1ac9b7['previous']?{}:void 0x0;}),_0x39674e['descriptionFactory']['registerDescriptionCallback'](_0xe1f2e8=>{if('insertion'==_0xe1f2e8['type']||'deletion'==_0xe1f2e8['type']){const _0x6a43dc=_0xe1f2e8['getContainedElement']();if(_0x6a43dc&&_0x6a43dc['is']('element','caption'))return{'type':'insertion'==_0xe1f2e8['type']?'addObject':'removeObject','element':_0x6a43dc,'quantity':0x1};}}),_0x39674e['descriptionFactory']['registerDescriptionCallback'](_0x270329=>'formatBlock'==_0x270329['type']&&'convertInlineImageToBlock'==_0x270329['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x270329['type']&&'convertBlockImageToInline'==_0x270329['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x39674e['descriptionFactory']['registerDescriptionCallback'](_0x4dbe8c=>{if('attribute'!=_0x4dbe8c['type'])return;const {data:_0x57b372}=_0x4dbe8c;if(!_0x57b372||'alt'!=_0x57b372['key'])return;const _0x241ecd=_0x57b372['newValue'];return _0x241ecd?{'type':'format','content':o(_0x35dd8c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x241ecd+'\x22')}:{'type':'format','content':o(_0x35dd8c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41bb30=this['editor'],_0x3b7817=_0x41bb30['locale'];_0x41bb30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fa713=>{if('formatBlock'!=_0x2fa713['type']&&'formatInline'!=_0x2fa713['type'])return;const {data:_0x307de0}=_0x2fa713;if(_0x307de0){if('imageTextAlternative'==_0x307de0['commandName']){const _0x43b525=_0x307de0['commandParams'][0x0]['newValue'];return _0x43b525?{'type':'format','content':o(_0x3b7817,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43b525+'\x22')}:{'type':'format','content':o(_0x3b7817,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x307de0['commandName']){const _0x499d2c=_0x307de0['commandParams'][0x0]['width'];return _0x499d2c?{'type':'format','content':o(_0x3b7817,'*Set\x20image\x20width:*\x20%0',_0x499d2c)}:{'type':'format','content':o(_0x3b7817,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x3425bc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3459b7=this['editor']['locale'],_0x55be45=this['editor']['plugins']['get']('TrackChangesEditing');_0x55be45['enableDefaultAttributesIntegration']('replaceImageSource'),_0x55be45['registerBlockAttribute']('src'),_0x55be45['descriptionFactory']['registerDescriptionCallback'](_0x327ad3=>{if('attribute'!=_0x327ad3['type'])return;const {data:_0x4b4458}=_0x327ad3;return _0x4b4458&&'src'==_0x4b4458['key']?_0x4b4458['newValue']&&_0x4b4458['oldValue']?{'type':'format','content':o(_0x3459b7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a346b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a346b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1a346b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a346b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1a346b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312825=this['editor'],_0x550a64=_0x312825['locale'];_0x312825['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x473f36=>{if('formatBlock'!=_0x473f36['type']&&'formatInline'!=_0x473f36['type'])return;const {data:_0x281306}=_0x473f36;if(!_0x281306||'replaceImageSource'!=_0x281306['commandName'])return;return{'type':'format','content':o(_0x550a64,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x3425bc{['afterInit'](){const _0x2e4e11=this['editor'];if(!_0x2e4e11['plugins']['has']('ImageStyleEditing'))return;const _0x23bacc=_0x2e4e11['plugins']['get']('TrackChangesEditing'),_0x5b9cb7=_0x2e4e11['plugins']['get']('ImageUtils'),_0x4205b2={};_0x23bacc['enableCommand']('imageStyle',(_0x15ef52,_0x4ee962)=>{const _0x56d2e8=_0x2e4e11['plugins']['get']('Users')['me'],_0x119741=_0x2e4e11['commands']['get']('imageStyle');let _0x1f6737=_0x5b9cb7['getClosestSelectedImageElement'](_0x2e4e11['model']['document']['selection']),_0x2bf666=_0x2e4e11['model']['createRangeOn'](_0x1f6737),_0x6a3f66=_0x119741['value'];if(_0x6a3f66==_0x4ee962['value'])return;const _0x68446a={'commandName':'imageStyle','commandParams':[_0x4ee962],'formatGroupId':_0x223174()};_0x2e4e11['model']['change'](()=>{if(_0x23bacc['getSuggestions']()['filter'](_0x2f5c84=>_0x2f5c84['isInContent']&&_0x56d2e8==_0x2f5c84['author']&&('formatBlock'==_0x2f5c84['type']||'formatInline'==_0x2f5c84['type'])&&('imageStylePreApply'==_0x2f5c84['subType']||'imageStylePostApply'==_0x2f5c84['subType'])&&_0x2f5c84['getFirstRange']()['isEqual'](_0x2bf666))['forEach'](_0x5bb48d=>_0x23bacc['discardSuggestion'](_0x5bb48d['head'])),_0x1f6737=_0x5b9cb7['getClosestSelectedImageElement'](_0x2e4e11['model']['document']['selection']),_0x2bf666=_0x2e4e11['model']['createRangeOn'](_0x1f6737),_0x119741['refresh'](),_0x2e4e11['commands']['get']('imageTypeInline')['refresh'](),_0x2e4e11['commands']['get']('imageTypeBlock')['refresh'](),_0x6a3f66=_0x119741['value'],_0x6a3f66!=_0x4ee962['value'])return _0x5b9cb7['isInlineImage'](_0x1f6737)&&_0x119741['shouldConvertImageType'](_0x4ee962['value'],_0x1f6737)?(_0x15ef52({..._0x4ee962,'setImageSizes':!0x1}),_0x1f6737=_0x5b9cb7['getClosestSelectedImageElement'](_0x2e4e11['model']['document']['selection']),void _0x23bacc['markBlockFormat'](_0x1f6737,{..._0x68446a,'commandReversedParams':[{'value':_0x6a3f66||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5b9cb7['isBlockImage'](_0x1f6737)?_0x23bacc['markBlockFormat'](_0x1f6737,_0x68446a,[],'imageStylePostApply'):_0x23bacc['markInlineFormat'](_0x2bf666,_0x68446a,'imageStylePostApply'));});});for(const _0x5ba977 of _0x2e4e11['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4205b2[_0x5ba977['name']]=_0x5ba977['title']['toLowerCase']();_0x23bacc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x23bacc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x23bacc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x23bacc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x7454a])=>{_0x5b9cb7['setImageNaturalSizeAttributes'](_0x7454a['getContainedElement']());}),_0x23bacc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x57bb8c,_0x3f5591)=>{_0x23bacc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x57bb8c,{'commandName':_0x3f5591['commandName'],'commandParams':_0x3f5591['commandReversedParams']});}),_0x23bacc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xeb4969,_0x4d6e9e){if(_0xaa4c40(_0xeb4969,_0x4d6e9e))return[_0xeb4969,_0x4d6e9e];if(_0xaa4c40(_0x4d6e9e,_0xeb4969))return[_0x4d6e9e,_0xeb4969];return null;});const _0x12da82=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xaa4c40(_0x3116e6,_0x4b242d){const _0x154b32=_0x12da82['findIndex'](({type:_0x5d499c,subType:_0x28fd60})=>_0x3116e6['type']==_0x5d499c&&_0x3116e6['subType']==_0x28fd60),_0x4bcce8=_0x12da82['findIndex'](({type:_0x284782,subType:_0x32118e})=>_0x4b242d['type']==_0x284782&&_0x4b242d['subType']==_0x32118e);if(_0x154b32<0x0||_0x4bcce8<0x0)return!0x1;const _0x396f3c=_0x3116e6['getFirstRange'](),_0x3f3688=_0x4b242d['getFirstRange']();if((0x0==_0x154b32||0x1==_0x154b32)&&0x2==_0x4bcce8&&_0x396f3c['isIntersecting'](_0x3f3688))return!0x0;if(0x2==_0x154b32&&0x3==_0x4bcce8){const _0x2cf7ab=_0x23bacc['_findSuggestions'](_0x396f3c,'insertion')['filter'](({suggestion:_0x2802df,meta:_0x27b38e})=>_0x27b38e['isOwn']&&'convertInlineImageToBlock'==_0x2802df['subType']);if(_0x2cf7ab['length']>0x1&&_0x3f3688['end']['isEqual'](_0x396f3c['start']))return!0x0;if(0x1==_0x2cf7ab['length']&&(_0x396f3c['start']['isEqual'](_0x3f3688['end'])||_0x396f3c['end']['isEqual'](_0x3f3688['start'])))return!0x0;}if(0x3==_0x154b32&&0x3==_0x4bcce8&&_0x396f3c['start']['isBefore'](_0x3f3688['start'])){const _0x199fab=_0x396f3c['end']['nodeAfter'],_0x50a189=_0x3f3688['start']['nodeBefore'];return _0x5b9cb7['isBlockImage'](_0x199fab)&&_0x199fab===_0x50a189;}return!0x1;}_0x2e4e11['model']['document']['registerPostFixer'](()=>{let _0x253118=!0x1;const _0x1562cd=Array['from'](_0x2e4e11['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x262e8d,data:_0x325e49}of _0x1562cd){const {group:_0x3887f2,type:_0x2eb7b1,subType:_0x157218,id:_0x57ed24}=_0x23bacc['_splitMarkerName'](_0x262e8d);if('suggestion'==_0x3887f2&&_0x23bacc['hasSuggestion'](_0x57ed24)){if('formatBlock'==_0x2eb7b1&&('imageStylePreApply'==_0x157218||'imageStylePostApply'==_0x157218)){const _0x336ea2=_0x23bacc['getSuggestion'](_0x57ed24);if(_0x325e49['newRange']){const _0x5845df=_0x336ea2['getFirstRange']()['getContainedElement']();if(_0x5b9cb7['isBlockImage'](_0x5845df))continue;_0x23bacc['discardSuggestion'](_0x336ea2),_0x253118=!0x0;}}if('insertion'==_0x2eb7b1&&'imageCaption'==_0x157218&&!_0x325e49['newRange']){const _0x46bd34=_0x23bacc['getSuggestion'](_0x57ed24);_0x46bd34['next']&&_0x46bd34['next']['isInContent']&&(_0x23bacc['discardSuggestion'](_0x46bd34['next']),_0x253118=!0x0);}}}return _0x253118;}),this['_registerLegacyDescription'](_0x4205b2);}['_registerLegacyDescription'](_0x2da287){const _0x52095d=this['editor'],_0x295ac0=_0x52095d['locale'];_0x52095d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7dd5=>{if('formatBlock'!=_0x4f7dd5['type']&&'formatInline'!=_0x4f7dd5['type'])return;const {data:_0xa6da9f}=_0x4f7dd5;if(!_0xa6da9f||'imageStyle'!=_0xa6da9f['commandName'])return;const _0x107a53=_0xa6da9f['commandParams'][0x0]['value'];return _0x5c65eb('side'===_0x107a53?o(_0x295ac0,'FORMAT_SIDE_IMAGE'):_0x2da287[_0x107a53]||_0x107a53);function _0x5c65eb(_0x493cbb){return{'type':'format','content':o(_0x295ac0,'*Format:*\x20%0',_0x493cbb)};}});}}class lt extends _0x3425bc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x326613){super(_0x326613),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x25b683=this['editor'],_0x23c156=_0x25b683['commands']['get']('importWord'),_0xe95cbd=_0x25b683['commands']['get']('trackChanges');_0x23c156&&(_0x23c156['on']('execute',(_0x537fc1,[,_0x5bbfe0])=>{this['_trackChangesValueDuringImport']=_0xe95cbd['value'],_0x5bbfe0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x23c156,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x23c156,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe95cbd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x25b683['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5318a6,_0x3e9e7b){const {suggestions:_0x268d26}=_0x3e9e7b,_0x1308c3=this['editor']['commands']['get']('trackChanges'),_0x3381dc=_0x1308c3['value'];this['_trackChangesValueDuringImport']!==_0x3381dc&&(_0x1308c3['execute'](),this['_trackChangesExecuted']=!0x0),_0x268d26&&_0x268d26['forEach'](({id:_0x4acb94,type:_0x1cc387,author:_0x2f955f,created_at:_0x5f0bda})=>{const _0x24db17={'id':_0x4acb94,'type':_0x1cc387,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f955f,'createdAt':_0x5f0bda?new Date(_0x5f0bda):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x24db17);});}}class mt extends _0x3425bc{['afterInit'](){const _0x517dc4=this['editor'],_0x5bfd8c=_0x517dc4['plugins']['get']('TrackChangesEditing');if(_0x517dc4['plugins']['has']('IndentEditing')&&(_0x5bfd8c['enableCommand']('indent'),_0x5bfd8c['enableCommand']('outdent')),_0x517dc4['plugins']['has']('IndentBlock')){for(const _0x7ba301 of['indentBlock','outdentBlock'])_0x5bfd8c['enableDefaultAttributesIntegration'](_0x7ba301);}const _0xfcfc75=_0x517dc4['locale'];_0x5bfd8c['registerBlockAttribute']('blockIndent'),_0x5bfd8c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xfcfc75,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51e5b9=this['editor'],_0x2ca863=_0x51e5b9['locale'],_0x527523=_0x51e5b9['plugins']['get']('TrackChangesEditing');_0x527523['descriptionFactory']['registerDescriptionCallback'](_0x1be89f=>{if('formatBlock'!=_0x1be89f['type'])return;const {data:_0x4f6845}=_0x1be89f;if(!_0x4f6845)return;if('indentBlock'!=_0x4f6845['commandName']&&'outdentBlock'!=_0x4f6845['commandName'])return;const _0x40aaa7=_0x1be89f['getItems']()[0x0],_0xd34473=_0x527523['descriptionFactory']['getItemLabel'](_0x40aaa7);return'indentBlock'==_0x4f6845['commandName']?{'type':'format','content':o(_0x2ca863,'*Indent:*\x20%0',_0xd34473)}:'outdentBlock'==_0x4f6845['commandName']?{'type':'format','content':o(_0x2ca863,'*Outdent:*\x20%0',_0xd34473)}:void 0x0;});}}class dt extends _0x3425bc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x3425bc{['afterInit'](){const _0x1fcf5c=this['editor'];if(!_0x1fcf5c['plugins']['has']('LinkEditing'))return;const _0x1bd9b2=_0x1fcf5c['plugins']['get']('TrackChangesEditing'),_0x4a1c7d=_0x1fcf5c['commands']['get']('link');_0x1bd9b2['enableDefaultAttributesIntegration']('link'),_0x1bd9b2['enableDefaultAttributesIntegration']('unlink'),_0x1bd9b2['registerInlineAttribute']('linkHref');for(const _0x18f656 of _0x4a1c7d['manualDecorators'])_0x1bd9b2['registerInlineAttribute'](_0x18f656['id']),_0x1bd9b2['descriptionFactory']['registerAttributeLabel'](_0x18f656['id'],'link\x20('+_0x18f656['label']['toLowerCase']()+')');_0x1bd9b2['descriptionFactory']['registerDescriptionCallback'](_0x36b387=>{if('attribute'!=_0x36b387['type'])return;const {data:_0x394e91}=_0x36b387;if(!_0x394e91||'linkHref'!=_0x394e91['key'])return;const _0x3b9807=_0x394e91['newValue'],_0xf63a68=_0x1fcf5c['locale'];return{'type':'format','content':null==_0x3b9807?o(_0xf63a68,'*Remove\x20link*'):o(_0xf63a68,'*Set\x20link:*\x20%0','\x22'+_0x3b9807+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cb63d=this['editor'],_0x1b12e1=_0x5cb63d['locale'];_0x5cb63d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43959b=>{if('formatInline'!=_0x43959b['type'])return;const {data:_0x45ec20}=_0x43959b;if(_0x45ec20){if('link'==_0x45ec20['commandName']){const _0x375218=_0x45ec20['commandParams'][0x0];return{'type':'format','content':o(_0x1b12e1,'*Set\x20link:*\x20%0','\x22'+_0x375218+'\x22')};}return'unlink'==_0x45ec20['commandName']?{'type':'format','content':o(_0x1b12e1,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x3425bc{['afterInit'](){const _0x5641d8=this['editor'],_0x47e053=_0x5641d8['locale'];if(!_0x5641d8['plugins']['has']('LegacyListEditing'))return;const _0x10018b=_0x5641d8['plugins']['get']('TrackChangesEditing'),_0x2125b7=_0x5641d8['plugins']['has']('LegacyTodoListEditing');function _0x181e1e(_0x3012db){return()=>{const _0x2465f4=_0x5641d8['model']['document']['selection'],_0x30fdaf=_0x5641d8['commands']['get'](_0x3012db);if(_0x30fdaf['value'])return void _0x5641d8['execute']('paragraph',{});const _0xa91cc7=_0x3012db['slice'](0x0,-0x4),_0xedc4e9=function(_0x1f3189,_0x1d5f69,_0x39d4d2){let _0x22da0e=Array['from'](_0x1f3189)['filter'](_0x26b265=>function(_0x49a00f,_0x37c536){return _0x37c536['checkChild'](_0x49a00f['parent'],'listItem')&&!_0x37c536['isObject'](_0x49a00f);}(_0x26b265,_0x39d4d2));_0x22da0e=_0x22da0e['filter'](_0x3a3898=>!_0x3a3898['is']('element','listItem')||_0x3a3898['getAttribute']('listType')!=_0x1d5f69);const _0x45cd55=new Set();for(const _0x347aef of _0x22da0e)_0x347aef['is']('element','listItem')?_0x45cd55['add'](Ne(_0x347aef)):_0x45cd55['add'](_0x347aef);return Array['from'](_0x45cd55);}(_0x2465f4['getSelectedBlocks'](),_0xa91cc7,_0x5641d8['model']['schema']);_0x5641d8['model']['change'](()=>{for(const _0x356a24 of _0xedc4e9)_0x10018b['markBlockFormat'](_0x356a24,{'commandName':_0x3012db,'commandParams':[{'forceValue':!_0x30fdaf['value']}],'formatGroupId':'blockName'},Se(_0x356a24));});};}function _0x21d78d(_0x2830a9){return()=>{const _0x12df53=function(_0xefd14f){let _0x5f5d6f=Array['from'](_0xefd14f);const _0xf23180=_0x5f5d6f['findIndex'](_0x5d93fb=>'listItem'!=_0x5d93fb['name']);return _0xf23180>-0x1&&(_0x5f5d6f=_0x5f5d6f['slice'](0x0,_0xf23180)),_0x5f5d6f;}(_0x5641d8['model']['document']['selection']['getSelectedBlocks']()),_0x30616c=_0x5641d8['model']['createRange'](_0x5641d8['model']['createPositionAt'](_0x12df53[0x0],'before'),_0x5641d8['model']['createPositionAt'](_0x12df53[_0x12df53['length']-0x1],'end'));_0x5641d8['model']['change'](()=>{_0x10018b['markBlockFormat'](_0x30616c,{'commandName':_0x2830a9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38b4c7){const _0x7124b6=new Set();for(const _0x35fdb9 of _0x38b4c7){let _0xeff6a8=_0x35fdb9['nextSibling'];for(;_0xeff6a8&&_0xeff6a8['getAttribute']('listIndent')>_0x35fdb9['getAttribute']('listIndent');)_0x7124b6['add'](_0xeff6a8),_0xeff6a8=_0xeff6a8['nextSibling'];}return Array['from'](_0x7124b6);}(_0x12df53));});};}_0x10018b['enableCommand']('numberedList',_0x181e1e('numberedList')),_0x10018b['enableCommand']('bulletedList',_0x181e1e('bulletedList')),_0x2125b7&&_0x10018b['enableCommand']('todoList',_0x181e1e('todoList')),_0x10018b['enableCommand']('indentList',_0x21d78d('indentList')),_0x10018b['enableCommand']('outdentList',_0x21d78d('outdentList')),_0x2125b7&&_0x10018b['enableCommand']('checkTodoList',()=>{const _0x2a269e=_0x5641d8['commands']['get']('checkTodoList'),_0x41efe0=Array['from'](_0x2a269e['_selectedElements']);_0x41efe0['filter'](_0x30c093=>_0x30c093['getAttribute']('todoListChecked')!=_0x2a269e['value']),_0x5641d8['model']['change'](()=>{for(const _0x1ae961 of _0x41efe0)_0x10018b['markBlockFormat'](_0x1ae961,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a269e['value']}]});});}),_0x10018b['descriptionFactory']['registerElementLabel']('listItem',_0x2b616f=>o(_0x47e053,'ELEMENT_LIST_ITEM',_0x2b616f)),_0x10018b['descriptionFactory']['registerDescriptionCallback'](_0x419b60=>{if('formatBlock'!=_0x419b60['type']&&'formatInline'!=_0x419b60['type'])return;const {data:_0x543151}=_0x419b60;if(_0x543151){if('numberedList'==_0x543151['commandName']||'bulletedList'==_0x543151['commandName']||'todoList'==_0x543151['commandName'])switch(_0x543151['commandName']['replace']('List','')){case'bulleted':return _0x184849(o(_0x47e053,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x184849(o(_0x47e053,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x184849(o(_0x47e053,'ELEMENT_TODO_LIST'));}if('indentList'==_0x543151['commandName'])return{'type':'format','content':o(_0x47e053,'*Indent:*\x20%0',o(_0x47e053,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x543151['commandName'])return{'type':'format','content':o(_0x47e053,'*Outdent:*\x20%0',o(_0x47e053,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x543151['commandName'])return _0x543151['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47e053,'*Check\x20item*')}:{'type':'format','content':o(_0x47e053,'*Uncheck\x20item*')};}function _0x184849(_0x57d1e7){return{'type':'format','content':o(_0x47e053,'*Change\x20to:*\x20%0',_0x57d1e7)};}});}}function Ne(_0x4f837d){const _0x231e6a=_0x4f837d['getAttribute']('listIndent');if(0x0==_0x231e6a)return _0x4f837d;let _0xdff890=_0x4f837d;for(;_0x4f837d['previousSibling']&&_0x4f837d['previousSibling']['is']('element','listItem');){const _0x3362bf=_0x4f837d['previousSibling']['getAttribute']('listIndent');if(_0x3362bf==_0x231e6a)_0xdff890=_0x4f837d['previousSibling'];else{if(_0x3362bf<_0x231e6a)break;}_0x4f837d=_0x4f837d['previousSibling'];}return _0xdff890;}function Se(_0x1b60c3){const _0x42c146=[];if(_0x1b60c3['is']('element','listItem')&&_0x1b60c3['getAttribute']('listIndent')>0x0){let _0x31b924=_0x1b60c3['nextSibling'];for(;_0x31b924&&'listItem'==_0x31b924['name']&&_0x31b924['getAttribute']('listIndent')==_0x1b60c3['getAttribute']('listIndent');)_0x42c146['push'](_0x31b924),_0x31b924=_0x31b924['nextSibling'];}return _0x42c146;}class wt extends _0x3425bc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4046ca=this['editor']['config']['get']('list.properties'),_0x3983df=this['editor']['plugins']['get']('TrackChangesEditing');_0x4046ca['styles']&&_0x3983df['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4046ca['reversed']&&_0x3983df['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4046ca['startIndex']&&_0x3983df['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3983df['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b409f,_0xb797e8={}){const _0x5ef881=this['editor']['plugins']['get']('TrackChangesEditing'),_0x206609=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5ef881['markMultiRangeBlockFormat'](_0x206609,{'commandName':'listStyle','commandParams':[{'type':_0xb797e8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe5f796,_0x3bb762={}){const _0x6aece8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0f21=this['_getSuggestionBlocks'](_0x53c5f2=>_0x53c5f2['is']('element','listItem')&&'numbered'===_0x53c5f2['getAttribute']('listType'));if(_0x3a0f21['length']<0x1)return;const _0xab119e=_0x3a0f21['map'](_0x49864f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49864f,'before'),this['editor']['model']['createPositionAt'](_0x49864f,0x0)));this['editor']['model']['change'](()=>{_0x6aece8['markMultiRangeBlockFormat'](_0xab119e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3bb762['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3662d6,_0x17386b={}){const _0x3bdcbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41e5b2=this['_getSuggestionBlocks'](_0x4546a7=>_0x4546a7['is']('element','listItem')&&'numbered'===_0x4546a7['getAttribute']('listType'));if(_0x41e5b2['length']<0x1)return;const _0x5dfa35=_0x41e5b2['map'](_0x220982=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x220982,'before'),this['editor']['model']['createPositionAt'](_0x220982,0x0)));this['editor']['model']['change'](()=>{_0x3bdcbf['markMultiRangeBlockFormat'](_0x5dfa35,{'commandName':'listStart','commandParams':[{'startIndex':_0x17386b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x200450){if('formatBlock'!=_0x200450['type']&&'formatInline'!=_0x200450['type'])return;const _0x2439ec=this['editor']['locale'],{data:_0x3814e4}=_0x200450;if(!_0x3814e4)return;let _0x469793,_0xf9a7df;switch(_0x3814e4['commandName']){case'listStyle':_0x469793='*Change\x20to:*\x20%0',_0xf9a7df={'type':'format','content':o(_0x2439ec,_0x469793,o(_0x2439ec,this['_getTranslationKeyForListStyle'](_0x3814e4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x469793=_0x3814e4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf9a7df={'type':'format','content':o(_0x2439ec,_0x469793)};break;case'listStart':_0x469793='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf9a7df={'type':'format','content':o(_0x2439ec,_0x469793,_0x3814e4['commandParams'][0x0]['startIndex'])};}return _0xf9a7df;}['_getSuggestionBlocksForListStyle'](){const _0x48f25e=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a0e0f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a0e0f[0x0]?.['is']('element','listItem')&&_0x3a0e0f['unshift'](..._0x48f25e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a0e0f[_0x3a0e0f['length']-0x1]?.['is']('element','listItem')&&_0x3a0e0f['push'](..._0x48f25e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a0e0f=[...new Set(_0x3a0e0f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a0e0f=_0x3a0e0f['filter'](_0x3b139f=>_0x3b139f['is']('element','listItem'))),_0x3a0e0f;}['_getSuggestionBlocks'](_0x2db0f7){const _0x211ee3=this['editor']['plugins']['get']('LegacyListUtils');let _0x429d9d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2db0f7)['map'](_0x367b77=>{const _0x5e1c53=this['editor']['model']['createPositionAt'](_0x367b77,0x0);return[..._0x211ee3['getSiblingNodes'](_0x5e1c53,'backward'),..._0x211ee3['getSiblingNodes'](_0x5e1c53,'forward')];})['flat']();return _0x429d9d=[...new Set(_0x429d9d)],_0x429d9d;}['_getTranslationKeyForListStyle'](_0x4aa388){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4aa388)||'default')['toUpperCase']()+'_LIST_'+_0x4aa388['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x3425bc{['afterInit'](){const _0x4d037c=this['editor'];if(!_0x4d037c['plugins']['has']('MediaEmbedEditing'))return;const _0x48ee90=_0x4d037c['plugins']['get']('TrackChangesEditing'),_0x3bb63d=_0x4d037c['locale'];_0x48ee90['enableCommand']('mediaEmbed'),_0x48ee90['descriptionFactory']['registerElementLabel']('media',_0x5e1235=>o(_0x3bb63d,'ELEMENT_MEDIA',_0x5e1235)),_0x4d037c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d4e33,{writer:_0x3e7221,options:_0x139cef})=>{if(_0x139cef['showSuggestionHighlights'])return _0x3e7221['createEmptyElement']('div');},'converterPriority':'high'}),_0x4d037c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x39ffac,_0x5a9d9d,_0x1ebd3c)=>{_0x1ebd3c['options']['showSuggestionHighlights']&&_0x39ffac['stop']();},{'priority':'high'});}}class yt extends _0x3425bc{['afterInit'](){const _0xb4146a=this['editor'];_0xb4146a['plugins']['has']('MentionEditing')&&_0xb4146a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x3425bc{['afterInit'](){const _0x25d06f=this['editor'];if(!_0x25d06f['plugins']['has']('MergeFieldsEditing'))return;const _0x4ede25=_0x25d06f['plugins']['get']('TrackChangesEditing'),_0x242dd2=_0x25d06f['locale'];_0x4ede25['enableCommand']('insertMergeField'),_0x4ede25['enableCommand']('insertMergeFieldBlock'),_0x4ede25['enableCommand']('insertMergeFieldImage'),_0x4ede25['descriptionFactory']['registerElementLabel']('mergeField',_0x204b86=>o(_0x242dd2,'ELEMENT_MERGE_FIELD',_0x204b86)),_0x4ede25['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x46c205=>o(_0x242dd2,'ELEMENT_MERGE_FIELD',_0x46c205)),_0x4ede25['descriptionFactory']['registerDescriptionCallback'](_0x27af37=>{if('insertion'!=_0x27af37['type']&&'deletion'!=_0x27af37['type'])return;const _0x2689b7=_0x27af37['getContainedElement']();if(null==_0x2689b7)return;const _0x39916c=_0x25d06f['plugins']['get']('MergeFieldsEditing');let _0x307d7d;switch(_0x39916c['getMergeFieldType'](_0x2689b7)){case null:return;case'image':{const _0x2170f9=_0x39916c['unwrapAffixes'](_0x2689b7['getAttribute']('src'));_0x307d7d=_0x39916c['getLabel'](_0x2170f9)||_0x2170f9;break;}default:{const _0x247cea=_0x2689b7['getAttribute']('id');_0x307d7d=_0x39916c['getLabel'](_0x247cea)||_0x247cea;break;}}return'insertion'==_0x27af37['type']?{'type':'insertion','content':o(_0x242dd2,'*Insert:*\x20%0','\x22'+_0x307d7d+'\x22\x20'+o(_0x242dd2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x242dd2,'*Remove:*\x20%0','\x22'+_0x307d7d+'\x22\x20'+o(_0x242dd2,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x3425bc{['afterInit'](){const _0x269b24=this['editor'],_0x59b49a=_0x269b24['plugins']['get']('TrackChangesEditing');_0x269b24['plugins']['has']('MultiLevelList')&&(_0x59b49a['enableDefaultAttributesIntegration']('multiLevelList'),_0x59b49a['registerBlockAttribute']('listMarkerStyle'),_0x59b49a['descriptionFactory']['registerDescriptionCallback'](_0x3bf2d8=>this['handleDescriptions'](_0x3bf2d8)));}['handleDescriptions'](_0x52869f){const _0x2c5c74=this['editor']['locale'],{data:_0x419f2f}=_0x52869f,_0x3046a9={'type':'format','content':''};if(_0x419f2f&&'listMarkerStyle'==_0x419f2f['key']){if(!_0x419f2f['oldValue'])return{'type':'format','content':o(_0x2c5c74,'*Set\x20format:*\x20%0',o(_0x2c5c74,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x419f2f['newValue']+')'};if(!_0x419f2f['newValue']){let _0xc16e9=_0x52869f['head'];for(;_0xc16e9;){if(_0xc16e9['data']&&'listType'==_0xc16e9['data']['key']&&_0xc16e9['data']['newValue'])return _0x3046a9;_0xc16e9=_0xc16e9['next'];}return{'type':'format','content':o(_0x2c5c74,'*Remove\x20format:*\x20%0',o(_0x2c5c74,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x419f2f['oldValue']+')'};}}}}class It extends _0x3425bc{['afterInit'](){const _0x147643=this['editor'];if(!_0x147643['plugins']['has']('PageBreakEditing'))return;_0x147643['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x354099=_0x147643['plugins']['get']('TrackChangesEditing'),_0x400a92=_0x147643['locale'];_0x354099['descriptionFactory']['registerElementLabel']('pageBreak',_0x347de1=>o(_0x400a92,'ELEMENT_PAGE_BREAK',_0x347de1));}}class At extends _0x3425bc{['afterInit'](){const _0x4f869c=this['editor'];if(!_0x4f869c['plugins']['has']('Paragraph'))return;const _0x1792ea=_0x4f869c['locale'],_0x4edea3=_0x4f869c['plugins']['get']('TrackChangesEditing');_0x4edea3['descriptionFactory']['registerElementLabel']('paragraph',_0x2ba5b2=>o(_0x1792ea,'ELEMENT_PARAGRAPH',_0x2ba5b2)),_0x4edea3['enableDefaultAttributesIntegration']('paragraph'),_0x4edea3['enableCommand']('insertParagraph'),_0x4f869c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4f869c),{'priority':'highest'}),_0x4f869c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f7025,_0x5e29cb,_0x3158f3)=>{_0x3158f3['options']['showSuggestionHighlights']&&nr(_0x4f869c,{'showActiveMarker':!0x1})(_0x2f7025,_0x5e29cb,_0x3158f3);},{'priority':'highest'});const _0x46c48b=_0x4edea3['descriptionFactory'];_0x46c48b['registerDescriptionCallback'](_0x45dd6b=>{if('insertion'!==_0x45dd6b['type'])return;const {start:_0x17fe5f,end:_0x17e509}=_0x45dd6b['getFirstRange']();if(!_0x17fe5f['isTouching'](_0x17e509)||!_0x17fe5f['nodeAfter'])return;const _0x3b3df0=_0x4f869c['model']['schema'],_0x27ab2c=_0x17fe5f['nodeAfter'];return _0x3b3df0['isBlock'](_0x27ab2c)&&!_0x3b3df0['isLimit'](_0x27ab2c)&&_0x3b3df0['checkChild'](_0x27ab2c,'$text')?{'type':'insertion','content':o(_0x1792ea,'*Insert:*\x20%0',_0x46c48b['getItemLabel'](_0x27ab2c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d8d2=this['editor'],_0x4fbad0=_0x51d8d2['locale'];_0x51d8d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x612817=>{if('formatBlock'!=_0x612817['type'])return;const {data:_0x38651e}=_0x612817;return _0x38651e&&'paragraph'==_0x38651e['commandName']?{'type':'format','content':o(_0x4fbad0,'*Change\x20to:*\x20%0',o(_0x4fbad0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x34fcc8,{showActiveMarker:_0x156de7=!0x0}={}){return(_0x132cc7,_0x42ec03,_0xc2612b)=>{const _0xa9825=_0x34fcc8['plugins']['get']('TrackChangesEditing'),_0x47fab1=_0x42ec03['markerRange']['start'],_0x4b781e=_0x42ec03['markerRange']['end'],_0x2995af=_0x34fcc8['model']['schema'];if(!_0x47fab1['isTouching'](_0x4b781e)||!_0x47fab1['nodeAfter'])return;const _0xa0026=_0x47fab1['nodeAfter'];if(_0x2995af['isBlock'](_0xa0026)&&!_0x2995af['isLimit'](_0xa0026)&&_0x2995af['checkChild'](_0xa0026,'$text')){if(!_0xc2612b['consumable']['consume'](_0x42ec03['markerRange'],_0x132cc7['name']))return;const {id:_0x16fdd1,authorId:_0x2eabb4}=_0xa9825['_splitMarkerName'](_0x42ec03['markerName']),_0x4259a6=_0xc2612b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x16fdd1,'data-author-id':_0x2eabb4}),_0x5b355a=_0xc2612b['mapper']['toViewPosition'](_0x4b781e);_0x156de7&&_0xa9825['activeMarkers']['includes'](_0x42ec03['markerName'])&&_0xc2612b['writer']['addClass']('ck-suggestion-marker--active',_0x4259a6),_0xc2612b['writer']['insert'](_0x5b355a,_0x4259a6),_0xc2612b['mapper']['bindElementToMarker'](_0x4259a6,_0x42ec03['markerName']);}};}class _t extends _0x3425bc{['afterInit'](){const _0x20bdf1=this['editor'];_0x20bdf1['commands']['get']('replaceSource')&&_0x20bdf1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x3425bc{['afterInit'](){const _0x561cfd=this['editor'];if(!_0x561cfd['plugins']['has']('RemoveFormatEditing'))return;_0x561cfd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f9bf3=this['editor'];_0x5f9bf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x106b66=>{if('formatBlock'!=_0x106b66['type']&&'formatInline'!=_0x106b66['type'])return;const {data:_0x424ada}=_0x106b66;return _0x424ada&&'removeFormat'==_0x424ada['commandName']?{'type':'format','content':o(_0x5f9bf3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x3425bc{['afterInit'](){const _0x2433f9=this['editor'];if(!_0x2433f9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x55005f=_0x2433f9['plugins']['get']('TrackChangesEditing');_0x55005f['enableCommand']('goToPreviousRestrictedEditingException'),_0x55005f['enableCommand']('goToNextRestrictedEditingException');const _0x4cbc90=_0x2433f9['plugins']['get']('RestrictedEditingModeEditing');_0x4cbc90['enableCommand']('trackChanges'),_0x4cbc90['enableCommand']('acceptSuggestion'),_0x4cbc90['enableCommand']('discardSuggestion'),_0x4cbc90['enableCommand']('acceptAllSuggestions'),_0x4cbc90['enableCommand']('discardAllSuggestions'),_0x4cbc90['enableCommand']('acceptSelectedSuggestions'),_0x4cbc90['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x3425bc{['afterInit'](){const _0x135c19=this['editor'];if(!_0x135c19['plugins']['has']('ShiftEnter'))return;const _0x2df3ca=_0x135c19['plugins']['get']('TrackChangesEditing');_0x2df3ca['enableCommand']('shiftEnter'),_0x135c19['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x135c19),{'priority':'high'}),_0x135c19['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x135c19),{'priority':'high'}),_0x135c19['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a0d2e,_0x1bc460,_0x375cb9)=>{_0x375cb9['options']['showSuggestionHighlights']&&qe(_0x135c19,{'showActiveMarker':!0x1})(_0x5a0d2e,_0x1bc460,_0x375cb9);}),_0x2df3ca['descriptionFactory']['registerElementLabel']('softBreak',_0xe9a611=>o(_0x135c19['locale'],'ELEMENT_LINE_BREAK',_0xe9a611));}}function qe(_0x54f239,{showActiveMarker:_0x52d8b6=!0x0}={}){return(_0x50eec8,_0x3e7640,_0x35fc5d)=>{const _0x120c54=_0x54f239['plugins']['get']('TrackChangesEditing');if(!_0x35fc5d['consumable']['test'](_0x3e7640['markerRange'],_0x50eec8['name']))return;const _0x2de21d=_0x54f239['model'];for(const _0x2b5309 of _0x3e7640['markerRange']['getItems']()){if(!_0x2b5309['is']('element','softBreak'))continue;const _0x2dfa56='deletion'==_0x3e7640['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5a066e,authorId:_0x143121}=_0x120c54['_splitMarkerName'](_0x3e7640['markerName']),_0x2baac7=_0x35fc5d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2dfa56,'data-suggestion':_0x5a066e,'data-author-id':_0x143121}),_0x31124c=_0x35fc5d['mapper']['toViewPosition'](_0x2de21d['createPositionBefore'](_0x2b5309));_0x52d8b6&&_0x120c54['activeMarkers']['includes'](_0x3e7640['markerName'])&&_0x35fc5d['writer']['addClass']('ck-suggestion-marker--active',_0x2baac7),_0x35fc5d['writer']['insert'](_0x31124c,_0x2baac7),_0x35fc5d['mapper']['bindElementToMarker'](_0x2baac7,_0x3e7640['markerName']);}};}class Nt extends _0x3425bc{['afterInit'](){const _0x13062a=this['editor'],_0x4095f4=_0x13062a['model'],_0x5eac73=_0x13062a['locale'];if(!_0x13062a['plugins']['has']('StandardEditingModeEditing'))return;const _0x2d04b1=_0x13062a['plugins']['get']('TrackChangesEditing'),_0x250568='restrictedEditingException',_0x3fa892=_0x13062a['commands']['get'](_0x250568);_0x2d04b1['enableCommand'](_0x250568,(_0x2d0e30,_0x2b03cf={})=>{const _0x3497e8=_0x4095f4['document']['selection'];if(_0x3497e8['isCollapsed'])return void _0x2d0e30(_0x2b03cf);const _0x4cc6c6=void 0x0!==_0x2b03cf['forceValue']?_0x2b03cf['forceValue']:!_0x3fa892['value'];_0x4095f4['change'](()=>{const _0x208818=Array['from'](_0x3497e8['getRanges']());for(const _0x3113a0 of _0x208818){const _0xb1c18=_0x4cc6c6?[_0x3113a0]:io(_0x250568,_0x3113a0,_0x4095f4);for(const _0x102da4 of _0xb1c18)_0x2d04b1['markInlineFormat'](_0x102da4,{'commandName':_0x250568,'commandParams':[{'forceValue':_0x4cc6c6}]});}});}),_0x2d04b1['descriptionFactory']['registerDescriptionCallback'](_0x28926f=>{if('formatBlock'!=_0x28926f['type']&&'formatInline'!=_0x28926f['type'])return;const {data:_0x2b1e64}=_0x28926f;return _0x2b1e64&&_0x2b1e64['commandName']==_0x250568?_0x2b1e64['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5eac73,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5eac73,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x3425bc{['afterInit'](){const _0x119884=this['editor'];if(!_0x119884['plugins']['has']('Style')||!_0x119884['plugins']['has']('DataSchema'))return;const _0x24fd9b=_0x119884['plugins']['get']('TrackChangesEditing'),_0x584017=_0x119884['locale'],_0x42fbe5=_0x119884['config']['get']('style')||{},_0x27a89b=_0x119884['plugins']['get']('GeneralHtmlSupport'),_0x1e9b76=_0x119884['plugins']['get']('StyleUtils')['normalizeConfig'](_0x119884['plugins']['get']('DataSchema'),_0x42fbe5['definitions']);_0x24fd9b['enableDefaultAttributesIntegration']('style');const _0x17f50c=new Set();for(const _0x5b37a9 of _0x1e9b76['block']){const _0x17fcac=_0x27a89b['getGhsAttributeNameForElement'](_0x5b37a9['element']);_0x17f50c['add'](_0x17fcac);}const _0x219c00=new Set();for(const _0x142870 of _0x1e9b76['inline']){const _0x3944b8=_0x27a89b['getGhsAttributeNameForElement'](_0x142870['element']);_0x219c00['add'](_0x3944b8);for(const _0x114a9a of _0x142870['ghsAttributes'])_0x219c00['add'](_0x114a9a);}for(const _0x1ec8c5 of _0x17f50c)_0x24fd9b['registerBlockAttribute'](_0x1ec8c5),_0x24fd9b['descriptionFactory']['registerAttributeLabel'](_0x1ec8c5,o(_0x584017,'FORMAT_STYLE'));for(const _0x2a2050 of _0x219c00)_0x24fd9b['registerInlineAttribute'](_0x2a2050),_0x24fd9b['descriptionFactory']['registerAttributeLabel'](_0x2a2050,o(_0x584017,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53cc1f=this['editor'],_0x3c348b=_0x53cc1f['locale'];_0x53cc1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9ac5=>{if('formatBlock'!=_0x2a9ac5['type']&&'formatInline'!=_0x2a9ac5['type'])return;const {data:_0x4f06ba}=_0x2a9ac5;return _0x4f06ba&&'style'===_0x4f06ba['commandName']?_0x4f06ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c348b,'*Set\x20format:*\x20%0',_0x4f06ba['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c348b,'*Remove\x20format:*\x20%0',_0x4f06ba['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x3425bc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x37ab44){super(_0x37ab44),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5084f7=this['editor'],_0x5ce8bd=_0x5084f7['model']['document']['selection'];if(!_0x5084f7['plugins']['has']('TableEditing'))return;const _0x31f63a=_0x5084f7['locale'],_0x4ce384=_0x5084f7['plugins']['get']('TrackChangesEditing'),_0x2082f9=_0x5084f7['plugins']['get']('TableUtils');_0x4ce384['descriptionFactory']['registerElementLabel']('table',_0x152534=>o(_0x31f63a,'ELEMENT_TABLE',_0x152534)),this['_setupColumnsRowsFixing'](),_0x4ce384['enableCommand']('insertTable'),_0x4ce384['enableCommand']('selectTableRow'),_0x4ce384['enableCommand']('selectTableColumn');for(const _0x21aaa3 of['insertTableRowAbove','insertTableRowBelow']){const _0x4096fd=_0x5084f7['commands']['get'](_0x21aaa3);_0x4ce384['enableCommand'](_0x21aaa3,_0x26ca1b=>{_0x5084f7['model']['change'](_0x31e7a2=>{_0x26ca1b();const _0x82777a='above'===_0x4096fd['order'],_0x12d6ba=_0x2082f9['getSelectionAffectedTableCells'](_0x5ce8bd),_0x1d1ca7=_0x2082f9['getRowIndexes'](_0x12d6ba),_0x2a9b75=_0x82777a?_0x1d1ca7['first']-0x1:_0x1d1ca7['last']+0x1,_0x1898ce=_0x12d6ba[0x0]['findAncestor']('table'),_0x4c0eb5=_0x2082f9['createTableWalker'](_0x1898ce,{'startRow':_0x2a9b75,'endRow':_0x2a9b75}),_0x17cd5f=Array['from'](_0x4c0eb5)['map'](_0x552899=>_0x31e7a2['createRangeOn'](_0x552899['cell']));_0x4ce384['markMultiRangeInsertion'](_0x17cd5f,'tableRow');});});}for(const _0x3c12c1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x31a6f0=_0x5084f7['commands']['get'](_0x3c12c1);_0x4ce384['enableCommand'](_0x3c12c1,_0x470ee8=>{_0x5084f7['model']['change'](_0x3773e9=>{_0x470ee8();const _0x206839='left'===_0x31a6f0['order'],_0x596086=_0x2082f9['getSelectionAffectedTableCells'](_0x5ce8bd),_0x50dcef=_0x2082f9['getColumnIndexes'](_0x596086),_0x267267=_0x206839?_0x50dcef['first']-0x1:_0x50dcef['last']+0x1,_0x316938=_0x596086[0x0]['findAncestor']('table'),_0x3ac0b4=_0x2082f9['createTableWalker'](_0x316938,{'startRow':0x0,'column':_0x267267,'includeAllSlots':!0x1}),_0x19efac=Array['from'](_0x3ac0b4)['map'](_0x30b505=>_0x3773e9['createRangeOn'](_0x30b505['cell']));_0x4ce384['markMultiRangeInsertion'](_0x19efac,'tableColumn');});});}for(const _0x585da7 of['removeTableRow','removeTableColumn']){const _0xe2191f=_0x585da7['substr'](0xb),_0x519808=_0xe2191f['toLowerCase'](),_0x13fda3=_0x519808['substr'](0x0,0x3)+'span',_0x3f5b97='table'+_0xe2191f,_0x44d36d='min'+_0xe2191f,_0x5d985a='max'+_0xe2191f;_0x4ce384['enableCommand'](_0x585da7,()=>{_0x5084f7['model']['change'](_0x298b1b=>{const _0x1fb8e8=_0x2082f9['getSelectionAffectedTableCells'](_0x5ce8bd),_0x505d74=_0x1fb8e8[0x0]['findAncestor']('table');let _0x3c2d2a;if('removeTableRow'==_0x585da7){const _0xfb11e4=_0x2082f9['getRowIndexes'](_0x1fb8e8);_0x3c2d2a={'startRow':_0xfb11e4['first'],'endRow':_0xfb11e4['last'],'includeAllSlots':!0x0};}else{const _0x500b37=_0x2082f9['getColumnIndexes'](_0x1fb8e8);_0x3c2d2a={'startColumn':_0x500b37['first'],'endColumn':_0x500b37['last'],'includeAllSlots':!0x0};}const _0x18ebf4=_0x2082f9['createTableWalker'](_0x505d74,_0x3c2d2a),_0x480761=Array['from'](_0x18ebf4)['map'](({cell:_0x1d848d})=>_0x1d848d),_0x27a7c4=Oe(_0x480761['filter'](_0x1b2941=>_0x1b2941['hasAttribute'](_0x13fda3))),_0x5db616=Oe(_0x480761['filter'](_0x2752df=>!_0x2752df['hasAttribute'](_0x13fda3)))['map'](_0x5524c4=>_0x298b1b['createRangeOn'](_0x5524c4)),_0x1ea2db=_0x4ce384['markMultiRangeDeletion'](_0x5db616,_0x3f5b97);if(_0x1ea2db&&('tableRow'==_0x1ea2db['subType']||'tableColumn'==_0x1ea2db['subType'])){const _0xce5bcc=this['_getSuggestionCoords'](_0x1ea2db);for(const _0x1972ef of _0x27a7c4){const _0x2f59fd=_0x298b1b['createRangeOn'](_0x1972ef),_0x360540=_0x2082f9['getCellLocation'](_0x1972ef),_0xcf7196=_0x1972ef['getAttribute'](_0x13fda3)-0x1,_0x3ab8d1=_0xce5bcc[_0x44d36d],_0xde265c=_0xce5bcc[_0x5d985a];_0x3ab8d1<=_0x360540[_0x519808]&&_0x360540[_0x519808]+_0xcf7196<=_0xde265c&&_0x1ea2db['addRange'](_0x2f59fd);}}});});}function _0x500939(_0x3230eb){const _0x468f37=Array['from'](_0x5ce8bd['getRanges']())['map'](_0x573ef4=>_0x5e0301['fromRange'](_0x573ef4));_0x5084f7['model']['change'](_0x1807e7=>{const _0xcf6813=_0x1807e7['batch'];_0x3230eb=_0x3230eb['filter'](_0x1c68e9=>'$graveyard'!=_0x1c68e9['root']['rootName']),_0x1807e7['setSelection'](_0x3230eb),_0x5084f7['commands']['get']('removeTableRow')['refresh'](),_0x5084f7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5084f7['model']['enqueueChange'](()=>{_0x5084f7['model']['enqueueChange'](_0xcf6813,_0x1be0be=>{const _0x92c772=_0x468f37['filter'](_0x4726bf=>'$graveyard'!=_0x4726bf['root']['rootName']);_0x92c772['length']>0x0&&_0x1be0be['setSelection'](_0x92c772);for(const _0x1b5221 of _0x468f37)_0x1b5221['detach']();});});});}function _0x29d2ca(_0x5a6dd1){_0x5084f7['model']['change'](_0x27fe7a=>{const _0x2c9464=Array['from'](_0x5ce8bd['getRanges']())['map'](_0x1ce5db=>_0x5e0301['fromRange'](_0x1ce5db)),_0x55f2cb=[];for(const _0x2bb9f7 of _0x5a6dd1)for(const _0x317ca0 of _0x2bb9f7['getItems']({'shallow':!0x0}))_0x55f2cb['push'](_0x317ca0);for(const _0x387b1 of _0x55f2cb)'$graveyard'!=_0x387b1['root']['rootName']&&(_0x27fe7a['setSelection'](_0x27fe7a['createPositionAt'](_0x387b1,0x0)),_0x5084f7['commands']['get']('removeTableColumn')['refresh'](),_0x5084f7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x120ce3=_0x2c9464['filter'](_0x3fd4a4=>'$graveyard'!=_0x3fd4a4['root']['rootName']);_0x120ce3['length']>0x0&&_0x27fe7a['setSelection'](_0x120ce3);for(const _0x42e340 of _0x2c9464)_0x42e340['detach']();});}function _0x4efe55(_0x5cb790,_0x359928){return _0x359928['every'](_0x205b08=>_0x5cb790['some'](_0x20ac60=>_0x20ac60['end']['isEqual'](_0x205b08['start'])||_0x205b08['end']['isEqual'](_0x20ac60['start'])));}function _0x2d478e(_0x3a15bb,_0x4347a8){return!_0x3a15bb['some'](_0x4445ef=>_0x4347a8['some'](_0x305523=>_0x4445ef['isIntersecting'](_0x305523)))&&_0x3a15bb['some'](_0x5017c0=>_0x4347a8['some'](_0x2c78a5=>_0x5017c0['end']['isTouching'](_0x2c78a5['start'])));}_0x5084f7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57620c,_0x46b04a,_0x27de94)=>{if(!_0x27de94['options']['showSuggestionHighlights'])return;const _0x425a5d=_0x46b04a['item'];if(!_0x425a5d||!_0x425a5d['is']('element','tableCell'))return;const _0x47f091=_0x27de94['mapper']['toViewElement'](_0x425a5d);if(_0x47f091){const {id:_0x98b3b1,authorId:_0x4d2f58}=_0x4ce384['_splitMarkerName'](_0x46b04a['markerName']);_0x6b2b01(_0x47f091,_0x27de94['writer'],(_0x5c438d,_0x3b8847,_0x37b23c)=>{_0x37b23c['addClass'](_0x300396(_0x3b8847['classes']),_0x5c438d),_0x37b23c['setAttribute']('data-suggestion-id',_0x98b3b1,_0x5c438d),_0x37b23c['setAttribute']('data-author-id',_0x4d2f58,_0x5c438d);},(_0x16ca95,_0xe3139b,_0x2206e6)=>{_0x2206e6['removeClass'](_0x300396(_0xe3139b['classes']),_0x16ca95),_0x2206e6['removeAttribute']('data-suggestion-id',_0x16ca95),_0x2206e6['removeAttribute']('data-author-id',_0x16ca95);});}},{'priority':'highest'}),_0x4ce384['descriptionFactory']['registerDescriptionCallback'](_0x35b227=>{if('insertion'!=_0x35b227['type']&&'deletion'!=_0x35b227['type'])return;const _0xe8e161=_0x35b227['getContainedElement']();if(null!=_0xe8e161&&_0xe8e161['is']('element','table')){if('insertion'==_0x35b227['type']){const _0x527ea5=_0x35b227['getItems']()['filter'](_0x43d95a=>_0x43d95a['is']('$textProxy'))['map'](_0x213fd2=>_0x213fd2['data']);if(_0x527ea5['length'])return{'type':'insertion','content':o(_0x31f63a,'*Insert:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x527ea5['join']('\x20')+'\x22'))};}if('deletion'==_0x35b227['type']){const _0x3d0775=_0x35b227['getItems']()['filter'](_0x461cf8=>_0x461cf8['is']('$textProxy'))['map'](_0x28bdca=>_0x28bdca['data']);if(_0x3d0775['length'])return{'type':'deletion','content':o(_0x31f63a,'*Remove:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3d0775['join']('\x20')+'\x22'))};}}}),_0x4ce384['descriptionFactory']['registerDescriptionCallback'](_0x4819e7=>{if('tableRow'==_0x4819e7['subType']){const _0x21c9ef=_0x4819e7['getItems']()['filter'](_0x4618da=>_0x4618da['is']('$textProxy'))['map'](_0x3f0c15=>_0x3f0c15['data']),_0x14b24b=this['_getSuggestionCoords'](_0x4819e7),_0x3bc285=_0x14b24b['maxRow']-_0x14b24b['minRow']+0x1;if('insertion'==_0x4819e7['type'])return _0x21c9ef['length']?{'type':'insertion','content':o(_0x31f63a,'*Insert:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bc285,'\x22'+_0x21c9ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31f63a,'*Insert:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_ROW',_0x3bc285))};if('deletion'==_0x4819e7['type'])return _0x21c9ef['length']?{'type':'deletion','content':o(_0x31f63a,'*Remove:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3bc285,'\x22'+_0x21c9ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31f63a,'*Remove:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_ROW',_0x3bc285))};}if('tableColumn'==_0x4819e7['subType']){const _0x1f78f6=_0x4819e7['getItems']()['filter'](_0x1e4b18=>_0x1e4b18['is']('$textProxy'))['map'](_0x49701f=>_0x49701f['data']),_0x3e2de6=this['_getSuggestionCoords'](_0x4819e7),_0x50a12c=_0x3e2de6['maxColumn']-_0x3e2de6['minColumn']+0x1;if('insertion'==_0x4819e7['type'])return _0x1f78f6['length']?{'type':'insertion','content':o(_0x31f63a,'*Insert:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50a12c,'\x22'+_0x1f78f6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31f63a,'*Insert:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_COLUMN',_0x50a12c))};if('deletion'==_0x4819e7['type'])return _0x1f78f6['length']?{'type':'deletion','content':o(_0x31f63a,'*Remove:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x50a12c,'\x22'+_0x1f78f6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31f63a,'*Remove:*\x20%0',o(_0x31f63a,'ELEMENT_TABLE_COLUMN',_0x50a12c))};}}),_0x4ce384['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x500939),_0x4ce384['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x500939),_0x4ce384['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x29d2ca),_0x4ce384['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x29d2ca),_0x4ce384['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4efe55),_0x4ce384['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4efe55),_0x4ce384['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d478e),_0x4ce384['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d478e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37f6fb=this['editor'],_0x4e8781=_0x37f6fb['model']['document']['selection'];return(_0x40281f,_0x88d502)=>{_0x37f6fb['model']['change'](_0x52996d=>{const {commandName:_0x155c14,commandParams:_0x5030da}=_0x88d502;let _0x169549=_0x40281f[0x0]['end']['nodeBefore'];_0x5030da&&_0x5030da[0x0]&&!0x1===_0x5030da[0x0]['forceValue']&&(_0x169549=_0x40281f[0x0]['start']['nodeAfter']);const _0x286eab=_0x52996d['createRangeIn'](_0x169549);if('$graveyard'==_0x286eab['root']['rootName'])return;const _0x5eb249=Array['from'](_0x4e8781['getRanges']())['map'](_0x531d73=>_0x5e0301['fromRange'](_0x531d73));_0x52996d['setSelection'](_0x286eab),_0x37f6fb['commands']['get'](_0x155c14)['refresh'](),_0x5030da['push']({'forceDefaultExecution':!0x0}),_0x37f6fb['execute'](_0x155c14,..._0x5030da);const _0x9ed28=_0x5eb249['filter'](_0x306451=>'$graveyard'!=_0x306451['root']['rootName']);_0x9ed28['length']>0x0&&_0x52996d['setSelection'](_0x9ed28);for(const _0xed9822 of _0x5eb249)_0xed9822['detach']();});};}['_getCoordsForCells'](_0x554344){const _0xf6b4f6=this['editor']['plugins']['get']('TableUtils');let _0x4a43b4=Number['MAX_SAFE_INTEGER'],_0x11f472=Number['MIN_SAFE_INTEGER'],_0x5c8dec=Number['MAX_SAFE_INTEGER'],_0x17ecd5=Number['MIN_SAFE_INTEGER'];for(const _0x4603b3 of _0x554344){if('$graveyard'==_0x4603b3['root']['rootName'])continue;const {row:_0x5dfe10,column:_0xe86f8c}=_0xf6b4f6['getCellLocation'](_0x4603b3),_0x6f394a=_0x4603b3['hasAttribute']('rowspan')?_0x4603b3['getAttribute']('rowspan')-0x1:0x0,_0x5590dd=_0x4603b3['hasAttribute']('colspan')?_0x4603b3['getAttribute']('colspan')-0x1:0x0;_0x4a43b4=_0x5dfe10<_0x4a43b4?_0x5dfe10:_0x4a43b4,_0x11f472=_0x5dfe10+_0x6f394a>_0x11f472?_0x5dfe10+_0x6f394a:_0x11f472,_0x5c8dec=_0xe86f8c<_0x5c8dec?_0xe86f8c:_0x5c8dec,_0x17ecd5=_0xe86f8c+_0x5590dd>_0x17ecd5?_0xe86f8c+_0x5590dd:_0x17ecd5;}return{'minRow':_0x4a43b4,'maxRow':_0x11f472,'minColumn':_0x5c8dec,'maxColumn':_0x17ecd5};}['_setupColumnsRowsFixing'](){const _0x471670=this['editor'],_0x30bca3=_0x471670['plugins']['get']('TrackChangesEditing'),_0x192888=_0x471670['plugins']['get']('TableUtils');_0x471670['model']['document']['on']('change:data',()=>{const _0x1cbcad=Array['from'](_0x471670['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33acb3,data:_0x5b0b97}of _0x1cbcad){const {group:_0xbcc37,id:_0x4bf536,subType:_0x4c3312}=_0x30bca3['_splitMarkerName'](_0x33acb3);if('suggestion'!=_0xbcc37)continue;if(null!=_0x5b0b97['oldRange'])continue;const _0x143601=_0x30bca3['getSuggestion'](_0x4bf536);this['_tablePostFixingSubtypes']['includes'](_0x4c3312)&&this['_tableSuggestions']['add'](_0x143601);}},{'priority':'low'});const _0x283a8b=(_0x1f7511,_0x162c51)=>{let _0x43f926=!0x1;const _0x4b7b7a=_0x162c51['createRangeOn'](_0x1f7511),_0x8c7ada=_0x1f7511['findAncestor']('table'),_0x3ed4a8=_0x192888['getCellLocation'](_0x1f7511);for(const _0x1d06cd of this['_tableSuggestions']){const _0x9ca0d6=_0x1d06cd['subType'],_0xc2e787=_0x9ca0d6['startsWith']('tablePaste'),_0x2022e3=_0x9ca0d6['substr'](_0xc2e787?0xa:0x5),_0x1a22f1=_0x2022e3['toLowerCase'](),_0xc2a7cf=_0x1a22f1['substr'](0x0,0x3)+'span',_0x445cdf='min'+_0x2022e3,_0x33d8a7='max'+_0x2022e3;if(!_0x1d06cd['isInContent'])continue;if(_0x8c7ada!=_0x1d06cd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1d06cd['isIntersectingWithRange'](_0x4b7b7a))continue;const _0x55eec7=_0x1f7511['hasAttribute'](_0xc2a7cf)?_0x1f7511['getAttribute'](_0xc2a7cf)-0x1:0x0,_0x4fd604=this['_getSuggestionCoords'](_0x1d06cd),_0x16425a=_0x4fd604[_0x445cdf],_0x3d6578=_0x4fd604[_0x33d8a7];_0x16425a<=_0x3ed4a8[_0x1a22f1]&&_0x3ed4a8[_0x1a22f1]+_0x55eec7<=_0x3d6578&&(_0x1d06cd['addRange'](_0x4b7b7a),_0x43f926=!0x0);}return _0x43f926;};_0x471670['model']['document']['registerPostFixer'](_0x55cb6a=>{let _0x306688=!0x1;for(const _0x537976 of _0x471670['model']['document']['differ']['getChanges']())if('insert'==_0x537976['type']){if('tableRow'==_0x537976['name']){for(const _0xa9a0bc of _0x537976['position']['nodeAfter']['getChildren']())_0x306688=_0x306688||_0x283a8b(_0xa9a0bc,_0x55cb6a);}else'tableCell'==_0x537976['name']&&(_0x306688=_0x306688||_0x283a8b(_0x537976['position']['nodeAfter'],_0x55cb6a));}return _0x306688;});}['_getSuggestionCoords'](_0xd2f6cf){return this['_getCoordsForCells'](_0xd2f6cf['getRanges']()['map'](_0x77edca=>_0x77edca['start']['nodeAfter']));}}function Oe(_0x46b026){return Array['from'](new Set(_0x46b026)['values']());}class Bt extends _0x3425bc{static get['requires'](){return[Mt];}['afterInit'](){const _0x482697=this['editor'],_0x5d58ac=_0x482697['model']['document']['selection'],_0x16108c=_0x482697['locale'];if(!_0x482697['plugins']['has']('TableEditing'))return;const _0x4cc144=_0x482697['plugins']['get']('TrackChangesEditing'),_0x9abc20=_0x482697['plugins']['get']('TableUtils'),_0x101f71=_0x482697['plugins']['get'](Mt);_0x101f71['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4cc144['enableCommand']('mergeTableCells',()=>{const _0x27ce58=_0x9abc20['getSelectionAffectedTableCells'](_0x482697['model']['document']['selection']);_0x482697['model']['change'](()=>{_0x4cc144['markMultiRangeBlockFormat'](_0x27ce58,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x482697['commands']['get']('mergeTableCells')['on']('execute',(_0x32e340,_0x43b860)=>{_0x482697['commands']['get']('trackChanges')['value']&&(_0x43b860['length']>0x0&&_0x43b860[_0x43b860['length']-0x1]&&_0x43b860[_0x43b860['length']-0x1]['forceDefaultExecution']||_0x4cc144['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x32e340['stop']());},{'priority':'highest'});for(const _0x3af146 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1eb5b8=_0x482697['commands']['get'](_0x3af146);_0x4cc144['enableCommand'](_0x3af146,()=>{const _0xa901e5=_0x482697['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x116f43=>_0x116f43['is']('element','tableCell')),_0x3a29fe=_0x1eb5b8['value'];_0x482697['model']['change'](()=>{_0x4cc144['markMultiRangeBlockFormat']([_0xa901e5,_0x3a29fe],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x274423 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x304d6d=_0x482697['commands']['get'](_0x274423);_0x4cc144['enableCommand'](_0x274423,()=>{const _0x18cdf1=_0x9abc20['getSelectionAffectedTableCells'](_0x482697['model']['document']['selection'])[0x0],_0x3c2183=_0x18cdf1['findAncestor']('table'),{column:_0x1728e1,row:_0x3c7de0}=_0x9abc20['getCellLocation'](_0x18cdf1);let _0x473793=[];if('horizontally'==_0x304d6d['direction']){const _0x5ca029=_0x9abc20['createTableWalker'](_0x3c2183,{'startRow':_0x3c7de0,'endRow':_0x3c7de0,'includeAllSlots':!0x0});_0x473793=Array['from'](_0x5ca029)['map'](_0x58c1c1=>_0x58c1c1['cell']);}else{const _0x2d014c=_0x9abc20['createTableWalker'](_0x3c2183,{'column':_0x1728e1,'includeAllSlots':!0x0});_0x473793=Array['from'](_0x2d014c)['map'](_0x3dce52=>_0x3dce52['cell']);}_0x482697['model']['change'](_0x557808=>{_0x4cc144['markBlockFormat'](_0x557808['createRangeOn'](_0x18cdf1),{'commandName':_0x274423,'commandParams':[]},_0x473793,_0x274423);});});}_0x4cc144['descriptionFactory']['registerDescriptionCallback'](_0xb34171=>{if('formatBlock'!=_0xb34171['type']&&'formatInline'!=_0xb34171['type'])return;const {data:_0x52a0fb}=_0xb34171;return _0x52a0fb&&'mergeTableCells'==_0x52a0fb['commandName']?{'type':'format','content':o(_0x16108c,'*Merge\x20cells*')}:void 0x0;}),_0x4cc144['descriptionFactory']['registerDescriptionCallback'](_0x573fd6=>{if('formatBlock'!=_0x573fd6['type']&&'formatInline'!=_0x573fd6['type'])return;const {data:_0x54e594}=_0x573fd6;return _0x54e594?'splitTableCellVertically'==_0x54e594['commandName']?{'type':'format','content':o(_0x16108c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54e594['commandName']?{'type':'format','content':o(_0x16108c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x201539=_0x101f71['_acceptFormatSuggestionCallbackFactory']();for(const _0x453d10 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4cc144['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x453d10,'accept',_0x201539);for(const _0x1deb4a of['splitTableCellVertically','splitTableCellHorizontally'])_0x4cc144['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1deb4a,'accept',_0x201539);_0x4cc144['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3e213a=>{_0x482697['model']['change'](_0x792667=>{const _0x46fe67=Array['from'](_0x5d58ac['getRanges']())['map'](_0x53cb30=>_0x5e0301['fromRange'](_0x53cb30));_0x792667['setSelection'](_0x3e213a),_0x482697['commands']['get']('mergeTableCells')['refresh'](),_0x482697['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5a62dc=_0x46fe67['filter'](_0x39a025=>'$graveyard'!=_0x39a025['root']['rootName']);_0x5a62dc['length']>0x0&&_0x792667['setSelection'](_0x5a62dc);for(const _0x49c655 of _0x46fe67)_0x49c655['detach']();});});for(const _0x5c9683 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1e1d55=_0x482697['commands']['get'](_0x5c9683);_0x1e1d55['on']('set:isEnabled',(_0x4e88b7,_0x23bed4,_0x2f8123)=>{if(_0x2f8123){const _0x41efa8=_0x482697['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x43afde=>_0x43afde['is']('element','tableCell'));this['_areMergableCells'](_0x1e1d55['value'],_0x41efa8)||(_0x4e88b7['return']=!0x1,_0x4e88b7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5ded2c=this['editor']['commands']['get']('mergeTableCells'),_0xec2140=this['editor']['plugins']['get']('TableUtils');if(!_0x5ded2c['isEnabled'])return!0x1;const _0x5df4b2=_0xec2140['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x12b535 of _0x5df4b2)for(const _0x58a4c1 of _0x5df4b2)if(_0x12b535!=_0x58a4c1&&!this['_areMergableCells'](_0x12b535,_0x58a4c1))return!0x1;return!0x0;}['_areMergableCells'](_0x3209a6,_0x1ea1f9){const _0xd7861b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31d221=this['editor']['model']['createRangeOn'](_0x3209a6),_0x7a9982=this['editor']['model']['createRangeOn'](_0x1ea1f9),_0x36d5cf=new Set(),_0x28c151=new Set();for(const _0x321ba9 of _0xd7861b['getSuggestions']())if(('insertion'==_0x321ba9['type']||'deletion'==_0x321ba9['type']||'mergeTableCells'==_0x321ba9['subType'])&&_0x321ba9['isInContent']){for(const _0x339b0f of _0x321ba9['getRanges']())_0x339b0f['containsRange'](_0x31d221,!0x0)&&_0x36d5cf['add'](_0x321ba9['type']+':'+_0x321ba9['author']['id']),_0x339b0f['containsRange'](_0x7a9982,!0x0)&&_0x28c151['add'](_0x321ba9['type']+':'+_0x321ba9['author']['id']);}if(_0x36d5cf['size']!=_0x28c151['size'])return!0x1;for(const _0x2eb54a of _0x36d5cf)if(!_0x28c151['has'](_0x2eb54a))return!0x1;return!0x0;}}class Tt extends _0x3425bc{static get['requires'](){return[Mt];}['afterInit'](){const _0x5444fb=this['editor'];if(!_0x5444fb['plugins']['has']('TableEditing'))return;const _0x1b03f0=_0x5444fb['locale'],_0x2afaa9=_0x5444fb['plugins']['get']('TrackChangesEditing');_0x2afaa9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2afaa9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2afaa9['registerBlockAttribute']('headingRows'),_0x2afaa9['registerBlockAttribute']('headingColumns'),_0x2afaa9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1b03f0,'FORMAT_HEADER_ROW')),_0x2afaa9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1b03f0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x46a598=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbbd522=this['editor']['plugins']['get']('TableUtils'),_0x2dcc12=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0x28d2a8({showActiveMarker:_0x98bb3e=!0x0,setDataAttribute:_0x2784ee=!0x0}={}){return(_0x5727d9,_0x3380df,_0x5f6c17)=>{const {type:_0x12b1f0,id:_0x39f1d4}=_0x46a598['_splitMarkerName'](_0x3380df['markerName']);if(!_0x46a598['hasSuggestion'](_0x39f1d4))return;const _0x1ea866=_0x46a598['getSuggestion'](_0x39f1d4),_0x1062e5=_0x1ea866['data'];if('formatBlock'!=_0x1ea866['type']||!_0x1062e5||'setTableColumnHeader'!=_0x1062e5['commandName'])return;if(_0x3380df['item'])return void _0x5727d9['stop']();if(!_0x5f6c17['consumable']['consume'](_0x3380df['markerRange'],_0x5727d9['name']))return;const _0x3082d2=_0x3380df['markerRange']['start']['nodeAfter'],_0x3c9c7f=_0x3380df['markerRange']['end']['nodeBefore'],_0x1c3360=_0x3082d2['parent']['parent'],{column:_0x4edd1b}=_0xbbd522['getCellLocation'](_0x3082d2),{column:_0x38dc9f}=_0xbbd522['getCellLocation'](_0x3c9c7f);for(let _0x599c54=_0x4edd1b;_0x599c54<=_0x38dc9f;_0x599c54++){const _0x2f7dd2=_0xbbd522['createTableWalker'](_0x1c3360,{'column':_0x599c54,'includeAllSlots':!0x1});for(const _0x189d8f of _0x2f7dd2){const _0x28734b=_0x189d8f['cell'],_0x1d2dda=_0x5f6c17['mapper']['toViewElement'](_0x28734b);_0x5f6c17['writer']['addClass']('ck-suggestion-marker-'+_0x12b1f0,_0x1d2dda),_0x2784ee&&_0x5f6c17['writer']['setAttribute']('data-suggestion',_0x39f1d4,_0x1d2dda),_0x5f6c17['mapper']['bindElementToMarker'](_0x1d2dda,_0x3380df['markerName']),_0x98bb3e&&(_0x46a598['activeMarkers']['includes'](_0x3380df['markerName'])?_0x5f6c17['writer']['addClass']('ck-suggestion-marker--active',_0x1d2dda):_0x5f6c17['writer']['removeClass']('ck-suggestion-marker--active',_0x1d2dda));}}};}_0x46a598['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2dcc12),_0x46a598['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2dcc12),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x28d2a8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b3feb,_0x13389c,_0xc53f92)=>{_0xc53f92['options']['showSuggestionHighlights']&&_0x28d2a8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2b3feb,_0x13389c,_0xc53f92);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5f21aa,_0x355476,_0x19d7c6)=>{const {type:_0x5c1386,id:_0x2210eb}=_0x46a598['_splitMarkerName'](_0x355476['markerName']);if(!_0x46a598['hasSuggestion'](_0x2210eb))return;const _0x5aabd4=_0x46a598['getSuggestion'](_0x2210eb),_0x1b9226=_0x5aabd4['data'];if('formatBlock'!=_0x5aabd4['type']||!_0x1b9226||'setTableColumnHeader'!=_0x1b9226['commandName'])return;const _0x408d19=_0x19d7c6['mapper']['markerNameToElements'](_0x355476['markerName']);if(_0x408d19){for(const _0x3a9ce0 of _0x408d19)_0x19d7c6['writer']['removeClass']('ck-suggestion-marker-'+_0x5c1386,_0x3a9ce0),_0x19d7c6['writer']['removeClass']('ck-suggestion-marker--active',_0x3a9ce0),_0x19d7c6['writer']['removeAttribute']('data-suggestion',_0x3a9ce0),_0x19d7c6['mapper']['unbindElementFromMarkerName'](_0x3a9ce0,_0x355476['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4524a5=this['editor'],_0xf737eb=_0x4524a5['locale'];function _0x45a4e3(_0x2ed7ed){return{'type':'format','content':o(_0xf737eb,'*Format:*\x20%0',_0x2ed7ed)};}_0x4524a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x102371=>{if('formatBlock'!=_0x102371['type'])return;const {data:_0xb349d6}=_0x102371;if(_0xb349d6){if('setTableRowHeader'==_0xb349d6['commandName']){const _0x356d92=_0xb349d6['commandParams'][0x0]['forceValue'];return _0x45a4e3(o(_0xf737eb,_0x356d92?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xb349d6['commandName']){const _0x3536ae=_0xb349d6['commandParams'][0x0]['forceValue'];return _0x45a4e3(o(_0xf737eb,_0x3536ae?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x3425bc{['afterInit'](){const _0x3e51c7=this['editor'],_0x14f49c=_0x3e51c7['locale'],_0x2abda1=_0x3e51c7['plugins']['get']('TrackChangesEditing');function _0x2edf61(_0x4de818){return{'type':'format','content':''+o(_0x14f49c,'*Set\x20table\x20type:*\x20%0',_0x4de818)};}_0x3e51c7['plugins']['has']('TableLayout')&&(_0x2abda1['enableCommand']('insertTableLayout'),_0x2abda1['enableDefaultAttributesIntegration']('tableType'),_0x2abda1['registerBlockAttribute']('tableType'),_0x2abda1['descriptionFactory']['registerElementLabel'](_0x166351=>_0x166351['is']('element','table')&&'layout'===_0x166351['getAttribute']('tableType'),_0xd058e=>o(_0x14f49c,'ELEMENT_LAYOUT_TABLE',_0xd058e)),_0x2abda1['descriptionFactory']['registerDescriptionCallback'](_0x31529f=>{const {data:_0x5956ef}=_0x31529f;if(_0x5956ef&&'tableType'==_0x5956ef['key'])switch(_0x5956ef['newValue']){case'layout':return _0x2edf61(o(_0x14f49c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2edf61(o(_0x14f49c,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ue['map'](_0x248cad=>[_0x248cad,null]));class xt extends _0x3425bc{static get['requires'](){return[Mt];}['afterInit'](){const _0x37c453=this['editor'];if(!_0x37c453['plugins']['has']('TableClipboard'))return;const _0x13a4b2=_0x37c453['plugins']['get']('TrackChangesEditing'),_0x51b4d7=_0x37c453['plugins']['get']('TableUtils'),_0x50f678=_0x37c453['plugins']['get'](Mt),_0x57415f=_0x37c453['plugins']['get']('TableClipboard'),_0x32bf7e=_0x37c453['plugins']['get']('TableSelection'),_0x1dfbba=_0x37c453['plugins']['get'](_0x14f875);_0x50f678['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x37c453['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x37c453['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5bb984=null,_0x14fb3b=!0x1;_0x1dfbba['on']('contentInsertion',(_0x7389f0,_0x3257ca)=>{_0x14fb3b='paste'===_0x3257ca['method'];}),_0x37c453['model']['on']('insertContent',(_0xd720a6,_0x3dfbdb)=>{if(!_0x14fb3b&&null===_0x32bf7e['getSelectedTableCells']())return;const [_0x2dd68f,_0x18f196]=_0x3dfbdb,_0x310407=_0x3dfbdb[_0x3dfbdb['length']-0x1];_0x310407&&_0x310407['forceDefaultExecution']||_0x13a4b2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x40d6e9,_0x1993eb,_0x3c1afa,_0x1077e4,_0x55790a){if(_0x1993eb&&!_0x1993eb['is']('documentSelection'))return!0x1;const _0x53b3b7=_0x55790a['getTableIfOnlyTableInContent'](_0x40d6e9,_0x3c1afa);if(!_0x53b3b7||!Ge(_0x53b3b7,void 0x0,_0x1077e4))return!0x1;const _0x1e598e=_0x1077e4['getSelectionAffectedTableCells'](_0x3c1afa['document']['selection']);if(!_0x1e598e['length'])return!0x1;const _0x20d43b=_0x1e598e[0x0]['findAncestor']('table'),_0x4d63c3=_0x1077e4['getRowIndexes'](_0x1e598e),_0x4ccb19=_0x1077e4['getColumnIndexes'](_0x1e598e),_0xfa4cd={'startRow':_0x4d63c3['first'],'endRow':_0x4d63c3['last'],'startColumn':_0x4ccb19['first'],'endColumn':_0x4ccb19['last']};return 0x1==_0x1e598e['length']&&(_0xfa4cd['endRow']+=_0x1077e4['getRows'](_0x53b3b7)-0x1,_0xfa4cd['endColumn']+=_0x1077e4['getColumns'](_0x53b3b7)-0x1),Ge(_0x20d43b,_0xfa4cd,_0x1077e4);}(_0x2dd68f,_0x18f196,_0x37c453['model'],_0x51b4d7,_0x57415f)&&(_0xd720a6['stop'](),_0x5bb984={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x37c453['model']['change'](()=>{_0x37c453['model']['insertContent'](_0x3dfbdb[0x0],_0x3dfbdb[0x1],_0x3dfbdb[0x2],{'forceDefaultExecution':!0x0});const _0x1824b3=_0x223174(),{rowInsertionRanges:_0x3eb94f,columnInsertionRanges:_0x4db76f,insertionRanges:_0x2b7bb1,deletionRanges:_0x538bb1,cells:_0x20f347}=_0x5bb984;_0x3eb94f['length']&&_0x13a4b2['markMultiRangeInsertion'](_0x3eb94f,'tablePasteRow',{'tablePasteChainId':_0x1824b3}),_0x4db76f['length']&&_0x13a4b2['markMultiRangeInsertion'](_0x4db76f,'tablePasteColumn',{'tablePasteChainId':_0x1824b3}),_0x2b7bb1['length']&&(_0x13a4b2['markMultiRangeInsertion'](_0x2b7bb1,'tablePaste',{'tablePasteChainId':_0x1824b3,'skipNestingCheck':!0x0}),_0x2b7bb1['forEach'](_0x660188=>_0x660188['detach']?.())),_0x538bb1['length']&&(_0x13a4b2['markMultiRangeDeletion'](_0x538bb1,'tablePaste',{'tablePasteChainId':_0x1824b3,'skipNestingCheck':!0x0}),_0x538bb1['forEach'](_0x1abab5=>_0x1abab5['detach']?.()));const _0x28a3bb=_0x13a4b2['markMultiRangeBlockFormat'](_0x20f347['map'](({element:_0x370fc4})=>_0x370fc4),{'formatGroupId':_0x223174()},[],'tablePasteCell',{'tablePasteChainId':_0x1824b3});if(_0x28a3bb){const _0x533b97=_0x28a3bb['getMarkers'](),_0x32be06=[];for(const {element:_0x403599,attributes:_0x3191b8}of _0x20f347){if(!_0x3191b8)continue;const _0xb112e6=_0x37c453['model']['createRangeOn'](_0x403599),_0x57158c=_0x533b97['find'](_0x4694df=>_0x4694df['getRange']()['isEqual'](_0xb112e6));_0x57158c&&_0x32be06['push']([_0x57158c['name'],_0x3191b8]);}_0x32be06['length']&&_0x28a3bb['setAttribute']('markerAttributes',Object['fromEntries'](_0x32be06));}_0x5bb984=null;}));},{'priority':_0x3af1ec['high']+0xa}),_0x1dfbba['on']('contentInsertion',()=>{_0x14fb3b=!0x1;},{'priority':'lowest'}),_0x37c453['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xda3487,_0x1f625c)=>{const [_0x7d9711,_0x44ef29,,_0x526306]=_0x1f625c;if(!_0x5bb984)return;_0xda3487['stop']();const _0x291a15=_0x7d9711['cell'],_0x3126dc=_0x44ef29,_0x2e91fb=ze(_0x291a15),_0x2b15b3=ze(_0x3126dc);_0xda3487['return']=_0x291a15;let _0x387520=null,_0x3fb143=null;if(_0x2b15b3||_0x2e91fb){if(_0x2e91fb&&!_0x2b15b3){_0x526306['remove'](_0x291a15['getChild'](0x0));for(const _0xc2ff1c of Array['from'](_0x3126dc['getChildren']()))_0x526306['insert'](_0xc2ff1c,_0x291a15,'end');const _0x545f26=_0x5bb984['rowInsertionIndexes']['includes'](_0x7d9711['row']),_0xba300b=_0x5bb984['columnInsertionIndexes']['includes'](_0x7d9711['column']);_0x545f26||_0xba300b||(_0x387520=_0x5e0301['fromRange'](_0x526306['createRangeIn'](_0x291a15)));}else _0x2b15b3&&!_0x2e91fb&&(_0x3fb143=_0x526306['createRangeIn'](_0x291a15));}else{const _0x3e7a8e=_0x526306['createElement']('tableCellSuggestion'),_0x1aeb01=_0x526306['createElement']('tableCellSuggestion');_0x526306['wrap'](_0x526306['createRangeIn'](_0x291a15),_0x1aeb01),_0x526306['insert'](_0x3e7a8e,_0x291a15,0x0);for(const _0x8a1928 of Array['from'](_0x3126dc['getChildren']()))_0x526306['insert'](_0x8a1928,_0x3e7a8e,'end');_0x387520=_0x5e0301['fromRange'](_0x526306['createRangeOn'](_0x3e7a8e)),_0x3fb143=_0x5e0301['fromRange'](_0x526306['createRangeOn'](_0x1aeb01));}const _0x1a8a19=Array['from'](_0x3126dc['getAttributes']())['filter'](([_0x59f2e2])=>Ue['includes'](_0x59f2e2));_0x5bb984['cells']['push']({'element':_0x291a15,'attributes':_0x1a8a19['length']?Object['fromEntries'](_0x1a8a19):null}),_0x387520&&_0x5bb984['insertionRanges']['push'](_0x387520),_0x3fb143&&_0x5bb984['deletionRanges']['push'](_0x3fb143);},{'priority':'high'}),_0x51b4d7['on']('insertColumns',(_0x569b1e,_0x40d5c2)=>{const [_0x54cc06,_0x54e7c6={}]=_0x40d5c2;if(!_0x5bb984)return;const _0x4f32a2=_0x54e7c6['at']||0x0,_0x44690b=_0x54e7c6['columns']||0x1;_0x5bb984['columnInsertionIndexes']=new Array(_0x44690b)['fill'](_0x4f32a2)['map']((_0x2332fa,_0x2522b2)=>_0x2332fa+_0x2522b2);for(const {cell:_0x278bc5}of _0x51b4d7['createTableWalker'](_0x54cc06,{'startColumn':_0x4f32a2,'endColumn':_0x4f32a2+_0x44690b-0x1}))_0x5bb984['columnInsertionRanges']['push'](_0x37c453['model']['createRangeOn'](_0x278bc5));},{'priority':'low'}),_0x51b4d7['on']('insertRows',(_0x2f45a7,_0x5a8d06)=>{const [_0x34c5e4,_0x2b75c6={}]=_0x5a8d06;if(!_0x5bb984)return;const _0x19349f=_0x2b75c6['at']||0x0,_0x36c6d3=_0x2b75c6['rows']||0x1;_0x5bb984['rowInsertionIndexes']=new Array(_0x36c6d3)['fill'](_0x19349f)['map']((_0x46ac4a,_0x24e4ba)=>_0x46ac4a+_0x24e4ba);for(const {cell:_0x4c7227}of _0x51b4d7['createTableWalker'](_0x34c5e4,{'startRow':_0x19349f,'endRow':_0x19349f+_0x36c6d3-0x1}))_0x5bb984['rowInsertionRanges']['push'](_0x37c453['model']['createRangeOn'](_0x4c7227));},{'priority':'low'}),_0x13a4b2['descriptionFactory']['registerDescriptionCallback'](_0xe237de=>{if(_0xe237de['subType']&&_0xe237de['subType']['startsWith']('tablePaste'))return _0xe237de['previous']?{}:{'type':'insertion','content':o(_0x37c453['locale'],'*Replace\x20table\x20cells*')};});const _0x233e3e=()=>!0x1;for(const _0x5f32c2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x13a4b2['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f32c2,'join',_0x233e3e),_0x13a4b2['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f32c2,'join',_0x233e3e),_0x13a4b2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f32c2,'join',_0x233e3e);_0x13a4b2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x233e3e),_0x13a4b2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3f387e,_0x253243,_0xba057f)=>{const _0xbd3294=_0x3f387e['map'](_0x31458f=>_0x31458f['getContainedElement']())['filter'](_0x18f252=>_0x18f252),_0x44256b=new Map(_0xbd3294['map'](_0xa5bf7=>[_0xa5bf7,null]));if(_0x5bb984){for(const {element:_0x243bf4,attributes:_0x1b4358}of _0x5bb984['cells'])_0x1b4358&&_0x44256b['set'](_0x243bf4,_0x1b4358);}else{if(_0xba057f&&_0xba057f['markerAttributes'])for(const [_0x4da780,_0x13e7cc]of Object['entries'](_0xba057f['markerAttributes'])){const _0x4a4d58=_0x37c453['model']['markers']['get'](_0x4da780),_0x34747c=_0x4a4d58?_0x4a4d58['getRange']()['getContainedElement']():null;_0x34747c&&_0x44256b['set'](_0x34747c,_0x13e7cc);}}_0x37c453['model']['change'](_0x3ed4bf=>{for(const [_0x4f42a5,_0x3fcb14]of _0x44256b)_0x3ed4bf['setAttributes']({...He,..._0x3fcb14},_0x4f42a5);});});const _0x3b4f17=(_0x31067f,_0x5539df)=>{_0x13a4b2['_suggestionFactory']['registerCustomCallback'](_0x31067f,'tablePaste',_0x5539df,(_0x1f8723,_0x22aa41,_0x4ca69b)=>{_0x37c453['model']['change'](_0x5e50e0=>{const _0x58231e=[];for(const _0x2c35e7 of _0x1f8723){const _0x50352a=_0x2c35e7['start']['nodeAfter'];_0x50352a['is']('element','tableCellSuggestion')&&_0x58231e['push'](_0x50352a);}_0x13a4b2['_suggestionFactory']['getSuggestionCallback'](_0x31067f,null,_0x5539df)(_0x1f8723,_0x22aa41,_0x4ca69b);for(const _0x1deb51 of _0x58231e)'$graveyard'!=_0x1deb51['root']['rootName']&&_0x5e50e0['unwrap'](_0x1deb51);});});};_0x3b4f17('insertion','accept'),_0x3b4f17('insertion','discard'),_0x3b4f17('deletion','accept'),_0x3b4f17('deletion','discard'),_0x13a4b2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x49da26=>{const _0x2f3832=_0x49da26['map'](_0x340db4=>_0x340db4['getContainedElement']()),_0x3baf72=_0x2f3832[0x0]['findAncestor']('table'),{minRow:_0x28722e,maxRow:_0x5bf2a8}=_0x50f678['_getCoordsForCells'](_0x2f3832);_0x51b4d7['removeRows'](_0x3baf72,{'at':_0x28722e,'rows':_0x5bf2a8-_0x28722e+0x1});}),_0x13a4b2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x24ec05=>{const _0x425875=_0x24ec05['map'](_0x142952=>_0x142952['getContainedElement']()),_0x3bddc6=_0x425875[0x0]['findAncestor']('table'),{minColumn:_0x24c4e0,maxColumn:_0x278cec}=_0x50f678['_getCoordsForCells'](_0x425875);_0x51b4d7['removeColumns'](_0x3bddc6,{'at':_0x24c4e0,'columns':_0x278cec-_0x24c4e0+0x1});});const _0x2d35f3=(_0x2730bd,_0x478337)=>{if(!_0x478337['subType']||!_0x478337['subType']['startsWith']('tablePaste'))return;const _0x552f28=_0x478337['attributes']['tablePasteChainId'],_0x2ad818=_0x13a4b2['getSuggestions']()['filter'](_0x5710b9=>_0x5710b9['isInContent']&&_0x5710b9['attributes']&&_0x5710b9['attributes']['tablePasteChainId']==_0x552f28);_0x2ad818['length']&&_0x478337['getAllAdjacentSuggestions']()['length']!=_0x2ad818['length']&&_0x2ad818['reduce']((_0x4896f0,_0x4ae18f)=>(_0x4896f0['next']=_0x4ae18f,_0x4ae18f['previous']=_0x4896f0,_0x4ae18f));};function _0x104d4c(_0x52c138,_0x264805=!0x0){const {id:_0x265a42,authorId:_0x36760f}=_0x13a4b2['_splitMarkerName'](_0x52c138['markerName']),_0x5ddc9b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x351295=_0x13a4b2['activeMarkers']['includes'](_0x52c138['markerName']);return _0x351295&&_0x5ddc9b['push']('ck-suggestion-marker--active'),{'classes':_0x5ddc9b,'attributes':{'data-suggestion':_0x265a42,'data-author-id':_0x36760f},'priority':_0x351295&&_0x264805?0xbc2:0xbb8};}_0x13a4b2['on']('suggestionLoaded',_0x2d35f3,{'priority':'high'}),_0x13a4b2['on']('suggestionUnloaded',_0x2d35f3,{'priority':'high'}),_0x37c453['model']['document']['registerPostFixer'](()=>{let _0x204cf8=!0x1;const _0x28498b=Array['from'](_0x37c453['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x574d17,data:_0x12975f}of _0x28498b){const {group:_0x56fd28,type:_0x5667fd,id:_0x5e49a7}=_0x13a4b2['_splitMarkerName'](_0x574d17);if('suggestion'!=_0x56fd28||'deletion'!=_0x5667fd||_0x12975f['oldRange'])continue;if(!_0x13a4b2['hasSuggestion'](_0x5e49a7))continue;const _0x512404=_0x13a4b2['getSuggestion'](_0x5e49a7)['getRanges'](),_0xdc7d2e=_0x37c453['plugins']['get']('Users')['me'];for(const _0x3a0f26 of _0x13a4b2['getSuggestions']()){if(!_0x3a0f26['isInContent']||_0x3a0f26['author']!=_0xdc7d2e)continue;if('formatBlock'!=_0x3a0f26['type']||'tablePasteCell'!=_0x3a0f26['subType'])continue;if(_0x3a0f26['getRanges']()['every'](_0x2b1e13=>_0x512404['some'](_0x842d1b=>_0x842d1b['containsRange'](_0x2b1e13,!0x0)))){for(const _0x316e28 of _0x3a0f26['getAllAdjacentSuggestions']())_0x316e28['isInContent']&&(_0x316e28['discard'](),_0x204cf8=!0x0);}}}return _0x204cf8;}),_0x37c453['model']['document']['registerPostFixer'](_0x38b7a7=>{const _0x1b6ad9=_0x37c453['commands']['get']('redo');if(!_0x1b6ad9||!_0x1b6ad9['_createdBatches']['has'](_0x38b7a7['batch']))return!0x1;let _0x16e241=!0x1;const _0x1edda3=_0x37c453['plugins']['get']('Users')['me'],_0x1790c4=_0x37c453['model']['document']['differ']['getChanges'](),_0x1f9141=Array['from'](_0x37c453['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x336152,data:_0x443178})=>{const {group:_0x228b9b,subType:_0x5bfe8d,authorId:_0x15756c}=_0x13a4b2['_splitMarkerName'](_0x336152);return'suggestion'==_0x228b9b&&'tablePaste'==_0x5bfe8d&&_0x15756c==_0x1edda3['id']&&!_0x443178['oldRange'];});for(const _0x546117 of _0x1790c4){if('insert'!=_0x546117['type']||'tableCellSuggestion'!=_0x546117['name']||0x1!=_0x546117['length'])continue;const _0x552808=_0x38b7a7['createRange'](_0x546117['position'],_0x546117['position']['getShiftedBy'](0x1));if(!_0x1f9141['find'](({data:_0x547805})=>_0x547805['newRange']['isEqual'](_0x552808))){for(const {name:_0x1c4f14,data:_0x257b86}of _0x1f9141)if(_0x552808['containsRange'](_0x257b86['newRange'])){_0x38b7a7['updateMarker'](_0x1c4f14,{'range':_0x552808}),_0x16e241=!0x0;break;}}}return _0x16e241;}),_0x37c453['model']['document']['registerPostFixer'](_0x471c93=>{let _0x281344=!0x1;const _0xa34f60=_0x37c453['plugins']['get']('Users')['me'],_0x2c4b90=_0x13a4b2['getSuggestions']()['filter'](_0x381ee0=>_0x381ee0['isInContent']&&_0x381ee0['author']==_0xa34f60),_0x11e53f=new Set(),_0x8aa6fd=new Set();for(const _0x57c336 of _0x2c4b90)if('tablePaste'==_0x57c336['subType'])for(const _0x45ad7a of _0x57c336['getMarkers']()){const _0x8b2071=_0x45ad7a['getRange']()['getContainedElement']();if(_0x8b2071){if(_0x8b2071['is']('element','tableCellSuggestion')&&ze(_0x8b2071)){_0x57c336['removeMarker'](_0x45ad7a['name']),_0x11e53f['add'](_0x8b2071),_0x281344=!0x0;const _0x551399=_0x8b2071['nextSibling'],_0x1b90bc=_0x8b2071['previousSibling'],_0x6d2735=_0x551399&&_0x551399['is']('element','tableCellSuggestion'),_0x47e061=_0x1b90bc&&_0x1b90bc['is']('element','tableCellSuggestion');_0x6d2735&&!_0x11e53f['has'](_0x551399)&&_0x8aa6fd['add'](_0x551399),_0x47e061&&!_0x11e53f['has'](_0x1b90bc)&&_0x8aa6fd['add'](_0x1b90bc);}else _0x8b2071['is']('element','paragraph')&&_0x8b2071['isEmpty']&&(_0x57c336['removeMarker'](_0x45ad7a['name']),_0x281344=!0x0);}}else{if('tablePasteCell'==_0x57c336['subType']){if(!_0x57c336['attributes']||!_0x57c336['attributes']['tablePasteChainId'])continue;const _0xfc8afa=_0x57c336['attributes']['markerAttributes'];if(_0xfc8afa&&Object['keys'](_0xfc8afa)['length'])continue;const _0x2b3eac=_0x57c336['attributes']['tablePasteChainId'];let _0x5d14f0=!0x0,_0xb44b04=!0x0;for(const _0x5382d2 of _0x2c4b90)if(_0x5382d2['subType']&&_0x5382d2['subType']['startsWith']('tablePaste')){if(!_0x5382d2['attributes']['tablePasteChainId']){_0xb44b04=!0x1;break;}if(_0x5382d2['id']!=_0x57c336['id']&&_0x5382d2['attributes']['tablePasteChainId']==_0x2b3eac){_0x5d14f0=!0x1;break;}}_0xb44b04&&_0x5d14f0&&(_0x57c336['removeMarkers'](),_0x281344=!0x0);}}for(const _0xd48ba1 of _0x11e53f)_0x471c93['remove'](_0xd48ba1);for(const _0x12c9c3 of _0x8aa6fd)_0x471c93['unwrap'](_0x12c9c3);return _0x281344;}),_0x37c453['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xffeab9=>_0x104d4c(_0xffeab9),'converterPriority':'high'}),_0x37c453['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36fc46,_0x350539)=>_0x350539['options']['showSuggestionHighlights']?_0x104d4c(_0x36fc46,!0x1):null,'converterPriority':'high'});const _0x3494bc=_0x37c453['editing']['view'];this['listenTo'](_0x3494bc['document'],'clipboardOutput',(_0x63bd60,_0x26d570)=>{const _0x16aabc=[];for(const _0x5babf3 of _0x3494bc['createRangeIn'](_0x26d570['content'])['getItems']())_0x5babf3['is']('element','suggestion-td')&&_0x16aabc['push'](_0x5babf3);_0x3494bc['change'](_0x42d58f=>{for(const _0x2e41ab of _0x16aabc)_0x42d58f['move'](_0x42d58f['createRangeIn'](_0x2e41ab),_0x42d58f['createPositionBefore'](_0x2e41ab)),_0x42d58f['remove'](_0x2e41ab);});});}}function ze(_0x574840){if(_0x574840['isEmpty'])return!0x0;const _0x40bf5=_0x574840['getChild'](0x0);return _0x40bf5['is']('element','paragraph')&&_0x40bf5['isEmpty'];}function Ge(_0x3ccb16,_0x29020e={},_0x1e18cf){for(const {isAnchor:_0x4b0c2f,cellHeight:_0x582038,cellWidth:_0x825400}of _0x1e18cf['createTableWalker'](_0x3ccb16,{'includeAllSlots':!0x0,..._0x29020e}))if(!_0x4b0c2f||0x1!=_0x582038||0x1!=_0x825400)return!0x1;return!0x0;}class Et extends _0x3425bc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5093ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x5093ec['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5093ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5093ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5093ec['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5093ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5093ec['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x440c63,_0x1b65b3){const _0x3b57d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27ffe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x406375=_0x1b65b3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3972c7=_0x27ffe['getColumnGroupElement'](_0x406375);let _0x1dcccd=_0x3972c7?_0x27ffe['getTableColumnsWidths'](_0x3972c7):null,_0x5278f8=_0x406375['getAttribute']('tableWidth')||null;const _0x5aa5ef=_0x1b65b3['tableWidth']||_0x5278f8,_0x2e8a37=_0x1b65b3['columnWidths']||_0x1dcccd,_0x2ecbf5=this['editor']['plugins']['get']('Users')['me'];for(const _0x121403 of _0x3b57d5['getSuggestions']()){const _0x36cfd2=_0x121403['getContainedElement']();if('resizeTable'===_0x121403['subType']&&_0x36cfd2===_0x406375){_0x121403['author']!==_0x2ecbf5&&_0x121403['discard']();const _0x1e62aa=_0x121403['data']['commandParams'];_0x5278f8=_0x1e62aa[0x0]['tableWidth'],_0x1dcccd=_0x1e62aa[0x0]['columnWidths'];break;}}_0x440c63({'table':_0x406375,'tableWidth':_0x5aa5ef,'columnWidths':_0x2e8a37}),_0x3b57d5['markBlockFormat'](_0x406375,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5278f8,'columnWidths':_0x1dcccd}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x397d57){if('formatBlock'!=_0x397d57['type']&&'formatInline'!=_0x397d57['type'])return;const {data:_0x263a01}=_0x397d57;if(_0x263a01&&'resizeTable'===_0x263a01['formatGroupId']){const _0xad0022='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xad0022)};}}}class Rt extends _0x3425bc{['afterInit'](){const _0x4ff042=this['editor'];_0x4ff042['plugins']['has']('Template')&&_0x4ff042['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x3425bc{['afterInit'](){const _0x3ddce9=this['editor'];if(!_0x3ddce9['commands']['get']('insertTableOfContents'))return;_0x3ddce9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x74a348=_0x3ddce9['plugins']['get']('TrackChangesEditing'),_0x3f1987=_0x3ddce9['locale'];_0x74a348['descriptionFactory']['registerElementLabel']('tableOfContents',_0x497d9c=>o(_0x3f1987,'ELEMENT_TABLE_OF_CONTENTS',_0x497d9c));}}class Vt extends _0x3425bc{['afterInit'](){const _0x46125d=this['editor'];if(!_0x46125d['plugins']['has']('Title'))return;const _0x1ee73f=_0x46125d['plugins']['get']('TrackChangesEditing');_0x1ee73f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x46125d['locale'],'ELEMENT_TITLE')),_0x46125d['model']['document']['registerPostFixer'](_0x4563ee=>{let _0x45b87b=!0x1;const _0x2c7d2b=Array['from'](_0x46125d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51b743,data:_0xd5136f}of _0x2c7d2b){const {group:_0x2a66a1}=_0x1ee73f['_splitMarkerName'](_0x51b743);if('suggestion'!==_0x2a66a1||!_0xd5136f['newRange'])continue;const _0x5aed38=_0xd5136f['newRange'],_0x960f44=_0x5aed38['end']['nodeBefore'];if(!_0x960f44||!_0x960f44['is']('element','title-content'))continue;if(!_0x5aed38['start']['isTouching'](_0x5aed38['end']))continue;const _0xa43d18=_0x46125d['model']['schema']['getNearestSelectionRange'](_0x5aed38['end'],'forward');if(_0xa43d18&&_0xa43d18['isCollapsed']){const _0x1b48ab=_0x4563ee['createRange'](_0x5aed38['start'],_0xa43d18['start']);_0x1b48ab['isEqual'](_0x5aed38)||(_0x4563ee['updateMarker'](_0x51b743,{'range':_0x1b48ab}),_0x45b87b=!0x0);}_0x45b87b||(_0x4563ee['removeMarker'](_0x51b743),_0x45b87b=!0x0);}return _0x45b87b;});}}class Ft extends _0x3425bc{['afterInit'](){const _0x2dd351=this['editor'],_0x46217e=_0x2dd351['plugins']['get']('TrackChangesEditing');_0x2dd351['plugins']['has']('Uploadcare')&&(_0x46217e['enableCommand']('uploadcare'),_0x2dd351['plugins']['has']('UploadcareImageEdit')&&(_0x46217e['enableCommand']('uploadcareImageEdit'),_0x46217e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x46217e['registerBlockAttribute']('uploadcareImageId'),_0x46217e['descriptionFactory']['registerDescriptionCallback'](_0x3bc7ee=>{if('attribute'!=_0x3bc7ee['type'])return;const {data:_0x16615d}=_0x3bc7ee;return _0x16615d&&'uploadcareImageId'==_0x16615d['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x3425bc{['afterInit'](){const _0x3eb065=this['editor'],_0x2d1053=_0x3eb065['plugins']['get']('TrackChangesEditing');_0x3eb065['plugins']['has']('UndoEditing')&&(_0x2d1053['enableCommand']('undo'),_0x2d1053['enableCommand']('redo'));}}class Gt extends _0x3425bc{static get['requires'](){return[Mt];}['afterInit'](){const _0x3b5fc8=this['editor'];if(!_0x3b5fc8['plugins']['has']('TableCaptionEditing'))return;_0x3b5fc8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x3425bc{['tableProperties'];['tableCellProperties'];constructor(_0xee1b9c){super(_0xee1b9c),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 _0x455823=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5b49ea of this['tableProperties'])_0x455823['enableCommand'](_0x5b49ea,(_0xf757b0,_0x5a9db8)=>{const _0x2dbf8e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5b49ea,[_0x2dbf8e],this['tableProperties'],'tableProperties',_0xf757b0,_0x5a9db8);});_0x455823['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x455823['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x455823['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x43297e,_0x3feca8)=>this['handleDiscardAction'](this['tableProperties'],_0x43297e,_0x3feca8)),_0x455823['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3c86a9 of this['tableCellProperties'])_0x455823['enableCommand'](_0x3c86a9,(_0x2f3a17,_0x330523)=>{const _0x4c7783=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3c86a9,_0x4c7783,this['tableCellProperties'],'tableCellProperties',_0x2f3a17,_0x330523);});_0x455823['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x455823['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x455823['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x375318,_0x4b824b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x375318,_0x4b824b)),_0x455823['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x455823['descriptionFactory']['registerDescriptionCallback'](_0x4fcce0=>this['handleSuggestionDescription'](_0x4fcce0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x280636,_0x5962e7,_0x43272c,_0x4def2f,_0x5a7f78,_0x395d11){const _0x4c7ef0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x395d11['batch'],()=>{for(const _0x9b2070 of _0x5962e7){if(this['_getSuggestion'](_0x9b2070,_0x4def2f))_0x5a7f78(_0x395d11);else{const _0x173263={};for(const _0x58043b of _0x43272c){const _0x7f4038=_0x9b2070['getAttribute'](_0x58043b);void 0x0!==_0x7f4038&&(_0x173263[_0x58043b]=_0x7f4038);}_0x5a7f78(_0x395d11),_0x4c7ef0['markBlockFormat'](_0x9b2070,{'commandParams':[_0x173263]},[],_0x4def2f);}}});}['handleDiscardAction'](_0xaf87ef,_0x372089,_0x34f7d4){const _0x3d6e77=_0x372089[0x0]['start']['nodeAfter'],_0x24685c=_0x34f7d4['commandParams'][0x0];this['editor']['model']['change'](_0x31b8aa=>{for(const _0x2fa863 of _0xaf87ef)void 0x0!==_0x24685c[_0x2fa863]?_0x31b8aa['setAttribute'](_0x2fa863,_0x24685c[_0x2fa863],_0x3d6e77):_0x31b8aa['removeAttribute'](_0x2fa863,_0x3d6e77);});}['handleSuggestionDescription'](_0x573748){if(_0x573748['data'])switch(_0x573748['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'](_0x1074ba,_0x36a87f){const _0xc1c97a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x55ee49 of _0xc1c97a['getSuggestions']({'skipNotAttached':!0x0})){const _0x269e62=_0x55ee49['getContainedElement']();if(_0x55ee49['subType']===_0x36a87f&&_0x269e62===_0x1074ba)return _0x55ee49;}return null;}['_registerTablePropertiesAttributes'](){const _0x1a14c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e6812=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2b14c3 of _0x2e6812){const _0x77a2b2=_0x2b14c3['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1a14c9['registerBlockAttribute'](_0x2b14c3),_0x1a14c9['descriptionFactory']['registerAttributeLabel'](_0x2b14c3,o(this['editor']['locale'],'FORMAT_'+_0x77a2b2));}}}class Jt extends _0x3425bc{['afterInit'](){const _0x4eddcf=this['editor'];if(!_0x4eddcf['plugins']['has']('LineHeight'))return;const _0x221afe=_0x4eddcf['plugins']['get']('TrackChangesEditing'),_0x5bc1f3=_0x4eddcf['locale'];_0x221afe['enableDefaultAttributesIntegration']('lineHeight'),_0x221afe['registerBlockAttribute']('lineHeight'),_0x221afe['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5bc1f3,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3425bc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x791977,_0x1d6c38,_0x4229fc,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f31da){super(_0x2f31da),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x44a886,_0x25f365,_0x1d6edc,_0x4d29df)=>{this['_model']['change'](()=>{for(const _0x28cdff of[..._0x4d29df,..._0x1d6edc])this['_model']['markers']['has'](_0x28cdff)&&_0x2f31da['editing']['reconvertMarker'](_0x28cdff);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2f31da['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(),_0x2f31da['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2f31da['config']['get']('trackChanges.trackFormatChanges'),_0x2f31da['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2f31da['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2f31da,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2b649f=this['editor'],_0x3ef0f8=(_0x5b6a53,_0x59877b)=>{if('attribute'!=_0x5b6a53)return'ck-suggestion-marker-'+_0x5b6a53;const _0x38961b=_0x59877b['split']('|')[0x0];return this['_isBlockAttribute'](_0x38961b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2b649f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x42f8df=>{const {id:_0x4e0e13,authorId:_0x50aef2,type:_0x15ed5d,subType:_0x1e3e1a}=this['_splitMarkerName'](_0x42f8df['markerName']),_0x147126=['ck-suggestion-marker',_0x3ef0f8(_0x15ed5d,_0x1e3e1a)];let _0x407a92=0xbb8;return this['activeMarkers']['includes'](_0x42f8df['markerName'])&&(_0x147126['push']('ck-suggestion-marker--active'),_0x407a92=0xbc2),'deletion'==_0x15ed5d&&(_0x407a92+=0x5),{'classes':_0x147126,'attributes':{'data-suggestion':_0x4e0e13,'data-author-id':_0x50aef2},'priority':_0x407a92};}}),_0x2b649f['conversion']['for']('dataDowncast')['add'](_0x4f8847=>{_0x4f8847['on']('addMarker:suggestion',(_0x2c0f7f,_0x2413c1,_0x1d0a6e)=>{if(!_0x1d0a6e['options']['showSuggestionHighlights'])return;const _0x3c24b9=_0x2413c1['item'];if(!_0x3c24b9)return;const _0x23c86f=_0x1d0a6e['mapper']['toViewElement'](_0x3c24b9);_0x2b649f['model']['schema']['isObject'](_0x3c24b9)&&_0x23c86f&&!_0x23c86f['getCustomProperty']('widget')&&_0x23c86f['is']('containerElement')&&_0x273c0f(_0x23c86f,_0x1d0a6e['writer']);},{'priority':'high'});}),_0x2b649f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x37cf3,_0x1252f2)=>{if(!_0x1252f2['options']['showSuggestionHighlights'])return null;const {id:_0x2267bf,authorId:_0x1eef09,type:_0x33d3c7,subType:_0x21f8dd}=this['_splitMarkerName'](_0x37cf3['markerName']);return{'classes':['ck-suggestion-marker',_0x3ef0f8(_0x33d3c7,_0x21f8dd)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2267bf,'data-author-id':_0x1eef09}};}});const _0x1ada68=({showActiveMarkers:_0x2e6a66=!0x0,isAttributeSuggestion:_0x2ad9f6=!0x1}={})=>(_0xe7b41c,_0x481a7c,_0x1a9ec5)=>{if(!_0x481a7c['item'])return;const {id:_0x496996,authorId:_0x168bc5,subType:_0x44f655}=this['_splitMarkerName'](_0x481a7c['markerName']);if(_0x2ad9f6){const _0x50054b=ae(_0x44f655);if(!this['_isBlockAttribute'](_0x50054b))return;}if(_0x481a7c['item']['is']('selection'))return void _0x1a9ec5['consumable']['consume'](_0x481a7c['item'],_0xe7b41c['name']);const _0x5da404=_0x1a9ec5['mapper']['toViewElement'](_0x481a7c['item']);if(_0x481a7c['item']['is']('element')&&_0x2b649f['model']['schema']['isBlock'](_0x481a7c['item'])&&!_0x5da404['getCustomProperty']('addHighlight')){_0x1a9ec5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5da404),_0x1a9ec5['writer']['setAttribute']('data-suggestion',_0x496996,_0x5da404),_0x1a9ec5['writer']['setAttribute']('data-author-id',_0x168bc5,_0x5da404),_0x1a9ec5['mapper']['bindElementToMarker'](_0x5da404,_0x481a7c['markerName']),_0x2e6a66&&(this['activeMarkers']['includes'](_0x481a7c['markerName'])?_0x1a9ec5['writer']['addClass']('ck-suggestion-marker--active',_0x5da404):_0x1a9ec5['writer']['removeClass']('ck-suggestion-marker--active',_0x5da404));for(const _0x343676 of _0x2b649f['model']['createRangeIn'](_0x481a7c['item'])['getItems']())_0x1a9ec5['consumable']['consume'](_0x343676,_0xe7b41c['name']);_0x1a9ec5['consumable']['consume'](_0x481a7c['item'],_0xe7b41c['name']);}};_0x2b649f['conversion']['for']('dataDowncast')['add'](_0x2e1ad5=>{_0x2e1ad5['on']('addMarker:suggestion:formatBlock',(_0x4e3788,_0x341e45,_0x201329)=>{_0x201329['options']['showSuggestionHighlights']&&_0x1ada68({'showActiveMarkers':!0x1})(_0x4e3788,_0x341e45,_0x201329);},{'priority':'highest'});}),_0x2b649f['conversion']['for']('dataDowncast')['add'](_0x4f66a1=>{_0x4f66a1['on']('addMarker:suggestion:attribute',(_0x5047ea,_0x1540ca,_0xa0bff1)=>{_0xa0bff1['options']['showSuggestionHighlights']&&_0x1ada68({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5047ea,_0x1540ca,_0xa0bff1);},{'priority':'highest'});}),_0x2b649f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x152e09,_0x3323b0)=>{if(_0x3323b0['options']['showSuggestionHighlights']){const {id:_0x42cb4e,authorId:_0xccb6f2}=this['_splitMarkerName'](_0x152e09);return _0x152e09['includes'](':split')||_0x152e09['includes'](':merge')?{'group':'suggestion','name':_0x152e09['substr'](0xb),'attributes':{'data-suggestion':_0x42cb4e,'data-author-id':_0xccb6f2}}:null;}return{'group':'suggestion','name':_0x152e09['substr'](0xb)};}}),_0x2b649f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x557c0b,{writer:_0x5bd169})=>{let _0x439a6a='suggestion:'+_0x557c0b['getAttribute']('suggestion-type')+':'+_0x557c0b['getAttribute']('id');return _0x557c0b['getAttribute']('marker-count')&&(_0x439a6a+=':'+_0x557c0b['getAttribute']('marker-count')),_0x5bd169['createElement']('$marker',{'data-name':_0x439a6a});}}),_0x2b649f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2b649f['conversion']['for']('editingDowncast')['add'](_0x5ad079=>{_0x5ad079['on']('addMarker:suggestion:formatBlock',_0x1ada68(),{'priority':'high'});}),_0x2b649f['conversion']['for']('editingDowncast')['add'](_0x224b85=>{_0x224b85['on']('addMarker:suggestion:attribute',_0x1ada68({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2b649f['conversion']['for']('editingDowncast')['add'](_0x1074b5=>{_0x1074b5['on']('removeMarker:suggestion:formatBlock',(_0x509e56,_0x33062e,_0x4f86a2)=>{const _0x64738c=_0x4f86a2['mapper']['markerNameToElements'](_0x33062e['markerName']);if(_0x64738c){for(const _0x868155 of _0x64738c)_0x868155['getCustomProperty']('addHighlight')||(_0x4f86a2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x868155),_0x4f86a2['writer']['removeAttribute']('data-suggestion',_0x868155),_0x4f86a2['writer']['removeAttribute']('data-author-id',_0x868155),_0x4f86a2['mapper']['unbindElementFromMarkerName'](_0x868155,_0x33062e['markerName']));}},{'priority':'high'});}),_0x2b649f['conversion']['for']('editingDowncast')['add'](_0x2cccc3=>{_0x2cccc3['on']('removeMarker:suggestion:attribute',(_0x2e129c,_0x384a47,_0x108ee0)=>{const _0x398770=_0x108ee0['mapper']['markerNameToElements'](_0x384a47['markerName']);if(!_0x398770)return;const {subType:_0x3efb5b}=this['_splitMarkerName'](_0x384a47['markerName']),_0xc5b856=ae(_0x3efb5b);if(this['_isBlockAttribute'](_0xc5b856)){for(const _0x2c5c3a of _0x398770)_0x2c5c3a['getCustomProperty']('addHighlight')||(_0x108ee0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c5c3a),_0x108ee0['writer']['removeAttribute']('data-suggestion',_0x2c5c3a),_0x108ee0['writer']['removeAttribute']('data-author-id',_0x2c5c3a),_0x108ee0['mapper']['unbindElementFromMarkerName'](_0x2c5c3a,_0x384a47['markerName']));}},{'priority':'high'});}),_0x2b649f['model']['document']['registerPostFixer'](_0x6f1f55=>{let _0x18a8f6=!0x1;const _0x1ca2ba=Array['from'](_0x2b649f['model']['document']['differ']['getChangedMarkers']()),_0x5dd137=new Set();for(const {name:_0x3dd9a8,data:_0x57d542}of _0x1ca2ba){const {group:_0x52e65e,type:_0xedee19,subType:_0x1c57ef,id:_0x1f7154}=this['_splitMarkerName'](_0x3dd9a8);if('suggestion'!==_0x52e65e)continue;const _0x2f7c05=_0x1c57ef?'suggestion:'+_0xedee19+':'+_0x1c57ef+':'+_0x1f7154:'suggestion:'+_0xedee19+':'+_0x1f7154,_0x1491fd=_0x2b649f['model']['markers']['getMarkersGroup'](_0x2f7c05),_0xf95972=_0x2b649f['model']['markers']['get'](_0x3dd9a8),_0x54efdb=this['_suggestions']['get'](_0x1f7154);if(null!=_0x57d542['newRange']){'formatInline'==_0xedee19&&(_0x18a8f6=_0x18a8f6||zt(_0x57d542['newRange'],_0x3dd9a8,_0x6f1f55,_0x2b649f['model']['schema']));const _0x2c7d80='attribute'==_0xedee19&&this['_isBlockAttribute'](_0x1c57ef['split']('|')[0x0]),_0x4d8352='attribute'==_0xedee19&&this['_isInlineAttribute'](_0x1c57ef['split']('|')[0x0]);if(_0x57d542['newRange']['isCollapsed']||'$graveyard'==_0x57d542['newRange']['root']['rootName']||'formatBlock'==_0xedee19&&!Xt(_0x57d542['newRange'])||_0x2c7d80&&!Xt(_0x57d542['newRange'])||_0x4d8352&&Yt(_0x57d542['newRange'])||'deletion'==_0xedee19&&Yt(_0x57d542['newRange'])||_0xf95972&&Zt(_0xf95972,_0x1491fd))_0x6f1f55['removeMarker'](_0x3dd9a8),_0x18a8f6=!0x0;else{if(!_0x54efdb||!_0x54efdb['isInContent'])continue;if(_0x57d542['newRange']&&_0x57d542['oldRange']&&_0x57d542['newRange']['isEqual'](_0x57d542['oldRange']))continue;_0x5dd137['add'](_0x54efdb);}}}return _0x5dd137['size']>0x0&&(_0x18a8f6=!!this['_joinWithAdjacentSuggestions'](_0x5dd137)||_0x18a8f6),_0x18a8f6;}),_0x2b649f['model']['document']['registerPostFixer'](_0x1dd5f2=>{let _0x169658=!0x1;for(const _0x4db4d8 of _0x2b649f['model']['document']['differ']['getChanges']())if('insert'==_0x4db4d8['type'])for(const _0x5c78c7 of this['_suggestions']['values']()){if(_0x5c78c7['isMultiRange']||!_0x5c78c7['isInContent'])continue;const _0x1fb845='formatBlock'==_0x5c78c7['type'],_0x37becc=this['_getAttributeKey'](_0x5c78c7),_0x49a847=_0x37becc&&this['_isBlockAttribute'](_0x37becc);if(!_0x1fb845&&!_0x49a847)continue;const _0x113455=_0x5c78c7['getFirstRange']();if(_0x113455['start']['parent']!=_0x113455['end']['parent']&&!_0x113455['end']['isAtEnd']){const _0xa1f3f8=_0x2b649f['model']['createPositionAt'](_0x113455['start']['nodeAfter'],'end'),_0x57d21b=_0x2b649f['model']['createRange'](_0x113455['start'],_0xa1f3f8);_0x1dd5f2['updateMarker'](_0x5c78c7['getFirstMarker'](),{'range':_0x57d21b}),_0x169658=!0x0;}}return _0x169658;}),_0x2b649f['model']['document']['registerPostFixer'](_0x4b5065=>this['_processAttributeChanges'](_0x4b5065)),_0x2b649f['model']['document']['registerPostFixer'](_0x58219a=>!_0x58219a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x58219a)),_0x2b649f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2b649f['model']['document']['on']('change:data',(_0xd943d2,_0x424836)=>{if(!_0x424836['isLocal']||_0x424836['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x394043=_0x2b649f['model']['document']['differ']['getChanges']();if(0x0==_0x394043['length'])return;const _0x6ee4eb=[],_0x17e7d8=_0x394043['filter'](_0x1d2049=>'attribute'==_0x1d2049['type']),_0x32d40f=_0x394043['filter'](_0x525169=>'insert'==_0x525169['type']&&'$text'!=_0x525169['name']);for(const _0x175012 of _0x17e7d8)this['_isRegisteredAttribute'](_0x175012['attributeKey'])&&_0x6ee4eb['push']({'key':_0x175012['attributeKey'],'newValue':_0x175012['attributeNewValue'],'oldValue':_0x175012['attributeOldValue'],'range':ee(_0x175012['range'],_0x2b649f['model'])});for(const _0x86a5d1 of _0x32d40f){if('rename'!=_0x86a5d1['action']&&'refresh'!=_0x86a5d1['action'])continue;const _0x41e95f=ie(_0x86a5d1['position']['nodeAfter'],_0x2b649f['model']),_0x246aaf=_0x86a5d1['before'];'rename'==_0x86a5d1['action']&&_0x6ee4eb['push']({'key':m,'newValue':_0x86a5d1['name'],'oldValue':_0x246aaf['name'],'range':_0x41e95f});for(const [_0x377cf3,_0x3b2800]of _0x246aaf['attributes']){if(!this['_isRegisteredAttribute'](_0x377cf3))continue;const _0x53843a=_0x86a5d1['attributes']['get'](_0x377cf3);_0x3b2800!==_0x53843a&&_0x6ee4eb['push']({'key':_0x377cf3,'newValue':_0x53843a,'oldValue':_0x3b2800,'range':_0x41e95f});}for(const [_0x18815b,_0x322588]of _0x86a5d1['attributes'])this['_isRegisteredAttribute'](_0x18815b)&&(_0x246aaf['attributes']['has'](_0x18815b)||_0x6ee4eb['push']({'key':_0x18815b,'newValue':_0x322588,'oldValue':null,'range':_0x41e95f}));}0x0!=_0x6ee4eb['length']&&_0x2b649f['model']['enqueueChange'](_0x424836,_0x5f2ee3=>{const _0x5e3232=_0x223174();for(const {range:_0x3136ae,key:_0xc9a858,oldValue:_0x137b06,newValue:_0xe8395c}of _0x6ee4eb)this['markAttributeChange'](_0x3136ae,_0xc9a858,_0x137b06,_0xe8395c,{'groupId':_0x5e3232});this['_reduceExistingSuggestions'](_0x5f2ee3,_0x6ee4eb);});},{'priority':'lowest'}),_0x2b649f['model']['markers']['on']('update:suggestion',(_0x56ab29,_0x37338e,_0x545101)=>{if(null==_0x545101){const {id:_0x4b2bf1}=this['_splitMarkerName'](_0x37338e['name']),_0xc3c26c=this['_suggestions']['get'](_0x4b2bf1);_0xc3c26c&&_0xc3c26c['addMarkerName'](_0x37338e['name']);}}),_0x2b649f['model']['document']['on']('change:data',()=>{const _0x28689b=Array['from'](_0x2b649f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b6823=>'suggestion'===this['_splitMarkerName'](_0x5b6823['name'])['group']);if(0x0===_0x28689b['length'])return;_0x28689b['sort']((_0x5b7a89,_0x51e33f)=>{const _0x5ef679=_0x5b7a89['data']['oldRange'],_0x5cc868=_0x51e33f['data']['oldRange'];return null===_0x5ef679&&null===_0x5cc868?0x0:null===_0x5ef679&&null!==_0x5cc868?-0x1:null!==_0x5ef679&&null===_0x5cc868?0x1:_0x5ef679['start']['isBefore'](_0x5cc868['start'])?-0x1:0x1;});const _0x4ee334=new Set(),_0x4f6969=new Set();for(const {name:_0x2ca41b,data:_0x46981f}of _0x28689b){const {id:_0xda5284}=this['_splitMarkerName'](_0x2ca41b);if(null===_0x46981f['oldRange']){const _0x24f0b4=this['_handleNewSuggestionMarker'](_0x2ca41b);_0x4f6969['add'](_0x24f0b4);}else{const _0x2a5e1c=this['_suggestions']['get'](_0xda5284);null!==_0x46981f['newRange']||_0x2a5e1c['isInContent']?(_0x4ee334['add'](_0x2a5e1c['head']),_0x4f6969['add'](_0x2a5e1c)):this['_removeSuggestion'](_0x2a5e1c);}}_0x4f6969['size']>0x0&&this['_refreshSuggestionsChain'](_0x4f6969);for(const _0x44557d of _0x4ee334)this['fire']('suggestionChanged',_0x44557d);}),_0x2b649f['model']['on']('applyOperation',(_0x54838f,_0xb90249)=>{const _0x261285=_0xb90249[0x0];if(!this['_suggestions']['size'])return;if(!_0x261285['isDocumentOperation'])return;if(_0x261285['batch']['isUndo']||!_0x261285['batch']['isLocal'])return;let _0x5e181b,_0x24d58c;switch(_0x261285['type']){case'insert':_0x5e181b=_0x2b649f['model']['createPositionAt'](_0x261285['position']),_0x24d58c=_0x5e181b['getShiftedBy'](_0x261285['howMany']);break;case'split':_0x5e181b=_0x2b649f['model']['createPositionAt'](_0x261285['splitPosition']),_0x24d58c=_0x2b649f['model']['createPositionAt'](_0x261285['moveTargetPosition']);break;case'move':_0x5e181b=_0x2b649f['model']['createPositionAt'](_0x261285['targetPosition']),_0x24d58c=_0x5e181b['getShiftedBy'](_0x261285['howMany']);break;default:return;}const _0x1703b5=_0x2b649f['model']['createRange'](_0x5e181b,_0x24d58c);_0x2b649f['model']['change'](()=>{for(const {suggestion:_0x4695d3,meta:_0xcf7189}of this['_findSuggestions'](_0x1703b5)){if(_0x4695d3['isMultiRange'])continue;if('formatInline'==_0x4695d3['type'])continue;const _0x5e9c07=this['_getAttributeKey'](_0x4695d3);if(_0x5e9c07&&this['_isBlockAttribute'](_0x5e9c07)&&'split'!=_0x261285['type'])continue;const _0xb0ebec=_0x4695d3['data']&&_0x4695d3['data']['multipleBlocks'];('formatBlock'!=_0x4695d3['type']||'split'==_0x261285['type']&&!_0xb0ebec)&&(_0xcf7189['containsRangeInObject']||'insertion'==_0x4695d3['type']&&_0xcf7189['isOwn']||_0x4695d3['getFirstRange']()['containsRange'](_0x1703b5)&&this['_breakSuggestionMarker'](_0x4695d3,_0x5e181b,_0x24d58c));}});},{'priority':'lowest'}),_0x2b649f['model']['on']('deleteContent',(_0x46c569,_0x501659)=>{const _0x41de06=_0x501659[0x0],_0x4db06b=_0x501659[0x1];if(_0x4db06b&&_0x4db06b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x41de06['isCollapsed'])return;const _0x1f7edf=_0x2b649f['model']['schema'],{start:_0x404328,end:_0x1e69c4}=_0x41de06['getFirstRange'](),_0x528a5c=_0x404328['nodeAfter']&&_0x1f7edf['isLimit'](_0x404328['nodeAfter'])?null:_0x1f7edf['getNearestSelectionRange'](_0x404328,'forward'),_0x4e7d36=_0x1e69c4['nodeBefore']&&_0x1f7edf['isLimit'](_0x1e69c4['nodeBefore'])?null:_0x1f7edf['getNearestSelectionRange'](_0x1e69c4,'backward'),_0x5df3cd=_0x2b649f['model']['createRange'](_0x528a5c?_0x528a5c['start']:_0x404328,_0x4e7d36?_0x4e7d36['end']:_0x1e69c4);_0x2b649f['model']['change'](_0x310419=>{this['markDeletion'](_0x5df3cd);const _0x5ce7e1=_0x2b649f['model']['schema']['getNearestSelectionRange'](_0x5df3cd['start']);_0x41de06['is']('documentSelection')?_0x310419['setSelection'](_0x5ce7e1):_0x41de06['setTo'](_0x5ce7e1);}),_0x46c569['stop']();},{'priority':_0x3af1ec['normal']+0xa}),_0x2b649f['model']['on']('insertContent',(_0x35c85c,_0x12e3d9)=>{const _0x37898a=_0x12e3d9[_0x12e3d9['length']-0x1];_0x37898a&&_0x37898a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2b649f['model']['change'](()=>{let _0x15d480=_0x2b649f['model']['insertContent'](_0x12e3d9[0x0],_0x12e3d9[0x1],_0x12e3d9[0x2],{'forceDefaultExecution':!0x0});if(!_0x15d480)return;_0x35c85c['return']=_0x15d480['clone']();const _0x1ee3c8=_0x15d480['end']['nodeBefore'],_0x249d02=_0x2b649f['model']['schema'];_0x1ee3c8&&_0x249d02['isBlock'](_0x1ee3c8)&&!_0x249d02['isObject'](_0x1ee3c8)&&(_0x15d480=_0x2b649f['model']['createRange'](_0x15d480['start'],_0x2b649f['model']['createPositionAt'](_0x1ee3c8,'end'))),this['markInsertion'](_0x15d480);}),_0x35c85c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x32c93a=new T(_0x2b649f,this['_suggestions']);_0x2b649f['commands']['add']('acceptSuggestion',_0x32c93a),this['enableCommand']('acceptSuggestion');const _0x24a6e4=new O(_0x2b649f,this['_suggestions']);_0x2b649f['commands']['add']('discardSuggestion',_0x24a6e4),this['enableCommand']('discardSuggestion'),_0x2b649f['commands']['add']('acceptAllSuggestions',new x(_0x2b649f,_0x32c93a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2b649f['commands']['add']('discardAllSuggestions',new x(_0x2b649f,_0x24a6e4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2b649f['commands']['add']('acceptSelectedSuggestions',new E(_0x2b649f,_0x32c93a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2b649f['commands']['add']('discardSelectedSuggestions',new E(_0x2b649f,_0x24a6e4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x385176=_0x2b649f['plugins']['get']('CommentsRepository');this['listenTo'](_0x385176,'addComment',(_0x23bd82,{threadId:_0x385bec})=>{const _0xaedbb4=this['_suggestions']['get'](_0x385bec);_0xaedbb4&&_0xaedbb4['commentThread']&&0x1===_0xaedbb4['commentThread']['length']&&this['_updateSuggestionData'](_0x385bec,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x385176,'removeComment',(_0x3e3d93,{threadId:_0x1298a9})=>{const _0xce19dc=this['_suggestions']['get'](_0x1298a9);_0xce19dc&&_0xce19dc['commentThread']&&!_0xce19dc['commentThread']['length']&&this['_updateSuggestionData'](_0x1298a9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x63add8){const _0x489114=_0x3825f7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xa5bc70=0x3d8d0df,_0x41f38a=0x3dfa6af^_0xa5bc70,_0x4bfa55=window[_0x3825f7([0x44,0x61,0x74,0x65])][_0x3825f7([0x6e,0x6f,0x77])](),_0x25de51=_0x63add8[_0x3825f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x160de1=new window[(_0x3825f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12b227=>{_0x25de51[_0x3825f7([0x6f,0x6e,0x63,0x65])](_0x3825f7([0x72,0x65,0x61,0x64,0x79]),_0x12b227);}),_0x4d1d6f={[_0x3825f7([0x6b,0x74,0x79])]:_0x3825f7([0x45,0x43]),[_0x3825f7([0x75,0x73,0x65])]:_0x3825f7([0x73,0x69,0x67]),[_0x3825f7([0x63,0x72,0x76])]:_0x3825f7([0x50,0x2d,0x32,0x35,0x36]),[_0x3825f7([0x78])]:_0x3825f7([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]),[_0x3825f7([0x79])]:_0x3825f7([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]),[_0x3825f7([0x61,0x6c,0x67])]:_0x3825f7([0x45,0x53,0x32,0x35,0x36])},_0x4cba55=_0x25de51[_0x3825f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3825f7([0x67,0x65,0x74])](_0x3825f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19ab49(){let _0x53aa12,_0x3c4f69=null,_0x5c8707=null;try{if(_0x4cba55==_0x3825f7([0x47,0x50,0x4c]))return _0x3825f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53aa12=_0xcfecba(),!_0x53aa12)return _0x3825f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53aa12[_0x3825f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c8707=_0x3c2020(_0x53aa12[_0x3825f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53aa12[_0x3825f7([0x6a,0x74,0x69])])),await _0x34a603()?_0xaa8ae2()?_0x375b9e()?_0x3825f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17510f()?(_0x53aa12[_0x3825f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3825f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c4f69=_0x558897(_0x3825f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53aa12[_0x3825f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3825f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c4f69=_0x558897(_0x3825f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35a27e()):_0x3825f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3825f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3825f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3825f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x375b9e(){const _0x30218f=[_0x3825f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3825f7([0x74,0x72,0x69,0x61,0x6c])][_0x3825f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53aa12[_0x3825f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bfa55/0x3e8:0xe10*_0x41f38a;return _0x53aa12[_0x3825f7([0x65,0x78,0x70])]<_0x30218f;}function _0xaa8ae2(){const _0x386574=_0x53aa12[_0x3825f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x386574)return!0x1;if(_0x386574[_0x3825f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3825f7([0x2a])))return!0x0;if(_0x386574[_0x3825f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3825f7([0x54,0x43])))return!0x0;if(_0x386574[_0x3825f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3825f7([0x52,0x54,0x43]))){if(_0x43ba2d())return!0x0;if(_0x3c7b8c()||_0x291e95())return!0x0;}return!0x1;}function _0x17510f(){const _0x895759=_0x53aa12[_0x3825f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x895759||0x0==_0x895759[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3be2d7}=new URL(window[_0x3825f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x895759[_0x3825f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be2d7))return!0x0;const _0x17585c=_0x3be2d7[_0x3825f7([0x73,0x70,0x6c,0x69,0x74])](_0x3825f7([0x2e]));return _0x895759[_0x3825f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23eb79=>_0x23eb79[_0x3825f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3825f7([0x2a])))[_0x3825f7([0x6d,0x61,0x70])](_0x2c5bff=>_0x2c5bff[_0x3825f7([0x73,0x70,0x6c,0x69,0x74])](_0x3825f7([0x2e])))[_0x3825f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xca3088=>_0xca3088[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17585c[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3825f7([0x6d,0x61,0x70])](_0x233e74=>Array(_0x17585c[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x233e74[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3825f7([0x66,0x69,0x6c,0x6c])](_0x233e74[0x0]===_0x3825f7([0x2a])?_0x3825f7([0x2a]):'')[_0x3825f7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x233e74))[_0x3825f7([0x73,0x6f,0x6d,0x65])](_0x7fb621=>_0x17585c[_0x3825f7([0x65,0x76,0x65,0x72,0x79])]((_0x5522ab,_0x516bf2)=>_0x7fb621[_0x516bf2]===_0x5522ab||_0x7fb621[_0x516bf2]===_0x3825f7([0x2a])));}function _0x35a27e(){return _0x3c4f69&&_0x5c8707?new window[(_0x3825f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d337c,_0x51e08b)=>{_0x3c4f69[_0x3825f7([0x74,0x68,0x65,0x6e])](_0x3d337c,_0x51e08b),_0x5c8707[_0x3825f7([0x74,0x68,0x65,0x6e])](_0x5be484=>{_0x5be484!=_0x3825f7([0x56,0x61,0x6c,0x69,0x64])&&_0x3d337c(_0x5be484);},_0x51e08b);}):_0x3c4f69||_0x5c8707||_0x3825f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c2020(_0xe6f672,_0x357f4c){return new window[(_0x3825f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2649bd=>{if(_0x5b1228())return _0x2649bd(_0x3825f7([0x56,0x61,0x6c,0x69,0x64]));_0x9facc3(),_0x25de51[_0x3825f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3825f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x522515=!0x1;const _0x1c9c31=_0x223174();function _0x238616(_0x26e64b){return!!_0x26e64b&&(typeof _0x26e64b===_0x3825f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26e64b===_0x3825f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26e64b[_0x3825f7([0x74,0x68,0x65,0x6e])]===_0x3825f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26e64b[_0x3825f7([0x63,0x61,0x74,0x63,0x68])]===_0x3825f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1874fb(_0xe14c44){_0x162d45(_0xe14c44)[_0x3825f7([0x74,0x68,0x65,0x6e])](_0x541b46=>{if(!_0x541b46||_0x541b46[_0x3825f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3825f7([0x6f,0x6b]))return _0x3825f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f4e89(_0x5e4ae3(_0x1c9c31+_0x357f4c))!=_0x541b46[_0x3825f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3825f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3825f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3825f7([0x74,0x68,0x65,0x6e])](_0x214c29=>(_0x1bc984(),_0x214c29),()=>{const _0x350829=_0x1a48ea();return null==_0x350829?(_0x1bc984(),_0x3825f7([0x56,0x61,0x6c,0x69,0x64])):_0x3825f7(_0x4bfa55-_0x350829>(0x27d454df^_0xa5bc70)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3825f7([0x74,0x68,0x65,0x6e])](_0x2649bd)[_0x3825f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2649bd(_0x3825f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfb67b5=0x3ee3e5f^_0xa5bc70;function _0x1bc984(){const _0x53d37d=_0x3825f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f4e89(_0x5e4ae3(_0xe6f672)),_0x1d1828=_0x536e4a(_0x5f4e89(window[_0x3825f7([0x4d,0x61,0x74,0x68])][_0x3825f7([0x63,0x65,0x69,0x6c])](_0x4bfa55/_0xfb67b5)));window[_0x3825f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3825f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53d37d,_0x1d1828);}function _0x1a48ea(){const _0x44e6d8=_0x3825f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f4e89(_0x5e4ae3(_0xe6f672)),_0x210a5d=window[_0x3825f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3825f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44e6d8);return _0x210a5d?window[_0x3825f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x536e4a(_0x210a5d),0x10)*_0xfb67b5:null;}function _0x162d45(_0x3beedd){return new window[(_0x3825f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20d970,_0x3cc0fa)=>{_0x3beedd[_0x3825f7([0x74,0x68,0x65,0x6e])](_0x20d970,_0x3cc0fa),window[_0x3825f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3cc0fa,0x3d9041f^_0xa5bc70);});}}_0x25de51[_0x3825f7([0x6f,0x6e])](_0x3825f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x813da0,_0x52f2e4)=>{if(_0x52f2e4[0x0]!=_0xe6f672)return _0x2649bd(_0x3825f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52f2e4[0x1]={..._0x52f2e4[0x1],[_0x3825f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c9c31};},{[_0x3825f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3825f7([0x68,0x69,0x67,0x68])}),_0x25de51[_0x3825f7([0x6f,0x6e])](_0x3825f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x380270=>{_0x238616(_0x380270[_0x3825f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x522515=!0x0,_0x1874fb(_0x380270[_0x3825f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3825f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3825f7([0x6c,0x6f,0x77])}),_0x160de1[_0x3825f7([0x74,0x68,0x65,0x6e])](()=>{_0x522515||_0x2649bd(_0x3825f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b1228(){return _0x25de51[_0x3825f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3825f7([0x76,0x69,0x65,0x77])][_0x3825f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3825f7([0x61,0x75,0x74,0x6f]);}function _0x9facc3(){_0x25de51[_0x3825f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3825f7([0x76,0x69,0x65,0x77])][_0x3825f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3825f7([0x61,0x75,0x74,0x6f]);}}function _0x558897(_0x38605b){const _0x35e9ef=[new window[(_0x3825f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a85d6=>setTimeout(_0x3a85d6,0x3d1ee13^_0xa5bc70)),_0x160de1[_0x3825f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3825f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x194cd8=>{let _0x1e8b62=0x0;_0x25de51[_0x3825f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3825f7([0x6f,0x6e])](_0x3825f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x696e43,_0x1eb4b4)=>{_0x1eb4b4[0x0][_0x3825f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e8b62++,_0x1e8b62==(0x3d8d127^_0xa5bc70)&&(_0x194cd8(),_0x696e43[_0x3825f7([0x6f,0x66,0x66])]());});}))];return window[_0x3825f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3825f7([0x72,0x61,0x63,0x65])](_0x35e9ef)[_0x3825f7([0x74,0x68,0x65,0x6e])](()=>_0x38605b);}async function _0x5583a1(){await _0x160de1,_0x25de51[_0x3825f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3825f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x280e45,_0x25de51[_0x3825f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3825f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x280e45,_0x25de51[_0x3825f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3825f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43ba2d(){return _0x360aae(_0x3825f7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd3db5(_0x3825f7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3825f7([0x73,0x74,0x61,0x74,0x65])]==_0x3825f7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3c7b8c(){return _0x360aae(_0x3825f7([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 _0x291e95(){return _0x360aae(_0x3825f7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x42e867(_0x4e10cb){const _0x22b352=_0x4879c4();_0x25de51[_0x22b352]=_0x3825f7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e10cb,_0x4e10cb!=_0x3825f7([0x56,0x61,0x6c,0x69,0x64])&&_0x5583a1();}function _0x4879c4(){const _0x1e3934=window[_0x3825f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3825f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3825f7([0x6e,0x6f,0x77])]())[_0x3825f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3825f7([0x2e]),'');let _0x558063=_0x3825f7([0x52]);for(let _0x654708=0x0;_0x654708<_0x1e3934[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x654708+=0x2){let _0x3ef8eb=window[_0x3825f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e3934[_0x3825f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x654708,_0x654708+0x2));_0x3ef8eb>=_0x489114[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ef8eb-=_0x489114[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x558063+=_0x489114[_0x3ef8eb];}return _0x558063;}function _0xcfecba(){const _0x29fc27=_0x4cba55[_0x3825f7([0x73,0x70,0x6c,0x69,0x74])](_0x3825f7([0x2e]));if(0x3!=_0x29fc27[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xac0d00(_0x29fc27[0x1]);function _0xac0d00(_0x3a3a5c){const _0x53953b=_0x365b98(_0x3a3a5c);return _0x53953b&&_0x115fce()?_0x53953b:null;function _0x115fce(){const _0x480a1a=_0x53953b[_0x3825f7([0x6a,0x74,0x69])],_0x443f84=window[_0x3825f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480a1a[_0x3825f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x480a1a[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16bfd7={..._0x53953b,[_0x3825f7([0x6a,0x74,0x69])]:_0x480a1a[_0x3825f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x480a1a[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16bfd7[_0x3825f7([0x76,0x63])],_0x5e4ae3(_0x16bfd7)==_0x443f84;}}}async function _0x34a603(){let _0x360310=!0x0;try{const _0x423e2a=_0x4cba55[_0x3825f7([0x73,0x70,0x6c,0x69,0x74])](_0x3825f7([0x2e])),[_0x1fd9b1,_0x4d8fdc,_0x1fff57]=_0x423e2a;return _0x2415ff(_0x1fd9b1),await _0x5acf5d(_0x1fd9b1,_0x4d8fdc,_0x1fff57),_0x360310;}catch{return!0x1;}function _0x2415ff(_0x4f1022){const _0x5c5e5a=_0x365b98(_0x4f1022);_0x5c5e5a&&_0x5c5e5a[_0x3825f7([0x61,0x6c,0x67])]==_0x3825f7([0x45,0x53,0x32,0x35,0x36])||(_0x360310=!0x1);}async function _0x5acf5d(_0x1ae411,_0x52064f,_0x55f7e1){const _0x3f2916=window[_0x3825f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3825f7([0x66,0x72,0x6f,0x6d])](_0x21c856(_0x55f7e1),_0x196001=>_0x196001[_0x3825f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x367f1b=new window[(_0x3825f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3825f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ae411+_0x3825f7([0x2e])+_0x52064f),_0x50b530=window[_0x3825f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3825f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50b530)return;const _0x137f69=await _0x50b530[_0x3825f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3825f7([0x6a,0x77,0x6b]),_0x4d1d6f,{[_0x3825f7([0x6e,0x61,0x6d,0x65])]:_0x3825f7([0x45,0x43,0x44,0x53,0x41]),[_0x3825f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3825f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3825f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50b530[_0x3825f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3825f7([0x6e,0x61,0x6d,0x65])]:_0x3825f7([0x45,0x43,0x44,0x53,0x41]),[_0x3825f7([0x68,0x61,0x73,0x68])]:{[_0x3825f7([0x6e,0x61,0x6d,0x65])]:_0x3825f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x137f69,_0x3f2916,_0x367f1b)||(_0x360310=!0x1);}}function _0x365b98(_0x301f18){return _0x301f18[_0x3825f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3825f7([0x65,0x79]))?JSON[_0x3825f7([0x70,0x61,0x72,0x73,0x65])](_0x21c856(_0x301f18)):null;}function _0x21c856(_0x420840){return window[_0x3825f7([0x61,0x74,0x6f,0x62])](_0x420840[_0x3825f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3825f7([0x2b]))[_0x3825f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3825f7([0x2f])));}function _0x5e4ae3(_0xcdfa58){let _0x5a1d54=0x1505;function _0x5eb52d(_0x9a1364){for(let _0x3eb0c3=0x0;_0x3eb0c3<_0x9a1364[_0x3825f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3eb0c3++){const _0x52b2ca=_0x9a1364[_0x3825f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3eb0c3);_0x5a1d54=(_0x5a1d54<<0x5)+_0x5a1d54+_0x52b2ca,_0x5a1d54&=_0x5a1d54;}}function _0x31a8a5(_0x3e607f){Array[_0x3825f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e607f)?_0x3e607f[_0x3825f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31a8a5):_0x3e607f&&typeof _0x3e607f==_0x3825f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3825f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e607f)[_0x3825f7([0x73,0x6f,0x72,0x74])]()[_0x3825f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15ad1c,_0x3b05d9])=>{_0x5eb52d(_0x15ad1c),_0x31a8a5(_0x3b05d9);}):_0x5eb52d(window[_0x3825f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e607f));}return _0x31a8a5(_0xcdfa58),_0x5a1d54>>>0x0;}function _0x5f4e89(_0x14570d){return _0x14570d[_0x3825f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3825f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3825f7([0x30]));}function _0x536e4a(_0x351652){return _0x351652[_0x3825f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3825f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3825f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x360aae(_0x16a9a2){return _0x25de51[_0x3825f7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3825f7([0x68,0x61,0x73])](_0x16a9a2);}function _0xd3db5(_0x561304){return _0x25de51[_0x3825f7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3825f7([0x67,0x65,0x74])](_0x561304);}function _0x280e45(){}function _0x3825f7(_0x4a67cd){return _0x4a67cd['map'](_0x24bc8e=>String['fromCharCode'](_0x24bc8e))['join']('');}_0x42e867(await _0x19ab49());}(this);}set['adapter'](_0x22726b){if(this['_adapter'])throw new _0x28d8a7('track-changes-adapter-already-set',this);this['_adapter']=_0x22726b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x271e40=!0x1,toJSON:_0x598c4c=!0x1}={}){const _0x14f542=[];for(const _0x4542b9 of this['_suggestions']['values']())_0x271e40&&!_0x4542b9['isInContent']||_0x14f542['push'](_0x4542b9);return _0x598c4c?_0x14f542['map'](_0x1ca92b=>_0x1ca92b['toJSON']()):_0x14f542;}['getSuggestion'](_0xf4c5fc){const _0x32907f=this['_suggestions']['get'](_0xf4c5fc);if(!_0x32907f)throw new _0x28d8a7('track-changes-suggestion-not-found',this);return _0x32907f;}['hasSuggestion'](_0xe1240f){return this['_suggestions']['has'](_0xe1240f);}['addSuggestionData'](_0x235ee1){const {authorId:_0x22b382,id:_0x281d14,originalSuggestionId:_0x4febc9,attributes:_0x38a0a5}=_0x235ee1,[_0x3a65f5,_0x1f00a2]=_0x235ee1['type']['split'](':'),_0x19b69d=this['_suggestions']['get'](_0x281d14)||this['_createSuggestion'](_0x3a65f5,_0x1f00a2,_0x281d14,_0x22b382,_0x38a0a5,_0x4febc9);if(this['_addThreadToSuggestion'](_0x19b69d),this['_checkSuggestionCorrectness'](_0x19b69d,_0x3a65f5,_0x1f00a2||null,_0x22b382),_0x19b69d['createdAt']=_0x235ee1['createdAt'],_0x19b69d['_isDataLoaded']=!0x0,_0x38a0a5&&_0x38a0a5['@external']){const _0x31c7e7=_0x38a0a5['@external'],_0x2ffc8c=this['_getExternalAuthor'](_0x31c7e7['authorName']);_0x19b69d['authoredAt']=_0x31c7e7['createdAt'],_0x19b69d['author']=_0x2ffc8c,_0x19b69d['isExternal']=!0x0;}else _0x19b69d['authoredAt']=_0x235ee1['createdAt'];switch(_0x235ee1['data']&&(_0x19b69d['data']=_0x235ee1['data']),_0x235ee1['attributes']&&(_0x19b69d['attributes']=_0x235ee1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x19b69d['_saved']=!0x0),this['_suggestionState']['get'](_0x19b69d)){case'notReady':this['_suggestionState']['set'](_0x19b69d,'dataReady');break;case'markerReady':_0x19b69d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x19b69d])),this['_refreshSuggestionsChain'](new Set([_0x19b69d])),this['_suggestionState']['set'](_0x19b69d,'ready'),this['fire']('suggestionLoaded',_0x19b69d)):this['_suggestionState']['set'](_0x19b69d,'removed');}return _0x19b69d;}['acceptSuggestion'](_0x5ee643){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x21dae2 of _0x5ee643['getAllAdjacentSuggestions']())_0x21dae2['accept']();});});}['discardSuggestion'](_0x113079){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35a461 of _0x113079['getAllAdjacentSuggestions']())_0x35a461['discard']();});});}['enableCommand'](_0x3348d7,_0x148f74){const _0x1c0d17=this['editor']['commands']['get'](_0x3348d7);if(!_0x1c0d17)throw new _0x28d8a7('track-changes-command-not-found',this,{'commandName':_0x3348d7});if(this['_enabledCommands']['has'](_0x1c0d17))throw new _0x28d8a7('track-changes-enable-command-twice',this,{'commandName':_0x3348d7});this['_enabledCommands']['add'](_0x1c0d17),_0x148f74&&_0x1c0d17['on']('execute',(_0x3487e8,_0xdfc79a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xdfc79a['length']>0x0&&_0xdfc79a[_0xdfc79a['length']-0x1]&&_0xdfc79a[_0xdfc79a['length']-0x1]['forceDefaultExecution']?_0xdfc79a['pop']():(_0x3487e8['return']=_0x148f74((..._0x3b67b9)=>_0x1c0d17['execute'](..._0x3b67b9,{'forceDefaultExecution':!0x0}),..._0xdfc79a),_0x3487e8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1c9b62){let _0x1df4cf,_0xf83d53;const _0x3883a2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1df4cf=_0x1c9b62();}catch(_0xec0860){_0xf83d53=_0xec0860;}return _0x3883a2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xf83d53&&_0x28d8a7['rethrowUnexpectedError'](_0xf83d53,this),_0x1df4cf;}['markInsertion'](_0x2b01fa,_0x4a8a34=null,_0xfc4e04={}){if(_0x2b01fa['isCollapsed'])return null;const _0x584f4d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xfc4e04['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x498bf3,meta:_0x1e7f7f}of this['_findSuggestions'](_0x2b01fa,'insertion'))if(_0x1e7f7f['isOwn']){if(!_0x1e7f7f['isNextTo']){if(_0x1e7f7f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0x498bf3,_0xfc4e04))continue;return _0x498bf3;}if(oe(_0x498bf3,_0xfc4e04))return _0x498bf3;this['_breakSuggestionMarker'](_0x498bf3,_0x2b01fa['start'],_0x2b01fa['end']);break;}if(_0x4a8a34==_0x498bf3['subType']&&oe(_0x498bf3,_0xfc4e04)){const _0x3af034=_0x498bf3['getFirstRange']();return _0x3af034['start']['isEqual'](_0x2b01fa['end'])?this['_setSuggestionRange'](_0x498bf3,this['_model']['createRange'](_0x2b01fa['start'],_0x3af034['end'])):this['_setSuggestionRange'](_0x498bf3,this['_model']['createRange'](_0x3af034['start'],_0x2b01fa['end'])),_0x498bf3;}}const _0x59cd26=_0x223174(),_0x461e71=_0x584f4d['id'],_0x5e90a7=_0x4a8a34?'insertion:'+_0x4a8a34:'insertion',_0x45a696=this['_setSuggestionData']({'id':_0x59cd26,'type':_0x5e90a7,'createdAt':new Date(),'authorId':_0x461e71,'attributes':_0xfc4e04});return this['_addSuggestionMarker'](_0x5e90a7,_0x59cd26,_0x461e71,_0x2b01fa),_0x45a696;}['markMultiRangeInsertion'](_0x15d464,_0x283052='multi',_0x11ee33={}){const _0x302192=this['editor']['plugins']['get']('Users')['me'],_0x45dccf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x283052,'join');this['_trackingSessionId']&&(_0x11ee33['trackingSessionId']=this['_trackingSessionId']);for(const _0x3080aa of this['getSuggestions']())if(_0x3080aa['author']['id']==_0x302192['id']&&'insertion'==_0x3080aa['type']&&_0x3080aa['subType']==_0x283052&&oe(_0x3080aa,_0x11ee33)&&(_0x45dccf(_0x3080aa['getRanges'](),_0x15d464)||_0x45dccf(_0x15d464,_0x3080aa['getRanges']()))){for(const _0x502b10 of _0x15d464)_0x3080aa['addRange'](_0x502b10);return _0x3080aa;}for(const {suggestion:_0x3ff451,meta:_0x59ab70}of this['_findSuggestions'](_0x15d464,'insertion')){if(!_0x59ab70['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x59ab70['containsRangeInObject'])continue;if(!oe(_0x3ff451,_0x11ee33))continue;let _0x3c651d=!0x0;for(const _0x47f06f of _0x3ff451['getRanges']())for(const _0xb72ea9 of _0x15d464)if(!_0x47f06f['containsRange'](_0xb72ea9)){_0x3c651d=!0x1;break;}if(_0x3c651d)return _0x3ff451;}const _0x313c5f=_0x223174(),_0x336821=_0x302192['id'],_0x20e7f4='insertion:'+_0x283052,_0x1b77f1=this['_setSuggestionData']({'id':_0x313c5f,'type':_0x20e7f4,'createdAt':new Date(),'authorId':_0x336821,'attributes':_0x11ee33});for(const _0x4b7893 of _0x15d464)this['_addSuggestionMarker'](_0x20e7f4,_0x313c5f,_0x336821,_0x4b7893,R['getMultiRangeId']());return _0x1b77f1;}['markInlineFormat'](_0x5db3e0,_0xa09c29,_0x1bf95e=null,_0x46e795={}){if(_0x1bf95e=_0x1bf95e||Qt(_0xa09c29),_0x5db3e0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x46e795['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x345bf3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bf95e,'accept');return this['forceDefaultExecution'](()=>_0x345bf3([_0x5db3e0],_0xa09c29,_0x46e795)),null;}const _0x1371fe=this['editor']['plugins']['get']('Users')['me'],_0x4748aa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x11479e,meta:_0x182ff5}of this['_findSuggestions'](_0x5db3e0,'insertion'))_0x182ff5['isOwn']&&!_0x182ff5['isInsideObject']&&_0x4748aa['push'](..._0x11479e['getRanges']());}const _0x2f85ff=function(_0x4d2172,_0x5b9677){const _0x4ed788=[];for(const _0x33d513 of _0x5b9677){const _0x5270ef=_0x4d2172['getIntersection'](_0x33d513);_0x5270ef&&_0x4ed788['push'](_0x5270ef);}return _0x4ed788;}(_0x5db3e0,_0x4748aa),_0x1e04c4=function(_0x2ba523,_0x275b8d){const _0xb55c69=[_0x2ba523];for(const _0x48511e of _0x275b8d){let _0x50645c=0x0;for(;_0x50645c<_0xb55c69['length'];){const _0x587994=_0xb55c69[_0x50645c]['getDifference'](_0x48511e);_0xb55c69['splice'](_0x50645c,0x1,..._0x587994),_0x50645c+=_0x587994['length'];}}return _0xb55c69;}(_0x5db3e0,_0x4748aa);_0x2f85ff['length']&&this['_model']['change'](()=>{for(const _0x21e883 of _0x2f85ff){const _0xfbf0f4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bf95e,'accept');this['forceDefaultExecution'](()=>_0xfbf0f4([_0x21e883],_0xa09c29,_0x46e795));}});for(const _0x1ad6cb of _0x1e04c4){let _0xab4a29=null,_0x433311=_0x1ad6cb['start'],_0x220f9f=_0x1ad6cb['end'];for(const {suggestion:_0x5a4b1d,meta:_0x4e66bd}of this['_findSuggestions'](_0x1ad6cb,'formatInline')){if(!_0x4e66bd['isOwn'])continue;if(_0x5a4b1d['subType']!=_0x1bf95e)continue;if(!oe(_0x5a4b1d,_0x46e795))continue;const _0x4d7cc1=_0x5a4b1d['getFirstRange']();if(_0x4d7cc1['containsRange'](_0x1ad6cb,!0x0))return null;_0x433311=_0x433311['isBefore'](_0x4d7cc1['start'])?_0x433311:_0x4d7cc1['start'],_0x220f9f=_0x220f9f['isAfter'](_0x4d7cc1['end'])?_0x220f9f:_0x4d7cc1['end'],_0xab4a29?_0x4d7cc1['start']['isBefore'](_0xab4a29['getFirstRange']()['start'])?(_0xab4a29['removeMarkers'](),_0xab4a29=_0x5a4b1d):_0x5a4b1d['removeMarkers']():_0xab4a29=_0x5a4b1d;}const _0x4308ab=this['_model']['createRange'](_0x433311,_0x220f9f);if(_0xab4a29)this['_setSuggestionRange'](_0xab4a29,_0x4308ab);else{const _0x4ec6b9=_0x223174(),_0xb2aab4=_0x1371fe['id'];this['_setSuggestionData']({'id':_0x4ec6b9,'type':'formatInline:'+_0x1bf95e,'data':_0xa09c29,'createdAt':new Date(),'authorId':_0xb2aab4,'attributes':_0x46e795}),this['_addSuggestionMarker']('formatInline:'+_0x1bf95e,_0x4ec6b9,_0xb2aab4,_0x4308ab);}}return null;}['markBlockFormat'](_0x3a911b,_0x50ec21,_0x4e60a5=[],_0x3ec3f4=null,_0x4f1ed2={}){_0x50ec21['formatGroupId']||(_0x50ec21['formatGroupId']=_0x50ec21['commandName']),_0x50ec21['multipleBlocks']=_0x3a911b['is']('range'),_0x3ec3f4=_0x3ec3f4||Qt(_0x50ec21);const _0x1c3f73=_0x4e60a5['map'](_0x2a69e0=>ie(_0x2a69e0,this['_model'])),_0x12a834=_0x3a911b['is']('range')?_0x3a911b:ie(_0x3a911b,this['_model']);if(this['_trackingSessionId']&&(_0x4f1ed2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x304ed9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ec3f4,'accept');return this['forceDefaultExecution'](()=>_0x304ed9([_0x12a834],_0x50ec21,_0x4f1ed2)),null;}_0x1c3f73['push'](_0x12a834);let _0xfc1fa1=!0x0;for(const _0x6dc508 of _0x1c3f73)if(!this['_rangeIsInLocalUserInsertion'](_0x6dc508)){_0xfc1fa1=!0x1;break;}if(_0xfc1fa1&&'always'!==this['_trackFormatChanges']){const _0x23b158=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ec3f4,'accept');return this['forceDefaultExecution'](()=>_0x23b158([_0x12a834],_0x50ec21,_0x4f1ed2)),null;}let _0x5c8a55=null,_0x1c35d3=_0x12a834['start'],_0x3dd5a7=_0x12a834['end'];for(const {suggestion:_0x407cc8,meta:_0xbea1e0}of this['_findSuggestions'](_0x12a834,'formatBlock')){if(!_0xbea1e0['isOwn'])continue;if(_0xbea1e0['isNextTo']||_0xbea1e0['containsRangeInObject']||_0xbea1e0['isInsideObject'])continue;if(_0x407cc8['data']['formatGroupId']!=_0x50ec21['formatGroupId'])continue;if(!oe(_0x407cc8,_0x4f1ed2))continue;const _0x476c57=_0x407cc8['getFirstRange']();if(_0x407cc8['subType']==_0x3ec3f4){if(_0x476c57['containsRange'](_0x12a834,!0x0))return null;_0x1c35d3=_0x1c35d3['isBefore'](_0x476c57['start'])?_0x1c35d3:_0x476c57['start'],_0x3dd5a7=_0x3dd5a7['isAfter'](_0x476c57['end'])?_0x3dd5a7:_0x476c57['end'],_0x5c8a55?_0x476c57['start']['isBefore'](_0x5c8a55['getFirstRange']()['start'])?(_0x5c8a55['removeMarkers'](),_0x5c8a55=_0x407cc8):_0x407cc8['removeMarkers']():_0x5c8a55=_0x407cc8;}else{const _0x4545a8=_0x12a834['getIntersection'](_0x476c57);this['_cutOutSuggestionMarker'](_0x407cc8,_0x4545a8);}}const _0x1cda5d=this['editor']['plugins']['get']('Users')['me'],_0x52e29b=_0x223174(),_0x15e98d=_0x1cda5d['id'];if(_0x5c8a55)return this['_setSuggestionRange'](_0x5c8a55,this['_model']['createRange'](_0x1c35d3,_0x3dd5a7)),_0x5c8a55;{const _0x1da195=this['_setSuggestionData']({'id':_0x52e29b,'type':'formatBlock:'+_0x3ec3f4,'data':_0x50ec21,'createdAt':new Date(),'authorId':_0x15e98d,'attributes':_0x4f1ed2});return this['_addSuggestionMarker']('formatBlock:'+_0x3ec3f4,_0x52e29b,_0x15e98d,this['_model']['createRange'](_0x1c35d3,_0x3dd5a7)),_0x1da195;}}['markMultiRangeBlockFormat'](_0x50a1fb,_0x2e5ab0,_0x6fdc9e=[],_0x254db5=null,_0x30f11e={}){_0x2e5ab0['formatGroupId']||(_0x2e5ab0['formatGroupId']=_0x2e5ab0['commandName']);const _0x5945c3=_0x50a1fb[0x0];_0x2e5ab0['multipleBlocks']=_0x5945c3['is']('range'),_0x254db5=_0x254db5||Qt(_0x2e5ab0);const _0x13052d=_0x6fdc9e['map'](_0xc54367=>ie(_0xc54367,this['_model'])),_0x3728bc=_0x5945c3['is']('range')?_0x50a1fb:_0x50a1fb['map'](_0x1d6e6e=>ie(_0x1d6e6e,this['_model']));if(this['_trackingSessionId']&&(_0x30f11e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30e249=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x254db5,'accept');return this['forceDefaultExecution'](()=>_0x30e249(_0x3728bc,_0x2e5ab0,_0x30f11e)),null;}_0x13052d['push'](..._0x3728bc);let _0x546874=!0x0;for(const _0x3b724e of _0x13052d)if(!this['_rangeIsInLocalUserInsertion'](_0x3b724e)){_0x546874=!0x1;break;}if(_0x546874&&'always'!==this['_trackFormatChanges']){const _0x4fa96f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x254db5,'accept');return this['forceDefaultExecution'](()=>_0x4fa96f(_0x3728bc,_0x2e5ab0,_0x30f11e)),null;}const _0x655af8=this['editor']['plugins']['get']('Users')['me'];for(const _0x32c681 of this['getSuggestions']()){const _0x3661dd=_0x32c681['data'];if(_0x32c681['author']['id']!=_0x655af8['id'])continue;if('formatBlock'!=_0x32c681['type']||_0x3661dd['formatGroupId']!=_0x2e5ab0['formatGroupId'])continue;if(!oe(_0x32c681,_0x30f11e))continue;const _0x21ffe0=_0x32c681['subType']==_0x254db5;for(let _0x1d5553=0x0;_0x1d5553<_0x3728bc['length'];_0x1d5553++){const _0x215baa=_0x3728bc[_0x1d5553];for(const _0x10fe43 of _0x32c681['getMarkers']()){const _0x13af07=_0x10fe43['getRange']();if(_0x215baa['isEqual'](_0x13af07)){_0x21ffe0?(_0x3728bc['splice'](_0x1d5553,0x1),_0x1d5553--):_0x32c681['removeMarker'](_0x10fe43['name']);break;}}}}if(0x0==_0x3728bc['length'])return null;const _0x343781=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x254db5,'join');for(const _0x5837cd of this['getSuggestions']()){const _0x58f6ac=_0x5837cd['data'];if(_0x5837cd['author']['id']==_0x655af8['id']&&('formatBlock'==_0x5837cd['type']&&_0x58f6ac['formatGroupId']==_0x2e5ab0['formatGroupId']&&_0x5837cd['subType']==_0x254db5&&oe(_0x5837cd,_0x30f11e)&&(_0x343781(_0x5837cd['getRanges'](),_0x3728bc)||_0x343781(_0x3728bc,_0x5837cd['getRanges']())))){for(const _0x39f284 of _0x3728bc)_0x5837cd['addRange'](_0x39f284);return _0x5837cd;}}const _0x585107=_0x223174(),_0x564805=_0x655af8['id'],_0x12074a='formatBlock:'+_0x254db5,_0x1caae0=this['_setSuggestionData']({'id':_0x585107,'type':_0x12074a,'data':_0x2e5ab0,'createdAt':new Date(),'authorId':_0x564805,'attributes':_0x30f11e});for(const _0x46ab45 of _0x3728bc)this['_addSuggestionMarker'](_0x12074a,_0x585107,_0x564805,_0x46ab45,R['getMultiRangeId']());return _0x1caae0;}['markDeletion'](_0xe368b2,_0x1292a=null,_0x193918={}){if(_0xe368b2['isCollapsed'])return null;const _0xf0fc2d=this['editor']['plugins']['get']('Users')['me'],_0x3908dc=new _0x5e0301(_0xe368b2['start'],_0xe368b2['end']);this['_trackingSessionId']&&(_0x193918['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c2721,meta:_0x3ea1d2}of this['_findSuggestions'](_0x3908dc,'insertion'))if(_0x3ea1d2['isOwn']&&!_0x3ea1d2['isNextTo']){if(_0x2c2721['isMultiRange']){const _0x1f520f=_0x2c2721['getRanges']()['filter'](_0x25fe0e=>'$graveyard'!=_0x25fe0e['root']['rootName']);_0x1f520f['every'](_0xca7c05=>_0x3908dc['containsRange'](_0xca7c05,!0x0))&&_0x2c2721['discard']();if(_0x1f520f['some'](_0x15a554=>_0x15a554['containsRange'](_0x3908dc,!0x0))){const _0xacf482=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1292a,'accept');return this['forceDefaultExecution'](()=>_0xacf482([_0x3908dc],null,_0x193918)),null;}}else{const _0x4f4af5=_0x3908dc['getIntersection'](_0x2c2721['getFirstRange']());null!==_0x4f4af5&&_0x2c2721['_onDiscard']([_0x4f4af5],null,_0x193918);}}if(_0x3908dc['detach'](),_0x3908dc['isCollapsed']||'$graveyard'==_0x3908dc['root']['rootName'])return null;let _0x2c12aa=null,_0x5e1070=_0x3908dc['start'],_0x344cca=_0x3908dc['end'];const _0x382154=this['_findSuggestions'](_0x3908dc,'deletion');for(const {suggestion:_0x41ac21,meta:_0x41fa03}of _0x382154){const _0x383665=this['_model']['createRange'](_0x5e1070,_0x344cca);if(_0x41fa03['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41fa03['containsRangeInObject']&&!_0x41fa03['isInsideObject'])){if(_0x41ac21['isMultiRange']){if(!oe(_0x41ac21,_0x193918))continue;let _0x5bd498=!0x0;for(const _0x47a5b1 of _0x41ac21['getRanges']()){if(_0x47a5b1['containsRange'](_0x383665,!0x0))return _0x41ac21;_0x383665['containsRange'](_0x47a5b1)||(_0x5bd498=!0x1);}_0x5bd498&&_0x41ac21['discard']();}else{const _0x364b45=_0x41ac21['getFirstRange']();if(_0x364b45['containsRange'](_0x383665,!0x0))return _0x41ac21;if(!oe(_0x41ac21,_0x193918)){_0x383665['containsRange'](_0x364b45)?_0x41ac21['removeMarkers']():_0x364b45['containsPosition'](_0x5e1070)?_0x5e1070=_0x364b45['end']:_0x364b45['containsPosition'](_0x344cca)&&(_0x344cca=_0x364b45['start']);continue;}_0x5e1070=_0x5e1070['isBefore'](_0x364b45['start'])?_0x5e1070:_0x364b45['start'],_0x344cca=_0x344cca['isAfter'](_0x364b45['end'])?_0x344cca:_0x364b45['end'],_0x193918=Object['assign']({},_0x41ac21['attributes']),_0x2c12aa?_0x364b45['start']['isBefore'](_0x2c12aa['getFirstRange']()['start'])?(_0x2c12aa['removeMarkers'](),_0x2c12aa=_0x41ac21):_0x41ac21['removeMarkers']():_0x2c12aa=_0x41ac21;}}}if(_0x2c12aa)return this['_setSuggestionRange'](_0x2c12aa,this['_model']['createRange'](_0x5e1070,_0x344cca)),_0x2c12aa;{const _0x79eaaf=_0x223174(),_0x5e9d01=this['_model']['createRange'](_0x5e1070,_0x344cca),_0xa1607b=_0xf0fc2d['id'],_0x3fae5c=_0x1292a?'deletion:'+_0x1292a:'deletion',_0x18fb7e=this['_setSuggestionData']({'id':_0x79eaaf,'type':_0x3fae5c,'createdAt':new Date(),'authorId':_0xa1607b,'attributes':_0x193918});return this['_addSuggestionMarker'](_0x3fae5c,_0x79eaaf,_0xa1607b,_0x5e9d01),_0x18fb7e;}}['markMultiRangeDeletion'](_0x42f0a5,_0x1ded7a='multi',_0x4d9473={}){const _0x18beb7=this['editor']['plugins']['get']('Users')['me'],_0xc38262=_0x42f0a5['map'](_0x1ddc1=>new _0x5e0301(_0x1ddc1['start'],_0x1ddc1['end'])),_0x3c3ca2=new Set();this['_trackingSessionId']&&(_0x4d9473['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x55cd5c,meta:_0x4e1bd4}of this['_findSuggestions'](_0xc38262,'insertion'))_0x4e1bd4['isOwn']&&!_0x4e1bd4['isNextTo']&&_0x3c3ca2['add'](_0x55cd5c);for(const _0x4f7dac of _0x3c3ca2)if(_0x4f7dac['isMultiRange']){const _0x15347a=_0x4f7dac['getRanges']();(!_0x4f7dac['attributes']||!_0x4f7dac['attributes']['skipNestingCheck'])&&(_0x15347a['every'](_0x797123=>_0xc38262['some'](_0x2657ce=>_0x2657ce['containsRange'](_0x797123,!0x0)))&&_0x4f7dac['discard']());if(_0xc38262['every'](_0x1c2dfc=>_0x15347a['some'](_0x156378=>_0x156378['containsRange'](_0x1c2dfc,!0x0)))){const _0x372aac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ded7a,'accept');return this['forceDefaultExecution'](()=>_0x372aac(_0x42f0a5,null,_0x4d9473)),null;}}else{const _0x149037=_0x4f7dac['getFirstRange']();_0xc38262['some'](_0x2fb77b=>_0x2fb77b['containsRange'](_0x149037,!0x0))&&_0x4f7dac['discard']();if(_0xc38262['every'](_0x44c4c7=>_0x149037['containsRange'](_0x44c4c7,!0x0))){const _0x21c5e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ded7a,'accept');return this['forceDefaultExecution'](()=>_0x21c5e2(_0xc38262,null,_0x4d9473)),null;}}const _0x17bbf9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ded7a,'join');let _0x56136d=null;for(const _0x1ec265 of this['getSuggestions']())if(_0x1ec265['author']['id']==_0x18beb7['id']&&_0x1ec265['isInContent']&&'deletion'==_0x1ec265['type']&&_0x1ec265['subType']==_0x1ded7a&&oe(_0x1ec265,_0x4d9473)&&(_0x17bbf9(_0x1ec265['getRanges'](),_0xc38262)||_0x17bbf9(_0xc38262,_0x1ec265['getRanges']()))){if(_0x56136d){if(_0x1ec265['commentThread']&&_0x1ec265['commentThread']['length'])continue;for(const _0x2858d5 of _0x1ec265['getRanges']())_0x56136d['isIntersectingWithRange'](_0x2858d5)||_0x56136d['addRange'](_0x2858d5);_0x1ec265['removeMarkers']();}else{_0x56136d=_0x1ec265;for(const _0x5c9c50 of _0xc38262)_0x1ec265['isIntersectingWithRange'](_0x5c9c50)||_0x1ec265['addRange'](_0x5c9c50);}}if(_0x56136d)return _0x56136d;_0x3c3ca2['clear']();for(const {suggestion:_0xde5106,meta:_0x3a4011}of this['_findSuggestions'](_0xc38262,'deletion'))_0x3a4011['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a4011['containsRangeInObject']&&!_0x3a4011['isInsideObject'])&&oe(_0xde5106,_0x4d9473)&&_0x3c3ca2['add'](_0xde5106);for(const _0x238ba0 of _0x3c3ca2){const _0x5a4e43=_0x238ba0['getRanges']();if(!_0x4d9473||!_0x4d9473['skipNestingCheck']){if(_0xc38262['every'](_0x314dec=>_0x5a4e43['some'](_0x29bd48=>_0x29bd48['containsRange'](_0x314dec,!0x0))))return _0x238ba0;}(!_0x238ba0['attributes']||!_0x238ba0['attributes']['skipNestingCheck'])&&(_0x5a4e43['every'](_0x178c13=>_0xc38262['some'](_0x222968=>_0x222968['containsRange'](_0x178c13,!0x0)))&&_0x238ba0['discard']());}const _0x47eb29=_0x223174(),_0x43037e=_0x18beb7['id'],_0x480542='deletion:'+_0x1ded7a,_0xce9e9=this['_setSuggestionData']({'id':_0x47eb29,'type':_0x480542,'createdAt':new Date(),'authorId':_0x43037e,'attributes':_0x4d9473});for(const _0x145763 of _0xc38262)_0x145763['detach'](),_0x145763['isCollapsed']||'$graveyard'==_0x145763['root']['rootName']||this['_addSuggestionMarker'](_0x480542,_0x47eb29,_0x43037e,_0x145763,R['getMultiRangeId']());return _0xce9e9;}['markAttributeChange'](_0x1e0be3,_0x34eb88,_0xb40dd9,_0x428eb9,_0x1eddb6){if(_0x1e0be3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x9b84f7=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ae8c7=Array['from'](this['_suggestions']['values']())['filter'](_0x415405=>'attribute'==_0x415405['type']&&_0x415405['data']['key']==_0x34eb88&&_0x415405['isIntersectingWithRange'](_0x1e0be3));if(this['_trackingSessionId']&&(_0x1eddb6['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1e5f56=this['_findSuggestions'](_0x1e0be3,'insertion')['filter'](({meta:_0x55efad})=>_0x55efad['isOwn']&&!_0x55efad['isInsideObject']&&!_0x55efad['isNextTo'])['map'](({suggestion:_0x5a4820})=>_0x5a4820);_0x2ae8c7['unshift'](..._0x1e5f56);}const _0x1aedf1=new Map([[_0x1e0be3,_0xb40dd9]]);for(const _0x184c33 of _0x2ae8c7){const _0x3cabc7='attribute'==_0x184c33['type']?_0x184c33['data']['oldValue']:void 0x0,_0x1cb86c=_0x184c33['getFirstRange'](),_0x26f920=Array['from'](_0x1aedf1['keys']())['find'](_0x1a4319=>_0x1a4319['isIntersecting'](_0x1cb86c));if(!_0x26f920)continue;const _0x109502=_0x26f920['getDifference'](_0x1cb86c);this['_isBlockAttribute'](_0x34eb88)&&'insertion'==_0x184c33['type']&&0x0!=_0x109502['length']||(_0x1aedf1['delete'](_0x26f920),_0x109502['forEach'](_0x545af0=>{_0x1aedf1['set'](_0x545af0,_0xb40dd9);}),'insertion'!=_0x184c33['type']&&_0x3cabc7!=_0x428eb9&&_0x1aedf1['set'](_0x26f920['getIntersection'](_0x1cb86c),_0x3cabc7));}const _0xd76078=[];for(const [_0x52584d,_0x32e226]of _0x1aedf1){const _0x54f989=_0x223174(),_0x108cb1={'key':_0x34eb88,'oldValue':_0x32e226,'newValue':_0x428eb9};_0x34eb88['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':_0x34eb88});const _0xd64bd4=('attribute:'+(_0x34eb88+'|'+Qt({'newValue':_0x428eb9})))['substring'](0x0,0x3c),_0x460aea=this['_setSuggestionData']({'id':_0x54f989,'type':_0xd64bd4,'data':_0x108cb1,'createdAt':new Date(),'authorId':_0x9b84f7,'attributes':_0x1eddb6});_0xd76078['push'](_0x460aea),this['_addSuggestionMarker'](_0xd64bd4,_0x54f989,_0x9b84f7,_0x52584d);}return _0xd76078;}['enableDefaultAttributesIntegration'](_0x4ba57b){this['enableCommand'](_0x4ba57b,(_0x580b17,..._0x123967)=>{this['recordAttributeChanges'](()=>{_0x580b17(..._0x123967);});});}['registerBlockAttribute'](_0x382927){this['_blockAttributeKeys']['add'](_0x382927);}['registerInlineAttribute'](_0x5add95){this['_inlineAttributeKeys']['add'](_0x5add95);}['startTrackingSession'](_0x292bb3){return this['_trackingSessionId']=void 0x0!==_0x292bb3?_0x292bb3:_0x223174(),this['_trackingSessionId'];}['_getAttributeKey'](_0xdc26ef){return'attribute'==_0xdc26ef['type']?ae(_0xdc26ef['subType']):null;}['_applyOperationsAsSuggestions'](_0x3ccafe){if(0x0==_0x3ccafe['length'])return;const _0xecf13=this['editor'],_0x46d71b=_0xecf13['plugins']['get'](_0x4229fc);let _0x83765e,_0x630dc6=!0x0;for(const _0x3d92a7 in _0x3ccafe[0x0]){const _0x344965=_0x3ccafe[0x0][_0x3d92a7];if((_0x344965 instanceof _0x2c09c4||_0x344965 instanceof _0x219051)&&_0x344965['root']['is']('documentFragment')){_0x630dc6=!0x1,_0x83765e=_0x344965['root'];break;}}_0xecf13['model']['change'](_0x529c14=>{const _0x4e96dc=new Set();for(let _0x1cb28b=0x0;_0x1cb28b<_0x3ccafe['length'];_0x1cb28b++){const _0x9fcf8d=_0x3ccafe[_0x1cb28b];if(_0x9fcf8d['baseVersion']=_0x630dc6?_0xecf13['model']['document']['version']:null,_0x9fcf8d['isDocumentOperation']=_0x630dc6,_0x46d71b['isMarkedRemoveOperation'](_0x9fcf8d)){const _0x557733=te(_0x9fcf8d['newRange'],_0xecf13['model']);if(_0x630dc6)this['markDeletion'](_0x557733);else{const _0x3072d8='suggestion:deletion:'+_0x223174()+':$aiSuggestion';_0x83765e['markers']['set'](_0x3072d8,_0x557733);}}else switch(_0x9fcf8d['type']){case'rename':{const _0xc59a6=_0x9fcf8d['oldName'],_0x312ccf=_0x9fcf8d['newName'];if(_0xc59a6==_0x312ccf)break;_0x529c14['batch']['addOperation'](_0x9fcf8d),_0xecf13['model']['applyOperation'](_0x9fcf8d);const _0x36cb39='$elementName',_0x13f1f9=_0x9fcf8d['position'],_0x17cec0=_0xecf13['model']['createRange'](_0x13f1f9,_0xecf13['model']['createPositionAt'](_0x13f1f9['nodeAfter'],'end'));if(_0x630dc6)this['markAttributeChange'](_0x17cec0,_0x36cb39,_0xc59a6,_0x312ccf,{'groupId':_0x223174()});else{const _0x1aae1f='suggestion:attribute:'+_0x36cb39+':'+_0x223174()+':$aiSuggestion';_0x83765e['markers']['set'](_0x1aae1f,_0x17cec0);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x470a4d=_0x9fcf8d['oldValue'],_0x592ef7=_0x9fcf8d['newValue'];if(_0x470a4d==_0x592ef7)break;_0x529c14['batch']['addOperation'](_0x9fcf8d),_0xecf13['model']['applyOperation'](_0x9fcf8d);const _0x1f6082=_0x9fcf8d['key'];if(!this['_isRegisteredAttribute'](_0x1f6082))break;const _0x84cabd=te(_0x9fcf8d['range'],_0xecf13['model']);if(_0x630dc6)this['markAttributeChange'](_0x84cabd,_0x1f6082,_0x470a4d,_0x592ef7,{'groupId':_0x223174()});else{const _0x1347e5='suggestion:attribute:'+_0x1f6082+':'+_0x223174()+':$aiSuggestion';_0x83765e['markers']['set'](_0x1347e5,_0x84cabd);}break;}case'insert':{_0x529c14['batch']['addOperation'](_0x9fcf8d),_0xecf13['model']['applyOperation'](_0x9fcf8d);const _0x1d4832=_0x3ccafe[_0x1cb28b+0x1]&&'move'==_0x3ccafe[_0x1cb28b+0x1]['type'];if(!_0x630dc6&&_0x1d4832&&ce(_0x83765e,_0x9fcf8d),_0x1d4832)break;const _0x37e6b3=_0x9fcf8d['position'],_0x478784=_0x9fcf8d['howMany'],_0x3d29a4=te(_0xecf13['model']['createRange'](_0x37e6b3,_0x37e6b3['getShiftedBy'](_0x478784)),_0xecf13['model']);if(_0x630dc6)this['markInsertion'](_0x3d29a4);else{const _0x861783='suggestion:insertion:'+_0x223174()+':$aiSuggestion';_0x83765e['markers']['set'](_0x861783,_0x3d29a4);}break;}case'split':{_0x529c14['batch']['addOperation'](_0x9fcf8d),_0xecf13['model']['applyOperation'](_0x9fcf8d);const _0x583eea=_0x9fcf8d['splitPosition'],_0x561ffc=_0x9fcf8d['moveTargetPosition'],_0x3e5359=_0xecf13['model']['createRange'](_0x583eea,_0x561ffc);if(_0x630dc6)this['markInsertion'](_0xecf13['model']['createRange'](_0x583eea,_0x561ffc));else{const _0x54bdb5='suggestion:insertion:'+_0x223174()+':$aiSuggestion';_0x83765e['markers']['set'](_0x54bdb5,_0x3e5359);}break;}case'move':if(_0x529c14['batch']['addOperation'](_0x9fcf8d),_0xecf13['model']['applyOperation'](_0x9fcf8d),!_0x630dc6&&_0x3ccafe[_0x1cb28b-0x1]&&'insert'==_0x3ccafe[_0x1cb28b-0x1]['type']&&ce(_0x83765e,_0x9fcf8d),!_0x630dc6){const _0x384918=_0x9fcf8d['getMovedRangeStart'](),_0x5d5cfd=_0x9fcf8d['howMany'];for(let _0x4c2b99=0x0;_0x4c2b99<_0x5d5cfd;_0x4c2b99++){const _0x60b268=_0x384918['getShiftedBy'](_0x4c2b99)['nodeAfter'];_0x4e96dc['add'](_0x60b268);}}break;case'remove':if(_0x630dc6)_0x529c14['batch']['addOperation'](_0x9fcf8d),_0xecf13['model']['applyOperation'](_0x9fcf8d);else{const _0x37c4e7=_0x9fcf8d['sourcePosition'],_0x324689=_0x9fcf8d['howMany'],_0x57ddf0=new _0x54f967(_0x37c4e7,_0x324689);_0x529c14['batch']['addOperation'](_0x57ddf0),_0xecf13['model']['applyOperation'](_0x57ddf0);}}}for(const _0x2ed9b0 of _0x4e96dc){const _0x24a697=_0xecf13['model']['createRangeOn'](_0x2ed9b0),_0x47445f='suggestion:formatBlock:$fakeWrap:'+_0x223174()+':$aiSuggestion';_0x83765e['markers']['set'](_0x47445f,te(_0x24a697,_0xecf13['model']));}});}['_setSuggestionRange'](_0x229321,_0x133ad7){const _0x4c0551=_0x229321['getFirstMarker']();this['_model']['change'](_0x4a023c=>{_0x4a023c['updateMarker'](_0x4c0551,{'range':_0x133ad7});});}['_addThreadToSuggestion'](_0x4810af){const _0x3ce4c9=_0x4810af['id'],_0x48b3be=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3ce4c9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x48b3be,'threadId':_0x3ce4c9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x456175=this['_commentsRepository']['getCommentThread'](_0x3ce4c9);_0x456175['unbind']('isRemovable'),_0x456175['isRemovable']=!0x1,_0x4810af['commentThread']=_0x456175;}['_checkSuggestionCorrectness'](_0x4d7b89,_0x82604c,_0x21674f,_0x31c277){if(_0x4d7b89['type']!=_0x82604c||_0x4d7b89['subType']!=_0x21674f||_0x4d7b89['creator']['id']!=_0x31c277)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x28d8a7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x704e4c,_0x34d0b1){const _0x80b8d4=_0x704e4c['getFirstRange']();if(_0x34d0b1['isEqual'](_0x80b8d4))_0x704e4c['removeMarkers']();else{if(_0x80b8d4['containsRange'](_0x34d0b1)){const _0x18f420=this['_model']['createPositionAt'](_0x34d0b1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x704e4c,this['_model']['createRange'](_0x80b8d4['start'],_0x18f420));const _0x1d6dcc=_0x223174(),_0x1df02b=_0x704e4c['creator']['id'],_0x562e0d=_0x704e4c['type']+':'+_0x704e4c['subType'];this['_setSuggestionData']({'id':_0x1d6dcc,'type':_0x562e0d,'createdAt':new Date(),'authorId':_0x1df02b,'data':_0x704e4c['data'],'attributes':_0x704e4c['attributes']});const _0x37ba29=this['_model']['createPositionAt'](_0x34d0b1['end']['parent'],'after'),_0x125e30=this['_model']['createRange'](_0x37ba29,_0x80b8d4['end']);this['_addSuggestionMarker'](_0x562e0d,_0x1d6dcc,_0x1df02b,_0x125e30);}else{if(_0x80b8d4['containsPosition'](_0x34d0b1['start'])){const _0x2bc553=this['_model']['createPositionAt'](_0x34d0b1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x704e4c,this['_model']['createRange'](_0x80b8d4['start'],_0x2bc553));}else{const _0x295d0f=this['_model']['createPositionAt'](_0x34d0b1['end']['parent'],'after');this['_setSuggestionRange'](_0x704e4c,this['_model']['createRange'](_0x295d0f,_0x80b8d4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x155909){for(const {suggestion:_0x24305b,meta:_0x379aa3}of this['_findSuggestions'](_0x155909,'insertion')){if(!_0x379aa3['isOwn'])continue;const _0x5c37a3=_0x24305b['getRanges']();for(const _0x3dffbd of _0x5c37a3)if(!_0x155909['getDifference'](_0x3dffbd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x42b3bb){return this['editor']['plugins']['get']('Users')['getUser'](_0x42b3bb);}['_getExternalAuthor'](_0x3d364c){const _0x4fd70f=this['editor']['plugins']['get']('Users'),_0x52143d=_0x313a87('external:'+_0x3d364c),_0x5df83e=_0x4fd70f['getUser'](_0x52143d);return _0x5df83e||_0x4fd70f['addUser']({'id':_0x52143d,'name':_0x3d364c});}['_createSuggestion'](_0x38acdd,_0x45a0c0,_0x4b2ca3,_0x33f353,_0x1f3ed5,_0x243580){const _0x35845f=this['_getAuthorFromId'](_0x33f353);if(!_0x35845f)throw new _0x28d8a7('track-changes-user-not-found',this,{'authorId':_0x33f353,'suggestionId':_0x4b2ca3});const _0x5bc5af=this['_suggestionFactory']['buildSuggestion'](_0x38acdd,_0x45a0c0,_0x4b2ca3,_0x35845f,_0x1f3ed5,_0x2bf965=>{this['_updateSuggestionData'](_0x4b2ca3,{'attributes':_0x2bf965});const _0x35847c=this['getSuggestion'](_0x4b2ca3);this['_joinWithAdjacentSuggestions'](new Set([_0x35847c])),this['_refreshSuggestionsChain'](new Set([_0x35847c]));},_0x243580);return this['listenTo'](_0x5bc5af,'accept',()=>{this['_updateSuggestionData'](_0x4b2ca3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5bc5af,'discard',()=>{this['_updateSuggestionData'](_0x4b2ca3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b2ca3,_0x5bc5af),this['_suggestionState']['set'](_0x5bc5af,'notReady'),_0x5bc5af;}['_splitMarkerName'](_0x446206){const _0x2ee490=_0x446206['split'](':');return{'group':_0x2ee490[0x0],'type':_0x2ee490[0x1],'subType':_0x2ee490['length']>=0x5?_0x2ee490[0x2]:null,'id':_0x2ee490['length']<0x5?_0x2ee490[0x2]:_0x2ee490[0x3],'authorId':_0x2ee490['length']<0x5?_0x2ee490[0x3]:_0x2ee490[0x4],'markerCount':0x6==_0x2ee490['length']?_0x2ee490[0x5]:null};}['_breakSuggestionMarker'](_0x1ee140,_0x39044d,_0x6c8578){const _0x4f5f43=_0x1ee140['getFirstRange'](),_0xf91f5e=_0x4f5f43['start'],_0x255872=_0x4f5f43['end'];this['_setSuggestionRange'](_0x1ee140,this['_model']['createRange'](_0xf91f5e,_0x39044d));const _0x3c4865=_0x223174(),_0x4a68da=_0x1ee140['creator']['id'],_0x2d202a=_0x1ee140['type']+(_0x1ee140['subType']?':'+_0x1ee140['subType']:'');this['_setSuggestionData']({'id':_0x3c4865,'type':_0x2d202a,'createdAt':new Date(),'authorId':_0x4a68da,'originalSuggestionId':_0x1ee140['_originalSuggestionId']||_0x1ee140['id'],'attributes':_0x1ee140['attributes'],'data':_0x1ee140['data']});const _0x187c34=this['_getAttributeKey'](_0x1ee140);('formatBlock'==_0x1ee140['type']||_0x187c34&&this['_isBlockAttribute'](_0x187c34))&&(_0x6c8578=this['_model']['createPositionBefore'](_0x6c8578['parent'])),this['_addSuggestionMarker'](_0x2d202a,_0x3c4865,_0x4a68da,this['_model']['createRange'](_0x6c8578,_0x255872));}['_findSuggestions'](_0x17b821,_0x18f3f7=null){const _0x239054=[],_0x2d7283=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17b821)||(_0x17b821=[_0x17b821]);for(const _0x51fba3 of this['getSuggestions']()){if(!_0x51fba3['isInContent'])continue;if(_0x18f3f7&&_0x51fba3['type']!=_0x18f3f7)continue;let _0x7ded91=!0x1;for(const _0x1f21dc of _0x51fba3['getRanges']()){for(const _0x54a775 of _0x17b821){const _0x237711=_0x54a775['start']['isEqual'](_0x1f21dc['end'])||_0x54a775['end']['isEqual'](_0x1f21dc['start']);if(_0x237711||_0x54a775['getIntersection'](_0x1f21dc)){const _0x31175a=_0x54a775['containsRange'](_0x1f21dc)&&Ht(this['_model']['schema'],_0x1f21dc['start'],_0x54a775),_0x472d3f=_0x1f21dc['containsRange'](_0x54a775)&&Ht(this['_model']['schema'],_0x54a775['start'],_0x1f21dc);_0x239054['push']({'suggestion':_0x51fba3,'meta':{'isOwn':_0x2d7283==_0x51fba3['author'],'isNextTo':_0x237711,'isInsideObject':_0x31175a,'containsRangeInObject':_0x472d3f}}),_0x7ded91=!0x0;break;}}if(_0x7ded91)break;}}return _0x239054;}['_addSuggestionMarker'](_0x4b947e,_0x4494a1,_0x3d7c83,_0x50dcc1,_0x478c8c){this['_model']['change'](_0x1fa158=>{let _0x4c305b='suggestion:'+_0x4b947e+':'+_0x4494a1+':'+_0x3d7c83;_0x478c8c&&(_0x4c305b=_0x4c305b+':'+_0x478c8c),_0x1fa158['addMarker'](_0x4c305b,{'range':_0x50dcc1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3f754e){const _0x599f2b=_0x3f754e['previous'],_0x238bbf=_0x3f754e['next'];_0x3f754e['previous']=null,_0x3f754e['next']=null,null!=_0x599f2b&&_0x599f2b['next']==_0x3f754e&&(_0x599f2b['next']=_0x238bbf),null!=_0x238bbf&&_0x238bbf['previous']==_0x3f754e&&(_0x238bbf['previous']=_0x599f2b),'ready'==this['_suggestionState']['get'](_0x3f754e)&&(this['_suggestionState']['set'](_0x3f754e,'removed'),this['fire']('suggestionUnloaded',_0x3f754e,_0x599f2b,_0x238bbf));}['_setSuggestionData'](_0x629a14){const _0x2b105c=_0x629a14['id'],_0x46a0c1=this['addSuggestionData'](_0x629a14);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x14588f=this['editor']['plugins']['get']('PendingActions'),_0xed0772=_0x46a0c1['hasComments'],_0xa68504=_0x46a0c1['subType']?_0x46a0c1['type']+':'+_0x46a0c1['subType']:_0x46a0c1['type'],_0x2e05c1=this['editor']['locale'],_0x1a42d6=_0x14588f['add'](o(_0x2e05c1,'PENDING_ACTION_SUGGESTION')),_0x314c52={'id':_0x2b105c,'type':_0xa68504,'hasComments':_0xed0772,'data':_0x629a14['data']||null,'originalSuggestionId':_0x629a14['originalSuggestionId']||null,'attributes':_0x46a0c1['attributes']};this['_adapter']['addSuggestion'](_0x314c52)['then'](_0x3691c4=>{_0x46a0c1['_saved']=!0x0,_0x14588f['remove'](_0x1a42d6),_0x3691c4&&_0x3691c4['createdAt']&&(this['_suggestions']['get'](_0x2b105c)['createdAt']=_0x3691c4['createdAt']);})['catch'](_0x5decc1=>{throw _0x33f239('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x46a0c1['discard']();}),_0x46a0c1['stopListening'](),this['_suggestions']['delete'](_0x46a0c1['id']),this['_suggestionState']['delete'](_0x46a0c1),_0x5decc1;});}return _0x46a0c1;}['_isBlockAttribute'](_0x54c782){return this['_blockAttributeKeys']['has'](_0x54c782);}['_isInlineAttribute'](_0x24f86d){return this['_inlineAttributeKeys']['has'](_0x24f86d);}['_updateSuggestionData'](_0x2b1e81,_0x1d9311){const _0x542a83=this['editor']['plugins']['get']('PendingActions'),_0x3d916e=this['getSuggestion'](_0x2b1e81);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3d916e['_saved']){const _0xc70901=_0x542a83['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2b1e81,_0x1d9311)['then'](()=>{_0x542a83['remove'](_0xc70901);});}else _0x3d916e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2b1e81,_0x1d9311);});}}['_getSuggestionData'](_0x380cf6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x28d8a7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x380cf6);}['_handleNewSuggestionMarker'](_0x541f71){const {id:_0x444b51,type:_0x271a95,subType:_0x3ecc29,authorId:_0x59a53c}=this['_splitMarkerName'](_0x541f71),_0x28fb2d=this['_suggestions']['get'](_0x444b51)||this['_createSuggestion'](_0x271a95,_0x3ecc29,_0x444b51,_0x59a53c,{});switch(this['_checkSuggestionCorrectness'](_0x28fb2d,_0x271a95,_0x3ecc29,_0x59a53c),this['_suggestionState']['get'](_0x28fb2d)){case'notReady':this['_getSuggestionData'](_0x444b51)['then'](_0x1f6d48=>{let _0x5bc115=Promise['resolve']();_0x1f6d48['hasComments']&&(_0x5bc115=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x444b51})),_0x5bc115['then'](()=>{this['addSuggestionData'](_0x1f6d48)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x28fb2d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x444b51,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x28fb2d,'ready'),this['fire']('suggestionLoaded',_0x28fb2d);break;case'ready':this['fire']('suggestionChanged',_0x28fb2d);}return _0x28fb2d['addMarkerName'](_0x541f71),_0x28fb2d;}['_refreshSuggestionsChain'](_0xd6592d){const _0x7ddf8a=Array['from'](_0xd6592d),_0x23caa5=_0x7ddf8a['filter'](_0x2f87a5=>'attribute'==_0x2f87a5['type']);this['_refreshAttributeSuggestionsChain'](_0x23caa5);const _0x54a738=_0x7ddf8a['filter'](_0x13b80f=>!_0x13b80f['isMultiRange']&&'attribute'!=_0x13b80f['type']),_0x275355=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9c124d=>!_0x9c124d['isMultiRange']&&'attribute'!=_0x9c124d['type']),_0x15bb24=_0x275355['filter'](_0x5a9985=>!_0xd6592d['has'](_0x5a9985)),_0x463c31=new Map(_0x275355['map'](_0x482e03=>[_0x482e03,this['_suggestionFactory']['getSuggestionCallback'](_0x482e03['type'],_0x482e03['subType'],'chain')])),_0x1ad943=new Map(_0x275355['map'](_0xf2dd38=>[_0xf2dd38,_0xf2dd38['getFirstRange']()])),_0x259f89=new Set(),_0x363805=new Set();for(let _0x54c3cb=0x0;_0x54c3cb<_0x54a738['length'];_0x54c3cb++)_0xc033f8(_0x54a738[_0x54c3cb],_0x54a738,_0x54c3cb+0x1);for(let _0x4794fc=0x0;_0x4794fc<_0x54a738['length'];_0x4794fc++)_0xc033f8(_0x54a738[_0x4794fc],_0x15bb24,0x0);const _0xabd008=new Set();for(let _0xbcf84a=0x0;_0xbcf84a<_0x54a738['length'];_0xbcf84a++){const _0x52f016=_0x54a738[_0xbcf84a];!_0x363805['has'](_0x52f016)&&_0x52f016['previous']&&(_0xabd008['add'](_0x52f016['previous']),_0x52f016['previous']['next']===_0x52f016&&(_0x52f016['previous']['next']=null),_0x52f016['previous']=null),!_0x259f89['has'](_0x52f016)&&_0x52f016['next']&&(_0xabd008['add'](_0x52f016['next']),_0x52f016['next']['previous']===_0x52f016&&(_0x52f016['next']['previous']=null),_0x52f016['next']=null);}function _0xc033f8(_0x348010,_0xf8f8dd,_0x981c6c){for(let _0x5281a5=_0x981c6c;_0x5281a5<_0xf8f8dd['length'];_0x5281a5++){const _0x1f9409=_0x5751f5(_0x348010,_0xf8f8dd[_0x5281a5]);_0x1f9409&&(_0x1f9409[0x0]['next']=_0x1f9409[0x1],_0x1f9409[0x1]['previous']=_0x1f9409[0x0],_0x259f89['add'](_0x1f9409[0x0]),_0x363805['add'](_0x1f9409[0x1]));}}function _0x5751f5(_0x2f9585,_0x1dd85e){if(_0x2f9585['author']['id']!==_0x1dd85e['author']['id'])return null;const _0x507c4c=_0x463c31['get'](_0x2f9585)(_0x2f9585,_0x1dd85e,_0x1ad943['get'](_0x2f9585),_0x1ad943['get'](_0x1dd85e));if(!_0x507c4c)return null;return _0x463c31['get'](_0x1dd85e)(_0x2f9585,_0x1dd85e,_0x1ad943['get'](_0x2f9585),_0x1ad943['get'](_0x1dd85e))?_0x507c4c[0x1]['commentThread']&&_0x507c4c[0x1]['commentThread']['length']?null:_0x507c4c:null;}_0xabd008['size']&&this['_refreshSuggestionsChain'](_0xabd008);}['_refreshAttributeSuggestionsChain'](_0x32bad9){if(0x0==_0x32bad9['length'])return;const _0x1bbfa4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x278896=>'attribute'==_0x278896['type']&&_0x278896['_isDataLoaded']),_0x11ce58=[],_0x2b268a=new Map();for(const _0xfed346 of _0x1bbfa4){const _0x1f9c3c=_0x313a87(_0xfed346['attributes']);_0x2b268a['has'](_0x1f9c3c)||(_0x2b268a['set'](_0x1f9c3c,_0x11ce58['length']),_0x11ce58['push']([]));const _0x155034=_0x2b268a['get'](_0x1f9c3c);_0x11ce58[_0x155034]['push'](_0xfed346);}!(function(){_0x11ce58['sort']((_0x24cb22,_0x57c22a)=>{const _0x2db266=_0x24cb22[0x0]['createdAt'],_0x2ab236=_0x57c22a[0x0]['createdAt'];return _0x2db266==_0x2ab236?_0x24cb22[0x0]['attributes']['groupId']<_0x57c22a[0x0]['attributes']['groupId']?-0x1:0x1:_0x2db266<_0x2ab236?-0x1:0x1;});for(const _0xc0b75d of _0x11ce58)_0xc0b75d['sort']((_0x831d1f,_0x5a598e)=>_0x831d1f['id']<_0x5a598e['id']?-0x1:0x1);}());for(let _0x37bb64=0x0;_0x37bb64<_0x11ce58['length'];_0x37bb64++){if(0x0==_0x11ce58[_0x37bb64]['length'])continue;const _0x254566=[];for(let _0x48a266=_0x37bb64+0x1;_0x48a266<_0x11ce58['length'];_0x48a266++)0x0!=_0x11ce58[_0x48a266]['length']&&_0x2686e3(_0x11ce58[_0x37bb64],_0x11ce58[_0x48a266])&&_0x254566['push'](_0x48a266);for(const _0x1903a2 of _0x254566)_0x11ce58[_0x37bb64]=_0x11ce58[_0x37bb64]['concat'](_0x11ce58[_0x1903a2]),_0x11ce58[_0x1903a2]=[];}for(const _0x59d2da of _0x11ce58)for(let _0x483023=0x0;_0x483023<_0x59d2da['length'];_0x483023++){const _0x446d80=_0x59d2da[_0x483023+0x1]||null;_0x59d2da[_0x483023]['next']!==_0x446d80&&(_0x59d2da[_0x483023]['next']=_0x446d80);}for(const _0x509363 of _0x11ce58)for(let _0x23aed1=0x0;_0x23aed1<_0x509363['length'];_0x23aed1++){const _0x321dd2=_0x509363[_0x23aed1-0x1]||null;_0x509363[_0x23aed1]['previous']!==_0x321dd2&&(_0x509363[_0x23aed1]['previous']=_0x321dd2);}function _0x2686e3(_0x23b831,_0x383f5e){if(_0x23b831[0x0]['attributes']['groupId']!==_0x383f5e[0x0]['attributes']['groupId']&&_0x23b831[0x0]['author']!==_0x383f5e[0x0]['author'])return!0x1;if(!function(_0x1c716f,_0x198c28){if(!_0x1c716f['hasComments']&&!_0x198c28['hasComments'])return!0x0;if(_0x1c716f['hasComments']&&_0x198c28['hasComments'])return!0x1;if(_0x1c716f['hasComments']&&_0x198c28['createdAt']<_0x1c716f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x198c28['hasComments']&&_0x1c716f['createdAt']<_0x198c28['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x23b831[0x0],_0x383f5e[0x0]))return!0x1;const _0x20eacb=Kt(_0x23b831[0x0]['attributes'],['groupId','trackingSessionId']),_0x42ca96=Kt(_0x383f5e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x312e49(_0x20eacb,_0x42ca96))return!0x1;if(_0x23b831[0x0]['attributes']['groupId']==_0x383f5e[0x0]['attributes']['groupId'])return!0x0;if(_0x23b831[0x0]['attributes']['trackingSessionId']!==_0x383f5e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x23b831['every'](_0xc2f287=>_0x383f5e['some'](_0x447233=>_0xc2f287['getFirstRange']()['isEqual'](_0x447233['getFirstRange']())))&&_0x383f5e['every'](_0x5351e5=>_0x23b831['some'](_0x4ec00d=>_0x5351e5['getFirstRange']()['isEqual'](_0x4ec00d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2117a4){const _0x39d591=Array['from'](_0x2117a4),_0x59404a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2daaee=_0x59404a['filter'](_0x48c227=>!_0x2117a4['has'](_0x48c227)),_0x23f5fd=new Map(_0x39d591['map'](_0x26a3bf=>[_0x26a3bf,this['_suggestionFactory']['getSuggestionCallback'](_0x26a3bf['type'],_0x26a3bf['subType'],'join')])),_0x46a752=new Map(_0x59404a['map'](_0x39de7f=>[_0x39de7f,_0x39de7f['getRanges']()]));for(let _0x3ff9cb=0x0;_0x3ff9cb<_0x39d591['length'];_0x3ff9cb++){if(_0x2eae07(this,_0x39d591[_0x3ff9cb],_0x39d591,_0x3ff9cb+0x1))return!0x0;}for(let _0x5dd910=0x0;_0x5dd910<_0x39d591['length'];_0x5dd910++){if(_0x2eae07(this,_0x39d591[_0x5dd910],_0x2daaee,0x0))return!0x0;}return!0x1;function _0x2eae07(_0x19313f,_0x5f2060,_0x2f92b,_0xcdcc84){for(let _0x22331c=_0xcdcc84;_0x22331c<_0x2f92b['length'];_0x22331c++){const _0x5a224c=_0x2f92b[_0x22331c];if(_0x5a224c['type']!==_0x5f2060['type']||_0x5a224c['author']['id']!==_0x5f2060['author']['id']||_0x5a224c['subType']!==_0x5f2060['subType'])continue;if(!se(_0x5f2060,_0x5a224c))continue;if('attribute'==_0x5f2060['type']&&_0x5f2060['data']['oldValue']!=_0x5a224c['data']['oldValue'])continue;if('attribute'==_0x5f2060['type']&&_0x19313f['_isBlockAttribute'](_0x5f2060['data']['key']))continue;if('formatBlock'==_0x5f2060['type']){const _0x1e726b=_0x19313f['editor']['model'],_0x267387=_0x5f2060['getContainedElement']();if(_0x267387&&(_0x1e726b['schema']['isObject'](_0x267387)||_0x1e726b['schema']['isLimit'](_0x267387)))continue;}const _0x123002=_0x23f5fd['get'](_0x5f2060),_0x56c223=_0x46a752['get'](_0x5f2060),_0x44393c=_0x46a752['get'](_0x5a224c),_0x3cc21f=_0x5f2060['commentThread']&&_0x5f2060['commentThread']['length'],_0x511c7a=_0x5a224c['commentThread']&&_0x5a224c['commentThread']['length'];if(!_0x3cc21f&&_0x123002(_0x44393c,_0x56c223))return _0x19313f['_joinSuggestions'](_0x5a224c,_0x5f2060),_0x46a752['delete'](_0x5f2060),!0x0;if(!_0x511c7a&&_0x123002(_0x56c223,_0x44393c))return _0x19313f['_joinSuggestions'](_0x5f2060,_0x5a224c),_0x46a752['delete'](_0x5a224c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x439e13,_0x32f272){if(_0x439e13['isMultiRange']){for(const _0xda7f12 of _0x32f272['getRanges']())_0x439e13['addRange'](_0xda7f12);}else{const _0x2b728c=_0x32f272['getFirstRange']()['end'];this['_setSuggestionRange'](_0x439e13,this['_model']['createRange'](_0x439e13['getFirstRange']()['start'],_0x2b728c));}_0x32f272['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5bd8fd,_0x1a41e4,_0x282b2c){const _0x463025=_0x5bd8fd['startsWith']('format')||_0x5bd8fd['startsWith']('attribute')?'FORMATTING':_0x5bd8fd['toUpperCase']();return o(this['editor']['locale'],_0x1a41e4+'_'+_0x463025+'_SUGGESTION_ANNOUNCEMENT',_0x282b2c);}['_initAriaMarkerChangeAnnouncements'](){const _0x119a01=this['editor'];if(!_0x119a01['ui'])return;const {ariaLiveAnnouncer:_0x4a8c1d}=_0x119a01['ui'];_0x1b6d47(this['_model'],({left:_0xc8de5a,entered:_0x43b8ed})=>{for(const _0x2513e8 of _0xc8de5a){const {group:_0x1a5b95,type:_0x37f52d}=this['_splitMarkerName'](_0x2513e8['name']);if('suggestion'===_0x1a5b95){_0x4a8c1d['announce'](this['_getMarkerAnnouncementText'](_0x37f52d,'LEAVE'));break;}}for(const _0x449c7a of _0x43b8ed){const {group:_0x145f83,type:_0x61fd26}=this['_splitMarkerName'](_0x449c7a['name']);if('suggestion'===_0x145f83){_0x4a8c1d['announce'](this['_getMarkerAnnouncementText'](_0x61fd26,'ENTER',_0x39251a(_0x1e42fd)));break;}}});}['_processAttributeChanges'](_0x37103a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x9d9064=this['editor'],_0xdfecfc=_0x9d9064['model']['document']['differ']['getChanges']();if(0x0==_0xdfecfc['length'])return!0x1;const _0x21f45d=[],_0x5ceefd=_0xdfecfc['filter'](_0x571d59=>'attribute'==_0x571d59['type']),_0x4890d7=_0xdfecfc['filter'](_0x1566ce=>'insert'==_0x1566ce['type']&&'$text'!=_0x1566ce['name']),_0x646c4a=_0xdfecfc['filter'](_0x166d86=>'remove'==_0x166d86['type']&&'$text'!=_0x166d86['name']);for(const _0x296488 of _0x5ceefd)_0x21f45d['push']({'key':_0x296488['attributeKey'],'newValue':_0x296488['attributeNewValue'],'oldValue':_0x296488['attributeOldValue'],'range':ee(_0x296488['range'],_0x9d9064['model'])});for(const _0x13ac65 of _0x4890d7){const _0x2caffe=_0x646c4a['find'](_0x44e448=>_0x44e448['position']['isEqual'](_0x13ac65['position']));_0x2caffe&&_0x21f45d['push']({'key':m,'newValue':_0x13ac65['name'],'oldValue':_0x2caffe['name'],'range':_0x9d9064['model']['createRangeOn'](_0x13ac65['position']['nodeAfter'])});}return 0x0!=_0x21f45d['length']&&this['_reduceExistingSuggestions'](_0x37103a,_0x21f45d);}['_processAttributeSuggestions'](_0x3412fe){let _0x5ca080=!0x1;const _0x5b3a9f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29c6ef=>_0x29c6ef['data']['newRange']&&_0x29c6ef['name']['startsWith']('suggestion:attribute:'));for(const _0x2586fd of _0x5b3a9f){const {subType:_0x38c9a6,id:_0x5a4085}=this['_splitMarkerName'](_0x2586fd['name']),_0x1e38cc=_0x38c9a6['split']('|')[0x0];for(const _0x4d9403 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4d9403['id']!=_0x5a4085&&'attribute'==_0x4d9403['type']&&_0x4d9403['data']&&_0x4d9403['data']['key']==_0x1e38cc&&_0x4d9403['getFirstRange']()['isIntersecting'](_0x2586fd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4d9403,_0x2586fd['data']['newRange'],_0x3412fe),_0x5ca080=!0x0);}return _0x5ca080;}['recordAttributeChanges'](_0x4a8548){this['_recordAttributeSuggestions']=!0x0,_0x4a8548();}['_isRegisteredAttribute'](_0x24585c){const _0x573625=this['_isBlockAttribute'](_0x24585c),_0x21c163=this['_isInlineAttribute'](_0x24585c);return _0x573625||_0x21c163;}['_reduceExistingSuggestions'](_0x55c0f1,_0x4afde1){if(0x0==_0x4afde1['length'])return!0x1;let _0x5e8be8=!0x1;for(const _0x11a571 of _0x4afde1){const _0x52596e=this['_findSuggestions'](_0x11a571['range'],'attribute')['filter'](_0x13e681=>!_0x13e681['meta']['isNextTo'])['map'](_0x59543c=>_0x59543c['suggestion']),_0x53dcc7=_0x313a87({'newValue':_0x11a571['newValue']});_0x52596e['filter'](_0x5a430b=>{const [_0x176819,_0xa750dd]=_0x5a430b['subType']['split']('|');return _0x176819==_0x11a571['key']&&_0xa750dd!=_0x53dcc7;})['forEach'](_0x435b4b=>{this['_reduceSuggestionAttributeRange'](_0x435b4b,_0x11a571['range'],_0x55c0f1),_0x5e8be8=!0x0;});}return _0x5e8be8;}['_reduceSuggestionAttributeRange'](_0x1d6cfa,_0x22e1fe,_0x45d5d7){const _0x390dfc=_0x1d6cfa['getFirstRange']()['getDifference'](_0x22e1fe);0x0!==_0x390dfc['length']?0x1!==_0x390dfc['length']?this['_breakSuggestionMarker'](_0x1d6cfa,_0x22e1fe['start'],_0x22e1fe['end']):this['_setSuggestionRange'](_0x1d6cfa,_0x390dfc[0x0]):_0x45d5d7['removeMarker'](_0x1d6cfa['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1b49ec){this['_editor']=_0x1b49ec,this['_model']=_0x1b49ec['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b0cc3,_0x6b48fd,_0x55b1bb,_0x308113,_0x2f3aa6,_0x1bdce2,_0x135bd1){return new R(this['_model'],{'type':_0x5b0cc3,'subType':_0x6b48fd,'id':_0x55b1bb,'originalSuggestionId':_0x135bd1,'author':_0x308113,'creator':_0x308113,'attributes':_0x2f3aa6,'onAttributesChange':_0x1bdce2,'onAccept':(..._0x51f4fd)=>this['getSuggestionCallback'](_0x5b0cc3,_0x6b48fd,'accept')(..._0x51f4fd),'onDiscard':(..._0x3ec076)=>this['getSuggestionCallback'](_0x5b0cc3,_0x6b48fd,'discard')(..._0x3ec076)});}['registerCustomCallback'](_0x47f10d,_0x5b9ebf,_0x3ce6bf,_0x4167d4){const _0x1733d5=_0x47f10d+':'+_0x5b9ebf+':'+_0x3ce6bf;this['_customCallbacks']['set'](_0x1733d5,_0x4167d4);}['getSuggestionCallback'](_0x5650a4,_0x45f98a,_0x4e5c53){const _0x2ee8e3=_0x5650a4+':'+_0x45f98a+':'+_0x4e5c53;return this['_customCallbacks']['get'](_0x2ee8e3)||this['_defaultCallbacks']['get'](_0x5650a4+':'+_0x4e5c53);}['_registerDefaultCallbacks'](){const _0x3724a0=()=>!0x1,_0x4ccd3b=_0x26ae96=>{_0x26ae96['sort']((_0x10d809,_0x4c40f1)=>_0x10d809['start']['isBefore'](_0x4c40f1['start'])?0x1:-0x1),this['_model']['change'](_0x38e591=>{for(const _0x5b4003 of _0x26ae96){let _0x2f193f;_0x2f193f=_0x5b4003['end']['isAtEnd']&&_0x5b4003['end']['parent']==_0x5b4003['start']['nodeAfter']?_0x38e591['createSelection'](_0x5b4003['start']['nodeAfter'],'on'):_0x38e591['createSelection'](_0x5b4003),this['_model']['deleteContent'](_0x2f193f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x546167=(_0x57203c,_0x262dd4)=>{_0x262dd4&&this['_model']['change'](_0x44832f=>{const {commandName:_0xc7e03b,commandParams:_0x34f002=[]}=_0x262dd4,_0x4510a9=_0x57203c['map'](_0x3f1a76=>(Wt(_0x3f1a76)&&(_0x3f1a76=this['_model']['createRange'](_0x3f1a76['end'])),_0x3f1a76))['filter'](_0x24b741=>'$graveyard'!==_0x24b741['root']['rootName']);if(_0x4510a9['length']<0x1)return;const _0xd95154=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11d1ca=>_0x5e0301['fromRange'](_0x11d1ca));_0x44832f['setSelection'](_0x4510a9);for(const _0x525ad0 of this['_editor']['commands']['commands']())_0x525ad0['refresh']();_0x34f002['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc7e03b,..._0x34f002);const _0x30b818=_0xd95154['filter'](_0x2dc890=>'$graveyard'!=_0x2dc890['root']['rootName']);_0x30b818['length']>0x0&&_0x44832f['setSelection'](_0x30b818);for(const _0x4e7ee7 of _0xd95154)_0x4e7ee7['detach']();});},_0x4b5484=(_0x2352d0,_0x461788)=>0x1==_0x2352d0['length']&&0x1==_0x461788['length']&&_0x2352d0[0x0]['end']['isEqual'](_0x461788[0x0]['start']),_0x1c6c01=(_0x5763a7,_0x13d5db,_0x45e807,_0x4073e8)=>ne(_0x5763a7,_0x13d5db,_0x45e807,_0x4073e8)?[_0x5763a7,_0x13d5db]:ne(_0x13d5db,_0x5763a7,_0x4073e8,_0x45e807)?[_0x13d5db,_0x5763a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3724a0),this['_defaultCallbacks']['set']('insertion:discard',_0x4ccd3b),this['_defaultCallbacks']['set']('insertion:join',_0x4b5484),this['_defaultCallbacks']['set']('insertion:chain',_0x1c6c01),this['_defaultCallbacks']['set']('deletion:accept',_0x4ccd3b),this['_defaultCallbacks']['set']('deletion:discard',_0x3724a0),this['_defaultCallbacks']['set']('deletion:join',_0x4b5484),this['_defaultCallbacks']['set']('deletion:chain',_0x1c6c01),this['_defaultCallbacks']['set']('formatInline:accept',_0x546167),this['_defaultCallbacks']['set']('formatInline:discard',_0x3724a0),this['_defaultCallbacks']['set']('formatInline:join',_0x4b5484),this['_defaultCallbacks']['set']('formatInline:chain',_0x3724a0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x546167),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3724a0),this['_defaultCallbacks']['set']('formatBlock:join',_0x4b5484),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3724a0),this['_defaultCallbacks']['set']('attribute:accept',_0x3724a0),this['_defaultCallbacks']['set']('attribute:discard',(_0x4a6056,_0x1ffe1f)=>{if(!_0x1ffe1f)return;const _0x26c82f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xbd3a28=>{if(_0x1ffe1f['key']==m)for(const _0x366f06 of _0x4a6056){const _0x3d1fc8=_0x366f06['start']['nodeAfter'],_0x37ab0f=_0x1ffe1f['oldValue'];_0xbd3a28['rename'](_0x3d1fc8,_0x37ab0f);}else{if(_0x26c82f['_isBlockAttribute'](_0x1ffe1f['key'])){for(const _0xbf5461 of _0x4a6056)void 0x0!==_0x1ffe1f['oldValue']?_0xbd3a28['setAttribute'](_0x1ffe1f['key'],_0x1ffe1f['oldValue'],_0xbf5461['start']['nodeAfter']):_0xbd3a28['removeAttribute'](_0x1ffe1f['key'],_0xbf5461['start']['nodeAfter']);}else{for(const _0x3043b1 of _0x4a6056)_0x1ffe1f['oldValue']?_0xbd3a28['setAttribute'](_0x1ffe1f['key'],_0x1ffe1f['oldValue'],_0x3043b1):_0xbd3a28['removeAttribute'](_0x1ffe1f['key'],_0x3043b1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4b5484);}}function Ht(_0x1f14b3,_0x2ae42d,_0x42edee){for(const _0x16caa0 of _0x2ae42d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x16caa0['root']==_0x16caa0)return!0x1;if(!_0x42edee['containsItem'](_0x16caa0))return!0x1;if(_0x1f14b3['isObject'](_0x16caa0)||_0x1f14b3['isLimit'](_0x16caa0))return!0x0;}return!0x1;}function Wt(_0x192d0d){return _0x192d0d['end']['parent']==_0x192d0d['start']['nodeAfter']&&_0x192d0d['end']['isAtStart'];}function zt(_0x5466e7,_0x582055,_0x5cf17f,_0xc857c7){const _0x2b7c19=_0x383322=>!_0x383322['item']['is']('$textProxy')&&!_0xc857c7['isObject'](_0x383322['item']),_0x5194e8=_0x5466e7['start']['getLastMatchingPosition'](_0x2b7c19),_0x37a0ff=_0x5466e7['end']['getLastMatchingPosition'](_0x2b7c19,{'direction':'backward'});return(!_0x5466e7['start']['isEqual'](_0x5194e8)||!_0x5466e7['end']['isEqual'](_0x37a0ff))&&(_0x5194e8['isBefore'](_0x37a0ff)?_0x5cf17f['updateMarker'](_0x582055,{'range':_0x5cf17f['createRange'](_0x5194e8,_0x37a0ff)}):_0x5cf17f['removeMarker'](_0x582055),!0x0);}function Qt(_0x523899){return _0x313a87(_0x523899);}function Xt(_0x4fff50){const _0xb32bda=_0x4fff50['start']['nodeAfter'];return _0xb32bda&&_0xb32bda['is']('element');}function Yt(_0x22aef9){return Wt(_0x22aef9)||function(_0x32e3bb){return _0x32e3bb['start']['parent']==_0x32e3bb['end']['nodeBefore']&&_0x32e3bb['start']['isAtEnd'];}(_0x22aef9);}function Zt(_0xf83a06,_0x7fc7d0){try{const _0x59d227=_0xf83a06['getRange']();for(const _0x56a7a9 of _0x7fc7d0)if(_0xf83a06!==_0x56a7a9&&_0x59d227&&_0x59d227['isIntersecting'](_0x56a7a9['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x500ad8,_0x23a103){const _0x19cf27=_0x500ad8['end']['nodeBefore'];if(_0x19cf27&&_0x19cf27['is']('element')&&_0x23a103['schema']['isBlock'](_0x19cf27)&&!_0x23a103['schema']['isObject'](_0x19cf27)){const _0x16ab8e=_0x23a103['createPositionAt'](_0x19cf27,'end');return _0x23a103['createRange'](_0x500ad8['start'],_0x16ab8e);}return _0x500ad8;}function ee(_0x273fdc,_0x15083b){return null==_0x273fdc['end']['nodeBefore']&&_0x273fdc['end']['parent']==_0x273fdc['start']['nodeAfter']?ie(_0x273fdc['start']['nodeAfter'],_0x15083b):_0x273fdc;}function ie(_0x48caf9,_0xf1db8b){const _0x10524f=_0xf1db8b['schema']['isObject'](_0x48caf9)||_0xf1db8b['schema']['isSelectable'](_0x48caf9);return _0xf1db8b['createRange'](_0xf1db8b['createPositionAt'](_0x48caf9,'before'),_0x10524f?_0xf1db8b['createPositionAfter'](_0x48caf9):_0xf1db8b['createPositionAt'](_0x48caf9,'end'));}function ne(_0x5d947a,_0x2fd2f5,_0xa0301f,_0x144e38){return!!se(_0x5d947a,_0x2fd2f5)&&_0xa0301f['end']['isEqual'](_0x144e38['start']);}function se(_0x102722,_0x1c3e6f){if(!_0x102722['_isDataLoaded']||!_0x1c3e6f['_isDataLoaded'])return!0x1;const _0x2fbecf=new Set(Object['keys'](_0x102722['attributes'])),_0x2247f2=new Set(Object['keys'](_0x1c3e6f['attributes']));if(_0x2fbecf['delete']('groupId'),_0x2247f2['delete']('groupId'),0x0==_0x2fbecf['size']&&0x0==_0x2247f2['size'])return!0x0;if(_0x2fbecf['size']!=_0x2247f2['size'])return!0x1;const _0x411e7c={..._0x102722['attributes']},_0x575d11={..._0x1c3e6f['attributes']};return delete _0x411e7c['groupId'],delete _0x575d11['groupId'],JSON['stringify'](_0x411e7c)==JSON['stringify'](_0x575d11);}function oe(_0x4f57c4,_0x1148c4){const _0x338894=re(_0x4f57c4['attributes']),_0x18ee74=re(_0x1148c4);if(!_0x4f57c4['_isDataLoaded'])return!0x1;for(const _0x52d4e2 of Object['keys'](_0x18ee74))if(!_0x312e49(_0x338894[_0x52d4e2],_0x18ee74[_0x52d4e2]))return!0x1;return!0x0;}function re(_0x2c205c){const _0x1389a8=Object['assign']({},_0x2c205c);return delete _0x1389a8['skipNestingCheck'],delete _0x1389a8['tablePasteChainId'],_0x1389a8;}function ae(_0x4953eb){return _0x4953eb['split']('|')[0x0];}function ce(_0x229fd9,_0x5a76ac){for(const [_0x4dcd6d,_0x116965]of _0x229fd9['markers']){const _0x59004f=_0x219051['_createFromRanges'](_0x116965['getTransformedByOperation'](_0x5a76ac));_0x229fd9['markers']['set'](_0x4dcd6d,_0x59004f);}}class xe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x146c2f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2d2597,_0x588c33,_0x5ccf6f,_0x273f85){super(),this['model']=_0x588c33,this['view']=_0x5ccf6f,this['commentThreadController']=_0x273f85,this['_editor']=_0x2d2597,this['_acceptCommand']=_0x2d2597['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2d2597['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x22a824,_0x5955b3)=>_0x22a824||_0x5955b3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4856e0=>_0x4856e0&&this['_editor']['model']['canEditAt'](_0x588c33['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c0c47=>_0x3c0c47&&this['_editor']['model']['canEditAt'](_0x588c33['getRanges']())),this['_pendingAction']=null,_0x5ccf6f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5ccf6f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5ccf6f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5ccf6f,'change:isDirty',()=>{_0x5ccf6f['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 _0x5b8a95=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5b8a95);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x55d2c5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x43f83d,_0x5e873c,_0x18ce05,_0x3062ae){super(_0x43f83d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x454197(_0x43f83d,o(_0x43f83d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5e873c['authoredAt']),this['bind']('authoredAt')['to'](_0x5e873c),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',_0x5e873c,'authoredAt',this,'descriptionParts',(_0x4c0135,_0x332c99,_0x2239ac)=>{const _0x139bda=_0x2239ac['map'](_0x4ef80e=>ls(_0x4ef80e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4c0135-0x1,_0x5e873c['author']['name'],_0x332c99?_0x3062ae['formatDateTime'](_0x332c99):'',new DOMParser()['parseFromString'](_0x139bda,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4b1f7c(),this['focusTracker']=new _0x4595ab(),this['keystrokes']=new _0x2c32ed(),this['focusCycler']=new _0x319667({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c7f00=>_0x5c7f00['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5e873c,this['_localUser']=_0x18ce05,this['_config']=_0x3062ae,_0x3062ae['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3ebfe5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1026da}=this['_config'];this['commentsListView']=new _0x1026da(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',_0x4ab31f=>_0x4ab31f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x6a34e5,_0x55ee36)=>_0x6a34e5||!!_0x55ee36);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4a2393}=this['_config'],_0xacc0a2=new _0x4a2393(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x392c9b=_0xacc0a2['commentInputView'];return _0xacc0a2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x392c9b,'value',(_0x1c634f,_0x23fb32,_0xb55d6c)=>!!_0xb55d6c||_0x1c634f&&!_0x23fb32),_0x392c9b['on']('submit',(_0x5cf5d8,_0x1aafbd)=>{this['fire']('addComment',_0x1aafbd),_0x392c9b['editor']['setData']('');}),_0x392c9b['on']('cancel',()=>this['focus']()),_0x392c9b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xacc0a2;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2ea92f,_0x45807b,_0x4cb34a,_0x44c09e){super(_0x2ea92f,_0x45807b,_0x4cb34a,_0x44c09e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x29d5a1=>_0x29d5a1&&_0x29d5a1[0x0]?_0x29d5a1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5f131a,_0x413ad3)=>{let _0x150b25='';for(const _0x31269f of _0x5f131a)_0x150b25+='<p>'+ls(_0x31269f['content'],_0x31269f['color'])+'</p>';return _0x413ad3?_0x150b25:_0x99023b(_0x150b25,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x44c09e['SuggestionView'](_0x2ea92f,_0x45807b,{'formatDateTime':_0x44c09e['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 _0x23a1e7=this['bindTemplate'],_0x210ccc=[this['suggestionView']];return this['commentsListView']&&_0x210ccc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x210ccc['push'](this['commentThreadInputView']),_0x210ccc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x23a1e7['if']('isActive','ck-suggestion-wrapper--active'),_0x23a1e7['to']('type',_0x5c9f65=>'ck-suggestion-'+_0x5c9f65),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':_0x23a1e7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x210ccc};}['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 Ee extends _0x55d2c5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2c7a89,_0x5975ad,_0x2aaf3f){super(_0x2c7a89),this['_model']=_0x5975ad,this['_config']=_0x2aaf3f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5975ad),this['acceptButton']=this['_createButton'](o(_0x2c7a89,'Accept\x20suggestion'),_0x1a01b3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2c7a89,'Discard\x20suggestion'),_0x4cfe45,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x46ee51(_0x2c7a89,_0x5975ad['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b1f7c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4595ab(),this['keystrokes']=new _0x2c32ed(),this['focusCycler']=new _0x319667({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2290d0=>_0x2290d0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x16da8d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x16da8d['innerHTML']=this['description'],this['on']('change:description',(_0x5b3db5,_0x54b844,_0x56046b)=>{_0x16da8d['innerHTML']=_0x56046b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e5f8c=this['bindTemplate'],_0x78f0df=[{'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':_0x1e5f8c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e5f8c['to']('authoredAt',_0x1ee569=>this['_config']['formatDateTime'](_0x1ee569))}]}]},{'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']&&_0x78f0df['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':_0x78f0df}]};}['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'](_0x535256,_0x11be0e,_0x2212d2,_0x5eb52a,_0x4b760c){const _0x1b67e2=new _0x43a417(this['locale']);return _0x1b67e2['set']({'label':_0x535256,'icon':_0x11be0e,'tooltip':!0x0,'tooltipPosition':_0x4b760c}),_0x1b67e2['extendTemplate']({'attributes':{'class':_0x2212d2}}),_0x1b67e2['on']('execute',()=>{this['fire'](_0x5eb52a,this['_model']['id']);}),_0x1b67e2;}['_setupKeyboardNavigation'](){const _0x4b9c9b=this['element'];this['keystrokes']['listenTo'](_0x4b9c9b);for(const _0x50ff4f of this['focusables'])this['focusTracker']['add'](_0x50ff4f['element']),this['keystrokes']['listenTo'](_0x50ff4f['element']);this['keystrokes']['set']('enter',(_0x45b08b,_0x8bce46)=>{_0x4b9c9b===_0x45b08b['target']&&(this['focusCycler']['focusFirst'](),_0x8bce46());}),this['keystrokes']['set']('esc',(_0x26a047,_0x212d8f)=>{_0x4b9c9b!==_0x26a047['target']&&(this['focus'](),_0x212d8f());});}}class u extends _0x3425bc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x791977,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38a400){super(_0x38a400),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d8974=this['editor']['config'];_0x1d8974['define']('trackChanges.SuggestionThreadView',Ae),_0x1d8974['define']('trackChanges.SuggestionView',Ee),_0x1d8974['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d8974['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3c434c,_0x5dc5ba){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3c6c43,_0x585752]of this['_handleControllerBuffer']){const _0x1136cc=this['_suggestionToController']['has'](_0x3c6c43);_0x1136cc||_0x585752?_0x1136cc&&_0x585752&&this['_destroyController'](_0x3c6c43):this['_initializeController'](_0x3c6c43);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3c434c,_0x5dc5ba);}['init'](){const _0x5c71d0=this['editor'],_0xf7d562=_0x5c71d0['plugins']['get']('TrackChangesEditing'),_0x6cd21c=_0x5c71d0['plugins']['get']('Annotations'),_0x47eccf=_0x5c71d0['plugins']['get']('EditorAnnotations'),_0x569884=_0x5c71d0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x47eccf['addSourceCollector'](()=>{const _0x319fa9=[];for(const [_0x9bb6f9,_0x36a180]of Array['from'](this['_suggestionToController'])){const _0x28219e=_0x9bb6f9['getAllAdjacentSuggestions'](),_0x28c244=[];for(const _0xa3d451 of _0x28219e){if(!_0xa3d451['isInContent'])continue;if(_0xa3d451['isMultiRange']){_0x28c244['push'](..._0xa3d451['getRanges']());continue;}const _0x254777=_0xa3d451['getFirstRange']();if(_0x28c244['length']>0x0){const _0x2a05df=_0x28c244[0x0]['getJoined'](_0x254777);if(_0x2a05df){_0x28c244[0x0]=_0x2a05df;continue;}}_0x28c244['push'](_0x254777);}_0x319fa9['push']([_0x36a180['view'],_0x28c244]);}return _0x319fa9;}),this['listenTo'](_0xf7d562,'suggestionLoaded',(_0x36d898,_0x37f0df)=>{this['listenTo'](_0x37f0df,'change:previous',(_0x2f6e6a,_0x40aeb4,_0x38e697,_0x561829)=>{_0x37f0df['isInContent']&&(null==_0x38e697?(this['_updateController'](_0x561829['head']),this['_handleSuggestionControllerDelayed'](_0x37f0df,!0x1)):(this['_updateController'](_0x38e697['head']),null==_0x561829&&this['_handleSuggestionControllerDelayed'](_0x37f0df,!0x0)));}),null!==_0x37f0df['previous']?this['_updateController'](_0x37f0df['head']):this['_handleSuggestionControllerDelayed'](_0x37f0df,!0x1);}),this['listenTo'](_0xf7d562,'suggestionUnloaded',(_0x53d824,_0xdd21f3,_0x17799e)=>{this['stopListening'](_0xdd21f3,'change:previous'),this['_handleControllerBuffer']['delete'](_0xdd21f3),this['_suggestionToController']['has'](_0xdd21f3)&&this['_destroyController'](_0xdd21f3),_0x17799e&&this['_updateController'](_0x17799e['head']);}),this['listenTo'](_0xf7d562,'suggestionChanged',(_0x245db7,_0x5e3ac7)=>{this['_updateController'](_0x5e3ac7);}),this['listenTo'](_0x6cd21c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x569884,'addComment',(_0x55d742,{threadId:_0x5bc13c,isFromAdapter:_0x17c98f})=>{if(_0x17c98f||!_0xf7d562['hasSuggestion'](_0x5bc13c))return;const _0x32ba99=_0xf7d562['getSuggestion'](_0x5bc13c);this['_suggestionToController']['get'](_0x32ba99)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x397e33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15a8b3;for(const _0x5827e2 in _0x397e33){const _0x5a3332=_0x5827e2,_0x12410c=_0x397e33[_0x5a3332];if('trackChangesLicenseKeyValid'==_0x12410c||'trackChangesLicenseKeyInvalid'==_0x12410c||'trackChangesLicenseKeyExpired'==_0x12410c||'trackChangesLicenseKeyDomainLimit'==_0x12410c||'trackChangesLicenseKeyNotAllowed'==_0x12410c||'trackChangesLicenseKeyEvaluationLimit'==_0x12410c||'trackChangesLicenseKeyTrialLimit'==_0x12410c||'trackChangesLicenseKeyUsageLimit'==_0x12410c){delete _0x397e33[_0x5a3332],_0x15a8b3=_0x12410c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x15a8b3&&_0x397e33['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x15a8b3&&_0x397e33['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x15a8b3&&_0x397e33['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x15a8b3&&_0x397e33['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x15a8b3&&_0x397e33['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x15a8b3&&_0x397e33['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x15a8b3&&_0x397e33['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x347c82){const _0xc4ac58=this['_suggestionToController']['get'](_0x347c82);if(!_0xc4ac58)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xc4ac58['view'])||null;}['getSuggestionForAnnotation'](_0x3cb449){const _0x3eec12=this['_viewToController']['get'](_0x3cb449['innerView']);return _0x3eec12?_0x3eec12['model']:null;}['_refreshActiveMarkers'](){const _0x17cfda=this['editor']['plugins']['get']('Annotations'),_0x49eca4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2081be=Array['from'](_0x17cfda['activeAnnotations'],_0x5513de=>_0x5513de['innerView'])['filter'](_0x5d715a=>this['_viewToController']['has'](_0x5d715a)),_0xaabeea=[];for(const _0x4c04a9 of _0x2081be){const _0x38af47=this['_viewToController']['get'](_0x4c04a9)['model']['getAllAdjacentSuggestions']();_0xaabeea['push'](..._0x38af47['reduce']((_0x2af3f,_0x1a9a83)=>[..._0x2af3f,..._0x1a9a83['getMarkerNames']()],[]));}_0x49eca4['activeMarkers']=_0xaabeea;}['_addUIComponentsToFactory'](){const _0x374b41=this['editor'],_0x26aae3=_0x374b41['locale'],_0x489233=o(_0x26aae3,'Track\x20changes'),_0x45fcd5=new _0x6df0f3([{'type':'switchbutton','model':new _0x2ac707({'withText':!0x0,'isToggleable':!0x0,'label':_0x489233,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ac707({'withText':!0x0,'label':o(_0x26aae3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac707({'withText':!0x0,'label':o(_0x26aae3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac707({'withText':!0x0,'label':o(_0x26aae3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac707({'withText':!0x0,'label':o(_0x26aae3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x374b41['plugins']['has']('TrackChangesPreview')&&_0x45fcd5['addMany']([{'type':'separator'},{'type':'button','model':new _0x2ac707({'withText':!0x0,'label':o(_0x26aae3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5f4fb8 of _0x45fcd5)if(Ke(_0x5f4fb8)){const _0x3197dd=_0x374b41['commands']['get'](_0x5f4fb8['model']['commandName']);_0x5f4fb8['model']['bind']('isOn','isEnabled')['to'](_0x3197dd,'value','isEnabled');}_0x374b41['ui']['componentFactory']['add']('trackChanges',_0x38cc21=>this['_createToolbarButton'](_0x38cc21,_0x45fcd5,_0x489233)),_0x374b41['ui']['componentFactory']['add']('menuBar:trackChanges',_0x26e55f=>this['_createMenuBarMenu'](_0x26e55f,_0x45fcd5,_0x489233));}['_createToolbarButton'](_0x19739d,_0x15a0aa,_0x943e2a){const _0x4822c5=_0x1e57e3(_0x19739d,_0x39cd61),_0x1a90c0=this['editor']['commands']['get']('trackChanges');_0x4822c5['buttonView']['set']({'tooltip':_0x943e2a,'label':_0x943e2a,'icon':_0x54c776}),_0x4822c5['buttonView']['bind']('isOn')['to'](_0x1a90c0,'value'),_0x4822c5['buttonView']['on']('execute',()=>{_0x1a90c0['execute'](),this['editor']['editing']['view']['focus']();}),_0x150464(_0x4822c5,_0x15a0aa,{'role':'menu'});const _0x10a11d=[];for(const _0x5023ad of _0x15a0aa)Ke(_0x5023ad)&&_0x10a11d['push'](this['editor']['commands']['get'](_0x5023ad['model']['commandName']));const _0x35c15e=_0x4822c5['buttonView'];return _0x35c15e['actionView']['unbind']('isEnabled'),_0x35c15e['arrowView']['unbind']('isEnabled'),_0x35c15e['actionView']['bind']('isEnabled')['to'](_0x1a90c0,'isEnabled'),_0x35c15e['arrowView']['bind']('isEnabled')['toMany'](_0x10a11d,'isEnabled',(..._0x33273e)=>_0x33273e['some'](_0x32da02=>_0x32da02)),_0x4822c5['on']('execute',_0x58d1b4=>{this['editor']['execute'](_0x58d1b4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4822c5;}['_createMenuBarMenu'](_0x4cd192,_0x2dce96,_0x4ba5de){const _0x59d266=new _0x11ffbe(_0x4cd192),_0x1344c6=this['editor']['commands']['get']('trackChanges');_0x59d266['buttonView']['set']({'label':_0x4ba5de,'icon':_0x54c776});const _0x2500cf=new _0x49b63a(_0x4cd192);for(const _0x39d9a3 of _0x2dce96){if('separator'==_0x39d9a3['type']){_0x2500cf['items']['add'](new _0x48fe88(_0x4cd192));continue;}const _0x2e8923=new _0x3b74db(_0x4cd192,_0x59d266),_0x43879c=new _0x27bc61(_0x4cd192),_0x428b84=_0x39d9a3['model'];_0x43879c['bind'](...Object['keys'](_0x428b84))['to'](_0x428b84),_0x43879c['delegate']('execute')['to'](_0x59d266),_0x43879c['on']('execute',()=>{this['editor']['execute'](_0x428b84['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e8923['children']['add'](_0x43879c),_0x2500cf['items']['add'](_0x2e8923);}return _0x59d266['bind']('isEnabled')['to'](_0x1344c6,'isEnabled'),_0x59d266['panelView']['children']['add'](_0x2500cf),_0x59d266;}['_initializeController'](_0x5757f2){const _0x4aa595=this['editor'],_0x9ae8e6=_0x4aa595['config'],_0x2ca342=_0x4aa595['plugins']['get']('Annotations'),_0x1b78e0=_0x4aa595['plugins']['get']('CommentsRepository'),_0x28427e=_0x4aa595['plugins']['get']('EditorAnnotations'),_0xf21f9e=_0x4aa595['plugins']['get'](_0x791977)['me'],_0x274c0c=_0x9ae8e6['get']('trackChanges')['SuggestionThreadView'],_0x180b6f=_0x9ae8e6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a3af4,CommentThreadInputView:_0x166e7c}=_0x4aa595['plugins']['get']('CommentsUI');let _0x169a77,_0x267f34,_0x52ba3c;this['_annotationViews']['has'](_0x5757f2['id'])?(_0x267f34=this['_annotationViews']['get'](_0x5757f2['id']),_0x169a77=_0x267f34['mainView']):(_0x169a77=new _0x274c0c(_0x4aa595['locale'],_0x5757f2,_0xf21f9e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9ae8e6['get']('comments.editorConfig'),'licenseKey':_0x9ae8e6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9ae8e6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9ae8e6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9ae8e6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x222904(_0x9ae8e6['get']('locale'),_0x4aa595['locale']),'CommentView':_0x9ae8e6['get']('comments')['CommentView'],'CommentsListView':_0x2a3af4,'CommentThreadInputView':_0x166e7c,'SuggestionView':_0x180b6f}),_0x169a77['suggestionView']['acceptButton']['on']('execute',()=>{_0x4aa595['editing']['view']['focus']();}),_0x169a77['suggestionView']['discardButton']['on']('execute',()=>{_0x4aa595['editing']['view']['focus']();}),_0x267f34=_0x2ca342['createAnnotationView'](this['editor']['locale'],_0x169a77),_0x267f34['bind']('isDirty')['to'](_0x169a77,'isDirty'),_0x267f34['bind']('length')['to'](_0x169a77),_0x267f34['bind']('type')['to'](_0x169a77,'type',_0x172c05=>'suggestion-'+_0x172c05),_0x169a77['on']('escape',()=>{_0x52ba3c['fire']('escape');}),this['_annotationViews']['set'](_0x5757f2['id'],_0x267f34));const _0x3188c7=_0x1b78e0['createCommentThreadController'](_0x5757f2['commentThread'],_0x169a77),_0x1c2a84=new xe(_0x4aa595,_0x5757f2,_0x169a77,_0x3188c7),_0x12a255=_0x5757f2['getAllAdjacentSuggestions']()['filter'](_0x5e24fc=>_0x5e24fc['isInContent']);_0x169a77['descriptionParts']=_0x4aa595['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x12a255),this['_suggestionToController']['set'](_0x5757f2,_0x1c2a84),this['_viewToController']['set'](_0x169a77,_0x1c2a84);const _0x4370e2=()=>{const _0x77a634=[],_0x30e859=_0x5757f2['getAllAdjacentSuggestions']()['filter'](_0x4d329a=>_0x4d329a['isInContent']);for(const _0xc3363a of _0x30e859)_0x77a634['push'](..._0xc3363a['getMarkers']());return _0x1c82aa(_0x4aa595['editing'],_0x77a634);};_0x52ba3c=_0x2ca342['createAnnotation']({'view':_0x267f34,'target':_0x4370e2,'type':()=>'suggestion-'+_0x1c2a84['view']['type'],'isVisible':!!_0x4370e2()}),_0x1b78e0['_bindAnnotationToEditors'](_0x169a77,_0x52ba3c),_0x2ca342['add'](_0x52ba3c),_0x28427e['registerAnnotation'](_0x52ba3c);}['_destroyController'](_0x2b6748){const _0x13d453=this['editor']['plugins']['get']('CommentsRepository'),_0x49cbba=this['editor']['plugins']['get']('Annotations'),_0x5c0dba=this['_suggestionToController']['get'](_0x2b6748),_0x3e24a0=_0x5c0dba['view'],_0x504f8c=_0x49cbba['getByInnerView'](_0x3e24a0);_0x13d453['_unbindEditors'](_0x3e24a0),_0x504f8c&&_0x49cbba['remove'](_0x504f8c),this['_suggestionToController']['delete'](_0x2b6748),this['_viewToController']['delete'](_0x3e24a0),_0x5c0dba['destroy']();}['_updateController'](_0x13816c){if(!_0x13816c['isInContent']||!this['_suggestionToController']['has'](_0x13816c))return;const _0x241e11=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17ebb8=this['_suggestionToController']['get'](_0x13816c),_0x486a40=_0x13816c['getAllAdjacentSuggestions']();_0x17ebb8['view']['descriptionParts']=_0x241e11['descriptionFactory']['getDescriptions'](_0x486a40);}['destroy'](){for(const _0xae0ea0 of this['_suggestionToController']['keys']())this['_destroyController'](_0xae0ea0);for(const _0x4d32b1 of this['_annotationViews']['values']())_0x4d32b1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x29f01f){return'model'in _0x29f01f;}class Xe extends _0x3425bc{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5883a6){this['editor']['plugins']['get'](d)['adapter']=_0x5883a6;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x5becb5){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x5becb5);}['getSuggestions']({skipNotAttached:_0x417139=!0x1,toJSON:_0x45df29=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x417139,'toJSON':_0x45df29});}['getSuggestion'](_0x3dbceb){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3dbceb);}}const p=['Pagination'];class ue extends _0x3425bc{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3ae518=this['editor'];if(_0x3ae518['config']['define']('trackChangesData.editorCreator',_0x440b84=>{const _0x5c02cb=_0x3ae518['model']['document']['getRootNames']()['reduce']((_0x223368,_0x176761)=>(_0x223368[_0x176761]='',_0x223368),{});return _0x3ae518['constructor']['create'](_0x5c02cb,_0x440b84);}),'function'!=typeof _0x3ae518['config']['get']('trackChangesData')['editorCreator'])throw new _0x28d8a7('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x185717){return P(this['editor'],!0x0,_0x185717);}['getDataWithDiscardedSuggestions'](_0x30f4bb){return P(this['editor'],!0x1,_0x30f4bb);}}class Ye extends _0x3425bc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f5857){function _0x4bf782(_0x54349d){return _0x54349d['map'](_0x5329c3=>String['fromCharCode'](_0x5329c3))['join']('');}super(_0x3f5857),this['result']='end',_0x3f5857[_0x4bf782([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bf782([0x76,0x69,0x65,0x77])][_0x4bf782([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bf782([0x61,0x75,0x74,0x6f]),_0x3f5857[_0x4bf782([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4bf782([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bf782([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4bf782([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4bf782([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 Qe(_0x1ecaa2){return void 0x0!==_0x1ecaa2['getRootsAttributes'];}async function P(_0x8d6ad9,_0x8fa62d,_0x4a168d){const _0xc76037=_0x1e30f3(_0x8d6ad9,p);_0xc76037['plugins']['push'](d,Ye),_0xc76037['rootsAttributes']=Qe(_0x8d6ad9)?_0x8d6ad9['getRootsAttributes']():void 0x0;const _0x5870a7=document['createDocumentFragment'](),_0x454178=_0x8d6ad9['config']['get']('trackChangesData')['editorCreator'],_0x54def8=await _0x454178(_0xc76037,()=>function(_0x1e1abc){const _0x204241=document['createElement']('div');return _0x1e1abc['appendChild'](_0x204241),_0x204241;}(_0x5870a7));!function(_0x1850b5,_0x179b1e){const _0x5ac490=_0x1850b5['model']['document']['getRootNames']()['reduce']((_0x59f247,_0x4e8921)=>(_0x59f247[_0x4e8921]=_0x1850b5['data']['get']({'rootName':_0x4e8921}),_0x59f247),{}),_0x15b5b6=_0x1850b5['plugins']['get']('Users')['users']['map'](_0x69c96c=>({'id':_0x69c96c['id'],'name':_0x69c96c['name']})),_0x2ac996=_0x1850b5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x302ba5=_0x1850b5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52d949=_0x179b1e['plugins']['get']('Users'),_0x1cd838=_0x179b1e['plugins']['get']('TrackChangesEditing'),_0x2208ac=_0x179b1e['plugins']['get']('CommentsRepository');for(const _0x5c704e of _0x2208ac['getCommentThreads']())_0x5c704e['remove']();for(const _0x51f3cb of _0x15b5b6)_0x52d949['getUser'](_0x51f3cb['id'])||_0x52d949['addUser'](_0x51f3cb);_0x52d949['me']||_0x52d949['useAnonymousUser']();for(const _0x281f2c of _0x302ba5)_0x2208ac['addCommentThread'](_0x281f2c);for(const _0x2fd34d of _0x2ac996)_0x1cd838['addSuggestionData'](_0x2fd34d);_0x179b1e['data']['set'](_0x5ac490);}(_0x8d6ad9,_0x54def8),_0x54def8['execute'](_0x8fa62d?'acceptAllSuggestions':'discardAllSuggestions');const _0x4b9c29=Qe(_0x54def8)?_0x54def8['getFullData'](_0x4a168d):_0x54def8['data']['get'](_0x4a168d);return await _0x54def8['destroy'](),_0x4b9c29;}class _e extends _0x55d2c5{['options'];constructor(_0x3e2807,_0x5641b7){super(_0x3e2807),this['options']=_0x5641b7,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'](_0x163e84,_0x5775b3){if(!this['element'])return;const _0x2833be=[];for(const [_0x22d245,_0x4b7515]of _0x163e84){const _0x470b8e=document['createElement']('div');_0x470b8e['setAttribute']('data-ck-root-name',_0x22d245),_0x470b8e['className']=_0x4b7515['classes']+'\x20ck-track-changes-preview__root-container',_0x470b8e['innerHTML']=_0x4b7515['content'],_0x2833be['push'](_0x470b8e);}_0x5775b3(this['element'],_0x2833be),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x567980{constructor(_0x27438c){super(_0x27438c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x166136=this['editor'],_0x2c3f75=_0x166136['locale'],_0x4656ca=_0x166136['plugins']['get']('Dialog');let _0x3cfcab;const _0x382b1d=function(_0x35fe66){const _0x146c58={};if('editables'in _0x35fe66['ui']['view']){for(const [_0x289787,_0xa99a94]of Object['entries'](_0x35fe66['ui']['view']['editables']))_0x146c58[_0x289787]=_0xa99a94['element'];}else _0x146c58[_0x35fe66['model']['document']['getRootNames']()[0x0]]=_0x35fe66['ui']['view']['editable']['element'];return _0x146c58;}(_0x166136),_0x43995e=function(_0x5a4ca7){let _0x25df42=0x0;for(const _0x1dde2d of Object['values'](_0x5a4ca7))_0x25df42=Math['max'](_0x25df42,_0x1dde2d['getBoundingClientRect']()['width']);let _0x5ab90c=0x0;for(const _0x9f7ddf of Object['values'](_0x5a4ca7))_0x5ab90c+=_0x9f7ddf['getBoundingClientRect']()['height'];const _0x2942a8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3c5b68=Math['min'](_0x5ab90c,_0x2942a8);return{'width':_0x25df42,'height':_0x3c5b68};}(_0x382b1d);_0x4656ca['show']({'id':'finalContentPreview','title':o(_0x2c3f75,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x2c3f75,{'dialogRects':_0x43995e}),'onHide':()=>{_0x3cfcab['detachFromDom']();},'onShow':()=>{_0x166136['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x49b3a2=>{const _0x130b4b=this['_standarizeRootsData'](_0x49b3a2,_0x166136,_0x382b1d);_0x4656ca['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x130b4b,_0x166136['config']['get']('trackChanges.preview.renderFunction'));}),_0x3cfcab=new _0x18646a(_0x2c3f75,[_0x4656ca['view']]),_0x3cfcab['attachToDom'](),_0x3cfcab['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x166136['once']('destroy',()=>{_0x3cfcab['detachFromDom']();});const _0x430e20=_0x4656ca['view']['headerView']['class'];_0x4656ca['view']['headerView']['class']=_0x430e20?_0x430e20+'\x20ck-reset_all':'ck-reset_all',_0x4656ca['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4656ca['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xa0ccee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x52a113=_0xa0ccee['previewMode'],_0x43b5f9={};if('$labels'===_0x52a113){for(const _0xae5ad8 of _0xa0ccee['getMergeFieldsIds']())_0x43b5f9[_0xae5ad8]=_0xa0ccee['getLabel'](_0xae5ad8)||_0xae5ad8;}else{const _0x404f17='$defaultValues'===_0x52a113?_0xa0ccee['getDefaultValues']():_0xa0ccee['getDataSetValues'](_0x52a113,!0x0);for(const _0xbe100f of Object['entries'](_0x404f17)){const [_0x476a41,_0x17bed1]=_0xbe100f;_0x43b5f9[_0x476a41]=null!==_0x17bed1?_0x17bed1:_0xa0ccee['getLabel'](_0x476a41)||_0x476a41;}}return{'mergeFieldsData':_0x43b5f9};}['_standarizeRootsData'](_0xe7bef4,_0x126ef5,_0x3c58d2){let _0x5bcc7b;if('string'==typeof _0xe7bef4){const _0x3fffd2=_0x126ef5['model']['document']['getRootNames']()[0x0];_0x5bcc7b={[_0x3fffd2]:_0xe7bef4};}else _0x5bcc7b=_0xe7bef4;const _0x2287fa=this['_fixMediaEmbeds'](_0x5bcc7b,_0x126ef5),_0x29cb45=function(_0x5a704c,_0x4310a9){for(const [_0x5037d7,_0x236d72]of _0x5a704c)_0x236d72['classes']=_0x4310a9[_0x5037d7]['classList']['value']['replace']('ck-focused','');return _0x5a704c;}(this['_sortRoots'](_0x126ef5)['reduce']((_0x36f86b,_0x428986)=>(_0x36f86b['push']([_0x428986,{'content':_0x2287fa[_0x428986],'classes':''}]),_0x36f86b),[]),_0x3c58d2);return _0x29cb45;}['_fixMediaEmbeds'](_0x28fa5e,_0x59fba8){if(!_0x59fba8['plugins']['has']('MediaEmbedEditing'))return _0x28fa5e;const _0x7381f3=_0x59fba8['plugins']['get']('MediaEmbedEditing');for(const [_0x41643f,_0x4a36d9]of Object['entries'](_0x28fa5e)){const _0x491a22=document['createElement']('div');_0x491a22['innerHTML']=_0x4a36d9,(_0x491a22['querySelectorAll']('figure.media')['forEach'](_0x4b2909=>{const _0x37375b=_0x4b2909['querySelector']('oembed');if(_0x37375b){const _0x4f3806=_0x37375b['getAttribute']('url');if(_0x4f3806){const _0x53d5bd=_0x7381f3['registry']['getMediaViewElement'](new _0x45d324(_0x59fba8['editing']['view']['document']),_0x4f3806,{'elementName':'','renderForEditingView':!0x0}),_0x53858d=document['createElement']('div');_0x53858d['classList']['add']('ck-media__wrapper'),_0x53d5bd['render'](_0x53858d,_0x59fba8['editing']['view']['domConverter']),_0x37375b['replaceWith'](_0x53858d);}}}),_0x28fa5e[_0x41643f]=_0x491a22['innerHTML']);}return _0x28fa5e;}['_sortRoots'](_0x13e3b9){if(!function(_0x282115){return void 0x0!==_0x282115['getRootsAttributes'];}(_0x13e3b9))return _0x13e3b9['model']['document']['getRootNames']();const _0xab6ab7=[],_0x338e7d=new Map();for(const _0x46e471 of _0x13e3b9['model']['document']['getRootNames']()){const _0x3f5d7a=_0x13e3b9['editing']['view']['getDomRoot'](_0x46e471)['getClientRects']()['item'](0x0);_0xab6ab7['push'](_0x46e471),_0x338e7d['set'](_0x46e471,_0x3f5d7a);}return _0xab6ab7['sort']((_0x586f4c,_0x16c29a)=>{const _0x4666cf=_0x338e7d['get'](_0x586f4c),_0x653fcb=_0x338e7d['get'](_0x16c29a);return _0x4666cf['y']-_0x653fcb['y']||_0x4666cf['x']-_0x653fcb['x'];}),_0xab6ab7;}}class Ze extends _0x3425bc{static get['requires'](){return[ue,_0x3bb823];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x134b1f){super(_0x134b1f),_0x134b1f['commands']['add']('previewFinalContent',new ge(this['editor'])),_0x134b1f['config']['define']('trackChanges.preview.renderFunction',(_0x433987,_0x178d6e)=>{for(const _0xfb8da3 of _0x178d6e)_0x433987['appendChild'](_0xfb8da3);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x103e31,Plugin as _0x438b1d,PendingActions as _0x5216c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x580921,ObservableMixin as _0x3ac295,uid as _0x47bc50,priorities as _0x231707,insertToPriorityArray as _0x4249ac,toArray as _0x55e9bc,logWarning as _0x5d4aa7,getEnvKeystrokeText as _0x213543,FocusTracker as _0x532182,KeystrokeHandler as _0x44c976,Collection as _0x4fc936}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x12b8af,IconCancel as _0x56632e,IconTrackChanges as _0x4b3a00}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x9b5773,View as _0x4df321,ViewCollection as _0x44595e,FocusCycler as _0x4734ea,UIModel as _0x3100f4,createDropdown as _0xde8884,SplitButtonView as _0xf7ebe8,addListToDropdown as _0x39485b,MenuBarMenuView as _0x6a265f,MenuBarMenuListView as _0x136d71,ListSeparatorView as _0x3562c7,MenuBarMenuListItemView as _0x33c443,MenuBarMenuListItemButtonView as _0x267f47,BodyCollection as _0x44694a,Dialog as _0xd260a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x29a3ab,DocumentCompare as _0x3513c7,hashObject as _0x417427,surroundingMarkersDetector as _0x34c0c1,FOCUS_ANNOTATION_KEYSTROKE as _0x2cc6ac,AriaDescriptionView as _0x5dd30a,setupThreadKeyboardNavigation as _0x47b40c,trimHtml as _0x8ed697,UserView as _0xeb610e,LateFocusButtonView as _0x5bbb9a,getDateTimeFormatter as _0x4abe49,getAllMarkersDomElementsSorted as _0x2ef4eb,sanitizeEditorConfig as _0x388b8e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x483d14,ModelLiveRange as _0x41f621,ModelLivePosition as _0x47d78f,ModelPosition as _0x3bb6ba,ModelRange as _0x5b8305,_DetachOperation as _0x1ea8fd,ViewDowncastWriter as _0x41898b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ff4d6,toWidget as _0x1764d5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x51dc83,set as _0x28b4cb,isEqual as _0x537817,unset as _0x3e2d80,omit as Kt}from'es-toolkit/compat';import{Delete as _0x2e520c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4ce41d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x298a17}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x103e31{['_enabledCommands'];constructor(_0x56d090,_0x42514f){super(_0x56d090),this['_enabledCommands']=_0x42514f,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 _0x3678ef of this['editor']['commands']['commands']())_0x3678ef['affectsData']&&!this['_enabledCommands']['has'](_0x3678ef)&&_0x3678ef['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5245a3 of this['editor']['commands']['commands']())_0x5245a3['affectsData']&&!this['_enabledCommands']['has'](_0x5245a3)&&_0x5245a3['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x103e31{['_suggestions'];constructor(_0x5062f9,_0x33186f){super(_0x5062f9),this['_suggestions']=_0x33186f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x559344){const _0x28d96e=this['_suggestions']['get'](_0x559344);if(!_0x28d96e)throw new _0x580921('track-changes-accept-suggestion-not-found',this);const _0x23afec=_0x28d96e['getRanges']();this['editor']['model']['canEditAt'](_0x23afec)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x28d96e);}}class O extends _0x103e31{['_suggestions'];constructor(_0x176c25,_0xd45f90){super(_0x176c25),this['_suggestions']=_0xd45f90,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4c45bd){const _0x3274fc=this['_suggestions']['get'](_0x4c45bd);if(!_0x3274fc)throw new _0x580921('track-changes-discard-suggestion-not-found',this);const _0x5861c5=_0x3274fc['getRanges']();this['editor']['model']['canEditAt'](_0x5861c5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3274fc);}}function ls(_0x1e876f,_0x4ddfd9){let _0x2e733d='';return _0x2e733d+=_0x1e876f['split']('*')['map']((_0x28046f,_0x29870a)=>_0x29870a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x28046f)+'</span>':tn(_0x28046f))['join'](''),_0x4ddfd9&&(_0x2e733d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4ddfd9['value']+'\x22\x20title=\x22'+_0x4ddfd9['title']+'\x22></span>'),_0x2e733d;}function tn(_0x898eba){const _0x4235d1=document['createElement']('span');return _0x4235d1['innerText']=_0x898eba,_0x4235d1['innerHTML'];}function ts(_0x50fcc1){return _0x50fcc1['sort']((_0x4899b4,_0xd505e5)=>'attribute'===_0x4899b4['type']&&'attribute'!==_0xd505e5['type']?-0x1:'attribute'!==_0x4899b4['type']&&'attribute'===_0xd505e5['type']?0x1:'deletion'==_0x4899b4['type']&&'deletion'!=_0xd505e5['type']?-0x1:'deletion'!=_0x4899b4['type']&&'deletion'==_0xd505e5['type']?0x1:0x0);}function to(_0x2bcb03,_0x581a86){let _0x21198e,_0x562bae=0x0;const _0x24008c=[],_0x3c3858=_0x581a86['schema'];for(;_0x562bae<_0x2bcb03['length'];){const _0x3346d2=_0x2bcb03[_0x562bae],_0x276290=_0x2bcb03[_0x562bae+0x1];_0x21198e||(_0x21198e=_0x581a86['createPositionBefore'](_0x3346d2)),nn(_0x581a86,_0x3346d2,_0x276290)||(_0x24008c['push'](_0x581a86['createRange'](_0x21198e,_0x3c3858['isObject'](_0x3346d2)?_0x581a86['createPositionAfter'](_0x3346d2):_0x581a86['createPositionAt'](_0x3346d2,'end'))),_0x21198e=null),_0x562bae++;}return _0x24008c;}function nn(_0x47f84c,_0x362253,_0x4ab231){if(!_0x4ab231)return!0x1;const _0x5c1dbe=_0x47f84c['createPositionAfter'](_0x362253),_0x27ed71=_0x47f84c['createPositionBefore'](_0x4ab231);return _0x5c1dbe['isTouching'](_0x27ed71);}function rs(_0x276b75,_0x92fd1,_0x462a17){for(;_0x462a17['length'];){const _0x434089=_0x462a17['splice'](0x0,0x64);_0x276b75['change'](()=>{for(const _0x1dcaf1 of _0x434089)_0x1dcaf1['isInContent']&&_0x92fd1['execute'](_0x1dcaf1['id']);});}}class x extends _0x103e31{['_command'];['_suggestions'];constructor(_0x4f9344,_0x25b03a,_0x22cec3){super(_0x4f9344),this['_command']=_0x25b03a,this['_suggestions']=_0x22cec3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xd29b22=Array['from'](this['_suggestions']['values']())['some'](_0x183b4b=>_0x183b4b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xd29b22;}['execute'](){const _0x3422b5=ts(Array['from'](this['_suggestions']['values']()));for(const _0x36b377 of _0x3422b5){const _0x1a4296=_0x36b377['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a4296))return;}rs(this['editor']['model'],this['_command'],_0x3422b5);}}class E extends _0x103e31{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4896bb,_0x5b5e9e,_0x1dd2e0){super(_0x4896bb),this['_command']=_0x5b5e9e,this['_suggestions']=_0x1dd2e0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5bb4df=this['editor']['model']['document']['selection'],_0x1108ba=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2ff4d1,_0x5aa00e){const _0x371d06=Array['from'](_0x2ff4d1['getRanges']()),_0x461205=new Set();for(const _0x11a304 of _0x5aa00e)if(_0x11a304['isInContent']){for(const _0x417aba of _0x371d06)for(const _0x4fbb24 of _0x11a304['getRanges']())(_0x417aba['isIntersecting'](_0x4fbb24)||_0x2ff4d1['isCollapsed']&&!_0x11a304['isMultiRange']&&_0x11a304['next']&&_0x4fbb24['end']['isTouching'](_0x417aba['start']))&&_0x461205['add'](_0x11a304);}return _0x461205;}(_0x5bb4df,_0x1108ba),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x58bd0b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x28f987 of _0x58bd0b){const _0x13f526=_0x28f987['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13f526))return;}rs(this['editor']['model'],this['_command'],_0x58bd0b);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ac295(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1c3563,_0x2e8a33){super(),this['id']=_0x2e8a33['id'],this['type']=_0x2e8a33['type'],this['subType']=_0x2e8a33['subType']||null,this['author']=_0x2e8a33['author'],this['creator']=_0x2e8a33['creator']||_0x2e8a33['author'],this['isExternal']=Boolean(_0x2e8a33['attributes']&&_0x2e8a33['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2e8a33['originalSuggestionId']||null,this['_model']=_0x1c3563,this['_onAccept']=_0x2e8a33['onAccept'],this['_onDiscard']=_0x2e8a33['onDiscard'],this['_onAttributesChange']=_0x2e8a33['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e8a33['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 _0x518523=this;for(;_0x518523['previous'];)_0x518523=_0x518523['previous'];return _0x518523;}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'](_0x5d608e){this['_markerNames']['add'](_0x5d608e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44a10f=>this['_model']['markers']['get'](_0x44a10f))['filter'](_0x27a2b3=>_0x27a2b3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ca299=>{for(const _0x30d6ac of this['getMarkers']())_0x1ca299['removeMarker'](_0x30d6ac);}),this['_markerNames']['clear']();}['removeMarker'](_0x473037){this['_model']['change'](_0x13980a=>{_0x13980a['removeMarker'](_0x473037);}),this['_markerNames']['delete'](_0x473037);}['addRange'](_0x20ab2e){const _0x5b6c7b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x5b6c7b),this['_model']['change'](_0x33ccce=>{_0x33ccce['addMarker'](_0x5b6c7b,{'range':_0x20ab2e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xd3403f){for(const _0x4cd62 of this['getRanges']())if(_0x4cd62['isIntersecting'](_0xd3403f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x29157d=>_0x29157d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x537fef,_0x5230f8)=>[..._0x537fef,..._0x5230f8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2a7776=this['getRanges']();if(0x1!=_0x2a7776['length'])return null;const _0x1e1913=_0x2a7776[0x0],_0x3370f9=_0x1e1913['start']['nodeAfter'],_0x31234c=_0x1e1913['end']['nodeBefore'];return _0x3370f9 instanceof _0x483d14?_0x3370f9!=_0x31234c?null:_0x3370f9: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 _0x2242be=[];let _0x3933ee=this['head'];for(;_0x3933ee;)_0x2242be['push'](_0x3933ee),_0x3933ee=_0x3933ee['next'];return _0x2242be;}['setAttribute'](_0xf7cf3f,_0x4084b8){const _0x31650b=_0x51dc83(this['attributes']);_0x28b4cb(_0x31650b,_0xf7cf3f,_0x4084b8),_0x537817(_0x31650b,this['attributes'])||(this['attributes']=_0x31650b,this['_onAttributesChange'](_0x31650b));}['removeAttribute'](_0x191161){const _0x112da0=_0x51dc83(this['attributes']);_0x3e2d80(_0x112da0,_0x191161),_0x537817(_0x112da0,this['attributes'])||(this['attributes']=_0x112da0,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 _0x47bc50()['substr'](0x1,0x5);}}function o(_0x262a77,_0x125dc3,_0x208950){const _0x5471a3=_0x262a77['t'],t=_0x262a77['t'];switch(_0x125dc3){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',_0x208950);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x208950);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x208950);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x208950);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x208950);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',_0x208950);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x208950);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',_0x208950);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x208950);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x208950);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x208950);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x208950);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x208950);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x208950);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x208950);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x208950);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x208950);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x208950);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x208950);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x208950);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x208950);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x208950);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x208950);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x208950);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x208950);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'},_0x208950);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x208950);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x208950);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x208950);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x208950);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x208950);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x208950);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x208950);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'},_0x208950);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x208950);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x208950);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x208950);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x208950);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'},_0x208950);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x208950);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'},_0x208950);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'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x208950);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x208950);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'},_0x208950);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x208950);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'},_0x208950);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x208950);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x208950);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x208950);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x208950);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x208950);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'},_0x208950);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x208950);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 _0x5471a3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x208950);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5471a3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x208950);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x208950);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'},_0x208950);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'},_0x208950);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'},_0x208950);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x125dc3;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x46dced,_0x24eec2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x46dced,this['_locale']=_0x24eec2;}['getDescriptions'](_0x53ccef){const _0x41ff5b=[],_0x4b62ec=new Set(),_0x109e3b=new Set();for(let _0x5ccf4b=0x0;_0x5ccf4b<_0x53ccef['length'];_0x5ccf4b++){const _0x2e0414=_0x53ccef[_0x5ccf4b];if(!_0x2e0414['isInContent'])continue;const _0xd9dd5c=this['_handleCustomCallbackDescription'](_0x2e0414);if(_0xd9dd5c){if(null!=_0x2e0414['subType']){if(_0x4b62ec['has'](_0x2e0414['subType']))continue;_0x4b62ec['add'](_0x2e0414['subType']);}_0x41ff5b['push'](_0xd9dd5c);}else{if('attribute'==_0x2e0414['type']){const _0x3a9ab9=_0x2e0414['data']['key'];if(_0x109e3b['has'](_0x3a9ab9))continue;_0x109e3b['add'](_0x2e0414['data']['key']),_0x3a9ab9==m?this['_handleRenameSuggestionDescription'](_0x41ff5b,_0x2e0414):this['_handleAttributeSuggestionDescription'](_0x41ff5b,_0x2e0414);continue;}'insertion'!=_0x2e0414['type']&&'deletion'!=_0x2e0414['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41ff5b,_0x2e0414,_0x53ccef[_0x5ccf4b+0x1]);}}return this['_resolveDescriptionItems'](_0x41ff5b);}['registerDescriptionCallback'](_0x102a2d){this['_customCallbacks']['push'](_0x102a2d);}['registerElementLabel'](_0x3bdb75,_0x305d62,_0x1a7b9c=_0x231707['normal']){'function'==typeof _0x3bdb75?_0x4249ac(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3bdb75,'label':_0x305d62,'priority':_0x1a7b9c}):this['_itemLabels']['set'](_0x3bdb75,_0x305d62);}['registerAttributeLabel'](_0x4f9c5e,_0x2e2167){this['_attributeLabels']['set'](_0x4f9c5e,_0x2e2167);}['getItemLabel'](_0x49b5e8,_0x585352=0x1){let _0x18eb01;for(const _0x136b36 of this['_itemLabelsCallbacks'])if(_0x136b36['matchingCallback'](_0x49b5e8)){_0x18eb01=_0x136b36['label'];break;}return _0x18eb01||(_0x18eb01=this['_itemLabels']['get'](_0x49b5e8['name'])),_0x18eb01?_0x18eb01(_0x585352):0x1!==_0x585352?_0x585352+'\x20'+_0x49b5e8['name']+'s':''+_0x49b5e8['name'];}['_addDescriptionItems'](_0x28a9d3,_0x5d1d14){const _0x2a183b=_0x5d1d14['getFirstRange']()['getWalker'](),_0x12bf8f='insertion'==_0x5d1d14['type']?'add':'remove';for(const _0x4f03e of _0x2a183b){const _0x2a8bb3=_0x4f03e['item'],_0x5bc861=_0x28a9d3[_0x28a9d3['length']-0x1];if(_0x2a8bb3['is']('$textProxy'))_0x5bc861&&_0x5bc861['type']['indexOf']('Container')>-0x1&&_0x28a9d3['pop'](),_0x5bc861&&'text'==_0x5bc861['type']?_0x5bc861[_0x12bf8f]+=_0x2a8bb3['data']:_0x28a9d3['push']({'type':'text','add':'add'==_0x12bf8f?_0x2a8bb3['data']:'','remove':'remove'==_0x12bf8f?_0x2a8bb3['data']:''});else{if(this['_schema']['isObject'](_0x2a8bb3)){const _0x3b60a0=_0x2a8bb3;if(_0x5bc861&&_0x5bc861['type']['indexOf']('Container')>-0x1&&_0x28a9d3['pop'](),'elementEnd'==_0x4f03e['type'])continue;_0x5bc861&&_0x5bc861['type']==_0x12bf8f+'Object'&&_0x5bc861['element']['name']==_0x3b60a0['name']?_0x5bc861['quantity']++:_0x28a9d3['push']({'type':_0x12bf8f+'Object','element':_0x3b60a0,'quantity':0x1}),_0x2a183b['skip'](_0x6588fd=>!('elementEnd'==_0x6588fd['type']&&_0x6588fd['item']==_0x2a8bb3));}else{if(this['_schema']['checkChild'](_0x2a8bb3,'$text')||_0x2a8bb3['is']('element','softBreak')){const _0x465dc8=_0x2a8bb3;if('add'==_0x12bf8f&&'elementStart'==_0x4f03e['type']||'remove'==_0x12bf8f&&'elementEnd'==_0x4f03e['type'])continue;if(_0x5bc861&&-0x1==_0x5bc861['type']['indexOf']('Container')){'text'==_0x5bc861['type']&&(_0x5bc861[_0x12bf8f]+='\x0a');continue;}let _0x52c510;if(_0x52c510='add'==_0x12bf8f?_0x465dc8['nextSibling']&&!this['_schema']['isObject'](_0x465dc8['nextSibling'])?_0x465dc8['nextSibling']:null:_0x465dc8['previousSibling']&&!this['_schema']['isObject'](_0x465dc8['previousSibling'])?_0x465dc8['previousSibling']:null,_0x465dc8['isEmpty']||_0x52c510&&_0x52c510['isEmpty']){const _0x171979=_0x52c510&&_0x52c510['isEmpty']?_0x52c510:_0x465dc8;_0x5bc861&&_0x5bc861['type']==_0x12bf8f+'EmptyContainer'&&_0x5bc861['element']['name']==_0x171979['name']?_0x5bc861['quantity']++:_0x28a9d3['push']({'type':_0x12bf8f+'EmptyContainer','element':_0x171979,'quantity':0x1});}else _0x28a9d3['push']({'type':_0x12bf8f+'Container','element':_0x465dc8});}}}}}['_resolveDescriptionItems'](_0x139679){const _0x5791f2=this['_locale'],_0x321cb1=[],_0x25e8a6=[],_0x2c1801=[];for(const _0x8c9f8b of _0x139679)switch(_0x8c9f8b['type']){case'text':if(_0x8c9f8b['add']=_0x8c9f8b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x8c9f8b['remove']=_0x8c9f8b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x8c9f8b['add']&&''!=_0x8c9f8b['remove']){_0x321cb1['push']({'type':'replace','content':o(_0x5791f2,'REPLACE_TEXT',['\x22'+_0x8c9f8b['remove']+'\x22','\x22'+_0x8c9f8b['add']+'\x22'])});continue;}if(null!=_0x8c9f8b['add']['match'](/^ +$/)){_0x321cb1['push']({'type':'insertion','content':o(_0x5791f2,'*Insert:*\x20%0',o(_0x5791f2,'ELEMENT_SPACE',_0x8c9f8b['add']['length']))});continue;}if(null!=_0x8c9f8b['remove']['match'](/^ +$/)){_0x321cb1['push']({'type':'deletion','content':o(_0x5791f2,'*Remove:*\x20%0',o(_0x5791f2,'ELEMENT_SPACE',_0x8c9f8b['remove']['length']))});continue;}if(''!=_0x8c9f8b['add']){_0x321cb1['push']({'type':'insertion','content':o(_0x5791f2,'*Insert:*\x20%0','\x22'+_0x8c9f8b['add']+'\x22')});continue;}_0x321cb1['push']({'type':'deletion','content':o(_0x5791f2,'*Remove:*\x20%0','\x22'+_0x8c9f8b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x321cb1['push']({'type':'insertion','content':o(_0x5791f2,'*Insert:*\x20%0',this['getItemLabel'](_0x8c9f8b['element'],_0x8c9f8b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x321cb1['push']({'type':'deletion','content':o(_0x5791f2,'*Remove:*\x20%0',this['getItemLabel'](_0x8c9f8b['element'],_0x8c9f8b['quantity']))});continue;case'addContainer':_0x321cb1['push']({'type':'insertion','content':o(_0x5791f2,'*Split:*\x20%0',this['getItemLabel'](_0x8c9f8b['element'],_0x8c9f8b['quantity']))});continue;case'removeContainer':_0x321cb1['push']({'type':'deletion','content':o(_0x5791f2,'*Merge:*\x20%0',this['getItemLabel'](_0x8c9f8b['element'],_0x8c9f8b['quantity']))});continue;case'addFormat':_0x25e8a6['push'](_0x8c9f8b['key']);continue;case'removeFormat':_0x2c1801['push'](_0x8c9f8b['key']);continue;default:_0x321cb1['push'](_0x8c9f8b);}if(_0x25e8a6['length']){const _0x4d479a=_0x25e8a6['map'](_0x1aa296=>this['_attributeLabels']['has'](_0x1aa296)?this['_attributeLabels']['get'](_0x1aa296):_0x1aa296)['join'](',\x20');_0x321cb1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d479a)});}if(_0x2c1801['length']){const _0x22706f=_0x2c1801['map'](_0x5705ba=>this['_attributeLabels']['has'](_0x5705ba)?this['_attributeLabels']['get'](_0x5705ba):_0x5705ba)['join'](',\x20');_0x321cb1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x22706f)});}return _0x321cb1;}['_handleCustomCallbackDescription'](_0x55724d){for(const _0x5b1bfd of this['_customCallbacks']){const _0x381473=_0x5b1bfd(_0x55724d);if(_0x381473&&'type'in _0x381473)return _0x381473;}}['_handleAttributeSuggestionDescription'](_0x54803b,_0x17eff4){const _0x2941a6=_0x17eff4['data'],_0x403048=void 0x0===_0x2941a6['newValue']?'removeFormat':'addFormat';_0x54803b['push']({'type':_0x403048,'key':_0x2941a6['key']});}['_handleRenameSuggestionDescription'](_0x5c0279,_0x419022){_0x5c0279['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x419022['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x281baa,_0x592f63,_0x417d85){if(this['_addDescriptionItems'](_0x281baa,_0x592f63),_0x417d85&&_0x417d85['getFirstRange']()&&!_0x592f63['getFirstRange']()['end']['isEqual'](_0x417d85['getFirstRange']()['start'])){const _0x23675c=_0x281baa[_0x281baa['length']-0x1],_0x16bf1d='insertion'==_0x592f63['type']?'add':'remove';_0x23675c&&'text'==_0x23675c['type']&&(_0x23675c[_0x16bf1d]+='\x0a');}}}class V extends _0x438b1d{['afterInit'](){const _0x3933f5=this['editor'],_0x1242df=_0x3933f5['plugins']['get']('TrackChangesEditing');_0x3933f5['commands']['get']('showAIAssistant')&&_0x1242df['enableCommand']('showAIAssistant');}}class F extends _0x438b1d{['afterInit'](){const _0x5ad872=this['editor'],_0x5a0362=_0x5ad872['plugins']['get']('TrackChangesEditing');_0x5ad872['commands']['get']('toggleAi')&&_0x5a0362['enableCommand']('toggleAi');}}class G extends _0x438b1d{['afterInit'](){const _0x98eaa2=this['editor'],_0x26b398=_0x98eaa2['plugins']['get']('TrackChangesEditing');_0x98eaa2['commands']['get']('aiQuickAction')&&_0x26b398['enableCommand']('aiQuickAction');}}class L extends _0x438b1d{['afterInit'](){const _0x5e28ca=this['editor'],_0x5b44f7=_0x5e28ca['locale'];if(!_0x5e28ca['plugins']['has']('AlignmentEditing'))return;const _0x46ebd2=_0x5e28ca['plugins']['get']('TrackChangesEditing');_0x46ebd2['enableDefaultAttributesIntegration']('alignment'),_0x46ebd2['registerBlockAttribute']('alignment'),_0x46ebd2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5b44f7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fba21=this['editor'],_0x493f78=_0x1fba21['locale'];_0x1fba21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x249011=>{if('formatBlock'!=_0x249011['type'])return;const {data:_0x575d1a}=_0x249011;if(_0x575d1a&&'alignment'==_0x575d1a['commandName']){const _0x3e034a=_0x575d1a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x493f78,'*Format:*\x20%0',function(_0x3df155){switch(_0x3df155){case'left':return o(_0x493f78,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x493f78,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x493f78,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x493f78,'FORMAT_JUSTIFY_TEXT');}}(_0x3e034a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x438b1d{['afterInit'](){const _0x4b8df8=this['editor'],_0x1eb1f9=_0x4b8df8['plugins']['get']('TrackChangesEditing'),_0x80ec26=_0x4b8df8['locale'];for(const _0x3e90f4 of ti){if(!_0x4b8df8['plugins']['has'](_0x3e90f4))continue;const _0x4b906b=_0x3e90f4['slice'](0x0,-0x7)['toLowerCase'](),_0x1714cd='FORMAT_'+_0x4b906b['toUpperCase']();_0x1eb1f9['enableDefaultAttributesIntegration'](_0x4b906b),_0x1eb1f9['registerInlineAttribute'](_0x4b906b),_0x1eb1f9['descriptionFactory']['registerAttributeLabel'](_0x4b906b,o(_0x80ec26,_0x1714cd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b1bc=this['editor'],_0x42df4d=_0x44b1bc['locale'],_0x3b7ca1=_0x44b1bc['plugins']['get']('TrackChangesEditing');function _0x22bb8a(_0x272ca5,_0x2f2baa){_0x3b7ca1['descriptionFactory']['registerDescriptionCallback'](_0x5b5104=>{if('formatInline'!=_0x5b5104['type'])return;const {data:_0x1a73f3}=_0x5b5104;return _0x1a73f3&&_0x1a73f3['commandName']===_0x272ca5?_0x1a73f3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42df4d,'*Format:*\x20%0',_0x2f2baa)}:{'type':'format','content':o(_0x42df4d,'*Remove\x20format:*\x20%0',_0x2f2baa)}:void 0x0;});}_0x22bb8a('bold',o(_0x42df4d,'FORMAT_BOLD')),_0x22bb8a('italic',o(_0x42df4d,'FORMAT_ITALIC')),_0x22bb8a('underline',o(_0x42df4d,'FORMAT_UNDERLINE')),_0x22bb8a('code',o(_0x42df4d,'FORMAT_CODE')),_0x22bb8a('strikethrough',o(_0x42df4d,'FORMAT_STRIKETHROUGH')),_0x22bb8a('subscript',o(_0x42df4d,'FORMAT_SUBSCRIPT')),_0x22bb8a('superscript',o(_0x42df4d,'FORMAT_SUPERSCRIPT'));}}class K extends _0x438b1d{['afterInit'](){const _0x2670e6=this['editor'],_0x49ac7d=_0x2670e6['locale'];if(!_0x2670e6['plugins']['has']('BlockQuoteEditing'))return;const _0x594c82=_0x2670e6['plugins']['get']('TrackChangesEditing'),_0x4b7a5b=this['editor']['commands']['get']('blockQuote');_0x594c82['enableCommand']('blockQuote',(_0x2070bc,_0x201f18={})=>{const _0x369f7f=this['editor']['model']['document']['selection'],_0x117d0f=_0x201f18&&void 0x0!==_0x201f18['forceValue']?_0x201f18['forceValue']:!_0x4b7a5b['value'];let _0x177475=[];if(_0x117d0f){const _0x48fd87=Array['from'](_0x369f7f['getSelectedBlocks']())['filter'](_0x1ec857=>oo(_0x1ec857)||function(_0x129620,_0x41f7d6){const _0x1aecf9=_0x41f7d6['checkChild'](_0x129620['parent'],'blockQuote'),_0x12cda2=_0x41f7d6['checkChild'](['$root','blockQuote'],_0x129620);return _0x1aecf9&&_0x12cda2;}(_0x1ec857,this['editor']['model']['schema']));_0x177475=to(_0x48fd87,_0x2670e6['model']);}else{const _0x4d7ffc=Array['from'](_0x369f7f['getSelectedBlocks']())['filter'](_0x2358a4=>oo(_0x2358a4));_0x177475=to(_0x4d7ffc,_0x2670e6['model']);}_0x2670e6['model']['change'](()=>{for(const _0x1dd70c of _0x177475)_0x594c82['markBlockFormat'](_0x1dd70c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x117d0f}]});});}),_0x594c82['descriptionFactory']['registerDescriptionCallback'](_0x5e1ba4=>{const {data:_0x12d055}=_0x5e1ba4;if(_0x12d055&&'blockQuote'==_0x12d055['commandName']){const _0x538457=o(_0x49ac7d,'ELEMENT_BLOCK_QUOTE');return _0x12d055['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49ac7d,'*Set\x20format:*\x20%0',_0x538457)}:{'type':'format','content':o(_0x49ac7d,'*Remove\x20format:*\x20%0',_0x538457)};}});}}function oo(_0x4f9c72){return'blockQuote'==_0x4f9c72['parent']['name'];}class q extends _0x438b1d{['afterInit'](){const _0x14275a=this['editor'],_0x3cdb09=_0x14275a['locale'],_0x53a82b=_0x14275a['plugins']['get']('TrackChangesEditing');_0x14275a['plugins']['has']('BookmarkEditing')&&(_0x53a82b['enableCommand']('insertBookmark'),_0x53a82b['enableDefaultAttributesIntegration']('updateBookmark'),_0x53a82b['registerBlockAttribute']('bookmarkId'),_0x53a82b['descriptionFactory']['registerDescriptionCallback'](_0x13f855=>{if('insertion'!=_0x13f855['type']&&'deletion'!=_0x13f855['type']&&'attribute'!=_0x13f855['type'])return;const _0x4cea3e=_0x13f855['getContainedElement']();if(null==_0x4cea3e)return;if(!_0x4cea3e['is']('element','bookmark'))return;const _0x2ee027=_0x4cea3e['getAttribute']('bookmarkId');if('insertion'==_0x13f855['type'])return{'type':'insertion','content':o(_0x3cdb09,'*Insert:*\x20%0','\x22'+_0x2ee027+'\x22\x20'+o(_0x3cdb09,'ELEMENT_BOOKMARK'))};if('deletion'==_0x13f855['type'])return{'type':'deletion','content':o(_0x3cdb09,'*Remove:*\x20%0','\x22'+_0x2ee027+'\x22\x20'+o(_0x3cdb09,'ELEMENT_BOOKMARK'))};const {data:_0x557a62}=_0x13f855;if(!_0x557a62||'bookmarkId'!=_0x557a62['key'])return;return{'type':'format','content':o(_0x3cdb09,'*Set\x20bookmark:*\x20%0','\x22'+_0x557a62['newValue']+'\x22')};}));}}class H extends _0x438b1d{['afterInit'](){const _0x2c9156=this['editor'];_0x2c9156['plugins']['has']('CaseChange')&&(_0x2c9156['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2c9156['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2c9156['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x438b1d{['afterInit'](){const _0x201448=this['editor'];_0x201448['commands']['get']('ckbox')&&_0x201448['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x438b1d{['afterInit'](){const _0x438970=this['editor'];if(!_0x438970['plugins']['has']('CodeBlock'))return;const _0x86b960=_0x438970['plugins']['get']('TrackChangesEditing'),_0x56640f=_0x438970['locale'],_0x28384f=_0x438970['config']['get']('codeBlock')['languages'],_0x1e2326=_0x438970['commands']['get']('codeBlock');_0x86b960['enableCommand']('indentCodeBlock'),_0x86b960['enableCommand']('outdentCodeBlock'),_0x86b960['enableCommand']('codeBlock',(_0x49b5b1,_0x293874={})=>{const _0x2c0b78=_0x438970['model'],_0x58efd7=_0x438970['model']['document']['selection'],_0x163327=_0x293874&&void 0x0!==_0x293874['forceValue']?_0x293874['forceValue']:!_0x1e2326['value'];let _0x18acbc;_0x293874['language']||(_0x293874['language']=_0x28384f[0x0]['language']),_0x18acbc=_0x163327?Array['from'](_0x58efd7['getSelectedBlocks']())['filter'](_0x43159c=>co(_0x43159c)||function(_0x1d0b4f,_0x458833){if(_0x1d0b4f['is']('rootElement')||_0x458833['isLimit'](_0x1d0b4f))return!0x1;return _0x458833['checkChild'](_0x1d0b4f['parent'],'codeBlock');}(_0x43159c,_0x2c0b78['schema'])):Array['from'](_0x58efd7['getSelectedBlocks']())['filter'](_0x4af6bb=>co(_0x4af6bb));const _0x2d5b10=to(_0x18acbc,_0x2c0b78);_0x2c0b78['change'](()=>{for(const _0x559c26 of _0x2d5b10)_0x86b960['markBlockFormat'](_0x559c26,{'commandName':'codeBlock','commandParams':[{..._0x293874,'forceValue':_0x163327}],'formatGroupId':'blockName'});});}),(_0x86b960['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e44d9=>o(_0x56640f,'ELEMENT_CODE_BLOCK',_0x4e44d9)),_0x86b960['descriptionFactory']['registerDescriptionCallback'](_0x3a8a3a=>{if('formatBlock'!=_0x3a8a3a['type'])return;const _0x400c93=_0x56640f['t'],{data:_0x953a0}=_0x3a8a3a;if(!_0x953a0||'codeBlock'!=_0x953a0['commandName'])return;const _0x3597d9=_0x953a0['commandParams'][0x0]['language'],_0x450bfd=_0x400c93(_0x28384f['find'](_0x33128c=>_0x33128c['language']===_0x3597d9)['label'])['toLowerCase']();return _0x953a0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56640f,'*Set\x20format:*\x20%0',o(_0x56640f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x450bfd+')')}:{'type':'format','content':o(_0x56640f,'*Remove\x20format:*\x20%0',o(_0x56640f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x21de56){return'codeBlock'==_0x21de56['name'];}class Q extends _0x438b1d{['afterInit'](){const _0x2d6e6d=this['editor'];if(!_0x2d6e6d['plugins']['has']('CommentsEditing'))return;_0x2d6e6d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2490ae,_0x31528b,_0x3a2bf4){const _0x5a017f=[];for(const _0x3532f6 of _0x31528b['getItems']())_0x3532f6['hasAttribute'](_0x2490ae)&&_0x5a017f['push'](_0x3a2bf4['createRangeOn'](_0x3532f6));return _0x5a017f;}function Ve(_0x37a0b8,_0x53d3c9,{showActiveMarker:_0x522daf=!0x0}={}){const _0x3a3938=_0x37a0b8['plugins']['get']('TrackChangesEditing');return(_0x59d6d6,_0xfa2e78,_0x5c13fd)=>{if(!_0x5c13fd['consumable']['test'](_0xfa2e78['markerRange'],_0x59d6d6['name']))return;const _0x1fd75c=_0xfa2e78['markerRange']['getWalker'](),_0x46c2ca=_0xfa2e78['markerRange']['start'],_0x165182=_0x37a0b8['model']['schema'];let _0x2c430f=null,_0x2bafc7=null,_0xab1145=!0x1,_0x4a102f=!0x1;for(const _0x4f3182 of _0x1fd75c){const _0x2bc0da=_0x4f3182['item'];_0xab1145=_0xab1145||_0x165182['isContent'](_0x2bc0da);const _0x110f42=_0x5c13fd['mapper']['toViewElement'](_0x2bc0da);if(_0x110f42&&_0x110f42['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f3182['type']&&(_0x165182['isBlock'](_0x2bc0da)&&!_0x165182['isLimit'](_0x2bc0da)&&(_0x2bc0da['nextSibling']||_0x46c2ca['isAtEnd']?_0x2c430f&&_0x2c430f['parent']==_0x2bc0da||(_0x2c430f=_0x2bc0da,_0x423a47(_0x4f3182['previousPosition']),_0x4a102f=!0x0):_0x2bafc7=_0x2bafc7||_0x4f3182['previousPosition']));}function _0x423a47(_0x3d80e1){const {id:_0x21fdd1,authorId:_0x4db5ad}=_0x3a3938['_splitMarkerName'](_0xfa2e78['markerName']),_0x47c008=_0x5c13fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53d3c9,'data-suggestion':_0x21fdd1,'data-author-id':_0x4db5ad}),_0x2aa39d=_0x5c13fd['mapper']['toViewPosition'](_0x3d80e1);_0x522daf&&_0x3a3938['activeMarkers']['includes'](_0xfa2e78['markerName'])&&_0x5c13fd['writer']['addClass']('ck-suggestion-marker--active',_0x47c008),_0x5c13fd['writer']['insert'](_0x2aa39d,_0x47c008),_0x5c13fd['mapper']['bindElementToMarker'](_0x47c008,_0xfa2e78['markerName']);}_0xab1145||_0x4a102f||!_0x2bafc7||_0x423a47(_0x2bafc7);};}class X extends _0x438b1d{static get['requires'](){return[_0x2e520c];}['init'](){const _0x4e66b8=this['editor'],_0x4b6287=_0x4e66b8['plugins']['get']('TrackChangesEditing');_0x4b6287['enableCommand']('delete');const _0x4b77bf=_0x4e66b8['commands']['get']('deleteForward');_0x4b6287['enableCommand']('deleteForward',(_0x561003,_0x302e86={})=>{const _0x559ea1=_0x4e66b8['model']['createSelection'](_0x4e66b8['model']['document']['selection']);_0x559ea1['isCollapsed']&&_0x4e66b8['model']['modifySelection'](_0x559ea1,{'direction':'forward','unit':_0x302e86['unit']});const _0xe34da0=_0x559ea1['getFirstRange'](),_0x204b79=_0x41f621['fromRange'](_0xe34da0);let _0x51e6b7;_0x561003(_0x302e86),_0x51e6b7='$graveyard'==_0x204b79['root']['rootName']?_0x4e66b8['model']['createRange'](_0xe34da0['start']):_0x4e66b8['model']['createRange'](_0x204b79['start'],_0x204b79['end']),_0x204b79['detach'](),_0x4e66b8['model']['enqueueChange'](_0x4b77bf['buffer']['batch'],_0x416134=>{_0x4b77bf['buffer']['lock'](),_0x416134['setSelection'](_0x416134['createRange'](_0x51e6b7['end'])),_0x4b77bf['buffer']['unlock']();});}),_0x4e66b8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x4e66b8,'merge'),{'priority':'high'}),_0x4e66b8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xf660e2,_0x14c9e6,_0x1815bf)=>{_0x1815bf['options']['showSuggestionHighlights']&&Ve(_0x4e66b8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xf660e2,_0x14c9e6,_0x1815bf);},{'priority':'high'}),_0x4e66b8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x180e6d,_0x48429b,_0x4db061)=>{const _0xa15864=_0x4db061['mapper']['markerNameToElements'](_0x48429b['markerName']);if(_0xa15864){for(const _0x22a3dd of _0xa15864)_0x22a3dd['is']('uiElement')&&(_0x4db061['mapper']['unbindElementFromMarkerName'](_0x22a3dd,_0x48429b['markerName']),_0x4db061['writer']['remove'](_0x22a3dd));}},{'priority':'high'});}}class Y extends _0x438b1d{['afterInit'](){const _0x26ef84=this['editor'];if(!_0x26ef84['plugins']['has']('ListEditing'))return;const _0x5ca90b=_0x26ef84['locale'],_0x6a468b=_0x26ef84['plugins']['get']('TrackChangesEditing'),_0x19cf2c=_0x26ef84['plugins']['has']('TodoListEditing'),_0x2b4100=!!_0x26ef84['config']['get']('list.multiBlock');function _0x309840(_0x4225e6){return{'type':'format','content':''+o(_0x5ca90b,'*Set\x20format:*\x20%0',_0x4225e6)};}function _0xf4e356(_0x1d6f3a){return{'type':'format','content':''+o(_0x5ca90b,'*Remove\x20format:*\x20%0',_0x1d6f3a)};}_0x6a468b['enableDefaultAttributesIntegration']('numberedList'),_0x6a468b['enableDefaultAttributesIntegration']('bulletedList'),_0x6a468b['enableDefaultAttributesIntegration']('customNumberedList'),_0x6a468b['enableDefaultAttributesIntegration']('customBulletedList'),_0x6a468b['enableDefaultAttributesIntegration']('indentList'),_0x6a468b['enableDefaultAttributesIntegration']('outdentList'),_0x6a468b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x6a468b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x6a468b['registerBlockAttribute']('listItemId'),_0x6a468b['registerBlockAttribute']('listType'),_0x6a468b['registerBlockAttribute']('listIndent'),_0x2b4100&&(_0x6a468b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x6a468b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x19cf2c&&(_0x6a468b['enableDefaultAttributesIntegration']('todoList'),_0x6a468b['enableDefaultAttributesIntegration']('checkTodoList'),_0x6a468b['registerBlockAttribute']('todoListChecked'),_0x6a468b['descriptionFactory']['registerDescriptionCallback'](_0x4c4063=>{const {data:_0x286b3b}=_0x4c4063;if(_0x286b3b&&'todoListChecked'==_0x286b3b['key'])return{'type':'format','content':_0x286b3b['newValue']?o(_0x5ca90b,'*Check\x20item*'):o(_0x5ca90b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe919ce=>{if(_0xe919ce['batch']['isUndo'])return!0x1;let _0x29b61=!0x1;const _0x4fff4d=_0x6a468b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd34e6a=>'todoListChecked'===_0x6a468b['_getAttributeKey'](_0xd34e6a));for(const _0x2dc3c2 of _0x4fff4d){'todo'!=_0x2dc3c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x6a468b['_findSuggestions'](_0x2dc3c2['getFirstRange'](),'attribute')['find'](_0x3c36c3=>'listType'===_0x6a468b['_getAttributeKey'](_0x3c36c3['suggestion']))||(_0xe919ce['removeMarker'](_0x2dc3c2['getFirstMarker']()),_0x29b61=!0x0));}return _0x29b61;})),_0x6a468b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5ca90b,'FORMAT_INDENT'));const _0x2e905b={'type':'format','content':''};_0x6a468b['descriptionFactory']['registerDescriptionCallback'](_0x118fd8=>{const {data:_0x3f1c87}=_0x118fd8;if(!_0x3f1c87||'listType'!=_0x3f1c87['key'])return;let _0x4250e6=_0x118fd8['head'];for(;_0x4250e6;){if(_0x4250e6['data']&&(('listStyle'==_0x4250e6['data']['key']||'listMarkerStyle'==_0x4250e6['data']['key'])&&(_0x4250e6['data']['newValue']&&'default'!=_0x4250e6['data']['newValue']||'default'!=_0x4250e6['data']['oldValue']&&!_0x3f1c87['newValue'])||!_0x2b4100&&_0x4250e6['data']['key']==m))return _0x2e905b;_0x4250e6=_0x4250e6['next'];}if(null==_0x3f1c87['newValue'])switch(_0x3f1c87['oldValue']){case'bulleted':return _0xf4e356(o(_0x5ca90b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf4e356(o(_0x5ca90b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf4e356(o(_0x5ca90b,'ELEMENT_TODO_LIST'));}switch(_0x3f1c87['newValue']){case'bulleted':return _0x309840(o(_0x5ca90b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x309840(o(_0x5ca90b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x309840(o(_0x5ca90b,'ELEMENT_TODO_LIST'));}}),_0x6a468b['descriptionFactory']['registerDescriptionCallback'](_0x106a3c=>{const {data:_0x9aca46}=_0x106a3c;if(_0x9aca46&&'listIndent'==_0x9aca46['key'])return null==_0x9aca46['newValue']||null==_0x9aca46['oldValue']&&0x0==_0x9aca46['newValue']?_0x2e905b:void 0x0;}),_0x6a468b['descriptionFactory']['registerDescriptionCallback'](_0x341a49=>{if('attribute'!=_0x341a49['type'])return;const {data:_0x538bf8}=_0x341a49;if(!_0x538bf8||'listItemId'!=_0x538bf8['key'])return;const _0x13f6a2=Be(_0x341a49);return'newValue'==_0x13f6a2?{'type':'format','content':o(_0x5ca90b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x13f6a2?{'type':'format','content':o(_0x5ca90b,'*Split:*\x20list\x20item')}:_0x2e905b;}),_0x26ef84['model']['document']['registerPostFixer'](_0x420e43=>this['listItemIdFixer'](_0x420e43)),_0x26ef84['model']['document']['registerPostFixer'](_0x1fa422=>this['noTrackChangesFixer'](_0x1fa422)),_0x26ef84['model']['document']['on']('change:data',(_0x3d2d59,_0x1f1f74)=>{if(_0x1f1f74['isUndo']||!_0x1f1f74['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1e89b1){if(_0x1e89b1['batch']['isUndo']||!_0x1e89b1['batch']['isLocal'])return!0x1;let _0x52291a=!0x1;const _0x8003cc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c0c14=>_0x4c0c14['data']&&'listItemId'==_0x4c0c14['data']['key'])['filter'](_0x1595e8=>_0x1595e8['data']['newValue']&&_0x1595e8['data']['oldValue']);for(const _0x4e3ec5 of _0x8003cc)Be(_0x4e3ec5)||(_0x1e89b1['removeMarker'](_0x4e3ec5['getFirstMarker']()),_0x52291a=!0x0);return _0x52291a;}['noTrackChangesFixer'](_0x135717){if(_0x135717['batch']['isUndo']||!_0x135717['batch']['isLocal'])return!0x1;const _0x1c148f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1c148f['trackChangesCommand']['value'])return!0x1;let _0x583896=!0x1;const _0x194f92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3f01e8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3652af=>'attribute'==_0x3652af['type'])['filter'](_0x553a6f=>_0x194f92['includes'](_0x553a6f['attributeKey']));if(0x0==_0x3f01e8['length'])return _0x583896;for(const _0x1cc7ac of _0x3f01e8){const _0x34069b=_0x1c148f['_findSuggestions'](_0x1cc7ac['range'],'attribute')['filter'](_0x5aaef6=>!_0x5aaef6['meta']['isNextTo'])['map'](_0xb10935=>_0xb10935['suggestion'])['filter'](_0x4c01d2=>{const _0x2ef30b=_0x1c148f['_getAttributeKey'](_0x4c01d2);return _0x194f92['includes'](_0x2ef30b);});if(_0x34069b['length']){for(const _0x405cc3 of _0x34069b)_0x135717['removeMarker'](_0x405cc3['getFirstMarker']());_0x583896=!0x0;}}return _0x583896;}['assureChains'](){const _0x3b323f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b3dbd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ac8b0;const _0x27300e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x23676e=>{if(_0x23676e['data']['oldRange']||!_0x23676e['data']['newRange'])return null;if(!_0x23676e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2b4cab}=_0x3b323f['_splitMarkerName'](_0x23676e['name']);if(!_0x3b323f['hasSuggestion'](_0x2b4cab))return null;const _0x43f9d4=_0x3b323f['getSuggestion'](_0x2b4cab);return _0x4b3dbd['includes'](_0x43f9d4['data']['key']);})['map'](_0x4733e5=>{const {id:_0x5f51d8}=_0x3b323f['_splitMarkerName'](_0x4733e5['name']),_0x5b59bf=_0x3b323f['getSuggestion'](_0x5f51d8);return _0x1ac8b0=_0x5b59bf['attributes']['groupId'],_0x5b59bf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x27300e['size'])return;const _0x19b248=_0x3b323f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3464ee=>'attribute'==_0x3464ee['type']&&_0x3464ee['data']&&_0x4b3dbd['includes'](_0x3464ee['data']['key'])&&_0x3464ee['attributes']['groupId']!=_0x1ac8b0)['map'](_0x1bf06e=>({'listItem':_0x1bf06e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1bf06e['attributes']['groupId']})),_0x463102=new Set();for(const {groupId:_0x44c605,listItem:_0x541e01}of _0x19b248)_0x27300e['has'](_0x541e01)&&_0x463102['add'](_0x44c605);for(const _0x2fb9c6 of _0x3b323f['getSuggestions']())_0x463102['has'](_0x2fb9c6['attributes']['groupId'])&&_0x2fb9c6['setAttribute']('groupId',_0x1ac8b0);}['_supportLegacySuggestions'](){const _0x336384=this['editor'],_0xd0bae5=_0x336384['locale'],_0x2efcc2=_0x336384['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2efcc2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4c1a3a,_0x18fd28){const _0x1d4b14=[];for(let _0x1a76d1 of _0x4c1a3a)_0x1a76d1['start']['nodeAfter']===_0x1a76d1['end']['parent']&&(_0x1a76d1=_0x336384['model']['createRange'](_0x336384['model']['createPositionAt'](_0x1a76d1['start']['nodeAfter'],0x0))),_0x1d4b14['push'](_0x1a76d1);_0x336384['model']['change'](_0x1c79ae=>{const _0x2ae0f8=_0x336384['model']['document']['selection'],_0x47d5de=Array['from'](_0x2ae0f8['getRanges']())['map'](_0x279c4c=>_0x41f621['fromRange'](_0x279c4c));_0x1c79ae['setSelection'](_0x1d4b14),_0x336384['commands']['get'](_0x18fd28['commandName'])['refresh'](),_0x18fd28['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x336384['execute'](_0x18fd28['commandName'],..._0x18fd28['commandParams']),_0x1c79ae['setSelection'](_0x47d5de);for(const _0x34be7d of _0x47d5de)_0x34be7d['detach']();});}),_0x2efcc2['descriptionFactory']['registerElementLabel'](function(_0xf914bf){const _0x239d99=!_0x336384['model']['schema']['isObject'](_0xf914bf),_0x598d43=_0xf914bf['previousSibling'],_0x4cb02e=_0xf914bf['nextSibling'],_0x5aa384=_0xf914bf['getAttribute']('listItemId'),_0x24d63f=!_0x598d43||_0x598d43['getAttribute']('listItemId')!==_0x5aa384,_0x464be0=!_0x4cb02e||_0x4cb02e['getAttribute']('listItemId')!==_0x5aa384;return _0x239d99&&Boolean(_0x5aa384)&&_0x24d63f&&_0x464be0;},_0x37f2c0=>o(_0xd0bae5,'ELEMENT_LIST_ITEM',_0x37f2c0));}['_registerLegacyDescription'](){const _0x45ed81=this['editor'],_0x46f021=_0x45ed81['locale'];function _0x41fa75(_0x3f3fc9){const _0x54170a=_0x45ed81['commands']['get']('bulletedList')['value'],_0x1802ae=_0x45ed81['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f3fc9?_0x54170a:_0x1802ae;}_0x45ed81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48dc05){if('formatBlock'!=_0x48dc05['type'])return;const {data:_0x4d9692}=_0x48dc05;if(!_0x4d9692)return;let _0xba501c,_0x1aee63,_0x2572a3,_0x55b4f2;switch(_0x4d9692['commandName']){case'bulletedList':_0x2572a3=_0x4d9692['commandParams'][0x0]['forceValue'],_0x55b4f2=_0x41fa75(_0x4d9692['commandName']),_0xba501c=_0x2572a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55b4f2&&_0x45ed81['config']['get']('list.multiBlock')||(_0xba501c='*Change\x20to:*\x20%0'),_0x1aee63={'type':'format','content':o(_0x46f021,_0xba501c,o(_0x46f021,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2572a3=_0x4d9692['commandParams'][0x0]['forceValue'],_0x55b4f2=_0x41fa75(_0x4d9692['commandName']),_0xba501c=_0x2572a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55b4f2&&_0x45ed81['config']['get']('list.multiBlock')||(_0xba501c='*Change\x20to:*\x20%0'),_0x1aee63={'type':'format','content':o(_0x46f021,_0xba501c,o(_0x46f021,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xba501c='*Indent:*\x20%0',_0x1aee63={'type':'format','content':o(_0x46f021,_0xba501c,o(_0x46f021,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xba501c=function(_0x4fc4ad){const _0x53d0fb=_0x4fc4ad['getFirstRange']();let _0x1325e3=_0x53d0fb['start']['nodeAfter'];for(;_0x1325e3&&_0x53d0fb['containsItem'](_0x1325e3);){if(_0x1325e3['getAttribute']('listIndent')>0x0)return!0x1;_0x1325e3=_0x1325e3['nextSibling'];}return!0x0;}(_0x48dc05)?o(_0x46f021,'*Format:*\x20remove\x20from\x20%0',o(_0x46f021,function(_0x4452b4){return'ELEMENT_'+_0x4452b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48dc05))):o(_0x46f021,'*Outdent:*\x20%0',o(_0x46f021,'ELEMENT_LIST_ITEM')),_0x1aee63={'type':'format','content':_0xba501c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4d9692['multipleBlocks']&&(_0xba501c='*Merge:*\x20%0',_0x1aee63={'type':'deletion','content':o(_0x46f021,_0xba501c,o(_0x46f021,'ELEMENT_LIST_ITEM'))});}return _0x1aee63;});}}function Be(_0x423188){let _0x3519ab=_0x423188['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3519ab;){const _0x1e06a9=_0x3519ab['getAttribute']('listItemId');if(!_0x1e06a9)return!0x1;if(_0x1e06a9==_0x423188['data']['newValue'])return'newValue';if(_0x1e06a9==_0x423188['data']['oldValue'])return'oldValue';_0x3519ab=_0x3519ab['previousSibling'];}return!0x1;}class Z extends _0x438b1d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x41382a=this['editor']['config']['get']('list.properties'),_0x1a8866=this['editor']['plugins']['get']('TrackChangesEditing');_0x41382a['styles']&&(_0x1a8866['enableDefaultAttributesIntegration']('listStyle'),_0x1a8866['registerBlockAttribute']('listStyle')),_0x41382a['reversed']&&(_0x1a8866['enableDefaultAttributesIntegration']('listReversed'),_0x1a8866['registerBlockAttribute']('listReversed')),_0x41382a['startIndex']&&(_0x1a8866['enableDefaultAttributesIntegration']('listStart'),_0x1a8866['registerBlockAttribute']('listStart'));const _0x3a2bab={'type':'format','content':''};_0x1a8866['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x192cc8=this['editor']['locale'];_0x1a8866['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x192cc8,'FORMAT_LIST_REVERSED')),_0x1a8866['descriptionFactory']['registerDescriptionCallback'](_0x410f23=>{const {data:_0x3d6c9a}=_0x410f23;if(_0x3d6c9a&&'listReversed'==_0x3d6c9a['key'])return null==_0x3d6c9a['newValue']||0x0==_0x3d6c9a['newValue']&&null==_0x3d6c9a['oldValue']?_0x3a2bab:void 0x0;}),_0x1a8866['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x192cc8,'FORMAT_LIST_START')),_0x1a8866['descriptionFactory']['registerDescriptionCallback'](_0x3257a5=>{const {data:_0x3757e5}=_0x3257a5;if(_0x3757e5&&'listStart'==_0x3757e5['key'])return null==_0x3757e5['newValue']||0x1==_0x3757e5['newValue']&&null==_0x3757e5['oldValue']?_0x3a2bab:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2c6c7b=>{if(_0x2c6c7b['batch']['isUndo'])return!0x1;let _0xc61885=!0x1;const _0x1355d2=_0x1a8866['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eb3cc=>{const _0x2bb550=_0x1a8866['_getAttributeKey'](_0x5eb3cc);return'listStart'==_0x2bb550||'listReversed'==_0x2bb550;});for(const _0x17efca of _0x1355d2){const _0x11a7ca=_0x17efca['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x11a7ca||'customNumbered'==_0x11a7ca)continue;_0x1a8866['_findSuggestions'](_0x17efca['getFirstRange'](),'attribute')['find'](_0x1d8d94=>'listType'==_0x1a8866['_getAttributeKey'](_0x1d8d94['suggestion']))||(_0x2c6c7b['removeMarker'](_0x17efca['getFirstMarker']()),_0xc61885=!0x0);}return _0xc61885;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x255f53){const _0x5598fa=this['editor']['locale'],{data:_0x5b3666}=_0x255f53,_0x1bc7d4={'type':'format','content':''};if(!_0x5b3666||'listStyle'!=_0x5b3666['key'])return;if(!_0x5b3666['oldValue'])return'default'==_0x5b3666['newValue']?_0x1bc7d4:{'type':'format','content':''+o(_0x5598fa,'*Set\x20format:*\x20%0',o(_0x5598fa,this['_getTranslationKeyForListStyle'](_0x5b3666['newValue'])))};if(!_0x5b3666['newValue']){if('default'==_0x5b3666['oldValue'])return _0x1bc7d4;let _0xc3902c=_0x255f53['head'];for(;_0xc3902c;){if(_0xc3902c['data']&&'listType'==_0xc3902c['data']['key']&&_0xc3902c['data']['newValue'])return _0x1bc7d4;_0xc3902c=_0xc3902c['next'];}return{'type':'format','content':''+o(_0x5598fa,'*Remove\x20format:*\x20%0',o(_0x5598fa,this['_getTranslationKeyForListStyle'](_0x5b3666['oldValue'])))};}if('default'!=_0x5b3666['newValue'])return{'type':'format','content':''+o(_0x5598fa,'*Set\x20format:*\x20%0',o(_0x5598fa,this['_getTranslationKeyForListStyle'](_0x5b3666['newValue'])))};let _0x4aaaec=_0x255f53['head'];for(;_0x4aaaec;){if(_0x4aaaec['data']&&'listType'==_0x4aaaec['data']['key']&&_0x4aaaec['data']['newValue']&&_0x4aaaec['data']['oldValue'])return _0x1bc7d4;_0x4aaaec=_0x4aaaec['next'];}return{'type':'format','content':o(_0x5598fa,'*Set\x20format:*\x20%0',o(_0x5598fa,'ELEMENT_'+_0x255f53['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3792d3=this['editor'],_0x50e47d=_0x3792d3['locale'];_0x3792d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd03218=>{if('formatBlock'!=_0xd03218['type'])return;const {data:_0x49c862}=_0xd03218;if(!_0x49c862)return;let _0x159317,_0x17c82f;switch(_0x49c862['commandName']){case'listStyle':_0x159317='*Change\x20to:*\x20%0',_0x17c82f={'type':'format','content':o(_0x50e47d,_0x159317,o(_0x50e47d,this['_getTranslationKeyForListStyle'](_0x49c862['commandParams'][0x0]['type'])))};break;case'listReversed':_0x159317=_0x49c862['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17c82f={'type':'format','content':o(_0x50e47d,_0x159317)};break;case'listStart':_0x159317='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17c82f={'type':'format','content':o(_0x50e47d,_0x159317,_0x49c862['commandParams'][0x0]['startIndex'])};}return _0x17c82f;});}['_getTranslationKeyForListStyle'](_0x47819f){return'ELEMENT_'+function(_0x53d22f){if(Re['includes'](_0x53d22f))return'bulleted';if(De['includes'](_0x53d22f))return'numbered';return null;}(_0x47819f)['toUpperCase']()+'_LIST_'+_0x47819f['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x438b1d{['afterInit'](){const _0x346b09=this['editor'];_0x346b09['commands']['get']('emoji')&&_0x346b09['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x438b1d{static get['requires'](){return[_0x4ce41d];}['init'](){const _0x197f3f=this['editor'],_0x10e83a=_0x197f3f['plugins']['get']('TrackChangesEditing'),_0x3414b7=_0x197f3f['commands']['get']('enter');_0x10e83a['enableCommand']('enter',()=>{_0x197f3f['model']['change'](_0xd2052b=>{const _0x36b91d=_0x197f3f['model']['document']['selection'],_0x331421=_0x36b91d['getFirstPosition'](),_0x37e0e7=_0x41f621['fromRange'](_0x36b91d['getFirstRange']());if(_0x3414b7['enterBlock'](_0xd2052b)){const _0x134940=_0x197f3f['model']['createPositionAt'](_0x331421['parent']['nextSibling'],0x0),_0x3ce444=_0xd2052b['createRange'](_0x331421,_0x134940);_0x10e83a['markInsertion'](_0x3ce444);}else _0xd2052b['setSelection'](_0xd2052b['createRange'](_0x37e0e7['end']));_0x37e0e7['detach'](),_0x3414b7['fire']('afterExecute',{'writer':_0xd2052b});});}),_0x197f3f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x197f3f,'split'),{'priority':'high'}),_0x197f3f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x103cdc,_0x13b008,_0x5ea863)=>{const _0x139a60=_0x5ea863['mapper']['markerNameToElements'](_0x13b008['markerName']);if(_0x139a60){for(const _0x3bb01b of _0x139a60)_0x3bb01b['hasClass']('ck-suggestion-marker-split')&&(_0x5ea863['mapper']['unbindElementFromMarkerName'](_0x3bb01b,_0x13b008['markerName']),_0x5ea863['writer']['remove'](_0x3bb01b));}},{'priority':'high'}),_0x197f3f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c45ef,_0xc8132d,_0x43c73d)=>{_0x43c73d['options']['showSuggestionHighlights']&&Ve(_0x197f3f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5c45ef,_0xc8132d,_0x43c73d);},{'priority':'high'});}}class it extends _0x438b1d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d7c6d=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d7c6d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d7c6d['enableCommand']('findNext'),_0x5d7c6d['enableCommand']('findPrevious'),_0x5d7c6d['enableCommand']('replace'),_0x5d7c6d['enableCommand']('replaceAll');}['handleFindCommand'](_0x1e53e8,_0x4211ee,_0x838a7a={}){const _0x2c72be=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1e53e8(_0x267a8b=>{let _0x46b18d=('string'==typeof _0x4211ee?_0x2c72be['findByTextCallback'](_0x4211ee,_0x838a7a):_0x4211ee)(_0x267a8b);Array['isArray'](_0x46b18d)&&(_0x46b18d={'results':_0x46b18d,'searchText':'string'==typeof _0x4211ee?_0x4211ee:''});const _0x4c33d9=_0x46b18d['results']['filter'](_0x518dae=>!0x1===this['_isInDeletionRange'](_0x518dae,_0x267a8b['item']));return{..._0x46b18d,'results':_0x4c33d9};},_0x838a7a);}['_isInDeletionRange'](_0x3560e5,_0x2f917b){const _0x76aa8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f917b,_0x3560e5['start']),this['editor']['model']['createPositionAt'](_0x2f917b,_0x3560e5['end']));for(const _0x1154fa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x76aa8['getIntersection'](_0x1154fa['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x438b1d{['afterInit'](){const _0x27845c=this['editor']['locale'],_0x2dd7fd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2d2936,commandName:_0x65f0a1}of eo)this['editor']['plugins']['has'](_0x2d2936)&&(_0x2dd7fd['enableDefaultAttributesIntegration'](_0x65f0a1),_0x2dd7fd['registerInlineAttribute'](_0x65f0a1));_0x2dd7fd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x27845c,'FORMAT_FONT_SIZE')),_0x2dd7fd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x27845c,'FORMAT_FONT_FAMILY')),_0x2dd7fd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x27845c,'FORMAT_FONT_COLOR')),_0x2dd7fd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x27845c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39633f=this['editor'],_0x29186f=_0x39633f['locale'];_0x39633f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178e7f=>{const _0x551dc1=_0x29186f['t'];if('formatInline'!=_0x178e7f['type'])return;const {data:_0x251c55}=_0x178e7f;if(null!=_0x251c55){if('fontSize'==_0x251c55['commandName']){const _0x4aee32=_0x251c55['commandParams'][0x0]['value'];if(_0x4aee32){const _0x191dc0=_0x551dc1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d68fb=>_0x4d68fb['model']==_0x4aee32)['title'])['toLowerCase']();return{'type':'format','content':o(_0x29186f,'*Set\x20font\x20size:*\x20%0',_0x191dc0)};}return{'type':'format','content':o(_0x29186f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x251c55['commandName']){const _0x244ff5=_0x251c55['commandParams'][0x0]['value'];return _0x244ff5?{'type':'format','content':o(_0x29186f,'*Set\x20font\x20family:*\x20%0',_0x244ff5)}:{'type':'format','content':o(_0x29186f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x251c55['commandName']){const _0x595e1a=_0x251c55['commandParams'][0x0]['value'];if(_0x595e1a){const _0x1627e8=_0x9b5773(this['editor']['config']['get']('fontColor.colors'))['find'](_0x240cc3=>_0x240cc3['model']==_0x595e1a);let _0x46374e=_0x595e1a,_0x4678b6='';return _0x1627e8&&(_0x46374e=_0x1627e8['label'],_0x4678b6=_0x551dc1(_0x46374e)['toLowerCase']()),{'type':'format','content':o(_0x29186f,'*Set\x20font\x20color:*\x20%0',_0x4678b6)['trim'](),'color':{'value':_0x595e1a,'title':_0x4678b6||_0x46374e}};}return{'type':'format','content':o(_0x29186f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x251c55['commandName']){const _0x231139=_0x251c55['commandParams'][0x0]['value'];if(_0x231139){const _0x4d2b96=_0x9b5773(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x243688=>_0x243688['model']==_0x231139);let _0x1daa72=_0x231139,_0x9f8ddd='';return _0x4d2b96&&(_0x1daa72=_0x4d2b96['label'],_0x9f8ddd=_0x551dc1(_0x1daa72)['toLowerCase']()),{'type':'format','content':o(_0x29186f,'*Set\x20font\x20background\x20color:*\x20%0',_0x9f8ddd)['trim'](),'color':{'value':_0x231139,'title':_0x9f8ddd||_0x1daa72}};}return{'type':'format','content':o(_0x29186f,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x438b1d{['afterInit'](){const {plugins:_0x34bec4}=this['editor'];_0x34bec4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x34bec4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2ba5fe,plugins:_0x4e54cf,commands:_0x437e75}=this['editor'],_0xf95682=_0x4e54cf['get']('TrackChangesEditing');_0x437e75['get']('footnotesStyle')&&_0xf95682['enableDefaultAttributesIntegration']('footnotesStyle'),_0x437e75['get']('footnotesStart')&&_0xf95682['enableDefaultAttributesIntegration']('footnotesStart'),_0xf95682['registerBlockAttribute']('footnotesListStyle'),_0xf95682['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2ba5fe,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xf95682['registerBlockAttribute']('footnotesListStart'),_0xf95682['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2ba5fe,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1219ca=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2481ad,commands:_0x778997}=this['editor'];_0x778997['get']('insertFootnote')&&_0x1219ca['enableCommand']('insertFootnote'),_0x1219ca['descriptionFactory']['registerElementLabel']('footnoteRef',_0x460bdb=>o(_0x2481ad,'ELEMENT_FOOTNOTE_REF',_0x460bdb)),_0x1219ca['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x48fd6b=>o(_0x2481ad,'ELEMENT_FOOTNOTE_DEFINITION',_0x48fd6b)),_0x1219ca['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x39533e=>o(_0x2481ad,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x39533e));}}class ot extends _0x438b1d{['afterInit'](){const _0x31c64f=this['editor'],_0x1e52c6=_0x31c64f['plugins']['get']('TrackChangesEditing'),_0x18a5eb=_0x31c64f['commands']['get']('copyFormat'),_0x19c153=_0x31c64f['commands']['get']('pasteFormat');_0x18a5eb&&_0x19c153&&(_0x1e52c6['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e52c6['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x380a41=this['editor'],_0x379e6b=_0x380a41['locale'];_0x380a41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b286a=>{if('formatBlock'!=_0x1b286a['type']&&'formatInline'!=_0x1b286a['type'])return;const {data:_0x46ae85}=_0x1b286a;if(_0x46ae85&&'pasteFormat'===_0x46ae85['commandName']){const _0x29ae53=[],_0x55c804=_0x46ae85['commandParams'][0x0];for(const [_0x28acc0,_0x3e205a]of Object['entries'](_0x55c804))_0x29ae53['push'](ro(_0x380a41,_0x28acc0,_0x3e205a));return _0x29ae53['length']?{'type':'format','content':o(_0x379e6b,'*Set\x20format\x20to:*\x20%0',_0x29ae53['join'](',\x20'))}:{'type':'format','content':o(_0x379e6b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x37d322,_0x1eff24,_0x54c14e){const _0x4e8278=_0x37d322['locale']['t'],_0x108f37=_0x1eff24['split'](/(?=[A-Z])/)['join']('\x20'),_0x410e49=_0x4e8278(_0x108f37['charAt'](0x0)['toUpperCase']()+_0x108f37['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x54c14e)return _0x410e49;if('fontColor'===_0x1eff24||'fontBackgroundColor'===_0x1eff24){const _0x3fab74=_0x9b5773(_0x37d322['config']['get']('fontColor.colors'))['find'](_0x175604=>_0x175604['model']==_0x54c14e);return _0x410e49+'\x20('+(_0x3fab74?_0x4e8278(_0x3fab74['label'])['toLowerCase']():_0x54c14e)+')';}if('fontSize'===_0x1eff24&&isNaN(parseFloat(_0x54c14e))){const _0x2219d0=_0x37d322['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37d322['config']['get']('fontSize.options'))['find'](_0x4157cf=>_0x4157cf['model']==_0x54c14e);return _0x410e49+'\x20('+(_0x2219d0?_0x4e8278(_0x2219d0['title'])['toLowerCase']():_0x54c14e)+')';}return _0x410e49+'\x20('+_0x54c14e+')';}class rt extends _0x438b1d{['_headingOptions'];['afterInit'](){const _0x5bd254=this['editor'];if(!_0x5bd254['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5bd254['config']['get']('heading.options');const _0x36ef9a=_0x5bd254['locale'],_0x52e891=_0x5bd254['plugins']['get']('TrackChangesEditing');_0x52e891['enableDefaultAttributesIntegration']('heading');for(const _0x120eed of this['_headingOptions'])'paragraph'!=_0x120eed['model']&&_0x52e891['descriptionFactory']['registerElementLabel'](_0x120eed['model'],_0x126ec8=>{const _0x235e20=this['_getHeadingLevel'](_0x120eed['model']);return null!==_0x235e20?_0x377a74(_0x126ec8,_0x235e20):_0x5e91ce(_0x126ec8,_0x120eed['title']);});function _0x377a74(_0x45cdf2,_0x59a530){return o(_0x36ef9a,'ELEMENT_HEADING',[_0x45cdf2,_0x59a530]);}function _0x5e91ce(_0x342d6f,_0x25d826){return o(_0x36ef9a,'ELEMENT_HEADING_CUSTOM',[_0x342d6f,_0x25d826]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ba93f=this['editor'],_0x47909b=_0x5ba93f['locale'];function _0x5e3d2d(_0x2be7da,_0x15d69f){return o(_0x47909b,'ELEMENT_HEADING_CUSTOM',[_0x2be7da,_0x15d69f]);}_0x5ba93f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c9c96=>{if('formatBlock'!=_0x2c9c96['type'])return;const {data:_0xd1eb56}=_0x2c9c96;if(_0xd1eb56&&'heading'==_0xd1eb56['commandName']){const _0x5dcd12=_0xd1eb56['commandParams'][0x0]['value'],_0x5ca159=this['_getHeadingLevel'](_0x5dcd12);if(null!==_0x5ca159)return{'type':'format','content':o(_0x47909b,'*Change\x20to:*\x20%0',(_0x4f9078=0x1,_0x354b9a=_0x5ca159,o(_0x47909b,'ELEMENT_HEADING',[_0x4f9078,_0x354b9a])))};const _0x314a3d=this['_headingOptions']['find'](_0x1d9d01=>_0x1d9d01['model']===_0x5dcd12)['title'];return{'type':'format','content':o(_0x47909b,'*Change\x20to:*\x20%0',_0x5e3d2d(0x1,_0x314a3d))};}var _0x4f9078,_0x354b9a;});}['_getHeadingLevel'](_0x2ca6fd){const _0x44e7e6=_0x2ca6fd['match'](/^heading(\d+)/);if(_0x44e7e6)return _0x44e7e6[0x1];const _0x537048=this['_headingOptions']?.['find'](_0x1a8ab3=>_0x1a8ab3['model']==_0x2ca6fd);if(_0x537048&&_0x537048['view']){const _0x384885=_0x537048['view'],_0x33aaaa=(_0x384885['name']??_0x384885)['match'](/^h(\d+)/);if(_0x33aaaa)return _0x33aaaa[0x1];}return null;}}class at extends _0x438b1d{['afterInit'](){const _0x1f99e6=this['editor'];if(!_0x1f99e6['plugins']['has']('HighlightEditing'))return;const _0xc5bdb7=_0x1f99e6['plugins']['get']('TrackChangesEditing'),_0x3927aa=_0x1f99e6['locale'];_0xc5bdb7['enableDefaultAttributesIntegration']('highlight'),_0xc5bdb7['registerInlineAttribute']('highlight'),_0xc5bdb7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3927aa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ee311=this['editor'],_0x4d3d07=_0x3ee311['locale'];_0x3ee311['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x196195=>{if('formatInline'!=_0x196195['type'])return;const {data:_0x18372a}=_0x196195;if(_0x18372a&&'highlight'==_0x18372a['commandName']){const _0x816be=_0x4d3d07['t'],_0x4dc8b1=_0x18372a['commandParams'][0x0]['value'];if(_0x4dc8b1){const _0x4cb0e9=_0x3ee311['config']['get']('highlight.options')['find'](_0x5527e=>_0x5527e['model']==_0x4dc8b1),_0x20aef4=_0x816be(_0x4cb0e9['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d3d07,'*Set\x20highlight:*\x20%0',_0x20aef4),'color':{'value':_0x4cb0e9['color'],'title':_0x4cb0e9['title']}};}return{'type':'format','content':o(_0x4d3d07,'*Remove\x20highlight*',o(_0x4d3d07,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x438b1d{['afterInit'](){const _0xded9b9=this['editor'];if(!_0xded9b9['plugins']['has']('HorizontalLineEditing'))return;_0xded9b9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xb27605=_0xded9b9['plugins']['get']('TrackChangesEditing'),_0x48ea5e=_0xded9b9['locale'];_0xb27605['descriptionFactory']['registerElementLabel']('horizontalLine',_0x106447=>o(_0x48ea5e,'ELEMENT_HORIZONTAL_LINE',_0x106447)),_0xded9b9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x44acd5,{writer:_0x21deb6,options:_0x57eea3})=>{if(!_0x57eea3['showSuggestionHighlights'])return null;const _0x4cf2f5=_0x21deb6['createContainerElement']('div'),_0x403a32=_0x21deb6['createEmptyElement']('hr');return _0x21deb6['addClass']('ck-horizontal-line',_0x4cf2f5),_0x21deb6['insert'](_0x21deb6['createPositionAt'](_0x4cf2f5,0x0),_0x403a32),_0x4cf2f5;},'converterPriority':'high'});}}class ut extends _0x438b1d{['afterInit'](){const _0x526048=this['editor'];if(!_0x526048['plugins']['has']('HtmlEmbed'))return;const _0x1e04c0=_0x526048['plugins']['get']('TrackChangesEditing'),_0xee8e03=_0x526048['locale'];_0x1e04c0['descriptionFactory']['registerElementLabel']('rawHtml',_0x4c2384=>o(_0xee8e03,'ELEMENT_HTML_EMBED',_0x4c2384)),_0x1e04c0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1e04c0['registerBlockAttribute']('value'),_0x1e04c0['descriptionFactory']['registerDescriptionCallback'](_0x478524=>{if('attribute'!=_0x478524['type'])return;const {data:_0x2a31fa}=_0x478524;if(_0x2a31fa&&'value'==_0x2a31fa['key']&&_0x478524['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3eb5c7=o(_0xee8e03,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xee8e03,'*Change\x20%0\x20content*',_0x3eb5c7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a5716=this['editor'],_0x29ea21=_0x3a5716['locale'];_0x3a5716['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c2c28=>{if('formatBlock'!=_0x4c2c28['type'])return;const {data:_0x3d70f0}=_0x4c2c28;if(_0x3d70f0&&'htmlEmbed'==_0x3d70f0['commandName']){const _0x18ac84=o(_0x29ea21,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x29ea21,'*Change\x20%0\x20content*',_0x18ac84)};}});}}class ft extends _0x438b1d{['afterInit'](){const _0x28c796=this['editor'];if(!_0x28c796['plugins']['has']('ImageEditing'))return;const _0x3fc225=_0x28c796['plugins']['get']('TrackChangesEditing'),_0x6dd8dc=_0x28c796['plugins']['get']('ImageUtils'),_0x5a35cb=_0x28c796['locale'];_0x3fc225['enableCommand']('insertImage'),_0x3fc225['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c524c=>o(_0x5a35cb,'ELEMENT_IMAGE',_0x1c524c)),_0x3fc225['descriptionFactory']['registerElementLabel']('imageInline',_0x1668fa=>o(_0x5a35cb,'ELEMENT_INLINE_IMAGE',_0x1668fa)),_0x3fc225['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5a35cb,'ELEMENT_CAPTION')),_0x28c796['plugins']['has']('ImageUploadEditing')&&_0x3fc225['enableCommand']('uploadImage'),_0x28c796['plugins']['has']('ImageBlockEditing')&&_0x28c796['plugins']['has']('ImageInlineEditing')&&(_0x3fc225['enableCommand']('imageTypeInline',(_0x1858a9,_0x9d8273)=>{const _0x534789=_0x6dd8dc['getClosestSelectedImageElement'](_0x28c796['model']['document']['selection']);_0x28c796['model']['change'](()=>{_0x3fc225['markBlockFormat'](_0x534789,{'commandName':'imageTypeInline','commandParams':[_0x9d8273]},[],'convertBlockImageToInline');});}),_0x3fc225['enableCommand']('imageTypeBlock',(_0x1bcdbd,_0x9ec81c)=>{_0x28c796['model']['change'](_0x5c52b6=>{let _0x42c034=_0x6dd8dc['getClosestSelectedImageElement'](_0x28c796['model']['document']['selection']),_0x4dca41=_0x5c52b6['createRangeOn'](_0x42c034);const _0x4720c8=_0x47d78f['fromPosition'](_0x4dca41['start'],'toPrevious'),_0x3016ac=_0x47d78f['fromPosition'](_0x4dca41['end'],'toNext');_0x3fc225['forceDefaultExecution'](()=>_0x1bcdbd(_0x9ec81c)),_0x42c034=_0x6dd8dc['getClosestSelectedImageElement'](_0x28c796['model']['document']['selection']),_0x4dca41=_0x5c52b6['createRangeOn'](_0x42c034);const _0x1fb9e2=_0x5c52b6['createRange'](_0x4720c8,_0x3016ac);_0x4720c8['detach'](),_0x3016ac['detach'](),_0x3fc225['markBlockFormat'](_0x42c034,{'commandName':'imageTypeInline','commandParams':[_0x9ec81c]},[],'convertInlineImageToBlock'),_0x1fb9e2['start']['isBefore'](_0x4dca41['start'])&&_0x3fc225['markInsertion'](_0x5c52b6['createRange'](_0x1fb9e2['start'],_0x4dca41['start']),'convertInlineImageToBlock'),_0x4dca41['end']['isBefore'](_0x1fb9e2['end'])&&_0x3fc225['markInsertion'](_0x5c52b6['createRange'](_0x4dca41['end'],_0x1fb9e2['end']),'convertInlineImageToBlock');});}),_0x3fc225['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3fc225['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3fc225['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3fc225['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3fc225['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3fc225['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5eb33d])=>{const _0xc2ddce=_0x3fc225['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x276edc=_0x5eb33d['start'],_0x20d745=_0x5eb33d['end'];const _0x77dcc3=_0x28c796['model']['schema']['getNearestSelectionRange'](_0x276edc,'backward'),_0x43bb80=_0x28c796['model']['schema']['getNearestSelectionRange'](_0x20d745,'forward');_0x77dcc3['isCollapsed']&&(_0x276edc=_0x77dcc3['start']),_0x43bb80['isCollapsed']&&(_0x20d745=_0x43bb80['end']),_0xc2ddce([_0x28c796['model']['createRange'](_0x276edc,_0x20d745)]);}),_0x3fc225['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x31cf4d),_0x3fc225['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x31cf4d)),_0x28c796['plugins']['has']('ImageCaptionEditing')&&(_0x3fc225['enableCommand']('toggleImageCaption',(_0x5db143,_0x2c80b7)=>{const _0x598289=_0x28c796['plugins']['get']('ImageCaptionUtils');let _0x4e6b93=_0x6dd8dc['getClosestSelectedImageElement'](_0x28c796['model']['document']['selection']),_0x1b0793=_0x598289['getCaptionFromImageModelElement'](_0x4e6b93);_0x28c796['model']['change'](()=>{if(_0x1b0793)return void _0x3fc225['markDeletion'](_0x28c796['model']['createRangeOn'](_0x1b0793));const _0x2921ae=_0x6dd8dc['isBlockImage'](_0x4e6b93);_0x5db143(_0x2c80b7),_0x4e6b93=_0x6dd8dc['getClosestSelectedImageElement'](_0x28c796['model']['document']['selection']),_0x1b0793=_0x598289['getCaptionFromImageModelElement'](_0x4e6b93),_0x3fc225['markInsertion'](_0x28c796['model']['createRangeOn'](_0x1b0793),_0x2921ae?null:'imageCaption');});}),_0x3fc225['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x31cf4d));const _0x59729c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3405b0(_0x4a8c86,_0x424984){const _0x159527=_0x59729c['findIndex'](({type:_0x587a7f,subType:_0x1358a1})=>_0x4a8c86['type']==_0x587a7f&&_0x4a8c86['subType']==_0x1358a1),_0x24d85=_0x59729c['findIndex'](({type:_0x1466ef,subType:_0x4571c6})=>_0x424984['type']==_0x1466ef&&_0x424984['subType']==_0x4571c6);if(_0x159527<0x0||_0x24d85<0x0)return!0x1;const _0x7f8db5=_0x4a8c86['getFirstRange'](),_0x454a29=_0x424984['getFirstRange']();if((0x0==_0x159527||0x1==_0x159527)&&0x2==_0x24d85&&_0x7f8db5['isIntersecting'](_0x454a29))return!0x0;if(0x2==_0x159527&&0x3==_0x24d85){const _0x5db1ae=_0x3fc225['_findSuggestions'](_0x7f8db5,'insertion')['filter'](({suggestion:_0x5ac200,meta:_0x3d4df0})=>_0x3d4df0['isOwn']&&'convertInlineImageToBlock'==_0x5ac200['subType']);if(_0x5db1ae['length']>0x1&&_0x454a29['end']['isEqual'](_0x7f8db5['start']))return!0x0;if(0x1==_0x5db1ae['length']&&(_0x7f8db5['start']['isEqual'](_0x454a29['end'])||_0x7f8db5['end']['isEqual'](_0x454a29['start'])))return!0x0;}if(0x3==_0x159527&&0x3==_0x24d85&&_0x7f8db5['start']['isBefore'](_0x454a29['start'])){const _0x3555fa=_0x7f8db5['end']['nodeAfter'],_0x3daf45=_0x454a29['start']['nodeBefore'];return _0x6dd8dc['isBlockImage'](_0x3555fa)&&_0x3555fa===_0x3daf45;}return!0x1;}function _0x31cf4d(_0x115a01,_0x2efe42){return _0x3405b0(_0x115a01,_0x2efe42)?[_0x115a01,_0x2efe42]:_0x3405b0(_0x2efe42,_0x115a01)?[_0x2efe42,_0x115a01]:null;}_0x28c796['plugins']['has']('ImageResize')&&(_0x3fc225['enableDefaultAttributesIntegration']('resizeImage'),_0x3fc225['registerBlockAttribute']('resizedWidth'),_0x3fc225['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5a35cb,'FORMAT_IMAGE_SIZE'))),_0x28c796['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3fc225['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3fc225['registerBlockAttribute']('alt')),_0x28c796['plugins']['has']('PictureEditing')&&(_0x3fc225['registerBlockAttribute']('sources'),_0x3fc225['descriptionFactory']['registerDescriptionCallback'](_0x47276d=>{if('attribute'!=_0x47276d['type'])return;const {data:_0x2f9597}=_0x47276d;return _0x2f9597&&'sources'==_0x2f9597['key']?{'type':'format','content':''}:void 0x0;})),_0x28c796['plugins']['has']('ImageSizeAttributes')&&(_0x3fc225['registerBlockAttribute']('width'),_0x3fc225['registerBlockAttribute']('height'),_0x3fc225['descriptionFactory']['registerDescriptionCallback'](_0x217bc4=>{if('attribute'!=_0x217bc4['type'])return;const {data:_0x49859f}=_0x217bc4;return!_0x49859f||'width'!=_0x49859f['key']&&'height'!=_0x49859f['key']?void 0x0:{'type':'format','content':''};})),_0x3fc225['descriptionFactory']['registerDescriptionCallback'](_0x563027=>{if(!!_0x59729c['find'](({type:_0x572e11,subType:_0x26712d})=>_0x563027['type']==_0x572e11&&_0x563027['subType']==_0x26712d))return _0x563027['previous']?{}:void 0x0;}),_0x3fc225['descriptionFactory']['registerDescriptionCallback'](_0x50cb42=>{if('insertion'==_0x50cb42['type']||'deletion'==_0x50cb42['type']){const _0x128062=_0x50cb42['getContainedElement']();if(_0x128062&&_0x128062['is']('element','caption'))return{'type':'insertion'==_0x50cb42['type']?'addObject':'removeObject','element':_0x128062,'quantity':0x1};}}),_0x3fc225['descriptionFactory']['registerDescriptionCallback'](_0x329b04=>'formatBlock'==_0x329b04['type']&&'convertInlineImageToBlock'==_0x329b04['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x329b04['type']&&'convertBlockImageToInline'==_0x329b04['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3fc225['descriptionFactory']['registerDescriptionCallback'](_0x2106b4=>{if('attribute'!=_0x2106b4['type'])return;const {data:_0x5e6f84}=_0x2106b4;if(!_0x5e6f84||'alt'!=_0x5e6f84['key'])return;const _0x3d037e=_0x5e6f84['newValue'];return _0x3d037e?{'type':'format','content':o(_0x5a35cb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3d037e+'\x22')}:{'type':'format','content':o(_0x5a35cb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d51c3=this['editor'],_0x5a39a2=_0x2d51c3['locale'];_0x2d51c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32c800=>{if('formatBlock'!=_0x32c800['type']&&'formatInline'!=_0x32c800['type'])return;const {data:_0x351f90}=_0x32c800;if(_0x351f90){if('imageTextAlternative'==_0x351f90['commandName']){const _0x532867=_0x351f90['commandParams'][0x0]['newValue'];return _0x532867?{'type':'format','content':o(_0x5a39a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x532867+'\x22')}:{'type':'format','content':o(_0x5a39a2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x351f90['commandName']){const _0x58c3e5=_0x351f90['commandParams'][0x0]['width'];return _0x58c3e5?{'type':'format','content':o(_0x5a39a2,'*Set\x20image\x20width:*\x20%0',_0x58c3e5)}:{'type':'format','content':o(_0x5a39a2,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x438b1d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d5933=this['editor']['locale'],_0x31c97e=this['editor']['plugins']['get']('TrackChangesEditing');_0x31c97e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31c97e['registerBlockAttribute']('src'),_0x31c97e['descriptionFactory']['registerDescriptionCallback'](_0x5e4b85=>{if('attribute'!=_0x5e4b85['type'])return;const {data:_0x2307db}=_0x5e4b85;return _0x2307db&&'src'==_0x2307db['key']?_0x2307db['newValue']&&_0x2307db['oldValue']?{'type':'format','content':o(_0x3d5933,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3afb79=this['editor']['plugins']['get']('TrackChangesEditing');_0x3afb79['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3afb79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3afb79['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3afb79['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36b5b0=this['editor'],_0x20da40=_0x36b5b0['locale'];_0x36b5b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45e3ab=>{if('formatBlock'!=_0x45e3ab['type']&&'formatInline'!=_0x45e3ab['type'])return;const {data:_0x51f34d}=_0x45e3ab;if(!_0x51f34d||'replaceImageSource'!=_0x51f34d['commandName'])return;return{'type':'format','content':o(_0x20da40,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x438b1d{['afterInit'](){const _0x37035e=this['editor'];if(!_0x37035e['plugins']['has']('ImageStyleEditing'))return;const _0x5414a1=_0x37035e['plugins']['get']('TrackChangesEditing'),_0x282ba1=_0x37035e['plugins']['get']('ImageUtils'),_0x3410df={};_0x5414a1['enableCommand']('imageStyle',(_0x51e6f1,_0x321bca)=>{const _0x4bf55d=_0x37035e['plugins']['get']('Users')['me'],_0x468e3f=_0x37035e['commands']['get']('imageStyle');let _0x1a33e0=_0x282ba1['getClosestSelectedImageElement'](_0x37035e['model']['document']['selection']),_0x14510c=_0x37035e['model']['createRangeOn'](_0x1a33e0),_0x2581fe=_0x468e3f['value'];if(_0x2581fe==_0x321bca['value'])return;const _0x59a7f2={'commandName':'imageStyle','commandParams':[_0x321bca],'formatGroupId':_0x47bc50()};_0x37035e['model']['change'](()=>{if(_0x5414a1['getSuggestions']()['filter'](_0x4d7c65=>_0x4d7c65['isInContent']&&_0x4bf55d==_0x4d7c65['author']&&('formatBlock'==_0x4d7c65['type']||'formatInline'==_0x4d7c65['type'])&&('imageStylePreApply'==_0x4d7c65['subType']||'imageStylePostApply'==_0x4d7c65['subType'])&&_0x4d7c65['getFirstRange']()['isEqual'](_0x14510c))['forEach'](_0x5dac05=>_0x5414a1['discardSuggestion'](_0x5dac05['head'])),_0x1a33e0=_0x282ba1['getClosestSelectedImageElement'](_0x37035e['model']['document']['selection']),_0x14510c=_0x37035e['model']['createRangeOn'](_0x1a33e0),_0x468e3f['refresh'](),_0x37035e['commands']['get']('imageTypeInline')['refresh'](),_0x37035e['commands']['get']('imageTypeBlock')['refresh'](),_0x2581fe=_0x468e3f['value'],_0x2581fe!=_0x321bca['value'])return _0x282ba1['isInlineImage'](_0x1a33e0)&&_0x468e3f['shouldConvertImageType'](_0x321bca['value'],_0x1a33e0)?(_0x51e6f1({..._0x321bca,'setImageSizes':!0x1}),_0x1a33e0=_0x282ba1['getClosestSelectedImageElement'](_0x37035e['model']['document']['selection']),void _0x5414a1['markBlockFormat'](_0x1a33e0,{..._0x59a7f2,'commandReversedParams':[{'value':_0x2581fe||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x282ba1['isBlockImage'](_0x1a33e0)?_0x5414a1['markBlockFormat'](_0x1a33e0,_0x59a7f2,[],'imageStylePostApply'):_0x5414a1['markInlineFormat'](_0x14510c,_0x59a7f2,'imageStylePostApply'));});});for(const _0x16af6b of _0x37035e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3410df[_0x16af6b['name']]=_0x16af6b['title']['toLowerCase']();_0x5414a1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5414a1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5414a1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5414a1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x479131])=>{_0x282ba1['setImageNaturalSizeAttributes'](_0x479131['getContainedElement']());}),_0x5414a1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x474254,_0x1e6822)=>{_0x5414a1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x474254,{'commandName':_0x1e6822['commandName'],'commandParams':_0x1e6822['commandReversedParams']});}),_0x5414a1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5c6027,_0x38e7e5){if(_0x5c6ab1(_0x5c6027,_0x38e7e5))return[_0x5c6027,_0x38e7e5];if(_0x5c6ab1(_0x38e7e5,_0x5c6027))return[_0x38e7e5,_0x5c6027];return null;});const _0x5ecd3b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c6ab1(_0x56d0cd,_0x22bbd7){const _0x104928=_0x5ecd3b['findIndex'](({type:_0x4164af,subType:_0x589378})=>_0x56d0cd['type']==_0x4164af&&_0x56d0cd['subType']==_0x589378),_0x1e76a9=_0x5ecd3b['findIndex'](({type:_0x3e569d,subType:_0x5a6ef3})=>_0x22bbd7['type']==_0x3e569d&&_0x22bbd7['subType']==_0x5a6ef3);if(_0x104928<0x0||_0x1e76a9<0x0)return!0x1;const _0x13aae6=_0x56d0cd['getFirstRange'](),_0xa33761=_0x22bbd7['getFirstRange']();if((0x0==_0x104928||0x1==_0x104928)&&0x2==_0x1e76a9&&_0x13aae6['isIntersecting'](_0xa33761))return!0x0;if(0x2==_0x104928&&0x3==_0x1e76a9){const _0x59a341=_0x5414a1['_findSuggestions'](_0x13aae6,'insertion')['filter'](({suggestion:_0x14eab4,meta:_0x5a9a32})=>_0x5a9a32['isOwn']&&'convertInlineImageToBlock'==_0x14eab4['subType']);if(_0x59a341['length']>0x1&&_0xa33761['end']['isEqual'](_0x13aae6['start']))return!0x0;if(0x1==_0x59a341['length']&&(_0x13aae6['start']['isEqual'](_0xa33761['end'])||_0x13aae6['end']['isEqual'](_0xa33761['start'])))return!0x0;}if(0x3==_0x104928&&0x3==_0x1e76a9&&_0x13aae6['start']['isBefore'](_0xa33761['start'])){const _0x523214=_0x13aae6['end']['nodeAfter'],_0x7c11fc=_0xa33761['start']['nodeBefore'];return _0x282ba1['isBlockImage'](_0x523214)&&_0x523214===_0x7c11fc;}return!0x1;}_0x37035e['model']['document']['registerPostFixer'](()=>{let _0x3aec21=!0x1;const _0xd6e57d=Array['from'](_0x37035e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31130a,data:_0x55c259}of _0xd6e57d){const {group:_0x3136c8,type:_0x50f1c8,subType:_0x403574,id:_0x2c9d32}=_0x5414a1['_splitMarkerName'](_0x31130a);if('suggestion'==_0x3136c8&&_0x5414a1['hasSuggestion'](_0x2c9d32)){if('formatBlock'==_0x50f1c8&&('imageStylePreApply'==_0x403574||'imageStylePostApply'==_0x403574)){const _0x5baea9=_0x5414a1['getSuggestion'](_0x2c9d32);if(_0x55c259['newRange']){const _0x5720ad=_0x5baea9['getFirstRange']()['getContainedElement']();if(_0x282ba1['isBlockImage'](_0x5720ad))continue;_0x5414a1['discardSuggestion'](_0x5baea9),_0x3aec21=!0x0;}}if('insertion'==_0x50f1c8&&'imageCaption'==_0x403574&&!_0x55c259['newRange']){const _0x37dedc=_0x5414a1['getSuggestion'](_0x2c9d32);_0x37dedc['next']&&_0x37dedc['next']['isInContent']&&(_0x5414a1['discardSuggestion'](_0x37dedc['next']),_0x3aec21=!0x0);}}}return _0x3aec21;}),this['_registerLegacyDescription'](_0x3410df);}['_registerLegacyDescription'](_0x404278){const _0x364e82=this['editor'],_0x47d8ba=_0x364e82['locale'];_0x364e82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3846f9=>{if('formatBlock'!=_0x3846f9['type']&&'formatInline'!=_0x3846f9['type'])return;const {data:_0x55dabd}=_0x3846f9;if(!_0x55dabd||'imageStyle'!=_0x55dabd['commandName'])return;const _0x1a03b9=_0x55dabd['commandParams'][0x0]['value'];return _0x411965('side'===_0x1a03b9?o(_0x47d8ba,'FORMAT_SIDE_IMAGE'):_0x404278[_0x1a03b9]||_0x1a03b9);function _0x411965(_0x25edd5){return{'type':'format','content':o(_0x47d8ba,'*Format:*\x20%0',_0x25edd5)};}});}}class lt extends _0x438b1d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3531fb){super(_0x3531fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x37e761=this['editor'],_0x41f656=_0x37e761['commands']['get']('importWord'),_0x19fe3e=_0x37e761['commands']['get']('trackChanges');_0x41f656&&(_0x41f656['on']('execute',(_0x126777,[,_0x5080e9])=>{this['_trackChangesValueDuringImport']=_0x19fe3e['value'],_0x5080e9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41f656,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41f656,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x19fe3e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x37e761['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46dcb6,_0xaf8e27){const {suggestions:_0x329341}=_0xaf8e27,_0x2b6e85=this['editor']['commands']['get']('trackChanges'),_0x1d5c28=_0x2b6e85['value'];this['_trackChangesValueDuringImport']!==_0x1d5c28&&(_0x2b6e85['execute'](),this['_trackChangesExecuted']=!0x0),_0x329341&&_0x329341['forEach'](({id:_0x1cdc54,type:_0x2d8dd3,author:_0x3b0957,created_at:_0x2c4621})=>{const _0x396784={'id':_0x1cdc54,'type':_0x2d8dd3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3b0957,'createdAt':_0x2c4621?new Date(_0x2c4621):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x396784);});}}class mt extends _0x438b1d{['afterInit'](){const _0x36506a=this['editor'],_0x5e5981=_0x36506a['plugins']['get']('TrackChangesEditing');if(_0x36506a['plugins']['has']('IndentEditing')&&(_0x5e5981['enableCommand']('indent'),_0x5e5981['enableCommand']('outdent')),_0x36506a['plugins']['has']('IndentBlock')){for(const _0x1eda81 of['indentBlock','outdentBlock'])_0x5e5981['enableDefaultAttributesIntegration'](_0x1eda81);}const _0xca1f5=_0x36506a['locale'];_0x5e5981['registerBlockAttribute']('blockIndent'),_0x5e5981['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xca1f5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56a7a1=this['editor'],_0x47d65e=_0x56a7a1['locale'],_0x5aefd9=_0x56a7a1['plugins']['get']('TrackChangesEditing');_0x5aefd9['descriptionFactory']['registerDescriptionCallback'](_0x2b8826=>{if('formatBlock'!=_0x2b8826['type'])return;const {data:_0x591723}=_0x2b8826;if(!_0x591723)return;if('indentBlock'!=_0x591723['commandName']&&'outdentBlock'!=_0x591723['commandName'])return;const _0xcae837=_0x2b8826['getItems']()[0x0],_0x2d8a0c=_0x5aefd9['descriptionFactory']['getItemLabel'](_0xcae837);return'indentBlock'==_0x591723['commandName']?{'type':'format','content':o(_0x47d65e,'*Indent:*\x20%0',_0x2d8a0c)}:'outdentBlock'==_0x591723['commandName']?{'type':'format','content':o(_0x47d65e,'*Outdent:*\x20%0',_0x2d8a0c)}:void 0x0;});}}class dt extends _0x438b1d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x438b1d{['afterInit'](){const _0x51afb0=this['editor'];if(!_0x51afb0['plugins']['has']('LinkEditing'))return;const _0x39d035=_0x51afb0['plugins']['get']('TrackChangesEditing'),_0x540686=_0x51afb0['commands']['get']('link');_0x39d035['enableDefaultAttributesIntegration']('link'),_0x39d035['enableDefaultAttributesIntegration']('unlink'),_0x39d035['registerInlineAttribute']('linkHref');for(const _0x3a5070 of _0x540686['manualDecorators'])_0x39d035['registerInlineAttribute'](_0x3a5070['id']),_0x39d035['descriptionFactory']['registerAttributeLabel'](_0x3a5070['id'],'link\x20('+_0x3a5070['label']['toLowerCase']()+')');_0x39d035['descriptionFactory']['registerDescriptionCallback'](_0x26f5f9=>{if('attribute'!=_0x26f5f9['type'])return;const {data:_0x18241a}=_0x26f5f9;if(!_0x18241a||'linkHref'!=_0x18241a['key'])return;const _0xf19b74=_0x18241a['newValue'],_0x57ded7=_0x51afb0['locale'];return{'type':'format','content':null==_0xf19b74?o(_0x57ded7,'*Remove\x20link*'):o(_0x57ded7,'*Set\x20link:*\x20%0','\x22'+_0xf19b74+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57dc82=this['editor'],_0x33d5ef=_0x57dc82['locale'];_0x57dc82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59c688=>{if('formatInline'!=_0x59c688['type'])return;const {data:_0x1fd326}=_0x59c688;if(_0x1fd326){if('link'==_0x1fd326['commandName']){const _0x29b641=_0x1fd326['commandParams'][0x0];return{'type':'format','content':o(_0x33d5ef,'*Set\x20link:*\x20%0','\x22'+_0x29b641+'\x22')};}return'unlink'==_0x1fd326['commandName']?{'type':'format','content':o(_0x33d5ef,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x438b1d{['afterInit'](){const _0x1a582e=this['editor'],_0x543efa=_0x1a582e['locale'];if(!_0x1a582e['plugins']['has']('LegacyListEditing'))return;const _0x4e5ac8=_0x1a582e['plugins']['get']('TrackChangesEditing'),_0x56b3df=_0x1a582e['plugins']['has']('LegacyTodoListEditing');function _0x4a7549(_0x17a90f){return()=>{const _0x2fb140=_0x1a582e['model']['document']['selection'],_0x432d09=_0x1a582e['commands']['get'](_0x17a90f);if(_0x432d09['value'])return void _0x1a582e['execute']('paragraph',{});const _0x552881=_0x17a90f['slice'](0x0,-0x4),_0x310684=function(_0x106820,_0x4d04da,_0x51c724){let _0x321776=Array['from'](_0x106820)['filter'](_0x2dd0a8=>function(_0x2e5014,_0x4dd6ea){return _0x4dd6ea['checkChild'](_0x2e5014['parent'],'listItem')&&!_0x4dd6ea['isObject'](_0x2e5014);}(_0x2dd0a8,_0x51c724));_0x321776=_0x321776['filter'](_0x8ddf89=>!_0x8ddf89['is']('element','listItem')||_0x8ddf89['getAttribute']('listType')!=_0x4d04da);const _0x4a010e=new Set();for(const _0x5e56b5 of _0x321776)_0x5e56b5['is']('element','listItem')?_0x4a010e['add'](Ne(_0x5e56b5)):_0x4a010e['add'](_0x5e56b5);return Array['from'](_0x4a010e);}(_0x2fb140['getSelectedBlocks'](),_0x552881,_0x1a582e['model']['schema']);_0x1a582e['model']['change'](()=>{for(const _0xdf892b of _0x310684)_0x4e5ac8['markBlockFormat'](_0xdf892b,{'commandName':_0x17a90f,'commandParams':[{'forceValue':!_0x432d09['value']}],'formatGroupId':'blockName'},Se(_0xdf892b));});};}function _0x77b420(_0x15c2f7){return()=>{const _0x4b37dd=function(_0x1fb011){let _0x39a9f9=Array['from'](_0x1fb011);const _0x16c721=_0x39a9f9['findIndex'](_0xea1875=>'listItem'!=_0xea1875['name']);return _0x16c721>-0x1&&(_0x39a9f9=_0x39a9f9['slice'](0x0,_0x16c721)),_0x39a9f9;}(_0x1a582e['model']['document']['selection']['getSelectedBlocks']()),_0x404059=_0x1a582e['model']['createRange'](_0x1a582e['model']['createPositionAt'](_0x4b37dd[0x0],'before'),_0x1a582e['model']['createPositionAt'](_0x4b37dd[_0x4b37dd['length']-0x1],'end'));_0x1a582e['model']['change'](()=>{_0x4e5ac8['markBlockFormat'](_0x404059,{'commandName':_0x15c2f7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2fe57a){const _0x4edf48=new Set();for(const _0x305b29 of _0x2fe57a){let _0x50eacc=_0x305b29['nextSibling'];for(;_0x50eacc&&_0x50eacc['getAttribute']('listIndent')>_0x305b29['getAttribute']('listIndent');)_0x4edf48['add'](_0x50eacc),_0x50eacc=_0x50eacc['nextSibling'];}return Array['from'](_0x4edf48);}(_0x4b37dd));});};}_0x4e5ac8['enableCommand']('numberedList',_0x4a7549('numberedList')),_0x4e5ac8['enableCommand']('bulletedList',_0x4a7549('bulletedList')),_0x56b3df&&_0x4e5ac8['enableCommand']('todoList',_0x4a7549('todoList')),_0x4e5ac8['enableCommand']('indentList',_0x77b420('indentList')),_0x4e5ac8['enableCommand']('outdentList',_0x77b420('outdentList')),_0x56b3df&&_0x4e5ac8['enableCommand']('checkTodoList',()=>{const _0x2a030a=_0x1a582e['commands']['get']('checkTodoList'),_0x3108bb=Array['from'](_0x2a030a['_selectedElements']);_0x3108bb['filter'](_0x3001c4=>_0x3001c4['getAttribute']('todoListChecked')!=_0x2a030a['value']),_0x1a582e['model']['change'](()=>{for(const _0x50fe77 of _0x3108bb)_0x4e5ac8['markBlockFormat'](_0x50fe77,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a030a['value']}]});});}),_0x4e5ac8['descriptionFactory']['registerElementLabel']('listItem',_0x3f2a2c=>o(_0x543efa,'ELEMENT_LIST_ITEM',_0x3f2a2c)),_0x4e5ac8['descriptionFactory']['registerDescriptionCallback'](_0x45263a=>{if('formatBlock'!=_0x45263a['type']&&'formatInline'!=_0x45263a['type'])return;const {data:_0x4e1068}=_0x45263a;if(_0x4e1068){if('numberedList'==_0x4e1068['commandName']||'bulletedList'==_0x4e1068['commandName']||'todoList'==_0x4e1068['commandName'])switch(_0x4e1068['commandName']['replace']('List','')){case'bulleted':return _0x9454be(o(_0x543efa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9454be(o(_0x543efa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9454be(o(_0x543efa,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4e1068['commandName'])return{'type':'format','content':o(_0x543efa,'*Indent:*\x20%0',o(_0x543efa,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4e1068['commandName'])return{'type':'format','content':o(_0x543efa,'*Outdent:*\x20%0',o(_0x543efa,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4e1068['commandName'])return _0x4e1068['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x543efa,'*Check\x20item*')}:{'type':'format','content':o(_0x543efa,'*Uncheck\x20item*')};}function _0x9454be(_0x483d21){return{'type':'format','content':o(_0x543efa,'*Change\x20to:*\x20%0',_0x483d21)};}});}}function Ne(_0x5d7c56){const _0x48f750=_0x5d7c56['getAttribute']('listIndent');if(0x0==_0x48f750)return _0x5d7c56;let _0x5e28c6=_0x5d7c56;for(;_0x5d7c56['previousSibling']&&_0x5d7c56['previousSibling']['is']('element','listItem');){const _0x5d8417=_0x5d7c56['previousSibling']['getAttribute']('listIndent');if(_0x5d8417==_0x48f750)_0x5e28c6=_0x5d7c56['previousSibling'];else{if(_0x5d8417<_0x48f750)break;}_0x5d7c56=_0x5d7c56['previousSibling'];}return _0x5e28c6;}function Se(_0x3b7d00){const _0x21b959=[];if(_0x3b7d00['is']('element','listItem')&&_0x3b7d00['getAttribute']('listIndent')>0x0){let _0x3f1147=_0x3b7d00['nextSibling'];for(;_0x3f1147&&'listItem'==_0x3f1147['name']&&_0x3f1147['getAttribute']('listIndent')==_0x3b7d00['getAttribute']('listIndent');)_0x21b959['push'](_0x3f1147),_0x3f1147=_0x3f1147['nextSibling'];}return _0x21b959;}class wt extends _0x438b1d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8a0536=this['editor']['config']['get']('list.properties'),_0x3747f5=this['editor']['plugins']['get']('TrackChangesEditing');_0x8a0536['styles']&&_0x3747f5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8a0536['reversed']&&_0x3747f5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8a0536['startIndex']&&_0x3747f5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3747f5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2ca22a,_0x50f486={}){const _0x9669f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb238ed=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x9669f9['markMultiRangeBlockFormat'](_0xb238ed,{'commandName':'listStyle','commandParams':[{'type':_0x50f486['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38e153,_0x536abb={}){const _0x22c22f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b2e3a=this['_getSuggestionBlocks'](_0x70bf85=>_0x70bf85['is']('element','listItem')&&'numbered'===_0x70bf85['getAttribute']('listType'));if(_0x5b2e3a['length']<0x1)return;const _0xf9ba=_0x5b2e3a['map'](_0x2d010d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d010d,'before'),this['editor']['model']['createPositionAt'](_0x2d010d,0x0)));this['editor']['model']['change'](()=>{_0x22c22f['markMultiRangeBlockFormat'](_0xf9ba,{'commandName':'listReversed','commandParams':[{'reversed':_0x536abb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x206d38,_0x24eb23={}){const _0x31d31c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f0232=this['_getSuggestionBlocks'](_0x4807c9=>_0x4807c9['is']('element','listItem')&&'numbered'===_0x4807c9['getAttribute']('listType'));if(_0x2f0232['length']<0x1)return;const _0x5ae1c7=_0x2f0232['map'](_0x5a92cf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a92cf,'before'),this['editor']['model']['createPositionAt'](_0x5a92cf,0x0)));this['editor']['model']['change'](()=>{_0x31d31c['markMultiRangeBlockFormat'](_0x5ae1c7,{'commandName':'listStart','commandParams':[{'startIndex':_0x24eb23['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5841bc){if('formatBlock'!=_0x5841bc['type']&&'formatInline'!=_0x5841bc['type'])return;const _0x4ec01e=this['editor']['locale'],{data:_0x57f267}=_0x5841bc;if(!_0x57f267)return;let _0x14f8ea,_0x375d24;switch(_0x57f267['commandName']){case'listStyle':_0x14f8ea='*Change\x20to:*\x20%0',_0x375d24={'type':'format','content':o(_0x4ec01e,_0x14f8ea,o(_0x4ec01e,this['_getTranslationKeyForListStyle'](_0x57f267['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14f8ea=_0x57f267['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x375d24={'type':'format','content':o(_0x4ec01e,_0x14f8ea)};break;case'listStart':_0x14f8ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x375d24={'type':'format','content':o(_0x4ec01e,_0x14f8ea,_0x57f267['commandParams'][0x0]['startIndex'])};}return _0x375d24;}['_getSuggestionBlocksForListStyle'](){const _0x1326a2=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c8a16=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1c8a16[0x0]?.['is']('element','listItem')&&_0x1c8a16['unshift'](..._0x1326a2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1c8a16[_0x1c8a16['length']-0x1]?.['is']('element','listItem')&&_0x1c8a16['push'](..._0x1326a2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1c8a16=[...new Set(_0x1c8a16)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1c8a16=_0x1c8a16['filter'](_0x2b21f8=>_0x2b21f8['is']('element','listItem'))),_0x1c8a16;}['_getSuggestionBlocks'](_0x2ca7b0){const _0x2a49a0=this['editor']['plugins']['get']('LegacyListUtils');let _0x1175eb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ca7b0)['map'](_0xd738d=>{const _0x236191=this['editor']['model']['createPositionAt'](_0xd738d,0x0);return[..._0x2a49a0['getSiblingNodes'](_0x236191,'backward'),..._0x2a49a0['getSiblingNodes'](_0x236191,'forward')];})['flat']();return _0x1175eb=[...new Set(_0x1175eb)],_0x1175eb;}['_getTranslationKeyForListStyle'](_0x115d1b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x115d1b)||'default')['toUpperCase']()+'_LIST_'+_0x115d1b['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x438b1d{['afterInit'](){const _0x28491b=this['editor'];if(!_0x28491b['plugins']['has']('MediaEmbedEditing'))return;const _0x5de766=_0x28491b['plugins']['get']('TrackChangesEditing'),_0x4facd6=_0x28491b['locale'];_0x5de766['enableCommand']('mediaEmbed'),_0x5de766['descriptionFactory']['registerElementLabel']('media',_0x40d467=>o(_0x4facd6,'ELEMENT_MEDIA',_0x40d467)),_0x28491b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1da3e8,{writer:_0x470c46,options:_0x138d60})=>{if(_0x138d60['showSuggestionHighlights'])return _0x470c46['createEmptyElement']('div');},'converterPriority':'high'}),_0x28491b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x341af4,_0x16c25f,_0x4584df)=>{_0x4584df['options']['showSuggestionHighlights']&&_0x341af4['stop']();},{'priority':'high'});}}class yt extends _0x438b1d{['afterInit'](){const _0x29245d=this['editor'];_0x29245d['plugins']['has']('MentionEditing')&&_0x29245d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x438b1d{['afterInit'](){const _0x506735=this['editor'];if(!_0x506735['plugins']['has']('MergeFieldsEditing'))return;const _0x3a3aed=_0x506735['plugins']['get']('TrackChangesEditing'),_0x184a89=_0x506735['locale'];_0x3a3aed['enableCommand']('insertMergeField'),_0x3a3aed['enableCommand']('insertMergeFieldBlock'),_0x3a3aed['enableCommand']('insertMergeFieldImage'),_0x3a3aed['descriptionFactory']['registerElementLabel']('mergeField',_0x54b2e5=>o(_0x184a89,'ELEMENT_MERGE_FIELD',_0x54b2e5)),_0x3a3aed['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2a6b9e=>o(_0x184a89,'ELEMENT_MERGE_FIELD',_0x2a6b9e)),_0x3a3aed['descriptionFactory']['registerDescriptionCallback'](_0x54c1d8=>{if('insertion'!=_0x54c1d8['type']&&'deletion'!=_0x54c1d8['type'])return;const _0x11aa99=_0x54c1d8['getContainedElement']();if(null==_0x11aa99)return;const _0x8d9b28=_0x506735['plugins']['get']('MergeFieldsEditing');let _0x47f1a5;switch(_0x8d9b28['getMergeFieldType'](_0x11aa99)){case null:return;case'image':{const _0xae89c8=_0x8d9b28['unwrapAffixes'](_0x11aa99['getAttribute']('src'));_0x47f1a5=_0x8d9b28['getLabel'](_0xae89c8)||_0xae89c8;break;}default:{const _0x43742a=_0x11aa99['getAttribute']('id');_0x47f1a5=_0x8d9b28['getLabel'](_0x43742a)||_0x43742a;break;}}return'insertion'==_0x54c1d8['type']?{'type':'insertion','content':o(_0x184a89,'*Insert:*\x20%0','\x22'+_0x47f1a5+'\x22\x20'+o(_0x184a89,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x184a89,'*Remove:*\x20%0','\x22'+_0x47f1a5+'\x22\x20'+o(_0x184a89,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x438b1d{['afterInit'](){const _0x594973=this['editor'],_0x5a340a=_0x594973['plugins']['get']('TrackChangesEditing');_0x594973['plugins']['has']('MultiLevelList')&&(_0x5a340a['enableDefaultAttributesIntegration']('multiLevelList'),_0x5a340a['registerBlockAttribute']('listMarkerStyle'),_0x5a340a['descriptionFactory']['registerDescriptionCallback'](_0x3605d6=>this['handleDescriptions'](_0x3605d6)));}['handleDescriptions'](_0x31adfe){const _0x32ff3e=this['editor']['locale'],{data:_0x2eb01c}=_0x31adfe,_0x1b3b13={'type':'format','content':''};if(_0x2eb01c&&'listMarkerStyle'==_0x2eb01c['key']){if(!_0x2eb01c['oldValue'])return{'type':'format','content':o(_0x32ff3e,'*Set\x20format:*\x20%0',o(_0x32ff3e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eb01c['newValue']+')'};if(!_0x2eb01c['newValue']){let _0xc5cf4e=_0x31adfe['head'];for(;_0xc5cf4e;){if(_0xc5cf4e['data']&&'listType'==_0xc5cf4e['data']['key']&&_0xc5cf4e['data']['newValue'])return _0x1b3b13;_0xc5cf4e=_0xc5cf4e['next'];}return{'type':'format','content':o(_0x32ff3e,'*Remove\x20format:*\x20%0',o(_0x32ff3e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eb01c['oldValue']+')'};}}}}class It extends _0x438b1d{['afterInit'](){const _0x4579c5=this['editor'];if(!_0x4579c5['plugins']['has']('PageBreakEditing'))return;_0x4579c5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x302629=_0x4579c5['plugins']['get']('TrackChangesEditing'),_0x483b98=_0x4579c5['locale'];_0x302629['descriptionFactory']['registerElementLabel']('pageBreak',_0xb0f25e=>o(_0x483b98,'ELEMENT_PAGE_BREAK',_0xb0f25e));}}class At extends _0x438b1d{['afterInit'](){const _0x225040=this['editor'];if(!_0x225040['plugins']['has']('Paragraph'))return;const _0x5bacb9=_0x225040['locale'],_0x16d238=_0x225040['plugins']['get']('TrackChangesEditing');_0x16d238['descriptionFactory']['registerElementLabel']('paragraph',_0x4d8158=>o(_0x5bacb9,'ELEMENT_PARAGRAPH',_0x4d8158)),_0x16d238['enableDefaultAttributesIntegration']('paragraph'),_0x16d238['enableCommand']('insertParagraph'),_0x225040['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x225040),{'priority':'highest'}),_0x225040['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45e0ef,_0x238ef2,_0x220b46)=>{_0x220b46['options']['showSuggestionHighlights']&&nr(_0x225040,{'showActiveMarker':!0x1})(_0x45e0ef,_0x238ef2,_0x220b46);},{'priority':'highest'});const _0x1e11f1=_0x16d238['descriptionFactory'];_0x1e11f1['registerDescriptionCallback'](_0x5b90be=>{if('insertion'!==_0x5b90be['type'])return;const {start:_0x4dd34c,end:_0xfb31d4}=_0x5b90be['getFirstRange']();if(!_0x4dd34c['isTouching'](_0xfb31d4)||!_0x4dd34c['nodeAfter'])return;const _0x540de8=_0x225040['model']['schema'],_0xb9280a=_0x4dd34c['nodeAfter'];return _0x540de8['isBlock'](_0xb9280a)&&!_0x540de8['isLimit'](_0xb9280a)&&_0x540de8['checkChild'](_0xb9280a,'$text')?{'type':'insertion','content':o(_0x5bacb9,'*Insert:*\x20%0',_0x1e11f1['getItemLabel'](_0xb9280a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fcbaa=this['editor'],_0x202dca=_0x2fcbaa['locale'];_0x2fcbaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e6126=>{if('formatBlock'!=_0x3e6126['type'])return;const {data:_0xa5e55a}=_0x3e6126;return _0xa5e55a&&'paragraph'==_0xa5e55a['commandName']?{'type':'format','content':o(_0x202dca,'*Change\x20to:*\x20%0',o(_0x202dca,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3bf8b9,{showActiveMarker:_0x5df567=!0x0}={}){return(_0x22b915,_0x116426,_0x5637d2)=>{const _0x5f4d41=_0x3bf8b9['plugins']['get']('TrackChangesEditing'),_0x1c1480=_0x116426['markerRange']['start'],_0x2867e8=_0x116426['markerRange']['end'],_0x1db87c=_0x3bf8b9['model']['schema'];if(!_0x1c1480['isTouching'](_0x2867e8)||!_0x1c1480['nodeAfter'])return;const _0x5f546a=_0x1c1480['nodeAfter'];if(_0x1db87c['isBlock'](_0x5f546a)&&!_0x1db87c['isLimit'](_0x5f546a)&&_0x1db87c['checkChild'](_0x5f546a,'$text')){if(!_0x5637d2['consumable']['consume'](_0x116426['markerRange'],_0x22b915['name']))return;const {id:_0x1972fd,authorId:_0x38f4dd}=_0x5f4d41['_splitMarkerName'](_0x116426['markerName']),_0x28f5c3=_0x5637d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1972fd,'data-author-id':_0x38f4dd}),_0x76fd15=_0x5637d2['mapper']['toViewPosition'](_0x2867e8);_0x5df567&&_0x5f4d41['activeMarkers']['includes'](_0x116426['markerName'])&&_0x5637d2['writer']['addClass']('ck-suggestion-marker--active',_0x28f5c3),_0x5637d2['writer']['insert'](_0x76fd15,_0x28f5c3),_0x5637d2['mapper']['bindElementToMarker'](_0x28f5c3,_0x116426['markerName']);}};}class _t extends _0x438b1d{['afterInit'](){const _0x10e76d=this['editor'];_0x10e76d['commands']['get']('replaceSource')&&_0x10e76d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x438b1d{['afterInit'](){const _0x42ba0c=this['editor'];if(!_0x42ba0c['plugins']['has']('RemoveFormatEditing'))return;_0x42ba0c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d5bd=this['editor'];_0x52d5bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25372c=>{if('formatBlock'!=_0x25372c['type']&&'formatInline'!=_0x25372c['type'])return;const {data:_0x2372da}=_0x25372c;return _0x2372da&&'removeFormat'==_0x2372da['commandName']?{'type':'format','content':o(_0x52d5bd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x438b1d{['afterInit'](){const _0x49e9dd=this['editor'];if(!_0x49e9dd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xc658e3=_0x49e9dd['plugins']['get']('TrackChangesEditing');_0xc658e3['enableCommand']('goToPreviousRestrictedEditingException'),_0xc658e3['enableCommand']('goToNextRestrictedEditingException');const _0x512d81=_0x49e9dd['plugins']['get']('RestrictedEditingModeEditing');_0x512d81['enableCommand']('trackChanges'),_0x512d81['enableCommand']('acceptSuggestion'),_0x512d81['enableCommand']('discardSuggestion'),_0x512d81['enableCommand']('acceptAllSuggestions'),_0x512d81['enableCommand']('discardAllSuggestions'),_0x512d81['enableCommand']('acceptSelectedSuggestions'),_0x512d81['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x438b1d{['afterInit'](){const _0x50f702=this['editor'];if(!_0x50f702['plugins']['has']('ShiftEnter'))return;const _0x477e1f=_0x50f702['plugins']['get']('TrackChangesEditing');_0x477e1f['enableCommand']('shiftEnter'),_0x50f702['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x50f702),{'priority':'high'}),_0x50f702['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x50f702),{'priority':'high'}),_0x50f702['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c49c1,_0x45ee94,_0x704cf1)=>{_0x704cf1['options']['showSuggestionHighlights']&&qe(_0x50f702,{'showActiveMarker':!0x1})(_0x3c49c1,_0x45ee94,_0x704cf1);}),_0x477e1f['descriptionFactory']['registerElementLabel']('softBreak',_0x1ea540=>o(_0x50f702['locale'],'ELEMENT_LINE_BREAK',_0x1ea540));}}function qe(_0x1baa97,{showActiveMarker:_0x36521a=!0x0}={}){return(_0x581e6f,_0x3a2573,_0x2617c8)=>{const _0x563089=_0x1baa97['plugins']['get']('TrackChangesEditing');if(!_0x2617c8['consumable']['test'](_0x3a2573['markerRange'],_0x581e6f['name']))return;const _0x2f96c6=_0x1baa97['model'];for(const _0x377d4d of _0x3a2573['markerRange']['getItems']()){if(!_0x377d4d['is']('element','softBreak'))continue;const _0xecc308='deletion'==_0x3a2573['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x30ba41,authorId:_0x244529}=_0x563089['_splitMarkerName'](_0x3a2573['markerName']),_0x5cfe6b=_0x2617c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xecc308,'data-suggestion':_0x30ba41,'data-author-id':_0x244529}),_0x26fe41=_0x2617c8['mapper']['toViewPosition'](_0x2f96c6['createPositionBefore'](_0x377d4d));_0x36521a&&_0x563089['activeMarkers']['includes'](_0x3a2573['markerName'])&&_0x2617c8['writer']['addClass']('ck-suggestion-marker--active',_0x5cfe6b),_0x2617c8['writer']['insert'](_0x26fe41,_0x5cfe6b),_0x2617c8['mapper']['bindElementToMarker'](_0x5cfe6b,_0x3a2573['markerName']);}};}class Nt extends _0x438b1d{['afterInit'](){const _0x44b9ed=this['editor'],_0x279e55=_0x44b9ed['model'],_0x14c358=_0x44b9ed['locale'];if(!_0x44b9ed['plugins']['has']('StandardEditingModeEditing'))return;const _0x10574b=_0x44b9ed['plugins']['get']('TrackChangesEditing'),_0xedde8d='restrictedEditingException',_0x46d40b=_0x44b9ed['commands']['get'](_0xedde8d);_0x10574b['enableCommand'](_0xedde8d,(_0x4e0bdc,_0x4fb659={})=>{const _0x1c97ea=_0x279e55['document']['selection'];if(_0x1c97ea['isCollapsed'])return void _0x4e0bdc(_0x4fb659);const _0x38d472=void 0x0!==_0x4fb659['forceValue']?_0x4fb659['forceValue']:!_0x46d40b['value'];_0x279e55['change'](()=>{const _0x403dd6=Array['from'](_0x1c97ea['getRanges']());for(const _0x243156 of _0x403dd6){const _0x5f336f=_0x38d472?[_0x243156]:io(_0xedde8d,_0x243156,_0x279e55);for(const _0x590521 of _0x5f336f)_0x10574b['markInlineFormat'](_0x590521,{'commandName':_0xedde8d,'commandParams':[{'forceValue':_0x38d472}]});}});}),_0x10574b['descriptionFactory']['registerDescriptionCallback'](_0x459e0a=>{if('formatBlock'!=_0x459e0a['type']&&'formatInline'!=_0x459e0a['type'])return;const {data:_0x147a30}=_0x459e0a;return _0x147a30&&_0x147a30['commandName']==_0xedde8d?_0x147a30['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14c358,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x14c358,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x438b1d{['afterInit'](){const _0x4438aa=this['editor'];if(!_0x4438aa['plugins']['has']('Style')||!_0x4438aa['plugins']['has']('DataSchema'))return;const _0xcea34d=_0x4438aa['plugins']['get']('TrackChangesEditing'),_0x5ab908=_0x4438aa['locale'],_0x47a86b=_0x4438aa['config']['get']('style')||{},_0x5562fd=_0x4438aa['plugins']['get']('GeneralHtmlSupport'),_0x20ddbc=_0x4438aa['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4438aa['plugins']['get']('DataSchema'),_0x47a86b['definitions']);_0xcea34d['enableDefaultAttributesIntegration']('style');const _0x1236de=new Set();for(const _0x1815a5 of _0x20ddbc['block']){const _0x19420e=_0x5562fd['getGhsAttributeNameForElement'](_0x1815a5['element']);_0x1236de['add'](_0x19420e);}const _0x1f4093=new Set();for(const _0x2199f9 of _0x20ddbc['inline']){const _0x4aa858=_0x5562fd['getGhsAttributeNameForElement'](_0x2199f9['element']);_0x1f4093['add'](_0x4aa858);for(const _0x4804e9 of _0x2199f9['ghsAttributes'])_0x1f4093['add'](_0x4804e9);}for(const _0x155568 of _0x1236de)_0xcea34d['registerBlockAttribute'](_0x155568),_0xcea34d['descriptionFactory']['registerAttributeLabel'](_0x155568,o(_0x5ab908,'FORMAT_STYLE'));for(const _0x2e4dc7 of _0x1f4093)_0xcea34d['registerInlineAttribute'](_0x2e4dc7),_0xcea34d['descriptionFactory']['registerAttributeLabel'](_0x2e4dc7,o(_0x5ab908,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54239f=this['editor'],_0x3ace58=_0x54239f['locale'];_0x54239f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x515129=>{if('formatBlock'!=_0x515129['type']&&'formatInline'!=_0x515129['type'])return;const {data:_0x30f043}=_0x515129;return _0x30f043&&'style'===_0x30f043['commandName']?_0x30f043['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ace58,'*Set\x20format:*\x20%0',_0x30f043['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3ace58,'*Remove\x20format:*\x20%0',_0x30f043['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x438b1d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d0323){super(_0x2d0323),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2d832c=this['editor'],_0x3f2ce0=_0x2d832c['model']['document']['selection'];if(!_0x2d832c['plugins']['has']('TableEditing'))return;const _0x926872=_0x2d832c['locale'],_0x5cbf9e=_0x2d832c['plugins']['get']('TrackChangesEditing'),_0x356c4b=_0x2d832c['plugins']['get']('TableUtils');_0x5cbf9e['descriptionFactory']['registerElementLabel']('table',_0x4adf36=>o(_0x926872,'ELEMENT_TABLE',_0x4adf36)),this['_setupColumnsRowsFixing'](),_0x5cbf9e['enableCommand']('insertTable'),_0x5cbf9e['enableCommand']('selectTableRow'),_0x5cbf9e['enableCommand']('selectTableColumn');for(const _0x210824 of['insertTableRowAbove','insertTableRowBelow']){const _0x153187=_0x2d832c['commands']['get'](_0x210824);_0x5cbf9e['enableCommand'](_0x210824,_0x4e4a75=>{_0x2d832c['model']['change'](_0x397f35=>{_0x4e4a75();const _0xc72bdb='above'===_0x153187['order'],_0x114eca=_0x356c4b['getSelectionAffectedTableCells'](_0x3f2ce0),_0xeec91f=_0x356c4b['getRowIndexes'](_0x114eca),_0x2c0fca=_0xc72bdb?_0xeec91f['first']-0x1:_0xeec91f['last']+0x1,_0x5d974f=_0x114eca[0x0]['findAncestor']('table'),_0x15e7cf=_0x356c4b['createTableWalker'](_0x5d974f,{'startRow':_0x2c0fca,'endRow':_0x2c0fca}),_0x499310=Array['from'](_0x15e7cf)['map'](_0x2d5be5=>_0x397f35['createRangeOn'](_0x2d5be5['cell']));_0x5cbf9e['markMultiRangeInsertion'](_0x499310,'tableRow');});});}for(const _0x4784ea of['insertTableColumnLeft','insertTableColumnRight']){const _0x483695=_0x2d832c['commands']['get'](_0x4784ea);_0x5cbf9e['enableCommand'](_0x4784ea,_0x4524bb=>{_0x2d832c['model']['change'](_0x54bcc1=>{_0x4524bb();const _0x50731b='left'===_0x483695['order'],_0x1887b1=_0x356c4b['getSelectionAffectedTableCells'](_0x3f2ce0),_0x3ba69c=_0x356c4b['getColumnIndexes'](_0x1887b1),_0x2298a1=_0x50731b?_0x3ba69c['first']-0x1:_0x3ba69c['last']+0x1,_0x5c9702=_0x1887b1[0x0]['findAncestor']('table'),_0x142acc=_0x356c4b['createTableWalker'](_0x5c9702,{'startRow':0x0,'column':_0x2298a1,'includeAllSlots':!0x1}),_0x1b42b5=Array['from'](_0x142acc)['map'](_0x53d39a=>_0x54bcc1['createRangeOn'](_0x53d39a['cell']));_0x5cbf9e['markMultiRangeInsertion'](_0x1b42b5,'tableColumn');});});}for(const _0x38d852 of['removeTableRow','removeTableColumn']){const _0x5aea98=_0x38d852['substr'](0xb),_0x39f2fa=_0x5aea98['toLowerCase'](),_0x5a8cb8=_0x39f2fa['substr'](0x0,0x3)+'span',_0x8edbd8='table'+_0x5aea98,_0x54172a='min'+_0x5aea98,_0x41b5a8='max'+_0x5aea98;_0x5cbf9e['enableCommand'](_0x38d852,()=>{_0x2d832c['model']['change'](_0x1ce2ba=>{const _0x30d418=_0x356c4b['getSelectionAffectedTableCells'](_0x3f2ce0),_0x5c718c=_0x30d418[0x0]['findAncestor']('table');let _0xd338e3;if('removeTableRow'==_0x38d852){const _0x16c264=_0x356c4b['getRowIndexes'](_0x30d418);_0xd338e3={'startRow':_0x16c264['first'],'endRow':_0x16c264['last'],'includeAllSlots':!0x0};}else{const _0x5a8697=_0x356c4b['getColumnIndexes'](_0x30d418);_0xd338e3={'startColumn':_0x5a8697['first'],'endColumn':_0x5a8697['last'],'includeAllSlots':!0x0};}const _0x2f5315=_0x356c4b['createTableWalker'](_0x5c718c,_0xd338e3),_0x1f912d=Array['from'](_0x2f5315)['map'](({cell:_0x29e684})=>_0x29e684),_0x1c62b0=Oe(_0x1f912d['filter'](_0x5e59e8=>_0x5e59e8['hasAttribute'](_0x5a8cb8))),_0x1939fa=Oe(_0x1f912d['filter'](_0x1e11d5=>!_0x1e11d5['hasAttribute'](_0x5a8cb8)))['map'](_0x38b367=>_0x1ce2ba['createRangeOn'](_0x38b367)),_0x44210d=_0x5cbf9e['markMultiRangeDeletion'](_0x1939fa,_0x8edbd8);if(_0x44210d&&('tableRow'==_0x44210d['subType']||'tableColumn'==_0x44210d['subType'])){const _0x52036d=this['_getSuggestionCoords'](_0x44210d);for(const _0x592c92 of _0x1c62b0){const _0x49e100=_0x1ce2ba['createRangeOn'](_0x592c92),_0x44a4a2=_0x356c4b['getCellLocation'](_0x592c92),_0x52add2=_0x592c92['getAttribute'](_0x5a8cb8)-0x1,_0x1a7cb0=_0x52036d[_0x54172a],_0x311e1b=_0x52036d[_0x41b5a8];_0x1a7cb0<=_0x44a4a2[_0x39f2fa]&&_0x44a4a2[_0x39f2fa]+_0x52add2<=_0x311e1b&&_0x44210d['addRange'](_0x49e100);}}});});}function _0x22d361(_0x7f38a3){const _0x34e97b=Array['from'](_0x3f2ce0['getRanges']())['map'](_0x4b01a8=>_0x41f621['fromRange'](_0x4b01a8));_0x2d832c['model']['change'](_0x3879a9=>{const _0x13aeb3=_0x3879a9['batch'];_0x7f38a3=_0x7f38a3['filter'](_0x23111e=>'$graveyard'!=_0x23111e['root']['rootName']),_0x3879a9['setSelection'](_0x7f38a3),_0x2d832c['commands']['get']('removeTableRow')['refresh'](),_0x2d832c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2d832c['model']['enqueueChange'](()=>{_0x2d832c['model']['enqueueChange'](_0x13aeb3,_0x231907=>{const _0x4df2e8=_0x34e97b['filter'](_0xbb5a56=>'$graveyard'!=_0xbb5a56['root']['rootName']);_0x4df2e8['length']>0x0&&_0x231907['setSelection'](_0x4df2e8);for(const _0x245297 of _0x34e97b)_0x245297['detach']();});});});}function _0xc2941d(_0x32683e){_0x2d832c['model']['change'](_0x285d14=>{const _0x138ee9=Array['from'](_0x3f2ce0['getRanges']())['map'](_0x166291=>_0x41f621['fromRange'](_0x166291)),_0x327b79=[];for(const _0x429b23 of _0x32683e)for(const _0x221225 of _0x429b23['getItems']({'shallow':!0x0}))_0x327b79['push'](_0x221225);for(const _0x3c325c of _0x327b79)'$graveyard'!=_0x3c325c['root']['rootName']&&(_0x285d14['setSelection'](_0x285d14['createPositionAt'](_0x3c325c,0x0)),_0x2d832c['commands']['get']('removeTableColumn')['refresh'](),_0x2d832c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4ab2b1=_0x138ee9['filter'](_0x83d87b=>'$graveyard'!=_0x83d87b['root']['rootName']);_0x4ab2b1['length']>0x0&&_0x285d14['setSelection'](_0x4ab2b1);for(const _0x3f307d of _0x138ee9)_0x3f307d['detach']();});}function _0x3f3f7c(_0x550f22,_0x3c50e3){return _0x3c50e3['every'](_0x1af4e9=>_0x550f22['some'](_0x5440db=>_0x5440db['end']['isEqual'](_0x1af4e9['start'])||_0x1af4e9['end']['isEqual'](_0x5440db['start'])));}function _0x22ab5e(_0x355950,_0x238894){return!_0x355950['some'](_0x28c349=>_0x238894['some'](_0x1e6c72=>_0x28c349['isIntersecting'](_0x1e6c72)))&&_0x355950['some'](_0x483aaf=>_0x238894['some'](_0x1219fc=>_0x483aaf['end']['isTouching'](_0x1219fc['start'])));}_0x2d832c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x538406,_0x1053c3,_0x116f29)=>{if(!_0x116f29['options']['showSuggestionHighlights'])return;const _0x640a79=_0x1053c3['item'];if(!_0x640a79||!_0x640a79['is']('element','tableCell'))return;const _0xe9dadd=_0x116f29['mapper']['toViewElement'](_0x640a79);if(_0xe9dadd){const {id:_0x82620e,authorId:_0x2c5c1b}=_0x5cbf9e['_splitMarkerName'](_0x1053c3['markerName']);_0x1ff4d6(_0xe9dadd,_0x116f29['writer'],(_0x48d028,_0x57e59f,_0x14550d)=>{_0x14550d['addClass'](_0x55e9bc(_0x57e59f['classes']),_0x48d028),_0x14550d['setAttribute']('data-suggestion-id',_0x82620e,_0x48d028),_0x14550d['setAttribute']('data-author-id',_0x2c5c1b,_0x48d028);},(_0xd20186,_0x9432f,_0x395533)=>{_0x395533['removeClass'](_0x55e9bc(_0x9432f['classes']),_0xd20186),_0x395533['removeAttribute']('data-suggestion-id',_0xd20186),_0x395533['removeAttribute']('data-author-id',_0xd20186);});}},{'priority':'highest'}),_0x5cbf9e['descriptionFactory']['registerDescriptionCallback'](_0x390081=>{if('insertion'!=_0x390081['type']&&'deletion'!=_0x390081['type'])return;const _0x11d7ad=_0x390081['getContainedElement']();if(null!=_0x11d7ad&&_0x11d7ad['is']('element','table')){if('insertion'==_0x390081['type']){const _0x2bf97b=_0x390081['getItems']()['filter'](_0x3a4d4e=>_0x3a4d4e['is']('$textProxy'))['map'](_0x5d3af9=>_0x5d3af9['data']);if(_0x2bf97b['length'])return{'type':'insertion','content':o(_0x926872,'*Insert:*\x20%0',o(_0x926872,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2bf97b['join']('\x20')+'\x22'))};}if('deletion'==_0x390081['type']){const _0x4f60a2=_0x390081['getItems']()['filter'](_0x586f1b=>_0x586f1b['is']('$textProxy'))['map'](_0x1ac2b2=>_0x1ac2b2['data']);if(_0x4f60a2['length'])return{'type':'deletion','content':o(_0x926872,'*Remove:*\x20%0',o(_0x926872,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f60a2['join']('\x20')+'\x22'))};}}}),_0x5cbf9e['descriptionFactory']['registerDescriptionCallback'](_0x20a028=>{if('tableRow'==_0x20a028['subType']){const _0x30783c=_0x20a028['getItems']()['filter'](_0x21d057=>_0x21d057['is']('$textProxy'))['map'](_0x25ccbd=>_0x25ccbd['data']),_0x5f482c=this['_getSuggestionCoords'](_0x20a028),_0xa31fe6=_0x5f482c['maxRow']-_0x5f482c['minRow']+0x1;if('insertion'==_0x20a028['type'])return _0x30783c['length']?{'type':'insertion','content':o(_0x926872,'*Insert:*\x20%0',o(_0x926872,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa31fe6,'\x22'+_0x30783c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x926872,'*Insert:*\x20%0',o(_0x926872,'ELEMENT_TABLE_ROW',_0xa31fe6))};if('deletion'==_0x20a028['type'])return _0x30783c['length']?{'type':'deletion','content':o(_0x926872,'*Remove:*\x20%0',o(_0x926872,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa31fe6,'\x22'+_0x30783c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x926872,'*Remove:*\x20%0',o(_0x926872,'ELEMENT_TABLE_ROW',_0xa31fe6))};}if('tableColumn'==_0x20a028['subType']){const _0x26d754=_0x20a028['getItems']()['filter'](_0x2b1edd=>_0x2b1edd['is']('$textProxy'))['map'](_0x569d9e=>_0x569d9e['data']),_0x1a49bc=this['_getSuggestionCoords'](_0x20a028),_0x4f577a=_0x1a49bc['maxColumn']-_0x1a49bc['minColumn']+0x1;if('insertion'==_0x20a028['type'])return _0x26d754['length']?{'type':'insertion','content':o(_0x926872,'*Insert:*\x20%0',o(_0x926872,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f577a,'\x22'+_0x26d754['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x926872,'*Insert:*\x20%0',o(_0x926872,'ELEMENT_TABLE_COLUMN',_0x4f577a))};if('deletion'==_0x20a028['type'])return _0x26d754['length']?{'type':'deletion','content':o(_0x926872,'*Remove:*\x20%0',o(_0x926872,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f577a,'\x22'+_0x26d754['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x926872,'*Remove:*\x20%0',o(_0x926872,'ELEMENT_TABLE_COLUMN',_0x4f577a))};}}),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x22d361),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x22d361),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xc2941d),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xc2941d),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f3f7c),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f3f7c),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x22ab5e),_0x5cbf9e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x22ab5e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5997fd=this['editor'],_0x4262ca=_0x5997fd['model']['document']['selection'];return(_0x1c971f,_0x16c0bd)=>{_0x5997fd['model']['change'](_0x5a3231=>{const {commandName:_0x25dc80,commandParams:_0x42664e}=_0x16c0bd;let _0x328fd5=_0x1c971f[0x0]['end']['nodeBefore'];_0x42664e&&_0x42664e[0x0]&&!0x1===_0x42664e[0x0]['forceValue']&&(_0x328fd5=_0x1c971f[0x0]['start']['nodeAfter']);const _0x3a0a56=_0x5a3231['createRangeIn'](_0x328fd5);if('$graveyard'==_0x3a0a56['root']['rootName'])return;const _0x1187f2=Array['from'](_0x4262ca['getRanges']())['map'](_0x55bbd9=>_0x41f621['fromRange'](_0x55bbd9));_0x5a3231['setSelection'](_0x3a0a56),_0x5997fd['commands']['get'](_0x25dc80)['refresh'](),_0x42664e['push']({'forceDefaultExecution':!0x0}),_0x5997fd['execute'](_0x25dc80,..._0x42664e);const _0x44cea5=_0x1187f2['filter'](_0x5a8d0d=>'$graveyard'!=_0x5a8d0d['root']['rootName']);_0x44cea5['length']>0x0&&_0x5a3231['setSelection'](_0x44cea5);for(const _0x21c42a of _0x1187f2)_0x21c42a['detach']();});};}['_getCoordsForCells'](_0xabc6b0){const _0x40c4b3=this['editor']['plugins']['get']('TableUtils');let _0x515d1f=Number['MAX_SAFE_INTEGER'],_0x39b2cc=Number['MIN_SAFE_INTEGER'],_0x170622=Number['MAX_SAFE_INTEGER'],_0x8f0b79=Number['MIN_SAFE_INTEGER'];for(const _0x3fb6f8 of _0xabc6b0){if('$graveyard'==_0x3fb6f8['root']['rootName'])continue;const {row:_0x17cfdd,column:_0x279a14}=_0x40c4b3['getCellLocation'](_0x3fb6f8),_0x597e2d=_0x3fb6f8['hasAttribute']('rowspan')?_0x3fb6f8['getAttribute']('rowspan')-0x1:0x0,_0x16ea32=_0x3fb6f8['hasAttribute']('colspan')?_0x3fb6f8['getAttribute']('colspan')-0x1:0x0;_0x515d1f=_0x17cfdd<_0x515d1f?_0x17cfdd:_0x515d1f,_0x39b2cc=_0x17cfdd+_0x597e2d>_0x39b2cc?_0x17cfdd+_0x597e2d:_0x39b2cc,_0x170622=_0x279a14<_0x170622?_0x279a14:_0x170622,_0x8f0b79=_0x279a14+_0x16ea32>_0x8f0b79?_0x279a14+_0x16ea32:_0x8f0b79;}return{'minRow':_0x515d1f,'maxRow':_0x39b2cc,'minColumn':_0x170622,'maxColumn':_0x8f0b79};}['_setupColumnsRowsFixing'](){const _0x2f3251=this['editor'],_0x1e4112=_0x2f3251['plugins']['get']('TrackChangesEditing'),_0x2b12e8=_0x2f3251['plugins']['get']('TableUtils');_0x2f3251['model']['document']['on']('change:data',()=>{const _0x27e0d4=Array['from'](_0x2f3251['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x457c53,data:_0x3955a2}of _0x27e0d4){const {group:_0x298b3c,id:_0x30528c,subType:_0x4b421f}=_0x1e4112['_splitMarkerName'](_0x457c53);if('suggestion'!=_0x298b3c)continue;if(null!=_0x3955a2['oldRange'])continue;const _0x3d43cc=_0x1e4112['getSuggestion'](_0x30528c);this['_tablePostFixingSubtypes']['includes'](_0x4b421f)&&this['_tableSuggestions']['add'](_0x3d43cc);}},{'priority':'low'});const _0x40631a=(_0x1be307,_0x3e789b)=>{let _0x2b420c=!0x1;const _0x3e8821=_0x3e789b['createRangeOn'](_0x1be307),_0x53add2=_0x1be307['findAncestor']('table'),_0x17515c=_0x2b12e8['getCellLocation'](_0x1be307);for(const _0x43dba2 of this['_tableSuggestions']){const _0x26fb41=_0x43dba2['subType'],_0x427cfa=_0x26fb41['startsWith']('tablePaste'),_0x38b272=_0x26fb41['substr'](_0x427cfa?0xa:0x5),_0x3066d1=_0x38b272['toLowerCase'](),_0x2c531e=_0x3066d1['substr'](0x0,0x3)+'span',_0x138527='min'+_0x38b272,_0x17d2bd='max'+_0x38b272;if(!_0x43dba2['isInContent'])continue;if(_0x53add2!=_0x43dba2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43dba2['isIntersectingWithRange'](_0x3e8821))continue;const _0x15dfc7=_0x1be307['hasAttribute'](_0x2c531e)?_0x1be307['getAttribute'](_0x2c531e)-0x1:0x0,_0x22ecfb=this['_getSuggestionCoords'](_0x43dba2),_0x4d77a8=_0x22ecfb[_0x138527],_0x140a20=_0x22ecfb[_0x17d2bd];_0x4d77a8<=_0x17515c[_0x3066d1]&&_0x17515c[_0x3066d1]+_0x15dfc7<=_0x140a20&&(_0x43dba2['addRange'](_0x3e8821),_0x2b420c=!0x0);}return _0x2b420c;};_0x2f3251['model']['document']['registerPostFixer'](_0x4da9d6=>{let _0xabe88c=!0x1;for(const _0x13c7b3 of _0x2f3251['model']['document']['differ']['getChanges']())if('insert'==_0x13c7b3['type']){if('tableRow'==_0x13c7b3['name']){for(const _0x3eb681 of _0x13c7b3['position']['nodeAfter']['getChildren']())_0xabe88c=_0xabe88c||_0x40631a(_0x3eb681,_0x4da9d6);}else'tableCell'==_0x13c7b3['name']&&(_0xabe88c=_0xabe88c||_0x40631a(_0x13c7b3['position']['nodeAfter'],_0x4da9d6));}return _0xabe88c;});}['_getSuggestionCoords'](_0x1de4e1){return this['_getCoordsForCells'](_0x1de4e1['getRanges']()['map'](_0x408301=>_0x408301['start']['nodeAfter']));}}function Oe(_0x5b6aa4){return Array['from'](new Set(_0x5b6aa4)['values']());}class Bt extends _0x438b1d{static get['requires'](){return[Mt];}['afterInit'](){const _0x14d011=this['editor'],_0x141d81=_0x14d011['model']['document']['selection'],_0x272b0c=_0x14d011['locale'];if(!_0x14d011['plugins']['has']('TableEditing'))return;const _0xbded3d=_0x14d011['plugins']['get']('TrackChangesEditing'),_0x59b6c6=_0x14d011['plugins']['get']('TableUtils'),_0x50810d=_0x14d011['plugins']['get'](Mt);_0x50810d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xbded3d['enableCommand']('mergeTableCells',()=>{const _0x102db3=_0x59b6c6['getSelectionAffectedTableCells'](_0x14d011['model']['document']['selection']);_0x14d011['model']['change'](()=>{_0xbded3d['markMultiRangeBlockFormat'](_0x102db3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x14d011['commands']['get']('mergeTableCells')['on']('execute',(_0x4a408a,_0x17c08d)=>{_0x14d011['commands']['get']('trackChanges')['value']&&(_0x17c08d['length']>0x0&&_0x17c08d[_0x17c08d['length']-0x1]&&_0x17c08d[_0x17c08d['length']-0x1]['forceDefaultExecution']||_0xbded3d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4a408a['stop']());},{'priority':'highest'});for(const _0x78d3f1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5f15fa=_0x14d011['commands']['get'](_0x78d3f1);_0xbded3d['enableCommand'](_0x78d3f1,()=>{const _0x5390f7=_0x14d011['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2893e9=>_0x2893e9['is']('element','tableCell')),_0x4f4f9b=_0x5f15fa['value'];_0x14d011['model']['change'](()=>{_0xbded3d['markMultiRangeBlockFormat']([_0x5390f7,_0x4f4f9b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4e8a0b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x58bc47=_0x14d011['commands']['get'](_0x4e8a0b);_0xbded3d['enableCommand'](_0x4e8a0b,()=>{const _0xf85eb9=_0x59b6c6['getSelectionAffectedTableCells'](_0x14d011['model']['document']['selection'])[0x0],_0x548073=_0xf85eb9['findAncestor']('table'),{column:_0x428723,row:_0x1f19b4}=_0x59b6c6['getCellLocation'](_0xf85eb9);let _0x14dcab=[];if('horizontally'==_0x58bc47['direction']){const _0x402628=_0x59b6c6['createTableWalker'](_0x548073,{'startRow':_0x1f19b4,'endRow':_0x1f19b4,'includeAllSlots':!0x0});_0x14dcab=Array['from'](_0x402628)['map'](_0x3d938a=>_0x3d938a['cell']);}else{const _0x1a072d=_0x59b6c6['createTableWalker'](_0x548073,{'column':_0x428723,'includeAllSlots':!0x0});_0x14dcab=Array['from'](_0x1a072d)['map'](_0x1925b1=>_0x1925b1['cell']);}_0x14d011['model']['change'](_0x3ce562=>{_0xbded3d['markBlockFormat'](_0x3ce562['createRangeOn'](_0xf85eb9),{'commandName':_0x4e8a0b,'commandParams':[]},_0x14dcab,_0x4e8a0b);});});}_0xbded3d['descriptionFactory']['registerDescriptionCallback'](_0x49dd87=>{if('formatBlock'!=_0x49dd87['type']&&'formatInline'!=_0x49dd87['type'])return;const {data:_0x3b6ac8}=_0x49dd87;return _0x3b6ac8&&'mergeTableCells'==_0x3b6ac8['commandName']?{'type':'format','content':o(_0x272b0c,'*Merge\x20cells*')}:void 0x0;}),_0xbded3d['descriptionFactory']['registerDescriptionCallback'](_0xdd0b88=>{if('formatBlock'!=_0xdd0b88['type']&&'formatInline'!=_0xdd0b88['type'])return;const {data:_0xa68df1}=_0xdd0b88;return _0xa68df1?'splitTableCellVertically'==_0xa68df1['commandName']?{'type':'format','content':o(_0x272b0c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa68df1['commandName']?{'type':'format','content':o(_0x272b0c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3f6764=_0x50810d['_acceptFormatSuggestionCallbackFactory']();for(const _0x42aa62 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xbded3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42aa62,'accept',_0x3f6764);for(const _0x347c97 of['splitTableCellVertically','splitTableCellHorizontally'])_0xbded3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x347c97,'accept',_0x3f6764);_0xbded3d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2a8c54=>{_0x14d011['model']['change'](_0x348d6b=>{const _0x418c3c=Array['from'](_0x141d81['getRanges']())['map'](_0x4f1d82=>_0x41f621['fromRange'](_0x4f1d82));_0x348d6b['setSelection'](_0x2a8c54),_0x14d011['commands']['get']('mergeTableCells')['refresh'](),_0x14d011['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x526e0b=_0x418c3c['filter'](_0x3333af=>'$graveyard'!=_0x3333af['root']['rootName']);_0x526e0b['length']>0x0&&_0x348d6b['setSelection'](_0x526e0b);for(const _0x4d6f82 of _0x418c3c)_0x4d6f82['detach']();});});for(const _0x40c32f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x64da79=_0x14d011['commands']['get'](_0x40c32f);_0x64da79['on']('set:isEnabled',(_0x572235,_0xb4b66f,_0x372237)=>{if(_0x372237){const _0x192106=_0x14d011['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x14663e=>_0x14663e['is']('element','tableCell'));this['_areMergableCells'](_0x64da79['value'],_0x192106)||(_0x572235['return']=!0x1,_0x572235['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x573741=this['editor']['commands']['get']('mergeTableCells'),_0x5af4c4=this['editor']['plugins']['get']('TableUtils');if(!_0x573741['isEnabled'])return!0x1;const _0x28f9a2=_0x5af4c4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3fba14 of _0x28f9a2)for(const _0x4e4108 of _0x28f9a2)if(_0x3fba14!=_0x4e4108&&!this['_areMergableCells'](_0x3fba14,_0x4e4108))return!0x1;return!0x0;}['_areMergableCells'](_0x5b653a,_0x434221){const _0x58ec6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45be98=this['editor']['model']['createRangeOn'](_0x5b653a),_0xbd35e4=this['editor']['model']['createRangeOn'](_0x434221),_0x46f53f=new Set(),_0x832511=new Set();for(const _0x5222b3 of _0x58ec6a['getSuggestions']())if(('insertion'==_0x5222b3['type']||'deletion'==_0x5222b3['type']||'mergeTableCells'==_0x5222b3['subType'])&&_0x5222b3['isInContent']){for(const _0x529845 of _0x5222b3['getRanges']())_0x529845['containsRange'](_0x45be98,!0x0)&&_0x46f53f['add'](_0x5222b3['type']+':'+_0x5222b3['author']['id']),_0x529845['containsRange'](_0xbd35e4,!0x0)&&_0x832511['add'](_0x5222b3['type']+':'+_0x5222b3['author']['id']);}if(_0x46f53f['size']!=_0x832511['size'])return!0x1;for(const _0x59ebf9 of _0x46f53f)if(!_0x832511['has'](_0x59ebf9))return!0x1;return!0x0;}}class Tt extends _0x438b1d{static get['requires'](){return[Mt];}['afterInit'](){const _0x246551=this['editor'];if(!_0x246551['plugins']['has']('TableEditing'))return;const _0x360cad=_0x246551['locale'],_0x419dc8=_0x246551['plugins']['get']('TrackChangesEditing');_0x419dc8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x419dc8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x419dc8['registerBlockAttribute']('headingRows'),_0x419dc8['registerBlockAttribute']('headingColumns'),_0x419dc8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x360cad,'FORMAT_HEADER_ROW')),_0x419dc8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x360cad,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1bad50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55f579=this['editor']['plugins']['get']('TableUtils'),_0x393b89=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0x2a66e8({showActiveMarker:_0x1806d7=!0x0,setDataAttribute:_0x964e45=!0x0}={}){return(_0x4080fd,_0x344d95,_0x292b33)=>{const {type:_0x4fe2c7,id:_0x1a8e39}=_0x1bad50['_splitMarkerName'](_0x344d95['markerName']);if(!_0x1bad50['hasSuggestion'](_0x1a8e39))return;const _0x55765c=_0x1bad50['getSuggestion'](_0x1a8e39),_0x276cda=_0x55765c['data'];if('formatBlock'!=_0x55765c['type']||!_0x276cda||'setTableColumnHeader'!=_0x276cda['commandName'])return;if(_0x344d95['item'])return void _0x4080fd['stop']();if(!_0x292b33['consumable']['consume'](_0x344d95['markerRange'],_0x4080fd['name']))return;const _0x32c2ec=_0x344d95['markerRange']['start']['nodeAfter'],_0x52a178=_0x344d95['markerRange']['end']['nodeBefore'],_0xcc0fd1=_0x32c2ec['parent']['parent'],{column:_0x38a436}=_0x55f579['getCellLocation'](_0x32c2ec),{column:_0x1bfb37}=_0x55f579['getCellLocation'](_0x52a178);for(let _0x50491e=_0x38a436;_0x50491e<=_0x1bfb37;_0x50491e++){const _0x237d64=_0x55f579['createTableWalker'](_0xcc0fd1,{'column':_0x50491e,'includeAllSlots':!0x1});for(const _0x54422e of _0x237d64){const _0x54bf0b=_0x54422e['cell'],_0x2fb9db=_0x292b33['mapper']['toViewElement'](_0x54bf0b);_0x292b33['writer']['addClass']('ck-suggestion-marker-'+_0x4fe2c7,_0x2fb9db),_0x964e45&&_0x292b33['writer']['setAttribute']('data-suggestion',_0x1a8e39,_0x2fb9db),_0x292b33['mapper']['bindElementToMarker'](_0x2fb9db,_0x344d95['markerName']),_0x1806d7&&(_0x1bad50['activeMarkers']['includes'](_0x344d95['markerName'])?_0x292b33['writer']['addClass']('ck-suggestion-marker--active',_0x2fb9db):_0x292b33['writer']['removeClass']('ck-suggestion-marker--active',_0x2fb9db));}}};}_0x1bad50['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x393b89),_0x1bad50['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x393b89),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a66e8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5491bf,_0x32c751,_0x35d873)=>{_0x35d873['options']['showSuggestionHighlights']&&_0x2a66e8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5491bf,_0x32c751,_0x35d873);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1b2908,_0x25a5c0,_0x7afca3)=>{const {type:_0x4f64aa,id:_0x17ff73}=_0x1bad50['_splitMarkerName'](_0x25a5c0['markerName']);if(!_0x1bad50['hasSuggestion'](_0x17ff73))return;const _0x441d6f=_0x1bad50['getSuggestion'](_0x17ff73),_0x329c5b=_0x441d6f['data'];if('formatBlock'!=_0x441d6f['type']||!_0x329c5b||'setTableColumnHeader'!=_0x329c5b['commandName'])return;const _0x33da65=_0x7afca3['mapper']['markerNameToElements'](_0x25a5c0['markerName']);if(_0x33da65){for(const _0x1f7095 of _0x33da65)_0x7afca3['writer']['removeClass']('ck-suggestion-marker-'+_0x4f64aa,_0x1f7095),_0x7afca3['writer']['removeClass']('ck-suggestion-marker--active',_0x1f7095),_0x7afca3['writer']['removeAttribute']('data-suggestion',_0x1f7095),_0x7afca3['mapper']['unbindElementFromMarkerName'](_0x1f7095,_0x25a5c0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13464a=this['editor'],_0x4a795b=_0x13464a['locale'];function _0x3388dc(_0x4746c2){return{'type':'format','content':o(_0x4a795b,'*Format:*\x20%0',_0x4746c2)};}_0x13464a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x181200=>{if('formatBlock'!=_0x181200['type'])return;const {data:_0x3c75a2}=_0x181200;if(_0x3c75a2){if('setTableRowHeader'==_0x3c75a2['commandName']){const _0x287642=_0x3c75a2['commandParams'][0x0]['forceValue'];return _0x3388dc(o(_0x4a795b,_0x287642?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3c75a2['commandName']){const _0x17d7ec=_0x3c75a2['commandParams'][0x0]['forceValue'];return _0x3388dc(o(_0x4a795b,_0x17d7ec?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x438b1d{['afterInit'](){const _0x1427d0=this['editor'],_0x50d0b8=_0x1427d0['locale'],_0x4aee70=_0x1427d0['plugins']['get']('TrackChangesEditing');function _0x450c03(_0x40e9e5){return{'type':'format','content':''+o(_0x50d0b8,'*Set\x20table\x20type:*\x20%0',_0x40e9e5)};}_0x1427d0['plugins']['has']('TableLayout')&&(_0x4aee70['enableCommand']('insertTableLayout'),_0x4aee70['enableDefaultAttributesIntegration']('tableType'),_0x4aee70['registerBlockAttribute']('tableType'),_0x4aee70['descriptionFactory']['registerElementLabel'](_0x37361f=>_0x37361f['is']('element','table')&&'layout'===_0x37361f['getAttribute']('tableType'),_0x35969c=>o(_0x50d0b8,'ELEMENT_LAYOUT_TABLE',_0x35969c)),_0x4aee70['descriptionFactory']['registerDescriptionCallback'](_0x5bce4d=>{const {data:_0x17f388}=_0x5bce4d;if(_0x17f388&&'tableType'==_0x17f388['key'])switch(_0x17f388['newValue']){case'layout':return _0x450c03(o(_0x50d0b8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x450c03(o(_0x50d0b8,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ue['map'](_0x119e19=>[_0x119e19,null]));class xt extends _0x438b1d{static get['requires'](){return[Mt];}['afterInit'](){const _0x553391=this['editor'];if(!_0x553391['plugins']['has']('TableClipboard'))return;const _0x2192bb=_0x553391['plugins']['get']('TrackChangesEditing'),_0x471989=_0x553391['plugins']['get']('TableUtils'),_0x10e113=_0x553391['plugins']['get'](Mt),_0x51a9c3=_0x553391['plugins']['get']('TableClipboard'),_0x5892f1=_0x553391['plugins']['get']('TableSelection'),_0x8925db=_0x553391['plugins']['get'](_0x298a17);_0x10e113['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x553391['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x553391['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x53a657=null,_0x38df05=!0x1;_0x8925db['on']('contentInsertion',(_0x4feb12,_0x51e92a)=>{_0x38df05='paste'===_0x51e92a['method'];}),_0x553391['model']['on']('insertContent',(_0x4a63a4,_0x1d6f41)=>{if(!_0x38df05&&null===_0x5892f1['getSelectedTableCells']())return;const [_0x1acfd3,_0x15a144]=_0x1d6f41,_0x566ba2=_0x1d6f41[_0x1d6f41['length']-0x1];_0x566ba2&&_0x566ba2['forceDefaultExecution']||_0x2192bb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2610db,_0x76bbb8,_0x28bfee,_0x484bad,_0x452aa0){if(_0x76bbb8&&!_0x76bbb8['is']('documentSelection'))return!0x1;const _0x3edc78=_0x452aa0['getTableIfOnlyTableInContent'](_0x2610db,_0x28bfee);if(!_0x3edc78||!Ge(_0x3edc78,void 0x0,_0x484bad))return!0x1;const _0x3e143b=_0x484bad['getSelectionAffectedTableCells'](_0x28bfee['document']['selection']);if(!_0x3e143b['length'])return!0x1;const _0x2f634c=_0x3e143b[0x0]['findAncestor']('table'),_0x41cbc5=_0x484bad['getRowIndexes'](_0x3e143b),_0x3f0d8c=_0x484bad['getColumnIndexes'](_0x3e143b),_0x2d2652={'startRow':_0x41cbc5['first'],'endRow':_0x41cbc5['last'],'startColumn':_0x3f0d8c['first'],'endColumn':_0x3f0d8c['last']};return 0x1==_0x3e143b['length']&&(_0x2d2652['endRow']+=_0x484bad['getRows'](_0x3edc78)-0x1,_0x2d2652['endColumn']+=_0x484bad['getColumns'](_0x3edc78)-0x1),Ge(_0x2f634c,_0x2d2652,_0x484bad);}(_0x1acfd3,_0x15a144,_0x553391['model'],_0x471989,_0x51a9c3)&&(_0x4a63a4['stop'](),_0x53a657={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x553391['model']['change'](()=>{_0x553391['model']['insertContent'](_0x1d6f41[0x0],_0x1d6f41[0x1],_0x1d6f41[0x2],{'forceDefaultExecution':!0x0});const _0x1a893d=_0x47bc50(),{rowInsertionRanges:_0x24727b,columnInsertionRanges:_0xbfe77a,insertionRanges:_0x5e7736,deletionRanges:_0x1c8df6,cells:_0x3cccff}=_0x53a657;_0x24727b['length']&&_0x2192bb['markMultiRangeInsertion'](_0x24727b,'tablePasteRow',{'tablePasteChainId':_0x1a893d}),_0xbfe77a['length']&&_0x2192bb['markMultiRangeInsertion'](_0xbfe77a,'tablePasteColumn',{'tablePasteChainId':_0x1a893d}),_0x5e7736['length']&&(_0x2192bb['markMultiRangeInsertion'](_0x5e7736,'tablePaste',{'tablePasteChainId':_0x1a893d,'skipNestingCheck':!0x0}),_0x5e7736['forEach'](_0x5ae5ae=>_0x5ae5ae['detach']?.())),_0x1c8df6['length']&&(_0x2192bb['markMultiRangeDeletion'](_0x1c8df6,'tablePaste',{'tablePasteChainId':_0x1a893d,'skipNestingCheck':!0x0}),_0x1c8df6['forEach'](_0x25801f=>_0x25801f['detach']?.()));const _0x2a2224=_0x2192bb['markMultiRangeBlockFormat'](_0x3cccff['map'](({element:_0x4e1ed4})=>_0x4e1ed4),{'formatGroupId':_0x47bc50()},[],'tablePasteCell',{'tablePasteChainId':_0x1a893d});if(_0x2a2224){const _0xad9cfe=_0x2a2224['getMarkers'](),_0x951759=[];for(const {element:_0x132c02,attributes:_0x37bfaa}of _0x3cccff){if(!_0x37bfaa)continue;const _0x25d310=_0x553391['model']['createRangeOn'](_0x132c02),_0x439221=_0xad9cfe['find'](_0x2166e8=>_0x2166e8['getRange']()['isEqual'](_0x25d310));_0x439221&&_0x951759['push']([_0x439221['name'],_0x37bfaa]);}_0x951759['length']&&_0x2a2224['setAttribute']('markerAttributes',Object['fromEntries'](_0x951759));}_0x53a657=null;}));},{'priority':_0x231707['high']+0xa}),_0x8925db['on']('contentInsertion',()=>{_0x38df05=!0x1;},{'priority':'lowest'}),_0x553391['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x450bb8,_0x2135c6)=>{const [_0x14e50f,_0x215f65,,_0x253d49]=_0x2135c6;if(!_0x53a657)return;_0x450bb8['stop']();const _0x19d2df=_0x14e50f['cell'],_0x54568b=_0x215f65,_0x2cb90b=ze(_0x19d2df),_0x168404=ze(_0x54568b);_0x450bb8['return']=_0x19d2df;let _0x1849a6=null,_0x2c2820=null;if(_0x168404||_0x2cb90b){if(_0x2cb90b&&!_0x168404){_0x253d49['remove'](_0x19d2df['getChild'](0x0));for(const _0x36659d of Array['from'](_0x54568b['getChildren']()))_0x253d49['insert'](_0x36659d,_0x19d2df,'end');const _0x57d8b6=_0x53a657['rowInsertionIndexes']['includes'](_0x14e50f['row']),_0x382983=_0x53a657['columnInsertionIndexes']['includes'](_0x14e50f['column']);_0x57d8b6||_0x382983||(_0x1849a6=_0x41f621['fromRange'](_0x253d49['createRangeIn'](_0x19d2df)));}else _0x168404&&!_0x2cb90b&&(_0x2c2820=_0x253d49['createRangeIn'](_0x19d2df));}else{const _0x5a301b=_0x253d49['createElement']('tableCellSuggestion'),_0x5d2501=_0x253d49['createElement']('tableCellSuggestion');_0x253d49['wrap'](_0x253d49['createRangeIn'](_0x19d2df),_0x5d2501),_0x253d49['insert'](_0x5a301b,_0x19d2df,0x0);for(const _0x4167d7 of Array['from'](_0x54568b['getChildren']()))_0x253d49['insert'](_0x4167d7,_0x5a301b,'end');_0x1849a6=_0x41f621['fromRange'](_0x253d49['createRangeOn'](_0x5a301b)),_0x2c2820=_0x41f621['fromRange'](_0x253d49['createRangeOn'](_0x5d2501));}const _0x3cf1f9=Array['from'](_0x54568b['getAttributes']())['filter'](([_0x307ced])=>Ue['includes'](_0x307ced));_0x53a657['cells']['push']({'element':_0x19d2df,'attributes':_0x3cf1f9['length']?Object['fromEntries'](_0x3cf1f9):null}),_0x1849a6&&_0x53a657['insertionRanges']['push'](_0x1849a6),_0x2c2820&&_0x53a657['deletionRanges']['push'](_0x2c2820);},{'priority':'high'}),_0x471989['on']('insertColumns',(_0xab2ca6,_0x570cde)=>{const [_0x42eaae,_0x423fdd={}]=_0x570cde;if(!_0x53a657)return;const _0x5ef646=_0x423fdd['at']||0x0,_0x592369=_0x423fdd['columns']||0x1;_0x53a657['columnInsertionIndexes']=new Array(_0x592369)['fill'](_0x5ef646)['map']((_0x40cbf3,_0x381889)=>_0x40cbf3+_0x381889);for(const {cell:_0x22f786}of _0x471989['createTableWalker'](_0x42eaae,{'startColumn':_0x5ef646,'endColumn':_0x5ef646+_0x592369-0x1}))_0x53a657['columnInsertionRanges']['push'](_0x553391['model']['createRangeOn'](_0x22f786));},{'priority':'low'}),_0x471989['on']('insertRows',(_0x72aba7,_0x302fd2)=>{const [_0x3c40b5,_0x9791ac={}]=_0x302fd2;if(!_0x53a657)return;const _0x324f70=_0x9791ac['at']||0x0,_0x30bdde=_0x9791ac['rows']||0x1;_0x53a657['rowInsertionIndexes']=new Array(_0x30bdde)['fill'](_0x324f70)['map']((_0x3ae56f,_0x37b356)=>_0x3ae56f+_0x37b356);for(const {cell:_0x2f2dad}of _0x471989['createTableWalker'](_0x3c40b5,{'startRow':_0x324f70,'endRow':_0x324f70+_0x30bdde-0x1}))_0x53a657['rowInsertionRanges']['push'](_0x553391['model']['createRangeOn'](_0x2f2dad));},{'priority':'low'}),_0x2192bb['descriptionFactory']['registerDescriptionCallback'](_0x41478a=>{if(_0x41478a['subType']&&_0x41478a['subType']['startsWith']('tablePaste'))return _0x41478a['previous']?{}:{'type':'insertion','content':o(_0x553391['locale'],'*Replace\x20table\x20cells*')};});const _0x4eb775=()=>!0x1;for(const _0x4f43b4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2192bb['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f43b4,'join',_0x4eb775),_0x2192bb['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f43b4,'join',_0x4eb775),_0x2192bb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f43b4,'join',_0x4eb775);_0x2192bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4eb775),_0x2192bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11047d,_0x4e0b16,_0x1eaabf)=>{const _0x231b7e=_0x11047d['map'](_0x558db1=>_0x558db1['getContainedElement']())['filter'](_0x560e57=>_0x560e57),_0x1b7680=new Map(_0x231b7e['map'](_0x47a57f=>[_0x47a57f,null]));if(_0x53a657){for(const {element:_0x293835,attributes:_0x479ec2}of _0x53a657['cells'])_0x479ec2&&_0x1b7680['set'](_0x293835,_0x479ec2);}else{if(_0x1eaabf&&_0x1eaabf['markerAttributes'])for(const [_0x527898,_0x2a4e5c]of Object['entries'](_0x1eaabf['markerAttributes'])){const _0x5c03d9=_0x553391['model']['markers']['get'](_0x527898),_0x433a5a=_0x5c03d9?_0x5c03d9['getRange']()['getContainedElement']():null;_0x433a5a&&_0x1b7680['set'](_0x433a5a,_0x2a4e5c);}}_0x553391['model']['change'](_0x478617=>{for(const [_0x4d1e48,_0xb43aa0]of _0x1b7680)_0x478617['setAttributes']({...He,..._0xb43aa0},_0x4d1e48);});});const _0xfcf11b=(_0x22d288,_0x34b2f5)=>{_0x2192bb['_suggestionFactory']['registerCustomCallback'](_0x22d288,'tablePaste',_0x34b2f5,(_0x25f9c7,_0x5ab868,_0xc0a920)=>{_0x553391['model']['change'](_0x59940a=>{const _0x191134=[];for(const _0x557b26 of _0x25f9c7){const _0x295d70=_0x557b26['start']['nodeAfter'];_0x295d70['is']('element','tableCellSuggestion')&&_0x191134['push'](_0x295d70);}_0x2192bb['_suggestionFactory']['getSuggestionCallback'](_0x22d288,null,_0x34b2f5)(_0x25f9c7,_0x5ab868,_0xc0a920);for(const _0x428cd7 of _0x191134)'$graveyard'!=_0x428cd7['root']['rootName']&&_0x59940a['unwrap'](_0x428cd7);});});};_0xfcf11b('insertion','accept'),_0xfcf11b('insertion','discard'),_0xfcf11b('deletion','accept'),_0xfcf11b('deletion','discard'),_0x2192bb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x44feab=>{const _0xfa3bac=_0x44feab['map'](_0x1edf7f=>_0x1edf7f['getContainedElement']()),_0x5b73c5=_0xfa3bac[0x0]['findAncestor']('table'),{minRow:_0x17aa57,maxRow:_0x314d52}=_0x10e113['_getCoordsForCells'](_0xfa3bac);_0x471989['removeRows'](_0x5b73c5,{'at':_0x17aa57,'rows':_0x314d52-_0x17aa57+0x1});}),_0x2192bb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x70269e=>{const _0x27515f=_0x70269e['map'](_0x3d2a3c=>_0x3d2a3c['getContainedElement']()),_0x548f5c=_0x27515f[0x0]['findAncestor']('table'),{minColumn:_0x1a5a56,maxColumn:_0x271af7}=_0x10e113['_getCoordsForCells'](_0x27515f);_0x471989['removeColumns'](_0x548f5c,{'at':_0x1a5a56,'columns':_0x271af7-_0x1a5a56+0x1});});const _0x14b210=(_0x1eb143,_0x530ad3)=>{if(!_0x530ad3['subType']||!_0x530ad3['subType']['startsWith']('tablePaste'))return;const _0x237c8c=_0x530ad3['attributes']['tablePasteChainId'],_0x1baf48=_0x2192bb['getSuggestions']()['filter'](_0x2da874=>_0x2da874['isInContent']&&_0x2da874['attributes']&&_0x2da874['attributes']['tablePasteChainId']==_0x237c8c);_0x1baf48['length']&&_0x530ad3['getAllAdjacentSuggestions']()['length']!=_0x1baf48['length']&&_0x1baf48['reduce']((_0x43c25d,_0x2bbcfe)=>(_0x43c25d['next']=_0x2bbcfe,_0x2bbcfe['previous']=_0x43c25d,_0x2bbcfe));};function _0x5e0b3c(_0x550e6b,_0x251364=!0x0){const {id:_0x30607a,authorId:_0xab1a23}=_0x2192bb['_splitMarkerName'](_0x550e6b['markerName']),_0x2e0230=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4173bc=_0x2192bb['activeMarkers']['includes'](_0x550e6b['markerName']);return _0x4173bc&&_0x2e0230['push']('ck-suggestion-marker--active'),{'classes':_0x2e0230,'attributes':{'data-suggestion':_0x30607a,'data-author-id':_0xab1a23},'priority':_0x4173bc&&_0x251364?0xbc2:0xbb8};}_0x2192bb['on']('suggestionLoaded',_0x14b210,{'priority':'high'}),_0x2192bb['on']('suggestionUnloaded',_0x14b210,{'priority':'high'}),_0x553391['model']['document']['registerPostFixer'](()=>{let _0x380832=!0x1;const _0x1cb483=Array['from'](_0x553391['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x33e032,data:_0x33abe4}of _0x1cb483){const {group:_0x48efdf,type:_0x34a3f5,id:_0x1a0ed9}=_0x2192bb['_splitMarkerName'](_0x33e032);if('suggestion'!=_0x48efdf||'deletion'!=_0x34a3f5||_0x33abe4['oldRange'])continue;if(!_0x2192bb['hasSuggestion'](_0x1a0ed9))continue;const _0x49eff3=_0x2192bb['getSuggestion'](_0x1a0ed9)['getRanges'](),_0x536f7b=_0x553391['plugins']['get']('Users')['me'];for(const _0x50f4fc of _0x2192bb['getSuggestions']()){if(!_0x50f4fc['isInContent']||_0x50f4fc['author']!=_0x536f7b)continue;if('formatBlock'!=_0x50f4fc['type']||'tablePasteCell'!=_0x50f4fc['subType'])continue;if(_0x50f4fc['getRanges']()['every'](_0x5447e4=>_0x49eff3['some'](_0x164d4a=>_0x164d4a['containsRange'](_0x5447e4,!0x0)))){for(const _0x12a979 of _0x50f4fc['getAllAdjacentSuggestions']())_0x12a979['isInContent']&&(_0x12a979['discard'](),_0x380832=!0x0);}}}return _0x380832;}),_0x553391['model']['document']['registerPostFixer'](_0x2d510a=>{const _0x1ae6e8=_0x553391['commands']['get']('redo');if(!_0x1ae6e8||!_0x1ae6e8['_createdBatches']['has'](_0x2d510a['batch']))return!0x1;let _0xf01e70=!0x1;const _0x47fc60=_0x553391['plugins']['get']('Users')['me'],_0x21d582=_0x553391['model']['document']['differ']['getChanges'](),_0x1c5eb7=Array['from'](_0x553391['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3854d7,data:_0x293b4e})=>{const {group:_0x582e0d,subType:_0x253ad4,authorId:_0x441d0f}=_0x2192bb['_splitMarkerName'](_0x3854d7);return'suggestion'==_0x582e0d&&'tablePaste'==_0x253ad4&&_0x441d0f==_0x47fc60['id']&&!_0x293b4e['oldRange'];});for(const _0x3fce19 of _0x21d582){if('insert'!=_0x3fce19['type']||'tableCellSuggestion'!=_0x3fce19['name']||0x1!=_0x3fce19['length'])continue;const _0x41c4e2=_0x2d510a['createRange'](_0x3fce19['position'],_0x3fce19['position']['getShiftedBy'](0x1));if(!_0x1c5eb7['find'](({data:_0x142daa})=>_0x142daa['newRange']['isEqual'](_0x41c4e2))){for(const {name:_0xbf8de8,data:_0x4eaf90}of _0x1c5eb7)if(_0x41c4e2['containsRange'](_0x4eaf90['newRange'])){_0x2d510a['updateMarker'](_0xbf8de8,{'range':_0x41c4e2}),_0xf01e70=!0x0;break;}}}return _0xf01e70;}),_0x553391['model']['document']['registerPostFixer'](_0x57a0be=>{let _0x1f64f9=!0x1;const _0x317599=_0x553391['plugins']['get']('Users')['me'],_0x9102fe=_0x2192bb['getSuggestions']()['filter'](_0x521553=>_0x521553['isInContent']&&_0x521553['author']==_0x317599),_0x3f6a9d=new Set(),_0x4f45ff=new Set();for(const _0x54bbfe of _0x9102fe)if('tablePaste'==_0x54bbfe['subType'])for(const _0x11f7b3 of _0x54bbfe['getMarkers']()){const _0x5dcadf=_0x11f7b3['getRange']()['getContainedElement']();if(_0x5dcadf){if(_0x5dcadf['is']('element','tableCellSuggestion')&&ze(_0x5dcadf)){_0x54bbfe['removeMarker'](_0x11f7b3['name']),_0x3f6a9d['add'](_0x5dcadf),_0x1f64f9=!0x0;const _0x1a0a45=_0x5dcadf['nextSibling'],_0x50ff6c=_0x5dcadf['previousSibling'],_0x3ed28a=_0x1a0a45&&_0x1a0a45['is']('element','tableCellSuggestion'),_0x2516d9=_0x50ff6c&&_0x50ff6c['is']('element','tableCellSuggestion');_0x3ed28a&&!_0x3f6a9d['has'](_0x1a0a45)&&_0x4f45ff['add'](_0x1a0a45),_0x2516d9&&!_0x3f6a9d['has'](_0x50ff6c)&&_0x4f45ff['add'](_0x50ff6c);}else _0x5dcadf['is']('element','paragraph')&&_0x5dcadf['isEmpty']&&(_0x54bbfe['removeMarker'](_0x11f7b3['name']),_0x1f64f9=!0x0);}}else{if('tablePasteCell'==_0x54bbfe['subType']){if(!_0x54bbfe['attributes']||!_0x54bbfe['attributes']['tablePasteChainId'])continue;const _0x58ed89=_0x54bbfe['attributes']['markerAttributes'];if(_0x58ed89&&Object['keys'](_0x58ed89)['length'])continue;const _0x478558=_0x54bbfe['attributes']['tablePasteChainId'];let _0x2ab6ac=!0x0,_0x4af91d=!0x0;for(const _0xb66742 of _0x9102fe)if(_0xb66742['subType']&&_0xb66742['subType']['startsWith']('tablePaste')){if(!_0xb66742['attributes']['tablePasteChainId']){_0x4af91d=!0x1;break;}if(_0xb66742['id']!=_0x54bbfe['id']&&_0xb66742['attributes']['tablePasteChainId']==_0x478558){_0x2ab6ac=!0x1;break;}}_0x4af91d&&_0x2ab6ac&&(_0x54bbfe['removeMarkers'](),_0x1f64f9=!0x0);}}for(const _0x75a7ff of _0x3f6a9d)_0x57a0be['remove'](_0x75a7ff);for(const _0x43cba8 of _0x4f45ff)_0x57a0be['unwrap'](_0x43cba8);return _0x1f64f9;}),_0x553391['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b2e89=>_0x5e0b3c(_0x3b2e89),'converterPriority':'high'}),_0x553391['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x205e8c,_0x1415e0)=>_0x1415e0['options']['showSuggestionHighlights']?_0x5e0b3c(_0x205e8c,!0x1):null,'converterPriority':'high'});const _0x558705=_0x553391['editing']['view'];this['listenTo'](_0x558705['document'],'clipboardOutput',(_0x486ef0,_0x10b0e2)=>{const _0x55f789=[];for(const _0x1dc5a7 of _0x558705['createRangeIn'](_0x10b0e2['content'])['getItems']())_0x1dc5a7['is']('element','suggestion-td')&&_0x55f789['push'](_0x1dc5a7);_0x558705['change'](_0x54dec2=>{for(const _0x34bca1 of _0x55f789)_0x54dec2['move'](_0x54dec2['createRangeIn'](_0x34bca1),_0x54dec2['createPositionBefore'](_0x34bca1)),_0x54dec2['remove'](_0x34bca1);});});}}function ze(_0x34fbce){if(_0x34fbce['isEmpty'])return!0x0;const _0x2e96d0=_0x34fbce['getChild'](0x0);return _0x2e96d0['is']('element','paragraph')&&_0x2e96d0['isEmpty'];}function Ge(_0x3641d7,_0x1763aa={},_0x37de3f){for(const {isAnchor:_0x5eadc5,cellHeight:_0x45fbd1,cellWidth:_0xaf5ef5}of _0x37de3f['createTableWalker'](_0x3641d7,{'includeAllSlots':!0x0,..._0x1763aa}))if(!_0x5eadc5||0x1!=_0x45fbd1||0x1!=_0xaf5ef5)return!0x1;return!0x0;}class Et extends _0x438b1d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x306b86=this['editor']['plugins']['get']('TrackChangesEditing');_0x306b86['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x306b86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x306b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x306b86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x306b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x306b86['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e42ee,_0x5b9184){const _0x3691b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2194fb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x111416=_0x5b9184['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x39ac8c=_0x2194fb['getColumnGroupElement'](_0x111416);let _0x2374d7=_0x39ac8c?_0x2194fb['getTableColumnsWidths'](_0x39ac8c):null,_0x3d0a36=_0x111416['getAttribute']('tableWidth')||null;const _0x1812e6=_0x5b9184['tableWidth']||_0x3d0a36,_0x326bd0=_0x5b9184['columnWidths']||_0x2374d7,_0x423b16=this['editor']['plugins']['get']('Users')['me'];for(const _0x427f8b of _0x3691b8['getSuggestions']()){const _0x1bc9fb=_0x427f8b['getContainedElement']();if('resizeTable'===_0x427f8b['subType']&&_0x1bc9fb===_0x111416){_0x427f8b['author']!==_0x423b16&&_0x427f8b['discard']();const _0x379664=_0x427f8b['data']['commandParams'];_0x3d0a36=_0x379664[0x0]['tableWidth'],_0x2374d7=_0x379664[0x0]['columnWidths'];break;}}_0x1e42ee({'table':_0x111416,'tableWidth':_0x1812e6,'columnWidths':_0x326bd0}),_0x3691b8['markBlockFormat'](_0x111416,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3d0a36,'columnWidths':_0x2374d7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x48e453){if('formatBlock'!=_0x48e453['type']&&'formatInline'!=_0x48e453['type'])return;const {data:_0x1c76f9}=_0x48e453;if(_0x1c76f9&&'resizeTable'===_0x1c76f9['formatGroupId']){const _0x1e796a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e796a)};}}}class Rt extends _0x438b1d{['afterInit'](){const _0x457577=this['editor'];_0x457577['plugins']['has']('Template')&&_0x457577['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x438b1d{['afterInit'](){const _0x25b564=this['editor'];if(!_0x25b564['commands']['get']('insertTableOfContents'))return;_0x25b564['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x8ab272=_0x25b564['plugins']['get']('TrackChangesEditing'),_0x2de63e=_0x25b564['locale'];_0x8ab272['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1831f9=>o(_0x2de63e,'ELEMENT_TABLE_OF_CONTENTS',_0x1831f9));}}class Vt extends _0x438b1d{['afterInit'](){const _0x7b6c1b=this['editor'];if(!_0x7b6c1b['plugins']['has']('Title'))return;const _0x499eda=_0x7b6c1b['plugins']['get']('TrackChangesEditing');_0x499eda['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x7b6c1b['locale'],'ELEMENT_TITLE')),_0x7b6c1b['model']['document']['registerPostFixer'](_0x598e83=>{let _0x45d635=!0x1;const _0x21bb93=Array['from'](_0x7b6c1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39b473,data:_0x8a468f}of _0x21bb93){const {group:_0x375456}=_0x499eda['_splitMarkerName'](_0x39b473);if('suggestion'!==_0x375456||!_0x8a468f['newRange'])continue;const _0xf3ebac=_0x8a468f['newRange'],_0x541c8c=_0xf3ebac['end']['nodeBefore'];if(!_0x541c8c||!_0x541c8c['is']('element','title-content'))continue;if(!_0xf3ebac['start']['isTouching'](_0xf3ebac['end']))continue;const _0xded738=_0x7b6c1b['model']['schema']['getNearestSelectionRange'](_0xf3ebac['end'],'forward');if(_0xded738&&_0xded738['isCollapsed']){const _0x12758c=_0x598e83['createRange'](_0xf3ebac['start'],_0xded738['start']);_0x12758c['isEqual'](_0xf3ebac)||(_0x598e83['updateMarker'](_0x39b473,{'range':_0x12758c}),_0x45d635=!0x0);}_0x45d635||(_0x598e83['removeMarker'](_0x39b473),_0x45d635=!0x0);}return _0x45d635;});}}class Ft extends _0x438b1d{['afterInit'](){const _0x295c00=this['editor'],_0x1fe250=_0x295c00['plugins']['get']('TrackChangesEditing');_0x295c00['plugins']['has']('Uploadcare')&&(_0x1fe250['enableCommand']('uploadcare'),_0x295c00['plugins']['has']('UploadcareImageEdit')&&(_0x1fe250['enableCommand']('uploadcareImageEdit'),_0x1fe250['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1fe250['registerBlockAttribute']('uploadcareImageId'),_0x1fe250['descriptionFactory']['registerDescriptionCallback'](_0x23f0b4=>{if('attribute'!=_0x23f0b4['type'])return;const {data:_0x1f8c77}=_0x23f0b4;return _0x1f8c77&&'uploadcareImageId'==_0x1f8c77['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x438b1d{['afterInit'](){const _0x2408c1=this['editor'],_0x36b162=_0x2408c1['plugins']['get']('TrackChangesEditing');_0x2408c1['plugins']['has']('UndoEditing')&&(_0x36b162['enableCommand']('undo'),_0x36b162['enableCommand']('redo'));}}class Gt extends _0x438b1d{static get['requires'](){return[Mt];}['afterInit'](){const _0x353103=this['editor'];if(!_0x353103['plugins']['has']('TableCaptionEditing'))return;_0x353103['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x438b1d{['tableProperties'];['tableCellProperties'];constructor(_0x126ec4){super(_0x126ec4),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 _0x3f334d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x578f9c of this['tableProperties'])_0x3f334d['enableCommand'](_0x578f9c,(_0x267c66,_0x48394e)=>{const _0x209bba=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x578f9c,[_0x209bba],this['tableProperties'],'tableProperties',_0x267c66,_0x48394e);});_0x3f334d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3f334d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f334d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x29bea9,_0x50dd04)=>this['handleDiscardAction'](this['tableProperties'],_0x29bea9,_0x50dd04)),_0x3f334d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x342e08 of this['tableCellProperties'])_0x3f334d['enableCommand'](_0x342e08,(_0xaf5193,_0x24d8b2)=>{const _0x275589=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x342e08,_0x275589,this['tableCellProperties'],'tableCellProperties',_0xaf5193,_0x24d8b2);});_0x3f334d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3f334d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f334d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x186515,_0x2fc889)=>this['handleDiscardAction'](this['tableCellProperties'],_0x186515,_0x2fc889)),_0x3f334d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3f334d['descriptionFactory']['registerDescriptionCallback'](_0x30b07b=>this['handleSuggestionDescription'](_0x30b07b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xa30cb7,_0xb83805,_0x39ced2,_0x1db548,_0x157089,_0x25cee3){const _0x2e3349=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x25cee3['batch'],()=>{for(const _0x364845 of _0xb83805){if(this['_getSuggestion'](_0x364845,_0x1db548))_0x157089(_0x25cee3);else{const _0xd8958={};for(const _0x3a815a of _0x39ced2){const _0x5e4b66=_0x364845['getAttribute'](_0x3a815a);void 0x0!==_0x5e4b66&&(_0xd8958[_0x3a815a]=_0x5e4b66);}_0x157089(_0x25cee3),_0x2e3349['markBlockFormat'](_0x364845,{'commandParams':[_0xd8958]},[],_0x1db548);}}});}['handleDiscardAction'](_0x3e7187,_0x4846e7,_0x4d1416){const _0x41516c=_0x4846e7[0x0]['start']['nodeAfter'],_0x399f11=_0x4d1416['commandParams'][0x0];this['editor']['model']['change'](_0x41eef3=>{for(const _0xaee253 of _0x3e7187)void 0x0!==_0x399f11[_0xaee253]?_0x41eef3['setAttribute'](_0xaee253,_0x399f11[_0xaee253],_0x41516c):_0x41eef3['removeAttribute'](_0xaee253,_0x41516c);});}['handleSuggestionDescription'](_0x1553e6){if(_0x1553e6['data'])switch(_0x1553e6['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'](_0x220f84,_0x52b6a7){const _0x15dcf9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b67b2 of _0x15dcf9['getSuggestions']({'skipNotAttached':!0x0})){const _0x31bec7=_0x1b67b2['getContainedElement']();if(_0x1b67b2['subType']===_0x52b6a7&&_0x31bec7===_0x220f84)return _0x1b67b2;}return null;}['_registerTablePropertiesAttributes'](){const _0x3fc399=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34cf19=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x9e876b of _0x34cf19){const _0x14d355=_0x9e876b['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3fc399['registerBlockAttribute'](_0x9e876b),_0x3fc399['descriptionFactory']['registerAttributeLabel'](_0x9e876b,o(this['editor']['locale'],'FORMAT_'+_0x14d355));}}}class Jt extends _0x438b1d{['afterInit'](){const _0xc73b7e=this['editor'];if(!_0xc73b7e['plugins']['has']('LineHeight'))return;const _0x155796=_0xc73b7e['plugins']['get']('TrackChangesEditing'),_0x4b572a=_0xc73b7e['locale'];_0x155796['enableDefaultAttributesIntegration']('lineHeight'),_0x155796['registerBlockAttribute']('lineHeight'),_0x155796['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4b572a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x438b1d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x29a3ab,_0x5216c7,_0x3513c7,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f69f0){super(_0x3f69f0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe2bc19,_0x1e9949,_0x30aef1,_0x131e2b)=>{this['_model']['change'](()=>{for(const _0x1f4a54 of[..._0x131e2b,..._0x30aef1])this['_model']['markers']['has'](_0x1f4a54)&&_0x3f69f0['editing']['reconvertMarker'](_0x1f4a54);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f69f0['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(),_0x3f69f0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f69f0['config']['get']('trackChanges.trackFormatChanges'),_0x3f69f0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f69f0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3f69f0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d6ac5=this['editor'],_0x9f1a47=(_0x2e1953,_0x1c7119)=>{if('attribute'!=_0x2e1953)return'ck-suggestion-marker-'+_0x2e1953;const _0x3d80f9=_0x1c7119['split']('|')[0x0];return this['_isBlockAttribute'](_0x3d80f9)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d6ac5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4b5513=>{const {id:_0x2a630f,authorId:_0x20d935,type:_0x50690e,subType:_0x86e650}=this['_splitMarkerName'](_0x4b5513['markerName']),_0x1fbb2e=['ck-suggestion-marker',_0x9f1a47(_0x50690e,_0x86e650)];let _0x10d128=0xbb8;return this['activeMarkers']['includes'](_0x4b5513['markerName'])&&(_0x1fbb2e['push']('ck-suggestion-marker--active'),_0x10d128=0xbc2),'deletion'==_0x50690e&&(_0x10d128+=0x5),{'classes':_0x1fbb2e,'attributes':{'data-suggestion':_0x2a630f,'data-author-id':_0x20d935},'priority':_0x10d128};}}),_0x3d6ac5['conversion']['for']('dataDowncast')['add'](_0x5d436e=>{_0x5d436e['on']('addMarker:suggestion',(_0x2e3fa3,_0x2ad222,_0x48286b)=>{if(!_0x48286b['options']['showSuggestionHighlights'])return;const _0x3d41bc=_0x2ad222['item'];if(!_0x3d41bc)return;const _0x5e02f8=_0x48286b['mapper']['toViewElement'](_0x3d41bc);_0x3d6ac5['model']['schema']['isObject'](_0x3d41bc)&&_0x5e02f8&&!_0x5e02f8['getCustomProperty']('widget')&&_0x5e02f8['is']('containerElement')&&_0x1764d5(_0x5e02f8,_0x48286b['writer']);},{'priority':'high'});}),_0x3d6ac5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc545cc,_0x172940)=>{if(!_0x172940['options']['showSuggestionHighlights'])return null;const {id:_0x37010d,authorId:_0x17a628,type:_0x121d2a,subType:_0x1bb700}=this['_splitMarkerName'](_0xc545cc['markerName']);return{'classes':['ck-suggestion-marker',_0x9f1a47(_0x121d2a,_0x1bb700)],'priority':0xbb8,'attributes':{'data-suggestion':_0x37010d,'data-author-id':_0x17a628}};}});const _0x2cc498=({showActiveMarkers:_0x4367dc=!0x0,isAttributeSuggestion:_0x2e2baf=!0x1}={})=>(_0x14490c,_0x4934f9,_0x1df1ee)=>{if(!_0x4934f9['item'])return;const {id:_0x5990e4,authorId:_0x1c1700,subType:_0x2b55d5}=this['_splitMarkerName'](_0x4934f9['markerName']);if(_0x2e2baf){const _0x23ed0e=ae(_0x2b55d5);if(!this['_isBlockAttribute'](_0x23ed0e))return;}if(_0x4934f9['item']['is']('selection'))return void _0x1df1ee['consumable']['consume'](_0x4934f9['item'],_0x14490c['name']);const _0x4f6d0f=_0x1df1ee['mapper']['toViewElement'](_0x4934f9['item']);if(_0x4934f9['item']['is']('element')&&_0x3d6ac5['model']['schema']['isBlock'](_0x4934f9['item'])&&!_0x4f6d0f['getCustomProperty']('addHighlight')){_0x1df1ee['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f6d0f),_0x1df1ee['writer']['setAttribute']('data-suggestion',_0x5990e4,_0x4f6d0f),_0x1df1ee['writer']['setAttribute']('data-author-id',_0x1c1700,_0x4f6d0f),_0x1df1ee['mapper']['bindElementToMarker'](_0x4f6d0f,_0x4934f9['markerName']),_0x4367dc&&(this['activeMarkers']['includes'](_0x4934f9['markerName'])?_0x1df1ee['writer']['addClass']('ck-suggestion-marker--active',_0x4f6d0f):_0x1df1ee['writer']['removeClass']('ck-suggestion-marker--active',_0x4f6d0f));for(const _0x4e2a9d of _0x3d6ac5['model']['createRangeIn'](_0x4934f9['item'])['getItems']())_0x1df1ee['consumable']['consume'](_0x4e2a9d,_0x14490c['name']);_0x1df1ee['consumable']['consume'](_0x4934f9['item'],_0x14490c['name']);}};_0x3d6ac5['conversion']['for']('dataDowncast')['add'](_0x4f3159=>{_0x4f3159['on']('addMarker:suggestion:formatBlock',(_0x3681d7,_0x106f2b,_0x299c3c)=>{_0x299c3c['options']['showSuggestionHighlights']&&_0x2cc498({'showActiveMarkers':!0x1})(_0x3681d7,_0x106f2b,_0x299c3c);},{'priority':'highest'});}),_0x3d6ac5['conversion']['for']('dataDowncast')['add'](_0x38a544=>{_0x38a544['on']('addMarker:suggestion:attribute',(_0x53fd50,_0x258940,_0x2bffb8)=>{_0x2bffb8['options']['showSuggestionHighlights']&&_0x2cc498({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x53fd50,_0x258940,_0x2bffb8);},{'priority':'highest'});}),_0x3d6ac5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25a932,_0x4a921d)=>{if(_0x4a921d['options']['showSuggestionHighlights']){const {id:_0x475be6,authorId:_0x22a1f1}=this['_splitMarkerName'](_0x25a932);return _0x25a932['includes'](':split')||_0x25a932['includes'](':merge')?{'group':'suggestion','name':_0x25a932['substr'](0xb),'attributes':{'data-suggestion':_0x475be6,'data-author-id':_0x22a1f1}}:null;}return{'group':'suggestion','name':_0x25a932['substr'](0xb)};}}),_0x3d6ac5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x20b766,{writer:_0x257eb7})=>{let _0x5501cc='suggestion:'+_0x20b766['getAttribute']('suggestion-type')+':'+_0x20b766['getAttribute']('id');return _0x20b766['getAttribute']('marker-count')&&(_0x5501cc+=':'+_0x20b766['getAttribute']('marker-count')),_0x257eb7['createElement']('$marker',{'data-name':_0x5501cc});}}),_0x3d6ac5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d6ac5['conversion']['for']('editingDowncast')['add'](_0x22b938=>{_0x22b938['on']('addMarker:suggestion:formatBlock',_0x2cc498(),{'priority':'high'});}),_0x3d6ac5['conversion']['for']('editingDowncast')['add'](_0x61a336=>{_0x61a336['on']('addMarker:suggestion:attribute',_0x2cc498({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d6ac5['conversion']['for']('editingDowncast')['add'](_0x5f80e9=>{_0x5f80e9['on']('removeMarker:suggestion:formatBlock',(_0x463ba5,_0x4c6ee1,_0x37c241)=>{const _0x456e6f=_0x37c241['mapper']['markerNameToElements'](_0x4c6ee1['markerName']);if(_0x456e6f){for(const _0x462480 of _0x456e6f)_0x462480['getCustomProperty']('addHighlight')||(_0x37c241['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x462480),_0x37c241['writer']['removeAttribute']('data-suggestion',_0x462480),_0x37c241['writer']['removeAttribute']('data-author-id',_0x462480),_0x37c241['mapper']['unbindElementFromMarkerName'](_0x462480,_0x4c6ee1['markerName']));}},{'priority':'high'});}),_0x3d6ac5['conversion']['for']('editingDowncast')['add'](_0xff8cda=>{_0xff8cda['on']('removeMarker:suggestion:attribute',(_0x5c9aa4,_0x381b27,_0x4a1492)=>{const _0x246ddb=_0x4a1492['mapper']['markerNameToElements'](_0x381b27['markerName']);if(!_0x246ddb)return;const {subType:_0xda9698}=this['_splitMarkerName'](_0x381b27['markerName']),_0x5d5667=ae(_0xda9698);if(this['_isBlockAttribute'](_0x5d5667)){for(const _0x46b6dc of _0x246ddb)_0x46b6dc['getCustomProperty']('addHighlight')||(_0x4a1492['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x46b6dc),_0x4a1492['writer']['removeAttribute']('data-suggestion',_0x46b6dc),_0x4a1492['writer']['removeAttribute']('data-author-id',_0x46b6dc),_0x4a1492['mapper']['unbindElementFromMarkerName'](_0x46b6dc,_0x381b27['markerName']));}},{'priority':'high'});}),_0x3d6ac5['model']['document']['registerPostFixer'](_0x51171d=>{let _0x48d6a2=!0x1;const _0xe4669b=Array['from'](_0x3d6ac5['model']['document']['differ']['getChangedMarkers']()),_0x8914c5=new Set();for(const {name:_0x37293a,data:_0x49326a}of _0xe4669b){const {group:_0x153bcd,type:_0x3c27fd,subType:_0x221a1d,id:_0x596930}=this['_splitMarkerName'](_0x37293a);if('suggestion'!==_0x153bcd)continue;const _0x5b082c=_0x221a1d?'suggestion:'+_0x3c27fd+':'+_0x221a1d+':'+_0x596930:'suggestion:'+_0x3c27fd+':'+_0x596930,_0x3e91b4=_0x3d6ac5['model']['markers']['getMarkersGroup'](_0x5b082c),_0x5f5a73=_0x3d6ac5['model']['markers']['get'](_0x37293a),_0x1769c4=this['_suggestions']['get'](_0x596930);if(null!=_0x49326a['newRange']){'formatInline'==_0x3c27fd&&(_0x48d6a2=_0x48d6a2||zt(_0x49326a['newRange'],_0x37293a,_0x51171d,_0x3d6ac5['model']['schema']));const _0x18aa68='attribute'==_0x3c27fd&&this['_isBlockAttribute'](_0x221a1d['split']('|')[0x0]),_0x531b3a='attribute'==_0x3c27fd&&this['_isInlineAttribute'](_0x221a1d['split']('|')[0x0]);if(_0x49326a['newRange']['isCollapsed']||'$graveyard'==_0x49326a['newRange']['root']['rootName']||'formatBlock'==_0x3c27fd&&!Xt(_0x49326a['newRange'])||_0x18aa68&&!Xt(_0x49326a['newRange'])||_0x531b3a&&Yt(_0x49326a['newRange'])||'deletion'==_0x3c27fd&&Yt(_0x49326a['newRange'])||_0x5f5a73&&Zt(_0x5f5a73,_0x3e91b4))_0x51171d['removeMarker'](_0x37293a),_0x48d6a2=!0x0;else{if(!_0x1769c4||!_0x1769c4['isInContent'])continue;if(_0x49326a['newRange']&&_0x49326a['oldRange']&&_0x49326a['newRange']['isEqual'](_0x49326a['oldRange']))continue;_0x8914c5['add'](_0x1769c4);}}}return _0x8914c5['size']>0x0&&(_0x48d6a2=!!this['_joinWithAdjacentSuggestions'](_0x8914c5)||_0x48d6a2),_0x48d6a2;}),_0x3d6ac5['model']['document']['registerPostFixer'](_0x12e9c3=>{let _0x2ae69e=!0x1;for(const _0x1a3be3 of _0x3d6ac5['model']['document']['differ']['getChanges']())if('insert'==_0x1a3be3['type'])for(const _0x3e669c of this['_suggestions']['values']()){if(_0x3e669c['isMultiRange']||!_0x3e669c['isInContent'])continue;const _0x426d17='formatBlock'==_0x3e669c['type'],_0x4c492c=this['_getAttributeKey'](_0x3e669c),_0x160e33=_0x4c492c&&this['_isBlockAttribute'](_0x4c492c);if(!_0x426d17&&!_0x160e33)continue;const _0x49e7a1=_0x3e669c['getFirstRange']();if(_0x49e7a1['start']['parent']!=_0x49e7a1['end']['parent']&&!_0x49e7a1['end']['isAtEnd']){const _0x59fc4b=_0x3d6ac5['model']['createPositionAt'](_0x49e7a1['start']['nodeAfter'],'end'),_0x3873c4=_0x3d6ac5['model']['createRange'](_0x49e7a1['start'],_0x59fc4b);_0x12e9c3['updateMarker'](_0x3e669c['getFirstMarker'](),{'range':_0x3873c4}),_0x2ae69e=!0x0;}}return _0x2ae69e;}),_0x3d6ac5['model']['document']['registerPostFixer'](_0x220b6d=>this['_processAttributeChanges'](_0x220b6d)),_0x3d6ac5['model']['document']['registerPostFixer'](_0x4f2e37=>!_0x4f2e37['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4f2e37)),_0x3d6ac5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d6ac5['model']['document']['on']('change:data',(_0x220c7f,_0x174401)=>{if(!_0x174401['isLocal']||_0x174401['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b3a6d=_0x3d6ac5['model']['document']['differ']['getChanges']();if(0x0==_0x4b3a6d['length'])return;const _0x1215ab=[],_0x34b7d4=_0x4b3a6d['filter'](_0x447548=>'attribute'==_0x447548['type']),_0x593d49=_0x4b3a6d['filter'](_0xa25636=>'insert'==_0xa25636['type']&&'$text'!=_0xa25636['name']);for(const _0x454c38 of _0x34b7d4)this['_isRegisteredAttribute'](_0x454c38['attributeKey'])&&_0x1215ab['push']({'key':_0x454c38['attributeKey'],'newValue':_0x454c38['attributeNewValue'],'oldValue':_0x454c38['attributeOldValue'],'range':ee(_0x454c38['range'],_0x3d6ac5['model'])});for(const _0x23d48d of _0x593d49){if('rename'!=_0x23d48d['action']&&'refresh'!=_0x23d48d['action'])continue;const _0x2daf9e=ie(_0x23d48d['position']['nodeAfter'],_0x3d6ac5['model']),_0xd55195=_0x23d48d['before'];'rename'==_0x23d48d['action']&&_0x1215ab['push']({'key':m,'newValue':_0x23d48d['name'],'oldValue':_0xd55195['name'],'range':_0x2daf9e});for(const [_0x2e02eb,_0x1da79e]of _0xd55195['attributes']){if(!this['_isRegisteredAttribute'](_0x2e02eb))continue;const _0x383af1=_0x23d48d['attributes']['get'](_0x2e02eb);_0x1da79e!==_0x383af1&&_0x1215ab['push']({'key':_0x2e02eb,'newValue':_0x383af1,'oldValue':_0x1da79e,'range':_0x2daf9e});}for(const [_0x14da6b,_0x456939]of _0x23d48d['attributes'])this['_isRegisteredAttribute'](_0x14da6b)&&(_0xd55195['attributes']['has'](_0x14da6b)||_0x1215ab['push']({'key':_0x14da6b,'newValue':_0x456939,'oldValue':null,'range':_0x2daf9e}));}0x0!=_0x1215ab['length']&&_0x3d6ac5['model']['enqueueChange'](_0x174401,_0x12f85c=>{const _0x125f71=_0x47bc50();for(const {range:_0x216989,key:_0x366c50,oldValue:_0x493657,newValue:_0x5c8d8d}of _0x1215ab)this['markAttributeChange'](_0x216989,_0x366c50,_0x493657,_0x5c8d8d,{'groupId':_0x125f71});this['_reduceExistingSuggestions'](_0x12f85c,_0x1215ab);});},{'priority':'lowest'}),_0x3d6ac5['model']['markers']['on']('update:suggestion',(_0x33ab73,_0x4fbdbe,_0x19f1bd)=>{if(null==_0x19f1bd){const {id:_0x41e2a7}=this['_splitMarkerName'](_0x4fbdbe['name']),_0x2aa156=this['_suggestions']['get'](_0x41e2a7);_0x2aa156&&_0x2aa156['addMarkerName'](_0x4fbdbe['name']);}}),_0x3d6ac5['model']['document']['on']('change:data',()=>{const _0x3e971b=Array['from'](_0x3d6ac5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2de68e=>'suggestion'===this['_splitMarkerName'](_0x2de68e['name'])['group']);if(0x0===_0x3e971b['length'])return;_0x3e971b['sort']((_0x2e74d3,_0x17bb31)=>{const _0x36d63f=_0x2e74d3['data']['oldRange'],_0x1a69e3=_0x17bb31['data']['oldRange'];return null===_0x36d63f&&null===_0x1a69e3?0x0:null===_0x36d63f&&null!==_0x1a69e3?-0x1:null!==_0x36d63f&&null===_0x1a69e3?0x1:_0x36d63f['start']['isBefore'](_0x1a69e3['start'])?-0x1:0x1;});const _0x25793e=new Set(),_0x3f5432=new Set();for(const {name:_0x195922,data:_0x40cece}of _0x3e971b){const {id:_0x5f4aaa}=this['_splitMarkerName'](_0x195922);if(null===_0x40cece['oldRange']){const _0x4bf86b=this['_handleNewSuggestionMarker'](_0x195922);_0x3f5432['add'](_0x4bf86b);}else{const _0x5d8f37=this['_suggestions']['get'](_0x5f4aaa);null!==_0x40cece['newRange']||_0x5d8f37['isInContent']?(_0x25793e['add'](_0x5d8f37['head']),_0x3f5432['add'](_0x5d8f37)):this['_removeSuggestion'](_0x5d8f37);}}_0x3f5432['size']>0x0&&this['_refreshSuggestionsChain'](_0x3f5432);for(const _0xe483ae of _0x25793e)this['fire']('suggestionChanged',_0xe483ae);}),_0x3d6ac5['model']['on']('applyOperation',(_0xa56ce4,_0x42e727)=>{const _0x41a684=_0x42e727[0x0];if(!this['_suggestions']['size'])return;if(!_0x41a684['isDocumentOperation'])return;if(_0x41a684['batch']['isUndo']||!_0x41a684['batch']['isLocal'])return;let _0x312675,_0x46fe62;switch(_0x41a684['type']){case'insert':_0x312675=_0x3d6ac5['model']['createPositionAt'](_0x41a684['position']),_0x46fe62=_0x312675['getShiftedBy'](_0x41a684['howMany']);break;case'split':_0x312675=_0x3d6ac5['model']['createPositionAt'](_0x41a684['splitPosition']),_0x46fe62=_0x3d6ac5['model']['createPositionAt'](_0x41a684['moveTargetPosition']);break;case'move':_0x312675=_0x3d6ac5['model']['createPositionAt'](_0x41a684['targetPosition']),_0x46fe62=_0x312675['getShiftedBy'](_0x41a684['howMany']);break;default:return;}const _0x2836ea=_0x3d6ac5['model']['createRange'](_0x312675,_0x46fe62);_0x3d6ac5['model']['change'](()=>{for(const {suggestion:_0x56a377,meta:_0x120136}of this['_findSuggestions'](_0x2836ea)){if(_0x56a377['isMultiRange'])continue;if('formatInline'==_0x56a377['type'])continue;const _0x1dea21=this['_getAttributeKey'](_0x56a377);if(_0x1dea21&&this['_isBlockAttribute'](_0x1dea21)&&'split'!=_0x41a684['type'])continue;const _0x462e5d=_0x56a377['data']&&_0x56a377['data']['multipleBlocks'];('formatBlock'!=_0x56a377['type']||'split'==_0x41a684['type']&&!_0x462e5d)&&(_0x120136['containsRangeInObject']||'insertion'==_0x56a377['type']&&_0x120136['isOwn']||_0x56a377['getFirstRange']()['containsRange'](_0x2836ea)&&this['_breakSuggestionMarker'](_0x56a377,_0x312675,_0x46fe62));}});},{'priority':'lowest'}),_0x3d6ac5['model']['on']('deleteContent',(_0x362cb6,_0x5d1b05)=>{const _0x234c03=_0x5d1b05[0x0],_0xe9368a=_0x5d1b05[0x1];if(_0xe9368a&&_0xe9368a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x234c03['isCollapsed'])return;const _0x2d89c2=_0x3d6ac5['model']['schema'],{start:_0x185175,end:_0x5c1a40}=_0x234c03['getFirstRange'](),_0x42fcac=_0x185175['nodeAfter']&&_0x2d89c2['isLimit'](_0x185175['nodeAfter'])?null:_0x2d89c2['getNearestSelectionRange'](_0x185175,'forward'),_0x1b5644=_0x5c1a40['nodeBefore']&&_0x2d89c2['isLimit'](_0x5c1a40['nodeBefore'])?null:_0x2d89c2['getNearestSelectionRange'](_0x5c1a40,'backward'),_0x5c4745=_0x3d6ac5['model']['createRange'](_0x42fcac?_0x42fcac['start']:_0x185175,_0x1b5644?_0x1b5644['end']:_0x5c1a40);_0x3d6ac5['model']['change'](_0x5311de=>{this['markDeletion'](_0x5c4745);const _0x570118=_0x3d6ac5['model']['schema']['getNearestSelectionRange'](_0x5c4745['start']);_0x234c03['is']('documentSelection')?_0x5311de['setSelection'](_0x570118):_0x234c03['setTo'](_0x570118);}),_0x362cb6['stop']();},{'priority':_0x231707['normal']+0xa}),_0x3d6ac5['model']['on']('insertContent',(_0x536c5b,_0xc0651e)=>{const _0x5d9159=_0xc0651e[_0xc0651e['length']-0x1];_0x5d9159&&_0x5d9159['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d6ac5['model']['change'](()=>{let _0x1f99e3=_0x3d6ac5['model']['insertContent'](_0xc0651e[0x0],_0xc0651e[0x1],_0xc0651e[0x2],{'forceDefaultExecution':!0x0});if(!_0x1f99e3)return;_0x536c5b['return']=_0x1f99e3['clone']();const _0x2066ec=_0x1f99e3['end']['nodeBefore'],_0x1375ef=_0x3d6ac5['model']['schema'];_0x2066ec&&_0x1375ef['isBlock'](_0x2066ec)&&!_0x1375ef['isObject'](_0x2066ec)&&(_0x1f99e3=_0x3d6ac5['model']['createRange'](_0x1f99e3['start'],_0x3d6ac5['model']['createPositionAt'](_0x2066ec,'end'))),this['markInsertion'](_0x1f99e3);}),_0x536c5b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bf24d=new T(_0x3d6ac5,this['_suggestions']);_0x3d6ac5['commands']['add']('acceptSuggestion',_0x4bf24d),this['enableCommand']('acceptSuggestion');const _0x3b6426=new O(_0x3d6ac5,this['_suggestions']);_0x3d6ac5['commands']['add']('discardSuggestion',_0x3b6426),this['enableCommand']('discardSuggestion'),_0x3d6ac5['commands']['add']('acceptAllSuggestions',new x(_0x3d6ac5,_0x4bf24d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d6ac5['commands']['add']('discardAllSuggestions',new x(_0x3d6ac5,_0x3b6426,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d6ac5['commands']['add']('acceptSelectedSuggestions',new E(_0x3d6ac5,_0x4bf24d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d6ac5['commands']['add']('discardSelectedSuggestions',new E(_0x3d6ac5,_0x3b6426,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5c9b31=_0x3d6ac5['plugins']['get']('CommentsRepository');this['listenTo'](_0x5c9b31,'addComment',(_0x6ba292,{threadId:_0x3c60f9})=>{const _0x4695e0=this['_suggestions']['get'](_0x3c60f9);_0x4695e0&&_0x4695e0['commentThread']&&0x1===_0x4695e0['commentThread']['length']&&this['_updateSuggestionData'](_0x3c60f9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5c9b31,'removeComment',(_0x325227,{threadId:_0x345be1})=>{const _0x3b0315=this['_suggestions']['get'](_0x345be1);_0x3b0315&&_0x3b0315['commentThread']&&!_0x3b0315['commentThread']['length']&&this['_updateSuggestionData'](_0x345be1,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x6af607){const _0x510cca=_0x25d6e7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x33de02=0x3d8d0df,_0x19b4b8=0x3dfa657^_0x33de02,_0x17c014=window[_0x25d6e7([0x44,0x61,0x74,0x65])][_0x25d6e7([0x6e,0x6f,0x77])](),_0x4582a9=_0x6af607[_0x25d6e7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f3126=new window[(_0x25d6e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10dbd1=>{_0x4582a9[_0x25d6e7([0x6f,0x6e,0x63,0x65])](_0x25d6e7([0x72,0x65,0x61,0x64,0x79]),_0x10dbd1);}),_0x116ef2={[_0x25d6e7([0x6b,0x74,0x79])]:_0x25d6e7([0x45,0x43]),[_0x25d6e7([0x75,0x73,0x65])]:_0x25d6e7([0x73,0x69,0x67]),[_0x25d6e7([0x63,0x72,0x76])]:_0x25d6e7([0x50,0x2d,0x32,0x35,0x36]),[_0x25d6e7([0x78])]:_0x25d6e7([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]),[_0x25d6e7([0x79])]:_0x25d6e7([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]),[_0x25d6e7([0x61,0x6c,0x67])]:_0x25d6e7([0x45,0x53,0x32,0x35,0x36])},_0x29c0b5=_0x4582a9[_0x25d6e7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25d6e7([0x67,0x65,0x74])](_0x25d6e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x318576(){let _0x18ea54,_0x20ea7e=null,_0x40102f=null;try{if(_0x29c0b5==_0x25d6e7([0x47,0x50,0x4c]))return _0x25d6e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18ea54=_0x2c6305(),!_0x18ea54)return _0x25d6e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18ea54[_0x25d6e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40102f=_0x407d66(_0x18ea54[_0x25d6e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18ea54[_0x25d6e7([0x6a,0x74,0x69])])),await _0x4fbb85()?_0x445036()?_0x4e6764()?_0x25d6e7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cbbc9()?(_0x18ea54[_0x25d6e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25d6e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20ea7e=_0x7c73e9(_0x25d6e7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18ea54[_0x25d6e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25d6e7([0x74,0x72,0x69,0x61,0x6c])&&(_0x20ea7e=_0x7c73e9(_0x25d6e7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e9d07()):_0x25d6e7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25d6e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25d6e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25d6e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e6764(){const _0x114387=[_0x25d6e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25d6e7([0x74,0x72,0x69,0x61,0x6c])][_0x25d6e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18ea54[_0x25d6e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17c014/0x3e8:0xe10*_0x19b4b8;return _0x18ea54[_0x25d6e7([0x65,0x78,0x70])]<_0x114387;}function _0x445036(){const _0xf0aef4=_0x18ea54[_0x25d6e7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf0aef4)return!0x1;if(_0xf0aef4[_0x25d6e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25d6e7([0x2a])))return!0x0;if(_0xf0aef4[_0x25d6e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25d6e7([0x54,0x43])))return!0x0;if(_0xf0aef4[_0x25d6e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25d6e7([0x52,0x54,0x43]))){if(_0x5cba51())return!0x0;if(_0x510817()||_0x3aa9b8())return!0x0;}return!0x1;}function _0x3cbbc9(){const _0x2d9dff=_0x18ea54[_0x25d6e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d9dff||0x0==_0x2d9dff[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3aa124}=new URL(window[_0x25d6e7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d9dff[_0x25d6e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa124))return!0x0;const _0x37ba60=_0x3aa124[_0x25d6e7([0x73,0x70,0x6c,0x69,0x74])](_0x25d6e7([0x2e]));return _0x2d9dff[_0x25d6e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b23b8=>_0x4b23b8[_0x25d6e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25d6e7([0x2a])))[_0x25d6e7([0x6d,0x61,0x70])](_0x4fb271=>_0x4fb271[_0x25d6e7([0x73,0x70,0x6c,0x69,0x74])](_0x25d6e7([0x2e])))[_0x25d6e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bb5de=>_0x1bb5de[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37ba60[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25d6e7([0x6d,0x61,0x70])](_0x19e70a=>Array(_0x37ba60[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19e70a[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25d6e7([0x66,0x69,0x6c,0x6c])](_0x19e70a[0x0]===_0x25d6e7([0x2a])?_0x25d6e7([0x2a]):'')[_0x25d6e7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19e70a))[_0x25d6e7([0x73,0x6f,0x6d,0x65])](_0x49f590=>_0x37ba60[_0x25d6e7([0x65,0x76,0x65,0x72,0x79])]((_0x2eedb1,_0x58ac98)=>_0x49f590[_0x58ac98]===_0x2eedb1||_0x49f590[_0x58ac98]===_0x25d6e7([0x2a])));}function _0x5e9d07(){return _0x20ea7e&&_0x40102f?new window[(_0x25d6e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2eb6fd,_0x24557d)=>{_0x20ea7e[_0x25d6e7([0x74,0x68,0x65,0x6e])](_0x2eb6fd,_0x24557d),_0x40102f[_0x25d6e7([0x74,0x68,0x65,0x6e])](_0x4db478=>{_0x4db478!=_0x25d6e7([0x56,0x61,0x6c,0x69,0x64])&&_0x2eb6fd(_0x4db478);},_0x24557d);}):_0x20ea7e||_0x40102f||_0x25d6e7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x407d66(_0xd9426b,_0x353fd0){return new window[(_0x25d6e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x477f9f=>{if(_0x563d27())return _0x477f9f(_0x25d6e7([0x56,0x61,0x6c,0x69,0x64]));_0xab7272(),_0x4582a9[_0x25d6e7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25d6e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1431ce=!0x1;const _0x352631=_0x47bc50();function _0x26ffde(_0x44646a){return!!_0x44646a&&(typeof _0x44646a===_0x25d6e7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x44646a===_0x25d6e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x44646a[_0x25d6e7([0x74,0x68,0x65,0x6e])]===_0x25d6e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x44646a[_0x25d6e7([0x63,0x61,0x74,0x63,0x68])]===_0x25d6e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x365a51(_0x291f3d){_0x2f1774(_0x291f3d)[_0x25d6e7([0x74,0x68,0x65,0x6e])](_0x34ab39=>{if(!_0x34ab39||_0x34ab39[_0x25d6e7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25d6e7([0x6f,0x6b]))return _0x25d6e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x458ad5(_0x501433(_0x352631+_0x353fd0))!=_0x34ab39[_0x25d6e7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25d6e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25d6e7([0x56,0x61,0x6c,0x69,0x64]);})[_0x25d6e7([0x74,0x68,0x65,0x6e])](_0x2bfcbd=>(_0x2b5e2b(),_0x2bfcbd),()=>{const _0x19b255=_0xc9e62e();return null==_0x19b255?(_0x2b5e2b(),_0x25d6e7([0x56,0x61,0x6c,0x69,0x64])):_0x25d6e7(_0x17c014-_0x19b255>(0x27d454df^_0x33de02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25d6e7([0x74,0x68,0x65,0x6e])](_0x477f9f)[_0x25d6e7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x477f9f(_0x25d6e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ed0e5=0x3ee3e5f^_0x33de02;function _0x2b5e2b(){const _0x437039=_0x25d6e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x458ad5(_0x501433(_0xd9426b)),_0x5947b7=_0x2edd09(_0x458ad5(window[_0x25d6e7([0x4d,0x61,0x74,0x68])][_0x25d6e7([0x63,0x65,0x69,0x6c])](_0x17c014/_0x4ed0e5)));window[_0x25d6e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25d6e7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x437039,_0x5947b7);}function _0xc9e62e(){const _0x56875c=_0x25d6e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x458ad5(_0x501433(_0xd9426b)),_0x41dc5c=window[_0x25d6e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25d6e7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56875c);return _0x41dc5c?window[_0x25d6e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2edd09(_0x41dc5c),0x10)*_0x4ed0e5:null;}function _0x2f1774(_0x100107){return new window[(_0x25d6e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2916b9,_0x2bf979)=>{_0x100107[_0x25d6e7([0x74,0x68,0x65,0x6e])](_0x2916b9,_0x2bf979),window[_0x25d6e7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bf979,0x3d9041f^_0x33de02);});}}_0x4582a9[_0x25d6e7([0x6f,0x6e])](_0x25d6e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e2214,_0x45808d)=>{if(_0x45808d[0x0]!=_0xd9426b)return _0x477f9f(_0x25d6e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45808d[0x1]={..._0x45808d[0x1],[_0x25d6e7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x352631};},{[_0x25d6e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25d6e7([0x68,0x69,0x67,0x68])}),_0x4582a9[_0x25d6e7([0x6f,0x6e])](_0x25d6e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d1c79=>{_0x26ffde(_0x2d1c79[_0x25d6e7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1431ce=!0x0,_0x365a51(_0x2d1c79[_0x25d6e7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25d6e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25d6e7([0x6c,0x6f,0x77])}),_0x5f3126[_0x25d6e7([0x74,0x68,0x65,0x6e])](()=>{_0x1431ce||_0x477f9f(_0x25d6e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x563d27(){return _0x4582a9[_0x25d6e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25d6e7([0x76,0x69,0x65,0x77])][_0x25d6e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25d6e7([0x61,0x75,0x74,0x6f]);}function _0xab7272(){_0x4582a9[_0x25d6e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25d6e7([0x76,0x69,0x65,0x77])][_0x25d6e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25d6e7([0x61,0x75,0x74,0x6f]);}}function _0x7c73e9(_0x425439){const _0x6ad453=[new window[(_0x25d6e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20dee8=>setTimeout(_0x20dee8,0x3d1ee13^_0x33de02)),_0x5f3126[_0x25d6e7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25d6e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18422e=>{let _0x52ee39=0x0;_0x4582a9[_0x25d6e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x25d6e7([0x6f,0x6e])](_0x25d6e7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e9868,_0x4f19b9)=>{_0x4f19b9[0x0][_0x25d6e7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52ee39++,_0x52ee39==(0x3d8d127^_0x33de02)&&(_0x18422e(),_0x4e9868[_0x25d6e7([0x6f,0x66,0x66])]());});}))];return window[_0x25d6e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25d6e7([0x72,0x61,0x63,0x65])](_0x6ad453)[_0x25d6e7([0x74,0x68,0x65,0x6e])](()=>_0x425439);}async function _0x3719cb(){await _0x5f3126,_0x4582a9[_0x25d6e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x25d6e7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3af20e,_0x4582a9[_0x25d6e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x25d6e7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3af20e,_0x4582a9[_0x25d6e7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25d6e7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cba51(){return _0x1152dd(_0x25d6e7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52d094(_0x25d6e7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x25d6e7([0x73,0x74,0x61,0x74,0x65])]==_0x25d6e7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x510817(){return _0x1152dd(_0x25d6e7([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 _0x3aa9b8(){return _0x1152dd(_0x25d6e7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x262ca7(_0x3f0c45){const _0x51c11a=_0x56b4b6();_0x4582a9[_0x51c11a]=_0x25d6e7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f0c45,_0x3f0c45!=_0x25d6e7([0x56,0x61,0x6c,0x69,0x64])&&_0x3719cb();}function _0x56b4b6(){const _0x54de41=window[_0x25d6e7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25d6e7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25d6e7([0x6e,0x6f,0x77])]())[_0x25d6e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25d6e7([0x2e]),'');let _0x4abf0e=_0x25d6e7([0x52]);for(let _0x982502=0x0;_0x982502<_0x54de41[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x982502+=0x2){let _0x26305f=window[_0x25d6e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54de41[_0x25d6e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x982502,_0x982502+0x2));_0x26305f>=_0x510cca[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26305f-=_0x510cca[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4abf0e+=_0x510cca[_0x26305f];}return _0x4abf0e;}function _0x2c6305(){const _0x166da6=_0x29c0b5[_0x25d6e7([0x73,0x70,0x6c,0x69,0x74])](_0x25d6e7([0x2e]));if(0x3!=_0x166da6[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a7b4f(_0x166da6[0x1]);function _0x2a7b4f(_0x30bbd7){const _0xb090fd=_0x1cb428(_0x30bbd7);return _0xb090fd&&_0x1976ae()?_0xb090fd:null;function _0x1976ae(){const _0x4aef41=_0xb090fd[_0x25d6e7([0x6a,0x74,0x69])],_0x3dad93=window[_0x25d6e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aef41[_0x25d6e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aef41[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39736f={..._0xb090fd,[_0x25d6e7([0x6a,0x74,0x69])]:_0x4aef41[_0x25d6e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4aef41[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39736f[_0x25d6e7([0x76,0x63])],_0x501433(_0x39736f)==_0x3dad93;}}}async function _0x4fbb85(){let _0x12d803=!0x0;try{const _0x34c8e0=_0x29c0b5[_0x25d6e7([0x73,0x70,0x6c,0x69,0x74])](_0x25d6e7([0x2e])),[_0x48928f,_0x4b1fe7,_0x343ede]=_0x34c8e0;return _0x13d146(_0x48928f),await _0x165846(_0x48928f,_0x4b1fe7,_0x343ede),_0x12d803;}catch{return!0x1;}function _0x13d146(_0x38c49f){const _0x21a679=_0x1cb428(_0x38c49f);_0x21a679&&_0x21a679[_0x25d6e7([0x61,0x6c,0x67])]==_0x25d6e7([0x45,0x53,0x32,0x35,0x36])||(_0x12d803=!0x1);}async function _0x165846(_0x149e43,_0x1b02ad,_0x1824de){const _0x3d4292=window[_0x25d6e7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25d6e7([0x66,0x72,0x6f,0x6d])](_0x458643(_0x1824de),_0x11e1a1=>_0x11e1a1[_0x25d6e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ae858=new window[(_0x25d6e7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25d6e7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x149e43+_0x25d6e7([0x2e])+_0x1b02ad),_0x429a48=window[_0x25d6e7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25d6e7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x429a48)return;const _0x321af1=await _0x429a48[_0x25d6e7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25d6e7([0x6a,0x77,0x6b]),_0x116ef2,{[_0x25d6e7([0x6e,0x61,0x6d,0x65])]:_0x25d6e7([0x45,0x43,0x44,0x53,0x41]),[_0x25d6e7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25d6e7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25d6e7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x429a48[_0x25d6e7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25d6e7([0x6e,0x61,0x6d,0x65])]:_0x25d6e7([0x45,0x43,0x44,0x53,0x41]),[_0x25d6e7([0x68,0x61,0x73,0x68])]:{[_0x25d6e7([0x6e,0x61,0x6d,0x65])]:_0x25d6e7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x321af1,_0x3d4292,_0x3ae858)||(_0x12d803=!0x1);}}function _0x1cb428(_0x441a70){return _0x441a70[_0x25d6e7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25d6e7([0x65,0x79]))?JSON[_0x25d6e7([0x70,0x61,0x72,0x73,0x65])](_0x458643(_0x441a70)):null;}function _0x458643(_0x4beae0){return window[_0x25d6e7([0x61,0x74,0x6f,0x62])](_0x4beae0[_0x25d6e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25d6e7([0x2b]))[_0x25d6e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25d6e7([0x2f])));}function _0x501433(_0x53cda5){let _0x434647=0x1505;function _0x3720ec(_0x3c6a97){for(let _0x2ede42=0x0;_0x2ede42<_0x3c6a97[_0x25d6e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ede42++){const _0x176366=_0x3c6a97[_0x25d6e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ede42);_0x434647=(_0x434647<<0x5)+_0x434647+_0x176366,_0x434647&=_0x434647;}}function _0x48b8bd(_0x2ad299){Array[_0x25d6e7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ad299)?_0x2ad299[_0x25d6e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48b8bd):_0x2ad299&&typeof _0x2ad299==_0x25d6e7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25d6e7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ad299)[_0x25d6e7([0x73,0x6f,0x72,0x74])]()[_0x25d6e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x116f54,_0x32ae05])=>{_0x3720ec(_0x116f54),_0x48b8bd(_0x32ae05);}):_0x3720ec(window[_0x25d6e7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ad299));}return _0x48b8bd(_0x53cda5),_0x434647>>>0x0;}function _0x458ad5(_0x13c968){return _0x13c968[_0x25d6e7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25d6e7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25d6e7([0x30]));}function _0x2edd09(_0x5d1140){return _0x5d1140[_0x25d6e7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25d6e7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25d6e7([0x6a,0x6f,0x69,0x6e])]('');}function _0x1152dd(_0x5ee43d){return _0x4582a9[_0x25d6e7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25d6e7([0x68,0x61,0x73])](_0x5ee43d);}function _0x52d094(_0x1ab2bc){return _0x4582a9[_0x25d6e7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x25d6e7([0x67,0x65,0x74])](_0x1ab2bc);}function _0x3af20e(){}function _0x25d6e7(_0x3b6577){return _0x3b6577['map'](_0x32af4=>String['fromCharCode'](_0x32af4))['join']('');}_0x262ca7(await _0x318576());}(this);}set['adapter'](_0xe0af32){if(this['_adapter'])throw new _0x580921('track-changes-adapter-already-set',this);this['_adapter']=_0xe0af32;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x23055c=!0x1,toJSON:_0x4f627c=!0x1}={}){const _0x386f25=[];for(const _0x3665ce of this['_suggestions']['values']())_0x23055c&&!_0x3665ce['isInContent']||_0x386f25['push'](_0x3665ce);return _0x4f627c?_0x386f25['map'](_0x3a4db0=>_0x3a4db0['toJSON']()):_0x386f25;}['getSuggestion'](_0x18c94f){const _0x28748a=this['_suggestions']['get'](_0x18c94f);if(!_0x28748a)throw new _0x580921('track-changes-suggestion-not-found',this);return _0x28748a;}['hasSuggestion'](_0x4c050c){return this['_suggestions']['has'](_0x4c050c);}['addSuggestionData'](_0x577534){const {authorId:_0x4dc1c4,id:_0x3a8d11,originalSuggestionId:_0x5a4b01,attributes:_0x447e61}=_0x577534,[_0x4632da,_0x11cd2e]=_0x577534['type']['split'](':'),_0x289cda=this['_suggestions']['get'](_0x3a8d11)||this['_createSuggestion'](_0x4632da,_0x11cd2e,_0x3a8d11,_0x4dc1c4,_0x447e61,_0x5a4b01);if(this['_addThreadToSuggestion'](_0x289cda),this['_checkSuggestionCorrectness'](_0x289cda,_0x4632da,_0x11cd2e||null,_0x4dc1c4),_0x289cda['createdAt']=_0x577534['createdAt'],_0x289cda['_isDataLoaded']=!0x0,_0x447e61&&_0x447e61['@external']){const _0x5758eb=_0x447e61['@external'],_0x43ab91=this['_getExternalAuthor'](_0x5758eb['authorName']);_0x289cda['authoredAt']=_0x5758eb['createdAt'],_0x289cda['author']=_0x43ab91,_0x289cda['isExternal']=!0x0;}else _0x289cda['authoredAt']=_0x577534['createdAt'];switch(_0x577534['data']&&(_0x289cda['data']=_0x577534['data']),_0x577534['attributes']&&(_0x289cda['attributes']=_0x577534['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x289cda['_saved']=!0x0),this['_suggestionState']['get'](_0x289cda)){case'notReady':this['_suggestionState']['set'](_0x289cda,'dataReady');break;case'markerReady':_0x289cda['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x289cda])),this['_refreshSuggestionsChain'](new Set([_0x289cda])),this['_suggestionState']['set'](_0x289cda,'ready'),this['fire']('suggestionLoaded',_0x289cda)):this['_suggestionState']['set'](_0x289cda,'removed');}return _0x289cda;}['acceptSuggestion'](_0x3956a3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4d4454 of _0x3956a3['getAllAdjacentSuggestions']())_0x4d4454['accept']();});});}['discardSuggestion'](_0x1d0bce){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18c8a9 of _0x1d0bce['getAllAdjacentSuggestions']())_0x18c8a9['discard']();});});}['enableCommand'](_0x15fda2,_0x2b6007){const _0x130bc2=this['editor']['commands']['get'](_0x15fda2);if(!_0x130bc2)throw new _0x580921('track-changes-command-not-found',this,{'commandName':_0x15fda2});if(this['_enabledCommands']['has'](_0x130bc2))throw new _0x580921('track-changes-enable-command-twice',this,{'commandName':_0x15fda2});this['_enabledCommands']['add'](_0x130bc2),_0x2b6007&&_0x130bc2['on']('execute',(_0x3b47a4,_0x5bf755)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bf755['length']>0x0&&_0x5bf755[_0x5bf755['length']-0x1]&&_0x5bf755[_0x5bf755['length']-0x1]['forceDefaultExecution']?_0x5bf755['pop']():(_0x3b47a4['return']=_0x2b6007((..._0x240b43)=>_0x130bc2['execute'](..._0x240b43,{'forceDefaultExecution':!0x0}),..._0x5bf755),_0x3b47a4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4d539a){let _0x41dbdd,_0x5891f4;const _0x3f14b8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x41dbdd=_0x4d539a();}catch(_0x20783e){_0x5891f4=_0x20783e;}return _0x3f14b8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5891f4&&_0x580921['rethrowUnexpectedError'](_0x5891f4,this),_0x41dbdd;}['markInsertion'](_0x49f4e2,_0x15e56d=null,_0x514f6d={}){if(_0x49f4e2['isCollapsed'])return null;const _0x40a4b9=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x514f6d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xee1321,meta:_0x4c2f1d}of this['_findSuggestions'](_0x49f4e2,'insertion'))if(_0x4c2f1d['isOwn']){if(!_0x4c2f1d['isNextTo']){if(_0x4c2f1d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0xee1321,_0x514f6d))continue;return _0xee1321;}if(oe(_0xee1321,_0x514f6d))return _0xee1321;this['_breakSuggestionMarker'](_0xee1321,_0x49f4e2['start'],_0x49f4e2['end']);break;}if(_0x15e56d==_0xee1321['subType']&&oe(_0xee1321,_0x514f6d)){const _0x3e9f82=_0xee1321['getFirstRange']();return _0x3e9f82['start']['isEqual'](_0x49f4e2['end'])?this['_setSuggestionRange'](_0xee1321,this['_model']['createRange'](_0x49f4e2['start'],_0x3e9f82['end'])):this['_setSuggestionRange'](_0xee1321,this['_model']['createRange'](_0x3e9f82['start'],_0x49f4e2['end'])),_0xee1321;}}const _0x218280=_0x47bc50(),_0x56dff3=_0x40a4b9['id'],_0x5c0ba7=_0x15e56d?'insertion:'+_0x15e56d:'insertion',_0x2ee330=this['_setSuggestionData']({'id':_0x218280,'type':_0x5c0ba7,'createdAt':new Date(),'authorId':_0x56dff3,'attributes':_0x514f6d});return this['_addSuggestionMarker'](_0x5c0ba7,_0x218280,_0x56dff3,_0x49f4e2),_0x2ee330;}['markMultiRangeInsertion'](_0x24231a,_0x317393='multi',_0xa5f8d7={}){const _0x1e84cd=this['editor']['plugins']['get']('Users')['me'],_0x3d132a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x317393,'join');this['_trackingSessionId']&&(_0xa5f8d7['trackingSessionId']=this['_trackingSessionId']);for(const _0x38f177 of this['getSuggestions']())if(_0x38f177['author']['id']==_0x1e84cd['id']&&'insertion'==_0x38f177['type']&&_0x38f177['subType']==_0x317393&&oe(_0x38f177,_0xa5f8d7)&&(_0x3d132a(_0x38f177['getRanges'](),_0x24231a)||_0x3d132a(_0x24231a,_0x38f177['getRanges']()))){for(const _0x2e86ac of _0x24231a)_0x38f177['addRange'](_0x2e86ac);return _0x38f177;}for(const {suggestion:_0xa54c61,meta:_0x541260}of this['_findSuggestions'](_0x24231a,'insertion')){if(!_0x541260['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x541260['containsRangeInObject'])continue;if(!oe(_0xa54c61,_0xa5f8d7))continue;let _0x43f951=!0x0;for(const _0x23f076 of _0xa54c61['getRanges']())for(const _0x26bda6 of _0x24231a)if(!_0x23f076['containsRange'](_0x26bda6)){_0x43f951=!0x1;break;}if(_0x43f951)return _0xa54c61;}const _0x5eff7e=_0x47bc50(),_0x198074=_0x1e84cd['id'],_0x281c74='insertion:'+_0x317393,_0x2419ae=this['_setSuggestionData']({'id':_0x5eff7e,'type':_0x281c74,'createdAt':new Date(),'authorId':_0x198074,'attributes':_0xa5f8d7});for(const _0x5b08ec of _0x24231a)this['_addSuggestionMarker'](_0x281c74,_0x5eff7e,_0x198074,_0x5b08ec,R['getMultiRangeId']());return _0x2419ae;}['markInlineFormat'](_0x53f2a7,_0x24b13b,_0x4404f5=null,_0x13b745={}){if(_0x4404f5=_0x4404f5||Qt(_0x24b13b),_0x53f2a7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x13b745['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x51c964=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4404f5,'accept');return this['forceDefaultExecution'](()=>_0x51c964([_0x53f2a7],_0x24b13b,_0x13b745)),null;}const _0x598a41=this['editor']['plugins']['get']('Users')['me'],_0x7c676e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1ee7d8,meta:_0x11d2d7}of this['_findSuggestions'](_0x53f2a7,'insertion'))_0x11d2d7['isOwn']&&!_0x11d2d7['isInsideObject']&&_0x7c676e['push'](..._0x1ee7d8['getRanges']());}const _0x516b9b=function(_0x481999,_0x13b152){const _0x1271d8=[];for(const _0x1b6b7e of _0x13b152){const _0x5daece=_0x481999['getIntersection'](_0x1b6b7e);_0x5daece&&_0x1271d8['push'](_0x5daece);}return _0x1271d8;}(_0x53f2a7,_0x7c676e),_0x170d7d=function(_0x27c3fe,_0x317727){const _0x56e2d3=[_0x27c3fe];for(const _0x30959d of _0x317727){let _0x4af779=0x0;for(;_0x4af779<_0x56e2d3['length'];){const _0x3a3028=_0x56e2d3[_0x4af779]['getDifference'](_0x30959d);_0x56e2d3['splice'](_0x4af779,0x1,..._0x3a3028),_0x4af779+=_0x3a3028['length'];}}return _0x56e2d3;}(_0x53f2a7,_0x7c676e);_0x516b9b['length']&&this['_model']['change'](()=>{for(const _0x564a93 of _0x516b9b){const _0x2919dc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4404f5,'accept');this['forceDefaultExecution'](()=>_0x2919dc([_0x564a93],_0x24b13b,_0x13b745));}});for(const _0x849cac of _0x170d7d){let _0x5407be=null,_0xb86c58=_0x849cac['start'],_0x268eb2=_0x849cac['end'];for(const {suggestion:_0x59d3c2,meta:_0x209882}of this['_findSuggestions'](_0x849cac,'formatInline')){if(!_0x209882['isOwn'])continue;if(_0x59d3c2['subType']!=_0x4404f5)continue;if(!oe(_0x59d3c2,_0x13b745))continue;const _0x1e016a=_0x59d3c2['getFirstRange']();if(_0x1e016a['containsRange'](_0x849cac,!0x0))return null;_0xb86c58=_0xb86c58['isBefore'](_0x1e016a['start'])?_0xb86c58:_0x1e016a['start'],_0x268eb2=_0x268eb2['isAfter'](_0x1e016a['end'])?_0x268eb2:_0x1e016a['end'],_0x5407be?_0x1e016a['start']['isBefore'](_0x5407be['getFirstRange']()['start'])?(_0x5407be['removeMarkers'](),_0x5407be=_0x59d3c2):_0x59d3c2['removeMarkers']():_0x5407be=_0x59d3c2;}const _0x1547eb=this['_model']['createRange'](_0xb86c58,_0x268eb2);if(_0x5407be)this['_setSuggestionRange'](_0x5407be,_0x1547eb);else{const _0x320065=_0x47bc50(),_0x4a31a4=_0x598a41['id'];this['_setSuggestionData']({'id':_0x320065,'type':'formatInline:'+_0x4404f5,'data':_0x24b13b,'createdAt':new Date(),'authorId':_0x4a31a4,'attributes':_0x13b745}),this['_addSuggestionMarker']('formatInline:'+_0x4404f5,_0x320065,_0x4a31a4,_0x1547eb);}}return null;}['markBlockFormat'](_0x5c2a8a,_0x160ee4,_0x1e3f58=[],_0x2a5a3f=null,_0x354c87={}){_0x160ee4['formatGroupId']||(_0x160ee4['formatGroupId']=_0x160ee4['commandName']),_0x160ee4['multipleBlocks']=_0x5c2a8a['is']('range'),_0x2a5a3f=_0x2a5a3f||Qt(_0x160ee4);const _0x1474d1=_0x1e3f58['map'](_0x5947d6=>ie(_0x5947d6,this['_model'])),_0x4fb465=_0x5c2a8a['is']('range')?_0x5c2a8a:ie(_0x5c2a8a,this['_model']);if(this['_trackingSessionId']&&(_0x354c87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4abdbb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5a3f,'accept');return this['forceDefaultExecution'](()=>_0x4abdbb([_0x4fb465],_0x160ee4,_0x354c87)),null;}_0x1474d1['push'](_0x4fb465);let _0x1ffb82=!0x0;for(const _0xd0f717 of _0x1474d1)if(!this['_rangeIsInLocalUserInsertion'](_0xd0f717)){_0x1ffb82=!0x1;break;}if(_0x1ffb82&&'always'!==this['_trackFormatChanges']){const _0x5f134b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a5a3f,'accept');return this['forceDefaultExecution'](()=>_0x5f134b([_0x4fb465],_0x160ee4,_0x354c87)),null;}let _0x255358=null,_0x1a042b=_0x4fb465['start'],_0x462c46=_0x4fb465['end'];for(const {suggestion:_0x967a21,meta:_0x29ce52}of this['_findSuggestions'](_0x4fb465,'formatBlock')){if(!_0x29ce52['isOwn'])continue;if(_0x29ce52['isNextTo']||_0x29ce52['containsRangeInObject']||_0x29ce52['isInsideObject'])continue;if(_0x967a21['data']['formatGroupId']!=_0x160ee4['formatGroupId'])continue;if(!oe(_0x967a21,_0x354c87))continue;const _0x36d527=_0x967a21['getFirstRange']();if(_0x967a21['subType']==_0x2a5a3f){if(_0x36d527['containsRange'](_0x4fb465,!0x0))return null;_0x1a042b=_0x1a042b['isBefore'](_0x36d527['start'])?_0x1a042b:_0x36d527['start'],_0x462c46=_0x462c46['isAfter'](_0x36d527['end'])?_0x462c46:_0x36d527['end'],_0x255358?_0x36d527['start']['isBefore'](_0x255358['getFirstRange']()['start'])?(_0x255358['removeMarkers'](),_0x255358=_0x967a21):_0x967a21['removeMarkers']():_0x255358=_0x967a21;}else{const _0x447b85=_0x4fb465['getIntersection'](_0x36d527);this['_cutOutSuggestionMarker'](_0x967a21,_0x447b85);}}const _0x278785=this['editor']['plugins']['get']('Users')['me'],_0x528b97=_0x47bc50(),_0x19b46c=_0x278785['id'];if(_0x255358)return this['_setSuggestionRange'](_0x255358,this['_model']['createRange'](_0x1a042b,_0x462c46)),_0x255358;{const _0x468a4a=this['_setSuggestionData']({'id':_0x528b97,'type':'formatBlock:'+_0x2a5a3f,'data':_0x160ee4,'createdAt':new Date(),'authorId':_0x19b46c,'attributes':_0x354c87});return this['_addSuggestionMarker']('formatBlock:'+_0x2a5a3f,_0x528b97,_0x19b46c,this['_model']['createRange'](_0x1a042b,_0x462c46)),_0x468a4a;}}['markMultiRangeBlockFormat'](_0x1e0fd8,_0x944c7e,_0x2787d9=[],_0x3f683d=null,_0x135de9={}){_0x944c7e['formatGroupId']||(_0x944c7e['formatGroupId']=_0x944c7e['commandName']);const _0x47498c=_0x1e0fd8[0x0];_0x944c7e['multipleBlocks']=_0x47498c['is']('range'),_0x3f683d=_0x3f683d||Qt(_0x944c7e);const _0x1da17e=_0x2787d9['map'](_0x24c275=>ie(_0x24c275,this['_model'])),_0x471d7c=_0x47498c['is']('range')?_0x1e0fd8:_0x1e0fd8['map'](_0x329175=>ie(_0x329175,this['_model']));if(this['_trackingSessionId']&&(_0x135de9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x163d6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f683d,'accept');return this['forceDefaultExecution'](()=>_0x163d6f(_0x471d7c,_0x944c7e,_0x135de9)),null;}_0x1da17e['push'](..._0x471d7c);let _0x2a4326=!0x0;for(const _0x4899af of _0x1da17e)if(!this['_rangeIsInLocalUserInsertion'](_0x4899af)){_0x2a4326=!0x1;break;}if(_0x2a4326&&'always'!==this['_trackFormatChanges']){const _0x4f8050=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f683d,'accept');return this['forceDefaultExecution'](()=>_0x4f8050(_0x471d7c,_0x944c7e,_0x135de9)),null;}const _0x5246ff=this['editor']['plugins']['get']('Users')['me'];for(const _0x20caa3 of this['getSuggestions']()){const _0x398023=_0x20caa3['data'];if(_0x20caa3['author']['id']!=_0x5246ff['id'])continue;if('formatBlock'!=_0x20caa3['type']||_0x398023['formatGroupId']!=_0x944c7e['formatGroupId'])continue;if(!oe(_0x20caa3,_0x135de9))continue;const _0x143e2a=_0x20caa3['subType']==_0x3f683d;for(let _0x32a00d=0x0;_0x32a00d<_0x471d7c['length'];_0x32a00d++){const _0x5cbb1f=_0x471d7c[_0x32a00d];for(const _0xab9c42 of _0x20caa3['getMarkers']()){const _0x4c8f84=_0xab9c42['getRange']();if(_0x5cbb1f['isEqual'](_0x4c8f84)){_0x143e2a?(_0x471d7c['splice'](_0x32a00d,0x1),_0x32a00d--):_0x20caa3['removeMarker'](_0xab9c42['name']);break;}}}}if(0x0==_0x471d7c['length'])return null;const _0x537e6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f683d,'join');for(const _0x43aeb2 of this['getSuggestions']()){const _0x4ca99e=_0x43aeb2['data'];if(_0x43aeb2['author']['id']==_0x5246ff['id']&&('formatBlock'==_0x43aeb2['type']&&_0x4ca99e['formatGroupId']==_0x944c7e['formatGroupId']&&_0x43aeb2['subType']==_0x3f683d&&oe(_0x43aeb2,_0x135de9)&&(_0x537e6a(_0x43aeb2['getRanges'](),_0x471d7c)||_0x537e6a(_0x471d7c,_0x43aeb2['getRanges']())))){for(const _0x5c0ece of _0x471d7c)_0x43aeb2['addRange'](_0x5c0ece);return _0x43aeb2;}}const _0x3112c9=_0x47bc50(),_0x675603=_0x5246ff['id'],_0x484bb3='formatBlock:'+_0x3f683d,_0x46da50=this['_setSuggestionData']({'id':_0x3112c9,'type':_0x484bb3,'data':_0x944c7e,'createdAt':new Date(),'authorId':_0x675603,'attributes':_0x135de9});for(const _0x2fd7f4 of _0x471d7c)this['_addSuggestionMarker'](_0x484bb3,_0x3112c9,_0x675603,_0x2fd7f4,R['getMultiRangeId']());return _0x46da50;}['markDeletion'](_0x212c9e,_0x4b63cd=null,_0x352c3f={}){if(_0x212c9e['isCollapsed'])return null;const _0x469f84=this['editor']['plugins']['get']('Users')['me'],_0xa61954=new _0x41f621(_0x212c9e['start'],_0x212c9e['end']);this['_trackingSessionId']&&(_0x352c3f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b0c57,meta:_0x1e493b}of this['_findSuggestions'](_0xa61954,'insertion'))if(_0x1e493b['isOwn']&&!_0x1e493b['isNextTo']){if(_0x3b0c57['isMultiRange']){const _0x2f2a37=_0x3b0c57['getRanges']()['filter'](_0x8215f4=>'$graveyard'!=_0x8215f4['root']['rootName']);_0x2f2a37['every'](_0x3595b8=>_0xa61954['containsRange'](_0x3595b8,!0x0))&&_0x3b0c57['discard']();if(_0x2f2a37['some'](_0x2cea5c=>_0x2cea5c['containsRange'](_0xa61954,!0x0))){const _0x4b3d63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b63cd,'accept');return this['forceDefaultExecution'](()=>_0x4b3d63([_0xa61954],null,_0x352c3f)),null;}}else{const _0xb7b694=_0xa61954['getIntersection'](_0x3b0c57['getFirstRange']());null!==_0xb7b694&&_0x3b0c57['_onDiscard']([_0xb7b694],null,_0x352c3f);}}if(_0xa61954['detach'](),_0xa61954['isCollapsed']||'$graveyard'==_0xa61954['root']['rootName'])return null;let _0x7bc240=null,_0x2d1f2c=_0xa61954['start'],_0x2fe501=_0xa61954['end'];const _0x20305d=this['_findSuggestions'](_0xa61954,'deletion');for(const {suggestion:_0x3df3bc,meta:_0x1936de}of _0x20305d){const _0x1eb399=this['_model']['createRange'](_0x2d1f2c,_0x2fe501);if(_0x1936de['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1936de['containsRangeInObject']&&!_0x1936de['isInsideObject'])){if(_0x3df3bc['isMultiRange']){if(!oe(_0x3df3bc,_0x352c3f))continue;let _0x20e08e=!0x0;for(const _0x2ad581 of _0x3df3bc['getRanges']()){if(_0x2ad581['containsRange'](_0x1eb399,!0x0))return _0x3df3bc;_0x1eb399['containsRange'](_0x2ad581)||(_0x20e08e=!0x1);}_0x20e08e&&_0x3df3bc['discard']();}else{const _0x3938c8=_0x3df3bc['getFirstRange']();if(_0x3938c8['containsRange'](_0x1eb399,!0x0))return _0x3df3bc;if(!oe(_0x3df3bc,_0x352c3f)){_0x1eb399['containsRange'](_0x3938c8)?_0x3df3bc['removeMarkers']():_0x3938c8['containsPosition'](_0x2d1f2c)?_0x2d1f2c=_0x3938c8['end']:_0x3938c8['containsPosition'](_0x2fe501)&&(_0x2fe501=_0x3938c8['start']);continue;}_0x2d1f2c=_0x2d1f2c['isBefore'](_0x3938c8['start'])?_0x2d1f2c:_0x3938c8['start'],_0x2fe501=_0x2fe501['isAfter'](_0x3938c8['end'])?_0x2fe501:_0x3938c8['end'],_0x352c3f=Object['assign']({},_0x3df3bc['attributes']),_0x7bc240?_0x3938c8['start']['isBefore'](_0x7bc240['getFirstRange']()['start'])?(_0x7bc240['removeMarkers'](),_0x7bc240=_0x3df3bc):_0x3df3bc['removeMarkers']():_0x7bc240=_0x3df3bc;}}}if(_0x7bc240)return this['_setSuggestionRange'](_0x7bc240,this['_model']['createRange'](_0x2d1f2c,_0x2fe501)),_0x7bc240;{const _0x92711a=_0x47bc50(),_0x6c539f=this['_model']['createRange'](_0x2d1f2c,_0x2fe501),_0x4a3e74=_0x469f84['id'],_0x4018f3=_0x4b63cd?'deletion:'+_0x4b63cd:'deletion',_0xae8019=this['_setSuggestionData']({'id':_0x92711a,'type':_0x4018f3,'createdAt':new Date(),'authorId':_0x4a3e74,'attributes':_0x352c3f});return this['_addSuggestionMarker'](_0x4018f3,_0x92711a,_0x4a3e74,_0x6c539f),_0xae8019;}}['markMultiRangeDeletion'](_0x52b696,_0x14b5ae='multi',_0x5dd447={}){const _0x471719=this['editor']['plugins']['get']('Users')['me'],_0x458fb6=_0x52b696['map'](_0x10b4d1=>new _0x41f621(_0x10b4d1['start'],_0x10b4d1['end'])),_0x1039fd=new Set();this['_trackingSessionId']&&(_0x5dd447['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1cec86,meta:_0x44cc4c}of this['_findSuggestions'](_0x458fb6,'insertion'))_0x44cc4c['isOwn']&&!_0x44cc4c['isNextTo']&&_0x1039fd['add'](_0x1cec86);for(const _0x56f49b of _0x1039fd)if(_0x56f49b['isMultiRange']){const _0x5214a0=_0x56f49b['getRanges']();(!_0x56f49b['attributes']||!_0x56f49b['attributes']['skipNestingCheck'])&&(_0x5214a0['every'](_0x1a2b7a=>_0x458fb6['some'](_0x8a763b=>_0x8a763b['containsRange'](_0x1a2b7a,!0x0)))&&_0x56f49b['discard']());if(_0x458fb6['every'](_0x9a7a3c=>_0x5214a0['some'](_0x29d1af=>_0x29d1af['containsRange'](_0x9a7a3c,!0x0)))){const _0x55658d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14b5ae,'accept');return this['forceDefaultExecution'](()=>_0x55658d(_0x52b696,null,_0x5dd447)),null;}}else{const _0x4b772a=_0x56f49b['getFirstRange']();_0x458fb6['some'](_0x14f2a3=>_0x14f2a3['containsRange'](_0x4b772a,!0x0))&&_0x56f49b['discard']();if(_0x458fb6['every'](_0x4298a9=>_0x4b772a['containsRange'](_0x4298a9,!0x0))){const _0x3c910e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14b5ae,'accept');return this['forceDefaultExecution'](()=>_0x3c910e(_0x458fb6,null,_0x5dd447)),null;}}const _0x5c29d7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14b5ae,'join');let _0x4874f3=null;for(const _0x1e7be8 of this['getSuggestions']())if(_0x1e7be8['author']['id']==_0x471719['id']&&_0x1e7be8['isInContent']&&'deletion'==_0x1e7be8['type']&&_0x1e7be8['subType']==_0x14b5ae&&oe(_0x1e7be8,_0x5dd447)&&(_0x5c29d7(_0x1e7be8['getRanges'](),_0x458fb6)||_0x5c29d7(_0x458fb6,_0x1e7be8['getRanges']()))){if(_0x4874f3){if(_0x1e7be8['commentThread']&&_0x1e7be8['commentThread']['length'])continue;for(const _0xd99c8 of _0x1e7be8['getRanges']())_0x4874f3['isIntersectingWithRange'](_0xd99c8)||_0x4874f3['addRange'](_0xd99c8);_0x1e7be8['removeMarkers']();}else{_0x4874f3=_0x1e7be8;for(const _0x3351b5 of _0x458fb6)_0x1e7be8['isIntersectingWithRange'](_0x3351b5)||_0x1e7be8['addRange'](_0x3351b5);}}if(_0x4874f3)return _0x4874f3;_0x1039fd['clear']();for(const {suggestion:_0x35602d,meta:_0x1ca0e9}of this['_findSuggestions'](_0x458fb6,'deletion'))_0x1ca0e9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ca0e9['containsRangeInObject']&&!_0x1ca0e9['isInsideObject'])&&oe(_0x35602d,_0x5dd447)&&_0x1039fd['add'](_0x35602d);for(const _0x49b649 of _0x1039fd){const _0x267549=_0x49b649['getRanges']();if(!_0x5dd447||!_0x5dd447['skipNestingCheck']){if(_0x458fb6['every'](_0x5a8851=>_0x267549['some'](_0x220629=>_0x220629['containsRange'](_0x5a8851,!0x0))))return _0x49b649;}(!_0x49b649['attributes']||!_0x49b649['attributes']['skipNestingCheck'])&&(_0x267549['every'](_0x4921a1=>_0x458fb6['some'](_0x74ecc7=>_0x74ecc7['containsRange'](_0x4921a1,!0x0)))&&_0x49b649['discard']());}const _0x21b17c=_0x47bc50(),_0x58e5f8=_0x471719['id'],_0x56e3f6='deletion:'+_0x14b5ae,_0x47ce5c=this['_setSuggestionData']({'id':_0x21b17c,'type':_0x56e3f6,'createdAt':new Date(),'authorId':_0x58e5f8,'attributes':_0x5dd447});for(const _0x4a0ff4 of _0x458fb6)_0x4a0ff4['detach'](),_0x4a0ff4['isCollapsed']||'$graveyard'==_0x4a0ff4['root']['rootName']||this['_addSuggestionMarker'](_0x56e3f6,_0x21b17c,_0x58e5f8,_0x4a0ff4,R['getMultiRangeId']());return _0x47ce5c;}['markAttributeChange'](_0x497700,_0x401ead,_0x2b07a9,_0x5d075f,_0x1b61a4){if(_0x497700['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x48d499=this['editor']['plugins']['get']('Users')['me']['id'],_0x53e30e=Array['from'](this['_suggestions']['values']())['filter'](_0x43e20a=>'attribute'==_0x43e20a['type']&&_0x43e20a['data']['key']==_0x401ead&&_0x43e20a['isIntersectingWithRange'](_0x497700));if(this['_trackingSessionId']&&(_0x1b61a4['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x549e78=this['_findSuggestions'](_0x497700,'insertion')['filter'](({meta:_0x57058f})=>_0x57058f['isOwn']&&!_0x57058f['isInsideObject']&&!_0x57058f['isNextTo'])['map'](({suggestion:_0x65fc14})=>_0x65fc14);_0x53e30e['unshift'](..._0x549e78);}const _0x50f836=new Map([[_0x497700,_0x2b07a9]]);for(const _0x366c08 of _0x53e30e){const _0x15abda='attribute'==_0x366c08['type']?_0x366c08['data']['oldValue']:void 0x0,_0x23b136=_0x366c08['getFirstRange'](),_0x146612=Array['from'](_0x50f836['keys']())['find'](_0x2dd9e3=>_0x2dd9e3['isIntersecting'](_0x23b136));if(!_0x146612)continue;const _0x286260=_0x146612['getDifference'](_0x23b136);this['_isBlockAttribute'](_0x401ead)&&'insertion'==_0x366c08['type']&&0x0!=_0x286260['length']||(_0x50f836['delete'](_0x146612),_0x286260['forEach'](_0x488c9f=>{_0x50f836['set'](_0x488c9f,_0x2b07a9);}),'insertion'!=_0x366c08['type']&&_0x15abda!=_0x5d075f&&_0x50f836['set'](_0x146612['getIntersection'](_0x23b136),_0x15abda));}const _0x2b8c30=[];for(const [_0x5b40c3,_0x52c23f]of _0x50f836){const _0x4a522e=_0x47bc50(),_0x558d76={'key':_0x401ead,'oldValue':_0x52c23f,'newValue':_0x5d075f};_0x401ead['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':_0x401ead});const _0x27c167=('attribute:'+(_0x401ead+'|'+Qt({'newValue':_0x5d075f})))['substring'](0x0,0x3c),_0x57a4d1=this['_setSuggestionData']({'id':_0x4a522e,'type':_0x27c167,'data':_0x558d76,'createdAt':new Date(),'authorId':_0x48d499,'attributes':_0x1b61a4});_0x2b8c30['push'](_0x57a4d1),this['_addSuggestionMarker'](_0x27c167,_0x4a522e,_0x48d499,_0x5b40c3);}return _0x2b8c30;}['enableDefaultAttributesIntegration'](_0x4d0951){this['enableCommand'](_0x4d0951,(_0x3a0701,..._0x429a02)=>{this['recordAttributeChanges'](()=>{_0x3a0701(..._0x429a02);});});}['registerBlockAttribute'](_0x164d02){this['_blockAttributeKeys']['add'](_0x164d02);}['registerInlineAttribute'](_0x1824bc){this['_inlineAttributeKeys']['add'](_0x1824bc);}['startTrackingSession'](_0x5a5aa6){return this['_trackingSessionId']=void 0x0!==_0x5a5aa6?_0x5a5aa6:_0x47bc50(),this['_trackingSessionId'];}['_getAttributeKey'](_0x481b0e){return'attribute'==_0x481b0e['type']?ae(_0x481b0e['subType']):null;}['_applyOperationsAsSuggestions'](_0x35fbd2){if(0x0==_0x35fbd2['length'])return;const _0x3887d1=this['editor'],_0xca818b=_0x3887d1['plugins']['get'](_0x3513c7);let _0xd26cdc,_0x4323a9=!0x0;for(const _0x5585d6 in _0x35fbd2[0x0]){const _0x2b2457=_0x35fbd2[0x0][_0x5585d6];if((_0x2b2457 instanceof _0x3bb6ba||_0x2b2457 instanceof _0x5b8305)&&_0x2b2457['root']['is']('documentFragment')){_0x4323a9=!0x1,_0xd26cdc=_0x2b2457['root'];break;}}_0x3887d1['model']['change'](_0x1d450e=>{const _0x2271e4=new Set();for(let _0x2468b9=0x0;_0x2468b9<_0x35fbd2['length'];_0x2468b9++){const _0xef3adb=_0x35fbd2[_0x2468b9];if(_0xef3adb['baseVersion']=_0x4323a9?_0x3887d1['model']['document']['version']:null,_0xef3adb['isDocumentOperation']=_0x4323a9,_0xca818b['isMarkedRemoveOperation'](_0xef3adb)){const _0x30d64d=te(_0xef3adb['newRange'],_0x3887d1['model']);if(_0x4323a9)this['markDeletion'](_0x30d64d);else{const _0x1beb02='suggestion:deletion:'+_0x47bc50()+':$aiSuggestion';_0xd26cdc['markers']['set'](_0x1beb02,_0x30d64d);}}else switch(_0xef3adb['type']){case'rename':{const _0x4be471=_0xef3adb['oldName'],_0x97ebf9=_0xef3adb['newName'];if(_0x4be471==_0x97ebf9)break;_0x1d450e['batch']['addOperation'](_0xef3adb),_0x3887d1['model']['applyOperation'](_0xef3adb);const _0x212aa1='$elementName',_0x281980=_0xef3adb['position'],_0x1e903d=_0x3887d1['model']['createRange'](_0x281980,_0x3887d1['model']['createPositionAt'](_0x281980['nodeAfter'],'end'));if(_0x4323a9)this['markAttributeChange'](_0x1e903d,_0x212aa1,_0x4be471,_0x97ebf9,{'groupId':_0x47bc50()});else{const _0x2e3cc6='suggestion:attribute:'+_0x212aa1+':'+_0x47bc50()+':$aiSuggestion';_0xd26cdc['markers']['set'](_0x2e3cc6,_0x1e903d);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x37ab63=_0xef3adb['oldValue'],_0x225d92=_0xef3adb['newValue'];if(_0x37ab63==_0x225d92)break;_0x1d450e['batch']['addOperation'](_0xef3adb),_0x3887d1['model']['applyOperation'](_0xef3adb);const _0x2d871a=_0xef3adb['key'];if(!this['_isRegisteredAttribute'](_0x2d871a))break;const _0x1f3e50=te(_0xef3adb['range'],_0x3887d1['model']);if(_0x4323a9)this['markAttributeChange'](_0x1f3e50,_0x2d871a,_0x37ab63,_0x225d92,{'groupId':_0x47bc50()});else{const _0x2d9e03='suggestion:attribute:'+_0x2d871a+':'+_0x47bc50()+':$aiSuggestion';_0xd26cdc['markers']['set'](_0x2d9e03,_0x1f3e50);}break;}case'insert':{_0x1d450e['batch']['addOperation'](_0xef3adb),_0x3887d1['model']['applyOperation'](_0xef3adb);const _0x1f0371=_0x35fbd2[_0x2468b9+0x1]&&'move'==_0x35fbd2[_0x2468b9+0x1]['type'];if(!_0x4323a9&&_0x1f0371&&ce(_0xd26cdc,_0xef3adb),_0x1f0371)break;const _0x50266f=_0xef3adb['position'],_0x32ffe0=_0xef3adb['howMany'],_0x571d3e=te(_0x3887d1['model']['createRange'](_0x50266f,_0x50266f['getShiftedBy'](_0x32ffe0)),_0x3887d1['model']);if(_0x4323a9)this['markInsertion'](_0x571d3e);else{const _0x59cdee='suggestion:insertion:'+_0x47bc50()+':$aiSuggestion';_0xd26cdc['markers']['set'](_0x59cdee,_0x571d3e);}break;}case'split':{_0x1d450e['batch']['addOperation'](_0xef3adb),_0x3887d1['model']['applyOperation'](_0xef3adb);const _0x2dfe39=_0xef3adb['splitPosition'],_0x13abbb=_0xef3adb['moveTargetPosition'],_0x5805a4=_0x3887d1['model']['createRange'](_0x2dfe39,_0x13abbb);if(_0x4323a9)this['markInsertion'](_0x3887d1['model']['createRange'](_0x2dfe39,_0x13abbb));else{const _0xc28c48='suggestion:insertion:'+_0x47bc50()+':$aiSuggestion';_0xd26cdc['markers']['set'](_0xc28c48,_0x5805a4);}break;}case'move':if(_0x1d450e['batch']['addOperation'](_0xef3adb),_0x3887d1['model']['applyOperation'](_0xef3adb),!_0x4323a9&&_0x35fbd2[_0x2468b9-0x1]&&'insert'==_0x35fbd2[_0x2468b9-0x1]['type']&&ce(_0xd26cdc,_0xef3adb),!_0x4323a9){const _0x5d1bed=_0xef3adb['getMovedRangeStart'](),_0x12cb80=_0xef3adb['howMany'];for(let _0x22bb79=0x0;_0x22bb79<_0x12cb80;_0x22bb79++){const _0x4ff842=_0x5d1bed['getShiftedBy'](_0x22bb79)['nodeAfter'];_0x2271e4['add'](_0x4ff842);}}break;case'remove':if(_0x4323a9)_0x1d450e['batch']['addOperation'](_0xef3adb),_0x3887d1['model']['applyOperation'](_0xef3adb);else{const _0xd577a8=_0xef3adb['sourcePosition'],_0xa67f08=_0xef3adb['howMany'],_0x547241=new _0x1ea8fd(_0xd577a8,_0xa67f08);_0x1d450e['batch']['addOperation'](_0x547241),_0x3887d1['model']['applyOperation'](_0x547241);}}}for(const _0x306403 of _0x2271e4){const _0x44243d=_0x3887d1['model']['createRangeOn'](_0x306403),_0xbb4581='suggestion:formatBlock:$fakeWrap:'+_0x47bc50()+':$aiSuggestion';_0xd26cdc['markers']['set'](_0xbb4581,te(_0x44243d,_0x3887d1['model']));}});}['_setSuggestionRange'](_0x24d4d7,_0x486bf8){const _0x123e7b=_0x24d4d7['getFirstMarker']();this['_model']['change'](_0x1fde79=>{_0x1fde79['updateMarker'](_0x123e7b,{'range':_0x486bf8});});}['_addThreadToSuggestion'](_0x308ea7){const _0x4e2984=_0x308ea7['id'],_0x40df9f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4e2984)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40df9f,'threadId':_0x4e2984,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1ef526=this['_commentsRepository']['getCommentThread'](_0x4e2984);_0x1ef526['unbind']('isRemovable'),_0x1ef526['isRemovable']=!0x1,_0x308ea7['commentThread']=_0x1ef526;}['_checkSuggestionCorrectness'](_0x11958d,_0x36f86a,_0x674af7,_0x4cc404){if(_0x11958d['type']!=_0x36f86a||_0x11958d['subType']!=_0x674af7||_0x11958d['creator']['id']!=_0x4cc404)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x580921('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1b76bc,_0x37546c){const _0x236d3f=_0x1b76bc['getFirstRange']();if(_0x37546c['isEqual'](_0x236d3f))_0x1b76bc['removeMarkers']();else{if(_0x236d3f['containsRange'](_0x37546c)){const _0x5168aa=this['_model']['createPositionAt'](_0x37546c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b76bc,this['_model']['createRange'](_0x236d3f['start'],_0x5168aa));const _0x2af2a8=_0x47bc50(),_0x268032=_0x1b76bc['creator']['id'],_0x239131=_0x1b76bc['type']+':'+_0x1b76bc['subType'];this['_setSuggestionData']({'id':_0x2af2a8,'type':_0x239131,'createdAt':new Date(),'authorId':_0x268032,'data':_0x1b76bc['data'],'attributes':_0x1b76bc['attributes']});const _0x33f532=this['_model']['createPositionAt'](_0x37546c['end']['parent'],'after'),_0x3bf429=this['_model']['createRange'](_0x33f532,_0x236d3f['end']);this['_addSuggestionMarker'](_0x239131,_0x2af2a8,_0x268032,_0x3bf429);}else{if(_0x236d3f['containsPosition'](_0x37546c['start'])){const _0x23c644=this['_model']['createPositionAt'](_0x37546c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1b76bc,this['_model']['createRange'](_0x236d3f['start'],_0x23c644));}else{const _0x1ead00=this['_model']['createPositionAt'](_0x37546c['end']['parent'],'after');this['_setSuggestionRange'](_0x1b76bc,this['_model']['createRange'](_0x1ead00,_0x236d3f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13d352){for(const {suggestion:_0x559956,meta:_0x487e05}of this['_findSuggestions'](_0x13d352,'insertion')){if(!_0x487e05['isOwn'])continue;const _0x790023=_0x559956['getRanges']();for(const _0x87c0d8 of _0x790023)if(!_0x13d352['getDifference'](_0x87c0d8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x49b00b){return this['editor']['plugins']['get']('Users')['getUser'](_0x49b00b);}['_getExternalAuthor'](_0x1ea2f7){const _0x30f310=this['editor']['plugins']['get']('Users'),_0x4e5992=_0x417427('external:'+_0x1ea2f7),_0x31ccd1=_0x30f310['getUser'](_0x4e5992);return _0x31ccd1||_0x30f310['addUser']({'id':_0x4e5992,'name':_0x1ea2f7});}['_createSuggestion'](_0x1a8ff9,_0xfa0a7e,_0x351f23,_0x70434e,_0x2e0074,_0x14652c){const _0x21dadd=this['_getAuthorFromId'](_0x70434e);if(!_0x21dadd)throw new _0x580921('track-changes-user-not-found',this,{'authorId':_0x70434e,'suggestionId':_0x351f23});const _0x119e6a=this['_suggestionFactory']['buildSuggestion'](_0x1a8ff9,_0xfa0a7e,_0x351f23,_0x21dadd,_0x2e0074,_0x4b3530=>{this['_updateSuggestionData'](_0x351f23,{'attributes':_0x4b3530});const _0x2dcc26=this['getSuggestion'](_0x351f23);this['_joinWithAdjacentSuggestions'](new Set([_0x2dcc26])),this['_refreshSuggestionsChain'](new Set([_0x2dcc26]));},_0x14652c);return this['listenTo'](_0x119e6a,'accept',()=>{this['_updateSuggestionData'](_0x351f23,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x119e6a,'discard',()=>{this['_updateSuggestionData'](_0x351f23,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x351f23,_0x119e6a),this['_suggestionState']['set'](_0x119e6a,'notReady'),_0x119e6a;}['_splitMarkerName'](_0x370447){const _0x32b043=_0x370447['split'](':');return{'group':_0x32b043[0x0],'type':_0x32b043[0x1],'subType':_0x32b043['length']>=0x5?_0x32b043[0x2]:null,'id':_0x32b043['length']<0x5?_0x32b043[0x2]:_0x32b043[0x3],'authorId':_0x32b043['length']<0x5?_0x32b043[0x3]:_0x32b043[0x4],'markerCount':0x6==_0x32b043['length']?_0x32b043[0x5]:null};}['_breakSuggestionMarker'](_0x56071a,_0x26be55,_0x3fea66){const _0x248201=_0x56071a['getFirstRange'](),_0x17f4e4=_0x248201['start'],_0xa99616=_0x248201['end'];this['_setSuggestionRange'](_0x56071a,this['_model']['createRange'](_0x17f4e4,_0x26be55));const _0xdcc24=_0x47bc50(),_0x19271e=_0x56071a['creator']['id'],_0x4557e6=_0x56071a['type']+(_0x56071a['subType']?':'+_0x56071a['subType']:'');this['_setSuggestionData']({'id':_0xdcc24,'type':_0x4557e6,'createdAt':new Date(),'authorId':_0x19271e,'originalSuggestionId':_0x56071a['_originalSuggestionId']||_0x56071a['id'],'attributes':_0x56071a['attributes'],'data':_0x56071a['data']});const _0x27822a=this['_getAttributeKey'](_0x56071a);('formatBlock'==_0x56071a['type']||_0x27822a&&this['_isBlockAttribute'](_0x27822a))&&(_0x3fea66=this['_model']['createPositionBefore'](_0x3fea66['parent'])),this['_addSuggestionMarker'](_0x4557e6,_0xdcc24,_0x19271e,this['_model']['createRange'](_0x3fea66,_0xa99616));}['_findSuggestions'](_0x48df24,_0x58dfe4=null){const _0x387a05=[],_0x4e0300=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x48df24)||(_0x48df24=[_0x48df24]);for(const _0x20f806 of this['getSuggestions']()){if(!_0x20f806['isInContent'])continue;if(_0x58dfe4&&_0x20f806['type']!=_0x58dfe4)continue;let _0x2974ed=!0x1;for(const _0x79b93 of _0x20f806['getRanges']()){for(const _0x15356d of _0x48df24){const _0x574528=_0x15356d['start']['isEqual'](_0x79b93['end'])||_0x15356d['end']['isEqual'](_0x79b93['start']);if(_0x574528||_0x15356d['getIntersection'](_0x79b93)){const _0x552093=_0x15356d['containsRange'](_0x79b93)&&Ht(this['_model']['schema'],_0x79b93['start'],_0x15356d),_0x4191b6=_0x79b93['containsRange'](_0x15356d)&&Ht(this['_model']['schema'],_0x15356d['start'],_0x79b93);_0x387a05['push']({'suggestion':_0x20f806,'meta':{'isOwn':_0x4e0300==_0x20f806['author'],'isNextTo':_0x574528,'isInsideObject':_0x552093,'containsRangeInObject':_0x4191b6}}),_0x2974ed=!0x0;break;}}if(_0x2974ed)break;}}return _0x387a05;}['_addSuggestionMarker'](_0x9fd118,_0x42204c,_0x467610,_0x436c38,_0x4424f3){this['_model']['change'](_0x2e39a5=>{let _0x5bef63='suggestion:'+_0x9fd118+':'+_0x42204c+':'+_0x467610;_0x4424f3&&(_0x5bef63=_0x5bef63+':'+_0x4424f3),_0x2e39a5['addMarker'](_0x5bef63,{'range':_0x436c38,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49fb2c){const _0x4a81c9=_0x49fb2c['previous'],_0x580b3c=_0x49fb2c['next'];_0x49fb2c['previous']=null,_0x49fb2c['next']=null,null!=_0x4a81c9&&_0x4a81c9['next']==_0x49fb2c&&(_0x4a81c9['next']=_0x580b3c),null!=_0x580b3c&&_0x580b3c['previous']==_0x49fb2c&&(_0x580b3c['previous']=_0x4a81c9),'ready'==this['_suggestionState']['get'](_0x49fb2c)&&(this['_suggestionState']['set'](_0x49fb2c,'removed'),this['fire']('suggestionUnloaded',_0x49fb2c,_0x4a81c9,_0x580b3c));}['_setSuggestionData'](_0x2ad933){const _0x3d8721=_0x2ad933['id'],_0x5a44e6=this['addSuggestionData'](_0x2ad933);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3798f8=this['editor']['plugins']['get']('PendingActions'),_0x50ffd4=_0x5a44e6['hasComments'],_0x3db17f=_0x5a44e6['subType']?_0x5a44e6['type']+':'+_0x5a44e6['subType']:_0x5a44e6['type'],_0x52b3b5=this['editor']['locale'],_0x3c0040=_0x3798f8['add'](o(_0x52b3b5,'PENDING_ACTION_SUGGESTION')),_0x15d1d9={'id':_0x3d8721,'type':_0x3db17f,'hasComments':_0x50ffd4,'data':_0x2ad933['data']||null,'originalSuggestionId':_0x2ad933['originalSuggestionId']||null,'attributes':_0x5a44e6['attributes']};this['_adapter']['addSuggestion'](_0x15d1d9)['then'](_0x31c4dd=>{_0x5a44e6['_saved']=!0x0,_0x3798f8['remove'](_0x3c0040),_0x31c4dd&&_0x31c4dd['createdAt']&&(this['_suggestions']['get'](_0x3d8721)['createdAt']=_0x31c4dd['createdAt']);})['catch'](_0x3a8507=>{throw _0x5d4aa7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a44e6['discard']();}),_0x5a44e6['stopListening'](),this['_suggestions']['delete'](_0x5a44e6['id']),this['_suggestionState']['delete'](_0x5a44e6),_0x3a8507;});}return _0x5a44e6;}['_isBlockAttribute'](_0x3d5e24){return this['_blockAttributeKeys']['has'](_0x3d5e24);}['_isInlineAttribute'](_0x46ca77){return this['_inlineAttributeKeys']['has'](_0x46ca77);}['_updateSuggestionData'](_0x2165b0,_0x48219e){const _0x3c8507=this['editor']['plugins']['get']('PendingActions'),_0x35a870=this['getSuggestion'](_0x2165b0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x35a870['_saved']){const _0x16dae1=_0x3c8507['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2165b0,_0x48219e)['then'](()=>{_0x3c8507['remove'](_0x16dae1);});}else _0x35a870['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2165b0,_0x48219e);});}}['_getSuggestionData'](_0x1d1e6f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x580921('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1d1e6f);}['_handleNewSuggestionMarker'](_0x4a959d){const {id:_0x674d78,type:_0x4cf42a,subType:_0x553306,authorId:_0x3dfe76}=this['_splitMarkerName'](_0x4a959d),_0x240cee=this['_suggestions']['get'](_0x674d78)||this['_createSuggestion'](_0x4cf42a,_0x553306,_0x674d78,_0x3dfe76,{});switch(this['_checkSuggestionCorrectness'](_0x240cee,_0x4cf42a,_0x553306,_0x3dfe76),this['_suggestionState']['get'](_0x240cee)){case'notReady':this['_getSuggestionData'](_0x674d78)['then'](_0x2254e3=>{let _0x8294eb=Promise['resolve']();_0x2254e3['hasComments']&&(_0x8294eb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x674d78})),_0x8294eb['then'](()=>{this['addSuggestionData'](_0x2254e3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x240cee,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x674d78,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x240cee,'ready'),this['fire']('suggestionLoaded',_0x240cee);break;case'ready':this['fire']('suggestionChanged',_0x240cee);}return _0x240cee['addMarkerName'](_0x4a959d),_0x240cee;}['_refreshSuggestionsChain'](_0x3cf209){const _0x25bfbe=Array['from'](_0x3cf209),_0x24c551=_0x25bfbe['filter'](_0xfebc71=>'attribute'==_0xfebc71['type']);this['_refreshAttributeSuggestionsChain'](_0x24c551);const _0x525e3f=_0x25bfbe['filter'](_0x25d53d=>!_0x25d53d['isMultiRange']&&'attribute'!=_0x25d53d['type']),_0x3cbe04=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c3ad7=>!_0x2c3ad7['isMultiRange']&&'attribute'!=_0x2c3ad7['type']),_0x4b0fc2=_0x3cbe04['filter'](_0x45b243=>!_0x3cf209['has'](_0x45b243)),_0x101593=new Map(_0x3cbe04['map'](_0x4e9ff0=>[_0x4e9ff0,this['_suggestionFactory']['getSuggestionCallback'](_0x4e9ff0['type'],_0x4e9ff0['subType'],'chain')])),_0x179ea0=new Map(_0x3cbe04['map'](_0x227ab8=>[_0x227ab8,_0x227ab8['getFirstRange']()])),_0x4adb02=new Set(),_0x40e97f=new Set();for(let _0x1ae967=0x0;_0x1ae967<_0x525e3f['length'];_0x1ae967++)_0x5e877f(_0x525e3f[_0x1ae967],_0x525e3f,_0x1ae967+0x1);for(let _0x41f353=0x0;_0x41f353<_0x525e3f['length'];_0x41f353++)_0x5e877f(_0x525e3f[_0x41f353],_0x4b0fc2,0x0);const _0x56fd67=new Set();for(let _0x2ee990=0x0;_0x2ee990<_0x525e3f['length'];_0x2ee990++){const _0x2da975=_0x525e3f[_0x2ee990];!_0x40e97f['has'](_0x2da975)&&_0x2da975['previous']&&(_0x56fd67['add'](_0x2da975['previous']),_0x2da975['previous']['next']===_0x2da975&&(_0x2da975['previous']['next']=null),_0x2da975['previous']=null),!_0x4adb02['has'](_0x2da975)&&_0x2da975['next']&&(_0x56fd67['add'](_0x2da975['next']),_0x2da975['next']['previous']===_0x2da975&&(_0x2da975['next']['previous']=null),_0x2da975['next']=null);}function _0x5e877f(_0x4b8772,_0x3fe7a5,_0x2f81e0){for(let _0x337feb=_0x2f81e0;_0x337feb<_0x3fe7a5['length'];_0x337feb++){const _0x3ac762=_0x2834c8(_0x4b8772,_0x3fe7a5[_0x337feb]);_0x3ac762&&(_0x3ac762[0x0]['next']=_0x3ac762[0x1],_0x3ac762[0x1]['previous']=_0x3ac762[0x0],_0x4adb02['add'](_0x3ac762[0x0]),_0x40e97f['add'](_0x3ac762[0x1]));}}function _0x2834c8(_0x57a4a2,_0x41ce79){if(_0x57a4a2['author']['id']!==_0x41ce79['author']['id'])return null;const _0xa426fe=_0x101593['get'](_0x57a4a2)(_0x57a4a2,_0x41ce79,_0x179ea0['get'](_0x57a4a2),_0x179ea0['get'](_0x41ce79));if(!_0xa426fe)return null;return _0x101593['get'](_0x41ce79)(_0x57a4a2,_0x41ce79,_0x179ea0['get'](_0x57a4a2),_0x179ea0['get'](_0x41ce79))?_0xa426fe[0x1]['commentThread']&&_0xa426fe[0x1]['commentThread']['length']?null:_0xa426fe:null;}_0x56fd67['size']&&this['_refreshSuggestionsChain'](_0x56fd67);}['_refreshAttributeSuggestionsChain'](_0x4de0b7){if(0x0==_0x4de0b7['length'])return;const _0x1ff8d5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xff8201=>'attribute'==_0xff8201['type']&&_0xff8201['_isDataLoaded']),_0x1f00b7=[],_0x5a8a03=new Map();for(const _0x4a91ab of _0x1ff8d5){const _0x11497e=_0x417427(_0x4a91ab['attributes']);_0x5a8a03['has'](_0x11497e)||(_0x5a8a03['set'](_0x11497e,_0x1f00b7['length']),_0x1f00b7['push']([]));const _0x12301e=_0x5a8a03['get'](_0x11497e);_0x1f00b7[_0x12301e]['push'](_0x4a91ab);}!(function(){_0x1f00b7['sort']((_0x2d2a0b,_0x5b1a4e)=>{const _0x4ce7c7=_0x2d2a0b[0x0]['createdAt'],_0x2f7b74=_0x5b1a4e[0x0]['createdAt'];return _0x4ce7c7==_0x2f7b74?_0x2d2a0b[0x0]['attributes']['groupId']<_0x5b1a4e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ce7c7<_0x2f7b74?-0x1:0x1;});for(const _0x58736e of _0x1f00b7)_0x58736e['sort']((_0xb9479e,_0x239876)=>_0xb9479e['id']<_0x239876['id']?-0x1:0x1);}());for(let _0x16bab3=0x0;_0x16bab3<_0x1f00b7['length'];_0x16bab3++){if(0x0==_0x1f00b7[_0x16bab3]['length'])continue;const _0x51c4ab=[];for(let _0x4c5f70=_0x16bab3+0x1;_0x4c5f70<_0x1f00b7['length'];_0x4c5f70++)0x0!=_0x1f00b7[_0x4c5f70]['length']&&_0x8f2b20(_0x1f00b7[_0x16bab3],_0x1f00b7[_0x4c5f70])&&_0x51c4ab['push'](_0x4c5f70);for(const _0x4995a4 of _0x51c4ab)_0x1f00b7[_0x16bab3]=_0x1f00b7[_0x16bab3]['concat'](_0x1f00b7[_0x4995a4]),_0x1f00b7[_0x4995a4]=[];}for(const _0x432ec0 of _0x1f00b7)for(let _0x4d6a42=0x0;_0x4d6a42<_0x432ec0['length'];_0x4d6a42++){const _0x1c6b28=_0x432ec0[_0x4d6a42+0x1]||null;_0x432ec0[_0x4d6a42]['next']!==_0x1c6b28&&(_0x432ec0[_0x4d6a42]['next']=_0x1c6b28);}for(const _0xeb0ad4 of _0x1f00b7)for(let _0x4fea47=0x0;_0x4fea47<_0xeb0ad4['length'];_0x4fea47++){const _0x51b9d0=_0xeb0ad4[_0x4fea47-0x1]||null;_0xeb0ad4[_0x4fea47]['previous']!==_0x51b9d0&&(_0xeb0ad4[_0x4fea47]['previous']=_0x51b9d0);}function _0x8f2b20(_0x1bc5c6,_0x200e27){if(_0x1bc5c6[0x0]['attributes']['groupId']!==_0x200e27[0x0]['attributes']['groupId']&&_0x1bc5c6[0x0]['author']!==_0x200e27[0x0]['author'])return!0x1;if(!function(_0x596857,_0x428e35){if(!_0x596857['hasComments']&&!_0x428e35['hasComments'])return!0x0;if(_0x596857['hasComments']&&_0x428e35['hasComments'])return!0x1;if(_0x596857['hasComments']&&_0x428e35['createdAt']<_0x596857['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x428e35['hasComments']&&_0x596857['createdAt']<_0x428e35['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1bc5c6[0x0],_0x200e27[0x0]))return!0x1;const _0x85e501=Kt(_0x1bc5c6[0x0]['attributes'],['groupId','trackingSessionId']),_0x3fdb15=Kt(_0x200e27[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x537817(_0x85e501,_0x3fdb15))return!0x1;if(_0x1bc5c6[0x0]['attributes']['groupId']==_0x200e27[0x0]['attributes']['groupId'])return!0x0;if(_0x1bc5c6[0x0]['attributes']['trackingSessionId']!==_0x200e27[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1bc5c6['every'](_0x52ea1d=>_0x200e27['some'](_0x23577=>_0x52ea1d['getFirstRange']()['isEqual'](_0x23577['getFirstRange']())))&&_0x200e27['every'](_0x1f181a=>_0x1bc5c6['some'](_0xfa783f=>_0x1f181a['getFirstRange']()['isEqual'](_0xfa783f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3e0d24){const _0x267442=Array['from'](_0x3e0d24),_0x6d61ba=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27b59f=_0x6d61ba['filter'](_0x53fd1a=>!_0x3e0d24['has'](_0x53fd1a)),_0x2b4b85=new Map(_0x267442['map'](_0xeb371e=>[_0xeb371e,this['_suggestionFactory']['getSuggestionCallback'](_0xeb371e['type'],_0xeb371e['subType'],'join')])),_0x4b63b5=new Map(_0x6d61ba['map'](_0x1d3594=>[_0x1d3594,_0x1d3594['getRanges']()]));for(let _0x358bd0=0x0;_0x358bd0<_0x267442['length'];_0x358bd0++){if(_0x30f4a3(this,_0x267442[_0x358bd0],_0x267442,_0x358bd0+0x1))return!0x0;}for(let _0x2b4e34=0x0;_0x2b4e34<_0x267442['length'];_0x2b4e34++){if(_0x30f4a3(this,_0x267442[_0x2b4e34],_0x27b59f,0x0))return!0x0;}return!0x1;function _0x30f4a3(_0x3b3784,_0x4a480b,_0x4c23fd,_0x334d38){for(let _0xdad936=_0x334d38;_0xdad936<_0x4c23fd['length'];_0xdad936++){const _0x4a0eee=_0x4c23fd[_0xdad936];if(_0x4a0eee['type']!==_0x4a480b['type']||_0x4a0eee['author']['id']!==_0x4a480b['author']['id']||_0x4a0eee['subType']!==_0x4a480b['subType'])continue;if(!se(_0x4a480b,_0x4a0eee))continue;if('attribute'==_0x4a480b['type']&&_0x4a480b['data']['oldValue']!=_0x4a0eee['data']['oldValue'])continue;if('attribute'==_0x4a480b['type']&&_0x3b3784['_isBlockAttribute'](_0x4a480b['data']['key']))continue;if('formatBlock'==_0x4a480b['type']){const _0x1e7711=_0x3b3784['editor']['model'],_0x1047bd=_0x4a480b['getContainedElement']();if(_0x1047bd&&(_0x1e7711['schema']['isObject'](_0x1047bd)||_0x1e7711['schema']['isLimit'](_0x1047bd)))continue;}const _0x1a2975=_0x2b4b85['get'](_0x4a480b),_0x398031=_0x4b63b5['get'](_0x4a480b),_0x2c15a9=_0x4b63b5['get'](_0x4a0eee),_0x46f1e0=_0x4a480b['commentThread']&&_0x4a480b['commentThread']['length'],_0x432a8a=_0x4a0eee['commentThread']&&_0x4a0eee['commentThread']['length'];if(!_0x46f1e0&&_0x1a2975(_0x2c15a9,_0x398031))return _0x3b3784['_joinSuggestions'](_0x4a0eee,_0x4a480b),_0x4b63b5['delete'](_0x4a480b),!0x0;if(!_0x432a8a&&_0x1a2975(_0x398031,_0x2c15a9))return _0x3b3784['_joinSuggestions'](_0x4a480b,_0x4a0eee),_0x4b63b5['delete'](_0x4a0eee),!0x0;}return!0x1;}}['_joinSuggestions'](_0x38ccfd,_0xb341d0){if(_0x38ccfd['isMultiRange']){for(const _0x29e812 of _0xb341d0['getRanges']())_0x38ccfd['addRange'](_0x29e812);}else{const _0x54ef91=_0xb341d0['getFirstRange']()['end'];this['_setSuggestionRange'](_0x38ccfd,this['_model']['createRange'](_0x38ccfd['getFirstRange']()['start'],_0x54ef91));}_0xb341d0['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52b271,_0x3f34d3,_0x1a6460){const _0x55f7bb=_0x52b271['startsWith']('format')||_0x52b271['startsWith']('attribute')?'FORMATTING':_0x52b271['toUpperCase']();return o(this['editor']['locale'],_0x3f34d3+'_'+_0x55f7bb+'_SUGGESTION_ANNOUNCEMENT',_0x1a6460);}['_initAriaMarkerChangeAnnouncements'](){const _0x20f29f=this['editor'];if(!_0x20f29f['ui'])return;const {ariaLiveAnnouncer:_0x2c6819}=_0x20f29f['ui'];_0x34c0c1(this['_model'],({left:_0x39c552,entered:_0x2591ca})=>{for(const _0x4f34f4 of _0x39c552){const {group:_0x1bce17,type:_0x30944a}=this['_splitMarkerName'](_0x4f34f4['name']);if('suggestion'===_0x1bce17){_0x2c6819['announce'](this['_getMarkerAnnouncementText'](_0x30944a,'LEAVE'));break;}}for(const _0x432a2a of _0x2591ca){const {group:_0x1d865d,type:_0x2348de}=this['_splitMarkerName'](_0x432a2a['name']);if('suggestion'===_0x1d865d){_0x2c6819['announce'](this['_getMarkerAnnouncementText'](_0x2348de,'ENTER',_0x213543(_0x2cc6ac)));break;}}});}['_processAttributeChanges'](_0x5739ec){if(this['_recordAttributeSuggestions'])return!0x1;const _0xaa77cf=this['editor'],_0x3072da=_0xaa77cf['model']['document']['differ']['getChanges']();if(0x0==_0x3072da['length'])return!0x1;const _0x49d09f=[],_0x21a747=_0x3072da['filter'](_0x2b01bc=>'attribute'==_0x2b01bc['type']),_0x45fcaa=_0x3072da['filter'](_0x39a48c=>'insert'==_0x39a48c['type']&&'$text'!=_0x39a48c['name']),_0x1606b1=_0x3072da['filter'](_0x459523=>'remove'==_0x459523['type']&&'$text'!=_0x459523['name']);for(const _0x53723a of _0x21a747)_0x49d09f['push']({'key':_0x53723a['attributeKey'],'newValue':_0x53723a['attributeNewValue'],'oldValue':_0x53723a['attributeOldValue'],'range':ee(_0x53723a['range'],_0xaa77cf['model'])});for(const _0x48306b of _0x45fcaa){const _0x4c385a=_0x1606b1['find'](_0x2ecc58=>_0x2ecc58['position']['isEqual'](_0x48306b['position']));_0x4c385a&&_0x49d09f['push']({'key':m,'newValue':_0x48306b['name'],'oldValue':_0x4c385a['name'],'range':_0xaa77cf['model']['createRangeOn'](_0x48306b['position']['nodeAfter'])});}return 0x0!=_0x49d09f['length']&&this['_reduceExistingSuggestions'](_0x5739ec,_0x49d09f);}['_processAttributeSuggestions'](_0x4de63c){let _0x58a9db=!0x1;const _0x1da96d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d8e42=>_0x2d8e42['data']['newRange']&&_0x2d8e42['name']['startsWith']('suggestion:attribute:'));for(const _0x3bf80c of _0x1da96d){const {subType:_0xcb11a4,id:_0x2438f1}=this['_splitMarkerName'](_0x3bf80c['name']),_0x41effc=_0xcb11a4['split']('|')[0x0];for(const _0x4f4483 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4f4483['id']!=_0x2438f1&&'attribute'==_0x4f4483['type']&&_0x4f4483['data']&&_0x4f4483['data']['key']==_0x41effc&&_0x4f4483['getFirstRange']()['isIntersecting'](_0x3bf80c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4f4483,_0x3bf80c['data']['newRange'],_0x4de63c),_0x58a9db=!0x0);}return _0x58a9db;}['recordAttributeChanges'](_0x1f59fd){this['_recordAttributeSuggestions']=!0x0,_0x1f59fd();}['_isRegisteredAttribute'](_0x135923){const _0x101c4b=this['_isBlockAttribute'](_0x135923),_0x50fda4=this['_isInlineAttribute'](_0x135923);return _0x101c4b||_0x50fda4;}['_reduceExistingSuggestions'](_0x59cd88,_0x1d6b9d){if(0x0==_0x1d6b9d['length'])return!0x1;let _0x3fdceb=!0x1;for(const _0x3debe3 of _0x1d6b9d){const _0x49fd91=this['_findSuggestions'](_0x3debe3['range'],'attribute')['filter'](_0x3a838a=>!_0x3a838a['meta']['isNextTo'])['map'](_0x2d800e=>_0x2d800e['suggestion']),_0x45b167=_0x417427({'newValue':_0x3debe3['newValue']});_0x49fd91['filter'](_0x29a8d5=>{const [_0x2fea6e,_0x380c59]=_0x29a8d5['subType']['split']('|');return _0x2fea6e==_0x3debe3['key']&&_0x380c59!=_0x45b167;})['forEach'](_0xc42ed9=>{this['_reduceSuggestionAttributeRange'](_0xc42ed9,_0x3debe3['range'],_0x59cd88),_0x3fdceb=!0x0;});}return _0x3fdceb;}['_reduceSuggestionAttributeRange'](_0x224edb,_0x3be354,_0x3c73d2){const _0x30e712=_0x224edb['getFirstRange']()['getDifference'](_0x3be354);0x0!==_0x30e712['length']?0x1!==_0x30e712['length']?this['_breakSuggestionMarker'](_0x224edb,_0x3be354['start'],_0x3be354['end']):this['_setSuggestionRange'](_0x224edb,_0x30e712[0x0]):_0x3c73d2['removeMarker'](_0x224edb['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x67e009){this['_editor']=_0x67e009,this['_model']=_0x67e009['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x11774e,_0x2417cd,_0x42bcb7,_0x488892,_0x29be17,_0x4369c9,_0xf43899){return new R(this['_model'],{'type':_0x11774e,'subType':_0x2417cd,'id':_0x42bcb7,'originalSuggestionId':_0xf43899,'author':_0x488892,'creator':_0x488892,'attributes':_0x29be17,'onAttributesChange':_0x4369c9,'onAccept':(..._0x31f43a)=>this['getSuggestionCallback'](_0x11774e,_0x2417cd,'accept')(..._0x31f43a),'onDiscard':(..._0x1a1cca)=>this['getSuggestionCallback'](_0x11774e,_0x2417cd,'discard')(..._0x1a1cca)});}['registerCustomCallback'](_0x10da98,_0x3208e9,_0x1c09d3,_0x4aae91){const _0x2f96bd=_0x10da98+':'+_0x3208e9+':'+_0x1c09d3;this['_customCallbacks']['set'](_0x2f96bd,_0x4aae91);}['getSuggestionCallback'](_0x286ca9,_0x52f9cc,_0x3bb2fc){const _0x59b7a1=_0x286ca9+':'+_0x52f9cc+':'+_0x3bb2fc;return this['_customCallbacks']['get'](_0x59b7a1)||this['_defaultCallbacks']['get'](_0x286ca9+':'+_0x3bb2fc);}['_registerDefaultCallbacks'](){const _0x377645=()=>!0x1,_0x42b17=_0x4a8634=>{_0x4a8634['sort']((_0x123cf4,_0x3174a8)=>_0x123cf4['start']['isBefore'](_0x3174a8['start'])?0x1:-0x1),this['_model']['change'](_0x2d63cf=>{for(const _0x8a502b of _0x4a8634){let _0x141f64;_0x141f64=_0x8a502b['end']['isAtEnd']&&_0x8a502b['end']['parent']==_0x8a502b['start']['nodeAfter']?_0x2d63cf['createSelection'](_0x8a502b['start']['nodeAfter'],'on'):_0x2d63cf['createSelection'](_0x8a502b),this['_model']['deleteContent'](_0x141f64,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x15fb97=(_0x304ee7,_0x5ba9f7)=>{_0x5ba9f7&&this['_model']['change'](_0x487321=>{const {commandName:_0x165c0b,commandParams:_0x3bf221=[]}=_0x5ba9f7,_0x2bdd0d=_0x304ee7['map'](_0x2f5a50=>(Wt(_0x2f5a50)&&(_0x2f5a50=this['_model']['createRange'](_0x2f5a50['end'])),_0x2f5a50))['filter'](_0x179ba9=>'$graveyard'!==_0x179ba9['root']['rootName']);if(_0x2bdd0d['length']<0x1)return;const _0x4db616=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x8cf393=>_0x41f621['fromRange'](_0x8cf393));_0x487321['setSelection'](_0x2bdd0d);for(const _0x5abc51 of this['_editor']['commands']['commands']())_0x5abc51['refresh']();_0x3bf221['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x165c0b,..._0x3bf221);const _0x2b5bef=_0x4db616['filter'](_0x3ee5a5=>'$graveyard'!=_0x3ee5a5['root']['rootName']);_0x2b5bef['length']>0x0&&_0x487321['setSelection'](_0x2b5bef);for(const _0x40c0dc of _0x4db616)_0x40c0dc['detach']();});},_0x4f4ab3=(_0xb2bf3b,_0x55c888)=>0x1==_0xb2bf3b['length']&&0x1==_0x55c888['length']&&_0xb2bf3b[0x0]['end']['isEqual'](_0x55c888[0x0]['start']),_0x561a03=(_0x3353fd,_0x5c49e0,_0x4ceda8,_0x4b5549)=>ne(_0x3353fd,_0x5c49e0,_0x4ceda8,_0x4b5549)?[_0x3353fd,_0x5c49e0]:ne(_0x5c49e0,_0x3353fd,_0x4b5549,_0x4ceda8)?[_0x5c49e0,_0x3353fd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x377645),this['_defaultCallbacks']['set']('insertion:discard',_0x42b17),this['_defaultCallbacks']['set']('insertion:join',_0x4f4ab3),this['_defaultCallbacks']['set']('insertion:chain',_0x561a03),this['_defaultCallbacks']['set']('deletion:accept',_0x42b17),this['_defaultCallbacks']['set']('deletion:discard',_0x377645),this['_defaultCallbacks']['set']('deletion:join',_0x4f4ab3),this['_defaultCallbacks']['set']('deletion:chain',_0x561a03),this['_defaultCallbacks']['set']('formatInline:accept',_0x15fb97),this['_defaultCallbacks']['set']('formatInline:discard',_0x377645),this['_defaultCallbacks']['set']('formatInline:join',_0x4f4ab3),this['_defaultCallbacks']['set']('formatInline:chain',_0x377645),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15fb97),this['_defaultCallbacks']['set']('formatBlock:discard',_0x377645),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f4ab3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x377645),this['_defaultCallbacks']['set']('attribute:accept',_0x377645),this['_defaultCallbacks']['set']('attribute:discard',(_0x234214,_0x214232)=>{if(!_0x214232)return;const _0x1bc107=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2b5bac=>{if(_0x214232['key']==m)for(const _0x4cd6f7 of _0x234214){const _0x36d696=_0x4cd6f7['start']['nodeAfter'],_0x46e3ca=_0x214232['oldValue'];_0x2b5bac['rename'](_0x36d696,_0x46e3ca);}else{if(_0x1bc107['_isBlockAttribute'](_0x214232['key'])){for(const _0x127d59 of _0x234214)void 0x0!==_0x214232['oldValue']?_0x2b5bac['setAttribute'](_0x214232['key'],_0x214232['oldValue'],_0x127d59['start']['nodeAfter']):_0x2b5bac['removeAttribute'](_0x214232['key'],_0x127d59['start']['nodeAfter']);}else{for(const _0x33986d of _0x234214)_0x214232['oldValue']?_0x2b5bac['setAttribute'](_0x214232['key'],_0x214232['oldValue'],_0x33986d):_0x2b5bac['removeAttribute'](_0x214232['key'],_0x33986d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f4ab3);}}function Ht(_0x2062cf,_0x3dcd13,_0x1b1a9f){for(const _0x25699d of _0x3dcd13['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x25699d['root']==_0x25699d)return!0x1;if(!_0x1b1a9f['containsItem'](_0x25699d))return!0x1;if(_0x2062cf['isObject'](_0x25699d)||_0x2062cf['isLimit'](_0x25699d))return!0x0;}return!0x1;}function Wt(_0xec75dc){return _0xec75dc['end']['parent']==_0xec75dc['start']['nodeAfter']&&_0xec75dc['end']['isAtStart'];}function zt(_0x5bef2d,_0x3b50ea,_0x47334b,_0x2ade03){const _0x426d16=_0x53651e=>!_0x53651e['item']['is']('$textProxy')&&!_0x2ade03['isObject'](_0x53651e['item']),_0x84794a=_0x5bef2d['start']['getLastMatchingPosition'](_0x426d16),_0x2bdce5=_0x5bef2d['end']['getLastMatchingPosition'](_0x426d16,{'direction':'backward'});return(!_0x5bef2d['start']['isEqual'](_0x84794a)||!_0x5bef2d['end']['isEqual'](_0x2bdce5))&&(_0x84794a['isBefore'](_0x2bdce5)?_0x47334b['updateMarker'](_0x3b50ea,{'range':_0x47334b['createRange'](_0x84794a,_0x2bdce5)}):_0x47334b['removeMarker'](_0x3b50ea),!0x0);}function Qt(_0xbc94a7){return _0x417427(_0xbc94a7);}function Xt(_0x594868){const _0xcb2abc=_0x594868['start']['nodeAfter'];return _0xcb2abc&&_0xcb2abc['is']('element');}function Yt(_0x55fc80){return Wt(_0x55fc80)||function(_0x301711){return _0x301711['start']['parent']==_0x301711['end']['nodeBefore']&&_0x301711['start']['isAtEnd'];}(_0x55fc80);}function Zt(_0x19cef1,_0x54b82f){try{const _0x447cdd=_0x19cef1['getRange']();for(const _0x50cc6d of _0x54b82f)if(_0x19cef1!==_0x50cc6d&&_0x447cdd&&_0x447cdd['isIntersecting'](_0x50cc6d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x5709bd,_0x49a6e7){const _0x3d5d4c=_0x5709bd['end']['nodeBefore'];if(_0x3d5d4c&&_0x3d5d4c['is']('element')&&_0x49a6e7['schema']['isBlock'](_0x3d5d4c)&&!_0x49a6e7['schema']['isObject'](_0x3d5d4c)){const _0x1b3447=_0x49a6e7['createPositionAt'](_0x3d5d4c,'end');return _0x49a6e7['createRange'](_0x5709bd['start'],_0x1b3447);}return _0x5709bd;}function ee(_0x332f63,_0x2917fe){return null==_0x332f63['end']['nodeBefore']&&_0x332f63['end']['parent']==_0x332f63['start']['nodeAfter']?ie(_0x332f63['start']['nodeAfter'],_0x2917fe):_0x332f63;}function ie(_0x1f9700,_0x4f12fc){const _0x560801=_0x4f12fc['schema']['isObject'](_0x1f9700)||_0x4f12fc['schema']['isSelectable'](_0x1f9700);return _0x4f12fc['createRange'](_0x4f12fc['createPositionAt'](_0x1f9700,'before'),_0x560801?_0x4f12fc['createPositionAfter'](_0x1f9700):_0x4f12fc['createPositionAt'](_0x1f9700,'end'));}function ne(_0x5512f5,_0x54a490,_0x472466,_0x420389){return!!se(_0x5512f5,_0x54a490)&&_0x472466['end']['isEqual'](_0x420389['start']);}function se(_0x78a196,_0x1e59d6){if(!_0x78a196['_isDataLoaded']||!_0x1e59d6['_isDataLoaded'])return!0x1;const _0x3cd3e2=new Set(Object['keys'](_0x78a196['attributes'])),_0x4f93d9=new Set(Object['keys'](_0x1e59d6['attributes']));if(_0x3cd3e2['delete']('groupId'),_0x4f93d9['delete']('groupId'),0x0==_0x3cd3e2['size']&&0x0==_0x4f93d9['size'])return!0x0;if(_0x3cd3e2['size']!=_0x4f93d9['size'])return!0x1;const _0x42842c={..._0x78a196['attributes']},_0x115ffe={..._0x1e59d6['attributes']};return delete _0x42842c['groupId'],delete _0x115ffe['groupId'],JSON['stringify'](_0x42842c)==JSON['stringify'](_0x115ffe);}function oe(_0x5c7258,_0x4a5b5e){const _0x38a372=re(_0x5c7258['attributes']),_0x8228c8=re(_0x4a5b5e);if(!_0x5c7258['_isDataLoaded'])return!0x1;for(const _0x4aee1c of Object['keys'](_0x8228c8))if(!_0x537817(_0x38a372[_0x4aee1c],_0x8228c8[_0x4aee1c]))return!0x1;return!0x0;}function re(_0x59c6d9){const _0xd5d9f0=Object['assign']({},_0x59c6d9);return delete _0xd5d9f0['skipNestingCheck'],delete _0xd5d9f0['tablePasteChainId'],_0xd5d9f0;}function ae(_0x3b881c){return _0x3b881c['split']('|')[0x0];}function ce(_0x432d0b,_0x1c83eb){for(const [_0x28803d,_0x17690a]of _0x432d0b['markers']){const _0x4c7982=_0x5b8305['_createFromRanges'](_0x17690a['getTransformedByOperation'](_0x1c83eb));_0x432d0b['markers']['set'](_0x28803d,_0x4c7982);}}class xe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3ac295(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x24950c,_0x522547,_0x277d1f,_0x17f367){super(),this['model']=_0x522547,this['view']=_0x277d1f,this['commentThreadController']=_0x17f367,this['_editor']=_0x24950c,this['_acceptCommand']=_0x24950c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x24950c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x382a7b,_0x517861)=>_0x382a7b||_0x517861),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1062ed=>_0x1062ed&&this['_editor']['model']['canEditAt'](_0x522547['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa1061b=>_0xa1061b&&this['_editor']['model']['canEditAt'](_0x522547['getRanges']())),this['_pendingAction']=null,_0x277d1f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x277d1f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x277d1f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x277d1f,'change:isDirty',()=>{_0x277d1f['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 _0x356ec8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x356ec8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4df321{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x115d9d,_0x3345ce,_0x21b44e,_0x18933f){super(_0x115d9d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5dd30a(_0x115d9d,o(_0x115d9d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3345ce['authoredAt']),this['bind']('authoredAt')['to'](_0x3345ce),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',_0x3345ce,'authoredAt',this,'descriptionParts',(_0x49e4fd,_0x4e19c5,_0x1b200a)=>{const _0x1eab13=_0x1b200a['map'](_0x147906=>ls(_0x147906['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x49e4fd-0x1,_0x3345ce['author']['name'],_0x4e19c5?_0x18933f['formatDateTime'](_0x4e19c5):'',new DOMParser()['parseFromString'](_0x1eab13,'text/html')['body']['textContent']]);}),this['focusables']=new _0x44595e(),this['focusTracker']=new _0x532182(),this['keystrokes']=new _0x44c976(),this['focusCycler']=new _0x4734ea({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x30f293=>_0x30f293['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3345ce,this['_localUser']=_0x21b44e,this['_config']=_0x18933f,_0x18933f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x47b40c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2d2d0f}=this['_config'];this['commentsListView']=new _0x2d2d0f(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',_0x176573=>_0x176573+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x74b26c,_0x45c421)=>_0x74b26c||!!_0x45c421);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x392e4b}=this['_config'],_0x34bc83=new _0x392e4b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xb3b033=_0x34bc83['commentInputView'];return _0x34bc83['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xb3b033,'value',(_0x320da3,_0x278f8e,_0x5d5e69)=>!!_0x5d5e69||_0x320da3&&!_0x278f8e),_0xb3b033['on']('submit',(_0x20618c,_0x361db4)=>{this['fire']('addComment',_0x361db4),_0xb3b033['editor']['setData']('');}),_0xb3b033['on']('cancel',()=>this['focus']()),_0xb3b033['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x34bc83;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x546eb0,_0x4358d3,_0x356078,_0x3662b4){super(_0x546eb0,_0x4358d3,_0x356078,_0x3662b4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d058c=>_0x2d058c&&_0x2d058c[0x0]?_0x2d058c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x185830,_0x315682)=>{let _0x5a628f='';for(const _0x421013 of _0x185830)_0x5a628f+='<p>'+ls(_0x421013['content'],_0x421013['color'])+'</p>';return _0x315682?_0x5a628f:_0x8ed697(_0x5a628f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3662b4['SuggestionView'](_0x546eb0,_0x4358d3,{'formatDateTime':_0x3662b4['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 _0x4c24bc=this['bindTemplate'],_0x4fbb32=[this['suggestionView']];return this['commentsListView']&&_0x4fbb32['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4fbb32['push'](this['commentThreadInputView']),_0x4fbb32['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4c24bc['if']('isActive','ck-suggestion-wrapper--active'),_0x4c24bc['to']('type',_0x46b997=>'ck-suggestion-'+_0x46b997),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':_0x4c24bc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4fbb32};}['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 Ee extends _0x4df321{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x18601f,_0x39c5f5,_0x3082f5){super(_0x18601f),this['_model']=_0x39c5f5,this['_config']=_0x3082f5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x39c5f5),this['acceptButton']=this['_createButton'](o(_0x18601f,'Accept\x20suggestion'),_0x12b8af,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x18601f,'Discard\x20suggestion'),_0x56632e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xeb610e(_0x18601f,_0x39c5f5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x44595e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x532182(),this['keystrokes']=new _0x44c976(),this['focusCycler']=new _0x4734ea({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x53a729=>_0x53a729['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3ca564=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3ca564['innerHTML']=this['description'],this['on']('change:description',(_0x2b28d5,_0x423332,_0xce9471)=>{_0x3ca564['innerHTML']=_0xce9471;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x570217=this['bindTemplate'],_0x8d1b5d=[{'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':_0x570217['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x570217['to']('authoredAt',_0x53a6fc=>this['_config']['formatDateTime'](_0x53a6fc))}]}]},{'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']&&_0x8d1b5d['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':_0x8d1b5d}]};}['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'](_0x4c1d3e,_0x3b5fdd,_0x21f182,_0x459c1d,_0x409a06){const _0x3ca225=new _0x5bbb9a(this['locale']);return _0x3ca225['set']({'label':_0x4c1d3e,'icon':_0x3b5fdd,'tooltip':!0x0,'tooltipPosition':_0x409a06}),_0x3ca225['extendTemplate']({'attributes':{'class':_0x21f182}}),_0x3ca225['on']('execute',()=>{this['fire'](_0x459c1d,this['_model']['id']);}),_0x3ca225;}['_setupKeyboardNavigation'](){const _0x597398=this['element'];this['keystrokes']['listenTo'](_0x597398);for(const _0x48c047 of this['focusables'])this['focusTracker']['add'](_0x48c047['element']),this['keystrokes']['listenTo'](_0x48c047['element']);this['keystrokes']['set']('enter',(_0x8e5231,_0x1b00fb)=>{_0x597398===_0x8e5231['target']&&(this['focusCycler']['focusFirst'](),_0x1b00fb());}),this['keystrokes']['set']('esc',(_0x465504,_0x4c16df)=>{_0x597398!==_0x465504['target']&&(this['focus'](),_0x4c16df());});}}class u extends _0x438b1d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x29a3ab,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x358674){super(_0x358674),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f6be3=this['editor']['config'];_0x1f6be3['define']('trackChanges.SuggestionThreadView',Ae),_0x1f6be3['define']('trackChanges.SuggestionView',Ee),_0x1f6be3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f6be3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x57a01b,_0x44957e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1ab4be,_0x137fcf]of this['_handleControllerBuffer']){const _0x43fe84=this['_suggestionToController']['has'](_0x1ab4be);_0x43fe84||_0x137fcf?_0x43fe84&&_0x137fcf&&this['_destroyController'](_0x1ab4be):this['_initializeController'](_0x1ab4be);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x57a01b,_0x44957e);}['init'](){const _0x45b0de=this['editor'],_0x5bce10=_0x45b0de['plugins']['get']('TrackChangesEditing'),_0x5ae83a=_0x45b0de['plugins']['get']('Annotations'),_0x200872=_0x45b0de['plugins']['get']('EditorAnnotations'),_0x5db093=_0x45b0de['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x200872['addSourceCollector'](()=>{const _0x4878cb=[];for(const [_0x15c5b3,_0x138028]of Array['from'](this['_suggestionToController'])){const _0x357ae5=_0x15c5b3['getAllAdjacentSuggestions'](),_0x5c65b8=[];for(const _0x203b21 of _0x357ae5){if(!_0x203b21['isInContent'])continue;if(_0x203b21['isMultiRange']){_0x5c65b8['push'](..._0x203b21['getRanges']());continue;}const _0x33206c=_0x203b21['getFirstRange']();if(_0x5c65b8['length']>0x0){const _0x492298=_0x5c65b8[0x0]['getJoined'](_0x33206c);if(_0x492298){_0x5c65b8[0x0]=_0x492298;continue;}}_0x5c65b8['push'](_0x33206c);}_0x4878cb['push']([_0x138028['view'],_0x5c65b8]);}return _0x4878cb;}),this['listenTo'](_0x5bce10,'suggestionLoaded',(_0xf2f374,_0x20f3d9)=>{this['listenTo'](_0x20f3d9,'change:previous',(_0x208a83,_0x484391,_0x67ede8,_0x24345e)=>{_0x20f3d9['isInContent']&&(null==_0x67ede8?(this['_updateController'](_0x24345e['head']),this['_handleSuggestionControllerDelayed'](_0x20f3d9,!0x1)):(this['_updateController'](_0x67ede8['head']),null==_0x24345e&&this['_handleSuggestionControllerDelayed'](_0x20f3d9,!0x0)));}),null!==_0x20f3d9['previous']?this['_updateController'](_0x20f3d9['head']):this['_handleSuggestionControllerDelayed'](_0x20f3d9,!0x1);}),this['listenTo'](_0x5bce10,'suggestionUnloaded',(_0x4fb7c6,_0xdac7c5,_0x2e0305)=>{this['stopListening'](_0xdac7c5,'change:previous'),this['_handleControllerBuffer']['delete'](_0xdac7c5),this['_suggestionToController']['has'](_0xdac7c5)&&this['_destroyController'](_0xdac7c5),_0x2e0305&&this['_updateController'](_0x2e0305['head']);}),this['listenTo'](_0x5bce10,'suggestionChanged',(_0x51e60f,_0x438593)=>{this['_updateController'](_0x438593);}),this['listenTo'](_0x5ae83a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5db093,'addComment',(_0x2ebdf6,{threadId:_0x1dfe9c,isFromAdapter:_0x2787e1})=>{if(_0x2787e1||!_0x5bce10['hasSuggestion'](_0x1dfe9c))return;const _0x82e42e=_0x5bce10['getSuggestion'](_0x1dfe9c);this['_suggestionToController']['get'](_0x82e42e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xfe2912=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12a93e;for(const _0x4f1661 in _0xfe2912){const _0xc506c2=_0x4f1661,_0x331ba4=_0xfe2912[_0xc506c2];if('trackChangesLicenseKeyValid'==_0x331ba4||'trackChangesLicenseKeyInvalid'==_0x331ba4||'trackChangesLicenseKeyExpired'==_0x331ba4||'trackChangesLicenseKeyDomainLimit'==_0x331ba4||'trackChangesLicenseKeyNotAllowed'==_0x331ba4||'trackChangesLicenseKeyEvaluationLimit'==_0x331ba4||'trackChangesLicenseKeyTrialLimit'==_0x331ba4||'trackChangesLicenseKeyUsageLimit'==_0x331ba4){delete _0xfe2912[_0xc506c2],_0x12a93e=_0x331ba4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x12a93e&&_0xfe2912['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x12a93e&&_0xfe2912['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x12a93e&&_0xfe2912['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x12a93e&&_0xfe2912['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x12a93e&&_0xfe2912['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x12a93e&&_0xfe2912['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x12a93e&&_0xfe2912['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x50d96b){const _0x3de6be=this['_suggestionToController']['get'](_0x50d96b);if(!_0x3de6be)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3de6be['view'])||null;}['getSuggestionForAnnotation'](_0x284559){const _0x51ea35=this['_viewToController']['get'](_0x284559['innerView']);return _0x51ea35?_0x51ea35['model']:null;}['_refreshActiveMarkers'](){const _0x4e7377=this['editor']['plugins']['get']('Annotations'),_0x3d3ece=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2109be=Array['from'](_0x4e7377['activeAnnotations'],_0x2c6a5d=>_0x2c6a5d['innerView'])['filter'](_0x5bd6d1=>this['_viewToController']['has'](_0x5bd6d1)),_0x59aa07=[];for(const _0x26a619 of _0x2109be){const _0x1475e9=this['_viewToController']['get'](_0x26a619)['model']['getAllAdjacentSuggestions']();_0x59aa07['push'](..._0x1475e9['reduce']((_0xe77144,_0x1a3659)=>[..._0xe77144,..._0x1a3659['getMarkerNames']()],[]));}_0x3d3ece['activeMarkers']=_0x59aa07;}['_addUIComponentsToFactory'](){const _0x1ef19b=this['editor'],_0x39a3a2=_0x1ef19b['locale'],_0x5453d3=o(_0x39a3a2,'Track\x20changes'),_0x129f43=new _0x4fc936([{'type':'switchbutton','model':new _0x3100f4({'withText':!0x0,'isToggleable':!0x0,'label':_0x5453d3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3100f4({'withText':!0x0,'label':o(_0x39a3a2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3100f4({'withText':!0x0,'label':o(_0x39a3a2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3100f4({'withText':!0x0,'label':o(_0x39a3a2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3100f4({'withText':!0x0,'label':o(_0x39a3a2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1ef19b['plugins']['has']('TrackChangesPreview')&&_0x129f43['addMany']([{'type':'separator'},{'type':'button','model':new _0x3100f4({'withText':!0x0,'label':o(_0x39a3a2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1b9339 of _0x129f43)if(Ke(_0x1b9339)){const _0x23553f=_0x1ef19b['commands']['get'](_0x1b9339['model']['commandName']);_0x1b9339['model']['bind']('isOn','isEnabled')['to'](_0x23553f,'value','isEnabled');}_0x1ef19b['ui']['componentFactory']['add']('trackChanges',_0x12a473=>this['_createToolbarButton'](_0x12a473,_0x129f43,_0x5453d3)),_0x1ef19b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x218846=>this['_createMenuBarMenu'](_0x218846,_0x129f43,_0x5453d3));}['_createToolbarButton'](_0x3ab73d,_0x5c4083,_0x5d1456){const _0x383521=_0xde8884(_0x3ab73d,_0xf7ebe8),_0x52fa7b=this['editor']['commands']['get']('trackChanges');_0x383521['buttonView']['set']({'tooltip':_0x5d1456,'label':_0x5d1456,'icon':_0x4b3a00}),_0x383521['buttonView']['bind']('isOn')['to'](_0x52fa7b,'value'),_0x383521['buttonView']['on']('execute',()=>{_0x52fa7b['execute'](),this['editor']['editing']['view']['focus']();}),_0x39485b(_0x383521,_0x5c4083,{'role':'menu'});const _0x46866a=[];for(const _0x170214 of _0x5c4083)Ke(_0x170214)&&_0x46866a['push'](this['editor']['commands']['get'](_0x170214['model']['commandName']));const _0x463cb3=_0x383521['buttonView'];return _0x463cb3['actionView']['unbind']('isEnabled'),_0x463cb3['arrowView']['unbind']('isEnabled'),_0x463cb3['actionView']['bind']('isEnabled')['to'](_0x52fa7b,'isEnabled'),_0x463cb3['arrowView']['bind']('isEnabled')['toMany'](_0x46866a,'isEnabled',(..._0x22941e)=>_0x22941e['some'](_0x2c60c9=>_0x2c60c9)),_0x383521['on']('execute',_0x4b043e=>{this['editor']['execute'](_0x4b043e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x383521;}['_createMenuBarMenu'](_0x908a21,_0x13074e,_0x86c9b8){const _0x4d9d1b=new _0x6a265f(_0x908a21),_0x26cc70=this['editor']['commands']['get']('trackChanges');_0x4d9d1b['buttonView']['set']({'label':_0x86c9b8,'icon':_0x4b3a00});const _0xb1fd18=new _0x136d71(_0x908a21);for(const _0x2b6190 of _0x13074e){if('separator'==_0x2b6190['type']){_0xb1fd18['items']['add'](new _0x3562c7(_0x908a21));continue;}const _0x6ea8cd=new _0x33c443(_0x908a21,_0x4d9d1b),_0x3f0c7d=new _0x267f47(_0x908a21),_0x440fbb=_0x2b6190['model'];_0x3f0c7d['bind'](...Object['keys'](_0x440fbb))['to'](_0x440fbb),_0x3f0c7d['delegate']('execute')['to'](_0x4d9d1b),_0x3f0c7d['on']('execute',()=>{this['editor']['execute'](_0x440fbb['commandName']),this['editor']['editing']['view']['focus']();}),_0x6ea8cd['children']['add'](_0x3f0c7d),_0xb1fd18['items']['add'](_0x6ea8cd);}return _0x4d9d1b['bind']('isEnabled')['to'](_0x26cc70,'isEnabled'),_0x4d9d1b['panelView']['children']['add'](_0xb1fd18),_0x4d9d1b;}['_initializeController'](_0x34d658){const _0x286f3f=this['editor'],_0x5e3f67=_0x286f3f['config'],_0x5d1ee3=_0x286f3f['plugins']['get']('Annotations'),_0x489661=_0x286f3f['plugins']['get']('CommentsRepository'),_0x4bb85c=_0x286f3f['plugins']['get']('EditorAnnotations'),_0x408489=_0x286f3f['plugins']['get'](_0x29a3ab)['me'],_0x29e423=_0x5e3f67['get']('trackChanges')['SuggestionThreadView'],_0x2900fd=_0x5e3f67['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xcb1f5d,CommentThreadInputView:_0x24f2d0}=_0x286f3f['plugins']['get']('CommentsUI');let _0x5194f8,_0x583a3b,_0x510581;this['_annotationViews']['has'](_0x34d658['id'])?(_0x583a3b=this['_annotationViews']['get'](_0x34d658['id']),_0x5194f8=_0x583a3b['mainView']):(_0x5194f8=new _0x29e423(_0x286f3f['locale'],_0x34d658,_0x408489,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5e3f67['get']('comments.editorConfig'),'licenseKey':_0x5e3f67['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5e3f67['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5e3f67['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5e3f67['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4abe49(_0x5e3f67['get']('locale'),_0x286f3f['locale']),'CommentView':_0x5e3f67['get']('comments')['CommentView'],'CommentsListView':_0xcb1f5d,'CommentThreadInputView':_0x24f2d0,'SuggestionView':_0x2900fd}),_0x5194f8['suggestionView']['acceptButton']['on']('execute',()=>{_0x286f3f['editing']['view']['focus']();}),_0x5194f8['suggestionView']['discardButton']['on']('execute',()=>{_0x286f3f['editing']['view']['focus']();}),_0x583a3b=_0x5d1ee3['createAnnotationView'](this['editor']['locale'],_0x5194f8),_0x583a3b['bind']('isDirty')['to'](_0x5194f8,'isDirty'),_0x583a3b['bind']('length')['to'](_0x5194f8),_0x583a3b['bind']('type')['to'](_0x5194f8,'type',_0x4ecaee=>'suggestion-'+_0x4ecaee),_0x5194f8['on']('escape',()=>{_0x510581['fire']('escape');}),this['_annotationViews']['set'](_0x34d658['id'],_0x583a3b));const _0x258a64=_0x489661['createCommentThreadController'](_0x34d658['commentThread'],_0x5194f8),_0x48069=new xe(_0x286f3f,_0x34d658,_0x5194f8,_0x258a64),_0x111e7e=_0x34d658['getAllAdjacentSuggestions']()['filter'](_0x239561=>_0x239561['isInContent']);_0x5194f8['descriptionParts']=_0x286f3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x111e7e),this['_suggestionToController']['set'](_0x34d658,_0x48069),this['_viewToController']['set'](_0x5194f8,_0x48069);const _0x539a1a=()=>{const _0x22ee28=[],_0x28c410=_0x34d658['getAllAdjacentSuggestions']()['filter'](_0xe01c0f=>_0xe01c0f['isInContent']);for(const _0xf00d3e of _0x28c410)_0x22ee28['push'](..._0xf00d3e['getMarkers']());return _0x2ef4eb(_0x286f3f['editing'],_0x22ee28);};_0x510581=_0x5d1ee3['createAnnotation']({'view':_0x583a3b,'target':_0x539a1a,'type':()=>'suggestion-'+_0x48069['view']['type'],'isVisible':!!_0x539a1a()}),_0x489661['_bindAnnotationToEditors'](_0x5194f8,_0x510581),_0x5d1ee3['add'](_0x510581),_0x4bb85c['registerAnnotation'](_0x510581);}['_destroyController'](_0x159637){const _0x3215dc=this['editor']['plugins']['get']('CommentsRepository'),_0x2862a5=this['editor']['plugins']['get']('Annotations'),_0x531ede=this['_suggestionToController']['get'](_0x159637),_0x1a691e=_0x531ede['view'],_0x40781e=_0x2862a5['getByInnerView'](_0x1a691e);_0x3215dc['_unbindEditors'](_0x1a691e),_0x40781e&&_0x2862a5['remove'](_0x40781e),this['_suggestionToController']['delete'](_0x159637),this['_viewToController']['delete'](_0x1a691e),_0x531ede['destroy']();}['_updateController'](_0x195881){if(!_0x195881['isInContent']||!this['_suggestionToController']['has'](_0x195881))return;const _0xdd7412=this['editor']['plugins']['get']('TrackChangesEditing'),_0x289be5=this['_suggestionToController']['get'](_0x195881),_0x203ee8=_0x195881['getAllAdjacentSuggestions']();_0x289be5['view']['descriptionParts']=_0xdd7412['descriptionFactory']['getDescriptions'](_0x203ee8);}['destroy'](){for(const _0x7e34ae of this['_suggestionToController']['keys']())this['_destroyController'](_0x7e34ae);for(const _0x37a6b5 of this['_annotationViews']['values']())_0x37a6b5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x58d8c8){return'model'in _0x58d8c8;}class Xe extends _0x438b1d{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x20330c){this['editor']['plugins']['get'](d)['adapter']=_0x20330c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x15c823){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x15c823);}['getSuggestions']({skipNotAttached:_0x3e32f2=!0x1,toJSON:_0x62a189=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3e32f2,'toJSON':_0x62a189});}['getSuggestion'](_0x482851){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x482851);}}const p=['Pagination'];class ue extends _0x438b1d{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x31a88d=this['editor'];if(_0x31a88d['config']['define']('trackChangesData.editorCreator',_0x35bb5e=>{const _0x224a3a=_0x31a88d['model']['document']['getRootNames']()['reduce']((_0x5ae16c,_0x8f6d36)=>(_0x5ae16c[_0x8f6d36]='',_0x5ae16c),{});return _0x31a88d['constructor']['create'](_0x224a3a,_0x35bb5e);}),'function'!=typeof _0x31a88d['config']['get']('trackChangesData')['editorCreator'])throw new _0x580921('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xceed34){return P(this['editor'],!0x0,_0xceed34);}['getDataWithDiscardedSuggestions'](_0x59106c){return P(this['editor'],!0x1,_0x59106c);}}class Ye extends _0x438b1d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x300d13){function _0x3a2351(_0x14772a){return _0x14772a['map'](_0x3acee4=>String['fromCharCode'](_0x3acee4))['join']('');}super(_0x300d13),this['result']='end',_0x300d13[_0x3a2351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a2351([0x76,0x69,0x65,0x77])][_0x3a2351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a2351([0x61,0x75,0x74,0x6f]),_0x300d13[_0x3a2351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3a2351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a2351([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3a2351([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3a2351([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 Qe(_0x184e65){return void 0x0!==_0x184e65['getRootsAttributes'];}async function P(_0x1c9d67,_0x4b9e29,_0x5ddd82){const _0x467eac=_0x388b8e(_0x1c9d67,p);_0x467eac['plugins']['push'](d,Ye),_0x467eac['rootsAttributes']=Qe(_0x1c9d67)?_0x1c9d67['getRootsAttributes']():void 0x0;const _0xda1b61=document['createDocumentFragment'](),_0x393900=_0x1c9d67['config']['get']('trackChangesData')['editorCreator'],_0x417da3=await _0x393900(_0x467eac,()=>function(_0x3e153c){const _0x2b3b47=document['createElement']('div');return _0x3e153c['appendChild'](_0x2b3b47),_0x2b3b47;}(_0xda1b61));!function(_0x44da4b,_0x1e080d){const _0xdf383a=_0x44da4b['model']['document']['getRootNames']()['reduce']((_0x294e62,_0x2b7b88)=>(_0x294e62[_0x2b7b88]=_0x44da4b['data']['get']({'rootName':_0x2b7b88}),_0x294e62),{}),_0xa24be4=_0x44da4b['plugins']['get']('Users')['users']['map'](_0x472bed=>({'id':_0x472bed['id'],'name':_0x472bed['name']})),_0x1f7220=_0x44da4b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17f538=_0x44da4b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fca98=_0x1e080d['plugins']['get']('Users'),_0x494730=_0x1e080d['plugins']['get']('TrackChangesEditing'),_0xbb3f0c=_0x1e080d['plugins']['get']('CommentsRepository');for(const _0x4aa145 of _0xbb3f0c['getCommentThreads']())_0x4aa145['remove']();for(const _0x1940ab of _0xa24be4)_0x2fca98['getUser'](_0x1940ab['id'])||_0x2fca98['addUser'](_0x1940ab);_0x2fca98['me']||_0x2fca98['useAnonymousUser']();for(const _0x1cab0d of _0x17f538)_0xbb3f0c['addCommentThread'](_0x1cab0d);for(const _0x5c13a0 of _0x1f7220)_0x494730['addSuggestionData'](_0x5c13a0);_0x1e080d['data']['set'](_0xdf383a);}(_0x1c9d67,_0x417da3),_0x417da3['execute'](_0x4b9e29?'acceptAllSuggestions':'discardAllSuggestions');const _0xe1ab7a=Qe(_0x417da3)?_0x417da3['getFullData'](_0x5ddd82):_0x417da3['data']['get'](_0x5ddd82);return await _0x417da3['destroy'](),_0xe1ab7a;}class _e extends _0x4df321{['options'];constructor(_0x37ecde,_0x487bfe){super(_0x37ecde),this['options']=_0x487bfe,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'](_0x129028,_0x2c0671){if(!this['element'])return;const _0x17d7e0=[];for(const [_0x3d85d0,_0x3f68a9]of _0x129028){const _0x55e00d=document['createElement']('div');_0x55e00d['setAttribute']('data-ck-root-name',_0x3d85d0),_0x55e00d['className']=_0x3f68a9['classes']+'\x20ck-track-changes-preview__root-container',_0x55e00d['innerHTML']=_0x3f68a9['content'],_0x17d7e0['push'](_0x55e00d);}_0x2c0671(this['element'],_0x17d7e0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x103e31{constructor(_0x11709d){super(_0x11709d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x48cdb2=this['editor'],_0x2b3433=_0x48cdb2['locale'],_0x2dd6e6=_0x48cdb2['plugins']['get']('Dialog');let _0xf188e0;const _0x593e2d=function(_0x4d7b8a){const _0xdad079={};if('editables'in _0x4d7b8a['ui']['view']){for(const [_0x5575ca,_0x458a6f]of Object['entries'](_0x4d7b8a['ui']['view']['editables']))_0xdad079[_0x5575ca]=_0x458a6f['element'];}else _0xdad079[_0x4d7b8a['model']['document']['getRootNames']()[0x0]]=_0x4d7b8a['ui']['view']['editable']['element'];return _0xdad079;}(_0x48cdb2),_0x460110=function(_0x308b2f){let _0x5a60ae=0x0;for(const _0x3be18e of Object['values'](_0x308b2f))_0x5a60ae=Math['max'](_0x5a60ae,_0x3be18e['getBoundingClientRect']()['width']);let _0x1665a0=0x0;for(const _0x4aa42d of Object['values'](_0x308b2f))_0x1665a0+=_0x4aa42d['getBoundingClientRect']()['height'];const _0x4d97d1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x206dc5=Math['min'](_0x1665a0,_0x4d97d1);return{'width':_0x5a60ae,'height':_0x206dc5};}(_0x593e2d);_0x2dd6e6['show']({'id':'finalContentPreview','title':o(_0x2b3433,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x2b3433,{'dialogRects':_0x460110}),'onHide':()=>{_0xf188e0['detachFromDom']();},'onShow':()=>{_0x48cdb2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x581585=>{const _0x2bf414=this['_standarizeRootsData'](_0x581585,_0x48cdb2,_0x593e2d);_0x2dd6e6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2bf414,_0x48cdb2['config']['get']('trackChanges.preview.renderFunction'));}),_0xf188e0=new _0x44694a(_0x2b3433,[_0x2dd6e6['view']]),_0xf188e0['attachToDom'](),_0xf188e0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x48cdb2['once']('destroy',()=>{_0xf188e0['detachFromDom']();});const _0x3f8d5e=_0x2dd6e6['view']['headerView']['class'];_0x2dd6e6['view']['headerView']['class']=_0x3f8d5e?_0x3f8d5e+'\x20ck-reset_all':'ck-reset_all',_0x2dd6e6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2dd6e6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xafb58e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x43048b=_0xafb58e['previewMode'],_0xbadb21={};if('$labels'===_0x43048b){for(const _0x164e8a of _0xafb58e['getMergeFieldsIds']())_0xbadb21[_0x164e8a]=_0xafb58e['getLabel'](_0x164e8a)||_0x164e8a;}else{const _0x4c8280='$defaultValues'===_0x43048b?_0xafb58e['getDefaultValues']():_0xafb58e['getDataSetValues'](_0x43048b,!0x0);for(const _0x4a456f of Object['entries'](_0x4c8280)){const [_0x4d9087,_0xe3326f]=_0x4a456f;_0xbadb21[_0x4d9087]=null!==_0xe3326f?_0xe3326f:_0xafb58e['getLabel'](_0x4d9087)||_0x4d9087;}}return{'mergeFieldsData':_0xbadb21};}['_standarizeRootsData'](_0x9b0983,_0x3a767d,_0x401b78){let _0x3e45bd;if('string'==typeof _0x9b0983){const _0x3d4cff=_0x3a767d['model']['document']['getRootNames']()[0x0];_0x3e45bd={[_0x3d4cff]:_0x9b0983};}else _0x3e45bd=_0x9b0983;const _0x2fe663=this['_fixMediaEmbeds'](_0x3e45bd,_0x3a767d),_0x582689=function(_0x553bbe,_0x58aed8){for(const [_0x23336a,_0x5db64c]of _0x553bbe)_0x5db64c['classes']=_0x58aed8[_0x23336a]['classList']['value']['replace']('ck-focused','');return _0x553bbe;}(this['_sortRoots'](_0x3a767d)['reduce']((_0x192d60,_0x37266a)=>(_0x192d60['push']([_0x37266a,{'content':_0x2fe663[_0x37266a],'classes':''}]),_0x192d60),[]),_0x401b78);return _0x582689;}['_fixMediaEmbeds'](_0x4d842e,_0x4c7a96){if(!_0x4c7a96['plugins']['has']('MediaEmbedEditing'))return _0x4d842e;const _0x4a5cda=_0x4c7a96['plugins']['get']('MediaEmbedEditing');for(const [_0x2812bd,_0x43c4c1]of Object['entries'](_0x4d842e)){const _0x3c20f8=document['createElement']('div');_0x3c20f8['innerHTML']=_0x43c4c1,(_0x3c20f8['querySelectorAll']('figure.media')['forEach'](_0x189987=>{const _0x223cac=_0x189987['querySelector']('oembed');if(_0x223cac){const _0x5bb6de=_0x223cac['getAttribute']('url');if(_0x5bb6de){const _0x261429=_0x4a5cda['registry']['getMediaViewElement'](new _0x41898b(_0x4c7a96['editing']['view']['document']),_0x5bb6de,{'elementName':'','renderForEditingView':!0x0}),_0x1f3152=document['createElement']('div');_0x1f3152['classList']['add']('ck-media__wrapper'),_0x261429['render'](_0x1f3152,_0x4c7a96['editing']['view']['domConverter']),_0x223cac['replaceWith'](_0x1f3152);}}}),_0x4d842e[_0x2812bd]=_0x3c20f8['innerHTML']);}return _0x4d842e;}['_sortRoots'](_0x298c28){if(!function(_0x20c901){return void 0x0!==_0x20c901['getRootsAttributes'];}(_0x298c28))return _0x298c28['model']['document']['getRootNames']();const _0x594abd=[],_0x5a7229=new Map();for(const _0x2d6638 of _0x298c28['model']['document']['getRootNames']()){const _0x729a70=_0x298c28['editing']['view']['getDomRoot'](_0x2d6638)['getClientRects']()['item'](0x0);_0x594abd['push'](_0x2d6638),_0x5a7229['set'](_0x2d6638,_0x729a70);}return _0x594abd['sort']((_0x3ade59,_0x30929a)=>{const _0x838dea=_0x5a7229['get'](_0x3ade59),_0x4f5f6c=_0x5a7229['get'](_0x30929a);return _0x838dea['y']-_0x4f5f6c['y']||_0x838dea['x']-_0x4f5f6c['x'];}),_0x594abd;}}class Ze extends _0x438b1d{static get['requires'](){return[ue,_0xd260a8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c8785){super(_0x5c8785),_0x5c8785['commands']['add']('previewFinalContent',new ge(this['editor'])),_0x5c8785['config']['define']('trackChanges.preview.renderFunction',(_0xae8eed,_0x59f002)=>{for(const _0x2510a9 of _0x59f002)_0xae8eed['appendChild'](_0x2510a9);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};
|