@ckeditor/ckeditor5-collaboration-core 47.3.0-alpha.3 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +13 -13
- package/src/suggestions/integrations/alignment.js +1 -1
- package/src/suggestions/integrations/basicstyles.js +1 -1
- package/src/suggestions/integrations/bookmark.js +1 -1
- package/src/suggestions/integrations/font.js +1 -1
- package/src/suggestions/integrations/highlight.js +1 -1
- package/src/suggestions/integrations/horizontalline.js +1 -1
- package/src/suggestions/integrations/htmlembed.js +1 -1
- package/src/suggestions/integrations/image.js +1 -1
- package/src/suggestions/integrations/indent.js +1 -1
- package/src/suggestions/integrations/lineheight.js +1 -1
- package/src/suggestions/integrations/link.js +1 -1
- package/src/suggestions/integrations/list.js +1 -1
- package/src/suggestions/integrations/listproperties.js +1 -1
- package/src/suggestions/integrations/mediaembed.js +1 -1
- package/src/suggestions/integrations/multilevellist.js +1 -1
- package/src/suggestions/integrations/shiftenter.js +1 -1
- package/src/suggestions/integrations/style.js +1 -1
- package/src/suggestions/integrations/table.js +1 -1
- package/src/suggestions/integrations/tableheadings.js +1 -1
- package/src/suggestions/integrations/tablelayout.js +1 -1
- package/src/suggestions/integrations/tableproperties.js +1 -1
- package/src/suggestions/integrations/uploadcare.js +1 -1
- package/src/suggestions/suggestionsconversion.js +1 -1
- package/src/suggestions/view/ariadescriptionview.js +1 -1
- package/src/suggestions/view/latefocusbuttonview.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/setupthreadkeyboardnavigation.js +1 -1
- package/src/utils/trim-html.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x4d4aa4,Editor as _0x269817,Plugin as _0x173d6c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x174be2,Collection as _0x29a6be,uid as _0x3293c0,toArray as jt,first as _0x21e67c,FocusTracker as _0x150852,KeystrokeHandler as _0x45b18e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x1983b2,IconView as _t,ButtonView as _0x1c7a18,DropdownButtonView as _0x23343c,FocusCycler as _0x1d0755,isViewWithFocusCycler as _0x2c6c77}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as pt,IconCheck as _0x5150e0,IconCancel as _0x573f5b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as bt,toWidget as _0x49eaac}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as _0x2712e8}from'luxon';import{InsertOperation as _0x42c930,MoveOperation as _0xfac5c3,ModelPosition as _0x3e2e9c,ModelRange as _0x423d93,MarkerOperation as _0x2d2db8,MergeOperation as _0x36aa7a,SplitOperation as _0x4192f1,RenameOperation as _0x140e14,AttributeOperation as _0x351bc6,ModelTreeWalker as _0x1125a0,ModelText as _0x4717b5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x10ae8a}from'diff';class C extends _0x4d4aa4{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2d4605,_0x2740fa){let _0x4a8285;if(_0x2740fa||(_0x2740fa=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x2740fa?_0x4a8285=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x4a8285=this['context']['editors']['find'](_0x529c37=>_0x529c37['config']['get']('collaboration.channelId')==_0x2740fa)),!_0x4a8285)throw new _0x174be2('permissions-set-permissions-invalid-channel-id',null);const _0x58a2a4=_0x4a8285['plugins'],_0x3bd72f=_0x58a2a4['has']('CommentsRepository')?_0x58a2a4['get']('CommentsRepository'):void 0x0,_0x1e3417=_0x58a2a4['has']('CommentsOnly')&&_0x58a2a4['get']('CommentsOnly'),_0x51c2c3=_0x2d4605['includes']('document:write'),_0x234701=_0x2d4605['includes']('comment:modify_all'),_0x232d62=_0x2d4605['includes']('comment:admin'),_0x33f3fa=_0x2d4605['includes']('comment:write'),_0x3d057a=_0x33f3fa||_0x232d62,_0x37aaff=_0x3d057a||_0x234701,_0x209dd9=_0x51c2c3||_0x3d057a;(_0x1e3417&&(_0x1e3417['isEnabled']=!_0x51c2c3&&_0x37aaff),_0x4a8285 instanceof _0x269817)&&(!(_0x51c2c3||_0x37aaff&&_0x3bd72f)?_0x4a8285['enableReadOnlyMode']('no-permissions'):_0x4a8285['disableReadOnlyMode']('no-permissions'));if(_0x3bd72f){_0x3bd72f['setPermissions']({'admin':_0x232d62,'modifyAll':_0x234701,'write':_0x33f3fa,'resolve':_0x209dd9},_0x2740fa);const _0x319057=_0x4a8285 instanceof _0x269817&&_0x4a8285['commands']['get']('addCommentThread');_0x319057&&(_0x3d057a?_0x319057['clearForceDisabled']('noPermissions'):_0x319057['forceDisabled']('noPermissions'));}}}function U(_0x56f7c0,_0xe80377){const t=_0x56f7c0['t'];switch(_0xe80377){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class yt extends _0x4d4aa4{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x35f0ab){super(_0x35f0ab),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x29a6be(),this['_locale']=_0x35f0ab['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x3b6a62,name:_0x560929,..._0x31def1}){if(!_0x3b6a62||'string'!=typeof _0x3b6a62)throw new _0x174be2('users-add-invalid-id');if(this['users']['has'](_0x3b6a62))throw new _0x174be2('users-add-duplicated-id',null,{'id':_0x3b6a62});const _0x3ef159=this['context']['config']['get']('users.getInitialsCallback'),_0x3de6ff={..._0x31def1,'id':_0x3b6a62,'name':A(this['_locale'],_0x560929),'color':this['_getNextColor']()};_0x3de6ff['name']=A(this['_locale'],_0x3de6ff['name']);const _0x1d0fca=new wt(_0x3de6ff,_0x3ef159);return this['users']['add'](_0x1d0fca),_0x1d0fca;}['getUser'](_0x686a29){return this['users']['get'](_0x686a29);}['useAnonymousUser'](){const _0x2762f6=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2762f6);}['defineMe'](_0x1c1f1c){if(this['_myId'])throw new _0x174be2('users-me-already-defined',null);const _0x4bf28d=this['getUser'](_0x1c1f1c);if(!_0x4bf28d)throw new _0x174be2('users-me-missing-user',null);this['_myId']=_0x1c1f1c,_0x4bf28d['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x106abd=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x106abd&&(this['_lastColor']=0x0),new vt(this['_lastColor']++);}['_addAnonymousUser'](){const _0x253e58=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x253e58,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class wt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x45fea2,_0x134b7d){this['id']=_0x45fea2['id'],this['color']=_0x45fea2['color'],this['name']=_0x45fea2['name'],this['initials']=_0x134b7d?_0x134b7d(this['name']):this['_computeInitials'](),this['avatar']=_0x45fea2['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0xaf7529=this['name']['split']('\x20')['filter'](_0x8d8ddd=>/^[\p{Letter}]/u['test'](_0x8d8ddd));return 0x1===_0xaf7529['length']?this['_getInitial'](_0xaf7529[0x0]):0x0===_0xaf7529['length']?this['_getInitial'](this['name']):this['_getInitial'](_0xaf7529[0x0])+this['_getInitial'](_0xaf7529[_0xaf7529['length']-0x1]);}['_getInitial'](_0x3f0d6f){return String['fromCodePoint'](_0x3f0d6f['codePointAt'](0x0))['toUpperCase']();}}function A(_0x1a1927,_0x4997b4=''){return''==(_0x4997b4=_0x4997b4['trim']())?U(_0x1a1927,'Anonymous'):_0x4997b4;}class vt{['_id'];constructor(_0x50ba6e){this['_id']=_0x50ba6e;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class Ct extends _0x1983b2{['name'];['notificationView'];constructor(_0x20490a,_0x58146f,_0x531c15){super(_0x20490a),this['name']=_0x58146f['name'],this['notificationView']=null;const _0x1353ab=['ck','ck-user'],_0x2b34a5=['ck','ck-user__img'];if(_0x58146f['isAnonymous']&&_0x2b34a5['push']('ck-user__anonymous'),!_0x58146f['isAnonymous']&&_0x58146f['isMe']&&_0x1353ab['push']('ck-user_me'),_0x58146f['avatar']&&_0x2b34a5['push']('ck-user__avatar'),_0x531c15){const _0x14bb41=new _t();_0x14bb41['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x14bb41['content']=pt,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x531c15},'children':[_0x14bb41]};}const _0x25f364=[{'tag':'div','attributes':{'class':_0x2b34a5,'style':{'background-image':_0x58146f['avatar']?'url(\x27'+_0x58146f['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x58146f['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x58146f['name']},'children':[{'text':_0x58146f['initials']}]}];this['notificationView']&&_0x25f364['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x1353ab,'data-user-id':_0x58146f['id']},'children':_0x25f364});}}class xt extends _0x1983b2{['id'];constructor(_0x2c3f76,_0x3ac935){super(_0x2c3f76),this['id']='ck-aria-description-'+_0x3293c0(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3ac935}]});}}class It extends _0x1c7a18{['render'](){super['render'](),se(this);}}class St extends _0x23343c{['render'](){super['render'](),se(this);}}function se(_0x110124){_0x110124['listenTo'](_0x110124['element'],'mousedown',(_0x554708,_0x160d43)=>{_0x160d43['stopPropagation'](),_0x160d43['preventDefault']();}),_0x110124['listenTo'](_0x110124['element'],'mouseup',()=>{_0x110124['element']['focus']();});}function J(_0x1466d6){const _0x1918e9=_0x1466d6['split'](':');return{'group':_0x1918e9[0x0],'type':_0x1918e9[0x1],'subType':_0x1918e9['length']>=0x5?_0x1918e9[0x2]:null,'id':_0x1918e9['length']<0x5?_0x1918e9[0x2]:_0x1918e9[0x3],'authorId':_0x1918e9['length']<0x5?_0x1918e9[0x3]:_0x1918e9[0x4],'markerCount':0x6==_0x1918e9['length']?_0x1918e9[0x5]:null};}function Et(_0x2650ab,_0x317287){const _0x2078eb=_0x2650ab['end']['nodeBefore'];if(_0x2078eb&&_0x2078eb['is']('element')&&_0x317287['schema']['isBlock'](_0x2078eb)&&!_0x317287['schema']['isObject'](_0x2078eb)){const _0x1240e1=_0x317287['createPositionAt'](_0x2078eb,'end');return _0x317287['createRange'](_0x2650ab['start'],_0x1240e1);}return _0x2650ab;}class L extends _0x173d6c{['afterInit'](){const _0x1e6182=this['editor'];if(!_0x1e6182['plugins']['has']('AlignmentEditing'))return;_0x1e6182['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Q extends _0x173d6c{['afterInit'](){const _0x1a4422=this['editor'],_0x13f391=_0x1a4422['plugins']['get']('SuggestionsConversion');for(const _0x3b0483 of ii){if(!_0x1a4422['plugins']['has'](_0x3b0483))continue;const _0x25d781=_0x3b0483['slice'](0x0,-0x7)['toLowerCase']();_0x13f391['registerInlineAttribute'](_0x25d781);}}}class X extends _0x173d6c{['afterInit'](){const _0x35a4e4=this['editor'],_0xb28ee6=_0x35a4e4['plugins']['get']('SuggestionsConversion');_0x35a4e4['plugins']['has']('BookmarkEditing')&&_0xb28ee6['registerBlockAttribute']('bookmarkId');}}const oo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x173d6c{['afterInit'](){const _0x5c093a=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x26a7cf,commandName:_0x3937e0}of oo)this['editor']['plugins']['has'](_0x26a7cf)&&_0x5c093a['registerInlineAttribute'](_0x3937e0);}}class Z extends _0x173d6c{['afterInit'](){const _0x413e16=this['editor'];if(!_0x413e16['plugins']['has']('HighlightEditing'))return;_0x413e16['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class tt extends _0x173d6c{['afterInit'](){const _0x4804e9=this['editor'];if(!_0x4804e9['plugins']['has']('HtmlEmbed'))return;_0x4804e9['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class it extends _0x173d6c{['afterInit'](){const _0x521b08=this['editor'];if(!_0x521b08['plugins']['has']('ImageEditing'))return;const _0x48e030=_0x521b08['plugins']['get']('SuggestionsConversion');_0x48e030['registerBlockAttribute']('src'),_0x521b08['plugins']['has']('ImageResize')&&_0x48e030['registerBlockAttribute']('resizedWidth'),_0x521b08['plugins']['has']('ImageTextAlternativeEditing')&&_0x48e030['registerBlockAttribute']('alt'),_0x521b08['plugins']['has']('PictureEditing')&&_0x48e030['registerBlockAttribute']('sources'),_0x521b08['plugins']['has']('ImageSizeAttributes')&&(_0x48e030['registerBlockAttribute']('width'),_0x48e030['registerBlockAttribute']('height'));}}class rt extends _0x173d6c{['afterInit'](){const _0x3b400f=this['editor'],_0xb9fe5d=_0x3b400f['plugins']['get']('SuggestionsConversion');_0x3b400f['plugins']['has']('IndentBlock')&&_0xb9fe5d['registerBlockAttribute']('blockIndent');}}class et extends _0x173d6c{['afterInit'](){const _0x2db9a2=this['editor'];if(!_0x2db9a2['plugins']['has']('LineHeight'))return;_0x2db9a2['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class st extends _0x173d6c{['afterInit'](){const _0x138f39=this['editor'];if(!_0x138f39['plugins']['has']('LinkEditing'))return;const _0x137ec1=_0x138f39['plugins']['get']('SuggestionsConversion'),_0x51ac5b=_0x138f39['commands']['get']('link');_0x137ec1['registerInlineAttribute']('linkHref');for(const _0x15b001 of _0x51ac5b['manualDecorators'])_0x137ec1['registerInlineAttribute'](_0x15b001['id']);}}class ot extends _0x173d6c{['afterInit'](){const _0x2b2def=this['editor'];if(!_0x2b2def['plugins']['has']('ListEditing'))return;const _0x4d3a60=_0x2b2def['plugins']['get']('SuggestionsConversion'),_0x4de17c=_0x2b2def['plugins']['has']('TodoListEditing');_0x4d3a60['registerBlockAttribute']('listItemId'),_0x4d3a60['registerBlockAttribute']('listType'),_0x4d3a60['registerBlockAttribute']('listIndent'),_0x4de17c&&_0x4d3a60['registerBlockAttribute']('todoListChecked');}}class nt extends _0x173d6c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1194d6=this['editor']['config']['get']('list.properties'),_0x5d0b4f=this['editor']['plugins']['get']('SuggestionsConversion');_0x1194d6['styles']&&_0x5d0b4f['registerBlockAttribute']('listStyle'),_0x1194d6['reversed']&&_0x5d0b4f['registerBlockAttribute']('listReversed'),_0x1194d6['startIndex']&&_0x5d0b4f['registerBlockAttribute']('listStart');}}class at extends _0x173d6c{['afterInit'](){const _0x56f4ec=this['editor'],_0x110b7f=_0x56f4ec['plugins']['get']('SuggestionsConversion');_0x56f4ec['plugins']['has']('MultiLevelList')&&_0x110b7f['registerBlockAttribute']('listMarkerStyle');}}class gt extends _0x173d6c{['afterInit'](){const _0x3b4cc2=this['editor'];if(!_0x3b4cc2['plugins']['has']('Style')||!_0x3b4cc2['plugins']['has']('DataSchema')||!_0x3b4cc2['config']['get']('style.definitions'))return;const _0x3bc7bf=_0x3b4cc2['plugins']['get']('SuggestionsConversion'),_0x68b24d=_0x3b4cc2['config']['get']('style.definitions'),_0x2e5a3b=_0x3b4cc2['plugins']['get']('GeneralHtmlSupport'),_0x1f8cbf=_0x3b4cc2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b4cc2['plugins']['get']('DataSchema'),_0x68b24d),_0x2be2ad=new Set();for(const _0x2c3319 of _0x1f8cbf['block']){const _0x38140a=_0x2e5a3b['getGhsAttributeNameForElement'](_0x2c3319['element']);_0x2be2ad['add'](_0x38140a);}const _0x4834f3=new Set();for(const _0x36b1b4 of _0x1f8cbf['inline']){const _0x464c27=_0x2e5a3b['getGhsAttributeNameForElement'](_0x36b1b4['element']);_0x4834f3['add'](_0x464c27);for(const _0x25a9f5 of _0x36b1b4['ghsAttributes'])_0x4834f3['add'](_0x25a9f5);}for(const _0x24475a of _0x2be2ad)_0x3bc7bf['registerBlockAttribute'](_0x24475a);for(const _0x6a8bfb of _0x4834f3)_0x3bc7bf['registerInlineAttribute'](_0x6a8bfb);}}class ut extends _0x173d6c{['afterInit'](){const _0x5afc55=this['editor'];if(!_0x5afc55['plugins']['has']('TableEditing'))return;const _0x1ae13e=_0x5afc55['plugins']['get']('SuggestionsConversion');_0x1ae13e['registerBlockAttribute']('headingRows'),_0x1ae13e['registerBlockAttribute']('headingColumns');}}class mt extends _0x173d6c{['afterInit'](){const _0x3e9881=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x1cd00a=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x44ef10 of _0x1cd00a)_0x3e9881['registerBlockAttribute'](_0x44ef10);}}class ct extends _0x173d6c{['afterInit'](){const _0x38a0a0=this['editor'],_0x56d600=_0x38a0a0['plugins']['get']('SuggestionsConversion');_0x38a0a0['plugins']['has']('TableLayout')&&_0x56d600['registerBlockAttribute']('tableType');}}class dt extends _0x173d6c{['afterInit'](){const _0x176799=this['editor'],_0x5b0ae3=this['editor']['plugins']['get']('SuggestionsConversion');_0x176799['plugins']['has']('Uploadcare')&&_0x176799['plugins']['has']('UploadcareImageEdit')&&_0x5b0ae3['registerBlockAttribute']('uploadcareImageId');}}class ht extends _0x173d6c{['afterInit'](){const _0x3fb8b2=this['editor'];if(!_0x3fb8b2['plugins']['has']('ShiftEnter'))return;const _0x46c488=_0x3fb8b2['plugins']['get']('SuggestionsConversion'),_0x4e63db=(_0x2e6771,_0x185a25,_0x4ec505,_0x49e988)=>{if(_0x49e988&&!_0x4ec505['options']['showSuggestionHighlights'])return;if(!_0x4ec505['consumable']['test'](_0x185a25['markerRange'],_0x2e6771['name']))return;const _0x20663b=_0x3fb8b2['model'];for(const _0x5be8a3 of _0x185a25['markerRange']['getItems']()){if(!_0x5be8a3['is']('element','softBreak'))continue;const _0x23f6c1='deletion'==_0x185a25['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x404817,authorId:_0x50c653}=J(_0x185a25['markerName']),_0x2a1614=_0x4ec505['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23f6c1,'data-suggestion':_0x404817,'data-author-id':_0x50c653}),_0x2b40ab=_0x4ec505['mapper']['toViewPosition'](_0x20663b['createPositionBefore'](_0x5be8a3));!_0x49e988&&_0x46c488['_activeMarkers']['includes'](_0x185a25['markerName'])&&_0x4ec505['writer']['addClass']('ck-suggestion-marker--active',_0x2a1614),_0x4ec505['writer']['insert'](_0x2b40ab,_0x2a1614),_0x4ec505['mapper']['bindElementToMarker'](_0x2a1614,_0x185a25['markerName']);}};_0x3fb8b2['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x354e81,_0x17b0bf,_0x161774)=>{_0x4e63db(_0x354e81,_0x17b0bf,_0x161774,!0x1);},{'priority':'high'}),_0x3fb8b2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cc091,_0xc75147,_0x435965)=>{_0x4e63db(_0x5cc091,_0xc75147,_0x435965,!0x0);},{'priority':'high'});}}class lt extends _0x173d6c{['afterInit'](){const _0x4b9e67=this['editor'];_0x4b9e67['plugins']['has']('MediaEmbedEditing')&&(_0x4b9e67['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4aaca4,{writer:_0x156471,options:_0x52d374})=>{if(_0x52d374['showSuggestionHighlights'])return _0x156471['createEmptyElement']('div');},'converterPriority':'high'}),_0x4b9e67['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4b9abb,_0xbb3d00,_0x589691)=>{_0x589691['options']['showSuggestionHighlights']&&_0x4b9abb['stop']();},{'priority':'high'}));}}class kt extends _0x173d6c{['afterInit'](){const _0x14f697=this['editor'];if(!_0x14f697['plugins']['has']('Table'))return;_0x14f697['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b33a9,_0x1953c2,_0x280d79)=>{((_0x1bd324,_0x4c3c40,_0x5b17c6)=>{if(!_0x5b17c6['options']['showSuggestionHighlights'])return;const _0xddbdf0=_0x4c3c40['item'];if(!_0xddbdf0||!_0xddbdf0['is']('element','tableCell'))return;const _0x4110a9=_0x5b17c6['mapper']['toViewElement'](_0xddbdf0);if(_0x4110a9){const {id:_0x59a5ac,authorId:_0x2c14d1}=J(_0x4c3c40['markerName']);bt(_0x4110a9,_0x5b17c6['writer'],(_0x31b80f,_0x1e01b9,_0xcbad02)=>{_0xcbad02['addClass'](jt(_0x1e01b9['classes']),_0x31b80f),_0xcbad02['setAttribute']('data-suggestion-id',_0x59a5ac,_0x31b80f),_0xcbad02['setAttribute']('data-author-id',_0x2c14d1,_0x31b80f);});}})(0x0,_0x1953c2,_0x280d79);},{'priority':'highest'});}}class ft extends _0x173d6c{['afterInit'](){const _0x3831d5=this['editor'];_0x3831d5['plugins']['has']('HorizontalLineEditing')&&_0x3831d5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x720244,{writer:_0xaa104f,options:_0x3d05c7})=>{if(!_0x3d05c7['showSuggestionHighlights'])return null;const _0x1aea05=_0xaa104f['createContainerElement']('div'),_0x564ccb=_0xaa104f['createEmptyElement']('hr');return _0xaa104f['addClass']('ck-horizontal-line',_0x1aea05),_0xaa104f['insert'](_0xaa104f['createPositionAt'](_0x1aea05,0x0),_0x564ccb),_0x1aea05;},'converterPriority':'high'});}}class At extends _0x173d6c{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[L,Q,X,Y,Z,ft,tt,it,rt,et,st,ot,nt,lt,at,ht,gt,kt,ut,ct,mt,dt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x37f4d3=this['editor'],_0x1e00ff=(_0x14310d,_0x8fd556,_0x3e65ae)=>{const {id:_0x1b4157,authorId:_0x118792,type:_0x1da47c,subType:_0x421afd}=J(_0x14310d['markerName']),_0xabd1df=['ck-suggestion-marker',this['_getClassName'](_0x1da47c,_0x421afd)];let _0x2499a4=0xbb8;return!_0x3e65ae&&(this['_activeMarkers']['includes'](_0x14310d['markerName'])&&(_0xabd1df['push']('ck-suggestion-marker--active'),_0x2499a4=0xbc2)),('deletion'==_0x1da47c&&(_0x2499a4+=0x5),{'classes':_0xabd1df,'attributes':{'data-suggestion':_0x1b4157,'data-author-id':_0x118792},'priority':_0x2499a4});};_0x37f4d3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x56b57e,_0x67be9d)=>_0x1e00ff(_0x56b57e,0x0,!0x1)}),_0x37f4d3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x193b96,_0x2e41b3)=>_0x1e00ff(_0x193b96,0x0,!0x0)}),_0x37f4d3['conversion']['for']('dataDowncast')['add'](_0x4bd2f0=>{_0x4bd2f0['on']('addMarker:suggestion',(_0x4d0c96,_0x40a613,_0x4935aa)=>{if(!_0x4935aa['options']['showSuggestionHighlights'])return;const _0x1dd7d9=_0x40a613['item'];if(!_0x1dd7d9)return;const _0x32a1be=_0x4935aa['mapper']['toViewElement'](_0x1dd7d9);_0x37f4d3['model']['schema']['isObject'](_0x1dd7d9)&&_0x32a1be&&!_0x32a1be['getCustomProperty']('widget')&&_0x32a1be['is']('containerElement')&&_0x49eaac(_0x32a1be,_0x4935aa['writer']);},{'priority':'high'});});const _0x794985=(_0x1ed5b1,_0x322da8,_0x2426f4,_0xf47fd,_0x1cfa32)=>{if(_0xf47fd&&!_0x2426f4['options']['showSuggestionHighlights'])return;if(!_0x322da8['item'])return;const {id:_0x5a09ba,authorId:_0x18d116,subType:_0xc68198}=J(_0x322da8['markerName']);if(_0x1cfa32){const _0x27ebfa=_0xc68198['split']('|')[0x0];if(!this['isBlockAttribute'](_0x27ebfa))return;}if(_0x322da8['item']['is']('selection'))return void _0x2426f4['consumable']['consume'](_0x322da8['item'],_0x1ed5b1['name']);const _0x514532=_0x2426f4['mapper']['toViewElement'](_0x322da8['item']);if(_0x322da8['item']['is']('element')&&_0x37f4d3['model']['schema']['isBlock'](_0x322da8['item'])&&!_0x514532['getCustomProperty']('addHighlight')){_0x2426f4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x514532),_0x2426f4['writer']['setAttribute']('data-suggestion',_0x5a09ba,_0x514532),_0x2426f4['writer']['setAttribute']('data-author-id',_0x18d116,_0x514532),_0x2426f4['mapper']['bindElementToMarker'](_0x514532,_0x322da8['markerName']),_0xf47fd||(this['_activeMarkers']['includes'](_0x322da8['markerName'])?_0x2426f4['writer']['addClass']('ck-suggestion-marker--active',_0x514532):_0x2426f4['writer']['removeClass']('ck-suggestion-marker--active',_0x514532));for(const _0x184ece of _0x37f4d3['model']['createRangeIn'](_0x322da8['item'])['getItems']())_0x2426f4['consumable']['consume'](_0x184ece,_0x1ed5b1['name']);_0x2426f4['consumable']['consume'](_0x322da8['item'],_0x1ed5b1['name']);}},_0x3a982b=(_0x31ff0d,_0x118a7b,_0x112b82,_0x3e963b)=>{const _0x5cac88=_0x112b82['mapper']['markerNameToElements'](_0x118a7b['markerName']);if(_0x5cac88){if(_0x3e963b){const {subType:_0x4f72f2}=J(_0x118a7b['markerName']),_0x549a2c=_0x4f72f2['split']('|')[0x0];if(!this['isBlockAttribute'](_0x549a2c))return;}for(const _0x7956f9 of _0x5cac88)_0x7956f9['getCustomProperty']('addHighlight')||(_0x112b82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7956f9),_0x112b82['writer']['removeAttribute']('data-suggestion',_0x7956f9),_0x112b82['writer']['removeAttribute']('data-author-id',_0x7956f9),_0x112b82['mapper']['unbindElementFromMarkerName'](_0x7956f9,_0x118a7b['markerName']));}};_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0x2867a2=>{_0x2867a2['on']('addMarker:suggestion:formatBlock',(_0x512cf1,_0x11d9a,_0x5be7ca)=>{_0x794985(_0x512cf1,_0x11d9a,_0x5be7ca,!0x1,!0x1);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0xd92a5c=>{_0xd92a5c['on']('addMarker:suggestion:attribute',(_0x36b830,_0x23eb5d,_0x45bda2)=>{_0x794985(_0x36b830,_0x23eb5d,_0x45bda2,!0x1,!0x0);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0x1b14ae=>{_0x1b14ae['on']('removeMarker:suggestion:formatBlock',(_0x24af24,_0x71a194,_0x24b396)=>{_0x3a982b(0x0,_0x71a194,_0x24b396,!0x1);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('editingDowncast')['add'](_0x5d396a=>{_0x5d396a['on']('removeMarker:suggestion:attribute',(_0xdc84ee,_0xc1f8c8,_0x1e1922)=>{_0x3a982b(0x0,_0xc1f8c8,_0x1e1922,!0x0);},{'priority':'high'});}),_0x37f4d3['conversion']['for']('dataDowncast')['add'](_0x5983c2=>{_0x5983c2['on']('addMarker:suggestion:formatBlock',(_0x417105,_0x2d6d0d,_0x5081d2)=>{_0x794985(_0x417105,_0x2d6d0d,_0x5081d2,!0x0,!0x1);},{'priority':'highest'});}),_0x37f4d3['conversion']['for']('dataDowncast')['add'](_0x456d87=>{_0x456d87['on']('addMarker:suggestion:attribute',(_0x4ce2b4,_0x3cb692,_0x4474b6)=>{_0x794985(_0x4ce2b4,_0x3cb692,_0x4474b6,!0x0,!0x0);},{'priority':'highest'});}),_0x37f4d3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2159ef,_0x75eb8a)=>{if(_0x75eb8a['options']['showSuggestionHighlights']){const {id:_0x26cf36,authorId:_0x48f42c}=J(_0x2159ef);return _0x2159ef['includes'](':split')||_0x2159ef['includes'](':merge')?{'group':'suggestion','name':_0x2159ef['substr'](0xb),'attributes':{'data-suggestion':_0x26cf36,'data-author-id':_0x48f42c}}:null;}return{'group':'suggestion','name':_0x2159ef['substr'](0xb)};}});const _0x580faa=(_0x25cced,_0x3e1abf,_0x580470,_0x2e787e,_0x159892)=>{if(_0x2e787e&&!_0x580470['options']['showSuggestionHighlights'])return;if(!_0x580470['consumable']['test'](_0x3e1abf['markerRange'],_0x25cced['name']))return;const _0x1c071e=this['_activeMarkers'],_0x48cbd8=_0x3e1abf['markerRange']['getWalker'](),_0x2aa189=_0x3e1abf['markerRange']['start'],_0x269f09=_0x37f4d3['model']['schema'];let _0x18b100=null,_0x13b54e=null,_0x4262ad=!0x1,_0x498bd1=!0x1;for(const _0x325f10 of _0x48cbd8){const _0x4f0dbc=_0x325f10['item'];_0x4262ad=_0x4262ad||_0x269f09['isContent'](_0x4f0dbc);const _0x43f478=_0x580470['mapper']['toViewElement'](_0x4f0dbc);if(_0x43f478&&_0x43f478['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x325f10['type']&&(_0x269f09['isBlock'](_0x4f0dbc)&&!_0x269f09['isLimit'](_0x4f0dbc)&&(_0x4f0dbc['nextSibling']||_0x2aa189['isAtEnd']?_0x18b100&&_0x18b100['parent']==_0x4f0dbc||(_0x18b100=_0x4f0dbc,_0x208534(_0x325f10['previousPosition']),_0x498bd1=!0x0):_0x13b54e=_0x13b54e||_0x325f10['previousPosition']));}function _0x208534(_0x46e6a3){const {id:_0x35a777,authorId:_0xd31287}=J(_0x3e1abf['markerName']),_0x419c58=_0x580470['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x159892,'data-suggestion':_0x35a777,'data-author-id':_0xd31287}),_0x32a882=_0x580470['mapper']['toViewPosition'](_0x46e6a3);!_0x2e787e&&_0x1c071e['includes'](_0x3e1abf['markerName'])&&_0x580470['writer']['addClass']('ck-suggestion-marker--active',_0x419c58),_0x580470['writer']['insert'](_0x32a882,_0x419c58),_0x580470['mapper']['bindElementToMarker'](_0x419c58,_0x3e1abf['markerName']);}_0x4262ad||_0x498bd1||!_0x13b54e||_0x208534(_0x13b54e);};_0x37f4d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x361283,_0x3c64c1,_0x125025)=>{_0x580faa(_0x361283,_0x3c64c1,_0x125025,!0x1,'merge');},{'priority':'high'}),_0x37f4d3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5c7627,_0x548f86,_0x1a3b2b)=>{_0x580faa(_0x5c7627,_0x548f86,_0x1a3b2b,!0x0,'merge');},{'priority':'high'}),_0x37f4d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55a936,_0xbdd212,_0x2c9511)=>{_0x580faa(_0x55a936,_0xbdd212,_0x2c9511,!0x1,'split');},{'priority':'high'}),_0x37f4d3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c17f0,_0x5ada84,_0x3b2e2a)=>{_0x580faa(_0x1c17f0,_0x5ada84,_0x3b2e2a,!0x0,'split');},{'priority':'high'}),_0x37f4d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d1e8a,_0x1074c0,_0x54cb4b)=>{((_0x318e00,_0x3e717a,_0x1af030)=>{const _0x3693e0=_0x1af030['mapper']['markerNameToElements'](_0x3e717a['markerName']);if(_0x3693e0){for(const _0x24f13f of _0x3693e0)(_0x24f13f['hasClass']('ck-suggestion-marker-split')||_0x24f13f['hasClass']('ck-suggestion-marker-merge'))&&(_0x1af030['mapper']['unbindElementFromMarkerName'](_0x24f13f,_0x3e717a['markerName']),_0x1af030['writer']['remove'](_0x24f13f));}})(0x0,_0x1074c0,_0x54cb4b);},{'priority':'high'});const _0x2c4aae=(_0x377276,_0x552961,_0x2fdaf9,_0x4d23a9)=>{if(_0x4d23a9&&!_0x2fdaf9['options']['showSuggestionHighlights'])return;const _0x1ff034=_0x552961['markerRange']['start'],_0xea92ab=_0x552961['markerRange']['end'],_0xedf9a4=_0x37f4d3['model']['schema'];if(!_0x1ff034['isTouching'](_0xea92ab)||!_0x1ff034['nodeAfter'])return;const _0x67e66=_0x1ff034['nodeAfter'];if(_0xedf9a4['isBlock'](_0x67e66)&&!_0xedf9a4['isLimit'](_0x67e66)&&_0xedf9a4['checkChild'](_0x67e66,'$text')){if(!_0x2fdaf9['consumable']['consume'](_0x552961['markerRange'],_0x377276['name']))return;const {id:_0x4aec5d,authorId:_0x2b3b8d}=J(_0x552961['markerName']),_0x476b65=_0x2fdaf9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4aec5d,'data-author-id':_0x2b3b8d}),_0x29247c=_0x2fdaf9['mapper']['toViewPosition'](_0xea92ab);!_0x4d23a9&&this['_activeMarkers']['includes'](_0x552961['markerName'])&&_0x2fdaf9['writer']['addClass']('ck-suggestion-marker--active',_0x476b65),_0x2fdaf9['writer']['insert'](_0x29247c,_0x476b65),_0x2fdaf9['mapper']['bindElementToMarker'](_0x476b65,_0x552961['markerName']);}};_0x37f4d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1531ae,_0x4a86b8,_0x5112bb)=>{_0x2c4aae(_0x1531ae,_0x4a86b8,_0x5112bb,!0x1);},{'priority':'high'}),_0x37f4d3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19158f,_0x54c35e,_0x45fb62)=>{_0x2c4aae(_0x19158f,_0x54c35e,_0x45fb62,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x13f84a,_0x2aecea,_0xd7d6ff)=>{this['_activeMarkers']=_0xd7d6ff['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x1b0268){this['_blockAttributeKeys']['add'](_0x1b0268);}['registerInlineAttribute'](_0x2c1f26){this['_inlineAttributeKeys']['add'](_0x2c1f26);}['isBlockAttribute'](_0x4e3fbb){return this['_blockAttributeKeys']['has'](_0x4e3fbb);}['isInlineAttribute'](_0x2f78ae){return this['_inlineAttributeKeys']['has'](_0x2f78ae);}['isRegisteredAttribute'](_0x41e123){return this['isInlineAttribute'](_0x41e123)||this['isBlockAttribute'](_0x41e123);}['_getClassName'](_0x568686,_0x2db388){if('attribute'!=_0x568686)return'ck-suggestion-marker-'+_0x568686;const _0x1e6adf=_0x2db388['split']('|')[0x0];return this['isBlockAttribute'](_0x1e6adf)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function Mt(_0x229d20={},_0x4fd76e){if(void 0x0!==_0x229d20['dateTimeFormat']&&'function'!=typeof _0x229d20['dateTimeFormat'])throw new _0x174be2('invalid-date-time-format');return _0x5d9134=>{const _0x48a72a='string'==typeof _0x5d9134?_0x2712e8['fromISO'](_0x5d9134):_0x2712e8['fromJSDate'](_0x5d9134),_0x4b1c32=_0x2712e8['now'](),_0xfb5c9=Math['floor'](_0x4b1c32['diff'](_0x48a72a,'days')['days']);return _0x229d20['dateTimeFormat']?_0x229d20['dateTimeFormat'](_0x48a72a['toJSDate'](),_0x4fd76e&&_0x4fd76e['t']?_0x4fd76e['t']:void 0x0):0x0===_0xfb5c9?_0x4fd76e?U(_0x4fd76e,'Today')+'\x20'+_0x48a72a['toFormat']('hh:mma'):_0x48a72a['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0xfb5c9?_0x4fd76e?U(_0x4fd76e,'Yesterday')+'\x20'+_0x48a72a['toFormat']('hh:mma'):_0x48a72a['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0xfb5c9<0x7?_0x4fd76e?U(_0x4fd76e,'Last')+'\x20'+U(_0x4fd76e,_0x48a72a['toFormat']('EEEE'))+'\x20'+_0x48a72a['toFormat']('hh:mma'):_0x48a72a['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x48a72a['toFormat']('LL-dd-yyyy\x20hh:mma');};}function Tt(_0xdcff1a,_0x527195){const _0x5beb7e=_0xdcff1a['mapper']['markerNameToElements'](_0x527195['name']);if(!_0x5beb7e)return null;const _0x458597=_0x21e67c(_0x5beb7e['values']());return _0xdcff1a['view']['domConverter']['mapViewToDom'](_0x458597)||null;}function Nt(_0x1efa1e,_0x4e670b){if(0x0===_0x4e670b['length'])return null;const _0x24ae4f=[],_0x51f961=_0x1efa1e['view']['domConverter'];for(const _0x202137 of _0x4e670b){const _0x16c172=_0x1efa1e['mapper']['markerNameToElements'](_0x202137['name']);if(!_0x16c172)continue;const _0x172a3d=Array['from'](_0x16c172)['map'](_0x25df58=>_0x51f961['mapViewToDom'](_0x25df58))['filter'](_0x190903=>!!_0x190903);_0x24ae4f['push'](..._0x172a3d);}if(0x0===_0x24ae4f['length'])return null;const _0x5934b9=[];for(const _0x17ac97 of _0x24ae4f){const _0x2afe3c=_0x17ac97['getClientRects']()['item'](0x0);_0x2afe3c&&_0x5934b9['push']({'x':_0x2afe3c['x'],'y':_0x2afe3c['y'],'domElement':_0x17ac97});}return 0x0===_0x5934b9['length']?null:(_0x5934b9['sort']((_0x5d79e8,_0x929b4c)=>_0x5d79e8['y']-_0x929b4c['y']||_0x5d79e8['x']-_0x929b4c['x']),_0x5934b9['map'](_0x190beb=>_0x190beb['domElement']));}function Bt(_0x4188bd,{limit:_0x310ebe,suffix:_0x18770d='...'}){const _0x2622d5=[];let _0x4ae318=0x0;const _0x879b98=_0x4188bd['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4d34ce=0x0;_0x4d34ce<_0x879b98['length'];_0x4d34ce++){let _0x4c0ed6=_0x879b98[_0x4d34ce];const _0x55980b=H(_0x4c0ed6);if(_0x4c0ed6['startsWith']('<')){if(_0x4ae318>=_0x310ebe){const _0x48fa8f=_0x4c0ed6['match'](/[a-zA-Z]+/);if(!_0x48fa8f){_0x879b98[_0x4d34ce]='';continue;}const _0x235a7d=_0x48fa8f[0x0];_0x4c0ed6['startsWith']('</')?(_0x2622d5['length']&&(_0x4c0ed6=''),_0x2622d5['pop']()):(_0x2622d5['push'](_0x235a7d),_0x4c0ed6='');}}else{if(_0x4ae318>=_0x310ebe)_0x4c0ed6='';else{if(_0x4ae318+_0x55980b['length']>=_0x310ebe){let _0x514f0b=_0x310ebe-_0x4ae318;if('\x20'===_0x55980b[_0x514f0b-0x1])_0x514f0b--;else{const _0x274d44=_0x55980b['slice'](_0x514f0b)['indexOf']('\x20');-0x1!==_0x274d44?_0x514f0b+=_0x274d44:_0x514f0b=_0x4c0ed6['length'];}_0x4c0ed6=_0x55980b['slice'](0x0,_0x514f0b)['join']('')+_0x18770d,_0x4ae318=_0x310ebe;}else _0x4ae318+=_0x55980b['length'];}}_0x879b98[_0x4d34ce]=_0x4c0ed6;}return _0x879b98['join']('\x0a')['replace'](/\n/g,'');}function H(_0x2ff2a1){const _0x42d3b8=[];for(let _0x32a26=0x0;_0x32a26<_0x2ff2a1['length'];_0x32a26++){const _0x43230c=_0x2ff2a1['substring'](_0x32a26)['match'](/^&[a-z0-9#]+;/);if(_0x43230c){const _0xdae87f=_0x43230c[0x0];_0x42d3b8['push'](_0xdae87f),_0x32a26+=_0xdae87f['length']-0x1;}else _0x42d3b8['push'](_0x2ff2a1[_0x32a26]);}return _0x42d3b8;}class v extends _0x1983b2{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x101f6c){super(_0x101f6c);const _0x4a3b35=this['bindTemplate'];this['set']('message',U(_0x101f6c,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x101f6c,U(_0x101f6c,'Yes'),_0x5150e0,'submit'),this['cancelView']=this['_createButtonView'](_0x101f6c,U(_0x101f6c,'No'),_0x573f5b,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x150852(),this['keystrokes']=new _0x45b18e(),this['focusCycler']=new _0x1d0755({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x4a3b35['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x538f75,_0x28346f,_0x287349,_0x3eb214){const _0xfabe4c=new _0x1c7a18(_0x538f75);return _0xfabe4c['label']=_0x28346f,_0xfabe4c['icon']=_0x287349,_0xfabe4c['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x3eb214}}),_0xfabe4c['on']('execute',()=>this['fire'](_0x3eb214)),_0xfabe4c;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x53dfae=>{this['keystrokes']['listenTo'](_0x53dfae['element']),this['focusTracker']['add'](_0x53dfae['element']);}),this['keystrokes']['set']('esc',(_0x127a18,_0x4b4403)=>{this['fire']('cancel'),_0x4b4403();});}}function Pt(_0x58b5f7){return class extends _0x58b5f7{['showConfirm'](_0x3002ba,_0x54dfd0){return this['confirmView']=new v(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x3002ba,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x54dfd0['appendChild'](this['confirmView']['element']),_0x54dfd0['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x37dc5c,_0x2a1cea,_0x50a389)=>{_0x50a389||_0x54dfd0['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x461f6d=>this['confirmView']['on']('submit',_0x461f6d));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x543dcf){let _0x1bdf12=0x0,_0xc03b2e=0x0;for(const _0x34aed5 of M(_0x543dcf))_0x1bdf12=(_0x1bdf12<<0x5)-_0x1bdf12+_0x34aed5,_0x1bdf12&=_0x1bdf12,[_0x1bdf12,_0xc03b2e]=[_0xc03b2e,_0x1bdf12];return F(_0x1bdf12)+F(_0xc03b2e);}function*O(_0x2608c7){null==_0x2608c7||null==_0x2608c7?yield 0x12b9b0a1:0x0===_0x2608c7||!0x1===_0x2608c7?yield 0x0:0x1===_0x2608c7||0x1==_0x2608c7?yield 0x1:Array['isArray'](_0x2608c7)?yield*function*(_0xcc3004){for(const _0x136485 of _0xcc3004)yield*O(_0x136485);}(_0x2608c7):'object'==typeof _0x2608c7?yield*M(_0x2608c7):'string'==typeof _0x2608c7?yield*q(_0x2608c7):'number'==typeof _0x2608c7&&(yield _0x2608c7);}function*M(_0x333e3b){if(yield z('{'),_0x333e3b){const _0x5a8d84=Object['keys'](_0x333e3b)['sort']();for(const _0x48a581 of _0x5a8d84){yield*q(_0x48a581),yield z(':');const _0xe24b50=_0x333e3b[_0x48a581];yield*O(_0xe24b50);}}yield z('}');}function*q(_0x51da06){yield z('\x22');for(const _0x25b2b6 of _0x51da06)yield z(_0x25b2b6);yield z('\x22');}function z(_0x4937fe){return _0x4937fe['charCodeAt'](0x0);}function F(_0x270d9c){return(_0x270d9c*=Math['sign'](_0x270d9c))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],S=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function G(_0x5d22ec,_0x507a6d,_0x450e15,_0xe219e3=[]){const _0x51bd01='string'==typeof _0x5d22ec?_0x450e15['get'](_0x5d22ec)['constructor']:_0x5d22ec['prototype']['constructor'];if(_0x507a6d['has'](_0x51bd01))return _0x507a6d['get'](_0x51bd01);_0x507a6d['set'](_0x51bd01,!0x0);const _0x2cc7ab=[...S,..._0xe219e3]['map'](_0x4104c1=>{if(_0x450e15['has'](_0x4104c1))return _0x450e15['get'](_0x4104c1)['constructor'];})['filter'](_0x37d89a=>_0x37d89a);if(_0x51bd01&&_0x2cc7ab['includes'](_0x51bd01))return _0x507a6d['set'](_0x51bd01,!0x1),!0x1;if(!_0x51bd01['requires'])return _0x507a6d['set'](_0x51bd01,!0x0),!0x0;const _0x164821=_0x51bd01['requires']['every'](_0x5c498f=>G(_0x5c498f,_0x507a6d,_0x450e15,_0xe219e3));return _0x507a6d['set'](_0x51bd01,_0x164821),_0x164821;}function Ot(_0x25be16,_0x229b5c){const _0x6e814={};for(const _0x48dd43 of _0x25be16['config']['names']())W['includes'](_0x48dd43)||(_0x6e814[_0x48dd43]=_0x25be16['config']['get'](_0x48dd43));const _0x2267cc=_0x6e814['plugins']||[],_0x2bc007=_0x25be16['constructor']['builtinPlugins']||[],_0x32193d=_0x2267cc['length']?_0x2267cc:_0x2bc007,_0x1293a3=_0x6e814['extraPlugins']||[];delete _0x6e814['extraPlugins'];const _0x5b0c7e=_0x6e814['removePlugins']||[];delete _0x6e814['removePlugins'];const _0x54f36d=_0x25be16['_context']['config']['get']('plugins')||[],_0x5873af=_0x32193d['concat'](_0x1293a3)['concat'](_0x54f36d)['map'](_0x1305dd=>'string'==typeof _0x1305dd?_0x2bc007['find'](_0x98963c=>_0x98963c['pluginName']==_0x1305dd):_0x1305dd)['filter'](_0x4035b5=>!_0x5b0c7e['includes'](_0x4035b5)&&!_0x5b0c7e['includes'](_0x4035b5['pluginName'])),_0x19aff7=Array['from'](new Set(_0x5873af)),_0xde2364=new Map();return _0x6e814['plugins']=_0x19aff7['filter'](_0x2822b4=>G(_0x2822b4,_0xde2364,_0x25be16['plugins'],_0x229b5c)),_0x6e814;}function Dt(_0x577b9c,_0xf3233a){const _0x36beea=[];_0x577b9c['document']['selection']['on']('change:range',()=>{const _0x424526=function(_0x93f700,_0x40a4d7){const _0x597f28=[];for(const _0x484981 of _0x93f700['markers']){const _0x55da14=_0x484981['getRange']();(_0x55da14['containsPosition'](_0x40a4d7)||_0x55da14['start']['isEqual'](_0x40a4d7)||_0x55da14['end']['isEqual'](_0x40a4d7))&&_0x597f28['push'](_0x484981);}return _0x597f28;}(_0x577b9c,_0x577b9c['document']['selection']['focus']),_0x5a84f7=[],_0x8a21f=[],_0x5c0247=[];for(const _0x379d4e of _0x36beea)_0x424526['includes'](_0x379d4e)||_0x5a84f7['push'](_0x379d4e);for(const _0x45ad8a of _0x424526)_0x36beea['includes'](_0x45ad8a)||_0x8a21f['push'](_0x45ad8a),_0x5c0247['push'](_0x45ad8a);(_0x5a84f7['length']||_0x8a21f['length'])&&_0xf3233a({'left':_0x5a84f7,'entered':_0x8a21f}),_0x36beea['length']=0x0,_0x36beea['push'](..._0x5c0247);});}const $t='Ctrl+Shift+E';function Vt(_0xa1490e,_0x374213){const _0x3b0aed=_0xa1490e['element'];_0xa1490e['keystrokes']['listenTo'](_0x3b0aed);for(const _0x4a2c33 of _0x374213)I(_0xa1490e,_0x4a2c33);_0x374213['on']('change',(_0x4b3b83,_0x4b2e17)=>{for(const _0x4d147b of _0x4b2e17['removed'])R(_0xa1490e,_0x4d147b);for(const _0x53e683 of Array['from'](_0x4b2e17['added'])['reverse']())I(_0xa1490e,_0x53e683);}),_0xa1490e['keystrokes']['set']('enter',(_0x38af35,_0x64cb86)=>{_0x3b0aed===_0x38af35['target']&&(_0xa1490e['focusCycler']['focusFirst'](),_0x64cb86());},{'filter':_0x537cb8=>_0x537cb8['target']===_0x3b0aed}),_0xa1490e['keystrokes']['set']('esc',(_0x41b60c,_0x7dc3b1)=>{_0x3b0aed!==_0x41b60c['target']?_0xa1490e['focus']():_0xa1490e['fire']('escape'),_0x7dc3b1();}),_0xa1490e['keystrokes']['set']('arrowdown',(_0x50d916,_0x4412c4)=>{_0x3b0aed===_0x50d916['target']&&(_0xa1490e['fire']('arrowdown'),_0x4412c4());}),_0xa1490e['keystrokes']['set']('arrowup',(_0x19da0d,_0x5e863d)=>{_0x3b0aed===_0x19da0d['target']&&(_0xa1490e['fire']('arrowup'),_0x5e863d());});}function I(_0x5b5a63,_0x3cc54a){_0x3cc54a['isRendered']&&(_0x5b5a63['focusTracker']['add'](_0x3cc54a['element']),_0x5b5a63['keystrokes']['listenTo'](_0x3cc54a['element']),_0x2c6c77(_0x3cc54a)&&function(_0x561619,_0x3ed068){const _0x13b916=_0x561619['actions'],_0x2c8553=_0x3ed068['actions'];for(const _0x55ccc3 of Object['keys'](_0x13b916))if(_0x55ccc3 in _0x2c8553&&_0x13b916[_0x55ccc3]!==_0x2c8553[_0x55ccc3])return!0x1;return!0x0;}(_0x5b5a63['focusCycler'],_0x3cc54a['focusCycler'])&&_0x5b5a63['focusCycler']['chain'](_0x3cc54a['focusCycler']));}function R(_0x218e84,_0x139eb7){_0x218e84['focusTracker']['remove'](_0x139eb7['element']),_0x218e84['keystrokes']['stopListening'](_0x139eb7['element']),_0x2c6c77(_0x139eb7)&&_0x218e84['focusCycler']['unchain'](_0x139eb7['focusCycler']);}const Lt='$elementId',Ut='data-id';class Ht extends _0x4d4aa4{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x269817?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x3cf4e3,_0x53e3ef)=>{_0x53e3ef['on']('ready',()=>{this['_integrateEditor'](_0x53e3ef);});});}get['editor'](){if(this['context']instanceof _0x269817)return this['context'];{const _0x5d06d0=this['context']['editors']['first'];if(!_0x5d06d0)throw new _0x174be2('documentcompare-no-editor',this);return _0x5d06d0;}}['getDiff'](_0x44ce2e,_0x4cd8e0,_0x341ffa={'anchor':'main','markDeletions':!0x1}){let _0x45cbd4,_0x4dc871;const _0x40de50=this['editor'];if('string'==typeof _0x341ffa['anchor']){const _0x2cb9a7=_0x40de50['model']['document']['getRoot'](_0x341ffa['anchor']);if(!_0x2cb9a7)throw new _0x174be2('documentcompare-compare-no-root',this,{'anchor':_0x341ffa['anchor']});_0x45cbd4=_0x2cb9a7,_0x4dc871=_0x40de50['model']['createPositionAt'](_0x2cb9a7,0x0);}else _0x45cbd4=_0x341ffa['anchor']['clone'](),_0x4dc871=_0x341ffa['anchor']['clone']();const _0x1e45db=_0x40de50['data']['parse'](_0x44ce2e,_0x45cbd4),_0xe54d6b=_0x40de50['data']['parse'](_0x4cd8e0,_0x45cbd4);return new Rt(_0x1e45db,_0xe54d6b,_0x40de50,{'anchor':_0x4dc871,'markDeletions':_0x341ffa['markDeletions']});}['isMarkedRemoveOperation'](_0x2be122){return'marker'==_0x2be122['type']&&_0x2be122['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x411b57){_0x411b57['conversion']['for']('upcast')['add'](_0x244f75=>{_0x244f75['on']('element',(_0x32589b,_0x3a0475,_0x4ecada)=>{if(_0x3a0475['modelRange'])for(const _0x1edd50 of _0x3a0475['modelRange']['getItems']({'shallow':!0x0})){if(_0x1edd50['is']('$textProxy'))continue;const _0x30da35=_0x3a0475['viewItem']['getAttribute'](Ut);_0x30da35&&_0x4ecada['writer']['setAttribute'](Lt,_0x30da35,_0x1edd50);}},{'priority':'lowest'});}),_0x411b57['model']['schema']['addAttributeCheck'](()=>!0x0,Lt);}}class Rt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x42989e,_0x517573,_0x57996b,_0x31147a){this['_editor']=_0x57996b,this['_markDeletions']=!!_0x31147a['markDeletions'],this['_anchor']=_0x31147a['anchor'];const _0x21911d=this['_tokenizeModel'](_0x42989e),_0x2d54ea=this['_tokenizeModel'](_0x517573);this['_diffItems']=this['_diffModelTokens'](_0x21911d,_0x2d54ea),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x42989e['markers'],_0x517573['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x2474ac=this['_editor']['model']['document'],_0x2d93a6=[];let _0x448e87=_0x2474ac['version'];for(const _0x32c9ba of this['_operationsData'])switch(_0x32c9ba['type']){case'attribute':{const _0x8beff1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x1c20b9=_0x8beff1['getShiftedBy'](_0x32c9ba['howMany']),_0xeb3f14=new _0x423d93(_0x8beff1,_0x1c20b9),_0x40d6b0=JSON['parse'](_0x32c9ba['oldValue']),_0x541ee4=JSON['parse'](_0x32c9ba['newValue']);_0x2d93a6['push'](new _0x351bc6(_0xeb3f14,_0x32c9ba['key'],_0x40d6b0,_0x541ee4,_0x448e87++));break;}case'insert':{const _0x267bf0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x2c6956=this['_makeModelFromTokens'](_0x32c9ba['tokens']);_0x2d93a6['push'](new _0x42c930(_0x267bf0,_0x2c6956,_0x448e87++));break;}case'remove':{const _0x49a9fa=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x43e5ba=new _0x3e2e9c(_0x2474ac['graveyard'],[0x0]);_0x2d93a6['push'](new _0xfac5c3(_0x49a9fa,_0x32c9ba['howMany'],_0x43e5ba,_0x448e87++));break;}case'rename':{const _0x2dd79b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']);_0x2d93a6['push'](new _0x140e14(_0x2dd79b,_0x32c9ba['oldName'],_0x32c9ba['newName'],_0x448e87++));break;}case'split':{const _0x104e62=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']),_0x54ad6d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['path']['slice'](0x0,-0x1));_0x54ad6d['offset']++,_0x2d93a6['push'](new _0x4192f1(_0x104e62,Number['NEGATIVE_INFINITY'],_0x54ad6d,null,_0x448e87++));break;}case'merge':{const _0x357319=_0x32c9ba['path']['slice'](),_0x16554c=_0x357319['slice'](0x0,-0x1);_0x16554c[_0x16554c['length']-0x1]++,_0x16554c['push'](0x0);const _0x51a37d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x16554c),_0x4823e3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x357319),_0x17e8f9=new _0x3e2e9c(_0x2474ac['graveyard'],[0x0]);_0x2d93a6['push'](new _0x36aa7a(_0x51a37d,Number['NEGATIVE_INFINITY'],_0x4823e3,_0x17e8f9,_0x448e87++));break;}case'marker':case'markedRemove':{let _0x391d0f=null;if(_0x32c9ba['range']){const _0x5a39d7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['start']),_0x36139c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['end']);_0x391d0f=new _0x423d93(_0x5a39d7,_0x36139c);}const _0x47a48d='marker'==_0x32c9ba['type']?_0x32c9ba['name']:'$markedRemove:'+_0x3293c0();_0x2d93a6['push'](new _0x2d2db8(_0x47a48d,null,_0x391d0f,_0x2474ac['model']['markers'],!0x0,_0x448e87++));break;}case'unwrap':{const _0x41ce20=_0x32c9ba['path']['slice']();_0x41ce20['push'](0x0);const _0x4c2a2a=_0x32c9ba['path']['slice'](),_0x3ab50d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x41ce20),_0x47b7c4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4c2a2a),_0x5df82d=new _0x3e2e9c(_0x2474ac['graveyard'],[0x0]);_0x2d93a6['push'](new _0xfac5c3(_0x3ab50d,_0x32c9ba['howMany'],_0x47b7c4,_0x448e87++)),_0x2d93a6['push'](new _0xfac5c3(_0x47b7c4['getShiftedBy'](_0x32c9ba['howMany']),0x1,_0x5df82d,_0x448e87++));break;}case'wrap':{const _0x2cb0a5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['start']),_0x4534ea=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x32c9ba['range']['end']),_0x2449b5=_0x32c9ba['token']['element']['_clone'](!0x1),_0xf296a6=_0x32c9ba['range']['end']['slice']();_0xf296a6['push'](0x0);const _0x5dfab5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf296a6);_0x2d93a6['push'](new _0x42c930(_0x4534ea,_0x2449b5,_0x448e87++)),_0x2d93a6['push'](new _0xfac5c3(_0x2cb0a5,_0x4534ea['offset']-_0x2cb0a5['offset'],_0x5dfab5,_0x448e87++));break;}}return _0x2d93a6;}['_tokenizeModel'](_0x10bbe3){const _0x47d288=[],_0x2e17dc=_0x423d93['_createIn'](_0x10bbe3),_0x15b550=new _0x1125a0({'boundaries':_0x2e17dc});let _0x998264='',_0x323d33=null;const _0x50ffb3=[''],_0x271ad2=new Map();for(const _0xb8d3c of _0x15b550)if('elementStart'==_0xb8d3c['type']||'elementEnd'==_0xb8d3c['type']){let _0x5caf9b=_0x50ffb3[0x0];''!==_0x998264&&(_0x47d288['push'](...this['_makeTokensFromTextByWords'](_0x998264,_0x323d33,_0x5caf9b)),_0x998264='');const _0x39b58b=_0xb8d3c['item'];let _0x5b31d7;_0x39b58b['getAttribute'](Lt)?_0x5b31d7=_0x39b58b['getAttribute'](Lt):'elementStart'==_0xb8d3c['type']?(_0x5b31d7=_(_0x39b58b),_0x271ad2['set'](_0x39b58b,_0x5b31d7)):_0x5b31d7=_0x271ad2['get'](_0x39b58b);const _0x3ab384=this['_getElementCategory'](_0x39b58b);'solid'==_0x3ab384&&('elementStart'==_0xb8d3c['type']?(_0x5caf9b=_0x5b31d7,_0x50ffb3['unshift'](_0x5caf9b)):_0x50ffb3['shift']());const _0x3bf4fb={'type':'element','element':_0x39b58b,'elementId':_0x5b31d7,'category':_0x3ab384,'isStart':'elementStart'==_0xb8d3c['type'],'limitId':_0x5caf9b};_0x47d288['push'](_0x3bf4fb);}else''==_0x998264&&(_0x323d33=_0xb8d3c['previousPosition']['clone']()),_0x998264+=_0xb8d3c['item']['data'];return''!==_0x998264&&_0x47d288['push'](...this['_makeTokensFromTextByWords'](_0x998264,_0x323d33,_0x50ffb3[0x0])),_0x47d288;}['_makeTokensFromTextByWords'](_0x302a45,_0x508bb6,_0x3fc445){const _0x1db6b1=_0x302a45['matchAll'](/(\s)/g),_0x495cf7=Array['from'](_0x1db6b1)['map'](_0x280e78=>_0x280e78['index']);_0x495cf7['push'](_0x302a45['length']),0x0==_0x495cf7[0x0]&&_0x495cf7['shift']();const _0x57b012=[],_0x407709=_0x508bb6['parent'];let _0x342f4f=0x0,_0x658d80=_0x508bb6['offset'];for(let _0x20c62a=0x0;_0x20c62a<_0x495cf7['length'];_0x20c62a++)_0x57b012['push']({'type':'text','data':_0x302a45['slice'](_0x342f4f,_0x495cf7[_0x20c62a]),'parent':_0x407709,'offset':_0x658d80,'limitId':_0x3fc445}),_0x342f4f=_0x495cf7[_0x20c62a],_0x658d80=_0x508bb6['offset']+_0x495cf7[_0x20c62a];return _0x57b012;}['_getElementCategory'](_0x5ed363){const _0xdfc76=this['_editor']['model']['schema'];return _0xdfc76['isLimit'](_0x5ed363)||_0xdfc76['isContent'](_0x5ed363)||_0xdfc76['isInline'](_0x5ed363)?'solid':_0xdfc76['isBlock'](_0x5ed363)?'block':'container';}['_diffModelTokens'](_0x5ac4c8,_0x1d6e6d){const _0xb264c3=_0x10ae8a(_0x5ac4c8,_0x1d6e6d,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0xb264c3);const _0x429e1c=_0xb264c3['flatMap'](_0xfa077=>{const _0x26cacd=_0xfa077['added']?'added':_0xfa077['removed']?'removed':'unchanged';return _0xfa077['value']['map'](_0x4a3377=>({'token':_0x4a3377,'change':_0x26cacd}));});let _0x1a48fa=0x0;for(const _0x32edaf of _0x429e1c)'added'!=_0x32edaf['change']&&('unchanged'==_0x32edaf['change']&&(_0x32edaf['before']=_0x5ac4c8[_0x1a48fa]),_0x1a48fa++);return _0x429e1c;}['_handleUnclosedBlockOpeningTags'](_0x579e68){for(let _0x195ae1=0x0;_0x195ae1<_0x579e68['length']-0x1;_0x195ae1++)if(_0x579e68[_0x195ae1]['removed']&&_0x579e68[_0x195ae1+0x1]['added']){const _0x10aa3e=this['_findUnclosedBlockOpeningToken'](_0x579e68[_0x195ae1]['value']);if(null!==_0x10aa3e){const _0x29a431=this['_findUnclosedBlockOpeningToken'](_0x579e68[_0x195ae1+0x1]['value']),_0x496374=_0x579e68[_0x195ae1]['value']['splice'](_0x10aa3e),_0x313afb=_0x579e68[_0x195ae1+0x1]['value']['splice'](_0x29a431),_0x1023e6=[_0x313afb['shift']()];_0x496374['shift']();const _0x154326={'value':_0x496374,'removed':!0x0},_0x167814={'value':_0x313afb,'added':!0x0},_0x1b97f0={'value':_0x1023e6};_0x579e68['splice'](_0x195ae1+0x2,0x0,_0x1b97f0,_0x154326,_0x167814);}}}['_findUnclosedBlockOpeningToken'](_0x290e55){let _0x425694=0x0,_0x2da653=-0x1;for(let _0x4c0bfa=0x0;_0x4c0bfa<_0x290e55['length'];_0x4c0bfa++){const _0x43be4d=_0x290e55[_0x4c0bfa];'element'==_0x43be4d['type']&&'block'==_0x43be4d['category']&&(_0x425694+=_0x43be4d['isStart']?0x1:-0x1,_0x43be4d['isStart']&&(_0x2da653=_0x4c0bfa));}return 0x0===_0x425694?null:_0x2da653;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x2c9c8d=0x0;_0x2c9c8d<this['_diffItems']['length'];_0x2c9c8d++){const _0x337066=this['_diffItems'][_0x2c9c8d]['change'],_0x1b6650=[];_0x1b6650['push'](this['_diffItems'][_0x2c9c8d]);let _0x230bca=_0x2c9c8d+0x1;for(;this['_diffItems'][_0x230bca]&&this['_diffItems'][_0x230bca]['change']==_0x337066;)_0x1b6650['push'](this['_diffItems'][_0x230bca]),_0x230bca++,_0x2c9c8d++;const _0x1cce5a=_0x1b6650['map'](_0x599cb1=>_0x599cb1['token']);if('unchanged'==_0x337066)_0x1b6650['map'](_0x3195e7=>_0x3195e7['before'])['forEach'](_0x3103a5=>this['_traverseOverItem'](_0x3103a5));else{if('removed'==_0x337066){if(this['_markDeletions']){const _0x1b54db=this['_path']['slice']();_0x1cce5a['forEach'](_0x4641b6=>this['_traverseOverItem'](_0x4641b6));const _0x5401b5=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x1b54db,'end':_0x5401b5}});}else this['_handleChanged'](_0x1cce5a,!0x0,this['_path']['slice']());}else{const _0x5020bf=_0x1cce5a['filter'](_0x31e8fa=>'element'!=_0x31e8fa['type']||'container'!=_0x31e8fa['category']);this['_handleChanged'](_0x5020bf,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x2fd375=0x0;_0x2fd375<this['_diffItems']['length'];_0x2fd375++){const _0x437be8=this['_diffItems'][_0x2fd375]['change'],_0x3aea9a=[];_0x3aea9a['push'](this['_diffItems'][_0x2fd375]);let _0x203110=_0x2fd375+0x1;for(;this['_diffItems'][_0x203110]&&this['_diffItems'][_0x203110]['change']==_0x437be8;)_0x3aea9a['push'](this['_diffItems'][_0x203110]),_0x203110++,_0x2fd375++;const _0x3b5e8d=_0x3aea9a['map'](_0x40b5cb=>_0x40b5cb['token']);if('unchanged'==_0x437be8){const _0x13f160=_0x3aea9a['map'](_0x5a7c2a=>_0x5a7c2a['before']);this['_handleUnchanged'](_0x13f160,_0x3b5e8d);}else('removed'!=_0x437be8||this['_markDeletions'])&&_0x3b5e8d['forEach'](_0x3a0fd7=>{this['_traverseOverItem'](_0x3a0fd7);});}}['_calculateMarkersOperationsData'](_0x2a9a69,_0x248c85){const _0x2fa2aa={};for(const [_0x73cbe8]of _0x2a9a69)_0x2fa2aa[_0x73cbe8]=null;for(const [_0x38aad9,_0x162cbb]of _0x248c85)_0x2fa2aa[_0x38aad9]=_0x162cbb;const _0xd09245=Object['entries'](_0x2fa2aa)['map'](([_0x55fc28,_0x394f6f])=>({'type':'marker','name':_0x55fc28,'range':_0x394f6f?{'start':_0x394f6f['start']['path']['slice'](),'end':_0x394f6f['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xd09245);}['_handleUnwraps'](){const _0x27bb73=new Map(),_0x234a21=[],_0x4d48ea=[0x0];let _0x47c3b2=this['_diffItems']['length']+0x1;for(let _0x1d8cfa=this['_diffItems']['length']-0x1;_0x1d8cfa>=0x0;_0x1d8cfa--){const {token:_0x234284,before:_0x3ad4d1,change:_0x186f5c}=this['_diffItems'][_0x1d8cfa];if('removed'!=_0x186f5c&&(_0x47c3b2=_0x1d8cfa),'element'!=_0x234284['type']||'container'!=_0x234284['category']||'added'==_0x186f5c)continue;const _0x129796=_0x3ad4d1?_0x3ad4d1['element']:_0x234284['element'];if(_0x234284['isStart']){const _0x2b6003=_0x27bb73['get'](_0x129796),_0x39c9be=this['_diffItems'][_0x2b6003];('removed'==_0x186f5c||'removed'==_0x39c9be['change'])&&_0x47c3b2<_0x2b6003&&(this['_operationsData']['push']({'type':'unwrap','path':_0x129796['getPath'](),'howMany':_0x129796['maxOffset']+_0x4d48ea[0x0]}),_0x4d48ea['shift'](),_0x4d48ea[0x0]+=_0x129796['maxOffset']-0x1,_0x234a21['push'](_0x1d8cfa),_0x234a21['push'](_0x2b6003));}else _0x27bb73['set'](_0x129796,_0x1d8cfa),_0x4d48ea['unshift'](0x0);}_0x234a21['sort']((_0x4ee2f8,_0x211bcf)=>_0x211bcf-_0x4ee2f8),_0x234a21['forEach'](_0x283dd7=>{const _0x51e066=this['_diffItems'][_0x283dd7];'removed'==_0x51e066['change']?this['_diffItems']['splice'](_0x283dd7,0x1):(_0x51e066['change']='added',delete _0x51e066['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5d716c=[];for(let _0x1b245c=0x0;_0x1b245c<this['_diffItems']['length'];_0x1b245c++){const {change:_0x408db2,token:_0x2410ba}=this['_diffItems'][_0x1b245c];if('added'==_0x408db2&&'element'==_0x2410ba['type']&&'container'==_0x2410ba['category']){if(_0x2410ba['isStart'])_0x5d716c['push'](this['_path']['slice']());else{if(!_0x2410ba['isStart']){const _0x385c87=_0x5d716c['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x385c87,'end':this['_path']['slice']()},'token':_0x2410ba}),this['_path'][this['_path']['length']-0x1]=_0x385c87[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x408db2||this['_markDeletions'])&&this['_traverseOverItem'](_0x2410ba);}}['_handleUnchanged'](_0x4816a4,_0x51795d){for(let _0x13ab7d=0x0;_0x13ab7d<_0x4816a4['length'];_0x13ab7d++){const _0x181cd1=_0x4816a4[_0x13ab7d];if('element'==_0x181cd1['type']&&_0x181cd1['isStart']){const _0x3c3332=_0x51795d[_0x13ab7d];'block'==_0x181cd1['category']&&this['_handleElementRename'](_0x181cd1['element'],_0x3c3332['element'],this['_path']),this['_handleElementAttributeChanges'](_0x181cd1['element'],_0x3c3332['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x3c3332);}else{if('element'!=_0x181cd1['type']||_0x181cd1['isStart']){if('text'==_0x181cd1['type']){const _0x2aed2a=this['_path']['slice'](),_0x11d89a=[],_0x31da21=[];for(;_0x4816a4[_0x13ab7d]&&'text'==_0x4816a4[_0x13ab7d]['type'];)_0x11d89a['push'](_0x4816a4[_0x13ab7d]),_0x31da21['push'](_0x51795d[_0x13ab7d]),this['_path'][this['_path']['length']-0x1]+=_0x4816a4[_0x13ab7d]['data']['length'],_0x13ab7d++;_0x13ab7d--,this['_handleTextAttributeChanges'](_0x11d89a,_0x31da21,_0x2aed2a);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x1b34f6,_0x2d7070,_0x18ff76){const _0x78485=[],_0x3e960b=[],_0xd40aa5=_0x18ff76['slice']();for(let _0x47687b=0x0;_0x47687b<_0x1b34f6['length'];_0x47687b++){const _0x10a6c3=_0x1b34f6[_0x47687b],_0x3aec88=_0x18ff76['slice']();if('element'!=_0x10a6c3['type']||_0x10a6c3['isStart'])'element'==_0x10a6c3['type']&&_0x10a6c3['isStart']?(_0x18ff76['push'](0x0),_0x2d7070||this['_parents']['push'](_0x10a6c3),_0x3e960b['push']({'before':_0x3aec88,'after':_0x18ff76['slice'](),'index':_0x47687b})):_0x18ff76[_0x18ff76['length']-0x1]+=_0x10a6c3['data']['length'];else{let _0x47f315;_0x18ff76['pop'](),_0x18ff76[_0x18ff76['length']-0x1]++,_0x47f315=_0x2d7070?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x3e960b['length']?_0x3e960b['pop']():_0x78485['push']({'before':_0x3aec88,'after':_0x18ff76['slice'](),'index':_0x47687b,'related':_0x47f315});}}if(_0x3e960b['length']!==_0x78485['length'])throw new _0x174be2('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x1b34f6,'isRemove':_0x2d7070});const _0x4db04b=[{'after':_0xd40aa5['slice'](),'index':-0x1},..._0x78485,..._0x3e960b,{'before':_0x18ff76['slice'](),'index':_0x1b34f6['length']}];if(_0x2d7070){for(let _0x9a0e32=_0x4db04b['length']-0x1;_0x9a0e32>=0x1;_0x9a0e32--){const _0x52f6bb=_0x4db04b[_0x9a0e32-0x1]['after'],_0x50f41f=_0x4db04b[_0x9a0e32]['before'],_0xc987ba=_0x50f41f[_0x50f41f['length']-0x1]-_0x52f6bb[_0x52f6bb['length']-0x1];_0xc987ba&&(this['_operationsData']['push']({'type':'remove','path':_0x52f6bb,'howMany':_0xc987ba}),_0x50f41f[_0x50f41f['length']-0x1]-=_0xc987ba);}for(const {before:_0x291e52}of _0x78485)this['_operationsData']['push']({'type':'merge','path':_0x291e52});}else for(let _0xf2e264=0x0;_0xf2e264<_0x4db04b['length']-0x1;_0xf2e264++){const _0x14eb7b=_0x4db04b[_0xf2e264]['after'],_0x10f491=_0x4db04b[_0xf2e264+0x1]['before'],_0x131ee7=_0x4db04b[_0xf2e264]['index']+0x1,_0x30b76e=_0x4db04b[_0xf2e264+0x1]['index'];if(_0x131ee7!==_0x30b76e&&this['_operationsData']['push']({'type':'insert','path':_0x14eb7b,'tokens':_0x1b34f6['slice'](_0x131ee7,_0x30b76e)}),_0xf2e264<_0x78485['length']){this['_operationsData']['push']({'type':'split','path':_0x10f491});const _0x535c10=_0x1b34f6[_0x3e960b[_0x3e960b['length']-0x1-_0xf2e264]['index']],_0x4efdb9=_0x78485[_0xf2e264]['after'],_0x495723=_0x78485[_0xf2e264]['related']['element'];this['_handleElementRename'](_0x495723,_0x535c10['element'],_0x4efdb9),this['_handleElementAttributeChanges'](_0x495723,_0x535c10['element'],_0x4efdb9);}}}['_traverseOverItem'](_0x2ed9e1){'element'==_0x2ed9e1['type']&&_0x2ed9e1['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x2ed9e1)):'element'!=_0x2ed9e1['type']||_0x2ed9e1['isStart']?'text'==_0x2ed9e1['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x2ed9e1['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x265e11,_0x16a803,_0x6c9731){_0x265e11['name']!=_0x16a803['name']&&this['_operationsData']['push']({'type':'rename','path':_0x6c9731['slice'](),'oldName':_0x265e11['name'],'newName':_0x16a803['name']});}['_handleElementAttributeChanges'](_0x27d652,_0x2a7766,_0x24e95e){const _0x39a3f5=this['_getAttributeChanges'](_0x27d652['getAttributes'](),_0x2a7766['getAttributes']());for(const _0x2cf443 in _0x39a3f5){const {oldValue:_0x1f3ea8,newValue:_0x22a60e}=_0x39a3f5[_0x2cf443];this['_operationsData']['push']({'type':'attribute','path':_0x24e95e['slice'](),'howMany':0x1,'key':_0x2cf443,'oldValue':_0x1f3ea8,'newValue':_0x22a60e});}}['_handleTextAttributeChanges'](_0x5ec27e,_0x111284,_0x5c8daa){const _0x3df662=this['_operationsData'],_0x5e9fb6=_0x5ec27e[0x0]['parent'],_0x4f6606=_0x5ec27e[0x0]['offset'],_0x359631=_0x111284[0x0]['parent'],_0x59a8ea=_0x111284[0x0]['offset'],_0x106ab3=_0x5ec27e['reduce']((_0x141d5e,_0x2afe06)=>_0x141d5e+_0x2afe06['data']['length'],0x0),_0x399345=this['_getAttrsForOffsets'](_0x5e9fb6,_0x4f6606,_0x106ab3),_0x2f02f6=this['_getAttrsForOffsets'](_0x359631,_0x59a8ea,_0x106ab3),_0x3ef57c={};for(let _0x1eb721=0x0;_0x1eb721<_0x106ab3;_0x1eb721++){const _0x358566=_0x399345[_0x4f6606+_0x1eb721],_0x5ac389=_0x2f02f6[_0x59a8ea+_0x1eb721],_0x25d8ed=this['_getAttributeChanges'](_0x358566,_0x5ac389);for(const _0x2e4ca2 in _0x3ef57c)_0x25d8ed[_0x2e4ca2]||_0x153add(_0x2e4ca2);for(const _0x37b39b in _0x25d8ed){const {oldValue:_0x1abec1,newValue:_0x28a7aa}=_0x25d8ed[_0x37b39b],_0x3d8164=_0x3ef57c[_0x37b39b];_0x3d8164?_0x3d8164['oldValue']==_0x1abec1&&_0x3d8164['newValue']==_0x28a7aa?_0x3d8164['length']++:(_0x153add(_0x37b39b),_0x3ef57c[_0x37b39b]={'oldValue':_0x1abec1,'newValue':_0x28a7aa,'start':_0x1eb721,'length':0x1}):_0x3ef57c[_0x37b39b]={'oldValue':_0x1abec1,'newValue':_0x28a7aa,'start':_0x1eb721,'length':0x1};}}for(const _0x31a43f in _0x3ef57c)_0x153add(_0x31a43f);function _0x153add(_0x2698bd){const _0x4c5776=_0x3ef57c[_0x2698bd],_0x253a1f=_0x5c8daa['slice']();_0x253a1f[_0x253a1f['length']-0x1]+=_0x4c5776['start'],_0x3df662['push']({'type':'attribute','path':_0x253a1f,'howMany':_0x4c5776['length'],'key':_0x2698bd,'oldValue':_0x4c5776['oldValue'],'newValue':_0x4c5776['newValue']}),delete _0x3ef57c[_0x2698bd];}}['_getAttributeChanges'](_0x3e98c3,_0x567eb2){const _0x4fb26e={};for(const [_0x47bec8,_0x136873]of _0x3e98c3)_0x4fb26e[_0x47bec8]={'oldValue':JSON['stringify'](_0x136873),'newValue':'null'};for(const [_0x3b5fdd,_0x5a1148]of _0x567eb2){const _0xd978e9=JSON['stringify'](_0x5a1148);_0x4fb26e[_0x3b5fdd]?_0x4fb26e[_0x3b5fdd]['oldValue']==_0xd978e9?delete _0x4fb26e[_0x3b5fdd]:_0x4fb26e[_0x3b5fdd]['newValue']=_0xd978e9:_0x4fb26e[_0x3b5fdd]={'oldValue':'null','newValue':_0xd978e9};}return delete _0x4fb26e[Lt],_0x4fb26e;}['_getAttrsForOffsets'](_0x5ab957,_0x1efc3f,_0x13b9cd){const _0x2808c3=new Array(_0x1efc3f+_0x13b9cd);let _0x5064ab=_0x5ab957['getChildAtOffset'](_0x1efc3f),_0x1706de=_0x5064ab['startOffset'];for(;_0x5064ab&&_0x1706de<_0x1efc3f+_0x13b9cd;){const _0x14900d=Array['from'](_0x5064ab['getAttributes']());_0x2808c3['fill'](_0x14900d,_0x1706de,_0x1706de+_0x5064ab['offsetSize']),_0x1706de+=_0x5064ab['offsetSize'],_0x5064ab=_0x5064ab['nextSibling'];}return _0x2808c3;}['_getPositionFromAnchorAndPath'](_0x2ab56c,_0x24cb3c){const _0x3344f4=[..._0x2ab56c['path']['slice'](0x0,-0x1),_0x2ab56c['offset']+_0x24cb3c[0x0],..._0x24cb3c['slice'](0x1)];return new _0x3e2e9c(_0x2ab56c['root'],_0x3344f4);}['_makeModelFromTokens'](_0x1610d0){const _0x213dff=[];let _0x5df4b3=null;for(const _0x2bcbd4 of _0x1610d0)if('element'!=_0x2bcbd4['type']||_0x2bcbd4['isStart']||_0x5df4b3!=_0x2bcbd4['element']){if(!_0x5df4b3){if('text'==_0x2bcbd4['type']){const _0x5be102=_0x3e2e9c['_createAt'](_0x2bcbd4['parent'],_0x2bcbd4['offset']),_0x8844bc=_0x423d93['_createFromPositionAndShift'](_0x5be102,_0x2bcbd4['data']['length']),_0x3dd9f0=Array['from'](_0x8844bc['getItems']())['map'](_0x512f7e=>new _0x4717b5(_0x512f7e['data'],_0x512f7e['getAttributes']()));_0x213dff['push'](..._0x3dd9f0);}else{_0x5df4b3=_0x2bcbd4['element'];const _0x335668=_0x2bcbd4['element']['_clone'](!0x0);_0x335668['_removeAttribute'](Lt);for(const _0x522fad of this['_editor']['model']['createRangeIn'](_0x335668)['getItems']())_0x522fad['is']('element')&&_0x522fad['_removeAttribute'](Lt);_0x213dff['push'](_0x335668);}}}else _0x5df4b3=null;return _0x213dff;}}function g(_0x4ecfb5,_0x361dd6){return _0x4ecfb5['type']===_0x361dd6['type']&&(_0x4ecfb5['limitId']===_0x361dd6['limitId']&&('text'==_0x4ecfb5['type']?_0x4ecfb5['data']==_0x361dd6['data']:function(_0x485d05,_0x49963b){if(_0x485d05['isStart']!=_0x49963b['isStart'])return!0x1;if(_0x485d05['isStart']&&_0x485d05['elementId']!=_0x49963b['elementId'])return!0x1;if(_0x485d05['category']!=_0x49963b['category'])return!0x1;if('block'==_0x485d05['category'])return!0x0;if('container'==_0x485d05['category']&&_0x485d05['elementId']!=_0x49963b['elementId'])return!0x1;return _0x485d05['element']['name']==_0x49963b['element']['name'];}(_0x4ecfb5,_0x361dd6)));}function _(_0x7a5d95){return k({'name':_0x7a5d95['name'],...Object['fromEntries'](_0x7a5d95['getAttributes']())});}export{xt as AriaDescriptionView,Pt as ConfirmMixin,Lt as DATA_ID_MODEL_ATTRIBUTE,Ut as DATA_ID_VIEW_ATTRIBUTE,Ht as DocumentCompare,$t as FOCUS_ANNOTATION_KEYSTROKE,It as LateFocusButtonView,St as LateFocusDropdownButtonView,C as Permissions,At as SuggestionsConversion,Ct as UserView,yt as Users,Et as fixElementSuggestionRange,Nt as getAllMarkersDomElementsSorted,Mt as getDateTimeFormatter,Tt as getMarkerDomElement,k as hashObject,Ot as sanitizeEditorConfig,Vt as setupThreadKeyboardNavigation,J as splitSuggestionMarkerName,Dt as surroundingMarkersDetector,Bt as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x5c6081,Editor as _0xfb7eca,Plugin as _0x3ef8e2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xe246c,Collection as _0x1960b3,uid as _0x1ad9b6,toArray as rt,first as _0x315271,FocusTracker as ts,KeystrokeHandler as _0x49892a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x513579,IconView as st,ButtonView as _0x5f1be3,DropdownButtonView as _0x1a89fd,FocusCycler as _0xc2a936,isViewWithFocusCycler as _0x21f91a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x5dc1c9,IconCancel as _0x2e4957}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x4517aa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x450e76,MoveOperation as _0x56f860,ModelPosition as _0x325155,ModelRange as _0x5ce1b5,MarkerOperation as _0x29192c,MergeOperation as _0x21b4e8,SplitOperation as _0x4822f2,RenameOperation as _0x2def0d,AttributeOperation as _0x3257bb,ModelTreeWalker as _0x4601a5,ModelText as _0x2a45f1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x2a86d0}from'diff';class C extends _0x5c6081{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x23c703,_0x324ee3){let _0x3157ff;if(_0x324ee3||(_0x324ee3=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x324ee3?_0x3157ff=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x3157ff=this['context']['editors']['find'](_0x1ba557=>_0x1ba557['config']['get']('collaboration.channelId')==_0x324ee3)),!_0x3157ff)throw new _0xe246c('permissions-set-permissions-invalid-channel-id',null);const _0x3ab65a=_0x3157ff['plugins'],_0x1ce722=_0x3ab65a['has']('CommentsRepository')?_0x3ab65a['get']('CommentsRepository'):void 0x0,_0x3ec64a=_0x3ab65a['has']('CommentsOnly')&&_0x3ab65a['get']('CommentsOnly'),_0x551a94=_0x23c703['includes']('document:write'),_0x5cc59b=_0x23c703['includes']('comment:modify_all'),_0x55ac3b=_0x23c703['includes']('comment:admin'),_0x229d7e=_0x23c703['includes']('comment:write'),_0xf11827=_0x229d7e||_0x55ac3b,_0x3f8b11=_0xf11827||_0x5cc59b,_0xdf5c0d=_0x551a94||_0xf11827;(_0x3ec64a&&(_0x3ec64a['isEnabled']=!_0x551a94&&_0x3f8b11),_0x3157ff instanceof _0xfb7eca)&&(!(_0x551a94||_0x3f8b11&&_0x1ce722)?_0x3157ff['enableReadOnlyMode']('no-permissions'):_0x3157ff['disableReadOnlyMode']('no-permissions'));if(_0x1ce722){_0x1ce722['setPermissions']({'admin':_0x55ac3b,'modifyAll':_0x5cc59b,'write':_0x229d7e,'resolve':_0xdf5c0d},_0x324ee3);const _0x1e8bc3=_0x3157ff instanceof _0xfb7eca&&_0x3157ff['commands']['get']('addCommentThread');_0x1e8bc3&&(_0xf11827?_0x1e8bc3['clearForceDisabled']('noPermissions'):_0x1e8bc3['forceDisabled']('noPermissions'));}}}function U(_0x15a5d4,_0x523f8e){const t=_0x15a5d4['t'];switch(_0x523f8e){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class ct extends _0x5c6081{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}constructor(_0x5b8441){super(_0x5b8441),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x1960b3(),this['_locale']=_0x5b8441['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x59f15c,name:_0x2584a5,..._0x42e5d9}){if(!_0x59f15c||'string'!=typeof _0x59f15c)throw new _0xe246c('users-add-invalid-id');if(this['users']['has'](_0x59f15c))throw new _0xe246c('users-add-duplicated-id',null,{'id':_0x59f15c});const _0x1f396c=this['context']['config']['get']('users.getInitialsCallback'),_0x1edad7={..._0x42e5d9,'id':_0x59f15c,'name':A(this['_locale'],_0x2584a5),'color':this['_getNextColor']()};_0x1edad7['name']=A(this['_locale'],_0x1edad7['name']);const _0x52cbfc=new lt(_0x1edad7,_0x1f396c);return this['users']['add'](_0x52cbfc),_0x52cbfc;}['getUser'](_0x5d4381){return this['users']['get'](_0x5d4381);}['useAnonymousUser'](){const _0xc69790=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0xc69790);}['defineMe'](_0x2cf083){if(this['_myId'])throw new _0xe246c('users-me-already-defined',null);const _0x8ea062=this['getUser'](_0x2cf083);if(!_0x8ea062)throw new _0xe246c('users-me-missing-user',null);this['_myId']=_0x2cf083,_0x8ea062['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x159652=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x159652&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x255823=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x255823,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x547e10,_0x341f67){this['id']=_0x547e10['id'],this['color']=_0x547e10['color'],this['name']=_0x547e10['name'],this['initials']=_0x341f67?_0x341f67(this['name']):this['_computeInitials'](),this['avatar']=_0x547e10['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5223b2=this['name']['split']('\x20')['filter'](_0x22bf2a=>/^[\p{Letter}]/u['test'](_0x22bf2a));return 0x1===_0x5223b2['length']?this['_getInitial'](_0x5223b2[0x0]):0x0===_0x5223b2['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5223b2[0x0])+this['_getInitial'](_0x5223b2[_0x5223b2['length']-0x1]);}['_getInitial'](_0x398c74){return String['fromCodePoint'](_0x398c74['codePointAt'](0x0))['toUpperCase']();}}function A(_0xd62ba7,_0x5223f9=''){return''==(_0x5223f9=_0x5223f9['trim']())?U(_0xd62ba7,'Anonymous'):_0x5223f9;}class ut{['_id'];constructor(_0x4447e2){this['_id']=_0x4447e2;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}}class ht extends _0x513579{['name'];['notificationView'];constructor(_0x26d3cf,_0x2c3209,_0x23cf2c){super(_0x26d3cf),this['name']=_0x2c3209['name'],this['notificationView']=null;const _0x26209a=['ck','ck-user'],_0x26598a=['ck','ck-user__img'];if(_0x2c3209['isAnonymous']&&_0x26598a['push']('ck-user__anonymous'),!_0x2c3209['isAnonymous']&&_0x2c3209['isMe']&&_0x26209a['push']('ck-user_me'),_0x2c3209['avatar']&&_0x26598a['push']('ck-user__avatar'),_0x23cf2c){const _0x5be70a=new st();_0x5be70a['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x5be70a['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x23cf2c},'children':[_0x5be70a]};}const _0x31fe89=[{'tag':'div','attributes':{'class':_0x26598a,'style':{'background-image':_0x2c3209['avatar']?'url(\x27'+_0x2c3209['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x2c3209['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x2c3209['name']},'children':[{'text':_0x2c3209['initials']}]}];this['notificationView']&&_0x31fe89['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x26209a,'data-user-id':_0x2c3209['id']},'children':_0x31fe89});}}class dt extends _0x513579{['id'];constructor(_0x235620,_0x3c3ed2){super(_0x235620),this['id']='ck-aria-description-'+_0x1ad9b6(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3c3ed2}]});}}class ft extends _0x5f1be3{['render'](){super['render'](),re(this);}}class gt extends _0x1a89fd{['render'](){super['render'](),re(this);}}function re(_0x1cf304){_0x1cf304['listenTo'](_0x1cf304['element'],'mousedown',(_0x18a9a8,_0x485410)=>{_0x485410['stopPropagation'](),_0x485410['preventDefault']();}),_0x1cf304['listenTo'](_0x1cf304['element'],'mouseup',()=>{_0x1cf304['element']['focus']();});}function v(_0x52aa98){const _0x348a2d=_0x52aa98['split'](':');return{'group':_0x348a2d[0x0],'type':_0x348a2d[0x1],'subType':_0x348a2d['length']>=0x5?_0x348a2d[0x2]:null,'id':_0x348a2d['length']<0x5?_0x348a2d[0x2]:_0x348a2d[0x3],'authorId':_0x348a2d['length']<0x5?_0x348a2d[0x3]:_0x348a2d[0x4],'markerCount':0x6==_0x348a2d['length']?_0x348a2d[0x5]:null};}function mt(_0x540095,_0x28568a){const _0x2f92bd=_0x540095['end']['nodeBefore'];if(_0x2f92bd&&_0x2f92bd['is']('element')&&_0x28568a['schema']['isBlock'](_0x2f92bd)&&!_0x28568a['schema']['isObject'](_0x2f92bd)){const _0x37004a=_0x28568a['createPositionAt'](_0x2f92bd,'end');return _0x28568a['createRange'](_0x540095['start'],_0x37004a);}return _0x540095;}class M extends _0x3ef8e2{['afterInit'](){const _0x2d9a6e=this['editor'];if(!_0x2d9a6e['plugins']['has']('AlignmentEditing'))return;_0x2d9a6e['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x3ef8e2{['afterInit'](){const _0x34862b=this['editor'],_0x5bc737=_0x34862b['plugins']['get']('SuggestionsConversion');for(const _0x421321 of ii){if(!_0x34862b['plugins']['has'](_0x421321))continue;const _0x1e958c=_0x421321['slice'](0x0,-0x7)['toLowerCase']();_0x5bc737['registerInlineAttribute'](_0x1e958c);}}}class I extends _0x3ef8e2{['afterInit'](){const _0x5bc143=this['editor'],_0x5624fd=_0x5bc143['plugins']['get']('SuggestionsConversion');_0x5bc143['plugins']['has']('BookmarkEditing')&&_0x5624fd['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x3ef8e2{['afterInit'](){const _0x2c5a3a=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x13b4de,commandName:_0x25dde1}of no)this['editor']['plugins']['has'](_0x13b4de)&&_0x2c5a3a['registerInlineAttribute'](_0x25dde1);}}class T extends _0x3ef8e2{['afterInit'](){const _0x1c96ed=this['editor'];if(!_0x1c96ed['plugins']['has']('HighlightEditing'))return;_0x1c96ed['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x3ef8e2{['afterInit'](){const _0x34710a=this['editor'];if(!_0x34710a['plugins']['has']('HtmlEmbed'))return;_0x34710a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x3ef8e2{['afterInit'](){const _0x11fb3d=this['editor'];if(!_0x11fb3d['plugins']['has']('ImageEditing'))return;const _0x28e924=_0x11fb3d['plugins']['get']('SuggestionsConversion');_0x28e924['registerBlockAttribute']('src'),_0x11fb3d['plugins']['has']('ImageResize')&&_0x28e924['registerBlockAttribute']('resizedWidth'),_0x11fb3d['plugins']['has']('ImageTextAlternativeEditing')&&_0x28e924['registerBlockAttribute']('alt'),_0x11fb3d['plugins']['has']('PictureEditing')&&_0x28e924['registerBlockAttribute']('sources'),_0x11fb3d['plugins']['has']('ImageSizeAttributes')&&(_0x28e924['registerBlockAttribute']('width'),_0x28e924['registerBlockAttribute']('height'));}}class $ extends _0x3ef8e2{['afterInit'](){const _0x1d51e8=this['editor'],_0x968ceb=_0x1d51e8['plugins']['get']('SuggestionsConversion');_0x1d51e8['plugins']['has']('IndentBlock')&&_0x968ceb['registerBlockAttribute']('blockIndent');}}class x extends _0x3ef8e2{['afterInit'](){const _0x478df0=this['editor'];if(!_0x478df0['plugins']['has']('LineHeight'))return;_0x478df0['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x3ef8e2{['afterInit'](){const _0x4eac52=this['editor'];if(!_0x4eac52['plugins']['has']('LinkEditing'))return;const _0x3136e5=_0x4eac52['plugins']['get']('SuggestionsConversion'),_0x4d4685=_0x4eac52['commands']['get']('link');_0x3136e5['registerInlineAttribute']('linkHref');for(const _0x2ea135 of _0x4d4685['manualDecorators'])_0x3136e5['registerInlineAttribute'](_0x2ea135['id']);}}class N extends _0x3ef8e2{['afterInit'](){const _0x5b17c1=this['editor'];if(!_0x5b17c1['plugins']['has']('ListEditing'))return;const _0x4bc460=_0x5b17c1['plugins']['get']('SuggestionsConversion'),_0x1c9958=_0x5b17c1['plugins']['has']('TodoListEditing');_0x4bc460['registerBlockAttribute']('listItemId'),_0x4bc460['registerBlockAttribute']('listType'),_0x4bc460['registerBlockAttribute']('listIndent'),_0x1c9958&&_0x4bc460['registerBlockAttribute']('todoListChecked');}}class P extends _0x3ef8e2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4b45f4=this['editor']['config']['get']('list.properties'),_0x31bd6b=this['editor']['plugins']['get']('SuggestionsConversion');_0x4b45f4['styles']&&_0x31bd6b['registerBlockAttribute']('listStyle'),_0x4b45f4['reversed']&&_0x31bd6b['registerBlockAttribute']('listReversed'),_0x4b45f4['startIndex']&&_0x31bd6b['registerBlockAttribute']('listStart');}}class K extends _0x3ef8e2{['afterInit'](){const _0x45c78b=this['editor'],_0x8d5785=_0x45c78b['plugins']['get']('SuggestionsConversion');_0x45c78b['plugins']['has']('MultiLevelList')&&_0x8d5785['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x3ef8e2{['afterInit'](){const _0x421738=this['editor'];if(!_0x421738['plugins']['has']('Style')||!_0x421738['plugins']['has']('DataSchema')||!_0x421738['config']['get']('style.definitions'))return;const _0x544dad=_0x421738['plugins']['get']('SuggestionsConversion'),_0x442027=_0x421738['config']['get']('style.definitions'),_0x56da11=_0x421738['plugins']['get']('GeneralHtmlSupport'),_0x211d3f=_0x421738['plugins']['get']('StyleUtils')['normalizeConfig'](_0x421738['plugins']['get']('DataSchema'),_0x442027),_0x219677=new Set();for(const _0x2b5eb3 of _0x211d3f['block']){const _0x3c5ff5=_0x56da11['getGhsAttributeNameForElement'](_0x2b5eb3['element']);_0x219677['add'](_0x3c5ff5);}const _0x5b9f42=new Set();for(const _0x3706aa of _0x211d3f['inline']){const _0x1f8bc2=_0x56da11['getGhsAttributeNameForElement'](_0x3706aa['element']);_0x5b9f42['add'](_0x1f8bc2);for(const _0x32bbe1 of _0x3706aa['ghsAttributes'])_0x5b9f42['add'](_0x32bbe1);}for(const _0x228bfd of _0x219677)_0x544dad['registerBlockAttribute'](_0x228bfd);for(const _0x374625 of _0x5b9f42)_0x544dad['registerInlineAttribute'](_0x374625);}}class z extends _0x3ef8e2{['afterInit'](){const _0x5e5b86=this['editor'];if(!_0x5e5b86['plugins']['has']('TableEditing'))return;const _0x1ba6c0=_0x5e5b86['plugins']['get']('SuggestionsConversion');_0x1ba6c0['registerBlockAttribute']('headingRows'),_0x1ba6c0['registerBlockAttribute']('headingColumns');}}class O extends _0x3ef8e2{['afterInit'](){const _0x326669=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x14341e=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x544eac of _0x14341e)_0x326669['registerBlockAttribute'](_0x544eac);}}class R extends _0x3ef8e2{['afterInit'](){const _0x4f42fe=this['editor'],_0x147a76=_0x4f42fe['plugins']['get']('SuggestionsConversion');_0x4f42fe['plugins']['has']('TableLayout')&&_0x147a76['registerBlockAttribute']('tableType');}}class F extends _0x3ef8e2{['afterInit'](){const _0x193dc2=this['editor'],_0x3dc288=this['editor']['plugins']['get']('SuggestionsConversion');_0x193dc2['plugins']['has']('Uploadcare')&&_0x193dc2['plugins']['has']('UploadcareImageEdit')&&_0x3dc288['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x3ef8e2{['afterInit'](){const _0x56a182=this['editor'];if(!_0x56a182['plugins']['has']('ShiftEnter'))return;const _0xf64fcc=_0x56a182['plugins']['get']('SuggestionsConversion'),_0x51f3d5=(_0x1d25ff,_0xa2f22b,_0x3393dc,_0x5cc2f8)=>{if(_0x5cc2f8&&!_0x3393dc['options']['showSuggestionHighlights'])return;if(!_0x3393dc['consumable']['test'](_0xa2f22b['markerRange'],_0x1d25ff['name']))return;const _0x1c721e=_0x56a182['model'];for(const _0x4b728c of _0xa2f22b['markerRange']['getItems']()){if(!_0x4b728c['is']('element','softBreak'))continue;const _0x2ba526='deletion'==_0xa2f22b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1e57a7,authorId:_0x3bc989}=v(_0xa2f22b['markerName']),_0x1e989a=_0x3393dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ba526,'data-suggestion':_0x1e57a7,'data-author-id':_0x3bc989}),_0x280e49=_0x3393dc['mapper']['toViewPosition'](_0x1c721e['createPositionBefore'](_0x4b728c));!_0x5cc2f8&&_0xf64fcc['_activeMarkers']['includes'](_0xa2f22b['markerName'])&&_0x3393dc['writer']['addClass']('ck-suggestion-marker--active',_0x1e989a),_0x3393dc['writer']['insert'](_0x280e49,_0x1e989a),_0x3393dc['mapper']['bindElementToMarker'](_0x1e989a,_0xa2f22b['markerName']);}};_0x56a182['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ecf81,_0x1e9953,_0x41c12a)=>{_0x51f3d5(_0x2ecf81,_0x1e9953,_0x41c12a,!0x1);},{'priority':'high'}),_0x56a182['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43f9a3,_0x39873c,_0x39aeae)=>{_0x51f3d5(_0x43f9a3,_0x39873c,_0x39aeae,!0x0);},{'priority':'high'});}}class J extends _0x3ef8e2{['afterInit'](){const _0x320e74=this['editor'];_0x320e74['plugins']['has']('MediaEmbedEditing')&&(_0x320e74['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x224a3c,{writer:_0x355d05,options:_0x866029})=>{if(_0x866029['showSuggestionHighlights'])return _0x355d05['createEmptyElement']('div');},'converterPriority':'high'}),_0x320e74['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193f7f,_0x63ed55,_0x456855)=>{_0x456855['options']['showSuggestionHighlights']&&_0x193f7f['stop']();},{'priority':'high'}));}}class L extends _0x3ef8e2{['afterInit'](){const _0x1fd948=this['editor'];if(!_0x1fd948['plugins']['has']('Table'))return;_0x1fd948['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x28cbb6,_0x50740a,_0x5693c1)=>{((_0x4c78c9,_0x46b40b,_0x2214cd)=>{if(!_0x2214cd['options']['showSuggestionHighlights'])return;const _0x26d823=_0x46b40b['item'];if(!_0x26d823||!_0x26d823['is']('element','tableCell'))return;const _0x2e04be=_0x2214cd['mapper']['toViewElement'](_0x26d823);if(_0x2e04be){const {id:_0x279c76,authorId:_0x1a7917}=v(_0x46b40b['markerName']);at(_0x2e04be,_0x2214cd['writer'],(_0x3e8b2d,_0x1c782d,_0x49a865)=>{_0x49a865['addClass'](rt(_0x1c782d['classes']),_0x3e8b2d),_0x49a865['setAttribute']('data-suggestion-id',_0x279c76,_0x3e8b2d),_0x49a865['setAttribute']('data-author-id',_0x1a7917,_0x3e8b2d);});}})(0x0,_0x50740a,_0x5693c1);},{'priority':'highest'});}}class Q extends _0x3ef8e2{['afterInit'](){const _0x1e6950=this['editor'];_0x1e6950['plugins']['has']('HorizontalLineEditing')&&_0x1e6950['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x473e28,{writer:_0x315c5c,options:_0x2ca273})=>{if(!_0x2ca273['showSuggestionHighlights'])return null;const _0x1d6a6e=_0x315c5c['createContainerElement']('div'),_0x58704c=_0x315c5c['createEmptyElement']('hr');return _0x315c5c['addClass']('ck-horizontal-line',_0x1d6a6e),_0x315c5c['insert'](_0x315c5c['createPositionAt'](_0x1d6a6e,0x0),_0x58704c),_0x1d6a6e;},'converterPriority':'high'});}}class kt extends _0x3ef8e2{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,Q,E,S,$,x,H,N,P,J,K,G,q,L,z,R,O,F];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20fbcb=this['editor'],_0x455b9a=(_0x12fcf5,_0x178ac4,_0xb145ea)=>{const {id:_0x916ee4,authorId:_0x5cf611,type:_0x39caf0,subType:_0x47cf3c}=v(_0x12fcf5['markerName']),_0x3a2de5=['ck-suggestion-marker',this['_getClassName'](_0x39caf0,_0x47cf3c)];let _0x4f1f28=0xbb8;return!_0xb145ea&&(this['_activeMarkers']['includes'](_0x12fcf5['markerName'])&&(_0x3a2de5['push']('ck-suggestion-marker--active'),_0x4f1f28=0xbc2)),('deletion'==_0x39caf0&&(_0x4f1f28+=0x5),{'classes':_0x3a2de5,'attributes':{'data-suggestion':_0x916ee4,'data-author-id':_0x5cf611},'priority':_0x4f1f28});};_0x20fbcb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a8d73,_0x3dd653)=>_0x455b9a(_0x2a8d73,0x0,!0x1)}),_0x20fbcb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x510531,_0x145979)=>_0x455b9a(_0x510531,0x0,!0x0)}),_0x20fbcb['conversion']['for']('dataDowncast')['add'](_0x10f159=>{_0x10f159['on']('addMarker:suggestion',(_0x9abe9d,_0x5eed16,_0x51ce15)=>{if(!_0x51ce15['options']['showSuggestionHighlights'])return;const _0xcadf01=_0x5eed16['item'];if(!_0xcadf01)return;const _0x4cbab9=_0x51ce15['mapper']['toViewElement'](_0xcadf01);_0x20fbcb['model']['schema']['isObject'](_0xcadf01)&&_0x4cbab9&&!_0x4cbab9['getCustomProperty']('widget')&&_0x4cbab9['is']('containerElement')&&_0x4517aa(_0x4cbab9,_0x51ce15['writer']);},{'priority':'high'});});const _0x580f4f=(_0x3d989e,_0x25a066,_0x481324,_0x5f268d,_0xf00990)=>{if(_0x5f268d&&!_0x481324['options']['showSuggestionHighlights'])return;if(!_0x25a066['item'])return;const {id:_0x26b0e1,authorId:_0xd107fc,subType:_0x33b2a7}=v(_0x25a066['markerName']);if(_0xf00990){const _0x30049d=_0x33b2a7['split']('|')[0x0];if(!this['isBlockAttribute'](_0x30049d))return;}if(_0x25a066['item']['is']('selection'))return void _0x481324['consumable']['consume'](_0x25a066['item'],_0x3d989e['name']);const _0x132818=_0x481324['mapper']['toViewElement'](_0x25a066['item']);if(_0x25a066['item']['is']('element')&&_0x20fbcb['model']['schema']['isBlock'](_0x25a066['item'])&&!_0x132818['getCustomProperty']('addHighlight')){_0x481324['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x132818),_0x481324['writer']['setAttribute']('data-suggestion',_0x26b0e1,_0x132818),_0x481324['writer']['setAttribute']('data-author-id',_0xd107fc,_0x132818),_0x481324['mapper']['bindElementToMarker'](_0x132818,_0x25a066['markerName']),_0x5f268d||(this['_activeMarkers']['includes'](_0x25a066['markerName'])?_0x481324['writer']['addClass']('ck-suggestion-marker--active',_0x132818):_0x481324['writer']['removeClass']('ck-suggestion-marker--active',_0x132818));for(const _0x2fe266 of _0x20fbcb['model']['createRangeIn'](_0x25a066['item'])['getItems']())_0x481324['consumable']['consume'](_0x2fe266,_0x3d989e['name']);_0x481324['consumable']['consume'](_0x25a066['item'],_0x3d989e['name']);}},_0xffea02=(_0x29a468,_0x3b570e,_0x632a6f,_0x35c32f)=>{const _0x5c800f=_0x632a6f['mapper']['markerNameToElements'](_0x3b570e['markerName']);if(_0x5c800f){if(_0x35c32f){const {subType:_0x40db38}=v(_0x3b570e['markerName']),_0x29c16e=_0x40db38['split']('|')[0x0];if(!this['isBlockAttribute'](_0x29c16e))return;}for(const _0x7702c4 of _0x5c800f)_0x7702c4['getCustomProperty']('addHighlight')||(_0x632a6f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7702c4),_0x632a6f['writer']['removeAttribute']('data-suggestion',_0x7702c4),_0x632a6f['writer']['removeAttribute']('data-author-id',_0x7702c4),_0x632a6f['mapper']['unbindElementFromMarkerName'](_0x7702c4,_0x3b570e['markerName']));}};_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x51adeb=>{_0x51adeb['on']('addMarker:suggestion:formatBlock',(_0x41fac3,_0x495446,_0x5417c4)=>{_0x580f4f(_0x41fac3,_0x495446,_0x5417c4,!0x1,!0x1);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x141e90=>{_0x141e90['on']('addMarker:suggestion:attribute',(_0x4a6225,_0x43e0e1,_0xa652a1)=>{_0x580f4f(_0x4a6225,_0x43e0e1,_0xa652a1,!0x1,!0x0);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x5516e3=>{_0x5516e3['on']('removeMarker:suggestion:formatBlock',(_0x2dd52b,_0x41a3e3,_0x1f1a2c)=>{_0xffea02(0x0,_0x41a3e3,_0x1f1a2c,!0x1);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('editingDowncast')['add'](_0x2bc622=>{_0x2bc622['on']('removeMarker:suggestion:attribute',(_0x52693a,_0x17706c,_0x45db3f)=>{_0xffea02(0x0,_0x17706c,_0x45db3f,!0x0);},{'priority':'high'});}),_0x20fbcb['conversion']['for']('dataDowncast')['add'](_0x8b1fe=>{_0x8b1fe['on']('addMarker:suggestion:formatBlock',(_0x4820eb,_0x9ca0f3,_0x5c1e0b)=>{_0x580f4f(_0x4820eb,_0x9ca0f3,_0x5c1e0b,!0x0,!0x1);},{'priority':'highest'});}),_0x20fbcb['conversion']['for']('dataDowncast')['add'](_0x57d304=>{_0x57d304['on']('addMarker:suggestion:attribute',(_0x126fbc,_0x245919,_0x40672e)=>{_0x580f4f(_0x126fbc,_0x245919,_0x40672e,!0x0,!0x0);},{'priority':'highest'});}),_0x20fbcb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ec4c2,_0x2dea3c)=>{if(_0x2dea3c['options']['showSuggestionHighlights']){const {id:_0x11c6d9,authorId:_0x2c7376}=v(_0x4ec4c2);return _0x4ec4c2['includes'](':split')||_0x4ec4c2['includes'](':merge')?{'group':'suggestion','name':_0x4ec4c2['substr'](0xb),'attributes':{'data-suggestion':_0x11c6d9,'data-author-id':_0x2c7376}}:null;}return{'group':'suggestion','name':_0x4ec4c2['substr'](0xb)};}});const _0x35f13d=(_0xb6906c,_0x5ca97c,_0x588a34,_0x291cbd,_0x3d42d6)=>{if(_0x291cbd&&!_0x588a34['options']['showSuggestionHighlights'])return;if(!_0x588a34['consumable']['test'](_0x5ca97c['markerRange'],_0xb6906c['name']))return;const _0x534e2f=this['_activeMarkers'],_0x59bb24=_0x5ca97c['markerRange']['getWalker'](),_0x3ee468=_0x5ca97c['markerRange']['start'],_0x3250d0=_0x20fbcb['model']['schema'];let _0x1ddf4d=null,_0x435d86=null,_0x1f65ba=!0x1,_0x315b74=!0x1;for(const _0x522c92 of _0x59bb24){const _0x4fe791=_0x522c92['item'];_0x1f65ba=_0x1f65ba||_0x3250d0['isContent'](_0x4fe791);const _0x53a8bf=_0x588a34['mapper']['toViewElement'](_0x4fe791);if(_0x53a8bf&&_0x53a8bf['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x522c92['type']&&(_0x3250d0['isBlock'](_0x4fe791)&&!_0x3250d0['isLimit'](_0x4fe791)&&(_0x4fe791['nextSibling']||_0x3ee468['isAtEnd']?_0x1ddf4d&&_0x1ddf4d['parent']==_0x4fe791||(_0x1ddf4d=_0x4fe791,_0x2df98b(_0x522c92['previousPosition']),_0x315b74=!0x0):_0x435d86=_0x435d86||_0x522c92['previousPosition']));}function _0x2df98b(_0x4d1f55){const {id:_0x30daae,authorId:_0x16a85e}=v(_0x5ca97c['markerName']),_0x26b13a=_0x588a34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d42d6,'data-suggestion':_0x30daae,'data-author-id':_0x16a85e}),_0x5ed8e2=_0x588a34['mapper']['toViewPosition'](_0x4d1f55);!_0x291cbd&&_0x534e2f['includes'](_0x5ca97c['markerName'])&&_0x588a34['writer']['addClass']('ck-suggestion-marker--active',_0x26b13a),_0x588a34['writer']['insert'](_0x5ed8e2,_0x26b13a),_0x588a34['mapper']['bindElementToMarker'](_0x26b13a,_0x5ca97c['markerName']);}_0x1f65ba||_0x315b74||!_0x435d86||_0x2df98b(_0x435d86);};_0x20fbcb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x52e4ba,_0xc33eb5,_0x1d0a72)=>{_0x35f13d(_0x52e4ba,_0xc33eb5,_0x1d0a72,!0x1,'merge');},{'priority':'high'}),_0x20fbcb['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bbbe0,_0x17c1e0,_0x45b9fb)=>{_0x35f13d(_0x1bbbe0,_0x17c1e0,_0x45b9fb,!0x0,'merge');},{'priority':'high'}),_0x20fbcb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15d905,_0x3e76fa,_0x1c5975)=>{_0x35f13d(_0x15d905,_0x3e76fa,_0x1c5975,!0x1,'split');},{'priority':'high'}),_0x20fbcb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2fb140,_0x236703,_0x5a19c3)=>{_0x35f13d(_0x2fb140,_0x236703,_0x5a19c3,!0x0,'split');},{'priority':'high'}),_0x20fbcb['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x449f67,_0x115425,_0x488541)=>{((_0x5e4dff,_0x308341,_0x81908b)=>{const _0x50d810=_0x81908b['mapper']['markerNameToElements'](_0x308341['markerName']);if(_0x50d810){for(const _0x4c1b83 of _0x50d810)(_0x4c1b83['hasClass']('ck-suggestion-marker-split')||_0x4c1b83['hasClass']('ck-suggestion-marker-merge'))&&(_0x81908b['mapper']['unbindElementFromMarkerName'](_0x4c1b83,_0x308341['markerName']),_0x81908b['writer']['remove'](_0x4c1b83));}})(0x0,_0x115425,_0x488541);},{'priority':'high'});const _0xe24f10=(_0x4e8311,_0x2801a1,_0x3862ae,_0x59ca5f)=>{if(_0x59ca5f&&!_0x3862ae['options']['showSuggestionHighlights'])return;const _0x377f95=_0x2801a1['markerRange']['start'],_0x3bb295=_0x2801a1['markerRange']['end'],_0x5c6186=_0x20fbcb['model']['schema'];if(!_0x377f95['isTouching'](_0x3bb295)||!_0x377f95['nodeAfter'])return;const _0x7e63e5=_0x377f95['nodeAfter'];if(_0x5c6186['isBlock'](_0x7e63e5)&&!_0x5c6186['isLimit'](_0x7e63e5)&&_0x5c6186['checkChild'](_0x7e63e5,'$text')){if(!_0x3862ae['consumable']['consume'](_0x2801a1['markerRange'],_0x4e8311['name']))return;const {id:_0x2d7603,authorId:_0xfd80e4}=v(_0x2801a1['markerName']),_0x16b49b=_0x3862ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2d7603,'data-author-id':_0xfd80e4}),_0x53b71e=_0x3862ae['mapper']['toViewPosition'](_0x3bb295);!_0x59ca5f&&this['_activeMarkers']['includes'](_0x2801a1['markerName'])&&_0x3862ae['writer']['addClass']('ck-suggestion-marker--active',_0x16b49b),_0x3862ae['writer']['insert'](_0x53b71e,_0x16b49b),_0x3862ae['mapper']['bindElementToMarker'](_0x16b49b,_0x2801a1['markerName']);}};_0x20fbcb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2bfcd5,_0x485f56,_0x526583)=>{_0xe24f10(_0x2bfcd5,_0x485f56,_0x526583,!0x1);},{'priority':'high'}),_0x20fbcb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x46822a,_0x11d2a2,_0x108876)=>{_0xe24f10(_0x46822a,_0x11d2a2,_0x108876,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x470dab,_0x5f2d20,_0x34bd1a)=>{this['_activeMarkers']=_0x34bd1a['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0xcc3483){this['_blockAttributeKeys']['add'](_0xcc3483);}['registerInlineAttribute'](_0x1e9688){this['_inlineAttributeKeys']['add'](_0x1e9688);}['isBlockAttribute'](_0x3684d0){return this['_blockAttributeKeys']['has'](_0x3684d0);}['isInlineAttribute'](_0x6edc7f){return this['_inlineAttributeKeys']['has'](_0x6edc7f);}['isRegisteredAttribute'](_0x588011){return this['isInlineAttribute'](_0x588011)||this['isBlockAttribute'](_0x588011);}['_getClassName'](_0x8615fd,_0x4f75b8){if('attribute'!=_0x8615fd)return'ck-suggestion-marker-'+_0x8615fd;const _0x31ec9f=_0x4f75b8['split']('|')[0x0];return this['isBlockAttribute'](_0x31ec9f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x14e198={},_0x28bc1f){if(void 0x0!==_0x14e198['dateTimeFormat']&&'function'!=typeof _0x14e198['dateTimeFormat'])throw new _0xe246c('invalid-date-time-format');return _0x443f66=>{const _0x3170ad='string'==typeof _0x443f66?tt['fromISO'](_0x443f66):tt['fromJSDate'](_0x443f66),_0x58417d=tt['now'](),_0x12340b=Math['floor'](_0x58417d['diff'](_0x3170ad,'days')['days']);return _0x14e198['dateTimeFormat']?_0x14e198['dateTimeFormat'](_0x3170ad['toJSDate'](),_0x28bc1f&&_0x28bc1f['t']?_0x28bc1f['t']:void 0x0):0x0===_0x12340b?_0x28bc1f?U(_0x28bc1f,'Today')+'\x20'+_0x3170ad['toFormat']('hh:mma'):_0x3170ad['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x12340b?_0x28bc1f?U(_0x28bc1f,'Yesterday')+'\x20'+_0x3170ad['toFormat']('hh:mma'):_0x3170ad['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x12340b<0x7?_0x28bc1f?U(_0x28bc1f,'Last')+'\x20'+U(_0x28bc1f,_0x3170ad['toFormat']('EEEE'))+'\x20'+_0x3170ad['toFormat']('hh:mma'):_0x3170ad['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3170ad['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x581515,_0xbe22d3){const _0x2b5d56=_0x581515['mapper']['markerNameToElements'](_0xbe22d3['name']);if(!_0x2b5d56)return null;const _0x5c80eb=_0x315271(_0x2b5d56['values']());return _0x581515['view']['domConverter']['mapViewToDom'](_0x5c80eb)||null;}function wt(_0x335aea,_0x35a4a2){if(0x0===_0x35a4a2['length'])return null;const _0x17e9b1=[],_0x4cdb10=_0x335aea['view']['domConverter'];for(const _0x4280a9 of _0x35a4a2){const _0x37bbad=_0x335aea['mapper']['markerNameToElements'](_0x4280a9['name']);if(!_0x37bbad)continue;const _0x202530=Array['from'](_0x37bbad)['map'](_0x35858c=>_0x4cdb10['mapViewToDom'](_0x35858c))['filter'](_0x3d55a6=>!!_0x3d55a6);_0x17e9b1['push'](..._0x202530);}if(0x0===_0x17e9b1['length'])return null;const _0x38a00c=[];for(const _0x212a6e of _0x17e9b1){const _0x4faf08=_0x212a6e['getClientRects']()['item'](0x0);_0x4faf08&&_0x38a00c['push']({'x':_0x4faf08['x'],'y':_0x4faf08['y'],'domElement':_0x212a6e});}return 0x0===_0x38a00c['length']?null:(_0x38a00c['sort']((_0x340cb3,_0x328f9f)=>_0x340cb3['y']-_0x328f9f['y']||_0x340cb3['x']-_0x328f9f['x']),_0x38a00c['map'](_0x4c138e=>_0x4c138e['domElement']));}function bt(_0x45efe8,{limit:_0x468ba1,suffix:_0x1c08ae='...'}){const _0x2a55c1=[];let _0x145658=0x0;const _0xbecd8e=_0x45efe8['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x295a4a=0x0;_0x295a4a<_0xbecd8e['length'];_0x295a4a++){let _0x57fca9=_0xbecd8e[_0x295a4a];const _0x10dcdb=tn(_0x57fca9);if(_0x57fca9['startsWith']('<')){if(_0x145658>=_0x468ba1){const _0x45a48d=_0x57fca9['match'](/[a-zA-Z]+/);if(!_0x45a48d){_0xbecd8e[_0x295a4a]='';continue;}const _0x4075a2=_0x45a48d[0x0];_0x57fca9['startsWith']('</')?(_0x2a55c1['length']&&(_0x57fca9=''),_0x2a55c1['pop']()):(_0x2a55c1['push'](_0x4075a2),_0x57fca9='');}}else{if(_0x145658>=_0x468ba1)_0x57fca9='';else{if(_0x145658+_0x10dcdb['length']>=_0x468ba1){let _0x178ad7=_0x468ba1-_0x145658;if('\x20'===_0x10dcdb[_0x178ad7-0x1])_0x178ad7--;else{const _0x55cde9=_0x10dcdb['slice'](_0x178ad7)['indexOf']('\x20');-0x1!==_0x55cde9?_0x178ad7+=_0x55cde9:_0x178ad7=_0x57fca9['length'];}_0x57fca9=_0x10dcdb['slice'](0x0,_0x178ad7)['join']('')+_0x1c08ae,_0x145658=_0x468ba1;}else _0x145658+=_0x10dcdb['length'];}}_0xbecd8e[_0x295a4a]=_0x57fca9;}return _0xbecd8e['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x52fdbb){const _0x3a4132=[];for(let _0x5ae309=0x0;_0x5ae309<_0x52fdbb['length'];_0x5ae309++){const _0x4f2289=_0x52fdbb['substring'](_0x5ae309)['match'](/^&[a-z0-9#]+;/);if(_0x4f2289){const _0x32608f=_0x4f2289[0x0];_0x3a4132['push'](_0x32608f),_0x5ae309+=_0x32608f['length']-0x1;}else _0x3a4132['push'](_0x52fdbb[_0x5ae309]);}return _0x3a4132;}class V extends _0x513579{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x10b056){super(_0x10b056);const _0x46ea40=this['bindTemplate'];this['set']('message',U(_0x10b056,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x10b056,U(_0x10b056,'Yes'),_0x5dc1c9,'submit'),this['cancelView']=this['_createButtonView'](_0x10b056,U(_0x10b056,'No'),_0x2e4957,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x49892a(),this['focusCycler']=new _0xc2a936({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x46ea40['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x1a7a47,_0x332754,_0x37e751,_0x399d4d){const _0x38f29e=new _0x5f1be3(_0x1a7a47);return _0x38f29e['label']=_0x332754,_0x38f29e['icon']=_0x37e751,_0x38f29e['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x399d4d}}),_0x38f29e['on']('execute',()=>this['fire'](_0x399d4d)),_0x38f29e;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0xd43e18=>{this['keystrokes']['listenTo'](_0xd43e18['element']),this['focusTracker']['add'](_0xd43e18['element']);}),this['keystrokes']['set']('esc',(_0x5ca0ba,_0x2f3439)=>{this['fire']('cancel'),_0x2f3439();});}}function vt(_0x3e3a1e){return class extends _0x3e3a1e{['showConfirm'](_0x5495b4,_0x2df5a2){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x5495b4,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2df5a2['appendChild'](this['confirmView']['element']),_0x2df5a2['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x5233ec,_0x447793,_0x303777)=>{_0x303777||_0x2df5a2['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x1c74a6=>this['confirmView']['on']('submit',_0x1c74a6));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function k(_0x5620db){let _0x21f559=0x0,_0x4fb5ac=0x0;for(const _0x215d1a of ne(_0x5620db))_0x21f559=(_0x21f559<<0x5)-_0x21f559+_0x215d1a,_0x21f559&=_0x21f559,[_0x21f559,_0x4fb5ac]=[_0x4fb5ac,_0x21f559];return ie(_0x21f559)+ie(_0x4fb5ac);}function*ee(_0x52d6dc){null==_0x52d6dc||null==_0x52d6dc?yield 0x12b9b0a1:0x0===_0x52d6dc||!0x1===_0x52d6dc?yield 0x0:0x1===_0x52d6dc||0x1==_0x52d6dc?yield 0x1:Array['isArray'](_0x52d6dc)?yield*function*(_0x1b9fa6){for(const _0x4d4b4d of _0x1b9fa6)yield*ee(_0x4d4b4d);}(_0x52d6dc):'object'==typeof _0x52d6dc?yield*ne(_0x52d6dc):'string'==typeof _0x52d6dc?yield*oe(_0x52d6dc):'number'==typeof _0x52d6dc&&(yield _0x52d6dc);}function*ne(_0x494a8c){if(yield te('{'),_0x494a8c){const _0x5cc434=Object['keys'](_0x494a8c)['sort']();for(const _0x4009d3 of _0x5cc434){yield*oe(_0x4009d3),yield te(':');const _0x47cf42=_0x494a8c[_0x4009d3];yield*ee(_0x47cf42);}}yield te('}');}function*oe(_0x2bc561){yield te('\x22');for(const _0x20bfd5 of _0x2bc561)yield te(_0x20bfd5);yield te('\x22');}function te(_0xb5bf20){return _0xb5bf20['charCodeAt'](0x0);}function ie(_0x3b7d3a){return(_0x3b7d3a*=Math['sign'](_0x3b7d3a))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x4382c6,_0x401c13,_0x80e9be,_0x13a2d9=[]){const _0x1f5ae7='string'==typeof _0x4382c6?_0x80e9be['get'](_0x4382c6)['constructor']:_0x4382c6['prototype']['constructor'];if(_0x401c13['has'](_0x1f5ae7))return _0x401c13['get'](_0x1f5ae7);_0x401c13['set'](_0x1f5ae7,!0x0);const _0xaf4264=[...et,..._0x13a2d9]['map'](_0x450346=>{if(_0x80e9be['has'](_0x450346))return _0x80e9be['get'](_0x450346)['constructor'];})['filter'](_0x44b59c=>_0x44b59c);if(_0x1f5ae7&&_0xaf4264['includes'](_0x1f5ae7))return _0x401c13['set'](_0x1f5ae7,!0x1),!0x1;if(!_0x1f5ae7['requires'])return _0x401c13['set'](_0x1f5ae7,!0x0),!0x0;const _0x5001ce=_0x1f5ae7['requires']['every'](_0x113d95=>ot(_0x113d95,_0x401c13,_0x80e9be,_0x13a2d9));return _0x401c13['set'](_0x1f5ae7,_0x5001ce),_0x5001ce;}function Ct(_0x3cd991,_0x2de092){const _0x26e186={};for(const _0x550bfb of _0x3cd991['config']['names']())nt['includes'](_0x550bfb)||(_0x26e186[_0x550bfb]=_0x3cd991['config']['get'](_0x550bfb));const _0x3d542a=_0x26e186['plugins']||[],_0x176c72=_0x3cd991['constructor']['builtinPlugins']||[],_0x144fd2=_0x3d542a['length']?_0x3d542a:_0x176c72,_0x37476d=_0x26e186['extraPlugins']||[];delete _0x26e186['extraPlugins'];const _0x749315=_0x26e186['removePlugins']||[];delete _0x26e186['removePlugins'];const _0x3c9285=_0x3cd991['_context']['config']['get']('plugins')||[],_0x11045=_0x144fd2['concat'](_0x37476d)['concat'](_0x3c9285)['map'](_0x4e8e42=>'string'==typeof _0x4e8e42?_0x176c72['find'](_0xb360cc=>_0xb360cc['pluginName']==_0x4e8e42):_0x4e8e42)['filter'](_0x46ab8d=>!_0x749315['includes'](_0x46ab8d)&&!_0x749315['includes'](_0x46ab8d['pluginName'])),_0xc1c0fe=Array['from'](new Set(_0x11045)),_0x2c42bd=new Map();return _0x26e186['plugins']=_0xc1c0fe['filter'](_0x40f435=>ot(_0x40f435,_0x2c42bd,_0x3cd991['plugins'],_0x2de092)),_0x26e186;}function _t(_0x1787d2,_0x3da91f){const _0xf69654=[];_0x1787d2['document']['selection']['on']('change:range',()=>{const _0x208d04=function(_0x45bf06,_0xed0090){const _0x420fb0=[];for(const _0xeb2328 of _0x45bf06['markers']){const _0x19e08c=_0xeb2328['getRange']();(_0x19e08c['containsPosition'](_0xed0090)||_0x19e08c['start']['isEqual'](_0xed0090)||_0x19e08c['end']['isEqual'](_0xed0090))&&_0x420fb0['push'](_0xeb2328);}return _0x420fb0;}(_0x1787d2,_0x1787d2['document']['selection']['focus']),_0x2393ea=[],_0x22febd=[],_0x5b1b1d=[];for(const _0x530a6b of _0xf69654)_0x208d04['includes'](_0x530a6b)||_0x2393ea['push'](_0x530a6b);for(const _0x5d350b of _0x208d04)_0xf69654['includes'](_0x5d350b)||_0x22febd['push'](_0x5d350b),_0x5b1b1d['push'](_0x5d350b);(_0x2393ea['length']||_0x22febd['length'])&&_0x3da91f({'left':_0x2393ea,'entered':_0x22febd}),_0xf69654['length']=0x0,_0xf69654['push'](..._0x5b1b1d);});}const xt='Ctrl+Shift+E';function It(_0x496778,_0x1bcf97){const _0x23fc88=_0x496778['element'];_0x496778['keystrokes']['listenTo'](_0x23fc88);for(const _0x14e6fa of _0x1bcf97)ro(_0x496778,_0x14e6fa);_0x1bcf97['on']('change',(_0x75ffa,_0x24535c)=>{for(const _0xe027d3 of _0x24535c['removed'])to(_0x496778,_0xe027d3);for(const _0x5e120d of Array['from'](_0x24535c['added'])['reverse']())ro(_0x496778,_0x5e120d);}),_0x496778['keystrokes']['set']('enter',(_0x227e0,_0x35c6d5)=>{_0x23fc88===_0x227e0['target']&&(_0x496778['focusCycler']['focusFirst'](),_0x35c6d5());},{'filter':_0x5940fa=>_0x5940fa['target']===_0x23fc88}),_0x496778['keystrokes']['set']('esc',(_0x4269cb,_0x1bb457)=>{_0x23fc88!==_0x4269cb['target']?_0x496778['focus']():_0x496778['fire']('escape'),_0x1bb457();}),_0x496778['keystrokes']['set']('arrowdown',(_0x574a87,_0x433a9b)=>{_0x23fc88===_0x574a87['target']&&(_0x496778['fire']('arrowdown'),_0x433a9b());}),_0x496778['keystrokes']['set']('arrowup',(_0x57d70a,_0x5aa42e)=>{_0x23fc88===_0x57d70a['target']&&(_0x496778['fire']('arrowup'),_0x5aa42e());});}function ro(_0x5947bd,_0x2a4855){_0x2a4855['isRendered']&&(_0x5947bd['focusTracker']['add'](_0x2a4855['element']),_0x5947bd['keystrokes']['listenTo'](_0x2a4855['element']),_0x21f91a(_0x2a4855)&&function(_0x5a8a2b,_0x5a6033){const _0x100d53=_0x5a8a2b['actions'],_0x5be594=_0x5a6033['actions'];for(const _0x6bf368 of Object['keys'](_0x100d53))if(_0x6bf368 in _0x5be594&&_0x100d53[_0x6bf368]!==_0x5be594[_0x6bf368])return!0x1;return!0x0;}(_0x5947bd['focusCycler'],_0x2a4855['focusCycler'])&&_0x5947bd['focusCycler']['chain'](_0x2a4855['focusCycler']));}function to(_0x43e3fc,_0x232209){_0x43e3fc['focusTracker']['remove'](_0x232209['element']),_0x43e3fc['keystrokes']['stopListening'](_0x232209['element']),_0x21f91a(_0x232209)&&_0x43e3fc['focusCycler']['unchain'](_0x232209['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x5c6081{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0xfb7eca?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x120d6b,_0x19e905)=>{_0x19e905['on']('ready',()=>{this['_integrateEditor'](_0x19e905);});});}get['editor'](){if(this['context']instanceof _0xfb7eca)return this['context'];{const _0x2d3044=this['context']['editors']['first'];if(!_0x2d3044)throw new _0xe246c('documentcompare-no-editor',this);return _0x2d3044;}}['getDiff'](_0x4d9064,_0x4a88ef,_0x3fed11={'anchor':'main','markDeletions':!0x1}){let _0x21b9fe,_0x143110;const _0x26da65=this['editor'];if('string'==typeof _0x3fed11['anchor']){const _0x447b3c=_0x26da65['model']['document']['getRoot'](_0x3fed11['anchor']);if(!_0x447b3c)throw new _0xe246c('documentcompare-compare-no-root',this,{'anchor':_0x3fed11['anchor']});_0x21b9fe=_0x447b3c,_0x143110=_0x26da65['model']['createPositionAt'](_0x447b3c,0x0);}else _0x21b9fe=_0x3fed11['anchor']['clone'](),_0x143110=_0x3fed11['anchor']['clone']();const _0x25f0ce=_0x26da65['data']['parse'](_0x4d9064,_0x21b9fe),_0x41b2be=_0x26da65['data']['parse'](_0x4a88ef,_0x21b9fe);return new Mt(_0x25f0ce,_0x41b2be,_0x26da65,{'anchor':_0x143110,'markDeletions':_0x3fed11['markDeletions']});}['isMarkedRemoveOperation'](_0x10a3fd){return'marker'==_0x10a3fd['type']&&_0x10a3fd['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x549cc0){_0x549cc0['conversion']['for']('upcast')['add'](_0x3b7b3e=>{_0x3b7b3e['on']('element',(_0x468698,_0x288e0f,_0x82e835)=>{if(_0x288e0f['modelRange'])for(const _0x5744c1 of _0x288e0f['modelRange']['getItems']({'shallow':!0x0})){if(_0x5744c1['is']('$textProxy'))continue;const _0x347868=_0x288e0f['viewItem']['getAttribute'](Et);_0x347868&&_0x82e835['writer']['setAttribute'](St,_0x347868,_0x5744c1);}},{'priority':'lowest'});}),_0x549cc0['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x226ba9,_0xba0715,_0x3569b1,_0x550e1e){this['_editor']=_0x3569b1,this['_markDeletions']=!!_0x550e1e['markDeletions'],this['_anchor']=_0x550e1e['anchor'];const _0x2423c4=this['_tokenizeModel'](_0x226ba9),_0x2b19ff=this['_tokenizeModel'](_0xba0715);this['_diffItems']=this['_diffModelTokens'](_0x2423c4,_0x2b19ff),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x226ba9['markers'],_0xba0715['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x2ba450=this['_editor']['model']['document'],_0x4de50b=[];let _0x5d482c=_0x2ba450['version'];for(const _0x29a717 of this['_operationsData'])switch(_0x29a717['type']){case'attribute':{const _0x378296=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x4eb3a3=_0x378296['getShiftedBy'](_0x29a717['howMany']),_0x3dd76d=new _0x5ce1b5(_0x378296,_0x4eb3a3),_0x111d81=JSON['parse'](_0x29a717['oldValue']),_0x3c3981=JSON['parse'](_0x29a717['newValue']);_0x4de50b['push'](new _0x3257bb(_0x3dd76d,_0x29a717['key'],_0x111d81,_0x3c3981,_0x5d482c++));break;}case'insert':{const _0x4b531f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x34336a=this['_makeModelFromTokens'](_0x29a717['tokens']);_0x4de50b['push'](new _0x450e76(_0x4b531f,_0x34336a,_0x5d482c++));break;}case'remove':{const _0x129379=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x179762=new _0x325155(_0x2ba450['graveyard'],[0x0]);_0x4de50b['push'](new _0x56f860(_0x129379,_0x29a717['howMany'],_0x179762,_0x5d482c++));break;}case'rename':{const _0x2a01f1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']);_0x4de50b['push'](new _0x2def0d(_0x2a01f1,_0x29a717['oldName'],_0x29a717['newName'],_0x5d482c++));break;}case'split':{const _0x4b78ad=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']),_0x1237ad=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['path']['slice'](0x0,-0x1));_0x1237ad['offset']++,_0x4de50b['push'](new _0x4822f2(_0x4b78ad,Number['NEGATIVE_INFINITY'],_0x1237ad,null,_0x5d482c++));break;}case'merge':{const _0x29b514=_0x29a717['path']['slice'](),_0x2b1e24=_0x29b514['slice'](0x0,-0x1);_0x2b1e24[_0x2b1e24['length']-0x1]++,_0x2b1e24['push'](0x0);const _0x1b7e42=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2b1e24),_0x35d7b9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29b514),_0xf14c33=new _0x325155(_0x2ba450['graveyard'],[0x0]);_0x4de50b['push'](new _0x21b4e8(_0x1b7e42,Number['NEGATIVE_INFINITY'],_0x35d7b9,_0xf14c33,_0x5d482c++));break;}case'marker':case'markedRemove':{let _0x375724=null;if(_0x29a717['range']){const _0x574fc8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['start']),_0x2cec80=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['end']);_0x375724=new _0x5ce1b5(_0x574fc8,_0x2cec80);}const _0x5152f5='marker'==_0x29a717['type']?_0x29a717['name']:'$markedRemove:'+_0x1ad9b6();_0x4de50b['push'](new _0x29192c(_0x5152f5,null,_0x375724,_0x2ba450['model']['markers'],!0x0,_0x5d482c++));break;}case'unwrap':{const _0x40aedd=_0x29a717['path']['slice']();_0x40aedd['push'](0x0);const _0x22c852=_0x29a717['path']['slice'](),_0x5f3efd=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x40aedd),_0x448c97=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x22c852),_0x3ad918=new _0x325155(_0x2ba450['graveyard'],[0x0]);_0x4de50b['push'](new _0x56f860(_0x5f3efd,_0x29a717['howMany'],_0x448c97,_0x5d482c++)),_0x4de50b['push'](new _0x56f860(_0x448c97['getShiftedBy'](_0x29a717['howMany']),0x1,_0x3ad918,_0x5d482c++));break;}case'wrap':{const _0x24a7af=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['start']),_0x488b41=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x29a717['range']['end']),_0x3e27e6=_0x29a717['token']['element']['_clone'](!0x1),_0x46d9cf=_0x29a717['range']['end']['slice']();_0x46d9cf['push'](0x0);const _0x1e1df9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x46d9cf);_0x4de50b['push'](new _0x450e76(_0x488b41,_0x3e27e6,_0x5d482c++)),_0x4de50b['push'](new _0x56f860(_0x24a7af,_0x488b41['offset']-_0x24a7af['offset'],_0x1e1df9,_0x5d482c++));break;}}return _0x4de50b;}['_tokenizeModel'](_0x52f3af){const _0x3e6d13=[],_0x409727=_0x5ce1b5['_createIn'](_0x52f3af),_0x5d40ec=new _0x4601a5({'boundaries':_0x409727});let _0x38f509='',_0x51d57b=null;const _0x137424=[''],_0x279e6d=new Map();for(const _0x27b997 of _0x5d40ec)if('elementStart'==_0x27b997['type']||'elementEnd'==_0x27b997['type']){let _0x4c6f38=_0x137424[0x0];''!==_0x38f509&&(_0x3e6d13['push'](...this['_makeTokensFromTextByWords'](_0x38f509,_0x51d57b,_0x4c6f38)),_0x38f509='');const _0x572400=_0x27b997['item'];let _0xe96e72;_0x572400['getAttribute'](St)?_0xe96e72=_0x572400['getAttribute'](St):'elementStart'==_0x27b997['type']?(_0xe96e72=_(_0x572400),_0x279e6d['set'](_0x572400,_0xe96e72)):_0xe96e72=_0x279e6d['get'](_0x572400);const _0xf96e84=this['_getElementCategory'](_0x572400);'solid'==_0xf96e84&&('elementStart'==_0x27b997['type']?(_0x4c6f38=_0xe96e72,_0x137424['unshift'](_0x4c6f38)):_0x137424['shift']());const _0x36b6d6={'type':'element','element':_0x572400,'elementId':_0xe96e72,'category':_0xf96e84,'isStart':'elementStart'==_0x27b997['type'],'limitId':_0x4c6f38};_0x3e6d13['push'](_0x36b6d6);}else''==_0x38f509&&(_0x51d57b=_0x27b997['previousPosition']['clone']()),_0x38f509+=_0x27b997['item']['data'];return''!==_0x38f509&&_0x3e6d13['push'](...this['_makeTokensFromTextByWords'](_0x38f509,_0x51d57b,_0x137424[0x0])),_0x3e6d13;}['_makeTokensFromTextByWords'](_0x823e51,_0x32163c,_0x2f7e05){const _0xabef52=_0x823e51['matchAll'](/(\s)/g),_0xa82ac0=Array['from'](_0xabef52)['map'](_0x5286af=>_0x5286af['index']);_0xa82ac0['push'](_0x823e51['length']),0x0==_0xa82ac0[0x0]&&_0xa82ac0['shift']();const _0x27d7db=[],_0x3a3732=_0x32163c['parent'];let _0x39a5ac=0x0,_0x3fc393=_0x32163c['offset'];for(let _0x4415ea=0x0;_0x4415ea<_0xa82ac0['length'];_0x4415ea++)_0x27d7db['push']({'type':'text','data':_0x823e51['slice'](_0x39a5ac,_0xa82ac0[_0x4415ea]),'parent':_0x3a3732,'offset':_0x3fc393,'limitId':_0x2f7e05}),_0x39a5ac=_0xa82ac0[_0x4415ea],_0x3fc393=_0x32163c['offset']+_0xa82ac0[_0x4415ea];return _0x27d7db;}['_getElementCategory'](_0x581f9a){const _0x3e9c3c=this['_editor']['model']['schema'];return _0x3e9c3c['isLimit'](_0x581f9a)||_0x3e9c3c['isContent'](_0x581f9a)||_0x3e9c3c['isInline'](_0x581f9a)?'solid':_0x3e9c3c['isBlock'](_0x581f9a)?'block':'container';}['_diffModelTokens'](_0x5623b2,_0x3bc3a5){const _0x4139e9=_0x2a86d0(_0x5623b2,_0x3bc3a5,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x4139e9);const _0x137d6a=_0x4139e9['flatMap'](_0x2bd4b1=>{const _0x2f7a6c=_0x2bd4b1['added']?'added':_0x2bd4b1['removed']?'removed':'unchanged';return _0x2bd4b1['value']['map'](_0x1f6379=>({'token':_0x1f6379,'change':_0x2f7a6c}));});let _0x3c1b7e=0x0;for(const _0x59db60 of _0x137d6a)'added'!=_0x59db60['change']&&('unchanged'==_0x59db60['change']&&(_0x59db60['before']=_0x5623b2[_0x3c1b7e]),_0x3c1b7e++);return _0x137d6a;}['_handleUnclosedBlockOpeningTags'](_0x282cdf){for(let _0x5c6542=0x0;_0x5c6542<_0x282cdf['length']-0x1;_0x5c6542++)if(_0x282cdf[_0x5c6542]['removed']&&_0x282cdf[_0x5c6542+0x1]['added']){const _0xba3278=this['_findUnclosedBlockOpeningToken'](_0x282cdf[_0x5c6542]['value']);if(null!==_0xba3278){const _0x331a53=this['_findUnclosedBlockOpeningToken'](_0x282cdf[_0x5c6542+0x1]['value']),_0x23e55e=_0x282cdf[_0x5c6542]['value']['splice'](_0xba3278),_0x323f68=_0x282cdf[_0x5c6542+0x1]['value']['splice'](_0x331a53),_0xdc7a05=[_0x323f68['shift']()];_0x23e55e['shift']();const _0x5e268a={'value':_0x23e55e,'removed':!0x0},_0x2fd658={'value':_0x323f68,'added':!0x0},_0x447ed4={'value':_0xdc7a05};_0x282cdf['splice'](_0x5c6542+0x2,0x0,_0x447ed4,_0x5e268a,_0x2fd658);}}}['_findUnclosedBlockOpeningToken'](_0x16d9b0){let _0x1fcb1f=0x0,_0x238fa4=-0x1;for(let _0x4df997=0x0;_0x4df997<_0x16d9b0['length'];_0x4df997++){const _0x25840f=_0x16d9b0[_0x4df997];'element'==_0x25840f['type']&&'block'==_0x25840f['category']&&(_0x1fcb1f+=_0x25840f['isStart']?0x1:-0x1,_0x25840f['isStart']&&(_0x238fa4=_0x4df997));}return 0x0===_0x1fcb1f?null:_0x238fa4;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x7ea713=0x0;_0x7ea713<this['_diffItems']['length'];_0x7ea713++){const _0x250602=this['_diffItems'][_0x7ea713]['change'],_0x44dd0a=[];_0x44dd0a['push'](this['_diffItems'][_0x7ea713]);let _0x24af6b=_0x7ea713+0x1;for(;this['_diffItems'][_0x24af6b]&&this['_diffItems'][_0x24af6b]['change']==_0x250602;)_0x44dd0a['push'](this['_diffItems'][_0x24af6b]),_0x24af6b++,_0x7ea713++;const _0x183083=_0x44dd0a['map'](_0x1ca570=>_0x1ca570['token']);if('unchanged'==_0x250602)_0x44dd0a['map'](_0x5c9de0=>_0x5c9de0['before'])['forEach'](_0x35a18e=>this['_traverseOverItem'](_0x35a18e));else{if('removed'==_0x250602){if(this['_markDeletions']){const _0x5565e1=this['_path']['slice']();_0x183083['forEach'](_0x302e83=>this['_traverseOverItem'](_0x302e83));const _0xf2d8c3=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x5565e1,'end':_0xf2d8c3}});}else this['_handleChanged'](_0x183083,!0x0,this['_path']['slice']());}else{const _0x9462ec=_0x183083['filter'](_0x52f0ad=>'element'!=_0x52f0ad['type']||'container'!=_0x52f0ad['category']);this['_handleChanged'](_0x9462ec,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xd43d17=0x0;_0xd43d17<this['_diffItems']['length'];_0xd43d17++){const _0x2d203a=this['_diffItems'][_0xd43d17]['change'],_0x65846d=[];_0x65846d['push'](this['_diffItems'][_0xd43d17]);let _0x304136=_0xd43d17+0x1;for(;this['_diffItems'][_0x304136]&&this['_diffItems'][_0x304136]['change']==_0x2d203a;)_0x65846d['push'](this['_diffItems'][_0x304136]),_0x304136++,_0xd43d17++;const _0x5e19ec=_0x65846d['map'](_0x16eedb=>_0x16eedb['token']);if('unchanged'==_0x2d203a){const _0x2c4014=_0x65846d['map'](_0x357d2e=>_0x357d2e['before']);this['_handleUnchanged'](_0x2c4014,_0x5e19ec);}else('removed'!=_0x2d203a||this['_markDeletions'])&&_0x5e19ec['forEach'](_0x2e947f=>{this['_traverseOverItem'](_0x2e947f);});}}['_calculateMarkersOperationsData'](_0x4f4e78,_0x44aafa){const _0x5eeb30={};for(const [_0x4ce2e2]of _0x4f4e78)_0x5eeb30[_0x4ce2e2]=null;for(const [_0x324866,_0x40a7fa]of _0x44aafa)_0x5eeb30[_0x324866]=_0x40a7fa;const _0x131504=Object['entries'](_0x5eeb30)['map'](([_0x394651,_0x45be93])=>({'type':'marker','name':_0x394651,'range':_0x45be93?{'start':_0x45be93['start']['path']['slice'](),'end':_0x45be93['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x131504);}['_handleUnwraps'](){const _0x4ebbee=new Map(),_0x144fa9=[],_0x28a4b9=[0x0];let _0x3e6cf4=this['_diffItems']['length']+0x1;for(let _0x3fdde5=this['_diffItems']['length']-0x1;_0x3fdde5>=0x0;_0x3fdde5--){const {token:_0x2f4bbd,before:_0x21093f,change:_0x1dc20b}=this['_diffItems'][_0x3fdde5];if('removed'!=_0x1dc20b&&(_0x3e6cf4=_0x3fdde5),'element'!=_0x2f4bbd['type']||'container'!=_0x2f4bbd['category']||'added'==_0x1dc20b)continue;const _0x4f7c9f=_0x21093f?_0x21093f['element']:_0x2f4bbd['element'];if(_0x2f4bbd['isStart']){const _0x23238b=_0x4ebbee['get'](_0x4f7c9f),_0x1e777d=this['_diffItems'][_0x23238b];('removed'==_0x1dc20b||'removed'==_0x1e777d['change'])&&_0x3e6cf4<_0x23238b&&(this['_operationsData']['push']({'type':'unwrap','path':_0x4f7c9f['getPath'](),'howMany':_0x4f7c9f['maxOffset']+_0x28a4b9[0x0]}),_0x28a4b9['shift'](),_0x28a4b9[0x0]+=_0x4f7c9f['maxOffset']-0x1,_0x144fa9['push'](_0x3fdde5),_0x144fa9['push'](_0x23238b));}else _0x4ebbee['set'](_0x4f7c9f,_0x3fdde5),_0x28a4b9['unshift'](0x0);}_0x144fa9['sort']((_0x14bbe3,_0xef33d2)=>_0xef33d2-_0x14bbe3),_0x144fa9['forEach'](_0x105fc9=>{const _0x2b0433=this['_diffItems'][_0x105fc9];'removed'==_0x2b0433['change']?this['_diffItems']['splice'](_0x105fc9,0x1):(_0x2b0433['change']='added',delete _0x2b0433['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x19e4a9=[];for(let _0x13bd7f=0x0;_0x13bd7f<this['_diffItems']['length'];_0x13bd7f++){const {change:_0x358df0,token:_0x22280e}=this['_diffItems'][_0x13bd7f];if('added'==_0x358df0&&'element'==_0x22280e['type']&&'container'==_0x22280e['category']){if(_0x22280e['isStart'])_0x19e4a9['push'](this['_path']['slice']());else{if(!_0x22280e['isStart']){const _0x2179c6=_0x19e4a9['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x2179c6,'end':this['_path']['slice']()},'token':_0x22280e}),this['_path'][this['_path']['length']-0x1]=_0x2179c6[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x358df0||this['_markDeletions'])&&this['_traverseOverItem'](_0x22280e);}}['_handleUnchanged'](_0x21e2e7,_0x152a23){for(let _0x27f9e0=0x0;_0x27f9e0<_0x21e2e7['length'];_0x27f9e0++){const _0x3bb6f1=_0x21e2e7[_0x27f9e0];if('element'==_0x3bb6f1['type']&&_0x3bb6f1['isStart']){const _0x47600c=_0x152a23[_0x27f9e0];'block'==_0x3bb6f1['category']&&this['_handleElementRename'](_0x3bb6f1['element'],_0x47600c['element'],this['_path']),this['_handleElementAttributeChanges'](_0x3bb6f1['element'],_0x47600c['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x47600c);}else{if('element'!=_0x3bb6f1['type']||_0x3bb6f1['isStart']){if('text'==_0x3bb6f1['type']){const _0x463ecf=this['_path']['slice'](),_0x10bf1b=[],_0x57dac5=[];for(;_0x21e2e7[_0x27f9e0]&&'text'==_0x21e2e7[_0x27f9e0]['type'];)_0x10bf1b['push'](_0x21e2e7[_0x27f9e0]),_0x57dac5['push'](_0x152a23[_0x27f9e0]),this['_path'][this['_path']['length']-0x1]+=_0x21e2e7[_0x27f9e0]['data']['length'],_0x27f9e0++;_0x27f9e0--,this['_handleTextAttributeChanges'](_0x10bf1b,_0x57dac5,_0x463ecf);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x427dc6,_0x45c6f7,_0x5ac8b0){const _0x16eb9b=[],_0x5eec56=[],_0xf98d14=_0x5ac8b0['slice']();for(let _0x4c894c=0x0;_0x4c894c<_0x427dc6['length'];_0x4c894c++){const _0xc6a04e=_0x427dc6[_0x4c894c],_0x49a1fc=_0x5ac8b0['slice']();if('element'!=_0xc6a04e['type']||_0xc6a04e['isStart'])'element'==_0xc6a04e['type']&&_0xc6a04e['isStart']?(_0x5ac8b0['push'](0x0),_0x45c6f7||this['_parents']['push'](_0xc6a04e),_0x5eec56['push']({'before':_0x49a1fc,'after':_0x5ac8b0['slice'](),'index':_0x4c894c})):_0x5ac8b0[_0x5ac8b0['length']-0x1]+=_0xc6a04e['data']['length'];else{let _0x58afb0;_0x5ac8b0['pop'](),_0x5ac8b0[_0x5ac8b0['length']-0x1]++,_0x58afb0=_0x45c6f7?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x5eec56['length']?_0x5eec56['pop']():_0x16eb9b['push']({'before':_0x49a1fc,'after':_0x5ac8b0['slice'](),'index':_0x4c894c,'related':_0x58afb0});}}if(_0x5eec56['length']!==_0x16eb9b['length'])throw new _0xe246c('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x427dc6,'isRemove':_0x45c6f7});const _0x367cdb=[{'after':_0xf98d14['slice'](),'index':-0x1},..._0x16eb9b,..._0x5eec56,{'before':_0x5ac8b0['slice'](),'index':_0x427dc6['length']}];if(_0x45c6f7){for(let _0xe0da47=_0x367cdb['length']-0x1;_0xe0da47>=0x1;_0xe0da47--){const _0x194e0e=_0x367cdb[_0xe0da47-0x1]['after'],_0x5e3184=_0x367cdb[_0xe0da47]['before'],_0x4e5b56=_0x5e3184[_0x5e3184['length']-0x1]-_0x194e0e[_0x194e0e['length']-0x1];_0x4e5b56&&(this['_operationsData']['push']({'type':'remove','path':_0x194e0e,'howMany':_0x4e5b56}),_0x5e3184[_0x5e3184['length']-0x1]-=_0x4e5b56);}for(const {before:_0x177db7}of _0x16eb9b)this['_operationsData']['push']({'type':'merge','path':_0x177db7});}else for(let _0x3e5a6c=0x0;_0x3e5a6c<_0x367cdb['length']-0x1;_0x3e5a6c++){const _0x1175bb=_0x367cdb[_0x3e5a6c]['after'],_0x48dc35=_0x367cdb[_0x3e5a6c+0x1]['before'],_0xb3260f=_0x367cdb[_0x3e5a6c]['index']+0x1,_0x1d001c=_0x367cdb[_0x3e5a6c+0x1]['index'];if(_0xb3260f!==_0x1d001c&&this['_operationsData']['push']({'type':'insert','path':_0x1175bb,'tokens':_0x427dc6['slice'](_0xb3260f,_0x1d001c)}),_0x3e5a6c<_0x16eb9b['length']){this['_operationsData']['push']({'type':'split','path':_0x48dc35});const _0x493874=_0x427dc6[_0x5eec56[_0x5eec56['length']-0x1-_0x3e5a6c]['index']],_0x458c59=_0x16eb9b[_0x3e5a6c]['after'],_0x4f8757=_0x16eb9b[_0x3e5a6c]['related']['element'];this['_handleElementRename'](_0x4f8757,_0x493874['element'],_0x458c59),this['_handleElementAttributeChanges'](_0x4f8757,_0x493874['element'],_0x458c59);}}}['_traverseOverItem'](_0x585045){'element'==_0x585045['type']&&_0x585045['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x585045)):'element'!=_0x585045['type']||_0x585045['isStart']?'text'==_0x585045['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x585045['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x50d8c7,_0x220bd2,_0xa36440){_0x50d8c7['name']!=_0x220bd2['name']&&this['_operationsData']['push']({'type':'rename','path':_0xa36440['slice'](),'oldName':_0x50d8c7['name'],'newName':_0x220bd2['name']});}['_handleElementAttributeChanges'](_0xa7483c,_0x539271,_0xc21466){const _0x6998eb=this['_getAttributeChanges'](_0xa7483c['getAttributes'](),_0x539271['getAttributes']());for(const _0x2a51e0 in _0x6998eb){const {oldValue:_0x5ee0f8,newValue:_0x4385a5}=_0x6998eb[_0x2a51e0];this['_operationsData']['push']({'type':'attribute','path':_0xc21466['slice'](),'howMany':0x1,'key':_0x2a51e0,'oldValue':_0x5ee0f8,'newValue':_0x4385a5});}}['_handleTextAttributeChanges'](_0x3c724e,_0xc8ac4,_0x25176e){const _0x2f6bf2=this['_operationsData'],_0x4e320e=_0x3c724e[0x0]['parent'],_0x3e6896=_0x3c724e[0x0]['offset'],_0x19a7ec=_0xc8ac4[0x0]['parent'],_0x30eec3=_0xc8ac4[0x0]['offset'],_0x1610ea=_0x3c724e['reduce']((_0x93cafd,_0x3fcfb4)=>_0x93cafd+_0x3fcfb4['data']['length'],0x0),_0xeae35e=this['_getAttrsForOffsets'](_0x4e320e,_0x3e6896,_0x1610ea),_0x169f27=this['_getAttrsForOffsets'](_0x19a7ec,_0x30eec3,_0x1610ea),_0xc5ebaf={};for(let _0x1c08a2=0x0;_0x1c08a2<_0x1610ea;_0x1c08a2++){const _0x1f9e96=_0xeae35e[_0x3e6896+_0x1c08a2],_0x207c96=_0x169f27[_0x30eec3+_0x1c08a2],_0x187994=this['_getAttributeChanges'](_0x1f9e96,_0x207c96);for(const _0x42acbb in _0xc5ebaf)_0x187994[_0x42acbb]||_0x112d4f(_0x42acbb);for(const _0x33bd58 in _0x187994){const {oldValue:_0x2fd704,newValue:_0x92e515}=_0x187994[_0x33bd58],_0x4dea17=_0xc5ebaf[_0x33bd58];_0x4dea17?_0x4dea17['oldValue']==_0x2fd704&&_0x4dea17['newValue']==_0x92e515?_0x4dea17['length']++:(_0x112d4f(_0x33bd58),_0xc5ebaf[_0x33bd58]={'oldValue':_0x2fd704,'newValue':_0x92e515,'start':_0x1c08a2,'length':0x1}):_0xc5ebaf[_0x33bd58]={'oldValue':_0x2fd704,'newValue':_0x92e515,'start':_0x1c08a2,'length':0x1};}}for(const _0x23910f in _0xc5ebaf)_0x112d4f(_0x23910f);function _0x112d4f(_0x5efd46){const _0x28a83c=_0xc5ebaf[_0x5efd46],_0x4485e7=_0x25176e['slice']();_0x4485e7[_0x4485e7['length']-0x1]+=_0x28a83c['start'],_0x2f6bf2['push']({'type':'attribute','path':_0x4485e7,'howMany':_0x28a83c['length'],'key':_0x5efd46,'oldValue':_0x28a83c['oldValue'],'newValue':_0x28a83c['newValue']}),delete _0xc5ebaf[_0x5efd46];}}['_getAttributeChanges'](_0x2f8076,_0x25f3e3){const _0x5edf08={};for(const [_0x1efc38,_0x114c21]of _0x2f8076)_0x5edf08[_0x1efc38]={'oldValue':JSON['stringify'](_0x114c21),'newValue':'null'};for(const [_0x1fd305,_0x45e796]of _0x25f3e3){const _0x3bed84=JSON['stringify'](_0x45e796);_0x5edf08[_0x1fd305]?_0x5edf08[_0x1fd305]['oldValue']==_0x3bed84?delete _0x5edf08[_0x1fd305]:_0x5edf08[_0x1fd305]['newValue']=_0x3bed84:_0x5edf08[_0x1fd305]={'oldValue':'null','newValue':_0x3bed84};}return delete _0x5edf08[St],_0x5edf08;}['_getAttrsForOffsets'](_0x300ef3,_0x5bf0ae,_0x39037b){const _0x2fbb8e=new Array(_0x5bf0ae+_0x39037b);let _0x40efb1=_0x300ef3['getChildAtOffset'](_0x5bf0ae),_0x5d4b8c=_0x40efb1['startOffset'];for(;_0x40efb1&&_0x5d4b8c<_0x5bf0ae+_0x39037b;){const _0x180104=Array['from'](_0x40efb1['getAttributes']());_0x2fbb8e['fill'](_0x180104,_0x5d4b8c,_0x5d4b8c+_0x40efb1['offsetSize']),_0x5d4b8c+=_0x40efb1['offsetSize'],_0x40efb1=_0x40efb1['nextSibling'];}return _0x2fbb8e;}['_getPositionFromAnchorAndPath'](_0x74ce40,_0x839f6f){const _0x574d2c=[..._0x74ce40['path']['slice'](0x0,-0x1),_0x74ce40['offset']+_0x839f6f[0x0],..._0x839f6f['slice'](0x1)];return new _0x325155(_0x74ce40['root'],_0x574d2c);}['_makeModelFromTokens'](_0x24fac7){const _0x5afb4d=[];let _0x4f7da0=null;for(const _0x2dd554 of _0x24fac7)if('element'!=_0x2dd554['type']||_0x2dd554['isStart']||_0x4f7da0!=_0x2dd554['element']){if(!_0x4f7da0){if('text'==_0x2dd554['type']){const _0xbb7cad=_0x325155['_createAt'](_0x2dd554['parent'],_0x2dd554['offset']),_0x597d4a=_0x5ce1b5['_createFromPositionAndShift'](_0xbb7cad,_0x2dd554['data']['length']),_0x542f64=Array['from'](_0x597d4a['getItems']())['map'](_0xc69f7b=>new _0x2a45f1(_0xc69f7b['data'],_0xc69f7b['getAttributes']()));_0x5afb4d['push'](..._0x542f64);}else{_0x4f7da0=_0x2dd554['element'];const _0x2be261=_0x2dd554['element']['_clone'](!0x0);_0x2be261['_removeAttribute'](St);for(const _0x209a21 of this['_editor']['model']['createRangeIn'](_0x2be261)['getItems']())_0x209a21['is']('element')&&_0x209a21['_removeAttribute'](St);_0x5afb4d['push'](_0x2be261);}}}else _0x4f7da0=null;return _0x5afb4d;}}function g(_0x36a559,_0x32de1e){return _0x36a559['type']===_0x32de1e['type']&&(_0x36a559['limitId']===_0x32de1e['limitId']&&('text'==_0x36a559['type']?_0x36a559['data']==_0x32de1e['data']:function(_0x46d596,_0x428453){if(_0x46d596['isStart']!=_0x428453['isStart'])return!0x1;if(_0x46d596['isStart']&&_0x46d596['elementId']!=_0x428453['elementId'])return!0x1;if(_0x46d596['category']!=_0x428453['category'])return!0x1;if('block'==_0x46d596['category'])return!0x0;if('container'==_0x46d596['category']&&_0x46d596['elementId']!=_0x428453['elementId'])return!0x1;return _0x46d596['element']['name']==_0x428453['element']['name'];}(_0x36a559,_0x32de1e)));}function _(_0x216771){return k({'name':_0x216771['name'],...Object['fromEntries'](_0x216771['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,xt as FOCUS_ANNOTATION_KEYSTROKE,ft as LateFocusButtonView,gt as LateFocusDropdownButtonView,C as Permissions,kt as SuggestionsConversion,ht as UserView,ct as Users,mt as fixElementSuggestionRange,wt as getAllMarkersDomElementsSorted,pt as getDateTimeFormatter,yt as getMarkerDomElement,k as hashObject,Ct as sanitizeEditorConfig,It as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,_t as surroundingMarkersDetector,bt as trimHtml};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
|
3
|
-
"version": "47.3.0-alpha.
|
|
3
|
+
"version": "47.3.0-alpha.4",
|
|
4
4
|
"description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"type": "module",
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-comments": "47.3.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-core": "47.3.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-link": "47.3.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-list": "47.3.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-track-changes": "47.3.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.
|
|
45
|
-
"@ckeditor/ckeditor5-widget": "47.3.0-alpha.
|
|
46
|
-
"ckeditor5": "47.3.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.4",
|
|
36
|
+
"@ckeditor/ckeditor5-comments": "47.3.0-alpha.4",
|
|
37
|
+
"@ckeditor/ckeditor5-core": "47.3.0-alpha.4",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.4",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "47.3.0-alpha.4",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "47.3.0-alpha.4",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.4",
|
|
42
|
+
"@ckeditor/ckeditor5-track-changes": "47.3.0-alpha.4",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.4",
|
|
44
|
+
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.4",
|
|
45
|
+
"@ckeditor/ckeditor5-widget": "47.3.0-alpha.4",
|
|
46
|
+
"ckeditor5": "47.3.0-alpha.4",
|
|
47
47
|
"diff": "8.0.2",
|
|
48
48
|
"luxon": "3.6.1",
|
|
49
49
|
"@types/luxon": "3.6.2"
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ce57c=_0x378d;function _0x3a79(){const _0x533f53=['1755531ZupibW','7699870cxdeSP','alignment','314mijlhI','registerBlockAttribute','6448834zoBgZt','2437902MFYoWz','get','SuggestionsConversion','89490vSMKTg','5109162WfgJFR','plugins','AlignmentEditing','40VrechC','152HwyhBM','has','afterInit','2780pyRxhY','editor'];_0x3a79=function(){return _0x533f53;};return _0x3a79();}(function(_0x21b371,_0x41c001){const _0x116695=_0x378d,_0x28627e=_0x21b371();while(!![]){try{const _0x289dc5=-parseInt(_0x116695(0x169))/0x1*(-parseInt(_0x116695(0x15b))/0x2)+-parseInt(_0x116695(0x16b))/0x3+-parseInt(_0x116695(0x166))/0x4*(-parseInt(_0x116695(0x161))/0x5)+-parseInt(_0x116695(0x162))/0x6+-parseInt(_0x116695(0x15d))/0x7+parseInt(_0x116695(0x165))/0x8*(parseInt(_0x116695(0x15e))/0x9)+parseInt(_0x116695(0x16c))/0xa;if(_0x289dc5===_0x41c001)break;else _0x28627e['push'](_0x28627e['shift']());}catch(_0x49151d){_0x28627e['push'](_0x28627e['shift']());}}}(_0x3a79,0xd7933));import{Plugin as _0x30216d}from'ckeditor5/src/core.js';function _0x378d(_0x3b702d,_0x2874ec){const _0x3a792b=_0x3a79();return _0x378d=function(_0x378d62,_0x5cd2da){_0x378d62=_0x378d62-0x15a;let _0x351a98=_0x3a792b[_0x378d62];return _0x351a98;},_0x378d(_0x3b702d,_0x2874ec);}export class SuggestionsConversionAlignment extends _0x30216d{[_0x5ce57c(0x168)](){const _0x17a226=_0x5ce57c,_0x5ef11b=this[_0x17a226(0x16a)];if(!_0x5ef11b[_0x17a226(0x163)][_0x17a226(0x167)](_0x17a226(0x164)))return;_0x5ef11b[_0x17a226(0x163)][_0x17a226(0x15f)](_0x17a226(0x160))[_0x17a226(0x15c)](_0x17a226(0x15a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cf5e5=_0x1ba4;(function(_0x1bac12,_0x425041){const _0x57b066=_0x1ba4,_0x1c7cca=_0x1bac12();while(!![]){try{const _0x2efaa5=parseInt(_0x57b066(0x93))/0x1+-parseInt(_0x57b066(0x9e))/0x2+-parseInt(_0x57b066(0x8f))/0x3*(parseInt(_0x57b066(0x8a))/0x4)+-parseInt(_0x57b066(0x98))/0x5+-parseInt(_0x57b066(0x96))/0x6+parseInt(_0x57b066(0x8c))/0x7*(-parseInt(_0x57b066(0x94))/0x8)+parseInt(_0x57b066(0xa0))/0x9;if(_0x2efaa5===_0x425041)break;else _0x1c7cca['push'](_0x1c7cca['shift']());}catch(_0x13ddcc){_0x1c7cca['push'](_0x1c7cca['shift']());}}}(_0x124a,0xaa96e));import{Plugin as _0x15912a}from'ckeditor5/src/core.js';const ii=[_0x4cf5e5(0x8d),_0x4cf5e5(0x9b),_0x4cf5e5(0x97),_0x4cf5e5(0x9d),_0x4cf5e5(0x8b),_0x4cf5e5(0x92),_0x4cf5e5(0x8e)];function _0x1ba4(_0x2c5947,_0x3f9a73){const _0x124a04=_0x124a();return _0x1ba4=function(_0x1ba413,_0x18e14f){_0x1ba413=_0x1ba413-0x88;let _0x55add1=_0x124a04[_0x1ba413];return _0x55add1;},_0x1ba4(_0x2c5947,_0x3f9a73);}export class SuggestionsConversionBasicStyles extends _0x15912a{[_0x4cf5e5(0x91)](){const _0x33e570=_0x4cf5e5,_0x16fae6=this[_0x33e570(0x9c)],_0x2d3464=_0x16fae6[_0x33e570(0x89)][_0x33e570(0x95)](_0x33e570(0x88));for(const _0x336156 of ii){if(!_0x16fae6[_0x33e570(0x89)][_0x33e570(0x9f)](_0x336156))continue;const _0xb81404=_0x336156[_0x33e570(0x99)](0x0,-0x7)[_0x33e570(0x90)]();_0x2d3464[_0x33e570(0x9a)](_0xb81404);}}}function _0x124a(){const _0x2c0420=['toLowerCase','afterInit','SubscriptEditing','974891uikRXc','672HzzcQJ','get','5915004voXWeR','UnderlineEditing','5583450TbPvpq','slice','registerInlineAttribute','ItalicEditing','editor','CodeEditing','253484VqQPOj','has','29427876UYTEJd','SuggestionsConversion','plugins','402020XkGMMX','StrikethroughEditing','84595sfZvma','BoldEditing','SuperscriptEditing','9CDORoG'];_0x124a=function(){return _0x2c0420;};return _0x124a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2398dc=_0xf38a;function _0x44f0(){const _0xd6a52f=['11SjDFpZ','plugins','SuggestionsConversion','get','12707928ZmbqWp','BookmarkEditing','has','6MoYtLy','bookmarkId','6399984nCKjdN','registerBlockAttribute','63704ptamjQ','292FTDJVC','1890376lClDnS','afterInit','10730730fGMOPU','7547tVeeOE','1014lvFnia','217zysZtA','editor','20635uhVhuW'];_0x44f0=function(){return _0xd6a52f;};return _0x44f0();}(function(_0x1b2a7f,_0x1f79ec){const _0x5641d8=_0xf38a,_0x1523a6=_0x1b2a7f();while(!![]){try{const _0x559ffe=-parseInt(_0x5641d8(0x111))/0x1*(parseInt(_0x5641d8(0x10d))/0x2)+parseInt(_0x5641d8(0x108))/0x3*(parseInt(_0x5641d8(0x10e))/0x4)+-parseInt(_0x5641d8(0x100))/0x5*(parseInt(_0x5641d8(0xfd))/0x6)+parseInt(_0x5641d8(0xfe))/0x7*(-parseInt(_0x5641d8(0x10c))/0x8)+parseInt(_0x5641d8(0x105))/0x9+-parseInt(_0x5641d8(0x110))/0xa*(-parseInt(_0x5641d8(0x101))/0xb)+-parseInt(_0x5641d8(0x10a))/0xc;if(_0x559ffe===_0x1f79ec)break;else _0x1523a6['push'](_0x1523a6['shift']());}catch(_0x53b805){_0x1523a6['push'](_0x1523a6['shift']());}}}(_0x44f0,0xcfb37));function _0xf38a(_0x15d565,_0x1c9ab7){const _0x44f0f6=_0x44f0();return _0xf38a=function(_0xf38acd,_0x1e496e){_0xf38acd=_0xf38acd-0xfd;let _0x559807=_0x44f0f6[_0xf38acd];return _0x559807;},_0xf38a(_0x15d565,_0x1c9ab7);}import{Plugin as _0x2b8ed0}from'ckeditor5/src/core.js';export class SuggestionsConversionBookmark extends _0x2b8ed0{[_0x2398dc(0x10f)](){const _0x3306a0=_0x2398dc,_0x59f233=this[_0x3306a0(0xff)],_0x22726e=_0x59f233[_0x3306a0(0x102)][_0x3306a0(0x104)](_0x3306a0(0x103));_0x59f233[_0x3306a0(0x102)][_0x3306a0(0x107)](_0x3306a0(0x106))&&_0x22726e[_0x3306a0(0x10b)](_0x3306a0(0x109));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcd0c0e=_0x2985;(function(_0x3e16de,_0x31bef4){const _0x3efcfe=_0x2985,_0x4bf31f=_0x3e16de();while(!![]){try{const _0x1f0ca9=-parseInt(_0x3efcfe(0xda))/0x1+-parseInt(_0x3efcfe(0xdc))/0x2+parseInt(_0x3efcfe(0xdb))/0x3+parseInt(_0x3efcfe(0xd0))/0x4*(-parseInt(_0x3efcfe(0xe0))/0x5)+parseInt(_0x3efcfe(0xd4))/0x6+parseInt(_0x3efcfe(0xca))/0x7*(-parseInt(_0x3efcfe(0xd1))/0x8)+parseInt(_0x3efcfe(0xd7))/0x9;if(_0x1f0ca9===_0x31bef4)break;else _0x4bf31f['push'](_0x4bf31f['shift']());}catch(_0x4487a6){_0x4bf31f['push'](_0x4bf31f['shift']());}}}(_0x7984,0xf3b95));import{Plugin as _0x9f7766}from'ckeditor5/src/core.js';function _0x2985(_0x1e9c78,_0x3856c7){const _0x7984d9=_0x7984();return _0x2985=function(_0x298511,_0xfcbacd){_0x298511=_0x298511-0xc9;let _0x123e4c=_0x7984d9[_0x298511];return _0x123e4c;},_0x2985(_0x1e9c78,_0x3856c7);}const no=[{'pluginName':_0xcd0c0e(0xd6),'commandName':_0xcd0c0e(0xdd)},{'pluginName':_0xcd0c0e(0xcc),'commandName':_0xcd0c0e(0xdf)},{'pluginName':_0xcd0c0e(0xde),'commandName':_0xcd0c0e(0xcb)},{'pluginName':_0xcd0c0e(0xd5),'commandName':_0xcd0c0e(0xc9)}];function _0x7984(){const _0x5c8584=['8UapbuJ','289392pXgcTs','get','plugins','2819862BegUsf','FontBackgroundColorEditing','FontSizeEditing','27491544JkPFYo','has','registerInlineAttribute','1154734WFiqVa','2224482mquYSs','2214396iXGZlO','fontSize','FontColorEditing','fontFamily','344215vSqoVS','fontBackgroundColor','168XqADGY','fontColor','FontFamilyEditing','SuggestionsConversion','editor','afterInit'];_0x7984=function(){return _0x5c8584;};return _0x7984();}export class SuggestionsConversionFont extends _0x9f7766{[_0xcd0c0e(0xcf)](){const _0x53e1de=_0xcd0c0e,_0x40051d=this[_0x53e1de(0xce)][_0x53e1de(0xd3)][_0x53e1de(0xd2)](_0x53e1de(0xcd));for(const {pluginName:_0x211f86,commandName:_0x25573d}of no)this[_0x53e1de(0xce)][_0x53e1de(0xd3)][_0x53e1de(0xd8)](_0x211f86)&&_0x40051d[_0x53e1de(0xd9)](_0x25573d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x368a(){const _0x3d4da7=['77shFPEI','get','1328400ITZcEl','afterInit','HighlightEditing','1291gWusAb','2336820fDXwLm','4656510mbiISU','224yyvHMk','SuggestionsConversion','5TJCrMA','registerInlineAttribute','3460044gyonvP','highlight','28lwnpGw','142338vzGbiJ','1168450ZaoqiM','plugins','has','editor'];_0x368a=function(){return _0x3d4da7;};return _0x368a();}const _0x2683b4=_0x2b80;(function(_0x3c8080,_0x41dd62){const _0x44ac38=_0x2b80,_0x4eebd5=_0x3c8080();while(!![]){try{const _0x53976b=parseInt(_0x44ac38(0x19b))/0x1*(parseInt(_0x44ac38(0x1a4))/0x2)+-parseInt(_0x44ac38(0x1ac))/0x3+parseInt(_0x44ac38(0x19c))/0x4+parseInt(_0x44ac38(0x1a0))/0x5*(-parseInt(_0x44ac38(0x1a2))/0x6)+parseInt(_0x44ac38(0x1a5))/0x7*(parseInt(_0x44ac38(0x19e))/0x8)+-parseInt(_0x44ac38(0x19d))/0x9+parseInt(_0x44ac38(0x1a6))/0xa*(parseInt(_0x44ac38(0x1aa))/0xb);if(_0x53976b===_0x41dd62)break;else _0x4eebd5['push'](_0x4eebd5['shift']());}catch(_0x6f2aed){_0x4eebd5['push'](_0x4eebd5['shift']());}}}(_0x368a,0x6e84a));function _0x2b80(_0x47f406,_0x26d7c2){const _0x368af7=_0x368a();return _0x2b80=function(_0x2b80b4,_0x111ad4){_0x2b80b4=_0x2b80b4-0x19a;let _0x4a41ff=_0x368af7[_0x2b80b4];return _0x4a41ff;},_0x2b80(_0x47f406,_0x26d7c2);}import{Plugin as _0x311041}from'ckeditor5/src/core.js';export class SuggestionsConversionHighlight extends _0x311041{[_0x2683b4(0x1ad)](){const _0x1129e6=_0x2683b4,_0x2c18cf=this[_0x1129e6(0x1a9)];if(!_0x2c18cf[_0x1129e6(0x1a7)][_0x1129e6(0x1a8)](_0x1129e6(0x19a)))return;_0x2c18cf[_0x1129e6(0x1a7)][_0x1129e6(0x1ab)](_0x1129e6(0x19f))[_0x1129e6(0x1a1)](_0x1129e6(0x1a3));}}
|