@ckeditor/ckeditor5-real-time-collaboration 47.4.0-alpha.5 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e0ba4=_0x2c39;(function(_0x3b4236,_0x1214f1){const _0x564d5c=_0x2c39,_0x3d4dbd=_0x3b4236();while(!![]){try{const _0x738e34=-parseInt(_0x564d5c(0x171))/0x1*(-parseInt(_0x564d5c(0x157))/0x2)+parseInt(_0x564d5c(0x16f))/0x3+-parseInt(_0x564d5c(0x16d))/0x4+parseInt(_0x564d5c(0x191))/0x5*(parseInt(_0x564d5c(0x15a))/0x6)+parseInt(_0x564d5c(0x165))/0x7+parseInt(_0x564d5c(0x15b))/0x8*(-parseInt(_0x564d5c(0x169))/0x9)+parseInt(_0x564d5c(0x154))/0xa*(-parseInt(_0x564d5c(0x190))/0xb);if(_0x738e34===_0x1214f1)break;else _0x3d4dbd['push'](_0x3d4dbd['shift']());}catch(_0x33834b){_0x3d4dbd['push'](_0x3d4dbd['shift']());}}}(_0x7b1c,0x1e230));import{ContextPlugin as _0x15123e}from'ckeditor5/src/core.js';import{Collection as _0xc17dfc,CKEditorError as _0x1e2322}from'ckeditor5/src/utils.js';function _0x7b1c(){const _0x2170a8=['376558VazdPj','_handleSessionAdd','role','sessionAdd:','171TOwxRU','get','init','connection','47276utVbya','_registeredSessions','675609SczPwW','stopListening','1vkLZfj','add','channelConnectedUsers','set','register','isMe','listenTo','orderNumber','sessionId','getUserSessions','hiddenInPresenceList','channelSessions','assign','requires','_createUser','mySessionId','values','sessions-register-already-registered','change:state','_handleSessionRemove','allConnectedUsers','isOfficialPlugin','connected','getUser','defineMe','_users','sessions-unregister-not-exist','_uniqueUsersCount','fire','remove','plugins','385pYanyq','2845BoCmbH','forEach','context','60010qUnTqK','delete','size','10622asyuGv','user','getUserBySessionId','1506jKyjYZ','34456KQbAby','unregister','clear','has','Sessions','isPremiumPlugin','addUser','state','getUserRole','pluginName'];_0x7b1c=function(){return _0x2170a8;};return _0x7b1c();}import{WebSocketGateway as _0x2d2352}from'./websocketgateway.js';import{Users as _0x2e798e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2c39(_0xff774c,_0x5c6808){const _0x7b1cfa=_0x7b1c();return _0x2c39=function(_0x2c3938,_0x5ce592){_0x2c3938=_0x2c3938-0x154;let _0x25bde3=_0x7b1cfa[_0x2c3938];return _0x25bde3;},_0x2c39(_0xff774c,_0x5c6808);}export class Sessions extends _0x15123e{[_0x2e0ba4(0x17c)];[_0x2e0ba4(0x173)];[_0x2e0ba4(0x185)];[_0x2e0ba4(0x16e)];[_0x2e0ba4(0x18c)];[_0x2e0ba4(0x18a)];static get[_0x2e0ba4(0x164)](){const _0x421ad7=_0x2e0ba4;return _0x421ad7(0x15f);}static get[_0x2e0ba4(0x186)](){return!0x0;}static get[_0x2e0ba4(0x160)](){return!0x0;}static get[_0x2e0ba4(0x17e)](){return[_0x2d2352,_0x2e798e];}constructor(_0x36e23d){const _0x55025a=_0x2e0ba4;super(_0x36e23d),this[_0x55025a(0x17c)]=new Map(),this[_0x55025a(0x173)]=new Map(),this[_0x55025a(0x185)]=new _0xc17dfc(),this[_0x55025a(0x16e)]=new Map(),this[_0x55025a(0x18c)]=0x0,this[_0x55025a(0x18a)]=this[_0x55025a(0x193)][_0x55025a(0x18f)][_0x55025a(0x16a)](_0x2e798e);}[_0x2e0ba4(0x16b)](){const _0x172f3a=_0x2e0ba4,_0x390d6c=this[_0x172f3a(0x193)][_0x172f3a(0x18f)][_0x172f3a(0x16a)](_0x2d2352);this[_0x172f3a(0x177)](_0x390d6c,_0x172f3a(0x183),(_0x56f494,_0x3a5078,_0x44ef9c)=>{const _0x994ffe=_0x172f3a;if(_0x994ffe(0x187)!==_0x44ef9c)this[_0x994ffe(0x17c)][_0x994ffe(0x192)](_0x4cca25=>_0x4cca25[_0x994ffe(0x15d)]()),this[_0x994ffe(0x173)][_0x994ffe(0x192)](_0x386cd1=>_0x386cd1[_0x994ffe(0x15d)]()),this[_0x994ffe(0x185)][_0x994ffe(0x15d)]();else{for(const [_0x16265,_0x4f3b52]of this[_0x994ffe(0x16e)])for(const _0x15a2a6 of _0x4f3b52)this[_0x994ffe(0x166)](_0x16265,_0x15a2a6);}}),this[_0x172f3a(0x17f)](_0x390d6c[_0x172f3a(0x16c)]['me'],!0x0);}[_0x2e0ba4(0x175)](_0x43e55c,_0x43faf9){const _0x1e256f=_0x2e0ba4;if(this[_0x1e256f(0x16e)][_0x1e256f(0x15e)](_0x43e55c))throw new _0x1e2322(_0x1e256f(0x182),null,{'channelId':_0x43e55c});this[_0x1e256f(0x16e)][_0x1e256f(0x174)](_0x43e55c,_0x43faf9),this[_0x1e256f(0x17c)][_0x1e256f(0x174)](_0x43e55c,new _0xc17dfc()),this[_0x1e256f(0x173)][_0x1e256f(0x174)](_0x43e55c,new _0xc17dfc()),this[_0x1e256f(0x177)](_0x43faf9,_0x1e256f(0x172),(_0x1216f3,_0x9be698)=>this[_0x1e256f(0x166)](_0x43e55c,_0x9be698)),this[_0x1e256f(0x177)](_0x43faf9,_0x1e256f(0x18e),(_0xee4803,_0x207500)=>this[_0x1e256f(0x184)](_0x43e55c,_0x207500));for(const _0x183761 of _0x43faf9)this[_0x1e256f(0x166)](_0x43e55c,_0x183761);}[_0x2e0ba4(0x15c)](_0x50f598){const _0x500530=_0x2e0ba4;if(!this[_0x500530(0x16e)][_0x500530(0x15e)](_0x50f598))throw new _0x1e2322(_0x500530(0x18b),null,{'channelId':_0x50f598});const _0x372ac8=this[_0x500530(0x16e)][_0x500530(0x16a)](_0x50f598);this[_0x500530(0x170)](_0x372ac8);for(const _0x1dcc0a of _0x372ac8)_0x500530(0x187)===this[_0x500530(0x193)][_0x500530(0x18f)][_0x500530(0x16a)](_0x2d2352)[_0x500530(0x162)]&&this[_0x500530(0x184)](_0x50f598,_0x1dcc0a);this[_0x500530(0x16e)][_0x500530(0x155)](_0x50f598),this[_0x500530(0x17c)][_0x500530(0x155)](_0x50f598),this[_0x500530(0x173)][_0x500530(0x155)](_0x50f598);}get[_0x2e0ba4(0x180)](){const _0x50d8a1=_0x2e0ba4;return this[_0x50d8a1(0x193)][_0x50d8a1(0x18f)][_0x50d8a1(0x16a)](_0x2d2352)[_0x50d8a1(0x16c)][_0x50d8a1(0x179)];}[_0x2e0ba4(0x159)](_0x15ec92){const _0x4bd7e9=_0x2e0ba4;for(const _0x2e4ef0 of this[_0x4bd7e9(0x17c)][_0x4bd7e9(0x181)]())for(const _0x557720 of _0x2e4ef0)if(_0x557720['id']===_0x15ec92)return _0x557720[_0x4bd7e9(0x158)];}[_0x2e0ba4(0x17a)](_0x8026a3,_0x3d682a){const _0x51c350=_0x2e0ba4,_0x3fa551=_0x3d682a?[this[_0x51c350(0x17c)][_0x51c350(0x16a)](_0x3d682a)]:this[_0x51c350(0x17c)][_0x51c350(0x181)](),_0x284eea=new Set();for(const _0x635d53 of _0x3fa551)for(const _0x229696 of _0x635d53)_0x229696[_0x51c350(0x158)]['id']===_0x8026a3['id']&&_0x284eea[_0x51c350(0x172)](_0x229696['id']);return _0x284eea;}[_0x2e0ba4(0x163)](_0x4e2125){const _0x45ffc5=_0x2e0ba4;for(const _0x4d7e4e of this[_0x45ffc5(0x17c)][_0x45ffc5(0x181)]())for(const _0x95c7e of _0x4d7e4e)if(_0x95c7e[_0x45ffc5(0x158)]===_0x4e2125)return _0x95c7e[_0x45ffc5(0x167)];}[_0x2e0ba4(0x166)](_0x1693a5,_0x2e8dd4){const _0x4969d1=_0x2e0ba4;if(_0x4969d1(0x187)!==this[_0x4969d1(0x193)][_0x4969d1(0x18f)][_0x4969d1(0x16a)](_0x2d2352)[_0x4969d1(0x162)])return;const _0x4b0216=_0x2e8dd4[_0x4969d1(0x158)],_0x3c91cc=this[_0x4969d1(0x18a)][_0x4969d1(0x188)](_0x4b0216['id'])||this[_0x4969d1(0x17f)](_0x4b0216),_0x5115dd=Object[_0x4969d1(0x17d)]({},_0x2e8dd4,{'user':_0x3c91cc});if(this[_0x4969d1(0x17c)][_0x4969d1(0x16a)](_0x1693a5)[_0x4969d1(0x172)](_0x5115dd),!_0x4b0216[_0x4969d1(0x17b)]){const _0x1b0108=this[_0x4969d1(0x173)][_0x4969d1(0x16a)](_0x1693a5);_0x1b0108[_0x4969d1(0x15e)](_0x3c91cc['id'])||_0x1b0108[_0x4969d1(0x172)](_0x3c91cc),this[_0x4969d1(0x185)][_0x4969d1(0x15e)](_0x3c91cc['id'])||_0x4b0216[_0x4969d1(0x17b)]||this[_0x4969d1(0x185)][_0x4969d1(0x172)](_0x3c91cc,_0x3c91cc[_0x4969d1(0x176)]?0x0:void 0x0);}this[_0x4969d1(0x18d)](_0x4969d1(0x168)+_0x1693a5,{'channelId':_0x1693a5,'session':_0x5115dd});}[_0x2e0ba4(0x184)](_0x5ae8ab,_0xbc578a){const _0x407bc1=_0x2e0ba4;if(_0x407bc1(0x187)!==this[_0x407bc1(0x193)][_0x407bc1(0x18f)][_0x407bc1(0x16a)](_0x2d2352)[_0x407bc1(0x162)])return;const _0x1ff30b=this[_0x407bc1(0x173)][_0x407bc1(0x16a)](_0x5ae8ab),_0x51feba=_0xbc578a[_0x407bc1(0x158)];_0x51feba['id']&&(this[_0x407bc1(0x17c)][_0x407bc1(0x16a)](_0x5ae8ab)[_0x407bc1(0x18e)](_0xbc578a['id']),_0x1ff30b[_0x407bc1(0x15e)](_0x51feba['id'])&&!this[_0x407bc1(0x17a)](_0x51feba,_0x5ae8ab)[_0x407bc1(0x156)]&&_0x1ff30b[_0x407bc1(0x18e)](_0x51feba['id']),this[_0x407bc1(0x185)][_0x407bc1(0x16a)](_0x51feba['id'])&&!this[_0x407bc1(0x17a)](_0x51feba)[_0x407bc1(0x156)]&&this[_0x407bc1(0x185)][_0x407bc1(0x18e)](_0x51feba['id']));}[_0x2e0ba4(0x17f)](_0x4e5579,_0x210ca6){const _0x2d7385=_0x2e0ba4,_0x3ef7fe=this[_0x2d7385(0x18a)][_0x2d7385(0x161)](_0x4e5579);return _0x210ca6&&this[_0x2d7385(0x18a)][_0x2d7385(0x189)](_0x4e5579['id']),_0x3ef7fe[_0x2d7385(0x178)]=this[_0x2d7385(0x18c)]++,_0x3ef7fe;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x44338f=_0x2b98;(function(_0x135b6e,_0x2dcb31){const _0x3addcd=_0x2b98,_0x4df1ae=_0x135b6e();while(!![]){try{const _0x5dd9d6=parseInt(_0x3addcd(0x71))/0x1+parseInt(_0x3addcd(0xb1))/0x2+parseInt(_0x3addcd(0x7d))/0x3*(-parseInt(_0x3addcd(0xe3))/0x4)+-parseInt(_0x3addcd(0x75))/0x5+parseInt(_0x3addcd(0x92))/0x6+parseInt(_0x3addcd(0x81))/0x7*(-parseInt(_0x3addcd(0x91))/0x8)+-parseInt(_0x3addcd(0xde))/0x9;if(_0x5dd9d6===_0x2dcb31)break;else _0x4df1ae['push'](_0x4df1ae['shift']());}catch(_0x22040b){_0x4df1ae['push'](_0x4df1ae['shift']());}}}(_0x54e2,0x5db72));import{Plugin as _0x3641dc}from'ckeditor5/src/core.js';import{global as _0x320e4f,DomEmitterMixin as _0x555c54}from'ckeditor5/src/utils.js';import{Sessions as _0x314c24}from'./sessions.js';function _0x2b98(_0x35c441,_0x51fa6a){const _0x54e29c=_0x54e2();return _0x2b98=function(_0x2b9877,_0x337449){_0x2b9877=_0x2b9877-0x66;let _0x4863b0=_0x54e29c[_0x2b9877];return _0x4863b0;},_0x2b98(_0x35c441,_0x51fa6a);}import{ModelLiveRange as _0x4e9912}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x3641dc{[_0x44338f(0xc8)]=new(_0x555c54())();static get[_0x44338f(0x8c)](){return[_0x314c24];}static get[_0x44338f(0xe0)](){const _0x38dfc7=_0x44338f;return _0x38dfc7(0xc9);}static get[_0x44338f(0x6f)](){return!0x0;}static get[_0x44338f(0x8f)](){return!0x0;}[_0x44338f(0xc2)](){const _0xd6d3d4=_0x44338f,_0x2653a8=this[_0xd6d3d4(0x8e)],_0x4698e8=_0x2653a8[_0xd6d3d4(0x7a)][_0xd6d3d4(0x67)](_0x314c24);_0x2653a8[_0xd6d3d4(0xbf)][_0xd6d3d4(0xa5)](_0xd6d3d4(0xed))[_0xd6d3d4(0x77)]({'model':_0xd6d3d4(0x9b),'view':(_0x483f4a,{writer:_0x380c55})=>function(_0x4c3f1d,_0x43fc64,_0x57c843,_0x40e584){const _0xf23c8=_0xd6d3d4,_0x4f8376=_0x4c3f1d[_0xf23c8(0xba)][_0xf23c8(0xab)](':')[0x2],_0x2954ab=_0x57c843[_0xf23c8(0x83)](_0x4f8376);if(!_0x2954ab||_0x4f8376===_0x57c843[_0xf23c8(0xe7)])return;if(!_0x40e584[_0xf23c8(0xdd)][_0xf23c8(0xa0)][_0xf23c8(0xce)](_0x4c3f1d[_0xf23c8(0x8d)][_0xf23c8(0xe5)],_0xf23c8(0x88)))return;const _0x59c560={'class':_0xf23c8(0xb5)+_0x2954ab[_0xf23c8(0xc1)][_0xf23c8(0xa9)](),'data-name':_0x2954ab[_0xf23c8(0xd5)],'data-session-id':_0x4f8376},_0x550da0=_0x40e584[_0xf23c8(0xdd)][_0xf23c8(0x70)][_0xf23c8(0x67)](_0x4c3f1d[_0xf23c8(0xba)]),_0x18cdc7=_0x550da0[_0xf23c8(0x78)](),_0x1608f9=_0x18cdc7[_0xf23c8(0x7e)],_0x3dab5f=_0x40e584[_0xf23c8(0xdd)][_0xf23c8(0xa0)];if(_0x1608f9&&_0x3dab5f[_0xf23c8(0xb2)](_0x1608f9)&&_0x3dab5f[_0xf23c8(0x89)](_0x1608f9)&&!_0x40e584[_0xf23c8(0xdd)][_0xf23c8(0x70)][_0xf23c8(0x67)](_0xf23c8(0x6d)+_0x4f8376)[_0xf23c8(0xb4)]()[_0xf23c8(0x74)])return;const _0x31bea3=_0x18cdc7[_0xf23c8(0xa3)];return _0x40e584[_0xf23c8(0xdd)][_0xf23c8(0xa0)][_0xf23c8(0x98)](_0x31bea3)&&!_0x40e584[_0xf23c8(0xdd)][_0xf23c8(0xd6)](_0x31bea3)&&(_0x59c560[_0xf23c8(0x9c)]=!0x1),function(_0x29776d,_0x4a7ceb,_0x22c288){const _0x13facd=_0xf23c8,_0xc7894d=_0x29776d[_0x13facd(0x85)](_0x13facd(0xeb),_0x4a7ceb);return _0x29776d[_0x13facd(0xd8)](_0x13facd(0xa1),!0x0,_0xc7894d),_0xc7894d[_0x13facd(0xe8)]=function(_0x260d5d){const _0x4b9ba3=_0x13facd,_0x777b4=this[_0x4b9ba3(0xe9)](_0x260d5d),_0x1d9314=document[_0x4b9ba3(0x93)](_0x4b9ba3(0xeb));return _0x1d9314[_0x4b9ba3(0xa6)][_0x4b9ba3(0x8b)](_0x4b9ba3(0x6b)),_0x1d9314[_0x4b9ba3(0x7b)](_0x4b9ba3(0x9c),_0x4b9ba3(0xd0)),_0x1d9314[_0x4b9ba3(0x7b)](_0x4b9ba3(0xaf),_0x4b9ba3(0xd0)),_0x1d9314[_0x4b9ba3(0xb9)]=_0x22c288[_0x4b9ba3(0xd5)],_0x777b4[_0x4b9ba3(0xdf)]=_0x4b9ba3(0xb3)+_0x1d9314[_0x4b9ba3(0xcc)]+'',_0x777b4[_0x4b9ba3(0x94)](_0x4b9ba3(0xaa),()=>{const _0x52034b=_0x4b9ba3;_0x777b4[_0x52034b(0xa6)][_0x52034b(0x8b)](_0x52034b(0x9e));}),_0x777b4[_0x4b9ba3(0x94)](_0x4b9ba3(0xe6),()=>{const _0x13fb86=_0x4b9ba3;_0x777b4[_0x13fb86(0xa6)][_0x13fb86(0x79)](_0x13fb86(0x9e));}),_0x777b4;},_0xc7894d[_0x13facd(0xca)]=function(_0x47c3be){const _0x1234ac=_0x13facd;return!(!this[_0x1234ac(0x68)](_0x1234ac(0xa1))||!_0x47c3be[_0x1234ac(0x68)](_0x1234ac(0xa1))||this[_0x1234ac(0xb7)](_0x1234ac(0x90))!=_0x47c3be[_0x1234ac(0xb7)](_0x1234ac(0x90)));},_0xc7894d;}(_0x43fc64,_0x59c560,_0x2954ab);}(_0x483f4a,_0x380c55,_0x4698e8,_0x2653a8)}),_0x2653a8[_0xd6d3d4(0xbf)][_0xd6d3d4(0xa5)](_0xd6d3d4(0xed))[_0xd6d3d4(0xe1)]({'model':_0xd6d3d4(0x7c),'view':_0x3cdd0f=>function(_0x501233,_0x4ade0c){const _0x39ec5b=_0xd6d3d4,_0x509f94=_0x501233[_0x39ec5b(0xba)][_0x39ec5b(0xab)](':')[0x2];if(_0x509f94===_0x4ade0c[_0x39ec5b(0xe7)])return null;const _0x39128a=_0x4ade0c[_0x39ec5b(0x83)](_0x509f94);if(!_0x39128a)return{'id':_0x509f94,'classes':[]};return{'id':_0x509f94,'classes':[_0x39ec5b(0xe4),_0x39128a[_0x39ec5b(0xc1)][_0x39ec5b(0xe2)]()],'attributes':{'data-session-id':_0x509f94},'priority':0x7d0+_0x39128a[_0x39ec5b(0xd9)]};}(_0x3cdd0f,_0x4698e8)}),function(_0x5051ff){const _0x433672=_0xd6d3d4,_0x306bb4=_0x5051ff[_0x433672(0xdd)],_0x75c65b=new Map(),_0x456933=_0x5051ff[_0x433672(0x7a)][_0x433672(0x67)](_0x314c24);_0x306bb4[_0x433672(0x70)]['on'](_0x433672(0xcd),(_0x215e2a,_0x104d20,_0x5984e2,_0x4c0c8b)=>{const _0x51cc71=_0x433672;if(!_0x4c0c8b&&_0x75c65b[_0x51cc71(0x67)](_0x104d20[_0x51cc71(0xd5)]))return _0x75c65b[_0x51cc71(0x67)](_0x104d20[_0x51cc71(0xd5)])[_0x51cc71(0x72)](),void _0x75c65b[_0x51cc71(0x69)](_0x104d20[_0x51cc71(0xd5)]);const _0x1946a2=_0x104d20[_0x51cc71(0xd5)][_0x51cc71(0xab)](':')[0x2];if(_0x1946a2===_0x456933[_0x51cc71(0xe7)])return;const _0x22e75c=_0x51cc71(0x97)+_0x1946a2;_0x306bb4[_0x51cc71(0x70)][_0x51cc71(0xd3)](_0x22e75c)&&_0x5051ff[_0x51cc71(0xad)][_0x51cc71(0xd1)](_0x22e75c),_0x104d20['on'](_0x51cc71(0x66),(_0x5a3b79,_0x1cd156,_0xa95b55)=>{const _0x9c24d8=_0x51cc71;if(_0x9c24d8(0xb8)!=_0x1cd156[_0x9c24d8(0x6c)][_0x9c24d8(0xd2)]&&_0x9c24d8(0xb8)==_0x104d20[_0x9c24d8(0xb4)]()[_0x9c24d8(0x6c)][_0x9c24d8(0xd2)]&&!_0x75c65b[_0x9c24d8(0xd3)](_0x104d20[_0x9c24d8(0xd5)])){const _0x198d94=_0x306bb4[_0x9c24d8(0xa0)][_0x9c24d8(0xcf)](_0xa95b55[_0x9c24d8(0xdb)]);if(_0x198d94){const _0x3cb093=_0x4e9912[_0x9c24d8(0x8a)](_0x198d94);_0x75c65b[_0x9c24d8(0xbe)](_0x104d20[_0x9c24d8(0xd5)],_0x3cb093),_0x3cb093['on'](_0x9c24d8(0x66),(_0x1a64d9,_0xacd427,_0x1df21a)=>{const _0x527a6a=_0x9c24d8;if(_0x527a6a(0xb8)==_0x3cb093[_0x527a6a(0x6c)][_0x527a6a(0xd2)]){const _0x2ba326=_0x306bb4[_0x527a6a(0xa0)][_0x527a6a(0xcf)](_0x1df21a[_0x527a6a(0xdb)]);_0x2ba326?(_0x3cb093[_0x527a6a(0xe5)]=_0x2ba326[_0x527a6a(0xe5)],_0x3cb093[_0x527a6a(0x87)]=_0x2ba326[_0x527a6a(0x87)]):(_0x75c65b[_0x527a6a(0x69)](_0x104d20[_0x527a6a(0xd5)]),_0x3cb093[_0x527a6a(0x72)]());}});}}});}),_0x306bb4[_0x433672(0x9f)]['on'](_0x433672(0x80),()=>{const _0x207c75=_0x433672;_0x75c65b[_0x207c75(0xbc)]>0x0&&_0x306bb4[_0x207c75(0xa7)]({'isUndoable':!0x1},_0x4edf3b=>{const _0x2c7ddf=_0x207c75;for(const [_0x3755e1,_0x24ea9f]of _0x75c65b)_0x2c7ddf(0xb8)==_0x306bb4[_0x2c7ddf(0x70)][_0x2c7ddf(0x67)](_0x3755e1)[_0x2c7ddf(0xb4)]()[_0x2c7ddf(0x6c)][_0x2c7ddf(0xd2)]&&(re(_0x3755e1[_0x2c7ddf(0xab)](':')[0x2],_0x24ea9f[_0x2c7ddf(0xec)](),_0x306bb4,_0x4edf3b),_0x24ea9f[_0x2c7ddf(0x72)]());_0x75c65b[_0x2c7ddf(0xc4)]();});});}(_0x2653a8),this[_0xd6d3d4(0xc8)][_0xd6d3d4(0x84)](_0x320e4f[_0xd6d3d4(0x9f)],_0xd6d3d4(0x86),(_0x246c5b,{key:_0x18ae2d})=>{const _0x5edccc=_0xd6d3d4;_0x5edccc(0x95)===_0x18ae2d&&function(_0x34d20d){const _0x41dd25=_0x5edccc;_0x34d20d[_0x41dd25(0xad)][_0x41dd25(0x99)][_0x41dd25(0x80)](_0x5b029b=>{const _0x49d325=_0x41dd25;for(const _0x596b62 of _0x34d20d[_0x49d325(0xdd)][_0x49d325(0x70)]){if(!_0x596b62[_0x49d325(0xd5)][_0x49d325(0xa8)](_0x49d325(0x9b)))continue;const _0x3d22aa=_0x34d20d[_0x49d325(0xad)][_0x49d325(0xc6)][_0x49d325(0xb0)](_0x596b62[_0x49d325(0xd5)]);if(_0x3d22aa){for(const _0x42bcd8 of _0x3d22aa)_0x5b029b[_0x49d325(0xa2)](_0x49d325(0x9e),_0x42bcd8);}}});}(_0x2653a8);},{'useCapture':!0x0});}[_0x44338f(0x82)](){const _0x34c781=_0x44338f,_0x4e3a04=this[_0x34c781(0x8e)],_0x5aee35=_0x4e3a04[_0x34c781(0xc0)][_0x34c781(0x67)](_0x34c781(0xac));_0x5aee35&&_0x4e3a04[_0x34c781(0xdd)]['on'](_0x34c781(0xc3),(_0x21b4ad,_0x2b21ee)=>{const _0xc4990c=_0x34c781,_0x13aea8=_0x2b21ee[0x0];if(!_0x13aea8[_0xc4990c(0xea)])return;if(_0xc4990c(0x9a)!=_0x13aea8[_0xc4990c(0x73)]||!_0x13aea8[_0xc4990c(0xd5)][_0xc4990c(0xa8)](_0xc4990c(0xef)))return;const _0x1a1bc2=_0x13aea8[_0xc4990c(0xdc)];_0x5aee35[_0xc4990c(0xbb)][_0xc4990c(0xd3)](_0x1a1bc2)&&(_0x13aea8[_0xc4990c(0xd7)]=_0x13aea8[_0xc4990c(0x76)]?_0x4e3a04[_0xc4990c(0xdd)][_0xc4990c(0x9d)](_0x13aea8[_0xc4990c(0x76)][_0xc4990c(0xe5)],_0x13aea8[_0xc4990c(0x76)][_0xc4990c(0x87)]):null);},{'priority':_0x34c781(0xee)});}[_0x44338f(0x96)](){const _0x354a8c=_0x44338f;return this[_0x354a8c(0xc8)][_0x354a8c(0xae)](),super[_0x354a8c(0x96)]();}[_0x44338f(0x6e)](){const _0x6ffbc3=_0x44338f,_0x2766c9=this[_0x6ffbc3(0x8e)],_0x1233f9=_0x2766c9[_0x6ffbc3(0xdd)][_0x6ffbc3(0x9f)],_0x5775ec=_0x2766c9[_0x6ffbc3(0x7a)][_0x6ffbc3(0x67)](_0x314c24);_0x2766c9[_0x6ffbc3(0xdd)][_0x6ffbc3(0xa7)]({'isUndoable':!0x1},_0x4d2242=>{const _0x2875b6=_0x6ffbc3,_0x324efd=_0x2875b6(0x6d)+_0x5775ec[_0x2875b6(0xe7)],_0x37e0a5=_0x2875b6(0x97)+_0x5775ec[_0x2875b6(0xe7)],_0x5b0838=_0x2766c9[_0x2875b6(0xdd)][_0x2875b6(0x70)][_0x2875b6(0xd3)](_0x324efd);_0x2766c9[_0x2875b6(0xad)][_0x2875b6(0x99)][_0x2875b6(0xc7)]?re(_0x5775ec[_0x2875b6(0xe7)],_0x1233f9[_0x2875b6(0xbd)][_0x2875b6(0xb6)](),_0x2766c9[_0x2875b6(0xdd)],_0x4d2242):_0x5b0838&&(_0x4d2242[_0x2875b6(0xc5)](_0x324efd),_0x4d2242[_0x2875b6(0xc5)](_0x37e0a5));});}}function _0x54e2(){const _0x4acf28=['getSelectionClass','4pkosaj','ck-user__selection','start','mouseleave','mySessionId','render','toDomElement','isDocumentOperation','span','toRange','editingDowncast','highest','user:','change:range','get','getCustomProperty','delete','tableCell','ck-user__marker-tooltip','root','user:range:','createUserMarkerOperations','isOfficialPlugin','markers','627770onqVwU','detach','type','isCollapsed','264245fSUWuT','oldRange','markerToElement','getStart','remove','plugins','setAttribute','user:range','1032309dpaPGC','nodeAfter','addMarker','change','6391BhRHTw','afterInit','getUserBySessionId','listenTo','createUIElement','keydown','end','$text','isInline','fromRange','add','requires','markerRange','editor','isPremiumPlugin','data-session-id','3832FWXBgs','1318116keLJee','createElement','addEventListener','Escape','destroy','user:position:','isLimit','view','marker','user:position','contenteditable','createRange','ck-user__marker_hovered','document','schema','userPositionMarker','removeClass','parent','getContainedElement','for','classList','enqueueChange','startsWith','getMarkerClass','mouseenter','split','undo','editing','stopListening','spellcheck','markerNameToElements','1366256hxjDIn','isObject','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','getRange','ck-user__marker\x20','getFirstRange','getAttribute','$graveyard','textContent','markerName','_createdBatches','size','selection','set','conversion','commands','color','init','applyOperation','clear','removeMarker','mapper','hasDomSelection','_domEmitter','UserMarkers','isSimilar','updateMarker','outerHTML','update:user:range','checkChild','getNearestSelectionRange','false','reconvertMarker','rootName','has','element','name','hasContent','newRange','setCustomProperty','orderNumber','getPositions','deletionPosition','batch','model','2812023psLCcR','innerHTML','pluginName','markerToHighlight'];_0x54e2=function(){return _0x4acf28;};return _0x54e2();}function re(_0x46b83e,_0x3aa620,_0xd576bf,_0x42e227){const _0x2c18eb=_0x44338f,_0x35e58e=_0x2c18eb(0x6d)+_0x46b83e,_0x2735ad=_0x2c18eb(0x97)+_0x46b83e,_0x4bce41=_0x3aa620[_0x2c18eb(0xa4)]();let _0x4dd758=_0x3aa620[_0x2c18eb(0xe5)];if(_0x4bce41&&_0x4bce41['is'](_0x2c18eb(0xd4),_0x2c18eb(0x6a))){const _0x18a11d=function(_0x53771b,_0x39f381){const _0x4e50c3=_0x2c18eb;for(const _0x475f8f of _0x53771b[_0x4e50c3(0xda)]())if(_0x39f381[_0x4e50c3(0xa0)][_0x4e50c3(0xce)](_0x475f8f,_0x4e50c3(0x88)))return _0x475f8f;}(_0x3aa620,_0xd576bf);_0x18a11d&&(_0x4dd758=_0x18a11d,_0x3aa620=_0x42e227[_0x2c18eb(0x9d)](_0x4dd758));}const _0x310ed7=_0x42e227[_0x2c18eb(0x9d)](_0x4dd758);_0xd576bf[_0x2c18eb(0x70)][_0x2c18eb(0xd3)](_0x35e58e)?(_0x42e227[_0x2c18eb(0xcb)](_0x35e58e,{'range':_0x3aa620}),_0x42e227[_0x2c18eb(0xcb)](_0x2735ad,{'range':_0x310ed7})):(_0x42e227[_0x2c18eb(0x7f)](_0x35e58e,{'range':_0x3aa620,'usingOperation':!0x0}),_0x42e227[_0x2c18eb(0x7f)](_0x2735ad,{'range':_0x310ed7,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x3ff936=_0x4490;(function(_0x32b176,_0x21d7b0){const _0x1b8b85=_0x4490,_0x194b3e=_0x32b176();while(!![]){try{const _0x4ca342=-parseInt(_0x1b8b85(0x220))/0x1+-parseInt(_0x1b8b85(0x22e))/0x2+-parseInt(_0x1b8b85(0x252))/0x3*(-parseInt(_0x1b8b85(0x1de))/0x4)+-parseInt(_0x1b8b85(0x204))/0x5+parseInt(_0x1b8b85(0x1e7))/0x6+parseInt(_0x1b8b85(0x257))/0x7*(parseInt(_0x1b8b85(0x1fa))/0x8)+parseInt(_0x1b8b85(0x225))/0x9;if(_0x4ca342===_0x21d7b0)break;else _0x194b3e['push'](_0x194b3e['shift']());}catch(_0x42b6fe){_0x194b3e['push'](_0x194b3e['shift']());}}}(_0x5b36,0xd807c));import{Plugin as _0x4eb4fc}from'ckeditor5/src/core.js';import{global as _0x120b12,DomEmitterMixin as _0x4895f2}from'ckeditor5/src/utils.js';function _0x4490(_0x35f438,_0x3fc438){const _0x5b3626=_0x5b36();return _0x4490=function(_0x4490b4,_0x2fa190){_0x4490b4=_0x4490b4-0x1cf;let _0x5d086d=_0x5b3626[_0x4490b4];return _0x5d086d;},_0x4490(_0x35f438,_0x3fc438);}import{Sessions as _0x16f702}from'./sessions.js';import{ModelLiveRange as _0x1e76cc}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x5b36(){const _0x5e9ce1=['editingDowncast','markers','outerHTML','nodeAfter','root','has','document','mapper','type','markerRange','382744AyUyLJ','reconvertMarker','marker','getAttribute','for','set','plugins','_createdBatches','editing','isOfficialPlugin','2099070XBotPi','checkChild','mySessionId','UserMarkers','addEventListener','setCustomProperty','span','delete','remove','getFirstRange','spellcheck','user:range:','createUserMarkerOperations','getContainedElement','update:user:range','view','toDomElement','markerToHighlight','parent','oldRange','data-session-id','schema','change:range','user:range','detach','ck-user__selection','textContent','batch','897839bJITHd','isObject','createUIElement','tableCell','mouseenter','15278859PDPaAq','userPositionMarker','isSimilar','listenTo','markerToElement','stopListening','color','render','name','2895626jmWxcx','end','conversion','clear','false','user:position:','toRange','isPremiumPlugin','undo','model','fromRange','createElement','change','$text','get','user:','createRange','isLimit','ck-user__marker\x20','commands','startsWith','applyOperation','add','getPositions','orderNumber','_domEmitter','removeClass','ck-user__marker-tooltip','rootName','getNearestSelectionRange','element','split','editor','hasDomSelection','selection','ck-user__marker_hovered','3vygyrz','getMarkerClass','addMarker','hasContent','size','175quXWwv','keydown','isDocumentOperation','markerNameToElements','getStart','getUserBySessionId','deletionPosition','enqueueChange','destroy','setAttribute','getRange','start','markerName','innerHTML','updateMarker','classList','Escape','36588kDHOAX','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','mouseleave','newRange','pluginName','user:position','requires','removeMarker','afterInit','4484718jeNaxI','isInline','isCollapsed','$graveyard','init','getSelectionClass','getCustomProperty','contenteditable','highest'];_0x5b36=function(){return _0x5e9ce1;};return _0x5b36();}export class UserMarkers extends _0x4eb4fc{[_0x3ff936(0x247)]=new(_0x4895f2())();static get[_0x3ff936(0x1e4)](){return[_0x16f702];}static get[_0x3ff936(0x1e2)](){const _0xbef577=_0x3ff936;return _0xbef577(0x207);}static get[_0x3ff936(0x203)](){return!0x0;}static get[_0x3ff936(0x235)](){return!0x0;}[_0x3ff936(0x1eb)](){const _0x4341f9=_0x3ff936,_0x1fea7f=this[_0x4341f9(0x24e)],_0x1c426d=_0x1fea7f[_0x4341f9(0x200)][_0x4341f9(0x23c)](_0x16f702);_0x1fea7f[_0x4341f9(0x230)][_0x4341f9(0x1fe)](_0x4341f9(0x1f0))[_0x4341f9(0x229)]({'model':_0x4341f9(0x1e3),'view':(_0x12ad16,{writer:_0xd9fce1})=>function(_0x33f9d8,_0x4783d7,_0x2509ae,_0x256fb5){const _0xf9f92d=_0x4341f9,_0x13cfda=_0x33f9d8[_0xf9f92d(0x1d9)][_0xf9f92d(0x24d)](':')[0x2],_0x4b2ac0=_0x2509ae[_0xf9f92d(0x1d2)](_0x13cfda);if(!_0x4b2ac0||_0x13cfda===_0x2509ae[_0xf9f92d(0x206)])return;if(!_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x219)][_0xf9f92d(0x205)](_0x33f9d8[_0xf9f92d(0x1f9)][_0xf9f92d(0x1d8)],_0xf9f92d(0x23b)))return;const _0xb7d676={'class':_0xf9f92d(0x240)+_0x4b2ac0[_0xf9f92d(0x22b)][_0xf9f92d(0x253)](),'data-name':_0x4b2ac0[_0xf9f92d(0x22d)],'data-session-id':_0x13cfda},_0x39cd07=_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x1f1)][_0xf9f92d(0x23c)](_0x33f9d8[_0xf9f92d(0x1d9)]),_0x2bbd1d=_0x39cd07[_0xf9f92d(0x1d1)](),_0x57941b=_0x2bbd1d[_0xf9f92d(0x1f3)],_0x338b9f=_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x219)];if(_0x57941b&&_0x338b9f[_0xf9f92d(0x221)](_0x57941b)&&_0x338b9f[_0xf9f92d(0x1e8)](_0x57941b)&&!_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x1f1)][_0xf9f92d(0x23c)](_0xf9f92d(0x20f)+_0x13cfda)[_0xf9f92d(0x1d7)]()[_0xf9f92d(0x1e9)])return;const _0x5cb3fe=_0x2bbd1d[_0xf9f92d(0x216)];return _0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x219)][_0xf9f92d(0x23f)](_0x5cb3fe)&&!_0x256fb5[_0xf9f92d(0x237)][_0xf9f92d(0x255)](_0x5cb3fe)&&(_0xb7d676[_0xf9f92d(0x1ee)]=!0x1),function(_0xa40eda,_0x4102c7,_0x3f80be){const _0x2d71b0=_0xf9f92d,_0x15badb=_0xa40eda[_0x2d71b0(0x222)](_0x2d71b0(0x20a),_0x4102c7);return _0xa40eda[_0x2d71b0(0x209)](_0x2d71b0(0x226),!0x0,_0x15badb),_0x15badb[_0x2d71b0(0x22c)]=function(_0x21d78e){const _0x2d87f1=_0x2d71b0,_0x5b442f=this[_0x2d87f1(0x214)](_0x21d78e),_0x7daec5=document[_0x2d87f1(0x239)](_0x2d87f1(0x20a));return _0x7daec5[_0x2d87f1(0x1dc)][_0x2d87f1(0x244)](_0x2d87f1(0x249)),_0x7daec5[_0x2d87f1(0x1d6)](_0x2d87f1(0x1ee),_0x2d87f1(0x232)),_0x7daec5[_0x2d87f1(0x1d6)](_0x2d87f1(0x20e),_0x2d87f1(0x232)),_0x7daec5[_0x2d87f1(0x21e)]=_0x3f80be[_0x2d87f1(0x22d)],_0x5b442f[_0x2d87f1(0x1da)]=_0x2d87f1(0x1df)+_0x7daec5[_0x2d87f1(0x1f2)]+'',_0x5b442f[_0x2d87f1(0x208)](_0x2d87f1(0x224),()=>{const _0x11716e=_0x2d87f1;_0x5b442f[_0x11716e(0x1dc)][_0x11716e(0x244)](_0x11716e(0x251));}),_0x5b442f[_0x2d87f1(0x208)](_0x2d87f1(0x1e0),()=>{const _0x4d972d=_0x2d87f1;_0x5b442f[_0x4d972d(0x1dc)][_0x4d972d(0x20c)](_0x4d972d(0x251));}),_0x5b442f;},_0x15badb[_0x2d71b0(0x227)]=function(_0x2aec73){const _0x4e7a3d=_0x2d71b0;return!(!this[_0x4e7a3d(0x1ed)](_0x4e7a3d(0x226))||!_0x2aec73[_0x4e7a3d(0x1ed)](_0x4e7a3d(0x226))||this[_0x4e7a3d(0x1fd)](_0x4e7a3d(0x218))!=_0x2aec73[_0x4e7a3d(0x1fd)](_0x4e7a3d(0x218)));},_0x15badb;}(_0x4783d7,_0xb7d676,_0x4b2ac0);}(_0x12ad16,_0xd9fce1,_0x1c426d,_0x1fea7f)}),_0x1fea7f[_0x4341f9(0x230)][_0x4341f9(0x1fe)](_0x4341f9(0x1f0))[_0x4341f9(0x215)]({'model':_0x4341f9(0x21b),'view':_0x26baf7=>function(_0x4a1bd9,_0x56aa22){const _0xbb6726=_0x4341f9,_0x4351af=_0x4a1bd9[_0xbb6726(0x1d9)][_0xbb6726(0x24d)](':')[0x2];if(_0x4351af===_0x56aa22[_0xbb6726(0x206)])return null;const _0x2cb8c8=_0x56aa22[_0xbb6726(0x1d2)](_0x4351af);if(!_0x2cb8c8)return{'id':_0x4351af,'classes':[]};return{'id':_0x4351af,'classes':[_0xbb6726(0x21d),_0x2cb8c8[_0xbb6726(0x22b)][_0xbb6726(0x1ec)]()],'attributes':{'data-session-id':_0x4351af},'priority':0x7d0+_0x2cb8c8[_0xbb6726(0x246)]};}(_0x26baf7,_0x1c426d)}),function(_0x3117e1){const _0x4c6140=_0x4341f9,_0x3c6b59=_0x3117e1[_0x4c6140(0x237)],_0x3731c3=new Map(),_0xe93aed=_0x3117e1[_0x4c6140(0x200)][_0x4c6140(0x23c)](_0x16f702);_0x3c6b59[_0x4c6140(0x1f1)]['on'](_0x4c6140(0x212),(_0x30e989,_0x1e270,_0x6a2125,_0x4cde12)=>{const _0x571964=_0x4c6140;if(!_0x4cde12&&_0x3731c3[_0x571964(0x23c)](_0x1e270[_0x571964(0x22d)]))return _0x3731c3[_0x571964(0x23c)](_0x1e270[_0x571964(0x22d)])[_0x571964(0x21c)](),void _0x3731c3[_0x571964(0x20b)](_0x1e270[_0x571964(0x22d)]);const _0x582d32=_0x1e270[_0x571964(0x22d)][_0x571964(0x24d)](':')[0x2];if(_0x582d32===_0xe93aed[_0x571964(0x206)])return;const _0x376e67=_0x571964(0x233)+_0x582d32;_0x3c6b59[_0x571964(0x1f1)][_0x571964(0x1f5)](_0x376e67)&&_0x3117e1[_0x571964(0x202)][_0x571964(0x1fb)](_0x376e67),_0x1e270['on'](_0x571964(0x21a),(_0x15e035,_0x2b06b2,_0x338b16)=>{const _0x32d347=_0x571964;if(_0x32d347(0x1ea)!=_0x2b06b2[_0x32d347(0x1f4)][_0x32d347(0x24a)]&&_0x32d347(0x1ea)==_0x1e270[_0x32d347(0x1d7)]()[_0x32d347(0x1f4)][_0x32d347(0x24a)]&&!_0x3731c3[_0x32d347(0x1f5)](_0x1e270[_0x32d347(0x22d)])){const _0x4a95f5=_0x3c6b59[_0x32d347(0x219)][_0x32d347(0x24b)](_0x338b16[_0x32d347(0x1d3)]);if(_0x4a95f5){const _0x17da11=_0x1e76cc[_0x32d347(0x238)](_0x4a95f5);_0x3731c3[_0x32d347(0x1ff)](_0x1e270[_0x32d347(0x22d)],_0x17da11),_0x17da11['on'](_0x32d347(0x21a),(_0x5c5e82,_0x3ba634,_0x5320e1)=>{const _0x704c7=_0x32d347;if(_0x704c7(0x1ea)==_0x17da11[_0x704c7(0x1f4)][_0x704c7(0x24a)]){const _0x48d343=_0x3c6b59[_0x704c7(0x219)][_0x704c7(0x24b)](_0x5320e1[_0x704c7(0x1d3)]);_0x48d343?(_0x17da11[_0x704c7(0x1d8)]=_0x48d343[_0x704c7(0x1d8)],_0x17da11[_0x704c7(0x22f)]=_0x48d343[_0x704c7(0x22f)]):(_0x3731c3[_0x704c7(0x20b)](_0x1e270[_0x704c7(0x22d)]),_0x17da11[_0x704c7(0x21c)]());}});}}});}),_0x3c6b59[_0x4c6140(0x1f6)]['on'](_0x4c6140(0x23a),()=>{const _0x322db8=_0x4c6140;_0x3731c3[_0x322db8(0x256)]>0x0&&_0x3c6b59[_0x322db8(0x1d4)]({'isUndoable':!0x1},_0x252d08=>{const _0x5a3086=_0x322db8;for(const [_0x6978ee,_0x34166b]of _0x3731c3)_0x5a3086(0x1ea)==_0x3c6b59[_0x5a3086(0x1f1)][_0x5a3086(0x23c)](_0x6978ee)[_0x5a3086(0x1d7)]()[_0x5a3086(0x1f4)][_0x5a3086(0x24a)]&&(q(_0x6978ee[_0x5a3086(0x24d)](':')[0x2],_0x34166b[_0x5a3086(0x234)](),_0x3c6b59,_0x252d08),_0x34166b[_0x5a3086(0x21c)]());_0x3731c3[_0x5a3086(0x231)]();});});}(_0x1fea7f),this[_0x4341f9(0x247)][_0x4341f9(0x228)](_0x120b12[_0x4341f9(0x1f6)],_0x4341f9(0x258),(_0x30bde7,{key:_0x324b5a})=>{const _0x191d71=_0x4341f9;_0x191d71(0x1dd)===_0x324b5a&&function(_0x46305b){const _0x45837c=_0x191d71;_0x46305b[_0x45837c(0x202)][_0x45837c(0x213)][_0x45837c(0x23a)](_0x4498d1=>{const _0x32c363=_0x45837c;for(const _0x54e01c of _0x46305b[_0x32c363(0x237)][_0x32c363(0x1f1)]){if(!_0x54e01c[_0x32c363(0x22d)][_0x32c363(0x242)](_0x32c363(0x1e3)))continue;const _0x4e0f5a=_0x46305b[_0x32c363(0x202)][_0x32c363(0x1f7)][_0x32c363(0x1d0)](_0x54e01c[_0x32c363(0x22d)]);if(_0x4e0f5a){for(const _0x136602 of _0x4e0f5a)_0x4498d1[_0x32c363(0x248)](_0x32c363(0x251),_0x136602);}}});}(_0x1fea7f);},{'useCapture':!0x0});}[_0x3ff936(0x1e6)](){const _0x5dd98c=_0x3ff936,_0x4aafe2=this[_0x5dd98c(0x24e)],_0x3a8f77=_0x4aafe2[_0x5dd98c(0x241)][_0x5dd98c(0x23c)](_0x5dd98c(0x236));_0x3a8f77&&_0x4aafe2[_0x5dd98c(0x237)]['on'](_0x5dd98c(0x243),(_0x1c1e35,_0x132f96)=>{const _0x41468a=_0x5dd98c,_0xc9d3ec=_0x132f96[0x0];if(!_0xc9d3ec[_0x41468a(0x1cf)])return;if(_0x41468a(0x1fc)!=_0xc9d3ec[_0x41468a(0x1f8)]||!_0xc9d3ec[_0x41468a(0x22d)][_0x41468a(0x242)](_0x41468a(0x23d)))return;const _0x5a8da5=_0xc9d3ec[_0x41468a(0x21f)];_0x3a8f77[_0x41468a(0x201)][_0x41468a(0x1f5)](_0x5a8da5)&&(_0xc9d3ec[_0x41468a(0x1e1)]=_0xc9d3ec[_0x41468a(0x217)]?_0x4aafe2[_0x41468a(0x237)][_0x41468a(0x23e)](_0xc9d3ec[_0x41468a(0x217)][_0x41468a(0x1d8)],_0xc9d3ec[_0x41468a(0x217)][_0x41468a(0x22f)]):null);},{'priority':_0x5dd98c(0x1ef)});}[_0x3ff936(0x1d5)](){const _0x5931a1=_0x3ff936;return this[_0x5931a1(0x247)][_0x5931a1(0x22a)](),super[_0x5931a1(0x1d5)]();}[_0x3ff936(0x210)](){const _0x219110=_0x3ff936,_0x4595ee=this[_0x219110(0x24e)],_0x340dc7=_0x4595ee[_0x219110(0x237)][_0x219110(0x1f6)],_0x4d3232=_0x4595ee[_0x219110(0x200)][_0x219110(0x23c)](_0x16f702);_0x4595ee[_0x219110(0x237)][_0x219110(0x1d4)]({'isUndoable':!0x1},_0xb8ac87=>{const _0x45569a=_0x219110,_0x4fd089=_0x45569a(0x20f)+_0x4d3232[_0x45569a(0x206)],_0x108048=_0x45569a(0x233)+_0x4d3232[_0x45569a(0x206)],_0x386be0=_0x4595ee[_0x45569a(0x237)][_0x45569a(0x1f1)][_0x45569a(0x1f5)](_0x4fd089);_0x4595ee[_0x45569a(0x202)][_0x45569a(0x213)][_0x45569a(0x24f)]?q(_0x4d3232[_0x45569a(0x206)],_0x340dc7[_0x45569a(0x250)][_0x45569a(0x20d)](),_0x4595ee[_0x45569a(0x237)],_0xb8ac87):_0x386be0&&(_0xb8ac87[_0x45569a(0x1e5)](_0x4fd089),_0xb8ac87[_0x45569a(0x1e5)](_0x108048));});}}function q(_0x1e9df8,_0x2ce2e9,_0x28221f,_0x2b4152){const _0x533e53=_0x3ff936,_0x3e96b3=_0x533e53(0x20f)+_0x1e9df8,_0x49c0c1=_0x533e53(0x233)+_0x1e9df8,_0x4f73c0=_0x2ce2e9[_0x533e53(0x211)]();let _0x349f3f=_0x2ce2e9[_0x533e53(0x1d8)];if(_0x4f73c0&&_0x4f73c0['is'](_0x533e53(0x24c),_0x533e53(0x223))){const _0x22c5d2=function(_0x3cfb8a,_0x13e739){const _0x13e46d=_0x533e53;for(const _0x4251db of _0x3cfb8a[_0x13e46d(0x245)]())if(_0x13e739[_0x13e46d(0x219)][_0x13e46d(0x205)](_0x4251db,_0x13e46d(0x23b)))return _0x4251db;}(_0x2ce2e9,_0x28221f);_0x22c5d2&&(_0x349f3f=_0x22c5d2,_0x2ce2e9=_0x2b4152[_0x533e53(0x23e)](_0x349f3f));}const _0x279579=_0x2b4152[_0x533e53(0x23e)](_0x349f3f);_0x28221f[_0x533e53(0x1f1)][_0x533e53(0x1f5)](_0x3e96b3)?(_0x2b4152[_0x533e53(0x1db)](_0x3e96b3,{'range':_0x2ce2e9}),_0x2b4152[_0x533e53(0x1db)](_0x49c0c1,{'range':_0x279579})):(_0x2b4152[_0x533e53(0x254)](_0x3e96b3,{'range':_0x2ce2e9,'usingOperation':!0x0}),_0x2b4152[_0x533e53(0x254)](_0x49c0c1,{'range':_0x279579,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x1b883c=_0x5a88;function _0x5a88(_0x3f2b39,_0x18dacf){const _0x3c95b6=_0x3c95();return _0x5a88=function(_0x5a8832,_0x547b38){_0x5a8832=_0x5a8832-0x14e;let _0xf0e967=_0x3c95b6[_0x5a8832];return _0xf0e967;},_0x5a88(_0x3f2b39,_0x18dacf);}(function(_0x597c9d,_0x6c5b44){const _0x9156e8=_0x5a88,_0x1dea1f=_0x597c9d();while(!![]){try{const _0x49a614=parseInt(_0x9156e8(0x185))/0x1+-parseInt(_0x9156e8(0x16e))/0x2+-parseInt(_0x9156e8(0x196))/0x3+-parseInt(_0x9156e8(0x195))/0x4*(-parseInt(_0x9156e8(0x191))/0x5)+parseInt(_0x9156e8(0x170))/0x6*(parseInt(_0x9156e8(0x192))/0x7)+parseInt(_0x9156e8(0x176))/0x8*(parseInt(_0x9156e8(0x15d))/0x9)+-parseInt(_0x9156e8(0x14f))/0xa;if(_0x49a614===_0x6c5b44)break;else _0x1dea1f['push'](_0x1dea1f['shift']());}catch(_0x5736d8){_0x1dea1f['push'](_0x1dea1f['shift']());}}}(_0x3c95,0xbde9b));import{ContextPlugin as _0x1c4a65}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x2bf45d,CKEditorError as _0x49985d}from'ckeditor5/src/utils.js';function _0x3c95(){const _0x91cea5=['change:me','error','Connected\x20users\x20limit\x20exceeded','webSocketUrl','get','state','listenTo','initialReconnectionInterval','_reconnect','delete','stopListening','1273715FstszZ','DISCONNECTED','_domEmitter','showWarning','function','connection','websocketgateway-missing-websocket-url','WebSocketGateway','isInReconnectionStack','CONNECTED','websocketgateway-invalid-plugin-interface','removeFromReconnectionStack','10UTldti','210eWaJKc','context','_reconnectionStack','3082492ffuHbF','506952vxgkcw','bind','isPremiumPlugin','36987850zYlzBG','reconnect','websocketgateway-plugin-already-registered','_isBrowserOffline','then','set','constructor','has','code','from','real-time-collaboration','disconnect','cloudservices-reconnection-error','pluginName','18VAHlUS','CloudServices','_shouldPluginsReconnect','connected','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.','online','token','requires','isOfficialPlugin','addToReconnectionStack','catch','connect','cloudServices.connectionTimeout','add','init','offline','cloudServices.requestTimeout','217698EzQdFc','limitExceeded','185490fHBVdF','cloudservices-init','CONNECTING','websocketgateway-missing-token','define','config','4048360jsuONZ','plugins','all','destroy'];_0x3c95=function(){return _0x91cea5;};return _0x3c95();}import{WebSocketGateway as _0x248116,WEB_SOCKET_GATEWAY_STATES as _0x79ea2f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x5d7fb8}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x1c4a65{static [_0x1b883c(0x18c)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x248116)());static [_0x1b883c(0x181)]=0x3e8;[_0x1b883c(0x18a)];[_0x1b883c(0x194)];[_0x1b883c(0x15f)];[_0x1b883c(0x187)];static get[_0x1b883c(0x164)](){const _0x343fac=_0x1b883c;return[_0x343fac(0x15e),_0x5d7fb8];}static get[_0x1b883c(0x15c)](){const _0x126761=_0x1b883c;return _0x126761(0x18c);}static get[_0x1b883c(0x165)](){return!0x0;}static get[_0x1b883c(0x14e)](){return!0x0;}constructor(_0x295663){const _0xd07859=_0x1b883c;super(_0x295663),this[_0xd07859(0x154)](_0xd07859(0x17f),_0x79ea2f[_0xd07859(0x18e)]),this[_0xd07859(0x154)](_0xd07859(0x152),!0x1),this[_0xd07859(0x194)]=new Set(),this[_0xd07859(0x15f)]=!0x1,this[_0xd07859(0x187)]=new(_0x2bf45d())();}[_0x1b883c(0x16b)](){const _0x3ef235=_0x1b883c,_0x181d70=this[_0x3ef235(0x193)],_0x53de7d=_0x181d70[_0x3ef235(0x177)][_0x3ef235(0x17e)](_0x3ef235(0x15e)),_0x529faf=_0x181d70[_0x3ef235(0x177)][_0x3ef235(0x17e)](_0x5d7fb8);if(!_0x53de7d[_0x3ef235(0x163)])throw new _0x49985d(_0x3ef235(0x173),this);if(!_0x53de7d[_0x3ef235(0x17d)])throw new _0x49985d(_0x3ef235(0x18b),this);return this[_0x3ef235(0x187)][_0x3ef235(0x180)](window,_0x3ef235(0x16c),()=>this[_0x3ef235(0x152)]=!0x0),this[_0x3ef235(0x187)][_0x3ef235(0x180)](window,_0x3ef235(0x162),()=>this[_0x3ef235(0x152)]=!0x1),this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x174)](_0x3ef235(0x169),0xa),this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x174)](_0x3ef235(0x16d),0x14),WebSocketGateway[_0x3ef235(0x18c)][_0x3ef235(0x168)](_0x53de7d[_0x3ef235(0x163)],_0x53de7d[_0x3ef235(0x17d)],{'timeout':0x3e8*this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x17e)](_0x3ef235(0x169)),'requestTimeout':0x3e8*this[_0x3ef235(0x193)][_0x3ef235(0x175)][_0x3ef235(0x17e)](_0x3ef235(0x16d))})[_0x3ef235(0x153)](_0x59b34c=>{const _0x1793d9=_0x3ef235;if(this[_0x1793d9(0x18a)]=_0x59b34c,this[_0x1793d9(0x197)](_0x1793d9(0x17f))['to'](_0x59b34c,_0x1793d9(0x17f),this,_0x1793d9(0x152),(_0x357ba8,_0x3a8fdc)=>(_0x1793d9(0x160)!==_0x357ba8&&(this[_0x1793d9(0x15f)]=!0x0),_0x3a8fdc||_0x357ba8!==_0x79ea2f[_0x1793d9(0x18e)]?_0x79ea2f[_0x1793d9(0x186)]:this[_0x1793d9(0x17f)]==_0x79ea2f[_0x1793d9(0x186)]&&this[_0x1793d9(0x15f)]?(this[_0x1793d9(0x15f)]=!0x1,this[_0x1793d9(0x182)](),_0x79ea2f[_0x1793d9(0x172)]):_0x79ea2f[_0x1793d9(0x18e)])),this[_0x1793d9(0x18a)]['on'](_0x1793d9(0x17b),(_0x25d2f0,_0x29f42f)=>{const _0x27d764=_0x1793d9;if(_0x27d764(0x16f)!==_0x29f42f[_0x27d764(0x157)])throw console[_0x27d764(0x17b)](_0x29f42f),new _0x49985d(_0x27d764(0x171),null,{'originalError':_0x29f42f});_0x529faf[_0x27d764(0x188)](_0x27d764(0x161),{'title':_0x27d764(0x17c),'namespace':_0x27d764(0x159)});}),!_0x59b34c['me'])return new Promise(_0x3a1952=>_0x59b34c['on'](_0x1793d9(0x17a),_0x3a1952));})[_0x3ef235(0x167)](_0x5b7a95=>{const _0x466a54=_0x3ef235;throw console[_0x466a54(0x17b)](_0x5b7a95),new _0x49985d(_0x466a54(0x171),null,{'originalError':_0x5b7a95});});}[_0x1b883c(0x166)](_0x9c918e){const _0x493dd7=_0x1b883c;if(_0x493dd7(0x189)!=typeof _0x9c918e[_0x493dd7(0x150)])throw new _0x49985d(_0x493dd7(0x18f),this);if(this[_0x493dd7(0x18d)](_0x9c918e))throw new _0x49985d(_0x493dd7(0x151),this,{'name':_0x9c918e[_0x493dd7(0x155)][_0x493dd7(0x15c)]});this[_0x493dd7(0x194)][_0x493dd7(0x16a)](_0x9c918e);}[_0x1b883c(0x190)](_0x1e95be){const _0x3841cf=_0x1b883c;this[_0x3841cf(0x194)][_0x3841cf(0x183)](_0x1e95be);}[_0x1b883c(0x18d)](_0x464669){const _0x1b6e05=_0x1b883c;return this[_0x1b6e05(0x194)][_0x1b6e05(0x156)](_0x464669);}[_0x1b883c(0x182)](){const _0x3822cf=_0x1b883c;return this[_0x3822cf(0x18a)][_0x3822cf(0x150)]()[_0x3822cf(0x153)](()=>Promise[_0x3822cf(0x178)](Array[_0x3822cf(0x158)](this[_0x3822cf(0x194)],_0x2f6c8e=>_0x2f6c8e[_0x3822cf(0x150)]())))[_0x3822cf(0x153)](()=>this[_0x3822cf(0x17f)]=_0x79ea2f[_0x3822cf(0x18e)])[_0x3822cf(0x167)](_0x250e33=>{const _0x50762a=_0x3822cf;throw console[_0x50762a(0x17b)](_0x250e33),new _0x49985d(_0x50762a(0x15b),this[_0x50762a(0x193)]);});}[_0x1b883c(0x15a)](){const _0x253d25=_0x1b883c;this[_0x253d25(0x18a)]&&this[_0x253d25(0x18a)][_0x253d25(0x15a)](),this[_0x253d25(0x17f)]=_0x79ea2f[_0x253d25(0x186)],this[_0x253d25(0x187)][_0x253d25(0x184)]();}[_0x1b883c(0x179)](){const _0x47812e=_0x1b883c;this[_0x47812e(0x15a)](),super[_0x47812e(0x179)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x46ea87)());[_0x4abc12(0x168)];[_0x4abc12(0x171)];[_0x4abc12(0x12a)];[_0x4abc12(0x16c)];static get[_0x4abc12(0x161)](){const _0x344a81=_0x4abc12;return[_0x5ac8cc,_0x27f9b7,_0x344a81(0x192),_0x60f7c6,_0x55a398];}static get[_0x4abc12(0x148)](){const _0x7fce80=_0x4abc12;return _0x7fce80(0x134);}static get[_0x4abc12(0x16d)](){return!0x0;}static get[_0x4abc12(0x17e)](){return!0x0;}constructor(_0x567e87){const _0x48675a=_0x4abc12;super(_0x567e87);const _0x15257b=this[_0x48675a(0x19a)][_0x48675a(0x170)][_0x48675a(0x139)](_0x48675a(0x16a));this[_0x48675a(0x168)]=null,this[_0x48675a(0x171)]=this[_0x48675a(0x19a)][_0x48675a(0x185)][_0x48675a(0x139)](_0x48675a(0x18c)),this[_0x48675a(0x12a)]=new CloudServicesRevisionHistoryAdapter[(_0x48675a(0x15a))](_0x15257b);}async[_0x4abc12(0x15e)](){const _0x5c0c02=_0x4abc12,_0x333cf8=this[_0x5c0c02(0x19a)][_0x5c0c02(0x185)][_0x5c0c02(0x139)](_0x27f9b7),_0x17480a=_0x333cf8[_0x5c0c02(0x165)],_0x28b077=this[_0x5c0c02(0x19a)][_0x5c0c02(0x185)][_0x5c0c02(0x139)](_0x5ac8cc);this[_0x5c0c02(0x171)][_0x5c0c02(0x144)]({'history':_0x17480a,'getLatestVersion':()=>this[_0x5c0c02(0x136)](),'getCurrentRevisionId':()=>_0x333cf8[_0x5c0c02(0x145)]});const _0x2e0187=this[_0x5c0c02(0x19a)][_0x5c0c02(0x170)][_0x5c0c02(0x139)](_0x5c0c02(0x146))||_0x202d4f,_0x58c8e5=await _0x4cb801[_0x5c0c02(0x175)](_0x28b077[_0x5c0c02(0x152)],_0x2e0187);this[_0x5c0c02(0x19a)][_0x5c0c02(0x185)][_0x5c0c02(0x139)](_0x5c0c02(0x192))[_0x5c0c02(0x137)]={'getRevision':async({revisionId:_0xfcb5b6})=>(await this[_0x5c0c02(0x156)](),await this[_0x5c0c02(0x12a)][_0x5c0c02(0x166)](_0xfcb5b6)),'updateRevisions':async _0x128a24=>{const _0x46169f=_0x5c0c02;await this[_0x46169f(0x156)]();const _0x2f828d=this[_0x46169f(0x171)][_0x46169f(0x15f)];if(_0x58c8e5&&0x1===_0x128a24[_0x46169f(0x188)]&&_0x128a24[0x0]['id']===_0x2f828d['id'])return _0x128a24;for(const _0x440f71 of _0x128a24)_0x440f71['id']===_0x2f828d['id']&&(_0x440f71[_0x46169f(0x12e)]=_0x440f71[_0x46169f(0x14f)]===_0x440f71[_0x46169f(0x143)]);return this[_0x46169f(0x12a)][_0x46169f(0x167)](_0x128a24,this[_0x46169f(0x168)])[_0x46169f(0x18e)](_0x149066=>(this[_0x46169f(0x168)]=_0x149066,_0x128a24))[_0x46169f(0x15c)](_0x55b510=>{const _0x4c4805=_0x46169f;if(_(_0x55b510)||_0x4c4805(0x13f)===_0x55b510[_0x4c4805(0x184)]&&void 0x0!==_0x55b510[_0x4c4805(0x12f)][_0x4c4805(0x196)]){for(const _0x1b2dfe of _0x128a24){!this[_0x4c4805(0x171)][_0x4c4805(0x13a)][_0x4c4805(0x166)](_0x1b2dfe['id'])||this[_0x4c4805(0x171)][_0x4c4805(0x141)](_0x1b2dfe['id'],_0x1b2dfe,!0x1);}if(_(_0x55b510))throw _0x55b510;return _0x128a24;}throw _0x55b510;});}},this[_0x5c0c02(0x17f)](this[_0x5c0c02(0x12a)],_0x5c0c02(0x155),(_0x98a65b,{revisionsData:_0xc55a82,requestId:_0x2f157a})=>{const _0x17ff65=_0x5c0c02;Math[_0x17ff65(0x130)](..._0xc55a82[_0x17ff65(0x194)](_0x1d4595=>_0x1d4595[_0x17ff65(0x143)]))>this[_0x17ff65(0x190)]()-0x1?this[_0x17ff65(0x136)]()[_0x17ff65(0x18e)](()=>{const _0x3cbfa0=_0x17ff65;this[_0x3cbfa0(0x14d)](_0xc55a82,_0x2f157a);}):this[_0x17ff65(0x14d)](_0xc55a82,_0x2f157a);});const {revisions:_0x3ac8a3,requestId:_0x4f9c53}=await this[_0x5c0c02(0x12a)][_0x5c0c02(0x16b)](_0x28b077[_0x5c0c02(0x152)]);_0x28b077[_0x5c0c02(0x162)](this),this[_0x5c0c02(0x168)]=_0x4f9c53,await this[_0x5c0c02(0x169)](_0x3ac8a3);for(const _0xb5ffa of _0x3ac8a3)this[_0x5c0c02(0x171)][_0x5c0c02(0x182)](_0xb5ffa);this[_0x5c0c02(0x17f)](_0x333cf8,_0x5c0c02(0x191),(_0x74637a,_0x5314f5,_0x15839f)=>{const _0x352682=_0x5c0c02;_0x15839f&&(this[_0x352682(0x16c)]=_0x333cf8[_0x352682(0x199)],_0x74637a[_0x352682(0x154)]());}),this[_0x5c0c02(0x171)][_0x5c0c02(0x14a)](_0x5c0c02(0x159))['to'](_0x28b077,_0x5c0c02(0x12b),_0x5afa35=>_0x5afa35===_0x3d54ec[_0x5c0c02(0x17b)]);}async[_0x4abc12(0x15b)](){const _0x49268a=_0x4abc12,_0x103d63=this[_0x49268a(0x19a)][_0x49268a(0x185)][_0x49268a(0x139)](_0x5ac8cc),_0x18ca1a=this[_0x49268a(0x19a)][_0x49268a(0x185)][_0x49268a(0x139)](_0x27f9b7),_0x38b3d6=async()=>{const _0x4d2b62=_0x49268a,_0x106ff2=this[_0x4d2b62(0x171)][_0x4d2b62(0x15f)],_0xd2a9d8=_0x106ff2['id'],_0x3636ba=_0xd2a9d8!==_0x18ca1a[_0x4d2b62(0x145)];if(_0x3636ba){const _0x3179b=_0x18ca1a[_0x4d2b62(0x199)]-this[_0x4d2b62(0x16c)],_0x1027ff=this[_0x4d2b62(0x190)]();this[_0x4d2b62(0x171)][_0x4d2b62(0x164)][_0x4d2b62(0x179)]();if(_0x106ff2[_0x4d2b62(0x143)]+_0x3179b!==_0x1027ff){const _0xaf251=_0x106ff2[_0x4d2b62(0x14f)]+_0x3179b,_0x10eb51=this[_0x4d2b62(0x19a)][_0x4d2b62(0x185)][_0x4d2b62(0x139)](_0x55a398),_0x4e5ccb=this[_0x4d2b62(0x171)][_0x4d2b62(0x193)]({'revision':_0x106ff2,'from':_0xaf251,'to':_0x1027ff});_0x4e5ccb['id']=_0x106ff2['id'];const _0x5cc2d7=_0x4e5ccb[_0x4d2b62(0x15d)][_0x4d2b62(0x194)](_0x45e036=>_0x10eb51[_0x4d2b62(0x17c)](_0x45e036));_0x106ff2[_0x4d2b62(0x198)]({..._0x4e5ccb,'authors':_0x5cc2d7},!0x0),this[_0x4d2b62(0x171)][_0x4d2b62(0x141)](_0x106ff2['id'],_0x4e5ccb,!0x0);}this[_0x4d2b62(0x171)][_0x4d2b62(0x183)]=_0x1027ff,(_0x106ff2[_0x4d2b62(0x143)]===_0x106ff2[_0x4d2b62(0x14f)]&&!this[_0x4d2b62(0x171)][_0x4d2b62(0x177)][_0x4d2b62(0x138)](_0xd2a9d8)&&this[_0x4d2b62(0x171)][_0x4d2b62(0x13a)][_0x4d2b62(0x197)][_0x4d2b62(0x135)](_0xd2a9d8),this[_0x4d2b62(0x171)][_0x4d2b62(0x176)](_0x1027ff));}const {revisions:_0x4f6cd9,requestId:_0x49051c}=await this[_0x4d2b62(0x12a)][_0x4d2b62(0x15b)](_0x103d63[_0x4d2b62(0x152)],this[_0x4d2b62(0x168)]);_0x3636ba&&_0x4f6cd9[_0x4d2b62(0x188)]>0x0?_0x18ca1a[_0x4d2b62(0x131)]():(await this[_0x4d2b62(0x169)](_0x4f6cd9),this[_0x4d2b62(0x14d)](_0x4f6cd9,_0x49051c),this[_0x4d2b62(0x171)][_0x4d2b62(0x13e)]());};return _0x18ca1a[_0x49268a(0x12c)]?_0x38b3d6():new Promise((_0x392d8e,_0x2a442a)=>{const _0x49e264=_0x49268a;_0x18ca1a[_0x49e264(0x160)](_0x49e264(0x191),()=>{const _0x41cfb5=_0x49e264;_0x38b3d6()[_0x41cfb5(0x18e)](_0x392d8e)[_0x41cfb5(0x15c)](_0x2a442a);});});}[_0x4abc12(0x181)](){const _0x5ed8fa=_0x4abc12;super[_0x5ed8fa(0x181)]();}async[_0x4abc12(0x156)](){const _0x36fdad=_0x4abc12;this[_0x36fdad(0x12a)][_0x36fdad(0x128)]||await new Promise(_0x1b8cdd=>{const _0xd2467f=_0x36fdad;this[_0xd2467f(0x17f)](this[_0xd2467f(0x12a)],_0xd2467f(0x16e),_0xa1a291=>{const _0x164969=_0xd2467f;_0xa1a291[_0x164969(0x154)](),_0x1b8cdd();});});}[_0x4abc12(0x190)](){const _0x1a915a=_0x4abc12,_0x18385d=this[_0x1a915a(0x19a)][_0x1a915a(0x185)][_0x1a915a(0x139)](_0x27f9b7)[_0x1a915a(0x165)][_0x1a915a(0x129)]()[_0x1a915a(0x18a)]();for(const _0x3686ac of _0x18385d)if(_0x1a915a(0x187)!==_0x3686ac[_0x1a915a(0x133)]||_0x3686ac[_0x1a915a(0x12d)])return _0x3686ac[_0x1a915a(0x180)]+0x1;}[_0x4abc12(0x136)](){const _0x517b65=_0x4abc12,_0xa0dee8=this[_0x517b65(0x19a)][_0x517b65(0x185)][_0x517b65(0x139)](_0x27f9b7);return new Promise(_0x53f7cb=>{const _0x477a1d=_0x517b65;_0xa0dee8[_0x477a1d(0x126)]?_0xa0dee8[_0x477a1d(0x160)](_0x477a1d(0x17a),()=>{const _0x1291e0=_0x477a1d;_0x53f7cb(this[_0x1291e0(0x190)]());}):_0x53f7cb(this[_0x477a1d(0x190)]());});}[_0x4abc12(0x14d)](_0x19250c,_0x53883b){const _0x3d5bae=_0x4abc12,_0x59bdd4=this[_0x3d5bae(0x171)][_0x3d5bae(0x13a)];this[_0x3d5bae(0x168)]=_0x53883b;for(const _0x1e8149 of _0x19250c){const _0x40746b=_0x59bdd4[_0x3d5bae(0x166)](_0x1e8149['id']);if(_0x40746b){if((_0x1e8149[_0x3d5bae(0x14f)]||_0x1e8149[_0x3d5bae(0x143)])&&(_0x1e8149[_0x3d5bae(0x127)]=null),_0x40746b===this[_0x3d5bae(0x171)][_0x3d5bae(0x15f)]){const _0x513bb0=Math[_0x3d5bae(0x130)](_0x40746b[_0x3d5bae(0x143)],_0x1e8149[_0x3d5bae(0x143)]),_0x4c3854=Math[_0x3d5bae(0x130)](_0x40746b[_0x3d5bae(0x14f)],_0x1e8149[_0x3d5bae(0x14f)]);let _0x58f759;_0x40746b[_0x3d5bae(0x143)]===_0x1e8149[_0x3d5bae(0x143)]&&_0x40746b[_0x3d5bae(0x14f)]===_0x1e8149[_0x3d5bae(0x14f)]?(_0x58f759=!0x0,this[_0x3d5bae(0x142)](_0x1e8149)):_0x1e8149[_0x3d5bae(0x143)]===_0x513bb0&&_0x1e8149[_0x3d5bae(0x14f)]===_0x4c3854?_0x58f759=!0x1:(_0x40746b[_0x3d5bae(0x143)]===_0x513bb0&&_0x40746b[_0x3d5bae(0x14f)]===_0x4c3854||this[_0x3d5bae(0x125)]({'revision':_0x40746b,'from':_0x4c3854,'to':_0x513bb0}),_0x58f759=!0x0),_0x58f759&&(delete _0x1e8149[_0x3d5bae(0x14f)],delete _0x1e8149[_0x3d5bae(0x143)],delete _0x1e8149[_0x3d5bae(0x127)],delete _0x1e8149[_0x3d5bae(0x157)],delete _0x1e8149[_0x3d5bae(0x15d)]);}this[_0x3d5bae(0x171)][_0x3d5bae(0x172)](_0x1e8149),this[_0x3d5bae(0x142)](_0x1e8149);}else this[_0x3d5bae(0x171)][_0x3d5bae(0x182)](_0x1e8149);}const _0x4d00e8=_0x59bdd4[_0x3d5bae(0x158)]();_0x4d00e8[_0x3d5bae(0x18a)]();for(let _0xb10bbf=0x0;_0xb10bbf<_0x4d00e8[_0x3d5bae(0x188)]-0x1;_0xb10bbf++){const _0x1be422=_0x4d00e8[_0xb10bbf],_0xc444ec=_0x4d00e8[_0xb10bbf+0x1];if(_0x1be422[_0x3d5bae(0x14f)]<_0xc444ec[_0x3d5bae(0x143)]){const _0x40ac1f=_0xc444ec[_0x3d5bae(0x143)],_0x3d3d83=Math[_0x3d5bae(0x130)](_0x40ac1f,_0x1be422[_0x3d5bae(0x143)]);this[_0x3d5bae(0x125)]({'revision':_0x1be422,'from':_0x40ac1f,'to':_0x3d3d83});}}}[_0x4abc12(0x125)]({revision:_0x528795,from:_0x5d91e4,to:_0x57e184}={}){const _0x4f3dea=_0x4abc12,_0x33527b=this[_0x4f3dea(0x19a)][_0x4f3dea(0x185)][_0x4f3dea(0x139)](_0x55a398),_0x392d27=this[_0x4f3dea(0x171)][_0x4f3dea(0x193)]({'revision':_0x528795,'from':_0x5d91e4,'to':_0x57e184});_0x392d27[_0x4f3dea(0x16f)]=_0x392d27[_0x4f3dea(0x15d)][_0x4f3dea(0x194)](_0x39e1b9=>_0x33527b[_0x4f3dea(0x17c)](_0x39e1b9)),_0x528795[_0x4f3dea(0x198)](_0x392d27);}[_0x4abc12(0x142)](_0x103c25){const _0x4f613b=_0x4abc12,_0x1505f3={};_0x1505f3['id']=_0x103c25['id'];for(const _0x455825 of Object[_0x4f613b(0x17d)](_0x103c25))'id'!==_0x455825&&(_0x1505f3[_0x455825]=void 0x0);this[_0x4f613b(0x171)][_0x4f613b(0x141)](_0x1505f3['id'],_0x1505f3,!0x0);}async[_0x4abc12(0x169)](_0x36e577){const _0x3e108a=_0x4abc12,_0x16c3d2=this[_0x3e108a(0x19a)][_0x3e108a(0x185)][_0x3e108a(0x139)](_0x55a398),{connection:_0x25746e}=this[_0x3e108a(0x19a)][_0x3e108a(0x185)][_0x3e108a(0x139)](_0x5ac8cc),_0x41863d=new Set();for(const _0x195379 of _0x36e577){for(const _0x1f3927 of _0x195379[_0x3e108a(0x15d)])_0x1d84ea(_0x1f3927);_0x195379[_0x3e108a(0x147)]&&_0x1d84ea(_0x195379[_0x3e108a(0x147)]);}if(0x0===_0x41863d[_0x3e108a(0x153)])return;const _0x1f1604=await _0xbf68f0[_0x3e108a(0x18b)](_0x25746e,Array[_0x3e108a(0x149)](_0x41863d));for(const _0x5e0cf5 of _0x1f1604)_0x16c3d2[_0x3e108a(0x17c)](_0x5e0cf5['id'])||_0x16c3d2[_0x3e108a(0x13b)](_0x5e0cf5);function _0x1d84ea(_0x4ffd21){const _0x231091=_0x3e108a;_0x16c3d2[_0x231091(0x17c)](_0x4ffd21)||_0x41863d[_0x231091(0x163)](_0x4ffd21);}}}function _(_0x432450){const _0x2b6055=_0x4abc12;return _0x432450[_0x2b6055(0x195)][_0x2b6055(0x14c)](_0x2b6055(0x14e))||_0x432450[_0x2b6055(0x195)][_0x2b6055(0x14c)](_0x2b6055(0x178))||_0x432450[_0x2b6055(0x195)][_0x2b6055(0x14c)](_0x2b6055(0x132));}
|
|
23
|
+
const _0x1cae30=_0x4945;(function(_0x27084a,_0x5ab13f){const _0x4f23f8=_0x4945,_0x14f9d4=_0x27084a();while(!![]){try{const _0x592735=-parseInt(_0x4f23f8(0x182))/0x1*(parseInt(_0x4f23f8(0x16d))/0x2)+parseInt(_0x4f23f8(0x1b0))/0x3*(-parseInt(_0x4f23f8(0x186))/0x4)+-parseInt(_0x4f23f8(0x172))/0x5+-parseInt(_0x4f23f8(0x18a))/0x6*(parseInt(_0x4f23f8(0x1aa))/0x7)+-parseInt(_0x4f23f8(0x17a))/0x8+parseInt(_0x4f23f8(0x1af))/0x9+parseInt(_0x4f23f8(0x1c7))/0xa;if(_0x592735===_0x5ab13f)break;else _0x14f9d4['push'](_0x14f9d4['shift']());}catch(_0x27b5bd){_0x14f9d4['push'](_0x14f9d4['shift']());}}}(_0x4de7,0xf2d91));import{Plugin as _0x52ed5f}from'ckeditor5/src/core.js';function _0x4de7(){const _0x4cdb89=['_isPendingUpdate','add','fromVersion','39679930lKixRr','type','adapter','CloudServicesRevisionHistoryAdapter','connection','has','destroy','createdAt','reInit','keys','revisionsUpdated','addUser','getMany','_revisionTracker','getRevisions','getOperations','bind','CONNECTED','once','startsWith','pluginName','_revisionDataBuilder','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','sendBufferedUpdates','code','setRevisionData','2998pScvYh','_bufferUpdate','reconnect','authors','marker','2879990DqlHQI','getUser','currentRevision','getRevision','remove','_fixRevision','connected','_waitForServiceReady','10903680UxdGda','setSource','_offset','config','init','editor','isConnected','isEnabled','609jwICft','sessionId','plugins','_isConnected','27172NGlIwQ','change:_isConnected','_oldOffset','isPremiumPlugin','18ZIuehz','cloud-services-internal-error:\x20Not\x20connected.','off','isEmptyCurrent','collaboration.channelId','size','baseVersion','catch','length','_revisions','_update','from','requires','_handleRevisionsUpdate','_getLatestVersion','data','repository','serverHistory','diffData','isOfficialPlugin','then','_getLatestVersionFromServerOperations','_handleReconnectionError','_lastRequestId','cloud-services-internal-error:\x20Request\x20timeout.','_fetchMissingUsers','listenTo','isBundleUploaded','_bufferedUpdates','reverse','buildRevisionData','updateRevisions','1034530dPfHof','addToReconnectionStack','400','message','change:_isPendingUpdate','7910613iHPxkx','246odYPZW','_createCurrentRevision','map','get','RevisionHistoryService','connect','RevisionHistory','_preventResendingRevisionData','toVersion','creatorId','max','affectsData','addRevisionData','cloudServices.bundleVersion','authorsIds','_revisionHistoryService','RevisionTracker','state','_startingVersion','wrongRequestId'];_0x4de7=function(){return _0x4cdb89;};return _0x4de7();}import{version as _0x1b7086}from'ckeditor5/src/utils.js';import{Users as _0x49ac99}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x5a5e48}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4bd860}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x3a1368}from'../realtimecollaborativeediting/sessions.js';function _0x4945(_0x2f235,_0x3768a0){const _0x4de708=_0x4de7();return _0x4945=function(_0x494543,_0x3bc4c6){_0x494543=_0x494543-0x158;let _0x473cac=_0x4de708[_0x494543];return _0x473cac;},_0x4945(_0x2f235,_0x3768a0);}import{EditorService as _0x481efa,RevisionHistoryService as _0x11b19a,User as _0x19182b,WEB_SOCKET_GATEWAY_STATES as _0x44c41a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x52ed5f{static [_0x1cae30(0x1b4)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x11b19a)());[_0x1cae30(0x1a1)];[_0x1cae30(0x160)];[_0x1cae30(0x1bf)];[_0x1cae30(0x188)];static get[_0x1cae30(0x196)](){const _0x5832a8=_0x1cae30;return[_0x4bd860,_0x5a5e48,_0x5832a8(0x1b6),_0x3a1368,_0x49ac99];}static get[_0x1cae30(0x167)](){const _0x964fdc=_0x1cae30;return _0x964fdc(0x1ca);}static get[_0x1cae30(0x19d)](){return!0x0;}static get[_0x1cae30(0x189)](){return!0x0;}constructor(_0x1ea562){const _0x670daf=_0x1cae30;super(_0x1ea562);const _0x5119d1=this[_0x670daf(0x17f)][_0x670daf(0x17d)][_0x670daf(0x1b3)](_0x670daf(0x18e));this[_0x670daf(0x1a1)]=null,this[_0x670daf(0x160)]=this[_0x670daf(0x17f)][_0x670daf(0x184)][_0x670daf(0x1b3)](_0x670daf(0x1c0)),this[_0x670daf(0x1bf)]=new CloudServicesRevisionHistoryAdapter[(_0x670daf(0x1b4))](_0x5119d1);}async[_0x1cae30(0x17e)](){const _0x373957=_0x1cae30,_0x261ad9=this[_0x373957(0x17f)][_0x373957(0x184)][_0x373957(0x1b3)](_0x5a5e48),_0x401608=_0x261ad9[_0x373957(0x19b)],_0x89a3ed=this[_0x373957(0x17f)][_0x373957(0x184)][_0x373957(0x1b3)](_0x4bd860);this[_0x373957(0x160)][_0x373957(0x17b)]({'history':_0x401608,'getLatestVersion':()=>this[_0x373957(0x198)](),'getCurrentRevisionId':()=>_0x261ad9[_0x373957(0x183)]});const _0x25c1cb=this[_0x373957(0x17f)][_0x373957(0x17d)][_0x373957(0x1b3)](_0x373957(0x1bd))||_0x1b7086,_0x1a2047=await _0x481efa[_0x373957(0x1a5)](_0x89a3ed[_0x373957(0x1cb)],_0x25c1cb);this[_0x373957(0x17f)][_0x373957(0x184)][_0x373957(0x1b3)](_0x373957(0x1b6))[_0x373957(0x1c9)]={'getRevision':async({revisionId:_0x5c60a7})=>(await this[_0x373957(0x179)](),await this[_0x373957(0x1bf)][_0x373957(0x175)](_0x5c60a7)),'updateRevisions':async _0xcea2c7=>{const _0x106ef5=_0x373957;await this[_0x106ef5(0x179)]();const _0x24f3d6=this[_0x106ef5(0x160)][_0x106ef5(0x174)];if(_0x1a2047&&0x1===_0xcea2c7[_0x106ef5(0x192)]&&_0xcea2c7[0x0]['id']===_0x24f3d6['id'])return _0xcea2c7;for(const _0xa0a2eb of _0xcea2c7)_0xa0a2eb['id']===_0x24f3d6['id']&&(_0xa0a2eb[_0x106ef5(0x18d)]=_0xa0a2eb[_0x106ef5(0x1c6)]===_0xa0a2eb[_0x106ef5(0x1b8)]);return this[_0x106ef5(0x1bf)][_0x106ef5(0x1a9)](_0xcea2c7,this[_0x106ef5(0x1a1)])[_0x106ef5(0x19e)](_0x506735=>(this[_0x106ef5(0x1a1)]=_0x506735,_0xcea2c7))[_0x106ef5(0x191)](_0x1db16b=>{const _0x3e4b15=_0x106ef5;if(L(_0x1db16b)||_0x3e4b15(0x1ac)===_0x1db16b[_0x3e4b15(0x16b)]&&void 0x0!==_0x1db16b[_0x3e4b15(0x199)][_0x3e4b15(0x1c3)]){for(const _0x5f32ca of _0xcea2c7){!this[_0x3e4b15(0x160)][_0x3e4b15(0x19a)][_0x3e4b15(0x175)](_0x5f32ca['id'])||this[_0x3e4b15(0x160)][_0x3e4b15(0x16e)](_0x5f32ca['id'],_0x5f32ca,!0x1);}if(L(_0x1db16b))throw _0x1db16b;return _0xcea2c7;}throw _0x1db16b;});}},this[_0x373957(0x1a4)](this[_0x373957(0x1bf)],_0x373957(0x15d),(_0x3b1ed1,{revisionsData:_0x21baa8,requestId:_0x2e9347})=>{const _0x46c9fd=_0x373957;Math[_0x46c9fd(0x1ba)](..._0x21baa8[_0x46c9fd(0x1b2)](_0x7f2890=>_0x7f2890[_0x46c9fd(0x1b8)]))>this[_0x46c9fd(0x19f)]()-0x1?this[_0x46c9fd(0x198)]()[_0x46c9fd(0x19e)](()=>{const _0x2c4bcd=_0x46c9fd;this[_0x2c4bcd(0x197)](_0x21baa8,_0x2e9347);}):this[_0x46c9fd(0x197)](_0x21baa8,_0x2e9347);});const {revisions:_0x5adff0,requestId:_0x58548e}=await this[_0x373957(0x1bf)][_0x373957(0x1b5)](_0x89a3ed[_0x373957(0x1cb)]);_0x89a3ed[_0x373957(0x1ab)](this),this[_0x373957(0x1a1)]=_0x58548e,await this[_0x373957(0x1a3)](_0x5adff0);for(const _0x351c42 of _0x5adff0)this[_0x373957(0x160)][_0x373957(0x1bc)](_0x351c42);this[_0x373957(0x1a4)](_0x261ad9,_0x373957(0x187),(_0x4e2d53,_0x302ffa,_0x49ea69)=>{const _0x4188d6=_0x373957;_0x49ea69&&(this[_0x4188d6(0x188)]=_0x261ad9[_0x4188d6(0x17c)],_0x4e2d53[_0x4188d6(0x18c)]());}),this[_0x373957(0x160)][_0x373957(0x163)](_0x373957(0x181))['to'](_0x89a3ed,_0x373957(0x1c1),_0x18be41=>_0x18be41===_0x44c41a[_0x373957(0x164)]);}async[_0x1cae30(0x16f)](){const _0x8acd52=_0x1cae30,_0x36f96f=this[_0x8acd52(0x17f)][_0x8acd52(0x184)][_0x8acd52(0x1b3)](_0x4bd860),_0x188f16=this[_0x8acd52(0x17f)][_0x8acd52(0x184)][_0x8acd52(0x1b3)](_0x5a5e48),_0xc1520a=async()=>{const _0x2edf1a=_0x8acd52,_0x4571c4=this[_0x2edf1a(0x160)][_0x2edf1a(0x174)],_0x17c903=_0x4571c4['id'],_0x1f5630=_0x17c903!==_0x188f16[_0x2edf1a(0x183)];if(_0x1f5630){const _0x2ad802=_0x188f16[_0x2edf1a(0x17c)]-this[_0x2edf1a(0x188)],_0x46d9f9=this[_0x2edf1a(0x19f)]();this[_0x2edf1a(0x160)][_0x2edf1a(0x168)][_0x2edf1a(0x15b)]();if(_0x4571c4[_0x2edf1a(0x1b8)]+_0x2ad802!==_0x46d9f9){const _0x126e18=_0x4571c4[_0x2edf1a(0x1c6)]+_0x2ad802,_0x146d01=this[_0x2edf1a(0x17f)][_0x2edf1a(0x184)][_0x2edf1a(0x1b3)](_0x49ac99),_0x57e486=this[_0x2edf1a(0x160)][_0x2edf1a(0x1a8)]({'revision':_0x4571c4,'from':_0x126e18,'to':_0x46d9f9});_0x57e486['id']=_0x4571c4['id'];const _0x4a1f70=_0x57e486[_0x2edf1a(0x1be)][_0x2edf1a(0x1b2)](_0x5ba8a1=>_0x146d01[_0x2edf1a(0x173)](_0x5ba8a1));_0x4571c4[_0x2edf1a(0x194)]({..._0x57e486,'authors':_0x4a1f70},!0x0),this[_0x2edf1a(0x160)][_0x2edf1a(0x16e)](_0x4571c4['id'],_0x57e486,!0x0);}this[_0x2edf1a(0x160)][_0x2edf1a(0x1c2)]=_0x46d9f9,(_0x4571c4[_0x2edf1a(0x1b8)]===_0x4571c4[_0x2edf1a(0x1c6)]&&!this[_0x2edf1a(0x160)][_0x2edf1a(0x1a6)][_0x2edf1a(0x158)](_0x17c903)&&this[_0x2edf1a(0x160)][_0x2edf1a(0x19a)][_0x2edf1a(0x193)][_0x2edf1a(0x176)](_0x17c903),this[_0x2edf1a(0x160)][_0x2edf1a(0x1b1)](_0x46d9f9));}const {revisions:_0x165cff,requestId:_0x5dfc58}=await this[_0x2edf1a(0x1bf)][_0x2edf1a(0x16f)](_0x36f96f[_0x2edf1a(0x1cb)],this[_0x2edf1a(0x1a1)]);_0x1f5630&&_0x165cff[_0x2edf1a(0x192)]>0x0?_0x188f16[_0x2edf1a(0x1a0)]():(await this[_0x2edf1a(0x1a3)](_0x165cff),this[_0x2edf1a(0x197)](_0x165cff,_0x5dfc58),this[_0x2edf1a(0x160)][_0x2edf1a(0x16a)]());};return _0x188f16[_0x8acd52(0x185)]?_0xc1520a():new Promise((_0x3b0baf,_0x77d7d1)=>{const _0xa549ac=_0x8acd52;_0x188f16[_0xa549ac(0x165)](_0xa549ac(0x187),()=>{const _0xc91ba6=_0xa549ac;_0xc1520a()[_0xc91ba6(0x19e)](_0x3b0baf)[_0xc91ba6(0x191)](_0x77d7d1);});});}[_0x1cae30(0x159)](){const _0x38588e=_0x1cae30;super[_0x38588e(0x159)]();}async[_0x1cae30(0x179)](){const _0x45f6da=_0x1cae30;this[_0x45f6da(0x1bf)][_0x45f6da(0x180)]||await new Promise(_0x4cd30d=>{const _0xe92653=_0x45f6da;this[_0xe92653(0x1a4)](this[_0xe92653(0x1bf)],_0xe92653(0x178),_0x4bd485=>{const _0x193896=_0xe92653;_0x4bd485[_0x193896(0x18c)](),_0x4cd30d();});});}[_0x1cae30(0x19f)](){const _0x1afb51=_0x1cae30,_0x3cbf93=this[_0x1afb51(0x17f)][_0x1afb51(0x184)][_0x1afb51(0x1b3)](_0x5a5e48)[_0x1afb51(0x19b)][_0x1afb51(0x162)]()[_0x1afb51(0x1a7)]();for(const _0x19ef2b of _0x3cbf93)if(_0x1afb51(0x171)!==_0x19ef2b[_0x1afb51(0x1c8)]||_0x19ef2b[_0x1afb51(0x1bb)])return _0x19ef2b[_0x1afb51(0x190)]+0x1;}[_0x1cae30(0x198)](){const _0x5ff0a3=_0x1cae30,_0xd490ef=this[_0x5ff0a3(0x17f)][_0x5ff0a3(0x184)][_0x5ff0a3(0x1b3)](_0x5a5e48);return new Promise(_0x45ee03=>{const _0x3d8dd8=_0x5ff0a3;_0xd490ef[_0x3d8dd8(0x1c4)]?_0xd490ef[_0x3d8dd8(0x165)](_0x3d8dd8(0x1ae),()=>{const _0x387be0=_0x3d8dd8;_0x45ee03(this[_0x387be0(0x19f)]());}):_0x45ee03(this[_0x3d8dd8(0x19f)]());});}[_0x1cae30(0x197)](_0x37ef93,_0x596527){const _0x459ce4=_0x1cae30,_0x1c4319=this[_0x459ce4(0x160)][_0x459ce4(0x19a)];this[_0x459ce4(0x1a1)]=_0x596527;for(const _0x53a35a of _0x37ef93){const _0xd0186c=_0x1c4319[_0x459ce4(0x175)](_0x53a35a['id']);if(_0xd0186c){if((_0x53a35a[_0x459ce4(0x1c6)]||_0x53a35a[_0x459ce4(0x1b8)])&&(_0x53a35a[_0x459ce4(0x19c)]=null),_0xd0186c===this[_0x459ce4(0x160)][_0x459ce4(0x174)]){const _0x2034f5=Math[_0x459ce4(0x1ba)](_0xd0186c[_0x459ce4(0x1b8)],_0x53a35a[_0x459ce4(0x1b8)]),_0x58f92f=Math[_0x459ce4(0x1ba)](_0xd0186c[_0x459ce4(0x1c6)],_0x53a35a[_0x459ce4(0x1c6)]);let _0x1bd137;_0xd0186c[_0x459ce4(0x1b8)]===_0x53a35a[_0x459ce4(0x1b8)]&&_0xd0186c[_0x459ce4(0x1c6)]===_0x53a35a[_0x459ce4(0x1c6)]?(_0x1bd137=!0x0,this[_0x459ce4(0x1b7)](_0x53a35a)):_0x53a35a[_0x459ce4(0x1b8)]===_0x2034f5&&_0x53a35a[_0x459ce4(0x1c6)]===_0x58f92f?_0x1bd137=!0x1:(_0xd0186c[_0x459ce4(0x1b8)]===_0x2034f5&&_0xd0186c[_0x459ce4(0x1c6)]===_0x58f92f||this[_0x459ce4(0x177)]({'revision':_0xd0186c,'from':_0x58f92f,'to':_0x2034f5}),_0x1bd137=!0x0),_0x1bd137&&(delete _0x53a35a[_0x459ce4(0x1c6)],delete _0x53a35a[_0x459ce4(0x1b8)],delete _0x53a35a[_0x459ce4(0x19c)],delete _0x53a35a[_0x459ce4(0x15a)],delete _0x53a35a[_0x459ce4(0x1be)]);}this[_0x459ce4(0x160)][_0x459ce4(0x16c)](_0x53a35a),this[_0x459ce4(0x1b7)](_0x53a35a);}else this[_0x459ce4(0x160)][_0x459ce4(0x1bc)](_0x53a35a);}const _0x132c52=_0x1c4319[_0x459ce4(0x161)]();_0x132c52[_0x459ce4(0x1a7)]();for(let _0x453c90=0x0;_0x453c90<_0x132c52[_0x459ce4(0x192)]-0x1;_0x453c90++){const _0x1d4eea=_0x132c52[_0x453c90],_0x309f8e=_0x132c52[_0x453c90+0x1];if(_0x1d4eea[_0x459ce4(0x1c6)]<_0x309f8e[_0x459ce4(0x1b8)]){const _0x3af19a=_0x309f8e[_0x459ce4(0x1b8)],_0x4f6df4=Math[_0x459ce4(0x1ba)](_0x3af19a,_0x1d4eea[_0x459ce4(0x1b8)]);this[_0x459ce4(0x177)]({'revision':_0x1d4eea,'from':_0x3af19a,'to':_0x4f6df4});}}}[_0x1cae30(0x177)]({revision:_0x347381,from:_0x2682a0,to:_0x5f24cb}={}){const _0x5f2141=_0x1cae30,_0x2b41c1=this[_0x5f2141(0x17f)][_0x5f2141(0x184)][_0x5f2141(0x1b3)](_0x49ac99),_0x3aa55e=this[_0x5f2141(0x160)][_0x5f2141(0x1a8)]({'revision':_0x347381,'from':_0x2682a0,'to':_0x5f24cb});_0x3aa55e[_0x5f2141(0x170)]=_0x3aa55e[_0x5f2141(0x1be)][_0x5f2141(0x1b2)](_0x5207ef=>_0x2b41c1[_0x5f2141(0x173)](_0x5207ef)),_0x347381[_0x5f2141(0x194)](_0x3aa55e);}[_0x1cae30(0x1b7)](_0x586b47){const _0x4a463f=_0x1cae30,_0xdb0299={};_0xdb0299['id']=_0x586b47['id'];for(const _0x44ccbd of Object[_0x4a463f(0x15c)](_0x586b47))'id'!==_0x44ccbd&&(_0xdb0299[_0x44ccbd]=void 0x0);this[_0x4a463f(0x160)][_0x4a463f(0x16e)](_0xdb0299['id'],_0xdb0299,!0x0);}async[_0x1cae30(0x1a3)](_0x602d20){const _0x4050a5=_0x1cae30,_0x15e1fe=this[_0x4050a5(0x17f)][_0x4050a5(0x184)][_0x4050a5(0x1b3)](_0x49ac99),{connection:_0x33bacf}=this[_0x4050a5(0x17f)][_0x4050a5(0x184)][_0x4050a5(0x1b3)](_0x4bd860),_0x1c90a2=new Set();for(const _0x317b68 of _0x602d20){for(const _0x46b9eb of _0x317b68[_0x4050a5(0x1be)])_0x29e763(_0x46b9eb);_0x317b68[_0x4050a5(0x1b9)]&&_0x29e763(_0x317b68[_0x4050a5(0x1b9)]);}if(0x0===_0x1c90a2[_0x4050a5(0x18f)])return;const _0x351f01=await _0x19182b[_0x4050a5(0x15f)](_0x33bacf,Array[_0x4050a5(0x195)](_0x1c90a2));for(const _0x345c7d of _0x351f01)_0x15e1fe[_0x4050a5(0x173)](_0x345c7d['id'])||_0x15e1fe[_0x4050a5(0x15e)](_0x345c7d);function _0x29e763(_0x4e2805){const _0x935444=_0x4050a5;_0x15e1fe[_0x935444(0x173)](_0x4e2805)||_0x1c90a2[_0x935444(0x1c5)](_0x4e2805);}}}function L(_0x3bd876){const _0x134941=_0x1cae30;return _0x3bd876[_0x134941(0x1ad)][_0x134941(0x166)](_0x134941(0x169))||_0x3bd876[_0x134941(0x1ad)][_0x134941(0x166)](_0x134941(0x18b))||_0x3bd876[_0x134941(0x1ad)][_0x134941(0x166)](_0x134941(0x1a2));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x52656f=_0x18bc;(function(_0x591610,_0x552905){const _0x460762=_0x18bc,_0x28ed8e=_0x591610();while(!![]){try{const _0x3223da=parseInt(_0x460762(0x109))/0x1+-parseInt(_0x460762(0x111))/0x2+parseInt(_0x460762(0xe0))/0x3*(parseInt(_0x460762(0xea))/0x4)+-parseInt(_0x460762(0xd6))/0x5*(-parseInt(_0x460762(0xdd))/0x6)+parseInt(_0x460762(0xf5))/0x7+-parseInt(_0x460762(0xfc))/0x8+-parseInt(_0x460762(0xdb))/0x9;if(_0x3223da===_0x552905)break;else _0x28ed8e['push'](_0x28ed8e['shift']());}catch(_0x442d31){_0x28ed8e['push'](_0x28ed8e['shift']());}}}(_0x57c9,0xb715e));import{Plugin as _0x527ff8}from'ckeditor5/src/core.js';import{User as _0x2dade0,TrackChangesService as _0x2da8d2}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x48d65c}from'../realtimecollaborativeediting/websocketgateway.js';function _0x18bc(_0x25ec4f,_0x2e9f22){const _0x57c951=_0x57c9();return _0x18bc=function(_0x18bc7b,_0x2ada52){_0x18bc7b=_0x18bc7b-0xd3;let _0x564934=_0x57c951[_0x18bc7b];return _0x564934;},_0x18bc(_0x25ec4f,_0x2e9f22);}import{CloudServicesCommentsAdapter as _0x2081e0}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x172150}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x527ff8{static [_0x52656f(0x10a)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x2da8d2)());[_0x52656f(0x102)];[_0x52656f(0xd4)];static get[_0x52656f(0xd7)](){const _0x3a858e=_0x52656f;return[_0x2081e0,_0x3a858e(0xde),_0x48d65c];}static get[_0x52656f(0xe8)](){const _0x2fe2b1=_0x52656f;return _0x2fe2b1(0xfd);}static get[_0x52656f(0x10d)](){return!0x0;}static get[_0x52656f(0xd5)](){return!0x0;}constructor(_0x53633f){const _0x319807=_0x52656f;super(_0x53633f);const _0x41888e=this[_0x319807(0xe1)][_0x319807(0x103)][_0x319807(0xd3)](_0x319807(0xec));this[_0x319807(0x102)]=new Map(),this[_0x319807(0xd4)]=new CloudServicesTrackChangesAdapter[(_0x319807(0x10a))](_0x41888e);}[_0x52656f(0xd8)](){const _0x1ca3aa=_0x52656f,_0x1e7f94=this[_0x1ca3aa(0xe1)][_0x1ca3aa(0xe9)][_0x1ca3aa(0xd3)](_0x48d65c),_0x12ef8b=this[_0x1ca3aa(0xe1)][_0x1ca3aa(0xe9)][_0x1ca3aa(0xd3)](_0x1ca3aa(0xde));return _0x12ef8b[_0x1ca3aa(0x107)]={'getSuggestion':async _0x5638e1=>{const _0x31976f=_0x1ca3aa;await this[_0x31976f(0xf6)]();const _0x173a4f=await this[_0x31976f(0xd4)][_0x31976f(0xd3)](_0x5638e1)[_0x31976f(0xf9)](nt);return await this[_0x31976f(0xdf)]([_0x173a4f]),_0x173a4f;},'addSuggestion':async({id:_0x4978a1,type:_0x228d85,data:_0x57b863,originalSuggestionId:_0x2720af,attributes:_0x4213db})=>{const _0x10b466=_0x1ca3aa;await this[_0x10b466(0xf6)]();const _0x223dbb={'id':_0x4978a1,'type':_0x228d85,'data':_0x57b863,'originalSuggestionId':_0x2720af,'attributes':_0x4213db},_0x184959=await this[_0x10b466(0xd4)][_0x10b466(0xfa)](_0x4978a1,_0x228d85,_0x57b863,_0x2720af,_0x4213db)[_0x10b466(0xf9)](_0x2ac53b=>{if(L(_0x2ac53b))return new Promise(_0x97e6d9=>{const _0x22f639=_0x18bc;this[_0x22f639(0x102)][_0x22f639(0xfb)](_0x4978a1,{'resolve':_0x97e6d9,'suggestionData':_0x223dbb});});throw _0x2ac53b;});return this[_0x10b466(0x102)][_0x10b466(0x105)](_0x4978a1),_0x184959;},'updateSuggestion':async(_0x37eb87,_0x5ea7ca)=>{const _0x1e8752=_0x1ca3aa;if(await this[_0x1e8752(0xf6)](),_0x1e8752(0x10e)!==_0x5ea7ca[_0x1e8752(0xf4)])return this[_0x1e8752(0xd4)][_0x1e8752(0xf2)](_0x37eb87,_0x5ea7ca)[_0x1e8752(0xf9)](nt);}},this[_0x1ca3aa(0x10b)](this[_0x1ca3aa(0xd4)],_0x1ca3aa(0x10f),(_0x434956,_0x418838)=>{const _0x578dd5=_0x1ca3aa;_0x12ef8b[_0x578dd5(0x100)](_0x418838['id'])&&(_0x12ef8b[_0x578dd5(0x110)](_0x418838['id'])[_0x578dd5(0x108)]=_0x418838[_0x578dd5(0x108)]);}),this[_0x1ca3aa(0xd4)][_0x1ca3aa(0xef)](_0x1e7f94[_0x1ca3aa(0xf7)])[_0x1ca3aa(0xeb)](_0x5e0571=>(_0x1e7f94[_0x1ca3aa(0xe3)](this),this[_0x1ca3aa(0xdf)](_0x5e0571)[_0x1ca3aa(0xeb)](()=>{const _0x368b2b=_0x1ca3aa;for(const _0x4f3795 of _0x5e0571){_0x12ef8b[_0x368b2b(0xf8)](_0x4f3795)[_0x368b2b(0xff)]=!0x0;}})));}async[_0x52656f(0xdc)](){const _0x2e3c29=_0x52656f,_0x31c734=this[_0x2e3c29(0xe1)][_0x2e3c29(0xe9)][_0x2e3c29(0xd3)](_0x2e3c29(0xde)),{connection:_0x4788dd}=this[_0x2e3c29(0xe1)][_0x2e3c29(0xe9)][_0x2e3c29(0xd3)](_0x48d65c),_0x1a6287=await this[_0x2e3c29(0xd4)][_0x2e3c29(0xef)](_0x4788dd);await this[_0x2e3c29(0xdf)](_0x1a6287);for(const {suggestionData:_0x2ad5e8,resolve:_0x56f2fb}of this[_0x2e3c29(0x102)][_0x2e3c29(0xe6)]()){let _0x19b8d9=_0x1a6287[_0x2e3c29(0xe4)](_0x146b89=>_0x146b89['id']===_0x2ad5e8['id']);_0x19b8d9||(_0x19b8d9=await this[_0x2e3c29(0xd4)][_0x2e3c29(0xfa)](_0x2ad5e8['id'],_0x2ad5e8[_0x2e3c29(0xda)],_0x2ad5e8[_0x2e3c29(0xed)],_0x2ad5e8[_0x2e3c29(0xf3)])),_0x56f2fb(_0x19b8d9);}for(const _0x27cb85 of _0x1a6287)_0x31c734[_0x2e3c29(0x100)](_0x27cb85['id'])||_0x31c734[_0x2e3c29(0xf8)](_0x27cb85);}async[_0x52656f(0xf6)](){const _0x1b1206=_0x52656f;this[_0x1b1206(0xd4)][_0x1b1206(0xd9)]||await new Promise(_0x1354c6=>{const _0x5aca0c=_0x1b1206;this[_0x5aca0c(0x10b)](this[_0x5aca0c(0xd4)],_0x5aca0c(0xe2),_0x57144a=>{const _0xa7eab3=_0x5aca0c;_0x57144a[_0xa7eab3(0x101)](),_0x1354c6();});});}async[_0x52656f(0xdf)](_0x374eee){const _0x221b86=_0x52656f,_0x2b0774=this[_0x221b86(0xe1)][_0x221b86(0xe9)][_0x221b86(0xd3)](_0x172150),{connection:_0x32f0b8}=this[_0x221b86(0xe1)][_0x221b86(0xe9)][_0x221b86(0xd3)](_0x48d65c),_0x24b022=new Set();for(const {authorId:_0x317890}of _0x374eee)_0x2b0774[_0x221b86(0x10c)](_0x317890)||_0x24b022[_0x221b86(0xfa)](_0x317890);if(0x0===_0x24b022[_0x221b86(0xf1)])return;const _0x3a4eda=await _0x2dade0[_0x221b86(0xe5)](_0x32f0b8,Array[_0x221b86(0x104)](_0x24b022));for(const _0x5a6320 of _0x3a4eda)_0x2b0774[_0x221b86(0x10c)](_0x5a6320['id'])||_0x2b0774[_0x221b86(0xee)](_0x5a6320);}}function nt(_0x504028){if(L(_0x504028))return new Promise(()=>{});throw _0x504028;}function _0x57c9(){const _0x18e94b=['cloud-services-internal-error:\x20Request\x20timeout.','_saved','hasSuggestion','off','_bufferedRequests','config','from','delete','message','adapter','attributes','475081JcmEky','TrackChangesService','listenTo','getUser','isOfficialPlugin','open','suggestionUpdated','getSuggestion','2247630yOPUfq','get','_trackChangesService','isPremiumPlugin','2546460rseviu','requires','init','isConnected','type','1343466accGvh','reconnect','12fTkEnv','TrackChangesEditing','_fetchMissingUsersForThreads','2358ScBvUG','editor','connected','addToReconnectionStack','find','getMany','values','startsWith','pluginName','plugins','4372EoDcZn','then','collaboration.channelId','data','addUser','connect','cloud-services-internal-error:\x20Not\x20connected.','size','update','originalSuggestionId','state','248395xVaqWz','_waitForServiceReady','connection','addSuggestionData','catch','add','set','2921928oDgXFd','CloudServicesTrackChangesAdapter'];_0x57c9=function(){return _0x18e94b;};return _0x57c9();}function L(_0x155607){const _0x2dba84=_0x52656f;return _0x155607[_0x2dba84(0x106)][_0x2dba84(0xe7)](_0x2dba84(0xf0))||_0x155607[_0x2dba84(0x106)][_0x2dba84(0xe7)](_0x2dba84(0xfe));}
|