@ckeditor/ckeditor5-collaboration-core 47.4.0-alpha.3 → 47.4.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
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x57f267,Editor as _0x46c44f,Plugin as _0x554f70}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27cb33,Collection as _0x536b11,uid as _0x150f53,toArray as rt,first as _0x30295e,FocusTracker as ts,KeystrokeHandler as _0x240a47}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x1cc78b,IconView as st,ButtonView as _0x122883,DropdownButtonView as _0x537a76,FocusCycler as _0xc1a6a5,isViewWithFocusCycler as _0x394038}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x2b2d04,IconCancel as _0x43d131}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x216746}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x2798ba,MoveOperation as _0xbc4047,ModelPosition as _0x271db7,ModelRange as _0x513d6e,MarkerOperation as _0x307f02,MergeOperation as _0x3e7a80,SplitOperation as _0x55a51f,RenameOperation as _0x3ad5e1,AttributeOperation as _0x3d44ec,ModelTreeWalker as _0xd69fc7,ModelText as _0x3b9560}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x1a73a2}from'diff';class C extends _0x57f267{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x4e52df,_0x52da89){let _0x1933f2;if(_0x52da89||(_0x52da89=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x52da89?_0x1933f2=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x1933f2=this['context']['editors']['find'](_0x54bad9=>_0x54bad9['config']['get']('collaboration.channelId')==_0x52da89)),!_0x1933f2)throw new _0x27cb33('permissions-set-permissions-invalid-channel-id',null);const _0x15b52a=_0x1933f2['plugins'],_0x1c8f56=_0x15b52a['has']('CommentsRepository')?_0x15b52a['get']('CommentsRepository'):void 0x0,_0x432a37=_0x15b52a['has']('CommentsOnly')&&_0x15b52a['get']('CommentsOnly'),_0x157ff4=_0x4e52df['includes']('document:write'),_0x2557ef=_0x4e52df['includes']('comment:modify_all'),_0x2a4fe8=_0x4e52df['includes']('comment:admin'),_0x377f5d=_0x4e52df['includes']('comment:write'),_0x2ef1d3=_0x377f5d||_0x2a4fe8,_0x1b154e=_0x2ef1d3||_0x2557ef,_0x369599=_0x157ff4||_0x2ef1d3;(_0x432a37&&(_0x432a37['isEnabled']=!_0x157ff4&&_0x1b154e),_0x1933f2 instanceof _0x46c44f)&&(!(_0x157ff4||_0x1b154e&&_0x1c8f56)?_0x1933f2['enableReadOnlyMode']('no-permissions'):_0x1933f2['disableReadOnlyMode']('no-permissions'));if(_0x1c8f56){_0x1c8f56['setPermissions']({'admin':_0x2a4fe8,'modifyAll':_0x2557ef,'write':_0x377f5d,'resolve':_0x369599},_0x52da89);const _0x38de2b=_0x1933f2 instanceof _0x46c44f&&_0x1933f2['commands']['get']('addCommentThread');_0x38de2b&&(_0x2ef1d3?_0x38de2b['clearForceDisabled']('noPermissions'):_0x38de2b['forceDisabled']('noPermissions'));}}}function U(_0x274647,_0x606642){const t=_0x274647['t'];switch(_0x606642){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 _0x57f267{['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(_0x1aab7f){super(_0x1aab7f),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x536b11(),this['_locale']=_0x1aab7f['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:_0x58ccbc,name:_0x5f40dc,..._0x385227}){if(!_0x58ccbc||'string'!=typeof _0x58ccbc)throw new _0x27cb33('users-add-invalid-id');if(this['users']['has'](_0x58ccbc))throw new _0x27cb33('users-add-duplicated-id',null,{'id':_0x58ccbc});const _0x93838b=this['context']['config']['get']('users.getInitialsCallback'),_0x2122c0={..._0x385227,'id':_0x58ccbc,'name':A(this['_locale'],_0x5f40dc),'color':this['_getNextColor']()};_0x2122c0['name']=A(this['_locale'],_0x2122c0['name']);const _0x3746b1=new lt(_0x2122c0,_0x93838b);return this['users']['add'](_0x3746b1),_0x3746b1;}['getUser'](_0x3ee806){return this['users']['get'](_0x3ee806);}['useAnonymousUser'](){const _0x52898d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x52898d);}['defineMe'](_0x5016c5){if(this['_myId'])throw new _0x27cb33('users-me-already-defined',null);const _0x4cfc3b=this['getUser'](_0x5016c5);if(!_0x4cfc3b)throw new _0x27cb33('users-me-missing-user',null);this['_myId']=_0x5016c5,_0x4cfc3b['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x1a62a5=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x1a62a5&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0xae3fdd=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0xae3fdd,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x4c0e58,_0x5a9435){this['id']=_0x4c0e58['id'],this['color']=_0x4c0e58['color'],this['name']=_0x4c0e58['name'],this['initials']=_0x5a9435?_0x5a9435(this['name']):this['_computeInitials'](),this['avatar']=_0x4c0e58['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0xbff653=this['name']['split']('\x20')['filter'](_0xbe63fc=>/^[\p{Letter}]/u['test'](_0xbe63fc));return 0x1===_0xbff653['length']?this['_getInitial'](_0xbff653[0x0]):0x0===_0xbff653['length']?this['_getInitial'](this['name']):this['_getInitial'](_0xbff653[0x0])+this['_getInitial'](_0xbff653[_0xbff653['length']-0x1]);}['_getInitial'](_0x5ba389){return String['fromCodePoint'](_0x5ba389['codePointAt'](0x0))['toUpperCase']();}}function A(_0x525b8e,_0x398871=''){return''==(_0x398871=_0x398871['trim']())?U(_0x525b8e,'Anonymous'):_0x398871;}class ut{['_id'];constructor(_0x2b48e3){this['_id']=_0x2b48e3;}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 _0x1cc78b{['name'];['notificationView'];constructor(_0x4529c0,_0x123a1f,_0x712cbf){super(_0x4529c0),this['name']=_0x123a1f['name'],this['notificationView']=null;const _0x172bc1=['ck','ck-user'],_0x4ce83e=['ck','ck-user__img'];if(_0x123a1f['isAnonymous']&&_0x4ce83e['push']('ck-user__anonymous'),!_0x123a1f['isAnonymous']&&_0x123a1f['isMe']&&_0x172bc1['push']('ck-user_me'),_0x123a1f['avatar']&&_0x4ce83e['push']('ck-user__avatar'),_0x712cbf){const _0x155735=new st();_0x155735['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x155735['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x712cbf},'children':[_0x155735]};}const _0x5e71fb=[{'tag':'div','attributes':{'class':_0x4ce83e,'style':{'background-image':_0x123a1f['avatar']?'url(\x27'+_0x123a1f['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x123a1f['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x123a1f['name']},'children':[{'text':_0x123a1f['initials']}]}];this['notificationView']&&_0x5e71fb['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x172bc1,'data-user-id':_0x123a1f['id']},'children':_0x5e71fb});}}class dt extends _0x1cc78b{['id'];constructor(_0xc533db,_0xa42f27){super(_0xc533db),this['id']='ck-aria-description-'+_0x150f53(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0xa42f27}]});}}class ft extends _0x122883{['render'](){super['render'](),re(this);}}class gt extends _0x537a76{['render'](){super['render'](),re(this);}}function re(_0xc7aefa){_0xc7aefa['listenTo'](_0xc7aefa['element'],'mousedown',(_0x2d75b3,_0x418dbf)=>{_0x418dbf['stopPropagation'](),_0x418dbf['preventDefault']();}),_0xc7aefa['listenTo'](_0xc7aefa['element'],'mouseup',()=>{_0xc7aefa['element']['focus']();});}function v(_0x52dc05){const _0x46f47c=_0x52dc05['split'](':');return{'group':_0x46f47c[0x0],'type':_0x46f47c[0x1],'subType':_0x46f47c['length']>=0x5?_0x46f47c[0x2]:null,'id':_0x46f47c['length']<0x5?_0x46f47c[0x2]:_0x46f47c[0x3],'authorId':_0x46f47c['length']<0x5?_0x46f47c[0x3]:_0x46f47c[0x4],'markerCount':0x6==_0x46f47c['length']?_0x46f47c[0x5]:null};}function mt(_0x50e850,_0x33e187){const _0x12d22c=_0x50e850['end']['nodeBefore'];if(_0x12d22c&&_0x12d22c['is']('element')&&_0x33e187['schema']['isBlock'](_0x12d22c)&&!_0x33e187['schema']['isObject'](_0x12d22c)){const _0x31681a=_0x33e187['createPositionAt'](_0x12d22c,'end');return _0x33e187['createRange'](_0x50e850['start'],_0x31681a);}return _0x50e850;}class M extends _0x554f70{['afterInit'](){const _0x59eab9=this['editor'];if(!_0x59eab9['plugins']['has']('AlignmentEditing'))return;_0x59eab9['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x554f70{['afterInit'](){const _0x48ee8c=this['editor'],_0x526f8f=_0x48ee8c['plugins']['get']('SuggestionsConversion');for(const _0x30657e of ii){if(!_0x48ee8c['plugins']['has'](_0x30657e))continue;const _0x28ef4b=_0x30657e['slice'](0x0,-0x7)['toLowerCase']();_0x526f8f['registerInlineAttribute'](_0x28ef4b);}}}class I extends _0x554f70{['afterInit'](){const _0x150674=this['editor'],_0x17fea5=_0x150674['plugins']['get']('SuggestionsConversion');_0x150674['plugins']['has']('BookmarkEditing')&&_0x17fea5['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x554f70{['afterInit'](){const _0x5b0e73=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x453451,commandName:_0x107187}of no)this['editor']['plugins']['has'](_0x453451)&&_0x5b0e73['registerInlineAttribute'](_0x107187);}}class T extends _0x554f70{['afterInit'](){const _0x2129f0=this['editor'];if(!_0x2129f0['plugins']['has']('HighlightEditing'))return;_0x2129f0['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x554f70{['afterInit'](){const _0x8bf469=this['editor'];if(!_0x8bf469['plugins']['has']('HtmlEmbed'))return;_0x8bf469['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x554f70{['afterInit'](){const _0x41dd1a=this['editor'];if(!_0x41dd1a['plugins']['has']('ImageEditing'))return;const _0x258c0b=_0x41dd1a['plugins']['get']('SuggestionsConversion');_0x258c0b['registerBlockAttribute']('src'),_0x41dd1a['plugins']['has']('ImageResize')&&_0x258c0b['registerBlockAttribute']('resizedWidth'),_0x41dd1a['plugins']['has']('ImageTextAlternativeEditing')&&_0x258c0b['registerBlockAttribute']('alt'),_0x41dd1a['plugins']['has']('PictureEditing')&&_0x258c0b['registerBlockAttribute']('sources'),_0x41dd1a['plugins']['has']('ImageSizeAttributes')&&(_0x258c0b['registerBlockAttribute']('width'),_0x258c0b['registerBlockAttribute']('height'));}}class $ extends _0x554f70{['afterInit'](){const _0x49dc6e=this['editor'],_0x399b56=_0x49dc6e['plugins']['get']('SuggestionsConversion');_0x49dc6e['plugins']['has']('IndentBlock')&&_0x399b56['registerBlockAttribute']('blockIndent');}}class x extends _0x554f70{['afterInit'](){const _0x171631=this['editor'];if(!_0x171631['plugins']['has']('LineHeight'))return;_0x171631['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x554f70{['afterInit'](){const _0x21b0a3=this['editor'];if(!_0x21b0a3['plugins']['has']('LinkEditing'))return;const _0x5908ef=_0x21b0a3['plugins']['get']('SuggestionsConversion'),_0x17cb8f=_0x21b0a3['commands']['get']('link');_0x5908ef['registerInlineAttribute']('linkHref');for(const _0x73f760 of _0x17cb8f['manualDecorators'])_0x5908ef['registerInlineAttribute'](_0x73f760['id']);}}class N extends _0x554f70{['afterInit'](){const _0x423a12=this['editor'];if(!_0x423a12['plugins']['has']('ListEditing'))return;const _0x57d69a=_0x423a12['plugins']['get']('SuggestionsConversion'),_0x5be450=_0x423a12['plugins']['has']('TodoListEditing');_0x57d69a['registerBlockAttribute']('listItemId'),_0x57d69a['registerBlockAttribute']('listType'),_0x57d69a['registerBlockAttribute']('listIndent'),_0x5be450&&_0x57d69a['registerBlockAttribute']('todoListChecked');}}class P extends _0x554f70{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x22acc4=this['editor']['config']['get']('list.properties'),_0x4213ef=this['editor']['plugins']['get']('SuggestionsConversion');_0x22acc4['styles']&&_0x4213ef['registerBlockAttribute']('listStyle'),_0x22acc4['reversed']&&_0x4213ef['registerBlockAttribute']('listReversed'),_0x22acc4['startIndex']&&_0x4213ef['registerBlockAttribute']('listStart');}}class K extends _0x554f70{['afterInit'](){const _0x46823c=this['editor'],_0x21a9e3=_0x46823c['plugins']['get']('SuggestionsConversion');_0x46823c['plugins']['has']('MultiLevelList')&&_0x21a9e3['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x554f70{['afterInit'](){const _0x3b447c=this['editor'];if(!_0x3b447c['plugins']['has']('Style')||!_0x3b447c['plugins']['has']('DataSchema')||!_0x3b447c['config']['get']('style.definitions'))return;const _0x1f385f=_0x3b447c['plugins']['get']('SuggestionsConversion'),_0x2e47ef=_0x3b447c['config']['get']('style.definitions'),_0x569a46=_0x3b447c['plugins']['get']('GeneralHtmlSupport'),_0x445483=_0x3b447c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b447c['plugins']['get']('DataSchema'),_0x2e47ef),_0x5c6967=new Set();for(const _0x4d8ecd of _0x445483['block']){const _0x5e9d49=_0x569a46['getGhsAttributeNameForElement'](_0x4d8ecd['element']);_0x5c6967['add'](_0x5e9d49);}const _0x37366f=new Set();for(const _0x2cc497 of _0x445483['inline']){const _0x8d7780=_0x569a46['getGhsAttributeNameForElement'](_0x2cc497['element']);_0x37366f['add'](_0x8d7780);for(const _0x32c826 of _0x2cc497['ghsAttributes'])_0x37366f['add'](_0x32c826);}for(const _0x2cee73 of _0x5c6967)_0x1f385f['registerBlockAttribute'](_0x2cee73);for(const _0x2d41a2 of _0x37366f)_0x1f385f['registerInlineAttribute'](_0x2d41a2);}}class z extends _0x554f70{['afterInit'](){const _0x4adfce=this['editor'];if(!_0x4adfce['plugins']['has']('TableEditing'))return;const _0x14551d=_0x4adfce['plugins']['get']('SuggestionsConversion');_0x14551d['registerBlockAttribute']('headingRows'),_0x14551d['registerBlockAttribute']('headingColumns');}}class O extends _0x554f70{['afterInit'](){const _0x2b8646=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x2c4d43=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x43d29a of _0x2c4d43)_0x2b8646['registerBlockAttribute'](_0x43d29a);}}class R extends _0x554f70{['afterInit'](){const _0x1eac2e=this['editor'],_0x24b2b6=_0x1eac2e['plugins']['get']('SuggestionsConversion');_0x1eac2e['plugins']['has']('TableLayout')&&_0x24b2b6['registerBlockAttribute']('tableType');}}class F extends _0x554f70{['afterInit'](){const _0x5ca02d=this['editor'],_0x5e99f9=this['editor']['plugins']['get']('SuggestionsConversion');_0x5ca02d['plugins']['has']('Uploadcare')&&_0x5ca02d['plugins']['has']('UploadcareImageEdit')&&_0x5e99f9['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x554f70{['afterInit'](){const _0x1e5552=this['editor'];if(!_0x1e5552['plugins']['has']('ShiftEnter'))return;const _0xf49ee9=_0x1e5552['plugins']['get']('SuggestionsConversion'),_0xc8a69a=(_0x99c412,_0x69460f,_0x47968b,_0x1d1b7f)=>{if(_0x1d1b7f&&!_0x47968b['options']['showSuggestionHighlights'])return;if(!_0x47968b['consumable']['test'](_0x69460f['markerRange'],_0x99c412['name']))return;const _0x5a2b7b=_0x1e5552['model'];for(const _0x2a7741 of _0x69460f['markerRange']['getItems']()){if(!_0x2a7741['is']('element','softBreak'))continue;const _0x30579a='deletion'==_0x69460f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x588cad,authorId:_0x5df755}=v(_0x69460f['markerName']),_0x54d9a4=_0x47968b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30579a,'data-suggestion':_0x588cad,'data-author-id':_0x5df755}),_0x1e7d23=_0x47968b['mapper']['toViewPosition'](_0x5a2b7b['createPositionBefore'](_0x2a7741));!_0x1d1b7f&&_0xf49ee9['_activeMarkers']['includes'](_0x69460f['markerName'])&&_0x47968b['writer']['addClass']('ck-suggestion-marker--active',_0x54d9a4),_0x47968b['writer']['insert'](_0x1e7d23,_0x54d9a4),_0x47968b['mapper']['bindElementToMarker'](_0x54d9a4,_0x69460f['markerName']);}};_0x1e5552['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb998ac,_0x124633,_0x2f5fbc)=>{_0xc8a69a(_0xb998ac,_0x124633,_0x2f5fbc,!0x1);},{'priority':'high'}),_0x1e5552['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x448bed,_0x113d72,_0x373bf4)=>{_0xc8a69a(_0x448bed,_0x113d72,_0x373bf4,!0x0);},{'priority':'high'});}}class J extends _0x554f70{['afterInit'](){const _0x7912a1=this['editor'];_0x7912a1['plugins']['has']('MediaEmbedEditing')&&(_0x7912a1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xf1ad90,{writer:_0x39cf4b,options:_0x509f40})=>{if(_0x509f40['showSuggestionHighlights'])return _0x39cf4b['createEmptyElement']('div');},'converterPriority':'high'}),_0x7912a1['data']['downcastDispatcher']['on']('attribute:url:media',(_0xe720a9,_0x1cbf59,_0x45ad0e)=>{_0x45ad0e['options']['showSuggestionHighlights']&&_0xe720a9['stop']();},{'priority':'high'}));}}class L extends _0x554f70{['afterInit'](){const _0x4a49ba=this['editor'];if(!_0x4a49ba['plugins']['has']('Table'))return;_0x4a49ba['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x19273b,_0x12992d,_0x526d92)=>{((_0x632a93,_0x56d2b6,_0x480f57)=>{if(!_0x480f57['options']['showSuggestionHighlights'])return;const _0x11ad46=_0x56d2b6['item'];if(!_0x11ad46||!_0x11ad46['is']('element','tableCell'))return;const _0x2f3b5e=_0x480f57['mapper']['toViewElement'](_0x11ad46);if(_0x2f3b5e){const {id:_0x5ed857,authorId:_0xdd144d}=v(_0x56d2b6['markerName']);at(_0x2f3b5e,_0x480f57['writer'],(_0x2f4b38,_0x2a9550,_0x966f41)=>{_0x966f41['addClass'](rt(_0x2a9550['classes']),_0x2f4b38),_0x966f41['setAttribute']('data-suggestion-id',_0x5ed857,_0x2f4b38),_0x966f41['setAttribute']('data-author-id',_0xdd144d,_0x2f4b38);});}})(0x0,_0x12992d,_0x526d92);},{'priority':'highest'});}}class Q extends _0x554f70{['afterInit'](){const _0x4aa326=this['editor'];_0x4aa326['plugins']['has']('HorizontalLineEditing')&&_0x4aa326['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x374312,{writer:_0x174f15,options:_0x465cbc})=>{if(!_0x465cbc['showSuggestionHighlights'])return null;const _0x2175d9=_0x174f15['createContainerElement']('div'),_0x33d719=_0x174f15['createEmptyElement']('hr');return _0x174f15['addClass']('ck-horizontal-line',_0x2175d9),_0x174f15['insert'](_0x174f15['createPositionAt'](_0x2175d9,0x0),_0x33d719),_0x2175d9;},'converterPriority':'high'});}}class kt extends _0x554f70{['_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 _0xaaf249=this['editor'],_0x4fd878=(_0x59ca83,_0x45a228,_0x1b56d3)=>{const {id:_0x23db30,authorId:_0x2a0ef6,type:_0x407cec,subType:_0xad574c}=v(_0x59ca83['markerName']),_0x10885e=['ck-suggestion-marker',this['_getClassName'](_0x407cec,_0xad574c)];let _0x28bfa1=0xbb8;return!_0x1b56d3&&(this['_activeMarkers']['includes'](_0x59ca83['markerName'])&&(_0x10885e['push']('ck-suggestion-marker--active'),_0x28bfa1=0xbc2)),('deletion'==_0x407cec&&(_0x28bfa1+=0x5),{'classes':_0x10885e,'attributes':{'data-suggestion':_0x23db30,'data-author-id':_0x2a0ef6},'priority':_0x28bfa1});};_0xaaf249['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4e575b,_0x2dfa65)=>_0x4fd878(_0x4e575b,0x0,!0x1)}),_0xaaf249['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b3116,_0x180062)=>_0x4fd878(_0x4b3116,0x0,!0x0)}),_0xaaf249['conversion']['for']('dataDowncast')['add'](_0x4e391c=>{_0x4e391c['on']('addMarker:suggestion',(_0x40ada8,_0x383fa7,_0x1339e4)=>{if(!_0x1339e4['options']['showSuggestionHighlights'])return;const _0x19cd3e=_0x383fa7['item'];if(!_0x19cd3e)return;const _0x479411=_0x1339e4['mapper']['toViewElement'](_0x19cd3e);_0xaaf249['model']['schema']['isObject'](_0x19cd3e)&&_0x479411&&!_0x479411['getCustomProperty']('widget')&&_0x479411['is']('containerElement')&&_0x216746(_0x479411,_0x1339e4['writer']);},{'priority':'high'});});const _0x9464aa=(_0x4283df,_0xa46726,_0x78bab5,_0x3af955,_0x3d311a)=>{if(_0x3af955&&!_0x78bab5['options']['showSuggestionHighlights'])return;if(!_0xa46726['item'])return;const {id:_0xdee07d,authorId:_0x4f1a55,subType:_0x12902f}=v(_0xa46726['markerName']);if(_0x3d311a){const _0x4dc544=_0x12902f['split']('|')[0x0];if(!this['isBlockAttribute'](_0x4dc544))return;}if(_0xa46726['item']['is']('selection'))return void _0x78bab5['consumable']['consume'](_0xa46726['item'],_0x4283df['name']);const _0x1a243e=_0x78bab5['mapper']['toViewElement'](_0xa46726['item']);if(_0xa46726['item']['is']('element')&&_0xaaf249['model']['schema']['isBlock'](_0xa46726['item'])&&!_0x1a243e['getCustomProperty']('addHighlight')){_0x78bab5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a243e),_0x78bab5['writer']['setAttribute']('data-suggestion',_0xdee07d,_0x1a243e),_0x78bab5['writer']['setAttribute']('data-author-id',_0x4f1a55,_0x1a243e),_0x78bab5['mapper']['bindElementToMarker'](_0x1a243e,_0xa46726['markerName']),_0x3af955||(this['_activeMarkers']['includes'](_0xa46726['markerName'])?_0x78bab5['writer']['addClass']('ck-suggestion-marker--active',_0x1a243e):_0x78bab5['writer']['removeClass']('ck-suggestion-marker--active',_0x1a243e));for(const _0x58f7e5 of _0xaaf249['model']['createRangeIn'](_0xa46726['item'])['getItems']())_0x78bab5['consumable']['consume'](_0x58f7e5,_0x4283df['name']);_0x78bab5['consumable']['consume'](_0xa46726['item'],_0x4283df['name']);}},_0x3c2619=(_0x1a883f,_0x41fbc8,_0x34f627,_0x45f6f2)=>{const _0x5351fa=_0x34f627['mapper']['markerNameToElements'](_0x41fbc8['markerName']);if(_0x5351fa){if(_0x45f6f2){const {subType:_0x4585dd}=v(_0x41fbc8['markerName']),_0x38b5d3=_0x4585dd['split']('|')[0x0];if(!this['isBlockAttribute'](_0x38b5d3))return;}for(const _0x1dd1e2 of _0x5351fa)_0x1dd1e2['getCustomProperty']('addHighlight')||(_0x34f627['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1dd1e2),_0x34f627['writer']['removeAttribute']('data-suggestion',_0x1dd1e2),_0x34f627['writer']['removeAttribute']('data-author-id',_0x1dd1e2),_0x34f627['mapper']['unbindElementFromMarkerName'](_0x1dd1e2,_0x41fbc8['markerName']));}};_0xaaf249['conversion']['for']('editingDowncast')['add'](_0x3f1f75=>{_0x3f1f75['on']('addMarker:suggestion:formatBlock',(_0x52767b,_0x2c653b,_0x4a1409)=>{_0x9464aa(_0x52767b,_0x2c653b,_0x4a1409,!0x1,!0x1);},{'priority':'high'});}),_0xaaf249['conversion']['for']('editingDowncast')['add'](_0x1a11d2=>{_0x1a11d2['on']('addMarker:suggestion:attribute',(_0x4f04cd,_0x48ad81,_0x4bafa6)=>{_0x9464aa(_0x4f04cd,_0x48ad81,_0x4bafa6,!0x1,!0x0);},{'priority':'high'});}),_0xaaf249['conversion']['for']('editingDowncast')['add'](_0x30f3c3=>{_0x30f3c3['on']('removeMarker:suggestion:formatBlock',(_0x2790cd,_0xe9df25,_0x38be88)=>{_0x3c2619(0x0,_0xe9df25,_0x38be88,!0x1);},{'priority':'high'});}),_0xaaf249['conversion']['for']('editingDowncast')['add'](_0x4a3bbd=>{_0x4a3bbd['on']('removeMarker:suggestion:attribute',(_0x1e374d,_0x825264,_0x380ee4)=>{_0x3c2619(0x0,_0x825264,_0x380ee4,!0x0);},{'priority':'high'});}),_0xaaf249['conversion']['for']('dataDowncast')['add'](_0x312b24=>{_0x312b24['on']('addMarker:suggestion:formatBlock',(_0x288dd9,_0x5a5d3c,_0x4d34b0)=>{_0x9464aa(_0x288dd9,_0x5a5d3c,_0x4d34b0,!0x0,!0x1);},{'priority':'highest'});}),_0xaaf249['conversion']['for']('dataDowncast')['add'](_0x1476f8=>{_0x1476f8['on']('addMarker:suggestion:attribute',(_0xc6c004,_0x2a7129,_0x5d028b)=>{_0x9464aa(_0xc6c004,_0x2a7129,_0x5d028b,!0x0,!0x0);},{'priority':'highest'});}),_0xaaf249['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x209732,_0x53d167)=>{if(_0x53d167['options']['showSuggestionHighlights']){const {id:_0x5c6222,authorId:_0x31cff9}=v(_0x209732);return _0x209732['includes'](':split')||_0x209732['includes'](':merge')?{'group':'suggestion','name':_0x209732['substr'](0xb),'attributes':{'data-suggestion':_0x5c6222,'data-author-id':_0x31cff9}}:null;}return{'group':'suggestion','name':_0x209732['substr'](0xb)};}});const _0xc2821c=(_0x5c3bf5,_0x5c9c64,_0x59c956,_0x3e3a4e,_0x50b08f)=>{if(_0x3e3a4e&&!_0x59c956['options']['showSuggestionHighlights'])return;if(!_0x59c956['consumable']['test'](_0x5c9c64['markerRange'],_0x5c3bf5['name']))return;const _0xe5ab31=this['_activeMarkers'],_0x36c241=_0x5c9c64['markerRange']['getWalker'](),_0x47c206=_0x5c9c64['markerRange']['start'],_0x5da7c0=_0xaaf249['model']['schema'];let _0x444694=null,_0x49f553=null,_0x220223=!0x1,_0x4b7b33=!0x1;for(const _0x4667c0 of _0x36c241){const _0x5e2afe=_0x4667c0['item'];_0x220223=_0x220223||_0x5da7c0['isContent'](_0x5e2afe);const _0x4d9137=_0x59c956['mapper']['toViewElement'](_0x5e2afe);if(_0x4d9137&&_0x4d9137['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4667c0['type']&&(_0x5da7c0['isBlock'](_0x5e2afe)&&!_0x5da7c0['isLimit'](_0x5e2afe)&&(_0x5e2afe['nextSibling']||_0x47c206['isAtEnd']?_0x444694&&_0x444694['parent']==_0x5e2afe||(_0x444694=_0x5e2afe,_0x354f32(_0x4667c0['previousPosition']),_0x4b7b33=!0x0):_0x49f553=_0x49f553||_0x4667c0['previousPosition']));}function _0x354f32(_0x518a6b){const {id:_0x179c7d,authorId:_0x4ac11a}=v(_0x5c9c64['markerName']),_0x31610e=_0x59c956['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50b08f,'data-suggestion':_0x179c7d,'data-author-id':_0x4ac11a}),_0x418b1d=_0x59c956['mapper']['toViewPosition'](_0x518a6b);!_0x3e3a4e&&_0xe5ab31['includes'](_0x5c9c64['markerName'])&&_0x59c956['writer']['addClass']('ck-suggestion-marker--active',_0x31610e),_0x59c956['writer']['insert'](_0x418b1d,_0x31610e),_0x59c956['mapper']['bindElementToMarker'](_0x31610e,_0x5c9c64['markerName']);}_0x220223||_0x4b7b33||!_0x49f553||_0x354f32(_0x49f553);};_0xaaf249['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d48bf,_0x491c00,_0x41b59f)=>{_0xc2821c(_0x2d48bf,_0x491c00,_0x41b59f,!0x1,'merge');},{'priority':'high'}),_0xaaf249['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x401a91,_0x335287,_0x38cf3c)=>{_0xc2821c(_0x401a91,_0x335287,_0x38cf3c,!0x0,'merge');},{'priority':'high'}),_0xaaf249['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5837c4,_0x559c91,_0x4c4b89)=>{_0xc2821c(_0x5837c4,_0x559c91,_0x4c4b89,!0x1,'split');},{'priority':'high'}),_0xaaf249['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb95ccf,_0x1a091f,_0x4c577d)=>{_0xc2821c(_0xb95ccf,_0x1a091f,_0x4c577d,!0x0,'split');},{'priority':'high'}),_0xaaf249['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c5601,_0x34f56a,_0x4a3879)=>{((_0x208638,_0x355613,_0x3981c5)=>{const _0x1eade8=_0x3981c5['mapper']['markerNameToElements'](_0x355613['markerName']);if(_0x1eade8){for(const _0x2b42e0 of _0x1eade8)(_0x2b42e0['hasClass']('ck-suggestion-marker-split')||_0x2b42e0['hasClass']('ck-suggestion-marker-merge'))&&(_0x3981c5['mapper']['unbindElementFromMarkerName'](_0x2b42e0,_0x355613['markerName']),_0x3981c5['writer']['remove'](_0x2b42e0));}})(0x0,_0x34f56a,_0x4a3879);},{'priority':'high'});const _0x399c43=(_0x1c8697,_0xc53a1a,_0x373c06,_0x4f1785)=>{if(_0x4f1785&&!_0x373c06['options']['showSuggestionHighlights'])return;const _0x130d4=_0xc53a1a['markerRange']['start'],_0x4431a1=_0xc53a1a['markerRange']['end'],_0x4c15ae=_0xaaf249['model']['schema'];if(!_0x130d4['isTouching'](_0x4431a1)||!_0x130d4['nodeAfter'])return;const _0x3dc925=_0x130d4['nodeAfter'];if(_0x4c15ae['isBlock'](_0x3dc925)&&!_0x4c15ae['isLimit'](_0x3dc925)&&_0x4c15ae['checkChild'](_0x3dc925,'$text')){if(!_0x373c06['consumable']['consume'](_0xc53a1a['markerRange'],_0x1c8697['name']))return;const {id:_0x1a43d8,authorId:_0x237a8b}=v(_0xc53a1a['markerName']),_0x15e293=_0x373c06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1a43d8,'data-author-id':_0x237a8b}),_0x4576b2=_0x373c06['mapper']['toViewPosition'](_0x4431a1);!_0x4f1785&&this['_activeMarkers']['includes'](_0xc53a1a['markerName'])&&_0x373c06['writer']['addClass']('ck-suggestion-marker--active',_0x15e293),_0x373c06['writer']['insert'](_0x4576b2,_0x15e293),_0x373c06['mapper']['bindElementToMarker'](_0x15e293,_0xc53a1a['markerName']);}};_0xaaf249['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x221319,_0x3c1125,_0xcc1bd5)=>{_0x399c43(_0x221319,_0x3c1125,_0xcc1bd5,!0x1);},{'priority':'high'}),_0xaaf249['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e46df,_0x23603e,_0x491404)=>{_0x399c43(_0x3e46df,_0x23603e,_0x491404,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x2a3a50,_0x55b9a6,_0xfe606e)=>{this['_activeMarkers']=_0xfe606e['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x599c66){this['_blockAttributeKeys']['add'](_0x599c66);}['registerInlineAttribute'](_0x285780){this['_inlineAttributeKeys']['add'](_0x285780);}['isBlockAttribute'](_0x34345d){return this['_blockAttributeKeys']['has'](_0x34345d);}['isInlineAttribute'](_0x47496b){return this['_inlineAttributeKeys']['has'](_0x47496b);}['isRegisteredAttribute'](_0x24ca2b){return this['isInlineAttribute'](_0x24ca2b)||this['isBlockAttribute'](_0x24ca2b);}['_getClassName'](_0x2df8c0,_0xb6bea7){if('attribute'!=_0x2df8c0)return'ck-suggestion-marker-'+_0x2df8c0;const _0x2e18bd=_0xb6bea7['split']('|')[0x0];return this['isBlockAttribute'](_0x2e18bd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x238762={},_0x37fa74){if(void 0x0!==_0x238762['dateTimeFormat']&&'function'!=typeof _0x238762['dateTimeFormat'])throw new _0x27cb33('invalid-date-time-format');return _0x3b80d0=>{const _0x1d96cb='string'==typeof _0x3b80d0?tt['fromISO'](_0x3b80d0):tt['fromJSDate'](_0x3b80d0),_0x2b4948=tt['now'](),_0x4e43a5=Math['floor'](_0x2b4948['diff'](_0x1d96cb,'days')['days']);return _0x238762['dateTimeFormat']?_0x238762['dateTimeFormat'](_0x1d96cb['toJSDate'](),_0x37fa74&&_0x37fa74['t']?_0x37fa74['t']:void 0x0):0x0===_0x4e43a5?_0x37fa74?U(_0x37fa74,'Today')+'\x20'+_0x1d96cb['toFormat']('hh:mma'):_0x1d96cb['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x4e43a5?_0x37fa74?U(_0x37fa74,'Yesterday')+'\x20'+_0x1d96cb['toFormat']('hh:mma'):_0x1d96cb['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x4e43a5<0x7?_0x37fa74?U(_0x37fa74,'Last')+'\x20'+U(_0x37fa74,_0x1d96cb['toFormat']('EEEE'))+'\x20'+_0x1d96cb['toFormat']('hh:mma'):_0x1d96cb['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x1d96cb['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x3b1df2,_0x322848){const _0x108ec0=_0x3b1df2['mapper']['markerNameToElements'](_0x322848['name']);if(!_0x108ec0)return null;const _0xeb917a=_0x30295e(_0x108ec0['values']());return _0x3b1df2['view']['domConverter']['mapViewToDom'](_0xeb917a)||null;}function wt(_0x398095,_0x16ce2d){if(0x0===_0x16ce2d['length'])return null;const _0x51f0bd=[],_0xb9ed3a=_0x398095['view']['domConverter'];for(const _0x3a94ec of _0x16ce2d){const _0x15ccff=_0x398095['mapper']['markerNameToElements'](_0x3a94ec['name']);if(!_0x15ccff)continue;const _0x55772c=Array['from'](_0x15ccff)['map'](_0x297670=>_0xb9ed3a['mapViewToDom'](_0x297670))['filter'](_0x238b85=>!!_0x238b85);_0x51f0bd['push'](..._0x55772c);}if(0x0===_0x51f0bd['length'])return null;const _0x1f227e=[];for(const _0x67975a of _0x51f0bd){const _0x3e53d1=_0x67975a['getClientRects']()['item'](0x0);_0x3e53d1&&_0x1f227e['push']({'x':_0x3e53d1['x'],'y':_0x3e53d1['y'],'domElement':_0x67975a});}return 0x0===_0x1f227e['length']?null:(_0x1f227e['sort']((_0x4986af,_0x58c0f2)=>_0x4986af['y']-_0x58c0f2['y']||_0x4986af['x']-_0x58c0f2['x']),_0x1f227e['map'](_0x18a09a=>_0x18a09a['domElement']));}function bt(_0xca5e0,{limit:_0xbf3261,suffix:_0x578cee='...'}){const _0x1bec82=[];let _0x5db573=0x0;const _0x40bdbf=_0xca5e0['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0xddff31=0x0;_0xddff31<_0x40bdbf['length'];_0xddff31++){let _0x4e4e5e=_0x40bdbf[_0xddff31];const _0x162826=tn(_0x4e4e5e);if(_0x4e4e5e['startsWith']('<')){if(_0x5db573>=_0xbf3261){const _0x1fea8c=_0x4e4e5e['match'](/[a-zA-Z]+/);if(!_0x1fea8c){_0x40bdbf[_0xddff31]='';continue;}const _0x41989c=_0x1fea8c[0x0];_0x4e4e5e['startsWith']('</')?(_0x1bec82['length']&&(_0x4e4e5e=''),_0x1bec82['pop']()):(_0x1bec82['push'](_0x41989c),_0x4e4e5e='');}}else{if(_0x5db573>=_0xbf3261)_0x4e4e5e='';else{if(_0x5db573+_0x162826['length']>=_0xbf3261){let _0x581a7c=_0xbf3261-_0x5db573;if('\x20'===_0x162826[_0x581a7c-0x1])_0x581a7c--;else{const _0x34610d=_0x162826['slice'](_0x581a7c)['indexOf']('\x20');-0x1!==_0x34610d?_0x581a7c+=_0x34610d:_0x581a7c=_0x4e4e5e['length'];}_0x4e4e5e=_0x162826['slice'](0x0,_0x581a7c)['join']('')+_0x578cee,_0x5db573=_0xbf3261;}else _0x5db573+=_0x162826['length'];}}_0x40bdbf[_0xddff31]=_0x4e4e5e;}return _0x40bdbf['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x45d67c){const _0x333b4a=[];for(let _0x1729fa=0x0;_0x1729fa<_0x45d67c['length'];_0x1729fa++){const _0x50229b=_0x45d67c['substring'](_0x1729fa)['match'](/^&[a-z0-9#]+;/);if(_0x50229b){const _0x56deb9=_0x50229b[0x0];_0x333b4a['push'](_0x56deb9),_0x1729fa+=_0x56deb9['length']-0x1;}else _0x333b4a['push'](_0x45d67c[_0x1729fa]);}return _0x333b4a;}class V extends _0x1cc78b{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x4b9b86){super(_0x4b9b86);const _0x323ea5=this['bindTemplate'];this['set']('message',U(_0x4b9b86,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x4b9b86,U(_0x4b9b86,'Yes'),_0x2b2d04,'submit'),this['cancelView']=this['_createButtonView'](_0x4b9b86,U(_0x4b9b86,'No'),_0x43d131,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x240a47(),this['focusCycler']=new _0xc1a6a5({'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':_0x323ea5['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'](_0x48bd04,_0x531943,_0x1fb1b4,_0x71c054){const _0x134963=new _0x122883(_0x48bd04);return _0x134963['label']=_0x531943,_0x134963['icon']=_0x1fb1b4,_0x134963['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x71c054}}),_0x134963['on']('execute',()=>this['fire'](_0x71c054)),_0x134963;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x281e5e=>{this['keystrokes']['listenTo'](_0x281e5e['element']),this['focusTracker']['add'](_0x281e5e['element']);}),this['keystrokes']['set']('esc',(_0x22a712,_0x2e77f5)=>{this['fire']('cancel'),_0x2e77f5();});}}function vt(_0x54b651){return class extends _0x54b651{['showConfirm'](_0x50f3fb,_0x331426){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x50f3fb,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x331426['appendChild'](this['confirmView']['element']),_0x331426['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4cdb2a,_0x19c08f,_0x47a587)=>{_0x47a587||_0x331426['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x53f3db=>this['confirmView']['on']('submit',_0x53f3db));}['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(_0x7fa3fa){let _0x91c676=0x0,_0x377b6f=0x0;for(const _0x6b775a of ne(_0x7fa3fa))_0x91c676=(_0x91c676<<0x5)-_0x91c676+_0x6b775a,_0x91c676&=_0x91c676,[_0x91c676,_0x377b6f]=[_0x377b6f,_0x91c676];return ie(_0x91c676)+ie(_0x377b6f);}function*ee(_0x1abd03){null==_0x1abd03||null==_0x1abd03?yield 0x12b9b0a1:0x0===_0x1abd03||!0x1===_0x1abd03?yield 0x0:0x1===_0x1abd03||0x1==_0x1abd03?yield 0x1:Array['isArray'](_0x1abd03)?yield*function*(_0x31dee4){for(const _0x3808a3 of _0x31dee4)yield*ee(_0x3808a3);}(_0x1abd03):'object'==typeof _0x1abd03?yield*ne(_0x1abd03):'string'==typeof _0x1abd03?yield*oe(_0x1abd03):'number'==typeof _0x1abd03&&(yield _0x1abd03);}function*ne(_0x348b24){if(yield te('{'),_0x348b24){const _0x3f34bd=Object['keys'](_0x348b24)['sort']();for(const _0x4a66de of _0x3f34bd){yield*oe(_0x4a66de),yield te(':');const _0x4ed54a=_0x348b24[_0x4a66de];yield*ee(_0x4ed54a);}}yield te('}');}function*oe(_0x546cfe){yield te('\x22');for(const _0xa8e1d4 of _0x546cfe)yield te(_0xa8e1d4);yield te('\x22');}function te(_0x41bb4f){return _0x41bb4f['charCodeAt'](0x0);}function ie(_0x56c3c4){return(_0x56c3c4*=Math['sign'](_0x56c3c4))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x3d0dff,_0x215ba7,_0x2cfb41,_0xc96945=[]){const _0x59bc7d='string'==typeof _0x3d0dff?_0x2cfb41['get'](_0x3d0dff)['constructor']:_0x3d0dff['prototype']['constructor'];if(_0x215ba7['has'](_0x59bc7d))return _0x215ba7['get'](_0x59bc7d);_0x215ba7['set'](_0x59bc7d,!0x0);const _0x2677ed=[...et,..._0xc96945]['map'](_0x10742a=>{if(_0x2cfb41['has'](_0x10742a))return _0x2cfb41['get'](_0x10742a)['constructor'];})['filter'](_0x1a3653=>_0x1a3653);if(_0x59bc7d&&_0x2677ed['includes'](_0x59bc7d))return _0x215ba7['set'](_0x59bc7d,!0x1),!0x1;if(!_0x59bc7d['requires'])return _0x215ba7['set'](_0x59bc7d,!0x0),!0x0;const _0x2826db=_0x59bc7d['requires']['every'](_0x34ecd9=>ot(_0x34ecd9,_0x215ba7,_0x2cfb41,_0xc96945));return _0x215ba7['set'](_0x59bc7d,_0x2826db),_0x2826db;}function Ct(_0x4f716d,_0x2b419f){const _0x4eab53={};for(const _0x412159 of _0x4f716d['config']['names']())nt['includes'](_0x412159)||(_0x4eab53[_0x412159]=_0x4f716d['config']['get'](_0x412159));const _0x3ded5a=_0x4eab53['plugins']||[],_0x9707b7=_0x4f716d['constructor']['builtinPlugins']||[],_0x17089a=_0x3ded5a['length']?_0x3ded5a:_0x9707b7,_0xb7f3b2=_0x4eab53['extraPlugins']||[];delete _0x4eab53['extraPlugins'];const _0x374e60=_0x4eab53['removePlugins']||[];delete _0x4eab53['removePlugins'];const _0x1bcc08=_0x4f716d['_context']['config']['get']('plugins')||[],_0x2be3c4=_0x17089a['concat'](_0xb7f3b2)['concat'](_0x1bcc08)['map'](_0x4f405d=>'string'==typeof _0x4f405d?_0x9707b7['find'](_0x5e0ccc=>_0x5e0ccc['pluginName']==_0x4f405d):_0x4f405d)['filter'](_0x2ef0a9=>!_0x374e60['includes'](_0x2ef0a9)&&!_0x374e60['includes'](_0x2ef0a9['pluginName'])),_0x49bd68=Array['from'](new Set(_0x2be3c4)),_0x5533d6=new Map();return _0x4eab53['plugins']=_0x49bd68['filter'](_0x322637=>ot(_0x322637,_0x5533d6,_0x4f716d['plugins'],_0x2b419f)),_0x4eab53;}function _t(_0x38c49a,_0xced8d4){const _0x15f38b=[];_0x38c49a['document']['selection']['on']('change:range',()=>{const _0x3862e7=function(_0x1dae5d,_0x1a1806){const _0x85b6d4=[];for(const _0xc83056 of _0x1dae5d['markers']){const _0x795fe8=_0xc83056['getRange']();(_0x795fe8['containsPosition'](_0x1a1806)||_0x795fe8['start']['isEqual'](_0x1a1806)||_0x795fe8['end']['isEqual'](_0x1a1806))&&_0x85b6d4['push'](_0xc83056);}return _0x85b6d4;}(_0x38c49a,_0x38c49a['document']['selection']['focus']),_0x3d3719=[],_0x25f0dc=[],_0x282d78=[];for(const _0x42a4da of _0x15f38b)_0x3862e7['includes'](_0x42a4da)||_0x3d3719['push'](_0x42a4da);for(const _0x4a4879 of _0x3862e7)_0x15f38b['includes'](_0x4a4879)||_0x25f0dc['push'](_0x4a4879),_0x282d78['push'](_0x4a4879);(_0x3d3719['length']||_0x25f0dc['length'])&&_0xced8d4({'left':_0x3d3719,'entered':_0x25f0dc}),_0x15f38b['length']=0x0,_0x15f38b['push'](..._0x282d78);});}const xt='Ctrl+Shift+E';function It(_0x575a97,_0x27b48a){const _0x4352e8=_0x575a97['element'];_0x575a97['keystrokes']['listenTo'](_0x4352e8);for(const _0x45ba15 of _0x27b48a)ro(_0x575a97,_0x45ba15);_0x27b48a['on']('change',(_0x220686,_0x43b0aa)=>{for(const _0xf5cb9b of _0x43b0aa['removed'])to(_0x575a97,_0xf5cb9b);for(const _0x55cda7 of Array['from'](_0x43b0aa['added'])['reverse']())ro(_0x575a97,_0x55cda7);}),_0x575a97['keystrokes']['set']('enter',(_0x3e7486,_0x42bb18)=>{_0x4352e8===_0x3e7486['target']&&(_0x575a97['focusCycler']['focusFirst'](),_0x42bb18());},{'filter':_0x509993=>_0x509993['target']===_0x4352e8}),_0x575a97['keystrokes']['set']('esc',(_0x78104c,_0x465b77)=>{_0x4352e8!==_0x78104c['target']?_0x575a97['focus']():_0x575a97['fire']('escape'),_0x465b77();}),_0x575a97['keystrokes']['set']('arrowdown',(_0xd735a1,_0x5ef531)=>{_0x4352e8===_0xd735a1['target']&&(_0x575a97['fire']('arrowdown'),_0x5ef531());}),_0x575a97['keystrokes']['set']('arrowup',(_0x44c75e,_0x9d2ea2)=>{_0x4352e8===_0x44c75e['target']&&(_0x575a97['fire']('arrowup'),_0x9d2ea2());});}function ro(_0x30e2d5,_0x332e7f){_0x332e7f['isRendered']&&(_0x30e2d5['focusTracker']['add'](_0x332e7f['element']),_0x30e2d5['keystrokes']['listenTo'](_0x332e7f['element']),_0x394038(_0x332e7f)&&function(_0x157c63,_0x49d844){const _0x29bea8=_0x157c63['actions'],_0x4e0599=_0x49d844['actions'];for(const _0x3599a4 of Object['keys'](_0x29bea8))if(_0x3599a4 in _0x4e0599&&_0x29bea8[_0x3599a4]!==_0x4e0599[_0x3599a4])return!0x1;return!0x0;}(_0x30e2d5['focusCycler'],_0x332e7f['focusCycler'])&&_0x30e2d5['focusCycler']['chain'](_0x332e7f['focusCycler']));}function to(_0x31ecc1,_0x2026d2){_0x31ecc1['focusTracker']['remove'](_0x2026d2['element']),_0x31ecc1['keystrokes']['stopListening'](_0x2026d2['element']),_0x394038(_0x2026d2)&&_0x31ecc1['focusCycler']['unchain'](_0x2026d2['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x57f267{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x46c44f?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x7e5a70,_0x5aee02)=>{_0x5aee02['on']('ready',()=>{this['_integrateEditor'](_0x5aee02);});});}get['editor'](){if(this['context']instanceof _0x46c44f)return this['context'];{const _0x3c6ab8=this['context']['editors']['first'];if(!_0x3c6ab8)throw new _0x27cb33('documentcompare-no-editor',this);return _0x3c6ab8;}}['getDiff'](_0x55a0ec,_0x3e786f,_0xd32913={'anchor':'main','markDeletions':!0x1}){const _0x14b2b4=this['editor'];let _0x90d48f,_0x32ff0a;if('string'==typeof _0xd32913['anchor']){const _0x12b499=_0x14b2b4['model']['document']['getRoot'](_0xd32913['anchor']);if(!_0x12b499)throw new _0x27cb33('documentcompare-compare-no-root',this,{'anchor':_0xd32913['anchor']});_0x90d48f=_0x14b2b4['model']['createPositionAt'](_0x12b499,0x0),_0x32ff0a=_0xd32913['context']||_0x12b499;}else _0x90d48f=_0xd32913['anchor']['clone'](),_0x32ff0a=_0xd32913['context']||_0xd32913['anchor']['clone']();const _0x25229c=_0x14b2b4['data']['parse'](_0x55a0ec,_0x32ff0a),_0xac1fdd=_0x14b2b4['data']['parse'](_0x3e786f,_0x32ff0a);return new Mt(_0x25229c,_0xac1fdd,_0x14b2b4,{'anchor':_0x90d48f,'markDeletions':_0xd32913['markDeletions']});}['isMarkedRemoveOperation'](_0x35544d){return'marker'==_0x35544d['type']&&_0x35544d['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x2eedf9){_0x2eedf9['conversion']['for']('upcast')['add'](_0x4f9965=>{_0x4f9965['on']('element',(_0x757395,_0x343981,_0x1cf6f4)=>{if(_0x343981['modelRange'])for(const _0x21a2ce of _0x343981['modelRange']['getItems']({'shallow':!0x0})){if(_0x21a2ce['is']('$textProxy'))continue;const _0x50d575=_0x343981['viewItem']['getAttribute'](Et);_0x50d575&&_0x1cf6f4['writer']['setAttribute'](St,_0x50d575,_0x21a2ce);}},{'priority':'lowest'});}),_0x2eedf9['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x4d134d,_0x5f1139,_0x3d8202,_0x22735e){this['_editor']=_0x3d8202,this['_markDeletions']=!!_0x22735e['markDeletions'],this['_anchor']=_0x22735e['anchor'];const _0x57e02a=this['_tokenizeModel'](_0x4d134d),_0x3d8da2=this['_tokenizeModel'](_0x5f1139);this['_diffItems']=this['_diffModelTokens'](_0x57e02a,_0x3d8da2),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x4d134d['markers'],_0x5f1139['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x1fa250=this['_editor']['model']['document'],_0x2aa3c9=[];let _0x57f801=_0x1fa250['version'];for(const _0x371aed of this['_operationsData'])switch(_0x371aed['type']){case'attribute':{const _0x3fa07b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['path']),_0x3492b5=_0x3fa07b['getShiftedBy'](_0x371aed['howMany']),_0x5ab45d=new _0x513d6e(_0x3fa07b,_0x3492b5),_0x4716a1=JSON['parse'](_0x371aed['oldValue']),_0x6dbb87=JSON['parse'](_0x371aed['newValue']);_0x2aa3c9['push'](new _0x3d44ec(_0x5ab45d,_0x371aed['key'],_0x4716a1,_0x6dbb87,_0x57f801++));break;}case'insert':{const _0x593d72=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['path']),_0x5d9be7=this['_makeModelFromTokens'](_0x371aed['tokens']);_0x2aa3c9['push'](new _0x2798ba(_0x593d72,_0x5d9be7,_0x57f801++));break;}case'remove':{const _0x5235da=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['path']),_0x3b1d09=new _0x271db7(_0x1fa250['graveyard'],[0x0]);_0x2aa3c9['push'](new _0xbc4047(_0x5235da,_0x371aed['howMany'],_0x3b1d09,_0x57f801++));break;}case'rename':{const _0x363bbf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['path']);_0x2aa3c9['push'](new _0x3ad5e1(_0x363bbf,_0x371aed['oldName'],_0x371aed['newName'],_0x57f801++));break;}case'split':{const _0x3bfe9e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['path']),_0x39b0c4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['path']['slice'](0x0,-0x1));_0x39b0c4['offset']++,_0x2aa3c9['push'](new _0x55a51f(_0x3bfe9e,Number['NEGATIVE_INFINITY'],_0x39b0c4,null,_0x57f801++));break;}case'merge':{const _0xc06490=_0x371aed['path']['slice'](),_0x20051d=_0xc06490['slice'](0x0,-0x1);_0x20051d[_0x20051d['length']-0x1]++,_0x20051d['push'](0x0);const _0x5b4e08=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x20051d),_0x42f799=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xc06490),_0x5c1b44=new _0x271db7(_0x1fa250['graveyard'],[0x0]);_0x2aa3c9['push'](new _0x3e7a80(_0x5b4e08,Number['NEGATIVE_INFINITY'],_0x42f799,_0x5c1b44,_0x57f801++));break;}case'marker':case'markedRemove':{let _0x18b25f=null;if(_0x371aed['range']){const _0x4cebf8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['range']['start']),_0x5c80eb=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['range']['end']);_0x18b25f=new _0x513d6e(_0x4cebf8,_0x5c80eb);}const _0x52fb3e='marker'==_0x371aed['type']?_0x371aed['name']:'$markedRemove:'+_0x150f53();_0x2aa3c9['push'](new _0x307f02(_0x52fb3e,null,_0x18b25f,_0x1fa250['model']['markers'],!0x0,_0x57f801++));break;}case'unwrap':{const _0xf25435=_0x371aed['path']['slice']();_0xf25435['push'](0x0);const _0x42975a=_0x371aed['path']['slice'](),_0x2995a7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf25435),_0x23ae94=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x42975a),_0x1e1890=new _0x271db7(_0x1fa250['graveyard'],[0x0]);_0x2aa3c9['push'](new _0xbc4047(_0x2995a7,_0x371aed['howMany'],_0x23ae94,_0x57f801++)),_0x2aa3c9['push'](new _0xbc4047(_0x23ae94['getShiftedBy'](_0x371aed['howMany']),0x1,_0x1e1890,_0x57f801++));break;}case'wrap':{const _0x1e9f31=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['range']['start']),_0x240a08=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x371aed['range']['end']),_0x55a839=_0x371aed['token']['element']['_clone'](!0x1),_0x5c3204=_0x371aed['range']['end']['slice']();_0x5c3204['push'](0x0);const _0x35d03d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5c3204);_0x2aa3c9['push'](new _0x2798ba(_0x240a08,_0x55a839,_0x57f801++)),_0x2aa3c9['push'](new _0xbc4047(_0x1e9f31,_0x240a08['offset']-_0x1e9f31['offset'],_0x35d03d,_0x57f801++));break;}}return _0x2aa3c9;}['_tokenizeModel'](_0x1ffacc){const _0x4dd2bc=[],_0x323e4e=_0x513d6e['_createIn'](_0x1ffacc),_0x2574f5=new _0xd69fc7({'boundaries':_0x323e4e});let _0x547dc6='',_0x18a2e0=null;const _0x283c70=[''],_0x2b2ff9=new Map();for(const _0x2802e1 of _0x2574f5)if('elementStart'==_0x2802e1['type']||'elementEnd'==_0x2802e1['type']){let _0x182ddf=_0x283c70[0x0];''!==_0x547dc6&&(_0x4dd2bc['push'](...this['_makeTokensFromTextByWords'](_0x547dc6,_0x18a2e0,_0x182ddf)),_0x547dc6='');const _0x50af99=_0x2802e1['item'];let _0x217f66;_0x50af99['getAttribute'](St)?_0x217f66=_0x50af99['getAttribute'](St):'elementStart'==_0x2802e1['type']?(_0x217f66=_(_0x50af99),_0x2b2ff9['set'](_0x50af99,_0x217f66)):_0x217f66=_0x2b2ff9['get'](_0x50af99);const _0x570f08=this['_getElementCategory'](_0x50af99);'solid'==_0x570f08&&('elementStart'==_0x2802e1['type']?(_0x182ddf=_0x217f66,_0x283c70['unshift'](_0x182ddf)):_0x283c70['shift']());const _0x28e9c8={'type':'element','element':_0x50af99,'elementId':_0x217f66,'category':_0x570f08,'isStart':'elementStart'==_0x2802e1['type'],'limitId':_0x182ddf};_0x4dd2bc['push'](_0x28e9c8);}else''==_0x547dc6&&(_0x18a2e0=_0x2802e1['previousPosition']['clone']()),_0x547dc6+=_0x2802e1['item']['data'];return''!==_0x547dc6&&_0x4dd2bc['push'](...this['_makeTokensFromTextByWords'](_0x547dc6,_0x18a2e0,_0x283c70[0x0])),_0x4dd2bc;}['_makeTokensFromTextByWords'](_0x1adb5f,_0x258027,_0x28d6a8){const _0x1d4ce0=_0x1adb5f['matchAll'](/(\s)/g),_0x31b23e=Array['from'](_0x1d4ce0)['map'](_0x582b9a=>_0x582b9a['index']);_0x31b23e['push'](_0x1adb5f['length']),0x0==_0x31b23e[0x0]&&_0x31b23e['shift']();const _0x460e58=[],_0x5d9ec9=_0x258027['parent'];let _0x48f860=0x0,_0x8ef6ac=_0x258027['offset'];for(let _0x1ddd75=0x0;_0x1ddd75<_0x31b23e['length'];_0x1ddd75++)_0x460e58['push']({'type':'text','data':_0x1adb5f['slice'](_0x48f860,_0x31b23e[_0x1ddd75]),'parent':_0x5d9ec9,'offset':_0x8ef6ac,'limitId':_0x28d6a8}),_0x48f860=_0x31b23e[_0x1ddd75],_0x8ef6ac=_0x258027['offset']+_0x31b23e[_0x1ddd75];return _0x460e58;}['_getElementCategory'](_0x1e1287){const _0x4982bf=this['_editor']['model']['schema'];return _0x4982bf['isLimit'](_0x1e1287)||_0x4982bf['isContent'](_0x1e1287)||_0x4982bf['isInline'](_0x1e1287)?'solid':_0x4982bf['isBlock'](_0x1e1287)?'block':'container';}['_diffModelTokens'](_0x1b3834,_0xd64d91){const _0x45266c=_0x1a73a2(_0x1b3834,_0xd64d91,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x45266c);const _0x18feba=_0x45266c['flatMap'](_0x148ece=>{const _0x292fb6=_0x148ece['added']?'added':_0x148ece['removed']?'removed':'unchanged';return _0x148ece['value']['map'](_0x3895e0=>({'token':_0x3895e0,'change':_0x292fb6}));});let _0x3b976f=0x0;for(const _0x3df7ad of _0x18feba)'added'!=_0x3df7ad['change']&&('unchanged'==_0x3df7ad['change']&&(_0x3df7ad['before']=_0x1b3834[_0x3b976f]),_0x3b976f++);return _0x18feba;}['_handleUnclosedBlockOpeningTags'](_0x18b414){for(let _0x546045=0x0;_0x546045<_0x18b414['length']-0x1;_0x546045++)if(_0x18b414[_0x546045]['removed']&&_0x18b414[_0x546045+0x1]['added']){const _0x11c8f3=this['_findUnclosedBlockOpeningToken'](_0x18b414[_0x546045]['value']);if(null!==_0x11c8f3){const _0x4bf761=this['_findUnclosedBlockOpeningToken'](_0x18b414[_0x546045+0x1]['value']),_0x354c65=_0x18b414[_0x546045]['value']['splice'](_0x11c8f3),_0xe1aa66=_0x18b414[_0x546045+0x1]['value']['splice'](_0x4bf761),_0x102d59=[_0xe1aa66['shift']()];_0x354c65['shift']();const _0x2ef143={'value':_0x354c65,'removed':!0x0},_0x171d9e={'value':_0xe1aa66,'added':!0x0},_0x223788={'value':_0x102d59};_0x18b414['splice'](_0x546045+0x2,0x0,_0x223788,_0x2ef143,_0x171d9e);}}}['_findUnclosedBlockOpeningToken'](_0x904e87){let _0x5e76d5=0x0,_0xdebc1b=-0x1;for(let _0x2e7113=0x0;_0x2e7113<_0x904e87['length'];_0x2e7113++){const _0x3b8575=_0x904e87[_0x2e7113];'element'==_0x3b8575['type']&&'block'==_0x3b8575['category']&&(_0x5e76d5+=_0x3b8575['isStart']?0x1:-0x1,_0x3b8575['isStart']&&(_0xdebc1b=_0x2e7113));}return 0x0===_0x5e76d5?null:_0xdebc1b;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1d0cfe=0x0;_0x1d0cfe<this['_diffItems']['length'];_0x1d0cfe++){const _0xe429ed=this['_diffItems'][_0x1d0cfe]['change'],_0x2ab390=[];_0x2ab390['push'](this['_diffItems'][_0x1d0cfe]);let _0x320a0c=_0x1d0cfe+0x1;for(;this['_diffItems'][_0x320a0c]&&this['_diffItems'][_0x320a0c]['change']==_0xe429ed;)_0x2ab390['push'](this['_diffItems'][_0x320a0c]),_0x320a0c++,_0x1d0cfe++;const _0x2c7c7f=_0x2ab390['map'](_0x53a615=>_0x53a615['token']);if('unchanged'==_0xe429ed)_0x2ab390['map'](_0x141b7b=>_0x141b7b['before'])['forEach'](_0x488fc1=>this['_traverseOverItem'](_0x488fc1));else{if('removed'==_0xe429ed){if(this['_markDeletions']){const _0x3c3039=this['_path']['slice']();_0x2c7c7f['forEach'](_0x1ecc3f=>this['_traverseOverItem'](_0x1ecc3f));const _0x37eb41=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x3c3039,'end':_0x37eb41}});}else this['_handleChanged'](_0x2c7c7f,!0x0,this['_path']['slice']());}else{const _0x1d1c3d=_0x2c7c7f['filter'](_0x196aa5=>'element'!=_0x196aa5['type']||'container'!=_0x196aa5['category']);this['_handleChanged'](_0x1d1c3d,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x3fba0b=0x0;_0x3fba0b<this['_diffItems']['length'];_0x3fba0b++){const _0x57cf0f=this['_diffItems'][_0x3fba0b]['change'],_0x5ec297=[];_0x5ec297['push'](this['_diffItems'][_0x3fba0b]);let _0x30db18=_0x3fba0b+0x1;for(;this['_diffItems'][_0x30db18]&&this['_diffItems'][_0x30db18]['change']==_0x57cf0f;)_0x5ec297['push'](this['_diffItems'][_0x30db18]),_0x30db18++,_0x3fba0b++;const _0x1271f4=_0x5ec297['map'](_0xee9707=>_0xee9707['token']);if('unchanged'==_0x57cf0f){const _0x202b95=_0x5ec297['map'](_0x134ae8=>_0x134ae8['before']);this['_handleUnchanged'](_0x202b95,_0x1271f4);}else('removed'!=_0x57cf0f||this['_markDeletions'])&&_0x1271f4['forEach'](_0x786aa3=>{this['_traverseOverItem'](_0x786aa3);});}}['_calculateMarkersOperationsData'](_0x1764fe,_0x30a359){const _0x4ee80a={};for(const [_0x3f6d20]of _0x1764fe)_0x4ee80a[_0x3f6d20]=null;for(const [_0x5cffd9,_0x1228e0]of _0x30a359)_0x4ee80a[_0x5cffd9]=_0x1228e0;const _0x28f11d=Object['entries'](_0x4ee80a)['map'](([_0x50d1a5,_0x2cc1c7])=>({'type':'marker','name':_0x50d1a5,'range':_0x2cc1c7?{'start':_0x2cc1c7['start']['path']['slice'](),'end':_0x2cc1c7['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x28f11d);}['_handleUnwraps'](){const _0x2b7e49=new Map(),_0x441eaa=[],_0xf9d503=[0x0];let _0x466e9d=this['_diffItems']['length']+0x1;for(let _0x544dfb=this['_diffItems']['length']-0x1;_0x544dfb>=0x0;_0x544dfb--){const {token:_0x13936d,before:_0x123a44,change:_0x573beb}=this['_diffItems'][_0x544dfb];if('removed'!=_0x573beb&&(_0x466e9d=_0x544dfb),'element'!=_0x13936d['type']||'container'!=_0x13936d['category']||'added'==_0x573beb)continue;const _0x1f9d15=_0x123a44?_0x123a44['element']:_0x13936d['element'];if(_0x13936d['isStart']){const _0x3e5609=_0x2b7e49['get'](_0x1f9d15),_0x412cfc=this['_diffItems'][_0x3e5609];('removed'==_0x573beb||'removed'==_0x412cfc['change'])&&_0x466e9d<_0x3e5609&&(this['_operationsData']['push']({'type':'unwrap','path':_0x1f9d15['getPath'](),'howMany':_0x1f9d15['maxOffset']+_0xf9d503[0x0]}),_0xf9d503['shift'](),_0xf9d503[0x0]+=_0x1f9d15['maxOffset']-0x1,_0x441eaa['push'](_0x544dfb),_0x441eaa['push'](_0x3e5609));}else _0x2b7e49['set'](_0x1f9d15,_0x544dfb),_0xf9d503['unshift'](0x0);}_0x441eaa['sort']((_0x1fa93f,_0x321668)=>_0x321668-_0x1fa93f),_0x441eaa['forEach'](_0x47bfd1=>{const _0x1b01d4=this['_diffItems'][_0x47bfd1];'removed'==_0x1b01d4['change']?this['_diffItems']['splice'](_0x47bfd1,0x1):(_0x1b01d4['change']='added',delete _0x1b01d4['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5305fe=[];for(let _0x1db681=0x0;_0x1db681<this['_diffItems']['length'];_0x1db681++){const {change:_0x1182ac,token:_0x387137}=this['_diffItems'][_0x1db681];if('added'==_0x1182ac&&'element'==_0x387137['type']&&'container'==_0x387137['category']){if(_0x387137['isStart'])_0x5305fe['push'](this['_path']['slice']());else{if(!_0x387137['isStart']){const _0x24460e=_0x5305fe['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x24460e,'end':this['_path']['slice']()},'token':_0x387137}),this['_path'][this['_path']['length']-0x1]=_0x24460e[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x1182ac||this['_markDeletions'])&&this['_traverseOverItem'](_0x387137);}}['_handleUnchanged'](_0x27f111,_0x3d8cf9){for(let _0x21dbb3=0x0;_0x21dbb3<_0x27f111['length'];_0x21dbb3++){const _0x40dc7a=_0x27f111[_0x21dbb3];if('element'==_0x40dc7a['type']&&_0x40dc7a['isStart']){const _0xf07a5d=_0x3d8cf9[_0x21dbb3];'block'==_0x40dc7a['category']&&this['_handleElementRename'](_0x40dc7a['element'],_0xf07a5d['element'],this['_path']),this['_handleElementAttributeChanges'](_0x40dc7a['element'],_0xf07a5d['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0xf07a5d);}else{if('element'!=_0x40dc7a['type']||_0x40dc7a['isStart']){if('text'==_0x40dc7a['type']){const _0x27d448=this['_path']['slice'](),_0x1951c8=[],_0x2edc44=[];for(;_0x27f111[_0x21dbb3]&&'text'==_0x27f111[_0x21dbb3]['type'];)_0x1951c8['push'](_0x27f111[_0x21dbb3]),_0x2edc44['push'](_0x3d8cf9[_0x21dbb3]),this['_path'][this['_path']['length']-0x1]+=_0x27f111[_0x21dbb3]['data']['length'],_0x21dbb3++;_0x21dbb3--,this['_handleTextAttributeChanges'](_0x1951c8,_0x2edc44,_0x27d448);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x2beac1,_0x424ac0,_0x4e764b){const _0x377b13=[],_0x285345=[],_0x182964=_0x4e764b['slice']();for(let _0x1188b9=0x0;_0x1188b9<_0x2beac1['length'];_0x1188b9++){const _0x3be4a9=_0x2beac1[_0x1188b9],_0x4db3ed=_0x4e764b['slice']();if('element'!=_0x3be4a9['type']||_0x3be4a9['isStart'])'element'==_0x3be4a9['type']&&_0x3be4a9['isStart']?(_0x4e764b['push'](0x0),_0x424ac0||this['_parents']['push'](_0x3be4a9),_0x285345['push']({'before':_0x4db3ed,'after':_0x4e764b['slice'](),'index':_0x1188b9})):_0x4e764b[_0x4e764b['length']-0x1]+=_0x3be4a9['data']['length'];else{let _0x71eeee;_0x4e764b['pop'](),_0x4e764b[_0x4e764b['length']-0x1]++,_0x71eeee=_0x424ac0?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x285345['length']?_0x285345['pop']():_0x377b13['push']({'before':_0x4db3ed,'after':_0x4e764b['slice'](),'index':_0x1188b9,'related':_0x71eeee});}}if(_0x285345['length']!==_0x377b13['length'])throw new _0x27cb33('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x2beac1,'isRemove':_0x424ac0});const _0xb8c528=[{'after':_0x182964['slice'](),'index':-0x1},..._0x377b13,..._0x285345,{'before':_0x4e764b['slice'](),'index':_0x2beac1['length']}];if(_0x424ac0){for(let _0x3545cd=_0xb8c528['length']-0x1;_0x3545cd>=0x1;_0x3545cd--){const _0xffd08=_0xb8c528[_0x3545cd-0x1]['after'],_0x5434d7=_0xb8c528[_0x3545cd]['before'],_0xf78bb1=_0x5434d7[_0x5434d7['length']-0x1]-_0xffd08[_0xffd08['length']-0x1];_0xf78bb1&&(this['_operationsData']['push']({'type':'remove','path':_0xffd08,'howMany':_0xf78bb1}),_0x5434d7[_0x5434d7['length']-0x1]-=_0xf78bb1);}for(const {before:_0x1d8a28}of _0x377b13)this['_operationsData']['push']({'type':'merge','path':_0x1d8a28});}else for(let _0x5d6a81=0x0;_0x5d6a81<_0xb8c528['length']-0x1;_0x5d6a81++){const _0xa7a359=_0xb8c528[_0x5d6a81]['after'],_0x58d646=_0xb8c528[_0x5d6a81+0x1]['before'],_0x32a886=_0xb8c528[_0x5d6a81]['index']+0x1,_0x4997de=_0xb8c528[_0x5d6a81+0x1]['index'];if(_0x32a886!==_0x4997de&&this['_operationsData']['push']({'type':'insert','path':_0xa7a359,'tokens':_0x2beac1['slice'](_0x32a886,_0x4997de)}),_0x5d6a81<_0x377b13['length']){this['_operationsData']['push']({'type':'split','path':_0x58d646});const _0x290d08=_0x2beac1[_0x285345[_0x285345['length']-0x1-_0x5d6a81]['index']],_0x4bfa20=_0x377b13[_0x5d6a81]['after'],_0x35ffcd=_0x377b13[_0x5d6a81]['related']['element'];this['_handleElementRename'](_0x35ffcd,_0x290d08['element'],_0x4bfa20),this['_handleElementAttributeChanges'](_0x35ffcd,_0x290d08['element'],_0x4bfa20);}}}['_traverseOverItem'](_0x55e1fd){'element'==_0x55e1fd['type']&&_0x55e1fd['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x55e1fd)):'element'!=_0x55e1fd['type']||_0x55e1fd['isStart']?'text'==_0x55e1fd['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x55e1fd['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x74860d,_0xb92ed7,_0x328d01){_0x74860d['name']!=_0xb92ed7['name']&&this['_operationsData']['push']({'type':'rename','path':_0x328d01['slice'](),'oldName':_0x74860d['name'],'newName':_0xb92ed7['name']});}['_handleElementAttributeChanges'](_0x3eec52,_0x412b5e,_0x553caf){const _0x34dc64=this['_getAttributeChanges'](_0x3eec52['getAttributes'](),_0x412b5e['getAttributes']());for(const _0x5cd3c5 in _0x34dc64){const {oldValue:_0x3da1d6,newValue:_0xeaeab}=_0x34dc64[_0x5cd3c5];this['_operationsData']['push']({'type':'attribute','path':_0x553caf['slice'](),'howMany':0x1,'key':_0x5cd3c5,'oldValue':_0x3da1d6,'newValue':_0xeaeab});}}['_handleTextAttributeChanges'](_0x158178,_0x53ff3a,_0x11fe74){const _0x3ad9e6=this['_operationsData'],_0x45e98b=_0x158178[0x0]['parent'],_0x508ce2=_0x158178[0x0]['offset'],_0x42f891=_0x53ff3a[0x0]['parent'],_0x32adec=_0x53ff3a[0x0]['offset'],_0x130788=_0x158178['reduce']((_0x107bc1,_0x485a59)=>_0x107bc1+_0x485a59['data']['length'],0x0),_0x1bd609=this['_getAttrsForOffsets'](_0x45e98b,_0x508ce2,_0x130788),_0x17e87d=this['_getAttrsForOffsets'](_0x42f891,_0x32adec,_0x130788),_0x548ae8={};for(let _0x3c2215=0x0;_0x3c2215<_0x130788;_0x3c2215++){const _0x2b270f=_0x1bd609[_0x508ce2+_0x3c2215],_0xb6e659=_0x17e87d[_0x32adec+_0x3c2215],_0x164856=this['_getAttributeChanges'](_0x2b270f,_0xb6e659);for(const _0x4f7545 in _0x548ae8)_0x164856[_0x4f7545]||_0x2bc11a(_0x4f7545);for(const _0x2a8190 in _0x164856){const {oldValue:_0x439126,newValue:_0x205ed7}=_0x164856[_0x2a8190],_0x19c935=_0x548ae8[_0x2a8190];_0x19c935?_0x19c935['oldValue']==_0x439126&&_0x19c935['newValue']==_0x205ed7?_0x19c935['length']++:(_0x2bc11a(_0x2a8190),_0x548ae8[_0x2a8190]={'oldValue':_0x439126,'newValue':_0x205ed7,'start':_0x3c2215,'length':0x1}):_0x548ae8[_0x2a8190]={'oldValue':_0x439126,'newValue':_0x205ed7,'start':_0x3c2215,'length':0x1};}}for(const _0x5cfd4d in _0x548ae8)_0x2bc11a(_0x5cfd4d);function _0x2bc11a(_0x44724){const _0x50dd55=_0x548ae8[_0x44724],_0x4db8eb=_0x11fe74['slice']();_0x4db8eb[_0x4db8eb['length']-0x1]+=_0x50dd55['start'],_0x3ad9e6['push']({'type':'attribute','path':_0x4db8eb,'howMany':_0x50dd55['length'],'key':_0x44724,'oldValue':_0x50dd55['oldValue'],'newValue':_0x50dd55['newValue']}),delete _0x548ae8[_0x44724];}}['_getAttributeChanges'](_0x5f5a2d,_0x5947c1){const _0x37f556={};for(const [_0x1ad2ff,_0x301497]of _0x5f5a2d)_0x37f556[_0x1ad2ff]={'oldValue':JSON['stringify'](_0x301497),'newValue':'null'};for(const [_0x41e434,_0x26fd2a]of _0x5947c1){const _0x1bf6ce=JSON['stringify'](_0x26fd2a);_0x37f556[_0x41e434]?_0x37f556[_0x41e434]['oldValue']==_0x1bf6ce?delete _0x37f556[_0x41e434]:_0x37f556[_0x41e434]['newValue']=_0x1bf6ce:_0x37f556[_0x41e434]={'oldValue':'null','newValue':_0x1bf6ce};}return delete _0x37f556[St],_0x37f556;}['_getAttrsForOffsets'](_0x48fc1d,_0x9beb35,_0x195054){const _0x3be028=new Array(_0x9beb35+_0x195054);let _0x113793=_0x48fc1d['getChildAtOffset'](_0x9beb35),_0xebf7c2=_0x113793['startOffset'];for(;_0x113793&&_0xebf7c2<_0x9beb35+_0x195054;){const _0x55e4fe=Array['from'](_0x113793['getAttributes']());_0x3be028['fill'](_0x55e4fe,_0xebf7c2,_0xebf7c2+_0x113793['offsetSize']),_0xebf7c2+=_0x113793['offsetSize'],_0x113793=_0x113793['nextSibling'];}return _0x3be028;}['_getPositionFromAnchorAndPath'](_0x2a750b,_0x561071){const _0xd438d9=[..._0x2a750b['path']['slice'](0x0,-0x1),_0x2a750b['offset']+_0x561071[0x0],..._0x561071['slice'](0x1)];return new _0x271db7(_0x2a750b['root'],_0xd438d9);}['_makeModelFromTokens'](_0x3da70d){const _0x36aa95=[];let _0x490b00=null;for(const _0x363c08 of _0x3da70d)if('element'!=_0x363c08['type']||_0x363c08['isStart']||_0x490b00!=_0x363c08['element']){if(!_0x490b00){if('text'==_0x363c08['type']){const _0x32bd73=_0x271db7['_createAt'](_0x363c08['parent'],_0x363c08['offset']),_0x5d9eb6=_0x513d6e['_createFromPositionAndShift'](_0x32bd73,_0x363c08['data']['length']),_0x21fe4d=Array['from'](_0x5d9eb6['getItems']())['map'](_0x3a6323=>new _0x3b9560(_0x3a6323['data'],_0x3a6323['getAttributes']()));_0x36aa95['push'](..._0x21fe4d);}else{_0x490b00=_0x363c08['element'];const _0x11b726=_0x363c08['element']['_clone'](!0x0);_0x11b726['_removeAttribute'](St);for(const _0x37dfcb of this['_editor']['model']['createRangeIn'](_0x11b726)['getItems']())_0x37dfcb['is']('element')&&_0x37dfcb['_removeAttribute'](St);_0x36aa95['push'](_0x11b726);}}}else _0x490b00=null;return _0x36aa95;}}function g(_0x2315d0,_0xd4be88){return _0x2315d0['type']===_0xd4be88['type']&&(_0x2315d0['limitId']===_0xd4be88['limitId']&&('text'==_0x2315d0['type']?_0x2315d0['data']==_0xd4be88['data']:function(_0x47ef00,_0x4d6565){if(_0x47ef00['isStart']!=_0x4d6565['isStart'])return!0x1;if(_0x47ef00['isStart']&&_0x47ef00['elementId']!=_0x4d6565['elementId'])return!0x1;if(_0x47ef00['category']!=_0x4d6565['category'])return!0x1;if('block'==_0x47ef00['category'])return!0x0;if('container'==_0x47ef00['category']&&_0x47ef00['elementId']!=_0x4d6565['elementId'])return!0x1;return _0x47ef00['element']['name']==_0x4d6565['element']['name'];}(_0x2315d0,_0xd4be88)));}function _(_0x4ca51f){return k({'name':_0x4ca51f['name'],...Object['fromEntries'](_0x4ca51f['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};
|
|
23
|
+
import{ContextPlugin as _0x101a29,Editor as _0x32e53f,Plugin as _0x5a2fbf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5ba804,Collection as _0xc75d63,uid as _0x1f2cf9,toArray as rt,first as _0x3578b8,FocusTracker as ts,KeystrokeHandler as _0x3c204b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x40da4b,IconView as st,ButtonView as _0x366805,DropdownButtonView as _0x249e41,FocusCycler as _0x200279,isViewWithFocusCycler as _0x5137e1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0xc48a48,IconCancel as _0x27af82}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x5099a7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x5ed199,MoveOperation as _0x4a2a4b,ModelPosition as _0x43957f,ModelRange as _0x131689,MarkerOperation as _0x3a750b,MergeOperation as _0x3eefd9,SplitOperation as _0x369656,RenameOperation as _0x27de69,AttributeOperation as _0x57a35b,ModelTreeWalker as _0x3a078f,ModelText as _0x49041f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0xd542d8}from'diff';class C extends _0x101a29{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x37bad2,_0x493fc5){let _0x593029;if(_0x493fc5||(_0x493fc5=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x493fc5?_0x593029=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x593029=this['context']['editors']['find'](_0x80c5cf=>_0x80c5cf['config']['get']('collaboration.channelId')==_0x493fc5)),!_0x593029)throw new _0x5ba804('permissions-set-permissions-invalid-channel-id',null);const _0x249b65=_0x593029['plugins'],_0x18c0fe=_0x249b65['has']('CommentsRepository')?_0x249b65['get']('CommentsRepository'):void 0x0,_0x11d291=_0x249b65['has']('CommentsOnly')&&_0x249b65['get']('CommentsOnly'),_0x2cadf7=_0x37bad2['includes']('document:write'),_0xf130cf=_0x37bad2['includes']('comment:modify_all'),_0x32d80f=_0x37bad2['includes']('comment:admin'),_0x200955=_0x37bad2['includes']('comment:write'),_0x2077c5=_0x200955||_0x32d80f,_0x2652ee=_0x2077c5||_0xf130cf,_0x57e410=_0x2cadf7||_0x2077c5;(_0x11d291&&(_0x11d291['isEnabled']=!_0x2cadf7&&_0x2652ee),_0x593029 instanceof _0x32e53f)&&(!(_0x2cadf7||_0x2652ee&&_0x18c0fe)?_0x593029['enableReadOnlyMode']('no-permissions'):_0x593029['disableReadOnlyMode']('no-permissions'));if(_0x18c0fe){_0x18c0fe['setPermissions']({'admin':_0x32d80f,'modifyAll':_0xf130cf,'write':_0x200955,'resolve':_0x57e410},_0x493fc5);const _0x5efef2=_0x593029 instanceof _0x32e53f&&_0x593029['commands']['get']('addCommentThread');_0x5efef2&&(_0x2077c5?_0x5efef2['clearForceDisabled']('noPermissions'):_0x5efef2['forceDisabled']('noPermissions'));}}}function U(_0x1b7df3,_0x2d15a3){const t=_0x1b7df3['t'];switch(_0x2d15a3){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 at extends _0x101a29{['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(_0x2aa5dd){super(_0x2aa5dd),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0xc75d63(),this['_locale']=_0x2aa5dd['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:_0x47d459,name:_0x8c962a,..._0x33a864}){if(!_0x47d459||'string'!=typeof _0x47d459)throw new _0x5ba804('users-add-invalid-id');if(this['users']['has'](_0x47d459))throw new _0x5ba804('users-add-duplicated-id',null,{'id':_0x47d459});const _0x62e4e1=this['context']['config']['get']('users.getInitialsCallback'),_0x19902f={..._0x33a864,'id':_0x47d459,'name':A(this['_locale'],_0x8c962a),'color':this['_getNextColor']()};_0x19902f['name']=A(this['_locale'],_0x19902f['name']);const _0x3db353=new lt(_0x19902f,_0x62e4e1);return this['users']['add'](_0x3db353),_0x3db353;}['getUser'](_0x406dc0){return this['users']['get'](_0x406dc0);}['useAnonymousUser'](){const _0x474635=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x474635);}['defineMe'](_0x5166db){if(this['_myId'])throw new _0x5ba804('users-me-already-defined',null);const _0x4f2f6a=this['getUser'](_0x5166db);if(!_0x4f2f6a)throw new _0x5ba804('users-me-missing-user',null);this['_myId']=_0x5166db,_0x4f2f6a['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0xc26847=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xc26847&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x2b588c=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x2b588c,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x2e5ea7,_0x43f5c9){this['id']=_0x2e5ea7['id'],this['color']=_0x2e5ea7['color'],this['name']=_0x2e5ea7['name'],this['initials']=_0x43f5c9?_0x43f5c9(this['name']):this['_computeInitials'](),this['avatar']=_0x2e5ea7['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x4faf2f=this['name']['split']('\x20')['filter'](_0x209abf=>/^[\p{Letter}]/u['test'](_0x209abf));return 0x1===_0x4faf2f['length']?this['_getInitial'](_0x4faf2f[0x0]):0x0===_0x4faf2f['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x4faf2f[0x0])+this['_getInitial'](_0x4faf2f[_0x4faf2f['length']-0x1]);}['_getInitial'](_0x222e8f){return String['fromCodePoint'](_0x222e8f['codePointAt'](0x0))['toUpperCase']();}}function A(_0x2e683a,_0x59dcc2=''){return''==(_0x59dcc2=_0x59dcc2['trim']())?U(_0x2e683a,'Anonymous'):_0x59dcc2;}class ut{['_id'];constructor(_0x2ddd3d){this['_id']=_0x2ddd3d;}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 _0x40da4b{['name'];['notificationView'];constructor(_0x1ca15a,_0x40829d,_0x90a777){super(_0x1ca15a),this['name']=_0x40829d['name'],this['notificationView']=null;const _0x30e9c6=['ck','ck-user'],_0x1a1c98=['ck','ck-user__img'];if(_0x40829d['isAnonymous']&&_0x1a1c98['push']('ck-user__anonymous'),!_0x40829d['isAnonymous']&&_0x40829d['isMe']&&_0x30e9c6['push']('ck-user_me'),_0x40829d['avatar']&&_0x1a1c98['push']('ck-user__avatar'),_0x90a777){const _0x5f58b6=new st();_0x5f58b6['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x5f58b6['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x90a777},'children':[_0x5f58b6]};}const _0x10178c=[{'tag':'div','attributes':{'class':_0x1a1c98,'style':{'background-image':_0x40829d['avatar']?'url(\x27'+_0x40829d['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x40829d['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x40829d['name']},'children':[{'text':_0x40829d['initials']}]}];this['notificationView']&&_0x10178c['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x30e9c6,'data-user-id':_0x40829d['id']},'children':_0x10178c});}}class dt extends _0x40da4b{['id'];constructor(_0x4cccca,_0x3ddfc4){super(_0x4cccca),this['id']='ck-aria-description-'+_0x1f2cf9(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3ddfc4}]});}}class ft extends _0x366805{['render'](){super['render'](),re(this);}}class gt extends _0x249e41{['render'](){super['render'](),re(this);}}function re(_0x3b5b48){_0x3b5b48['listenTo'](_0x3b5b48['element'],'mousedown',(_0x57132a,_0x3fb470)=>{_0x3fb470['stopPropagation'](),_0x3fb470['preventDefault']();}),_0x3b5b48['listenTo'](_0x3b5b48['element'],'mouseup',()=>{_0x3b5b48['element']['focus']();});}function v(_0x4f492a){const _0xd3ffae=_0x4f492a['split'](':');return{'group':_0xd3ffae[0x0],'type':_0xd3ffae[0x1],'subType':_0xd3ffae['length']>=0x5?_0xd3ffae[0x2]:null,'id':_0xd3ffae['length']<0x5?_0xd3ffae[0x2]:_0xd3ffae[0x3],'authorId':_0xd3ffae['length']<0x5?_0xd3ffae[0x3]:_0xd3ffae[0x4],'markerCount':0x6==_0xd3ffae['length']?_0xd3ffae[0x5]:null};}function mt(_0x10da7a,_0x45f330){const _0x2fe892=_0x10da7a['end']['nodeBefore'];if(_0x2fe892&&_0x2fe892['is']('element')&&_0x45f330['schema']['isBlock'](_0x2fe892)&&!_0x45f330['schema']['isObject'](_0x2fe892)){const _0x23fee7=_0x45f330['createPositionAt'](_0x2fe892,'end');return _0x45f330['createRange'](_0x10da7a['start'],_0x23fee7);}return _0x10da7a;}class M extends _0x5a2fbf{['afterInit'](){const _0x24a9d1=this['editor'];if(!_0x24a9d1['plugins']['has']('AlignmentEditing'))return;_0x24a9d1['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x5a2fbf{['afterInit'](){const _0x21a55d=this['editor'],_0x564409=_0x21a55d['plugins']['get']('SuggestionsConversion');for(const _0x4f6f46 of ii){if(!_0x21a55d['plugins']['has'](_0x4f6f46))continue;const _0x65a176=_0x4f6f46['slice'](0x0,-0x7)['toLowerCase']();_0x564409['registerInlineAttribute'](_0x65a176);}}}class I extends _0x5a2fbf{['afterInit'](){const _0x5b58b7=this['editor'],_0x1cadf4=_0x5b58b7['plugins']['get']('SuggestionsConversion');_0x5b58b7['plugins']['has']('BookmarkEditing')&&_0x1cadf4['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x5a2fbf{['afterInit'](){const _0x44ceba=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x7097cf,commandName:_0x250ca1}of no)this['editor']['plugins']['has'](_0x7097cf)&&_0x44ceba['registerInlineAttribute'](_0x250ca1);}}class T extends _0x5a2fbf{['afterInit'](){const _0x3662e4=this['editor'];if(!_0x3662e4['plugins']['has']('HighlightEditing'))return;_0x3662e4['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class E extends _0x5a2fbf{['afterInit'](){const _0x53a101=this['editor'];if(!_0x53a101['plugins']['has']('HtmlEmbed'))return;_0x53a101['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class S extends _0x5a2fbf{['afterInit'](){const _0x586f56=this['editor'];if(!_0x586f56['plugins']['has']('ImageEditing'))return;const _0x5d1adb=_0x586f56['plugins']['get']('SuggestionsConversion');_0x5d1adb['registerBlockAttribute']('src'),_0x586f56['plugins']['has']('ImageResize')&&_0x5d1adb['registerBlockAttribute']('resizedWidth'),_0x586f56['plugins']['has']('ImageTextAlternativeEditing')&&_0x5d1adb['registerBlockAttribute']('alt'),_0x586f56['plugins']['has']('PictureEditing')&&_0x5d1adb['registerBlockAttribute']('sources'),_0x586f56['plugins']['has']('ImageSizeAttributes')&&(_0x5d1adb['registerBlockAttribute']('width'),_0x5d1adb['registerBlockAttribute']('height'));}}class $ extends _0x5a2fbf{['afterInit'](){const _0x2780bd=this['editor'],_0x1761f9=_0x2780bd['plugins']['get']('SuggestionsConversion');_0x2780bd['plugins']['has']('IndentBlock')&&_0x1761f9['registerBlockAttribute']('blockIndent');}}class x extends _0x5a2fbf{['afterInit'](){const _0x5daccc=this['editor'];if(!_0x5daccc['plugins']['has']('LineHeight'))return;_0x5daccc['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class H extends _0x5a2fbf{['afterInit'](){const _0x3c578a=this['editor'];if(!_0x3c578a['plugins']['has']('LinkEditing'))return;const _0x3e5170=_0x3c578a['plugins']['get']('SuggestionsConversion'),_0x4de5fa=_0x3c578a['commands']['get']('link');_0x3e5170['registerInlineAttribute']('linkHref');for(const _0x578138 of _0x4de5fa['manualDecorators'])_0x3e5170['registerInlineAttribute'](_0x578138['id']);}}class N extends _0x5a2fbf{['afterInit'](){const _0x3e01c0=this['editor'];if(!_0x3e01c0['plugins']['has']('ListEditing'))return;const _0x1154d9=_0x3e01c0['plugins']['get']('SuggestionsConversion'),_0x4c6f73=_0x3e01c0['plugins']['has']('TodoListEditing');_0x1154d9['registerBlockAttribute']('listItemId'),_0x1154d9['registerBlockAttribute']('listType'),_0x1154d9['registerBlockAttribute']('listIndent'),_0x4c6f73&&_0x1154d9['registerBlockAttribute']('todoListChecked');}}class P extends _0x5a2fbf{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x42f50a=this['editor']['config']['get']('list.properties'),_0x199823=this['editor']['plugins']['get']('SuggestionsConversion');_0x42f50a['styles']&&_0x199823['registerBlockAttribute']('listStyle'),_0x42f50a['reversed']&&_0x199823['registerBlockAttribute']('listReversed'),_0x42f50a['startIndex']&&_0x199823['registerBlockAttribute']('listStart');}}class K extends _0x5a2fbf{['afterInit'](){const _0x34ef34=this['editor'],_0x3d1e18=_0x34ef34['plugins']['get']('SuggestionsConversion');_0x34ef34['plugins']['has']('MultiLevelList')&&_0x3d1e18['registerBlockAttribute']('listMarkerStyle');}}class q extends _0x5a2fbf{['afterInit'](){const _0x229d1a=this['editor'];if(!_0x229d1a['plugins']['has']('Style')||!_0x229d1a['plugins']['has']('DataSchema')||!_0x229d1a['config']['get']('style.definitions'))return;const _0x56aedb=_0x229d1a['plugins']['get']('SuggestionsConversion'),_0x5c9fa4=_0x229d1a['config']['get']('style.definitions'),_0x297f61=_0x229d1a['plugins']['get']('GeneralHtmlSupport'),_0x2bf93f=_0x229d1a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x229d1a['plugins']['get']('DataSchema'),_0x5c9fa4),_0x4787c3=new Set();for(const _0x18e623 of _0x2bf93f['block']){const _0x3ed738=_0x297f61['getGhsAttributeNameForElement'](_0x18e623['element']);_0x4787c3['add'](_0x3ed738);}const _0xb9fcb=new Set();for(const _0x1b1cde of _0x2bf93f['inline']){const _0xa7a879=_0x297f61['getGhsAttributeNameForElement'](_0x1b1cde['element']);_0xb9fcb['add'](_0xa7a879);for(const _0x7368fe of _0x1b1cde['ghsAttributes'])_0xb9fcb['add'](_0x7368fe);}for(const _0x518edd of _0x4787c3)_0x56aedb['registerBlockAttribute'](_0x518edd);for(const _0x14feef of _0xb9fcb)_0x56aedb['registerInlineAttribute'](_0x14feef);}}class z extends _0x5a2fbf{['afterInit'](){const _0x27b49c=this['editor'];if(!_0x27b49c['plugins']['has']('TableEditing'))return;const _0x429265=_0x27b49c['plugins']['get']('SuggestionsConversion');_0x429265['registerBlockAttribute']('headingRows'),_0x429265['registerBlockAttribute']('headingColumns');}}class O extends _0x5a2fbf{['afterInit'](){const _0x5bbafe=this['editor']['plugins']['get']('SuggestionsConversion');if(!this['editor']['plugins']['has']('Table'))return;const _0x1557ba=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor','tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x3da27f of _0x1557ba)_0x5bbafe['registerBlockAttribute'](_0x3da27f);}}class R extends _0x5a2fbf{['afterInit'](){const _0x139734=this['editor'],_0x563c17=_0x139734['plugins']['get']('SuggestionsConversion');_0x139734['plugins']['has']('TableLayout')&&_0x563c17['registerBlockAttribute']('tableType');}}class F extends _0x5a2fbf{['afterInit'](){const _0x479636=this['editor'],_0x5ef1d4=this['editor']['plugins']['get']('SuggestionsConversion');_0x479636['plugins']['has']('Uploadcare')&&_0x479636['plugins']['has']('UploadcareImageEdit')&&_0x5ef1d4['registerBlockAttribute']('uploadcareImageId');}}class G extends _0x5a2fbf{['afterInit'](){const _0x51c3e0=this['editor'];if(!_0x51c3e0['plugins']['has']('ShiftEnter'))return;const _0x5f3cd9=_0x51c3e0['plugins']['get']('SuggestionsConversion'),_0x5a2145=(_0x8b38bd,_0x438bd5,_0x1a6498,_0x4fdbb1)=>{if(_0x4fdbb1&&!_0x1a6498['options']['showSuggestionHighlights'])return;if(!_0x1a6498['consumable']['test'](_0x438bd5['markerRange'],_0x8b38bd['name']))return;const _0x371fcc=_0x51c3e0['model'];for(const _0x2a1bc3 of _0x438bd5['markerRange']['getItems']()){if(!_0x2a1bc3['is']('element','softBreak'))continue;const _0x543c42='deletion'==_0x438bd5['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3f067f,authorId:_0x28952a}=v(_0x438bd5['markerName']),_0x5eb6d6=_0x1a6498['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x543c42,'data-suggestion':_0x3f067f,'data-author-id':_0x28952a}),_0x585d67=_0x1a6498['mapper']['toViewPosition'](_0x371fcc['createPositionBefore'](_0x2a1bc3));!_0x4fdbb1&&_0x5f3cd9['_activeMarkers']['includes'](_0x438bd5['markerName'])&&_0x1a6498['writer']['addClass']('ck-suggestion-marker--active',_0x5eb6d6),_0x1a6498['writer']['insert'](_0x585d67,_0x5eb6d6),_0x1a6498['mapper']['bindElementToMarker'](_0x5eb6d6,_0x438bd5['markerName']);}};_0x51c3e0['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x188941,_0x2b6835,_0x34d69f)=>{_0x5a2145(_0x188941,_0x2b6835,_0x34d69f,!0x1);},{'priority':'high'}),_0x51c3e0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56dd0f,_0x138c24,_0x7758af)=>{_0x5a2145(_0x56dd0f,_0x138c24,_0x7758af,!0x0);},{'priority':'high'});}}class J extends _0x5a2fbf{['afterInit'](){const _0x50f0c6=this['editor'];_0x50f0c6['plugins']['has']('MediaEmbedEditing')&&(_0x50f0c6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3c521d,{writer:_0x4c4956,options:_0x3573be})=>{if(_0x3573be['showSuggestionHighlights'])return _0x4c4956['createEmptyElement']('div');},'converterPriority':'high'}),_0x50f0c6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x113cdc,_0x1326d6,_0x19f41b)=>{_0x19f41b['options']['showSuggestionHighlights']&&_0x113cdc['stop']();},{'priority':'high'}));}}class L extends _0x5a2fbf{['afterInit'](){const _0x239adb=this['editor'];if(!_0x239adb['plugins']['has']('Table'))return;_0x239adb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x345a8e,_0x2bf6de,_0x8627b6)=>{((_0x2e72c5,_0x43c354,_0x9c6c85)=>{if(!_0x9c6c85['options']['showSuggestionHighlights'])return;const _0x3e8392=_0x43c354['item'];if(!_0x3e8392||!_0x3e8392['is']('element','tableCell'))return;const _0x1c0d32=_0x9c6c85['mapper']['toViewElement'](_0x3e8392);if(_0x1c0d32){const {id:_0x55a2df,authorId:_0x34e194}=v(_0x43c354['markerName']);it(_0x1c0d32,_0x9c6c85['writer'],(_0x5b4a05,_0x5f3427,_0x199aa4)=>{_0x199aa4['addClass'](rt(_0x5f3427['classes']),_0x5b4a05),_0x199aa4['setAttribute']('data-suggestion-id',_0x55a2df,_0x5b4a05),_0x199aa4['setAttribute']('data-author-id',_0x34e194,_0x5b4a05);});}})(0x0,_0x2bf6de,_0x8627b6);},{'priority':'highest'});}}class Q extends _0x5a2fbf{['afterInit'](){const _0xac68e=this['editor'];_0xac68e['plugins']['has']('HorizontalLineEditing')&&_0xac68e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2808aa,{writer:_0x53da01,options:_0x4e3631})=>{if(!_0x4e3631['showSuggestionHighlights'])return null;const _0x504d72=_0x53da01['createContainerElement']('div'),_0x1df75d=_0x53da01['createEmptyElement']('hr');return _0x53da01['addClass']('ck-horizontal-line',_0x504d72),_0x53da01['insert'](_0x53da01['createPositionAt'](_0x504d72,0x0),_0x1df75d),_0x504d72;},'converterPriority':'high'});}}class kt extends _0x5a2fbf{['_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 _0x48e7ef=this['editor'],_0x2b1451=(_0xe5a2ab,_0x18cec2,_0x899ec5)=>{const {id:_0x2944c2,authorId:_0x5dfd5d,type:_0x520ec5,subType:_0x3fcabc}=v(_0xe5a2ab['markerName']),_0xbf27e9=['ck-suggestion-marker',this['_getClassName'](_0x520ec5,_0x3fcabc)];let _0x2031df=0xbb8;return!_0x899ec5&&(this['_activeMarkers']['includes'](_0xe5a2ab['markerName'])&&(_0xbf27e9['push']('ck-suggestion-marker--active'),_0x2031df=0xbc2)),('deletion'==_0x520ec5&&(_0x2031df+=0x5),{'classes':_0xbf27e9,'attributes':{'data-suggestion':_0x2944c2,'data-author-id':_0x5dfd5d},'priority':_0x2031df});};_0x48e7ef['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4c625e,_0x463ee9)=>_0x2b1451(_0x4c625e,0x0,!0x1)}),_0x48e7ef['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x437e4c,_0x349950)=>_0x2b1451(_0x437e4c,0x0,!0x0)}),_0x48e7ef['conversion']['for']('dataDowncast')['add'](_0x391434=>{_0x391434['on']('addMarker:suggestion',(_0x4b4fc8,_0xc9c7df,_0x4ac963)=>{if(!_0x4ac963['options']['showSuggestionHighlights'])return;const _0x164245=_0xc9c7df['item'];if(!_0x164245)return;const _0x59afd8=_0x4ac963['mapper']['toViewElement'](_0x164245);_0x48e7ef['model']['schema']['isObject'](_0x164245)&&_0x59afd8&&!_0x59afd8['getCustomProperty']('widget')&&_0x59afd8['is']('containerElement')&&_0x5099a7(_0x59afd8,_0x4ac963['writer']);},{'priority':'high'});});const _0xe66e0=(_0x5a7c45,_0x2ffdf1,_0x520a47,_0x3f1187,_0x1da1ee)=>{if(_0x3f1187&&!_0x520a47['options']['showSuggestionHighlights'])return;if(!_0x2ffdf1['item'])return;const {id:_0x9ead4,authorId:_0x2128d3,subType:_0x58b0bc}=v(_0x2ffdf1['markerName']);if(_0x1da1ee){const _0x5dd980=_0x58b0bc['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5dd980))return;}if(_0x2ffdf1['item']['is']('selection'))return void _0x520a47['consumable']['consume'](_0x2ffdf1['item'],_0x5a7c45['name']);const _0x54bd9e=_0x520a47['mapper']['toViewElement'](_0x2ffdf1['item']);if(_0x2ffdf1['item']['is']('element')&&_0x48e7ef['model']['schema']['isBlock'](_0x2ffdf1['item'])&&!_0x54bd9e['getCustomProperty']('addHighlight')){_0x520a47['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x54bd9e),_0x520a47['writer']['setAttribute']('data-suggestion',_0x9ead4,_0x54bd9e),_0x520a47['writer']['setAttribute']('data-author-id',_0x2128d3,_0x54bd9e),_0x520a47['mapper']['bindElementToMarker'](_0x54bd9e,_0x2ffdf1['markerName']),_0x3f1187||(this['_activeMarkers']['includes'](_0x2ffdf1['markerName'])?_0x520a47['writer']['addClass']('ck-suggestion-marker--active',_0x54bd9e):_0x520a47['writer']['removeClass']('ck-suggestion-marker--active',_0x54bd9e));for(const _0x4634c of _0x48e7ef['model']['createRangeIn'](_0x2ffdf1['item'])['getItems']())_0x520a47['consumable']['consume'](_0x4634c,_0x5a7c45['name']);_0x520a47['consumable']['consume'](_0x2ffdf1['item'],_0x5a7c45['name']);}},_0x348c51=(_0x90634c,_0x3c70a4,_0x156893,_0x9d333a)=>{const _0x276558=_0x156893['mapper']['markerNameToElements'](_0x3c70a4['markerName']);if(_0x276558){if(_0x9d333a){const {subType:_0x2c1e0d}=v(_0x3c70a4['markerName']),_0xf1554b=_0x2c1e0d['split']('|')[0x0];if(!this['isBlockAttribute'](_0xf1554b))return;}for(const _0x2cf397 of _0x276558)_0x2cf397['getCustomProperty']('addHighlight')||(_0x156893['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2cf397),_0x156893['writer']['removeAttribute']('data-suggestion',_0x2cf397),_0x156893['writer']['removeAttribute']('data-author-id',_0x2cf397),_0x156893['mapper']['unbindElementFromMarkerName'](_0x2cf397,_0x3c70a4['markerName']));}};_0x48e7ef['conversion']['for']('editingDowncast')['add'](_0x2ca2f4=>{_0x2ca2f4['on']('addMarker:suggestion:formatBlock',(_0x3198fa,_0x30f150,_0x544150)=>{_0xe66e0(_0x3198fa,_0x30f150,_0x544150,!0x1,!0x1);},{'priority':'high'});}),_0x48e7ef['conversion']['for']('editingDowncast')['add'](_0x5716e8=>{_0x5716e8['on']('addMarker:suggestion:attribute',(_0x41d32e,_0x12a707,_0x2cd1ac)=>{_0xe66e0(_0x41d32e,_0x12a707,_0x2cd1ac,!0x1,!0x0);},{'priority':'high'});}),_0x48e7ef['conversion']['for']('editingDowncast')['add'](_0x2ed59=>{_0x2ed59['on']('removeMarker:suggestion:formatBlock',(_0x368e0a,_0x132c24,_0x2ccc8c)=>{_0x348c51(0x0,_0x132c24,_0x2ccc8c,!0x1);},{'priority':'high'});}),_0x48e7ef['conversion']['for']('editingDowncast')['add'](_0x44efeb=>{_0x44efeb['on']('removeMarker:suggestion:attribute',(_0x3a7278,_0x435f25,_0x5b5dc6)=>{_0x348c51(0x0,_0x435f25,_0x5b5dc6,!0x0);},{'priority':'high'});}),_0x48e7ef['conversion']['for']('dataDowncast')['add'](_0x2b6a61=>{_0x2b6a61['on']('addMarker:suggestion:formatBlock',(_0x50851e,_0x4d73a9,_0x341e11)=>{_0xe66e0(_0x50851e,_0x4d73a9,_0x341e11,!0x0,!0x1);},{'priority':'highest'});}),_0x48e7ef['conversion']['for']('dataDowncast')['add'](_0x24c3ca=>{_0x24c3ca['on']('addMarker:suggestion:attribute',(_0x499e09,_0x3dadc9,_0x4afa0e)=>{_0xe66e0(_0x499e09,_0x3dadc9,_0x4afa0e,!0x0,!0x0);},{'priority':'highest'});}),_0x48e7ef['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3b3125,_0x3be9bb)=>{if(_0x3be9bb['options']['showSuggestionHighlights']){const {id:_0x478e3e,authorId:_0xb5993b}=v(_0x3b3125);return _0x3b3125['includes'](':split')||_0x3b3125['includes'](':merge')?{'group':'suggestion','name':_0x3b3125['substr'](0xb),'attributes':{'data-suggestion':_0x478e3e,'data-author-id':_0xb5993b}}:null;}return{'group':'suggestion','name':_0x3b3125['substr'](0xb)};}});const _0x597bcc=(_0x52e771,_0x163849,_0x1fc87a,_0x349c83,_0x1d140f)=>{if(_0x349c83&&!_0x1fc87a['options']['showSuggestionHighlights'])return;if(!_0x1fc87a['consumable']['test'](_0x163849['markerRange'],_0x52e771['name']))return;const _0x1f3499=this['_activeMarkers'],_0x365fef=_0x163849['markerRange']['getWalker'](),_0x48bedc=_0x163849['markerRange']['start'],_0x139c29=_0x48e7ef['model']['schema'];let _0x2e7265=null,_0x42f83b=null,_0x557c66=!0x1,_0x2bdb65=!0x1;for(const _0x4fc2be of _0x365fef){const _0x1771ec=_0x4fc2be['item'];_0x557c66=_0x557c66||_0x139c29['isContent'](_0x1771ec);const _0x3d58f6=_0x1fc87a['mapper']['toViewElement'](_0x1771ec);if(_0x3d58f6&&_0x3d58f6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4fc2be['type']&&(_0x139c29['isBlock'](_0x1771ec)&&!_0x139c29['isLimit'](_0x1771ec)&&(_0x1771ec['nextSibling']||_0x48bedc['isAtEnd']?_0x2e7265&&_0x2e7265['parent']==_0x1771ec||(_0x2e7265=_0x1771ec,_0x5b235f(_0x4fc2be['previousPosition']),_0x2bdb65=!0x0):_0x42f83b=_0x42f83b||_0x4fc2be['previousPosition']));}function _0x5b235f(_0x2e06f5){const {id:_0x22f382,authorId:_0x71f72f}=v(_0x163849['markerName']),_0x263d15=_0x1fc87a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d140f,'data-suggestion':_0x22f382,'data-author-id':_0x71f72f}),_0x48995e=_0x1fc87a['mapper']['toViewPosition'](_0x2e06f5);!_0x349c83&&_0x1f3499['includes'](_0x163849['markerName'])&&_0x1fc87a['writer']['addClass']('ck-suggestion-marker--active',_0x263d15),_0x1fc87a['writer']['insert'](_0x48995e,_0x263d15),_0x1fc87a['mapper']['bindElementToMarker'](_0x263d15,_0x163849['markerName']);}_0x557c66||_0x2bdb65||!_0x42f83b||_0x5b235f(_0x42f83b);};_0x48e7ef['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x53085c,_0x5efd52,_0x503e43)=>{_0x597bcc(_0x53085c,_0x5efd52,_0x503e43,!0x1,'merge');},{'priority':'high'}),_0x48e7ef['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x6b387f,_0x37fa8f,_0x29543c)=>{_0x597bcc(_0x6b387f,_0x37fa8f,_0x29543c,!0x0,'merge');},{'priority':'high'}),_0x48e7ef['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb7ff98,_0x1298a9,_0x5e860e)=>{_0x597bcc(_0xb7ff98,_0x1298a9,_0x5e860e,!0x1,'split');},{'priority':'high'}),_0x48e7ef['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c0c9c,_0x174609,_0x167d3b)=>{_0x597bcc(_0x5c0c9c,_0x174609,_0x167d3b,!0x0,'split');},{'priority':'high'}),_0x48e7ef['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x215fa8,_0x23d1e4,_0x4f9f8c)=>{((_0x535e35,_0x3cd09e,_0x5eb373)=>{const _0x4b8a79=_0x5eb373['mapper']['markerNameToElements'](_0x3cd09e['markerName']);if(_0x4b8a79){for(const _0x3433ce of _0x4b8a79)(_0x3433ce['hasClass']('ck-suggestion-marker-split')||_0x3433ce['hasClass']('ck-suggestion-marker-merge'))&&(_0x5eb373['mapper']['unbindElementFromMarkerName'](_0x3433ce,_0x3cd09e['markerName']),_0x5eb373['writer']['remove'](_0x3433ce));}})(0x0,_0x23d1e4,_0x4f9f8c);},{'priority':'high'});const _0x361efb=(_0x19fa66,_0x399e62,_0x2e9106,_0x282964)=>{if(_0x282964&&!_0x2e9106['options']['showSuggestionHighlights'])return;const _0x53d7bf=_0x399e62['markerRange']['start'],_0x44cf13=_0x399e62['markerRange']['end'],_0x3786a1=_0x48e7ef['model']['schema'];if(!_0x53d7bf['isTouching'](_0x44cf13)||!_0x53d7bf['nodeAfter'])return;const _0x2a3f11=_0x53d7bf['nodeAfter'];if(_0x3786a1['isBlock'](_0x2a3f11)&&!_0x3786a1['isLimit'](_0x2a3f11)&&_0x3786a1['checkChild'](_0x2a3f11,'$text')){if(!_0x2e9106['consumable']['consume'](_0x399e62['markerRange'],_0x19fa66['name']))return;const {id:_0x4aaf02,authorId:_0x26ed89}=v(_0x399e62['markerName']),_0x59bb64=_0x2e9106['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4aaf02,'data-author-id':_0x26ed89}),_0x18ac88=_0x2e9106['mapper']['toViewPosition'](_0x44cf13);!_0x282964&&this['_activeMarkers']['includes'](_0x399e62['markerName'])&&_0x2e9106['writer']['addClass']('ck-suggestion-marker--active',_0x59bb64),_0x2e9106['writer']['insert'](_0x18ac88,_0x59bb64),_0x2e9106['mapper']['bindElementToMarker'](_0x59bb64,_0x399e62['markerName']);}};_0x48e7ef['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x468840,_0x28a593,_0xbed8ba)=>{_0x361efb(_0x468840,_0x28a593,_0xbed8ba,!0x1);},{'priority':'high'}),_0x48e7ef['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59852e,_0x2317f9,_0x4ed078)=>{_0x361efb(_0x59852e,_0x2317f9,_0x4ed078,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0xa88bbe,_0x2b6a21,_0x2e02a2)=>{this['_activeMarkers']=_0x2e02a2['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x25d975){this['_blockAttributeKeys']['add'](_0x25d975);}['registerInlineAttribute'](_0x4e234){this['_inlineAttributeKeys']['add'](_0x4e234);}['isBlockAttribute'](_0x7d51f){return this['_blockAttributeKeys']['has'](_0x7d51f);}['isInlineAttribute'](_0x12a9c0){return this['_inlineAttributeKeys']['has'](_0x12a9c0);}['isRegisteredAttribute'](_0x14aae4){return this['isInlineAttribute'](_0x14aae4)||this['isBlockAttribute'](_0x14aae4);}['_getClassName'](_0x2dd94e,_0xc4e98a){if('attribute'!=_0x2dd94e)return'ck-suggestion-marker-'+_0x2dd94e;const _0x529623=_0xc4e98a['split']('|')[0x0];return this['isBlockAttribute'](_0x529623)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x54f8d6={},_0x4bc0ed){if(void 0x0!==_0x54f8d6['dateTimeFormat']&&'function'!=typeof _0x54f8d6['dateTimeFormat'])throw new _0x5ba804('invalid-date-time-format');return _0x20c347=>{const _0x1b8e5c='string'==typeof _0x20c347?tt['fromISO'](_0x20c347):tt['fromJSDate'](_0x20c347),_0x4c8a70=tt['now'](),_0x1a3bcf=Math['floor'](_0x4c8a70['diff'](_0x1b8e5c,'days')['days']);return _0x54f8d6['dateTimeFormat']?_0x54f8d6['dateTimeFormat'](_0x1b8e5c['toJSDate'](),_0x4bc0ed&&_0x4bc0ed['t']?_0x4bc0ed['t']:void 0x0):0x0===_0x1a3bcf?_0x4bc0ed?U(_0x4bc0ed,'Today')+'\x20'+_0x1b8e5c['toFormat']('hh:mma'):_0x1b8e5c['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1a3bcf?_0x4bc0ed?U(_0x4bc0ed,'Yesterday')+'\x20'+_0x1b8e5c['toFormat']('hh:mma'):_0x1b8e5c['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1a3bcf<0x7?_0x4bc0ed?U(_0x4bc0ed,'Last')+'\x20'+U(_0x4bc0ed,_0x1b8e5c['toFormat']('EEEE'))+'\x20'+_0x1b8e5c['toFormat']('hh:mma'):_0x1b8e5c['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x1b8e5c['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x1319ca,_0x3d3300){const _0x550910=_0x1319ca['mapper']['markerNameToElements'](_0x3d3300['name']);if(!_0x550910)return null;const _0x39b13e=_0x3578b8(_0x550910['values']());return _0x1319ca['view']['domConverter']['mapViewToDom'](_0x39b13e)||null;}function wt(_0x3a2176,_0x37730e){if(0x0===_0x37730e['length'])return null;const _0x500015=[],_0x2e8449=_0x3a2176['view']['domConverter'];for(const _0xbb08eb of _0x37730e){const _0x5c32b3=_0x3a2176['mapper']['markerNameToElements'](_0xbb08eb['name']);if(!_0x5c32b3)continue;const _0x165396=Array['from'](_0x5c32b3)['map'](_0x5a639e=>_0x2e8449['mapViewToDom'](_0x5a639e))['filter'](_0x1f4051=>!!_0x1f4051);_0x500015['push'](..._0x165396);}if(0x0===_0x500015['length'])return null;const _0x5942e0=[];for(const _0x42fd68 of _0x500015){const _0x2b75ed=_0x42fd68['getClientRects']()['item'](0x0);_0x2b75ed&&_0x5942e0['push']({'x':_0x2b75ed['x'],'y':_0x2b75ed['y'],'domElement':_0x42fd68});}return 0x0===_0x5942e0['length']?null:(_0x5942e0['sort']((_0x4328a1,_0x23568b)=>_0x4328a1['y']-_0x23568b['y']||_0x4328a1['x']-_0x23568b['x']),_0x5942e0['map'](_0x47eb83=>_0x47eb83['domElement']));}function bt(_0x14c686,{limit:_0x2df8fa,suffix:_0x22a7a9='...'}){const _0x43fc27=[];let _0x4cf162=0x0;const _0x3391e3=_0x14c686['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x2f6a7e=0x0;_0x2f6a7e<_0x3391e3['length'];_0x2f6a7e++){let _0x61f5ca=_0x3391e3[_0x2f6a7e];const _0x215e1c=tn(_0x61f5ca);if(_0x61f5ca['startsWith']('<')){if(_0x4cf162>=_0x2df8fa){const _0x3684df=_0x61f5ca['match'](/[a-zA-Z]+/);if(!_0x3684df){_0x3391e3[_0x2f6a7e]='';continue;}const _0x12dc22=_0x3684df[0x0];_0x61f5ca['startsWith']('</')?(_0x43fc27['length']&&(_0x61f5ca=''),_0x43fc27['pop']()):(_0x43fc27['push'](_0x12dc22),_0x61f5ca='');}}else{if(_0x4cf162>=_0x2df8fa)_0x61f5ca='';else{if(_0x4cf162+_0x215e1c['length']>=_0x2df8fa){let _0x1ca78f=_0x2df8fa-_0x4cf162;if('\x20'===_0x215e1c[_0x1ca78f-0x1])_0x1ca78f--;else{const _0x5e78ba=_0x215e1c['slice'](_0x1ca78f)['indexOf']('\x20');-0x1!==_0x5e78ba?_0x1ca78f+=_0x5e78ba:_0x1ca78f=_0x61f5ca['length'];}_0x61f5ca=_0x215e1c['slice'](0x0,_0x1ca78f)['join']('')+_0x22a7a9,_0x4cf162=_0x2df8fa;}else _0x4cf162+=_0x215e1c['length'];}}_0x3391e3[_0x2f6a7e]=_0x61f5ca;}return _0x3391e3['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x4c7eea){const _0x44ca7c=[];for(let _0x54f018=0x0;_0x54f018<_0x4c7eea['length'];_0x54f018++){const _0x101b6d=_0x4c7eea['substring'](_0x54f018)['match'](/^&[a-z0-9#]+;/);if(_0x101b6d){const _0x422878=_0x101b6d[0x0];_0x44ca7c['push'](_0x422878),_0x54f018+=_0x422878['length']-0x1;}else _0x44ca7c['push'](_0x4c7eea[_0x54f018]);}return _0x44ca7c;}class V extends _0x40da4b{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x44283d){super(_0x44283d);const _0x551fbb=this['bindTemplate'];this['set']('message',U(_0x44283d,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x44283d,U(_0x44283d,'Yes'),_0xc48a48,'submit'),this['cancelView']=this['_createButtonView'](_0x44283d,U(_0x44283d,'No'),_0x27af82,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new ts(),this['keystrokes']=new _0x3c204b(),this['focusCycler']=new _0x200279({'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':_0x551fbb['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'](_0x1e6d29,_0x55b175,_0x86b75d,_0x364f41){const _0x4cb00c=new _0x366805(_0x1e6d29);return _0x4cb00c['label']=_0x55b175,_0x4cb00c['icon']=_0x86b75d,_0x4cb00c['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x364f41}}),_0x4cb00c['on']('execute',()=>this['fire'](_0x364f41)),_0x4cb00c;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0xd9fa6e=>{this['keystrokes']['listenTo'](_0xd9fa6e['element']),this['focusTracker']['add'](_0xd9fa6e['element']);}),this['keystrokes']['set']('esc',(_0x461b7b,_0x1cfbe3)=>{this['fire']('cancel'),_0x1cfbe3();});}}function vt(_0x267bce){return class extends _0x267bce{['showConfirm'](_0x317857,_0x41c6f6){return this['confirmView']=new V(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x317857,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x41c6f6['appendChild'](this['confirmView']['element']),_0x41c6f6['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x447f25,_0x43e5b2,_0x35d347)=>{_0x35d347||_0x41c6f6['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x597631=>this['confirmView']['on']('submit',_0x597631));}['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(_0x1d6a92){let _0x3aa34a=0x0,_0x4e5670=0x0;for(const _0x5cd070 of ne(_0x1d6a92))_0x3aa34a=(_0x3aa34a<<0x5)-_0x3aa34a+_0x5cd070,_0x3aa34a&=_0x3aa34a,[_0x3aa34a,_0x4e5670]=[_0x4e5670,_0x3aa34a];return ie(_0x3aa34a)+ie(_0x4e5670);}function*ee(_0x404c73){null==_0x404c73||null==_0x404c73?yield 0x12b9b0a1:0x0===_0x404c73||!0x1===_0x404c73?yield 0x0:0x1===_0x404c73||0x1==_0x404c73?yield 0x1:Array['isArray'](_0x404c73)?yield*function*(_0x1626c3){for(const _0x148564 of _0x1626c3)yield*ee(_0x148564);}(_0x404c73):'object'==typeof _0x404c73?yield*ne(_0x404c73):'string'==typeof _0x404c73?yield*oe(_0x404c73):'number'==typeof _0x404c73&&(yield _0x404c73);}function*ne(_0xa6d9ca){if(yield te('{'),_0xa6d9ca){const _0x56d5d3=Object['keys'](_0xa6d9ca)['sort']();for(const _0x559ed9 of _0x56d5d3){yield*oe(_0x559ed9),yield te(':');const _0x399358=_0xa6d9ca[_0x559ed9];yield*ee(_0x399358);}}yield te('}');}function*oe(_0x1407bd){yield te('\x22');for(const _0x21699f of _0x1407bd)yield te(_0x21699f);yield te('\x22');}function te(_0x34acd3){return _0x34acd3['charCodeAt'](0x0);}function ie(_0x589015){return(_0x589015*=Math['sign'](_0x589015))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x2a1edd,_0x5be831,_0x122440,_0x3b977a=[]){const _0x5cc132='string'==typeof _0x2a1edd?_0x122440['get'](_0x2a1edd)['constructor']:_0x2a1edd['prototype']['constructor'];if(_0x5be831['has'](_0x5cc132))return _0x5be831['get'](_0x5cc132);_0x5be831['set'](_0x5cc132,!0x0);const _0x541a55=[...et,..._0x3b977a]['map'](_0x2cfc56=>{if(_0x122440['has'](_0x2cfc56))return _0x122440['get'](_0x2cfc56)['constructor'];})['filter'](_0x1062b1=>_0x1062b1);if(_0x5cc132&&_0x541a55['includes'](_0x5cc132))return _0x5be831['set'](_0x5cc132,!0x1),!0x1;if(!_0x5cc132['requires'])return _0x5be831['set'](_0x5cc132,!0x0),!0x0;const _0x178fac=_0x5cc132['requires']['every'](_0x8a0354=>ot(_0x8a0354,_0x5be831,_0x122440,_0x3b977a));return _0x5be831['set'](_0x5cc132,_0x178fac),_0x178fac;}function Ct(_0x70f3ca,_0x5e127a){const _0x1c65f0={};for(const _0x188397 of _0x70f3ca['config']['names']())nt['includes'](_0x188397)||(_0x1c65f0[_0x188397]=_0x70f3ca['config']['get'](_0x188397));const _0x477ed8=_0x1c65f0['plugins']||[],_0x413309=_0x70f3ca['constructor']['builtinPlugins']||[],_0x5e49a4=_0x477ed8['length']?_0x477ed8:_0x413309,_0x4299b7=_0x1c65f0['extraPlugins']||[];delete _0x1c65f0['extraPlugins'];const _0x2fbe44=_0x1c65f0['removePlugins']||[];delete _0x1c65f0['removePlugins'];const _0x368dd0=_0x70f3ca['_context']['config']['get']('plugins')||[],_0xdd09c6=_0x5e49a4['concat'](_0x4299b7)['concat'](_0x368dd0)['map'](_0x1b7212=>'string'==typeof _0x1b7212?_0x413309['find'](_0x1b8b08=>_0x1b8b08['pluginName']==_0x1b7212):_0x1b7212)['filter'](_0x1e08b9=>!_0x2fbe44['includes'](_0x1e08b9)&&!_0x2fbe44['includes'](_0x1e08b9['pluginName'])),_0xcb9d6c=Array['from'](new Set(_0xdd09c6)),_0x4b59b5=new Map();return _0x1c65f0['plugins']=_0xcb9d6c['filter'](_0x24643f=>ot(_0x24643f,_0x4b59b5,_0x70f3ca['plugins'],_0x5e127a)),_0x1c65f0;}function _t(_0x7ab454,_0x5e9e27){const _0xdad028=[];_0x7ab454['document']['selection']['on']('change:range',()=>{const _0x1976b2=function(_0x1c0d5a,_0x3297c0){const _0x34cc05=[];for(const _0x27538e of _0x1c0d5a['markers']){const _0xfafb6a=_0x27538e['getRange']();(_0xfafb6a['containsPosition'](_0x3297c0)||_0xfafb6a['start']['isEqual'](_0x3297c0)||_0xfafb6a['end']['isEqual'](_0x3297c0))&&_0x34cc05['push'](_0x27538e);}return _0x34cc05;}(_0x7ab454,_0x7ab454['document']['selection']['focus']),_0x8bab43=[],_0x1fdcd0=[],_0xeb13e9=[];for(const _0x58fea7 of _0xdad028)_0x1976b2['includes'](_0x58fea7)||_0x8bab43['push'](_0x58fea7);for(const _0x4314c9 of _0x1976b2)_0xdad028['includes'](_0x4314c9)||_0x1fdcd0['push'](_0x4314c9),_0xeb13e9['push'](_0x4314c9);(_0x8bab43['length']||_0x1fdcd0['length'])&&_0x5e9e27({'left':_0x8bab43,'entered':_0x1fdcd0}),_0xdad028['length']=0x0,_0xdad028['push'](..._0xeb13e9);});}const xt='Ctrl+Shift+E';function It(_0x453c4f,_0x3fcac6){const _0x3cefd8=_0x453c4f['element'];_0x453c4f['keystrokes']['listenTo'](_0x3cefd8);for(const _0x1abaf6 of _0x3fcac6)ro(_0x453c4f,_0x1abaf6);_0x3fcac6['on']('change',(_0x1aa3a4,_0x4925ec)=>{for(const _0x28eedf of _0x4925ec['removed'])to(_0x453c4f,_0x28eedf);for(const _0x24b2da of Array['from'](_0x4925ec['added'])['reverse']())ro(_0x453c4f,_0x24b2da);}),_0x453c4f['keystrokes']['set']('enter',(_0xe2576d,_0x58b06b)=>{_0x3cefd8===_0xe2576d['target']&&(_0x453c4f['focusCycler']['focusFirst'](),_0x58b06b());},{'filter':_0x4ae486=>_0x4ae486['target']===_0x3cefd8}),_0x453c4f['keystrokes']['set']('esc',(_0x4822bb,_0x5a220b)=>{_0x3cefd8!==_0x4822bb['target']?_0x453c4f['focus']():_0x453c4f['fire']('escape'),_0x5a220b();}),_0x453c4f['keystrokes']['set']('arrowdown',(_0x48eaa0,_0x17f6a6)=>{_0x3cefd8===_0x48eaa0['target']&&(_0x453c4f['fire']('arrowdown'),_0x17f6a6());}),_0x453c4f['keystrokes']['set']('arrowup',(_0x4d8d81,_0x1c16cf)=>{_0x3cefd8===_0x4d8d81['target']&&(_0x453c4f['fire']('arrowup'),_0x1c16cf());});}function ro(_0x4f6c35,_0x3b72e9){_0x3b72e9['isRendered']&&(_0x4f6c35['focusTracker']['add'](_0x3b72e9['element']),_0x4f6c35['keystrokes']['listenTo'](_0x3b72e9['element']),_0x5137e1(_0x3b72e9)&&function(_0x52cc7e,_0x112053){const _0x5e9d47=_0x52cc7e['actions'],_0x1db828=_0x112053['actions'];for(const _0x406d0d of Object['keys'](_0x5e9d47))if(_0x406d0d in _0x1db828&&_0x5e9d47[_0x406d0d]!==_0x1db828[_0x406d0d])return!0x1;return!0x0;}(_0x4f6c35['focusCycler'],_0x3b72e9['focusCycler'])&&_0x4f6c35['focusCycler']['chain'](_0x3b72e9['focusCycler']));}function to(_0x398e1c,_0x10a87a){_0x398e1c['focusTracker']['remove'](_0x10a87a['element']),_0x398e1c['keystrokes']['stopListening'](_0x10a87a['element']),_0x5137e1(_0x10a87a)&&_0x398e1c['focusCycler']['unchain'](_0x10a87a['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x101a29{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x32e53f?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x56856c,_0x4254cc)=>{_0x4254cc['on']('ready',()=>{this['_integrateEditor'](_0x4254cc);});});}get['editor'](){if(this['context']instanceof _0x32e53f)return this['context'];{const _0x2183aa=this['context']['editors']['first'];if(!_0x2183aa)throw new _0x5ba804('documentcompare-no-editor',this);return _0x2183aa;}}['getDiff'](_0x1044b8,_0x485ecb,_0x26c0c3={'anchor':'main','markDeletions':!0x1}){const _0x51ccc9=this['editor'];let _0x19d547,_0x41f8e5;if('string'==typeof _0x26c0c3['anchor']){const _0xb86598=_0x51ccc9['model']['document']['getRoot'](_0x26c0c3['anchor']);if(!_0xb86598)throw new _0x5ba804('documentcompare-compare-no-root',this,{'anchor':_0x26c0c3['anchor']});_0x19d547=_0x51ccc9['model']['createPositionAt'](_0xb86598,0x0),_0x41f8e5=_0x26c0c3['context']||_0xb86598;}else _0x19d547=_0x26c0c3['anchor']['clone'](),_0x41f8e5=_0x26c0c3['context']||_0x26c0c3['anchor']['clone']();const _0x33a316=_0x51ccc9['data']['parse'](_0x1044b8,_0x41f8e5),_0x3abc1e=_0x51ccc9['data']['parse'](_0x485ecb,_0x41f8e5);return new Mt(_0x33a316,_0x3abc1e,_0x51ccc9,{'anchor':_0x19d547,'markDeletions':_0x26c0c3['markDeletions']});}['isMarkedRemoveOperation'](_0x38fc4e){return'marker'==_0x38fc4e['type']&&_0x38fc4e['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x26a4a8){_0x26a4a8['conversion']['for']('upcast')['add'](_0x403df4=>{_0x403df4['on']('element',(_0xf303cc,_0x278ec6,_0x3d0606)=>{if(_0x278ec6['modelRange'])for(const _0x5e20f1 of _0x278ec6['modelRange']['getItems']({'shallow':!0x0})){if(_0x5e20f1['is']('$textProxy'))continue;const _0x52127f=_0x278ec6['viewItem']['getAttribute'](Et);_0x52127f&&_0x3d0606['writer']['setAttribute'](St,_0x52127f,_0x5e20f1);}},{'priority':'lowest'});}),_0x26a4a8['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x556c90,_0x560a74,_0x4b73f6,_0x2e6e49){this['_editor']=_0x4b73f6,this['_markDeletions']=!!_0x2e6e49['markDeletions'],this['_anchor']=_0x2e6e49['anchor'];const _0x4335e9=this['_tokenizeModel'](_0x556c90),_0x28347a=this['_tokenizeModel'](_0x560a74);this['_diffItems']=this['_diffModelTokens'](_0x4335e9,_0x28347a),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x556c90['markers'],_0x560a74['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x4329dd=this['_editor']['model']['document'],_0x50bd0f=[];let _0x3df810=_0x4329dd['version'];for(const _0x58b897 of this['_operationsData'])switch(_0x58b897['type']){case'attribute':{const _0x5306ef=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['path']),_0x2d51cc=_0x5306ef['getShiftedBy'](_0x58b897['howMany']),_0x101533=new _0x131689(_0x5306ef,_0x2d51cc),_0x4b2b49=JSON['parse'](_0x58b897['oldValue']),_0x2610d3=JSON['parse'](_0x58b897['newValue']);_0x50bd0f['push'](new _0x57a35b(_0x101533,_0x58b897['key'],_0x4b2b49,_0x2610d3,_0x3df810++));break;}case'insert':{const _0x5b98d3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['path']),_0x37cc69=this['_makeModelFromTokens'](_0x58b897['tokens']);_0x50bd0f['push'](new _0x5ed199(_0x5b98d3,_0x37cc69,_0x3df810++));break;}case'remove':{const _0x35cc9c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['path']),_0x569764=new _0x43957f(_0x4329dd['graveyard'],[0x0]);_0x50bd0f['push'](new _0x4a2a4b(_0x35cc9c,_0x58b897['howMany'],_0x569764,_0x3df810++));break;}case'rename':{const _0x3a11d7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['path']);_0x50bd0f['push'](new _0x27de69(_0x3a11d7,_0x58b897['oldName'],_0x58b897['newName'],_0x3df810++));break;}case'split':{const _0x1520f9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['path']),_0x4fd10c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['path']['slice'](0x0,-0x1));_0x4fd10c['offset']++,_0x50bd0f['push'](new _0x369656(_0x1520f9,Number['NEGATIVE_INFINITY'],_0x4fd10c,null,_0x3df810++));break;}case'merge':{const _0x53b5a5=_0x58b897['path']['slice'](),_0x860085=_0x53b5a5['slice'](0x0,-0x1);_0x860085[_0x860085['length']-0x1]++,_0x860085['push'](0x0);const _0x1eb3cf=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x860085),_0x340c03=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x53b5a5),_0xf9b4f3=new _0x43957f(_0x4329dd['graveyard'],[0x0]);_0x50bd0f['push'](new _0x3eefd9(_0x1eb3cf,Number['NEGATIVE_INFINITY'],_0x340c03,_0xf9b4f3,_0x3df810++));break;}case'marker':case'markedRemove':{let _0x82dfc=null;if(_0x58b897['range']){const _0x4d2df5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['range']['start']),_0xd964a9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['range']['end']);_0x82dfc=new _0x131689(_0x4d2df5,_0xd964a9);}const _0x422687='marker'==_0x58b897['type']?_0x58b897['name']:'$markedRemove:'+_0x1f2cf9();_0x50bd0f['push'](new _0x3a750b(_0x422687,null,_0x82dfc,_0x4329dd['model']['markers'],!0x0,_0x3df810++));break;}case'unwrap':{const _0x413c53=_0x58b897['path']['slice']();_0x413c53['push'](0x0);const _0x5daea4=_0x58b897['path']['slice'](),_0xb37003=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x413c53),_0x574dd1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x5daea4),_0x31e283=new _0x43957f(_0x4329dd['graveyard'],[0x0]);_0x50bd0f['push'](new _0x4a2a4b(_0xb37003,_0x58b897['howMany'],_0x574dd1,_0x3df810++)),_0x50bd0f['push'](new _0x4a2a4b(_0x574dd1['getShiftedBy'](_0x58b897['howMany']),0x1,_0x31e283,_0x3df810++));break;}case'wrap':{const _0x3178c6=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['range']['start']),_0x32a07c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x58b897['range']['end']),_0x44f22f=_0x58b897['token']['element']['_clone'](!0x1),_0x17f816=_0x58b897['range']['end']['slice']();_0x17f816['push'](0x0);const _0x2e4b23=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x17f816);_0x50bd0f['push'](new _0x5ed199(_0x32a07c,_0x44f22f,_0x3df810++)),_0x50bd0f['push'](new _0x4a2a4b(_0x3178c6,_0x32a07c['offset']-_0x3178c6['offset'],_0x2e4b23,_0x3df810++));break;}}return _0x50bd0f;}['_tokenizeModel'](_0xb8f295){const _0x1fd6d5=[],_0x346cf4=_0x131689['_createIn'](_0xb8f295),_0x4eb46b=new _0x3a078f({'boundaries':_0x346cf4});let _0x25e35a='',_0x409281=null;const _0x5949e9=[''],_0x573015=new Map();for(const _0x3863b0 of _0x4eb46b)if('elementStart'==_0x3863b0['type']||'elementEnd'==_0x3863b0['type']){let _0x353b2e=_0x5949e9[0x0];''!==_0x25e35a&&(_0x1fd6d5['push'](...this['_makeTokensFromTextByWords'](_0x25e35a,_0x409281,_0x353b2e)),_0x25e35a='');const _0xcf3d49=_0x3863b0['item'];let _0x40625b;_0xcf3d49['getAttribute'](St)?_0x40625b=_0xcf3d49['getAttribute'](St):'elementStart'==_0x3863b0['type']?(_0x40625b=_(_0xcf3d49),_0x573015['set'](_0xcf3d49,_0x40625b)):_0x40625b=_0x573015['get'](_0xcf3d49);const _0x28822f=this['_getElementCategory'](_0xcf3d49);'solid'==_0x28822f&&('elementStart'==_0x3863b0['type']?(_0x353b2e=_0x40625b,_0x5949e9['unshift'](_0x353b2e)):_0x5949e9['shift']());const _0xb24c1={'type':'element','element':_0xcf3d49,'elementId':_0x40625b,'category':_0x28822f,'isStart':'elementStart'==_0x3863b0['type'],'limitId':_0x353b2e};_0x1fd6d5['push'](_0xb24c1);}else''==_0x25e35a&&(_0x409281=_0x3863b0['previousPosition']['clone']()),_0x25e35a+=_0x3863b0['item']['data'];return''!==_0x25e35a&&_0x1fd6d5['push'](...this['_makeTokensFromTextByWords'](_0x25e35a,_0x409281,_0x5949e9[0x0])),_0x1fd6d5;}['_makeTokensFromTextByWords'](_0x330487,_0x5720dd,_0x1c74eb){const _0x1c7db9=_0x330487['matchAll'](/(\s)/g),_0x2b56de=Array['from'](_0x1c7db9)['map'](_0x1d5c3c=>_0x1d5c3c['index']);_0x2b56de['push'](_0x330487['length']),0x0==_0x2b56de[0x0]&&_0x2b56de['shift']();const _0x235bd3=[],_0x4dce2d=_0x5720dd['parent'];let _0x4ff350=0x0,_0x12e5e2=_0x5720dd['offset'];for(let _0x482b97=0x0;_0x482b97<_0x2b56de['length'];_0x482b97++)_0x235bd3['push']({'type':'text','data':_0x330487['slice'](_0x4ff350,_0x2b56de[_0x482b97]),'parent':_0x4dce2d,'offset':_0x12e5e2,'limitId':_0x1c74eb}),_0x4ff350=_0x2b56de[_0x482b97],_0x12e5e2=_0x5720dd['offset']+_0x2b56de[_0x482b97];return _0x235bd3;}['_getElementCategory'](_0x3b1017){const _0x478aac=this['_editor']['model']['schema'];return _0x478aac['isLimit'](_0x3b1017)||_0x478aac['isContent'](_0x3b1017)||_0x478aac['isInline'](_0x3b1017)?'solid':_0x478aac['isBlock'](_0x3b1017)?'block':'container';}['_diffModelTokens'](_0x480d29,_0x4244ef){const _0x60ce47=_0xd542d8(_0x480d29,_0x4244ef,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x60ce47);const _0x1e31b6=_0x60ce47['flatMap'](_0x357274=>{const _0x3fa828=_0x357274['added']?'added':_0x357274['removed']?'removed':'unchanged';return _0x357274['value']['map'](_0x7a422d=>({'token':_0x7a422d,'change':_0x3fa828}));});let _0x2fdc14=0x0;for(const _0x5aaa16 of _0x1e31b6)'added'!=_0x5aaa16['change']&&('unchanged'==_0x5aaa16['change']&&(_0x5aaa16['before']=_0x480d29[_0x2fdc14]),_0x2fdc14++);return _0x1e31b6;}['_handleUnclosedBlockOpeningTags'](_0x274fc3){for(let _0x410028=0x0;_0x410028<_0x274fc3['length']-0x1;_0x410028++)if(_0x274fc3[_0x410028]['removed']&&_0x274fc3[_0x410028+0x1]['added']){const _0x3e2b53=this['_findUnclosedBlockOpeningToken'](_0x274fc3[_0x410028]['value']);if(null!==_0x3e2b53){const _0x27d37d=this['_findUnclosedBlockOpeningToken'](_0x274fc3[_0x410028+0x1]['value']),_0x598673=_0x274fc3[_0x410028]['value']['splice'](_0x3e2b53),_0x1c8854=_0x274fc3[_0x410028+0x1]['value']['splice'](_0x27d37d),_0x62b07c=[_0x1c8854['shift']()];_0x598673['shift']();const _0x3cb13d={'value':_0x598673,'removed':!0x0},_0x5c62d9={'value':_0x1c8854,'added':!0x0},_0x2e1f02={'value':_0x62b07c};_0x274fc3['splice'](_0x410028+0x2,0x0,_0x2e1f02,_0x3cb13d,_0x5c62d9);}}}['_findUnclosedBlockOpeningToken'](_0x2962e8){let _0x1fb6f7=0x0,_0x2fa81c=-0x1;for(let _0x29c1b4=0x0;_0x29c1b4<_0x2962e8['length'];_0x29c1b4++){const _0x2f7680=_0x2962e8[_0x29c1b4];'element'==_0x2f7680['type']&&'block'==_0x2f7680['category']&&(_0x1fb6f7+=_0x2f7680['isStart']?0x1:-0x1,_0x2f7680['isStart']&&(_0x2fa81c=_0x29c1b4));}return 0x0===_0x1fb6f7?null:_0x2fa81c;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x3afc0c=0x0;_0x3afc0c<this['_diffItems']['length'];_0x3afc0c++){const _0x156537=this['_diffItems'][_0x3afc0c]['change'],_0x27aa4b=[];_0x27aa4b['push'](this['_diffItems'][_0x3afc0c]);let _0xa70f26=_0x3afc0c+0x1;for(;this['_diffItems'][_0xa70f26]&&this['_diffItems'][_0xa70f26]['change']==_0x156537;)_0x27aa4b['push'](this['_diffItems'][_0xa70f26]),_0xa70f26++,_0x3afc0c++;const _0x28e837=_0x27aa4b['map'](_0x1ab8cd=>_0x1ab8cd['token']);if('unchanged'==_0x156537)_0x27aa4b['map'](_0x3c4150=>_0x3c4150['before'])['forEach'](_0x40cc2c=>this['_traverseOverItem'](_0x40cc2c));else{if('removed'==_0x156537){if(this['_markDeletions']){const _0xc3fdac=this['_path']['slice']();_0x28e837['forEach'](_0x5826d2=>this['_traverseOverItem'](_0x5826d2));const _0x4cf877=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0xc3fdac,'end':_0x4cf877}});}else this['_handleChanged'](_0x28e837,!0x0,this['_path']['slice']());}else{const _0x49b8af=_0x28e837['filter'](_0x5b4ae8=>'element'!=_0x5b4ae8['type']||'container'!=_0x5b4ae8['category']);this['_handleChanged'](_0x49b8af,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x44a1d7=0x0;_0x44a1d7<this['_diffItems']['length'];_0x44a1d7++){const _0x5ecf6e=this['_diffItems'][_0x44a1d7]['change'],_0x3af65a=[];_0x3af65a['push'](this['_diffItems'][_0x44a1d7]);let _0x2c871c=_0x44a1d7+0x1;for(;this['_diffItems'][_0x2c871c]&&this['_diffItems'][_0x2c871c]['change']==_0x5ecf6e;)_0x3af65a['push'](this['_diffItems'][_0x2c871c]),_0x2c871c++,_0x44a1d7++;const _0x3fc0fe=_0x3af65a['map'](_0x2ed9fc=>_0x2ed9fc['token']);if('unchanged'==_0x5ecf6e){const _0x3e432e=_0x3af65a['map'](_0x1c1e6e=>_0x1c1e6e['before']);this['_handleUnchanged'](_0x3e432e,_0x3fc0fe);}else('removed'!=_0x5ecf6e||this['_markDeletions'])&&_0x3fc0fe['forEach'](_0x6bbacc=>{this['_traverseOverItem'](_0x6bbacc);});}}['_calculateMarkersOperationsData'](_0x1af6a6,_0x14ab58){const _0x4d9416={};for(const [_0x458ce0]of _0x1af6a6)_0x4d9416[_0x458ce0]=null;for(const [_0x3036ce,_0x25eb57]of _0x14ab58)_0x4d9416[_0x3036ce]=_0x25eb57;const _0x52888f=Object['entries'](_0x4d9416)['map'](([_0x5758de,_0x5c1fff])=>({'type':'marker','name':_0x5758de,'range':_0x5c1fff?{'start':_0x5c1fff['start']['path']['slice'](),'end':_0x5c1fff['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x52888f);}['_handleUnwraps'](){const _0x436402=new Map(),_0x2ad1d2=[],_0x2bb0bb=[0x0];let _0x29a3a2=this['_diffItems']['length']+0x1;for(let _0x1dcc92=this['_diffItems']['length']-0x1;_0x1dcc92>=0x0;_0x1dcc92--){const {token:_0x334932,before:_0x55266c,change:_0x49727c}=this['_diffItems'][_0x1dcc92];if('removed'!=_0x49727c&&(_0x29a3a2=_0x1dcc92),'element'!=_0x334932['type']||'container'!=_0x334932['category']||'added'==_0x49727c)continue;const _0x111e7f=_0x55266c?_0x55266c['element']:_0x334932['element'];if(_0x334932['isStart']){const _0x45132c=_0x436402['get'](_0x111e7f),_0x40c5dc=this['_diffItems'][_0x45132c];('removed'==_0x49727c||'removed'==_0x40c5dc['change'])&&_0x29a3a2<_0x45132c&&(this['_operationsData']['push']({'type':'unwrap','path':_0x111e7f['getPath'](),'howMany':_0x111e7f['maxOffset']+_0x2bb0bb[0x0]}),_0x2bb0bb['shift'](),_0x2bb0bb[0x0]+=_0x111e7f['maxOffset']-0x1,_0x2ad1d2['push'](_0x1dcc92),_0x2ad1d2['push'](_0x45132c));}else _0x436402['set'](_0x111e7f,_0x1dcc92),_0x2bb0bb['unshift'](0x0);}_0x2ad1d2['sort']((_0x1f32ae,_0x116136)=>_0x116136-_0x1f32ae),_0x2ad1d2['forEach'](_0x5db429=>{const _0x3de74e=this['_diffItems'][_0x5db429];'removed'==_0x3de74e['change']?this['_diffItems']['splice'](_0x5db429,0x1):(_0x3de74e['change']='added',delete _0x3de74e['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x2823fa=[];for(let _0x123fb4=0x0;_0x123fb4<this['_diffItems']['length'];_0x123fb4++){const {change:_0x1d36a5,token:_0xdcc5f7}=this['_diffItems'][_0x123fb4];if('added'==_0x1d36a5&&'element'==_0xdcc5f7['type']&&'container'==_0xdcc5f7['category']){if(_0xdcc5f7['isStart'])_0x2823fa['push'](this['_path']['slice']());else{if(!_0xdcc5f7['isStart']){const _0x2056ae=_0x2823fa['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x2056ae,'end':this['_path']['slice']()},'token':_0xdcc5f7}),this['_path'][this['_path']['length']-0x1]=_0x2056ae[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x1d36a5||this['_markDeletions'])&&this['_traverseOverItem'](_0xdcc5f7);}}['_handleUnchanged'](_0x2dad8b,_0x35e5c0){for(let _0x1c7671=0x0;_0x1c7671<_0x2dad8b['length'];_0x1c7671++){const _0x55727d=_0x2dad8b[_0x1c7671];if('element'==_0x55727d['type']&&_0x55727d['isStart']){const _0x4041fb=_0x35e5c0[_0x1c7671];'block'==_0x55727d['category']&&this['_handleElementRename'](_0x55727d['element'],_0x4041fb['element'],this['_path']),this['_handleElementAttributeChanges'](_0x55727d['element'],_0x4041fb['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x4041fb);}else{if('element'!=_0x55727d['type']||_0x55727d['isStart']){if('text'==_0x55727d['type']){const _0x546ae2=this['_path']['slice'](),_0x538640=[],_0x43eaf4=[];for(;_0x2dad8b[_0x1c7671]&&'text'==_0x2dad8b[_0x1c7671]['type'];)_0x538640['push'](_0x2dad8b[_0x1c7671]),_0x43eaf4['push'](_0x35e5c0[_0x1c7671]),this['_path'][this['_path']['length']-0x1]+=_0x2dad8b[_0x1c7671]['data']['length'],_0x1c7671++;_0x1c7671--,this['_handleTextAttributeChanges'](_0x538640,_0x43eaf4,_0x546ae2);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x38afbe,_0x58d329,_0x2165b5){const _0x1a6197=[],_0xf41a76=[],_0x16e931=_0x2165b5['slice']();for(let _0x1ba828=0x0;_0x1ba828<_0x38afbe['length'];_0x1ba828++){const _0x475c71=_0x38afbe[_0x1ba828],_0x475013=_0x2165b5['slice']();if('element'!=_0x475c71['type']||_0x475c71['isStart'])'element'==_0x475c71['type']&&_0x475c71['isStart']?(_0x2165b5['push'](0x0),_0x58d329||this['_parents']['push'](_0x475c71),_0xf41a76['push']({'before':_0x475013,'after':_0x2165b5['slice'](),'index':_0x1ba828})):_0x2165b5[_0x2165b5['length']-0x1]+=_0x475c71['data']['length'];else{let _0x7c6818;_0x2165b5['pop'](),_0x2165b5[_0x2165b5['length']-0x1]++,_0x7c6818=_0x58d329?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0xf41a76['length']?_0xf41a76['pop']():_0x1a6197['push']({'before':_0x475013,'after':_0x2165b5['slice'](),'index':_0x1ba828,'related':_0x7c6818});}}if(_0xf41a76['length']!==_0x1a6197['length'])throw new _0x5ba804('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x38afbe,'isRemove':_0x58d329});const _0x3c5aab=[{'after':_0x16e931['slice'](),'index':-0x1},..._0x1a6197,..._0xf41a76,{'before':_0x2165b5['slice'](),'index':_0x38afbe['length']}];if(_0x58d329){for(let _0x41cbb7=_0x3c5aab['length']-0x1;_0x41cbb7>=0x1;_0x41cbb7--){const _0x10c7e8=_0x3c5aab[_0x41cbb7-0x1]['after'],_0x5a20ff=_0x3c5aab[_0x41cbb7]['before'],_0x338fbe=_0x5a20ff[_0x5a20ff['length']-0x1]-_0x10c7e8[_0x10c7e8['length']-0x1];_0x338fbe&&(this['_operationsData']['push']({'type':'remove','path':_0x10c7e8,'howMany':_0x338fbe}),_0x5a20ff[_0x5a20ff['length']-0x1]-=_0x338fbe);}for(const {before:_0x28bd27}of _0x1a6197)this['_operationsData']['push']({'type':'merge','path':_0x28bd27});}else for(let _0x25b1ce=0x0;_0x25b1ce<_0x3c5aab['length']-0x1;_0x25b1ce++){const _0x53a509=_0x3c5aab[_0x25b1ce]['after'],_0x4fb018=_0x3c5aab[_0x25b1ce+0x1]['before'],_0x51831d=_0x3c5aab[_0x25b1ce]['index']+0x1,_0x344544=_0x3c5aab[_0x25b1ce+0x1]['index'];if(_0x51831d!==_0x344544&&this['_operationsData']['push']({'type':'insert','path':_0x53a509,'tokens':_0x38afbe['slice'](_0x51831d,_0x344544)}),_0x25b1ce<_0x1a6197['length']){this['_operationsData']['push']({'type':'split','path':_0x4fb018});const _0x1feddb=_0x38afbe[_0xf41a76[_0xf41a76['length']-0x1-_0x25b1ce]['index']],_0x32e253=_0x1a6197[_0x25b1ce]['after'],_0x2fdcb3=_0x1a6197[_0x25b1ce]['related']['element'];this['_handleElementRename'](_0x2fdcb3,_0x1feddb['element'],_0x32e253),this['_handleElementAttributeChanges'](_0x2fdcb3,_0x1feddb['element'],_0x32e253);}}}['_traverseOverItem'](_0x1768e4){'element'==_0x1768e4['type']&&_0x1768e4['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x1768e4)):'element'!=_0x1768e4['type']||_0x1768e4['isStart']?'text'==_0x1768e4['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x1768e4['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x3d65bc,_0x5c2f6c,_0x4df9a1){_0x3d65bc['name']!=_0x5c2f6c['name']&&this['_operationsData']['push']({'type':'rename','path':_0x4df9a1['slice'](),'oldName':_0x3d65bc['name'],'newName':_0x5c2f6c['name']});}['_handleElementAttributeChanges'](_0x3a3d9a,_0x415675,_0x56cf11){const _0x23b8d4=this['_getAttributeChanges'](_0x3a3d9a['getAttributes'](),_0x415675['getAttributes']());for(const _0x2ac931 in _0x23b8d4){const {oldValue:_0xddf5e1,newValue:_0x4c782c}=_0x23b8d4[_0x2ac931];this['_operationsData']['push']({'type':'attribute','path':_0x56cf11['slice'](),'howMany':0x1,'key':_0x2ac931,'oldValue':_0xddf5e1,'newValue':_0x4c782c});}}['_handleTextAttributeChanges'](_0x272d15,_0xc9ee09,_0x8caa14){const _0xbd46c0=this['_operationsData'],_0x22606e=_0x272d15[0x0]['parent'],_0x4f11c2=_0x272d15[0x0]['offset'],_0x5c00c5=_0xc9ee09[0x0]['parent'],_0x35a539=_0xc9ee09[0x0]['offset'],_0x46f2f2=_0x272d15['reduce']((_0x479a67,_0x422a4a)=>_0x479a67+_0x422a4a['data']['length'],0x0),_0x2e578f=this['_getAttrsForOffsets'](_0x22606e,_0x4f11c2,_0x46f2f2),_0x1ff71e=this['_getAttrsForOffsets'](_0x5c00c5,_0x35a539,_0x46f2f2),_0x531b41={};for(let _0x2ebd22=0x0;_0x2ebd22<_0x46f2f2;_0x2ebd22++){const _0x3838f4=_0x2e578f[_0x4f11c2+_0x2ebd22],_0x54faaa=_0x1ff71e[_0x35a539+_0x2ebd22],_0x36a686=this['_getAttributeChanges'](_0x3838f4,_0x54faaa);for(const _0x39e40d in _0x531b41)_0x36a686[_0x39e40d]||_0xc4a00f(_0x39e40d);for(const _0x456935 in _0x36a686){const {oldValue:_0x1c7635,newValue:_0x5891c1}=_0x36a686[_0x456935],_0x1f6dce=_0x531b41[_0x456935];_0x1f6dce?_0x1f6dce['oldValue']==_0x1c7635&&_0x1f6dce['newValue']==_0x5891c1?_0x1f6dce['length']++:(_0xc4a00f(_0x456935),_0x531b41[_0x456935]={'oldValue':_0x1c7635,'newValue':_0x5891c1,'start':_0x2ebd22,'length':0x1}):_0x531b41[_0x456935]={'oldValue':_0x1c7635,'newValue':_0x5891c1,'start':_0x2ebd22,'length':0x1};}}for(const _0x4b68c5 in _0x531b41)_0xc4a00f(_0x4b68c5);function _0xc4a00f(_0x330476){const _0x289798=_0x531b41[_0x330476],_0x583d82=_0x8caa14['slice']();_0x583d82[_0x583d82['length']-0x1]+=_0x289798['start'],_0xbd46c0['push']({'type':'attribute','path':_0x583d82,'howMany':_0x289798['length'],'key':_0x330476,'oldValue':_0x289798['oldValue'],'newValue':_0x289798['newValue']}),delete _0x531b41[_0x330476];}}['_getAttributeChanges'](_0x2deb4b,_0x584af1){const _0x39e285={};for(const [_0x2ed1ee,_0x25f944]of _0x2deb4b)_0x39e285[_0x2ed1ee]={'oldValue':JSON['stringify'](_0x25f944),'newValue':'null'};for(const [_0x157ae7,_0x369c00]of _0x584af1){const _0x555f8a=JSON['stringify'](_0x369c00);_0x39e285[_0x157ae7]?_0x39e285[_0x157ae7]['oldValue']==_0x555f8a?delete _0x39e285[_0x157ae7]:_0x39e285[_0x157ae7]['newValue']=_0x555f8a:_0x39e285[_0x157ae7]={'oldValue':'null','newValue':_0x555f8a};}return delete _0x39e285[St],_0x39e285;}['_getAttrsForOffsets'](_0x2ebdc1,_0x5bd30f,_0xfb97d7){const _0x4dc4ad=new Array(_0x5bd30f+_0xfb97d7);let _0x4165a9=_0x2ebdc1['getChildAtOffset'](_0x5bd30f),_0x150f21=_0x4165a9['startOffset'];for(;_0x4165a9&&_0x150f21<_0x5bd30f+_0xfb97d7;){const _0x3a5728=Array['from'](_0x4165a9['getAttributes']());_0x4dc4ad['fill'](_0x3a5728,_0x150f21,_0x150f21+_0x4165a9['offsetSize']),_0x150f21+=_0x4165a9['offsetSize'],_0x4165a9=_0x4165a9['nextSibling'];}return _0x4dc4ad;}['_getPositionFromAnchorAndPath'](_0x8b9d5,_0x440224){const _0x17f39b=[..._0x8b9d5['path']['slice'](0x0,-0x1),_0x8b9d5['offset']+_0x440224[0x0],..._0x440224['slice'](0x1)];return new _0x43957f(_0x8b9d5['root'],_0x17f39b);}['_makeModelFromTokens'](_0x2a904d){const _0x561a1c=[];let _0x5bdd58=null;for(const _0x556093 of _0x2a904d)if('element'!=_0x556093['type']||_0x556093['isStart']||_0x5bdd58!=_0x556093['element']){if(!_0x5bdd58){if('text'==_0x556093['type']){const _0x4fd3a1=_0x43957f['_createAt'](_0x556093['parent'],_0x556093['offset']),_0x464c78=_0x131689['_createFromPositionAndShift'](_0x4fd3a1,_0x556093['data']['length']),_0x53e3a5=Array['from'](_0x464c78['getItems']())['map'](_0x358543=>new _0x49041f(_0x358543['data'],_0x358543['getAttributes']()));_0x561a1c['push'](..._0x53e3a5);}else{_0x5bdd58=_0x556093['element'];const _0x5b80de=_0x556093['element']['_clone'](!0x0);_0x5b80de['_removeAttribute'](St);for(const _0x3a1b5c of this['_editor']['model']['createRangeIn'](_0x5b80de)['getItems']())_0x3a1b5c['is']('element')&&_0x3a1b5c['_removeAttribute'](St);_0x561a1c['push'](_0x5b80de);}}}else _0x5bdd58=null;return _0x561a1c;}}function g(_0x445d7e,_0x4a042b){return _0x445d7e['type']===_0x4a042b['type']&&(_0x445d7e['limitId']===_0x4a042b['limitId']&&('text'==_0x445d7e['type']?_0x445d7e['data']==_0x4a042b['data']:function(_0x48c71b,_0x2e28e7){if(_0x48c71b['isStart']!=_0x2e28e7['isStart'])return!0x1;if(_0x48c71b['isStart']&&_0x48c71b['elementId']!=_0x2e28e7['elementId'])return!0x1;if(_0x48c71b['category']!=_0x2e28e7['category'])return!0x1;if('block'==_0x48c71b['category'])return!0x0;if('container'==_0x48c71b['category']&&_0x48c71b['elementId']!=_0x2e28e7['elementId'])return!0x1;return _0x48c71b['element']['name']==_0x2e28e7['element']['name'];}(_0x445d7e,_0x4a042b)));}function _(_0x3ebec0){return k({'name':_0x3ebec0['name'],...Object['fromEntries'](_0x3ebec0['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,at 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.4.0-alpha.
|
|
3
|
+
"version": "47.4.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.4.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-comments": "47.4.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-core": "47.4.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-link": "47.4.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-list": "47.4.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-track-changes": "47.4.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.
|
|
44
|
-
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.
|
|
45
|
-
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.
|
|
46
|
-
"ckeditor5": "47.4.0-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.4.0-alpha.4",
|
|
36
|
+
"@ckeditor/ckeditor5-comments": "47.4.0-alpha.4",
|
|
37
|
+
"@ckeditor/ckeditor5-core": "47.4.0-alpha.4",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.4",
|
|
39
|
+
"@ckeditor/ckeditor5-link": "47.4.0-alpha.4",
|
|
40
|
+
"@ckeditor/ckeditor5-list": "47.4.0-alpha.4",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.4",
|
|
42
|
+
"@ckeditor/ckeditor5-track-changes": "47.4.0-alpha.4",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.4",
|
|
44
|
+
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.4",
|
|
45
|
+
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.4",
|
|
46
|
+
"ckeditor5": "47.4.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 _0x4e3dd2=_0xdf61;(function(_0x4438a7,_0x759f05){const _0x5aff19=_0xdf61,_0x2f0828=_0x4438a7();while(!![]){try{const _0x1d1a94=-parseInt(_0x5aff19(0x1bd))/0x1*(-parseInt(_0x5aff19(0x1a9))/0x2)+-parseInt(_0x5aff19(0x1b5))/0x3+parseInt(_0x5aff19(0x1a4))/0x4+parseInt(_0x5aff19(0x1a0))/0x5*(-parseInt(_0x5aff19(0x1b6))/0x6)+parseInt(_0x5aff19(0x1a1))/0x7+-parseInt(_0x5aff19(0x1a8))/0x8+parseInt(_0x5aff19(0x1ab))/0x9;if(_0x1d1a94===_0x759f05)break;else _0x2f0828['push'](_0x2f0828['shift']());}catch(_0x4be99e){_0x2f0828['push'](_0x2f0828['shift']());}}}(_0x4950,0x4b40b));import{Plugin as _0xc364fe}from'ckeditor5/src/core.js';function _0xdf61(_0x294cc3,_0x3feb75){const _0x4950d1=_0x4950();return _0xdf61=function(_0xdf61f9,_0x2f6716){_0xdf61f9=_0xdf61f9-0x19f;let _0x416c5a=_0x4950d1[_0xdf61f9];return _0x416c5a;},_0xdf61(_0x294cc3,_0x3feb75);}import{toArray as _0x3ae922}from'ckeditor5/src/utils.js';function _0x4950(){const _0x2642b5=['classes','2830360ApLObO','5634JbnWGv','data','361899ENSIUh','item','tableCell','plugins','markerName','addClass','options','writer','downcastDispatcher','element','766023pGtnBO','533586NGtHbT','data-suggestion-id','afterInit','data-author-id','editor','setAttribute','highest','76jEwVJX','has','showSuggestionHighlights','25qxUkcE','3834061uxQcWs','Table','addMarker:suggestion','2240000JFMGJm','toViewElement','mapper'];_0x4950=function(){return _0x2642b5;};return _0x4950();}import{setHighlightHandling as _0x511f65}from'ckeditor5/src/widget.js';import{splitSuggestionMarkerName as _0x2a5ead}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0xc364fe{[_0x4e3dd2(0x1b8)](){const _0x1455d4=_0x4e3dd2,_0xdf4697=this[_0x1455d4(0x1ba)];if(!_0xdf4697[_0x1455d4(0x1ae)][_0x1455d4(0x1be)](_0x1455d4(0x1a2)))return;_0xdf4697[_0x1455d4(0x1aa)][_0x1455d4(0x1b3)]['on'](_0x1455d4(0x1a3),(_0x6d9ccc,_0x34ca0e,_0x3c68bd)=>{((_0x87683d,_0x375a45,_0x205b4c)=>{const _0x5c5951=_0xdf61;if(!_0x205b4c[_0x5c5951(0x1b1)][_0x5c5951(0x19f)])return;const _0x2ef88e=_0x375a45[_0x5c5951(0x1ac)];if(!_0x2ef88e||!_0x2ef88e['is'](_0x5c5951(0x1b4),_0x5c5951(0x1ad)))return;const _0x4a5dbb=_0x205b4c[_0x5c5951(0x1a6)][_0x5c5951(0x1a5)](_0x2ef88e);if(_0x4a5dbb){const {id:_0x3cb639,authorId:_0x263d0e}=_0x2a5ead(_0x375a45[_0x5c5951(0x1af)]);_0x511f65(_0x4a5dbb,_0x205b4c[_0x5c5951(0x1b2)],(_0x5d007d,_0x4093f7,_0x3b48bf)=>{const _0x1ceaa4=_0x5c5951;_0x3b48bf[_0x1ceaa4(0x1b0)](_0x3ae922(_0x4093f7[_0x1ceaa4(0x1a7)]),_0x5d007d),_0x3b48bf[_0x1ceaa4(0x1bb)](_0x1ceaa4(0x1b7),_0x3cb639,_0x5d007d),_0x3b48bf[_0x1ceaa4(0x1bb)](_0x1ceaa4(0x1b9),_0x263d0e,_0x5d007d);});}})(0x0,_0x34ca0e,_0x3c68bd);},{'priority':_0x1455d4(0x1bc)});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3fc6(_0x3f04c1,_0x35793c){const _0x19604f=_0x1960();return _0x3fc6=function(_0x3fc69d,_0x4eefef){_0x3fc69d=_0x3fc69d-0x14e;let _0x5a5080=_0x19604f[_0x3fc69d];return _0x5a5080;},_0x3fc6(_0x3f04c1,_0x35793c);}const _0x190bf5=_0x3fc6;(function(_0x28c937,_0x4e66d4){const _0x25f893=_0x3fc6,_0x4c53a2=_0x28c937();while(!![]){try{const _0x3c6bd9=-parseInt(_0x25f893(0x166))/0x1*(-parseInt(_0x25f893(0x164))/0x2)+parseInt(_0x25f893(0x150))/0x3*(-parseInt(_0x25f893(0x15e))/0x4)+-parseInt(_0x25f893(0x158))/0x5*(parseInt(_0x25f893(0x159))/0x6)+-parseInt(_0x25f893(0x15a))/0x7+-parseInt(_0x25f893(0x160))/0x8*(-parseInt(_0x25f893(0x156))/0x9)+-parseInt(_0x25f893(0x16c))/0xa+-parseInt(_0x25f893(0x16b))/0xb*(-parseInt(_0x25f893(0x15d))/0xc);if(_0x3c6bd9===_0x4e66d4)break;else _0x4c53a2['push'](_0x4c53a2['shift']());}catch(_0x97b891){_0x4c53a2['push'](_0x4c53a2['shift']());}}}(_0x1960,0x8e531));function _0x1960(){const _0x241aef=['avatar','extendTemplate','140460zqaJVz','124324xnFzOK','isMe','8edJSlV','div','name','ck-user__img','4ACuGnG','ck-user__notification','350863rOojWp','ck-user__anonymous','initials','content','isAnonymous','2409qxEeTU','4637400LzFlVt','ck\x20ck-user__name\x20ck-user__name--hidden','setTemplate','ck-user_me','notificationView','78wmZKAn','url(\x27','ck-user','push','ck\x20ck-user__name','ck-user__avatar','1827018UVvJsq','ck-user__icon','4631950pLosek','6sDNvGk','4808482BvJzva'];_0x1960=function(){return _0x241aef;};return _0x1960();}import{View as _0x27e528,IconView as _0x330d78}from'ckeditor5/src/ui.js';import{IconNotification as _0x9fd620}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export class UserView extends _0x27e528{[_0x190bf5(0x162)];[_0x190bf5(0x14f)];constructor(_0x616e48,_0x37be7b,_0x23b832){const _0x21b6b2=_0x190bf5;super(_0x616e48),this[_0x21b6b2(0x162)]=_0x37be7b[_0x21b6b2(0x162)],this[_0x21b6b2(0x14f)]=null;const _0x2d233d=['ck',_0x21b6b2(0x152)],_0x314698=['ck',_0x21b6b2(0x163)];if(_0x37be7b[_0x21b6b2(0x16a)]&&_0x314698[_0x21b6b2(0x153)](_0x21b6b2(0x167)),!_0x37be7b[_0x21b6b2(0x16a)]&&_0x37be7b[_0x21b6b2(0x15f)]&&_0x2d233d[_0x21b6b2(0x153)](_0x21b6b2(0x14e)),_0x37be7b[_0x21b6b2(0x15b)]&&_0x314698[_0x21b6b2(0x153)](_0x21b6b2(0x155)),_0x23b832){const _0x1279eb=new _0x330d78();_0x1279eb[_0x21b6b2(0x15c)]({'attributes':{'class':[_0x21b6b2(0x157)]}}),_0x1279eb[_0x21b6b2(0x169)]=_0x9fd620,this[_0x21b6b2(0x14f)]={'tag':_0x21b6b2(0x161),'attributes':{'class':['ck',_0x21b6b2(0x165)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x23b832},'children':[_0x1279eb]};}const _0x15504c=[{'tag':_0x21b6b2(0x161),'attributes':{'class':_0x314698,'style':{'background-image':_0x37be7b[_0x21b6b2(0x15b)]?_0x21b6b2(0x151)+_0x37be7b[_0x21b6b2(0x15b)]+'\x27)':''}}},{'tag':_0x21b6b2(0x161),'attributes':{'class':_0x37be7b[_0x21b6b2(0x15b)]?_0x21b6b2(0x16d):_0x21b6b2(0x154),'aria-label':_0x37be7b[_0x21b6b2(0x162)]},'children':[{'text':_0x37be7b[_0x21b6b2(0x168)]}]}];this[_0x21b6b2(0x14f)]&&_0x15504c[_0x21b6b2(0x153)](this[_0x21b6b2(0x14f)]),this[_0x21b6b2(0x16e)]({'tag':_0x21b6b2(0x161),'attributes':{'class':_0x2d233d,'data-user-id':_0x37be7b['id']},'children':_0x15504c});}}
|