@ckeditor/ckeditor5-collaboration-core 48.4.0 → 48.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +0 -4
- package/dist/collaborationoperation.d.ts +13 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/reroot.d.ts +27 -0
- package/package.json +12 -13
- package/dist/documentcompare.d.ts +0 -169
package/LICENSE.md
CHANGED
|
@@ -12,10 +12,6 @@ Sources of Intellectual Property Included in CKEditor 5
|
|
|
12
12
|
|
|
13
13
|
Where not otherwise indicated, all CKEditor 5 content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
14
14
|
|
|
15
|
-
The following libraries are included in CKEditor 5 under the [BSD-3-Clause license](https://opensource.org/licenses/BSD-3-Clause):
|
|
16
|
-
|
|
17
|
-
* diff - Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>.
|
|
18
|
-
|
|
19
15
|
The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
|
|
20
16
|
|
|
21
17
|
* @types/luxon - Copyright (c) Microsoft Corporation.
|
|
@@ -8,13 +8,25 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from "@ckeditor/ckeditor5-engine";
|
|
10
10
|
/**
|
|
11
|
+
* Identifies the AI feature that produced a change, for example `'chat'` when it came from the AI chat.
|
|
12
|
+
*
|
|
13
|
+
* The listed values are the ones used by the built-in AI features. Any other string is accepted.
|
|
14
|
+
*
|
|
15
|
+
* This type lives here rather than in `@ckeditor/ckeditor5-ai` because the features that read the AI origin
|
|
16
|
+
* (revision history, track changes) must not depend on the AI package.
|
|
17
|
+
*/
|
|
18
|
+
export type AIOperationSource = "chat" | "quickActions" | "api" | "review" | "translate" | (string & {});
|
|
19
|
+
/**
|
|
11
20
|
* Extends the {@link module:engine/model/operation/operation operation}.
|
|
12
21
|
*/
|
|
13
22
|
export interface CollaborationOperation extends Operation {
|
|
14
23
|
_isInit?: boolean;
|
|
15
24
|
_authorId?: null | string;
|
|
16
25
|
_isDisconnection?: boolean;
|
|
17
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Set when the operation was produced by an AI feature. See {@link module:collaboration-core/collaborationoperation~AIOperationSource}.
|
|
28
|
+
*/
|
|
29
|
+
_aiSource?: AIOperationSource;
|
|
18
30
|
createdAt?: Date;
|
|
19
31
|
wasUndone?: boolean;
|
|
20
32
|
clone(): CollaborationOperation;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,12 +18,12 @@ export { trimHtml } from "./utils/trim-html.js";
|
|
|
18
18
|
export { ConfirmMixin, type ConfirmApi, type ConfirmMixinConstructor, type RemoveConfirmEvent } from "./utils/confirmmixin.js";
|
|
19
19
|
export { hashObject } from "./utils/hashobject.js";
|
|
20
20
|
export { isInvalidAttributeOperation } from "./utils/isinvalidattributeoperation.js";
|
|
21
|
+
export { reRootOperation, reRootRange, reRootPosition } from "./utils/reroot.js";
|
|
21
22
|
export { sanitizeEditorConfig } from "./utils/sanitizeeditorconfig.js";
|
|
22
23
|
export { surroundingMarkersDetector } from "./utils/surroundingmarkersdetector.js";
|
|
23
24
|
export { setupThreadKeyboardNavigation, FOCUS_ANNOTATION_KEYSTROKE, type ThreadEscapeEvent, type ThreadArrowUpEvent, type ThreadArrowDownEvent } from "./utils/setupthreadkeyboardnavigation.js";
|
|
24
25
|
export { splitSuggestionMarkerName, fixElementSuggestionRange } from "./utils/suggestionmarkerutils.js";
|
|
25
|
-
export
|
|
26
|
-
export type { CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from "./collaborationoperation.js";
|
|
26
|
+
export type { AIOperationSource, CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from "./collaborationoperation.js";
|
|
27
27
|
export type { CollaborationHistory } from "./collaborationhistory.js";
|
|
28
28
|
export type { LocaleConfig, RealTimeCollaborationConfig, CollaborationUsersConfig } from "./config.js";
|
|
29
29
|
import "../theme/index-editor.css";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ContextPlugin as _0x5c3be4,Editor as _0x211a7f,Plugin as _0x3a4caf}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x29ae14,Collection as _0x20112c,FocusTracker as _0x3c479d,KeystrokeHandler as _0x264d84,first as _0x5a2218,toArray as _0x2f61da,uid as _0x2bf19e}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x4377ca,DropdownButtonView as _0x4942db,FocusCycler as _0x2fc51a,IconView as _0x153b55,View as _0x2aa067,isViewWithFocusCycler as _0x199e39}from'@ckeditor/ckeditor5-ui';import{IconCancel as _0x2300b1,IconCheck as _0x463273,IconNotification as _0x1786dc}from'@ckeditor/ckeditor5-icons';import{setHighlightHandling as _0x13452b,toWidget as _0x40e460}from'@ckeditor/ckeditor5-widget';import{DateTime as _0x7b08ac}from'luxon';import{AttributeOperation as _0x617699,InsertOperation as _0x4d7520,MarkerOperation as _0x366cb2,MergeOperation as _0x14ac20,ModelPosition as _0xb9aff,ModelRange as _0x5ef620,ModelText as _0x18d995,ModelTreeWalker as _0x1a88ca,MoveOperation as _0x571744,RenameOperation as _0x2b7858,SplitOperation as _0x196445}from'@ckeditor/ckeditor5-engine';import{diffArrays as _0x282dd8}from'diff';var B=class extends _0x5c3be4{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}setPermissions(_0x275cac,_0x29b3af){let _0x5e42f3;if(_0x29b3af||(_0x29b3af=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x29b3af?_0x5e42f3=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x5e42f3=this['context']['editors']['find'](_0x1a6eda=>_0x1a6eda['config']['get']('collaboration.channelId')==_0x29b3af)),!_0x5e42f3)throw new _0x29ae14('permissions-set-permissions-invalid-channel-id',null);const _0x2d511d=_0x5e42f3['plugins'],_0x25fed0=_0x2d511d['has']('CommentsRepository')?_0x2d511d['get']('CommentsRepository'):void 0x0,_0x3ff748=_0x2d511d['has']('CommentsOnly')&&_0x2d511d['get']('CommentsOnly'),_0x31bbc9=_0x275cac['includes']('document:write'),_0x5e2741=_0x275cac['includes']('comment:modify_all'),_0x408c86=_0x275cac['includes']('comment:admin'),_0xf033ca=_0x275cac['includes']('comment:write'),_0x2f3b4d=_0xf033ca||_0x408c86,_0x8387cd=_0x2f3b4d||_0x5e2741,_0x225aa6=_0x31bbc9||_0x2f3b4d;if(_0x3ff748&&(_0x3ff748['isEnabled']=!_0x31bbc9&&_0x8387cd),_0x5e42f3 instanceof _0x211a7f&&(_0x31bbc9||_0x8387cd&&_0x25fed0?_0x5e42f3['disableReadOnlyMode']('no-permissions'):_0x5e42f3['enableReadOnlyMode']('no-permissions')),_0x25fed0){_0x25fed0['setPermissions']({'admin':_0x408c86,'modifyAll':_0x5e2741,'write':_0xf033ca,'resolve':_0x225aa6},_0x29b3af);const _0x4f69be=_0x5e42f3 instanceof _0x211a7f&&_0x5e42f3['commands']['get']('addCommentThread');_0x4f69be&&(_0x2f3b4d?_0x4f69be['clearForceDisabled']('noPermissions'):_0x4f69be['forceDisabled']('noPermissions'));}}};function D(_0x4b124e,_0x1d17a6){const t=_0x4b124e['t'];switch(_0x1d17a6){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'';}}var $=class extends _0x5c3be4{['users'];_lastColor;['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[B];}constructor(_0x17e0f2){super(_0x17e0f2),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x20112c(),this['_locale']=_0x17e0f2['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:_0x448477,name:_0x1e101d,..._0x1c428f}){if(!_0x448477||'string'!=typeof _0x448477)throw new _0x29ae14('users-add-invalid-id');if(this['users']['has'](_0x448477))throw new _0x29ae14('users-add-duplicated-id',null,{'id':_0x448477});const _0x43ef1c=this['context']['config']['get']('users.getInitialsCallback'),_0x5966b2={..._0x1c428f,'id':_0x448477,'name':R(this['_locale'],_0x1e101d),'color':this['_getNextColor']()};_0x5966b2['name']=R(this['_locale'],_0x5966b2['name']);const _0x50c031=new L(_0x5966b2,_0x43ef1c);return this['users']['add'](_0x50c031),_0x50c031;}getUser(_0x1653db){return this['users']['get'](_0x1653db);}['useAnonymousUser'](){const _0x388584=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x388584);}['defineMe'](_0x43f3bd){if(this['_myId'])throw new _0x29ae14('users-me-already-defined',null);const _0x511beb=this['getUser'](_0x43f3bd);if(!_0x511beb)throw new _0x29ae14('users-me-missing-user',null);this['_myId']=_0x43f3bd,_0x511beb['_isMe']=!0x0;}getOperationAuthor(){return this['me'];}_getNextColor(){const _0x4c624b=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x4c624b&&(this['_lastColor']=0x0),new F(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3f9e7e=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3f9e7e,'name':D(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}},L=class{['id'];['color'];['name'];initials;avatar;['_isMe'];['_isAnonymous'];constructor(_0x5b61a2,_0x51ca5d){this['id']=_0x5b61a2['id'],this['color']=_0x5b61a2['color'],this['name']=_0x5b61a2['name'],this['initials']=_0x51ca5d?_0x51ca5d(this['name']):this['_computeInitials'](),this['avatar']=_0x5b61a2['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}_computeInitials(){const _0x534121=this['name']['split']('\x20')['filter'](_0x2dedce=>/^[\p{Letter}]/u['test'](_0x2dedce));return 0x1===_0x534121['length']?this['_getInitial'](_0x534121[0x0]):0x0===_0x534121['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x534121[0x0])+this['_getInitial'](_0x534121[_0x534121['length']-0x1]);}_getInitial(_0x41e049){return String['fromCodePoint'](_0x41e049['codePointAt'](0x0))['toUpperCase']();}};function R(_0x4b0e8c,_0x233422=''){return''==(_0x233422=_0x233422['trim']())?D(_0x4b0e8c,'Anonymous'):_0x233422;}var F=class{['_id'];constructor(_0x3612b3){this['_id']=_0x3612b3;}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'];}getColorVariable(){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}getColorAlphaVariable(){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}},H=class extends _0x2aa067{['name'];notificationView;constructor(_0x31a0b7,_0x540b44,_0x4fb945,_0xbac821){super(_0x31a0b7),this['name']=_0x540b44['name'],this['notificationView']=null;const _0x5f38d4=['ck','ck-user'],_0x26f3b5=['ck','ck-user__img'];_0x540b44['isAnonymous']&&_0x26f3b5['push']('ck-user__anonymous'),!_0x540b44['isAnonymous']&&_0x540b44['isMe']&&_0x5f38d4['push']('ck-user_me'),(_0x540b44['avatar']||_0xbac821)&&_0x26f3b5['push']('ck-user__avatar');let _0x33d7ae=null;if(_0xbac821&&(_0x33d7ae=new _0x153b55(),_0x33d7ae['content']=_0xbac821,_0x33d7ae['extendTemplate']({'attributes':{'class':['ck-user__avatar-icon']}})),_0x4fb945){const _0x456a19=new _0x153b55();_0x456a19['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x456a19['content']=_0x1786dc,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4fb945},'children':[_0x456a19]};}const _0x256871=[{'tag':'div','attributes':{'class':_0x26f3b5,'style':{'background-image':_0x540b44['avatar']&&!_0xbac821?'url(\x27'+_0x540b44['avatar']+'\x27)':''}},'children':_0x33d7ae?[_0x33d7ae]:[]},{'tag':'div','attributes':{'class':_0x540b44['avatar']||_0xbac821?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x540b44['name']},'children':[{'text':_0x540b44['initials']}]}];this['notificationView']&&_0x256871['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x5f38d4,'data-user-id':_0x540b44['id']},'children':_0x256871});}},U=class extends _0x2aa067{['children'];['iconView'];['labelView'];constructor(_0x475094){super(_0x475094);const _0x536c16=this['bindTemplate'];this['set']('icon',void 0x0),this['set']('label',void 0x0),this['set']('tooltip',void 0x0),this['set']('tooltipPosition','n'),this['set']('tooltipClass',void 0x0),this['set']('iconPosition','left'),this['set']('class',void 0x0),this['children']=this['createCollection'](),this['iconView']=this['_createIconView'](),this['labelView']=this['_createLabelView'](),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill',_0x536c16['to']('class'),_0x536c16['to']('iconPosition',_0x3380fa=>'right'===_0x3380fa?'ck-pill_icon-right':'')],'data-cke-tooltip-text':_0x536c16['to']('tooltip'),'data-cke-tooltip-position':_0x536c16['to']('tooltipPosition'),'data-cke-tooltip-class':_0x536c16['to']('tooltipClass')},'children':this['children']});}['render'](){super['render'](),this['icon']&&this['children']['add'](this['iconView']),this['children']['add'](this['labelView']),this['on']('change:icon',(_0x55d1c7,_0x38ae68,_0x3cb50b,_0x1f517f)=>{_0x3cb50b&&!_0x1f517f?this['children']['add'](this['iconView'],0x0):!_0x3cb50b&&_0x1f517f&&this['children']['remove'](this['iconView']);});}_createIconView(){const _0x399f3f=new _0x153b55();return _0x399f3f['extendTemplate']({'attributes':{'class':'ck-pill__icon'}}),_0x399f3f['bind']('content')['to'](this,'icon'),_0x399f3f;}_createLabelView(){const _0x8c16eb=new _0x2aa067(this['locale']),_0xe2df06=this['bindTemplate'];return _0x8c16eb['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill__label']},'children':[{'text':_0xe2df06['to']('label')}]}),_0x8c16eb;}},z=class extends _0x2aa067{['id'];constructor(_0x1067ec,_0x5d5922){super(_0x1067ec),this['id']='ck-aria-description-'+_0x2bf19e(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x5d5922}]});}},W=class extends _0x4377ca{['render'](){super['render'](),j(this);}},Y=class extends _0x4942db{['render'](){super['render'](),j(this);}};function j(_0x1a6aa3){_0x1a6aa3['listenTo'](_0x1a6aa3['element'],'mousedown',(_0x102d78,_0x42bf30)=>{_0x42bf30['stopPropagation'](),_0x42bf30['preventDefault']();}),_0x1a6aa3['listenTo'](_0x1a6aa3['element'],'mouseup',()=>{_0x1a6aa3['element']['focus']();});}function J(_0x4f8a74){const _0x17ee84=_0x4f8a74['split'](':');return{'group':_0x17ee84[0x0],'type':_0x17ee84[0x1],'subType':_0x17ee84['length']>=0x5?_0x17ee84[0x2]:null,'id':_0x17ee84['length']<0x5?_0x17ee84[0x2]:_0x17ee84[0x3],'authorId':_0x17ee84['length']<0x5?_0x17ee84[0x3]:_0x17ee84[0x4],'markerCount':0x6==_0x17ee84['length']?_0x17ee84[0x5]:null};}function G(_0x465545,_0x384231){const _0x24743c=_0x465545['end']['nodeBefore'];if(_0x24743c&&_0x24743c['is']('element')&&_0x384231['schema']['isBlock'](_0x24743c)&&!_0x384231['schema']['isObject'](_0x24743c)){const _0x418a9=_0x384231['createPositionAt'](_0x24743c,'end');return _0x384231['createRange'](_0x465545['start'],_0x418a9);}return _0x465545;}var K=class extends _0x3a4caf{afterInit(){const _0x842cc0=this['editor'];_0x842cc0['plugins']['has']('AlignmentEditing')&&_0x842cc0['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}};const q=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Z=class extends _0x3a4caf{afterInit(){const _0x439ceb=this['editor'],_0x57f843=_0x439ceb['plugins']['get']('SuggestionsConversion');for(const _0x37c3c6 of q){if(!_0x439ceb['plugins']['has'](_0x37c3c6))continue;const _0x4b1d84=_0x37c3c6['slice'](0x0,-0x7)['toLowerCase']();_0x57f843['registerInlineAttribute'](_0x4b1d84);}}},Q=class extends _0x3a4caf{afterInit(){const _0x18b5ed=this['editor'],_0x1433c2=_0x18b5ed['plugins']['get']('SuggestionsConversion');_0x18b5ed['plugins']['has']('BookmarkEditing')&&_0x1433c2['registerBlockAttribute']('bookmarkId');}};const X=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var tt=class extends _0x3a4caf{afterInit(){const _0x23a254=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x32739c,commandName:_0xd72c3b}of X)this['editor']['plugins']['has'](_0x32739c)&&_0x23a254['registerInlineAttribute'](_0xd72c3b);}},et=class extends _0x3a4caf{afterInit(){const {editor:_0x11a56e}=this;if(!_0x11a56e['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x31a06f=_0x11a56e['plugins']['get']('SuggestionsConversion');_0x31a06f['registerBlockAttribute']('footnotesListStyle'),_0x31a06f['registerBlockAttribute']('footnotesListStart');}},st=class extends _0x3a4caf{afterInit(){const _0x4c814d=this['editor'];if(!_0x4c814d['plugins']['has']('GeneralHtmlSupport')||!_0x4c814d['plugins']['has']('DataSchema'))return;const _0x2c127a=_0x4c814d['plugins']['get']('SuggestionsConversion'),_0x1a50b2=_0x4c814d['plugins']['get']('GeneralHtmlSupport'),_0x4a86ab=_0x4c814d['plugins']['get']('DataSchema');for(const _0x5214b8 of _0x4a86ab['getDefinitionsForView'](/.*/,!0x1)){const _0x1ca0b9=_0x1a50b2['getGhsAttributeNameForElement'](_0x5214b8['view']);!_0x5214b8['isInline']||_0x5214b8['isObject']||'appliesToBlock'in _0x5214b8&&_0x5214b8['appliesToBlock']?_0x2c127a['registerBlockAttribute'](_0x1ca0b9):_0x2c127a['registerInlineAttribute'](_0x1ca0b9);}}},it=class extends _0x3a4caf{afterInit(){const _0x21e156=this['editor'];_0x21e156['plugins']['has']('HighlightEditing')&&_0x21e156['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}},nt=class extends _0x3a4caf{afterInit(){const _0x1b2b25=this['editor'];_0x1b2b25['plugins']['has']('HtmlEmbed')&&_0x1b2b25['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}},ot=class extends _0x3a4caf{afterInit(){const _0x3230db=this['editor'];if(!_0x3230db['plugins']['has']('ImageEditing'))return;const _0x1a5d56=_0x3230db['plugins']['get']('SuggestionsConversion');_0x1a5d56['registerBlockAttribute']('src'),_0x3230db['plugins']['has']('ImageResize')&&_0x1a5d56['registerBlockAttribute']('resizedWidth'),_0x3230db['plugins']['has']('ImageTextAlternativeEditing')&&_0x1a5d56['registerBlockAttribute']('alt'),_0x3230db['plugins']['has']('PictureEditing')&&_0x1a5d56['registerBlockAttribute']('sources'),_0x3230db['plugins']['has']('ImageSizeAttributes')&&(_0x1a5d56['registerBlockAttribute']('width'),_0x1a5d56['registerBlockAttribute']('height'));}},rt=class extends _0x3a4caf{afterInit(){const _0x164070=this['editor'],_0x38fdfc=_0x164070['plugins']['get']('SuggestionsConversion');_0x164070['plugins']['has']('IndentBlock')&&(_0x38fdfc['registerBlockAttribute']('blockIndent'),_0x164070['plugins']['has']('ListEditing')&&(_0x38fdfc['registerBlockAttribute']('blockIndentList'),_0x38fdfc['registerBlockAttribute']('blockIndentListItem')));}},at=class extends _0x3a4caf{afterInit(){const _0x3d9eff=this['editor'];_0x3d9eff['plugins']['has']('LineHeight')&&_0x3d9eff['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}},ct=class extends _0x3a4caf{afterInit(){const _0x4c2efd=this['editor'];if(!_0x4c2efd['plugins']['has']('LinkEditing'))return;const _0x2df819=_0x4c2efd['plugins']['get']('SuggestionsConversion'),_0x398b14=_0x4c2efd['commands']['get']('link');_0x2df819['registerInlineAttribute']('linkHref');for(const _0x4cba56 of _0x398b14['manualDecorators'])_0x2df819['registerInlineAttribute'](_0x4cba56['id']);}},lt=class extends _0x3a4caf{afterInit(){const _0x35c6e8=this['editor'];if(!_0x35c6e8['plugins']['has']('ListEditing'))return;const _0x21677e=_0x35c6e8['plugins']['get']('SuggestionsConversion'),_0x3d11ec=_0x35c6e8['plugins']['has']('TodoListEditing');_0x21677e['registerBlockAttribute']('listItemId'),_0x21677e['registerBlockAttribute']('listType'),_0x21677e['registerBlockAttribute']('listIndent'),_0x3d11ec&&_0x21677e['registerBlockAttribute']('todoListChecked');}},ht=class extends _0x3a4caf{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3348a0=this['editor']['config']['get']('list.properties'),_0x5694fc=this['editor']['plugins']['get']('SuggestionsConversion');_0x3348a0['styles']&&_0x5694fc['registerBlockAttribute']('listStyle'),_0x3348a0['reversed']&&_0x5694fc['registerBlockAttribute']('listReversed'),_0x3348a0['startIndex']&&_0x5694fc['registerBlockAttribute']('listStart');}},ut=class extends _0x3a4caf{afterInit(){const _0xdd4a1a=this['editor'],_0x2dd56a=_0xdd4a1a['plugins']['get']('SuggestionsConversion');_0xdd4a1a['plugins']['has']('MultiLevelList')&&_0x2dd56a['registerBlockAttribute']('listMarkerStyle');}},dt=class extends _0x3a4caf{afterInit(){const _0x579714=this['editor'];if(!_0x579714['plugins']['has']('TableEditing'))return;const _0x555981=_0x579714['plugins']['get']('SuggestionsConversion');_0x555981['registerBlockAttribute']('headingRows'),_0x555981['registerBlockAttribute']('headingColumns');}},gt=class extends _0x3a4caf{afterInit(){const {plugins:_0x32c2aa}=this['editor'];if(!_0x32c2aa['has']('TablePropertiesEditing'))return;const _0x5149b3=_0x32c2aa['get']('SuggestionsConversion');for(const _0x2c1ea1 of['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'])_0x5149b3['registerBlockAttribute'](_0x2c1ea1);}},ft=class extends _0x3a4caf{afterInit(){const _0x3efcee=this['editor'],_0x5ba9d7=_0x3efcee['plugins']['get']('SuggestionsConversion');_0x3efcee['plugins']['has']('TableLayout')&&_0x5ba9d7['registerBlockAttribute']('tableType');}},mt=class extends _0x3a4caf{afterInit(){const _0x145b5d=this['editor'],_0x22f4dc=this['editor']['plugins']['get']('SuggestionsConversion');_0x145b5d['plugins']['has']('Uploadcare')&&_0x145b5d['plugins']['has']('UploadcareImageEdit')&&_0x22f4dc['registerBlockAttribute']('uploadcareImageId');}},pt=class extends _0x3a4caf{afterInit(){const _0x4e5c15=this['editor'];if(!_0x4e5c15['plugins']['has']('ShiftEnter'))return;const _0x378bb5=_0x4e5c15['plugins']['get']('SuggestionsConversion'),_0x2fca46=(_0x7ce50e,_0x3c559c,_0x43e69e,_0x50b223)=>{if(_0x50b223&&!_0x43e69e['options']['showSuggestionHighlights'])return;if(!_0x43e69e['consumable']['test'](_0x3c559c['markerRange'],_0x7ce50e['name']))return;const _0xad435d=_0x4e5c15['model'];for(const _0x321609 of _0x3c559c['markerRange']['getItems']()){if(!_0x321609['is']('element','softBreak'))continue;const _0x8b99da='deletion'==_0x3c559c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x39a056,authorId:_0x2f2b2c}=J(_0x3c559c['markerName']),_0x5d2aaa=_0x43e69e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8b99da,'data-suggestion':_0x39a056,'data-author-id':_0x2f2b2c}),_0x52bf72=_0x43e69e['mapper']['toViewPosition'](_0xad435d['createPositionBefore'](_0x321609));!_0x50b223&&_0x378bb5['_activeMarkers']['includes'](_0x3c559c['markerName'])&&_0x43e69e['writer']['addClass']('ck-suggestion-marker--active',_0x5d2aaa),_0x43e69e['writer']['insert'](_0x52bf72,_0x5d2aaa),_0x43e69e['mapper']['bindElementToMarker'](_0x5d2aaa,_0x3c559c['markerName']);}};_0x4e5c15['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x19d87a,_0x6e147a,_0x289a05)=>{_0x2fca46(_0x19d87a,_0x6e147a,_0x289a05,!0x1);},{'priority':'high'}),_0x4e5c15['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x234c21,_0x230831,_0xc77827)=>{_0x2fca46(_0x234c21,_0x230831,_0xc77827,!0x1);},{'priority':'high'}),_0x4e5c15['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x335968,_0x1eba4e,_0x290bbf)=>{_0x2fca46(_0x335968,_0x1eba4e,_0x290bbf,!0x0);},{'priority':'high'}),_0x4e5c15['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2f259e,_0x53384e,_0x30e702)=>{_0x2fca46(_0x2f259e,_0x53384e,_0x30e702,!0x0);},{'priority':'high'});}},kt=class extends _0x3a4caf{afterInit(){const _0x50fc37=this['editor'];if(!_0x50fc37['plugins']['has']('MediaEmbedEditing'))return;const _0x3ed8ec=_0x50fc37['plugins']['get']('SuggestionsConversion');_0x50fc37['plugins']['has']('MediaEmbedResizeEditing')&&_0x3ed8ec['registerBlockAttribute']('resizedWidth'),_0x50fc37['plugins']['has']('MediaEmbedStyleEditing')&&_0x3ed8ec['registerBlockAttribute']('mediaStyle'),_0x50fc37['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x482210,{writer:_0x3b4296,options:_0x8bd274})=>{if(_0x8bd274['showSuggestionHighlights'])return _0x3b4296['createEmptyElement']('div');},'converterPriority':'high'}),_0x50fc37['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3d1f35,_0x70f94f,_0x222e90)=>{_0x222e90['options']['showSuggestionHighlights']&&_0x3d1f35['stop']();},{'priority':'high'});}},yt=class extends _0x3a4caf{afterInit(){const _0x4e7ecd=this['editor'];if(!_0x4e7ecd['plugins']['has']('Table'))return;_0x4e7ecd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x46cfb3,_0x45e258,_0x228759)=>{((_0x2d38d9,_0x533b09,_0x5a0104)=>{if(!_0x5a0104['options']['showSuggestionHighlights'])return;const _0x593885=_0x533b09['item'];if(!_0x593885||!_0x593885['is']('element','tableCell'))return;const _0xf4de64=_0x5a0104['mapper']['toViewElement'](_0x593885);if(_0xf4de64){const {id:_0x60848b,authorId:_0x2e3167}=J(_0x533b09['markerName']);_0x13452b(_0xf4de64,_0x5a0104['writer'],(_0x58c5e6,_0x106e7f,_0x14ee0c)=>{_0x14ee0c['addClass'](_0x2f61da(_0x106e7f['classes']),_0x58c5e6),_0x14ee0c['setAttribute']('data-suggestion',_0x60848b,_0x58c5e6),_0x14ee0c['setAttribute']('data-author-id',_0x2e3167,_0x58c5e6);});}})(0x0,_0x45e258,_0x228759);},{'priority':'highest'});}},bt=class extends _0x3a4caf{afterInit(){const _0x1d473c=this['editor'];_0x1d473c['plugins']['has']('HorizontalLineEditing')&&_0x1d473c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d784d,{writer:_0x53672c,options:_0x1b4964})=>{if(!_0x1b4964['showSuggestionHighlights'])return null;const _0x525590=_0x53672c['createContainerElement']('div'),_0x2a44bd=_0x53672c['createEmptyElement']('hr');return _0x53672c['addClass']('ck-horizontal-line',_0x525590),_0x53672c['insert'](_0x53672c['createPositionAt'](_0x525590,0x0),_0x2a44bd),_0x525590;},'converterPriority':'high'});}},wt=class extends _0x3a4caf{afterInit(){const {plugins:_0x1488e1,model:_0x57eefb}=this['editor'];if(!_0x1488e1['has']('TableCellPropertiesEditing'))return;const _0x1f80a9=_0x1488e1['get']('SuggestionsConversion');for(const _0x1f6f73 of['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'])_0x1f80a9['registerBlockAttribute'](_0x1f6f73);_0x57eefb['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1f80a9['registerBlockAttribute']('tableCellType');}},vt=class extends _0x3a4caf{afterInit(){const _0x37cadd=this['editor'];_0x37cadd['plugins']['has']('TableEditing')&&_0x37cadd['config']['get']('table.enableFooters')&&_0x37cadd['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}},Ct=class extends _0x3a4caf{_activeMarkers=[];_blockAttributeKeys=new Set(['$elementName']);_inlineAttributeKeys=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get requires(){return[K,Z,Q,tt,et,st,it,bt,nt,ot,rt,at,ct,lt,ht,kt,ut,pt,yt,dt,vt,ft,wt,gt,mt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3efe1d=this['editor'],_0x3ed2ff=(_0x585bdd,_0x4679bf,_0x2e4bc0)=>{const {id:_0x1d41ad,authorId:_0x637d3e,type:_0x4faed9,subType:_0x154ca2}=J(_0x585bdd['markerName']),_0x439efe=['ck-suggestion-marker',this['_getClassName'](_0x4faed9,_0x154ca2)];let _0x3e733d=0xbb8;return _0x2e4bc0||this['_activeMarkers']['includes'](_0x585bdd['markerName'])&&(_0x439efe['push']('ck-suggestion-marker--active'),_0x3e733d=0xbc2),'deletion'==_0x4faed9&&(_0x3e733d+=0x5),{'classes':_0x439efe,'attributes':{'data-suggestion':_0x1d41ad,'data-author-id':_0x637d3e},'priority':_0x3e733d};};_0x3efe1d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd1536e,_0x5321bf)=>_0x3ed2ff(_0xd1536e,0x0,!0x1)}),_0x3efe1d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x79affb,_0x141bde)=>_0x3ed2ff(_0x79affb,0x0,!0x0)}),_0x3efe1d['conversion']['for']('dataDowncast')['add'](_0x37136b=>{_0x37136b['on']('addMarker:suggestion',(_0x147284,_0x5bdaa3,_0x1e0bea)=>{if(!_0x1e0bea['options']['showSuggestionHighlights'])return;const _0x4b6ec3=_0x5bdaa3['item'];if(!_0x4b6ec3)return;const _0x1c586e=_0x1e0bea['mapper']['toViewElement'](_0x4b6ec3);_0x3efe1d['model']['schema']['isObject'](_0x4b6ec3)&&_0x1c586e&&!_0x1c586e['getCustomProperty']('widget')&&_0x1c586e['is']('containerElement')&&_0x40e460(_0x1c586e,_0x1e0bea['writer']);},{'priority':'high'});});const _0xf0340a=(_0x313a6b,_0x1e01eb,_0xedfd57,_0x21d9db,_0x47e51c)=>{if(_0x21d9db&&!_0xedfd57['options']['showSuggestionHighlights'])return;if(!_0x1e01eb['item'])return;const {id:_0xfa0c58,authorId:_0xdcdc4d,subType:_0x3581d8}=J(_0x1e01eb['markerName']);if(_0x47e51c){const _0x49b6ae=_0x3581d8['split']('|')[0x0];if(!this['isBlockAttribute'](_0x49b6ae))return;}if(_0x1e01eb['item']['is']('selection'))return void _0xedfd57['consumable']['consume'](_0x1e01eb['item'],_0x313a6b['name']);const _0x3f9cce=_0xedfd57['mapper']['toViewElement'](_0x1e01eb['item']);if(_0x1e01eb['item']['is']('element')&&_0x3efe1d['model']['schema']['isBlock'](_0x1e01eb['item'])&&!_0x3f9cce['getCustomProperty']('addHighlight')){_0xedfd57['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3f9cce),_0xedfd57['writer']['setAttribute']('data-suggestion',_0xfa0c58,_0x3f9cce),_0xedfd57['writer']['setAttribute']('data-author-id',_0xdcdc4d,_0x3f9cce),_0xedfd57['mapper']['bindElementToMarker'](_0x3f9cce,_0x1e01eb['markerName']),_0x21d9db||(this['_activeMarkers']['includes'](_0x1e01eb['markerName'])?_0xedfd57['writer']['addClass']('ck-suggestion-marker--active',_0x3f9cce):_0xedfd57['writer']['removeClass']('ck-suggestion-marker--active',_0x3f9cce));for(const _0x3a6cd4 of _0x3efe1d['model']['createRangeIn'](_0x1e01eb['item'])['getItems']())_0xedfd57['consumable']['consume'](_0x3a6cd4,_0x313a6b['name']);_0xedfd57['consumable']['consume'](_0x1e01eb['item'],_0x313a6b['name']);}},_0x5b523b=(_0x27efb4,_0x2477ac,_0x453148,_0x1eedaf)=>{const _0x3ceb62=_0x453148['mapper']['markerNameToElements'](_0x2477ac['markerName']);if(_0x3ceb62){if(_0x1eedaf){const {subType:_0x2124ff}=J(_0x2477ac['markerName']),_0x4582d1=_0x2124ff['split']('|')[0x0];if(!this['isBlockAttribute'](_0x4582d1))return;}for(const _0x1841ee of _0x3ceb62)_0x1841ee['getCustomProperty']('addHighlight')||(_0x453148['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1841ee),_0x453148['writer']['removeAttribute']('data-suggestion',_0x1841ee),_0x453148['writer']['removeAttribute']('data-author-id',_0x1841ee),_0x453148['mapper']['unbindElementFromMarkerName'](_0x1841ee,_0x2477ac['markerName']));}};_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0xd351e=>{_0xd351e['on']('addMarker:suggestion:formatBlock',(_0x1208ac,_0x54d4d2,_0x3718f9)=>{_0xf0340a(_0x1208ac,_0x54d4d2,_0x3718f9,!0x1,!0x1);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0x2b006e=>{_0x2b006e['on']('addMarker:suggestion:attribute',(_0x805424,_0x312706,_0x62a8e4)=>{_0xf0340a(_0x805424,_0x312706,_0x62a8e4,!0x1,!0x0);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0x1f9b85=>{_0x1f9b85['on']('removeMarker:suggestion:formatBlock',(_0x1d6a3f,_0x1f9157,_0xc146e0)=>{_0x5b523b(0x0,_0x1f9157,_0xc146e0,!0x1);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('editingDowncast')['add'](_0x561657=>{_0x561657['on']('removeMarker:suggestion:attribute',(_0xb222c5,_0x331465,_0x2beb63)=>{_0x5b523b(0x0,_0x331465,_0x2beb63,!0x0);},{'priority':'high'});}),_0x3efe1d['conversion']['for']('dataDowncast')['add'](_0x5e4017=>{_0x5e4017['on']('addMarker:suggestion:formatBlock',(_0x3d026b,_0x2287f8,_0x3f414d)=>{_0xf0340a(_0x3d026b,_0x2287f8,_0x3f414d,!0x0,!0x1);},{'priority':'highest'});}),_0x3efe1d['conversion']['for']('dataDowncast')['add'](_0x4dd2cd=>{_0x4dd2cd['on']('addMarker:suggestion:attribute',(_0xb5d6a1,_0xee3f03,_0x2a80a8)=>{_0xf0340a(_0xb5d6a1,_0xee3f03,_0x2a80a8,!0x0,!0x0);},{'priority':'highest'});}),_0x3efe1d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c6c72,_0x2baa17)=>_0x2baa17['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4c6c72['substr'](0xb)}});const _0x120aa0=(_0x33c273,_0x4bf5be,_0x580dac,_0x526ec1,_0x4fa173)=>{if(_0x526ec1&&!_0x580dac['options']['showSuggestionHighlights'])return;if(!_0x580dac['consumable']['test'](_0x4bf5be['markerRange'],_0x33c273['name']))return;const _0x42a7d5=this['_activeMarkers'],_0x49ba4a=_0x4bf5be['markerRange']['getWalker'](),_0x1734f0=_0x4bf5be['markerRange']['start'],_0x6520cc=_0x3efe1d['model']['schema'];let _0x5e36be=null,_0x39e209=null,_0x207ccc=!0x1,_0x207ca2=!0x1;for(const _0x3eae90 of _0x49ba4a){const _0x5eb4f0=_0x3eae90['item'];_0x207ccc=_0x207ccc||_0x6520cc['isContent'](_0x5eb4f0);const _0x4302aa=_0x580dac['mapper']['toViewElement'](_0x5eb4f0);if(_0x4302aa&&_0x4302aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3eae90['type']&&(_0x6520cc['isBlock'](_0x5eb4f0)&&!_0x6520cc['isLimit'](_0x5eb4f0)&&(_0x5eb4f0['nextSibling']||_0x1734f0['isAtEnd']?_0x5e36be&&_0x5e36be['parent']==_0x5eb4f0||(_0x5e36be=_0x5eb4f0,_0x1dea7e(_0x3eae90['previousPosition']),_0x207ca2=!0x0):_0x39e209=_0x39e209||_0x3eae90['previousPosition']));}function _0x1dea7e(_0x49355f){const {id:_0x17c9a2,authorId:_0x4660d4}=J(_0x4bf5be['markerName']),_0x44e037=_0x580dac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fa173,'data-suggestion':_0x17c9a2,'data-author-id':_0x4660d4}),_0x57962e=_0x580dac['mapper']['toViewPosition'](_0x49355f);!_0x526ec1&&_0x42a7d5['includes'](_0x4bf5be['markerName'])&&_0x580dac['writer']['addClass']('ck-suggestion-marker--active',_0x44e037),_0x580dac['writer']['insert'](_0x57962e,_0x44e037),_0x580dac['mapper']['bindElementToMarker'](_0x44e037,_0x4bf5be['markerName']);}_0x207ccc||_0x207ca2||!_0x39e209||_0x1dea7e(_0x39e209);};_0x3efe1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4405fa,_0x3bbf55,_0x2b767e)=>{_0x120aa0(_0x4405fa,_0x3bbf55,_0x2b767e,!0x1,'merge');},{'priority':'high'}),_0x3efe1d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x488506,_0x5732f0,_0x2dd65b)=>{_0x120aa0(_0x488506,_0x5732f0,_0x2dd65b,!0x0,'merge');},{'priority':'high'}),_0x3efe1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1dd34e,_0x18015b,_0x470f02)=>{_0x120aa0(_0x1dd34e,_0x18015b,_0x470f02,!0x1,'split');},{'priority':'high'}),_0x3efe1d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37ca45,_0x515e3f,_0x12b6c6)=>{_0x120aa0(_0x37ca45,_0x515e3f,_0x12b6c6,!0x0,'split');},{'priority':'high'}),_0x3efe1d['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f9196,_0x50c5bc,_0x15de0b)=>{((_0x5f22c3,_0x342bd6,_0x3c659b)=>{const _0x499632=_0x3c659b['mapper']['markerNameToElements'](_0x342bd6['markerName']);if(_0x499632){for(const _0x4ac495 of _0x499632)(_0x4ac495['hasClass']('ck-suggestion-marker-split')||_0x4ac495['hasClass']('ck-suggestion-marker-merge'))&&(_0x3c659b['mapper']['unbindElementFromMarkerName'](_0x4ac495,_0x342bd6['markerName']),_0x3c659b['writer']['remove'](_0x4ac495));}})(0x0,_0x50c5bc,_0x15de0b);},{'priority':'high'});const _0x26ff99=(_0x5ec6be,_0xc9d1c,_0x27509a,_0x58056b)=>{if(_0x58056b&&!_0x27509a['options']['showSuggestionHighlights'])return;const _0x387d1b=_0xc9d1c['markerRange']['start'],_0x269592=_0xc9d1c['markerRange']['end'],_0x56bedc=_0x3efe1d['model']['schema'];if(!_0x387d1b['isTouching'](_0x269592)||!_0x387d1b['nodeAfter'])return;const _0xceaf38=_0x387d1b['nodeAfter'];if(_0x56bedc['isBlock'](_0xceaf38)&&!_0x56bedc['isLimit'](_0xceaf38)&&_0x56bedc['checkChild'](_0xceaf38,'$text')){if(!_0x27509a['consumable']['consume'](_0xc9d1c['markerRange'],_0x5ec6be['name']))return;const {id:_0x530904,authorId:_0x5bca17}=J(_0xc9d1c['markerName']),_0xdcb519=_0x27509a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x530904,'data-author-id':_0x5bca17}),_0x20276e=_0x27509a['mapper']['toViewPosition'](_0x269592);!_0x58056b&&this['_activeMarkers']['includes'](_0xc9d1c['markerName'])&&_0x27509a['writer']['addClass']('ck-suggestion-marker--active',_0xdcb519),_0x27509a['writer']['insert'](_0x20276e,_0xdcb519),_0x27509a['mapper']['bindElementToMarker'](_0xdcb519,_0xc9d1c['markerName']);}};_0x3efe1d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59b161,_0x13d8b8,_0x2858b1)=>{_0x26ff99(_0x59b161,_0x13d8b8,_0x2858b1,!0x1);},{'priority':'high'}),_0x3efe1d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51b41c,_0x320cc5,_0x243ab3)=>{_0x26ff99(_0x51b41c,_0x320cc5,_0x243ab3,!0x0);},{'priority':'high'});}afterInit(){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x156f33,_0x3169b9,_0x45058c)=>{this['_activeMarkers']=_0x45058c['slice']();},{'priority':'highest'});}registerBlockAttribute(_0x457fbf){this['_blockAttributeKeys']['add'](_0x457fbf);}registerInlineAttribute(_0x29745f){this['_inlineAttributeKeys']['add'](_0x29745f);}isBlockAttribute(_0x471cd9){return this['_blockAttributeKeys']['has'](_0x471cd9);}isInlineAttribute(_0x360c10){return this['_inlineAttributeKeys']['has'](_0x360c10);}isRegisteredAttribute(_0x517c39){return this['isInlineAttribute'](_0x517c39)||this['isBlockAttribute'](_0x517c39);}_getClassName(_0x1f7dcb,_0x3b0b3e){if('attribute'!=_0x1f7dcb)return'ck-suggestion-marker-'+_0x1f7dcb;const _0x56213a=_0x3b0b3e['split']('|')[0x0];return this['isBlockAttribute'](_0x56213a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}};function _t(_0x1e1b19={},_0x29ff13){if(void 0x0!==_0x1e1b19['dateTimeFormat']&&'function'!=typeof _0x1e1b19['dateTimeFormat'])throw new _0x29ae14('invalid-date-time-format');return _0x27f30=>{const _0x303f22='string'==typeof _0x27f30?_0x7b08ac['fromISO'](_0x27f30):_0x7b08ac['fromJSDate'](_0x27f30),_0x1c9947=_0x7b08ac['now'](),_0x503d42=Math['floor'](_0x1c9947['diff'](_0x303f22,'days')['days']);return _0x1e1b19['dateTimeFormat']?_0x1e1b19['dateTimeFormat'](_0x303f22['toJSDate'](),_0x29ff13&&_0x29ff13['t']?_0x29ff13['t']:void 0x0):0x0===_0x503d42?_0x29ff13?D(_0x29ff13,'Today')+'\x20'+_0x303f22['toFormat']('hh:mma'):_0x303f22['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x503d42?_0x29ff13?D(_0x29ff13,'Yesterday')+'\x20'+_0x303f22['toFormat']('hh:mma'):_0x303f22['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x503d42<0x7?_0x29ff13?D(_0x29ff13,'Last')+'\x20'+D(_0x29ff13,_0x303f22['toFormat']('EEEE'))+'\x20'+_0x303f22['toFormat']('hh:mma'):_0x303f22['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x303f22['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xt(_0x149f5d,_0x1da808){const _0x34d174=_0x149f5d['mapper']['markerNameToElements'](_0x1da808['name']);if(!_0x34d174)return null;const _0x36fb48=_0x5a2218(_0x34d174['values']());return _0x149f5d['view']['domConverter']['mapViewToDom'](_0x36fb48)||null;}function It(_0x89c2de,_0x5a0da8){if(0x0===_0x5a0da8['length'])return null;const _0x2a05a5=[],_0x3ad9ec=_0x89c2de['view']['domConverter'];for(const _0x13f9ff of _0x5a0da8){const _0x4f667b=_0x89c2de['mapper']['markerNameToElements'](_0x13f9ff['name']);if(!_0x4f667b)continue;const _0x2c659f=Array['from'](_0x4f667b)['map'](_0x2bcab1=>_0x3ad9ec['mapViewToDom'](_0x2bcab1))['filter'](_0x150772=>!!_0x150772);_0x2a05a5['push'](..._0x2c659f);}if(0x0===_0x2a05a5['length'])return null;const _0x32f1b6=[];for(const _0x2669bd of _0x2a05a5){const _0x544622=_0x2669bd['getClientRects']()['item'](0x0);_0x544622&&_0x32f1b6['push']({'x':_0x544622['x'],'y':_0x544622['y'],'domElement':_0x2669bd});}return 0x0===_0x32f1b6['length']?null:(_0x32f1b6['sort']((_0x1f082b,_0x30c133)=>_0x1f082b['y']-_0x30c133['y']||_0x1f082b['x']-_0x30c133['x']),_0x32f1b6['map'](_0xdd5ef9=>_0xdd5ef9['domElement']));}function St(_0x5913da,{limit:_0x3bf406,suffix:_0x5dc8b0='...'}){const _0x324167=[];let _0x3001cd=0x0;const _0x493df1=_0x5913da['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4f3ed3=0x0;_0x4f3ed3<_0x493df1['length'];_0x4f3ed3++){let _0x5cff59=_0x493df1[_0x4f3ed3];const _0x51a23f=Et(_0x5cff59);if(_0x5cff59['startsWith']('<')){if(_0x3001cd>=_0x3bf406){const _0xb8dcae=_0x5cff59['match'](/[a-zA-Z]+/);if(!_0xb8dcae){_0x493df1[_0x4f3ed3]='';continue;}const _0x31f20e=_0xb8dcae[0x0];_0x5cff59['startsWith']('</')?(_0x324167['length']&&(_0x5cff59=''),_0x324167['pop']()):(_0x324167['push'](_0x31f20e),_0x5cff59='');}}else{if(_0x3001cd>=_0x3bf406)_0x5cff59='';else{if(_0x3001cd+_0x51a23f['length']>=_0x3bf406){let _0x172c93=_0x3bf406-_0x3001cd;if('\x20'===_0x51a23f[_0x172c93-0x1])_0x172c93--;else{const _0x5019fe=_0x51a23f['slice'](_0x172c93)['indexOf']('\x20');-0x1!==_0x5019fe?_0x172c93+=_0x5019fe:_0x172c93=_0x5cff59['length'];}_0x5cff59=_0x51a23f['slice'](0x0,_0x172c93)['join']('')+_0x5dc8b0,_0x3001cd=_0x3bf406;}else _0x3001cd+=_0x51a23f['length'];}}_0x493df1[_0x4f3ed3]=_0x5cff59;}return _0x493df1['join']('\x0a')['replace'](/\n/g,'');}function Et(_0x9bd6fd){const _0x17ab4b=[];for(let _0x33793e=0x0;_0x33793e<_0x9bd6fd['length'];_0x33793e++){const _0x7d5aec=_0x9bd6fd['substring'](_0x33793e)['match'](/^&[a-z0-9#]+;/);if(_0x7d5aec){const _0x1bfcde=_0x7d5aec[0x0];_0x17ab4b['push'](_0x1bfcde),_0x33793e+=_0x1bfcde['length']-0x1;}else _0x17ab4b['push'](_0x9bd6fd[_0x33793e]);}return _0x17ab4b;}var Mt=class extends _0x2aa067{submitView;['cancelView'];['focusTracker'];keystrokes;['focusCycler'];['focusables'];constructor(_0x2bba41){super(_0x2bba41);const _0x260fee=this['bindTemplate'];this['set']('message',D(_0x2bba41,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2bba41,D(_0x2bba41,'Yes'),_0x463273,'submit'),this['cancelView']=this['_createButtonView'](_0x2bba41,D(_0x2bba41,'No'),_0x2300b1,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3c479d(),this['keystrokes']=new _0x264d84(),this['focusCycler']=new _0x2fc51a({'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':_0x260fee['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(_0x302a0f,_0x3ba2de,_0x27e908,_0xe986dc){const _0x4957dd=new _0x4377ca(_0x302a0f);return _0x4957dd['label']=_0x3ba2de,_0x4957dd['icon']=_0x27e908,_0x4957dd['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0xe986dc}}),_0x4957dd['on']('execute',()=>this['fire'](_0xe986dc)),_0x4957dd;}_setupKeyboardNavigation(){this['focusables']['forEach'](_0x12f363=>{this['keystrokes']['listenTo'](_0x12f363['element']),this['focusTracker']['add'](_0x12f363['element']);}),this['keystrokes']['set']('esc',(_0x54ef68,_0x5bfe91)=>{this['fire']('cancel'),_0x5bfe91();});}};function At(_0x2ae9f7){return class _0x54b60f extends _0x2ae9f7{['showConfirm'](_0x5c7919,_0x59d9bb){return this['confirmView']=new Mt(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x5c7919,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x59d9bb['appendChild'](this['confirmView']['element']),_0x59d9bb['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x5ba78b,_0x4d65c1,_0x3f573e)=>{_0x3f573e||_0x59d9bb['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x5502e7=>this['confirmView']['on']('submit',_0x5502e7));}['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 Tt(_0x534791){let _0x15b7f4=0x0,_0x247e80=0x0;for(const _0x34d7e2 of Nt(_0x534791))_0x15b7f4=(_0x15b7f4<<0x5)-_0x15b7f4+_0x34d7e2,_0x15b7f4&=_0x15b7f4,[_0x15b7f4,_0x247e80]=[_0x247e80,_0x15b7f4];return Bt(_0x15b7f4)+Bt(_0x247e80);}function*Pt(_0x1363da){null==_0x1363da||null==_0x1363da?yield 0x12b9b0a1:0x0===_0x1363da||!0x1===_0x1363da?yield 0x0:0x1===_0x1363da||0x1==_0x1363da?yield 0x1:Array['isArray'](_0x1363da)?yield*function*(_0x3d4a45){for(const _0x45e924 of _0x3d4a45)yield*Pt(_0x45e924);}(_0x1363da):'object'==typeof _0x1363da?yield*Nt(_0x1363da):'string'==typeof _0x1363da?yield*Vt(_0x1363da):'number'==typeof _0x1363da&&(yield _0x1363da);}function*Nt(_0x19c721){if(yield Ot('{'),_0x19c721){const _0x2b48d5=Object['keys'](_0x19c721)['sort']();for(const _0xd218d4 of _0x2b48d5){yield*Vt(_0xd218d4),yield Ot(':');const _0x35f9fa=_0x19c721[_0xd218d4];yield*Pt(_0x35f9fa);}}yield Ot('}');}function*Vt(_0x51d75b){yield Ot('\x22');for(const _0x33c729 of _0x51d75b)yield Ot(_0x33c729);yield Ot('\x22');}function Ot(_0x506df7){return _0x506df7['charCodeAt'](0x0);}function Bt(_0x488f6f){return(_0x488f6f*=Math['sign'](_0x488f6f))['toString'](0x24);}function Dt(_0x285dd3){if('addAttribute'!=_0x285dd3['type']&&'removeAttribute'!=_0x285dd3['type']&&'changeAttribute'!=_0x285dd3['type'])return!0x1;try{return _0x285dd3['_validate'](),!0x1;}catch{return!0x0;}}const $t=['root','roots','initialData','context','toolbar','rootsAttributes'],Lt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Rt(_0x29cc73,_0x519c88,_0x37c02e,_0xb5b2f3=[]){const _0xf682d2='string'==typeof _0x29cc73?_0x37c02e['get'](_0x29cc73)['constructor']:_0x29cc73['prototype']['constructor'];if(_0x519c88['has'](_0xf682d2))return _0x519c88['get'](_0xf682d2);_0x519c88['set'](_0xf682d2,!0x0);const _0x4acda5=[...Lt,..._0xb5b2f3]['map'](_0x4e60d8=>{if(_0x37c02e['has'](_0x4e60d8))return _0x37c02e['get'](_0x4e60d8)['constructor'];})['filter'](_0x2c72a7=>_0x2c72a7);if(_0xf682d2&&_0x4acda5['includes'](_0xf682d2))return _0x519c88['set'](_0xf682d2,!0x1),!0x1;if(!_0xf682d2['requires'])return _0x519c88['set'](_0xf682d2,!0x0),!0x0;const _0x1038a6=_0xf682d2['requires']['every'](_0x1a11d9=>Rt(_0x1a11d9,_0x519c88,_0x37c02e,_0xb5b2f3));return _0x519c88['set'](_0xf682d2,_0x1038a6),_0x1038a6;}function Ft(_0x3f6158,_0x34b29f){const _0x10ec10={};for(const _0x307c07 of _0x3f6158['config']['names']())$t['includes'](_0x307c07)||(_0x10ec10[_0x307c07]=_0x3f6158['config']['get'](_0x307c07));const _0x24740d=_0x10ec10['plugins']||[],_0x2e90fe=_0x3f6158['constructor']['builtinPlugins']||[],_0x529993=_0x24740d['length']?_0x24740d:_0x2e90fe,_0x5cddc6=_0x10ec10['extraPlugins']||[];delete _0x10ec10['extraPlugins'];const _0x291098=_0x10ec10['removePlugins']||[];delete _0x10ec10['removePlugins'];const _0x2d8e4f=_0x3f6158['_context']['config']['get']('plugins')||[],_0x1bbff7=_0x529993['concat'](_0x5cddc6)['concat'](_0x2d8e4f)['map'](_0x24fbee=>'string'==typeof _0x24fbee?_0x2e90fe['find'](_0x3ddbd3=>_0x3ddbd3['pluginName']==_0x24fbee):_0x24fbee)['filter'](_0xdd94e2=>!_0x291098['includes'](_0xdd94e2)&&!_0x291098['includes'](_0xdd94e2['pluginName'])),_0x5d06e5=Array['from'](new Set(_0x1bbff7)),_0x50c4fe=new Map();return _0x10ec10['plugins']=_0x5d06e5['filter'](_0x4a375c=>Rt(_0x4a375c,_0x50c4fe,_0x3f6158['plugins'],_0x34b29f)),_0x10ec10;}function Ht(_0x3d2ef5,_0x1586cc){const _0x3ba97c=[];_0x3d2ef5['document']['selection']['on']('change:range',()=>{const _0x160641=function(_0x19d927,_0x100e3f){const _0x176861=[];for(const _0x30cce2 of _0x19d927['markers']){const _0x5122af=_0x30cce2['getRange']();(_0x5122af['containsPosition'](_0x100e3f)||_0x5122af['start']['isEqual'](_0x100e3f)||_0x5122af['end']['isEqual'](_0x100e3f))&&_0x176861['push'](_0x30cce2);}return _0x176861;}(_0x3d2ef5,_0x3d2ef5['document']['selection']['focus']),_0x1efc43=[],_0x136c39=[],_0x4587ef=[];for(const _0x1f4218 of _0x3ba97c)_0x160641['includes'](_0x1f4218)||_0x1efc43['push'](_0x1f4218);for(const _0x1be275 of _0x160641)_0x3ba97c['includes'](_0x1be275)||_0x136c39['push'](_0x1be275),_0x4587ef['push'](_0x1be275);(_0x1efc43['length']||_0x136c39['length'])&&_0x1586cc({'left':_0x1efc43,'entered':_0x136c39}),_0x3ba97c['length']=0x0,_0x3ba97c['push'](..._0x4587ef);});}const Ut='Ctrl+Shift+E';function zt(_0xb8e8ba,_0x2132d9){const _0x19b92f=_0xb8e8ba['element'];_0xb8e8ba['keystrokes']['listenTo'](_0x19b92f);for(const _0x35f926 of _0x2132d9)Wt(_0xb8e8ba,_0x35f926);_0x2132d9['on']('change',(_0x4b9447,_0x90d975)=>{for(const _0x4ad576 of _0x90d975['removed'])Yt(_0xb8e8ba,_0x4ad576);for(const _0x577ce8 of Array['from'](_0x90d975['added'])['reverse']())Wt(_0xb8e8ba,_0x577ce8);}),_0xb8e8ba['keystrokes']['set']('enter',(_0x1d060b,_0x2906fd)=>{_0x19b92f===_0x1d060b['target']&&(_0xb8e8ba['focusCycler']['focusFirst'](),_0x2906fd());},{'filter':_0x57d58f=>_0x57d58f['target']===_0x19b92f}),_0xb8e8ba['keystrokes']['set']('esc',(_0x6c7570,_0x99bd28)=>{_0x19b92f!==_0x6c7570['target']?_0xb8e8ba['focus']():_0xb8e8ba['fire']('escape'),_0x99bd28();}),_0xb8e8ba['keystrokes']['set']('arrowdown',(_0x157dd2,_0xdbfe80)=>{_0x19b92f===_0x157dd2['target']&&(_0xb8e8ba['fire']('arrowdown'),_0xdbfe80());}),_0xb8e8ba['keystrokes']['set']('arrowup',(_0x413401,_0x559132)=>{_0x19b92f===_0x413401['target']&&(_0xb8e8ba['fire']('arrowup'),_0x559132());});}function Wt(_0xd4d90a,_0x5cb0fa){_0x5cb0fa['isRendered']&&(_0xd4d90a['focusTracker']['add'](_0x5cb0fa['element']),_0xd4d90a['keystrokes']['listenTo'](_0x5cb0fa['element']),_0x199e39(_0x5cb0fa)&&function(_0x2f040d,_0x1050e9){const _0x534f5b=_0x2f040d['actions'],_0x34d57c=_0x1050e9['actions'];for(const _0x1cee84 of Object['keys'](_0x534f5b))if(_0x1cee84 in _0x34d57c&&_0x534f5b[_0x1cee84]!==_0x34d57c[_0x1cee84])return!0x1;return!0x0;}(_0xd4d90a['focusCycler'],_0x5cb0fa['focusCycler'])&&_0xd4d90a['focusCycler']['chain'](_0x5cb0fa['focusCycler']));}function Yt(_0x476bd5,_0x3851bf){_0x476bd5['focusTracker']['remove'](_0x3851bf['element']),_0x476bd5['keystrokes']['stopListening'](_0x3851bf['element']),_0x199e39(_0x3851bf)&&_0x476bd5['focusCycler']['unchain'](_0x3851bf['focusCycler']);}const jt='$elementId',Jt='data-id';var Gt=class extends _0x5c3be4{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async init(){this['context']instanceof _0x211a7f?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x3debe0,_0x38e6e6)=>{_0x38e6e6['on']('ready',()=>{this['_integrateEditor'](_0x38e6e6);});});}get editor(){if(this['context']instanceof _0x211a7f)return this['context'];{const _0x41e4d9=this['context']['editors']['first'];if(!_0x41e4d9)throw new _0x29ae14('documentcompare-no-editor',this);return _0x41e4d9;}}getDiff(_0x50f4b5,_0x5989df,_0x222d9b={'anchor':'main','markDeletions':!0x1}){const _0x44056c=_0x222d9b['targetEditor']||this['editor'],_0x4cc381=_0x222d9b['anchor']??'main';let _0x3f9d3e,_0x4a0762;if('string'==typeof _0x4cc381){const _0x4ad48e=_0x44056c['model']['document']['getRoot'](_0x4cc381);if(!_0x4ad48e)throw new _0x29ae14('documentcompare-compare-no-root',this,{'anchor':_0x4cc381});_0x3f9d3e=_0x4ad48e,_0x4a0762=_0x44056c['model']['createPositionAt'](_0x4ad48e,0x0);}else _0x3f9d3e=_0x4cc381['clone'](),_0x4a0762=_0x4cc381['clone']();const _0x40cf66=_0x44056c['data']['parse'](_0x50f4b5,_0x3f9d3e),_0x3a8137=_0x44056c['data']['parse'](_0x5989df,_0x3f9d3e);return new Kt({'editor':_0x44056c,'before':_0x40cf66,'after':_0x3a8137,'options':{'anchor':_0x4a0762,'markDeletions':_0x222d9b['markDeletions']}});}isMarkedRemoveOperation(_0x4c8ed3){return'marker'==_0x4c8ed3['type']&&_0x4c8ed3['name']['startsWith']('$markedRemove');}applyOperations(_0x1eb625,_0x27107f){const _0x56fde0=_0x1eb625['model'];for(const _0x4eb459 of _0x27107f)Dt(_0x4eb459)||(_0x4eb459 instanceof _0x571744?_0x1eb625['_addOperationForAffectedMarkers']('move',_0x5ef620['_createFromPositionAndShift'](_0x4eb459['sourcePosition'],_0x4eb459['howMany'])):_0x4eb459 instanceof _0x14ac20?_0x1eb625['_addOperationForAffectedMarkers']('merge',_0x4eb459['deletionPosition']):_0x4eb459 instanceof _0x366cb2&&this['_fixMarkerOperationOldRange'](_0x56fde0,_0x4eb459),_0x4eb459['baseVersion']=_0x56fde0['document']['version'],_0x1eb625['batch']['addOperation'](_0x4eb459),_0x56fde0['applyOperation'](_0x4eb459));}_fixMarkerOperationOldRange(_0x5c19bd,_0x31eb75){const _0x7bb76d=_0x5c19bd['markers']['get'](_0x31eb75['name']);_0x7bb76d&&(_0x31eb75['oldRange']=_0x7bb76d['getRange']());}_integrateEditor(_0x7dd9b4){_0x7dd9b4['conversion']['for']('upcast')['add'](_0x4b2232=>{_0x4b2232['on']('element',(_0x2bb645,_0xed0965,_0x5c057a)=>{if(_0xed0965['modelRange']&&_0x5c057a['consumable']['consume'](_0xed0965['viewItem'],{'attributes':'data-id'}))for(const _0x1bec3f of _0xed0965['modelRange']['getItems']({'shallow':!0x0})){if(_0x1bec3f['is']('$textProxy'))continue;const _0x3ab24a=_0xed0965['viewItem']['getAttribute'](Jt);_0x3ab24a&&_0x5c057a['writer']['setAttribute'](jt,_0x3ab24a,_0x1bec3f);}},{'priority':'low'});}),_0x7dd9b4['model']['schema']['addAttributeCheck'](()=>!0x0,jt);}},Kt=class{_editor;_diffItems=[];_markDeletions;['_anchor'];_operationsData=[];_path=[0x0];_parents=[];_splitPostponedData=new Map();constructor({editor:_0x3b9162,before:_0x3e958d,after:_0x226589,options:_0x55c23c}){this['_editor']=_0x3b9162,this['_markDeletions']=!!_0x55c23c['markDeletions'],this['_anchor']=_0x55c23c['anchor'];const _0x310043=this['_tokenizeModel'](_0x3e958d),_0x3a17d8=this['_tokenizeModel'](_0x226589);this['_diffItems']=this['_diffModelTokens'](_0x310043,_0x3a17d8),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x3e958d['markers'],_0x226589['markers']);}getOperationsData(){return this['_operationsData'];}getOperations(){const _0x2664aa=this['_editor']['model']['document'],_0x2e8697=[];let _0x1140d5=_0x2664aa['version'];for(const _0xf4b047 of this['_operationsData'])switch(_0xf4b047['type']){case'attribute':{const _0x28d11b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x4a1bc3=new _0x5ef620(_0x28d11b,_0x28d11b['getShiftedBy'](_0xf4b047['howMany'])),_0x22ebb1=JSON['parse'](_0xf4b047['oldValue']),_0x491971=JSON['parse'](_0xf4b047['newValue']);_0x2e8697['push'](new _0x617699(_0x4a1bc3,_0xf4b047['key'],_0x22ebb1,_0x491971,_0x1140d5++));break;}case'insert':{const _0x5e280e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x4f8c67=this['_makeModelFromTokens'](_0xf4b047['tokens']);_0x2e8697['push'](new _0x4d7520(_0x5e280e,_0x4f8c67,_0x1140d5++));break;}case'remove':{const _0x4d64d0=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x24f5d7=new _0xb9aff(_0x2664aa['graveyard'],[0x0]);_0x2e8697['push'](new _0x571744(_0x4d64d0,_0xf4b047['howMany'],_0x24f5d7,_0x1140d5++));break;}case'rename':{const _0x54b441=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']);_0x2e8697['push'](new _0x2b7858(_0x54b441,_0xf4b047['oldName'],_0xf4b047['newName'],_0x1140d5++));break;}case'split':{const _0x1d4f8e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']),_0x4c448b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['path']['slice'](0x0,-0x1));_0x4c448b['offset']++,_0x2e8697['push'](new _0x196445(_0x1d4f8e,Number['NEGATIVE_INFINITY'],_0x4c448b,null,_0x1140d5++));break;}case'merge':{const _0x46ff13=_0xf4b047['path']['slice'](),_0xce30db=_0x46ff13['slice'](0x0,-0x1);_0xce30db[_0xce30db['length']-0x1]++,_0xce30db['push'](0x0);const _0x5a42ba=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xce30db),_0x5ec808=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x46ff13),_0x200777=new _0xb9aff(_0x2664aa['graveyard'],[0x0]);_0x2e8697['push'](new _0x14ac20(_0x5a42ba,Number['NEGATIVE_INFINITY'],_0x5ec808,_0x200777,_0x1140d5++));break;}case'marker':case'markedRemove':{let _0x1d45c5=null;_0xf4b047['range']&&(_0x1d45c5=new _0x5ef620(this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['start']),this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['end'])));const _0x26f7ce='marker'==_0xf4b047['type']?_0xf4b047['name']:'$markedRemove:'+_0x2bf19e();_0x2e8697['push'](new _0x366cb2(_0x26f7ce,null,_0x1d45c5,_0x2664aa['model']['markers'],!0x0,_0x1140d5++));break;}case'unwrap':{const _0x17aaa2=_0xf4b047['path']['slice']();_0x17aaa2['push'](0x0);const _0x47530e=_0xf4b047['path']['slice'](),_0x1cdf20=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x17aaa2),_0x4d1c4d=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x47530e),_0x56aa5b=new _0xb9aff(_0x2664aa['graveyard'],[0x0]);_0x2e8697['push'](new _0x571744(_0x1cdf20,_0xf4b047['howMany'],_0x4d1c4d,_0x1140d5++)),_0x2e8697['push'](new _0x571744(_0x4d1c4d['getShiftedBy'](_0xf4b047['howMany']),0x1,_0x56aa5b,_0x1140d5++));break;}case'wrap':{const _0x2e671b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['start']),_0x327683=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xf4b047['range']['end']),_0x5ee540=_0xf4b047['token']['element']['_clone'](!0x1);_0x5ee540['_removeAttribute'](jt);const _0x153b6d=_0xf4b047['range']['end']['slice']();_0x153b6d['push'](0x0);const _0x6ee4b5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x153b6d);_0x2e8697['push'](new _0x4d7520(_0x327683,_0x5ee540,_0x1140d5++)),_0x2e8697['push'](new _0x571744(_0x2e671b,_0x327683['offset']-_0x2e671b['offset'],_0x6ee4b5,_0x1140d5++));break;}}return _0x2e8697;}_tokenizeModel(_0x172438){const _0x7d11b3=[],_0x4edf95=new _0x1a88ca({'boundaries':_0x5ef620['_createIn'](_0x172438)});let _0x312b56='',_0x47fb86=null;const _0x5a80cd=[''],_0x565cc9=new Map();for(const _0x3ec5d7 of _0x4edf95)if('elementStart'==_0x3ec5d7['type']||'elementEnd'==_0x3ec5d7['type']){let _0x422ff1=_0x5a80cd[0x0];''!==_0x312b56&&(_0x7d11b3['push'](...this['_makeTokensFromTextByWords'](_0x312b56,_0x47fb86,_0x422ff1)),_0x312b56='');const _0x1e0298=_0x3ec5d7['item'];let _0x33decb;_0x1e0298['getAttribute']('$elementId')?_0x33decb=_0x1e0298['getAttribute'](jt):'elementStart'==_0x3ec5d7['type']?(_0x33decb=Zt(_0x1e0298),_0x565cc9['set'](_0x1e0298,_0x33decb)):_0x33decb=_0x565cc9['get'](_0x1e0298);const _0x2d8faa=this['_getElementCategory'](_0x1e0298);'solid'==_0x2d8faa&&('elementStart'==_0x3ec5d7['type']?(_0x422ff1=_0x33decb,_0x5a80cd['unshift'](_0x422ff1)):_0x5a80cd['shift']());const _0x5b6bc0={'type':'element','element':_0x1e0298,'elementId':_0x33decb,'category':_0x2d8faa,'isStart':'elementStart'==_0x3ec5d7['type'],'limitId':_0x422ff1};_0x7d11b3['push'](_0x5b6bc0);}else''==_0x312b56&&(_0x47fb86=_0x3ec5d7['previousPosition']['clone']()),_0x312b56+=_0x3ec5d7['item']['data'];return''!==_0x312b56&&_0x7d11b3['push'](...this['_makeTokensFromTextByWords'](_0x312b56,_0x47fb86,_0x5a80cd[0x0])),_0x7d11b3;}_makeTokensFromTextByWords(_0x51aa69,_0xb847ac,_0x25b210){const _0x465cab=_0x51aa69['matchAll'](/(\s)/g),_0x4a6b76=Array['from'](_0x465cab)['map'](_0x571cbc=>_0x571cbc['index']);_0x4a6b76['push'](_0x51aa69['length']),0x0==_0x4a6b76[0x0]&&_0x4a6b76['shift']();const _0x10433c=[],_0x5b338a=_0xb847ac['parent'];let _0x5cdcc2=0x0,_0x4f2108=_0xb847ac['offset'];for(let _0x9f1409=0x0;_0x9f1409<_0x4a6b76['length'];_0x9f1409++)_0x10433c['push']({'type':'text','data':_0x51aa69['slice'](_0x5cdcc2,_0x4a6b76[_0x9f1409]),'parent':_0x5b338a,'offset':_0x4f2108,'limitId':_0x25b210}),_0x5cdcc2=_0x4a6b76[_0x9f1409],_0x4f2108=_0xb847ac['offset']+_0x4a6b76[_0x9f1409];return _0x10433c;}_getElementCategory(_0x474cc3){const _0x15ed82=this['_editor']['model']['schema'];return _0x15ed82['isLimit'](_0x474cc3)||_0x15ed82['isContent'](_0x474cc3)||_0x15ed82['isInline'](_0x474cc3)?'solid':_0x15ed82['isBlock'](_0x474cc3)?'block':function(_0x7729a7,_0x46c1c9){const _0x264402=_0x7729a7['parent'];if(!_0x264402||_0x264402['is']('documentFragment'))return!0x1;if(_0x46c1c9['checkChild'](_0x264402,'$text'))return!0x1;for(const _0xd363ec of _0x7729a7['getChildren']())if(_0xd363ec['is']('$text'))return!0x0;return!0x1;}(_0x474cc3,_0x15ed82)?'solid':'container';}['_diffModelTokens'](_0x27ed08,_0x2f5c7d){const _0x4499a1=_0x282dd8(_0x27ed08,_0x2f5c7d,{'comparator':qt});this['_handleUnclosedBlockOpeningTags'](_0x4499a1);const _0x5db07b=_0x4499a1['flatMap'](_0x191470=>{const _0x176c51=_0x191470['added']?'added':_0x191470['removed']?'removed':'unchanged';return _0x191470['value']['map'](_0x597299=>({'token':_0x597299,'change':_0x176c51}));});let _0x4c7205=0x0;for(const _0x549f1c of _0x5db07b)'added'!=_0x549f1c['change']&&('unchanged'==_0x549f1c['change']&&(_0x549f1c['before']=_0x27ed08[_0x4c7205]),_0x4c7205++);return _0x5db07b;}['_handleUnclosedBlockOpeningTags'](_0x26ad96){for(let _0x18cb89=0x0;_0x18cb89<_0x26ad96['length']-0x1;_0x18cb89++)if(_0x26ad96[_0x18cb89]['removed']&&_0x26ad96[_0x18cb89+0x1]['added']){const _0x2819eb=this['_findUnclosedBlockOpeningToken'](_0x26ad96[_0x18cb89]['value']);if(null!==_0x2819eb){const _0x1202e8=this['_findUnclosedBlockOpeningToken'](_0x26ad96[_0x18cb89+0x1]['value']),_0xb2c87e=_0x26ad96[_0x18cb89]['value']['splice'](_0x2819eb),_0x9072d0=_0x26ad96[_0x18cb89+0x1]['value']['splice'](_0x1202e8),_0x1b7144=[_0x9072d0['shift']()];_0xb2c87e['shift']();const _0x55e708={'value':_0xb2c87e,'removed':!0x0},_0x578f81={'value':_0x9072d0,'added':!0x0},_0x494a9b={'value':_0x1b7144};_0x26ad96['splice'](_0x18cb89+0x2,0x0,_0x494a9b,_0x55e708,_0x578f81);}}}['_findUnclosedBlockOpeningToken'](_0x3bfb24){let _0x365a25=0x0,_0x3a1805=-0x1;for(let _0x14c93c=0x0;_0x14c93c<_0x3bfb24['length'];_0x14c93c++){const _0x3994a5=_0x3bfb24[_0x14c93c];'element'==_0x3994a5['type']&&'block'==_0x3994a5['category']&&(_0x365a25+=_0x3994a5['isStart']?0x1:-0x1,_0x3994a5['isStart']&&(_0x3a1805=_0x14c93c));}return 0x0===_0x365a25?null:_0x3a1805;}_calculateOperationsData(){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x8bdb09=0x0;_0x8bdb09<this['_diffItems']['length'];_0x8bdb09++){const _0x146eab=this['_diffItems'][_0x8bdb09]['change'],_0x119179=[];_0x119179['push'](this['_diffItems'][_0x8bdb09]);let _0x1a836e=_0x8bdb09+0x1;for(;this['_diffItems'][_0x1a836e]&&this['_diffItems'][_0x1a836e]['change']==_0x146eab;)_0x119179['push'](this['_diffItems'][_0x1a836e]),_0x1a836e++,_0x8bdb09++;const _0x22019a=_0x119179['map'](_0x235bd4=>_0x235bd4['token']);if('unchanged'==_0x146eab)_0x119179['map'](_0x5d0ae9=>_0x5d0ae9['before'])['forEach'](_0x1aae81=>this['_traverseOverItem'](_0x1aae81));else{if('removed'==_0x146eab){if(this['_markDeletions']){const _0x275fa4=this['_path']['slice']();_0x22019a['forEach'](_0x1d80a7=>this['_traverseOverItem'](_0x1d80a7));const _0xa4b0c5=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x275fa4,'end':_0xa4b0c5}});}else this['_handleChanged'](_0x22019a,!0x0,this['_path']['slice']());}else{const _0x30ab3c=_0x22019a['filter'](_0x1aa7cf=>'element'!=_0x1aa7cf['type']||'container'!=_0x1aa7cf['category']);this['_handleChanged'](_0x30ab3c,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x505bb4=0x0;_0x505bb4<this['_diffItems']['length'];_0x505bb4++){const _0x16be71=this['_diffItems'][_0x505bb4]['change'],_0x5e02ae=[];_0x5e02ae['push'](this['_diffItems'][_0x505bb4]);let _0x2aa38f=_0x505bb4+0x1;for(;this['_diffItems'][_0x2aa38f]&&this['_diffItems'][_0x2aa38f]['change']==_0x16be71;)_0x5e02ae['push'](this['_diffItems'][_0x2aa38f]),_0x2aa38f++,_0x505bb4++;const _0x5522c5=_0x5e02ae['map'](_0x4d19ad=>_0x4d19ad['token']);if('unchanged'==_0x16be71){const _0x2232c1=_0x5e02ae['map'](_0x215953=>_0x215953['before']);this['_handleUnchanged'](_0x2232c1,_0x5522c5);}else('added'==_0x16be71||this['_markDeletions'])&&_0x5522c5['forEach'](_0x26532f=>{'element'==_0x26532f['type']&&_0x26532f['isStart']&&this['_splitPostponedData']['has'](_0x26532f['element'])&&this['_handleSplitPostponedData'](_0x26532f['element'],this['_path']),this['_traverseOverItem'](_0x26532f);});}}_handleSplitPostponedData(_0x4b6d8b,_0x3f5e8d){const _0x3f0c9a=this['_splitPostponedData']['get'](_0x4b6d8b);for(const _0x367fe8 of _0x3f0c9a)'rename'==_0x367fe8['type']?this['_operationsData']['push']({'type':'rename','path':_0x3f5e8d['slice'](),'oldName':_0x367fe8['oldValue'],'newName':_0x4b6d8b['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x3f5e8d['slice'](),'howMany':0x1,'key':_0x367fe8['key'],'oldValue':_0x367fe8['oldValue'],'newValue':JSON['stringify'](_0x4b6d8b['getAttribute'](_0x367fe8['key'])??null)});}_calculateMarkersOperationsData(_0x4e7aa3,_0x6db690){const _0x59bc85={};for(const [_0x54c87f]of _0x4e7aa3)_0x59bc85[_0x54c87f]=null;for(const [_0x3cee6e,_0x3dc5e9]of _0x6db690)_0x59bc85[_0x3cee6e]=_0x3dc5e9;const _0x2d315f=Object['entries'](_0x59bc85)['map'](([_0x11c504,_0x316edc])=>({'type':'marker','name':_0x11c504,'range':_0x316edc?{'start':_0x316edc['start']['path']['slice'](),'end':_0x316edc['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x2d315f);}['_handleUnwraps'](){const _0x5b2957=new Map(),_0x25405a=[],_0x38c1f4=[0x0];let _0x1a632f=this['_diffItems']['length']+0x1;for(let _0x393ecd=this['_diffItems']['length']-0x1;_0x393ecd>=0x0;_0x393ecd--){const {token:_0x425686,before:_0x29224a,change:_0x5de2b7}=this['_diffItems'][_0x393ecd];if('removed'!=_0x5de2b7&&(_0x1a632f=_0x393ecd),'element'!=_0x425686['type']||'container'!=_0x425686['category']||'added'==_0x5de2b7)continue;const _0x30f993=_0x29224a?_0x29224a['element']:_0x425686['element'];if(_0x425686['isStart']){const _0x403309=_0x5b2957['get'](_0x30f993),_0x24d854=this['_diffItems'][_0x403309];('removed'==_0x5de2b7||'removed'==_0x24d854['change'])&&_0x1a632f<_0x403309&&(this['_operationsData']['push']({'type':'unwrap','path':_0x30f993['getPath'](),'howMany':_0x30f993['maxOffset']+_0x38c1f4[0x0]}),_0x38c1f4['shift'](),_0x38c1f4[0x0]+=_0x30f993['maxOffset']-0x1,_0x25405a['push'](_0x393ecd),_0x25405a['push'](_0x403309));}else _0x5b2957['set'](_0x30f993,_0x393ecd),_0x38c1f4['unshift'](0x0);}_0x25405a['sort']((_0x5c4f4b,_0x515787)=>_0x515787-_0x5c4f4b),_0x25405a['forEach'](_0x553126=>{const _0x3321d9=this['_diffItems'][_0x553126];'removed'==_0x3321d9['change']?this['_diffItems']['splice'](_0x553126,0x1):(_0x3321d9['change']='added',delete _0x3321d9['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x4a47a3=[];for(let _0x289981=0x0;_0x289981<this['_diffItems']['length'];_0x289981++){const {change:_0x51d746,token:_0x351a21}=this['_diffItems'][_0x289981];if('added'==_0x51d746&&'element'==_0x351a21['type']&&'container'==_0x351a21['category']){if(_0x351a21['isStart'])_0x4a47a3['push'](this['_path']['slice']());else{if(!_0x351a21['isStart']){const _0x101a6f=_0x4a47a3['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x101a6f,'end':this['_path']['slice']()},'token':_0x351a21}),this['_path'][this['_path']['length']-0x1]=_0x101a6f[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x51d746||this['_markDeletions'])&&this['_traverseOverItem'](_0x351a21);}}['_handleUnchanged'](_0x1b4aa6,_0x409e92){for(let _0x295675=0x0;_0x295675<_0x1b4aa6['length'];_0x295675++){const _0x1b5293=_0x1b4aa6[_0x295675];if('element'==_0x1b5293['type']&&_0x1b5293['isStart']){const _0x7e642=_0x409e92[_0x295675];'block'==_0x1b5293['category']&&this['_handleElementRename'](_0x1b5293['element'],_0x7e642['element'],this['_path']),this['_handleElementAttributeChanges'](_0x1b5293['element'],_0x7e642['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x7e642);}else{if('element'!=_0x1b5293['type']||_0x1b5293['isStart']){if('text'==_0x1b5293['type']){const _0x4c8488=this['_path']['slice'](),_0x169b9a=[],_0x45057e=[];for(;_0x1b4aa6[_0x295675]&&'text'==_0x1b4aa6[_0x295675]['type'];)_0x169b9a['push'](_0x1b4aa6[_0x295675]),_0x45057e['push'](_0x409e92[_0x295675]),this['_path'][this['_path']['length']-0x1]+=_0x1b4aa6[_0x295675]['data']['length'],_0x295675++;_0x295675--,this['_handleTextAttributeChanges'](_0x169b9a,_0x45057e,_0x4c8488);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x5640f6,_0x3e63e6,_0x47e289){const _0x152a76=[],_0x1949b9=[],_0x128b62=_0x47e289['slice']();let _0x2ed698=this['_parents']['length']-0x1;for(let _0x27ac68=0x0;_0x27ac68<_0x5640f6['length'];_0x27ac68++){const _0xfc9295=_0x5640f6[_0x27ac68],_0x5cde05=_0x47e289['slice']();'element'!=_0xfc9295['type']||_0xfc9295['isStart']?'element'==_0xfc9295['type']&&_0xfc9295['isStart']?(_0x47e289['push'](0x0),_0x2ed698++,_0x1949b9['push']({'before':_0x5cde05,'after':_0x47e289['slice'](),'index':_0x27ac68})):_0x47e289[_0x47e289['length']-0x1]+=_0xfc9295['data']['length']:(_0x47e289['pop'](),_0x47e289[_0x47e289['length']-0x1]++,_0x2ed698--,_0x1949b9['length']?_0x1949b9['pop']():_0x152a76['push']({'before':_0x5cde05,'after':_0x47e289['slice'](),'index':_0x27ac68}));}if(_0x1949b9['length']!==_0x152a76['length'])throw new _0x29ae14('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x5640f6,'isRemove':_0x3e63e6});const _0x13fc9f=[{'after':_0x128b62['slice'](),'index':-0x1},..._0x152a76,..._0x1949b9,{'before':_0x47e289['slice'](),'index':_0x5640f6['length']}];if(_0x3e63e6){for(let _0x19f97a=_0x13fc9f['length']-0x1;_0x19f97a>=0x1;_0x19f97a--){const _0x29c822=_0x13fc9f[_0x19f97a-0x1]['after'],_0x14faa0=_0x13fc9f[_0x19f97a]['before'],_0x532bc7=_0x14faa0[_0x14faa0['length']-0x1]-_0x29c822[_0x29c822['length']-0x1];_0x532bc7&&(this['_operationsData']['push']({'type':'remove','path':_0x29c822,'howMany':_0x532bc7}),_0x14faa0[_0x14faa0['length']-0x1]-=_0x532bc7);}for(const {before:_0x42e9cb}of _0x152a76)this['_operationsData']['push']({'type':'merge','path':_0x42e9cb});}else for(let _0x994c6b=0x0;_0x994c6b<_0x13fc9f['length']-0x1;_0x994c6b++){const _0x6b20c8=_0x13fc9f[_0x994c6b]['after'],_0x6781b0=_0x13fc9f[_0x994c6b+0x1]['before'],_0x261130=_0x13fc9f[_0x994c6b]['index']+0x1,_0x3bfaa8=_0x13fc9f[_0x994c6b+0x1]['index'];if(_0x261130!==_0x3bfaa8&&this['_operationsData']['push']({'type':'insert','path':_0x6b20c8,'tokens':_0x5640f6['slice'](_0x261130,_0x3bfaa8)}),_0x994c6b<_0x152a76['length']){this['_operationsData']['push']({'type':'split','path':_0x6781b0});const _0x48fa2b=_0x5640f6[_0x1949b9[_0x1949b9['length']-0x1-_0x994c6b]['index']],_0x1bd07c=this['_parents'][_0x2ed698]['element'];_0x1bd07c['name']!=_0x48fa2b['element']['name']&&this['_addSplitPostponedData'](_0x48fa2b['element'],{'type':'rename','oldValue':_0x1bd07c['name']});const _0x455c98=this['_getAttributeChanges'](_0x1bd07c['getAttributes'](),_0x48fa2b['element']['getAttributes']());for(const _0x4e2520 in _0x455c98){const _0x2a66ba=_0x455c98[_0x4e2520]['oldValue'];this['_addSplitPostponedData'](_0x48fa2b['element'],{'type':'attribute','key':_0x4e2520,'oldValue':_0x2a66ba});}}}}_addSplitPostponedData(_0x298d25,_0x1a0d34){const _0x5a2c96=this['_splitPostponedData']['get'](_0x298d25)||[];_0x5a2c96['push'](_0x1a0d34),this['_splitPostponedData']['set'](_0x298d25,_0x5a2c96);}_traverseOverItem(_0x18d1fc){'element'==_0x18d1fc['type']&&_0x18d1fc['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x18d1fc)):'element'!=_0x18d1fc['type']||_0x18d1fc['isStart']?'text'==_0x18d1fc['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x18d1fc['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}_handleElementRename(_0x5e3ea4,_0x2139c9,_0xb38961){_0x5e3ea4['name']!=_0x2139c9['name']&&this['_operationsData']['push']({'type':'rename','path':_0xb38961['slice'](),'oldName':_0x5e3ea4['name'],'newName':_0x2139c9['name']});}_handleElementAttributeChanges(_0x1d8d0b,_0x25caa7,_0x3eded5){const _0x2134c6=this['_getAttributeChanges'](_0x1d8d0b['getAttributes'](),_0x25caa7['getAttributes']());for(const _0x1557aa in _0x2134c6){const {oldValue:_0x2f0ea8,newValue:_0x347fae}=_0x2134c6[_0x1557aa];this['_operationsData']['push']({'type':'attribute','path':_0x3eded5['slice'](),'howMany':0x1,'key':_0x1557aa,'oldValue':_0x2f0ea8,'newValue':_0x347fae});}}_handleTextAttributeChanges(_0x5860fa,_0x47bc85,_0x29046a){const _0x550ae7=this['_operationsData'],_0x2d8065=_0x5860fa[0x0]['parent'],_0x492ac9=_0x5860fa[0x0]['offset'],_0x3cd93e=_0x47bc85[0x0]['parent'],_0x1aa168=_0x47bc85[0x0]['offset'],_0x4832e3=_0x5860fa['reduce']((_0x2ce45b,_0x659fca)=>_0x2ce45b+_0x659fca['data']['length'],0x0),_0x52674b=this['_getAttrsForOffsets'](_0x2d8065,_0x492ac9,_0x4832e3),_0x24d484=this['_getAttrsForOffsets'](_0x3cd93e,_0x1aa168,_0x4832e3),_0x5a0376={};for(let _0x1f2d58=0x0;_0x1f2d58<_0x4832e3;_0x1f2d58++){const _0x349d49=_0x52674b[_0x492ac9+_0x1f2d58],_0x22acf5=_0x24d484[_0x1aa168+_0x1f2d58],_0x1e0ec8=this['_getAttributeChanges'](_0x349d49,_0x22acf5);for(const _0x5ea77c in _0x5a0376)_0x1e0ec8[_0x5ea77c]||_0x56d723(_0x5ea77c);for(const _0x1bc06b in _0x1e0ec8){const {oldValue:_0x2d9446,newValue:_0x244925}=_0x1e0ec8[_0x1bc06b],_0x3df795=_0x5a0376[_0x1bc06b];_0x3df795?_0x3df795['oldValue']==_0x2d9446&&_0x3df795['newValue']==_0x244925?_0x3df795['length']++:(_0x56d723(_0x1bc06b),_0x5a0376[_0x1bc06b]={'oldValue':_0x2d9446,'newValue':_0x244925,'start':_0x1f2d58,'length':0x1}):_0x5a0376[_0x1bc06b]={'oldValue':_0x2d9446,'newValue':_0x244925,'start':_0x1f2d58,'length':0x1};}}for(const _0x4015cc in _0x5a0376)_0x56d723(_0x4015cc);function _0x56d723(_0x5e08cb){const _0x208794=_0x5a0376[_0x5e08cb],_0x1fe3b1=_0x29046a['slice']();_0x1fe3b1[_0x1fe3b1['length']-0x1]+=_0x208794['start'],_0x550ae7['push']({'type':'attribute','path':_0x1fe3b1,'howMany':_0x208794['length'],'key':_0x5e08cb,'oldValue':_0x208794['oldValue'],'newValue':_0x208794['newValue']}),delete _0x5a0376[_0x5e08cb];}}_getAttributeChanges(_0x49d2d1,_0x1a2f25){const _0x4cb071={};for(const [_0x2bb8d2,_0x58f2ff]of _0x49d2d1)_0x4cb071[_0x2bb8d2]={'oldValue':JSON['stringify'](_0x58f2ff),'newValue':'null'};for(const [_0x3ea4b2,_0x4d1301]of _0x1a2f25){const _0x4accfb=JSON['stringify'](_0x4d1301);_0x4cb071[_0x3ea4b2]?_0x4cb071[_0x3ea4b2]['oldValue']==_0x4accfb?delete _0x4cb071[_0x3ea4b2]:_0x4cb071[_0x3ea4b2]['newValue']=_0x4accfb:_0x4cb071[_0x3ea4b2]={'oldValue':'null','newValue':_0x4accfb};}return delete _0x4cb071[jt],_0x4cb071;}_getAttrsForOffsets(_0x1a4033,_0x111751,_0x3e3703){const _0x487a3c=new Array(_0x111751+_0x3e3703);let _0x29a5cd=_0x1a4033['getChildAtOffset'](_0x111751),_0x46a058=_0x29a5cd['startOffset'];for(;_0x29a5cd&&_0x46a058<_0x111751+_0x3e3703;){const _0xbc4f0=Array['from'](_0x29a5cd['getAttributes']());_0x487a3c['fill'](_0xbc4f0,_0x46a058,_0x46a058+_0x29a5cd['offsetSize']),_0x46a058+=_0x29a5cd['offsetSize'],_0x29a5cd=_0x29a5cd['nextSibling'];}return _0x487a3c;}_getPositionFromAnchorAndPath(_0x57abdf,_0x96b849){const _0x254f11=[..._0x57abdf['path']['slice'](0x0,-0x1),_0x57abdf['offset']+_0x96b849[0x0],..._0x96b849['slice'](0x1)];return new _0xb9aff(_0x57abdf['root'],_0x254f11);}['_makeModelFromTokens'](_0xad64cc){const _0x569d4f=[];let _0x1afcea=null;for(const _0x2c8311 of _0xad64cc)if('element'!=_0x2c8311['type']||_0x2c8311['isStart']||_0x1afcea!=_0x2c8311['element']){if(!_0x1afcea){if('text'==_0x2c8311['type']){const _0x1605bc=_0xb9aff['_createAt'](_0x2c8311['parent'],_0x2c8311['offset']),_0xe1570d=_0x5ef620['_createFromPositionAndShift'](_0x1605bc,_0x2c8311['data']['length']),_0x1ea9e9=Array['from'](_0xe1570d['getItems']())['map'](_0x2df42b=>new _0x18d995(_0x2df42b['data'],_0x2df42b['getAttributes']()));_0x569d4f['push'](..._0x1ea9e9);}else{_0x1afcea=_0x2c8311['element'];const _0x235f30=_0x2c8311['element']['_clone'](!0x0);_0x235f30['_removeAttribute'](jt);for(const _0x9e3ead of this['_editor']['model']['createRangeIn'](_0x235f30)['getItems']())_0x9e3ead['is']('element')&&_0x9e3ead['_removeAttribute'](jt);_0x569d4f['push'](_0x235f30);}}}else _0x1afcea=null;return _0x569d4f;}};function qt(_0x1b6dd3,_0x310dd4){return _0x1b6dd3['type']===_0x310dd4['type']&&(_0x1b6dd3['limitId']===_0x310dd4['limitId']&&('text'==_0x1b6dd3['type']?_0x1b6dd3['data']==_0x310dd4['data']:function(_0x4df2d8,_0x209f39){if(_0x4df2d8['isStart']!=_0x209f39['isStart'])return!0x1;if(_0x4df2d8['isStart']&&_0x4df2d8['elementId']!=_0x209f39['elementId'])return!0x1;if(_0x4df2d8['category']!=_0x209f39['category'])return!0x1;if('block'==_0x4df2d8['category'])return!0x0;if('container'==_0x4df2d8['category']&&_0x4df2d8['elementId']!=_0x209f39['elementId'])return!0x1;return _0x4df2d8['element']['name']==_0x209f39['element']['name'];}(_0x1b6dd3,_0x310dd4)));}function Zt(_0x1984f4){return Tt({'name':_0x1984f4['name'],...Object['fromEntries'](_0x1984f4['getAttributes']())});}export{z as AriaDescriptionView,F as CollaborationUserColor,At as ConfirmMixin,jt as DATA_ID_MODEL_ATTRIBUTE,Jt as DATA_ID_VIEW_ATTRIBUTE,Gt as DocumentCompare,Kt as DocumentDiff,Ut as FOCUS_ANNOTATION_KEYSTROKE,W as LateFocusButtonView,Y as LateFocusDropdownButtonView,B as Permissions,U as PillView,Ct as SuggestionsConversion,L as User,H as UserView,$ as Users,G as fixElementSuggestionRange,It as getAllMarkersDomElementsSorted,_t as getDateTimeFormatter,xt as getMarkerDomElement,Tt as hashObject,Dt as isInvalidAttributeOperation,Ft as sanitizeEditorConfig,zt as setupThreadKeyboardNavigation,J as splitSuggestionMarkerName,Ht as surroundingMarkersDetector,St as trimHtml};
|
|
23
|
+
import{ContextPlugin as _0x22fd0a,Editor as _0x4d26d5,Plugin as _0x1314e1}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x1c0e4e,Collection as _0x2bef4a,FocusTracker as _0x31a166,KeystrokeHandler as _0x25dc0f,first as _0x10b772,toArray as _0x173de3,uid as _0x31f8f0}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x4e43be,DropdownButtonView as _0x75ac0e,FocusCycler as _0x582985,IconView as _0x4efc88,View as _0x504fd1,isViewWithFocusCycler as _0x5b6986}from'@ckeditor/ckeditor5-ui';import{IconCancel as _0xfc3270,IconCheck as _0x5c452a,IconNotification as _0x3ff14c}from'@ckeditor/ckeditor5-icons';import{setHighlightHandling as _0xc39447,toWidget as _0x9c3cd3}from'@ckeditor/ckeditor5-widget';import{DateTime as _0x1e075}from'luxon';import{ModelPosition as _0x3da22e,ModelRange as _0x2bfac8}from'@ckeditor/ckeditor5-engine';var x=class extends _0x22fd0a{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}setPermissions(_0x1f5703,_0xc59bfe){let _0x1b89c4;if(_0xc59bfe||(_0xc59bfe=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0xc59bfe?_0x1b89c4=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x1b89c4=this['context']['editors']['find'](_0x37a394=>_0x37a394['config']['get']('collaboration.channelId')==_0xc59bfe)),!_0x1b89c4)throw new _0x1c0e4e('permissions-set-permissions-invalid-channel-id',null);const _0x560cc7=_0x1b89c4['plugins'],_0xf15f49=_0x560cc7['has']('CommentsRepository')?_0x560cc7['get']('CommentsRepository'):void 0x0,_0x3d7856=_0x560cc7['has']('CommentsOnly')&&_0x560cc7['get']('CommentsOnly'),_0x493bf1=_0x1f5703['includes']('document:write'),_0x57dd01=_0x1f5703['includes']('comment:modify_all'),_0x250452=_0x1f5703['includes']('comment:admin'),_0x4cb4e2=_0x1f5703['includes']('comment:write'),_0x528a91=_0x4cb4e2||_0x250452,_0x234d3a=_0x528a91||_0x57dd01,_0x8ed4a6=_0x493bf1||_0x528a91;if(_0x3d7856&&(_0x3d7856['isEnabled']=!_0x493bf1&&_0x234d3a),_0x1b89c4 instanceof _0x4d26d5&&(_0x493bf1||_0x234d3a&&_0xf15f49?_0x1b89c4['disableReadOnlyMode']('no-permissions'):_0x1b89c4['enableReadOnlyMode']('no-permissions')),_0xf15f49){_0xf15f49['setPermissions']({'admin':_0x250452,'modifyAll':_0x57dd01,'write':_0x4cb4e2,'resolve':_0x8ed4a6},_0xc59bfe);const _0x27bc32=_0x1b89c4 instanceof _0x4d26d5&&_0x1b89c4['commands']['get']('addCommentThread');_0x27bc32&&(_0x528a91?_0x27bc32['clearForceDisabled']('noPermissions'):_0x27bc32['forceDisabled']('noPermissions'));}}};function E(_0x59bc6d,_0x172a79){const t=_0x59bc6d['t'];switch(_0x172a79){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'';}}var _=class extends _0x22fd0a{['users'];_lastColor;['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[x];}constructor(_0x4584a2){super(_0x4584a2),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2bef4a(),this['_locale']=_0x4584a2['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:_0x2904a9,name:_0x4201a5,..._0x12671a}){if(!_0x2904a9||'string'!=typeof _0x2904a9)throw new _0x1c0e4e('users-add-invalid-id');if(this['users']['has'](_0x2904a9))throw new _0x1c0e4e('users-add-duplicated-id',null,{'id':_0x2904a9});const _0x53d89c=this['context']['config']['get']('users.getInitialsCallback'),_0x280d6d={..._0x12671a,'id':_0x2904a9,'name':M(this['_locale'],_0x4201a5),'color':this['_getNextColor']()};_0x280d6d['name']=M(this['_locale'],_0x280d6d['name']);const _0x8fd27f=new A(_0x280d6d,_0x53d89c);return this['users']['add'](_0x8fd27f),_0x8fd27f;}getUser(_0x5dc92c){return this['users']['get'](_0x5dc92c);}['useAnonymousUser'](){const _0x49b60f=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x49b60f);}['defineMe'](_0x486c8c){if(this['_myId'])throw new _0x1c0e4e('users-me-already-defined',null);const _0x5237ac=this['getUser'](_0x486c8c);if(!_0x5237ac)throw new _0x1c0e4e('users-me-missing-user',null);this['_myId']=_0x486c8c,_0x5237ac['_isMe']=!0x0;}getOperationAuthor(){return this['me'];}_getNextColor(){const _0xe9fe7e=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xe9fe7e&&(this['_lastColor']=0x0),new T(this['_lastColor']++);}['_addAnonymousUser'](){const _0x4f0c9d=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x4f0c9d,'name':E(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}},A=class{['id'];['color'];['name'];initials;avatar;['_isMe'];['_isAnonymous'];constructor(_0x3a81d3,_0xc3fe48){this['id']=_0x3a81d3['id'],this['color']=_0x3a81d3['color'],this['name']=_0x3a81d3['name'],this['initials']=_0xc3fe48?_0xc3fe48(this['name']):this['_computeInitials'](),this['avatar']=_0x3a81d3['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}_computeInitials(){const _0x373cb0=this['name']['split']('\x20')['filter'](_0x54e4fd=>/^[\p{Letter}]/u['test'](_0x54e4fd));return 0x1===_0x373cb0['length']?this['_getInitial'](_0x373cb0[0x0]):0x0===_0x373cb0['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x373cb0[0x0])+this['_getInitial'](_0x373cb0[_0x373cb0['length']-0x1]);}_getInitial(_0x3f455a){return String['fromCodePoint'](_0x3f455a['codePointAt'](0x0))['toUpperCase']();}};function M(_0x5e2927,_0x547c25=''){return''==(_0x547c25=_0x547c25['trim']())?E(_0x5e2927,'Anonymous'):_0x547c25;}var T=class{['_id'];constructor(_0x1139c4){this['_id']=_0x1139c4;}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'];}getColorVariable(){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}getColorAlphaVariable(){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}},P=class extends _0x504fd1{['name'];notificationView;constructor(_0xf55903,_0x3e19fc,_0x30cb8a,_0x1df2eb){super(_0xf55903),this['name']=_0x3e19fc['name'],this['notificationView']=null;const _0x4d0154=['ck','ck-user'],_0xb28feb=['ck','ck-user__img'];_0x3e19fc['isAnonymous']&&_0xb28feb['push']('ck-user__anonymous'),!_0x3e19fc['isAnonymous']&&_0x3e19fc['isMe']&&_0x4d0154['push']('ck-user_me'),(_0x3e19fc['avatar']||_0x1df2eb)&&_0xb28feb['push']('ck-user__avatar');let _0x576d10=null;if(_0x1df2eb&&(_0x576d10=new _0x4efc88(),_0x576d10['content']=_0x1df2eb,_0x576d10['extendTemplate']({'attributes':{'class':['ck-user__avatar-icon']}})),_0x30cb8a){const _0x1a5d1d=new _0x4efc88();_0x1a5d1d['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1a5d1d['content']=_0x3ff14c,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x30cb8a},'children':[_0x1a5d1d]};}const _0x2a2aa5=[{'tag':'div','attributes':{'class':_0xb28feb,'style':{'background-image':_0x3e19fc['avatar']&&!_0x1df2eb?'url(\x27'+_0x3e19fc['avatar']+'\x27)':''}},'children':_0x576d10?[_0x576d10]:[]},{'tag':'div','attributes':{'class':_0x3e19fc['avatar']||_0x1df2eb?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3e19fc['name']},'children':[{'text':_0x3e19fc['initials']}]}];this['notificationView']&&_0x2a2aa5['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x4d0154,'data-user-id':_0x3e19fc['id']},'children':_0x2a2aa5});}},B=class extends _0x504fd1{['children'];['iconView'];['labelView'];constructor(_0x2c538f){super(_0x2c538f);const _0x2ed2a7=this['bindTemplate'];this['set']('icon',void 0x0),this['set']('label',void 0x0),this['set']('tooltip',void 0x0),this['set']('tooltipPosition','n'),this['set']('tooltipClass',void 0x0),this['set']('iconPosition','left'),this['set']('class',void 0x0),this['children']=this['createCollection'](),this['iconView']=this['_createIconView'](),this['labelView']=this['_createLabelView'](),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill',_0x2ed2a7['to']('class'),_0x2ed2a7['to']('iconPosition',_0x2af9b1=>'right'===_0x2af9b1?'ck-pill_icon-right':'')],'data-cke-tooltip-text':_0x2ed2a7['to']('tooltip'),'data-cke-tooltip-position':_0x2ed2a7['to']('tooltipPosition'),'data-cke-tooltip-class':_0x2ed2a7['to']('tooltipClass')},'children':this['children']});}['render'](){super['render'](),this['icon']&&this['children']['add'](this['iconView']),this['children']['add'](this['labelView']),this['on']('change:icon',(_0x240e37,_0x1963fa,_0x264129,_0x3211a1)=>{_0x264129&&!_0x3211a1?this['children']['add'](this['iconView'],0x0):!_0x264129&&_0x3211a1&&this['children']['remove'](this['iconView']);});}_createIconView(){const _0x6be3bb=new _0x4efc88();return _0x6be3bb['extendTemplate']({'attributes':{'class':'ck-pill__icon'}}),_0x6be3bb['bind']('content')['to'](this,'icon'),_0x6be3bb;}_createLabelView(){const _0x422cb1=new _0x504fd1(this['locale']),_0x56252d=this['bindTemplate'];return _0x422cb1['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill__label']},'children':[{'text':_0x56252d['to']('label')}]}),_0x422cb1;}},L=class extends _0x504fd1{['id'];constructor(_0x1bfb4f,_0x2a623f){super(_0x1bfb4f),this['id']='ck-aria-description-'+_0x31f8f0(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2a623f}]});}},N=class extends _0x4e43be{['render'](){super['render'](),D(this);}},$=class extends _0x75ac0e{['render'](){super['render'](),D(this);}};function D(_0xb31489){_0xb31489['listenTo'](_0xb31489['element'],'mousedown',(_0x2b1439,_0x21f05b)=>{_0x21f05b['stopPropagation'](),_0x21f05b['preventDefault']();}),_0xb31489['listenTo'](_0xb31489['element'],'mouseup',()=>{_0xb31489['element']['focus']();});}function H(_0x564733){const _0x496574=_0x564733['split'](':');return{'group':_0x496574[0x0],'type':_0x496574[0x1],'subType':_0x496574['length']>=0x5?_0x496574[0x2]:null,'id':_0x496574['length']<0x5?_0x496574[0x2]:_0x496574[0x3],'authorId':_0x496574['length']<0x5?_0x496574[0x3]:_0x496574[0x4],'markerCount':0x6==_0x496574['length']?_0x496574[0x5]:null};}function z(_0x42cc71,_0x4c9438){const _0x3e67a5=_0x42cc71['end']['nodeBefore'];if(_0x3e67a5&&_0x3e67a5['is']('element')&&_0x4c9438['schema']['isBlock'](_0x3e67a5)&&!_0x4c9438['schema']['isObject'](_0x3e67a5)){const _0x583a3a=_0x4c9438['createPositionAt'](_0x3e67a5,'end');return _0x4c9438['createRange'](_0x42cc71['start'],_0x583a3a);}return _0x42cc71;}var O=class extends _0x1314e1{afterInit(){const _0x27323b=this['editor'];_0x27323b['plugins']['has']('AlignmentEditing')&&_0x27323b['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}};const U=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var V=class extends _0x1314e1{afterInit(){const _0x49c0e7=this['editor'],_0x2aa0ca=_0x49c0e7['plugins']['get']('SuggestionsConversion');for(const _0x7441a5 of U){if(!_0x49c0e7['plugins']['has'](_0x7441a5))continue;const _0x1fbaf9=_0x7441a5['slice'](0x0,-0x7)['toLowerCase']();_0x2aa0ca['registerInlineAttribute'](_0x1fbaf9);}}},W=class extends _0x1314e1{afterInit(){const _0xbb4386=this['editor'],_0x137994=_0xbb4386['plugins']['get']('SuggestionsConversion');_0xbb4386['plugins']['has']('BookmarkEditing')&&_0x137994['registerBlockAttribute']('bookmarkId');}};const F=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var R=class extends _0x1314e1{afterInit(){const _0x4ee534=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x17727f,commandName:_0x2b21b6}of F)this['editor']['plugins']['has'](_0x17727f)&&_0x4ee534['registerInlineAttribute'](_0x2b21b6);}},Y=class extends _0x1314e1{afterInit(){const {editor:_0x3004b6}=this;if(!_0x3004b6['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x3241a4=_0x3004b6['plugins']['get']('SuggestionsConversion');_0x3241a4['registerBlockAttribute']('footnotesListStyle'),_0x3241a4['registerBlockAttribute']('footnotesListStart');}},j=class extends _0x1314e1{afterInit(){const _0x55780f=this['editor'];if(!_0x55780f['plugins']['has']('GeneralHtmlSupport')||!_0x55780f['plugins']['has']('DataSchema'))return;const _0x3e2c0b=_0x55780f['plugins']['get']('SuggestionsConversion'),_0x17bd88=_0x55780f['plugins']['get']('GeneralHtmlSupport'),_0x47a17b=_0x55780f['plugins']['get']('DataSchema');for(const _0x8009b8 of _0x47a17b['getDefinitionsForView'](/.*/,!0x1)){const _0x54f31d=_0x17bd88['getGhsAttributeNameForElement'](_0x8009b8['view']);!_0x8009b8['isInline']||_0x8009b8['isObject']||'appliesToBlock'in _0x8009b8&&_0x8009b8['appliesToBlock']?_0x3e2c0b['registerBlockAttribute'](_0x54f31d):_0x3e2c0b['registerInlineAttribute'](_0x54f31d);}}},G=class extends _0x1314e1{afterInit(){const _0x3db98e=this['editor'];_0x3db98e['plugins']['has']('HighlightEditing')&&_0x3db98e['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}},K=class extends _0x1314e1{afterInit(){const _0x5858b6=this['editor'];_0x5858b6['plugins']['has']('HtmlEmbed')&&_0x5858b6['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}},q=class extends _0x1314e1{afterInit(){const _0x330534=this['editor'];if(!_0x330534['plugins']['has']('ImageEditing'))return;const _0x484809=_0x330534['plugins']['get']('SuggestionsConversion');_0x484809['registerBlockAttribute']('src'),_0x330534['plugins']['has']('ImageResize')&&_0x484809['registerBlockAttribute']('resizedWidth'),_0x330534['plugins']['has']('ImageTextAlternativeEditing')&&_0x484809['registerBlockAttribute']('alt'),_0x330534['plugins']['has']('PictureEditing')&&_0x484809['registerBlockAttribute']('sources'),_0x330534['plugins']['has']('ImageSizeAttributes')&&(_0x484809['registerBlockAttribute']('width'),_0x484809['registerBlockAttribute']('height'));}},Q=class extends _0x1314e1{afterInit(){const _0x1a2e8e=this['editor'],_0x466a0b=_0x1a2e8e['plugins']['get']('SuggestionsConversion');_0x1a2e8e['plugins']['has']('IndentBlock')&&(_0x466a0b['registerBlockAttribute']('blockIndent'),_0x1a2e8e['plugins']['has']('ListEditing')&&(_0x466a0b['registerBlockAttribute']('blockIndentList'),_0x466a0b['registerBlockAttribute']('blockIndentListItem')));}},Z=class extends _0x1314e1{afterInit(){const _0x228296=this['editor'];_0x228296['plugins']['has']('LineHeight')&&_0x228296['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}},J=class extends _0x1314e1{afterInit(){const _0x1b2f22=this['editor'];if(!_0x1b2f22['plugins']['has']('LinkEditing'))return;const _0x5ac2c1=_0x1b2f22['plugins']['get']('SuggestionsConversion'),_0x2eb808=_0x1b2f22['commands']['get']('link');_0x5ac2c1['registerInlineAttribute']('linkHref');for(const _0x294c74 of _0x2eb808['manualDecorators'])_0x5ac2c1['registerInlineAttribute'](_0x294c74['id']);}},X=class extends _0x1314e1{afterInit(){const _0x16d6d7=this['editor'];if(!_0x16d6d7['plugins']['has']('ListEditing'))return;const _0x5d5fe6=_0x16d6d7['plugins']['get']('SuggestionsConversion'),_0x4a948e=_0x16d6d7['plugins']['has']('TodoListEditing');_0x5d5fe6['registerBlockAttribute']('listItemId'),_0x5d5fe6['registerBlockAttribute']('listType'),_0x5d5fe6['registerBlockAttribute']('listIndent'),_0x4a948e&&_0x5d5fe6['registerBlockAttribute']('todoListChecked');}},tt=class extends _0x1314e1{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3bd918=this['editor']['config']['get']('list.properties'),_0xa145a1=this['editor']['plugins']['get']('SuggestionsConversion');_0x3bd918['styles']&&_0xa145a1['registerBlockAttribute']('listStyle'),_0x3bd918['reversed']&&_0xa145a1['registerBlockAttribute']('listReversed'),_0x3bd918['startIndex']&&_0xa145a1['registerBlockAttribute']('listStart');}},et=class extends _0x1314e1{afterInit(){const _0x70e7d6=this['editor'],_0x4ede1a=_0x70e7d6['plugins']['get']('SuggestionsConversion');_0x70e7d6['plugins']['has']('MultiLevelList')&&_0x4ede1a['registerBlockAttribute']('listMarkerStyle');}},it=class extends _0x1314e1{afterInit(){const _0x574d6a=this['editor'];if(!_0x574d6a['plugins']['has']('TableEditing'))return;const _0xff3f7=_0x574d6a['plugins']['get']('SuggestionsConversion');_0xff3f7['registerBlockAttribute']('headingRows'),_0xff3f7['registerBlockAttribute']('headingColumns');}},st=class extends _0x1314e1{afterInit(){const {plugins:_0x983ad9}=this['editor'];if(!_0x983ad9['has']('TablePropertiesEditing'))return;const _0x602153=_0x983ad9['get']('SuggestionsConversion');for(const _0x4f07ec of['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'])_0x602153['registerBlockAttribute'](_0x4f07ec);}},nt=class extends _0x1314e1{afterInit(){const _0x3d105b=this['editor'],_0x589bb3=_0x3d105b['plugins']['get']('SuggestionsConversion');_0x3d105b['plugins']['has']('TableLayout')&&_0x589bb3['registerBlockAttribute']('tableType');}},rt=class extends _0x1314e1{afterInit(){const _0x40354c=this['editor'],_0x4a989a=this['editor']['plugins']['get']('SuggestionsConversion');_0x40354c['plugins']['has']('Uploadcare')&&_0x40354c['plugins']['has']('UploadcareImageEdit')&&_0x4a989a['registerBlockAttribute']('uploadcareImageId');}},ot=class extends _0x1314e1{afterInit(){const _0x198a6a=this['editor'];if(!_0x198a6a['plugins']['has']('ShiftEnter'))return;const _0xcfbaf4=_0x198a6a['plugins']['get']('SuggestionsConversion'),_0x4218cf=(_0x5195cc,_0x1c0047,_0xae1ce1,_0x5f5527)=>{if(_0x5f5527&&!_0xae1ce1['options']['showSuggestionHighlights'])return;if(!_0xae1ce1['consumable']['test'](_0x1c0047['markerRange'],_0x5195cc['name']))return;const _0x38f1bb=_0x198a6a['model'];for(const _0x9701cd of _0x1c0047['markerRange']['getItems']()){if(!_0x9701cd['is']('element','softBreak'))continue;const _0x1e31d9='deletion'==_0x1c0047['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x206ee2,authorId:_0x3e683d}=H(_0x1c0047['markerName']),_0x5a13c2=_0xae1ce1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e31d9,'data-suggestion':_0x206ee2,'data-author-id':_0x3e683d}),_0x4435b1=_0xae1ce1['mapper']['toViewPosition'](_0x38f1bb['createPositionBefore'](_0x9701cd));!_0x5f5527&&_0xcfbaf4['_activeMarkers']['includes'](_0x1c0047['markerName'])&&_0xae1ce1['writer']['addClass']('ck-suggestion-marker--active',_0x5a13c2),_0xae1ce1['writer']['insert'](_0x4435b1,_0x5a13c2),_0xae1ce1['mapper']['bindElementToMarker'](_0x5a13c2,_0x1c0047['markerName']);}};_0x198a6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37938b,_0xd8bd72,_0x34db80)=>{_0x4218cf(_0x37938b,_0xd8bd72,_0x34db80,!0x1);},{'priority':'high'}),_0x198a6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x445d27,_0x44c76f,_0xc059b4)=>{_0x4218cf(_0x445d27,_0x44c76f,_0xc059b4,!0x1);},{'priority':'high'}),_0x198a6a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a31a0,_0x107179,_0x221f78)=>{_0x4218cf(_0x4a31a0,_0x107179,_0x221f78,!0x0);},{'priority':'high'}),_0x198a6a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30283c,_0x9dd3bc,_0x5bd94a)=>{_0x4218cf(_0x30283c,_0x9dd3bc,_0x5bd94a,!0x0);},{'priority':'high'});}},at=class extends _0x1314e1{afterInit(){const _0x2fda9f=this['editor'];if(!_0x2fda9f['plugins']['has']('MediaEmbedEditing'))return;const _0x3b6ad6=_0x2fda9f['plugins']['get']('SuggestionsConversion');_0x2fda9f['plugins']['has']('MediaEmbedResizeEditing')&&_0x3b6ad6['registerBlockAttribute']('resizedWidth'),_0x2fda9f['plugins']['has']('MediaEmbedStyleEditing')&&_0x3b6ad6['registerBlockAttribute']('mediaStyle'),_0x2fda9f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x28d307,{writer:_0x4477f2,options:_0x55f111})=>{if(_0x55f111['showSuggestionHighlights'])return _0x4477f2['createEmptyElement']('div');},'converterPriority':'high'}),_0x2fda9f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x38ca74,_0x3b913b,_0x46b496)=>{_0x46b496['options']['showSuggestionHighlights']&&_0x38ca74['stop']();},{'priority':'high'});}},ct=class extends _0x1314e1{afterInit(){const _0x579011=this['editor'];if(!_0x579011['plugins']['has']('Table'))return;_0x579011['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13e880,_0x194d97,_0x9df53)=>{((_0x33c87f,_0x3fdb6d,_0x94a16f)=>{if(!_0x94a16f['options']['showSuggestionHighlights'])return;const _0x1b2f2f=_0x3fdb6d['item'];if(!_0x1b2f2f||!_0x1b2f2f['is']('element','tableCell'))return;const _0x1ff633=_0x94a16f['mapper']['toViewElement'](_0x1b2f2f);if(_0x1ff633){const {id:_0x199568,authorId:_0x291d62}=H(_0x3fdb6d['markerName']);_0xc39447(_0x1ff633,_0x94a16f['writer'],(_0x22b103,_0x2494f1,_0x43af14)=>{_0x43af14['addClass'](_0x173de3(_0x2494f1['classes']),_0x22b103),_0x43af14['setAttribute']('data-suggestion',_0x199568,_0x22b103),_0x43af14['setAttribute']('data-author-id',_0x291d62,_0x22b103);});}})(0x0,_0x194d97,_0x9df53);},{'priority':'highest'});}},ut=class extends _0x1314e1{afterInit(){const _0x28a4e6=this['editor'];_0x28a4e6['plugins']['has']('HorizontalLineEditing')&&_0x28a4e6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1bd30c,{writer:_0x176a56,options:_0x208330})=>{if(!_0x208330['showSuggestionHighlights'])return null;const _0x3be3c2=_0x176a56['createContainerElement']('div'),_0x2f9bf9=_0x176a56['createEmptyElement']('hr');return _0x176a56['addClass']('ck-horizontal-line',_0x3be3c2),_0x176a56['insert'](_0x176a56['createPositionAt'](_0x3be3c2,0x0),_0x2f9bf9),_0x3be3c2;},'converterPriority':'high'});}},lt=class extends _0x1314e1{afterInit(){const {plugins:_0x2ca420,model:_0x5bd98f}=this['editor'];if(!_0x2ca420['has']('TableCellPropertiesEditing'))return;const _0x50184d=_0x2ca420['get']('SuggestionsConversion');for(const _0x4611c0 of['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'])_0x50184d['registerBlockAttribute'](_0x4611c0);_0x5bd98f['schema']['checkAttribute']('tableCell','tableCellType')&&_0x50184d['registerBlockAttribute']('tableCellType');}},dt=class extends _0x1314e1{afterInit(){const _0x32fbbf=this['editor'];_0x32fbbf['plugins']['has']('TableEditing')&&_0x32fbbf['config']['get']('table.enableFooters')&&_0x32fbbf['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}},ht=class extends _0x1314e1{_activeMarkers=[];_blockAttributeKeys=new Set(['$elementName']);_inlineAttributeKeys=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get requires(){return[O,V,W,R,Y,j,G,ut,K,q,Q,Z,J,X,tt,at,et,ot,ct,it,dt,nt,lt,st,rt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x5bbe32=this['editor'],_0x2ac6cc=(_0x1a4f71,_0x1b39db,_0x4944fe)=>{const {id:_0x12d19c,authorId:_0x1900c8,type:_0x5a5c33,subType:_0x431d08}=H(_0x1a4f71['markerName']),_0x131a9c=['ck-suggestion-marker',this['_getClassName'](_0x5a5c33,_0x431d08)];let _0x1dde27=0xbb8;return _0x4944fe||this['_activeMarkers']['includes'](_0x1a4f71['markerName'])&&(_0x131a9c['push']('ck-suggestion-marker--active'),_0x1dde27=0xbc2),'deletion'==_0x5a5c33&&(_0x1dde27+=0x5),{'classes':_0x131a9c,'attributes':{'data-suggestion':_0x12d19c,'data-author-id':_0x1900c8},'priority':_0x1dde27};};_0x5bbe32['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3c8d2f,_0x283e66)=>_0x2ac6cc(_0x3c8d2f,0x0,!0x1)}),_0x5bbe32['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x40483b,_0x28166c)=>_0x2ac6cc(_0x40483b,0x0,!0x0)}),_0x5bbe32['conversion']['for']('dataDowncast')['add'](_0xf015b2=>{_0xf015b2['on']('addMarker:suggestion',(_0x28410e,_0x23806a,_0x3041a6)=>{if(!_0x3041a6['options']['showSuggestionHighlights'])return;const _0x1a6eaf=_0x23806a['item'];if(!_0x1a6eaf)return;const _0x26dc61=_0x3041a6['mapper']['toViewElement'](_0x1a6eaf);_0x5bbe32['model']['schema']['isObject'](_0x1a6eaf)&&_0x26dc61&&!_0x26dc61['getCustomProperty']('widget')&&_0x26dc61['is']('containerElement')&&_0x9c3cd3(_0x26dc61,_0x3041a6['writer']);},{'priority':'high'});});const _0x673c91=(_0x46b27b,_0x4b79aa,_0x2adf34,_0x5a054b,_0x4a6ca9)=>{if(_0x5a054b&&!_0x2adf34['options']['showSuggestionHighlights'])return;if(!_0x4b79aa['item'])return;const {id:_0x5dad1b,authorId:_0x10dc4b,subType:_0x33b02b}=H(_0x4b79aa['markerName']);if(_0x4a6ca9){const _0x3cd0d8=_0x33b02b['split']('|')[0x0];if(!this['isBlockAttribute'](_0x3cd0d8))return;}if(_0x4b79aa['item']['is']('selection'))return void _0x2adf34['consumable']['consume'](_0x4b79aa['item'],_0x46b27b['name']);const _0x63f8d2=_0x2adf34['mapper']['toViewElement'](_0x4b79aa['item']);if(_0x4b79aa['item']['is']('element')&&_0x5bbe32['model']['schema']['isBlock'](_0x4b79aa['item'])&&!_0x63f8d2['getCustomProperty']('addHighlight')){_0x2adf34['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x63f8d2),_0x2adf34['writer']['setAttribute']('data-suggestion',_0x5dad1b,_0x63f8d2),_0x2adf34['writer']['setAttribute']('data-author-id',_0x10dc4b,_0x63f8d2),_0x2adf34['mapper']['bindElementToMarker'](_0x63f8d2,_0x4b79aa['markerName']),_0x5a054b||(this['_activeMarkers']['includes'](_0x4b79aa['markerName'])?_0x2adf34['writer']['addClass']('ck-suggestion-marker--active',_0x63f8d2):_0x2adf34['writer']['removeClass']('ck-suggestion-marker--active',_0x63f8d2));for(const _0x3cc5e6 of _0x5bbe32['model']['createRangeIn'](_0x4b79aa['item'])['getItems']())_0x2adf34['consumable']['consume'](_0x3cc5e6,_0x46b27b['name']);_0x2adf34['consumable']['consume'](_0x4b79aa['item'],_0x46b27b['name']);}},_0x281bd2=(_0x51fc52,_0x26d4bb,_0x23dcf9,_0x3470d5)=>{const _0x2e192e=_0x23dcf9['mapper']['markerNameToElements'](_0x26d4bb['markerName']);if(_0x2e192e){if(_0x3470d5){const {subType:_0x2b772}=H(_0x26d4bb['markerName']),_0x2ca5e4=_0x2b772['split']('|')[0x0];if(!this['isBlockAttribute'](_0x2ca5e4))return;}for(const _0x24a541 of _0x2e192e)_0x24a541['getCustomProperty']('addHighlight')||(_0x23dcf9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x24a541),_0x23dcf9['writer']['removeAttribute']('data-suggestion',_0x24a541),_0x23dcf9['writer']['removeAttribute']('data-author-id',_0x24a541),_0x23dcf9['mapper']['unbindElementFromMarkerName'](_0x24a541,_0x26d4bb['markerName']));}};_0x5bbe32['conversion']['for']('editingDowncast')['add'](_0x3e0ad4=>{_0x3e0ad4['on']('addMarker:suggestion:formatBlock',(_0xff9a39,_0x2c9f59,_0x1506fb)=>{_0x673c91(_0xff9a39,_0x2c9f59,_0x1506fb,!0x1,!0x1);},{'priority':'high'});}),_0x5bbe32['conversion']['for']('editingDowncast')['add'](_0x54f10f=>{_0x54f10f['on']('addMarker:suggestion:attribute',(_0x36fdcd,_0x38b7ed,_0x1dce98)=>{_0x673c91(_0x36fdcd,_0x38b7ed,_0x1dce98,!0x1,!0x0);},{'priority':'high'});}),_0x5bbe32['conversion']['for']('editingDowncast')['add'](_0xc57189=>{_0xc57189['on']('removeMarker:suggestion:formatBlock',(_0x2ba470,_0x10be9a,_0x59e8b3)=>{_0x281bd2(0x0,_0x10be9a,_0x59e8b3,!0x1);},{'priority':'high'});}),_0x5bbe32['conversion']['for']('editingDowncast')['add'](_0x2a78ed=>{_0x2a78ed['on']('removeMarker:suggestion:attribute',(_0x43a91b,_0x56fbc4,_0x235d78)=>{_0x281bd2(0x0,_0x56fbc4,_0x235d78,!0x0);},{'priority':'high'});}),_0x5bbe32['conversion']['for']('dataDowncast')['add'](_0x44d4ab=>{_0x44d4ab['on']('addMarker:suggestion:formatBlock',(_0x206a8e,_0x1579ac,_0x2a3eea)=>{_0x673c91(_0x206a8e,_0x1579ac,_0x2a3eea,!0x0,!0x1);},{'priority':'highest'});}),_0x5bbe32['conversion']['for']('dataDowncast')['add'](_0x11c5e3=>{_0x11c5e3['on']('addMarker:suggestion:attribute',(_0x442ca7,_0x1fb2ad,_0x388e6a)=>{_0x673c91(_0x442ca7,_0x1fb2ad,_0x388e6a,!0x0,!0x0);},{'priority':'highest'});}),_0x5bbe32['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x185000,_0x275a2b)=>_0x275a2b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x185000['substr'](0xb)}});const _0x4666b1=(_0x4aaa5b,_0x1dca80,_0x3cc83a,_0x28c57f,_0x21dd5f)=>{if(_0x28c57f&&!_0x3cc83a['options']['showSuggestionHighlights'])return;if(!_0x3cc83a['consumable']['test'](_0x1dca80['markerRange'],_0x4aaa5b['name']))return;const _0x4ce3ff=this['_activeMarkers'],_0x3ee5d5=_0x1dca80['markerRange']['getWalker'](),_0x342073=_0x1dca80['markerRange']['start'],_0x176f18=_0x5bbe32['model']['schema'];let _0x11dbd0=null,_0xd7606a=null,_0x43f620=!0x1,_0x5274e2=!0x1;for(const _0x3e4508 of _0x3ee5d5){const _0x4ffc24=_0x3e4508['item'];_0x43f620=_0x43f620||_0x176f18['isContent'](_0x4ffc24);const _0x5133d2=_0x3cc83a['mapper']['toViewElement'](_0x4ffc24);if(_0x5133d2&&_0x5133d2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e4508['type']&&(_0x176f18['isBlock'](_0x4ffc24)&&!_0x176f18['isLimit'](_0x4ffc24)&&(_0x4ffc24['nextSibling']||_0x342073['isAtEnd']?_0x11dbd0&&_0x11dbd0['parent']==_0x4ffc24||(_0x11dbd0=_0x4ffc24,_0x7f1475(_0x3e4508['previousPosition']),_0x5274e2=!0x0):_0xd7606a=_0xd7606a||_0x3e4508['previousPosition']));}function _0x7f1475(_0x2252e9){const {id:_0x51b61b,authorId:_0x4ef273}=H(_0x1dca80['markerName']),_0x5affbb=_0x3cc83a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21dd5f,'data-suggestion':_0x51b61b,'data-author-id':_0x4ef273}),_0x6ab8bf=_0x3cc83a['mapper']['toViewPosition'](_0x2252e9);!_0x28c57f&&_0x4ce3ff['includes'](_0x1dca80['markerName'])&&_0x3cc83a['writer']['addClass']('ck-suggestion-marker--active',_0x5affbb),_0x3cc83a['writer']['insert'](_0x6ab8bf,_0x5affbb),_0x3cc83a['mapper']['bindElementToMarker'](_0x5affbb,_0x1dca80['markerName']);}_0x43f620||_0x5274e2||!_0xd7606a||_0x7f1475(_0xd7606a);};_0x5bbe32['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2e3042,_0x5c6a5d,_0x1b3c67)=>{_0x4666b1(_0x2e3042,_0x5c6a5d,_0x1b3c67,!0x1,'merge');},{'priority':'high'}),_0x5bbe32['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x118c6f,_0x17f3d0,_0x5f395c)=>{_0x4666b1(_0x118c6f,_0x17f3d0,_0x5f395c,!0x0,'merge');},{'priority':'high'}),_0x5bbe32['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ada97,_0x21ab4f,_0x465ed6)=>{_0x4666b1(_0x4ada97,_0x21ab4f,_0x465ed6,!0x1,'split');},{'priority':'high'}),_0x5bbe32['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4fba42,_0x323311,_0x5e8548)=>{_0x4666b1(_0x4fba42,_0x323311,_0x5e8548,!0x0,'split');},{'priority':'high'}),_0x5bbe32['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x10f93b,_0x5b4c58,_0x553325)=>{((_0x28b291,_0x56cee0,_0x188fd0)=>{const _0x1f7df3=_0x188fd0['mapper']['markerNameToElements'](_0x56cee0['markerName']);if(_0x1f7df3){for(const _0x3502e5 of _0x1f7df3)(_0x3502e5['hasClass']('ck-suggestion-marker-split')||_0x3502e5['hasClass']('ck-suggestion-marker-merge'))&&(_0x188fd0['mapper']['unbindElementFromMarkerName'](_0x3502e5,_0x56cee0['markerName']),_0x188fd0['writer']['remove'](_0x3502e5));}})(0x0,_0x5b4c58,_0x553325);},{'priority':'high'});const _0x20e648=(_0x3f8497,_0x5689c0,_0x4f1c31,_0x287569)=>{if(_0x287569&&!_0x4f1c31['options']['showSuggestionHighlights'])return;const _0x3fae2d=_0x5689c0['markerRange']['start'],_0x4c1cd9=_0x5689c0['markerRange']['end'],_0x3a4057=_0x5bbe32['model']['schema'];if(!_0x3fae2d['isTouching'](_0x4c1cd9)||!_0x3fae2d['nodeAfter'])return;const _0x16479b=_0x3fae2d['nodeAfter'];if(_0x3a4057['isBlock'](_0x16479b)&&!_0x3a4057['isLimit'](_0x16479b)&&_0x3a4057['checkChild'](_0x16479b,'$text')){if(!_0x4f1c31['consumable']['consume'](_0x5689c0['markerRange'],_0x3f8497['name']))return;const {id:_0x5e7a54,authorId:_0x3b8640}=H(_0x5689c0['markerName']),_0x38e8da=_0x4f1c31['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5e7a54,'data-author-id':_0x3b8640}),_0x12f195=_0x4f1c31['mapper']['toViewPosition'](_0x4c1cd9);!_0x287569&&this['_activeMarkers']['includes'](_0x5689c0['markerName'])&&_0x4f1c31['writer']['addClass']('ck-suggestion-marker--active',_0x38e8da),_0x4f1c31['writer']['insert'](_0x12f195,_0x38e8da),_0x4f1c31['mapper']['bindElementToMarker'](_0x38e8da,_0x5689c0['markerName']);}};_0x5bbe32['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x49722a,_0x37d255,_0x17f9f1)=>{_0x20e648(_0x49722a,_0x37d255,_0x17f9f1,!0x1);},{'priority':'high'}),_0x5bbe32['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x11f842,_0x399f01,_0x3fc627)=>{_0x20e648(_0x11f842,_0x399f01,_0x3fc627,!0x0);},{'priority':'high'});}afterInit(){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x408ba6,_0xd8993c,_0x149d5e)=>{this['_activeMarkers']=_0x149d5e['slice']();},{'priority':'highest'});}registerBlockAttribute(_0xa2f2eb){this['_blockAttributeKeys']['add'](_0xa2f2eb);}registerInlineAttribute(_0x5a3dd8){this['_inlineAttributeKeys']['add'](_0x5a3dd8);}isBlockAttribute(_0x2fee54){return this['_blockAttributeKeys']['has'](_0x2fee54);}isInlineAttribute(_0x4f4ddf){return this['_inlineAttributeKeys']['has'](_0x4f4ddf);}isRegisteredAttribute(_0x409106){return this['isInlineAttribute'](_0x409106)||this['isBlockAttribute'](_0x409106);}_getClassName(_0x43a8cf,_0x3b6208){if('attribute'!=_0x43a8cf)return'ck-suggestion-marker-'+_0x43a8cf;const _0x38ba12=_0x3b6208['split']('|')[0x0];return this['isBlockAttribute'](_0x38ba12)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}};function gt(_0x1cba87={},_0x32594f){if(void 0x0!==_0x1cba87['dateTimeFormat']&&'function'!=typeof _0x1cba87['dateTimeFormat'])throw new _0x1c0e4e('invalid-date-time-format');return _0x1db68b=>{const _0x4e5c6d='string'==typeof _0x1db68b?_0x1e075['fromISO'](_0x1db68b):_0x1e075['fromJSDate'](_0x1db68b),_0x46c902=_0x1e075['now'](),_0x4ea1ae=Math['floor'](_0x46c902['startOf']('day')['diff'](_0x4e5c6d['startOf']('day'),'days')['days']);return _0x1cba87['dateTimeFormat']?_0x1cba87['dateTimeFormat'](_0x4e5c6d['toJSDate'](),_0x32594f&&_0x32594f['t']?_0x32594f['t']:void 0x0):0x0===_0x4ea1ae?_0x32594f?E(_0x32594f,'Today')+'\x20'+_0x4e5c6d['toFormat']('hh:mma'):_0x4e5c6d['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x4ea1ae?_0x32594f?E(_0x32594f,'Yesterday')+'\x20'+_0x4e5c6d['toFormat']('hh:mma'):_0x4e5c6d['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x4ea1ae<0x7?_0x32594f?E(_0x32594f,'Last')+'\x20'+E(_0x32594f,_0x4e5c6d['toFormat']('EEEE'))+'\x20'+_0x4e5c6d['toFormat']('hh:mma'):_0x4e5c6d['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x4e5c6d['toFormat']('LL-dd-yyyy\x20hh:mma');};}function ft(_0x228ea1,_0x50ef46){const _0x109bef=_0x228ea1['mapper']['markerNameToElements'](_0x50ef46['name']);if(!_0x109bef)return null;const _0x5ceb8b=_0x10b772(_0x109bef['values']());return _0x228ea1['view']['domConverter']['mapViewToDom'](_0x5ceb8b)||null;}function mt(_0x20d2af,_0x22b63d){if(0x0===_0x22b63d['length'])return null;const _0x3c173a=[],_0x4f6c4e=_0x20d2af['view']['domConverter'];for(const _0x551ebc of _0x22b63d){const _0x3115d3=_0x20d2af['mapper']['markerNameToElements'](_0x551ebc['name']);if(!_0x3115d3)continue;const _0x5f0167=Array['from'](_0x3115d3)['map'](_0x25bfe6=>_0x4f6c4e['mapViewToDom'](_0x25bfe6))['filter'](_0x5d4a0b=>!!_0x5d4a0b);_0x3c173a['push'](..._0x5f0167);}if(0x0===_0x3c173a['length'])return null;const _0x29844c=[];for(const _0x4e3710 of _0x3c173a){const _0x32bc38=_0x4e3710['getClientRects']()['item'](0x0);_0x32bc38&&_0x29844c['push']({'x':_0x32bc38['x'],'y':_0x32bc38['y'],'domElement':_0x4e3710});}return 0x0===_0x29844c['length']?null:(_0x29844c['sort']((_0x28eeb9,_0x21111e)=>_0x28eeb9['y']-_0x21111e['y']||_0x28eeb9['x']-_0x21111e['x']),_0x29844c['map'](_0x2365f6=>_0x2365f6['domElement']));}function kt(_0x3bf708,{limit:_0x367960,suffix:_0xaed23e='...'}){const _0x6fb669=[];let _0x58bc1c=0x0;const _0x455a7b=_0x3bf708['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x3a3e3b=0x0;_0x3a3e3b<_0x455a7b['length'];_0x3a3e3b++){let _0x3c6be1=_0x455a7b[_0x3a3e3b];const _0x42c5d5=pt(_0x3c6be1);if(_0x3c6be1['startsWith']('<')){if(_0x58bc1c>=_0x367960){const _0x2b460d=_0x3c6be1['match'](/[a-zA-Z]+/);if(!_0x2b460d){_0x455a7b[_0x3a3e3b]='';continue;}const _0x1b7119=_0x2b460d[0x0];_0x3c6be1['startsWith']('</')?(_0x6fb669['length']&&(_0x3c6be1=''),_0x6fb669['pop']()):(_0x6fb669['push'](_0x1b7119),_0x3c6be1='');}}else{if(_0x58bc1c>=_0x367960)_0x3c6be1='';else{if(_0x58bc1c+_0x42c5d5['length']>=_0x367960){let _0x3bccc1=_0x367960-_0x58bc1c;if('\x20'===_0x42c5d5[_0x3bccc1-0x1])_0x3bccc1--;else{const _0x111c78=_0x42c5d5['slice'](_0x3bccc1)['indexOf']('\x20');-0x1!==_0x111c78?_0x3bccc1+=_0x111c78:_0x3bccc1=_0x3c6be1['length'];}_0x3c6be1=_0x42c5d5['slice'](0x0,_0x3bccc1)['join']('')+_0xaed23e,_0x58bc1c=_0x367960;}else _0x58bc1c+=_0x42c5d5['length'];}}_0x455a7b[_0x3a3e3b]=_0x3c6be1;}return _0x455a7b['join']('\x0a')['replace'](/\n/g,'');}function pt(_0x2f733b){const _0x5958ec=[];for(let _0x416606=0x0;_0x416606<_0x2f733b['length'];_0x416606++){const _0xfbcce2=_0x2f733b['substring'](_0x416606)['match'](/^&[a-z0-9#]+;/);if(_0xfbcce2){const _0x5b5b62=_0xfbcce2[0x0];_0x5958ec['push'](_0x5b5b62),_0x416606+=_0x5b5b62['length']-0x1;}else _0x5958ec['push'](_0x2f733b[_0x416606]);}return _0x5958ec;}var yt=class extends _0x504fd1{submitView;['cancelView'];['focusTracker'];keystrokes;['focusCycler'];['focusables'];constructor(_0xab0fd6){super(_0xab0fd6);const _0x750d59=this['bindTemplate'];this['set']('message',E(_0xab0fd6,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0xab0fd6,E(_0xab0fd6,'Yes'),_0x5c452a,'submit'),this['cancelView']=this['_createButtonView'](_0xab0fd6,E(_0xab0fd6,'No'),_0xfc3270,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x31a166(),this['keystrokes']=new _0x25dc0f(),this['focusCycler']=new _0x582985({'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':_0x750d59['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(_0x5cc579,_0x2f2719,_0x196b73,_0x14a7a6){const _0x390b2f=new _0x4e43be(_0x5cc579);return _0x390b2f['label']=_0x2f2719,_0x390b2f['icon']=_0x196b73,_0x390b2f['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x14a7a6}}),_0x390b2f['on']('execute',()=>this['fire'](_0x14a7a6)),_0x390b2f;}_setupKeyboardNavigation(){this['focusables']['forEach'](_0x549008=>{this['keystrokes']['listenTo'](_0x549008['element']),this['focusTracker']['add'](_0x549008['element']);}),this['keystrokes']['set']('esc',(_0x22ec1a,_0x35e0b)=>{this['fire']('cancel'),_0x35e0b();});}};function bt(_0x2cab36){return class _0xb148a4 extends _0x2cab36{['showConfirm'](_0x249839,_0x52d663){return this['confirmView']=new yt(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x249839,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x52d663['appendChild'](this['confirmView']['element']),_0x52d663['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x4e346e,_0x230c82,_0xc4be4e)=>{_0xc4be4e||_0x52d663['classList']['remove']('ck-confirm-view-active');}),new Promise(_0xdb6442=>this['confirmView']['on']('submit',_0xdb6442));}['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 vt(_0x324adf){let _0x3d081d=0x0,_0x3068b9=0x0;for(const _0x25f551 of Ct(_0x324adf))_0x3d081d=(_0x3d081d<<0x5)-_0x3d081d+_0x25f551,_0x3d081d&=_0x3d081d,[_0x3d081d,_0x3068b9]=[_0x3068b9,_0x3d081d];return xt(_0x3d081d)+xt(_0x3068b9);}function*wt(_0x2637b4){null==_0x2637b4||null==_0x2637b4?yield 0x12b9b0a1:0x0===_0x2637b4||!0x1===_0x2637b4?yield 0x0:0x1===_0x2637b4||0x1==_0x2637b4?yield 0x1:Array['isArray'](_0x2637b4)?yield*function*(_0x4dbc77){for(const _0x5cd67e of _0x4dbc77)yield*wt(_0x5cd67e);}(_0x2637b4):'object'==typeof _0x2637b4?yield*Ct(_0x2637b4):'string'==typeof _0x2637b4?yield*It(_0x2637b4):'number'==typeof _0x2637b4&&(yield _0x2637b4);}function*Ct(_0x28f564){if(yield St('{'),_0x28f564){const _0x11a2f1=Object['keys'](_0x28f564)['sort']();for(const _0x19b9d0 of _0x11a2f1){yield*It(_0x19b9d0),yield St(':');const _0x4271bf=_0x28f564[_0x19b9d0];yield*wt(_0x4271bf);}}yield St('}');}function*It(_0x478c47){yield St('\x22');for(const _0x4a9755 of _0x478c47)yield St(_0x4a9755);yield St('\x22');}function St(_0x9bd92f){return _0x9bd92f['charCodeAt'](0x0);}function xt(_0x3cc5ce){return(_0x3cc5ce*=Math['sign'](_0x3cc5ce))['toString'](0x24);}function Et(_0x39bee1){if('addAttribute'!=_0x39bee1['type']&&'removeAttribute'!=_0x39bee1['type']&&'changeAttribute'!=_0x39bee1['type'])return!0x1;try{return _0x39bee1['_validate'](),!0x1;}catch{return!0x0;}}function _t(_0x11609a,_0x4eefba){return new _0x3da22e(_0x4eefba,Array['from'](_0x11609a['path']),_0x11609a['stickiness']);}function At(_0x366d64,_0x43dafa){return new _0x2bfac8(_t(_0x366d64['start'],_0x43dafa),_t(_0x366d64['end'],_0x43dafa));}function Mt(_0x5e1cfc,_0x378f7c){const _0x409453=_0x5e1cfc;for(const _0xdc6ce8 of Object['keys'](_0x409453)){const _0x2e984d=_0x409453[_0xdc6ce8];_0x2e984d instanceof _0x3da22e?_0x409453[_0xdc6ce8]=_t(_0x2e984d,_0x378f7c['get'](_0x2e984d['root']['rootName'])):_0x2e984d instanceof _0x2bfac8?_0x409453[_0xdc6ce8]=At(_0x2e984d,_0x378f7c['get'](_0x2e984d['root']['rootName'])):'root'===_0xdc6ce8&&_0x2e984d&&(_0x409453[_0xdc6ce8]=_0x378f7c['get'](_0x2e984d['rootName']));}}const Tt=['root','roots','initialData','context','toolbar','rootsAttributes'],Pt=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader','AIChat','AIChatHistory','AIChatShortcuts','AIReviewMode','AIQuickActions','AIActions','AIBalloon','AITranslate'];function Bt(_0x2462bd,_0x1bbbb2,_0x325ae2,_0x4a575e=[]){const _0x43c676='string'==typeof _0x2462bd?_0x325ae2['get'](_0x2462bd)['constructor']:_0x2462bd['prototype']['constructor'];if(_0x1bbbb2['has'](_0x43c676))return _0x1bbbb2['get'](_0x43c676);_0x1bbbb2['set'](_0x43c676,!0x0);const _0xc62544=[...Pt,..._0x4a575e],_0x2f3709=_0xc62544['map'](_0x32c6a5=>{if(_0x325ae2['has'](_0x32c6a5))return _0x325ae2['get'](_0x32c6a5)['constructor'];})['filter'](_0x26de81=>_0x26de81);if(_0x43c676['pluginName']&&_0xc62544['includes'](_0x43c676['pluginName'])||_0x2f3709['includes'](_0x43c676))return _0x1bbbb2['set'](_0x43c676,!0x1),!0x1;if(!_0x43c676['requires'])return _0x1bbbb2['set'](_0x43c676,!0x0),!0x0;const _0x52b30d=_0x43c676['requires']['every'](_0x4984d3=>Bt(_0x4984d3,_0x1bbbb2,_0x325ae2,_0x4a575e));return _0x1bbbb2['set'](_0x43c676,_0x52b30d),_0x52b30d;}function Lt(_0x5c8b03,_0x5f5dd3){const _0x3f36cb={};for(const _0x4a8b4e of _0x5c8b03['config']['names']())Tt['includes'](_0x4a8b4e)||(_0x3f36cb[_0x4a8b4e]=_0x5c8b03['config']['get'](_0x4a8b4e));const _0x30d0e7=_0x3f36cb['plugins']||[],_0x3be515=_0x5c8b03['constructor']['builtinPlugins']||[],_0x125dae=_0x30d0e7['length']?_0x30d0e7:_0x3be515,_0x4576c6=_0x3f36cb['extraPlugins']||[];delete _0x3f36cb['extraPlugins'];const _0x67342b=_0x3f36cb['removePlugins']||[];delete _0x3f36cb['removePlugins'];const _0x45ac8c=_0x5c8b03['_context']['config']['get']('plugins')||[],_0x295928=_0x125dae['concat'](_0x4576c6)['concat'](_0x45ac8c)['map'](_0x4a786a=>'string'==typeof _0x4a786a?_0x3be515['find'](_0x4ed01e=>_0x4ed01e['pluginName']==_0x4a786a):_0x4a786a)['filter'](_0x3d67dc=>!_0x67342b['includes'](_0x3d67dc)&&!_0x67342b['includes'](_0x3d67dc['pluginName'])),_0x19f4c7=Array['from'](new Set(_0x295928)),_0x4d974e=new Map();return _0x3f36cb['plugins']=_0x19f4c7['filter'](_0x2b266a=>Bt(_0x2b266a,_0x4d974e,_0x5c8b03['plugins'],_0x5f5dd3)),_0x3f36cb;}function Nt(_0x561be3,_0x4ef5c9){const _0x4b2c6d=[];_0x561be3['document']['selection']['on']('change:range',()=>{const _0xdaed88=function(_0xffb45b,_0x263060){const _0x19d4a3=[];for(const _0x5167b5 of _0xffb45b['markers']){const _0x5a6e24=_0x5167b5['getRange']();(_0x5a6e24['containsPosition'](_0x263060)||_0x5a6e24['start']['isEqual'](_0x263060)||_0x5a6e24['end']['isEqual'](_0x263060))&&_0x19d4a3['push'](_0x5167b5);}return _0x19d4a3;}(_0x561be3,_0x561be3['document']['selection']['focus']),_0x270399=[],_0x22980b=[],_0x5bcff8=[];for(const _0x4885ff of _0x4b2c6d)_0xdaed88['includes'](_0x4885ff)||_0x270399['push'](_0x4885ff);for(const _0x57c19d of _0xdaed88)_0x4b2c6d['includes'](_0x57c19d)||_0x22980b['push'](_0x57c19d),_0x5bcff8['push'](_0x57c19d);(_0x270399['length']||_0x22980b['length'])&&_0x4ef5c9({'left':_0x270399,'entered':_0x22980b}),_0x4b2c6d['length']=0x0,_0x4b2c6d['push'](..._0x5bcff8);});}const $t='Ctrl+Shift+E';function Dt(_0x33b414,_0x36e5f7){const _0x19b1d2=_0x33b414['element'];_0x33b414['keystrokes']['listenTo'](_0x19b1d2);for(const _0x1e03eb of _0x36e5f7)Ht(_0x33b414,_0x1e03eb);_0x36e5f7['on']('change',(_0x3bcb1f,_0x11db34)=>{for(const _0x27e52b of _0x11db34['removed'])zt(_0x33b414,_0x27e52b);for(const _0xfb81c0 of Array['from'](_0x11db34['added'])['reverse']())Ht(_0x33b414,_0xfb81c0);}),_0x33b414['keystrokes']['set']('enter',(_0x5d01a2,_0x206c4b)=>{_0x19b1d2===_0x5d01a2['target']&&(_0x33b414['focusCycler']['focusFirst'](),_0x206c4b());},{'filter':_0x39cc99=>_0x39cc99['target']===_0x19b1d2}),_0x33b414['keystrokes']['set']('esc',(_0x3870ad,_0x15703b)=>{_0x19b1d2!==_0x3870ad['target']?_0x33b414['focus']():_0x33b414['fire']('escape'),_0x15703b();}),_0x33b414['keystrokes']['set']('arrowdown',(_0x4c347a,_0x72fdd5)=>{_0x19b1d2===_0x4c347a['target']&&(_0x33b414['fire']('arrowdown'),_0x72fdd5());}),_0x33b414['keystrokes']['set']('arrowup',(_0x8084cb,_0x38665e)=>{_0x19b1d2===_0x8084cb['target']&&(_0x33b414['fire']('arrowup'),_0x38665e());});}function Ht(_0x54c0d6,_0x6ef59e){_0x6ef59e['isRendered']&&(_0x54c0d6['focusTracker']['add'](_0x6ef59e['element']),_0x54c0d6['keystrokes']['listenTo'](_0x6ef59e['element']),_0x5b6986(_0x6ef59e)&&function(_0xac48ff,_0x5cd9fa){const _0x255780=_0xac48ff['actions'],_0x2aa30f=_0x5cd9fa['actions'];for(const _0x3844c8 of Object['keys'](_0x255780))if(_0x3844c8 in _0x2aa30f&&_0x255780[_0x3844c8]!==_0x2aa30f[_0x3844c8])return!0x1;return!0x0;}(_0x54c0d6['focusCycler'],_0x6ef59e['focusCycler'])&&_0x54c0d6['focusCycler']['chain'](_0x6ef59e['focusCycler']));}function zt(_0x4b261d,_0xdd75af){_0x4b261d['focusTracker']['remove'](_0xdd75af['element']),_0x4b261d['keystrokes']['stopListening'](_0xdd75af['element']),_0x5b6986(_0xdd75af)&&_0x4b261d['focusCycler']['unchain'](_0xdd75af['focusCycler']);}export{L as AriaDescriptionView,T as CollaborationUserColor,bt as ConfirmMixin,$t as FOCUS_ANNOTATION_KEYSTROKE,N as LateFocusButtonView,$ as LateFocusDropdownButtonView,x as Permissions,B as PillView,ht as SuggestionsConversion,A as User,P as UserView,_ as Users,z as fixElementSuggestionRange,mt as getAllMarkersDomElementsSorted,gt as getDateTimeFormatter,ft as getMarkerDomElement,vt as hashObject,Et as isInvalidAttributeOperation,Mt as reRootOperation,_t as reRootPosition,At as reRootRange,Lt as sanitizeEditorConfig,Dt as setupThreadKeyboardNavigation,H as splitSuggestionMarkerName,Nt as surroundingMarkersDetector,kt as trimHtml};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33afee=>{const {af:_0x31af9f}={'af':{'dictionary':{'Anonymous':'Anoniem','Yes':'Ja','No':'Nee','Are\x20you\x20sure?':'Is\x20jy\x20seker?','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x33afee['af']||={'dictionary':{},'getPluralForm':null},_0x33afee['af']['dictionary']=Object['assign'](_0x33afee['af']['dictionary'],_0x31af9f['dictionary']),_0x31af9f['getPluralForm']&&(_0x33afee['af']['getPluralForm']=_0x31af9f['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'}
|
|
23
|
+
export default{'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf3d00b=>{const {ar:_0x1afed4}={'ar':{'dictionary':{'Anonymous':'مجهول\x20الهوية','Yes':'نعم','No':'لا','Are\x20you\x20sure?':'هل\x20أنت\x20متأكد؟','Today':'اليوم','Yesterday':'أمس','Last':'آخر','Monday':'الاثنين','Tuesday':'الثلاثاء','Wednesday':'الأربعاء','Thursday':'وم\x20الخميس','Friday':'جمعة','Saturday':'السبت','Sunday':'الأحد'}}};_0xf3d00b['ar']||={'dictionary':{},'getPluralForm':null},_0xf3d00b['ar']['dictionary']=Object['assign'](_0xf3d00b['ar']['dictionary'],_0x1afed4['dictionary']),_0x1afed4['getPluralForm']&&(_0xf3d00b['ar']['getPluralForm']=_0x1afed4['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a4531=>{const {ast:_0x40f1a9}={'ast':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x4a4531['ast']||={'dictionary':{},'getPluralForm':null},_0x4a4531['ast']['dictionary']=Object['assign'](_0x4a4531['ast']['dictionary'],_0x40f1a9['dictionary']),_0x40f1a9['getPluralForm']&&(_0x4a4531['ast']['getPluralForm']=_0x40f1a9['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ddafa=>{const {az:_0x580e5b}={'az':{'dictionary':{'Anonymous':'Anonim','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x1ddafa['az']||={'dictionary':{},'getPluralForm':null},_0x1ddafa['az']['dictionary']=Object['assign'](_0x1ddafa['az']['dictionary'],_0x580e5b['dictionary']),_0x580e5b['getPluralForm']&&(_0x1ddafa['az']['getPluralForm']=_0x580e5b['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}
|
|
23
|
+
export default{'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x449801=>{const {be:_0xf9e096}={'be':{'dictionary':{'Anonymous':'','Yes':'','No':'','Are\x20you\x20sure?':'','Today':'','Yesterday':'','Last':'','Monday':'','Tuesday':'','Wednesday':'','Thursday':'','Friday':'','Saturday':'','Sunday':''}}};_0x449801['be']||={'dictionary':{},'getPluralForm':null},_0x449801['be']['dictionary']=Object['assign'](_0x449801['be']['dictionary'],_0xf9e096['dictionary']),_0xf9e096['getPluralForm']&&(_0x449801['be']['getPluralForm']=_0xf9e096['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'}
|
|
23
|
+
export default{'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x195f67=>{const {bg:_0x1205a0}={'bg':{'dictionary':{'Anonymous':'Анонимен','Yes':'Да','No':'Не','Are\x20you\x20sure?':'Сигурни\x20ли\x20сте?','Today':'Днес','Yesterday':'Вчера','Last':'Последни','Monday':'Понеделник','Tuesday':'Вторник','Wednesday':'Сряда','Thursday':'Четвъртък','Friday':'Петък','Saturday':'Събота','Sunday':'Неделя'}}};_0x195f67['bg']||={'dictionary':{},'getPluralForm':null},_0x195f67['bg']['dictionary']=Object['assign'](_0x195f67['bg']['dictionary'],_0x1205a0['dictionary']),_0x1205a0['getPluralForm']&&(_0x195f67['bg']['getPluralForm']=_0x1205a0['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'}
|
|
23
|
+
export default{'bn':{'dictionary':{'Anonymous':'নামহীন','Yes':'হ্যাঁ','No':'না','Are\x20you\x20sure?':'আপনি\x20কি\x20নিশ্চিত?','Today':'আজ','Yesterday':'গতকাল','Last':'সর্বশেষ','Monday':'সোমবার','Tuesday':'মঙ্গলবার','Wednesday':'বুধবার','Thursday':'বৃহস্পতিবার','Friday':'শুক্রবার','Saturday':'শনিবার','Sunday':'রবিবার'}}};
|