@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "0.0.0-nightly-20230820.0",
3
+ "version": "0.0.0-nightly-20230821.1",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "0.0.0-nightly-20230820.0",
34
+ "ckeditor5": "0.0.0-nightly-20230821.1",
35
35
  "date-fns": "2.30.0"
36
36
  },
37
37
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3990=['includes','context','CommentsRepository','pluginName','get','isEnabled','comment:admin','find','addCommentThread','clearForceDisabled','Permissions','plugins','document:write','has','setPermissions','permissions-set-permissions-invalid-channel-id','config','comment:modify_all','forceDisabled','collaboration.channelId','noPermissions','comment:write','no-permissions','enableReadOnlyMode','editors'];(function(_0x4b558d,_0x39905c){const _0x1aaead=function(_0x59842d){while(--_0x59842d){_0x4b558d['push'](_0x4b558d['shift']());}};_0x1aaead(++_0x39905c);}(_0x3990,0x1a0));const _0x1aae=function(_0x4b558d,_0x39905c){_0x4b558d=_0x4b558d-0x0;let _0x1aaead=_0x3990[_0x4b558d];return _0x1aaead;};import{ContextPlugin as _0x579535,Editor as _0x109e18}from'ckeditor5/src/core';import{CKEditorError as _0x10665a}from'ckeditor5/src/utils';export default class n extends _0x579535{static get[_0x1aae('0xc')](){return _0x1aae('0x13');}[_0x1aae('0x17')](_0x444cb3,_0x494238){let _0x2eaf44;if(_0x494238||(_0x494238=this[_0x1aae('0xa')][_0x1aae('0x0')][_0x1aae('0xd')]('collaboration.channelId')),this[_0x1aae('0xa')][_0x1aae('0x0')][_0x1aae('0xd')](_0x1aae('0x3'))==_0x494238?_0x2eaf44=this[_0x1aae('0xa')]:_0x1aae('0x8')in this['context']&&this[_0x1aae('0xa')][_0x1aae('0x8')]&&(_0x2eaf44=this[_0x1aae('0xa')]['editors'][_0x1aae('0x10')](_0x5f28a3=>_0x5f28a3[_0x1aae('0x0')][_0x1aae('0xd')](_0x1aae('0x3'))==_0x494238)),!_0x2eaf44)throw new _0x10665a(_0x1aae('0x18'),null);const _0x47bfee=_0x2eaf44[_0x1aae('0x14')],_0x3f2106=_0x47bfee[_0x1aae('0x16')](_0x1aae('0xb'))?_0x47bfee['get']('CommentsRepository'):void 0x0,_0x395c39=_0x47bfee['has']('CommentsOnly')&&_0x47bfee['get']('CommentsOnly'),_0x159d23=_0x444cb3[_0x1aae('0x9')](_0x1aae('0x15')),_0x4e02bf=_0x444cb3[_0x1aae('0x9')](_0x1aae('0x1')),_0xe96447=_0x444cb3['includes'](_0x1aae('0xf')),_0x290db5=_0x444cb3[_0x1aae('0x9')](_0x1aae('0x5')),_0x144c2a=_0x290db5||_0xe96447,_0x17d259=_0x144c2a||_0x4e02bf,_0x5d276a=_0x159d23||_0x144c2a;(_0x395c39&&(_0x395c39[_0x1aae('0xe')]=!_0x159d23&&_0x17d259),_0x2eaf44 instanceof _0x109e18)&&(!(_0x159d23||_0x17d259&&_0x3f2106)?_0x2eaf44[_0x1aae('0x7')](_0x1aae('0x6')):_0x2eaf44['disableReadOnlyMode'](_0x1aae('0x6')));if(_0x3f2106){_0x3f2106['setPermissions']({'admin':_0xe96447,'modifyAll':_0x4e02bf,'write':_0x290db5,'resolve':_0x5d276a},_0x494238);const _0x4eb278=_0x2eaf44 instanceof _0x109e18&&_0x2eaf44['commands']['get'](_0x1aae('0x11'));_0x4eb278&&(_0x144c2a?_0x4eb278[_0x1aae('0x12')](_0x1aae('0x4')):_0x4eb278[_0x1aae('0x2')](_0x1aae('0x4')));}}}
23
+ const _0xf492=['isEnabled','enableReadOnlyMode','get','editors','setPermissions','includes','collaboration.channelId','CommentsRepository','find','disableReadOnlyMode','comment:admin','commands','config','has','noPermissions','Permissions','comment:write','permissions-set-permissions-invalid-channel-id','CommentsOnly','context','no-permissions','clearForceDisabled'];(function(_0x40c681,_0xf49286){const _0x88d356=function(_0x3ee1c5){while(--_0x3ee1c5){_0x40c681['push'](_0x40c681['shift']());}};_0x88d356(++_0xf49286);}(_0xf492,0x174));const _0x88d3=function(_0x40c681,_0xf49286){_0x40c681=_0x40c681-0x0;let _0x88d356=_0xf492[_0x40c681];return _0x88d356;};import{ContextPlugin as _0x5bd1b6,Editor as _0x1c7c75}from'ckeditor5/src/core';import{CKEditorError as _0x891bb7}from'ckeditor5/src/utils';export default class n extends _0x5bd1b6{static get['pluginName'](){return _0x88d3('0x11');}[_0x88d3('0x6')](_0x1cac90,_0x2aead6){let _0x572eaa;if(_0x2aead6||(_0x2aead6=this[_0x88d3('0x15')]['config'][_0x88d3('0x4')](_0x88d3('0x8'))),this[_0x88d3('0x15')][_0x88d3('0xe')][_0x88d3('0x4')]('collaboration.channelId')==_0x2aead6?_0x572eaa=this['context']:'editors'in this[_0x88d3('0x15')]&&this[_0x88d3('0x15')]['editors']&&(_0x572eaa=this['context'][_0x88d3('0x5')][_0x88d3('0xa')](_0x3ac7e6=>_0x3ac7e6['config'][_0x88d3('0x4')]('collaboration.channelId')==_0x2aead6)),!_0x572eaa)throw new _0x891bb7(_0x88d3('0x13'),null);const _0x4aef43=_0x572eaa['plugins'],_0x5b2be9=_0x4aef43[_0x88d3('0xf')](_0x88d3('0x9'))?_0x4aef43[_0x88d3('0x4')]('CommentsRepository'):void 0x0,_0xe8f297=_0x4aef43[_0x88d3('0xf')](_0x88d3('0x14'))&&_0x4aef43[_0x88d3('0x4')](_0x88d3('0x14')),_0x27bb04=_0x1cac90['includes']('document:write'),_0x5ef7bd=_0x1cac90[_0x88d3('0x7')]('comment:modify_all'),_0x282d39=_0x1cac90[_0x88d3('0x7')](_0x88d3('0xc')),_0x16be32=_0x1cac90[_0x88d3('0x7')](_0x88d3('0x12')),_0x163cda=_0x16be32||_0x282d39,_0x53e94e=_0x163cda||_0x5ef7bd,_0x3a1aaa=_0x27bb04||_0x163cda;(_0xe8f297&&(_0xe8f297[_0x88d3('0x2')]=!_0x27bb04&&_0x53e94e),_0x572eaa instanceof _0x1c7c75)&&(!(_0x27bb04||_0x53e94e&&_0x5b2be9)?_0x572eaa[_0x88d3('0x3')](_0x88d3('0x0')):_0x572eaa[_0x88d3('0xb')](_0x88d3('0x0')));if(_0x5b2be9){_0x5b2be9['setPermissions']({'admin':_0x282d39,'modifyAll':_0x5ef7bd,'write':_0x16be32,'resolve':_0x3a1aaa},_0x2aead6);const _0x5019c4=_0x572eaa instanceof _0x1c7c75&&_0x572eaa[_0x88d3('0xd')][_0x88d3('0x4')]('addCommentThread');_0x5019c4&&(_0x163cda?_0x5019c4[_0x88d3('0x1')]('noPermissions'):_0x5019c4['forceDisabled'](_0x88d3('0x10')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c0e=['initials','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__avatar','ck-user','div','notificationView','push','ck\x20ck-user__name','name','extendTemplate','ck-user__icon','ck-user__img','content','avatar','ck-user__anonymous'];(function(_0x102b0b,_0x3c0ea3){const _0x31aa4e=function(_0x483c61){while(--_0x483c61){_0x102b0b['push'](_0x102b0b['shift']());}};_0x31aa4e(++_0x3c0ea3);}(_0x3c0e,0xa7));const _0x31aa=function(_0x102b0b,_0x3c0ea3){_0x102b0b=_0x102b0b-0x0;let _0x31aa4e=_0x3c0e[_0x102b0b];return _0x31aa4e;};import{View as _0x5d2ef9,IconView as _0x2a9b3a}from'ckeditor5/src/ui';import _0x5a412f from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x5d2ef9{constructor(_0x19b4cd,_0x1f6abf,_0x137fd8){super(_0x19b4cd),this[_0x31aa('0x2')]=_0x1f6abf[_0x31aa('0x2')],this['notificationView']=null;const _0x3ea7a1=['ck',_0x31aa('0x5')];if(_0x1f6abf['isAnonymous']&&_0x3ea7a1['push'](_0x31aa('0x8')),_0x1f6abf[_0x31aa('0x7')]&&_0x3ea7a1['push'](_0x31aa('0xc')),_0x137fd8){const _0x5841d3=new _0x2a9b3a();_0x5841d3[_0x31aa('0x3')]({'attributes':{'class':[_0x31aa('0x4')]}}),_0x5841d3[_0x31aa('0x6')]=_0x5a412f,this['notificationView']={'tag':_0x31aa('0xe'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x137fd8},'children':[_0x5841d3]};}const _0x55f796=[{'tag':_0x31aa('0xe'),'attributes':{'class':_0x3ea7a1,'style':{'background-image':_0x1f6abf[_0x31aa('0x7')]?_0x31aa('0xa')+_0x1f6abf[_0x31aa('0x7')]+'\x27)':''}}},{'tag':_0x31aa('0xe'),'attributes':{'class':_0x1f6abf['avatar']?_0x31aa('0xb'):_0x31aa('0x1')},'children':[{'text':_0x1f6abf[_0x31aa('0x9')]}]}];this[_0x31aa('0xf')]&&_0x55f796[_0x31aa('0x0')](this[_0x31aa('0xf')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x31aa('0xd')],'data-user-id':_0x1f6abf['id']},'children':_0x55f796});}}
23
+ const _0x5ea3=['setTemplate','div','ck-user__anonymous','content','ck-user__img','name','ck-user__notification','ck\x20ck-user__name','ck-user__icon','push','avatar','initials','ck-user__avatar','ck-user','ck\x20ck-user__name\x20ck-user__name--hidden','isAnonymous','notificationView'];(function(_0x2aee56,_0x5ea34b){const _0x49187a=function(_0x3f8d6c){while(--_0x3f8d6c){_0x2aee56['push'](_0x2aee56['shift']());}};_0x49187a(++_0x5ea34b);}(_0x5ea3,0x118));const _0x4918=function(_0x2aee56,_0x5ea34b){_0x2aee56=_0x2aee56-0x0;let _0x49187a=_0x5ea3[_0x2aee56];return _0x49187a;};import{View as _0x464dfb,IconView as _0x1bddc6}from'ckeditor5/src/ui';import _0x1594a6 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x464dfb{constructor(_0x516919,_0x12c6d0,_0x5cd932){super(_0x516919),this[_0x4918('0xe')]=_0x12c6d0[_0x4918('0xe')],this[_0x4918('0x8')]=null;const _0x3be9f6=['ck',_0x4918('0xd')];if(_0x12c6d0[_0x4918('0x7')]&&_0x3be9f6[_0x4918('0x1')](_0x4918('0xb')),_0x12c6d0[_0x4918('0x2')]&&_0x3be9f6[_0x4918('0x1')](_0x4918('0x4')),_0x5cd932){const _0x486241=new _0x1bddc6();_0x486241['extendTemplate']({'attributes':{'class':[_0x4918('0x0')]}}),_0x486241[_0x4918('0xc')]=_0x1594a6,this[_0x4918('0x8')]={'tag':_0x4918('0xa'),'attributes':{'class':['ck',_0x4918('0xf')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5cd932},'children':[_0x486241]};}const _0x396b6f=[{'tag':'div','attributes':{'class':_0x3be9f6,'style':{'background-image':_0x12c6d0[_0x4918('0x2')]?'url(\x27'+_0x12c6d0[_0x4918('0x2')]+'\x27)':''}}},{'tag':_0x4918('0xa'),'attributes':{'class':_0x12c6d0[_0x4918('0x2')]?_0x4918('0x6'):_0x4918('0x10')},'children':[{'text':_0x12c6d0[_0x4918('0x3')]}]}];this['notificationView']&&_0x396b6f[_0x4918('0x1')](this[_0x4918('0x8')]),this[_0x4918('0x9')]({'tag':_0x4918('0xa'),'attributes':{'class':['ck',_0x4918('0x5')],'data-user-id':_0x12c6d0['id']},'children':_0x396b6f});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24aa=['_lastColor','_isAnonymous','getOperationAuthor','ck-user__bg-color--','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','users-add-duplicated-id','string','addUser','_id','_getInitial','useAnonymousUser','getUser','pluginName','licenseKeyTrial','getSelectionClass','init','users.anonymousUserId','_addAnonymousUser','getMarkerClass','charAt','licenseKeyTrialLimit:revisions','Users','add','licenseKeyTrialLimit:operations','licenseKey','color','get','length','_myId','decorate','_locale','users-me-already-defined','trial-license-key-reached-limit-revisions','users','split','Anonymous','_getNextColor','trial-license-key-reached-limit-time','avatar','licenseKeyTrialLimit:time','licenseKeyValid','users.colorsCount','define','defineMe','licenseKeyInvalid','invalid-license-key','ck-user__marker--','trim','info','includes','name','has','isAnonymous','_licenseKeyCheckInterval','context','config','destroy','trial-license-key-reached-limit-changes'];(function(_0x1ad1d1,_0x24aacc){const _0x5b5b28=function(_0x334326){while(--_0x334326){_0x1ad1d1['push'](_0x1ad1d1['shift']());}};_0x5b5b28(++_0x24aacc);}(_0x24aa,0xd4));const _0x5b5b=function(_0x1ad1d1,_0x24aacc){_0x1ad1d1=_0x1ad1d1-0x0;let _0x5b5b28=_0x24aa[_0x1ad1d1];return _0x5b5b28;};import{ContextPlugin as _0x121931}from'ckeditor5/src/core';import{Collection as _0x308aa6,CKEditorError as _0x5b4625}from'ckeditor5/src/utils';import _0x1853b0 from'./permissions';import{getTranslation as _0x436392}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x121931{static get[_0x5b5b('0x20')](){return _0x5b5b('0x29');}static get['requires'](){return[_0x1853b0];}constructor(_0x3bf6e1){super(_0x3bf6e1),this[_0x5b5b('0x10')][_0x5b5b('0x11')]['define'](_0x5b5b('0x24'),'anonymous-user'),this[_0x5b5b('0x10')]['config'][_0x5b5b('0x4')](_0x5b5b('0x3'),0x8),this['users']=new _0x308aa6(),this[_0x5b5b('0x32')]=_0x3bf6e1['locale'],this['_licenseKeyCheckInterval']=null,this[_0x5b5b('0x14')]=0x0,this[_0x5b5b('0x30')]=null,this[_0x5b5b('0x31')](_0x5b5b('0x16'));}[_0x5b5b('0x23')](){const _0x46b781=this[_0x5b5b('0x10')];this[_0x5b5b('0x2c')]=_0x46b781[_0x5b5b('0x11')][_0x5b5b('0x2e')]('licenseKey');const _0x512b02=['licenseKeyTrial',_0x5b5b('0x6'),_0x5b5b('0x2'),_0x5b5b('0x2b'),_0x5b5b('0x1'),'licenseKeyTrialLimit:revisions'];this[_0x5b5b('0xf')]=setInterval(()=>{let _0x2e6c88;for(const _0x1275e2 in _0x46b781){const _0x2ab255=_0x46b781[_0x1275e2];if(_0x512b02[_0x5b5b('0xb')](_0x2ab255)){delete _0x46b781[_0x1275e2],_0x2e6c88=_0x2ab255;break;}}if(_0x5b5b('0x6')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x7'),null);if(_0x5b5b('0x21')===_0x2e6c88&&console[_0x5b5b('0xa')](_0x5b5b('0x18')),_0x5b5b('0x2b')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x13'),null);if(_0x5b5b('0x1')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x39'),null);if(_0x5b5b('0x28')===_0x2e6c88)throw clearInterval(this[_0x5b5b('0xf')]),new _0x5b4625(_0x5b5b('0x34'),null);_0x5b5b('0x2')===_0x2e6c88&&clearInterval(this[_0x5b5b('0xf')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x5b5b('0x30')]?null:this['getUser'](this['_myId']);}[_0x5b5b('0x1b')]({id:_0x1bb5c5,name:_0x1bed0b,..._0x27a343}){if(!_0x1bb5c5||_0x5b5b('0x1a')!=typeof _0x1bb5c5)throw new _0x5b4625('users-add-invalid-id');if(this[_0x5b5b('0x35')][_0x5b5b('0xd')](_0x1bb5c5))throw new _0x5b4625(_0x5b5b('0x19'),null,{'id':_0x1bb5c5});const _0x46b53d={..._0x27a343,'id':_0x1bb5c5,'name':a(this[_0x5b5b('0x32')],_0x1bed0b),'color':this[_0x5b5b('0x38')]()};_0x46b53d[_0x5b5b('0xc')]=a(this['_locale'],_0x46b53d[_0x5b5b('0xc')]);const _0x259520=new User(_0x46b53d);return this['users'][_0x5b5b('0x2a')](_0x259520),_0x259520;}[_0x5b5b('0x1f')](_0x51d1b7){return this[_0x5b5b('0x35')][_0x5b5b('0x2e')](_0x51d1b7);}[_0x5b5b('0x1e')](){const _0x4df652=this[_0x5b5b('0x10')]['config'][_0x5b5b('0x2e')](_0x5b5b('0x24'));this['_myId']||this['defineMe'](_0x4df652);}[_0x5b5b('0x5')](_0x4fe1ba){if(this[_0x5b5b('0x30')])throw new _0x5b4625(_0x5b5b('0x33'),null);if(!this[_0x5b5b('0x1f')](_0x4fe1ba))throw new _0x5b4625('users-me-missing-user',null);this['_myId']=_0x4fe1ba;}['getOperationAuthor'](){return this['me'];}[_0x5b5b('0x12')](){super[_0x5b5b('0x12')](),clearInterval(this[_0x5b5b('0xf')]);}[_0x5b5b('0x38')](){const _0x3ef154=this['context'][_0x5b5b('0x11')]['get'](_0x5b5b('0x3'));return this[_0x5b5b('0x14')]>=_0x3ef154&&(this[_0x5b5b('0x14')]=0x0),new u(this[_0x5b5b('0x14')]++);}[_0x5b5b('0x25')](){const _0x241dbe=this[_0x5b5b('0x10')][_0x5b5b('0x11')][_0x5b5b('0x2e')](_0x5b5b('0x24'));this['addUser']({'id':_0x241dbe,'name':_0x436392(this[_0x5b5b('0x32')],_0x5b5b('0x37'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x437e1b){this['id']=_0x437e1b['id'],this[_0x5b5b('0x2d')]=_0x437e1b[_0x5b5b('0x2d')],this[_0x5b5b('0xc')]=_0x437e1b[_0x5b5b('0xc')],this[_0x5b5b('0x0')]=_0x437e1b[_0x5b5b('0x0')],this[_0x5b5b('0x15')]=!0x1;}get[_0x5b5b('0xe')](){return this['_isAnonymous'];}get['initials'](){const _0x361e1d=this[_0x5b5b('0xc')][_0x5b5b('0x36')]('\x20');return 0x1===_0x361e1d[_0x5b5b('0x2f')]?this[_0x5b5b('0x1d')](_0x361e1d[0x0]):this['_getInitial'](_0x361e1d[0x0])+this[_0x5b5b('0x1d')](_0x361e1d[_0x361e1d[_0x5b5b('0x2f')]-0x1]);}[_0x5b5b('0x1d')](_0x5bd307){return _0x5bd307[_0x5b5b('0x27')](0x0)['toUpperCase']();}}function a(_0xa8669e,_0x3a3b6e=''){return''==(_0x3a3b6e=_0x3a3b6e[_0x5b5b('0x9')]())?_0x436392(_0xa8669e,'Anonymous'):_0x3a3b6e;}class u{constructor(_0xd92ef){this[_0x5b5b('0x1c')]=_0xd92ef;}['getBackgroundColorClass'](){return _0x5b5b('0x17')+this[_0x5b5b('0x1c')];}[_0x5b5b('0x22')](){return'ck-user__selection--'+this[_0x5b5b('0x1c')];}[_0x5b5b('0x26')](){return _0x5b5b('0x8')+this[_0x5b5b('0x1c')];}}
23
+ const _0x336d=['_addAnonymousUser','licenseKeyInvalid','ck-user__bg-color--','addUser','users-add-invalid-id','config','_locale','trim','color','getMarkerClass','_lastColor','toUpperCase','pluginName','context','string','_isAnonymous','_myId','licenseKeyTrial','licenseKey','ck-user__marker--','charAt','_id','licenseKeyValid','name','getOperationAuthor','users-me-already-defined','users.anonymousUserId','locale','users','define','has','_getNextColor','getUser','avatar','users.colorsCount','licenseKeyTrialLimit:time','requires','licenseKeyTrialLimit:revisions','info','isAnonymous','length','_licenseKeyCheckInterval','invalid-license-key','defineMe','init','licenseKeyTrialLimit:operations','_getInitial','ck-user__selection--','split','includes','trial-license-key-reached-limit-changes','get','Anonymous','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','useAnonymousUser'];(function(_0x129895,_0x336d2d){const _0x29bb0a=function(_0x3b7384){while(--_0x3b7384){_0x129895['push'](_0x129895['shift']());}};_0x29bb0a(++_0x336d2d);}(_0x336d,0xb2));const _0x29bb=function(_0x129895,_0x336d2d){_0x129895=_0x129895-0x0;let _0x29bb0a=_0x336d[_0x129895];return _0x29bb0a;};import{ContextPlugin as _0x2560dc}from'ckeditor5/src/core';import{Collection as _0x1629c6,CKEditorError as _0x13f32d}from'ckeditor5/src/utils';import _0x240dfb from'./permissions';import{getTranslation as _0x21a8c0}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x2560dc{static get[_0x29bb('0x36')](){return'Users';}static get[_0x29bb('0x17')](){return[_0x240dfb];}constructor(_0x55bcce){super(_0x55bcce),this[_0x29bb('0x0')]['config'][_0x29bb('0x10')]('users.anonymousUserId','anonymous-user'),this[_0x29bb('0x0')]['config']['define'](_0x29bb('0x15'),0x8),this['users']=new _0x1629c6(),this['_locale']=_0x55bcce[_0x29bb('0xe')],this[_0x29bb('0x1c')]=null,this[_0x29bb('0x34')]=0x0,this[_0x29bb('0x3')]=null,this['decorate'](_0x29bb('0xb'));}[_0x29bb('0x1f')](){const _0x1b2a7b=this[_0x29bb('0x0')];this['licenseKey']=_0x1b2a7b[_0x29bb('0x2f')][_0x29bb('0x26')](_0x29bb('0x5'));const _0x4c681b=[_0x29bb('0x4'),_0x29bb('0x2b'),_0x29bb('0x9'),_0x29bb('0x20'),'licenseKeyTrialLimit:time','licenseKeyTrialLimit:revisions'];this[_0x29bb('0x1c')]=setInterval(()=>{let _0x4903d6;for(const _0x2d296c in _0x1b2a7b){const _0x18a6a0=_0x1b2a7b[_0x2d296c];if(_0x4c681b[_0x29bb('0x24')](_0x18a6a0)){delete _0x1b2a7b[_0x2d296c],_0x4903d6=_0x18a6a0;break;}}if(_0x29bb('0x2b')===_0x4903d6)throw clearInterval(this[_0x29bb('0x1c')]),new _0x13f32d(_0x29bb('0x1d'),null);if('licenseKeyTrial'===_0x4903d6&&console[_0x29bb('0x19')](_0x29bb('0x28')),_0x29bb('0x20')===_0x4903d6)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x13f32d(_0x29bb('0x25'),null);if(_0x29bb('0x16')===_0x4903d6)throw clearInterval(this[_0x29bb('0x1c')]),new _0x13f32d('trial-license-key-reached-limit-time',null);if(_0x29bb('0x18')===_0x4903d6)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x13f32d('trial-license-key-reached-limit-revisions',null);'licenseKeyValid'===_0x4903d6&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x29bb('0x2a')]();}get['me'](){return null==this[_0x29bb('0x3')]?null:this[_0x29bb('0x13')](this[_0x29bb('0x3')]);}[_0x29bb('0x2d')]({id:_0x3d17ff,name:_0x15d212,..._0x26086b}){if(!_0x3d17ff||_0x29bb('0x1')!=typeof _0x3d17ff)throw new _0x13f32d(_0x29bb('0x2e'));if(this[_0x29bb('0xf')][_0x29bb('0x11')](_0x3d17ff))throw new _0x13f32d('users-add-duplicated-id',null,{'id':_0x3d17ff});const _0x4c7b2e={..._0x26086b,'id':_0x3d17ff,'name':a(this[_0x29bb('0x30')],_0x15d212),'color':this[_0x29bb('0x12')]()};_0x4c7b2e[_0x29bb('0xa')]=a(this[_0x29bb('0x30')],_0x4c7b2e[_0x29bb('0xa')]);const _0x2e66ba=new User(_0x4c7b2e);return this[_0x29bb('0xf')]['add'](_0x2e66ba),_0x2e66ba;}[_0x29bb('0x13')](_0x3d26b5){return this[_0x29bb('0xf')][_0x29bb('0x26')](_0x3d26b5);}[_0x29bb('0x29')](){const _0x1d87f6=this[_0x29bb('0x0')][_0x29bb('0x2f')][_0x29bb('0x26')](_0x29bb('0xd'));this[_0x29bb('0x3')]||this[_0x29bb('0x1e')](_0x1d87f6);}['defineMe'](_0x5335e3){if(this[_0x29bb('0x3')])throw new _0x13f32d(_0x29bb('0xc'),null);if(!this[_0x29bb('0x13')](_0x5335e3))throw new _0x13f32d('users-me-missing-user',null);this[_0x29bb('0x3')]=_0x5335e3;}[_0x29bb('0xb')](){return this['me'];}['destroy'](){super['destroy'](),clearInterval(this[_0x29bb('0x1c')]);}[_0x29bb('0x12')](){const _0x5180a2=this['context']['config'][_0x29bb('0x26')](_0x29bb('0x15'));return this['_lastColor']>=_0x5180a2&&(this[_0x29bb('0x34')]=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const _0x4640d3=this['context']['config']['get'](_0x29bb('0xd'));this[_0x29bb('0x2d')]({'id':_0x4640d3,'name':_0x21a8c0(this['_locale'],_0x29bb('0x27'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x1b7e81){this['id']=_0x1b7e81['id'],this[_0x29bb('0x32')]=_0x1b7e81[_0x29bb('0x32')],this[_0x29bb('0xa')]=_0x1b7e81[_0x29bb('0xa')],this[_0x29bb('0x14')]=_0x1b7e81[_0x29bb('0x14')],this['_isAnonymous']=!0x1;}get[_0x29bb('0x1a')](){return this[_0x29bb('0x2')];}get['initials'](){const _0x2a2e9=this[_0x29bb('0xa')][_0x29bb('0x23')]('\x20');return 0x1===_0x2a2e9['length']?this['_getInitial'](_0x2a2e9[0x0]):this[_0x29bb('0x21')](_0x2a2e9[0x0])+this[_0x29bb('0x21')](_0x2a2e9[_0x2a2e9[_0x29bb('0x1b')]-0x1]);}['_getInitial'](_0x152fec){return _0x152fec[_0x29bb('0x7')](0x0)[_0x29bb('0x35')]();}}function a(_0x43dcfc,_0xe1baeb=''){return''==(_0xe1baeb=_0xe1baeb[_0x29bb('0x31')]())?_0x21a8c0(_0x43dcfc,_0x29bb('0x27')):_0xe1baeb;}class u{constructor(_0x3de321){this['_id']=_0x3de321;}['getBackgroundColorClass'](){return _0x29bb('0x2c')+this[_0x29bb('0x8')];}['getSelectionClass'](){return _0x29bb('0x22')+this[_0x29bb('0x8')];}[_0x29bb('0x33')](){return _0x29bb('0x6')+this[_0x29bb('0x8')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x120df4,_0x6a06ec){const t=_0x120df4['t'];switch(_0x6a06ec){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
23
+ export function getTranslation(_0x3944ea,_0x171bba){const t=_0x3944ea['t'];switch(_0x171bba){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1f7d=['element','_removeConfirm','showConfirm','cancel','message','confirmView','fire','registerChild','deregisterChild','focus','once','appendChild','locale','destroy','render','submit','isConfirm','set','remove'];(function(_0x536f64,_0x1f7d2a){var _0x30e0bd=function(_0x140c7f){while(--_0x140c7f){_0x536f64['push'](_0x536f64['shift']());}};_0x30e0bd(++_0x1f7d2a);}(_0x1f7d,0x1c2));var _0x30e0=function(_0x536f64,_0x1f7d2a){_0x536f64=_0x536f64-0x0;var _0x30e0bd=_0x1f7d[_0x536f64];return _0x30e0bd;};import _0x91f44c from'./confirmview';export default function m(_0x1b0ae7){return class extends _0x1b0ae7{[_0x30e0('0x8')](_0x170335,_0xc391eb){return this[_0x30e0('0xb')]=new _0x91f44c(this[_0x30e0('0x12')]),this['confirmView'][_0x30e0('0x1')](),this[_0x30e0('0xb')][_0x30e0('0xa')]=_0x170335,this[_0x30e0('0xb')][_0x30e0('0x10')](_0x30e0('0x9'),()=>{this[_0x30e0('0x7')]();}),this[_0x30e0('0xb')][_0x30e0('0x10')](_0x30e0('0x2'),()=>{this[_0x30e0('0x7')]();}),_0xc391eb[_0x30e0('0x11')](this[_0x30e0('0xb')]['element']),this[_0x30e0('0xd')](this[_0x30e0('0xb')]),this[_0x30e0('0x6')][_0x30e0('0xf')](),this[_0x30e0('0x4')](_0x30e0('0x3'),!0x0),new Promise(_0x29a7c0=>this['confirmView']['on'](_0x30e0('0x2'),_0x29a7c0));}['cancelConfirm'](){this[_0x30e0('0x3')]&&this[_0x30e0('0xb')][_0x30e0('0xc')](_0x30e0('0x9'));}['_removeConfirm'](){this[_0x30e0('0x6')]&&this[_0x30e0('0xb')]&&this[_0x30e0('0xb')]['element']&&(this[_0x30e0('0x6')]['focus'](),this[_0x30e0('0xb')]['element'][_0x30e0('0x5')](),this[_0x30e0('0xe')](this[_0x30e0('0xb')]),this['isConfirm']=!0x1,this[_0x30e0('0xb')][_0x30e0('0x0')](),this['confirmView']=void 0x0);}};}
23
+ var _0x5f4d=['fire','locale','deregisterChild','appendChild','once','submit','destroy','cancel','focus','confirmView','isConfirm','_removeConfirm','element','registerChild','cancelConfirm'];(function(_0x3c6da8,_0x5f4dca){var _0x153d17=function(_0x467203){while(--_0x467203){_0x3c6da8['push'](_0x3c6da8['shift']());}};_0x153d17(++_0x5f4dca);}(_0x5f4d,0x162));var _0x153d=function(_0x3c6da8,_0x5f4dca){_0x3c6da8=_0x3c6da8-0x0;var _0x153d17=_0x5f4d[_0x3c6da8];return _0x153d17;};import _0x3cbf9e from'./confirmview';export default function m(_0x25bcd6){return class extends _0x25bcd6{['showConfirm'](_0x243eae,_0x5a7c44){return this['confirmView']=new _0x3cbf9e(this[_0x153d('0x7')]),this['confirmView']['render'](),this['confirmView']['message']=_0x243eae,this[_0x153d('0x0')][_0x153d('0xa')](_0x153d('0xd'),()=>{this['_removeConfirm']();}),this[_0x153d('0x0')][_0x153d('0xa')]('submit',()=>{this['_removeConfirm']();}),_0x5a7c44[_0x153d('0x9')](this[_0x153d('0x0')]['element']),this[_0x153d('0x4')](this[_0x153d('0x0')]),this[_0x153d('0x3')][_0x153d('0xe')](),this['set'](_0x153d('0x1'),!0x0),new Promise(_0x3d178b=>this[_0x153d('0x0')]['on'](_0x153d('0xb'),_0x3d178b));}[_0x153d('0x5')](){this[_0x153d('0x1')]&&this[_0x153d('0x0')][_0x153d('0x6')](_0x153d('0xd'));}[_0x153d('0x2')](){this['element']&&this['confirmView']&&this[_0x153d('0x0')][_0x153d('0x3')]&&(this[_0x153d('0x3')][_0x153d('0xe')](),this[_0x153d('0x0')][_0x153d('0x3')]['remove'](),this[_0x153d('0x8')](this[_0x153d('0x0')]),this[_0x153d('0x1')]=!0x1,this[_0x153d('0x0')][_0x153d('0xc')](),this['confirmView']=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2454=['cancel','submitView','label','fire','execute','Yes','bindTemplate','ck-thread__remove-confirm-inner','ck-thread__remove-confirm','submit','ck-thread__remove-confirm-actions','cancelView','check','icon','_createButtonView','Are\x20you\x20sure?','div','ck-thread__remove-confirm-'];(function(_0x2bb6de,_0x245450){const _0x378b80=function(_0x541cd1){while(--_0x541cd1){_0x2bb6de['push'](_0x2bb6de['shift']());}};_0x378b80(++_0x245450);}(_0x2454,0x11b));const _0x378b=function(_0x2bb6de,_0x245450){_0x2bb6de=_0x2bb6de-0x0;let _0x378b80=_0x2454[_0x2bb6de];return _0x378b80;};import{View as _0x34d30b,ButtonView as _0x3a1471}from'ckeditor5/src/ui';import{icons as _0x1b64fb}from'ckeditor5/src/core';import{getTranslation as _0x58e413}from'./common-translations';export default class h extends _0x34d30b{constructor(_0x47b535){super(_0x47b535);const _0x401225=this[_0x378b('0xb')];this[_0x378b('0x6')]=this[_0x378b('0x1')](_0x47b535,_0x58e413(_0x47b535,_0x378b('0xa')),_0x1b64fb[_0x378b('0x11')],_0x378b('0xe')),this[_0x378b('0x10')]=this[_0x378b('0x1')](_0x47b535,_0x58e413(_0x47b535,'No'),_0x1b64fb['cancel'],_0x378b('0x5')),this['set']('message',_0x58e413(_0x47b535,_0x378b('0x2'))),this['setTemplate']({'tag':_0x378b('0x3'),'attributes':{'class':[_0x378b('0xd')]},'children':[{'tag':'div','attributes':{'class':_0x378b('0xc')},'children':[{'tag':'p','children':[{'text':_0x401225['to']('message')}]},{'tag':_0x378b('0x3'),'attributes':{'class':_0x378b('0xf')},'children':[this[_0x378b('0x6')],this[_0x378b('0x10')]]}]}]});}[_0x378b('0x1')](_0x23aacf,_0x5b318f,_0x2e3616,_0xcb75e9){const _0x256c2d=new _0x3a1471(_0x23aacf);return _0x256c2d[_0x378b('0x7')]=_0x5b318f,_0x256c2d[_0x378b('0x0')]=_0x2e3616,_0x256c2d['extendTemplate']({'attributes':{'class':_0x378b('0x4')+_0xcb75e9}}),_0x256c2d['on'](_0x378b('0x9'),()=>this[_0x378b('0x8')](_0xcb75e9)),_0x256c2d;}}
23
+ const _0x493b=['_createButtonView','extendTemplate','check','setTemplate','icon','cancel','cancelView','ck-thread__remove-confirm-','submitView','div','ck-thread__remove-confirm','label','execute','bindTemplate','set','Yes'];(function(_0xb69ad6,_0x493bc3){const _0x1ce94a=function(_0x4f9f1a){while(--_0x4f9f1a){_0xb69ad6['push'](_0xb69ad6['shift']());}};_0x1ce94a(++_0x493bc3);}(_0x493b,0x93));const _0x1ce9=function(_0xb69ad6,_0x493bc3){_0xb69ad6=_0xb69ad6-0x0;let _0x1ce94a=_0x493b[_0xb69ad6];return _0x1ce94a;};import{View as _0xeedf95,ButtonView as _0x1dcbd2}from'ckeditor5/src/ui';import{icons as _0x507477}from'ckeditor5/src/core';import{getTranslation as _0x2ae1dc}from'./common-translations';export default class h extends _0xeedf95{constructor(_0x2cfb8c){super(_0x2cfb8c);const _0x563fcf=this[_0x1ce9('0xa')];this['submitView']=this[_0x1ce9('0xd')](_0x2cfb8c,_0x2ae1dc(_0x2cfb8c,_0x1ce9('0xc')),_0x507477[_0x1ce9('0xf')],'submit'),this[_0x1ce9('0x3')]=this[_0x1ce9('0xd')](_0x2cfb8c,_0x2ae1dc(_0x2cfb8c,'No'),_0x507477[_0x1ce9('0x2')],_0x1ce9('0x2')),this[_0x1ce9('0xb')]('message',_0x2ae1dc(_0x2cfb8c,'Are\x20you\x20sure?')),this[_0x1ce9('0x0')]({'tag':_0x1ce9('0x6'),'attributes':{'class':[_0x1ce9('0x7')]},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x563fcf['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x1ce9('0x5')],this[_0x1ce9('0x3')]]}]}]});}[_0x1ce9('0xd')](_0x592a90,_0x44e06b,_0x4b8146,_0x46cbac){const _0x2eedf3=new _0x1dcbd2(_0x592a90);return _0x2eedf3[_0x1ce9('0x8')]=_0x44e06b,_0x2eedf3[_0x1ce9('0x1')]=_0x4b8146,_0x2eedf3[_0x1ce9('0xe')]({'attributes':{'class':_0x1ce9('0x4')+_0x46cbac}}),_0x2eedf3['on'](_0x1ce9('0x9'),()=>this['fire'](_0x46cbac)),_0x2eedf3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc41f=['\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format','MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma'];(function(_0x53a39b,_0xc41f02){const _0x2887e3=function(_0x4840fe){while(--_0x4840fe){_0x53a39b['push'](_0x53a39b['shift']());}};_0x2887e3(++_0xc41f02);}(_0xc41f,0x1c3));const _0x2887=function(_0x53a39b,_0xc41f02){_0x53a39b=_0x53a39b-0x0;let _0x2887e3=_0xc41f[_0x53a39b];return _0x2887e3;};import _0x581e41 from'date-fns/format';import _0xd9e08d from'date-fns/parseISO';import _0x261b13 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1eb729}from'ckeditor5/src/utils';export default function E(_0x17938e={}){if(void 0x0!==_0x17938e['dateTimeFormat']&&'function'!=typeof _0x17938e[_0x2887('0x0')])throw new _0x1eb729(_0x2887('0x1'));return _0x2cff23=>{const _0x37e43f='string'==typeof _0x2cff23?_0xd9e08d(_0x2cff23):_0x2cff23,_0x5c2e82=new Date(),_0x444ee5=_0x261b13(_0x5c2e82,_0x37e43f);return _0x17938e['dateTimeFormat']?_0x17938e['dateTimeFormat'](_0x37e43f):_0x581e41(_0x37e43f,0x0===_0x444ee5?_0x2887('0x4'):0x1===_0x444ee5?_0x2887('0x3'):_0x444ee5<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x2887('0x2'));};}
23
+ const _0x100c=['\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','function','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x5ddf88,_0x100c41){const _0x3d9ad1=function(_0x487cda){while(--_0x487cda){_0x5ddf88['push'](_0x5ddf88['shift']());}};_0x3d9ad1(++_0x100c41);}(_0x100c,0x1ee));const _0x3d9a=function(_0x5ddf88,_0x100c41){_0x5ddf88=_0x5ddf88-0x0;let _0x3d9ad1=_0x100c[_0x5ddf88];return _0x3d9ad1;};import _0x16493c from'date-fns/format';import _0x2e0da3 from'date-fns/parseISO';import _0x219d89 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0xa14bbd}from'ckeditor5/src/utils';export default function E(_0x5ad45d={}){if(void 0x0!==_0x5ad45d[_0x3d9a('0x2')]&&_0x3d9a('0x1')!=typeof _0x5ad45d[_0x3d9a('0x2')])throw new _0xa14bbd('invalid-date-time-format');return _0x4da01c=>{const _0x425530='string'==typeof _0x4da01c?_0x2e0da3(_0x4da01c):_0x4da01c,_0x2744ae=new Date(),_0x5645ca=_0x219d89(_0x2744ae,_0x425530);return _0x5ad45d[_0x3d9a('0x2')]?_0x5ad45d[_0x3d9a('0x2')](_0x425530):_0x16493c(_0x425530,0x0===_0x5645ca?_0x3d9a('0x0'):0x1===_0x5645ca?_0x3d9a('0x4'):_0x5645ca<0x7?_0x3d9a('0x3'):_0x3d9a('0x5'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3646=['getClientRects','push','domConverter','name','from','item','length','mapper','domElement','mapViewToDom','filter','markerNameToElements','map','sort'];(function(_0x46ee2f,_0x3646a5){const _0x56c71e=function(_0x20a8e0){while(--_0x20a8e0){_0x46ee2f['push'](_0x46ee2f['shift']());}};_0x56c71e(++_0x3646a5);}(_0x3646,0x18e));const _0x56c7=function(_0x46ee2f,_0x3646a5){_0x46ee2f=_0x46ee2f-0x0;let _0x56c71e=_0x3646[_0x46ee2f];return _0x56c71e;};import{first as _0x51983b}from'ckeditor5/src/utils';export default function k(_0x5f0b8f,_0x4e8833){const _0x2f33f3=_0x5f0b8f[_0x56c7('0x1')]['markerNameToElements'](_0x4e8833[_0x56c7('0xb')]);if(!_0x2f33f3)return null;const _0x2b10d7=_0x51983b(_0x2f33f3['values']());return _0x5f0b8f['view'][_0x56c7('0xa')][_0x56c7('0x3')](_0x2b10d7)||null;}export function getAllMarkersDomElementsSorted(_0xc4e9b9,_0xda7752){if(0x0===_0xda7752[_0x56c7('0x0')])return null;const _0x11152a=[],_0x7a5178=_0xc4e9b9['view']['domConverter'];for(const _0x7060db of _0xda7752){const _0x5212fa=_0xc4e9b9[_0x56c7('0x1')][_0x56c7('0x5')](_0x7060db[_0x56c7('0xb')]);if(!_0x5212fa)continue;const _0x194b91=Array[_0x56c7('0xc')](_0x5212fa)[_0x56c7('0x6')](_0xc9fe15=>_0x7a5178['mapViewToDom'](_0xc9fe15))[_0x56c7('0x4')](_0x15afe3=>!!_0x15afe3);_0x11152a[_0x56c7('0x9')](..._0x194b91);}if(0x0===_0x11152a[_0x56c7('0x0')])return null;const _0x28a726=[];for(const _0xde78f of _0x11152a){const _0x5ea567=_0xde78f[_0x56c7('0x8')]()[_0x56c7('0xd')](0x0);_0x5ea567&&_0x28a726[_0x56c7('0x9')]({'x':_0x5ea567['x'],'y':_0x5ea567['y'],'domElement':_0xde78f});}return 0x0===_0x28a726['length']?null:(_0x28a726[_0x56c7('0x7')]((_0x642e80,_0x3f6467)=>_0x642e80['y']-_0x3f6467['y']||_0x642e80['x']-_0x3f6467['x']),_0x28a726[_0x56c7('0x6')](_0x1f8e82=>_0x1f8e82[_0x56c7('0x2')]));}
23
+ const _0x314b=['length','name','domElement','mapper','values','item','markerNameToElements','push','map','domConverter','mapViewToDom','view','filter','sort'];(function(_0x6ecd88,_0x314bc4){const _0x5c09f3=function(_0xf2a60b){while(--_0xf2a60b){_0x6ecd88['push'](_0x6ecd88['shift']());}};_0x5c09f3(++_0x314bc4);}(_0x314b,0x81));const _0x5c09=function(_0x6ecd88,_0x314bc4){_0x6ecd88=_0x6ecd88-0x0;let _0x5c09f3=_0x314b[_0x6ecd88];return _0x5c09f3;};import{first as _0x3a3abf}from'ckeditor5/src/utils';export default function k(_0x511996,_0x16c01b){const _0x49382b=_0x511996[_0x5c09('0x0')]['markerNameToElements'](_0x16c01b[_0x5c09('0xc')]);if(!_0x49382b)return null;const _0xdd4134=_0x3a3abf(_0x49382b[_0x5c09('0x1')]());return _0x511996[_0x5c09('0x8')][_0x5c09('0x6')]['mapViewToDom'](_0xdd4134)||null;}export function getAllMarkersDomElementsSorted(_0x3ce387,_0xa943a3){if(0x0===_0xa943a3[_0x5c09('0xb')])return null;const _0x45a2dd=[],_0xda7778=_0x3ce387[_0x5c09('0x8')][_0x5c09('0x6')];for(const _0x1ec920 of _0xa943a3){const _0x1cedfa=_0x3ce387[_0x5c09('0x0')][_0x5c09('0x3')](_0x1ec920[_0x5c09('0xc')]);if(!_0x1cedfa)continue;const _0x4515d7=Array['from'](_0x1cedfa)['map'](_0x32e1dc=>_0xda7778[_0x5c09('0x7')](_0x32e1dc))[_0x5c09('0x9')](_0x54c26b=>!!_0x54c26b);_0x45a2dd['push'](..._0x4515d7);}if(0x0===_0x45a2dd['length'])return null;const _0x58a36a=[];for(const _0x19ff9 of _0x45a2dd){const _0xe8b5ca=_0x19ff9['getClientRects']()[_0x5c09('0x2')](0x0);_0xe8b5ca&&_0x58a36a[_0x5c09('0x4')]({'x':_0xe8b5ca['x'],'y':_0xe8b5ca['y'],'domElement':_0x19ff9});}return 0x0===_0x58a36a[_0x5c09('0xb')]?null:(_0x58a36a[_0x5c09('0xa')]((_0x45086d,_0x3e9027)=>_0x45086d['y']-_0x3e9027['y']||_0x45086d['x']-_0x3e9027['x']),_0x58a36a[_0x5c09('0x5')](_0x48a7ec=>_0x48a7ec[_0x5c09('0xd')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1649=['toString','keys','boolean','sort','string','sign','isArray'];(function(_0x18139f,_0x16493d){const _0x305708=function(_0x2dcc6a){while(--_0x2dcc6a){_0x18139f['push'](_0x18139f['shift']());}};_0x305708(++_0x16493d);}(_0x1649,0xc9));const _0x3057=function(_0x18139f,_0x16493d){_0x18139f=_0x18139f-0x0;let _0x305708=_0x1649[_0x18139f];return _0x305708;};export default function b(_0x1dbabf){let _0x326541=0x0,_0x58cbef=0x0;for(const _0x34d25c of g(_0x1dbabf))_0x326541=(_0x326541<<0x5)-_0x326541+_0x34d25c,_0x326541&=_0x326541,[_0x326541,_0x58cbef]=[_0x58cbef,_0x326541];return O(_0x326541)+O(_0x58cbef);}function*j(_0x4bbb78){_0x4bbb78?_0x3057('0x4')==typeof _0x4bbb78?yield 0x1:Array[_0x3057('0x1')](_0x4bbb78)?yield*function*(_0x1e35d5){for(const _0x114864 of _0x1e35d5)yield*j(_0x114864);}(_0x4bbb78):'object'==typeof _0x4bbb78?yield*g(_0x4bbb78):_0x3057('0x6')==typeof _0x4bbb78?yield*A(_0x4bbb78):'number'==typeof _0x4bbb78&&(yield _0x4bbb78):yield 0x0;}function*g(_0x5819c9){if(yield M('{'),_0x5819c9){const _0x1f228f=Object[_0x3057('0x3')](_0x5819c9)[_0x3057('0x5')]();for(const _0x5d1cf5 of _0x1f228f){yield*A(_0x5d1cf5),yield M(':');const _0x37567e=_0x5819c9[_0x5d1cf5];yield*j(_0x37567e);}}yield M('}');}function*A(_0x45610e){yield M('\x22');for(const _0x2d85bb of _0x45610e)yield M(_0x2d85bb);yield M('\x22');}function M(_0x2fe062){return _0x2fe062['charCodeAt'](0x0);}function O(_0x13779b){return(_0x13779b*=Math[_0x3057('0x0')](_0x13779b))[_0x3057('0x2')](0x24);}
23
+ const _0x467c=['sign','charCodeAt','isArray','boolean','number','object','keys','toString'];(function(_0x4baff8,_0x467c1a){const _0x30ee0f=function(_0x943f63){while(--_0x943f63){_0x4baff8['push'](_0x4baff8['shift']());}};_0x30ee0f(++_0x467c1a);}(_0x467c,0x1a2));const _0x30ee=function(_0x4baff8,_0x467c1a){_0x4baff8=_0x4baff8-0x0;let _0x30ee0f=_0x467c[_0x4baff8];return _0x30ee0f;};export default function b(_0x35a37d){let _0x592c2b=0x0,_0x1e8c87=0x0;for(const _0x2bb74b of g(_0x35a37d))_0x592c2b=(_0x592c2b<<0x5)-_0x592c2b+_0x2bb74b,_0x592c2b&=_0x592c2b,[_0x592c2b,_0x1e8c87]=[_0x1e8c87,_0x592c2b];return O(_0x592c2b)+O(_0x1e8c87);}function*j(_0x1c1a90){_0x1c1a90?_0x30ee('0x1')==typeof _0x1c1a90?yield 0x1:Array[_0x30ee('0x0')](_0x1c1a90)?yield*function*(_0x42451c){for(const _0x59e5ed of _0x42451c)yield*j(_0x59e5ed);}(_0x1c1a90):_0x30ee('0x3')==typeof _0x1c1a90?yield*g(_0x1c1a90):'string'==typeof _0x1c1a90?yield*A(_0x1c1a90):_0x30ee('0x2')==typeof _0x1c1a90&&(yield _0x1c1a90):yield 0x0;}function*g(_0x21df2b){if(yield M('{'),_0x21df2b){const _0x53168b=Object[_0x30ee('0x4')](_0x21df2b)['sort']();for(const _0x1bd312 of _0x53168b){yield*A(_0x1bd312),yield M(':');const _0x22599f=_0x21df2b[_0x1bd312];yield*j(_0x22599f);}}yield M('}');}function*A(_0x541225){yield M('\x22');for(const _0xea42b0 of _0x541225)yield M(_0xea42b0);yield M('\x22');}function M(_0xbda340){return _0xbda340[_0x30ee('0x7')](0x0);}function O(_0x3de49d){return(_0x3de49d*=Math[_0x30ee('0x6')](_0x3de49d))[_0x30ee('0x5')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4019=['from','string','includes','DocumentOutline','length','plugins','initialData','RevisionTracker','names','constructor','config','concat','every','removePlugins','find','builtinPlugins','rootsAttributes','_context','filter','requires','name','toolbar','has','get','set','WordCount','map'];(function(_0x380ddb,_0x40193f){const _0x4df6a9=function(_0xf9c3eb){while(--_0xf9c3eb){_0x380ddb['push'](_0x380ddb['shift']());}};_0x4df6a9(++_0x40193f);}(_0x4019,0x14f));const _0x4df6=function(_0x380ddb,_0x40193f){_0x380ddb=_0x380ddb-0x0;let _0x4df6a9=_0x4019[_0x380ddb];return _0x4df6a9;};const w=[_0x4df6('0x16'),'context',_0x4df6('0xa'),_0x4df6('0x5')],W=['WebSocketGateway',_0x4df6('0x17'),'Autosave',_0x4df6('0xe'),_0x4df6('0x13'),'WProofreader'];function v(_0x270fbe,_0x42ccf4,_0xba65ec,_0x33e22e=[]){const _0x329ecb=_0x4df6('0x11')==typeof _0x270fbe?_0xba65ec[_0x4df6('0xc')](_0x270fbe)['constructor']:_0x270fbe,_0x51cc9a=_0x329ecb['pluginName']||_0x329ecb[_0x4df6('0x9')];if(_0x42ccf4[_0x4df6('0xb')](_0x51cc9a))return _0x42ccf4[_0x4df6('0xc')](_0x51cc9a);if(_0x42ccf4[_0x4df6('0xd')](_0x51cc9a,!0x0),_0x51cc9a&&W[_0x4df6('0x0')](_0x33e22e)['includes'](_0x51cc9a))return _0x42ccf4[_0x4df6('0xd')](_0x51cc9a,!0x1),!0x1;if(!_0x329ecb[_0x4df6('0x8')])return _0x42ccf4[_0x4df6('0xd')](_0x51cc9a,!0x0),!0x0;const _0x6732f5=_0x329ecb['requires'][_0x4df6('0x1')](_0x2220ea=>v(_0x2220ea,_0x42ccf4,_0xba65ec,_0x33e22e));return _0x42ccf4[_0x4df6('0xd')](_0x51cc9a,_0x6732f5),_0x6732f5;}export default function D(_0x19487f,_0x57b6b9){const _0x2e2eb8={};for(const _0x4eda39 of _0x19487f[_0x4df6('0x1a')][_0x4df6('0x18')]())w[_0x4df6('0x12')](_0x4eda39)||(_0x2e2eb8[_0x4eda39]=_0x19487f['config'][_0x4df6('0xc')](_0x4eda39));const _0x1046b4=_0x2e2eb8[_0x4df6('0x15')]||[],_0x1e52f3=_0x19487f[_0x4df6('0x19')][_0x4df6('0x4')]||[],_0x40f7ac=_0x1046b4[_0x4df6('0x14')]?_0x1046b4:_0x1e52f3,_0x1c8f87=_0x2e2eb8['extraPlugins']||[];delete _0x2e2eb8['extraPlugins'];const _0x5160c3=_0x2e2eb8[_0x4df6('0x2')]||[];delete _0x2e2eb8[_0x4df6('0x2')];const _0x11f484=_0x19487f[_0x4df6('0x6')][_0x4df6('0x1a')][_0x4df6('0xc')]('plugins')||[],_0x3f9221=_0x40f7ac[_0x4df6('0x0')](_0x1c8f87)[_0x4df6('0x0')](_0x11f484)[_0x4df6('0xf')](_0x460056=>_0x4df6('0x11')==typeof _0x460056?_0x1e52f3[_0x4df6('0x3')](_0x5bb35e=>_0x5bb35e['pluginName']==_0x460056):_0x460056)[_0x4df6('0x7')](_0x4f8984=>!_0x5160c3[_0x4df6('0x12')](_0x4f8984)),_0x43e560=Array[_0x4df6('0x10')](new Set(_0x3f9221)),_0x24e92c=new Map();return _0x2e2eb8['plugins']=_0x43e560['filter'](_0x19b1e5=>v(_0x19b1e5,_0x24e92c,_0x19487f[_0x4df6('0x15')],_0x57b6b9)),_0x2e2eb8;}
23
+ const _0x2320=['_context','from','pluginName','WProofreader','removePlugins','find','names','has','set','WordCount','concat','rootsAttributes','config','builtinPlugins','length','requires','includes','WebSocketGateway','get','constructor','context','extraPlugins','name','RevisionTracker','toolbar','filter','string','plugins','initialData'];(function(_0x2c0b1b,_0x23207c){const _0xe037ab=function(_0x1e8627){while(--_0x1e8627){_0x2c0b1b['push'](_0x2c0b1b['shift']());}};_0xe037ab(++_0x23207c);}(_0x2320,0x11d));const _0xe037=function(_0x2c0b1b,_0x23207c){_0x2c0b1b=_0x2c0b1b-0x0;let _0xe037ab=_0x2320[_0x2c0b1b];return _0xe037ab;};const w=[_0xe037('0x4'),_0xe037('0x19'),_0xe037('0x0'),_0xe037('0x10')],W=[_0xe037('0x16'),_0xe037('0x1c'),'Autosave',_0xe037('0xe'),'DocumentOutline',_0xe037('0x8')];function v(_0x17614e,_0x15f9a1,_0x46e36b,_0x4ae5d7=[]){const _0x1538ab=_0xe037('0x2')==typeof _0x17614e?_0x46e36b[_0xe037('0x17')](_0x17614e)[_0xe037('0x18')]:_0x17614e,_0x4aad36=_0x1538ab[_0xe037('0x7')]||_0x1538ab[_0xe037('0x1b')];if(_0x15f9a1[_0xe037('0xc')](_0x4aad36))return _0x15f9a1['get'](_0x4aad36);if(_0x15f9a1[_0xe037('0xd')](_0x4aad36,!0x0),_0x4aad36&&W['concat'](_0x4ae5d7)['includes'](_0x4aad36))return _0x15f9a1['set'](_0x4aad36,!0x1),!0x1;if(!_0x1538ab[_0xe037('0x14')])return _0x15f9a1[_0xe037('0xd')](_0x4aad36,!0x0),!0x0;const _0x36b848=_0x1538ab[_0xe037('0x14')]['every'](_0x393589=>v(_0x393589,_0x15f9a1,_0x46e36b,_0x4ae5d7));return _0x15f9a1[_0xe037('0xd')](_0x4aad36,_0x36b848),_0x36b848;}export default function D(_0x5286d7,_0x1d7917){const _0x5ccdb={};for(const _0x2cac29 of _0x5286d7[_0xe037('0x11')][_0xe037('0xb')]())w[_0xe037('0x15')](_0x2cac29)||(_0x5ccdb[_0x2cac29]=_0x5286d7[_0xe037('0x11')][_0xe037('0x17')](_0x2cac29));const _0x390404=_0x5ccdb[_0xe037('0x3')]||[],_0x37dab5=_0x5286d7[_0xe037('0x18')][_0xe037('0x12')]||[],_0x9962e3=_0x390404[_0xe037('0x13')]?_0x390404:_0x37dab5,_0x345cc8=_0x5ccdb[_0xe037('0x1a')]||[];delete _0x5ccdb[_0xe037('0x1a')];const _0x42cb32=_0x5ccdb[_0xe037('0x9')]||[];delete _0x5ccdb[_0xe037('0x9')];const _0x5d77a3=_0x5286d7[_0xe037('0x5')]['config'][_0xe037('0x17')](_0xe037('0x3'))||[],_0x525a71=_0x9962e3['concat'](_0x345cc8)[_0xe037('0xf')](_0x5d77a3)['map'](_0x1db1ea=>_0xe037('0x2')==typeof _0x1db1ea?_0x37dab5[_0xe037('0xa')](_0x225d6e=>_0x225d6e[_0xe037('0x7')]==_0x1db1ea):_0x1db1ea)[_0xe037('0x1')](_0x3df35e=>!_0x42cb32[_0xe037('0x15')](_0x3df35e)),_0x3bb37a=Array[_0xe037('0x6')](new Set(_0x525a71)),_0x28227f=new Map();return _0x5ccdb['plugins']=_0x3bb37a['filter'](_0x333daf=>v(_0x333daf,_0x28227f,_0x5286d7[_0xe037('0x3')],_0x1d7917)),_0x5ccdb;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb883=['replace','...','join','push','length','slice','match','split','startsWith','substring'];(function(_0x447a97,_0xb883b6){const _0x125809=function(_0x63857d){while(--_0x63857d){_0x447a97['push'](_0x447a97['shift']());}};_0x125809(++_0xb883b6);}(_0xb883,0x183));const _0x1258=function(_0x447a97,_0xb883b6){_0x447a97=_0x447a97-0x0;let _0x125809=_0xb883[_0x447a97];return _0x125809;};export default function z(_0xe544b7,{limit:_0x633643,suffix:_0x75fadf=_0x1258('0x4')}){const _0x22bd5d=[];let _0x26c9b5=0x0;const _0x21b03e=_0xe544b7[_0x1258('0x3')](/</g,'\x0a<')[_0x1258('0x3')](/>/g,'>\x0a')[_0x1258('0x3')](/^\n/g,'')[_0x1258('0x3')](/\n$/g,'')[_0x1258('0x0')]('\x0a');for(let _0x217ae0=0x0;_0x217ae0<_0x21b03e[_0x1258('0x7')];_0x217ae0++){let _0x4aae84=_0x21b03e[_0x217ae0];const _0x5b8d2c=Z(_0x4aae84);if(_0x4aae84[_0x1258('0x1')]('<')){if(_0x26c9b5>=_0x633643){const _0x3d03f0=_0x4aae84[_0x1258('0x9')](/[a-zA-Z]+/);if(!_0x3d03f0){_0x21b03e[_0x217ae0]='';continue;}const _0x4caef0=_0x3d03f0[0x0];_0x4aae84[_0x1258('0x1')]('</')?(_0x22bd5d[_0x1258('0x7')]&&(_0x4aae84=''),_0x22bd5d['pop']()):(_0x22bd5d[_0x1258('0x6')](_0x4caef0),_0x4aae84='');}}else{if(_0x26c9b5>=_0x633643)_0x4aae84='';else{if(_0x26c9b5+_0x5b8d2c[_0x1258('0x7')]>=_0x633643){let _0x1ce5f2=_0x633643-_0x26c9b5;if('\x20'===_0x5b8d2c[_0x1ce5f2-0x1])_0x1ce5f2--;else{const _0x5d0e5a=_0x5b8d2c[_0x1258('0x8')](_0x1ce5f2)['indexOf']('\x20');-0x1!==_0x5d0e5a?_0x1ce5f2+=_0x5d0e5a:_0x1ce5f2=_0x4aae84[_0x1258('0x7')];}_0x4aae84=_0x5b8d2c[_0x1258('0x8')](0x0,_0x1ce5f2)[_0x1258('0x5')]('')+_0x75fadf,_0x26c9b5=_0x633643;}else _0x26c9b5+=_0x5b8d2c[_0x1258('0x7')];}}_0x21b03e[_0x217ae0]=_0x4aae84;}return _0x21b03e[_0x1258('0x5')]('\x0a')[_0x1258('0x3')](/\n/g,'');}function Z(_0x4a479f){const _0x15a7b6=[];for(let _0x1f970b=0x0;_0x1f970b<_0x4a479f[_0x1258('0x7')];_0x1f970b++){const _0x1d7fec=_0x4a479f[_0x1258('0x2')](_0x1f970b)[_0x1258('0x9')](/^&[a-z0-9#]+;/);if(_0x1d7fec){const _0x577622=_0x1d7fec[0x0];_0x15a7b6['push'](_0x577622),_0x1f970b+=_0x577622['length']-0x1;}else _0x15a7b6[_0x1258('0x6')](_0x4a479f[_0x1f970b]);}return _0x15a7b6;}
23
+ const _0x28bb=['startsWith','replace','...','match','push','length','slice','split','join','indexOf'];(function(_0x157d2d,_0x28bbee){const _0x573c78=function(_0x55410d){while(--_0x55410d){_0x157d2d['push'](_0x157d2d['shift']());}};_0x573c78(++_0x28bbee);}(_0x28bb,0xbe));const _0x573c=function(_0x157d2d,_0x28bbee){_0x157d2d=_0x157d2d-0x0;let _0x573c78=_0x28bb[_0x157d2d];return _0x573c78;};export default function z(_0xc1f9f2,{limit:_0x495644,suffix:_0x4bdeb5=_0x573c('0x2')}){const _0x393510=[];let _0x2bae31=0x0;const _0x93c3cf=_0xc1f9f2[_0x573c('0x1')](/</g,'\x0a<')[_0x573c('0x1')](/>/g,'>\x0a')[_0x573c('0x1')](/^\n/g,'')[_0x573c('0x1')](/\n$/g,'')[_0x573c('0x7')]('\x0a');for(let _0x1a42cc=0x0;_0x1a42cc<_0x93c3cf[_0x573c('0x5')];_0x1a42cc++){let _0x47242c=_0x93c3cf[_0x1a42cc];const _0x4a5f6e=Z(_0x47242c);if(_0x47242c[_0x573c('0x0')]('<')){if(_0x2bae31>=_0x495644){const _0x27700a=_0x47242c[_0x573c('0x3')](/[a-zA-Z]+/);if(!_0x27700a){_0x93c3cf[_0x1a42cc]='';continue;}const _0x1485e6=_0x27700a[0x0];_0x47242c[_0x573c('0x0')]('</')?(_0x393510[_0x573c('0x5')]&&(_0x47242c=''),_0x393510['pop']()):(_0x393510['push'](_0x1485e6),_0x47242c='');}}else{if(_0x2bae31>=_0x495644)_0x47242c='';else{if(_0x2bae31+_0x4a5f6e[_0x573c('0x5')]>=_0x495644){let _0x568d5a=_0x495644-_0x2bae31;if('\x20'===_0x4a5f6e[_0x568d5a-0x1])_0x568d5a--;else{const _0x73a4d0=_0x4a5f6e[_0x573c('0x6')](_0x568d5a)[_0x573c('0x9')]('\x20');-0x1!==_0x73a4d0?_0x568d5a+=_0x73a4d0:_0x568d5a=_0x47242c[_0x573c('0x5')];}_0x47242c=_0x4a5f6e['slice'](0x0,_0x568d5a)['join']('')+_0x4bdeb5,_0x2bae31=_0x495644;}else _0x2bae31+=_0x4a5f6e['length'];}}_0x93c3cf[_0x1a42cc]=_0x47242c;}return _0x93c3cf[_0x573c('0x8')]('\x0a')[_0x573c('0x1')](/\n/g,'');}function Z(_0x182455){const _0x2b7498=[];for(let _0x1f7c70=0x0;_0x1f7c70<_0x182455[_0x573c('0x5')];_0x1f7c70++){const _0x496fd9=_0x182455['substring'](_0x1f7c70)[_0x573c('0x3')](/^&[a-z0-9#]+;/);if(_0x496fd9){const _0x47dbdd=_0x496fd9[0x0];_0x2b7498[_0x573c('0x4')](_0x47dbdd),_0x1f7c70+=_0x47dbdd['length']-0x1;}else _0x2b7498[_0x573c('0x4')](_0x182455[_0x1f7c70]);}return _0x2b7498;}