@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231019.0 → 0.0.0-nightly-20231020.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "0.0.0-nightly-20231019.0",
3
+ "version": "0.0.0-nightly-20231020.0",
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-20231019.0",
34
+ "ckeditor5": "0.0.0-nightly-20231020.0",
35
35
  "date-fns": "2.30.0"
36
36
  },
37
37
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57fa=['includes','config','has','comment:write','CommentsOnly','plugins','addCommentThread','document:write','enableReadOnlyMode','CommentsRepository','pluginName','clearForceDisabled','context','get','find','comment:modify_all','editors','comment:admin','collaboration.channelId','noPermissions','commands','no-permissions','isEnabled','permissions-set-permissions-invalid-channel-id'];(function(_0x464828,_0x57faa8){const _0x15b623=function(_0x4e9b41){while(--_0x4e9b41){_0x464828['push'](_0x464828['shift']());}};_0x15b623(++_0x57faa8);}(_0x57fa,0x18b));const _0x15b6=function(_0x464828,_0x57faa8){_0x464828=_0x464828-0x0;let _0x15b623=_0x57fa[_0x464828];return _0x15b623;};import{ContextPlugin as _0x5164de,Editor as _0x558b05}from'ckeditor5/src/core';import{CKEditorError as _0x167568}from'ckeditor5/src/utils';export default class n extends _0x5164de{static get[_0x15b6('0x17')](){return'Permissions';}['setPermissions'](_0x591a66,_0x250f9f){let _0x3ee9fb;if(_0x250f9f||(_0x250f9f=this['context'][_0x15b6('0xe')][_0x15b6('0x2')]('collaboration.channelId')),this['context'][_0x15b6('0xe')]['get']('collaboration.channelId')==_0x250f9f?_0x3ee9fb=this[_0x15b6('0x1')]:_0x15b6('0x5')in this[_0x15b6('0x1')]&&this['context'][_0x15b6('0x5')]&&(_0x3ee9fb=this[_0x15b6('0x1')][_0x15b6('0x5')][_0x15b6('0x3')](_0x1c0462=>_0x1c0462[_0x15b6('0xe')]['get'](_0x15b6('0x7'))==_0x250f9f)),!_0x3ee9fb)throw new _0x167568(_0x15b6('0xc'),null);const _0x2a4560=_0x3ee9fb[_0x15b6('0x12')],_0x11eec2=_0x2a4560[_0x15b6('0xf')](_0x15b6('0x16'))?_0x2a4560[_0x15b6('0x2')](_0x15b6('0x16')):void 0x0,_0x1d1377=_0x2a4560[_0x15b6('0xf')](_0x15b6('0x11'))&&_0x2a4560[_0x15b6('0x2')]('CommentsOnly'),_0x3cfe48=_0x591a66[_0x15b6('0xd')](_0x15b6('0x14')),_0x2e1c98=_0x591a66[_0x15b6('0xd')](_0x15b6('0x4')),_0x273e4d=_0x591a66[_0x15b6('0xd')](_0x15b6('0x6')),_0x269a3c=_0x591a66[_0x15b6('0xd')](_0x15b6('0x10')),_0x3d9c3e=_0x269a3c||_0x273e4d,_0x1d3e7b=_0x3d9c3e||_0x2e1c98,_0x4616fb=_0x3cfe48||_0x3d9c3e;(_0x1d1377&&(_0x1d1377[_0x15b6('0xb')]=!_0x3cfe48&&_0x1d3e7b),_0x3ee9fb instanceof _0x558b05)&&(!(_0x3cfe48||_0x1d3e7b&&_0x11eec2)?_0x3ee9fb[_0x15b6('0x15')](_0x15b6('0xa')):_0x3ee9fb['disableReadOnlyMode'](_0x15b6('0xa')));if(_0x11eec2){_0x11eec2['setPermissions']({'admin':_0x273e4d,'modifyAll':_0x2e1c98,'write':_0x269a3c,'resolve':_0x4616fb},_0x250f9f);const _0x798652=_0x3ee9fb instanceof _0x558b05&&_0x3ee9fb[_0x15b6('0x9')][_0x15b6('0x2')](_0x15b6('0x13'));_0x798652&&(_0x3d9c3e?_0x798652[_0x15b6('0x0')](_0x15b6('0x8')):_0x798652['forceDisabled'](_0x15b6('0x8')));}}}
23
+ const _0x3b78=['permissions-set-permissions-invalid-channel-id','comment:admin','config','has','get','noPermissions','clearForceDisabled','includes','isEnabled','Permissions','CommentsOnly','forceDisabled','editors','disableReadOnlyMode','commands','plugins','context','setPermissions','CommentsRepository','collaboration.channelId','pluginName','comment:modify_all','find'];(function(_0x1b645b,_0x3b7866){const _0x227493=function(_0x19820c){while(--_0x19820c){_0x1b645b['push'](_0x1b645b['shift']());}};_0x227493(++_0x3b7866);}(_0x3b78,0xd7));const _0x2274=function(_0x1b645b,_0x3b7866){_0x1b645b=_0x1b645b-0x0;let _0x227493=_0x3b78[_0x1b645b];return _0x227493;};import{ContextPlugin as _0x1825a5,Editor as _0xde7945}from'ckeditor5/src/core';import{CKEditorError as _0x4aecfc}from'ckeditor5/src/utils';export default class n extends _0x1825a5{static get[_0x2274('0xc')](){return _0x2274('0x1');}[_0x2274('0x9')](_0x271ee7,_0x5d8eae){let _0x343504;if(_0x5d8eae||(_0x5d8eae=this[_0x2274('0x8')][_0x2274('0x11')][_0x2274('0x13')](_0x2274('0xb'))),this[_0x2274('0x8')][_0x2274('0x11')][_0x2274('0x13')](_0x2274('0xb'))==_0x5d8eae?_0x343504=this[_0x2274('0x8')]:_0x2274('0x4')in this[_0x2274('0x8')]&&this[_0x2274('0x8')][_0x2274('0x4')]&&(_0x343504=this[_0x2274('0x8')][_0x2274('0x4')][_0x2274('0xe')](_0x5e3157=>_0x5e3157[_0x2274('0x11')][_0x2274('0x13')](_0x2274('0xb'))==_0x5d8eae)),!_0x343504)throw new _0x4aecfc(_0x2274('0xf'),null);const _0x393391=_0x343504[_0x2274('0x7')],_0x280abc=_0x393391[_0x2274('0x12')](_0x2274('0xa'))?_0x393391['get'](_0x2274('0xa')):void 0x0,_0x319d22=_0x393391[_0x2274('0x12')](_0x2274('0x2'))&&_0x393391[_0x2274('0x13')]('CommentsOnly'),_0x32b596=_0x271ee7[_0x2274('0x16')]('document:write'),_0x117a38=_0x271ee7[_0x2274('0x16')](_0x2274('0xd')),_0x453ce7=_0x271ee7[_0x2274('0x16')](_0x2274('0x10')),_0x34ee12=_0x271ee7['includes']('comment:write'),_0x2e668b=_0x34ee12||_0x453ce7,_0x471ab0=_0x2e668b||_0x117a38,_0x227a8c=_0x32b596||_0x2e668b;(_0x319d22&&(_0x319d22[_0x2274('0x0')]=!_0x32b596&&_0x471ab0),_0x343504 instanceof _0xde7945)&&(!(_0x32b596||_0x471ab0&&_0x280abc)?_0x343504['enableReadOnlyMode']('no-permissions'):_0x343504[_0x2274('0x5')]('no-permissions'));if(_0x280abc){_0x280abc[_0x2274('0x9')]({'admin':_0x453ce7,'modifyAll':_0x117a38,'write':_0x34ee12,'resolve':_0x227a8c},_0x5d8eae);const _0x490b41=_0x343504 instanceof _0xde7945&&_0x343504[_0x2274('0x6')][_0x2274('0x13')]('addCommentThread');_0x490b41&&(_0x2e668b?_0x490b41[_0x2274('0x15')]('noPermissions'):_0x490b41[_0x2274('0x3')](_0x2274('0x14')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xaace=['push','notificationView','extendTemplate','ck-user__anonymous','isAnonymous','avatar','div','content','name','ck-user__icon','ck-user','setTemplate','ck-user__notification','ck\x20ck-user__name\x20ck-user__name--hidden'];(function(_0x5fc3fa,_0xaace0){const _0x30f88e=function(_0x1f1449){while(--_0x1f1449){_0x5fc3fa['push'](_0x5fc3fa['shift']());}};_0x30f88e(++_0xaace0);}(_0xaace,0x7d));const _0x30f8=function(_0x5fc3fa,_0xaace0){_0x5fc3fa=_0x5fc3fa-0x0;let _0x30f88e=_0xaace[_0x5fc3fa];return _0x30f88e;};import{View as _0x58b5e5,IconView as _0xa716b2}from'ckeditor5/src/ui';import _0x2b32b8 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x58b5e5{constructor(_0xa76d8d,_0x207d59,_0x5b9a22){super(_0xa76d8d),this[_0x30f8('0x9')]=_0x207d59[_0x30f8('0x9')],this[_0x30f8('0x2')]=null;const _0x5a5a76=['ck','ck-user__img'];if(_0x207d59[_0x30f8('0x5')]&&_0x5a5a76[_0x30f8('0x1')](_0x30f8('0x4')),_0x207d59[_0x30f8('0x6')]&&_0x5a5a76[_0x30f8('0x1')]('ck-user__avatar'),_0x5b9a22){const _0x4d9945=new _0xa716b2();_0x4d9945[_0x30f8('0x3')]({'attributes':{'class':[_0x30f8('0xa')]}}),_0x4d9945[_0x30f8('0x8')]=_0x2b32b8,this[_0x30f8('0x2')]={'tag':_0x30f8('0x7'),'attributes':{'class':['ck',_0x30f8('0xd')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5b9a22},'children':[_0x4d9945]};}const _0x4fcb3b=[{'tag':_0x30f8('0x7'),'attributes':{'class':_0x5a5a76,'style':{'background-image':_0x207d59['avatar']?'url(\x27'+_0x207d59[_0x30f8('0x6')]+'\x27)':''}}},{'tag':_0x30f8('0x7'),'attributes':{'class':_0x207d59[_0x30f8('0x6')]?_0x30f8('0x0'):'ck\x20ck-user__name'},'children':[{'text':_0x207d59['initials']}]}];this['notificationView']&&_0x4fcb3b['push'](this[_0x30f8('0x2')]),this[_0x30f8('0xc')]({'tag':_0x30f8('0x7'),'attributes':{'class':['ck',_0x30f8('0xb')],'data-user-id':_0x207d59['id']},'children':_0x4fcb3b});}}
23
+ const _0x40b1=['avatar','div','ck-user__avatar','notificationView','ck-user','ck\x20ck-user__name','initials','content','name','ck-user__anonymous','push','url(\x27'];(function(_0x46ff40,_0x40b1da){const _0x2d5b4b=function(_0x22d65d){while(--_0x22d65d){_0x46ff40['push'](_0x46ff40['shift']());}};_0x2d5b4b(++_0x40b1da);}(_0x40b1,0x18e));const _0x2d5b=function(_0x46ff40,_0x40b1da){_0x46ff40=_0x46ff40-0x0;let _0x2d5b4b=_0x40b1[_0x46ff40];return _0x2d5b4b;};import{View as _0x27f4a1,IconView as _0x2f9958}from'ckeditor5/src/ui';import _0x4e7079 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x27f4a1{constructor(_0x5c8bbd,_0x4e33f6,_0x2e7bb7){super(_0x5c8bbd),this[_0x2d5b('0x6')]=_0x4e33f6[_0x2d5b('0x6')],this['notificationView']=null;const _0x4b66e7=['ck','ck-user__img'];if(_0x4e33f6['isAnonymous']&&_0x4b66e7[_0x2d5b('0x8')](_0x2d5b('0x7')),_0x4e33f6[_0x2d5b('0xa')]&&_0x4b66e7[_0x2d5b('0x8')](_0x2d5b('0x0')),_0x2e7bb7){const _0x35499c=new _0x2f9958();_0x35499c['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x35499c[_0x2d5b('0x5')]=_0x4e7079,this['notificationView']={'tag':_0x2d5b('0xb'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2e7bb7},'children':[_0x35499c]};}const _0x3e24cf=[{'tag':_0x2d5b('0xb'),'attributes':{'class':_0x4b66e7,'style':{'background-image':_0x4e33f6[_0x2d5b('0xa')]?_0x2d5b('0x9')+_0x4e33f6[_0x2d5b('0xa')]+'\x27)':''}}},{'tag':_0x2d5b('0xb'),'attributes':{'class':_0x4e33f6[_0x2d5b('0xa')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x2d5b('0x3')},'children':[{'text':_0x4e33f6[_0x2d5b('0x4')]}]}];this[_0x2d5b('0x1')]&&_0x3e24cf['push'](this['notificationView']),this['setTemplate']({'tag':_0x2d5b('0xb'),'attributes':{'class':['ck',_0x2d5b('0x2')],'data-user-id':_0x4e33f6['id']},'children':_0x3e24cf});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46ac=['context','ck-user__selection--','avatar','getBackgroundColorClass','getSelectionClass','_locale','info','defineMe','_getInitial','get','trial-license-key-reached-limit-revisions','color','_isAnonymous','licenseKeyInvalid','initials','users','length','getMarkerClass','getOperationAuthor','invalid-license-key','licenseKeyTrial','_myId','users.colorsCount','licenseKeyTrialLimit:operations','_id','config','includes','_lastColor','getUser','destroy','init','licenseKeyTrialLimit:time','requires','_licenseKeyCheckInterval','users-me-already-defined','pluginName','licenseKeyTrialLimit:revisions','users.anonymousUserId','useAnonymousUser','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.','licenseKey','ck-user__marker--','_getNextColor','licenseKeyValid','toUpperCase','has','_addAnonymousUser','trim','decorate','define','addUser','Anonymous','users-add-invalid-id','name'];(function(_0xcf50ce,_0x46acb3){const _0x57420e=function(_0x54c3b4){while(--_0x54c3b4){_0xcf50ce['push'](_0xcf50ce['shift']());}};_0x57420e(++_0x46acb3);}(_0x46ac,0x9a));const _0x5742=function(_0xcf50ce,_0x46acb3){_0xcf50ce=_0xcf50ce-0x0;let _0x57420e=_0x46ac[_0xcf50ce];return _0x57420e;};import{ContextPlugin as _0x26279e}from'ckeditor5/src/core';import{Collection as _0x21d78e,CKEditorError as _0x3a3191}from'ckeditor5/src/utils';import _0x11b2e4 from'./permissions';import{getTranslation as _0x446e59}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x26279e{static get[_0x5742('0x2b')](){return'Users';}static get[_0x5742('0x28')](){return[_0x11b2e4];}constructor(_0x12520b){super(_0x12520b),this[_0x5742('0x8')][_0x5742('0x21')]['define'](_0x5742('0x2d'),'anonymous-user'),this['context']['config'][_0x5742('0x3')]('users.colorsCount',0x8),this[_0x5742('0x17')]=new _0x21d78e(),this[_0x5742('0xd')]=_0x12520b['locale'],this[_0x5742('0x29')]=null,this[_0x5742('0x23')]=0x0,this[_0x5742('0x1d')]=null,this[_0x5742('0x2')](_0x5742('0x1a'));}[_0x5742('0x26')](){const _0x4839d6=this['context'];this[_0x5742('0x30')]=_0x4839d6[_0x5742('0x21')][_0x5742('0x11')]('licenseKey');const _0x389cbd=[_0x5742('0x1c'),_0x5742('0x15'),_0x5742('0x33'),_0x5742('0x1f'),_0x5742('0x27'),_0x5742('0x2c')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3139c0;for(const _0x19eb74 in _0x4839d6){const _0x443e65=_0x4839d6[_0x19eb74];if(_0x389cbd[_0x5742('0x22')](_0x443e65)){delete _0x4839d6[_0x19eb74],_0x3139c0=_0x443e65;break;}}if(_0x5742('0x15')===_0x3139c0)throw clearInterval(this[_0x5742('0x29')]),new _0x3a3191(_0x5742('0x1b'),null);if(_0x5742('0x1c')===_0x3139c0&&console[_0x5742('0xe')](_0x5742('0x2f')),_0x5742('0x1f')===_0x3139c0)throw clearInterval(this[_0x5742('0x29')]),new _0x3a3191('trial-license-key-reached-limit-changes',null);if(_0x5742('0x27')===_0x3139c0)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3a3191('trial-license-key-reached-limit-time',null);if(_0x5742('0x2c')===_0x3139c0)throw clearInterval(this[_0x5742('0x29')]),new _0x3a3191(_0x5742('0x12'),null);_0x5742('0x33')===_0x3139c0&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x5742('0x1d')]?null:this[_0x5742('0x24')](this['_myId']);}[_0x5742('0x4')]({id:_0x8b5db8,name:_0x1337b8,..._0x1f2c24}){if(!_0x8b5db8||'string'!=typeof _0x8b5db8)throw new _0x3a3191(_0x5742('0x6'));if(this['users'][_0x5742('0x35')](_0x8b5db8))throw new _0x3a3191('users-add-duplicated-id',null,{'id':_0x8b5db8});const _0x194b29={..._0x1f2c24,'id':_0x8b5db8,'name':a(this[_0x5742('0xd')],_0x1337b8),'color':this[_0x5742('0x32')]()};_0x194b29['name']=a(this['_locale'],_0x194b29[_0x5742('0x7')]);const _0x1b0c76=new User(_0x194b29);return this['users']['add'](_0x1b0c76),_0x1b0c76;}[_0x5742('0x24')](_0x21e8e0){return this[_0x5742('0x17')][_0x5742('0x11')](_0x21e8e0);}[_0x5742('0x2e')](){const _0xde3dbd=this[_0x5742('0x8')][_0x5742('0x21')][_0x5742('0x11')](_0x5742('0x2d'));this['_myId']||this[_0x5742('0xf')](_0xde3dbd);}['defineMe'](_0x58d105){if(this[_0x5742('0x1d')])throw new _0x3a3191(_0x5742('0x2a'),null);if(!this['getUser'](_0x58d105))throw new _0x3a3191('users-me-missing-user',null);this[_0x5742('0x1d')]=_0x58d105;}[_0x5742('0x1a')](){return this['me'];}[_0x5742('0x25')](){super[_0x5742('0x25')](),clearInterval(this[_0x5742('0x29')]);}[_0x5742('0x32')](){const _0x1fcf3f=this[_0x5742('0x8')][_0x5742('0x21')][_0x5742('0x11')](_0x5742('0x1e'));return this[_0x5742('0x23')]>=_0x1fcf3f&&(this[_0x5742('0x23')]=0x0),new u(this[_0x5742('0x23')]++);}[_0x5742('0x0')](){const _0x250718=this['context']['config'][_0x5742('0x11')](_0x5742('0x2d'));this[_0x5742('0x4')]({'id':_0x250718,'name':_0x446e59(this[_0x5742('0xd')],_0x5742('0x5'))})[_0x5742('0x14')]=!0x0;}}export class User{constructor(_0x1f3179){this['id']=_0x1f3179['id'],this['color']=_0x1f3179[_0x5742('0x13')],this[_0x5742('0x7')]=_0x1f3179['name'],this[_0x5742('0xa')]=_0x1f3179['avatar'],this[_0x5742('0x14')]=!0x1;}get['isAnonymous'](){return this[_0x5742('0x14')];}get[_0x5742('0x16')](){const _0xf02c33=this[_0x5742('0x7')]['split']('\x20');return 0x1===_0xf02c33[_0x5742('0x18')]?this[_0x5742('0x10')](_0xf02c33[0x0]):this[_0x5742('0x10')](_0xf02c33[0x0])+this[_0x5742('0x10')](_0xf02c33[_0xf02c33[_0x5742('0x18')]-0x1]);}[_0x5742('0x10')](_0x3fe87f){return _0x3fe87f['charAt'](0x0)[_0x5742('0x34')]();}}function a(_0x2fd08e,_0x1fa10a=''){return''==(_0x1fa10a=_0x1fa10a[_0x5742('0x1')]())?_0x446e59(_0x2fd08e,'Anonymous'):_0x1fa10a;}class u{constructor(_0x3d37f2){this[_0x5742('0x20')]=_0x3d37f2;}[_0x5742('0xb')](){return'ck-user__bg-color--'+this[_0x5742('0x20')];}[_0x5742('0xc')](){return _0x5742('0x9')+this['_id'];}[_0x5742('0x19')](){return _0x5742('0x31')+this[_0x5742('0x20')];}}
23
+ const _0xa8cf=['pluginName','trial-license-key-reached-limit-changes','licenseKey','defineMe','users-me-missing-user','licenseKeyTrialLimit:revisions','destroy','users','isAnonymous','useAnonymousUser','Users','add','trial-license-key-reached-limit-time','licenseKeyInvalid','invalid-license-key','getSelectionClass','_id','_lastColor','requires','charAt','decorate','_isAnonymous','users-add-invalid-id','has','addUser','color','trial-license-key-reached-limit-revisions','context','init','length','string','licenseKeyValid','licenseKeyTrialLimit:operations','toUpperCase','_locale','users.anonymousUserId','info','_getInitial','_myId','users.colorsCount','licenseKeyTrialLimit:time','_addAnonymousUser','_licenseKeyCheckInterval','initials','getOperationAuthor','name','trim','define','getUser','getMarkerClass','split','licenseKeyTrial','locale','users-add-duplicated-id','config','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.','anonymous-user','ck-user__selection--','Anonymous','get','_getNextColor'];(function(_0x4a91d2,_0xa8cf05){const _0x503b3a=function(_0x2717cf){while(--_0x2717cf){_0x4a91d2['push'](_0x4a91d2['shift']());}};_0x503b3a(++_0xa8cf05);}(_0xa8cf,0x19d));const _0x503b=function(_0x4a91d2,_0xa8cf05){_0x4a91d2=_0x4a91d2-0x0;let _0x503b3a=_0xa8cf[_0x4a91d2];return _0x503b3a;};import{ContextPlugin as _0x445bc5}from'ckeditor5/src/core';import{Collection as _0xc7f694,CKEditorError as _0x54c995}from'ckeditor5/src/utils';import _0x36ced9 from'./permissions';import{getTranslation as _0x1290f9}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x445bc5{static get[_0x503b('0xe')](){return _0x503b('0x18');}static get[_0x503b('0x20')](){return[_0x36ced9];}constructor(_0x31e536){super(_0x31e536),this[_0x503b('0x29')][_0x503b('0x7')]['define'](_0x503b('0x31'),_0x503b('0x9')),this[_0x503b('0x29')][_0x503b('0x7')][_0x503b('0x0')]('users.colorsCount',0x8),this[_0x503b('0x15')]=new _0xc7f694(),this['_locale']=_0x31e536[_0x503b('0x5')],this[_0x503b('0x38')]=null,this[_0x503b('0x1f')]=0x0,this[_0x503b('0x34')]=null,this[_0x503b('0x22')](_0x503b('0x3a'));}[_0x503b('0x2a')](){const _0x3c25ce=this['context'];this[_0x503b('0x10')]=_0x3c25ce['config']['get'](_0x503b('0x10'));const _0x5ca2cc=[_0x503b('0x4'),_0x503b('0x1b'),_0x503b('0x2d'),_0x503b('0x2e'),'licenseKeyTrialLimit:time',_0x503b('0x13')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49076f;for(const _0x33fea1 in _0x3c25ce){const _0x99a56=_0x3c25ce[_0x33fea1];if(_0x5ca2cc['includes'](_0x99a56)){delete _0x3c25ce[_0x33fea1],_0x49076f=_0x99a56;break;}}if('licenseKeyInvalid'===_0x49076f)throw clearInterval(this[_0x503b('0x38')]),new _0x54c995(_0x503b('0x1c'),null);if(_0x503b('0x4')===_0x49076f&&console[_0x503b('0x32')](_0x503b('0x8')),_0x503b('0x2e')===_0x49076f)throw clearInterval(this[_0x503b('0x38')]),new _0x54c995(_0x503b('0xf'),null);if(_0x503b('0x36')===_0x49076f)throw clearInterval(this[_0x503b('0x38')]),new _0x54c995(_0x503b('0x1a'),null);if(_0x503b('0x13')===_0x49076f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x54c995(_0x503b('0x28'),null);_0x503b('0x2d')===_0x49076f&&clearInterval(this[_0x503b('0x38')]);},0x3e8),this[_0x503b('0x37')]();}get['me'](){return null==this['_myId']?null:this['getUser'](this[_0x503b('0x34')]);}[_0x503b('0x26')]({id:_0x3db803,name:_0x34ace8,..._0x4999f8}){if(!_0x3db803||_0x503b('0x2c')!=typeof _0x3db803)throw new _0x54c995(_0x503b('0x24'));if(this[_0x503b('0x15')][_0x503b('0x25')](_0x3db803))throw new _0x54c995(_0x503b('0x6'),null,{'id':_0x3db803});const _0x158e5b={..._0x4999f8,'id':_0x3db803,'name':a(this[_0x503b('0x30')],_0x34ace8),'color':this['_getNextColor']()};_0x158e5b[_0x503b('0x3b')]=a(this[_0x503b('0x30')],_0x158e5b[_0x503b('0x3b')]);const _0x327a5c=new User(_0x158e5b);return this[_0x503b('0x15')][_0x503b('0x19')](_0x327a5c),_0x327a5c;}[_0x503b('0x1')](_0x2dbefb){return this[_0x503b('0x15')]['get'](_0x2dbefb);}[_0x503b('0x17')](){const _0xd27f0a=this[_0x503b('0x29')][_0x503b('0x7')][_0x503b('0xc')](_0x503b('0x31'));this['_myId']||this[_0x503b('0x11')](_0xd27f0a);}[_0x503b('0x11')](_0x1394b0){if(this[_0x503b('0x34')])throw new _0x54c995('users-me-already-defined',null);if(!this['getUser'](_0x1394b0))throw new _0x54c995(_0x503b('0x12'),null);this[_0x503b('0x34')]=_0x1394b0;}[_0x503b('0x3a')](){return this['me'];}[_0x503b('0x14')](){super[_0x503b('0x14')](),clearInterval(this[_0x503b('0x38')]);}[_0x503b('0xd')](){const _0x2f9a92=this[_0x503b('0x29')]['config'][_0x503b('0xc')](_0x503b('0x35'));return this[_0x503b('0x1f')]>=_0x2f9a92&&(this[_0x503b('0x1f')]=0x0),new u(this[_0x503b('0x1f')]++);}[_0x503b('0x37')](){const _0x458146=this['context'][_0x503b('0x7')][_0x503b('0xc')](_0x503b('0x31'));this[_0x503b('0x26')]({'id':_0x458146,'name':_0x1290f9(this[_0x503b('0x30')],_0x503b('0xb'))})[_0x503b('0x23')]=!0x0;}}export class User{constructor(_0x96e5a1){this['id']=_0x96e5a1['id'],this[_0x503b('0x27')]=_0x96e5a1['color'],this[_0x503b('0x3b')]=_0x96e5a1[_0x503b('0x3b')],this['avatar']=_0x96e5a1['avatar'],this[_0x503b('0x23')]=!0x1;}get[_0x503b('0x16')](){return this[_0x503b('0x23')];}get[_0x503b('0x39')](){const _0x280be2=this[_0x503b('0x3b')][_0x503b('0x3')]('\x20');return 0x1===_0x280be2[_0x503b('0x2b')]?this['_getInitial'](_0x280be2[0x0]):this[_0x503b('0x33')](_0x280be2[0x0])+this[_0x503b('0x33')](_0x280be2[_0x280be2[_0x503b('0x2b')]-0x1]);}['_getInitial'](_0x46f850){return _0x46f850[_0x503b('0x21')](0x0)[_0x503b('0x2f')]();}}function a(_0x40c236,_0x223ba9=''){return''==(_0x223ba9=_0x223ba9[_0x503b('0x3c')]())?_0x1290f9(_0x40c236,_0x503b('0xb')):_0x223ba9;}class u{constructor(_0x388824){this['_id']=_0x388824;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this[_0x503b('0x1e')];}[_0x503b('0x1d')](){return _0x503b('0xa')+this[_0x503b('0x1e')];}[_0x503b('0x2')](){return'ck-user__marker--'+this[_0x503b('0x1e')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x37198a,_0x5bd244){const t=_0x37198a['t'];switch(_0x5bd244){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(_0x4e0e63,_0x13fd77){const t=_0x4e0e63['t'];switch(_0x13fd77){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 _0x55f5=['destroy','isConfirm','fire','_removeConfirm','set','once','element','render','deregisterChild','message','cancelConfirm','cancel','showConfirm','remove','submit','focus','registerChild','appendChild','confirmView'];(function(_0x589027,_0x55f5e6){var _0x2ad30c=function(_0x468776){while(--_0x468776){_0x589027['push'](_0x589027['shift']());}};_0x2ad30c(++_0x55f5e6);}(_0x55f5,0x1d8));var _0x2ad3=function(_0x589027,_0x55f5e6){_0x589027=_0x589027-0x0;var _0x2ad30c=_0x55f5[_0x589027];return _0x2ad30c;};import _0x5c6806 from'./confirmview';export default function m(_0x45f99d){return class extends _0x45f99d{[_0x2ad3('0xf')](_0x5c25a8,_0x21116a){return this['confirmView']=new _0x5c6806(this['locale']),this[_0x2ad3('0x2')][_0x2ad3('0xa')](),this['confirmView'][_0x2ad3('0xc')]=_0x5c25a8,this[_0x2ad3('0x2')][_0x2ad3('0x8')](_0x2ad3('0xe'),()=>{this[_0x2ad3('0x6')]();}),this[_0x2ad3('0x2')][_0x2ad3('0x8')](_0x2ad3('0x11'),()=>{this[_0x2ad3('0x6')]();}),_0x21116a[_0x2ad3('0x1')](this[_0x2ad3('0x2')][_0x2ad3('0x9')]),this[_0x2ad3('0x0')](this[_0x2ad3('0x2')]),this['element'][_0x2ad3('0x12')](),this[_0x2ad3('0x7')](_0x2ad3('0x4'),!0x0),new Promise(_0x235363=>this[_0x2ad3('0x2')]['on'](_0x2ad3('0x11'),_0x235363));}[_0x2ad3('0xd')](){this['isConfirm']&&this['confirmView'][_0x2ad3('0x5')](_0x2ad3('0xe'));}[_0x2ad3('0x6')](){this[_0x2ad3('0x9')]&&this[_0x2ad3('0x2')]&&this[_0x2ad3('0x2')][_0x2ad3('0x9')]&&(this['element'][_0x2ad3('0x12')](),this[_0x2ad3('0x2')][_0x2ad3('0x9')][_0x2ad3('0x10')](),this[_0x2ad3('0xb')](this[_0x2ad3('0x2')]),this['isConfirm']=!0x1,this['confirmView'][_0x2ad3('0x3')](),this[_0x2ad3('0x2')]=void 0x0);}};}
23
+ var _0x2301=['destroy','set','once','appendChild','fire','isConfirm','confirmView','cancel','element','deregisterChild','registerChild','focus','_removeConfirm','locale','message','remove'];(function(_0x45917a,_0x230104){var _0x1f6d59=function(_0x459aaf){while(--_0x459aaf){_0x45917a['push'](_0x45917a['shift']());}};_0x1f6d59(++_0x230104);}(_0x2301,0x188));var _0x1f6d=function(_0x45917a,_0x230104){_0x45917a=_0x45917a-0x0;var _0x1f6d59=_0x2301[_0x45917a];return _0x1f6d59;};import _0x347bb0 from'./confirmview';export default function m(_0x4fdca6){return class extends _0x4fdca6{['showConfirm'](_0x10d037,_0x5d6e58){return this['confirmView']=new _0x347bb0(this[_0x1f6d('0x5')]),this['confirmView']['render'](),this['confirmView'][_0x1f6d('0x6')]=_0x10d037,this[_0x1f6d('0xe')][_0x1f6d('0xa')]('cancel',()=>{this[_0x1f6d('0x4')]();}),this['confirmView'][_0x1f6d('0xa')]('submit',()=>{this[_0x1f6d('0x4')]();}),_0x5d6e58[_0x1f6d('0xb')](this[_0x1f6d('0xe')][_0x1f6d('0x0')]),this[_0x1f6d('0x2')](this[_0x1f6d('0xe')]),this[_0x1f6d('0x0')]['focus'](),this[_0x1f6d('0x9')]('isConfirm',!0x0),new Promise(_0x507d02=>this[_0x1f6d('0xe')]['on']('submit',_0x507d02));}['cancelConfirm'](){this[_0x1f6d('0xd')]&&this[_0x1f6d('0xe')][_0x1f6d('0xc')](_0x1f6d('0xf'));}[_0x1f6d('0x4')](){this['element']&&this['confirmView']&&this['confirmView'][_0x1f6d('0x0')]&&(this[_0x1f6d('0x0')][_0x1f6d('0x3')](),this['confirmView'][_0x1f6d('0x0')][_0x1f6d('0x7')](),this[_0x1f6d('0x1')](this[_0x1f6d('0xe')]),this[_0x1f6d('0xd')]=!0x1,this[_0x1f6d('0xe')][_0x1f6d('0x8')](),this['confirmView']=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d33=['setTemplate','execute','div','ck-thread__remove-confirm','extendTemplate','icon','ck-thread__remove-confirm-actions','cancelView','fire','_createButtonView','submit','Are\x20you\x20sure?','ck-thread__remove-confirm-inner','set','message','cancel','ck-thread__remove-confirm-','submitView','bindTemplate'];(function(_0x26ebce,_0x2d332b){const _0x9b2338=function(_0x4f3a34){while(--_0x4f3a34){_0x26ebce['push'](_0x26ebce['shift']());}};_0x9b2338(++_0x2d332b);}(_0x2d33,0x107));const _0x9b23=function(_0x26ebce,_0x2d332b){_0x26ebce=_0x26ebce-0x0;let _0x9b2338=_0x2d33[_0x26ebce];return _0x9b2338;};import{View as _0x1c9020,ButtonView as _0x51acd5}from'ckeditor5/src/ui';import{icons as _0x24778a}from'ckeditor5/src/core';import{getTranslation as _0x42a845}from'./common-translations';export default class h extends _0x1c9020{constructor(_0x4c899b){super(_0x4c899b);const _0x391427=this[_0x9b23('0x2')];this['submitView']=this[_0x9b23('0xc')](_0x4c899b,_0x42a845(_0x4c899b,'Yes'),_0x24778a['check'],_0x9b23('0xd')),this[_0x9b23('0xa')]=this[_0x9b23('0xc')](_0x4c899b,_0x42a845(_0x4c899b,'No'),_0x24778a[_0x9b23('0x12')],'cancel'),this[_0x9b23('0x10')]('message',_0x42a845(_0x4c899b,_0x9b23('0xe'))),this[_0x9b23('0x3')]({'tag':'div','attributes':{'class':[_0x9b23('0x6')]},'children':[{'tag':_0x9b23('0x5'),'attributes':{'class':_0x9b23('0xf')},'children':[{'tag':'p','children':[{'text':_0x391427['to'](_0x9b23('0x11'))}]},{'tag':_0x9b23('0x5'),'attributes':{'class':_0x9b23('0x9')},'children':[this[_0x9b23('0x1')],this[_0x9b23('0xa')]]}]}]});}[_0x9b23('0xc')](_0x1c2337,_0x841247,_0x2b797a,_0x210e01){const _0x186d6b=new _0x51acd5(_0x1c2337);return _0x186d6b['label']=_0x841247,_0x186d6b[_0x9b23('0x8')]=_0x2b797a,_0x186d6b[_0x9b23('0x7')]({'attributes':{'class':_0x9b23('0x0')+_0x210e01}}),_0x186d6b['on'](_0x9b23('0x4'),()=>this[_0x9b23('0xb')](_0x210e01)),_0x186d6b;}}
23
+ const _0x12cb=['submit','fire','cancel','div','Yes','cancelView','message','extendTemplate','ck-thread__remove-confirm','check','ck-thread__remove-confirm-inner','_createButtonView','setTemplate','ck-thread__remove-confirm-actions','label','ck-thread__remove-confirm-','submitView','set'];(function(_0xa3db06,_0x12cb2b){const _0xaae452=function(_0x431078){while(--_0x431078){_0xa3db06['push'](_0xa3db06['shift']());}};_0xaae452(++_0x12cb2b);}(_0x12cb,0x8f));const _0xaae4=function(_0xa3db06,_0x12cb2b){_0xa3db06=_0xa3db06-0x0;let _0xaae452=_0x12cb[_0xa3db06];return _0xaae452;};import{View as _0xb364ee,ButtonView as _0x5de1d5}from'ckeditor5/src/ui';import{icons as _0x186b00}from'ckeditor5/src/core';import{getTranslation as _0x4ceb03}from'./common-translations';export default class h extends _0xb364ee{constructor(_0xd5519e){super(_0xd5519e);const _0x4c2ea9=this['bindTemplate'];this[_0xaae4('0x11')]=this[_0xaae4('0xc')](_0xd5519e,_0x4ceb03(_0xd5519e,_0xaae4('0x5')),_0x186b00[_0xaae4('0xa')],_0xaae4('0x1')),this[_0xaae4('0x6')]=this[_0xaae4('0xc')](_0xd5519e,_0x4ceb03(_0xd5519e,'No'),_0x186b00[_0xaae4('0x3')],'cancel'),this[_0xaae4('0x0')](_0xaae4('0x7'),_0x4ceb03(_0xd5519e,'Are\x20you\x20sure?')),this[_0xaae4('0xd')]({'tag':_0xaae4('0x4'),'attributes':{'class':[_0xaae4('0x9')]},'children':[{'tag':_0xaae4('0x4'),'attributes':{'class':_0xaae4('0xb')},'children':[{'tag':'p','children':[{'text':_0x4c2ea9['to'](_0xaae4('0x7'))}]},{'tag':_0xaae4('0x4'),'attributes':{'class':_0xaae4('0xe')},'children':[this[_0xaae4('0x11')],this[_0xaae4('0x6')]]}]}]});}[_0xaae4('0xc')](_0x31ea26,_0x24d80c,_0x85f633,_0x5c80c2){const _0x1f901d=new _0x5de1d5(_0x31ea26);return _0x1f901d[_0xaae4('0xf')]=_0x24d80c,_0x1f901d['icon']=_0x85f633,_0x1f901d[_0xaae4('0x8')]({'attributes':{'class':_0xaae4('0x10')+_0x5c80c2}}),_0x1f901d['on']('execute',()=>this[_0xaae4('0x2')](_0x5c80c2)),_0x1f901d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24a2=['invalid-date-time-format','string','dateTimeFormat','function','\x27Yesterday\x27\x20hh:mma'];(function(_0x313d50,_0x24a26c){const _0x32e21d=function(_0x416752){while(--_0x416752){_0x313d50['push'](_0x313d50['shift']());}};_0x32e21d(++_0x24a26c);}(_0x24a2,0x133));const _0x32e2=function(_0x313d50,_0x24a26c){_0x313d50=_0x313d50-0x0;let _0x32e21d=_0x24a2[_0x313d50];return _0x32e21d;};import _0x52335c from'date-fns/format';import _0x561712 from'date-fns/parseISO';import _0x2ff1d3 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x1eb401}from'ckeditor5/src/utils';export default function E(_0x5532d9={}){if(void 0x0!==_0x5532d9['dateTimeFormat']&&_0x32e2('0x1')!=typeof _0x5532d9[_0x32e2('0x0')])throw new _0x1eb401(_0x32e2('0x3'));return _0x294e24=>{const _0x4969b2=_0x32e2('0x4')==typeof _0x294e24?_0x561712(_0x294e24):_0x294e24,_0x181131=new Date(),_0x191d1c=_0x2ff1d3(_0x181131,_0x4969b2);return _0x5532d9[_0x32e2('0x0')]?_0x5532d9[_0x32e2('0x0')](_0x4969b2):_0x52335c(_0x4969b2,0x0===_0x191d1c?'\x27Today\x27\x20hh:mma':0x1===_0x191d1c?_0x32e2('0x2'):_0x191d1c<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':'MM-dd-yyyy\x20hh:mma');};}
23
+ const _0x36a5=['invalid-date-time-format','MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','dateTimeFormat','\x27Today\x27\x20hh:mma','string'];(function(_0x418c04,_0x36a5c9){const _0x3acec4=function(_0x446aad){while(--_0x446aad){_0x418c04['push'](_0x418c04['shift']());}};_0x3acec4(++_0x36a5c9);}(_0x36a5,0x177));const _0x3ace=function(_0x418c04,_0x36a5c9){_0x418c04=_0x418c04-0x0;let _0x3acec4=_0x36a5[_0x418c04];return _0x3acec4;};import _0x4752db from'date-fns/format';import _0x547821 from'date-fns/parseISO';import _0x5328c8 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x2219b9}from'ckeditor5/src/utils';export default function E(_0x58172e={}){if(void 0x0!==_0x58172e['dateTimeFormat']&&'function'!=typeof _0x58172e['dateTimeFormat'])throw new _0x2219b9(_0x3ace('0x3'));return _0x572bf9=>{const _0x3ebc46=_0x3ace('0x2')==typeof _0x572bf9?_0x547821(_0x572bf9):_0x572bf9,_0xc7ac06=new Date(),_0x58f036=_0x5328c8(_0xc7ac06,_0x3ebc46);return _0x58172e[_0x3ace('0x0')]?_0x58172e['dateTimeFormat'](_0x3ebc46):_0x4752db(_0x3ebc46,0x0===_0x58f036?_0x3ace('0x1'):0x1===_0x58f036?_0x3ace('0x5'):_0x58f036<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x3ace('0x4'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe774=['map','from','getClientRects','values','view','markerNameToElements','name','sort','mapper','mapViewToDom','length','domConverter','domElement'];(function(_0x40d39e,_0xe7742d){const _0x960188=function(_0x238880){while(--_0x238880){_0x40d39e['push'](_0x40d39e['shift']());}};_0x960188(++_0xe7742d);}(_0xe774,0x174));const _0x9601=function(_0x40d39e,_0xe7742d){_0x40d39e=_0x40d39e-0x0;let _0x960188=_0xe774[_0x40d39e];return _0x960188;};import{first as _0x4afdba}from'ckeditor5/src/utils';export default function k(_0x316fc,_0x1d2ebe){const _0x2cd7ed=_0x316fc[_0x9601('0x0')][_0x9601('0xa')](_0x1d2ebe[_0x9601('0xb')]);if(!_0x2cd7ed)return null;const _0x59f496=_0x4afdba(_0x2cd7ed[_0x9601('0x8')]());return _0x316fc[_0x9601('0x9')][_0x9601('0x3')][_0x9601('0x1')](_0x59f496)||null;}export function getAllMarkersDomElementsSorted(_0x32c4e9,_0x1d8c00){if(0x0===_0x1d8c00[_0x9601('0x2')])return null;const _0x512447=[],_0x5c4f0a=_0x32c4e9[_0x9601('0x9')][_0x9601('0x3')];for(const _0x4fe925 of _0x1d8c00){const _0x78b8c1=_0x32c4e9[_0x9601('0x0')][_0x9601('0xa')](_0x4fe925[_0x9601('0xb')]);if(!_0x78b8c1)continue;const _0x442838=Array[_0x9601('0x6')](_0x78b8c1)[_0x9601('0x5')](_0x10900e=>_0x5c4f0a['mapViewToDom'](_0x10900e))['filter'](_0x251485=>!!_0x251485);_0x512447['push'](..._0x442838);}if(0x0===_0x512447[_0x9601('0x2')])return null;const _0x205e3e=[];for(const _0x471611 of _0x512447){const _0x3a3f1b=_0x471611[_0x9601('0x7')]()['item'](0x0);_0x3a3f1b&&_0x205e3e['push']({'x':_0x3a3f1b['x'],'y':_0x3a3f1b['y'],'domElement':_0x471611});}return 0x0===_0x205e3e[_0x9601('0x2')]?null:(_0x205e3e[_0x9601('0xc')]((_0x4b6391,_0x52165e)=>_0x4b6391['y']-_0x52165e['y']||_0x4b6391['x']-_0x52165e['x']),_0x205e3e[_0x9601('0x5')](_0x3757ee=>_0x3757ee[_0x9601('0x4')]));}
23
+ const _0x138f=['getClientRects','from','domElement','length','view','item','sort','values','markerNameToElements','filter','mapViewToDom','push','name','mapper','map'];(function(_0x14e743,_0x138fb6){const _0x173ee7=function(_0x4eb2ff){while(--_0x4eb2ff){_0x14e743['push'](_0x14e743['shift']());}};_0x173ee7(++_0x138fb6);}(_0x138f,0xbb));const _0x173e=function(_0x14e743,_0x138fb6){_0x14e743=_0x14e743-0x0;let _0x173ee7=_0x138f[_0x14e743];return _0x173ee7;};import{first as _0x59ddee}from'ckeditor5/src/utils';export default function k(_0x142e10,_0x1df346){const _0x3a4d86=_0x142e10['mapper']['markerNameToElements'](_0x1df346[_0x173e('0x5')]);if(!_0x3a4d86)return null;const _0x61e688=_0x59ddee(_0x3a4d86[_0x173e('0x0')]());return _0x142e10['view']['domConverter'][_0x173e('0x3')](_0x61e688)||null;}export function getAllMarkersDomElementsSorted(_0x1c5fa4,_0x326d33){if(0x0===_0x326d33['length'])return null;const _0x37e863=[],_0x1e416f=_0x1c5fa4[_0x173e('0xc')]['domConverter'];for(const _0x42e5a2 of _0x326d33){const _0x3f0452=_0x1c5fa4[_0x173e('0x6')][_0x173e('0x1')](_0x42e5a2[_0x173e('0x5')]);if(!_0x3f0452)continue;const _0x2c1e67=Array[_0x173e('0x9')](_0x3f0452)[_0x173e('0x7')](_0x315993=>_0x1e416f[_0x173e('0x3')](_0x315993))[_0x173e('0x2')](_0x578994=>!!_0x578994);_0x37e863['push'](..._0x2c1e67);}if(0x0===_0x37e863[_0x173e('0xb')])return null;const _0x4abc88=[];for(const _0x984b7b of _0x37e863){const _0x53ac33=_0x984b7b[_0x173e('0x8')]()[_0x173e('0xd')](0x0);_0x53ac33&&_0x4abc88[_0x173e('0x4')]({'x':_0x53ac33['x'],'y':_0x53ac33['y'],'domElement':_0x984b7b});}return 0x0===_0x4abc88[_0x173e('0xb')]?null:(_0x4abc88[_0x173e('0xe')]((_0x92d85c,_0x58ff00)=>_0x92d85c['y']-_0x58ff00['y']||_0x92d85c['x']-_0x58ff00['x']),_0x4abc88[_0x173e('0x7')](_0x130e82=>_0x130e82[_0x173e('0xa')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcb38=['sign','isArray','toString','object','charCodeAt','boolean','keys'];(function(_0x59a1c6,_0xcb384f){const _0x526ff3=function(_0x219934){while(--_0x219934){_0x59a1c6['push'](_0x59a1c6['shift']());}};_0x526ff3(++_0xcb384f);}(_0xcb38,0x1dc));const _0x526f=function(_0x59a1c6,_0xcb384f){_0x59a1c6=_0x59a1c6-0x0;let _0x526ff3=_0xcb38[_0x59a1c6];return _0x526ff3;};export default function b(_0x52b7e2){let _0x2a185c=0x0,_0x112655=0x0;for(const _0x2ebba5 of g(_0x52b7e2))_0x2a185c=(_0x2a185c<<0x5)-_0x2a185c+_0x2ebba5,_0x2a185c&=_0x2a185c,[_0x2a185c,_0x112655]=[_0x112655,_0x2a185c];return O(_0x2a185c)+O(_0x112655);}function*j(_0x2452f0){_0x2452f0?_0x526f('0x5')==typeof _0x2452f0?yield 0x1:Array[_0x526f('0x1')](_0x2452f0)?yield*function*(_0x5887ab){for(const _0x12dc8a of _0x5887ab)yield*j(_0x12dc8a);}(_0x2452f0):_0x526f('0x3')==typeof _0x2452f0?yield*g(_0x2452f0):'string'==typeof _0x2452f0?yield*A(_0x2452f0):'number'==typeof _0x2452f0&&(yield _0x2452f0):yield 0x0;}function*g(_0x17f4b1){if(yield M('{'),_0x17f4b1){const _0x441999=Object[_0x526f('0x6')](_0x17f4b1)['sort']();for(const _0x2bac11 of _0x441999){yield*A(_0x2bac11),yield M(':');const _0x49cc72=_0x17f4b1[_0x2bac11];yield*j(_0x49cc72);}}yield M('}');}function*A(_0xf896d0){yield M('\x22');for(const _0x33bcbb of _0xf896d0)yield M(_0x33bcbb);yield M('\x22');}function M(_0x468609){return _0x468609[_0x526f('0x4')](0x0);}function O(_0x51c5f4){return(_0x51c5f4*=Math[_0x526f('0x0')](_0x51c5f4))[_0x526f('0x2')](0x24);}
23
+ const _0x3ccb=['object','sort','string','sign','charCodeAt','isArray','number','toString'];(function(_0x217bd0,_0x3ccb71){const _0x468edf=function(_0x3c0789){while(--_0x3c0789){_0x217bd0['push'](_0x217bd0['shift']());}};_0x468edf(++_0x3ccb71);}(_0x3ccb,0xf0));const _0x468e=function(_0x217bd0,_0x3ccb71){_0x217bd0=_0x217bd0-0x0;let _0x468edf=_0x3ccb[_0x217bd0];return _0x468edf;};export default function b(_0x2001c2){let _0x17920e=0x0,_0x11f236=0x0;for(const _0x88241 of g(_0x2001c2))_0x17920e=(_0x17920e<<0x5)-_0x17920e+_0x88241,_0x17920e&=_0x17920e,[_0x17920e,_0x11f236]=[_0x11f236,_0x17920e];return O(_0x17920e)+O(_0x11f236);}function*j(_0x1adf5d){_0x1adf5d?'boolean'==typeof _0x1adf5d?yield 0x1:Array[_0x468e('0x5')](_0x1adf5d)?yield*function*(_0x11d605){for(const _0x42e55b of _0x11d605)yield*j(_0x42e55b);}(_0x1adf5d):_0x468e('0x0')==typeof _0x1adf5d?yield*g(_0x1adf5d):_0x468e('0x2')==typeof _0x1adf5d?yield*A(_0x1adf5d):_0x468e('0x6')==typeof _0x1adf5d&&(yield _0x1adf5d):yield 0x0;}function*g(_0x290890){if(yield M('{'),_0x290890){const _0x5ba920=Object['keys'](_0x290890)[_0x468e('0x1')]();for(const _0x4b4ac1 of _0x5ba920){yield*A(_0x4b4ac1),yield M(':');const _0x24f8a2=_0x290890[_0x4b4ac1];yield*j(_0x24f8a2);}}yield M('}');}function*A(_0x26be73){yield M('\x22');for(const _0xf91e03 of _0x26be73)yield M(_0xf91e03);yield M('\x22');}function M(_0x357c6b){return _0x357c6b[_0x468e('0x4')](0x0);}function O(_0x220302){return(_0x220302*=Math[_0x468e('0x3')](_0x220302))[_0x468e('0x7')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58db=['Autosave','extraPlugins','DocumentOutline','WProofreader','WordCount','plugins','removePlugins','set','_context','filter','includes','constructor','builtinPlugins','RevisionTracker','toolbar','every','from','requires','concat','string','get','map','pluginName','context','config','WebSocketGateway','has','find'];(function(_0x2cef6d,_0x58dbd7){const _0xcc5e91=function(_0x5b1656){while(--_0x5b1656){_0x2cef6d['push'](_0x2cef6d['shift']());}};_0xcc5e91(++_0x58dbd7);}(_0x58db,0x120));const _0xcc5e=function(_0x2cef6d,_0x58dbd7){_0x2cef6d=_0x2cef6d-0x0;let _0xcc5e91=_0x58db[_0x2cef6d];return _0xcc5e91;};const w=['initialData',_0xcc5e('0xf'),_0xcc5e('0x6'),'rootsAttributes'],W=[_0xcc5e('0x11'),_0xcc5e('0x5'),_0xcc5e('0x14'),_0xcc5e('0x18'),_0xcc5e('0x16'),_0xcc5e('0x17')];function v(_0x2f39f0,_0x5f52d7,_0x31a6c8,_0x126614=[]){const _0x32cead=_0xcc5e('0xb')==typeof _0x2f39f0?_0x31a6c8[_0xcc5e('0xc')](_0x2f39f0)[_0xcc5e('0x3')]:_0x2f39f0,_0x58ee8e=_0x32cead['pluginName']||_0x32cead['name'];if(_0x5f52d7[_0xcc5e('0x12')](_0x58ee8e))return _0x5f52d7[_0xcc5e('0xc')](_0x58ee8e);if(_0x5f52d7[_0xcc5e('0x1b')](_0x58ee8e,!0x0),_0x58ee8e&&W['concat'](_0x126614)['includes'](_0x58ee8e))return _0x5f52d7[_0xcc5e('0x1b')](_0x58ee8e,!0x1),!0x1;if(!_0x32cead[_0xcc5e('0x9')])return _0x5f52d7[_0xcc5e('0x1b')](_0x58ee8e,!0x0),!0x0;const _0x468fe9=_0x32cead['requires'][_0xcc5e('0x7')](_0x4b26c4=>v(_0x4b26c4,_0x5f52d7,_0x31a6c8,_0x126614));return _0x5f52d7[_0xcc5e('0x1b')](_0x58ee8e,_0x468fe9),_0x468fe9;}export default function D(_0x42ac0d,_0x495728){const _0x80dd4e={};for(const _0x57b06c of _0x42ac0d[_0xcc5e('0x10')]['names']())w[_0xcc5e('0x2')](_0x57b06c)||(_0x80dd4e[_0x57b06c]=_0x42ac0d[_0xcc5e('0x10')][_0xcc5e('0xc')](_0x57b06c));const _0x13a092=_0x80dd4e[_0xcc5e('0x19')]||[],_0x6a7556=_0x42ac0d['constructor'][_0xcc5e('0x4')]||[],_0x18f1ac=_0x13a092['length']?_0x13a092:_0x6a7556,_0x196c3f=_0x80dd4e[_0xcc5e('0x15')]||[];delete _0x80dd4e[_0xcc5e('0x15')];const _0xbf6b69=_0x80dd4e[_0xcc5e('0x1a')]||[];delete _0x80dd4e[_0xcc5e('0x1a')];const _0x25b3cf=_0x42ac0d[_0xcc5e('0x0')]['config'][_0xcc5e('0xc')](_0xcc5e('0x19'))||[],_0x25cabe=_0x18f1ac[_0xcc5e('0xa')](_0x196c3f)[_0xcc5e('0xa')](_0x25b3cf)[_0xcc5e('0xd')](_0x2c5dc6=>_0xcc5e('0xb')==typeof _0x2c5dc6?_0x6a7556[_0xcc5e('0x13')](_0x35c600=>_0x35c600[_0xcc5e('0xe')]==_0x2c5dc6):_0x2c5dc6)[_0xcc5e('0x1')](_0x37433c=>!_0xbf6b69[_0xcc5e('0x2')](_0x37433c)),_0xfb75fe=Array[_0xcc5e('0x8')](new Set(_0x25cabe)),_0x515b65=new Map();return _0x80dd4e[_0xcc5e('0x19')]=_0xfb75fe[_0xcc5e('0x1')](_0x512a25=>v(_0x512a25,_0x515b65,_0x42ac0d[_0xcc5e('0x19')],_0x495728)),_0x80dd4e;}
23
+ const _0x2e16=['config','includes','has','WordCount','toolbar','length','extraPlugins','Autosave','plugins','pluginName','_context','removePlugins','initialData','requires','filter','get','builtinPlugins','from','WebSocketGateway','name','every','rootsAttributes','WProofreader','set','names','constructor','concat','string'];(function(_0xc56be7,_0x2e1601){const _0x2fc2b8=function(_0x4096d3){while(--_0x4096d3){_0xc56be7['push'](_0xc56be7['shift']());}};_0x2fc2b8(++_0x2e1601);}(_0x2e16,0x97));const _0x2fc2=function(_0xc56be7,_0x2e1601){_0xc56be7=_0xc56be7-0x0;let _0x2fc2b8=_0x2e16[_0xc56be7];return _0x2fc2b8;};const w=[_0x2fc2('0x1'),'context',_0x2fc2('0x15'),_0x2fc2('0xa')],W=[_0x2fc2('0x7'),'RevisionTracker',_0x2fc2('0x18'),_0x2fc2('0x14'),'DocumentOutline',_0x2fc2('0xb')];function v(_0x163736,_0x2cbe5b,_0x3414d5,_0x199060=[]){const _0x43b217=_0x2fc2('0x10')==typeof _0x163736?_0x3414d5[_0x2fc2('0x4')](_0x163736)[_0x2fc2('0xe')]:_0x163736,_0x52fc1b=_0x43b217[_0x2fc2('0x1a')]||_0x43b217[_0x2fc2('0x8')];if(_0x2cbe5b[_0x2fc2('0x13')](_0x52fc1b))return _0x2cbe5b[_0x2fc2('0x4')](_0x52fc1b);if(_0x2cbe5b[_0x2fc2('0xc')](_0x52fc1b,!0x0),_0x52fc1b&&W[_0x2fc2('0xf')](_0x199060)[_0x2fc2('0x12')](_0x52fc1b))return _0x2cbe5b[_0x2fc2('0xc')](_0x52fc1b,!0x1),!0x1;if(!_0x43b217[_0x2fc2('0x2')])return _0x2cbe5b[_0x2fc2('0xc')](_0x52fc1b,!0x0),!0x0;const _0x2a6f81=_0x43b217[_0x2fc2('0x2')][_0x2fc2('0x9')](_0xe49ee=>v(_0xe49ee,_0x2cbe5b,_0x3414d5,_0x199060));return _0x2cbe5b[_0x2fc2('0xc')](_0x52fc1b,_0x2a6f81),_0x2a6f81;}export default function D(_0x196537,_0x30b13a){const _0xd9cbac={};for(const _0x12fb8f of _0x196537['config'][_0x2fc2('0xd')]())w[_0x2fc2('0x12')](_0x12fb8f)||(_0xd9cbac[_0x12fb8f]=_0x196537[_0x2fc2('0x11')]['get'](_0x12fb8f));const _0x3e9a45=_0xd9cbac[_0x2fc2('0x19')]||[],_0x239e2c=_0x196537[_0x2fc2('0xe')][_0x2fc2('0x5')]||[],_0x284775=_0x3e9a45[_0x2fc2('0x16')]?_0x3e9a45:_0x239e2c,_0x509fe3=_0xd9cbac[_0x2fc2('0x17')]||[];delete _0xd9cbac[_0x2fc2('0x17')];const _0x5de68d=_0xd9cbac[_0x2fc2('0x0')]||[];delete _0xd9cbac[_0x2fc2('0x0')];const _0xf53c11=_0x196537[_0x2fc2('0x1b')][_0x2fc2('0x11')]['get'](_0x2fc2('0x19'))||[],_0x142df1=_0x284775[_0x2fc2('0xf')](_0x509fe3)['concat'](_0xf53c11)['map'](_0x254cb8=>_0x2fc2('0x10')==typeof _0x254cb8?_0x239e2c['find'](_0xb2d7ea=>_0xb2d7ea[_0x2fc2('0x1a')]==_0x254cb8):_0x254cb8)[_0x2fc2('0x3')](_0x12a42d=>!_0x5de68d['includes'](_0x12a42d)),_0x26bcb9=Array[_0x2fc2('0x6')](new Set(_0x142df1)),_0x37c9e6=new Map();return _0xd9cbac[_0x2fc2('0x19')]=_0x26bcb9[_0x2fc2('0x3')](_0x4ce2c0=>v(_0x4ce2c0,_0x37c9e6,_0x196537[_0x2fc2('0x19')],_0x30b13a)),_0xd9cbac;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ced=['length','split','slice','replace','substring','join','startsWith','indexOf','match','push','...','pop'];(function(_0x2ec08a,_0x1cedbe){const _0x1b0b40=function(_0x50d602){while(--_0x50d602){_0x2ec08a['push'](_0x2ec08a['shift']());}};_0x1b0b40(++_0x1cedbe);}(_0x1ced,0x128));const _0x1b0b=function(_0x2ec08a,_0x1cedbe){_0x2ec08a=_0x2ec08a-0x0;let _0x1b0b40=_0x1ced[_0x2ec08a];return _0x1b0b40;};export default function z(_0x32f1a8,{limit:_0x315ed3,suffix:_0x2058cb=_0x1b0b('0x2')}){const _0x30c268=[];let _0x1b8cd8=0x0;const _0x1c43ea=_0x32f1a8[_0x1b0b('0x7')](/</g,'\x0a<')[_0x1b0b('0x7')](/>/g,'>\x0a')[_0x1b0b('0x7')](/^\n/g,'')[_0x1b0b('0x7')](/\n$/g,'')[_0x1b0b('0x5')]('\x0a');for(let _0x4ac77e=0x0;_0x4ac77e<_0x1c43ea[_0x1b0b('0x4')];_0x4ac77e++){let _0x4bcc41=_0x1c43ea[_0x4ac77e];const _0x30bceb=Z(_0x4bcc41);if(_0x4bcc41[_0x1b0b('0xa')]('<')){if(_0x1b8cd8>=_0x315ed3){const _0x75ec1=_0x4bcc41['match'](/[a-zA-Z]+/);if(!_0x75ec1){_0x1c43ea[_0x4ac77e]='';continue;}const _0x31a348=_0x75ec1[0x0];_0x4bcc41[_0x1b0b('0xa')]('</')?(_0x30c268['length']&&(_0x4bcc41=''),_0x30c268[_0x1b0b('0x3')]()):(_0x30c268['push'](_0x31a348),_0x4bcc41='');}}else{if(_0x1b8cd8>=_0x315ed3)_0x4bcc41='';else{if(_0x1b8cd8+_0x30bceb[_0x1b0b('0x4')]>=_0x315ed3){let _0x316cc0=_0x315ed3-_0x1b8cd8;if('\x20'===_0x30bceb[_0x316cc0-0x1])_0x316cc0--;else{const _0x3f5fe3=_0x30bceb[_0x1b0b('0x6')](_0x316cc0)[_0x1b0b('0xb')]('\x20');-0x1!==_0x3f5fe3?_0x316cc0+=_0x3f5fe3:_0x316cc0=_0x4bcc41[_0x1b0b('0x4')];}_0x4bcc41=_0x30bceb[_0x1b0b('0x6')](0x0,_0x316cc0)['join']('')+_0x2058cb,_0x1b8cd8=_0x315ed3;}else _0x1b8cd8+=_0x30bceb[_0x1b0b('0x4')];}}_0x1c43ea[_0x4ac77e]=_0x4bcc41;}return _0x1c43ea[_0x1b0b('0x9')]('\x0a')[_0x1b0b('0x7')](/\n/g,'');}function Z(_0x28f975){const _0x203385=[];for(let _0x1d0275=0x0;_0x1d0275<_0x28f975['length'];_0x1d0275++){const _0x24c40a=_0x28f975[_0x1b0b('0x8')](_0x1d0275)[_0x1b0b('0x0')](/^&[a-z0-9#]+;/);if(_0x24c40a){const _0x5e58e4=_0x24c40a[0x0];_0x203385[_0x1b0b('0x1')](_0x5e58e4),_0x1d0275+=_0x5e58e4[_0x1b0b('0x4')]-0x1;}else _0x203385[_0x1b0b('0x1')](_0x28f975[_0x1d0275]);}return _0x203385;}
23
+ const _0x12eb=['replace','join','slice','substring','match','startsWith','push','length','...','split'];(function(_0x253015,_0x12eb15){const _0x33585c=function(_0x114b74){while(--_0x114b74){_0x253015['push'](_0x253015['shift']());}};_0x33585c(++_0x12eb15);}(_0x12eb,0x100));const _0x3358=function(_0x253015,_0x12eb15){_0x253015=_0x253015-0x0;let _0x33585c=_0x12eb[_0x253015];return _0x33585c;};export default function z(_0x52d612,{limit:_0x320a4f,suffix:_0x40d8ab=_0x3358('0x2')}){const _0x435c95=[];let _0x58429f=0x0;const _0x278c8c=_0x52d612[_0x3358('0x4')](/</g,'\x0a<')[_0x3358('0x4')](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')[_0x3358('0x3')]('\x0a');for(let _0x523486=0x0;_0x523486<_0x278c8c[_0x3358('0x1')];_0x523486++){let _0x36c2f8=_0x278c8c[_0x523486];const _0x1ed0d7=Z(_0x36c2f8);if(_0x36c2f8[_0x3358('0x9')]('<')){if(_0x58429f>=_0x320a4f){const _0x365b9c=_0x36c2f8[_0x3358('0x8')](/[a-zA-Z]+/);if(!_0x365b9c){_0x278c8c[_0x523486]='';continue;}const _0x20c659=_0x365b9c[0x0];_0x36c2f8[_0x3358('0x9')]('</')?(_0x435c95['length']&&(_0x36c2f8=''),_0x435c95['pop']()):(_0x435c95[_0x3358('0x0')](_0x20c659),_0x36c2f8='');}}else{if(_0x58429f>=_0x320a4f)_0x36c2f8='';else{if(_0x58429f+_0x1ed0d7['length']>=_0x320a4f){let _0xd92f0d=_0x320a4f-_0x58429f;if('\x20'===_0x1ed0d7[_0xd92f0d-0x1])_0xd92f0d--;else{const _0x1b2824=_0x1ed0d7[_0x3358('0x6')](_0xd92f0d)['indexOf']('\x20');-0x1!==_0x1b2824?_0xd92f0d+=_0x1b2824:_0xd92f0d=_0x36c2f8['length'];}_0x36c2f8=_0x1ed0d7[_0x3358('0x6')](0x0,_0xd92f0d)[_0x3358('0x5')]('')+_0x40d8ab,_0x58429f=_0x320a4f;}else _0x58429f+=_0x1ed0d7[_0x3358('0x1')];}}_0x278c8c[_0x523486]=_0x36c2f8;}return _0x278c8c['join']('\x0a')[_0x3358('0x4')](/\n/g,'');}function Z(_0x450688){const _0x41e0ca=[];for(let _0x599673=0x0;_0x599673<_0x450688['length'];_0x599673++){const _0x35868d=_0x450688[_0x3358('0x7')](_0x599673)[_0x3358('0x8')](/^&[a-z0-9#]+;/);if(_0x35868d){const _0x2e1f63=_0x35868d[0x0];_0x41e0ca['push'](_0x2e1f63),_0x599673+=_0x2e1f63[_0x3358('0x1')]-0x1;}else _0x41e0ca[_0x3358('0x0')](_0x450688[_0x599673]);}return _0x41e0ca;}