@ckeditor/ckeditor5-collaboration-core 47.6.0-alpha.4 → 47.6.0-alpha.5

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 _0x584d58,Editor as _0x1ff8f8,Plugin as _0x430a3d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x51b3b7,Collection as _0x7435,uid as _0x51a914,toArray as rt,first as _0x4548c6,FocusTracker as _0x3af44a,KeystrokeHandler as _0x24b12c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x404a6e,IconView as st,ButtonView as ts,DropdownButtonView as _0x449dc8,FocusCycler as _0x29e5e7,isViewWithFocusCycler as _0x175030}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as ct,IconCheck as _0x18b136,IconCancel as _0x359509}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as it,toWidget as _0x993940}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x417fe6,MoveOperation as _0x4f3a20,ModelPosition as _0x59bcba,ModelRange as _0xcecd8c,MarkerOperation as _0x4f5ce1,MergeOperation as _0x589486,SplitOperation as _0x26eccd,RenameOperation as _0x59ca5e,AttributeOperation as _0x520c03,ModelTreeWalker as _0x295b0e,ModelText as _0x1d2191}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0x454c94}from'diff';class C extends _0x584d58{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x2ffa69,_0x38d69c){let _0x138ed9;if(_0x38d69c||(_0x38d69c=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x38d69c?_0x138ed9=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x138ed9=this['context']['editors']['find'](_0x2efba1=>_0x2efba1['config']['get']('collaboration.channelId')==_0x38d69c)),!_0x138ed9)throw new _0x51b3b7('permissions-set-permissions-invalid-channel-id',null);const _0x428cfb=_0x138ed9['plugins'],_0x745c99=_0x428cfb['has']('CommentsRepository')?_0x428cfb['get']('CommentsRepository'):void 0x0,_0x9a1084=_0x428cfb['has']('CommentsOnly')&&_0x428cfb['get']('CommentsOnly'),_0x2bfae4=_0x2ffa69['includes']('document:write'),_0x4eb61e=_0x2ffa69['includes']('comment:modify_all'),_0x101613=_0x2ffa69['includes']('comment:admin'),_0x13e920=_0x2ffa69['includes']('comment:write'),_0x28ace8=_0x13e920||_0x101613,_0x1482fe=_0x28ace8||_0x4eb61e,_0x32ffb6=_0x2bfae4||_0x28ace8;(_0x9a1084&&(_0x9a1084['isEnabled']=!_0x2bfae4&&_0x1482fe),_0x138ed9 instanceof _0x1ff8f8)&&(!(_0x2bfae4||_0x1482fe&&_0x745c99)?_0x138ed9['enableReadOnlyMode']('no-permissions'):_0x138ed9['disableReadOnlyMode']('no-permissions'));if(_0x745c99){_0x745c99['setPermissions']({'admin':_0x101613,'modifyAll':_0x4eb61e,'write':_0x13e920,'resolve':_0x32ffb6},_0x38d69c);const _0x1474fc=_0x138ed9 instanceof _0x1ff8f8&&_0x138ed9['commands']['get']('addCommentThread');_0x1474fc&&(_0x28ace8?_0x1474fc['clearForceDisabled']('noPermissions'):_0x1474fc['forceDisabled']('noPermissions'));}}}function U(_0x2894ac,_0x426f50){const t=_0x2894ac['t'];switch(_0x426f50){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 _0x584d58{['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(_0x40d14b){super(_0x40d14b),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x7435(),this['_locale']=_0x40d14b['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:_0x1a2601,name:_0x14832c,..._0x144229}){if(!_0x1a2601||'string'!=typeof _0x1a2601)throw new _0x51b3b7('users-add-invalid-id');if(this['users']['has'](_0x1a2601))throw new _0x51b3b7('users-add-duplicated-id',null,{'id':_0x1a2601});const _0x5f3a48=this['context']['config']['get']('users.getInitialsCallback'),_0x1d565d={..._0x144229,'id':_0x1a2601,'name':A(this['_locale'],_0x14832c),'color':this['_getNextColor']()};_0x1d565d['name']=A(this['_locale'],_0x1d565d['name']);const _0x3cd86f=new lt(_0x1d565d,_0x5f3a48);return this['users']['add'](_0x3cd86f),_0x3cd86f;}['getUser'](_0x5d4f05){return this['users']['get'](_0x5d4f05);}['useAnonymousUser'](){const _0x1f27bd=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x1f27bd);}['defineMe'](_0x3c41ca){if(this['_myId'])throw new _0x51b3b7('users-me-already-defined',null);const _0x56a01a=this['getUser'](_0x3c41ca);if(!_0x56a01a)throw new _0x51b3b7('users-me-missing-user',null);this['_myId']=_0x3c41ca,_0x56a01a['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x102cd7=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x102cd7&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x45e7b6=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x45e7b6,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x552ce2,_0x438cf8){this['id']=_0x552ce2['id'],this['color']=_0x552ce2['color'],this['name']=_0x552ce2['name'],this['initials']=_0x438cf8?_0x438cf8(this['name']):this['_computeInitials'](),this['avatar']=_0x552ce2['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x5ece55=this['name']['split']('\x20')['filter'](_0x47f69a=>/^[\p{Letter}]/u['test'](_0x47f69a));return 0x1===_0x5ece55['length']?this['_getInitial'](_0x5ece55[0x0]):0x0===_0x5ece55['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x5ece55[0x0])+this['_getInitial'](_0x5ece55[_0x5ece55['length']-0x1]);}['_getInitial'](_0x5006a9){return String['fromCodePoint'](_0x5006a9['codePointAt'](0x0))['toUpperCase']();}}function A(_0x4521a5,_0x902eca=''){return''==(_0x902eca=_0x902eca['trim']())?U(_0x4521a5,'Anonymous'):_0x902eca;}class ut{['_id'];constructor(_0x170759){this['_id']=_0x170759;}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 _0x404a6e{['name'];['notificationView'];constructor(_0x3780f3,_0x563458,_0x124128){super(_0x3780f3),this['name']=_0x563458['name'],this['notificationView']=null;const _0x37dfee=['ck','ck-user'],_0xe16433=['ck','ck-user__img'];if(_0x563458['isAnonymous']&&_0xe16433['push']('ck-user__anonymous'),!_0x563458['isAnonymous']&&_0x563458['isMe']&&_0x37dfee['push']('ck-user_me'),_0x563458['avatar']&&_0xe16433['push']('ck-user__avatar'),_0x124128){const _0x1ca391=new st();_0x1ca391['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1ca391['content']=ct,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x124128},'children':[_0x1ca391]};}const _0x27d86a=[{'tag':'div','attributes':{'class':_0xe16433,'style':{'background-image':_0x563458['avatar']?'url(\x27'+_0x563458['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x563458['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x563458['name']},'children':[{'text':_0x563458['initials']}]}];this['notificationView']&&_0x27d86a['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x37dfee,'data-user-id':_0x563458['id']},'children':_0x27d86a});}}class dt extends _0x404a6e{['id'];constructor(_0xc8ef2,_0x2ca1a1){super(_0xc8ef2),this['id']='ck-aria-description-'+_0x51a914(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2ca1a1}]});}}class ft extends ts{['render'](){super['render'](),re(this);}}class gt extends _0x449dc8{['render'](){super['render'](),re(this);}}function re(_0x334f28){_0x334f28['listenTo'](_0x334f28['element'],'mousedown',(_0x5775e8,_0x3c4964)=>{_0x3c4964['stopPropagation'](),_0x3c4964['preventDefault']();}),_0x334f28['listenTo'](_0x334f28['element'],'mouseup',()=>{_0x334f28['element']['focus']();});}function v(_0x3d8be6){const _0x1af686=_0x3d8be6['split'](':');return{'group':_0x1af686[0x0],'type':_0x1af686[0x1],'subType':_0x1af686['length']>=0x5?_0x1af686[0x2]:null,'id':_0x1af686['length']<0x5?_0x1af686[0x2]:_0x1af686[0x3],'authorId':_0x1af686['length']<0x5?_0x1af686[0x3]:_0x1af686[0x4],'markerCount':0x6==_0x1af686['length']?_0x1af686[0x5]:null};}function mt(_0x3845c5,_0x438993){const _0xa05231=_0x3845c5['end']['nodeBefore'];if(_0xa05231&&_0xa05231['is']('element')&&_0x438993['schema']['isBlock'](_0xa05231)&&!_0x438993['schema']['isObject'](_0xa05231)){const _0x182be7=_0x438993['createPositionAt'](_0xa05231,'end');return _0x438993['createRange'](_0x3845c5['start'],_0x182be7);}return _0x3845c5;}class M extends _0x430a3d{['afterInit'](){const _0x110899=this['editor'];if(!_0x110899['plugins']['has']('AlignmentEditing'))return;_0x110899['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x430a3d{['afterInit'](){const _0x22b6f9=this['editor'],_0x6f84f4=_0x22b6f9['plugins']['get']('SuggestionsConversion');for(const _0x902c63 of ii){if(!_0x22b6f9['plugins']['has'](_0x902c63))continue;const _0x370eaa=_0x902c63['slice'](0x0,-0x7)['toLowerCase']();_0x6f84f4['registerInlineAttribute'](_0x370eaa);}}}class I extends _0x430a3d{['afterInit'](){const _0xe6059b=this['editor'],_0x4a0f42=_0xe6059b['plugins']['get']('SuggestionsConversion');_0xe6059b['plugins']['has']('BookmarkEditing')&&_0x4a0f42['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x430a3d{['afterInit'](){const _0x5b077c=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x1f0a0f,commandName:_0x13e558}of no)this['editor']['plugins']['has'](_0x1f0a0f)&&_0x5b077c['registerInlineAttribute'](_0x13e558);}}class T extends _0x430a3d{['afterInit'](){const {editor:_0x1f966e}=this;if(!_0x1f966e['plugins']['has']('FootnotesPropertiesEditing'))return;const _0xcd81ed=_0x1f966e['plugins']['get']('SuggestionsConversion');_0xcd81ed['registerBlockAttribute']('footnotesListStyle'),_0xcd81ed['registerBlockAttribute']('footnotesListStart');}}class E extends _0x430a3d{['afterInit'](){const _0x3caaa1=this['editor'];if(!_0x3caaa1['plugins']['has']('HighlightEditing'))return;_0x3caaa1['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class S extends _0x430a3d{['afterInit'](){const _0x4ede64=this['editor'];if(!_0x4ede64['plugins']['has']('HtmlEmbed'))return;_0x4ede64['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class $ extends _0x430a3d{['afterInit'](){const _0x4bfc9e=this['editor'];if(!_0x4bfc9e['plugins']['has']('ImageEditing'))return;const _0x469bd0=_0x4bfc9e['plugins']['get']('SuggestionsConversion');_0x469bd0['registerBlockAttribute']('src'),_0x4bfc9e['plugins']['has']('ImageResize')&&_0x469bd0['registerBlockAttribute']('resizedWidth'),_0x4bfc9e['plugins']['has']('ImageTextAlternativeEditing')&&_0x469bd0['registerBlockAttribute']('alt'),_0x4bfc9e['plugins']['has']('PictureEditing')&&_0x469bd0['registerBlockAttribute']('sources'),_0x4bfc9e['plugins']['has']('ImageSizeAttributes')&&(_0x469bd0['registerBlockAttribute']('width'),_0x469bd0['registerBlockAttribute']('height'));}}class x extends _0x430a3d{['afterInit'](){const _0x22fbda=this['editor'],_0x136d90=_0x22fbda['plugins']['get']('SuggestionsConversion');_0x22fbda['plugins']['has']('IndentBlock')&&(_0x136d90['registerBlockAttribute']('blockIndent'),_0x22fbda['plugins']['has']('ListEditing')&&(_0x136d90['registerBlockAttribute']('blockIndentList'),_0x136d90['registerBlockAttribute']('blockIndentListItem')));}}class H extends _0x430a3d{['afterInit'](){const _0x52aa39=this['editor'];if(!_0x52aa39['plugins']['has']('LineHeight'))return;_0x52aa39['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class N extends _0x430a3d{['afterInit'](){const _0x7bf6bc=this['editor'];if(!_0x7bf6bc['plugins']['has']('LinkEditing'))return;const _0xfd337f=_0x7bf6bc['plugins']['get']('SuggestionsConversion'),_0x19a473=_0x7bf6bc['commands']['get']('link');_0xfd337f['registerInlineAttribute']('linkHref');for(const _0x516898 of _0x19a473['manualDecorators'])_0xfd337f['registerInlineAttribute'](_0x516898['id']);}}class P extends _0x430a3d{['afterInit'](){const _0xa6fb91=this['editor'];if(!_0xa6fb91['plugins']['has']('ListEditing'))return;const _0x183e8f=_0xa6fb91['plugins']['get']('SuggestionsConversion'),_0x22d6df=_0xa6fb91['plugins']['has']('TodoListEditing');_0x183e8f['registerBlockAttribute']('listItemId'),_0x183e8f['registerBlockAttribute']('listType'),_0x183e8f['registerBlockAttribute']('listIndent'),_0x22d6df&&_0x183e8f['registerBlockAttribute']('todoListChecked');}}class K extends _0x430a3d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3362c0=this['editor']['config']['get']('list.properties'),_0x499321=this['editor']['plugins']['get']('SuggestionsConversion');_0x3362c0['styles']&&_0x499321['registerBlockAttribute']('listStyle'),_0x3362c0['reversed']&&_0x499321['registerBlockAttribute']('listReversed'),_0x3362c0['startIndex']&&_0x499321['registerBlockAttribute']('listStart');}}class q extends _0x430a3d{['afterInit'](){const _0x410eaf=this['editor'],_0x4fdfbb=_0x410eaf['plugins']['get']('SuggestionsConversion');_0x410eaf['plugins']['has']('MultiLevelList')&&_0x4fdfbb['registerBlockAttribute']('listMarkerStyle');}}class z extends _0x430a3d{['afterInit'](){const _0x19d16e=this['editor'];if(!_0x19d16e['plugins']['has']('Style')||!_0x19d16e['plugins']['has']('DataSchema')||!_0x19d16e['config']['get']('style.definitions'))return;const _0x9e8c3b=_0x19d16e['plugins']['get']('SuggestionsConversion'),_0x30c0a8=_0x19d16e['config']['get']('style.definitions'),_0x27679a=_0x19d16e['plugins']['get']('GeneralHtmlSupport'),_0x4a2ecf=_0x19d16e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x19d16e['plugins']['get']('DataSchema'),_0x30c0a8),_0xd4202c=new Set();for(const _0x3947de of _0x4a2ecf['block']){const _0x605377=_0x27679a['getGhsAttributeNameForElement'](_0x3947de['element']);_0xd4202c['add'](_0x605377);}const _0x36dbf7=new Set();for(const _0x2f6fab of _0x4a2ecf['inline']){const _0x4fbf24=_0x27679a['getGhsAttributeNameForElement'](_0x2f6fab['element']);_0x36dbf7['add'](_0x4fbf24);for(const _0x5de7eb of _0x2f6fab['ghsAttributes'])_0x36dbf7['add'](_0x5de7eb);}for(const _0x4aea56 of _0xd4202c)_0x9e8c3b['registerBlockAttribute'](_0x4aea56);for(const _0x444bef of _0x36dbf7)_0x9e8c3b['registerInlineAttribute'](_0x444bef);}}class O extends _0x430a3d{['afterInit'](){const _0x2eae45=this['editor'];if(!_0x2eae45['plugins']['has']('TableEditing'))return;const _0x132848=_0x2eae45['plugins']['get']('SuggestionsConversion');_0x132848['registerBlockAttribute']('headingRows'),_0x132848['registerBlockAttribute']('headingColumns');}}class R extends _0x430a3d{['afterInit'](){const {plugins:_0x53143c}=this['editor'];if(!_0x53143c['has']('TablePropertiesEditing'))return;const _0x30e3b=_0x53143c['get']('SuggestionsConversion'),_0x545c26=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0xdb90eb of _0x545c26)_0x30e3b['registerBlockAttribute'](_0xdb90eb);}}class F extends _0x430a3d{['afterInit'](){const _0x10598a=this['editor'],_0x1c7196=_0x10598a['plugins']['get']('SuggestionsConversion');_0x10598a['plugins']['has']('TableLayout')&&_0x1c7196['registerBlockAttribute']('tableType');}}class G extends _0x430a3d{['afterInit'](){const _0x5e5d9d=this['editor'],_0x278cff=this['editor']['plugins']['get']('SuggestionsConversion');_0x5e5d9d['plugins']['has']('Uploadcare')&&_0x5e5d9d['plugins']['has']('UploadcareImageEdit')&&_0x278cff['registerBlockAttribute']('uploadcareImageId');}}class J extends _0x430a3d{['afterInit'](){const _0x15de15=this['editor'];if(!_0x15de15['plugins']['has']('ShiftEnter'))return;const _0x5e644e=_0x15de15['plugins']['get']('SuggestionsConversion'),_0x48c962=(_0x10d6bd,_0x5154e7,_0x333e27,_0x10ad90)=>{if(_0x10ad90&&!_0x333e27['options']['showSuggestionHighlights'])return;if(!_0x333e27['consumable']['test'](_0x5154e7['markerRange'],_0x10d6bd['name']))return;const _0x5b558e=_0x15de15['model'];for(const _0x5693ee of _0x5154e7['markerRange']['getItems']()){if(!_0x5693ee['is']('element','softBreak'))continue;const _0x1c7d24='deletion'==_0x5154e7['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xabddd8,authorId:_0x419a76}=v(_0x5154e7['markerName']),_0x562b00=_0x333e27['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c7d24,'data-suggestion':_0xabddd8,'data-author-id':_0x419a76}),_0x2e0386=_0x333e27['mapper']['toViewPosition'](_0x5b558e['createPositionBefore'](_0x5693ee));!_0x10ad90&&_0x5e644e['_activeMarkers']['includes'](_0x5154e7['markerName'])&&_0x333e27['writer']['addClass']('ck-suggestion-marker--active',_0x562b00),_0x333e27['writer']['insert'](_0x2e0386,_0x562b00),_0x333e27['mapper']['bindElementToMarker'](_0x562b00,_0x5154e7['markerName']);}};_0x15de15['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1da049,_0x1ebec0,_0x481bb4)=>{_0x48c962(_0x1da049,_0x1ebec0,_0x481bb4,!0x1);},{'priority':'high'}),_0x15de15['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x817e6a,_0x40d2c2,_0x2295ac)=>{_0x48c962(_0x817e6a,_0x40d2c2,_0x2295ac,!0x0);},{'priority':'high'});}}class L extends _0x430a3d{['afterInit'](){const _0x17f7f4=this['editor'];_0x17f7f4['plugins']['has']('MediaEmbedEditing')&&(_0x17f7f4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3000d0,{writer:_0x10d024,options:_0x7f2a85})=>{if(_0x7f2a85['showSuggestionHighlights'])return _0x10d024['createEmptyElement']('div');},'converterPriority':'high'}),_0x17f7f4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x18f5fd,_0x1e0302,_0x2dbe6c)=>{_0x2dbe6c['options']['showSuggestionHighlights']&&_0x18f5fd['stop']();},{'priority':'high'}));}}class Q extends _0x430a3d{['afterInit'](){const _0x3023e9=this['editor'];if(!_0x3023e9['plugins']['has']('Table'))return;_0x3023e9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2164f6,_0x2e7681,_0x2bf715)=>{((_0x42691d,_0x455c9a,_0xf229e6)=>{if(!_0xf229e6['options']['showSuggestionHighlights'])return;const _0x297f53=_0x455c9a['item'];if(!_0x297f53||!_0x297f53['is']('element','tableCell'))return;const _0x47fb84=_0xf229e6['mapper']['toViewElement'](_0x297f53);if(_0x47fb84){const {id:_0xc4ba1f,authorId:_0x596c5e}=v(_0x455c9a['markerName']);it(_0x47fb84,_0xf229e6['writer'],(_0x212ae0,_0x76fe09,_0x1601a9)=>{_0x1601a9['addClass'](rt(_0x76fe09['classes']),_0x212ae0),_0x1601a9['setAttribute']('data-suggestion-id',_0xc4ba1f,_0x212ae0),_0x1601a9['setAttribute']('data-author-id',_0x596c5e,_0x212ae0);});}})(0x0,_0x2e7681,_0x2bf715);},{'priority':'highest'});}}class V extends _0x430a3d{['afterInit'](){const _0x5cd86c=this['editor'];_0x5cd86c['plugins']['has']('HorizontalLineEditing')&&_0x5cd86c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4153d8,{writer:_0x54fee8,options:_0x474946})=>{if(!_0x474946['showSuggestionHighlights'])return null;const _0x1db145=_0x54fee8['createContainerElement']('div'),_0xa8fd12=_0x54fee8['createEmptyElement']('hr');return _0x54fee8['addClass']('ck-horizontal-line',_0x1db145),_0x54fee8['insert'](_0x54fee8['createPositionAt'](_0x1db145,0x0),_0xa8fd12),_0x1db145;},'converterPriority':'high'});}}class W extends _0x430a3d{['afterInit'](){const {plugins:_0x34c9d5,model:_0x31770a}=this['editor'];if(!_0x34c9d5['has']('TableCellPropertiesEditing'))return;const _0x3e2660=_0x34c9d5['get']('SuggestionsConversion'),_0x4e43f8=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x751df3 of _0x4e43f8)_0x3e2660['registerBlockAttribute'](_0x751df3);_0x31770a['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3e2660['registerBlockAttribute']('tableCellType');}}class kt extends _0x430a3d{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,E,V,S,$,x,H,N,P,K,L,q,J,z,Q,O,F,W,R,G];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3b19cd=this['editor'],_0x15337a=(_0x41ac76,_0x1d7d61,_0x3372e3)=>{const {id:_0x110459,authorId:_0x1ec7c5,type:_0x57f3dd,subType:_0x15146e}=v(_0x41ac76['markerName']),_0x5dd37f=['ck-suggestion-marker',this['_getClassName'](_0x57f3dd,_0x15146e)];let _0x33cd44=0xbb8;return!_0x3372e3&&(this['_activeMarkers']['includes'](_0x41ac76['markerName'])&&(_0x5dd37f['push']('ck-suggestion-marker--active'),_0x33cd44=0xbc2)),('deletion'==_0x57f3dd&&(_0x33cd44+=0x5),{'classes':_0x5dd37f,'attributes':{'data-suggestion':_0x110459,'data-author-id':_0x1ec7c5},'priority':_0x33cd44});};_0x3b19cd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d0724,_0x13e746)=>_0x15337a(_0x5d0724,0x0,!0x1)}),_0x3b19cd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x22a86b,_0x536564)=>_0x15337a(_0x22a86b,0x0,!0x0)}),_0x3b19cd['conversion']['for']('dataDowncast')['add'](_0x526c1e=>{_0x526c1e['on']('addMarker:suggestion',(_0x46ebec,_0x5f25cf,_0x3b18a3)=>{if(!_0x3b18a3['options']['showSuggestionHighlights'])return;const _0x5078f1=_0x5f25cf['item'];if(!_0x5078f1)return;const _0x47974c=_0x3b18a3['mapper']['toViewElement'](_0x5078f1);_0x3b19cd['model']['schema']['isObject'](_0x5078f1)&&_0x47974c&&!_0x47974c['getCustomProperty']('widget')&&_0x47974c['is']('containerElement')&&_0x993940(_0x47974c,_0x3b18a3['writer']);},{'priority':'high'});});const _0x45423c=(_0x328a0a,_0x5ba1d1,_0x4a4e7e,_0x31b5fe,_0x514535)=>{if(_0x31b5fe&&!_0x4a4e7e['options']['showSuggestionHighlights'])return;if(!_0x5ba1d1['item'])return;const {id:_0x1c9975,authorId:_0x2d0c1d,subType:_0x12167c}=v(_0x5ba1d1['markerName']);if(_0x514535){const _0x5f02c6=_0x12167c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5f02c6))return;}if(_0x5ba1d1['item']['is']('selection'))return void _0x4a4e7e['consumable']['consume'](_0x5ba1d1['item'],_0x328a0a['name']);const _0x5ea713=_0x4a4e7e['mapper']['toViewElement'](_0x5ba1d1['item']);if(_0x5ba1d1['item']['is']('element')&&_0x3b19cd['model']['schema']['isBlock'](_0x5ba1d1['item'])&&!_0x5ea713['getCustomProperty']('addHighlight')){_0x4a4e7e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5ea713),_0x4a4e7e['writer']['setAttribute']('data-suggestion',_0x1c9975,_0x5ea713),_0x4a4e7e['writer']['setAttribute']('data-author-id',_0x2d0c1d,_0x5ea713),_0x4a4e7e['mapper']['bindElementToMarker'](_0x5ea713,_0x5ba1d1['markerName']),_0x31b5fe||(this['_activeMarkers']['includes'](_0x5ba1d1['markerName'])?_0x4a4e7e['writer']['addClass']('ck-suggestion-marker--active',_0x5ea713):_0x4a4e7e['writer']['removeClass']('ck-suggestion-marker--active',_0x5ea713));for(const _0x4f72bd of _0x3b19cd['model']['createRangeIn'](_0x5ba1d1['item'])['getItems']())_0x4a4e7e['consumable']['consume'](_0x4f72bd,_0x328a0a['name']);_0x4a4e7e['consumable']['consume'](_0x5ba1d1['item'],_0x328a0a['name']);}},_0x456adc=(_0x3d28e3,_0x104e10,_0x2c0695,_0x1145e7)=>{const _0xdfb0f=_0x2c0695['mapper']['markerNameToElements'](_0x104e10['markerName']);if(_0xdfb0f){if(_0x1145e7){const {subType:_0x463000}=v(_0x104e10['markerName']),_0x238d18=_0x463000['split']('|')[0x0];if(!this['isBlockAttribute'](_0x238d18))return;}for(const _0x56fc9e of _0xdfb0f)_0x56fc9e['getCustomProperty']('addHighlight')||(_0x2c0695['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x56fc9e),_0x2c0695['writer']['removeAttribute']('data-suggestion',_0x56fc9e),_0x2c0695['writer']['removeAttribute']('data-author-id',_0x56fc9e),_0x2c0695['mapper']['unbindElementFromMarkerName'](_0x56fc9e,_0x104e10['markerName']));}};_0x3b19cd['conversion']['for']('editingDowncast')['add'](_0xefca4f=>{_0xefca4f['on']('addMarker:suggestion:formatBlock',(_0x43de3b,_0x1c7d4f,_0x64d67e)=>{_0x45423c(_0x43de3b,_0x1c7d4f,_0x64d67e,!0x1,!0x1);},{'priority':'high'});}),_0x3b19cd['conversion']['for']('editingDowncast')['add'](_0x4b04e7=>{_0x4b04e7['on']('addMarker:suggestion:attribute',(_0x194a62,_0x5c167b,_0xaeb986)=>{_0x45423c(_0x194a62,_0x5c167b,_0xaeb986,!0x1,!0x0);},{'priority':'high'});}),_0x3b19cd['conversion']['for']('editingDowncast')['add'](_0x14eb06=>{_0x14eb06['on']('removeMarker:suggestion:formatBlock',(_0x5718b8,_0x438773,_0x15665f)=>{_0x456adc(0x0,_0x438773,_0x15665f,!0x1);},{'priority':'high'});}),_0x3b19cd['conversion']['for']('editingDowncast')['add'](_0x1700b8=>{_0x1700b8['on']('removeMarker:suggestion:attribute',(_0x44d387,_0x2e9b11,_0x169e16)=>{_0x456adc(0x0,_0x2e9b11,_0x169e16,!0x0);},{'priority':'high'});}),_0x3b19cd['conversion']['for']('dataDowncast')['add'](_0x2f5a8d=>{_0x2f5a8d['on']('addMarker:suggestion:formatBlock',(_0x56a262,_0x5056d4,_0xa92627)=>{_0x45423c(_0x56a262,_0x5056d4,_0xa92627,!0x0,!0x1);},{'priority':'highest'});}),_0x3b19cd['conversion']['for']('dataDowncast')['add'](_0x36668d=>{_0x36668d['on']('addMarker:suggestion:attribute',(_0x5ac748,_0x2bc709,_0x40ccd2)=>{_0x45423c(_0x5ac748,_0x2bc709,_0x40ccd2,!0x0,!0x0);},{'priority':'highest'});}),_0x3b19cd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x453d80,_0x13d0ce)=>{if(_0x13d0ce['options']['showSuggestionHighlights']){const {id:_0x4ba170,authorId:_0x269370}=v(_0x453d80);return _0x453d80['includes'](':split')||_0x453d80['includes'](':merge')?{'group':'suggestion','name':_0x453d80['substr'](0xb),'attributes':{'data-suggestion':_0x4ba170,'data-author-id':_0x269370}}:null;}return{'group':'suggestion','name':_0x453d80['substr'](0xb)};}});const _0x3b00e6=(_0x492880,_0x3fc61c,_0x411616,_0x10fdd,_0x34941c)=>{if(_0x10fdd&&!_0x411616['options']['showSuggestionHighlights'])return;if(!_0x411616['consumable']['test'](_0x3fc61c['markerRange'],_0x492880['name']))return;const _0x2cf6af=this['_activeMarkers'],_0x473584=_0x3fc61c['markerRange']['getWalker'](),_0x369f85=_0x3fc61c['markerRange']['start'],_0x6807bd=_0x3b19cd['model']['schema'];let _0x5c50aa=null,_0x28bb0a=null,_0x1969ed=!0x1,_0x172fef=!0x1;for(const _0x276b3d of _0x473584){const _0x106172=_0x276b3d['item'];_0x1969ed=_0x1969ed||_0x6807bd['isContent'](_0x106172);const _0x6305c9=_0x411616['mapper']['toViewElement'](_0x106172);if(_0x6305c9&&_0x6305c9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x276b3d['type']&&(_0x6807bd['isBlock'](_0x106172)&&!_0x6807bd['isLimit'](_0x106172)&&(_0x106172['nextSibling']||_0x369f85['isAtEnd']?_0x5c50aa&&_0x5c50aa['parent']==_0x106172||(_0x5c50aa=_0x106172,_0x5db0f4(_0x276b3d['previousPosition']),_0x172fef=!0x0):_0x28bb0a=_0x28bb0a||_0x276b3d['previousPosition']));}function _0x5db0f4(_0x39579d){const {id:_0x5cdcc6,authorId:_0x189742}=v(_0x3fc61c['markerName']),_0x4910e9=_0x411616['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34941c,'data-suggestion':_0x5cdcc6,'data-author-id':_0x189742}),_0x347e36=_0x411616['mapper']['toViewPosition'](_0x39579d);!_0x10fdd&&_0x2cf6af['includes'](_0x3fc61c['markerName'])&&_0x411616['writer']['addClass']('ck-suggestion-marker--active',_0x4910e9),_0x411616['writer']['insert'](_0x347e36,_0x4910e9),_0x411616['mapper']['bindElementToMarker'](_0x4910e9,_0x3fc61c['markerName']);}_0x1969ed||_0x172fef||!_0x28bb0a||_0x5db0f4(_0x28bb0a);};_0x3b19cd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x59534a,_0x1fd8df,_0x7a29e6)=>{_0x3b00e6(_0x59534a,_0x1fd8df,_0x7a29e6,!0x1,'merge');},{'priority':'high'}),_0x3b19cd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xf7319b,_0x50f42d,_0x1c28b7)=>{_0x3b00e6(_0xf7319b,_0x50f42d,_0x1c28b7,!0x0,'merge');},{'priority':'high'}),_0x3b19cd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a5f44,_0x3c7678,_0x39bcb0)=>{_0x3b00e6(_0x1a5f44,_0x3c7678,_0x39bcb0,!0x1,'split');},{'priority':'high'}),_0x3b19cd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19317b,_0x247f29,_0x20be24)=>{_0x3b00e6(_0x19317b,_0x247f29,_0x20be24,!0x0,'split');},{'priority':'high'}),_0x3b19cd['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20406c,_0x39db2a,_0x4fbe6e)=>{((_0x58d21,_0x5d3133,_0x2716e1)=>{const _0x117f68=_0x2716e1['mapper']['markerNameToElements'](_0x5d3133['markerName']);if(_0x117f68){for(const _0x55d687 of _0x117f68)(_0x55d687['hasClass']('ck-suggestion-marker-split')||_0x55d687['hasClass']('ck-suggestion-marker-merge'))&&(_0x2716e1['mapper']['unbindElementFromMarkerName'](_0x55d687,_0x5d3133['markerName']),_0x2716e1['writer']['remove'](_0x55d687));}})(0x0,_0x39db2a,_0x4fbe6e);},{'priority':'high'});const _0x2c2a86=(_0x4287e3,_0x3b27c4,_0x4ed7c8,_0x54bfd3)=>{if(_0x54bfd3&&!_0x4ed7c8['options']['showSuggestionHighlights'])return;const _0x541c57=_0x3b27c4['markerRange']['start'],_0x3b06b5=_0x3b27c4['markerRange']['end'],_0xf484c7=_0x3b19cd['model']['schema'];if(!_0x541c57['isTouching'](_0x3b06b5)||!_0x541c57['nodeAfter'])return;const _0x2c4733=_0x541c57['nodeAfter'];if(_0xf484c7['isBlock'](_0x2c4733)&&!_0xf484c7['isLimit'](_0x2c4733)&&_0xf484c7['checkChild'](_0x2c4733,'$text')){if(!_0x4ed7c8['consumable']['consume'](_0x3b27c4['markerRange'],_0x4287e3['name']))return;const {id:_0x570785,authorId:_0x2715d2}=v(_0x3b27c4['markerName']),_0x34dc2d=_0x4ed7c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x570785,'data-author-id':_0x2715d2}),_0x9e61ad=_0x4ed7c8['mapper']['toViewPosition'](_0x3b06b5);!_0x54bfd3&&this['_activeMarkers']['includes'](_0x3b27c4['markerName'])&&_0x4ed7c8['writer']['addClass']('ck-suggestion-marker--active',_0x34dc2d),_0x4ed7c8['writer']['insert'](_0x9e61ad,_0x34dc2d),_0x4ed7c8['mapper']['bindElementToMarker'](_0x34dc2d,_0x3b27c4['markerName']);}};_0x3b19cd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c0663,_0x17d9a6,_0x3bac1c)=>{_0x2c2a86(_0x3c0663,_0x17d9a6,_0x3bac1c,!0x1);},{'priority':'high'}),_0x3b19cd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x532223,_0x168137,_0x5ad4ff)=>{_0x2c2a86(_0x532223,_0x168137,_0x5ad4ff,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x4e2ed7,_0x3b06cc,_0x4720e9)=>{this['_activeMarkers']=_0x4720e9['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x408edf){this['_blockAttributeKeys']['add'](_0x408edf);}['registerInlineAttribute'](_0x398538){this['_inlineAttributeKeys']['add'](_0x398538);}['isBlockAttribute'](_0x5373b3){return this['_blockAttributeKeys']['has'](_0x5373b3);}['isInlineAttribute'](_0x557365){return this['_inlineAttributeKeys']['has'](_0x557365);}['isRegisteredAttribute'](_0x385325){return this['isInlineAttribute'](_0x385325)||this['isBlockAttribute'](_0x385325);}['_getClassName'](_0x42ca7e,_0x1a7128){if('attribute'!=_0x42ca7e)return'ck-suggestion-marker-'+_0x42ca7e;const _0x3d92ef=_0x1a7128['split']('|')[0x0];return this['isBlockAttribute'](_0x3d92ef)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x186697={},_0x2a96be){if(void 0x0!==_0x186697['dateTimeFormat']&&'function'!=typeof _0x186697['dateTimeFormat'])throw new _0x51b3b7('invalid-date-time-format');return _0x2a577e=>{const _0x562bef='string'==typeof _0x2a577e?tt['fromISO'](_0x2a577e):tt['fromJSDate'](_0x2a577e),_0x238cc2=tt['now'](),_0x5eaf26=Math['floor'](_0x238cc2['diff'](_0x562bef,'days')['days']);return _0x186697['dateTimeFormat']?_0x186697['dateTimeFormat'](_0x562bef['toJSDate'](),_0x2a96be&&_0x2a96be['t']?_0x2a96be['t']:void 0x0):0x0===_0x5eaf26?_0x2a96be?U(_0x2a96be,'Today')+'\x20'+_0x562bef['toFormat']('hh:mma'):_0x562bef['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x5eaf26?_0x2a96be?U(_0x2a96be,'Yesterday')+'\x20'+_0x562bef['toFormat']('hh:mma'):_0x562bef['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x5eaf26<0x7?_0x2a96be?U(_0x2a96be,'Last')+'\x20'+U(_0x2a96be,_0x562bef['toFormat']('EEEE'))+'\x20'+_0x562bef['toFormat']('hh:mma'):_0x562bef['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x562bef['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x37622c,_0x505eeb){const _0x5a88ca=_0x37622c['mapper']['markerNameToElements'](_0x505eeb['name']);if(!_0x5a88ca)return null;const _0x30e711=_0x4548c6(_0x5a88ca['values']());return _0x37622c['view']['domConverter']['mapViewToDom'](_0x30e711)||null;}function wt(_0x31f0a1,_0x484d81){if(0x0===_0x484d81['length'])return null;const _0x46f8e6=[],_0x58a466=_0x31f0a1['view']['domConverter'];for(const _0x392706 of _0x484d81){const _0x35a91c=_0x31f0a1['mapper']['markerNameToElements'](_0x392706['name']);if(!_0x35a91c)continue;const _0x33ba61=Array['from'](_0x35a91c)['map'](_0xef594c=>_0x58a466['mapViewToDom'](_0xef594c))['filter'](_0x1d7880=>!!_0x1d7880);_0x46f8e6['push'](..._0x33ba61);}if(0x0===_0x46f8e6['length'])return null;const _0x1f568f=[];for(const _0x1091b6 of _0x46f8e6){const _0x1838d8=_0x1091b6['getClientRects']()['item'](0x0);_0x1838d8&&_0x1f568f['push']({'x':_0x1838d8['x'],'y':_0x1838d8['y'],'domElement':_0x1091b6});}return 0x0===_0x1f568f['length']?null:(_0x1f568f['sort']((_0x472cc6,_0x190e90)=>_0x472cc6['y']-_0x190e90['y']||_0x472cc6['x']-_0x190e90['x']),_0x1f568f['map'](_0x1b3a5a=>_0x1b3a5a['domElement']));}function bt(_0x27ddda,{limit:_0x471047,suffix:_0x1876d1='...'}){const _0x4afed0=[];let _0x5342a1=0x0;const _0x1c8c8b=_0x27ddda['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x21ba0b=0x0;_0x21ba0b<_0x1c8c8b['length'];_0x21ba0b++){let _0x3feaf4=_0x1c8c8b[_0x21ba0b];const _0x2ea0f3=tn(_0x3feaf4);if(_0x3feaf4['startsWith']('<')){if(_0x5342a1>=_0x471047){const _0x2fde42=_0x3feaf4['match'](/[a-zA-Z]+/);if(!_0x2fde42){_0x1c8c8b[_0x21ba0b]='';continue;}const _0x1f1ccc=_0x2fde42[0x0];_0x3feaf4['startsWith']('</')?(_0x4afed0['length']&&(_0x3feaf4=''),_0x4afed0['pop']()):(_0x4afed0['push'](_0x1f1ccc),_0x3feaf4='');}}else{if(_0x5342a1>=_0x471047)_0x3feaf4='';else{if(_0x5342a1+_0x2ea0f3['length']>=_0x471047){let _0xa0b9d2=_0x471047-_0x5342a1;if('\x20'===_0x2ea0f3[_0xa0b9d2-0x1])_0xa0b9d2--;else{const _0x5f0140=_0x2ea0f3['slice'](_0xa0b9d2)['indexOf']('\x20');-0x1!==_0x5f0140?_0xa0b9d2+=_0x5f0140:_0xa0b9d2=_0x3feaf4['length'];}_0x3feaf4=_0x2ea0f3['slice'](0x0,_0xa0b9d2)['join']('')+_0x1876d1,_0x5342a1=_0x471047;}else _0x5342a1+=_0x2ea0f3['length'];}}_0x1c8c8b[_0x21ba0b]=_0x3feaf4;}return _0x1c8c8b['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x3280b7){const _0x28df8f=[];for(let _0x213e77=0x0;_0x213e77<_0x3280b7['length'];_0x213e77++){const _0x5193ed=_0x3280b7['substring'](_0x213e77)['match'](/^&[a-z0-9#]+;/);if(_0x5193ed){const _0x554a24=_0x5193ed[0x0];_0x28df8f['push'](_0x554a24),_0x213e77+=_0x554a24['length']-0x1;}else _0x28df8f['push'](_0x3280b7[_0x213e77]);}return _0x28df8f;}class X extends _0x404a6e{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x166e14){super(_0x166e14);const _0x49cea6=this['bindTemplate'];this['set']('message',U(_0x166e14,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x166e14,U(_0x166e14,'Yes'),_0x18b136,'submit'),this['cancelView']=this['_createButtonView'](_0x166e14,U(_0x166e14,'No'),_0x359509,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3af44a(),this['keystrokes']=new _0x24b12c(),this['focusCycler']=new _0x29e5e7({'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':_0x49cea6['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'](_0x39f06b,_0x2b99e4,_0x39c246,_0x538748){const _0x3db240=new ts(_0x39f06b);return _0x3db240['label']=_0x2b99e4,_0x3db240['icon']=_0x39c246,_0x3db240['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x538748}}),_0x3db240['on']('execute',()=>this['fire'](_0x538748)),_0x3db240;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x180a20=>{this['keystrokes']['listenTo'](_0x180a20['element']),this['focusTracker']['add'](_0x180a20['element']);}),this['keystrokes']['set']('esc',(_0x2126ae,_0x2cba27)=>{this['fire']('cancel'),_0x2cba27();});}}function vt(_0x51e5f8){return class extends _0x51e5f8{['showConfirm'](_0x39b8d2,_0x1b3045){return this['confirmView']=new X(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x39b8d2,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x1b3045['appendChild'](this['confirmView']['element']),_0x1b3045['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4f09e0,_0xcdf88b,_0x3c1f1e)=>{_0x3c1f1e||_0x1b3045['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x23d78f=>this['confirmView']['on']('submit',_0x23d78f));}['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(_0x5ff1d4){let _0x26415e=0x0,_0x4f2b74=0x0;for(const _0x1c5151 of ne(_0x5ff1d4))_0x26415e=(_0x26415e<<0x5)-_0x26415e+_0x1c5151,_0x26415e&=_0x26415e,[_0x26415e,_0x4f2b74]=[_0x4f2b74,_0x26415e];return ie(_0x26415e)+ie(_0x4f2b74);}function*ee(_0xac936c){null==_0xac936c||null==_0xac936c?yield 0x12b9b0a1:0x0===_0xac936c||!0x1===_0xac936c?yield 0x0:0x1===_0xac936c||0x1==_0xac936c?yield 0x1:Array['isArray'](_0xac936c)?yield*function*(_0x58b462){for(const _0xc08946 of _0x58b462)yield*ee(_0xc08946);}(_0xac936c):'object'==typeof _0xac936c?yield*ne(_0xac936c):'string'==typeof _0xac936c?yield*oe(_0xac936c):'number'==typeof _0xac936c&&(yield _0xac936c);}function*ne(_0x554d8d){if(yield te('{'),_0x554d8d){const _0x1c65c3=Object['keys'](_0x554d8d)['sort']();for(const _0x43c3e1 of _0x1c65c3){yield*oe(_0x43c3e1),yield te(':');const _0x23acd8=_0x554d8d[_0x43c3e1];yield*ee(_0x23acd8);}}yield te('}');}function*oe(_0x15e63e){yield te('\x22');for(const _0x5d209b of _0x15e63e)yield te(_0x5d209b);yield te('\x22');}function te(_0x2e0654){return _0x2e0654['charCodeAt'](0x0);}function ie(_0x3fe64d){return(_0x3fe64d*=Math['sign'](_0x3fe64d))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x4c57f4,_0x580037,_0xc92510,_0x554279=[]){const _0x1d65ae='string'==typeof _0x4c57f4?_0xc92510['get'](_0x4c57f4)['constructor']:_0x4c57f4['prototype']['constructor'];if(_0x580037['has'](_0x1d65ae))return _0x580037['get'](_0x1d65ae);_0x580037['set'](_0x1d65ae,!0x0);const _0x4f57eb=[...et,..._0x554279]['map'](_0x24a162=>{if(_0xc92510['has'](_0x24a162))return _0xc92510['get'](_0x24a162)['constructor'];})['filter'](_0x37344e=>_0x37344e);if(_0x1d65ae&&_0x4f57eb['includes'](_0x1d65ae))return _0x580037['set'](_0x1d65ae,!0x1),!0x1;if(!_0x1d65ae['requires'])return _0x580037['set'](_0x1d65ae,!0x0),!0x0;const _0x4a1aad=_0x1d65ae['requires']['every'](_0x3417b3=>ot(_0x3417b3,_0x580037,_0xc92510,_0x554279));return _0x580037['set'](_0x1d65ae,_0x4a1aad),_0x4a1aad;}function Ct(_0x1287f0,_0x1c4d79){const _0x1876cd={};for(const _0x350470 of _0x1287f0['config']['names']())nt['includes'](_0x350470)||(_0x1876cd[_0x350470]=_0x1287f0['config']['get'](_0x350470));const _0x1bf584=_0x1876cd['plugins']||[],_0x89b18a=_0x1287f0['constructor']['builtinPlugins']||[],_0x26c13d=_0x1bf584['length']?_0x1bf584:_0x89b18a,_0x22dbfa=_0x1876cd['extraPlugins']||[];delete _0x1876cd['extraPlugins'];const _0x315240=_0x1876cd['removePlugins']||[];delete _0x1876cd['removePlugins'];const _0x369d4e=_0x1287f0['_context']['config']['get']('plugins')||[],_0x221627=_0x26c13d['concat'](_0x22dbfa)['concat'](_0x369d4e)['map'](_0x355bf3=>'string'==typeof _0x355bf3?_0x89b18a['find'](_0x19d6a8=>_0x19d6a8['pluginName']==_0x355bf3):_0x355bf3)['filter'](_0x5ad68c=>!_0x315240['includes'](_0x5ad68c)&&!_0x315240['includes'](_0x5ad68c['pluginName'])),_0x3f78bb=Array['from'](new Set(_0x221627)),_0x43751f=new Map();return _0x1876cd['plugins']=_0x3f78bb['filter'](_0xea3a72=>ot(_0xea3a72,_0x43751f,_0x1287f0['plugins'],_0x1c4d79)),_0x1876cd;}function xt(_0x31d6e9,_0x2c9132){const _0x3b231f=[];_0x31d6e9['document']['selection']['on']('change:range',()=>{const _0x44865c=function(_0x37ead5,_0x4b6b50){const _0x1cb9d0=[];for(const _0x47b9fc of _0x37ead5['markers']){const _0x3227d9=_0x47b9fc['getRange']();(_0x3227d9['containsPosition'](_0x4b6b50)||_0x3227d9['start']['isEqual'](_0x4b6b50)||_0x3227d9['end']['isEqual'](_0x4b6b50))&&_0x1cb9d0['push'](_0x47b9fc);}return _0x1cb9d0;}(_0x31d6e9,_0x31d6e9['document']['selection']['focus']),_0x35ea1f=[],_0x1fc680=[],_0x1bf6e5=[];for(const _0x22654b of _0x3b231f)_0x44865c['includes'](_0x22654b)||_0x35ea1f['push'](_0x22654b);for(const _0x5e0f04 of _0x44865c)_0x3b231f['includes'](_0x5e0f04)||_0x1fc680['push'](_0x5e0f04),_0x1bf6e5['push'](_0x5e0f04);(_0x35ea1f['length']||_0x1fc680['length'])&&_0x2c9132({'left':_0x35ea1f,'entered':_0x1fc680}),_0x3b231f['length']=0x0,_0x3b231f['push'](..._0x1bf6e5);});}const It='Ctrl+Shift+E';function _t(_0x3bee18,_0x854dde){const _0x4148c2=_0x3bee18['element'];_0x3bee18['keystrokes']['listenTo'](_0x4148c2);for(const _0x254194 of _0x854dde)ro(_0x3bee18,_0x254194);_0x854dde['on']('change',(_0x1eda7b,_0x4a6d9d)=>{for(const _0x14b384 of _0x4a6d9d['removed'])to(_0x3bee18,_0x14b384);for(const _0x25f464 of Array['from'](_0x4a6d9d['added'])['reverse']())ro(_0x3bee18,_0x25f464);}),_0x3bee18['keystrokes']['set']('enter',(_0x1307f9,_0x55cff1)=>{_0x4148c2===_0x1307f9['target']&&(_0x3bee18['focusCycler']['focusFirst'](),_0x55cff1());},{'filter':_0x265ef6=>_0x265ef6['target']===_0x4148c2}),_0x3bee18['keystrokes']['set']('esc',(_0x5c70a9,_0x35c84c)=>{_0x4148c2!==_0x5c70a9['target']?_0x3bee18['focus']():_0x3bee18['fire']('escape'),_0x35c84c();}),_0x3bee18['keystrokes']['set']('arrowdown',(_0x57a3a4,_0x170e62)=>{_0x4148c2===_0x57a3a4['target']&&(_0x3bee18['fire']('arrowdown'),_0x170e62());}),_0x3bee18['keystrokes']['set']('arrowup',(_0x35b870,_0x4dd8e0)=>{_0x4148c2===_0x35b870['target']&&(_0x3bee18['fire']('arrowup'),_0x4dd8e0());});}function ro(_0x5e3fa3,_0x47e679){_0x47e679['isRendered']&&(_0x5e3fa3['focusTracker']['add'](_0x47e679['element']),_0x5e3fa3['keystrokes']['listenTo'](_0x47e679['element']),_0x175030(_0x47e679)&&function(_0x148503,_0x21f964){const _0x5285b7=_0x148503['actions'],_0x29beef=_0x21f964['actions'];for(const _0x2608ff of Object['keys'](_0x5285b7))if(_0x2608ff in _0x29beef&&_0x5285b7[_0x2608ff]!==_0x29beef[_0x2608ff])return!0x1;return!0x0;}(_0x5e3fa3['focusCycler'],_0x47e679['focusCycler'])&&_0x5e3fa3['focusCycler']['chain'](_0x47e679['focusCycler']));}function to(_0x5f0e5a,_0x395c62){_0x5f0e5a['focusTracker']['remove'](_0x395c62['element']),_0x5f0e5a['keystrokes']['stopListening'](_0x395c62['element']),_0x175030(_0x395c62)&&_0x5f0e5a['focusCycler']['unchain'](_0x395c62['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x584d58{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x1ff8f8?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x33a3e5,_0x4cc22c)=>{_0x4cc22c['on']('ready',()=>{this['_integrateEditor'](_0x4cc22c);});});}get['editor'](){if(this['context']instanceof _0x1ff8f8)return this['context'];{const _0x5b2f7a=this['context']['editors']['first'];if(!_0x5b2f7a)throw new _0x51b3b7('documentcompare-no-editor',this);return _0x5b2f7a;}}['getDiff'](_0x4e6115,_0x40f329,_0x5a34f0={'anchor':'main','markDeletions':!0x1}){let _0xbfb628,_0x3ce55e;const _0x4f146e=this['editor'];if('string'==typeof _0x5a34f0['anchor']){const _0x55bbf4=_0x4f146e['model']['document']['getRoot'](_0x5a34f0['anchor']);if(!_0x55bbf4)throw new _0x51b3b7('documentcompare-compare-no-root',this,{'anchor':_0x5a34f0['anchor']});_0xbfb628=_0x55bbf4,_0x3ce55e=_0x4f146e['model']['createPositionAt'](_0x55bbf4,0x0);}else _0xbfb628=_0x5a34f0['anchor']['clone'](),_0x3ce55e=_0x5a34f0['anchor']['clone']();const _0x49aa19=_0x4f146e['data']['parse'](_0x4e6115,_0xbfb628),_0x424445=_0x4f146e['data']['parse'](_0x40f329,_0xbfb628);return new Mt(_0x49aa19,_0x424445,_0x4f146e,{'anchor':_0x3ce55e,'markDeletions':_0x5a34f0['markDeletions']});}['isMarkedRemoveOperation'](_0x2506e2){return'marker'==_0x2506e2['type']&&_0x2506e2['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x568cca){_0x568cca['conversion']['for']('upcast')['add'](_0x57154a=>{_0x57154a['on']('element',(_0x4734eb,_0x142b01,_0x9799f7)=>{if(_0x142b01['modelRange'])for(const _0x5ca008 of _0x142b01['modelRange']['getItems']({'shallow':!0x0})){if(_0x5ca008['is']('$textProxy'))continue;const _0x3a742d=_0x142b01['viewItem']['getAttribute'](Et);_0x3a742d&&_0x9799f7['writer']['setAttribute'](St,_0x3a742d,_0x5ca008);}},{'priority':'lowest'});}),_0x568cca['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x1e3acc,_0x439e0b,_0x365a42,_0x33a0ce){this['_editor']=_0x365a42,this['_markDeletions']=!!_0x33a0ce['markDeletions'],this['_anchor']=_0x33a0ce['anchor'];const _0x19e97a=this['_tokenizeModel'](_0x1e3acc),_0xd10abb=this['_tokenizeModel'](_0x439e0b);this['_diffItems']=this['_diffModelTokens'](_0x19e97a,_0xd10abb),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x1e3acc['markers'],_0x439e0b['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x224cf3=this['_editor']['model']['document'],_0x5d7390=[];let _0x2443cc=_0x224cf3['version'];for(const _0x30a7ce of this['_operationsData'])switch(_0x30a7ce['type']){case'attribute':{const _0xadbe01=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['path']),_0x42c86e=_0xadbe01['getShiftedBy'](_0x30a7ce['howMany']),_0x34e477=new _0xcecd8c(_0xadbe01,_0x42c86e),_0x8f966f=JSON['parse'](_0x30a7ce['oldValue']),_0x39394b=JSON['parse'](_0x30a7ce['newValue']);_0x5d7390['push'](new _0x520c03(_0x34e477,_0x30a7ce['key'],_0x8f966f,_0x39394b,_0x2443cc++));break;}case'insert':{const _0x4ca482=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['path']),_0x534d6a=this['_makeModelFromTokens'](_0x30a7ce['tokens']);_0x5d7390['push'](new _0x417fe6(_0x4ca482,_0x534d6a,_0x2443cc++));break;}case'remove':{const _0x46f08e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['path']),_0x3bd2fb=new _0x59bcba(_0x224cf3['graveyard'],[0x0]);_0x5d7390['push'](new _0x4f3a20(_0x46f08e,_0x30a7ce['howMany'],_0x3bd2fb,_0x2443cc++));break;}case'rename':{const _0x5027c9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['path']);_0x5d7390['push'](new _0x59ca5e(_0x5027c9,_0x30a7ce['oldName'],_0x30a7ce['newName'],_0x2443cc++));break;}case'split':{const _0x27f4ba=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['path']),_0x3b2356=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['path']['slice'](0x0,-0x1));_0x3b2356['offset']++,_0x5d7390['push'](new _0x26eccd(_0x27f4ba,Number['NEGATIVE_INFINITY'],_0x3b2356,null,_0x2443cc++));break;}case'merge':{const _0x30ff7f=_0x30a7ce['path']['slice'](),_0x2099f1=_0x30ff7f['slice'](0x0,-0x1);_0x2099f1[_0x2099f1['length']-0x1]++,_0x2099f1['push'](0x0);const _0x7e65bc=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2099f1),_0x565a11=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30ff7f),_0x3d37af=new _0x59bcba(_0x224cf3['graveyard'],[0x0]);_0x5d7390['push'](new _0x589486(_0x7e65bc,Number['NEGATIVE_INFINITY'],_0x565a11,_0x3d37af,_0x2443cc++));break;}case'marker':case'markedRemove':{let _0x3cc899=null;if(_0x30a7ce['range']){const _0x17af87=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['range']['start']),_0x1d8f47=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['range']['end']);_0x3cc899=new _0xcecd8c(_0x17af87,_0x1d8f47);}const _0x41f823='marker'==_0x30a7ce['type']?_0x30a7ce['name']:'$markedRemove:'+_0x51a914();_0x5d7390['push'](new _0x4f5ce1(_0x41f823,null,_0x3cc899,_0x224cf3['model']['markers'],!0x0,_0x2443cc++));break;}case'unwrap':{const _0x8c9052=_0x30a7ce['path']['slice']();_0x8c9052['push'](0x0);const _0x2a54f6=_0x30a7ce['path']['slice'](),_0x3ff91c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x8c9052),_0x3c6c4f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x2a54f6),_0x2a67c5=new _0x59bcba(_0x224cf3['graveyard'],[0x0]);_0x5d7390['push'](new _0x4f3a20(_0x3ff91c,_0x30a7ce['howMany'],_0x3c6c4f,_0x2443cc++)),_0x5d7390['push'](new _0x4f3a20(_0x3c6c4f['getShiftedBy'](_0x30a7ce['howMany']),0x1,_0x2a67c5,_0x2443cc++));break;}case'wrap':{const _0x4e2eb9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['range']['start']),_0x1be6b3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x30a7ce['range']['end']),_0x42dba1=_0x30a7ce['token']['element']['_clone'](!0x1),_0x1ba6f5=_0x30a7ce['range']['end']['slice']();_0x1ba6f5['push'](0x0);const _0x48e2d0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1ba6f5);_0x5d7390['push'](new _0x417fe6(_0x1be6b3,_0x42dba1,_0x2443cc++)),_0x5d7390['push'](new _0x4f3a20(_0x4e2eb9,_0x1be6b3['offset']-_0x4e2eb9['offset'],_0x48e2d0,_0x2443cc++));break;}}return _0x5d7390;}['_tokenizeModel'](_0x58a257){const _0x57d0c2=[],_0x582a7b=_0xcecd8c['_createIn'](_0x58a257),_0x2857c1=new _0x295b0e({'boundaries':_0x582a7b});let _0x37cb2e='',_0x4f57d5=null;const _0x37fdc2=[''],_0x22ae34=new Map();for(const _0x1dcc38 of _0x2857c1)if('elementStart'==_0x1dcc38['type']||'elementEnd'==_0x1dcc38['type']){let _0x41cf13=_0x37fdc2[0x0];''!==_0x37cb2e&&(_0x57d0c2['push'](...this['_makeTokensFromTextByWords'](_0x37cb2e,_0x4f57d5,_0x41cf13)),_0x37cb2e='');const _0xab6d9e=_0x1dcc38['item'];let _0x5998fb;_0xab6d9e['getAttribute'](St)?_0x5998fb=_0xab6d9e['getAttribute'](St):'elementStart'==_0x1dcc38['type']?(_0x5998fb=_(_0xab6d9e),_0x22ae34['set'](_0xab6d9e,_0x5998fb)):_0x5998fb=_0x22ae34['get'](_0xab6d9e);const _0x359107=this['_getElementCategory'](_0xab6d9e);'solid'==_0x359107&&('elementStart'==_0x1dcc38['type']?(_0x41cf13=_0x5998fb,_0x37fdc2['unshift'](_0x41cf13)):_0x37fdc2['shift']());const _0x41a7e2={'type':'element','element':_0xab6d9e,'elementId':_0x5998fb,'category':_0x359107,'isStart':'elementStart'==_0x1dcc38['type'],'limitId':_0x41cf13};_0x57d0c2['push'](_0x41a7e2);}else''==_0x37cb2e&&(_0x4f57d5=_0x1dcc38['previousPosition']['clone']()),_0x37cb2e+=_0x1dcc38['item']['data'];return''!==_0x37cb2e&&_0x57d0c2['push'](...this['_makeTokensFromTextByWords'](_0x37cb2e,_0x4f57d5,_0x37fdc2[0x0])),_0x57d0c2;}['_makeTokensFromTextByWords'](_0x2a63e8,_0x8acd63,_0x4edd59){const _0x4c134a=_0x2a63e8['matchAll'](/(\s)/g),_0x53c7c1=Array['from'](_0x4c134a)['map'](_0x5c8957=>_0x5c8957['index']);_0x53c7c1['push'](_0x2a63e8['length']),0x0==_0x53c7c1[0x0]&&_0x53c7c1['shift']();const _0xb0221e=[],_0x486e62=_0x8acd63['parent'];let _0x1fb2be=0x0,_0x4d5e64=_0x8acd63['offset'];for(let _0x1fa4cf=0x0;_0x1fa4cf<_0x53c7c1['length'];_0x1fa4cf++)_0xb0221e['push']({'type':'text','data':_0x2a63e8['slice'](_0x1fb2be,_0x53c7c1[_0x1fa4cf]),'parent':_0x486e62,'offset':_0x4d5e64,'limitId':_0x4edd59}),_0x1fb2be=_0x53c7c1[_0x1fa4cf],_0x4d5e64=_0x8acd63['offset']+_0x53c7c1[_0x1fa4cf];return _0xb0221e;}['_getElementCategory'](_0x3aa746){const _0x52339d=this['_editor']['model']['schema'];return _0x52339d['isLimit'](_0x3aa746)||_0x52339d['isContent'](_0x3aa746)||_0x52339d['isInline'](_0x3aa746)?'solid':_0x52339d['isBlock'](_0x3aa746)?'block':'container';}['_diffModelTokens'](_0x1c0103,_0x564003){const _0x282c3a=_0x454c94(_0x1c0103,_0x564003,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x282c3a);const _0xf52912=_0x282c3a['flatMap'](_0xbda18=>{const _0x3336b2=_0xbda18['added']?'added':_0xbda18['removed']?'removed':'unchanged';return _0xbda18['value']['map'](_0x3a26fa=>({'token':_0x3a26fa,'change':_0x3336b2}));});let _0x3cd9de=0x0;for(const _0x36c9a0 of _0xf52912)'added'!=_0x36c9a0['change']&&('unchanged'==_0x36c9a0['change']&&(_0x36c9a0['before']=_0x1c0103[_0x3cd9de]),_0x3cd9de++);return _0xf52912;}['_handleUnclosedBlockOpeningTags'](_0xa90eca){for(let _0x16ca65=0x0;_0x16ca65<_0xa90eca['length']-0x1;_0x16ca65++)if(_0xa90eca[_0x16ca65]['removed']&&_0xa90eca[_0x16ca65+0x1]['added']){const _0x8f42b4=this['_findUnclosedBlockOpeningToken'](_0xa90eca[_0x16ca65]['value']);if(null!==_0x8f42b4){const _0x99c7c9=this['_findUnclosedBlockOpeningToken'](_0xa90eca[_0x16ca65+0x1]['value']),_0x5c1df4=_0xa90eca[_0x16ca65]['value']['splice'](_0x8f42b4),_0x24b4af=_0xa90eca[_0x16ca65+0x1]['value']['splice'](_0x99c7c9),_0xd085d1=[_0x24b4af['shift']()];_0x5c1df4['shift']();const _0x12d930={'value':_0x5c1df4,'removed':!0x0},_0x5e58={'value':_0x24b4af,'added':!0x0},_0x2c4fe0={'value':_0xd085d1};_0xa90eca['splice'](_0x16ca65+0x2,0x0,_0x2c4fe0,_0x12d930,_0x5e58);}}}['_findUnclosedBlockOpeningToken'](_0x3fd9cb){let _0x1e4bd6=0x0,_0x37d686=-0x1;for(let _0x31872f=0x0;_0x31872f<_0x3fd9cb['length'];_0x31872f++){const _0x1c80d3=_0x3fd9cb[_0x31872f];'element'==_0x1c80d3['type']&&'block'==_0x1c80d3['category']&&(_0x1e4bd6+=_0x1c80d3['isStart']?0x1:-0x1,_0x1c80d3['isStart']&&(_0x37d686=_0x31872f));}return 0x0===_0x1e4bd6?null:_0x37d686;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x3208c6=0x0;_0x3208c6<this['_diffItems']['length'];_0x3208c6++){const _0x247724=this['_diffItems'][_0x3208c6]['change'],_0xac54d=[];_0xac54d['push'](this['_diffItems'][_0x3208c6]);let _0x2f374c=_0x3208c6+0x1;for(;this['_diffItems'][_0x2f374c]&&this['_diffItems'][_0x2f374c]['change']==_0x247724;)_0xac54d['push'](this['_diffItems'][_0x2f374c]),_0x2f374c++,_0x3208c6++;const _0x35dff9=_0xac54d['map'](_0x1b5f62=>_0x1b5f62['token']);if('unchanged'==_0x247724)_0xac54d['map'](_0xfdb405=>_0xfdb405['before'])['forEach'](_0x711ee8=>this['_traverseOverItem'](_0x711ee8));else{if('removed'==_0x247724){if(this['_markDeletions']){const _0x38911c=this['_path']['slice']();_0x35dff9['forEach'](_0x2b1563=>this['_traverseOverItem'](_0x2b1563));const _0x5db745=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x38911c,'end':_0x5db745}});}else this['_handleChanged'](_0x35dff9,!0x0,this['_path']['slice']());}else{const _0x5aedf2=_0x35dff9['filter'](_0x1aaf5c=>'element'!=_0x1aaf5c['type']||'container'!=_0x1aaf5c['category']);this['_handleChanged'](_0x5aedf2,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x53ad73=0x0;_0x53ad73<this['_diffItems']['length'];_0x53ad73++){const _0x443ae9=this['_diffItems'][_0x53ad73]['change'],_0x59fdb8=[];_0x59fdb8['push'](this['_diffItems'][_0x53ad73]);let _0xdafece=_0x53ad73+0x1;for(;this['_diffItems'][_0xdafece]&&this['_diffItems'][_0xdafece]['change']==_0x443ae9;)_0x59fdb8['push'](this['_diffItems'][_0xdafece]),_0xdafece++,_0x53ad73++;const _0x48fe00=_0x59fdb8['map'](_0x27dfb7=>_0x27dfb7['token']);if('unchanged'==_0x443ae9){const _0x1cb560=_0x59fdb8['map'](_0x7b0d55=>_0x7b0d55['before']);this['_handleUnchanged'](_0x1cb560,_0x48fe00);}else('removed'!=_0x443ae9||this['_markDeletions'])&&_0x48fe00['forEach'](_0x786e88=>{this['_traverseOverItem'](_0x786e88);});}}['_calculateMarkersOperationsData'](_0x58addd,_0x2be745){const _0x10339b={};for(const [_0x2a3c4e]of _0x58addd)_0x10339b[_0x2a3c4e]=null;for(const [_0x287af3,_0x4c6312]of _0x2be745)_0x10339b[_0x287af3]=_0x4c6312;const _0x28fe29=Object['entries'](_0x10339b)['map'](([_0x47d5df,_0x37948b])=>({'type':'marker','name':_0x47d5df,'range':_0x37948b?{'start':_0x37948b['start']['path']['slice'](),'end':_0x37948b['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x28fe29);}['_handleUnwraps'](){const _0x5d1681=new Map(),_0x4a1444=[],_0x5285cc=[0x0];let _0x378ee5=this['_diffItems']['length']+0x1;for(let _0x4d0485=this['_diffItems']['length']-0x1;_0x4d0485>=0x0;_0x4d0485--){const {token:_0x8190a7,before:_0x36e424,change:_0x549652}=this['_diffItems'][_0x4d0485];if('removed'!=_0x549652&&(_0x378ee5=_0x4d0485),'element'!=_0x8190a7['type']||'container'!=_0x8190a7['category']||'added'==_0x549652)continue;const _0x1e0317=_0x36e424?_0x36e424['element']:_0x8190a7['element'];if(_0x8190a7['isStart']){const _0x4abe12=_0x5d1681['get'](_0x1e0317),_0x1b729a=this['_diffItems'][_0x4abe12];('removed'==_0x549652||'removed'==_0x1b729a['change'])&&_0x378ee5<_0x4abe12&&(this['_operationsData']['push']({'type':'unwrap','path':_0x1e0317['getPath'](),'howMany':_0x1e0317['maxOffset']+_0x5285cc[0x0]}),_0x5285cc['shift'](),_0x5285cc[0x0]+=_0x1e0317['maxOffset']-0x1,_0x4a1444['push'](_0x4d0485),_0x4a1444['push'](_0x4abe12));}else _0x5d1681['set'](_0x1e0317,_0x4d0485),_0x5285cc['unshift'](0x0);}_0x4a1444['sort']((_0x43cbe7,_0x598784)=>_0x598784-_0x43cbe7),_0x4a1444['forEach'](_0x359469=>{const _0x1f0a9f=this['_diffItems'][_0x359469];'removed'==_0x1f0a9f['change']?this['_diffItems']['splice'](_0x359469,0x1):(_0x1f0a9f['change']='added',delete _0x1f0a9f['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x26bdf8=[];for(let _0x4140cb=0x0;_0x4140cb<this['_diffItems']['length'];_0x4140cb++){const {change:_0x4b58ad,token:_0x531901}=this['_diffItems'][_0x4140cb];if('added'==_0x4b58ad&&'element'==_0x531901['type']&&'container'==_0x531901['category']){if(_0x531901['isStart'])_0x26bdf8['push'](this['_path']['slice']());else{if(!_0x531901['isStart']){const _0x45ea81=_0x26bdf8['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x45ea81,'end':this['_path']['slice']()},'token':_0x531901}),this['_path'][this['_path']['length']-0x1]=_0x45ea81[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x4b58ad||this['_markDeletions'])&&this['_traverseOverItem'](_0x531901);}}['_handleUnchanged'](_0x3fe6db,_0x3fc271){for(let _0x345c65=0x0;_0x345c65<_0x3fe6db['length'];_0x345c65++){const _0x5e0c07=_0x3fe6db[_0x345c65];if('element'==_0x5e0c07['type']&&_0x5e0c07['isStart']){const _0x441a8e=_0x3fc271[_0x345c65];'block'==_0x5e0c07['category']&&this['_handleElementRename'](_0x5e0c07['element'],_0x441a8e['element'],this['_path']),this['_handleElementAttributeChanges'](_0x5e0c07['element'],_0x441a8e['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x441a8e);}else{if('element'!=_0x5e0c07['type']||_0x5e0c07['isStart']){if('text'==_0x5e0c07['type']){const _0x238fdc=this['_path']['slice'](),_0x1a4b33=[],_0x3f5307=[];for(;_0x3fe6db[_0x345c65]&&'text'==_0x3fe6db[_0x345c65]['type'];)_0x1a4b33['push'](_0x3fe6db[_0x345c65]),_0x3f5307['push'](_0x3fc271[_0x345c65]),this['_path'][this['_path']['length']-0x1]+=_0x3fe6db[_0x345c65]['data']['length'],_0x345c65++;_0x345c65--,this['_handleTextAttributeChanges'](_0x1a4b33,_0x3f5307,_0x238fdc);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x1b23f4,_0x18e96c,_0x17d867){const _0x568634=[],_0x3afdee=[],_0x4211a4=_0x17d867['slice']();for(let _0x6cda9=0x0;_0x6cda9<_0x1b23f4['length'];_0x6cda9++){const _0x143bee=_0x1b23f4[_0x6cda9],_0x588165=_0x17d867['slice']();if('element'!=_0x143bee['type']||_0x143bee['isStart'])'element'==_0x143bee['type']&&_0x143bee['isStart']?(_0x17d867['push'](0x0),_0x18e96c||this['_parents']['push'](_0x143bee),_0x3afdee['push']({'before':_0x588165,'after':_0x17d867['slice'](),'index':_0x6cda9})):_0x17d867[_0x17d867['length']-0x1]+=_0x143bee['data']['length'];else{let _0x1b1f12;_0x17d867['pop'](),_0x17d867[_0x17d867['length']-0x1]++,_0x1b1f12=_0x18e96c?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x3afdee['length']?_0x3afdee['pop']():_0x568634['push']({'before':_0x588165,'after':_0x17d867['slice'](),'index':_0x6cda9,'related':_0x1b1f12});}}if(_0x3afdee['length']!==_0x568634['length'])throw new _0x51b3b7('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x1b23f4,'isRemove':_0x18e96c});const _0x134d4f=[{'after':_0x4211a4['slice'](),'index':-0x1},..._0x568634,..._0x3afdee,{'before':_0x17d867['slice'](),'index':_0x1b23f4['length']}];if(_0x18e96c){for(let _0x1d422d=_0x134d4f['length']-0x1;_0x1d422d>=0x1;_0x1d422d--){const _0xae0916=_0x134d4f[_0x1d422d-0x1]['after'],_0xb1ff9b=_0x134d4f[_0x1d422d]['before'],_0x2d559c=_0xb1ff9b[_0xb1ff9b['length']-0x1]-_0xae0916[_0xae0916['length']-0x1];_0x2d559c&&(this['_operationsData']['push']({'type':'remove','path':_0xae0916,'howMany':_0x2d559c}),_0xb1ff9b[_0xb1ff9b['length']-0x1]-=_0x2d559c);}for(const {before:_0x1e7f6b}of _0x568634)this['_operationsData']['push']({'type':'merge','path':_0x1e7f6b});}else for(let _0x288809=0x0;_0x288809<_0x134d4f['length']-0x1;_0x288809++){const _0x4fbafa=_0x134d4f[_0x288809]['after'],_0x32d809=_0x134d4f[_0x288809+0x1]['before'],_0x5a4e26=_0x134d4f[_0x288809]['index']+0x1,_0x54692b=_0x134d4f[_0x288809+0x1]['index'];if(_0x5a4e26!==_0x54692b&&this['_operationsData']['push']({'type':'insert','path':_0x4fbafa,'tokens':_0x1b23f4['slice'](_0x5a4e26,_0x54692b)}),_0x288809<_0x568634['length']){this['_operationsData']['push']({'type':'split','path':_0x32d809});const _0x3431d9=_0x1b23f4[_0x3afdee[_0x3afdee['length']-0x1-_0x288809]['index']],_0x568702=_0x568634[_0x288809]['after'],_0x48ae93=_0x568634[_0x288809]['related']['element'];this['_handleElementRename'](_0x48ae93,_0x3431d9['element'],_0x568702),this['_handleElementAttributeChanges'](_0x48ae93,_0x3431d9['element'],_0x568702);}}}['_traverseOverItem'](_0x3b88e8){'element'==_0x3b88e8['type']&&_0x3b88e8['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x3b88e8)):'element'!=_0x3b88e8['type']||_0x3b88e8['isStart']?'text'==_0x3b88e8['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x3b88e8['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x1e0354,_0x47a2d5,_0xa3ef19){_0x1e0354['name']!=_0x47a2d5['name']&&this['_operationsData']['push']({'type':'rename','path':_0xa3ef19['slice'](),'oldName':_0x1e0354['name'],'newName':_0x47a2d5['name']});}['_handleElementAttributeChanges'](_0x1dbe4c,_0x341155,_0xcffd42){const _0x200d1c=this['_getAttributeChanges'](_0x1dbe4c['getAttributes'](),_0x341155['getAttributes']());for(const _0x1c2449 in _0x200d1c){const {oldValue:_0x28b43c,newValue:_0x2ad6bf}=_0x200d1c[_0x1c2449];this['_operationsData']['push']({'type':'attribute','path':_0xcffd42['slice'](),'howMany':0x1,'key':_0x1c2449,'oldValue':_0x28b43c,'newValue':_0x2ad6bf});}}['_handleTextAttributeChanges'](_0x4b5db3,_0xe1104f,_0x115537){const _0x5ea14a=this['_operationsData'],_0x2e73ad=_0x4b5db3[0x0]['parent'],_0x36f11a=_0x4b5db3[0x0]['offset'],_0x512146=_0xe1104f[0x0]['parent'],_0x45f8d1=_0xe1104f[0x0]['offset'],_0x3ae7bc=_0x4b5db3['reduce']((_0x5229dd,_0x16a7a7)=>_0x5229dd+_0x16a7a7['data']['length'],0x0),_0x5cd382=this['_getAttrsForOffsets'](_0x2e73ad,_0x36f11a,_0x3ae7bc),_0x5052ef=this['_getAttrsForOffsets'](_0x512146,_0x45f8d1,_0x3ae7bc),_0x1b1f05={};for(let _0x2c455c=0x0;_0x2c455c<_0x3ae7bc;_0x2c455c++){const _0x2dcfe0=_0x5cd382[_0x36f11a+_0x2c455c],_0x1bb2a7=_0x5052ef[_0x45f8d1+_0x2c455c],_0x89a78f=this['_getAttributeChanges'](_0x2dcfe0,_0x1bb2a7);for(const _0x360eed in _0x1b1f05)_0x89a78f[_0x360eed]||_0x29b728(_0x360eed);for(const _0x4f5eb0 in _0x89a78f){const {oldValue:_0x874a93,newValue:_0x4386ef}=_0x89a78f[_0x4f5eb0],_0xeb8db3=_0x1b1f05[_0x4f5eb0];_0xeb8db3?_0xeb8db3['oldValue']==_0x874a93&&_0xeb8db3['newValue']==_0x4386ef?_0xeb8db3['length']++:(_0x29b728(_0x4f5eb0),_0x1b1f05[_0x4f5eb0]={'oldValue':_0x874a93,'newValue':_0x4386ef,'start':_0x2c455c,'length':0x1}):_0x1b1f05[_0x4f5eb0]={'oldValue':_0x874a93,'newValue':_0x4386ef,'start':_0x2c455c,'length':0x1};}}for(const _0x7dd72a in _0x1b1f05)_0x29b728(_0x7dd72a);function _0x29b728(_0x1801e5){const _0x572f1a=_0x1b1f05[_0x1801e5],_0x5df261=_0x115537['slice']();_0x5df261[_0x5df261['length']-0x1]+=_0x572f1a['start'],_0x5ea14a['push']({'type':'attribute','path':_0x5df261,'howMany':_0x572f1a['length'],'key':_0x1801e5,'oldValue':_0x572f1a['oldValue'],'newValue':_0x572f1a['newValue']}),delete _0x1b1f05[_0x1801e5];}}['_getAttributeChanges'](_0x29083c,_0x561ec2){const _0x44b5b3={};for(const [_0x4eea2b,_0x2e0ccd]of _0x29083c)_0x44b5b3[_0x4eea2b]={'oldValue':JSON['stringify'](_0x2e0ccd),'newValue':'null'};for(const [_0x275e99,_0xf010da]of _0x561ec2){const _0x5f2606=JSON['stringify'](_0xf010da);_0x44b5b3[_0x275e99]?_0x44b5b3[_0x275e99]['oldValue']==_0x5f2606?delete _0x44b5b3[_0x275e99]:_0x44b5b3[_0x275e99]['newValue']=_0x5f2606:_0x44b5b3[_0x275e99]={'oldValue':'null','newValue':_0x5f2606};}return delete _0x44b5b3[St],_0x44b5b3;}['_getAttrsForOffsets'](_0x2e9f35,_0x2372e7,_0x7bad68){const _0x578ce9=new Array(_0x2372e7+_0x7bad68);let _0x52bde0=_0x2e9f35['getChildAtOffset'](_0x2372e7),_0x5a3c96=_0x52bde0['startOffset'];for(;_0x52bde0&&_0x5a3c96<_0x2372e7+_0x7bad68;){const _0x28fb6a=Array['from'](_0x52bde0['getAttributes']());_0x578ce9['fill'](_0x28fb6a,_0x5a3c96,_0x5a3c96+_0x52bde0['offsetSize']),_0x5a3c96+=_0x52bde0['offsetSize'],_0x52bde0=_0x52bde0['nextSibling'];}return _0x578ce9;}['_getPositionFromAnchorAndPath'](_0x492e86,_0x37fe99){const _0x72456b=[..._0x492e86['path']['slice'](0x0,-0x1),_0x492e86['offset']+_0x37fe99[0x0],..._0x37fe99['slice'](0x1)];return new _0x59bcba(_0x492e86['root'],_0x72456b);}['_makeModelFromTokens'](_0x42d354){const _0x568c47=[];let _0x477937=null;for(const _0x253dec of _0x42d354)if('element'!=_0x253dec['type']||_0x253dec['isStart']||_0x477937!=_0x253dec['element']){if(!_0x477937){if('text'==_0x253dec['type']){const _0x15c3e6=_0x59bcba['_createAt'](_0x253dec['parent'],_0x253dec['offset']),_0x5cfcf9=_0xcecd8c['_createFromPositionAndShift'](_0x15c3e6,_0x253dec['data']['length']),_0x462f70=Array['from'](_0x5cfcf9['getItems']())['map'](_0x1abfdb=>new _0x1d2191(_0x1abfdb['data'],_0x1abfdb['getAttributes']()));_0x568c47['push'](..._0x462f70);}else{_0x477937=_0x253dec['element'];const _0xd762df=_0x253dec['element']['_clone'](!0x0);_0xd762df['_removeAttribute'](St);for(const _0x114d08 of this['_editor']['model']['createRangeIn'](_0xd762df)['getItems']())_0x114d08['is']('element')&&_0x114d08['_removeAttribute'](St);_0x568c47['push'](_0xd762df);}}}else _0x477937=null;return _0x568c47;}}function g(_0x3be054,_0xf50b31){return _0x3be054['type']===_0xf50b31['type']&&(_0x3be054['limitId']===_0xf50b31['limitId']&&('text'==_0x3be054['type']?_0x3be054['data']==_0xf50b31['data']:function(_0x8e2c9b,_0x1d544){if(_0x8e2c9b['isStart']!=_0x1d544['isStart'])return!0x1;if(_0x8e2c9b['isStart']&&_0x8e2c9b['elementId']!=_0x1d544['elementId'])return!0x1;if(_0x8e2c9b['category']!=_0x1d544['category'])return!0x1;if('block'==_0x8e2c9b['category'])return!0x0;if('container'==_0x8e2c9b['category']&&_0x8e2c9b['elementId']!=_0x1d544['elementId'])return!0x1;return _0x8e2c9b['element']['name']==_0x1d544['element']['name'];}(_0x3be054,_0xf50b31)));}function _(_0x4570dd){return k({'name':_0x4570dd['name'],...Object['fromEntries'](_0x4570dd['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,It 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,_t as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,xt as surroundingMarkersDetector,bt as trimHtml};
23
+ import{ContextPlugin as _0x512ba5,Editor as _0x3da78b,Plugin as _0x315289}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x17c3db,Collection as _0x109ed9,uid as _0x8c78d7,toArray as rt,first as _0x25fabb,FocusTracker as _0x4e0614,KeystrokeHandler as _0x4f4e17}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x19814a,IconView as st,ButtonView as ts,DropdownButtonView as _0x269440,FocusCycler as _0x3b0d4e,isViewWithFocusCycler as _0x514d7b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as it,IconCheck as _0x59568d,IconCancel as _0x131771}from'@ckeditor/ckeditor5-icons/dist/index.js';import{setHighlightHandling as at,toWidget as _0x4943bb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{DateTime as tt}from'luxon';import{InsertOperation as _0x5886ed,MoveOperation as _0x1771cd,ModelPosition as _0x2a14a8,ModelRange as _0x4fb0d8,MarkerOperation as _0x4d4c0f,MergeOperation as _0x445c15,SplitOperation as _0x464059,RenameOperation as _0x353951,AttributeOperation as _0x151896,ModelTreeWalker as _0xdb1884,ModelText as _0x4e89dd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diffArrays as _0xdb167f}from'diff';class C extends _0x512ba5{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x355149,_0x15f5a4){let _0x397021;if(_0x15f5a4||(_0x15f5a4=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x15f5a4?_0x397021=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x397021=this['context']['editors']['find'](_0x1e9468=>_0x1e9468['config']['get']('collaboration.channelId')==_0x15f5a4)),!_0x397021)throw new _0x17c3db('permissions-set-permissions-invalid-channel-id',null);const _0x49f0d0=_0x397021['plugins'],_0x5828bf=_0x49f0d0['has']('CommentsRepository')?_0x49f0d0['get']('CommentsRepository'):void 0x0,_0x40c427=_0x49f0d0['has']('CommentsOnly')&&_0x49f0d0['get']('CommentsOnly'),_0x233927=_0x355149['includes']('document:write'),_0x3b034a=_0x355149['includes']('comment:modify_all'),_0x28b6d3=_0x355149['includes']('comment:admin'),_0x903ec6=_0x355149['includes']('comment:write'),_0x51a8d6=_0x903ec6||_0x28b6d3,_0x42ec20=_0x51a8d6||_0x3b034a,_0x3831ad=_0x233927||_0x51a8d6;(_0x40c427&&(_0x40c427['isEnabled']=!_0x233927&&_0x42ec20),_0x397021 instanceof _0x3da78b)&&(!(_0x233927||_0x42ec20&&_0x5828bf)?_0x397021['enableReadOnlyMode']('no-permissions'):_0x397021['disableReadOnlyMode']('no-permissions'));if(_0x5828bf){_0x5828bf['setPermissions']({'admin':_0x28b6d3,'modifyAll':_0x3b034a,'write':_0x903ec6,'resolve':_0x3831ad},_0x15f5a4);const _0x2e9bc5=_0x397021 instanceof _0x3da78b&&_0x397021['commands']['get']('addCommentThread');_0x2e9bc5&&(_0x51a8d6?_0x2e9bc5['clearForceDisabled']('noPermissions'):_0x2e9bc5['forceDisabled']('noPermissions'));}}}function U(_0x1e9428,_0x59f369){const t=_0x1e9428['t'];switch(_0x59f369){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 _0x512ba5{['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(_0x19ddce){super(_0x19ddce),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x109ed9(),this['_locale']=_0x19ddce['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:_0x139798,name:_0x4e0171,..._0x32b558}){if(!_0x139798||'string'!=typeof _0x139798)throw new _0x17c3db('users-add-invalid-id');if(this['users']['has'](_0x139798))throw new _0x17c3db('users-add-duplicated-id',null,{'id':_0x139798});const _0x23a573=this['context']['config']['get']('users.getInitialsCallback'),_0x4d8904={..._0x32b558,'id':_0x139798,'name':A(this['_locale'],_0x4e0171),'color':this['_getNextColor']()};_0x4d8904['name']=A(this['_locale'],_0x4d8904['name']);const _0x47e93a=new lt(_0x4d8904,_0x23a573);return this['users']['add'](_0x47e93a),_0x47e93a;}['getUser'](_0x1c0744){return this['users']['get'](_0x1c0744);}['useAnonymousUser'](){const _0x4dde4d=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x4dde4d);}['defineMe'](_0xe66e22){if(this['_myId'])throw new _0x17c3db('users-me-already-defined',null);const _0x36bec7=this['getUser'](_0xe66e22);if(!_0x36bec7)throw new _0x17c3db('users-me-missing-user',null);this['_myId']=_0xe66e22,_0x36bec7['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x146bce=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x146bce&&(this['_lastColor']=0x0),new ut(this['_lastColor']++);}['_addAnonymousUser'](){const _0x4ee522=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x4ee522,'name':U(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class lt{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x59b601,_0x5223fc){this['id']=_0x59b601['id'],this['color']=_0x59b601['color'],this['name']=_0x59b601['name'],this['initials']=_0x5223fc?_0x5223fc(this['name']):this['_computeInitials'](),this['avatar']=_0x59b601['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x21a081=this['name']['split']('\x20')['filter'](_0x3c3a55=>/^[\p{Letter}]/u['test'](_0x3c3a55));return 0x1===_0x21a081['length']?this['_getInitial'](_0x21a081[0x0]):0x0===_0x21a081['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x21a081[0x0])+this['_getInitial'](_0x21a081[_0x21a081['length']-0x1]);}['_getInitial'](_0x52979c){return String['fromCodePoint'](_0x52979c['codePointAt'](0x0))['toUpperCase']();}}function A(_0x213e4d,_0x586f0c=''){return''==(_0x586f0c=_0x586f0c['trim']())?U(_0x213e4d,'Anonymous'):_0x586f0c;}class ut{['_id'];constructor(_0x329251){this['_id']=_0x329251;}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 _0x19814a{['name'];['notificationView'];constructor(_0x3bdf97,_0x1beabd,_0x102057){super(_0x3bdf97),this['name']=_0x1beabd['name'],this['notificationView']=null;const _0xc5da=['ck','ck-user'],_0x3fd14a=['ck','ck-user__img'];if(_0x1beabd['isAnonymous']&&_0x3fd14a['push']('ck-user__anonymous'),!_0x1beabd['isAnonymous']&&_0x1beabd['isMe']&&_0xc5da['push']('ck-user_me'),_0x1beabd['avatar']&&_0x3fd14a['push']('ck-user__avatar'),_0x102057){const _0x1ad01b=new st();_0x1ad01b['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1ad01b['content']=it,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x102057},'children':[_0x1ad01b]};}const _0x27aa9a=[{'tag':'div','attributes':{'class':_0x3fd14a,'style':{'background-image':_0x1beabd['avatar']?'url(\x27'+_0x1beabd['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x1beabd['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x1beabd['name']},'children':[{'text':_0x1beabd['initials']}]}];this['notificationView']&&_0x27aa9a['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0xc5da,'data-user-id':_0x1beabd['id']},'children':_0x27aa9a});}}class dt extends _0x19814a{['id'];constructor(_0x522ddf,_0x1273eb){super(_0x522ddf),this['id']='ck-aria-description-'+_0x8c78d7(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x1273eb}]});}}class ft extends ts{['render'](){super['render'](),re(this);}}class gt extends _0x269440{['render'](){super['render'](),re(this);}}function re(_0x448ef3){_0x448ef3['listenTo'](_0x448ef3['element'],'mousedown',(_0x4542b9,_0x552088)=>{_0x552088['stopPropagation'](),_0x552088['preventDefault']();}),_0x448ef3['listenTo'](_0x448ef3['element'],'mouseup',()=>{_0x448ef3['element']['focus']();});}function v(_0x4d4c68){const _0x32145c=_0x4d4c68['split'](':');return{'group':_0x32145c[0x0],'type':_0x32145c[0x1],'subType':_0x32145c['length']>=0x5?_0x32145c[0x2]:null,'id':_0x32145c['length']<0x5?_0x32145c[0x2]:_0x32145c[0x3],'authorId':_0x32145c['length']<0x5?_0x32145c[0x3]:_0x32145c[0x4],'markerCount':0x6==_0x32145c['length']?_0x32145c[0x5]:null};}function mt(_0x38aafa,_0x19f64f){const _0x448bfb=_0x38aafa['end']['nodeBefore'];if(_0x448bfb&&_0x448bfb['is']('element')&&_0x19f64f['schema']['isBlock'](_0x448bfb)&&!_0x19f64f['schema']['isObject'](_0x448bfb)){const _0x590d4e=_0x19f64f['createPositionAt'](_0x448bfb,'end');return _0x19f64f['createRange'](_0x38aafa['start'],_0x590d4e);}return _0x38aafa;}class M extends _0x315289{['afterInit'](){const _0x22d069=this['editor'];if(!_0x22d069['plugins']['has']('AlignmentEditing'))return;_0x22d069['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const ii=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class D extends _0x315289{['afterInit'](){const _0x123597=this['editor'],_0x4c3dc4=_0x123597['plugins']['get']('SuggestionsConversion');for(const _0x437285 of ii){if(!_0x123597['plugins']['has'](_0x437285))continue;const _0x28f6e5=_0x437285['slice'](0x0,-0x7)['toLowerCase']();_0x4c3dc4['registerInlineAttribute'](_0x28f6e5);}}}class I extends _0x315289{['afterInit'](){const _0x22e941=this['editor'],_0x5ad0a9=_0x22e941['plugins']['get']('SuggestionsConversion');_0x22e941['plugins']['has']('BookmarkEditing')&&_0x5ad0a9['registerBlockAttribute']('bookmarkId');}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class B extends _0x315289{['afterInit'](){const _0xda2349=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x23024f,commandName:_0x54cce8}of no)this['editor']['plugins']['has'](_0x23024f)&&_0xda2349['registerInlineAttribute'](_0x54cce8);}}class T extends _0x315289{['afterInit'](){const {editor:_0x420255}=this;if(!_0x420255['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x201292=_0x420255['plugins']['get']('SuggestionsConversion');_0x201292['registerBlockAttribute']('footnotesListStyle'),_0x201292['registerBlockAttribute']('footnotesListStart');}}class E extends _0x315289{['afterInit'](){const _0x4239b4=this['editor'];if(!_0x4239b4['plugins']['has']('HighlightEditing'))return;_0x4239b4['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class S extends _0x315289{['afterInit'](){const _0x5c2bd6=this['editor'];if(!_0x5c2bd6['plugins']['has']('HtmlEmbed'))return;_0x5c2bd6['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class $ extends _0x315289{['afterInit'](){const _0x2b7f86=this['editor'];if(!_0x2b7f86['plugins']['has']('ImageEditing'))return;const _0x541b8f=_0x2b7f86['plugins']['get']('SuggestionsConversion');_0x541b8f['registerBlockAttribute']('src'),_0x2b7f86['plugins']['has']('ImageResize')&&_0x541b8f['registerBlockAttribute']('resizedWidth'),_0x2b7f86['plugins']['has']('ImageTextAlternativeEditing')&&_0x541b8f['registerBlockAttribute']('alt'),_0x2b7f86['plugins']['has']('PictureEditing')&&_0x541b8f['registerBlockAttribute']('sources'),_0x2b7f86['plugins']['has']('ImageSizeAttributes')&&(_0x541b8f['registerBlockAttribute']('width'),_0x541b8f['registerBlockAttribute']('height'));}}class x extends _0x315289{['afterInit'](){const _0x31e83c=this['editor'],_0x56f72a=_0x31e83c['plugins']['get']('SuggestionsConversion');_0x31e83c['plugins']['has']('IndentBlock')&&(_0x56f72a['registerBlockAttribute']('blockIndent'),_0x31e83c['plugins']['has']('ListEditing')&&(_0x56f72a['registerBlockAttribute']('blockIndentList'),_0x56f72a['registerBlockAttribute']('blockIndentListItem')));}}class H extends _0x315289{['afterInit'](){const _0x475e53=this['editor'];if(!_0x475e53['plugins']['has']('LineHeight'))return;_0x475e53['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class N extends _0x315289{['afterInit'](){const _0x394936=this['editor'];if(!_0x394936['plugins']['has']('LinkEditing'))return;const _0x12ad23=_0x394936['plugins']['get']('SuggestionsConversion'),_0x34ce89=_0x394936['commands']['get']('link');_0x12ad23['registerInlineAttribute']('linkHref');for(const _0x266871 of _0x34ce89['manualDecorators'])_0x12ad23['registerInlineAttribute'](_0x266871['id']);}}class P extends _0x315289{['afterInit'](){const _0x3439b5=this['editor'];if(!_0x3439b5['plugins']['has']('ListEditing'))return;const _0x3b10eb=_0x3439b5['plugins']['get']('SuggestionsConversion'),_0x328006=_0x3439b5['plugins']['has']('TodoListEditing');_0x3b10eb['registerBlockAttribute']('listItemId'),_0x3b10eb['registerBlockAttribute']('listType'),_0x3b10eb['registerBlockAttribute']('listIndent'),_0x328006&&_0x3b10eb['registerBlockAttribute']('todoListChecked');}}class K extends _0x315289{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc4fbd6=this['editor']['config']['get']('list.properties'),_0x4bf40f=this['editor']['plugins']['get']('SuggestionsConversion');_0xc4fbd6['styles']&&_0x4bf40f['registerBlockAttribute']('listStyle'),_0xc4fbd6['reversed']&&_0x4bf40f['registerBlockAttribute']('listReversed'),_0xc4fbd6['startIndex']&&_0x4bf40f['registerBlockAttribute']('listStart');}}class q extends _0x315289{['afterInit'](){const _0xe57af2=this['editor'],_0x3d35a2=_0xe57af2['plugins']['get']('SuggestionsConversion');_0xe57af2['plugins']['has']('MultiLevelList')&&_0x3d35a2['registerBlockAttribute']('listMarkerStyle');}}class z extends _0x315289{['afterInit'](){const _0x4833ad=this['editor'];if(!_0x4833ad['plugins']['has']('Style')||!_0x4833ad['plugins']['has']('DataSchema')||!_0x4833ad['config']['get']('style.definitions'))return;const _0x254479=_0x4833ad['plugins']['get']('SuggestionsConversion'),_0x23b8b2=_0x4833ad['config']['get']('style.definitions'),_0x159aa4=_0x4833ad['plugins']['get']('GeneralHtmlSupport'),_0x33294c=_0x4833ad['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4833ad['plugins']['get']('DataSchema'),_0x23b8b2),_0x4c0b6f=new Set();for(const _0x413aa4 of _0x33294c['block']){const _0x302c84=_0x159aa4['getGhsAttributeNameForElement'](_0x413aa4['element']);_0x4c0b6f['add'](_0x302c84);}const _0x56e41e=new Set();for(const _0x3239dd of _0x33294c['inline']){const _0x51b139=_0x159aa4['getGhsAttributeNameForElement'](_0x3239dd['element']);_0x56e41e['add'](_0x51b139);for(const _0xadc4cf of _0x3239dd['ghsAttributes'])_0x56e41e['add'](_0xadc4cf);}for(const _0x427dde of _0x4c0b6f)_0x254479['registerBlockAttribute'](_0x427dde);for(const _0x4aa320 of _0x56e41e)_0x254479['registerInlineAttribute'](_0x4aa320);}}class O extends _0x315289{['afterInit'](){const _0x5cfae3=this['editor'];if(!_0x5cfae3['plugins']['has']('TableEditing'))return;const _0x159e62=_0x5cfae3['plugins']['get']('SuggestionsConversion');_0x159e62['registerBlockAttribute']('headingRows'),_0x159e62['registerBlockAttribute']('headingColumns');}}class R extends _0x315289{['afterInit'](){const {plugins:_0x4d7053}=this['editor'];if(!_0x4d7053['has']('TablePropertiesEditing'))return;const _0x17ccd2=_0x4d7053['get']('SuggestionsConversion'),_0x5bab96=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x1654b6 of _0x5bab96)_0x17ccd2['registerBlockAttribute'](_0x1654b6);}}class F extends _0x315289{['afterInit'](){const _0x1a6488=this['editor'],_0x1f2b0a=_0x1a6488['plugins']['get']('SuggestionsConversion');_0x1a6488['plugins']['has']('TableLayout')&&_0x1f2b0a['registerBlockAttribute']('tableType');}}class G extends _0x315289{['afterInit'](){const _0x339ca0=this['editor'],_0x37d1df=this['editor']['plugins']['get']('SuggestionsConversion');_0x339ca0['plugins']['has']('Uploadcare')&&_0x339ca0['plugins']['has']('UploadcareImageEdit')&&_0x37d1df['registerBlockAttribute']('uploadcareImageId');}}class J extends _0x315289{['afterInit'](){const _0x4efe05=this['editor'];if(!_0x4efe05['plugins']['has']('ShiftEnter'))return;const _0x2f68e5=_0x4efe05['plugins']['get']('SuggestionsConversion'),_0x3d4c25=(_0x257b29,_0x574391,_0x210d3b,_0x5f2f90)=>{if(_0x5f2f90&&!_0x210d3b['options']['showSuggestionHighlights'])return;if(!_0x210d3b['consumable']['test'](_0x574391['markerRange'],_0x257b29['name']))return;const _0x5276d3=_0x4efe05['model'];for(const _0x2f7c8e of _0x574391['markerRange']['getItems']()){if(!_0x2f7c8e['is']('element','softBreak'))continue;const _0x43f916='deletion'==_0x574391['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xa469d0,authorId:_0x173001}=v(_0x574391['markerName']),_0x3637b3=_0x210d3b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x43f916,'data-suggestion':_0xa469d0,'data-author-id':_0x173001}),_0x3a5d65=_0x210d3b['mapper']['toViewPosition'](_0x5276d3['createPositionBefore'](_0x2f7c8e));!_0x5f2f90&&_0x2f68e5['_activeMarkers']['includes'](_0x574391['markerName'])&&_0x210d3b['writer']['addClass']('ck-suggestion-marker--active',_0x3637b3),_0x210d3b['writer']['insert'](_0x3a5d65,_0x3637b3),_0x210d3b['mapper']['bindElementToMarker'](_0x3637b3,_0x574391['markerName']);}};_0x4efe05['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4342b2,_0x38ee57,_0x55f270)=>{_0x3d4c25(_0x4342b2,_0x38ee57,_0x55f270,!0x1);},{'priority':'high'}),_0x4efe05['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a0887,_0x3fe7af,_0x1b2dcb)=>{_0x3d4c25(_0x2a0887,_0x3fe7af,_0x1b2dcb,!0x0);},{'priority':'high'});}}class L extends _0x315289{['afterInit'](){const _0x513b70=this['editor'];_0x513b70['plugins']['has']('MediaEmbedEditing')&&(_0x513b70['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5c81cb,{writer:_0x235432,options:_0xa27a5b})=>{if(_0xa27a5b['showSuggestionHighlights'])return _0x235432['createEmptyElement']('div');},'converterPriority':'high'}),_0x513b70['data']['downcastDispatcher']['on']('attribute:url:media',(_0x269161,_0x123de0,_0x16e3a9)=>{_0x16e3a9['options']['showSuggestionHighlights']&&_0x269161['stop']();},{'priority':'high'}));}}class Q extends _0x315289{['afterInit'](){const _0x5a6fb9=this['editor'];if(!_0x5a6fb9['plugins']['has']('Table'))return;_0x5a6fb9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40b5eb,_0x2e646b,_0x4cb9bc)=>{((_0x561432,_0x5b399a,_0x60a5da)=>{if(!_0x60a5da['options']['showSuggestionHighlights'])return;const _0x5356ab=_0x5b399a['item'];if(!_0x5356ab||!_0x5356ab['is']('element','tableCell'))return;const _0x2ebaae=_0x60a5da['mapper']['toViewElement'](_0x5356ab);if(_0x2ebaae){const {id:_0x26918a,authorId:_0x2aa680}=v(_0x5b399a['markerName']);at(_0x2ebaae,_0x60a5da['writer'],(_0x3614fb,_0x5510e1,_0x718715)=>{_0x718715['addClass'](rt(_0x5510e1['classes']),_0x3614fb),_0x718715['setAttribute']('data-suggestion-id',_0x26918a,_0x3614fb),_0x718715['setAttribute']('data-author-id',_0x2aa680,_0x3614fb);});}})(0x0,_0x2e646b,_0x4cb9bc);},{'priority':'highest'});}}class V extends _0x315289{['afterInit'](){const _0x1af40c=this['editor'];_0x1af40c['plugins']['has']('HorizontalLineEditing')&&_0x1af40c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x453ca5,{writer:_0x54d1af,options:_0x5ceb86})=>{if(!_0x5ceb86['showSuggestionHighlights'])return null;const _0x40dc49=_0x54d1af['createContainerElement']('div'),_0x43f7ba=_0x54d1af['createEmptyElement']('hr');return _0x54d1af['addClass']('ck-horizontal-line',_0x40dc49),_0x54d1af['insert'](_0x54d1af['createPositionAt'](_0x40dc49,0x0),_0x43f7ba),_0x40dc49;},'converterPriority':'high'});}}class W extends _0x315289{['afterInit'](){const {plugins:_0x20f98d,model:_0xd5465f}=this['editor'];if(!_0x20f98d['has']('TableCellPropertiesEditing'))return;const _0x15d3ee=_0x20f98d['get']('SuggestionsConversion'),_0x21cbdf=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x9ec28b of _0x21cbdf)_0x15d3ee['registerBlockAttribute'](_0x9ec28b);_0xd5465f['schema']['checkAttribute']('tableCell','tableCellType')&&_0x15d3ee['registerBlockAttribute']('tableCellType');}}class kt extends _0x315289{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[M,D,I,B,T,E,V,S,$,x,H,N,P,K,L,q,J,z,Q,O,F,W,R,G];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x530d0c=this['editor'],_0x3fc03f=(_0x26b3d5,_0x2977b8,_0x2572af)=>{const {id:_0x11891b,authorId:_0x5dc626,type:_0x28f3fe,subType:_0x8393cf}=v(_0x26b3d5['markerName']),_0xcfd6b3=['ck-suggestion-marker',this['_getClassName'](_0x28f3fe,_0x8393cf)];let _0x242604=0xbb8;return!_0x2572af&&(this['_activeMarkers']['includes'](_0x26b3d5['markerName'])&&(_0xcfd6b3['push']('ck-suggestion-marker--active'),_0x242604=0xbc2)),('deletion'==_0x28f3fe&&(_0x242604+=0x5),{'classes':_0xcfd6b3,'attributes':{'data-suggestion':_0x11891b,'data-author-id':_0x5dc626},'priority':_0x242604});};_0x530d0c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5916a8,_0x21809c)=>_0x3fc03f(_0x5916a8,0x0,!0x1)}),_0x530d0c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x359ff1,_0x31c40d)=>_0x3fc03f(_0x359ff1,0x0,!0x0)}),_0x530d0c['conversion']['for']('dataDowncast')['add'](_0xd305a7=>{_0xd305a7['on']('addMarker:suggestion',(_0x56af69,_0x5c4a83,_0x41a30d)=>{if(!_0x41a30d['options']['showSuggestionHighlights'])return;const _0x25af80=_0x5c4a83['item'];if(!_0x25af80)return;const _0x36d64f=_0x41a30d['mapper']['toViewElement'](_0x25af80);_0x530d0c['model']['schema']['isObject'](_0x25af80)&&_0x36d64f&&!_0x36d64f['getCustomProperty']('widget')&&_0x36d64f['is']('containerElement')&&_0x4943bb(_0x36d64f,_0x41a30d['writer']);},{'priority':'high'});});const _0x162a15=(_0x115933,_0x540267,_0x2d3759,_0x20f5e0,_0x348c85)=>{if(_0x20f5e0&&!_0x2d3759['options']['showSuggestionHighlights'])return;if(!_0x540267['item'])return;const {id:_0x2e786b,authorId:_0x41f2a7,subType:_0x153a9d}=v(_0x540267['markerName']);if(_0x348c85){const _0x31bf96=_0x153a9d['split']('|')[0x0];if(!this['isBlockAttribute'](_0x31bf96))return;}if(_0x540267['item']['is']('selection'))return void _0x2d3759['consumable']['consume'](_0x540267['item'],_0x115933['name']);const _0x6a2c18=_0x2d3759['mapper']['toViewElement'](_0x540267['item']);if(_0x540267['item']['is']('element')&&_0x530d0c['model']['schema']['isBlock'](_0x540267['item'])&&!_0x6a2c18['getCustomProperty']('addHighlight')){_0x2d3759['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x6a2c18),_0x2d3759['writer']['setAttribute']('data-suggestion',_0x2e786b,_0x6a2c18),_0x2d3759['writer']['setAttribute']('data-author-id',_0x41f2a7,_0x6a2c18),_0x2d3759['mapper']['bindElementToMarker'](_0x6a2c18,_0x540267['markerName']),_0x20f5e0||(this['_activeMarkers']['includes'](_0x540267['markerName'])?_0x2d3759['writer']['addClass']('ck-suggestion-marker--active',_0x6a2c18):_0x2d3759['writer']['removeClass']('ck-suggestion-marker--active',_0x6a2c18));for(const _0x3e17de of _0x530d0c['model']['createRangeIn'](_0x540267['item'])['getItems']())_0x2d3759['consumable']['consume'](_0x3e17de,_0x115933['name']);_0x2d3759['consumable']['consume'](_0x540267['item'],_0x115933['name']);}},_0xe2a5fe=(_0x2e33fa,_0x56aff5,_0xc1bd63,_0x26b939)=>{const _0x2d9d35=_0xc1bd63['mapper']['markerNameToElements'](_0x56aff5['markerName']);if(_0x2d9d35){if(_0x26b939){const {subType:_0x2e03c6}=v(_0x56aff5['markerName']),_0x121dcf=_0x2e03c6['split']('|')[0x0];if(!this['isBlockAttribute'](_0x121dcf))return;}for(const _0x4a6374 of _0x2d9d35)_0x4a6374['getCustomProperty']('addHighlight')||(_0xc1bd63['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a6374),_0xc1bd63['writer']['removeAttribute']('data-suggestion',_0x4a6374),_0xc1bd63['writer']['removeAttribute']('data-author-id',_0x4a6374),_0xc1bd63['mapper']['unbindElementFromMarkerName'](_0x4a6374,_0x56aff5['markerName']));}};_0x530d0c['conversion']['for']('editingDowncast')['add'](_0x12ba57=>{_0x12ba57['on']('addMarker:suggestion:formatBlock',(_0x1c42c2,_0x1c4e0d,_0x3a16a7)=>{_0x162a15(_0x1c42c2,_0x1c4e0d,_0x3a16a7,!0x1,!0x1);},{'priority':'high'});}),_0x530d0c['conversion']['for']('editingDowncast')['add'](_0x3e2a96=>{_0x3e2a96['on']('addMarker:suggestion:attribute',(_0x7291f6,_0x1dfa52,_0x16115b)=>{_0x162a15(_0x7291f6,_0x1dfa52,_0x16115b,!0x1,!0x0);},{'priority':'high'});}),_0x530d0c['conversion']['for']('editingDowncast')['add'](_0xb91457=>{_0xb91457['on']('removeMarker:suggestion:formatBlock',(_0x6c2ad2,_0x24f1de,_0x1c6220)=>{_0xe2a5fe(0x0,_0x24f1de,_0x1c6220,!0x1);},{'priority':'high'});}),_0x530d0c['conversion']['for']('editingDowncast')['add'](_0x38fb36=>{_0x38fb36['on']('removeMarker:suggestion:attribute',(_0x482bdc,_0x22583e,_0xdf7ea)=>{_0xe2a5fe(0x0,_0x22583e,_0xdf7ea,!0x0);},{'priority':'high'});}),_0x530d0c['conversion']['for']('dataDowncast')['add'](_0x1ad685=>{_0x1ad685['on']('addMarker:suggestion:formatBlock',(_0x312087,_0x6579fb,_0x48c5fc)=>{_0x162a15(_0x312087,_0x6579fb,_0x48c5fc,!0x0,!0x1);},{'priority':'highest'});}),_0x530d0c['conversion']['for']('dataDowncast')['add'](_0x22408b=>{_0x22408b['on']('addMarker:suggestion:attribute',(_0x16759a,_0x1948c9,_0x339e5b)=>{_0x162a15(_0x16759a,_0x1948c9,_0x339e5b,!0x0,!0x0);},{'priority':'highest'});}),_0x530d0c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1dd34a,_0x368a7a)=>{if(_0x368a7a['options']['showSuggestionHighlights']){const {id:_0xa2e67e,authorId:_0x310da1}=v(_0x1dd34a);return _0x1dd34a['includes'](':split')||_0x1dd34a['includes'](':merge')?{'group':'suggestion','name':_0x1dd34a['substr'](0xb),'attributes':{'data-suggestion':_0xa2e67e,'data-author-id':_0x310da1}}:null;}return{'group':'suggestion','name':_0x1dd34a['substr'](0xb)};}});const _0x47fdb7=(_0x224aa7,_0x41a72c,_0x20945b,_0x336109,_0x2f9be3)=>{if(_0x336109&&!_0x20945b['options']['showSuggestionHighlights'])return;if(!_0x20945b['consumable']['test'](_0x41a72c['markerRange'],_0x224aa7['name']))return;const _0x48e4ba=this['_activeMarkers'],_0x3f38e9=_0x41a72c['markerRange']['getWalker'](),_0x495603=_0x41a72c['markerRange']['start'],_0x354766=_0x530d0c['model']['schema'];let _0x3349d6=null,_0x6c80aa=null,_0x242c7e=!0x1,_0x535a17=!0x1;for(const _0x436ff7 of _0x3f38e9){const _0x8f1fd3=_0x436ff7['item'];_0x242c7e=_0x242c7e||_0x354766['isContent'](_0x8f1fd3);const _0x46d5bd=_0x20945b['mapper']['toViewElement'](_0x8f1fd3);if(_0x46d5bd&&_0x46d5bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x436ff7['type']&&(_0x354766['isBlock'](_0x8f1fd3)&&!_0x354766['isLimit'](_0x8f1fd3)&&(_0x8f1fd3['nextSibling']||_0x495603['isAtEnd']?_0x3349d6&&_0x3349d6['parent']==_0x8f1fd3||(_0x3349d6=_0x8f1fd3,_0x3accf6(_0x436ff7['previousPosition']),_0x535a17=!0x0):_0x6c80aa=_0x6c80aa||_0x436ff7['previousPosition']));}function _0x3accf6(_0xa10026){const {id:_0x4749ad,authorId:_0x101724}=v(_0x41a72c['markerName']),_0x4bafcd=_0x20945b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f9be3,'data-suggestion':_0x4749ad,'data-author-id':_0x101724}),_0x433a3f=_0x20945b['mapper']['toViewPosition'](_0xa10026);!_0x336109&&_0x48e4ba['includes'](_0x41a72c['markerName'])&&_0x20945b['writer']['addClass']('ck-suggestion-marker--active',_0x4bafcd),_0x20945b['writer']['insert'](_0x433a3f,_0x4bafcd),_0x20945b['mapper']['bindElementToMarker'](_0x4bafcd,_0x41a72c['markerName']);}_0x242c7e||_0x535a17||!_0x6c80aa||_0x3accf6(_0x6c80aa);};_0x530d0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x214ee8,_0x315324,_0x4e2963)=>{_0x47fdb7(_0x214ee8,_0x315324,_0x4e2963,!0x1,'merge');},{'priority':'high'}),_0x530d0c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x47251e,_0x1319c1,_0x386e0b)=>{_0x47fdb7(_0x47251e,_0x1319c1,_0x386e0b,!0x0,'merge');},{'priority':'high'}),_0x530d0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x14ad69,_0x51f278,_0x4731cc)=>{_0x47fdb7(_0x14ad69,_0x51f278,_0x4731cc,!0x1,'split');},{'priority':'high'}),_0x530d0c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x516020,_0x2ca3e3,_0x21a292)=>{_0x47fdb7(_0x516020,_0x2ca3e3,_0x21a292,!0x0,'split');},{'priority':'high'}),_0x530d0c['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xdfdb7b,_0x1ca037,_0x25f183)=>{((_0x493e2e,_0x16b3c4,_0x2aebb0)=>{const _0x7a17a5=_0x2aebb0['mapper']['markerNameToElements'](_0x16b3c4['markerName']);if(_0x7a17a5){for(const _0x170572 of _0x7a17a5)(_0x170572['hasClass']('ck-suggestion-marker-split')||_0x170572['hasClass']('ck-suggestion-marker-merge'))&&(_0x2aebb0['mapper']['unbindElementFromMarkerName'](_0x170572,_0x16b3c4['markerName']),_0x2aebb0['writer']['remove'](_0x170572));}})(0x0,_0x1ca037,_0x25f183);},{'priority':'high'});const _0xd4883f=(_0x15a3bd,_0x3063bf,_0x1b6862,_0x2117b9)=>{if(_0x2117b9&&!_0x1b6862['options']['showSuggestionHighlights'])return;const _0x41f122=_0x3063bf['markerRange']['start'],_0x14f5bd=_0x3063bf['markerRange']['end'],_0x3275e4=_0x530d0c['model']['schema'];if(!_0x41f122['isTouching'](_0x14f5bd)||!_0x41f122['nodeAfter'])return;const _0x59f6a8=_0x41f122['nodeAfter'];if(_0x3275e4['isBlock'](_0x59f6a8)&&!_0x3275e4['isLimit'](_0x59f6a8)&&_0x3275e4['checkChild'](_0x59f6a8,'$text')){if(!_0x1b6862['consumable']['consume'](_0x3063bf['markerRange'],_0x15a3bd['name']))return;const {id:_0x429c7a,authorId:_0x449919}=v(_0x3063bf['markerName']),_0x3f284b=_0x1b6862['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x429c7a,'data-author-id':_0x449919}),_0xa262a9=_0x1b6862['mapper']['toViewPosition'](_0x14f5bd);!_0x2117b9&&this['_activeMarkers']['includes'](_0x3063bf['markerName'])&&_0x1b6862['writer']['addClass']('ck-suggestion-marker--active',_0x3f284b),_0x1b6862['writer']['insert'](_0xa262a9,_0x3f284b),_0x1b6862['mapper']['bindElementToMarker'](_0x3f284b,_0x3063bf['markerName']);}};_0x530d0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13ab96,_0x43a034,_0x4fa5cb)=>{_0xd4883f(_0x13ab96,_0x43a034,_0x4fa5cb,!0x1);},{'priority':'high'}),_0x530d0c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3aca3b,_0x4d9a5d,_0xd19ecc)=>{_0xd4883f(_0x3aca3b,_0x4d9a5d,_0xd19ecc,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x447f1e,_0x3340db,_0x1493c7)=>{this['_activeMarkers']=_0x1493c7['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x35d711){this['_blockAttributeKeys']['add'](_0x35d711);}['registerInlineAttribute'](_0x5dd4fc){this['_inlineAttributeKeys']['add'](_0x5dd4fc);}['isBlockAttribute'](_0x3b59f0){return this['_blockAttributeKeys']['has'](_0x3b59f0);}['isInlineAttribute'](_0x1e17eb){return this['_inlineAttributeKeys']['has'](_0x1e17eb);}['isRegisteredAttribute'](_0x3f5627){return this['isInlineAttribute'](_0x3f5627)||this['isBlockAttribute'](_0x3f5627);}['_getClassName'](_0x542906,_0x254a68){if('attribute'!=_0x542906)return'ck-suggestion-marker-'+_0x542906;const _0x4f01bc=_0x254a68['split']('|')[0x0];return this['isBlockAttribute'](_0x4f01bc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}function pt(_0x16994e={},_0x3f1923){if(void 0x0!==_0x16994e['dateTimeFormat']&&'function'!=typeof _0x16994e['dateTimeFormat'])throw new _0x17c3db('invalid-date-time-format');return _0x5ce0e0=>{const _0x2d5420='string'==typeof _0x5ce0e0?tt['fromISO'](_0x5ce0e0):tt['fromJSDate'](_0x5ce0e0),_0x54e775=tt['now'](),_0x6097b7=Math['floor'](_0x54e775['diff'](_0x2d5420,'days')['days']);return _0x16994e['dateTimeFormat']?_0x16994e['dateTimeFormat'](_0x2d5420['toJSDate'](),_0x3f1923&&_0x3f1923['t']?_0x3f1923['t']:void 0x0):0x0===_0x6097b7?_0x3f1923?U(_0x3f1923,'Today')+'\x20'+_0x2d5420['toFormat']('hh:mma'):_0x2d5420['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x6097b7?_0x3f1923?U(_0x3f1923,'Yesterday')+'\x20'+_0x2d5420['toFormat']('hh:mma'):_0x2d5420['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x6097b7<0x7?_0x3f1923?U(_0x3f1923,'Last')+'\x20'+U(_0x3f1923,_0x2d5420['toFormat']('EEEE'))+'\x20'+_0x2d5420['toFormat']('hh:mma'):_0x2d5420['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x2d5420['toFormat']('LL-dd-yyyy\x20hh:mma');};}function yt(_0x523bac,_0x1b2c36){const _0x10658d=_0x523bac['mapper']['markerNameToElements'](_0x1b2c36['name']);if(!_0x10658d)return null;const _0x4e3238=_0x25fabb(_0x10658d['values']());return _0x523bac['view']['domConverter']['mapViewToDom'](_0x4e3238)||null;}function wt(_0x29c4e8,_0x2581f0){if(0x0===_0x2581f0['length'])return null;const _0x5119ce=[],_0x8d058c=_0x29c4e8['view']['domConverter'];for(const _0x4b64c3 of _0x2581f0){const _0x25aba0=_0x29c4e8['mapper']['markerNameToElements'](_0x4b64c3['name']);if(!_0x25aba0)continue;const _0x175f06=Array['from'](_0x25aba0)['map'](_0x49ca88=>_0x8d058c['mapViewToDom'](_0x49ca88))['filter'](_0x2f1ce6=>!!_0x2f1ce6);_0x5119ce['push'](..._0x175f06);}if(0x0===_0x5119ce['length'])return null;const _0x2bf054=[];for(const _0x10d75c of _0x5119ce){const _0xa5b4a=_0x10d75c['getClientRects']()['item'](0x0);_0xa5b4a&&_0x2bf054['push']({'x':_0xa5b4a['x'],'y':_0xa5b4a['y'],'domElement':_0x10d75c});}return 0x0===_0x2bf054['length']?null:(_0x2bf054['sort']((_0x4661d8,_0x4d043d)=>_0x4661d8['y']-_0x4d043d['y']||_0x4661d8['x']-_0x4d043d['x']),_0x2bf054['map'](_0x5b8e74=>_0x5b8e74['domElement']));}function bt(_0x37330f,{limit:_0xa1b15c,suffix:_0x135c02='...'}){const _0x513050=[];let _0x47ca42=0x0;const _0x1e4536=_0x37330f['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x2e5916=0x0;_0x2e5916<_0x1e4536['length'];_0x2e5916++){let _0x1fda0b=_0x1e4536[_0x2e5916];const _0x36ffbc=tn(_0x1fda0b);if(_0x1fda0b['startsWith']('<')){if(_0x47ca42>=_0xa1b15c){const _0x21dee2=_0x1fda0b['match'](/[a-zA-Z]+/);if(!_0x21dee2){_0x1e4536[_0x2e5916]='';continue;}const _0x3b6493=_0x21dee2[0x0];_0x1fda0b['startsWith']('</')?(_0x513050['length']&&(_0x1fda0b=''),_0x513050['pop']()):(_0x513050['push'](_0x3b6493),_0x1fda0b='');}}else{if(_0x47ca42>=_0xa1b15c)_0x1fda0b='';else{if(_0x47ca42+_0x36ffbc['length']>=_0xa1b15c){let _0x18bb26=_0xa1b15c-_0x47ca42;if('\x20'===_0x36ffbc[_0x18bb26-0x1])_0x18bb26--;else{const _0x26ab3f=_0x36ffbc['slice'](_0x18bb26)['indexOf']('\x20');-0x1!==_0x26ab3f?_0x18bb26+=_0x26ab3f:_0x18bb26=_0x1fda0b['length'];}_0x1fda0b=_0x36ffbc['slice'](0x0,_0x18bb26)['join']('')+_0x135c02,_0x47ca42=_0xa1b15c;}else _0x47ca42+=_0x36ffbc['length'];}}_0x1e4536[_0x2e5916]=_0x1fda0b;}return _0x1e4536['join']('\x0a')['replace'](/\n/g,'');}function tn(_0x1543b3){const _0x3d38f5=[];for(let _0x4ba779=0x0;_0x4ba779<_0x1543b3['length'];_0x4ba779++){const _0x35f6ba=_0x1543b3['substring'](_0x4ba779)['match'](/^&[a-z0-9#]+;/);if(_0x35f6ba){const _0x1107c2=_0x35f6ba[0x0];_0x3d38f5['push'](_0x1107c2),_0x4ba779+=_0x1107c2['length']-0x1;}else _0x3d38f5['push'](_0x1543b3[_0x4ba779]);}return _0x3d38f5;}class X extends _0x19814a{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x3229ad){super(_0x3229ad);const _0x536890=this['bindTemplate'];this['set']('message',U(_0x3229ad,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x3229ad,U(_0x3229ad,'Yes'),_0x59568d,'submit'),this['cancelView']=this['_createButtonView'](_0x3229ad,U(_0x3229ad,'No'),_0x131771,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x4e0614(),this['keystrokes']=new _0x4f4e17(),this['focusCycler']=new _0x3b0d4e({'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':_0x536890['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'](_0xc8fb3a,_0x5a2eef,_0x5d0d06,_0x2cf002){const _0x42afb7=new ts(_0xc8fb3a);return _0x42afb7['label']=_0x5a2eef,_0x42afb7['icon']=_0x5d0d06,_0x42afb7['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x2cf002}}),_0x42afb7['on']('execute',()=>this['fire'](_0x2cf002)),_0x42afb7;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x5bcba6=>{this['keystrokes']['listenTo'](_0x5bcba6['element']),this['focusTracker']['add'](_0x5bcba6['element']);}),this['keystrokes']['set']('esc',(_0x17995c,_0x287dc9)=>{this['fire']('cancel'),_0x287dc9();});}}function vt(_0x749adc){return class extends _0x749adc{['showConfirm'](_0x39ae57,_0x1710cc){return this['confirmView']=new X(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x39ae57,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x1710cc['appendChild'](this['confirmView']['element']),_0x1710cc['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x403ea9,_0xd2551d,_0x258f3c)=>{_0x258f3c||_0x1710cc['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x188850=>this['confirmView']['on']('submit',_0x188850));}['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(_0x94b1c2){let _0x457460=0x0,_0x136258=0x0;for(const _0x36653 of ne(_0x94b1c2))_0x457460=(_0x457460<<0x5)-_0x457460+_0x36653,_0x457460&=_0x457460,[_0x457460,_0x136258]=[_0x136258,_0x457460];return ie(_0x457460)+ie(_0x136258);}function*ee(_0xb59c68){null==_0xb59c68||null==_0xb59c68?yield 0x12b9b0a1:0x0===_0xb59c68||!0x1===_0xb59c68?yield 0x0:0x1===_0xb59c68||0x1==_0xb59c68?yield 0x1:Array['isArray'](_0xb59c68)?yield*function*(_0x2a6a51){for(const _0x1ebc84 of _0x2a6a51)yield*ee(_0x1ebc84);}(_0xb59c68):'object'==typeof _0xb59c68?yield*ne(_0xb59c68):'string'==typeof _0xb59c68?yield*oe(_0xb59c68):'number'==typeof _0xb59c68&&(yield _0xb59c68);}function*ne(_0x3ab39e){if(yield te('{'),_0x3ab39e){const _0x3d317d=Object['keys'](_0x3ab39e)['sort']();for(const _0xa3995f of _0x3d317d){yield*oe(_0xa3995f),yield te(':');const _0x54b2ec=_0x3ab39e[_0xa3995f];yield*ee(_0x54b2ec);}}yield te('}');}function*oe(_0x22491d){yield te('\x22');for(const _0x666fa5 of _0x22491d)yield te(_0x666fa5);yield te('\x22');}function te(_0x3ffb8b){return _0x3ffb8b['charCodeAt'](0x0);}function ie(_0x3b2f15){return(_0x3b2f15*=Math['sign'](_0x3b2f15))['toString'](0x24);}const nt=['initialData','context','toolbar','rootsAttributes'],et=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function ot(_0x19bac7,_0x23a3bb,_0x5f0504,_0x42dbd8=[]){const _0x17a140='string'==typeof _0x19bac7?_0x5f0504['get'](_0x19bac7)['constructor']:_0x19bac7['prototype']['constructor'];if(_0x23a3bb['has'](_0x17a140))return _0x23a3bb['get'](_0x17a140);_0x23a3bb['set'](_0x17a140,!0x0);const _0x2208c2=[...et,..._0x42dbd8]['map'](_0x5b6853=>{if(_0x5f0504['has'](_0x5b6853))return _0x5f0504['get'](_0x5b6853)['constructor'];})['filter'](_0x4a9ac7=>_0x4a9ac7);if(_0x17a140&&_0x2208c2['includes'](_0x17a140))return _0x23a3bb['set'](_0x17a140,!0x1),!0x1;if(!_0x17a140['requires'])return _0x23a3bb['set'](_0x17a140,!0x0),!0x0;const _0x8fa97a=_0x17a140['requires']['every'](_0x10c5ac=>ot(_0x10c5ac,_0x23a3bb,_0x5f0504,_0x42dbd8));return _0x23a3bb['set'](_0x17a140,_0x8fa97a),_0x8fa97a;}function Ct(_0x18a51e,_0x3d7ae4){const _0x2227fb={};for(const _0x43db81 of _0x18a51e['config']['names']())nt['includes'](_0x43db81)||(_0x2227fb[_0x43db81]=_0x18a51e['config']['get'](_0x43db81));const _0x536d6d=_0x2227fb['plugins']||[],_0x45b0be=_0x18a51e['constructor']['builtinPlugins']||[],_0x1bc23c=_0x536d6d['length']?_0x536d6d:_0x45b0be,_0xb5ac7d=_0x2227fb['extraPlugins']||[];delete _0x2227fb['extraPlugins'];const _0x1f3657=_0x2227fb['removePlugins']||[];delete _0x2227fb['removePlugins'];const _0x377042=_0x18a51e['_context']['config']['get']('plugins')||[],_0x422a7b=_0x1bc23c['concat'](_0xb5ac7d)['concat'](_0x377042)['map'](_0x5219f8=>'string'==typeof _0x5219f8?_0x45b0be['find'](_0x111744=>_0x111744['pluginName']==_0x5219f8):_0x5219f8)['filter'](_0x55bf82=>!_0x1f3657['includes'](_0x55bf82)&&!_0x1f3657['includes'](_0x55bf82['pluginName'])),_0x51517c=Array['from'](new Set(_0x422a7b)),_0x330db1=new Map();return _0x2227fb['plugins']=_0x51517c['filter'](_0x41c5f3=>ot(_0x41c5f3,_0x330db1,_0x18a51e['plugins'],_0x3d7ae4)),_0x2227fb;}function xt(_0x1d9247,_0x401f3c){const _0x478f99=[];_0x1d9247['document']['selection']['on']('change:range',()=>{const _0x1a183a=function(_0x4f09bd,_0x4762c8){const _0x4c1263=[];for(const _0xe9b7cd of _0x4f09bd['markers']){const _0x22c53f=_0xe9b7cd['getRange']();(_0x22c53f['containsPosition'](_0x4762c8)||_0x22c53f['start']['isEqual'](_0x4762c8)||_0x22c53f['end']['isEqual'](_0x4762c8))&&_0x4c1263['push'](_0xe9b7cd);}return _0x4c1263;}(_0x1d9247,_0x1d9247['document']['selection']['focus']),_0x2ce558=[],_0x3ee39d=[],_0xa57938=[];for(const _0x2c7652 of _0x478f99)_0x1a183a['includes'](_0x2c7652)||_0x2ce558['push'](_0x2c7652);for(const _0x38e912 of _0x1a183a)_0x478f99['includes'](_0x38e912)||_0x3ee39d['push'](_0x38e912),_0xa57938['push'](_0x38e912);(_0x2ce558['length']||_0x3ee39d['length'])&&_0x401f3c({'left':_0x2ce558,'entered':_0x3ee39d}),_0x478f99['length']=0x0,_0x478f99['push'](..._0xa57938);});}const It='Ctrl+Shift+E';function _t(_0x5c5b98,_0x3086ec){const _0x251795=_0x5c5b98['element'];_0x5c5b98['keystrokes']['listenTo'](_0x251795);for(const _0x431203 of _0x3086ec)ro(_0x5c5b98,_0x431203);_0x3086ec['on']('change',(_0x51078d,_0x18f906)=>{for(const _0x8e04e1 of _0x18f906['removed'])to(_0x5c5b98,_0x8e04e1);for(const _0x419b9f of Array['from'](_0x18f906['added'])['reverse']())ro(_0x5c5b98,_0x419b9f);}),_0x5c5b98['keystrokes']['set']('enter',(_0x2d5466,_0x9c4762)=>{_0x251795===_0x2d5466['target']&&(_0x5c5b98['focusCycler']['focusFirst'](),_0x9c4762());},{'filter':_0x5827bd=>_0x5827bd['target']===_0x251795}),_0x5c5b98['keystrokes']['set']('esc',(_0x1c6283,_0x29daac)=>{_0x251795!==_0x1c6283['target']?_0x5c5b98['focus']():_0x5c5b98['fire']('escape'),_0x29daac();}),_0x5c5b98['keystrokes']['set']('arrowdown',(_0x49b7e9,_0x4a9a7e)=>{_0x251795===_0x49b7e9['target']&&(_0x5c5b98['fire']('arrowdown'),_0x4a9a7e());}),_0x5c5b98['keystrokes']['set']('arrowup',(_0x26a989,_0x5e4ba6)=>{_0x251795===_0x26a989['target']&&(_0x5c5b98['fire']('arrowup'),_0x5e4ba6());});}function ro(_0x211bc5,_0x39d960){_0x39d960['isRendered']&&(_0x211bc5['focusTracker']['add'](_0x39d960['element']),_0x211bc5['keystrokes']['listenTo'](_0x39d960['element']),_0x514d7b(_0x39d960)&&function(_0x5a1e45,_0x396054){const _0x175ba3=_0x5a1e45['actions'],_0x5ca1af=_0x396054['actions'];for(const _0x160f0c of Object['keys'](_0x175ba3))if(_0x160f0c in _0x5ca1af&&_0x175ba3[_0x160f0c]!==_0x5ca1af[_0x160f0c])return!0x1;return!0x0;}(_0x211bc5['focusCycler'],_0x39d960['focusCycler'])&&_0x211bc5['focusCycler']['chain'](_0x39d960['focusCycler']));}function to(_0x353f86,_0xc93b97){_0x353f86['focusTracker']['remove'](_0xc93b97['element']),_0x353f86['keystrokes']['stopListening'](_0xc93b97['element']),_0x514d7b(_0xc93b97)&&_0x353f86['focusCycler']['unchain'](_0xc93b97['focusCycler']);}const St='$elementId',Et='data-id';class At extends _0x512ba5{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof _0x3da78b?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0xb1296d,_0x4eba6f)=>{_0x4eba6f['on']('ready',()=>{this['_integrateEditor'](_0x4eba6f);});});}get['editor'](){if(this['context']instanceof _0x3da78b)return this['context'];{const _0x501072=this['context']['editors']['first'];if(!_0x501072)throw new _0x17c3db('documentcompare-no-editor',this);return _0x501072;}}['getDiff'](_0x4b35e5,_0x398c16,_0x2b9221={'anchor':'main','markDeletions':!0x1}){let _0x33a996,_0x3e0a9a;const _0x31d989=this['editor'];if('string'==typeof _0x2b9221['anchor']){const _0x1a7494=_0x31d989['model']['document']['getRoot'](_0x2b9221['anchor']);if(!_0x1a7494)throw new _0x17c3db('documentcompare-compare-no-root',this,{'anchor':_0x2b9221['anchor']});_0x33a996=_0x1a7494,_0x3e0a9a=_0x31d989['model']['createPositionAt'](_0x1a7494,0x0);}else _0x33a996=_0x2b9221['anchor']['clone'](),_0x3e0a9a=_0x2b9221['anchor']['clone']();const _0x570bff=_0x31d989['data']['parse'](_0x4b35e5,_0x33a996),_0x1394d8=_0x31d989['data']['parse'](_0x398c16,_0x33a996);return new Mt(_0x570bff,_0x1394d8,_0x31d989,{'anchor':_0x3e0a9a,'markDeletions':_0x2b9221['markDeletions']});}['isMarkedRemoveOperation'](_0x444a34){return'marker'==_0x444a34['type']&&_0x444a34['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x509e70){_0x509e70['conversion']['for']('upcast')['add'](_0x16a3d5=>{_0x16a3d5['on']('element',(_0x4d53b7,_0x336444,_0xfe97b6)=>{if(_0x336444['modelRange'])for(const _0x20033b of _0x336444['modelRange']['getItems']({'shallow':!0x0})){if(_0x20033b['is']('$textProxy'))continue;const _0x24f9b1=_0x336444['viewItem']['getAttribute'](Et);_0x24f9b1&&_0xfe97b6['writer']['setAttribute'](St,_0x24f9b1,_0x20033b);}},{'priority':'lowest'});}),_0x509e70['model']['schema']['addAttributeCheck'](()=>!0x0,St);}}class Mt{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x462f15,_0x51389d,_0x284571,_0x3cf44a){this['_editor']=_0x284571,this['_markDeletions']=!!_0x3cf44a['markDeletions'],this['_anchor']=_0x3cf44a['anchor'];const _0x4a8850=this['_tokenizeModel'](_0x462f15),_0x48fc17=this['_tokenizeModel'](_0x51389d);this['_diffItems']=this['_diffModelTokens'](_0x4a8850,_0x48fc17),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x462f15['markers'],_0x51389d['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0xf4fc62=this['_editor']['model']['document'],_0x53bac2=[];let _0x361288=_0xf4fc62['version'];for(const _0x3e18a6 of this['_operationsData'])switch(_0x3e18a6['type']){case'attribute':{const _0x30f4c8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['path']),_0x45dd9c=_0x30f4c8['getShiftedBy'](_0x3e18a6['howMany']),_0x2f3368=new _0x4fb0d8(_0x30f4c8,_0x45dd9c),_0x497b72=JSON['parse'](_0x3e18a6['oldValue']),_0x497d85=JSON['parse'](_0x3e18a6['newValue']);_0x53bac2['push'](new _0x151896(_0x2f3368,_0x3e18a6['key'],_0x497b72,_0x497d85,_0x361288++));break;}case'insert':{const _0x1e6f31=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['path']),_0x4a4c27=this['_makeModelFromTokens'](_0x3e18a6['tokens']);_0x53bac2['push'](new _0x5886ed(_0x1e6f31,_0x4a4c27,_0x361288++));break;}case'remove':{const _0x1a2c25=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['path']),_0x5702c2=new _0x2a14a8(_0xf4fc62['graveyard'],[0x0]);_0x53bac2['push'](new _0x1771cd(_0x1a2c25,_0x3e18a6['howMany'],_0x5702c2,_0x361288++));break;}case'rename':{const _0x531336=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['path']);_0x53bac2['push'](new _0x353951(_0x531336,_0x3e18a6['oldName'],_0x3e18a6['newName'],_0x361288++));break;}case'split':{const _0xd493c1=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['path']),_0x22636d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['path']['slice'](0x0,-0x1));_0x22636d['offset']++,_0x53bac2['push'](new _0x464059(_0xd493c1,Number['NEGATIVE_INFINITY'],_0x22636d,null,_0x361288++));break;}case'merge':{const _0x1b26e6=_0x3e18a6['path']['slice'](),_0x3642e7=_0x1b26e6['slice'](0x0,-0x1);_0x3642e7[_0x3642e7['length']-0x1]++,_0x3642e7['push'](0x0);const _0x6ec713=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3642e7),_0x58fb59=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1b26e6),_0x50ab4f=new _0x2a14a8(_0xf4fc62['graveyard'],[0x0]);_0x53bac2['push'](new _0x445c15(_0x6ec713,Number['NEGATIVE_INFINITY'],_0x58fb59,_0x50ab4f,_0x361288++));break;}case'marker':case'markedRemove':{let _0xb0b635=null;if(_0x3e18a6['range']){const _0x116522=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['range']['start']),_0xb2e568=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['range']['end']);_0xb0b635=new _0x4fb0d8(_0x116522,_0xb2e568);}const _0x43e4e4='marker'==_0x3e18a6['type']?_0x3e18a6['name']:'$markedRemove:'+_0x8c78d7();_0x53bac2['push'](new _0x4d4c0f(_0x43e4e4,null,_0xb0b635,_0xf4fc62['model']['markers'],!0x0,_0x361288++));break;}case'unwrap':{const _0x1a30bf=_0x3e18a6['path']['slice']();_0x1a30bf['push'](0x0);const _0x49132a=_0x3e18a6['path']['slice'](),_0x1cebae=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1a30bf),_0x47ffe9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x49132a),_0x1cf268=new _0x2a14a8(_0xf4fc62['graveyard'],[0x0]);_0x53bac2['push'](new _0x1771cd(_0x1cebae,_0x3e18a6['howMany'],_0x47ffe9,_0x361288++)),_0x53bac2['push'](new _0x1771cd(_0x47ffe9['getShiftedBy'](_0x3e18a6['howMany']),0x1,_0x1cf268,_0x361288++));break;}case'wrap':{const _0x2e4fb8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['range']['start']),_0x68cb11=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x3e18a6['range']['end']),_0x278381=_0x3e18a6['token']['element']['_clone'](!0x1),_0x17b9c8=_0x3e18a6['range']['end']['slice']();_0x17b9c8['push'](0x0);const _0x2750c5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x17b9c8);_0x53bac2['push'](new _0x5886ed(_0x68cb11,_0x278381,_0x361288++)),_0x53bac2['push'](new _0x1771cd(_0x2e4fb8,_0x68cb11['offset']-_0x2e4fb8['offset'],_0x2750c5,_0x361288++));break;}}return _0x53bac2;}['_tokenizeModel'](_0x14f37c){const _0x342725=[],_0x5e1b00=_0x4fb0d8['_createIn'](_0x14f37c),_0x5379d1=new _0xdb1884({'boundaries':_0x5e1b00});let _0x53c5d9='',_0x3acf25=null;const _0x108052=[''],_0x45bd29=new Map();for(const _0x5f1c67 of _0x5379d1)if('elementStart'==_0x5f1c67['type']||'elementEnd'==_0x5f1c67['type']){let _0x5c0d83=_0x108052[0x0];''!==_0x53c5d9&&(_0x342725['push'](...this['_makeTokensFromTextByWords'](_0x53c5d9,_0x3acf25,_0x5c0d83)),_0x53c5d9='');const _0x3a9aec=_0x5f1c67['item'];let _0x34d0dd;_0x3a9aec['getAttribute'](St)?_0x34d0dd=_0x3a9aec['getAttribute'](St):'elementStart'==_0x5f1c67['type']?(_0x34d0dd=_(_0x3a9aec),_0x45bd29['set'](_0x3a9aec,_0x34d0dd)):_0x34d0dd=_0x45bd29['get'](_0x3a9aec);const _0x438f55=this['_getElementCategory'](_0x3a9aec);'solid'==_0x438f55&&('elementStart'==_0x5f1c67['type']?(_0x5c0d83=_0x34d0dd,_0x108052['unshift'](_0x5c0d83)):_0x108052['shift']());const _0x11265c={'type':'element','element':_0x3a9aec,'elementId':_0x34d0dd,'category':_0x438f55,'isStart':'elementStart'==_0x5f1c67['type'],'limitId':_0x5c0d83};_0x342725['push'](_0x11265c);}else''==_0x53c5d9&&(_0x3acf25=_0x5f1c67['previousPosition']['clone']()),_0x53c5d9+=_0x5f1c67['item']['data'];return''!==_0x53c5d9&&_0x342725['push'](...this['_makeTokensFromTextByWords'](_0x53c5d9,_0x3acf25,_0x108052[0x0])),_0x342725;}['_makeTokensFromTextByWords'](_0x26427c,_0x5884ae,_0xca920c){const _0x442a79=_0x26427c['matchAll'](/(\s)/g),_0x2eb777=Array['from'](_0x442a79)['map'](_0x1acf41=>_0x1acf41['index']);_0x2eb777['push'](_0x26427c['length']),0x0==_0x2eb777[0x0]&&_0x2eb777['shift']();const _0x9919fc=[],_0x2092d8=_0x5884ae['parent'];let _0x3af0d4=0x0,_0x28bca4=_0x5884ae['offset'];for(let _0x451f28=0x0;_0x451f28<_0x2eb777['length'];_0x451f28++)_0x9919fc['push']({'type':'text','data':_0x26427c['slice'](_0x3af0d4,_0x2eb777[_0x451f28]),'parent':_0x2092d8,'offset':_0x28bca4,'limitId':_0xca920c}),_0x3af0d4=_0x2eb777[_0x451f28],_0x28bca4=_0x5884ae['offset']+_0x2eb777[_0x451f28];return _0x9919fc;}['_getElementCategory'](_0x2b090c){const _0x21a4ed=this['_editor']['model']['schema'];return _0x21a4ed['isLimit'](_0x2b090c)||_0x21a4ed['isContent'](_0x2b090c)||_0x21a4ed['isInline'](_0x2b090c)?'solid':_0x21a4ed['isBlock'](_0x2b090c)?'block':'container';}['_diffModelTokens'](_0x4edf1c,_0x57ce87){const _0x1e749c=_0xdb167f(_0x4edf1c,_0x57ce87,{'comparator':g});this['_handleUnclosedBlockOpeningTags'](_0x1e749c);const _0x128c55=_0x1e749c['flatMap'](_0x952169=>{const _0x57893a=_0x952169['added']?'added':_0x952169['removed']?'removed':'unchanged';return _0x952169['value']['map'](_0x12d50b=>({'token':_0x12d50b,'change':_0x57893a}));});let _0x440eb2=0x0;for(const _0x15350a of _0x128c55)'added'!=_0x15350a['change']&&('unchanged'==_0x15350a['change']&&(_0x15350a['before']=_0x4edf1c[_0x440eb2]),_0x440eb2++);return _0x128c55;}['_handleUnclosedBlockOpeningTags'](_0x2d8942){for(let _0x495708=0x0;_0x495708<_0x2d8942['length']-0x1;_0x495708++)if(_0x2d8942[_0x495708]['removed']&&_0x2d8942[_0x495708+0x1]['added']){const _0x59dc5d=this['_findUnclosedBlockOpeningToken'](_0x2d8942[_0x495708]['value']);if(null!==_0x59dc5d){const _0x25d242=this['_findUnclosedBlockOpeningToken'](_0x2d8942[_0x495708+0x1]['value']),_0x311674=_0x2d8942[_0x495708]['value']['splice'](_0x59dc5d),_0x4a9c0a=_0x2d8942[_0x495708+0x1]['value']['splice'](_0x25d242),_0x45ca1d=[_0x4a9c0a['shift']()];_0x311674['shift']();const _0x2d0c05={'value':_0x311674,'removed':!0x0},_0x45936a={'value':_0x4a9c0a,'added':!0x0},_0x2b0052={'value':_0x45ca1d};_0x2d8942['splice'](_0x495708+0x2,0x0,_0x2b0052,_0x2d0c05,_0x45936a);}}}['_findUnclosedBlockOpeningToken'](_0xa992bb){let _0x38722c=0x0,_0x323dc6=-0x1;for(let _0x1c081f=0x0;_0x1c081f<_0xa992bb['length'];_0x1c081f++){const _0x3884a5=_0xa992bb[_0x1c081f];'element'==_0x3884a5['type']&&'block'==_0x3884a5['category']&&(_0x38722c+=_0x3884a5['isStart']?0x1:-0x1,_0x3884a5['isStart']&&(_0x323dc6=_0x1c081f));}return 0x0===_0x38722c?null:_0x323dc6;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x1add75=0x0;_0x1add75<this['_diffItems']['length'];_0x1add75++){const _0x2db4a6=this['_diffItems'][_0x1add75]['change'],_0x27a58c=[];_0x27a58c['push'](this['_diffItems'][_0x1add75]);let _0x181ba5=_0x1add75+0x1;for(;this['_diffItems'][_0x181ba5]&&this['_diffItems'][_0x181ba5]['change']==_0x2db4a6;)_0x27a58c['push'](this['_diffItems'][_0x181ba5]),_0x181ba5++,_0x1add75++;const _0x275e0a=_0x27a58c['map'](_0x507c5b=>_0x507c5b['token']);if('unchanged'==_0x2db4a6)_0x27a58c['map'](_0x1da7bf=>_0x1da7bf['before'])['forEach'](_0x36c68e=>this['_traverseOverItem'](_0x36c68e));else{if('removed'==_0x2db4a6){if(this['_markDeletions']){const _0x125a52=this['_path']['slice']();_0x275e0a['forEach'](_0x4f1789=>this['_traverseOverItem'](_0x4f1789));const _0x31d760=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x125a52,'end':_0x31d760}});}else this['_handleChanged'](_0x275e0a,!0x0,this['_path']['slice']());}else{const _0x2c5f9b=_0x275e0a['filter'](_0x2a5c5d=>'element'!=_0x2a5c5d['type']||'container'!=_0x2a5c5d['category']);this['_handleChanged'](_0x2c5f9b,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x4673fd=0x0;_0x4673fd<this['_diffItems']['length'];_0x4673fd++){const _0x48c90f=this['_diffItems'][_0x4673fd]['change'],_0x285fb3=[];_0x285fb3['push'](this['_diffItems'][_0x4673fd]);let _0x21c42d=_0x4673fd+0x1;for(;this['_diffItems'][_0x21c42d]&&this['_diffItems'][_0x21c42d]['change']==_0x48c90f;)_0x285fb3['push'](this['_diffItems'][_0x21c42d]),_0x21c42d++,_0x4673fd++;const _0x307381=_0x285fb3['map'](_0x9c2413=>_0x9c2413['token']);if('unchanged'==_0x48c90f){const _0x2953eb=_0x285fb3['map'](_0x201c62=>_0x201c62['before']);this['_handleUnchanged'](_0x2953eb,_0x307381);}else('removed'!=_0x48c90f||this['_markDeletions'])&&_0x307381['forEach'](_0xc3eabb=>{this['_traverseOverItem'](_0xc3eabb);});}}['_calculateMarkersOperationsData'](_0xd400d3,_0x297d75){const _0x3a52d7={};for(const [_0x530ca7]of _0xd400d3)_0x3a52d7[_0x530ca7]=null;for(const [_0x42de27,_0x15b089]of _0x297d75)_0x3a52d7[_0x42de27]=_0x15b089;const _0xe27087=Object['entries'](_0x3a52d7)['map'](([_0xd0f91,_0x167597])=>({'type':'marker','name':_0xd0f91,'range':_0x167597?{'start':_0x167597['start']['path']['slice'](),'end':_0x167597['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xe27087);}['_handleUnwraps'](){const _0x3712f4=new Map(),_0x1c3a53=[],_0x22a04f=[0x0];let _0xede5ed=this['_diffItems']['length']+0x1;for(let _0x3eee4d=this['_diffItems']['length']-0x1;_0x3eee4d>=0x0;_0x3eee4d--){const {token:_0x124c7c,before:_0x134f5f,change:_0x488f10}=this['_diffItems'][_0x3eee4d];if('removed'!=_0x488f10&&(_0xede5ed=_0x3eee4d),'element'!=_0x124c7c['type']||'container'!=_0x124c7c['category']||'added'==_0x488f10)continue;const _0x4a1947=_0x134f5f?_0x134f5f['element']:_0x124c7c['element'];if(_0x124c7c['isStart']){const _0x472578=_0x3712f4['get'](_0x4a1947),_0x214c36=this['_diffItems'][_0x472578];('removed'==_0x488f10||'removed'==_0x214c36['change'])&&_0xede5ed<_0x472578&&(this['_operationsData']['push']({'type':'unwrap','path':_0x4a1947['getPath'](),'howMany':_0x4a1947['maxOffset']+_0x22a04f[0x0]}),_0x22a04f['shift'](),_0x22a04f[0x0]+=_0x4a1947['maxOffset']-0x1,_0x1c3a53['push'](_0x3eee4d),_0x1c3a53['push'](_0x472578));}else _0x3712f4['set'](_0x4a1947,_0x3eee4d),_0x22a04f['unshift'](0x0);}_0x1c3a53['sort']((_0x2ec2de,_0x4f5221)=>_0x4f5221-_0x2ec2de),_0x1c3a53['forEach'](_0x3f3f0d=>{const _0x2d1061=this['_diffItems'][_0x3f3f0d];'removed'==_0x2d1061['change']?this['_diffItems']['splice'](_0x3f3f0d,0x1):(_0x2d1061['change']='added',delete _0x2d1061['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5c3b2f=[];for(let _0x1d0322=0x0;_0x1d0322<this['_diffItems']['length'];_0x1d0322++){const {change:_0x455d18,token:_0x24222c}=this['_diffItems'][_0x1d0322];if('added'==_0x455d18&&'element'==_0x24222c['type']&&'container'==_0x24222c['category']){if(_0x24222c['isStart'])_0x5c3b2f['push'](this['_path']['slice']());else{if(!_0x24222c['isStart']){const _0x32f5a4=_0x5c3b2f['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x32f5a4,'end':this['_path']['slice']()},'token':_0x24222c}),this['_path'][this['_path']['length']-0x1]=_0x32f5a4[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x455d18||this['_markDeletions'])&&this['_traverseOverItem'](_0x24222c);}}['_handleUnchanged'](_0x5714c6,_0x2240ee){for(let _0x520e4c=0x0;_0x520e4c<_0x5714c6['length'];_0x520e4c++){const _0x560d17=_0x5714c6[_0x520e4c];if('element'==_0x560d17['type']&&_0x560d17['isStart']){const _0x192564=_0x2240ee[_0x520e4c];'block'==_0x560d17['category']&&this['_handleElementRename'](_0x560d17['element'],_0x192564['element'],this['_path']),this['_handleElementAttributeChanges'](_0x560d17['element'],_0x192564['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x192564);}else{if('element'!=_0x560d17['type']||_0x560d17['isStart']){if('text'==_0x560d17['type']){const _0x7561af=this['_path']['slice'](),_0x4bce05=[],_0x40cfc2=[];for(;_0x5714c6[_0x520e4c]&&'text'==_0x5714c6[_0x520e4c]['type'];)_0x4bce05['push'](_0x5714c6[_0x520e4c]),_0x40cfc2['push'](_0x2240ee[_0x520e4c]),this['_path'][this['_path']['length']-0x1]+=_0x5714c6[_0x520e4c]['data']['length'],_0x520e4c++;_0x520e4c--,this['_handleTextAttributeChanges'](_0x4bce05,_0x40cfc2,_0x7561af);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x4c2d44,_0x277fea,_0x2fdc6d){const _0x4d4010=[],_0x3389e7=[],_0x1d3180=_0x2fdc6d['slice']();for(let _0x33cab2=0x0;_0x33cab2<_0x4c2d44['length'];_0x33cab2++){const _0x55766a=_0x4c2d44[_0x33cab2],_0x235e48=_0x2fdc6d['slice']();if('element'!=_0x55766a['type']||_0x55766a['isStart'])'element'==_0x55766a['type']&&_0x55766a['isStart']?(_0x2fdc6d['push'](0x0),_0x277fea||this['_parents']['push'](_0x55766a),_0x3389e7['push']({'before':_0x235e48,'after':_0x2fdc6d['slice'](),'index':_0x33cab2})):_0x2fdc6d[_0x2fdc6d['length']-0x1]+=_0x55766a['data']['length'];else{let _0x178890;_0x2fdc6d['pop'](),_0x2fdc6d[_0x2fdc6d['length']-0x1]++,_0x178890=_0x277fea?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x3389e7['length']?_0x3389e7['pop']():_0x4d4010['push']({'before':_0x235e48,'after':_0x2fdc6d['slice'](),'index':_0x33cab2,'related':_0x178890});}}if(_0x3389e7['length']!==_0x4d4010['length'])throw new _0x17c3db('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x4c2d44,'isRemove':_0x277fea});const _0x534027=[{'after':_0x1d3180['slice'](),'index':-0x1},..._0x4d4010,..._0x3389e7,{'before':_0x2fdc6d['slice'](),'index':_0x4c2d44['length']}];if(_0x277fea){for(let _0x5e19b7=_0x534027['length']-0x1;_0x5e19b7>=0x1;_0x5e19b7--){const _0x35c970=_0x534027[_0x5e19b7-0x1]['after'],_0x152f19=_0x534027[_0x5e19b7]['before'],_0x4fae14=_0x152f19[_0x152f19['length']-0x1]-_0x35c970[_0x35c970['length']-0x1];_0x4fae14&&(this['_operationsData']['push']({'type':'remove','path':_0x35c970,'howMany':_0x4fae14}),_0x152f19[_0x152f19['length']-0x1]-=_0x4fae14);}for(const {before:_0x516a56}of _0x4d4010)this['_operationsData']['push']({'type':'merge','path':_0x516a56});}else for(let _0x3fa495=0x0;_0x3fa495<_0x534027['length']-0x1;_0x3fa495++){const _0x4bd390=_0x534027[_0x3fa495]['after'],_0x628097=_0x534027[_0x3fa495+0x1]['before'],_0x50895f=_0x534027[_0x3fa495]['index']+0x1,_0x3c58b8=_0x534027[_0x3fa495+0x1]['index'];if(_0x50895f!==_0x3c58b8&&this['_operationsData']['push']({'type':'insert','path':_0x4bd390,'tokens':_0x4c2d44['slice'](_0x50895f,_0x3c58b8)}),_0x3fa495<_0x4d4010['length']){this['_operationsData']['push']({'type':'split','path':_0x628097});const _0xaa782f=_0x4c2d44[_0x3389e7[_0x3389e7['length']-0x1-_0x3fa495]['index']],_0x320ada=_0x4d4010[_0x3fa495]['after'],_0x9f7f21=_0x4d4010[_0x3fa495]['related']['element'];this['_handleElementRename'](_0x9f7f21,_0xaa782f['element'],_0x320ada),this['_handleElementAttributeChanges'](_0x9f7f21,_0xaa782f['element'],_0x320ada);}}}['_traverseOverItem'](_0x3f3ace){'element'==_0x3f3ace['type']&&_0x3f3ace['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x3f3ace)):'element'!=_0x3f3ace['type']||_0x3f3ace['isStart']?'text'==_0x3f3ace['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x3f3ace['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x3cec28,_0x2935c2,_0x248547){_0x3cec28['name']!=_0x2935c2['name']&&this['_operationsData']['push']({'type':'rename','path':_0x248547['slice'](),'oldName':_0x3cec28['name'],'newName':_0x2935c2['name']});}['_handleElementAttributeChanges'](_0x117ea0,_0x36742e,_0x535998){const _0x466888=this['_getAttributeChanges'](_0x117ea0['getAttributes'](),_0x36742e['getAttributes']());for(const _0x4f5e67 in _0x466888){const {oldValue:_0xda7f5,newValue:_0x14b84d}=_0x466888[_0x4f5e67];this['_operationsData']['push']({'type':'attribute','path':_0x535998['slice'](),'howMany':0x1,'key':_0x4f5e67,'oldValue':_0xda7f5,'newValue':_0x14b84d});}}['_handleTextAttributeChanges'](_0x24da94,_0x77978,_0x5272cd){const _0x29fadc=this['_operationsData'],_0x2455c4=_0x24da94[0x0]['parent'],_0x1066f7=_0x24da94[0x0]['offset'],_0xdebd4=_0x77978[0x0]['parent'],_0x555ec9=_0x77978[0x0]['offset'],_0x446fd6=_0x24da94['reduce']((_0x468f5f,_0x5f48d0)=>_0x468f5f+_0x5f48d0['data']['length'],0x0),_0x1578cc=this['_getAttrsForOffsets'](_0x2455c4,_0x1066f7,_0x446fd6),_0x3db890=this['_getAttrsForOffsets'](_0xdebd4,_0x555ec9,_0x446fd6),_0x559da6={};for(let _0x6d17eb=0x0;_0x6d17eb<_0x446fd6;_0x6d17eb++){const _0x485632=_0x1578cc[_0x1066f7+_0x6d17eb],_0x2fac86=_0x3db890[_0x555ec9+_0x6d17eb],_0xc58041=this['_getAttributeChanges'](_0x485632,_0x2fac86);for(const _0x4dd4c8 in _0x559da6)_0xc58041[_0x4dd4c8]||_0x7a2a7a(_0x4dd4c8);for(const _0x13bba4 in _0xc58041){const {oldValue:_0x48c837,newValue:_0x5a74a6}=_0xc58041[_0x13bba4],_0xcfc076=_0x559da6[_0x13bba4];_0xcfc076?_0xcfc076['oldValue']==_0x48c837&&_0xcfc076['newValue']==_0x5a74a6?_0xcfc076['length']++:(_0x7a2a7a(_0x13bba4),_0x559da6[_0x13bba4]={'oldValue':_0x48c837,'newValue':_0x5a74a6,'start':_0x6d17eb,'length':0x1}):_0x559da6[_0x13bba4]={'oldValue':_0x48c837,'newValue':_0x5a74a6,'start':_0x6d17eb,'length':0x1};}}for(const _0x276b78 in _0x559da6)_0x7a2a7a(_0x276b78);function _0x7a2a7a(_0x5244ca){const _0x33a081=_0x559da6[_0x5244ca],_0x2227b9=_0x5272cd['slice']();_0x2227b9[_0x2227b9['length']-0x1]+=_0x33a081['start'],_0x29fadc['push']({'type':'attribute','path':_0x2227b9,'howMany':_0x33a081['length'],'key':_0x5244ca,'oldValue':_0x33a081['oldValue'],'newValue':_0x33a081['newValue']}),delete _0x559da6[_0x5244ca];}}['_getAttributeChanges'](_0x23c2c2,_0x1cd329){const _0x2c970c={};for(const [_0x40e475,_0x375464]of _0x23c2c2)_0x2c970c[_0x40e475]={'oldValue':JSON['stringify'](_0x375464),'newValue':'null'};for(const [_0x1c3284,_0x14217d]of _0x1cd329){const _0x3597f2=JSON['stringify'](_0x14217d);_0x2c970c[_0x1c3284]?_0x2c970c[_0x1c3284]['oldValue']==_0x3597f2?delete _0x2c970c[_0x1c3284]:_0x2c970c[_0x1c3284]['newValue']=_0x3597f2:_0x2c970c[_0x1c3284]={'oldValue':'null','newValue':_0x3597f2};}return delete _0x2c970c[St],_0x2c970c;}['_getAttrsForOffsets'](_0x504da4,_0x6c422b,_0xc95d4f){const _0x12e7fe=new Array(_0x6c422b+_0xc95d4f);let _0x85ee46=_0x504da4['getChildAtOffset'](_0x6c422b),_0x208805=_0x85ee46['startOffset'];for(;_0x85ee46&&_0x208805<_0x6c422b+_0xc95d4f;){const _0x29182b=Array['from'](_0x85ee46['getAttributes']());_0x12e7fe['fill'](_0x29182b,_0x208805,_0x208805+_0x85ee46['offsetSize']),_0x208805+=_0x85ee46['offsetSize'],_0x85ee46=_0x85ee46['nextSibling'];}return _0x12e7fe;}['_getPositionFromAnchorAndPath'](_0x2d528c,_0x141c18){const _0x125c56=[..._0x2d528c['path']['slice'](0x0,-0x1),_0x2d528c['offset']+_0x141c18[0x0],..._0x141c18['slice'](0x1)];return new _0x2a14a8(_0x2d528c['root'],_0x125c56);}['_makeModelFromTokens'](_0x470c3e){const _0x1b2e0c=[];let _0x149e18=null;for(const _0x467062 of _0x470c3e)if('element'!=_0x467062['type']||_0x467062['isStart']||_0x149e18!=_0x467062['element']){if(!_0x149e18){if('text'==_0x467062['type']){const _0x493860=_0x2a14a8['_createAt'](_0x467062['parent'],_0x467062['offset']),_0x1f2f23=_0x4fb0d8['_createFromPositionAndShift'](_0x493860,_0x467062['data']['length']),_0x644055=Array['from'](_0x1f2f23['getItems']())['map'](_0xbea170=>new _0x4e89dd(_0xbea170['data'],_0xbea170['getAttributes']()));_0x1b2e0c['push'](..._0x644055);}else{_0x149e18=_0x467062['element'];const _0x514b9c=_0x467062['element']['_clone'](!0x0);_0x514b9c['_removeAttribute'](St);for(const _0x1df7f6 of this['_editor']['model']['createRangeIn'](_0x514b9c)['getItems']())_0x1df7f6['is']('element')&&_0x1df7f6['_removeAttribute'](St);_0x1b2e0c['push'](_0x514b9c);}}}else _0x149e18=null;return _0x1b2e0c;}}function g(_0x4652ec,_0x1262f6){return _0x4652ec['type']===_0x1262f6['type']&&(_0x4652ec['limitId']===_0x1262f6['limitId']&&('text'==_0x4652ec['type']?_0x4652ec['data']==_0x1262f6['data']:function(_0x34dc13,_0x575133){if(_0x34dc13['isStart']!=_0x575133['isStart'])return!0x1;if(_0x34dc13['isStart']&&_0x34dc13['elementId']!=_0x575133['elementId'])return!0x1;if(_0x34dc13['category']!=_0x575133['category'])return!0x1;if('block'==_0x34dc13['category'])return!0x0;if('container'==_0x34dc13['category']&&_0x34dc13['elementId']!=_0x575133['elementId'])return!0x1;return _0x34dc13['element']['name']==_0x575133['element']['name'];}(_0x4652ec,_0x1262f6)));}function _(_0x596ecd){return k({'name':_0x596ecd['name'],...Object['fromEntries'](_0x596ecd['getAttributes']())});}export{dt as AriaDescriptionView,vt as ConfirmMixin,St as DATA_ID_MODEL_ATTRIBUTE,Et as DATA_ID_VIEW_ATTRIBUTE,At as DocumentCompare,It 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,_t as setupThreadKeyboardNavigation,v as splitSuggestionMarkerName,xt 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.6.0-alpha.4",
3
+ "version": "47.6.0-alpha.5",
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.6.0-alpha.4",
36
- "@ckeditor/ckeditor5-comments": "47.6.0-alpha.4",
37
- "@ckeditor/ckeditor5-core": "47.6.0-alpha.4",
38
- "@ckeditor/ckeditor5-icons": "47.6.0-alpha.4",
39
- "@ckeditor/ckeditor5-link": "47.6.0-alpha.4",
40
- "@ckeditor/ckeditor5-list": "47.6.0-alpha.4",
41
- "@ckeditor/ckeditor5-theme-lark": "47.6.0-alpha.4",
42
- "@ckeditor/ckeditor5-track-changes": "47.6.0-alpha.4",
43
- "@ckeditor/ckeditor5-ui": "47.6.0-alpha.4",
44
- "@ckeditor/ckeditor5-utils": "47.6.0-alpha.4",
45
- "@ckeditor/ckeditor5-widget": "47.6.0-alpha.4",
46
- "ckeditor5": "47.6.0-alpha.4",
35
+ "@ckeditor/ckeditor5-engine": "47.6.0-alpha.5",
36
+ "@ckeditor/ckeditor5-comments": "47.6.0-alpha.5",
37
+ "@ckeditor/ckeditor5-core": "47.6.0-alpha.5",
38
+ "@ckeditor/ckeditor5-icons": "47.6.0-alpha.5",
39
+ "@ckeditor/ckeditor5-link": "47.6.0-alpha.5",
40
+ "@ckeditor/ckeditor5-list": "47.6.0-alpha.5",
41
+ "@ckeditor/ckeditor5-theme-lark": "47.6.0-alpha.5",
42
+ "@ckeditor/ckeditor5-track-changes": "47.6.0-alpha.5",
43
+ "@ckeditor/ckeditor5-ui": "47.6.0-alpha.5",
44
+ "@ckeditor/ckeditor5-utils": "47.6.0-alpha.5",
45
+ "@ckeditor/ckeditor5-widget": "47.6.0-alpha.5",
46
+ "ckeditor5": "47.6.0-alpha.5",
47
47
  "diff": "8.0.3",
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 _0x497fb8=_0x23a6;(function(_0x242c36,_0x3b3db8){const _0x471e24=_0x23a6,_0x2774c7=_0x242c36();while(!![]){try{const _0x25fbfb=parseInt(_0x471e24(0x99))/0x1*(-parseInt(_0x471e24(0xa5))/0x2)+-parseInt(_0x471e24(0x90))/0x3+parseInt(_0x471e24(0x93))/0x4+-parseInt(_0x471e24(0x9b))/0x5*(-parseInt(_0x471e24(0x98))/0x6)+-parseInt(_0x471e24(0x8a))/0x7*(-parseInt(_0x471e24(0xa0))/0x8)+-parseInt(_0x471e24(0x87))/0x9+-parseInt(_0x471e24(0x9e))/0xa;if(_0x25fbfb===_0x3b3db8)break;else _0x2774c7['push'](_0x2774c7['shift']());}catch(_0x1c1de6){_0x2774c7['push'](_0x2774c7['shift']());}}}(_0x2d78,0x2357b));import{Plugin as _0x34fbe0}from'ckeditor5/src/core.js';import{toArray as _0x893a8c}from'ckeditor5/src/utils.js';import{setHighlightHandling as _0xc77d9f}from'ckeditor5/src/widget.js';function _0x23a6(_0x5967ed,_0x467827){const _0x2d7840=_0x2d78();return _0x23a6=function(_0x23a6e1,_0x238e57){_0x23a6e1=_0x23a6e1-0x85;let _0x4dec68=_0x2d7840[_0x23a6e1];return _0x4dec68;},_0x23a6(_0x5967ed,_0x467827);}import{splitSuggestionMarkerName as _0x114f30}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x34fbe0{[_0x497fb8(0x8b)](){const _0x496066=_0x497fb8,_0x209e28=this[_0x496066(0x86)];if(!_0x209e28[_0x496066(0x8d)][_0x496066(0xa4)](_0x496066(0x96)))return;_0x209e28[_0x496066(0xa1)][_0x496066(0x8f)]['on'](_0x496066(0x9f),(_0x2f517a,_0x21c00e,_0x2b10f4)=>{((_0x5b7732,_0x44f976,_0x39f479)=>{const _0xdb169d=_0x23a6;if(!_0x39f479[_0xdb169d(0x9a)][_0xdb169d(0x9d)])return;const _0x28ce70=_0x44f976[_0xdb169d(0x94)];if(!_0x28ce70||!_0x28ce70['is'](_0xdb169d(0xa2),_0xdb169d(0x8c)))return;const _0x5ab26a=_0x39f479[_0xdb169d(0xa3)][_0xdb169d(0x91)](_0x28ce70);if(_0x5ab26a){const {id:_0x3efe18,authorId:_0x3b2628}=_0x114f30(_0x44f976[_0xdb169d(0x97)]);_0xc77d9f(_0x5ab26a,_0x39f479[_0xdb169d(0x92)],(_0x16f252,_0x4046ca,_0x476f8c)=>{const _0x2ba2d6=_0xdb169d;_0x476f8c[_0x2ba2d6(0x95)](_0x893a8c(_0x4046ca[_0x2ba2d6(0x88)]),_0x16f252),_0x476f8c[_0x2ba2d6(0x85)](_0x2ba2d6(0x8e),_0x3efe18,_0x16f252),_0x476f8c[_0x2ba2d6(0x85)](_0x2ba2d6(0x89),_0x3b2628,_0x16f252);});}})(0x0,_0x21c00e,_0x2b10f4);},{'priority':_0x496066(0x9c)});}}function _0x2d78(){const _0x5e6f48=['565629FXHvwC','toViewElement','writer','775336zUljAT','item','addClass','Table','markerName','30EPTSGC','13SxjlsI','options','245725GAsmNm','highest','showSuggestionHighlights','367110gQSiSj','addMarker:suggestion','64qSSJPT','data','element','mapper','has','28218wfBzNl','setAttribute','editor','1068309Iqxdcm','classes','data-author-id','203504HBvSeS','afterInit','tableCell','plugins','data-suggestion-id','downcastDispatcher'];_0x2d78=function(){return _0x5e6f48;};return _0x2d78();}
23
+ const _0x61eb4c=_0x414a;(function(_0x26fdbc,_0x2aaa56){const _0x4bbaa7=_0x414a,_0x49f9d4=_0x26fdbc();while(!![]){try{const _0x2b5bde=-parseInt(_0x4bbaa7(0xde))/0x1*(parseInt(_0x4bbaa7(0xdc))/0x2)+parseInt(_0x4bbaa7(0xe0))/0x3+parseInt(_0x4bbaa7(0xe5))/0x4*(-parseInt(_0x4bbaa7(0xe1))/0x5)+-parseInt(_0x4bbaa7(0xd7))/0x6+-parseInt(_0x4bbaa7(0xcb))/0x7+-parseInt(_0x4bbaa7(0xcf))/0x8+parseInt(_0x4bbaa7(0xc9))/0x9;if(_0x2b5bde===_0x2aaa56)break;else _0x49f9d4['push'](_0x49f9d4['shift']());}catch(_0x17aec5){_0x49f9d4['push'](_0x49f9d4['shift']());}}}(_0x2db7,0x516d2));import{Plugin as _0x5ef5bc}from'ckeditor5/src/core.js';function _0x2db7(){const _0x5ea817=['215346taflaz','data-author-id','classes','downcastDispatcher','options','4nqdJgk','toViewElement','213113OHwwgy','afterInit','1127835szciyv','5bKXWat','addMarker:suggestion','writer','showSuggestionHighlights','317868hrzTqG','item','editor','addClass','12882537JnmzOP','element','2609530lEklcu','data-suggestion-id','Table','tableCell','4475536xuUzXh','has','highest','mapper','data','plugins','setAttribute','markerName'];_0x2db7=function(){return _0x5ea817;};return _0x2db7();}import{toArray as _0x46debe}from'ckeditor5/src/utils.js';import{setHighlightHandling as _0x48197b}from'ckeditor5/src/widget.js';function _0x414a(_0x6595c7,_0x4cee41){const _0x2db7cb=_0x2db7();return _0x414a=function(_0x414a9f,_0x11c5a1){_0x414a9f=_0x414a9f-0xc6;let _0x41b738=_0x2db7cb[_0x414a9f];return _0x41b738;},_0x414a(_0x6595c7,_0x4cee41);}import{splitSuggestionMarkerName as _0x277947}from'../../utils/suggestionmarkerutils.js';export class SuggestionsConversionTable extends _0x5ef5bc{[_0x61eb4c(0xdf)](){const _0x447950=_0x61eb4c,_0x2654ab=this[_0x447950(0xc7)];if(!_0x2654ab[_0x447950(0xd4)][_0x447950(0xd0)](_0x447950(0xcd)))return;_0x2654ab[_0x447950(0xd3)][_0x447950(0xda)]['on'](_0x447950(0xe2),(_0x2a336a,_0x8934a1,_0x175540)=>{((_0x287ee9,_0x37ad88,_0x4fdf7f)=>{const _0x281c18=_0x414a;if(!_0x4fdf7f[_0x281c18(0xdb)][_0x281c18(0xe4)])return;const _0x1ed492=_0x37ad88[_0x281c18(0xc6)];if(!_0x1ed492||!_0x1ed492['is'](_0x281c18(0xca),_0x281c18(0xce)))return;const _0x8308e4=_0x4fdf7f[_0x281c18(0xd2)][_0x281c18(0xdd)](_0x1ed492);if(_0x8308e4){const {id:_0x1273f6,authorId:_0x2bf2c1}=_0x277947(_0x37ad88[_0x281c18(0xd6)]);_0x48197b(_0x8308e4,_0x4fdf7f[_0x281c18(0xe3)],(_0x9b39b0,_0x1d89c7,_0x43fce2)=>{const _0x48e5cd=_0x281c18;_0x43fce2[_0x48e5cd(0xc8)](_0x46debe(_0x1d89c7[_0x48e5cd(0xd9)]),_0x9b39b0),_0x43fce2[_0x48e5cd(0xd5)](_0x48e5cd(0xcc),_0x1273f6,_0x9b39b0),_0x43fce2[_0x48e5cd(0xd5)](_0x48e5cd(0xd8),_0x2bf2c1,_0x9b39b0);});}})(0x0,_0x8934a1,_0x175540);},{'priority':_0x447950(0xd1)});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4256f3=_0x57e9;(function(_0x41e5f7,_0x1c93d2){const _0x17a0d6=_0x57e9,_0x4d417c=_0x41e5f7();while(!![]){try{const _0x3f8a15=parseInt(_0x17a0d6(0x1dd))/0x1+parseInt(_0x17a0d6(0x1e0))/0x2*(parseInt(_0x17a0d6(0x1ef))/0x3)+-parseInt(_0x17a0d6(0x1f2))/0x4+parseInt(_0x17a0d6(0x1f9))/0x5+parseInt(_0x17a0d6(0x1f7))/0x6+parseInt(_0x17a0d6(0x1ec))/0x7*(-parseInt(_0x17a0d6(0x1e5))/0x8)+parseInt(_0x17a0d6(0x1f0))/0x9*(-parseInt(_0x17a0d6(0x1e8))/0xa);if(_0x3f8a15===_0x1c93d2)break;else _0x4d417c['push'](_0x4d417c['shift']());}catch(_0x5edad9){_0x4d417c['push'](_0x4d417c['shift']());}}}(_0x228f,0xe0eef));function _0x57e9(_0x5cc272,_0x27428e){const _0x228fe3=_0x228f();return _0x57e9=function(_0x57e934,_0x1d5f7d){_0x57e934=_0x57e934-0x1dc;let _0xcf6bdb=_0x228fe3[_0x57e934];return _0xcf6bdb;},_0x57e9(_0x5cc272,_0x27428e);}import{View as _0x498e9d,IconView as _0x120361}from'ckeditor5/src/ui.js';import{IconNotification as _0x12386c}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export class UserView extends _0x498e9d{[_0x4256f3(0x1fa)];[_0x4256f3(0x1e9)];constructor(_0x2d3b24,_0x46d94a,_0x554dd5){const _0x39f72b=_0x4256f3;super(_0x2d3b24),this[_0x39f72b(0x1fa)]=_0x46d94a[_0x39f72b(0x1fa)],this[_0x39f72b(0x1e9)]=null;const _0x5607e8=['ck',_0x39f72b(0x1ea)],_0x1da521=['ck',_0x39f72b(0x1e1)];if(_0x46d94a[_0x39f72b(0x1e4)]&&_0x1da521[_0x39f72b(0x1e3)](_0x39f72b(0x1de)),!_0x46d94a[_0x39f72b(0x1e4)]&&_0x46d94a[_0x39f72b(0x1f5)]&&_0x5607e8[_0x39f72b(0x1e3)](_0x39f72b(0x1e7)),_0x46d94a[_0x39f72b(0x1eb)]&&_0x1da521[_0x39f72b(0x1e3)](_0x39f72b(0x1f4)),_0x554dd5){const _0x2a5dbf=new _0x120361();_0x2a5dbf[_0x39f72b(0x1dc)]({'attributes':{'class':[_0x39f72b(0x1f6)]}}),_0x2a5dbf[_0x39f72b(0x1e2)]=_0x12386c,this[_0x39f72b(0x1e9)]={'tag':_0x39f72b(0x1ed),'attributes':{'class':['ck',_0x39f72b(0x1df)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x554dd5},'children':[_0x2a5dbf]};}const _0x3cd316=[{'tag':_0x39f72b(0x1ed),'attributes':{'class':_0x1da521,'style':{'background-image':_0x46d94a[_0x39f72b(0x1eb)]?_0x39f72b(0x1f3)+_0x46d94a[_0x39f72b(0x1eb)]+'\x27)':''}}},{'tag':_0x39f72b(0x1ed),'attributes':{'class':_0x46d94a[_0x39f72b(0x1eb)]?_0x39f72b(0x1ee):_0x39f72b(0x1e6),'aria-label':_0x46d94a[_0x39f72b(0x1fa)]},'children':[{'text':_0x46d94a[_0x39f72b(0x1f8)]}]}];this[_0x39f72b(0x1e9)]&&_0x3cd316[_0x39f72b(0x1e3)](this[_0x39f72b(0x1e9)]),this[_0x39f72b(0x1f1)]({'tag':_0x39f72b(0x1ed),'attributes':{'class':_0x5607e8,'data-user-id':_0x46d94a['id']},'children':_0x3cd316});}}function _0x228f(){const _0x2cfe2d=['extendTemplate','1072436IWFhJJ','ck-user__anonymous','ck-user__notification','40028xwQUnk','ck-user__img','content','push','isAnonymous','29936WPWrcA','ck\x20ck-user__name','ck-user_me','318970swrNFp','notificationView','ck-user','avatar','1939WNmRXL','div','ck\x20ck-user__name\x20ck-user__name--hidden','75vgXtol','189ErZxVz','setTemplate','3664896etGCYf','url(\x27','ck-user__avatar','isMe','ck-user__icon','7365072kswFFL','initials','3718120yXGAzt','name'];_0x228f=function(){return _0x2cfe2d;};return _0x228f();}
23
+ const _0x5ca045=_0x2e04;(function(_0x11e4f4,_0x354b16){const _0x830ef5=_0x2e04,_0x32fd7b=_0x11e4f4();while(!![]){try{const _0x2f43f8=parseInt(_0x830ef5(0x158))/0x1+-parseInt(_0x830ef5(0x157))/0x2+parseInt(_0x830ef5(0x154))/0x3*(parseInt(_0x830ef5(0x148))/0x4)+-parseInt(_0x830ef5(0x14f))/0x5+parseInt(_0x830ef5(0x160))/0x6*(parseInt(_0x830ef5(0x152))/0x7)+-parseInt(_0x830ef5(0x161))/0x8+parseInt(_0x830ef5(0x14d))/0x9*(parseInt(_0x830ef5(0x14a))/0xa);if(_0x2f43f8===_0x354b16)break;else _0x32fd7b['push'](_0x32fd7b['shift']());}catch(_0x47d7c7){_0x32fd7b['push'](_0x32fd7b['shift']());}}}(_0x5b19,0xe326c));import{View as _0x30fa91,IconView as _0x255c82}from'ckeditor5/src/ui.js';import{IconNotification as _0x337583}from'ckeditor5/src/icons.js';function _0x5b19(){const _0x13d56f=['ck-user__anonymous','name','750wjZtwg','7382872XlvStl','ck-user__img','url(\x27','ck-user_me','ck-user__avatar','setTemplate','4bJFouS','extendTemplate','230rIWwbd','notificationView','initials','692253uiQqhF','push','8205270gReHEz','ck-user','ck\x20ck-user__name\x20ck-user__name--hidden','35xyfuyf','ck-user__notification','1752999VnxGri','isMe','div','1020780JrXgYL','1650666gLANyg','avatar','ck\x20ck-user__name','content','isAnonymous','ck-user__icon'];_0x5b19=function(){return _0x13d56f;};return _0x5b19();}function _0x2e04(_0x343f63,_0x183d52){const _0x5b19a0=_0x5b19();return _0x2e04=function(_0x2e0469,_0x38151c){_0x2e0469=_0x2e0469-0x147;let _0x55c9e2=_0x5b19a0[_0x2e0469];return _0x55c9e2;},_0x2e04(_0x343f63,_0x183d52);}import'../../../theme/users.css';export class UserView extends _0x30fa91{[_0x5ca045(0x15f)];[_0x5ca045(0x14b)];constructor(_0x338662,_0x379ea8,_0x47da06){const _0x792c6a=_0x5ca045;super(_0x338662),this[_0x792c6a(0x15f)]=_0x379ea8[_0x792c6a(0x15f)],this[_0x792c6a(0x14b)]=null;const _0x2bccf9=['ck',_0x792c6a(0x150)],_0x1366ea=['ck',_0x792c6a(0x162)];if(_0x379ea8[_0x792c6a(0x15c)]&&_0x1366ea[_0x792c6a(0x14e)](_0x792c6a(0x15e)),!_0x379ea8[_0x792c6a(0x15c)]&&_0x379ea8[_0x792c6a(0x155)]&&_0x2bccf9[_0x792c6a(0x14e)](_0x792c6a(0x164)),_0x379ea8[_0x792c6a(0x159)]&&_0x1366ea[_0x792c6a(0x14e)](_0x792c6a(0x165)),_0x47da06){const _0x448beb=new _0x255c82();_0x448beb[_0x792c6a(0x149)]({'attributes':{'class':[_0x792c6a(0x15d)]}}),_0x448beb[_0x792c6a(0x15b)]=_0x337583,this[_0x792c6a(0x14b)]={'tag':_0x792c6a(0x156),'attributes':{'class':['ck',_0x792c6a(0x153)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x47da06},'children':[_0x448beb]};}const _0x32a139=[{'tag':_0x792c6a(0x156),'attributes':{'class':_0x1366ea,'style':{'background-image':_0x379ea8[_0x792c6a(0x159)]?_0x792c6a(0x163)+_0x379ea8[_0x792c6a(0x159)]+'\x27)':''}}},{'tag':_0x792c6a(0x156),'attributes':{'class':_0x379ea8[_0x792c6a(0x159)]?_0x792c6a(0x151):_0x792c6a(0x15a),'aria-label':_0x379ea8[_0x792c6a(0x15f)]},'children':[{'text':_0x379ea8[_0x792c6a(0x14c)]}]}];this[_0x792c6a(0x14b)]&&_0x32a139[_0x792c6a(0x14e)](this[_0x792c6a(0x14b)]),this[_0x792c6a(0x147)]({'tag':_0x792c6a(0x156),'attributes':{'class':_0x2bccf9,'data-user-id':_0x379ea8['id']},'children':_0x32a139});}}