@ckeditor/ckeditor5-real-time-collaboration 47.2.0-alpha.3 → 47.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47008d=_0x55b8;(function(_0xa290c1,_0x49eff0){const _0x4b9556=_0x55b8,_0x14d749=_0xa290c1();while(!![]){try{const _0xe49d77=parseInt(_0x4b9556(0x161))/0x1*(parseInt(_0x4b9556(0x16f))/0x2)+parseInt(_0x4b9556(0x14e))/0x3+parseInt(_0x4b9556(0x175))/0x4*(parseInt(_0x4b9556(0x14a))/0x5)+-parseInt(_0x4b9556(0x172))/0x6*(parseInt(_0x4b9556(0x151))/0x7)+-parseInt(_0x4b9556(0x145))/0x8+parseInt(_0x4b9556(0x143))/0x9*(-parseInt(_0x4b9556(0x171))/0xa)+parseInt(_0x4b9556(0x159))/0xb;if(_0xe49d77===_0x49eff0)break;else _0x14d749['push'](_0x14d749['shift']());}catch(_0x1ec6a1){_0x14d749['push'](_0x14d749['shift']());}}}(_0x5936,0xd7831));function _0x55b8(_0x2752e9,_0xe6aa05){const _0x59365b=_0x5936();return _0x55b8=function(_0x55b8af,_0x4add74){_0x55b8af=_0x55b8af-0x13a;let _0x4871d9=_0x59365b[_0x55b8af];return _0x4871d9;},_0x55b8(_0x2752e9,_0xe6aa05);}import{ContextPlugin as _0x4f9452}from'ckeditor5/src/core.js';import{Collection as _0x5c67d1,CKEditorError as _0x4acaee}from'ckeditor5/src/utils.js';function _0x5936(){const _0x378fe4=['isOfficialPlugin','getUser','_uniqueUsersCount','context','add','mySessionId','sessionId','_createUser','channelConnectedUsers','change:state','134973GmFbgh','values','9764008QJYEoK','hiddenInPresenceList','get','assign','connection','74380mlxYBN','_users','pluginName','user','1134930GWobZz','getUserSessions','_registeredSessions','257789sgCsTg','listenTo','sessionAdd:','role','forEach','getUserRole','stopListening','plugins','27212944xTEBfw','_handleSessionRemove','allConnectedUsers','requires','sessions-register-already-registered','state','remove','unregister','1JCetnb','channelSessions','init','isPremiumPlugin','delete','_handleSessionAdd','orderNumber','size','clear','isMe','Sessions','register','getUserBySessionId','connected','1838756qZPpva','sessions-unregister-not-exist','1010aMUdLk','42ZbcqBy','has','defineMe','28xgSImh','fire','addUser','set'];_0x5936=function(){return _0x378fe4;};return _0x5936();}import{WebSocketGateway as _0x3b14dc}from'./websocketgateway.js';import{Users as _0x533c35}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x4f9452{[_0x47008d(0x162)];[_0x47008d(0x141)];[_0x47008d(0x15b)];[_0x47008d(0x150)];[_0x47008d(0x13b)];[_0x47008d(0x14b)];static get[_0x47008d(0x14c)](){const _0x2c5d5e=_0x47008d;return _0x2c5d5e(0x16b);}static get[_0x47008d(0x179)](){return!0x0;}static get[_0x47008d(0x164)](){return!0x0;}static get[_0x47008d(0x15c)](){return[_0x3b14dc,_0x533c35];}constructor(_0x186c04){const _0x7f08c6=_0x47008d;super(_0x186c04),this[_0x7f08c6(0x162)]=new Map(),this[_0x7f08c6(0x141)]=new Map(),this[_0x7f08c6(0x15b)]=new _0x5c67d1(),this[_0x7f08c6(0x150)]=new Map(),this[_0x7f08c6(0x13b)]=0x0,this[_0x7f08c6(0x14b)]=this[_0x7f08c6(0x13c)][_0x7f08c6(0x158)][_0x7f08c6(0x147)](_0x533c35);}[_0x47008d(0x163)](){const _0x2694f1=_0x47008d,_0x648c51=this[_0x2694f1(0x13c)][_0x2694f1(0x158)][_0x2694f1(0x147)](_0x3b14dc);this[_0x2694f1(0x152)](_0x648c51,_0x2694f1(0x142),(_0x1fe9b5,_0x1ff56a,_0x4639d2)=>{const _0x5b485f=_0x2694f1;if(_0x5b485f(0x16e)!==_0x4639d2)this[_0x5b485f(0x162)][_0x5b485f(0x155)](_0x549ee6=>_0x549ee6[_0x5b485f(0x169)]()),this[_0x5b485f(0x141)][_0x5b485f(0x155)](_0x4457dc=>_0x4457dc[_0x5b485f(0x169)]()),this[_0x5b485f(0x15b)][_0x5b485f(0x169)]();else{for(const [_0x95c3e0,_0x4c620b]of this[_0x5b485f(0x150)])for(const _0x58e4b8 of _0x4c620b)this[_0x5b485f(0x166)](_0x95c3e0,_0x58e4b8);}}),this[_0x2694f1(0x140)](_0x648c51[_0x2694f1(0x149)]['me'],!0x0);}[_0x47008d(0x16c)](_0x222f02,_0x36cc48){const _0x594692=_0x47008d;if(this[_0x594692(0x150)][_0x594692(0x173)](_0x222f02))throw new _0x4acaee(_0x594692(0x15d),null,{'channelId':_0x222f02});this[_0x594692(0x150)][_0x594692(0x178)](_0x222f02,_0x36cc48),this[_0x594692(0x162)][_0x594692(0x178)](_0x222f02,new _0x5c67d1()),this[_0x594692(0x141)][_0x594692(0x178)](_0x222f02,new _0x5c67d1()),this[_0x594692(0x152)](_0x36cc48,_0x594692(0x13d),(_0x10da84,_0x3064fb)=>this[_0x594692(0x166)](_0x222f02,_0x3064fb)),this[_0x594692(0x152)](_0x36cc48,_0x594692(0x15f),(_0x329f69,_0x1a485b)=>this[_0x594692(0x15a)](_0x222f02,_0x1a485b));for(const _0x10cd0d of _0x36cc48)this[_0x594692(0x166)](_0x222f02,_0x10cd0d);}[_0x47008d(0x160)](_0x2a7727){const _0x95d721=_0x47008d;if(!this[_0x95d721(0x150)][_0x95d721(0x173)](_0x2a7727))throw new _0x4acaee(_0x95d721(0x170),null,{'channelId':_0x2a7727});const _0x2d27fb=this[_0x95d721(0x150)][_0x95d721(0x147)](_0x2a7727);this[_0x95d721(0x157)](_0x2d27fb);for(const _0x5555c1 of _0x2d27fb)_0x95d721(0x16e)===this[_0x95d721(0x13c)][_0x95d721(0x158)][_0x95d721(0x147)](_0x3b14dc)[_0x95d721(0x15e)]&&this[_0x95d721(0x15a)](_0x2a7727,_0x5555c1);this[_0x95d721(0x150)][_0x95d721(0x165)](_0x2a7727),this[_0x95d721(0x162)][_0x95d721(0x165)](_0x2a7727),this[_0x95d721(0x141)][_0x95d721(0x165)](_0x2a7727);}get[_0x47008d(0x13e)](){const _0x34695d=_0x47008d;return this[_0x34695d(0x13c)][_0x34695d(0x158)][_0x34695d(0x147)](_0x3b14dc)[_0x34695d(0x149)][_0x34695d(0x13f)];}[_0x47008d(0x16d)](_0x5b253a){const _0x3eda64=_0x47008d;for(const _0x2c0032 of this[_0x3eda64(0x162)][_0x3eda64(0x144)]())for(const _0x154947 of _0x2c0032)if(_0x154947['id']===_0x5b253a)return _0x154947[_0x3eda64(0x14d)];}[_0x47008d(0x14f)](_0x2d15c5,_0x43214e){const _0x4c77f6=_0x47008d,_0x1b78c4=_0x43214e?[this[_0x4c77f6(0x162)][_0x4c77f6(0x147)](_0x43214e)]:this[_0x4c77f6(0x162)][_0x4c77f6(0x144)](),_0x26cd1e=new Set();for(const _0x1feacf of _0x1b78c4)for(const _0x10c36b of _0x1feacf)_0x10c36b[_0x4c77f6(0x14d)]['id']===_0x2d15c5['id']&&_0x26cd1e[_0x4c77f6(0x13d)](_0x10c36b['id']);return _0x26cd1e;}[_0x47008d(0x156)](_0x3b2101){const _0x31ead8=_0x47008d;for(const _0x107ca9 of this[_0x31ead8(0x162)][_0x31ead8(0x144)]())for(const _0x1bacff of _0x107ca9)if(_0x1bacff[_0x31ead8(0x14d)]===_0x3b2101)return _0x1bacff[_0x31ead8(0x154)];}[_0x47008d(0x166)](_0x297e5c,_0x5462a3){const _0x2e2d9d=_0x47008d;if(_0x2e2d9d(0x16e)!==this[_0x2e2d9d(0x13c)][_0x2e2d9d(0x158)][_0x2e2d9d(0x147)](_0x3b14dc)[_0x2e2d9d(0x15e)])return;const _0x1d000a=_0x5462a3[_0x2e2d9d(0x14d)],_0x8ffb3c=this[_0x2e2d9d(0x14b)][_0x2e2d9d(0x13a)](_0x1d000a['id'])||this[_0x2e2d9d(0x140)](_0x1d000a),_0x5ae920=Object[_0x2e2d9d(0x148)]({},_0x5462a3,{'user':_0x8ffb3c});if(this[_0x2e2d9d(0x162)][_0x2e2d9d(0x147)](_0x297e5c)[_0x2e2d9d(0x13d)](_0x5ae920),!_0x1d000a[_0x2e2d9d(0x146)]){const _0x197ea8=this[_0x2e2d9d(0x141)][_0x2e2d9d(0x147)](_0x297e5c);_0x197ea8[_0x2e2d9d(0x173)](_0x8ffb3c['id'])||_0x197ea8[_0x2e2d9d(0x13d)](_0x8ffb3c),this[_0x2e2d9d(0x15b)][_0x2e2d9d(0x173)](_0x8ffb3c['id'])||_0x1d000a[_0x2e2d9d(0x146)]||this[_0x2e2d9d(0x15b)][_0x2e2d9d(0x13d)](_0x8ffb3c,_0x8ffb3c[_0x2e2d9d(0x16a)]?0x0:void 0x0);}this[_0x2e2d9d(0x176)](_0x2e2d9d(0x153)+_0x297e5c,{'channelId':_0x297e5c,'session':_0x5ae920});}[_0x47008d(0x15a)](_0xb95ed8,_0x730cae){const _0x27373f=_0x47008d;if(_0x27373f(0x16e)!==this[_0x27373f(0x13c)][_0x27373f(0x158)][_0x27373f(0x147)](_0x3b14dc)[_0x27373f(0x15e)])return;const _0x5d724d=this[_0x27373f(0x141)][_0x27373f(0x147)](_0xb95ed8),_0x51648d=_0x730cae[_0x27373f(0x14d)];_0x51648d['id']&&(this[_0x27373f(0x162)][_0x27373f(0x147)](_0xb95ed8)[_0x27373f(0x15f)](_0x730cae['id']),_0x5d724d[_0x27373f(0x173)](_0x51648d['id'])&&!this[_0x27373f(0x14f)](_0x51648d,_0xb95ed8)[_0x27373f(0x168)]&&_0x5d724d[_0x27373f(0x15f)](_0x51648d['id']),this[_0x27373f(0x15b)][_0x27373f(0x147)](_0x51648d['id'])&&!this[_0x27373f(0x14f)](_0x51648d)[_0x27373f(0x168)]&&this[_0x27373f(0x15b)][_0x27373f(0x15f)](_0x51648d['id']));}[_0x47008d(0x140)](_0x3ea376,_0x3521d1){const _0x477a20=_0x47008d,_0x4d8e42=this[_0x477a20(0x14b)][_0x477a20(0x177)](_0x3ea376);return _0x3521d1&&this[_0x477a20(0x14b)][_0x477a20(0x174)](_0x3ea376['id']),_0x4d8e42[_0x477a20(0x167)]=this[_0x477a20(0x13b)]++,_0x4d8e42;}}
23
+ const _0x3c1861=_0x1e05;function _0x2edc(){const _0x3a37dc=['role','init','_registeredSessions','_createUser','stopListening','has','7349538oJmTgb','remove','163608RBVZhG','state','add','listenTo','user','register','isMe','_users','getUserBySessionId','75216sfptSS','fire','sessions-register-already-registered','connection','assign','_handleSessionAdd','7rvSDdP','129hWdoVe','441OmTHAl','addUser','pluginName','values','getUserRole','get','_handleSessionRemove','isPremiumPlugin','unregister','268412YuzCBb','forEach','getUser','sessionId','hiddenInPresenceList','plugins','sessionAdd:','25iFDIrN','sessions-unregister-not-exist','defineMe','delete','channelConnectedUsers','channelSessions','300FzwTPn','allConnectedUsers','context','2117921DSBMwL','requires','change:state','set','getUserSessions','mySessionId','539230ULSWJv','685916ZYxCkE','orderNumber','Sessions','143cXkFiK','connected','isOfficialPlugin','_uniqueUsersCount','clear','size'];_0x2edc=function(){return _0x3a37dc;};return _0x2edc();}(function(_0x37063d,_0x1ef930){const _0x2e730a=_0x1e05,_0x5b4418=_0x37063d();while(!![]){try{const _0x2d937d=parseInt(_0x2e730a(0x1ce))/0x1+-parseInt(_0x2e730a(0x1a6))/0x2*(-parseInt(_0x2e730a(0x1ad))/0x3)+parseInt(_0x2e730a(0x1b7))/0x4*(-parseInt(_0x2e730a(0x1be))/0x5)+parseInt(_0x2e730a(0x19b))/0x6*(parseInt(_0x2e730a(0x1ac))/0x7)+parseInt(_0x2e730a(0x19d))/0x8*(parseInt(_0x2e730a(0x1ae))/0x9)+parseInt(_0x2e730a(0x1cd))/0xa*(parseInt(_0x2e730a(0x1d1))/0xb)+parseInt(_0x2e730a(0x1c4))/0xc*(-parseInt(_0x2e730a(0x1c7))/0xd);if(_0x2d937d===_0x1ef930)break;else _0x5b4418['push'](_0x5b4418['shift']());}catch(_0x700d69){_0x5b4418['push'](_0x5b4418['shift']());}}}(_0x2edc,0xc8d71));import{ContextPlugin as _0x18521c}from'ckeditor5/src/core.js';import{Collection as _0x53c4af,CKEditorError as _0x2ee73f}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x35ef1c}from'./websocketgateway.js';function _0x1e05(_0xb9213a,_0x2de1dd){const _0x2edccb=_0x2edc();return _0x1e05=function(_0x1e0558,_0x2c692f){_0x1e0558=_0x1e0558-0x198;let _0x168ce5=_0x2edccb[_0x1e0558];return _0x168ce5;},_0x1e05(_0xb9213a,_0x2de1dd);}import{Users as _0x2e55e5}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x18521c{[_0x3c1861(0x1c3)];[_0x3c1861(0x1c2)];[_0x3c1861(0x1c5)];[_0x3c1861(0x1d9)];[_0x3c1861(0x1d4)];[_0x3c1861(0x1a4)];static get[_0x3c1861(0x1b0)](){const _0x58d693=_0x3c1861;return _0x58d693(0x1d0);}static get[_0x3c1861(0x1d3)](){return!0x0;}static get[_0x3c1861(0x1b5)](){return!0x0;}static get[_0x3c1861(0x1c8)](){return[_0x35ef1c,_0x2e55e5];}constructor(_0x928568){const _0x448a00=_0x3c1861;super(_0x928568),this[_0x448a00(0x1c3)]=new Map(),this[_0x448a00(0x1c2)]=new Map(),this[_0x448a00(0x1c5)]=new _0x53c4af(),this[_0x448a00(0x1d9)]=new Map(),this[_0x448a00(0x1d4)]=0x0,this[_0x448a00(0x1a4)]=this[_0x448a00(0x1c6)][_0x448a00(0x1bc)][_0x448a00(0x1b3)](_0x2e55e5);}[_0x3c1861(0x1d8)](){const _0xa086a4=_0x3c1861,_0x3543d6=this[_0xa086a4(0x1c6)][_0xa086a4(0x1bc)][_0xa086a4(0x1b3)](_0x35ef1c);this[_0xa086a4(0x1a0)](_0x3543d6,_0xa086a4(0x1c9),(_0x3f438d,_0x46eff4,_0x5bc532)=>{const _0x261c17=_0xa086a4;if(_0x261c17(0x1d2)!==_0x5bc532)this[_0x261c17(0x1c3)][_0x261c17(0x1b8)](_0xe2ee23=>_0xe2ee23[_0x261c17(0x1d5)]()),this[_0x261c17(0x1c2)][_0x261c17(0x1b8)](_0x3ba1f6=>_0x3ba1f6[_0x261c17(0x1d5)]()),this[_0x261c17(0x1c5)][_0x261c17(0x1d5)]();else{for(const [_0xbe2072,_0x579588]of this[_0x261c17(0x1d9)])for(const _0x559f12 of _0x579588)this[_0x261c17(0x1ab)](_0xbe2072,_0x559f12);}}),this[_0xa086a4(0x198)](_0x3543d6[_0xa086a4(0x1a9)]['me'],!0x0);}[_0x3c1861(0x1a2)](_0x24dba2,_0x4be62d){const _0x6103c0=_0x3c1861;if(this[_0x6103c0(0x1d9)][_0x6103c0(0x19a)](_0x24dba2))throw new _0x2ee73f(_0x6103c0(0x1a8),null,{'channelId':_0x24dba2});this[_0x6103c0(0x1d9)][_0x6103c0(0x1ca)](_0x24dba2,_0x4be62d),this[_0x6103c0(0x1c3)][_0x6103c0(0x1ca)](_0x24dba2,new _0x53c4af()),this[_0x6103c0(0x1c2)][_0x6103c0(0x1ca)](_0x24dba2,new _0x53c4af()),this[_0x6103c0(0x1a0)](_0x4be62d,_0x6103c0(0x19f),(_0x22d8c4,_0x13bfaf)=>this[_0x6103c0(0x1ab)](_0x24dba2,_0x13bfaf)),this[_0x6103c0(0x1a0)](_0x4be62d,_0x6103c0(0x19c),(_0x3ada96,_0x1fbce4)=>this[_0x6103c0(0x1b4)](_0x24dba2,_0x1fbce4));for(const _0x1a843e of _0x4be62d)this[_0x6103c0(0x1ab)](_0x24dba2,_0x1a843e);}[_0x3c1861(0x1b6)](_0x44fea3){const _0x10cc31=_0x3c1861;if(!this[_0x10cc31(0x1d9)][_0x10cc31(0x19a)](_0x44fea3))throw new _0x2ee73f(_0x10cc31(0x1bf),null,{'channelId':_0x44fea3});const _0xf87434=this[_0x10cc31(0x1d9)][_0x10cc31(0x1b3)](_0x44fea3);this[_0x10cc31(0x199)](_0xf87434);for(const _0x135c8a of _0xf87434)_0x10cc31(0x1d2)===this[_0x10cc31(0x1c6)][_0x10cc31(0x1bc)][_0x10cc31(0x1b3)](_0x35ef1c)[_0x10cc31(0x19e)]&&this[_0x10cc31(0x1b4)](_0x44fea3,_0x135c8a);this[_0x10cc31(0x1d9)][_0x10cc31(0x1c1)](_0x44fea3),this[_0x10cc31(0x1c3)][_0x10cc31(0x1c1)](_0x44fea3),this[_0x10cc31(0x1c2)][_0x10cc31(0x1c1)](_0x44fea3);}get[_0x3c1861(0x1cc)](){const _0x1cb46f=_0x3c1861;return this[_0x1cb46f(0x1c6)][_0x1cb46f(0x1bc)][_0x1cb46f(0x1b3)](_0x35ef1c)[_0x1cb46f(0x1a9)][_0x1cb46f(0x1ba)];}[_0x3c1861(0x1a5)](_0x15dd6d){const _0x1d3f95=_0x3c1861;for(const _0x3ceaed of this[_0x1d3f95(0x1c3)][_0x1d3f95(0x1b1)]())for(const _0x585c2a of _0x3ceaed)if(_0x585c2a['id']===_0x15dd6d)return _0x585c2a[_0x1d3f95(0x1a1)];}[_0x3c1861(0x1cb)](_0x1aa81d,_0xe1df22){const _0x5209c1=_0x3c1861,_0x577480=_0xe1df22?[this[_0x5209c1(0x1c3)][_0x5209c1(0x1b3)](_0xe1df22)]:this[_0x5209c1(0x1c3)][_0x5209c1(0x1b1)](),_0xd95586=new Set();for(const _0x3fe58f of _0x577480)for(const _0x18d772 of _0x3fe58f)_0x18d772[_0x5209c1(0x1a1)]['id']===_0x1aa81d['id']&&_0xd95586[_0x5209c1(0x19f)](_0x18d772['id']);return _0xd95586;}[_0x3c1861(0x1b2)](_0x3d24ef){const _0x569dfd=_0x3c1861;for(const _0x5c7194 of this[_0x569dfd(0x1c3)][_0x569dfd(0x1b1)]())for(const _0x3d1c04 of _0x5c7194)if(_0x3d1c04[_0x569dfd(0x1a1)]===_0x3d24ef)return _0x3d1c04[_0x569dfd(0x1d7)];}[_0x3c1861(0x1ab)](_0xc66381,_0x2527c6){const _0x2aa534=_0x3c1861;if(_0x2aa534(0x1d2)!==this[_0x2aa534(0x1c6)][_0x2aa534(0x1bc)][_0x2aa534(0x1b3)](_0x35ef1c)[_0x2aa534(0x19e)])return;const _0x5e1900=_0x2527c6[_0x2aa534(0x1a1)],_0x58e770=this[_0x2aa534(0x1a4)][_0x2aa534(0x1b9)](_0x5e1900['id'])||this[_0x2aa534(0x198)](_0x5e1900),_0x27ee0f=Object[_0x2aa534(0x1aa)]({},_0x2527c6,{'user':_0x58e770});if(this[_0x2aa534(0x1c3)][_0x2aa534(0x1b3)](_0xc66381)[_0x2aa534(0x19f)](_0x27ee0f),!_0x5e1900[_0x2aa534(0x1bb)]){const _0x53a4a8=this[_0x2aa534(0x1c2)][_0x2aa534(0x1b3)](_0xc66381);_0x53a4a8[_0x2aa534(0x19a)](_0x58e770['id'])||_0x53a4a8[_0x2aa534(0x19f)](_0x58e770),this[_0x2aa534(0x1c5)][_0x2aa534(0x19a)](_0x58e770['id'])||_0x5e1900[_0x2aa534(0x1bb)]||this[_0x2aa534(0x1c5)][_0x2aa534(0x19f)](_0x58e770,_0x58e770[_0x2aa534(0x1a3)]?0x0:void 0x0);}this[_0x2aa534(0x1a7)](_0x2aa534(0x1bd)+_0xc66381,{'channelId':_0xc66381,'session':_0x27ee0f});}[_0x3c1861(0x1b4)](_0x109904,_0x1c41fc){const _0x1b6e06=_0x3c1861;if(_0x1b6e06(0x1d2)!==this[_0x1b6e06(0x1c6)][_0x1b6e06(0x1bc)][_0x1b6e06(0x1b3)](_0x35ef1c)[_0x1b6e06(0x19e)])return;const _0x399c5d=this[_0x1b6e06(0x1c2)][_0x1b6e06(0x1b3)](_0x109904),_0x29f8ae=_0x1c41fc[_0x1b6e06(0x1a1)];_0x29f8ae['id']&&(this[_0x1b6e06(0x1c3)][_0x1b6e06(0x1b3)](_0x109904)[_0x1b6e06(0x19c)](_0x1c41fc['id']),_0x399c5d[_0x1b6e06(0x19a)](_0x29f8ae['id'])&&!this[_0x1b6e06(0x1cb)](_0x29f8ae,_0x109904)[_0x1b6e06(0x1d6)]&&_0x399c5d[_0x1b6e06(0x19c)](_0x29f8ae['id']),this[_0x1b6e06(0x1c5)][_0x1b6e06(0x1b3)](_0x29f8ae['id'])&&!this[_0x1b6e06(0x1cb)](_0x29f8ae)[_0x1b6e06(0x1d6)]&&this[_0x1b6e06(0x1c5)][_0x1b6e06(0x19c)](_0x29f8ae['id']));}[_0x3c1861(0x198)](_0x17f513,_0x422a60){const _0x314c65=_0x3c1861,_0x350b76=this[_0x314c65(0x1a4)][_0x314c65(0x1af)](_0x17f513);return _0x422a60&&this[_0x314c65(0x1a4)][_0x314c65(0x1c0)](_0x17f513['id']),_0x350b76[_0x314c65(0x1cf)]=this[_0x314c65(0x1d4)]++,_0x350b76;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13d916=_0x4e72;function _0x4e72(_0x2617fd,_0x23396a){const _0x47e781=_0x47e7();return _0x4e72=function(_0x4e7245,_0x35fd98){_0x4e7245=_0x4e7245-0x1a2;let _0x418115=_0x47e781[_0x4e7245];return _0x418115;},_0x4e72(_0x2617fd,_0x23396a);}(function(_0x188b81,_0x200ded){const _0x1dbafb=_0x4e72,_0x15b611=_0x188b81();while(!![]){try{const _0x41a96b=parseInt(_0x1dbafb(0x1b5))/0x1*(parseInt(_0x1dbafb(0x1b9))/0x2)+-parseInt(_0x1dbafb(0x212))/0x3*(parseInt(_0x1dbafb(0x1f2))/0x4)+parseInt(_0x1dbafb(0x1f5))/0x5*(-parseInt(_0x1dbafb(0x21f))/0x6)+parseInt(_0x1dbafb(0x1ad))/0x7*(-parseInt(_0x1dbafb(0x1f7))/0x8)+parseInt(_0x1dbafb(0x1a7))/0x9+parseInt(_0x1dbafb(0x1b4))/0xa*(parseInt(_0x1dbafb(0x1c6))/0xb)+-parseInt(_0x1dbafb(0x1c2))/0xc;if(_0x41a96b===_0x200ded)break;else _0x15b611['push'](_0x15b611['shift']());}catch(_0x4ff0c9){_0x15b611['push'](_0x15b611['shift']());}}}(_0x47e7,0xaaaab));import{Plugin as _0x88f661}from'ckeditor5/src/core.js';import{global as _0x2f0687,DomEmitterMixin as _0x57a315}from'ckeditor5/src/utils.js';function _0x47e7(){const _0x33c838=['highest','clear','user:range','getFirstRange','createUIElement','getStart','isSimilar','hasContent','false','user:position:','init','add','contenteditable','marker','conversion','detach','getContainedElement','5261319JYVwSa','classList','addMarker','rootName','schema','getUserBySessionId','2795919kSjGPy','start','ck-user__selection','mapper','toDomElement','newRange','undo','126120uGXoxE','1603UWyqOS','batch','startsWith','$text','712ONQGMZ','oldRange','createElement','$graveyard','isCollapsed','stopListening','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','addEventListener','spellcheck','4926696WVaaNW','deletionPosition','toRange','split','1144NOZPEN','_createdBatches','requires','selection','setCustomProperty','markerName','markerToHighlight','element','set','data-session-id','root','getRange','commands','user:range:','change:range','getNearestSelectionRange','afterInit','applyOperation','getSelectionClass','delete','enqueueChange','parent','size','editingDowncast','user:position','fromRange','updateMarker','isInline','getMarkerClass','isDocumentOperation','textContent','tableCell','reconvertMarker','plugins','ck-user__marker_hovered','document','mouseleave','color','Escape','has','UserMarkers','listenTo','for','span','1276vIZSfA','innerHTML','createRange','90210yxbpVC','editing','8KDvlfG','name','destroy','checkChild','setAttribute','model','markerRange','_domEmitter','keydown','view','nodeAfter','removeClass','userPositionMarker','removeMarker','getAttribute','outerHTML','markers','markerNameToElements','remove','editor','markerToElement','isObject','isPremiumPlugin','end','ck-user__marker-tooltip','pluginName','createUserMarkerOperations','2391spoWvp','hasDomSelection','isOfficialPlugin','orderNumber','user:','getPositions','change','render','mouseenter','type','isLimit','getCustomProperty','ck-user__marker\x20','234gnqadV','update:user:range','mySessionId','get'];_0x47e7=function(){return _0x33c838;};return _0x47e7();}import{Sessions as _0x4fdefe}from'./sessions.js';import{ModelLiveRange as _0x4e68c5}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x88f661{[_0x13d916(0x1fe)]=new(_0x57a315())();static get[_0x13d916(0x1c8)](){return[_0x4fdefe];}static get[_0x13d916(0x210)](){const _0xc4a13f=_0x13d916;return _0xc4a13f(0x1ee);}static get[_0x13d916(0x214)](){return!0x0;}static get[_0x13d916(0x20d)](){return!0x0;}[_0x13d916(0x22d)](){const _0x738190=_0x13d916,_0x1c6132=this[_0x738190(0x20a)],_0x7870b6=_0x1c6132[_0x738190(0x1e7)][_0x738190(0x222)](_0x4fdefe);_0x1c6132[_0x738190(0x1a4)][_0x738190(0x1f0)](_0x738190(0x1dd))[_0x738190(0x20b)]({'model':_0x738190(0x1de),'view':(_0x209270,{writer:_0x53cfe8})=>function(_0x14e578,_0x39b2a0,_0x36837f,_0xa49963){const _0x520805=_0x738190,_0x50b752=_0x14e578[_0x520805(0x1cb)][_0x520805(0x1c5)](':')[0x2],_0x5e1c73=_0x36837f[_0x520805(0x1ac)](_0x50b752);if(!_0x5e1c73||_0x50b752===_0x36837f[_0x520805(0x221)])return;if(!_0xa49963[_0x520805(0x1fc)][_0x520805(0x1ab)][_0x520805(0x1fa)](_0x14e578[_0x520805(0x1fd)][_0x520805(0x1ae)],_0x520805(0x1b8)))return;const _0x723a20={'class':_0x520805(0x21e)+_0x5e1c73[_0x520805(0x1eb)][_0x520805(0x1e2)](),'data-name':_0x5e1c73[_0x520805(0x1f8)],'data-session-id':_0x50b752},_0x91d3b8=_0xa49963[_0x520805(0x1fc)][_0x520805(0x207)][_0x520805(0x222)](_0x14e578[_0x520805(0x1cb)]),_0x21bc64=_0x91d3b8[_0x520805(0x228)](),_0x44dce1=_0x21bc64[_0x520805(0x201)],_0x41a6eb=_0xa49963[_0x520805(0x1fc)][_0x520805(0x1ab)];if(_0x44dce1&&_0x41a6eb[_0x520805(0x20c)](_0x44dce1)&&_0x41a6eb[_0x520805(0x1e1)](_0x44dce1)&&!_0xa49963[_0x520805(0x1fc)][_0x520805(0x207)][_0x520805(0x222)](_0x520805(0x1d3)+_0x50b752)[_0x520805(0x1d1)]()[_0x520805(0x1bd)])return;const _0x534748=_0x21bc64[_0x520805(0x1db)];return _0xa49963[_0x520805(0x1fc)][_0x520805(0x1ab)][_0x520805(0x21c)](_0x534748)&&!_0xa49963[_0x520805(0x1fc)][_0x520805(0x22a)](_0x534748)&&(_0x723a20[_0x520805(0x1a2)]=!0x1),function(_0x1fc79c,_0x7a2f8c,_0x42f502){const _0x1cb9d2=_0x520805,_0x4d94e8=_0x1fc79c[_0x1cb9d2(0x227)](_0x1cb9d2(0x1f1),_0x7a2f8c);return _0x1fc79c[_0x1cb9d2(0x1ca)](_0x1cb9d2(0x203),!0x0,_0x4d94e8),_0x4d94e8[_0x1cb9d2(0x219)]=function(_0x417981){const _0xaac44a=_0x1cb9d2,_0x18b275=this[_0xaac44a(0x1b1)](_0x417981),_0x4d70f2=document[_0xaac44a(0x1bb)](_0xaac44a(0x1f1));return _0x4d70f2[_0xaac44a(0x1a8)][_0xaac44a(0x22e)](_0xaac44a(0x20f)),_0x4d70f2[_0xaac44a(0x1fb)](_0xaac44a(0x1a2),_0xaac44a(0x22b)),_0x4d70f2[_0xaac44a(0x1fb)](_0xaac44a(0x1c1),_0xaac44a(0x22b)),_0x4d70f2[_0xaac44a(0x1e4)]=_0x42f502[_0xaac44a(0x1f8)],_0x18b275[_0xaac44a(0x1f3)]=_0xaac44a(0x1bf)+_0x4d70f2[_0xaac44a(0x206)]+'⁠',_0x18b275[_0xaac44a(0x1c0)](_0xaac44a(0x21a),()=>{const _0x461a69=_0xaac44a;_0x18b275[_0x461a69(0x1a8)][_0x461a69(0x22e)](_0x461a69(0x1e8));}),_0x18b275[_0xaac44a(0x1c0)](_0xaac44a(0x1ea),()=>{const _0x589599=_0xaac44a;_0x18b275[_0x589599(0x1a8)][_0x589599(0x209)](_0x589599(0x1e8));}),_0x18b275;},_0x4d94e8[_0x1cb9d2(0x229)]=function(_0x4f6d7c){const _0x27f147=_0x1cb9d2;return!(!this[_0x27f147(0x21d)](_0x27f147(0x203))||!_0x4f6d7c[_0x27f147(0x21d)](_0x27f147(0x203))||this[_0x27f147(0x205)](_0x27f147(0x1cf))!=_0x4f6d7c[_0x27f147(0x205)](_0x27f147(0x1cf)));},_0x4d94e8;}(_0x39b2a0,_0x723a20,_0x5e1c73);}(_0x209270,_0x53cfe8,_0x7870b6,_0x1c6132)}),_0x1c6132[_0x738190(0x1a4)][_0x738190(0x1f0)](_0x738190(0x1dd))[_0x738190(0x1cc)]({'model':_0x738190(0x225),'view':_0x5ba3af=>function(_0x492acb,_0x5d01fb){const _0x2d5b42=_0x738190,_0x1767e3=_0x492acb[_0x2d5b42(0x1cb)][_0x2d5b42(0x1c5)](':')[0x2];if(_0x1767e3===_0x5d01fb[_0x2d5b42(0x221)])return null;const _0x10fadb=_0x5d01fb[_0x2d5b42(0x1ac)](_0x1767e3);if(!_0x10fadb)return{'id':_0x1767e3,'classes':[]};return{'id':_0x1767e3,'classes':[_0x2d5b42(0x1af),_0x10fadb[_0x2d5b42(0x1eb)][_0x2d5b42(0x1d8)]()],'attributes':{'data-session-id':_0x1767e3},'priority':0x7d0+_0x10fadb[_0x2d5b42(0x215)]};}(_0x5ba3af,_0x7870b6)}),function(_0x5457f2){const _0x17c611=_0x738190,_0x566346=_0x5457f2[_0x17c611(0x1fc)],_0x5c7158=new Map(),_0x1228af=_0x5457f2[_0x17c611(0x1e7)][_0x17c611(0x222)](_0x4fdefe);_0x566346[_0x17c611(0x207)]['on'](_0x17c611(0x220),(_0x32611c,_0x276c4b,_0x4990b3,_0xbe29cb)=>{const _0x55ec48=_0x17c611;if(!_0xbe29cb&&_0x5c7158[_0x55ec48(0x222)](_0x276c4b[_0x55ec48(0x1f8)]))return _0x5c7158[_0x55ec48(0x222)](_0x276c4b[_0x55ec48(0x1f8)])[_0x55ec48(0x1a5)](),void _0x5c7158[_0x55ec48(0x1d9)](_0x276c4b[_0x55ec48(0x1f8)]);const _0x4036dc=_0x276c4b[_0x55ec48(0x1f8)][_0x55ec48(0x1c5)](':')[0x2];if(_0x4036dc===_0x1228af[_0x55ec48(0x221)])return;const _0x1c8b7c=_0x55ec48(0x22c)+_0x4036dc;_0x566346[_0x55ec48(0x207)][_0x55ec48(0x1ed)](_0x1c8b7c)&&_0x5457f2[_0x55ec48(0x1f6)][_0x55ec48(0x1e6)](_0x1c8b7c),_0x276c4b['on'](_0x55ec48(0x1d4),(_0x12beca,_0x1fd3bf,_0x19b2ea)=>{const _0x2573bf=_0x55ec48;if(_0x2573bf(0x1bc)!=_0x1fd3bf[_0x2573bf(0x1d0)][_0x2573bf(0x1aa)]&&_0x2573bf(0x1bc)==_0x276c4b[_0x2573bf(0x1d1)]()[_0x2573bf(0x1d0)][_0x2573bf(0x1aa)]&&!_0x5c7158[_0x2573bf(0x1ed)](_0x276c4b[_0x2573bf(0x1f8)])){const _0x2c3aab=_0x566346[_0x2573bf(0x1ab)][_0x2573bf(0x1d5)](_0x19b2ea[_0x2573bf(0x1c3)]);if(_0x2c3aab){const _0x567b87=_0x4e68c5[_0x2573bf(0x1df)](_0x2c3aab);_0x5c7158[_0x2573bf(0x1ce)](_0x276c4b[_0x2573bf(0x1f8)],_0x567b87),_0x567b87['on'](_0x2573bf(0x1d4),(_0x23c383,_0x5087cc,_0x122a2f)=>{const _0x45a623=_0x2573bf;if(_0x45a623(0x1bc)==_0x567b87[_0x45a623(0x1d0)][_0x45a623(0x1aa)]){const _0x5e4543=_0x566346[_0x45a623(0x1ab)][_0x45a623(0x1d5)](_0x122a2f[_0x45a623(0x1c3)]);_0x5e4543?(_0x567b87[_0x45a623(0x1ae)]=_0x5e4543[_0x45a623(0x1ae)],_0x567b87[_0x45a623(0x20e)]=_0x5e4543[_0x45a623(0x20e)]):(_0x5c7158[_0x45a623(0x1d9)](_0x276c4b[_0x45a623(0x1f8)]),_0x567b87[_0x45a623(0x1a5)]());}});}}});}),_0x566346[_0x17c611(0x1e9)]['on'](_0x17c611(0x218),()=>{const _0x5bec4f=_0x17c611;_0x5c7158[_0x5bec4f(0x1dc)]>0x0&&_0x566346[_0x5bec4f(0x1da)]({'isUndoable':!0x1},_0x47adab=>{const _0x30c5a1=_0x5bec4f;for(const [_0x5258c4,_0x592e24]of _0x5c7158)_0x30c5a1(0x1bc)==_0x566346[_0x30c5a1(0x207)][_0x30c5a1(0x222)](_0x5258c4)[_0x30c5a1(0x1d1)]()[_0x30c5a1(0x1d0)][_0x30c5a1(0x1aa)]&&(Z(_0x5258c4[_0x30c5a1(0x1c5)](':')[0x2],_0x592e24[_0x30c5a1(0x1c4)](),_0x566346,_0x47adab),_0x592e24[_0x30c5a1(0x1a5)]());_0x5c7158[_0x30c5a1(0x224)]();});});}(_0x1c6132),this[_0x738190(0x1fe)][_0x738190(0x1ef)](_0x2f0687[_0x738190(0x1e9)],_0x738190(0x1ff),(_0x48ba01,{key:_0x5c0011})=>{const _0x3ef4d3=_0x738190;_0x3ef4d3(0x1ec)===_0x5c0011&&function(_0x12a7bc){const _0x2038f5=_0x3ef4d3;_0x12a7bc[_0x2038f5(0x1f6)][_0x2038f5(0x200)][_0x2038f5(0x218)](_0x3da900=>{const _0x5138fe=_0x2038f5;for(const _0x452115 of _0x12a7bc[_0x5138fe(0x1fc)][_0x5138fe(0x207)]){if(!_0x452115[_0x5138fe(0x1f8)][_0x5138fe(0x1b7)](_0x5138fe(0x1de)))continue;const _0x3218a1=_0x12a7bc[_0x5138fe(0x1f6)][_0x5138fe(0x1b0)][_0x5138fe(0x208)](_0x452115[_0x5138fe(0x1f8)]);if(_0x3218a1){for(const _0x443630 of _0x3218a1)_0x3da900[_0x5138fe(0x202)](_0x5138fe(0x1e8),_0x443630);}}});}(_0x1c6132);},{'useCapture':!0x0});}[_0x13d916(0x1d6)](){const _0x3295d6=_0x13d916,_0x1222e0=this[_0x3295d6(0x20a)],_0x43a67d=_0x1222e0[_0x3295d6(0x1d2)][_0x3295d6(0x222)](_0x3295d6(0x1b3));_0x43a67d&&_0x1222e0[_0x3295d6(0x1fc)]['on'](_0x3295d6(0x1d7),(_0x36ab77,_0x2c285e)=>{const _0x27effd=_0x3295d6,_0x19f8e3=_0x2c285e[0x0];if(!_0x19f8e3[_0x27effd(0x1e3)])return;if(_0x27effd(0x1a3)!=_0x19f8e3[_0x27effd(0x21b)]||!_0x19f8e3[_0x27effd(0x1f8)][_0x27effd(0x1b7)](_0x27effd(0x216)))return;const _0x3a8a15=_0x19f8e3[_0x27effd(0x1b6)];_0x43a67d[_0x27effd(0x1c7)][_0x27effd(0x1ed)](_0x3a8a15)&&(_0x19f8e3[_0x27effd(0x1b2)]=_0x19f8e3[_0x27effd(0x1ba)]?_0x1222e0[_0x27effd(0x1fc)][_0x27effd(0x1f4)](_0x19f8e3[_0x27effd(0x1ba)][_0x27effd(0x1ae)],_0x19f8e3[_0x27effd(0x1ba)][_0x27effd(0x20e)]):null);},{'priority':_0x3295d6(0x223)});}[_0x13d916(0x1f9)](){const _0x3ab861=_0x13d916;return this[_0x3ab861(0x1fe)][_0x3ab861(0x1be)](),super[_0x3ab861(0x1f9)]();}[_0x13d916(0x211)](){const _0x33f86a=_0x13d916,_0x2b417c=this[_0x33f86a(0x20a)],_0x4c1658=_0x2b417c[_0x33f86a(0x1fc)][_0x33f86a(0x1e9)],_0x22886c=_0x2b417c[_0x33f86a(0x1e7)][_0x33f86a(0x222)](_0x4fdefe);_0x2b417c[_0x33f86a(0x1fc)][_0x33f86a(0x1da)]({'isUndoable':!0x1},_0x282431=>{const _0x510fe5=_0x33f86a,_0x4044e1=_0x510fe5(0x1d3)+_0x22886c[_0x510fe5(0x221)],_0x597563=_0x510fe5(0x22c)+_0x22886c[_0x510fe5(0x221)],_0xab243=_0x2b417c[_0x510fe5(0x1fc)][_0x510fe5(0x207)][_0x510fe5(0x1ed)](_0x4044e1);_0x2b417c[_0x510fe5(0x1f6)][_0x510fe5(0x200)][_0x510fe5(0x213)]?Z(_0x22886c[_0x510fe5(0x221)],_0x4c1658[_0x510fe5(0x1c9)][_0x510fe5(0x226)](),_0x2b417c[_0x510fe5(0x1fc)],_0x282431):_0xab243&&(_0x282431[_0x510fe5(0x204)](_0x4044e1),_0x282431[_0x510fe5(0x204)](_0x597563));});}}function Z(_0x34906e,_0x302bf9,_0x5e8093,_0xf029a8){const _0x118571=_0x13d916,_0x570538=_0x118571(0x1d3)+_0x34906e,_0x3bb748=_0x118571(0x22c)+_0x34906e,_0x279625=_0x302bf9[_0x118571(0x1a6)]();let _0x1629be=_0x302bf9[_0x118571(0x1ae)];if(_0x279625&&_0x279625['is'](_0x118571(0x1cd),_0x118571(0x1e5))){const _0xab1b3b=function(_0x60e3c4,_0x40c3c9){const _0x980f12=_0x118571;for(const _0x960d53 of _0x60e3c4[_0x980f12(0x217)]())if(_0x40c3c9[_0x980f12(0x1ab)][_0x980f12(0x1fa)](_0x960d53,_0x980f12(0x1b8)))return _0x960d53;}(_0x302bf9,_0x5e8093);_0xab1b3b&&(_0x1629be=_0xab1b3b,_0x302bf9=_0xf029a8[_0x118571(0x1f4)](_0x1629be));}const _0x286e74=_0xf029a8[_0x118571(0x1f4)](_0x1629be);_0x5e8093[_0x118571(0x207)][_0x118571(0x1ed)](_0x570538)?(_0xf029a8[_0x118571(0x1e0)](_0x570538,{'range':_0x302bf9}),_0xf029a8[_0x118571(0x1e0)](_0x3bb748,{'range':_0x286e74})):(_0xf029a8[_0x118571(0x1a9)](_0x570538,{'range':_0x302bf9,'usingOperation':!0x0}),_0xf029a8[_0x118571(0x1a9)](_0x3bb748,{'range':_0x286e74,'usingOperation':!0x0}));}
23
+ function _0x203d(){const _0xf787ae=['isOfficialPlugin','type','addMarker','Escape','conversion','toRange','24836IYuSzG','ck-user__marker_hovered','user:position:','for','element','destroy','6081607xJogar','_createdBatches','getFirstRange','getRange','markerName','ck-user__marker-tooltip','isInline','oldRange','setCustomProperty','hasContent','orderNumber','false','model','change','enqueueChange','set','ck-user__marker\x20','name','4070620vKCSwO','6RgVHHP','update:user:range','classList','removeMarker','mouseleave','applyOperation','delete','createUIElement','markerToHighlight','schema','user:position','detach','parent','8260ELPHQV','has','textContent','checkChild','markers','editing','get','mouseenter','remove','userPositionMarker','markerNameToElements','change:range','getCustomProperty','2906316aSKTpa','741QOMMrB','isCollapsed','mySessionId','selection','getMarkerClass','getStart','isSimilar','split','plugins','33JvnmJv','user:','addEventListener','UserMarkers','createElement','853128jKKCYM','view','start','toDomElement','hasDomSelection','commands','getAttribute','fromRange','clear','deletionPosition','outerHTML','requires','createRange','stopListening','isPremiumPlugin','data-session-id','listenTo','newRange','innerHTML','afterInit','pluginName','getUserBySessionId','301MkdswJ','color','add','reconvertMarker','getSelectionClass','span','marker','size','rootName','createUserMarkerOperations','user:range','removeClass','markerRange','contenteditable','batch','$text','nodeAfter','root','editor','mapper','tableCell','startsWith','keydown','setAttribute','$graveyard','_domEmitter','render','user:range:','isLimit','end','isDocumentOperation','⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','getContainedElement','getPositions','document','markerToElement','init','spellcheck','isObject','getNearestSelectionRange','editingDowncast','updateMarker','undo','highest','6713555vfPkrf','ck-user__selection'];_0x203d=function(){return _0xf787ae;};return _0x203d();}const _0x2939f1=_0x45ab;(function(_0x17ce0d,_0x4d1b5a){const _0x14e48a=_0x45ab,_0x40dffa=_0x17ce0d();while(!![]){try{const _0x1a2ea8=parseInt(_0x14e48a(0x16e))/0x1*(parseInt(_0x14e48a(0x1c8))/0x2)+parseInt(_0x14e48a(0x1d6))/0x3*(-parseInt(_0x14e48a(0x1a2))/0x4)+parseInt(_0x14e48a(0x19a))/0x5*(-parseInt(_0x14e48a(0x1bb))/0x6)+parseInt(_0x14e48a(0x1a8))/0x7+parseInt(_0x14e48a(0x1e4))/0x8+parseInt(_0x14e48a(0x1d5))/0x9+parseInt(_0x14e48a(0x1ba))/0xa*(parseInt(_0x14e48a(0x1df))/0xb);if(_0x1a2ea8===_0x4d1b5a)break;else _0x40dffa['push'](_0x40dffa['shift']());}catch(_0xb93a8a){_0x40dffa['push'](_0x40dffa['shift']());}}}(_0x203d,0xd864c));import{Plugin as _0x59e84a}from'ckeditor5/src/core.js';import{global as _0x9153dd,DomEmitterMixin as _0x962584}from'ckeditor5/src/utils.js';import{Sessions as _0x249b1d}from'./sessions.js';import{ModelLiveRange as _0x51379d}from'ckeditor5/src/engine.js';function _0x45ab(_0x2fd70c,_0x1dc088){const _0x203db2=_0x203d();return _0x45ab=function(_0x45ab3a,_0x42d34a){_0x45ab3a=_0x45ab3a-0x159;let _0x2a98e7=_0x203db2[_0x45ab3a];return _0x2a98e7;},_0x45ab(_0x2fd70c,_0x1dc088);}import'../../theme/usermarkers.css';export class UserMarkers extends _0x59e84a{[_0x2939f1(0x187)]=new(_0x962584())();static get[_0x2939f1(0x163)](){return[_0x249b1d];}static get[_0x2939f1(0x16c)](){const _0x520b2a=_0x2939f1;return _0x520b2a(0x1e2);}static get[_0x2939f1(0x19c)](){return!0x0;}static get[_0x2939f1(0x166)](){return!0x0;}[_0x2939f1(0x192)](){const _0x440d4d=_0x2939f1,_0x5580d7=this[_0x440d4d(0x180)],_0x3d8ecf=_0x5580d7[_0x440d4d(0x1de)][_0x440d4d(0x1ce)](_0x249b1d);_0x5580d7[_0x440d4d(0x1a0)][_0x440d4d(0x1a5)](_0x440d4d(0x196))[_0x440d4d(0x191)]({'model':_0x440d4d(0x1c5),'view':(_0x531af3,{writer:_0x54c9fb})=>function(_0x4d87f9,_0x51b0fb,_0x45fb0e,_0x4dbdcd){const _0x1a6ded=_0x440d4d,_0x1f2bd2=_0x4d87f9[_0x1a6ded(0x1ac)][_0x1a6ded(0x1dd)](':')[0x2],_0x403871=_0x45fb0e[_0x1a6ded(0x16d)](_0x1f2bd2);if(!_0x403871||_0x1f2bd2===_0x45fb0e[_0x1a6ded(0x1d8)])return;if(!_0x4dbdcd[_0x1a6ded(0x1b4)][_0x1a6ded(0x1c4)][_0x1a6ded(0x1cb)](_0x4d87f9[_0x1a6ded(0x17a)][_0x1a6ded(0x15a)],_0x1a6ded(0x17d)))return;const _0x5db320={'class':_0x1a6ded(0x1b8)+_0x403871[_0x1a6ded(0x16f)][_0x1a6ded(0x1da)](),'data-name':_0x403871[_0x1a6ded(0x1b9)],'data-session-id':_0x1f2bd2},_0x373f78=_0x4dbdcd[_0x1a6ded(0x1b4)][_0x1a6ded(0x1cc)][_0x1a6ded(0x1ce)](_0x4d87f9[_0x1a6ded(0x1ac)]),_0xf1b77f=_0x373f78[_0x1a6ded(0x1db)](),_0x17fe29=_0xf1b77f[_0x1a6ded(0x17e)],_0x2f85a4=_0x4dbdcd[_0x1a6ded(0x1b4)][_0x1a6ded(0x1c4)];if(_0x17fe29&&_0x2f85a4[_0x1a6ded(0x194)](_0x17fe29)&&_0x2f85a4[_0x1a6ded(0x1ae)](_0x17fe29)&&!_0x4dbdcd[_0x1a6ded(0x1b4)][_0x1a6ded(0x1cc)][_0x1a6ded(0x1ce)](_0x1a6ded(0x189)+_0x1f2bd2)[_0x1a6ded(0x1ab)]()[_0x1a6ded(0x1d7)])return;const _0x19f4d9=_0xf1b77f[_0x1a6ded(0x1c7)];return _0x4dbdcd[_0x1a6ded(0x1b4)][_0x1a6ded(0x1c4)][_0x1a6ded(0x18a)](_0x19f4d9)&&!_0x4dbdcd[_0x1a6ded(0x1b4)][_0x1a6ded(0x1b1)](_0x19f4d9)&&(_0x5db320[_0x1a6ded(0x17b)]=!0x1),function(_0x31200b,_0x2dc6b5,_0xfd457d){const _0x36e2e3=_0x1a6ded,_0x1b889=_0x31200b[_0x36e2e3(0x1c2)](_0x36e2e3(0x173),_0x2dc6b5);return _0x31200b[_0x36e2e3(0x1b0)](_0x36e2e3(0x1d1),!0x0,_0x1b889),_0x1b889[_0x36e2e3(0x188)]=function(_0x496bd5){const _0x586de5=_0x36e2e3,_0x144d69=this[_0x586de5(0x15b)](_0x496bd5),_0x38139c=document[_0x586de5(0x1e3)](_0x586de5(0x173));return _0x38139c[_0x586de5(0x1bd)][_0x586de5(0x170)](_0x586de5(0x1ad)),_0x38139c[_0x586de5(0x185)](_0x586de5(0x17b),_0x586de5(0x1b3)),_0x38139c[_0x586de5(0x185)](_0x586de5(0x193),_0x586de5(0x1b3)),_0x38139c[_0x586de5(0x1ca)]=_0xfd457d[_0x586de5(0x1b9)],_0x144d69[_0x586de5(0x16a)]=_0x586de5(0x18d)+_0x38139c[_0x586de5(0x162)]+'⁠',_0x144d69[_0x586de5(0x1e1)](_0x586de5(0x1cf),()=>{const _0x3b33fc=_0x586de5;_0x144d69[_0x3b33fc(0x1bd)][_0x3b33fc(0x170)](_0x3b33fc(0x1a3));}),_0x144d69[_0x586de5(0x1e1)](_0x586de5(0x1bf),()=>{const _0x57894f=_0x586de5;_0x144d69[_0x57894f(0x1bd)][_0x57894f(0x1d0)](_0x57894f(0x1a3));}),_0x144d69;},_0x1b889[_0x36e2e3(0x1dc)]=function(_0x3bd82e){const _0x5a759a=_0x36e2e3;return!(!this[_0x5a759a(0x1d4)](_0x5a759a(0x1d1))||!_0x3bd82e[_0x5a759a(0x1d4)](_0x5a759a(0x1d1))||this[_0x5a759a(0x15e)](_0x5a759a(0x167))!=_0x3bd82e[_0x5a759a(0x15e)](_0x5a759a(0x167)));},_0x1b889;}(_0x51b0fb,_0x5db320,_0x403871);}(_0x531af3,_0x54c9fb,_0x3d8ecf,_0x5580d7)}),_0x5580d7[_0x440d4d(0x1a0)][_0x440d4d(0x1a5)](_0x440d4d(0x196))[_0x440d4d(0x1c3)]({'model':_0x440d4d(0x178),'view':_0x32dd50=>function(_0x21ffd8,_0x5c7a62){const _0x319f87=_0x440d4d,_0x4e80ce=_0x21ffd8[_0x319f87(0x1ac)][_0x319f87(0x1dd)](':')[0x2];if(_0x4e80ce===_0x5c7a62[_0x319f87(0x1d8)])return null;const _0xc9ab14=_0x5c7a62[_0x319f87(0x16d)](_0x4e80ce);if(!_0xc9ab14)return{'id':_0x4e80ce,'classes':[]};return{'id':_0x4e80ce,'classes':[_0x319f87(0x19b),_0xc9ab14[_0x319f87(0x16f)][_0x319f87(0x172)]()],'attributes':{'data-session-id':_0x4e80ce},'priority':0x7d0+_0xc9ab14[_0x319f87(0x1b2)]};}(_0x32dd50,_0x3d8ecf)}),function(_0x57124e){const _0x3c51d8=_0x440d4d,_0x239309=_0x57124e[_0x3c51d8(0x1b4)],_0x1cb2bf=new Map(),_0x29a427=_0x57124e[_0x3c51d8(0x1de)][_0x3c51d8(0x1ce)](_0x249b1d);_0x239309[_0x3c51d8(0x1cc)]['on'](_0x3c51d8(0x1bc),(_0x57cf2a,_0x231a15,_0x47f586,_0x420ace)=>{const _0x35a093=_0x3c51d8;if(!_0x420ace&&_0x1cb2bf[_0x35a093(0x1ce)](_0x231a15[_0x35a093(0x1b9)]))return _0x1cb2bf[_0x35a093(0x1ce)](_0x231a15[_0x35a093(0x1b9)])[_0x35a093(0x1c6)](),void _0x1cb2bf[_0x35a093(0x1c1)](_0x231a15[_0x35a093(0x1b9)]);const _0x418561=_0x231a15[_0x35a093(0x1b9)][_0x35a093(0x1dd)](':')[0x2];if(_0x418561===_0x29a427[_0x35a093(0x1d8)])return;const _0x52668b=_0x35a093(0x1a4)+_0x418561;_0x239309[_0x35a093(0x1cc)][_0x35a093(0x1c9)](_0x52668b)&&_0x57124e[_0x35a093(0x1cd)][_0x35a093(0x171)](_0x52668b),_0x231a15['on'](_0x35a093(0x1d3),(_0x4c7479,_0x46ff6b,_0x508de6)=>{const _0x1e6ff3=_0x35a093;if(_0x1e6ff3(0x186)!=_0x46ff6b[_0x1e6ff3(0x17f)][_0x1e6ff3(0x176)]&&_0x1e6ff3(0x186)==_0x231a15[_0x1e6ff3(0x1ab)]()[_0x1e6ff3(0x17f)][_0x1e6ff3(0x176)]&&!_0x1cb2bf[_0x1e6ff3(0x1c9)](_0x231a15[_0x1e6ff3(0x1b9)])){const _0x3cc822=_0x239309[_0x1e6ff3(0x1c4)][_0x1e6ff3(0x195)](_0x508de6[_0x1e6ff3(0x161)]);if(_0x3cc822){const _0x3d45e2=_0x51379d[_0x1e6ff3(0x15f)](_0x3cc822);_0x1cb2bf[_0x1e6ff3(0x1b7)](_0x231a15[_0x1e6ff3(0x1b9)],_0x3d45e2),_0x3d45e2['on'](_0x1e6ff3(0x1d3),(_0x41bfee,_0x16a88d,_0x3d0394)=>{const _0x22dadb=_0x1e6ff3;if(_0x22dadb(0x186)==_0x3d45e2[_0x22dadb(0x17f)][_0x22dadb(0x176)]){const _0x43902e=_0x239309[_0x22dadb(0x1c4)][_0x22dadb(0x195)](_0x3d0394[_0x22dadb(0x161)]);_0x43902e?(_0x3d45e2[_0x22dadb(0x15a)]=_0x43902e[_0x22dadb(0x15a)],_0x3d45e2[_0x22dadb(0x18b)]=_0x43902e[_0x22dadb(0x18b)]):(_0x1cb2bf[_0x22dadb(0x1c1)](_0x231a15[_0x22dadb(0x1b9)]),_0x3d45e2[_0x22dadb(0x1c6)]());}});}}});}),_0x239309[_0x3c51d8(0x190)]['on'](_0x3c51d8(0x1b5),()=>{const _0x249368=_0x3c51d8;_0x1cb2bf[_0x249368(0x175)]>0x0&&_0x239309[_0x249368(0x1b6)]({'isUndoable':!0x1},_0x322b88=>{const _0x2251fc=_0x249368;for(const [_0x5cc546,_0x50c60c]of _0x1cb2bf)_0x2251fc(0x186)==_0x239309[_0x2251fc(0x1cc)][_0x2251fc(0x1ce)](_0x5cc546)[_0x2251fc(0x1ab)]()[_0x2251fc(0x17f)][_0x2251fc(0x176)]&&(ee(_0x5cc546[_0x2251fc(0x1dd)](':')[0x2],_0x50c60c[_0x2251fc(0x1a1)](),_0x239309,_0x322b88),_0x50c60c[_0x2251fc(0x1c6)]());_0x1cb2bf[_0x2251fc(0x160)]();});});}(_0x5580d7),this[_0x440d4d(0x187)][_0x440d4d(0x168)](_0x9153dd[_0x440d4d(0x190)],_0x440d4d(0x184),(_0x47407a,{key:_0x17ed95})=>{const _0x2e7751=_0x440d4d;_0x2e7751(0x19f)===_0x17ed95&&function(_0x5e95fd){const _0x115955=_0x2e7751;_0x5e95fd[_0x115955(0x1cd)][_0x115955(0x159)][_0x115955(0x1b5)](_0x261999=>{const _0x18c0b6=_0x115955;for(const _0x5911d7 of _0x5e95fd[_0x18c0b6(0x1b4)][_0x18c0b6(0x1cc)]){if(!_0x5911d7[_0x18c0b6(0x1b9)][_0x18c0b6(0x183)](_0x18c0b6(0x1c5)))continue;const _0x359b1b=_0x5e95fd[_0x18c0b6(0x1cd)][_0x18c0b6(0x181)][_0x18c0b6(0x1d2)](_0x5911d7[_0x18c0b6(0x1b9)]);if(_0x359b1b){for(const _0x59c1e1 of _0x359b1b)_0x261999[_0x18c0b6(0x179)](_0x18c0b6(0x1a3),_0x59c1e1);}}});}(_0x5580d7);},{'useCapture':!0x0});}[_0x2939f1(0x16b)](){const _0x1fbd0d=_0x2939f1,_0xfd693=this[_0x1fbd0d(0x180)],_0x5ed5cc=_0xfd693[_0x1fbd0d(0x15d)][_0x1fbd0d(0x1ce)](_0x1fbd0d(0x198));_0x5ed5cc&&_0xfd693[_0x1fbd0d(0x1b4)]['on'](_0x1fbd0d(0x1c0),(_0x2b4621,_0x305d57)=>{const _0xbf5ca3=_0x1fbd0d,_0x1ec8bf=_0x305d57[0x0];if(!_0x1ec8bf[_0xbf5ca3(0x18c)])return;if(_0xbf5ca3(0x174)!=_0x1ec8bf[_0xbf5ca3(0x19d)]||!_0x1ec8bf[_0xbf5ca3(0x1b9)][_0xbf5ca3(0x183)](_0xbf5ca3(0x1e0)))return;const _0x220559=_0x1ec8bf[_0xbf5ca3(0x17c)];_0x5ed5cc[_0xbf5ca3(0x1a9)][_0xbf5ca3(0x1c9)](_0x220559)&&(_0x1ec8bf[_0xbf5ca3(0x169)]=_0x1ec8bf[_0xbf5ca3(0x1af)]?_0xfd693[_0xbf5ca3(0x1b4)][_0xbf5ca3(0x164)](_0x1ec8bf[_0xbf5ca3(0x1af)][_0xbf5ca3(0x15a)],_0x1ec8bf[_0xbf5ca3(0x1af)][_0xbf5ca3(0x18b)]):null);},{'priority':_0x1fbd0d(0x199)});}[_0x2939f1(0x1a7)](){const _0x2e52d1=_0x2939f1;return this[_0x2e52d1(0x187)][_0x2e52d1(0x165)](),super[_0x2e52d1(0x1a7)]();}[_0x2939f1(0x177)](){const _0x1ce08f=_0x2939f1,_0x456dad=this[_0x1ce08f(0x180)],_0x4f7b98=_0x456dad[_0x1ce08f(0x1b4)][_0x1ce08f(0x190)],_0xfe4089=_0x456dad[_0x1ce08f(0x1de)][_0x1ce08f(0x1ce)](_0x249b1d);_0x456dad[_0x1ce08f(0x1b4)][_0x1ce08f(0x1b6)]({'isUndoable':!0x1},_0xe31b39=>{const _0x1dda05=_0x1ce08f,_0x1afde0=_0x1dda05(0x189)+_0xfe4089[_0x1dda05(0x1d8)],_0x28fde0=_0x1dda05(0x1a4)+_0xfe4089[_0x1dda05(0x1d8)],_0x38757=_0x456dad[_0x1dda05(0x1b4)][_0x1dda05(0x1cc)][_0x1dda05(0x1c9)](_0x1afde0);_0x456dad[_0x1dda05(0x1cd)][_0x1dda05(0x159)][_0x1dda05(0x15c)]?ee(_0xfe4089[_0x1dda05(0x1d8)],_0x4f7b98[_0x1dda05(0x1d9)][_0x1dda05(0x1aa)](),_0x456dad[_0x1dda05(0x1b4)],_0xe31b39):_0x38757&&(_0xe31b39[_0x1dda05(0x1be)](_0x1afde0),_0xe31b39[_0x1dda05(0x1be)](_0x28fde0));});}}function ee(_0x1f7ec3,_0x27eb06,_0x43d100,_0x999fbd){const _0x2fd867=_0x2939f1,_0x2bcdc0=_0x2fd867(0x189)+_0x1f7ec3,_0xcd0a3a=_0x2fd867(0x1a4)+_0x1f7ec3,_0x1d19e6=_0x27eb06[_0x2fd867(0x18e)]();let _0x3ba757=_0x27eb06[_0x2fd867(0x15a)];if(_0x1d19e6&&_0x1d19e6['is'](_0x2fd867(0x1a6),_0x2fd867(0x182))){const _0x3e8d99=function(_0x4e0448,_0x259d6f){const _0xbe84e3=_0x2fd867;for(const _0x7e979b of _0x4e0448[_0xbe84e3(0x18f)]())if(_0x259d6f[_0xbe84e3(0x1c4)][_0xbe84e3(0x1cb)](_0x7e979b,_0xbe84e3(0x17d)))return _0x7e979b;}(_0x27eb06,_0x43d100);_0x3e8d99&&(_0x3ba757=_0x3e8d99,_0x27eb06=_0x999fbd[_0x2fd867(0x164)](_0x3ba757));}const _0x1d6543=_0x999fbd[_0x2fd867(0x164)](_0x3ba757);_0x43d100[_0x2fd867(0x1cc)][_0x2fd867(0x1c9)](_0x2bcdc0)?(_0x999fbd[_0x2fd867(0x197)](_0x2bcdc0,{'range':_0x27eb06}),_0x999fbd[_0x2fd867(0x197)](_0xcd0a3a,{'range':_0x1d6543})):(_0x999fbd[_0x2fd867(0x19e)](_0x2bcdc0,{'range':_0x27eb06,'usingOperation':!0x0}),_0x999fbd[_0x2fd867(0x19e)](_0xcd0a3a,{'range':_0x1d6543,'usingOperation':!0x0}));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f88a0=_0x2a59;function _0x2a59(_0x21b333,_0x53b015){const _0x3558a5=_0x3558();return _0x2a59=function(_0x2a59e3,_0x2aa73b){_0x2a59e3=_0x2a59e3-0x114;let _0x1abb1a=_0x3558a5[_0x2a59e3];return _0x1abb1a;},_0x2a59(_0x21b333,_0x53b015);}(function(_0x28d040,_0x128ed0){const _0xd47c12=_0x2a59,_0x141a2f=_0x28d040();while(!![]){try{const _0x19b0bb=parseInt(_0xd47c12(0x140))/0x1*(parseInt(_0xd47c12(0x14e))/0x2)+-parseInt(_0xd47c12(0x121))/0x3*(parseInt(_0xd47c12(0x145))/0x4)+-parseInt(_0xd47c12(0x151))/0x5+parseInt(_0xd47c12(0x129))/0x6*(-parseInt(_0xd47c12(0x15c))/0x7)+-parseInt(_0xd47c12(0x15a))/0x8+-parseInt(_0xd47c12(0x159))/0x9+parseInt(_0xd47c12(0x134))/0xa;if(_0x19b0bb===_0x128ed0)break;else _0x141a2f['push'](_0x141a2f['shift']());}catch(_0x363edb){_0x141a2f['push'](_0x141a2f['shift']());}}}(_0x3558,0x495d1));import{ContextPlugin as _0x310f2d}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x3464d3,CKEditorError as _0x501a98}from'ckeditor5/src/utils.js';function _0x3558(){const _0x379eba=['stopListening','pluginName','isOfficialPlugin','from','3757824YQCCrM','3690672GMrllp','connection','1232028sXeSnV','init','connect','_isBrowserOffline','websocketgateway-plugin-already-registered','_shouldPluginsReconnect','cloudservices-reconnection-error','websocketgateway-missing-websocket-url','constructor','context','cloudservices-init','requires','catch','bind','CONNECTING','3fWxGuc','has','connected','initialReconnectionInterval','state','then','websocketgateway-invalid-plugin-interface','all','6lTMJNl','add','function','_reconnectionStack','set','cloudServices.requestTimeout','isPremiumPlugin','offline','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','online','13667080ZuHmAy','destroy','addToReconnectionStack','listenTo','showWarning','real-time-collaboration','limitExceeded','websocketgateway-missing-token','disconnect','CONNECTED','DISCONNECTED','isInReconnectionStack','197641BdCpdz','WebSocketGateway','token','_domEmitter','_reconnect','645548zerlJc','reconnect','plugins','get','webSocketUrl','cloudServices.connectionTimeout','change:me','delete','removeFromReconnectionStack','6UhmBdb','code','config','2214365jrfKQu','error','define','CloudServices'];_0x3558=function(){return _0x379eba;};return _0x3558();}import{WebSocketGateway as _0x336a0c,WEB_SOCKET_GATEWAY_STATES as _0x69a52d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x33d53f}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x310f2d{static [_0x2f88a0(0x141)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x336a0c)());static [_0x2f88a0(0x124)]=0x3e8;[_0x2f88a0(0x15b)];[_0x2f88a0(0x12c)];[_0x2f88a0(0x117)];[_0x2f88a0(0x143)];static get[_0x2f88a0(0x11d)](){const _0x2bbb8b=_0x2f88a0;return[_0x2bbb8b(0x154),_0x33d53f];}static get[_0x2f88a0(0x156)](){const _0x4ebded=_0x2f88a0;return _0x4ebded(0x141);}static get[_0x2f88a0(0x157)](){return!0x0;}static get[_0x2f88a0(0x12f)](){return!0x0;}constructor(_0x50a2c5){const _0x5b8df1=_0x2f88a0;super(_0x50a2c5),this[_0x5b8df1(0x12d)](_0x5b8df1(0x125),_0x69a52d[_0x5b8df1(0x13d)]),this[_0x5b8df1(0x12d)](_0x5b8df1(0x115),!0x1),this[_0x5b8df1(0x12c)]=new Set(),this[_0x5b8df1(0x117)]=!0x1,this[_0x5b8df1(0x143)]=new(_0x3464d3())();}[_0x2f88a0(0x15d)](){const _0x3d2271=_0x2f88a0,_0x44747d=this[_0x3d2271(0x11b)],_0x2ebcc2=_0x44747d[_0x3d2271(0x147)][_0x3d2271(0x148)](_0x3d2271(0x154)),_0x51d919=_0x44747d[_0x3d2271(0x147)][_0x3d2271(0x148)](_0x33d53f);if(!_0x2ebcc2[_0x3d2271(0x142)])throw new _0x501a98(_0x3d2271(0x13b),this);if(!_0x2ebcc2[_0x3d2271(0x149)])throw new _0x501a98(_0x3d2271(0x119),this);return this[_0x3d2271(0x143)][_0x3d2271(0x137)](window,_0x3d2271(0x130),()=>this[_0x3d2271(0x115)]=!0x0),this[_0x3d2271(0x143)][_0x3d2271(0x137)](window,_0x3d2271(0x133),()=>this[_0x3d2271(0x115)]=!0x1),this[_0x3d2271(0x11b)][_0x3d2271(0x150)][_0x3d2271(0x153)](_0x3d2271(0x14a),0xa),this[_0x3d2271(0x11b)][_0x3d2271(0x150)][_0x3d2271(0x153)](_0x3d2271(0x12e),0x14),WebSocketGateway[_0x3d2271(0x141)][_0x3d2271(0x114)](_0x2ebcc2[_0x3d2271(0x142)],_0x2ebcc2[_0x3d2271(0x149)],{'timeout':0x3e8*this[_0x3d2271(0x11b)][_0x3d2271(0x150)][_0x3d2271(0x148)](_0x3d2271(0x14a)),'requestTimeout':0x3e8*this[_0x3d2271(0x11b)][_0x3d2271(0x150)][_0x3d2271(0x148)](_0x3d2271(0x12e))})[_0x3d2271(0x126)](_0xe7c01e=>{const _0x45bceb=_0x3d2271;if(this[_0x45bceb(0x15b)]=_0xe7c01e,this[_0x45bceb(0x11f)](_0x45bceb(0x125))['to'](_0xe7c01e,_0x45bceb(0x125),this,_0x45bceb(0x115),(_0x372973,_0x2d46bb)=>(_0x45bceb(0x123)!==_0x372973&&(this[_0x45bceb(0x117)]=!0x0),_0x2d46bb||_0x372973!==_0x69a52d[_0x45bceb(0x13d)]?_0x69a52d[_0x45bceb(0x13e)]:this[_0x45bceb(0x125)]==_0x69a52d[_0x45bceb(0x13e)]&&this[_0x45bceb(0x117)]?(this[_0x45bceb(0x117)]=!0x1,this[_0x45bceb(0x144)](),_0x69a52d[_0x45bceb(0x120)]):_0x69a52d[_0x45bceb(0x13d)])),this[_0x45bceb(0x15b)]['on'](_0x45bceb(0x152),(_0x59d52a,_0x486066)=>{const _0x652635=_0x45bceb;if(_0x652635(0x13a)!==_0x486066[_0x652635(0x14f)])throw console[_0x652635(0x152)](_0x486066),new _0x501a98(_0x652635(0x11c),null,{'originalError':_0x486066});_0x51d919[_0x652635(0x138)](_0x652635(0x131),{'title':_0x652635(0x132),'namespace':_0x652635(0x139)});}),!_0xe7c01e['me'])return new Promise(_0x140e38=>_0xe7c01e['on'](_0x45bceb(0x14b),_0x140e38));})[_0x3d2271(0x11e)](_0x4e3539=>{const _0xadb51d=_0x3d2271;throw console[_0xadb51d(0x152)](_0x4e3539),new _0x501a98(_0xadb51d(0x11c),null,{'originalError':_0x4e3539});});}[_0x2f88a0(0x136)](_0x4fd3a1){const _0x425902=_0x2f88a0;if(_0x425902(0x12b)!=typeof _0x4fd3a1[_0x425902(0x146)])throw new _0x501a98(_0x425902(0x127),this);if(this[_0x425902(0x13f)](_0x4fd3a1))throw new _0x501a98(_0x425902(0x116),this,{'name':_0x4fd3a1[_0x425902(0x11a)][_0x425902(0x156)]});this[_0x425902(0x12c)][_0x425902(0x12a)](_0x4fd3a1);}[_0x2f88a0(0x14d)](_0x147f11){const _0x2ac081=_0x2f88a0;this[_0x2ac081(0x12c)][_0x2ac081(0x14c)](_0x147f11);}[_0x2f88a0(0x13f)](_0x517e59){const _0x439dd6=_0x2f88a0;return this[_0x439dd6(0x12c)][_0x439dd6(0x122)](_0x517e59);}[_0x2f88a0(0x144)](){const _0x502d7e=_0x2f88a0;return this[_0x502d7e(0x15b)][_0x502d7e(0x146)]()[_0x502d7e(0x126)](()=>Promise[_0x502d7e(0x128)](Array[_0x502d7e(0x158)](this[_0x502d7e(0x12c)],_0x2cdf7a=>_0x2cdf7a[_0x502d7e(0x146)]())))[_0x502d7e(0x126)](()=>this[_0x502d7e(0x125)]=_0x69a52d[_0x502d7e(0x13d)])[_0x502d7e(0x11e)](_0x2f186c=>{const _0x2ed222=_0x502d7e;throw console[_0x2ed222(0x152)](_0x2f186c),new _0x501a98(_0x2ed222(0x118),this[_0x2ed222(0x11b)]);});}[_0x2f88a0(0x13c)](){const _0x3ee74a=_0x2f88a0;this[_0x3ee74a(0x15b)]&&this[_0x3ee74a(0x15b)][_0x3ee74a(0x13c)](),this[_0x3ee74a(0x125)]=_0x69a52d[_0x3ee74a(0x13e)],this[_0x3ee74a(0x143)][_0x3ee74a(0x155)]();}[_0x2f88a0(0x135)](){const _0x13f248=_0x2f88a0;this[_0x13f248(0x13c)](),super[_0x13f248(0x135)]();}}
23
+ const _0x13eff2=_0x265f;(function(_0x2658de,_0x2f023e){const _0x307374=_0x265f,_0x378fbd=_0x2658de();while(!![]){try{const _0x25c0a0=parseInt(_0x307374(0x12a))/0x1*(-parseInt(_0x307374(0x108))/0x2)+parseInt(_0x307374(0x10e))/0x3+-parseInt(_0x307374(0xf7))/0x4+parseInt(_0x307374(0xfd))/0x5+parseInt(_0x307374(0x105))/0x6+-parseInt(_0x307374(0x124))/0x7*(-parseInt(_0x307374(0xef))/0x8)+parseInt(_0x307374(0xee))/0x9*(-parseInt(_0x307374(0xe1))/0xa);if(_0x25c0a0===_0x2f023e)break;else _0x378fbd['push'](_0x378fbd['shift']());}catch(_0x53edd0){_0x378fbd['push'](_0x378fbd['shift']());}}}(_0x2d14,0xd00fe));import{ContextPlugin as _0x209814}from'ckeditor5/src/core.js';function _0x265f(_0x55e686,_0x3ec1d0){const _0x2d14e6=_0x2d14();return _0x265f=function(_0x265fb0,_0x476591){_0x265fb0=_0x265fb0-0xe1;let _0x556f0c=_0x2d14e6[_0x265fb0];return _0x556f0c;},_0x265f(_0x55e686,_0x3ec1d0);}import{DomEmitterMixin as _0xf45dc,CKEditorError as _0x16fd36}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x1161dc,WEB_SOCKET_GATEWAY_STATES as _0x383dd3}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x2d14(){const _0x9e82eb=['cloudservices-reconnection-error','websocketgateway-plugin-already-registered','destroy','bind','WebSocketGateway','CONNECTING','3501680HzxgGs','websocketgateway-invalid-plugin-interface','isInReconnectionStack','all','define','showWarning','7593695elKnqO','then','delete','init','limitExceeded','CONNECTED','set','addToReconnectionStack','2720802tLpBcI','websocketgateway-missing-token','real-time-collaboration','90xUJSfy','error','isPremiumPlugin','context','connected','CloudServices','4111155zkQelP','change:me','isOfficialPlugin','initialReconnectionInterval','websocketgateway-missing-websocket-url','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.','_domEmitter','_isBrowserOffline','removeFromReconnectionStack','webSocketUrl','cloudServices.connectionTimeout','connection','stopListening','get','listenTo','token','add','connect','Connected\x20users\x20limit\x20exceeded','has','DISCONNECTED','plugins','892507ThJJKh','requires','config','reconnect','online','cloudServices.requestTimeout','35604RUMlLU','20OsRgQi','_shouldPluginsReconnect','_reconnect','from','pluginName','constructor','_reconnectionStack','state','code','function','catch','disconnect','cloudservices-init','7516269uFIrZY','104ypjmfi','offline'];_0x2d14=function(){return _0x9e82eb;};return _0x2d14();}import{Notification as _0x53a8d6}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x209814{static [_0x13eff2(0xf5)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x1161dc)());static [_0x13eff2(0x111)]=0x3e8;[_0x13eff2(0x119)];[_0x13eff2(0xe7)];[_0x13eff2(0xe2)];[_0x13eff2(0x114)];static get[_0x13eff2(0x125)](){const _0x5f2702=_0x13eff2;return[_0x5f2702(0x10d),_0x53a8d6];}static get[_0x13eff2(0xe5)](){const _0xbc1368=_0x13eff2;return _0xbc1368(0xf5);}static get[_0x13eff2(0x110)](){return!0x0;}static get[_0x13eff2(0x10a)](){return!0x0;}constructor(_0x10545f){const _0x38671b=_0x13eff2;super(_0x10545f),this[_0x38671b(0x103)](_0x38671b(0xe8),_0x383dd3[_0x38671b(0x102)]),this[_0x38671b(0x103)](_0x38671b(0x115),!0x1),this[_0x38671b(0xe7)]=new Set(),this[_0x38671b(0xe2)]=!0x1,this[_0x38671b(0x114)]=new(_0xf45dc())();}[_0x13eff2(0x100)](){const _0x196157=_0x13eff2,_0x3a69b1=this[_0x196157(0x10b)],_0xa9e2a1=_0x3a69b1[_0x196157(0x123)][_0x196157(0x11b)](_0x196157(0x10d)),_0x44e69a=_0x3a69b1[_0x196157(0x123)][_0x196157(0x11b)](_0x53a8d6);if(!_0xa9e2a1[_0x196157(0x11d)])throw new _0x16fd36(_0x196157(0x106),this);if(!_0xa9e2a1[_0x196157(0x117)])throw new _0x16fd36(_0x196157(0x112),this);return this[_0x196157(0x114)][_0x196157(0x11c)](window,_0x196157(0xf0),()=>this[_0x196157(0x115)]=!0x0),this[_0x196157(0x114)][_0x196157(0x11c)](window,_0x196157(0x128),()=>this[_0x196157(0x115)]=!0x1),this[_0x196157(0x10b)][_0x196157(0x126)][_0x196157(0xfb)](_0x196157(0x118),0xa),this[_0x196157(0x10b)][_0x196157(0x126)][_0x196157(0xfb)](_0x196157(0x129),0x14),WebSocketGateway[_0x196157(0xf5)][_0x196157(0x11f)](_0xa9e2a1[_0x196157(0x11d)],_0xa9e2a1[_0x196157(0x117)],{'timeout':0x3e8*this[_0x196157(0x10b)][_0x196157(0x126)][_0x196157(0x11b)](_0x196157(0x118)),'requestTimeout':0x3e8*this[_0x196157(0x10b)][_0x196157(0x126)][_0x196157(0x11b)](_0x196157(0x129))})[_0x196157(0xfe)](_0x3394f3=>{const _0x1e95b9=_0x196157;if(this[_0x1e95b9(0x119)]=_0x3394f3,this[_0x1e95b9(0xf4)](_0x1e95b9(0xe8))['to'](_0x3394f3,_0x1e95b9(0xe8),this,_0x1e95b9(0x115),(_0x48e5a6,_0x27cdb6)=>(_0x1e95b9(0x10c)!==_0x48e5a6&&(this[_0x1e95b9(0xe2)]=!0x0),_0x27cdb6||_0x48e5a6!==_0x383dd3[_0x1e95b9(0x102)]?_0x383dd3[_0x1e95b9(0x122)]:this[_0x1e95b9(0xe8)]==_0x383dd3[_0x1e95b9(0x122)]&&this[_0x1e95b9(0xe2)]?(this[_0x1e95b9(0xe2)]=!0x1,this[_0x1e95b9(0xe3)](),_0x383dd3[_0x1e95b9(0xf6)]):_0x383dd3[_0x1e95b9(0x102)])),this[_0x1e95b9(0x119)]['on'](_0x1e95b9(0x109),(_0x1dea52,_0x4d9e91)=>{const _0x3087ca=_0x1e95b9;if(_0x3087ca(0x101)!==_0x4d9e91[_0x3087ca(0xe9)])throw console[_0x3087ca(0x109)](_0x4d9e91),new _0x16fd36(_0x3087ca(0xed),null,{'originalError':_0x4d9e91});_0x44e69a[_0x3087ca(0xfc)](_0x3087ca(0x113),{'title':_0x3087ca(0x120),'namespace':_0x3087ca(0x107)});}),!_0x3394f3['me'])return new Promise(_0x1712f8=>_0x3394f3['on'](_0x1e95b9(0x10f),_0x1712f8));})[_0x196157(0xeb)](_0x1d8984=>{const _0x54b22a=_0x196157;throw console[_0x54b22a(0x109)](_0x1d8984),new _0x16fd36(_0x54b22a(0xed),null,{'originalError':_0x1d8984});});}[_0x13eff2(0x104)](_0x188f5f){const _0x15a171=_0x13eff2;if(_0x15a171(0xea)!=typeof _0x188f5f[_0x15a171(0x127)])throw new _0x16fd36(_0x15a171(0xf8),this);if(this[_0x15a171(0xf9)](_0x188f5f))throw new _0x16fd36(_0x15a171(0xf2),this,{'name':_0x188f5f[_0x15a171(0xe6)][_0x15a171(0xe5)]});this[_0x15a171(0xe7)][_0x15a171(0x11e)](_0x188f5f);}[_0x13eff2(0x116)](_0xf2ae03){const _0x1f41bd=_0x13eff2;this[_0x1f41bd(0xe7)][_0x1f41bd(0xff)](_0xf2ae03);}[_0x13eff2(0xf9)](_0x4ced50){const _0x3445d9=_0x13eff2;return this[_0x3445d9(0xe7)][_0x3445d9(0x121)](_0x4ced50);}[_0x13eff2(0xe3)](){const _0x3fde13=_0x13eff2;return this[_0x3fde13(0x119)][_0x3fde13(0x127)]()[_0x3fde13(0xfe)](()=>Promise[_0x3fde13(0xfa)](Array[_0x3fde13(0xe4)](this[_0x3fde13(0xe7)],_0x83f0a9=>_0x83f0a9[_0x3fde13(0x127)]())))[_0x3fde13(0xfe)](()=>this[_0x3fde13(0xe8)]=_0x383dd3[_0x3fde13(0x102)])[_0x3fde13(0xeb)](_0x1072f3=>{const _0x397a16=_0x3fde13;throw console[_0x397a16(0x109)](_0x1072f3),new _0x16fd36(_0x397a16(0xf1),this[_0x397a16(0x10b)]);});}[_0x13eff2(0xec)](){const _0x206a06=_0x13eff2;this[_0x206a06(0x119)]&&this[_0x206a06(0x119)][_0x206a06(0xec)](),this[_0x206a06(0xe8)]=_0x383dd3[_0x206a06(0x122)],this[_0x206a06(0x114)][_0x206a06(0x11a)]();}[_0x13eff2(0xf3)](){const _0x467f90=_0x13eff2;this[_0x467f90(0xec)](),super[_0x467f90(0xf3)]();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x397b33=_0x4d76;(function(_0x264e54,_0x3ee4a6){const _0x4abca9=_0x4d76,_0x16db7e=_0x264e54();while(!![]){try{const _0x296f7c=-parseInt(_0x4abca9(0x1aa))/0x1*(parseInt(_0x4abca9(0x1ac))/0x2)+parseInt(_0x4abca9(0x1c8))/0x3*(parseInt(_0x4abca9(0x16e))/0x4)+-parseInt(_0x4abca9(0x199))/0x5*(-parseInt(_0x4abca9(0x185))/0x6)+-parseInt(_0x4abca9(0x1a4))/0x7+-parseInt(_0x4abca9(0x18d))/0x8*(parseInt(_0x4abca9(0x1b9))/0x9)+parseInt(_0x4abca9(0x15b))/0xa+-parseInt(_0x4abca9(0x17e))/0xb;if(_0x296f7c===_0x3ee4a6)break;else _0x16db7e['push'](_0x16db7e['shift']());}catch(_0x1411e9){_0x16db7e['push'](_0x16db7e['shift']());}}}(_0x1e32,0xe3aa7));import{Plugin as _0x55bced}from'ckeditor5/src/core.js';import{version as _0x38f4ad}from'ckeditor5/src/utils.js';import{Users as _0x35d7d0}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x38e199}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x18c7d9}from'../realtimecollaborativeediting/websocketgateway.js';function _0x4d76(_0x13ec86,_0x3ff4e1){const _0x1e3266=_0x1e32();return _0x4d76=function(_0x4d76db,_0x52c730){_0x4d76db=_0x4d76db-0x159;let _0xe2124c=_0x1e3266[_0x4d76db];return _0xe2124c;},_0x4d76(_0x13ec86,_0x3ff4e1);}import{Sessions as _0x42c6d9}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x2392c1,RevisionHistoryService as _0x25aa60,User as _0x1ebcce,WEB_SOCKET_GATEWAY_STATES as _0x4e9466}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x55bced{static [_0x397b33(0x162)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x25aa60)());[_0x397b33(0x170)];[_0x397b33(0x1bc)];[_0x397b33(0x1ba)];[_0x397b33(0x192)];static get[_0x397b33(0x1a0)](){const _0x352000=_0x397b33;return[_0x18c7d9,_0x38e199,_0x352000(0x178),_0x42c6d9,_0x35d7d0];}static get[_0x397b33(0x19d)](){const _0x1669ac=_0x397b33;return _0x1669ac(0x1b1);}static get[_0x397b33(0x16b)](){return!0x0;}static get[_0x397b33(0x15a)](){return!0x0;}constructor(_0x4539dd){const _0x378e10=_0x397b33;super(_0x4539dd);const _0x2ade2a=this[_0x378e10(0x183)][_0x378e10(0x168)][_0x378e10(0x1b7)](_0x378e10(0x1a5));this[_0x378e10(0x170)]=null,this[_0x378e10(0x1bc)]=this[_0x378e10(0x183)][_0x378e10(0x1b6)][_0x378e10(0x1b7)](_0x378e10(0x165)),this[_0x378e10(0x1ba)]=new CloudServicesRevisionHistoryAdapter[(_0x378e10(0x162))](_0x2ade2a);}async[_0x397b33(0x16a)](){const _0x3afd8e=_0x397b33,_0x1182e1=this[_0x3afd8e(0x183)][_0x3afd8e(0x1b6)][_0x3afd8e(0x1b7)](_0x38e199),_0x48c6d0=_0x1182e1[_0x3afd8e(0x1ae)],_0x310282=this[_0x3afd8e(0x183)][_0x3afd8e(0x1b6)][_0x3afd8e(0x1b7)](_0x18c7d9);this[_0x3afd8e(0x1bc)][_0x3afd8e(0x177)]({'history':_0x48c6d0,'getLatestVersion':()=>this[_0x3afd8e(0x1b8)](),'getCurrentRevisionId':()=>_0x1182e1[_0x3afd8e(0x15d)]});const _0x2e12f2=this[_0x3afd8e(0x183)][_0x3afd8e(0x168)][_0x3afd8e(0x1b7)](_0x3afd8e(0x1a9))||_0x38f4ad,_0x18268a=await _0x2392c1[_0x3afd8e(0x167)](_0x310282[_0x3afd8e(0x1be)],_0x2e12f2);this[_0x3afd8e(0x183)][_0x3afd8e(0x1b6)][_0x3afd8e(0x1b7)](_0x3afd8e(0x178))[_0x3afd8e(0x1c3)]={'getRevision':async({revisionId:_0x1fbe82})=>(await this[_0x3afd8e(0x19b)](),await this[_0x3afd8e(0x1ba)][_0x3afd8e(0x1b5)](_0x1fbe82)),'updateRevisions':async _0x39a056=>{const _0x34ddd6=_0x3afd8e;await this[_0x34ddd6(0x19b)]();const _0x190801=this[_0x34ddd6(0x1bc)][_0x34ddd6(0x169)];if(_0x18268a&&0x1===_0x39a056[_0x34ddd6(0x19f)]&&_0x39a056[0x0]['id']===_0x190801['id'])return _0x39a056;for(const _0x105724 of _0x39a056)_0x105724['id']===_0x190801['id']&&(_0x105724[_0x34ddd6(0x1c0)]=_0x105724[_0x34ddd6(0x17d)]===_0x105724[_0x34ddd6(0x164)]);return this[_0x34ddd6(0x1ba)][_0x34ddd6(0x160)](_0x39a056,this[_0x34ddd6(0x170)])[_0x34ddd6(0x1a7)](_0x3672f1=>(this[_0x34ddd6(0x170)]=_0x3672f1,_0x39a056))[_0x34ddd6(0x196)](_0x338a62=>{const _0x4450f0=_0x34ddd6;if(st(_0x338a62)||_0x4450f0(0x17c)===_0x338a62[_0x4450f0(0x1b3)]&&void 0x0!==_0x338a62[_0x4450f0(0x16d)][_0x4450f0(0x1b2)]){for(const _0x32bbdc of _0x39a056){!this[_0x4450f0(0x1bc)][_0x4450f0(0x180)][_0x4450f0(0x1b5)](_0x32bbdc['id'])||this[_0x4450f0(0x1bc)][_0x4450f0(0x1b4)](_0x32bbdc['id'],_0x32bbdc,!0x1);}if(st(_0x338a62))throw _0x338a62;return _0x39a056;}throw _0x338a62;});}},this[_0x3afd8e(0x1a8)](this[_0x3afd8e(0x1ba)],_0x3afd8e(0x181),(_0x287151,{revisionsData:_0x487300,requestId:_0x475032})=>{const _0x5026a7=_0x3afd8e;Math[_0x5026a7(0x1cb)](..._0x487300[_0x5026a7(0x1cd)](_0xb51b97=>_0xb51b97[_0x5026a7(0x164)]))>this[_0x5026a7(0x1a6)]()-0x1?this[_0x5026a7(0x1b8)]()[_0x5026a7(0x1a7)](()=>{const _0x21a7df=_0x5026a7;this[_0x21a7df(0x1c2)](_0x487300,_0x475032);}):this[_0x5026a7(0x1c2)](_0x487300,_0x475032);});const {revisions:_0x351d76,requestId:_0xf56e35}=await this[_0x3afd8e(0x1ba)][_0x3afd8e(0x1ab)](_0x310282[_0x3afd8e(0x1be)]);_0x310282[_0x3afd8e(0x182)](this),this[_0x3afd8e(0x170)]=_0xf56e35,await this[_0x3afd8e(0x19a)](_0x351d76);for(const _0x2a4919 of _0x351d76)this[_0x3afd8e(0x1bc)][_0x3afd8e(0x184)](_0x2a4919);this[_0x3afd8e(0x1a8)](_0x1182e1,_0x3afd8e(0x17a),(_0x440b5e,_0xf6efda,_0x2adbf7)=>{const _0x51a913=_0x3afd8e;_0x2adbf7&&(this[_0x51a913(0x192)]=_0x1182e1[_0x51a913(0x15f)],_0x440b5e[_0x51a913(0x19e)]());}),this[_0x3afd8e(0x1bc)][_0x3afd8e(0x187)](_0x3afd8e(0x1c4))['to'](_0x310282,_0x3afd8e(0x171),_0x278ad9=>_0x278ad9===_0x4e9466[_0x3afd8e(0x1b0)]);}async[_0x397b33(0x1c5)](){const _0x29335a=_0x397b33,_0x51f886=this[_0x29335a(0x183)][_0x29335a(0x1b6)][_0x29335a(0x1b7)](_0x18c7d9),_0x2366dd=this[_0x29335a(0x183)][_0x29335a(0x1b6)][_0x29335a(0x1b7)](_0x38e199),_0x498ea5=async()=>{const _0x46b925=_0x29335a,_0x160b23=this[_0x46b925(0x1bc)][_0x46b925(0x169)],_0x216028=_0x160b23['id'],_0x3c5b8a=_0x216028!==_0x2366dd[_0x46b925(0x15d)];if(_0x3c5b8a){const _0x167c04=_0x2366dd[_0x46b925(0x15f)]-this[_0x46b925(0x192)],_0x48fc44=this[_0x46b925(0x1a6)]();this[_0x46b925(0x1bc)][_0x46b925(0x17f)][_0x46b925(0x173)]();if(_0x160b23[_0x46b925(0x164)]+_0x167c04!==_0x48fc44){const _0x38fed7=_0x160b23[_0x46b925(0x17d)]+_0x167c04,_0x587311=this[_0x46b925(0x183)][_0x46b925(0x1b6)][_0x46b925(0x1b7)](_0x35d7d0),_0x3b04ad=this[_0x46b925(0x1bc)][_0x46b925(0x186)]({'revision':_0x160b23,'from':_0x38fed7,'to':_0x48fc44});_0x3b04ad['id']=_0x160b23['id'];const _0x2e7217=_0x3b04ad[_0x46b925(0x15c)][_0x46b925(0x1cd)](_0x13110d=>_0x587311[_0x46b925(0x16c)](_0x13110d));_0x160b23[_0x46b925(0x16f)]({..._0x3b04ad,'authors':_0x2e7217},!0x0),this[_0x46b925(0x1bc)][_0x46b925(0x1b4)](_0x160b23['id'],_0x3b04ad,!0x0);}this[_0x46b925(0x1bc)][_0x46b925(0x1a3)]=_0x48fc44,(_0x160b23[_0x46b925(0x164)]===_0x160b23[_0x46b925(0x17d)]&&!this[_0x46b925(0x1bc)][_0x46b925(0x18f)][_0x46b925(0x189)](_0x216028)&&this[_0x46b925(0x1bc)][_0x46b925(0x180)][_0x46b925(0x18a)][_0x46b925(0x198)](_0x216028),this[_0x46b925(0x1bc)][_0x46b925(0x1bb)](_0x48fc44));}const {revisions:_0x560c2d,requestId:_0x5e9052}=await this[_0x46b925(0x1ba)][_0x46b925(0x1c5)](_0x51f886[_0x46b925(0x1be)],this[_0x46b925(0x170)]);_0x3c5b8a&&_0x560c2d[_0x46b925(0x19f)]>0x0?_0x2366dd[_0x46b925(0x1af)]():(await this[_0x46b925(0x19a)](_0x560c2d),this[_0x46b925(0x1c2)](_0x560c2d,_0x5e9052),this[_0x46b925(0x1bc)][_0x46b925(0x161)]());};return _0x2366dd[_0x29335a(0x197)]?_0x498ea5():new Promise((_0x3a46e7,_0x3c1e3b)=>{const _0x206e8c=_0x29335a;_0x2366dd[_0x206e8c(0x1c9)](_0x206e8c(0x17a),()=>{const _0x336526=_0x206e8c;_0x498ea5()[_0x336526(0x1a7)](_0x3a46e7)[_0x336526(0x196)](_0x3c1e3b);});});}[_0x397b33(0x18c)](){const _0x1a3622=_0x397b33;super[_0x1a3622(0x18c)]();}async[_0x397b33(0x19b)](){const _0x1ec7b2=_0x397b33;this[_0x1ec7b2(0x1ba)][_0x1ec7b2(0x194)]||await new Promise(_0xd81447=>{const _0x412ddb=_0x1ec7b2;this[_0x412ddb(0x1a8)](this[_0x412ddb(0x1ba)],_0x412ddb(0x175),_0x344bcb=>{const _0x326f9d=_0x412ddb;_0x344bcb[_0x326f9d(0x19e)](),_0xd81447();});});}[_0x397b33(0x1a6)](){const _0x4ab8cd=_0x397b33,_0x580257=this[_0x4ab8cd(0x183)][_0x4ab8cd(0x1b6)][_0x4ab8cd(0x1b7)](_0x38e199)[_0x4ab8cd(0x1ae)][_0x4ab8cd(0x176)]()[_0x4ab8cd(0x188)]();for(const _0x1dcc69 of _0x580257)if(_0x4ab8cd(0x1c6)!==_0x1dcc69[_0x4ab8cd(0x179)]||_0x1dcc69[_0x4ab8cd(0x19c)])return _0x1dcc69[_0x4ab8cd(0x174)]+0x1;}[_0x397b33(0x1b8)](){const _0x40e6ea=_0x397b33,_0x34f916=this[_0x40e6ea(0x183)][_0x40e6ea(0x1b6)][_0x40e6ea(0x1b7)](_0x38e199);return new Promise(_0x3db574=>{const _0x55a492=_0x40e6ea;_0x34f916[_0x55a492(0x1c7)]?_0x34f916[_0x55a492(0x1c9)](_0x55a492(0x1bd),()=>{const _0xf63168=_0x55a492;_0x3db574(this[_0xf63168(0x1a6)]());}):_0x3db574(this[_0x55a492(0x1a6)]());});}[_0x397b33(0x1c2)](_0x5a41e0,_0x21f80b){const _0x5d2f6d=_0x397b33,_0x5185eb=this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x180)];this[_0x5d2f6d(0x170)]=_0x21f80b;for(const _0x7f9168 of _0x5a41e0){const _0x1e61c6=_0x5185eb[_0x5d2f6d(0x1b5)](_0x7f9168['id']);if(_0x1e61c6){if((_0x7f9168[_0x5d2f6d(0x17d)]||_0x7f9168[_0x5d2f6d(0x164)])&&(_0x7f9168[_0x5d2f6d(0x195)]=null),_0x1e61c6===this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x169)]){const _0x183bed=Math[_0x5d2f6d(0x1cb)](_0x1e61c6[_0x5d2f6d(0x164)],_0x7f9168[_0x5d2f6d(0x164)]),_0x2899be=Math[_0x5d2f6d(0x1cb)](_0x1e61c6[_0x5d2f6d(0x17d)],_0x7f9168[_0x5d2f6d(0x17d)]);let _0x675018;_0x1e61c6[_0x5d2f6d(0x164)]===_0x7f9168[_0x5d2f6d(0x164)]&&_0x1e61c6[_0x5d2f6d(0x17d)]===_0x7f9168[_0x5d2f6d(0x17d)]?(_0x675018=!0x0,this[_0x5d2f6d(0x15e)](_0x7f9168)):_0x7f9168[_0x5d2f6d(0x164)]===_0x183bed&&_0x7f9168[_0x5d2f6d(0x17d)]===_0x2899be?_0x675018=!0x1:(_0x1e61c6[_0x5d2f6d(0x164)]===_0x183bed&&_0x1e61c6[_0x5d2f6d(0x17d)]===_0x2899be||this[_0x5d2f6d(0x193)]({'revision':_0x1e61c6,'from':_0x2899be,'to':_0x183bed}),_0x675018=!0x0),_0x675018&&(delete _0x7f9168[_0x5d2f6d(0x17d)],delete _0x7f9168[_0x5d2f6d(0x164)],delete _0x7f9168[_0x5d2f6d(0x195)],delete _0x7f9168[_0x5d2f6d(0x18e)],delete _0x7f9168[_0x5d2f6d(0x15c)]);}this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x172)](_0x7f9168),this[_0x5d2f6d(0x15e)](_0x7f9168);}else this[_0x5d2f6d(0x1bc)][_0x5d2f6d(0x184)](_0x7f9168);}const _0x3a0a2d=_0x5185eb[_0x5d2f6d(0x159)]();_0x3a0a2d[_0x5d2f6d(0x188)]();for(let _0x470de9=0x0;_0x470de9<_0x3a0a2d[_0x5d2f6d(0x19f)]-0x1;_0x470de9++){const _0x43e8cb=_0x3a0a2d[_0x470de9],_0x4f114a=_0x3a0a2d[_0x470de9+0x1];if(_0x43e8cb[_0x5d2f6d(0x17d)]<_0x4f114a[_0x5d2f6d(0x164)]){const _0x276c9c=_0x4f114a[_0x5d2f6d(0x164)],_0x3ab0d8=Math[_0x5d2f6d(0x1cb)](_0x276c9c,_0x43e8cb[_0x5d2f6d(0x164)]);this[_0x5d2f6d(0x193)]({'revision':_0x43e8cb,'from':_0x276c9c,'to':_0x3ab0d8});}}}[_0x397b33(0x193)]({revision:_0x2fda0c,from:_0x1dac06,to:_0x1c6375}={}){const _0x184879=_0x397b33,_0x22fddf=this[_0x184879(0x183)][_0x184879(0x1b6)][_0x184879(0x1b7)](_0x35d7d0),_0x46162e=this[_0x184879(0x1bc)][_0x184879(0x186)]({'revision':_0x2fda0c,'from':_0x1dac06,'to':_0x1c6375});_0x46162e[_0x184879(0x190)]=_0x46162e[_0x184879(0x15c)][_0x184879(0x1cd)](_0x28e096=>_0x22fddf[_0x184879(0x16c)](_0x28e096)),_0x2fda0c[_0x184879(0x16f)](_0x46162e);}[_0x397b33(0x15e)](_0xaac437){const _0x58482b=_0x397b33,_0x4bd2a9={};_0x4bd2a9['id']=_0xaac437['id'];for(const _0x107329 of Object[_0x58482b(0x1c1)](_0xaac437))'id'!==_0x107329&&(_0x4bd2a9[_0x107329]=void 0x0);this[_0x58482b(0x1bc)][_0x58482b(0x1b4)](_0x4bd2a9['id'],_0x4bd2a9,!0x0);}async[_0x397b33(0x19a)](_0x222d63){const _0x3ddeef=_0x397b33,_0x3fd26d=this[_0x3ddeef(0x183)][_0x3ddeef(0x1b6)][_0x3ddeef(0x1b7)](_0x35d7d0),{connection:_0x2e9ee5}=this[_0x3ddeef(0x183)][_0x3ddeef(0x1b6)][_0x3ddeef(0x1b7)](_0x18c7d9),_0x59bce8=new Set();for(const _0x3efed0 of _0x222d63){for(const _0x47945e of _0x3efed0[_0x3ddeef(0x15c)])_0x4d3b83(_0x47945e);_0x3efed0[_0x3ddeef(0x166)]&&_0x4d3b83(_0x3efed0[_0x3ddeef(0x166)]);}if(0x0===_0x59bce8[_0x3ddeef(0x1a2)])return;const _0x43d6c3=await _0x1ebcce[_0x3ddeef(0x1ad)](_0x2e9ee5,Array[_0x3ddeef(0x1ca)](_0x59bce8));for(const _0x569030 of _0x43d6c3)_0x3fd26d[_0x3ddeef(0x16c)](_0x569030['id'])||_0x3fd26d[_0x3ddeef(0x163)](_0x569030);function _0x4d3b83(_0x3b5891){const _0x117936=_0x3ddeef;_0x3fd26d[_0x117936(0x16c)](_0x3b5891)||_0x59bce8[_0x117936(0x18b)](_0x3b5891);}}}function _0x1e32(){const _0x2b2a0a=['_revisions','add','destroy','16ZpnKmn','createdAt','_bufferedUpdates','authors','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_oldOffset','_fixRevision','isConnected','diffData','catch','_isConnected','remove','5jLCxsW','_fetchMissingUsers','_waitForServiceReady','affectsData','pluginName','off','length','requires','message','size','_startingVersion','458724XJZBhc','collaboration.channelId','_getLatestVersionFromServerOperations','then','listenTo','cloudServices.bundleVersion','98ZnvvQe','connect','9748mkKOQb','getMany','serverHistory','_handleReconnectionError','CONNECTED','CloudServicesRevisionHistoryAdapter','wrongRequestId','code','_bufferUpdate','getRevision','plugins','get','_getLatestVersion','4544577BayBPx','_revisionHistoryService','_createCurrentRevision','_revisionTracker','change:_isPendingUpdate','connection','cloud-services-internal-error:\x20Not\x20connected.','isEmptyCurrent','keys','_handleRevisionsUpdate','adapter','isEnabled','reconnect','marker','_isPendingUpdate','5132619tYnZWF','once','from','max','startsWith','map','getRevisions','isPremiumPlugin','7987250auMKWi','authorsIds','sessionId','_preventResendingRevisionData','_offset','updateRevisions','sendBufferedUpdates','RevisionHistoryService','addUser','toVersion','RevisionTracker','creatorId','isBundleUploaded','config','currentRevision','init','isOfficialPlugin','getUser','data','4HRrLVZ','_update','_lastRequestId','state','setRevisionData','reInit','baseVersion','connected','getOperations','setSource','RevisionHistory','type','change:_isConnected','cloud-services-internal-error:\x20Request\x20timeout.','400','fromVersion','8331950TCaylE','_revisionDataBuilder','repository','revisionsUpdated','addToReconnectionStack','editor','addRevisionData','4400766rtpKnn','buildRevisionData','bind','reverse','has'];_0x1e32=function(){return _0x2b2a0a;};return _0x1e32();}function st(_0x254854){const _0x2a6f1f=_0x397b33;return _0x254854[_0x2a6f1f(0x1a1)][_0x2a6f1f(0x1cc)](_0x2a6f1f(0x191))||_0x254854[_0x2a6f1f(0x1a1)][_0x2a6f1f(0x1cc)](_0x2a6f1f(0x1bf))||_0x254854[_0x2a6f1f(0x1a1)][_0x2a6f1f(0x1cc)](_0x2a6f1f(0x17b));}
23
+ const _0x106196=_0x47cb;function _0x47cb(_0x119ffa,_0x1e41eb){const _0x42ca8c=_0x42ca();return _0x47cb=function(_0x47cb1b,_0x1efef1){_0x47cb1b=_0x47cb1b-0x141;let _0x5d0de5=_0x42ca8c[_0x47cb1b];return _0x5d0de5;},_0x47cb(_0x119ffa,_0x1e41eb);}(function(_0x5cd054,_0x31d8f9){const _0x4b7367=_0x47cb,_0x21cafa=_0x5cd054();while(!![]){try{const _0x8209c6=parseInt(_0x4b7367(0x1ad))/0x1+-parseInt(_0x4b7367(0x17c))/0x2+parseInt(_0x4b7367(0x159))/0x3*(-parseInt(_0x4b7367(0x155))/0x4)+-parseInt(_0x4b7367(0x153))/0x5*(-parseInt(_0x4b7367(0x1b0))/0x6)+-parseInt(_0x4b7367(0x1aa))/0x7*(-parseInt(_0x4b7367(0x171))/0x8)+-parseInt(_0x4b7367(0x143))/0x9*(parseInt(_0x4b7367(0x175))/0xa)+parseInt(_0x4b7367(0x17b))/0xb;if(_0x8209c6===_0x31d8f9)break;else _0x21cafa['push'](_0x21cafa['shift']());}catch(_0x2347c4){_0x21cafa['push'](_0x21cafa['shift']());}}}(_0x42ca,0x241e6));function _0x42ca(){const _0x414e66=['getMany','84833xAqTYi','authorsIds','addRevisionData','215296MukjnO','_bufferedUpdates','affectsData','354SrfWvW','addToReconnectionStack','_getLatestVersionFromServerOperations','toVersion','listenTo','_revisionHistoryService','getRevisions','isEnabled','281493xjvdtU','get','_fetchMissingUsers','code','bind','authors','serverHistory','_oldOffset','connection','isBundleUploaded','isPremiumPlugin','_handleRevisionsUpdate','reconnect','data','CONNECTED','_revisionDataBuilder','19445iHtLKW','_handleReconnectionError','4wjQfIK','setSource','collaboration.channelId','add','702531RNxYae','baseVersion','_revisions','revisionsUpdated','once','updateRevisions','isOfficialPlugin','isConnected','isEmptyCurrent','cloudServices.bundleVersion','plugins','_createCurrentRevision','length','size','connect','reverse','buildRevisionData','then','creatorId','400','state','marker','from','max','88sVWfip','diffData','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','destroy','20YMmrtJ','RevisionTracker','fromVersion','change:_isPendingUpdate','init','RevisionHistory','805992hYBqWO','413310hsfKNE','_getLatestVersion','wrongRequestId','_bufferUpdate','config','_offset','_update','remove','_isPendingUpdate','getOperations','startsWith','sendBufferedUpdates','setRevisionData','_startingVersion','editor','change:_isConnected','cloud-services-internal-error:\x20Request\x20timeout.','_lastRequestId','getRevision','pluginName','RevisionHistoryService','off','CloudServicesRevisionHistoryAdapter','connected','repository','_isConnected','has','cloud-services-internal-error:\x20Not\x20connected.','addUser','createdAt','_waitForServiceReady','_preventResendingRevisionData','catch','adapter','type','getUser','reInit','map','message','_revisionTracker','_fixRevision','keys','currentRevision','requires','sessionId'];_0x42ca=function(){return _0x414e66;};return _0x42ca();}import{Plugin as _0x10a0fc}from'ckeditor5/src/core.js';import{version as _0x1abf9a}from'ckeditor5/src/utils.js';import{Users as _0x15a452}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x4cf045}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0xcfbe2e}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x3a1465}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x2b592c,RevisionHistoryService as _0x2be3c8,User as _0x4e7f63,WEB_SOCKET_GATEWAY_STATES as _0x49f591}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x10a0fc{static [_0x106196(0x190)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2be3c8)());[_0x106196(0x18d)];[_0x106196(0x1a3)];[_0x106196(0x1b5)];[_0x106196(0x14a)];static get[_0x106196(0x1a7)](){const _0x2410fe=_0x106196;return[_0xcfbe2e,_0x4cf045,_0x2410fe(0x17a),_0x3a1465,_0x15a452];}static get[_0x106196(0x18f)](){const _0x242d89=_0x106196;return _0x242d89(0x192);}static get[_0x106196(0x15f)](){return!0x0;}static get[_0x106196(0x14d)](){return!0x0;}constructor(_0x581beb){const _0x4b1560=_0x106196;super(_0x581beb);const _0x27bd8f=this[_0x4b1560(0x18a)][_0x4b1560(0x180)][_0x4b1560(0x144)](_0x4b1560(0x157));this[_0x4b1560(0x18d)]=null,this[_0x4b1560(0x1a3)]=this[_0x4b1560(0x18a)][_0x4b1560(0x163)][_0x4b1560(0x144)](_0x4b1560(0x176)),this[_0x4b1560(0x1b5)]=new CloudServicesRevisionHistoryAdapter[(_0x4b1560(0x190))](_0x27bd8f);}async[_0x106196(0x179)](){const _0xe1e9dd=_0x106196,_0x59b1cd=this[_0xe1e9dd(0x18a)][_0xe1e9dd(0x163)][_0xe1e9dd(0x144)](_0x4cf045),_0x33c059=_0x59b1cd[_0xe1e9dd(0x149)],_0x3a4c47=this[_0xe1e9dd(0x18a)][_0xe1e9dd(0x163)][_0xe1e9dd(0x144)](_0xcfbe2e);this[_0xe1e9dd(0x1a3)][_0xe1e9dd(0x156)]({'history':_0x33c059,'getLatestVersion':()=>this[_0xe1e9dd(0x17d)](),'getCurrentRevisionId':()=>_0x59b1cd[_0xe1e9dd(0x1a8)]});const _0x3d7e1c=this[_0xe1e9dd(0x18a)][_0xe1e9dd(0x180)][_0xe1e9dd(0x144)](_0xe1e9dd(0x162))||_0x1abf9a,_0xfc0a77=await _0x2b592c[_0xe1e9dd(0x14c)](_0x3a4c47[_0xe1e9dd(0x14b)],_0x3d7e1c);this[_0xe1e9dd(0x18a)][_0xe1e9dd(0x163)][_0xe1e9dd(0x144)](_0xe1e9dd(0x17a))[_0xe1e9dd(0x19d)]={'getRevision':async({revisionId:_0x30f63b})=>(await this[_0xe1e9dd(0x19a)](),await this[_0xe1e9dd(0x1b5)][_0xe1e9dd(0x18e)](_0x30f63b)),'updateRevisions':async _0x443f57=>{const _0x4e82c1=_0xe1e9dd;await this[_0x4e82c1(0x19a)]();const _0x1652f0=this[_0x4e82c1(0x1a3)][_0x4e82c1(0x1a6)];if(_0xfc0a77&&0x1===_0x443f57[_0x4e82c1(0x165)]&&_0x443f57[0x0]['id']===_0x1652f0['id'])return _0x443f57;for(const _0x42465b of _0x443f57)_0x42465b['id']===_0x1652f0['id']&&(_0x42465b[_0x4e82c1(0x161)]=_0x42465b[_0x4e82c1(0x177)]===_0x42465b[_0x4e82c1(0x1b3)]);return this[_0x4e82c1(0x1b5)][_0x4e82c1(0x15e)](_0x443f57,this[_0x4e82c1(0x18d)])[_0x4e82c1(0x16a)](_0x1e821a=>(this[_0x4e82c1(0x18d)]=_0x1e821a,_0x443f57))[_0x4e82c1(0x19c)](_0x1d4646=>{const _0x379fad=_0x4e82c1;if(w(_0x1d4646)||_0x379fad(0x16c)===_0x1d4646[_0x379fad(0x146)]&&void 0x0!==_0x1d4646[_0x379fad(0x150)][_0x379fad(0x17e)]){for(const _0x1598e0 of _0x443f57){!this[_0x379fad(0x1a3)][_0x379fad(0x194)][_0x379fad(0x18e)](_0x1598e0['id'])||this[_0x379fad(0x1a3)][_0x379fad(0x17f)](_0x1598e0['id'],_0x1598e0,!0x1);}if(w(_0x1d4646))throw _0x1d4646;return _0x443f57;}throw _0x1d4646;});}},this[_0xe1e9dd(0x1b4)](this[_0xe1e9dd(0x1b5)],_0xe1e9dd(0x15c),(_0xf95b4f,{revisionsData:_0x3dd72c,requestId:_0x440e53})=>{const _0x54f51d=_0xe1e9dd;Math[_0x54f51d(0x170)](..._0x3dd72c[_0x54f51d(0x1a1)](_0x5b973c=>_0x5b973c[_0x54f51d(0x1b3)]))>this[_0x54f51d(0x1b2)]()-0x1?this[_0x54f51d(0x17d)]()[_0x54f51d(0x16a)](()=>{const _0x3024c8=_0x54f51d;this[_0x3024c8(0x14e)](_0x3dd72c,_0x440e53);}):this[_0x54f51d(0x14e)](_0x3dd72c,_0x440e53);});const {revisions:_0x4119c9,requestId:_0x5608d8}=await this[_0xe1e9dd(0x1b5)][_0xe1e9dd(0x167)](_0x3a4c47[_0xe1e9dd(0x14b)]);_0x3a4c47[_0xe1e9dd(0x1b1)](this),this[_0xe1e9dd(0x18d)]=_0x5608d8,await this[_0xe1e9dd(0x145)](_0x4119c9);for(const _0x23376e of _0x4119c9)this[_0xe1e9dd(0x1a3)][_0xe1e9dd(0x1ac)](_0x23376e);this[_0xe1e9dd(0x1b4)](_0x59b1cd,_0xe1e9dd(0x18b),(_0x27df19,_0x1fc622,_0x3ca6ae)=>{const _0x3d8ce3=_0xe1e9dd;_0x3ca6ae&&(this[_0x3d8ce3(0x14a)]=_0x59b1cd[_0x3d8ce3(0x181)],_0x27df19[_0x3d8ce3(0x191)]());}),this[_0xe1e9dd(0x1a3)][_0xe1e9dd(0x147)](_0xe1e9dd(0x142))['to'](_0x3a4c47,_0xe1e9dd(0x16d),_0x5b47d7=>_0x5b47d7===_0x49f591[_0xe1e9dd(0x151)]);}async[_0x106196(0x14f)](){const _0x2e82da=_0x106196,_0x1fb902=this[_0x2e82da(0x18a)][_0x2e82da(0x163)][_0x2e82da(0x144)](_0xcfbe2e),_0x435aaa=this[_0x2e82da(0x18a)][_0x2e82da(0x163)][_0x2e82da(0x144)](_0x4cf045),_0x498efc=async()=>{const _0x39f81e=_0x2e82da,_0x41eb75=this[_0x39f81e(0x1a3)][_0x39f81e(0x1a6)],_0x2e0145=_0x41eb75['id'],_0x1782a2=_0x2e0145!==_0x435aaa[_0x39f81e(0x1a8)];if(_0x1782a2){const _0x488b92=_0x435aaa[_0x39f81e(0x181)]-this[_0x39f81e(0x14a)],_0x15d83d=this[_0x39f81e(0x1b2)]();this[_0x39f81e(0x1a3)][_0x39f81e(0x152)][_0x39f81e(0x1a0)]();if(_0x41eb75[_0x39f81e(0x1b3)]+_0x488b92!==_0x15d83d){const _0x1e75ed=_0x41eb75[_0x39f81e(0x177)]+_0x488b92,_0x2d7f34=this[_0x39f81e(0x18a)][_0x39f81e(0x163)][_0x39f81e(0x144)](_0x15a452),_0x24f7d2=this[_0x39f81e(0x1a3)][_0x39f81e(0x169)]({'revision':_0x41eb75,'from':_0x1e75ed,'to':_0x15d83d});_0x24f7d2['id']=_0x41eb75['id'];const _0xecf264=_0x24f7d2[_0x39f81e(0x1ab)][_0x39f81e(0x1a1)](_0x3f7d84=>_0x2d7f34[_0x39f81e(0x19f)](_0x3f7d84));_0x41eb75[_0x39f81e(0x182)]({..._0x24f7d2,'authors':_0xecf264},!0x0),this[_0x39f81e(0x1a3)][_0x39f81e(0x17f)](_0x41eb75['id'],_0x24f7d2,!0x0);}this[_0x39f81e(0x1a3)][_0x39f81e(0x189)]=_0x15d83d,(_0x41eb75[_0x39f81e(0x1b3)]===_0x41eb75[_0x39f81e(0x177)]&&!this[_0x39f81e(0x1a3)][_0x39f81e(0x1ae)][_0x39f81e(0x196)](_0x2e0145)&&this[_0x39f81e(0x1a3)][_0x39f81e(0x194)][_0x39f81e(0x15b)][_0x39f81e(0x183)](_0x2e0145),this[_0x39f81e(0x1a3)][_0x39f81e(0x164)](_0x15d83d));}const {revisions:_0x2685c2,requestId:_0x1bfef8}=await this[_0x39f81e(0x1b5)][_0x39f81e(0x14f)](_0x1fb902[_0x39f81e(0x14b)],this[_0x39f81e(0x18d)]);_0x1782a2&&_0x2685c2[_0x39f81e(0x165)]>0x0?_0x435aaa[_0x39f81e(0x154)]():(await this[_0x39f81e(0x145)](_0x2685c2),this[_0x39f81e(0x14e)](_0x2685c2,_0x1bfef8),this[_0x39f81e(0x1a3)][_0x39f81e(0x187)]());};return _0x435aaa[_0x2e82da(0x195)]?_0x498efc():new Promise((_0x1be854,_0x1d3d00)=>{const _0x49c130=_0x2e82da;_0x435aaa[_0x49c130(0x15d)](_0x49c130(0x18b),()=>{const _0x2c3f4c=_0x49c130;_0x498efc()[_0x2c3f4c(0x16a)](_0x1be854)[_0x2c3f4c(0x19c)](_0x1d3d00);});});}[_0x106196(0x174)](){const _0x516cab=_0x106196;super[_0x516cab(0x174)]();}async[_0x106196(0x19a)](){const _0x30e491=_0x106196;this[_0x30e491(0x1b5)][_0x30e491(0x160)]||await new Promise(_0x1c68c8=>{const _0x5541eb=_0x30e491;this[_0x5541eb(0x1b4)](this[_0x5541eb(0x1b5)],_0x5541eb(0x193),_0xe87adc=>{const _0x396d13=_0x5541eb;_0xe87adc[_0x396d13(0x191)](),_0x1c68c8();});});}[_0x106196(0x1b2)](){const _0x40970b=_0x106196,_0x3ab5ef=this[_0x40970b(0x18a)][_0x40970b(0x163)][_0x40970b(0x144)](_0x4cf045)[_0x40970b(0x149)][_0x40970b(0x185)]()[_0x40970b(0x168)]();for(const _0x3edf47 of _0x3ab5ef)if(_0x40970b(0x16e)!==_0x3edf47[_0x40970b(0x19e)]||_0x3edf47[_0x40970b(0x1af)])return _0x3edf47[_0x40970b(0x15a)]+0x1;}[_0x106196(0x17d)](){const _0x201fb2=_0x106196,_0x203ecf=this[_0x201fb2(0x18a)][_0x201fb2(0x163)][_0x201fb2(0x144)](_0x4cf045);return new Promise(_0x3d33b0=>{const _0x59a65f=_0x201fb2;_0x203ecf[_0x59a65f(0x184)]?_0x203ecf[_0x59a65f(0x15d)](_0x59a65f(0x178),()=>{const _0x351908=_0x59a65f;_0x3d33b0(this[_0x351908(0x1b2)]());}):_0x3d33b0(this[_0x59a65f(0x1b2)]());});}[_0x106196(0x14e)](_0x4a2312,_0x491d5f){const _0x5887c8=_0x106196,_0x2d78f0=this[_0x5887c8(0x1a3)][_0x5887c8(0x194)];this[_0x5887c8(0x18d)]=_0x491d5f;for(const _0x1c2b8d of _0x4a2312){const _0x4f7945=_0x2d78f0[_0x5887c8(0x18e)](_0x1c2b8d['id']);if(_0x4f7945){if((_0x1c2b8d[_0x5887c8(0x177)]||_0x1c2b8d[_0x5887c8(0x1b3)])&&(_0x1c2b8d[_0x5887c8(0x172)]=null),_0x4f7945===this[_0x5887c8(0x1a3)][_0x5887c8(0x1a6)]){const _0x3ed32a=Math[_0x5887c8(0x170)](_0x4f7945[_0x5887c8(0x1b3)],_0x1c2b8d[_0x5887c8(0x1b3)]),_0x577b95=Math[_0x5887c8(0x170)](_0x4f7945[_0x5887c8(0x177)],_0x1c2b8d[_0x5887c8(0x177)]);let _0x24708e;_0x4f7945[_0x5887c8(0x1b3)]===_0x1c2b8d[_0x5887c8(0x1b3)]&&_0x4f7945[_0x5887c8(0x177)]===_0x1c2b8d[_0x5887c8(0x177)]?(_0x24708e=!0x0,this[_0x5887c8(0x19b)](_0x1c2b8d)):_0x1c2b8d[_0x5887c8(0x1b3)]===_0x3ed32a&&_0x1c2b8d[_0x5887c8(0x177)]===_0x577b95?_0x24708e=!0x1:(_0x4f7945[_0x5887c8(0x1b3)]===_0x3ed32a&&_0x4f7945[_0x5887c8(0x177)]===_0x577b95||this[_0x5887c8(0x1a4)]({'revision':_0x4f7945,'from':_0x577b95,'to':_0x3ed32a}),_0x24708e=!0x0),_0x24708e&&(delete _0x1c2b8d[_0x5887c8(0x177)],delete _0x1c2b8d[_0x5887c8(0x1b3)],delete _0x1c2b8d[_0x5887c8(0x172)],delete _0x1c2b8d[_0x5887c8(0x199)],delete _0x1c2b8d[_0x5887c8(0x1ab)]);}this[_0x5887c8(0x1a3)][_0x5887c8(0x188)](_0x1c2b8d),this[_0x5887c8(0x19b)](_0x1c2b8d);}else this[_0x5887c8(0x1a3)][_0x5887c8(0x1ac)](_0x1c2b8d);}const _0x5b9a46=_0x2d78f0[_0x5887c8(0x141)]();_0x5b9a46[_0x5887c8(0x168)]();for(let _0x5a4e03=0x0;_0x5a4e03<_0x5b9a46[_0x5887c8(0x165)]-0x1;_0x5a4e03++){const _0x51bea4=_0x5b9a46[_0x5a4e03],_0x1aeae7=_0x5b9a46[_0x5a4e03+0x1];if(_0x51bea4[_0x5887c8(0x177)]<_0x1aeae7[_0x5887c8(0x1b3)]){const _0x8428f6=_0x1aeae7[_0x5887c8(0x1b3)],_0x5b0a0a=Math[_0x5887c8(0x170)](_0x8428f6,_0x51bea4[_0x5887c8(0x1b3)]);this[_0x5887c8(0x1a4)]({'revision':_0x51bea4,'from':_0x8428f6,'to':_0x5b0a0a});}}}[_0x106196(0x1a4)]({revision:_0x7a9191,from:_0x5001c6,to:_0x33b0ec}={}){const _0x3fb0c8=_0x106196,_0x2378a0=this[_0x3fb0c8(0x18a)][_0x3fb0c8(0x163)][_0x3fb0c8(0x144)](_0x15a452),_0x121ce0=this[_0x3fb0c8(0x1a3)][_0x3fb0c8(0x169)]({'revision':_0x7a9191,'from':_0x5001c6,'to':_0x33b0ec});_0x121ce0[_0x3fb0c8(0x148)]=_0x121ce0[_0x3fb0c8(0x1ab)][_0x3fb0c8(0x1a1)](_0x55d9b8=>_0x2378a0[_0x3fb0c8(0x19f)](_0x55d9b8)),_0x7a9191[_0x3fb0c8(0x182)](_0x121ce0);}[_0x106196(0x19b)](_0x1c4a50){const _0x248af1=_0x106196,_0x51ab64={};_0x51ab64['id']=_0x1c4a50['id'];for(const _0x28d44f of Object[_0x248af1(0x1a5)](_0x1c4a50))'id'!==_0x28d44f&&(_0x51ab64[_0x28d44f]=void 0x0);this[_0x248af1(0x1a3)][_0x248af1(0x17f)](_0x51ab64['id'],_0x51ab64,!0x0);}async[_0x106196(0x145)](_0xfbda07){const _0x28afba=_0x106196,_0x3fdc48=this[_0x28afba(0x18a)][_0x28afba(0x163)][_0x28afba(0x144)](_0x15a452),{connection:_0xbeb970}=this[_0x28afba(0x18a)][_0x28afba(0x163)][_0x28afba(0x144)](_0xcfbe2e),_0xac730f=new Set();for(const _0x21a6e7 of _0xfbda07){for(const _0x262734 of _0x21a6e7[_0x28afba(0x1ab)])_0x3008f1(_0x262734);_0x21a6e7[_0x28afba(0x16b)]&&_0x3008f1(_0x21a6e7[_0x28afba(0x16b)]);}if(0x0===_0xac730f[_0x28afba(0x166)])return;const _0x3422cc=await _0x4e7f63[_0x28afba(0x1a9)](_0xbeb970,Array[_0x28afba(0x16f)](_0xac730f));for(const _0x10c861 of _0x3422cc)_0x3fdc48[_0x28afba(0x19f)](_0x10c861['id'])||_0x3fdc48[_0x28afba(0x198)](_0x10c861);function _0x3008f1(_0x4d8460){const _0x575bfd=_0x28afba;_0x3fdc48[_0x575bfd(0x19f)](_0x4d8460)||_0xac730f[_0x575bfd(0x158)](_0x4d8460);}}}function w(_0x55a9ed){const _0x567bc2=_0x106196;return _0x55a9ed[_0x567bc2(0x1a2)][_0x567bc2(0x186)](_0x567bc2(0x173))||_0x55a9ed[_0x567bc2(0x1a2)][_0x567bc2(0x186)](_0x567bc2(0x197))||_0x55a9ed[_0x567bc2(0x1a2)][_0x567bc2(0x186)](_0x567bc2(0x18c));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30cd21=_0x14be;function _0x50d4(){const _0x4ea5ba=['add','_bufferedRequests','startsWith','update','220278CIoAEt','65459PfaCpT','getUser','state','addToReconnectionStack','connect','listenTo','1896183ttbohy','hasSuggestion','_trackChangesService','catch','getSuggestion','addUser','85CxRRPG','75910PjsYvV','50HvrThC','requires','getMany','open','get','values','connection','suggestionUpdated','_saved','from','type','pluginName','message','cloud-services-internal-error:\x20Request\x20timeout.','find','set','30QivMGc','3379057DQDMJk','TrackChangesService','isConnected','addSuggestionData','editor','collaboration.channelId','6274200vqBUCo','adapter','then','118684aEdsdL','CloudServicesTrackChangesAdapter','_fetchMissingUsersForThreads','originalSuggestionId','attributes','delete','reconnect','isPremiumPlugin','off','isOfficialPlugin','TrackChangesEditing','init','cloud-services-internal-error:\x20Not\x20connected.','_waitForServiceReady','28epxJbO','config','size','connected','data','plugins'];_0x50d4=function(){return _0x4ea5ba;};return _0x50d4();}(function(_0x2147c8,_0x30bb02){const _0x49225a=_0x14be,_0x1e6a67=_0x2147c8();while(!![]){try{const _0x272320=-parseInt(_0x49225a(0xd4))/0x1+-parseInt(_0x49225a(0xe1))/0x2*(-parseInt(_0x49225a(0xf2))/0x3)+-parseInt(_0x49225a(0xfc))/0x4*(parseInt(_0x49225a(0xe0))/0x5)+-parseInt(_0x49225a(0xd3))/0x6*(-parseInt(_0x49225a(0x10a))/0x7)+-parseInt(_0x49225a(0xf9))/0x8+-parseInt(_0x49225a(0xda))/0x9+-parseInt(_0x49225a(0xe2))/0xa*(-parseInt(_0x49225a(0xf3))/0xb);if(_0x272320===_0x30bb02)break;else _0x1e6a67['push'](_0x1e6a67['shift']());}catch(_0xfc590d){_0x1e6a67['push'](_0x1e6a67['shift']());}}}(_0x50d4,0x79765));import{Plugin as _0x368ba8}from'ckeditor5/src/core.js';import{User as _0x4abb88,TrackChangesService as _0x4c2630}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x28517a}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x29bc2a}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x2c85df}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x368ba8{static [_0x30cd21(0xf4)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x4c2630)());[_0x30cd21(0xd0)];[_0x30cd21(0xdc)];static get[_0x30cd21(0xe3)](){const _0x57072f=_0x30cd21;return[_0x29bc2a,_0x57072f(0x106),_0x28517a];}static get[_0x30cd21(0xed)](){const _0x38a7c9=_0x30cd21;return _0x38a7c9(0xfd);}static get[_0x30cd21(0x105)](){return!0x0;}static get[_0x30cd21(0x103)](){return!0x0;}constructor(_0x3d39d0){const _0x1dca3e=_0x30cd21;super(_0x3d39d0);const _0x2c526b=this[_0x1dca3e(0xf7)][_0x1dca3e(0x10b)][_0x1dca3e(0xe6)](_0x1dca3e(0xf8));this[_0x1dca3e(0xd0)]=new Map(),this[_0x1dca3e(0xdc)]=new CloudServicesTrackChangesAdapter[(_0x1dca3e(0xf4))](_0x2c526b);}[_0x30cd21(0x107)](){const _0x56fad8=_0x30cd21,_0x1c8114=this[_0x56fad8(0xf7)][_0x56fad8(0xce)][_0x56fad8(0xe6)](_0x28517a),_0x39c1a1=this[_0x56fad8(0xf7)][_0x56fad8(0xce)][_0x56fad8(0xe6)](_0x56fad8(0x106));return _0x39c1a1[_0x56fad8(0xfa)]={'getSuggestion':async _0x7c49c4=>{const _0x4c1912=_0x56fad8;await this[_0x4c1912(0x109)]();const _0x511c1d=await this[_0x4c1912(0xdc)][_0x4c1912(0xe6)](_0x7c49c4)[_0x4c1912(0xdd)](A);return await this[_0x4c1912(0xfe)]([_0x511c1d]),_0x511c1d;},'addSuggestion':async({id:_0x4f9301,type:_0x20a81e,data:_0x273f7d,originalSuggestionId:_0x38af1a,attributes:_0x9ab8c1})=>{const _0x4d6118=_0x56fad8;await this[_0x4d6118(0x109)]();const _0x36ddee={'id':_0x4f9301,'type':_0x20a81e,'data':_0x273f7d,'originalSuggestionId':_0x38af1a,'attributes':_0x9ab8c1},_0x243533=await this[_0x4d6118(0xdc)][_0x4d6118(0xcf)](_0x4f9301,_0x20a81e,_0x273f7d,_0x38af1a,_0x9ab8c1)[_0x4d6118(0xdd)](_0x238f77=>{if(st(_0x238f77))return new Promise(_0xc776dd=>{const _0x2fd8d8=_0x14be;this[_0x2fd8d8(0xd0)][_0x2fd8d8(0xf1)](_0x4f9301,{'resolve':_0xc776dd,'suggestionData':_0x36ddee});});throw _0x238f77;});return this[_0x4d6118(0xd0)][_0x4d6118(0x101)](_0x4f9301),_0x243533;},'updateSuggestion':async(_0x4d408a,_0x3d260c)=>{const _0x41b642=_0x56fad8;if(await this[_0x41b642(0x109)](),_0x41b642(0xe5)!==_0x3d260c[_0x41b642(0xd6)])return this[_0x41b642(0xdc)][_0x41b642(0xd2)](_0x4d408a,_0x3d260c)[_0x41b642(0xdd)](A);}},this[_0x56fad8(0xd9)](this[_0x56fad8(0xdc)],_0x56fad8(0xe9),(_0x45451d,_0x230514)=>{const _0x59c56d=_0x56fad8;_0x39c1a1[_0x59c56d(0xdb)](_0x230514['id'])&&(_0x39c1a1[_0x59c56d(0xde)](_0x230514['id'])[_0x59c56d(0x100)]=_0x230514[_0x59c56d(0x100)]);}),this[_0x56fad8(0xdc)][_0x56fad8(0xd8)](_0x1c8114[_0x56fad8(0xe8)])[_0x56fad8(0xfb)](_0x4d9aa5=>(_0x1c8114[_0x56fad8(0xd7)](this),this[_0x56fad8(0xfe)](_0x4d9aa5)[_0x56fad8(0xfb)](()=>{const _0x1958bd=_0x56fad8;for(const _0x364f77 of _0x4d9aa5){_0x39c1a1[_0x1958bd(0xf6)](_0x364f77)[_0x1958bd(0xea)]=!0x0;}})));}async[_0x30cd21(0x102)](){const _0x3fd6d0=_0x30cd21,_0x16f9cf=this[_0x3fd6d0(0xf7)][_0x3fd6d0(0xce)][_0x3fd6d0(0xe6)](_0x3fd6d0(0x106)),{connection:_0x5563cb}=this[_0x3fd6d0(0xf7)][_0x3fd6d0(0xce)][_0x3fd6d0(0xe6)](_0x28517a),_0x5310f6=await this[_0x3fd6d0(0xdc)][_0x3fd6d0(0xd8)](_0x5563cb);await this[_0x3fd6d0(0xfe)](_0x5310f6);for(const {suggestionData:_0x46064a,resolve:_0x14885e}of this[_0x3fd6d0(0xd0)][_0x3fd6d0(0xe7)]()){let _0x324743=_0x5310f6[_0x3fd6d0(0xf0)](_0x3941ea=>_0x3941ea['id']===_0x46064a['id']);_0x324743||(_0x324743=await this[_0x3fd6d0(0xdc)][_0x3fd6d0(0xcf)](_0x46064a['id'],_0x46064a[_0x3fd6d0(0xec)],_0x46064a[_0x3fd6d0(0xcd)],_0x46064a[_0x3fd6d0(0xff)])),_0x14885e(_0x324743);}for(const _0x28638d of _0x5310f6)_0x16f9cf[_0x3fd6d0(0xdb)](_0x28638d['id'])||_0x16f9cf[_0x3fd6d0(0xf6)](_0x28638d);}async[_0x30cd21(0x109)](){const _0x2b2a9e=_0x30cd21;this[_0x2b2a9e(0xdc)][_0x2b2a9e(0xf5)]||await new Promise(_0xe438cf=>{const _0x4ce921=_0x2b2a9e;this[_0x4ce921(0xd9)](this[_0x4ce921(0xdc)],_0x4ce921(0xcc),_0x144b0d=>{const _0x371d6a=_0x4ce921;_0x144b0d[_0x371d6a(0x104)](),_0xe438cf();});});}async[_0x30cd21(0xfe)](_0x575350){const _0x477df7=_0x30cd21,_0x18ad8=this[_0x477df7(0xf7)][_0x477df7(0xce)][_0x477df7(0xe6)](_0x2c85df),{connection:_0x2c3dda}=this[_0x477df7(0xf7)][_0x477df7(0xce)][_0x477df7(0xe6)](_0x28517a),_0x212af8=new Set();for(const {authorId:_0x4af8ec}of _0x575350)_0x18ad8[_0x477df7(0xd5)](_0x4af8ec)||_0x212af8[_0x477df7(0xcf)](_0x4af8ec);if(0x0===_0x212af8[_0x477df7(0xcb)])return;const _0x319cfb=await _0x4abb88[_0x477df7(0xe4)](_0x2c3dda,Array[_0x477df7(0xeb)](_0x212af8));for(const _0x354893 of _0x319cfb)_0x18ad8[_0x477df7(0xd5)](_0x354893['id'])||_0x18ad8[_0x477df7(0xdf)](_0x354893);}}function A(_0x5a3309){if(st(_0x5a3309))return new Promise(()=>{});throw _0x5a3309;}function _0x14be(_0x42662f,_0x4b5562){const _0x50d44=_0x50d4();return _0x14be=function(_0x14bece,_0x45e140){_0x14bece=_0x14bece-0xcb;let _0x257a0a=_0x50d44[_0x14bece];return _0x257a0a;},_0x14be(_0x42662f,_0x4b5562);}function st(_0xcbf164){const _0x1f2665=_0x30cd21;return _0xcbf164[_0x1f2665(0xee)][_0x1f2665(0xd1)](_0x1f2665(0x108))||_0xcbf164[_0x1f2665(0xee)][_0x1f2665(0xd1)](_0x1f2665(0xef));}
23
+ const _0x102922=_0x1063;(function(_0x329fc0,_0x432be8){const _0x301155=_0x1063,_0x3f4cce=_0x329fc0();while(!![]){try{const _0x120c4f=parseInt(_0x301155(0xa6))/0x1*(parseInt(_0x301155(0xa4))/0x2)+parseInt(_0x301155(0xaa))/0x3*(parseInt(_0x301155(0xbd))/0x4)+-parseInt(_0x301155(0xaf))/0x5+parseInt(_0x301155(0x8e))/0x6*(parseInt(_0x301155(0xbe))/0x7)+parseInt(_0x301155(0xb3))/0x8+-parseInt(_0x301155(0xc6))/0x9*(parseInt(_0x301155(0xba))/0xa)+-parseInt(_0x301155(0x91))/0xb;if(_0x120c4f===_0x432be8)break;else _0x3f4cce['push'](_0x3f4cce['shift']());}catch(_0x59e4fd){_0x3f4cce['push'](_0x3f4cce['shift']());}}}(_0x48e5,0x57e76));import{Plugin as _0x4a66b7}from'ckeditor5/src/core.js';import{User as _0x1c6f5d,TrackChangesService as _0x2c60cf}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x27070f}from'../realtimecollaborativeediting/websocketgateway.js';function _0x48e5(){const _0x55e806=['connection','45nWKJcV','open','find','off','cloud-services-internal-error:\x20Request\x20timeout.','attributes','collaboration.channelId','isPremiumPlugin','size','21072wiGYFI','adapter','connected','7064849ixRpwT','connect','getUser','cloud-services-internal-error:\x20Not\x20connected.','type','get','_saved','reconnect','_waitForServiceReady','state','config','update','from','data','isConnected','CloudServicesTrackChangesAdapter','getMany','plugins','isOfficialPlugin','1334776SDoDvc','delete','1CPvbda','startsWith','catch','editor','3IdqHlh','addSuggestionData','hasSuggestion','addUser','_bufferedRequests','2024085psUAsz','addToReconnectionStack','requires','listenTo','1998200UzIorU','TrackChangesService','values','add','pluginName','set','init','139730XjRNUl','suggestionUpdated','then','1860032EvTwiB','189fmGpNr','_fetchMissingUsersForThreads','TrackChangesEditing','getSuggestion','_trackChangesService','message','originalSuggestionId'];_0x48e5=function(){return _0x55e806;};return _0x48e5();}import{CloudServicesCommentsAdapter as _0x1b4821}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x1063(_0x1cf837,_0x2b494d){const _0x48e5e8=_0x48e5();return _0x1063=function(_0x106360,_0xb77cd8){_0x106360=_0x106360-0x87;let _0x343e9d=_0x48e5e8[_0x106360];return _0x343e9d;},_0x1063(_0x1cf837,_0x2b494d);}import{Users as _0x391039}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x4a66b7{static [_0x102922(0xb4)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2c60cf)());[_0x102922(0xae)];[_0x102922(0xc2)];static get[_0x102922(0xb1)](){const _0x289f9c=_0x102922;return[_0x1b4821,_0x289f9c(0xc0),_0x27070f];}static get[_0x102922(0xb7)](){const _0x336cd7=_0x102922;return _0x336cd7(0xa0);}static get[_0x102922(0xa3)](){return!0x0;}static get[_0x102922(0x8c)](){return!0x0;}constructor(_0x2e1c01){const _0x3c09bb=_0x102922;super(_0x2e1c01);const _0x4ff745=this[_0x3c09bb(0xa9)][_0x3c09bb(0x9b)][_0x3c09bb(0x96)](_0x3c09bb(0x8b));this[_0x3c09bb(0xae)]=new Map(),this[_0x3c09bb(0xc2)]=new CloudServicesTrackChangesAdapter[(_0x3c09bb(0xb4))](_0x4ff745);}[_0x102922(0xb9)](){const _0x1a7694=_0x102922,_0x310acf=this[_0x1a7694(0xa9)][_0x1a7694(0xa2)][_0x1a7694(0x96)](_0x27070f),_0x3db67c=this[_0x1a7694(0xa9)][_0x1a7694(0xa2)][_0x1a7694(0x96)](_0x1a7694(0xc0));return _0x3db67c[_0x1a7694(0x8f)]={'getSuggestion':async _0x45ca99=>{const _0x4f1910=_0x1a7694;await this[_0x4f1910(0x99)]();const _0x14ef65=await this[_0x4f1910(0xc2)][_0x4f1910(0x96)](_0x45ca99)[_0x4f1910(0xa8)](T);return await this[_0x4f1910(0xbf)]([_0x14ef65]),_0x14ef65;},'addSuggestion':async({id:_0x5c815c,type:_0x39ca06,data:_0x398ca0,originalSuggestionId:_0x213092,attributes:_0x3e6bf5})=>{const _0x17b4c4=_0x1a7694;await this[_0x17b4c4(0x99)]();const _0x17b975={'id':_0x5c815c,'type':_0x39ca06,'data':_0x398ca0,'originalSuggestionId':_0x213092,'attributes':_0x3e6bf5},_0xfe76c0=await this[_0x17b4c4(0xc2)][_0x17b4c4(0xb6)](_0x5c815c,_0x39ca06,_0x398ca0,_0x213092,_0x3e6bf5)[_0x17b4c4(0xa8)](_0x5b0e15=>{if(w(_0x5b0e15))return new Promise(_0x5ac9dc=>{const _0x374c51=_0x1063;this[_0x374c51(0xae)][_0x374c51(0xb8)](_0x5c815c,{'resolve':_0x5ac9dc,'suggestionData':_0x17b975});});throw _0x5b0e15;});return this[_0x17b4c4(0xae)][_0x17b4c4(0xa5)](_0x5c815c),_0xfe76c0;},'updateSuggestion':async(_0x552bc8,_0x3d49a7)=>{const _0x3498ee=_0x1a7694;if(await this[_0x3498ee(0x99)](),_0x3498ee(0xc7)!==_0x3d49a7[_0x3498ee(0x9a)])return this[_0x3498ee(0xc2)][_0x3498ee(0x9c)](_0x552bc8,_0x3d49a7)[_0x3498ee(0xa8)](T);}},this[_0x1a7694(0xb2)](this[_0x1a7694(0xc2)],_0x1a7694(0xbb),(_0x29e3c6,_0x3b5c33)=>{const _0x3d841d=_0x1a7694;_0x3db67c[_0x3d841d(0xac)](_0x3b5c33['id'])&&(_0x3db67c[_0x3d841d(0xc1)](_0x3b5c33['id'])[_0x3d841d(0x8a)]=_0x3b5c33[_0x3d841d(0x8a)]);}),this[_0x1a7694(0xc2)][_0x1a7694(0x92)](_0x310acf[_0x1a7694(0xc5)])[_0x1a7694(0xbc)](_0x3347ed=>(_0x310acf[_0x1a7694(0xb0)](this),this[_0x1a7694(0xbf)](_0x3347ed)[_0x1a7694(0xbc)](()=>{const _0x2fa122=_0x1a7694;for(const _0x254a8a of _0x3347ed){_0x3db67c[_0x2fa122(0xab)](_0x254a8a)[_0x2fa122(0x97)]=!0x0;}})));}async[_0x102922(0x98)](){const _0x17f62d=_0x102922,_0x3c657e=this[_0x17f62d(0xa9)][_0x17f62d(0xa2)][_0x17f62d(0x96)](_0x17f62d(0xc0)),{connection:_0xef50c9}=this[_0x17f62d(0xa9)][_0x17f62d(0xa2)][_0x17f62d(0x96)](_0x27070f),_0x3bb4b3=await this[_0x17f62d(0xc2)][_0x17f62d(0x92)](_0xef50c9);await this[_0x17f62d(0xbf)](_0x3bb4b3);for(const {suggestionData:_0x5b9ff4,resolve:_0x38dd15}of this[_0x17f62d(0xae)][_0x17f62d(0xb5)]()){let _0x2497ac=_0x3bb4b3[_0x17f62d(0x87)](_0x20853d=>_0x20853d['id']===_0x5b9ff4['id']);_0x2497ac||(_0x2497ac=await this[_0x17f62d(0xc2)][_0x17f62d(0xb6)](_0x5b9ff4['id'],_0x5b9ff4[_0x17f62d(0x95)],_0x5b9ff4[_0x17f62d(0x9e)],_0x5b9ff4[_0x17f62d(0xc4)])),_0x38dd15(_0x2497ac);}for(const _0x5ec8de of _0x3bb4b3)_0x3c657e[_0x17f62d(0xac)](_0x5ec8de['id'])||_0x3c657e[_0x17f62d(0xab)](_0x5ec8de);}async[_0x102922(0x99)](){const _0x37ea45=_0x102922;this[_0x37ea45(0xc2)][_0x37ea45(0x9f)]||await new Promise(_0x12f7fb=>{const _0x1e4cc2=_0x37ea45;this[_0x1e4cc2(0xb2)](this[_0x1e4cc2(0xc2)],_0x1e4cc2(0x90),_0x34e879=>{const _0xc46d90=_0x1e4cc2;_0x34e879[_0xc46d90(0x88)](),_0x12f7fb();});});}async[_0x102922(0xbf)](_0xef2bdd){const _0x65348c=_0x102922,_0xf71929=this[_0x65348c(0xa9)][_0x65348c(0xa2)][_0x65348c(0x96)](_0x391039),{connection:_0x28ee8a}=this[_0x65348c(0xa9)][_0x65348c(0xa2)][_0x65348c(0x96)](_0x27070f),_0x2ed524=new Set();for(const {authorId:_0x2e925b}of _0xef2bdd)_0xf71929[_0x65348c(0x93)](_0x2e925b)||_0x2ed524[_0x65348c(0xb6)](_0x2e925b);if(0x0===_0x2ed524[_0x65348c(0x8d)])return;const _0xaa4d17=await _0x1c6f5d[_0x65348c(0xa1)](_0x28ee8a,Array[_0x65348c(0x9d)](_0x2ed524));for(const _0x1f48d5 of _0xaa4d17)_0xf71929[_0x65348c(0x93)](_0x1f48d5['id'])||_0xf71929[_0x65348c(0xad)](_0x1f48d5);}}function T(_0x4a84cb){if(w(_0x4a84cb))return new Promise(()=>{});throw _0x4a84cb;}function w(_0x1754ad){const _0x585251=_0x102922;return _0x1754ad[_0x585251(0xc3)][_0x585251(0xa7)](_0x585251(0x94))||_0x1754ad[_0x585251(0xc3)][_0x585251(0xa7)](_0x585251(0x89));}