@ckeditor/ckeditor5-real-time-collaboration 47.3.0-alpha.3 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x17c360=_0x566f;function _0x2325(){const _0x157a3c=['size','sessions-unregister-not-exist','isOfficialPlugin','_handleSessionRemove','requires','values','hiddenInPresenceList','assign','22089ZqNBrR','change:state','isPremiumPlugin','9176216ShwpUG','user','context','register','state','allConnectedUsers','remove','init','mySessionId','3fzCTWd','stopListening','_handleSessionAdd','addUser','isMe','getUser','11955190BNcBxx','has','Sessions','unregister','channelConnectedUsers','sessions-register-already-registered','defineMe','getUserSessions','role','getUserRole','200HIvUou','listenTo','sessionAdd:','orderNumber','1926952TZNWJm','_registeredSessions','106008KGPGVk','_createUser','add','getUserBySessionId','pluginName','285TEPufq','66062lfjSQz','_uniqueUsersCount','set','plugins','delete','get','790173iFdCCr','sessionId','connection','fire','connected','channelSessions','forEach','clear','_users'];_0x2325=function(){return _0x157a3c;};return _0x2325();}(function(_0x5aa9f1,_0x2acdfd){const _0x3cd3ce=_0x566f,_0x2785a4=_0x5aa9f1();while(!![]){try{const _0x4ed5c2=-parseInt(_0x3cd3ce(0x123))/0x1*(parseInt(_0x3cd3ce(0x13f))/0x2)+-parseInt(_0x3cd3ce(0x117))/0x3*(parseInt(_0x3cd3ce(0x133))/0x4)+parseInt(_0x3cd3ce(0x13e))/0x5*(parseInt(_0x3cd3ce(0x139))/0x6)+parseInt(_0x3cd3ce(0x11a))/0x7+parseInt(_0x3cd3ce(0x137))/0x8+-parseInt(_0x3cd3ce(0x145))/0x9+-parseInt(_0x3cd3ce(0x129))/0xa;if(_0x4ed5c2===_0x2acdfd)break;else _0x2785a4['push'](_0x2785a4['shift']());}catch(_0x307162){_0x2785a4['push'](_0x2785a4['shift']());}}}(_0x2325,0xc5552));import{ContextPlugin as _0x147a35}from'ckeditor5/src/core.js';import{Collection as _0x18d383,CKEditorError as _0x4609da}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x5c263f}from'./websocketgateway.js';function _0x566f(_0x592923,_0x2425b1){const _0x2325ff=_0x2325();return _0x566f=function(_0x566f21,_0x13c277){_0x566f21=_0x566f21-0x107;let _0x34bdb6=_0x2325ff[_0x566f21];return _0x34bdb6;},_0x566f(_0x592923,_0x2425b1);}import{Users as _0x1c5363}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x147a35{[_0x17c360(0x10b)];[_0x17c360(0x12d)];[_0x17c360(0x11f)];[_0x17c360(0x138)];[_0x17c360(0x140)];[_0x17c360(0x10e)];static get[_0x17c360(0x13d)](){const _0x378e51=_0x17c360;return _0x378e51(0x12b);}static get[_0x17c360(0x111)](){return!0x0;}static get[_0x17c360(0x119)](){return!0x0;}static get[_0x17c360(0x113)](){return[_0x5c263f,_0x1c5363];}constructor(_0x338977){const _0x586211=_0x17c360;super(_0x338977),this[_0x586211(0x10b)]=new Map(),this[_0x586211(0x12d)]=new Map(),this[_0x586211(0x11f)]=new _0x18d383(),this[_0x586211(0x138)]=new Map(),this[_0x586211(0x140)]=0x0,this[_0x586211(0x10e)]=this[_0x586211(0x11c)][_0x586211(0x142)][_0x586211(0x144)](_0x1c5363);}[_0x17c360(0x121)](){const _0x35405b=_0x17c360,_0x53b96d=this[_0x35405b(0x11c)][_0x35405b(0x142)][_0x35405b(0x144)](_0x5c263f);this[_0x35405b(0x134)](_0x53b96d,_0x35405b(0x118),(_0x23a4ff,_0x128658,_0x17f6ce)=>{const _0x26a148=_0x35405b;if(_0x26a148(0x10a)!==_0x17f6ce)this[_0x26a148(0x10b)][_0x26a148(0x10c)](_0x110bce=>_0x110bce[_0x26a148(0x10d)]()),this[_0x26a148(0x12d)][_0x26a148(0x10c)](_0x5d3d17=>_0x5d3d17[_0x26a148(0x10d)]()),this[_0x26a148(0x11f)][_0x26a148(0x10d)]();else{for(const [_0x3cb458,_0x31a4ee]of this[_0x26a148(0x138)])for(const _0x47d507 of _0x31a4ee)this[_0x26a148(0x125)](_0x3cb458,_0x47d507);}}),this[_0x35405b(0x13a)](_0x53b96d[_0x35405b(0x108)]['me'],!0x0);}[_0x17c360(0x11d)](_0x4212e5,_0x2749b0){const _0x565780=_0x17c360;if(this[_0x565780(0x138)][_0x565780(0x12a)](_0x4212e5))throw new _0x4609da(_0x565780(0x12e),null,{'channelId':_0x4212e5});this[_0x565780(0x138)][_0x565780(0x141)](_0x4212e5,_0x2749b0),this[_0x565780(0x10b)][_0x565780(0x141)](_0x4212e5,new _0x18d383()),this[_0x565780(0x12d)][_0x565780(0x141)](_0x4212e5,new _0x18d383()),this[_0x565780(0x134)](_0x2749b0,_0x565780(0x13b),(_0x4165de,_0x45a8e8)=>this[_0x565780(0x125)](_0x4212e5,_0x45a8e8)),this[_0x565780(0x134)](_0x2749b0,_0x565780(0x120),(_0x5e66ba,_0x2681c8)=>this[_0x565780(0x112)](_0x4212e5,_0x2681c8));for(const _0x2c8264 of _0x2749b0)this[_0x565780(0x125)](_0x4212e5,_0x2c8264);}[_0x17c360(0x12c)](_0x241aba){const _0x5c8d3c=_0x17c360;if(!this[_0x5c8d3c(0x138)][_0x5c8d3c(0x12a)](_0x241aba))throw new _0x4609da(_0x5c8d3c(0x110),null,{'channelId':_0x241aba});const _0x573e2f=this[_0x5c8d3c(0x138)][_0x5c8d3c(0x144)](_0x241aba);this[_0x5c8d3c(0x124)](_0x573e2f);for(const _0x4cb2bd of _0x573e2f)_0x5c8d3c(0x10a)===this[_0x5c8d3c(0x11c)][_0x5c8d3c(0x142)][_0x5c8d3c(0x144)](_0x5c263f)[_0x5c8d3c(0x11e)]&&this[_0x5c8d3c(0x112)](_0x241aba,_0x4cb2bd);this[_0x5c8d3c(0x138)][_0x5c8d3c(0x143)](_0x241aba),this[_0x5c8d3c(0x10b)][_0x5c8d3c(0x143)](_0x241aba),this[_0x5c8d3c(0x12d)][_0x5c8d3c(0x143)](_0x241aba);}get[_0x17c360(0x122)](){const _0x454c1d=_0x17c360;return this[_0x454c1d(0x11c)][_0x454c1d(0x142)][_0x454c1d(0x144)](_0x5c263f)[_0x454c1d(0x108)][_0x454c1d(0x107)];}[_0x17c360(0x13c)](_0x23c5dd){const _0x1458a2=_0x17c360;for(const _0x57488a of this[_0x1458a2(0x10b)][_0x1458a2(0x114)]())for(const _0x56774a of _0x57488a)if(_0x56774a['id']===_0x23c5dd)return _0x56774a[_0x1458a2(0x11b)];}[_0x17c360(0x130)](_0x309111,_0xd80e18){const _0x514ee4=_0x17c360,_0x4d269f=_0xd80e18?[this[_0x514ee4(0x10b)][_0x514ee4(0x144)](_0xd80e18)]:this[_0x514ee4(0x10b)][_0x514ee4(0x114)](),_0x256215=new Set();for(const _0x18f952 of _0x4d269f)for(const _0x5d6090 of _0x18f952)_0x5d6090[_0x514ee4(0x11b)]['id']===_0x309111['id']&&_0x256215[_0x514ee4(0x13b)](_0x5d6090['id']);return _0x256215;}[_0x17c360(0x132)](_0x136be0){const _0x400115=_0x17c360;for(const _0xed7ef2 of this[_0x400115(0x10b)][_0x400115(0x114)]())for(const _0x312bef of _0xed7ef2)if(_0x312bef[_0x400115(0x11b)]===_0x136be0)return _0x312bef[_0x400115(0x131)];}[_0x17c360(0x125)](_0x58ee84,_0x2e55bf){const _0x4d8499=_0x17c360;if(_0x4d8499(0x10a)!==this[_0x4d8499(0x11c)][_0x4d8499(0x142)][_0x4d8499(0x144)](_0x5c263f)[_0x4d8499(0x11e)])return;const _0x35eed7=_0x2e55bf[_0x4d8499(0x11b)],_0x78a7a7=this[_0x4d8499(0x10e)][_0x4d8499(0x128)](_0x35eed7['id'])||this[_0x4d8499(0x13a)](_0x35eed7),_0x246c73=Object[_0x4d8499(0x116)]({},_0x2e55bf,{'user':_0x78a7a7});if(this[_0x4d8499(0x10b)][_0x4d8499(0x144)](_0x58ee84)[_0x4d8499(0x13b)](_0x246c73),!_0x35eed7[_0x4d8499(0x115)]){const _0x4f0dfb=this[_0x4d8499(0x12d)][_0x4d8499(0x144)](_0x58ee84);_0x4f0dfb[_0x4d8499(0x12a)](_0x78a7a7['id'])||_0x4f0dfb[_0x4d8499(0x13b)](_0x78a7a7),this[_0x4d8499(0x11f)][_0x4d8499(0x12a)](_0x78a7a7['id'])||_0x35eed7[_0x4d8499(0x115)]||this[_0x4d8499(0x11f)][_0x4d8499(0x13b)](_0x78a7a7,_0x78a7a7[_0x4d8499(0x127)]?0x0:void 0x0);}this[_0x4d8499(0x109)](_0x4d8499(0x135)+_0x58ee84,{'channelId':_0x58ee84,'session':_0x246c73});}[_0x17c360(0x112)](_0x166969,_0x273729){const _0x755a57=_0x17c360;if(_0x755a57(0x10a)!==this[_0x755a57(0x11c)][_0x755a57(0x142)][_0x755a57(0x144)](_0x5c263f)[_0x755a57(0x11e)])return;const _0x157fa7=this[_0x755a57(0x12d)][_0x755a57(0x144)](_0x166969),_0x2db743=_0x273729[_0x755a57(0x11b)];_0x2db743['id']&&(this[_0x755a57(0x10b)][_0x755a57(0x144)](_0x166969)[_0x755a57(0x120)](_0x273729['id']),_0x157fa7[_0x755a57(0x12a)](_0x2db743['id'])&&!this[_0x755a57(0x130)](_0x2db743,_0x166969)[_0x755a57(0x10f)]&&_0x157fa7[_0x755a57(0x120)](_0x2db743['id']),this[_0x755a57(0x11f)][_0x755a57(0x144)](_0x2db743['id'])&&!this[_0x755a57(0x130)](_0x2db743)[_0x755a57(0x10f)]&&this[_0x755a57(0x11f)][_0x755a57(0x120)](_0x2db743['id']));}[_0x17c360(0x13a)](_0xf9ed7d,_0x476cd9){const _0x5829fd=_0x17c360,_0x53accb=this[_0x5829fd(0x10e)][_0x5829fd(0x126)](_0xf9ed7d);return _0x476cd9&&this[_0x5829fd(0x10e)][_0x5829fd(0x12f)](_0xf9ed7d['id']),_0x53accb[_0x5829fd(0x136)]=this[_0x5829fd(0x140)]++,_0x53accb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5aebb0=_0x37a9;function _0x37a9(_0x3b37a0,_0x3e299c){const _0x5c054d=_0x5c05();return _0x37a9=function(_0x37a91c,_0x3656a8){_0x37a91c=_0x37a91c-0x9e;let _0x4a20a5=_0x5c054d[_0x37a91c];return _0x4a20a5;},_0x37a9(_0x3b37a0,_0x3e299c);}(function(_0x49c8b7,_0x18e517){const _0x13f17c=_0x37a9,_0x28f940=_0x49c8b7();while(!![]){try{const _0x2afd55=-parseInt(_0x13f17c(0x11f))/0x1*(parseInt(_0x13f17c(0xe7))/0x2)+-parseInt(_0x13f17c(0x117))/0x3+-parseInt(_0x13f17c(0x126))/0x4+-parseInt(_0x13f17c(0xa2))/0x5+parseInt(_0x13f17c(0xb7))/0x6*(-parseInt(_0x13f17c(0x120))/0x7)+-parseInt(_0x13f17c(0x11d))/0x8*(-parseInt(_0x13f17c(0xd4))/0x9)+-parseInt(_0x13f17c(0xd1))/0xa*(-parseInt(_0x13f17c(0xff))/0xb);if(_0x2afd55===_0x18e517)break;else _0x28f940['push'](_0x28f940['shift']());}catch(_0x29c479){_0x28f940['push'](_0x28f940['shift']());}}}(_0x5c05,0xaca8f));import{Plugin as _0x3812dd}from'ckeditor5/src/core.js';import{global as _0x154994,DomEmitterMixin as _0x457143}from'ckeditor5/src/utils.js';import{Sessions as _0x36d535}from'./sessions.js';import{ModelLiveRange as _0x520673}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x5c05(){const _0x2ae3fd=['mySessionId','conversion','createRange','addEventListener','Escape','$text','mouseleave','pluginName','deletionPosition','markers','enqueueChange','652395aPRpNN','toDomElement','get','orderNumber','outerHTML','removeMarker','8EIgGro','ck-user__marker_hovered','94tjJpNx','692153kMeNww','toRange','color','start','change:range','delete','4602584CqjDcC','editor','commands','highest','getAttribute','setAttribute','getMarkerClass','marker','5064260sXdJDM','isLimit','ck-user__marker\x20','span','tableCell','removeClass','UserMarkers','startsWith','clear','isObject','getSelectionClass','isPremiumPlugin','setCustomProperty','getFirstRange','markerToHighlight','getContainedElement','change','for','user:','editingDowncast','isSimilar','6SbBEli','addMarker','isCollapsed','getPositions','isOfficialPlugin','spellcheck','markerNameToElements','document','schema','detach','createUserMarkerOperations','plugins','user:range:','contenteditable','root','keydown','checkChild','afterInit','textContent','data-session-id','user:position:','listenTo','model','hasContent','classList','set','10311110LMhUqZ','add','_createdBatches','2877075ZZEpSe','element','fromRange','updateMarker','userPositionMarker','type','createUIElement','user:range','destroy','end','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','name','mouseenter','update:user:range','init','innerHTML','stopListening','reconvertMarker','render','26746MvlEav','markerName','isInline','batch','selection','rootName','requires','false','has','getNearestSelectionRange','mapper','ck-user__selection','size','view','remove','isDocumentOperation','applyOperation','_domEmitter','hasDomSelection','split','markerToElement','getUserBySessionId','getCustomProperty','nodeAfter','44qZEGLX','getRange','editing','getStart','parent','undo','$graveyard','oldRange','createElement','ck-user__marker-tooltip','user:position','newRange','markerRange'];_0x5c05=function(){return _0x2ae3fd;};return _0x5c05();}export class UserMarkers extends _0x3812dd{[_0x5aebb0(0xf8)]=new(_0x457143())();static get[_0x5aebb0(0xed)](){return[_0x36d535];}static get[_0x5aebb0(0x113)](){const _0x5e6be0=_0x5aebb0;return _0x5e6be0(0xa8);}static get[_0x5aebb0(0xbb)](){return!0x0;}static get[_0x5aebb0(0xad)](){return!0x0;}[_0x5aebb0(0xe2)](){const _0x5671ab=_0x5aebb0,_0x3748b7=this[_0x5671ab(0x127)],_0xb2f242=_0x3748b7[_0x5671ab(0xc2)][_0x5671ab(0x119)](_0x36d535);_0x3748b7[_0x5671ab(0x10d)][_0x5671ab(0xb3)](_0x5671ab(0xb5))[_0x5671ab(0xfb)]({'model':_0x5671ab(0x109),'view':(_0x52efdd,{writer:_0x72e3d})=>function(_0xaa02c4,_0x31c1e1,_0x52099a,_0x16da97){const _0x42c0d0=_0x5671ab,_0x4e3156=_0xaa02c4[_0x42c0d0(0xe8)][_0x42c0d0(0xfa)](':')[0x2],_0x882c17=_0x52099a[_0x42c0d0(0xfc)](_0x4e3156);if(!_0x882c17||_0x4e3156===_0x52099a[_0x42c0d0(0x10c)])return;if(!_0x16da97[_0x42c0d0(0xcd)][_0x42c0d0(0xbf)][_0x42c0d0(0xc7)](_0xaa02c4[_0x42c0d0(0x10b)][_0x42c0d0(0x123)],_0x42c0d0(0x111)))return;const _0x281b10={'class':_0x42c0d0(0xa4)+_0x882c17[_0x42c0d0(0x122)][_0x42c0d0(0xa0)](),'data-name':_0x882c17[_0x42c0d0(0xdf)],'data-session-id':_0x4e3156},_0x417b32=_0x16da97[_0x42c0d0(0xcd)][_0x42c0d0(0x115)][_0x42c0d0(0x119)](_0xaa02c4[_0x42c0d0(0xe8)]),_0x4f07c7=_0x417b32[_0x42c0d0(0x102)](),_0x1f5dce=_0x4f07c7[_0x42c0d0(0xfe)],_0x526a7e=_0x16da97[_0x42c0d0(0xcd)][_0x42c0d0(0xbf)];if(_0x1f5dce&&_0x526a7e[_0x42c0d0(0xab)](_0x1f5dce)&&_0x526a7e[_0x42c0d0(0xe9)](_0x1f5dce)&&!_0x16da97[_0x42c0d0(0xcd)][_0x42c0d0(0x115)][_0x42c0d0(0x119)](_0x42c0d0(0xc3)+_0x4e3156)[_0x42c0d0(0x100)]()[_0x42c0d0(0xb9)])return;const _0x393168=_0x4f07c7[_0x42c0d0(0x103)];return _0x16da97[_0x42c0d0(0xcd)][_0x42c0d0(0xbf)][_0x42c0d0(0xa3)](_0x393168)&&!_0x16da97[_0x42c0d0(0xcd)][_0x42c0d0(0xce)](_0x393168)&&(_0x281b10[_0x42c0d0(0xc4)]=!0x1),function(_0x3340ee,_0x16e1a7,_0x12cc22){const _0x35c436=_0x42c0d0,_0x550138=_0x3340ee[_0x35c436(0xda)](_0x35c436(0xa5),_0x16e1a7);return _0x3340ee[_0x35c436(0xae)](_0x35c436(0xd8),!0x0,_0x550138),_0x550138[_0x35c436(0xe6)]=function(_0x3f65c0){const _0x444de3=_0x35c436,_0xcea8fc=this[_0x444de3(0x118)](_0x3f65c0),_0x4a3074=document[_0x444de3(0x107)](_0x444de3(0xa5));return _0x4a3074[_0x444de3(0xcf)][_0x444de3(0xd2)](_0x444de3(0x108)),_0x4a3074[_0x444de3(0x9f)](_0x444de3(0xc4),_0x444de3(0xee)),_0x4a3074[_0x444de3(0x9f)](_0x444de3(0xbc),_0x444de3(0xee)),_0x4a3074[_0x444de3(0xc9)]=_0x12cc22[_0x444de3(0xdf)],_0xcea8fc[_0x444de3(0xe3)]=_0x444de3(0xde)+_0x4a3074[_0x444de3(0x11b)]+'',_0xcea8fc[_0x444de3(0x10f)](_0x444de3(0xe0),()=>{const _0x3a73da=_0x444de3;_0xcea8fc[_0x3a73da(0xcf)][_0x3a73da(0xd2)](_0x3a73da(0x11e));}),_0xcea8fc[_0x444de3(0x10f)](_0x444de3(0x112),()=>{const _0x49d190=_0x444de3;_0xcea8fc[_0x49d190(0xcf)][_0x49d190(0xf5)](_0x49d190(0x11e));}),_0xcea8fc;},_0x550138[_0x35c436(0xb6)]=function(_0x54cca3){const _0x59a494=_0x35c436;return!(!this[_0x59a494(0xfd)](_0x59a494(0xd8))||!_0x54cca3[_0x59a494(0xfd)](_0x59a494(0xd8))||this[_0x59a494(0x9e)](_0x59a494(0xca))!=_0x54cca3[_0x59a494(0x9e)](_0x59a494(0xca)));},_0x550138;}(_0x31c1e1,_0x281b10,_0x882c17);}(_0x52efdd,_0x72e3d,_0xb2f242,_0x3748b7)}),_0x3748b7[_0x5671ab(0x10d)][_0x5671ab(0xb3)](_0x5671ab(0xb5))[_0x5671ab(0xb0)]({'model':_0x5671ab(0xdb),'view':_0x44df68=>function(_0x5c2897,_0x2cacec){const _0x35af39=_0x5671ab,_0x32bb8f=_0x5c2897[_0x35af39(0xe8)][_0x35af39(0xfa)](':')[0x2];if(_0x32bb8f===_0x2cacec[_0x35af39(0x10c)])return null;const _0x47456c=_0x2cacec[_0x35af39(0xfc)](_0x32bb8f);if(!_0x47456c)return{'id':_0x32bb8f,'classes':[]};return{'id':_0x32bb8f,'classes':[_0x35af39(0xf2),_0x47456c[_0x35af39(0x122)][_0x35af39(0xac)]()],'attributes':{'data-session-id':_0x32bb8f},'priority':0x7d0+_0x47456c[_0x35af39(0x11a)]};}(_0x44df68,_0xb2f242)}),function(_0x36f406){const _0x49b8b7=_0x5671ab,_0x4798b0=_0x36f406[_0x49b8b7(0xcd)],_0x3668a3=new Map(),_0x506367=_0x36f406[_0x49b8b7(0xc2)][_0x49b8b7(0x119)](_0x36d535);_0x4798b0[_0x49b8b7(0x115)]['on'](_0x49b8b7(0xe1),(_0x5ba155,_0x92bde1,_0x553c75,_0x551f9d)=>{const _0x2a8017=_0x49b8b7;if(!_0x551f9d&&_0x3668a3[_0x2a8017(0x119)](_0x92bde1[_0x2a8017(0xdf)]))return _0x3668a3[_0x2a8017(0x119)](_0x92bde1[_0x2a8017(0xdf)])[_0x2a8017(0xc0)](),void _0x3668a3[_0x2a8017(0x125)](_0x92bde1[_0x2a8017(0xdf)]);const _0x599d48=_0x92bde1[_0x2a8017(0xdf)][_0x2a8017(0xfa)](':')[0x2];if(_0x599d48===_0x506367[_0x2a8017(0x10c)])return;const _0x28fa04=_0x2a8017(0xcb)+_0x599d48;_0x4798b0[_0x2a8017(0x115)][_0x2a8017(0xef)](_0x28fa04)&&_0x36f406[_0x2a8017(0x101)][_0x2a8017(0xe5)](_0x28fa04),_0x92bde1['on'](_0x2a8017(0x124),(_0x59731c,_0x286ca0,_0x1d48c5)=>{const _0x22a49a=_0x2a8017;if(_0x22a49a(0x105)!=_0x286ca0[_0x22a49a(0xc5)][_0x22a49a(0xec)]&&_0x22a49a(0x105)==_0x92bde1[_0x22a49a(0x100)]()[_0x22a49a(0xc5)][_0x22a49a(0xec)]&&!_0x3668a3[_0x22a49a(0xef)](_0x92bde1[_0x22a49a(0xdf)])){const _0x4b7d3e=_0x4798b0[_0x22a49a(0xbf)][_0x22a49a(0xf0)](_0x1d48c5[_0x22a49a(0x114)]);if(_0x4b7d3e){const _0x140108=_0x520673[_0x22a49a(0xd6)](_0x4b7d3e);_0x3668a3[_0x22a49a(0xd0)](_0x92bde1[_0x22a49a(0xdf)],_0x140108),_0x140108['on'](_0x22a49a(0x124),(_0x1fb48e,_0x329b4f,_0x1c92b2)=>{const _0x28a04a=_0x22a49a;if(_0x28a04a(0x105)==_0x140108[_0x28a04a(0xc5)][_0x28a04a(0xec)]){const _0x5408be=_0x4798b0[_0x28a04a(0xbf)][_0x28a04a(0xf0)](_0x1c92b2[_0x28a04a(0x114)]);_0x5408be?(_0x140108[_0x28a04a(0x123)]=_0x5408be[_0x28a04a(0x123)],_0x140108[_0x28a04a(0xdd)]=_0x5408be[_0x28a04a(0xdd)]):(_0x3668a3[_0x28a04a(0x125)](_0x92bde1[_0x28a04a(0xdf)]),_0x140108[_0x28a04a(0xc0)]());}});}}});}),_0x4798b0[_0x49b8b7(0xbe)]['on'](_0x49b8b7(0xb2),()=>{const _0x3224bb=_0x49b8b7;_0x3668a3[_0x3224bb(0xf3)]>0x0&&_0x4798b0[_0x3224bb(0x116)]({'isUndoable':!0x1},_0x6140a3=>{const _0x30646a=_0x3224bb;for(const [_0x2e4638,_0x2aa757]of _0x3668a3)_0x30646a(0x105)==_0x4798b0[_0x30646a(0x115)][_0x30646a(0x119)](_0x2e4638)[_0x30646a(0x100)]()[_0x30646a(0xc5)][_0x30646a(0xec)]&&(te(_0x2e4638[_0x30646a(0xfa)](':')[0x2],_0x2aa757[_0x30646a(0x121)](),_0x4798b0,_0x6140a3),_0x2aa757[_0x30646a(0xc0)]());_0x3668a3[_0x30646a(0xaa)]();});});}(_0x3748b7),this[_0x5671ab(0xf8)][_0x5671ab(0xcc)](_0x154994[_0x5671ab(0xbe)],_0x5671ab(0xc6),(_0x2cf104,{key:_0xa034f8})=>{const _0x15846c=_0x5671ab;_0x15846c(0x110)===_0xa034f8&&function(_0x5da0ab){const _0x5ccd3b=_0x15846c;_0x5da0ab[_0x5ccd3b(0x101)][_0x5ccd3b(0xf4)][_0x5ccd3b(0xb2)](_0x563798=>{const _0x2e6ac6=_0x5ccd3b;for(const _0x30b459 of _0x5da0ab[_0x2e6ac6(0xcd)][_0x2e6ac6(0x115)]){if(!_0x30b459[_0x2e6ac6(0xdf)][_0x2e6ac6(0xa9)](_0x2e6ac6(0x109)))continue;const _0x391964=_0x5da0ab[_0x2e6ac6(0x101)][_0x2e6ac6(0xf1)][_0x2e6ac6(0xbd)](_0x30b459[_0x2e6ac6(0xdf)]);if(_0x391964){for(const _0x55c514 of _0x391964)_0x563798[_0x2e6ac6(0xa7)](_0x2e6ac6(0x11e),_0x55c514);}}});}(_0x3748b7);},{'useCapture':!0x0});}[_0x5aebb0(0xc8)](){const _0x1cf308=_0x5aebb0,_0x4205fb=this[_0x1cf308(0x127)],_0x57672a=_0x4205fb[_0x1cf308(0x128)][_0x1cf308(0x119)](_0x1cf308(0x104));_0x57672a&&_0x4205fb[_0x1cf308(0xcd)]['on'](_0x1cf308(0xf7),(_0x34ae35,_0x4586f6)=>{const _0x4601fa=_0x1cf308,_0x49a443=_0x4586f6[0x0];if(!_0x49a443[_0x4601fa(0xf6)])return;if(_0x4601fa(0xa1)!=_0x49a443[_0x4601fa(0xd9)]||!_0x49a443[_0x4601fa(0xdf)][_0x4601fa(0xa9)](_0x4601fa(0xb4)))return;const _0x2e063a=_0x49a443[_0x4601fa(0xea)];_0x57672a[_0x4601fa(0xd3)][_0x4601fa(0xef)](_0x2e063a)&&(_0x49a443[_0x4601fa(0x10a)]=_0x49a443[_0x4601fa(0x106)]?_0x4205fb[_0x4601fa(0xcd)][_0x4601fa(0x10e)](_0x49a443[_0x4601fa(0x106)][_0x4601fa(0x123)],_0x49a443[_0x4601fa(0x106)][_0x4601fa(0xdd)]):null);},{'priority':_0x1cf308(0x129)});}[_0x5aebb0(0xdc)](){const _0x1a587d=_0x5aebb0;return this[_0x1a587d(0xf8)][_0x1a587d(0xe4)](),super[_0x1a587d(0xdc)]();}[_0x5aebb0(0xc1)](){const _0x18e133=_0x5aebb0,_0x2bb20d=this[_0x18e133(0x127)],_0x160aac=_0x2bb20d[_0x18e133(0xcd)][_0x18e133(0xbe)],_0x1b9719=_0x2bb20d[_0x18e133(0xc2)][_0x18e133(0x119)](_0x36d535);_0x2bb20d[_0x18e133(0xcd)][_0x18e133(0x116)]({'isUndoable':!0x1},_0x1a2340=>{const _0x165a7e=_0x18e133,_0x28f5b0=_0x165a7e(0xc3)+_0x1b9719[_0x165a7e(0x10c)],_0x28eaf0=_0x165a7e(0xcb)+_0x1b9719[_0x165a7e(0x10c)],_0x59e021=_0x2bb20d[_0x165a7e(0xcd)][_0x165a7e(0x115)][_0x165a7e(0xef)](_0x28f5b0);_0x2bb20d[_0x165a7e(0x101)][_0x165a7e(0xf4)][_0x165a7e(0xf9)]?te(_0x1b9719[_0x165a7e(0x10c)],_0x160aac[_0x165a7e(0xeb)][_0x165a7e(0xaf)](),_0x2bb20d[_0x165a7e(0xcd)],_0x1a2340):_0x59e021&&(_0x1a2340[_0x165a7e(0x11c)](_0x28f5b0),_0x1a2340[_0x165a7e(0x11c)](_0x28eaf0));});}}function te(_0x336692,_0x214806,_0x54852a,_0x2e9d44){const _0x3312a7=_0x5aebb0,_0x550f39=_0x3312a7(0xc3)+_0x336692,_0x38650f=_0x3312a7(0xcb)+_0x336692,_0x55b328=_0x214806[_0x3312a7(0xb1)]();let _0x16c7ce=_0x214806[_0x3312a7(0x123)];if(_0x55b328&&_0x55b328['is'](_0x3312a7(0xd5),_0x3312a7(0xa6))){const _0x3cfb74=function(_0x35e6ef,_0x2fa8c7){const _0x4d92b8=_0x3312a7;for(const _0x39c4b2 of _0x35e6ef[_0x4d92b8(0xba)]())if(_0x2fa8c7[_0x4d92b8(0xbf)][_0x4d92b8(0xc7)](_0x39c4b2,_0x4d92b8(0x111)))return _0x39c4b2;}(_0x214806,_0x54852a);_0x3cfb74&&(_0x16c7ce=_0x3cfb74,_0x214806=_0x2e9d44[_0x3312a7(0x10e)](_0x16c7ce));}const _0x3e2ef0=_0x2e9d44[_0x3312a7(0x10e)](_0x16c7ce);_0x54852a[_0x3312a7(0x115)][_0x3312a7(0xef)](_0x550f39)?(_0x2e9d44[_0x3312a7(0xd7)](_0x550f39,{'range':_0x214806}),_0x2e9d44[_0x3312a7(0xd7)](_0x38650f,{'range':_0x3e2ef0})):(_0x2e9d44[_0x3312a7(0xb8)](_0x550f39,{'range':_0x214806,'usingOperation':!0x0}),_0x2e9d44[_0x3312a7(0xb8)](_0x38650f,{'range':_0x3e2ef0,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x8e73bb=_0x3920;(function(_0x30cda9,_0x81d1b8){const _0x7beb6e=_0x3920,_0xc66cce=_0x30cda9();while(!![]){try{const _0x4816a9=-parseInt(_0x7beb6e(0xa0))/0x1+-parseInt(_0x7beb6e(0xb9))/0x2*(-parseInt(_0x7beb6e(0xcb))/0x3)+-parseInt(_0x7beb6e(0xc2))/0x4+-parseInt(_0x7beb6e(0x103))/0x5+parseInt(_0x7beb6e(0x10e))/0x6+parseInt(_0x7beb6e(0x114))/0x7*(-parseInt(_0x7beb6e(0xaf))/0x8)+parseInt(_0x7beb6e(0xbe))/0x9;if(_0x4816a9===_0x81d1b8)break;else _0xc66cce['push'](_0xc66cce['shift']());}catch(_0x27221f){_0xc66cce['push'](_0xc66cce['shift']());}}}(_0x3232,0x70b9c));import{Plugin as _0x4f5bbd}from'ckeditor5/src/core.js';import{global as _0x52414e,DomEmitterMixin as _0x10e082}from'ckeditor5/src/utils.js';import{Sessions as _0x178672}from'./sessions.js';import{ModelLiveRange as _0xb74ad6}from'ckeditor5/src/engine.js';function _0x3232(){const _0x5642f2=['hasDomSelection','checkChild','setCustomProperty','marker','editing','contenteditable','reconvertMarker','selection','innerHTML','false','getPositions','Escape','addEventListener','markerName','change:range','textContent','376777UgZQiG','data-session-id','parent','userPositionMarker','markerRange','classList','pluginName','$text','commands','init','mouseenter','startsWith','ck-user__marker-tooltip','conversion','isOfficialPlugin','1379984CqrijK','isDocumentOperation','mouseleave','getAttribute','has','getSelectionClass','isPremiumPlugin','add','getMarkerClass','tableCell','5714ePfJid','markerToHighlight','element','delete','render','8460963VVeXHh','markers','toRange','_createdBatches','3353680TRTHVj','set','$graveyard','hasContent','spellcheck','getNearestSelectionRange','mySessionId','ck-user__selection','for','843ngHble','enqueueChange','batch','schema','deletionPosition','orderNumber','split','getRange','detach','highest','listenTo','removeClass','stopListening','type','applyOperation','isSimilar','setAttribute','clear','user:range','user:position','mapper','getContainedElement','isInline','getStart','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','user:range:','UserMarkers','destroy','createRange','addMarker','document','isLimit','undo','end','plugins','editingDowncast','get','remove','size','model','createUserMarkerOperations','removeMarker','root','getFirstRange','createUIElement','getUserBySessionId','update:user:range','start','view','markerToElement','updateMarker','span','getCustomProperty','isObject','isCollapsed','user:position:','1902945YthtHY','toDomElement','rootName','user:','name','color','nodeAfter','fromRange','createElement','requires','editor','3957492VvhXFv','keydown','ck-user__marker_hovered','change','afterInit','outerHTML','14LDOWCn','oldRange','newRange','_domEmitter','ck-user__marker\x20','markerNameToElements'];_0x3232=function(){return _0x5642f2;};return _0x3232();}import'../../theme/usermarkers.css';function _0x3920(_0x5674a9,_0x5379c7){const _0x3232b9=_0x3232();return _0x3920=function(_0x392048,_0x48add0){_0x392048=_0x392048-0x8f;let _0x2c0d7f=_0x3232b9[_0x392048];return _0x2c0d7f;},_0x3920(_0x5674a9,_0x5379c7);}export class UserMarkers extends _0x4f5bbd{[_0x8e73bb(0x117)]=new(_0x10e082())();static get[_0x8e73bb(0x10c)](){return[_0x178672];}static get[_0x8e73bb(0xa6)](){const _0x298e21=_0x8e73bb;return _0x298e21(0xe5);}static get[_0x8e73bb(0xae)](){return!0x0;}static get[_0x8e73bb(0xb5)](){return!0x0;}[_0x8e73bb(0xa9)](){const _0x5223fe=_0x8e73bb,_0x49d60e=this[_0x5223fe(0x10d)],_0x2f1f28=_0x49d60e[_0x5223fe(0xed)][_0x5223fe(0xef)](_0x178672);_0x49d60e[_0x5223fe(0xad)][_0x5223fe(0xca)](_0x5223fe(0xee))[_0x5223fe(0xfc)]({'model':_0x5223fe(0xde),'view':(_0x354ec6,{writer:_0x438fb8})=>function(_0x3be19f,_0x5165f6,_0x5d7870,_0x48862a){const _0xe3cd0c=_0x5223fe,_0x4248ff=_0x3be19f[_0xe3cd0c(0x9d)][_0xe3cd0c(0xd1)](':')[0x2],_0x42a978=_0x5d7870[_0xe3cd0c(0xf8)](_0x4248ff);if(!_0x42a978||_0x4248ff===_0x5d7870[_0xe3cd0c(0xc8)])return;if(!_0x48862a[_0xe3cd0c(0xf2)][_0xe3cd0c(0xce)][_0xe3cd0c(0x91)](_0x3be19f[_0xe3cd0c(0xa4)][_0xe3cd0c(0xfa)],_0xe3cd0c(0xa7)))return;const _0x307f3f={'class':_0xe3cd0c(0x118)+_0x42a978[_0xe3cd0c(0x108)][_0xe3cd0c(0xb7)](),'data-name':_0x42a978[_0xe3cd0c(0x107)],'data-session-id':_0x4248ff},_0x193adc=_0x48862a[_0xe3cd0c(0xf2)][_0xe3cd0c(0xbf)][_0xe3cd0c(0xef)](_0x3be19f[_0xe3cd0c(0x9d)]),_0x18c101=_0x193adc[_0xe3cd0c(0xe2)](),_0x36b01d=_0x18c101[_0xe3cd0c(0x109)],_0x4b806e=_0x48862a[_0xe3cd0c(0xf2)][_0xe3cd0c(0xce)];if(_0x36b01d&&_0x4b806e[_0xe3cd0c(0x100)](_0x36b01d)&&_0x4b806e[_0xe3cd0c(0xe1)](_0x36b01d)&&!_0x48862a[_0xe3cd0c(0xf2)][_0xe3cd0c(0xbf)][_0xe3cd0c(0xef)](_0xe3cd0c(0xe4)+_0x4248ff)[_0xe3cd0c(0xd2)]()[_0xe3cd0c(0x101)])return;const _0x4f7ac0=_0x18c101[_0xe3cd0c(0xa2)];return _0x48862a[_0xe3cd0c(0xf2)][_0xe3cd0c(0xce)][_0xe3cd0c(0xea)](_0x4f7ac0)&&!_0x48862a[_0xe3cd0c(0xf2)][_0xe3cd0c(0xc5)](_0x4f7ac0)&&(_0x307f3f[_0xe3cd0c(0x95)]=!0x1),function(_0x32336e,_0x1004e7,_0x2c95a1){const _0x13fb09=_0xe3cd0c,_0x3bd5ef=_0x32336e[_0x13fb09(0xf7)](_0x13fb09(0xfe),_0x1004e7);return _0x32336e[_0x13fb09(0x92)](_0x13fb09(0xa3),!0x0,_0x3bd5ef),_0x3bd5ef[_0x13fb09(0xbd)]=function(_0x52091a){const _0x1e6764=_0x13fb09,_0x206744=this[_0x1e6764(0x104)](_0x52091a),_0x2ae339=document[_0x1e6764(0x10b)](_0x1e6764(0xfe));return _0x2ae339[_0x1e6764(0xa5)][_0x1e6764(0xb6)](_0x1e6764(0xac)),_0x2ae339[_0x1e6764(0xdb)](_0x1e6764(0x95),_0x1e6764(0x99)),_0x2ae339[_0x1e6764(0xdb)](_0x1e6764(0xc6),_0x1e6764(0x99)),_0x2ae339[_0x1e6764(0x9f)]=_0x2c95a1[_0x1e6764(0x107)],_0x206744[_0x1e6764(0x98)]=_0x1e6764(0xe3)+_0x2ae339[_0x1e6764(0x113)]+'',_0x206744[_0x1e6764(0x9c)](_0x1e6764(0xaa),()=>{const _0x546ae8=_0x1e6764;_0x206744[_0x546ae8(0xa5)][_0x546ae8(0xb6)](_0x546ae8(0x110));}),_0x206744[_0x1e6764(0x9c)](_0x1e6764(0xb1),()=>{const _0x104952=_0x1e6764;_0x206744[_0x104952(0xa5)][_0x104952(0xf0)](_0x104952(0x110));}),_0x206744;},_0x3bd5ef[_0x13fb09(0xda)]=function(_0x329632){const _0x2ffd1e=_0x13fb09;return!(!this[_0x2ffd1e(0xff)](_0x2ffd1e(0xa3))||!_0x329632[_0x2ffd1e(0xff)](_0x2ffd1e(0xa3))||this[_0x2ffd1e(0xb2)](_0x2ffd1e(0xa1))!=_0x329632[_0x2ffd1e(0xb2)](_0x2ffd1e(0xa1)));},_0x3bd5ef;}(_0x5165f6,_0x307f3f,_0x42a978);}(_0x354ec6,_0x438fb8,_0x2f1f28,_0x49d60e)}),_0x49d60e[_0x5223fe(0xad)][_0x5223fe(0xca)](_0x5223fe(0xee))[_0x5223fe(0xba)]({'model':_0x5223fe(0xdd),'view':_0x1dcbf9=>function(_0x2656d9,_0x3899e0){const _0x5264c1=_0x5223fe,_0x319ed9=_0x2656d9[_0x5264c1(0x9d)][_0x5264c1(0xd1)](':')[0x2];if(_0x319ed9===_0x3899e0[_0x5264c1(0xc8)])return null;const _0x1fcbbc=_0x3899e0[_0x5264c1(0xf8)](_0x319ed9);if(!_0x1fcbbc)return{'id':_0x319ed9,'classes':[]};return{'id':_0x319ed9,'classes':[_0x5264c1(0xc9),_0x1fcbbc[_0x5264c1(0x108)][_0x5264c1(0xb4)]()],'attributes':{'data-session-id':_0x319ed9},'priority':0x7d0+_0x1fcbbc[_0x5264c1(0xd0)]};}(_0x1dcbf9,_0x2f1f28)}),function(_0x21d66b){const _0x36b3bf=_0x5223fe,_0x58a56e=_0x21d66b[_0x36b3bf(0xf2)],_0x31990f=new Map(),_0x3ca9de=_0x21d66b[_0x36b3bf(0xed)][_0x36b3bf(0xef)](_0x178672);_0x58a56e[_0x36b3bf(0xbf)]['on'](_0x36b3bf(0xf9),(_0x387235,_0x2beebb,_0x443969,_0x46a5cd)=>{const _0x1edc96=_0x36b3bf;if(!_0x46a5cd&&_0x31990f[_0x1edc96(0xef)](_0x2beebb[_0x1edc96(0x107)]))return _0x31990f[_0x1edc96(0xef)](_0x2beebb[_0x1edc96(0x107)])[_0x1edc96(0xd3)](),void _0x31990f[_0x1edc96(0xbc)](_0x2beebb[_0x1edc96(0x107)]);const _0x58ff29=_0x2beebb[_0x1edc96(0x107)][_0x1edc96(0xd1)](':')[0x2];if(_0x58ff29===_0x3ca9de[_0x1edc96(0xc8)])return;const _0x46f0f3=_0x1edc96(0x102)+_0x58ff29;_0x58a56e[_0x1edc96(0xbf)][_0x1edc96(0xb3)](_0x46f0f3)&&_0x21d66b[_0x1edc96(0x94)][_0x1edc96(0x96)](_0x46f0f3),_0x2beebb['on'](_0x1edc96(0x9e),(_0x38f2e8,_0x464cc4,_0x5d4973)=>{const _0x20d90f=_0x1edc96;if(_0x20d90f(0xc4)!=_0x464cc4[_0x20d90f(0xf5)][_0x20d90f(0x105)]&&_0x20d90f(0xc4)==_0x2beebb[_0x20d90f(0xd2)]()[_0x20d90f(0xf5)][_0x20d90f(0x105)]&&!_0x31990f[_0x20d90f(0xb3)](_0x2beebb[_0x20d90f(0x107)])){const _0x495524=_0x58a56e[_0x20d90f(0xce)][_0x20d90f(0xc7)](_0x5d4973[_0x20d90f(0xcf)]);if(_0x495524){const _0x41f904=_0xb74ad6[_0x20d90f(0x10a)](_0x495524);_0x31990f[_0x20d90f(0xc3)](_0x2beebb[_0x20d90f(0x107)],_0x41f904),_0x41f904['on'](_0x20d90f(0x9e),(_0x2be239,_0x485348,_0x19b9b6)=>{const _0x120161=_0x20d90f;if(_0x120161(0xc4)==_0x41f904[_0x120161(0xf5)][_0x120161(0x105)]){const _0x25fcf5=_0x58a56e[_0x120161(0xce)][_0x120161(0xc7)](_0x19b9b6[_0x120161(0xcf)]);_0x25fcf5?(_0x41f904[_0x120161(0xfa)]=_0x25fcf5[_0x120161(0xfa)],_0x41f904[_0x120161(0xec)]=_0x25fcf5[_0x120161(0xec)]):(_0x31990f[_0x120161(0xbc)](_0x2beebb[_0x120161(0x107)]),_0x41f904[_0x120161(0xd3)]());}});}}});}),_0x58a56e[_0x36b3bf(0xe9)]['on'](_0x36b3bf(0x111),()=>{const _0x35eb4a=_0x36b3bf;_0x31990f[_0x35eb4a(0xf1)]>0x0&&_0x58a56e[_0x35eb4a(0xcc)]({'isUndoable':!0x1},_0x180d1b=>{const _0x162a67=_0x35eb4a;for(const [_0x6bdf8e,_0x46c887]of _0x31990f)_0x162a67(0xc4)==_0x58a56e[_0x162a67(0xbf)][_0x162a67(0xef)](_0x6bdf8e)[_0x162a67(0xd2)]()[_0x162a67(0xf5)][_0x162a67(0x105)]&&(G(_0x6bdf8e[_0x162a67(0xd1)](':')[0x2],_0x46c887[_0x162a67(0xc0)](),_0x58a56e,_0x180d1b),_0x46c887[_0x162a67(0xd3)]());_0x31990f[_0x162a67(0xdc)]();});});}(_0x49d60e),this[_0x5223fe(0x117)][_0x5223fe(0xd5)](_0x52414e[_0x5223fe(0xe9)],_0x5223fe(0x10f),(_0x23b6e3,{key:_0xc992dd})=>{const _0x458aac=_0x5223fe;_0x458aac(0x9b)===_0xc992dd&&function(_0x529334){const _0x1d33ac=_0x458aac;_0x529334[_0x1d33ac(0x94)][_0x1d33ac(0xfb)][_0x1d33ac(0x111)](_0x49fad3=>{const _0x588884=_0x1d33ac;for(const _0x34fb28 of _0x529334[_0x588884(0xf2)][_0x588884(0xbf)]){if(!_0x34fb28[_0x588884(0x107)][_0x588884(0xab)](_0x588884(0xde)))continue;const _0x30ab19=_0x529334[_0x588884(0x94)][_0x588884(0xdf)][_0x588884(0x8f)](_0x34fb28[_0x588884(0x107)]);if(_0x30ab19){for(const _0x1b1387 of _0x30ab19)_0x49fad3[_0x588884(0xd6)](_0x588884(0x110),_0x1b1387);}}});}(_0x49d60e);},{'useCapture':!0x0});}[_0x8e73bb(0x112)](){const _0x534ec3=_0x8e73bb,_0x1ba805=this[_0x534ec3(0x10d)],_0x51ab8e=_0x1ba805[_0x534ec3(0xa8)][_0x534ec3(0xef)](_0x534ec3(0xeb));_0x51ab8e&&_0x1ba805[_0x534ec3(0xf2)]['on'](_0x534ec3(0xd9),(_0x36687d,_0x44c68b)=>{const _0x113824=_0x534ec3,_0x57f6e9=_0x44c68b[0x0];if(!_0x57f6e9[_0x113824(0xb0)])return;if(_0x113824(0x93)!=_0x57f6e9[_0x113824(0xd8)]||!_0x57f6e9[_0x113824(0x107)][_0x113824(0xab)](_0x113824(0x106)))return;const _0xfcd17b=_0x57f6e9[_0x113824(0xcd)];_0x51ab8e[_0x113824(0xc1)][_0x113824(0xb3)](_0xfcd17b)&&(_0x57f6e9[_0x113824(0x116)]=_0x57f6e9[_0x113824(0x115)]?_0x1ba805[_0x113824(0xf2)][_0x113824(0xe7)](_0x57f6e9[_0x113824(0x115)][_0x113824(0xfa)],_0x57f6e9[_0x113824(0x115)][_0x113824(0xec)]):null);},{'priority':_0x534ec3(0xd4)});}[_0x8e73bb(0xe6)](){const _0x1ab957=_0x8e73bb;return this[_0x1ab957(0x117)][_0x1ab957(0xd7)](),super[_0x1ab957(0xe6)]();}[_0x8e73bb(0xf3)](){const _0x39194d=_0x8e73bb,_0x444686=this[_0x39194d(0x10d)],_0x66ab99=_0x444686[_0x39194d(0xf2)][_0x39194d(0xe9)],_0x1c5937=_0x444686[_0x39194d(0xed)][_0x39194d(0xef)](_0x178672);_0x444686[_0x39194d(0xf2)][_0x39194d(0xcc)]({'isUndoable':!0x1},_0x3d350d=>{const _0x262683=_0x39194d,_0x19b6de=_0x262683(0xe4)+_0x1c5937[_0x262683(0xc8)],_0x5d0e9c=_0x262683(0x102)+_0x1c5937[_0x262683(0xc8)],_0x4e4f54=_0x444686[_0x262683(0xf2)][_0x262683(0xbf)][_0x262683(0xb3)](_0x19b6de);_0x444686[_0x262683(0x94)][_0x262683(0xfb)][_0x262683(0x90)]?G(_0x1c5937[_0x262683(0xc8)],_0x66ab99[_0x262683(0x97)][_0x262683(0xf6)](),_0x444686[_0x262683(0xf2)],_0x3d350d):_0x4e4f54&&(_0x3d350d[_0x262683(0xf4)](_0x19b6de),_0x3d350d[_0x262683(0xf4)](_0x5d0e9c));});}}function G(_0x4015c8,_0x42dd2a,_0x4dcbef,_0x57c94a){const _0xa26070=_0x8e73bb,_0x575717=_0xa26070(0xe4)+_0x4015c8,_0x3f0954=_0xa26070(0x102)+_0x4015c8,_0x2dcff6=_0x42dd2a[_0xa26070(0xe0)]();let _0x16d9f4=_0x42dd2a[_0xa26070(0xfa)];if(_0x2dcff6&&_0x2dcff6['is'](_0xa26070(0xbb),_0xa26070(0xb8))){const _0x1da6fc=function(_0x1b89a0,_0x1974b3){const _0x74fd34=_0xa26070;for(const _0x2991d7 of _0x1b89a0[_0x74fd34(0x9a)]())if(_0x1974b3[_0x74fd34(0xce)][_0x74fd34(0x91)](_0x2991d7,_0x74fd34(0xa7)))return _0x2991d7;}(_0x42dd2a,_0x4dcbef);_0x1da6fc&&(_0x16d9f4=_0x1da6fc,_0x42dd2a=_0x57c94a[_0xa26070(0xe7)](_0x16d9f4));}const _0x1a3eb3=_0x57c94a[_0xa26070(0xe7)](_0x16d9f4);_0x4dcbef[_0xa26070(0xbf)][_0xa26070(0xb3)](_0x575717)?(_0x57c94a[_0xa26070(0xfd)](_0x575717,{'range':_0x42dd2a}),_0x57c94a[_0xa26070(0xfd)](_0x3f0954,{'range':_0x1a3eb3})):(_0x57c94a[_0xa26070(0xe8)](_0x575717,{'range':_0x42dd2a,'usingOperation':!0x0}),_0x57c94a[_0xa26070(0xe8)](_0x3f0954,{'range':_0x1a3eb3,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x2d21bb=_0x1d49;function _0x1d49(_0x38c5f3,_0x4482e1){const _0x431793=_0x4317();return _0x1d49=function(_0x1d4907,_0x5c34e2){_0x1d4907=_0x1d4907-0x110;let _0xa66f3b=_0x431793[_0x1d4907];return _0xa66f3b;},_0x1d49(_0x38c5f3,_0x4482e1);}(function(_0x5b9950,_0x141888){const _0x2a2bf1=_0x1d49,_0x46664e=_0x5b9950();while(!![]){try{const _0x391465=parseInt(_0x2a2bf1(0x148))/0x1+parseInt(_0x2a2bf1(0x128))/0x2+parseInt(_0x2a2bf1(0x118))/0x3+parseInt(_0x2a2bf1(0x119))/0x4*(parseInt(_0x2a2bf1(0x14c))/0x5)+parseInt(_0x2a2bf1(0x13e))/0x6*(parseInt(_0x2a2bf1(0x131))/0x7)+-parseInt(_0x2a2bf1(0x149))/0x8*(-parseInt(_0x2a2bf1(0x14e))/0x9)+parseInt(_0x2a2bf1(0x12b))/0xa*(-parseInt(_0x2a2bf1(0x154))/0xb);if(_0x391465===_0x141888)break;else _0x46664e['push'](_0x46664e['shift']());}catch(_0xa4b1ee){_0x46664e['push'](_0x46664e['shift']());}}}(_0x4317,0x80b7a));function _0x4317(){const _0x44e59f=['online','all','get','removeFromReconnectionStack','98007uxOtuC','destroy','token','websocketgateway-plugin-already-registered','cloudservices-init','from','_reconnectionStack','set','error','showWarning','isOfficialPlugin','state','code','234yJdgrC','init','real-time-collaboration','isPremiumPlugin','connected','_reconnect','pluginName','cloudServices.requestTimeout','add','change:me','616539Fnnjsb','1712QkjTXy','limitExceeded','addToReconnectionStack','5105WFijOn','CONNECTING','27558gEhrAu','reconnect','define','config','_shouldPluginsReconnect','initialReconnectionInterval','11gUnXmq','function','context','_domEmitter','connect','stopListening','websocketgateway-missing-token','listenTo','DISCONNECTED','catch','has','webSocketUrl','cloudservices-reconnection-error','websocketgateway-invalid-plugin-interface','delete','2010924xRsXIm','380RRAKSH','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','Connected\x20users\x20limit\x20exceeded','plugins','disconnect','CloudServices','requires','_isBrowserOffline','isInReconnectionStack','WebSocketGateway','cloudServices.connectionTimeout','CONNECTED','websocketgateway-missing-websocket-url','bind','connection','1531830QKZknH','offline','then','28238380fZqkBr','constructor'];_0x4317=function(){return _0x44e59f;};return _0x4317();}import{ContextPlugin as _0x4a03c6}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x2868ac,CKEditorError as _0x46fce8}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x40fb9d,WEB_SOCKET_GATEWAY_STATES as _0x2c523b}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x197922}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x4a03c6{static [_0x2d21bb(0x122)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x40fb9d)());static [_0x2d21bb(0x153)]=0x3e8;[_0x2d21bb(0x127)];[_0x2d21bb(0x137)];[_0x2d21bb(0x152)];[_0x2d21bb(0x157)];static get[_0x2d21bb(0x11f)](){const _0x9992fd=_0x2d21bb;return[_0x9992fd(0x11e),_0x197922];}static get[_0x2d21bb(0x144)](){const _0x388555=_0x2d21bb;return _0x388555(0x122);}static get[_0x2d21bb(0x13b)](){return!0x0;}static get[_0x2d21bb(0x141)](){return!0x0;}constructor(_0x1bc636){const _0x2fc60b=_0x2d21bb;super(_0x1bc636),this[_0x2fc60b(0x138)](_0x2fc60b(0x13c),_0x2c523b[_0x2fc60b(0x124)]),this[_0x2fc60b(0x138)](_0x2fc60b(0x120),!0x1),this[_0x2fc60b(0x137)]=new Set(),this[_0x2fc60b(0x152)]=!0x1,this[_0x2fc60b(0x157)]=new(_0x2868ac())();}[_0x2d21bb(0x13f)](){const _0x316615=_0x2d21bb,_0x3b41bb=this[_0x316615(0x156)],_0x184270=_0x3b41bb[_0x316615(0x11c)][_0x316615(0x12f)](_0x316615(0x11e)),_0x187db4=_0x3b41bb[_0x316615(0x11c)][_0x316615(0x12f)](_0x197922);if(!_0x184270[_0x316615(0x133)])throw new _0x46fce8(_0x316615(0x15a),this);if(!_0x184270[_0x316615(0x114)])throw new _0x46fce8(_0x316615(0x125),this);return this[_0x316615(0x157)][_0x316615(0x110)](window,_0x316615(0x129),()=>this[_0x316615(0x120)]=!0x0),this[_0x316615(0x157)][_0x316615(0x110)](window,_0x316615(0x12d),()=>this[_0x316615(0x120)]=!0x1),this[_0x316615(0x156)][_0x316615(0x151)][_0x316615(0x150)](_0x316615(0x123),0xa),this[_0x316615(0x156)][_0x316615(0x151)][_0x316615(0x150)](_0x316615(0x145),0x14),WebSocketGateway[_0x316615(0x122)][_0x316615(0x158)](_0x184270[_0x316615(0x133)],_0x184270[_0x316615(0x114)],{'timeout':0x3e8*this[_0x316615(0x156)][_0x316615(0x151)][_0x316615(0x12f)](_0x316615(0x123)),'requestTimeout':0x3e8*this[_0x316615(0x156)][_0x316615(0x151)][_0x316615(0x12f)](_0x316615(0x145))})[_0x316615(0x12a)](_0x2b3f34=>{const _0x50270c=_0x316615;if(this[_0x50270c(0x127)]=_0x2b3f34,this[_0x50270c(0x126)](_0x50270c(0x13c))['to'](_0x2b3f34,_0x50270c(0x13c),this,_0x50270c(0x120),(_0x437b5b,_0xde88cf)=>(_0x50270c(0x142)!==_0x437b5b&&(this[_0x50270c(0x152)]=!0x0),_0xde88cf||_0x437b5b!==_0x2c523b[_0x50270c(0x124)]?_0x2c523b[_0x50270c(0x111)]:this[_0x50270c(0x13c)]==_0x2c523b[_0x50270c(0x111)]&&this[_0x50270c(0x152)]?(this[_0x50270c(0x152)]=!0x1,this[_0x50270c(0x143)](),_0x2c523b[_0x50270c(0x14d)]):_0x2c523b[_0x50270c(0x124)])),this[_0x50270c(0x127)]['on'](_0x50270c(0x139),(_0x2c227d,_0x3f9c65)=>{const _0xa4885=_0x50270c;if(_0xa4885(0x14a)!==_0x3f9c65[_0xa4885(0x13d)])throw console[_0xa4885(0x139)](_0x3f9c65),new _0x46fce8(_0xa4885(0x135),null,{'originalError':_0x3f9c65});_0x187db4[_0xa4885(0x13a)](_0xa4885(0x11a),{'title':_0xa4885(0x11b),'namespace':_0xa4885(0x140)});}),!_0x2b3f34['me'])return new Promise(_0x77f5d9=>_0x2b3f34['on'](_0x50270c(0x147),_0x77f5d9));})[_0x316615(0x112)](_0x4919e4=>{const _0x315041=_0x316615;throw console[_0x315041(0x139)](_0x4919e4),new _0x46fce8(_0x315041(0x135),null,{'originalError':_0x4919e4});});}[_0x2d21bb(0x14b)](_0x24ec1d){const _0x3dfe88=_0x2d21bb;if(_0x3dfe88(0x155)!=typeof _0x24ec1d[_0x3dfe88(0x14f)])throw new _0x46fce8(_0x3dfe88(0x116),this);if(this[_0x3dfe88(0x121)](_0x24ec1d))throw new _0x46fce8(_0x3dfe88(0x134),this,{'name':_0x24ec1d[_0x3dfe88(0x12c)][_0x3dfe88(0x144)]});this[_0x3dfe88(0x137)][_0x3dfe88(0x146)](_0x24ec1d);}[_0x2d21bb(0x130)](_0x250ae1){const _0x33d6a9=_0x2d21bb;this[_0x33d6a9(0x137)][_0x33d6a9(0x117)](_0x250ae1);}[_0x2d21bb(0x121)](_0x567e69){const _0x542db3=_0x2d21bb;return this[_0x542db3(0x137)][_0x542db3(0x113)](_0x567e69);}[_0x2d21bb(0x143)](){const _0x28f6c4=_0x2d21bb;return this[_0x28f6c4(0x127)][_0x28f6c4(0x14f)]()[_0x28f6c4(0x12a)](()=>Promise[_0x28f6c4(0x12e)](Array[_0x28f6c4(0x136)](this[_0x28f6c4(0x137)],_0x520fae=>_0x520fae[_0x28f6c4(0x14f)]())))[_0x28f6c4(0x12a)](()=>this[_0x28f6c4(0x13c)]=_0x2c523b[_0x28f6c4(0x124)])[_0x28f6c4(0x112)](_0x4a9972=>{const _0x588e6e=_0x28f6c4;throw console[_0x588e6e(0x139)](_0x4a9972),new _0x46fce8(_0x588e6e(0x115),this[_0x588e6e(0x156)]);});}[_0x2d21bb(0x11d)](){const _0x3bf38c=_0x2d21bb;this[_0x3bf38c(0x127)]&&this[_0x3bf38c(0x127)][_0x3bf38c(0x11d)](),this[_0x3bf38c(0x13c)]=_0x2c523b[_0x3bf38c(0x111)],this[_0x3bf38c(0x157)][_0x3bf38c(0x159)]();}[_0x2d21bb(0x132)](){const _0x1ee63b=_0x2d21bb;this[_0x1ee63b(0x11d)](),super[_0x1ee63b(0x132)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>_0x3ff0fc)());[_0x566b03(0x21d)];[_0x566b03(0x1fb)];[_0x566b03(0x1f3)];[_0x566b03(0x206)];static get[_0x566b03(0x223)](){const _0x374805=_0x566b03;return[_0x5831a1,_0xfa9573,_0x374805(0x1e2),_0x44326c,_0x4f063c];}static get[_0x566b03(0x1ce)](){const _0x22c400=_0x566b03;return _0x22c400(0x21a);}static get[_0x566b03(0x1e1)](){return!0x0;}static get[_0x566b03(0x20a)](){return!0x0;}constructor(_0x50b9f){const _0x1ce925=_0x566b03;super(_0x50b9f);const _0x10e8c6=this[_0x1ce925(0x1bf)][_0x1ce925(0x1e9)][_0x1ce925(0x1ba)](_0x1ce925(0x1f6));this[_0x1ce925(0x21d)]=null,this[_0x1ce925(0x1fb)]=this[_0x1ce925(0x1bf)][_0x1ce925(0x203)][_0x1ce925(0x1ba)](_0x1ce925(0x1e0)),this[_0x1ce925(0x1f3)]=new CloudServicesRevisionHistoryAdapter[(_0x1ce925(0x1f9))](_0x10e8c6);}async[_0x566b03(0x1e4)](){const _0x586eac=_0x566b03,_0xe86ae4=this[_0x586eac(0x1bf)][_0x586eac(0x203)][_0x586eac(0x1ba)](_0xfa9573),_0x2cb36e=_0xe86ae4[_0x586eac(0x1c9)],_0x42252a=this[_0x586eac(0x1bf)][_0x586eac(0x203)][_0x586eac(0x1ba)](_0x5831a1);this[_0x586eac(0x1fb)][_0x586eac(0x216)]({'history':_0x2cb36e,'getLatestVersion':()=>this[_0x586eac(0x217)](),'getCurrentRevisionId':()=>_0xe86ae4[_0x586eac(0x224)]});const _0x59cd9b=this[_0x586eac(0x1bf)][_0x586eac(0x1e9)][_0x586eac(0x1ba)](_0x586eac(0x209))||_0x2d8219,_0x358405=await _0x443a57[_0x586eac(0x1fc)](_0x42252a[_0x586eac(0x1dd)],_0x59cd9b);this[_0x586eac(0x1bf)][_0x586eac(0x203)][_0x586eac(0x1ba)](_0x586eac(0x1e2))[_0x586eac(0x1d4)]={'getRevision':async({revisionId:_0x57428b})=>(await this[_0x586eac(0x1b9)](),await this[_0x586eac(0x1f3)][_0x586eac(0x21e)](_0x57428b)),'updateRevisions':async _0x2f1ada=>{const _0x29a1fa=_0x586eac;await this[_0x29a1fa(0x1b9)]();const _0x24597a=this[_0x29a1fa(0x1fb)][_0x29a1fa(0x1b3)];if(_0x358405&&0x1===_0x2f1ada[_0x29a1fa(0x202)]&&_0x2f1ada[0x0]['id']===_0x24597a['id'])return _0x2f1ada;for(const _0x42c08f of _0x2f1ada)_0x42c08f['id']===_0x24597a['id']&&(_0x42c08f[_0x29a1fa(0x1ec)]=_0x42c08f[_0x29a1fa(0x20b)]===_0x42c08f[_0x29a1fa(0x1f1)]);return this[_0x29a1fa(0x1f3)][_0x29a1fa(0x215)](_0x2f1ada,this[_0x29a1fa(0x21d)])[_0x29a1fa(0x1b6)](_0x5af34a=>(this[_0x29a1fa(0x21d)]=_0x5af34a,_0x2f1ada))[_0x29a1fa(0x1ed)](_0x4102db=>{const _0x4f727b=_0x29a1fa;if(q(_0x4102db)||_0x4f727b(0x1fd)===_0x4102db[_0x4f727b(0x207)]&&void 0x0!==_0x4102db[_0x4f727b(0x1fe)][_0x4f727b(0x1b0)]){for(const _0x180038 of _0x2f1ada){!this[_0x4f727b(0x1fb)][_0x4f727b(0x218)][_0x4f727b(0x21e)](_0x180038['id'])||this[_0x4f727b(0x1fb)][_0x4f727b(0x1be)](_0x180038['id'],_0x180038,!0x1);}if(q(_0x4102db))throw _0x4102db;return _0x2f1ada;}throw _0x4102db;});}},this[_0x586eac(0x1ef)](this[_0x586eac(0x1f3)],_0x586eac(0x1cc),(_0x280096,{revisionsData:_0x320b92,requestId:_0x390b85})=>{const _0x1ef1db=_0x586eac;Math[_0x1ef1db(0x1e8)](..._0x320b92[_0x1ef1db(0x1b5)](_0x463624=>_0x463624[_0x1ef1db(0x1f1)]))>this[_0x1ef1db(0x1cd)]()-0x1?this[_0x1ef1db(0x217)]()[_0x1ef1db(0x1b6)](()=>{const _0x103423=_0x1ef1db;this[_0x103423(0x1f2)](_0x320b92,_0x390b85);}):this[_0x1ef1db(0x1f2)](_0x320b92,_0x390b85);});const {revisions:_0x2be5da,requestId:_0x57bfe3}=await this[_0x586eac(0x1f3)][_0x586eac(0x1f4)](_0x42252a[_0x586eac(0x1dd)]);_0x42252a[_0x586eac(0x1c6)](this),this[_0x586eac(0x21d)]=_0x57bfe3,await this[_0x586eac(0x21c)](_0x2be5da);for(const _0x57fc07 of _0x2be5da)this[_0x586eac(0x1fb)][_0x586eac(0x1dc)](_0x57fc07);this[_0x586eac(0x1ef)](_0xe86ae4,_0x586eac(0x1eb),(_0x4ffca5,_0x4e1d70,_0x77d8c8)=>{const _0x22705e=_0x586eac;_0x77d8c8&&(this[_0x22705e(0x206)]=_0xe86ae4[_0x22705e(0x220)],_0x4ffca5[_0x22705e(0x1bb)]());}),this[_0x586eac(0x1fb)][_0x586eac(0x1ae)](_0x586eac(0x20f))['to'](_0x42252a,_0x586eac(0x1b7),_0x38cbd8=>_0x38cbd8===_0x19ee5b[_0x586eac(0x208)]);}async[_0x566b03(0x212)](){const _0x55856a=_0x566b03,_0x37e4e8=this[_0x55856a(0x1bf)][_0x55856a(0x203)][_0x55856a(0x1ba)](_0x5831a1),_0x5c3e5f=this[_0x55856a(0x1bf)][_0x55856a(0x203)][_0x55856a(0x1ba)](_0xfa9573),_0x36e410=async()=>{const _0x39cdca=_0x55856a,_0x3230d1=this[_0x39cdca(0x1fb)][_0x39cdca(0x1b3)],_0x8c5e81=_0x3230d1['id'],_0x1d95fc=_0x8c5e81!==_0x5c3e5f[_0x39cdca(0x224)];if(_0x1d95fc){const _0x21fbf2=_0x5c3e5f[_0x39cdca(0x220)]-this[_0x39cdca(0x206)],_0xe29307=this[_0x39cdca(0x1cd)]();this[_0x39cdca(0x1fb)][_0x39cdca(0x1c4)][_0x39cdca(0x1d2)]();if(_0x3230d1[_0x39cdca(0x1f1)]+_0x21fbf2!==_0xe29307){const _0x30325d=_0x3230d1[_0x39cdca(0x20b)]+_0x21fbf2,_0x46c6f0=this[_0x39cdca(0x1bf)][_0x39cdca(0x203)][_0x39cdca(0x1ba)](_0x4f063c),_0x2ffea6=this[_0x39cdca(0x1fb)][_0x39cdca(0x1de)]({'revision':_0x3230d1,'from':_0x30325d,'to':_0xe29307});_0x2ffea6['id']=_0x3230d1['id'];const _0x1ae4eb=_0x2ffea6[_0x39cdca(0x214)][_0x39cdca(0x1b5)](_0x36bfbf=>_0x46c6f0[_0x39cdca(0x21b)](_0x36bfbf));_0x3230d1[_0x39cdca(0x219)]({..._0x2ffea6,'authors':_0x1ae4eb},!0x0),this[_0x39cdca(0x1fb)][_0x39cdca(0x1be)](_0x3230d1['id'],_0x2ffea6,!0x0);}this[_0x39cdca(0x1fb)][_0x39cdca(0x1d0)]=_0xe29307,(_0x3230d1[_0x39cdca(0x1f1)]===_0x3230d1[_0x39cdca(0x20b)]&&!this[_0x39cdca(0x1fb)][_0x39cdca(0x1cf)][_0x39cdca(0x20c)](_0x8c5e81)&&this[_0x39cdca(0x1fb)][_0x39cdca(0x218)][_0x39cdca(0x1c1)][_0x39cdca(0x205)](_0x8c5e81),this[_0x39cdca(0x1fb)][_0x39cdca(0x1d5)](_0xe29307));}const {revisions:_0x33cfe3,requestId:_0x50f30d}=await this[_0x39cdca(0x1f3)][_0x39cdca(0x212)](_0x37e4e8[_0x39cdca(0x1dd)],this[_0x39cdca(0x21d)]);_0x1d95fc&&_0x33cfe3[_0x39cdca(0x202)]>0x0?_0x5c3e5f[_0x39cdca(0x1e5)]():(await this[_0x39cdca(0x21c)](_0x33cfe3),this[_0x39cdca(0x1f2)](_0x33cfe3,_0x50f30d),this[_0x39cdca(0x1fb)][_0x39cdca(0x20e)]());};return _0x5c3e5f[_0x55856a(0x1c5)]?_0x36e410():new Promise((_0xb08efd,_0x4e7211)=>{const _0x461e09=_0x55856a;_0x5c3e5f[_0x461e09(0x1e6)](_0x461e09(0x1eb),()=>{const _0x16e786=_0x461e09;_0x36e410()[_0x16e786(0x1b6)](_0xb08efd)[_0x16e786(0x1ed)](_0x4e7211);});});}[_0x566b03(0x1f0)](){const _0x40c097=_0x566b03;super[_0x40c097(0x1f0)]();}async[_0x566b03(0x1b9)](){const _0x1b8c7e=_0x566b03;this[_0x1b8c7e(0x1f3)][_0x1b8c7e(0x1d8)]||await new Promise(_0x488e4a=>{const _0x362c71=_0x1b8c7e;this[_0x362c71(0x1ef)](this[_0x362c71(0x1f3)],_0x362c71(0x21f),_0x1d41aa=>{const _0x2b2245=_0x362c71;_0x1d41aa[_0x2b2245(0x1bb)](),_0x488e4a();});});}[_0x566b03(0x1cd)](){const _0x8c3f49=_0x566b03,_0x180475=this[_0x8c3f49(0x1bf)][_0x8c3f49(0x203)][_0x8c3f49(0x1ba)](_0xfa9573)[_0x8c3f49(0x1c9)][_0x8c3f49(0x1f7)]()[_0x8c3f49(0x1df)]();for(const _0x4beac6 of _0x180475)if(_0x8c3f49(0x20d)!==_0x4beac6[_0x8c3f49(0x1db)]||_0x4beac6[_0x8c3f49(0x1b4)])return _0x4beac6[_0x8c3f49(0x1b8)]+0x1;}[_0x566b03(0x217)](){const _0x83451=_0x566b03,_0x9f27b7=this[_0x83451(0x1bf)][_0x83451(0x203)][_0x83451(0x1ba)](_0xfa9573);return new Promise(_0x1fddc0=>{const _0x15c9b3=_0x83451;_0x9f27b7[_0x15c9b3(0x1da)]?_0x9f27b7[_0x15c9b3(0x1e6)](_0x15c9b3(0x213),()=>{const _0x1a64b6=_0x15c9b3;_0x1fddc0(this[_0x1a64b6(0x1cd)]());}):_0x1fddc0(this[_0x15c9b3(0x1cd)]());});}[_0x566b03(0x1f2)](_0x533a3d,_0x30404b){const _0xeb1ab9=_0x566b03,_0x24411d=this[_0xeb1ab9(0x1fb)][_0xeb1ab9(0x218)];this[_0xeb1ab9(0x21d)]=_0x30404b;for(const _0x936938 of _0x533a3d){const _0x29c2af=_0x24411d[_0xeb1ab9(0x21e)](_0x936938['id']);if(_0x29c2af){if((_0x936938[_0xeb1ab9(0x20b)]||_0x936938[_0xeb1ab9(0x1f1)])&&(_0x936938[_0xeb1ab9(0x1bc)]=null),_0x29c2af===this[_0xeb1ab9(0x1fb)][_0xeb1ab9(0x1b3)]){const _0x542555=Math[_0xeb1ab9(0x1e8)](_0x29c2af[_0xeb1ab9(0x1f1)],_0x936938[_0xeb1ab9(0x1f1)]),_0x12e611=Math[_0xeb1ab9(0x1e8)](_0x29c2af[_0xeb1ab9(0x20b)],_0x936938[_0xeb1ab9(0x20b)]);let _0x3e9c48;_0x29c2af[_0xeb1ab9(0x1f1)]===_0x936938[_0xeb1ab9(0x1f1)]&&_0x29c2af[_0xeb1ab9(0x20b)]===_0x936938[_0xeb1ab9(0x20b)]?(_0x3e9c48=!0x0,this[_0xeb1ab9(0x1d6)](_0x936938)):_0x936938[_0xeb1ab9(0x1f1)]===_0x542555&&_0x936938[_0xeb1ab9(0x20b)]===_0x12e611?_0x3e9c48=!0x1:(_0x29c2af[_0xeb1ab9(0x1f1)]===_0x542555&&_0x29c2af[_0xeb1ab9(0x20b)]===_0x12e611||this[_0xeb1ab9(0x1af)]({'revision':_0x29c2af,'from':_0x12e611,'to':_0x542555}),_0x3e9c48=!0x0),_0x3e9c48&&(delete _0x936938[_0xeb1ab9(0x20b)],delete _0x936938[_0xeb1ab9(0x1f1)],delete _0x936938[_0xeb1ab9(0x1bc)],delete _0x936938[_0xeb1ab9(0x1ca)],delete _0x936938[_0xeb1ab9(0x214)]);}this[_0xeb1ab9(0x1fb)][_0xeb1ab9(0x1ea)](_0x936938),this[_0xeb1ab9(0x1d6)](_0x936938);}else this[_0xeb1ab9(0x1fb)][_0xeb1ab9(0x1dc)](_0x936938);}const _0x3d367b=_0x24411d[_0xeb1ab9(0x1f8)]();_0x3d367b[_0xeb1ab9(0x1df)]();for(let _0x2590b5=0x0;_0x2590b5<_0x3d367b[_0xeb1ab9(0x202)]-0x1;_0x2590b5++){const _0x381363=_0x3d367b[_0x2590b5],_0x33e69d=_0x3d367b[_0x2590b5+0x1];if(_0x381363[_0xeb1ab9(0x20b)]<_0x33e69d[_0xeb1ab9(0x1f1)]){const _0x2f1619=_0x33e69d[_0xeb1ab9(0x1f1)],_0x1a7f5f=Math[_0xeb1ab9(0x1e8)](_0x2f1619,_0x381363[_0xeb1ab9(0x1f1)]);this[_0xeb1ab9(0x1af)]({'revision':_0x381363,'from':_0x2f1619,'to':_0x1a7f5f});}}}[_0x566b03(0x1af)]({revision:_0x37f4b1,from:_0x12ad84,to:_0x4f49b5}={}){const _0x1a70ba=_0x566b03,_0x36a663=this[_0x1a70ba(0x1bf)][_0x1a70ba(0x203)][_0x1a70ba(0x1ba)](_0x4f063c),_0x5f3a84=this[_0x1a70ba(0x1fb)][_0x1a70ba(0x1de)]({'revision':_0x37f4b1,'from':_0x12ad84,'to':_0x4f49b5});_0x5f3a84[_0x1a70ba(0x1c0)]=_0x5f3a84[_0x1a70ba(0x214)][_0x1a70ba(0x1b5)](_0x48d7d4=>_0x36a663[_0x1a70ba(0x21b)](_0x48d7d4)),_0x37f4b1[_0x1a70ba(0x219)](_0x5f3a84);}[_0x566b03(0x1d6)](_0x3bf9ba){const _0x3c4d77=_0x566b03,_0x487c02={};_0x487c02['id']=_0x3bf9ba['id'];for(const _0xf5cf3c of Object[_0x3c4d77(0x1bd)](_0x3bf9ba))'id'!==_0xf5cf3c&&(_0x487c02[_0xf5cf3c]=void 0x0);this[_0x3c4d77(0x1fb)][_0x3c4d77(0x1be)](_0x487c02['id'],_0x487c02,!0x0);}async[_0x566b03(0x21c)](_0x46337f){const _0x53ba7c=_0x566b03,_0x36aa64=this[_0x53ba7c(0x1bf)][_0x53ba7c(0x203)][_0x53ba7c(0x1ba)](_0x4f063c),{connection:_0x247224}=this[_0x53ba7c(0x1bf)][_0x53ba7c(0x203)][_0x53ba7c(0x1ba)](_0x5831a1),_0x354800=new Set();for(const _0x486321 of _0x46337f){for(const _0x516dc3 of _0x486321[_0x53ba7c(0x214)])_0x130205(_0x516dc3);_0x486321[_0x53ba7c(0x1e3)]&&_0x130205(_0x486321[_0x53ba7c(0x1e3)]);}if(0x0===_0x354800[_0x53ba7c(0x1d9)])return;const _0x787066=await _0x530270[_0x53ba7c(0x1d1)](_0x247224,Array[_0x53ba7c(0x1b1)](_0x354800));for(const _0x1fd412 of _0x787066)_0x36aa64[_0x53ba7c(0x21b)](_0x1fd412['id'])||_0x36aa64[_0x53ba7c(0x1b2)](_0x1fd412);function _0x130205(_0x210c9b){const _0x17b1b4=_0x53ba7c;_0x36aa64[_0x17b1b4(0x21b)](_0x210c9b)||_0x354800[_0x17b1b4(0x200)](_0x210c9b);}}}function q(_0x56ca91){const _0x223feb=_0x566b03;return _0x56ca91[_0x223feb(0x1ee)][_0x223feb(0x1e7)](_0x223feb(0x1fa))||_0x56ca91[_0x223feb(0x1ee)][_0x223feb(0x1e7)](_0x223feb(0x1f5))||_0x56ca91[_0x223feb(0x1ee)][_0x223feb(0x1e7)](_0x223feb(0x1c8));}
|
|
23
|
+
const _0x365893=_0xb9d5;(function(_0x40f827,_0x39d692){const _0x3dca3e=_0xb9d5,_0x547e83=_0x40f827();while(!![]){try{const _0x4963e0=parseInt(_0x3dca3e(0xf1))/0x1*(parseInt(_0x3dca3e(0xd4))/0x2)+-parseInt(_0x3dca3e(0xd5))/0x3*(parseInt(_0x3dca3e(0xc9))/0x4)+-parseInt(_0x3dca3e(0xbd))/0x5+parseInt(_0x3dca3e(0x11d))/0x6+-parseInt(_0x3dca3e(0xef))/0x7+-parseInt(_0x3dca3e(0x101))/0x8*(parseInt(_0x3dca3e(0xe4))/0x9)+-parseInt(_0x3dca3e(0xf0))/0xa*(-parseInt(_0x3dca3e(0xcd))/0xb);if(_0x4963e0===_0x39d692)break;else _0x547e83['push'](_0x547e83['shift']());}catch(_0xd42353){_0x547e83['push'](_0x547e83['shift']());}}}(_0x3bb9,0xb017c));import{Plugin as _0x5c2c99}from'ckeditor5/src/core.js';import{version as _0x331c85}from'ckeditor5/src/utils.js';import{Users as _0x14a78d}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x589bda}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x1ced0b}from'../realtimecollaborativeediting/websocketgateway.js';function _0xb9d5(_0x26cc25,_0x1f04ec){const _0x3bb9ca=_0x3bb9();return _0xb9d5=function(_0xb9d5b6,_0x42c536){_0xb9d5b6=_0xb9d5b6-0xbc;let _0x34bfc3=_0x3bb9ca[_0xb9d5b6];return _0x34bfc3;},_0xb9d5(_0x26cc25,_0x1f04ec);}import{Sessions as _0x38cdb0}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x34662b,RevisionHistoryService as _0x49e3dd,User as _0x4c0d81,WEB_SOCKET_GATEWAY_STATES as _0x3e6032}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x5c2c99{static [_0x365893(0xea)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x49e3dd)());[_0x365893(0xdc)];[_0x365893(0xe7)];[_0x365893(0x105)];[_0x365893(0x12f)];static get[_0x365893(0xd1)](){const _0x20c6ed=_0x365893;return[_0x1ced0b,_0x589bda,_0x20c6ed(0xe0),_0x38cdb0,_0x14a78d];}static get[_0x365893(0xcf)](){const _0x1adbc8=_0x365893;return _0x1adbc8(0xee);}static get[_0x365893(0x10f)](){return!0x0;}static get[_0x365893(0x125)](){return!0x0;}constructor(_0x1c6564){const _0x4b76e2=_0x365893;super(_0x1c6564);const _0x1ad15d=this[_0x4b76e2(0xbc)][_0x4b76e2(0xfd)][_0x4b76e2(0xf4)](_0x4b76e2(0x128));this[_0x4b76e2(0xdc)]=null,this[_0x4b76e2(0xe7)]=this[_0x4b76e2(0xbc)][_0x4b76e2(0x10b)][_0x4b76e2(0xf4)](_0x4b76e2(0xec)),this[_0x4b76e2(0x105)]=new CloudServicesRevisionHistoryAdapter[(_0x4b76e2(0xea))](_0x1ad15d);}async[_0x365893(0xbf)](){const _0x39f429=_0x365893,_0x407b36=this[_0x39f429(0xbc)][_0x39f429(0x10b)][_0x39f429(0xf4)](_0x589bda),_0x144a46=_0x407b36[_0x39f429(0x111)],_0x38ba61=this[_0x39f429(0xbc)][_0x39f429(0x10b)][_0x39f429(0xf4)](_0x1ced0b);this[_0x39f429(0xe7)][_0x39f429(0xf6)]({'history':_0x144a46,'getLatestVersion':()=>this[_0x39f429(0xc1)](),'getCurrentRevisionId':()=>_0x407b36[_0x39f429(0x10d)]});const _0x6c0532=this[_0x39f429(0xbc)][_0x39f429(0xfd)][_0x39f429(0xf4)](_0x39f429(0x114))||_0x331c85,_0x14a4b5=await _0x34662b[_0x39f429(0xda)](_0x38ba61[_0x39f429(0xed)],_0x6c0532);this[_0x39f429(0xbc)][_0x39f429(0x10b)][_0x39f429(0xf4)](_0x39f429(0xe0))[_0x39f429(0x11e)]={'getRevision':async({revisionId:_0x1512e5})=>(await this[_0x39f429(0xde)](),await this[_0x39f429(0x105)][_0x39f429(0x127)](_0x1512e5)),'updateRevisions':async _0x9abf7d=>{const _0x3146ac=_0x39f429;await this[_0x3146ac(0xde)]();const _0x53b441=this[_0x3146ac(0xe7)][_0x3146ac(0xd3)];if(_0x14a4b5&&0x1===_0x9abf7d[_0x3146ac(0xf9)]&&_0x9abf7d[0x0]['id']===_0x53b441['id'])return _0x9abf7d;for(const _0xee758a of _0x9abf7d)_0xee758a['id']===_0x53b441['id']&&(_0xee758a[_0x3146ac(0x118)]=_0xee758a[_0x3146ac(0x129)]===_0xee758a[_0x3146ac(0xcb)]);return this[_0x3146ac(0x105)][_0x3146ac(0x103)](_0x9abf7d,this[_0x3146ac(0xdc)])[_0x3146ac(0xd8)](_0x34e61f=>(this[_0x3146ac(0xdc)]=_0x34e61f,_0x9abf7d))[_0x3146ac(0xd7)](_0x3e6b93=>{const _0x433e10=_0x3146ac;if(ot(_0x3e6b93)||_0x433e10(0xc2)===_0x3e6b93[_0x433e10(0x124)]&&void 0x0!==_0x3e6b93[_0x433e10(0x107)][_0x433e10(0x119)]){for(const _0xc167c0 of _0x9abf7d){!this[_0x433e10(0xe7)][_0x433e10(0xc8)][_0x433e10(0x127)](_0xc167c0['id'])||this[_0x433e10(0xe7)][_0x433e10(0x100)](_0xc167c0['id'],_0xc167c0,!0x1);}if(ot(_0x3e6b93))throw _0x3e6b93;return _0x9abf7d;}throw _0x3e6b93;});}},this[_0x39f429(0xf2)](this[_0x39f429(0x105)],_0x39f429(0xd6),(_0x5a6795,{revisionsData:_0xc55acb,requestId:_0x113e42})=>{const _0x789130=_0x39f429;Math[_0x789130(0x113)](..._0xc55acb[_0x789130(0x12d)](_0x42d901=>_0x42d901[_0x789130(0xcb)]))>this[_0x789130(0xdf)]()-0x1?this[_0x789130(0xc1)]()[_0x789130(0xd8)](()=>{const _0x1860ae=_0x789130;this[_0x1860ae(0xc3)](_0xc55acb,_0x113e42);}):this[_0x789130(0xc3)](_0xc55acb,_0x113e42);});const {revisions:_0x49b287,requestId:_0x57479e}=await this[_0x39f429(0x105)][_0x39f429(0xd2)](_0x38ba61[_0x39f429(0xed)]);_0x38ba61[_0x39f429(0xbe)](this),this[_0x39f429(0xdc)]=_0x57479e,await this[_0x39f429(0xfb)](_0x49b287);for(const _0x49d024 of _0x49b287)this[_0x39f429(0xe7)][_0x39f429(0x12b)](_0x49d024);this[_0x39f429(0xf2)](_0x407b36,_0x39f429(0x117),(_0x746feb,_0x4e49aa,_0x4f6819)=>{const _0x101e41=_0x39f429;_0x4f6819&&(this[_0x101e41(0x12f)]=_0x407b36[_0x101e41(0xcc)],_0x746feb[_0x101e41(0xc6)]());}),this[_0x39f429(0xe7)][_0x39f429(0x10a)](_0x39f429(0x121))['to'](_0x38ba61,_0x39f429(0x116),_0xa9d0f1=>_0xa9d0f1===_0x3e6032[_0x39f429(0xe9)]);}async[_0x365893(0xe8)](){const _0x10d41c=_0x365893,_0x4a2222=this[_0x10d41c(0xbc)][_0x10d41c(0x10b)][_0x10d41c(0xf4)](_0x1ced0b),_0x2967d0=this[_0x10d41c(0xbc)][_0x10d41c(0x10b)][_0x10d41c(0xf4)](_0x589bda),_0x403da3=async()=>{const _0x342857=_0x10d41c,_0x36e087=this[_0x342857(0xe7)][_0x342857(0xd3)],_0x48f229=_0x36e087['id'],_0x29d1c0=_0x48f229!==_0x2967d0[_0x342857(0x10d)];if(_0x29d1c0){const _0x38132e=_0x2967d0[_0x342857(0xcc)]-this[_0x342857(0x12f)],_0x2f8917=this[_0x342857(0xdf)]();this[_0x342857(0xe7)][_0x342857(0x104)][_0x342857(0x110)]();if(_0x36e087[_0x342857(0xcb)]+_0x38132e!==_0x2f8917){const _0x591e36=_0x36e087[_0x342857(0x129)]+_0x38132e,_0x4a6835=this[_0x342857(0xbc)][_0x342857(0x10b)][_0x342857(0xf4)](_0x14a78d),_0x16c7d0=this[_0x342857(0xe7)][_0x342857(0x112)]({'revision':_0x36e087,'from':_0x591e36,'to':_0x2f8917});_0x16c7d0['id']=_0x36e087['id'];const _0x58c4fe=_0x16c7d0[_0x342857(0xf3)][_0x342857(0x12d)](_0x2510fa=>_0x4a6835[_0x342857(0xf8)](_0x2510fa));_0x36e087[_0x342857(0x102)]({..._0x16c7d0,'authors':_0x58c4fe},!0x0),this[_0x342857(0xe7)][_0x342857(0x100)](_0x36e087['id'],_0x16c7d0,!0x0);}this[_0x342857(0xe7)][_0x342857(0xd9)]=_0x2f8917,(_0x36e087[_0x342857(0xcb)]===_0x36e087[_0x342857(0x129)]&&!this[_0x342857(0xe7)][_0x342857(0xdd)][_0x342857(0x108)](_0x48f229)&&this[_0x342857(0xe7)][_0x342857(0xc8)][_0x342857(0xe2)][_0x342857(0xfc)](_0x48f229),this[_0x342857(0xe7)][_0x342857(0xe3)](_0x2f8917));}const {revisions:_0x10ddd9,requestId:_0x18f31}=await this[_0x342857(0x105)][_0x342857(0xe8)](_0x4a2222[_0x342857(0xed)],this[_0x342857(0xdc)]);_0x29d1c0&&_0x10ddd9[_0x342857(0xf9)]>0x0?_0x2967d0[_0x342857(0xfe)]():(await this[_0x342857(0xfb)](_0x10ddd9),this[_0x342857(0xc3)](_0x10ddd9,_0x18f31),this[_0x342857(0xe7)][_0x342857(0x10e)]());};return _0x2967d0[_0x10d41c(0x130)]?_0x403da3():new Promise((_0x3999a8,_0x4fb85b)=>{const _0x4a2ca5=_0x10d41c;_0x2967d0[_0x4a2ca5(0xe6)](_0x4a2ca5(0x117),()=>{const _0x1d37d0=_0x4a2ca5;_0x403da3()[_0x1d37d0(0xd8)](_0x3999a8)[_0x1d37d0(0xd7)](_0x4fb85b);});});}[_0x365893(0xc5)](){const _0x4bd82b=_0x365893;super[_0x4bd82b(0xc5)]();}async[_0x365893(0xde)](){const _0x212bcc=_0x365893;this[_0x212bcc(0x105)][_0x212bcc(0xe5)]||await new Promise(_0x1923c4=>{const _0x12f3e9=_0x212bcc;this[_0x12f3e9(0xf2)](this[_0x12f3e9(0x105)],_0x12f3e9(0xca),_0x5009e5=>{const _0x462132=_0x12f3e9;_0x5009e5[_0x462132(0xc6)](),_0x1923c4();});});}[_0x365893(0xdf)](){const _0x369774=_0x365893,_0x404402=this[_0x369774(0xbc)][_0x369774(0x10b)][_0x369774(0xf4)](_0x589bda)[_0x369774(0x111)][_0x369774(0x120)]()[_0x369774(0x126)]();for(const _0x7ea528 of _0x404402)if(_0x369774(0x109)!==_0x7ea528[_0x369774(0xc7)]||_0x7ea528[_0x369774(0xf7)])return _0x7ea528[_0x369774(0x115)]+0x1;}[_0x365893(0xc1)](){const _0x4a27e2=_0x365893,_0x5e4de6=this[_0x4a27e2(0xbc)][_0x4a27e2(0x10b)][_0x4a27e2(0xf4)](_0x589bda);return new Promise(_0x4a4ce7=>{const _0x21ca45=_0x4a27e2;_0x5e4de6[_0x21ca45(0x12c)]?_0x5e4de6[_0x21ca45(0xe6)](_0x21ca45(0xc0),()=>{const _0x4b6698=_0x21ca45;_0x4a4ce7(this[_0x4b6698(0xdf)]());}):_0x4a4ce7(this[_0x21ca45(0xdf)]());});}[_0x365893(0xc3)](_0x3d7953,_0x551633){const _0x22f267=_0x365893,_0x51dc5a=this[_0x22f267(0xe7)][_0x22f267(0xc8)];this[_0x22f267(0xdc)]=_0x551633;for(const _0x206207 of _0x3d7953){const _0x5b5c98=_0x51dc5a[_0x22f267(0x127)](_0x206207['id']);if(_0x5b5c98){if((_0x206207[_0x22f267(0x129)]||_0x206207[_0x22f267(0xcb)])&&(_0x206207[_0x22f267(0xeb)]=null),_0x5b5c98===this[_0x22f267(0xe7)][_0x22f267(0xd3)]){const _0x498f43=Math[_0x22f267(0x113)](_0x5b5c98[_0x22f267(0xcb)],_0x206207[_0x22f267(0xcb)]),_0x53423b=Math[_0x22f267(0x113)](_0x5b5c98[_0x22f267(0x129)],_0x206207[_0x22f267(0x129)]);let _0x4e9876;_0x5b5c98[_0x22f267(0xcb)]===_0x206207[_0x22f267(0xcb)]&&_0x5b5c98[_0x22f267(0x129)]===_0x206207[_0x22f267(0x129)]?(_0x4e9876=!0x0,this[_0x22f267(0x11f)](_0x206207)):_0x206207[_0x22f267(0xcb)]===_0x498f43&&_0x206207[_0x22f267(0x129)]===_0x53423b?_0x4e9876=!0x1:(_0x5b5c98[_0x22f267(0xcb)]===_0x498f43&&_0x5b5c98[_0x22f267(0x129)]===_0x53423b||this[_0x22f267(0xdb)]({'revision':_0x5b5c98,'from':_0x53423b,'to':_0x498f43}),_0x4e9876=!0x0),_0x4e9876&&(delete _0x206207[_0x22f267(0x129)],delete _0x206207[_0x22f267(0xcb)],delete _0x206207[_0x22f267(0xeb)],delete _0x206207[_0x22f267(0x106)],delete _0x206207[_0x22f267(0xf3)]);}this[_0x22f267(0xe7)][_0x22f267(0xe1)](_0x206207),this[_0x22f267(0x11f)](_0x206207);}else this[_0x22f267(0xe7)][_0x22f267(0x12b)](_0x206207);}const _0x3eb51c=_0x51dc5a[_0x22f267(0x11a)]();_0x3eb51c[_0x22f267(0x126)]();for(let _0x2a2404=0x0;_0x2a2404<_0x3eb51c[_0x22f267(0xf9)]-0x1;_0x2a2404++){const _0x4fd620=_0x3eb51c[_0x2a2404],_0x2534ad=_0x3eb51c[_0x2a2404+0x1];if(_0x4fd620[_0x22f267(0x129)]<_0x2534ad[_0x22f267(0xcb)]){const _0x44fc61=_0x2534ad[_0x22f267(0xcb)],_0x117ad7=Math[_0x22f267(0x113)](_0x44fc61,_0x4fd620[_0x22f267(0xcb)]);this[_0x22f267(0xdb)]({'revision':_0x4fd620,'from':_0x44fc61,'to':_0x117ad7});}}}[_0x365893(0xdb)]({revision:_0x143eb7,from:_0x52268c,to:_0x1aad7a}={}){const _0x23115b=_0x365893,_0x24a937=this[_0x23115b(0xbc)][_0x23115b(0x10b)][_0x23115b(0xf4)](_0x14a78d),_0x247484=this[_0x23115b(0xe7)][_0x23115b(0x112)]({'revision':_0x143eb7,'from':_0x52268c,'to':_0x1aad7a});_0x247484[_0x23115b(0x123)]=_0x247484[_0x23115b(0xf3)][_0x23115b(0x12d)](_0x42efd8=>_0x24a937[_0x23115b(0xf8)](_0x42efd8)),_0x143eb7[_0x23115b(0x102)](_0x247484);}[_0x365893(0x11f)](_0x580290){const _0x1f4ee1=_0x365893,_0x23cf86={};_0x23cf86['id']=_0x580290['id'];for(const _0x4a1013 of Object[_0x1f4ee1(0x11b)](_0x580290))'id'!==_0x4a1013&&(_0x23cf86[_0x4a1013]=void 0x0);this[_0x1f4ee1(0xe7)][_0x1f4ee1(0x100)](_0x23cf86['id'],_0x23cf86,!0x0);}async[_0x365893(0xfb)](_0x5b8f3b){const _0x104724=_0x365893,_0xe700ea=this[_0x104724(0xbc)][_0x104724(0x10b)][_0x104724(0xf4)](_0x14a78d),{connection:_0x2679d1}=this[_0x104724(0xbc)][_0x104724(0x10b)][_0x104724(0xf4)](_0x1ced0b),_0x3f9814=new Set();for(const _0x8c42e4 of _0x5b8f3b){for(const _0x3a2818 of _0x8c42e4[_0x104724(0xf3)])_0x54cd33(_0x3a2818);_0x8c42e4[_0x104724(0x10c)]&&_0x54cd33(_0x8c42e4[_0x104724(0x10c)]);}if(0x0===_0x3f9814[_0x104724(0xf5)])return;const _0x5d8291=await _0x4c0d81[_0x104724(0xfa)](_0x2679d1,Array[_0x104724(0xd0)](_0x3f9814));for(const _0x1543a4 of _0x5d8291)_0xe700ea[_0x104724(0xf8)](_0x1543a4['id'])||_0xe700ea[_0x104724(0xce)](_0x1543a4);function _0x54cd33(_0x1edfef){const _0x21fabc=_0x104724;_0xe700ea[_0x21fabc(0xf8)](_0x1edfef)||_0x3f9814[_0x21fabc(0xc4)](_0x1edfef);}}}function ot(_0x435e6c){const _0x48ac70=_0x365893;return _0x435e6c[_0x48ac70(0xff)][_0x48ac70(0x122)](_0x48ac70(0x11c))||_0x435e6c[_0x48ac70(0xff)][_0x48ac70(0x122)](_0x48ac70(0x12e))||_0x435e6c[_0x48ac70(0xff)][_0x48ac70(0x122)](_0x48ac70(0x12a));}function _0x3bb9(){const _0x17569c=['_revisionTracker','reconnect','CONNECTED','RevisionHistoryService','diffData','RevisionTracker','connection','CloudServicesRevisionHistoryAdapter','5876710QIajob','39671340yhYXxX','162824qdmTRw','listenTo','authorsIds','get','size','setSource','affectsData','getUser','length','getMany','_fetchMissingUsers','remove','config','_handleReconnectionError','message','_bufferUpdate','21832LCIPvD','_update','updateRevisions','_revisionDataBuilder','_revisionHistoryService','createdAt','data','has','marker','bind','plugins','creatorId','sessionId','sendBufferedUpdates','isOfficialPlugin','reInit','serverHistory','buildRevisionData','max','cloudServices.bundleVersion','baseVersion','state','change:_isConnected','isEmptyCurrent','wrongRequestId','getRevisions','keys','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','2501778plSvVV','adapter','_preventResendingRevisionData','getOperations','isEnabled','startsWith','authors','code','isPremiumPlugin','reverse','getRevision','collaboration.channelId','fromVersion','cloud-services-internal-error:\x20Request\x20timeout.','addRevisionData','_isPendingUpdate','map','cloud-services-internal-error:\x20Not\x20connected.','_oldOffset','_isConnected','editor','4867425prWhXR','addToReconnectionStack','init','change:_isPendingUpdate','_getLatestVersion','400','_handleRevisionsUpdate','add','destroy','off','type','repository','12IQtYur','connected','toVersion','_offset','11dLoKbo','addUser','pluginName','from','requires','connect','currentRevision','4BCLMuW','966507EHSDad','revisionsUpdated','catch','then','_startingVersion','isBundleUploaded','_fixRevision','_lastRequestId','_bufferedUpdates','_waitForServiceReady','_getLatestVersionFromServerOperations','RevisionHistory','setRevisionData','_revisions','_createCurrentRevision','3987uKEVKO','isConnected','once'];_0x3bb9=function(){return _0x17569c;};return _0x3bb9();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x106d92=_0x2864;(function(_0x4a6209,_0x25ff16){const _0x389d45=_0x2864,_0x33f689=_0x4a6209();while(!![]){try{const _0x4c776c=-parseInt(_0x389d45(0x21b))/0x1+-parseInt(_0x389d45(0x1f5))/0x2*(parseInt(_0x389d45(0x1f9))/0x3)+parseInt(_0x389d45(0x218))/0x4+parseInt(_0x389d45(0x20b))/0x5+-parseInt(_0x389d45(0x1f6))/0x6+-parseInt(_0x389d45(0x22e))/0x7+-parseInt(_0x389d45(0x203))/0x8*(-parseInt(_0x389d45(0x1f4))/0x9);if(_0x4c776c===_0x25ff16)break;else _0x33f689['push'](_0x33f689['shift']());}catch(_0x2da946){_0x33f689['push'](_0x33f689['shift']());}}}(_0x5653,0xaf452));import{Plugin as _0x4f3d5e}from'ckeditor5/src/core.js';function _0x2864(_0x1a7af8,_0x430141){const _0x56539a=_0x5653();return _0x2864=function(_0x28644d,_0x452746){_0x28644d=_0x28644d-0x1f4;let _0xd8579c=_0x56539a[_0x28644d];return _0xd8579c;},_0x2864(_0x1a7af8,_0x430141);}import{User as _0x489bea,TrackChangesService as _0xa51a7}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x55d916}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x54d4bd}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x5b0206}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x4f3d5e{static [_0x106d92(0x22a)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0xa51a7)());[_0x106d92(0x230)];[_0x106d92(0x20c)];static get[_0x106d92(0x21f)](){const _0x31fa1c=_0x106d92;return[_0x54d4bd,_0x31fa1c(0x220),_0x55d916];}static get[_0x106d92(0x1f7)](){const _0x14d480=_0x106d92;return _0x14d480(0x20e);}static get[_0x106d92(0x21a)](){return!0x0;}static get[_0x106d92(0x222)](){return!0x0;}constructor(_0x12a670){const _0x457b08=_0x106d92;super(_0x12a670);const _0x21e18a=this[_0x457b08(0x1fe)][_0x457b08(0x20d)][_0x457b08(0x213)](_0x457b08(0x228));this[_0x457b08(0x230)]=new Map(),this[_0x457b08(0x20c)]=new CloudServicesTrackChangesAdapter[(_0x457b08(0x22a))](_0x21e18a);}[_0x106d92(0x20a)](){const _0x5a1ef4=_0x106d92,_0x340449=this[_0x5a1ef4(0x1fe)][_0x5a1ef4(0x21e)][_0x5a1ef4(0x213)](_0x55d916),_0x261587=this[_0x5a1ef4(0x1fe)][_0x5a1ef4(0x21e)][_0x5a1ef4(0x213)](_0x5a1ef4(0x220));return _0x261587[_0x5a1ef4(0x211)]={'getSuggestion':async _0x3f07bf=>{const _0x545634=_0x5a1ef4;await this[_0x545634(0x216)]();const _0x561bd0=await this[_0x545634(0x20c)][_0x545634(0x213)](_0x3f07bf)[_0x545634(0x22d)](A);return await this[_0x545634(0x209)]([_0x561bd0]),_0x561bd0;},'addSuggestion':async({id:_0x284e41,type:_0x3e4c62,data:_0x59622b,originalSuggestionId:_0x15f44e,attributes:_0x448eec})=>{const _0x544346=_0x5a1ef4;await this[_0x544346(0x216)]();const _0x4e54b8={'id':_0x284e41,'type':_0x3e4c62,'data':_0x59622b,'originalSuggestionId':_0x15f44e,'attributes':_0x448eec},_0x3924e3=await this[_0x544346(0x20c)][_0x544346(0x214)](_0x284e41,_0x3e4c62,_0x59622b,_0x15f44e,_0x448eec)[_0x544346(0x22d)](_0x307821=>{if(ot(_0x307821))return new Promise(_0x25cc18=>{const _0x565872=_0x2864;this[_0x565872(0x230)][_0x565872(0x232)](_0x284e41,{'resolve':_0x25cc18,'suggestionData':_0x4e54b8});});throw _0x307821;});return this[_0x544346(0x230)][_0x544346(0x224)](_0x284e41),_0x3924e3;},'updateSuggestion':async(_0x3c5f7c,_0x4182c2)=>{const _0x5b96d2=_0x5a1ef4;if(await this[_0x5b96d2(0x216)](),_0x5b96d2(0x207)!==_0x4182c2[_0x5b96d2(0x21c)])return this[_0x5b96d2(0x20c)][_0x5b96d2(0x219)](_0x3c5f7c,_0x4182c2)[_0x5b96d2(0x22d)](A);}},this[_0x5a1ef4(0x206)](this[_0x5a1ef4(0x20c)],_0x5a1ef4(0x1fa),(_0x403653,_0x19b17e)=>{const _0x17988b=_0x5a1ef4;_0x261587[_0x17988b(0x225)](_0x19b17e['id'])&&(_0x261587[_0x17988b(0x22b)](_0x19b17e['id'])[_0x17988b(0x210)]=_0x19b17e[_0x17988b(0x210)]);}),this[_0x5a1ef4(0x20c)][_0x5a1ef4(0x227)](_0x340449[_0x5a1ef4(0x215)])[_0x5a1ef4(0x21d)](_0xf7149c=>(_0x340449[_0x5a1ef4(0x205)](this),this[_0x5a1ef4(0x209)](_0xf7149c)[_0x5a1ef4(0x21d)](()=>{const _0x2c51fa=_0x5a1ef4;for(const _0x223b54 of _0xf7149c){_0x261587[_0x2c51fa(0x22f)](_0x223b54)[_0x2c51fa(0x22c)]=!0x0;}})));}async[_0x106d92(0x1ff)](){const _0x34844e=_0x106d92,_0x12b5ea=this[_0x34844e(0x1fe)][_0x34844e(0x21e)][_0x34844e(0x213)](_0x34844e(0x220)),{connection:_0x2913e3}=this[_0x34844e(0x1fe)][_0x34844e(0x21e)][_0x34844e(0x213)](_0x55d916),_0x5110f1=await this[_0x34844e(0x20c)][_0x34844e(0x227)](_0x2913e3);await this[_0x34844e(0x209)](_0x5110f1);for(const {suggestionData:_0x51ee56,resolve:_0x2d51ee}of this[_0x34844e(0x230)][_0x34844e(0x1fb)]()){let _0x2a948b=_0x5110f1[_0x34844e(0x226)](_0x4ee4a6=>_0x4ee4a6['id']===_0x51ee56['id']);_0x2a948b||(_0x2a948b=await this[_0x34844e(0x20c)][_0x34844e(0x214)](_0x51ee56['id'],_0x51ee56[_0x34844e(0x201)],_0x51ee56[_0x34844e(0x223)],_0x51ee56[_0x34844e(0x212)])),_0x2d51ee(_0x2a948b);}for(const _0x117076 of _0x5110f1)_0x12b5ea[_0x34844e(0x225)](_0x117076['id'])||_0x12b5ea[_0x34844e(0x22f)](_0x117076);}async[_0x106d92(0x216)](){const _0x56c645=_0x106d92;this[_0x56c645(0x20c)][_0x56c645(0x1f8)]||await new Promise(_0x572455=>{const _0x5867ea=_0x56c645;this[_0x5867ea(0x206)](this[_0x5867ea(0x20c)],_0x5867ea(0x217),_0x564926=>{const _0x3027a7=_0x5867ea;_0x564926[_0x3027a7(0x231)](),_0x572455();});});}async[_0x106d92(0x209)](_0x25cac5){const _0x2c31c4=_0x106d92,_0x2f4477=this[_0x2c31c4(0x1fe)][_0x2c31c4(0x21e)][_0x2c31c4(0x213)](_0x5b0206),{connection:_0x12a10e}=this[_0x2c31c4(0x1fe)][_0x2c31c4(0x21e)][_0x2c31c4(0x213)](_0x55d916),_0x18f6d1=new Set();for(const {authorId:_0x5a5f6d}of _0x25cac5)_0x2f4477[_0x2c31c4(0x229)](_0x5a5f6d)||_0x18f6d1[_0x2c31c4(0x214)](_0x5a5f6d);if(0x0===_0x18f6d1[_0x2c31c4(0x202)])return;const _0x24a8fd=await _0x489bea[_0x2c31c4(0x204)](_0x12a10e,Array[_0x2c31c4(0x200)](_0x18f6d1));for(const _0x4d03ae of _0x24a8fd)_0x2f4477[_0x2c31c4(0x229)](_0x4d03ae['id'])||_0x2f4477[_0x2c31c4(0x20f)](_0x4d03ae);}}function _0x5653(){const _0x4f81f7=['_bufferedRequests','off','set','27rfBtOL','76qHOfev','6277980rhYmhc','pluginName','isConnected','82695OZZqrN','suggestionUpdated','values','message','cloud-services-internal-error:\x20Not\x20connected.','editor','reconnect','from','type','size','7767264hiAotV','getMany','addToReconnectionStack','listenTo','open','startsWith','_fetchMissingUsersForThreads','init','1982350TpuArX','_trackChangesService','config','CloudServicesTrackChangesAdapter','addUser','attributes','adapter','originalSuggestionId','get','add','connection','_waitForServiceReady','connected','5542096NXgcVT','update','isOfficialPlugin','779803ewczeJ','state','then','plugins','requires','TrackChangesEditing','cloud-services-internal-error:\x20Request\x20timeout.','isPremiumPlugin','data','delete','hasSuggestion','find','connect','collaboration.channelId','getUser','TrackChangesService','getSuggestion','_saved','catch','7722463NevPTk','addSuggestionData'];_0x5653=function(){return _0x4f81f7;};return _0x5653();}function A(_0x953e89){if(ot(_0x953e89))return new Promise(()=>{});throw _0x953e89;}function ot(_0x24d582){const _0x4e3b79=_0x106d92;return _0x24d582[_0x4e3b79(0x1fc)][_0x4e3b79(0x208)](_0x4e3b79(0x1fd))||_0x24d582[_0x4e3b79(0x1fc)][_0x4e3b79(0x208)](_0x4e3b79(0x221));}
|